"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1991],{81110:function(e,n,t){t.d(n,{G:function(){return GiftModal}});var i=t(37340),a=t(85893),o=t(67294),r=t(20256),s=t(42473),l=t(5632),d=t(32244),c=t(98174),m=t(74025),p=t(68830),x=t(94887),u=t(68460),f=t(87808),_=t(28542),w=t(55370),h=t(62854),g=t(96984);function _templateObject(){let e=(0,i._)(["\n padding: 10px 10px;\n color: ",";\n\n :hover {\n cursor: ",";\n }\n"]);return _templateObject=function(){return e},e}let v=r.ZP.div.withConfig({componentId:"sc-5f8e9cd8-0"})(_templateObject(),e=>e.isCustomDisabled?e.theme.colors.grayDark:"inherit",e=>e.isCustomDisabled?"default":"pointer");function ModalGiftSelectOptionLabel(e){let{value:n,label:t,isCustomDisabled:i}=e;return(0,a.jsx)(v,{value:n,isCustomDisabled:i,"data-testid":"".concat(_.Yk.SELECT_TYPE,"-").concat(n),children:t})}function styles_templateObject(){let e=(0,i._)(["\n width: 100%;\n\n .gift__container {\n display: flex;\n justify-content: space-between;\n padding-top: 8px;\n padding-bottom: 5px;\n width: 100%;\n flex-wrap: wrap;\n\n @media only screen and (max-width: 1024px) {\n margin-bottom: 10px;\n }\n\n &__title {\n margin-top: 10px;\n margin-right: 8px;\n\n @media only screen and (max-width: 1024px) {\n margin: 5px 0;\n }\n }\n\n .gift-select {\n min-width: 215px;\n\n @media only screen and (max-width: 1024px) {\n width: 100%;\n margin-bottom: 10px;\n }\n\n .CustomSelect__placeholder {\n white-space: nowrap;\n }\n }\n\n &__content {\n display: flex;\n flex-direction: column;\n width: 100%;\n }\n\n button {\n margin-top: 7px;\n align-self: flex-start;\n\n @media only screen and (min-width: 768px) {\n align-self: flex-end;\n }\n }\n\n &__error-message {\n margin-top: 4px;\n font-size: 12px;\n }\n }\n"]);return styles_templateObject=function(){return e},e}function _templateObject1(){let e=(0,i._)(["\n .modal__container {\n &__title {\n text-align: center;\n font-size: 18px;\n color: ",";\n margin-bottom: 10px;\n text-transform: uppercase;\n }\n\n &__footer {\n width: 100%;\n display: flex;\n justify-content: center;\n\n &__button {\n width: 343px;\n }\n }\n }\n\n .list {\n .carousel__arrow {\n background: transparent;\n opacity: 1;\n padding: 2px;\n\n .zz-icon {\n height: 20px;\n }\n\n svg {\n width: 100%;\n height: 20px;\n }\n\n :disabled {\n display: none;\n }\n\n &--prev {\n left: 0;\n }\n\n &--next {\n right: 0;\n }\n }\n\n .radio-input {\n &__text {\n flex-wrap: wrap;\n }\n }\n\n &__item {\n width: 100%;\n display: flex;\n flex-direction: column;\n justify-content: space-between;\n margin-bottom: 50px;\n text-align: center;\n\n &__radio {\n display: flex;\n flex-direction: column-reverse;\n height: 100%;\n outline: none;\n flex-wrap: wrap;\n\n &__checkmark {\n min-width: 23px;\n min-height: 23px;\n }\n\n &__content {\n display: flex;\n align-items: center;\n justify-content: center;\n width: 100%;\n min-height: 365px;\n\n &__image {\n max-width: 220px;\n margin: 0 auto;\n height: auto;\n }\n\n &__title {\n font-size: 12px;\n font-weight: normal;\n margin-bottom: 20px;\n width: 100%;\n }\n }\n }\n }\n }\n"]);return _templateObject1=function(){return e},e}let b=r.ZP.div.withConfig({componentId:"sc-a5472d01-0"})(styles_templateObject()),j=r.ZP.div.withConfig({componentId:"sc-a5472d01-1"})(_templateObject1(),e=>e.theme.colors.cart.giftBag.text);function gift_modal_templateObject(){let e=(0,i._)(["[&>_.CustomSelect__control]:tw-rounded-none [&>_.CustomSelect__control]:tw-h-9 [&>_.CustomSelect__control]:tw-border-l-0 [&>_.CustomSelect__control]:tw-border-r-0 [&>_.CustomSelect__control]:tw-border-t-0 [&>_.CustomSelect__control]:tw-border-b [&>_.CustomSelect__control]:tw-border-b-waterloo [&>div>div>_.CustomSelect__placeholder]:tw-p-2"],["[&>_.CustomSelect\\_\\_control]:tw-rounded-none [&>_.CustomSelect\\_\\_control]:tw-h-9 [&>_.CustomSelect\\_\\_control]:tw-border-l-0 [&>_.CustomSelect\\_\\_control]:tw-border-r-0 [&>_.CustomSelect\\_\\_control]:tw-border-t-0 [&>_.CustomSelect\\_\\_control]:tw-border-b [&>_.CustomSelect\\_\\_control]:tw-border-b-waterloo [&>div>div>_.CustomSelect\\_\\_placeholder]:tw-p-2"]);return gift_modal_templateObject=function(){return e},e}function GiftModal(e){let{errorMessage:n,className:t="",carouselOptions:i={},overrideCloseIcon:v,...C}=e,[y,N]=(0,o.useState)(!1),[O,I]=(0,o.useState)(!1),{addGift:E,gifts:S,selectedGift:P}=(0,w.yG)(),[z,G]=(0,o.useState)(P),T=(0,o.useRef)(null),D=(0,r.Fg)(),R={value:"nao_quero_receber",label:"N\xe3o quero receber brinde",isDisabled:!1,"data-testid":""},M={hidePagination:!0,slides:{perView:2,spacing:10},breakpoints:{"(max-width: 1024px)":{slides:{perView:2}},"(max-width: 576px)":{slides:{perView:1}}},...i};function formattedOptions(){let e=S.map(e=>({value:e.code,label:e.name,isDisabled:!1,"data-testid":e.code}));return e.push(R),e}async function saveGift(e){I(!0),await E(e||z),N(!1),I(!1)}return(0,a.jsxs)(b,{className:t,...C,children:[(0,a.jsxs)("div",{className:"gift__container",children:[(0,a.jsx)("label",{className:"gift__container__title",htmlFor:"gift-select",children:"Escolha o brinde"}),(0,a.jsx)(m.A,{id:"gift-select",className:"gift-select",onChange:e=>saveGift(e.value),options:formattedOptions(),customLabel:ModalGiftSelectOptionLabel,placeholder:"Selecione seu brinde",isSearchable:!1,value:function(){let e=formattedOptions().filter(e=>e.value===P);return e?e[0]:R}(),customSelectClassName:(0,h.C$)({_common:_.Js.GIFT_SELECT,schutz:String.raw(gift_modal_templateObject())}),hasError:!!n,customColorError:D.colors.error.errorMessage}),(0,a.jsxs)("div",{className:"gift__container__content",children:[n?(0,a.jsx)(c.j,{className:"gift__container__error-message",children:n}):null,(0,a.jsx)(p._,{className:"gift__open-modal-button ".concat(_.Js.OPEN_MODAL_SEE_GIFT_OPTIONS),onClick:()=>void N(!y),as:"button",children:"Veja as op\xe7\xf5es de brinde"})]})]}),(0,a.jsx)(x.u,{isOpen:y,onRequestClose:()=>void N(!y),refBtnThatOpens:T,lockPageScrollOnOpen:!0,overlayOpacity:70,overrideCloseButton:v?v():(0,a.jsx)(s.X,{name:"newClose",size:11,fillColor:D.colors.cart.giftBag.closeIcon}),children:(0,a.jsxs)(j,{className:"modal__content ".concat(t),children:[(0,a.jsx)("h1",{className:"modal__container__title ".concat(_.Js.CHOOSE_GIFT),children:"Escolha seu brinde abaixo:"}),(0,a.jsx)(u.l,{className:"list",options:M,children:function(){if(S)return S.map((e,n)=>{let t="".concat(e.code,"-").concat(n),i=e.code===z;return(0,a.jsx)(l.q,{className:"list__item",children:(0,a.jsxs)(d.N,{name:"radio",id:t,value:e.code,checked:i,onClickLabel:()=>G(e.code),className:"list__item__radio",checkmarkClassName:"list__item__radio__checkmark",children:[(0,a.jsx)("div",{className:"list__item__radio__content",children:(0,a.jsx)(g.M.Image,{src:e.pictureUrl,className:"list__item__radio__content__image",alt:e.name,width:250,height:250,objectFit:"contain"})}),(0,a.jsx)("h3",{className:"list__item__radio__content__title","data-testid":_.Js.GIFT_TITLE,children:e.name})]},t)},t)})}()}),(0,a.jsx)("div",{className:"modal__container__footer",children:(0,a.jsx)(f.z,{isDisabled:!z,isLoading:O,className:"modal__container__footer__button",onClick:()=>saveGift(),shouldGrow:!0,dataTestId:_.Js.ADD_GIFT_BUTTON,children:"Adicionar a sacola"})})]})})]})}},12535:function(e,n,t){t.d(n,{R:function(){return FreeShippingCalculator}});var i=t(85893),a=t(42473),o=t(35131),r=t(39985),s=t(24185),l=t(80490),d=t(56423),c=t(91315),m=t(91474),p=t(62854),x=t(22263);let u="webRangeFreeShippingABTest",f=[{start:1e6,end:19999999},{start:2e7,end:28999999},{start:29e6,end:29999999},{start:3e7,end:39999999},{start:8e7,end:87999999},{start:88e6,end:89999999},{start:9e7,end:99999999},{start:7e7,end:70999999},{start:728e5,end:74894999},{start:78e6,end:78109999},{start:79e6,end:79129999},{start:4e7,end:44470999},{start:49e6,end:49099999},{start:5e7,end:54999999},{start:57e6,end:57099999},{start:58e6,end:58099999},{start:59e6,end:59099999},{start:6e7,end:61900999},{start:64e6,end:64099999},{start:65e6,end:65099999}];function FreeShippingCalculator(){let{cart:e}=(0,l.jD)(),{getIsVariant:n,initFirebase:t}=(0,d.f)(),{cepLocation:_}=(0,c.f)(),{appliedVouchers:w,entries:h,totalPriceWithTax:g}=e,v=g.value,b=r.M-v,j=v>=r.M,C=Math.round(v/r.M*100),y=n({parameterId:u,activeVariant:s.F.B});t({testsToInit:[{parameterId:u}]});let N=h.some(e=>{let{basePrice:n,promotionalBasePrice:t}=e;return n.value!==t.value}),O=w.length>0,I=(0,m.k)(o.BrandId.Vans)?y&&!N&&!O&&function(e){let n=e.replace(/\D/g,""),t=Number.parseInt(n,10),i=f.find(e=>t>=e.start&&t<=e.end);return!!i}(_.cep):y&&!N&&!O;return I?(0,i.jsxs)("div",{className:"tw-flex tw-w-full tw-flex-1 tw-flex-col tw-items-center tw-justify-center tw-gap-2 tw-bg-white tw-px-5 tw-py-4",children:[j?(0,i.jsxs)("div",{className:"tw-inline-flex tw-items-center tw-justify-center tw-gap-2",children:[(0,i.jsx)(a.X,{name:"checkSuccess",className:(0,p.C$)({arezzo:"tw-text-viridian",vans:"tw-text-roof-terracotta",anacapri:"tw-text-torch-red"})}),(0,i.jsxs)("div",{children:[(0,i.jsx)("span",{className:(0,p.C$)({_common:"tw-text-sm tw-font-normal",arezzo:"tw-text-viridian"}),children:"Voc\xea ganhou"})," ",(0,i.jsx)("span",{className:(0,p.C$)({_common:"tw-text-sm tw-font-bold",arezzo:"tw-text-viridian",anacapri:"tw-text-torch-red"}),children:"FRETE GR\xc1TIS!"})]})]}):(0,i.jsxs)("div",{children:[(0,i.jsx)("span",{className:"tw-text-sm tw-font-normal tw-text-black",children:"Faltam"}),(0,i.jsxs)("span",{className:(0,p.C$)({_common:"tw-text-sm tw-font-bold",arezzo:"tw-text-viridian",anacapri:"tw-text-torch-red"}),children:[" ",x.W(b)," "]}),(0,i.jsx)("span",{className:"tw-text-sm tw-font-normal tw-text-black",children:"para voc\xea ganhar o frete gr\xe1tis!"})]}),(0,i.jsx)("div",{className:"tw-flex tw-h-2 tw-w-full tw-items-center tw-justify-start tw-rounded-lg tw-bg-zinc-100",children:(0,i.jsx)("div",{className:(0,p.C$)({_common:"tw-h-2 tw-rounded-lg tw-bg-neutral-300",arezzo:"tw-bg-viridian",vans:"tw-bg-roof-terracotta",anacapri:"tw-bg-torch-red"}),style:{width:(j?100:C)+"%"}})}),j?null:(0,i.jsx)("span",{className:(0,p.C$)({_common:"tw-self-center tw-text-[10px] lg:tw-text-xs",arezzo:"tw-self-start tw-text-manatee lg:tw-self-center",vans:"tw-text-taupe-gray"}),children:"*V\xe1lido somente em produtos n\xe3o remarcados"})]}):null}},17059:function(e,n,t){t.d(n,{L:function(){return ModalAside}});var i,a,o=t(85893),r=t(42473),s=t(93804),l=t(37340),d=t(20256),c=t(57566);function _templateObject(){let e=(0,l._)(["\n @keyframes showRight {\n 0% {\n transform: translateX(25px);\n }\n 100% {\n transform: translateX(0);\n }\n }\n\n @keyframes fadeInOverlay {\n 0% {\n opacity: 0;\n }\n 100% {\n opacity: 1;\n }\n }\n\n &:nth-child(n) {\n overflow: hidden;\n animation: fadeInOverlay 0.3s forwards;\n\n &.modal-login {\n .content-container {\n background-color: ",";\n }\n }\n\n .content-container {\n overflow-y: auto;\n animation: showRight 0.3s forwards;\n width: calc(33% + ","px);\n min-width: 446px;\n height: 100%;\n padding: 0;\n margin: 0 0 0 auto;\n background-color: ",";\n\n .close-button {\n top: 38px;\n right: 38px;\n width: auto;\n padding: 5px;\n }\n }\n }\n\n @media (max-width: 1024px) {\n &:nth-child(n) {\n .content-container {\n min-width: unset;\n max-width: unset;\n width: 100%;\n\n .close-button {\n top: 28px;\n }\n }\n }\n }\n"]);return _templateObject=function(){return e},e}(i=a||(a={}))[i.HEADER_HEIGHT=96]="HEADER_HEIGHT",i[i.MOBILE_HEADER_HEIGHT=64]="MOBILE_HEADER_HEIGHT",i[i.PDP_SIDEBAR_PADDING=36.5]="PDP_SIDEBAR_PADDING",i[i.PDC_CONTENT_INFO_WITHOUT_DESCRIPTION_HEIGHT=82]="PDC_CONTENT_INFO_WITHOUT_DESCRIPTION_HEIGHT";let m=(0,d.ZP)(c.u).withConfig({componentId:"sc-77c7e657-0"})(_templateObject(),s.H.WHITE,a.PDP_SIDEBAR_PADDING,s.H.PAMPAS);function ModalAside(e){return(0,o.jsx)(m,{...e,overrideCloseButton:(0,o.jsx)(r.X,{name:"close",size:18,fillColor:s.H.BLACK})})}},28461:function(e,n,t){t.d(n,{S:function(){return ModalCartRecipientDiffers}});var i=t(85893),a=t(42473),o=t(87808),r=t(64893),s=t(93804),l=t(37340),d=t(20256),c=t(94887),m=t(8698);function _templateObject(){let e=(0,l._)(["\n display: flex;\n justify-content: center;\n\n .content-container {\n height: fit-content;\n max-width: 600px;\n margin: 70px auto;\n }\n\n .modal-cart-recipient-differs {\n display: flex;\n flex-direction: column;\n justify-content: center;\n align-items: center;\n padding: 10px 10px 40px;\n font-family: ",";\n\n @media only screen and (min-width: 768px) {\n padding: 20px 10px;\n }\n\n &__title {\n font-size: 22px;\n font-weight: 800;\n margin: 0;\n\n @media only screen and (min-width: 768px) {\n margin-bottom: 25px;\n }\n }\n\n &__divider {\n width: 100%;\n height: 1px;\n background: ",";\n margin: 20px 0;\n\n @media only screen and (min-width: 768px) {\n display: none;\n }\n }\n\n &__text {\n font-size: 18px;\n font-weight: 400;\n color: ",";\n width: 100%;\n text-align: center;\n\n @media only screen and (min-width: 768px) {\n width: 460px;\n }\n }\n\n &__button-wrapper {\n display: flex;\n flex-direction: row;\n justify-content: center;\n margin-top: 20px;\n\n &__button {\n margin: 15px 20px 0;\n }\n }\n }\n"]);return _templateObject=function(){return e},e}let p=(0,d.ZP)(e=>(0,i.jsx)(c.u,{...e})).withConfig({componentId:"sc-adc492b-0"})(_templateObject(),m.g.HEADINGS,s.H.CHINESE_SILVER,s.H.ONYX_LIGHTER);function ModalCartRecipientDiffers(e){let{isOpen:n,handleToggleModal:t}=e;return(0,i.jsx)(p,{isOpen:n,overrideCloseButton:(0,i.jsx)(a.X,{name:"newClose",size:11,fillColor:s.H.BLACK}),onRequestClose:t,children:(0,i.jsxs)("div",{className:"modal-cart-recipient-differs",children:[(0,i.jsx)("h2",{className:"modal-cart-recipient-differs__title",children:"Deseja continuar?"}),(0,i.jsx)("div",{className:"modal-cart-recipient-differs__divider"}),(0,i.jsxs)("p",{className:"modal-cart-recipient-differs__text",children:["Voc\xea est\xe1 comprando mais de um produto e, pelo menos um deles, \xe9"," ",(0,i.jsx)("b",{children:"para presente"}),". Lembre-se que seu pedido ser\xe1 entregue em um \xfanico endere\xe7o. Para entregas em endere\xe7os diferentes, recomendamos que voc\xea fa\xe7a dois pedidos."]}),(0,i.jsxs)("div",{className:"modal-cart-recipient-differs__button-wrapper",children:[(0,i.jsx)(o.z,{className:"modal-cart-recipient-differs__button-wrapper__button",variant:r.c.outlined,onClick:t,children:"Cancelar"}),(0,i.jsx)(o.z,{className:"modal-cart-recipient-differs__button-wrapper__button",onClick:t,children:"Continuar"})]})]})})}},89617:function(e,n,t){t.d(n,{S:function(){return ModalKnowMore}});var i=t(85893),a=t(80982),o=t(37340),r=t(20256),s=t(57566);function _templateObject(){let e=(0,o._)(["\n display: flex;\n justify-content: center;\n align-items: center;\n\n .content-container {\n padding: 20px 10px 35px;\n }\n"]);return _templateObject=function(){return e},e}function _templateObject1(){let e=(0,o._)(["\n .modal-content {\n &__header {\n width: 100%;\n display: flex;\n padding: 10px 15px;\n justify-content: space-between;\n\n div {\n :nth-child(1) {\n display: flex;\n align-items: center;\n justify-content: center;\n }\n }\n }\n\n &__title {\n align-items: center;\n margin-top: 12px;\n justify-content: center;\n display: flex;\n font-style: normal;\n font-size: 17px;\n line-height: 140%;\n letter-spacing: 0.8px;\n\n h2 {\n font-style: normal;\n font-size: 18px;\n line-height: 140%;\n letter-spacing: 0.8px;\n\n @media only screen and (max-width: 769px) {\n line-height: 100%;\n margin: 0 auto;\n text-align: center;\n font-style: normal;\n font-size: 20px;\n line-height: 140%;\n letter-spacing: 0.8px;\n }\n }\n }\n\n &__infos {\n width: 100%;\n display: flex;\n flex-direction: column;\n align-items: center;\n justify-content: space-around;\n\n @media only screen and (max-width: 769px) {\n height: 100%;\n }\n\n p {\n text-align: center;\n font-style: normal;\n font-weight: normal;\n font-size: 15px;\n line-height: 140%;\n text-align: center;\n letter-spacing: 0.696429px;\n padding: 0px 10%;\n margin: 12px 0;\n }\n }\n\n &__text-container {\n overflow-x: hidden;\n overflow-y: auto;\n }\n }\n"]);return _templateObject1=function(){return e},e}let l=(0,r.ZP)(s.u).withConfig({componentId:"sc-167ac264-0"})(_templateObject()),d=r.ZP.div.withConfig({componentId:"sc-167ac264-1"})(_templateObject1());function ModalKnowMore(e){return(0,i.jsx)(l,{...e,children:(0,i.jsxs)(d,{children:[(0,i.jsx)(a.X2,{children:(0,i.jsx)("div",{className:"modal-content__header",children:(0,i.jsx)(a.JX,{children:(0,i.jsx)("div",{className:"modal-content__title",children:(0,i.jsx)("h2",{children:"Prazo de entrega estendido"})})})})}),(0,i.jsx)(a.X2,{className:"modal-content__text-container",children:(0,i.jsx)(a.JX,{id:"textInfos",alignSelf:"center",children:(0,i.jsxs)("div",{className:"modal-content__infos",children:[(0,i.jsx)("p",{children:"Alguns produtos t\xeam um prazo maior de entrega porque n\xe3o est\xe3o dispon\xedveis em nosso centro de distribui\xe7\xe3o no momento da compra para envio. Em geral, s\xe3o lan\xe7amentos antecipados no site (pr\xe9-venda) ou itens esgotados que ser\xe3o repostos muito em breve."}),(0,i.jsx)("p",{children:"Se voc\xea estiver comprando um produto com prazo de entrega estendido e outro que esteja dispon\xedvel, voc\xea tem a op\xe7\xe3o de fazer duas compras separadas. Assim, os modelos que est\xe3o no estoque ser\xe3o enviados logo para seu endere\xe7o e voc\xea fica aguardando somente os itens que chegar\xe3o em seguida."}),(0,i.jsx)("p",{children:"Se n\xe3o tiver pressa em receber seu pedido, voc\xea tem a op\xe7\xe3o de uma compra \xfanica e economizar no frete."})]})})})]})})}},88116:function(e,n,t){t.d(n,{I:function(){return ModalZipCode}});var i=t(85893),a=t(20256),o=t(42473),r=t(94887),s=t(84804),l=t(80490),d=t(96984),c=t(49135),m=t(28542),p=t(62854),x=t(22263),u=t(35949);function DeliveryOptionItem(e){let{title:n,iconName:t,consignments:a,deliverySalesModes:r}=e;return(0,i.jsxs)("div",{className:"tw-p-[10px_0] md:tw-w-1/2 md:tw-p-[0_15px]",children:[(0,i.jsxs)("div",{className:"tw-flex tw-items-center tw-justify-start",children:[(0,i.jsx)(o.X,{name:t}),(0,i.jsx)("h3",{className:(0,p.C$)({_common:"tw-leding-[140%] tw-ml-2 tw-text-sm tw-font-normal",anacapri:"tw-text-xs",arezzo:"tw-text-xs",vans:"tw-font-medium"}),children:n})]}),a.deliveryOptions.options.map(e=>(function(e){let{code:n,name:t,isFreeShippingOption:a,deliveryCost:o,salesMode:s,description:l,isPreOrder:d}=e,f=r.includes(s);return f?(0,i.jsxs)("div",{className:(0,p.C$)({_common:"tw-flex tw-justify-between tw-py-[15px]",arezzo:"tw-flex-row tw-items-center tw-gap-[5px] tw-p-[15px_0_0_20px]\n md:tw-flex-col md:tw-items-start",vans:"md:tw-flex-col",anacapri:"tw-gap-[5px] tw-p-[15px_0_0_20px] md:tw-flex-col"}),"data-testid":m.Js.MODAL_DELIVERY_INFOS,children:[(0,i.jsxs)("div",{children:[(0,i.jsx)("h3",{className:(0,p.C$)({_common:"tw-leding-[140%] tw-text-xs tw-font-normal",arezzo:"tw-text-sm",vans:"tw-m-[6px_0_0] tw-text-[13px]",anacapri:"tw-text-xs tw-font-bold"}),"data-testid":(0,u.I)({automationId:m.Js.MODAL_DELIVERY_OPTION_NAME,deliveryOption:e}),children:t}),(0,i.jsx)("h5",{className:(0,p.C$)({_common:"tw-leding-[140%] tw-text-[10px] tw-font-normal",arezzo:"tw-text-xs tw-text-battleship-grey",vans:"tw-m-[6px_0_0] tw-text-[13px] tw-text-gray",anacapri:"tw-text-xs"}),children:l}),d?(0,i.jsx)(c.O,{}):null]}),function(e){let{deliveryCostValue:n,isFreeShippingOption:t}=e,a=t||0===n;return a?(0,i.jsx)("div",{className:(0,p.C$)({_common:"tw-flex tw-h-6 tw-w-fit tw-items-center tw-justify-center\n tw-rounded-[20px] tw-bg-gallery",anacapri:"tw-w-max tw-bg-torch-red",arezzo:"md:tw-w-full",vans:"tw-mt-[6px]"}),children:(0,i.jsx)("span",{className:(0,p.C$)({_common:"tw-px-[15px] tw-text-xs tw-uppercase tw-text-green-haze",schutz:"tw-text-fun-green",arezzo:"tw-text-black",alexandre_birman:"tw-text-fun-green",vans:"tw-font-medium tw-text-fun-green",anacapri:"tw-px-2 tw-py-1 tw-text-[10px] tw-normal-case tw-text-white"}),children:"Gr\xe1tis"})}):(0,i.jsx)("h3",{className:(0,p.C$)({_common:"tw-leding-[140%] tw-text-nowrap tw-text-xs tw-font-normal",arezzo:"tw-text-sm",vans:"tw-m-[6px_0_0] tw-text-[13px]",anacapri:"tw-text-xs tw-font-bold"}),children:x.W(n)})}({isFreeShippingOption:a,deliveryCostValue:o.value})]},n):null})(e))]})}var f=t(37340);function _templateObject(){let e=(0,f._)(["\n padding: 0 20px;\n letter-spacing: 0.7px;\n\n .modal-header {\n display: flex;\n flex-wrap: wrap;\n align-items: center;\n gap: 10px;\n margin-bottom: 10px;\n\n h4 {\n font-style: normal;\n font-size: 17px;\n\n @media only screen and (max-width: 769px) {\n font-size: 17px;\n margin-bottom: 5px;\n }\n }\n\n p {\n font-style: normal;\n font-weight: normal;\n font-size: 15px;\n line-height: 140%;\n display: flex;\n align-items: center;\n text-align: center;\n padding: 10px;\n color: ",";\n background: ",";\n }\n }\n\n .modal-content {\n display: flex;\n flex-direction: column;\n justify-content: space-between;\n\n .ModalItem + .ModalItem {\n border-top: 1px solid\n ",";\n }\n }\n\n .modal-item {\n padding: 10px 0;\n width: 100%;\n border-bottom: 1px solid\n ",";\n\n &__header {\n padding: 10px 0px;\n\n h3 {\n font-style: normal;\n font-weight: normal;\n font-size: 12px;\n line-height: 140%;\n letter-spacing: 0.65px;\n }\n }\n\n &__content {\n display: flex;\n flex-direction: column;\n\n @media only screen and (min-width: 768px) {\n flex-direction: row;\n }\n }\n\n &:last-child {\n border-bottom: none;\n }\n }\n\n .modal-item-product {\n position: relative;\n\n @media only screen and (min-width: 768px) {\n width: 30%;\n }\n\n &__wrapper {\n h4 {\n width: 150px;\n }\n\n @media only screen and (max-width: 769px) {\n display: flex;\n overflow-x: scroll;\n overflow-y: hidden;\n overflow-style: none !important;\n -ms-overflow-style: none; /* for Internet Explorer, Edge */\n scrollbar-width: none;\n ::-webkit-scrollbar {\n display: none;\n }\n\n &:after {\n display: block;\n content: '';\n position: absolute;\n top: 0;\n right: 0px;\n width: 15%;\n height: 100%;\n background-image: linear-gradient(\n to right,\n rgba(255, 255, 255, 0),\n ","\n );\n }\n }\n }\n\n &__item {\n display: flex;\n\n h4 {\n font-style: normal;\n font-weight: normal;\n font-size: 13px;\n line-height: 140%;\n margin: 0px 10px;\n }\n }\n\n &__image {\n padding-bottom: 10px;\n width: 60px;\n\n img {\n width: 100%;\n min-height: 60px;\n height: auto;\n }\n }\n }\n\n .modal-item-delivery {\n display: flex;\n flex-direction: column;\n\n @media only screen and (min-width: 768px) {\n flex-direction: row;\n width: 70%;\n }\n }\n"]);return _templateObject=function(){return e},e}let _=a.ZP.div.withConfig({componentId:"sc-cc0c05f6-0"})(_templateObject(),e=>e.theme.colors.modal.zipCode.cepTitle,e=>e.theme.colors.modal.zipCode.cepBox,e=>e.theme.colors.modal.zipCode.border,e=>e.theme.colors.modal.zipCode.border,e=>e.theme.colors.modal.zipCode.shadow);function ModalZipCode(e){let{cep:n,isOpen:t,toggle:c,...m}=e,{cartConsignments:p}=(0,l.jD)(),x=p.consignments,u=(0,a.Fg)();return(0,i.jsx)(r.u,{isOpen:t,overrideCloseButton:(0,i.jsx)(o.X,{name:"newClose",size:11,fillColor:u.colors.modal.zipCode.icon}),onRequestClose:()=>c(),children:(0,i.jsxs)(_,{...m,children:[(0,i.jsxs)("div",{className:"modal-header",children:[(0,i.jsx)("h4",{children:"Simula\xe7\xe3o de frete"}),(0,i.jsx)("p",{children:"CEP: ".concat(n)})]}),(0,i.jsx)("div",{className:"modal-content",children:x.map((e,n)=>{let{code:t,products:a,deliveryOptions:{options:o}}=e,r=o.some(e=>(function(e){let n=[s.g0.DELIVERY,s.g0.SHIPPING_STORE,s.g0.MARKETPLACE],t=e.salesMode;return n.includes(t)})(e)),l=o.some(e=>e.salesMode===s.g0.PICKUP);return(0,i.jsxs)("div",{className:"modal-item",children:[(0,i.jsx)("div",{className:"modal-item__header",children:(0,i.jsxs)("h3",{children:["Entrega ",n+1," de ",x.length]})}),(0,i.jsxs)("div",{className:"modal-item__content",children:[(0,i.jsx)("div",{className:"modal-item-product",children:(0,i.jsx)("div",{className:"modal-item-product__wrapper",children:a.map(e=>(0,i.jsxs)("div",{className:"modal-item-product__item",children:[(0,i.jsx)("div",{className:"modal-item-product__image",children:(0,i.jsx)(d.M.Image,{src:e.primaryImage.url,alt:e.primaryImage.altText,width:60,height:60,objectFit:"contain"})}),(0,i.jsx)("h4",{children:e.name})]},e.legacySKU))})}),(0,i.jsxs)("div",{className:"modal-item-delivery",children:[r&&function(e){let n=e.deliveryOptions.options.filter(e=>e.salesMode!==s.g0.PICKUP);return n?(0,i.jsx)(DeliveryOptionItem,{title:"Receba em casa",iconName:"home",consignments:e,deliverySalesModes:[s.g0.DELIVERY,s.g0.SHIPPING_STORE,s.g0.MARKETPLACE]}):null}(e),l&&function(e){let n=e.deliveryOptions.options.filter(e=>e.salesMode===s.g0.PICKUP);return n?(0,i.jsx)(DeliveryOptionItem,{title:"Retire na Loja",iconName:"location",consignments:e,deliverySalesModes:[s.g0.PICKUP]}):null}(e)]})]})]},t)})})]})})}},46743:function(e,n,t){t.d(n,{M:function(){return OrderTotalFixed}});var i=t(85893),a=t(11163),o=t(59492),r=t(28542),s=t(63097),l=t(62854),d=t(37340),c=t(20256),m=t(6226);function _templateObject(){let e=(0,d._)(["\n position: fixed;\n bottom: 0;\n left: 0;\n width: 100%;\n z-index: 2;\n transition: transform ease-in-out 0.3s;\n transform: ",";\n background: ",";\n\n .order-summary__total {\n display: flex;\n justify-content: space-between;\n box-shadow: 0px -7px 6px -3px\n ",";\n\n span {\n font-size: 15px;\n padding: 10px 20px;\n }\n }\n"]);return _templateObject=function(){return e},e}let p=c.ZP.div.withConfig({componentId:"sc-a521c336-0"})(_templateObject(),e=>e.isActive?"translateY(0)":"translateY(100%)",e=>e.theme.colors.orderTotalFixed.background,e=>(0,m.pz)(e.theme.colors.orderTotalFixed.shadow,10)),x=(0,s.w)(e=>e.CashbackValue);function OrderTotalFixed(e){let{isActive:n,renderButton:t,formattedTotal:s,installments:d,cashbackAmount:c,...m}=e,u=(0,a.useRouter)(),f=u.asPath,_=f.includes(o.Z.CART)?r.Js.TOTAL:r.P7.TOTAL_PRICE;return(0,i.jsxs)(p,{isActive:n,...m,children:[(0,i.jsxs)("div",{className:(0,l.C$)({_common:"".concat(_," order-summary__total tw-h-fit tw-px-3\n tw-pb-1 tw-pt-3 tw-font-semibold"),vans:"tw-font-bold"}),children:[(0,i.jsx)("span",{className:"tw-p-0 tw-text-sm",children:"Total"}),(0,i.jsx)("span",{className:"tw-p-0 tw-text-sm","data-testid":_,children:s})]}),d?(0,i.jsx)("div",{className:"tw-flex tw-w-full tw-flex-row-reverse",children:(0,i.jsxs)("p",{className:"tw-mx-3 tw-mb-3 tw-gap-1 tw-text-xs",children:["Em at\xe9 ",d," s/ juros"]})}):null,(0,i.jsx)(x,{className:"-tw-mt-2 tw-mb-3 tw-mr-3 tw-justify-end tw-text-xs",amount:c}),(0,i.jsx)("div",{className:"tw-p-0 [&_button]:tw-rounded-none",children:t()})]})}},49135:function(e,n,t){t.d(n,{O:function(){return PreOrderRibbon}});var i=t(85893),a=t(67294),o=t(42473),r=t(89617),s=t(28542);function PreOrderRibbon(){let[e,n]=(0,a.useState)(!1);return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsxs)("div",{className:"tw-my-1 tw-flex tw-items-center tw-gap-2 tw-rounded-lg tw-bg-link-water tw-p-1.5 tw-text-azure-radiance",children:[(0,i.jsx)(o.X,{name:"cartAlertInfo",size:14}),(0,i.jsxs)("div",{className:"tw-flex tw-flex-1 tw-items-center tw-justify-between",children:[(0,i.jsx)("p",{className:"tw-text-xs",children:"Prazo estendido"}),(0,i.jsx)("button",{className:"tw-text-xs tw-underline tw-outline-none",onClick:()=>n(!0),"data-testid":s.Pl.PRE_ORDER_RIBBON_KNOW_MORE,children:"Saiba mais!"})]})]}),(0,i.jsx)(r.S,{isOpen:e,onRequestClose:()=>n(!1)})]})}},39985:function(e,n,t){t.d(n,{M:function(){return o},l:function(){return a}});var i=t(84804);let a={...i.l$,GIFT_BAG_ICON:"giftBag"},o=249.9},92746:function(e,n,t){t.d(n,{hX:function(){return CartGiftBagProvider},tA:function(){return useCartGiftBag}});var i=t(85893),a=t(67294),o=t(73403),r=t(80490),s=t(11356),l=t(91315),d=t(8930);let c={isLoadingCart:!1,hasErrorSelectEmptyZipCode:!1,isOpenModalGiftBag:!1,cartEntry:null,isOpenModalRecipient:!1,premiumGiftBag:null,isPremiumGiftBagAvailable:!1,recipientInfo:void 0,setRecipientInfo:()=>void 0,updateCartProductGiftBag:()=>void 0,setIsCheckedGiftBag:()=>void 0,setCartEntry:()=>void 0,setIsOpenModalGiftBag:()=>void 0,setIsOpenModalRecipient:()=>void 0,getPremiumGiftBag:()=>Promise.resolve({hasError:!1}),updateRecipientPremiumGiftBag:()=>void 0,handleGetPremiumGiftBag:()=>void 0,isLoadingPremiumGiftBag:!1},m=(0,a.createContext)(c),CartGiftBagProvider=e=>{let{children:n}=e,{cart:t,setIsError:p,updateEntryGiftBag:x,updateRecipientGiftBag:u}=(0,r.jD)(),{isAuthenticated:f}=(0,s.aC)(),{cepLocation:_}=(0,l.f)(),[w,h]=(0,a.useState)(c.isLoadingCart),[g,v]=(0,a.useState)(!1),[b,j]=(0,a.useState)(c.cartEntry),[C,y]=(0,a.useState)(c.recipientInfo),[N,O]=(0,a.useState)(c.isOpenModalGiftBag),[I,E]=(0,a.useState)(c.isOpenModalRecipient),[S,P]=(0,a.useState)(c.premiumGiftBag),[z,G]=(0,a.useState)(c.isLoadingPremiumGiftBag),T=!!(null==_?void 0:_.cep),D=!!(null==S?void 0:S.sellable),R=(0,a.useCallback)(()=>f()?o.l.USER:o.l.ANONYMOUS,[f]),M=(0,a.useCallback)(async e=>{h(!0);let{hasError:n}=await x(e);if(n){p(!0),h(!1);return}h(!1)},[p,x]),k=(0,a.useCallback)(async e=>{G(!0),P(null);let{result:n,hasError:i}=await d.N.getPremiumGiftBag({cartId:t.id,userId:R(),entryNumber:e});return i&&(p(!0),O(!1)),G(!1),{result:n,hasError:i}},[t.id,R,p]),A=(0,a.useCallback)(async e=>{if(!e.premiumBagEnabled)return;let{result:n}=await k(e.entryNumber);n&&P(n)},[k]),B=(0,a.useCallback)(async e=>{h(!0);let{hasError:n}=await u(e);if(n){p(!0),h(!1);return}h(!1)},[p,u]);return(0,i.jsx)(m.Provider,{value:{isLoadingCart:w,cartEntry:b,recipientInfo:C,isOpenModalGiftBag:N,isOpenModalRecipient:I,updateCartProductGiftBag:M,getPremiumGiftBag:k,premiumGiftBag:S,isPremiumGiftBagAvailable:D,hasErrorSelectEmptyZipCode:g&&!T,setIsCheckedGiftBag:v,setCartEntry:j,setIsOpenModalGiftBag:O,setRecipientInfo:y,setIsOpenModalRecipient:E,updateRecipientPremiumGiftBag:B,handleGetPremiumGiftBag:A,isLoadingPremiumGiftBag:z},children:n})},useCartGiftBag=()=>(0,a.useContext)(m)},55370:function(e,n,t){t.d(n,{Lm:function(){return CartGiftProvider},yG:function(){return useCartGift}});var i=t(85893),a=t(67294),o=t(84804),r=t(80490),s=t(11356),l=t(8930);let d={selectedGift:"",gifts:[],isLoading:!1,addGift:()=>void 0,rejectGift:()=>Promise.resolve(!1)},c=(0,a.createContext)(d),CartGiftProvider=e=>{let{children:n}=e,{cart:t,setIsError:m}=(0,r.jD)(),{isAuthenticated:p}=(0,s.aC)(),[x,u]=(0,a.useState)(d.isLoading),[f,_]=(0,a.useState)(d.selectedGift),[w,h]=(0,a.useState)([]),g=p()?o.J0.USER:o.J0.ANONYMOUS,getGifts=e=>{let n=[];for(let o of e){var t,i,a;(null===(i=o.promotion)||void 0===i?void 0:null===(t=i.gifts)||void 0===t?void 0:t.length)&&(n=[...n,...null===(a=o.promotion)||void 0===a?void 0:a.gifts])}return n};(0,a.useEffect)(()=>{_(t.selectedGiftPromotion),h(getGifts(t.appliedOrderPromotions))},[t]);let v=(0,a.useCallback)(async e=>{u(!0);let{hasError:n}=await l.N.addGift({cartId:t.id,code:e,userId:g});if(n){m(!0),u(!1);return}u(!1),_(e)},[t.id,m,g]),b=(0,a.useCallback)(async e=>{u(!0);let{hasError:n}=await l.N.rejectGift({cartId:t.id,userId:g,wantGift:e});return n&&m(!0),u(!1),n},[t.id,m,g]);return(0,i.jsx)(c.Provider,{value:{selectedGift:f,addGift:v,gifts:w,isLoading:x,rejectGift:b},children:n})},useCartGift=()=>(0,a.useContext)(c)},35949:function(e,n,t){t.d(n,{I:function(){return getDeliveryOptionsDataTesteId},l:function(){return formatDeliveryMode}});var i=t(84804),a=t(99285);function formatDeliveryMode(e){return e.map(e=>{let{deliveryMode:n,deliveryOptions:t}=e,{code:i}=n;if((0,a.S)(e)){let{deliveryCost:{formattedValue:e,value:t},name:i,isFreeShippingOption:a,description:o}=n;return{name:i,description:o,price:a||t<=0?"Gr\xe1tis":e}}let o=t.find(e=>e.code===i);if(o){let{deliveryCost:{formattedValue:e,value:n},isFreeShippingOption:t,name:i,description:a}=o;return{name:i,description:a,price:t||n<=0?"Gr\xe1tis":e}}})}function getDeliveryOptionsDataTesteId(e){let{deliveryOption:n,automationId:t}=e,a=function(e){let{salesMode:n,cheaper:t,faster:a}=e,o=n===i.g0.DELIVERY,r=n.replace(/_/g,"-").toLowerCase().trim();return o&&(t||a)?t?"".concat(r,"-cheaper"):a?"".concat(r,"-faster"):r:r}(n);return"".concat(t,"-").concat(a)}}}]);