"],_default:[0,"",""]});function x(e,t){var n=void 0!==e.getElementsByTagName?e.getElementsByTagName(t||"*"):void 0!==e.querySelectorAll?e.querySelectorAll(t||"*"):[];return void 0===t||t&&c(e,t)?C.merge([e],n):n}function ke(e,t){for(var n=0,r=e.length;n",""]);var Ce=/<|?\w+;/;function Te(e,t,n,r,i){for(var a,o,s,c,l,u=t.createDocumentFragment(),h=[],f=0,d=e.length;f\s*$/g;function je(e,t){return c(e,"table")&&c(11!==t.nodeType?t:t.firstChild,"tr")&&C(e).children("tbody")[0]||e}function Le(e){return e.type=(null!==e.getAttribute("type"))+"/"+e.type,e}function Ne(e){return"true/"===(e.type||"").slice(0,5)?e.type=e.type.slice(5):e.removeAttribute("type"),e}function De(e,t){var n,r,i,a;if(1===t.nodeType){if(y.hasData(e)&&(a=y.get(e).events))for(i in y.remove(t,"handle events"),a)for(n=0,r=a[i].length;n",2===e.childNodes.length),C.parseHTML=function(e,t,n){var r;return"string"!=typeof e?[]:("boolean"==typeof t&&(n=t,t=!1),t||(m.createHTMLDocument?((r=(t=k.implementation.createHTMLDocument("")).createElement("base")).href=k.location.href,t.head.appendChild(r)):t=k),r=!n&&[],(n=Y.exec(e))?[t.createElement(n[1])]:(n=Te([e],t,r),r&&r.length&&C(r).remove(),C.merge([],n.childNodes)))},C.offset={setOffset:function(e,t,n){var r,i,a,o,s=C.css(e,"position"),c=C(e),l={};"static"===s&&(e.style.position="relative"),a=c.offset(),r=C.css(e,"top"),o=C.css(e,"left"),s=("absolute"===s||"fixed"===s)&&-1<(r+o).indexOf("auto")?(i=(s=c.position()).top,s.left):(i=parseFloat(r)||0,parseFloat(o)||0),null!=(t=v(t)?t.call(e,n,C.extend({},a)):t).top&&(l.top=t.top-a.top+i),null!=t.left&&(l.left=t.left-a.left+s),"using"in t?t.using.call(e,l):c.css(l)}},C.fn.extend({offset:function(t){var e,n;return arguments.length?void 0===t?this:this.each(function(e){C.offset.setOffset(this,t,e)}):(n=this[0])?n.getClientRects().length?(e=n.getBoundingClientRect(),n=n.ownerDocument.defaultView,{top:e.top+n.pageYOffset,left:e.left+n.pageXOffset}):{top:0,left:0}:void 0},position:function(){if(this[0]){var e,t,n,r=this[0],i={top:0,left:0};if("fixed"===C.css(r,"position"))t=r.getBoundingClientRect();else{for(t=this.offset(),n=r.ownerDocument,e=r.offsetParent||n.documentElement;e&&(e===n.body||e===n.documentElement)&&"static"===C.css(e,"position");)e=e.parentNode;e&&e!==r&&1===e.nodeType&&((i=C(e).offset()).top+=C.css(e,"borderTopWidth",!0),i.left+=C.css(e,"borderLeftWidth",!0))}return{top:t.top-i.top-C.css(r,"marginTop",!0),left:t.left-i.left-C.css(r,"marginLeft",!0)}}},offsetParent:function(){return this.map(function(){for(var e=this.offsetParent;e&&"static"===C.css(e,"position");)e=e.offsetParent;return e||_})}}),C.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},function(t,i){var a="pageYOffset"===i;C.fn[t]=function(e){return h(this,function(e,t,n){var r;if(P(e)?r=e:9===e.nodeType&&(r=e.defaultView),void 0===n)return r?r[i]:e[t];r?r.scrollTo(a?r.pageXOffset:n,a?n:r.pageYOffset):e[t]=n},t,e,arguments.length)}}),C.each(["top","left"],function(e,n){C.cssHooks[n]=Je(m.pixelPosition,function(e,t){if(t)return t=O(e,n),Ke.test(t)?C(e).position()[n]+"px":t})}),C.each({Height:"height",Width:"width"},function(o,s){C.each({padding:"inner"+o,content:s,"":"outer"+o},function(r,a){C.fn[a]=function(e,t){var n=arguments.length&&(r||"boolean"!=typeof e),i=r||(!0===e||!0===t?"margin":"border");return h(this,function(e,t,n){var r;return P(e)?0===a.indexOf("outer")?e["inner"+o]:e.document.documentElement["client"+o]:9===e.nodeType?(r=e.documentElement,Math.max(e.body["scroll"+o],r["scroll"+o],e.body["offset"+o],r["offset"+o],r["client"+o])):void 0===n?C.css(e,t,i):C.style(e,t,n,i)},s,n?e:void 0,n)}})}),"function"==typeof define&&At.amdO&&define("jquery",[],function(){return C}),C.noConflict=function(){},C}(o=P).maskWatchers={},o.fn.mask=function(e,t){function n(){if(W(this,e,t))return o(this).data("mask",new G(this,e,t))}t=t||{};var r=this.selector,i=(a=o.jMaskGlobals).watchInterval,a=t.watchInputs||a.watchInputs;return o(this).each(n),r&&""!==r&&a&&(clearInterval(o.maskWatchers[r]),o.maskWatchers[r]=setInterval(function(){o(document).find(r).each(n)},i)),this},o.fn.masked=function(e){return this.data("mask").getMaskedVal(e)},o.fn.unmask=function(){return clearInterval(o.maskWatchers[this.selector]),delete o.maskWatchers[this.selector],this.each(function(){var e=o(this).data("mask");e&&e.remove().removeData("mask")})},o.fn.cleanVal=function(){return this.data("mask").getCleanVal()},o.applyDataMask=function(e){((e=e||o.jMaskGlobals.maskElements)instanceof o?e:o(e)).filter(o.jMaskGlobals.dataMaskAttr).each(q)},n={maskElements:"input,td,span,div",dataMaskAttr:"*[data-mask]",dataMask:!0,watchInterval:300,watchInputs:!0,keyStrokeCompensation:10,useInput:!/Chrome\/[2-4][0-9]|SamsungBrowser/.test(window.navigator.userAgent)&&((gt=(n="on"+(n="input"))in(P=document.createElement("div")))||(P.setAttribute(n,"return;"),gt="function"==typeof P[n]),P=null,gt),watchDataMask:!1,byPassKeys:[9,16,17,18,36,37,38,39,40,91],translation:{0:{pattern:/\d/},9:{pattern:/\d/,optional:!0},"#":{pattern:/\d/,recursive:!0},A:{pattern:/[a-zA-Z0-9]/},S:{pattern:/[a-zA-Z]/}}},o.jMaskGlobals=o.jMaskGlobals||{},(n=o.jMaskGlobals=o.extend(!0,{},n,o.jMaskGlobals)).dataMask&&o.applyDataMask(),setInterval(function(){o.jMaskGlobals.watchDataMask&&o.applyDataMask()},n.watchInterval);var s=o;function G(u,g,w){var i,b={invalid:[],getCaret:function(){try{var e,t=0,n=u.get(0),r=document.selection,i=n.selectionStart;return r&&-1===navigator.appVersion.indexOf("MSIE 10")?((e=r.createRange()).moveStart("character",-b.val().length),t=e.text.length):!i&&"0"!==i||(t=i),t}catch(e){}},setCaret:function(e){try{var t,n;u.is(":focus")&&((n=u.get(0)).setSelectionRange?n.setSelectionRange(e,e):((t=n.createTextRange()).collapse(!0),t.moveEnd("character",e),t.moveStart("character",e),t.select()))}catch(e){}},events:function(){u.on("keydown.mask",function(e){u.data("mask-keycode",e.keyCode||e.which),u.data("mask-previus-value",u.val()),u.data("mask-previus-caret-pos",b.getCaret()),b.maskDigitPosMapOld=b.maskDigitPosMap}).on(o.jMaskGlobals.useInput?"input.mask":"keyup.mask",b.behaviour).on("paste.mask drop.mask",function(){setTimeout(function(){u.keydown().keyup()},100)}).on("change.mask",function(){u.data("changed",!0)}).on("blur.mask",function(){a===b.val()||u.data("changed")||u.trigger("change"),u.data("changed",!1)}).on("blur.mask",function(){a=b.val()}).on("focus.mask",function(e){!0===w.selectOnFocus&&o(e.target).select()}).on("focusout.mask",function(){w.clearIfNotMatch&&!i.test(b.val())&&b.val("")})},getRegexMask:function(){for(var e,t,n,r,i,a=[],o=0;oevento",google:{isTriggerable:!1},facebook:{isTriggerable:!1}},integration:{prependSystem:!0,plataforms:{rdStationCrm:{isTriggerable:!1},rdStationMarketing:{isTriggerable:!1},webhook:{isTriggerable:!1},kommo:{isTriggerable:!1}}},link:{},message:{},options:{},redirect:{prependSystem:"O lead será redirecionado aqui, você não.",isCancelShown:!0,allowCurrentWindowChange:!1},select:{},sent:{},system:{},termsAgree:{prependSystem:"Essa é uma mensagem do sistema. Elas são mostradas apenas nessa demonstração."},whatsapp:{cycleNumbersLocally:!0},city:{}}}},a=(_inherits(z,_wrapNativeSuper(Error)),U=_createSuper(z),_createClass(z));function z(e){var t=1)/gi," ").replace(/\>[\r\n ]+\<").replace(/(<.*?>)|\s+/g,function(e,t){return t||" "}).trim()}function Ye(e,t){var n,r=e.split("?")[0],e=e.split("?")[1];return t?(n=r+"?",Object.entries(t).forEach(function(e){var e=_slicedToArray(e,2),t=e[0],e=e[1];n+="&".concat(t,"=")+encodeURIComponent(e)}),n.replace("?&","?")):e?JSON.parse('{"'+e.replace(/&/g,'","').replace(/=/g,'":"')+'"}',function(e,t){return""===e?t:decodeURIComponent(t)}):null}function u(e){return Qe.apply(this,arguments)}function Qe(){return(Qe=_asyncToGenerator(_regeneratorRuntime().mark(function e(t){var n,r,i=arguments;return _regeneratorRuntime().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:n=1vazia"},event:{google:{name:"leadstaker"}},logs:{packageInterval:500,colors:{emergency:"[41m[30m",alert:"[43m[30m",error:"[101m[30m",warning:"[103m[30m",info:"[44m[30m",notice:"[104m[30m",compatibility:"[45m",debug:"[47m[30m"}},terms:{text:'Clicando acima você aceita nossas Políticas de privacidade ')},select:{text:"Selecione uma opção"}},bt={text:{html:"text",placeholder:""},number:{html:"number",placeholder:""},tel:{html:"tel",inputmode:"tel",placeholder:"Telefone / celular"},email:{html:"email",inputmode:"email",placeholder:"E-mail"},cep:{html:"cep",inputmode:"numeric",placeholder:"CEP"},"cpf-cnpj":{html:"cpf-cnpj",inputmode:"numeric",placeholder:"CPF / CNPJ"},cpf:{html:"cpf",inputmode:"numeric",placeholder:"CPF"},cnpj:{html:"cnpj",inputmode:"numeric",placeholder:"CNPJ"},passport:{html:"passport",placeholder:"Passaporte"},date:{html:"text",placeholder:"dia / mês / ano"},url:{html:"url",inputmode:"url",placeholder:"URL"},rg:{html:"rg",placeholder:"(RG) Registro Geral"},city:{html:"text",placeholder:"Nome da cidade"}},kt="Oops... Há algo de errado com o CNPJ informado.",Ct="O CNPJ informado é muito curto",Tt="Oops... Há algo de errado com o passaporte informado.",Et="Oops... Há algo de errado com a URL informada.",xt="Oops... Há algo de errado com a data informada.",St="Oops... Cidade indisponível",Rt="Oops... Esse e-mail é inválido",Ot="Oops... Há algo de errado com o telefone informado.",It="Oops... O telefone informado é muito curto.",jt="Oops... Há algo de errado com o CEP informado.",Lt="Oops... Há algo de errado com o CPF informado.",Nt="O CPF informado é muito curto",Dt={web:{image:{source:"https://cdn.leadstaker.com/icons/link.svg",alt:"Acesse"},cta:"Saiba Mais",redirect:"Redirecionando você para o link"},whatsapp:{image:{source:"https://cdn.leadstaker.com/icons/whatsapp.svg",alt:"whatsapp"},cta:"Falar por WhatsApp",redirect:"Redirecionando você para WhatsApp"}},Pt={rdStationCrm:"RD Station CRM",rdStationMarketing:"RD Station Marketing",webhook:"Webhook",kommo:"Kommo CRM"},Mt=["body"],Gt=(_createClass(qt,[{key:"fill",value:function(e){var t,r=this;this.strict=e.strict,this.demo=e.demo,null!=e&&null!=(t=e.urls)&&t.allowed&&null!=e&&null!=(t=e.urls)&&t.allowed.forEach(function(e){r.allow(e.url,e.methods)}),null!=e&&null!=(t=e.urls)&&t.forbidden&&null!=e&&null!=(t=e.urls)&&t.forbidden.forEach(function(e){r.forbid(e.url,e.methods)}),null!=e&&null!=(t=e.urls)&&t.simulated&&Object.entries(null==e||null==(t=e.urls)?void 0:t.simulated).forEach(function(e){var e=_slicedToArray(e,2),n=e[0],e=e[1];Object.entries(e).forEach(function(e){var e=_slicedToArray(e,2),t=e[0],e=e[1];r.simulate(n,t,e)})})}},{key:"allowed",get:function(){return l(this,Ft,"f")}},{key:"forbidden",get:function(){return l(this,Ut,"f")}},{key:"simulated",get:function(){return l(this,Ht,"f")}},{key:"clear",value:function(e,t){var n=this;t.forEach(function(t){l(n,Ht,"f")[e]&&delete l(n,Ht,"f")[e][t],l(n,Ft,"f")[e]&&(l(n,Ft,"f")[e]=l(n,Ft,"f")[e].filter(function(e){return e!==t})),l(n,Ut,"f")[e]&&(l(n,Ut,"f")[e]=l(n,Ut,"f")[e].filter(function(e){return e!==t}))})}},{key:"allow",value:function(t,e){var n=this;l(this,Ft,"f")[t]||(l(this,Ft,"f")[t]=[]),this.clear(t,e),e.forEach(function(e){return l(n,Ft,"f")[t].push(e)})}},{key:"forbid",value:function(t,e){var n=this;l(this,Ut,"f")[t]||(l(this,Ut,"f")[t]=[]),this.clear(t,e),e.forEach(function(e){return l(n,Ut,"f")[t].push(e)})}},{key:"simulate",value:function(e,t,n){l(this,Ht,"f")[e]||(l(this,Ht,"f")[e]={}),this.clear(e,[t]),l(this,Ht,"f")[e][t]=n}},{key:"status",value:function(e,t){var e=String(e).replace(yt[LTK_DATA.environment],"").split("?")[0],n={allowed:void 0},r=l(this,Ft,"f")[e]&&l(this,Ft,"f")[e].includes(t),i=l(this,Ut,"f")[e]&&l(this,Ut,"f")[e].includes(t),e=l(this,Ht,"f")[e]&&l(this,Ht,"f")[e][t];return this.strict?n.allowed=!!r&&!i:n.allowed=!i,e&&(n.simulation=e),n}}]),qt);function qt(e){_classCallCheck(this,qt),Ft.set(this,{}),Ut.set(this,{}),Ht.set(this,{}),this.strict=!1,this.demo=!1,this.__Config=e.Config}var Wt,Ft=new WeakMap,Ut=new WeakMap,Ht=new WeakMap,n=_createClass(function e(){_classCallCheck(this,e),this.prependSystem=!1}),zt=_createClass(function e(){_classCallCheck(this,e)}),Bt=(_inherits(Kt,n),Wt=_createSuper(Kt),_createClass(Kt,[{key:"fill",value:function(e){this.prependSystem=e.prependSystem||!1,this.verification.strict=e.verification.strict}}]),Kt);function Kt(){var e;return _classCallCheck(this,Kt),(e=Wt.apply(this,arguments)).verification=new zt,e}_inherits(Jt,n),Vt=_createSuper(Jt),_createClass(Jt,[{key:"fill",value:function(e){this.prependSystem=e.prependSystem||!1}}]);var Vt,$t=Jt;function Jt(){return _classCallCheck(this,Jt),Vt.apply(this,arguments)}_inherits(Zt,n),Yt=_createSuper(Zt),_createClass(Zt,[{key:"fill",value:function(e){this.prependSystem=e.prependSystem||!1}}]);var Yt,Qt=Zt;function Zt(){return _classCallCheck(this,Zt),Yt.apply(this,arguments)}var Xt,en=_createClass(function e(){_classCallCheck(this,e)}),tn=_createClass(function e(){_classCallCheck(this,e)}),nn=(_inherits(rn,n),Xt=_createSuper(rn),_createClass(rn,[{key:"fill",value:function(e){this.prependSystem=e.prependSystem||!1,this.google.isTriggerable=e.google.isTriggerable,this.facebook.isTriggerable=e.facebook.isTriggerable}}]),rn);function rn(){var e;return _classCallCheck(this,rn),(e=Xt.apply(this,arguments)).google=new en,e.facebook=new tn,e}_inherits(sn,n),an=_createSuper(sn),_createClass(sn,[{key:"fill",value:function(e){this.prependSystem=e.prependSystem,this.plataforms=e.plataforms}}]);var an,on=sn;function sn(){return _classCallCheck(this,sn),an.apply(this,arguments)}_inherits(un,n),cn=_createSuper(un),_createClass(un,[{key:"fill",value:function(e){this.prependSystem=e.prependSystem||!1}}]);var cn,ln=un;function un(){return _classCallCheck(this,un),cn.apply(this,arguments)}_inherits(dn,n),hn=_createSuper(dn),_createClass(dn,[{key:"fill",value:function(e){this.prependSystem=e.prependSystem||!1}}]);var hn,fn=dn;function dn(){return _classCallCheck(this,dn),hn.apply(this,arguments)}_inherits(mn,n),pn=_createSuper(mn),_createClass(mn,[{key:"fill",value:function(e){this.prependSystem=e.prependSystem,this.plataforms=e.plataforms}}]);var pn,vn=mn;function mn(){return _classCallCheck(this,mn),pn.apply(this,arguments)}_inherits(gn,n),yn=_createSuper(gn),_createClass(gn,[{key:"fill",value:function(e){this.prependSystem=e.prependSystem||!1}}]);var yn,_n=gn;function gn(){return _classCallCheck(this,gn),yn.apply(this,arguments)}_inherits(kn,n),wn=_createSuper(kn),_createClass(kn,[{key:"fill",value:function(e){this.prependSystem=e.prependSystem||!1,this.isCancelShown=e.isCancelShown,this.allowCurrentWindowChange=e.allowCurrentWindowChange}}]);var wn,bn=kn;function kn(){return _classCallCheck(this,kn),wn.apply(this,arguments)}_inherits(En,n),Cn=_createSuper(En),_createClass(En,[{key:"fill",value:function(e){this.prependSystem=e.prependSystem||!1}}]);var Cn,Tn=En;function En(){return _classCallCheck(this,En),Cn.apply(this,arguments)}_inherits(Rn,n),xn=_createSuper(Rn),_createClass(Rn,[{key:"fill",value:function(e){this.prependSystem=e.prependSystem||!1}}]);var xn,Sn=Rn;function Rn(){return _classCallCheck(this,Rn),xn.apply(this,arguments)}_inherits(In,n),An=_createSuper(In),_createClass(In,[{key:"fill",value:function(e){}}]);var An,On=In;function In(){return _classCallCheck(this,In),An.apply(this,arguments)}_inherits(Nn,n),jn=_createSuper(Nn),_createClass(Nn,[{key:"fill",value:function(e){this.prependSystem=e.prependSystem||!1}}]);var jn,Ln=Nn;function Nn(){return _classCallCheck(this,Nn),jn.apply(this,arguments)}_inherits(Mn,n),Dn=_createSuper(Mn),_createClass(Mn,[{key:"fill",value:function(e){this.prependSystem=e.prependSystem||!1,this.cycleNumbersLocally=e.cycleNumbersLocally}}]);var Dn,Pn=Mn;function Mn(){return _classCallCheck(this,Mn),Dn.apply(this,arguments)}_inherits(Wn,n),Gn=_createSuper(Wn),_createClass(Wn,[{key:"fill",value:function(e){this.prependSystem=e.prependSystem||!1}}]);var Gn,qn=Wn;function Wn(){return _classCallCheck(this,Wn),Gn.apply(this,arguments)}_createClass(Un,[{key:"fill",value:function(e){this.answer.fill(e.answer),this.complete.fill(e.complete),this.condition.fill(e.condition),this.event.fill(e.event),this.integration.fill(e.integration),this.link.fill(e.link),this.message.fill(e.message),this.notification.fill(e.notification),this.options.fill(e.options),this.redirect.fill(e.redirect),this.select.fill(e.select),this.sent.fill(e.sent),this.system.fill(e.system),this.termsAgree.fill(e.termsAgree),this.whatsapp.fill(e.whatsapp),this.city.fill(e.whatsapp)}}]);var Fn=Un;function Un(e){_classCallCheck(this,Un),this.__Config=e.Config,this.answer=new Bt,this.complete=new $t,this.condition=new Qt,this.event=new nn,this.integration=new on,this.link=new ln,this.message=new fn,this.notification=new vn,this.options=new _n,this.redirect=new bn,this.select=new Tn,this.sent=new Sn,this.system=new On,this.termsAgree=new Ln,this.whatsapp=new Pn,this.city=new qn}_createClass(zn,[{key:"fill",value:function(e){this.displace=e.displace}}]);var Hn=zn;function zn(e){_classCallCheck(this,zn),this.__Config=e.Config}_createClass(Kn,[{key:"template",get:function(){var e=this,t=$n,n="f",r=void 0;if("a"===n&&!r)throw new TypeError("Private accessor was defined without a getter");if("function"==typeof t?e===t&&r:t.has(e))return"m"===n?r:"a"===n?r.call(e):r?r.value:t.get(e);throw new TypeError("Cannot read private member from an object whose class did not declare it")},set:function(e){(function(e,t,n,r,i){if("m"===r)throw new TypeError("Private method is not writable");if("a"===r&&!i)throw new TypeError("Private accessor was defined without a setter");if("function"==typeof t?e===t&&i:t.has(e))return"a"===r?i.call(e,n):i?i.value=n:t.set(e,n);throw new TypeError("Cannot write private member to an object whose class did not declare it")})(this,$n,e,"f"),this.requests.fill(e.requests),this.blocks.fill(e.blocks),this.chats.fill(e.chats)}},{key:"usePreset",value:function(e){this.template=H[e]}}]);var Bn=Kn;function Kn(){var e=0\n
\n \n \n
\n'),message:t(''),termsAgree:t('\n\n\n Clicando acima você aceita nossas\n \n Políticas de privacidade\n \n'),answer:t('
'),blocks:nr},rr=(_createClass(ir,[{key:"promise",get:function(){return Zn(this,cr,"f")}},{key:"result",get:function(){return Zn(this,lr,"f")}}]),ir);function ir(){var t=this,n=(_classCallCheck(this,ir),cr.set(this,void 0),lr.set(this,void 0),this);Qn(this,cr,new Promise(function(e,t){n.resolve=e,n.reject=t}),"f"),Zn(this,cr,"f").then(function(e){return Qn(t,lr,e,"f")})}function ar(e,t,n,r,i){if("m"===r)throw new TypeError("Private method is not writable");if("a"===r&&!i)throw new TypeError("Private accessor was defined without a setter");if("function"==typeof t?e===t&&i:t.has(e))return"a"===r?i.call(e,n):i?i.value=n:t.set(e,n);throw new TypeError("Cannot write private member to an object whose class did not declare it")}function or(e,t,n,r){if("a"===n&&!r)throw new TypeError("Private accessor was defined without a getter");if("function"==typeof t?e===t&&r:t.has(e))return"m"===n?r:"a"===n?r.call(e):r?r.value:t.get(e);throw new TypeError("Cannot read private member from an object whose class did not declare it")}var sr,cr=new WeakMap,lr=new WeakMap,r=(_createClass(ur,[{key:"visible",get:function(){return or(this,_r,"f")},set:function(e){ar(this,_r,e,"f")}},{key:"clone",value:function(e){var t;if(or(this,_r,"f"))return(t=or(this,pr,"f").clone(!0,!0)).attr("data-chat",e),or(this,vr,"f").push(t),t}},{key:"__query",get:function(){return or(this,pr,"f")}},{key:"queries",get:function(){var t=s([].concat(_toConsumableArray(or(this,vr,"f").map(function(e){return e[0]})),[or(this,pr,"f")[0]]));return["prependTo","appendTo"].forEach(function(e){delete t[e]}),t}},{key:"throb",value:(sr=_asyncToGenerator(_regeneratorRuntime().mark(function e(t){var n,r,i=this;return _regeneratorRuntime().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return t=t||qe(900,1500),n=this.queries.find(".ltk_content"),r=this.queries.find(".ltk_throbbing"),e.abrupt("return",(this.__throb.promise||(this.__throb.promise=new rr),n.addClass("ltk_hidden"),r.length||(r=s('
'),(e=C(_assertThisInitialized(r),T,"f").find(".ltk_input")).on("input",ct(function(){r.search()},600)),e[0].placeholder=r.__Flow.translator.translate(bt.city.placeholder),e.on("input",function(e){e=s(e.target).val(),r.queries.find(".ltk_input").val(e)}),C(_assertThisInitialized(r),T,"f").find(".ltk_caption").text(r.__Flow.translator.translate("Escolha uma cidade")),C(_assertThisInitialized(r),T,"f").find(".ltk_submit.ltk_searchBtn").on("click",function(e){s(e.target).parents("[data-chat]").find(".ltk_input:visible")[0].focus(),r.search()}),C(_assertThisInitialized(r),T,"f").find(".ltk_submit.ltk_clearBtn").on("click",function(){r.collapse()}),C(_assertThisInitialized(r),T,"f").find(".ltk_input").on("focus",_asyncToGenerator(_regeneratorRuntime().mark(function e(){return _regeneratorRuntime().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:C(_assertThisInitialized(r),Ya,"f")&&!dt()&&r.search();case 1:case"end":return e.stop()}},e)}))),C(_assertThisInitialized(r),T,"f").on("keypress",function(e){"Enter"==e.key&&r.search()}),C(_assertThisInitialized(r),T,"f").find(".ltk_city").on("click",function(e){var t,n=(e=s(e.target)).hasClass("ltk_option")?e:e.parents("ltk_option");n.length&&(t=e.parents("[data-chat]").attr("data-chat"),e=e.attr("data-st")+" (".concat(e.attr("data-state"),") - ")+e.attr("data-city"),n=n.text().trim(),r.submit({chat:t,value:e,text:n}))}),C(_assertThisInitialized(r),Ya,"f")||C(_assertThisInitialized(r),T,"f").find(".ltk_caption").addClass("ltk_hidden"),r}function Xa(e){var t,n;return _classCallCheck(this,Xa),n=ya.call(this,e),Ha.set(_assertThisInitialized(n),n.__query),za.set(_assertThisInitialized(n),n.__throb),Ba.set(_assertThisInitialized(n),n.__result),n.visible=!1,n.email=e.content.email,n.printSystem=function(){_get2((t=_assertThisInitialized(n),_getPrototypeOf(Xa.prototype)),"printSystem",t).call(t,"Aqui é disparada uma notificação!")},n.notify(),n.resolve(),n}function eo(e){var t,n;return _classCallCheck(this,eo),t=ga.call(this,e),Ga.set(_assertThisInitialized(t),t.__query),qa.set(_assertThisInitialized(t),t.__throb),Wa.set(_assertThisInitialized(t),t.__result),Fa.set(_assertThisInitialized(t),void 0),Ua.set(_assertThisInitialized(t),new rr),t.visible=!1,e.content.interactive?(n={_id:"link_"+t._id,type:"link",content:{text:e.content.text,plataform:"whatsapp",delay:e.content.delay}},t.__Flow.addChildBlock(n),function(e,t,n,r,i){if("m"===r)throw new TypeError("Private method is not writable");if("a"===r&&!i)throw new TypeError("Private accessor was defined without a setter");if("function"==typeof t?e===t&&i:t.has(e))return"a"===r?i.call(e,n):i?i.value=n:t.set(e,n);throw new TypeError("Cannot write private member to an object whose class did not declare it")}(_assertThisInitialized(t),Fa,t.__Flow.printBlock(n._id),"f"),t.throb=function(){return da(_assertThisInitialized(t),Fa,"f").throb()},da(_assertThisInitialized(t),Fa,"f").result.promise.then(function(e){return t.resolve(e)})):t.resolve(),t.getLink(e),t}function to(t){var n;return _classCallCheck(this,to),n=wa.call(this,t),oa.set(_assertThisInitialized(n),n.__query),sa.set(_assertThisInitialized(n),n.__throb),ca.set(_assertThisInitialized(n),n.__result),Ur(_assertThisInitialized(n),oa,"f").find(".ltk_content").addClass("ltk_termsAgree").append(f.blocks.termsAgree),Ur(_assertThisInitialized(n),oa,"f").find(".ltk_text").html(t.content.text),Ur(_assertThisInitialized(n),oa,"f").find(".ltk_button span").html(t.content.button),Ur(_assertThisInitialized(n),oa,"f").find(".ltk_button").on("click",function(e){e=s(e.target).parents("[data-chat]").attr("data-chat"),n.resolve({answer:_objectSpread(_objectSpread({},t),{},{value:t.content.button,text:t.content.button,chat:e})}),LTK_CONTROLLER.google.consent(!0),n.queries.find(".ltk_terms_text").addClass("ltk_hidden"),n.queries.find(".ltk_button").addClass("ltk_hidden")}),Ur(_assertThisInitialized(n),oa,"f").find(".ltk_terms_text").html(t.Flow.translator.translate(h.terms.text)),n}function no(e){var t;return _classCallCheck(this,no),t=ba.call(this,e),ra.set(_assertThisInitialized(t),t.__query),ia.set(_assertThisInitialized(t),t.__throb),aa.set(_assertThisInitialized(t),t.__result),t.showAvatar=!1,Fr(_assertThisInitialized(t),ra,"f").find(".ltk_content").addClass("ltk_system").append(f.blocks.message),Fr(_assertThisInitialized(t),ra,"f").find(".ltk_text").html(e.content.text),t.resolve(),t}function ro(e){var t;return _classCallCheck(this,ro),t=ka.call(this,e),ea.set(_assertThisInitialized(t),t.__query),ta.set(_assertThisInitialized(t),t.__throb),na.set(_assertThisInitialized(t),t.__result),t.showAvatar=!1,Wr(_assertThisInitialized(t),ea,"f").find(".ltk_content").addClass("ltk_sent").append(f.blocks.sent),Wr(_assertThisInitialized(t),ea,"f").find(".ltk_text").html(e.content.text),t.resolve(),t}function io(e){var n;return _classCallCheck(this,io),n=Ca.call(this,e),Ji.set(_assertThisInitialized(n),n.__query),Yi.set(_assertThisInitialized(n),n.__throb),Qi.set(_assertThisInitialized(n),n.__result),Zi.set(_assertThisInitialized(n),!1),Xi.set(_assertThisInitialized(n),void 0),n.isInput=!0,n.showAvatar=!1,n.name=e.content.input.name,Gr(_assertThisInitialized(n),Ji,"f").find(".ltk_content").addClass("ltk_select").append(f.blocks.select),Gr(_assertThisInitialized(n),Ji,"f").find(".ltk_options").append(e.content.options.map(function(e){return'
")}).join("")),8<=e.content.options.length&&Mr(_assertThisInitialized(n),Ki,"f").find(".ltk_options").addClass("ltk_compact"),Mr(_assertThisInitialized(n),Ki,"f").find(".ltk_option").on("click",function(e){var t=s(e.target).text(),e=s(e.target).parents("[data-chat]").attr("data-chat");n.submit({value:t,chat:e,text:t})}),n}function oo(e){var t;return _classCallCheck(this,oo),t=Ea.call(this,e),Hi.set(_assertThisInitialized(t),t.__query),zi.set(_assertThisInitialized(t),t.__throb),Bi.set(_assertThisInitialized(t),t.__result),Pr(_assertThisInitialized(t),Hi,"f").find(".ltk_content").addClass("ltk_message").append(f.blocks.message),Pr(_assertThisInitialized(t),Hi,"f").find(".ltk_text").html(e.content.text),t.resolve(),t}function so(e){var t;return _classCallCheck(this,so),t=xa.call(this,e),Di.set(_assertThisInitialized(t),t.__query),Pi.set(_assertThisInitialized(t),t.__throb),Mi.set(_assertThisInitialized(t),t.__result),Gi.set(_assertThisInitialized(t),void 0),qi.set(_assertThisInitialized(t),{initial:0,current:0}),Wi.set(_assertThisInitialized(t),void 0),Fi.set(_assertThisInitialized(t),void 0),Ui.set(_assertThisInitialized(t),void 0),_(_assertThisInitialized(t),Di,"f").find(".ltk_content").addClass("ltk_redirect").append(f.blocks.redirect),t.plataform=e.content.plataform,t.link=e.content.link,t.delay=e.content.delay,_(_assertThisInitialized(t),Di,"f").find(".ltk_text button").on("click",function(){return t.submit()}),t.isCancelShown=LTK_CONFIG.blocks.redirect.isCancelShown,t}function co(n){var r,t;return _classCallCheck(this,co),r=Ra.call(this,n),Ri.set(_assertThisInitialized(r),r.__query),Ai.set(_assertThisInitialized(r),r.__throb),Oi.set(_assertThisInitialized(r),r.__result),Ii.set(_assertThisInitialized(r),new rr),ji.set(_assertThisInitialized(r),void 0),Li.set(_assertThisInitialized(r),void 0),Ni.set(_assertThisInitialized(r),void 0),i(_assertThisInitialized(r),Ri,"f").find(".ltk_content").addClass("ltk_link").append(f.blocks.link),i(_assertThisInitialized(r),Ri,"f").find(".ltk_text").html(n.content.text),i(_assertThisInitialized(r),Ri,"f").find("a").on("click",function(){r.__Flow.journey.push("USER_CLICKED_LINK",{plataform:i(_assertThisInitialized(r),Li,"f"),block:{_id:r._id,id:r.id},link:n.content.link}),r.redirect()}),r.plataform=n.content.plataform||h.link.plataform,r.cta=r.__Flow.translator.translate(n.content.cta||Dt[r.plataform].cta),n.content.link&&(r.link=n.content.link),i(_assertThisInitialized(r),Ii,"f").promise.then((t=_asyncToGenerator(_regeneratorRuntime().mark(function e(t){return _regeneratorRuntime().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(e.t0=void 0!==n.content.delay,e.t0)return t={_id:"redirect_"+r._id,type:"redirect",content:{delay:n.content.delay,link:t,plataform:r.plataform}},r.__Flow.addChildBlock(t),e.next=6,i(_assertThisInitialized(r),Ai,"f").promise.promise;e.next=7;break;case 6:Nr(_assertThisInitialized(r),Ni,r.__Flow.printBlock(t._id),"f");case 7:case"end":return e.stop()}},e)})),function(e){return t.apply(this,arguments)})),r.resolve(),r}function lo(e){var t,n;return _classCallCheck(this,lo),n=Oa.call(this,e),Ei.set(_assertThisInitialized(n),n.__query),xi.set(_assertThisInitialized(n),n.__throb),Si.set(_assertThisInitialized(n),n.__result),n.visible=!1,n.printSystem=function(){_get2((t=_assertThisInitialized(n),_getPrototypeOf(lo.prototype)),"printSystem",t).call(t,"Aqui é disparada uma integração (".concat(Pt[n.plataform],")"))},n.plataform=e.content.name,n.send(e.content),n.resolve(),n}function uo(e){var t,n;return _classCallCheck(this,uo),n=Ia.call(this,e),ki.set(_assertThisInitialized(n),n.__query),Ci.set(_assertThisInitialized(n),n.__throb),Ti.set(_assertThisInitialized(n),n.__result),n.visible=!1,null!=(t=e.content)&&null!=(t=t.facebook)&&null!=(t=t.events)&&t.length&&n.triggerFacebook(e.content.facebook),e.content.google&&n.triggerGoogle(e.content.google),n.resolve(),n}function ho(e){var n,t,r,i;return _classCallCheck(this,ho),n=La.call(this,e),wi.add(_assertThisInitialized(n)),yi.set(_assertThisInitialized(n),n.__query),_i.set(_assertThisInitialized(n),n.__throb),gi.set(_assertThisInitialized(n),n.__result),n.showAvatar=!1,n.visible=!1,e.content.conditions?(t=e.content,r=LTK_USER.answers.get,i={},r.forEach(function(e){return i[e.name]=e.value}),r=t.conditions.find(function(e){var t=i[e.input.name];return!!t&&function(e,t,n,r){if("a"===n&&!r)throw new TypeError("Private accessor was defined without a getter");if("function"==typeof t?e===t&&r:t.has(e))return"m"===n?r:"a"===n?r.call(e):r?r.value:t.get(e);throw new TypeError("Cannot read private member from an object whose class did not declare it")}(_assertThisInitialized(n),wi,"m",bi).call(_assertThisInitialized(n),t,e.input.value,e.condition)}),n.resolve(null!=(t=r)&&t.next?{next:r.next}:{})):n.compare(e),_possibleConstructorReturn(n)}function fo(e){return _classCallCheck(this,fo),e=Na.call(this,e),fi.set(_assertThisInitialized(e),e.__query),di.set(_assertThisInitialized(e),e.__throb),pi.set(_assertThisInitialized(e),e.__result),e.visible=!1,e.__Flow.complete=!0,e.resolve(),e}function po(e){function t(e){e=s(e).parents("[data-chat]").attr("data-chat"),a.submit({chat:e})}var i,a;_classCallCheck(this,po),a=Da.call(this,e),ci.set(_assertThisInitialized(a),a.__query),li.set(_assertThisInitialized(a),a.__throb),ui.set(_assertThisInitialized(a),a.__result),hi.set(_assertThisInitialized(a),!1),Lr(_assertThisInitialized(a),ci,"f").find(".ltk_content").addClass("ltk_answer").append(f.blocks.answer),a.isInput=!0,a.showAvatar=!1,a.input=new Ir(_objectSpread({Answer:_assertThisInitialized(a),__Flow:a.__Flow},e.content.input)),a.name=e.content.input.name,a.clone=function(){for(var e,t=arguments.length,n=new Array(t),r=0;r'.concat(f.throbber,"")),n.after(r)),n=S(this,as,"f").timeout,e.abrupt("return",(clearTimeout(n),S(this,as,"f").timeout=setTimeout(function(){i.query.find(".ltk_throbbing").remove(),i.query.find(".ltk_text").removeClass("ltk_hidden"),S(i,as,"f").promise.resolve(!0),S(i,as,"f").promise=void 0,i.__Chat.journey.push("FINISHED_CALLOUT_THROB",{})},t),this.__Chat.journey.push("STARTED_CALLOUT_THROB",{delay:t}),S(this,as,"f").promise.promise));case 2:case"end":return e.stop()}},e,this)})),function(e){return Qo.apply(this,arguments)})},{key:"interval",get:function(){return S(this,R,"f").ms},set:function(e){this.cycle(e),this.__Chat.journey.push("CHANGED_CALLOUT_INTERVAL",{ms:e})}},{key:"cycle",value:function(e){var t=this;this.halt(),S(this,ss,"f").length<2||(S(this,R,"f").ms=e||S(this,R,"f").ms,"floater"===this.__Chat.position.placement&&(S(this,R,"f").interval=setInterval(function(){return S(t,ls,"m",us).call(t)},S(this,R,"f").ms),this.__Chat.journey.push("STARTED_CALLOUT_CYCLE",{ms:S(this,R,"f").ms})))}},{key:"halt",value:function(){S(this,R,"f").interval&&clearInterval(S(this,R,"f").interval),delete S(this,R,"f").interval,this.__Chat.journey.push("HALTED_CALLOUT_CYCLE",{})}}]),ns);function ns(e){var t,n=this;_classCallCheck(this,ns),ls.add(this),as.set(this,{}),os.set(this,void 0),R.set(this,{}),ss.set(this,void 0),cs.set(this,void 0),this.__Chat=e.Chat,S(this,R,"f").ms=e.interval||h.callout.interval,this.roster=null!=e&&null!=(t=e.roster)&&t.length?e.roster:[],this.__Chat.journey.on("CHANGED_POSITION_ELEMENT",function(e){"body"===e.data.element&&n.shown&&(n.shown=!1)}),this.query.on("click",function(){return n.__Chat.journey.push("USER_CLICKED_CALLOUT",{roster:n.roster,current:{index:S(n,cs,"f"),value:n.current}})}),this.__Chat.journey.on("CHANGED_CALLOUT_SHOWN",function(e){"floater"!==n.__Chat.position.placement?n.__Chat.journey.off("CHANGED_CALLOUT_SHOWN",e.event.id):e.data.shown&&(n.__Chat.journey.push("COMPATIBILITY-CALLOUT_SHOWN",{current:{index:S(n,cs,"f"),value:n.current},interval:n.interval,roster:n.roster}),n.__Chat.journey.off("CHANGED_CALLOUT_SHOWN",e.event.id))})}function rs(e,t,n,r,i){if("m"===r)throw new TypeError("Private method is not writable");if("a"===r&&!i)throw new TypeError("Private accessor was defined without a setter");if("function"==typeof t?e===t&&i:t.has(e))return"a"===r?i.call(e,n):i?i.value=n:t.set(e,n);throw new TypeError("Cannot write private member to an object whose class did not declare it")}var is,as=new WeakMap,os=new WeakMap,R=new WeakMap,ss=new WeakMap,cs=new WeakMap,ls=new WeakSet,us=(is=_asyncToGenerator(_regeneratorRuntime().mark(function e(){var t,n,r=arguments;return _regeneratorRuntime().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return(t=0=S(this,ss,"f").length&&(t=0),n=this.throb(),this.query.find(".ltk_text").html(this.roster[t]),e.next=6,n;case 6:Yo(this,cs,t,"f"),this.__Chat.journey.push("CHANGED_CURRENT_CALLOUT",{roster:S(this,ss,"f"),interval:S(this,R,"f").ms,current:{index:t,value:this.roster[t]}});case 8:case"end":return e.stop()}},e,this)})),function(){return is.apply(this,arguments)}),hs=(_createClass(fs,[{key:"url",get:function(){var e=this,t=ds,n="f",r=void 0;if("a"===n&&!r)throw new TypeError("Private accessor was defined without a getter");if("function"==typeof t?e===t&&r:t.has(e))return"m"===n?r:"a"===n?r.call(e):r?r.value:t.get(e);throw new TypeError("Cannot read private member from an object whose class did not declare it")},set:function(e){var t;e?(rs(this,ds,t=e,"f"),this.__Chat.cssRoots.set("background-url","url(".concat(t,")")),this.__Chat.query.addClass("ltk_background")):(rs(this,ds,void 0,"f"),this.__Chat.cssRoots.delete("background-url"),this.__Chat.query.removeClass("ltk_background")),this.__Chat.journey.push("CHANGED_BACKGROUND_URL",{url:e})}}]),fs);function fs(e){var t=e.Chat,e=e.url;_classCallCheck(this,fs),ds.set(this,void 0),this.__Chat=t,this.url=e}function A(e,t,n,r){if("a"===n&&!r)throw new TypeError("Private accessor was defined without a getter");if("function"==typeof t?e===t&&r:t.has(e))return"m"===n?r:"a"===n?r.call(e):r?r.value:t.get(e);throw new TypeError("Cannot read private member from an object whose class did not declare it")}var ds=new WeakMap,ps=(_createClass(vs,[{key:"id",get:function(){return"_".concat(this._id,"_")}},{key:"fill",value:function(e){var t,n=this;if(this.__Flow.addChatToggle(A(this,gs,"f").find(".ltk_closer, .ltk_floater"),this._id),"positioned"===e.position.placement){if(!e.position.parent)throw new Ae({});this.position.place(e.position.parent)}else this.position.placement=e.position.placement;if("modal"===e.position.placement){if(null==(t=e.position)||null==(t=t.toggles)||!t.length)throw new xe({});e.position.toggles.forEach(function(e){return n.__Flow.addChatToggle(e,n._id)})}"floater"===e.position.placement&&e.position.displacement&&this.position.displace.fill(e.position.displacement)}},{key:"query",get:function(){return A(this,gs,"f")}},{key:"color",value:function(e,t){return void 0===t?A(this,O,"f")[e]:""===t?(this.journey.push("DELETED_COLOR",{name:e}),delete A(this,O,"f")[e],this.cssRoots.delete("color-"+e),this.cssRoots.delete("color-".concat(e,"-r")),this.cssRoots.delete("color-".concat(e,"-g")),this.cssRoots.delete("color-".concat(e,"-b")),null):t?(A(this,O,"f")[e]=A(this,O,"f")[e]||new So(t),A(this,O,"f")[e].hex=t,this.cssRoots.set("color-"+e,A(this,O,"f")[e].hex),this.cssRoots.set("color-".concat(e,"-r"),A(this,O,"f")[e].r),this.cssRoots.set("color-".concat(e,"-g"),A(this,O,"f")[e].g),this.cssRoots.set("color-".concat(e,"-b"),A(this,O,"f")[e].b),this.journey.push("CHANGED_COLOR",{name:e,hex:t}),A(this,O,"f")[e]):void 0}},{key:"colors",get:function(){return A(this,O,"f")},set:function(e){var n=this;Object.entries(e).forEach(function(e){var e=_slicedToArray(e,2),t=e[0],e=e[1];n.color(t,e)})}},{key:"visible",get:function(){return A(this,bs,"f")},set:function(e){(function(e,t,n,r,i){if("m"===r)throw new TypeError("Private method is not writable");if("a"===r&&!i)throw new TypeError("Private accessor was defined without a setter");if("function"==typeof t?e===t&&i:t.has(e))return"a"===r?i.call(e,n):i?i.value=n:t.set(e,n);throw new TypeError("Cannot write private member to an object whose class did not declare it")})(this,bs,e,"f"),this.query[(e?"remove":"add")+"Class"]("ltk_hidden"),this.journey.push("CHANGED_VISIBLE",{visible:e})}},{key:"print",value:function(t){var e=this.__Flow.printed.filter(function(e){return e.id===t})[0],n=e.clone(this._id);n&&n.appendTo(this.query.find(e.isInput?".ltk_inputSpace":".ltk_scrollableChat")),this.scrollBottom(),this.journey.push("PRINTED_BLOCK",{id:t,_id:e._id})}},{key:"scrollBottom",value:function(){var e=this.query.find(".ltk_scrollableChat"),t=e[0];t.scroll({top:t.scrollHeight,behavior:"smooth"}),e.off("scrollend").one("scrollend",function(){setTimeout(function(){t.offsetHeight+t.scrollTop")),O.set(this,{}),bs.set(this,!0),ks.set(this,void 0);try{this.__Flow=e.Flow,this._id=je(12),this.translator=this.__Flow.translator,this.journey=new vo,this.logger=new oc({fabricator:this,journey:this.journey}),this.logger.onJourney("COMPATIBILITY-1ST_TRIGGERED_TOGGLE",{level:"compatibility"}),this.logger.onJourney("COMPATIBILITY-CALLOUT_SHOWN",{level:"compatibility"}),this.cssRoots=new Oo({Chat:this}),A(this,Cs,"m",Ts).call(this,e),this.position=new qo({Chat:this}),this.avatar=new ko(_objectSpread({Chat:this},e.avatar||{})),this.attribution=new $o({Chat:this}),this.background=new hs({Chat:this}),this.callout=new ts({Chat:this}),this.fill(e),this.journey.push("INITIALIZED",{}),this.journey.push("CONSTRUCTOR_ENDED",{})}catch(e){throw A(this,gs,"f").remove(),e}}function ms(e,t,n,r){if("a"===n&&!r)throw new TypeError("Private accessor was defined without a getter");if("function"==typeof t?e===t&&r:t.has(e))return"m"===n?r:"a"===n?r.call(e):r?r.value:t.get(e);throw new TypeError("Cannot read private member from an object whose class did not declare it")}var ys,_s,gs=new WeakMap,ws=new WeakMap,O=new WeakMap,bs=new WeakMap,ks=new WeakMap,Cs=new WeakSet,Ts=function(e){A(this,ws,"f").text(LTK_DATA.styles.replace(/--ltk/g,this.cssRoots.id).replace(/\.ltk /g,".ltk-".concat(this.id," ")).replace(/ltk_kf_/g,"ltk_kf"+this.id)),A(this,gs,"f").addClass("ltk-"+this.id),A(this,ws,"f").addClass("ltk-"+this.id),s("body").append(A(this,ws,"f")).append(A(this,gs,"f"))},Es=(_createClass(xs,[{key:"push",value:function(e){ms(this,As,"f").push(e),this.send(e),LTK_CONTROLLER.google.userData.fromAnswer(e),this.__User.journey.push("REGISTERED_ANSWER",{answer:e})}},{key:"get",get:function(){return ms(this,As,"f")}},{key:"send",value:(_s=_asyncToGenerator(_regeneratorRuntime().mark(function e(t){return _regeneratorRuntime().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,this.__User.initialization.promise;case 3:return e.next=5,u(function(){return k.post("/fluxos/answer",{answers:[t],sessionId:LTK_USER._id})},{attempts:1,interval:300});case 5:LTK_CONTROLLER.contingency.recoverAll(),this.__User.journey.push("SENT_ANSWER",{answer:t}),e.next=12;break;case 9:e.prev=9,e.t0=e.catch(0),LTK_CONTROLLER.contingency.user.answerFailed();case 12:case"end":return e.stop()}},e,this,[[0,9]])})),function(e){return _s.apply(this,arguments)})},{key:"sendAll",value:(ys=_asyncToGenerator(_regeneratorRuntime().mark(function e(){var t;return _regeneratorRuntime().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.__User.initialization.promise;case 2:return t=this.get,e.next=5,u(function(){return k.post("/fluxos/answer",{answers:t,sessionId:LTK_USER._id})},{attempts:3,interval:300});case 5:this.__User.journey.push("SENT_ALL_ANSWERS",{answers:t});case 6:case"end":return e.stop()}},e,this)})),function(){return ys.apply(this,arguments)})}]),xs);function xs(e){_classCallCheck(this,xs),As.set(this,[]),this.__User=e.User}var Ss,Rs,As=new WeakMap,Os=(_createClass(Is,[{key:"facebook",value:(Rs=_asyncToGenerator(_regeneratorRuntime().mark(function e(){var t,n;return _regeneratorRuntime().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:try{t=nt("_fbp"),((n=nt("_fbc"))||t)&&this.__User.journey.push("COLLECTED_FACEBOOK_TRACK_DATA",{fbc:n,fbp:t})}catch(e){this.__User.journey.pushError(e,!1)}case 1:case"end":return e.stop()}},e,this)})),function(){return Rs.apply(this,arguments)})},{key:"ip",value:(Ss=_asyncToGenerator(_regeneratorRuntime().mark(function e(){var t,n;return _regeneratorRuntime().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,t=Date.now(),e.next=4,Pe();case 4:n=e.sent,this.__User.ip.resolve(n),this.__User.journey.push("FETCHED_IP",{ip:n,elapsed:Date.now()-t}),e.next=11;break;case 8:e.prev=8,e.t0=e.catch(0),LTK_CONTROLLER.contingency.user.ipCollectionFailed(),this.__User.journey.pushError(e.t0,!1);case 11:case"end":return e.stop()}},e,this,[[0,8]])})),function(){return Ss.apply(this,arguments)})}]),Is);function Is(e){_classCallCheck(this,Is),this.__User=e.User}function I(e,t,n,r){if("a"===n&&!r)throw new TypeError("Private accessor was defined without a getter");if("function"==typeof t?e===t&&r:t.has(e))return"m"===n?r:"a"===n?r.call(e):r?r.value:t.get(e);throw new TypeError("Cannot read private member from an object whose class did not declare it")}function js(e,t,n,r,i){if("m"===r)throw new TypeError("Private method is not writable");if("a"===r&&!i)throw new TypeError("Private accessor was defined without a setter");if("function"==typeof t?e===t&&i:t.has(e))return"a"===r?i.call(e,n):i?i.value=n:t.set(e,n),n;throw new TypeError("Cannot write private member to an object whose class did not declare it")}_createClass(Ds,[{key:"initialization",get:function(){return I(this,$s,"f")}},{key:"createLead",value:(Ls=_asyncToGenerator(_regeneratorRuntime().mark(function e(){var t;return _regeneratorRuntime().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,t={sessionId:this._id,client:this.client,originURL:window.location.href,flows:Object.keys(LTK_DATA.flows),placements:LTK_DATA.chats.map(function(e){return e.position.placement})},e.next=4,u(function(){return k.post("/leads",t)},{attempts:20,interval:400});case 4:I(this,$s,"f").resolve(!0),this.journey.push("CREATED_LEAD",{}),e.next=11;break;case 8:e.prev=8,e.t0=e.catch(0),LTK_CONTROLLER.contingency.user.leadCreationFailed(),this.journey.pushError(e.t0,!1);case 11:case"end":return e.stop()}},e,this,[[0,8]])})),function(){return Ls.apply(this,arguments)})},{key:"navigator",get:function(){return I(this,Js,"f")||(js(this,Js,De(),"f"),this.journey.push("COMPILED_USER_NAVIGATOR",{navigator:this.navigator})),I(this,Js,"f")}},{key:"visits",get:function(){var e,t;return I(this,Vs,"f")?I(this,Vs,"f"):(e=window.location.hostname,(t=(ha.get("visits")||[]).slice(0,99)).push({hostname:e,timestamp:Date.now(),_id:this._id}),ha.set("visits",t),t.length<=1&&this.journey.push("NEW_VISIT",{flows:Object.keys(LTK_DATA.flows)}),this.journey.push("UPDATED_USER_VISITS",{hostname:e,visits:t}),js(this,Vs,t,"f"))}},{key:"replaceVar",value:function(e){for(var t=/{{([^}]+)}}/,n=_toConsumableArray(this.answers.get).reverse(),r=t.exec(e);r;){var i=n.find(function(e){return e.name==r[1]});e=i?e.replace(/{{[^}]+}}/,i.value):e.replace(/{{([^}]+)}}/,""),r=t.exec(e)}return e}},{key:"replaceVars",value:function(t){var n,r=this;return"string"==typeof t?this.replaceVar(t):"object"!=_typeof(t)||null===t?t:Array.isArray(t)?t.map(function(e){return r.replaceVars(e)}):(n={},Object.keys(t).forEach(function(e){n[e]=r.replaceVars(t[e])}),n)}}]);var Ls,Ns=Ds;function Ds(e){var t,n,r,i,a=this;_classCallCheck(this,Ds),Ys.add(this),this.ip=new rr,Vs.set(this,void 0),$s.set(this,new rr),Js.set(this,void 0),this._id=LTK_DATA.sessionId,this.client=e.client,this.journey=new vo,this.logger=new oc({fabricator:this,journey:this.journey}),this.answers=new Es({User:this}),this.collect=new Os({User:this}),this.logger.onJourney("FETCHED_IP",{level:"info"}),this.logger.onJourney("SENT_ANSWER",{level:"info"}),this.logger.onJourney("NEW_VISIT",{level:"info"}),this.journey.on("UPDATED_USER_VISITS",(i=_asyncToGenerator(_regeneratorRuntime().mark(function e(t){var n;return _regeneratorRuntime().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return n=t.data,e.next=3,I(a,$s,"f").promise;case 3:return e.next=5,u(function(){return k.put("/leads/"+a._id,{client:a.client,visits:n.visits})},{attempts:10,interval:400});case 5:case"end":return e.stop()}},e)})),function(e){return i.apply(this,arguments)})),this.journey.on("COMPILED_USER_NAVIGATOR",(r=_asyncToGenerator(_regeneratorRuntime().mark(function e(t){var n;return _regeneratorRuntime().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return n=t.data,e.next=3,I(a,$s,"f").promise;case 3:return e.next=5,u(function(){return k.put("/leads/"+a._id,{client:a.client,navigator:n.navigator})},{attempts:10,interval:400});case 5:case"end":return e.stop()}},e)})),function(e){return r.apply(this,arguments)})),this.journey.on("COLLECTED_FACEBOOK_TRACK_DATA",(n=_asyncToGenerator(_regeneratorRuntime().mark(function e(t){var n;return _regeneratorRuntime().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return n=t.data,e.next=3,I(a,$s,"f").promise;case 3:return e.next=5,u(function(){return k.put("/leads/"+a._id,{client:a.client,fbp:(null==n?void 0:n.fbp)||"",fbc:(null==n?void 0:n.fbc)||""})},{attempts:10,interval:400});case 5:case"end":return e.stop()}},e)})),function(e){return n.apply(this,arguments)})),this.journey.on("FETCHED_IP",(t=_asyncToGenerator(_regeneratorRuntime().mark(function e(t){var n;return _regeneratorRuntime().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return n=t.data,e.next=3,I(a,$s,"f").promise;case 3:return e.next=5,u(function(){return k.put("/leads/"+a._id,{client:a.client,ip:n.ip})},{attempts:10,interval:400});case 5:case"end":return e.stop()}},e)})),function(e){return t.apply(this,arguments)})),this.logger.onJourney("REQUEST_ERROR_OCCURED",{}),I(this,Ys,"m",Qs).call(this),this.journey.one("REGISTERED_ANSWER",function(){a.createLead()}),this.journey.push("CONSTRUCTOR_ENDED",{})}function Ps(e,t,n,r){if("a"===n&&!r)throw new TypeError("Private accessor was defined without a getter");if("function"==typeof t?e===t&&r:t.has(e))return"m"===n?r:"a"===n?r.call(e):r?r.value:t.get(e);throw new TypeError("Cannot read private member from an object whose class did not declare it")}var j,Ms,Gs,qs,Ws,Fs,Us,Hs,zs,Bs,Ks,Vs=new WeakMap,$s=new WeakMap,Js=new WeakMap,Ys=new WeakSet,Qs=(Fs=_asyncToGenerator(_regeneratorRuntime().mark(function e(){return _regeneratorRuntime().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:this.collect.ip(),this.collect.facebook(),this.visits,this.navigator;case 1:case"end":return e.stop()}},e,this)})),function(){return Fs.apply(this,arguments)}),Zs=(_createClass(Xs,null,[{key:"get",value:(Bs=_asyncToGenerator(_regeneratorRuntime().mark(function e(t,n,r){return _regeneratorRuntime().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",this.request(t,n,_objectSpread(_objectSpread({},r||{}),{},{method:"GET"})));case 1:case"end":return e.stop()}},e,this)})),function(e,t,n){return Bs.apply(this,arguments)})},{key:"post",value:(zs=_asyncToGenerator(_regeneratorRuntime().mark(function e(t,n,r){return _regeneratorRuntime().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",this.request(t,n,_objectSpread(_objectSpread({},r||{}),{},{method:"POST"})));case 1:case"end":return e.stop()}},e,this)})),function(e,t,n){return zs.apply(this,arguments)})},{key:"delete",value:(Hs=_asyncToGenerator(_regeneratorRuntime().mark(function e(t,n,r){return _regeneratorRuntime().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",this.request(t,n,_objectSpread(_objectSpread({},r||{}),{},{method:"DELETE"})));case 1:case"end":return e.stop()}},e,this)})),function(e,t,n){return Hs.apply(this,arguments)})},{key:"put",value:(Us=_asyncToGenerator(_regeneratorRuntime().mark(function e(t,n,r){return _regeneratorRuntime().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",this.request(t,n,_objectSpread(_objectSpread({},r||{}),{},{method:"PUT"})));case 1:case"end":return e.stop()}},e,this)})),function(e,t,n){return Us.apply(this,arguments)})}]),Xs);function Xs(){_classCallCheck(this,Xs)}j=Zs,Ms={value:{}},Gs={value:P[LTK_DATA.environment]},qs={value:{Accept:"application/json","Content-Type":"application/json","ltk-origin":"chat","ltk-language":"pt-br","ngrok-skip-browser-warning":"true"}},Ws={value:15e3},Zs.request=(Ks=_asyncToGenerator(_regeneratorRuntime().mark(function e(r){var i,t,a,n,o,s,c,l,u,h=arguments;return _regeneratorRuntime().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(i=1Política de Privacidad'),en:'By proceeding you will be accepting our Privacy Policy')}),_defineProperty(e,h.select.text,{es:"Selecciona una opción",en:"Select an option"}),_defineProperty(e,Dt.web.cta,{es:"Leer más",en:"Read more"}),_defineProperty(e,Dt.web.redirect,{es:"Redirigiéndote",en:"Redirecting you"}),_defineProperty(e,Dt.whatsapp.cta,{es:"Hablar por WhatsApp",en:"Talk via WhatsApp"}),_defineProperty(e,Dt.whatsapp.redirect,{es:"Redirigiéndote a WhatsApp",en:"Redirecting you to WhatsApp"}),_defineProperty(e,h.answers.error,{es:"Uy... La respuesta está vacía",en:"Oops... The answer is empty"}),_defineProperty(e,Rt,{es:"Uy... Hay algo mal con el correo electrónico proporcionado.",en:"Oops... There's something wrong with the provided e-mail."}),_defineProperty(e,It,{es:"El teléfono proporcionado es demasiado corto.",en:"The provided phone is too short."}),_defineProperty(e,Ot,{es:"Uy... Hay algo mal con el teléfono proporcionado.",en:"Oops... There's something wrong with the provided phone."}),_defineProperty(e,jt,{es:"Uy... Hay algo mal con el CEP proporcionado.",en:"Oops... There's something wrong with the provided CEP."}),_defineProperty(e,Lt,{es:"Uy... Hay algo mal con el CPF proporcionado.",en:"Oops... There's something wrong with the provided CPF."}),_defineProperty(e,Nt,{es:"El CPF proporcionado es demasiado corto.",en:"The provided CPF is too short."}),_defineProperty(e,kt,{es:"Uy... Hay algo mal con el CNPJ proporcionado.",en:"Oops... There's something wrong with the provided CNPJ."}),_defineProperty(e,Ct,{es:"El CNPJ proporcionado es demasiado corto.",en:"The provided CNPJ is too short."}),_defineProperty(e,Tt,{es:"Uy... Hay algo mal con el pasaporte proporcionado.",en:"Oops... There's something wrong with the provided passport."}),_defineProperty(e,Et,{es:"Uy... Hay algo mal con la URL proporcionada.",en:"Oops... There's something wrong with the provided URL."}),_defineProperty(e,xt,{es:"Uy... Hay algo mal con la fecha proporcionada.",en:"Oops... There's something wrong with the provided date."}),_defineProperty(e,St,{es:"Uy... Ciudad no disponible",en:"Oops... City unavailable"}),_defineProperty(e,bt.city.placeholder,{es:"Ingresa el nombre de la ciudad",en:"Enter city name"}),_defineProperty(e,"Escolha uma cidade",{es:"Selecciona una ciudad",en:"Select a city"}),_defineProperty(e,bt.date.placeholder,{es:"día / mes / año",en:"day / month / year"}),_defineProperty(e,bt.tel.placeholder,{es:"Teléfono",en:"Phone"});var Gc,qc=e,Wc=(_createClass(Fc,[{key:"fill",value:function(e){var t,r=this;e._id&&(this._id=e._id,this.logger.prefix="Flow "+this._id.slice(0,4)),e.chats.length&&e.chats.forEach(function(t){try{var n=new ps(_objectSpread({Flow:r},t));r.chats[n._id]=n,r.journey.push("CREATED_CHAT",{_id:n._id,position:t.position})}catch(e){n=e instanceof Error?e.message:JSON.stringify(e),t=e instanceof a?e:new ye({chat:r._id,error:n}),r.journey.push(t.event,_objectSpread(_objectSpread({},t.data),{},{level:t.level}))}}),e.blocks&&(this.blocks=e.blocks),e.colors&&(this.colors=e.colors),e.background&&(this.background=e.background),null!=(t=e.avatar)&&t.name&&(this.avatar.name=e.avatar.name),null!=(t=e.avatar)&&t.picture&&(this.avatar.picture=e.avatar.picture),null!=e&&null!=(t=e.callout)&&t.roster&&(this.callout.roster=e.callout.roster),null!=e&&null!=(t=e.callout)&&t.interval&&(this.callout.interval=1e3*e.callout.interval)}},{key:"colors",set:function(e){var n=this;Object.entries(e).forEach(function(e){var e=_slicedToArray(e,2),t=e[0],e=e[1];n.color(t,e)})}},{key:"color",value:function(t,n){return void 0===n?Pc(this,Hc,"f")[t]:(Object.values(this.chats).forEach(function(e){return e.color(t,n)}),""===n?(delete Pc(this,Hc,"f")[t],this.journey.push("DELETED_COLOR",{name:t}),null):n?(Pc(this,Hc,"f")[t]=n,this.journey.push("CHANGED_COLOR",{name:t,hex:n}),Pc(this,Hc,"f")[t]):void 0)}},{key:"background",set:function(e){var t=e.url;Object.values(this.chats).forEach(function(e){return e.background.url=t})}},{key:"blocks",get:function(){return Pc(this,Uc,"f")},set:function(e){var t=Boolean(this.printed.length),n=t&&"initialLoad"===this.printed[0]._id;t&&n?(n=_slicedToArray(this.printed.splice(0,1),1)[0]).queries.remove():t&&this.clearPrinted(),Object.values(this.chats).filter(function(e){return"floater"===e.position.placement}).forEach(function(e){return e.position.element="floater"}),Mc(this,Uc,Object.fromEntries(Object.values(e).map(function(e){return[e._id,e]})),"f"),t&&this.cycle.run(),this.journey.push("CHANGED_BLOCKS",{blocks:e})}},{key:"clearPrinted",value:function(){this.printed.forEach(function(e){return e.queries.remove()}),this.printed=[]}},{key:"complete",get:function(){return Pc(this,zc,"f")},set:function(e){var t=this;Mc(this,zc,Pc(this,zc,"f")||e,"f"),e&&(this.journey.push("COMPLETED",{}),_asyncToGenerator(_regeneratorRuntime().mark(function e(){return _regeneratorRuntime().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,LTK_USER.initialization.promise;case 2:return e.next=4,k.put("/leads/"+LTK_USER._id,{flows:[t._id],client:LTK_USER.client,complete:!0});case 4:case"end":return e.stop()}},e)}))())}},{key:"addChildBlock",value:function(e){Pc(this,Uc,"f")[e._id]=e,this.journey.push("CREATED_CHILD_BLOCK",{block:e})}},{key:"printBlock",value:function(e){try{var t,n,r,i=LTK_USER.replaceVars(Pc(this,Uc,"f")[e]),a=new Qa[i.type](_objectSpread(_objectSpread({},i),{},{Flow:this})),o=this.printed.filter(function(e){return e.visible}).at(-1);return this.printed.push(a),Object.values(this.chats).forEach(function(e){e.print(a.id)}),"answer"===a.type&&(n=a.queries.find(".ltk_input:visible")[0])&&n.focus(),"system"!==a.type&&null!=(t=LTK_CONFIG.blocks[a.type])&&t.prependSystem&&(r=LTK_CONFIG.blocks[a.type].prependSystem,a.printSystem(r)),o&&"sent"===o.type==("sent"===a.type)&&a.queries.addClass("ltk_sequence"),this.journey.push("PRINTED_BLOCK",{_id:e,id:a.id}),a}catch(e){this.journey.pushError(e)}}},{key:"addChatToggle",value:function(e,t){try{e=st(e),this.__Controller.toggle.add(e,this._id,t)}catch(e){this.journey.pushError(e,!1)}}},{key:"sendIntegration",value:(Gc=_asyncToGenerator(_regeneratorRuntime().mark(function e(t){var n;return _regeneratorRuntime().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,n=_objectSpread({userId:LTK_USER._id+":"+this._id,clientId:LTK_USER.client,blockId:t.block._id,queryParams:Ne(),complete:this.complete},t.data.body),e.next=5,u(function(){return k.post(t.data.url,n)},{attempts:10,interval:800});case 5:this.journey.push("INTEGRATION_SENT",{plataform:t.plataform,block:t.block}),e.next=11;break;case 8:e.prev=8,e.t0=e.catch(0),this.journey.pushError(e.t0,!1);case 11:case"end":return e.stop()}},e,this,[[0,8]])})),function(e){return Gc.apply(this,arguments)})}]),Fc);function Fc(e){var t=this;_classCallCheck(this,Fc),Uc.set(this,{}),this.chats={},Hc.set(this,{}),zc.set(this,!1),this.printed=[],this.__Controller=e.Controller,this.language=(null==e?void 0:e.language)||"pt-br",this.journey=new vo,this.logger=new oc({fabricator:this,journey:this.journey}),this.avatar=new uc({Flow:this}),this.attribution=new mc({Flow:this}),this.cycle=new Cc({Flow:this}),this.cssRoots=new Rc({Flow:this}),this.callout=new Ic({Flow:this}),this.translator=new Nc({language:this.language}),this.logger.onJourney("USER_CLICKED_LINK",{level:"info"}),this.logger.onJourney("REDIRECTED_USER",{level:"info"}),this.logger.onJourney("ACCEPTED_TERMS",{level:"info"}),e.colors=_objectSpread(_objectSpread({},h.colors),e.colors),this.fill(e),Pc(this,Uc,"f").initialLoad={_id:"initialLoad",type:"message",content:{text:"teste"}},this.printBlock("initialLoad").throb(999999999),this.journey.push("CONSTRUCTOR_ENDED",{}),this.journey.on("CONFIGURATION_STOPPED_REDIRECT",function(){var e={_id:"csr_system_"+je(),content:{text:"Nova aba bloqueada pela edição de fluxo"},type:"system"};t.addChildBlock(e),t.printBlock(e._id)})}function L(e,t,n,r,i){if("m"===r)throw new TypeError("Private method is not writable");if("a"===r&&!i)throw new TypeError("Private accessor was defined without a setter");if("function"==typeof t?e===t&&i:t.has(e))return"a"===r?i.call(e,n):i?i.value=n:t.set(e,n);throw new TypeError("Cannot write private member to an object whose class did not declare it")}function N(e,t,n,r){if("a"===n&&!r)throw new TypeError("Private accessor was defined without a getter");if("function"==typeof t?e===t&&r:t.has(e))return"m"===n?r:"a"===n?r.call(e):r?r.value:t.get(e);throw new TypeError("Cannot read private member from an object whose class did not declare it")}var Uc=new WeakMap,Hc=new WeakMap,zc=new WeakMap,Bc=(_createClass(Kc,[{key:"fromAnswer",value:function(e){switch(e.type){case"city":var t=_slicedToArray(e.value.match(/(\D+) \((\D+)\) - (\D+)/),4),n=t[2],t=t[3];this.pushCountry("BR"),this.pushRegion(n),this.pushCity(t);break;case"answer":switch(e.inputType){case"cep":this.pushPostalCode(e.value);break;case"tel":this.pushPhoneNumber("+"+Xe(e.value));break;case"email":this.pushEmail(e.value);break;case"text":var r,i=c(e.name);i.includes(c("Resposta sem nome"))||(i.includes("sobrenome")?this.pushLastName(e.value):i.includes("nome")&&(e.value.includes(" ")?(i=(e.value.match(/ /g)||[]).length,r=e.value.split(" "),this.pushFirstName(r[0]),this.pushLastName(r.slice(1).join(" ")),1@import url("https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap");'),this.journey.push("FONTS_IMPORTED",{})}catch(e){this.journey.pushError(e,!1)}}}]),Vl);function Vl(){_classCallCheck(this,Vl),$l.set(this,!1),Jl.set(this,!1),this._id=LTK_DATA.embedder,this.journey=new vo,this.logger=new oc({fabricator:this,journey:this.journey}),this.init(),this.importFonts(),this.journey.push("CONSTRUCTOR_ENDED",{})}var $l=new WeakMap,Jl=new WeakMap,Yl=1;return At.g.LTK_PROMISE=new rr,At.g.LTK_LOCATIONS=void 0,window.addEventListener("message",function(e){"LEADSTAKER_VERIFICATION_DASH"===e.data&&e.source&&e.source.postMessage("LEADSTAKER_VERIFICATION_SCRIPT@"+LTK_DATA.embedder,e.origin)}),_asyncToGenerator(_regeneratorRuntime().mark(function e(){return _regeneratorRuntime().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:At.g.LTK_EMBEDDER?At.g.LTK_EMBEDDER.journey.push("VERIFIED_EMBEDDER",{duplicated:!0}):At.g.LTK_EMBEDDER=new Kl;case 1:case"end":return e.stop()}},e)}))(),D});