/* * 2018 Areama * * NOTICE OF LICENSE * * This source file is subject to the Academic Free License (AFL 3.0) * that is bundled with this package in the file LICENSE.txt. * It is also available through the world-wide-web at this URL: * http://opensource.org/licenses/afl-3.0.php * If you did not receive a copy of the license and are unable to * obtain it through the world-wide-web, please send an email * to license@areama.net so we can send you a copy immediately. * * * @author Areama * @copyright 2018 Areama * @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0) * International Registered Trademark & Property of Areama */ var $jscomp=$jscomp||{};$jscomp.scope={};$jscomp.findInternal=function(c,d,a){c instanceof String&&(c=String(c));for(var b=c.length,e=0;e', ajaxUrl:"server.php",action:"callback",phonePlaceholder:"+X-XXX-XXX-XX-XX",callbackSubmitText:"Waiting for call",reCaptcha:!1,reCaptchaAction:"callbackRequest",reCaptchaKey:"",errorMessage:"Connection error. Please try again.",callProcessText:"We are calling you to phone",callSuccessText:"Thank you.
We are call you back soon.",showMenuHeader:!1,menuHeaderText:"How would you like to contact us?",showHeaderCloseBtn:!0,menuInAnimationClass:"show-messageners-block",menuOutAnimationClass:"",eaderCloseBtnBgColor:"#787878", eaderCloseBtnColor:"#FFFFFF",items:[],itemsIconType:"rounded",iconsAnimationSpeed:800,iconsAnimationPause:2E3,promptPosition:"side",style:null,itemsAnimation:null,popupAnimation:"scale",callbackFormFields:{name:{name:"name",enabled:!0,required:!0,type:"text",label:"Please enter your name",placeholder:"Your full name"},email:{name:"email",enabled:!0,required:!1,type:"email",label:"Enter your email address",placeholder:"Optional field. Example: email@domain.com"},time:{name:"time",enabled:!0,required:!1, type:"dropdown",label:"Please choose schedule time",values:[{value:"asap",label:"Call me ASAP"},"00:00","01:00","02:00","03:00","04:00","05:00","06:00","07:00","08:00","09:00","10:00","11:00","12:00","13:00","14:00","15:00","16:00","17:00","18:00","19:00","20:00","21:00","22:00","23:00"]},phone:{name:"phone",enabled:!0,required:!0,type:"tel",label:"Please enter your phone number",placeholder:"+X-XXX-XXX-XX-XX"},description:{name:"description",enabled:!0,required:!1,type:"textarea",label:"Please leave a message with your request"}}, theme:"#000000",callbackFormText:"Please enter your phone number
and we call you back soon",closeIcon:'',callbackStateIcon:''}; d.prototype.init=function(){if(this._initialized)return!1;this.destroy();this.settings=c.extend({},this.options);this.$element.addClass("arcontactus-widget").addClass("arcontactus-message");"elastic"==this.settings.style&&this.$element.addClass("arcu-elastic");"bubble"==this.settings.style&&this.$element.addClass("arcu-bubble");0==this.settings.style.length&&this.settings.popupAnimation&&this.$element.addClass("arcu-"+this.settings.popupAnimation);"left"===this.settings.align?this.$element.addClass("left"): this.$element.addClass("right");if(this.settings.items.length){this.$element.append("\x3c!--noindex--\x3e");this._initCallbackBlock();"regular"==this.settings.mode&&this._initMessengersBlock();this.popups.length&&this._initPopups();this._initMessageButton();this._initPrompt();this._initEvents();var a=this;setTimeout(function(){a.startAnimation()},this.settings.iconsAnimationPause?this.settings.iconsAnimationPause:2E3);this.$element.append("\x3c!--/noindex--\x3e");this.$element.addClass("active")}else console.info("jquery.contactus:no items"); if("elastic"==this.settings.style||"bubble"==this.settings.style){var b=document.getElementById("arcu-morph-shape");this.svgPath=Snap(b.querySelector("svg")).select("path");this.svgPathOpen=b.getAttribute("data-morph-open");this.svgInitialPath=this.svgPath.attr("d");this.svgSteps=this.svgPathOpen.split(";");this.svgStepsTotal=this.svgSteps.length}this._initialized=!0;this.$element.trigger("arcontactus.init")};d.prototype.destroy=function(){if(!this._initialized)return!1;this.stopAnimation();this._removeEvents(); this.$element.find(".arcontactus-message-button").unbind();this.$element.html("");this.$element.removeClass();this.$element.unbind().removeData("ar.contactus");this._initialized=!1;this.$element.trigger("arcontactus.destroy")};d.prototype._initCallbackBlock=function(){var a=c("
",{class:"callback-countdown-block",style:this._colorStyle()}),b=c("
",{class:"callback-countdown-block-close",style:"background-color:"+this.settings.theme+"; color: #FFFFFF"});b.append(this.settings.closeIcon);var e= c("
",{class:"callback-countdown-block-phone"});e.append("

"+this.settings.callbackFormText+"

");var k=c("
",{id:"arcu-callback-form",action:this.settings.ajaxUrl,method:"POST"}),d=c("
",{class:"callback-countdown-block-form-group"}),f=c("",{name:"action",type:"hidden",value:this.settings.action}),g=c("",{name:"gtoken",class:"ar-g-token",type:"hidden",value:""});d.append(f);d.append(g);this._initCallbackFormFields(d);f=c("
",{class:"arcu-form-group arcu-form-button"}); g=c("