(function(t){function e(e){for(var i,o,s=e[0],c=e[1],l=e[2],d=0,u=[];d\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n '},dripColors:function(t,e,n,i,o,a,r,s){var c=100+~~a,l=160*r;return"down"!==i&&o||(c=100,l=1600),'\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n'},midArrow:function(t,e,n,i,o,a,r){var s=40*o,c=200*a,l=37*r;return i||(s=200,c=1600,l=186),'\n\n\n'},wavesFixed:function(t,e,n,i,o,a,r){return'\n\n\n'},polygonCraqued:function(t,e,n,i,o,a,r){var s=40*o,c=200*a;return i||(s=200,c=1600),'\n \n \n \n'},polygonUp:function(t,e,n,i,o,a,r){var s=20*o,c=180*a;return i||(s=200,c=1600),'\n \n \n \n \n \n \n \n \n \n \n \n'},bannerLateral:function(t,e,n,i,o,a,r){var s=20*o,c=180*a;return i||(s=200,c=1600),'\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n'},drops:function(t,e,n,i,o){return'\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n'},wavesLateral:function(t,e,n,i,o,a,r){var s=20*a,c=180*o;return i||(s=200,c=1600),'\n \n \n \n \n \n'},zigzag:function(t,e,n,i,o,a,r){return'\n \n \n'},bigArrow:function(t,e,n,i,o,a,r){var s=20*a,c=180*o,l=1604;return parseInt(c)>1600&&(l=2004),i||(s=200,c=1600,l=1604),'\n \n \n'},cloudsEffect:function(t,e,n){var i=20*n;return e||(i=100),'\n \n'},curveEffect:function(t,e,n,i,o,a,r){var s=15+5*~~o;i||(s=40);var c=this.$isDeviceIOS()?"0.2 0.2":"0.1 0.1";return'\n \n \n \n \n '},arrowReverse:function(t,e,n,i,o,a,r){var s=19+5*~~o;return i||(s=44),'\n \n \n \n \n '},pixels:function(t,e,n,i,o,a,r){var s=10+5*~~a,c=138+5*~~o;return i||(s=178,c=30),'\n \n \n \n \n '},bigRound:function(t,e,n,i,o){var a=20*o,r=5*~~i;return n||(a=200,r=19),'\n \n \n \n '},breaker:function(t,e,n,i,o,a,r){var s=5*~~o;return i||(s=151),'\n \n \n \n \n '}}},T=I,P=(n("9a00"),Object(b["a"])(T,S,C,!1,null,null,null)),z=P.exports,O=n("bc3a"),R=n.n(O),A={name:"PanelElement",components:{SeparatorPanel:z},props:["config","childs","height_start","device","id","preview","is_popup","is_footer"],data:function(){return k.data()},computed:{handlerCssProps:function(){var t={"border-radius":this.radius,background:this.backgroundColor,backgroundImage:this.backgroundImage,backgroundSize:this.backgroundSize,backgroundPosition:this.backgroundPosition,backgroundOrigin:this.backgroundOrigin,backgroundRepeat:this.backgroundRepeat,backgroundAttachment:this.backgroundAttachment,height:this.height,minHeight:this.minHeight,borderWidth:this.borderWidth,borderStyle:this.borderStyle(),borderColor:this.borderColor(),"box-shadow":this.boxShadow};return this.backgroundColor&&this.backgroundColor.includes("linear-gradient")&&delete t.backgroundImage,t},widthArrow:function(){return"desktop"==this.device?this.internal_config.arrowWidth+"%":this.internal_config.arrowWidthMobile+"%"},arrowWidth:function(){return"desktop"===this.device?parseInt(this.internal_config.arrowPanelWidth)/100*(this.internal_config.arrowWidth/2):parseInt(this.internal_config.arrowPanelWidth)/100*(this.internal_config.arrowWidthMobile/2)},leftArrow:function(){return this.device,"calc(50% - "+this.arrowWidth+"px)"},transparentArrowSide:function(){return this.device,this.arrowWidth+"px solid transparent"},colorArrowSide:function(){return this.internal_config.arrowHeight+"px solid "+this.internal_config.arrowColor},minHeight:function(){return this.internal_config.minHeight},border:function(){if("undefined"!==typeof this.internal_config.border){var t=this.internal_config.border.split(" ");"undefined"!==typeof t[2]&&this.$globalStoreHelpers.isValidHex(t[2])&&(t[2]=this.$globalStoreHelpers.hexToRGBA(t[2]),this.internal_config.border=t.join(" "))}return this.internal_config.border},borderWidth:function(){return this.internal_config.borderWidth},height:function(){return this.internal_config.height},boxShadow:function(){return this.internal_config.boxShadow},radius:function(){return this.internal_config.borderRadius},backgroundColor:function(){return this.$globalStoreHelpers.isValidHex(this.internal_config.backgroundColor)&&(this.internal_config.backgroundColor=this.$globalStoreHelpers.hexToRGBA(this.internal_config.backgroundColor)),this.internal_config.backgroundColor},backgroundImage:function(){return this.internal_config.backgroundImage&&"none"!==this.internal_config.backgroundImage?(null!==this.internal_config.backgroundImage&&(this.internal_config.backgroundImage=this.internal_config.backgroundImage.replace("omb11.com","storage.builderall.com")),'url("'+this.internal_config.backgroundImage+'")'):""},backgroundPosition:function(){return this.internal_config.backgroundImage&&"none"!==this.internal_config.backgroundImage?this.internal_config.backgroundPosition:""},backgroundOrigin:function(){return this.internal_config.backgroundImage&&"none"!==this.internal_config.backgroundImage?this.internal_config.backgroundOrigin:""},backgroundRepeat:function(){return this.internal_config.backgroundImage&&"none"!==this.internal_config.backgroundImage?this.internal_config.backgroundRepeat:""},backgroundSize:function(){return this.internal_config.backgroundImage&&"none"!==this.internal_config.backgroundImage?this.internal_config.backgroundSize:""},backgroundAttachment:function(){return this.internal_config.backgroundImage&&"none"!==this.internal_config.backgroundImage?this.internal_config.backgroundAttachment:""},internalBackgroundColor:function(){return this.$globalStoreHelpers.isValidHex(this.internal_config.internalBackgroundColor)&&(this.internal_config.internalBackgroundColor=this.$globalStoreHelpers.hexToRGBA(this.internal_config.internalBackgroundColor)),this.internal_config.internalBackgroundColor},internalBackgroundImage:function(){return this.internal_config.internalBackgroundImage&&"none"!==this.internal_config.internalBackgroundImage?(this.internal_config.internalBackgroundImage=this.internal_config.internalBackgroundImage.replace("omb11.com","storage.builderall.com"),'url("'+this.internal_config.internalBackgroundImage+'")'):""},internalBackgroundPosition:function(){return this.internal_config.internalBackgroundImage&&"none"!==this.internal_config.internalBackgroundImage?this.internal_config.internalBackgroundPosition:""},internalBackgroundOrigin:function(){return this.internal_config.internalBackgroundImage&&"none"!==this.internal_config.internalBackgroundImage?this.internal_config.internalBackgroundOrigin:""},internalBackgroundRepeat:function(){return this.internal_config.internalBackgroundImage&&"none"!==this.internal_config.internalBackgroundImage?this.internal_config.internalBackgroundRepeat:""},internalBackgroundSize:function(){return this.internal_config.internalBackgroundImage&&"none"!==this.internal_config.internalBackgroundImage?this.internal_config.internalBackgroundSize:""},internalBackgroundAttachment:function(){return this.internal_config.internalBackgroundImage&&"none"!==this.internal_config.internalBackgroundImage?this.internal_config.internalBackgroundAttachment:""},typeVideo:function(){try{if("undefined"!=typeof this.internal_config.video&&""!=this.internal_config.video)return"video/"+this.internal_config.video.split(".").pop()}catch(t){return console.log(t),""}return""},srcVideo:function(){try{if("undefined"!=typeof this.internal_config.video&&""!==this.internal_config.video)return this.internal_config.video}catch(t){return console.log(t),""}return""}},methods:{borderColor:function(){var t=this.internal_config.border.split(" "),e=Object(i["a"])(t,3),n=(e[0],e[1],e[2]);return n},borderStyle:function(){var t=this.internal_config.border.split(" "),e=Object(i["a"])(t,3),n=(e[0],e[1]);e[2];return n},changeHeight:function(t,e,n,i,o,a){var r=arguments.length>6&&void 0!==arguments[6]&&arguments[6];if("desktop"==this.device)for(var s in this.internal_config.height=e?parseInt(this.$el.getBoundingClientRect().height)+t+"px":parseInt(this.$el.getBoundingClientRect().height)-parseInt(t)+"px",this.elements)if(this.elements[s].id!=n){var c=document.getElementById(this.elements[s].id);"SimpleFormComponent"===this.elements[s].name&&(c=document.querySelectorAll('[data-id="'.concat(this.elements[s].id,'"]'))[0]),"undefined"!=typeof $(c).offset()&&parseInt($(c).offset().left)>=o-5&&parseInt($(c).position().top)>=i-5&&parseInt($(c).offset().left)<=o+a&&(r||(c.style.top=e?parseInt($(c).position().top)+t+"px":parseInt($(c).position().top)-t+"px"))}},panelDividerEffect:function(){if(this.internal_config.separatorHtml="",this.internal_config.separatorActive){var t=this.internal_config.separatorColors;this.$globalStoreHelpers.isValidHex(t["first"])&&(t["first"]=this.$globalStoreHelpers.hexToRGBA(t["first"])),this.$globalStoreHelpers.isValidHex(t["second"])&&(t["second"]=this.$globalStoreHelpers.hexToRGBA(t["second"])),this.$globalStoreHelpers.isValidHex(t["third"])&&(t["third"]=this.$globalStoreHelpers.hexToRGBA(t["third"])),this.$globalStoreHelpers.isValidHex(t["fourth"])&&(t["fourth"]=this.$globalStoreHelpers.hexToRGBA(t["fourth"])),"waves-floating"===this.internal_config.separatorEffect&&(this.internal_config.separatorHtml=this.$refs.separatorData.wavesSeparator(t["first"],t["second"],t["third"],t["fourth"],t["custom"],t["value1"],t["value2"],t["value3"],t["value4"])),"drip-up"===this.internal_config.separatorEffect&&(this.internal_config.separatorHtml=this.$refs.separatorData.dripColors(t["first"],t["second"],t["third"],"up",t["custom"],t["value1"],t["value2"],t["value3"])),"drip-down"===this.internal_config.separatorEffect&&(this.internal_config.separatorHtml=this.$refs.separatorData.dripColors(t["first"],t["second"],t["third"],"down",t["custom"],t["value1"],t["value2"],t["value3"])),"mid-arrow"===this.internal_config.separatorEffect&&(this.internal_config.separatorHtml=this.$refs.separatorData.midArrow(t["first"],t["second"],t["third"],t["custom"],t["value1"],t["value2"],t["value3"])),"waves-fixed"===this.internal_config.separatorEffect&&(this.internal_config.separatorHtml=this.$refs.separatorData.wavesFixed(t["first"],t["second"],t["third"],t["custom"],t["value1"],t["value2"],t["value3"])),"polygon"===this.internal_config.separatorEffect&&(this.internal_config.separatorHtml=this.$refs.separatorData.polygonCraqued(t["first"],t["second"],t["third"],t["custom"],t["value1"],t["value2"],t["value3"])),"polygon-up"===this.internal_config.separatorEffect&&(this.internal_config.separatorHtml=this.$refs.separatorData.polygonUp(t["first"],t["second"],t["third"],t["custom"],t["value1"],t["value2"],t["value3"])),"banner-lateral"===this.internal_config.separatorEffect&&(this.internal_config.separatorHtml=this.$refs.separatorData.bannerLateral(t["first"],t["second"],t["third"],t["custom"],t["value1"],t["value2"],t["value3"])),"drops"===this.internal_config.separatorEffect&&(this.internal_config.separatorHtml=this.$refs.separatorData.drops(t["first"],t["second"],t["custom"],t["value1"],t["value2"])),"waves-lateral"===this.internal_config.separatorEffect&&(this.internal_config.separatorHtml=this.$refs.separatorData.wavesLateral(t["first"],t["second"],t["third"],t["custom"],t["value1"],t["value2"],t["value3"])),"zigzag"===this.internal_config.separatorEffect&&(this.internal_config.separatorHtml=this.$refs.separatorData.zigzag(t["first"],t["second"],t["third"],t["custom"],t["value1"],t["value2"],t["value3"])),"big-arrow"===this.internal_config.separatorEffect&&(this.internal_config.separatorHtml=this.$refs.separatorData.bigArrow(t["first"],t["second"],t["third"],t["custom"],t["value1"],t["value2"],t["value3"])),"clouds"===this.internal_config.separatorEffect&&(this.internal_config.separatorHtml=this.$refs.separatorData.cloudsEffect(t["first"],t["custom"],t["value1"])),"curve"===this.internal_config.separatorEffect&&(this.internal_config.separatorHtml=this.$refs.separatorData.curveEffect(t["first"],t["second"],t["third"],t["custom"],t["value1"],t["value2"],t["value3"])),"arrow-reverse"===this.internal_config.separatorEffect&&(this.internal_config.separatorHtml=this.$refs.separatorData.arrowReverse(t["first"],t["second"],t["third"],t["custom"],t["value1"],t["value2"],t["value3"])),"pixels"===this.internal_config.separatorEffect&&(this.internal_config.separatorHtml=this.$refs.separatorData.pixels(t["first"],t["second"],t["third"],t["custom"],t["value1"],t["value2"],t["value3"])),"big-round"===this.internal_config.separatorEffect&&(this.internal_config.separatorHtml=this.$refs.separatorData.bigRound(t["first"],t["second"],t["custom"],t["value1"],t["value2"])),"breaker"===this.internal_config.separatorEffect&&(this.internal_config.separatorHtml=this.$refs.separatorData.breaker(t["first"],t["second"],t["third"],t["custom"],t["value1"],t["value2"],t["value3"]))}},dataTag:function(){return this.internal_config.tag?this.internal_config.tag:""},fixedFooterBanner:function(){return!(!this.internal_config.fixed||!this.is_footer)},fixedFooterBannerMobile:function(){return!(!this.internal_config.fixedMobile||!this.is_footer)&&(this.$root.$emit("setPanelScrollFixedZIndex",this.$el),!0)},fixedBanner:function(){if(this.internal_config.fixed){var t=document.querySelectorAll(".sitebuilder-element-panel:not(.hide-on-desktop)"),e=Array.from(t).find((function(t){return t.querySelector("div.panel:not([data-hide-desktop=true])")})),n=document.body.classList.contains("free-website"),i=50;return this.$el===e&&this.$root.$emit("setFixedStartPanel",n?parseInt(this.internal_config.height)+i+"px":this.internal_config.height),this.$el===e}return!1},fixedBannerMobile:function(){if(this.internal_config.fixedMobile){var t=document.querySelectorAll(".sitebuilder-element-panel"),e=Array.from(t).find((function(t){return t&&t.querySelector("div.panel:not([data-hide-mobile=true])")}));if(this.$el===e){var n=$(e).height();this.$root.$emit("setFixedStartPanel",n>parseFloat(this.internal_config.minHeight)?n:this.internal_config.minHeight,"mobile")}return this.$el===e}return!1},hideControl:function(){var t="";return this.internal_config.showMobile||(t+=" hide-on-mobile"),this.internal_config.showDesktop||(t+=" hide-on-desktop"),"undefined"!==typeof this.internal_config.hidePanel&&this.internal_config.hidePanel&&(t+=" hiden-panel"),"painelhide"==this.config.tag&&(console.log("caiu no hide"),t+=" hiden-panel"),t},duplicatePanel:function(){this.$root.$emit("duplicatePanel",this.id)},togglePanel:function(){this.$root.$emit("toggleElement",this)},showResources:function(){},changeOrderPanel:function(t,e){var n=t.$el.id,i=1===e?document.getElementById(n).nextSibling:document.getElementById(n).previousSibling;if(null===i)return!0;var o=this,a=this.$parent.changeOrderElements(o.id,n,i.id,e);o.elements={},this.$nextTick((function(){o.elements=a.childs.sort((function(t,e){return t.config.order_mobile>e.config.order_mobile?1:e.config.order_mobile>t.config.order_mobile?-1:0}))}))},controlDisplayPanelMboss:function(){var t=this,e=JSON.parse(localStorage.getItem("mboss-data"));console.log(this.config.enabled_tags),this.config.enabled_tags.forEach((function(n){e&&"undefined"!==typeof e[n.column]&&("equal"===n.operator&&e[n.column]==n.value&&(t.$el.style.display="block"),"bigger"===n.operator&&e[n.column]>n.value&&(t.$el.style.display="block"),"smaller"===n.operator&&e[n.column]e.config.order_mobile?1:e.config.order_mobile>t.config.order_mobile?-1:0})),"undefined"!==typeof n&&(this.id=n),this.internal_config=window.mergeRecursive(this.props,this.$props.config);var c=this;setTimeout((function(){1==c.internal_config.parallaxActive&&$(c.$refs.elem).jarallax({type:c.internal_config.parallaxEffect,speed:c.internal_config.parallaxSpeed/10,imgSize:c.internal_config.backgroundSize,imgPosition:c.internal_config.backgroundPosition,imgRepeat:c.internal_config.backgroundRepeat})}),1e3),c.internal_config.infiniteSliderAnimation&&setTimeout((function(){var t=document.getElementById(c.internal_config.id),e=t.querySelector(".panel-body");e.classList.add("slide-track")}),10),c.internal_config.hidePanel&&"time"===c.internal_config.typeHidePanel&&setTimeout((function(){c.internal_config.hidePanel=!1;var t=document.getElementById(c.internal_config.id);$(t).addClass("fadein")}),c.internal_config.timeHidePanel*(1e3*("seconds"===c.internal_config.unitsHidePanel?1:60))),this.panelDividerEffect(),this.$nextTick((function(){"mobile"===o.device&&o.fixedBannerMobile(),o.$nextTick((function(){var t=parseInt($(".sitebuilder-element-panel").width());o.internal_config.arrowPanelWidth=t}))}))}},B=A,M=(n("140b"),Object(b["a"])(B,w,x,!1,null,"0433acdc",null)),L=M.exports,E=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{class:t.getClassMain(),style:t.getStyle()},["page"===t.open_by?["three-tabs"===t.form_theme.theme?n("three-tabs-page",{attrs:{type_active:t.type_active,auth_types:t.auth_types,areas_register:t.areas,active_page:t.active_page},on:{change:t.changeType}}):"two-tabs"===t.form_theme.theme?n("two-tabs-page",{attrs:{type_active:t.type_active,auth_types:t.auth_types,areas_register:t.areas,active_page:t.active_page},on:{change:t.changeType}}):"two-columns"===t.form_theme.theme?n("two-columns-page",{attrs:{type_active:t.type_active,auth_types:t.auth_types,areas_register:t.areas,active_page:t.active_page},on:{change:t.changeType}}):"in-block"===t.form_theme.theme?n("in-block-page",{attrs:{type_active:t.type_active,auth_types:t.auth_types,areas_register:t.areas,active_page:t.active_page},on:{change:t.changeType}}):n("default-page",{attrs:{type_active:t.type_active,areas_register:t.areas,active_page:t.active_page,auth_types:t.auth_types},on:{change:t.changeType}})]:n("section",{staticClass:"section section-shaped section-zero min-vh-100 d-flex justify-content-center align-items-center"},[n("sweet-modal",{ref:"success_send",staticClass:"modal-login",on:{close:function(e){return t.onCloseModal()}}},["three-tabs"===t.form_theme.theme?n("three-tabs-popup",{attrs:{type_active:t.type_active,auth_types:t.auth_types,areas_register:t.areas,active_page:t.active_page},on:{change:t.changeType}}):"two-tabs"===t.form_theme.theme?n("two-tabs-popup",{attrs:{type_active:t.type_active,auth_types:t.auth_types,areas_register:t.areas,active_page:t.active_page},on:{change:t.changeType}}):"two-columns"===t.form_theme.theme?n("two-columns-popup",{attrs:{type_active:t.type_active,auth_types:t.auth_types,areas_register:t.areas,active_page:t.active_page},on:{change:t.changeType}}):"in-block"===t.form_theme.theme?n("in-block-popup",{attrs:{type_active:t.type_active,auth_types:t.auth_types,areas_register:t.areas,active_page:t.active_page},on:{change:t.changeType}}):n("default-popup",{attrs:{type_active:t.type_active,areas_register:t.areas,active_page:t.active_page,auth_types:t.auth_types},on:{change:t.changeType}})],1)],1)],2)},j=[],N=(n("4f7f"),n("75fc")),D=n("b0ae"),H=function(t){var e="";return e="publication.localhost"===location.hostname?"http://api.localhost":location.hostname.indexOf("sitebuilder-publication.kub.app.builderall.io")>-1?"https://api-sitebuilder.kub.app.builderall.io":location.hostname.indexOf("sitebuilder-publication.kub.app.builderall.info")>-1?"https://api-sitebuilder.kub.app.builderall.info":"https://cheetah-api.builderall.com","api"===t?e+"/api":e},F=new function(){this.api=function(){var t=R.a.create({baseURL:H("api"),headers:{"Content-Type":"application/json",Accept:"application/json"}});return t.interceptors.request.use((function(t){var e="undefined"!==typeof OPTIONS_INIT_SITE&&"undefined"!==typeof OPTIONS_INIT_SITE.options&&"undefined"!==typeof OPTIONS_INIT_SITE.options.lang?OPTIONS_INIT_SITE.options.lang:"pt-BR";return t.headers["Accept-Language"]=e.split("_").join("-"),t}),(function(t){return Promise.reject(t)})),t},this.authApi=function(){var t=localStorage.getItem("login-user-token")?localStorage.getItem("login-user-token"):"",e=R.a.create({baseURL:H("api"),headers:{"Content-Type":"application/json",Accept:"application/json",Authorization:"Bearer ".concat(t)}});return e.interceptors.request.use((function(t){var e="undefined"!==typeof OPTIONS_INIT_SITE&&"undefined"!==typeof OPTIONS_INIT_SITE.options&&"undefined"!==typeof OPTIONS_INIT_SITE.options.lang?OPTIONS_INIT_SITE.options.lang:"pt-BR";return t.headers["Accept-Language"]=e.split("_").join("-"),t}),(function(t){return Promise.reject(t)})),e}},U=F,q="/website/user",W=function(t){return U.api().post("".concat(q,"/register"),t)},V=function(t){return U.api().post("".concat(q,"/login"),t)},G=function(t){return U.api().post("".concat(q,"/login/token"),t)},J=function(t){return U.api().post("".concat(q,"/login/builderall"),t)},Y=function(t){return U.api().post("".concat(q,"/password/forgot"),t)},K=function(t){return U.api().get("".concat(q,"/fields/all/").concat(t))},Z=function(t){return U.authApi().post("".concat(q,"/check"),t)},Q=function(t){return U.authApi().post("".concat(q,"/logout"),t)},X=function(t){return U.authApi().put("".concat(q,"/update"),t)},tt=function(){return U.authApi().get("".concat(q,"/get-info"))},et=function(t,e,n){var i=localStorage.getItem("login-user-token")?localStorage.getItem("login-user-token"):"",o=R.a.create({baseURL:"",headers:{"Content-Type":"application/json",Accept:"application/json",Authorization:"Bearer ".concat(i)}});return o.post("/website/user/elearning/get-course/".concat(t,"/").concat(e,"/").concat(n))},nt={data:function(){return{currentPage:!1}},created:function(){},methods:{getCurrentPage:function(){var t;try{if("/"===window.location.pathname)t=pagesConfig.find((function(t,e){return null!==t&&"1"===t.initial})),t||(t=pagesConfig.find((function(t,e){return null!==t&&"0"===t.initial&&0===e})));else{var e=window.location.pathname.replace("/","");-1!==e.indexOf("page/")&&(e="page");try{var n=e.split("/");n.length>1&&(e=n.length>=2&&"blog"===n[0]?n[1]:n[0])}catch(i){console.warn("mixinRestrictArea -> getCurrentPage Split",i)}e&&(t=pagesConfig.find((function(t){return null!==t&&t.url.toLowerCase()===e.toLowerCase()})))}t||(t=pagesConfig.find((function(t,e){return null!==t&&"1"===t.initial})),t||(t=pagesConfig.find((function(t,e){return null!==t&&"0"===t.initial&&0===e})))),t&&(this.currentPage=t)}catch(i){"undefined"===typeof pagesConfig&&R.a.get(window.location.origin+"/cheetah/version").then((function(t){location.reload()})),console.warn("mixinRestrictArea -> getCurrentPage",i)}return t},getLogin:function(){return{user:JSON.Parse(localStorage.getItem("login-user")),all:JSON.Parse(localStorage.getItem("login-user-all")),token:localStorage.getItem("login-user-token")}},setLogin:function(t){t&&(localStorage.setItem("login-user",JSON.stringify(t.user)),localStorage.setItem("login-user-all",JSON.stringify(t)),localStorage.setItem("login-user-token",t.token),localStorage.setItem("login-user-token-md5",t.token_md5),localStorage.setItem("login-user-token-hash",t.token_hash),this.$store.dispatch("efetuarLogin",t),this.callRedirect())},setLogout:function(){var t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];localStorage.removeItem("login-user"),localStorage.removeItem("login-user-all"),localStorage.removeItem("login-user-token"),localStorage.removeItem("login-user-token-md5"),localStorage.removeItem("login-user-token-hash"),this.$store.dispatch("efetuarLogout"),this.callRedirect(t)},callRedirectElearning:function(t){var e=this,n=arguments.length>1&&void 0!==arguments[1]&&arguments[1];n&&(this.open_by=n);var i=t.filter((function(t){return t.redirect_config}));i.map(function(){var t=Object(u["a"])(regeneratorRuntime.mark((function t(n,i){var o,a,r,s,c;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:if("undefined"!==typeof n.redirect_config||"page"!==e.open_by){t.next=2;break}return t.abrupt("return");case 2:o=e.$isJson(n.redirect_config)?JSON.parse(n.redirect_config):{},a=localStorage.getItem("login-user-token-md5"),r=localStorage.getItem("login-user"),r=!!e.$isJson(r)&&JSON.parse(r),"elearning-course"===o.elearning.type||"popup"===e.open_by?(s="blank"===o.elearning.target&&"page"===e.open_by?"blank":"same",c="undefined"!==typeof n.restrict_area_id?n.restrict_area_id:n.id,0===i?et(c,r.email,a).then((function(t){t.data.success?"blank"===s?(window.open(t.data.url_course,"_blank"),window.location.reload()):window.location.href=t.data.url_course:e.$root.$emit("membersAreaElearningNotApproved")})):et(c,r.email,a).then((function(t){t.data.success&&("blank"===s?(window.open(t.data.url_course,"_blank"),window.location.reload()):window.location.href=t.data.url_course)}))):console.warn("ultimo else");case 7:case"end":return t.stop()}}),t)})));return function(e,n){return t.apply(this,arguments)}}())},callRedirect:function(){var t=Object(u["a"])(regeneratorRuntime.mark((function t(){var e,n,i=this,o=arguments;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:if(e=!(o.length>0&&void 0!==o[0])||o[0],n=localStorage.getItem("login-user-token-md5"),!this.redirect||"undefined"===typeof this.redirect.type){t.next=6;break}this.$root.$emit("linkAction",this.redirect),t.next=16;break;case 6:if(!(this.redirect||"popup"===this.open_by&&"undefined"!==typeof n&&null!==n&&this.redirect_elearning_course)){t.next=10;break}this.redirect_elearning_course&&"undefined"!==typeof n&&null!==n?this.callRedirectElearning(this.members_area_active):pagesConfig.forEach((function(t){+i.redirect===+t.id&&(window.location.href="/"+t.url)})),t.next=16;break;case 10:if("page"!==this.open_by||"undefined"===typeof n||null===n||!this.redirect_elearning_course){t.next=15;break}return t.next=13,this.callRedirectElearning(this.active_page.restrict_areas);case 13:t.next=16;break;case 15:e&&window.location.reload();case 16:case"end":return t.stop()}}),t,this)})));function e(){return t.apply(this,arguments)}return e}(),goToHomePage:function(){var t;try{t=pagesConfig.find((function(t,e){return null!==t&&"1"===t.initial&&"undefined"!==typeof t.is_member&&!parseInt(t.is_member)})),t||(t=pagesConfig.find((function(t,e){return null!==t&&"0"===t.initial&&0===e&&"undefined"!==typeof t.is_member&&!parseInt(t.is_member)}))),t&&parseInt(t.is_member)&&window.location.pathname!=="/"+t.url&&(window.location.href="".concat(window.origin,"/").concat(t.url))}catch(e){console.warn("gethomePage",e)}}}},it={RELEASE_AUTOMATICALLY:1,WITH_CONFIRM_MAILINGBOSS:2,MANUAL_PAYMENT:3,ACCESS_BY_BA_CREDENTIALS:4,ACCESS_BY_BA_CREDENTIALS_PREMIUM:5},ot={name:"RestrictArea",props:["notHavePermission","open_by","not_have_permission"],mixins:[nt],components:{SweetModal:D["a"],"default-popup":function(){return n.e("chunk-0e42f782").then(n.bind(null,"0c18"))},"three-tabs-popup":function(){return n.e("chunk-2d230809").then(n.bind(null,"ed0d"))},"two-tabs-popup":function(){return n.e("chunk-2d0dd430").then(n.bind(null,"8145"))},"two-columns-popup":function(){return n.e("chunk-65b86cc8").then(n.bind(null,"7548"))},"in-block-popup":function(){return n.e("chunk-2d0e24f8").then(n.bind(null,"7dc8"))},"default-page":function(){return n.e("chunk-2d0e4e8d").then(n.bind(null,"91dc"))},"three-tabs-page":function(){return n.e("chunk-2d0a3203").then(n.bind(null,"019e"))},"two-tabs-page":function(){return n.e("chunk-2d230e94").then(n.bind(null,"edfe"))},"two-columns-page":function(){return n.e("chunk-7e66b06c").then(n.bind(null,"97db"))},"in-block-page":function(){return n.e("chunk-7c3acea6").then(n.bind(null,"0a92"))}},data:function(){return{restricts_areas:[],type_active:"login",redirect:!1,areas:[],members_area_active:{},active_page:{},form_theme:{},auth_types:[],redirect_elearning_course:!1}},methods:{getStyle:function(){if((this.getBackground("color")||this.getBackground("image"))&&"page"===this.open_by){var t=this.getBackground("color")?this.getBackground("color"):"",e=this.getBackground("image")?"".concat(this.getBackground("image")):"",n=this.getBackground("repeat")?"".concat(this.getBackground("repeat")):"repeat",i=this.getBackground("size")?"".concat(this.getBackground("size")):"contain";return e?'background: url("'.concat(e,'") center center / ').concat(i," ").concat(n," border-box border-box ").concat(t):"background-color: ".concat(t)}return!1},getBackground:function(t){return!!(this.form_theme.config&&this.form_theme.config.background&&this.form_theme.config.background[t])&&this.form_theme.config.background[t]},getClassMain:function(){var t="restrict-container-main";return t+="dark"===this.form_theme.config.style?" container-appearance-dark":" container-appearance-light",t=t+" theme-"+this.form_theme.theme,"page"===this.open_by&&(t+=" type-page"),t},setAuths:function(){var t=this,e=this.getCurrentPage(),n=[];this.open_by&&"page"===this.open_by?n=e.restrict_areas:this.areas.length>0?(this.members_area_active=restrictsArea.filter((function(e){return t.areas.includes(parseInt(e.id))})),n=this.members_area_active):n=restrictsArea,this.auth_types=n.filter((function(t){return parseInt(t.type_id)!==it.ACCESS_BY_BA_CREDENTIALS&&parseInt(t.type_id)!==it.ACCESS_BY_BA_CREDENTIALS_PREMIUM})).map((function(t){return t["auth_type"]?t["auth_type"]:"register"}));var i=n.filter((function(t){return parseInt(t.type_id)===it.ACCESS_BY_BA_CREDENTIALS||parseInt(t.type_id)===it.ACCESS_BY_BA_CREDENTIALS_PREMIUM}));i.length&&!this.auth_types.includes("login-ba")&&this.auth_types.push("login-ba")},setAreas:function(t){this.setAuths(),this.members_area_active=restrictsArea.filter((function(e){return t.includes(parseInt(e.id))}));try{0===t.length&&(this.members_area_active=restrictsArea,t=restrictsArea.map((function(t){return parseInt(t.id)})))}catch(e){}this.members_area_active&&this.members_area_active.length>0&&(this.areas=t),this.auth_types=this.members_area_active.map((function(t){return t["auth_type"]?t["auth_type"]:"register"})),this.auth_types=Object(N["a"])(new Set(this.auth_types))},changeType:function(t){this.setAuths(),this.auth_types.length>0&&!this.auth_types.includes("both")&&!this.auth_types.includes("register")&&!this.auth_types.includes("login-ba")?this.type_active="login-token":1===this.auth_types.length&&this.auth_types.includes("login-ba")?this.type_active="login-ba":(this.type_active=t,this.$set(this.$data,"type_active",t))},setRedirect:function(t){this.redirect=t},setElearningRedirect:function(t){var e=this.members_area_active.filter((function(t){return t.elearning_course_id}));this.redirect_elearning_course=!("undefined"===typeof t.redirect_elearning_course||!parseInt(t.redirect_elearning_course)||!e)},getTheme:function(){this.active_page&&this.active_page.website_form&&this.active_page.website_form.length>0?this.form_theme=this.active_page.website_form[0]:this.form_theme={theme:"default",config:{style:"light"}}},callRedirectElearning:function(t){var e=this,n=t.filter((function(t){return t.redirect_config})),i=t.filter((function(t){return[it.RELEASE_AUTOMATICALLY,it.ACCESS_BY_BA_CREDENTIALS,it.ACCESS_BY_BA_CREDENTIALS_PREMIUM].includes(parseInt(t.type_id))}));n.map(function(){var t=Object(u["a"])(regeneratorRuntime.mark((function t(n,o){var a,r,s,c,l;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:if("undefined"!==typeof n.redirect_config||"page"!==e.open_by){t.next=2;break}return t.abrupt("return");case 2:a=e.$isJson(n.redirect_config)?JSON.parse(n.redirect_config):{},r=localStorage.getItem("login-user-token-md5"),localStorage.getItem("login-user-token-hash"),s=localStorage.getItem("login-user"),s=!!e.$isJson(s)&&JSON.parse(s),"elearning-course"===a.elearning.type||"popup"===e.open_by?(c="blank"===a.elearning.target&&"page"===e.open_by?"blank":"same",l="undefined"!==typeof n.restrict_area_id?n.restrict_area_id:n.id,0===o?et(l,s.email,r).then((function(t){t.data.success?"blank"===c?(window.open(t.data.url_course,"_blank"),window.location.reload()):window.location.href=t.data.url_course:0===i.length&&"popup"===e.open_by?e.$root.$emit("membersAreaElearningNotApproved"):window.location.reload()})):et(l,s.email,r).then((function(t){t.data.success?"blank"===c?(window.open(t.data.url_course,"_blank"),window.location.reload()):window.location.href=t.data.url_course:window.location.reload()}))):window.location.reload();case 8:case"end":return t.stop()}}),t)})));return function(e,n){return t.apply(this,arguments)}}())},callRedirect:function(){var t=Object(u["a"])(regeneratorRuntime.mark((function t(){var e,n,i=this,o=arguments;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:if(e=!(o.length>0&&void 0!==o[0])||o[0],n=localStorage.getItem("login-user-token-md5"),!(parseInt(this.redirect)||"popup"===this.open_by&&"undefined"!==typeof n&&null!==n&&this.redirect_elearning_course)){t.next=6;break}this.redirect_elearning_course&&this.members_area_active.filter((function(t){return t.elearning_course_id})).length>0&&"undefined"!==typeof n&&null!==n?this.callRedirectElearning(this.members_area_active):pagesConfig.forEach((function(t){+i.redirect===+t.id&&(window.location.href="/"+t.url)})),t.next=12;break;case 6:if("page"!==this.open_by||"undefined"===typeof n||null===n||!this.redirect_elearning_course){t.next=11;break}return t.next=9,this.callRedirectElearning(this.active_page.restrict_areas);case 9:t.next=12;break;case 11:e&&window.location.reload();case 12:this.$loading.hide();case 13:case"end":return t.stop()}}),t,this)})));function e(){return t.apply(this,arguments)}return e}(),getLogin:function(){return{user:JSON.Parse(localStorage.getItem("login-user")),all:JSON.Parse(localStorage.getItem("login-user-all")),token:localStorage.getItem("login-user-token")}},removeLogin:function(){this.setLogout()},back:function(){var t;try{t=pagesConfig.find((function(t,e){return null!==t&&"1"===t.initial})),t||(t=pagesConfig.find((function(t,e){return null!==t&&"0"===t.initial&&0===e}))),window.location.href="".concat(window.origin,"/").concat(t.url)}catch(e){console.warn("gethomePage",e)}},openModal:function(){this.$refs.success_send.open()},onCloseModal:function(){this.$emit("cleanMembersArea")}},created:function(){this.active_page=this.getCurrentPage(),this.getTheme(),"page"===this.open_by&&(this.setAuths(),this.changeType(this.type_active),this.active_page.restrict_areas&&(this.redirect_elearning_course=!!this.active_page.restrict_areas.find((function(t){return t.elearning_course_id}))))},beforeCreate:function(){this.restricts_areas=[]},mounted:function(){"popup"===this.open_by&&this.$refs.success_send.open()}},at=ot,rt=(n("784a"),Object(b["a"])(at,E,j,!1,null,null,null)),st=rt.exports,ct=n("9029"),lt={data:function(){return{hostMap:{".sitebuilder-publication.kub.app.builderall.io":{mboss:"https://mb5app.kub.app.builderall.io"},".sitebuilder-publication.kub.app.builderall.info":{mboss:"https://mb5app.kub.app.builderall.info"},default:{mboss:"https://app.mailingboss.com"}}}},methods:{getMailingBossUrl:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;if(null!==t){var e=Object.keys(this.hostMap).find((function(e){return t.includes(e)})),n=this.hostMap[e]||this.hostMap["default"];return n.mboss}return"https://app.mailingboss.com"}}},dt={data:function(){return{hostMap:{".sitebuilder-publication.kub.app.builderall.io":{notify:"https://notify.kub.app.builderall.io"},".sitebuilder-publication.kub.app.builderall.info":{notify:"https://notify.kub.app.builderall.info"},default:{notify:"https://notify.builderall.com"}}}},methods:{getNotifyUrl:function(){var t=window.location.host,e=Object.keys(this.hostMap).find((function(e){return t.includes(e)})),n=this.hostMap[e]||this.hostMap["default"];return n.notify}}},ut={data:function(){return{hostMap:{".sitebuilder-publication.kub.app.builderall.io":{socialProof:"https://socialproof.kub.app.builderall.io"},".sitebuilder-publication.kub.app.builderall.info":{socialProof:"https://socialproof.kub.app.builderall.info"},default:{socialProof:"https://proof.builderall.com"}}}},methods:{getSocialProofUrl:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,e=arguments.length>1?arguments[1]:void 0;if(null==e)throw new Error("the id parameter cannot be null");if(null!==t){var n=Object.keys(this.hostMap).find((function(e){return t.includes(e)})),i=this.hostMap[n]||this.hostMap["default"],o="";switch(i.socialProof){case"https://socialproof.kub.app.builderall.io":o="".concat(i.socialProof,"/js/show_notification.js?id=").concat(e,"&env=develop");break;case"https://socialproof.kub.app.builderall.info":o="".concat(i.socialProof,"/js/show_notification.js?id=").concat(e,"&env=homolog");break;default:o="".concat(i.socialProof,"/js/show_notification.js?id=").concat(e);break}return o}return"https://proof.builderall.com/js/show_notification.js?id=".concat(e)}}},ht={data:function(){return{hostMap:{".sitebuilder-publication.kub.app.builderall.io":{cheetah:"https://api-sitebuilder.kub.app.builderall.io"},".sitebuilder-publication.kub.app.builderall.info":{cheetah:"https://api-sitebuilder.kub.app.builderall.info"},default:{cheetah:"https://cheetah-api.builderall.com"}}}},methods:{getCheetahApiUrl:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;if(null!==t){var e=Object.keys(this.hostMap).find((function(e){return t.includes(e)})),n=this.hostMap[e]||this.hostMap["default"];return n.cheetah}return"https://cheetah-api.builderall.com"}}},gt=function(){var t=window.location.hostname,e=[{pattern:/builderall\.local$/,url:"https://s-checkout.builderall.local"},{pattern:/builderall\.io$/,url:"https://supercheckout.kub.app.builderall.io"},{pattern:/builderall\.info$/,url:"https://supercheckout.kub.app.builderall.info"},{pattern:/builderall\.(com|net)$/,url:"https://s-checkout.builderall.com"},{pattern:/builderallsite\.com$/,url:"https://s-checkout.builderall.com"}],n=e.find((function(e){var n=e.pattern;return n.test(t)}));return n?n.url:window.location.origin+"/sc-bridge"},pt=function t(){Object(s["a"])(this,t),Object(d["a"])(this,"get",(function(){var t=!1;if("/"!==window.location.pathname){var e=window.location.pathname.replace("/","");-1!==e.indexOf("page/")&&(e="page");try{var n=e.split("/");n.length>1&&(e=n.length>=2&&"blog"===n[0]?n[1]:n[0])}catch(i){console.warn(i)}e&&"undefined"!==typeof pagesConfig&&(t=pagesConfig.find((function(t){return null!==t&&t.url.toLowerCase()===e.toLowerCase()})))}return t||"undefined"===typeof pagesConfig||(t=pagesConfig.find((function(t){return null!==t&&"1"===t.initial})),t||(t=pagesConfig.find((function(t,e){return null!==t&&"0"===t.initial&&0===e})))),t})),this.current_page=this.get()},ft=pt,mt=function(t){var e="https://builderall.com",n={pt_BR:"https://builderall.com.br",fr_FR:"https://fr.builderall.com",nl_NL:"https://nl.builderall.com",es_ES:"https://es.builderall.com",it_IT:"https://it.builderall.com",vi_VI:"https://vi.builderall.com",pl_PL:"https://pl.builderall.com",de_DE:"https://builderall.de"};return"undefined"!==typeof n[t]?n[t]:e},bt=function(){var t=new URL(window.location.href),e=t.searchParams.get("irclickid");return!!e},yt=function(){return new URLSearchParams(window.location.search)};function _t(t,e){var n="undefined"!==typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!n){if(Array.isArray(t)||(n=vt(t))||e&&t&&"number"===typeof t.length){n&&(t=n);var i=0,o=function(){};return{s:o,n:function(){return i>=t.length?{done:!0}:{done:!1,value:t[i++]}},e:function(t){throw t},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,r=!0,s=!1;return{s:function(){n=n.call(t)},n:function(){var t=n.next();return r=t.done,t},e:function(t){s=!0,a=t},f:function(){try{r||null==n.return||n.return()}finally{if(s)throw a}}}}function vt(t,e){if(t){if("string"===typeof t)return wt(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?wt(t,e):void 0}}function wt(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,i=new Array(e);n-1&&t&&"mobile"===this.device){var i=window.Number(e.substr(n+8,2));this.popupStyleIOS=i>=15?"sweet-modal-helper-ios-15":"sweet-modal-helper-ios"}},getPlan:function(){return St["get-plan"]||(St["get-plan"]=R.a.get("".concat(this.cheetahApiUrl,"/get-plan/").concat(OPTIONS_INIT_SITE.options.id_usuario_omb10))),St["get-plan"]},callFacebookPixel:function(t){console.log(t),R.a.get("/cheetah/pixel/get").then((function(e){var n=window.location.pathname.replace("/","");if(""!==n||t||(n=pagesConfig.filter((function(t){if("1"==t.initial)return!0})),n=n[0].url),t){if(console.log("pixel event:"+t),"undefined"!==typeof facebook_pixel_token&&""!==facebook_pixel_token){var i="";""!==t.value&&(i=t.value),t.standard_event&&""!==t.standard_event&&(i=t.standard_event);var o="/cheetah/pixel/track?event_name=".concat(i,"&token=").concat(facebook_pixel_token,"&id=").concat(facebook_pixel),a=new URL(window.location.href),r=a.searchParams.get("test_event_code");return null!==r&&(o+="&test_event_code=".concat(r)),t.standard_event&&"Purchase"==t.standard_event&&(o+="¤cy=".concat(t.purchase_event_info.currency,"&value=").concat(t.purchase_event_info.value)),void R.a.get(o).then((function(t){console.log(t.data)}))}"undefined"!==typeof fbq&&(""!==t.value&&fbq("trackCustom",t.value),t.standard_event&&""!==t.standard_event&&("Purchase"==t.standard_event?fbq("track",t.standard_event,t.purchase_event_info):fbq("track",t.standard_event))),"undefined"!==typeof gtag&>ag("event",t.value)}else e.data.forEach((function(e,i){if(e.url_origin.replace("/","")!=n);else{if("undefined"!==typeof facebook_pixel_token&&""!==facebook_pixel_token){console.log("pixel event api:"+e.event);var o="";""!==e.event&&(o=e.event),e.standard_event&&""!==e.standard_event&&(o=e.standard_event);var a="/cheetah/pixel/track?event_name=".concat(o,"&token=").concat(facebook_pixel_token,"&id=").concat(facebook_pixel),r=new URL(window.location.href),s=r.searchParams.get("test_event_code");return null!==s&&(a+="&test_event_code=".concat(s)),e.standard_event&&"Purchase"==e.standard_event&&(a+="¤cy=".concat(e.purchase_event_info.currency,"&value=").concat(e.purchase_event_info.value)),void R.a.get(a).then((function(t){console.log(t.data)}))}setTimeout((function(){"undefined"!==typeof fbq&&(""!==e.event&&fbq("trackCustom",e.event),e.standard_event&&""!==e.standard_event&&("Purchase"==e.standard_event?fbq("track",e.standard_event,e.purchase_event_info):fbq("track",e.standard_event))),"undefined"!==typeof gtag&>ag("event",t)}),2e3)}}))}))},closeActivePopup:function(){var t=this;this.userPopups.forEach((function(e){t.$refs["popup"+e.id][0].$el.className.indexOf("is-visible")&&t.$refs["popup"+e.id][0].close()}))},callLinkAction:function(t){console.log(t),this.$root.$emit("linkAction",t)},setPaddingFixedZIndex:function(){var t=this;this.$nextTick((function(){var e=$(".editor-content-layout-item[data-footer-fixed=true]"),n=$(".editor-content-layout-item[data-footer-fixed-mobile=true]");if("desktop"===t.device&&e.length>0){var i=$("#editor-content > .sitebuilder-element-panel:not(.hide-on-desktop):not([data-footer-fixed=true])").last(),o=e.length;e.length>1&&($(e).each((function(t,e){t+1!==o&&($(e).removeAttr("data-footer-fixed"),$(e).removeAttr("data-footer-fixed-mobile"))})),e=e.last());var a=document.querySelector("#app").scrollHeight,r=document.querySelector("#app").offsetHeight;a>r&&$(e).addClass("scroll-fixed-z-index");var s=e.height();i!==e&&$(i).css({marginBottom:s})}if("mobile"===t.device&&n.length>0){var c=n.length,l=$("#editor-content > .sitebuilder-element-panel:not(.hide-on-Mobile):not([data-footer-fixed-mobile=true])").last();e.length>1&&($(e).each((function(t,e){t+1!==c&&($(e).removeAttr("data-footer-fixed"),$(e).removeAttr("data-footer-fixed-mobile"))})),e=e.last());a=document.querySelector("#app").scrollHeight,r=document.querySelector("#app").offsetHeight;a>r&&$(e).addClass("scroll-fixed-z-index");s=e.height();l!==e&&$(l).css({marginBottom:s})}}))},headerScroll:function(){var t=this;this.elementHeaderSecondaryActive[this.device]&&this.$nextTick((function(){var e=$(".editor-content-header-modify-on-scroll"),n=$('[data-header-modify-on-scroll="init"]'),i=$('[data-header-modify-on-scroll="on-scroll"]');setTimeout((function(){e.addClass("active");var o=n.outerHeight(!0);$("#app").scrollTop()>o?(t.showHeaderSecondary=!0,n.removeClass("is-showed"),i.addClass("is-showed"),t.$root.$emit("setFixedStartPanel",i.height(),t.device)):(t.showHeaderSecondary=!1,i.removeClass("is-showed"),n.addClass("is-showed"),t.$root.$emit("setFixedStartPanel",n.height(),t.device))}),200)}))},fixedPanel:function(){var t=this;this.$nextTick((function(){var e=$(".sitebuilder-element-panel:not(.hide-on-desktop):not([data-header-modify-on-scroll])"),n=$(".sitebuilder-element-panel:not(.hide-on-mobile):not([data-header-modify-on-scroll])");e&&e.removeClass("remove-margin-top").css("margin-top",""),n&&n.removeClass("remove-margin-top").css("margin-top","");var i=document.querySelectorAll(".sitebuilder-element-panel");if(i){var o=document.body.classList.contains("free-website"),a=50;if("desktop"===t.device&&$('[data-fixed="true"]:not([data-header-modify-on-scroll])').length>0){var r=Array.from(i).find((function(t){return t.querySelector("div.panel:not([data-hide-desktop=true])")})),s=Array.from(i).find((function(t){return!t.hasAttribute("data-fixed")&&t.querySelector("div.panel:not([data-hide-desktop=true])")})),c=!!navigator.platform.toLowerCase().match(/iphone|ipod|ipad|macintel/),l=window.navigator.userAgent,d=l.indexOf("Intel Mac OS X 10_"),u=window.Number(l.substr(d+18,2)),h=document.querySelector("#app").scrollHeight,g=document.querySelector("#app").offsetHeight;h>g&&(c&&u&&u>=14||r.classList.add("scroll-fixed-z-index")),s!==r&&(s.style.marginTop=o?parseInt(t.fixedStartPanel)+a+"px":t.fixedStartPanel)}if("mobile"===t.device&&$('[data-fixed-mobile="true"]:not([data-hide-mobile=true]):not([data-header-modify-on-scroll])').length>0){var p=Array.from(i).find((function(t){return t&&t.querySelector("div.panel:not([data-hide-mobile=true])")})),f=Array.from(i).find((function(t){return!t.hasAttribute("data-fixed-mobile")&&t.querySelector("div.panel:not([data-hide-mobile=true])")}));f!==p&&(f.style.marginTop=(o?$(p).height()+a:$(p).height())+"px")}}}))},removeLogin:function(){var t=this;this.setLogout(!1),this.membersArea.redirect&&parseInt(this.membersArea.redirect)?pagesConfig.forEach((function(e){+t.membersArea.redirect===+e.id&&(window.location.href="/"+e.url)})):window.location.reload(),this.setAuth()},checkLogin:function(){var t=this,e=this.getCurrentPage(),n=!1;if(-1!==window.location.pathname.indexOf("blog-login")){this.hasRestrictArea=!0,n=!0,this.membersArea.open_by="page";var i=this;i.$nextTick((function(){"undefined"!==typeof restrictsArea&&restrictsArea.length>0&&restrictsArea.forEach((function(t){1==t.is_blog&&i.$refs.restrictArea.setAreas([parseInt(t.id)])}))})),this.$storageON()||(this.notAllowMembersArea=!0);var o=!(!localStorage.getItem("login-user")||!localStorage.getItem("login-user-token"));if(o){var a=window.location,r=a.origin,s=a.search,c=new URLSearchParams(s),l=c.get("post");window.location.href=l?"".concat(r,"/").concat(l):r}}else{if(!e)return;if("undefined"===typeof e.restrict_areas&&R.a.get(window.location.origin+"/cheetah/version").then((function(t){location.reload()})),!e.restrict_areas&&"undefined"!==typeof restrictsArea&&restrictsArea.length<=0)return}e.restrict_areas.length>0&&(this.hasRestrictArea=!0),this.hasRestrictArea&&!this.$storageON()&&(this.notAllowMembersArea=!0);o=!(!localStorage.getItem("login-user")||!localStorage.getItem("login-user-token"));if(o&&this.hasRestrictArea||o&&"undefined"!==typeof restrictsArea&&restrictsArea.length>0||o&&"undefined"!==typeof e.is_member&&parseInt(e.is_member)||o&&n){this.$loading.show();var d=kt(kt({},JSON.parse(localStorage.getItem("login-user"))),{token:localStorage.getItem("login-user-token")});e.restrict_areas.length>0&&(d.page_id=e.id,d.page_url=e.url),Z(d).then((function(n){n.data.success?n.data.valid&&(t.isAuth=!0,e.restrict_areas.length>0&&n.data.restrict_areas&&(t.allowedRestrictArea=!!n.data.restrict_areas.permission,!t.allowedRestrictArea&&t.$refs.restrictArea&&t.$refs.restrictArea.changeType("not-have-permission")),n.data.data&&t.$refs.restrictArea.setLogin(n.data.data)):(t.setLogout(!1),t.allowedRestrictArea=!1)})).finally((function(){t.$loading.hide(),t.setAuth(),t.headerScroll(),$(".panel-constructor").removeClass("invisible")}))}},checkRestrictArea:function(){return this.getCurrentPage().restrict_areas.length>0},setAuth:function(){this.$storageON()&&localStorage.getItem("login-user")?this.auth=kt({},JSON.parse(localStorage.getItem("login-user"))):this.auth=!1},cleanMembersArea:function(){this.membersArea={redirect:"",open_by:"page"},this.actionLogin=!1,this.$nextTick((function(){$(".panel-constructor").removeClass("invisible")}))},getTheme:function(){var t=this.getCurrentPage();return t&&t.website_form&&t.website_form.length>0?t.website_form[0]:{theme:"default",config:{style:"light"}}},getMsg:function(){var t=this.getTheme();return!!(t.config&&t.config.access_denied&&t.config.access_denied.message)&&t.config.access_denied.message},getAccessDenied:function(t,e){var n=this.getTheme();return"enable"===e?n&&n.config&&n.config.access_denied&&n.config.access_denied[t]&&"undefined"!==typeof n.config.access_denied[t][e]?parseInt(n.config.access_denied[t][e]):"enable"===e:n&&n.config&&n.config.access_denied&&n.config.access_denied[t]&&"undefined"!==typeof n.config.access_denied[t][e]?n.config.access_denied[t][e]:"enable"===e},setHeaderFooter:function(){var t=this;function e(t){try{JSON.parse(t)}catch(e){return!1}return!0}function n(n,i){var o=headersConst.find((function(t){return parseInt(t.id)===parseInt(i)}));o&&o.content&&(t.elementHeader[n]=o,t.elementHeader[n]["header_id"]=+i,t.elementHeader[n].content=e(o.content)?JSON.parse(o.content):o.content)}function i(n,i){var o=headersConst.find((function(t){return parseInt(t.id)===parseInt(i)}));o&&o.content&&(t.elementHeaderSecondary[n]=o,t.elementHeaderSecondary[n]["header_id"]=+i,t.elementHeaderSecondary[n].content=e(o.content)?JSON.parse(o.content):o.content)}function o(n,i){var o=footersConst.find((function(t){return parseInt(t.id)===parseInt(i)}));o&&o.content&&(t.elementFooter[n]=o,t.elementFooter[n].content=e(o.content)?JSON.parse(o.content):o.content)}var a=this.getCurrentPage();if(a&&"undefined"!==typeof a.configs){if("undefined"!==typeof headersConst){var r=a.configs.find((function(t){return"headerSettings"===t.key}));if(r&&r.value){var s=JSON.parse(r.value);s&&(0!==s.desktop.header_id&&("undefined"!==typeof s.desktop.modify_on_scroll&&s.desktop.modify_on_scroll&&"undefined"!==typeof s.desktop.secondary_header_id&&0!==s.desktop.secondary_header_id&&(t.elementHeaderSecondaryActive["desktop"]=!0,i("desktop",s.desktop.secondary_header_id)),n("desktop",s.desktop.header_id)),0!==s.mobile.header_id&&("undefined"!==typeof s.mobile.modify_on_scroll&&s.mobile.modify_on_scroll&&"undefined"!==typeof s.mobile.secondary_header_id&&0!==s.mobile.secondary_header_id&&(t.elementHeaderSecondaryActive["mobile"]=!0,i("mobile",s.mobile.secondary_header_id)),n("mobile",s.mobile.header_id)))}}if("undefined"!==typeof footersConst){var c=a.configs.find((function(t){return"footerSettings"===t.key}));if(c&&c.value){var l=JSON.parse(c.value);l&&(0!==l.desktop.footer_id&&o("desktop",l.desktop.footer_id),0!==l.mobile.footer_id&&o("mobile",l.mobile.footer_id))}}}},yourHandlerForCloseHere:function(){this.$refs.videoModalIframe.src="",$(".cheetah-modal-video").modal("hide")},yourHandlerForCloseUserPopup:function(t){$(".sweet-modal-overlay").css("background","rgba(255, 255, 255, 0.9)");setTimeout((function(){var t=document.querySelectorAll('[element="TextComponent"] a[type]'),e=function(t){var e=t.target;"undefined"===typeof e.attributes.type&&(e=e.parentElement)};t.forEach((function(t){t.addEventListener("click",e,!1)}))}),2e3),$("#popup"+t.id+" iframe").each((function(t,e){$(e).attr("data-src",$(e).attr("src")),$(e).attr("src",null)})),t.active=0},popupOverlayStyle:function(t){try{$(".sweet-modal-overlay").css("background","rgba(255, 255, 255, 0.9)"),$(".sweet-modal").css("background","#fff"),$(".sweet-modal").css("box-shadow","0 8px 46px rgb(0 0 0 / 8%), 0 2px 6px rgb(0 0 0 / 3%)"),$(".sweet-modal").css("-webkit-box-shadow","0 8px 46px rgb(0 0 0 / 8%), 0 2px 6px rgb(0 0 0 / 3%)"),$(".sweet-action-close").css("background","none"),$(".sweet-action-close").css("color","#000");var e=JSON.parse(t.content);"object"===Object(l["a"])(e)&&"object"===Object(l["a"])(e[0])&&(e=e[0],e.hasOwnProperty("config")&&e.config.hasOwnProperty("overlayCustom")&&e.config.hasOwnProperty("overlayColor")&&e.config.overlayCustom&&($(".sweet-modal").css("background","none"),$(".sweet-modal").css("box-shadow","none"),$(".sweet-modal").css("-webkit-box-shadow","none"),$(".sweet-modal-overlay").css("background",e.config.overlayColor),$(".sweet-modal-overlay").css("background",e.config.overlayColor),$(".sweet-action-close").css("background",e.config.buttonColor),$(".sweet-action-close").css("color",e.config.buttonIcon)))}catch(n){console.log(n)}},yourHandlerForOpenUserPopup:function(t){this.popupOverlayStyle(t),t.active=1,urlParamParse.parse(500);this.$nextTick((function(){$("#popup"+t.id+" iframe").each((function(t,e){$(e).attr("src",$(e).attr("data-src"))})),$("#popup"+t.id+" .invisible").each((function(t,e){$(e).removeClass("invisible")}))})),urlParamParse.parse(500)},applyFontGroup:function(){var t=this;Object.keys(this.fontGroup).forEach((function(e){document.body.style.setProperty("--text-family-"+e,t.fontGroup[e].family),document.body.style.setProperty("--text-size-"+e,t.fontGroup[e].size),document.body.style.setProperty("--text-size-mobile-"+e,t.fontGroup[e].sizeMobile),document.body.style.setProperty("--text-color-"+e,t.fontGroup[e].color),document.body.style.setProperty("--text-line-height-"+e,t.fontGroup[e]["line-height"])}))},setMbossReference:function(t){try{if("undefined"!=typeof t.mboss_reference&&null!=t.mboss_reference){localStorage.setItem("MAILING_BOSS_TRACKING",!0),localStorage.setItem("MAILING_BOSS_REFERENCE",t.mboss_reference),localStorage.setItem("MAILING_BOSS_TOKEN",t.mboss_token);var e=document.createElement("script");e.type="text/javascript",e.src="".concat(this.mailingBossUrl,"/js/tracking.min.js"),$("head").append(e),setTimeout((function(){console.log("insert mboss");var t={leadEmail:localStorage.getItem("leadEmail"),reference:localStorage.getItem("MAILING_BOSS_REFERENCE")};MailingBossTracking.init(localStorage.getItem("MAILING_BOSS_TOKEN"),t)}),3e3)}else localStorage.removeItem("MAILING_BOSS_REFERENCE"),localStorage.removeItem("MAILING_BOSS_TOKEN"),localStorage.removeItem("MAILING_BOSS_TRACKING")}catch(n){console.log(n)}},applyBackground:function(){var t=this.bgPropsPage.backgroundColor;this.$globalStoreHelpers.isValidHex(this.bgPropsPage.backgroundColor)&&(this.bgPropsPage.backgroundColor=this.$globalStoreHelpers.hexToRGBA(this.bgPropsPage.backgroundColor)),"none"!==this.bgPropsPage.backgroundImage&&this.bgPropsPage.backgroundImage&&(t+=' url("'+this.bgPropsPage.backgroundImage+'")',t+=" "+this.bgPropsPage.backgroundPosition,t+=" / "+this.bgPropsPage.backgroundSize,t+=" "+this.bgPropsPage.backgroundRepeat,t+=" "+this.bgPropsPage.backgroundOrigin,"undefined"!==typeof this.bgPropsPage.backgroundAttachment&&(t+=" "+this.bgPropsPage.backgroundAttachment)),document.body.style.setProperty("--bg-page",t)},applyTags:function(){var t=this;Object.keys(this.tagPage).forEach((function(e){var n=t.tagPage[e],i=60*~~n.min*1e3+1e3*~~n.sec;setTimeout((function(){var t={email:localStorage.getItem("leadEmail"),list:n.list,tag_value:e,websiteID:websiteID};R()({method:"post",url:"/cheetah/tag",data:t}).then((function(t){console.log(t)}))}),i)}))},applyPopups:function(){var t=function(){function t(){Object(s["a"])(this,t),this.functionMap={}}return Object(c["a"])(t,[{key:"addEventListener",value:function(t,e){this.functionMap[t]=e,document.addEventListener(t.split(".")[0],this.functionMap[t])}},{key:"removeEventListener",value:function(t){document.removeEventListener(t.split(".")[0],this.functionMap[t]),delete this.functionMap[t]}}]),t}(),e=new t,n=this,i=this.isMobile?this.popupSettings.mobile:this.popupSettings.desktop;function o(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],i="";if("undefined"===typeof t.overlay||parseInt(t.overlay)||(i+="overlay-none "),"undefined"!==typeof t.size&&"full-size"===t.size&&(i+="full-size ","undefined"!==typeof t.maxHeight&&t.maxHeight&&"undefined"!==typeof t.direction&&"center"!==t.direction&&(i=i+"max-height-"+t.maxHeight),"undefined"!==typeof t.direction&&t.direction&&(i=i+" direction-"+t.direction)),e)return i;n.popupStyle=i}this.userPopups.forEach((function(t){if(i.popup_id==t.id){if(t.classList=o(i,!0),"time"===i.type&&setTimeout((function(){n.$refs["popup"+t.id][0].open()}),1e3*(parseInt(60*i.min)+parseInt(i.sec))),"scroll"===i.type){var a=function(){function e(t){var e=t.parentNode,n=(t.scrollTop||e.scrollTop)/(e.scrollHeight-e.clientHeight)*100;return parseInt(n)}var o=e(document.getElementById("editor-content"));o>=i.scroll&&!n.scrollPopup&&(n.$refs["popup"+t.id][0].open(),n.scrollPopup=!0)};document.addEventListener("scroll",a,!0)}"exit"===i.type&&e.addEventListener("mouseout.popup",(function(i){null!==i.toElement&&"undefined"!==typeof i.toElement||null!==i.relatedTarget||"INPUT"===i.target.tagName||(n.$refs["popup"+t.id][0].open(),e.removeEventListener("mouseout.popup",(function(){})))}))}}))},printScripts:function(t){if(!this.isCreatedBtnReset&&"undefined"!==typeof gdprSettings&&gdprSettings.active&&gdprSettings.activeResetCookies){var e=this,n=$("