(()=>{"use strict";var e={557:(e,o)=>{Object.defineProperty(o,"__esModule",{value:!0}),o.isBot=void 0,o.isBot=e=>["googlebot","bingbot","slurp","duckduckbot","baiduspider","yandexbot","sogou","exabot","facebookexternalhit","twitterbot","bytespider","ev-crawler","storebot","sitecheckerbotcrawler","ahrefsbot","webpagetest.org bot","facebookbot","claudebot","seekportbot"].some((o=>e.toLowerCase().includes(o)))},3:function(e,o,n){var i=this&&this.__awaiter||function(e,o,n,i){return new(n||(n=Promise))((function(t,d){function l(e){try{a(i.next(e))}catch(e){d(e)}}function r(e){try{a(i.throw(e))}catch(e){d(e)}}function a(e){var o;e.done?t(e.value):(o=e.value,o instanceof n?o:new n((function(e){e(o)}))).then(l,r)}a((i=i.apply(e,o||[])).next())}))};Object.defineProperty(o,"__esModule",{value:!0}),o.getFbc=o.getFbp=void 0;const t=n(778);o.getFbp=()=>i(void 0,void 0,void 0,(function*(){return yield(0,t.getCookie)("_fbp")})),o.getFbc=()=>i(void 0,void 0,void 0,(function*(){return yield(0,t.getCookie)("_fbc")}))},516:function(e,o,n){var i=this&&this.__awaiter||function(e,o,n,i){return new(n||(n=Promise))((function(t,d){function l(e){try{a(i.next(e))}catch(e){d(e)}}function r(e){try{a(i.throw(e))}catch(e){d(e)}}function a(e){var o;e.done?t(e.value):(o=e.value,o instanceof n?o:new n((function(e){e(o)}))).then(l,r)}a((i=i.apply(e,o||[])).next())}))};Object.defineProperty(o,"__esModule",{value:!0}),o.getLegacyId=void 0;const t=n(778);o.getLegacyId=()=>i(void 0,void 0,void 0,(function*(){return(yield(0,t.getAllStorage)("uniqueId"))||null}))},175:function(e,o){var n=this&&this.__awaiter||function(e,o,n,i){return new(n||(n=Promise))((function(t,d){function l(e){try{a(i.next(e))}catch(e){d(e)}}function r(e){try{a(i.throw(e))}catch(e){d(e)}}function a(e){var o;e.done?t(e.value):(o=e.value,o instanceof n?o:new n((function(e){e(o)}))).then(l,r)}a((i=i.apply(e,o||[])).next())}))};Object.defineProperty(o,"__esModule",{value:!0}),o.getPersistentId=function(e,o,i){return n(this,void 0,void 0,(function*(){const t="undefined"!=typeof self?self:"undefined"!=typeof window?window:globalThis,d=Promise.resolve(t[e]).catch((()=>{})).then((e=>n(this,void 0,void 0,(function*(){const n=e||(yield o())||"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,(e=>{const o=15&crypto.getRandomValues(new Uint8Array(1))[0];return("x"===e?o:3&o|8).toString(16)}));return yield i(n),n}))));return t[e]=d,d}))}},891:function(e,o,n){var i=this&&this.__awaiter||function(e,o,n,i){return new(n||(n=Promise))((function(t,d){function l(e){try{a(i.next(e))}catch(e){d(e)}}function r(e){try{a(i.throw(e))}catch(e){d(e)}}function a(e){var o;e.done?t(e.value):(o=e.value,o instanceof n?o:new n((function(e){e(o)}))).then(l,r)}a((i=i.apply(e,o||[])).next())}))};Object.defineProperty(o,"__esModule",{value:!0}),o.SESSION_ID_TTL=o.SESSION_ID_KEY=o.getSessionId=void 0;const t=n(778),d=n(175),l="solomon-session-id";o.SESSION_ID_KEY=l;const r=18e5;o.SESSION_ID_TTL=r;const a=()=>i(void 0,void 0,void 0,(function*(){const e=yield(0,t.getCookie)(l);if(e)return e;const o=yield(0,t.getLocalStorage)(l);if(!o)return null;try{const e=JSON.parse(o);if((null==e?void 0:e.v)&&"number"==typeof e.exp&&Date.now()i(void 0,void 0,void 0,(function*(){const o={v:e,exp:Date.now()+r};yield(0,t.setCookie)(l,e,r),yield(0,t.setLocalStorage)(l,JSON.stringify(o))}));o.getSessionId=()=>(0,d.getPersistentId)("__SOLOMON_SESSION_ID_LOCK__",a,c)},224:(e,o,n)=>{Object.defineProperty(o,"__esModule",{value:!0}),o.getUserId=void 0;const i=n(778),t=n(175),d="solomon-user-id";o.getUserId=()=>(0,t.getPersistentId)("__SOLOMON_USER_ID_LOCK__",(()=>(0,i.getAllStorage)(d)),(e=>(0,i.setAllStorage)(d,e,31536e6)))},818:(e,o)=>{Object.defineProperty(o,"__esModule",{value:!0}),o.getFromDataLayer=function(e,o,n){const i=i=>{var t,d,l,r,a,c,u,s;if(!Array.isArray(i)||0===i.length)return null;if(n){const t=Number(n);return i.slice().reverse().find((n=>(n[e]===o||n[1]===o)&&n["gtm.uniqueEventId"]===t))||null}return"productView"===o||"gtm.click"===o?(null===(t=i[0])||void 0===t?void 0:t.productId)||(null===(d=i[0])||void 0===d?void 0:d.item_id)||(null===(l=i[0])||void 0===l?void 0:l.id)||(null===(r=i[0])||void 0===r?void 0:r.item_group_id)?i[0]:((null===(a=i[1])||void 0===a?void 0:a.productId)||(null===(c=i[1])||void 0===c?void 0:c.item_id)||(null===(u=i[1])||void 0===u?void 0:u.id)||(null===(s=i[1])||void 0===s?void 0:s.item_group_id))&&i[1]||null:i.slice().reverse().find((n=>n[e]===o||n[1]===o))||null};return i(window.dataLayer)||i(window.dataLayerGTM)||null},o.getRawFromDataLayer=function(e,o){const n=n=>Array.isArray(n)&&0!==n.length&&n.slice().reverse().find((n=>n[e]===o))||null;return n(window.dataLayer)||n(window.dataLayerGTM)||null},o.getNonEmptyInDataLayer=function(e){return window.dataLayer&&Array.isArray(window.dataLayer)&&(window.dataLayer||window.dataLayerGTM).find((o=>{var n;return(null===(n=o[e])||void 0===n?void 0:n.length)>0}))||null}},794:function(e,o,n){var i=this&&this.__awaiter||function(e,o,n,i){return new(n||(n=Promise))((function(t,d){function l(e){try{a(i.next(e))}catch(e){d(e)}}function r(e){try{a(i.throw(e))}catch(e){d(e)}}function a(e){var o;e.done?t(e.value):(o=e.value,o instanceof n?o:new n((function(e){e(o)}))).then(l,r)}a((i=i.apply(e,o||[])).next())}))};Object.defineProperty(o,"__esModule",{value:!0}),o.eventTouchpoint=o.CheckoutCompletedEvent=o.AddShippingInfoEvent=o.AddCustomerInfoEvent=o.AddPaymentInfoEvent=o.InitiateCheckoutEvent=o.AddToCartEvent=o.ContentViewEvent=o.createViewPage=o.Type=o.SolomonEvent=void 0;const t=n(891),d=n(224),l=n(3),r=n(516),a=n(778),c={shoppub:e=>e.customer_id,magazord:e=>e.email,yampi:e=>e.transaction_id,woocommerce:e=>e.transaction_id,loja_yampi:e=>e.transaction_id,loja_integrada:e=>e.transaction_id,uappi:e=>e.order_id,bagy:e=>e.order_id,wake:e=>e.order_id,wbuy:e=>e.order_id},u=(e,o)=>{if(!e||!o)return e;const n=c[o];if(!n)return e;const i=n(e);return i&&i!==e.cart_token?Object.assign(Object.assign({},e),{cart_token:i}):e};var s;!function(e){e.VIEW_PAGE="VIEW_PAGE",e.CONTENT_VIEW="CONTENT_VIEW",e.ADD_TO_CART="ADD_TO_CART",e.INITIATE_CHECKOUT="INITIATE_CHECKOUT",e.ADD_SHIPPING_INFO="ADD_SHIPPING_INFO",e.ADD_CUSTOMER_INFO="ADD_CUSTOMER_INFO",e.ADD_PAYMENT_INFO="ADD_PAYMENT_INFO",e.CHECKOUT_COMPLETED="CHECKOUT_COMPLETED"}(s||(o.Type=s={}));const v=()=>i(void 0,void 0,void 0,(function*(){const e="uniqueId",o="uniqueId",n=(0,a.getUtmParameter)("utm_term");let i;const t=/^[a-z0-9]{9}_([0-9]+)$/,d="undefined"!=typeof window&&window.location?window.location.hostname:"undefined"!=typeof self&&(null===(u=null===(c=null===(r=null===(l=null===self||void 0===self?void 0:self.Shopify)||void 0===l?void 0:l.init)||void 0===r?void 0:r.context)||void 0===c?void 0:c.document)||void 0===u?void 0:u.location)?self.Shopify.init.context.document.location.hostname:"";var l,r,c,u;const s=(()=>{var e,o,n,i;return"undefined"!=typeof document&&document.referrer?document.referrer:"undefined"!=typeof self&&(null===(i=null===(n=null===(o=null===(e=null===self||void 0===self?void 0:self.Shopify)||void 0===e?void 0:e.init)||void 0===o?void 0:o.context)||void 0===n?void 0:n.document)||void 0===i?void 0:i.referrer)?self.Shopify.init.context.document.referrer:""})(),v=yield(0,a.getLocalStorage)(e);if(v)i=v;else{const l=yield(0,a.getCookie)(o);l?(i=l,yield(0,a.setAllStorage)(e,i,31536e6)):n&&t.test(n)&&-1!==s.indexOf(d)?(i=n,yield(0,a.setAllStorage)(e,i,31536e6)):(i=Math.random().toString(36).substr(2,9)+"_"+(new Date).getTime(),yield(0,a.setAllStorage)(e,i,31536e6))}return v&&(yield(0,a.setCookie)(o,i,31536e6)),i})),m=(e,o,n,c,s)=>i(void 0,void 0,void 0,(function*(){var i,v,m,f,_,p,g,y,w,h,O,S,I,x,b,k,C,P,T,L,N,E,M;return{company_id:e,event_id:"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,(e=>{const o=15&crypto.getRandomValues(new Uint8Array(1))[0];return("x"===e?o:3&o|8).toString(16)})),event_time:(new Date).toISOString(),session_id:yield(0,t.getSessionId)(),user_id:yield(0,d.getUserId)(),fbp:yield(0,l.getFbp)(),fbc:yield(0,l.getFbc)(),legacy_id:yield(0,r.getLegacyId)(),custom_aliases:u(yield c,s),event_type:String(o),page_referrer:null!==(_=null===(f=null===(m=null===(v=null===(i=null===self||void 0===self?void 0:self.Shopify)||void 0===i?void 0:i.init)||void 0===v?void 0:v.context)||void 0===m?void 0:m.document)||void 0===f?void 0:f.referrer)&&void 0!==_?_:null===document||void 0===document?void 0:document.referrer,page_path:null!==(I=null!==(O=null===(h=null===(w=null===(y=null===(g=null===(p=null===self||void 0===self?void 0:self.Shopify)||void 0===p?void 0:p.init)||void 0===g?void 0:g.context)||void 0===y?void 0:y.document)||void 0===w?void 0:w.location)||void 0===h?void 0:h.pathname)&&void 0!==O?O:null===(S=null===window||void 0===window?void 0:window.location)||void 0===S?void 0:S.pathname)&&void 0!==I?I:"",utm_source:null!==(x=(0,a.getUtmParameter)("utm_source"))&&void 0!==x?x:"",utm_medium:null!==(b=(0,a.getUtmParameter)("utm_medium"))&&void 0!==b?b:"",utm_campaign:null!==(k=(0,a.getUtmParameter)("utm_campaign"))&&void 0!==k?k:"",utm_term:null!==(C=(0,a.getUtmParameter)("utm_term"))&&void 0!==C?C:"",utm_content:null!==(P=(0,a.getUtmParameter)("utm_content"))&&void 0!==P?P:"",sol_source:null!==(T=(0,a.getUtmParameter)("sol_source"))&&void 0!==T?T:"",sol_medium:null!==(L=(0,a.getUtmParameter)("sol_medium"))&&void 0!==L?L:"",sol_campaign:null!==(N=(0,a.getUtmParameter)("sol_campaign"))&&void 0!==N?N:"",sol_content:null!==(E=(0,a.getUtmParameter)("sol_content"))&&void 0!==E?E:"",event_payload:n,voxus_url:null!==(M=yield(0,a.getLocalStorage)("analytics:session"))&&void 0!==M?M:""}}));o.SolomonEvent=m;o.createViewPage=(e,o,n)=>i(void 0,void 0,void 0,(function*(){return yield m(n||(0,a.getCompanyId)(),s.VIEW_PAGE,e,o)})),o.eventTouchpoint=(e,o,n)=>i(void 0,void 0,void 0,(function*(){return yield((e,o,n)=>i(void 0,void 0,void 0,(function*(){var t,d,r,c,u,s,m,f,_,p,g,y,w,h,O,S,I,x,b,k,C,P,T,L,N,E,M,A,U,D,j,B,R,F,V,Z,G,W,H,J,q,K;let Y="true"===new URLSearchParams(window.location.search).get("vendedor");if((document.referrer.includes("desk.hyperflow.global")||document.referrer.includes("app.yampi.com")||document.referrer.includes("app.reportana.com"))&&(Y=!0),Y)return(0,a.setCookie)("is_seller","true",365),void localStorage.setItem("is_seller","true");if("true"===(yield(0,a.getCookie)("is_seller"))||Y||"true"===localStorage.getItem("is_seller"))return;if("lojasdufins"===e&&"seguro.lojasdufins.com.br"===("undefined"!=typeof window?window.location.hostname:"")){let e=(null!==(t=(0,a.getUtmParameter)("utm_source"))&&void 0!==t?t:"").toLowerCase(),o=null!==(d=(0,a.getUtmParameter)("utm_campaign"))&&void 0!==d?d:"",n=null!==(r=(0,a.getUtmParameter)("utm_content"))&&void 0!==r?r:"";if(!e){const i=(yield(0,a.getCookie)("utmsTrack"))||"",t={};i.split("&").forEach((e=>{const o=e.indexOf("=");-1!==o&&(t[e.substring(0,o)]=e.substring(o+1))})),e=(t.utm_source||"").toLowerCase(),o=t.utm_campaign||"",n=t.utm_content||""}const i=e=>{var o;if(!e)return!1;const n=-1!==e.indexOf("|")?null!==(o=e.split("|").pop())&&void 0!==o?o:"":e;return/^\d+$/.test(n)};if(-1!==["fb","ig","th","an","msg","facebook","facebookads"].indexOf(e)&&i(o)&&!i(n))return}const z=(yield(0,l.getFbp)())||(yield(0,a.getCookie)("_fbp"))||"",Q=(yield(0,l.getFbc)())||(yield(0,a.getCookie)("_fbc"))||"",$=(0,a.getUtmParameter)("fbclid")||(yield(0,a.getCookie)("_fbclid"))||"",X=(yield(0,a.getCookie)("_ga"))||"",ee=null!==(_=null!==(f=null===(m=null===(s=null===(u=null===(c=null===self||void 0===self?void 0:self.Shopify)||void 0===c?void 0:c.init)||void 0===u?void 0:u.context)||void 0===s?void 0:s.navigator)||void 0===m?void 0:m.language)&&void 0!==f?f:"undefined"!=typeof navigator?navigator.language:"")&&void 0!==_?_:"",oe=ee?ee.replace("-","_"):"",ne=null!==(p=(0,a.getUtmParameter)("utm_term"))&&void 0!==p?p:"",ie=null!==(b=null!==(S=null===(O=null===(h=null===(w=null===(y=null===(g=null===self||void 0===self?void 0:self.Shopify)||void 0===g?void 0:g.init)||void 0===y?void 0:y.context)||void 0===w?void 0:w.document)||void 0===h?void 0:h.location)||void 0===O?void 0:O.search)&&void 0!==S?S:null===(x=null===(I=(0,a.safeWindow)())||void 0===I?void 0:I.location)||void 0===x?void 0:x.search)&&void 0!==b?b:"";let te="";try{const e=/.*\s(.+)/.exec((new Date).toLocaleDateString(ee||void 0,{timeZoneName:"short"}));te=e?e[1]:""}catch(e){te=""}let de=yield o,le=((e,o)=>"shoppub"===e?(null==o?void 0:o.customer_id)||"":"shopify"===e||"nuvemshop"===e||"tray"===e||"vtex"===e||"trinio"===e||"magento"===e||"buda"===e||"linx"===e?(null==o?void 0:o.cart_token)||"":"magazord"===e?(null==o?void 0:o.email)||"":"yampi"===e||"woocommerce"===e||"loja_yampi"===e?(null==o?void 0:o.transaction_id)||(null==o?void 0:o.cart_token)||"":"uappi"===e||"bagy"===e||"wake"===e||"wbuy"===e?(null==o?void 0:o.order_id)||"":"cartpanda"===e?(null==o?void 0:o.cart_token)||"":"b4you"===e?(null==o?void 0:o.cart_token)||(null==o?void 0:o.customer_id)||"":"loja_integrada"===e?(null==o?void 0:o.transaction_id)||"":"custom"===e?(null==o?void 0:o.user_id)||"":(null==o?void 0:o.cart_token)||(null==o?void 0:o.customer_id)||(null==o?void 0:o.email)||"")(n,de),re=!1;try{const e=performance.getEntriesByType("navigation")[0];re="reload"===(null==e?void 0:e.type)}catch(e){re=1===(null===(k=null===performance||void 0===performance?void 0:performance.navigation)||void 0===k?void 0:k.type)}let ae=null!==(N=null===(L=null===(T=null===(P=null===(C=null===self||void 0===self?void 0:self.Shopify)||void 0===C?void 0:C.init)||void 0===P?void 0:P.context)||void 0===T?void 0:T.document)||void 0===L?void 0:L.referrer)&&void 0!==N?N:null===document||void 0===document?void 0:document.referrer;((null===window||void 0===window?void 0:window.pageViewFired)||re)&&(ae=""),window.pageViewFired=!0;var ce={id:yield v(),referrer:ae,path:null!==(R=null!==(j=null===(D=null===(U=null===(A=null===(M=null===(E=null===self||void 0===self?void 0:self.Shopify)||void 0===E?void 0:E.init)||void 0===M?void 0:M.context)||void 0===A?void 0:A.document)||void 0===U?void 0:U.location)||void 0===D?void 0:D.pathname)&&void 0!==j?j:null===(B=null===window||void 0===window?void 0:window.location)||void 0===B?void 0:B.pathname)&&void 0!==R?R:"",utm_source:null!==(F=(0,a.getUtmParameter)("utm_source"))&&void 0!==F?F:"",utm_medium:null!==(V=(0,a.getUtmParameter)("utm_medium"))&&void 0!==V?V:"",utm_campaign:null!==(Z=(0,a.getUtmParameter)("utm_campaign"))&&void 0!==Z?Z:"",utm_term:yield v(),utm_content:null!==(G=(0,a.getUtmParameter)("utm_content"))&&void 0!==G?G:"",sol_source:null!==(W=(0,a.getUtmParameter)("sol_source"))&&void 0!==W?W:"",sol_medium:null!==(H=(0,a.getUtmParameter)("sol_medium"))&&void 0!==H?H:"",sol_campaign:null!==(J=(0,a.getUtmParameter)("sol_campaign"))&&void 0!==J?J:"",sol_content:null!==(q=(0,a.getUtmParameter)("sol_content"))&&void 0!==q?q:"",fbp:z,fbc:Q,ga_id:X,fbclid:$,locale:oe?oe.charAt(0).toUpperCase()+oe.slice(1):"",timezone:te,osVersion:"undefined"!=typeof navigator?navigator.appVersion.split(" ")[0]:"",screenWidth:"undefined"!=typeof screen?screen.width:0,screenHeight:"undefined"!=typeof screen?screen.height:0,density:"undefined"!=typeof window?window.devicePixelRatio:1,cpuCores:"undefined"!=typeof navigator?navigator.hardwareConcurrency:0,queryParams:ie,debug:"",old_id:ne,shopify_id:e,current_domain:"undefined"!=typeof window?window.location.hostname:"",cart_token:le,email:null===(K=yield o)||void 0===K?void 0:K.email};return yield((e,o)=>i(void 0,void 0,void 0,(function*(){const n=["utm_source","utm_medium","utm_campaign","utm_content","sol_source","sol_medium","sol_campaign","sol_content"],i={},t=yield(0,a.getCookie)("utmsTrack");t&&t.split("&").forEach((e=>{const o=e.split("=");2===o.length&&(i[o[0]]=o[1])}));const d={utm_source:e.utm_source,utm_medium:e.utm_medium,utm_campaign:e.utm_campaign,utm_content:e.utm_content,sol_source:e.sol_source,sol_medium:e.sol_medium,sol_campaign:e.sol_campaign,sol_content:e.sol_content};let l=!1;for(const e of n)if(d[e]){l=!0;break}let r=!1;const c=e.referrer||"",u=e.current_domain||"";if(c&&u)try{const e=new URL(c),o=(e=>{const o=e.split(".");if(o.length<=2)return e;const n=o.slice(-2).join(".");return["com.br","net.br","org.br","gov.br","edu.br","co.uk","co.jp","co.kr","co.za","co.in","com.au","com.mx","com.ar","com.co","com.vc","myshopify.com","ind.br"].includes(n)?o.slice(-3).join("."):o.slice(-2).join(".")})(u),n=["mercadopago.com","myshopify.com"],i=e.hostname.includes(o),t=n.some((o=>e.hostname.includes(o)));r=!i&&!t}catch(e){r=!1}let s={};const v=["FAtB0BRB4u4QFa5ghBEF","Dk7jRvNPfRfqRuTfdEg1","2JzSzSPMTOSHMElSuyZb"].includes((0,a.getCompanyId)())?e.old_id:e.utm_term;if((l||r)&&"Sz8mKHeQqQcPpUnSyET0"!=(0,a.getCompanyId)()){v&&(s.utm_term=v);for(const e of n)d[e]&&(s[e]=d[e])}else{for(const e in i)i.hasOwnProperty(e)&&(s[e]=i[e]);v&&(s.utm_term=v);for(const e of n)d[e]&&(s[e]=d[e])}const m=[];for(const e in s)s.hasOwnProperty(e)&&m.push(e+"="+s[e]);"yampi"===o?yield(0,a.setUtmsTrackCookie)(s,30):yield(0,a.setCookie)("utmsTrack",m.join("&"),2592e6),yield(0,a.setCookie)("track_utms",m.join("&"),2592e6),yield(0,a.setCookie)("yeverUtmsTrack",m.join("&"),2592e6)})))(ce,n),ce.utmsTrack=yield(0,a.getCookie)("utmsTrack"),ce})))(n||("undefined"!=typeof window&&(null===(t=window.__SOLOMON__)||void 0===t?void 0:t.accountId)?window.__SOLOMON__.accountId:"undefined"!=typeof self&&(null===(d=self.__SOLOMON__)||void 0===d?void 0:d.accountId)?self.__SOLOMON__.accountId:"undefined"!=typeof window&&(null===(r=window.SOLOMON)||void 0===r?void 0:r.accountId)?window.SOLOMON.accountId:"undefined"!=typeof self&&(null===(c=self.SOLOMON)||void 0===c?void 0:c.accountId)?self.SOLOMON.accountId:""),e,o);var t,d,r,c})),o.ContentViewEvent=(e,o,n)=>i(void 0,void 0,void 0,(function*(){return yield m(n||(0,a.getCompanyId)(),s.CONTENT_VIEW,e,o)})),o.AddToCartEvent=(e,o,n)=>i(void 0,void 0,void 0,(function*(){return yield m(n||(0,a.getCompanyId)(),s.ADD_TO_CART,e,o)})),o.InitiateCheckoutEvent=(e,o,n)=>i(void 0,void 0,void 0,(function*(){return yield m(n||(0,a.getCompanyId)(),s.INITIATE_CHECKOUT,e,o)})),o.AddCustomerInfoEvent=(e,o,n,t)=>i(void 0,void 0,void 0,(function*(){return yield m(n||(0,a.getCompanyId)(),s.ADD_CUSTOMER_INFO,e,o,t)})),o.AddShippingInfoEvent=(e,o,n)=>i(void 0,void 0,void 0,(function*(){return yield m(n||(0,a.getCompanyId)(),s.ADD_SHIPPING_INFO,e,o)})),o.AddPaymentInfoEvent=(e,o,n)=>i(void 0,void 0,void 0,(function*(){return yield m(n||(0,a.getCompanyId)(),s.ADD_PAYMENT_INFO,e,o)})),o.CheckoutCompletedEvent=(e,o,n)=>i(void 0,void 0,void 0,(function*(){return yield m(n||(0,a.getCompanyId)(),s.CHECKOUT_COMPLETED,e,o)}))},629:(e,o)=>{Object.defineProperty(o,"__esModule",{value:!0}),o.CART_TRIGGERS=void 0,o.getQueryParam=function(e){for(var o={},n=document.currentScript,i=(n&&n.src.split("?")[1]||"").split("&"),t=0;ti(void 0,void 0,void 0,(function*(){yield(0,d.publish)((0,t.ContentViewEvent)({id:(null==e?void 0:e.item_group_id)||(null==e?void 0:e.item_id)||(null==e?void 0:e.id)||(null==e?void 0:e.productId),variant:(null==e?void 0:e.item_variant)||(null==e?void 0:e.variant),title:(null==e?void 0:e.item_name)||(null==e?void 0:e.name)||(null==e?void 0:e.productName),price:(null==e?void 0:e.price)||(null==e?void 0:e.productPriceTo),url:window.location.href},o))})),o.addToCartBinding=(e,o)=>i(void 0,void 0,void 0,(function*(){yield(0,d.publish)((0,t.AddToCartEvent)({item_id:(null==e?void 0:e.item_id)||(null==e?void 0:e.id)||(null==e?void 0:e.productId),item_quantity:(null==e?void 0:e.quantity)||1,url:window.location.href},o))})),o.initiateCheckoutBinding=(e,o)=>i(void 0,void 0,void 0,(function*(){var n;yield(0,d.publish)((0,t.InitiateCheckoutEvent)({item_count:null===(n=null==e?void 0:e.items)||void 0===n?void 0:n.length,items:null==e?void 0:e.items,total_price:null==e?void 0:e.value,currency:null==e?void 0:e.currency,url:window.location.href},o))})),o.addShippingInfoBinding=(e,o)=>i(void 0,void 0,void 0,(function*(){var n;yield(0,d.publish)((0,t.AddShippingInfoEvent)({item_count:null===(n=null==e?void 0:e.items)||void 0===n?void 0:n.length,items:null==e?void 0:e.items,total_price:null==e?void 0:e.value,currency:null==e?void 0:e.currency,url:window.location.href},o))})),o.addPaymentInfoBinding=(e,o)=>i(void 0,void 0,void 0,(function*(){var n;yield(0,d.publish)((0,t.AddPaymentInfoEvent)({item_count:null===(n=null==e?void 0:e.items)||void 0===n?void 0:n.length,items:null==e?void 0:e.items,total_price:null==e?void 0:e.value,currency:null==e?void 0:e.currency,url:window.location.href},o))})),o.checkoutCompletedBinding=(e,o)=>i(void 0,void 0,void 0,(function*(){var n;yield(0,d.publish)((0,t.CheckoutCompletedEvent)({item_count:null===(n=null==e?void 0:e.items)||void 0===n?void 0:n.length,items:null==e?void 0:e.items,total_price:null==e?void 0:e.value,currency:null==e?void 0:e.currency,url:window.location.href},o))}))},567:function(e,o,n){var i=this&&this.__awaiter||function(e,o,n,i){return new(n||(n=Promise))((function(t,d){function l(e){try{a(i.next(e))}catch(e){d(e)}}function r(e){try{a(i.throw(e))}catch(e){d(e)}}function a(e){var o;e.done?t(e.value):(o=e.value,o instanceof n?o:new n((function(e){e(o)}))).then(l,r)}a((i=i.apply(e,o||[])).next())}))};Object.defineProperty(o,"__esModule",{value:!0}),o.getAliases=function(e){return i(this,void 0,void 0,(function*(){var o,n;const l=(null===(o=yield(0,t.getCookie)("checkout.vtex.com"))||void 0===o?void 0:o.split("="))||[],r=l.length>0?l[1]:void 0,a=(yield(0,t.getLocalStorage)("orderform"))||"{}",c=JSON.parse(a),u="default-order-form"!==(null==c?void 0:c.id)&&"order-form-updated"!==(null==c?void 0:c.id)?null==c?void 0:c.id:void 0,s=c.clientProfileData,v=yield function(){return i(this,void 0,void 0,(function*(){const e=window.vtexjs&&window.vtexjs.checkout&&window.vtexjs.checkout.orderForm?window.vtexjs.checkout.orderForm.orderFormId:null;return e||(e||-1===window.location.pathname.indexOf("/checkout")?null:new Promise((e=>{const o=setInterval((()=>{window.vtexjs&&window.vtexjs.checkout&&window.vtexjs.checkout.orderForm&&window.vtexjs.checkout.orderForm.orderFormId&&(clearInterval(o),e(window.vtexjs.checkout.orderForm.orderFormId))}),500);setTimeout((()=>{clearInterval(o),e(null)}),5e3)})))}))}(),m=(0,d.getFromDataLayer)("event","userData");let f;try{f=sessionStorage.getItem("purchaseFlow-email")||void 0}catch(e){f=void 0}return(null==e?void 0:e.email)&&(s.email=e.email),Object.assign(Object.assign({},e),{customer_id:(null==c?void 0:c.userProfileId)||(null==m?void 0:m.userId),email:(null==s?void 0:s.email)||f,phone:(null===(n=null==s?void 0:s.phone)||void 0===n?void 0:n.length)>=8?null==s?void 0:s.phone:void 0,cart_token:v||u||r})}))};const t=n(778),d=n(818)},772:function(e,o){var n=this&&this.__awaiter||function(e,o,n,i){return new(n||(n=Promise))((function(t,d){function l(e){try{a(i.next(e))}catch(e){d(e)}}function r(e){try{a(i.throw(e))}catch(e){d(e)}}function a(e){var o;e.done?t(e.value):(o=e.value,o instanceof n?o:new n((function(e){e(o)}))).then(l,r)}a((i=i.apply(e,o||[])).next())}))};Object.defineProperty(o,"__esModule",{value:!0}),o.publish_event=o.publish=void 0;const i=e=>{const o=e.trim();return/^https?:\/\//i.test(o)?o:"https://"+o.replace(/^\/+/,"")},t=()=>{var e;return null!==(e="undefined"!=typeof self?self.__SOLOMON__:void 0)&&void 0!==e?e:"undefined"!=typeof window?window.__SOLOMON__:void 0};o.publish=(e,o)=>n(void 0,void 0,void 0,(function*(){var n;let d;try{d=yield e}catch(e){return console.error("[Solomon] Erro ao montar evento:",e),!1}if(!d)return!1;const l=o||(null===(n=t())||void 0===n?void 0:n.webanalyticsUrl),r=l?(e=>i(e).replace(/\/+$/,"").replace(/\/event(\?mode=web)?$/,"")+"/event?mode=web")(l):`https://webanalytics.solomon.com.br/event?mode=web&event=${null==d?void 0:d.event_type}`;try{const e=yield fetch(r,{method:"POST",mode:"cors",credentials:"omit",headers:{"content-type":"application/json"},body:JSON.stringify(d),keepalive:!0});if(e.ok){try{const o=yield e.text();if(o){const e=JSON.parse(o);console.debug("[Solomon] Evento enviado com sucesso:",e)}else console.debug("[Solomon] Evento enviado com sucesso (sem corpo)")}catch(e){console.debug("[Solomon] Evento enviado, resposta ilegĂ­vel:",e)}return!0}{console.error("[Solomon] Erro HTTP ao enviar evento:",e.status,e.statusText);const o=yield e.text().catch((()=>"Unable to read error response"));return console.error("[Solomon] Response error details:",o),!1}}catch(e){return console.error("Erro ao enviar evento:",e),!1}})),o.publish_event=(e,o)=>n(void 0,void 0,void 0,(function*(){var n;const d=yield e;if(!d)return;const l=o||(null===(n=t())||void 0===n?void 0:n.pixelUrl),r=l?(e=>i(e).replace(/\/+$/,"").replace(/\/event$/,"")+"/event")(l):"https://pixel.solomon.com.br/event";try{const e=yield fetch(r,{method:"POST",mode:"cors",credentials:"omit",headers:{"content-type":"application/json"},body:JSON.stringify(d),keepalive:!0});if(e.ok){const o=yield e.text();o?JSON.parse(o):console.debug("Evento enviado com sucesso (sem corpo)")}else console.error("Erro HTTP ao enviar evento:",e.status,e.statusText)}catch(e){console.error("Erro ao enviar evento:",e)}}))},778:function(e,o){var n=this&&this.__awaiter||function(e,o,n,i){return new(n||(n=Promise))((function(t,d){function l(e){try{a(i.next(e))}catch(e){d(e)}}function r(e){try{a(i.throw(e))}catch(e){d(e)}}function a(e){var o;e.done?t(e.value):(o=e.value,o instanceof n?o:new n((function(e){e(o)}))).then(l,r)}a((i=i.apply(e,o||[])).next())}))};Object.defineProperty(o,"__esModule",{value:!0}),o.safeWindow=o.getUtmParameter=o.getCompanyId=o.setAllStorage=o.getAllStorage=o.setLocalStorage=o.getLocalStorage=o.getMainDomain=o.generator=o.setUtmsTrackCookie=o.setCookie=o.getCookie=void 0,o.formatPhone=function(e){return e.replace(/\D/g,"")};const i=e=>n(void 0,void 0,void 0,(function*(){if((null===self||void 0===self?void 0:self.Shopify)&&(null===self||void 0===self?void 0:self.Shopify.browser)){const o=yield self.Shopify.browser.cookie.get(e);return o?decodeURIComponent(o):null}{if(!document.cookie||""===document.cookie)return null;const o=document.cookie.split(";");for(let n=0;nn(void 0,void 0,void 0,(function*(){var o;return(null===(o=null===self||void 0===self?void 0:self.Shopify)||void 0===o?void 0:o.browser)?yield self.Shopify.browser.localStorage.getItem(e):localStorage.getItem(e)}));o.getLocalStorage=t,o.getAllStorage=e=>n(void 0,void 0,void 0,(function*(){return(yield t(e))||(yield i(e))}));const d=()=>{let e="";if("undefined"!=typeof window&&window.location)e=window.location.hostname;else if("undefined"!=typeof globalThis&&globalThis.location)e=globalThis.location.hostname;else if("undefined"!=typeof self&&self.location)e=self.location.hostname;else if("undefined"!=typeof document&&document.location)e=document.location.hostname;else{if("undefined"==typeof document||!document.domain)return"";e=document.domain}if(!e)return"";if("localhost"===e||/^(\d{1,3}\.){3}\d{1,3}$/.test(e))return e;const o=e.split(".");if(o.length<2)return e;const n=["com.br","net.br","org.br","gov.br","edu.br","co.uk","org.uk","ac.uk","com.vc","com.au","com.mx","com.ar","com.co","myshopify.com","ind.br"];if(o.length>=2){const e=o.slice(-2).join(".");return n.includes(e)?2===o.length?"."+e:3===o.length?"."+o.join("."):"."+o.slice(-3).join("."):2===o.length?"."+o.join("."):"."+o.slice(-2).join(".")}return e};o.getMainDomain=d;const l=(e,o,i,t)=>n(void 0,void 0,void 0,(function*(){let n="";if(i){const e=new Date;e.setTime(e.getTime()+i),n="; expires="+e.toUTCString()}let l=t;l||(l=d()||void 0);const r=l?"; domain="+l:"",a=encodeURIComponent(o||"").replace(/[^\x20-\x7E]/g,(e=>encodeURIComponent(e))),c=e+"="+a+n+"; path=/; SameSite=None; Secure"+r;(null===self||void 0===self?void 0:self.Shopify)&&(null===self||void 0===self?void 0:self.Shopify.browser)?yield self.Shopify.browser.cookie.set(c):document.cookie=c}));o.setCookie=l,o.setUtmsTrackCookie=(e,o)=>n(void 0,void 0,void 0,(function*(){const n=[];for(const o in e){if(!Object.prototype.hasOwnProperty.call(e,o))continue;const i=e[o];null!=i&&""!==i&&n.push(o+"="+encodeURIComponent(i))}const i=n.join("&"),t=new Date;t.setTime(t.getTime()+24*o*60*60*1e3);const d="utmsTrack="+i+"; expires="+t.toUTCString()+"; path=/; SameSite=Lax";(null===self||void 0===self?void 0:self.Shopify)&&(null===self||void 0===self?void 0:self.Shopify.browser)?yield self.Shopify.browser.cookie.set(d):document.cookie=d}));const r=(e,o)=>n(void 0,void 0,void 0,(function*(){var n;(null===(n=null===self||void 0===self?void 0:self.Shopify)||void 0===n?void 0:n.browser)?yield self.Shopify.browser.localStorage.setItem(e,o):localStorage.setItem(e,o)}));o.setLocalStorage=r,o.setAllStorage=(e,o,i)=>n(void 0,void 0,void 0,(function*(){yield r(e,o),yield l(e,o,i)}));const a=()=>{var e,o,n,i;return"undefined"!=typeof window&&(null===(e=window.__SOLOMON__)||void 0===e?void 0:e.companyId)?window.__SOLOMON__.companyId:"undefined"!=typeof self&&(null===(o=self.__SOLOMON__)||void 0===o?void 0:o.companyId)?self.__SOLOMON__.companyId:"undefined"!=typeof window&&(null===(n=window.SOLOMON)||void 0===n?void 0:n.companyId)?window.SOLOMON.companyId:"undefined"!=typeof self&&(null===(i=self.SOLOMON)||void 0===i?void 0:i.companyId)?self.SOLOMON.companyId:""};o.getCompanyId=a;const c=()=>"undefined"!=typeof window?window:void 0;o.safeWindow=c,o.getUtmParameter=e=>{var o,n,i,t,d,l,r,u,s,v,m,f,_;const p=null===(t=null===(i=null===(n=null===(o=null===self||void 0===self?void 0:self.Shopify)||void 0===o?void 0:o.init)||void 0===n?void 0:n.context)||void 0===i?void 0:i.document)||void 0===t?void 0:t.location;let g=null!==(u=null!==(d=null==p?void 0:p.search)&&void 0!==d?d:null===(r=null===(l=c())||void 0===l?void 0:l.location)||void 0===r?void 0:r.search)&&void 0!==u?u:"";const y=null!==(f=null!==(s=null==p?void 0:p.hash)&&void 0!==s?s:null===(m=null===(v=c())||void 0===v?void 0:v.location)||void 0===m?void 0:m.hash)&&void 0!==f?f:"";let w="";y.includes("?")?w=y.substring(y.indexOf("?")):y.length>1&&y.includes("=")&&(w="?"+y.substring(1));const h=new URLSearchParams(g);w&&new URLSearchParams(w).forEach(((e,o)=>{h.append(o,e)}));const O=h.getAll(e).filter((e=>!e.includes('"')));try{const o=a();if(o&&"8WX2T4ZJz6JonRNrjhOj"===o){const o=h.get("parceiro");if(o&&"utm_source"===e)return"Influenciador";if(o&&"utm_campaign"===e)return o}}catch(e){}if(0===O.length)return"";if(["utm_campaign","sol_campaign","utm_content","sol_content"].includes(e)&&O.length>1){const e=O.filter((e=>/^\d+$/.test(e)));if(e.length>0)return Math.max(...e.map(Number)).toString()}return null!==(_=O[0])&&void 0!==_?_:""},o.generator=()=>Math.random().toString(36).slice(2,11)+"_"+(new Date).getTime()},581:(e,o)=>{Object.defineProperty(o,"__esModule",{value:!0}),o.claimViewPage=function(e){if("undefined"==typeof window||!window.location)return{url:"",src:e,at:0};const o=window.location.href,t=window.__SOLOMON_VIEW_PAGE__;if(t){if(t.url===o)return null;const e=i(t.url),d=i(o);if(e.path===d.path&&e.hash===d.hash&&Date.now()-t.at=0?e.slice(o):"",i=o>=0?e.slice(0,o):e,t=i.indexOf("?");return{path:t>=0?i.slice(0,t):i,hash:n}}}},o={};function n(i){var t=o[i];if(void 0!==t)return t.exports;var d=o[i]={exports:{}};return e[i].call(d.exports,d,d.exports,n),d.exports}(()=>{const e=n(557),o=n(818),i=n(794),t=n(629),d=n(772),l=n(581),r=n(433),a=n(567);window.__SOLOMON__=window.__SOLOMON__||{companyId:"",accountId:""},function(){var n,c,u,s,v,m,f,_,p,g,y,w,h,O,S,I,x,b,k,C,P,T,L,N,E,M,A,U,D,j;if((0,e.isBot)(navigator.userAgent))return;if("Lm4sLE1usMDUxheCoxlJ"===(null===(n=window.__SOLOMON__)||void 0===n?void 0:n.companyId))return;const B=(0,t.getQueryParam)("event"),R=(0,o.getFromDataLayer)("event",B);var F=R&&R.ecommerceV2&&R.ecommerceV2.ecommerce&&R.ecommerceV2.ecommerce.checkout||R&&R.ecommerce&&R.ecommerce.purchase||R&&R.ecommerce&&R.ecommerce.add||R&&R.ecommerce&&R.ecommerce.detail||R&&R.ecommerce||R||{},V=F.items||F.products||[];switch(B){case"gtm.init":case"gtm.js":case"gtm.dom":case"pageView":case"page_view":!function(e){const o=(0,l.claimViewPage)(e);o&&((0,d.publish_event)((0,i.eventTouchpoint)((0,a.getAliases)(),"vtex")),(0,d.publish)((0,i.createViewPage)({url:window.location.href},(0,a.getAliases)())).then((function(e){e||(0,l.releaseViewPage)(o)})).catch((function(){(0,l.releaseViewPage)(o)})))}(B);break;case"productDetail":(0,r.viewContentBinding)(V[0],(0,a.getAliases)());break;case"productView":"4mtoSNMvouyUEp1HWWMg"!==(null===(c=window.__SOLOMON__)||void 0===c?void 0:c.companyId)&&"5SfF0EZ47kiLCoxwjqcg"!==(null===(u=window.__SOLOMON__)||void 0===u?void 0:u.companyId)||(0,r.viewContentBinding)(R,(0,a.getAliases)());break;case"view_item":"8gd1ya7ifTgWeXakt2Ui"!==(null===(s=window.__SOLOMON__)||void 0===s?void 0:s.companyId)&&"SpBkGBKsHtvfJhH7CdmT"!==(null===(v=window.__SOLOMON__)||void 0===v?void 0:v.companyId)&&"k5xO2Jiam436jTBBRI72"!==(null===(m=window.__SOLOMON__)||void 0===m?void 0:m.companyId)&&"txl85sVkRmTNmT6UqRR8"!==(null===(f=window.__SOLOMON__)||void 0===f?void 0:f.companyId)&&"nanl01oVFbsk6OV9FZha"!==(null===(_=window.__SOLOMON__)||void 0===_?void 0:_.companyId)&&"BFw0nYUBAeCY6PyLZ0f9"!==(null===(p=window.__SOLOMON__)||void 0===p?void 0:p.companyId)&&"RoIZLMIixhAyPbf9fnZe"!==(null===(g=window.__SOLOMON__)||void 0===g?void 0:g.companyId)&&"lSRtMDUxZeAZt5XuZtIO"!==(null===(y=window.__SOLOMON__)||void 0===y?void 0:y.companyId)&&"Sdme69ffQ93VndIZkanx"!==(null===(w=window.__SOLOMON__)||void 0===w?void 0:w.companyId)||(0,r.viewContentBinding)(V[0],(0,a.getAliases)());break;case"addToCart":(0,r.addToCartBinding)(V[0],(0,a.getAliases)());break;case"gtm.click":"4mtoSNMvouyUEp1HWWMg"!==(null===(h=window.__SOLOMON__)||void 0===h?void 0:h.companyId)&&"5SfF0EZ47kiLCoxwjqcg"!==(null===(O=window.__SOLOMON__)||void 0===O?void 0:O.companyId)||!function(){const e=(0,o.getRawFromDataLayer)("event","gtm.click");if(!e)return!1;const n=String(e["gtm.elementClasses"]||""),i=String(e["gtm.elementUrl"]||"");return-1!==n.indexOf("buy-button")||-1!==i.indexOf("/checkout/cart/add")||-1!==n.indexOf("minicart-control--more")}()||(0,r.addToCartBinding)(R,(0,a.getAliases)());break;case"add_to_cart":if("rPcP0GgZryOqeXFf36Xi"===(null===(S=window.__SOLOMON__)||void 0===S?void 0:S.companyId)){var Z=(0,o.getFromDataLayer)("event","productDetail"),G=(null==Z?void 0:Z.ecommerce)&&Z.ecommerce.detail||(null==Z?void 0:Z.ecommerce)||Z||{},W=G.items||G.products||[];(0,r.addToCartBinding)(W[0]||V[0],(0,a.getAliases)())}else"8gd1ya7ifTgWeXakt2Ui"!==(null===(I=window.__SOLOMON__)||void 0===I?void 0:I.companyId)&&"SpBkGBKsHtvfJhH7CdmT"!==(null===(x=window.__SOLOMON__)||void 0===x?void 0:x.companyId)&&"k5xO2Jiam436jTBBRI72"!==(null===(b=window.__SOLOMON__)||void 0===b?void 0:b.companyId)&&"txl85sVkRmTNmT6UqRR8"!==(null===(k=window.__SOLOMON__)||void 0===k?void 0:k.companyId)&&"nanl01oVFbsk6OV9FZha"!==(null===(C=window.__SOLOMON__)||void 0===C?void 0:C.companyId)&&"BFw0nYUBAeCY6PyLZ0f9"!==(null===(P=window.__SOLOMON__)||void 0===P?void 0:P.companyId)&&"RoIZLMIixhAyPbf9fnZe"!==(null===(T=window.__SOLOMON__)||void 0===T?void 0:T.companyId)&&"lSRtMDUxZeAZt5XuZtIO"!==(null===(L=window.__SOLOMON__)||void 0===L?void 0:L.companyId)||(0,r.addToCartBinding)(V[0],(0,a.getAliases)());break;case"view_cart":if("Sdme69ffQ93VndIZkanx"===(null===(N=window.__SOLOMON__)||void 0===N?void 0:N.companyId)||"YTOMQNK1UbJhGQ0Ls4DA"===(null===(E=window.__SOLOMON__)||void 0===E?void 0:E.companyId))for(var H=(0,a.getAliases)(),J=0;J