
/*!
 * JavaScript Cookie v2.2.1
 * https://github.com/js-cookie/js-cookie
 *
 * Copyright 2006, 2015 Klaus Hartl & Fagner Brack
 * Released under the MIT license
 */
;(function(factory){var registeredInModuleLoader;if(typeof define==='function'&&define.amd){define(factory);registeredInModuleLoader=!0}
if(typeof exports==='object'){module.exports=factory();registeredInModuleLoader=!0}
if(!registeredInModuleLoader){var OldCookies=window.Cookies;var api=window.Cookies=factory();api.noConflict=function(){window.Cookies=OldCookies;return api}}}(function(){function extend(){var i=0;var result={};for(;i<arguments.length;i++){var attributes=arguments[i];for(var key in attributes){result[key]=attributes[key]}}
return result}
function decode(s){return s.replace(/(%[0-9A-Z]{2})+/g,decodeURIComponent)}
function init(converter){function api(){}
function set(key,value,attributes){if(typeof document==='undefined'){return}
attributes=extend({path:'/'},api.defaults,attributes);if(typeof attributes.expires==='number'){attributes.expires=new Date(new Date()*1+attributes.expires*864e+5)}
attributes.expires=attributes.expires?attributes.expires.toUTCString():'';try{var result=JSON.stringify(value);if(/^[\{\[]/.test(result)){value=result}}catch(e){}
value=converter.write?converter.write(value,key):encodeURIComponent(String(value)).replace(/%(23|24|26|2B|3A|3C|3E|3D|2F|3F|40|5B|5D|5E|60|7B|7D|7C)/g,decodeURIComponent);key=encodeURIComponent(String(key)).replace(/%(23|24|26|2B|5E|60|7C)/g,decodeURIComponent).replace(/[\(\)]/g,escape);var stringifiedAttributes='';for(var attributeName in attributes){if(!attributes[attributeName]){continue}
stringifiedAttributes+='; '+attributeName;if(attributes[attributeName]===!0){continue}
stringifiedAttributes+='='+attributes[attributeName].split(';')[0]}
return(document.cookie=key+'='+value+stringifiedAttributes)}
function get(key,json){if(typeof document==='undefined'){return}
var jar={};var cookies=document.cookie?document.cookie.split('; '):[];var i=0;for(;i<cookies.length;i++){var parts=cookies[i].split('=');var cookie=parts.slice(1).join('=');if(!json&&cookie.charAt(0)==='"'){cookie=cookie.slice(1,-1)}
try{var name=decode(parts[0]);cookie=(converter.read||converter)(cookie,name)||decode(cookie);if(json){try{cookie=JSON.parse(cookie)}catch(e){}}
jar[name]=cookie;if(key===name){break}}catch(e){}}
return key?jar[key]:jar}
api.set=set;api.get=function(key){return get(key,!1)};api.getJSON=function(key){return get(key,!0)};api.remove=function(key,attributes){set(key,'',extend(attributes,{expires:-1}))};api.defaults={};api.withConverter=init;return api}
return init(function(){})}));var cookieman=function(){"use strict";var e="CookieConsent",t=document.querySelector("[data-cookieman-form]"),n=document.querySelector("[data-cookieman-settings]"),o=n,r=JSON.parse(n.dataset.cookiemanSettings),i=t.querySelectorAll("[type=checkbox][name]"),c=document.querySelectorAll("[data-cookieman-save]"),a=document.querySelectorAll("[data-cookieman-accept-all]"),s=document.querySelectorAll("[data-cookieman-accept-none]"),u=[],l={};function d(){for(var t=[],n=0;n<i.length;n++)i[n].checked&&t.push(i[n].name);Cookies.set(e,t.join("|"),{expires:365,sameSite:"lax"})}function f(e,t){e.checked=t}function v(){for(var e=0;e<i.length;e++){var t=i[e];t.disabled||f(t,!1)}}function m(e){for(var t=h(),n=0;n<t.length;n++)if(t[n]===e)return!0;return!1}function p(){var t=Cookies.get(e);return t?t.split("|"):[]}function h(){return p().filter((function(e){var t=r.groups[e];return void 0!==t&&(!t.respectDnt||"1"!==window.navigator.doNotTrack)}))}function k(e){e.preventDefault(),d(),cookieman.hide(),function(){for(var e in r.groups)if(Object.prototype.hasOwnProperty.call(r.groups,e)&&!m(e))for(var t=r.groups[e],n=0;n<t.trackingObjects.length;n++){var o=t.trackingObjects[n];y(o,r.trackingObjects[o])}}(),w()}function g(e){e.preventDefault(),function(){for(var e=0;e<i.length;e++)f(i[e],!0)}()}function b(e){e.preventDefault(),v()}function O(e,t){if(void 0!==t){if(void 0!==t.inject){var n,o=document.createElement("div");o.innerHTML=t.inject;for(var r=0,i=0;i<o.children.length;i++){var c=o.children[i];if("SCRIPT"===c.tagName){(n=document.createElement("script")).textContent=c.textContent;for(var a=0;a<c.attributes.length;a++){var s=c.attributes[a];n.setAttribute(s.name,s.value)}n.addEventListener("load",function(e,t,n,o){return function(r){void 0===l[n]&&(l[n]=[]),l[n].push(t),j("scriptLoaded",{detail:{trackingObjectKey:n,trackingObjectSettings:o,scriptId:t,node:e}})}}(n,r++,e,t)),c=n}else i--;document.body.appendChild(c)}u.push(e)}}else console.error("Used trackingObject ‹"+e+"› is undefined.")}function y(e,t){if(void 0!==t)for(var n in t.show){if(Object.prototype.hasOwnProperty.call(t.show,n))C(n,t.show[n])}else console.error("Used trackingObject ‹"+e+"› is undefined.")}function C(e,t){if("cookie_http+html"===t.type){if(Object.prototype.hasOwnProperty.call(t,"htmlCookieRemovalPattern")&&""!==t.htmlCookieRemovalPattern){var n,o=Cookies.get();try{n=RegExp(t.htmlCookieRemovalPattern)}catch(t){return console.error('Malformed pattern for cookie deletion on trackingObjectItem "'+e+'": '+t.message),!1}for(var r in o)null!==r.match(n)&&E(r)}else E(e);return!0}return!1}function w(){for(var e=h(),t=0;t<e.length;t++)for(var n=r.groups[e[t]],o=0;o<n.trackingObjects.length;o++){var i=n.trackingObjects[o];-1===u.indexOf(i)&&O(i,r.trackingObjects[i])}}function j(e,t){"function"!=typeof window.CustomEvent&&(window.CustomEvent=function(e,t){t=t||{bubbles:!1,cancelable:!1,detail:void 0};var n=document.createEvent("CustomEvent");return n.initCustomEvent(e,t.bubbles,t.cancelable,t.detail),n},window.CustomEvent.prototype=window.Event.prototype),o.dispatchEvent(new window.CustomEvent(e,t))}function E(e){var t=document.location.host,n=t.split(".").slice(-2).join(".");Cookies.remove(e),Cookies.remove(e,{path:"/"}),Cookies.remove(e,{path:"",domain:t}),Cookies.remove(e,{path:"/",domain:t}),Cookies.remove(e,{path:"",domain:"."+n}),Cookies.remove(e,{path:"/",domain:"."+n})}return function(){for(var n=0;n<a.length;n++)a[n].addEventListener("click",g);for(n=0;n<s.length;n++)s[n].addEventListener("click",b);for(n=0;n<c.length;n++)c[n].addEventListener("click",k);!function(){if(void 0!==Cookies.get(e)){var n=p();v();for(var o=0;o<n.length;o++){var r=t.querySelector("[name="+n[o]+"]");r&&f(r,!0)}}}(),function(){if("1"===window.navigator.doNotTrack)for(var e=document.querySelectorAll("[data-cookieman-dnt]"),n=0;n<e.length;n++)e[n].innerHTML=t.dataset.cookiemanDntEnabled}(),w()}(),{show:function(){console.error("Your theme should implement function cookieman.show()")},hide:function(){console.error("Your theme should implement function cookieman.hide()")},showOnce:function(){void 0===Cookies.get(e)&&cookieman.show()},hasConsented:m,hasConsentedTrackingObject:function(e){var t=function(e){return Object.keys(r.groups).filter((function(t){return Object.prototype.hasOwnProperty.call(r.groups[t],"trackingObjects")&&r.groups[t].trackingObjects.indexOf(e)>-1}))}(e);return t.reduce((function(e,t){return e&&m(t)}),t.length>0)},consenteds:h,consent:function(e){f(t.querySelector('[type=checkbox][name="'+e+'"]'),!0),d(),w()},onScriptLoaded:function(e,t,n){void 0===l[e]&&(l[e]=[]),-1===l[e].indexOf(t)?o.addEventListener("scriptLoaded",(function(o){o.detail.trackingObjectKey===e&&o.detail.scriptId===t&&n(o.detail.trackingObjectKey,o.detail.scriptId)})):n(e,t)},eventsEl:o}}();cookieman.theme=(function(){"use strict";var showSettingsBtn=document.querySelector('[aria-controls="cookieman-settings"]'),modal=null
if(showSettingsBtn){showSettingsBtn.addEventListener('click',function(ev){var saveBtn=document.querySelector('[data-cookieman-save]:not([data-cookieman-accept-all]):not([data-cookieman-accept-none])')
if(saveBtn){saveBtn.hidden=!1}})}
cookieman.show=function(){modal=new bootstrap.Modal($('#cookieman-modal'),{backdrop:!1,keyboard:!0})
modal.show()
$('body').css('overflow-y','auto')}
cookieman.hide=function(){$('#cookieman-modal').hide()}}())
if(document.cookie.split(';').some((item)=>item.includes('CookieConsent'))){cookieman.hide()};document.addEventListener('DOMContentLoaded',function(event){var filetypes=/\.(zip|exe|dmg|pdf|doc.*|xls.*|ppt.*|mp3|txt|rar|wma|mov|avi|wmv|flv|wav)$/i;document.querySelector('a').addEventListener('click',function(event){var track=!0,href=this.href,isThisDomain=href.match(document.domain.split('.').reverse()[1]+'.'+document.domain.split('.').reverse()[0]);if(!href.match(/^javascript:/i)){var elEv=[];elEv.value=0,elEv.non_i=!1;if(href.match(/^mailto\:/i)){elEv.category="email";elEv.action="click";elEv.label=href.replace(/^mailto\:/i,'');elEv.loc=href}else if(href.match(filetypes)){var extension=(/[.]/.exec(href))?/[^.]+$/.exec(href):undefined;elEv.category="download";elEv.action="click-"+extension[0];elEv.label=href.replace(/ /g,"-");elEv.loc=href}else if(href.match(/^https?\:/i)&&!isThisDomain){elEv.category="external";elEv.action="click";elEv.label=href.replace(/^https?\:\/\//i,'');elEv.non_i=!0;elEv.loc=href}else if(href.match(/^tel\:/i)){elEv.category="telephone";elEv.action="click";elEv.label=href.replace(/^tel\:/i,'');elEv.loc=href}else track=!1;if(track){ga('send','event',elEv.category.toLowerCase(),elEv.action.toLowerCase(),elEv.label.toLowerCase(),elEv.value,{'nonInteraction':elEv.non_i})}}})});function addRelToExternalLinks(){$("a[target=_blank]").each(function(){const isEasybellLink=$(this).attr("href").includes(".easybell.");const isInternalLink=$(this).attr("href").startsWith("/");const isExternalLink=!(isEasybellLink||isInternalLink);if(isExternalLink){$(this).attr("rel","noopener noreferrer")}})}
$(".leftmenu .frame-type-menu_section .frame-header").on("click",function(e){e.preventDefault();$(".leftmenu .frame-type-menu_section").toggleClass("show")});document.addEventListener("hidden.bs.collapse",function(element){$(element.target).parent().removeClass("show").removeAttr("aria-expanded")});onerror=stopError();function stopError(){return!0}
$('.teasertext a[href*="#"]').on("click",function(e){e.preventDefault();var target=this.hash;var $target=$(target);$("html, body").stop().animate({scrollTop:$target.offset().top-200},600,"swing");e.preventDefault()});$(".overview .frame .media, .newscontent .usp .wbox_content").each(function(index,element){if($(this).find("a").length>0){$(element).css("cursor","pointer");$(this).click(function(e){var href=$(this).find("a").attr("href");var target=$(this).find("a").attr("target");if(target==="_blank"){e.preventDefault();window.open(href,"_blank")}else{window.location.href=href}})}});$(".close-modal-box").click(function(event){$(".self-closer").hide();event.preventDefault()});$(".rwd-table").wrap('<div class="rt-wrap"></div>');$(".rwd-table").each(function(){var autogen=$(this).attr("data-autogen-headers");if($("thead",this).length&&autogen=="true"){$("thead tr:first th",this).each(function(){saveTitle=$(this).text();whichPosition=$(this).index()+1;$(this).parents("table").find("tr td:nth-child("+whichPosition+")").attr("data-title",saveTitle)})}});$(".frame-type-card_group .card-group-element .card-group-element-item").each((_,el)=>{$(el).has("h3 + p.text-center").addClass("text-center");$(el).has("h3 + p.text-right").addClass("text-right")});document.getElementById("openCookieMenu")?.addEventListener("click",()=>cookieman.show());function toggleSearchBarInNavigation(){$("#toggle-search-bar, #close-search-bar").click(function(){const desktopNavigation=$("#desktopNavigation");const globalSearchForm=$("#globalsearchform");const globalSearchFormInput=$("#global-search-input");const isGlobalSearchHidden=globalSearchForm.hasClass("d-none");if(isGlobalSearchHidden){desktopNavigation.removeClass("d-xl-block");globalSearchForm.removeClass("d-none");globalSearchForm.addClass("d-flex");globalSearchFormInput[0].focus()}else{desktopNavigation.addClass("d-xl-block");globalSearchForm.addClass("d-none");globalSearchForm.removeClass("d-flex")}})}
function handleNavigationSectionIndicator(){const sectionIndicatorIcons={mobile:{open:"<svg class='icon' width='26' height='16' viewBox='0 0 26 11' fill='none' xmlns='http://www.w3.org/2000/svg'><path d='M19 10.5L9.989 1.5L1 10.5' stroke='#E55A05' stroke-width='2.9998' stroke-linecap='round' stroke-linejoin='round'/></svg>",closed:"<svg class='icon' width='26' height='16' viewBox='0 0 26 11' fill='none' xmlns='http://www.w3.org/2000/svg'><path d='M19 1.5L10 10.5L1 1.5' stroke='#E55A05' stroke-width='2.9998' stroke-linecap='round' stroke-linejoin='round'/></svg>"},desktop:{open:"<svg class='icon' width='24' height='24' viewBox='0 0 24 24' fill='none' xmlns='http://www.w3.org/2000/svg'><path d='M16 14L12 10L8 14' stroke='#4D4D55' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/></svg>",closed:"<svg class='icon' width='24' height='24' viewBox='0 0 24 24' fill='none' xmlns='http://www.w3.org/2000/svg'><path d='M8 10L12 14L16 10' stroke='#4D4D55' stroke-width='1.5' stroke-linecap='round'stroke-linejoin='round' /></svg>"}};function changeMobileSectionIndicatorOnClick(){$("#mobileDropdown").click(()=>{const closedIndicatorIcon=$("#mobileDropdown .dropdown-toggle:not(.show) .icon");const openIndicatorIcon=$("#mobileDropdown .dropdown-toggle.show .icon");closedIndicatorIcon.replaceWith(sectionIndicatorIcons.mobile.closed);openIndicatorIcon.replaceWith(sectionIndicatorIcons.mobile.open)})}
function changeDesktopSectionIndicatorOnHover(){$(".dropdown:not(.mobile").hover(function(){const sectionIndicator=$(this).find(".icon");sectionIndicator.replaceWith(sectionIndicatorIcons.desktop.open)},function(){const sectionIndicator=$(this).find(".icon");sectionIndicator.replaceWith(sectionIndicatorIcons.desktop.closed)})}
changeMobileSectionIndicatorOnClick();changeDesktopSectionIndicatorOnHover()}
function expandDropdownMenuOnHover(){$(".dropdown:not(.mobile)").hover(function(){const dropdownMenu=$(this).children(".dropdown-menu");dropdownMenu.addClass("show")},function(){const dropdownMenu=$(this).children(".dropdown-menu");dropdownMenu.removeClass("show")})}
addRelToExternalLinks();toggleSearchBarInNavigation();handleNavigationSectionIndicator();expandDropdownMenuOnHover();function setLanguageCookie(){const isEnglishPage=location.hostname.startsWith("en");const locale=isEnglishPage?"en":"de";const dateIn1Month=new Date();dateIn1Month.setMonth(dateIn1Month.getMonth()+1);document.cookie=`easybell-locale=${locale};domain=.easybell.de;expires=${dateIn1Month};`}
setLanguageCookie();$(document).mouseup(function(e){var container=$("#loginbox");if(!container.is(e.target)&&container.has(e.target).length===0){container.hide()}});$(function(){if(getURLParameter('login')==1){$('.loginbutton').trigger('click');var loginDiv=$('#loginbox');loginDiv.css({"display":"block","visibility":"visible"})}
$('#globalLoginForm').on("submit",function(evt){if($('#loginbox').is(":visible")){var officeurl="https://login.easybell.de/telefonanlage/office";var new_portalurl="https://login.easybell.de/login";var officepage="officeLogin";var portalpage="login";var userName=$('#username');var checkUser=userName.val();var checkPass=$('#globalPass').val();if(checkUser==""){$('#wrongCredentials').show();userName.addClass("warn");evt.preventDefault();return!1}else{$('#wrongCredentials').hide();userName.removeClass("warn")}
if(checkPass==""){$('#wrongCredentials').show();evt.preventDefault();return!1}else{$('#wrongCredentials').hide()}
var sub=checkUser.substr(0,4);if(sub.charAt(0)==='+'){checkUser=checkUser.replace('+49','0049');sub=checkUser.substr(0,4)}
if(sub.substr(0,2)=='49'){checkUser="0049"+checkUser.substr(2);sub=checkUser.substr(0,4)}
if(sub.charAt(0)=='0'!='00'&&sub.charAt(1)!='0'){checkUser="0049"+checkUser.substr(1);sub=checkUser.substr(0,4)}
userName.attr('name','id');$('#globalLoginForm').attr('action',new_portalurl)}
return!0})});function loginClick(parent){var bMaintenance=!1;if(bMaintenance===!1){var loginDiv=$('#loginbox');if(loginDiv.is(":visible")){loginDiv.css({"display":"none","visibility":"hidden"})}else{if(window.location.protocol!="https:"){var reloadUrl="https://"+window.location.host+window.location.pathname+"?login=1";window.location.href=reloadUrl}else{loginDiv.css({"display":"block","visibility":"visible"})}}}else{var maintenanceBox=$('#loginbox');if(maintenanceBox.is(":visible")){maintenanceBox.css({"display":"none","visibility":"hidden"})}else{var loginfields=$('#loginform');var maintenancemessage=$('#maintenance');maintenanceBox.css({"display":"block","visibility":"visible"});loginfields.css({"display":"none","visibility":"hidden"});maintenancemessage.css({"display":"block","visibility":"visible"})}}
return!1}
function isVisible(elem){return elem.offsetWidth>0||elem.offsetHeight>0}
function getURLParameter(name){return decodeURIComponent((new RegExp('[?|&]'+name+'='+'([^&;]+?)(&|#|;|$)').exec(location.search)||[,""])[1].replace(/\+/g,'%20'))||null}
$(document).ready(function(){$('.accordeon_content .csc-header, .content .csc-header, .header2content .csc-header').click(function(){var trig=$(this);var parentName=trig.parent().attr("class");if((parentName.indexOf("trigger_content")>=0)||(parentName.indexOf("trigger_bottom")>=0)){if(trig.hasClass('csc-header_active')){trig.next('.toggle_content').slideToggle('slow');trig.next('.toggle_bottom').slideToggle('slow');trig.removeClass('csc-header_active')}else{$('.csc-header_active').next('.toggle_content').slideToggle('slow');$('.csc-header_active').removeClass('csc-header_active');trig.next('.toggle_content').slideToggle('slow');trig.next('.toggle_bottom').slideToggle('slow');trig.addClass('csc-header_active')}}
return!1})});function SuggestController(){this.init=function(){$('#toggle-search-bar').on('click',function(){$('#global-search-input')[0].focus()})
jQuery('form[data-suggest]').each(function(){var $form=$(this),$searchBox=$form.find('.tx-solr-suggest'),$formAutoComplete;if($form.find('.tx-solr-autocomplete').length>0){$formAutoComplete=$form.find('.tx-solr-autocomplete')}else{$formAutoComplete=$('body')}
$form.find('.tx-solr-suggest-focus').focus();jQuery.ajaxSetup({jsonp:"tx_solr[callback]"});if($searchBox.length===0){$searchBox=$form}
$searchBox.css('position','relative');$form.on('submit',function(e){if($form.find('.tx-solr-suggest').val()===''){e.preventDefault();$form.find('.tx-solr-suggest').focus()}});$form.find('.tx-solr-suggest').devbridgeAutocomplete({serviceUrl:'index.php?id=108&type=7384',dataType:'jsonp',paramName:'tx_solr[queryString]',groupBy:'category',maxHeight:1000,appendTo:$formAutoComplete,autoSelectFirst:!1,triggerSelectOnValidInput:!1,onSelect:function(suggestion){if(suggestion.data.link){if(suggestion.data.link.indexOf('https://www.youtube.com')===0){openVideoOverlay(suggestion.data.link)}else{location.href=suggestion.data.link}}else{$form.trigger('submit')}},transformResult:function(response){if(!response.suggestions)return{suggestions:[]};var firstSuggestion,result={suggestions:$.map(response.suggestions,function(count,suggestion){if(!firstSuggestion)firstSuggestion=suggestion;return{value:suggestion,data:{category:'suggestion',count:count}}})};$.each(response.documents,function(key,value){var dataObject=value;var defaultGroup=$form.data('suggest-header')?$form.data('suggest-header'):'Top results';dataObject.category=defaultGroup;if(dataObject.group){dataObject.category=$form.data('suggest-header-'+dataObject.group)?$form.data('suggest-header-'+dataObject.group):dataObject.group}
result.suggestions.push({value:firstSuggestion,data:dataObject})});return result},beforeRender:function(container){container.find('.autocomplete-group:first').remove();container.addClass('tx-solr-autosuggest');$searchBox.parent().addClass('autocomplete-active').fadeIn()},formatResult:function(suggestion,currentValue){if(!currentValue){return suggestion.value}
var pattern='('+$.Autocomplete.utils.escapeRegExChars(currentValue.trim())+')';if(suggestion.data.category==='suggestion'){return suggestion.value.replace(new RegExp(pattern,'gi'),'<strong>$1<\/strong>').replace(/&/g,'&amp;').replace(/</g,'&lt;').replace(/>/g,'&gt;').replace(/"/g,'&quot;').replace(/&lt;(\/?strong)&gt;/g,'<$1>')}else{var title=suggestion.data.title.replace(new RegExp(pattern,'gi'),'<em>$1<\/em>').replace(/&/g,'&amp;').replace(/</g,'&lt;').replace(/>/g,'&gt;').replace(/"/g,'&quot;').replace(/&lt;(\/?em)&gt;/g,'<$1>');return'<div class="'+suggestion.data.type+'">'+(!!suggestion.data.previewImage?'<figure '+(!!suggestion.data.hasVideo?'class="hasVideo"':'')+'><img src="'+suggestion.data.previewImage+'" /></figure>':'')+'<strong><a href="'+suggestion.data.link+'" class="internal-link">'+title+'</a></strong>'+'</div>'}}}).on('blur',function(){$searchBox.parent().removeClass('autocomplete-active');var $box=$(this);setTimeout(function(){$box.devbridgeAutocomplete('hide')},200)})})}}
jQuery(document).ready(function(){var solrSuggestController=new SuggestController();solrSuggestController.init();jQuery("body").on("tx_solr_updated",function(){solrSuggestController.init()});if($(window).width()>500){$(".facet-option-list").removeClass("collapse")}});$(document).ready(function(){$('#requestCallback').click(function(){$('#callback').addClass("open");$(window).scrollTop(0);$('#ajax-modal-loading').show();$('#requestCallback').hide();$('#ajaxCallResult').load('index.php?id=2372 #page-content',function(response,status,xhr){if(status=="error"){var msg='Ohh snapps';$("#ajaxCallResult").html(msg+xhr.status+" "+xhr.statusText);$('#ajax-modal-loading').hide();$('.close-icon').show()};if(status=="success"){$('#customer_callback-14774').prepend("<input type='hidden' name='tx_form_formframework[customer_callback-14774][__currentPage]' value='1'>");$('#ajaxCallResult').show();$('#ajax-modal-loading').hide();$('.close-icon').show()}})})});var CallbackContainer=$('#callback');var selectCallback=$('#requestCallback');var resultContainer=$('#ajaxCallResult');var sendService={ajaxCall:function(data){var form=$('#customer_callback-14774');var url=form.attr('action')+'&no_cache=1';$.ajax({url:url,type:form.attr('method'),cache:!1,processData:!1,enctype:'multipart/form-data',data:form.serialize(),method:'POST',headers:{'Cache-Control':'no-cache, no-store, must-revalidate','Pragma':'no-cache','Expires':'0'},beforeSend:function(){$(window).scrollTop(0);$('#ajax-modal-loading').show();resultContainer.hide()},success:function(result){$('#ajax-modal-loading').hide();resultContainer.html(result).fadeIn('fast');$('#c14816').hide();$('#customer_callback-14774').prepend("<input type='hidden' name='tx_form_formframework[customer_callback-14774][__currentPage]' value='1'>");$('.close-icon').show()},error:function(jqXHR,textStatus,errorThrow){$('#ajax-modal-loading').hide();resultContainer.html('Ajax request - '+textStatus+': '+errorThrow).fadeIn('fast')}})}};if($('#selector').length){$('#c14771').hide()}
$('.close-icon').click(function(){$('.close-icon').hide();$('#ajaxCallResult').hide();$('#callback').removeClass("open");$('#requestCallback').show()});$(document).on('click','#callback #customer_callback-14774 button.btn',function(data){data.preventDefault();sendService.ajaxCall(data)})