"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8025],{2177:function(e,t,n){n.d(t,{_:function(){return ProductBenefits}});var r=n(85893),a=n(67294),l=n(5632),o=n(68460),s=n(93804),c=n(62854);function ProductBenefits(e){var t,n;let{className:i="",carouselOptions:w={},product:u,defaultStyles:d}=e,[m,h]=(0,a.useState)(0),{benefits:p,colorOptions:x}=u,f=null==p?void 0:null===(n=p[m])||void 0===n?void 0:null===(t=n.style)||void 0===t?void 0:t.contentColor,g=p.length>1;function renderSimpleContent(e){let{style:t,text:n}=e,a=n.replace(/\\n/g,"\n");return(0,r.jsx)("div",{className:(0,c.C$)({_common:"tw-flex tw-justify-center tw-px-4 tw-py-2 tw-text-center\n tw-text-xs lg:tw-mb-6",arezzo:"tw-items-center",schutz:"tw-size-full lg:tw-mb-0",vans:"tw-size-full tw-bg-porcelain lg:tw-mb-0 ".concat(g?"tw-px-7":"tw-px-3"),anacapri:"tw-size-full tw-rounded-3xl tw-py-3 lg:tw-mb-0 ".concat(g?"tw-px-10":"tw-px-2"),vicenza:"tw-m-0 tw-bg-porcelain tw-text-black-olive lg:tw-m-0"}),style:function(e,t){let{backgroundColor:n,contentColor:r}=e;return{backgroundColor:n||(null==t?void 0:t.backgroundColor)||s.H.BLACK,color:r||(null==t?void 0:t.color)||s.H.WHITE}}(t,d),children:(0,r.jsx)("p",{className:(0,c.C$)({_common:"tw-line-clamp-2 tw-whitespace-pre-line",schutz:"tw-flex tw-items-center tw-justify-center tw-px-2.5 tw-uppercase",vans:"tw-flex tw-items-center tw-text-base tw-font-normal",anacapri:"tw-flex tw-size-full tw-items-center tw-justify-center\n tw-text-center lg:tw-mb-0",vicenza:"tw-self-center"}),children:a})})}return 0===p.length?null:g?(0,r.jsx)(o.l,{onMove:h,style:{"--content-color":f||"currentColor"},prevButtonProps:{style:{color:f||(null==d?void 0:d.color)}},nextButtonProps:{style:{color:f||(null==d?void 0:d.color)}},className:i,options:w,children:p.map(e=>(0,r.jsx)(l.q,{className:"tw-h-auto [&>div]:tw-h-full",children:renderSimpleContent(e)},e.text))}):(0,r.jsx)("div",{className:(0,c.C$)({_common:"lg:tw-mb-6",vicenza:"tw-my-6",schutz:"lg:tw-mb-0",vans:x.length>0?"lg:tw-mb-0":"lg:tw-mb-6"}),children:renderSimpleContent(p[0])})}},66006:function(e,t,n){n.d(t,{F:function(){return SchemaTags}});var r=n(85893);let a="http://schema.org",getCurrentDateMoreThreeDays=()=>{let e=new Date;return e.setDate(e.getDate()+3),e.toLocaleDateString("pt-BR")},getAvailabilityUrl=function(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return t?"".concat(a,"/PreOrder"):e?"".concat(a,"/InStock"):"".concat(a,"/OutOfStock")},getOfferData=e=>{let{availability:t,price:n,sku:r}=e;return{"@type":"Offer",availability:t,sku:r,price:n.toString(),priceValidUntil:getCurrentDateMoreThreeDays(),priceCurrency:"BRL"}},getAggregateOffer=e=>{let{availability:t,colorOptions:n,finalPrice:r}=e,a=n.length-1,l=n.slice(1,n.length);return{"@type":"AggregateOffer",lowPrice:r.toString(),highPrice:r.toString(),offerCount:a,priceCurrency:"BRL",offers:l.map(e=>getColorProductData(e,t,r))}},getVariantProductData=e=>{let{variant:t,vendors:n}=e,{code:r,priceData:a,discountPrice:l,sellable:o,stock:s}=t,{isPreOrder:c,nextDeliveryDate:i}=s,{value:w}=a,{value:u}=l,d=getAvailabilityUrl(o,c),m=getOfferData({availability:d,price:u||w,sku:r});return c&&(m.availabilityStarts=i),n.length>0&&(m.seller={"@type":"Organization",name:n[0].name}),m},getColorProductData=(e,t,n)=>{let{code:r}=e;return{"@type":"Offer",availability:t,sku:"".concat(r,"-UN"),price:n.toString(),priceValidUntil:getCurrentDateMoreThreeDays(),priceCurrency:"BRL"}},getOffersAttribute=e=>{var t,n;let{variantOptions:r,colorOptions:a,price:l,baseOptions:o,sellable:s,vendors:c,discountPrice:i}=e,w=r.length>1;if(w)return r.map(e=>getVariantProductData({variant:e,vendors:c}));let u=a.length>0,d=getAvailabilityUrl(s),m=r.length>0?null===(t=r[0])||void 0===t?void 0:t.code:null===(n=o[0])||void 0===n?void 0:n.selected.code,{value:h}=l,{value:p}=i,x=p||h,f=getOfferData({availability:d,price:x,sku:m});if(u){let e=[f,getAggregateOffer({availability:d,colorOptions:a,finalPrice:x})];return e}return[f]},getContextData=e=>{let{code:t,color:n,description:r,name:a,primaryImage:l,url:o}=e,s="".concat("https://www.anacapri.com.br").concat(o);return{"@context":"https://schema.org/","@type":"Product",description:r,name:a,url:s,image:l.url,itemCondition:"https://schema.org/NewCondition",sku:t,color:n,offers:getOffersAttribute(e)}};function SchemaTags(e){let{marketplaceBrand:t}=e,n=getContextData(e);t.name&&(n.brand={"@type":"Brand",name:t.name});let a=JSON.stringify(n);return(0,r.jsx)("script",{id:"schema-tags",type:"application/ld+json",dangerouslySetInnerHTML:{__html:a}})}},2782:function(e,t,n){n.d(t,{P:function(){return Select}});var r=n(85893),a=n(62854);function Select(e){let{children:t,onChange:n,className:l="",ariaLabel:o,register:s,id:c,tabIndex:i,placeholder:w,onFocus:u,onBlur:d,disabled:m,label:h,defaultValue:p,dataTestId:x}=e;return(0,r.jsxs)("div",{className:"tw-flex tw-flex-col",children:[h?(0,r.jsx)("label",{className:(0,a.C$)({_common:"tw-my-[5px] tw-text-xs tw-font-bold tw-uppercase tw-tracking-wider",schutz:"tw-mx-0 tw-my-1 tw-font-normal tw-normal-case"}),children:h}):null,(0,r.jsx)("select",{className:(0,a.C$)({_common:"tw-h-9 tw-rounded-none tw-border-b tw-border-b-waterloo\n tw-bg-white tw-text-black focus:tw-outline-none ".concat(m?"tw-opacity-50":"tw-opacity-100","\n ").concat(l),schutz:"tw-border tw-border-schutz-black tw-px-1 tw-text-schutz-black"}),"aria-label":o,id:c,tabIndex:i,defaultValue:p,placeholder:w,onChange:n,onFocus:u,onBlur:d,...s,disabled:m,"data-testid":x,children:t})]})}},88420:function(e,t,n){n.d(t,{H:function(){return WishGiftContent}});var r=n(85893),a=n(67294),l=n(87536),o=n(62604),s=n(18253),c=n(2782),i=n(41417),w=n(87808);let u={name:"Digite seu nome",email:"Coloque seu e-mail",phone:"(__) _____-____",targetPhone:"(__) _____-____"},d={},m={name:"Digite seu nome",email:"Informe seu e-mail",targetPhone:"Informe o telefone de quem ir\xe1 presentear voc\xea",phone:"Informe o seu telefone",message:"Mensagem:",size:"Selecione o tamanho"},h={name:"Nome obrigat\xf3rio",email:"E-mail obrigat\xf3rio",invalidEmail:"E-mail inv\xe1lido",phone:"Telefone obrigat\xf3rio",invalidPhone:"Telefone inv\xe1lido",size:"Selecione um tamanho de cal\xe7ado"};var p=n(93001),x=n(14908),f=n(47429),g=n(78069),v=n(62854),b=n(24998),z=n(43550),C=n(75260);function WishGiftContentLabel(e){let{label:t,htmlFor:n}=e;return t?(0,r.jsx)(C._,{className:(0,v.C$)({_common:"tw-mb-2 tw-text-xs",schutz:"tw-mb-1 tw-font-normal tw-normal-case",anacapri:"tw-mb-1",arezzo:"tw-mb-2 tw-text-sm",vicenza:"tw-mb-0 tw-text-sm tw-text-pale-sky"}),htmlFor:n,children:t}):null}function WishGiftContentTitle(e){let{children:t}=e;return t?(0,r.jsx)("h3",{className:(0,v.C$)({_common:"tw-leading-tight",schutz:"tw-mt-4 tw-text-center tw-font-heading tw-text-2xl tw-uppercase\n tw-leading-7 tw-tracking-tighter",anacapri:"tw-pr-10 tw-text-base",arezzo:"tw-mx-auto tw-text-center tw-text-lg tw-uppercase md:tw-max-w-80",vicenza:"tw-pb-1 tw-text-center tw-text-base tw-font-medium"}),children:t}):null}function WishGiftContentSubtitle(e){let{children:t}=e;return t?(0,r.jsx)("h4",{className:(0,v.C$)({_common:"tw-text-center tw-text-sm",schutz:"tw-leading-6",arezzo:"tw-my-4 tw-w-full tw-text-xl tw-uppercase",vicenza:"tw-my-1 tw-w-full tw-text-pale-sky"}),children:t}):null}var _=n(35131),S=n(91474);function WishGiftContentDecorator(){let e=(0,S.k)(_.BrandId.Anacapri);return e?(0,r.jsx)("span",{className:"text-xs tw-h-[3px] tw-w-24 tw-rounded-full tw-bg-torch-red"}):null}function WishGiftContentDescription(e){let{children:t}=e;return t?(0,r.jsx)("p",{className:(0,v.C$)({anacapri:"tw-text-xs",arezzo:"tw-mx-auto tw-max-w-96 tw-text-center tw-text-sm"}),children:t}):null}function WishGiftContentHeader(e){let{headerTitle:t,headerSubTitle:n,headerDescription:a}=e;return t?(0,r.jsxs)("div",{className:(0,v.C$)({_common:"tw-mb-8 tw-flex tw-flex-col",schutz:"tw-mb-6 tw-gap-4 tw-text-schutz-black",anacapri:"tw-mb-4 tw-gap-2",vicenza:"tw-mb-4",arezzo:"tw-px-7 lg:tw-px-0"}),children:[(0,r.jsx)(WishGiftContentTitle,{children:t}),(0,r.jsx)(WishGiftContentSubtitle,{children:n}),(0,r.jsx)(WishGiftContentDecorator,{}),(0,r.jsx)(WishGiftContentDescription,{children:a})]}):null}var N=n(41664),k=n.n(N),y=n(59492);function WishGiftContentSuccessIcon(e){let{iconSuccessWishGift:t}=e;return t?(0,r.jsx)("div",{className:(0,v.C$)({vicenza:"tw-text-fun-green"}),children:t}):null}function WishGiftContentSuccess(e){let{isFormSentSuccessfully:t,handleClickSuccessMessage:n,iconSuccessWishGift:a,successTitle:l="Mensagem enviada",successSubTitle:o}=e;return t?(0,r.jsxs)("div",{className:(0,v.C$)({_common:"tw-flex tw-flex-col tw-items-center tw-justify-center",arezzo:"tw-w-full",schutz:"tw-mt-10"}),children:[(0,r.jsx)(WishGiftContentSuccessIcon,{iconSuccessWishGift:a}),(0,r.jsx)("h3",{className:(0,v.C$)({schutz:"tw-mt-4 tw-w-full tw-text-center tw-text-lg tw-font-bold\n tw-leading-6",arezzo:"tw-my-4 tw-text-center tw-text-lg tw-uppercase",vicenza:"tw-mb-2 tw-mt-5 tw-text-center tw-text-xl tw-uppercase"}),children:l}),(0,r.jsx)("h4",{className:(0,v.C$)({arezzo:"tw-mt-2 tw-text-center tw-text-base tw-uppercase",vicenza:"tw-text-center tw-text-pale-sky"}),children:o}),(0,r.jsxs)("p",{className:(0,v.C$)({schutz:"tw-mt-4 tw-text-center tw-text-sm tw-leading-5",arezzo:"tw-mx-auto tw-mb-10 tw-mt-4 tw-text-center tw-text-base\n md:tw-max-w-60",vicenza:"tw-hidden tw-text-pale-sky"}),children:[g.T.WISH_GIFT_FORM_SUCCESS_MESSAGE," ",g.T.BRAND_NAME,"."]}),(0,r.jsx)(k(),{className:(0,v.C$)({schutz:"tw-mt-6 tw-w-full",vicenza:"tw-w-full"}),href:y.Z.CATEGORY_NEWS,passHref:!0,children:(0,r.jsx)(w.z,{onClick:n,shouldGrow:!0,className:(0,v.C$)({arezzo:"tw-w-full tw-uppercase",schutz:"tw-uppercase"}),children:g.T.WISH_GIFT_FORM_SUCCESS_BUTTON_TEXT})})]}):null}let j={nameUser:"nameUser",emailUser:"emailUser",phoneFriend:"phoneFriend",phoneUser:"phoneUser",productSize:"productSize",newsletter:"newsletter"};function WishGiftContent(e){let{product:t,campaignName:n,contactListId:C,customInputLabels:_,contentClassName:S,customInputPlaceholders:N,customMessage:k,customSizeText:y,headerDescription:$,headerSubTitle:E,headerTitle:M,iconSuccessWishGift:T,isEmailRequired:G,shouldRenderSizeError:F,shouldSendEmarsys:O,successSubTitle:U,variantOptionsClassName:W,defaultChecked:A,shouldRenderSelectOptions:D=!1,shouldRenderFeedbackComponent:L=!1,successTitle:P,onSuccess:I,setIsOpen:R,...B}=e,{variantOptions:H}=t,q=document.URL,[V,Q]=(0,a.useState)(""),[X,J]=(0,a.useState)(!1),K={...u,...N},Y={...m,..._};function renderTextSize(){return 0===V.length?"":y?" ".concat(y," ").concat(V):" Eu uso ".concat(V,".")}let Z=k?"".concat(k+renderTextSize()):"Hey! Estava olhando o site da ".concat(g.T.BRAND_NAME," e A-M-E-I este produto ").concat(q,". Fica a dica de presente! <3 Xoxo. ").concat(renderTextSize()),{register:ee,handleSubmit:et,reset:en,clearErrors:er,setError:ea,formState:{errors:el}}=(0,l.cI)({shouldFocusError:!1,reValidateMode:"onSubmit"});function getErrorMessage(e){var t;return(null===(t=el[e])||void 0===t?void 0:t.message)||""}function handleClickSizeOption(e){Q(e),er(j.productSize)}return(0,r.jsx)("div",{className:(0,v.C$)({_common:"tw-flex tw-flex-col ".concat(X?"tw-items-center tw-justify-center [height:calc(100%-60px)]":""),schutz:"tw-w-full tw-items-start tw-justify-start tw-px-4"}),...B,children:(0,r.jsxs)("div",{className:"tw-flex tw-w-full tw-flex-col ".concat(S).trim(),children:[X?null:(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(WishGiftContentHeader,{headerTitle:M,headerSubTitle:E,headerDescription:$}),(0,r.jsxs)("form",{className:(0,v.C$)({_common:"tw-flex tw-flex-col tw-gap-y-2",schutz:"tw-gap-y-8",vicenza:"tw-gap-y-4",anacapri:"tw-gap-4"}),onSubmit:et(function(e){let{phoneFriend:t,emailUser:r="",phoneUser:a,newsletter:l,nameUser:o}=e,s=(0,b.wt)(t),c=!G||!!r,i=!!O&&c&&!!n&&!!l,w=!!O&&c&&!!C&&!!l;i&&f.B.createEmarsysSubscriber({email:r,phoneNumber:a,campaignName:n,acceptNews:!!l}),w&&f.B.createEmarsysContactList({email:r,contactListId:C,campaignName:n,name:o,phoneNumber:a,acceptNews:!!l});let u="".concat(p.h.WHATSAPP.BASE,"?text=").concat(Z,"&phone=+55").concat(s);if(window.open(u,"_blank"),en(),Q(""),I){I();return}J(!0)}),autoComplete:"off",children:[(0,r.jsxs)("div",{className:(0,v.C$)({_common:"tw-relative tw-flex tw-flex-col",schutz:"tw-order-1"}),children:[(0,r.jsx)(WishGiftContentLabel,{label:Y.name,htmlFor:j.nameUser}),(0,r.jsx)(o.I,{shouldRenderFeedbackComponent:L,placeholder:K.name,inputClassName:(0,v.C$)({schutz:"".concat(el[j.nameUser]?"tw-border-schutz-accent":"tw-border-schutz-black"," tw-px-2 tw-text-xs placeholder:tw-text-schutz-neutral-medium placeholder:tw-text-xs"),anacapri:"tw-h-8 tw-px-3 tw-py-4 tw-text-sm"}),register:ee(j.nameUser,{required:{value:!0,message:h.name},pattern:{value:x.m.NAME,message:h.name}}),onFocus:()=>ea(j.nameUser,d),errorMessageClassName:(0,v.C$)({_common:"tw-mt-1 tw-absolute",schutz:"tw-text-schutz-accent"}),errorMessage:getErrorMessage(j.nameUser)})]}),G?(0,r.jsxs)("div",{className:(0,v.C$)({_common:"tw-relative tw-flex tw-flex-col",schutz:"tw-order-3"}),children:[(0,r.jsx)(WishGiftContentLabel,{label:Y.email,htmlFor:j.emailUser}),(0,r.jsx)(o.I,{shouldRenderFeedbackComponent:L,placeholder:K.email,inputClassName:(0,v.C$)({schutz:"".concat(el[j.emailUser]?"tw-border-schutz-accent":"tw-border-schutz-black"," tw-px-2 tw-text-xs placeholder:tw-text-schutz-neutral-medium placeholder:tw-text-xs"),anacapri:"tw-h-8 tw-px-3 tw-py-4 tw-text-sm"}),register:ee(j.emailUser,{required:{value:G,message:h.email},pattern:{value:x.m.EMAIL,message:h.invalidEmail}}),onFocus:()=>ea(j.emailUser,d),errorMessageClassName:(0,v.C$)({_common:"tw-mt-1 tw-absolute",schutz:"tw-text-schutz-accent"}),errorMessage:getErrorMessage(j.emailUser)})]}):null,(0,r.jsxs)("div",{className:(0,v.C$)({_common:"tw-relative tw-flex tw-flex-col",schutz:"tw-order-4"}),children:[(0,r.jsx)(WishGiftContentLabel,{label:Y.phone,htmlFor:j.phoneUser}),(0,r.jsx)(o.I,{shouldRenderFeedbackComponent:L,type:"tel",inputClassName:(0,v.C$)({schutz:"".concat(el[j.phoneUser]?"tw-border-schutz-accent":"tw-border-schutz-black"," tw-px-2 tw-text-xs placeholder:tw-text-schutz-neutral-medium placeholder:tw-text-xs placeholder:tw-tracking-[3px]"),anacapri:"tw-h-8 tw-px-3 tw-py-4 tw-text-sm"}),placeholder:K.phone,register:ee(j.phoneUser,{required:{value:!0,message:h.phone},pattern:{value:x.m.PHONE_NUMBER,message:h.invalidPhone}}),onFocus:()=>ea(j.phoneUser,d),mask:"(99) 99999-9999",errorMessageClassName:(0,v.C$)({_common:"tw-mt-1 tw-absolute",schutz:"tw-text-schutz-accent"}),errorMessage:getErrorMessage(j.phoneUser)})]}),1===H.length?null:(0,r.jsxs)("div",{className:(0,v.C$)({_common:"size tw-relative tw-flex tw-flex-col tw-justify-between",schutz:"tw-order-2"}),children:[(0,r.jsx)(WishGiftContentLabel,{label:Y.size,htmlFor:j.productSize}),D?(0,r.jsx)(c.P,{id:j.productSize,register:ee(j.productSize,{required:{value:!0,message:h.size},onChange:e=>handleClickSizeOption(e.currentTarget.value.slice(-2))}),className:(0,v.C$)({_common:"tw-m-0 tw-w-full tw-px-1 tw-pb-2 tw-pt-0 tw-text-base tw-text-black",schutz:"tw-text-schutz-black tw-px-2 tw-py-0 tw-text-xs"}),ariaLabel:"Tamanho",value:V,children:H.map(e=>e.sellable?(0,r.jsx)("option",{className:"tw-text-base",value:e.code,children:e.displayText},e.code):null)}):(0,r.jsx)("div",{className:(0,v.C$)({_common:W,anacapri:"tw-grid tw-grid-cols-4 tw-items-center tw-gap-2",arezzo:"tw-flex tw-flex-wrap tw-gap-2",vicenza:"tw-flex tw-flex-wrap tw-gap-4"}),children:H.map(e=>{let{displayText:t}=e,n=(null==el?void 0:el.productSize)?"tw-border-red-ribbon":"",l=(null==el?void 0:el.productSize)?"tw-text-upsdell-red":"";return(0,r.jsx)(a.Fragment,{children:(0,r.jsxs)("label",{className:(0,v.C$)({_common:"tw-relative tw-h-9 tw-cursor-pointer tw-px-4\n tw-py-2.5 tw-text-xs tw-font-medium",anacapri:"tw-text-sm tw-font-bold tw-text-pale-sky",vicenza:"tw-inline-flex"}),children:[(0,r.jsx)("input",{...ee(j.productSize,{required:!0}),name:j.productSize,type:"radio",id:t,value:t,onChange:()=>handleClickSizeOption(t),className:"tw-peer/size tw-opacity-0"}),(0,r.jsx)("span",{className:(0,v.C$)({_common:"tw-absolute tw-inset-0 tw-flex tw-size-full\n tw-items-center tw-justify-center",anacapri:"".concat(n," tw-rounded-3xl\n tw-border tw-border-spanish-gray\n peer-checked/size:tw-border-torch-red\n peer-checked/size:tw-bg-torch-red\n peer-checked/size:tw-text-white\n peer-focus/size:tw-border-torch-red"),arezzo:" ".concat(l," tw-h-8 tw-min-w-12\n tw-rounded-3xl tw-text-base peer-checked/size:tw-bg-dark\n peer-checked/size:tw-text-white peer-focus/size:tw-border\n peer-focus/size:tw-border-dark"),vicenza:" ".concat(l," tw-size-10 tw-border\n tw-border-black tw-text-base peer-checked/size:tw-bg-black\n peer-checked/size:tw-text-white")}),children:t})]})},t)})}),function(){let e=F&&el.productSize&&!V;return e?L?(0,r.jsx)(s.x,{type:z.n.Error,iconSize:12,text:h.size,className:"tw-absolute tw-mt-2"}):(0,r.jsx)("span",{className:(0,v.C$)({_common:"tw-mb-1 tw-mt-1 tw-text-xs",anacapri:"tw-text-red-ribbon",arezzo:"tw-text-upsdell-red"}),children:h.size}):null}()]}),(0,r.jsxs)("div",{className:(0,v.C$)({_common:"tw-relative tw-flex tw-flex-col",schutz:"tw-order-5"}),children:[(0,r.jsx)(WishGiftContentLabel,{label:Y.targetPhone,htmlFor:j.phoneFriend}),(0,r.jsx)(o.I,{shouldRenderFeedbackComponent:L,type:"tel",inputClassName:(0,v.C$)({schutz:"".concat(el[j.phoneFriend]?"tw-border-schutz-accent":"tw-border-schutz-black"," tw-px-2 tw-text-xs placeholder:tw-text-schutz-neutral-medium placeholder:tw-text-xs placeholder:tw-tracking-[3px]"),anacapri:"tw-h-8 tw-px-3 tw-py-4 tw-text-sm"}),placeholder:K.targetPhone,register:ee(j.phoneFriend,{required:{value:!0,message:h.phone},pattern:{value:x.m.PHONE_NUMBER,message:h.invalidPhone}}),onFocus:()=>ea(j.phoneFriend,d),mask:"(99) 99999-9999",errorMessageClassName:(0,v.C$)({_common:"tw-mt-1 tw-absolute",schutz:"tw-text-schutz-accent"}),errorMessage:getErrorMessage(j.phoneFriend)})]}),(0,r.jsxs)("div",{className:(0,v.C$)({_common:"tw-flex tw-flex-col",schutz:"tw-order-6"}),children:[(0,r.jsx)(WishGiftContentLabel,{label:Y.message,htmlFor:"message"}),(0,r.jsx)("textarea",{id:"message",rows:6,placeholder:Z,className:(0,v.C$)({_common:"tw-resize-none tw-border\n tw-border-spanish-gray-lighter tw-px-1.5 tw-py-3 tw-text-sm\n tw-outline-none",anacapri:"tw-rounded-2xl tw-px-2 focus:tw-border-black",arezzo:"tw-mb-4 tw-rounded-2xl tw-border-black tw-px-2",vicenza:"tw-mb-4 tw-h-36 tw-border-iron tw-text-base tw-leading-4",schutz:"tw-text-xs"}),value:Z})]}),(0,r.jsx)("div",{className:(0,v.C$)({_common:"tw-flex tw-h-3.5 tw-w-full",schutz:"tw-order-7"}),children:(0,r.jsxs)(i.I,{defaultChecked:A,className:(0,v.C$)({schutz:"tw-m-0 [&>.checkmark-wrapper>.checkmark]:tw-min-h-3\n [&>.checkmark-wrapper>.checkmark]:tw-min-w-3\n [&>.content]:tw-ml-1 [&>.content]:tw-text-xs\n [&>.content]:tw-font-normal",anacapri:"tw-mb-2 tw-mt-4 [&_.checkmark]:tw-min-h-4\n [&_.checkmark]:tw-min-w-4 [&_.checkmark]:tw-border-spanish-gray",arezzo:"tw-text-xs tw-font-bold md:tw-text-sm",vicenza:"[&_.content]:tw-text-xs [&_.content]:md:tw-text-base"}),register:ee(j.newsletter),children:["Aceito receber newsletter e SMS da ",g.T.BRAND_NAME,"."]})}),(0,r.jsx)(w.z,{shouldGrow:!0,type:"submit",className:(0,v.C$)({schutz:"tw-order-8 tw-uppercase",anacapri:"tw-min-h-10",arezzo:"tw-uppercase"}),children:"Enviar"})]})]}),(0,r.jsx)(WishGiftContentSuccess,{handleClickSuccessMessage:function(){R(!1),J(!1),en()},isFormSentSuccessfully:X,successTitle:P||"",successSubTitle:U||"",iconSuccessWishGift:T})]})})}},43740:function(e,t,n){n.d(t,{a:function(){return storeLocationFactory}});var r=n(72546);function storeLocationFactory(){var e;let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return{stores:(e=t.stores)?e.map(e=>(0,r.p)(e)):[],sourceLatitude:t.sourceLatitude||0,sourceLongitude:t.sourceLongitude||0}}},1716:function(e,t,n){n.d(t,{G:function(){return useProductSize}});var r=n(67294),a=n(78069),l=n(33764),o=n(9136),s=n(91315);function useProductSize(e){var t;let{product:n,shouldRemoveSizeOnLocationChange:c=!0}=e,[i,w]=(0,r.useState)(null),[u,d]=(0,r.useState)(null),{cepLocation:m}=(0,s.f)(),h=(0,r.useRef)((null==n?void 0:n.variantOptions)||[]),p=(null==n?void 0:n.sizeGuide)||[],x=(0,r.useMemo)(()=>{let e=(null==n?void 0:n.variantOptions)||[];return e.map(e=>{var t,n;return{stock:e.stock,hasLowStock:e.stock.stockLevel<=3,value:null===(t=e.variantOptionQualifiers[0])||void 0===t?void 0:t.value,valueSecondary:null===(n=e.variantOptionQualifiers[0])||void 0===n?void 0:n.valueSecondary,sellable:e.sellable,displayText:e.displayText,stores:e.stores,code:e.code}})||[]},[null==n?void 0:n.variantOptions]),f=x.filter(e=>!(null==e?void 0:e.sellable)),g=(0,r.useMemo)(()=>{var e;return(0,l.x)(x,null==x?void 0:null===(e=x[0])||void 0===e?void 0:e.displayText)},[x]),v=(0,r.useMemo)(()=>{var e;return!n||(g?!(null==x?void 0:null===(e=x[0])||void 0===e?void 0:e.sellable):!!i&&!i.sellable)},[i,g,n,x]),b=(0,r.useMemo)(()=>!(null==n?void 0:n.sellable)||!(null==n?void 0:n.price),[null==n?void 0:n.price,null==n?void 0:n.sellable]),z=(null==i?void 0:null===(t=i.stock)||void 0===t?void 0:t.stockLevel)||0,C=(0,r.useMemo)(()=>{if(!z||z>3)return null;let e=z.toString();return 1===z?a.T.SINGLE_REMAINING_WARN.replace("$amount",e):a.T.PLURAL_REMAINING_WARN.replace("$amount",e)},[z]);return(0,r.useEffect)(()=>{var e;if(g&&(null===(e=x[0])||void 0===e?void 0:e.sellable)){w(x[0]);return}let t=null==n?void 0:n.variantOptions.some(e=>e.code===(null==i?void 0:i.code));if(!t){w(null);return}let r=x.find(e=>e.code===(null==i?void 0:i.code))||null;w(r)},[i,g,null==n?void 0:n.variantOptions,x]),(0,r.useEffect)(()=>{let e=!(0,o.u)(h.current,(null==n?void 0:n.variantOptions)||{});if(!e)return;h.current=(null==n?void 0:n.variantOptions)||[];let t=f.some(e=>e.code===(null==i?void 0:i.code));t&&w(null)},[null==i?void 0:i.code,null==n?void 0:n.variantOptions,w,f]),(0,r.useEffect)(()=>{c&&!g&&w(null)},[m,g,c]),{sizeOptions:x,isUnavailable:v,isUniqueSize:g,currentSize:i,setCurrentSize:w,currentSizeOnNotifyMe:u,setCurrentSizeOnNotifyMe:d,sizesNotSellable:f,isUnavailableProduct:b,remainingWarn:C,sizeGuide:p}}}}]);