(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3989,830],{88374:function(t,e,n){"use strict";n.d(e,{w:function(){return AccordionAddresses}});var r=n(85893),a=n(67294),o=n(24824),l=n(55509),i=n(42473),s=n(69183),c=n(10547),u=n(73866),d=n(62854),w=n(37340),m=n(20256);function _templateObject(){let t=(0,w._)(["\n padding: 20px;\n list-style: none;\n position: relative;\n cursor: pointer;\n border-radius: 10px;\n\n i {\n transform: ",";\n }\n\n @media only screen and (min-width: 768px) {\n padding: 20px;\n top: 3px;\n left: 1px;\n\n padding-bottom: ",";\n\n i {\n right: 52px;\n top: ",";\n }\n }\n"]);return _templateObject=function(){return t},t}function _templateObject1(){let t=(0,w._)(["\n margin-top: 10px;\n padding: 0 20px 30px 20px;\n display: flex;\n flex-direction: column;\n gap: 24px;\n font-size: 13px;\n\n a {\n margin-bottom: 0;\n }\n\n @media only screen and (min-width: 768px) {\n font-size: 14px;\n padding: 0 50px 30px 50px;\n margin-top: 0;\n }\n"]);return _templateObject1=function(){return t},t}let p=m.ZP.div.withConfig({componentId:"sc-2844ae32-0"})(_templateObject(),t=>t.isOpen&&"rotate(180deg)",t=>t.isOpen&&"30px",t=>t.isOpen?"50%":"43%"),x=m.ZP.div.withConfig({componentId:"sc-2844ae32-1"})(_templateObject1()),h="N\xe3o foi poss\xedvel alterar o endere\xe7o padr\xe3o, tente novamente.",f="Selecione um endere\xe7o padr\xe3o.";function goTop(){window.scrollTo({top:0,behavior:"smooth"})}function AccordionAddresses(t){let{address:e,onSubmitSuccess:n,onRemoveAddress:w,addressesCount:m}=t,{addressName:g="Identifica\xe7\xe3o do endere\xe7o",formattedAddress:b,defaultAddress:_,id:v}=e,[j,C]=(0,a.useState)(!1),[y,z]=(0,a.useState)(_),{toast:N}=(0,s.pm)(),S=(0,a.useCallback)(async()=>{let t={...e,defaultAddress:!_},{hasError:r,errors:a}=await c.K.patchUserAddress(t,v);if(r){N.error(h,{isDismissible:!0}),u.vU({title:h,stack:a});return}N.success("Dados de endere\xe7o salvos com sucesso.",{isDismissible:!0}),goTop(),n()},[e,_,v,n,N]);async function onAddressFormComplete(){n(),C(!1)}async function handleSwitchClick(){if(_){N.error(f,{isDismissible:!0}),u.vU({title:f});return}z(!0),await S()}return(0,r.jsxs)("div",{className:(0,d.C$)({_common:"tw-bg-white",vans:"tw-mb-5"}),children:[(0,r.jsxs)(p,{isOpen:j,onClick:()=>C(!j),children:[(0,r.jsxs)("div",{className:"tw-flex tw-flex-row tw-justify-between",children:[(0,r.jsx)("p",{className:(0,d.C$)({_common:"tw-mb-4",arezzo:"tw-text-xs tw-font-semibold md:tw-text-sm",schutz:"tw-text-xs tw-font-extrabold tw-uppercase",anacapri:"tw-text-sm tw-font-semibold tw-text-mine-shaft",vans:"tw-text-[15px] tw-font-semibold",zzmall:"tw-text-sm tw-font-semibold",alexandre_birman:"tw-text-xs tw-font-semibold tw-text-shark md:tw-text-sm",vicenza:"tw-text-sm tw-font-medium tw-text-coal"}),children:g}),(0,r.jsx)(i.X,{name:"arrowDown",className:"tw-ml-4",size:10})]}),(0,r.jsx)("span",{className:"tw-mb-4 tw-text-xs",children:b})]}),j?(0,r.jsx)(x,{className:"accordion__content",children:(0,r.jsx)(o.k,{address:e,onCancel:()=>void(C(!1),goTop()),onSuccess:()=>onAddressFormComplete(),showTitle:!1,onRemoveAddress:()=>w(),shouldShowSwitch:!0,shouldRenderMyAccountButtons:!0,hasFloatingFooter:!1,isEditingAddress:!0})}):m>1?(0,r.jsxs)("div",{className:"tw-px-5 tw-pb-5",children:[(0,r.jsx)("hr",{className:"tw-w-full tw-text-gallery"}),(0,r.jsxs)("div",{className:"tw-mt-3 tw-flex tw-flex-row tw-items-center tw-justify-between md:tw-justify-normal",children:[(0,r.jsx)("p",{className:(0,d.C$)({_common:"tw-text-sm tw-font-normal",schutz:"tw-text-xs tw-font-extrabold tw-uppercase",vans:"tw-text-[13px] tw-font-bold"}),children:"Esse \xe9 seu endere\xe7o principal?"}),(0,r.jsxs)("div",{className:"tw-flex tw-flex-row tw-items-center [&_div]:tw-mt-[6px] [&_div]:tw-p-0",children:[(0,r.jsx)("span",{className:(0,d.C$)({_common:"tw-mx-2 tw-text-sm tw-font-normal",schutz:"tw-text-xs tw-font-extrabold tw-uppercase",vans:"tw-text-[13px] tw-font-bold"}),children:y?"Sim":"N\xe3o"}),(0,r.jsx)(l.r,{checked:y,onClick:handleSwitchClick,className:(0,d.C$)({schutz:"tw-h-4 tw-w-[30px] before:tw-left-[14px]\n before:tw-h-[14px] before:tw-w-[14px] checked:before:tw-left-0",vans:"tw-h-4 tw-w-[30px] before:tw-left-[14px] before:tw-top-0\n before:tw-h-[14px] before:tw-w-[14px] checked:before:tw-left-0",alexandre_birman:"tw-h-4 tw-w-[30px] before:tw-left-[14px]\n before:tw-h-[14px] before:tw-w-[14px] checked:before:tw-left-0"})})]})]})]}):null]})}},70110:function(t,e,n){"use strict";n.d(e,{W:function(){return BottomSheetModal}});var r=n(85893),a=n(67294),o=n(73935),l=n(42473),i=n(49610),s=n(69280),c=n(87766),u=n(62854);function BottomSheetModal(t){let{isOpen:e,onClose:n,children:d,className:w,closeIconName:m="closeLight",...p}=t,x=(0,a.useRef)(null),{isServer:h}=(0,s.w)();(0,a.useEffect)(()=>{x.current=document.querySelector("#".concat(i.r))},[]);let[f,g]=(0,c.R)({isStateActive:e,durationInMs:300});return f?!x.current||h?null:(0,o.createPortal)((0,r.jsx)("div",{"aria-modal":"true",className:"".concat(w," tw-fixed tw-right-0 tw-top-0 tw-z-[100] tw-size-full tw-overflow-y-hidden"),...p,children:(0,r.jsxs)("div",{className:(0,u.C$)({_common:"content tw-absolute tw-bottom-0 tw-w-full ".concat("exited"===g?"tw-translate-y-full":"exiting"===g?"tw-animate-slideDown":"tw-animate-slideUpOnce"),arezzo:"tw-bg-pampas-light tw-rounded-t-lg tw-p-6 tw-flex tw-flex-col tw-gap-4",zzmall:"tw-bg-white tw-rounded-t-2xl tw-p-[5px_20px_20px] tw-shadow-[0_-2px_8px_-6px_rgba(0,0,0,0.75)]"}),children:[(0,r.jsx)("button",{className:(0,u.C$)({_common:"tw-relative tw-border-none tw-bg-transparent tw-p-4",arezzo:"tw-w-full",zzmall:"tw-left-[92%] tw-w-[8%] "}),onClick:n,children:(0,r.jsx)("span",{className:"tw-absolute tw-bottom-2 tw-right-2",children:(0,r.jsx)(l.X,{name:m,size:18})})}),d]})}),x.current):null}},50177:function(t,e,n){"use strict";n.d(e,{Q:function(){return M}});var r=n(85893),a=n(67294),o=n(11163),l=n(59492),i=n(28542),s=n(11356),c=n(80490),u=n(87536),d=n(20256),w=n(98174),m=n(87808),p=n(74025),x=n(62604),h=n(14908),f=n(73422),g=n(7924),b=n(45613),_=n(23455);async function getInStoreUserInfos(t){let e=await b.hi.get("/in-store/searchUser?fields=FULL&emailCpf=".concat(t));return(0,_.m9)(e.data,t=>(0,g.u)(t))}let v={getInStoreUserInfos};var j=n(26160),C=n(73866),y=n(37340);function _templateObject(){let t=(0,y._)(["\n .login {\n &__search-fields {\n display: flex;\n }\n\n &__submit-search-button {\n margin: 0;\n min-height: unset;\n font-size: 14px;\n }\n }\n\n .call-center-form {\n &__select {\n margin-right: 6px;\n }\n }\n\n .search-result {\n margin-top: 30px;\n\n &__login-error {\n margin-top: 4px;\n }\n\n &__user-login-button {\n margin: 10px 0 0;\n min-height: unset;\n font-size: 12px;\n }\n }\n\n @media only screen and (max-width: 768px) {\n .login {\n &__search-fields {\n flex-direction: column;\n }\n\n &__submit-search-button {\n width: 100%;\n }\n }\n\n .call-center-form {\n &__select {\n margin-right: 0;\n }\n }\n\n .search-result {\n display: flex;\n flex-direction: column;\n align-items: center;\n\n &__login-error {\n text-align: center;\n }\n }\n }\n"]);return _templateObject=function(){return t},t}let z=d.ZP.div.withConfig({componentId:"sc-9c338f2d-0"})(_templateObject()),N=[{value:"email",label:"E-mail"},{value:"CPF",label:"CPF"}],S={emailCpf:"emailCpf"},k="email",T={required:"O campo \xe9 obrigat\xf3rio",email:"Digite um email v\xe1lido",cpf:"Digite um CPF v\xe1lido"},E={notFound:"Sem resultados",apiError:"Ocorreu um erro ao buscar os usu\xe1rios. Por favor, tente novamente"};function LoginForm(t){let{onLogin:e,...n}=t,o=N[0],{register:l,formState:{errors:c},handleSubmit:g,resetField:b}=(0,u.cI)({mode:"onSubmit",reValidateMode:"onBlur"}),{loginAsCustomer:_,getUpdatedUser:y,user:I}=(0,s.aC)(),O=(0,d.Fg)(),[P,A]=(0,a.useState)(o),[R,B]=(0,a.useState)(""),[L,M]=(0,a.useState)(null),[$,D]=(0,a.useState)(!1),[F,U]=(0,a.useState)(!1);async function handleClickLogin(){U(!1),D(!0);let{hasError:t}=await _({customerEmail:(null==L?void 0:L.primaryEmail)||""});if(t){U(!0),D(!1);return}await y({fields:f.Px.FULL_USER}),D(!1),e(),b(S.emailCpf),M(null),B(""),A(o)}async function onSubmit(t){D(!0);let{result:e,hasError:n}=await v.getInStoreUserInfos(t.emailCpf);if(D(!1),n){B(E.apiError);return}if(!(null==e?void 0:e.customerId)){B(E.notFound);return}C.um({title:"Televendas ".concat(null==I?void 0:I.email," logou como cliente ").concat(e.primaryEmail)}),B(""),M(e)}return(0,r.jsxs)(z,{...n,children:[(0,r.jsxs)("form",{onSubmit:g(onSubmit),className:"login__form",noValidate:!0,children:[(0,r.jsxs)("div",{className:"login__search-fields",children:[(0,r.jsx)(p.A,{className:"call-center-form__select",label:"Buscar por:",options:N,isSearchable:!1,value:P,onChange:function(t){A(t)},customSelectClassName:"".concat(i.GX.SELECT_SEARCH_BY,"-").concat(P.value)}),(0,r.jsx)(x.I,{className:"call-center-form__input",dataTestId:"".concat(i.GX.INPUT,"-").concat(P.value),label:"Digite o ".concat(P.value),register:l(S.emailCpf,{required:{value:!0,message:T.required},pattern:{value:P.value===k?h.m.EMAIL:h.m.ANY,message:T.email},validate:t=>(function(t){let e=P.value===k;return e||j.sX(t)})(t)||T.cpf}),mask:P.value===k?"":"999.999.999-99",maskChar:null,errorMessage:function(t){if(c[t]){var e;return null===(e=c[t])||void 0===e?void 0:e.message}return""}(S.emailCpf),type:P.value===k?"email":"text"})]}),(0,r.jsx)(m.z,{variant:O.commonButtonVariants.callCenterRibbon.search,className:"login__submit-search-button",type:"submit",isLoading:$,isDisabled:$,dataTestId:i.GX.SEARCH_BUTTON,children:"Buscar"})]}),R?(0,r.jsx)("div",{className:"search-result",children:(0,r.jsx)("p",{children:R})}):L?(0,r.jsxs)("div",{className:"search-result",children:[(0,r.jsxs)("p",{className:"search-result__user-name","data-testid":i.GX.USER_NAME,children:[L.firstName," ",L.lastName]}),(0,r.jsx)(m.z,{isLoading:$,isDisabled:$,onClick:handleClickLogin,variant:O.commonButtonVariants.callCenterRibbon.login,className:"search-result__user-login-button",dataTestId:i.GX.USER_LOGIN_BUTTON,children:"Logar como usu\xe1rio"}),F?(0,r.jsx)(w.j,{className:"search-result__login-error",children:"Ops, n\xe3o foi poss\xedvel fazer o login. Por favor, tente novamente."}):null]}):null]})}var I=n(95181),O=n(29424);function styles_templateObject(){let t=(0,y._)(["\n .call-center-form {\n &__input {\n margin: 0;\n\n :nth-child(odd) {\n margin-right: 6px;\n }\n\n :nth-last-child(2) {\n margin-bottom: 0;\n }\n\n .required-mark {\n display: none;\n }\n }\n }\n\n .register {\n &__form {\n &__row {\n display: flex;\n margin: 0 0 10px;\n }\n\n &__submit-wrap {\n flex: 1;\n display: inline-flex;\n flex-direction: column;\n }\n\n &__password-input {\n flex: 1;\n margin: 0 6px 0 0;\n\n .call-center-form__input {\n height: auto;\n width: 100%;\n margin: 0;\n }\n }\n\n &__password-checker {\n margin: 3px 0 0;\n\n .title {\n display: none;\n }\n }\n }\n\n &__submit-register-button {\n margin: 20px 0 0;\n height: auto;\n min-height: unset;\n font-size: 14px;\n }\n\n &__error {\n margin-top: 4px;\n }\n }\n\n @media only screen and (max-width: 768px) {\n .call-center-form {\n &__input {\n margin: 0 0 20px;\n\n :nth-child(odd) {\n margin-right: 0;\n }\n\n :nth-last-child(2) {\n margin: 0 0 20px;\n }\n }\n }\n\n .register {\n &__form {\n &__row {\n flex-direction: column;\n margin: 0;\n }\n\n &__password-input {\n margin: 0 0 20px;\n\n .call-center-form {\n &__input {\n margin: 0;\n }\n }\n }\n }\n\n &__submit-register-button {\n margin: 0;\n }\n\n &__error {\n margin: 10px 0 0;\n max-width: unset;\n }\n }\n }\n"]);return styles_templateObject=function(){return t},t}let P=d.ZP.form.withConfig({componentId:"sc-3de3380-0"})(styles_templateObject()),A={firstName:"firstName",lastName:"lastName",password:"password",passwordConfirmation:"passwordConfirmation",email:"email"},R={required:"O campo \xe9 obrigat\xf3rio",invalidFirstName:"Nome inv\xe1lido",invalidLastName:"Sobrenome inv\xe1lido",invalidPassword:"Senha inv\xe1lida",invalidPasswordConfirmation:"As senhas n\xe3o coincidem",invalidEmail:"Email inv\xe1lido"};function RegisterForm(t){let{onLogin:e,...n}=t,[o,l]=(0,a.useState)(!1),[c,p]=(0,a.useState)(""),{registerUser:g,user:b,getUpdatedUser:_}=(0,s.aC)(),{register:v,formState:{errors:j},handleSubmit:C,watch:y}=(0,u.cI)({mode:"onSubmit",reValidateMode:"onBlur"}),z=(0,d.Fg)(),N=y(A.password),S={...v(A.firstName,{required:{value:!0,message:R.required},pattern:{value:h.m.NAME,message:R.invalidFirstName}})},k={...v(A.lastName,{required:{value:!0,message:R.required},pattern:{value:h.m.NAME,message:R.invalidLastName}})},T={...v(A.email,{required:{value:!0,message:R.required},pattern:{value:h.m.EMAIL,message:R.invalidEmail}})},E={...v(A.password,{required:{value:!0,message:R.required},min:8,pattern:{value:h.m.REPEAT_PASSWORD,message:R.invalidPassword}})};function getErrorMessage(t){var e;return(null===(e=j[t])||void 0===e?void 0:e.message)||""}let B={...v(A.passwordConfirmation,{required:{value:!0,message:R.required},validate:{value:t=>t===N||R.invalidPasswordConfirmation}})};async function onSubmit(t){l(!0);let{firstName:n,lastName:r,password:a,passwordConfirmation:o,email:i}=t,{hasError:s,hasErrorOnLogin:c,error:u}=await g({name:n,lastName:r,password:a,confirmPassword:o,username:i,acceptedTermsOfUse:!0},{employeeEmail:(null==b?void 0:b.email)||""});if(s||c){p(null==u?void 0:u.message),l(!1);return}await _({fields:f.Px.FULL_USER}),l(!1),e()}return(0,r.jsxs)(P,{...n,onSubmit:C(onSubmit),noValidate:!0,children:[(0,r.jsxs)("div",{className:"register__form__row",children:[(0,r.jsx)(x.I,{label:"Nome",register:S,errorMessage:getErrorMessage(A.firstName),className:"call-center-form__input",dataTestId:i.GX.INPUT_FIRST_NAME}),(0,r.jsx)(x.I,{label:"Sobrenome",register:k,errorMessage:getErrorMessage(A.lastName),className:"call-center-form__input",dataTestId:i.GX.INPUT_LAST_NAME})]}),(0,r.jsxs)("div",{className:"register__form__row",children:[(0,r.jsxs)("div",{className:"register__form__password-input",children:[(0,r.jsx)(I.C,{labelTypePassword:"Senha",register:E,errorMessage:getErrorMessage(A.password),className:"call-center-form__input",dataTestId:i.GX.INPUT_PASSWORD}),(0,r.jsx)(O.e,{registerNewPassword:N,className:"register__form__password-checker"})]}),(0,r.jsx)(I.C,{labelTypePassword:"Confirma\xe7\xe3o de Senha",register:B,errorMessage:getErrorMessage(A.passwordConfirmation),className:"call-center-form__input",dataTestId:i.GX.INPUT_PASSWORD_CONFIRMATION})]}),(0,r.jsxs)("div",{className:"register__form__row",children:[(0,r.jsx)(x.I,{label:"E-mail",register:T,errorMessage:getErrorMessage(A.email),className:"call-center-form__input",dataTestId:i.GX.INPUT_EMAIL,type:"email"}),(0,r.jsxs)("div",{className:"register__form__submit-wrap",children:[(0,r.jsx)(m.z,{type:"submit",className:"register__submit-register-button",variant:z.commonButtonVariants.callCenterRibbon.register,shouldGrow:!0,isLoading:o,isDisabled:o,dataTestId:i.GX.REGISTER_BUTTON,children:"Cadastrar"}),c?(0,r.jsx)(w.j,{className:"register__error",children:c}):null]})]})]})}function call_center_ribbon_styles_templateObject(){let t=(0,y._)(["\n padding: 10px 20px;\n background-color: ",";\n color: ",";\n display: flex;\n justify-content: space-between;\n\n .call-center-ribbon {\n &__actions {\n &__button {\n color: currentColor;\n font-size: inherit;\n font-family: inherit;\n background-color: transparent;\n border: none;\n letter-spacing: inherit;\n cursor: pointer;\n }\n\n &__separator {\n margin: 0 5px;\n }\n }\n }\n\n @media only screen and (max-width: 768px) {\n flex-direction: column;\n\n .call-center-ribbon {\n &__message {\n white-space: nowrap;\n overflow: hidden;\n text-overflow: ellipsis;\n margin: 0 0 3px;\n }\n }\n }\n"]);return call_center_ribbon_styles_templateObject=function(){return t},t}function _templateObject1(){let t=(0,y._)(["\n padding: 0 20px;\n width: 100%;\n height: auto;\n position: absolute;\n max-height: 0;\n overflow: hidden;\n top: 40px;\n z-index: 11;\n background-color: ",";\n border-bottom: 1px solid\n ",";\n transition-property: max-height, visibility;\n transition-duration: 0.5s;\n transition-timing-function: ease-in;\n\n // TODO: alterar para tamanho com forms\n // ou calcular no c\xf3digo\n &.open {\n max-height: 410px;\n }\n\n &.hidden {\n opacity: 0;\n visibility: hidden;\n }\n\n .call-center-accordion {\n &__content {\n display: flex;\n justify-content: space-between;\n max-width: 1440px;\n padding: 25px 10px 35px;\n margin: 0 auto;\n }\n\n &__column {\n width: 50%;\n max-width: 566px;\n\n :first-child {\n margin: 0 35px 0 0;\n }\n }\n\n &__title {\n font-size: 14px;\n font-weight: normal;\n margin: 0 0 15px;\n }\n }\n\n .call-center-form {\n &__input,\n &__select {\n margin: 0 0 10px;\n flex: 1;\n\n .label {\n font-size: 12px;\n margin: 0 0 5px;\n }\n }\n }\n\n @media only screen and (max-width: 768px) {\n top: 64px;\n\n .call-center-accordion {\n &__content {\n flex-direction: column;\n padding: 25px 30px 35px;\n }\n\n &__column {\n width: 100%;\n\n :first-child {\n padding: 0 0 30px;\n }\n }\n\n &__title {\n text-align: center;\n }\n }\n\n // TODO: alterar para tamanho com forms\n // ou calcular no c\xf3digo\n &.open {\n max-height: 1090px;\n }\n\n .call-center-form {\n &__input,\n &__select {\n max-width: unset;\n margin: 0 0 20px;\n\n > div {\n display: flex;\n height: 40px;\n }\n }\n\n &__select {\n > div {\n display: block;\n }\n }\n }\n }\n"]);return _templateObject1=function(){return t},t}let B=d.ZP.div.withConfig({componentId:"sc-e9ef6cd0-0"})(call_center_ribbon_styles_templateObject(),t=>t.isEmployee?t.theme.colors.callCenterRibbon.ribbonBackground:t.theme.colors.callCenterRibbon.ribbonBackgroundAsCustomer,t=>t.isEmployee?t.theme.colors.callCenterRibbon.ribbonText:t.theme.colors.callCenterRibbon.ribbonTextAsCustomer),L=d.ZP.div.withConfig({componentId:"sc-e9ef6cd0-1"})(_templateObject1(),t=>t.theme.colors.callCenterRibbon.accordionBackground,t=>t.theme.colors.callCenterRibbon.border),M=(0,a.memo)(t=>{let{user:e,isAuthenticated:n,logoutEmployeeCustomer:u}=(0,s.aC)(),{resetCart:d}=(0,c.jD)(),[w,m]=(0,a.useState)(!1),[p,x]=(0,a.useState)(!0),h=(0,o.useRouter)();function handleTransitionEnd(){w||x(!0)}function handleLogin(){m(!1),x(!0)}function handleClickLogin(){p&&x(!1),m(!w)}async function handleClickLogout(){if(await u(),!(null==e?void 0:e.isInStoreAuthenticated)){await h.push(l.Z.HOME),d();return}h.reload()}return function(){let a=!(null==e?void 0:e.isEmployee)&&!(null==e?void 0:e.isInStoreAuthenticated);return!n()||a?null:(0,r.jsxs)("div",{...t,"data-testid":i.GX.RIBBON,children:[(0,r.jsxs)(B,{isEmployee:null==e?void 0:e.isEmployee,className:"call-center-ribbon",children:[(0,r.jsxs)("p",{className:"call-center-ribbon__message",children:["Voc\xea est\xe1 navegando como:"," ",(0,r.jsx)("span",{className:"call-center-ribbon__user-name",children:"".concat(e.firstName," ").concat(e.lastName)})]}),(0,r.jsxs)("div",{className:"call-center-ribbon__actions",children:[(null==e?void 0:e.isInStoreAuthenticated)?null:(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("button",{type:"button",className:"call-center-ribbon__actions__button call-center-ribbon__actions__button--login",onClick:handleClickLogin,"data-testid":i.GX.LOGIN_BUTTON,children:"Acessar como cliente"}),(0,r.jsx)("span",{className:"call-center-ribbon__actions__separator",children:"|"})]}),(0,r.jsx)("button",{type:"button",className:"call-center-ribbon__actions__button call-center-ribbon__actions__button--logout",onClick:handleClickLogout,"data-testid":i.GX.LOGOUT_BUTTON,children:"Sair"})]})]}),(0,r.jsx)(L,{className:function(){let t=w?"open":"";return"call-center-accordion ".concat(t," ").concat(p?"hidden":"").trim()}(),onTransitionEnd:handleTransitionEnd,children:(0,r.jsxs)("div",{className:"call-center-accordion__content",children:[(0,r.jsxs)("div",{className:"call-center-accordion__column",children:[(0,r.jsx)("h2",{className:"call-center-accordion__title",children:"Login"}),(0,r.jsx)(LoginForm,{onLogin:handleLogin})]}),(0,r.jsxs)("div",{className:"call-center-accordion__column",children:[(0,r.jsx)("h2",{className:"call-center-accordion__title",children:"Cadastrar"}),(0,r.jsx)(RegisterForm,{onLogin:handleLogin})]})]})})]})}()})},23463:function(t,e,n){"use strict";n.d(e,{p:function(){return ChangePasswordForm}});var r=n(85893),a=n(67294),o=n(87536),l=n(11163),i=n(20256),s=n(27724),c=n(87808),u=n(11186),d=n(59492),w=n(28542),m=n(69183),p=n(88912),x=n(37340);function _templateObject(){let t=(0,x._)(["\n margin-top: 16px;\n\n .input {\n margin-bottom: 14px;\n }\n"]);return _templateObject=function(){return t},t}let h=i.ZP.div.withConfig({componentId:"sc-41607b8d-0"})(_templateObject());function ChangePasswordForm(t){let{query:e}=(0,l.useRouter)(),{toast:n}=(0,m.pm)(),[x,f]=(0,a.useState)(!1),g=(0,l.useRouter)(),b=(0,i.Fg)(),_=(0,o.cI)({mode:"onBlur"}),{handleSubmit:v}=_;async function onSubmitLogin(t){var r;n.clear(),f(!0);let a={password:t.password,checkPassword:t.confirmPassword,token:(null==e?void 0:null===(r=e.token)||void 0===r?void 0:r.toString())||""},{hasError:o}=await p.r.changePassword(a),l=o?u.Y.INVALID_TOKEN.KEY:u.Y.PASSWORD_CHANGED.KEY;f(!1),g.push("".concat(d.Z.LOGIN,"?message=").concat(l))}return(0,r.jsxs)("form",{...t,onSubmit:v(onSubmitLogin),children:[(0,r.jsx)(h,{className:"change-password-form__repeat-password-wrapper",children:(0,r.jsx)(s.g,{useFormReturn:_})}),(0,r.jsx)(c.z,{shouldGrow:!0,type:"submit",dataTestId:w.bq.SUBMIT_BUTTON,isLoading:x,isDisabled:x,variant:b.commonButtonVariants.changePasswordForm,className:"change-password-form__submit-button",children:"Redefinir senha"})]})}},40934:function(t,e,n){"use strict";n.d(e,{i:function(){return EasyAccess}});var r=n(85893),a=n(36403),o=n(28542),l=n(37340),i=n(20256);function _templateObject(){let t=(0,l._)(["\n text-align: center;\n margin: 40px 0;\n\n .easy-access {\n &__title {\n color: ",";\n padding: 12px;\n text-transform: uppercase;\n }\n\n &__description {\n color: ",";\n }\n }\n"]);return _templateObject=function(){return t},t}let s=i.ZP.div.withConfig({componentId:"sc-a2767560-0"})(_templateObject(),t=>t.theme.colors.easyAccess.title,t=>t.theme.colors.easyAccess.description);function EasyAccess(t){let{...e}=t;return(0,r.jsxs)(s,{...e,children:[(0,r.jsx)("h2",{className:"easy-access__title","data-testid":o.bq.EASY_ACCESS_TITLE,children:"Acesso f\xe1cil"}),(0,r.jsx)("p",{className:"easy-access__description",children:"Conecte-se usando seu cadastro de outra plataforma"}),(0,r.jsx)(a.J,{})]})}},103:function(t,e,n){"use strict";n.d(e,{p:function(){return P}});var r=n(85893),a=n(41382),o=n(62854),l=n(19839),i=n(41664),s=n.n(i),c=n(42473),u=n(90097),d=n(35131),w=n(91474),m=n(96984);let p={width:240,height:50};var x=n(25675),h=n.n(x);let f={HORIZONTAL:{width:185,height:163},VERTICAL:{width:177,height:184}},g={width:76,height:16};var b=n(21503),_=n(82888),v=n(46840),j=n(85051),C=n(38538),y=n(81836),z=n(5152),N=n.n(z),S=n(51182),k=n(55773),T=n(1646),E=n.n(T);let I=N()(()=>Promise.resolve().then(n.bind(n,70330)).then(t=>t.Carousel),{loadableGenerated:{webpack:()=>[70330]}}),O=N()(()=>Promise.resolve().then(n.bind(n,70330)).then(t=>t.CarouselSlide),{loadableGenerated:{webpack:()=>[70330]}}),P={Root:function(t){let{component:e,children:n,rootClassName:a}=t,[l,i]=(0,_.N)({threshold:.5}),s=(0,v.o)(),{styleComponent:c,backgroundImage:u,products:d}=e,{backgroundColor:w}=c,m={...w&&{backgroundColor:w},...u.url&&{background:'url("'.concat(u.url,'") no-repeat center'),backgroundSize:"cover"}};return 0===d.length?null:((0,y.Q)(()=>{i&&s.featureProducts(e)},[i]),(0,r.jsx)("div",{style:m,className:(0,o.C$)({_common:"tw-w-full",anacapri:"tw-bg-westar",vans:"tw-rounded-sm md:tw-rounded-lg lg:tw-@container"}),ref:l.set,children:(0,r.jsx)("div",{"data-products":d.length,className:(0,o.C$)({_common:E().root,anacapri:"tw-max-w-full tw-px-4 lg:tw-px-[34px]",zzmall:"tw-my-0 tw-justify-start tw-gap-6 tw-overflow-hidden tw-px-4\n tw-py-8 lg:tw-gap-0 xl:tw-max-w-[1368px] xl:tw-px-11",arezzo:"tw-max-w-[1440px] tw-justify-between tw-py-10 lg:tw-my-0\n lg:tw-flex-row ".concat(d.length>=3?"":"tw-px-5 lg:tw-px-16","\n tw-col-span-full tw-gap-8 lg:tw-gap-10 lg:tw-px-16"),vans:a,schutz:"tw-my-0 tw-gap-y-4 tw-py-4 lg:tw-flex-wrap lg:tw-px-5\n xl:tw-max-w-full 2xl:tw-max-w-screen-2xl 2xl:tw-p-12\n [@media(min-width:1200px)]:tw-flex-nowrap"}),children:n})}))},Info:function(t){let{component:e}=t,{sectionTitle:n,sectionDescription:a,media:l,styleComponent:i,legalText:s,products:c}=e,{contentColor:u}=i,x={...u&&{color:u}};return(0,r.jsxs)("div",{"data-products":c.length,style:x,className:(0,o.C$)({_common:"tw-flex tw-max-w-[324px] tw-flex-col tw-gap-2 max-lg:tw-items-center",anacapri:"tw-leading-none tw-text-dim-gray",zzmall:"tw-max-w-none tw-gap-4 tw-text-white lg:tw-mr-4\n lg:tw-max-w-[328px] lg:tw-gap-1",arezzo:"tw-mx-auto tw-gap-1 lg:tw-mx-0",vans:"max-lg:tw-gap-1",schutz:"tw-w-full tw-max-w-full tw-gap-0 tw-px-4 lg:tw-mx-0\n lg:tw-items-center [@media(min-width:1200px)]:tw-items-start"}),children:[function(){let{url:t,altText:e=""}=l;return t?(0,r.jsx)("div",{className:(0,o.C$)({_common:"tw-w-full",anacapri:"tw-mb-2 tw-max-w-60",zzmall:"tw-max-w-60",arezzo:"tw-mb-3 tw-max-w-40"}),children:(0,r.jsx)(m.M.Image,{alt:e,src:t,...p,objectFit:"contain",layout:"responsive"})}):null}(),n?(0,r.jsx)("h2",{style:x,className:(0,o.C$)({_common:"tw-text-2xl lg:tw-text-3xl",anacapri:"tw-text-[22px] tw-font-bold lg:tw-text-[28px]",zzmall:"tw-text-center tw-text-[32px] tw-font-normal lg:tw-text-left",arezzo:"tw-font-light tw-tracking-[4px] lg:tw-text-2xl",vans:"tw-text-center tw-text-[22px] lg:tw-text-left",schutz:"tw-text-schutz-black tw-font-heading tw-text-2xl tw-font-bold\n tw-uppercase tw-leading-[1.333em] lg:tw-text-4xl\n lg:tw-leading-[1.333em]"}),children:n}):null,a?(0,r.jsx)("p",{style:x,className:(0,o.C$)({_common:"max-lg:tw-text-center",anacapri:"tw-leading-4",zzmall:"-tw-mt-2 lg:tw-mt-0",arezzo:"tw-text-xs",schutz:"tw-text-schutz-black tw-text-sm tw-font-normal\n tw-leading-[1.72em] lg:tw-mt-1 lg:tw-text-base lg:tw-leading-[1.5em]"}),children:a}):null,s?(0,r.jsx)("small",{style:x,className:(0,o.C$)({_common:"tw-hidden",arezzo:"tw-text[10px] tw-italic lg:tw-block",schutz:"tw-text-schutz-black tw-order-1 tw-mt-4 tw-block tw-text-xs"}),children:s}):null,function(){if((0,w.k)(d.BrandId.Arezzo))return null;let t=!(0,w.k)(d.BrandId.Schutz);return(0,r.jsx)(P.Countdown,{component:e,shouldCalculateDays:t})}()]})},Countdown:function(t){let{component:e,shouldCalculateDays:n=!0}=t,{endDate:i,styleComponent:s}=e,{contentColor:c}=s,u={...c&&{color:c}},d=(0,l.pI)(new Date(i),new Date),w=d>0&&!!i,{days:m,hours:p,minutes:x,seconds:h}=(0,a.J)(d,n);function renderSeparator(){return(0,r.jsx)("span",{className:(0,o.C$)({_common:"tw-text-[28px] tw-font-medium"}),children:":"})}function renderCountdownItem(t,e){return(0,r.jsxs)("div",{style:u,className:(0,o.C$)({_common:"tw-flex tw-flex-col tw-items-center tw-rounded\n tw-bg-white/20 tw-py-1 lg:tw-gap-0.5 lg:tw-py-1.5",anacapri:"tw-w-11 lg:tw-w-12",arezzo:"tw-w-12 tw-px-1.5 lg:tw-py-1",vans:"tw-w-9 tw-bg-transparent",schutz:"".concat(c?"tw-border-[--content-color]":"tw-border-schutz-black"," tw-text-schutz-black tw-h-[65px] tw-w-[61px] tw-justify-center\n tw-rounded-none tw-border tw-bg-transparent tw-font-heading")}),children:[(0,r.jsx)("span",{style:u,className:(0,o.C$)({_common:"tw-text-2xl tw-font-bold lg:tw-text-[28px]",schutz:"tw-text-schutz-black tw-text-2xl tw-font-bold lg:tw-text-2xl"}),children:t}),(0,r.jsx)("span",{style:u,className:(0,o.C$)({_common:"tw-text-xs",schutz:"tw-text-schutz-black tw-text-sm tw-font-normal"}),children:e})]})}return w?(0,r.jsxs)("div",{style:u,className:(0,o.C$)({_common:"tw-flex tw-items-center tw-gap-2 tw-text-xl max-lg:tw-justify-center",zzmall:"-tw-mr-1 tw-mt-3 tw-grid\n tw-grid-cols-[repeat(4,68px_min-content)] tw-gap-1 lg:-tw-mr-1.5\n lg:tw-mt-5 lg:tw-gap-1.5",schutz:"tw-mt-4"}),children:[n?(0,r.jsxs)(r.Fragment,{children:[renderCountdownItem(m||"00","dias"),renderSeparator()]}):null,renderCountdownItem(p||"00","hrs"),renderSeparator(),renderCountdownItem(x||"00","min"),renderSeparator(),renderCountdownItem(h||"00","seg")]}):null},Coupon:function(t){let{component:e,customVoucherIcon:n={copy:"copyRounded",copied:"checkButtonLight"},rootClassName:a=""}=t,{coupon:l,styleComponent:i,legalText:d,buttonLink:w,buttonText:m,products:p}=e,{accentColor:x,contentColor:h,backgroundButtonColor:f,backgroundColor:g}=i,b={...g&&{"--background-color":g}},_={...f&&{"--background-button-color":f}},v={...x&&{"--accent-color":x}},j={...h&&{color:h}},{voucher:C,sectionDescription:y,sectionTitle:z}=l,{active:N,couponId:S}=C,k=!!w&&!!m,T=N&&!!S,E=p.length>1;return k||T||d?(0,r.jsxs)("div",{"data-products":p.length,className:(0,o.C$)({_common:"tw-flex tw-w-[220px] tw-flex-col tw-gap-4",zzmall:"tw-w-full lg:tw-w-[220px]",arezzo:"tw-w-auto tw-items-center tw-pt-2",schutz:"tw-text-schutz-black tw-w-full tw-px-4 lg:tw-min-w-80\n lg:tw-max-w-80 lg:tw-gap-2.5 lg:tw-px-0",vans:"tw-w-full lg:tw-min-w-56 lg:tw-max-w-72 ".concat(a)}),style:{...j,...v,..._,...b},children:[T?(0,r.jsxs)("div",{className:(0,o.C$)({_common:"tw-flex tw-flex-col tw-items-center tw-gap-1 tw-text-center",arezzo:"tw-w-[200px] tw-gap-2",schutz:"tw-mx-auto tw-w-80"}),children:[(0,r.jsx)("h3",{className:(0,o.C$)({_common:"tw-text-base tw-leading-none",zzmall:"tw-font-display tw-font-normal",arezzo:"tw-order-1 tw-text-xs tw-font-normal",schutz:"tw-mb-2 tw-text-sm tw-font-bold",vans:"tw-mb-1 tw-text-start tw-text-sm tw-font-normal"}),children:z}),(0,r.jsx)("p",{className:(0,o.C$)({arezzo:"tw-order-3 tw-text-xs",schutz:"tw-order-3 tw-mt-2 tw-text-xs",vans:"tw-order-3 tw-self-start tw-text-xs"}),children:y}),(0,r.jsx)(u.C,{code:S,copiedComponent:(0,r.jsx)(c.X,{name:n.copied,size:20,className:(0,o.C$)({zzmall:"tw-h-3.5"})}),copyComponent:(0,r.jsx)(c.X,{name:n.copy,size:20,className:(0,o.C$)({zzmall:"tw-h-3.5"})}),wrapperClassName:(0,o.C$)({_common:"tw-w-full tw-rounded-[30px] tw-justify-between tw-flex tw-place-items-center",anacapri:"tw-pl-5 tw-bg-white tw-text-emperor",zzmall:"tw-py-1 tw-px-4 tw-max-w-fit tw-border tw-justify-center tw-gap-2 tw-text-xs",arezzo:"tw-h-12 tw-pl-6 tw-bg-white tw-text-black tw-order-2 tw-text-base",vans:"tw-bg-white tw-rounded [&>_span]:tw-w-full",schutz:"tw-rounded-none tw-justify-evenly tw-border tw-w-fit tw tw-py-1.5 tw-px-2 tw-gap-2 tw-mt-1 [&>_span]:tw-text-sm [&>_span]:tw-uppercase lg:tw-w-48 ".concat(h?"tw-border-[--content-color]":"tw-border-schutz-black")}),buttonClassName:(0,o.C$)({_common:"tw-bg-[--accent-color]",anacapri:"tw-w-12 tw-py-3 tw-px-4 tw-text-white tw-rounded-tr-3xl tw-rounded-tl-none tw-rounded-br-3xl tw-rounded-bl-none",zzmall:"tw-bg-transparent",arezzo:"tw-p-3 tw-rounded-r-full tw-h-12 tw-text-white tw-w-12",vans:"tw-w-12 tw-py-1.5 tw-px-4 tw-text-white tw-rounded-tr tw-rounded-br",schutz:"tw-bg-transparent [&>i]:tw-h-3"})}),(0,r.jsx)("span",{className:(0,o.C$)({_common:"tw-text-xs tw-leading-tight",zzmall:"tw-mt-2",arezzo:"tw-order-4 tw-mt-6 tw-w-80 tw-text-[10px] tw-italic lg:tw-hidden",schutz:"tw-hidden"}),children:d})]}):null,k?(0,r.jsxs)(s(),{href:w,className:(0,o.C$)({_common:"tw-h-[46px] tw-w-full tw-items-center tw-justify-center\n tw-gap-5 tw-rounded-[30px] tw-bg-[--accent-color] tw-text-xs ".concat(E?"tw-flex":"tw-hidden"),anacapri:"tw-text-white",zzmall:"tw-mx-auto tw-h-10 tw-max-w-[220px] tw-justify-center tw-px-4\n tw-text-xs tw-font-medium tw-text-white",arezzo:"tw-h-14 tw-w-44 tw-text-base tw-text-white ".concat(T?"tw-hidden":"tw-flex"),vans:"tw-h-9 tw-rounded tw-text-sm tw-text-white",schutz:"tw-h-11 tw-rounded-none ".concat(f?"tw-bg-[--background-button-color]":g?"tw-bg-[--background-color]":"tw-bg-black","\n ").concat(x?"tw-text-[--accent-color]":g?"tw-text-[--background-color]":"tw-text-white","\n ").concat("tw-flex"," hover:tw-cursor-pointer\n hover:tw-underline")}),children:[(0,r.jsx)("span",{className:(0,o.C$)({zzmall:"tw-whitespace-nowrap",schutz:"tw-text-sm tw-font-normal tw-uppercase"}),children:m}),(0,r.jsx)(c.X,{name:"arrowRight",size:15,className:(0,o.C$)({zzmall:"tw-hidden",arezzo:"tw-hidden",vans:"tw-hidden",schutz:"tw-hidden"})})]}):null,(0,r.jsx)("span",{className:(0,o.C$)({_common:"tw-hidden",arezzo:T?"tw-hidden":"tw-order-4 tw-mt-4 tw-block tw-w-80 tw-text-center tw-text-[10px]\n tw-italic lg:tw-hidden",schutz:"tw-hidden"}),children:d})]}):null},ProductCard:function(t){let{product:e,isVertical:n=!1,isCarousel:a=!1,component:l,gtmEventProps:i}=t,[u,d]=(0,_.N)({threshold:.5}),w=(0,v.o)(),{primaryImages:m,images:p,name:x,price:z,discountPrice:N,percentualOfDiscount:S,url:k,sellable:T,sellableOmni:E,availableInStore:I,marketplaceBrand:O,productTags:P}=e,A=T||I||E,{getProductImage:R}=(0,j._)({product:e}),{isMobile:B}=(0,C.k)(),{coupon:L,styleComponent:M}=l,{voucher:$}=L,{active:D,couponId:F}=$,U=D&&F,{contentColor:G,accentColor:V,backgroundColor:Z}=M,W={...G&&{"--color-content":G}},q={...V&&{backgroundColor:V}},H={...Z&&{"--background-color":Z}},X={...V&&{"--accent-color":V}},K=n?f.VERTICAL:f.HORIZONTAL,Y=R({arrayToSearchIn:m,isHoverImage:!1})||R({arrayToSearchIn:p,isHoverImage:!1});return(0,y.Q)(()=>{let t=d&&i&&i.products.length>0;t&&w.productsListImpression(i)},[d,i]),(0,r.jsxs)(s(),{href:k,className:(0,o.C$)({_common:(0,o.AK)(n?"tw-flex tw-flex-col tw-gap-2":"tw-grid tw-w-full tw-grid-cols-2 tw-items-center tw-gap-4","product-card tw-relative tw-h-full tw-rounded-lg tw-bg-white"),anacapri:"max-md:tw-h-auto ".concat(n?"tw-max-w-44":"tw-max-w-[396px] tw-px-4"),zzmall:"tw-shadow-md ".concat(a?"tw-h-full":"tw-h-auto"," ").concat(n?"lg:tw-max-w-40":"tw-max-w-[445px] tw-grid-cols-[minmax(0,135px),1fr] tw-gap-0\n lg:tw-w-[445px] lg:tw-max-w-full\n lg:tw-grid-cols-[minmax(0,175px),1fr]"),arezzo:"tw-group tw-relative tw-flex tw-w-full tw-max-w-96 tw-gap-0\n tw-rounded-none ".concat(n?"tw-bg-transparent lg:tw-aspect-[10/16]":"tw-mx-3 lg:tw-mx-0 lg:tw-w-full\n ".concat(U?"lg:tw-max-w-[414px]":"lg:tw-max-w-[322px]")),vans:(0,o.AK)("tw-justify-self-center tw-rounded-lg",n&&"tw-gap-0",!n&&"tw-flex tw-min-w-[465px] tw-max-w-[465px] tw-gap-2\n tw-overflow-hidden max-md:tw-p-4"),schutz:"tw-h-fit tw-gap-2 tw-rounded-none lg:tw-gap-x-0 ".concat(G||a||!a&&!B?"tw-bg-aqua-haze":"tw-bg-white")}),style:{...W,...X},ref:u.set,onClick:function(){w.featureProducts(l,{isClickEvent:!0}),w.productImpression({product:e,eventType:b.SX.PRODUCT_CLICK,customAttributes:{...null==i?void 0:i.customAttributes}})},children:[(0,r.jsx)(h(),{...K,src:(null==Y?void 0:Y.url)||"",alt:x,className:(0,o.C$)({_common:"product-card-image tw-rounded-t-lg tw-object-cover",zzmall:"tw-h-auto tw-w-full ".concat(n?"tw-aspect-[27/38]":"tw-aspect-[7/10] tw-rounded-l-lg tw-rounded-tr-none"),arezzo:"tw-w-full tw-rounded-none ".concat(n?"":U?"lg:tw-max-w-[174px]":"lg:tw-max-w-[120px]"),vans:(0,o.AK)(n&&"tw-aspect-[190/220] tw-w-full tw-rounded-sm lg:tw-rounded",!n&&"tw-h-full tw-w-1/3 tw-min-w-[106px] tw-rounded-md md:tw-min-w-52\n md:tw-max-w-60"),schutz:"tw-w-full tw-rounded-none"})}),Number(S)?(0,r.jsxs)("span",{style:X,className:(0,o.C$)({_common:"tw-absolute tw-rounded tw-bg-[--accent-color] tw-px-2\n tw-py-0.5 tw-text-[10px] tw-font-bold tw-text-white ".concat(n?"tw-left-2 tw-top-2":"tw-left-4 tw-top-4"),anacapri:V?"":"tw-bg-locust",zzmall:"tw-left-3 tw-top-3 tw-rounded-xl tw-font-semibold",arezzo:"tw-bg-transparent tw-text-black",schutz:"tw-hidden",vans:"tw-hidden"}),children:["-",S,"%"]}):null,(0,r.jsxs)("div",{style:H,className:(0,o.C$)({_common:"tw-flex tw-flex-col tw-gap-2\n ".concat(n?"tw-p-4":"tw-py-4"),anacapri:"tw-text-xs max-lg:tw-px-2\n ".concat(n?"tw-h-[88px]":"tw-h-auto"),zzmall:n?"tw-h-full tw-px-4 tw-py-3":"tw-px-4 tw-py-0",arezzo:"tw-bottom-0 tw-w-full tw-bg-transparent tw-py-6 ".concat(n?"tw-flex-row tw-flex-wrap tw-justify-between tw-p-4 tw-pb-0\n tw-text-[--color-content] lg:tw-absolute\n lg:tw-bg-[--background-color]":"tw-pl-4 tw-pr-6"),vans:(0,o.AK)(n&&"tw-p-2.5",!n&&"tw-h-auto tw-w-full max-md:tw-self-stretch max-md:tw-py-0\n max-md:tw-pl-2 md:tw-pl-2 md:tw-pr-2 lg:tw-py-2"),schutz:"".concat(a?"tw-w-full":"tw-w-fit lg:tw-mx-auto lg:tw-ml-0 lg:tw-px-7"," tw-px-2 tw-py-0")}),children:[(0,r.jsxs)("div",{className:(0,o.C$)({_common:"tw-flex tw-flex-col tw-gap-2",zzmall:n?"tw-h-full":"",arezzo:"tw-w-full ".concat(n?"tw-flex-row":"tw-max-w-40"),anacapri:n?"tw-h-full":"",vans:n?"tw-h-full tw-gap-1":"tw-flex-1 tw-gap-1 md:tw-gap-2",schutz:a?"tw-gap-0":"tw-gap-2"}),children:[(0,r.jsxs)("div",{className:(0,o.C$)({_common:"tw-flex tw-flex-col",arezzo:""}),children:[function(){let{name:t}=O;return t?(0,r.jsx)("span",{className:(0,o.C$)({_common:"tw-font-sm tw-font-medium tw-uppercase",anacapri:"tw-hidden",arezzo:"tw-hidden",vans:"tw-hidden",schutz:"tw-hidden"}),children:t}):null}(),function(){let t=P[P.length-1],{mediaImage:e}=t||{},{url:a="",altText:l=""}=e||{};return!a||n?null:(0,r.jsx)(h(),{src:a,alt:l,...g,className:(0,o.C$)({_common:"tw-hidden",arezzo:"tw-mb-2 tw-block tw-object-contain"})})}(),(0,r.jsx)("span",{className:(0,o.C$)({_common:"tw-line-clamp-2\n ".concat(n?"tw-text-xs":"tw-text-sm"),zzmall:"tw-text-sm",arezzo:"tw-text-xs ".concat(n?"tw-line-clamp-1":""),vans:(0,o.AK)("tw-text-sm tw-font-medium",n&&"tw-line-clamp-1"),schutz:"".concat(a?"tw-line-clamp-1":"tw-mt-2 tw-line-clamp-2","\n tw-text-sm tw-font-normal")}),children:x})]}),(0,r.jsx)("div",{className:(0,o.C$)({_common:"tw-mt-auto tw-flex tw-gap-1.5",vans:"tw-mt-0 tw-text-sm"}),children:function(){let{formattedValue:t,value:e}=N,{formattedValue:l}=z;return A?e?(0,r.jsxs)("div",{className:(0,o.C$)({_common:"tw-flex ".concat(n?"tw-flex-row tw-flex-wrap tw-gap-1.5":"tw-flex-col"),zzmall:"tw-mt-auto tw-flex-col tw-gap-0",arezzo:"tw-h-8 tw-w-min tw-gap-0 lg:tw-h-auto",vans:"tw-flex-row tw-gap-1",schutz:"tw-h-6 tw-items-center"}),children:[(0,r.jsx)("span",{className:(0,o.C$)({_common:"tw-whitespace-nowrap tw-line-through",zzmall:"tw-text-xs tw-text-silver",arezzo:"tw-text-nowrap tw-text-xs tw-font-bold",vans:"tw-text-vans-neutral-medium ".concat(a?"xxs:tw-text-xs xs:tw-text-sm":"tw-text-sm"),schutz:"tw-text-schutz-neutral-medium tw-text-sm"}),children:l}),(0,r.jsx)("span",{className:(0,o.C$)({anacapri:"tw-font-bold tw-text-[--accent-color] ".concat(n?"tw-text-xs":"tw-text-2xl"),zzmall:"tw-font-medium tw-text-upsdell-red ".concat(n?"tw-text-base":"tw-text-base lg:tw-text-xl"),arezzo:"tw-font-bold tw-text-red-lighter\n ".concat(n?"tw-text-xs":"tw-text-lg"),schutz:"tw-text-schutz-black tw-text-sm tw-font-bold",vans:"tw-text-black ".concat(a?"xxs:tw-text-xs xs:tw-text-sm":"tw-text-sm")}),children:t}),S&&(0,r.jsxs)("span",{style:X,className:(0,o.C$)({_common:"tw-hidden",schutz:"tw-bg-schutz-black tw-text-schutz-white tw-block\n tw-px-1 tw-py-0.5 tw-text-xs tw-font-normal"}),children:["-",S,"%"]})]}):(0,r.jsx)("span",{className:(0,o.C$)({arezzo:"tw-h-8 tw-whitespace-nowrap tw-text-xs tw-font-bold",vans:"tw-text-sm tw-font-normal",schutz:"tw-h-6 tw-text-sm tw-font-bold"}),children:l}):(0,r.jsx)("span",{children:"Indispon\xedvel"})}()})]}),n?(0,r.jsx)("div",{style:X,className:(0,o.C$)({_common:"tw-hidden",arezzo:"tw-h-0 tw-w-full tw-overflow-hidden\n tw-transition-measurements tw-duration-200 group-hover:tw-h-12\n lg:tw-block"}),children:(0,r.jsxs)("div",{className:"tw-flex tw-w-full tw-items-center tw-justify-center tw-gap-4 tw-rounded-full tw-border tw-px-6 tw-py-3 tw-text-xs tw-transition-all hover:tw-border-[--accent-color] hover:tw-bg-[--accent-color] hover:tw-text-white",children:[(0,r.jsx)(c.X,{name:"bag"}),"Comprar"]})}):(0,r.jsxs)("div",{style:q,className:(0,o.C$)({_common:"tw-flex tw-h-10 tw-w-full tw-max-w-[152px] tw-items-center\n tw-justify-center tw-gap-4 tw-rounded-[30px] tw-text-xs",anacapri:"tw-bg-locust tw-text-white",zzmall:"tw-mt-2 tw-justify-center tw-text-xs tw-font-medium tw-text-white",arezzo:"tw-mt-2 tw-max-w-[114px] tw-text-white lg:tw-max-w-[192px] ".concat(U?"":"tw-hidden"),vans:"tw-max-w-none tw-rounded tw-bg-black tw-text-sm tw-font-medium\n tw-text-white",schutz:"tw-hidden"}),children:[(0,r.jsx)("span",{children:"Comprar agora"}),(0,r.jsx)(c.X,{name:"arrowRight",size:15,className:(0,o.C$)({zzmall:"tw-hidden",arezzo:"tw-hidden",vans:"tw-hidden"})})]})]})]})},ProductList:function(t){let{component:e,options:n={},isCarouselCustom:a=!1,rootClassName:l=""}=t,{products:i,styleComponent:s}=e,{isMobile:c,isTablet:u}=(0,C.k)(),m={"--arrow-colors":s.contentColor||"currentColor"},p={hidePagination:!0,hideArrows:u||i.length<=3,slides:{perView:3,spacing:8},breakpoints:{"(max-width: 1023px)":{slides:{perView:2.3,spacing:8}}},...n},x=a||i.length>2;function renderProductCard(t,n){let a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,o={products:(0,k.Wf)(i,3,a),eventType:b.SX.PRODUCT_IMPRESSION,customAttributes:{...(0,S.K)(e)}};return(0,r.jsx)(P.ProductCard,{product:t,component:e,isVertical:n,isCarousel:x,gtmEventProps:o})}return function(){if(0===i.length)return null;if(x)return(0,r.jsx)("div",{"data-products":i.length,className:(0,o.C$)({_common:"carousel-container tw-w-full md:tw-max-w-[552px] ".concat(i.length>3?"lg:tw-mx-8":""),zzmall:"md:tw-w-[496px]",arezzo:"lg:tw-mx-0 xl:tw-max-w-[721px]",vans:"".concat(l)}),children:(0,r.jsx)(I,{style:m,options:p,className:(0,o.C$)({_common:"".concat(E().carousel," max-lg:-tw-mr-4 lg:tw-w-full"),vans:"max-lg:-tw-mr-2",arezzo:"max-lg:tw-mr-0",schutz:"max-lg:tw-mr-0 [&>div]:tw-items-center ".concat(i.length>2?"tw-ml-4":"tw-mx-4 max-lg:tw-mr-4","\n lg:tw-ml-0")}),prevButtonProps:{className:(0,o.C$)({schutz:"[&>i]:tw-h-4 [&>i>svg>path]:tw-stroke-none ".concat(s.contentColor?"[&>i>svg>path]:tw-fill-[--arrow-colors]":"[&>i>svg>path]:tw-fill-black")})},nextButtonProps:{className:(0,o.C$)({schutz:"[&>i]:tw-h-4 [&>i>svg>path]:tw-stroke-none ".concat(s.contentColor?"[&>i>svg>path]:tw-fill-[--arrow-colors]":"[&>i>svg>path]:tw-fill-black")})},children:i.map((t,e)=>(0,r.jsx)(O,{className:"tw-h-auto",children:renderProductCard(t,!0,e)},t.code))})});if(2===i.length)return(0,r.jsx)("div",{"data-products":i.length,className:(0,o.C$)({_common:"tw-grid tw-grid-cols-2 tw-gap-3",arezzo:"tw-w-full tw-max-w-[350px] tw-gap-0.5",vans:l}),children:i.map((t,e)=>renderProductCard(t,!0,e))});let t=!!(0,w.k)(d.BrandId.Schutz)&&!!c;return renderProductCard(i[0],t)}()}}},89352:function(t,e,n){"use strict";n.d(e,{k:function(){return HoverZoomImage}});var r=n(85893),a=n(96984),o=n(37340),l=n(20256);function _templateObject(){let t=(0,o._)(["\n background: url(",");\n background-size: 200%;\n position: relative;\n max-width: ","px;\n max-height: ","px;\n display: flex;\n\n :hover {\n cursor: crosshair;\n\n .container-image {\n opacity: 0;\n }\n }\n\n .container-image {\n width: 100%;\n height: auto;\n opacity: 1;\n display: flex;\n transition: opacity 0.2s;\n }\n"]);return _templateObject=function(){return t},t}let i=l.ZP.div.withConfig({componentId:"sc-580f33d5-0"})(_templateObject(),t=>t.zoomImageSrc,t=>t.imageDimensions.width,t=>t.imageDimensions.height);function handleMouseMove(t){let{left:e,top:n,width:r,height:a}=t.currentTarget.getBoundingClientRect(),o=(t.clientX-e)/r*100,l=(t.clientY-n)/a*100;t.currentTarget.style.backgroundPosition="".concat(o,"% ").concat(l,"%")}function HoverZoomImage(t){let{imageSrc:e,zoomImageSrc:n,altText:o,width:l,height:s,objectFit:c="contain",layout:u="intrinsic",dataTestId:d="",...w}=t;return(0,r.jsx)(i,{zoomImageSrc:n,onMouseMove:handleMouseMove,imageDimensions:{width:l,height:s},...w,children:(0,r.jsx)(a.M.Image,{src:e,alt:o,width:l,height:s,layout:u,objectFit:c,className:"container-image","data-testid":d})})}},70330:function(t,e,n){"use strict";n.r(e),n.d(e,{Accordion:function(){return o.U},AccordionAccount:function(){return l.G},AccordionAddresses:function(){return i.w},AddressForm:function(){return s.k},Banner:function(){return c.j},BannerList:function(){return BannerList},BottomSheet:function(){return b.R},BottomSheetModal:function(){return _.W},Breadcrumb:function(){return v.a},BuildYourKit:function(){return W},Button:function(){return q.z},BuyTogetherCampaign:function(){return BuyTogetherCampaign},CallCenterRibbon:function(){return tj.Q},Carousel:function(){return tC.l},CarouselBanner:function(){return ty.e},CarouselLite:function(){return CarouselLite},CarouselSkeleton:function(){return CarouselSkeleton},CarouselSlide:function(){return O.q},CartFooter:function(){return tI.T},CartRibbon:function(){return tP.d},ChangePasswordForm:function(){return tA.p},ChatBotAssistant:function(){return ChatBotAssistant},CheckboxInput:function(){return tR.I},Chip:function(){return tB.A},Col:function(){return eo.JX},CopyableInput:function(){return tL.C},CustomSelect:function(){return tM.A},CustomSizeSelect:function(){return CustomSizeSelect},DefaultZendeskButton:function(){return tZ.Y},Drawer:function(){return Y.d},DynamicContactList:function(){return tW.$},DynamicPersonalizeContent:function(){return DynamicPersonalizeContent},EasyAccess:function(){return t4.i},Error:function(){return t3.j},FavoriteButton:function(){return t5._},FavoriteTooltip:function(){return FavoriteTooltip},FeatureProducts:function(){return t8.p},Feedback:function(){return R.x},FreeShippingCalculator:function(){return t7.R},FullscreenVideo:function(){return ee},GiftBagItem:function(){return eS.k},GiftModal:function(){return tO.G},GoogleMaps:function(){return en.h},GoogleMapsMarker:function(){return er.S},GoogleMapsMarkerPopUp:function(){return ea.p},Grid:function(){return eo.rj},Head:function(){return el.F},Header:function(){return Header},HeaderDrawer:function(){return HeaderDrawer},HoverZoomImage:function(){return es.k},Input:function(){return ec.I},InputPassword:function(){return eu.C},KitInfo:function(){return kit_info_KitInfo},Label:function(){return ed._},LabelGiftBag:function(){return ew.x},LeadCapture:function(){return em.Y},LinkList:function(){return LinkList},LinkUnderline:function(){return ex._},LinkedSeoPost:function(){return LinkedSeoPost},Loader:function(){return tX.a},LoginForm:function(){return ef.U},Marquee:function(){return Marquee},Modal:function(){return e_.u},ModalAddToCartResponse:function(){return ModalAddToCartResponse},ModalAside:function(){return ev.L},ModalBuyTogether:function(){return ModalBuyTogether},ModalCarousel:function(){return ej.s},ModalCartRecipientDiffers:function(){return eC.S},ModalForgottenPassword:function(){return ey.T},ModalGiftBag:function(){return ez.V},ModalGiftBagRecipient:function(){return eN.u},ModalKnowMore:function(){return ek.S},ModalMiniPDP:function(){return eT.h},ModalPersonalize:function(){return ModalPersonalize},ModalRemoveCartEntry:function(){return eB.M},ModalSecurityCode:function(){return eL.r},ModalTermsOfUse:function(){return eM.t},ModalZipCode:function(){return e$.I},OrderTotalFixed:function(){return eD.M},PasswordChecker:function(){return eF.e},PercentualOfDiscount:function(){return eU.t},PersonalizeContent:function(){return PersonalizeContent},PixTimer:function(){return eG.F},PopUpLgpd:function(){return eV.o},PreOrderRibbon:function(){return eZ.O},ProductBenefits:function(){return eW._},ProductDimension:function(){return eq.Q},ProductItem:function(){return ProductItem},ProductItemSkeleton:function(){return ProductItemSkeleton},ProgressBar:function(){return eY.k},PromotionTag:function(){return PromotionTag},RadioInput:function(){return eJ.N},RangeSlider:function(){return e0.U},ReCaptcha:function(){return e1.e},RecommendedProductsV2:function(){return e2.l},RegisterForm:function(){return e4.B},RenderIf:function(){return e6},RepeatPassword:function(){return e3.g},Ribbon:function(){return e8.V},RouteChangeLoader:function(){return e7.s},Row:function(){return eo.X2},SafeBuy:function(){return e9.o},SchemaTags:function(){return nt.F},ScriptWithCleanup:function(){return ne.J},SearchStoresForm:function(){return SearchStoresForm},SeeAllPostsButton:function(){return SeeAllPostsButton},Select:function(){return nl.P},SeoContent:function(){return SeoContent},SeoContentBottom:function(){return SeoContentBottom},ShareButton:function(){return nc.T},ShareButtonNative:function(){return ShareButtonNative},SimpleAccordion:function(){return nu.e},SizeSelect:function(){return nd.C},Skeleton:function(){return tE.O},SlotComponents:function(){return SlotComponents},SocialLogin:function(){return nw.J},Spinner:function(){return nm.$},StatusMessage:function(){return np.A},Switch:function(){return nx.r},Tabs:function(){return Tabs},TermsOfUse:function(){return ng.N},TextTag:function(){return TextTag},Timer:function(){return nb.B},ToastContainer:function(){return n_.I},Tooltip:function(){return Tooltip},TransitionWrapper:function(){return TransitionWrapper},Video:function(){return ny.n},WalletGuard:function(){return nz.x},WalletRedirectGuard:function(){return nN.Z},WalletWrapper:function(){return nS.o},Wheel:function(){return nk.A},WishGiftContent:function(){return nT.H},WishGiftModal:function(){return WishGiftModal},ZendeskChat:function(){return nE.s},ZzIcon:function(){return y.X},ZzNextImage:function(){return H.P}});var r,a,o=n(56606),l=n(77197),i=n(88374),s=n(32913),c=n(4301),u=n(85893),d=n(39027);let w={DESKTOP:{1:320,2:768,3:825},MOBILE:{1:1100,2:768,3:375}};var m=n(38538),p=n(93804),x=n(29055),h=n(37340),f=n(20256);function _templateObject(){let t=(0,h._)(["\n display: grid;\n grid-template-columns: repeat(1, 1fr);\n grid-gap: 2px;\n margin-bottom: 2px;\n grid-template-columns: repeat(",", 1fr);\n\n @media only screen and (max-width: 768px) {\n display: flex;\n flex-direction: column;\n }\n"]);return _templateObject=function(){return t},t}let g=f.ZP.section.withConfig({componentId:"sc-e2042228-0"})(_templateObject(),t=>t.length),getBannerWidth=t=>1920/t;function BannerList(t){let{component:e,id:n,hasGtmAttributes:r,customDimension:a,className:o="",isCustomComponent:l=!1,titleTag:i,hasCallToCart:s,...c}=t,{isMobile:h}=(0,m.k)(),{banners:f,style:b,uid:_}=e,{backgroundColor:v}=b||{},j=v&&l?v:p.H.WHITE,C=f.filter(t=>t.imageUrl||t.videoLink||t.product),y=x.w8(C,3),{DESKTOP:z,MOBILE:N}=w,S=h?N:z,getBannerHeight=t=>a||S["".concat(t)];return(0,u.jsx)("div",{...c,children:y.map((t,e)=>(0,u.jsx)(g,{className:"banners-container ".concat(o).trim(),length:t.length,id:n,style:{backgroundColor:j},children:function(t){let e=getBannerWidth(t.length),n=getBannerHeight(t.length);return t.map((t,a)=>{let{imageUrl:o,videoLink:c,redirectPath:w,imageCode:m,title:p,description:x,button:h,spreadsheetMetadata:f,imageAltText:g,isFloatingText:b,style:v,product:j}=t;return l?(0,u.jsx)(d.j,{imageUrl:o,imageAlt:g,imageAltText:g,spreadsheetMetadata:f,hasBannerMetadata:!0,height:n,bannerStyle:v,isFloatingText:b,button:h,shouldUseTextContent:!0,title:p,titleTag:i,hasCallToCart:s,product:j},m):(0,u.jsx)(d.j,{width:e,height:n,redirectPath:w,imageAlt:m,imageUrl:o,title:p,description:x,button:h,videoOptions:{options:{url:c,playing:!0}},bannerStyle:v,hasBannerMetadata:!0,spreadsheetMetadata:f,componentName:r?_:"",imageAltText:g,index:null==a?void 0:a.toString(),hasCallToCart:s,product:j},o||c)})}(t)},e))})}var b=n(27458),_=n(70110),v=n(81596),j=n(67294),C=n(68460),y=n(42473);let z={WIDTH:0,HEIGHT:0},N={ICON_SIZE_SINGLE_VARIANT:0,ICON_SIZE_WITH_VARIANTS:0},S={GIFT:"Adicionar kit com brinde"};var k=n(80490);let T=(0,j.createContext)({currentQuantity:0,getFormattedOptions:()=>[],handleSelectedProducts:()=>void 0,selectedProducts:[],resetSelectedProducts:()=>void 0}),BuildYourKitProvider=t=>{let{children:e}=t,[n,r]=(0,j.useState)([]),{items:a}=(0,k.jD)(),o=n.reduce((t,e)=>t+e.quantity,0),l=(0,j.useCallback)((t,e)=>{var r,o;let l=(null===(r=a.find(e=>e.product.code===t))||void 0===r?void 0:r.quantity)||0,i=(null===(o=n.find(e=>e.variantCode===t))||void 0===o?void 0:o.quantity)||0;return e.stockLevel-i-l},[a,n]),i=(0,j.useCallback)(t=>t.map(t=>{let{code:e,displayText:n,sellable:r,stock:a}=t,o=l(e,a),i=function(t,e){let n=t>0,r=t<=3;return r&&n?"".concat(e," - Restam ").concat(t):e}(o,n);return{value:e,label:i,isDisabled:!o||!r}}),[l]);return(0,u.jsx)(T.Provider,{value:{currentQuantity:o,getFormattedOptions:i,handleSelectedProducts:function(t){r(e=>{let n=!1,r=e.map(e=>e.code===t.code?(n=!0,{...t,quantity:e.quantity+1}):e);return n?r:[...e,t]})},selectedProducts:n,resetSelectedProducts:function(){r([])}},children:e})},useBuildYourKit=()=>(0,j.useContext)(T);var E=n(46840),I=n(62854),O=n(5632),P=n(77794),A=n(87808),R=n(18253),B=n(43550),L=n(35131),M=n(91474),$=n(35426),D=n(74025),F=n(23821);function size_select_templateObject(){let t=(0,h._)(["[&_.CustomSelect__menu]:tw-hidden"],["[&_.CustomSelect\\_\\_menu]:tw-hidden"]);return size_select_templateObject=function(){return t},t}function _templateObject1(){let t=(0,h._)(["tw-flex-1 [&_.CustomSelect__control]:tw-h-10\n [&_.CustomSelect__option--is-disabled>div]:tw-cursor-not-allowed\n [&_.CustomSelect__option--is-disabled>div]:tw-text-zorba-dark\n [&_.CustomSelect__placeholder]:tw-p-1.5\n [&_.custom-select__label]:tw-p-2.5"],["tw-flex-1 [&_.CustomSelect\\_\\_control]:tw-h-10\n [&_.CustomSelect\\_\\_option--is-disabled>div]:tw-cursor-not-allowed\n [&_.CustomSelect\\_\\_option--is-disabled>div]:tw-text-zorba-dark\n [&_.CustomSelect\\_\\_placeholder]:tw-p-1.5\n [&_.custom-select\\_\\_label]:tw-p-2.5"]);return _templateObject1=function(){return t},t}function _templateObject2(){let t=(0,h._)(["[&_.CustomSelect__control]:tw-border-schutz-neutral-medium\n [&_.CustomSelect__option--is-disabled>div]:tw-text-schutz-neutral-medium\n [&_.CustomSelect__placeholder]:tw-text-schutz-neutral-medium tw-w-full\n tw-flex-1 [&_.CustomSelect__control]:tw-h-10\n [&_.CustomSelect__control]:tw-rounded-none\n [&_.CustomSelect__control]:tw-border-b\n [&_.CustomSelect__indicators]:tw-mx-3\n [&_.CustomSelect__option--is-disabled>div]:tw-cursor-not-allowed\n [&_.CustomSelect__placeholder]:tw-p-1.5\n [&_.CustomSelect__placeholder]:tw-text-sm\n [&_.custom-select__label]:tw-text-sm"],["[&_.CustomSelect\\_\\_control]:tw-border-schutz-neutral-medium\n [&_.CustomSelect\\_\\_option--is-disabled>div]:tw-text-schutz-neutral-medium\n [&_.CustomSelect\\_\\_placeholder]:tw-text-schutz-neutral-medium tw-w-full\n tw-flex-1 [&_.CustomSelect\\_\\_control]:tw-h-10\n [&_.CustomSelect\\_\\_control]:tw-rounded-none\n [&_.CustomSelect\\_\\_control]:tw-border-b\n [&_.CustomSelect\\_\\_indicators]:tw-mx-3\n [&_.CustomSelect\\_\\_option--is-disabled>div]:tw-cursor-not-allowed\n [&_.CustomSelect\\_\\_placeholder]:tw-p-1.5\n [&_.CustomSelect\\_\\_placeholder]:tw-text-sm\n [&_.custom-select\\_\\_label]:tw-text-sm"]);return _templateObject2=function(){return t},t}function SizeSelect(t){let{className:e,product:n,selectedOption:r,setSelectedOption:a}=t,[o,l]=(0,j.useState)(!1),[i,s]=(0,j.useState)(!1),[c,d]=(0,j.useState)([]),w=(0,j.useRef)([]),{getFormattedOptions:m}=useBuildYourKit();async function handleSelectClick(){try{if(l(!0),c.length>0){let t=m(w.current);d(t);return}let{code:t}=n,{result:e}=await F.M.getProductStock(t);if(!(null==e?void 0:e.variantOptions))return;d(m(e.variantOptions)),w.current=e.variantOptions}catch(t){console.log(t)}finally{l(!1),s(!0)}}let p=i?"":String.raw(size_select_templateObject());return(0,u.jsx)(D.A,{className:(0,I.C$)({_common:"".concat(e," ").concat(p),arezzo:String.raw(_templateObject1()),schutz:String.raw(_templateObject2())}),classNamePrefix:"CustomSelect",options:c,onClick:handleSelectClick,onTouchStart:handleSelectClick,onChange:function(t){a(t),s(!1)},isSearchable:!1,isLoading:o,placeholder:"Selecione o tamanho",value:r})}let U="Limite de produtos por tamanho",G={label:"Selecione",value:""};function ProductActions(t){let[e,n]=(0,j.useState)(G),[r,a]=(0,j.useState)(""),{currentSize:o,isLimitOfProductsPerKit:l,product:i}=t,{handleSelectedProducts:s,selectedProducts:c}=useBuildYourKit(),d=(0,$.Dp)(i);(0,j.useEffect)(()=>{let t=o&&(null==e?void 0:e.value)===(null==o?void 0:o.code);(null==e?void 0:e.value)&&a(""),t&&a("")},[o,null==e?void 0:e.value]),(0,j.useEffect)(()=>{if(!o)return;let{code:t,displayText:e}=o,r=t.split("-")[0],a=r===i.code;a&&n({label:e,value:t})},[o,i.code]);let w=(0,j.useMemo)(()=>c.some(t=>{let{code:n,quantity:r}=t;return 5===r&&n===(null==e?void 0:e.value)}),[c,e]);function handleAddProductToKit(){let t=d||(null==e?void 0:e.value);if(!t){a("Selecione um tamanho antes de continuar");return}let r=d?"".concat(i.code,"-UN"):e.value;s({...i,quantity:1,variantCode:r}),a(""),n(G)}return(0,u.jsxs)("div",{className:(0,I.C$)({_common:"tw-mt-4 tw-flex tw-flex-wrap tw-items-center",arezzo:"tw-mb-6 tw-gap-x-4 tw-px-4 lg:tw-mb-10",schutz:"tw-relative tw-w-full tw-justify-between tw-gap-2"}),children:[d?null:(0,u.jsx)(SizeSelect,{className:w||r?"error":"",product:i,selectedOption:e,setSelectedOption:n}),function(){let t=d?N.ICON_SIZE_SINGLE_VARIANT:N.ICON_SIZE_WITH_VARIANTS;return(0,u.jsxs)(A.z,{className:(0,I.C$)({_common:"".concat(d?"tw-w-full tw-text-white tw-text-xs tw-gap-2":"tw-w-10"," tw-m-0 tw-flex tw-h-10 tw-min-h-0\n tw-items-center tw-justify-center tw-rounded-full tw-bg-black tw-p-0\n disabled:tw-bg-spanish-gray"),schutz:"tw-size-9 tw-gap-4 tw-rounded-none tw-border-none tw-text-sm"}),isDisabled:w||l,onClick:handleAddProductToKit,children:[d?"Adicionar produto":"",(0,u.jsx)(y.X,{className:(0,I.C$)({_common:"tw-text-white",arezzo:"[&>svg>circle]:tw-text-black"}),name:"plus",size:t})]})}(),function(){let t=(0,M.k)(L.BrandId.Schutz);return r||w?t?(0,u.jsx)(R.x,{type:B.n.Error,text:r||(d?"Limite de produtos por modelo":U),iconSize:12,textClassName:"tw-text-xs tw-text-schutz-accent",className:"tw-text-schutz-accent tw-absolute -tw-bottom-5 tw-w-fit"}):(0,u.jsx)("span",{className:(0,I.C$)({_common:"tw-w-full",arezzo:"tw-h-0 tw-text-xs tw-text-upsdell-red"}),children:r||U}):null}()]})}function SelectedQuantity(t){let{product:e}=t,{selectedProducts:n}=useBuildYourKit(),r=n.find(t=>t.code===e.code);return function(){if(!r)return null;let t=function(t,e){let n=t.filter(t=>t.code===e.code);return n?n.reduce((t,e)=>t+e.quantity,0):0}(n,e);return(0,u.jsx)("span",{className:(0,I.C$)({_common:"tw-absolute tw-flex tw-items-center tw-justify-center\n tw-rounded-full tw-text-xs",arezzo:"-tw-right-2 -tw-top-2 tw-size-10 tw-bg-fruit-salad-colder\n tw-text-white lg:-tw-top-3",schutz:"tw-bg-schutz-black tw-text-schutz-white tw-right-0 tw-top-0\n tw-z-10 tw-size-9 tw-rounded-none"}),children:t})}()}function ProductSlide(t){let{product:e,...n}=t;return(0,u.jsxs)(O.q,{children:[(0,u.jsx)(P.C,{className:(0,I.C$)({arezzo:"[&>a]:tw-aspect-[12/17] tw-text-black"}),product:e,shouldRenderVideo:!1,hasFavoriteButton:!1,...n}),(0,u.jsx)(SelectedQuantity,{product:e}),(0,u.jsx)(ProductActions,{...t})]})}var V=n(22263);let Z="Kit adicionado com sucesso ao carrinho";function AddKitToCart(t){let{component:e}=t,[n,r]=(0,j.useState)(!1),[a,o]=(0,j.useState)(!1),[l,i]=(0,j.useState)(!1),s=(0,M.k)(L.BrandId.Schutz),{addListToCart:c,items:d}=(0,k.jD)(),{currentQuantity:w,selectedProducts:m,resetSelectedProducts:p}=useBuildYourKit(),x=(0,E.o)();(0,j.useEffect)(()=>{setTimeout(()=>{o(!1)},5e3)},[a]);let{discountPercentage:h,fixedDiscount:f,fixedValue:g,minimumNumberOfProducts:b,maximumNumberOfProducts:_,productGift:v}=e,C=(0,j.useMemo)(()=>{let t=m.reduce((t,e)=>{var n;let r=(null===(n=e.discountPrice)||void 0===n?void 0:n.value)||e.price.value;return t+r*e.quantity},0);return h?t*((100-h)/100):f.value?t-f.value:g.value},[h,f,g.value,m]),z=V.W(C),N=w>=b;async function handleAddKitToCart(){r(!0);let t=m.map(t=>({product:{...t,code:t.variantCode},quantity:t.quantity,size:t.displayText})),n=d.map(t=>x.cartEntryToProduct(t)),a=t.map(t=>{let{product:e,quantity:n,size:r}=t;return{...e,quantity:n,size:r}}),{hasError:l}=await c(t);i(l),x.addKitToCart(()=>({component:e,productsList:t,quantity:w}),[...n,...a]),r(!1),p(),o(!l)}return(0,u.jsxs)("div",{className:"tw-mb-10 tw-flex tw-flex-col tw-items-center tw-justify-center tw-gap-2 tw-px-6",children:[(0,u.jsxs)("div",{className:(0,I.C$)({_common:"tw-flex tw-items-center tw-gap-1 tw-text-xs tw-uppercase\n tw-leading-none",arezzo:N?"tw-text-zorba-dark":"tw-text-black",schutz:"tw-items-start tw-gap-2"}),children:[N?(0,u.jsx)("span",{className:(0,I.C$)({_common:"tw-leading-normal",arezzo:"tw-text-zorba-dark",schutz:"tw-text-schutz-black tw-text-xs tw-font-medium"}),children:"Kit habilitado"}):(0,u.jsxs)("span",{className:"tw-leading-normal",children:[(0,u.jsx)("b",{children:w})," de ",(0,u.jsx)("b",{children:b})," para habilitar o kit"]}),(0,u.jsx)(y.X,{name:N?"unlock":"lock",size:15})]}),function(){let t=N?v?"Adicionar kit e ganhar brinde":"Adicionar kit por ".concat(z):v?S.GIFT:h?"Adicionar kit com ".concat(h,"% de desconto"):f.formattedValue?"Adicionar kit com ".concat(f.formattedValue," de desconto"):"Adicionar kit por ".concat(null==g?void 0:g.formattedValue);return a?null:(0,u.jsx)(A.z,{className:(0,I.C$)({arezzo:"tw-m-0 tw-w-full tw-border-viridian tw-bg-viridian\n tw-uppercase disabled:tw-border-transparent disabled:tw-bg-viridian/40\n lg:tw-w-auto",schutz:"tw-text-schutz-white disabled:tw-bg-schutz-neutral-medium\n disabled:tw-text-schutz-white\n disabled:hover:tw-bg-schutz-neutral-medium tw-m-0 tw-min-h-9\n tw-border-none tw-p-2 tw-text-sm disabled:hover:tw-border-none"}),isDisabled:!N||n,isLoading:n,onClick:handleAddKitToCart,children:t})}(),function(){if(!(w>=_||l))return null;let t=l?"Erro ao adicionar seu kit ao carrinho! Tente novamente.":"Limite de produtos do kit atingido";return s?(0,u.jsx)(R.x,{type:B.n.Error,text:t,className:"tw-w-fit",textClassName:"tw-text-[9px] tw-uppercase md:tw-text-[10px]"}):(0,u.jsx)("span",{className:(0,I.C$)({_common:"tw-text-xs tw-text-red-lighter",arezzo:"tw-mt-2"}),children:t})}(),a?s?(0,u.jsx)(R.x,{type:B.n.Success,text:Z,className:"tw-w-fit",textClassName:"tw-uppercase tw-text-[9px] md:tw-text-[10px]"}):(0,u.jsx)("span",{className:(0,I.C$)({_common:"tw-text-xs tw-text-viridian",arezzo:"tw-mt-2"}),children:Z}):null]})}function KitInfo(t){let{component:e}=t,{description:n,kitDescription:r,title:a}=e;return(0,u.jsxs)("div",{className:(0,I.C$)({_common:"kit-description tw-flex tw-flex-col tw-gap-y-2 tw-px-6 lg:tw-px-8",schutz:"tw-gap-y-1 tw-text-center lg:tw-px-24"}),children:[(0,u.jsx)("h2",{className:(0,I.C$)({_common:"tw-uppercase lg:tw-text-2xl",arezzo:"tw-text-xl tw-font-light tw-tracking-widest",schutz:"tw-text-schutz-black tw-mb-4 tw-font-heading tw-text-2xl\n tw-font-bold tw-leading-8 lg:tw-text-4xl lg:tw-leading-[48px]"}),children:a}),(0,u.jsx)("p",{className:(0,I.C$)({_common:"tw-text-black",arezzo:"tw-text-base lg:tw-text-xl",schutz:"tw-text-schutz-black tw-text-xs tw-leading-[18px] lg:tw-mx-auto"}),children:n}),r?(0,u.jsx)("small",{className:(0,I.C$)({_common:"tw-block tw-text-xs tw-text-black",arezzo:"tw-pt-2",schutz:"tw-text-schutz-black tw-text-sm tw-font-semibold lg:tw-text-base"}),children:r}):null]})}let W=(0,j.memo)(function(t){let{component:e,currentSize:n,classNames:r,parentProduct:a,style:o}=t,{description:l,maximumNumberOfProducts:i,minimumNumberOfProducts:s,productList:c,title:d}=e,{currentQuantity:w}=useBuildYourKit(),m=(0,E.o)(),p=function(t){let{parentProductCode:e="",productList:n}=t;if(!e)return n;let r=n.findIndex(t=>t.code===e),a=n[r],o=[...n];return o.splice(r,1),o.unshift(a),o}({productList:c,parentProductCode:null==a?void 0:a.code}),x=w===i,h=d&&l,f=s&&i,g=(null==c?void 0:c.length)>0;return function(){if(!(h&&f&&g))return null;let l=m.getBuildYourKitAttr({component:e,isProductContainer:!1,parentProduct:a});return(0,u.jsx)(BuildYourKitProvider,{children:(0,u.jsxs)("section",{className:(0,I.C$)({_common:"tw-mt-2 tw-flex tw-flex-col tw-gap-8 lg:tw-mt-14\n lg:tw-gap-10 ".concat(r),schutz:"tw-bg-schutz-white tw-m-0 tw-gap-6 tw-pt-6 lg:tw-mt-0\n lg:tw-gap-6 lg:tw-pt-10"}),style:o,...l,children:[(0,u.jsx)(KitInfo,{component:e}),function(){let{carouselClassNames:r,carouselOptions:o}=t;return(0,u.jsx)(C.l,{className:r,options:o,renderNextButtonContent:()=>(0,u.jsx)(y.X,{name:"arrowRight",size:21}),renderPrevButtonContent:()=>(0,u.jsx)(y.X,{name:"arrowLeft",size:21}),children:function(){let t=m.getBuildYourKitAttr({component:e,isProductContainer:!0,parentProduct:a});return p.map(e=>{if(e)return(0,u.jsx)(ProductSlide,{currentSize:n,isLimitOfProductsPerKit:x,product:e,...t},e.code)})}()})}(),(0,u.jsx)(AddKitToCart,{component:e})]})})}()});var q=n(15177),H=n(16114),X=n(41664),K=n.n(X),Y=n(25573);function HeaderDrawer(t){let{icon:e,iconSize:n=12,title:r,containerClassName:a="",titleClassName:o="",iconClassName:l="",onClickButton:i}=t;return(0,u.jsxs)("header",{className:a,children:[(0,u.jsx)("p",{className:o,onClick:i,children:r}),(0,u.jsx)("button",{type:"button",onClick:i,children:(0,u.jsx)(y.X,{name:e,size:n,className:l})})]})}var Q=n(11356),J=n(91315),tt=n(1716),te=n(11163),tn=n(21503),tr=n(59492),ta=n(24185),to=n(73008),tl=n(31238),ti=n(56423),ts=n(81836),tc=n(6783);let tu=["4700800920001U","1003550650012U","4701701120001U","4600801420002U","1002002760016U","4701701190001U","4701300510003U","1002003090011U","4707500440001U","4712700010001U","1002003110002U","4706700280001U","4702400740002U","1003550570016U","4705000030001U","4704000010004U","4600801420002U","4703101370002U","1004400210001U","4600440370003U","4702703980001U","4708800150002U","1003550650013U","4601330230001U","4702705290001U","4702800340001U","4702500360001U","1003800490004U","4703101920001U","4701200850001U","4701300910001U","1002000370179U","4701300910001U","4600660750001U","4703100860009U"];var td=n(69183),tw=n(55773),tm=n(73866);(r=a||(a={}))[r.ADD_TO_CART=0]="ADD_TO_CART",r[r.BUY_BUTTON=1]="BUY_BUTTON";let tp="N\xe3o foi poss\xedvel adicionar o produto ao carrinho, tente novamente";var tx=n(81374),th=n(78069);function ModalBuyTogetherSizeOption(t){let{size:e,optionsLength:n,hasError:r,isSelected:a,onClick:o}=t,l=e.code.split("-")[1],i=n>9?(0,I.C$)({schutz:"tw-flex-none"}):"",s=r?(0,I.C$)({vans:"tw-border-well-read",schutz:"tw-border-schutz-accent"}):"",c=e.sellable?(0,I.C$)({schutz:"hover:tw-bg-schutz-black hover:tw-border-schutz-black hover:tw-text-schutz-white",vans:"hover:tw-border-well-read hover:tw-bg-well-read hover:tw-text-white"}):(0,I.C$)({schutz:"tw-cursor-not-allowed tw-line-through tw-text-schutz-neutral-medium",vans:"tw-opacity-40 tw-border-mercury"}),d=a?(0,I.C$)({schutz:"tw-bg-schutz-black tw-text-schutz-white",vans:"tw-bg-well-read tw-text-white tw-border-well-read"}):(0,I.C$)({schutz:"tw-border tw-border-schutz-neutral-medium"});return(0,u.jsx)("button",{className:(0,I.C$)({_common:"tw-flex tw-items-center tw-justify-center",schutz:"tw-relative tw-aspect-square tw-min-h-[38px] tw-min-w-[38px]\n tw-flex-1 tw-overflow-hidden tw-text-sm tw-font-normal\n ".concat(d," ").concat(i,"\n ").concat(c," ").concat(s),vans:"tw-h-11 tw-min-w-[44px] tw-border-2 tw-border-solid tw-px-1\n tw-text-lg tw-font-medium tw-text-black tw-transition-colors\n tw-duration-200 ".concat(s,"\n ").concat(c," ").concat(d)}),disabled:!e.sellable,type:"button",onClick:()=>o(e),children:(0,u.jsx)("span",{children:l})},e.code)}var tf=n(94887);function styles_templateObject(){let t=(0,h._)(["\n min-width: 100%;\n min-height: 100%;\n display: flex;\n justify-content: center;\n align-items: center;\n width: 100%;\n\n .content-container {\n max-height: 'max-content';\n width: 588px;\n padding: 0;\n\n @media (max-width: 1023px) {\n width: 300px;\n\n .more-color {\n > div {\n padding: 0;\n }\n }\n }\n }\n"]);return styles_templateObject=function(){return t},t}let tg=(0,f.ZP)(t=>(0,u.jsx)(tf.u,{...t})).withConfig({componentId:"sc-e0af2df3-0"})(styles_templateObject()),tb="\xc9 necess\xe1rio informar um tamanho";function ModalBuyTogether(t){let{onRequestClose:e,targetProduct:n,isOpen:r,isSizeSelectOnly:o,isAddToCart:l=!1,parentProduct:i,isDrawerModal:s,extraCarouselOptions:c,minQuantityColorsToRenderCarousel:d}=t,[w,m]=(0,j.useState)(),[p,x]=(0,j.useState)(""),{user:h}=(0,Q.aC)(),{cepLocation:g}=(0,J.f)(),b=(0,f.Fg)(),_=(0,E.o)(),{items:v}=(0,k.jD)(),{code:C}=n,{sizeOptions:y,isUniqueSize:z}=(0,tt.G)({product:n}),{handlePurchase:N,isLoading:S}=function(t){let{product:e,productCashback:n,selectedSize:r,onClickValidatePurchase:o,onSuccess:l}=t,{toast:i}=(0,td.pm)(),s=(0,E.o)(),{addToCart:c,items:u}=(0,k.jD)(),d=(0,te.useRouter)(),{shouldTrackingWatchedVideo:w}=function(t){let{productCode:e,videoURL:n=""}=t,{getIsVariant:r,initFirebase:a}=(0,ti.f)(),o=(0,E.o)(),l=r({activeVariant:ta.F.C,parameterId:to.M.SHOW_PDP_VIDEO}),i=tu.includes(e),s=i&&!l;function handleTrackingVideo(t){var r;if(!s)return;let a=(0,tc.vj)().hasOwnProperty(e),l=(null===(r=(0,tc.vj)())||void 0===r?void 0:r[e])||0,i=!a||t>l;i&&(o.videoWatchedFraction({productCode:e,videoURL:n,watchedFraction:t}),function(t){var n;let r=(null===(n=(0,tc.vj)())||void 0===n?void 0:n[e])||0,a={...(0,tc.vj)(),[e]:Math.max(r,t)},o=JSON.stringify(a);localStorage.setItem(tl.LOCAL_STORAGE.VIDEOS_WATCHED_FRACTION,o)}(t))}return(0,ts.Q)(()=>{a({testsToInit:[{parameterId:to.M.SHOW_PDP_VIDEO}]})},[]),{handleVideoStart:function(){handleTrackingVideo(0)},handleVideoProgress:function(t){if(0===t.playedSeconds)return;let e=(0,tc.aZ)(t);handleTrackingVideo(e)},shouldHideVideo:i&&l,shouldTrackingWatchedVideo:(0,M.k)(L.BrandId.Vans)&&i&&!l}}({productCode:(null==e?void 0:e.code)||"",videoURL:(null==e?void 0:e.videoVimeoUrl)||(null==e?void 0:e.videoUrl)}),[m,p]=(0,j.useState)(!1),[x,h]=(0,j.useState)(),[f,g]=(0,j.useState)(!1),{user:b}=(0,Q.aC)(),{cepLocation:_}=(0,J.f)();function handleError(){i.error(tp,{isDismissible:!0}),p(!1),h("")}async function sendGtmDataLayer(){if(!e||!(null==r?void 0:r.value))return;let t=u.map(t=>s.cartEntryToProduct(t)),a=await (0,tw.SG)({user:b,cepLocation:_}),o=(0,tw.gr)({userBalance:null==b?void 0:b.balanceAvailableAmount,cashbackValue:null==n?void 0:n.value});s.addToCart(()=>({product:e,userProperty:a,cashbackProperty:o,options:{element:"botao",elementText:"comprar",quantity:1,size:r.value}}),[...t,{...e,size:r.displayText}],function(){let t=(0,tc.vj)();if(!(null==e?void 0:e.code)||!t||!w)return{};let n=t[e.code];return n?{cd128:tn.qP[n]}:{}}())}async function handleAddToCart(t){let{sendCustomGTMDataLayer:e}=t||{};try{if(!(null==r?void 0:r.code))return;g(!0);let{hasError:t,errors:n}=await c(r.code);if(t){handleError(),tm.vU({title:tp,stack:n||[]});return}e?e():sendGtmDataLayer(),p(!1),h(""),null==l||l()}catch(t){handleError()}}return{handlePurchase:async function(t){let{isAddToCart:e=!1,onSuccess:n,sendCustomGTMDataLayer:l}=t||{};if(!(null==r?void 0:r.code)){null==o||o();return}p(!0),h(e?a.ADD_TO_CART:a.BUY_BUTTON),await handleAddToCart({sendCustomGTMDataLayer:l}),null==n||n(),e||d.push(tr.Z.CART)},isLoading:m,loadingType:x,LOADING_TYPE:a,isSizeSelected:f}}({product:n,selectedSize:w,onClickValidatePurchase:()=>x(tb)});async function sendGtmDataLayer(){if(!n||!(null==w?void 0:w.code))return;let t=v.map(t=>_.cartEntryToProduct(t)),e=await (0,tw.SG)({user:h,cepLocation:g});_.addToCartBuyTogether(n,[...t,{...n,size:null==w?void 0:w.displayText}],e)}let T=(0,j.useCallback)(()=>{let t=$.Qt(i),e=C.includes(t);return e?C:"".concat(t).concat(C)},[i,C]);if((0,ts.Q)(()=>{r&&_.viewModalBuyTogether($.$m(i),T())},[r,i]),(0,j.useEffect)(()=>{var t;z&&(null===(t=y[0])||void 0===t?void 0:t.sellable)&&m(y[0])},[z,y,m]),!n)return null;let{name:O,price:P,discountPrice:D,url:F,installment:U,colorOptions:G=[],primaryImage:V}=n;function handleClickSizeOption(t){m(t),x("")}function renderSizeOptions(){return z?null:(0,u.jsxs)(u.Fragment,{children:[(0,u.jsx)("h2",{className:(0,I.C$)({schutz:"tw-mb-2 tw-text-xs tw-font-bold",vans:"tw-mb-2 tw-text-base tw-font-medium tw-uppercase"}),children:function(){if(o)return"Escolha seu tamanho";let t=null==w?void 0:w.code.split("-")[1];return t?(0,u.jsxs)(u.Fragment,{children:["Tamanho: ",(0,u.jsx)("span",{className:"tw-font-normal",children:t})]}):"Tamanho:"}()}),(0,u.jsxs)("div",{className:(0,I.C$)({_common:"tw-flex tw-flex-wrap",schutz:"tw-relative tw-mb-6 tw-grid tw-min-w-8 tw-grid-cols-8\n tw-gap-2 tw-text-xs",vans:"tw-mb-6 tw-gap-2"}),children:[y.map(t=>(0,u.jsx)(ModalBuyTogetherSizeOption,{size:t,hasError:!!p,optionsLength:y.length,onClick:handleClickSizeOption,isSelected:t.code===(null==w?void 0:w.code)},t.code)),p?s?(0,u.jsx)("div",{className:"tw-absolute -tw-bottom-5 tw-flex tw-w-full",children:(0,u.jsx)(R.x,{text:tb,type:B.n.Error,className:(0,I.C$)({_common:"tw-w-fit",schutz:"tw-text-schutz-accent"})})}):(0,u.jsx)("p",{className:(0,I.C$)({_common:"tw-w-full",vans:"tw-text-sm tw-text-well-read"}),children:p}):null]})]})}async function handleClickBuyButton(){await N({isAddToCart:l,sendCustomGTMDataLayer:sendGtmDataLayer});let t=l&&!!w;t&&e()}function renderBuyButton(){return(0,u.jsx)(A.z,{className:(0,I.C$)({_common:"tw-m-0 tw-w-full",schutz:"tw-px-4 tw-py-1 tw-text-sm tw-uppercase"}),onClick:handleClickBuyButton,isLoading:S,isDisabled:S,variant:b.commonButtonVariants.buyTogetherModal.buy,children:th.T.BUY_TOGETHER_MODAL_BUY_BUTTON})}function renderContent(){return o?(0,u.jsxs)("div",{className:(0,I.C$)({vans:"tw-px-4 tw-pb-6 tw-pt-8"}),children:[renderSizeOptions(),renderBuyButton()]}):(0,u.jsxs)("div",{className:(0,I.C$)({schutz:"tw-flex tw-flex-col tw-items-center"}),children:[(0,u.jsx)("div",{className:(0,I.C$)({_common:"tw-mb-2 tw-mt-4 tw-flex tw-justify-center",schutz:"tw-hidden"}),children:(0,u.jsx)("h1",{children:"Compre Junto"})}),(0,u.jsx)("div",{className:"tw-mt-4 tw-w-full tw-px-4",children:(0,u.jsx)("div",{className:(0,I.C$)({schutz:"tw-relative tw-h-[500px] tw-w-full"}),children:(0,u.jsx)(H.P,{src:V.url,alt:V.altText,fill:!0,className:"tw-object-cover"})})}),(0,u.jsxs)("div",{className:(0,I.C$)({schutz:"tw-flex tw-w-full tw-flex-col tw-gap-6 tw-px-4 tw-pb-8 tw-pt-2"}),children:[(0,u.jsxs)("div",{className:(0,I.C$)({schutz:"tw-flex tw-flex-col"}),children:[(0,u.jsx)("h1",{className:(0,I.C$)({schutz:"tw-mb-1 tw-text-sm tw-font-normal tw-leading-6"}),children:O}),function(){if(!P)return null;let t=!!D&&D.value>0;return t?(0,u.jsxs)("div",{className:(0,I.C$)({schutz:"tw-flex tw-w-fit tw-flex-row-reverse tw-gap-1"}),children:[(0,u.jsx)("span",{className:(0,I.C$)({schutz:"tw-text-sm tw-font-bold tw-leading-5 tw-text-schutz-accent"}),children:D.formattedValue}),(0,u.jsx)("span",{className:(0,I.C$)({schutz:"tw-text-sm tw-font-bold tw-leading-5\n tw-text-schutz-neutral-medium tw-line-through"}),children:P.formattedValue})]}):(0,u.jsx)("span",{className:"tw-text-sm tw-font-bold tw-leading-5 tw-text-schutz-black",children:P.formattedValue})}(),U?(0,u.jsx)("span",{className:(0,I.C$)({schutz:"tw-mt-1 tw-text-xs tw-leading-5 tw-text-schutz-neutral-medium"}),children:"ou ".concat(U," sem juros")}):null]}),(0,u.jsxs)("div",{className:(0,I.C$)({schutz:"tw-flex tw-flex-col tw-gap-2"}),children:[function(){var t;let e=G.length>1;if(!e)return null;let n=G[0];return(0,u.jsx)("div",{className:(0,I.C$)({_common:"more-color tw-mb-[-12px]",schutz:"tw-mb-4 tw-w-full tw-overflow-hidden"}),children:(0,u.jsx)(tx.V,{colorOptions:G,width:67,height:103,currentColorCode:n.code,currentColor:null!==(t=n.color)&&void 0!==t?t:"",carouselSlideClassName:"tw-w-fit tw-overflow-visible",title:"Cor:",extraCarouselOptions:c,minQuantityColorsToRenderCarousel:d})})}(),renderSizeOptions(),renderBuyButton(),F?(0,u.jsx)(K(),{href:F,passHref:!0,children:(0,u.jsx)(A.z,{className:(0,I.C$)({schutz:"tw-m-0 tw-w-full tw-px-4 tw-py-1 tw-text-sm tw-uppercase"}),variant:b.commonButtonVariants.buyTogetherModal.moreDetails,children:"Mostrar Detalhes"})}):null]})]})]})}return s?(0,u.jsxs)(Y.d,{isOpen:r,onClose:e,lockPageScrollOnOpen:!0,maxWidth:"390px",shouldRenderCloseButton:!1,children:[(0,u.jsx)(HeaderDrawer,{title:"Compre junto",onClickButton:e,containerClassName:"tw-px-4 tw-flex tw-justify-between tw-py-3",titleClassName:"tw-font-bold tw-w-full tw-text-sm tw-text-center",icon:"close"}),renderContent()]}):(0,u.jsx)(tg,{isOpen:r,onRequestClose:()=>e(),children:renderContent()})}var t_=n(11613);function BuyTogetherCampaignPrice(t){let{price:e,discountPrice:n}=t;if(!e)return null;let r=!!n&&n.value>0;return r?(0,u.jsxs)("div",{className:(0,I.C$)({schutz:"tw-flex tw-w-fit tw-flex-row-reverse tw-gap-1"}),children:[(0,u.jsx)("span",{className:(0,I.C$)({schutz:"tw-text-sm tw-font-bold tw-text-schutz-accent"}),children:n.formattedValue}),(0,u.jsx)("span",{className:(0,I.C$)({schutz:"tw-text-sm tw-font-bold tw-text-schutz-neutral-medium\n tw-line-through"}),children:e.formattedValue})]}):(0,u.jsx)("span",{className:"tw-text-sm tw-font-bold tw-text-schutz-black",children:e.formattedValue})}var tv=n(64893);function BuyTogetherCampaignButton(t){let{children:e,style:n,shouldOpenInNewWindow:r,productUrl:a,setIsModalProductOpen:o,product:l}=t,{isRouteChanging:i}=(0,t_.l)(),s=(0,E.o)();return(0,j.useEffect)(()=>{i&&o(!1)},[i,o]),(0,u.jsx)(A.z,{onClick:function(t){return(t.preventDefault(),l)?(s.clickProductBuyTogether(l),r)?void window.open(a,"_blank"):o(!0):null},variant:tv.c.outlined,className:(0,I.C$)({_common:"tw-text-xs",schutz:"tw-mx-0 tw-mb-0 tw-mt-auto tw-min-h-9 tw-w-full tw-border\n tw-border-schutz-black tw-bg-transparent tw-px-4 tw-py-1 tw-text-xs\n tw-font-normal tw-uppercase tw-tracking-normal tw-text-schutz-black\n hover:tw-bg-schutz-black hover:tw-text-schutz-white"}),style:{borderColor:n.contentColor,backgroundColor:n.backgroundButtonColor},children:e})}function BuyTogetherCampaign(t){var e,n;let{component:r,renderCustomText:a,parentProduct:o}=t,{buttonText:l,description:i,style:s,media:c,title:d,targetProducts:w,shouldUseProductName:m=!1,shouldUseProductPrice:p=!1,shouldOpenInNewWindow:x=!1}=r,[h,f]=(0,j.useState)(!1),{isRouteChanging:g}=(0,t_.l)(),b=(0,E.o)();if((0,j.useEffect)(()=>{g&&f(!1)},[g]),(0,ts.Q)(()=>{h&&(null==w?void 0:w[0])&&b.showBuyTogetherModal(null==w?void 0:w[0])},[h]),!(null==w?void 0:w[0]))return null;let{name:_,price:v,discountPrice:C,primaryImage:y,url:z}=w[0],{url:N}=c,S=null!==(e=s.contentColor)&&void 0!==e?e:"",k=null!==(n=s.backgroundColor)&&void 0!==n?n:"";return(0,u.jsx)(u.Fragment,{children:(0,u.jsxs)("div",{className:(0,I.C$)({schutz:"tw-bg-schutz-white tw-mx-4 tw-my-4 tw-flex tw-h-[140px]\n tw-items-center tw-justify-between tw-gap-x-2 lg:tw-mx-0"}),style:{backgroundColor:k,color:S},children:[function(){let t=N||y.url,e=N?_:y.altText;return(0,u.jsx)("div",{className:(0,I.C$)({_common:"tw-max-h-[120px]",schutz:"tw-h-[140px] tw-max-h-full tw-w-24"}),children:(0,u.jsx)(H.P,{src:t,alt:e,width:120,height:120,className:"tw-object-contain"})})}(),(0,u.jsxs)("div",{className:(0,I.C$)({_common:"tw-flex tw-flex-col tw-items-center tw-justify-center tw-gap-2",schutz:"tw-h-full tw-w-auto tw-flex-1 tw-items-start tw-gap-0"}),children:[a?a():(0,u.jsxs)(u.Fragment,{children:[(0,u.jsx)("p",{className:(0,I.C$)({schutz:"tw-text-sm tw-font-normal tw-leading-5"}),children:m?_:d}),p?(0,u.jsx)(BuyTogetherCampaignPrice,{price:v,discountPrice:C}):i?(0,u.jsx)("p",{className:(0,I.C$)({_common:"tw-text-xs",schutz:"tw-text-sm tw-font-normal tw-leading-6"}),children:i}):null]}),function(){let t=null==w?void 0:w[0];return l&&t?(0,u.jsx)(BuyTogetherCampaignButton,{style:s,shouldOpenInNewWindow:x,productUrl:z,setIsModalProductOpen:f,product:t,children:l}):null}()]}),(null==w?void 0:w[0])?(0,u.jsx)(ModalBuyTogether,{targetProduct:w[0],parentProduct:o,onRequestClose:()=>f(!1),isOpen:h}):null]})})}var tj=n(50177),tC=n(12963),ty=n(23204),tz=n(80234),tN=n(6900),tS=n(96984);function CarouselLite(t){var e;let{imagesArray:n,shouldRenderNewComponentImage:r=!1,shouldRenderScrollPaginationDesktop:a=!1,imageProps:o}=t,[l,i]=(0,j.useState)(0),s=n.length,c=(0,j.useRef)(null),d=(null===(e=c.current)||void 0===e?void 0:e.clientWidth)||1,w=d/s;return(0,u.jsxs)("div",{ref:c,className:(0,I.C$)({_common:"tw-flex tw-size-full tw-snap-x tw-snap-mandatory\n tw-overflow-x-scroll tw-scroll-smooth lg:tw-aspect-auto\n [&::-webkit-scrollbar-thumb]:tw-rounded-none\n [&::-webkit-scrollbar-thumb]:tw-bg-black\n [&::-webkit-scrollbar-track]:tw-rounded-none\n [&::-webkit-scrollbar-track]:tw-bg-pale-silver",arezzo:"tw-aspect-[10/11] lg:tw-overflow-x-hidden\n [&::-webkit-scrollbar]:tw-h-0.5",vans:"tw-aspect-[13/15.12] [&::-webkit-scrollbar]:tw-h-1"}),children:[function(){let t=a?{}:{transform:"translateX(-".concat(100*l,"%)")};return n.map((e,n)=>(0,u.jsx)("div",{id:(n+1).toString(),className:"tw-flex tw-flex-[0_0_100%] tw-snap-center tw-transition-transform tw-duration-500 tw-ease-in-out",style:t,children:function(t){var e,n;if(tN.j.includes(t.type)){let e=t.type===tN.c.YOUTUBE,n=tc.X8(t);return(0,u.jsx)(tz.n,{options:n,shouldUseIframe:!1,shouldUseCustomControl:e,audioButtonConfigs:{shouldRenderAudioButton:!1}})}return e=t.url,n=t.altText||"",r?(0,u.jsx)(H.P,{...o,src:e,alt:n,className:(0,I.C$)({_common:"tw-h-auto tw-w-full tw-object-cover",vans:"tw-rounded-sm"})}):(0,u.jsx)(tS.M.Image,{src:e,alt:n,width:335,height:335,className:"tw-rounded-sm",objectFit:"cover"})}(e)},n))}(),(0,u.jsxs)("div",{className:"tw-hidden md:tw-block",children:[(0,u.jsx)("button",{onClick:()=>{if(a){var t,e;let n=0===l;if(n){null===(e=c.current)||void 0===e||e.scrollTo(d*s,0),i(s-1);return}null===(t=c.current)||void 0===t||t.scrollBy(-w,0),i(t=>t-1);return}i(t=>(t-1+s)%s)},className:"tw-absolute tw-left-0 tw-top-1/2 tw-z-10 -tw-translate-y-1/2 tw-rounded-full tw-p-3 tw-text-black tw-transition-all tw-duration-300","aria-label":"Previous slide",children:(0,u.jsx)(y.X,{name:"arrowLeft"})}),(0,u.jsx)("button",{onClick:()=>{if(a){var t,e;let n=l===s-1;if(n){null===(e=c.current)||void 0===e||e.scrollTo(-d,0),i(0);return}null===(t=c.current)||void 0===t||t.scrollBy(w,0),i(l+1);return}i(t=>(t+1)%s)},className:"tw-absolute tw-right-0 tw-top-1/2 tw-z-10 -tw-translate-y-1/2 tw-rounded-full tw-p-3 tw-text-black tw-transition-all tw-duration-300","aria-label":"Next slide",children:(0,u.jsx)(y.X,{name:"arrowRight"})})]})]})}var tk=n(7597),tT=n.n(tk),tE=n(6357);function ProductItemSkeleton(t){let{shouldRenderMoreColors:e=!1}=t,n=Array.from({length:5});return(0,u.jsxs)("div",{className:"tw-flex tw-flex-col",children:[(0,u.jsx)(tE.O,{className:"tw-aspect-[50/72] tw-w-full [&>.skeleton-line]:tw-size-full"}),(0,u.jsx)(tE.O,{className:"tw-w-3/5"}),(0,u.jsx)(tE.O,{className:"tw-w-1/5"}),(0,u.jsx)(tE.O,{className:"tw-w-2/5"}),e?(0,u.jsx)("div",{className:"tw-flex tw-gap-2",children:[...n].map(()=>(0,u.jsx)(tE.O,{className:"tw-w-3 [&>.skeleton-line]:tw-h-3 [&>.skeleton-line]:tw-w-3 [&>.skeleton-line]:tw-rounded-full"},tT().generate()))}):null]})}function CarouselSkeleton(t){let{carouselOptions:e}=t,n=Array.from({length:8});return(0,u.jsxs)("div",{className:"tw-flex tw-w-full tw-flex-col",children:[(0,u.jsx)(tE.O,{className:"tw-mx-auto tw-my-8 tw-w-80 [&>.skeleton-line]:tw-h-10 [&>.skeleton-line]:md:tw-h-[76px]"}),(0,u.jsx)(C.l,{options:e,children:[...n].map(()=>(0,u.jsx)(O.q,{children:(0,u.jsx)(ProductItemSkeleton,{})},tT().generate()))})]})}var tI=n(25496),tO=n(81110),tP=n(91446),tA=n(23463);function ChatBotAssistant(t){return null}var tR=n(60252),tB=n(46878),tL=n(90097),tM=n(36141),t$=n(28542);function custom_size_select_styles_templateObject(){let t=(0,h._)(["\n display: flex;\n flex-wrap: wrap;\n padding: ",";\n border: 1px solid\n ",";\n margin: ",";\n"]);return custom_size_select_styles_templateObject=function(){return t},t}function styles_templateObject1(){let t=(0,h._)(["\n list-style: none;\n"]);return styles_templateObject1=function(){return t},t}function styles_templateObject2(){let t=(0,h._)(["\n background: ",";\n display: block;\n pointer-events: ",";\n background: ",";\n color: ",";\n padding: ",";\n margin: 0 5px;\n font-size: ",";\n cursor: pointer;\n"]);return styles_templateObject2=function(){return t},t}function _templateObject3(){let t=(0,h._)(["\n border: 1px solid ",";\n background-color: transparent;\n display: flex;\n min-height: 20px;\n min-width: 20px;\n padding: 2px;\n margin-right: 10px;\n\n ::before {\n content: '';\n background-color: ",";\n transition: opacity 0.1s;\n flex: 1;\n opacity: 0;\n }\n"]);return _templateObject3=function(){return t},t}function _templateObject4(){let t=(0,h._)(["\n border: 0;\n height: 0;\n opacity: 0;\n padding: 0;\n position: absolute;\n visibility: visible;\n width: 0;\n\n :checked ~ ","::before {\n opacity: 1;\n }\n"]);return _templateObject4=function(){return t},t}let tD=f.ZP.ul.withConfig({componentId:"sc-88f4aa97-0"})(custom_size_select_styles_templateObject(),t=>t.padding?t.padding:"5px",t=>t.hasError?t.theme.colors.danger:t.theme.colors.gray,t=>t.margin?t.margin:"10px 0"),tF=f.ZP.li.withConfig({componentId:"sc-88f4aa97-1"})(styles_templateObject1()),tU=f.ZP.label.withConfig({componentId:"sc-88f4aa97-2"})(styles_templateObject2(),t=>t.theme.colors.white,t=>t.isDisabled?"none":"initial",t=>t.isActive?t.theme.colors.primary:"",t=>t.isDisabled?t.theme.colors.gray:t.theme.colors.font,t=>t.padding?t.padding:"5px",t=>t.fontSize?t.fontSize:"20px"),tG=f.ZP.span.withConfig({componentId:"sc-88f4aa97-3"})(_templateObject3(),t=>t.theme.colors.font,t=>t.theme.colors.font),tV=f.ZP.input.withConfig({componentId:"sc-88f4aa97-4"})(_templateObject4(),tG);function CustomSizeSelect(t){let{onChange:e,name:n,sizes:r,hasError:a,className:o}=t,[l,i]=(0,j.useState)("");return(0,u.jsx)(tD,{hasError:a,className:o,children:r&&r.map(t=>(0,u.jsx)(tF,{children:(0,u.jsxs)(tU,{htmlFor:"".concat(t.code,"-").concat(t.displayText),tabIndex:0,isActive:t.code===l,isDisabled:!t.sellable,className:"".concat(t$.Yk.SELECT_SIZE,"-").concat(t.code),children:[(0,u.jsx)(tV,{type:"radio",name:n,value:t.code,id:"".concat(t.code,"-").concat(t.displayText),onChange:()=>{var n;i(n=t.code),e(n)}}),t.displayText]})},"".concat(t.code,"-").concat(t.displayText)))})}var tZ=n(87027),tW=n(8021),tq=n(87536),tH=n(25935),tX=n(65856),tK=n(62604),tY=n(41417),tQ=n(14908),tJ=n(66999);let t0={letter1:"letter1",letter2:"letter2",checkboxGuidance:"checkboxGuidance"},t1="Campo obrigat\xf3rio",t2="Erro ao enviar sua personaliza\xe7\xe3o ao carrinho. Tente novamente!";function DynamicPersonalizeContent(t){let{product:e}=t,{customTag:n,images:r,code:a,productCustomization:o}=e,{deliveryMessage:l,description:i,guidance:s,subtext:c,tagColor:d,title:w}=o,m={background:"linear-gradient(180deg, ".concat(d,"60 20%, ").concat(d,"70 35%, ").concat(d,"FF 50%, ").concat(d,"70 65%, ").concat(d,"60 75%)"),backgroundClip:"text"},p=n.url?n.url:tJ.Y.DEFAULT_CUSTOM_TAG,{register:x,handleSubmit:h,reset:f,watch:g,setValue:b}=(0,tq.cI)({}),_=g(t0.letter1),v=g(t0.letter2),[C,z]=(0,j.useState)(!1),[N,S]=(0,j.useState)(!1),[T,I]=(0,j.useState)(!1),[O,P]=(0,j.useState)(!1);(0,te.useRouter)();let{addListToCart:R}=(0,k.jD)(),{toast:B}=(0,td.pm)(),L=(0,E.o)(),M=""===_||""===v||!C||N;async function handleSubmitPersonalize(t){let{letter1:n="",letter2:r="",checkboxGuidance:o}=t,i=[e].map(()=>{let t="Letra 1: ".concat(n.toUpperCase()," - Letra 2: ").concat(r.toUpperCase()),e=l?"".concat(t," | ").concat(l):t;return{product:{code:"".concat(a,"-").concat("UN")},quantity:1,customizationInfo:{customizedByAnEntry:!0,customizesAnEntry:!1,customMessage:e}}});if(n&&r&&o){S(!0);let{hasError:t,errors:e}=await R(i);if(t){B.error(t2),tm.vU({title:t2,stack:e||[]}),S(!1);return}S(!1),f(),P(!0)}}function handleInputChange(t,e){let n=t.target.value,r=n.replace(tQ.m.ONLY_LETTERS,"");b(e,r)}return O?(0,u.jsxs)("div",{className:"tw-mt-10 tw-flex tw-flex-col tw-items-center tw-justify-center tw-px-4 tw-text-center tw-text-schutz-black",children:[(0,u.jsx)(y.X,{name:"copiedVoucher",size:40}),(0,u.jsx)("h3",{className:"tw-my-4 tw-text-lg tw-font-bold",children:"Produto personalizado com sucesso!"}),(0,u.jsx)("p",{className:"tw-text-xs tw-font-normal",children:"Desejamos que voc\xea seja presenteada com este Schutz"}),(0,u.jsx)(K(),{href:tr.Z.CATEGORY_NEWS,className:"tw-w-full",children:(0,u.jsx)(A.z,{variant:tv.c.primary,className:"tw-mt-10 tw-w-full tw-uppercase",children:"Continuar comprando"})})]}):(0,u.jsxs)(u.Fragment,{children:[N?(0,u.jsx)(tX.a,{className:"tw-z-10"}):null,(0,u.jsxs)("div",{className:N?"tw-opacity-50":"tw-opacity-100",children:[(0,u.jsx)("h2",{className:"tw-w-full tw-pb-2 tw-pt-4 tw-text-center tw-font-heading tw-text-2xl tw-font-bold tw-uppercase tw-leading-7 tw-text-schutz-black",children:(0,tH.ZP)(w)}),(0,u.jsx)("p",{className:"tw-px-0 tw-pb-10 tw-text-center tw-text-sm tw-font-normal tw-leading-6 tw-text-schutz-black",children:(0,tH.ZP)(i)}),T?(0,u.jsxs)("div",{className:"tw-relative tw-px-4",children:[(0,u.jsx)(H.P,{src:p,alt:r[1].altText,width:390,height:480,className:"tw-h-[480px] tw-w-full tw-object-cover"}),function(){if(!T)return null;let t="-tw-skew-x-6 tw-font-customTags tw-font-bold tw-uppercase tw-text-transparent tw-opacity-100";return(0,u.jsxs)("div",{className:"tw-absolute tw-left-1/4 tw-top-[260px] tw-flex tw-w-[195px] tw-justify-evenly tw-text-[80px] tw-leading-[115px]",children:[(0,u.jsx)("span",{className:t,style:m,children:_}),(0,u.jsx)("span",{className:t,style:m,children:""!==_?".":""}),(0,u.jsx)("span",{className:t,style:m,children:v}),(0,u.jsx)("span",{className:t,style:m,children:""!==v?".":""})]})}()]}):(0,u.jsx)("div",{className:"tw-px-4",children:(0,u.jsx)(H.P,{src:r[1].url,alt:r[1].altText,width:390,height:480,className:"tw-h-[480px] tw-w-full tw-object-cover"})}),(0,u.jsx)("div",{className:"tw-mt-10 tw-flex tw-flex-col tw-px-4",children:(0,u.jsxs)("form",{onSubmit:h(handleSubmitPersonalize),className:"tw-flex tw-flex-col",children:[(0,u.jsxs)("div",{className:"tw-flex tw-gap-2.5",children:[(0,u.jsx)("div",{className:"tw-flex tw-flex-1 tw-flex-col tw-text-schutz-black",children:(0,u.jsx)(tK.I,{label:"Letra 1*",maxLength:1,placeholder:"Digite uma letra",inputClassName:"tw-px-2 tw-text-schutz-black tw-border-schutz-black tw-text-xs placeholder:tw-text-xs placeholder:tw-text-schutz-neutral-medium",register:x(t0.letter1,{required:{value:!0,message:t1},onChange:t=>handleInputChange(t,t0.letter1)}),onFocus:()=>I(!0)})}),(0,u.jsx)("div",{className:"tw-flex tw-flex-1 tw-flex-col tw-text-schutz-black",children:(0,u.jsx)(tK.I,{label:"Letra 2*",maxLength:1,placeholder:"Digite uma letra",inputClassName:"tw-px-2 tw-text-schutz-black tw-border-schutz-black tw-text-xs placeholder:tw-text-xs placeholder:tw-text-schutz-neutral-medium",register:x(t0.letter2,{required:{value:!0,message:t1},onChange:t=>handleInputChange(t,t0.letter2)}),onFocus:()=>I(!0)})})]}),(0,u.jsx)("p",{className:"tw-py-6 tw-text-xs tw-text-schutz-black",children:(0,tH.ZP)(c)}),(0,u.jsx)(tY.I,{className:"tw-mb-0 tw-items-start tw-text-schutz-black [&>.checkmark-wrapper>.checkmark]:tw-min-h-3 [&>.checkmark-wrapper>.checkmark]:tw-min-w-3 [&>.checkmark-wrapper]:tw-mt-0.5 [&>.content]:tw-text-xs [&>.content]:tw-font-normal",register:x(t0.checkboxGuidance,{onChange:()=>z(!C)}),children:(0,tH.ZP)(s)}),(0,u.jsx)(A.z,{type:"submit",isDisabled:M,className:"tw-mx-0 tw-mt-10 tw-cursor-pointer tw-uppercase disabled:tw-cursor-not-allowed",onClick:function(){L.buyACustomizableProduct(e.code),L.buyOnPersonalizeModal(e)},children:"Enviar"})]})})]})]})}var t4=n(40934),t3=n(32928),t5=n(35470),t6=n(2899);function FavoriteTooltip(t){let{buttonText:e,descriptionText:n,iconSize:r=16}=t,a=(0,te.useRouter)(),[o,l]=(0,j.useState)(!1),i=(0,j.useRef)(null);return(0,t6.O)(i,()=>{l(!1)}),(0,u.jsxs)("div",{className:(0,I.C$)({_common:"tw-relative tw-font-light"}),ref:i,children:[(0,u.jsx)("button",{className:(0,I.C$)({_common:"target tw-flex tw-border-none tw-bg-transparent",alexandre_birman:"tw-text-mirage"}),onClick:function(t){t.stopPropagation(),t.preventDefault(),l(!o)},children:(0,u.jsx)(y.X,{name:"heartLight",size:r})}),o?(0,u.jsx)("div",{className:(0,I.C$)({_common:"tw-pointer-events-auto tw-absolute -tw-right-[19px] -tw-top-[68px] tw-z-10 tw-cursor-default md:-tw-right-[11px] md:-tw-top-[70px]",alexandre_birman:"-tw-top-16 md:-tw-top-[68px] tw-z-[4]"}),children:(0,u.jsxs)("div",{className:(0,I.C$)({_common:"tw-relative tw-flex tw-w-[170px] tw-flex-col tw-gap-1 tw-p-2 tw-text-center tw-text-xs tw-text-white after:tw-absolute after:-tw-bottom-1 after:tw-right-[18px] after:-tw-z-[1] after:tw-h-5 after:tw-w-5 after:tw-rotate-45 after:tw-rounded-[3px] md:tw-w-[190px] md:tw-px-3 md:tw-text-xs after:md:tw-right-[10px]",alexandre_birman:"tw-bg-raisin-black after:tw-bg-raisin-black after:tw-right-[21px] after:md:tw-right-[13px]"}),children:[(0,u.jsx)(K(),{className:(0,I.C$)({_common:"tw-inline tw-border-none tw-bg-none tw-text-xs tw-text-white tw-underline md:tw-text-sm"}),href:"".concat(tr.Z.LOGIN,"?redirectPath=").concat(a.asPath),prefetch:!1,children:e}),(0,u.jsx)("span",{className:"tw-inline",children:n})]})}):null]})}var t8=n(103),t7=n(12535),t9=n(35393);let et=[{percentage:90,eventName:"view_100_percent"},{percentage:75,eventName:"view_75_percent"},{percentage:50,eventName:"view_50_percent"},{percentage:25,eventName:"view_25_percent"}],ee=(0,j.memo)(function(t){let{component:e}=t,{isMobile:n}=(0,m.k)(),{handleClosedVideo:r,shouldRenderVideo:a}=function(t){let{component:e}=t,[n,r]=(0,j.useState)(!1),a=(0,j.useRef)(!1),{isMobile:o}=(0,m.k)(),l=(0,j.useRef)(!1),i=(0,E.o)(),s=(0,j.useMemo)(()=>new Date,[]),c=s.toLocaleDateString("pt-BR",{month:"2-digit",day:"2-digit",year:"2-digit"}).replaceAll("/","-"),{finalDate:u,initialDate:d,videoAccessCount:w,videoUrl:p,videoUrlDesktop:x}=e,[h,f,,g]=(0,t9._)("full-video-campaign-day-".concat(c)),b=(0,j.useCallback)(()=>{let t=new Date(d),e=new Date(u),n=!Number.isNaN(t.getTime())&&!Number.isNaN(e.getTime());if(!n)return!1;let r=s>=t&&s<=e;return r},[u,d,s]),_=o&&!!p||!o&&!!x,v=h>=w,C=(0,j.useMemo)(()=>!g&&!v&&b()&&_,[b,_,v,g]);(0,j.useEffect)(()=>{if(!C||a.current)return;let t=h||0;r(!0),f(t+1),a.current=!0},[f,C,h]);let y=(0,j.useCallback)(t=>{let{userAction:e}=t;r(!1),e&&i.fullscreenVideoClose(e)},[i]),z=(0,j.useCallback)(()=>{l.current||(l.current=!0,y({userAction:"scroll_down_and_exit_video"}))},[y]);return(0,j.useEffect)(()=>{if(!n){window.removeEventListener("scroll",z);return}window.addEventListener("scroll",z)},[y,z,n]),{handleClosedVideo:y,shouldRenderVideo:n}}({component:e}),[o,l]=(0,j.useState)(!1),i=(0,j.useRef)(0),s=(0,E.o)(),{showMuteButton:c,videoUrl:d,videoUrlDesktop:w}=e;return a?(0,u.jsxs)("div",{className:"tw-fixed tw-inset-0 tw-z-10 tw-size-full tw-bg-black/60",children:[(0,u.jsxs)("div",{className:"tw-relative tw-h-full [&_.audio-button]:tw-fixed [&_.audio-button]:tw-bottom-6 [&_.audio-button]:tw-left-6",children:[o?(0,u.jsx)("button",{className:"tw-absolute tw-right-6 tw-top-6 tw-z-10 tw-flex tw-size-10 tw-items-center tw-justify-center tw-rounded-full tw-bg-zorba-dark tw-text-center tw-text-white",onClick:()=>r({userAction:"click_x_to_exit_video"}),type:"button",children:(0,u.jsx)(y.X,{name:"close",size:18})}):null,(0,u.jsx)(tz.n,{audioButtonConfigs:{shouldRenderAudioButton:c},className:"!tw-h-full [&>video]:!tw-h-full [&>video]:!tw-object-cover",onVideoProgress:function(t){let{played:e}=t,n=100*e;for(let t of et){let{eventName:e,percentage:r}=t,a=i.current>=r,o=n>=r&&!a;if(o){i.current=r,s.fullscreenVideoProgress(e);break}}},onVideoReady:function(){0===i.current&&s.fullscreenVideoReady()},onVideoStart:function(){s.fullscreenVideoProgress("initiate_video"),l(!0),i.current=1},options:{loop:!1,playing:!0,url:n?d:w,onEnded:()=>r({}),playsinline:!0},shouldUsePreview:!1})]}),o?null:(0,u.jsx)("div",{className:"tw-absolute tw-left-1/2 tw-top-1/2 -tw-translate-x-1/2 -tw-translate-y-1/2",children:(0,u.jsx)(y.X,{name:"loader",fillColor:"white",size:50,className:"tw-animate-spin"})})]}):null});var en=n(91697),er=n(31100),ea=n(846),eo=n(80982),el=n(60439);function header_styles_templateObject(){let t=(0,h._)(["\n display: flex;\n height: 80px;\n width: 100%;\n position: sticky;\n top: -1px;\n justify-content: center;\n align-items: center;\n\n h2 {\n cursor: pointer;\n }\n"]);return header_styles_templateObject=function(){return t},t}let ei=f.ZP.header.withConfig({componentId:"sc-83900242-0"})(header_styles_templateObject());function Header(t){let{className:e}=t,n=(0,te.useRouter)();return(0,u.jsx)(ei,{className:e,children:(0,u.jsx)("h2",{onClick:function(){n.push(tr.Z.HOME)},children:th.T.BRAND_NAME})})}var es=n(89352),ec=n(34998),eu=n(95181);function kit_info_KitInfo(t){let{isMobile:e}=(0,m.k)(),{color:n,productKit:r,isRenderKitDescription:a,productKitLength:o,handleScroll:l}=t,{media:i,mediaMobile:s,productList:c,title:d,description:w,uuid:p,kitDescription:x}=r,h=(e?s:i)||function(t){let e=t.find(t=>"product"===t.format);return(null==e?void 0:e.url)||t[0].url}(c[0].images),f=(0,M.k)(L.BrandId.Schutz)&&!e&&2===o?676:z.HEIGHT;return(0,u.jsxs)(O.q,{className:"tw-flex tw-flex-col tw-justify-between",children:[(0,u.jsxs)("div",{className:(0,I.C$)({_common:"tw-flex tw-flex-col",schutz:"tw-relative"}),children:[(0,u.jsx)(tS.M.Image,{src:h,alt:"",width:z.WIDTH,height:f,objectFit:"cover"}),(0,u.jsx)("h3",{className:(0,I.C$)({_common:"tw-text-base",arezzo:"tw-mt-2",schutz:"tw-absolute tw-font-heading tw-text-white tw-text-[32px] tw-leading-[38px] tw-uppercase tw-w-full tw-text-center tw-font-black tw-bottom-[90px] tw-left-2/4 -tw-translate-x-2/4 lg:tw-bottom-[102px]"}),style:{color:n},children:d}),(0,u.jsx)("p",{className:(0,I.C$)({arezzo:"tw-text-xs tw-line-clamp-2",schutz:"tw-absolute tw-text-white tw-w-full tw-text-center tw-text-lg tw-leading-[21.5px] tw-font-bold tw-bottom-[60px] tw-left-2/4 -tw-translate-x-2/4 lg:tw-text-lg"}),children:a?x:w})]}),(0,u.jsx)("div",{className:(0,I.C$)({arezzo:"tw-px-4"}),children:(0,u.jsx)(A.z,{className:(0,I.C$)({_common:"tw-m-0",arezzo:"tw-mb-7 tw-mt-4 tw-min-h-10 tw-w-full",schutz:"tw-absolute tw-bottom-[18px] tw-p-0 tw-underline tw-ring-offset-2 tw-border-none tw-bg-transparent tw-min-h-[20px] tw-text-sm tw-px-6 tw-left-2/4 -tw-translate-x-2/4 tw tw-text-white"}),variant:tv.c.primary,onClick:()=>l(d),children:"Montar o kit"})})]},p)}var ed=n(28059),ew=n(28219),em=n(80584),ep=n(39332);function ListItem(t){let{title:e,link:n,activeLink:r,onClick:a}=t,o=(0,ep.usePathname)(),l=r===e,i=a&&l?o:n,handleClick=t=>{let e=t.target;if(e.textContent)return null==a?void 0:a(e.textContent)};return(0,u.jsx)(K(),{className:(0,I.C$)({arezzo:"tw-flex tw-basis-[21%] tw-justify-center tw-rounded-full tw-p-3\n focus:tw-border focus:tw-border-black lg:tw-px-6 lg:tw-py-3",alexandre_birman:"tw-flex tw-h-8 tw-min-w-[39px] tw-items-center\n tw-justify-center tw-border tw-border-river-bed tw-p-1.5 tw-text-xs\n tw-text-mirage hover:tw-bg-misty-rose\n ".concat(l?"tw-bg-misty-rose":"tw-bg-transparent"),schutz:"tw-border-schutz-black hover:tw-bg-schutz-black\n hover:tw-text-schutz-white tw-flex tw-aspect-square tw-min-h-9\n tw-min-w-9 tw-items-center tw-justify-center tw-border tw-text-sm\n lg:tw-min-h-12 lg:tw-min-w-12 ".concat(l?"tw-bg-schutz-black tw-text-schutz-white":"tw-bg-schutz-white tw-text-schutz-black")}),href:i,prefetch:!1,onClick:t=>handleClick(t),children:(0,u.jsx)("span",{className:"tw-whitespace-nowrap",children:e})},n)}function LinkList(t){let{component:e,maxItems:n,onClick:r,activeLink:a}=t,{title:o,linkList:l}=e,i=(0,j.useMemo)(()=>(function(t){let{maxItems:e,onClick:n,activeLink:r}=t,{linkList:a}=t;return e&&(a=function(t){let{linkList:e,maxItems:n}=t;return e.slice(0,n)}({linkList:a,maxItems:e})),null==a?void 0:a.map(t=>{let{url:e,linkName:a}=t;return(0,u.jsx)(ListItem,{link:e,title:a,activeLink:r,onClick:n},e)})})({linkList:l,maxItems:n,onClick:r,activeLink:a}),[a,l,n,r]);return(0,u.jsxs)("div",{className:(0,I.C$)({_common:"tw-flex tw-flex-col tw-items-center",arezzo:"tw-my-6 tw-gap-4 tw-px-4",alexandre_birman:"tw-mt-2",schutz:"tw-w-full lg:tw-w-fit"}),children:[(0,u.jsx)("h2",{className:(0,I.C$)({arezzo:"tw-text-xs",alexandre_birman:"tw-text-sm tw-font-light lg:tw-text-base",schutz:"tw-text-schutz-black tw-text-sm tw-font-bold"}),children:o}),(0,u.jsx)("div",{className:(0,I.C$)({_common:"tw-flex tw-justify-evenly",arezzo:"tw-flex-wrap tw-gap-2 lg:tw-flex-nowrap",alexandre_birman:"tw-mt-3 tw-grid tw-w-full tw-grid-cols-8\n tw-justify-center tw-gap-2 lg:tw-flex",schutz:"tw-mt-2 tw-grid tw-w-full tw-grid-cols-7 tw-justify-center\n tw-gap-2 md:tw-flex"}),children:i})]})}var ex=n(58675);let eh={MOBILE:4,DESKTOP:6};function LinkedSeoPost(t){let{post:e,isLoading:n}=t,{sectionDescription:r,mediaImage:a,postLink:o,sectionTitle:l}=e,{isMobile:i}=(0,m.k)();return(0,u.jsxs)(K(),{href:o,className:"tw-mx-auto tw-flex tw-max-h-36 tw-max-w-[500px] tw-items-center tw-justify-center tw-gap-4 tw-text-black tw-transition-opacity tw-ease-in-out hover:tw-opacity-90",children:[function(){let t=i?eh.MOBILE:eh.DESKTOP;return n?(0,u.jsx)(tE.O,{lines:t,className:"tw-w-[".concat(144,"px]\n lg:tw-w-[").concat(144,"px]")}):(0,u.jsx)(H.P,{width:144,height:144,src:a,alt:r,loading:"lazy"})}(),(0,u.jsxs)("div",{className:"tw-flex tw-h-full tw-flex-col tw-gap-2 lg:tw-min-w-[340px] lg:tw-max-w-[340px]",children:[(0,u.jsxs)("div",{className:"tw-flex-1 tw-space-y-2",children:[(0,u.jsx)("p",{className:"tw-line-clamp-1 tw-text-base tw-font-bold tw-lowercase tw-leading-6 first-letter:tw-uppercase",children:l}),(0,u.jsx)("p",{className:"tw-line-clamp-2 tw-text-sm tw-font-normal tw-leading-6",children:r})]}),(0,u.jsxs)("p",{className:"tw-flex tw-w-fit tw-items-center tw-gap-4 tw-p-2 tw-text-xs tw-uppercase tw-tracking-[1.5px] hover:tw-bg-black hover:tw-text-white",children:["Continuar lendo",(0,u.jsx)(y.X,{name:"arrowRight",size:12})]})]})]})}var ef=n(88633),eg=n(63346);let eb=new Set(["h1","h2","h3","h4","h5","h6"]);function Marquee(t){var e,n;let{children:r,speed:a=400,contentColor:o=""}=t,l=(0,j.useRef)(null),i=null!==(n=null===(e=l.current)||void 0===e?void 0:e.offsetWidth)&&void 0!==n?n:0,[s,c]=(0,j.useState)(0),{width:d}=(0,eg.d)();(0,j.useEffect)(()=>{c(i)},[i,l]);let w=Math.round(s/a*10),m=j.cloneElement(r,{ref:l}),p=(0,j.useCallback)(t=>{let{hasExtraItem:e=!1}=t||{},n=Math.ceil(d/s);if(!s)return null;let a=n+Number(e),l=eb.has(r.type.toString()),i=r.props.className,c=r.props.children;return Array.from({length:a},(t,e)=>e).map(()=>l?(0,u.jsx)("span",{className:i,style:{color:o},children:c},r.key):r)},[d,s,r,o]);function renderAnimatedContainer(t){let{shouldRenderBaseChildren:e=!1}=t||{};return(0,u.jsxs)("div",{className:"tw-flex tw-animate-marquee tw-justify-start",style:{animationDuration:"".concat(w,"s")},children:[function(t){let{shouldRenderBaseChildren:e=!1}=t||{};return e?m:null}({shouldRenderBaseChildren:e}),p({hasExtraItem:!e})]})}return(0,u.jsxs)("div",{className:"tw-flex tw-w-full tw-flex-nowrap tw-justify-start tw-overflow-hidden",children:[renderAnimatedContainer({shouldRenderBaseChildren:!0}),renderAnimatedContainer()]})}var e_=n(57566);function ModalAddToCartResponse(t){let{isOpen:e,onRequestClose:n,handleSeeCartClick:r}=t,{isMobile:a}=(0,m.k)();function renderModalContent(){return(0,u.jsxs)("div",{className:"tw-mx-auto tw-flex tw-max-w-64 tw-flex-col tw-items-center tw-gap-4",children:[(0,u.jsx)(y.X,{name:"check",size:20}),(0,u.jsx)("h2",{className:"tw-my-2 tw-text-center tw-text-xl tw-font-light tw-uppercase tw-tracking-widest",children:"Produto adicionado \xe0 sua sacola"}),(0,u.jsx)(A.z,{className:"tw-m-0 tw-w-full tw-text-sm tw-font-normal",variant:tv.c.secondary,onClick:n,children:"Continuar comprando"}),(0,u.jsx)(K(),{href:tr.Z.CART,onClick:()=>null==r?void 0:r(),className:"tw-flex tw-h-12 tw-w-full tw-items-center tw-justify-center tw-rounded-3xl tw-border tw-bg-black tw-text-sm tw-font-normal tw-text-white tw-no-underline",children:"Ver Sacola"})]})}return a?(0,u.jsx)(_.W,{isOpen:e,onClose:()=>null==n?void 0:n(),children:renderModalContent()}):(0,u.jsx)(tf.u,{className:"tw-top-1/2 tw-mx-auto tw-flex -tw-translate-y-1/2 tw-flex-col tw-items-center tw-justify-center",isOpen:e,contentClassName:"tw-max-w-96 tw-gap-6 tw-rounded-lg [&_.close-button]:tw-top-6 [&_.close-button]:tw-right-6",onRequestClose:n,children:renderModalContent()})}var ev=n(17059),ej=n(30026),eC=n(28461),ey=n(47101),ez=n(28332),eN=n(33670),eS=n(14359),ek=n(89617),eT=n(41876),eE=n(9008),eI=n.n(eE),eO=n(8100),eP=n(98174),eA=n(17677),eR=n(7538);function PersonalizeContent(t){let{sku:e}=t,{data:n,isValidating:r,mutate:a}=(0,eO.ZP)("products/".concat(e,"?fields=PERSONALIZE"),F.M.getPersonalizeContent,{revalidateOnMount:!1,revalidateOnFocus:!1}),o=null==n?void 0:n.result,l=!n||r;return((0,j.useEffect)(()=>{n||a()},[n,a]),l)?(0,u.jsx)("div",{className:(0,I.C$)({_common:"tw-left-0 tw-top-0 tw-z-10 tw-flex tw-min-h-[300px] tw-min-w-[700px] tw-items-center tw-justify-center tw-bg-black/30",schutz:"tw-bg-white"}),children:(0,u.jsx)(tX.a,{color:eA.M.DARK})}):(null==n?void 0:n.hasError)?(0,u.jsx)("div",{className:"tw-px-6 tw-py-10 tw-text-center lg:tw-p-6 lg:tw-text-left [&>p]:tw-text-sm ",children:(0,u.jsx)(eP.j,{children:"Erro ao carregar a personaliza\xe7\xe3o do produto. Tente novamente!"})}):(0,u.jsxs)(u.Fragment,{children:[(null==o?void 0:o.head)?(0,u.jsxs)(eI(),{children:[(0,tH.ZP)(o.head),(0,u.jsx)("title",{children:o.title})]}):null,function(){if(null==o?void 0:o.body){let t={replace:eR.q};return(0,tH.ZP)(o.body,t)}return null}()]})}function ModalPersonalize(t){let{isOpen:e,sku:n,setIsOpen:r,maxWidth:a="800px"}=t;return(0,u.jsx)(tf.u,{isOpen:e,onRequestClose:()=>r(!1),customPadding:"0",maxWidth:a,children:(0,u.jsx)(PersonalizeContent,{sku:n})})}var eB=n(96632),eL=n(66989),eM=n(2392),e$=n(88116),eD=n(46743),eF=n(41852),eU=n(86821),eG=n(60994),eV=n(78589),eZ=n(49135),eW=n(2177),eq=n(7404);function product_item_styles_templateObject(){let t=(0,h._)(["\n width: 100%;\n cursor: pointer;\n color: inherit;\n text-decoration: none;\n"]);return product_item_styles_templateObject=function(){return t},t}function product_item_styles_templateObject1(){let t=(0,h._)(["\n display: block;\n width: 100%;\n"]);return product_item_styles_templateObject1=function(){return t},t}function product_item_styles_templateObject2(){let t=(0,h._)(["\n display: flex;\n flex-direction: column;\n\n > h2 {\n margin-top: 5px;\n font-weight: normal;\n font-size: 13px;\n text-transform: capitalize;\n }\n\n > p {\n font-size: 14px;\n color: ",";\n }\n"]);return product_item_styles_templateObject2=function(){return t},t}let eH=f.ZP.a.withConfig({componentId:"sc-e51a960c-0"})(product_item_styles_templateObject()),eX=f.ZP.div.withConfig({componentId:"sc-e51a960c-1"})(product_item_styles_templateObject1()),eK=f.ZP.div.withConfig({componentId:"sc-e51a960c-2"})(product_item_styles_templateObject2(),t=>t.theme.colors.grayDark);function ProductItem(t){var e;let{product:n}=t,r=(null===(e=n.primaryImages[0])||void 0===e?void 0:e.url)||(0,$.G)(n.images);return(0,u.jsx)(K(),{href:n.url,passHref:!0,legacyBehavior:!0,children:(0,u.jsxs)(eH,{children:[(0,u.jsx)(eX,{children:(0,u.jsx)(tS.M.Image,{src:r,alt:n.name,width:400,height:400,objectFit:"contain"})}),(0,u.jsxs)(eK,{children:[(0,u.jsx)("h2",{children:n.name}),(0,u.jsx)("p",{children:V.W(n.price.value)})]})]})})}var eY=n(10734);function TextTag(t){let{text:e,extraStyle:n,className:r=""}=t,{backgroundColor:a,contentColor:o}=n||{};return(0,u.jsx)("div",{className:(0,I.C$)({_common:"tw-w-fit tw-px-2 tw-text-xs tw-font-medium ".concat(r),vans:"tw-h-fit tw-rounded tw-bg-black tw-px-2 tw-py-1 tw-uppercase\n tw-text-white",zzmall:"tw-my-auto tw-truncate tw-py-1 tw-text-center ".concat(a?"":"tw-border")}),style:{backgroundColor:a,color:o},children:e})}function promotion_tag_styles_templateObject(){let t=(0,h._)(["\n .promotion-tag {\n position: relative;\n display: inline-block;\n margin-bottom: 5px;\n\n &__tooltip {\n width: 160px;\n background: ",";\n padding: 0;\n overflow: hidden;\n height: 0;\n font-size: 13px;\n opacity: 0;\n transition: opacity 0.4s linear;\n position: absolute;\n left: 0;\n top: 30px;\n z-index: 1;\n\n &::before {\n content: '';\n top: -2px;\n left: 4px;\n background: ",";\n border-top-color: ",";\n height: 18px;\n position: absolute;\n transform: rotate(45deg);\n width: 18px;\n z-index: -1;\n }\n }\n\n &:hover {\n .promotion-tag__tooltip {\n opacity: 1;\n color: ",";\n overflow: visible;\n padding: 6px 10px;\n height: auto;\n }\n }\n }\n"]);return promotion_tag_styles_templateObject=function(){return t},t}let eQ=f.ZP.div.withConfig({componentId:"sc-20743c2c-0"})(promotion_tag_styles_templateObject(),t=>t.theme.colors.promotionTag.toolTipColor,t=>t.theme.colors.promotionTag.toolTipColor,t=>t.theme.colors.promotionTag.toolTipColor,t=>t.theme.colors.promotionTag.toolTipFontColor);function PromotionTag(t){let{image:e="",alt:n="",tooltipDescription:r,className:a,dataTestId:o,width:l=104,height:i=26,text:s,textTagClassName:c,renderAsText:d=!1,styleColors:w,...m}=t;return s&&d?(0,u.jsx)(TextTag,{text:s,extraStyle:w,className:c}):e?(0,u.jsx)(eQ,{className:a,children:(0,u.jsxs)("div",{className:"promotion-tag","data-testid":o,children:[(0,u.jsx)(tS.M.Image,{alt:n,priority:!1,width:l,height:i,objectFit:"contain",src:e,...m}),r?(0,u.jsx)("div",{className:"promotion-tag__tooltip",dangerouslySetInnerHTML:{__html:r}}):null]})}):null}var eJ=n(4255),e0=n(32860),e1=n(43517),e2=n(95494),e4=n(11146),e3=n(27724);let e5={DESKTOP:1024},e6={Mobile:function(t){let{children:e}=t,{width:n}=(0,eg.d)(),r=n>0&&n0&&n>=e5.DESKTOP;return r?(0,u.jsx)(u.Fragment,{children:e}):null}};var e8=n(29714),e7=n(47520),e9=n(39216),nt=n(66006),ne=n(16180),nn=n(43643),nr=n(64633);function search_stores_form_styles_templateObject(){let t=(0,h._)(["\n text-align: center;\n\n .buttons-container {\n display: flex;\n flex-direction: column;\n gap: 10px;\n margin-top: 10px;\n margin-bottom: 20px;\n\n button {\n margin: 0;\n }\n }\n"]);return search_stores_form_styles_templateObject=function(){return t},t}let na=f.ZP.form.withConfig({componentId:"sc-23059861-0"})(search_stores_form_styles_templateObject()),no={zipCodeOrAddress:"zipCodeOrAddress"};function SearchStoresForm(t){let{setStoreList:e,className:n}=t,[r,a]=(0,j.useState)(!1),{position:o}=(0,nn.O)(),l=(0,f.Fg)(),{handleSubmit:i,register:s,setValue:c}=(0,tq.cI)();async function getStores(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};a(!0);let{zipCodeOrAddress:n}=t,{result:r,hasError:l}=n?await nr.M.getStores(n):await nr.M.getStoresByCoords({latitude:o.latitude,longitude:o.longitude});if(l){a(!1);return}a(!1),r&&e(r),a(!1)}return(0,u.jsxs)(na,{className:n,onSubmit:i(getStores),children:[(0,u.jsx)(tK.I,{placeholder:"CEP ou cidade",register:s(no.zipCodeOrAddress,{onChange:t=>(function(t){let{value:e}=t.target;Number.isInteger(Number.parseInt(e[0],10))?(t.target.maxLength=8,c(no.zipCodeOrAddress,e.replace(/\D/g,"").replace(/(\d{5})(\d{3})/,"$1-$2"))):(t.target.maxLength=255,t.target.value=e)})(t)}),dataTestId:t$.UI.INPUT_CEP}),(0,u.jsxs)("div",{className:"buttons-container",children:[(0,u.jsx)(A.z,{shouldGrow:!0,isLoading:r,type:"submit",dataTestId:t$.UI.SEARCH_BUTTON,children:"Buscar"}),(0,u.jsx)(A.z,{shouldGrow:!0,className:"search-stores-close-to-me",variant:l.commonButtonVariants.storeFinder.storesCloseToMe,dataTestId:t$.UI.NEAR_STORE_BUTTON,onClick:()=>getStores(),type:"button",children:"Buscar lojas pr\xf3ximas a mim"})]})]})}function SeeAllPostsButton(t){var e;let{quantityPosts:n}=t,r=(0,te.useRouter)(),a=!!r.query.categories,{queryRoute:o,routePush:l}=function(t){let{quantityPosts:e,isCategoryPage:n,category:r,product:a}=t,o=e<=4?tr.Z.GET_INSIDE:tr.Z.RELATED_POSTS;return{routePush:o,queryRoute:e<=4?{}:n?{type:"category",category:r}:{type:"product",product:a}}}({isCategoryPage:a,category:(null===(e=r.query.categories)||void 0===e?void 0:e.at(-1))||"",product:r.query.sku||"",quantityPosts:n});return(0,u.jsx)("div",{onClick:function(){r.push({pathname:l,query:{...o}})},className:(0,I.C$)({_common:"tw-max-h-9 tw-w-full tw-items-center tw-text-nowrap lg:tw-flex\n lg:tw-min-w-[532px] lg:tw-justify-center lg:tw-self-center",schutz:"tw-mt-4 tw-flex tw-justify-center tw-self-center md:tw-col-span-2"}),children:(0,u.jsx)(A.z,{variant:tv.c.primary,className:(0,I.C$)({_common:"tw-m-0 tw-flex tw-min-h-9 tw-w-full tw-gap-4 tw-px-4 tw-py-2\n lg:tw-max-w-[236px]",schutz:"tw-min-h-11 tw-w-fit tw-max-w-28 tw-bg-schutz-black tw-p-0\n tw-px-6 tw-text-sm tw-font-normal tw-uppercase tw-text-schutz-white"}),children:"Ver mais"})})}var nl=n(2782);function seo_content_styles_templateObject(){let t=(0,h._)(["\n .seo {\n .image-container {\n .image {\n max-width: 100%;\n }\n }\n }\n"]);return seo_content_styles_templateObject=function(){return t},t}let ni=f.ZP.div.withConfig({componentId:"sc-7e8bc5ae-0"})(seo_content_styles_templateObject());function SeoContent(t){let{title:e,image:n="",description:r,seoContentRef:a,fullImageHeight:o=0,...l}=t,i=(null==n?void 0:n.length)>0;return(0,u.jsxs)(ni,{ref:a,...l,children:[(0,u.jsxs)("div",{className:"seo__content",children:[e?(0,u.jsx)("h2",{className:"seo__content__title",children:(0,tH.ZP)(e)}):null,(0,u.jsx)("div",{className:"seo__content__description",children:(0,tH.ZP)(r)})]}),i?o?(0,u.jsx)("div",{className:"seo__wrapper-img",children:(0,u.jsx)(tS.M.FullWidthImage,{src:n,alt:e,height:o})}):(0,u.jsx)("div",{className:"seo__wrapper-img",children:(0,u.jsx)(tS.M.Image,{src:n,alt:e,width:360,height:360,objectFit:"contain"})}):null]})}let ns={width:350,height:350};function SeoContentBottom(t){let{title:e,image:n,description:r,seoContentRef:a}=t,o=(0,j.useRef)(null),l=(0,j.useRef)(null),i=(0,j.useRef)(null),[s,c]=(0,j.useState)(!1),[d,w]=(0,j.useState)(!1);return(0,j.useEffect)(()=>{var t,e,n,r;let a=null!==(n=null===(t=l.current)||void 0===t?void 0:t.clientHeight)&&void 0!==n?n:0,i=null!==(r=null===(e=o.current)||void 0===e?void 0:e.scrollHeight)&&void 0!==r?r:0;c(i>a)},[l,o,e]),(0,u.jsx)("div",{className:(0,I.C$)({_common:"tw-mb-6 tw-w-full tw-px-5",vans:"tw-scroll-mt-40 tw-px-0 tw-pt-5"}),ref:a,id:"seo-content-bottom",children:(0,u.jsxs)("div",{className:(0,I.C$)({_common:"tw-flex tw-flex-col tw-gap-6 min-[780px]:tw-flex-row",vans:"tw-gap-y-2 min-[780px]:tw-flex-row-reverse"}),children:[n?(0,u.jsx)("div",{className:"tw-w-full min-[780px]:tw-w-[260px]",children:(0,u.jsx)(tS.M.Image,{src:n,alt:e,width:ns.width,height:ns.height,objectFit:"cover",layout:"responsive"})}):null,(0,u.jsxs)("div",{className:(0,I.C$)({_common:"tw-flex-1 [&_h2]:tw-text-lg [&_h2]:tw-font-semibold\n [&_h2]:tw-capitalize",anacapri:"tw-text-mine-shaft",vans:"[&_h2]:tw-text-xl [&_h2]:tw-font-medium\n [&_strong]:tw-font-medium"}),children:[e?(0,u.jsx)("h2",{ref:i,children:(0,tH.ZP)(e)}):null,(0,u.jsx)("section",{ref:l,className:d?"tw-block":"tw-line-clamp-[7] tw-overflow-hidden tw-text-ellipsis",children:(0,u.jsx)("div",{className:(0,I.C$)({_common:"[&_a]:tw-font-bold [&_a]:tw-underline [&_h2]:tw-pt-2\n [&_h3]:tw-pt-2 [&_h3]:tw-text-sm [&_h3]:tw-font-semibold\n [&_p]:tw-pt-2",anacapri:"[&_a]:tw-italic [&_p]:tw-text-xs",vans:"[&_a]:tw-font-medium [&_h3]:tw-text-lg [&_h3]:tw-font-medium\n [&_p]:tw-text-base"}),ref:o,children:(0,tH.ZP)(r.replaceAll(tQ.m.WRONG_SEO_BREAK_LINE,"
"))})}),s?(0,u.jsx)("button",{className:(0,I.C$)({_common:"tw-mt-4 tw-underline",vans:"tw-text-lg tw-font-medium"}),onClick:function(){if(d){var t;null===(t=i.current)||void 0===t||t.scrollIntoView({block:"center"})}w(t=>!t)},children:d?"Ler menos":"Ler mais"}):null]})]})})}var nc=n(47702);function ShareButtonNative(t){let{text:e,url:n,className:r="",iconName:a,iconSize:o=20,product:l}=t,{isTablet:i}=(0,m.k)(),[s,c]=(0,j.useState)(!1),d=(0,E.o)();async function handleClickShare(){l&&d.shareLink(()=>({product:l})),await navigator.share({text:e,url:n})}return((0,j.useEffect)(()=>{let t="https:"===location.protocol,e=t&&!!navigator.share;c(e)},[]),i&&s)?(0,u.jsx)("button",{type:"button",className:r,onClick:handleClickShare,children:(0,u.jsx)(y.X,{name:a,size:o})}):null}var nu=n(52070),nd=n(42566);function SlotComponents(t){let{slot:e}=t;return(0,u.jsx)(u.Fragment,{children:null==e?void 0:e.components.map(t=>(0,u.jsx)("h2",{children:t.typeCode},t.uid))})}var nw=n(36403),nm=n(85519),np=n(3252),nx=n(63225),nh=n(5762);let nf={width:0,offsetLeft:0};function getTabId(t){let e=(0,nh.S)(t);return"tab-".concat(e)}function Tabs(t){let{contents:e,className:n="",titlesContainerClassName:r=""}=t,[a,o]=(0,j.useState)(getTabId(e[0].title||"default")),[l,i]=(0,j.useState)(nf);function handleChangeTab(t){let e=t.currentTarget.id;o(e)}return((0,j.useEffect)(()=>{(async function(){await document.fonts.ready;let t=function(t){let e=document.querySelector("#".concat(t," + label")),n=(null==e?void 0:e.offsetWidth)||0,r=(null==e?void 0:e.offsetLeft)||0;return{width:n,offsetLeft:r}}(a);i(t)})()},[a]),0===e.length)?null:(0,u.jsxs)("div",{className:(0,I.C$)({_common:"tw-relative ".concat(n)}),children:[(0,u.jsx)("div",{className:r,children:e.map((t,e)=>{let{title:n}=t,r=getTabId(n),o=r===a,l="".concat(t$.A8).concat(r),i="".concat(l).concat(o?"-active":"");return(0,u.jsxs)(j.Fragment,{children:[(0,u.jsx)("input",{type:"radio",className:"tw-hidden",value:e,id:r,onChange:handleChangeTab,checked:o}),(0,u.jsx)("label",{htmlFor:r,className:(0,I.C$)({_common:"tw-mr-2 tw-inline-block tw-cursor-pointer tw-text-center\n last-of-type:tw-m-0",vans:"tw-mr-8 tw-text-[16px] tw-font-bold tw-uppercase\n last-of-type:tw-m-0",schutz:"".concat(o?"active":"")}),"data-testid":i,children:n})]},r)})}),(0,u.jsx)("div",{className:(0,I.C$)({_common:"tw-h-px tw-transform tw-bg-black tw-transition-measurements\n tw-duration-300",vans:"tw-h-0.5",schutz:"tw-h-px"}),style:{width:l.width,transform:"translateX(".concat(l.offsetLeft,"px)")}}),(0,u.jsx)("div",{className:(0,I.C$)({_common:"tw-relative tw-mt-6 tw-flex tw-h-full",schutz:"tw-justify-center"}),children:e.map(t=>{let{renderContent:e,title:n}=t,r=(0,nh.S)(n),o="content-".concat(r),l=a.includes(r);return(0,u.jsx)("div",{className:(0,I.C$)({_common:"tw-order-2 tw-w-full ".concat(l?"tw-order-1":"visually-hidden")}),id:o,children:e()},o)})})]})}var ng=n(4530),nb=n(78727),n_=n(70987);function tooltip_styles_templateObject(){let t=(0,h._)(["\n position: relative;\n\n .tooltip {\n position: relative;\n display: flex;\n align-items: center;\n height: max-content;\n width: max-content;\n\n &__content {\n position: absolute;\n transform: translateX(-50%);\n left: 50%;\n bottom: 100%;\n border: 1px solid ",";\n min-width: 70px;\n padding: 4px;\n display: flex;\n justify-content: center;\n background: ",";\n z-index: 1000;\n margin-bottom: 8px;\n white-space: nowrap;\n\n &::before {\n position: absolute;\n left: calc(50% - 4px);\n width: 8px;\n height: 8px;\n background: ",";\n bottom: -5px;\n border: 1px solid ",";\n border-left: 0;\n border-top: 0;\n content: '';\n transform: rotate(45deg);\n }\n }\n\n &__content-label {\n font-size: 11px;\n color: ",";\n }\n }\n"]);return tooltip_styles_templateObject=function(){return t},t}let nv=f.ZP.div.withConfig({componentId:"sc-807c0c4e-0"})(tooltip_styles_templateObject(),t=>t.theme.colors.tooltip.border,t=>t.theme.colors.tooltip.background,t=>t.theme.colors.tooltip.background,t=>t.theme.colors.tooltip.border,t=>t.theme.colors.tooltip.label);function Tooltip(t){let{className:e,children:n,label:r,isOpen:a,dataTestId:o}=t;return(0,u.jsx)(nv,{className:e,children:(0,u.jsxs)("div",{className:"tooltip",children:[a?(0,u.jsx)("div",{className:"tooltip__content",children:(0,u.jsx)("span",{"data-testid":o,className:"tooltip__content-label",children:r})}):null,n]})})}var nj=n(51455),nC=n(87766);function TransitionWrapper(t){let{children:e,customClassName:n="",isActive:r,durationInMs:a=300}=t,[o,,l]=(0,nC.R)({durationInMs:a,isStateActive:r}),i={[nj.c.ENTERING]:"tw-opacity-100",[nj.c.ENTERED]:"tw-opacity-100 ",[nj.c.EXITING]:"tw-opacity-0",[nj.c.EXITED]:"tw-opacity-0"},s=i[l]||"tw-opacity-0";return o?(0,u.jsx)("div",{style:{"--animation-duration":"".concat(a,"ms")},className:"tw-transition-opacity [&]:tw-duration-[var(--animation-duration)] ".concat(s," ").concat(n),children:e}):null}var ny=n(78951),nz=n(51744),nN=n(84773),nS=n(37553),nk=n(13248),nT=n(88420);function WishGiftModal(t){let{isOpen:e,setIsOpen:n,product:r,headerTitle:a,headerSubTitle:o,headerDescription:l,successSubTitle:i,isEmailRequired:s=!0,customMessage:c,shouldSendEmarsys:d,campaignName:w,contactListId:m,iconSuccessWishGift:p,contentClassName:x="",maxWidth:h="645px",shouldRenderSizeError:f=!1,onSuccess:g,customInputPlaceholders:b,customInputLabels:_,lockPageScrollOnOpen:v,variantOptionsClassName:j,customSizeText:C,defaultChecked:y,shouldRenderFeedbackComponent:z=!1,successTitle:N}=t;return(0,u.jsx)(tf.u,{isOpen:e,onRequestClose:()=>void n(!1),className:"wish-gift-modal",maxWidth:h,contentClassName:(0,I.C$)({_common:"md:tw-p-9 tw-py-8 tw-px-4",anacapri:"md:tw-px-2 md:tw-py-1 tw-px-2 tw-py-1 tw-rounded-2xl",vicenza:"tw-px-8"}),lockPageScrollOnOpen:v,children:(0,u.jsx)(nT.H,{product:r,campaignName:w,contactListId:m,contentClassName:x,customInputLabels:_,customInputPlaceholders:b,customMessage:c,customSizeText:C,defaultChecked:y,headerDescription:l,headerSubTitle:o,headerTitle:a,successSubTitle:i,iconSuccessWishGift:p,isEmailRequired:s,shouldRenderSizeError:f,shouldSendEmarsys:d,variantOptionsClassName:j,shouldRenderSelectOptions:!1,shouldRenderFeedbackComponent:z,successTitle:N,setIsOpen:n,onSuccess:g})})}var nE=n(22786)},14359:function(t,e,n){"use strict";n.d(e,{k:function(){return GiftBagItem}});var r=n(85893),a=n(87808),o=n(96984),l=n(79560),i=n(22263),s=n(55056);function GiftBagItem(t){let{name:e,description:n,imageUrl:c,price:u,discountPrice:d,handleAddGiftBag:w,type:m,children:p,imageDimensions:x={width:90,height:90}}=t,{isPremiumBagMessagingEnabled:h}=(0,l.m4)();return(0,r.jsx)(r.Fragment,{children:function(){let{width:t,height:l}=x;return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsxs)("div",{className:"modal-gift-bag__gift-bag-item-wrapper",children:[(0,r.jsx)("div",{children:(0,r.jsx)("div",{className:"modal-gift-bag__gift-bag-item-wrapper__image",children:(0,r.jsx)(o.M.Image,{src:c,width:t,height:l,alt:e})})}),(0,r.jsxs)("div",{className:"modal-gift-bag__gift-bag-item-wrapper__content",children:[(0,r.jsx)("p",{className:"modal-gift-bag__gift-bag-item-wrapper__content__title",children:e}),(0,r.jsx)("p",{className:"modal-gift-bag__gift-bag-item-wrapper__content__text",children:n}),function(){let t=m===s.s.GIFT_BAG_PREMIUM&&w&&h;return t?(0,r.jsx)("p",{className:"modal-gift-bag__gift-bag-item-wrapper__content__notice",children:"Acompanha um cart\xe3o para voc\xea escrever uma mensagem"}):null}(),(0,r.jsxs)("div",{className:"modal-gift-bag__gift-bag-item-wrapper__content__footer",children:[(0,r.jsx)("div",{className:"modal-gift-bag__gift-bag-item-wrapper__content__price",children:function(t){let{price:e,discountPrice:n}=t;return n?(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("del",{className:"modal-gift-bag__price--old",children:i.W(e)}),(0,r.jsx)("ins",{className:"modal-gift-bag__price--new",children:i.W(n)})]}):(0,r.jsx)("p",{className:"modal-gift-bag__price--base",children:i.W(e)})}({price:u,discountPrice:d})}),p,w?(0,r.jsx)(a.z,{type:"button",className:"modal-gift-bag__gift-bag-item-wrapper__content__footer__button",onClick:w,children:"Selecionar"}):null]})]})]}),(0,r.jsx)("div",{className:"modal-gift-bag__divider"})]})}()})}},55056:function(t,e,n){"use strict";var r,a;n.d(e,{s:function(){return r}}),n(67294),(a=r||(r={}))[a.GIFT_BAG_PREMIUM=0]="GIFT_BAG_PREMIUM",a[a.GIFT_BAG_FREE=1]="GIFT_BAG_FREE"},96632:function(t,e,n){"use strict";n.d(e,{M:function(){return ModalRemoveCartEntry}});var r=n(85893),a=n(42473),o=n(37340),l=n(20256),i=n(57566);function _templateObject(){let t=(0,o._)(["\n align-items: center;\n display: flex;\n justify-content: center;\n\n .modal-confirm-remove-cart {\n padding: 0;\n\n @media only screen and (min-width: 768px) {\n padding: 0 20px;\n }\n\n &__wrapper {\n align-items: center;\n display: flex;\n flex-direction: column;\n\n &__title {\n font-size: 20px;\n font-weight: 600;\n margin: 10px 0;\n }\n\n &__text {\n font-size: 14px;\n font-weight: 400;\n margin: 10px 0;\n text-align: center;\n }\n }\n\n &__content {\n display: flex;\n justify-content: space-around;\n }\n }\n"]);return _templateObject=function(){return t},t}let s=(0,l.ZP)(i.u).withConfig({componentId:"sc-42b783d6-0"})(_templateObject());function ModalRemoveCartEntry(t){let{isOpen:e,toggle:n,children:o}=t;return(0,r.jsxs)(s,{isOpen:e,overrideCloseButton:(0,r.jsx)(a.X,{name:"newClose",size:11}),onRequestClose:()=>n(),maxWidth:"430px",children:[(0,r.jsx)("div",{className:"modal-confirm-remove-cart",children:(0,r.jsxs)("div",{className:"modal-confirm-remove-cart__wrapper",children:[(0,r.jsx)("h4",{className:"modal-confirm-remove-cart__wrapper__title",children:"Deseja excluir este produto?"}),(0,r.jsx)("span",{className:"modal-confirm-remove-cart__wrapper__text",children:"Ao excluir este item do seu carrinho, voc\xea tamb\xe9m excluir\xe1 a personaliza\xe7\xe3o realizada no produto."})]})}),(0,r.jsx)("div",{className:"modal-confirm-remove-cart__content",children:o})]})}},29714:function(t,e,n){"use strict";n.d(e,{V:function(){return Ribbon}});var r=n(85893),a=n(67294),o=n(25935),l=n(5632),i=n(68460),s=n(35131),c=n(63346),u=n(38538),d=n(11356),w=n(93804),m=n(91474),p=n(38952),x=n(80731),h=n(37340),f=n(20256);function _templateObject(){let t=(0,h._)(["\n background: ",";\n\n .carousel {\n &__arrow {\n background-color: transparent;\n height: 21px;\n width: 21px;\n\n &--next {\n right: calc((100% - ","px) / 2);\n }\n\n &--prev {\n left: calc((100% - ","px) / 2);\n }\n\n svg {\n path {\n fill: ",";\n }\n }\n }\n }\n\n .ty-ribbon {\n &__container {\n min-height: 26px;\n display: flex;\n align-items: center;\n text-transform: uppercase;\n }\n\n &__item {\n width: 100%;\n }\n\n &__title {\n align-items: center;\n display: flex;\n font-size: 12px;\n line-height: 100%;\n display: none;\n\n b {\n margin-right: 5px;\n }\n }\n\n &__description {\n font-size: 12px;\n line-height: 1.4;\n text-align: center;\n margin: 0 auto;\n\n .ty-link {\n color: currentColor;\n }\n }\n }\n\n .ty-clipboard,\n .clipboard {\n padding: 7px;\n display: inline-block;\n\n &__wrapper {\n align-items: center;\n border: solid 1px ",";\n display: inline-flex;\n position: relative;\n }\n\n &__code {\n padding: 3px 7px;\n }\n\n &__btn {\n background: ",";\n border: 0;\n border-radius: 0;\n font-size: 11px;\n min-height: 20px;\n padding: 4px 7px;\n text-transform: uppercase;\n font-family: inherit;\n }\n\n &__close {\n color: ",";\n font-size: 11px;\n line-height: 100%;\n position: absolute;\n right: 10px;\n top: 11px;\n z-index: 5;\n }\n }\n\n @media only screen and (max-width: 768px) {\n overflow-y: clip;\n\n .ribbon-accordion-controller {\n max-height: 26px;\n transition: max-height 0.5s ease-in-out;\n display: block;\n\n .carousel {\n &__pagination {\n position: absolute;\n bottom: 0;\n left: 50%;\n transform: translateX(-50%);\n\n &__dot {\n padding: 0;\n height: 8px;\n width: 8px;\n margin: 3px;\n opacity: 0.3;\n transition: transform 0.2s linear;\n\n &--active {\n opacity: 1;\n background-color: ",";\n transform: scale(1.4);\n }\n }\n }\n }\n }\n\n .ribbon-accordion-check:checked ~ .ribbon-accordion-controller {\n max-height: 300px;\n }\n\n .clipboard {\n padding: 0 7px;\n\n &__close {\n display: none;\n }\n }\n\n .ty-ribbon {\n &__container {\n padding-bottom: 30px;\n }\n\n &__description {\n display: inline;\n text-align: center;\n }\n\n &__item {\n width: 100%;\n display: flex;\n flex-direction: column;\n align-items: center;\n justify-content: center;\n }\n\n &__title {\n display: flex;\n height: 26px;\n width: fit-content;\n align-items: center;\n }\n }\n }\n"]);return _templateObject=function(){return t},t}let g=f.ZP.div.withConfig({componentId:"sc-5f690725-0"})(_templateObject(),t=>t.theme.colors.ribbon.background,1180,1180,t=>{let{arrowColor:e}=t;return e||w.H.WHITE},t=>t.theme.colors.white,t=>t.theme.colors.grayLight,t=>t.theme.colors.white,t=>t.theme.colors.ribbon.arrows),b="ribbon-accordion",_=w.H.WHITE,v=/data-arrow-color="([^"]+)"/;function getArrowColor(t){var e;if(!t)return _;let n=null===(e=t.match(v))||void 0===e?void 0:e[1];return n||_}function Ribbon(t){var e,n;let{component:w,customCarouselOptions:h,renderCloseButton:f,onMove:v,isFullButton:j=!1,hasDynamicContainerWidth:C=!1,disableTabNavigation:y=!1,...z}=t,{slides:N=[]}=w,{width:S}=(0,c.d)(),{isMobile:k}=(0,u.k)(),{isPrivateSaleUser:T}=function(t){let{nameGroupPrivate:e}=t,{user:n}=(0,d.aC)(),r=null==n?void 0:n.groups,a=null==r?void 0:r.some(t=>t.startsWith(e));return{isPrivateSaleUser:a}}({nameGroupPrivate:""}),[E,I]=(0,a.useState)(!1),[O,P]=(0,a.useState)(""),[A,R]=(0,a.useState)(null),B=(0,a.useRef)(null),L=[],M=0!==S&&k?null===(e=N[0])||void 0===e?void 0:e.contentMobile:null===(n=N[0])||void 0===n?void 0:n.contentDesktop,$={hidePagination:!0,hideArrows:!0,autoplay:N.length>1,delay:5e3,loop:!0,fitHeightToSlide:!0,...h};(0,a.useEffect)(()=>{let t=getArrowColor(M);P(t)},[M,S]),(0,a.useEffect)(()=>{let t=A&&C;t&&(0,p.dc)(A)},[S]);let D=(0,a.useCallback)(t=>{t&&(0,x.addClipboardEventListeners)({containerElement:t,buttonWrapperSelector:".clipboard__wrapper",buttonSelector:".clipboard__btn",stringElementSelector:".clipboard__code",successClass:"clipboard__wrapper--copied",isFullButton:j})},[j]);function handleChangeArrowColor(t){let e=L[t]||_;P(e)}return 0===N.length?null:(0,r.jsxs)(g,{...z,arrowColor:O,ref:B,children:[(0,r.jsx)("input",{type:"checkbox",id:b,className:"visually-hidden ribbon-accordion-check"}),(0,r.jsxs)("label",{htmlFor:b,className:"ribbon-accordion-controller",children:[f?f():null,(0,r.jsx)(i.l,{options:$,className:"".concat("ribbon-carousel-container"," ").concat(E?"ribbon-carousel-container--is-loaded":"").trim(),onLoad:function(t){C&&(0,p.dc)(t),handleChangeArrowColor(0),I(!0),R(t)},onMove:function(t){handleChangeArrowColor(t),function(t){var e,n;let r=null===(e=B.current)||void 0===e?void 0:e.querySelectorAll(".carousel__slide"),a=null==r?void 0:r[t],o=!!(null==a?void 0:a.querySelector(".ty-ribbon__description")),l=null==a?void 0:a.querySelector(".ty-ribbon__title"),i=null===(n=B.current)||void 0===n?void 0:n.querySelector(".ribbon-accordion-controller");!o&&k?(null==l||l.classList.add("hidden-arrow"),null==i||i.classList.add("adjusted-max-height")):null==i||i.classList.remove("adjusted-max-height")}(t),v&&v(t)},disableTabNavigation:y,children:function(){let t=N.map((t,e)=>{var n;let a=k?t.contentMobile:t.contentDesktop,i=(0,m.k)(s.BrandId.Schutz),c=(null===(n=t.userGroup)||void 0===n?void 0:n.startsWith(""))&&i;if(!a||c&&!T)return null;let u=(0,o.ZP)(a),d=getArrowColor(a);return L.push(d),(0,r.jsx)(l.q,{children:(0,r.jsx)("div",{ref:t=>D(t),children:u})},e)});return t}()})]})]})}},16180:function(t,e,n){"use strict";n.d(e,{J:function(){return ScriptWithCleanup}});var r=n(85893),a=n(67294),o=n(11163),l=n(4298),i=n.n(l);function ScriptWithCleanup(t){let e=(0,o.useRouter)(),n=(0,a.useCallback)(t=>{window.location.href=e.basePath+t},[e.basePath]);return(0,a.useEffect)(()=>(e.events.on("routeChangeStart",n),()=>{e.events.off("routeChangeStart",n)}),[n,e.events]),(0,r.jsx)(i(),{...t})}},47702:function(t,e,n){"use strict";n.d(e,{T:function(){return ShareButton}});var r=n(85893),a=n(67294),o=n(42473),l=n(28542),i=n(38538),s=n(46840),c=n(95187),u=n(37340),d=n(20256);function _templateObject(){let t=(0,u._)(["\n transition: width 0.5s ease-in-out;\n overflow-x: clip;\n position: relative;\n z-index: 1;\n display: flex;\n align-items: center;\n justify-content: center;\n width: 35px;\n height: 26px;\n\n .share-links {\n list-style-type: none;\n display: flex;\n gap: 11px;\n position: absolute;\n right: 6px;\n\n > li:not(.share-opener) {\n visibility: hidden;\n display: none;\n }\n\n &__content {\n display: inline-block;\n padding: 6px;\n }\n }\n\n :hover,\n &.show-mobile {\n width: 170px;\n\n .share-links {\n li {\n visibility: visible;\n display: block;\n }\n }\n }\n\n @media only screen and (max-width: 768px) {\n width: 26px;\n height: 26px;\n\n .share-links {\n right: 1px;\n }\n }\n"]);return _templateObject=function(){return t},t}let w=d.ZP.button.withConfig({componentId:"sc-c4bb4de5-0"})(_templateObject());function ShareButton(t){let{url:e,image:n="",text:u="",shareIcon:d,iconsSize:m=10,ariaLabel:p,hidePlatforms:x=[],facebookIcon:h,twitterIcon:f,pinterestIcon:g,whatsappIcon:b,product:_,...v}=t,{isMobile:j}=(0,i.k)(),[C,y]=(0,a.useState)(""),z=(0,s.o)();return(0,r.jsx)(w,{onClick:()=>void(_&&z.shareLink(()=>({product:_})),j&&y(C?"":"show-mobile")),"aria-label":p,className:C,...v,children:(0,r.jsxs)("ul",{className:"share-links",children:[x.includes("facebook")?null:(0,r.jsx)("li",{children:(0,r.jsx)("a",{title:"Compartilhar no Facebook","aria-label":"Compartilhar no Facebook",target:"_blank",rel:"noopener noreferrer",href:c.qv(e),className:"share-links__content ".concat(l.zn.SHARED_LINK_FACEBOOK),children:(0,r.jsx)(o.X,{name:h||"facebook",size:m})})}),x.includes("twitter")?null:(0,r.jsx)("li",{children:(0,r.jsx)("a",{title:"Compartilhar no Twitter","aria-label":"Compartilhar no Twitter",target:"_blank",rel:"noopener noreferrer",href:c.km(e,u),className:"share-links__content ".concat(l.zn.SHARED_LINK_TWITTER),children:(0,r.jsx)(o.X,{name:f||"twitterFill",size:m})})}),x.includes("pinterest")?null:(0,r.jsx)("li",{children:(0,r.jsx)("a",{title:"Compartilhar no Pinterest","aria-label":"Compartilhar no Pinterest",target:"_blank",rel:"noopener noreferrer",href:c.Ws(e,n,u),className:"share-links__content ".concat(l.zn.SHARED_LINK_PINTEREST),children:(0,r.jsx)(o.X,{name:g||"pinterest",size:m})})}),x.includes("whatsapp")?null:(0,r.jsx)("li",{children:(0,r.jsx)("a",{title:"Compartilhar no WhatsApp","aria-label":"Compartilhar no WhatsApp",target:"_blank",rel:"noopener noreferrer",href:c.tv(e,u),className:"share-links__content ".concat(l.zn.SHARED_LINK_WHATSAPP),children:(0,r.jsx)(o.X,{name:b||"whatsappLight",size:m})})}),(0,r.jsx)("li",{className:"".concat(l.zn.SHARED_LINK_SCHUTZ," share-opener"),children:(0,r.jsx)("span",{className:"share-links__content opener-icon",children:(0,r.jsx)(o.X,{name:d||"arrowShare",size:m})})})]})})}},52070:function(t,e,n){"use strict";n.d(e,{e:function(){return SimpleAccordion}});var r=n(85893),a=n(67294),o=n(25935),l=n(42473);function SimpleAccordion(t){let{description:e,title:n,descriptionDataTestId:i="",detailsDataTestId:s="",summaryDataTestId:c="",descriptionClassName:u,detailsClassName:d,summaryClassName:w,iconClassName:m,iconComponent:p,renderToggleIcon:x}=t,[h,f]=(0,a.useState)(!1);return(0,r.jsxs)("details",{className:d,"data-testid":s,open:h,onToggle:()=>f(t=>!t),children:[(0,r.jsxs)("summary",{className:w,"data-testid":c,children:[(0,o.ZP)(n),p?(0,r.jsx)(r.Fragment,{children:p}):x?x(h):(0,r.jsx)(l.X,{"aria-label":"\xcdcone de seta",name:"arrowDown",className:m,size:11})]}),(0,r.jsx)("p",{className:u,"data-testid":i,children:(0,o.ZP)(e)})]})}},78951:function(t,e,n){"use strict";n.d(e,{n:function(){return Video}});var r=n(85893),a=n(67294),o=n(5152),l=n.n(o),i=n(41664),s=n.n(i),c=n(20256),u=n(42473),d=n(65856),w=n(59492),m=n(62854),p=n(6783),x=n(37340);function _templateObject(){let t=(0,x._)(["\n position: relative;\n height: 100%;\n\n > .video-icon {\n position: absolute;\n top: 50%;\n left: 50%;\n transform: translate(-50%, -50%);\n }\n"]);return _templateObject=function(){return t},t}function _templateObject1(){let t=(0,x._)(["\n position: relative;\n height: 100%;\n z-index: ",";\n\n > iframe {\n pointer-events: none;\n position: absolute;\n top: 0;\n left: 0;\n }\n\n .video-player {\n animation: fade-in 0.5s linear;\n }\n\n .video-player-wrapper {\n clip-path: inset(0 1px 1px 0);\n height: 100%;\n display: block;\n width: 100%;\n\n @media only screen and (max-width: 768px) {\n clip-path: unset;\n }\n\n div > video {\n filter: brightness(1);\n }\n\n &.is-visible {\n opacity: 1;\n }\n\n &.is-hidden {\n opacity: 0;\n }\n\n &.is-touchable {\n iframe {\n pointer-events: none;\n }\n }\n\n &.is-absolute {\n position: absolute;\n }\n }\n\n .button {\n position: absolute;\n top: 0;\n width: 100%;\n height: 100%;\n background: none;\n border: none;\n cursor: pointer;\n display: flex;\n align-items: center;\n justify-content: center;\n }\n\n .video-icon {\n border-radius: 50%;\n }\n"]);return _templateObject1=function(){return t},t}let h=c.ZP.div.withConfig({componentId:"sc-da0127fc-0"})(_templateObject()),f=c.ZP.div.withConfig({componentId:"sc-da0127fc-1"})(_templateObject1(),t=>t.layer),g=l()(()=>Promise.all([n.e(2422),n.e(8502)]).then(n.bind(n,56310)),{loadableGenerated:{webpack:()=>[56310]},ssr:!1}),b={AUTO:"auto",LOWER:-1};function Video(t){let{options:e={},className:n,thumbnail:o,isTouchable:l=!1,shouldUseCustomControl:i=!1,onVideoReady:x,controlButtonConfigs:_={},audioButtonConfigs:v={},linkUrl:j,classNameWrapper:C,onVideoProgress:y,onVideoStart:z,outerClassName:N,shouldUsePreview:S=!0}=t,k=(0,c.Fg)(),T="video-player-wrapper ".concat(C," ").concat(l?"is-touchable":""," "),[E,I]=(0,a.useState)({hasStartedPlaying:!1,isPlaying:!1,isPaused:!1});function renderPlayButton(){return(0,r.jsx)(u.X,{name:"playButton",size:60,mobileSize:40,className:"video-icon",fillColor:k.colors.video.iconBackground})}let[O,P]=(0,a.useState)({volume:0,muted:!0,loop:!0,width:"100%",height:"auto",playIcon:renderPlayButton(),playsinline:!0,fallback:(0,r.jsx)(d.a,{}),config:{file:{attributes:{poster:function(){if(!S)return!1;let t=(0,p.zE)(e.url);return o||"".concat(w.Z.THUMBNAIL).concat(t)}()}},vimeo:{playerOptions:{responsive:!0}}},onReady:function(){null==x||x()},onStart:function(){null==z||z(),I({...E,hasStartedPlaying:!0})},onPlay:function(){I(t=>({...t,isPlaying:!0,isPaused:!1}))},onPause:function(){I(t=>({...t,isPlaying:!1,isPaused:!0}))},onProgress:function(t){null==y||y(t)},...e}),A=(0,a.useCallback)(t=>{P(e=>({...e,...t}))},[]);function handleCustomControl(t){t.preventDefault();let{hasStartedPlaying:e,isPaused:n,isPlaying:r}=E;e&&n&&A({playing:!0}),e&&r&&A({playing:!1})}function renderVideoContent(){return(0,r.jsx)(f,{layer:function(){let{hasStartedPlaying:t}=E;return i&&t?b.LOWER:b.AUTO}(),className:"outer-video-container ".concat(N),children:(0,r.jsx)("div",{className:T.trim(),children:(0,r.jsx)(g,{className:n,...O})})})}function renderVideoContainer(){return j?(0,r.jsx)(s(),{href:j,prefetch:!1,children:renderVideoContent()}):renderVideoContent()}function handleMutedConfig(t){t.preventDefault(),P(t=>({...t,muted:!t.muted,volume:t.muted?1:0}))}return(0,a.useEffect)(()=>{A(e)},[e,A]),i?(0,r.jsxs)(h,{onClick:handleCustomControl,children:[i?E.isPaused?e.playIcon||renderPlayButton():e.pauseIcon||(0,r.jsx)(u.X,{name:"pauseVideo",size:60,mobileSize:40,className:"video-icon",fillColor:k.colors.video.iconBackground}):null,renderVideoContainer()]}):(0,r.jsxs)(r.Fragment,{children:[renderVideoContainer(),function(){let{iconSize:t={PLAY:24,PAUSE:24},className:e="",pausedClassName:n="is-paused",shouldRenderControlButton:a=!1}=_;if(!a)return null;let{isPaused:o}=E,l=o?t.PLAY:t.PAUSE,i=o?n:"",s=o?"Play video":"Pausar video";return(0,r.jsx)("button",{onClick:handleCustomControl,className:(0,m.C$)({_common:"control-button ".concat(e," ").concat(i).trim(),alexandre_birman:"tw-absolute"}),"aria-label":s,title:s,children:(0,r.jsx)(u.X,{name:o?"playVideo":"pauseVideo",size:l,className:(0,m.C$)({alexandre_birman:"tw-text-mirage"})})})}(),function(){let{iconSize:t={ON:20,OFF:23},className:e="",mutedClassName:n="is-muted",shouldRenderAudioButton:a=!1}=v;if(!a)return null;let{muted:o}=O,l=o?t.OFF:t.ON,i=o?n:"",s=o?"Ativar som":"Desativar som";return(0,r.jsx)("button",{onClick:handleMutedConfig,className:(0,m.C$)({_common:"audio-button ".concat(e," ").concat(i).trim(),arezzo:"tw-absolute tw-bottom-5 tw-right-5 tw-flex tw-size-14\n tw-items-center tw-justify-center tw-rounded-full tw-border-0\n tw-bg-zorba-dark/80",alexandre_birman:"tw-absolute"}),"aria-label":s,title:s,children:(0,r.jsx)(u.X,{name:o?"audioOff":"audioOn",size:l,className:(0,m.C$)({alexandre_birman:"tw-text-mirage"})})})}()]})}},51744:function(t,e,n){"use strict";n.d(e,{x:function(){return WalletGuard}});var r=n(67294),a=n(11163),o=n(59492),l=n(11356),i=n(79560);let WalletGuard=t=>{let{children:e}=t,{user:n,isLoadingUser:s}=(0,l.aC)(),{isWalletEnabled:c,isLoadingWebParameters:u}=(0,i.m4)(),[d,w]=(0,r.useState)(!1),m=(0,a.useRouter)(),p=!u&&!c;return p&&!d?(w(!0),m.replace(o.Z.HOME),null):!(!s&&n)||u||p?null:e}},84773:function(t,e,n){"use strict";n.d(e,{Z:function(){return WalletRedirectGuard}});var r=n(11163),a=n(59492),o=n(11356);let WalletRedirectGuard=t=>{let{children:e}=t,{user:n,isLoadingUser:l}=(0,o.aC)(),i=(0,r.useRouter)(),{pathname:s}=i,c=s===a.Z.WALLET.REGISTER,u=!l&&n,d=u&&(null==n?void 0:n.cpfHasWallet)&&!(null==n?void 0:n.hasWallet),w=u&&!(null==n?void 0:n.hasWallet)&&!c,m=u&&(null==n?void 0:n.hasWallet)&&c;return d?(i.replace(a.Z.MY_ACCOUNT.INDEX),null):w?(i.replace(a.Z.WALLET.REGISTER),null):m?(i.replace(a.Z.WALLET.EXTRACT),null):u?e:null}},72902:function(t,e,n){"use strict";var r,a,o,l;n.d(e,{d:function(){return a},s:function(){return r}}),(o=r||(r={})).COLORS="color",o.SIZE="size",o.SHOE_SIZE="shoeSize",o.ACCESSORIES_SIZE="accessoriesSize",o.CLOTHES_SIZE="clothesSize",o.CATEGORY="category",o.GENDER="gender",o.STYLE="style",o.PANTS_STYLE="pantsStyle",o.SHOES_STYLE="shoesStyle",o.CATEGORY_TREE="fullCategoryTree",o.PRICE="price",(l=a||(a={})).APPLIED="applied",l.SELECT="select"},38905:function(t,e,n){"use strict";n.d(e,{o:function(){return r}});let r="ZZAB Com\xe9rcio de Cal\xe7ados Ltda. | Rua \xc1frica do Sul, 2280. Padre Mathias, Cariacica/ES. CEP: 29157-900 | CNPJ: 07.900.208/0077-04"},67729:function(t,e,n){"use strict";n.d(e,{s:function(){return r}});let r={NEWSLETTER:{ID:"914389262"}}},43643:function(t,e,n){"use strict";n.d(e,{O:function(){return useCurrentPosition}});var r=n(67294);function useCurrentPosition(){let[t,e]=(0,r.useState)({latitude:0,longitude:0}),[n,a]=(0,r.useState)(""),[o,l]=(0,r.useState)(!0),onGetPosition=t=>{let{coords:n}=t;l(!1),a(""),e({latitude:n.latitude,longitude:n.longitude})},handleError=()=>{a("Compartilhamento de posi\xe7\xe3o n\xe3o permitido"),l(!1)};return(0,r.useEffect)(()=>{let t=navigator.geolocation;if(!t){handleError();return}t.getCurrentPosition(t=>onGetPosition(t),handleError)},[]),{position:t,error:n,isLoading:o}}},41553:function(t,e,n){"use strict";n.d(e,{m:function(){return useFilters}});var r=n(67294),a=n(72902),o=n(22564);function transformBreadcrumbToQuery(t){let{breadcrumb:e,isBreadcrumbSelected:n=!1}=t,{facetCode:r,facetValueCode:o}=e,l=r===a.s.SIZE,i=decodeURI(encodeURIComponent(o)).replaceAll(" ","+"),s=":".concat(r,":").concat(i);if(l&&n){let t="".concat(s).concat("(%2F\\d)?");return RegExp(t,"g")}return s}let useFilters=()=>{let{results:t}=(0,o.C)(),{pagination:{sort:e}}=t,[n,l]=(0,r.useState)([]),[i,s]=(0,r.useState)(""),[c,u]=(0,r.useState)(!1),d=(0,r.useCallback)(t=>{l([...t])},[]),w=(0,r.useCallback)(t=>{s(t)},[]);function addBreadcrumb(t){l([...n,t])}function addQuery(t){s(i+t)}function getIsSelectedBreadcrumb(t){return n.some(e=>e.facetValueCode===t)}return{addQuery,addInitialQuery:w,addOrRemoveQuery:function(t){let r=getIsSelectedBreadcrumb(t.facetValueCode);if(r){let r=n.filter(e=>e.facetValueCode!==t.facetValueCode),a=":".concat(e).concat(r.map(t=>transformBreadcrumbToQuery({breadcrumb:t})).join(""));l(r),s(a)}else{let e=transformBreadcrumbToQuery({breadcrumb:t});addQuery(e),addBreadcrumb(t)}},addBreadcrumb,addInitialBreadcrumbs:d,getQuery:function(){return i},getBreadcrumbs:function(){return n},getIsSelectedBreadcrumb,hasBreadcrumb:function(){return n.length>0},getResetQuery:function(){let t=i;for(let e of n){let n=transformBreadcrumbToQuery({breadcrumb:e});t=t.replaceAll(n,"")}return t},transformBreadcrumbToQuery:transformBreadcrumbToQuery,setHasStoreFinderQueryMobile:u,getHasStoreFinderQueryMobile:function(){return c},getReplacedQuery:function(t){let e=t.facetCode===a.s.SIZE,n=t.facetCode==a.s.CATEGORY_TREE,r=t.removeQuery.query.value,o=e?r.split("%3B")[0]:r,l=getIsSelectedBreadcrumb(t.facetValueCode),i=transformBreadcrumbToQuery({breadcrumb:t,isBreadcrumbSelected:l}),s=l&&!n?o.replaceAll(i,""):o;return s},getIsSomeChildFacetValueSelected:function getIsSomeChildFacetValueSelected(t){let{facetValue:e,getIsSelected:n}=t;if(!e.hasChildren)return!1;let r=e.children.some(t=>n(t.code)),a=e.children.some(t=>getIsSomeChildFacetValueSelected({facetValue:t,getIsSelected:n}));return r||a}}}},83256:function(t,e,n){"use strict";n.d(e,{u:function(){return useNewsletter}});var r=n(67294),a=n(87536),o=n(55861);let l={...o.vm,INVALID_EMAIL_ERROR_MESSAGE:"Esse e-mail \xe9 inv\xe1lido",EMPTY_EMAIL_ERROR_MESSAGE:"Campo obrigat\xf3rio"};var i=n(14908),s=n(47429);let c={email:"email",name:"name",phoneNumber:"phoneNumber",gender:"gender",acceptSms:"acceptSms"};function useNewsletter(t){let{autoReset:e=!1,shouldUseResponsys:n=!1,isNameRequired:o=!1,isPhoneNumberRequired:u=!1,isGenderRequired:d=!1,contactListId:w}=t||{},[m,p]=(0,r.useState)(!1),[x,h]=(0,r.useState)(!1),{register:f,handleSubmit:g,formState:{errors:b},getValues:_,reset:v,clearErrors:j,setError:C}=(0,a.cI)({mode:"onSubmit",reValidateMode:"onSubmit",defaultValues:{phoneNumber:""}});(0,r.useEffect)(()=>{let t=e&&x&&!m;t&&setTimeout(()=>{h(!1)},5e3)},[e,x,m]);let y=f(c.name,{onChange:()=>j(c.name),required:{value:o,message:l.EMPTY_NAME_ERROR_MESSAGE}}),z=f(c.email,{onChange:()=>j(c.email),required:{value:!0,message:l.EMPTY_EMAIL_ERROR_MESSAGE},pattern:{value:i.m.EMAIL,message:l.INVALID_EMAIL_ERROR_MESSAGE}}),N=f(c.phoneNumber,{onChange:()=>j(c.phoneNumber),required:{value:u,message:l.EMPTY_PHONE_ERROR_MESSAGE},pattern:{value:i.m.PHONE_NUMBER,message:l.INVALID_PHONE_ERROR_MESSAGE}}),S=f(c.gender,{onChange:()=>j(c.gender),required:{value:d,message:l.EMPTY_GENDER_ERROR_MESSAGE}}),k=f(c.acceptSms,{onChange:()=>j(c.acceptSms)}),T=g(createSubscriber);async function createSubscriber(t){p(!0);let{email:e,gender:r,name:a,phoneNumber:o,acceptSms:i}=t,c=await (n?s.B.createSubscriber({email:e,gender:r}):s.B.createEmarsysSubscriber({firstName:a,email:e,phoneNumber:o,gender:r,contactListId:w,acceptNews:i})),{hasError:u,errors:d}=c;if(p(!1),u){var m,x;if(null==d?void 0:null===(m=d[0])||void 0===m?void 0:m.message){C("email",{message:null==d?void 0:null===(x=d[0])||void 0===x?void 0:x.message});return}C("email",{message:l.DEFAULT_ERROR_MESSAGE}),h(!1);return}j(),h(!0),v()}return{isLoading:m,hasSuccess:x,registerName:y,registerEmail:z,registerPhone:N,registerGender:S,registerAcceptSms:k,errors:b,onSubmit:T,clearErrors:j,getValues:_,reset:v}}},64633:function(t,e,n){"use strict";n.d(e,{M:function(){return i}});var r=n(43740),a=n(18187),o=n(23455),l=n(45613);let getStores=async t=>{let e=await l.hi.get("/stores?query=".concat(t));return(0,o.m9)(e.data,t=>(0,r.a)(t))},getStoresByCoords=async t=>{let{latitude:e,longitude:n}=t,a=await l.hi.get("/stores?latitude=".concat(e,"&longitude=").concat(n));return(0,o.m9)(a.data,t=>(0,r.a)(t))},getAllStoresWithPageSize=async t=>{let e=await l.hi.get("/stores?pageSize=".concat(t));return(0,o.m9)(e.data,t=>(0,r.a)(t))},getStoreFinderPage=async()=>{let t=await l.hi.get("cms/pages/storefinderHeadlessPage?fields=DEFAULT");return(0,o.m9)(t.data,t=>{var e;return(0,a.W)((null===(e=t.contentSlots)||void 0===e?void 0:e.contentSlot)||[])})},i={getStores,getStoresByCoords,getAllStoresWithPageSize,getStoreFinderPage}},830:function(t,e,n){"use strict";function formatTestId(t){let e=t.toLowerCase().trim();return e.replace(/r\$ /g,"").replace(/ /g,"-").replace(/---/g,"-")}n.d(e,{c:function(){return formatTestId}})},7538:function(t,e,n){"use strict";n.d(e,{_:function(){return replaceScriptNode},q:function(){return replaceScriptNodeOnEveryMount}});var r=n(85893),a=n(16180);let o={HEADER_CLASS_NAME:"brandHeader"};var l=n(5762);function shouldRemoveNode(t){var e;let n=null===(e=t.attribs)||void 0===e?void 0:e.class;return!!n&&Object.values(o).includes(n)}let replaceScriptNode=t=>{if(shouldRemoveNode(t))return(0,r.jsx)(r.Fragment,{});if("script"===t.type){let e=t.attribs.src,n=t.children.map(t=>t.data).join(""),o=t.attribs.type||"text/javascript",i=t.attribs.id||(0,l.S)((e||n).slice(-30)),s=t.attribs.hasOwnProperty("after-interactive"),c=(null==e?void 0:e.includes("vendor"))||!1,u=s||c;return(0,r.jsx)(a.J,{type:o,src:e,id:i,strategy:u?"afterInteractive":"lazyOnload",...u?{}:{async:!0},children:n})}return t},replaceScriptNodeOnEveryMount=t=>{if(shouldRemoveNode(t))return(0,r.jsx)(r.Fragment,{});if("script"!==t.type)return t;let e=document.createElement("script");return e.async=!1,t.attribs.src&&(e.src=t.attribs.src),t.children.length>0&&(e.innerHTML=t.children.map(t=>t.data).join("")),setTimeout(()=>{let t=document.querySelector('script[src="'.concat(e.src,'"]'));t&&t.remove(),document.head.append(e)}),(0,r.jsx)(r.Fragment,{})}},1646:function(t){t.exports={carousel:"styles_carousel__aNTKG",root:"styles_root__owch5"}}}]);