1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[766],{72087:function(e,n,t){var o,r=t(67294);function i(){return i=Object.assign?Object.assign.bind():function(e){for(var n=1;n<arguments.length;n++){var t=arguments[n];for(var o in t)({}).hasOwnProperty.call(t,o)&&(e[o]=t[o])}return e},i.apply(null,arguments)}n.Z=function(e){return r.createElement("svg",i({xmlns:"http://www.w3.org/2000/svg",width:13.426,height:13.423},e),o||(o=r.createElement("path",{d:"M8.304 6.711l4.8-4.8A1.124 1.124 0 0011.515.327l-4.8 4.8-4.8-4.8A1.124 1.124 0 10.331 1.911l4.8 4.8-4.8 4.8a1.124 1.124 0 001.584 1.584l4.8-4.8 4.8 4.8a1.124 1.124 0 101.584-1.584z"})))}},62035:function(e,n,t){t.d(n,{N:function(){return c},T:function(){return i}});var o=t(4063),r=t(67294);function i(){var e=(0,o.P)({injectAppConfigs:!0}).data,n=(0,r.useState)(!1),t=n[0],i=n[1],a=(0,r.useCallback)((function(n){var o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=arguments.length>2?arguments[2]:void 0;t&&(null===e||void 0===e?void 0:e.scripts.metaPixel)&&window.fbq("track",n,o,r)}),[t,e]),c=(0,r.useCallback)((function(e,n){return a("PageView",e,n)}),[a]),s=(0,r.useCallback)((function(e,n){return a("InitiateCheckout",e,n)}),[a]),l=(0,r.useCallback)((function(e,n){return a("Purchase",e,n)}),[a]);return(0,r.useEffect)((function(){i(!0)}),[]),{initiateCheckout:s,pageView:c,purchase:l,trackEvent:a}}var a=t(29815);function c(){var e=(0,r.useState)(!1),n=e[0],t=e[1],o=(0,r.useCallback)((function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];n&&window._paq.push([e].concat((0,a.Z)(t)))}),[n]),i=(0,r.useCallback)((function(e){return o("trackEcommerceOrder",[e.orderId,e.grandTotal||0,e.subTotal||0,e.tax||0,e.shipping||0,e.discount||0])}),[o]);return(0,r.useEffect)((function(){t(!0)}),[]),{purchase:i,trackEvent:o}}},39434:function(e,n,t){t.d(n,{Z:function(){return E}});var o,r=t(85893),i=t(44458),a=t(16829),c=t(67294);function s(){return s=Object.assign?Object.assign.bind():function(e){for(var n=1;n<arguments.length;n++){var t=arguments[n];for(var o in t)({}).hasOwnProperty.call(t,o)&&(e[o]=t[o])}return e},s.apply(null,arguments)}var l=function(e){return c.createElement("svg",s({xmlns:"http://www.w3.org/2000/svg",width:20.9,height:23},e),o||(o=c.createElement("g",{"data-name":"Icon feather-lock",fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2},c.createElement("path",{"data-name":"Caminho 411",d:"M3.1 10.45h14.7a2.1 2.1 0 012.1 2.1v7.35a2.1 2.1 0 01-2.1 2.1H3.1A2.1 2.1 0 011 19.9v-7.35a2.1 2.1 0 012.1-2.1z"}),c.createElement("path",{"data-name":"Caminho 412",d:"M5.2 10.45v-4.2a5.25 5.25 0 0110.5 0v4.2"}))))},u=t(10253);var d=t(26042),f=t(69396),h=t(99534),p=(0,a.Z)("ul",{label:"StepperRoot"})({display:"flex",flexWrap:"wrap",alignItems:"center",padding:0,margin:0}),g=(0,a.Z)("li",{label:"Step"})((function(e){var n=e.isActive,t=e.progressBarColor,o=e.circleColor;return{flex:1,display:"flex",flexDirection:"column",textAlign:"center","&:before":{content:"''",display:"block",width:15,height:15,borderRadius:"50%",backgroundColor:n?"".concat(o||"#000"):"#fff",margin:"0 auto 0",border:"1px solid ".concat(o||"#000"),zIndex:1},"&:not(:last-child):after":{content:"''",height:5,backgroundColor:t||"#f2f2f2",order:-1,position:"relative",top:"0.60rem",left:"50%"},"&:last-child":{paddingTop:5},"@media (max-width: 1024px)":{"&:before":{height:12,width:12},"&:not(:last-child):after":{height:2}}}})),v=(0,a.Z)("h3")((function(e){return{fontSize:18,margin:7,fontWeight:e.isActive?"bold":400,color:e.color,"@media (max-width: 1024px)":{fontSize:11}}}));function m(e){var n=e.activeStep,t=(0,h.Z)(e,["activeStep"]),o=(0,i.useSiteContext)().theme,a=(0,c.useMemo)((function(){return null===o||void 0===o?void 0:o.checkoutConfigs}),[null===o||void 0===o?void 0:o.checkoutConfigs]);return(0,r.jsx)(p,(0,f.Z)((0,d.Z)({},t),{children:["Carrinho","Identifica\xe7\xe3o","Pagamento","Confirma\xe7\xe3o"].map((function(e,t){var o=t+1===n;return(0,r.jsx)(g,{isActive:o,progressBarColor:null===a||void 0===a?void 0:a.checkout_cart_header_progress_bar_color,circleColor:null===a||void 0===a?void 0:a.checkout_cart_header_progress_bar_circle_color,children:(0,r.jsx)(v,{isActive:o,color:null===a||void 0===a?void 0:a.checkout_cart_header_topics_color,children:e})},e)}))}))}var x=(0,a.Z)("div",{label:"HeaderRoot"})((function(e){return{display:"flex",flexDirection:"column",gap:e.hasBackgroun
1dColor?0:27}})),b=(0,a.Z)("div",{label:"LeftContent"})({display:"flex",alignItems:"center",flex:1}),_=(0,a.Z)("a",{label:"Anchor"})((function(e){return{cursor:"pointer",fontSize:24,fontWeight:"bold",color:e.color,"@media (max-width: 767px)":{fontSize:14}}})),k=(0,a.Z)("div",{label:"StepperContent"})({flex:2,"@media (max-width: 1024px)":{display:"none"}}),w=(0,a.Z)("div",{label:"RightContent"})({display:"flex",alignItems:"center",justifyContent:"flex-end",gap:8,flex:1}),C=(0,a.Z)(l,{label:"LockIcon"})((function(e){return{minWidth:21,color:e.color||"#37061C99"}})),j=(0,a.Z)("p",{label:"SafetyPurchase"})((function(e){return{color:e.color||"#37061C99",fontSize:14}})),y=(0,a.Z)("div",{label:"HeaderContent"})((function(e){return{display:"flex",alignItems:"center",justifyContent:"space-between",padding:"24px 30px",backgroundColor:e.backgroundColor||"#fff","@media (max-width: 1024px)":{padding:"12px 17px"}}})),S=(0,a.Z)("div",{label:"MobileContent"})((function(e){return{display:"none","@media (max-width: 1024px)":{display:"block",backgroundColor:e.backgroundColor}}}));function E(e){var n=e.activeStep,t=(0,i.useSiteContext)(),o=t.site,a=t.theme,s=function(){var e=(0,c.useCallback)((function(e){var n=[];if(e.resize&&(e.resize.fitIn&&n.push("fit-in"),void 0!==e.resize.width||void 0!==e.resize.height)){var t=[e.resize.width,e.resize.height];n.push(t.join("x"))}if(e.filters&&Object.keys(e.filters).length){var o=Object.entries(e.filters).map((function(e){var n=(0,u.Z)(e,2),t=n[0],o=n[1];return"".concat(t,"(").concat(o,")")}));n.push("filters:".concat(o.join(":")))}return n.join("/")}),[]);return{process:(0,c.useCallback)((function(n,t){try{var o=new URL(n);return o.searchParams.set("ims",e(t)),decodeURIComponent(o.href)}catch(r){return n}}),[e])}}().process,l=(0,c.useMemo)((function(){return null===a||void 0===a?void 0:a.checkoutConfigs}),[null===a||void 0===a?void 0:a.checkoutConfigs]),d=(0,c.useMemo)((function(){var e;return(null===l||void 0===l?void 0:l.checkout_cart_header_logo)?null===l||void 0===l?void 0:l.checkout_cart_header_logo:null===(e=o.configs.store)||void 0===e?void 0:e.topLogo}),[l,o.configs]);return(0,r.jsxs)(x,{hasBackgroundColor:!!(null===l||void 0===l?void 0:l.checkout_cart_header_background_color),children:[(0,r.jsxs)(y,{backgroundColor:null===l||void 0===l?void 0:l.checkout_cart_header_background_color,children:[(0,r.jsx)(b,{children:(0,r.jsx)(_,{href:"/",color:null===l||void 0===l?void 0:l.checkout_cart_header_store_name_color,children:d?(0,r.jsx)("img",{alt:"logo",src:s(d,{resize:{fitIn:!0,width:150}})}):o.configs.store.name})}),n&&(0,r.jsx)(k,{children:(0,r.jsx)(m,{activeStep:n})}),(0,r.jsxs)(w,{children:[(0,r.jsx)(C,{color:null===l||void 0===l?void 0:l.checkout_cart_header_label_color}),(0,r.jsx)(j,{color:null===l||void 0===l?void 0:l.checkout_cart_header_label_color,children:"COMPRA SEGURA"})]})]}),n&&(0,r.jsx)(S,{backgroundColor:null===l||void 0===l?void 0:l.checkout_cart_header_background_color,children:(0,r.jsx)(m,{activeStep:n})})]})}},31799:function(e,n,t){t.d(n,{Z:function(){return C}});var o=t(85893),r=t(44458),i=t(26042),a=t(14314),c=t(40925),s=t(4063),l=t(91094),u=t(65178),d=t(97803),f=t(87908),h=t(62035),p=t(25935),g=t(9008),v=t.n(g),m=t(11163),x=t(67294),b=t(25934),_=t(45025),k=function(){var e=(0,x.useContext)(_.Z);if(!e)throw new Error("useAppContext hook must be used inside AppProvider.");return e};function w(){var e=(0,r.useSiteContext)().site.configs.scripts,n=e.googleAnalyticsId,t=e.googleGtmCode,g=(0,x.useState)(!1),_=g[0],w=g[1],C=k().ipAddress,j=(0,s.P)({injectAppConfigs:!0}),y=j.data,S=j.isFetching,E=(0,m.useRouter)(),Z=(0,h.T)().pageView,I=(0,c.useGetCustomer)(),A=I.data,P=I.isFetched,M=I.isIdle,q=(0,a.useGetCart)(),z=q.data,L=q.isFetched,T=q.isIdle,O=(0,x.useMemo)((function(){return null===A||void 0===A?void 0:A.addresses.find((function(e){return e.id===(null===z||void 0===z?void 0:z.shippingAddress.id)}))}),[A,z]),R=(0,x.useMemo)((function(){return(0,b.Z)()}),[]),B=(0,d._)({onSuccess:function(e){w(!0),Z({},{eventID:R})}}).mutateAsync;(0,x.useEffect)((function(){var e;!P&&!M||!L&&!T||_||S||B((0,i.Z)({id:R,userRequestInfo:{userAgent:window.navigator.userAgent,ipAddress:C},eventSource:l.p.WEBSITE,sourceUrl:window.location.href,type:u.b.PAGE_VIEW},A&&{customer:(0,i.Z)({email:A.email,name:A.name,gender:A.gender||void 0,birthDate:A.dob,phone:null===(e=A.contacts.find((function(e){return e.type===f.v.PHONE})))||void 0===e?void 0:e.value},O&&{city:O.city,state:O.state,zipCode:O.zipCode})}))}),[B,E.asPath,L,P,T,M,A,O,_,C,S,R]);var N=(0,x.useMemo)((function(){if(null===y||void 0===y?void 0:y.scripts.metaPixel)return(0,o.jsx)("script",{id:"meta-pixel",dangerouslySetInnerHTML:{__html:"!function(f,b,e,v,n,t,s)\n {if(f.fbq)return;n=f.fbq=function(){n.callMethod?\n n.callMethod.apply(n,arguments):n.queue.push(arguments)};\n if(!f._fbq)f._fbq=n;n.push=n;n.loaded=!0;n.version='2.0';\n n.queue=[];t=b.createElement(e);t.async=!0;\n t.src=v;s=b.getElementsByTagName(e)[0];\n s.parentNode.insertBefore(t,s)}(window, document,'script',\n 'https://connect.facebook.net/en_US/fbevents.js');\n fbq('init', ".concat(null===y||void 0===y?void 0:y.scripts.metaPixel.id,");")}})}),[null===y||void 0===y?void 0:y.scripts.metaPixel]),D=(0,x.useMemo)((function(){return n?(0,o.jsxs)(x.Fragment,{children:[(0,o.jsx)("script",{async:!0,src:"https://www.googletagmanager.com/gtag/js?i
1d=".concat(n)}),(0,o.jsx)("script",{dangerouslySetInnerHTML:{__html:"window.dataLayer = window.dataLayer || []; function gtag(){dataLayer.push(arguments);} gtag('js', new Date()); gtag('config','".concat(n,"');")}})]}):null}),[n]),H=(0,x.useMemo)((function(){return t?(0,p.ZP)(t):null}),[t]),W=(0,x.useMemo)((function(){return(0,o.jsx)("script",{dangerouslySetInnerHTML:{__html:"var _paq = window._paq = window._paq || [];\n /* tracker methods like \"setCustomDimension\" should be called before \"trackPageView\" */\n _paq.push(['setCustomDimension', 1, window.location.hostname]);\n _paq.push(['trackPageView']);\n _paq.push(['enableLinkTracking']);\n (function() {\n var u=\"//tracker.tools.moovin.app/\";\n _paq.push(['setTrackerUrl', u+'matomo.php']);\n _paq.push(['setSiteId', '2']);\n var d=document, g=d.createElement('script'), s=d.getElementsByTagName('script')[0];\n g.async=true; g.src=u+'matomo.js'; s.parentNode.insertBefore(g,s);\n })();"}})}),[]);return(0,o.jsxs)(v(),{children:[D,H,N,W]})}var C=function(e){var n=e.title,t=(0,r.useSiteContext)().site,i=window.location.href;return(0,o.jsxs)(x.Fragment,{children:[(0,o.jsx)(w,{}),(0,o.jsxs)(v(),{children:[(0,o.jsx)("title",{children:n?"".concat(n," - ").concat(t.configs.store.name):t.configs.store.name}),!!t.configs.store.favicon&&(0,o.jsx)("link",{rel:"shortcut icon",href:t.configs.store.favicon}),(0,o.jsx)("meta",{property:"og:title",content:t.configs.store.name}),!!t.configs.store.favicon&&(0,o.jsx)("meta",{property:"og:image",content:t.configs.store.favicon}),!!i&&(0,o.jsx)("meta",{property:"og:url",content:i})]})]})}}}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.