var $arcuWidget;var zaloWidgetInterval;var tawkToInterval;var tawkToHideInterval;var skypeWidgetInterval;var lcpWidgetInterval;var closePopupTimeout;var lzWidgetInterval;var paldeskInterval;var arcuOptions;var hideCustomerChatInterval;var _arCuTimeOut=null;var arCuPromptClosed=false;var _arCuWelcomeTimeOut=null;var arCuMenuOpenedOnce=false;var arcuAppleItem=null;var arcItems=[];window.addEventListener('load',function(){$arcuWidget=document.createElement('div');var body=document.getElementsByTagName('body')[0];$arcuWidget.id='arcontactus';if(document.getElementById('arcontactus')){document.getElementById('arcontactus').parentElement.removeChild(document.getElementById('arcontactus'));}
body.appendChild($arcuWidget);arCuClosedCookie=arCuGetCookie('arcu-closed');$arcuWidget.addEventListener('arcontactus.init',function(){$arcuWidget.classList.add('arcuAnimated');$arcuWidget.classList.add('flipInY');setTimeout(function(){$arcuWidget.classList.remove('flipInY');},1000);if(document.querySelector('#arcu-form-callback form')){document.querySelector('#arcu-form-callback form').append(contactUs.utils.DOMElementFromHTML(arCUVars._wpnonce));}
if(document.querySelector('#arcu-form-email form')){document.querySelector('#arcu-form-email form').append(contactUs.utils.DOMElementFromHTML(arCUVars._wpnonce));}
$arcuWidget.addEventListener('arcontactus.successSendFormData',function(event){});$arcuWidget.addEventListener('arcontactus.successSendFormData',function(event){});$arcuWidget.addEventListener('arcontactus.errorSendFormData',function(event){if(event.detail.data&&event.detail.data.message){alert(event.detail.data.message);}});$arcuWidget.addEventListener('arcontactus.hideFrom',function(){clearTimeout(closePopupTimeout);});});$arcuWidget.addEventListener('arcontactus.closeMenu',function(){arCuCreateCookie('arcumenu-closed',1,1);});var arcItem={};arcItem.id='msg-item-9';arcItem.onClick=function(e){e.preventDefault();contactUs.closeMenu();contactUs.showForm('callback');return false;}
arcItem.class='msg-item-phone';arcItem.title="Callback request";arcItem.icon='';arcItem.href=null;arcItem.color='#4EB625';arcItems.push(arcItem);arcuOptions={rootElementId:'arcontactus',credits:false,visible:true,wordpressPluginVersion:'2.2.3',online:true,buttonIcon:'',layout:'',drag:true,mode:'regular',buttonIconUrl:'https://avids.ru/wp-content/plugins/ar-contactus/res/img/msg.svg',showMenuHeader:false,menuHeaderText:"",menuSubheaderText:"",menuHeaderLayout:'',menuHeaderIcon:'',showHeaderCloseBtn:false,itemsIconType:'',align:'right',reCaptcha:false,reCaptchaKey:'',countdown:0,theme:'#008749',buttonText:"Обратный звонок!",buttonSize:'large',buttonIconSize:24,menuSize:'',phonePlaceholder:'',callbackSubmitText:'',errorMessage:'',callProcessText:'',callSuccessText:'',callbackFormText:'',iconsAnimationSpeed:600,iconsAnimationPause:2000,items:arcItems,ajaxUrl:'https://avids.ru/wp-admin/admin-ajax.php',promptPosition:'top',style:'',backdrop:false,forms:{callback:{id:'callback',header:{content:"Заполните, пожалуйста, форму!",layout:"text",},icon:'',success:"Ваш запрос удался! Очень скоро мы вам перезвоним! Спасибо большое!",error:"Ваш запрос не удался! Извините за доставленные неудобства!",action:'https://avids.ru/wp-admin/admin-ajax.php',buttons:[{name:"submit",label:"Отправить",type:"submit",},],fields:{formId:{name:'formId',value:'callback',type:'hidden'},action:{name:'action',value:'arcontactus_request_callback',type:'hidden'},name:{name:"name",enabled:true,required:false,type:"text",label:"Ваше имя",placeholder:"Введите здесь своё имя",values:[],value:"",},phone:{name:"phone",enabled:true,required:true,type:"tel",label:"Ваш номер телефона",placeholder:"Введите здесь ваш номер телефона",values:[],value:"",},gdpr:{name:"gdpr",enabled:true,required:true,type:"checkbox",label:"Я согласен(а) на обработку персональных данных",placeholder:"",values:[],value:"1",},}},email:{id:'email',header:{content:"Write a email to us!",layout:"text",},icon:'',success:"Email sent! We will contact you soon.",error:"Error sending email! Please try again!",action:'https://avids.ru/wp-admin/admin-ajax.php',buttons:[{name:"submit",label:"Submit",type:"submit",},],fields:{formId:{name:'formId',value:'email',type:'hidden'},action:{name:'action',value:'arcontactus_request_email',type:'hidden'},name:{name:"name",enabled:true,required:false,type:"text",label:"Your name",placeholder:"Enter your name",values:[],value:"",},email:{name:"email",enabled:true,required:true,type:"email",label:"Your email",placeholder:"Enter your email",values:[],value:"",},message:{name:"message",enabled:true,required:true,type:"textarea",label:"Your message",placeholder:"Enter your message",values:[],value:"",},gdpr:{name:"gdpr",enabled:true,required:true,type:"checkbox",label:"I accept GDPR rules",placeholder:"",values:[],value:"1",},}},}};contactUs.init(arcuOptions);})