fbpx
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-1';arcItem.online=true;arcItem.class='msg-item-facebook-messenger';arcItem.title="Messenger";arcItem.icon='';arcItem.includeIconToSlider=true;arcItem.href='https://m.me/BrandingPlus.id';arcItem.color='#567AFF';arcItems.push(arcItem);var arcItem={};arcItem.id='msg-item-2';arcItem.class='msg-item-whatsapp';arcItem.title="Whatsapp";arcItem.icon='';arcItem.includeIconToSlider=true;arcItem.href='https://wa.me/6281336316786?text=Halo,%20Saya%20ingin%20bertanya%20tentang%20BrandingPlus';arcItem.color='#1EBEA5';arcItems.push(arcItem);var arcItem={};arcItem.id='msg-item-6';arcItem.class='msg-item-envelope';arcItem.title="Email us";arcItem.icon='';arcItem.includeIconToSlider=true;arcItem.href='mailto:admin@brandingplus.id';arcItem.color='#FF643A';arcItems.push(arcItem);arcuOptions={rootElementId:'arcontactus',credits:false,visible:true,wordpressPluginVersion:'2.2.1',online:true,buttonIcon:'',layout:'default',drag:false,mode:'regular',buttonIconUrl:'https://brandingplus.id/wp-content/plugins/ar-contactus/res/img/msg.svg',showMenuHeader:false,menuHeaderText:"How would you like to contact us?",menuSubheaderText:"",showHeaderCloseBtn:false,headerCloseBtnBgColor:'#008749',headerCloseBtnColor:'#ffffff',itemsIconType:'rounded',align:'right',reCaptcha:false,reCaptchaKey:'',countdown:0,theme:'#008749',buttonText:"Contact us",buttonSize:'large',buttonIconSize:24,menuSize:'large',phonePlaceholder:'',callbackSubmitText:'',errorMessage:'',callProcessText:'',callSuccessText:'',callbackFormText:'',iconsAnimationSpeed:600,iconsAnimationPause:2000,items:arcItems,ajaxUrl:'https://brandingplus.id/wp-admin/admin-ajax.php',promptPosition:'top',popupAnimation:'fadeindown',style:'',itemsAnimation:'downtoup',forms:{callback:{id:'callback',header:{content:"Leave your phone number. We will call you back soon!",layout:"text",},icon:'',success:"Callback request sent! We will contact you soon.",error:"Error sending callback request! Please try again!",action:'https://brandingplus.id/wp-admin/admin-ajax.php',buttons:[{name:"submit",label:"Submit",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:"Your name",placeholder:"Enter your name",values:[],value:"",},phone:{name:"phone",enabled:true,required:true,type:"tel",label:"Your phone number",placeholder:"Enter your phone number",values:[],value:"",},gdpr:{name:"gdpr",enabled:true,required:true,type:"checkbox",label:"I accept GDPR rules",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://brandingplus.id/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);})