@soma-vertical-web/multi-lib 0.0.22 → 0.0.24

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (91) hide show
  1. package/cms/ContentTypes/CommonPage/CommonPage.d.ts +3 -0
  2. package/cms/ContentTypes/CommonPage/DataScreening.d.ts +6 -0
  3. package/cms/ContentTypes/CommonPage/index.d.ts +2 -0
  4. package/cms/ContentTypes/FlagsAndTags/index.d.ts +1 -0
  5. package/cms/ContentTypes/index.d.ts +6 -0
  6. package/cms/Factories/common.d.ts +7 -0
  7. package/cms/Factories/contentType.d.ts +9 -0
  8. package/cms/Factories/index.d.ts +2 -0
  9. package/cms/Factories/section.d.ts +7 -0
  10. package/cms/Sections/Banner/Component.d.ts +7 -0
  11. package/cms/Sections/Banner/Composite/Content.d.ts +4 -0
  12. package/cms/Sections/Banner/Composite/Slot.d.ts +0 -0
  13. package/cms/Sections/Banner/adapter.d.ts +32 -0
  14. package/cms/Sections/Banner/index.d.ts +8 -0
  15. package/cms/Sections/BennefitsBar/Component.d.ts +3 -0
  16. package/cms/Sections/BennefitsBar/index.d.ts +8 -0
  17. package/cms/Sections/TextContent/Component.d.ts +4 -0
  18. package/cms/Sections/TextContent/Composite/Content.d.ts +6 -0
  19. package/cms/Sections/TextContent/Composite/ContentWrapper.d.ts +3 -0
  20. package/cms/Sections/TextContent/adapter.d.ts +3 -0
  21. package/cms/Sections/TextContent/index.d.ts +5 -0
  22. package/cms/Sections/_common/Accordion.d.ts +2 -0
  23. package/cms/Sections/_common/BannerItem.d.ts +5 -0
  24. package/cms/Sections/_common/TextStructure.d.ts +17 -0
  25. package/cms/Sections/_common/interfaces.d.ts +8 -0
  26. package/cms/Sections/index.d.ts +10 -0
  27. package/cms/helpers/index.d.ts +4 -1
  28. package/cms/index.d.ts +13 -7
  29. package/cms/ui/ContentTypes/CommonPage/CommonPage.d.ts +3 -0
  30. package/cms/ui/ContentTypes/CommonPage/DataScreening.d.ts +6 -0
  31. package/cms/ui/ContentTypes/CommonPage/index.d.ts +2 -0
  32. package/cms/ui/ContentTypes/index.d.ts +1 -0
  33. package/cms/ui/Factories/section.d.ts +7 -0
  34. package/cms/ui/Sections/Banner/Component.d.ts +7 -0
  35. package/cms/ui/Sections/Banner/Composite/Content.d.ts +4 -0
  36. package/cms/ui/Sections/Banner/Composite/Slot.d.ts +0 -0
  37. package/cms/ui/Sections/Banner/adapter.d.ts +32 -0
  38. package/cms/ui/Sections/Banner/index.d.ts +8 -0
  39. package/cms/ui/Sections/TextContent/Component.d.ts +4 -0
  40. package/cms/ui/Sections/TextContent/Composite/Content.d.ts +3 -0
  41. package/cms/ui/Sections/TextContent/Composite/ContentWrapper.d.ts +3 -0
  42. package/cms/ui/Sections/TextContent/adapter.d.ts +3 -0
  43. package/cms/ui/Sections/TextContent/index.d.ts +8 -0
  44. package/cms/ui/Sections/_common/Accordion.d.ts +2 -0
  45. package/cms/ui/Sections/_common/BannerItem.d.ts +5 -0
  46. package/cms/ui/Sections/_common/TextStructure.d.ts +17 -0
  47. package/cms/ui/Sections/_common/interfaces.d.ts +8 -0
  48. package/cms/ui/Sections/index.d.ts +4 -0
  49. package/data/api/cms/index.d.ts +1 -1
  50. package/index-BCZReEF1.js +4 -0
  51. package/index-BI5_UgNN.mjs +3210 -0
  52. package/index-BaPdEOcD.js +4 -0
  53. package/index-C7gBx1Sj.js +4 -0
  54. package/index-CAM8BZOC.mjs +3509 -0
  55. package/index-CG59Ho-O.mjs +3514 -0
  56. package/index-CWsS9JhJ.mjs +69 -0
  57. package/index-CqPFy76Q.mjs +3531 -0
  58. package/index-DVeRXseR.js +4 -0
  59. package/index-DXjpbLiy.js +4 -0
  60. package/index-DmJIk8vB.mjs +3210 -0
  61. package/index-KIgYoXyH.mjs +3526 -0
  62. package/index-NWyULgUV.js +4 -0
  63. package/index-T-_Ys9t7.mjs +3483 -0
  64. package/index-T1F-4OSy.js +4 -0
  65. package/index-dgE7GGD0.js +4 -0
  66. package/index-fnNrOQ41.js +1 -0
  67. package/index-tKMO8iJa.mjs +3215 -0
  68. package/index.d.ts +1 -1
  69. package/index.js +4 -4
  70. package/index.mjs +5610 -5186
  71. package/index2.js +1 -1
  72. package/index2.mjs +97 -34
  73. package/layout/template/PDP/Composite/Gallery/index.d.ts +3 -4
  74. package/package.json +1 -1
  75. package/server.d.ts +4 -3
  76. package/style.css +1 -1
  77. package/types/cms/ContentTypes/CommonPage/index.d.ts +6 -2
  78. package/types/cms/ContentTypes/FlagsAndTags/index.d.ts +1 -1
  79. package/types/cms/ContentTypes/Footer/index.d.ts +1 -1
  80. package/types/cms/ContentTypes/Header/index.d.ts +1 -1
  81. package/types/cms/ContentTypes/LookbookPage/index.d.ts +1 -1
  82. package/types/cms/ContentTypes/Multimarcas/index.d.ts +1 -1
  83. package/types/cms/ContentTypes/NotFoundPage/index.d.ts +2 -3
  84. package/types/cms/Sections/Banner/index.d.ts +2 -1
  85. package/types/cms/Sections/BennefitsBar/index.d.ts +5 -0
  86. package/types/cms/Sections/TextContent/index.d.ts +4 -2
  87. package/types/cms/api/index.d.ts +0 -11
  88. package/types/constants.d.ts +6 -0
  89. package/types/data/api/cms/index.d.ts +11 -0
  90. package/types/layout/team-components/Timer/index.d.ts +1 -1
  91. package/types/layout/templates/PDP/index.d.ts +6 -0
package/index.js CHANGED
@@ -1,4 +1,4 @@
1
- "use strict";var Da=Object.defineProperty;var qa=(e,t,r)=>t in e?Da(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r;var pt=(e,t,r)=>qa(e,typeof t!="symbol"?t+"":t,r);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("react/jsx-runtime"),b=require("react"),Se=require("idb-keyval"),qe=require("zustand"),m=require("@soma-vertical-web/core-components"),za=require("./index-BK5yScKK.js"),$a=require("react-dom"),Le=require("@soma-vertical-web/foundations"),Cr=require("axios"),jr=require("@date-fns/tz"),er=b.createContext({}),Fa=({data:e,children:t})=>o.jsx(er.Provider,{value:{tags:e==null?void 0:e.config},children:t}),gn=()=>{const{tags:e}=b.useContext(er),t=b.useCallback(r=>{var i,c,l,u;const n=(c=(i=e==null?void 0:e.commercial)==null?void 0:i.items)==null?void 0:c.find(p=>{var f;return(f=r??[])==null?void 0:f.find(d=>d.id===p.key)}),a=(u=(l=e==null?void 0:e.institucional)==null?void 0:l.items)==null?void 0:u.find(p=>{var f;return(f=r??[])==null?void 0:f.find(d=>d.id===p.key)}),s=e==null?void 0:e.flagPdp;return{commercial:n,institucional:a,flagPdp:s}},[e]);return{tags:e,getAvailableProductTag:t}},yn=({gridScrollBack:e})=>{b.useEffect(()=>{typeof window<"u"&&(e!=null&&e.refer)&&sessionStorage.setItem(e==null?void 0:e.refer,"true")},[])},vn=b.createContext({}),Ba=({children:e,gridScrollBack:t})=>{const r=b.useRef(null);return yn({gridScrollBack:t}),o.jsx(vn.Provider,{value:{sizesContainerRef:r},children:e})},Ha=()=>{const e=b.useContext(vn);if(e===void 0)throw new Error("useContext(PDPContext) must be used within a PDPProvider");return e},me=(e,t=!0)=>Intl.NumberFormat("pt-BR",{style:"currency",currency:"BRL",minimumFractionDigits:t?2:0}).format(e),bn=({valueInCents:e,hasFree:t,freeTaxMessage:r})=>e===0?t?r:"R$ 0,00":me(e/100),tr=(e,t)=>{const[r,n]=e.split(t);return{name:r.trim(),size:n?n.trim():""}},rr=(e,t)=>{if(!e)return{};const[r,n]=e.split(t);return{color:r==null?void 0:r.trim(),size:n==null?void 0:n.trim()}},xn=(e,t="tamanho")=>{if(e.additionalProperty){const[r]=e.additionalProperty;return r!=null&&r.name?r.name.toLocaleLowerCase()===t?r.value:e.name:""}return e.name},Ua=e=>e.replace(/\//g,""),Cn=({items:e,NAME_SPLIT_SYMBOL:t})=>{const r={price:0,listPrice:0,installments:{count:0,value:0}},n=(i,c)=>{var d;c&&(c.sellerId=i.sellerId,c.sellerName=i.sellerName,c.available=!0,c.isSellerDefault=i.sellerDefault);const{Price:l,ListPrice:u,PaymentOptions:{installmentOptions:p}}=i.commertialOffer;r.price=l,r.listPrice=u;const f=(d=p==null?void 0:p[0])==null?void 0:d.installments;if(f){const{count:_,value:y}=f[f.length-1];r.installments={count:_,value:y/100}}};let a=!0;const s=e.reduce((i,c)=>{var p;const l={name:c.name,sku:c.itemId,value:((p=c.Tamanho)==null?void 0:p[0])??tr(c.nameComplete??c.name,t).size,available:!1,sellerId:"",sellerName:"",isSellerDefault:!1},u=c.sellers.filter(f=>(f.sellerDefault&&f.commertialOffer.IsAvailable&&(l.available=!0,n(f,l)),f.commertialOffer.IsAvailable));return!l.isSellerDefault&&u.length>0&&(l.available=!0,n(u[0],{...l,sellerId:u[0].sellerId,sellerName:u[0].sellerName})),l.available===!1&&(a=!1),i.push(l),i},[]);return{...r,sizes:s,allSizesAvailable:a}},jn=e=>e?!e.offers.offers.find(({quantity:t=0})=>t>0):!1,In=(e,t)=>{const r=e.find(n=>n.availability.includes("InStock")&&n.quantity&&n.listPrice>0&&n.seller.identifier===t);return r||e.find(n=>n.availability.includes("InStock")&&n.quantity&&n.listPrice>0)},Sn=e=>e.find(t=>t.imageLabel==="10"),Nn=(e,t)=>{const r=/\/ids\/(\d+)\//,n=e.match(r);return n?e.replace(`/${n[1]}/`,`/${n[1]}-${t.width}-${t.height}/`):e},Pn=(e,t)=>{const r=/\/ids\/(\d+)-(\d+)-(\d+)\//,n=e.match(r);return n?e.replace(`/${n[1]}-${n[2]}-${n[3]}/`,`/${n[1]}-${t.width}-${t.height}/`):e},Tn=({images:e,label:t})=>{const r=e.filter(n=>n.keywords===t.first||n.keywords===t.second||n.alternateName===t.first||n.alternateName===t.second);return r.length===0?[e[0]]:r},Wa=e=>{const[t,r]=e.split("/").map(Number);if(Number.isNaN(t)||Number.isNaN(r))throw new Error("[ERROR ASPECT RATIO IMAGE]: Invalid aspect ratio format");return r/t},En=(e,t,r)=>{t&&(e?(t.getAttribute("src")||(t.src=r??""),t.play()):t.pause())},Va=Object.freeze(Object.defineProperty({__proto__:null,disableSKU:jn,formatPriceToCurrency:me,freightParsePrice:bn,getAspectRatio:Wa,getColorAndSizeFromSkuName:rr,getFirstImages:Tn,getSKUName:xn,getSkuInfos:Cn,getThumbImage:Sn,getValidOffer:In,removeSlashes:Ua,resizingImg:Nn,setVideoPlay:En,splitNameAndSizeFromFullName:tr,updatedResizedImg:Pn},Symbol.toStringTag,{value:"Module"})),pe=({event:e,data:t})=>{const r=(window==null?void 0:window.dataLayer)||[];t.ecommerce&&r.push({ecommerce:null}),r.push({...e&&{event:`custom_${e}`},...t})},U={configs:{PLP_FILTERS:[{key:"",label:"",eventLabel:"",order:0}],currency:"BRL",categoryOff:"bazar",storeUrl:"https://www.example.com",MAIN_IMAGE:"1",NAME_SPLIT_SYMBOL:"-"},productEvents:(e,t)=>{const{event:r,commonData:n,customData:a,promotionInfo:s,itemList:i,outsideEcommerceData:c}=e,{availableSizes:l,sizes:u,price:p}=n,f={...r==="view_item"?{currency:U.configs.currency,value:p,grade_disponivel:l??(u?wn(u):"")}:{},...r==="add_to_wishlist"||r==="remove_from_wishlist"?{value:p,currency:U.configs.currency}:{}},d=Ge({data:n,customData:{...a,...i,...s},configs:U.configs});pe({event:r,data:{...c,ecommerce:{...i,...f,items:[d]}}}),typeof t=="function"&&t(d,f)},productListEvent:e=>{const{commonData:{products:t},promotionInfo:r,itemList:n,outsideEcommerceData:a,customData:s}=e;if(t.length===0)return;const i=t.map(({node:c},l)=>Ge({data:{...c},customData:{...r,index:l,...s!=null&&s.item_list_name?{item_list_name:s==null?void 0:s.item_list_name}:n},configs:U.configs}));pe({event:"view_item_list",data:{...a,ecommerce:{...s!=null&&s.item_list_name?{item_list_name:s==null?void 0:s.item_list_name}:n,items:i}}})},skuEvents:e=>{const{event:t,commonData:{products:r},customData:n,supportData:{selectedSkus:a,price:s},promotionInfo:i,itemList:c,outsideEcommerceData:l}=e;let u=0;const p=r.map(f=>{var h,g,v,N,S,C,x,j,I;const d=a==null?void 0:a.find(P=>(f.productId??f.id)===P.productId);let _={...i,...c};if(d){const P=On(),w=An(P,d);w&&(_={..._,...w}),t==="add_to_cart"&&(i||c)&&Wt({persistedData:P,type:"add",sku:(d==null?void 0:d.id)??(d==null?void 0:d.sku),newData:{promotionInfo:i,itemList:c}}),t==="remove_from_cart"&&Wt({persistedData:P,type:"remove",sku:(d==null?void 0:d.id)??(d==null?void 0:d.sku)})}u+=f.price??((v=(g=(h=d==null?void 0:d.offers)==null?void 0:h.offers)==null?void 0:g[0])==null?void 0:v.price)??0;const y=(d==null?void 0:d.size)??rr((d==null?void 0:d.skuName)??(d==null?void 0:d.name)??((N=f.itemOffered)==null?void 0:N.skuName),U.configs.NAME_SPLIT_SYMBOL).size;return Ge({data:f,customData:{...n,..._??{...i,...c},item_sku:(d==null?void 0:d.id)??(d==null?void 0:d.sku)??((S=f.itemOffered)==null?void 0:S.sku),quantity:(n==null?void 0:n.quantity)??f.quantity??1,item_variant2:y,seller_id:(d==null?void 0:d.sellerId)??(d==null?void 0:d.seller)??((I=(j=(x=(C=d==null?void 0:d.offers)==null?void 0:C.offers)==null?void 0:x[0])==null?void 0:j.seller)==null?void 0:I.identifier)??f.seller},configs:U.configs})});pe({event:t,data:{...l,ecommerce:{value:s??u,currency:U.configs.currency,items:p}}})},filterEvent:e=>{var i;const{commonData:t,customData:r,outsideEcommerceData:n}=e,a={},s={};Array.isArray(t==null?void 0:t.selectedFacets)&&((i=t==null?void 0:t.selectedFacets)!=null&&i.length)&&((t==null?void 0:t.selectedFacets).forEach(({key:c,value:l})=>{var f;const u=((f=U.configs.PLP_FILTERS.find(d=>d.key===c))==null?void 0:f.eventLabel)??c,p=(a==null?void 0:a[u])||[];u==="price_range"&&l.replace(":","-"),a[u]=[...p,l]}),Object.keys(a).forEach(c=>s[c]=a[c].join(", "))),pe({event:"filter",data:{...n,...s,...r}})},viewCartEvent:e=>{var p,f,d,_,y,h,g,v,N,S;const{commonData:t,outsideEcommerceData:r}=e,{cartStore:n}=t;if(!n)return;const a=window.localStorage.getItem("persistedCartEventsData"),s=a?JSON.parse(a):{},i=n.items.map(C=>{const{promotionInfo:x,itemList:j}=s[C.id]??{};return Ge({data:{...C,price:C.price/100,listPrice:C.listPrice/100},customData:{...x,...j,item_sku:C.id??C.itemOffered.sku,quantity:C.quantity??1},configs:U.configs})}),c=(((p=n.totalizers.find(C=>C.name==="Total dos Itens"))==null?void 0:p.value)??0)/100,l=(((f=n.totalizers.find(C=>C.name==="Total dos Descontos"))==null?void 0:f.value)??0)/100,u=((d=n.marketingData)==null?void 0:d.utmiCampaign)==="codigodavendedora"?(_=n.marketingData)==null?void 0:_.utmCampaign:(h=String((y=n.openTextField)==null?void 0:y.value))==null?void 0:h.split(" - ")[0];pe({event:"view_cart",data:{...r,ecommerce:{currency:U.configs.currency,value:c+l,total_discount:Math.abs(l),cep_preenchido:!!((v=(g=n.shippingData)==null?void 0:g.address)!=null&&v.postalCode),...u?{seller_coupon_name:u}:{},...((N=n.marketingData)==null?void 0:N.coupon)&&{sale_coupon_name:(S=n.marketingData)==null?void 0:S.coupon},subtotal:c,items:i}}})},readyEvents:e=>{const{event:t,readyData:r}=e;pe({event:t,data:{...r}})}},wn=e=>e.reduce((t,r)=>(r.available&&t.push(r.value),t),[]).toString(),Ga=e=>{const t=e.length;return{...e&&e.length>0?{item_category:e[0].includes(U.configs.categoryOff)?"Bazar":"Coleção",...e[1]?{item_category2:e[1]}:{},...t>2?{item_category3:e[t-1]}:{}}:{}}},Ge=({data:e,customData:t,configs:r})=>({...Ka(e,r==null?void 0:r.MAIN_IMAGE),...Xa(e),...Qa(e),...Ya(e),...t}),Rn=()=>{var e,t;return document?((t=(e=window.document.head.querySelector('meta[name="category"]'))==null?void 0:e.getAttribute("content"))==null?void 0:t.split("_"))??[]:[]},On=()=>{const e=window.localStorage.getItem("persistedCartEventsData");return e?JSON.parse(e):null},An=(e,t)=>e==null?void 0:e[t],Wt=({persistedData:e,type:t,sku:r,newData:n})=>{if(!e&&t==="add"){window.localStorage.setItem("persistedCartEventsData",JSON.stringify({[r]:n}));return}if(e&&t==="add"){window.localStorage.setItem("persistedCartEventsData",JSON.stringify({...e,[r]:n}));return}e&&t==="remove"&&(delete e[r],window.localStorage.setItem("persistedCartEventsData",JSON.stringify(e)))},Ka=(e,t="1")=>{var s,i,c,l,u,p,f,d,_,y,h;const r=e.productReference??e.gtin??e.productRefId,n=e.image??((i=(s=e.items)==null?void 0:s[0])==null?void 0:i.images)??((c=e.itemOffered)==null?void 0:c.image),a=n==null?void 0:n.find(g=>g.alternateName===t||g.imageLabel===t||g.keywords===t);return{item_id:e.productId??((l=e.isVariantOf)==null?void 0:l.productGroupID)??((u=e.isVariationOf)==null?void 0:u.productGroupID)??((f=(p=e.itemOffered)==null?void 0:p.isVariationOf)==null?void 0:f.productGroupID),item_ref:/_\d$/.test(r)?r.slice(0,-2):r,item_name:e.productTitle??e.productName??e.name??tr((d=e.itemOffered)==null?void 0:d.name,U.configs.NAME_SPLIT_SYMBOL).name,item_brand:((_=e.brand)==null?void 0:_.brandName)??((y=e.brand)==null?void 0:y.name)??e.brand??((h=e.itemOffered)==null?void 0:h.brand.name),item_url:`${U.configs.storeUrl}${e.linkText}/p`,item_image:(a==null?void 0:a.url)??(a==null?void 0:a.imageUrl)}},Ir=e=>Array.isArray(e)?e.reduce((t,r)=>(r.length>t.length&&(t=r),t),""):e,Xa=e=>{var u,p;const{categories:t,categoriesIds:r}=e,n=t??((u=e.itemOffered)==null?void 0:u.categories),a=r??((p=e.itemOffered)==null?void 0:p.categoriesIds),s=Ir(n),i=Ir(a),c=s.slice(1,-1).split("/"),l=i.slice(1,-1).split("/");return{item_category:c[0].toLowerCase().includes(U.configs.categoryOff)?"Bazar":"Coleção",...c[1]&&{item_category2:c[1]},...c.length>2&&{item_category3:c[c.length-1]},item_category_id:l[l.length-1],...l.length>1&&{item_parent_category_id:l[l.length-2]}}},Qa=e=>{var a,s,i,c,l,u;const t=((a=e.itemOffered)==null?void 0:a.skuName)??((c=(i=(s=e.isVariantOf)==null?void 0:s.hasVariant)==null?void 0:i[0])==null?void 0:c.name)??((u=(l=e.items)==null?void 0:l[0])==null?void 0:u.name),{color:r,size:n}=rr(t,U.configs.NAME_SPLIT_SYMBOL);return{item_variant:r,...e.itemOffered&&{item_variant2:n}}},Ya=e=>{var l,u;const{price:t,listPrice:r,installments:n}=e,a=t??((l=e.offers)==null?void 0:l.lowPrice)??0,s=r??((u=e.offers)==null?void 0:u.highPrice)??0,i=s?s-a:0,c=i%1===0?i:Number(i.toFixed(2));return{...t&&{price:a??s},...s&&{list_price:s,discount:c},...n&&{installments:n==null?void 0:n.count,installment_value:n==null?void 0:n.value},item_currency:U.configs.currency}},Mn=()=>{const[e,t]=Rn(),[r,n]=e.split("-"),a=r.includes("shop")||r.includes("sale")?r:"";return{page_category:a&&n?n:"",page_departament:a,id:t,name:e}},Za=Object.freeze(Object.defineProperty({__proto__:null,eventsFunctions:U,findDataInPersistedData:An,getAvailablesSizes:wn,getCategories:Ga,getPageCategoryAndDepartmentFromSlug:Mn,getPersistedData:On,getProductListInfoFromHead:Rn,pushDatalayer:pe,updatePersistedData:Wt},Symbol.toStringTag,{value:"Module"})),kn=b.createContext({}),Ja=({children:e,evtFunctionsConfigs:t})=>{const r=b.useRef({}),n=b.useRef(null),a=b.useRef(null),s=b.useRef({}),i=b.useRef({trigger:!1,index:0}),c=({functionKey:p,data:f,callBack:d,timeout:_=100})=>{window.dataLayer||(window.dataLayer=[]),U.configs=t;try{typeof U[p]=="function"&&setTimeout(()=>{var y;f.promotionInfo=r.current,(y=a.current)!=null&&y.item_list_name&&(f.itemList=a.current),U[p](f,d)},_)}catch(y){pe({event:"error_event",data:{error_message:(y==null?void 0:y.message)??y}})}},l=({content:p})=>{c({functionKey:"readyEvents",data:{event:"select_content",readyData:{content_type:p.replace("::",":")}}})},u=({updatePromotionRef:p,promotion:f,index:d})=>{p&&(r.current={...f}),c({functionKey:"readyEvents",data:{event:"select_promotion",readyData:{ecommerce:{...f,...d!==void 0&&{index:d}}}}})};return o.jsx(kn.Provider,{value:{sendDataLayerEvent:c,triggerSelectItemEventRef:i,promotionEventRef:r,currentLocalRef:n,itemListRef:a,cartProductsFullDataRef:s,handleSelectContent:l,handleSelectPromotionEvent:u},children:e})},H=()=>b.useContext(kn),Ln=b.createContext({}),es=({children:e,productData:t,isKit:r,PDP_INFO:n,NAME_SPLIT_SYMBOL:a})=>{var R,M;const{sendDataLayerEvent:s,triggerSelectItemEventRef:i}=H(),{productId:c,productName:l,items:u,items:[{images:p,Videos:f}],description:d,["Composição"]:_="",productReference:y,categories:[h]}=t,{getAvailableProductTag:g}=gn(),v=g(Object.entries(t.clusterHighlights).map(T=>({id:T[0],name:T[1]}))),N=h.slice(1,-1).split("/"),{installments:S,price:C,listPrice:x,sizes:j,allSizesAvailable:I}=Cn({items:u,NAME_SPLIT_SYMBOL:a}),P=Sn(p),w=[{label:`${n.product.description}`,value:"description",content:d},{label:`${n.product.materiais}`,value:"composition",content:_}],O=((M=(R=t.items)==null?void 0:R[0].name.split("-"))==null?void 0:M[0].trim())??t["Cores Filtráveis"]??[],q=()=>({commonData:{...t,sizes:j,price:C,listPrice:x,installments:S},customData:{installments:S==null?void 0:S.count,installment_value:Number(S==null?void 0:S.value).toFixed(2)}}),E=({sku:T,size:k})=>{const{commonData:z,customData:$}=q();s({functionKey:"productEvents",data:{event:"view_item",commonData:z,customData:{...$,...T&&{item_sku:T},...k&&{item_variant2:k}}}})};return b.useEffect(()=>{if(i.current.trigger){const{commonData:T,customData:k}=q();s({functionKey:"productEvents",data:{event:"select_item",commonData:T,customData:{...k,index:i.current.index}}}),i.current.trigger=!1}E({})},[]),o.jsx(Ln.Provider,{value:{productData:t,productId:c,productName:l,productReference:y,tag:v,items:u,sizes:j,allSizesAvailable:I,installments:S,price:C,listPrice:x,thumbImage:P,images:p,video:f[0],descriptionContent:w,breadcrumbList:N,isKit:r,colorName:O,handleViewItemEvent:E},children:e})},nr=()=>{const e=b.useContext(Ln);if(e===void 0)throw new Error("useContext(PDPDataContext) must be used within a PDPDataProvider");return e},ts={attachment:"ATTACHMENT",specification:"SPECIFICATION",attribute:"ATTRIBUTE"},oe=Promise.resolve(!1),Vt={id:"",isOpen:!1,items:[],loading:!1,marketingData:null,messages:[],openTextField:{},paymentData:null,shippingData:null,totalizers:[],itemMetadata:[],recentlyAddedProducts:[],addCoupon:()=>oe,addItem:()=>oe,addSellerCode:()=>oe,emptyCart:()=>{},removeItem:()=>oe,setIsOpen:()=>{},shipping:()=>oe,shippingUpdate:()=>oe,toggleServiceToProduct:()=>oe,updateItemQuantity:()=>oe,insertProfileEmail:()=>oe,setRecentlyAddedProducts:()=>{}},or=e=>e===0,Dn=(e,t)=>{if(!e||e.length===0)return[];let r="";const n=[],a=e.match(/\d+/g)??[];for(const s of a){const i=t[Number(s)];i&&(r+=(r?"/":"")+i,n.push(r))}return n},qn=e=>{const{availability:t,additionalInfo:{brandName:r},bundleItems:n,id:a,detailUrl:s,ean:i,imageUrl:c,name:l,listPrice:u,quantity:p,price:f,priceDefinition:d,productCategories:_,productCategoryIds:y,productId:h,refId:g,seller:v,referenceId:N,offerings:S,productRefId:C,skuName:x,sellingPrice:j}=e;return{availability:t,bundleItems:n,referenceId:N,productRefId:C,id:a,ean:i,itemOffered:{additionalProperty:[],brand:{name:r},categories:Dn(y,_),categoriesIds:y,gtin:g,image:[{alternateName:"1",url:c}],name:l,isVariationOf:{name:l,productGroupID:h},sku:a,slug:s,skuName:x},listPrice:u,quantity:p,offerings:S,price:f,priceDefinition:d,sellingPrice:j,seller:v}},zn=(e,t)=>{const r=e.map(n=>({id:n.id,quantity:n.quantity,seller:n.seller}));return Array.isArray(t)?[...r,...t]:[...r,t]},$n=(e,t)=>{const r=e.find(n=>n.id===t);if(r){const n=e.map((a,s)=>{var i,c;return{id:((i=a.itemOffered)==null?void 0:i.sku)??"",index:s,quantity:(r==null?void 0:r.id)===((c=a.itemOffered)==null?void 0:c.sku)?0:a.quantity,seller:a.seller??""}});return{updateItems:n,filterItems:n.filter(a=>a.id!==t)}}return{updateItems:[],filterItems:[]}},Fn=(e,t,r)=>e.filter(n=>n.availability!=="withoutStock"&&n.availability!=="https://schema.org/OutOfStock").map((n,a)=>{var s,i;return n.id===t?{id:n.id,index:a,quantity:r,seller:n.seller,sku:((s=n.itemOffered)==null?void 0:s.sku)??""}:{id:n.id,index:a,quantity:n.quantity,seller:n.seller,sku:((i=n.itemOffered)==null?void 0:i.sku)??""}}),Gt=(e,t)=>e.filter(r=>r.availability!=="withoutStock").findIndex(({id:r})=>r===t),rs=(e,t)=>{var r;return Array.isArray(e)?(((r=e==null?void 0:e.find(n=>{var a;return((a=n==null?void 0:n.id)==null?void 0:a.toLowerCase())===t}))==null?void 0:r.value)??0)/100:0},ns=e=>{const t=e.reduce((a,s)=>{const i=or(s.price)?0:s.quantity;return a+i},0),r=e.reduce((a,s)=>a+s.price*s.quantity,0),n=e.reduce((a,s)=>a+s.listPrice*s.quantity,0);return{totalItems:t,total:r,subTotal:n}},os=e=>Array.isArray(e)?e.filter(t=>t.availability!=="withoutStock").reduce((t,r)=>t+(or(r==null?void 0:r.price)?0:r.quantity),0):0,Bn=e=>{const{items:t,itemMetadata:r,marketingData:n,messages:a,orderFormId:s,openTextField:i,paymentData:c,shippingData:l,totalizers:u}=e;return{id:s,itemMetadata:r,items:Array.isArray(t)?t.map(qn):[],marketingData:n,messages:a,openTextField:i,paymentData:c,shippingData:l,totalizers:u}},Hn=(e,t)=>{const r=e.find(n=>n.id===t);return r?r.availability==="unavailableItemFulfillment":!1},as=(e,t)=>{const r=e.sku,n=e.isVariantOf.hasVariant.find(a=>a.sku===r);return n?n.name.split(t)[1]:"--"},Ne=(e,t,r=!1)=>!e&&t!==""?{code:300,value:t,statusOk:r}:e===t?{code:200,value:t,statusOk:r}:{code:400,value:t,statusOk:r},ss=(e,t)=>{const r=new Set;return[e,...t].filter(n=>!r.has(n)&&r.add(n),r)},Un=(e,t)=>t&&Array.isArray(t)&&t.find(n=>n.id===e)?Promise.resolve(e):Promise.resolve(!1),Wn=(e,t)=>t?Promise.resolve(e[t]):Promise.resolve(!1),Vn=async e=>{try{const t=await e();if(typeof t!="boolean")return t}catch(t){console.error(`[Error orderForm]: ${t}`)}return!1},Gn=(e,t)=>{if(t!==-1){const r=Number(e);return r?r+1:1}return e??1},Kn=(e,t)=>Array.isArray(e)?e.filter(r=>t==null?void 0:t.some(n=>n.id===r.id)):[],Xn=async(e,t)=>e.then(r=>[...r??[],...t??[]]),Q=async(e,t,r)=>{const{priority:n="auto",body:a}=t;return fetch(e,{headers:{"Content-Type":"application/json"},priority:n,method:"POST",body:JSON.stringify(a)}).then(async s=>{const i=await s.json();return r?i:Bn(i)})},Qn=(e,t,r)=>({notifications:[...e.notifications,{id:Date.now(),message:t,callback:r}]}),is=e=>[...Array.isArray(e)?e:[e],"faststore"],cs=Object.freeze(Object.defineProperty({__proto__:null,VALUE_REFERENCES:ts,addItemOrder:zn,addNotification:Qn,createItemOrder:qn,fetchCartAPI:Q,findItemIndex:Gt,findOptions:Kn,findTotalizerValue:rs,getCategories:Dn,getCode:Ne,getQuantity:Gn,getRemoveId:Un,getSize:as,getTotalItems:os,getTotalizer:ns,getValue:Wn,initialState:Vt,isGift:or,marketingTagsBuilder:is,mergeOptionsPromise:Xn,orderFormValues:Bn,promiseDefault:oe,removeQuantity:$n,updateItemSellerExternal:Hn,updateOrderFormPromise:Vn,updateQuantity:Fn,wishlistArray:ss},Symbol.toStringTag,{value:"Module"})),ls=()=>{const e=async(d,_)=>Q("/api/checkout/order-form/coupon",{body:{orderFormId:d,coupon:_}}),t=async(d,_)=>{if(_){const y=_.includes(" - ")?_.split(" - ")[0]:_,h=await Q("/api/checkout/order-form/seller-code",{body:{orderFormId:d,sellerCode:y}},!0);return Q("/api/checkout/order-form/attachments",{body:{orderFormId:d,sellerCode:y,sellerName:h instanceof Object&&"nome"in h?h==null?void 0:h.nome:""}}).then(g=>({...g,openTextField:{...(g==null?void 0:g.openTextField)??{},statusOk:(h==null?void 0:h.status)??!1}}))}else return Q("/api/checkout/order-form/attachments",{body:{orderFormId:d,sellerCode:"",sellerName:""}})},r=async(d,_,y)=>Q("/api/checkout/order-form/items",{body:{orderFormId:d,orderItems:zn(_,y)}}),n=async(d,_,y,h)=>Q("/api/checkout/order-form/offerings",{body:{id:_,itemIndex:y,orderFormId:d,remove:h}}),a=async d=>Q("/api/checkout/order-form/items/remove-all",{body:{orderFormId:d}}),s=async(d,_="low")=>Q("/api/checkout/order-form",{priority:_,body:{orderFormId:d??""}}),i=async(d,_)=>Q("/api/checkout/order-form/profile",{body:{orderFormId:d,email:_}}),c=async(d,_,y)=>{const h=$n(_,y);return Q("/api/checkout/order-form/items/update",{body:{orderItems:h.updateItems,orderFormId:d}})},l=async(d,_,y)=>Q("/api/checkout/order-form/shipping",{body:{orderFormId:d,country:y,postalCode:_}}),u=async(d,_,y)=>Q("/api/checkout/order-form/shipping/update",{body:{orderFormId:d,options:_,selectedAddresses:y}}),p=async(d,_,y,h)=>{const g=Fn(_,y,h);return Q("/api/checkout/order-form/items/update",{body:{orderFormId:d,orderItems:g}})};return{addCoupon:e,addItem:r,addSellerCode:t,giftItem:n,emptyCart:a,getOrderForm:s,insertProfileEmail:i,removeItem:c,shipping:l,shippingUpdate:u,updateItemQuantity:async(d,_,y,h,g)=>p(d,_,y,h).then(v=>v&&Array.isArray(v.items)?Hn(v.items,y)?p(d,_,y,g):v:!1)}},Kt="soma::cart",Me="soma::options",Te=qe.create((e,t)=>{const r=ls(),n=async(a,s,i)=>{e({loading:!0});const c=await Vn(a);if(typeof c!="boolean"){e({...c});const l=await Xn(Se.get(Me),i);return Se.set(Me,l),Wn(c,s).finally(()=>e({loading:!1,options:l}))}return oe};if(typeof window<"u"){const a=async s=>{if(s){const i=await Se.get(Me).then(u=>Kn(u,s.items));Se.set(Kt,s),Se.set(Me,i),e({...s,options:i});const c=new URLSearchParams(window.location.search),l=c.get("utm_campaign")||c.get("utmi_campaign")||"";l&&n(()=>r.addSellerCode(t().id,l.toUpperCase()),"openTextField")}};return Se.get(Kt).then(s=>r.getOrderForm(s?s.id:"").then(a)),{...Vt,addCoupon:async s=>n(()=>r.addCoupon(t().id,s),"marketingData"),addItem:(s,i)=>{n(()=>r.addItem(t().id,t().items,s),"items",i)},addSellerCode:async s=>n(()=>r.addSellerCode(t().id,s),"openTextField"),emptyCart:()=>{n(()=>r.emptyCart(t().id))},removeItem:async s=>{const i=await n(()=>r.removeItem(t().id,t().items,s),"items");return Un(s,i)},shipping:async(s,i="BR")=>n(()=>r.shipping(t().id,s,i),"shippingData"),shippingUpdate:async s=>n(()=>{var i;return r.shippingUpdate(t().id,s,(i=t().shippingData)==null?void 0:i.selectedAddresses)},"shippingData"),toggleServiceToProduct:async(s,i,c)=>n(()=>r.giftItem(t().id,s,i,c),"items"),updateItemQuantity:async(s,i,c)=>{const{id:l,items:u}=t();return n(()=>{var p;return r.updateItemQuantity(l,u,s,i,((p=u.find(f=>f.id===s))==null?void 0:p.quantity)??1)},"items",c?[c]:void 0)},insertProfileEmail:async s=>n(()=>r.insertProfileEmail(t().id,s),"clientProfileData"),setIsOpen:s=>e({isOpen:s})}}return Vt}),us=()=>Te(e=>e),Yn=qe.create(e=>({notifications:[],actions:{addNotification:(t,r)=>e(n=>Qn(n,t,r)),removeNotification:t=>e(r=>({notifications:r.notifications.filter(n=>n.id!==t)}))}})),Zn=()=>Yn(e=>e.notifications),Jn=()=>Yn(e=>e.actions),ds=Object.freeze(Object.defineProperty({__proto__:null,KEY_INDEXED_OPTIONS:Me,KEY_INDEXED_STORE:Kt,useCartStore:Te,useGetCartStoreState:us,useGetNotificationActions:Jn,useGetNotificationsStore:Zn},Symbol.toStringTag,{value:"Module"})),fs=6e3,eo=b.createContext({}),to=({children:e,...t})=>{const{items:r}=Te(),[n,a]=b.useState([]),s=b.useRef(null),i=b.useMemo(()=>Array.isArray(n)&&n.length>0?n.map(c=>r.find(l=>l.id===c.id)).filter(c=>c!==void 0):[],[r,n]);return b.useEffect(()=>{n.length&&(clearTimeout(s.current??0),s.current=setTimeout(()=>{a([])},fs))},[n]),o.jsx(eo.Provider,{value:b.useMemo(()=>({...t,setRecentlyAdded:a,recentlyAddedProducts:i}),[t,a,i]),children:e})},ze=()=>{const e=b.useContext(eo);if(e===void 0)throw new Error("useUIContext must be used within a UIProvider");return e};class ro{constructor(){pt(this,"events",{});pt(this,"prevData",{})}subscribe(t,r){return this.events[t]||(this.events[t]=[]),this.events[t].push(r),()=>{this.events[t]=this.events[t].filter(n=>n!==r)}}publish(t,r){this.events[t]&&this.events[t].forEach(n=>{this.prevData[t]=r,n(r)})}}const no=b.createContext({}),ps=({children:e,headerConfigs:t,pathname:r,...n})=>{const[a,s]=b.useState(!0),i=r==="/",c=b.useRef(new ro),l=f=>f?{headerVariant:t.home_default_variant,bannerVariant:t.home_default_variant,position:t.home_default_position}:{headerVariant:t.default_variant,bannerVariant:t.default_variant,position:t.default_position},u=l(i),p=b.useRef(u);return b.useEffect(()=>{const f=()=>{const d=typeof(window==null?void 0:window.navigator)>"u"?"":navigator==null?void 0:navigator.userAgent,_=window.innerWidth<1024||!!d.match(/Android|BlackBerry|iPhone|iPad|iPod|Opera Mini|IEMobile|WPDesktop/i);a!==_&&s(_)};return f(),window.addEventListener("resize",f,{passive:!0}),()=>window.removeEventListener("resize",f)},[a]),b.useEffect(()=>{const f=l(i);c.current.publish("header:change_variant",f.headerVariant),c.current.publish("header:change_position",f.position),p.current=f},[i]),o.jsx(no.Provider,{value:{isMobile:a,mediatorRef:c,currentHeaderConfigsRef:p,...n},children:o.jsx(to,{children:e})})},he=()=>b.useContext(no),oo=b.createContext({}),ms=({children:e,...t})=>o.jsx(oo.Provider,{value:{...t},children:e}),de=()=>b.useContext(oo),be=(e,t)=>qe.create(r=>{const n=()=>r({value:e});return t&&t instanceof Set&&t.add(n),{value:e,actions:{setValue:a=>r({value:a}),reset:n}}}),De={category:null,menuMobileIsOpen:!1,searchModalIsOpen:!1,userMenuIsOpen:!1},$e=new Set,hs=()=>{$e.forEach(e=>{e()})},ao=qe.create((e,t)=>{const r=()=>e({value:De.category});return $e.add(r),{value:De.category,actions:{reset:r,setValue:n=>e(()=>({value:n})),updateValue:n=>{t().value!==n&&e({value:n})}}}}),ut=()=>ao(e=>e.value),_e=()=>ao(e=>e.actions),so=be(De.menuMobileIsOpen,$e),ar=()=>so(e=>e.value),xe=()=>so(e=>e.actions),io=be(De.searchModalIsOpen,$e),_s=()=>io(e=>e.value),sr=()=>io(e=>e.actions),co=be(De.userMenuIsOpen,$e),gs=()=>co(e=>e.value),ir=()=>co(e=>e.actions),ys=Object.freeze(Object.defineProperty({__proto__:null,resetAllHeaderStores:hs,useActionsHeaderCategory:_e,useActionsMenuMobileIsOpen:xe,useActionsSearchModalIsOpen:sr,useActionsUserMenuIsOpen:ir,useGetHeaderCategoryStore:ut,useGetMenuMobileIsOpen:ar,useGetSearchModalIsOpen:_s,useGetUserMenuIsOpen:gs},Symbol.toStringTag,{value:"Module"})),Ee={selectedSkuInfo:{productId:"",name:"",size:"",sku:"",sellerId:"",sellerName:"",available:!1,quantity:1},openLetMeKnow:!1,openMeasurements:!1,showBottomNavigation:!1,showNotify:!1},we=new Set,vs=()=>{we.forEach(e=>{e()})},lo=qe.create(e=>{const t=()=>e({value:Ee.selectedSkuInfo});return we.add(t),{value:Ee.selectedSkuInfo,actions:{setValue:r=>e(n=>({value:{...n,...r}})),reset:t}}}),bs=()=>lo(e=>e.value),xs=()=>lo(e=>e.actions),uo=be(Ee.openLetMeKnow,we),Cs=()=>uo(e=>e.value),js=()=>uo(e=>e.actions),fo=be(Ee.showNotify,we),Is=()=>fo(e=>e.value),Ss=()=>fo(e=>e.actions),po=be(Ee.showBottomNavigation,we),Ns=()=>po(e=>e.value),Ps=()=>po(e=>e.actions),mo=be(Ee.openMeasurements,we),Ts=()=>mo(e=>e.value),Es=()=>mo(e=>e.actions),ws=Object.freeze(Object.defineProperty({__proto__:null,resetAllPDPStores:vs,useActionsPDPOpenLetMeKnow:js,useActionsPDPOpenMeasurements:Es,useActionsPDPSelectedSkuInfo:xs,useActionsPDPShowBottomNavigation:Ps,useActionsPDPShowNotify:Ss,useGetPDPOpenLetMeKnow:Cs,useGetPDPOpenMeasurements:Ts,useGetPDPSelectedSkuInfo:bs,useGetPDPShowBottomNavigation:Ns,useGetPDPShowNotify:Is},Symbol.toStringTag,{value:"Module"})),ho=b.createContext({}),Rs=({children:e,headerData:t,...r})=>{var l,u;const n=b.useRef(null),a=b.useRef(null),s=b.useRef(null),{mediatorRef:i,currentHeaderConfigsRef:c}=he();return(l=i.current)==null||l.subscribe("header:change_variant",p=>{var h,g,v;if(p&&c.current&&(c.current.bannerVariant=p),!n.current)return;const d=document.body.scrollTop>0,_=n.current.getAttribute("data-interactiveVariant"),y=d?_:p??((h=c.current)==null?void 0:h.bannerVariant)??"default";y!==((g=c.current)==null?void 0:g.headerVariant)&&(n.current.setAttribute("data-bottomdivider",String(d)),n.current.setAttribute("data-variant",String(y)),(v=i.current)==null||v.publish("herobanner:change_controllers_variant",y),c.current&&(c.current.headerVariant=y))}),(u=i.current)==null||u.subscribe("header:change_position",p=>{n.current&&(n.current.style.position=p)}),b.useEffect(()=>{const p=new AbortController,f=m.helpers.throttle(()=>{var _;return(_=i.current)==null?void 0:_.publish("header:change_variant",null)},200);document.body.addEventListener("scroll",f,{passive:!0,signal:p.signal});const d=_=>{var h;(h=_.target.closest("a"))==null||h.blur()};return n.current&&(n.current.addEventListener("click",d,{signal:p.signal}),n.current.addEventListener("touchend",d,{signal:p.signal})),()=>{p.abort()}},[]),o.jsx(ho.Provider,{value:{headerData:t,structureRef:a,rootRef:n,tipbarRef:s,...r},children:e})},G=()=>b.useContext(ho),_o=b.createContext({}),go=({children:e})=>{const t=b.useRef(null),r=b.useRef(null),n=ar(),a=b.useCallback(()=>{var s;{const i=(s=t.current)==null?void 0:s.querySelector("dialog");if(i){i.dataset.animation="out";const c=i.children[0];c.dataset.animation="out"}}},[]);return b.useEffect(()=>{var s;if(n)document.body.dataset.modalopen="true";else{document.body.dataset.modalopen="false";const i=(s=r.current)==null?void 0:s.querySelector("dialog");if(i){i.dataset.animation="out";const c=i.children[0];c.dataset.animation="out"}}},[n]),b.useEffect(()=>{r.current=document.body},[]),o.jsx(_o.Provider,{value:{bodyRef:t,handleCloseSubMenu:a,documentBodyRef:r},children:e})},Fe=()=>b.useContext(_o),Os=e=>{if(!e||typeof window>"u")return 0;const t=window.getComputedStyle(e);return parseInt(t.padding,10)},As=(e,t,r)=>{if(!(e instanceof HTMLElement)||!(t instanceof HTMLElement))return{left:0,top:0};const n=t.getBoundingClientRect(),a=e.getBoundingClientRect(),s=e!=null&&e.parentElement?Os(e==null?void 0:e.parentElement):0;return{left:n.left+n.width/2-(a.width+s),top:n.top+n.height+r}},yo=b.createContext({}),vo=({children:e,delay:t=600,gap:r=20,...n})=>{const[a,s]=b.useState(!1),i=b.useRef(null),[c,l]=b.useState(!1),[u,p]=b.useState({left:0,top:0}),f=b.useCallback(()=>{l(!0),typeof window<"u"&&(i.current=window.setTimeout(()=>{s(!1),l(!1)},t))},[l,s,t]);return b.useEffect(()=>{if(typeof window>"u")return;const d=window.document.querySelector("#cart-button"),_=window.document.querySelector("#add-to-cart--tooltip");if(d&&_){const{left:y,top:h}=As(_,d,r??0);p({left:y,top:h}),l(!1)}},[r,a]),o.jsx(yo.Provider,{value:b.useMemo(()=>({...n,...u,handleClose:f,isLeaving:c,isOpen:a,setIsOpen:s,setIsLeaving:l}),[n,u,f,c,a,s,l]),children:e})},Ce=()=>{const e=b.useContext(yo);if(e===void 0)throw new Error("useAddToCartContext must be used within a AddToCartProvider");return e},bo=b.createContext({}),Ms=({children:e,CARTPROVIDER_MESSAGE_PRODUCT_REMOVE:t,...r})=>{const n=Te(),{setRecentlyAdded:a}=ze(),s=Zn(),{addNotification:i,removeNotification:c}=Jn(),{addCoupon:l,addItem:u,addSellerCode:p,emptyCart:f,isOpen:d,removeItem:_,shipping:y,shippingUpdate:h,toggleServiceToProduct:g,updateItemQuantity:v}=n,N=b.useCallback(async(E,R)=>(R==="coupon"?l(E):p(E)).then(T=>{if(typeof T!="boolean"&&T instanceof Object){if(R==="seller"&&"value"in T){const{statusOk:k,value:z}=T,$=String(z??"").split(" - ");return Ne(($==null?void 0:$[0])??"",E,!!k)}return Ne(String(T.coupon),E,!0)}return Ne("","")}).catch(()=>Promise.resolve({code:400})),[l,p]),S=b.useCallback((E,R,M)=>{const{id:T}=E;v(T,R,M)},[v]),C=b.useCallback((E,R,M=!1)=>{if(!E)return;const{id:T}=E,k=Gt(n.items,T);if(k!==-1&&!M){const z=Number(n.items[k].quantity),$=n.items[k]?z+1:1;S(E,$,R)}else u({id:T,quantity:(E==null?void 0:E.quantity)??1,seller:E.seller});d||a(z=>[...z,E])},[u,S,n.items,d,a]),x=b.useCallback((E,R)=>{if(!E||!Array.isArray(E))return;a(T=>[...T,...E]);const M=E.map(T=>{const{id:k,quantity:z,seller:$}=T,W=Gt(n.items,k),Y=Gn(z??1,W);return{id:k,quantity:Y,seller:$}});u(M,R)},[u,n.items,a]),j=b.useCallback(async(E,R,M)=>E?_(E).then(()=>(i(R??`${t}`,M),Ne(E,E))):Promise.resolve(Ne("","Product id required")),[i,_]),I=b.useCallback(()=>{n.items.length>0&&f()},[f,n.items]),P=b.useCallback((E,R="BRA")=>y(E,R),[y]),w=b.useCallback(E=>{E&&h(E)},[h]),O=b.useCallback(async(E,R,M)=>{const T=n.items.findIndex(z=>z.id===E);return n.items[T]&&T>=0?g(R,T,M??!1):!1},[n.items,g]),q=b.useCallback(async(E,R)=>v(E,R).then(M=>{if(Array.isArray(M)){const T=M.find(k=>k.id===E);if(T&&(T==null?void 0:T.quantity)<R)return String(T.quantity)}return!1}),[v]);return o.jsx(bo.Provider,{value:b.useMemo(()=>({...r,addCouponSeller:N,addToCart:C,addItemsToCart:x,cartStore:n,notifications:s,clearCart:I,addNotification:i,isOpen:n.isOpen,removeNotification:c,removeToCart:j,setIsOpen:n.setIsOpen,shipping:P,shippingUpdateOption:w,toggleGiftItemCart:O,updateItemQuantity:q}),[r,N,C,x,s,I,i,n,c,j,P,w,O,q]),children:e})},Re=()=>{const e=b.useContext(bo);if(e===void 0)throw new Error("useCartContext must be used within a CartProvider");return e},ks={contexts:{addToCart:{hook:Ce,provider:vo},cart:{hook:Re,provider:Ms},cms:{FlagsAndTags:{context:er,hook:gn,provider:Fa}},events:{hook:H,provider:Ja},global:{hook:he,provider:ps,mediator:ro},header:{hook:G,provider:Rs},menuMobile:{hook:Fe,provider:go},next:{hook:de,provider:ms},pdp:{provider:Ba,hook:Ha},pdpdata:{hook:nr,provider:es},ui:{hook:ze,provider:to}},hooks:{useBackPDC:yn},stores:{cart:ds,header:ys,pdp:ws}};function xo(e){const r=decodeURIComponent(window.document.cookie).split(";");for(const n of r){const[a,s]=n.trim().split("=");if(a===e)return s}}function Co(e,t,r={}){const a={...{path:"/",expires:new Date(Date.now()+36e5)},...r};let s=`${encodeURIComponent(e)}=${encodeURIComponent(t??"")}`;for(const i in a)a[i]!==void 0&&(s+=`; ${i}`,i==="expires"?s+=`=${a[i].toUTCString()}`:typeof a[i]=="boolean"?s+=`; ${a[i]?"true":"false"}`:s+=`=${a[i]}`);window.document.cookie=s}const Ls=e=>e.normalize("NFD").replace(/[\u0300-\u036f]/g,"").replace(/\s+/g,"-").toLowerCase().trim();function Ds(e,t=1e3){let r=!1;return(...n)=>{r||(e(...n),r=!0,setTimeout(()=>{r=!1},t))}}function qs(e,t=1e3){let r;return(...n)=>{clearTimeout(r),r=setTimeout(()=>{e(...n)},t)}}const jo=(e,t)=>t.getTime()>e.getTime()?Math.abs(t.getTime()-e.getTime()):0,ke=(e,t)=>Math.floor(t==="days"?e/(1e3*60*60*24):t==="hours"?e%(1e3*60*60*24)/(1e3*60*60):t==="minutes"?e%(1e3*60*60)/(1e3*60):e%(1e3*60)/1e3),zs=Object.freeze(Object.defineProperty({__proto__:null,debounce:qs,getCookie:xo,getDaysHoursMinutesSeconds:ke,getMilliSeconds:jo,removeAccentsAndReplaceSpaces:Ls,setCookie:Co,throttle:Ds},Symbol.toStringTag,{value:"Module"})),$s={cart:cs,events:Za,product:Va,utils:zs},Io={helpers:$s},Fs=e=>e,Bs=e=>e,Hs=e=>e,Us=e=>e,ye={base:Us,configurationSchemaSet:Hs,configuration:Bs,schema:Fs},Ws=e=>e,Vs=e=>({...e.uiWidget?{"ui:widget":e.uiWidget}:{},...e.uiObjectFieldTemplate?{"ui:ObjectFieldTemplate":e.uiObjectFieldTemplate}:{}}),te={property:Ws,widget:Vs},Gs=Object.freeze(Object.defineProperty({__proto__:null,Common:te,ContentType:ye},Symbol.toStringTag,{value:"Module"}));function Ks(e){const t={value:te.property({type:"string",title:"Label da flag a ser mostrado"}),textColor:te.property({type:"string",title:"Cor do texto"}),tagColor:te.property({type:"string",title:"Cor de fundo da tag"}),enableIcon:te.property({type:"boolean",title:"Ativar ícone"}),icon:te.property({type:"string",title:"Ícone",enum:Object.values(e),enumNames:Object.keys(e)}),iconColor:te.property({type:"string",title:"Cor do Ícone"})};return ye.base({id:"flags_and_tags",name:"Flags And Tags",scopes:["flags_and_tags"],configurationSchemaSets:[ye.configurationSchemaSet({name:"config",configurations:[{name:"commercial",schema:ye.schema({title:"Items - Commercial",description:"Flags e Tags comerciais em Produtos",type:"object",properties:{items:{title:"Flags e Tags",type:"array",items:te.property({title:"Flags e Tags",type:"object",properties:{key:te.property({type:"string",title:"chave (id do cluster)"}),...t}})}}})},{name:"institucional",schema:ye.schema({title:"Items - Institucional",description:"Flags e Tags comerciais em Produtos",type:"object",properties:{items:{title:"Flags e Tags",type:"array",items:te.property({title:"Flags e Tags",type:"object",properties:{key:te.property({type:"string",title:"chave (id do cluster)"}),...t}})}}})},{name:"flag_cart",schema:ye.schema({title:"Flags Sacola",description:"Flags da Sacola",type:"object",properties:{flagHeader:te.property({type:"object",title:"Flag exibida abaixo do Header da Sacola",properties:t}),flagTotal:{title:"Flag exibida ao lado do Total da Sacola",type:"string"}}})},{name:"flag_pdp",schema:ye.schema({title:"Flag PDP",description:"Flag Cashback PDP",type:"object",properties:t})}]})]})}const Xs={generateFlagsAndTags:Ks},Qs=e=>{const t=e.getBlocksAsArray(),r=[];return t.forEach(n=>{const a=n.getType(),s=n.getText();let i;const c=n.getInlineStyleAt(0).toArray();c.length>0&&(i=c.map(u=>{switch(u){case"BOLD":return"font-weight: bold;";case"ITALIC":return"font-style: italic;";case"UNDERLINE":return"text-decoration: underline;";default:return""}}).join(" "));const l={type:"p",text:s,...i&&{styleText:i}};switch(a){case"header-one":l.type="h1";break;case"header-two":l.type="h2";break;case"header-three":l.type="h3";break;case"unordered-list-item":l.type="li";break;case"ordered-list-item":l.type="li";break;case"blockquote":l.type="blockquote";break;case"code-block":l.type="pre";break;default:l.type="p"}r.push(l)}),r},Ys=Object.freeze(Object.defineProperty({__proto__:null,convertDraftToHTML:Qs},Symbol.toStringTag,{value:"Module"})),Zs={ContentTypes:Xs,Factories:Gs,CMSApi:za.cms,helpers:Ys},ee={"add-to-cart--card":"_add-to-cart--card_4v41y_1","add-to-cart--card--content":"_add-to-cart--card--content_4v41y_7","add-to-cart--card--name":"_add-to-cart--card--name_4v41y_16","add-to-cart--card--price-quantity":"_add-to-cart--card--price-quantity_4v41y_46","add-to-cart--card--style-size":"_add-to-cart--card--style-size_4v41y_53","add-to-cart--content":"_add-to-cart--content_4v41y_71","add-to-cart--content--title":"_add-to-cart--content--title_4v41y_78","add-to-cart--footer":"_add-to-cart--footer_4v41y_102","add-to-cart--footer--total":"_add-to-cart--footer--total_4v41y_108","add-to-cart--items":"_add-to-cart--items_4v41y_148","add-to-cart--tooltip":"_add-to-cart--tooltip_4v41y_198","add-to-cart__modal":"_add-to-cart__modal_4v41y_211"},So=({brand:e,className:t,name:r,...n})=>o.jsxs("div",{...n,className:m.helpers.classNameConcat(ee["add-to-cart--card--name"],t),children:[o.jsx(m.Tag,{style:{textTransform:"uppercase"},size:"small",variant:"quaternary",title:e,children:e}),o.jsx(m.TextStructure.Root,{children:o.jsx(m.TextStructure.DivWrapper,{alignContent:"flex-start",alignItems:"flex-start",children:o.jsx("p",{className:"typography-style-body-md",children:r})})})]});So.displayName="AddToCart.Card.Name";const No=({className:e,listPrice:t,price:r,quantity:n,productId:a,...s})=>{const i=me(r/100),c=me(t/100);return o.jsx("div",{...s,className:m.helpers.classNameConcat(ee["add-to-cart--card--price-quantity"],e),children:o.jsx(m.ProductInfo.Root,{size:"small",layout:"vertical",children:o.jsx(m.ProductInfo.Wrapper,{size:"small",layout:"vertical",children:o.jsx(m.ProductInfo.ValuesWrapper,{children:r!==t?o.jsxs(o.Fragment,{children:[o.jsx(m.ProductInfo.Price,{label:"originalPrice",value:i,size:"small"},"price-list"),o.jsx(m.ProductInfo.Price,{label:"discountPrice",value:c,size:"small"},"price-low")]}):o.jsx(m.ProductInfo.Price,{label:"defaultPrice",value:c,size:"small"},"price-low")})})})})};No.displayName="AddToCart.Card.PriceQuantity";const Js="_skeleton_12b79_1",ei={skeleton:Js},ti=({style:e})=>o.jsx("div",{style:e,className:ei.skeleton}),ri="_image_lypfr_1",ni={image:ri},oi=({alt:e,className:t,objectFit:r,...n})=>{const{nextimage:a}=de();return o.jsx(a,{quality:90,...n,alt:e??"",className:m.helpers.classNameConcat(ni.image,t),"data-object-fit":r??"cover"})},ai=({videoRef:e,...t})=>o.jsx("video",{...t,ref:e,children:o.jsx("track",{kind:"captions"})}),fe={Image:oi,Video:ai},Po=({className:e,productGroupID:t,size:r,texture:n,...a})=>{const{CONSTANTS:{TEXTURE_IMAGE:s,TOGGLE_STYLE_MODIFIER:i}}=Ce(),[c,l]=b.useState(n??"");return b.useEffect(()=>{c||fetch("/api/catalog/product/info",{method:"POST",priority:"low",body:JSON.stringify({ids:[t]})}).then(u=>u.json()).then(u=>{const p=u.data[0].items[0];if(p){const f=p.images.find(d=>s.includes(d.imageLabel));f!=null&&f.imageUrl?l(f.imageUrl):l(p.images[0].imageUrl)}}).catch(u=>{console.error(u)})},[c,t]),o.jsxs("div",{...a,className:m.helpers.classNameConcat(ee["add-to-cart--card--style-size"],e),children:[o.jsx(m.ToggleStyle.Wrapper,{size:"x-small",style:i,children:o.jsx(m.ToggleStyle.Texture,{children:c?o.jsx(fe.Image,{alt:"",src:c??"",width:164,height:164,style:i}):o.jsx(ti,{})})}),o.jsx(m.Utils.Divider,{direction:"vertical",size:"medium",style:{height:24}}),r&&o.jsxs(m.ToggleSize.Wrapper,{size:"small",title:"wrapper-texture",children:[o.jsx(m.ToggleSize.DisabledAdornment,{title:"disabled-adornment-texture"}),o.jsx(m.ToggleSize.Text,{children:r})]})]})};Po.displayName="AddToCart.Card.StyleSize";const{helpers:si}=Io,To=({className:e,item:t,texture:r,...n})=>{const{itemOffered:{name:a,brand:s,skuName:i,isVariationOf:{productGroupID:c}},quantity:l,price:u,sellingPrice:p}=t,{CONSTANTS:{NAME_SPLIT_SYMBOL:f}}=Ce(),{size:d}=si.product.getColorAndSizeFromSkuName(i??a,f);return console.log("value size, skuName",{size:d,skuName:i,name:a}),o.jsxs("div",{...n,className:m.helpers.classNameConcat(ee["add-to-cart--card--content"],e),children:[o.jsx(So,{brand:s.name,name:a}),o.jsx(No,{price:u,listPrice:p,quantity:l,productId:t.id}),o.jsx(Po,{size:d,texture:r,productGroupID:c})]})};To.displayName="AddToCart.Card.Content";const Eo=({image:e,thumbnail:t=!1})=>o.jsx(fe.Image,{alt:e.alternateName??"image","data-thumbnail":t,height:t?152:120,src:e.url,width:t?152:94});Eo.displayName="AddToCart.Card";const wo=({className:e,item:t,texture:r,thumbnail:n,...a})=>{const{itemOffered:{image:[s]}}=t,i=Pn(s.url,{width:200,height:300});return o.jsxs("div",{...a,className:m.helpers.classNameConcat(ee["add-to-cart--card"],e),children:[o.jsx(Eo,{image:{alternateName:s.alternateName||"Produto",url:i||""},thumbnail:n}),!n&&o.jsx(To,{item:t,texture:r})]})};wo.displayName="AddToCart.Card";const Ro=({className:e,children:t,title:r,...n})=>o.jsxs("div",{...n,className:m.helpers.classNameConcat(ee["add-to-cart--content"],e),children:[o.jsx("div",{className:ee["add-to-cart--content--title"],children:r&&o.jsx("h2",{children:r})}),t,o.jsx(ve.Footer,{})]});Ro.displayName="AddToCart.Layout.Content";const Oo=({className:e,...t})=>{var _,y;const{isMobile:r,handleClose:n,CONSTANTS:{ADD_TO_CART:a}}=Ce(),{cartStore:{totalizers:s},setIsOpen:i}=Re(),c=(_=s.find(h=>h.id==="Discounts"))==null?void 0:_.value,l=((y=s.find(h=>h.id==="Items"))==null?void 0:y.value)??0,u=s.find(h=>h.id==="Shipping"),f=(l-Math.abs(c??0)+((u==null?void 0:u.value)??0))/100,d=me(f??0);return o.jsxs("div",{...t,className:m.helpers.classNameConcat(ee["add-to-cart--footer"],e),children:[o.jsxs("div",{className:ee["add-to-cart--footer--total"],children:[o.jsx("span",{children:"Subtotal:"}),o.jsx("span",{children:d})]}),o.jsx(m.Button,{size:"medium",variant:"primary","data-close":!0,onClick:()=>i(!0),children:a.footer.bag}),r?o.jsx(m.Button,{"data-close":!0,size:"medium",variant:"tertiary",children:a.footer.keep_buying}):o.jsx(m.Button,{onClick:()=>n(),size:"medium",variant:"tertiary",children:a.footer.keep_buying})]})};Oo.displayName="AddToCart.Layout.Footer";const Ao=({children:e,className:t,thumbnail:r=!1,...n})=>{const{cartStore:{options:a}}=Re(),{recentlyAddedProducts:s}=ze(),i=s.length>3?4:s.length;return o.jsxs("div",{...n,className:ee["add-to-cart--items"],"data-thumbnail":r,children:[Array.isArray(s)&&s.filter((c,l)=>l<i).map(c=>{var u;const l=(u=a==null?void 0:a.find(p=>p.id===c.itemOffered.isVariationOf.productGroupID))==null?void 0:u.texture;return o.jsx(ve.Card,{item:c,thumbnail:r,texture:l},c.itemOffered.sku)}),e]})};Ao.displayName="AddToCart.Layout.Items";const Mo=({children:e,Z_INDEX_WAR:t})=>{const{isOpen:r,setIsOpen:n}=Ce(),{isMobile:a}=he();return o.jsxs(m.Modal.Root,{"data-modal":"add-to-cart--modal",className:ee["add-to-cart__modal"],isMobile:a??!1,isOpen:r,setIsOpen:n,variant:"sideBottom",style:{zIndex:t.modal},children:[o.jsx(m.Modal.Header,{navigation:"top",children:o.jsx(m.Modal.Controls,{navigation:"top",isMobile:!0})}),o.jsx(m.Modal.Body,{children:e})]})};Mo.displayName="AddToCart.Modal";const ii=({children:e})=>{const{count:t,handleClose:r,setIsOpen:n}=Ce(),a=b.useRef(t);return b.useEffect(()=>{t>a.current&&n(!0),t<a.current&&a.current>=1&&r(),a.current=t},[t,r,n]),o.jsx(o.Fragment,{children:e})},ko=({children:e,component:t,CONSTANTS:r,...n})=>{const{recentlyAddedProducts:a}=ze(),{isMobile:s}=he(),i=a.length>3?4:a.length;return o.jsx(vo,{...n,count:i,isMobile:s,CONSTANTS:r,children:o.jsx(ii,{children:s?o.jsxs(o.Fragment,{children:[o.jsx(ve.Modal,{Z_INDEX_WAR:r.Z_INDEX_WAR,children:t}),e]}):o.jsx(ve.Tooltip,{component:t,style:{width:350},Z_INDEX_WAR:r.Z_INDEX_WAR,children:e})})})};ko.displayName="AddToCart.Root";const Lo=({children:e,component:t,Z_INDEX_WAR:r,...n})=>{const{contentRef:a,left:s,isLeaving:i,target:c,isOpen:l,top:u}=Ce();return o.jsx(m.Tooltip.Root,{arrow:"top-right",component:o.jsx("div",{...n,ref:a,children:t}),id:"add-to-cart--tooltip",className:ee["add-to-cart--tooltip"],style:{zIndex:r.modal},isLeaving:i,isOpen:l,left:s,size:"medium",position:"top",top:u,children:o.jsx("div",{className:ee["add-to-cart--tooltip"],ref:c,children:e})})};Lo.displayName="AddToCart.Tooltip";const ve={Card:wo,Content:Ro,Footer:Oo,Items:Ao,Modal:Mo,Root:ko,Tooltip:Lo},cr=({title:e,...t})=>{const{recentlyAddedProducts:r}=ze(),{isMobile:n}=he(),a=r.length>3?4:r.length,s=r.length>(a??1),i=r.length>1;return o.jsx(ve.Root,{isMobile:n,count:r.length,component:o.jsx(ve.Content,{title:e,children:o.jsx(ve.Items,{thumbnail:i,children:s&&o.jsx(m.Badge.Count,{count:r.length-a,size:"medium",variant:"secondary"})})}),...t})};cr.displayName="AddToCart";const Sr={"backtotop-btn":"_backtotop-btn_1shb6_1","card-modifier":"_card-modifier_1shb6_27"},ci=({children:e,className:t,adornment:r,iconPosition:n,scrollToOptions:a,style:s,...i})=>{const c={top:(a==null?void 0:a.top)??0,left:(a==null?void 0:a.left)??0,behavior:(a==null?void 0:a.behavior)??"smooth"},u=n&&r?{flexDirection:{top:"column",bottom:"column-reverse",left:"row",right:"row-reverse"}[n]}:{},p=()=>{window&&window.document.body.scrollTo({...c})};return o.jsx(m.Card,{...i,shadow:!0,padding:"small",className:m.helpers.classNameConcat(Sr["card-modifier"],t),style:{...s,padding:0},children:o.jsxs("button",{className:Sr["backtotop-btn"],onClick:p,style:{...u},"data-orientation":n,children:[r,e]})})},li=({page:e,data:t})=>{const{pathname:r}=de(),n=b.useRef(null),{sendDataLayerEvent:a,currentLocalRef:s,itemListRef:i,promotionEventRef:c}=H();return b.useEffect(()=>{const l=xo("login_event")||"{}",u=JSON.parse(l);if(u.name||u.method){const p=new Date(0);a({functionKey:"readyEvents",data:{event:u.name,readyData:{method:u.method}}}),Co("login_event","",{expires:p})}},[]),b.useEffect(()=>{if(n.current===r)return;n.current=r;let l={};switch(e){case"PDP":{const p=t,f={};if(!p){l={page_category:"pdp"};break}p.items.forEach(({itemId:d,sellers:_})=>f[d]=_[0].commertialOffer.AvailableQuantity),l={page_category:"pdp",seller_ids:p.items.map(({sellers:d})=>d[0].sellerId).join(),skuStocks:f,product_reference_id:p.productReference};break}case"PDC":{const{page_category:p,page_departament:f,id:d,name:_}=Mn(),y=_,h=d;l={page_category:"lista_produtos",...f&&{page_departament:f}},i.current={item_list_name:r==="/search"?"busca":y??void 0,item_list_id:r==="/search"?void 0:h??void 0},f&&a({functionKey:"readyEvents",data:{event:"view_category",readyData:{page_category:p,page_departament:f}}});break}default:l={page_category:e},c.current={},i.current={};break}const u={region:e,...l};s.current=e,a({functionKey:"readyEvents",data:{readyData:{vtex_version:"fast",...u}},timeout:0})},[r]),null};function lr(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Xt={exports:{}},ae={};ae._=ae._interop_require_default=ui;function ui(e){return e&&e.__esModule?e:{default:e}}function di(e){throw new Error('Could not dynamically require "'+e+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}var mt={},ht={},Nr;function fi(){return Nr||(Nr=1,function(e){"use client";Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"LoadableContext",{enumerable:!0,get:function(){return n}});const n=ae._(b).default.createContext(null);process.env.NODE_ENV!=="production"&&(n.displayName="LoadableContext")}(ht)),ht}var Pr;function pi(){return Pr||(Pr=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return _}});const r=ae._(b),n=fi();function a(y){return y&&y.default?y.default:y}const s=[],i=[];let c=!1;function l(y){let h=y(),g={loading:!0,loaded:null,error:null};return g.promise=h.then(v=>(g.loading=!1,g.loaded=v,v)).catch(v=>{throw g.loading=!1,g.error=v,v}),g}function u(y,h){let g=Object.assign({loader:null,loading:null,delay:200,timeout:null,webpack:null,modules:null},h),v=null;function N(){if(!v){const x=new p(y,g);v={getCurrentValue:x.getCurrentValue.bind(x),subscribe:x.subscribe.bind(x),retry:x.retry.bind(x),promise:x.promise.bind(x)}}return v.promise()}if(typeof window>"u"&&s.push(N),!c&&typeof window<"u"){const x=g.webpack&&typeof di.resolveWeak=="function"?g.webpack():g.modules;x&&i.push(j=>{for(const I of x)if(j.includes(I))return N()})}function S(){N();const x=r.default.useContext(n.LoadableContext);x&&Array.isArray(g.modules)&&g.modules.forEach(j=>{x(j)})}function C(x,j){S();const I=r.default.useSyncExternalStore(v.subscribe,v.getCurrentValue,v.getCurrentValue);return r.default.useImperativeHandle(j,()=>({retry:v.retry}),[]),r.default.useMemo(()=>I.loading||I.error?r.default.createElement(g.loading,{isLoading:I.loading,pastDelay:I.pastDelay,timedOut:I.timedOut,error:I.error,retry:v.retry}):I.loaded?r.default.createElement(a(I.loaded),x):null,[x,I])}return C.preload=()=>N(),C.displayName="LoadableComponent",r.default.forwardRef(C)}class p{promise(){return this._res.promise}retry(){this._clearTimeouts(),this._res=this._loadFn(this._opts.loader),this._state={pastDelay:!1,timedOut:!1};const{_res:h,_opts:g}=this;h.loading&&(typeof g.delay=="number"&&(g.delay===0?this._state.pastDelay=!0:this._delay=setTimeout(()=>{this._update({pastDelay:!0})},g.delay)),typeof g.timeout=="number"&&(this._timeout=setTimeout(()=>{this._update({timedOut:!0})},g.timeout))),this._res.promise.then(()=>{this._update({}),this._clearTimeouts()}).catch(v=>{this._update({}),this._clearTimeouts()}),this._update({})}_update(h){this._state={...this._state,error:this._res.error,loaded:this._res.loaded,loading:this._res.loading,...h},this._callbacks.forEach(g=>g())}_clearTimeouts(){clearTimeout(this._delay),clearTimeout(this._timeout)}getCurrentValue(){return this._state}subscribe(h){return this._callbacks.add(h),()=>{this._callbacks.delete(h)}}constructor(h,g){this._loadFn=h,this._opts=g,this._callbacks=new Set,this._delay=null,this._timeout=null,this.retry()}}function f(y){return u(l,y)}function d(y,h){let g=[];for(;y.length;){let v=y.pop();g.push(v(h))}return Promise.all(g).then(()=>{if(y.length)return d(y,h)})}f.preloadAll=()=>new Promise((y,h)=>{d(s).then(y,h)}),f.preloadReady=y=>(y===void 0&&(y=[]),new Promise(h=>{const g=()=>(c=!0,h());d(i,y).then(g,g)})),typeof window<"u"&&(window.__NEXT_PRELOADREADY=f.preloadReady);const _=f}(mt)),mt}(function(e,t){Object.defineProperty(t,"__esModule",{value:!0});function r(p,f){for(var d in f)Object.defineProperty(p,d,{enumerable:!0,get:f[d]})}r(t,{noSSR:function(){return l},default:function(){return u}});const n=ae,a=n._(b),s=n._(pi()),i=typeof window>"u";function c(p){return{default:(p==null?void 0:p.default)||p}}function l(p,f){if(delete f.webpack,delete f.modules,!i)return p(f);const d=f.loading;return()=>a.default.createElement(d,{error:null,isLoading:!0,pastDelay:!1,timedOut:!1})}function u(p,f){let d=s.default,_={loading:g=>{let{error:v,isLoading:N,pastDelay:S}=g;if(!S)return null;if(process.env.NODE_ENV!=="production"){if(N)return null;if(v)return a.default.createElement("p",null,v.message,a.default.createElement("br",null),v.stack)}return null}};p instanceof Promise?_.loader=()=>p:typeof p=="function"?_.loader=p:typeof p=="object"&&(_={..._,...p}),_={..._,...f};const y=_.loader,h=()=>y!=null?y().then(c):Promise.resolve(c(()=>null));return _.loadableGenerated&&(_={..._,..._.loadableGenerated},delete _.loadableGenerated),typeof _.ssr=="boolean"&&!_.ssr?(delete _.webpack,delete _.modules,l(d,_)):d({..._,loader:h})}(typeof t.default=="function"||typeof t.default=="object"&&t.default!==null)&&typeof t.default.__esModule>"u"&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)})(Xt,Xt.exports);var mi=Xt.exports,hi=mi;const ur=lr(hi);var Qt={exports:{}},lt={};function Do(e){if(typeof WeakMap!="function")return null;var t=new WeakMap,r=new WeakMap;return(Do=function(n){return n?r:t})(e)}lt._=lt._interop_require_wildcard=_i;function _i(e,t){if(!t&&e&&e.__esModule)return e;if(e===null||typeof e!="object"&&typeof e!="function")return{default:e};var r=Do(t);if(r&&r.has(e))return r.get(e);var n={},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var s in e)if(s!=="default"&&Object.prototype.hasOwnProperty.call(e,s)){var i=a?Object.getOwnPropertyDescriptor(e,s):null;i&&(i.get||i.set)?Object.defineProperty(n,s,i):n[s]=e[s]}return n.default=e,r&&r.set(e,n),n}var _t={},Tr;function gi(){return Tr||(Tr=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"HeadManagerContext",{enumerable:!0,get:function(){return n}});const n=ae._(b).default.createContext({});process.env.NODE_ENV!=="production"&&(n.displayName="HeadManagerContext")}(_t)),_t}var Ke={exports:{}},Er;function yi(){return Er||(Er=1,function(e,t){Object.defineProperty(t,"__esModule",{value:!0});function r(l,u){for(var p in u)Object.defineProperty(l,p,{enumerable:!0,get:u[p]})}r(t,{DOMAttributeNames:function(){return n},isEqualNode:function(){return s},default:function(){return c}});const n={acceptCharset:"accept-charset",className:"class",htmlFor:"for",httpEquiv:"http-equiv",noModule:"noModule"};function a(l){let{type:u,props:p}=l;const f=document.createElement(u);for(const y in p){if(!p.hasOwnProperty(y)||y==="children"||y==="dangerouslySetInnerHTML"||p[y]===void 0)continue;const h=n[y]||y.toLowerCase();u==="script"&&(h==="async"||h==="defer"||h==="noModule")?f[h]=!!p[y]:f.setAttribute(h,p[y])}const{children:d,dangerouslySetInnerHTML:_}=p;return _?f.innerHTML=_.__html||"":d&&(f.textContent=typeof d=="string"?d:Array.isArray(d)?d.join(""):""),f}function s(l,u){if(l instanceof HTMLElement&&u instanceof HTMLElement){const p=u.getAttribute("nonce");if(p&&!l.getAttribute("nonce")){const f=u.cloneNode(!0);return f.setAttribute("nonce",""),f.nonce=p,p===l.nonce&&l.isEqualNode(f)}}return l.isEqualNode(u)}let i;process.env.__NEXT_STRICT_NEXT_HEAD?i=(l,u)=>{const p=document.querySelector("head");if(!p)return;const f=p.querySelectorAll('meta[name="next-head"]')||[],d=[];if(l==="meta"){const h=p.querySelector("meta[charset]");h&&d.push(h)}for(let h=0;h<f.length;h++){var _;const v=f[h].nextSibling;(v==null||(_=v.tagName)==null?void 0:_.toLowerCase())===l&&d.push(v)}const y=u.map(a).filter(h=>{for(let g=0,v=d.length;g<v;g++){const N=d[g];if(s(N,h))return d.splice(g,1),!1}return!0});d.forEach(h=>{var g;const v=h.previousSibling;if(v&&v.getAttribute("name")==="next-head"){var N;(N=h.parentNode)==null||N.removeChild(v)}(g=h.parentNode)==null||g.removeChild(h)}),y.forEach(h=>{var g;const v=document.createElement("meta");v.name="next-head",v.content="1",((g=h.tagName)==null?void 0:g.toLowerCase())==="meta"&&h.getAttribute("charset")||p.appendChild(v),p.appendChild(h)})}:i=(l,u)=>{const p=document.getElementsByTagName("head")[0],f=p.querySelector("meta[name=next-head-count]");if(process.env.NODE_ENV!=="production"&&!f){console.error("Warning: next-head-count is missing. https://nextjs.org/docs/messages/next-head-count-missing");return}const d=Number(f.content),_=[];for(let g=0,v=f.previousElementSibling;g<d;g++,v=(v==null?void 0:v.previousElementSibling)||null){var y;(v==null||(y=v.tagName)==null?void 0:y.toLowerCase())===l&&_.push(v)}const h=u.map(a).filter(g=>{for(let v=0,N=_.length;v<N;v++){const S=_[v];if(s(S,g))return _.splice(v,1),!1}return!0});_.forEach(g=>{var v;return(v=g.parentNode)==null?void 0:v.removeChild(g)}),h.forEach(g=>p.insertBefore(g,f)),f.content=(d-_.length+h.length).toString()};function c(){return{mountedInstances:new Set,updateHead:l=>{const u={};l.forEach(d=>{if(d.type==="link"&&d.props["data-optimized-fonts"]){if(document.querySelector('style[data-href="'+d.props["data-href"]+'"]'))return;d.props.href=d.props["data-href"],d.props["data-href"]=void 0}const _=u[d.type]||[];_.push(d),u[d.type]=_});const p=u.title?u.title[0]:null;let f="";if(p){const{children:d}=p.props;f=typeof d=="string"?d:Array.isArray(d)?d.join(""):""}f!==document.title&&(document.title=f),["meta","base","link","style","script"].forEach(d=>{i(d,u[d]||[])})}}}(typeof t.default=="function"||typeof t.default=="object"&&t.default!==null)&&typeof t.default.__esModule>"u"&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)}(Ke,Ke.exports)),Ke.exports}var Xe={exports:{}},wr;function qo(){return wr||(wr=1,function(e,t){Object.defineProperty(t,"__esModule",{value:!0});function r(s,i){for(var c in i)Object.defineProperty(s,c,{enumerable:!0,get:i[c]})}r(t,{requestIdleCallback:function(){return n},cancelIdleCallback:function(){return a}});const n=typeof self<"u"&&self.requestIdleCallback&&self.requestIdleCallback.bind(window)||function(s){let i=Date.now();return self.setTimeout(function(){s({didTimeout:!1,timeRemaining:function(){return Math.max(0,50-(Date.now()-i))}})},1)},a=typeof self<"u"&&self.cancelIdleCallback&&self.cancelIdleCallback.bind(window)||function(s){return clearTimeout(s)};(typeof t.default=="function"||typeof t.default=="object"&&t.default!==null)&&typeof t.default.__esModule>"u"&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)}(Xe,Xe.exports)),Xe.exports}(function(e,t){"use client";Object.defineProperty(t,"__esModule",{value:!0});function r(x,j){for(var I in j)Object.defineProperty(x,I,{enumerable:!0,get:j[I]})}r(t,{handleClientScriptLoad:function(){return h},initScriptLoader:function(){return N},default:function(){return C}});const n=ae,a=lt,s=n._($a),i=a._(b),c=gi(),l=yi(),u=qo(),p=new Map,f=new Set,d=["onLoad","onReady","dangerouslySetInnerHTML","children","onError","strategy","stylesheets"],_=x=>{if(s.default.preinit){x.forEach(j=>{s.default.preinit(j,{as:"style"})});return}if(typeof window<"u"){let j=document.head;x.forEach(I=>{let P=document.createElement("link");P.type="text/css",P.rel="stylesheet",P.href=I,j.appendChild(P)})}},y=x=>{const{src:j,id:I,onLoad:P=()=>{},onReady:w=null,dangerouslySetInnerHTML:O,children:q="",strategy:E="afterInteractive",onError:R,stylesheets:M}=x,T=I||j;if(T&&f.has(T))return;if(p.has(j)){f.add(T),p.get(j).then(P,R);return}const k=()=>{w&&w(),f.add(T)},z=document.createElement("script"),$=new Promise((W,Y)=>{z.addEventListener("load",function(Z){W(),P&&P.call(this,Z),k()}),z.addEventListener("error",function(Z){Y(Z)})}).catch(function(W){R&&R(W)});O?(z.innerHTML=O.__html||"",k()):q?(z.textContent=typeof q=="string"?q:Array.isArray(q)?q.join(""):"",k()):j&&(z.src=j,p.set(j,$));for(const[W,Y]of Object.entries(x)){if(Y===void 0||d.includes(W))continue;const Z=l.DOMAttributeNames[W]||W.toLowerCase();z.setAttribute(Z,Y)}E==="worker"&&z.setAttribute("type","text/partytown"),z.setAttribute("data-nscript",E),M&&_(M),document.body.appendChild(z)};function h(x){const{strategy:j="afterInteractive"}=x;j==="lazyOnload"?window.addEventListener("load",()=>{(0,u.requestIdleCallback)(()=>y(x))}):y(x)}function g(x){document.readyState==="complete"?(0,u.requestIdleCallback)(()=>y(x)):window.addEventListener("load",()=>{(0,u.requestIdleCallback)(()=>y(x))})}function v(){[...document.querySelectorAll('[data-nscript="beforeInteractive"]'),...document.querySelectorAll('[data-nscript="beforePageRender"]')].forEach(j=>{const I=j.id||j.getAttribute("src");f.add(I)})}function N(x){x.forEach(h),v()}function S(x){const{id:j,src:I="",onLoad:P=()=>{},onReady:w=null,strategy:O="afterInteractive",onError:q,stylesheets:E,...R}=x,{updateScripts:M,scripts:T,getIsSsr:k,appDir:z,nonce:$}=(0,i.useContext)(c.HeadManagerContext),W=(0,i.useRef)(!1);(0,i.useEffect)(()=>{const Z=j||I;W.current||(w&&Z&&f.has(Z)&&w(),W.current=!0)},[w,j,I]);const Y=(0,i.useRef)(!1);if((0,i.useEffect)(()=>{Y.current||(O==="afterInteractive"?y(x):O==="lazyOnload"&&g(x),Y.current=!0)},[x,O]),(O==="beforeInteractive"||O==="worker")&&(M?(T[O]=(T[O]||[]).concat([{id:j,src:I,onLoad:P,onReady:w,onError:q,...R}]),M(T)):k&&k()?f.add(j||I):k&&!k()&&y(x)),z){if(E&&E.forEach(Z=>{s.default.preinit(Z,{as:"style"})}),O==="beforeInteractive")return I?(s.default.preload(I,R.integrity?{as:"script",integrity:R.integrity}:{as:"script"}),i.default.createElement("script",{nonce:$,dangerouslySetInnerHTML:{__html:"(self.__next_s=self.__next_s||[]).push("+JSON.stringify([I])+")"}})):(R.dangerouslySetInnerHTML&&(R.children=R.dangerouslySetInnerHTML.__html,delete R.dangerouslySetInnerHTML),i.default.createElement("script",{nonce:$,dangerouslySetInnerHTML:{__html:"(self.__next_s=self.__next_s||[]).push("+JSON.stringify([0,{...R}])+")"}}));O==="afterInteractive"&&I&&s.default.preload(I,R.integrity?{as:"script",integrity:R.integrity}:{as:"script"})}return null}Object.defineProperty(S,"__nextScript",{value:!0});const C=S;(typeof t.default=="function"||typeof t.default=="object"&&t.default!==null)&&typeof t.default.__esModule>"u"&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)})(Qt,Qt.exports);var vi=Qt.exports,bi=vi;const xi=lr(bi),Ci=({children:e,ONE_TRUST:t})=>o.jsxs(o.Fragment,{children:[o.jsx(xi,{src:"https://cdn.cookielaw.org/scripttemplates/otSDKStub.js",defer:!0,strategy:"afterInteractive","data-domain-script":t.siteId,type:"text/javascript"}),e]}),ji=ur(()=>Promise.resolve(Ci),{ssr:!1}),Ii="_footer__bottom_1otu7_1",Si="_footer__wrapper_1otu7_9",Ni="_footer__main_1otu7_41",Pi="_footer__legalInformation_1otu7_48",Ti="_footer__column_1otu7_70",Ei="_footer__columnContent_1otu7_80",wi="_footer__item_1otu7_84",Ri="_footer__itemLink_1otu7_100",Oi="_footer__columnTitle_1otu7_115",Ai="_footer__columnTitleIcon_1otu7_127",Mi="_footer__iconList_1otu7_140",ki="_footer__itemSmallText_1otu7_150",Li="_payment_1otu7_161",Di="_footer__iconContainer_1otu7_166",qi="_footer__iconListSubHeader_1otu7_171",zi="_accordionWrapper_1otu7_193",$i="_accordionHeader_1otu7_197",Fi="_accordionTextWrapper_1otu7_201",F={footer__bottom:Ii,footer__wrapper:Si,footer__main:Ni,footer__legalInformation:Pi,footer__column:Ti,footer__columnContent:Ei,footer__item:wi,footer__itemLink:Ri,footer__columnTitle:Oi,footer__columnTitleIcon:Ai,footer__iconList:Mi,footer__itemSmallText:ki,payment:Li,footer__iconContainer:Di,footer__iconListSubHeader:qi,accordionWrapper:zi,accordionHeader:$i,accordionTextWrapper:Fi,"footer--stamps":"_footer--stamps_1otu7_240","footer--stamps--company":"_footer--stamps--company_1otu7_247"},Bi=({name:e,nameIcon:t,maxWidth:r,rowAlignContent:n,columnAlignContent:a,columnAlignItems:s,textAlignContent:i,textAlignItems:c,children:l})=>o.jsx(m.TextStructure.Root,{layoutProps:{textRow:{alignContent:n,alignItems:n},columnWrapper:{alignContent:a,alignItems:s}},children:o.jsxs(m.TextStructure.DivWrapper,{alignContent:i,alignItems:c,className:F.footer__column,children:[o.jsxs("div",{className:t?F.footer__columnTitleIcon:F.footer__columnTitle,children:[o.jsx(m.Icon,{name:`${t}`,size:"small"}),e&&o.jsx("div",{children:e})]}),o.jsx("div",{className:F.footer__columnContent,style:{maxWidth:`${r}px`},children:l})]})}),Hi=({name:e,nameIcon:t,maxWidth:r,children:n,...a})=>o.jsxs(m.Accordion.Wrapper,{className:F.accordionWrapper,title:"accordion-wrapper",...a,children:[o.jsx(m.Accordion.Header,{id:(a==null?void 0:a.id)??"",className:F.accordionHeader,closeIndicator:o.jsx(m.Icon,{name:"arrow-up",size:"medium"}),openIndicator:o.jsx(m.Icon,{name:"arrow-down",size:"medium"}),title:"accordion-header",children:o.jsx(m.TextStructure.Root,{children:o.jsxs(m.TextStructure.DivWrapper,{className:t?F.accordionTextWrapper:"",children:[o.jsx(m.Icon,{name:`${t}`,size:"medium"}),o.jsx("h2",{className:"typography-style-body-md",children:e})]})})}),o.jsx(m.Accordion.Body,{title:"accordion-body",children:o.jsx(m.TextStructure.Root,{children:o.jsx(m.TextStructure.DivWrapper,{className:F.footer__columnContent,style:{maxWidth:`${r}px`},children:n})})})]}),gt=e=>{const{isMobile:t}=he();return t?o.jsx(Hi,{...e}):o.jsx(Bi,{...e})};var Yt={exports:{}},Qe={exports:{}},yt={},Rr;function zo(){return Rr||(Rr=1,function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(i,c){for(var l in c)Object.defineProperty(i,l,{enumerable:!0,get:c[l]})}t(e,{searchParamsToUrlQuery:function(){return r},urlQueryToSearchParams:function(){return a},assign:function(){return s}});function r(i){const c={};return i.forEach((l,u)=>{typeof c[u]>"u"?c[u]=l:Array.isArray(c[u])?c[u].push(l):c[u]=[c[u],l]}),c}function n(i){return typeof i=="string"||typeof i=="number"&&!isNaN(i)||typeof i=="boolean"?String(i):""}function a(i){const c=new URLSearchParams;return Object.entries(i).forEach(l=>{let[u,p]=l;Array.isArray(p)?p.forEach(f=>c.append(u,n(f))):c.set(u,n(p))}),c}function s(i){for(var c=arguments.length,l=new Array(c>1?c-1:0),u=1;u<c;u++)l[u-1]=arguments[u];return l.forEach(p=>{Array.from(p.keys()).forEach(f=>i.delete(f)),p.forEach((f,d)=>i.append(d,f))}),i}}(yt)),yt}var vt={},Or;function $o(){return Or||(Or=1,function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(l,u){for(var p in u)Object.defineProperty(l,p,{enumerable:!0,get:u[p]})}t(e,{formatUrl:function(){return s},urlObjectKeys:function(){return i},formatWithValidation:function(){return c}});const n=lt._(zo()),a=/https?|ftp|gopher|file/;function s(l){let{auth:u,hostname:p}=l,f=l.protocol||"",d=l.pathname||"",_=l.hash||"",y=l.query||"",h=!1;u=u?encodeURIComponent(u).replace(/%3A/i,":")+"@":"",l.host?h=u+l.host:p&&(h=u+(~p.indexOf(":")?"["+p+"]":p),l.port&&(h+=":"+l.port)),y&&typeof y=="object"&&(y=String(n.urlQueryToSearchParams(y)));let g=l.search||y&&"?"+y||"";return f&&!f.endsWith(":")&&(f+=":"),l.slashes||(!f||a.test(f))&&h!==!1?(h="//"+(h||""),d&&d[0]!=="/"&&(d="/"+d)):h||(h=""),_&&_[0]!=="#"&&(_="#"+_),g&&g[0]!=="?"&&(g="?"+g),d=d.replace(/[?#]/g,encodeURIComponent),g=g.replace("#","%23"),""+f+h+d+g+_}const i=["auth","hash","host","hostname","href","path","pathname","port","protocol","query","search","slashes"];function c(l){return process.env.NODE_ENV==="development"&&l!==null&&typeof l=="object"&&Object.keys(l).forEach(u=>{i.includes(u)||console.warn("Unknown key passed via urlObject into url.format: "+u)}),s(l)}}(vt)),vt}var bt={},Ar;function Ui(){return Ar||(Ar=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"omit",{enumerable:!0,get:function(){return t}});function t(r,n){const a={};return Object.keys(r).forEach(s=>{n.includes(s)||(a[s]=r[s])}),a}}(bt)),bt}var xt={},Mr;function dt(){return Mr||(Mr=1,function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(C,x){for(var j in x)Object.defineProperty(C,j,{enumerable:!0,get:x[j]})}t(e,{WEB_VITALS:function(){return r},execOnce:function(){return n},isAbsoluteUrl:function(){return s},getLocationOrigin:function(){return i},getURL:function(){return c},getDisplayName:function(){return l},isResSent:function(){return u},normalizeRepeatedSlashes:function(){return p},loadGetInitialProps:function(){return f},SP:function(){return d},ST:function(){return _},DecodeError:function(){return y},NormalizeError:function(){return h},PageNotFoundError:function(){return g},MissingStaticPage:function(){return v},MiddlewareNotFoundError:function(){return N},stringifyError:function(){return S}});const r=["CLS","FCP","FID","INP","LCP","TTFB"];function n(C){let x=!1,j;return function(){for(var I=arguments.length,P=new Array(I),w=0;w<I;w++)P[w]=arguments[w];return x||(x=!0,j=C(...P)),j}}const a=/^[a-zA-Z][a-zA-Z\d+\-.]*?:/,s=C=>a.test(C);function i(){const{protocol:C,hostname:x,port:j}=window.location;return C+"//"+x+(j?":"+j:"")}function c(){const{href:C}=window.location,x=i();return C.substring(x.length)}function l(C){return typeof C=="string"?C:C.displayName||C.name||"Unknown"}function u(C){return C.finished||C.headersSent}function p(C){const x=C.split("?");return x[0].replace(/\\/g,"/").replace(/\/\/+/g,"/")+(x[1]?"?"+x.slice(1).join("?"):"")}async function f(C,x){if(process.env.NODE_ENV!=="production"){var j;if((j=C.prototype)!=null&&j.getInitialProps){const w='"'+l(C)+'.getInitialProps()" is defined as an instance method - visit https://nextjs.org/docs/messages/get-initial-props-as-an-instance-method for more information.';throw new Error(w)}}const I=x.res||x.ctx&&x.ctx.res;if(!C.getInitialProps)return x.ctx&&x.Component?{pageProps:await f(x.Component,x.ctx)}:{};const P=await C.getInitialProps(x);if(I&&u(I))return P;if(!P){const w='"'+l(C)+'.getInitialProps()" should resolve to an object. But found "'+P+'" instead.';throw new Error(w)}return process.env.NODE_ENV!=="production"&&Object.keys(P).length===0&&!x.ctx&&console.warn(""+l(C)+" returned an empty object from `getInitialProps`. This de-optimizes and prevents automatic static optimization. https://nextjs.org/docs/messages/empty-object-getInitialProps"),P}const d=typeof performance<"u",_=d&&["mark","measure","getEntriesByName"].every(C=>typeof performance[C]=="function");class y extends Error{}class h extends Error{}class g extends Error{constructor(x){super(),this.code="ENOENT",this.name="PageNotFoundError",this.message="Cannot find module for page: "+x}}class v extends Error{constructor(x,j){super(),this.message="Failed to load static file for page: "+x+" "+j}}class N extends Error{constructor(){super(),this.code="ENOENT",this.message="Cannot find the middleware module"}}function S(C){return JSON.stringify({message:C.message,stack:C.stack})}}(xt)),xt}var Ye={exports:{}},Ct={},kr;function Fo(){return kr||(kr=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"removeTrailingSlash",{enumerable:!0,get:function(){return t}});function t(r){return r.replace(/\/$/,"")||"/"}}(Ct)),Ct}var jt={},Lr;function dr(){return Lr||(Lr=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"parsePath",{enumerable:!0,get:function(){return t}});function t(r){const n=r.indexOf("#"),a=r.indexOf("?"),s=a>-1&&(n<0||a<n);return s||n>-1?{pathname:r.substring(0,s?a:n),query:s?r.substring(a,n>-1?n:void 0):"",hash:n>-1?r.slice(n):""}:{pathname:r,query:"",hash:""}}}(jt)),jt}var Dr;function ft(){return Dr||(Dr=1,function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"normalizePathTrailingSlash",{enumerable:!0,get:function(){return a}});const r=Fo(),n=dr(),a=s=>{if(!s.startsWith("/")||process.env.__NEXT_MANUAL_TRAILING_SLASH)return s;const{pathname:i,query:c,hash:l}=(0,n.parsePath)(s);return process.env.__NEXT_TRAILING_SLASH?/\.[^/]+\/?$/.test(i)?""+(0,r.removeTrailingSlash)(i)+c+l:i.endsWith("/")?""+i+c+l:i+"/"+c+l:""+(0,r.removeTrailingSlash)(i)+c+l};(typeof t.default=="function"||typeof t.default=="object"&&t.default!==null)&&typeof t.default.__esModule>"u"&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)}(Ye,Ye.exports)),Ye.exports}var It={},Ze={exports:{}},St={},qr;function Bo(){return qr||(qr=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"pathHasPrefix",{enumerable:!0,get:function(){return r}});const t=dr();function r(n,a){if(typeof n!="string")return!1;const{pathname:s}=(0,t.parsePath)(n);return s===a||s.startsWith(a+"/")}}(St)),St}var zr;function Wi(){return zr||(zr=1,function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"hasBasePath",{enumerable:!0,get:function(){return a}});const r=Bo(),n=process.env.__NEXT_ROUTER_BASEPATH||"";function a(s){return(0,r.pathHasPrefix)(s,n)}(typeof t.default=="function"||typeof t.default=="object"&&t.default!==null)&&typeof t.default.__esModule>"u"&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)}(Ze,Ze.exports)),Ze.exports}var $r;function Ho(){return $r||($r=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"isLocalURL",{enumerable:!0,get:function(){return n}});const t=dt(),r=Wi();function n(a){if(!(0,t.isAbsoluteUrl)(a))return!0;try{const s=(0,t.getLocationOrigin)(),i=new URL(a,s);return i.origin===s&&(0,r.hasBasePath)(i.pathname)}catch{return!1}}}(It)),It}var Nt={},Pt={},Fr;function Vi(){return Fr||(Fr=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"getSortedRoutes",{enumerable:!0,get:function(){return r}});class t{insert(a){this._insert(a.split("/").filter(Boolean),[],!1)}smoosh(){return this._smoosh()}_smoosh(a){a===void 0&&(a="/");const s=[...this.children.keys()].sort();this.slugName!==null&&s.splice(s.indexOf("[]"),1),this.restSlugName!==null&&s.splice(s.indexOf("[...]"),1),this.optionalRestSlugName!==null&&s.splice(s.indexOf("[[...]]"),1);const i=s.map(c=>this.children.get(c)._smoosh(""+a+c+"/")).reduce((c,l)=>[...c,...l],[]);if(this.slugName!==null&&i.push(...this.children.get("[]")._smoosh(a+"["+this.slugName+"]/")),!this.placeholder){const c=a==="/"?"/":a.slice(0,-1);if(this.optionalRestSlugName!=null)throw new Error('You cannot define a route with the same specificity as a optional catch-all route ("'+c+'" and "'+c+"[[..."+this.optionalRestSlugName+']]").');i.unshift(c)}return this.restSlugName!==null&&i.push(...this.children.get("[...]")._smoosh(a+"[..."+this.restSlugName+"]/")),this.optionalRestSlugName!==null&&i.push(...this.children.get("[[...]]")._smoosh(a+"[[..."+this.optionalRestSlugName+"]]/")),i}_insert(a,s,i){if(a.length===0){this.placeholder=!1;return}if(i)throw new Error("Catch-all must be the last part of the URL.");let c=a[0];if(c.startsWith("[")&&c.endsWith("]")){let p=function(f,d){if(f!==null&&f!==d)throw new Error("You cannot use different slug names for the same dynamic path ('"+f+"' !== '"+d+"').");s.forEach(_=>{if(_===d)throw new Error('You cannot have the same slug name "'+d+'" repeat within a single dynamic path');if(_.replace(/\W/g,"")===c.replace(/\W/g,""))throw new Error('You cannot have the slug names "'+_+'" and "'+d+'" differ only by non-word symbols within a single dynamic path')}),s.push(d)},l=c.slice(1,-1),u=!1;if(l.startsWith("[")&&l.endsWith("]")&&(l=l.slice(1,-1),u=!0),l.startsWith("...")&&(l=l.substring(3),i=!0),l.startsWith("[")||l.endsWith("]"))throw new Error("Segment names may not start or end with extra brackets ('"+l+"').");if(l.startsWith("."))throw new Error("Segment names may not start with erroneous periods ('"+l+"').");if(i)if(u){if(this.restSlugName!=null)throw new Error('You cannot use both an required and optional catch-all route at the same level ("[...'+this.restSlugName+']" and "'+a[0]+'" ).');p(this.optionalRestSlugName,l),this.optionalRestSlugName=l,c="[[...]]"}else{if(this.optionalRestSlugName!=null)throw new Error('You cannot use both an optional and required catch-all route at the same level ("[[...'+this.optionalRestSlugName+']]" and "'+a[0]+'").');p(this.restSlugName,l),this.restSlugName=l,c="[...]"}else{if(u)throw new Error('Optional route parameters are not yet supported ("'+a[0]+'").');p(this.slugName,l),this.slugName=l,c="[]"}}this.children.has(c)||this.children.set(c,new t),this.children.get(c)._insert(a.slice(1),s,i)}constructor(){this.placeholder=!0,this.children=new Map,this.slugName=null,this.restSlugName=null,this.optionalRestSlugName=null}}function r(n){const a=new t;return n.forEach(s=>a.insert(s)),a.smoosh()}}(Pt)),Pt}var Tt={},Br;function Gi(){return Br||(Br=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"isDynamicRoute",{enumerable:!0,get:function(){return r}});const t=/\/\[[^/]+?\](?=\/|$)/;function r(n){return t.test(n)}}(Tt)),Tt}var Hr;function Ki(){return Hr||(Hr=1,function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(a,s){for(var i in s)Object.defineProperty(a,i,{enumerable:!0,get:s[i]})}t(e,{getSortedRoutes:function(){return r.getSortedRoutes},isDynamicRoute:function(){return n.isDynamicRoute}});const r=Vi(),n=Gi()}(Nt)),Nt}var Et={},wt={},Ur;function Xi(){return Ur||(Ur=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"getRouteMatcher",{enumerable:!0,get:function(){return r}});const t=dt();function r(n){let{re:a,groups:s}=n;return i=>{const c=a.exec(i);if(!c)return!1;const l=p=>{try{return decodeURIComponent(p)}catch{throw new t.DecodeError("failed to decode param")}},u={};return Object.keys(s).forEach(p=>{const f=s[p],d=c[f.pos];d!==void 0&&(u[p]=~d.indexOf("/")?d.split("/").map(_=>l(_)):f.repeat?[l(d)]:l(d))}),u}}}(wt)),wt}var Rt={},Ot={},At={},Mt={},Wr;function Qi(){return Wr||(Wr=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"ensureLeadingSlash",{enumerable:!0,get:function(){return t}});function t(r){return r.startsWith("/")?r:"/"+r}}(Mt)),Mt}var kt={},Vr;function Yi(){return Vr||(Vr=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"isGroupSegment",{enumerable:!0,get:function(){return t}});function t(r){return r[0]==="("&&r.endsWith(")")}}(kt)),kt}var Gr;function Zi(){return Gr||(Gr=1,function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(i,c){for(var l in c)Object.defineProperty(i,l,{enumerable:!0,get:c[l]})}t(e,{normalizeAppPath:function(){return a},normalizeRscPath:function(){return s}});const r=Qi(),n=Yi();function a(i){return(0,r.ensureLeadingSlash)(i.split("/").reduce((c,l,u,p)=>!l||(0,n.isGroupSegment)(l)||l[0]==="@"||(l==="page"||l==="route")&&u===p.length-1?c:c+"/"+l,""))}function s(i,c){return c?i.replace(/\.rsc($|\?)/,"$1"):i}}(At)),At}var Kr;function Ji(){return Kr||(Kr=1,function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(i,c){for(var l in c)Object.defineProperty(i,l,{enumerable:!0,get:c[l]})}t(e,{INTERCEPTION_ROUTE_MARKERS:function(){return n},isInterceptionRouteAppPath:function(){return a},extractInterceptionRouteInformation:function(){return s}});const r=Zi(),n=["(..)(..)","(.)","(..)","(...)"];function a(i){return i.split("/").find(c=>n.find(l=>c.startsWith(l)))!==void 0}function s(i){let c,l,u;for(const p of i.split("/"))if(l=n.find(f=>p.startsWith(f)),l){[c,u]=i.split(l,2);break}if(!c||!l||!u)throw new Error(`Invalid interception route: ${i}. Must be in the format /<intercepting route>/(..|...|..)(..)/<intercepted route>`);switch(c=(0,r.normalizeAppPath)(c),l){case"(.)":c==="/"?u=`/${u}`:u=c+"/"+u;break;case"(..)":if(c==="/")throw new Error(`Invalid interception route: ${i}. Cannot use (..) marker at the root level, use (.) instead.`);u=c.split("/").slice(0,-1).concat(u).join("/");break;case"(...)":u="/"+u;break;case"(..)(..)":const p=c.split("/");if(p.length<=2)throw new Error(`Invalid interception route: ${i}. Cannot use (..)(..) marker at the root level or one level up.`);u=p.slice(0,-2).concat(u).join("/");break;default:throw new Error("Invariant: unexpected marker")}return{interceptingRoute:c,interceptedRoute:u}}}(Ot)),Ot}var Lt={},Xr;function ec(){return Xr||(Xr=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"escapeStringRegexp",{enumerable:!0,get:function(){return n}});const t=/[|\\{}()[\]^$+*?.-]/,r=/[|\\{}()[\]^$+*?.-]/g;function n(a){return t.test(a)?a.replace(r,"\\$&"):a}}(Lt)),Lt}var Qr;function tc(){return Qr||(Qr=1,function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(h,g){for(var v in g)Object.defineProperty(h,v,{enumerable:!0,get:g[v]})}t(e,{getRouteRegex:function(){return u},getNamedRouteRegex:function(){return _},getNamedMiddlewareRegex:function(){return y}});const r=Ji(),n=ec(),a=Fo(),s="nxtP",i="nxtI";function c(h){const g=h.startsWith("[")&&h.endsWith("]");g&&(h=h.slice(1,-1));const v=h.startsWith("...");return v&&(h=h.slice(3)),{key:h,repeat:v,optional:g}}function l(h){const g=(0,a.removeTrailingSlash)(h).slice(1).split("/"),v={};let N=1;return{parameterizedRoute:g.map(S=>{const C=r.INTERCEPTION_ROUTE_MARKERS.find(j=>S.startsWith(j)),x=S.match(/\[((?:\[.*\])|.+)\]/);if(C&&x){const{key:j,optional:I,repeat:P}=c(x[1]);return v[j]={pos:N++,repeat:P,optional:I},"/"+(0,n.escapeStringRegexp)(C)+"([^/]+?)"}else if(x){const{key:j,repeat:I,optional:P}=c(x[1]);return v[j]={pos:N++,repeat:I,optional:P},I?P?"(?:/(.+?))?":"/(.+?)":"/([^/]+?)"}else return"/"+(0,n.escapeStringRegexp)(S)}).join(""),groups:v}}function u(h){const{parameterizedRoute:g,groups:v}=l(h);return{re:new RegExp("^"+g+"(?:/)?$"),groups:v}}function p(){let h=0;return()=>{let g="",v=++h;for(;v>0;)g+=String.fromCharCode(97+(v-1)%26),v=Math.floor((v-1)/26);return g}}function f(h){let{getSafeRouteKey:g,segment:v,routeKeys:N,keyPrefix:S}=h;const{key:C,optional:x,repeat:j}=c(v);let I=C.replace(/\W/g,"");S&&(I=""+S+I);let P=!1;return(I.length===0||I.length>30)&&(P=!0),isNaN(parseInt(I.slice(0,1)))||(P=!0),P&&(I=g()),S?N[I]=""+S+C:N[I]=""+C,j?x?"(?:/(?<"+I+">.+?))?":"/(?<"+I+">.+?)":"/(?<"+I+">[^/]+?)"}function d(h,g){const v=(0,a.removeTrailingSlash)(h).slice(1).split("/"),N=p(),S={};return{namedParameterizedRoute:v.map(C=>{const x=r.INTERCEPTION_ROUTE_MARKERS.some(I=>C.startsWith(I)),j=C.match(/\[((?:\[.*\])|.+)\]/);return x&&j?f({getSafeRouteKey:N,segment:j[1],routeKeys:S,keyPrefix:g?i:void 0}):j?f({getSafeRouteKey:N,segment:j[1],routeKeys:S,keyPrefix:g?s:void 0}):"/"+(0,n.escapeStringRegexp)(C)}).join(""),routeKeys:S}}function _(h,g){const v=d(h,g);return{...u(h),namedRegex:"^"+v.namedParameterizedRoute+"(?:/)?$",routeKeys:v.routeKeys}}function y(h,g){const{parameterizedRoute:v}=l(h),{catchAll:N=!0}=g;if(v==="/")return{namedRegex:"^/"+(N?".*":"")+"$"};const{namedParameterizedRoute:S}=d(h,!1);let C=N?"(?:(/.*)?)":"";return{namedRegex:"^"+S+C+"$"}}}(Rt)),Rt}var Yr;function rc(){return Yr||(Yr=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"interpolateAs",{enumerable:!0,get:function(){return n}});const t=Xi(),r=tc();function n(a,s,i){let c="";const l=(0,r.getRouteRegex)(a),u=l.groups,p=(s!==a?(0,t.getRouteMatcher)(l)(s):"")||i;c=a;const f=Object.keys(u);return f.every(d=>{let _=p[d]||"";const{repeat:y,optional:h}=u[d];let g="["+(y?"...":"")+d+"]";return h&&(g=(_?"":"/")+"["+g+"]"),y&&!Array.isArray(_)&&(_=[_]),(h||d in p)&&(c=c.replace(g,y?_.map(v=>encodeURIComponent(v)).join("/"):encodeURIComponent(_))||"/")})||(c=""),{params:f,result:c}}}(Et)),Et}var Zr;function nc(){return Zr||(Zr=1,function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"resolveHref",{enumerable:!0,get:function(){return p}});const r=zo(),n=$o(),a=Ui(),s=dt(),i=ft(),c=Ho(),l=Ki(),u=rc();function p(f,d,_){let y,h=typeof d=="string"?d:(0,n.formatWithValidation)(d);const g=h.match(/^[a-zA-Z]{1,}:\/\//),v=g?h.slice(g[0].length):h;if((v.split("?")[0]||"").match(/(\/\/|\\)/)){console.error("Invalid href '"+h+"' passed to next/router in page: '"+f.pathname+"'. Repeated forward-slashes (//) or backslashes \\ are not valid in the href.");const S=(0,s.normalizeRepeatedSlashes)(v);h=(g?g[0]:"")+S}if(!(0,c.isLocalURL)(h))return _?[h]:h;try{y=new URL(h.startsWith("#")?f.asPath:f.pathname,"http://n")}catch{y=new URL("/","http://n")}try{const S=new URL(h,y);S.pathname=(0,i.normalizePathTrailingSlash)(S.pathname);let C="";if((0,l.isDynamicRoute)(S.pathname)&&S.searchParams&&_){const j=(0,r.searchParamsToUrlQuery)(S.searchParams),{result:I,params:P}=(0,u.interpolateAs)(S.pathname,S.pathname,j);I&&(C=(0,n.formatWithValidation)({pathname:I,hash:S.hash,query:(0,a.omit)(j,P)}))}const x=S.origin===y.origin?S.href.slice(S.origin.length):S.href;return _?[x,C||x]:x}catch{return _?[h]:h}}(typeof t.default=="function"||typeof t.default=="object"&&t.default!==null)&&typeof t.default.__esModule>"u"&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)}(Qe,Qe.exports)),Qe.exports}var Je={exports:{}},Dt={},qt={},Jr;function Uo(){return Jr||(Jr=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"addPathPrefix",{enumerable:!0,get:function(){return r}});const t=dr();function r(n,a){if(!n.startsWith("/")||!a)return n;const{pathname:s,query:i,hash:c}=(0,t.parsePath)(n);return""+a+s+i+c}}(qt)),qt}var en;function oc(){return en||(en=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"addLocale",{enumerable:!0,get:function(){return n}});const t=Uo(),r=Bo();function n(a,s,i,c){if(!s||s===i)return a;const l=a.toLowerCase();return!c&&((0,r.pathHasPrefix)(l,"/api")||(0,r.pathHasPrefix)(l,"/"+s.toLowerCase()))?a:(0,t.addPathPrefix)(a,"/"+s)}}(Dt)),Dt}var tn;function ac(){return tn||(tn=1,function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"addLocale",{enumerable:!0,get:function(){return n}});const r=ft(),n=function(a){for(var s=arguments.length,i=new Array(s>1?s-1:0),c=1;c<s;c++)i[c-1]=arguments[c];return process.env.__NEXT_I18N_SUPPORT?(0,r.normalizePathTrailingSlash)(oc().addLocale(a,...i)):a};(typeof t.default=="function"||typeof t.default=="object"&&t.default!==null)&&typeof t.default.__esModule>"u"&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)}(Je,Je.exports)),Je.exports}var zt={},rn;function sc(){return rn||(rn=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"RouterContext",{enumerable:!0,get:function(){return n}});const n=ae._(b).default.createContext(null);process.env.NODE_ENV!=="production"&&(n.displayName="RouterContext")}(zt)),zt}var $t={},nn;function ic(){return nn||(nn=1,function(e){"use client";Object.defineProperty(e,"__esModule",{value:!0});function t(u,p){for(var f in p)Object.defineProperty(u,f,{enumerable:!0,get:p[f]})}t(e,{CacheStates:function(){return a},AppRouterContext:function(){return s},LayoutRouterContext:function(){return i},GlobalLayoutRouterContext:function(){return c},TemplateContext:function(){return l}});const n=ae._(b);var a;(function(u){u.LAZY_INITIALIZED="LAZYINITIALIZED",u.DATA_FETCH="DATAFETCH",u.READY="READY"})(a||(a={}));const s=n.default.createContext(null),i=n.default.createContext(null),c=n.default.createContext(null),l=n.default.createContext(null);process.env.NODE_ENV!=="production"&&(s.displayName="AppRouterContext",i.displayName="LayoutRouterContext",c.displayName="GlobalLayoutRouterContext",l.displayName="TemplateContext")}($t)),$t}var et={exports:{}},on;function cc(){return on||(on=1,function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"useIntersection",{enumerable:!0,get:function(){return u}});const r=b,n=qo(),a=typeof IntersectionObserver=="function",s=new Map,i=[];function c(p){const f={root:p.root||null,margin:p.rootMargin||""},d=i.find(g=>g.root===f.root&&g.margin===f.margin);let _;if(d&&(_=s.get(d),_))return _;const y=new Map,h=new IntersectionObserver(g=>{g.forEach(v=>{const N=y.get(v.target),S=v.isIntersecting||v.intersectionRatio>0;N&&S&&N(S)})},p);return _={id:f,observer:h,elements:y},i.push(f),s.set(f,_),_}function l(p,f,d){const{id:_,observer:y,elements:h}=c(d);return h.set(p,f),y.observe(p),function(){if(h.delete(p),y.unobserve(p),h.size===0){y.disconnect(),s.delete(_);const v=i.findIndex(N=>N.root===_.root&&N.margin===_.margin);v>-1&&i.splice(v,1)}}}function u(p){let{rootRef:f,rootMargin:d,disabled:_}=p;const y=_||!a,[h,g]=(0,r.useState)(!1),v=(0,r.useRef)(null),N=(0,r.useCallback)(C=>{v.current=C},[]);(0,r.useEffect)(()=>{if(a){if(y||h)return;const C=v.current;if(C&&C.tagName)return l(C,j=>j&&g(j),{root:f==null?void 0:f.current,rootMargin:d})}else if(!h){const C=(0,n.requestIdleCallback)(()=>g(!0));return()=>(0,n.cancelIdleCallback)(C)}},[y,d,f,h,v.current]);const S=(0,r.useCallback)(()=>{g(!1)},[]);return[N,h,S]}(typeof t.default=="function"||typeof t.default=="object"&&t.default!==null)&&typeof t.default.__esModule>"u"&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)}(et,et.exports)),et.exports}var tt={exports:{}},rt={exports:{}},Ft={},an;function lc(){return an||(an=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"normalizeLocalePath",{enumerable:!0,get:function(){return t}});function t(r,n){let a;const s=r.split("/");return(n||[]).some(i=>s[1]&&s[1].toLowerCase()===i.toLowerCase()?(a=i,s.splice(1,1),r=s.join("/")||"/",!0):!1),{pathname:r,detectedLocale:a}}}(Ft)),Ft}var sn;function uc(){return sn||(sn=1,function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"normalizeLocalePath",{enumerable:!0,get:function(){return r}});const r=(n,a)=>process.env.__NEXT_I18N_SUPPORT?lc().normalizeLocalePath(n,a):{pathname:n,detectedLocale:void 0};(typeof t.default=="function"||typeof t.default=="object"&&t.default!==null)&&typeof t.default.__esModule>"u"&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)}(rt,rt.exports)),rt.exports}var nt={exports:{}},Bt={},cn;function dc(){return cn||(cn=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"detectDomainLocale",{enumerable:!0,get:function(){return t}});function t(r,n,a){if(r){a&&(a=a.toLowerCase());for(const c of r){var s,i;const l=(s=c.domain)==null?void 0:s.split(":")[0].toLowerCase();if(n===l||a===c.defaultLocale.toLowerCase()||(i=c.locales)!=null&&i.some(u=>u.toLowerCase()===a))return c}}}}(Bt)),Bt}var ln;function fc(){return ln||(ln=1,function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"detectDomainLocale",{enumerable:!0,get:function(){return r}});const r=function(){for(var n=arguments.length,a=new Array(n),s=0;s<n;s++)a[s]=arguments[s];if(process.env.__NEXT_I18N_SUPPORT)return dc().detectDomainLocale(...a)};(typeof t.default=="function"||typeof t.default=="object"&&t.default!==null)&&typeof t.default.__esModule>"u"&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)}(nt,nt.exports)),nt.exports}var un;function pc(){return un||(un=1,function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"getDomainLocale",{enumerable:!0,get:function(){return a}});const r=ft(),n=process.env.__NEXT_ROUTER_BASEPATH||"";function a(s,i,c,l){if(process.env.__NEXT_I18N_SUPPORT){const u=uc().normalizeLocalePath,p=fc().detectDomainLocale,f=i||u(s,c).detectedLocale,d=p(l,void 0,f);if(d){const _="http"+(d.http?"":"s")+"://",y=f===d.defaultLocale?"":"/"+f;return""+_+d.domain+(0,r.normalizePathTrailingSlash)(""+n+y+s)}return!1}else return!1}(typeof t.default=="function"||typeof t.default=="object"&&t.default!==null)&&typeof t.default.__esModule>"u"&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)}(tt,tt.exports)),tt.exports}var ot={exports:{}},dn;function mc(){return dn||(dn=1,function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"addBasePath",{enumerable:!0,get:function(){return s}});const r=Uo(),n=ft(),a=process.env.__NEXT_ROUTER_BASEPATH||"";function s(i,c){return(0,n.normalizePathTrailingSlash)(process.env.__NEXT_MANUAL_CLIENT_BASE_PATH&&!c?i:(0,r.addPathPrefix)(i,a))}(typeof t.default=="function"||typeof t.default=="object"&&t.default!==null)&&typeof t.default.__esModule>"u"&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)}(ot,ot.exports)),ot.exports}var at={exports:{}},fn;function hc(){return fn||(fn=1,function(e,t){Object.defineProperty(t,"__esModule",{value:!0});function r(f,d){for(var _ in d)Object.defineProperty(f,_,{enumerable:!0,get:d[_]})}r(t,{PrefetchKind:function(){return p},ACTION_REFRESH:function(){return n},ACTION_NAVIGATE:function(){return a},ACTION_RESTORE:function(){return s},ACTION_SERVER_PATCH:function(){return i},ACTION_PREFETCH:function(){return c},ACTION_FAST_REFRESH:function(){return l},ACTION_SERVER_ACTION:function(){return u}});const n="refresh",a="navigate",s="restore",i="server-patch",c="prefetch",l="fast-refresh",u="server-action";var p;(function(f){f.AUTO="auto",f.FULL="full",f.TEMPORARY="temporary"})(p||(p={})),(typeof t.default=="function"||typeof t.default=="object"&&t.default!==null)&&typeof t.default.__esModule>"u"&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)}(at,at.exports)),at.exports}(function(e,t){"use client";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return x}});const n=ae._(b),a=nc(),s=Ho(),i=$o(),c=dt(),l=ac(),u=sc(),p=ic(),f=cc(),d=pc(),_=mc(),y=hc(),h=new Set;function g(j,I,P,w,O,q){if(typeof window>"u"||!q&&!(0,s.isLocalURL)(I))return;if(!w.bypassPrefetchedCheck){const R=typeof w.locale<"u"?w.locale:"locale"in j?j.locale:void 0,M=I+"%"+P+"%"+R;if(h.has(M))return;h.add(M)}const E=q?j.prefetch(I,O):j.prefetch(I,P,w);Promise.resolve(E).catch(R=>{if(process.env.NODE_ENV!=="production")throw R})}function v(j){const P=j.currentTarget.getAttribute("target");return P&&P!=="_self"||j.metaKey||j.ctrlKey||j.shiftKey||j.altKey||j.nativeEvent&&j.nativeEvent.which===2}function N(j,I,P,w,O,q,E,R,M,T){const{nodeName:k}=j.currentTarget;if(k.toUpperCase()==="A"&&(v(j)||!M&&!(0,s.isLocalURL)(P)))return;j.preventDefault();const $=()=>{const W=E??!0;"beforePopState"in I?I[O?"replace":"push"](P,w,{shallow:q,locale:R,scroll:W}):I[O?"replace":"push"](w||P,{forceOptimisticNavigation:!T,scroll:W})};M?n.default.startTransition($):$()}function S(j){return typeof j=="string"?j:(0,i.formatUrl)(j)}const x=n.default.forwardRef(function(I,P){let w;const{href:O,as:q,children:E,prefetch:R=null,passHref:M,replace:T,shallow:k,scroll:z,locale:$,onClick:W,onMouseEnter:Y,onTouchStart:Z,legacyBehavior:ne=!1,...Ma}=I;w=E,ne&&(typeof w=="string"||typeof w=="number")&&(w=n.default.createElement("a",null,w));const V=n.default.useContext(u.RouterContext),ka=n.default.useContext(p.AppRouterContext),ie=V??ka,ce=!V,Oe=R!==!1,We=R===null?y.PrefetchKind.AUTO:y.PrefetchKind.FULL;if(process.env.NODE_ENV!=="production"){let A=function(L){return new Error("Failed prop type: The prop `"+L.key+"` expects a "+L.expected+" in `<Link>`, but got `"+L.actual+"` instead."+(typeof window<"u"?`
2
- Open your browser's console to view the Component stack trace.`:""))};Object.keys({href:!0}).forEach(L=>{if(L==="href"&&(I[L]==null||typeof I[L]!="string"&&typeof I[L]!="object"))throw A({key:L,expected:"`string` or `object`",actual:I[L]===null?"null":typeof I[L]})}),Object.keys({as:!0,replace:!0,scroll:!0,shallow:!0,passHref:!0,prefetch:!0,locale:!0,onClick:!0,onMouseEnter:!0,onTouchStart:!0,legacyBehavior:!0}).forEach(L=>{const ue=typeof I[L];if(L==="as"){if(I[L]&&ue!=="string"&&ue!=="object")throw A({key:L,expected:"`string` or `object`",actual:ue})}else if(L==="locale"){if(I[L]&&ue!=="string")throw A({key:L,expected:"`string`",actual:ue})}else if(L==="onClick"||L==="onMouseEnter"||L==="onTouchStart"){if(I[L]&&ue!=="function")throw A({key:L,expected:"`function`",actual:ue})}else if((L==="replace"||L==="scroll"||L==="shallow"||L==="passHref"||L==="prefetch"||L==="legacyBehavior")&&I[L]!=null&&ue!=="boolean")throw A({key:L,expected:"`boolean`",actual:ue})});const xr=n.default.useRef(!1);I.prefetch&&!xr.current&&!ce&&(xr.current=!0,console.warn("Next.js auto-prefetches automatically based on viewport. The prefetch attribute is no longer needed. More: https://nextjs.org/docs/messages/prefetch-true-deprecated"))}if(process.env.NODE_ENV!=="production"&&ce&&!q){let A;if(typeof O=="string"?A=O:typeof O=="object"&&typeof O.pathname=="string"&&(A=O.pathname),A&&A.split("/").some(Ie=>Ie.startsWith("[")&&Ie.endsWith("]")))throw new Error("Dynamic href `"+A+"` found in <Link> while using the `/app` router, this is not supported. Read more: https://nextjs.org/docs/messages/app-dir-dynamic-href")}const{href:le,as:J}=n.default.useMemo(()=>{if(!V){const Ie=S(O);return{href:Ie,as:q?S(q):Ie}}const[A,Ae]=(0,a.resolveHref)(V,O,!0);return{href:A,as:q?(0,a.resolveHref)(V,q):Ae||A}},[V,O,q]),_r=n.default.useRef(le),gr=n.default.useRef(J);let K;if(ne)if(process.env.NODE_ENV==="development"){W&&console.warn('"onClick" was passed to <Link> with `href` of `'+O+'` but "legacyBehavior" was set. The legacy behavior requires onClick be set on the child of next/link'),Y&&console.warn('"onMouseEnter" was passed to <Link> with `href` of `'+O+'` but "legacyBehavior" was set. The legacy behavior requires onMouseEnter be set on the child of next/link');try{K=n.default.Children.only(w)}catch{throw w?new Error("Multiple children were passed to <Link> with `href` of `"+O+"` but only one child is supported https://nextjs.org/docs/messages/link-multiple-children"+(typeof window<"u"?`
3
- Open your browser's console to view the Component stack trace.`:"")):new Error("No children were passed to <Link> with `href` of `"+O+"` but one child is required https://nextjs.org/docs/messages/link-no-children")}}else K=n.default.Children.only(w);else if(process.env.NODE_ENV==="development"&&(w==null?void 0:w.type)==="a")throw new Error(`Invalid <Link> with <a> child. Please remove <a> or use <Link legacyBehavior>.
4
- Learn more: https://nextjs.org/docs/messages/invalid-new-link-with-extra-anchor`);const je=ne?K&&typeof K=="object"&&K.ref:P,[yr,vr,br]=(0,f.useIntersection)({rootMargin:"200px"}),La=n.default.useCallback(A=>{(gr.current!==J||_r.current!==le)&&(br(),gr.current=J,_r.current=le),yr(A),je&&(typeof je=="function"?je(A):typeof je=="object"&&(je.current=A))},[J,je,le,br,yr]);n.default.useEffect(()=>{process.env.NODE_ENV==="production"&&ie&&(!vr||!Oe||g(ie,le,J,{locale:$},{kind:We},ce))},[J,le,vr,$,Oe,V==null?void 0:V.locale,ie,ce,We]);const Ve={ref:La,onClick(A){if(process.env.NODE_ENV!=="production"&&!A)throw new Error('Component rendered inside next/link has to pass click event to "onClick" prop.');!ne&&typeof W=="function"&&W(A),ne&&K.props&&typeof K.props.onClick=="function"&&K.props.onClick(A),ie&&(A.defaultPrevented||N(A,ie,le,J,T,k,z,$,ce,Oe))},onMouseEnter(A){!ne&&typeof Y=="function"&&Y(A),ne&&K.props&&typeof K.props.onMouseEnter=="function"&&K.props.onMouseEnter(A),ie&&((!Oe||process.env.NODE_ENV==="development")&&ce||g(ie,le,J,{locale:$,priority:!0,bypassPrefetchedCheck:!0},{kind:We},ce))},onTouchStart(A){!ne&&typeof Z=="function"&&Z(A),ne&&K.props&&typeof K.props.onTouchStart=="function"&&K.props.onTouchStart(A),ie&&(!Oe&&ce||g(ie,le,J,{locale:$,priority:!0,bypassPrefetchedCheck:!0},{kind:We},ce))}};if((0,c.isAbsoluteUrl)(J))Ve.href=J;else if(!ne||M||K.type==="a"&&!("href"in K.props)){const A=typeof $<"u"?$:V==null?void 0:V.locale,Ae=(V==null?void 0:V.isLocaleDomain)&&(0,d.getDomainLocale)(J,A,V==null?void 0:V.locales,V==null?void 0:V.domainLocales);Ve.href=Ae||(0,_.addBasePath)((0,l.addLocale)(J,A,V==null?void 0:V.defaultLocale))}return ne?n.default.cloneElement(K,Ve):n.default.createElement("a",{...Ma,...Ve},w)});(typeof t.default=="function"||typeof t.default=="object"&&t.default!==null)&&typeof t.default.__esModule>"u"&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)})(Yt,Yt.exports);var _c=Yt.exports,gc=_c;const se=lr(gc),st=({type:e,children:t,className:r,collumnName:n,collumnNameIcon:a,icons:s,iconLink:i,iconSize:c,link:l,paymentDisclaimer:u,paymentTitle:p,rowAlignContent:f,columnAlignContent:d,columnAlignItems:_,textAlignContent:y,textAlignItems:h,...g})=>{let v;const{handleSelectContent:N}=H(),{nextimage:S}=de();switch(e){case"menu":v=o.jsx(se,{className:F.footer__itemLink,href:l??"#",prefetch:!1,children:o.jsx("span",{onClick:()=>{N({content:`footer:${n}:${t}`})},children:t})});break;case"payment":v=o.jsxs("div",{className:m.helpers.classNameConcat(F.payment,F.footer__itemSmallText),...g,children:[u,o.jsxs("div",{className:m.helpers.classNameConcat(F.footer__iconContainer,F.footer__iconListSubHeader),children:[p,o.jsx("div",{className:F.footer__iconList,children:s==null?void 0:s.map((C,x)=>o.jsx(S,{alt:C,src:`/assets/${C}.svg`,width:c??20,height:c??20},x))})]})]});break;case"social-media":v=o.jsx("div",{className:F.footer__iconContainer,...g,children:o.jsx("div",{className:F.footer__iconList,children:i==null?void 0:i.map((C,x)=>o.jsx(se,{prefetch:!1,href:C.link??"#",children:o.jsx(m.Icon,{size:"medium",name:C.icon,onClick:()=>N({content:`footer:redes-sociais:${C.icon}`})})},x))})});break;default:v=o.jsx("div",{className:r,...g,children:t})}return o.jsx(m.TextStructure.Root,{layoutProps:{textRow:{alignContent:f,alignItems:f},columnWrapper:{alignContent:d,alignItems:_}},...g,children:o.jsx(m.TextStructure.DivWrapper,{alignContent:y,alignItems:h,className:m.helpers.classNameConcat(F.footer__item,r),children:v})})},yc=({className:e,text:t,...r})=>o.jsx("div",{...r,className:m.helpers.classNameConcat(F.footer__legalInformation,e),children:o.jsx("span",{children:t})}),Wo=()=>{const{nextimage:e}=de();return o.jsx("div",{className:F["footer--stamps"],children:o.jsx(e,{alt:"Empresa B",className:F["footer--stamps--company"],src:"/images/Footer/new_certfB.png",width:56,height:64})})};Wo.displayName="Footer.Stamps";const Vo=({children:e,legalTextSlot:t,adornment:r,className:n,...a})=>{const{isMobile:s}=he(),i=b.Children.toArray(e).filter(Boolean),c=i.length;return o.jsxs("div",{className:F.footer__main,children:[(r==null?void 0:r.top)&&o.jsx("div",{className:F.footer__top,children:r==null?void 0:r.top}),c>0&&o.jsx("div",{...a,className:m.helpers.classNameConcat(F.footer__wrapper,n),children:i.map((l,u)=>o.jsx("div",{style:{flexGrow:1,maxWidth:`calc(100% / ${s?1:"fit-content"})`},children:l},u))}),(r==null?void 0:r.bottom)&&o.jsx("div",{className:F.footer__bottom,children:r.bottom}),t&&o.jsx("div",{className:F.footer__legalText,children:t})]})};Vo.displayName="Footer.Wrapper";const Go=({data:{links:{links:e}},payments:t,socialInfo:r,socialMedias:n,adornment:a,LEGAL_INFORMATION_TEXT:s})=>{var i;return o.jsxs(Vo,{adornment:a,legalTextSlot:o.jsx(yc,{text:s}),children:[Array.isArray(e.column)&&e.column.map((c,l)=>o.jsx(gt,{id:`${l}column-menu`,name:c.name,nameIcon:c.nameIcon,children:c.items.map((u,p)=>o.jsx(st,{type:"menu",link:u.link,collumnName:c.name,collumnNameIcon:c.nameIcon,children:u.text},p))},l)),t&&((i=t.acceptedFlags)==null?void 0:i.length)>0&&o.jsx(gt,{id:"payment-column",name:t==null?void 0:t.title,nameIcon:t==null?void 0:t.titleIcon,maxWidth:150,children:o.jsx(st,{type:"payment",paymentDisclaimer:t==null?void 0:t.text,paymentTitle:t==null?void 0:t.flagsTitle,iconSize:16,icons:t==null?void 0:t.acceptedFlags})}),o.jsxs(gt,{id:"social-media-column",name:r==null?void 0:r.title,children:[o.jsx(st,{children:r==null?void 0:r.subTitle}),o.jsx(st,{type:"social-media",iconSize:24,iconLink:n}),o.jsx(Wo,{})]})]})};Go.displayName="Footer";const pn={"responsive-mobile-block":"_responsive-mobile-block_t5bry_24","responsive-desktop-block":"_responsive-desktop-block_t5bry_35"},fr={"btn-login":"_btn-login_yas63_12","btn-header":"_btn-header_yas63_22","header-animation":"_header-animation_yas63_35"},pr=({id:e})=>{const{setIsOpen:t,cartStore:{items:r}}=Re(),{handleSelectContent:n}=H(),{CONSTANTS:a}=G();return o.jsx(m.Header.SupportItem,{onClick:()=>{t(!0),n({content:"header:minicart"})},id:e,children:o.jsxs(m.Badge.AutoPositioner,{children:[o.jsx(m.Badge.Count,{count:r.length,size:"medium",variant:"primary",style:{backgroundColor:"black",display:r.length>0?"flex":"none"}}),o.jsx(m.Icon,{name:a.header.ICONS.bag,size:"medium"})]})})};pr.displayName="Header.Bag";const Be=({children:e,href:t,...r})=>t&&t!=="#"?o.jsx(se,{href:t.startsWith("/")?t:`/${t}`,...r,children:e}):e,Ko=()=>{const{headerData:e}=G(),{handleSelectContent:t}=H(),{reset:r,updateValue:n}=_e(),a=s=>{s?n(s):r()};return o.jsx(m.Header.Categories,{children:Array.isArray(e.categories)&&e.categories.map((s,i)=>o.jsx(Be,{href:s.link,onMouseEnter:()=>a(s.submenuId),onFocus:()=>a(s.submenuId),children:o.jsx(m.Header.CategoryItem,{className:fr["btn-header"],value:s.submenuId??null,adornment:{start:o.jsx(m.Icon,{name:s.iconStart}),end:o.jsx(m.Icon,{name:s.iconEnd})},style:{textWrap:"nowrap",gap:"0"},onClick:()=>{t({content:`header:${s.label}`})},children:s.label})},`category-${s.label}-${i}`))})};Ko.displayName="Header.Categories";function vc({SearchModal:e}){const{handleSelectContent:t}=H(),{CONSTANTS:r}=G(),{setValue:n}=sr();return o.jsxs(o.Fragment,{children:[o.jsx(m.Header.SupportItem,{onClick:()=>{n(!0),t({content:"header:search"})},children:o.jsx(m.Icon,{name:r.header.ICONS.search,size:"medium"})}),o.jsx(e,{recommendations:!1,trends:!0})]})}const bc={"menu-subcategories-container":"_menu-subcategories-container_a93cr_1"},xc={"observer-wrapper":"_observer-wrapper_r43gk_1"};function Cc(e,t,r){const[n,a]=b.useState(!1),{threshold:s}=r||{};return b.useEffect(()=>{if(!e.current)return()=>{};let i=null;const c=new IntersectionObserver(([l])=>{if(r!=null&&r.delay){i&&clearTimeout(i),i=setTimeout(()=>{a(l.isIntersecting),t&&l.isIntersecting&&c.unobserve(e.current)},r.delay);return}a(l.isIntersecting),t&&l.isIntersecting&&c.unobserve(e.current)},{threshold:s||1});return c.observe(e.current),()=>{c.disconnect()}},[e]),n}const Xo=({children:e,eventData:t,observerOptions:r,callBackWhenVisible:n,stopOnIntersection:a=!0,className:s,...i})=>{const c=b.useRef(null),l=Cc(c,a,r),{sendDataLayerEvent:u}=H();return b.useEffect(()=>{l&&(typeof n=="function"&&n(),t&&u({...t}))},[l]),o.jsx("div",{...i,ref:c,className:m.helpers.classNameConcat(xc["observer-wrapper"],s),children:e})},mr=({thumbnails:e,category:t,isMobile:r=!0,callBack:n})=>{const{handleSelectPromotionEvent:a}=H(),s=50/e.length;return o.jsx("div",{className:bc["menu-subcategories-container"],children:e.map((i,c)=>{const l=r?i.srcMobile:i.srcDesk;if(!l)return null;const u={creative_name:"banner-menu",creative_slot:`banner-menu:${t}:${c+1}`,promotion_id:l,promotion_name:i.promotion_name};return o.jsx(Xo,{eventData:{functionKey:"readyEvents",data:{event:"view_promotion",readyData:{ecommerce:{...u}}}},observerOptions:{delay:1e3},children:o.jsxs(se,{href:i.link??"#",onClick:()=>{typeof n=="function"&&n(),a({updatePromotionRef:!0,promotion:u})},children:[o.jsx(fe.Image,{src:l,alt:i.label??l,width:500,height:500,sizes:`(max-width: 768px) 100vw, (max-width: 1023px) 75vw, ${s}vw`}),i.label&&o.jsx("p",{children:i.label})]})},`thumb-${i.label}-${c}`)})})};mr.displayName="Menu.Thumbnail";const Zt={"menu-desktop":"_menu-desktop_1b799_1","menu-categories":"_menu-categories_1b799_12"},jc="_link_w24h0_1",Ic="_wrapper_w24h0_98",Sc="_text_w24h0_106",Ht={link:jc,wrapper:Ic,text:Sc},He=({children:e,adornments:t,className:r,disableUnderline:n,href:a,mode:s,size:i,title:c,onClick:l,disablePadding:u,...p})=>{const f=m.helpers.ValidateProp({fieldTypes:Le.SizesSmallExtended,property:i,fallback:"medium"}),d=m.helpers.ValidateProp({fieldTypes:Le.Mode,property:s,fallback:"default"});return o.jsx(se,{...p,className:m.helpers.classNameConcat(Ht.link,r),href:a&&a.length>0?a:"#","data-size":f,"data-variant":d,title:c||"NextLink","data-disable-underline":n??!1,"data-disable-padding":u??!0,children:o.jsxs("div",{className:Ht.wrapper,onClick:l,children:[t==null?void 0:t.start,o.jsx("p",{className:Ht.text,"data-size":f,children:e}),t==null?void 0:t.end]})})},Qo=({children:e,dividerOnRight:t=!0,subMenu:r,...n})=>{var l;const{router:a}=de(),{reset:s}=_e(),{handleSelectContent:i}=H(),{CONSTANTS:c}=G();return o.jsxs("div",{...n,className:Zt["menu-categories"],children:[(l=r==null?void 0:r.subCategories)==null?void 0:l.map((u,p)=>{var _,y,h;const f=u.listCollapseDesk&&!((_=u.see_all)!=null&&_.link)?{expandAfterRowsQty:u.rowsToShowDesk}:{},d=u.listCollapseDesk&&!((y=u.see_all)!=null&&y.link)?{expansivesAdornments:{open:c.header.ICONS.add,close:c.header.ICONS.minus},expansivesLabels:{open:c.header.COMPONENT_LIST.listExpandLabel,close:c.header.COMPONENT_LIST.listCollapseLabel},iconSize:"x-small"}:{adornment:{end:o.jsx(m.Icon,{name:c.header.ICONS.arrow_right,size:"small"})}};return o.jsxs(m.ComponentList.Structure,{children:[o.jsx(Be,{href:u.linkLabel,title:u.label,onClick:()=>{u.linkLabel&&(s(),i({content:`menu:${u.label??""}:${r.label??""}`}))},children:o.jsx(m.TextStructure.Root,{children:o.jsx(m.TextStructure.DivWrapper,{children:o.jsx("h2",{children:u.label})})})}),o.jsx(m.ComponentList.List,{columns:1,...f,className:Zt["submenu-categories"],children:u.items.map((g,v)=>o.jsx(m.ComponentList.ListItem,{id:`list-item-${g.label}-${v}`,children:o.jsx(He,{href:g.link??"#",size:"x-small",title:g.label??"",disableUnderline:!0,disablePadding:!0,onClick:()=>{s(),i({content:`menu:${u.label??""}:${g.label??""}:${r.label??""}`})},children:g.label})},`list-item-${g.label}-${v}`))}),((h=u.see_all)==null?void 0:h.link)&&o.jsx(m.ComponentList.Support,{...d,size:"small",onClick:()=>{var g;(g=u.see_all)!=null&&g.link&&(s(),i({content:`menu:${u.label??""}:${r.label}`}),a.push(u.see_all.link))},children:u.see_all.link&&u.see_all.label})]},`list-${u.label}-${p}`)}),t&&o.jsx(m.Utils.Divider,{size:"small",direction:"vertical"})]})};Qo.displayName="Menu.Categories";const Yo=({children:e,dividerOnBottom:t=!0,...r})=>{const{CONSTANTS:n}=G();return o.jsxs(o.Fragment,{children:[o.jsx("div",{...r,className:Zt["menu-desktop"],style:{...r.style,justifyContent:n.header.ALIGNMENT_MENU},children:e}),t&&o.jsx(m.Utils.Divider,{size:"small"})]})};Yo.displayName="Menu.MenuRoot";const Nc=ur(()=>Promise.resolve(Yo),{ssr:!1}),Ut={Root:Nc,Categories:Qo,Thumbnail:mr},Zo=()=>{const{headerData:e,CONSTANTS:t}=G(),r=ut(),{reset:n}=_e();return o.jsx(m.Header.SubMenu,{children:Array.isArray(e.subMenus)&&e.subMenus.map((a,s)=>{const{thumbnails:i,label:c,id:l}=a,u=l===r,p=i==null?void 0:i.some(f=>!!f.srcDesk);return o.jsxs(Ut.Root,{id:l,style:u?{display:"flex",zIndex:t.header.Z_INDEX_WAR.menu_desktop}:{display:"none"},dividerOnBottom:u,children:[o.jsx(Ut.Categories,{dividerOnRight:!!p,subMenu:a}),Array.isArray(i)&&o.jsx(Ut.Thumbnail,{thumbnails:i,isMobile:!1,category:c,callBack:n})]},`submenu-${l}-${s}`)})})};Zo.displayName="Header.SubMenu";const Jo=()=>{const{handleSelectContent:e}=H(),{CONSTANTS:t}=G();return o.jsx(se,{href:"/favoritos",children:o.jsx(m.Header.SupportItem,{onClick:()=>e({content:"header:wishlist"}),children:o.jsx(m.Icon,{name:t.header.ICONS.favorite_false,size:"medium"})})})};Jo.displayName="Header.WishList";const ea=({UserMenu:e,SearchModal:t})=>{const r=b.useRef(null),{CONSTANTS:n}=G(),{handleSelectContent:a}=H(),{reset:s}=_e(),{setValue:i}=ir();return o.jsxs(o.Fragment,{children:[o.jsxs(m.Header.Wrapper,{children:[o.jsx(m.Header.Logo,{style:{width:"100%"},children:o.jsx(se,{href:"/",onMouseEnter:s,children:o.jsx(m.Icon,{name:n.header.ICONS.logo,size:"x-large",onClick:()=>{a({content:"header:logo"})}})})}),o.jsx(Ko,{}),o.jsxs(m.Header.Support,{onMouseEnter:s,style:{justifyContent:"flex-end"},children:[o.jsx(vc,{SearchModal:t}),o.jsx(e,{target:r.current,children:o.jsx(m.Header.SupportItem,{onClick:()=>{i(!0),a({content:"header:user_menu"})},className:fr["btn-login"],innerRef:r,children:o.jsx(m.Icon,{name:n.header.ICONS.person,size:"medium"})})}),o.jsx(Jo,{}),o.jsx(pr,{id:"cart-button"})]})]}),o.jsx(Zo,{})]})};ea.displayName="Header.HeaderDesktopWrapper";const Pc="_divider_1lexj_199",B={"modal-modifier":"_modal-modifier_1lexj_1","menu-mobile":"_menu-mobile_1lexj_11","menu-header-container":"_menu-header-container_1lexj_26","menu-header-wrapper":"_menu-header-wrapper_1lexj_35","menu-header-navlinks":"_menu-header-navlinks_1lexj_41","menu-body":"_menu-body_1lexj_57","menu-categories-container":"_menu-categories-container_1lexj_74","menu-categories-btn":"_menu-categories-btn_1lexj_108","menu-body-banner-container-modifier":"_menu-body-banner-container-modifier_1lexj_121","menu-categories__banner":"_menu-categories__banner_1lexj_130","menu-submenu-modal-modifiier":"_menu-submenu-modal-modifiier_1lexj_135","menu-submenu":"_menu-submenu_1lexj_135","menu-submenu--item":"_menu-submenu--item_1lexj_150","menu-submenu--thumbnails":"_menu-submenu--thumbnails_1lexj_156","menu-submenu--component-list-modifier":"_menu-submenu--component-list-modifier_1lexj_184","submenu-categories":"_submenu-categories_1lexj_187","menu-navigationbar":"_menu-navigationbar_1lexj_191",divider:Pc,"menu-navigationbar-item":"_menu-navigationbar-item_1lexj_206","menu-categories-textstructure-modifier":"_menu-categories-textstructure-modifier_1lexj_210"},ta=({children:e,mobileBannerAlt:t,mobileBannerSrc:r,onClick:n,textColor:a,...s})=>o.jsx("button",{onClick:n,className:B["menu-categories-btn"],children:r?o.jsxs(m.Banner.Container,{...s,className:B["menu-body-banner-container-modifier"],children:[o.jsx(m.Banner.ImageWrapper,{style:{width:"100%"},children:o.jsx(fe.Image,{src:r,alt:t??r,className:B["menu-categories__banner"],width:343,height:128,unoptimized:!0})}),o.jsx(m.Banner.Slot,{verticalAlignment:"center",horizontalAlignment:"start",children:o.jsx(m.TextStructure.Root,{children:o.jsx(m.TextStructure.DivWrapper,{className:B["menu-categories-textstructure-modifier"],children:o.jsx("h2",{className:"typography-style-body-xs",style:a?{color:a}:{},children:e})})})})]}):o.jsx("h2",{...s,children:e})});ta.displayName="Menu.MenuCategories";const ra=({children:e,link:t})=>{const{reset:r}=xe();return t?o.jsx(se,{href:t??"#",onClick:r,children:e}):e};ra.displayName="Menu.MenuCategoriesWrapper";const na=({subcategory:e,submenuLabel:t})=>{var l,u,p;const{router:r}=de(),{reset:n}=xe(),{handleSelectContent:a}=H(),{CONSTANTS:s}=G(),i=e.listCollapseMobile&&!((l=e.see_all)!=null&&l.link)?{expandAfterRowsQty:e.rowsToShowMobile}:{},c=e.listCollapseMobile&&!((u=e.see_all)!=null&&u.link)?{expansivesAdornments:{open:s.header.ICONS.add,close:s.header.ICONS.minus},expansivesLabels:{open:s.header.COMPONENT_LIST.listExpandLabel,close:s.header.COMPONENT_LIST.listCollapseLabel},iconSize:"x-small"}:{adornment:{end:o.jsx(m.Icon,{name:s.header.ICONS.arrow_right,size:"small"})}};return o.jsxs(m.ComponentList.Structure,{className:B["menu-submenu--component-list-modifier"],children:[o.jsx(Be,{href:e.linkLabel,title:e.label,onClick:()=>{n(),a({content:`menu:${e.label??""}:${t}`})},children:o.jsx(m.TextStructure.Root,{children:o.jsx(m.TextStructure.DivWrapper,{children:o.jsx("h2",{className:"typography-style-body-sm-strong",children:e.label})})})}),o.jsx(m.ComponentList.List,{columns:1,...i,className:B["submenu-categories"],children:e.items.map((f,d)=>o.jsx(m.ComponentList.ListItem,{id:`list-item-${f.label}-${d}`,divider:!0,children:o.jsx(He,{href:f.link??"#",size:"x-small",title:f.label??"",disableUnderline:!0,onClick:()=>{n(),a({content:`menu:${e.label??""}:${f.label}:${t}`})},children:f.label})},`list-item-${f.label}-${d}`))}),((p=e.see_all)==null?void 0:p.link)&&o.jsx(m.ComponentList.Support,{...c,size:"small",onClick:()=>{var f;n(),a({content:`menu:${e.label??""}:${t}`}),(f=e.see_all)!=null&&f.link&&r.push(e.see_all.link)},children:e.see_all.link&&e.see_all.label})]})};na.displayName="Menu.SubMenuSubCategory";const oa=({submenu:e})=>{var s;const t=ut(),{handleCloseSubMenu:r}=Fe(),{reset:n}=_e(),{CONSTANTS:a}=G();return o.jsxs("div",{className:B["menu-submenu--item"],style:{display:t===e.id?"flex":"none"},children:[o.jsx(m.TextStructure.Root,{adornment:{start:o.jsx(m.Icon,{name:a.header.ICONS.arrow_back,size:"medium",onClick:r})},layoutProps:{textRow:{alignItems:"center",style:{width:"100%",position:"relative"}},columnWrapper:{alignContent:"center",style:{width:"100%"}}},children:e.label&&o.jsx(m.TextStructure.DivWrapper,{style:{position:"absolute",left:"50%",transform:"translate(-50%)"},children:o.jsx("h2",{className:"typography-style-body-md-strong",children:e.label})})}),o.jsx("div",{className:B["menu-submenu--thumbnails"],children:Array.isArray(e.thumbnails)&&o.jsx(mr,{thumbnails:e.thumbnails,isMobile:!0,category:e.label,callBack:n})}),(s=e==null?void 0:e.subCategories)==null?void 0:s.map((i,c)=>o.jsx(na,{subcategory:i,submenuLabel:e.label},`list-${i.label}-${c}`))]})};oa.displayName="Menu.SubMenuItem";const aa=()=>{const{headerData:e}=G(),t=ut(),{reset:r}=_e(),{bodyRef:n}=Fe();return o.jsx(m.Modal.RootWithoutPortal,{isOpen:!!t,setIsOpen:r,parent:n.current,variant:"sideLeft",style:{position:"absolute",width:"100%"},className:B["menu-submenu-modal-modifiier"],children:o.jsx("div",{className:B["menu-submenu"],children:e.subMenus.map((a,s)=>o.jsx(oa,{submenu:a},`submenu-${a.id}-${s}`))})})};aa.displayName="Menu.SubMenu";const sa=({className:e,...t})=>{const{headerData:r}=G(),{setValue:n}=_e(),{bodyRef:a}=Fe(),{handleSelectContent:s}=H();return o.jsxs("div",{...t,ref:a,id:"menu-body",className:B["menu-body"],children:[o.jsx("div",{className:B["menu-categories-container"],children:r.categories.map((i,c)=>{const l=i.submenuId?{}:{"data-close":!0};return o.jsx(ra,{link:i.submenuId?null:i.link,children:o.jsx(ta,{onClick:()=>{n(i.submenuId??null),s({content:`menu:${i.label}`})},mobileBannerSrc:i.mobileBannerSrc,mobileBannerAlt:i.mobileBannerAlt,textColor:i.textColor,...l,children:i.mobileBannerAlt})},`menu-categories-${c}`)})}),o.jsx(aa,{})]})};sa.displayName="Menu.MenuBody";const ia=({title:e,subtitle:t})=>{const{CONSTANTS:r}=G();return o.jsxs("div",{className:B["menu-header-wrapper"],style:t?{alignItems:"start"}:{alignItems:"center"},children:[(e||t)&&o.jsx(m.TextStructure.Root,{children:o.jsxs(m.TextStructure.DivWrapper,{children:[e&&o.jsx("h2",{className:"typography-style-body-md",children:e}),t&&o.jsx("h3",{children:t})]})}),o.jsx(m.Button,{adornment:{end:o.jsx(m.Icon,{name:r.header.ICONS.close})},variant:"tertiary",className:B["menu-close"],"data-close":!0})]})};ia.displayName="Menu.MenuHeaderWrapper";const ca=({navigationLinks:e})=>{const{reset:t}=xe(),{handleSelectContent:r}=H();return e?o.jsx("nav",{className:B["menu-header-navlinks"],children:e.map((n,a)=>o.jsx(He,{href:n.link??"#",adornments:{start:n.iconStart&&o.jsx(m.Icon,{name:n.iconStart}),end:n.iconEnd&&o.jsx(m.Icon,{name:n.iconEnd})},onClick:()=>{t(),r({content:`menu:navigationlinks-${n.label}`})},children:n.label},a))}):null};ca.displayName="Menu.MenuHeaderNavLinks";const la=()=>{const{headerData:e}=G();return o.jsxs("div",{className:B["menu-header-container"],children:[o.jsx(ia,{title:e.title,subtitle:e.subtitle}),o.jsx(ca,{navigationLinks:e.navigationLinks})]})};la.displayName="Menu.MenuHeaderContainer";const ua=({children:e})=>{const{documentBodyRef:t}=Fe(),{CONSTANTS:r}=G(),n=ar(),{setValue:a}=xe();return o.jsx(m.Modal.RootWithoutPortal,{isOpen:n,setIsOpen:a,parent:t.current,variant:"sideLeft",style:{position:"fixed",zIndex:r.header.Z_INDEX_WAR.menu_mobile,bottom:"unset",top:0,overflowY:"hidden"},className:B["modal-modifier"],children:o.jsx("div",{className:B["menu-mobile"],children:e})})};ua.displayName="Menu.MenuRoot";const Tc=ur(()=>Promise.resolve(ua),{ssr:!1}),ct=({children:e,...t})=>o.jsxs(o.Fragment,{children:[o.jsx(m.Button,{...t,className:B["menu-navigationbar-item"],children:e}),o.jsx(m.Utils.Divider,{direction:"vertical",size:"small",className:B.divider})]});ct.displayName="Menu.NavigationBarItem";const da=()=>{const{setIsOpen:e}=Re(),{reset:t}=xe(),{setValue:r}=ir(),{handleSelectContent:n}=H(),{CONSTANTS:a}=G(),{router:s}=de();return o.jsxs(m.Card,{id:"menu-navigationbar",shadow:!0,className:B["menu-navigationbar"],style:{zIndex:a.header.Z_INDEX_WAR.menu_mobile_navigation_bar},children:[o.jsx(ct,{size:"small",variant:"tertiary",iconNameStart:a.header.MENU_INFO.login.button_icon,onClick:()=>{t(),r(!0),n({content:"menu:user_menu"})},children:a.header.MENU_INFO.login.button_text}),o.jsx(ct,{size:"small",variant:"tertiary",iconNameStart:a.header.MENU_INFO.bag.button_icon,onClick:()=>{t(),e(!0),n({content:"menu:minicart"})},children:a.header.MENU_INFO.bag.button_text}),o.jsx(ct,{size:"small",variant:"tertiary",iconNameStart:a.header.MENU_INFO.store.button_icon,onClick:()=>{s.push("/institucional/lojas"),t(),n({content:"menu:store"})},children:a.header.MENU_INFO.store.button_text})]})};da.displayName="Menu.NavigationBar";const it={Root:Tc,NavigationBar:da,Header:la,Body:sa},fa=({UserMenu:e,SearchModal:t})=>{const r=b.useRef(null),{CONSTANTS:n}=G(),{MENU_NAVIGATION_BAR_ALLOWED:a,ICONS:s}=n.header,{handleSelectContent:i}=H(),{setValue:c}=sr(),{setValue:l}=xe();return o.jsxs(o.Fragment,{children:[o.jsxs(m.Header.Wrapper,{children:[o.jsx(m.Header.Logo,{style:{width:"100%",justifyContent:"center"},children:o.jsx(se,{href:"/",children:o.jsx(m.Icon,{name:s.logo,size:"x-large",onClick:()=>{i({content:"header:logo"})}})})}),o.jsxs(m.Header.Support,{children:[o.jsx(m.Header.SupportItem,{onClick:()=>{c(!0),i({content:"header:search"})},children:o.jsx(m.Icon,{name:s.search,size:"medium"})}),o.jsx(pr,{}),o.jsxs(m.Header.SupportItem,{onClick:()=>l(!0),children:[o.jsx("span",{ref:r}),o.jsx(m.Icon,{name:s.menu,size:"medium"})]})]})]}),o.jsx(t,{recommendations:!1,trends:!0}),o.jsx(go,{children:o.jsx(e,{target:r==null?void 0:r.current,children:o.jsxs(it.Root,{children:[o.jsx(it.Header,{}),o.jsx(it.Body,{}),a?o.jsx(it.NavigationBar,{}):o.jsx(o.Fragment,{})]})})})]})};fa.displayName="Header.HeaderMobileWrapper";const pa=({tipBar:e,miniCart:t,UserMenu:r,SearchModal:n})=>{const{structureRef:a,rootRef:s,CONSTANTS:i}=G(),{header:{HEADER_CONFIGS:c,Z_INDEX_WAR:l}}=i;return o.jsx(m.Header.Structure,{innerRef:a,adornment:{start:e},style:{position:"sticky",top:0,zIndex:l.header},className:fr["header-animation"],children:o.jsxs(m.Header.Root,{innerRef:s,style:{zIndex:l.header},variant:c.default_variant,interactiveVariant:c.interactive_variant,children:[o.jsx("div",{className:pn["responsive-mobile-block"],style:{height:"100%",width:"100%",zIndex:l.header_mobile},children:o.jsx(fa,{UserMenu:r,SearchModal:n})}),o.jsx("div",{className:pn["responsive-desktop-block"],style:{height:"100%",width:"100%",zIndex:l.header_desktop},children:o.jsx(ea,{UserMenu:r,SearchModal:n})}),t,o.jsx(cr,{title:"Produto adicionado à sua sacola!",CONSTANTS:i.addToCart})]})})};pa.displayName="Header";const Ec="_shippingFreight_6z8rf_6",wc="_shippingFreight__postalCodeGrid_6z8rf_10",Rc="_shippingFreight__grid_6z8rf_14",Oc="_shippingFreight__grid__title_6z8rf_18",Ac="_shippingFreight__grid__remember_6z8rf_29",Mc="_postalCodeContainer_6z8rf_44",kc="_deliveryStatusBar__tag_6z8rf_49",Lc="_deliveryStatusBarError__tag_6z8rf_66",Dc="_deliveryInfo_6z8rf_74",qc="_deliveryInfo__content_6z8rf_78",zc="_deliveryInfo__text_6z8rf_84",$c="_deliveryInfo__title_6z8rf_89",Fc="_deliveryInfo__subtitle_6z8rf_99",Bc="_deliveryInfo__tooltipIcon_6z8rf_109",Hc="_deliveryInfo__tooltip_6z8rf_109",Uc="_freightGrid_6z8rf_148",Wc="_freightContainer_6z8rf_155",Vc="_freightOption__content_6z8rf_160",Gc="_freightOption__value_6z8rf_166",Kc="_freightOption__title_6z8rf_177",Xc="_freightOption__title_item_6z8rf_181",Qc="_freightOption__paragraph_6z8rf_192",D={shippingFreight:Ec,shippingFreight__postalCodeGrid:wc,shippingFreight__grid:Rc,shippingFreight__grid__title:Oc,shippingFreight__grid__remember:Ac,postalCodeContainer:Mc,deliveryStatusBar__tag:kc,deliveryStatusBarError__tag:Lc,deliveryInfo:Dc,deliveryInfo__content:qc,deliveryInfo__text:zc,deliveryInfo__title:$c,deliveryInfo__subtitle:Fc,deliveryInfo__tooltipIcon:Bc,deliveryInfo__tooltip:Hc,freightGrid:Uc,freightContainer:Wc,freightOption__content:Vc,freightOption__value:Gc,freightOption__title:Kc,freightOption__title_item:Xc,freightOption__paragraph:Qc,"input-modifier":"_input-modifier_6z8rf_207","freight--tooltip":"_freight--tooltip_6z8rf_227"},Yc=({icon:e,title:t,subtitle:r,packageCount:n,packageUnit:a="",labelDescription:s,freightConfig:i,toolTipZIndex:c})=>{const[l,u]=b.useState(!1),p=b.useRef(null),f=()=>u(d=>!d);return o.jsxs("div",{className:D.deliveryInfo,ref:p,children:[o.jsx(m.Tooltip.Root,{arrow:"bottom",component:o.jsx("div",{children:o.jsx("p",{children:i.messages.select_size_tag})}),id:"freight--tooltip",className:D["freight--tooltip"],style:{zIndex:c},isOpen:!0,size:"medium",position:"top",top:"-170%",left:"4%",parent:p.current}),o.jsxs("div",{className:D.deliveryInfo__content,children:[o.jsx("div",{className:D.deliveryInfo__icon,children:o.jsx(m.Icon,{name:e,size:"medium"})}),o.jsxs("div",{className:D.deliveryInfo__text,children:[o.jsxs("span",{className:D.deliveryInfo__title,children:[t," ",n," ",a]}),r&&o.jsx("span",{className:D.deliveryInfo__subtitle,children:r})]}),s&&o.jsxs("div",{className:D.deliveryInfo__tooltipIcon,onMouseEnter:f,onMouseLeave:f,"aria-label":"Mostrar descrição",children:[o.jsx("span",{children:o.jsx(m.Icon,{name:i.icons.feedback_help,size:"small"})}),l&&o.jsx("div",{className:D.deliveryInfo__tooltip,children:s})]})]})]})},Zc=({value:e,title:t,paragraph:r})=>o.jsx("div",{className:D.freightOption,children:o.jsxs("div",{className:D.freightOption__content,children:[o.jsx("span",{className:D.freightOption__value,children:e}),o.jsx("span",{className:D.freightOption__title,children:o.jsx(m.TextStructure.Root,{children:o.jsxs(m.TextStructure.DivWrapper,{className:D.footer__item,children:[o.jsx("span",{className:D.freightOption__title_item,children:t}),r&&o.jsx("span",{className:D.freightOption__paragraph,children:r})]})})})]})}),Jc=({children:e})=>o.jsx("div",{className:D.freightContainer,children:e}),el=({children:e})=>o.jsx("div",{className:D.freightGrid,children:e}),tl=({children:e})=>o.jsx("div",{className:D.postalCodeContainer,children:e}),mn=({message:e,seller:t="",size:r="small",setError:n})=>o.jsx("div",{className:n?D.deliveryStatusBarError:D.deliveryStatusBar,children:o.jsxs(m.Tag,{title:e,className:n?D.deliveryStatusBarError__tag:D.deliveryStatusBar__tag,size:r,children:[e," ",!n&&t]})}),rl=e=>{const t=parseInt(e,10);return t===1?`${t} dia`:`${t} dias`},nl=e=>{var r,n,a;const t=[];return(a=(n=(r=e==null?void 0:e.logisticsInfo)==null?void 0:r[0])==null?void 0:n.slas)==null||a.forEach(s=>{t.push({id:s.id,name:s.name,price:s.price,shippingEstimate:s.shippingEstimate})}),t},ol=({component:e,parent:t,top:r,left:n,target:a,contentRef:s,freightConfig:i,toolTipZIndex:c=999,...l})=>{const{isMobile:u}=he();return o.jsx(o.Fragment,{children:u?o.jsx(m.Tooltip.Root,{arrow:"bottom",component:o.jsxs("div",{...l,ref:s,children:[e,o.jsx("p",{children:i.messages.select_size_tag})]}),id:"freight--tooltip",className:D["freight--tooltip"],style:{zIndex:c},isOpen:!0,size:"medium",position:"top",top:"-170%",left:"4%",parent:t}):o.jsx(m.Tooltip.Root,{arrow:"bottom",component:o.jsxs("div",{...l,ref:s,children:[e,o.jsx("p",{children:i.messages.select_size_tag})]}),id:"freight--tooltip",className:D["freight--tooltip"],style:{zIndex:c},isOpen:!0,size:"medium",position:"top",top:"-110%",left:"3%",parent:t})})},al=({onUpdateFreightItems:e,sellerId:t,size:r,skuId:n,quantity:a,setError:s,setIsButtonClicked:i,component:c,freightConfig:l,toolTipZIndex:u})=>{var q,E,R,M;const p=Te(),f=Te(T=>T.shipping),[d,_]=b.useState(),[y,h]=b.useState(!1),[g,v]=b.useState(!1),[N,S]=b.useState(!1),C=(E=(q=p.shippingData)==null?void 0:q.address)==null?void 0:E.postalCode,x=!(d!=null&&d.length)&&C?C:d,j=b.useRef(null),I=async T=>{const z=T.target.value.replace(/\D/g,"").slice(0,8);z.length>5?_(z.replace(/^(\d{5})(\d{1,3})/,"$1-$2")):_(z)},P=async T=>{const k=T.target.value.replace(/\D/g,"");try{if((await Cr.get(`https://viacep.com.br/ws/${k}/json/`)).data.erro){s&&s(l.messages.cep_not_found),i(!1),v(!0);return}s&&s(""),v(!1)}catch{console.log("Erro ao validar o CEP. Tente novamente mais tarde.")}},w=async()=>{h(!0);try{const T=await Cr.post("/api/checkout/simulation",{items:[{id:n,quantity:a,seller:t}],country:"BRA",postalCode:x});e(nl(T.data))}catch(T){console.error("Erro ao atualizar o documento:",T)}finally{h(!1),f(x,"BRA")}},O=async()=>{if(!n){S(!0),setTimeout(()=>S(!1),1500);return}await P({target:{value:x}}),y||(w(),i(!0))};return o.jsxs("div",{ref:j,style:{position:"relative"},children:[!n&&N?o.jsx(ol,{component:c,isOpen:N,parent:j.current,toolTipZIndex:u,freightConfig:l}):o.jsx(o.Fragment,{}),o.jsx("div",{style:{position:"relative"},children:o.jsx(m.TextField.Structure,{title:"structure",style:{width:"100%"},input:o.jsx(m.TextField.Input,{defaultValue:(M=(R=p.shippingData)==null?void 0:R.address)==null?void 0:M.postalCode,label:l.messages.text_input_label,title:"textfield",value:d,sizeVariant:r,onMouseOver:()=>n?null:S(!0),onMouseOut:()=>n?null:S(!1),mode:"simple",onChange:I,onKeyDown:T=>{T.key==="Enter"&&O()},className:D["input-modifier"],feedback:g?"error":"none"}),right:o.jsx(m.Button,{onClick:O,size:r,title:"button",children:y?o.jsx(m.Spinner,{size:"small",indicatorColor:"#ffffff"}):l.messages.text_input_btn})})})]})},sl=({children:e,freightConfig:t})=>o.jsxs("div",{className:D.shippingFreight,children:[o.jsxs("div",{className:D.shippingFreight__grid,children:[o.jsx("span",{className:D.shippingFreight__grid__title,children:t.messages.title}),o.jsx("span",{className:D.shippingFreight__grid__remember,children:o.jsx(He,{href:"https://buscacepinter.correios.com.br/app/endereco/index.php",passHref:!0,target:"_blank",rel:"noopener noreferrer",size:"x-small",disablePadding:!1,title:t.messages.remember_cep,children:t.messages.remember_cep})})]}),o.jsx("div",{className:D.shippingFreight__postalCodeGrid,children:e})]}),il=({children:e})=>o.jsx("div",{className:D.freightContainer,children:e}),cl=({className:e,sellerId:t,skuId:r,quantity:n,size:a,seller:s,local:i,CONSTANTS_PROPS:c})=>{const{sendDataLayerEvent:l}=H(),[u,p]=b.useState(""),[f,d]=b.useState([]),[_,y]=b.useState(""),[h,g]=b.useState(!1),v=S=>p(S),N=S=>{d(S),l({functionKey:"readyEvents",data:{event:"search_zipcode",readyData:{shippings:S.map(C=>({shipping_tier:C.id,delivery_time:C.shippingEstimate.replace("bd",""),flag_pickup:C.name.toLowerCase().includes("retirada")?"true":"false",shipping:C.price,currency:c.currency||"BRL"}))}}})};return o.jsxs(il,{className:e,children:[o.jsxs(sl,{freightConfig:c.freightConfig,children:[o.jsx(tl,{children:o.jsx(al,{onUpdateFreightItems:N,skuId:r,quantity:n,size:a,sellerId:t,local:i,setError:y,setIsButtonClicked:g,freightConfig:c.freightConfig,toolTipZIndex:c.toolTipZIndex})}),_?o.jsx(mn,{size:a,message:_,setError:y}):f.length>0&&o.jsx(mn,{size:a,message:c.freightConfig.messages.delivered_by,seller:s})]}),h&&!_?f.length>0&&o.jsxs(Jc,{children:[o.jsx(el,{children:f.filter(({id:S})=>!S.includes("Retirada")).map(S=>o.jsx(Zc,{id:S.id,value:bn({valueInCents:S.price,hasFree:!1,freeTaxMessage:c.freightConfig.messages.free_tax}),title:S.name,paragraph:`${c.freightConfig.messages.prefix_days}${rl(S.shippingEstimate)}`,radioValue:u,changeValue:v},S.id))}),c.deliveryInfoBoxesAllowed?o.jsx(Yc,{icon:c.freightConfig.icons.delivery_truck,packageUnit:c.freightConfig.messages.unit_amout,title:c.freightConfig.messages.delivered_amount_packages,subtitle:"",packageCount:1,labelDescription:"Label",freightConfig:c.freightConfig,toolTipZIndex:c.toolTipZIndex??999}):o.jsx(o.Fragment,{})]}):null]})},ma=b.createContext({}),ll=({children:e,item:t,index:r,shelfTitle:n,...a})=>{const[s,i]=b.useState(null),c=b.useRef(null),l=b.useRef({availableSkus:[],priceInfo:{price:0,listPrice:0}}),{sendDataLayerEvent:u,itemListRef:p}=H(),f=h=>{u({functionKey:"productEvents",data:{commonData:{...t,availableSizes:l.current.availableSkus,...l.current.priceInfo},customData:{index:r+1},event:h}})},d=()=>{f("add_to_wishlist")},_=()=>{u({functionKey:"skuEvents",data:{event:"add_to_cart",commonData:{products:[{...t,...l.current.priceInfo}]},supportData:{selectedSku:s,selectedSkus:[s]},customData:{index:r}}})},y=()=>{n&&(p.current={item_list_name:n}),f("select_item")};return o.jsx(ma.Provider,{value:b.useMemo(()=>({...a,index:r,item:t,element:c,selectedSku:s,setSelectedSku:i,eventDataRef:l,sendAddToWishlistEvent:d,sendSelectItemEvent:y,sendAddToCartEvent:_}),[a,t,c,s]),children:e})},re=()=>{const e=b.useContext(ma);if(e===void 0)throw new Error("useProductCardContext must be used within a ProductCardProvider");return e},X={"product-card--actions":"_product-card--actions_qxtc1_1","product-card--actions--group":"_product-card--actions--group_qxtc1_9","product-card--actions--selectors":"_product-card--actions--selectors_qxtc1_21","product-card--body":"_product-card--body_qxtc1_33","product-card--header":"_product-card--header_qxtc1_47","product-card--footer":"_product-card--footer_qxtc1_67","product-card--image":"_product-card--image_qxtc1_90","product-card--image--container":"_product-card--image--container_qxtc1_97","product-card--outstock":"_product-card--outstock_qxtc1_133","product-card--price":"_product-card--price_qxtc1_155","product-card--title":"_product-card--title_qxtc1_180","product-card--title--tag":"_product-card--title--tag_qxtc1_186","product-card--title--content":"_product-card--title--content_qxtc1_203","product-card--selectors--size":"_product-card--selectors--size_qxtc1_243","product-card--selectors--size--button":"_product-card--selectors--size--button_qxtc1_269","product-card--selectors--size--skus":"_product-card--selectors--size--skus_qxtc1_278","product-card--selectors--style":"_product-card--selectors--style_qxtc1_292","product-card--selectors--style--more":"_product-card--selectors--style--more_qxtc1_302","product-card--video":"_product-card--video_qxtc1_319","product-card--wrapper":"_product-card--wrapper_qxtc1_345"},ha=({callback:e,children:t,className:r,data:n,isKit:a,...s})=>{const{item:{availability:{status:i},image:c}}=re();return i?o.jsxs("div",{...s,className:m.helpers.classNameConcat(X["product-card--actions"],r),children:[o.jsxs(Pe.Wrapper,{type:"actions--group",children:[o.jsx(Pe.Price,{}),o.jsx("div",{className:X["product-card--actions--selectors"],children:!a&&o.jsx(Pe.StyleSelector,{data:n,images:c,callback:e})})]}),t]}):null};ha.displayName="ProductCard.Actions";const _a=({className:e,isKit:t,...r})=>{const{addToCart:n}=Re(),{isMobile:a=!1,selectedSku:s,outStock:i,item:c,sendAddToCartEvent:l,CONSTANTS:u}=re(),p=()=>{var _;if(!s)return;const d=In(s.offers.offers,u.StoreConfig_MainSellerId);d&&n({id:s==null?void 0:s.sku,quantity:1,seller:d.seller.identifier},{id:c.id,texture:(_=c==null?void 0:c.image.find(y=>u.TEXTURE_IMAGE.includes(y.alternateName)))==null?void 0:_.url}),l()},f=s?u.BUY_BUTTON_LABELS.add_to_cart:u.BUY_BUTTON_LABELS.select_size;return o.jsx(m.Button,{...r,className:m.helpers.classNameConcat(e,"buy-button"),disabled:!t&&!s&&!i,size:a?"medium":"large",variant:i?"secondary":"primary",onClick:i?r.onClick:p,children:i?"Avise-me quando chegar":f})};_a.displayName="ProductCard.Actions.BuyButton";const ga=({product:e,tag:t,size:r="small"})=>{const n=e.offers.offers[0],{CONSTANTS:a,WishListToggle:s}=re();return o.jsxs(Pe.Wrapper,{type:"header",style:{zIndex:a.Z_INDEX_WAR.product_card_header},children:[t?o.jsx(m.Tag,{title:t.value,adornment:{start:t.enableIcon&&t.icon?o.jsx(m.Icon,{name:t.icon,size:"small",style:{color:t.iconColor}}):null},size:r,variant:"quaternary",style:{background:t.tagColor,color:t.textColor},children:t.value}):null,a.PRODUCT_CARD_TOP_WISHLIST_TOGGLE&&o.jsx(s,{product:e,priceInfo:{price:n.price,listPrice:n.listPrice},variant:"card"})]})};ga.displayName="ProductCard.Actions.Header";const ya=({className:e,children:t,hasPriority:r=!1,showVideo:n=!1,...a})=>{const{element:s,index:i,item:{image:c,slug:l,video:u},sendSelectItemEvent:p,order:f,CONSTANTS:d}=re(),_=Tn({images:c,label:{first:d.MAIN_IMAGE,second:d.SECOND_IMAGE}});return o.jsxs("div",{...a,className:m.helpers.classNameConcat(X["product-card--image"],e),ref:s,style:{aspectRatio:d.PRODUCT_CARD_IMAGE_ASPECT_RATIO},children:[o.jsx(se,{href:`/${l}/p`,onClick:p,onMouseUp:y=>{y.button===1&&p(),d.PLP_INFINITE_SCROLL&&sessionStorage.setItem(d.PLP_GRID_SCROLL_BACK.order,String(f))},children:o.jsx("div",{className:X["product-card--image--container"],children:Array.isArray(_)&&_.map(({url:y,alternateName:h},g)=>b.createElement(fe.Image,{...d.PRODUCT_IMAGE_DIMENSIONS.product_card,style:d.PRODUCT_IMAGE_DIMENSIONS.product_card,alt:h??"product image",key:g,...r&&{priority:g===0&&i<4},objectFit:"cover",src:y}))})}),d.PLP_SHOW_VIDEO_ON_PRODUCT_CARD&&n&&u&&o.jsx(Pe.Video,{url:u,poster:_[0].url}),t]})};ya.displayName="ProductCard.Media.Media";const va=({className:e,callback:t,children:r,...n})=>{const{isMobile:a,item:s,CONSTANTS:{PRODUCT_CARD_TEXTS:i}}=re(),{availability:{status:c}}=s;return c?null:o.jsxs("div",{...n,className:m.helpers.classNameConcat(X["product-card--outstock"],e),children:[o.jsx(m.Tag,{size:"small",variant:"secondary",title:i.disabled,children:i.disabled}),o.jsx(m.Button,{className:m.helpers.classNameConcat(e,"buy-button"),size:a?"medium":"large",variant:"quaternary",onClick:()=>{typeof t=="function"&&t(s)},children:i.notify})]})};va.displayName="ProductCard.OutStock";const ba=({children:e,className:t="",index:r,isMobile:n=!1,item:a,size:s,order:i,outStock:c,shelfTitle:l,CONSTANTS:u,WishListToggle:p,...f})=>o.jsx(ll,{item:a,isMobile:n,outStock:c,order:i,size:s,index:r,shelfTitle:l,CONSTANTS:u,WishListToggle:p,children:o.jsx("div",{...f,className:m.helpers.classNameConcat(X["product-card--wrapper"],t),"data-size":s,children:e})});ba.displayName="ProductCard.Root";const xa=({disabled:e,label:t,size:r,value:n,onClick:a,...s})=>o.jsxs(m.ToggleSize.Wrapper,{...s,disabled:!1,outOfStock:e,size:r,onClick:a,children:[o.jsx(m.ToggleSize.DisabledAdornment,{}),o.jsx(m.ToggleSize.Text,{children:t})]});xa.displayName="ProductCard.SizeSelector.Item";const Ca=({active:e=!1,callback:t,selectedSku:r=null,item:n,setNotify:a})=>{const{item:s,isMobile:i,setSelectedSku:c,eventDataRef:l}=re();n.productId=s.id;const u=jn(n),p=xn(n,"tamanho");!u&&!l.current.availableSkus.includes(p)&&l.current.availableSkus.push(p);const f=b.useCallback(_=>{const y=r===_?null:_;typeof c=="function"&&c(y),typeof t=="function"&&t(y)},[t,c,r]),d=b.useCallback(()=>{if(u&&typeof a=="function"){a(s,n);return}f(n)},[n,a,f,u,s]);return o.jsx(xa,{active:e,disabled:u,label:p,onClick:()=>d(),size:i?"x-small":"small",value:n})};Ca.displayName="ProductCard.SizeSelector.SkuItem";const ja=({callback:e,className:t="",children:r,setNotify:n,...a})=>{const{isMobile:s,item:{isVariantOf:{hasVariant:i}},selectedSku:c}=re();return o.jsxs("div",{...a,className:m.helpers.classNameConcat(X["product-card--selectors--size"],t),"data-mobile":s,children:[o.jsx("div",{className:X["product-card--selectors--size--skus"],children:Array.isArray(i)&&i.map((l,u)=>o.jsx(Ca,{active:c===l,callback:e,item:l,selectedSku:c,setNotify:n},`size--${u}--${l.sku}`))}),o.jsx("div",{className:X["product-card--selectors--size--button"],children:r})]})};ja.displayName="ProductCard.SizeSelector";const Jt=({alt:e="",callback:t,more:r,total:n=4,src:a,url:s,...i})=>o.jsxs(m.ToggleStyle.Wrapper,{...i,onClick:()=>{typeof t=="function"&&t(s)},children:[o.jsx(m.ToggleStyle.DisabledAdornment,{}),o.jsxs(m.ToggleStyle.Texture,{children:[a&&o.jsx(fe.Image,{alt:e??a,src:a,height:34,width:34}),r&&o.jsx(m.TextStructure.DivWrapper,{className:X["product-card--selectors--style--more"],children:o.jsxs("p",{children:["+ ",n]})})]})]}),ul=({children:e,callback:t,data:r,total:n=4,size:a,...s})=>{const{index:i}=re(),{triggerSelectItemEventRef:c}=H();return o.jsxs("div",{...s,children:[e,Array.isArray(r)&&r.slice(0,n).map((l,u)=>o.jsx(Jt,{callback:p=>{c.current.trigger=!0,c.current.index=i,typeof t=="function"&&t(p)},src:(l==null?void 0:l.textureImage)??"",alt:l==null?void 0:l.textureAlt,url:l==null?void 0:l.slug,size:a},u)),Array.isArray(r)&&(r==null?void 0:r.length)>n&&o.jsx(Jt,{size:a,total:r.length-n,more:!0})]})},Ia=({callback:e,className:t,data:r,images:n=[],findTexture:a,...s})=>{const{CONSTANTS:i}=re(),c=a||i.TEXTURE_IMAGE,l=n==null?void 0:n.find(u=>c.includes(u.alternateName));return o.jsx(ul,{...s,callback:e,className:m.helpers.classNameConcat(X["product-card--selectors--style"],t),data:r,size:"x-small",children:l&&o.jsx(Jt,{active:!0,size:"x-small",src:l.url})})};Ia.displayName="ProductCard.StyleSelector";const Sa=({className:e,hasDecimal:t,...r})=>{const{isMobile:n,item:{offers:{lowPrice:a,highPrice:s},installments:{count:i,value:c}},eventDataRef:l}=re();l.current.priceInfo={price:a,listPrice:s};const u=me(s,t),p=me(a,t),f=me(c??0),d=n?"horizontal":"stacked";return o.jsx("div",{...r,className:m.helpers.classNameConcat(X["product-card--price"],e),"data-mobile":n,children:o.jsx(m.ProductInfo.Root,{size:"small",layout:d,children:o.jsxs(m.ProductInfo.Wrapper,{size:"small",layout:d,children:[o.jsx(m.ProductInfo.ValuesWrapper,{children:p!==u?o.jsxs(o.Fragment,{children:[o.jsx(m.ProductInfo.Price,{label:"originalPrice",value:u,size:"small"}),o.jsx(m.ProductInfo.Price,{label:"discountPrice",value:p,size:"small"})]}):o.jsx(m.ProductInfo.Price,{label:"defaultPrice",value:p,size:"small"})}),i&&i>1&&c?o.jsx(m.ProductInfo.Price,{label:"installment",value:`${i}x ${f}`,size:"small"}):null]})})})};Sa.displayName="ProductCard.Price";const Na=({tag:e,className:t})=>{const{item:{name:r}}=re();return o.jsxs("div",{className:m.helpers.classNameConcat(X["product-card--title"],t),children:[o.jsx("div",{className:X["product-card--title--tag"],children:e?o.jsx(m.Tag,{size:"small",title:e.value,variant:"quaternary",adornment:{start:e.enableIcon&&e.icon?o.jsx(m.Icon,{name:e.icon,style:{color:e.iconColor}}):null},style:{background:e.tagColor,color:e.textColor},children:e.value}):o.jsx("div",{})}),o.jsx("div",{className:X["product-card--title--content"],children:r&&o.jsx(m.TextStructure.Root,{children:o.jsx(m.TextStructure.DivWrapper,{children:o.jsx("h3",{children:r})})})})]})};Na.displayName="ProductCard.Title";const Pa=({className:e,url:t,poster:r,...n})=>{const{element:a}=re();return b.useEffect(()=>{if(!(a!=null&&a.current))return;const s=a.current,i=s.querySelector("video");if(i){const c=new IntersectionObserver(p=>{p.forEach(f=>{En(f.isIntersecting,i,t)})},{root:null,rootMargin:"0px",threshold:.5}),l=()=>{i.setAttribute("data-loaded","true")},u=()=>{s&&(c.observe(s),i.addEventListener("loadeddata",l))};return document.readyState==="complete"?u():window.addEventListener("load",u),()=>{c.disconnect(),window.removeEventListener("load",u)}}return()=>null},[t,a]),o.jsx("div",{...n,className:m.helpers.classNameConcat(X["product-card--video"],e),children:t&&o.jsx(fe.Video,{autoPlay:!1,muted:!0,loop:!0,preload:"none",playsInline:!0,poster:r})})};Pa.displayName="ProductCard.Media.Video";const Ta=({children:e,className:t,type:r,...n})=>o.jsx("div",{...n,className:m.helpers.classNameConcat(X[`product-card--${r}`],t),children:e});Ta.displayName="ProductCard.Wrapper";const Pe={Actions:ha,BuyButton:_a,Header:ga,Media:ya,Root:ba,OutStock:va,Price:Sa,SizeSelector:ja,StyleSelector:Ia,Title:Na,Video:Pa,Wrapper:Ta},hn=({image:e,index:t,handleZoom:r,PRODUCT_IMAGE_DIMENSIONS:n})=>{const a=Nn(e.imageUrl,n.pdp),{nextimage:s}=de();return o.jsx(s,{src:a,alt:e.imageLabel,objectFit:"contain",...n.pdp,...t<=1&&{priority:!0,loading:"eager"},onClick:()=>{r(t)}},t)},dl=({video:e,productName:t,poster:r})=>{const{sendDataLayerEvent:n}=H(),a=b.useRef(!1);return o.jsx(fe.Video,{src:e,autoPlay:!0,muted:!0,loop:!0,playsInline:!0,style:{zIndex:-1,aspectRatio:"2/3"},onPlaying:()=>{a.current||(a.current=!0,n({functionKey:"readyEvents",data:{event:"video_start",readyData:{product:t}}}))},poster:r})},fl={"gallery-carousel-modifier":"_gallery-carousel-modifier_1pjec_92"},Ea=({images:e,video:t,handleZoom:r,productName:n,PRODUCT_IMAGE_DIMENSIONS:a})=>{var u,p;const{initialize:s,pagination:i,controller:c,itemsStyles:l}=m.Carousel.useCarousel({gap:0,itemsPerPage:1,loop:!1,direction:"row"});return o.jsxs(m.Carousel.Root,{innerRef:f=>{s(f)},className:fl["gallery-carousel-modifier"],children:[o.jsx(m.Carousel.Controller,{position:"absolute",top:"24px",bottom:"unset",left:"16px",children:o.jsx(m.Carousel.Bullets,{page:i.currentPage,total:e.length,onBulletClick:f=>c==null?void 0:c.navigateTo(f)})}),o.jsxs(m.Carousel.Body,{children:[o.jsx(m.Carousel.Item,{style:l,children:o.jsx(hn,{image:e[0],index:0,handleZoom:r,PRODUCT_IMAGE_DIMENSIONS:a})},"PDP_gallery_0"),t&&o.jsx(m.Carousel.Item,{style:l,children:o.jsx(dl,{video:t,productName:n,...((u=e[1])==null?void 0:u.imageUrl)&&{poster:(p=e[1])==null?void 0:p.imageUrl}})},"PDP_gallery_video"),e.map((f,d)=>d===0?null:o.jsx(m.Carousel.Item,{style:l,children:o.jsx(hn,{image:f,index:d,handleZoom:r,PRODUCT_IMAGE_DIMENSIONS:a})},`PDP_gallery_${d}`))]})]})};Ea.displayName="PDP.Carousel";const pl=({productImgs:e,PRODUCT_IMAGE_DIMENSIONS:t})=>{const{video:r,productName:n}=nr(),[a,s]=b.useState({show:!1,initialIndex:0});b.useEffect(()=>(a.show?document.body.classList.add("no-scroll"):document.body.classList.remove("no-scroll"),()=>{document.body.classList.remove("no-scroll")}),[a]);const i=c=>{s({show:!0,initialIndex:c})};return o.jsx(o.Fragment,{children:o.jsx(Ea,{images:e,video:r,handleZoom:i,productName:n,PRODUCT_IMAGE_DIMENSIONS:t})})},wa=({TEXTURE_IMAGE:e,PRODUCT_IMAGE_DIMENSIONS:t})=>{const{images:r}=nr(),n=b.useMemo(()=>{const a=r.filter(s=>!e.includes(s.imageLabel));return a.length>0?a:r},[]);return o.jsx(pl,{productImgs:n,PRODUCT_IMAGE_DIMENSIONS:t})};wa.displayName="PDP.Gallery";const ml=Object.freeze(Object.defineProperty({__proto__:null,Gallery:wa},Symbol.toStringTag,{value:"Module"})),hl={"snackbar-modifier":"_snackbar-modifier_1va2l_1"},hr=({size:e,adornment:t,title:r,subtitle:n,supportChildren:a,className:s,Z_INDEX_WAR:i,...c})=>o.jsxs(m.SnackBar.Structure,{...c,size:e,className:m.helpers.classNameConcat(hl["snackbar-modifier"],s),width:360,style:{zIndex:i.snackbar},children:[o.jsx(m.SnackBar.Content,{adornment:t,title:r,subtitle:n}),a&&o.jsx(m.SnackBar.Support,{children:a})]});hr.displayName="SnackBar";const Ra=b.createContext({}),_l=({data:e,children:t,...r})=>{var y,h,g,v,N,S,C,x,j,I,P,w,O;const[n,a]=b.useState(!0),{initialize:s,controller:i,itemsStyles:c}=m.Carousel.useCarousel({gap:0,itemsPerPage:1}),l={slideTranstionTimer:(h=(y=e==null?void 0:e.staticConfig)==null?void 0:y.staticConfig)==null?void 0:h.slideTranstionTimer,showCarouselArrows:(v=(g=e==null?void 0:e.staticConfig)==null?void 0:g.staticConfig)==null?void 0:v.showCarouselArrows,hasCloseBtn:(S=(N=e==null?void 0:e.staticConfig)==null?void 0:N.staticConfig)==null?void 0:S.hasCloseBtn,backgroundColor:(x=(C=e==null?void 0:e.staticConfig)==null?void 0:C.staticConfig)==null?void 0:x.backgroundColor,textColorVariant:(I=(j=e==null?void 0:e.staticConfig)==null?void 0:j.staticConfig)==null?void 0:I.textColorVariant,content:((w=(P=e==null?void 0:e.content)==null?void 0:P.content)==null?void 0:w.items)??[]},u=(O=l.content)==null?void 0:O.filter(q=>!q.countDownEndDate||new Date(q.countDownEndDate)>new Date),p=u.length>1,f={...l.backgroundColor?{backgroundColor:l.backgroundColor}:{}},d=()=>{a(!1)},_=m.helpers.ValidateProp({fieldTypes:Le.Mode,property:l.textColorVariant,fallback:"default"});return o.jsx(Ra.Provider,{value:{isOpen:n,setIsOpen:a,hasCarousel:p,backgroundStyle:f,handleCloseTipbar:d,mode:_,slideTranstionTimer:l.slideTranstionTimer,showCarouselArrows:l.showCarouselArrows,hasCloseBtn:l.hasCloseBtn,slices:u,carouselProps:{initialize:s,controller:i,itemsStyles:c},...r},children:t})},ge=()=>b.useContext(Ra),gl=({dateEnd:e,dateInit:t,TIME_ZONE:r,...n})=>{const[a,s]=b.useState(jo(new jr.TZDate(Date.now(),r),new jr.TZDate(e,r))),[i,c]=b.useState(!1);b.useEffect(()=>{i||c(!0);const u=setInterval(()=>{if(a<=0){clearInterval(u);return}s(a-1e3)},1e3);return()=>{clearInterval(u)}},[a,s,i]);const l=ke(a,"days");return i&&a>0?o.jsxs(m.Timer.Root,{...n,children:[l?o.jsxs(o.Fragment,{children:[o.jsx(m.Timer.Digit,{label:"dias",value:l}),o.jsx(m.Timer.Separator,{})]}):null,o.jsx(m.Timer.Digit,{label:"horas",value:ke(a,"hours")}),o.jsx(m.Timer.Separator,{}),o.jsx(m.Timer.Digit,{label:"min",value:ke(a,"minutes")}),o.jsx(m.Timer.Separator,{}),o.jsx(m.Timer.Digit,{label:"segs",value:ke(a),suppressHydrationWarning:!0})]}):o.jsx(o.Fragment,{})},yl=({dateEnd:e,...t})=>{const{CONSTANTS:{TIME_ZONE:r}}=ge();return o.jsx(gl,{dateEnd:new Date(e),TIME_ZONE:r,...t})},vl="_tipbar_bt3p0_1",bl="_tipbar__carousel_bt3p0_15",Ue={tipbar:vl,tipbar__carousel:bl,"tipbar__close-btn":"_tipbar__close-btn_bt3p0_29","tipbar-item":"_tipbar-item_bt3p0_37","tipbar-item__coupon":"_tipbar-item__coupon_bt3p0_45"},xl=({coupon:e,feedbackTitle:t,feedbackDescription:r,...n})=>{const{CONSTANTS:a}=ge(),[s,i]=b.useState({status:!1,showSnackBar:!1}),c=()=>{i({status:!0,showSnackBar:!0})};return b.useEffect(()=>{s.status&&setTimeout(()=>{i({status:!0,showSnackBar:!1})},a.TIPBAR_CONFIGS.snackbar_timeout)},[s]),o.jsxs(o.Fragment,{children:[o.jsx(m.Button,{...n,onClick:c,disabled:s.status,className:Ue["tipbar-item__coupon"],children:s.status?"Cupom aplicado":"Aplicar cupom"}),s.showSnackBar&&(t||r)&&o.jsx(hr,{title:t,subtitle:r,Z_INDEX_WAR:a.Z_INDEX_WAR},`feedback-coupon-${e}`)]})},Cl=({title:e,description:t,style:r,mode:n})=>o.jsx(m.TextStructure.Root,{children:o.jsxs(m.TextStructure.DivWrapper,{mode:n,children:[e&&o.jsx("h3",{className:"typography-style-body-sm",style:r,children:e}),t&&o.jsx("p",{className:"typography-style-caption",style:r,children:t})]})}),jl=({staticZone:e,type:t,title:r,description:n})=>{const{mode:a}=ge();if(t==="countdown")return o.jsx(yl,{dateEnd:e.countDownEndDate,size:"x-small",mode:a});if(t==="coupon"){const s=m.helpers.ValidateProp({fieldTypes:Le.Mode,property:e.couponButtonMode,fallback:"default"}),i=m.helpers.ValidateProp({fieldTypes:Le.VariantsExtended,property:e.couponButtonVariant,fallback:"primary"});return e.coupon?o.jsx(xl,{coupon:e.coupon,mode:s,variant:i,feedbackTitle:e.couponFeedbackTitle,feedbackDescription:e.couponFeedbackDescription}):null}return o.jsx(Cl,{title:r,description:n,mode:a})},Il=({children:e,mode:t="default",showCarouselArrows:r=!0,slideTranstionTimer:n})=>{const{carouselProps:a,CONSTANTS:s}=ge(),i=b.useRef(null),c=(u,p)=>{var f,d;u.stopPropagation(),u.preventDefault(),p==="prev"?(f=a.controller)==null||f.prevPage():(d=a.controller)==null||d.nextPage(),i.current&&(clearInterval(i.current),l())},l=b.useCallback(()=>{if(n&&a.controller){const u=setInterval(()=>{var p;(p=a.controller)==null||p.nextPage()},n);i.current=u}},[n,a]);return b.useEffect(()=>(l(),()=>{i.current&&clearInterval(i.current)}),[n,l]),o.jsxs(m.Carousel.Root,{innerRef:u=>{a.initialize(u)},className:Ue.tipbar__carousel,style:{flexDirection:"row",alignItems:"center"},children:[r&&o.jsx(m.Button,{variant:"tertiary",mode:t,onClick:u=>c(u,"prev"),adornment:{start:o.jsx(m.Icon,{name:s.ICONS.arrow_left})}}),o.jsx(m.Carousel.Body,{children:e}),r&&o.jsx(m.Button,{variant:"tertiary",mode:t,onClick:u=>c(u,"next"),adornment:{start:o.jsx(m.Icon,{name:s.ICONS.arrow_right})}})]})},_n=({handleCloseTipbar:e,mode:t})=>{const{CONSTANTS:r}=ge();return o.jsx(m.Button,{title:"fechar tipbar",className:Ue["tipbar__close-btn"],onClick:e,variant:"tertiary",mode:t,adornment:{start:o.jsx(m.Icon,{name:r.ICONS.close})}})},Sl=({children:e})=>{const{hasCarousel:t,mode:r,hasCloseBtn:n,backgroundStyle:a,showCarouselArrows:s,slideTranstionTimer:i,handleCloseTipbar:c}=ge(),l=t&&s;return o.jsx("div",{style:a,"data-hasclosebtn":n,className:Ue.tipbar,children:t?o.jsxs(o.Fragment,{children:[o.jsx(Il,{mode:r,showCarouselArrows:l,slideTranstionTimer:i,children:e}),n&&o.jsx(_n,{handleCloseTipbar:c,showCarouselArrows:l,mode:r})]}):o.jsxs(o.Fragment,{children:[e,n&&o.jsx(_n,{handleCloseTipbar:c,mode:r})]})})},Nl=({children:e,highlightFirstSection:t,...r})=>{const{hasCarousel:n,carouselProps:a}=ge(),s=o.jsx("div",{...r,className:Ue["tipbar-item"],children:e});return n?o.jsx(m.Carousel.Item,{style:a.itemsStyles,children:s}):s},Oa=()=>{const{isOpen:e,slices:t}=ge();return t.length&&e?o.jsx(Sl,{children:t.map((r,n)=>{var a;return o.jsx(o.Fragment,{children:o.jsx(Be,{href:r.link,children:o.jsx(Nl,{highlightFirstSection:r.highlightFirstSection,"data-justifyhighlightedsection":r.horizontalAlignHighlightedSection?r.horizontalAlignHighlightedSection:"center",children:r&&((a=r==null?void 0:r.items)!=null&&a.length)?r.items.map((s,i)=>o.jsx(jl,{staticZone:r,type:s.type,title:s.title,description:s.description},`tipbar-slice-field-${i}`)):null})})},`tipbar-slice-${n}`)})}):null};Oa.displayName="TipBar.Root";const Aa=e=>o.jsx(_l,{...e,children:o.jsx(Oa,{})});Aa.displayName="TipBar";const Pl={teamComponents:{AddToCart:cr,BackToTop:ci,Footer:Go,FreightCalculation:cl,Header:pa,Link:He,Media:fe,ProductCard:Pe,TipBar:Aa},template:{pdp:ml},utils:{EventCollector:li,ExternalScripts:ji,LinkOrNotLink:Be,ObserverWrapper:Xo,SnackBarComponent:hr}};exports.cms=Zs;exports.contexts=ks;exports.data=Io;exports.layout=Pl;
1
+ "use strict";var Xs=Object.defineProperty;var Qs=(e,t,n)=>t in e?Xs(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var ht=(e,t,n)=>Qs(e,typeof t!="symbol"?t+"":t,n);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("react/jsx-runtime"),x=require("react"),Se=require("idb-keyval"),$e=require("zustand"),p=require("@soma-vertical-web/core-components"),fe=require("draft-js"),ze=require("@soma-vertical-web/foundations"),Tn=require("@date-fns/tz"),Ys=require("react-dom"),On=require("axios"),an=x.createContext({}),Zs=({data:e,children:t})=>o.jsx(an.Provider,{value:{tags:e==null?void 0:e.config},children:t}),wr=()=>{const{tags:e}=x.useContext(an),t=x.useCallback(n=>{var i,c,l,u;const r=(c=(i=e==null?void 0:e.commercial)==null?void 0:i.items)==null?void 0:c.find(f=>{var m;return(m=n??[])==null?void 0:m.find(d=>d.id===f.key)}),s=(u=(l=e==null?void 0:e.institucional)==null?void 0:l.items)==null?void 0:u.find(f=>{var m;return(m=n??[])==null?void 0:m.find(d=>d.id===f.key)}),a=e==null?void 0:e.flagPdp;return{commercial:r,institucional:s,flagPdp:a}},[e]);return{tags:e,getAvailableProductTag:t}},Er=({gridScrollBack:e})=>{x.useEffect(()=>{typeof window<"u"&&(e!=null&&e.refer)&&sessionStorage.setItem(e==null?void 0:e.refer,"true")},[])},Rr=x.createContext({}),Js=({children:e,gridScrollBack:t})=>{const n=x.useRef(null);return Er({gridScrollBack:t}),o.jsx(Rr.Provider,{value:{sizesContainerRef:n},children:e})},ea=()=>{const e=x.useContext(Rr);if(e===void 0)throw new Error("useContext(PDPContext) must be used within a PDPProvider");return e},me=(e,t=!0)=>Intl.NumberFormat("pt-BR",{style:"currency",currency:"BRL",minimumFractionDigits:t?2:0}).format(e),Tr=({valueInCents:e,hasFree:t,freeTaxMessage:n})=>e===0?t?n:me(0):me(e/100),cn=(e,t)=>{const[n,r]=e.split(t);return{name:n.trim(),size:r?r.trim():""}},ln=(e,t)=>{if(!e)return{};const[n,r]=e.split(t);return{color:n==null?void 0:n.trim(),size:r==null?void 0:r.trim()}},Or=(e,t="tamanho")=>{if(e.additionalProperty){const[n]=e.additionalProperty;return n!=null&&n.name?n.name.toLocaleLowerCase()===t?n.value:e.name:""}return e.name},ta=e=>e.replace(/\//g,""),Ar=({items:e,NAME_SPLIT_SYMBOL:t})=>{const n={price:0,listPrice:0,installments:{count:0,value:0}},r=(i,c)=>{var d;c&&(c.sellerId=i.sellerId,c.sellerName=i.sellerName,c.available=!0,c.isSellerDefault=i.sellerDefault);const{Price:l,ListPrice:u,PaymentOptions:{installmentOptions:f}}=i.commertialOffer;n.price=l,n.listPrice=u;const m=(d=f==null?void 0:f[0])==null?void 0:d.installments;if(m){const{count:_,value:g}=m[m.length-1];n.installments={count:_,value:g/100}}};let s=!0;const a=e.reduce((i,c)=>{var f;const l={name:c.name,sku:c.itemId,value:((f=c.Tamanho)==null?void 0:f[0])??cn(c.nameComplete??c.name,t).size,available:!1,sellerId:"",sellerName:"",isSellerDefault:!1},u=c.sellers.filter(m=>(m.sellerDefault&&m.commertialOffer.IsAvailable&&(l.available=!0,r(m,l)),m.commertialOffer.IsAvailable));return!l.isSellerDefault&&u.length>0&&(l.available=!0,r(u[0],{...l,sellerId:u[0].sellerId,sellerName:u[0].sellerName})),l.available===!1&&(s=!1),i.push(l),i},[]);return{...n,sizes:a,allSizesAvailable:s}},Mr=e=>e?!e.offers.offers.find(({quantity:t=0})=>t>0):!1,kr=(e,t)=>{const n=e.find(r=>r.availability.includes("InStock")&&r.quantity&&r.listPrice>0&&r.seller.identifier===t);return n||e.find(r=>r.availability.includes("InStock")&&r.quantity&&r.listPrice>0)},Dr=e=>e.find(t=>t.imageLabel==="10"),Lr=(e,t)=>{const n=/\/ids\/(\d+)\//,r=e.match(n);return r?e.replace(`/${r[1]}/`,`/${r[1]}-${t.width}-${t.height}/`):e},zr=(e,t)=>{const n=/\/ids\/(\d+)-(\d+)-(\d+)\//,r=e.match(n);return r?e.replace(`/${r[1]}-${r[2]}-${r[3]}/`,`/${r[1]}-${t.width}-${t.height}/`):e},qr=({images:e,label:t})=>{const n=e.filter(r=>r.keywords===t.first||r.keywords===t.second||r.alternateName===t.first||r.alternateName===t.second);return n.length===0?[e[0]]:n},na=e=>{const[t,n]=e.split("/").map(Number);if(Number.isNaN(t)||Number.isNaN(n))throw new Error("[ERROR ASPECT RATIO IMAGE]: Invalid aspect ratio format");return n/t},$r=(e,t,n)=>{t&&(e?(t.getAttribute("src")||(t.src=n??""),t.play()):t.pause())},ra=Object.freeze(Object.defineProperty({__proto__:null,disableSKU:Mr,formatPriceToCurrency:me,freightParsePrice:Tr,getAspectRatio:na,getColorAndSizeFromSkuName:ln,getFirstImages:qr,getSKUName:Or,getSkuInfos:Ar,getThumbImage:Dr,getValidOffer:kr,removeSlashes:ta,resizingImg:Lr,setVideoPlay:$r,splitNameAndSizeFromFullName:cn,updatedResizedImg:zr},Symbol.toStringTag,{value:"Module"})),he=({event:e,data:t})=>{const n=(window==null?void 0:window.dataLayer)||[];t.ecommerce&&n.push({ecommerce:null}),n.push({...e&&{event:`custom_${e}`},...t})},U={configs:{PLP_FILTERS:[{key:"",label:"",eventLabel:"",order:0}],currency:"BRL",categoryOff:"bazar",storeUrl:"https://www.example.com",MAIN_IMAGE:"1",NAME_SPLIT_SYMBOL:"-"},productEvents:(e,t)=>{const{event:n,commonData:r,customData:s,promotionInfo:a,itemList:i,outsideEcommerceData:c}=e,{availableSizes:l,sizes:u,price:f}=r,m={...n==="view_item"?{currency:U.configs.currency,value:f,grade_disponivel:l??(u?Br(u):"")}:{},...n==="add_to_wishlist"||n==="remove_from_wishlist"?{value:f,currency:U.configs.currency}:{}},d=Ke({data:r,customData:{...s,...i,...a},configs:U.configs});he({event:n,data:{...c,ecommerce:{...i,...m,items:[d]}}}),typeof t=="function"&&t(d,m)},productListEvent:e=>{const{commonData:{products:t},promotionInfo:n,itemList:r,outsideEcommerceData:s,customData:a}=e;if(t.length===0)return;const i=t.map(({node:c},l)=>Ke({data:{...c},customData:{...n,index:l,...a!=null&&a.item_list_name?{item_list_name:a==null?void 0:a.item_list_name}:r},configs:U.configs}));he({event:"view_item_list",data:{...s,ecommerce:{...a!=null&&a.item_list_name?{item_list_name:a==null?void 0:a.item_list_name}:r,items:i}}})},skuEvents:e=>{const{event:t,commonData:{products:n},customData:r,supportData:{selectedSkus:s,price:a},promotionInfo:i,itemList:c,outsideEcommerceData:l}=e;let u=0;const f=n.map(m=>{var h,y,v,N,S,b,C,j,I;const d=s==null?void 0:s.find(P=>(m.productId??m.id)===P.productId);let _={...i,...c};if(d){const P=Hr(),R=Ur(P,d);R&&(_={..._,...R}),t==="add_to_cart"&&(i||c)&&Gt({persistedData:P,type:"add",sku:(d==null?void 0:d.id)??(d==null?void 0:d.sku),newData:{promotionInfo:i,itemList:c}}),t==="remove_from_cart"&&Gt({persistedData:P,type:"remove",sku:(d==null?void 0:d.id)??(d==null?void 0:d.sku)})}u+=m.price??((v=(y=(h=d==null?void 0:d.offers)==null?void 0:h.offers)==null?void 0:y[0])==null?void 0:v.price)??0;const g=(d==null?void 0:d.size)??ln((d==null?void 0:d.skuName)??(d==null?void 0:d.name)??((N=m.itemOffered)==null?void 0:N.skuName),U.configs.NAME_SPLIT_SYMBOL).size;return Ke({data:m,customData:{...r,..._??{...i,...c},item_sku:(d==null?void 0:d.id)??(d==null?void 0:d.sku)??((S=m.itemOffered)==null?void 0:S.sku),quantity:(r==null?void 0:r.quantity)??m.quantity??1,item_variant2:g,seller_id:(d==null?void 0:d.sellerId)??(d==null?void 0:d.seller)??((I=(j=(C=(b=d==null?void 0:d.offers)==null?void 0:b.offers)==null?void 0:C[0])==null?void 0:j.seller)==null?void 0:I.identifier)??m.seller},configs:U.configs})});he({event:t,data:{...l,ecommerce:{value:a??u,currency:U.configs.currency,items:f}}})},filterEvent:e=>{var i;const{commonData:t,customData:n,outsideEcommerceData:r}=e,s={},a={};Array.isArray(t==null?void 0:t.selectedFacets)&&((i=t==null?void 0:t.selectedFacets)!=null&&i.length)&&((t==null?void 0:t.selectedFacets).forEach(({key:c,value:l})=>{var m;const u=((m=U.configs.PLP_FILTERS.find(d=>d.key===c))==null?void 0:m.eventLabel)??c,f=(s==null?void 0:s[u])||[];u==="price_range"&&l.replace(":","-"),s[u]=[...f,l]}),Object.keys(s).forEach(c=>a[c]=s[c].join(", "))),he({event:"filter",data:{...r,...a,...n}})},viewCartEvent:e=>{var f,m,d,_,g,h,y,v,N,S;const{commonData:t,outsideEcommerceData:n}=e,{cartStore:r}=t;if(!r)return;const s=window.localStorage.getItem("persistedCartEventsData"),a=s?JSON.parse(s):{},i=r.items.map(b=>{const{promotionInfo:C,itemList:j}=a[b.id]??{};return Ke({data:{...b,price:b.price/100,listPrice:b.listPrice/100},customData:{...C,...j,item_sku:b.id??b.itemOffered.sku,quantity:b.quantity??1},configs:U.configs})}),c=(((f=r.totalizers.find(b=>b.name==="Total dos Itens"))==null?void 0:f.value)??0)/100,l=(((m=r.totalizers.find(b=>b.name==="Total dos Descontos"))==null?void 0:m.value)??0)/100,u=((d=r.marketingData)==null?void 0:d.utmiCampaign)==="codigodavendedora"?(_=r.marketingData)==null?void 0:_.utmCampaign:(h=String((g=r.openTextField)==null?void 0:g.value))==null?void 0:h.split(" - ")[0];he({event:"view_cart",data:{...n,ecommerce:{currency:U.configs.currency,value:c+l,total_discount:Math.abs(l),cep_preenchido:!!((v=(y=r.shippingData)==null?void 0:y.address)!=null&&v.postalCode),...u?{seller_coupon_name:u}:{},...((N=r.marketingData)==null?void 0:N.coupon)&&{sale_coupon_name:(S=r.marketingData)==null?void 0:S.coupon},subtotal:c,items:i}}})},readyEvents:e=>{const{event:t,readyData:n}=e;he({event:t,data:{...n}})}},Br=e=>e.reduce((t,n)=>(n.available&&t.push(n.value),t),[]).toString(),oa=e=>{const t=e.length;return{...e&&e.length>0?{item_category:e[0].includes(U.configs.categoryOff)?"Bazar":"Coleção",...e[1]?{item_category2:e[1]}:{},...t>2?{item_category3:e[t-1]}:{}}:{}}},Ke=({data:e,customData:t,configs:n})=>({...sa(e,n==null?void 0:n.MAIN_IMAGE),...aa(e),...ia(e),...ca(e),...t}),Fr=()=>{var e,t;return document?((t=(e=window.document.head.querySelector('meta[name="category"]'))==null?void 0:e.getAttribute("content"))==null?void 0:t.split("_"))??[]:[]},Hr=()=>{const e=window.localStorage.getItem("persistedCartEventsData");return e?JSON.parse(e):null},Ur=(e,t)=>e==null?void 0:e[t],Gt=({persistedData:e,type:t,sku:n,newData:r})=>{if(!e&&t==="add"){window.localStorage.setItem("persistedCartEventsData",JSON.stringify({[n]:r}));return}if(e&&t==="add"){window.localStorage.setItem("persistedCartEventsData",JSON.stringify({...e,[n]:r}));return}e&&t==="remove"&&(delete e[n],window.localStorage.setItem("persistedCartEventsData",JSON.stringify(e)))},sa=(e,t="1")=>{var a,i,c,l,u,f,m,d,_,g,h;const n=e.productReference??e.gtin??e.productRefId,r=e.image??((i=(a=e.items)==null?void 0:a[0])==null?void 0:i.images)??((c=e.itemOffered)==null?void 0:c.image),s=r==null?void 0:r.find(y=>y.alternateName===t||y.imageLabel===t||y.keywords===t);return{item_id:e.productId??((l=e.isVariantOf)==null?void 0:l.productGroupID)??((u=e.isVariationOf)==null?void 0:u.productGroupID)??((m=(f=e.itemOffered)==null?void 0:f.isVariationOf)==null?void 0:m.productGroupID),item_ref:/_\d$/.test(n)?n.slice(0,-2):n,item_name:e.productTitle??e.productName??e.name??cn((d=e.itemOffered)==null?void 0:d.name,U.configs.NAME_SPLIT_SYMBOL).name,item_brand:((_=e.brand)==null?void 0:_.brandName)??((g=e.brand)==null?void 0:g.name)??e.brand??((h=e.itemOffered)==null?void 0:h.brand.name),item_url:`${U.configs.storeUrl}${e.linkText}/p`,item_image:(s==null?void 0:s.url)??(s==null?void 0:s.imageUrl)}},An=e=>Array.isArray(e)?e.reduce((t,n)=>(n.length>t.length&&(t=n),t),""):e,aa=e=>{var u,f;const{categories:t,categoriesIds:n}=e,r=t??((u=e.itemOffered)==null?void 0:u.categories),s=n??((f=e.itemOffered)==null?void 0:f.categoriesIds),a=An(r),i=An(s),c=a.slice(1,-1).split("/"),l=i.slice(1,-1).split("/");return{item_category:c[0].toLowerCase().includes(U.configs.categoryOff)?"Bazar":"Coleção",...c[1]&&{item_category2:c[1]},...c.length>2&&{item_category3:c[c.length-1]},item_category_id:l[l.length-1],...l.length>1&&{item_parent_category_id:l[l.length-2]}}},ia=e=>{var s,a,i,c,l,u;const t=((s=e.itemOffered)==null?void 0:s.skuName)??((c=(i=(a=e.isVariantOf)==null?void 0:a.hasVariant)==null?void 0:i[0])==null?void 0:c.name)??((u=(l=e.items)==null?void 0:l[0])==null?void 0:u.name),{color:n,size:r}=ln(t,U.configs.NAME_SPLIT_SYMBOL);return{item_variant:n,...e.itemOffered&&{item_variant2:r}}},ca=e=>{var l,u;const{price:t,listPrice:n,installments:r}=e,s=t??((l=e.offers)==null?void 0:l.lowPrice)??0,a=n??((u=e.offers)==null?void 0:u.highPrice)??0,i=a?a-s:0,c=i%1===0?i:Number(i.toFixed(2));return{...t&&{price:s??a},...a&&{list_price:a,discount:c},...r&&{installments:r==null?void 0:r.count,installment_value:r==null?void 0:r.value},item_currency:U.configs.currency}},Wr=()=>{const[e,t]=Fr(),[n,r]=e.split("-"),s=n.includes("shop")||n.includes("sale")?n:"";return{page_category:s&&r?r:"",page_departament:s,id:t,name:e}},la=Object.freeze(Object.defineProperty({__proto__:null,eventsFunctions:U,findDataInPersistedData:Ur,getAvailablesSizes:Br,getCategories:oa,getPageCategoryAndDepartmentFromSlug:Wr,getPersistedData:Hr,getProductListInfoFromHead:Fr,pushDatalayer:he,updatePersistedData:Gt},Symbol.toStringTag,{value:"Module"})),Vr=x.createContext({}),ua=({children:e,evtFunctionsConfigs:t})=>{const n=x.useRef({}),r=x.useRef(null),s=x.useRef(null),a=x.useRef({}),i=x.useRef({trigger:!1,index:0}),c=({functionKey:f,data:m,callBack:d,timeout:_=100})=>{window.dataLayer||(window.dataLayer=[]),U.configs=t;try{typeof U[f]=="function"&&setTimeout(()=>{var g;m.promotionInfo=n.current,(g=s.current)!=null&&g.item_list_name&&(m.itemList=s.current),U[f](m,d)},_)}catch(g){he({event:"error_event",data:{error_message:(g==null?void 0:g.message)??g}})}},l=({content:f})=>{c({functionKey:"readyEvents",data:{event:"select_content",readyData:{content_type:f.replace("::",":")}}})},u=({updatePromotionRef:f,promotion:m,index:d})=>{f&&(n.current={...m}),c({functionKey:"readyEvents",data:{event:"select_promotion",readyData:{ecommerce:{...m,...d!==void 0&&{index:d}}}}})};return o.jsx(Vr.Provider,{value:{sendDataLayerEvent:c,triggerSelectItemEventRef:i,promotionEventRef:n,currentLocalRef:r,itemListRef:s,cartProductsFullDataRef:a,handleSelectContent:l,handleSelectPromotionEvent:u},children:e})},F=()=>x.useContext(Vr),Gr=x.createContext({}),da=({children:e,productData:t,isKit:n,PDP_INFO:r,NAME_SPLIT_SYMBOL:s})=>{var T,M;const{sendDataLayerEvent:a,triggerSelectItemEventRef:i}=F(),{productId:c,productName:l,items:u,items:[{images:f,Videos:m}],description:d,["Composição"]:_="",productReference:g,categories:[h]}=t,{getAvailableProductTag:y}=wr(),v=y(Object.entries(t.clusterHighlights).map(w=>({id:w[0],name:w[1]}))),N=h.slice(1,-1).split("/"),{installments:S,price:b,listPrice:C,sizes:j,allSizesAvailable:I}=Ar({items:u,NAME_SPLIT_SYMBOL:s}),P=Dr(f),R=[{label:`${r.product.description}`,value:"description",content:d},{label:`${r.product.materiais}`,value:"composition",content:_}],O=((M=(T=t.items)==null?void 0:T[0].name.split("-"))==null?void 0:M[0].trim())??t["Cores Filtráveis"]??[],z=()=>({commonData:{...t,sizes:j,price:b,listPrice:C,installments:S},customData:{installments:S==null?void 0:S.count,installment_value:Number(S==null?void 0:S.value).toFixed(2)}}),E=({sku:w,size:k})=>{const{commonData:q,customData:$}=z();a({functionKey:"productEvents",data:{event:"view_item",commonData:q,customData:{...$,...w&&{item_sku:w},...k&&{item_variant2:k}}}})};return x.useEffect(()=>{if(i.current.trigger){const{commonData:w,customData:k}=z();a({functionKey:"productEvents",data:{event:"select_item",commonData:w,customData:{...k,index:i.current.index}}}),i.current.trigger=!1}E({})},[]),o.jsx(Gr.Provider,{value:{productData:t,productId:c,productName:l,productReference:g,tag:v,items:u,sizes:j,allSizesAvailable:I,installments:S,price:b,listPrice:C,thumbImage:P,images:f,video:m[0],descriptionContent:R,breadcrumbList:N,isKit:n,colorName:O,handleViewItemEvent:E},children:e})},un=()=>{const e=x.useContext(Gr);if(e===void 0)throw new Error("useContext(PDPDataContext) must be used within a PDPDataProvider");return e},fa={attachment:"ATTACHMENT",specification:"SPECIFICATION",attribute:"ATTRIBUTE"},oe=Promise.resolve(!1),Kt={id:"",isOpen:!1,items:[],loading:!1,marketingData:null,messages:[],openTextField:{},paymentData:null,shippingData:null,totalizers:[],itemMetadata:[],recentlyAddedProducts:[],addCoupon:()=>oe,addItem:()=>oe,addSellerCode:()=>oe,emptyCart:()=>{},removeItem:()=>oe,setIsOpen:()=>{},shipping:()=>oe,shippingUpdate:()=>oe,toggleServiceToProduct:()=>oe,updateItemQuantity:()=>oe,insertProfileEmail:()=>oe,setRecentlyAddedProducts:()=>{}},dn=e=>e===0,Kr=(e,t)=>{if(!e||e.length===0)return[];let n="";const r=[],s=e.match(/\d+/g)??[];for(const a of s){const i=t[Number(a)];i&&(n+=(n?"/":"")+i,r.push(n))}return r},Xr=e=>{const{availability:t,additionalInfo:{brandName:n},bundleItems:r,id:s,detailUrl:a,ean:i,imageUrl:c,name:l,listPrice:u,quantity:f,price:m,priceDefinition:d,productCategories:_,productCategoryIds:g,productId:h,refId:y,seller:v,referenceId:N,offerings:S,productRefId:b,skuName:C,sellingPrice:j}=e;return{availability:t,bundleItems:r,referenceId:N,productRefId:b,id:s,ean:i,itemOffered:{additionalProperty:[],brand:{name:n},categories:Kr(g,_),categoriesIds:g,gtin:y,image:[{alternateName:"1",url:c}],name:l,isVariationOf:{name:l,productGroupID:h},sku:s,slug:a,skuName:C},listPrice:u,quantity:f,offerings:S,price:m,priceDefinition:d,sellingPrice:j,seller:v}},Qr=(e,t)=>{const n=e.map(r=>({id:r.id,quantity:r.quantity,seller:r.seller}));return Array.isArray(t)?[...n,...t]:[...n,t]},Yr=(e,t)=>{const n=e.find(r=>r.id===t);if(n){const r=e.map((s,a)=>{var i,c;return{id:((i=s.itemOffered)==null?void 0:i.sku)??"",index:a,quantity:(n==null?void 0:n.id)===((c=s.itemOffered)==null?void 0:c.sku)?0:s.quantity,seller:s.seller??""}});return{updateItems:r,filterItems:r.filter(s=>s.id!==t)}}return{updateItems:[],filterItems:[]}},Zr=(e,t,n)=>e.filter(r=>r.availability!=="withoutStock"&&r.availability!=="https://schema.org/OutOfStock").map((r,s)=>{var a,i;return r.id===t?{id:r.id,index:s,quantity:n,seller:r.seller,sku:((a=r.itemOffered)==null?void 0:a.sku)??""}:{id:r.id,index:s,quantity:r.quantity,seller:r.seller,sku:((i=r.itemOffered)==null?void 0:i.sku)??""}}),Xt=(e,t)=>e.filter(n=>n.availability!=="withoutStock").findIndex(({id:n})=>n===t),ma=(e,t)=>{var n;return Array.isArray(e)?(((n=e==null?void 0:e.find(r=>{var s;return((s=r==null?void 0:r.id)==null?void 0:s.toLowerCase())===t}))==null?void 0:n.value)??0)/100:0},pa=e=>{const t=e.reduce((s,a)=>{const i=dn(a.price)?0:a.quantity;return s+i},0),n=e.reduce((s,a)=>s+a.price*a.quantity,0),r=e.reduce((s,a)=>s+a.listPrice*a.quantity,0);return{totalItems:t,total:n,subTotal:r}},ha=e=>Array.isArray(e)?e.filter(t=>t.availability!=="withoutStock").reduce((t,n)=>t+(dn(n==null?void 0:n.price)?0:n.quantity),0):0,Jr=e=>{const{items:t,itemMetadata:n,marketingData:r,messages:s,orderFormId:a,openTextField:i,paymentData:c,shippingData:l,totalizers:u}=e;return{id:a,itemMetadata:n,items:Array.isArray(t)?t.map(Xr):[],marketingData:r,messages:s,openTextField:i,paymentData:c,shippingData:l,totalizers:u}},eo=(e,t)=>{const n=e.find(r=>r.id===t);return n?n.availability==="unavailableItemFulfillment":!1},_a=(e,t)=>{const n=e.sku,r=e.isVariantOf.hasVariant.find(s=>s.sku===n);return r?r.name.split(t)[1]:"--"},Ne=(e,t,n=!1)=>!e&&t!==""?{code:300,value:t,statusOk:n}:e===t?{code:200,value:t,statusOk:n}:{code:400,value:t,statusOk:n},ga=(e,t)=>{const n=new Set;return[e,...t].filter(r=>!n.has(r)&&n.add(r),n)},to=(e,t)=>t&&Array.isArray(t)&&t.find(r=>r.id===e)?Promise.resolve(e):Promise.resolve(!1),no=(e,t)=>t?Promise.resolve(e[t]):Promise.resolve(!1),ro=async e=>{try{const t=await e();if(typeof t!="boolean")return t}catch(t){console.error(`[Error orderForm]: ${t}`)}return!1},oo=(e,t)=>{if(t!==-1){const n=Number(e);return n?n+1:1}return e??1},so=(e,t)=>Array.isArray(e)?e.filter(n=>t==null?void 0:t.some(r=>r.id===n.id)):[],ao=async(e,t)=>e.then(n=>[...n??[],...t??[]]),Q=async(e,t,n)=>{const{priority:r="auto",body:s}=t;return fetch(e,{headers:{"Content-Type":"application/json"},priority:r,method:"POST",body:JSON.stringify(s)}).then(async a=>{const i=await a.json();return n?i:Jr(i)})},io=(e,t,n)=>({notifications:[...e.notifications,{id:Date.now(),message:t,callback:n}]}),ya=e=>[...Array.isArray(e)?e:[e],"faststore"],va=Object.freeze(Object.defineProperty({__proto__:null,VALUE_REFERENCES:fa,addItemOrder:Qr,addNotification:io,createItemOrder:Xr,fetchCartAPI:Q,findItemIndex:Xt,findOptions:so,findTotalizerValue:ma,getCategories:Kr,getCode:Ne,getQuantity:oo,getRemoveId:to,getSize:_a,getTotalItems:ha,getTotalizer:pa,getValue:no,initialState:Kt,isGift:dn,marketingTagsBuilder:ya,mergeOptionsPromise:ao,orderFormValues:Jr,promiseDefault:oe,removeQuantity:Yr,updateItemSellerExternal:eo,updateOrderFormPromise:ro,updateQuantity:Zr,wishlistArray:ga},Symbol.toStringTag,{value:"Module"})),xa=()=>{const e=async(d,_)=>Q("/api/checkout/order-form/coupon",{body:{orderFormId:d,coupon:_}}),t=async(d,_)=>{if(_){const g=_.includes(" - ")?_.split(" - ")[0]:_,h=await Q("/api/checkout/order-form/seller-code",{body:{orderFormId:d,sellerCode:g}},!0);return Q("/api/checkout/order-form/attachments",{body:{orderFormId:d,sellerCode:g,sellerName:h instanceof Object&&"nome"in h?h==null?void 0:h.nome:""}}).then(y=>({...y,openTextField:{...(y==null?void 0:y.openTextField)??{},statusOk:(h==null?void 0:h.status)??!1}}))}else return Q("/api/checkout/order-form/attachments",{body:{orderFormId:d,sellerCode:"",sellerName:""}})},n=async(d,_,g)=>Q("/api/checkout/order-form/items",{body:{orderFormId:d,orderItems:Qr(_,g)}}),r=async(d,_,g,h)=>Q("/api/checkout/order-form/offerings",{body:{id:_,itemIndex:g,orderFormId:d,remove:h}}),s=async d=>Q("/api/checkout/order-form/items/remove-all",{body:{orderFormId:d}}),a=async(d,_="low")=>Q("/api/checkout/order-form",{priority:_,body:{orderFormId:d??""}}),i=async(d,_)=>Q("/api/checkout/order-form/profile",{body:{orderFormId:d,email:_}}),c=async(d,_,g)=>{const h=Yr(_,g);return Q("/api/checkout/order-form/items/update",{body:{orderItems:h.updateItems,orderFormId:d}})},l=async(d,_,g)=>Q("/api/checkout/order-form/shipping",{body:{orderFormId:d,country:g,postalCode:_}}),u=async(d,_,g)=>Q("/api/checkout/order-form/shipping/update",{body:{orderFormId:d,options:_,selectedAddresses:g}}),f=async(d,_,g,h)=>{const y=Zr(_,g,h);return Q("/api/checkout/order-form/items/update",{body:{orderFormId:d,orderItems:y}})};return{addCoupon:e,addItem:n,addSellerCode:t,giftItem:r,emptyCart:s,getOrderForm:a,insertProfileEmail:i,removeItem:c,shipping:l,shippingUpdate:u,updateItemQuantity:async(d,_,g,h,y)=>f(d,_,g,h).then(v=>v&&Array.isArray(v.items)?eo(v.items,g)?f(d,_,g,y):v:!1)}},Qt="soma::cart",De="soma::options",we=$e.create((e,t)=>{const n=xa(),r=async(s,a,i)=>{e({loading:!0});const c=await ro(s);if(typeof c!="boolean"){e({...c});const l=await ao(Se.get(De),i);return Se.set(De,l),no(c,a).finally(()=>e({loading:!1,options:l}))}return oe};if(typeof window<"u"){const s=async a=>{if(a){const i=await Se.get(De).then(u=>so(u,a.items));Se.set(Qt,a),Se.set(De,i),e({...a,options:i});const c=new URLSearchParams(window.location.search),l=c.get("utm_campaign")||c.get("utmi_campaign")||"";l&&r(()=>n.addSellerCode(t().id,l.toUpperCase()),"openTextField")}};return Se.get(Qt).then(a=>n.getOrderForm(a?a.id:"").then(s)),{...Kt,addCoupon:async a=>r(()=>n.addCoupon(t().id,a),"marketingData"),addItem:(a,i)=>{r(()=>n.addItem(t().id,t().items,a),"items",i)},addSellerCode:async a=>r(()=>n.addSellerCode(t().id,a),"openTextField"),emptyCart:()=>{r(()=>n.emptyCart(t().id))},removeItem:async a=>{const i=await r(()=>n.removeItem(t().id,t().items,a),"items");return to(a,i)},shipping:async(a,i="BR")=>r(()=>n.shipping(t().id,a,i),"shippingData"),shippingUpdate:async a=>r(()=>{var i;return n.shippingUpdate(t().id,a,(i=t().shippingData)==null?void 0:i.selectedAddresses)},"shippingData"),toggleServiceToProduct:async(a,i,c)=>r(()=>n.giftItem(t().id,a,i,c),"items"),updateItemQuantity:async(a,i,c)=>{const{id:l,items:u}=t();return r(()=>{var f;return n.updateItemQuantity(l,u,a,i,((f=u.find(m=>m.id===a))==null?void 0:f.quantity)??1)},"items",c?[c]:void 0)},insertProfileEmail:async a=>r(()=>n.insertProfileEmail(t().id,a),"clientProfileData"),setIsOpen:a=>e({isOpen:a})}}return Kt}),ba=()=>we(e=>e),co=$e.create(e=>({notifications:[],actions:{addNotification:(t,n)=>e(r=>io(r,t,n)),removeNotification:t=>e(n=>({notifications:n.notifications.filter(r=>r.id!==t)}))}})),lo=()=>co(e=>e.notifications),uo=()=>co(e=>e.actions),Ca=Object.freeze(Object.defineProperty({__proto__:null,KEY_INDEXED_OPTIONS:De,KEY_INDEXED_STORE:Qt,useCartStore:we,useGetCartStoreState:ba,useGetNotificationActions:uo,useGetNotificationsStore:lo},Symbol.toStringTag,{value:"Module"})),ja=6e3,fo=x.createContext({}),mo=({children:e,...t})=>{const{items:n}=we(),[r,s]=x.useState([]),a=x.useRef(null),i=x.useMemo(()=>Array.isArray(r)&&r.length>0?r.map(c=>n.find(l=>l.id===c.id)).filter(c=>c!==void 0):[],[n,r]);return x.useEffect(()=>{r.length&&(clearTimeout(a.current??0),a.current=setTimeout(()=>{s([])},ja))},[r]),o.jsx(fo.Provider,{value:x.useMemo(()=>({...t,setRecentlyAdded:s,recentlyAddedProducts:i}),[t,s,i]),children:e})},Be=()=>{const e=x.useContext(fo);if(e===void 0)throw new Error("useUIContext must be used within a UIProvider");return e};class po{constructor(){ht(this,"events",{});ht(this,"prevData",{})}subscribe(t,n){return this.events[t]||(this.events[t]=[]),this.events[t].push(n),()=>{this.events[t]=this.events[t].filter(r=>r!==n)}}publish(t,n){this.events[t]&&this.events[t].forEach(r=>{this.prevData[t]=n,r(n)})}}const ho=x.createContext({}),Sa=({children:e,headerConfigs:t,pathname:n,...r})=>{const[s,a]=x.useState(!0),i=n==="/",c=x.useRef(new po),l=m=>m?{headerVariant:t.home_default_variant,bannerVariant:t.home_default_variant,position:t.home_default_position}:{headerVariant:t.default_variant,bannerVariant:t.default_variant,position:t.default_position},u=l(i),f=x.useRef(u);return x.useEffect(()=>{const m=()=>{const d=typeof(window==null?void 0:window.navigator)>"u"?"":navigator==null?void 0:navigator.userAgent,_=window.innerWidth<1024||!!d.match(/Android|BlackBerry|iPhone|iPad|iPod|Opera Mini|IEMobile|WPDesktop/i);s!==_&&a(_)};return m(),window.addEventListener("resize",m,{passive:!0}),()=>window.removeEventListener("resize",m)},[s]),x.useEffect(()=>{const m=l(i);c.current.publish("header:change_variant",m.headerVariant),c.current.publish("header:change_position",m.position),f.current=m},[i]),o.jsx(ho.Provider,{value:{isMobile:s,mediatorRef:c,currentHeaderConfigsRef:f,...r},children:o.jsx(mo,{children:e})})},pe=()=>x.useContext(ho),_o=x.createContext({}),Ia=({children:e,...t})=>o.jsx(_o.Provider,{value:{...t},children:e}),ae=()=>x.useContext(_o),ve=(e,t)=>$e.create(n=>{const r=()=>n({value:e});return t&&t instanceof Set&&t.add(r),{value:e,actions:{setValue:s=>n({value:s}),reset:r}}}),qe={category:null,menuMobileIsOpen:!1,searchModalIsOpen:!1,userMenuIsOpen:!1},Fe=new Set,Na=()=>{Fe.forEach(e=>{e()})},go=$e.create((e,t)=>{const n=()=>e({value:qe.category});return Fe.add(n),{value:qe.category,actions:{reset:n,setValue:r=>e(()=>({value:r})),updateValue:r=>{t().value!==r&&e({value:r})}}}}),ft=()=>go(e=>e.value),_e=()=>go(e=>e.actions),yo=ve(qe.menuMobileIsOpen,Fe),fn=()=>yo(e=>e.value),xe=()=>yo(e=>e.actions),vo=ve(qe.searchModalIsOpen,Fe),Pa=()=>vo(e=>e.value),mn=()=>vo(e=>e.actions),xo=ve(qe.userMenuIsOpen,Fe),wa=()=>xo(e=>e.value),pn=()=>xo(e=>e.actions),Ea=Object.freeze(Object.defineProperty({__proto__:null,resetAllHeaderStores:Na,useActionsHeaderCategory:_e,useActionsMenuMobileIsOpen:xe,useActionsSearchModalIsOpen:mn,useActionsUserMenuIsOpen:pn,useGetHeaderCategoryStore:ft,useGetMenuMobileIsOpen:fn,useGetSearchModalIsOpen:Pa,useGetUserMenuIsOpen:wa},Symbol.toStringTag,{value:"Module"})),Ee={selectedSkuInfo:{productId:"",name:"",size:"",sku:"",sellerId:"",sellerName:"",available:!1,quantity:1},openLetMeKnow:!1,openMeasurements:!1,showBottomNavigation:!1,showNotify:!1},Re=new Set,Ra=()=>{Re.forEach(e=>{e()})},bo=$e.create(e=>{const t=()=>e({value:Ee.selectedSkuInfo});return Re.add(t),{value:Ee.selectedSkuInfo,actions:{setValue:n=>e(r=>({value:{...r,...n}})),reset:t}}}),Ta=()=>bo(e=>e.value),Oa=()=>bo(e=>e.actions),Co=ve(Ee.openLetMeKnow,Re),Aa=()=>Co(e=>e.value),Ma=()=>Co(e=>e.actions),jo=ve(Ee.showNotify,Re),ka=()=>jo(e=>e.value),Da=()=>jo(e=>e.actions),So=ve(Ee.showBottomNavigation,Re),La=()=>So(e=>e.value),za=()=>So(e=>e.actions),Io=ve(Ee.openMeasurements,Re),qa=()=>Io(e=>e.value),$a=()=>Io(e=>e.actions),Ba=Object.freeze(Object.defineProperty({__proto__:null,resetAllPDPStores:Ra,useActionsPDPOpenLetMeKnow:Ma,useActionsPDPOpenMeasurements:$a,useActionsPDPSelectedSkuInfo:Oa,useActionsPDPShowBottomNavigation:za,useActionsPDPShowNotify:Da,useGetPDPOpenLetMeKnow:Aa,useGetPDPOpenMeasurements:qa,useGetPDPSelectedSkuInfo:Ta,useGetPDPShowBottomNavigation:La,useGetPDPShowNotify:ka},Symbol.toStringTag,{value:"Module"})),No=x.createContext({}),Fa=({children:e,headerData:t,...n})=>{var l,u;const r=x.useRef(null),s=x.useRef(null),a=x.useRef(null),{mediatorRef:i,currentHeaderConfigsRef:c}=pe();return(l=i.current)==null||l.subscribe("header:change_variant",f=>{var h,y,v;if(f&&c.current&&(c.current.bannerVariant=f),!r.current)return;const d=document.body.scrollTop>0,_=r.current.getAttribute("data-interactiveVariant"),g=d?_:f??((h=c.current)==null?void 0:h.bannerVariant)??"default";g!==((y=c.current)==null?void 0:y.headerVariant)&&(r.current.setAttribute("data-bottomdivider",String(d)),r.current.setAttribute("data-variant",String(g)),(v=i.current)==null||v.publish("herobanner:change_controllers_variant",g),c.current&&(c.current.headerVariant=g))}),(u=i.current)==null||u.subscribe("header:change_position",f=>{r.current&&(r.current.style.position=f)}),x.useEffect(()=>{const f=new AbortController,m=p.helpers.throttle(()=>{var _;return(_=i.current)==null?void 0:_.publish("header:change_variant",null)},200);document.body.addEventListener("scroll",m,{passive:!0,signal:f.signal});const d=_=>{var h;(h=_.target.closest("a"))==null||h.blur()};return r.current&&(r.current.addEventListener("click",d,{signal:f.signal}),r.current.addEventListener("touchend",d,{signal:f.signal})),()=>{f.abort()}},[]),o.jsx(No.Provider,{value:{headerData:t,structureRef:s,rootRef:r,tipbarRef:a,...n},children:e})},G=()=>x.useContext(No),Po=x.createContext({}),wo=({children:e})=>{const t=x.useRef(null),n=x.useRef(null),r=fn(),s=x.useCallback(()=>{var a;{const i=(a=t.current)==null?void 0:a.querySelector("dialog");if(i){i.dataset.animation="out";const c=i.children[0];c.dataset.animation="out"}}},[]);return x.useEffect(()=>{var a;if(r)document.body.dataset.modalopen="true";else{document.body.dataset.modalopen="false";const i=(a=n.current)==null?void 0:a.querySelector("dialog");if(i){i.dataset.animation="out";const c=i.children[0];c.dataset.animation="out"}}},[r]),x.useEffect(()=>{n.current=document.body},[]),o.jsx(Po.Provider,{value:{bodyRef:t,handleCloseSubMenu:s,documentBodyRef:n},children:e})},He=()=>x.useContext(Po),Ha=e=>{if(!e||typeof window>"u")return 0;const t=window.getComputedStyle(e);return parseInt(t.padding,10)},Ua=(e,t,n)=>{if(!(e instanceof HTMLElement)||!(t instanceof HTMLElement))return{left:0,top:0};const r=t.getBoundingClientRect(),s=e.getBoundingClientRect(),a=e!=null&&e.parentElement?Ha(e==null?void 0:e.parentElement):0;return{left:r.left+r.width/2-(s.width+a),top:r.top+r.height+n}},Eo=x.createContext({}),Ro=({children:e,delay:t=600,gap:n=20,...r})=>{const[s,a]=x.useState(!1),i=x.useRef(null),[c,l]=x.useState(!1),[u,f]=x.useState({left:0,top:0}),m=x.useCallback(()=>{l(!0),typeof window<"u"&&(i.current=window.setTimeout(()=>{a(!1),l(!1)},t))},[l,a,t]);return x.useEffect(()=>{if(typeof window>"u")return;const d=window.document.querySelector("#cart-button"),_=window.document.querySelector("#add-to-cart--tooltip");if(d&&_){const{left:g,top:h}=Ua(_,d,n??0);f({left:g,top:h}),l(!1)}},[n,s]),o.jsx(Eo.Provider,{value:x.useMemo(()=>({...r,...u,handleClose:m,isLeaving:c,isOpen:s,setIsOpen:a,setIsLeaving:l}),[r,u,m,c,s,a,l]),children:e})},be=()=>{const e=x.useContext(Eo);if(e===void 0)throw new Error("useAddToCartContext must be used within a AddToCartProvider");return e},To=x.createContext({}),Wa=({children:e,CARTPROVIDER_MESSAGE_PRODUCT_REMOVE:t,...n})=>{const r=we(),{setRecentlyAdded:s}=Be(),a=lo(),{addNotification:i,removeNotification:c}=uo(),{addCoupon:l,addItem:u,addSellerCode:f,emptyCart:m,isOpen:d,removeItem:_,shipping:g,shippingUpdate:h,toggleServiceToProduct:y,updateItemQuantity:v}=r,N=x.useCallback(async(E,T)=>(T==="coupon"?l(E):f(E)).then(w=>{if(typeof w!="boolean"&&w instanceof Object){if(T==="seller"&&"value"in w){const{statusOk:k,value:q}=w,$=String(q??"").split(" - ");return Ne(($==null?void 0:$[0])??"",E,!!k)}return Ne(String(w.coupon),E,!0)}return Ne("","")}).catch(()=>Promise.resolve({code:400})),[l,f]),S=x.useCallback((E,T,M)=>{const{id:w}=E;v(w,T,M)},[v]),b=x.useCallback((E,T,M=!1)=>{if(!E)return;const{id:w}=E,k=Xt(r.items,w);if(k!==-1&&!M){const q=Number(r.items[k].quantity),$=r.items[k]?q+1:1;S(E,$,T)}else u({id:w,quantity:(E==null?void 0:E.quantity)??1,seller:E.seller});d||s(q=>[...q,E])},[u,S,r.items,d,s]),C=x.useCallback((E,T)=>{if(!E||!Array.isArray(E))return;s(w=>[...w,...E]);const M=E.map(w=>{const{id:k,quantity:q,seller:$}=w,W=Xt(r.items,k),Y=oo(q??1,W);return{id:k,quantity:Y,seller:$}});u(M,T)},[u,r.items,s]),j=x.useCallback(async(E,T,M)=>E?_(E).then(()=>(i(T??`${t}`,M),Ne(E,E))):Promise.resolve(Ne("","Product id required")),[i,_]),I=x.useCallback(()=>{r.items.length>0&&m()},[m,r.items]),P=x.useCallback((E,T="BRA")=>g(E,T),[g]),R=x.useCallback(E=>{E&&h(E)},[h]),O=x.useCallback(async(E,T,M)=>{const w=r.items.findIndex(q=>q.id===E);return r.items[w]&&w>=0?y(T,w,M??!1):!1},[r.items,y]),z=x.useCallback(async(E,T)=>v(E,T).then(M=>{if(Array.isArray(M)){const w=M.find(k=>k.id===E);if(w&&(w==null?void 0:w.quantity)<T)return String(w.quantity)}return!1}),[v]);return o.jsx(To.Provider,{value:x.useMemo(()=>({...n,addCouponSeller:N,addToCart:b,addItemsToCart:C,cartStore:r,notifications:a,clearCart:I,addNotification:i,isOpen:r.isOpen,removeNotification:c,removeToCart:j,setIsOpen:r.setIsOpen,shipping:P,shippingUpdateOption:R,toggleGiftItemCart:O,updateItemQuantity:z}),[n,N,b,C,a,I,i,r,c,j,P,R,O,z]),children:e})},Te=()=>{const e=x.useContext(To);if(e===void 0)throw new Error("useCartContext must be used within a CartProvider");return e},Va={contexts:{addToCart:{hook:be,provider:Ro},cart:{hook:Te,provider:Wa},cms:{FlagsAndTags:{context:an,hook:wr,provider:Zs}},events:{hook:F,provider:ua},global:{hook:pe,provider:Sa,mediator:po},header:{hook:G,provider:Fa},menuMobile:{hook:He,provider:wo},next:{hook:ae,provider:Ia},pdp:{provider:Js,hook:ea},pdpdata:{hook:un,provider:da},ui:{hook:Be,provider:mo}},hooks:{useBackPDC:Er},stores:{cart:Ca,header:Ea,pdp:Ba}};function Oo(e){const n=decodeURIComponent(window.document.cookie).split(";");for(const r of n){const[s,a]=r.trim().split("=");if(s===e)return a}}function Ao(e,t,n={}){const s={...{path:"/",expires:new Date(Date.now()+36e5)},...n};let a=`${encodeURIComponent(e)}=${encodeURIComponent(t??"")}`;for(const i in s)s[i]!==void 0&&(a+=`; ${i}`,i==="expires"?a+=`=${s[i].toUTCString()}`:typeof s[i]=="boolean"?a+=`; ${s[i]?"true":"false"}`:a+=`=${s[i]}`);window.document.cookie=a}const Ga=e=>e.normalize("NFD").replace(/[\u0300-\u036f]/g,"").replace(/\s+/g,"-").toLowerCase().trim();function Ka(e,t=1e3){let n=!1;return(...r)=>{n||(e(...r),n=!0,setTimeout(()=>{n=!1},t))}}function Xa(e,t=1e3){let n;return(...r)=>{clearTimeout(n),n=setTimeout(()=>{e(...r)},t)}}const Mo=(e,t)=>t.getTime()>e.getTime()?Math.abs(t.getTime()-e.getTime()):0,Le=(e,t)=>Math.floor(t==="days"?e/(1e3*60*60*24):t==="hours"?e%(1e3*60*60*24)/(1e3*60*60):t==="minutes"?e%(1e3*60*60)/(1e3*60):e%(1e3*60)/1e3),Qa=Object.freeze(Object.defineProperty({__proto__:null,debounce:Xa,getCookie:Oo,getDaysHoursMinutesSeconds:Le,getMilliSeconds:Mo,removeAccentsAndReplaceSpaces:Ga,setCookie:Ao,throttle:Ka},Symbol.toStringTag,{value:"Module"})),Ya={cart:va,events:la,product:ra,utils:Qa},ko={helpers:Ya};function hn(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Yt={exports:{}},se={};se._=se._interop_require_default=Za;function Za(e){return e&&e.__esModule?e:{default:e}}var Xe={exports:{}},_t={},Mn;function Do(){return Mn||(Mn=1,function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(i,c){for(var l in c)Object.defineProperty(i,l,{enumerable:!0,get:c[l]})}t(e,{searchParamsToUrlQuery:function(){return n},urlQueryToSearchParams:function(){return s},assign:function(){return a}});function n(i){const c={};return i.forEach((l,u)=>{typeof c[u]>"u"?c[u]=l:Array.isArray(c[u])?c[u].push(l):c[u]=[c[u],l]}),c}function r(i){return typeof i=="string"||typeof i=="number"&&!isNaN(i)||typeof i=="boolean"?String(i):""}function s(i){const c=new URLSearchParams;return Object.entries(i).forEach(l=>{let[u,f]=l;Array.isArray(f)?f.forEach(m=>c.append(u,r(m))):c.set(u,r(f))}),c}function a(i){for(var c=arguments.length,l=new Array(c>1?c-1:0),u=1;u<c;u++)l[u-1]=arguments[u];return l.forEach(f=>{Array.from(f.keys()).forEach(m=>i.delete(m)),f.forEach((m,d)=>i.append(d,m))}),i}}(_t)),_t}var gt={},Qe={},kn;function Lo(){if(kn)return Qe;kn=1;function e(n){if(typeof WeakMap!="function")return null;var r=new WeakMap,s=new WeakMap;return(e=function(a){return a?s:r})(n)}Qe._=Qe._interop_require_wildcard=t;function t(n,r){if(!r&&n&&n.__esModule)return n;if(n===null||typeof n!="object"&&typeof n!="function")return{default:n};var s=e(r);if(s&&s.has(n))return s.get(n);var a={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var c in n)if(c!=="default"&&Object.prototype.hasOwnProperty.call(n,c)){var l=i?Object.getOwnPropertyDescriptor(n,c):null;l&&(l.get||l.set)?Object.defineProperty(a,c,l):a[c]=n[c]}return a.default=n,s&&s.set(n,a),a}return Qe}var Dn;function zo(){return Dn||(Dn=1,function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(l,u){for(var f in u)Object.defineProperty(l,f,{enumerable:!0,get:u[f]})}t(e,{formatUrl:function(){return a},urlObjectKeys:function(){return i},formatWithValidation:function(){return c}});const r=Lo()._(Do()),s=/https?|ftp|gopher|file/;function a(l){let{auth:u,hostname:f}=l,m=l.protocol||"",d=l.pathname||"",_=l.hash||"",g=l.query||"",h=!1;u=u?encodeURIComponent(u).replace(/%3A/i,":")+"@":"",l.host?h=u+l.host:f&&(h=u+(~f.indexOf(":")?"["+f+"]":f),l.port&&(h+=":"+l.port)),g&&typeof g=="object"&&(g=String(r.urlQueryToSearchParams(g)));let y=l.search||g&&"?"+g||"";return m&&!m.endsWith(":")&&(m+=":"),l.slashes||(!m||s.test(m))&&h!==!1?(h="//"+(h||""),d&&d[0]!=="/"&&(d="/"+d)):h||(h=""),_&&_[0]!=="#"&&(_="#"+_),y&&y[0]!=="?"&&(y="?"+y),d=d.replace(/[?#]/g,encodeURIComponent),y=y.replace("#","%23"),""+m+h+d+y+_}const i=["auth","hash","host","hostname","href","path","pathname","port","protocol","query","search","slashes"];function c(l){return process.env.NODE_ENV==="development"&&l!==null&&typeof l=="object"&&Object.keys(l).forEach(u=>{i.includes(u)||console.warn("Unknown key passed via urlObject into url.format: "+u)}),a(l)}}(gt)),gt}var yt={},Ln;function Ja(){return Ln||(Ln=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"omit",{enumerable:!0,get:function(){return t}});function t(n,r){const s={};return Object.keys(n).forEach(a=>{r.includes(a)||(s[a]=n[a])}),s}}(yt)),yt}var vt={},zn;function mt(){return zn||(zn=1,function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(b,C){for(var j in C)Object.defineProperty(b,j,{enumerable:!0,get:C[j]})}t(e,{WEB_VITALS:function(){return n},execOnce:function(){return r},isAbsoluteUrl:function(){return a},getLocationOrigin:function(){return i},getURL:function(){return c},getDisplayName:function(){return l},isResSent:function(){return u},normalizeRepeatedSlashes:function(){return f},loadGetInitialProps:function(){return m},SP:function(){return d},ST:function(){return _},DecodeError:function(){return g},NormalizeError:function(){return h},PageNotFoundError:function(){return y},MissingStaticPage:function(){return v},MiddlewareNotFoundError:function(){return N},stringifyError:function(){return S}});const n=["CLS","FCP","FID","INP","LCP","TTFB"];function r(b){let C=!1,j;return function(){for(var I=arguments.length,P=new Array(I),R=0;R<I;R++)P[R]=arguments[R];return C||(C=!0,j=b(...P)),j}}const s=/^[a-zA-Z][a-zA-Z\d+\-.]*?:/,a=b=>s.test(b);function i(){const{protocol:b,hostname:C,port:j}=window.location;return b+"//"+C+(j?":"+j:"")}function c(){const{href:b}=window.location,C=i();return b.substring(C.length)}function l(b){return typeof b=="string"?b:b.displayName||b.name||"Unknown"}function u(b){return b.finished||b.headersSent}function f(b){const C=b.split("?");return C[0].replace(/\\/g,"/").replace(/\/\/+/g,"/")+(C[1]?"?"+C.slice(1).join("?"):"")}async function m(b,C){if(process.env.NODE_ENV!=="production"){var j;if((j=b.prototype)!=null&&j.getInitialProps){const R='"'+l(b)+'.getInitialProps()" is defined as an instance method - visit https://nextjs.org/docs/messages/get-initial-props-as-an-instance-method for more information.';throw new Error(R)}}const I=C.res||C.ctx&&C.ctx.res;if(!b.getInitialProps)return C.ctx&&C.Component?{pageProps:await m(C.Component,C.ctx)}:{};const P=await b.getInitialProps(C);if(I&&u(I))return P;if(!P){const R='"'+l(b)+'.getInitialProps()" should resolve to an object. But found "'+P+'" instead.';throw new Error(R)}return process.env.NODE_ENV!=="production"&&Object.keys(P).length===0&&!C.ctx&&console.warn(""+l(b)+" returned an empty object from `getInitialProps`. This de-optimizes and prevents automatic static optimization. https://nextjs.org/docs/messages/empty-object-getInitialProps"),P}const d=typeof performance<"u",_=d&&["mark","measure","getEntriesByName"].every(b=>typeof performance[b]=="function");class g extends Error{}class h extends Error{}class y extends Error{constructor(C){super(),this.code="ENOENT",this.name="PageNotFoundError",this.message="Cannot find module for page: "+C}}class v extends Error{constructor(C,j){super(),this.message="Failed to load static file for page: "+C+" "+j}}class N extends Error{constructor(){super(),this.code="ENOENT",this.message="Cannot find the middleware module"}}function S(b){return JSON.stringify({message:b.message,stack:b.stack})}}(vt)),vt}var Ye={exports:{}},xt={},qn;function qo(){return qn||(qn=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"removeTrailingSlash",{enumerable:!0,get:function(){return t}});function t(n){return n.replace(/\/$/,"")||"/"}}(xt)),xt}var bt={},$n;function _n(){return $n||($n=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"parsePath",{enumerable:!0,get:function(){return t}});function t(n){const r=n.indexOf("#"),s=n.indexOf("?"),a=s>-1&&(r<0||s<r);return a||r>-1?{pathname:n.substring(0,a?s:r),query:a?n.substring(s,r>-1?r:void 0):"",hash:r>-1?n.slice(r):""}:{pathname:n,query:"",hash:""}}}(bt)),bt}var Bn;function pt(){return Bn||(Bn=1,function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"normalizePathTrailingSlash",{enumerable:!0,get:function(){return s}});const n=qo(),r=_n(),s=a=>{if(!a.startsWith("/")||process.env.__NEXT_MANUAL_TRAILING_SLASH)return a;const{pathname:i,query:c,hash:l}=(0,r.parsePath)(a);return process.env.__NEXT_TRAILING_SLASH?/\.[^/]+\/?$/.test(i)?""+(0,n.removeTrailingSlash)(i)+c+l:i.endsWith("/")?""+i+c+l:i+"/"+c+l:""+(0,n.removeTrailingSlash)(i)+c+l};(typeof t.default=="function"||typeof t.default=="object"&&t.default!==null)&&typeof t.default.__esModule>"u"&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)}(Ye,Ye.exports)),Ye.exports}var Ct={},Ze={exports:{}},jt={},Fn;function $o(){return Fn||(Fn=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"pathHasPrefix",{enumerable:!0,get:function(){return n}});const t=_n();function n(r,s){if(typeof r!="string")return!1;const{pathname:a}=(0,t.parsePath)(r);return a===s||a.startsWith(s+"/")}}(jt)),jt}var Hn;function ei(){return Hn||(Hn=1,function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"hasBasePath",{enumerable:!0,get:function(){return s}});const n=$o(),r=process.env.__NEXT_ROUTER_BASEPATH||"";function s(a){return(0,n.pathHasPrefix)(a,r)}(typeof t.default=="function"||typeof t.default=="object"&&t.default!==null)&&typeof t.default.__esModule>"u"&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)}(Ze,Ze.exports)),Ze.exports}var Un;function Bo(){return Un||(Un=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"isLocalURL",{enumerable:!0,get:function(){return r}});const t=mt(),n=ei();function r(s){if(!(0,t.isAbsoluteUrl)(s))return!0;try{const a=(0,t.getLocationOrigin)(),i=new URL(s,a);return i.origin===a&&(0,n.hasBasePath)(i.pathname)}catch{return!1}}}(Ct)),Ct}var St={},It={},Wn;function ti(){return Wn||(Wn=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"getSortedRoutes",{enumerable:!0,get:function(){return n}});class t{insert(s){this._insert(s.split("/").filter(Boolean),[],!1)}smoosh(){return this._smoosh()}_smoosh(s){s===void 0&&(s="/");const a=[...this.children.keys()].sort();this.slugName!==null&&a.splice(a.indexOf("[]"),1),this.restSlugName!==null&&a.splice(a.indexOf("[...]"),1),this.optionalRestSlugName!==null&&a.splice(a.indexOf("[[...]]"),1);const i=a.map(c=>this.children.get(c)._smoosh(""+s+c+"/")).reduce((c,l)=>[...c,...l],[]);if(this.slugName!==null&&i.push(...this.children.get("[]")._smoosh(s+"["+this.slugName+"]/")),!this.placeholder){const c=s==="/"?"/":s.slice(0,-1);if(this.optionalRestSlugName!=null)throw new Error('You cannot define a route with the same specificity as a optional catch-all route ("'+c+'" and "'+c+"[[..."+this.optionalRestSlugName+']]").');i.unshift(c)}return this.restSlugName!==null&&i.push(...this.children.get("[...]")._smoosh(s+"[..."+this.restSlugName+"]/")),this.optionalRestSlugName!==null&&i.push(...this.children.get("[[...]]")._smoosh(s+"[[..."+this.optionalRestSlugName+"]]/")),i}_insert(s,a,i){if(s.length===0){this.placeholder=!1;return}if(i)throw new Error("Catch-all must be the last part of the URL.");let c=s[0];if(c.startsWith("[")&&c.endsWith("]")){let f=function(m,d){if(m!==null&&m!==d)throw new Error("You cannot use different slug names for the same dynamic path ('"+m+"' !== '"+d+"').");a.forEach(_=>{if(_===d)throw new Error('You cannot have the same slug name "'+d+'" repeat within a single dynamic path');if(_.replace(/\W/g,"")===c.replace(/\W/g,""))throw new Error('You cannot have the slug names "'+_+'" and "'+d+'" differ only by non-word symbols within a single dynamic path')}),a.push(d)},l=c.slice(1,-1),u=!1;if(l.startsWith("[")&&l.endsWith("]")&&(l=l.slice(1,-1),u=!0),l.startsWith("...")&&(l=l.substring(3),i=!0),l.startsWith("[")||l.endsWith("]"))throw new Error("Segment names may not start or end with extra brackets ('"+l+"').");if(l.startsWith("."))throw new Error("Segment names may not start with erroneous periods ('"+l+"').");if(i)if(u){if(this.restSlugName!=null)throw new Error('You cannot use both an required and optional catch-all route at the same level ("[...'+this.restSlugName+']" and "'+s[0]+'" ).');f(this.optionalRestSlugName,l),this.optionalRestSlugName=l,c="[[...]]"}else{if(this.optionalRestSlugName!=null)throw new Error('You cannot use both an optional and required catch-all route at the same level ("[[...'+this.optionalRestSlugName+']]" and "'+s[0]+'").');f(this.restSlugName,l),this.restSlugName=l,c="[...]"}else{if(u)throw new Error('Optional route parameters are not yet supported ("'+s[0]+'").');f(this.slugName,l),this.slugName=l,c="[]"}}this.children.has(c)||this.children.set(c,new t),this.children.get(c)._insert(s.slice(1),a,i)}constructor(){this.placeholder=!0,this.children=new Map,this.slugName=null,this.restSlugName=null,this.optionalRestSlugName=null}}function n(r){const s=new t;return r.forEach(a=>s.insert(a)),s.smoosh()}}(It)),It}var Nt={},Vn;function ni(){return Vn||(Vn=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"isDynamicRoute",{enumerable:!0,get:function(){return n}});const t=/\/\[[^/]+?\](?=\/|$)/;function n(r){return t.test(r)}}(Nt)),Nt}var Gn;function ri(){return Gn||(Gn=1,function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(s,a){for(var i in a)Object.defineProperty(s,i,{enumerable:!0,get:a[i]})}t(e,{getSortedRoutes:function(){return n.getSortedRoutes},isDynamicRoute:function(){return r.isDynamicRoute}});const n=ti(),r=ni()}(St)),St}var Pt={},wt={},Kn;function oi(){return Kn||(Kn=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"getRouteMatcher",{enumerable:!0,get:function(){return n}});const t=mt();function n(r){let{re:s,groups:a}=r;return i=>{const c=s.exec(i);if(!c)return!1;const l=f=>{try{return decodeURIComponent(f)}catch{throw new t.DecodeError("failed to decode param")}},u={};return Object.keys(a).forEach(f=>{const m=a[f],d=c[m.pos];d!==void 0&&(u[f]=~d.indexOf("/")?d.split("/").map(_=>l(_)):m.repeat?[l(d)]:l(d))}),u}}}(wt)),wt}var Et={},Rt={},Tt={},Ot={},Xn;function si(){return Xn||(Xn=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"ensureLeadingSlash",{enumerable:!0,get:function(){return t}});function t(n){return n.startsWith("/")?n:"/"+n}}(Ot)),Ot}var At={},Qn;function ai(){return Qn||(Qn=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"isGroupSegment",{enumerable:!0,get:function(){return t}});function t(n){return n[0]==="("&&n.endsWith(")")}}(At)),At}var Yn;function ii(){return Yn||(Yn=1,function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(i,c){for(var l in c)Object.defineProperty(i,l,{enumerable:!0,get:c[l]})}t(e,{normalizeAppPath:function(){return s},normalizeRscPath:function(){return a}});const n=si(),r=ai();function s(i){return(0,n.ensureLeadingSlash)(i.split("/").reduce((c,l,u,f)=>!l||(0,r.isGroupSegment)(l)||l[0]==="@"||(l==="page"||l==="route")&&u===f.length-1?c:c+"/"+l,""))}function a(i,c){return c?i.replace(/\.rsc($|\?)/,"$1"):i}}(Tt)),Tt}var Zn;function ci(){return Zn||(Zn=1,function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(i,c){for(var l in c)Object.defineProperty(i,l,{enumerable:!0,get:c[l]})}t(e,{INTERCEPTION_ROUTE_MARKERS:function(){return r},isInterceptionRouteAppPath:function(){return s},extractInterceptionRouteInformation:function(){return a}});const n=ii(),r=["(..)(..)","(.)","(..)","(...)"];function s(i){return i.split("/").find(c=>r.find(l=>c.startsWith(l)))!==void 0}function a(i){let c,l,u;for(const f of i.split("/"))if(l=r.find(m=>f.startsWith(m)),l){[c,u]=i.split(l,2);break}if(!c||!l||!u)throw new Error(`Invalid interception route: ${i}. Must be in the format /<intercepting route>/(..|...|..)(..)/<intercepted route>`);switch(c=(0,n.normalizeAppPath)(c),l){case"(.)":c==="/"?u=`/${u}`:u=c+"/"+u;break;case"(..)":if(c==="/")throw new Error(`Invalid interception route: ${i}. Cannot use (..) marker at the root level, use (.) instead.`);u=c.split("/").slice(0,-1).concat(u).join("/");break;case"(...)":u="/"+u;break;case"(..)(..)":const f=c.split("/");if(f.length<=2)throw new Error(`Invalid interception route: ${i}. Cannot use (..)(..) marker at the root level or one level up.`);u=f.slice(0,-2).concat(u).join("/");break;default:throw new Error("Invariant: unexpected marker")}return{interceptingRoute:c,interceptedRoute:u}}}(Rt)),Rt}var Mt={},Jn;function li(){return Jn||(Jn=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"escapeStringRegexp",{enumerable:!0,get:function(){return r}});const t=/[|\\{}()[\]^$+*?.-]/,n=/[|\\{}()[\]^$+*?.-]/g;function r(s){return t.test(s)?s.replace(n,"\\$&"):s}}(Mt)),Mt}var er;function ui(){return er||(er=1,function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(h,y){for(var v in y)Object.defineProperty(h,v,{enumerable:!0,get:y[v]})}t(e,{getRouteRegex:function(){return u},getNamedRouteRegex:function(){return _},getNamedMiddlewareRegex:function(){return g}});const n=ci(),r=li(),s=qo(),a="nxtP",i="nxtI";function c(h){const y=h.startsWith("[")&&h.endsWith("]");y&&(h=h.slice(1,-1));const v=h.startsWith("...");return v&&(h=h.slice(3)),{key:h,repeat:v,optional:y}}function l(h){const y=(0,s.removeTrailingSlash)(h).slice(1).split("/"),v={};let N=1;return{parameterizedRoute:y.map(S=>{const b=n.INTERCEPTION_ROUTE_MARKERS.find(j=>S.startsWith(j)),C=S.match(/\[((?:\[.*\])|.+)\]/);if(b&&C){const{key:j,optional:I,repeat:P}=c(C[1]);return v[j]={pos:N++,repeat:P,optional:I},"/"+(0,r.escapeStringRegexp)(b)+"([^/]+?)"}else if(C){const{key:j,repeat:I,optional:P}=c(C[1]);return v[j]={pos:N++,repeat:I,optional:P},I?P?"(?:/(.+?))?":"/(.+?)":"/([^/]+?)"}else return"/"+(0,r.escapeStringRegexp)(S)}).join(""),groups:v}}function u(h){const{parameterizedRoute:y,groups:v}=l(h);return{re:new RegExp("^"+y+"(?:/)?$"),groups:v}}function f(){let h=0;return()=>{let y="",v=++h;for(;v>0;)y+=String.fromCharCode(97+(v-1)%26),v=Math.floor((v-1)/26);return y}}function m(h){let{getSafeRouteKey:y,segment:v,routeKeys:N,keyPrefix:S}=h;const{key:b,optional:C,repeat:j}=c(v);let I=b.replace(/\W/g,"");S&&(I=""+S+I);let P=!1;return(I.length===0||I.length>30)&&(P=!0),isNaN(parseInt(I.slice(0,1)))||(P=!0),P&&(I=y()),S?N[I]=""+S+b:N[I]=""+b,j?C?"(?:/(?<"+I+">.+?))?":"/(?<"+I+">.+?)":"/(?<"+I+">[^/]+?)"}function d(h,y){const v=(0,s.removeTrailingSlash)(h).slice(1).split("/"),N=f(),S={};return{namedParameterizedRoute:v.map(b=>{const C=n.INTERCEPTION_ROUTE_MARKERS.some(I=>b.startsWith(I)),j=b.match(/\[((?:\[.*\])|.+)\]/);return C&&j?m({getSafeRouteKey:N,segment:j[1],routeKeys:S,keyPrefix:y?i:void 0}):j?m({getSafeRouteKey:N,segment:j[1],routeKeys:S,keyPrefix:y?a:void 0}):"/"+(0,r.escapeStringRegexp)(b)}).join(""),routeKeys:S}}function _(h,y){const v=d(h,y);return{...u(h),namedRegex:"^"+v.namedParameterizedRoute+"(?:/)?$",routeKeys:v.routeKeys}}function g(h,y){const{parameterizedRoute:v}=l(h),{catchAll:N=!0}=y;if(v==="/")return{namedRegex:"^/"+(N?".*":"")+"$"};const{namedParameterizedRoute:S}=d(h,!1);let b=N?"(?:(/.*)?)":"";return{namedRegex:"^"+S+b+"$"}}}(Et)),Et}var tr;function di(){return tr||(tr=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"interpolateAs",{enumerable:!0,get:function(){return r}});const t=oi(),n=ui();function r(s,a,i){let c="";const l=(0,n.getRouteRegex)(s),u=l.groups,f=(a!==s?(0,t.getRouteMatcher)(l)(a):"")||i;c=s;const m=Object.keys(u);return m.every(d=>{let _=f[d]||"";const{repeat:g,optional:h}=u[d];let y="["+(g?"...":"")+d+"]";return h&&(y=(_?"":"/")+"["+y+"]"),g&&!Array.isArray(_)&&(_=[_]),(h||d in f)&&(c=c.replace(y,g?_.map(v=>encodeURIComponent(v)).join("/"):encodeURIComponent(_))||"/")})||(c=""),{params:m,result:c}}}(Pt)),Pt}var nr;function fi(){return nr||(nr=1,function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"resolveHref",{enumerable:!0,get:function(){return f}});const n=Do(),r=zo(),s=Ja(),a=mt(),i=pt(),c=Bo(),l=ri(),u=di();function f(m,d,_){let g,h=typeof d=="string"?d:(0,r.formatWithValidation)(d);const y=h.match(/^[a-zA-Z]{1,}:\/\//),v=y?h.slice(y[0].length):h;if((v.split("?")[0]||"").match(/(\/\/|\\)/)){console.error("Invalid href '"+h+"' passed to next/router in page: '"+m.pathname+"'. Repeated forward-slashes (//) or backslashes \\ are not valid in the href.");const S=(0,a.normalizeRepeatedSlashes)(v);h=(y?y[0]:"")+S}if(!(0,c.isLocalURL)(h))return _?[h]:h;try{g=new URL(h.startsWith("#")?m.asPath:m.pathname,"http://n")}catch{g=new URL("/","http://n")}try{const S=new URL(h,g);S.pathname=(0,i.normalizePathTrailingSlash)(S.pathname);let b="";if((0,l.isDynamicRoute)(S.pathname)&&S.searchParams&&_){const j=(0,n.searchParamsToUrlQuery)(S.searchParams),{result:I,params:P}=(0,u.interpolateAs)(S.pathname,S.pathname,j);I&&(b=(0,r.formatWithValidation)({pathname:I,hash:S.hash,query:(0,s.omit)(j,P)}))}const C=S.origin===g.origin?S.href.slice(S.origin.length):S.href;return _?[C,b||C]:C}catch{return _?[h]:h}}(typeof t.default=="function"||typeof t.default=="object"&&t.default!==null)&&typeof t.default.__esModule>"u"&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)}(Xe,Xe.exports)),Xe.exports}var Je={exports:{}},kt={},Dt={},rr;function Fo(){return rr||(rr=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"addPathPrefix",{enumerable:!0,get:function(){return n}});const t=_n();function n(r,s){if(!r.startsWith("/")||!s)return r;const{pathname:a,query:i,hash:c}=(0,t.parsePath)(r);return""+s+a+i+c}}(Dt)),Dt}var or;function mi(){return or||(or=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"addLocale",{enumerable:!0,get:function(){return r}});const t=Fo(),n=$o();function r(s,a,i,c){if(!a||a===i)return s;const l=s.toLowerCase();return!c&&((0,n.pathHasPrefix)(l,"/api")||(0,n.pathHasPrefix)(l,"/"+a.toLowerCase()))?s:(0,t.addPathPrefix)(s,"/"+a)}}(kt)),kt}var sr;function pi(){return sr||(sr=1,function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"addLocale",{enumerable:!0,get:function(){return r}});const n=pt(),r=function(s){for(var a=arguments.length,i=new Array(a>1?a-1:0),c=1;c<a;c++)i[c-1]=arguments[c];return process.env.__NEXT_I18N_SUPPORT?(0,n.normalizePathTrailingSlash)(mi().addLocale(s,...i)):s};(typeof t.default=="function"||typeof t.default=="object"&&t.default!==null)&&typeof t.default.__esModule>"u"&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)}(Je,Je.exports)),Je.exports}var Lt={},ar;function hi(){return ar||(ar=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"RouterContext",{enumerable:!0,get:function(){return r}});const r=se._(x).default.createContext(null);process.env.NODE_ENV!=="production"&&(r.displayName="RouterContext")}(Lt)),Lt}var zt={},ir;function _i(){return ir||(ir=1,function(e){"use client";Object.defineProperty(e,"__esModule",{value:!0});function t(u,f){for(var m in f)Object.defineProperty(u,m,{enumerable:!0,get:f[m]})}t(e,{CacheStates:function(){return s},AppRouterContext:function(){return a},LayoutRouterContext:function(){return i},GlobalLayoutRouterContext:function(){return c},TemplateContext:function(){return l}});const r=se._(x);var s;(function(u){u.LAZY_INITIALIZED="LAZYINITIALIZED",u.DATA_FETCH="DATAFETCH",u.READY="READY"})(s||(s={}));const a=r.default.createContext(null),i=r.default.createContext(null),c=r.default.createContext(null),l=r.default.createContext(null);process.env.NODE_ENV!=="production"&&(a.displayName="AppRouterContext",i.displayName="LayoutRouterContext",c.displayName="GlobalLayoutRouterContext",l.displayName="TemplateContext")}(zt)),zt}var et={exports:{}},tt={exports:{}},cr;function Ho(){return cr||(cr=1,function(e,t){Object.defineProperty(t,"__esModule",{value:!0});function n(a,i){for(var c in i)Object.defineProperty(a,c,{enumerable:!0,get:i[c]})}n(t,{requestIdleCallback:function(){return r},cancelIdleCallback:function(){return s}});const r=typeof self<"u"&&self.requestIdleCallback&&self.requestIdleCallback.bind(window)||function(a){let i=Date.now();return self.setTimeout(function(){a({didTimeout:!1,timeRemaining:function(){return Math.max(0,50-(Date.now()-i))}})},1)},s=typeof self<"u"&&self.cancelIdleCallback&&self.cancelIdleCallback.bind(window)||function(a){return clearTimeout(a)};(typeof t.default=="function"||typeof t.default=="object"&&t.default!==null)&&typeof t.default.__esModule>"u"&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)}(tt,tt.exports)),tt.exports}var lr;function gi(){return lr||(lr=1,function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"useIntersection",{enumerable:!0,get:function(){return u}});const n=x,r=Ho(),s=typeof IntersectionObserver=="function",a=new Map,i=[];function c(f){const m={root:f.root||null,margin:f.rootMargin||""},d=i.find(y=>y.root===m.root&&y.margin===m.margin);let _;if(d&&(_=a.get(d),_))return _;const g=new Map,h=new IntersectionObserver(y=>{y.forEach(v=>{const N=g.get(v.target),S=v.isIntersecting||v.intersectionRatio>0;N&&S&&N(S)})},f);return _={id:m,observer:h,elements:g},i.push(m),a.set(m,_),_}function l(f,m,d){const{id:_,observer:g,elements:h}=c(d);return h.set(f,m),g.observe(f),function(){if(h.delete(f),g.unobserve(f),h.size===0){g.disconnect(),a.delete(_);const v=i.findIndex(N=>N.root===_.root&&N.margin===_.margin);v>-1&&i.splice(v,1)}}}function u(f){let{rootRef:m,rootMargin:d,disabled:_}=f;const g=_||!s,[h,y]=(0,n.useState)(!1),v=(0,n.useRef)(null),N=(0,n.useCallback)(b=>{v.current=b},[]);(0,n.useEffect)(()=>{if(s){if(g||h)return;const b=v.current;if(b&&b.tagName)return l(b,j=>j&&y(j),{root:m==null?void 0:m.current,rootMargin:d})}else if(!h){const b=(0,r.requestIdleCallback)(()=>y(!0));return()=>(0,r.cancelIdleCallback)(b)}},[g,d,m,h,v.current]);const S=(0,n.useCallback)(()=>{y(!1)},[]);return[N,h,S]}(typeof t.default=="function"||typeof t.default=="object"&&t.default!==null)&&typeof t.default.__esModule>"u"&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)}(et,et.exports)),et.exports}var nt={exports:{}},rt={exports:{}},qt={},ur;function yi(){return ur||(ur=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"normalizeLocalePath",{enumerable:!0,get:function(){return t}});function t(n,r){let s;const a=n.split("/");return(r||[]).some(i=>a[1]&&a[1].toLowerCase()===i.toLowerCase()?(s=i,a.splice(1,1),n=a.join("/")||"/",!0):!1),{pathname:n,detectedLocale:s}}}(qt)),qt}var dr;function vi(){return dr||(dr=1,function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"normalizeLocalePath",{enumerable:!0,get:function(){return n}});const n=(r,s)=>process.env.__NEXT_I18N_SUPPORT?yi().normalizeLocalePath(r,s):{pathname:r,detectedLocale:void 0};(typeof t.default=="function"||typeof t.default=="object"&&t.default!==null)&&typeof t.default.__esModule>"u"&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)}(rt,rt.exports)),rt.exports}var ot={exports:{}},$t={},fr;function xi(){return fr||(fr=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"detectDomainLocale",{enumerable:!0,get:function(){return t}});function t(n,r,s){if(n){s&&(s=s.toLowerCase());for(const c of n){var a,i;const l=(a=c.domain)==null?void 0:a.split(":")[0].toLowerCase();if(r===l||s===c.defaultLocale.toLowerCase()||(i=c.locales)!=null&&i.some(u=>u.toLowerCase()===s))return c}}}}($t)),$t}var mr;function bi(){return mr||(mr=1,function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"detectDomainLocale",{enumerable:!0,get:function(){return n}});const n=function(){for(var r=arguments.length,s=new Array(r),a=0;a<r;a++)s[a]=arguments[a];if(process.env.__NEXT_I18N_SUPPORT)return xi().detectDomainLocale(...s)};(typeof t.default=="function"||typeof t.default=="object"&&t.default!==null)&&typeof t.default.__esModule>"u"&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)}(ot,ot.exports)),ot.exports}var pr;function Ci(){return pr||(pr=1,function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"getDomainLocale",{enumerable:!0,get:function(){return s}});const n=pt(),r=process.env.__NEXT_ROUTER_BASEPATH||"";function s(a,i,c,l){if(process.env.__NEXT_I18N_SUPPORT){const u=vi().normalizeLocalePath,f=bi().detectDomainLocale,m=i||u(a,c).detectedLocale,d=f(l,void 0,m);if(d){const _="http"+(d.http?"":"s")+"://",g=m===d.defaultLocale?"":"/"+m;return""+_+d.domain+(0,n.normalizePathTrailingSlash)(""+r+g+a)}return!1}else return!1}(typeof t.default=="function"||typeof t.default=="object"&&t.default!==null)&&typeof t.default.__esModule>"u"&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)}(nt,nt.exports)),nt.exports}var st={exports:{}},hr;function ji(){return hr||(hr=1,function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"addBasePath",{enumerable:!0,get:function(){return a}});const n=Fo(),r=pt(),s=process.env.__NEXT_ROUTER_BASEPATH||"";function a(i,c){return(0,r.normalizePathTrailingSlash)(process.env.__NEXT_MANUAL_CLIENT_BASE_PATH&&!c?i:(0,n.addPathPrefix)(i,s))}(typeof t.default=="function"||typeof t.default=="object"&&t.default!==null)&&typeof t.default.__esModule>"u"&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)}(st,st.exports)),st.exports}var at={exports:{}},_r;function Si(){return _r||(_r=1,function(e,t){Object.defineProperty(t,"__esModule",{value:!0});function n(m,d){for(var _ in d)Object.defineProperty(m,_,{enumerable:!0,get:d[_]})}n(t,{PrefetchKind:function(){return f},ACTION_REFRESH:function(){return r},ACTION_NAVIGATE:function(){return s},ACTION_RESTORE:function(){return a},ACTION_SERVER_PATCH:function(){return i},ACTION_PREFETCH:function(){return c},ACTION_FAST_REFRESH:function(){return l},ACTION_SERVER_ACTION:function(){return u}});const r="refresh",s="navigate",a="restore",i="server-patch",c="prefetch",l="fast-refresh",u="server-action";var f;(function(m){m.AUTO="auto",m.FULL="full",m.TEMPORARY="temporary"})(f||(f={})),(typeof t.default=="function"||typeof t.default=="object"&&t.default!==null)&&typeof t.default.__esModule>"u"&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)}(at,at.exports)),at.exports}(function(e,t){"use client";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return C}});const r=se._(x),s=fi(),a=Bo(),i=zo(),c=mt(),l=pi(),u=hi(),f=_i(),m=gi(),d=Ci(),_=ji(),g=Si(),h=new Set;function y(j,I,P,R,O,z){if(typeof window>"u"||!z&&!(0,a.isLocalURL)(I))return;if(!R.bypassPrefetchedCheck){const T=typeof R.locale<"u"?R.locale:"locale"in j?j.locale:void 0,M=I+"%"+P+"%"+T;if(h.has(M))return;h.add(M)}const E=z?j.prefetch(I,O):j.prefetch(I,P,R);Promise.resolve(E).catch(T=>{if(process.env.NODE_ENV!=="production")throw T})}function v(j){const P=j.currentTarget.getAttribute("target");return P&&P!=="_self"||j.metaKey||j.ctrlKey||j.shiftKey||j.altKey||j.nativeEvent&&j.nativeEvent.which===2}function N(j,I,P,R,O,z,E,T,M,w){const{nodeName:k}=j.currentTarget;if(k.toUpperCase()==="A"&&(v(j)||!M&&!(0,a.isLocalURL)(P)))return;j.preventDefault();const $=()=>{const W=E??!0;"beforePopState"in I?I[O?"replace":"push"](P,R,{shallow:z,locale:T,scroll:W}):I[O?"replace":"push"](R||P,{forceOptimisticNavigation:!w,scroll:W})};M?r.default.startTransition($):$()}function S(j){return typeof j=="string"?j:(0,i.formatUrl)(j)}const C=r.default.forwardRef(function(I,P){let R;const{href:O,as:z,children:E,prefetch:T=null,passHref:M,replace:w,shallow:k,scroll:q,locale:$,onClick:W,onMouseEnter:Y,onTouchStart:Z,legacyBehavior:re=!1,...Vs}=I;R=E,re&&(typeof R=="string"||typeof R=="number")&&(R=r.default.createElement("a",null,R));const V=r.default.useContext(u.RouterContext),Gs=r.default.useContext(f.AppRouterContext),ce=V??Gs,le=!V,Ae=T!==!1,Ve=T===null?g.PrefetchKind.AUTO:g.PrefetchKind.FULL;if(process.env.NODE_ENV!=="production"){let A=function(D){return new Error("Failed prop type: The prop `"+D.key+"` expects a "+D.expected+" in `<Link>`, but got `"+D.actual+"` instead."+(typeof window<"u"?`
2
+ Open your browser's console to view the Component stack trace.`:""))};Object.keys({href:!0}).forEach(D=>{if(D==="href"&&(I[D]==null||typeof I[D]!="string"&&typeof I[D]!="object"))throw A({key:D,expected:"`string` or `object`",actual:I[D]===null?"null":typeof I[D]})}),Object.keys({as:!0,replace:!0,scroll:!0,shallow:!0,passHref:!0,prefetch:!0,locale:!0,onClick:!0,onMouseEnter:!0,onTouchStart:!0,legacyBehavior:!0}).forEach(D=>{const de=typeof I[D];if(D==="as"){if(I[D]&&de!=="string"&&de!=="object")throw A({key:D,expected:"`string` or `object`",actual:de})}else if(D==="locale"){if(I[D]&&de!=="string")throw A({key:D,expected:"`string`",actual:de})}else if(D==="onClick"||D==="onMouseEnter"||D==="onTouchStart"){if(I[D]&&de!=="function")throw A({key:D,expected:"`function`",actual:de})}else if((D==="replace"||D==="scroll"||D==="shallow"||D==="passHref"||D==="prefetch"||D==="legacyBehavior")&&I[D]!=null&&de!=="boolean")throw A({key:D,expected:"`boolean`",actual:de})});const Rn=r.default.useRef(!1);I.prefetch&&!Rn.current&&!le&&(Rn.current=!0,console.warn("Next.js auto-prefetches automatically based on viewport. The prefetch attribute is no longer needed. More: https://nextjs.org/docs/messages/prefetch-true-deprecated"))}if(process.env.NODE_ENV!=="production"&&le&&!z){let A;if(typeof O=="string"?A=O:typeof O=="object"&&typeof O.pathname=="string"&&(A=O.pathname),A&&A.split("/").some(je=>je.startsWith("[")&&je.endsWith("]")))throw new Error("Dynamic href `"+A+"` found in <Link> while using the `/app` router, this is not supported. Read more: https://nextjs.org/docs/messages/app-dir-dynamic-href")}const{href:ue,as:J}=r.default.useMemo(()=>{if(!V){const je=S(O);return{href:je,as:z?S(z):je}}const[A,Me]=(0,s.resolveHref)(V,O,!0);return{href:A,as:z?(0,s.resolveHref)(V,z):Me||A}},[V,O,z]),In=r.default.useRef(ue),Nn=r.default.useRef(J);let K;if(re)if(process.env.NODE_ENV==="development"){W&&console.warn('"onClick" was passed to <Link> with `href` of `'+O+'` but "legacyBehavior" was set. The legacy behavior requires onClick be set on the child of next/link'),Y&&console.warn('"onMouseEnter" was passed to <Link> with `href` of `'+O+'` but "legacyBehavior" was set. The legacy behavior requires onMouseEnter be set on the child of next/link');try{K=r.default.Children.only(R)}catch{throw R?new Error("Multiple children were passed to <Link> with `href` of `"+O+"` but only one child is supported https://nextjs.org/docs/messages/link-multiple-children"+(typeof window<"u"?`
3
+ Open your browser's console to view the Component stack trace.`:"")):new Error("No children were passed to <Link> with `href` of `"+O+"` but one child is required https://nextjs.org/docs/messages/link-no-children")}}else K=r.default.Children.only(R);else if(process.env.NODE_ENV==="development"&&(R==null?void 0:R.type)==="a")throw new Error(`Invalid <Link> with <a> child. Please remove <a> or use <Link legacyBehavior>.
4
+ Learn more: https://nextjs.org/docs/messages/invalid-new-link-with-extra-anchor`);const Ce=re?K&&typeof K=="object"&&K.ref:P,[Pn,wn,En]=(0,m.useIntersection)({rootMargin:"200px"}),Ks=r.default.useCallback(A=>{(Nn.current!==J||In.current!==ue)&&(En(),Nn.current=J,In.current=ue),Pn(A),Ce&&(typeof Ce=="function"?Ce(A):typeof Ce=="object"&&(Ce.current=A))},[J,Ce,ue,En,Pn]);r.default.useEffect(()=>{process.env.NODE_ENV==="production"&&ce&&(!wn||!Ae||y(ce,ue,J,{locale:$},{kind:Ve},le))},[J,ue,wn,$,Ae,V==null?void 0:V.locale,ce,le,Ve]);const Ge={ref:Ks,onClick(A){if(process.env.NODE_ENV!=="production"&&!A)throw new Error('Component rendered inside next/link has to pass click event to "onClick" prop.');!re&&typeof W=="function"&&W(A),re&&K.props&&typeof K.props.onClick=="function"&&K.props.onClick(A),ce&&(A.defaultPrevented||N(A,ce,ue,J,w,k,q,$,le,Ae))},onMouseEnter(A){!re&&typeof Y=="function"&&Y(A),re&&K.props&&typeof K.props.onMouseEnter=="function"&&K.props.onMouseEnter(A),ce&&((!Ae||process.env.NODE_ENV==="development")&&le||y(ce,ue,J,{locale:$,priority:!0,bypassPrefetchedCheck:!0},{kind:Ve},le))},onTouchStart(A){!re&&typeof Z=="function"&&Z(A),re&&K.props&&typeof K.props.onTouchStart=="function"&&K.props.onTouchStart(A),ce&&(!Ae&&le||y(ce,ue,J,{locale:$,priority:!0,bypassPrefetchedCheck:!0},{kind:Ve},le))}};if((0,c.isAbsoluteUrl)(J))Ge.href=J;else if(!re||M||K.type==="a"&&!("href"in K.props)){const A=typeof $<"u"?$:V==null?void 0:V.locale,Me=(V==null?void 0:V.isLocaleDomain)&&(0,d.getDomainLocale)(J,A,V==null?void 0:V.locales,V==null?void 0:V.domainLocales);Ge.href=Me||(0,_.addBasePath)((0,l.addLocale)(J,A,V==null?void 0:V.defaultLocale))}return re?r.default.cloneElement(K,Ge):r.default.createElement("a",{...Vs,...Ge},R)});(typeof t.default=="function"||typeof t.default=="object"&&t.default!==null)&&typeof t.default.__esModule>"u"&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)})(Yt,Yt.exports);var Ii=Yt.exports,Ni=Ii;const te=hn(Ni),Pi=e=>{const t=e.getBlocksAsArray(),n=[];return t.forEach(r=>{const s=r.getType(),a=r.getText();let i;const c=r.getInlineStyleAt(0).toArray();c.length>0&&(i=c.map(u=>{switch(u){case"BOLD":return"font-weight: bold;";case"ITALIC":return"font-style: italic;";case"UNDERLINE":return"text-decoration: underline;";default:return""}}).join(" "));const l={type:"p",text:a,...i&&{styleText:i}};switch(s){case"header-one":l.type="h1";break;case"header-two":l.type="h2";break;case"header-three":l.type="h3";break;case"unordered-list-item":l.type="li";break;case"ordered-list-item":l.type="li";break;case"blockquote":l.type="blockquote";break;case"code-block":l.type="pre";break;default:l.type="p"}n.push(l)}),n},wi=(e,t,n)=>{e.findEntityRanges(r=>{const s=r.getEntity();return s===null?!1:n.getEntity(s).getType()==="LINK"},t)},Zt=e=>{const t=new fe.CompositeDecorator([{strategy:wi,component:te}]),n=fe.convertFromRaw(e);return fe.EditorState.createWithContent(n,t)},Ei=e=>fe.convertFromRaw(e),Jt=fe.DefaultDraftBlockRenderMap.set("unstyled",{element:"div",aliasedElements:["div"]}),Ri=Object.freeze(Object.defineProperty({__proto__:null,CREATE_CONTENT:Zt,EXTENDED_BLOCK_RENDER_MAP:Jt,GET_CONTENT_STATE:Ei,convertDraftToHTML:Pi},Symbol.toStringTag,{value:"Module"})),dt={"responsive-mobile-flex":"_responsive-mobile-flex_t5bry_2","responsive-desktop-flex":"_responsive-desktop-flex_t5bry_13","responsive-mobile-block":"_responsive-mobile-block_t5bry_24","responsive-desktop-block":"_responsive-desktop-block_t5bry_35"},Ti=({slug:e,data:t,SectionZone:n,COMMON_PAGE_COLUMN_GAP:r})=>{const s=t==null?void 0:t.find(f=>{var m,d,_,g;return((d=(m=f.config)==null?void 0:m.responsive)==null?void 0:d.deviceType)==="desktop"&&((g=(_=f.config)==null?void 0:_.seo)==null?void 0:g.slug)===e}),a=s==null?void 0:s.config.responsive.gapCustom,i=s==null?void 0:s.config.responsive.gapSections,c=t==null?void 0:t.find(f=>{var m,d,_,g;return((d=(m=f.config)==null?void 0:m.responsive)==null?void 0:d.deviceType)==="mobile"&&((g=(_=f.config)==null?void 0:_.seo)==null?void 0:g.slug)===e}),l=c==null?void 0:c.config.responsive.gapCustom,u=c==null?void 0:c.config.responsive.gapSections;return o.jsxs(o.Fragment,{children:[o.jsx(p.Utils.Column,{gap:a&&i?i:r,className:p.helpers.classNameConcat(dt["responsive-desktop-flex"],"utils-column-modifier"),children:o.jsx(n,{data:(s==null?void 0:s.sections)??[]})}),o.jsx(p.Utils.Column,{gap:l&&u?u:r,className:p.helpers.classNameConcat(dt["responsive-mobile-flex"],"utils-column-modifier"),children:o.jsx(n,{data:(c==null?void 0:c.sections)??[]})})]})},Ie=e=>({centro:"center",esquerda:"start",direita:"end"})[e],Oi=({expanded:e,content:t})=>o.jsxs("details",{open:e,children:[t.textStructureReduced?o.jsx("summary",{onClick:n=>n.preventDefault(),children:o.jsx(fe.Editor,{editorKey:"draft-editor-1",blockRenderMap:Jt,editorState:t!=null&&t.textStructureReduced?Zt(JSON.parse(t.textStructureReduced)):fe.EditorState.createEmpty(),onChange:()=>null,readOnly:!0})}):o.jsx(o.Fragment,{}),t.showTextStructureExpander&&t.textStructure?o.jsx(o.Fragment,{children:o.jsx(fe.Editor,{editorKey:"draft-editor-1",blockRenderMap:Jt,editorState:t.textStructure?Zt(JSON.parse(t.textStructure)):fe.EditorState.createEmpty(),onChange:()=>null,readOnly:!0})}):o.jsx(o.Fragment,{})]}),Ai={"draftjs-text-modifier":"_draftjs-text-modifier_1itwm_2"},Mi="_textContentWrapper_1bigo_5",ki="_textContentSection_1bigo_13",en={"link-modifier":"_link-modifier_1bigo_1",textContentWrapper:Mi,textContentSection:ki},Di="_link_w24h0_1",Li="_wrapper_w24h0_98",zi="_text_w24h0_106",Bt={link:Di,wrapper:Li,text:zi},Oe=({children:e,adornments:t,className:n,disableUnderline:r,href:s,mode:a,size:i,title:c,onClick:l,disablePadding:u,...f})=>{const m=p.helpers.ValidateProp({fieldTypes:ze.SizesSmallExtended,property:i,fallback:"medium"}),d=p.helpers.ValidateProp({fieldTypes:ze.Mode,property:a,fallback:"default"});return o.jsx(te,{...f,className:p.helpers.classNameConcat(Bt.link,n),href:s&&s.length>0?s:"#","data-size":m,"data-variant":d,title:c||"NextLink","data-disable-underline":r??!1,"data-disable-padding":u??!0,children:o.jsxs("div",{className:Bt.wrapper,onClick:l,children:[t==null?void 0:t.start,o.jsx("p",{className:Bt.text,"data-size":m,children:e}),t==null?void 0:t.end]})})},gn=({data:e})=>{var r;const[t,n]=x.useState(!1);return o.jsx(p.TextStructure.Root,{layoutProps:{textRow:{alignContent:Ie(e.textStructureAlignment),alignItems:Ie(e.textStructureAlignment)},columnWrapper:{alignContent:Ie(e.textStructureAlignment),alignItems:Ie(e.textStructureAlignment)}},adornment:{bottom:e.showTextStructureExpander&&e.textStructure?o.jsx(p.Button,{variant:"tertiary",adornment:{end:o.jsx(p.Icon,{name:t?"arrow-up":"arrow-down"})},onClick:()=>n(s=>!s),size:"small",children:t?"Ver Menos":"Ver Mais"}):o.jsx(o.Fragment,{})},children:o.jsxs(p.Utils.Column,{className:en.textContentWrapper,style:{alignItems:Ie(e.textStructureAlignment)},children:[o.jsx(p.TextStructure.DivWrapper,{style:{textAlign:Ie(e.textStructureAlignment)},mode:e.textStructureMode??"default",className:Ai["draftjs-text-modifier"],children:e.textStructureReduced?o.jsx(Oi,{content:e,expanded:t}):o.jsx(o.Fragment,{})}),e.textStructureButtonLabel?o.jsx(Oe,{mode:e.textStructureMode??"default",href:e.textStructureButtonHref??"#",size:e.textStructureButtonSize,className:en["link-modifier"],adornments:(r=e.textStructureButtonIcon)!=null&&r.length&&e.enableIcon?{end:o.jsx(p.Icon,{name:e.textStructureButtonIcon})}:void 0,children:e.textStructureButtonLabel}):o.jsx(o.Fragment,{})]})})},qi=e=>({centro:{verticalAlignment:"center",horizontalAlignment:"center"},"centro-esquerda":{verticalAlignment:"center",horizontalAlignment:"start"},"centro-direita":{verticalAlignment:"center",horizontalAlignment:"end"},"superior-centro":{verticalAlignment:"start",horizontalAlignment:"center"},"superior-esquerda":{verticalAlignment:"start",horizontalAlignment:"start"},"superior-direita":{verticalAlignment:"start",horizontalAlignment:"end"},"inferior-centro":{verticalAlignment:"end",horizontalAlignment:"center"},"inferior-esquerda":{verticalAlignment:"end",horizontalAlignment:"start"},"inferior-direita":{verticalAlignment:"end",horizontalAlignment:"end"}})[e],gr=e=>({centro:"center",esquerda:"start",direita:"end"})[e],$i="_image_lypfr_1",Bi={image:$i},Fi=({alt:e,className:t,objectFit:n,...r})=>{const{nextimage:s}=ae();return o.jsx(s,{quality:90,...r,alt:e??"",className:p.helpers.classNameConcat(Bi.image,t),"data-object-fit":n??"cover"})},Hi=({videoRef:e,...t})=>o.jsx("video",{...t,ref:e,children:o.jsx("track",{kind:"captions"})}),ie={Image:Fi,Video:Hi},tn=({dateEnd:e,dateInit:t,TIME_ZONE:n="America/Sao_Paulo",...r})=>{const[s,a]=x.useState(Mo(new Tn.TZDate(Date.now(),n),new Tn.TZDate(e,n))),[i,c]=x.useState(!1);x.useEffect(()=>{i||c(!0);const u=setInterval(()=>{if(s<=0){clearInterval(u);return}a(s-1e3)},1e3);return()=>{clearInterval(u)}},[s,a,i]);const l=Le(s,"days");return i&&s>0?o.jsxs(p.Timer.Root,{...r,children:[l?o.jsxs(o.Fragment,{children:[o.jsx(p.Timer.Digit,{label:"dias",value:l}),o.jsx(p.Timer.Separator,{})]}):null,o.jsx(p.Timer.Digit,{label:"horas",value:Le(s,"hours")}),o.jsx(p.Timer.Separator,{}),o.jsx(p.Timer.Digit,{label:"min",value:Le(s,"minutes")}),o.jsx(p.Timer.Separator,{}),o.jsx(p.Timer.Digit,{label:"segs",value:Le(s),suppressHydrationWarning:!0})]}):o.jsx(o.Fragment,{})},yr={"content-modifier":"_content-modifier_16y4u_5","banner-image-wrapper-modifier":"_banner-image-wrapper-modifier_16y4u_13"},vr=({data:e,videoUrl:t,priority:n,videoRef:r,...s})=>{const{video:a,image:i,imageHref:c,imageOpacity:l,altImage:u,backgroundColor:f,position:m,contentAlignment:d,showTimer:_,contentOrder:g,timerMode:h,timerEnd:y,timerInit:v,textStructure:N,textStructureReduced:S}=e.banner,b=(c==null?void 0:c.trim())||(i==null?void 0:i.trim())||null,{nextimage:C}=ae();return o.jsxs(p.Banner.Container,{...s,children:[o.jsxs(p.Banner.ImageWrapper,{className:yr["banner-image-wrapper-modifier"],style:l?{background:f}:void 0,children:[a&&o.jsx(ie.Video,{videoRef:r,src:t,autoPlay:n,loop:!0,playsInline:!0,muted:!0}),b&&!(a!=null&&a.length)&&o.jsx(C,{src:b,width:"1920",height:"1080",alt:u??i??"",...n?{priority:n}:{},style:l?{opacity:"0"}:void 0}),!i&&!(a!=null&&a.length)&&o.jsx("div",{style:{background:f}})]}),_||S||N?o.jsx(p.Banner.Slot,{...qi(m??"centro"),className:yr["content-modifier"],style:{textAlign:gr(d)},children:o.jsxs(p.Utils.Column,{gap:"16px",alignItems:gr(d),children:[_&&g==="timer-first"&&o.jsx(tn,{mode:h??"default",size:"small",dateEnd:y?new Date(y):new Date,dateInit:v?new Date(v):new Date}),o.jsx(gn,{data:e.banner}),_&&g!=="timer-first"&&o.jsx(tn,{mode:h??"default",size:"small",dateEnd:y?new Date(y):new Date,dateInit:v?new Date(v):new Date})]})}):o.jsx(o.Fragment,{})]})},Ui={"observer-wrapper":"_observer-wrapper_r43gk_1"};function Wi(e,t,n){const[r,s]=x.useState(!1),{threshold:a}=n||{};return x.useEffect(()=>{if(!e.current)return()=>{};let i=null;const c=new IntersectionObserver(([l])=>{if(n!=null&&n.delay){i&&clearTimeout(i),i=setTimeout(()=>{s(l.isIntersecting),t&&l.isIntersecting&&c.unobserve(e.current)},n.delay);return}s(l.isIntersecting),t&&l.isIntersecting&&c.unobserve(e.current)},{threshold:a||1});return c.observe(e.current),()=>{c.disconnect()}},[e]),r}const yn=({children:e,eventData:t,observerOptions:n,callBackWhenVisible:r,stopOnIntersection:s=!0,className:a,...i})=>{const c=x.useRef(null),l=Wi(c,s,n),{sendDataLayerEvent:u}=F();return x.useEffect(()=>{l&&(typeof r=="function"&&r(),t&&u({...t}))},[l]),o.jsx("div",{...i,ref:c,className:p.helpers.classNameConcat(Ui["observer-wrapper"],a),children:e})},Uo=({data:e,className:t,priority:n,creative:r,...s})=>{const{handleSelectPromotionEvent:a,currentLocalRef:i}=F(),{banner:{promotion_name:c},index:l,componentIndex:u}=e,f=typeof l=="number"?`:${l+1}`:"",m={creative_name:r,creative_slot:`${r}-${i.current}:${u+1}${f}`,promotion_id:e.banner.href,promotion_name:c},d=x.useRef(null),_=x.useMemo(()=>{var h;if((h=e.banner.video)!=null&&h.includes("player.vimeo")){const y=e.banner.video.split("?")[1],v=y==null?void 0:y.split("&"),N=v==null?void 0:v.filter(b=>b.includes("loc")||b.includes("signature")||b.includes("user_id")),S=N==null?void 0:N.join("&");return`${e.banner.video.split("?")[0]}?${S}`}return e.banner.video},[e]),g=()=>{var h;(h=d.current)!=null&&h.paused&&d.current.play()};return o.jsx(yn,{eventData:{functionKey:"readyEvents",data:{event:"view_promotion",readyData:{ecommerce:{...m,index:l}}}},observerOptions:{delay:100,..._&&{threshold:.1}},..._&&{callBackWhenVisible:g},children:e.banner.href?o.jsx(te,{href:e.banner.href,onClick:()=>{a({updatePromotionRef:!0,promotion:m,index:l})},children:o.jsx(vr,{data:e,videoUrl:_,priority:n,videoRef:d,...s})}):o.jsx(vr,{data:e,videoUrl:_,priority:n,videoRef:d,...s})})},Wo=e=>o.jsx(Uo,{...e}),Vi={Banner:Wo},ke={"row-controller-modifier":"_row-controller-modifier_co4wb_1","carousel-title-modifier":"_carousel-title-modifier_co4wb_18","carousel-modifier":"_carousel-modifier_co4wb_22","card-modifier":"_card-modifier_co4wb_26"},Gi=({data:e,CONSTANTS:t})=>{var u;const{isMobile:n}=pe(),r=e.config.size??"medium",s=e.config.disableCarouselMobile??!1,{initialize:a,pagination:i,controller:c,itemsStyles:l}=p.Carousel.useCarousel({itemsPerPage:n?e==null?void 0:e.config.slidesPerViewMobile:(u=e==null?void 0:e.config)==null?void 0:u.slidesPerView,gap:n?e.config.gapMobile:e.config.gap,direction:n&&s?"column":"row"});return o.jsx(p.Utils.Column,{style:{width:r==="small"?"70%":"100%"},alignContent:"center",justifyContent:"center",alignItems:"center",children:o.jsxs(p.Carousel.Root,{innerRef:f=>{a(f)},className:p.helpers.classNameConcat(ke["carousel-modifier"],"common-section"),children:[r==="medium"?o.jsxs(p.TextStructure.Root,{children:[o.jsx(p.TextStructure.DivWrapper,{className:ke["carousel-title-modifier"],children:o.jsx("h2",{className:"typography-style-body-lg",children:t.BENNEFITS_BAR_TITLE})}),n&&i.totalPages>1?o.jsx(p.Carousel.Controller,{className:ke["row-controller-modifier"],children:o.jsxs(p.Carousel.Arrows,{children:[o.jsx(p.Button,{variant:"tertiary",onClick:()=>c==null?void 0:c.prevPage(),adornment:{start:o.jsx(p.Icon,{name:t.ICONS.arrow_left})}}),o.jsx(p.Button,{variant:"tertiary",onClick:()=>c==null?void 0:c.nextPage(),adornment:{start:o.jsx(p.Icon,{name:t.ICONS.arrow_right})}})]})}):o.jsx(o.Fragment,{})]}):o.jsx(o.Fragment,{}),o.jsx(p.Carousel.Body,{children:e.bennefit.map((f,m)=>o.jsx(p.Carousel.Item,{className:ke["card-modifier"],style:l,children:o.jsx(p.Card,{stroke:!0,padding:"small",children:o.jsx(p.TextStructure.Root,{layoutProps:{columnWrapper:{alignContent:"start",alignItems:"start",justifyContent:"start"},textRow:{alignContent:"center",alignItems:"center",justifyContent:"center"}},adornment:{[r==="medium"?"top":"start"]:o.jsx(p.Icon,{name:f.icon,size:r==="medium"?"medium":"small"})},children:o.jsxs(p.TextStructure.DivWrapper,{alignItems:"start",children:[o.jsx("h3",{className:"typography-style-body-md",children:f.title}),f.subtitle&&f.subtitle.length?o.jsx("p",{className:"typography-style-body-xs",children:f.subtitle}):o.jsx(o.Fragment,{})]})})})},`bennefit=${m}`))}),!n&&i.totalPages>1?o.jsxs(p.Carousel.Controller,{className:ke["row-controller-modifier"],children:[o.jsxs(p.Carousel.Arrows,{children:[o.jsx(p.Button,{variant:"tertiary",onClick:()=>c==null?void 0:c.prevPage(),adornment:{start:o.jsx(p.Icon,{name:t.ICONS.arrow_left})}}),o.jsx(p.Button,{variant:"tertiary",onClick:()=>c==null?void 0:c.nextPage(),adornment:{start:o.jsx(p.Icon,{name:t.ICONS.arrow_right})}})]}),o.jsx(p.Carousel.Bullets,{page:i.currentPage,total:i.totalPages,onBulletClick:f=>c==null?void 0:c.navigateTo(f)})]}):o.jsx(o.Fragment,{})]})})},Ki=({data:e})=>o.jsx("div",{className:p.helpers.classNameConcat(en.textContentSection),style:e.borderTop?{borderTop:"none"}:void 0,children:o.jsx(gn,{data:e})}),Xi={Banner:Vi,BannerSection:Uo,BennefitsBarSection:Gi,DataScreening:Ti,SingleBannerSection:Wo,TextContentSection:Ki,TextContent:gn},Qi={Components:Xi,helpers:Ri},ee={"add-to-cart--card":"_add-to-cart--card_4v41y_1","add-to-cart--card--content":"_add-to-cart--card--content_4v41y_7","add-to-cart--card--name":"_add-to-cart--card--name_4v41y_16","add-to-cart--card--price-quantity":"_add-to-cart--card--price-quantity_4v41y_46","add-to-cart--card--style-size":"_add-to-cart--card--style-size_4v41y_53","add-to-cart--content":"_add-to-cart--content_4v41y_71","add-to-cart--content--title":"_add-to-cart--content--title_4v41y_78","add-to-cart--footer":"_add-to-cart--footer_4v41y_102","add-to-cart--footer--total":"_add-to-cart--footer--total_4v41y_108","add-to-cart--items":"_add-to-cart--items_4v41y_148","add-to-cart--tooltip":"_add-to-cart--tooltip_4v41y_198","add-to-cart__modal":"_add-to-cart__modal_4v41y_211"},Vo=({brand:e,className:t,name:n,...r})=>o.jsxs("div",{...r,className:p.helpers.classNameConcat(ee["add-to-cart--card--name"],t),children:[o.jsx(p.Tag,{style:{textTransform:"uppercase"},size:"small",variant:"quaternary",title:e,children:e}),o.jsx(p.TextStructure.Root,{children:o.jsx(p.TextStructure.DivWrapper,{alignContent:"flex-start",alignItems:"flex-start",children:o.jsx("p",{className:"typography-style-body-md",children:n})})})]});Vo.displayName="AddToCart.Card.Name";const Go=({className:e,listPrice:t,price:n,quantity:r,productId:s,...a})=>{const i=me(n/100),c=me(t/100);return o.jsx("div",{...a,className:p.helpers.classNameConcat(ee["add-to-cart--card--price-quantity"],e),children:o.jsx(p.ProductInfo.Root,{size:"small",layout:"vertical",children:o.jsx(p.ProductInfo.Wrapper,{size:"small",layout:"vertical",children:o.jsx(p.ProductInfo.ValuesWrapper,{children:n!==t?o.jsxs(o.Fragment,{children:[o.jsx(p.ProductInfo.Price,{label:"originalPrice",value:i,size:"small"},"price-list"),o.jsx(p.ProductInfo.Price,{label:"discountPrice",value:c,size:"small"},"price-low")]}):o.jsx(p.ProductInfo.Price,{label:"defaultPrice",value:c,size:"small"},"price-low")})})})})};Go.displayName="AddToCart.Card.PriceQuantity";const Yi="_skeleton_12b79_1",Zi={skeleton:Yi},Ji=({style:e})=>o.jsx("div",{style:e,className:Zi.skeleton}),Ko=({className:e,productGroupID:t,size:n,texture:r,...s})=>{const{CONSTANTS:{TEXTURE_IMAGE:a,TOGGLE_STYLE_MODIFIER:i}}=be(),[c,l]=x.useState(r??"");return x.useEffect(()=>{c||fetch("/api/catalog/product/info",{method:"POST",priority:"low",body:JSON.stringify({ids:[t]})}).then(u=>u.json()).then(u=>{const f=u.data[0].items[0];if(f){const m=f.images.find(d=>a.includes(d.imageLabel));m!=null&&m.imageUrl?l(m.imageUrl):l(f.images[0].imageUrl)}}).catch(u=>{console.error(u)})},[c,t]),o.jsxs("div",{...s,className:p.helpers.classNameConcat(ee["add-to-cart--card--style-size"],e),children:[o.jsx(p.ToggleStyle.Wrapper,{size:"x-small",style:i,children:o.jsx(p.ToggleStyle.Texture,{children:c?o.jsx(ie.Image,{alt:"",src:c??"",width:164,height:164,style:i}):o.jsx(Ji,{})})}),o.jsx(p.Utils.Divider,{direction:"vertical",size:"medium",style:{height:24}}),n&&o.jsxs(p.ToggleSize.Wrapper,{size:"small",title:"wrapper-texture",children:[o.jsx(p.ToggleSize.DisabledAdornment,{title:"disabled-adornment-texture"}),o.jsx(p.ToggleSize.Text,{children:n})]})]})};Ko.displayName="AddToCart.Card.StyleSize";const{helpers:ec}=ko,Xo=({className:e,item:t,texture:n,...r})=>{const{itemOffered:{name:s,brand:a,skuName:i,isVariationOf:{productGroupID:c}},quantity:l,price:u,sellingPrice:f}=t,{CONSTANTS:{NAME_SPLIT_SYMBOL:m}}=be(),{size:d}=ec.product.getColorAndSizeFromSkuName(i??s,m);return console.log("value size, skuName",{size:d,skuName:i,name:s}),o.jsxs("div",{...r,className:p.helpers.classNameConcat(ee["add-to-cart--card--content"],e),children:[o.jsx(Vo,{brand:a.name,name:s}),o.jsx(Go,{price:u,listPrice:f,quantity:l,productId:t.id}),o.jsx(Ko,{size:d,texture:n,productGroupID:c})]})};Xo.displayName="AddToCart.Card.Content";const Qo=({image:e,thumbnail:t=!1})=>o.jsx(ie.Image,{alt:e.alternateName??"image","data-thumbnail":t,height:t?152:120,src:e.url,width:t?152:94});Qo.displayName="AddToCart.Card";const Yo=({className:e,item:t,texture:n,thumbnail:r,...s})=>{const{itemOffered:{image:[a]}}=t,i=zr(a.url,{width:200,height:300});return o.jsxs("div",{...s,className:p.helpers.classNameConcat(ee["add-to-cart--card"],e),children:[o.jsx(Qo,{image:{alternateName:a.alternateName||"Produto",url:i||""},thumbnail:r}),!r&&o.jsx(Xo,{item:t,texture:n})]})};Yo.displayName="AddToCart.Card";const Zo=({className:e,children:t,title:n,...r})=>o.jsxs("div",{...r,className:p.helpers.classNameConcat(ee["add-to-cart--content"],e),children:[o.jsx("div",{className:ee["add-to-cart--content--title"],children:n&&o.jsx("h2",{children:n})}),t,o.jsx(ye.Footer,{})]});Zo.displayName="AddToCart.Layout.Content";const Jo=({className:e,...t})=>{var _,g;const{isMobile:n,handleClose:r,CONSTANTS:{ADD_TO_CART:s}}=be(),{cartStore:{totalizers:a},setIsOpen:i}=Te(),c=(_=a.find(h=>h.id==="Discounts"))==null?void 0:_.value,l=((g=a.find(h=>h.id==="Items"))==null?void 0:g.value)??0,u=a.find(h=>h.id==="Shipping"),m=(l-Math.abs(c??0)+((u==null?void 0:u.value)??0))/100,d=me(m??0);return o.jsxs("div",{...t,className:p.helpers.classNameConcat(ee["add-to-cart--footer"],e),children:[o.jsxs("div",{className:ee["add-to-cart--footer--total"],children:[o.jsx("span",{children:"Subtotal:"}),o.jsx("span",{children:d})]}),o.jsx(p.Button,{size:"medium",variant:"primary","data-close":!0,onClick:()=>i(!0),children:s.footer.bag}),n?o.jsx(p.Button,{"data-close":!0,size:"medium",variant:"tertiary",children:s.footer.keep_buying}):o.jsx(p.Button,{onClick:()=>r(),size:"medium",variant:"tertiary",children:s.footer.keep_buying})]})};Jo.displayName="AddToCart.Layout.Footer";const es=({children:e,className:t,thumbnail:n=!1,...r})=>{const{cartStore:{options:s}}=Te(),{recentlyAddedProducts:a}=Be(),i=a.length>3?4:a.length;return o.jsxs("div",{...r,className:ee["add-to-cart--items"],"data-thumbnail":n,children:[Array.isArray(a)&&a.filter((c,l)=>l<i).map(c=>{var u;const l=(u=s==null?void 0:s.find(f=>f.id===c.itemOffered.isVariationOf.productGroupID))==null?void 0:u.texture;return o.jsx(ye.Card,{item:c,thumbnail:n,texture:l},c.itemOffered.sku)}),e]})};es.displayName="AddToCart.Layout.Items";const ts=({children:e,Z_INDEX_WAR:t})=>{const{isOpen:n,setIsOpen:r}=be(),{isMobile:s}=pe();return o.jsxs(p.Modal.Root,{"data-modal":"add-to-cart--modal",className:ee["add-to-cart__modal"],isMobile:s??!1,isOpen:n,setIsOpen:r,variant:"sideBottom",style:{zIndex:t.modal},children:[o.jsx(p.Modal.Header,{navigation:"top",children:o.jsx(p.Modal.Controls,{navigation:"top",isMobile:!0})}),o.jsx(p.Modal.Body,{children:e})]})};ts.displayName="AddToCart.Modal";const tc=({children:e})=>{const{count:t,handleClose:n,setIsOpen:r}=be(),s=x.useRef(t);return x.useEffect(()=>{t>s.current&&r(!0),t<s.current&&s.current>=1&&n(),s.current=t},[t,n,r]),o.jsx(o.Fragment,{children:e})},ns=({children:e,component:t,CONSTANTS:n,...r})=>{const{recentlyAddedProducts:s}=Be(),{isMobile:a}=pe(),i=s.length>3?4:s.length;return o.jsx(Ro,{...r,count:i,isMobile:a,CONSTANTS:n,children:o.jsx(tc,{children:a?o.jsxs(o.Fragment,{children:[o.jsx(ye.Modal,{Z_INDEX_WAR:n.Z_INDEX_WAR,children:t}),e]}):o.jsx(ye.Tooltip,{component:t,style:{width:350},Z_INDEX_WAR:n.Z_INDEX_WAR,children:e})})})};ns.displayName="AddToCart.Root";const rs=({children:e,component:t,Z_INDEX_WAR:n,...r})=>{const{contentRef:s,left:a,isLeaving:i,target:c,isOpen:l,top:u}=be();return o.jsx(p.Tooltip.Root,{arrow:"top-right",component:o.jsx("div",{...r,ref:s,children:t}),id:"add-to-cart--tooltip",className:ee["add-to-cart--tooltip"],style:{zIndex:n.modal},isLeaving:i,isOpen:l,left:a,size:"medium",position:"top",top:u,children:o.jsx("div",{className:ee["add-to-cart--tooltip"],ref:c,children:e})})};rs.displayName="AddToCart.Tooltip";const ye={Card:Yo,Content:Zo,Footer:Jo,Items:es,Modal:ts,Root:ns,Tooltip:rs},vn=({title:e,...t})=>{const{recentlyAddedProducts:n}=Be(),{isMobile:r}=pe(),s=n.length>3?4:n.length,a=n.length>(s??1),i=n.length>1;return o.jsx(ye.Root,{isMobile:r,count:n.length,component:o.jsx(ye.Content,{title:e,children:o.jsx(ye.Items,{thumbnail:i,children:a&&o.jsx(p.Badge.Count,{count:n.length-s,size:"medium",variant:"secondary"})})}),...t})};vn.displayName="AddToCart";const xr={"backtotop-btn":"_backtotop-btn_1shb6_1","card-modifier":"_card-modifier_1shb6_27"},nc=({children:e,className:t,adornment:n,iconPosition:r,scrollToOptions:s,style:a,...i})=>{const c={top:(s==null?void 0:s.top)??0,left:(s==null?void 0:s.left)??0,behavior:(s==null?void 0:s.behavior)??"smooth"},u=r&&n?{flexDirection:{top:"column",bottom:"column-reverse",left:"row",right:"row-reverse"}[r]}:{},f=()=>{window&&window.document.body.scrollTo({...c})};return o.jsx(p.Card,{...i,shadow:!0,padding:"small",className:p.helpers.classNameConcat(xr["card-modifier"],t),style:{...a,padding:0},children:o.jsxs("button",{className:xr["backtotop-btn"],onClick:f,style:{...u},"data-orientation":r,children:[n,e]})})},rc=({page:e,data:t})=>{const{pathname:n}=ae(),r=x.useRef(null),{sendDataLayerEvent:s,currentLocalRef:a,itemListRef:i,promotionEventRef:c}=F();return x.useEffect(()=>{const l=Oo("login_event")||"{}",u=JSON.parse(l);if(u.name||u.method){const f=new Date(0);s({functionKey:"readyEvents",data:{event:u.name,readyData:{method:u.method}}}),Ao("login_event","",{expires:f})}},[]),x.useEffect(()=>{if(r.current===n)return;r.current=n;let l={};switch(e){case"PDP":{const f=t,m={};if(!f){l={page_category:"pdp"};break}f.items.forEach(({itemId:d,sellers:_})=>m[d]=_[0].commertialOffer.AvailableQuantity),l={page_category:"pdp",seller_ids:f.items.map(({sellers:d})=>d[0].sellerId).join(),skuStocks:m,product_reference_id:f.productReference};break}case"PDC":{const{page_category:f,page_departament:m,id:d,name:_}=Wr(),g=_,h=d;l={page_category:"lista_produtos",...m&&{page_departament:m}},i.current={item_list_name:n==="/search"?"busca":g??void 0,item_list_id:n==="/search"?void 0:h??void 0},m&&s({functionKey:"readyEvents",data:{event:"view_category",readyData:{page_category:f,page_departament:m}}});break}default:l={page_category:e},c.current={},i.current={};break}const u={region:e,...l};a.current=e,s({functionKey:"readyEvents",data:{readyData:{vtex_version:"fast",...u}},timeout:0})},[n]),null};var nn={exports:{}};function oc(e){throw new Error('Could not dynamically require "'+e+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}var Ft={},Ht={},br;function sc(){return br||(br=1,function(e){"use client";Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"LoadableContext",{enumerable:!0,get:function(){return r}});const r=se._(x).default.createContext(null);process.env.NODE_ENV!=="production"&&(r.displayName="LoadableContext")}(Ht)),Ht}var Cr;function ac(){return Cr||(Cr=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return _}});const n=se._(x),r=sc();function s(g){return g&&g.default?g.default:g}const a=[],i=[];let c=!1;function l(g){let h=g(),y={loading:!0,loaded:null,error:null};return y.promise=h.then(v=>(y.loading=!1,y.loaded=v,v)).catch(v=>{throw y.loading=!1,y.error=v,v}),y}function u(g,h){let y=Object.assign({loader:null,loading:null,delay:200,timeout:null,webpack:null,modules:null},h),v=null;function N(){if(!v){const C=new f(g,y);v={getCurrentValue:C.getCurrentValue.bind(C),subscribe:C.subscribe.bind(C),retry:C.retry.bind(C),promise:C.promise.bind(C)}}return v.promise()}if(typeof window>"u"&&a.push(N),!c&&typeof window<"u"){const C=y.webpack&&typeof oc.resolveWeak=="function"?y.webpack():y.modules;C&&i.push(j=>{for(const I of C)if(j.includes(I))return N()})}function S(){N();const C=n.default.useContext(r.LoadableContext);C&&Array.isArray(y.modules)&&y.modules.forEach(j=>{C(j)})}function b(C,j){S();const I=n.default.useSyncExternalStore(v.subscribe,v.getCurrentValue,v.getCurrentValue);return n.default.useImperativeHandle(j,()=>({retry:v.retry}),[]),n.default.useMemo(()=>I.loading||I.error?n.default.createElement(y.loading,{isLoading:I.loading,pastDelay:I.pastDelay,timedOut:I.timedOut,error:I.error,retry:v.retry}):I.loaded?n.default.createElement(s(I.loaded),C):null,[C,I])}return b.preload=()=>N(),b.displayName="LoadableComponent",n.default.forwardRef(b)}class f{promise(){return this._res.promise}retry(){this._clearTimeouts(),this._res=this._loadFn(this._opts.loader),this._state={pastDelay:!1,timedOut:!1};const{_res:h,_opts:y}=this;h.loading&&(typeof y.delay=="number"&&(y.delay===0?this._state.pastDelay=!0:this._delay=setTimeout(()=>{this._update({pastDelay:!0})},y.delay)),typeof y.timeout=="number"&&(this._timeout=setTimeout(()=>{this._update({timedOut:!0})},y.timeout))),this._res.promise.then(()=>{this._update({}),this._clearTimeouts()}).catch(v=>{this._update({}),this._clearTimeouts()}),this._update({})}_update(h){this._state={...this._state,error:this._res.error,loaded:this._res.loaded,loading:this._res.loading,...h},this._callbacks.forEach(y=>y())}_clearTimeouts(){clearTimeout(this._delay),clearTimeout(this._timeout)}getCurrentValue(){return this._state}subscribe(h){return this._callbacks.add(h),()=>{this._callbacks.delete(h)}}constructor(h,y){this._loadFn=h,this._opts=y,this._callbacks=new Set,this._delay=null,this._timeout=null,this.retry()}}function m(g){return u(l,g)}function d(g,h){let y=[];for(;g.length;){let v=g.pop();y.push(v(h))}return Promise.all(y).then(()=>{if(g.length)return d(g,h)})}m.preloadAll=()=>new Promise((g,h)=>{d(a).then(g,h)}),m.preloadReady=g=>(g===void 0&&(g=[]),new Promise(h=>{const y=()=>(c=!0,h());d(i,g).then(y,y)})),typeof window<"u"&&(window.__NEXT_PRELOADREADY=m.preloadReady);const _=m}(Ft)),Ft}(function(e,t){Object.defineProperty(t,"__esModule",{value:!0});function n(f,m){for(var d in m)Object.defineProperty(f,d,{enumerable:!0,get:m[d]})}n(t,{noSSR:function(){return l},default:function(){return u}});const r=se,s=r._(x),a=r._(ac()),i=typeof window>"u";function c(f){return{default:(f==null?void 0:f.default)||f}}function l(f,m){if(delete m.webpack,delete m.modules,!i)return f(m);const d=m.loading;return()=>s.default.createElement(d,{error:null,isLoading:!0,pastDelay:!1,timedOut:!1})}function u(f,m){let d=a.default,_={loading:y=>{let{error:v,isLoading:N,pastDelay:S}=y;if(!S)return null;if(process.env.NODE_ENV!=="production"){if(N)return null;if(v)return s.default.createElement("p",null,v.message,s.default.createElement("br",null),v.stack)}return null}};f instanceof Promise?_.loader=()=>f:typeof f=="function"?_.loader=f:typeof f=="object"&&(_={..._,...f}),_={..._,...m};const g=_.loader,h=()=>g!=null?g().then(c):Promise.resolve(c(()=>null));return _.loadableGenerated&&(_={..._,..._.loadableGenerated},delete _.loadableGenerated),typeof _.ssr=="boolean"&&!_.ssr?(delete _.webpack,delete _.modules,l(d,_)):d({..._,loader:h})}(typeof t.default=="function"||typeof t.default=="object"&&t.default!==null)&&typeof t.default.__esModule>"u"&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)})(nn,nn.exports);var ic=nn.exports,cc=ic;const xn=hn(cc);var rn={exports:{}},Ut={},jr;function lc(){return jr||(jr=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"HeadManagerContext",{enumerable:!0,get:function(){return r}});const r=se._(x).default.createContext({});process.env.NODE_ENV!=="production"&&(r.displayName="HeadManagerContext")}(Ut)),Ut}var it={exports:{}},Sr;function uc(){return Sr||(Sr=1,function(e,t){Object.defineProperty(t,"__esModule",{value:!0});function n(l,u){for(var f in u)Object.defineProperty(l,f,{enumerable:!0,get:u[f]})}n(t,{DOMAttributeNames:function(){return r},isEqualNode:function(){return a},default:function(){return c}});const r={acceptCharset:"accept-charset",className:"class",htmlFor:"for",httpEquiv:"http-equiv",noModule:"noModule"};function s(l){let{type:u,props:f}=l;const m=document.createElement(u);for(const g in f){if(!f.hasOwnProperty(g)||g==="children"||g==="dangerouslySetInnerHTML"||f[g]===void 0)continue;const h=r[g]||g.toLowerCase();u==="script"&&(h==="async"||h==="defer"||h==="noModule")?m[h]=!!f[g]:m.setAttribute(h,f[g])}const{children:d,dangerouslySetInnerHTML:_}=f;return _?m.innerHTML=_.__html||"":d&&(m.textContent=typeof d=="string"?d:Array.isArray(d)?d.join(""):""),m}function a(l,u){if(l instanceof HTMLElement&&u instanceof HTMLElement){const f=u.getAttribute("nonce");if(f&&!l.getAttribute("nonce")){const m=u.cloneNode(!0);return m.setAttribute("nonce",""),m.nonce=f,f===l.nonce&&l.isEqualNode(m)}}return l.isEqualNode(u)}let i;process.env.__NEXT_STRICT_NEXT_HEAD?i=(l,u)=>{const f=document.querySelector("head");if(!f)return;const m=f.querySelectorAll('meta[name="next-head"]')||[],d=[];if(l==="meta"){const h=f.querySelector("meta[charset]");h&&d.push(h)}for(let h=0;h<m.length;h++){var _;const v=m[h].nextSibling;(v==null||(_=v.tagName)==null?void 0:_.toLowerCase())===l&&d.push(v)}const g=u.map(s).filter(h=>{for(let y=0,v=d.length;y<v;y++){const N=d[y];if(a(N,h))return d.splice(y,1),!1}return!0});d.forEach(h=>{var y;const v=h.previousSibling;if(v&&v.getAttribute("name")==="next-head"){var N;(N=h.parentNode)==null||N.removeChild(v)}(y=h.parentNode)==null||y.removeChild(h)}),g.forEach(h=>{var y;const v=document.createElement("meta");v.name="next-head",v.content="1",((y=h.tagName)==null?void 0:y.toLowerCase())==="meta"&&h.getAttribute("charset")||f.appendChild(v),f.appendChild(h)})}:i=(l,u)=>{const f=document.getElementsByTagName("head")[0],m=f.querySelector("meta[name=next-head-count]");if(process.env.NODE_ENV!=="production"&&!m){console.error("Warning: next-head-count is missing. https://nextjs.org/docs/messages/next-head-count-missing");return}const d=Number(m.content),_=[];for(let y=0,v=m.previousElementSibling;y<d;y++,v=(v==null?void 0:v.previousElementSibling)||null){var g;(v==null||(g=v.tagName)==null?void 0:g.toLowerCase())===l&&_.push(v)}const h=u.map(s).filter(y=>{for(let v=0,N=_.length;v<N;v++){const S=_[v];if(a(S,y))return _.splice(v,1),!1}return!0});_.forEach(y=>{var v;return(v=y.parentNode)==null?void 0:v.removeChild(y)}),h.forEach(y=>f.insertBefore(y,m)),m.content=(d-_.length+h.length).toString()};function c(){return{mountedInstances:new Set,updateHead:l=>{const u={};l.forEach(d=>{if(d.type==="link"&&d.props["data-optimized-fonts"]){if(document.querySelector('style[data-href="'+d.props["data-href"]+'"]'))return;d.props.href=d.props["data-href"],d.props["data-href"]=void 0}const _=u[d.type]||[];_.push(d),u[d.type]=_});const f=u.title?u.title[0]:null;let m="";if(f){const{children:d}=f.props;m=typeof d=="string"?d:Array.isArray(d)?d.join(""):""}m!==document.title&&(document.title=m),["meta","base","link","style","script"].forEach(d=>{i(d,u[d]||[])})}}}(typeof t.default=="function"||typeof t.default=="object"&&t.default!==null)&&typeof t.default.__esModule>"u"&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)}(it,it.exports)),it.exports}(function(e,t){"use client";Object.defineProperty(t,"__esModule",{value:!0});function n(C,j){for(var I in j)Object.defineProperty(C,I,{enumerable:!0,get:j[I]})}n(t,{handleClientScriptLoad:function(){return h},initScriptLoader:function(){return N},default:function(){return b}});const r=se,s=Lo(),a=r._(Ys),i=s._(x),c=lc(),l=uc(),u=Ho(),f=new Map,m=new Set,d=["onLoad","onReady","dangerouslySetInnerHTML","children","onError","strategy","stylesheets"],_=C=>{if(a.default.preinit){C.forEach(j=>{a.default.preinit(j,{as:"style"})});return}if(typeof window<"u"){let j=document.head;C.forEach(I=>{let P=document.createElement("link");P.type="text/css",P.rel="stylesheet",P.href=I,j.appendChild(P)})}},g=C=>{const{src:j,id:I,onLoad:P=()=>{},onReady:R=null,dangerouslySetInnerHTML:O,children:z="",strategy:E="afterInteractive",onError:T,stylesheets:M}=C,w=I||j;if(w&&m.has(w))return;if(f.has(j)){m.add(w),f.get(j).then(P,T);return}const k=()=>{R&&R(),m.add(w)},q=document.createElement("script"),$=new Promise((W,Y)=>{q.addEventListener("load",function(Z){W(),P&&P.call(this,Z),k()}),q.addEventListener("error",function(Z){Y(Z)})}).catch(function(W){T&&T(W)});O?(q.innerHTML=O.__html||"",k()):z?(q.textContent=typeof z=="string"?z:Array.isArray(z)?z.join(""):"",k()):j&&(q.src=j,f.set(j,$));for(const[W,Y]of Object.entries(C)){if(Y===void 0||d.includes(W))continue;const Z=l.DOMAttributeNames[W]||W.toLowerCase();q.setAttribute(Z,Y)}E==="worker"&&q.setAttribute("type","text/partytown"),q.setAttribute("data-nscript",E),M&&_(M),document.body.appendChild(q)};function h(C){const{strategy:j="afterInteractive"}=C;j==="lazyOnload"?window.addEventListener("load",()=>{(0,u.requestIdleCallback)(()=>g(C))}):g(C)}function y(C){document.readyState==="complete"?(0,u.requestIdleCallback)(()=>g(C)):window.addEventListener("load",()=>{(0,u.requestIdleCallback)(()=>g(C))})}function v(){[...document.querySelectorAll('[data-nscript="beforeInteractive"]'),...document.querySelectorAll('[data-nscript="beforePageRender"]')].forEach(j=>{const I=j.id||j.getAttribute("src");m.add(I)})}function N(C){C.forEach(h),v()}function S(C){const{id:j,src:I="",onLoad:P=()=>{},onReady:R=null,strategy:O="afterInteractive",onError:z,stylesheets:E,...T}=C,{updateScripts:M,scripts:w,getIsSsr:k,appDir:q,nonce:$}=(0,i.useContext)(c.HeadManagerContext),W=(0,i.useRef)(!1);(0,i.useEffect)(()=>{const Z=j||I;W.current||(R&&Z&&m.has(Z)&&R(),W.current=!0)},[R,j,I]);const Y=(0,i.useRef)(!1);if((0,i.useEffect)(()=>{Y.current||(O==="afterInteractive"?g(C):O==="lazyOnload"&&y(C),Y.current=!0)},[C,O]),(O==="beforeInteractive"||O==="worker")&&(M?(w[O]=(w[O]||[]).concat([{id:j,src:I,onLoad:P,onReady:R,onError:z,...T}]),M(w)):k&&k()?m.add(j||I):k&&!k()&&g(C)),q){if(E&&E.forEach(Z=>{a.default.preinit(Z,{as:"style"})}),O==="beforeInteractive")return I?(a.default.preload(I,T.integrity?{as:"script",integrity:T.integrity}:{as:"script"}),i.default.createElement("script",{nonce:$,dangerouslySetInnerHTML:{__html:"(self.__next_s=self.__next_s||[]).push("+JSON.stringify([I])+")"}})):(T.dangerouslySetInnerHTML&&(T.children=T.dangerouslySetInnerHTML.__html,delete T.dangerouslySetInnerHTML),i.default.createElement("script",{nonce:$,dangerouslySetInnerHTML:{__html:"(self.__next_s=self.__next_s||[]).push("+JSON.stringify([0,{...T}])+")"}}));O==="afterInteractive"&&I&&a.default.preload(I,T.integrity?{as:"script",integrity:T.integrity}:{as:"script"})}return null}Object.defineProperty(S,"__nextScript",{value:!0});const b=S;(typeof t.default=="function"||typeof t.default=="object"&&t.default!==null)&&typeof t.default.__esModule>"u"&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)})(rn,rn.exports);var dc=rn.exports,fc=dc;const mc=hn(fc),pc=({children:e,ONE_TRUST:t})=>o.jsxs(o.Fragment,{children:[o.jsx(mc,{src:"https://cdn.cookielaw.org/scripttemplates/otSDKStub.js",defer:!0,strategy:"afterInteractive","data-domain-script":t.siteId,type:"text/javascript"}),e]}),hc=xn(()=>Promise.resolve(pc),{ssr:!1}),_c="_footer__bottom_1otu7_1",gc="_footer__wrapper_1otu7_9",yc="_footer__main_1otu7_41",vc="_footer__legalInformation_1otu7_48",xc="_footer__column_1otu7_70",bc="_footer__columnContent_1otu7_80",Cc="_footer__item_1otu7_84",jc="_footer__itemLink_1otu7_100",Sc="_footer__columnTitle_1otu7_115",Ic="_footer__columnTitleIcon_1otu7_127",Nc="_footer__iconList_1otu7_140",Pc="_footer__itemSmallText_1otu7_150",wc="_payment_1otu7_161",Ec="_footer__iconContainer_1otu7_166",Rc="_footer__iconListSubHeader_1otu7_171",Tc="_accordionWrapper_1otu7_193",Oc="_accordionHeader_1otu7_197",Ac="_accordionTextWrapper_1otu7_201",B={footer__bottom:_c,footer__wrapper:gc,footer__main:yc,footer__legalInformation:vc,footer__column:xc,footer__columnContent:bc,footer__item:Cc,footer__itemLink:jc,footer__columnTitle:Sc,footer__columnTitleIcon:Ic,footer__iconList:Nc,footer__itemSmallText:Pc,payment:wc,footer__iconContainer:Ec,footer__iconListSubHeader:Rc,accordionWrapper:Tc,accordionHeader:Oc,accordionTextWrapper:Ac,"footer--stamps":"_footer--stamps_1otu7_240","footer--stamps--company":"_footer--stamps--company_1otu7_247"},Mc=({name:e,nameIcon:t,maxWidth:n,rowAlignContent:r,columnAlignContent:s,columnAlignItems:a,textAlignContent:i,textAlignItems:c,children:l})=>o.jsx(p.TextStructure.Root,{layoutProps:{textRow:{alignContent:r,alignItems:r},columnWrapper:{alignContent:s,alignItems:a}},children:o.jsxs(p.TextStructure.DivWrapper,{alignContent:i,alignItems:c,className:B.footer__column,children:[o.jsxs("div",{className:t?B.footer__columnTitleIcon:B.footer__columnTitle,children:[o.jsx(p.Icon,{name:`${t}`,size:"small"}),e&&o.jsx("div",{children:e})]}),o.jsx("div",{className:B.footer__columnContent,style:{maxWidth:`${n}px`},children:l})]})}),kc=({name:e,nameIcon:t,maxWidth:n,children:r,...s})=>o.jsxs(p.Accordion.Wrapper,{className:B.accordionWrapper,title:"accordion-wrapper",...s,children:[o.jsx(p.Accordion.Header,{id:(s==null?void 0:s.id)??"",className:B.accordionHeader,closeIndicator:o.jsx(p.Icon,{name:"arrow-up",size:"medium"}),openIndicator:o.jsx(p.Icon,{name:"arrow-down",size:"medium"}),title:"accordion-header",children:o.jsx(p.TextStructure.Root,{children:o.jsxs(p.TextStructure.DivWrapper,{className:t?B.accordionTextWrapper:"",children:[o.jsx(p.Icon,{name:`${t}`,size:"medium"}),o.jsx("h2",{className:"typography-style-body-md",children:e})]})})}),o.jsx(p.Accordion.Body,{title:"accordion-body",children:o.jsx(p.TextStructure.Root,{children:o.jsx(p.TextStructure.DivWrapper,{className:B.footer__columnContent,style:{maxWidth:`${n}px`},children:r})})})]}),Wt=e=>{const{isMobile:t}=pe();return t?o.jsx(kc,{...e}):o.jsx(Mc,{...e})},ct=({type:e,children:t,className:n,collumnName:r,collumnNameIcon:s,icons:a,iconLink:i,iconSize:c,link:l,paymentDisclaimer:u,paymentTitle:f,rowAlignContent:m,columnAlignContent:d,columnAlignItems:_,textAlignContent:g,textAlignItems:h,...y})=>{let v;const{handleSelectContent:N}=F(),{nextimage:S}=ae();switch(e){case"menu":v=o.jsx(te,{className:B.footer__itemLink,href:l??"#",prefetch:!1,children:o.jsx("span",{onClick:()=>{N({content:`footer:${r}:${t}`})},children:t})});break;case"payment":v=o.jsxs("div",{className:p.helpers.classNameConcat(B.payment,B.footer__itemSmallText),...y,children:[u,o.jsxs("div",{className:p.helpers.classNameConcat(B.footer__iconContainer,B.footer__iconListSubHeader),children:[f,o.jsx("div",{className:B.footer__iconList,children:a==null?void 0:a.map((b,C)=>o.jsx(S,{alt:b,src:`/assets/${b}.svg`,width:c??20,height:c??20},C))})]})]});break;case"social-media":v=o.jsx("div",{className:B.footer__iconContainer,...y,children:o.jsx("div",{className:B.footer__iconList,children:i==null?void 0:i.map((b,C)=>o.jsx(te,{prefetch:!1,href:b.link??"#",children:o.jsx(p.Icon,{size:"medium",name:b.icon,onClick:()=>N({content:`footer:redes-sociais:${b.icon}`})})},C))})});break;default:v=o.jsx("div",{className:n,...y,children:t})}return o.jsx(p.TextStructure.Root,{layoutProps:{textRow:{alignContent:m,alignItems:m},columnWrapper:{alignContent:d,alignItems:_}},...y,children:o.jsx(p.TextStructure.DivWrapper,{alignContent:g,alignItems:h,className:p.helpers.classNameConcat(B.footer__item,n),children:v})})},Dc=({className:e,text:t,...n})=>o.jsx("div",{...n,className:p.helpers.classNameConcat(B.footer__legalInformation,e),children:o.jsx("span",{children:t})}),os=()=>{const{nextimage:e}=ae();return o.jsx("div",{className:B["footer--stamps"],children:o.jsx(e,{alt:"Empresa B",className:B["footer--stamps--company"],src:"/images/Footer/new_certfB.png",width:56,height:64})})};os.displayName="Footer.Stamps";const ss=({children:e,legalTextSlot:t,adornment:n,className:r,...s})=>{const{isMobile:a}=pe(),i=x.Children.toArray(e).filter(Boolean),c=i.length;return o.jsxs("div",{className:B.footer__main,children:[(n==null?void 0:n.top)&&o.jsx("div",{className:B.footer__top,children:n==null?void 0:n.top}),c>0&&o.jsx("div",{...s,className:p.helpers.classNameConcat(B.footer__wrapper,r),children:i.map((l,u)=>o.jsx("div",{style:{flexGrow:1,maxWidth:`calc(100% / ${a?1:"fit-content"})`},children:l},u))}),(n==null?void 0:n.bottom)&&o.jsx("div",{className:B.footer__bottom,children:n.bottom}),t&&o.jsx("div",{className:B.footer__legalText,children:t})]})};ss.displayName="Footer.Wrapper";const as=({data:{links:{links:e}},payments:t,socialInfo:n,socialMedias:r,adornment:s,LEGAL_INFORMATION_TEXT:a})=>{var i;return o.jsxs(ss,{adornment:s,legalTextSlot:o.jsx(Dc,{text:a}),children:[Array.isArray(e.column)&&e.column.map((c,l)=>o.jsx(Wt,{id:`${l}column-menu`,name:c.name,nameIcon:c.nameIcon,children:c.items.map((u,f)=>o.jsx(ct,{type:"menu",link:u.link,collumnName:c.name,collumnNameIcon:c.nameIcon,children:u.text},f))},l)),t&&((i=t.acceptedFlags)==null?void 0:i.length)>0&&o.jsx(Wt,{id:"payment-column",name:t==null?void 0:t.title,nameIcon:t==null?void 0:t.titleIcon,maxWidth:150,children:o.jsx(ct,{type:"payment",paymentDisclaimer:t==null?void 0:t.text,paymentTitle:t==null?void 0:t.flagsTitle,iconSize:16,icons:t==null?void 0:t.acceptedFlags})}),o.jsxs(Wt,{id:"social-media-column",name:n==null?void 0:n.title,children:[o.jsx(ct,{children:n==null?void 0:n.subTitle}),o.jsx(ct,{type:"social-media",iconSize:24,iconLink:r}),o.jsx(os,{})]})]})};as.displayName="Footer";const bn={"btn-login":"_btn-login_yas63_12","btn-header":"_btn-header_yas63_22","header-animation":"_header-animation_yas63_35"},Cn=({id:e})=>{const{setIsOpen:t,cartStore:{items:n}}=Te(),{handleSelectContent:r}=F(),{CONSTANTS:s}=G();return o.jsx(p.Header.SupportItem,{onClick:()=>{t(!0),r({content:"header:minicart"})},id:e,children:o.jsxs(p.Badge.AutoPositioner,{children:[o.jsx(p.Badge.Count,{count:n.length,size:"medium",variant:"primary",style:{backgroundColor:"black",display:n.length>0?"flex":"none"}}),o.jsx(p.Icon,{name:s.header.ICONS.bag,size:"medium"})]})})};Cn.displayName="Header.Bag";const Ue=({children:e,href:t,...n})=>t&&t!=="#"?o.jsx(te,{href:t.startsWith("/")?t:`/${t}`,...n,children:e}):e,is=()=>{const{headerData:e}=G(),{handleSelectContent:t}=F(),{reset:n,updateValue:r}=_e(),s=a=>{a?r(a):n()};return o.jsx(p.Header.Categories,{children:Array.isArray(e.categories)&&e.categories.map((a,i)=>o.jsx(Ue,{href:a.link,onMouseEnter:()=>s(a.submenuId),onFocus:()=>s(a.submenuId),children:o.jsx(p.Header.CategoryItem,{className:bn["btn-header"],value:a.submenuId??null,adornment:{start:o.jsx(p.Icon,{name:a.iconStart}),end:o.jsx(p.Icon,{name:a.iconEnd})},style:{textWrap:"nowrap",gap:"0"},onClick:()=>{t({content:`header:${a.label}`})},children:a.label})},`category-${a.label}-${i}`))})};is.displayName="Header.Categories";function Lc({SearchModal:e}){const{handleSelectContent:t}=F(),{CONSTANTS:n}=G(),{setValue:r}=mn();return o.jsxs(o.Fragment,{children:[o.jsx(p.Header.SupportItem,{onClick:()=>{r(!0),t({content:"header:search"})},children:o.jsx(p.Icon,{name:n.header.ICONS.search,size:"medium"})}),o.jsx(e,{recommendations:!1,trends:!0})]})}const zc={"menu-subcategories-container":"_menu-subcategories-container_a93cr_1"},jn=({thumbnails:e,category:t,isMobile:n=!0,callBack:r})=>{const{handleSelectPromotionEvent:s}=F(),a=50/e.length;return o.jsx("div",{className:zc["menu-subcategories-container"],children:e.map((i,c)=>{const l=n?i.srcMobile:i.srcDesk;if(!l)return null;const u={creative_name:"banner-menu",creative_slot:`banner-menu:${t}:${c+1}`,promotion_id:l,promotion_name:i.promotion_name};return o.jsx(yn,{eventData:{functionKey:"readyEvents",data:{event:"view_promotion",readyData:{ecommerce:{...u}}}},observerOptions:{delay:1e3},children:o.jsxs(te,{href:i.link??"#",onClick:()=>{typeof r=="function"&&r(),s({updatePromotionRef:!0,promotion:u})},children:[o.jsx(ie.Image,{src:l,alt:i.label??l,width:500,height:500,sizes:`(max-width: 768px) 100vw, (max-width: 1023px) 75vw, ${a}vw`}),i.label&&o.jsx("p",{children:i.label})]})},`thumb-${i.label}-${c}`)})})};jn.displayName="Menu.Thumbnail";const on={"menu-desktop":"_menu-desktop_1b799_1","menu-categories":"_menu-categories_1b799_12"},cs=({children:e,dividerOnRight:t=!0,subMenu:n,...r})=>{var l;const{router:s}=ae(),{reset:a}=_e(),{handleSelectContent:i}=F(),{CONSTANTS:c}=G();return o.jsxs("div",{...r,className:on["menu-categories"],children:[(l=n==null?void 0:n.subCategories)==null?void 0:l.map((u,f)=>{var _,g,h;const m=u.listCollapseDesk&&!((_=u.see_all)!=null&&_.link)?{expandAfterRowsQty:u.rowsToShowDesk}:{},d=u.listCollapseDesk&&!((g=u.see_all)!=null&&g.link)?{expansivesAdornments:{open:c.header.ICONS.add,close:c.header.ICONS.minus},expansivesLabels:{open:c.header.COMPONENT_LIST.listExpandLabel,close:c.header.COMPONENT_LIST.listCollapseLabel},iconSize:"x-small"}:{adornment:{end:o.jsx(p.Icon,{name:c.header.ICONS.arrow_right,size:"small"})}};return o.jsxs(p.ComponentList.Structure,{children:[o.jsx(Ue,{href:u.linkLabel,title:u.label,onClick:()=>{u.linkLabel&&(a(),i({content:`menu:${u.label??""}:${n.label??""}`}))},children:o.jsx(p.TextStructure.Root,{children:o.jsx(p.TextStructure.DivWrapper,{children:o.jsx("h2",{children:u.label})})})}),o.jsx(p.ComponentList.List,{columns:1,...m,className:on["submenu-categories"],children:u.items.map((y,v)=>o.jsx(p.ComponentList.ListItem,{id:`list-item-${y.label}-${v}`,children:o.jsx(Oe,{href:y.link??"#",size:"x-small",title:y.label??"",disableUnderline:!0,disablePadding:!0,onClick:()=>{a(),i({content:`menu:${u.label??""}:${y.label??""}:${n.label??""}`})},children:y.label})},`list-item-${y.label}-${v}`))}),((h=u.see_all)==null?void 0:h.link)&&o.jsx(p.ComponentList.Support,{...d,size:"small",onClick:()=>{var y;(y=u.see_all)!=null&&y.link&&(a(),i({content:`menu:${u.label??""}:${n.label}`}),s.push(u.see_all.link))},children:u.see_all.link&&u.see_all.label})]},`list-${u.label}-${f}`)}),t&&o.jsx(p.Utils.Divider,{size:"small",direction:"vertical"})]})};cs.displayName="Menu.Categories";const ls=({children:e,dividerOnBottom:t=!0,...n})=>{const{CONSTANTS:r}=G();return o.jsxs(o.Fragment,{children:[o.jsx("div",{...n,className:on["menu-desktop"],style:{...n.style,justifyContent:r.header.ALIGNMENT_MENU},children:e}),t&&o.jsx(p.Utils.Divider,{size:"small"})]})};ls.displayName="Menu.MenuRoot";const qc=xn(()=>Promise.resolve(ls),{ssr:!1}),Vt={Root:qc,Categories:cs,Thumbnail:jn},us=()=>{const{headerData:e,CONSTANTS:t}=G(),n=ft(),{reset:r}=_e();return o.jsx(p.Header.SubMenu,{children:Array.isArray(e.subMenus)&&e.subMenus.map((s,a)=>{const{thumbnails:i,label:c,id:l}=s,u=l===n,f=i==null?void 0:i.some(m=>!!m.srcDesk);return o.jsxs(Vt.Root,{id:l,style:u?{display:"flex",zIndex:t.header.Z_INDEX_WAR.menu_desktop}:{display:"none"},dividerOnBottom:u,children:[o.jsx(Vt.Categories,{dividerOnRight:!!f,subMenu:s}),Array.isArray(i)&&o.jsx(Vt.Thumbnail,{thumbnails:i,isMobile:!1,category:c,callBack:r})]},`submenu-${l}-${a}`)})})};us.displayName="Header.SubMenu";const ds=()=>{const{handleSelectContent:e}=F(),{CONSTANTS:t}=G();return o.jsx(te,{href:"/favoritos",children:o.jsx(p.Header.SupportItem,{onClick:()=>e({content:"header:wishlist"}),children:o.jsx(p.Icon,{name:t.header.ICONS.favorite_false,size:"medium"})})})};ds.displayName="Header.WishList";const fs=({UserMenu:e,SearchModal:t})=>{const n=x.useRef(null),{CONSTANTS:r}=G(),{handleSelectContent:s}=F(),{reset:a}=_e(),{setValue:i}=pn();return o.jsxs(o.Fragment,{children:[o.jsxs(p.Header.Wrapper,{children:[o.jsx(p.Header.Logo,{style:{width:"100%"},children:o.jsx(te,{href:"/",onMouseEnter:a,children:o.jsx(p.Icon,{name:r.header.ICONS.logo,size:"x-large",onClick:()=>{s({content:"header:logo"})}})})}),o.jsx(is,{}),o.jsxs(p.Header.Support,{onMouseEnter:a,style:{justifyContent:"flex-end"},children:[o.jsx(Lc,{SearchModal:t}),o.jsx(e,{target:n.current,children:o.jsx(p.Header.SupportItem,{onClick:()=>{i(!0),s({content:"header:user_menu"})},className:bn["btn-login"],innerRef:n,children:o.jsx(p.Icon,{name:r.header.ICONS.person,size:"medium"})})}),o.jsx(ds,{}),o.jsx(Cn,{id:"cart-button"})]})]}),o.jsx(us,{})]})};fs.displayName="Header.HeaderDesktopWrapper";const $c="_divider_1lexj_199",H={"modal-modifier":"_modal-modifier_1lexj_1","menu-mobile":"_menu-mobile_1lexj_11","menu-header-container":"_menu-header-container_1lexj_26","menu-header-wrapper":"_menu-header-wrapper_1lexj_35","menu-header-navlinks":"_menu-header-navlinks_1lexj_41","menu-body":"_menu-body_1lexj_57","menu-categories-container":"_menu-categories-container_1lexj_74","menu-categories-btn":"_menu-categories-btn_1lexj_108","menu-body-banner-container-modifier":"_menu-body-banner-container-modifier_1lexj_121","menu-categories__banner":"_menu-categories__banner_1lexj_130","menu-submenu-modal-modifiier":"_menu-submenu-modal-modifiier_1lexj_135","menu-submenu":"_menu-submenu_1lexj_135","menu-submenu--item":"_menu-submenu--item_1lexj_150","menu-submenu--thumbnails":"_menu-submenu--thumbnails_1lexj_156","menu-submenu--component-list-modifier":"_menu-submenu--component-list-modifier_1lexj_184","submenu-categories":"_submenu-categories_1lexj_187","menu-navigationbar":"_menu-navigationbar_1lexj_191",divider:$c,"menu-navigationbar-item":"_menu-navigationbar-item_1lexj_206","menu-categories-textstructure-modifier":"_menu-categories-textstructure-modifier_1lexj_210"},ms=({children:e,mobileBannerAlt:t,mobileBannerSrc:n,onClick:r,textColor:s,...a})=>o.jsx("button",{onClick:r,className:H["menu-categories-btn"],children:n?o.jsxs(p.Banner.Container,{...a,className:H["menu-body-banner-container-modifier"],children:[o.jsx(p.Banner.ImageWrapper,{style:{width:"100%"},children:o.jsx(ie.Image,{src:n,alt:t??n,className:H["menu-categories__banner"],width:343,height:128,unoptimized:!0})}),o.jsx(p.Banner.Slot,{verticalAlignment:"center",horizontalAlignment:"start",children:o.jsx(p.TextStructure.Root,{children:o.jsx(p.TextStructure.DivWrapper,{className:H["menu-categories-textstructure-modifier"],children:o.jsx("h2",{className:"typography-style-body-xs",style:s?{color:s}:{},children:e})})})})]}):o.jsx("h2",{...a,children:e})});ms.displayName="Menu.MenuCategories";const ps=({children:e,link:t})=>{const{reset:n}=xe();return t?o.jsx(te,{href:t??"#",onClick:n,children:e}):e};ps.displayName="Menu.MenuCategoriesWrapper";const hs=({subcategory:e,submenuLabel:t})=>{var l,u,f;const{router:n}=ae(),{reset:r}=xe(),{handleSelectContent:s}=F(),{CONSTANTS:a}=G(),i=e.listCollapseMobile&&!((l=e.see_all)!=null&&l.link)?{expandAfterRowsQty:e.rowsToShowMobile}:{},c=e.listCollapseMobile&&!((u=e.see_all)!=null&&u.link)?{expansivesAdornments:{open:a.header.ICONS.add,close:a.header.ICONS.minus},expansivesLabels:{open:a.header.COMPONENT_LIST.listExpandLabel,close:a.header.COMPONENT_LIST.listCollapseLabel},iconSize:"x-small"}:{adornment:{end:o.jsx(p.Icon,{name:a.header.ICONS.arrow_right,size:"small"})}};return o.jsxs(p.ComponentList.Structure,{className:H["menu-submenu--component-list-modifier"],children:[o.jsx(Ue,{href:e.linkLabel,title:e.label,onClick:()=>{r(),s({content:`menu:${e.label??""}:${t}`})},children:o.jsx(p.TextStructure.Root,{children:o.jsx(p.TextStructure.DivWrapper,{children:o.jsx("h2",{className:"typography-style-body-sm-strong",children:e.label})})})}),o.jsx(p.ComponentList.List,{columns:1,...i,className:H["submenu-categories"],children:e.items.map((m,d)=>o.jsx(p.ComponentList.ListItem,{id:`list-item-${m.label}-${d}`,divider:!0,children:o.jsx(Oe,{href:m.link??"#",size:"x-small",title:m.label??"",disableUnderline:!0,onClick:()=>{r(),s({content:`menu:${e.label??""}:${m.label}:${t}`})},children:m.label})},`list-item-${m.label}-${d}`))}),((f=e.see_all)==null?void 0:f.link)&&o.jsx(p.ComponentList.Support,{...c,size:"small",onClick:()=>{var m;r(),s({content:`menu:${e.label??""}:${t}`}),(m=e.see_all)!=null&&m.link&&n.push(e.see_all.link)},children:e.see_all.link&&e.see_all.label})]})};hs.displayName="Menu.SubMenuSubCategory";const _s=({submenu:e})=>{var a;const t=ft(),{handleCloseSubMenu:n}=He(),{reset:r}=_e(),{CONSTANTS:s}=G();return o.jsxs("div",{className:H["menu-submenu--item"],style:{display:t===e.id?"flex":"none"},children:[o.jsx(p.TextStructure.Root,{adornment:{start:o.jsx(p.Icon,{name:s.header.ICONS.arrow_back,size:"medium",onClick:n})},layoutProps:{textRow:{alignItems:"center",style:{width:"100%",position:"relative"}},columnWrapper:{alignContent:"center",style:{width:"100%"}}},children:e.label&&o.jsx(p.TextStructure.DivWrapper,{style:{position:"absolute",left:"50%",transform:"translate(-50%)"},children:o.jsx("h2",{className:"typography-style-body-md-strong",children:e.label})})}),o.jsx("div",{className:H["menu-submenu--thumbnails"],children:Array.isArray(e.thumbnails)&&o.jsx(jn,{thumbnails:e.thumbnails,isMobile:!0,category:e.label,callBack:r})}),(a=e==null?void 0:e.subCategories)==null?void 0:a.map((i,c)=>o.jsx(hs,{subcategory:i,submenuLabel:e.label},`list-${i.label}-${c}`))]})};_s.displayName="Menu.SubMenuItem";const gs=()=>{const{headerData:e}=G(),t=ft(),{reset:n}=_e(),{bodyRef:r}=He();return o.jsx(p.Modal.RootWithoutPortal,{isOpen:!!t,setIsOpen:n,parent:r.current,variant:"sideLeft",style:{position:"absolute",width:"100%"},className:H["menu-submenu-modal-modifiier"],children:o.jsx("div",{className:H["menu-submenu"],children:e.subMenus.map((s,a)=>o.jsx(_s,{submenu:s},`submenu-${s.id}-${a}`))})})};gs.displayName="Menu.SubMenu";const ys=({className:e,...t})=>{const{headerData:n}=G(),{setValue:r}=_e(),{bodyRef:s}=He(),{handleSelectContent:a}=F();return o.jsxs("div",{...t,ref:s,id:"menu-body",className:H["menu-body"],children:[o.jsx("div",{className:H["menu-categories-container"],children:n.categories.map((i,c)=>{const l=i.submenuId?{}:{"data-close":!0};return o.jsx(ps,{link:i.submenuId?null:i.link,children:o.jsx(ms,{onClick:()=>{r(i.submenuId??null),a({content:`menu:${i.label}`})},mobileBannerSrc:i.mobileBannerSrc,mobileBannerAlt:i.mobileBannerAlt,textColor:i.textColor,...l,children:i.mobileBannerAlt})},`menu-categories-${c}`)})}),o.jsx(gs,{})]})};ys.displayName="Menu.MenuBody";const vs=({title:e,subtitle:t})=>{const{CONSTANTS:n}=G();return o.jsxs("div",{className:H["menu-header-wrapper"],style:t?{alignItems:"start"}:{alignItems:"center"},children:[(e||t)&&o.jsx(p.TextStructure.Root,{children:o.jsxs(p.TextStructure.DivWrapper,{children:[e&&o.jsx("h2",{className:"typography-style-body-md",children:e}),t&&o.jsx("h3",{children:t})]})}),o.jsx(p.Button,{adornment:{end:o.jsx(p.Icon,{name:n.header.ICONS.close})},variant:"tertiary",className:H["menu-close"],"data-close":!0})]})};vs.displayName="Menu.MenuHeaderWrapper";const xs=({navigationLinks:e})=>{const{reset:t}=xe(),{handleSelectContent:n}=F();return e?o.jsx("nav",{className:H["menu-header-navlinks"],children:e.map((r,s)=>o.jsx(Oe,{href:r.link??"#",adornments:{start:r.iconStart&&o.jsx(p.Icon,{name:r.iconStart}),end:r.iconEnd&&o.jsx(p.Icon,{name:r.iconEnd})},onClick:()=>{t(),n({content:`menu:navigationlinks-${r.label}`})},children:r.label},s))}):null};xs.displayName="Menu.MenuHeaderNavLinks";const bs=()=>{const{headerData:e}=G();return o.jsxs("div",{className:H["menu-header-container"],children:[o.jsx(vs,{title:e.title,subtitle:e.subtitle}),o.jsx(xs,{navigationLinks:e.navigationLinks})]})};bs.displayName="Menu.MenuHeaderContainer";const Cs=({children:e})=>{const{documentBodyRef:t}=He(),{CONSTANTS:n}=G(),r=fn(),{setValue:s}=xe();return o.jsx(p.Modal.RootWithoutPortal,{isOpen:r,setIsOpen:s,parent:t.current,variant:"sideLeft",style:{position:"fixed",zIndex:n.header.Z_INDEX_WAR.menu_mobile,bottom:"unset",top:0,overflowY:"hidden"},className:H["modal-modifier"],children:o.jsx("div",{className:H["menu-mobile"],children:e})})};Cs.displayName="Menu.MenuRoot";const Bc=xn(()=>Promise.resolve(Cs),{ssr:!1}),ut=({children:e,...t})=>o.jsxs(o.Fragment,{children:[o.jsx(p.Button,{...t,className:H["menu-navigationbar-item"],children:e}),o.jsx(p.Utils.Divider,{direction:"vertical",size:"small",className:H.divider})]});ut.displayName="Menu.NavigationBarItem";const js=()=>{const{setIsOpen:e}=Te(),{reset:t}=xe(),{setValue:n}=pn(),{handleSelectContent:r}=F(),{CONSTANTS:s}=G(),{router:a}=ae();return o.jsxs(p.Card,{id:"menu-navigationbar",shadow:!0,className:H["menu-navigationbar"],style:{zIndex:s.header.Z_INDEX_WAR.menu_mobile_navigation_bar},children:[o.jsx(ut,{size:"small",variant:"tertiary",iconNameStart:s.header.MENU_INFO.login.button_icon,onClick:()=>{t(),n(!0),r({content:"menu:user_menu"})},children:s.header.MENU_INFO.login.button_text}),o.jsx(ut,{size:"small",variant:"tertiary",iconNameStart:s.header.MENU_INFO.bag.button_icon,onClick:()=>{t(),e(!0),r({content:"menu:minicart"})},children:s.header.MENU_INFO.bag.button_text}),o.jsx(ut,{size:"small",variant:"tertiary",iconNameStart:s.header.MENU_INFO.store.button_icon,onClick:()=>{a.push("/institucional/lojas"),t(),r({content:"menu:store"})},children:s.header.MENU_INFO.store.button_text})]})};js.displayName="Menu.NavigationBar";const lt={Root:Bc,NavigationBar:js,Header:bs,Body:ys},Ss=({UserMenu:e,SearchModal:t})=>{const n=x.useRef(null),{CONSTANTS:r}=G(),{MENU_NAVIGATION_BAR_ALLOWED:s,ICONS:a}=r.header,{handleSelectContent:i}=F(),{setValue:c}=mn(),{setValue:l}=xe();return o.jsxs(o.Fragment,{children:[o.jsxs(p.Header.Wrapper,{children:[o.jsx(p.Header.Logo,{style:{width:"100%",justifyContent:"center"},children:o.jsx(te,{href:"/",children:o.jsx(p.Icon,{name:a.logo,size:"x-large",onClick:()=>{i({content:"header:logo"})}})})}),o.jsxs(p.Header.Support,{children:[o.jsx(p.Header.SupportItem,{onClick:()=>{c(!0),i({content:"header:search"})},children:o.jsx(p.Icon,{name:a.search,size:"medium"})}),o.jsx(Cn,{}),o.jsxs(p.Header.SupportItem,{onClick:()=>l(!0),children:[o.jsx("span",{ref:n}),o.jsx(p.Icon,{name:a.menu,size:"medium"})]})]})]}),o.jsx(t,{recommendations:!1,trends:!0}),o.jsx(wo,{children:o.jsx(e,{target:n==null?void 0:n.current,children:o.jsxs(lt.Root,{children:[o.jsx(lt.Header,{}),o.jsx(lt.Body,{}),s?o.jsx(lt.NavigationBar,{}):o.jsx(o.Fragment,{})]})})})]})};Ss.displayName="Header.HeaderMobileWrapper";const Is=({tipBar:e,miniCart:t,UserMenu:n,SearchModal:r})=>{const{structureRef:s,rootRef:a,CONSTANTS:i}=G(),{header:{HEADER_CONFIGS:c,Z_INDEX_WAR:l}}=i;return o.jsx(p.Header.Structure,{innerRef:s,adornment:{start:e},style:{position:"sticky",top:0,zIndex:l.header},className:bn["header-animation"],children:o.jsxs(p.Header.Root,{innerRef:a,style:{zIndex:l.header},variant:c.default_variant,interactiveVariant:c.interactive_variant,children:[o.jsx("div",{className:dt["responsive-mobile-block"],style:{height:"100%",width:"100%",zIndex:l.header_mobile},children:o.jsx(Ss,{UserMenu:n,SearchModal:r})}),o.jsx("div",{className:dt["responsive-desktop-block"],style:{height:"100%",width:"100%",zIndex:l.header_desktop},children:o.jsx(fs,{UserMenu:n,SearchModal:r})}),t,o.jsx(vn,{title:"Produto adicionado à sua sacola!",CONSTANTS:i.addToCart})]})})};Is.displayName="Header";const Fc="_shippingFreight_6z8rf_6",Hc="_shippingFreight__postalCodeGrid_6z8rf_10",Uc="_shippingFreight__grid_6z8rf_14",Wc="_shippingFreight__grid__title_6z8rf_18",Vc="_shippingFreight__grid__remember_6z8rf_29",Gc="_postalCodeContainer_6z8rf_44",Kc="_deliveryStatusBar__tag_6z8rf_49",Xc="_deliveryStatusBarError__tag_6z8rf_66",Qc="_deliveryInfo_6z8rf_74",Yc="_deliveryInfo__content_6z8rf_78",Zc="_deliveryInfo__text_6z8rf_84",Jc="_deliveryInfo__title_6z8rf_89",el="_deliveryInfo__subtitle_6z8rf_99",tl="_deliveryInfo__tooltipIcon_6z8rf_109",nl="_deliveryInfo__tooltip_6z8rf_109",rl="_freightGrid_6z8rf_148",ol="_freightContainer_6z8rf_155",sl="_freightOption__content_6z8rf_160",al="_freightOption__value_6z8rf_166",il="_freightOption__title_6z8rf_177",cl="_freightOption__title_item_6z8rf_181",ll="_freightOption__paragraph_6z8rf_192",L={shippingFreight:Fc,shippingFreight__postalCodeGrid:Hc,shippingFreight__grid:Uc,shippingFreight__grid__title:Wc,shippingFreight__grid__remember:Vc,postalCodeContainer:Gc,deliveryStatusBar__tag:Kc,deliveryStatusBarError__tag:Xc,deliveryInfo:Qc,deliveryInfo__content:Yc,deliveryInfo__text:Zc,deliveryInfo__title:Jc,deliveryInfo__subtitle:el,deliveryInfo__tooltipIcon:tl,deliveryInfo__tooltip:nl,freightGrid:rl,freightContainer:ol,freightOption__content:sl,freightOption__value:al,freightOption__title:il,freightOption__title_item:cl,freightOption__paragraph:ll,"input-modifier":"_input-modifier_6z8rf_207","freight--tooltip":"_freight--tooltip_6z8rf_227"},ul=({icon:e,title:t,subtitle:n,packageCount:r,packageUnit:s="",labelDescription:a,freightConfig:i,toolTipZIndex:c})=>{const[l,u]=x.useState(!1),f=x.useRef(null),m=()=>u(d=>!d);return o.jsxs("div",{className:L.deliveryInfo,ref:f,children:[o.jsx(p.Tooltip.Root,{arrow:"bottom",component:o.jsx("div",{children:o.jsx("p",{children:i.messages.select_size_tag})}),id:"freight--tooltip",className:L["freight--tooltip"],style:{zIndex:c},isOpen:!0,size:"medium",position:"top",top:"-170%",left:"4%",parent:f.current}),o.jsxs("div",{className:L.deliveryInfo__content,children:[o.jsx("div",{className:L.deliveryInfo__icon,children:o.jsx(p.Icon,{name:e,size:"medium"})}),o.jsxs("div",{className:L.deliveryInfo__text,children:[o.jsxs("span",{className:L.deliveryInfo__title,children:[t," ",r," ",s]}),n&&o.jsx("span",{className:L.deliveryInfo__subtitle,children:n})]}),a&&o.jsxs("div",{className:L.deliveryInfo__tooltipIcon,onMouseEnter:m,onMouseLeave:m,"aria-label":"Mostrar descrição",children:[o.jsx("span",{children:o.jsx(p.Icon,{name:i.icons.feedback_help,size:"small"})}),l&&o.jsx("div",{className:L.deliveryInfo__tooltip,children:a})]})]})]})},dl=({value:e,title:t,paragraph:n})=>o.jsx("div",{className:L.freightOption,children:o.jsxs("div",{className:L.freightOption__content,children:[o.jsx("span",{className:L.freightOption__value,children:e}),o.jsx("span",{className:L.freightOption__title,children:o.jsx(p.TextStructure.Root,{children:o.jsxs(p.TextStructure.DivWrapper,{className:L.footer__item,children:[o.jsx("span",{className:L.freightOption__title_item,children:t}),n&&o.jsx("span",{className:L.freightOption__paragraph,children:n})]})})})]})}),fl=({children:e})=>o.jsx("div",{className:L.freightContainer,children:e}),ml=({children:e})=>o.jsx("div",{className:L.freightGrid,children:e}),pl=({children:e})=>o.jsx("div",{className:L.postalCodeContainer,children:e}),Ir=({message:e,seller:t="",size:n="small",setError:r})=>o.jsx("div",{className:r?L.deliveryStatusBarError:L.deliveryStatusBar,children:o.jsxs(p.Tag,{title:e,className:r?L.deliveryStatusBarError__tag:L.deliveryStatusBar__tag,size:n,children:[e," ",!r&&t]})}),hl=e=>{const t=parseInt(e,10);return t===1?`${t} dia`:`${t} dias`},_l=e=>{var n,r,s;const t=[];return(s=(r=(n=e==null?void 0:e.logisticsInfo)==null?void 0:n[0])==null?void 0:r.slas)==null||s.forEach(a=>{t.push({id:a.id,name:a.name,price:a.price,shippingEstimate:a.shippingEstimate})}),t},gl=({component:e,parent:t,top:n,left:r,target:s,contentRef:a,freightConfig:i,toolTipZIndex:c=999,...l})=>{const{isMobile:u}=pe();return o.jsx(o.Fragment,{children:u?o.jsx(p.Tooltip.Root,{arrow:"bottom",component:o.jsxs("div",{...l,ref:a,children:[e,o.jsx("p",{children:i.messages.select_size_tag})]}),id:"freight--tooltip",className:L["freight--tooltip"],style:{zIndex:c},isOpen:!0,size:"medium",position:"top",top:"-170%",left:"4%",parent:t}):o.jsx(p.Tooltip.Root,{arrow:"bottom",component:o.jsxs("div",{...l,ref:a,children:[e,o.jsx("p",{children:i.messages.select_size_tag})]}),id:"freight--tooltip",className:L["freight--tooltip"],style:{zIndex:c},isOpen:!0,size:"medium",position:"top",top:"-110%",left:"3%",parent:t})})},yl=({onUpdateFreightItems:e,sellerId:t,size:n,skuId:r,quantity:s,setError:a,setIsButtonClicked:i,component:c,freightConfig:l,toolTipZIndex:u})=>{var z,E,T,M;const f=we(),m=we(w=>w.shipping),[d,_]=x.useState(),[g,h]=x.useState(!1),[y,v]=x.useState(!1),[N,S]=x.useState(!1),b=(E=(z=f.shippingData)==null?void 0:z.address)==null?void 0:E.postalCode,C=!(d!=null&&d.length)&&b?b:d,j=x.useRef(null),I=async w=>{const q=w.target.value.replace(/\D/g,"").slice(0,8);q.length>5?_(q.replace(/^(\d{5})(\d{1,3})/,"$1-$2")):_(q)},P=async w=>{const k=w.target.value.replace(/\D/g,"");try{if((await On.get(`https://viacep.com.br/ws/${k}/json/`)).data.erro){a&&a(l.messages.cep_not_found),i(!1),v(!0);return}a&&a(""),v(!1)}catch{console.log("Erro ao validar o CEP. Tente novamente mais tarde.")}},R=async()=>{h(!0);try{const w=await On.post("/api/checkout/simulation",{items:[{id:r,quantity:s,seller:t}],country:"BRA",postalCode:C});e(_l(w.data))}catch(w){console.error("Erro ao atualizar o documento:",w)}finally{h(!1),m(C,"BRA")}},O=async()=>{if(!r){S(!0),setTimeout(()=>S(!1),1500);return}await P({target:{value:C}}),g||(R(),i(!0))};return o.jsxs("div",{ref:j,style:{position:"relative"},children:[!r&&N?o.jsx(gl,{component:c,isOpen:N,parent:j.current,toolTipZIndex:u,freightConfig:l}):o.jsx(o.Fragment,{}),o.jsx("div",{style:{position:"relative"},children:o.jsx(p.TextField.Structure,{title:"structure",style:{width:"100%"},input:o.jsx(p.TextField.Input,{defaultValue:(M=(T=f.shippingData)==null?void 0:T.address)==null?void 0:M.postalCode,label:l.messages.text_input_label,title:"textfield",value:d,sizeVariant:n,onMouseOver:()=>r?null:S(!0),onMouseOut:()=>r?null:S(!1),mode:"simple",onChange:I,onKeyDown:w=>{w.key==="Enter"&&O()},className:L["input-modifier"],feedback:y?"error":"none"}),right:o.jsx(p.Button,{onClick:O,size:n,title:"button",children:g?o.jsx(p.Spinner,{size:"small",indicatorColor:"#ffffff"}):l.messages.text_input_btn})})})]})},vl=({children:e,freightConfig:t})=>o.jsxs("div",{className:L.shippingFreight,children:[o.jsxs("div",{className:L.shippingFreight__grid,children:[o.jsx("span",{className:L.shippingFreight__grid__title,children:t.messages.title}),o.jsx("span",{className:L.shippingFreight__grid__remember,children:o.jsx(Oe,{href:"https://buscacepinter.correios.com.br/app/endereco/index.php",passHref:!0,target:"_blank",rel:"noopener noreferrer",size:"x-small",disablePadding:!1,title:t.messages.remember_cep,children:t.messages.remember_cep})})]}),o.jsx("div",{className:L.shippingFreight__postalCodeGrid,children:e})]}),xl=({children:e})=>o.jsx("div",{className:L.freightContainer,children:e}),bl=({className:e,sellerId:t,skuId:n,quantity:r,size:s,seller:a,local:i,CONSTANTS_PROPS:c})=>{const{sendDataLayerEvent:l}=F(),[u,f]=x.useState(""),[m,d]=x.useState([]),[_,g]=x.useState(""),[h,y]=x.useState(!1),v=S=>f(S),N=S=>{d(S),l({functionKey:"readyEvents",data:{event:"search_zipcode",readyData:{shippings:S.map(b=>({shipping_tier:b.id,delivery_time:b.shippingEstimate.replace("bd",""),flag_pickup:b.name.toLowerCase().includes("retirada")?"true":"false",shipping:b.price,currency:c.currency||"BRL"}))}}})};return o.jsxs(xl,{className:e,children:[o.jsxs(vl,{freightConfig:c.freightConfig,children:[o.jsx(pl,{children:o.jsx(yl,{onUpdateFreightItems:N,skuId:n,quantity:r,size:s,sellerId:t,local:i,setError:g,setIsButtonClicked:y,freightConfig:c.freightConfig,toolTipZIndex:c.toolTipZIndex})}),_?o.jsx(Ir,{size:s,message:_,setError:g}):m.length>0&&o.jsx(Ir,{size:s,message:c.freightConfig.messages.delivered_by,seller:a})]}),h&&!_?m.length>0&&o.jsxs(fl,{children:[o.jsx(ml,{children:m.filter(({id:S})=>!S.includes("Retirada")).map(S=>o.jsx(dl,{id:S.id,value:Tr({valueInCents:S.price,hasFree:!1,freeTaxMessage:c.freightConfig.messages.free_tax}),title:S.name,paragraph:`${c.freightConfig.messages.prefix_days}${hl(S.shippingEstimate)}`,radioValue:u,changeValue:v},S.id))}),c.deliveryInfoBoxesAllowed?o.jsx(ul,{icon:c.freightConfig.icons.delivery_truck,packageUnit:c.freightConfig.messages.unit_amout,title:c.freightConfig.messages.delivered_amount_packages,subtitle:"",packageCount:1,labelDescription:"Label",freightConfig:c.freightConfig,toolTipZIndex:c.toolTipZIndex??999}):o.jsx(o.Fragment,{})]}):null]})},Ns=x.createContext({}),Cl=({children:e,item:t,index:n,shelfTitle:r,...s})=>{const[a,i]=x.useState(null),c=x.useRef(null),l=x.useRef({availableSkus:[],priceInfo:{price:0,listPrice:0}}),{sendDataLayerEvent:u,itemListRef:f}=F(),m=h=>{u({functionKey:"productEvents",data:{commonData:{...t,availableSizes:l.current.availableSkus,...l.current.priceInfo},customData:{index:n+1},event:h}})},d=()=>{m("add_to_wishlist")},_=()=>{u({functionKey:"skuEvents",data:{event:"add_to_cart",commonData:{products:[{...t,...l.current.priceInfo}]},supportData:{selectedSku:a,selectedSkus:[a]},customData:{index:n}}})},g=()=>{r&&(f.current={item_list_name:r}),m("select_item")};return o.jsx(Ns.Provider,{value:x.useMemo(()=>({...s,index:n,item:t,element:c,selectedSku:a,setSelectedSku:i,eventDataRef:l,sendAddToWishlistEvent:d,sendSelectItemEvent:g,sendAddToCartEvent:_}),[s,t,c,a]),children:e})},ne=()=>{const e=x.useContext(Ns);if(e===void 0)throw new Error("useProductCardContext must be used within a ProductCardProvider");return e},X={"product-card--actions":"_product-card--actions_qxtc1_1","product-card--actions--group":"_product-card--actions--group_qxtc1_9","product-card--actions--selectors":"_product-card--actions--selectors_qxtc1_21","product-card--body":"_product-card--body_qxtc1_33","product-card--header":"_product-card--header_qxtc1_47","product-card--footer":"_product-card--footer_qxtc1_67","product-card--image":"_product-card--image_qxtc1_90","product-card--image--container":"_product-card--image--container_qxtc1_97","product-card--outstock":"_product-card--outstock_qxtc1_133","product-card--price":"_product-card--price_qxtc1_155","product-card--title":"_product-card--title_qxtc1_180","product-card--title--tag":"_product-card--title--tag_qxtc1_186","product-card--title--content":"_product-card--title--content_qxtc1_203","product-card--selectors--size":"_product-card--selectors--size_qxtc1_243","product-card--selectors--size--button":"_product-card--selectors--size--button_qxtc1_269","product-card--selectors--size--skus":"_product-card--selectors--size--skus_qxtc1_278","product-card--selectors--style":"_product-card--selectors--style_qxtc1_292","product-card--selectors--style--more":"_product-card--selectors--style--more_qxtc1_302","product-card--video":"_product-card--video_qxtc1_319","product-card--wrapper":"_product-card--wrapper_qxtc1_345"},Ps=({callback:e,children:t,className:n,data:r,isKit:s,...a})=>{const{item:{availability:{status:i},image:c}}=ne();return i?o.jsxs("div",{...a,className:p.helpers.classNameConcat(X["product-card--actions"],n),children:[o.jsxs(Pe.Wrapper,{type:"actions--group",children:[o.jsx(Pe.Price,{}),o.jsx("div",{className:X["product-card--actions--selectors"],children:!s&&o.jsx(Pe.StyleSelector,{data:r,images:c,callback:e})})]}),t]}):null};Ps.displayName="ProductCard.Actions";const ws=({className:e,isKit:t,...n})=>{const{addToCart:r}=Te(),{isMobile:s=!1,selectedSku:a,outStock:i,item:c,sendAddToCartEvent:l,CONSTANTS:u}=ne(),f=()=>{var _;if(!a)return;const d=kr(a.offers.offers,u.StoreConfig_MainSellerId);d&&r({id:a==null?void 0:a.sku,quantity:1,seller:d.seller.identifier},{id:c.id,texture:(_=c==null?void 0:c.image.find(g=>u.TEXTURE_IMAGE.includes(g.alternateName)))==null?void 0:_.url}),l()},m=a?u.BUY_BUTTON_LABELS.add_to_cart:u.BUY_BUTTON_LABELS.select_size;return o.jsx(p.Button,{...n,className:p.helpers.classNameConcat(e,"buy-button"),disabled:!t&&!a&&!i,size:s?"medium":"large",variant:i?"secondary":"primary",onClick:i?n.onClick:f,children:i?"Avise-me quando chegar":m})};ws.displayName="ProductCard.Actions.BuyButton";const Es=({product:e,tag:t,size:n="small"})=>{const r=e.offers.offers[0],{CONSTANTS:s,WishListToggle:a}=ne();return o.jsxs(Pe.Wrapper,{type:"header",style:{zIndex:s.Z_INDEX_WAR.product_card_header},children:[t?o.jsx(p.Tag,{title:t.value,adornment:{start:t.enableIcon&&t.icon?o.jsx(p.Icon,{name:t.icon,size:"small",style:{color:t.iconColor}}):null},size:n,variant:"quaternary",style:{background:t.tagColor,color:t.textColor},children:t.value}):null,s.PRODUCT_CARD_TOP_WISHLIST_TOGGLE&&o.jsx(a,{product:e,priceInfo:{price:r.price,listPrice:r.listPrice},variant:"card"})]})};Es.displayName="ProductCard.Actions.Header";const Rs=({className:e,children:t,hasPriority:n=!1,showVideo:r=!1,...s})=>{const{element:a,index:i,item:{image:c,slug:l,video:u},sendSelectItemEvent:f,order:m,CONSTANTS:d}=ne(),_=qr({images:c,label:{first:d.MAIN_IMAGE,second:d.SECOND_IMAGE}});return o.jsxs("div",{...s,className:p.helpers.classNameConcat(X["product-card--image"],e),ref:a,style:{aspectRatio:d.PRODUCT_CARD_IMAGE_ASPECT_RATIO},children:[o.jsx(te,{href:`/${l}/p`,onClick:f,onMouseUp:g=>{g.button===1&&f(),d.PLP_INFINITE_SCROLL&&sessionStorage.setItem(d.PLP_GRID_SCROLL_BACK.order,String(m))},children:o.jsx("div",{className:X["product-card--image--container"],children:Array.isArray(_)&&_.map(({url:g,alternateName:h},y)=>x.createElement(ie.Image,{...d.PRODUCT_IMAGE_DIMENSIONS.product_card,style:d.PRODUCT_IMAGE_DIMENSIONS.product_card,alt:h??"product image",key:y,...n&&{priority:y===0&&i<4},objectFit:"cover",src:g}))})}),d.PLP_SHOW_VIDEO_ON_PRODUCT_CARD&&r&&u&&o.jsx(Pe.Video,{url:u,poster:_[0].url}),t]})};Rs.displayName="ProductCard.Media.Media";const Ts=({className:e,callback:t,children:n,...r})=>{const{isMobile:s,item:a,CONSTANTS:{PRODUCT_CARD_TEXTS:i}}=ne(),{availability:{status:c}}=a;return c?null:o.jsxs("div",{...r,className:p.helpers.classNameConcat(X["product-card--outstock"],e),children:[o.jsx(p.Tag,{size:"small",variant:"secondary",title:i.disabled,children:i.disabled}),o.jsx(p.Button,{className:p.helpers.classNameConcat(e,"buy-button"),size:s?"medium":"large",variant:"quaternary",onClick:()=>{typeof t=="function"&&t(a)},children:i.notify})]})};Ts.displayName="ProductCard.OutStock";const Os=({children:e,className:t="",index:n,isMobile:r=!1,item:s,size:a,order:i,outStock:c,shelfTitle:l,CONSTANTS:u,WishListToggle:f,...m})=>o.jsx(Cl,{item:s,isMobile:r,outStock:c,order:i,size:a,index:n,shelfTitle:l,CONSTANTS:u,WishListToggle:f,children:o.jsx("div",{...m,className:p.helpers.classNameConcat(X["product-card--wrapper"],t),"data-size":a,children:e})});Os.displayName="ProductCard.Root";const As=({disabled:e,label:t,size:n,value:r,onClick:s,...a})=>o.jsxs(p.ToggleSize.Wrapper,{...a,disabled:!1,outOfStock:e,size:n,onClick:s,children:[o.jsx(p.ToggleSize.DisabledAdornment,{}),o.jsx(p.ToggleSize.Text,{children:t})]});As.displayName="ProductCard.SizeSelector.Item";const Ms=({active:e=!1,callback:t,selectedSku:n=null,item:r,setNotify:s})=>{const{item:a,isMobile:i,setSelectedSku:c,eventDataRef:l}=ne();r.productId=a.id;const u=Mr(r),f=Or(r,"tamanho");!u&&!l.current.availableSkus.includes(f)&&l.current.availableSkus.push(f);const m=x.useCallback(_=>{const g=n===_?null:_;typeof c=="function"&&c(g),typeof t=="function"&&t(g)},[t,c,n]),d=x.useCallback(()=>{if(u&&typeof s=="function"){s(a,r);return}m(r)},[r,s,m,u,a]);return o.jsx(As,{active:e,disabled:u,label:f,onClick:()=>d(),size:i?"x-small":"small",value:r})};Ms.displayName="ProductCard.SizeSelector.SkuItem";const ks=({callback:e,className:t="",children:n,setNotify:r,...s})=>{const{isMobile:a,item:{isVariantOf:{hasVariant:i}},selectedSku:c}=ne();return o.jsxs("div",{...s,className:p.helpers.classNameConcat(X["product-card--selectors--size"],t),"data-mobile":a,children:[o.jsx("div",{className:X["product-card--selectors--size--skus"],children:Array.isArray(i)&&i.map((l,u)=>o.jsx(Ms,{active:c===l,callback:e,item:l,selectedSku:c,setNotify:r},`size--${u}--${l.sku}`))}),o.jsx("div",{className:X["product-card--selectors--size--button"],children:n})]})};ks.displayName="ProductCard.SizeSelector";const sn=({alt:e="",callback:t,more:n,total:r=4,src:s,url:a,...i})=>o.jsxs(p.ToggleStyle.Wrapper,{...i,onClick:()=>{typeof t=="function"&&t(a)},children:[o.jsx(p.ToggleStyle.DisabledAdornment,{}),o.jsxs(p.ToggleStyle.Texture,{children:[s&&o.jsx(ie.Image,{alt:e??s,src:s,height:34,width:34}),n&&o.jsx(p.TextStructure.DivWrapper,{className:X["product-card--selectors--style--more"],children:o.jsxs("p",{children:["+ ",r]})})]})]}),jl=({children:e,callback:t,data:n,total:r=4,size:s,...a})=>{const{index:i}=ne(),{triggerSelectItemEventRef:c}=F();return o.jsxs("div",{...a,children:[e,Array.isArray(n)&&n.slice(0,r).map((l,u)=>o.jsx(sn,{callback:f=>{c.current.trigger=!0,c.current.index=i,typeof t=="function"&&t(f)},src:(l==null?void 0:l.textureImage)??"",alt:l==null?void 0:l.textureAlt,url:l==null?void 0:l.slug,size:s},u)),Array.isArray(n)&&(n==null?void 0:n.length)>r&&o.jsx(sn,{size:s,total:n.length-r,more:!0})]})},Ds=({callback:e,className:t,data:n,images:r=[],findTexture:s,...a})=>{const{CONSTANTS:i}=ne(),c=s||i.TEXTURE_IMAGE,l=r==null?void 0:r.find(u=>c.includes(u.alternateName));return o.jsx(jl,{...a,callback:e,className:p.helpers.classNameConcat(X["product-card--selectors--style"],t),data:n,size:"x-small",children:l&&o.jsx(sn,{active:!0,size:"x-small",src:l.url})})};Ds.displayName="ProductCard.StyleSelector";const Ls=({className:e,hasDecimal:t,...n})=>{const{isMobile:r,item:{offers:{lowPrice:s,highPrice:a},installments:{count:i,value:c}},eventDataRef:l}=ne();l.current.priceInfo={price:s,listPrice:a};const u=me(a,t),f=me(s,t),m=me(c??0),d=r?"horizontal":"stacked";return o.jsx("div",{...n,className:p.helpers.classNameConcat(X["product-card--price"],e),"data-mobile":r,children:o.jsx(p.ProductInfo.Root,{size:"small",layout:d,children:o.jsxs(p.ProductInfo.Wrapper,{size:"small",layout:d,children:[o.jsx(p.ProductInfo.ValuesWrapper,{children:f!==u?o.jsxs(o.Fragment,{children:[o.jsx(p.ProductInfo.Price,{label:"originalPrice",value:u,size:"small"}),o.jsx(p.ProductInfo.Price,{label:"discountPrice",value:f,size:"small"})]}):o.jsx(p.ProductInfo.Price,{label:"defaultPrice",value:f,size:"small"})}),i&&i>1&&c?o.jsx(p.ProductInfo.Price,{label:"installment",value:`${i}x ${m}`,size:"small"}):null]})})})};Ls.displayName="ProductCard.Price";const zs=({tag:e,className:t})=>{const{item:{name:n}}=ne();return o.jsxs("div",{className:p.helpers.classNameConcat(X["product-card--title"],t),children:[o.jsx("div",{className:X["product-card--title--tag"],children:e?o.jsx(p.Tag,{size:"small",title:e.value,variant:"quaternary",adornment:{start:e.enableIcon&&e.icon?o.jsx(p.Icon,{name:e.icon,style:{color:e.iconColor}}):null},style:{background:e.tagColor,color:e.textColor},children:e.value}):o.jsx("div",{})}),o.jsx("div",{className:X["product-card--title--content"],children:n&&o.jsx(p.TextStructure.Root,{children:o.jsx(p.TextStructure.DivWrapper,{children:o.jsx("h3",{children:n})})})})]})};zs.displayName="ProductCard.Title";const qs=({className:e,url:t,poster:n,...r})=>{const{element:s}=ne();return x.useEffect(()=>{if(!(s!=null&&s.current))return;const a=s.current,i=a.querySelector("video");if(i){const c=new IntersectionObserver(f=>{f.forEach(m=>{$r(m.isIntersecting,i,t)})},{root:null,rootMargin:"0px",threshold:.5}),l=()=>{i.setAttribute("data-loaded","true")},u=()=>{a&&(c.observe(a),i.addEventListener("loadeddata",l))};return document.readyState==="complete"?u():window.addEventListener("load",u),()=>{c.disconnect(),window.removeEventListener("load",u)}}return()=>null},[t,s]),o.jsx("div",{...r,className:p.helpers.classNameConcat(X["product-card--video"],e),children:t&&o.jsx(ie.Video,{autoPlay:!1,muted:!0,loop:!0,preload:"none",playsInline:!0,poster:n})})};qs.displayName="ProductCard.Media.Video";const $s=({children:e,className:t,type:n,...r})=>o.jsx("div",{...r,className:p.helpers.classNameConcat(X[`product-card--${n}`],t),children:e});$s.displayName="ProductCard.Wrapper";const Pe={Actions:Ps,BuyButton:ws,Header:Es,Media:Rs,Root:Os,OutStock:Ts,Price:Ls,SizeSelector:ks,StyleSelector:Ds,Title:zs,Video:qs,Wrapper:$s},Nr=({image:e,index:t,handleZoom:n,PRODUCT_IMAGE_DIMENSIONS:r})=>{const s=Lr(e.imageUrl,r.pdp),{nextimage:a}=ae();return o.jsx(a,{src:s,alt:e.imageLabel,objectFit:"contain",...r.pdp,...t<=1&&{priority:!0,loading:"eager"},onClick:()=>{n(t)}},t)},Sl=({video:e,productName:t,poster:n})=>{const{sendDataLayerEvent:r}=F(),s=x.useRef(!1);return o.jsx(ie.Video,{src:e,autoPlay:!0,muted:!0,loop:!0,playsInline:!0,style:{zIndex:-1,aspectRatio:"2/3"},onPlaying:()=>{s.current||(s.current=!0,r({functionKey:"readyEvents",data:{event:"video_start",readyData:{product:t}}}))},poster:n})},Il={"gallery-carousel-modifier":"_gallery-carousel-modifier_1pjec_92"},Bs=({images:e,video:t,handleZoom:n,productName:r,PRODUCT_IMAGE_DIMENSIONS:s})=>{var u,f;const{initialize:a,pagination:i,controller:c,itemsStyles:l}=p.Carousel.useCarousel({gap:0,itemsPerPage:1,loop:!1,direction:"row"});return o.jsxs(p.Carousel.Root,{innerRef:m=>{a(m)},className:Il["gallery-carousel-modifier"],children:[o.jsx(p.Carousel.Controller,{position:"absolute",top:"24px",bottom:"unset",left:"16px",children:o.jsx(p.Carousel.Bullets,{page:i.currentPage,total:e.length,onBulletClick:m=>c==null?void 0:c.navigateTo(m)})}),o.jsxs(p.Carousel.Body,{children:[o.jsx(p.Carousel.Item,{style:l,children:o.jsx(Nr,{image:e[0],index:0,handleZoom:n,PRODUCT_IMAGE_DIMENSIONS:s})},"PDP_gallery_0"),t&&o.jsx(p.Carousel.Item,{style:l,children:o.jsx(Sl,{video:t,productName:r,...((u=e[1])==null?void 0:u.imageUrl)&&{poster:(f=e[1])==null?void 0:f.imageUrl}})},"PDP_gallery_video"),e.map((m,d)=>d===0?null:o.jsx(p.Carousel.Item,{style:l,children:o.jsx(Nr,{image:m,index:d,handleZoom:n,PRODUCT_IMAGE_DIMENSIONS:s})},`PDP_gallery_${d}`))]})]})};Bs.displayName="PDP.Carousel";const Nl=({productImgs:e,PRODUCT_IMAGE_DIMENSIONS:t})=>{const{video:n,productName:r}=un(),[s,a]=x.useState({show:!1,initialIndex:0});x.useEffect(()=>(s.show?document.body.classList.add("no-scroll"):document.body.classList.remove("no-scroll"),()=>{document.body.classList.remove("no-scroll")}),[s]);const i=c=>{a({show:!0,initialIndex:c})};return o.jsx(o.Fragment,{children:o.jsx(Bs,{images:e,video:n,handleZoom:i,productName:r,PRODUCT_IMAGE_DIMENSIONS:t})})},Fs=({TEXTURE_IMAGE:e,PRODUCT_IMAGE_DIMENSIONS:t})=>{const{images:n}=un(),r=x.useMemo(()=>{const s=n.filter(a=>!e.includes(a.imageLabel));return s.length>0?s:n},[]);return o.jsx(Nl,{productImgs:r,PRODUCT_IMAGE_DIMENSIONS:t})};Fs.displayName="PDP.Gallery";const Pl=Object.freeze(Object.defineProperty({__proto__:null,Gallery:Fs},Symbol.toStringTag,{value:"Module"})),wl={"snackbar-modifier":"_snackbar-modifier_1va2l_1"},Sn=({size:e,adornment:t,title:n,subtitle:r,supportChildren:s,className:a,Z_INDEX_WAR:i,...c})=>o.jsxs(p.SnackBar.Structure,{...c,size:e,className:p.helpers.classNameConcat(wl["snackbar-modifier"],a),width:360,style:{zIndex:i.snackbar},children:[o.jsx(p.SnackBar.Content,{adornment:t,title:n,subtitle:r}),s&&o.jsx(p.SnackBar.Support,{children:s})]});Sn.displayName="SnackBar";const Hs=x.createContext({}),El=({data:e,children:t,...n})=>{var g,h,y,v,N,S,b,C,j,I,P,R,O;const[r,s]=x.useState(!0),{initialize:a,controller:i,itemsStyles:c}=p.Carousel.useCarousel({gap:0,itemsPerPage:1}),l={slideTranstionTimer:(h=(g=e==null?void 0:e.staticConfig)==null?void 0:g.staticConfig)==null?void 0:h.slideTranstionTimer,showCarouselArrows:(v=(y=e==null?void 0:e.staticConfig)==null?void 0:y.staticConfig)==null?void 0:v.showCarouselArrows,hasCloseBtn:(S=(N=e==null?void 0:e.staticConfig)==null?void 0:N.staticConfig)==null?void 0:S.hasCloseBtn,backgroundColor:(C=(b=e==null?void 0:e.staticConfig)==null?void 0:b.staticConfig)==null?void 0:C.backgroundColor,textColorVariant:(I=(j=e==null?void 0:e.staticConfig)==null?void 0:j.staticConfig)==null?void 0:I.textColorVariant,content:((R=(P=e==null?void 0:e.content)==null?void 0:P.content)==null?void 0:R.items)??[]},u=(O=l.content)==null?void 0:O.filter(z=>!z.countDownEndDate||new Date(z.countDownEndDate)>new Date),f=u.length>1,m={...l.backgroundColor?{backgroundColor:l.backgroundColor}:{}},d=()=>{s(!1)},_=p.helpers.ValidateProp({fieldTypes:ze.Mode,property:l.textColorVariant,fallback:"default"});return o.jsx(Hs.Provider,{value:{isOpen:r,setIsOpen:s,hasCarousel:f,backgroundStyle:m,handleCloseTipbar:d,mode:_,slideTranstionTimer:l.slideTranstionTimer,showCarouselArrows:l.showCarouselArrows,hasCloseBtn:l.hasCloseBtn,slices:u,carouselProps:{initialize:a,controller:i,itemsStyles:c},...n},children:t})},ge=()=>x.useContext(Hs),Rl=({dateEnd:e,...t})=>{const{CONSTANTS:{TIME_ZONE:n}}=ge();return o.jsx(tn,{dateEnd:new Date(e),TIME_ZONE:n,...t})},Tl="_tipbar_bt3p0_1",Ol="_tipbar__carousel_bt3p0_15",We={tipbar:Tl,tipbar__carousel:Ol,"tipbar__close-btn":"_tipbar__close-btn_bt3p0_29","tipbar-item":"_tipbar-item_bt3p0_37","tipbar-item__coupon":"_tipbar-item__coupon_bt3p0_45"},Al=({coupon:e,feedbackTitle:t,feedbackDescription:n,...r})=>{const{CONSTANTS:s}=ge(),[a,i]=x.useState({status:!1,showSnackBar:!1}),c=()=>{i({status:!0,showSnackBar:!0})};return x.useEffect(()=>{a.status&&setTimeout(()=>{i({status:!0,showSnackBar:!1})},s.TIPBAR_CONFIGS.snackbar_timeout)},[a]),o.jsxs(o.Fragment,{children:[o.jsx(p.Button,{...r,onClick:c,disabled:a.status,className:We["tipbar-item__coupon"],children:a.status?"Cupom aplicado":"Aplicar cupom"}),a.showSnackBar&&(t||n)&&o.jsx(Sn,{title:t,subtitle:n,Z_INDEX_WAR:s.Z_INDEX_WAR},`feedback-coupon-${e}`)]})},Ml=({title:e,description:t,style:n,mode:r})=>o.jsx(p.TextStructure.Root,{children:o.jsxs(p.TextStructure.DivWrapper,{mode:r,children:[e&&o.jsx("h3",{className:"typography-style-body-sm",style:n,children:e}),t&&o.jsx("p",{className:"typography-style-caption",style:n,children:t})]})}),kl=({staticZone:e,type:t,title:n,description:r})=>{const{mode:s}=ge();if(t==="countdown")return o.jsx(Rl,{dateEnd:e.countDownEndDate,size:"x-small",mode:s});if(t==="coupon"){const a=p.helpers.ValidateProp({fieldTypes:ze.Mode,property:e.couponButtonMode,fallback:"default"}),i=p.helpers.ValidateProp({fieldTypes:ze.VariantsExtended,property:e.couponButtonVariant,fallback:"primary"});return e.coupon?o.jsx(Al,{coupon:e.coupon,mode:a,variant:i,feedbackTitle:e.couponFeedbackTitle,feedbackDescription:e.couponFeedbackDescription}):null}return o.jsx(Ml,{title:n,description:r,mode:s})},Dl=({children:e,mode:t="default",showCarouselArrows:n=!0,slideTranstionTimer:r})=>{const{carouselProps:s,CONSTANTS:a}=ge(),i=x.useRef(null),c=(u,f)=>{var m,d;u.stopPropagation(),u.preventDefault(),f==="prev"?(m=s.controller)==null||m.prevPage():(d=s.controller)==null||d.nextPage(),i.current&&(clearInterval(i.current),l())},l=x.useCallback(()=>{if(r&&s.controller){const u=setInterval(()=>{var f;(f=s.controller)==null||f.nextPage()},r);i.current=u}},[r,s]);return x.useEffect(()=>(l(),()=>{i.current&&clearInterval(i.current)}),[r,l]),o.jsxs(p.Carousel.Root,{innerRef:u=>{s.initialize(u)},className:We.tipbar__carousel,style:{flexDirection:"row",alignItems:"center"},children:[n&&o.jsx(p.Button,{variant:"tertiary",mode:t,onClick:u=>c(u,"prev"),adornment:{start:o.jsx(p.Icon,{name:a.ICONS.arrow_left})}}),o.jsx(p.Carousel.Body,{children:e}),n&&o.jsx(p.Button,{variant:"tertiary",mode:t,onClick:u=>c(u,"next"),adornment:{start:o.jsx(p.Icon,{name:a.ICONS.arrow_right})}})]})},Pr=({handleCloseTipbar:e,mode:t})=>{const{CONSTANTS:n}=ge();return o.jsx(p.Button,{title:"fechar tipbar",className:We["tipbar__close-btn"],onClick:e,variant:"tertiary",mode:t,adornment:{start:o.jsx(p.Icon,{name:n.ICONS.close})}})},Ll=({children:e})=>{const{hasCarousel:t,mode:n,hasCloseBtn:r,backgroundStyle:s,showCarouselArrows:a,slideTranstionTimer:i,handleCloseTipbar:c}=ge(),l=t&&a;return o.jsx("div",{style:s,"data-hasclosebtn":r,className:We.tipbar,children:t?o.jsxs(o.Fragment,{children:[o.jsx(Dl,{mode:n,showCarouselArrows:l,slideTranstionTimer:i,children:e}),r&&o.jsx(Pr,{handleCloseTipbar:c,showCarouselArrows:l,mode:n})]}):o.jsxs(o.Fragment,{children:[e,r&&o.jsx(Pr,{handleCloseTipbar:c,mode:n})]})})},zl=({children:e,highlightFirstSection:t,...n})=>{const{hasCarousel:r,carouselProps:s}=ge(),a=o.jsx("div",{...n,className:We["tipbar-item"],children:e});return r?o.jsx(p.Carousel.Item,{style:s.itemsStyles,children:a}):a},Us=()=>{const{isOpen:e,slices:t}=ge();return t.length&&e?o.jsx(Ll,{children:t.map((n,r)=>{var s;return o.jsx(o.Fragment,{children:o.jsx(Ue,{href:n.link,children:o.jsx(zl,{highlightFirstSection:n.highlightFirstSection,"data-justifyhighlightedsection":n.horizontalAlignHighlightedSection?n.horizontalAlignHighlightedSection:"center",children:n&&((s=n==null?void 0:n.items)!=null&&s.length)?n.items.map((a,i)=>o.jsx(kl,{staticZone:n,type:a.type,title:a.title,description:a.description},`tipbar-slice-field-${i}`)):null})})},`tipbar-slice-${r}`)})}):null};Us.displayName="TipBar.Root";const Ws=e=>o.jsx(El,{...e,children:o.jsx(Us,{})});Ws.displayName="TipBar";const ql={teamComponents:{AddToCart:vn,BackToTop:nc,Footer:as,FreightCalculation:bl,Header:Is,Link:Oe,Media:ie,ProductCard:Pe,TipBar:Ws},template:{pdp:Pl},utils:{EventCollector:rc,ExternalScripts:hc,LinkOrNotLink:Ue,ObserverWrapper:yn,SnackBarComponent:Sn}};exports.cms=Qi;exports.contexts=Va;exports.data=ko;exports.layout=ql;