1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7469],{51638:function(e,t,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/my-account/order/[orderId]",function(){return n(30288)}])},28219:function(e,t,n){"use strict";n.d(t,{x:function(){return LabelGiftBag}});var r=n(85893);n(67294);var a=n(57207),i=n(37340),s=n(20256);function _templateObject(){let e=(0,i._)(["\n align-items: center;\n background: ",";\n display: flex;\n padding: ",";\n white-space: ",";\n width: fit-content;\n margin: 7px 0 15px;\n\n @media only screen and (min-width: 768px) {\n padding: ",";\n margin: ",";\n }\n\n .label-gift-bag {\n &__text {\n color: ",";\n font-size: 12px;\n margin-left: ",";\n\n @media only screen and (min-width: 768px) {\n font-size: ",";\n }\n }\n }\n"]);return _templateObject=function(){return e},e}let c=s.ZP.div.withConfig({componentId:"sc-d42e022b-0"})(_templateObject(),e=>{let{theme:t}=e;return t.colors.cart.entryGiftBag.label.background},e=>{let{isTagCart:t}=e;return t?"5px":"2px 5px"},e=>{let{isTagCart:t}=e;return t?"unset":"nowrap"},e=>{let{isTagCart:t}=e;return t?"4px 7px":"3px 6px"},e=>{let{isTagCart:t}=e;return t?"10px 0 0":"5px 0"},e=>{let{theme:t}=e;return t.colors.cart.entryGiftBag.label.text},e=>{let{isTagCart:t}=e;return t?"8px":"4px"},e=>{let{isTagCart:t}=e;return t?"14px":"12px"});function LabelGiftBag(e){let{iconName:t="giftBag",text:n,isTagCart:i,...s}=e;return(0,r.jsxs)(c,{isTagCart:i,className:"label-gift-bag",...s,children:[(0,r.jsx)(a.X,{name:t,size:i?13:11,margin:"0 0 2px"}),(0,r.jsx)("span",{className:"label-gift-bag__text",children:n})]})}},58675:function(e,t,n){"use strict";n.d(t,{_:function(){return LinkUnderline}});var r=n(85893),a=n(37340),i=n(20256);function _templateObject(){let e=(0,a._)(["\n font-size: ","px;\n font-family: inherit;\n text-decoration: underline;\n color: ",";\n letter-spacing: 0.7px;\n cursor: pointer;\n margin-bottom: 10px;\n border: 0;\n background-color: transparent;\n"]);return _templateObject=function(){return e},e}let s=i.ZP.a.withConfig({componentId:"sc-f14fa469-0"})(_templateObject(),e=>e.size||"12",e=>e.color||e.theme.colors.linkUnderline.text);function LinkUnderline(e){let{children:t,...n}=e;return(0,r.jsx)(s,{...n,children:t})}},60994:function(e,t,n){"use strict";n.d(t,{F:function(){return PixTimer}});var r=n(85893),a=n(67294),i=n(57207),s=n(41382),c=n(37340),o=n(20256);function _templateObject(){let e=(0,c._)(["\n margin: 20px 0;\n\n .timer {\n margin: 6px 0 7px;\n display: flex;\n align-content: center;
1\n align-items: center;\n\n &--expired {\n color: ",";\n }\n\n &__clock {\n margin-left: 10px;\n }\n }\n"]);return _templateObject=function(){return e},e}function _templateObject1(){let e=(0,c._)(["\n width: 160px;\n height: 5px;\n background: ",";\n position: relative;\n\n &::after {\n content: '';\n background: ",";\n position: absolute;\n width: ","%;\n height: 5px;\n }\n"]);return _templateObject1=function(){return e},e}let l=o.ZP.div.withConfig({componentId:"sc-a794508c-0"})(_templateObject(),e=>e.theme.colors.pixTimer.expired),d=o.ZP.div.withConfig({componentId:"sc-a794508c-1"})(_templateObject1(),e=>e.theme.colors.pixTimer.barBackground,e=>e.theme.colors.pixTimer.bar,e=>e.barWidth);function PixTimer(e){let{expirySeconds:t,icon:n,showBar:c=!1,...o}=e,[u,x]=(0,a.useState)("4"),{formattedTimer:p,milliseconds:m}=(0,s.J)(t),h=m<=0;return(0,a.useEffect)(()=>{c&&function(){let e=100*(m/1e3)/14400;x(e.toFixed(2))}()},[14400,m,c]),(0,r.jsxs)(l,{...o,children:[(0,r.jsx)("p",{children:"Seu Pix expira em:"}),(0,r.jsxs)("div",{className:"timer ".concat(h?"timer--expired":"").trim(),children:[n?n():(0,r.jsx)(i.X,{fillColor:"currentColor",name:"clockLight",size:15}),(0,r.jsx)("span",{className:"timer__clock",children:h?"C\xf3digo Pix expirado":p})]}),function(){let e=c&&!h;return e?(0,r.jsx)(d,{barWidth:u}):null}()]})}},11990:function(e,t,n){"use strict";n.d(t,{l:function(){return SalesLinkTimer}});var r=n(85893),a=n(57207),i=n(41382),s=n(62854);function SalesLinkTimer(e){let{expirySeconds:t,hasExpired:n,icon:c,...o}=e,{formattedTimer:l}=(0,i.J)(t);return(0,r.jsx)("div",{className:"tw-mb-1 tw-text-base",...o,children:(0,r.jsxs)("div",{className:(0,s.m6)("tw-flex tw-items-center tw-text-boulder",n&&"tw-text-sm tw-text-upsdell-red"),children:[(0,r.jsx)(a.X,{name:null!=c?c:"clockLight",fillColor:"currentColor",size:16}),(0,r.jsx)("span",{className:"tw-ml-2.5",children:n?"Link de pagamento expirado":l})]})})}},73436:function(e,t,n){"use strict";n.d(t,{f:function(){return r}});let r={REQUEST:"request",REASON:"reason",ACTION:"action",ACTION_EXCHANGE:"action-exchange",ACTION_REFUND:"action-refund",ADDRESS:"address",REVIEW:"review",RESUME:"resume"}},15514:function(e,t,n){"use strict";var r,a,i,s,c,o,l,d,u,x,p,m,h,f,_,g;n.d(t,{J1:function(){return C},JS:function(){return l},Tf:function(){return r},Uq:function(){return i},_x:function(){return c},ix:function(){return E},ou:function(){return o},xj:function(){return d},zP:function(){return N}}),(u=r||(r={})).RETURN_WITH_REPLACEMENT="RETURN_WITH_REPLACEMENT",u.RETURN_WITH_REFUND="RETURN_WITH_REFUND",u.RETURN_WITH_REVERSAL="RETURN_WITH_REVERSAL",u.RETURN_WITH_CREDITS_REFUND="RETURN_WITH_CREDITS_REFUND",u.NONE="NONE",(x=a||(a={})).PRODUCT_LESS_THAN_EXPECTED="PRODUCT_LESS_THAN_EXPECTED",x.MANUFACTURING_FAULT="MANUFACTURINGFAULT",x.PRODUCT_NOT_FIT="PRODUCT_NOT_FIT",x.DIVERGENT_PRODUCT="DIVERGENT_PRODUCT",x.NONE="NONE",(p=i||(i={})).PRODUCT_LESS_THAN_EXPECTED="Abaixo da expectativa",p.MANUFACTURING_FAULT="Produto com Defeito",p.PRODUCT_NOT_FIT="N\xe3o serviu",p.DIVERGENT_PRODUCT="Produtos divergentes",(m=s||(s={})).WRONG_PRODUCT_COLOR="WRONG_PRODUCT_COLOR",m.WRONG_PRODUCT_MATERIAL="WRONG_PRODUCT_MATERIAL",m.DIVERGENT_SITE_PRODUCT="DIVERGENT_SITE_PRODUCT",m.WRONG_PRODUCT_MODEL_WHEN_WEAR_SHOES="WRONG_PRODUCT_MODEL_WHEN_WEAR_SHOES",m.UNCOMFORTABLE_PRODUCT="UNCOMFORTABLE_PRODUCT",m.LARGE_PRODUCT="LARGE_PRODUCT",m.SMALL_PRODUCT="SMALL_PRODUCT",m.WRONG_PRODUCT_SIZE="WRONG_PRODUCT_SIZE",m.WRONG_PRODUCT_MODEL="WRONG_PRODUCT_MODEL",m.ORDER_FROM_ANOTHER_CUSTOMER="ORDER_FROM_ANOTHER_CUSTOMER",m.DIVERGENT_PRODUCT_DESCRIPTION_OR_MEDIA="DIVERGENT_PRODUCT_DESCRIPTION_OR_MEDIA",m.NONE="NONE",(h=c||(c={})).LARGE_PRODUCT="Produto ficou grande",h.SMALL_PRODUCT="Produto ficou pequeno",h.WRONG_PRODUCT_SIZE="Tamanho errado",h.WRONG_PRODUCT_MODEL="Modelo errado",h.ORDER_FROM_ANOTHER_CUSTOMER="Pedido de outra pessoa",h.DIVERGENT_PRODUCT_DESCRIPTION_OR_MEDIA="Divergente no site - foto ou descri\xe7\xe3o",h.WRONG_PRODUCT_COLOR="Cor do produto",h.WRONG_PRODUCT_MATERIAL="Qualidade do material",h.DIVERGENT_SITE_PRODUCT="Produto n\xe3o era id\xeantico ao site",h.WRONG_PRODUCT_MODEL_WHEN_WEAR_SHOES="N\xe3o se ajustou ao uso",h.UNCOMFORTABLE_PRODUCT="Desconfort\xe1vel",h.NONE="",(f=o||(o={})).NONE="",f.RETURN_WITH_REFUND="Reembolso",f.RETURN_WITH_REVERSAL="Estorno",f.RETURN_WITH_REPLACEMENT="Troca",f.RETURN_WITH_CREDITS_REFUND="Cr\xe9dito",(_=l||(l={})).RETURN_WITH_REPLACEMENT="Troca",_.RETURN_WITH_CREDITS_REFUND="Receber o valor em Cr\xe9dito ${brand}",_.RETURN_WITH_REFUND="Reembolso do valor",_.RETURN_WITH_REVERSAL="Estorno do valor (30 \xe0 60 dias)",_.NONE="",(g=d||(d={})).REPLACEMENT="O pedido de troca \xe9 despachado em at\xe9 ${deadline} \xfateis ap\xf3s a an\xe1lise da devolu\xe7\xe3o. Ap\xf3s, basta aguardar o prazo de entrega para o seu endere\xe7o.",g.CREDITS="Os cr\xe9ditos para novas compras s\xe3o liberados no seu cadastro dentro de ${deadline} dias ap\xf3s an\xe1lise de qualidade, ficando dispon\xedveis para uso por at\xe9 180 dias.",g.REFUND="O reembolso \xe9 efetivado em at\xe9 ${deadline} dias \xfateis ap\xf3s a an\xe1lise de qualidade. Lembrando que existe um prazo de compensa\xe7\xe3o de at\xe9 72 horas \xfateis para o valor refletir em sua conta.",g.REVERSAL="O estorno \xe9 efetivado pelo nosso time em at\xe9 ${deadline} dias \xfateis ap\xf3s retorno do produto ao estoque. Entretanto, as administradoras de cart\xe3o tem prazos diferentes para efetivar o repasse do valor, podendo ocorrer de uma \xe0 duas faturas (30 \xe0 60 dias).",g.CREDITS_ANTICIPATED="Os cr\xe9dito para novas compras s\xe3o liberados ap\xf3s o produto ser postado nos correios, e ficam dispon\xedveis para uso por at\xe9 180 dias.";let C="Ressarcimento",E="5",N="3"}
1,62873:function(e,t,n){"use strict";n.d(t,{H:function(){return r}});let r="https://atendimento.schutz.com.br/hc/pt-br/articles/15441517560347-Perfis-Oficiais"},39944:function(e,t,n){"use strict";n.d(t,{B:function(){return r}});let r={SUPPORT_ZENDESK:"",EMPTY_CART_BUTTON:"/",ONE_LINK_APP:"",CORREIOS_ELECTRONIC_CONTENT_DECLARATION_URL:"https://saladeimprensa.correios.com.br/arquivos/13666",SUPPORT_ZENDESK:"https://atendimento.schutz.com.br/hc/pt-br/",WISHLIST:"/my-account/wish-list",EMPTY_CART_BUTTON:"/c/newin",ONE_LINK_APP:"https://schutz.onelink.me/Oifj/42elrqtx",EASY_EXCHANGE:"https://atendimento.schutz.com.br/hc/pt-br/sections/13619736538139-Troca-f%C3%A1cil"}},21607:function(e,t,n){"use strict";n.d(t,{BM:function(){return exchangesFactory},F5:function(){return exchangeDetailsFactory}});var r=n(72546),a=n(27834),i=n(45949);function exchangeProductFactory(e){let t=e||{};return{name:t.name||"",size:t.size||"",code:t.code||"",images:(0,i.Jx)(t.images)}}function exchangeFactory(){var e,t,n,i,s,c;let o=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},l=o||{};return{date:l.date||"",consignmentCode:l.consignmentCode||"",entries:(null===(e=l.entries)||void 0===e?void 0:e.map(e=>(function(e){let t=e||{};return{action:t.action||"",additionalReturnReason:t.additionalReturnReason||"",returnReason:t.returnReason||"",consignmentCode:t.consignmentCode||"",product:exchangeProductFactory(t.product),store:(0,r.p)(e.storeData),replacementProduct:exchangeProductFactory(t.replacementProduct),totalPrice:(0,a.h)(t.totalPrice),processStep:function(e){let t=e||{};return{status:t.status||"",date:t.date||"",statusOrder:t.statusOrder||0}}(t.processStep)}})(e)))||[],deadlineCredit:l.deadlineCredit||"",deadlineExchange:l.deadlineExchange||"",deadlineRefund:l.deadlineRefund||"",denyReason:l.denyReason||"",order:l.order||"",originalOrderCode:l.originalOrderCode||"",pickUpTracking:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e||{};return{code:t.code||"",date:t.date||"",tracking:t.tracking||"",url:t.url||""}}(l.pickUpTracking),pickUpInCustomerAddress:l.pickUpInCustomerAddress||!1,postage:function(){var e;let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=t||{};return{collectionNumber:n.collectionNumber||"",status:n.status||"",objectDetails:(null===(e=n.objectDetails)||void 0===e?void 0:e.map(e=>(function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e||{};return{code:(null==t?void 0:t.code)||"",url:(null==t?void 0:t.url)||""}})(e)))||[]}}(l.postagem),protocol:l.protocol||"",option:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e||{};return{code:t.code||"",title:t.title||"",type:t.type||""}}(l.option),returnRequestSteps:(null===(t=l.returnRequestSteps)||void 0===t?void 0:t.map(e=>(function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e||{};return{date:t.date||"",status:t.status||"",statusOrder:t.statusOrder||0}})(e)))||[],returnStatus:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return{code:(e||{}).code||""}}(l.returnStatus),isEarlyRefundEnabled:o.earlyRefundEnabled||!1,provider:o.provider||"",carrierLink:o.carrierLink||"",tracking:{trackingUrl:(null===(n=l.tracking)||void 0===n?void 0:n.trackingUrl)||"",trackingCode:(null===(i=l.tracking)||void 0===i?void 0:i.trackingCode)||"",eticket:(null===(s=l.tracking)||void 0===s?void 0:s.eticket)||"",qrCodeUrl:(null===(c=l.tracking)||void 0===c?void 0:c.qrCodeUrl)||""}}}function exchangesFactory(e){return e?e.map(e=>exchangeFactory(e)):[]}function exchangeDetailsFactory(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e||{};return exchangeFactory(t)}},40307:function(e,t,n){"use strict";n.d(t,{X:function(){return lastExchangeFactory}});var r=n(27834),a=n(82415);function lastExchangeFactory(){var e;let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=t||{};return{date:n.date||"",protocol:n.protocol||"",lastStep:n.lastStep||"",returnPrice:(0,r.h)(n.returnPrice),entries:(null===(e=n.entries)||void 0===e?void 0:e.map(e=>(function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return{product:(0,a.c)(e.product)}})(e)))||[],quantity:(null==n?void 0:n.quantity)||0}}},54774:function(e,t,n){"use strict";function orderGAInformationFactory(){var e;let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=t||{};return{cartHasGift:n.cartHasGift||"",cartVoucher:n.cartVoucher||"",cartVoucherDiscountPercent:n.cartVoucherDiscountPercent||0,checkoutShippingCarrier:n.checkoutShippingCarrier||"",checkoutShippingZipDelivery:n.checkoutShippingZipDelivery||"",checkoutConsignmentDeliveryData:(null===(e=n.checkoutConsignmentDeliveryData)||void 0===e?void 0:e.map(e=>({checkoutShippingCarrier:e.checkoutShippingCarrier||"",checkoutShippingEstimatedDeliveryTime:e.checkoutShippingEstimatedDeliveryTime||0,checkoutShippingShipmentId:e.checkoutShippingShipmentId||"",shippingIsFree:e.shippingIsFree||"",shippingMethod:e.shippingMethod||""})))||[],currency:n.currency||"",paymentCardFlag:n.paymentCardFlag||"",paymentMethod:n.paymentMethod||"",paymentParcelValue:n.paymentParcelValue||"",paymentParcels:n.paymentParcels||"",shippingPostalCode:n.shippingPostalCode||"",shippingETADays:n.shippingETADays||"",shippingIsFree:n.shippingIsFree||"",shippingMethod:n.shippingMethod||"",shippingPrice:n.shippingPrice||0,shippingVendor:n.shippingVendor||"",totalCartDiscount:n.totalCartDiscount||0,totalCartFinalPrice
1:n.totalCartFinalPrice||0,totalCartGiftsDiscount:n.totalCartGiftsDiscount||0,totalCartNormalPrice:n.totalCartNormalPrice||0,totalCartOffertedPrice:n.totalCartOffertedPrice||0,totalCartProductsDiscount:n.totalCartProductsDiscount||0,transactionId:(null==n?void 0:n.transactionId)||"",transactionTax:n.transactionTax||0,totalCartVoucherDiscount:n.totalCartVoucherDiscount||0,totalProductsInCart:n.totalProductsInCart||0}}n.d(t,{b:function(){return orderGAInformationFactory}})},18059:function(e,t,n){"use strict";n.d(t,{g:function(){return splitProductsByType},w:function(){return isThirdPartyProduct}});var r=n(35131),a=n(91474);let i=(0,a.k)(r.BrandId.ZZMall);function isThirdPartyProduct(e){var t,n;return i&&(null===(n=e.vendors)||void 0===n?void 0:null===(t=n[0])||void 0===t?void 0:t.isInternalBrand)===!1}function splitProductsByType(e){let t=[],n=[],r=[];for(let a of e){if(isThirdPartyProduct(a.product)){r.push(a);continue}if(a.isExchangeable){t.push(a);continue}n.push(a)}return{available:t,unavailable:n,thirdParty:r}}},7015:function(e,t,n){"use strict";n.d(t,{S:function(){return MyAccountSectionTitle}});var r=n(85893),a=n(37340),i=n(20256);function _templateObject(){let e=(0,a._)(["\n display: inline-block;\n font-size: 14px;\n line-height: 14px;\n letter-spacing: 0.7px;\n color: inherit;\n\n @media only screen and (max-width: 768px) {\n font-size: 13px;\n line-height: 13px;\n letter-spacing: 0.54px;\n }\n\n &.large {\n font-size: 18px;\n }\n"]);return _templateObject=function(){return e},e}let s=i.ZP.span.withConfig({componentId:"sc-597318aa-0"})(_templateObject());function MyAccountSectionTitle(e){let{children:t,className:n="",dataTestId:a,...i}=e;return(0,r.jsx)(s,{"data-testid":a,className:"".concat(n," section-title").trim(),...i,children:t})}},30288:function(e,t,n){"use strict";n.r(t),n.d(t,{__N_SSP:function(){return ei},default:function(){return Order}});var r=n(85893),a=n(9008),i=n.n(a),s=n(67294),c=n(41664),o=n.n(c),l=n(11163),d=n(20256),u=n(65856),x=n(13892),p=n(42048),m=n(84484),h=n(16823),f=n(63097),_=n(69183),g=n(83516),C=n(44170),E=n(97324),N=n(71009),j=n(60383),R=n(62854),T=n(73866),w=n(18059),O=n(57207),P=n(62873),v=n(28542),b=n(52022),y=n(74464),A=n(1653),D=n(23883),I=n(60994),S=n(11990);let U={anacapri:"Anacapri",arezzo:"Arezzo",alexandre_birman:"AB",schutz:"Schutz",vans:"Vans"};var k=n(70697),L=n(38538),G=n(2802),F=n(80731);function CopyButton(e){let{textToCopy:t}=e,[n,a]=(0,s.useState)(!1),i=(0,d.Fg)();async function handleClick(){let e=await F.JG(t);e&&(a(!0),setTimeout(()=>{a(!1)},3e3))}return(0,r.jsx)(x.z,{onClick:()=>handleClick(),children:n?(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("span",{children:"C\xf3digo copiado"}),(0,r.jsx)(O.X,{className:"button-icon",name:"check",fillColor:i.colors.white,size:15})]}):(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("span",{children:"Copiar c\xf3digo"}),(0,r.jsx)(O.X,{className:"button-icon",name:"copyLight",fillColor:i.colors.white,size:15})]})})}var M=n(37340);function _templateObject(){let e=(0,M._)(["\n margin: 20px 0;\n\n .pix-step {\n display: flex;\n flex-wrap: wrap;\n align-items: center;\n position: relative;\n margin-bottom: 24px;\n\n &__circle {\n display: inline-block;\n border-radius: 50%;\n border: 1px solid ",";\n width: 48px;\n height: 48px;\n display: inline-flex;\n align-items: center;\n justify-content: center;\n }\n\n &:not(:last-child) {\n ::after {\n content: '';\n width: 1px;\n height: 25px;\n position: absolute;\n bottom: -24px;\n left: 24px;\n background-color: ",";\n }\n }\n\n &__text {\n position: absolute;\n left: 65px;\n }\n }\n"]);return _templateObject=function(){return e},e}let z=d.ZP.div.withConfig({componentId:"sc-cbf21d2c-0"})(_templateObject(),e=>e.theme.colors.black,e=>e.theme.colors.black);function HowToPayPix(){return(0,r.jsxs)(z,{children:[(0,r.jsxs)("div",{className:"pix-step",children:[(0,r.jsx)("div",{className:"pix-step__circle",children:(0,r.jsx)(O.X,{name:"copyPapers",size:20})}),(0,r.jsx)("span",{className:"pix-step__text",children:"Primeiro, copie o c\xf3digo PIX acima"})]}),(0,r.jsxs)("div",{className:"pix-step",children:[(0,r.jsx)("div",{className:"pix-step__circle",children:(0,r.jsx)(O.X,{name:"mobileHand",size:20})}),(0,r.jsx)("span",{className:"pix-step__text",children:"Acesse o a
1plicativo de sua institui\xe7\xe3o banc\xe1ria em seu celular"})]}),(0,r.jsxs)("div",{className:"pix-step",children:[(0,r.jsx)("div",{className:"pix-step__circle",children:(0,r.jsx)(O.X,{name:"mobilePix",size:24})}),(0,r.jsx)("span",{className:"pix-step__text",children:"Acesse \xe0 se\xe7\xe3o PIX e cole o c\xf3digo"})]}),(0,r.jsxs)("div",{className:"pix-step",children:[(0,r.jsx)("div",{className:"pix-step__circle",children:(0,r.jsx)(O.X,{name:"checkBorder",size:15})}),(0,r.jsx)("span",{className:"pix-step__text",children:"Preencha os dados e conclua"})]})]})}var B=n(93804);function styles_templateObject(){let e=(0,M._)(["\n p {\n color: ",";\n }\n\n .gift-card-info-wrapper {\n .balance-message {\n margin-bottom: 10px;\n\n .amount {\n margin: 0px 5px;\n }\n }\n }\n\n .apple-pay {\n display: flex;\n flex-direction: column;\n\n &__card {\n display: flex;\n align-items: center;\n gap: 8px;\n margin-bottom: 4px;\n }\n }\n"]);return styles_templateObject=function(){return e},e}function _templateObject1(){let e=(0,M._)(["\n display: flex;\n flex-direction: column;\n gap: 16px;\n\n .bank-slip-due-date {\n margin-top: 5px;\n }\n"]);return _templateObject1=function(){return e},e}function _templateObject2(){let e=(0,M._)(["\n display: flex;\n justify-content: space-between;\n align-items: center;\n gap: 8px;\n"]);return _templateObject2=function(){return e},e}function _templateObject3(){let e=(0,M._)(["\n display: flex;\n align-items: center;\n gap: 8px;\n"]);return _templateObject3=function(){return e},e}function _templateObject4(){let e=(0,M._)(["\n border-radius: 5px;\n display: flex;\n align-items: center;\n"]);return _templateObject4=function(){return e},e}function _templateObject5(){let e=(0,M._)(["\n .text-pix {\n margin-bottom: 20px;\n }\n\n .bar-code {\n margin: 10px 0 20px;\n line-height: 140%;\n word-break: break-all;\n width: 100%;\n }\n\n .bank-slip-due-date {\n &--expired {\n color: ",";\n margin-top: 5px;\n }\n }\n\n .qr-code-wrapper {\n margin-bottom: 15px;\n width: 140px;\n height: 140px;\n position: relative;\n display: none;\n\n > svg {\n transform: scale(0.55);\n position: absolute;\n top: -55px;\n left: -55px;\n }\n\n &.show-qr {\n display: block;\n }\n }\n\n .buttons {\n display: flex;\n flex-direction: column;\n gap: 10px;\n margin-bottom: 20px;\n\n button,\n a {\n margin: 0;\n font-size: 12px;\n\n i {\n position: relative;\n right: -12px;\n padding-right: 10px;\n top: -1px;\n }\n }\n }\n\n @media only screen and (min-width: 768px) {\n .buttons {\n flex-direction: row;\n }\n }\n"]);return _templateObject5=function(){return e},e}let H=d.ZP.div.withConfig({componentId:"sc-cd9cb56c-0"})(styles_templateObject(),B.H.BOULDER),X=d.ZP.div.withConfig({componentId:"sc-cd9cb56c-1"})(_templateObject1()),V=d.ZP.div.withConfig({componentId:"sc-cd9cb56c-2"})(_templateObject2()),W=d.ZP.div.withConfig({componentId:"sc-cd9cb56c-3"})(_templateObject3()),Z=d.ZP.div.withConfig({componentId:"sc-cd9cb56c-4"})(_templateObject4()),q=d.ZP.div.withConfig({componentId:"sc-cd9cb56c-5"})(_templateObject5(),e=>e.theme.colors.dangerLight),$=(0,R.C$)({_common:"tw-font-semibold",vans:"tw-font-bold",schutz:"tw-font-bold"});function PaidWith(e){let{paymentMode:t,paymentInfo:n,installments:a,installmentsValue:i,salesLinkURL:c,isPaid:l}=e,u=U[k.k],h=(0,d.Fg)(),f=n.expiryInToDisplay,{isMobile:_}=(0,L.k)(),[g,C]=(0,s.useState)(!1),E="show-qr",[N,j]=(0,s.useState)(!1),T=new Date(n.expiryDate).getTime(),w=Date.now(),P=Math.floor((T-w)/1e3),y=P<=0,F=m.Ag[t.code],M=t.code===m.G4.SALES_LINK||t.code===m.G4.CALL_CENTER_RESERVE;function renderCreditCard(e){let t,s,c;let{isMixedPayment:o=!1,isFirstCard:l=!1,isSecondCard:d=!1,hasPaymentInfoInstallments:u=!1}=e||{};function renderCardIcon(){let e="";e=l?n.card1.cardType.code:d?n.card2.cardType.code:n.cardType.code;let t={master:(0,r.jsx)(O.X,{name:"paymentMaster",size:17}),visa:(0,r.jsx)(O.X,{name:"paymentVisa",size:10}),elo:(0,r.jsx)(O.X,{name:"paymentElo",size:12}),hipercard:(0,r.jsx)(O.X,{name:"paymentHipercard",size:16}),diners:(0,r.jsx)(O.X,{name:"paymentDiners",size:16}),amex:(0,r.jsx)(O.X,{name:"paymentAmex",size:20})};return t[e]}return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("p",{className:"container-card__number tw-text-[10px] tw-leading-none",children:l?n.card1.cardNumber:d?n.card2.cardNumber:n.cardNumber}),(0,r.jsxs)(W,{className:"container-card",children:[renderCardIcon()?(0,r.jsx)(Z,{className:"container-card__icon",children:renderCardIcon()}):null,(0,r.jsx)("p",{className:"container-card__name",children:l?n.card1.isDefaultPayment?"Cart\xe3o Principal":"Cart\xe3o ".concat(n.card1.cardType.n
1ame):d?n.card2.isDefaultPayment?"Cart\xe3o Principal":"Cart\xe3o ".concat(n.card2.cardType.name):n.cardType.name?n.defaultPayment?"Cart\xe3o Principal":"Cart\xe3o ".concat(n.cardType.name):null})]}),(0,r.jsxs)("div",{className:"tw-mt-1 tw-flex tw-gap-1",children:[o?(t=l?n.card1.formattedCcAmount:d?n.card2.formattedCcAmount:n.formattedCcAmount,(0,r.jsxs)("p",{className:"value-card",children:[t," em"]})):null,(s=0,c="",(l?(s=n.card1.installments,c=n.card1.installmentsValue):d?(s=n.card2.installments,c=n.card2.installmentsValue):u?(s=n.installments,c=n.installmentsValue):(s=a,c=i),s||c)?(0,r.jsxs)("p",{className:"payment-installments",children:[s,"x de ",c]}):null)]})]})}function renderBalanceAccount(e){let{isMixedPayment:t=!1}=e||{};return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(V,{children:(0,r.jsxs)(W,{children:[(0,r.jsx)(Z,{className:"container-card__icon",children:(0,r.jsx)(O.X,{name:"dollarCircle",size:17})}),(0,r.jsxs)("p",{className:"tw-leading-none",children:["Cr\xe9dito ",u]})]})}),t&&(0,r.jsxs)("p",{className:"tw-mt-2",children:["Valor usado: ",n.formattedBaAmount]})]})}function renderCardAndBalanceAccount(){return(0,r.jsxs)(X,{children:[(0,r.jsx)("div",{children:renderCredit
1Card({isMixedPayment:!0,hasPaymentInfoInstallments:!0})}),(0,r.jsx)("div",{children:renderBalanceAccount({isMixedPayment:!0})})]})}function renderGiftCard(){return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsxs)(V,{children:[(0,r.jsxs)(W,{children:[(0,r.jsx)(Z,{className:"container-card__icon",children:(0,r.jsx)(O.X,{name:"giftCard",size:12})}),(0,r.jsx)("p",{children:"Cart\xe3o Presente Digital"})]}),(0,r.jsx)("p",{children:n.maskedGiftCardCode})]}),(0,r.jsxs)("div",{className:"gift-card-info-wrapper",children:[(0,r.jsxs)("p",{className:"balance-message",children:["Sua compra utilizou",(0,r.jsx)("span",{className:"amount",children:n.formattedGiftCardAmount}),"dos seus cr\xe9ditos."]}),(0,r.jsx)(o(),{href:p.Z.TERMS_OF_USE,passHref:!0,legacyBehavior:!0,children:(0,r.jsx)(D._,{className:"tw-text-boulder",children:"Termos e Condi\xe7\xf5es do Cart\xe3o Pr\xe9-pago"})})]})]})}function renderTwoCreditCards(){return(0,r.jsxs)(X,{children:[(0,r.jsx)("div",{children:renderCreditCard({isMixedPayment:!0,isFirstCard:!0})}),(0,r.jsx)("div",{children:renderCredit
1Card({isMixedPayment:!0,isSecondCard:!0})})]})}function renderBankSlip(e){let{isMixedPayment:t=!1}=e||{};return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(V,{children:(0,r.jsxs)(W,{children:[(0,r.jsx)(Z,{className:"container-card__icon",children:(0,r.jsx)(O.X,{name:"boleto",size:15})}),(0,r.jsx)("p",{children:"Boleto banc\xe1rio"})]})}),l?null:(0,r.jsxs)(q,{children:[function(e){let{isMixedPayment:t=!1}=e||{};return t?(0,r.jsxs)("p",{children:["Valor no boleto: ",n.boAmount]}):null}({isMixedPayment:t}),(0,r.jsxs)("p",{className:"bank-slip-due-date",children:["Vencimento:"," ",(0,r.jsx)("span",{className:"expiry-date",children:n.expiryDate})]}),n.isPaymentExpired?(0,r.jsx)("p",{className:"bank-slip-due-date bank-slip-due-date--expired",children:"Boleto banc\xe1rio vencido"}):null,n.isPaymentExpired?null:(0,r.jsxs)(r.Fragment,{children:[(0,r.jsxs)("p",{className:"bar-code",children:["C\xf3digo de barras:"," ",(0,r.jsx)("span",{className:"ticket-bar-code",children:n.boletoBarCode})]}),(0,r.jsxs)("div",{className:(0,R.C$)({_common:"buttons ticket-action-buttons",anacapri:"[&_path]:tw-fill-white"}),children:[(0,r.jsx)(CopyButton,{textToCopy:n.boletoBarCode}),(0,r.jsx)(o(),{href:n.boletoUrl,passHref:!0,legacyBehavior:!0,children:(0,r.jsx)(x.z,{as:"a",children:(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("span",{children:"Imprimir boleto"}),(0,r.jsx)(O.X,{className:"button-icon",name:"printer",fillColor:h.colors.white,size:15})]})})})]})]}),(0,r.jsx)(o(),{href:p.Z.TERMS_OF_USE,passHref:!0,legacyBehavior:!0,children:(0,r.jsx)(D._,{className:"link-ticket-rules tw-text-boulder",children:"Regras de pagamento de boleto"})})]})]})}function renderBankSlipAndBalanceAccount(){return(0,r.jsxs)(X,{children:[(0,r.jsx)("div",{children:renderBalanceAccount({isMixedPayment:!0})}),(0,r.jsx)("div",{children:renderBankSlip({isMixedPayment:!0})})]})}function renderPix(){return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(X,{children:(0,r.jsxs)(W,{children:[(0,r.jsx)(Z,{className:"container-card__icon",children:(0,r.jsx)(O.X,{name:"pixPayment",size:12})}),(0,r.jsx)("p",{children:"Pix"})]})}),l?null:(0,r.jsxs)(r.Fragment,{children:[(0,r.jsxs)(q,{children:[(0,r.jsx)("p",{className:"text-pix",children:"Ap\xf3s o pagamento do Pix, voc\xea receber\xe1 a confirma\xe7\xe3o por e-mail em at\xe9 1h."}),0===n.expiryInToDisplay?null:(0,r.jsxs)("div",{className:(0,R.C$)({_common:"buttons",anacapri:"[&_path]:tw-fill-white"}),children:[(0,r.jsx)(CopyButton,{textToCopy:n.pixQrCode}),_?null:(0,r.jsxs)(x.z,{className:g?E:"",onClick:e=>{C(!g),e&&e.currentTarget.blur()},children:["Ler c\xf3digo",g?(0,r.jsx)(O.X,{className:"button-icon",name:"closeSmall",size:9,fillColor:h.colors.white}):(0,r.jsx)(O.X,{className:"button-icon",name:"mobile",size:18,fillColor:h.colors.white})]})]}),(0,r.jsx)("div",{className:"".concat(g?E:"","\n qr-code-wrapper"),children:(0,r.jsx)(A.default,{value:n.pixQrCode})})]}),(0,r.jsx)(I.F,{expirySeconds:f,showBar:!0,className:"tw-text-boulder"}),(0,r.jsx)(D._,{as:"button",className:"tw-normal-case tw-text-boulder tw-underline",onClick:()=>j(!N),children:"Como pago com Pix?"}),N?(0,r.jsx)(HowToPayPix,{}):null]})]})}function renderPixAndBalanceAccount(){return(0,r.jsxs)(X,{children:[(0,r.jsx)("div",{children:renderBalanceAccount({isMixedPayment:!0})}),(0,r.jsx)("div",{children:renderPix()})]})}function renderGiftCardAndPix(){return(0,r.jsxs)(X,{children:[(0,r.jsx)("div",{children:renderGiftCard()}),(0,r.jsx)("div",{children:renderPix()})]})}function renderGiftCardAndBankSlip(){return(0,r.jsxs)(X,{children:[(0,r.jsx)("div",{children:renderGiftCard()}),(0,r.jsx)("div",{children:renderBankSlip({isMixedPayment:!0})})]})}function renderGiftCardAndCreditCard(){return(0,r.jsxs)(X,{children:[(0,r.jsx)("div",{children:renderGiftCard()}
1),(0,r.jsx)("div",{children:renderCreditCard({isMixedPayment:!0})})]})}function renderSalesLink(){return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsxs)("div",{className:"tw-mb-2 tw-flex tw-items-center tw-gap-1",children:[(0,r.jsx)(b.S,{className:$,children:"Pago com:"})," ",(0,r.jsx)("p",{children:"Pague Link"})]}),(0,r.jsx)("p",{className:"tw-mb-1",children:"Link de pagamento:"}),function(){if(y)return null;let{_expiredDate:e,expiredTime:t}=(0,G.UX)(n.expiryDate);return(0,r.jsxs)("div",{className:"tw-mt-2 tw-leading-none",children:[(0,r.jsx)(o(),{href:c,passHref:!0,legacyBehavior:!0,children:(0,r.jsx)(D._,{className:(0,R.C$)({_common:"text-sm tw-text-boulder",vans:"tw-my-0"}),children:c})}),(0,r.jsxs)("p",{className:"tw-mb-1 tw-mt-1",children:["V\xe1lido at\xe9 ",e,", \xe0s ",t,":"]})]})}(),(0,r.jsx)(S.l,{hasExpired:y,expirySeconds:P}),(0,r.jsx)("p",{className:"tw-text-xs",children:"Ap\xf3s o pagamento do link, voc\xea receber\xe1 a confirma\xe7\xe3o por e-mail em at\xe9 1h."})]})}function renderCallCenterReserve(){return(0,r.jsx)("p",{children:"Reserva televendas"})}function renderGooglePay(){return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(V,{children:(0,r.jsxs)(W,{children:[(0,r.jsx)(Z,{className:"container-card__icon",children:(0,r.jsx)(O.X,{name:"googleLight",size:15})}),(0,r.jsx)("p",{children:"Google Pay"})]})}),(0,r.jsxs)("p",{className:"tw-mt-1",children:[a,"x de ",i]})]})}function renderApplePay(){return(0,r.jsxs)("div",{className:"apple-pay",children:[(0,r.jsxs)("div",{className:"apple-pay__card",children:[(0,r.jsx)(Z,{className:"apple-pay__card__icon",children:(0,r.jsx)(O.X,{name:"apple",size:16,mobileSize:18})}),(0,r.jsx)("p",{children:"Apple Pay"})]}),(0,r.jsxs)("p",{children:[a,"x de ",i]})]})}function renderClickToPay(){let{cardNumber:e}=n;return(0,r.jsxs)("div",{className:"tw-flex tw-w-fit tw-flex-col tw-gap-2",children:[(0,r.jsxs)("div",{className:"tw-flex tw-items-center tw-gap-2 tw-self-start",children:[(0,r.jsx)(Z,{children:(0,r.jsx)(O.X,{name:"clickToPay",size:16,mobileSize:18})}),(0,r.jsx)("p",{children:"Click To Pay"})]}),e&&(0,r.jsx)("p",{children:e}),(0,r.jsxs)("p",{children:[a,"x de ",i]})]})}function renderClickToPayYuno(){let{cardNumber:e}=n;return(0,r.jsxs)("div",{className:"tw-flex tw-w-fit tw-flex-col tw-gap-2",children:[(0,r.jsxs)("div",{className:"tw-flex tw-items-center tw-gap-2 tw-self-start",children:[(0,r.jsx)(Z,{children:(0,r.jsx)(O.X,{name:"clickToPay",size:16,mobileSize:18})}),(0,r.jsx)("p",{children:"Cart\xe3o de Cr\xe9dito"})]}),e&&(0,r.jsx)("p",{children:e}),(0,r.jsxs)("p",{children:[a,"x de ",i]})]})}let z=(0,r.jsx)(H,{className:"payment-code md:tw-min-w-56 lg:tw-max-w-80",children:function(e){var t;if(!e)return;
1let n={[m.G4.CREDIT_CARD]:renderCreditCard,[m.G4.TWO_CREDIT_CARDS]:renderTwoCreditCards,[m.G4.GIFT_CARD]:renderGiftCard,[m.G4.GIFT_CARD_BANK_SLIP]:renderGiftCardAndBankSlip,[m.G4.GIFT_CARD_CREDIT_CARD]:renderGiftCardAndCreditCard,[m.G4.BANK_SLIP]:renderBankSlip,[m.G4.PIX]:renderPix,[m.G4.GIFT_CARD_PIX]:renderGiftCardAndPix,[m.G4.MIXED_CC_BA]:renderCardAndBalanceAccount,[m.G4.MIXED_BANK_SLIP_BA]:renderBankSlipAndBalanceAccount,[m.G4.MIXED_PIX_BA]:renderPixAndBalanceAccount,[m.G4.BALANCE_ACCOUNT]:renderBalanceAccount,[m.G4.SALES_LINK]:renderSalesLink,[m.G4.CALL_CENTER_RESERVE]:renderCallCenterReserve,[m.G4.GOOGLE_PAY]:renderGooglePay,[m.G4.APPLE_PAY]:renderApplePay,[m.G4.CLICK_TO_PAY]:renderClickToPay,[m.G4.CLICK_TO_PAY_YUNO]:renderClickToPayYuno};return null===(t=n[e])||void 0===t?void 0:t.call(n)}(t.code)});return M?(0,r.jsx)("div",{"data-testid":v.c$.CREDIT_CARD_BOX,children:z}):F?(0,r.jsxs)("div",{"data-testid":v.c$.CREDIT_CARD_BOX,className:"tw-flex tw-flex-col tw-gap-4 xl:tw-flex-row xl:tw-gap-7",children:[(0,r.jsxs)("div",{className:"tw-flex tw-flex-col tw-gap-2",children:[(0,r.jsx)(b.S,{className:$,children:"Pago com:"}),(0,r.jsx)("p",{className:"payment-custom-title tw-text-boulder",children:F})]}),z]}):(0,r.jsxs)("div",{"data-testid":v.c$.CREDIT_CARD_BOX,className:"tw-flex tw-flex-col tw-gap-1",children:[(0,r.jsx)(b.S,{className:$,children:"Pago com:"}),z]})}let Y=(0,R.C$)({_common:"tw-text-sm tw-font-semibold",vans:"tw-font-bold",schutz:"tw-font-bold"}),K="tw-text-boulder";function OrderSummary(e){let{code:t,status:n,productsPrice:a,deliveryCost:i,discountPrice:s,totalPrice:c,paymentMode:o,paymentInfo:l,salesLinkURL:d,isPaid:u,createdFormatted:x,installments:p,installmentsValuePrice:m}=e,h=x.split(" ").shift();return(0,r.jsxs)("div",{className:"tw-mb-5",children:[(0,r.jsxs)("header",{className:"tw-mb-2 tw-flex tw-flex-col tw-gap-3 md:tw-flex-row md:tw-items-center md:tw-justify-between",children:[(0,r.jsxs)(b.S,{className:(0,R.m6)(Y,"tw-text-base"),children:["Pedido ",t]}),(0,r.jsxs)("div",{className:"order-status",children:[(0,r.jsx)(b.S,{className:Y,children:"Status:"})," ",(0,r.jsx)(y.l,{statusDisplay:n})]})]}),(0,r.jsxs)("div",{className:"tw-mb-4 tw-flex tw-w-full tw-items-center tw-gap-2 tw-rounded-lg tw-bg-link-water tw-p-2 tw-text-azure-radiance",children:[(0,r.jsx)(O.X,{name:"fraudAlert",size:16}),(0,r.jsxs)("p",{className:"tw-text-xs",children:[(0,r.jsx)("span",{className:"tw-font-semibold",children:"Nunca solicitamos"})," ","informa\xe7\xf5es ou pagamentos extras ap\xf3s a compra. Em caso de d\xfavida,"," ",(0,r.jsx)("a",{href:P.H,target:"_blank",className:"tw-underline",children:"fale com nosso atendimento pelos canais oficiais."})]})]}),(0,r.jsxs)("div",{className:"payment-order tw-mb-5 tw-flex tw-flex-col tw-gap-4 tw-text-sm lg:tw-flex-row lg:tw-justify-between",children:[(0,r.jsxs)("div",{className:"tw-flex tw-flex-shrink-0 tw-flex-col tw-gap-1",children:[(0,r.jsxs)("div",{"data-testid":v.c$.PURCHASE_VALUE,children:[(0,r.jsx)(b.S,{className:Y,children:"Valor da compra:"})," ",(0,r.jsx)("span",{className:K,children:a.formattedValue})]}),(0,r.jsxs)("div",{"data-testid":v.c$.DELIVERY_COST,children:[(0,r.jsx)(b.S,{className:Y,children:"Valor do frete:"})," ",(0,r.jsx)("span",{className:K,children:i.formattedValue})]}),s.value>0&&(0,r.jsxs)("div",{"data-testid":v.c$.DISCOUNT,children:[(0,r.jsx)(b.S,{className:Y,children:"Desconto:"})," ",(0,r.jsx)("span",{className:"tw-text-fun-green",children:s.formattedValue})]}),(0,r.jsxs)("div",{"data-testid":v.c$.PRODUCT_FULL_PRICE,children:[(0,r.jsx)(b.S,{className:Y,children:"Total:"})," ",(0,r.jsx)("span",{className:K,children:c.formattedValue})]}),(0,r.jsxs)("div",{"data-testid":v.c$.ORDER_PLACED_DATE,children:[(0,r.jsx)(b.S,{className:Y,children:"Pedido realizado em:"})," ",(0,r.jsx)("span",{className:K,children:h})]})]}),(0,r.jsx)(PaidWith,{paymentMode:o,paymentInfo:l,installments:p,installmentsValue:m.formattedValue,salesLinkURL:d,isPaid:u})]})]})}var J=n(57566),Q=n(39944);function ThirdPartyModal(e){let{isOpen:t,onClose:n}=e;return(0,r.jsxs)(J.u,{isOpen:t,onRequestClose:n,contentClassName:"tw-max-w-xs md:tw-max-w-md tw-px-5 tw-pt-12 tw-pb-8 tw-flex tw-flex-col tw-gap-5 tw-text-black tw-text-sm",children:[(0,r.jsx)("h3",{className:"tw-text-center tw-font-paragraph tw-text-base tw-font-semibold",children:"N\xe3o \xe9 poss\xedvel realizar a solicita\xe7\xe3o"}),(0,r.jsx)("p",{children:"Este pedido cont\xe9m itens vendidos por uma loja parceira do ZZ MALL. Por isso, a solicita\xe7\xe3o de devolu\xe7\xe3o n\xe3o pode ser conclu\xedda por este fluxo."}),(0,r.jsx)("p",{children:"Nosso suporte pode ajudar voc\xea com os pr\xf3ximos passos."}),(0,r.jsxs)("div",{className:"tw-mt-1 tw-flex tw-flex-col tw-gap-2",children:[(0,r.jsx)(o(),{href:Q.B.EASY_EXCHANGE,children:(0,r.jsx)(x.z,{className:"tw-m-0 tw-w-full tw-text-sm",children:"Entenda como funciona"})}),(0,r.jsx)(x.z,{className:"tw-m-0 tw-border-none tw-bg-transparent tw-text-sm tw-text-black",onClick:n,children:"Voltar"})]})]})}let ee=(0,f.w)(e=>e.EarnedStrip),et="Ocorreu um erro ao carregar o pedido, tente novamente",en="Ocorreu um erro ao buscar suas solicita\xe7\xf5es, tente novamente!",er=(0,R.C$)({_common:"tw-m-0 tw-min-h-10 tw-h-10",alexandre_birman:"tw-text-base",anacapri:"tw-h-12 tw-min-h-12 tw-text-base",schutz:"tw-h-9 tw-min-h-9 tw-text-xs",vans:"tw-font-bold tw-text-base",zzmall:"tw-h-12 tw-min-h-12"});function OrderPage(e){let{slots:t,orderId:n,...a}
1=e,[i,c]=(0,s.useState)((0,h.f)()),[f,R]=(0,s.useState)(!0),[O,P]=(0,s.useState)(!1),[v,b]=(0,s.useState)([]),y=(0,l.useRouter)(),{toast:A}=(0,_.pm)(),D=(0,d.Fg)(),I=i.consignments.every(e=>e.entries.every(e=>(0,w.w)(e.orderEntry.product)));(0,s.useEffect)(()=>{!async function(){R(!0);let{result:e,hasError:t,errors:r}=await N.p.getOrder(n),a=r.some(e=>{let{type:t}=e;return"UnknownIdentifierError"===t});if(a){y.replace(p.Z.NOT_FOUND,y.asPath,{shallow:!0});return}if(t){A.error(et),T.vU({title:et,stack:r}),R(!1);return}R(!1),e&&(e.salesLinkURL&&!e.isPaid&&(e.paymentMode.code=m.G4.SALES_LINK,e.paymentInfo.expiryDate=e.salesLinkExpirationDate),c(e))}()},[n,y,A]);let S=(0,s.useCallback)(async function(){let{hasError:e,result:t,errors:n}=await j.d.getUserExchanges();if(e){A.error(en),T.vU({title:en,stack:n}),R(!1);return}if(t){let e=t.filter(e=>e.order===i.code);b(e)}R(!1)},[i.code,A]);(0,s.useEffect)(()=>{S()},[S]);let U=i.isExchangeable&&!(i.isExchanged&&0===v.length),k=i.isExchanged?"Acompanhar devolu\xe7\xe3o":"Solicitar devolu\xe7\xe3o",L=i.isExchanged?1===v.length?"".concat(p.Z.MY_ACCOUNT.EXCHANGE_DETAILS,"/").concat(v[0].protocol):p.Z.MY_ACCOUNT.EXCHANGE_ORDER:"".concat(p.Z.MY_ACCOUNT.EXCHANGE_ORDER,"/").concat(n,"/request");return(0,r.jsxs)(g.R,{slots:t,...a,children:[(0,r.jsxs)("div",{className:"order-page tw-flex tw-flex-col",children:[(0,r.jsx)(C.v,{iconName:"box",iconSize:15,title:"Detalhes do pedido"}),(0,r.jsxs)("div",{className:"order-page__container-detail tw-relative tw-bg-white tw-px-5 tw-pb-4 tw-pt-5",children:[f&&(0,r.jsx)(u.a,{size:50}),!f&&(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(OrderSummary,{code:i.code,status:i.statusDisplay,productsPrice:i.subTotal,deliveryCost:i.deliveryCost,discountPrice:i.totalDiscounts,totalPrice:i.totalPrice,paymentMode:i.paymentMode,paymentInfo:i.paymentInfo,installments:i.installments,installmentsValuePrice:i.installmentsValuePrice,salesLinkURL:i.salesLinkURL,isPaid:i.isPaid,createdFormatted:i.createdFormatted}),(0,r.jsx)(ee,{className:"tw-mb-5",earnedAmount:i.wallet.earnedAmount}),i.consignments.map((e,t)=>(0,r.jsx)(E.X,{consignment:e,consignmentIndex:t,totalConsignments:i.consignments.length,order:i},e.code))]})]}),(0,r.jsxs)("div",{className:"tw-mt-5 tw-flex tw-flex-col tw-gap-2 sm:tw-flex-row sm:tw-justify-end",children:[(0,r.jsx)(o(),{href:p.Z.MY_ACCOUNT.ORDERS,passHref:!0,legacyBehavior:!0,children:(0,r.jsx)(x.z,{as:"a",variant:D.commonButtonVariants.myAccount.seeMore,className:er,children:"Ver todos os pedidos"})}),U&&(0,r.jsx)(o(),{href:L,passHref:!0,legacyBehavior:!0,children:(0,r.jsx)(x.z,{as:"a",className:er,onClick:function(e){!i.isExchanged&&I&&(e.preventDefault(),P(!0))},children:k})})]})]}),O&&(0,r.jsx)(ThirdPartyModal,{isOpen:O,onClose:()=>P(!1)})]})}var ea=n(85413),ei=!0;function Order(e){let{slots:t,orderId:n}=e;return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(i(),{children:(0,r.jsx)("title",{children:"Detalhes do pedido ".concat(n," | ").concat(ea.T.PAGE_TITLE_BRAND_NAME)})}),(0,r.jsx)(OrderPage,{slots:t,orderId:n})]})}},60383:function(e,t,n){"use strict";n.d(t,{d:function(){return h}});var r=n(11163),a=n.n(r),i=n(15514),s=n(73436),c=n(42048),o=n(21607),l=n(40307),d=n(65487),u=n(2182),x=n(45613),p=n(23455);let m={exchangeAction:"",entryIndex:0};async function getUserExchanges(){let e=await x.hi.get("/users/current/returns");return(0,p.m9)(e.data,e=>(0,o.BM)(e.returns))}let getExchangeDetails=async e=>{let t=await x.hi.get("/users/current/returns/protocol/".concat(e));return(0,p.m9)(t.data,e=>(0,o.F5)(e))};async function getLastUserExchange(){let e=await x.hi.get("/users/current/returns/lastreturnrequest");return(0,p.m9)(e.data,e=>(0,l.X)(e))}function generateNavigationStack(e){return[...e.entries.flatMap((t,n)=>{let r=[];t.action===i.Tf.RETURN_WITH_REFUND&&r.push({url:"".concat(s.f.ACTION_REFUND,"/").concat(n),name:s.f.ACTION_REFUND}),t.action===i.Tf.RETURN_WITH_REPLACEMENT&&r.push({url:"".concat(s.f.ACTION_EXCHANGE,"/").concat(n),name:s.f.ACTION_EXCHANGE});let a=[{url:"".concat(s.f.REASON,"/").concat(n),name:s.f.REASON},{url:"".concat(s.f.ACTION,"/").concat(n),name:s.f.ACTION},...r],c=e.entries.length>1;return c?a:[{url:s.f.REQUEST,name:s.f.REQUEST},...a]}),{name:s.f.ADDRESS,url:s.f.ADDRESS},{name:s.f.REVIEW,url:s.f.REVIEW},{name:s.f.RESUME,url:s.f.RESUME}]}function getOrderId(){if(u.sk())return"";let{orderId:e}=a().query;return u.aW(e)}let getExchangeOrder=async e=>
1{let t=await x.hi.get("users/current/orders/".concat(e,"/entriesreturn?fields=FULL"));return(0,p.m9)(t.data,e=>(0,d.l)(e))},postExchangeOrder=async e=>{let t=await x.hi.post("users/current/returns",e);return(0,p.m9)(t.data,e=>({protocol:e||""}))},h={getActionAndEntryIndex:function(){if(u.sk())return{exchangeAction:"",entryIndex:0};let{actions:e}=a().query,t=u.aW(null==e?void 0:e[0])||m.exchangeAction,n=Number(u.aW(null==e?void 0:e[1]))||m.entryIndex;return{exchangeAction:t,entryIndex:n}},generateNavigationStack,getOrderId,getNextPath:function(e){var t;let n=generateNavigationStack(e),r=function(e){let t=e.map(e=>e.url),n=function(){let{actions:e}=a().query,t=Array.isArray(e)?[...e].join("/"):e;return t}();return n?t.indexOf(n):0}(n)+1,i="".concat(c.Z.MY_ACCOUNT.EXCHANGE_ORDER,"/").concat(getOrderId(),"/").concat((null===(t=n[r])||void 0===t?void 0:t.url)||"");return i},getUserExchanges,getExchangeDetails,getLastUserExchange,getExchangeOrder,postExchangeOrder,EXCHANGES_SHOW_LIMIT:2}},71009:function(e,t,n){"use strict";n.d(t,{p:function(){return l}});var r=n(16823),a=n(47317),i=n(96306),s=n(54774),c=n(45613),o=n(23455);let postOrder=async e=>{let{cartId:t,body:n,gRecaptchaToken:a=""}=e,i=await c.hi.post("/users/current/orders?cartId=".concat(t,"&fields=FULL"),n||{},{headers:{captchaResponse:a}});return(0,o.m9)(i.data,e=>(0,r.f)(e))},getOrder=async e=>{let t=await c.hi.get("/users/current/orders/".concat(e,"?fields=ORDER_DETAIL"));return(0,o.m9)(t.data,e=>(0,r.f)(e))},order_getOrders=async(e,t)=>{let n=await c.hi.get("users/current/orders?fields=ORDER_LIST¤tPage=".concat(e,"&pageSize=").concat(t));return(0,o.m9)(n.data,e=>(function(){var e,t;let n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return{orders:(e=n.orders)?e.map(e=>(0,r.f)(e)):[],pagination:(0,a.y)(n.pagination),sorts:(t=n.sorts)?t.map(e=>(0,i.m)(e)):[]}})(e))},getOrderGAInformations=async e=>{let t=await c.hi.get("users/current/orders/ga-information/".concat(e));return(0,o.m9)(t.data,e=>(0,s.b)(e))},l={postOrder,getOrder,getOrders:order_getOrders,getOrderGAInformations}}},function(e){e.O(0,[2422,741,3985,8597,3823,3445,4607,3516,3193,9774,2888,179],function(){return e(e.s=51638)}),_N_E=e.O()}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.