@soma-vertical-web/multi-lib 0.0.41 → 0.0.43
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.
- package/Footer-93X9fl_J.mjs +7055 -0
- package/Footer-BjB3blIh.mjs +6956 -0
- package/Footer-By1Gk2Ku.mjs +7050 -0
- package/Footer-CZqTxkCn.js +41 -0
- package/Footer-D3zDoa2N.mjs +6961 -0
- package/Footer-DfAuGt3s.js +41 -0
- package/Footer-TLfR7lta.js +41 -0
- package/Footer-rMb9FYog.js +41 -0
- package/cms/ContentTypes/Footer/Footer.d.ts +1 -1
- package/cms/ContentTypes/PLP/PLPContent.d.ts +1 -1
- package/cms/index.d.ts +0 -1
- package/cms/server.d.ts +2 -2
- package/contexts/contexts/cms/PLPContentContext.d.ts +4 -0
- package/contexts/contexts/plp/PLPInfiniteContext.tsx.d.ts +1 -1
- package/contexts/index.d.ts +1 -1
- package/data/helpers/plp/index.d.ts +1 -1
- package/data/index.d.ts +2 -0
- package/index.js +43 -3
- package/index.mjs +12440 -4797
- package/index2.js +1 -1
- package/index2.mjs +535 -532
- package/layout/index.d.ts +15 -0
- package/package.json +1 -1
- package/style.css +1 -1
- package/types/cms/ContentTypes/Footer/index.d.ts +3 -0
- package/types/cms/ContentTypes/PLP/index.d.ts +1 -0
- package/types/constants.d.ts +13 -5
- package/types/contexts/contexts/plp.d.ts +8 -4
- package/types/layout/team-components/ProductList/index.d.ts +24 -3
- package/types/layout/utils/index.d.ts +1 -1
package/index.js
CHANGED
|
@@ -1,4 +1,44 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("react/jsx-runtime"),f=require("react"),x=require("./Footer-okPVOqRy.js"),Pe=require("zustand"),d=require("@soma-vertical-web/core-components"),kr=require("js-cookie"),Ar=require("jose"),de=require("@soma-vertical-web/foundations"),pt=require("axios"),Tr=require("react-dom"),Q=require("draft-js"),ft=require("@date-fns/tz"),Ke=f.createContext({}),Mr=({data:e,children:n})=>t.jsx(Ke.Provider,{value:{tags:e==null?void 0:e.config},children:n}),Xe=()=>{const{tags:e}=f.useContext(Ke),n=f.useCallback(r=>{var l,i,c,u;const s=(i=(l=e==null?void 0:e.commercial)==null?void 0:l.items)==null?void 0:i.find(m=>{var h;return(h=r??[])==null?void 0:h.find(p=>p.id===m.key)}),o=(u=(c=e==null?void 0:e.institucional)==null?void 0:c.items)==null?void 0:u.find(m=>{var h;return(h=r??[])==null?void 0:h.find(p=>p.id===m.key)}),a=e==null?void 0:e.flagPdp;return{commercial:s,institucional:o,flagPdp:a}},[e]);return{tags:e,getAvailableProductTag:n}},Mt=({gridScrollBack:e})=>{f.useEffect(()=>{typeof window<"u"&&(e!=null&&e.refer)&&sessionStorage.setItem(e==null?void 0:e.refer,"true")},[])},Rt=f.createContext({}),Rr=({children:e,gridScrollBack:n})=>{const r=f.useRef(null);return Mt({gridScrollBack:n}),t.jsx(Rt.Provider,{value:{sizesContainerRef:r},children:e})},Or=()=>{const e=f.useContext(Rt);if(e===void 0)throw new Error("useContext(PDPContext) must be used within a PDPProvider");return e},K=(e,n=!0)=>Intl.NumberFormat("pt-BR",{style:"currency",currency:"BRL",minimumFractionDigits:n?2:0}).format(e),Ye=({valueInCents:e,hasFree:n,freeTaxMessage:r})=>e===0?n?r:K(0):K(e/100),Ot=({items:e,NAME_SPLIT_SYMBOL:n})=>{const r={price:0,listPrice:0,installments:{count:0,value:0}},s=(l,i)=>{var p;i&&(i.sellerId=l.sellerId,i.sellerName=l.sellerName,i.available=!0,i.isSellerDefault=l.sellerDefault);const{Price:c,ListPrice:u,PaymentOptions:{installmentOptions:m}}=l.commertialOffer;r.price=c,r.listPrice=u;const h=(p=m==null?void 0:m[0])==null?void 0:p.installments;if(h){const{count:_,value:g}=h[h.length-1];r.installments={count:_,value:g/100}}};let o=!0;const a=e.reduce((l,i)=>{var m;const c={name:i.name,sku:i.itemId,value:((m=i.Tamanho)==null?void 0:m[0])??x.splitNameAndSizeFromFullName(i.nameComplete??i.name,n).size,available:!1,sellerId:"",sellerName:"",isSellerDefault:!1},u=i.sellers.filter(h=>(h.sellerDefault&&h.commertialOffer.IsAvailable&&(c.available=!0,s(h,c)),h.commertialOffer.IsAvailable));return!c.isSellerDefault&&u.length>0&&(c.available=!0,s(u[0],{...c,sellerId:u[0].sellerId,sellerName:u[0].sellerName})),c.available===!1&&(o=!1),l.push(c),l},[]);return{...r,sizes:a,allSizesAvailable:o}},Lt=e=>e?!e.offers.offers.find(({quantity:n=0})=>n>0):!1,Qe=(e,n)=>{const r=e.find(s=>s.availability.includes("InStock")&&s.quantity&&s.listPrice>0&&s.seller.identifier===n);return r||e.find(s=>s.availability.includes("InStock")&&s.quantity&&s.listPrice>0)},Dt=e=>e.find(n=>n.imageLabel==="10"),zt=(e,n)=>{const r=/\/ids\/(\d+)\//,s=e.match(r);return s?e.replace(`/${s[1]}/`,`/${s[1]}-${n.width}-${n.height}/`):e},Bt=(e,n)=>{const r=/\/ids\/(\d+)-(\d+)-(\d+)\//,s=e.match(r);return s?e.replace(`/${s[1]}-${s[2]}-${s[3]}/`,`/${s[1]}-${n.width}-${n.height}/`):e},$t=({images:e,label:n})=>{const r=e.filter(s=>s.keywords===n.first||s.keywords===n.second||s.alternateName===n.first||s.alternateName===n.second);return r.length===0?[e[0]]:r},Lr=e=>{const[n,r]=e.split("/").map(Number);if(Number.isNaN(n)||Number.isNaN(r))throw new Error("[ERROR ASPECT RATIO IMAGE]: Invalid aspect ratio format");return r/n},Ft=(e,n,r)=>{n&&(e?(n.getAttribute("src")||(n.src=r??""),n.play()):n.pause())},Dr=Object.freeze(Object.defineProperty({__proto__:null,disableSKU:Lt,formatPriceToCurrency:K,freightParsePrice:Ye,getAspectRatio:Lr,getColorAndSizeFromSkuName:x.getColorAndSizeFromSkuName,getFirstImages:$t,getProductNameWithoutSku:x.getProductNameWithoutSku,getSKUName:x.getSKUName,getSkuInfos:Ot,getThumbImage:Dt,getValidOffer:Qe,removeSlashes:x.removeSlashes,resizingImg:zt,setVideoPlay:Ft,splitNameAndSizeFromFullName:x.splitNameAndSizeFromFullName,updatedResizedImg:Bt},Symbol.toStringTag,{value:"Module"})),Ut=f.createContext({}),zr=({children:e,productData:n,isKit:r,PDP_INFO:s,NAME_SPLIT_SYMBOL:o})=>{var R,S;const{sendDataLayerEvent:a,triggerSelectItemEventRef:l}=x.useEventContext(),{productId:i,productName:c,items:u,items:[{images:m,Videos:h}],description:p,["Composição"]:_="",productReference:g,categories:[C]}=n,{getAvailableProductTag:y}=Xe(),v=y(Object.entries(n.clusterHighlights).map(E=>({id:E[0],name:E[1]}))),N=C.slice(1,-1).split("/"),{installments:j,price:w,listPrice:b,sizes:I,allSizesAvailable:k}=Ot({items:u,NAME_SPLIT_SYMBOL:o}),D=Dt(m),F=[{label:`${s.product.description}`,value:"description",content:p},{label:`${s.product.materiais}`,value:"composition",content:_}],M=((S=x.getColorAndSizeFromSkuName((R=n.items)==null?void 0:R[0].name,o))==null?void 0:S.color)??n["Cores Filtráveis"][0]??"",B=()=>({commonData:{...n,sizes:I,price:w,listPrice:b,installments:j},customData:{installments:j==null?void 0:j.count,installment_value:Number(j==null?void 0:j.value).toFixed(2)}}),V=({sku:E,size:A})=>{const{commonData:P,customData:$}=B();a({functionKey:"productEvents",data:{event:"view_item",commonData:P,customData:{...$,...E&&{item_sku:E},...A&&{item_variant2:A}}}})};return f.useEffect(()=>{if(l.current.trigger){const{commonData:E,customData:A}=B();a({functionKey:"productEvents",data:{event:"select_item",commonData:E,customData:{...A,index:l.current.index}}}),l.current.trigger=!1}V({})},[]),t.jsx(Ut.Provider,{value:{productData:n,productId:i,productName:c,productReference:g,tag:v,items:u,sizes:I,allSizesAvailable:k,installments:j,price:w,listPrice:b,thumbImage:D,images:m,video:h[0],descriptionContent:F,breadcrumbList:N,isKit:r,colorName:M,handleViewItemEvent:V},children:e})},Je=()=>{const e=f.useContext(Ut);if(e===void 0)throw new Error("useContext(PDPDataContext) must be used within a PDPDataProvider");return e},ae=(e,n)=>Pe.create(r=>{const s=()=>r({value:e});return n&&n instanceof Set&&n.add(s),{value:e,actions:{setValue:o=>r({value:o}),reset:s}}}),_e={category:null,menuMobileIsOpen:!1,searchModalIsOpen:!1,userMenuIsOpen:!1},xe=new Set,Br=()=>{xe.forEach(e=>{e()})},qt=Pe.create((e,n)=>{const r=()=>e({value:_e.category});return xe.add(r),{value:_e.category,actions:{reset:r,setValue:s=>e(()=>({value:s})),updateValue:s=>{n().value!==s&&e({value:s})}}}}),ke=()=>qt(e=>e.value),re=()=>qt(e=>e.actions),Vt=ae(_e.menuMobileIsOpen,xe),Ze=()=>Vt(e=>e.value),ie=()=>Vt(e=>e.actions),Gt=ae(_e.searchModalIsOpen,xe),$r=()=>Gt(e=>e.value),et=()=>Gt(e=>e.actions),Ht=ae(_e.userMenuIsOpen,xe),Wt=()=>Ht(e=>e.value),ye=()=>Ht(e=>e.actions),Fr=Object.freeze(Object.defineProperty({__proto__:null,resetAllHeaderStores:Br,useActionsHeaderCategory:re,useActionsMenuMobileIsOpen:ie,useActionsSearchModalIsOpen:et,useActionsUserMenuIsOpen:ye,useGetHeaderCategoryStore:ke,useGetMenuMobileIsOpen:Ze,useGetSearchModalIsOpen:$r,useGetUserMenuIsOpen:Wt},Symbol.toStringTag,{value:"Module"})),ue={selectedSkuInfo:{productId:"",name:"",size:"",sku:"",sellerId:"",sellerName:"",available:!1,quantity:1},openLetMeKnow:!1,openMeasurements:!1,showBottomNavigation:!1,showNotify:!1},me=new Set,Ur=()=>{me.forEach(e=>{e()})},Kt=Pe.create(e=>{const n=()=>e({value:ue.selectedSkuInfo});return me.add(n),{value:ue.selectedSkuInfo,actions:{setValue:r=>e(s=>({value:{...s,...r}})),reset:n}}}),qr=()=>Kt(e=>e.value),Vr=()=>Kt(e=>e.actions),Xt=ae(ue.openLetMeKnow,me),Gr=()=>Xt(e=>e.value),Hr=()=>Xt(e=>e.actions),Yt=ae(ue.showNotify,me),Wr=()=>Yt(e=>e.value),Kr=()=>Yt(e=>e.actions),Qt=ae(ue.showBottomNavigation,me),Xr=()=>Qt(e=>e.value),Yr=()=>Qt(e=>e.actions),Jt=ae(ue.openMeasurements,me),Qr=()=>Jt(e=>e.value),Jr=()=>Jt(e=>e.actions),Zr=Object.freeze(Object.defineProperty({__proto__:null,resetAllPDPStores:Ur,useActionsPDPOpenLetMeKnow:Hr,useActionsPDPOpenMeasurements:Jr,useActionsPDPSelectedSkuInfo:Vr,useActionsPDPShowBottomNavigation:Yr,useActionsPDPShowNotify:Kr,useGetPDPOpenLetMeKnow:Gr,useGetPDPOpenMeasurements:Qr,useGetPDPSelectedSkuInfo:qr,useGetPDPShowBottomNavigation:Xr,useGetPDPShowNotify:Wr},Symbol.toStringTag,{value:"Module"})),Zt=f.createContext({}),es=({children:e,headerData:n,...r})=>{var m,h;const s=f.useRef(null),o=f.useRef(null),a=f.useRef(null),l=f.useRef(null),i=f.useRef(null),{mediatorRef:c,currentHeaderConfigsRef:u}=x.useGlobalContext();return(m=c.current)==null||m.subscribe("header:change_variant",p=>{var v,N,j;if(p&&u.current&&(u.current.bannerVariant=p),!s.current)return;const g=document.body.scrollTop>0,C=s.current.getAttribute("data-interactiveVariant"),y=g?C:p??((v=u.current)==null?void 0:v.bannerVariant)??"default";y!==((N=u.current)==null?void 0:N.headerVariant)&&(s.current.setAttribute("data-bottomdivider",String(g)),s.current.setAttribute("data-variant",String(y)),(j=c.current)==null||j.publish("herobanner:change_controllers_variant",y),u.current&&(u.current.headerVariant=y))}),(h=c.current)==null||h.subscribe("header:change_position",p=>{s.current&&(s.current.style.position=p)}),f.useEffect(()=>{const p=new AbortController,_=d.helpers.throttle(()=>{var C;return(C=c.current)==null?void 0:C.publish("header:change_variant",null)},200);document.body.addEventListener("scroll",_,{passive:!0,signal:p.signal});const g=C=>{var v;(v=C.target.closest("a"))==null||v.blur()};return s.current&&(s.current.addEventListener("click",g,{signal:p.signal}),s.current.addEventListener("touchend",g,{signal:p.signal})),()=>{p.abort()}},[]),t.jsx(Zt.Provider,{value:{headerData:n,structureRef:o,rootRef:s,tipbarRef:a,userMenuMobileRef:l,userMenuDesktopRef:i,...r},children:e})},L=()=>f.useContext(Zt),en=f.createContext({}),tn=({children:e})=>{const n=f.useRef(null),r=f.useRef(null),s=Ze(),o=f.useCallback(()=>{var a;{const l=(a=n.current)==null?void 0:a.querySelector("dialog");if(l){l.dataset.animation="out";const i=l.children[0];i.dataset.animation="out"}}},[]);return f.useEffect(()=>{var a;if(s)document.body.dataset.modalopen="true";else{document.body.dataset.modalopen="false";const l=(a=r.current)==null?void 0:a.querySelector("dialog");if(l){l.dataset.animation="out";const i=l.children[0];i.dataset.animation="out"}}},[s]),f.useEffect(()=>{r.current=document.body},[]),t.jsx(en.Provider,{value:{bodyRef:n,handleCloseSubMenu:o,documentBodyRef:r},children:e})},Ce=()=>f.useContext(en),ts=e=>{if(!e||typeof window>"u")return 0;const n=window.getComputedStyle(e);return parseInt(n.padding,10)},ns=(e,n,r)=>{if(!(e instanceof HTMLElement)||!(n instanceof HTMLElement))return{left:0,top:0};const s=n.getBoundingClientRect(),o=e.getBoundingClientRect(),a=e!=null&&e.parentElement?ts(e==null?void 0:e.parentElement):0;return{left:s.left+s.width/2-(o.width+a),top:s.top+s.height+r}},nn=f.createContext({}),rn=({children:e,delay:n=600,gap:r=20,...s})=>{const[o,a]=f.useState(!1),l=f.useRef(null),[i,c]=f.useState(!1),[u,m]=f.useState({left:0,top:0}),h=f.useCallback(()=>{c(!0),typeof window<"u"&&(l.current=window.setTimeout(()=>{a(!1),c(!1)},n))},[c,a,n]);return f.useEffect(()=>{if(typeof window>"u")return;const p=window.document.querySelector("#cart-button"),_=window.document.querySelector("#add-to-cart--tooltip");if(p&&_){const{left:g,top:C}=ns(_,p,r??0);m({left:g,top:C}),c(!1)}},[r,o]),t.jsx(nn.Provider,{value:f.useMemo(()=>({...s,...u,handleClose:h,isLeaving:i,isOpen:o,setIsOpen:a,setIsLeaving:c}),[s,u,h,i,o,a,c]),children:e})},le=()=>{const e=f.useContext(nn);if(e===void 0)throw new Error("useAddToCartContext must be used within a AddToCartProvider");return e},sn=f.createContext({}),rs=({children:e,CARTPROVIDER_MESSAGE_PRODUCT_REMOVE:n,...r})=>{const s=x.useCartStore(),{setRecentlyAdded:o}=x.useUIContext(),a=f.useRef(""),l=x.useGetNotificationsStore(),{addNotification:i,removeNotification:c}=x.useGetNotificationActions(),{addCoupon:u,addItem:m,addSellerCode:h,addMarketingData:p,emptyCart:_,isOpen:g,removeItem:C,shipping:y,shippingUpdate:v,toggleServiceToProduct:N,updateItemQuantity:j}=s;f.useEffect(()=>{const S=kr.get("lastMedias");if(s.id&&S&&a.current!==S){a.current=S;const E=new URLSearchParams(S),A=x.mountMarketingData(E);p(A)}},[s,p]);const w=f.useCallback(async(S,E)=>(E==="coupon"?u(S):h(S)).then(P=>{if(typeof P!="boolean"&&P instanceof Object){if(E==="seller"&&"value"in P){const{statusOk:$,value:z}=P,q=String(z??"").split(" - ");return x.getCode((q==null?void 0:q[0])??"",S,!!$)}return x.getCode(String(P.coupon),S,!0)}return x.getCode("","")}).catch(()=>Promise.resolve({code:400})),[u,h]),b=f.useCallback((S,E,A)=>{const{id:P}=S;j(P,E,A)},[j]),I=f.useCallback((S,E,A=!1)=>{if(!S)return;const{id:P}=S,$=x.findItemIndex(s.items,P);if($!==-1&&!A){const z=Number(s.items[$].quantity),q=s.items[$]?z+1:1;b(S,q,E)}else m({id:P,quantity:(S==null?void 0:S.quantity)??1,seller:S.seller});g||o(z=>[...z,S])},[m,b,s.items,g,o]),k=f.useCallback((S,E)=>{if(!S||!Array.isArray(S))return;o(P=>[...P,...S]);const A=S.map(P=>{const{id:$,quantity:z,seller:q}=P,W=x.findItemIndex(s.items,$),Pr=x.getQuantity(z??1,W);return{id:$,quantity:Pr,seller:q}});m(A,E)},[m,s.items,o]),D=f.useCallback(async(S,E,A)=>S?C(S).then(()=>(i(E??`${n}`,A),x.getCode(S,S))):Promise.resolve(x.getCode("","Product id required")),[i,C]),F=f.useCallback(()=>{s.items.length>0&&_()},[_,s.items]),M=f.useCallback((S,E="BRA")=>y(S,E),[y]),B=f.useCallback(S=>{S&&v(S)},[v]),V=f.useCallback(async(S,E,A)=>{const P=s.items.findIndex(z=>z.id===S);return s.items[P]&&P>=0?N(E,P,A??!1):!1},[s.items,N]),R=f.useCallback(async(S,E)=>j(S,E).then(A=>{if(Array.isArray(A)){const P=A.find($=>$.id===S);if(P&&(P==null?void 0:P.quantity)<E)return String(P.quantity)}return!1}),[j]);return t.jsx(sn.Provider,{value:f.useMemo(()=>({...r,addCouponSeller:w,addToCart:I,addItemsToCart:k,cartStore:s,notifications:l,clearCart:F,addNotification:i,isOpen:s.isOpen,removeNotification:c,removeToCart:D,setIsOpen:s.setIsOpen,shipping:M,shippingUpdateOption:B,toggleGiftItemCart:V,updateItemQuantity:R}),[r,w,I,k,l,F,i,s,c,D,M,B,V,R]),children:e})},Z=()=>{const e=f.useContext(sn);if(e===void 0)throw new Error("useCartContext must be used within a CartProvider");return e},on=f.createContext({}),tt=({children:e,fetch:n})=>{const r=f.useRef(!0),[s,o]=f.useState(null),[a,l]=f.useState(!1);return f.useEffect(()=>{(async()=>{r.current=!0;try{const c=await n();if(!c.ok)throw new Error("Failed to fetch data");const u=await c.json();o(u.data),r.current=!1}catch{r.current=!0,l(!0)}})()},[n]),t.jsx(on.Provider,{value:f.useMemo(()=>({data:s,isLoading:r.current??!1,isError:a}),[s,a,r]),children:e})},nt=()=>{const e=f.useContext(on);if(e===void 0)throw new Error("useProductsContext must be used within a useRootContext");return e},an=f.createContext({}),ln=({children:e,sort:n,state:r,count:s,collectionId:o,CONSTANTS:a})=>{const l=f.useMemo(()=>{var i;return o?[{key:"productclusterids",value:o.toString()}]:(i=r.base)!=null&&i.length?r.base.slice(1).split("/").map((c,u)=>({key:`category-${u+1}`,value:c})):[]},[r.base,o]);return t.jsx(an.Provider,{value:f.useMemo(()=>({state:{...r,facets:[...l,...r.facets??[]]},sort:n,count:s??a.ITEMS_PER_PAGE}),[l,s,n,r]),children:e})},rt=()=>{const e=f.useContext(an);if(e===void 0)throw new Error("useSearchContext must be used within a SearchProvider");return e},cn=f.createContext({}),ss=({children:e,searchParams:n,selectedFacets:r})=>{const{data:s,...o}=nt(),{router:a}=x.useNextContext(),l=f.useCallback((h,p)=>{if(p){if(h.key.toLocaleLowerCase()==="price"){const _=p.getAll("facets");p.delete("facets"),_.forEach(g=>{const[C]=g.split("/");C!==h.key&&p.append("facets",g)})}p.set("page","1"),p.append("facets",`${h.key}/${h.value}`),a.push(`?${p.toString()}`)}},[a]),i=f.useCallback(()=>{const h=new URLSearchParams;h.set("sort",x.PLP_FILTERS_SORT.default_option),h.set("page","1"),a.push(`?${h.toString()}`)},[a]),c=f.useCallback((h,p)=>{if(!p||!p.has&&!p.has("facets"))return;const _=p.getAll("facets");p.delete("facets"),p.set("page","1"),_.forEach(g=>{const[C,y]=g.split("/");(C!==h.key||y!==h.value)&&p.append("facets",g)}),a.push(`?${p.toString()}`)},[a]),u=f.useCallback(h=>{const p=new URLSearchParams(x.convertSearchParams(n));for(const[,_]of p.entries()){const[g,C]=_.split("/");if(g===h.key&&C===h.value)return c(h,p)}return l(h,p)},[l,c,n]),m=f.useCallback(h=>{const p=new URLSearchParams(x.convertSearchParams(n));p.set("sort",h.replace("_",":")),a.push(`?${p.toString()}`)},[a,n]);return t.jsx(cn.Provider,{value:f.useMemo(()=>({...o,breadcrumb:s&&"breadcrumb"in s?s==null?void 0:s.breadcrumb:[],deleteAllFacets:i,facets:s&&"facets"in s?s==null?void 0:s.facets:[],selectedFacets:r,onToggleFacet:u,onSort:m,searchParams:n}),[s,i,m,u,o,r,n]),children:e})},os=({children:e,searchParams:n,forceUpdate:r})=>{const{state:s}=rt();return t.jsx(tt,{fetch:()=>fetch("/api/search/facets",{method:"POST",body:JSON.stringify({...s,forceUpdate:r}),priority:"low"}),children:t.jsx(ss,{selectedFacets:(s==null?void 0:s.facets)??[],searchParams:n,children:e})})},as=()=>{const e=f.useContext(cn);if(e===void 0)throw new Error("useFacetsContext must be used within a FacetsProvider");return e},dn=f.createContext({}),is=({children:e})=>{const{data:n,...r}=nt(),[s,o]=f.useState(0),{sendDataLayerEvent:a}=x.useEventContext();return f.useEffect(()=>{if(n&&"pagination"in n&&n.products.length>0){a({functionKey:"productListEvent",data:{event:"view_item_list",commonData:{products:n.products}}});const l=n.pagination.count;l&&Number.isInteger(l)&&o(l)}},[n,a,o]),t.jsx(dn.Provider,{value:f.useMemo(()=>({...r,products:n&&"products"in n?n==null?void 0:n.products:[],pagination:n&&"pagination"in n?n==null?void 0:n.pagination:x.SEARCH_PAGE_DEFAULT_PAGINATION,total:s}),[n,r,s]),children:e})},ls=({children:e,query:n,state:r,selectedFacets:s,forceUpdate:o})=>t.jsx(tt,{fetch:()=>fetch("/api/search/product",{method:"POST",body:JSON.stringify({...r,query:n,forceUpdate:o,facets:s??[]})}),children:t.jsx(is,{state:r,children:e})}),cs=()=>{const e=f.useContext(dn);if(e===void 0)throw new Error("useProductsContext must be used within a ProductsProvider");return e},un=f.createContext({}),ds=({children:e,term:n})=>{const[r,s]=f.useState([]),[o,a]=f.useState(!1);return f.useEffect(()=>{if(!n){s([]);return}(async()=>{a(!0);try{const i=await fetch("/api/search/suggestedTerms",{method:"POST",body:JSON.stringify({query:n,locale:"pt-BR"})}),{data:c}=await i.json();s((c==null?void 0:c.searches)||[])}catch(i){console.error("Erro ao buscar sugestões:",i)}})()},[n]),t.jsx(un.Provider,{value:f.useMemo(()=>({suggestedTerms:r,loading:o,setLoading:a}),[r,o]),children:e})},us=({children:e,...n})=>t.jsx(ds,{...n,children:e}),ms=()=>{const e=f.useContext(un);if(!e)throw new Error("useSuggestedTermsContext must be used within a SuggestedTermsProvider");return e},mn=f.createContext({searches:[],isLoading:!1,error:null}),ps=({children:e})=>{const[n,r]=f.useState([]),[s,o]=f.useState(!0),[a,l]=f.useState(null);return f.useEffect(()=>{(async()=>{try{o(!0);const c=await fetch("/api/search/topSearch");if(!c.ok)throw new Error(`Erro ao buscar os dados: ${c.status}`);const u=await c.json();r(u.data.searches||[])}catch(c){l(c instanceof Error?c.message:"Erro desconhecido")}finally{o(!1)}})()},[]),t.jsx(mn.Provider,{value:f.useMemo(()=>({searches:n,isLoading:s,error:a}),[n,s,a]),children:e})},fs=()=>{const e=f.useContext(mn);if(!e)throw new Error("useTopSearches must be used within a TopSearchesProvider");return e},pn=f.createContext({}),hs=({children:e,slug:n,searchParams:r,collectionId:s,itemsPerPage:o=24})=>{const{pathname:a}=x.useNextContext(),[l,i]=f.useState(!1),c=f.useMemo(()=>{const m=new URL(a,"http://localhost"),h=Array.isArray(r==null?void 0:r.facets)?r.facets:[(r==null?void 0:r.facets)??""],p=(r==null?void 0:r.page)??"1",_=(r==null?void 0:r.sort)??(s?"":x.PLP_FILTERS_SORT.default_option);return m.searchParams.set("page",String(p)),m.searchParams.set("sort",String(_)),r!=null&&r.query?(m.searchParams.set("query",r.query),m):(m.searchParams.set("base",Array.isArray(n)?n.join("/"):n),m.searchParams.set("facets",h.join(",")),m)},[s,a,r,n]),u=f.useMemo(()=>{if(Array.isArray(r==null?void 0:r.facets))return x.parseSearchState(c,r.facets);const m=r!=null&&r.facets?[r==null?void 0:r.facets]:[];return x.parseSearchState(c,m)},[c,r]);return t.jsx(pn.Provider,{value:f.useMemo(()=>({openFilters:l,setOpenFilters:i}),[l,i]),children:t.jsx(ln,{CONSTANTS:{ITEMS_PER_PAGE:o},state:f.useMemo(()=>({...u}),[u]),collectionId:s,children:e})})},gs=()=>{const e=f.useContext(pn);if(e===void 0)throw new Error("usePLPContext must be used within a PLPProvider");return e},ze=(e,n)=>{if(e===n)return!0;if(e==null||n==null||typeof e!="object"||typeof n!="object")return!1;if(Array.isArray(e))return!Array.isArray(n)||e.length!==n.length?!1:e.every((o,a)=>ze(o,n[a]));if(Array.isArray(n))return!1;const r=Object.keys(e),s=Object.keys(n);return r.length!==s.length?!1:r.every(o=>Object.prototype.hasOwnProperty.call(n,o)&&ze(e[o],n[o]))},_s=(e,n,r="page")=>Object.keys(n).some(s=>s===r?!1:!ze(n[s],e[s])),ht=async e=>{const n=await fetch("/api/search/product",{method:"POST",body:JSON.stringify(e),priority:"high"});if(!n.ok)throw new Error("[FAILED TO FETCH DATA]");const r=await n.json();return r==null?void 0:r.data},xs=()=>({node:{sku:"",gtin:"",name:"...",description:"",releaseDate:"",slug:"",video:null,categories:[],categoryId:"",categoriesIds:[],id:"skeleton",brand:{name:""},seo:{title:"",description:"",canonical:""},cluster:{generals:[],highlights:[]},availability:{status:!0},breadcrumbList:{itemListElement:[]},image:[{alternateName:"1",url:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAQAAAC1HAwCAAAAC0lEQVR4nGNgYAAAAAMAAWgmWQ0AAAAASUVORK5CYII=",keywords:"1"},{alternateName:"10",url:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAQAAAC1HAwCAAAAC0lEQVR4nGMAAQAABQABDQottgAAAABJRU5ErkJggg==",keywords:"10"}],offers:{lowPrice:1,highPrice:0,offers:[{availability:"true",listPrice:0,price:0,priceValidUntil:"",priceCurrency:"BRL",itemCondition:"",quantity:1,seller:{identifier:"1"}}],priceCurrency:"BRL"},isVariantOf:{productGroupID:"",hasVariant:[{additionalProperty:[{name:"Tamanho",value:"...",valueReference:"SPECIFICATION",propertyID:""}],name:"...",offers:{offers:[{availability:"https://schema.org/InStock",listPrice:0,price:0,quantity:1,seller:{identifier:"1"}}]},sku:"1",slug:"1",productId:"1"}],name:"",additionalProperty:[],skuVariants:null},installments:{count:2,value:1}}}),ys=(e,n,r,s=24)=>{const o=new Set,a=[];if(!Array.isArray(e)||e.length===0)return{taken:o,placedBanners:a};const l=n*s*r;for(const i of e){let c=Number(i.position_grid),u=!1;for(;c<l;){const m=c%r;if(m+i.columns>r){c+=r-m;continue}if(!Array.from({length:i.columns}).some((_,g)=>o.has(c+g))){for(let _=0;_<i.columns;_++)o.add(c+_);a.push(c),u=!0;break}c++}u||console.info(`[PLP INFINITE FAILED BANNER POSITION]: pos=${i.position_grid}, cols=${i.columns}`)}return{taken:o,placedBanners:a}},gt=(e,n,r,s=24)=>{const{placedBanners:o,taken:a}=ys(e??[],n,r),l=[];let i=0;try{for(;l.length<n*s;)a.has(i)||l.push(i),i++;return{banners:o,products:l}}catch(c){console.info(`[PLP INFINITE FAILED TO GEN POSITIONS]: page=${n}`,c)}return{banners:[],products:l}},Te=(e,n,r=24)=>Array.from({length:e},(s,o)=>{const a=o+1;return{loading:e===a,page:a,pagination:n!=null&&n.products.length&&e===a?n==null?void 0:n.pagination:fn(),products:n!=null&&n.products.length&&e===a?n==null?void 0:n.products:Array.from({length:r},()=>xs())}}),Cs=(e,n)=>[...e,{loading:!1,page:n,pagination:fn(),products:[]}],fn=()=>({nextPage:!1,previousPage:!1,startCursor:"0",endCursor:"1",count:1,total:1}),vs=50,bs=Pe.create((e,n)=>{const r=l=>Math.min(l,vs),s=async(l,i)=>{const c=r(l.page);try{const u=await ht({...l,page:c});o(c,m=>i?i(m,u):{...m,...u})}catch(u){console.error(`[PDC - SCROLL INFINITE FAILED TO FETCH PAGE ${c}]: ${u}`),o(c,m=>({...m,loading:!1}))}},o=(l,i)=>{e({load:!0,pages:n().pages.map(c=>c.page===l?i(c):c)})},a=async(l,i)=>{await s(l,(c,u)=>(typeof i=="function"&&i(u),{...c,...u,loading:!0}))};return{banners:[],load:!1,pages:[],total:0,positions:[],products:[],createPages:async(l,i,c,u)=>{var h,p,_;const m=r(Number(l==null?void 0:l.page));e({...i,pages:Te(m,void 0,u)});try{const g=await ht({...l,page:m});if(g){if(!g.products.length&&((h=g==null?void 0:g.pagination)==null?void 0:h.total)<m){a({...l,page:(p=g==null?void 0:g.pagination)==null?void 0:p.total},c),e({pages:Te((_=g==null?void 0:g.pagination)==null?void 0:_.total)});return}typeof c=="function"&&c(g),e({load:!0,pages:Te(m,g),total:Number(g.pagination.count)})}}catch(g){console.error(`[PDC - SCROLL INFINITE TO CREATE PAGES]: page ${m} ${g}`)}},addPage:(l,i,c)=>{const{pages:u}=n(),m=r(l==null?void 0:l.page);u.some(h=>h.page===m)||(e({...i,pages:Cs(u,m)}),a(l,c))},updateProducts:(l,i)=>{const c=n().pages.find(u=>u.page===r(l==null?void 0:l.page));c!=null&&c.loading||a(l,i)}}}),hn=f.createContext({}),js=({banners:e,children:n,itemsPerPage:r=24,searchParams:s})=>{const{router:o}=x.useNextContext(),{sendDataLayerEvent:a}=x.useEventContext(),{isMobile:l}=x.useGlobalContext(),{state:i}=rt(),{addPage:c,createPages:u,updateProducts:m,...h}=bs(),p=l?8:16,_=l?2:4,g=f.useRef(!1),C=f.useRef(i),y=f.useCallback(w=>{w&&"pagination"in w&&a({functionKey:"productListEvent",data:{event:"view_item_list",commonData:{products:w.products}}})},[a]),v=f.useCallback(w=>{if(w.pagination.nextPage===!0){const b=w.page+1,I=gt(e,b,_,r);c({...i,page:b},I,y)}},[c,e,y,_,r,i]),N=f.useCallback(w=>{w.loading===!1&&m({...i,page:w.page},y)},[y,m,i]),j=f.useCallback(w=>{const b=new URLSearchParams(s);w.page!==Number(b.get("page")??1)&&(b.set("page",String(w.page)),o.replace(`?${b.toString()}`,{scroll:!1}))},[o,s]);return f.useEffect(()=>{const w=!g.current,b=_s(C.current,i),I=gt(e,i.page,_);w?u(i,I,y,r):b&&(u(i,I,y,r),C.current=i),g.current=!0},[e,u,y,_,r,i]),t.jsx(hn.Provider,{value:f.useMemo(()=>({...h,addPage:c,addNewPage:v,createPages:u,gap:p,columns:_,updatePage:N,updateProducts:m,updateParamPage:j}),[c,v,u,p,_,h,N,m,j]),children:n})},Ss=()=>{const e=f.useContext(hn);if(e===void 0)throw new Error("PLPInfiniteScrollContext must be used within a ScrollInfiniteProvider");return e};function gn(e){const r=decodeURIComponent(window.document.cookie).split(";");for(const s of r){const[o,a]=s.trim().split("=");if(o===e)return a}}function st(e,n,r={}){const o={...{path:"/",expires:new Date(Date.now()+36e5)},...r};let a=`${encodeURIComponent(e)}=${encodeURIComponent(n??"")}`;for(const l in o)o[l]!==void 0&&(a+=`; ${l}`,l==="expires"?a+=`=${o[l].toUTCString()}`:typeof o[l]=="boolean"?a+=`; ${o[l]?"true":"false"}`:a+=`=${o[l]}`);window.document.cookie=a}const Ns=()=>{const{sendDataLayerEvent:e}=x.useEventContext(),{user:n}=ot(),{cartStore:r}=Z();return f.useEffect(()=>{if(!n)return;(async()=>{const{userId:o,email:a,firstName:l,lastName:i,phone:c,homePhone:u,postalCode:m,street:h,number:p,city:_,gender:g}=n,C=new TextEncoder().encode(o),y=await crypto.subtle.digest("SHA-256",C),N=Array.from(new Uint8Array(y)).map(j=>j.toString(16).padStart(2,"0")).join("");e({functionKey:"readyEvents",data:{readyData:{user_id:N,email:a,first_name:l,last_name:i,phone:c||u,zip:m,street:h,street_number:p,city:_,gender:g,orderform_id:r==null?void 0:r.id}}})})()},[n,r.id]),null},_n=f.createContext({amount:null,boxes:null,toExpire:null,loading:!0,logout:()=>null,getCurrentCredits:()=>({credits:0,cashback:0})}),Is=({children:e,AUTH_TOKEN_COOKIE:n})=>{const[r,s]=f.useState({amount:null,boxes:null,toExpire:null,loading:!0}),o=f.useCallback(async()=>{try{await fetch("/api/user",{priority:"low"}).then(i=>i.json()).then(i=>{const{userCredits:c,...u}=i;s({amount:c==null?void 0:c.amount,boxes:c==null?void 0:c.boxes,toExpire:c==null?void 0:c.toExpire,user:u,loading:!1})})}catch(i){console.error("my credits request",i),s({...r,loading:!1})}},[s]),a=f.useCallback(()=>{st(n),o()},[o]),l=f.useCallback(()=>r.boxes?r.boxes.reduce((i,c)=>c.gift_card_box.refid==="C1643"?(i.cashback+=c.amount,i):(i.credits+=c.amount,i),{cashback:0,credits:0}):{cashback:0,credits:0},[r]);return f.useEffect(()=>{o()},[o]),t.jsxs(_n.Provider,{value:f.useMemo(()=>({...r,getCurrentCredits:l,logout:a}),[r,l,a]),children:[t.jsx(Ns,{}),e]})},ot=()=>{const e=f.useContext(_n);if(e===void 0)throw new Error("useContext(SessionContext) must be used within a SessionProvider");return e},Es={contexts:{addToCart:{hook:le,provider:rn},cart:{hook:Z,provider:rs},cms:{FlagsAndTags:{context:Ke,hook:Xe,provider:Mr}},events:{hook:x.useEventContext,provider:x.EventProvider},global:{hook:x.useGlobalContext,provider:x.GlobalProvider,mediator:x.Mediator},header:{hook:L,provider:es},menuMobile:{hook:Ce,provider:tn},next:{hook:x.useNextContext,provider:x.NextProvider},pdp:{provider:Rr,hook:Or},plp:{provider:hs,hook:gs},PLPContent:{provider:x.PLPContentProvider,hook:x.usePLPContent},plpInfinite:{provider:js,hook:Ss},pdpdata:{hook:Je,provider:zr},searchFacets:{hook:as,provider:os},searchProducts:{hook:cs,provider:ls},searchRoot:{hook:nt,provider:tt},searchSearch:{hook:rt,provider:ln},searchSuggestedTerms:{hook:ms,provider:us},searchTopSearchs:{hook:fs,provider:ps},session:{hook:ot,provider:Is},ui:{hook:x.useUIContext,provider:x.UIProvider}},hooks:{useBackPDC:Mt},stores:{cart:x.cart,header:Fr,pdp:Zr}},ws=e=>e.normalize("NFD").replace(/[\u0300-\u036f]/g,"").replace(/\s+/g,"-").toLowerCase().trim();function Ps(e,n=1e3){let r=!1;return(...s)=>{r||(e(...s),r=!0,setTimeout(()=>{r=!1},n))}}function ks(e,n=1e3){let r;return(...s)=>{clearTimeout(r),r=setTimeout(()=>{e(...s)},n)}}const xn=(e,n)=>n.getTime()>e.getTime()?Math.abs(n.getTime()-e.getTime()):0,fe=(e,n)=>Math.floor(n==="days"?e/(1e3*60*60*24):n==="hours"?e%(1e3*60*60*24)/(1e3*60*60):n==="minutes"?e%(1e3*60*60)/(1e3*60):e%(1e3*60)/1e3),As=e=>{const n=Ar.decodeJwt(e??"");return{email:n.sub,userId:n.userId}},Ts=["name","email","phone","date","cpf","cep"],_t={email:/\S+@\S+\.\S+/,name:new RegExp("^\\p{L}+( \\p{L}+)*$","u"),phone:/^\d{10,11}|\(\d{2}\)\s?\d{4,5}-\d{4}$/,date:/^\d{6,8}|^\d{2}\/\d{2}\/\d{2,4}$/,cep:/^\d{5}[-]?\d{3}$/,cpf:/^\d{11}|\d{3}\.\d{3}\.?\d{3,5}\-[\d]{2}$/},Ms=({type:e,input:n,required:r=!1})=>{if(typeof n!="string"||!r&&n===""||!_t[e])return!0;const s=n.trim();return _t[e].test(s)},Rs=e=>{const n=/\/(\d+)-\d+-\d+\/(.+?)\./,r=typeof e=="string"?e.match(n):null;return r?r[2].replace(/-/g," "):x.DEFAULT_IMAGE_ALT_TEXT},Os=Object.freeze(Object.defineProperty({__proto__:null,FieldTypes:Ts,debounce:ks,getAltTextFromUrl:Rs,getAuthenticatedUser:As,getCookie:gn,getDaysHoursMinutesSeconds:fe,getMilliSeconds:xn,removeAccentsAndReplaceSpaces:ws,setCookie:st,throttle:Ps,validateInput:Ms},Symbol.toStringTag,{value:"Module"})),Ls={cart:x.cart$1,events:x.events,product:Dr,utils:Os},at={helpers:Ls},H={"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"},yn=({brand:e,className:n,name:r,...s})=>t.jsxs("div",{...s,className:d.helpers.classNameConcat(H["add-to-cart--card--name"],n),children:[t.jsx(d.Tag,{style:{textTransform:"uppercase"},size:"small",variant:"quaternary",title:e,children:e}),t.jsx(d.TextStructure.Root,{children:t.jsx(d.TextStructure.DivWrapper,{alignContent:"flex-start",alignItems:"flex-start",children:t.jsx("p",{className:"typography-style-body-md",children:r})})})]});yn.displayName="AddToCart.Card.Name";const Cn=({className:e,listPrice:n,price:r,quantity:s,productId:o,...a})=>{const l=K(r/100),i=K(n/100);return t.jsx("div",{...a,className:d.helpers.classNameConcat(H["add-to-cart--card--price-quantity"],e),children:t.jsx(d.ProductInfo.Root,{size:"small",layout:"vertical",children:t.jsx(d.ProductInfo.Wrapper,{size:"small",layout:"vertical",children:t.jsx(d.ProductInfo.ValuesWrapper,{children:r!==n?t.jsxs(t.Fragment,{children:[t.jsx(d.ProductInfo.Price,{label:"originalPrice",value:l,size:"small"},"price-list"),t.jsx(d.ProductInfo.Price,{label:"discountPrice",value:i,size:"small"},"price-low")]}):t.jsx(d.ProductInfo.Price,{label:"defaultPrice",value:i,size:"small"},"price-low")})})})})};Cn.displayName="AddToCart.Card.PriceQuantity";const Ds="_skeleton_12b79_1",zs={skeleton:Ds},Bs=({style:e})=>t.jsx("div",{style:e,className:zs.skeleton}),$s="_image_lypfr_1",Fs={image:$s},Us=({alt:e,className:n,objectFit:r,...s})=>{const{nextimage:o}=x.useNextContext();return t.jsx(o,{quality:90,...s,alt:e??"",className:d.helpers.classNameConcat(Fs.image,n),"data-object-fit":r??"cover"})},qs=({videoRef:e,...n})=>t.jsx("video",{...n,ref:e,children:t.jsx("track",{kind:"captions"})}),J={Image:Us,Video:qs},vn=({className:e,productGroupID:n,size:r,texture:s,...o})=>{const{CONSTANTS:{TEXTURE_IMAGE:a,TOGGLE_STYLE_MODIFIER:l}}=le(),[i,c]=f.useState(s??"");return f.useEffect(()=>{i||fetch("/api/catalog/product/info",{method:"POST",priority:"low",body:JSON.stringify({ids:[n]})}).then(u=>u.json()).then(u=>{const m=u.data[0].items[0];if(m){const h=m.images.find(p=>a.includes(p.imageLabel));h!=null&&h.imageUrl?c(h.imageUrl):c(m.images[0].imageUrl)}}).catch(u=>{console.error(u)})},[i,n]),t.jsxs("div",{...o,className:d.helpers.classNameConcat(H["add-to-cart--card--style-size"],e),children:[t.jsx(d.ToggleStyle.Wrapper,{size:"x-small",style:l,children:t.jsx(d.ToggleStyle.Texture,{children:i?t.jsx(J.Image,{alt:"",src:i??"",width:164,height:164,style:l}):t.jsx(Bs,{})})}),t.jsx(d.Utils.Divider,{direction:"vertical",size:"medium",style:{height:24}}),r&&t.jsxs(d.ToggleSize.Wrapper,{size:"small",title:"wrapper-texture",children:[t.jsx(d.ToggleSize.DisabledAdornment,{title:"disabled-adornment-texture"}),t.jsx(d.ToggleSize.Text,{children:r})]})]})};vn.displayName="AddToCart.Card.StyleSize";const{helpers:Vs}=at,bn=({className:e,item:n,texture:r,...s})=>{const{itemOffered:{name:o,brand:a,skuName:l,isVariationOf:{productGroupID:i}},quantity:c,price:u,sellingPrice:m}=n,{CONSTANTS:{NAME_SPLIT_SYMBOL:h}}=le(),{size:p}=Vs.product.getColorAndSizeFromSkuName(l??o,h);return t.jsxs("div",{...s,className:d.helpers.classNameConcat(H["add-to-cart--card--content"],e),children:[t.jsx(yn,{brand:a.name,name:o}),t.jsx(Cn,{price:u,listPrice:m,quantity:c,productId:n.id}),t.jsx(vn,{size:p,texture:r,productGroupID:i})]})};bn.displayName="AddToCart.Card.Content";const jn=({image:e,thumbnail:n=!1})=>t.jsx(J.Image,{alt:e.alternateName??"image","data-thumbnail":n,height:n?152:120,src:e.url,width:n?152:94});jn.displayName="AddToCart.Card";const Sn=({className:e,item:n,texture:r,thumbnail:s,...o})=>{const{itemOffered:{image:[a]}}=n,l=Bt(a.url,{width:200,height:300});return t.jsxs("div",{...o,className:d.helpers.classNameConcat(H["add-to-cart--card"],e),children:[t.jsx(jn,{image:{alternateName:a.alternateName||"Produto",url:l||""},thumbnail:s}),!s&&t.jsx(bn,{item:n,texture:r})]})};Sn.displayName="AddToCart.Card";const Nn=({className:e,children:n,title:r,...s})=>t.jsxs("div",{...s,className:d.helpers.classNameConcat(H["add-to-cart--content"],e),children:[t.jsx("div",{className:H["add-to-cart--content--title"],children:r&&t.jsx("h2",{children:r})}),n,t.jsx(oe.Footer,{})]});Nn.displayName="AddToCart.Layout.Content";const In=({className:e,...n})=>{var _,g;const{isMobile:r,handleClose:s,CONSTANTS:{ADD_TO_CART:o}}=le(),{cartStore:{totalizers:a},setIsOpen:l}=Z(),i=(_=a.find(C=>C.id==="Discounts"))==null?void 0:_.value,c=((g=a.find(C=>C.id==="Items"))==null?void 0:g.value)??0,u=a.find(C=>C.id==="Shipping"),h=(c-Math.abs(i??0)+((u==null?void 0:u.value)??0))/100,p=K(h??0);return t.jsxs("div",{...n,className:d.helpers.classNameConcat(H["add-to-cart--footer"],e),children:[t.jsxs("div",{className:H["add-to-cart--footer--total"],children:[t.jsx("span",{children:"Subtotal:"}),t.jsx("span",{children:p})]}),t.jsx(d.Button,{size:"medium",variant:"primary","data-close":!0,onClick:()=>l(!0),children:o.footer.bag}),r?t.jsx(d.Button,{"data-close":!0,size:"medium",variant:"tertiary",children:o.footer.keep_buying}):t.jsx(d.Button,{onClick:()=>s(),size:"medium",variant:"tertiary",children:o.footer.keep_buying})]})};In.displayName="AddToCart.Layout.Footer";const En=({children:e,className:n,thumbnail:r=!1,...s})=>{const{cartStore:{options:o}}=Z(),{recentlyAddedProducts:a}=x.useUIContext(),l=a.length>3?4:a.length;return t.jsxs("div",{...s,className:H["add-to-cart--items"],"data-thumbnail":r,children:[Array.isArray(a)&&a.filter((i,c)=>c<l).map(i=>{var u;const c=(u=o==null?void 0:o.find(m=>m.id===i.itemOffered.isVariationOf.productGroupID))==null?void 0:u.texture;return t.jsx(oe.Card,{item:i,thumbnail:r,texture:c},i.itemOffered.sku)}),e]})};En.displayName="AddToCart.Layout.Items";const wn=({children:e,Z_INDEX_WAR:n})=>{const{isOpen:r,setIsOpen:s}=le(),{isMobile:o}=x.useGlobalContext();return t.jsxs(d.Modal.Root,{"data-modal":"add-to-cart--modal",className:H["add-to-cart__modal"],isMobile:o??!1,isOpen:r,setIsOpen:s,variant:"sideBottom",style:{zIndex:n.modal},children:[t.jsx(d.Modal.Header,{navigation:"top",children:t.jsx(d.Modal.Controls,{navigation:"top",isMobile:!0})}),t.jsx(d.Modal.Body,{children:e})]})};wn.displayName="AddToCart.Modal";const Gs=({children:e})=>{const{count:n,handleClose:r,setIsOpen:s}=le(),o=f.useRef(n);return f.useEffect(()=>{n>o.current&&s(!0),n<o.current&&o.current>=1&&r(),o.current=n},[n,r,s]),t.jsx(t.Fragment,{children:e})},Pn=({children:e,component:n,CONSTANTS:r,...s})=>{const{recentlyAddedProducts:o}=x.useUIContext(),{isMobile:a}=x.useGlobalContext(),l=o.length>3?4:o.length;return t.jsx(rn,{...s,count:l,isMobile:a,CONSTANTS:r,children:t.jsx(Gs,{children:a?t.jsxs(t.Fragment,{children:[t.jsx(oe.Modal,{Z_INDEX_WAR:r.Z_INDEX_WAR,children:n}),e]}):t.jsx(oe.Tooltip,{component:n,style:{width:350},Z_INDEX_WAR:r.Z_INDEX_WAR,children:e})})})};Pn.displayName="AddToCart.Root";const kn=({children:e,component:n,Z_INDEX_WAR:r,...s})=>{const{contentRef:o,left:a,isLeaving:l,target:i,isOpen:c,top:u}=le();return t.jsx(d.Tooltip.Root,{arrow:"top-right",component:t.jsx("div",{...s,ref:o,children:n}),id:"add-to-cart--tooltip",className:H["add-to-cart--tooltip"],style:{zIndex:r.modal},isLeaving:l,isOpen:c,left:a,size:"medium",position:"top",top:u,children:t.jsx("div",{className:H["add-to-cart--tooltip"],ref:i,children:e})})};kn.displayName="AddToCart.Tooltip";const oe={Card:Sn,Content:Nn,Footer:In,Items:En,Modal:wn,Root:Pn,Tooltip:kn},it=({title:e,...n})=>{const{recentlyAddedProducts:r}=x.useUIContext(),{isMobile:s}=x.useGlobalContext(),o=r.length>3?4:r.length,a=r.length>(o??1),l=r.length>1;return t.jsx(oe.Root,{isMobile:s,count:r.length,component:t.jsx(oe.Content,{title:e,children:t.jsx(oe.Items,{thumbnail:l,children:a&&t.jsx(d.Badge.Count,{count:r.length-o,size:"medium",variant:"secondary"})})}),...n})};it.displayName="AddToCart";const xt={"backtotop-btn":"_backtotop-btn_1shb6_1","card-modifier":"_card-modifier_1shb6_27"},Hs=({children:e,className:n,adornment:r,iconPosition:s,scrollToOptions:o,style:a,...l})=>{const i={top:(o==null?void 0:o.top)??0,left:(o==null?void 0:o.left)??0,behavior:(o==null?void 0:o.behavior)??"smooth"},u=s&&r?{flexDirection:{top:"column",bottom:"column-reverse",left:"row",right:"row-reverse"}[s]}:{},m=()=>{window&&window.document.body.scrollTo({...i})};return t.jsx(d.Card,{...l,shadow:!0,padding:"small",className:d.helpers.classNameConcat(xt["card-modifier"],n),style:{...a,padding:0},children:t.jsxs("button",{className:xt["backtotop-btn"],onClick:m,style:{...u},"data-orientation":s,children:[r,e]})})},lt={"btn-login":"_btn-login_yas63_12","btn-header":"_btn-header_yas63_22","header-animation":"_header-animation_yas63_35"},ct=({id:e})=>{const{setIsOpen:n,cartStore:{items:r}}=Z(),{handleSelectContent:s}=x.useEventContext(),{CONSTANTS:o}=L(),a=r.reduce((l,i)=>l+(i.quantity??0),0);return t.jsx(d.Header.SupportItem,{onClick:()=>{n(!0),s({content:"header:minicart"})},id:e,children:t.jsxs(d.Badge.AutoPositioner,{children:[t.jsx(d.Badge.Count,{count:a,size:"medium",variant:"primary",style:{backgroundColor:"black",display:a>0?"flex":"none"}}),t.jsx(d.Icon,{name:o.header.ICONS.bag,size:"medium"})]})})};ct.displayName="Header.Bag";const ve=({children:e,href:n,...r})=>n&&n!=="#"?t.jsx(x.NextLink,{href:n.startsWith("/")?n:`/${n}`,...r,children:e}):e,An=()=>{const{headerData:e}=L(),{handleSelectContent:n}=x.useEventContext(),{reset:r,updateValue:s}=re(),o=a=>{a?s(a):r()};return t.jsx(d.Header.Categories,{children:Array.isArray(e.categories)&&e.categories.map((a,l)=>t.jsx(ve,{href:a.link,onMouseEnter:()=>o(a.submenuId),onFocus:()=>o(a.submenuId),children:t.jsx(d.Header.CategoryItem,{className:lt["btn-header"],value:a.submenuId??null,adornment:{start:t.jsx(d.Icon,{name:a.iconStart}),end:t.jsx(d.Icon,{name:a.iconEnd})},style:{textWrap:"nowrap",gap:"0"},onClick:()=>{n({content:`header:${a.label}`})},children:a.label})},`category-${a.label}-${l}`))})};An.displayName="Header.Categories";function Ws({SearchModal:e}){const{handleSelectContent:n}=x.useEventContext(),{CONSTANTS:r}=L(),{setValue:s}=et();return t.jsxs(t.Fragment,{children:[t.jsx(d.Header.SupportItem,{onClick:()=>{s(!0),n({content:"header:search"})},children:t.jsx(d.Icon,{name:r.header.ICONS.search,size:"medium"})}),t.jsx(e,{recommendations:!1,trends:!0})]})}const Ks={"menu-subcategories-container":"_menu-subcategories-container_a93cr_1"},Xs={"observer-wrapper":"_observer-wrapper_r43gk_1"};function Ys(e,n,r){const[s,o]=f.useState(!1),{threshold:a}=r||{};return f.useEffect(()=>{if(!e.current)return()=>null;let l=null;const i=new IntersectionObserver(([c])=>{if(r!=null&&r.delay){l&&clearTimeout(l),l=setTimeout(()=>{o(c.isIntersecting),n&&c.isIntersecting&&i.unobserve(e.current)},r.delay);return}o(c.isIntersecting),n&&c.isIntersecting&&i.unobserve(e.current)},{threshold:a||1});return i.observe(e.current),()=>{i.disconnect()}},[e]),s}const Ae=({children:e,eventData:n,observerOptions:r,callBackWhenVisible:s,stopOnIntersection:o=!0,className:a,...l})=>{const i=f.useRef(null),c=Ys(i,o,r),{sendDataLayerEvent:u}=x.useEventContext();return f.useEffect(()=>{c&&(typeof s=="function"&&s(),n&&u({...n}))},[c]),t.jsx("div",{...l,ref:i,className:d.helpers.classNameConcat(Xs["observer-wrapper"],a),children:e})},dt=({thumbnails:e,category:n,isMobile:r=!0,callBack:s})=>{const{handleSelectPromotionEvent:o}=x.useEventContext(),a=50/e.length;return t.jsx("div",{className:Ks["menu-subcategories-container"],children:e.map((l,i)=>{const c=r?l.srcMobile:l.srcDesk;if(!c)return null;const u={creative_name:"banner-menu",creative_slot:`banner-menu:${n}:${i+1}`,promotion_id:c,promotion_name:l.promotion_name};return t.jsx(Ae,{eventData:{functionKey:"readyEvents",data:{event:"view_promotion",readyData:{ecommerce:{...u}}}},observerOptions:{delay:1e3},children:t.jsxs(x.NextLink,{href:l.link??"#",onClick:()=>{typeof s=="function"&&s(),o({updatePromotionRef:!0,promotion:u})},children:[t.jsx(J.Image,{src:c,alt:l.label??c,width:500,height:500,sizes:`(max-width: 768px) 100vw, (max-width: 1023px) 75vw, ${a}vw`}),l.label&&t.jsx("p",{children:l.label})]})},`thumb-${l.label}-${i}`)})})};dt.displayName="Menu.Thumbnail";const Be={"menu-desktop":"_menu-desktop_1b799_1","menu-categories":"_menu-categories_1b799_12"},Qs="_link_w24h0_1",Js="_wrapper_w24h0_98",Zs="_text_w24h0_106",Me={link:Qs,wrapper:Js,text:Zs},ne=({children:e,adornments:n,className:r,disableUnderline:s,href:o,mode:a,size:l,title:i,onClick:c,disablePadding:u,...m})=>{const h=d.helpers.ValidateProp({fieldTypes:de.SizesSmallExtended,property:l,fallback:"medium"}),p=d.helpers.ValidateProp({fieldTypes:de.Mode,property:a,fallback:"default"});return t.jsx(x.NextLink,{...m,className:d.helpers.classNameConcat(Me.link,r),href:o&&o.length>0?o:"#","data-size":h,"data-variant":p,title:i||"NextLink","data-disable-underline":s??!1,"data-disable-padding":u??!0,children:t.jsxs("div",{className:Me.wrapper,onClick:c,children:[n==null?void 0:n.start,t.jsx("p",{className:Me.text,"data-size":h,children:e}),n==null?void 0:n.end]})})},Tn=({children:e,dividerOnRight:n=!0,subMenu:r,...s})=>{var c;const{router:o}=x.useNextContext(),{reset:a}=re(),{handleSelectContent:l}=x.useEventContext(),{CONSTANTS:i}=L();return t.jsxs("div",{...s,className:Be["menu-categories"],children:[(c=r==null?void 0:r.subCategories)==null?void 0:c.map((u,m)=>{var _,g,C;const h=u.listCollapseDesk&&!((_=u.see_all)!=null&&_.link)?{expandAfterRowsQty:u.rowsToShowDesk}:{},p=u.listCollapseDesk&&!((g=u.see_all)!=null&&g.link)?{expansivesAdornments:{open:i.header.ICONS.add,close:i.header.ICONS.minus},expansivesLabels:{open:i.header.COMPONENT_LIST.listExpandLabel,close:i.header.COMPONENT_LIST.listCollapseLabel},iconSize:"x-small"}:{adornment:{end:t.jsx(d.Icon,{name:i.header.ICONS.arrow_right,size:"small"})}};return t.jsxs(d.ComponentList.Structure,{children:[t.jsx(ve,{href:u.linkLabel,title:u.label,onClick:()=>{u.linkLabel&&(a(),l({content:`menu:${u.label??""}:${r.label??""}`}))},children:t.jsx(d.TextStructure.Root,{children:t.jsx(d.TextStructure.DivWrapper,{children:t.jsx("h2",{children:u.label})})})}),t.jsx(d.ComponentList.List,{columns:1,...h,className:Be["submenu-categories"],children:u.items.map((y,v)=>t.jsx(d.ComponentList.ListItem,{id:`list-item-${y.label}-${v}`,children:t.jsx(ne,{href:y.link??"#",size:"x-small",title:y.label??"",disableUnderline:!0,disablePadding:!0,onClick:()=>{a(),l({content:`menu:${u.label??""}:${y.label??""}:${r.label??""}`})},children:y.label})},`list-item-${y.label}-${v}`))}),((C=u.see_all)==null?void 0:C.link)&&t.jsx(d.ComponentList.Support,{...p,size:"small",onClick:()=>{var y;(y=u.see_all)!=null&&y.link&&(a(),l({content:`menu:${u.label??""}:${r.label}`}),o.push(u.see_all.link))},children:u.see_all.link&&u.see_all.label})]},`list-${u.label}-${m}`)}),n&&t.jsx(d.Utils.Divider,{size:"small",direction:"vertical"})]})};Tn.displayName="Menu.Categories";const Mn=({children:e,dividerOnBottom:n=!0,...r})=>{const{CONSTANTS:s}=L();return t.jsxs(t.Fragment,{children:[t.jsx("div",{...r,className:Be["menu-desktop"],style:{...r.style,justifyContent:s.header.ALIGNMENT_MENU},children:e}),n&&t.jsx(d.Utils.Divider,{size:"small"})]})};Mn.displayName="Menu.MenuRoot";const Re={Root:Mn,Categories:Tn,Thumbnail:dt},Rn=()=>{const{headerData:e,CONSTANTS:n}=L(),r=ke(),{reset:s}=re();return t.jsx(d.Header.SubMenu,{children:Array.isArray(e.subMenus)&&e.subMenus.map((o,a)=>{const{thumbnails:l,label:i,id:c}=o,u=c===r,m=l==null?void 0:l.some(h=>!!h.srcDesk);return t.jsxs(Re.Root,{id:c,style:u?{display:"flex",zIndex:n.header.Z_INDEX_WAR.menu_desktop}:{display:"none"},dividerOnBottom:u,children:[t.jsx(Re.Categories,{dividerOnRight:!!m,subMenu:o}),Array.isArray(l)&&t.jsx(Re.Thumbnail,{thumbnails:l,isMobile:!1,category:i,callBack:s})]},`submenu-${c}-${a}`)})})};Rn.displayName="Header.SubMenu";const On=()=>{const{handleSelectContent:e}=x.useEventContext(),{CONSTANTS:n}=L();return t.jsx(x.NextLink,{href:"/favoritos",children:t.jsx(d.Header.SupportItem,{onClick:()=>e({content:"header:wishlist"}),children:t.jsx(d.Icon,{name:n.header.ICONS.favorite_false,size:"medium"})})})};On.displayName="Header.WishList";const Ln=({SearchModal:e})=>{const{CONSTANTS:n,userMenuDesktopRef:r}=L(),{handleSelectContent:s}=x.useEventContext(),{reset:o}=re(),{setValue:a}=ye();return t.jsxs(t.Fragment,{children:[t.jsxs(d.Header.Wrapper,{children:[t.jsx(d.Header.Logo,{style:{width:"100%"},children:t.jsx(x.NextLink,{href:"/",onMouseEnter:o,children:t.jsx(d.Icon,{name:n.header.ICONS.logo,size:"x-large",onClick:()=>{s({content:"header:logo"})}})})}),t.jsx(An,{}),t.jsxs(d.Header.Support,{onMouseEnter:o,style:{justifyContent:"flex-end"},children:[t.jsx(Ws,{SearchModal:e}),t.jsx(d.Header.SupportItem,{onClick:()=>{a(!0),s({content:"header:user_menu"})},className:lt["btn-login"],innerRef:r,children:t.jsx(d.Icon,{name:n.header.ICONS.person,size:"medium"})}),t.jsx(On,{}),t.jsx(ct,{id:"cart-button"})]})]}),t.jsx(Rn,{})]})};Ln.displayName="Header.HeaderDesktopWrapper";const eo="_divider_1lexj_199",O={"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:eo,"menu-navigationbar-item":"_menu-navigationbar-item_1lexj_206","menu-categories-textstructure-modifier":"_menu-categories-textstructure-modifier_1lexj_210"},Dn=({children:e,mobileBannerAlt:n,mobileBannerSrc:r,onClick:s,textColor:o,...a})=>t.jsx("button",{onClick:s,className:O["menu-categories-btn"],children:r?t.jsxs(d.Banner.Container,{...a,className:O["menu-body-banner-container-modifier"],children:[t.jsx(d.Banner.ImageWrapper,{style:{width:"100%"},children:t.jsx(J.Image,{src:r,alt:n??r,className:O["menu-categories__banner"],width:343,height:128,unoptimized:!0})}),t.jsx(d.Banner.Slot,{verticalAlignment:"center",horizontalAlignment:"start",children:t.jsx(d.TextStructure.Root,{children:t.jsx(d.TextStructure.DivWrapper,{className:O["menu-categories-textstructure-modifier"],children:t.jsx("h2",{className:"typography-style-body-xs",style:o?{color:o}:{},children:e})})})})]}):t.jsx("h2",{...a,children:e})});Dn.displayName="Menu.MenuCategories";const zn=({children:e,link:n})=>{const{reset:r}=ie();return n?t.jsx(x.NextLink,{href:n??"#",onClick:r,children:e}):e};zn.displayName="Menu.MenuCategoriesWrapper";const Bn=({subcategory:e,submenuLabel:n})=>{var c,u,m;const{router:r}=x.useNextContext(),{reset:s}=ie(),{handleSelectContent:o}=x.useEventContext(),{CONSTANTS:a}=L(),l=e.listCollapseMobile&&!((c=e.see_all)!=null&&c.link)?{expandAfterRowsQty:e.rowsToShowMobile}:{},i=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:t.jsx(d.Icon,{name:a.header.ICONS.arrow_right,size:"small"})}};return t.jsxs(d.ComponentList.Structure,{className:O["menu-submenu--component-list-modifier"],children:[t.jsx(ve,{href:e.linkLabel,title:e.label,onClick:()=>{s(),o({content:`menu:${e.label??""}:${n}`})},children:t.jsx(d.TextStructure.Root,{children:t.jsx(d.TextStructure.DivWrapper,{children:t.jsx("h2",{className:"typography-style-body-sm-strong",children:e.label})})})}),t.jsx(d.ComponentList.List,{columns:1,...l,className:O["submenu-categories"],children:e.items.map((h,p)=>t.jsx(d.ComponentList.ListItem,{id:`list-item-${h.label}-${p}`,divider:!0,children:t.jsx(ne,{href:h.link??"#",size:"x-small",title:h.label??"",disableUnderline:!0,onClick:()=>{s(),o({content:`menu:${e.label??""}:${h.label}:${n}`})},children:h.label})},`list-item-${h.label}-${p}`))}),((m=e.see_all)==null?void 0:m.link)&&t.jsx(d.ComponentList.Support,{...i,size:"small",onClick:()=>{var h;s(),o({content:`menu:${e.label??""}:${n}`}),(h=e.see_all)!=null&&h.link&&r.push(e.see_all.link)},children:e.see_all.link&&e.see_all.label})]})};Bn.displayName="Menu.SubMenuSubCategory";const $n=({submenu:e})=>{var a;const n=ke(),{handleCloseSubMenu:r}=Ce(),{reset:s}=re(),{CONSTANTS:o}=L();return t.jsxs("div",{className:O["menu-submenu--item"],style:{display:n===e.id?"flex":"none"},children:[t.jsx(d.TextStructure.Root,{adornment:{start:t.jsx(d.Icon,{name:o.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&&t.jsx(d.TextStructure.DivWrapper,{style:{position:"absolute",left:"50%",transform:"translate(-50%)"},children:t.jsx("h2",{className:"typography-style-body-md-strong",children:e.label})})}),t.jsx("div",{className:O["menu-submenu--thumbnails"],children:Array.isArray(e.thumbnails)&&t.jsx(dt,{thumbnails:e.thumbnails,isMobile:!0,category:e.label,callBack:s})}),(a=e==null?void 0:e.subCategories)==null?void 0:a.map((l,i)=>t.jsx(Bn,{subcategory:l,submenuLabel:e.label},`list-${l.label}-${i}`))]})};$n.displayName="Menu.SubMenuItem";const Fn=()=>{const{headerData:e}=L(),n=ke(),{reset:r}=re(),{bodyRef:s}=Ce();return t.jsx(d.Modal.RootWithoutPortal,{isOpen:!!n,setIsOpen:r,parent:s.current,variant:"sideLeft",style:{position:"absolute",width:"100%"},className:O["menu-submenu-modal-modifiier"],children:t.jsx("div",{className:O["menu-submenu"],children:e.subMenus.map((o,a)=>t.jsx($n,{submenu:o},`submenu-${o.id}-${a}`))})})};Fn.displayName="Menu.SubMenu";const Un=({className:e,...n})=>{const{headerData:r}=L(),{setValue:s}=re(),{bodyRef:o}=Ce(),{handleSelectContent:a}=x.useEventContext();return t.jsxs("div",{...n,ref:o,id:"menu-body",className:O["menu-body"],children:[t.jsx("div",{className:O["menu-categories-container"],children:r.categories.map((l,i)=>{const c=l.submenuId?{}:{"data-close":!0};return t.jsx(zn,{link:l.submenuId?null:l.link,children:t.jsx(Dn,{onClick:()=>{s(l.submenuId??null),a({content:`menu:${l.label}`})},mobileBannerSrc:l.mobileBannerSrc,mobileBannerAlt:l.mobileBannerAlt,textColor:l.textColor,...c,children:l.mobileBannerAlt})},`menu-categories-${i}`)})}),t.jsx(Fn,{})]})};Un.displayName="Menu.MenuBody";const qn=({title:e,subtitle:n})=>{const{CONSTANTS:r}=L();return t.jsxs("div",{className:O["menu-header-wrapper"],style:n?{alignItems:"start"}:{alignItems:"center"},children:[(e||n)&&t.jsx(d.TextStructure.Root,{children:t.jsxs(d.TextStructure.DivWrapper,{children:[e&&t.jsx("h2",{className:"typography-style-body-md",children:e}),n&&t.jsx("h3",{children:n})]})}),t.jsx(d.Button,{adornment:{end:t.jsx(d.Icon,{name:r.header.ICONS.close})},variant:"tertiary",className:O["menu-close"],"data-close":!0})]})};qn.displayName="Menu.MenuHeaderWrapper";const Vn=({navigationLinks:e})=>{const{reset:n}=ie(),{handleSelectContent:r}=x.useEventContext();return e?t.jsx("nav",{className:O["menu-header-navlinks"],children:e.map((s,o)=>t.jsx(ne,{href:s.link??"#",adornments:{start:s.iconStart&&t.jsx(d.Icon,{name:s.iconStart}),end:s.iconEnd&&t.jsx(d.Icon,{name:s.iconEnd})},onClick:()=>{n(),r({content:`menu:navigationlinks-${s.label}`})},children:s.label},o))}):null};Vn.displayName="Menu.MenuHeaderNavLinks";const Gn=()=>{const{headerData:e}=L();return t.jsxs("div",{className:O["menu-header-container"],children:[t.jsx(qn,{title:e.title,subtitle:e.subtitle}),t.jsx(Vn,{navigationLinks:e.navigationLinks})]})};Gn.displayName="Menu.MenuHeaderContainer";const Hn=({children:e})=>{const{documentBodyRef:n}=Ce(),{CONSTANTS:r}=L(),s=Ze(),{setValue:o}=ie();return t.jsx(d.Modal.RootWithoutPortal,{isOpen:s,setIsOpen:o,parent:n.current,variant:"sideLeft",style:{position:"fixed",zIndex:r.header.Z_INDEX_WAR.menu_mobile,bottom:"unset",top:0,overflowY:"hidden"},className:O["modal-modifier"],children:t.jsx("div",{className:O["menu-mobile"],children:e})})};Hn.displayName="Menu.MenuRoot";const Ie=({children:e,...n})=>t.jsxs(t.Fragment,{children:[t.jsx(d.Button,{...n,className:O["menu-navigationbar-item"],children:e}),t.jsx(d.Utils.Divider,{direction:"vertical",size:"small",className:O.divider})]});Ie.displayName="Menu.NavigationBarItem";const Wn=()=>{const{setIsOpen:e}=Z(),{reset:n}=ie(),{setValue:r}=ye(),{handleSelectContent:s}=x.useEventContext(),{CONSTANTS:o}=L(),{router:a}=x.useNextContext();return t.jsxs(d.Card,{id:"menu-navigationbar",shadow:!0,className:O["menu-navigationbar"],style:{zIndex:o.header.Z_INDEX_WAR.menu_mobile_navigation_bar},children:[t.jsx(Ie,{size:"small",variant:"tertiary",iconNameStart:o.header.MENU_INFO.login.button_icon,onClick:()=>{n(),r(!0),s({content:"menu:user_menu"})},children:o.header.MENU_INFO.login.button_text}),t.jsx(Ie,{size:"small",variant:"tertiary",iconNameStart:o.header.MENU_INFO.bag.button_icon,onClick:()=>{n(),e(!0),s({content:"menu:minicart"})},children:o.header.MENU_INFO.bag.button_text}),t.jsx(Ie,{size:"small",variant:"tertiary",iconNameStart:o.header.MENU_INFO.store.button_icon,onClick:()=>{a.push("/institucional/lojas"),n(),s({content:"menu:store"})},children:o.header.MENU_INFO.store.button_text})]})};Wn.displayName="Menu.NavigationBar";const je={Root:Hn,NavigationBar:Wn,Header:Gn,Body:Un},Kn=({SearchModal:e})=>{const n=f.useRef(null),{CONSTANTS:r,userMenuMobileRef:s}=L(),{MENU_NAVIGATION_BAR_ALLOWED:o,ICONS:a,MENU_MOB_BTN_SIDE:l="right"}=r.header,{handleSelectContent:i}=x.useEventContext(),{setValue:c}=et(),{setValue:u}=ie(),{setValue:m}=ye();return t.jsxs(t.Fragment,{children:[t.jsxs(d.Header.Wrapper,{children:[l==="left"&&t.jsx(d.Header.SupportItem,{onClick:()=>u(!0),innerRef:n,children:t.jsx(d.Icon,{name:a.menu,size:"medium"})}),t.jsx(d.Header.Logo,{style:{width:"100%",justifyContent:"center"},children:t.jsx(x.NextLink,{href:"/",children:t.jsx(d.Icon,{name:a.logo,size:"x-large",onClick:()=>{i({content:"header:logo"})}})})}),t.jsxs(d.Header.Support,{children:[t.jsx(d.Header.SupportItem,{onClick:()=>{c(!0),i({content:"header:search"})},children:t.jsx(d.Icon,{name:a.search,size:"medium"})}),t.jsx(d.Header.SupportItem,{onClick:()=>{m(!0),i({content:"header:user_menu"})},innerRef:s,children:t.jsx(d.Icon,{name:a.person,size:"medium"})}),t.jsx(ct,{}),l==="right"&&t.jsx(d.Header.SupportItem,{onClick:()=>u(!0),innerRef:n,children:t.jsx(d.Icon,{name:a.menu,size:"medium"})})]})]}),t.jsx(e,{recommendations:!1,trends:!0}),t.jsx(tn,{children:t.jsxs(je.Root,{children:[t.jsx(je.Header,{}),t.jsx(je.Body,{}),o?t.jsx(je.NavigationBar,{}):t.jsx(t.Fragment,{})]})})]})};Kn.displayName="Header.HeaderMobileWrapper";const to="_root_wvekm_126",X={"user-menu--credits":"_user-menu--credits_wvekm_1","user-menu--content":"_user-menu--content_wvekm_10","user-menu--login":"_user-menu--login_wvekm_30","user-menu--login--content":"_user-menu--login--content_wvekm_37","user-menu--menu":"_user-menu--menu_wvekm_64","user-menu--tooltip":"_user-menu--tooltip_wvekm_93","tooltip-modifier":"_tooltip-modifier_wvekm_104","modal-controls-modifier":"_modal-controls-modifier_wvekm_109","modal-header-modifier":"_modal-header-modifier_wvekm_117",root:to},Xn=({className:e,children:n,...r})=>t.jsx("div",{...r,className:d.helpers.classNameConcat(X["user-menu--content"],e),children:n});Xn.displayName="UserMenu.Content";var Yn=(e=>(e.Account="account",e))(Yn||{});const Qn=({className:e,cashBack:n,credits:r,link:s,total:o,...a})=>{const l=n?K(n):void 0,i=r?K(r):void 0,c=o?K(o):void 0;return t.jsx(d.Credits.Account,{...a,className:d.helpers.classNameConcat(X["user-menu--credits"],e),icon:"wallet",showIcon:!0,cashBackValue:l,creditsValue:i,linkMore:s,totalValue:c,type:Yn.Account})};Qn.displayName="UserMenu.Credits";const Jn=({className:e,children:n,description:r,text:s,...o})=>{const{isMobile:a}=x.useGlobalContext();return t.jsx("div",{...o,className:d.helpers.classNameConcat(X["user-menu--login"],e),"data-mobile":a,children:t.jsxs("div",{className:X["user-menu--login--content"],children:[t.jsx(d.TextStructure.Root,{children:t.jsxs(d.TextStructure.DivWrapper,{alignContent:"flex-start",alignItems:"flex-start",children:[t.jsx("h3",{className:"typography-style-body-lg-strong",children:s}),t.jsx("p",{children:r})]})}),n]})})};Jn.displayName="UserMenu.Login";const Zn=({className:e,isLogged:n,onLogoutClick:r,ICONS:s,storeConfig:o})=>{const{isMobile:a}=x.useGlobalContext(),l=x.LOGIN_MENU_OPTIONS_ARRAY({ICONS:s,storeConfig:o}).filter(i=>i.deviceShown==="both"||i.deviceShown===(a?"mobile":"desktop"));return t.jsxs("ul",{className:d.helpers.classNameConcat(X["user-menu--menu"],e),children:[Array.isArray(l)&&l.map((i,c)=>t.jsx("li",{children:t.jsx(ne,{href:i.href??"#",size:"small",disableUnderline:!0,adornments:{start:t.jsx(d.Icon,{name:i.icon??"delete"})},children:i.label})},c)),n?t.jsx("li",{children:t.jsx(ne,{href:`${o.secureSubdomain}/api/vtexid/pub/logout?scope=mariafilo&returnUrl=${encodeURIComponent(`${o.storeUrl}`)}`,size:"small",disableUnderline:!0,onClick:r,adornments:{start:t.jsx(d.Icon,{name:x.LOGOUT_ICON(s)})},children:x.LOGOUT_TEXT})}):t.jsx(t.Fragment,{})]})};Zn.displayName="UserMenu.Menu";const no=e=>{const n=f.useRef(null),r=f.useCallback(a=>{n.current&&!n.current.contains(a.target)&&e()},[e]),s=f.useCallback(a=>{n.current&&!n.current.contains(a.target)&&e()},[e]),o=f.useCallback(a=>{a.key==="Escape"&&e()},[e]);return f.useEffect(()=>(document.addEventListener("mousedown",r),document.addEventListener("keydown",o),document.addEventListener("touchstart",s),()=>{document.removeEventListener("mousedown",r),document.removeEventListener("keydown",o),document.removeEventListener("touchstart",s)}),[r,o,s]),{ref:n}},ro=e=>{if(!e||typeof window>"u")return 0;const n=window.getComputedStyle(e);return parseInt(n.padding,10)},so=(e,n,r)=>{if(!(e instanceof HTMLElement)||!(n instanceof HTMLElement))return{left:0,top:0};const{height:s,left:o,top:a,width:l}=n.getBoundingClientRect(),i=e.getBoundingClientRect(),c=e!=null&&e.parentElement?ro(e==null?void 0:e.parentElement):0;return{left:o+l/2-(i.width+c*2),top:a+s+r}},er=f.createContext({}),oo=({children:e,delay:n=600,gap:r=20,isOpen:s,setIsOpen:o,target:a,...l})=>{const i=f.useRef(null),[c,u]=f.useState(!1),[m,h]=f.useState({left:0,top:0}),{ref:p}=no(()=>{u(!0),typeof window<"u"&&(i.current=window.setTimeout(()=>{o(!1),u(!1)},n))});return f.useEffect(()=>{if(a&&(p!=null&&p.current)){const{left:_,top:g}=so(p.current,a,r??0);h({left:_,top:g}),u(!1)}},[r,s,a,p]),t.jsx(er.Provider,{value:f.useMemo(()=>({...l,...m,contentRef:p,isLeaving:c,isOpen:s,setIsOpen:o,setIsLeaving:u,target:a}),[l,m,p,c,s,o,u,a]),children:e})},tr=()=>{const e=f.useContext(er);if(e===void 0)throw new Error("useUserMenuContext must be used within a UserMenuProvider");return e},nr=({children:e,isMobile:n=!1,Z_INDEX_WAR:r})=>{const{isOpen:s,setIsOpen:o}=tr();return t.jsxs(d.Modal.Root,{"data-user":"user-menu--modal",isMobile:n??!1,isOpen:s,setIsOpen:o,variant:"sideBottom",className:X["modal-root-modifier"],style:{zIndex:r.user_menu_mobile},children:[t.jsx(d.Modal.Header,{navigation:"top",className:X["modal-header-modifier"],children:t.jsx(d.Modal.Controls,{navigation:"top",isMobile:!0,className:X["modal-controls-modifier"]})}),t.jsx(d.Modal.Body,{children:e})]})};nr.displayName="UserMenu.Modal";const rr=({children:e,component:n,Z_INDEX_WAR:r,isMobile:s,...o})=>t.jsx(oo,{...o,className:X.root,children:s?t.jsxs(t.Fragment,{children:[t.jsx(se.Modal,{Z_INDEX_WAR:r,children:n}),e]}):t.jsx(se.Tooltip,{component:n,style:{width:304,zIndex:r.user_menu},Z_INDEX_WAR:r,children:e})});rr.displayName="UserMenu.Root";const sr=({children:e,component:n,Z_INDEX_WAR:r,...s})=>{const{contentRef:o,left:a,isLeaving:l,isOpen:i,top:c}=tr();return t.jsx(d.Tooltip.Root,{arrow:"top-right",component:t.jsx("div",{...s,ref:o,children:n}),className:d.helpers.classNameConcat(X["user-menu--tooltip"],X["tooltip-modifier"]),isLeaving:l,isOpen:i,left:a,size:"medium",position:"top",top:c,style:{zIndex:r.user_menu},children:t.jsx("div",{className:X["user-menu--tooltip"],children:e})})};sr.displayName="UserMenu.Tooltip";const se={Credits:Qn,Content:Xn,Login:Jn,Menu:Zn,Modal:nr,Root:rr,Tooltip:sr},ut=()=>{var C,y,v;const e=ot(),{isMobile:n}=x.useGlobalContext(),{userMenuMobileRef:r,userMenuDesktopRef:s,CONSTANTS:{header:o},storeConfig:a}=L(),{ICONS:l,Z_INDEX_WAR:i,MENU_INFO:c}=o,u=Wt(),{setValue:m}=ye(),h=()=>{window.location.href=`${a.secureSubdomain}/api/io/login?returnUrl=${encodeURIComponent(`${a.storeUrl}`)}`},p=!!((C=e.user)!=null&&C.userId),{cashback:_,credits:g}=f.useMemo(()=>{var N,j;return{credits:((N=e==null?void 0:e.getCurrentCredits())==null?void 0:N.credits)??0,cashback:((j=e==null?void 0:e.getCurrentCredits())==null?void 0:j.cashback)??0}},[e]);return t.jsx(se.Root,{component:t.jsxs(se.Content,{children:[t.jsx(se.Login,{description:x.LOGIN_MENU_DESCRIPTION(p),text:x.LOGIN_MENU_TITLE(p,((y=e==null?void 0:e.user)==null?void 0:y.firstName)??((v=e==null?void 0:e.user)==null?void 0:v.email)),children:!p&&t.jsx(d.Button,{size:"medium",variant:"quaternary",onClick:()=>h(),children:c.login.button_text})}),g+_&&p?t.jsx(se.Credits,{credits:g,cashBack:_,link:`${a.secureSubdomain}/account#/meus-creditos`,total:g+_}):t.jsx(t.Fragment,{}),t.jsx(d.Utils.Divider,{}),t.jsx(se.Menu,{isLogged:p,onLogoutClick:()=>e.logout(),ICONS:l,storeConfig:a})]}),target:n?r.current:s.current,isOpen:u,isMobile:n,setIsOpen:m,Z_INDEX_WAR:i})};ut.displayName="UserMenu";const or=({tipBar:e,miniCart:n,SearchModal:r})=>{const{structureRef:s,rootRef:o,CONSTANTS:a}=L(),{header:{HEADER_CONFIGS:l,Z_INDEX_WAR:i}}=a;return t.jsx(d.Header.Structure,{innerRef:s,adornment:{start:e},style:{position:"sticky",top:0,zIndex:i.header},className:lt["header-animation"],children:t.jsxs(d.Header.Root,{innerRef:o,style:{zIndex:i.header},variant:l.default_variant,interactiveVariant:l.interactive_variant,children:[t.jsx("div",{className:x.responsive["responsive-mobile-block"],style:{height:"100%",width:"100%",zIndex:i.header_mobile},children:t.jsx(Kn,{SearchModal:r})}),t.jsx("div",{className:x.responsive["responsive-desktop-block"],style:{height:"100%",width:"100%",zIndex:i.header_desktop},children:t.jsx(Ln,{SearchModal:r})}),n,t.jsx(it,{title:"Produto adicionado à sua sacola!",CONSTANTS:a.addToCart}),t.jsx(ut,{})]})})};or.displayName="Header";const ao="_shippingFreight_6z8rf_6",io="_shippingFreight__postalCodeGrid_6z8rf_10",lo="_shippingFreight__grid_6z8rf_14",co="_shippingFreight__grid__title_6z8rf_18",uo="_shippingFreight__grid__remember_6z8rf_29",mo="_postalCodeContainer_6z8rf_44",po="_deliveryStatusBar__tag_6z8rf_49",fo="_deliveryStatusBarError__tag_6z8rf_66",ho="_deliveryInfo_6z8rf_74",go="_deliveryInfo__content_6z8rf_78",_o="_deliveryInfo__text_6z8rf_84",xo="_deliveryInfo__title_6z8rf_89",yo="_deliveryInfo__subtitle_6z8rf_99",Co="_deliveryInfo__tooltipIcon_6z8rf_109",vo="_deliveryInfo__tooltip_6z8rf_109",bo="_freightGrid_6z8rf_148",jo="_freightContainer_6z8rf_155",So="_freightOption__content_6z8rf_160",No="_freightOption__value_6z8rf_166",Io="_freightOption__title_6z8rf_177",Eo="_freightOption__title_item_6z8rf_181",wo="_freightOption__paragraph_6z8rf_192",T={shippingFreight:ao,shippingFreight__postalCodeGrid:io,shippingFreight__grid:lo,shippingFreight__grid__title:co,shippingFreight__grid__remember:uo,postalCodeContainer:mo,deliveryStatusBar__tag:po,deliveryStatusBarError__tag:fo,deliveryInfo:ho,deliveryInfo__content:go,deliveryInfo__text:_o,deliveryInfo__title:xo,deliveryInfo__subtitle:yo,deliveryInfo__tooltipIcon:Co,deliveryInfo__tooltip:vo,freightGrid:bo,freightContainer:jo,freightOption__content:So,freightOption__value:No,freightOption__title:Io,freightOption__title_item:Eo,freightOption__paragraph:wo,"input-modifier":"_input-modifier_6z8rf_207","freight--tooltip":"_freight--tooltip_6z8rf_227"},Po=({icon:e,title:n,subtitle:r,packageCount:s,packageUnit:o="",labelDescription:a,freightConfig:l,toolTipZIndex:i})=>{const[c,u]=f.useState(!1),m=f.useRef(null),h=()=>u(p=>!p);return t.jsxs("div",{className:T.deliveryInfo,ref:m,children:[t.jsx(d.Tooltip.Root,{arrow:"bottom",component:t.jsx("div",{children:t.jsx("p",{children:l.messages.select_size_tag})}),id:"freight--tooltip",className:T["freight--tooltip"],style:{zIndex:i},isOpen:!0,size:"medium",position:"top",top:"-170%",left:"4%",parent:m.current}),t.jsxs("div",{className:T.deliveryInfo__content,children:[t.jsx("div",{className:T.deliveryInfo__icon,children:t.jsx(d.Icon,{name:e,size:"medium"})}),t.jsxs("div",{className:T.deliveryInfo__text,children:[t.jsxs("span",{className:T.deliveryInfo__title,children:[n," ",s," ",o]}),r&&t.jsx("span",{className:T.deliveryInfo__subtitle,children:r})]}),a&&t.jsxs("div",{className:T.deliveryInfo__tooltipIcon,onMouseEnter:h,onMouseLeave:h,"aria-label":"Mostrar descrição",children:[t.jsx("span",{children:t.jsx(d.Icon,{name:l.icons.feedback_help,size:"small"})}),c&&t.jsx("div",{className:T.deliveryInfo__tooltip,children:a})]})]})]})},ko=({value:e,title:n,paragraph:r})=>t.jsx("div",{className:T.freightOption,children:t.jsxs("div",{className:T.freightOption__content,children:[t.jsx("span",{className:T.freightOption__value,children:e}),t.jsx("span",{className:T.freightOption__title,children:t.jsx(d.TextStructure.Root,{children:t.jsxs(d.TextStructure.DivWrapper,{className:T.footer__item,children:[t.jsx("span",{className:T.freightOption__title_item,children:n}),r&&t.jsx("span",{className:T.freightOption__paragraph,children:r})]})})})]})}),Ao=({children:e})=>t.jsx("div",{className:T.freightContainer,children:e}),To=({children:e})=>t.jsx("div",{className:T.freightGrid,children:e}),Mo=({children:e})=>t.jsx("div",{className:T.postalCodeContainer,children:e}),yt=({message:e,seller:n="",size:r="small",setError:s})=>t.jsx("div",{className:s?T.deliveryStatusBarError:T.deliveryStatusBar,children:t.jsxs(d.Tag,{title:e,className:s?T.deliveryStatusBarError__tag:T.deliveryStatusBar__tag,size:r,children:[e," ",!s&&n]})}),Ro=e=>{const n=parseInt(e,10);return n===1?`${n} dia`:`${n} dias`},Oo=e=>{var r,s,o;const n=[];return(o=(s=(r=e==null?void 0:e.logisticsInfo)==null?void 0:r[0])==null?void 0:s.slas)==null||o.forEach(a=>{n.push({id:a.id,name:a.name,price:a.price,shippingEstimate:a.shippingEstimate})}),n},Lo=({component:e,parent:n,top:r,left:s,target:o,contentRef:a,freightConfig:l,toolTipZIndex:i=999,...c})=>{const{isMobile:u}=x.useGlobalContext();return t.jsx(t.Fragment,{children:u?t.jsx(d.Tooltip.Root,{arrow:"bottom",component:t.jsxs("div",{...c,ref:a,children:[e,t.jsx("p",{children:l.messages.select_size_tag})]}),id:"freight--tooltip",className:T["freight--tooltip"],style:{zIndex:i},isOpen:!0,size:"medium",position:"top",top:"-170%",left:"4%",parent:n}):t.jsx(d.Tooltip.Root,{arrow:"bottom",component:t.jsxs("div",{...c,ref:a,children:[e,t.jsx("p",{children:l.messages.select_size_tag})]}),id:"freight--tooltip",className:T["freight--tooltip"],style:{zIndex:i},isOpen:!0,size:"medium",position:"top",top:"-110%",left:"3%",parent:n})})},Do=({onUpdateFreightItems:e,sellerId:n,size:r,skuId:s,quantity:o,setError:a,setIsButtonClicked:l,component:i,freightConfig:c,toolTipZIndex:u})=>{var B,V,R,S;const m=x.useCartStore(),h=x.useCartStore(E=>E.shipping),[p,_]=f.useState(),[g,C]=f.useState(!1),[y,v]=f.useState(!1),[N,j]=f.useState(!1),w=(V=(B=m.shippingData)==null?void 0:B.address)==null?void 0:V.postalCode,b=!(p!=null&&p.length)&&w?w:p,I=f.useRef(null),k=async E=>{const P=E.target.value.replace(/\D/g,"").slice(0,8);P.length>5?_(P.replace(/^(\d{5})(\d{1,3})/,"$1-$2")):_(P)},D=async E=>{const A=E.target.value.replace(/\D/g,"");try{if((await pt.get(`https://viacep.com.br/ws/${A}/json/`)).data.erro){a&&a(c.messages.cep_not_found),l(!1),v(!0);return}a&&a(""),v(!1)}catch{console.log("Erro ao validar o CEP. Tente novamente mais tarde.")}},F=async()=>{C(!0);try{const E=await pt.post("/api/checkout/simulation",{items:[{id:s,quantity:o,seller:n}],country:"BRA",postalCode:b});e(Oo(E.data))}catch(E){console.error("Erro ao atualizar o documento:",E)}finally{C(!1),h(b,"BRA")}},M=async()=>{if(!s){j(!0),setTimeout(()=>j(!1),1500);return}await D({target:{value:b}}),g||(F(),l(!0))};return t.jsxs("div",{ref:I,style:{position:"relative"},children:[!s&&N?t.jsx(Lo,{component:i,isOpen:N,parent:I.current,toolTipZIndex:u,freightConfig:c}):t.jsx(t.Fragment,{}),t.jsx("div",{style:{position:"relative"},children:t.jsx(d.TextField.Structure,{title:"structure",style:{width:"100%"},input:t.jsx(d.TextField.Input,{defaultValue:(S=(R=m.shippingData)==null?void 0:R.address)==null?void 0:S.postalCode,label:c.messages.text_input_label,title:"textfield",value:p,sizeVariant:r,onMouseOver:()=>s?null:j(!0),onMouseOut:()=>s?null:j(!1),mode:"simple",onChange:k,onKeyDown:E=>{E.key==="Enter"&&M()},className:T["input-modifier"],feedback:y?"error":"none"}),right:t.jsx(d.Button,{onClick:M,size:r,title:"button",children:g?t.jsx(d.Spinner,{size:"small",indicatorColor:"#ffffff"}):c.messages.text_input_btn})})})]})},zo=({children:e,freightConfig:n})=>t.jsxs("div",{className:T.shippingFreight,children:[t.jsxs("div",{className:T.shippingFreight__grid,children:[t.jsx("span",{className:T.shippingFreight__grid__title,children:n.messages.title}),t.jsx("span",{className:T.shippingFreight__grid__remember,children:t.jsx(ne,{href:"https://buscacepinter.correios.com.br/app/endereco/index.php",passHref:!0,target:"_blank",rel:"noopener noreferrer",size:"x-small",disablePadding:!1,title:n.messages.remember_cep,children:n.messages.remember_cep})})]}),t.jsx("div",{className:T.shippingFreight__postalCodeGrid,children:e})]}),Bo=({children:e})=>t.jsx("div",{className:T.freightContainer,children:e}),$o=({className:e,sellerId:n,skuId:r,quantity:s,size:o,seller:a,local:l,CONSTANTS_PROPS:i})=>{const{sendDataLayerEvent:c}=x.useEventContext(),[u,m]=f.useState(""),[h,p]=f.useState([]),[_,g]=f.useState(""),[C,y]=f.useState(!1),v=j=>m(j),N=j=>{p(j),c({functionKey:"readyEvents",data:{event:"search_zipcode",readyData:{shippings:j.map(w=>({shipping_tier:w.id,delivery_time:w.shippingEstimate.replace("bd",""),flag_pickup:w.name.toLowerCase().includes("retirada")?"true":"false",shipping:w.price,currency:i.currency||"BRL"}))}}})};return t.jsxs(Bo,{className:e,children:[t.jsxs(zo,{freightConfig:i.freightConfig,children:[t.jsx(Mo,{children:t.jsx(Do,{onUpdateFreightItems:N,skuId:r,quantity:s,size:o,sellerId:n,local:l,setError:g,setIsButtonClicked:y,freightConfig:i.freightConfig,toolTipZIndex:i.toolTipZIndex})}),_?t.jsx(yt,{size:o,message:_,setError:g}):h.length>0&&t.jsx(yt,{size:o,message:i.freightConfig.messages.delivered_by,seller:a})]}),C&&!_?h.length>0&&t.jsxs(Ao,{children:[t.jsx(To,{children:h.filter(({id:j})=>!j.includes("Retirada")).map(j=>t.jsx(ko,{id:j.id,value:Ye({valueInCents:j.price,hasFree:!1,freeTaxMessage:i.freightConfig.messages.free_tax}),title:j.name,paragraph:`${i.freightConfig.messages.prefix_days}${Ro(j.shippingEstimate)}`,radioValue:u,changeValue:v},j.id))}),i.deliveryInfoBoxesAllowed?t.jsx(Po,{icon:i.freightConfig.icons.delivery_truck,packageUnit:i.freightConfig.messages.unit_amout,title:i.freightConfig.messages.delivered_amount_packages,subtitle:"",packageCount:1,labelDescription:"Label",freightConfig:i.freightConfig,toolTipZIndex:i.toolTipZIndex??999}):t.jsx(t.Fragment,{})]}):null]})},ar=f.createContext({}),Fo=({children:e,item:n,index:r,shelfTitle:s,...o})=>{const[a,l]=f.useState(null),i=f.useRef(null),c=f.useRef({availableSkus:[],priceInfo:{price:0,listPrice:0}}),{sendDataLayerEvent:u,itemListRef:m}=x.useEventContext(),h=C=>{u({functionKey:"productEvents",data:{commonData:{...n,availableSizes:c.current.availableSkus,...c.current.priceInfo},customData:{index:r+1},event:C}})},p=()=>{h("add_to_wishlist")},_=()=>{u({functionKey:"skuEvents",data:{event:"add_to_cart",commonData:{products:[{...n,...c.current.priceInfo}]},supportData:{selectedSku:a,selectedSkus:[a]},customData:{index:r}}})},g=()=>{s&&(m.current={item_list_name:s}),h("select_item")};return t.jsx(ar.Provider,{value:f.useMemo(()=>({...o,index:r,item:n,element:i,selectedSku:a,setSelectedSku:l,eventDataRef:c,sendAddToWishlistEvent:p,sendSelectItemEvent:g,sendAddToCartEvent:_}),[o,n,i,a]),children:e})},Y=()=>{const e=f.useContext(ar);if(e===void 0)throw new Error("useProductCardContext must be used within a ProductCardProvider");return e},U={"product-card--actions":"_product-card--actions_nmzk4_1","product-card--actions--group":"_product-card--actions--group_nmzk4_9","product-card--actions--selectors":"_product-card--actions--selectors_nmzk4_21","product-card--body":"_product-card--body_nmzk4_33","product-card--header":"_product-card--header_nmzk4_47","product-card--footer":"_product-card--footer_nmzk4_67","product-card--image":"_product-card--image_nmzk4_90","product-card--image--container":"_product-card--image--container_nmzk4_97","product-card--outstock":"_product-card--outstock_nmzk4_133","product-card--price":"_product-card--price_nmzk4_155","product-card--title":"_product-card--title_nmzk4_177","product-card--title--tag":"_product-card--title--tag_nmzk4_183","product-card--title--content":"_product-card--title--content_nmzk4_200","product-card--selectors--size":"_product-card--selectors--size_nmzk4_240","product-card--selectors--size--button":"_product-card--selectors--size--button_nmzk4_266","product-card--selectors--size--skus":"_product-card--selectors--size--skus_nmzk4_275","product-card--selectors--style":"_product-card--selectors--style_nmzk4_289","product-card--selectors--style--more":"_product-card--selectors--style--more_nmzk4_299","product-card--video":"_product-card--video_nmzk4_316","product-card--wrapper":"_product-card--wrapper_nmzk4_342"},ir=({callback:e,children:n,className:r,data:s,isKit:o,...a})=>{const{item:{availability:{status:l},image:i}}=Y();return l?t.jsxs("div",{...a,className:d.helpers.classNameConcat(U["product-card--actions"],r),children:[t.jsxs(G.Wrapper,{type:"actions--group",children:[t.jsx(G.Price,{}),t.jsx("div",{className:U["product-card--actions--selectors"],children:!o&&t.jsx(G.StyleSelector,{data:s,images:i,callback:e})})]}),n]}):null};ir.displayName="ProductCard.Actions";const lr=({className:e,isKit:n,...r})=>{const{addToCart:s}=Z(),{isMobile:o=!1,selectedSku:a,outStock:l,item:i,sendAddToCartEvent:c,CONSTANTS:u}=Y(),m=()=>{var _;if(!a)return;const p=Qe(a.offers.offers,u.StoreConfig_MainSellerId);p&&s({id:a==null?void 0:a.sku,quantity:1,seller:p.seller.identifier},{id:i.id,texture:(_=i==null?void 0:i.image.find(g=>u.TEXTURE_IMAGE.includes(g.alternateName)))==null?void 0:_.url}),c()},h=a?u.BUY_BUTTON_LABELS.add_to_cart:u.BUY_BUTTON_LABELS.select_size;return t.jsx(d.Button,{...r,className:d.helpers.classNameConcat(e,"buy-button"),disabled:!n&&!a&&!l,size:o?"medium":"large",variant:l?"secondary":"primary",onClick:l?r.onClick:m,children:l?"Avise-me quando chegar":h})};lr.displayName="ProductCard.Actions.BuyButton";const cr=({product:e,tag:n,size:r="small"})=>{const s=e.offers.offers[0],{CONSTANTS:o,WishListToggle:a}=Y();return t.jsxs(G.Wrapper,{type:"header",style:{zIndex:o.Z_INDEX_WAR.product_card_header},children:[n?t.jsx(d.Tag,{title:n.value,adornment:{start:n.enableIcon&&n.icon?t.jsx(d.Icon,{name:n.icon,size:"small",style:{color:n.iconColor}}):null},size:r,variant:"quaternary",style:{background:n.tagColor,color:n.textColor},children:n.value}):null,o.PRODUCT_CARD_TOP_WISHLIST_TOGGLE&&t.jsx(a,{product:e,priceInfo:{price:s.price,listPrice:s.listPrice},variant:"card"})]})};cr.displayName="ProductCard.Actions.Header";const dr=({className:e,children:n,hasPriority:r=!1,showVideo:s=!1,...o})=>{const{element:a,index:l,item:{image:i,slug:c,video:u},sendSelectItemEvent:m,order:h,CONSTANTS:p}=Y(),_=$t({images:i,label:{first:p.MAIN_IMAGE,second:p.SECOND_IMAGE}});return t.jsxs("div",{...o,className:d.helpers.classNameConcat(U["product-card--image"],e),ref:a,style:{aspectRatio:p.PRODUCT_CARD_IMAGE_ASPECT_RATIO},children:[t.jsx(x.NextLink,{href:`/${c}/p`,onClick:m,onMouseUp:g=>{g.button===1&&m(),p.PLP_INFINITE_SCROLL&&sessionStorage.setItem(p.PLP_GRID_SCROLL_BACK.order,String(h))},children:t.jsx("div",{className:U["product-card--image--container"],children:Array.isArray(_)&&_.map(({url:g,alternateName:C},y)=>f.createElement(J.Image,{...p.PRODUCT_IMAGE_DIMENSIONS.product_card,style:p.PRODUCT_IMAGE_DIMENSIONS.product_card,alt:C??"product image",key:y,...r&&{priority:y===0&&l<4},objectFit:"cover",src:g}))})}),p.PLP_SHOW_VIDEO_ON_PRODUCT_CARD&&s&&u&&t.jsx(G.Video,{url:u,poster:_[0].url}),n]})};dr.displayName="ProductCard.Media.Media";const ur=({className:e,callback:n,children:r,...s})=>{const{isMobile:o,item:a,CONSTANTS:{PRODUCT_CARD_TEXTS:l}}=Y(),{availability:{status:i}}=a;return i?null:t.jsxs("div",{...s,className:d.helpers.classNameConcat(U["product-card--outstock"],e),children:[t.jsx(d.Tag,{size:"small",variant:"secondary",title:l.disabled,children:l.disabled}),t.jsx(d.Button,{className:d.helpers.classNameConcat(e,"buy-button"),size:o?"medium":"large",variant:"quaternary",onClick:()=>{typeof n=="function"&&n(a)},children:l.notify})]})};ur.displayName="ProductCard.OutStock";const mr=({children:e,className:n="",index:r,isMobile:s=!1,item:o,size:a,order:l,outStock:i,shelfTitle:c,CONSTANTS:u,WishListToggle:m,...h})=>t.jsx(Fo,{item:o,isMobile:s,outStock:i,order:l,size:a,index:r,shelfTitle:c,CONSTANTS:u,WishListToggle:m,children:t.jsx("div",{...h,className:d.helpers.classNameConcat(U["product-card--wrapper"],n),"data-size":a,children:e})});mr.displayName="ProductCard.Root";const pr=({disabled:e,label:n,size:r,value:s,onClick:o,...a})=>t.jsxs(d.ToggleSize.Wrapper,{...a,disabled:!1,outOfStock:e,size:r,onClick:o,children:[t.jsx(d.ToggleSize.DisabledAdornment,{}),t.jsx(d.ToggleSize.Text,{children:n})]});pr.displayName="ProductCard.SizeSelector.Item";const fr=({active:e=!1,callback:n,selectedSku:r=null,item:s,setNotify:o})=>{const{item:a,isMobile:l,setSelectedSku:i,eventDataRef:c}=Y();s.productId=a.id;const u=Lt(s),m=x.getSKUName(s,"tamanho");!u&&!c.current.availableSkus.includes(m)&&c.current.availableSkus.push(m);const h=f.useCallback(_=>{const g=r===_?null:_;typeof i=="function"&&i(g),typeof n=="function"&&n(g)},[n,i,r]),p=f.useCallback(()=>{if(u&&typeof o=="function"){o(a,s);return}h(s)},[s,o,h,u,a]);return t.jsx(pr,{active:e,disabled:u,label:m,onClick:()=>p(),size:l?"x-small":"small",value:s})};fr.displayName="ProductCard.SizeSelector.SkuItem";const hr=({callback:e,className:n="",children:r,setNotify:s,...o})=>{const{isMobile:a,item:{isVariantOf:{hasVariant:l}},selectedSku:i}=Y();return t.jsxs("div",{...o,className:d.helpers.classNameConcat(U["product-card--selectors--size"],n),"data-mobile":a,children:[t.jsx("div",{className:U["product-card--selectors--size--skus"],children:Array.isArray(l)&&l.map((c,u)=>t.jsx(fr,{active:i===c,callback:e,item:c,selectedSku:i,setNotify:s},`size--${u}--${c.sku}`))}),t.jsx("div",{className:U["product-card--selectors--size--button"],children:r})]})};hr.displayName="ProductCard.SizeSelector";const $e=({alt:e="",callback:n,more:r,total:s=4,src:o,url:a,...l})=>t.jsxs(d.ToggleStyle.Wrapper,{...l,onClick:()=>{typeof n=="function"&&n(a)},children:[t.jsx(d.ToggleStyle.DisabledAdornment,{}),t.jsxs(d.ToggleStyle.Texture,{children:[o&&t.jsx(J.Image,{alt:e??o,src:o,height:34,width:34}),r&&t.jsx(d.TextStructure.DivWrapper,{className:U["product-card--selectors--style--more"],children:t.jsxs("p",{children:["+ ",s]})})]})]}),Uo=({children:e,callback:n,data:r,total:s=4,size:o,...a})=>{const{index:l}=Y(),{triggerSelectItemEventRef:i}=x.useEventContext();return t.jsxs("div",{...a,children:[e,Array.isArray(r)&&r.slice(0,s).map((c,u)=>t.jsx($e,{callback:m=>{i.current.trigger=!0,i.current.index=l,typeof n=="function"&&n(m)},src:(c==null?void 0:c.textureImage)??"",alt:c==null?void 0:c.textureAlt,url:c==null?void 0:c.slug,size:o},u)),Array.isArray(r)&&(r==null?void 0:r.length)>s&&t.jsx($e,{size:o,total:r.length-s,more:!0})]})},gr=({callback:e,className:n,data:r,images:s=[],findTexture:o,...a})=>{const{CONSTANTS:l}=Y(),i=o||l.TEXTURE_IMAGE,c=s==null?void 0:s.find(u=>i.includes(u.alternateName));return t.jsx(Uo,{...a,callback:e,className:d.helpers.classNameConcat(U["product-card--selectors--style"],n),data:r,size:"x-small",children:c&&t.jsx($e,{active:!0,size:"x-small",src:c.url})})};gr.displayName="ProductCard.StyleSelector";const _r=({className:e,hasDecimal:n,...r})=>{const{isMobile:s,item:{offers:{lowPrice:o,highPrice:a},installments:{count:l,value:i}},eventDataRef:c}=Y();c.current.priceInfo={price:o,listPrice:a};const u=K(a,n),m=K(o,n),h=K(i??0),p=s?"horizontal":"stacked";return t.jsx("div",{...r,className:d.helpers.classNameConcat(U["product-card--price"],e),"data-mobile":s,children:t.jsx(d.ProductInfo.Root,{size:"small",layout:p,children:t.jsxs(d.ProductInfo.Wrapper,{size:"small",layout:p,children:[t.jsx(d.ProductInfo.ValuesWrapper,{children:m!==u?t.jsxs(t.Fragment,{children:[t.jsx(d.ProductInfo.Price,{label:"originalPrice",value:u,size:"small"}),t.jsx(d.ProductInfo.Price,{label:"discountPrice",value:m,size:"small"})]}):t.jsx(d.ProductInfo.Price,{label:"defaultPrice",value:m,size:"small"})}),l&&l>1&&i?t.jsx(d.ProductInfo.Price,{label:"installment",value:`${l}x ${h}`,size:"small"}):null]})})})};_r.displayName="ProductCard.Price";const xr=({tag:e,className:n})=>{const{item:{name:r}}=Y();return t.jsxs("div",{className:d.helpers.classNameConcat(U["product-card--title"],n),children:[t.jsx("div",{className:U["product-card--title--tag"],children:e?t.jsx(d.Tag,{size:"small",title:e.value,variant:"quaternary",adornment:{start:e.enableIcon&&e.icon?t.jsx(d.Icon,{name:e.icon,style:{color:e.iconColor}}):null},style:{background:e.tagColor,color:e.textColor},children:e.value}):t.jsx("div",{})}),t.jsx("div",{className:U["product-card--title--content"],children:r&&t.jsx(d.TextStructure.Root,{children:t.jsx(d.TextStructure.DivWrapper,{children:t.jsx("h3",{children:r})})})})]})};xr.displayName="ProductCard.Title";const yr=({className:e,url:n,poster:r,...s})=>{const{element:o}=Y();return f.useEffect(()=>{if(!(o!=null&&o.current))return;const a=o.current,l=a.querySelector("video");if(l){const i=new IntersectionObserver(m=>{m.forEach(h=>{Ft(h.isIntersecting,l,n)})},{root:null,rootMargin:"0px",threshold:.5}),c=()=>{l.setAttribute("data-loaded","true")},u=()=>{a&&(i.observe(a),l.addEventListener("loadeddata",c))};return document.readyState==="complete"?u():window.addEventListener("load",u),()=>{i.disconnect(),window.removeEventListener("load",u)}}return()=>null},[n,o]),t.jsx("div",{...s,className:d.helpers.classNameConcat(U["product-card--video"],e),children:n&&t.jsx(J.Video,{autoPlay:!1,muted:!0,loop:!0,preload:"none",playsInline:!0,poster:r})})};yr.displayName="ProductCard.Media.Video";const Cr=({children:e,className:n,type:r,...s})=>t.jsx("div",{...s,className:d.helpers.classNameConcat(U[`product-card--${r}`],n),children:e});Cr.displayName="ProductCard.Wrapper";const G={Actions:ir,BuyButton:lr,Header:cr,Media:dr,Root:mr,OutStock:ur,Price:_r,SizeSelector:hr,StyleSelector:gr,Title:xr,Video:yr,Wrapper:Cr},qo=Object.freeze(Object.defineProperty({__proto__:null,Footer:x.Footer,FooterSupport:x.FooterSupport},Symbol.toStringTag,{value:"Module"})),Ct=({image:e,index:n,handleZoom:r,PRODUCT_IMAGE_DIMENSIONS:s})=>{const o=zt(e.imageUrl,s.pdp),{nextimage:a}=x.useNextContext();return t.jsx(a,{src:o,alt:e.imageLabel,objectFit:"contain",...s.pdp,...n<=1&&{priority:!0,loading:"eager"},onClick:()=>{r(n)}},n)},Vo=({video:e,productName:n,poster:r})=>{const{sendDataLayerEvent:s}=x.useEventContext(),o=f.useRef(!1);return t.jsx(J.Video,{src:e,autoPlay:!0,muted:!0,loop:!0,playsInline:!0,style:{zIndex:-1,aspectRatio:"2/3"},onPlaying:()=>{o.current||(o.current=!0,s({functionKey:"readyEvents",data:{event:"video_start",readyData:{product:n}}}))},poster:r})},Go={"gallery-carousel-modifier":"_gallery-carousel-modifier_1dxfy_92"},vr=({images:e,video:n,handleZoom:r,productName:s,PRODUCT_IMAGE_DIMENSIONS:o})=>{var u,m;const{initialize:a,pagination:l,controller:i,itemsStyles:c}=d.Carousel.useCarousel({gap:0,itemsPerPage:1,loop:!1,direction:"row"});return t.jsxs(d.Carousel.Root,{innerRef:h=>{a(h)},className:Go["gallery-carousel-modifier"],children:[t.jsx(d.Carousel.Controller,{position:"absolute",top:"24px",bottom:"unset",left:"16px",children:t.jsx(d.Carousel.Bullets,{page:l.currentPage,total:e.length,onBulletClick:h=>i==null?void 0:i.navigateTo(h)})}),t.jsxs(d.Carousel.Body,{children:[t.jsx(d.Carousel.Item,{style:c,children:t.jsx(Ct,{image:e[0],index:0,handleZoom:r,PRODUCT_IMAGE_DIMENSIONS:o})},"PDP_gallery_0"),n&&t.jsx(d.Carousel.Item,{style:c,children:t.jsx(Vo,{video:n,productName:s,...((u=e[1])==null?void 0:u.imageUrl)&&{poster:(m=e[1])==null?void 0:m.imageUrl}})},"PDP_gallery_video"),e.map((h,p)=>p===0?null:t.jsx(d.Carousel.Item,{style:c,children:t.jsx(Ct,{image:h,index:p,handleZoom:r,PRODUCT_IMAGE_DIMENSIONS:o})},`PDP_gallery_${p}`))]})]})};vr.displayName="PDP.Carousel";const Ho=({productImgs:e,PRODUCT_IMAGE_DIMENSIONS:n})=>{const{video:r,productName:s}=Je(),[o,a]=f.useState({show:!1,initialIndex:0});f.useEffect(()=>(o.show?document.body.classList.add("no-scroll"):document.body.classList.remove("no-scroll"),()=>{document.body.classList.remove("no-scroll")}),[o]);const l=i=>{a({show:!0,initialIndex:i})};return t.jsx(t.Fragment,{children:t.jsx(vr,{images:e,video:r,handleZoom:l,productName:s,PRODUCT_IMAGE_DIMENSIONS:n})})},br=({TEXTURE_IMAGE:e,PRODUCT_IMAGE_DIMENSIONS:n})=>{const{images:r}=Je(),s=f.useMemo(()=>{const o=r.filter(a=>!e.includes(a.imageLabel));return o.length>0?o:r},[]);return t.jsx(Ho,{productImgs:s,PRODUCT_IMAGE_DIMENSIONS:n})};br.displayName="PDP.Gallery";const Wo=Object.freeze(Object.defineProperty({__proto__:null,Gallery:br},Symbol.toStringTag,{value:"Module"})),Ko="_container_1sy8s_16",te={"carousel-container":"_carousel-container_1sy8s_1","add-cart-container":"_add-cart-container_1sy8s_8",container:Ko,"add-itens-to-cart-container":"_add-itens-to-cart-container_1sy8s_38","add-itens-to-cart-container-values":"_add-itens-to-cart-container-values_1sy8s_45","add-itens-to-cart-qty-products":"_add-itens-to-cart-qty-products_1sy8s_50","add-itens-to-cart-total":"_add-itens-to-cart-total_1sy8s_60","add-button":"_add-button_1sy8s_70"},Xo=({selectedProducts:e,handleAddAllToCart:n,CONSTANTS:r})=>{const s=Object.values(e.products).length;return t.jsxs("div",{className:te["add-itens-to-cart-container"],children:[t.jsxs("div",{className:te["add-itens-to-cart-container-values"],children:[t.jsx("div",{className:te["add-itens-to-cart-qty-products"],children:t.jsx("span",{children:s===0?r.BUY_PACKAGE.group_cart.select_all_product:`${s} ${s===1?r.BUY_PACKAGE.group_cart.select_product:r.BUY_PACKAGE.group_cart.select_product+"s"}`})}),t.jsx("div",{className:te["add-itens-to-cart-total"],children:t.jsx("span",{children:Ye({valueInCents:e.totalPrice*100,hasFree:!1,freeTaxMessage:r.FREIGHT_CALCULATION.messages.free_tax})})})]}),t.jsx(d.Button,{onClick:n,className:te["add-button"],size:"large",disabled:s===0,variant:"primary",children:r.BUY_BUTTON_LABELS.add_to_cart})]})},Yo=e=>e.reduce((n,r)=>{var o;const s=n.find(a=>a.node.id===r.node.id);if(!s)return[...n,r];if((o=s==null?void 0:s.node.isVariantOf)!=null&&o.hasVariant){const a=s.node.isVariantOf.hasVariant,l=r.node.isVariantOf.hasVariant;a&&l&&(s.node.isVariantOf.hasVariant=[...a,...l])}return n},[]),Qo=({selectedProduct:e,productId:n,prevState:r,mainSellerId:s})=>{const{products:o,totalPrice:a}=r;try{if(!e){const{[n]:u,...m}=o;return{...r,totalPrice:a-u.price,products:m}}const l=Qe(e.offers.offers,s);if(!l)return r;const i=l.seller.identifier,c=l.price;if(o[n]){const{price:u}=o[n];return o[n]={...o[n],price:c,id:e.sku,seller:i},{totalPrice:a+c-u,products:{...o}}}return{totalPrice:a+c,products:{...o,[n]:{id:e.sku,price:c,seller:i,productId:n}}}}catch(l){return console.error("Error handling SKU selection:",l),r}},Jo="_carousel_245ib_1",Zo="_shelf__container_245ib_14",ea="_shelf_without_carousel_245ib_34",he={carousel:Jo,"custom-controllers":"_custom-controllers_245ib_5",shelf__container:Zo,"controllers-arrows-bullets":"_controllers-arrows-bullets_245ib_23",shelf_without_carousel:ea},vt=({title:e})=>t.jsx("div",{className:he.shelf__container,children:e&&t.jsx(d.TextStructure.Root,{children:t.jsxs(d.TextStructure.DivWrapper,{children:[t.jsx("h2",{className:d.helpers.classNameConcat("typography-style-body-md",x.responsive["responsive-mobile-flex"]),children:e}),t.jsx("h2",{className:d.helpers.classNameConcat("typography-style-heading-md",x.responsive["responsive-desktop-flex"]),children:e})]})})}),ta=({children:e,ICONS:n,itemsPerPage:r,title:s})=>{const{isMobile:o}=x.useGlobalContext(),a=r[o?"mobile":"desktop"],{initialize:l,controller:i,itemsStyles:c,pagination:u}=d.Carousel.useCarousel({itemsPerPage:a,gap:10,loop:!0,direction:"row"}),m=f.Children.toArray(e).length;return o||m>=4?t.jsxs(d.Carousel.Root,{innerRef:p=>{l(p)},className:he.carousel,children:[t.jsxs("div",{className:he["custom-controllers"],children:[s&&t.jsx(vt,{title:s}),a<m&&t.jsxs(d.Carousel.Controller,{className:he["controllers-arrows-bullets"],children:[t.jsxs(d.Carousel.Arrows,{children:[t.jsx(d.Button,{variant:"tertiary",onClick:()=>i==null?void 0:i.prevPage(),adornment:{start:t.jsx(d.Icon,{name:n.arrow_left})}}),t.jsx(d.Button,{variant:"tertiary",onClick:()=>i==null?void 0:i.nextPage(),adornment:{start:t.jsx(d.Icon,{name:n.arrow_right})}})]}),!o&&a>2&&t.jsx(d.Carousel.Bullets,{page:u.currentPage,total:u.totalPages,onBulletClick:p=>i==null?void 0:i.navigateTo(p)})]})]}),t.jsx(d.Carousel.Body,{children:f.Children.map(e,(p,_)=>t.jsx(d.Carousel.Item,{style:{...c,overflow:"hidden"},children:p},`${s}_${_}`))})]}):t.jsxs(t.Fragment,{children:[s&&t.jsx(vt,{title:s}),t.jsx("div",{className:he.shelf_without_carousel,children:e})]})},na={Shelf:ta},ra=({CONSTANTS:e,inView:n,products:r,innerRef:s,WishListToggle:o})=>{const a=f.useMemo(()=>Yo(r),[r]),{isMobile:l}=x.useGlobalContext(),{addItemsToCart:i}=Z(),{sendDataLayerEvent:c}=x.useEventContext(),{getAvailableProductTag:u}=Xe(),[m,h]=f.useState({totalPrice:0,products:{}}),p=()=>{const g=Object.values(m.products);i(g),c({functionKey:"skuEvents",data:{event:"add_to_cart",commonData:{products:g.map(C=>{const y=a.find(v=>v.node.id===C.productId);return y==null?void 0:y.node})},supportData:{selectedSkus:g,price:m.totalPrice}}})},_=({selectedProduct:g,productId:C})=>{const y=Qo({selectedProduct:g,productId:C,prevState:m,mainSellerId:e.StoreConfig_MainSellerId});h(y)};return f.useEffect(()=>{if(!n||a.length===0)return;const g=e.BUY_PACKAGE.header.title;c({functionKey:"productListEvent",data:{event:"view_item_list",commonData:{products:a},customData:{item_list_name:g},outsideEcommerceData:{item_list_name:g}}})},[n]),t.jsxs("div",{className:te.container,ref:s,children:[t.jsx("div",{className:te["carousel-container"],style:{width:a.length<=3?"max-content":"75%"},children:t.jsx(na.Shelf,{title:e.BUY_PACKAGE.header.title,itemsPerPage:{desktop:3,mobile:a.length>=3?2.2:a.length},ICONS:e.ICONS,children:Array.isArray(a)&&a.map(({node:g},C)=>{var N,j,w;const y=u(g.cluster.highlights),{availability:{status:v}}=g;return v?t.jsxs(G.Root,{item:{...g,image:at.helpers.product.getFirstImages({images:g.image,label:{first:e.MAIN_IMAGE,second:e.SECOND_IMAGE}})},isMobile:l,size:"medium",index:C,shelfTitle:e.BUY_PACKAGE.header.title,CONSTANTS:e,WishListToggle:o,children:[t.jsx(G.Header,{product:g,tag:y.commercial}),t.jsx(G.Media,{}),t.jsxs(G.Wrapper,{type:"body",children:[t.jsx(G.Title,{tag:{value:(N=y.institucional)==null?void 0:N.value,enableIcon:(j=y.institucional)==null?void 0:j.enableIcon,icon:(w=y.institucional)==null?void 0:w.icon}}),t.jsx(G.Actions,{children:t.jsx(G.SizeSelector,{callback:b=>_({selectedProduct:b,productId:g.id})})})]})]},g.id):null})})}),t.jsx("div",{className:te["add-cart-container"],children:t.jsx(Xo,{handleAddAllToCart:p,selectedProducts:m,CONSTANTS:{BUY_BUTTON_LABELS:e.BUY_BUTTON_LABELS,BUY_PACKAGE:e.BUY_PACKAGE,FREIGHT_CALCULATION:e.FREIGHT_CALCULATION}})})]})},sa=({page:e,data:n})=>{const{pathname:r}=x.useNextContext(),s=f.useRef(null),{sendDataLayerEvent:o,currentLocalRef:a,itemListRef:l,promotionEventRef:i}=x.useEventContext();return f.useEffect(()=>{const c=gn("login_event")||"{}",u=JSON.parse(c);if(u.name||u.method){const m=new Date(0);o({functionKey:"readyEvents",data:{event:u.name,readyData:{method:u.method}}}),st("login_event","",{expires:m})}},[]),f.useEffect(()=>{if(s.current===r)return;s.current=r;let c={};switch(e){case"PDP":{const m=n,h={};if(!m){c={page_category:"pdp"};break}m.items.forEach(({itemId:p,sellers:_})=>h[p]=_[0].commertialOffer.AvailableQuantity),c={page_category:"pdp",seller_ids:m.items.map(({sellers:p})=>p[0].sellerId).join(),skuStocks:h,product_reference_id:m.productReference};break}case"PDC":{const{page_category:m,page_departament:h,id:p,name:_}=x.getPageCategoryAndDepartmentFromSlug(),g=_,C=p;c={page_category:"lista_produtos",...h&&{page_departament:h}},l.current={item_list_name:r==="/search"?"busca":g??void 0,item_list_id:r==="/search"?void 0:C??void 0},h&&o({functionKey:"readyEvents",data:{event:"view_category",readyData:{page_category:m,page_departament:h}}});break}default:c={page_category:e},i.current={},l.current={};break}const u={region:e,...c};a.current=e,o({functionKey:"readyEvents",data:{readyData:{vtex_version:"fast",...u}},timeout:0})},[r]),null};var Fe={exports:{}};function oa(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 Oe={},Le={},bt;function aa(){return bt||(bt=1,function(e){"use client";Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"LoadableContext",{enumerable:!0,get:function(){return s}});const s=x._interop_require_default._(f).default.createContext(null);process.env.NODE_ENV!=="production"&&(s.displayName="LoadableContext")}(Le)),Le}var jt;function ia(){return jt||(jt=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return _}});const r=x._interop_require_default._(f),s=aa();function o(g){return g&&g.default?g.default:g}const a=[],l=[];let i=!1;function c(g){let C=g(),y={loading:!0,loaded:null,error:null};return y.promise=C.then(v=>(y.loading=!1,y.loaded=v,v)).catch(v=>{throw y.loading=!1,y.error=v,v}),y}function u(g,C){let y=Object.assign({loader:null,loading:null,delay:200,timeout:null,webpack:null,modules:null},C),v=null;function N(){if(!v){const b=new m(g,y);v={getCurrentValue:b.getCurrentValue.bind(b),subscribe:b.subscribe.bind(b),retry:b.retry.bind(b),promise:b.promise.bind(b)}}return v.promise()}if(typeof window>"u"&&a.push(N),!i&&typeof window<"u"){const b=y.webpack&&typeof oa.resolveWeak=="function"?y.webpack():y.modules;b&&l.push(I=>{for(const k of b)if(I.includes(k))return N()})}function j(){N();const b=r.default.useContext(s.LoadableContext);b&&Array.isArray(y.modules)&&y.modules.forEach(I=>{b(I)})}function w(b,I){j();const k=r.default.useSyncExternalStore(v.subscribe,v.getCurrentValue,v.getCurrentValue);return r.default.useImperativeHandle(I,()=>({retry:v.retry}),[]),r.default.useMemo(()=>k.loading||k.error?r.default.createElement(y.loading,{isLoading:k.loading,pastDelay:k.pastDelay,timedOut:k.timedOut,error:k.error,retry:v.retry}):k.loaded?r.default.createElement(o(k.loaded),b):null,[b,k])}return w.preload=()=>N(),w.displayName="LoadableComponent",r.default.forwardRef(w)}class m{promise(){return this._res.promise}retry(){this._clearTimeouts(),this._res=this._loadFn(this._opts.loader),this._state={pastDelay:!1,timedOut:!1};const{_res:C,_opts:y}=this;C.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(C){this._state={...this._state,error:this._res.error,loaded:this._res.loaded,loading:this._res.loading,...C},this._callbacks.forEach(y=>y())}_clearTimeouts(){clearTimeout(this._delay),clearTimeout(this._timeout)}getCurrentValue(){return this._state}subscribe(C){return this._callbacks.add(C),()=>{this._callbacks.delete(C)}}constructor(C,y){this._loadFn=C,this._opts=y,this._callbacks=new Set,this._delay=null,this._timeout=null,this.retry()}}function h(g){return u(c,g)}function p(g,C){let y=[];for(;g.length;){let v=g.pop();y.push(v(C))}return Promise.all(y).then(()=>{if(g.length)return p(g,C)})}h.preloadAll=()=>new Promise((g,C)=>{p(a).then(g,C)}),h.preloadReady=g=>(g===void 0&&(g=[]),new Promise(C=>{const y=()=>(i=!0,C());p(l,g).then(y,y)})),typeof window<"u"&&(window.__NEXT_PRELOADREADY=h.preloadReady);const _=h}(Oe)),Oe}(function(e,n){Object.defineProperty(n,"__esModule",{value:!0});function r(m,h){for(var p in h)Object.defineProperty(m,p,{enumerable:!0,get:h[p]})}r(n,{noSSR:function(){return c},default:function(){return u}});const s=x._interop_require_default,o=s._(f),a=s._(ia()),l=typeof window>"u";function i(m){return{default:(m==null?void 0:m.default)||m}}function c(m,h){if(delete h.webpack,delete h.modules,!l)return m(h);const p=h.loading;return()=>o.default.createElement(p,{error:null,isLoading:!0,pastDelay:!1,timedOut:!1})}function u(m,h){let p=a.default,_={loading:y=>{let{error:v,isLoading:N,pastDelay:j}=y;if(!j)return null;if(process.env.NODE_ENV!=="production"){if(N)return null;if(v)return o.default.createElement("p",null,v.message,o.default.createElement("br",null),v.stack)}return null}};m instanceof Promise?_.loader=()=>m:typeof m=="function"?_.loader=m:typeof m=="object"&&(_={..._,...m}),_={..._,...h};const g=_.loader,C=()=>g!=null?g().then(i):Promise.resolve(i(()=>null));return _.loadableGenerated&&(_={..._,..._.loadableGenerated},delete _.loadableGenerated),typeof _.ssr=="boolean"&&!_.ssr?(delete _.webpack,delete _.modules,c(p,_)):p({..._,loader:C})}(typeof n.default=="function"||typeof n.default=="object"&&n.default!==null)&&typeof n.default.__esModule>"u"&&(Object.defineProperty(n.default,"__esModule",{value:!0}),Object.assign(n.default,n),e.exports=n.default)})(Fe,Fe.exports);var la=Fe.exports,ca=la;const da=x.getDefaultExportFromCjs(ca);var Ue={exports:{}},Se={exports:{}},St;function ua(){return St||(St=1,function(e,n){Object.defineProperty(n,"__esModule",{value:!0});function r(c,u){for(var m in u)Object.defineProperty(c,m,{enumerable:!0,get:u[m]})}r(n,{DOMAttributeNames:function(){return s},isEqualNode:function(){return a},default:function(){return i}});const s={acceptCharset:"accept-charset",className:"class",htmlFor:"for",httpEquiv:"http-equiv",noModule:"noModule"};function o(c){let{type:u,props:m}=c;const h=document.createElement(u);for(const g in m){if(!m.hasOwnProperty(g)||g==="children"||g==="dangerouslySetInnerHTML"||m[g]===void 0)continue;const C=s[g]||g.toLowerCase();u==="script"&&(C==="async"||C==="defer"||C==="noModule")?h[C]=!!m[g]:h.setAttribute(C,m[g])}const{children:p,dangerouslySetInnerHTML:_}=m;return _?h.innerHTML=_.__html||"":p&&(h.textContent=typeof p=="string"?p:Array.isArray(p)?p.join(""):""),h}function a(c,u){if(c instanceof HTMLElement&&u instanceof HTMLElement){const m=u.getAttribute("nonce");if(m&&!c.getAttribute("nonce")){const h=u.cloneNode(!0);return h.setAttribute("nonce",""),h.nonce=m,m===c.nonce&&c.isEqualNode(h)}}return c.isEqualNode(u)}let l;process.env.__NEXT_STRICT_NEXT_HEAD?l=(c,u)=>{const m=document.querySelector("head");if(!m)return;const h=m.querySelectorAll('meta[name="next-head"]')||[],p=[];if(c==="meta"){const C=m.querySelector("meta[charset]");C&&p.push(C)}for(let C=0;C<h.length;C++){var _;const v=h[C].nextSibling;(v==null||(_=v.tagName)==null?void 0:_.toLowerCase())===c&&p.push(v)}const g=u.map(o).filter(C=>{for(let y=0,v=p.length;y<v;y++){const N=p[y];if(a(N,C))return p.splice(y,1),!1}return!0});p.forEach(C=>{var y;const v=C.previousSibling;if(v&&v.getAttribute("name")==="next-head"){var N;(N=C.parentNode)==null||N.removeChild(v)}(y=C.parentNode)==null||y.removeChild(C)}),g.forEach(C=>{var y;const v=document.createElement("meta");v.name="next-head",v.content="1",((y=C.tagName)==null?void 0:y.toLowerCase())==="meta"&&C.getAttribute("charset")||m.appendChild(v),m.appendChild(C)})}:l=(c,u)=>{const m=document.getElementsByTagName("head")[0],h=m.querySelector("meta[name=next-head-count]");if(process.env.NODE_ENV!=="production"&&!h){console.error("Warning: next-head-count is missing. https://nextjs.org/docs/messages/next-head-count-missing");return}const p=Number(h.content),_=[];for(let y=0,v=h.previousElementSibling;y<p;y++,v=(v==null?void 0:v.previousElementSibling)||null){var g;(v==null||(g=v.tagName)==null?void 0:g.toLowerCase())===c&&_.push(v)}const C=u.map(o).filter(y=>{for(let v=0,N=_.length;v<N;v++){const j=_[v];if(a(j,y))return _.splice(v,1),!1}return!0});_.forEach(y=>{var v;return(v=y.parentNode)==null?void 0:v.removeChild(y)}),C.forEach(y=>m.insertBefore(y,h)),h.content=(p-_.length+C.length).toString()};function i(){return{mountedInstances:new Set,updateHead:c=>{const u={};c.forEach(p=>{if(p.type==="link"&&p.props["data-optimized-fonts"]){if(document.querySelector('style[data-href="'+p.props["data-href"]+'"]'))return;p.props.href=p.props["data-href"],p.props["data-href"]=void 0}const _=u[p.type]||[];_.push(p),u[p.type]=_});const m=u.title?u.title[0]:null;let h="";if(m){const{children:p}=m.props;h=typeof p=="string"?p:Array.isArray(p)?p.join(""):""}h!==document.title&&(document.title=h),["meta","base","link","style","script"].forEach(p=>{l(p,u[p]||[])})}}}(typeof n.default=="function"||typeof n.default=="object"&&n.default!==null)&&typeof n.default.__esModule>"u"&&(Object.defineProperty(n.default,"__esModule",{value:!0}),Object.assign(n.default,n),e.exports=n.default)}(Se,Se.exports)),Se.exports}(function(e,n){"use client";Object.defineProperty(n,"__esModule",{value:!0});function r(b,I){for(var k in I)Object.defineProperty(b,k,{enumerable:!0,get:I[k]})}r(n,{handleClientScriptLoad:function(){return C},initScriptLoader:function(){return N},default:function(){return w}});const s=x._interop_require_default,o=x._interop_require_wildcard,a=s._(Tr),l=o._(f),i=x.requireHeadManagerContext_sharedRuntime(),c=ua(),u=x.requireRequestIdleCallback(),m=new Map,h=new Set,p=["onLoad","onReady","dangerouslySetInnerHTML","children","onError","strategy","stylesheets"],_=b=>{if(a.default.preinit){b.forEach(I=>{a.default.preinit(I,{as:"style"})});return}if(typeof window<"u"){let I=document.head;b.forEach(k=>{let D=document.createElement("link");D.type="text/css",D.rel="stylesheet",D.href=k,I.appendChild(D)})}},g=b=>{const{src:I,id:k,onLoad:D=()=>{},onReady:F=null,dangerouslySetInnerHTML:M,children:B="",strategy:V="afterInteractive",onError:R,stylesheets:S}=b,E=k||I;if(E&&h.has(E))return;if(m.has(I)){h.add(E),m.get(I).then(D,R);return}const A=()=>{F&&F(),h.add(E)},P=document.createElement("script"),$=new Promise((z,q)=>{P.addEventListener("load",function(W){z(),D&&D.call(this,W),A()}),P.addEventListener("error",function(W){q(W)})}).catch(function(z){R&&R(z)});M?(P.innerHTML=M.__html||"",A()):B?(P.textContent=typeof B=="string"?B:Array.isArray(B)?B.join(""):"",A()):I&&(P.src=I,m.set(I,$));for(const[z,q]of Object.entries(b)){if(q===void 0||p.includes(z))continue;const W=c.DOMAttributeNames[z]||z.toLowerCase();P.setAttribute(W,q)}V==="worker"&&P.setAttribute("type","text/partytown"),P.setAttribute("data-nscript",V),S&&_(S),document.body.appendChild(P)};function C(b){const{strategy:I="afterInteractive"}=b;I==="lazyOnload"?window.addEventListener("load",()=>{(0,u.requestIdleCallback)(()=>g(b))}):g(b)}function y(b){document.readyState==="complete"?(0,u.requestIdleCallback)(()=>g(b)):window.addEventListener("load",()=>{(0,u.requestIdleCallback)(()=>g(b))})}function v(){[...document.querySelectorAll('[data-nscript="beforeInteractive"]'),...document.querySelectorAll('[data-nscript="beforePageRender"]')].forEach(I=>{const k=I.id||I.getAttribute("src");h.add(k)})}function N(b){b.forEach(C),v()}function j(b){const{id:I,src:k="",onLoad:D=()=>{},onReady:F=null,strategy:M="afterInteractive",onError:B,stylesheets:V,...R}=b,{updateScripts:S,scripts:E,getIsSsr:A,appDir:P,nonce:$}=(0,l.useContext)(i.HeadManagerContext),z=(0,l.useRef)(!1);(0,l.useEffect)(()=>{const W=I||k;z.current||(F&&W&&h.has(W)&&F(),z.current=!0)},[F,I,k]);const q=(0,l.useRef)(!1);if((0,l.useEffect)(()=>{q.current||(M==="afterInteractive"?g(b):M==="lazyOnload"&&y(b),q.current=!0)},[b,M]),(M==="beforeInteractive"||M==="worker")&&(S?(E[M]=(E[M]||[]).concat([{id:I,src:k,onLoad:D,onReady:F,onError:B,...R}]),S(E)):A&&A()?h.add(I||k):A&&!A()&&g(b)),P){if(V&&V.forEach(W=>{a.default.preinit(W,{as:"style"})}),M==="beforeInteractive")return k?(a.default.preload(k,R.integrity?{as:"script",integrity:R.integrity}:{as:"script"}),l.default.createElement("script",{nonce:$,dangerouslySetInnerHTML:{__html:"(self.__next_s=self.__next_s||[]).push("+JSON.stringify([k])+")"}})):(R.dangerouslySetInnerHTML&&(R.children=R.dangerouslySetInnerHTML.__html,delete R.dangerouslySetInnerHTML),l.default.createElement("script",{nonce:$,dangerouslySetInnerHTML:{__html:"(self.__next_s=self.__next_s||[]).push("+JSON.stringify([0,{...R}])+")"}}));M==="afterInteractive"&&k&&a.default.preload(k,R.integrity?{as:"script",integrity:R.integrity}:{as:"script"})}return null}Object.defineProperty(j,"__nextScript",{value:!0});const w=j;(typeof n.default=="function"||typeof n.default=="object"&&n.default!==null)&&typeof n.default.__esModule>"u"&&(Object.defineProperty(n.default,"__esModule",{value:!0}),Object.assign(n.default,n),e.exports=n.default)})(Ue,Ue.exports);var ma=Ue.exports,pa=ma;const fa=x.getDefaultExportFromCjs(pa),ha=({children:e,ONE_TRUST:n})=>t.jsxs(t.Fragment,{children:[t.jsx(fa,{src:"https://cdn.cookielaw.org/scripttemplates/otSDKStub.js",defer:!0,strategy:"afterInteractive","data-domain-script":n.siteId,type:"text/javascript"}),e]}),ga=da(()=>Promise.resolve(ha),{ssr:!1}),_a={"snackbar-modifier":"_snackbar-modifier_1va2l_1"},ge=({size:e,adornment:n,title:r,subtitle:s,supportChildren:o,className:a,Z_INDEX_WAR:l,...i})=>t.jsxs(d.SnackBar.Structure,{...i,size:e,className:d.helpers.classNameConcat(_a["snackbar-modifier"],a),width:360,style:{zIndex:l.snackbar},children:[t.jsx(d.SnackBar.Content,{adornment:n,title:r,subtitle:s}),o&&t.jsx(d.SnackBar.Support,{children:o})]});ge.displayName="SnackBar";const jr=({children:e,contentState:n,entityKey:r})=>{const{url:s}=n.getEntity(r).getData();return s?t.jsx(x.NextLink,{href:s,children:e}):e},xa={teamComponents:{AddToCart:it,BackToTop:Hs,BuyPackage:ra,...qo,FreightCalculation:$o,Header:or,Link:ne,Media:J,ProductCard:G,UserMenu:ut},template:{pdp:Wo},utils:{EventCollector:sa,ExternalScripts:ga,LinkOrNotLink:ve,ObserverWrapper:Ae,SnackBarComponent:ge,DraftJsLinkWrapper:jr}},ya=(e,n)=>{const r=e.map(o=>`'${o.source}'`).join(`,
|
|
1
|
+
"use strict";var El=Object.defineProperty;var Rl=(e,t,r)=>t in e?El(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r;var ir=(e,t,r)=>Rl(e,typeof t!="symbol"?t+"":t,r);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const a=require("react/jsx-runtime"),C=require("react"),Ze=require("idb-keyval"),ot=require("zustand"),Kn=require("js-cookie"),v=require("@soma-vertical-web/core-components"),Te=require("./__vite-browser-external-B8mGO3z6.js"),jl=require("jose"),tt=require("@soma-vertical-web/foundations"),Yo=require("axios"),ma=require("react-dom"),De=require("draft-js"),Zo=require("@date-fns/tz"),bo=C.createContext({}),wl=({data:e,children:t})=>a.jsx(bo.Provider,{value:{tags:e==null?void 0:e.config},children:t}),xo=()=>{const{tags:e}=C.useContext(bo),t=C.useCallback(r=>{var s,c,u,l;const n=(c=(s=e==null?void 0:e.commercial)==null?void 0:s.items)==null?void 0:c.find(f=>{var p;return(p=r??[])==null?void 0:p.find(d=>d.id===f.key)}),o=(l=(u=e==null?void 0:e.institucional)==null?void 0:u.items)==null?void 0:l.find(f=>{var p;return(p=r??[])==null?void 0:p.find(d=>d.id===f.key)}),i=e==null?void 0:e.flagPdp;return{commercial:n,institucional:o,flagPdp:i}},[e]);return{tags:e,getAvailableProductTag:t}},ha=({gridScrollBack:e})=>{C.useEffect(()=>{typeof window<"u"&&(e!=null&&e.refer)&&sessionStorage.setItem(e==null?void 0:e.refer,"true")},[])},ga=C.createContext({}),Pl=({children:e,gridScrollBack:t})=>{const r=C.useRef(null);return ha({gridScrollBack:t}),a.jsx(ga.Provider,{value:{sizesContainerRef:r},children:e})},Il=()=>{const e=C.useContext(ga);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),Co=({valueInCents:e,hasFree:t,freeTaxMessage:r})=>e===0?t?r:Me(0):Me(e/100),So=(e,t)=>{const[r,n]=e.split(t);return{name:r.trim(),size:n?n.trim():""}},Xt=(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()}},Ao=(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},Nl=(e,t)=>e.replace(t,"").trim(),Ol=e=>e.replace(/\//g,""),ya=({items:e,NAME_SPLIT_SYMBOL:t})=>{const r={price:0,listPrice:0,installments:{count:0,value:0}},n=(s,c)=>{var d;c&&(c.sellerId=s.sellerId,c.sellerName=s.sellerName,c.available=!0,c.isSellerDefault=s.sellerDefault);const{Price:u,ListPrice:l,PaymentOptions:{installmentOptions:f}}=s.commertialOffer;r.price=u,r.listPrice=l;const p=(d=f==null?void 0:f[0])==null?void 0:d.installments;if(p){const{count:m,value:h}=p[p.length-1];r.installments={count:m,value:h/100}}};let o=!0;const i=e.reduce((s,c)=>{var f;const u={name:c.name,sku:c.itemId,value:((f=c.Tamanho)==null?void 0:f[0])??So(c.nameComplete??c.name,t).size,available:!1,sellerId:"",sellerName:"",isSellerDefault:!1},l=c.sellers.filter(p=>(p.sellerDefault&&p.commertialOffer.IsAvailable&&(u.available=!0,n(p,u)),p.commertialOffer.IsAvailable));return!u.isSellerDefault&&l.length>0&&(u.available=!0,n(l[0],{...u,sellerId:l[0].sellerId,sellerName:l[0].sellerName})),u.available===!1&&(o=!1),s.push(u),s},[]);return{...r,sizes:i,allSizesAvailable:o}},Eo=e=>e?!e.offers.offers.find(({quantity:t=0})=>t>0):!1,Ro=(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)},_a=e=>e.find(t=>t.imageLabel==="10"),va=(e,t)=>{const r=/\/ids\/(\d+)\//,n=e.match(r);return n?e.replace(`/${n[1]}/`,`/${n[1]}-${t.width}-${t.height}/`):e},ba=(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},xa=({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},Tl=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},Ca=(e,t,r)=>{t&&(e?(t.getAttribute("src")||(t.src=r??""),t.play()):t.pause())},Ml=Object.freeze(Object.defineProperty({__proto__:null,disableSKU:Eo,formatPriceToCurrency:Me,freightParsePrice:Co,getAspectRatio:Tl,getColorAndSizeFromSkuName:Xt,getFirstImages:xa,getProductNameWithoutSku:Nl,getSKUName:Ao,getSkuInfos:ya,getThumbImage:_a,getValidOffer:Ro,removeSlashes:Ol,resizingImg:va,setVideoPlay:Ca,splitNameAndSizeFromFullName:So,updatedResizedImg:ba},Symbol.toStringTag,{value:"Module"})),He=({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})},xe={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:o,promotionInfo:i,itemList:s,outsideEcommerceData:c}=e,{availableSizes:u,sizes:l,price:f}=n,p={...r==="view_item"?{currency:xe.configs.currency,value:f,grade_disponivel:u??(l?Sa(l):"")}:{},...r==="add_to_wishlist"||r==="remove_from_wishlist"?{value:f,currency:xe.configs.currency}:{}},d=At({data:n,customData:{...o,...s,...i},configs:xe.configs});He({event:r,data:{...c,ecommerce:{...s,...p,items:[d]}}}),typeof t=="function"&&t(d,p)},productListEvent:e=>{const{commonData:{products:t},promotionInfo:r,itemList:n,outsideEcommerceData:o,customData:i}=e;if(t.length===0)return;const s=t.map(({node:c},u)=>At({data:{...c},customData:{...r,index:u,...i!=null&&i.item_list_name?{item_list_name:i==null?void 0:i.item_list_name}:n},configs:xe.configs}));He({event:"view_item_list",data:{...o,ecommerce:{...i!=null&&i.item_list_name?{item_list_name:i==null?void 0:i.item_list_name}:n,items:s}}})},skuEvents:e=>{const{event:t,commonData:{products:r},customData:n,supportData:{selectedSkus:o,price:i},promotionInfo:s,itemList:c,outsideEcommerceData:u}=e;let l=0;const f=r.map(p=>{var y,g,b,E,_,R,S,j,x;const d=o==null?void 0:o.find(P=>(p.productId??p.id)===P.productId);let m={...s,...c};if(d){const P=Ea(),L=Ra(P,d);L&&(m={...m,...L}),t==="add_to_cart"&&(s||c)&&Xn({persistedData:P,type:"add",sku:(d==null?void 0:d.id)??(d==null?void 0:d.sku),newData:{promotionInfo:s,itemList:c}}),t==="remove_from_cart"&&Xn({persistedData:P,type:"remove",sku:(d==null?void 0:d.id)??(d==null?void 0:d.sku)})}l+=p.price??((b=(g=(y=d==null?void 0:d.offers)==null?void 0:y.offers)==null?void 0:g[0])==null?void 0:b.price)??0;const h=(d==null?void 0:d.size)??Xt((d==null?void 0:d.skuName)??(d==null?void 0:d.name)??((E=p.itemOffered)==null?void 0:E.skuName),xe.configs.NAME_SPLIT_SYMBOL).size;return At({data:p,customData:{...n,...m??{...s,...c},item_sku:(d==null?void 0:d.id)??(d==null?void 0:d.sku)??((_=p.itemOffered)==null?void 0:_.sku),quantity:(n==null?void 0:n.quantity)??p.quantity??1,item_variant2:h,seller_id:(d==null?void 0:d.sellerId)??(d==null?void 0:d.seller)??((x=(j=(S=(R=d==null?void 0:d.offers)==null?void 0:R.offers)==null?void 0:S[0])==null?void 0:j.seller)==null?void 0:x.identifier)??p.seller},configs:xe.configs})});He({event:t,data:{...u,ecommerce:{value:i??l,currency:xe.configs.currency,items:f}}})},filterEvent:e=>{var s;const{commonData:t,customData:r,outsideEcommerceData:n}=e,o={},i={};Array.isArray(t==null?void 0:t.selectedFacets)&&((s=t==null?void 0:t.selectedFacets)!=null&&s.length)&&((t==null?void 0:t.selectedFacets).forEach(({key:c,value:u})=>{var p;const l=((p=xe.configs.PLP_FILTERS.find(d=>d.key===c))==null?void 0:p.eventLabel)??c,f=(o==null?void 0:o[l])||[];l==="price_range"&&u.replace(":","-"),o[l]=[...f,u]}),Object.keys(o).forEach(c=>i[c]=o[c].join(", "))),He({event:"filter",data:{...n,...i,...r}})},viewCartEvent:e=>{var f,p,d,m,h,y,g,b,E,_;const{commonData:t,outsideEcommerceData:r}=e,{cartStore:n}=t;if(!n)return;const o=window.localStorage.getItem("persistedCartEventsData"),i=o?JSON.parse(o):{},s=n.items.map(R=>{const{promotionInfo:S,itemList:j}=i[R.id]??{};return At({data:{...R,price:R.price/100,listPrice:R.listPrice/100},customData:{...S,...j,item_sku:R.id??R.itemOffered.sku,quantity:R.quantity??1},configs:xe.configs})}),c=(((f=n.totalizers.find(R=>R.name==="Total dos Itens"))==null?void 0:f.value)??0)/100,u=(((p=n.totalizers.find(R=>R.name==="Total dos Descontos"))==null?void 0:p.value)??0)/100,l=((d=n.marketingData)==null?void 0:d.utmiCampaign)==="codigodavendedora"?(m=n.marketingData)==null?void 0:m.utmCampaign:(y=String((h=n.openTextField)==null?void 0:h.value))==null?void 0:y.split(" - ")[0];He({event:"view_cart",data:{...r,ecommerce:{currency:xe.configs.currency,value:c+u,total_discount:Math.abs(u),cep_preenchido:!!((b=(g=n.shippingData)==null?void 0:g.address)!=null&&b.postalCode),...l?{seller_coupon_name:l}:{},...((E=n.marketingData)==null?void 0:E.coupon)&&{sale_coupon_name:(_=n.marketingData)==null?void 0:_.coupon},subtotal:c,items:s}}})},readyEvents:e=>{const{event:t,readyData:r}=e;He({event:t,data:{...r}})}},Sa=e=>e.reduce((t,r)=>(r.available&&t.push(r.value),t),[]).toString(),kl=e=>{const t=e.length;return{...e&&e.length>0?{item_category:e[0].includes(xe.configs.categoryOff)?"Bazar":"Coleção",...e[1]?{item_category2:e[1]}:{},...t>2?{item_category3:e[t-1]}:{}}:{}}},At=({data:e,customData:t,configs:r})=>({...Ll(e,r==null?void 0:r.MAIN_IMAGE),...Dl(e),...$l(e),...Bl(e),...t}),Aa=()=>{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("_"))??[]:[]},Ea=()=>{const e=window.localStorage.getItem("persistedCartEventsData");return e?JSON.parse(e):null},Ra=(e,t)=>e==null?void 0:e[t],Xn=({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)))},Ll=(e,t="1")=>{var i,s,c,u,l,f,p,d,m,h,y;const r=e.productReference??e.gtin??e.productRefId,n=e.image??((s=(i=e.items)==null?void 0:i[0])==null?void 0:s.images)??((c=e.itemOffered)==null?void 0:c.image),o=n==null?void 0:n.find(g=>g.alternateName===t||g.imageLabel===t||g.keywords===t);return{item_id:e.productId??((u=e.isVariantOf)==null?void 0:u.productGroupID)??((l=e.isVariationOf)==null?void 0:l.productGroupID)??((p=(f=e.itemOffered)==null?void 0:f.isVariationOf)==null?void 0:p.productGroupID),item_ref:/_\d$/.test(r)?r.slice(0,-2):r,item_name:e.productTitle??e.productName??e.name??So((d=e.itemOffered)==null?void 0:d.name,xe.configs.NAME_SPLIT_SYMBOL).name,item_brand:((m=e.brand)==null?void 0:m.brandName)??((h=e.brand)==null?void 0:h.name)??e.brand??((y=e.itemOffered)==null?void 0:y.brand.name),item_url:`${xe.configs.storeUrl}${e.linkText}/p`,item_image:(o==null?void 0:o.url)??(o==null?void 0:o.imageUrl)}},Jo=e=>Array.isArray(e)?e.reduce((t,r)=>(r.length>t.length&&(t=r),t),""):e,Dl=e=>{var l,f;const{categories:t,categoriesIds:r}=e,n=t??((l=e.itemOffered)==null?void 0:l.categories),o=r??((f=e.itemOffered)==null?void 0:f.categoriesIds),i=Jo(n),s=Jo(o),c=i.slice(1,-1).split("/"),u=s.slice(1,-1).split("/");return{item_category:c[0].toLowerCase().includes(xe.configs.categoryOff)?"Bazar":"Coleção",...c[1]&&{item_category2:c[1]},...c.length>2&&{item_category3:c[c.length-1]},item_category_id:u[u.length-1],...u.length>1&&{item_parent_category_id:u[u.length-2]}}},$l=e=>{var o,i,s,c,u,l;const t=((o=e.itemOffered)==null?void 0:o.skuName)??((c=(s=(i=e.isVariantOf)==null?void 0:i.hasVariant)==null?void 0:s[0])==null?void 0:c.name)??((l=(u=e.items)==null?void 0:u[0])==null?void 0:l.name),{color:r,size:n}=Xt(t,xe.configs.NAME_SPLIT_SYMBOL);return{item_variant:r,...e.itemOffered&&{item_variant2:n}}},Bl=e=>{var u,l;const{price:t,listPrice:r,installments:n}=e,o=t??((u=e.offers)==null?void 0:u.lowPrice)??0,i=r??((l=e.offers)==null?void 0:l.highPrice)??0,s=i?i-o:0,c=s%1===0?s:Number(s.toFixed(2));return{...t&&{price:o??i},...i&&{list_price:i,discount:c},...n&&{installments:n==null?void 0:n.count,installment_value:n==null?void 0:n.value},item_currency:xe.configs.currency}},ja=()=>{const[e,t]=Aa(),[r,n]=e.split("-"),o=r.includes("shop")||r.includes("sale")?r:"";return{page_category:o&&n?n:"",page_departament:o,id:t,name:e}},ql=Object.freeze(Object.defineProperty({__proto__:null,eventsFunctions:xe,findDataInPersistedData:Ra,getAvailablesSizes:Sa,getCategories:kl,getPageCategoryAndDepartmentFromSlug:ja,getPersistedData:Ea,getProductListInfoFromHead:Aa,pushDatalayer:He,updatePersistedData:Xn},Symbol.toStringTag,{value:"Module"})),wa=C.createContext({}),Hl=({children:e,evtFunctionsConfigs:t})=>{const r=C.useRef({}),n=C.useRef(null),o=C.useRef(null),i=C.useRef({}),s=C.useRef({trigger:!1,index:0}),c=({functionKey:f,data:p,callBack:d,timeout:m=100})=>{window.dataLayer||(window.dataLayer=[]),xe.configs=t;try{typeof xe[f]=="function"&&setTimeout(()=>{var h;p.promotionInfo=r.current,(h=o.current)!=null&&h.item_list_name&&(p.itemList=o.current),xe[f](p,d)},m)}catch(h){He({event:"error_event",data:{error_message:(h==null?void 0:h.message)??h}})}},u=({content:f})=>{c({functionKey:"readyEvents",data:{event:"select_content",readyData:{content_type:f.replace("::",":")}}})},l=({updatePromotionRef:f,promotion:p,index:d})=>{f&&(r.current={...p}),c({functionKey:"readyEvents",data:{event:"select_promotion",readyData:{ecommerce:{...p,...d!==void 0&&{index:d}}}}})};return a.jsx(wa.Provider,{value:{sendDataLayerEvent:c,triggerSelectItemEventRef:s,promotionEventRef:r,currentLocalRef:n,itemListRef:o,cartProductsFullDataRef:i,handleSelectContent:u,handleSelectPromotionEvent:l},children:e})},ge=()=>C.useContext(wa),Pa=C.createContext({}),Fl=({children:e,productData:t,isKit:r,PDP_INFO:n,NAME_SPLIT_SYMBOL:o})=>{var D,w;const{sendDataLayerEvent:i,triggerSelectItemEventRef:s}=ge(),{productId:c,productName:u,items:l,items:[{images:f,Videos:p}],description:d,["Composição"]:m="",productReference:h,categories:[y]}=t,{getAvailableProductTag:g}=xo(),b=g(Object.entries(t.clusterHighlights).map(q=>({id:q[0],name:q[1]}))),E=y.slice(1,-1).split("/"),{installments:_,price:R,listPrice:S,sizes:j,allSizesAvailable:x}=ya({items:l,NAME_SPLIT_SYMBOL:o}),P=_a(f),L=[{label:`${n.product.description}`,value:"description",content:d},{label:`${n.product.materiais}`,value:"composition",content:m}],A=((w=Xt((D=t.items)==null?void 0:D[0].name,o))==null?void 0:w.color)??t["Cores Filtráveis"][0]??"",O=()=>({commonData:{...t,sizes:j,price:R,listPrice:S,installments:_},customData:{installments:_==null?void 0:_.count,installment_value:Number(_==null?void 0:_.value).toFixed(2)}}),N=({sku:q,size:z})=>{const{commonData:U,customData:K}=O();i({functionKey:"productEvents",data:{event:"view_item",commonData:U,customData:{...K,...q&&{item_sku:q},...z&&{item_variant2:z}}}})};return C.useEffect(()=>{if(s.current.trigger){const{commonData:q,customData:z}=O();i({functionKey:"productEvents",data:{event:"select_item",commonData:q,customData:{...z,index:s.current.index}}}),s.current.trigger=!1}N({})},[]),a.jsx(Pa.Provider,{value:{productData:t,productId:c,productName:u,productReference:h,tag:b,items:l,sizes:j,allSizesAvailable:x,installments:_,price:R,listPrice:S,thumbImage:P,images:f,video:p[0],descriptionContent:L,breadcrumbList:E,isKit:r,colorName:A,handleViewItemEvent:N},children:e})},jo=()=>{const e=C.useContext(Pa);if(e===void 0)throw new Error("useContext(PDPDataContext) must be used within a PDPDataProvider");return e},zl={attachment:"ATTACHMENT",specification:"SPECIFICATION",attribute:"ATTRIBUTE"},Oe=Promise.resolve(!1),Qn={id:"",isOpen:!1,items:[],loading:!1,marketingData:null,messages:[],openTextField:{},paymentData:null,shippingData:null,totalizers:[],itemMetadata:[],recentlyAddedProducts:[],addCoupon:()=>Oe,addItem:()=>Oe,addSellerCode:()=>Oe,addMarketingData:()=>Oe,emptyCart:()=>{},removeItem:()=>Oe,setIsOpen:()=>{},shipping:()=>Oe,shippingUpdate:()=>Oe,toggleServiceToProduct:()=>Oe,updateItemQuantity:()=>Oe,insertProfileEmail:()=>Oe,setRecentlyAddedProducts:()=>{}},wo=e=>e===0,Ia=(e,t)=>{if(!e||e.length===0)return[];let r="";const n=[],o=e.match(/\d+/g)??[];for(const i of o){const s=t[Number(i)];s&&(r+=(r?"/":"")+s,n.push(r))}return n},Na=(e,t)=>{const{availability:r,additionalInfo:{brandName:n},bundleItems:o,id:i,uniqueId:s,detailUrl:c,ean:u,imageUrl:l,name:f,listPrice:p,quantity:d,price:m,priceDefinition:h,productCategories:y,productCategoryIds:g,productId:b,refId:E,seller:_,referenceId:R,offerings:S,productRefId:j,skuName:x,sellingPrice:P}=e;return{availability:r,bundleItems:o,referenceId:R,productRefId:j,id:i,ean:u,uniqueId:s,itemOffered:{additionalProperty:[],brand:{name:n},categories:Ia(g,y),categoriesIds:g,gtin:E,image:[{alternateName:(t==null?void 0:t.MAIN_IMAGE)??"1",url:l}],name:f,isVariationOf:{name:f,productGroupID:b},sku:i,slug:c,skuName:x},listPrice:p,quantity:d,offerings:S,price:m,priceDefinition:h,sellingPrice:P,seller:_}},Oa=(e,t)=>{const r=e.map(n=>({id:n.id,quantity:n.quantity,seller:n.seller}));return Array.isArray(t)?[...r,...t]:[...r,t]},Ta=(e,t)=>{const r=e.find(n=>n.id===t);if(r){const n=e.map((o,i)=>{var s,c;return{id:((s=o.itemOffered)==null?void 0:s.sku)??"",index:i,quantity:(r==null?void 0:r.id)===((c=o.itemOffered)==null?void 0:c.sku)?0:o.quantity,seller:o.seller??""}});return{updateItems:n,filterItems:n.filter(o=>o.id!==t)}}return{updateItems:[],filterItems:[]}},Ma=(e,t,r)=>e.filter(n=>n.availability!=="withoutStock"&&n.availability!=="https://schema.org/OutOfStock").map((n,o)=>{var i,s;return n.id===t?{id:n.id,index:o,quantity:r,seller:n.seller,sku:((i=n.itemOffered)==null?void 0:i.sku)??""}:{id:n.id,index:o,quantity:n.quantity,seller:n.seller,sku:((s=n.itemOffered)==null?void 0:s.sku)??""}}),Yn=(e,t)=>e.filter(r=>r.availability!=="withoutStock").findIndex(({id:r})=>r===t),Ul=(e,t)=>{var r;return Array.isArray(e)?(((r=e==null?void 0:e.find(n=>{var o;return((o=n==null?void 0:n.id)==null?void 0:o.toLowerCase())===t}))==null?void 0:r.value)??0)/100:0},Gl=e=>{const t=e.reduce((o,i)=>{const s=wo(i.price)?0:i.quantity;return o+s},0),r=e.reduce((o,i)=>o+i.price*i.quantity,0),n=e.reduce((o,i)=>o+i.listPrice*i.quantity,0);return{totalItems:t,total:r,subTotal:n}},Wl=e=>Array.isArray(e)?e.filter(t=>t.availability!=="withoutStock").reduce((t,r)=>t+(wo(r==null?void 0:r.price)?0:r.quantity),0):0,ka=(e,t)=>{const{items:r,itemMetadata:n,marketingData:o,messages:i,orderFormId:s,openTextField:c,paymentData:u,shippingData:l,totalizers:f}=e;return{id:s,itemMetadata:n,items:Array.isArray(r)?r.map(p=>Na(p,t)):[],marketingData:o,messages:i,openTextField:c,paymentData:u,shippingData:l,totalizers:f}},La=(e,t)=>{const r=e.find(n=>n.id===t);return r?r.availability==="unavailableItemFulfillment":!1},Vl=(e,t)=>{const r=e.sku,n=e.isVariantOf.hasVariant.find(o=>o.sku===r);return n?n.name.split(t)[1]:"--"},et=(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},Kl=(e,t)=>{const r=new Set;return[e,...t].filter(n=>!r.has(n)&&r.add(n),r)},Da=(e,t)=>t&&Array.isArray(t)&&t.find(n=>n.id===e)?Promise.resolve(e):Promise.resolve(!1),$a=(e,t)=>t?Promise.resolve(e[t]):Promise.resolve(!1),Ba=async e=>{try{const t=await e();if(typeof t!="boolean")return t}catch(t){console.error(`[Error orderForm]: ${t}`)}return!1},qa=(e,t)=>{if(t!==-1){const r=Number(e);return r?r+1:1}return e??1},Ha=(e,t)=>Array.isArray(e)?e.filter(r=>t==null?void 0:t.some(n=>n.id===r.id)):[],Fa=async(e,t)=>e.then(r=>[...r??[],...t??[]]),we=async(e,t,r,n)=>{const{priority:o="auto",body:i}=t;return fetch(e,{headers:{"Content-Type":"application/json"},priority:o,method:"POST",body:JSON.stringify(i)}).then(async s=>{const c=await s.json();return r?c:ka(c,n)})},za=(e,t,r)=>({notifications:[...e.notifications,{id:Date.now(),message:t,callback:r}]}),Xl=e=>[...Array.isArray(e)?e:[e],"faststore"],Ua=e=>{const t=e.get("utm_source")||Ge("utm_source"),r=e.get("utm_campaign")||Ge("utm_campaign"),n=e.get("utm_medium")||Ge("utm_medium"),o=e.get("utmi_cp")||Ge("utmi_cp"),i=e.get("utmi_pc")||Ge("utmi_pc"),s=e.get("utmi_p")||Ge("utmi_p");return{...t&&{utmSource:t},...n&&{utmMedium:n},...r&&{utmCampaign:r},...o&&{utmiCampaign:o},...i&&{utmiPart:i},...s&&{utmipage:s}}},Ge=e=>{if(!e||typeof window>"u")return;const t=window.location.href;e=e.replace(/[[\]]/g,"\\$&");const r=new RegExp("[?&]"+e+"(=([^&#]*)|&|#|$)"),n=r.exec(t);return n?n[2]?decodeURIComponent(n[2].replace(/\+/g," ")):"":null},Ql=Object.freeze(Object.defineProperty({__proto__:null,VALUE_REFERENCES:zl,addItemOrder:Oa,addNotification:za,createItemOrder:Na,fetchCartAPI:we,findItemIndex:Yn,findOptions:Ha,findTotalizerValue:Ul,getCategories:Ia,getCode:et,getQuantity:qa,getRemoveId:Da,getSize:Vl,getTotalItems:Wl,getTotalizer:Gl,getUrlParameter:Ge,getValue:$a,initialState:Qn,isGift:wo,marketingTagsBuilder:Xl,mergeOptionsPromise:Fa,mountMarketingData:Ua,orderFormValues:ka,promiseDefault:Oe,removeQuantity:Ta,updateItemSellerExternal:La,updateOrderFormPromise:Ba,updateQuantity:Ma,wishlistArray:Kl},Symbol.toStringTag,{value:"Module"})),Yl=()=>{const e=async(m,h)=>we("/api/checkout/order-form/coupon",{body:{orderFormId:m,coupon:h}}),t=async(m,h)=>{if(h){const y=h.includes(" - ")?h.split(" - ")[0]:h,g=await we("/api/checkout/order-form/seller-code",{body:{orderFormId:m,sellerCode:y}},!0);return we("/api/checkout/order-form/attachments",{body:{orderFormId:m,sellerCode:y,sellerName:g instanceof Object&&"name"in g?g==null?void 0:g.name:""}}).then(b=>({...b,openTextField:{...(b==null?void 0:b.openTextField)??{},statusOk:(g==null?void 0:g.ativo)??!1}}))}else return we("/api/checkout/order-form/attachments",{body:{orderFormId:m,sellerCode:"",sellerName:""}})},r=async(m,h)=>we("/api/checkout/order-form/attachments/marketing-data",{body:{orderFormId:m,marketingData:h}}),n=async(m,h,y)=>we("/api/checkout/order-form/items",{body:{orderFormId:m,orderItems:Oa(h,y)}}),o=async(m,h,y,g)=>we("/api/checkout/order-form/offerings",{body:{id:h,itemIndex:y,orderFormId:m,remove:g}}),i=async m=>we("/api/checkout/order-form/items/remove-all",{body:{orderFormId:m}}),s=async(m,h="low")=>we("/api/checkout/order-form",{priority:h,body:{orderFormId:m??""}}),c=async(m,h)=>we("/api/checkout/order-form/profile",{body:{orderFormId:m,email:h}}),u=async(m,h,y)=>{const g=Ta(h,y);return we("/api/checkout/order-form/items/update",{body:{orderItems:g.updateItems,orderFormId:m}})},l=async(m,h,y)=>we("/api/checkout/order-form/shipping",{body:{orderFormId:m,country:y,postalCode:h}}),f=async(m,h,y)=>we("/api/checkout/order-form/shipping/update",{body:{orderFormId:m,options:h,selectedAddresses:y}}),p=async(m,h,y,g)=>{const b=Ma(h,y,g);return we("/api/checkout/order-form/items/update",{body:{orderFormId:m,orderItems:b}})};return{addCoupon:e,addItem:n,addSellerCode:t,addMarketingData:r,giftItem:o,emptyCart:i,getOrderForm:s,insertProfileEmail:c,removeItem:u,shipping:l,shippingUpdate:f,updateItemQuantity:async(m,h,y,g,b)=>p(m,h,y,g).then(E=>E&&Array.isArray(E.items)?La(E.items,y)?p(m,h,y,b):E:!1)}},Zn="soma::cart",ct="soma::options",rt=ot.create((e,t)=>{const r=Yl(),n=async(o,i,s)=>{e({loading:!0});const c=await Ba(o);if(typeof c!="boolean"){e({...c});const u=await Fa(Ze.get(ct),s);return Ze.set(ct,u),$a(c,i).finally(()=>e({loading:!1,options:u}))}return Oe};if(typeof window<"u"){const o=async i=>{if(i){const s=await Ze.get(ct).then(l=>Ha(l,i.items));Ze.set(Zn,i),Ze.set(ct,s),e({...i,options:s});const c=new URLSearchParams(window.location.search),u=c.get("utm_campaign")||c.get("utmi_campaign")||"";u&&n(()=>r.addSellerCode(t().id,u.toUpperCase()),"openTextField")}};return Ze.get(Zn).then(i=>r.getOrderForm(i?i.id:"").then(o)),{...Qn,addCoupon:async i=>n(()=>r.addCoupon(t().id,i),"marketingData"),addItem:(i,s)=>{n(()=>r.addItem(t().id,t().items,i),"items",s)},addSellerCode:async i=>n(()=>r.addSellerCode(t().id,i),"openTextField"),addMarketingData:async i=>n(()=>r.addMarketingData(t().id,i),"marketingData"),emptyCart:()=>{n(()=>r.emptyCart(t().id))},removeItem:async i=>{const s=await n(()=>r.removeItem(t().id,t().items,i),"items");return Da(i,s)},shipping:async(i,s="BR")=>n(()=>r.shipping(t().id,i??"",s),"shippingData"),shippingUpdate:async i=>n(()=>{var s;return r.shippingUpdate(t().id,i,(s=t().shippingData)==null?void 0:s.selectedAddresses)},"shippingData"),toggleServiceToProduct:async(i,s,c)=>n(()=>r.giftItem(t().id,i,s,c),"items"),updateItemQuantity:async(i,s,c)=>{const{id:u,items:l}=t();return n(()=>{var f;return r.updateItemQuantity(u,l,i,s,((f=l.find(p=>p.id===i))==null?void 0:f.quantity)??1)},"items",c?[c]:void 0)},insertProfileEmail:async i=>n(()=>r.insertProfileEmail(t().id,i),"clientProfileData"),setIsOpen:i=>e({isOpen:i})}}return Qn}),Zl=()=>rt(e=>e),Ga=ot.create(e=>({notifications:[],actions:{addNotification:(t,r)=>e(n=>za(n,t,r)),removeNotification:t=>e(r=>({notifications:r.notifications.filter(n=>n.id!==t)}))}})),Wa=()=>Ga(e=>e.notifications),Va=()=>Ga(e=>e.actions),Jl=Object.freeze(Object.defineProperty({__proto__:null,KEY_INDEXED_OPTIONS:ct,KEY_INDEXED_STORE:Zn,useCartStore:rt,useGetCartStoreState:Zl,useGetNotificationActions:Va,useGetNotificationsStore:Wa},Symbol.toStringTag,{value:"Module"})),ed=6e3,Ka=C.createContext({}),Xa=({children:e,...t})=>{const{items:r}=rt(),[n,o]=C.useState([]),i=C.useRef(null),s=C.useMemo(()=>Array.isArray(n)&&n.length>0?n.map(c=>r.find(u=>u.id===c.id)).filter(c=>c!==void 0):[],[r,n]);return C.useEffect(()=>{n.length&&(clearTimeout(i.current??0),i.current=setTimeout(()=>{o([])},ed))},[n]),a.jsx(Ka.Provider,{value:C.useMemo(()=>({...t,setRecentlyAdded:o,recentlyAddedProducts:s}),[t,o,s]),children:e})},pt=()=>{const e=C.useContext(Ka);if(e===void 0)throw new Error("useUIContext must be used within a UIProvider");return e};class Qa{constructor(){ir(this,"events",{});ir(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 Ya=C.createContext({}),td=({children:e,headerConfigs:t,pathname:r,...n})=>{const[o,i]=C.useState(!0),s=r==="/",c=C.useRef(new Qa),u=p=>p?{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},l=u(s),f=C.useRef(l);return C.useEffect(()=>{var m;const p=((m=new URLSearchParams(window.location.search))==null?void 0:m.toString())??"";(p.includes("utm_")||p.includes("gclid"))&&(Kn.get("lastMedias")||Kn.set("lastMedias",`${p}`,{expires:1/24}));const d=()=>{const h=typeof(window==null?void 0:window.navigator)>"u"?"":navigator==null?void 0:navigator.userAgent,y=/iPad|iPhone|iPod/.test(h),g=window.innerWidth<1024||!!h.match(/Android|BlackBerry|iPhone|iPad|iPod|Opera Mini|IEMobile|WPDesktop/i);if(y){const b=document.querySelector('meta[name="viewport"]');b&&b.setAttribute("content","width=device-width, initial-scale=1, maximum-scale=1")}o!==g&&i(g)};return d(),window.addEventListener("resize",d,{passive:!0}),()=>window.removeEventListener("resize",d)},[o]),C.useEffect(()=>{const p=u(s);c.current.publish("header:change_variant",p.headerVariant),c.current.publish("header:change_position",p.position),f.current=p},[s]),a.jsx(Ya.Provider,{value:{isMobile:o,mediatorRef:c,currentHeaderConfigsRef:f,...n},children:a.jsx(Xa,{children:e})})},Se=()=>C.useContext(Ya),Za=C.createContext({}),rd=({children:e,...t})=>a.jsx(Za.Provider,{value:{...t},children:e}),Pe=()=>C.useContext(Za),Xe=(e,t)=>ot.create(r=>{const n=()=>r({value:e});return t&&t instanceof Set&&t.add(n),{value:e,actions:{setValue:o=>r({value:o}),reset:n}}}),ft={category:null,menuMobileIsOpen:!1,searchModalIsOpen:!1,userMenuIsOpen:!1},mt=new Set,nd=()=>{mt.forEach(e=>{e()})},Ja=ot.create((e,t)=>{const r=()=>e({value:ft.category});return mt.add(r),{value:ft.category,actions:{reset:r,setValue:n=>e(()=>({value:n})),updateValue:n=>{t().value!==n&&e({value:n})}}}}),Qt=()=>Ja(e=>e.value),Ue=()=>Ja(e=>e.actions),ec=Xe(ft.menuMobileIsOpen,mt),Po=()=>ec(e=>e.value),Qe=()=>ec(e=>e.actions),tc=Xe(ft.searchModalIsOpen,mt),od=()=>tc(e=>e.value),Io=()=>tc(e=>e.actions),rc=Xe(ft.userMenuIsOpen,mt),nc=()=>rc(e=>e.value),ht=()=>rc(e=>e.actions),id=Object.freeze(Object.defineProperty({__proto__:null,resetAllHeaderStores:nd,useActionsHeaderCategory:Ue,useActionsMenuMobileIsOpen:Qe,useActionsSearchModalIsOpen:Io,useActionsUserMenuIsOpen:ht,useGetHeaderCategoryStore:Qt,useGetMenuMobileIsOpen:Po,useGetSearchModalIsOpen:od,useGetUserMenuIsOpen:nc},Symbol.toStringTag,{value:"Module"})),nt={selectedSkuInfo:{productId:"",name:"",size:"",sku:"",sellerId:"",sellerName:"",available:!1,quantity:1},openLetMeKnow:!1,openMeasurements:!1,showBottomNavigation:!1,showNotify:!1},it=new Set,sd=()=>{it.forEach(e=>{e()})},oc=ot.create(e=>{const t=()=>e({value:nt.selectedSkuInfo});return it.add(t),{value:nt.selectedSkuInfo,actions:{setValue:r=>e(n=>({value:{...n,...r}})),reset:t}}}),ad=()=>oc(e=>e.value),cd=()=>oc(e=>e.actions),ic=Xe(nt.openLetMeKnow,it),ud=()=>ic(e=>e.value),ld=()=>ic(e=>e.actions),sc=Xe(nt.showNotify,it),dd=()=>sc(e=>e.value),fd=()=>sc(e=>e.actions),ac=Xe(nt.showBottomNavigation,it),pd=()=>ac(e=>e.value),md=()=>ac(e=>e.actions),cc=Xe(nt.openMeasurements,it),hd=()=>cc(e=>e.value),gd=()=>cc(e=>e.actions),yd=Object.freeze(Object.defineProperty({__proto__:null,resetAllPDPStores:sd,useActionsPDPOpenLetMeKnow:ld,useActionsPDPOpenMeasurements:gd,useActionsPDPSelectedSkuInfo:cd,useActionsPDPShowBottomNavigation:md,useActionsPDPShowNotify:fd,useGetPDPOpenLetMeKnow:ud,useGetPDPOpenMeasurements:hd,useGetPDPSelectedSkuInfo:ad,useGetPDPShowBottomNavigation:pd,useGetPDPShowNotify:dd},Symbol.toStringTag,{value:"Module"})),uc=C.createContext({}),_d=({children:e,headerData:t,...r})=>{var f,p;const n=C.useRef(null),o=C.useRef(null),i=C.useRef(null),s=C.useRef(null),c=C.useRef(null),{mediatorRef:u,currentHeaderConfigsRef:l}=Se();return(f=u.current)==null||f.subscribe("header:change_variant",d=>{var b,E,_;if(d&&l.current&&(l.current.bannerVariant=d),!n.current)return;const h=document.body.scrollTop>0,y=n.current.getAttribute("data-interactiveVariant"),g=h?y:d??((b=l.current)==null?void 0:b.bannerVariant)??"default";g!==((E=l.current)==null?void 0:E.headerVariant)&&(n.current.setAttribute("data-bottomdivider",String(h)),n.current.setAttribute("data-variant",String(g)),(_=u.current)==null||_.publish("herobanner:change_controllers_variant",g),l.current&&(l.current.headerVariant=g))}),(p=u.current)==null||p.subscribe("header:change_position",d=>{n.current&&(n.current.style.position=d)}),C.useEffect(()=>{const d=new AbortController,m=v.helpers.throttle(()=>{var y;return(y=u.current)==null?void 0:y.publish("header:change_variant",null)},200);document.body.addEventListener("scroll",m,{passive:!0,signal:d.signal});const h=y=>{var b;(b=y.target.closest("a"))==null||b.blur()};return n.current&&(n.current.addEventListener("click",h,{signal:d.signal}),n.current.addEventListener("touchend",h,{signal:d.signal})),()=>{d.abort()}},[]),a.jsx(uc.Provider,{value:{headerData:t,structureRef:o,rootRef:n,tipbarRef:i,userMenuMobileRef:s,userMenuDesktopRef:c,...r},children:e})},be=()=>C.useContext(uc),lc=C.createContext({}),dc=({children:e})=>{const t=C.useRef(null),r=C.useRef(null),n=Po(),o=C.useCallback(()=>{var i;{const s=(i=t.current)==null?void 0:i.querySelector("dialog");if(s){s.dataset.animation="out";const c=s.children[0];c.dataset.animation="out"}}},[]);return C.useEffect(()=>{var i;if(n)document.body.dataset.modalopen="true";else{document.body.dataset.modalopen="false";const s=(i=r.current)==null?void 0:i.querySelector("dialog");if(s){s.dataset.animation="out";const c=s.children[0];c.dataset.animation="out"}}},[n]),C.useEffect(()=>{r.current=document.body},[]),a.jsx(lc.Provider,{value:{bodyRef:t,handleCloseSubMenu:o,documentBodyRef:r},children:e})},gt=()=>C.useContext(lc),vd=e=>{if(!e||typeof window>"u")return 0;const t=window.getComputedStyle(e);return parseInt(t.padding,10)},bd=(e,t,r)=>{if(!(e instanceof HTMLElement)||!(t instanceof HTMLElement))return{left:0,top:0};const n=t.getBoundingClientRect(),o=e.getBoundingClientRect(),i=e!=null&&e.parentElement?vd(e==null?void 0:e.parentElement):0;return{left:n.left+n.width/2-(o.width+i),top:n.top+n.height+r}},fc=C.createContext({}),pc=({children:e,delay:t=600,gap:r=20,...n})=>{const[o,i]=C.useState(!1),s=C.useRef(null),[c,u]=C.useState(!1),[l,f]=C.useState({left:0,top:0}),p=C.useCallback(()=>{u(!0),typeof window<"u"&&(s.current=window.setTimeout(()=>{i(!1),u(!1)},t))},[u,i,t]);return C.useEffect(()=>{if(typeof window>"u")return;const d=window.document.querySelector("#cart-button"),m=window.document.querySelector("#add-to-cart--tooltip");if(d&&m){const{left:h,top:y}=bd(m,d,r??0);f({left:h,top:y}),u(!1)}},[r,o]),a.jsx(fc.Provider,{value:C.useMemo(()=>({...n,...l,handleClose:p,isLeaving:c,isOpen:o,setIsOpen:i,setIsLeaving:u}),[n,l,p,c,o,i,u]),children:e})},Ye=()=>{const e=C.useContext(fc);if(e===void 0)throw new Error("useAddToCartContext must be used within a AddToCartProvider");return e},mc=C.createContext({}),xd=({children:e,CARTPROVIDER_MESSAGE_PRODUCT_REMOVE:t,...r})=>{const n=rt(),{setRecentlyAdded:o}=pt(),i=C.useRef(""),s=Wa(),{addNotification:c,removeNotification:u}=Va(),{addCoupon:l,addItem:f,addSellerCode:p,addMarketingData:d,emptyCart:m,isOpen:h,removeItem:y,shipping:g,shippingUpdate:b,toggleServiceToProduct:E,updateItemQuantity:_}=n;C.useEffect(()=>{const w=Kn.get("lastMedias");if(n.id&&w&&i.current!==w){i.current=w;const q=new URLSearchParams(w),z=Ua(q);d(z)}},[n,d]);const R=C.useCallback(async(w,q)=>(q==="coupon"?l(w):p(w)).then(U=>{if(typeof U!="boolean"&&U instanceof Object){if(q==="seller"&&"value"in U){const{statusOk:K,value:W}=U,F=String(W??"").split(" - ");return et((F==null?void 0:F[0])??"",w,!!K)}return et(String(U.coupon),w,!0)}return et("","")}).catch(()=>Promise.resolve({code:400})),[l,p]),S=C.useCallback((w,q,z)=>{const{id:U}=w;_(U,q,z)},[_]),j=C.useCallback((w,q,z=!1)=>{if(!w)return;const{id:U}=w,K=Yn(n.items,U);if(K!==-1&&!z){const W=Number(n.items[K].quantity),F=n.items[K]?W+1:1;S(w,F,q)}else f({id:U,quantity:(w==null?void 0:w.quantity)??1,seller:w.seller});h||o(W=>[...W,w])},[f,S,n.items,h,o]),x=C.useCallback((w,q)=>{if(!w||!Array.isArray(w))return;o(U=>[...U,...w]);const z=w.map(U=>{const{id:K,quantity:W,seller:F}=U,ne=Yn(n.items,K),I=qa(W??1,ne);return{id:K,quantity:I,seller:F}});f(z,q)},[f,n.items,o]),P=C.useCallback(async(w,q,z)=>w?y(w).then(()=>(c(q??`${t}`,z),et(w,w))):Promise.resolve(et("","Product id required")),[c,y]),L=C.useCallback(()=>{n.items.length>0&&m()},[m,n.items]),A=C.useCallback((w,q="BRA")=>g(w,q),[g]),O=C.useCallback(w=>{w&&b(w)},[b]),N=C.useCallback(async(w,q,z)=>{const U=n.items.findIndex(W=>W.id===w);return n.items[U]&&U>=0?E(q,U,z??!1):!1},[n.items,E]),D=C.useCallback(async(w,q)=>_(w,q).then(z=>{if(Array.isArray(z)){const U=z.find(K=>K.id===w);if(U&&(U==null?void 0:U.quantity)<q)return String(U.quantity)}return!1}),[_]);return a.jsx(mc.Provider,{value:C.useMemo(()=>({...r,addCouponSeller:R,addToCart:j,addItemsToCart:x,cartStore:n,notifications:s,clearCart:L,addNotification:c,isOpen:n.isOpen,removeNotification:u,removeToCart:P,setIsOpen:n.setIsOpen,shipping:A,shippingUpdateOption:O,toggleGiftItemCart:N,updateItemQuantity:D}),[r,R,j,x,s,L,c,n,u,P,A,O,N,D]),children:e})},Be=()=>{const e=C.useContext(mc);if(e===void 0)throw new Error("useCartContext must be used within a CartProvider");return e},hc=C.createContext({}),No=({children:e,fetch:t})=>{const r=C.useRef(!0),[n,o]=C.useState(null),[i,s]=C.useState(!1);return C.useEffect(()=>{(async()=>{r.current=!0;try{const u=await t();if(!u.ok)throw new Error("Failed to fetch data");const l=await u.json();o(l.data),r.current=!1}catch{r.current=!0,s(!0)}})()},[t]),a.jsx(hc.Provider,{value:C.useMemo(()=>({data:n,isLoading:r.current??!1,isError:i}),[n,i,r]),children:e})},Oo=()=>{const e=C.useContext(hc);if(e===void 0)throw new Error("useProductsContext must be used within a useRootContext");return e},gc=C.createContext({}),yc=({children:e,sort:t,state:r,count:n,collectionId:o,CONSTANTS:i})=>{const s=C.useMemo(()=>{var c;return o?[{key:"productclusterids",value:o.toString()}]:(c=r.base)!=null&&c.length?r.base.slice(1).split("/").map((u,l)=>({key:`category-${l+1}`,value:u})):[]},[r.base,o]);return a.jsx(gc.Provider,{value:C.useMemo(()=>({state:{...r,facets:[...s,...r.facets??[]]},sort:t,count:n??i.ITEMS_PER_PAGE}),[s,n,t,r]),children:e})},To=()=>{const e=C.useContext(gc);if(e===void 0)throw new Error("useSearchContext must be used within a SearchProvider");return e},_c={default_option:"score:desc"},Cd={nextPage:!1,previousPage:!1,startCursor:"0",endCursor:"0",count:0,total:0},Sd="Imagem do produto",ei=1,Ad="Sair",Ed=e=>e.exit,Rd=({ICONS:e,storeConfig:t})=>[{icon:e.person,label:"Minha conta",href:`${t.secureSubdomain}/api/io/account#/profile`,needToBeAuth:!1,deviceShown:"both"},{icon:e.delivery_truck,label:"Meus pedidos",href:`${t.secureSubdomain}/api/io/account#/orders`,needToBeAuth:!1,deviceShown:"both"},{icon:e.favorite_false,label:t.wishlistConfig.label,href:t.wishlistConfig.path,needToBeAuth:!1,deviceShown:"mobile"},{icon:e.help,label:t.termsConfig.label,href:t.termsConfig.path,needToBeAuth:!1,deviceShown:"mobile"}],jd=(e,t)=>{const r=(t??"").split("@")[0];return e?`Olá${r.length?", ":" "}${r}!`:"Olá!"},wd=e=>"Seja bem vindo!",vc=C.createContext({}),Pd=({children:e,searchParams:t,selectedFacets:r})=>{const{data:n,...o}=Oo(),{router:i}=Pe(),s=C.useCallback((p,d)=>{if(d){if(p.key.toLocaleLowerCase()==="price"){const m=d.getAll("facets");d.delete("facets"),m.forEach(h=>{const[y]=h.split("/");y!==p.key&&d.append("facets",h)})}d.set("page","1"),d.append("facets",`${p.key}/${p.value}`),i.push(`?${d.toString()}`)}},[i]),c=C.useCallback(()=>{const p=new URLSearchParams;p.set("sort",_c.default_option),p.set("page","1"),i.push(`?${p.toString()}`)},[i]),u=C.useCallback((p,d)=>{if(!d||!d.has&&!d.has("facets"))return;const m=d.getAll("facets");d.delete("facets"),d.set("page","1"),m.forEach(h=>{const[y,g]=h.split("/");(y!==p.key||g!==p.value)&&d.append("facets",h)}),i.push(`?${d.toString()}`)},[i]),l=C.useCallback(p=>{const d=new URLSearchParams(Te.convertSearchParams(t));for(const[,m]of d.entries()){const[h,y]=m.split("/");if(h===p.key&&y===p.value)return u(p,d)}return s(p,d)},[s,u,t]),f=C.useCallback(p=>{const d=new URLSearchParams(Te.convertSearchParams(t));d.set("sort",p.replace("_",":")),i.push(`?${d.toString()}`)},[i,t]);return a.jsx(vc.Provider,{value:C.useMemo(()=>({...o,breadcrumb:n&&"breadcrumb"in n?n==null?void 0:n.breadcrumb:[],deleteAllFacets:c,facets:n&&"facets"in n?n==null?void 0:n.facets:[],selectedFacets:r,onToggleFacet:l,onSort:f,searchParams:t}),[n,c,f,l,o,r,t]),children:e})},Id=({children:e,searchParams:t,forceUpdate:r})=>{const{state:n}=To();return a.jsx(No,{fetch:()=>fetch("/api/search/facets",{method:"POST",body:JSON.stringify({...n,forceUpdate:r}),priority:"low"}),children:a.jsx(Pd,{selectedFacets:(n==null?void 0:n.facets)??[],searchParams:t,children:e})})},Nd=()=>{const e=C.useContext(vc);if(e===void 0)throw new Error("useFacetsContext must be used within a FacetsProvider");return e},bc=C.createContext({}),Od=({children:e})=>{const{data:t,...r}=Oo(),[n,o]=C.useState(0),{sendDataLayerEvent:i}=ge();return C.useEffect(()=>{if(t&&"pagination"in t&&t.products.length>0){i({functionKey:"productListEvent",data:{event:"view_item_list",commonData:{products:t.products}}});const s=t.pagination.count;s&&Number.isInteger(s)&&o(s)}},[t,i,o]),a.jsx(bc.Provider,{value:C.useMemo(()=>({...r,products:t&&"products"in t?t==null?void 0:t.products:[],pagination:t&&"pagination"in t?t==null?void 0:t.pagination:Cd,total:n}),[t,r,n]),children:e})},Td=({children:e,query:t,state:r,selectedFacets:n,forceUpdate:o})=>a.jsx(No,{fetch:()=>fetch("/api/search/product",{method:"POST",body:JSON.stringify({...r,query:t,forceUpdate:o,facets:n??[]})}),children:a.jsx(Od,{state:r,children:e})}),Md=()=>{const e=C.useContext(bc);if(e===void 0)throw new Error("useProductsContext must be used within a ProductsProvider");return e},xc=C.createContext({}),kd=({children:e,term:t})=>{const[r,n]=C.useState([]),[o,i]=C.useState(!1);return C.useEffect(()=>{if(!t){n([]);return}(async()=>{i(!0);try{const c=await fetch("/api/search/suggestedTerms",{method:"POST",body:JSON.stringify({query:t,locale:"pt-BR"})}),{data:u}=await c.json();n((u==null?void 0:u.searches)||[])}catch(c){console.error("Erro ao buscar sugestões:",c)}})()},[t]),a.jsx(xc.Provider,{value:C.useMemo(()=>({suggestedTerms:r,loading:o,setLoading:i}),[r,o]),children:e})},Ld=({children:e,...t})=>a.jsx(kd,{...t,children:e}),Dd=()=>{const e=C.useContext(xc);if(!e)throw new Error("useSuggestedTermsContext must be used within a SuggestedTermsProvider");return e},Cc=C.createContext({searches:[],isLoading:!1,error:null}),$d=({children:e})=>{const[t,r]=C.useState([]),[n,o]=C.useState(!0),[i,s]=C.useState(null);return C.useEffect(()=>{(async()=>{try{o(!0);const u=await fetch("/api/search/topSearch");if(!u.ok)throw new Error(`Erro ao buscar os dados: ${u.status}`);const l=await u.json();r(l.data.searches||[])}catch(u){s(u instanceof Error?u.message:"Erro desconhecido")}finally{o(!1)}})()},[]),a.jsx(Cc.Provider,{value:C.useMemo(()=>({searches:t,isLoading:n,error:i}),[t,n,i]),children:e})},Bd=()=>{const e=C.useContext(Cc);if(!e)throw new Error("useTopSearches must be used within a TopSearchesProvider");return e},Sc=C.createContext({}),qd=({children:e,slug:t,searchParams:r,collectionId:n,itemsPerPage:o=24})=>{const{pathname:i}=Pe(),[s,c]=C.useState(!1),u=C.useMemo(()=>{const f=new URL(i,"http://localhost"),p=Array.isArray(r==null?void 0:r.facets)?r.facets:[(r==null?void 0:r.facets)??""],d=(r==null?void 0:r.page)??"1",m=(r==null?void 0:r.sort)??(n?"":_c.default_option);return f.searchParams.set("page",String(d)),f.searchParams.set("sort",String(m)),r!=null&&r.query?(f.searchParams.set("query",r.query),f):(f.searchParams.set("base",Array.isArray(t)?t.join("/"):t),f.searchParams.set("facets",p.join(",")),f)},[n,i,r,t]),l=C.useMemo(()=>{if(Array.isArray(r==null?void 0:r.facets))return Te.parseSearchState(u,r.facets);const f=r!=null&&r.facets?[r==null?void 0:r.facets]:[];return Te.parseSearchState(u,f)},[u,r]);return a.jsx(Sc.Provider,{value:C.useMemo(()=>({openFilters:s,setOpenFilters:c}),[s,c]),children:a.jsx(yc,{CONSTANTS:{ITEMS_PER_PAGE:o},state:C.useMemo(()=>({...l}),[l]),collectionId:n,children:e})})},Hd=()=>{const e=C.useContext(Sc);if(e===void 0)throw new Error("usePLPContext must be used within a PLPProvider");return e},Wt=(e,t)=>{if(e===t)return!0;if(e==null||t==null||typeof e!="object"||typeof t!="object")return!1;if(Array.isArray(e))return!Array.isArray(t)||e.length!==t.length?!1:e.every((o,i)=>Wt(o,t[i]));if(Array.isArray(t))return!1;const r=Object.keys(e),n=Object.keys(t);return r.length!==n.length?!1:r.every(o=>Object.prototype.hasOwnProperty.call(t,o)&&Wt(e[o],t[o]))},Ac=(e,t,r="page")=>Object.keys(t).some(n=>n===r?!1:!Wt(t[n],e[n])),Jn=async e=>{const t=await fetch("/api/search/product",{method:"POST",body:JSON.stringify(e),priority:"high"});if(!t.ok)throw new Error("[FAILED TO FETCH DATA]");const r=await t.json();return r==null?void 0:r.data},Ec=()=>({node:{sku:"",gtin:"",name:"...",description:"",releaseDate:"",slug:"",video:null,categories:[],categoryId:"",categoriesIds:[],id:"skeleton",brand:{name:""},seo:{title:"",description:"",canonical:""},cluster:{generals:[],highlights:[]},availability:{status:!0},breadcrumbList:{itemListElement:[]},image:[{alternateName:"1",url:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAQAAAC1HAwCAAAAC0lEQVR4nGNgYAAAAAMAAWgmWQ0AAAAASUVORK5CYII=",keywords:"1"},{alternateName:"10",url:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAQAAAC1HAwCAAAAC0lEQVR4nGMAAQAABQABDQottgAAAABJRU5ErkJggg==",keywords:"10"}],offers:{lowPrice:1,highPrice:0,offers:[{availability:"true",listPrice:0,price:0,priceValidUntil:"",priceCurrency:"BRL",itemCondition:"",quantity:1,seller:{identifier:"1"}}],priceCurrency:"BRL"},isVariantOf:{productGroupID:"",hasVariant:[{additionalProperty:[{name:"Tamanho",value:"...",valueReference:"SPECIFICATION",propertyID:""}],name:"...",offers:{offers:[{availability:"https://schema.org/InStock",listPrice:0,price:0,quantity:1,seller:{identifier:"1"}}]},sku:"1",slug:"1",productId:"1"}],name:"",additionalProperty:[],skuVariants:null},installments:{count:2,value:1}}}),Rc=(e,t,r,n=24)=>{const o=new Set,i=[];if(!Array.isArray(e)||e.length===0)return{taken:o,placedBanners:i};const s=t*n*r;for(const c of e){let u=Number(c.position_grid),l=!1;for(;u<s;){const f=u%r;if(f+c.columns>r){u+=r-f;continue}if(!Array.from({length:c.columns}).some((m,h)=>o.has(u+h))){for(let m=0;m<c.columns;m++)o.add(u+m);i.push(u),l=!0;break}u++}l||console.info(`[PLP INFINITE FAILED BANNER POSITION]: pos=${c.position_grid}, cols=${c.columns}`)}return{taken:o,placedBanners:i}},eo=(e,t,r,n=24)=>{const{placedBanners:o,taken:i}=Rc(e??[],t,r),s=[];let c=0;try{for(;s.length<t*n;)i.has(c)||s.push(c),c++;return{banners:o,products:s}}catch(u){console.info(`[PLP INFINITE FAILED TO GEN POSITIONS]: page=${t}`,u)}return{banners:[],products:s}},Ut=(e,t,r=24)=>Array.from({length:e},(n,o)=>{const i=o+1;return{loading:e===i,page:i,pagination:t!=null&&t.products.length&&e===i?t==null?void 0:t.pagination:Mo(),products:t!=null&&t.products.length&&e===i?t==null?void 0:t.products:Array.from({length:r},()=>Ec())}}),jc=(e,t)=>[...e,{loading:!1,page:t,pagination:Mo(),products:[]}],Mo=()=>({nextPage:!1,previousPage:!1,startCursor:"0",endCursor:"1",count:1,total:1}),Fd=(e,t,r,n,o)=>{const i=e[e.length-1],s=(i==null?void 0:i.products.length)??o,c=(e.length-1)*o+s-1,u=r[c];return t.filter((l,f)=>{const p=n[f];return p<=u||o>s&&p>u})},wc=(e,t)=>{const r=new Map;for(const o of e){const i=Math.floor(o/t);r.has(i)||r.set(i,[]),r.get(i).push(o)}const n=[];for(const[,o]of r){const i=o[Math.floor(Math.random()*o.length)];n.push(i)}return n},zd=(e,t)=>{if(!e)return[];const r=e.map((n,o)=>n.video&&n.video!==""?o:null).filter(n=>n);return wc(r,t)},Ud=Object.freeze(Object.defineProperty({__proto__:null,createPage:jc,createPages:Ut,createPagination:Mo,createProduct:Ec,deepEqual:Wt,fetchPage:Jn,getBanners:Rc,getPositions:eo,getProductsWithVideo:zd,getRandomVideoPerRow:wc,getVisibleBanners:Fd,hasStateChangedExceptPage:Ac},Symbol.toStringTag,{value:"Module"})),Gd=50,Wd=ot.create((e,t)=>{const r=s=>Math.min(s,Gd),n=async(s,c)=>{const u=r(s.page);try{const l=await Jn({...s,page:u});o(u,f=>c?c(f,l):{...f,...l})}catch(l){console.error(`[PDC - SCROLL INFINITE FAILED TO FETCH PAGE ${u}]: ${l}`),o(u,f=>({...f,loading:!1}))}},o=(s,c)=>{e({load:!0,pages:t().pages.map(u=>u.page===s?c(u):u)})},i=async(s,c)=>{await n(s,(u,l)=>(typeof c=="function"&&c(l),{...u,...l,loading:!0}))};return{banners:[],load:!1,pages:[],total:0,positions:[],products:[],createPages:async(s,c,u,l)=>{var p,d,m;const f=r(Number(s==null?void 0:s.page));e({...c,pages:Ut(f,void 0,l)});try{const h=await Jn({...s,page:f});if(h){if(!h.products.length&&((p=h==null?void 0:h.pagination)==null?void 0:p.total)<f){i({...s,page:(d=h==null?void 0:h.pagination)==null?void 0:d.total},u),e({pages:Ut((m=h==null?void 0:h.pagination)==null?void 0:m.total)});return}typeof u=="function"&&u(h),e({load:!0,pages:Ut(f,h),total:Number(h.pagination.count)})}}catch(h){console.error(`[PDC - SCROLL INFINITE TO CREATE PAGES]: page ${f} ${h}`)}},addPage:(s,c,u)=>{const{pages:l}=t(),f=r(s==null?void 0:s.page);l.some(p=>p.page===f)||(e({...c,pages:jc(l,f)}),i(s,u))},updateProducts:(s,c)=>{const u=t().pages.find(l=>l.page===r(s==null?void 0:s.page));u!=null&&u.loading||i(s,c)}}}),Vd=(e,t,r,n=0)=>{if(!e.length)return[];let o=0;const i=[];for(let s=0;s<e.length;s+=r){const c=e.slice(s,s+r),u=c.findIndex(l=>{var f;return(f=l.node)==null?void 0:f.video});for(let l=0;l<c.length;l++){const f=s+l,p=n+f,d=t.find(h=>h.position_grid===p+1),m=p+o+1;d&&(o+=d.columns),i.push({position:m,canPlayVideo:l===u})}}return i},Kd=(e,t,r)=>{const n=(t-1)*r,o=t*r;return e>=n&&e<=o},Pc=e=>{var t;return(t=e==null?void 0:e.map(r=>({disable:Eo(r),size:Ao(r),skuID:"sku"in r&&r.sku})))==null?void 0:t.filter(r=>r.disable)},Xd=Object.freeze(Object.defineProperty({__proto__:null,createGridPosAndVideo:Vd,getSkusNotify:Pc,isPositionInCurrentPage:Kd},Symbol.toStringTag,{value:"Module"})),Ic=C.createContext({}),Qd=({banners:e,children:t,itemsPerPage:r=24,searchParams:n,Notification:o})=>{const{router:i}=Pe(),{sendDataLayerEvent:s}=ge(),{isMobile:c}=Se(),{state:u}=To(),{addPage:l,createPages:f,updateProducts:p,...d}=Wd(),m=c?8:16,h=c?2:4,y=C.useRef(!1),g=C.useRef(u),[b,E]=C.useState(!1),[_,R]=C.useState(null),[S,j]=C.useState([]),x=C.useCallback(N=>{N&&"pagination"in N&&s({functionKey:"productListEvent",data:{event:"view_item_list",commonData:{products:N.products}}})},[s]),P=C.useCallback(N=>{if(N.pagination.nextPage===!0){const D=N.page+1,w=eo(e,D,h,r);l({...u,page:D},w,x)}},[l,e,x,h,r,u]),L=C.useCallback(N=>{N.loading===!1&&p({...u,page:N.page},x)},[x,p,u]),A=C.useCallback(N=>{const D=new URLSearchParams(n);N.page!==Number(D.get("page")??1)&&(D.set("page",String(N.page)),i.replace(`?${D.toString()}`,{scroll:!1}))},[i,n]),O=C.useCallback((N,D)=>{const w=D?Pc([D]):null;j(N),R(w!=null&&w.length?w[0]:null),E(!0)},[]);return C.useEffect(()=>{const N=!y.current,D=Ac(g.current,u),w=eo(e,u.page,h);N?f(u,w,x,r):D&&(f(u,w,x,r),g.current=u),y.current=!0},[e,f,x,h,r,u]),a.jsxs(Ic.Provider,{value:C.useMemo(()=>({...d,addPage:l,addNewPage:P,createPages:f,gap:m,columns:h,handleNotify:O,updatePage:L,updateProducts:p,updateParamPage:A}),[l,P,f,O,m,h,d,L,p,A]),children:[t,a.jsx(o,{notify:b,sku:_,skus:S,setSku:R,setNotify:E})]})},Yd=()=>{const e=C.useContext(Ic);if(e===void 0)throw new Error("PLPInfiniteScrollContext must be used within a ScrollInfiniteProvider");return e};function Nc(e){const r=decodeURIComponent(window.document.cookie).split(";");for(const n of r){const[o,i]=n.trim().split("=");if(o===e)return i}}function ko(e,t,r={}){const o={...{path:"/",expires:new Date(Date.now()+36e5)},...r};let i=`${encodeURIComponent(e)}=${encodeURIComponent(t??"")}`;for(const s in o)o[s]!==void 0&&(i+=`; ${s}`,s==="expires"?i+=`=${o[s].toUTCString()}`:typeof o[s]=="boolean"?i+=`; ${o[s]?"true":"false"}`:i+=`=${o[s]}`);window.document.cookie=i}const Zd=()=>{const{sendDataLayerEvent:e}=ge(),{user:t}=Lo(),{cartStore:r}=Be();return C.useEffect(()=>{if(!t)return;(async()=>{const{userId:o,email:i,firstName:s,lastName:c,phone:u,homePhone:l,postalCode:f,street:p,number:d,city:m,gender:h}=t,y=new TextEncoder().encode(o),g=await crypto.subtle.digest("SHA-256",y),E=Array.from(new Uint8Array(g)).map(_=>_.toString(16).padStart(2,"0")).join("");e({functionKey:"readyEvents",data:{readyData:{user_id:E,email:i,first_name:s,last_name:c,phone:u||l,zip:f,street:p,street_number:d,city:m,gender:h,orderform_id:r==null?void 0:r.id}}})})()},[t,r.id]),null},Oc=C.createContext({amount:null,boxes:null,toExpire:null,loading:!0,logout:()=>null,getCurrentCredits:()=>({credits:0,cashback:0})}),Jd=({children:e,AUTH_TOKEN_COOKIE:t})=>{const[r,n]=C.useState({amount:null,boxes:null,toExpire:null,loading:!0}),o=C.useCallback(async()=>{try{await fetch("/api/user",{priority:"low"}).then(c=>c.json()).then(c=>{const{userCredits:u,...l}=c;n({amount:u==null?void 0:u.amount,boxes:u==null?void 0:u.boxes,toExpire:u==null?void 0:u.toExpire,user:l,loading:!1})})}catch(c){console.error("my credits request",c),n({...r,loading:!1})}},[n]),i=C.useCallback(()=>{ko(t),o()},[o]),s=C.useCallback(()=>r.boxes?r.boxes.reduce((c,u)=>u.gift_card_box.refid==="C1643"?(c.cashback+=u.amount,c):(c.credits+=u.amount,c),{cashback:0,credits:0}):{cashback:0,credits:0},[r]);return C.useEffect(()=>{o()},[o]),a.jsxs(Oc.Provider,{value:C.useMemo(()=>({...r,getCurrentCredits:s,logout:i}),[r,s,i]),children:[a.jsx(Zd,{}),e]})},Lo=()=>{const e=C.useContext(Oc);if(e===void 0)throw new Error("useContext(SessionContext) must be used within a SessionProvider");return e},Tc=C.createContext({gridBanners:void 0,banners:[]}),ef=({children:e,data:t,device:r,SectionZone:n,COMMON_PAGE_COLUMN_GAP_PDC:o})=>{const{isMobile:i}=Se(),s=(t==null?void 0:t.sections.filter(p=>p.name!=="List Product Banners"))??[],c=s.slice(0,ei),u=s.slice(ei,s.length),l=t==null?void 0:t.sections.find(p=>p.name==="List Product Banners"),f=C.useMemo(()=>{var p,d;return((d=(p=l==null?void 0:l.data)==null?void 0:p.banners)==null?void 0:d.map(m=>({...m.banner,columns:m.bannerWidth,position_grid:m.bannerPosition})))??[]},[l]);return i&&r==="mobile"||!i&&r==="desktop"?a.jsxs(Tc.Provider,{value:{gridBanners:l,banners:f},children:[a.jsx(n,{data:c??[]}),a.jsxs(v.Utils.Column,{gap:o,className:v.helpers.classNameConcat("utils-column-modifier"),children:[e,a.jsx(n,{data:u??[]})]})]}):a.jsx(a.Fragment,{})},tf=()=>{const e=C.useContext(Tc);return e===void 0&&console.error("Needs PLPContentContext on parent component"),e},rf={contexts:{addToCart:{hook:Ye,provider:pc},cart:{hook:Be,provider:xd},cms:{FlagsAndTags:{context:bo,hook:xo,provider:wl}},events:{hook:ge,provider:Hl},global:{hook:Se,provider:td,mediator:Qa},header:{hook:be,provider:_d},menuMobile:{hook:gt,provider:dc},next:{hook:Pe,provider:rd},pdp:{provider:Pl,hook:Il},plp:{provider:qd,hook:Hd},PLPContent:{provider:ef,hook:tf},plpInfinite:{provider:Qd,hook:Yd},pdpdata:{hook:jo,provider:Fl},searchFacets:{hook:Nd,provider:Id},searchProducts:{hook:Md,provider:Td},searchRoot:{hook:Oo,provider:No},searchSearch:{hook:To,provider:yc},searchSuggestedTerms:{hook:Dd,provider:Ld},searchTopSearchs:{hook:Bd,provider:$d},session:{hook:Lo,provider:Jd},ui:{hook:pt,provider:Xa}},hooks:{useBackPDC:ha},stores:{cart:Jl,header:id,pdp:yd}},nf=e=>e.normalize("NFD").replace(/[\u0300-\u036f]/g,"").replace(/\s+/g,"-").toLowerCase().trim();function of(e,t=1e3){let r=!1;return(...n)=>{r||(e(...n),r=!0,setTimeout(()=>{r=!1},t))}}function sf(e,t=1e3){let r;return(...n)=>{clearTimeout(r),r=setTimeout(()=>{e(...n)},t)}}const Mc=(e,t)=>t.getTime()>e.getTime()?Math.abs(t.getTime()-e.getTime()):0,ut=(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),af=e=>{const t=jl.decodeJwt(e??"");return{email:t.sub,userId:t.userId}},cf=["name","email","phone","date","cpf","cep"],ti={email:/\S+@\S+\.\S+/,name:new RegExp("^\\p{L}+( \\p{L}+)*$","u"),phone:/^\d{10,11}|\(\d{2}\)\s?\d{4,5}-\d{4}$/,date:/^\d{6,8}|^\d{2}\/\d{2}\/\d{2,4}$/,cep:/^\d{5}[-]?\d{3}$/,cpf:/^\d{11}|\d{3}\.\d{3}\.?\d{3,5}\-[\d]{2}$/},uf=({type:e,input:t,required:r=!1})=>{if(typeof t!="string"||!r&&t===""||!ti[e])return!0;const n=t.trim();return ti[e].test(n)},lf=e=>{const t=/\/(\d+)-\d+-\d+\/(.+?)\./,r=typeof e=="string"?e.match(t):null;return r?r[2].replace(/-/g," "):Sd},df=Object.freeze(Object.defineProperty({__proto__:null,FieldTypes:cf,debounce:sf,getAltTextFromUrl:lf,getAuthenticatedUser:af,getCookie:Nc,getDaysHoursMinutesSeconds:ut,getMilliSeconds:Mc,removeAccentsAndReplaceSpaces:nf,setCookie:ko,throttle:of,validateInput:uf},Symbol.toStringTag,{value:"Module"})),ff={cart:Ql,events:ql,plp:Ud,product:Ml,utils:df},Do={helpers:ff},Ie={"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"},kc=({brand:e,className:t,name:r,...n})=>a.jsxs("div",{...n,className:v.helpers.classNameConcat(Ie["add-to-cart--card--name"],t),children:[a.jsx(v.Tag,{style:{textTransform:"uppercase"},size:"small",variant:"quaternary",title:e,children:e}),a.jsx(v.TextStructure.Root,{children:a.jsx(v.TextStructure.DivWrapper,{alignContent:"flex-start",alignItems:"flex-start",children:a.jsx("p",{className:"typography-style-body-md",children:r})})})]});kc.displayName="AddToCart.Card.Name";const Lc=({className:e,listPrice:t,price:r,quantity:n,productId:o,...i})=>{const s=Me(r/100),c=Me(t/100);return a.jsx("div",{...i,className:v.helpers.classNameConcat(Ie["add-to-cart--card--price-quantity"],e),children:a.jsx(v.ProductInfo.Root,{size:"small",layout:"vertical",children:a.jsx(v.ProductInfo.Wrapper,{size:"small",layout:"vertical",children:a.jsx(v.ProductInfo.ValuesWrapper,{children:r!==t?a.jsxs(a.Fragment,{children:[a.jsx(v.ProductInfo.Price,{label:"originalPrice",value:s,size:"small"},"price-list"),a.jsx(v.ProductInfo.Price,{label:"discountPrice",value:c,size:"small"},"price-low")]}):a.jsx(v.ProductInfo.Price,{label:"defaultPrice",value:c,size:"small"},"price-low")})})})})};Lc.displayName="AddToCart.Card.PriceQuantity";const pf="_skeleton_12b79_1",mf={skeleton:pf},hf=({style:e})=>a.jsx("div",{style:e,className:mf.skeleton}),gf="_image_lypfr_1",yf={image:gf},_f=({alt:e,className:t,objectFit:r,...n})=>{const{nextimage:o}=Pe();return a.jsx(o,{quality:90,...n,alt:e??"",className:v.helpers.classNameConcat(yf.image,t),"data-object-fit":r??"cover"})},vf=({videoRef:e,...t})=>a.jsx("video",{...t,ref:e,children:a.jsx("track",{kind:"captions"})}),$e={Image:_f,Video:vf},Dc=({className:e,productGroupID:t,size:r,texture:n,...o})=>{const{CONSTANTS:{TEXTURE_IMAGE:i,TOGGLE_STYLE_MODIFIER:s}}=Ye(),[c,u]=C.useState(n??"");return C.useEffect(()=>{c||fetch("/api/catalog/product/info",{method:"POST",priority:"low",body:JSON.stringify({ids:[t]})}).then(l=>l.json()).then(l=>{const f=l.data[0].items[0];if(f){const p=f.images.find(d=>i.includes(d.imageLabel));p!=null&&p.imageUrl?u(p.imageUrl):u(f.images[0].imageUrl)}}).catch(l=>{console.error(l)})},[c,t]),a.jsxs("div",{...o,className:v.helpers.classNameConcat(Ie["add-to-cart--card--style-size"],e),children:[a.jsx(v.ToggleStyle.Wrapper,{size:"x-small",style:s,children:a.jsx(v.ToggleStyle.Texture,{children:c?a.jsx($e.Image,{alt:"",src:c??"",width:164,height:164,style:s}):a.jsx(hf,{})})}),a.jsx(v.Utils.Divider,{direction:"vertical",size:"medium",style:{height:24}}),r&&a.jsxs(v.ToggleSize.Wrapper,{size:"small",title:"wrapper-texture",children:[a.jsx(v.ToggleSize.DisabledAdornment,{title:"disabled-adornment-texture"}),a.jsx(v.ToggleSize.Text,{children:r})]})]})};Dc.displayName="AddToCart.Card.StyleSize";const{helpers:bf}=Do,$c=({className:e,item:t,texture:r,...n})=>{const{itemOffered:{name:o,brand:i,skuName:s,isVariationOf:{productGroupID:c}},quantity:u,price:l,sellingPrice:f}=t,{CONSTANTS:{NAME_SPLIT_SYMBOL:p}}=Ye(),{size:d}=bf.product.getColorAndSizeFromSkuName(s??o,p);return a.jsxs("div",{...n,className:v.helpers.classNameConcat(Ie["add-to-cart--card--content"],e),children:[a.jsx(kc,{brand:i.name,name:o}),a.jsx(Lc,{price:l,listPrice:f,quantity:u,productId:t.id}),a.jsx(Dc,{size:d,texture:r,productGroupID:c})]})};$c.displayName="AddToCart.Card.Content";const Bc=({image:e,thumbnail:t=!1})=>a.jsx($e.Image,{alt:e.alternateName??"image","data-thumbnail":t,height:t?152:120,src:e.url,width:t?152:94});Bc.displayName="AddToCart.Card";const qc=({className:e,item:t,texture:r,thumbnail:n,...o})=>{const{itemOffered:{image:[i]}}=t,s=ba(i.url,{width:200,height:300});return a.jsxs("div",{...o,className:v.helpers.classNameConcat(Ie["add-to-cart--card"],e),children:[a.jsx(Bc,{image:{alternateName:i.alternateName||"Produto",url:s||""},thumbnail:n}),!n&&a.jsx($c,{item:t,texture:r})]})};qc.displayName="AddToCart.Card";const Hc=({className:e,children:t,title:r,...n})=>a.jsxs("div",{...n,className:v.helpers.classNameConcat(Ie["add-to-cart--content"],e),children:[a.jsx("div",{className:Ie["add-to-cart--content--title"],children:r&&a.jsx("h2",{children:r})}),t,a.jsx(Ve.Footer,{})]});Hc.displayName="AddToCart.Layout.Content";const Fc=({className:e,...t})=>{var m,h;const{isMobile:r,handleClose:n,CONSTANTS:{ADD_TO_CART:o}}=Ye(),{cartStore:{totalizers:i},setIsOpen:s}=Be(),c=(m=i.find(y=>y.id==="Discounts"))==null?void 0:m.value,u=((h=i.find(y=>y.id==="Items"))==null?void 0:h.value)??0,l=i.find(y=>y.id==="Shipping"),p=(u-Math.abs(c??0)+((l==null?void 0:l.value)??0))/100,d=Me(p??0);return a.jsxs("div",{...t,className:v.helpers.classNameConcat(Ie["add-to-cart--footer"],e),children:[a.jsxs("div",{className:Ie["add-to-cart--footer--total"],children:[a.jsx("span",{children:"Subtotal:"}),a.jsx("span",{children:d})]}),a.jsx(v.Button,{size:"medium",variant:"primary","data-close":!0,onClick:()=>s(!0),children:o.footer.bag}),r?a.jsx(v.Button,{"data-close":!0,size:"medium",variant:"tertiary",children:o.footer.keep_buying}):a.jsx(v.Button,{onClick:()=>n(),size:"medium",variant:"tertiary",children:o.footer.keep_buying})]})};Fc.displayName="AddToCart.Layout.Footer";const zc=({children:e,className:t,thumbnail:r=!1,...n})=>{const{cartStore:{options:o}}=Be(),{recentlyAddedProducts:i}=pt(),s=i.length>3?4:i.length;return a.jsxs("div",{...n,className:Ie["add-to-cart--items"],"data-thumbnail":r,children:[Array.isArray(i)&&i.filter((c,u)=>u<s).map(c=>{var l;const u=(l=o==null?void 0:o.find(f=>f.id===c.itemOffered.isVariationOf.productGroupID))==null?void 0:l.texture;return a.jsx(Ve.Card,{item:c,thumbnail:r,texture:u},c.itemOffered.sku)}),e]})};zc.displayName="AddToCart.Layout.Items";const Uc=({children:e,Z_INDEX_WAR:t})=>{const{isOpen:r,setIsOpen:n}=Ye(),{isMobile:o}=Se();return a.jsxs(v.Modal.Root,{"data-modal":"add-to-cart--modal",className:Ie["add-to-cart__modal"],isMobile:o??!1,isOpen:r,setIsOpen:n,variant:"sideBottom",style:{zIndex:t.modal},children:[a.jsx(v.Modal.Header,{navigation:"top",children:a.jsx(v.Modal.Controls,{navigation:"top",isMobile:!0})}),a.jsx(v.Modal.Body,{children:e})]})};Uc.displayName="AddToCart.Modal";const xf=({children:e})=>{const{count:t,handleClose:r,setIsOpen:n}=Ye(),o=C.useRef(t);return C.useEffect(()=>{t>o.current&&n(!0),t<o.current&&o.current>=1&&r(),o.current=t},[t,r,n]),a.jsx(a.Fragment,{children:e})},Gc=({children:e,component:t,CONSTANTS:r,...n})=>{const{recentlyAddedProducts:o}=pt(),{isMobile:i}=Se(),s=o.length>3?4:o.length;return a.jsx(pc,{...n,count:s,isMobile:i,CONSTANTS:r,children:a.jsx(xf,{children:i?a.jsxs(a.Fragment,{children:[a.jsx(Ve.Modal,{Z_INDEX_WAR:r.Z_INDEX_WAR,children:t}),e]}):a.jsx(Ve.Tooltip,{component:t,style:{width:350},Z_INDEX_WAR:r.Z_INDEX_WAR,children:e})})})};Gc.displayName="AddToCart.Root";const Wc=({children:e,component:t,Z_INDEX_WAR:r,...n})=>{const{contentRef:o,left:i,isLeaving:s,target:c,isOpen:u,top:l}=Ye();return a.jsx(v.Tooltip.Root,{arrow:"top-right",component:a.jsx("div",{...n,ref:o,children:t}),id:"add-to-cart--tooltip",className:Ie["add-to-cart--tooltip"],style:{zIndex:r.modal},isLeaving:s,isOpen:u,left:i,size:"medium",position:"top",top:l,children:a.jsx("div",{className:Ie["add-to-cart--tooltip"],ref:c,children:e})})};Wc.displayName="AddToCart.Tooltip";const Ve={Card:qc,Content:Hc,Footer:Fc,Items:zc,Modal:Uc,Root:Gc,Tooltip:Wc},$o=({title:e,...t})=>{const{recentlyAddedProducts:r}=pt(),{isMobile:n}=Se(),o=r.length>3?4:r.length,i=r.length>(o??1),s=r.length>1;return a.jsx(Ve.Root,{isMobile:n,count:r.length,component:a.jsx(Ve.Content,{title:e,children:a.jsx(Ve.Items,{thumbnail:s,children:i&&a.jsx(v.Badge.Count,{count:r.length-o,size:"medium",variant:"secondary"})})}),...t})};$o.displayName="AddToCart";const ri={"backtotop-btn":"_backtotop-btn_1shb6_1","card-modifier":"_card-modifier_1shb6_27"},Cf=({children:e,className:t,adornment:r,iconPosition:n,scrollToOptions:o,style:i,...s})=>{const c={top:(o==null?void 0:o.top)??0,left:(o==null?void 0:o.left)??0,behavior:(o==null?void 0:o.behavior)??"smooth"},l=n&&r?{flexDirection:{top:"column",bottom:"column-reverse",left:"row",right:"row-reverse"}[n]}:{},f=()=>{window&&window.document.body.scrollTo({...c})};return a.jsx(v.Card,{...s,shadow:!0,padding:"small",className:v.helpers.classNameConcat(ri["card-modifier"],t),style:{...i,padding:0},children:a.jsxs("button",{className:ri["backtotop-btn"],onClick:f,style:{...l},"data-orientation":n,children:[r,e]})})};var Vc=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Yt(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function Sf(e){if(e.__esModule)return e;var t=e.default;if(typeof t=="function"){var r=function n(){return this instanceof n?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};r.prototype=t.prototype}else r={};return Object.defineProperty(r,"__esModule",{value:!0}),Object.keys(e).forEach(function(n){var o=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(r,n,o.get?o:{enumerable:!0,get:function(){return e[n]}})}),r}var to={exports:{}},Re={};Re._=Re._interop_require_default=Af;function Af(e){return e&&e.__esModule?e:{default:e}}var Et={exports:{}},sr={},ni;function Kc(){return ni||(ni=1,function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(s,c){for(var u in c)Object.defineProperty(s,u,{enumerable:!0,get:c[u]})}t(e,{searchParamsToUrlQuery:function(){return r},urlQueryToSearchParams:function(){return o},assign:function(){return i}});function r(s){const c={};return s.forEach((u,l)=>{typeof c[l]>"u"?c[l]=u:Array.isArray(c[l])?c[l].push(u):c[l]=[c[l],u]}),c}function n(s){return typeof s=="string"||typeof s=="number"&&!isNaN(s)||typeof s=="boolean"?String(s):""}function o(s){const c=new URLSearchParams;return Object.entries(s).forEach(u=>{let[l,f]=u;Array.isArray(f)?f.forEach(p=>c.append(l,n(p))):c.set(l,n(f))}),c}function i(s){for(var c=arguments.length,u=new Array(c>1?c-1:0),l=1;l<c;l++)u[l-1]=arguments[l];return u.forEach(f=>{Array.from(f.keys()).forEach(p=>s.delete(p)),f.forEach((p,d)=>s.append(d,p))}),s}}(sr)),sr}var ar={},Ke={};function Xc(e){if(typeof WeakMap!="function")return null;var t=new WeakMap,r=new WeakMap;return(Xc=function(n){return n?r:t})(e)}Ke._=Ke._interop_require_wildcard=Ef;function Ef(e,t){if(!t&&e&&e.__esModule)return e;if(e===null||typeof e!="object"&&typeof e!="function")return{default:e};var r=Xc(t);if(r&&r.has(e))return r.get(e);var n={},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if(i!=="default"&&Object.prototype.hasOwnProperty.call(e,i)){var s=o?Object.getOwnPropertyDescriptor(e,i):null;s&&(s.get||s.set)?Object.defineProperty(n,i,s):n[i]=e[i]}return n.default=e,r&&r.set(e,n),n}var oi;function Qc(){return oi||(oi=1,function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(u,l){for(var f in l)Object.defineProperty(u,f,{enumerable:!0,get:l[f]})}t(e,{formatUrl:function(){return i},urlObjectKeys:function(){return s},formatWithValidation:function(){return c}});const n=Ke._(Kc()),o=/https?|ftp|gopher|file/;function i(u){let{auth:l,hostname:f}=u,p=u.protocol||"",d=u.pathname||"",m=u.hash||"",h=u.query||"",y=!1;l=l?encodeURIComponent(l).replace(/%3A/i,":")+"@":"",u.host?y=l+u.host:f&&(y=l+(~f.indexOf(":")?"["+f+"]":f),u.port&&(y+=":"+u.port)),h&&typeof h=="object"&&(h=String(n.urlQueryToSearchParams(h)));let g=u.search||h&&"?"+h||"";return p&&!p.endsWith(":")&&(p+=":"),u.slashes||(!p||o.test(p))&&y!==!1?(y="//"+(y||""),d&&d[0]!=="/"&&(d="/"+d)):y||(y=""),m&&m[0]!=="#"&&(m="#"+m),g&&g[0]!=="?"&&(g="?"+g),d=d.replace(/[?#]/g,encodeURIComponent),g=g.replace("#","%23"),""+p+y+d+g+m}const s=["auth","hash","host","hostname","href","path","pathname","port","protocol","query","search","slashes"];function c(u){return process.env.NODE_ENV==="development"&&u!==null&&typeof u=="object"&&Object.keys(u).forEach(l=>{s.includes(l)||console.warn("Unknown key passed via urlObject into url.format: "+l)}),i(u)}}(ar)),ar}var cr={},ii;function Rf(){return ii||(ii=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"omit",{enumerable:!0,get:function(){return t}});function t(r,n){const o={};return Object.keys(r).forEach(i=>{n.includes(i)||(o[i]=r[i])}),o}}(cr)),cr}var ur={},si;function Zt(){return si||(si=1,function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(R,S){for(var j in S)Object.defineProperty(R,j,{enumerable:!0,get:S[j]})}t(e,{WEB_VITALS:function(){return r},execOnce:function(){return n},isAbsoluteUrl:function(){return i},getLocationOrigin:function(){return s},getURL:function(){return c},getDisplayName:function(){return u},isResSent:function(){return l},normalizeRepeatedSlashes:function(){return f},loadGetInitialProps:function(){return p},SP:function(){return d},ST:function(){return m},DecodeError:function(){return h},NormalizeError:function(){return y},PageNotFoundError:function(){return g},MissingStaticPage:function(){return b},MiddlewareNotFoundError:function(){return E},stringifyError:function(){return _}});const r=["CLS","FCP","FID","INP","LCP","TTFB"];function n(R){let S=!1,j;return function(){for(var x=arguments.length,P=new Array(x),L=0;L<x;L++)P[L]=arguments[L];return S||(S=!0,j=R(...P)),j}}const o=/^[a-zA-Z][a-zA-Z\d+\-.]*?:/,i=R=>o.test(R);function s(){const{protocol:R,hostname:S,port:j}=window.location;return R+"//"+S+(j?":"+j:"")}function c(){const{href:R}=window.location,S=s();return R.substring(S.length)}function u(R){return typeof R=="string"?R:R.displayName||R.name||"Unknown"}function l(R){return R.finished||R.headersSent}function f(R){const S=R.split("?");return S[0].replace(/\\/g,"/").replace(/\/\/+/g,"/")+(S[1]?"?"+S.slice(1).join("?"):"")}async function p(R,S){if(process.env.NODE_ENV!=="production"){var j;if((j=R.prototype)!=null&&j.getInitialProps){const L='"'+u(R)+'.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(L)}}const x=S.res||S.ctx&&S.ctx.res;if(!R.getInitialProps)return S.ctx&&S.Component?{pageProps:await p(S.Component,S.ctx)}:{};const P=await R.getInitialProps(S);if(x&&l(x))return P;if(!P){const L='"'+u(R)+'.getInitialProps()" should resolve to an object. But found "'+P+'" instead.';throw new Error(L)}return process.env.NODE_ENV!=="production"&&Object.keys(P).length===0&&!S.ctx&&console.warn(""+u(R)+" 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",m=d&&["mark","measure","getEntriesByName"].every(R=>typeof performance[R]=="function");class h extends Error{}class y extends Error{}class g extends Error{constructor(S){super(),this.code="ENOENT",this.name="PageNotFoundError",this.message="Cannot find module for page: "+S}}class b extends Error{constructor(S,j){super(),this.message="Failed to load static file for page: "+S+" "+j}}class E extends Error{constructor(){super(),this.code="ENOENT",this.message="Cannot find the middleware module"}}function _(R){return JSON.stringify({message:R.message,stack:R.stack})}}(ur)),ur}var Rt={exports:{}},lr={},ai;function Yc(){return ai||(ai=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(/\/$/,"")||"/"}}(lr)),lr}var dr={},ci;function Bo(){return ci||(ci=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("#"),o=r.indexOf("?"),i=o>-1&&(n<0||o<n);return i||n>-1?{pathname:r.substring(0,i?o:n),query:i?r.substring(o,n>-1?n:void 0):"",hash:n>-1?r.slice(n):""}:{pathname:r,query:"",hash:""}}}(dr)),dr}var ui;function Jt(){return ui||(ui=1,function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"normalizePathTrailingSlash",{enumerable:!0,get:function(){return o}});const r=Yc(),n=Bo(),o=i=>{if(!i.startsWith("/")||process.env.__NEXT_MANUAL_TRAILING_SLASH)return i;const{pathname:s,query:c,hash:u}=(0,n.parsePath)(i);return process.env.__NEXT_TRAILING_SLASH?/\.[^/]+\/?$/.test(s)?""+(0,r.removeTrailingSlash)(s)+c+u:s.endsWith("/")?""+s+c+u:s+"/"+c+u:""+(0,r.removeTrailingSlash)(s)+c+u};(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 fr={},jt={exports:{}},pr={},li;function Zc(){return li||(li=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"pathHasPrefix",{enumerable:!0,get:function(){return r}});const t=Bo();function r(n,o){if(typeof n!="string")return!1;const{pathname:i}=(0,t.parsePath)(n);return i===o||i.startsWith(o+"/")}}(pr)),pr}var di;function jf(){return di||(di=1,function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"hasBasePath",{enumerable:!0,get:function(){return o}});const r=Zc(),n=process.env.__NEXT_ROUTER_BASEPATH||"";function o(i){return(0,r.pathHasPrefix)(i,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)}(jt,jt.exports)),jt.exports}var fi;function Jc(){return fi||(fi=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"isLocalURL",{enumerable:!0,get:function(){return n}});const t=Zt(),r=jf();function n(o){if(!(0,t.isAbsoluteUrl)(o))return!0;try{const i=(0,t.getLocationOrigin)(),s=new URL(o,i);return s.origin===i&&(0,r.hasBasePath)(s.pathname)}catch{return!1}}}(fr)),fr}var mr={},hr={},pi;function wf(){return pi||(pi=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"getSortedRoutes",{enumerable:!0,get:function(){return r}});class t{insert(o){this._insert(o.split("/").filter(Boolean),[],!1)}smoosh(){return this._smoosh()}_smoosh(o){o===void 0&&(o="/");const i=[...this.children.keys()].sort();this.slugName!==null&&i.splice(i.indexOf("[]"),1),this.restSlugName!==null&&i.splice(i.indexOf("[...]"),1),this.optionalRestSlugName!==null&&i.splice(i.indexOf("[[...]]"),1);const s=i.map(c=>this.children.get(c)._smoosh(""+o+c+"/")).reduce((c,u)=>[...c,...u],[]);if(this.slugName!==null&&s.push(...this.children.get("[]")._smoosh(o+"["+this.slugName+"]/")),!this.placeholder){const c=o==="/"?"/":o.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+']]").');s.unshift(c)}return this.restSlugName!==null&&s.push(...this.children.get("[...]")._smoosh(o+"[..."+this.restSlugName+"]/")),this.optionalRestSlugName!==null&&s.push(...this.children.get("[[...]]")._smoosh(o+"[[..."+this.optionalRestSlugName+"]]/")),s}_insert(o,i,s){if(o.length===0){this.placeholder=!1;return}if(s)throw new Error("Catch-all must be the last part of the URL.");let c=o[0];if(c.startsWith("[")&&c.endsWith("]")){let f=function(p,d){if(p!==null&&p!==d)throw new Error("You cannot use different slug names for the same dynamic path ('"+p+"' !== '"+d+"').");i.forEach(m=>{if(m===d)throw new Error('You cannot have the same slug name "'+d+'" repeat within a single dynamic path');if(m.replace(/\W/g,"")===c.replace(/\W/g,""))throw new Error('You cannot have the slug names "'+m+'" and "'+d+'" differ only by non-word symbols within a single dynamic path')}),i.push(d)},u=c.slice(1,-1),l=!1;if(u.startsWith("[")&&u.endsWith("]")&&(u=u.slice(1,-1),l=!0),u.startsWith("...")&&(u=u.substring(3),s=!0),u.startsWith("[")||u.endsWith("]"))throw new Error("Segment names may not start or end with extra brackets ('"+u+"').");if(u.startsWith("."))throw new Error("Segment names may not start with erroneous periods ('"+u+"').");if(s)if(l){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 "'+o[0]+'" ).');f(this.optionalRestSlugName,u),this.optionalRestSlugName=u,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 "'+o[0]+'").');f(this.restSlugName,u),this.restSlugName=u,c="[...]"}else{if(l)throw new Error('Optional route parameters are not yet supported ("'+o[0]+'").');f(this.slugName,u),this.slugName=u,c="[]"}}this.children.has(c)||this.children.set(c,new t),this.children.get(c)._insert(o.slice(1),i,s)}constructor(){this.placeholder=!0,this.children=new Map,this.slugName=null,this.restSlugName=null,this.optionalRestSlugName=null}}function r(n){const o=new t;return n.forEach(i=>o.insert(i)),o.smoosh()}}(hr)),hr}var gr={},mi;function Pf(){return mi||(mi=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)}}(gr)),gr}var hi;function If(){return hi||(hi=1,function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(o,i){for(var s in i)Object.defineProperty(o,s,{enumerable:!0,get:i[s]})}t(e,{getSortedRoutes:function(){return r.getSortedRoutes},isDynamicRoute:function(){return n.isDynamicRoute}});const r=wf(),n=Pf()}(mr)),mr}var yr={},_r={},gi;function Nf(){return gi||(gi=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"getRouteMatcher",{enumerable:!0,get:function(){return r}});const t=Zt();function r(n){let{re:o,groups:i}=n;return s=>{const c=o.exec(s);if(!c)return!1;const u=f=>{try{return decodeURIComponent(f)}catch{throw new t.DecodeError("failed to decode param")}},l={};return Object.keys(i).forEach(f=>{const p=i[f],d=c[p.pos];d!==void 0&&(l[f]=~d.indexOf("/")?d.split("/").map(m=>u(m)):p.repeat?[u(d)]:u(d))}),l}}}(_r)),_r}var vr={},br={},xr={},Cr={},yi;function Of(){return yi||(yi=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}}(Cr)),Cr}var Sr={},_i;function Tf(){return _i||(_i=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(")")}}(Sr)),Sr}var vi;function Mf(){return vi||(vi=1,function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(s,c){for(var u in c)Object.defineProperty(s,u,{enumerable:!0,get:c[u]})}t(e,{normalizeAppPath:function(){return o},normalizeRscPath:function(){return i}});const r=Of(),n=Tf();function o(s){return(0,r.ensureLeadingSlash)(s.split("/").reduce((c,u,l,f)=>!u||(0,n.isGroupSegment)(u)||u[0]==="@"||(u==="page"||u==="route")&&l===f.length-1?c:c+"/"+u,""))}function i(s,c){return c?s.replace(/\.rsc($|\?)/,"$1"):s}}(xr)),xr}var bi;function kf(){return bi||(bi=1,function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(s,c){for(var u in c)Object.defineProperty(s,u,{enumerable:!0,get:c[u]})}t(e,{INTERCEPTION_ROUTE_MARKERS:function(){return n},isInterceptionRouteAppPath:function(){return o},extractInterceptionRouteInformation:function(){return i}});const r=Mf(),n=["(..)(..)","(.)","(..)","(...)"];function o(s){return s.split("/").find(c=>n.find(u=>c.startsWith(u)))!==void 0}function i(s){let c,u,l;for(const f of s.split("/"))if(u=n.find(p=>f.startsWith(p)),u){[c,l]=s.split(u,2);break}if(!c||!u||!l)throw new Error(`Invalid interception route: ${s}. Must be in the format /<intercepting route>/(..|...|..)(..)/<intercepted route>`);switch(c=(0,r.normalizeAppPath)(c),u){case"(.)":c==="/"?l=`/${l}`:l=c+"/"+l;break;case"(..)":if(c==="/")throw new Error(`Invalid interception route: ${s}. Cannot use (..) marker at the root level, use (.) instead.`);l=c.split("/").slice(0,-1).concat(l).join("/");break;case"(...)":l="/"+l;break;case"(..)(..)":const f=c.split("/");if(f.length<=2)throw new Error(`Invalid interception route: ${s}. Cannot use (..)(..) marker at the root level or one level up.`);l=f.slice(0,-2).concat(l).join("/");break;default:throw new Error("Invariant: unexpected marker")}return{interceptingRoute:c,interceptedRoute:l}}}(br)),br}var Ar={},xi;function Lf(){return xi||(xi=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(o){return t.test(o)?o.replace(r,"\\$&"):o}}(Ar)),Ar}var Ci;function Df(){return Ci||(Ci=1,function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(y,g){for(var b in g)Object.defineProperty(y,b,{enumerable:!0,get:g[b]})}t(e,{getRouteRegex:function(){return l},getNamedRouteRegex:function(){return m},getNamedMiddlewareRegex:function(){return h}});const r=kf(),n=Lf(),o=Yc(),i="nxtP",s="nxtI";function c(y){const g=y.startsWith("[")&&y.endsWith("]");g&&(y=y.slice(1,-1));const b=y.startsWith("...");return b&&(y=y.slice(3)),{key:y,repeat:b,optional:g}}function u(y){const g=(0,o.removeTrailingSlash)(y).slice(1).split("/"),b={};let E=1;return{parameterizedRoute:g.map(_=>{const R=r.INTERCEPTION_ROUTE_MARKERS.find(j=>_.startsWith(j)),S=_.match(/\[((?:\[.*\])|.+)\]/);if(R&&S){const{key:j,optional:x,repeat:P}=c(S[1]);return b[j]={pos:E++,repeat:P,optional:x},"/"+(0,n.escapeStringRegexp)(R)+"([^/]+?)"}else if(S){const{key:j,repeat:x,optional:P}=c(S[1]);return b[j]={pos:E++,repeat:x,optional:P},x?P?"(?:/(.+?))?":"/(.+?)":"/([^/]+?)"}else return"/"+(0,n.escapeStringRegexp)(_)}).join(""),groups:b}}function l(y){const{parameterizedRoute:g,groups:b}=u(y);return{re:new RegExp("^"+g+"(?:/)?$"),groups:b}}function f(){let y=0;return()=>{let g="",b=++y;for(;b>0;)g+=String.fromCharCode(97+(b-1)%26),b=Math.floor((b-1)/26);return g}}function p(y){let{getSafeRouteKey:g,segment:b,routeKeys:E,keyPrefix:_}=y;const{key:R,optional:S,repeat:j}=c(b);let x=R.replace(/\W/g,"");_&&(x=""+_+x);let P=!1;return(x.length===0||x.length>30)&&(P=!0),isNaN(parseInt(x.slice(0,1)))||(P=!0),P&&(x=g()),_?E[x]=""+_+R:E[x]=""+R,j?S?"(?:/(?<"+x+">.+?))?":"/(?<"+x+">.+?)":"/(?<"+x+">[^/]+?)"}function d(y,g){const b=(0,o.removeTrailingSlash)(y).slice(1).split("/"),E=f(),_={};return{namedParameterizedRoute:b.map(R=>{const S=r.INTERCEPTION_ROUTE_MARKERS.some(x=>R.startsWith(x)),j=R.match(/\[((?:\[.*\])|.+)\]/);return S&&j?p({getSafeRouteKey:E,segment:j[1],routeKeys:_,keyPrefix:g?s:void 0}):j?p({getSafeRouteKey:E,segment:j[1],routeKeys:_,keyPrefix:g?i:void 0}):"/"+(0,n.escapeStringRegexp)(R)}).join(""),routeKeys:_}}function m(y,g){const b=d(y,g);return{...l(y),namedRegex:"^"+b.namedParameterizedRoute+"(?:/)?$",routeKeys:b.routeKeys}}function h(y,g){const{parameterizedRoute:b}=u(y),{catchAll:E=!0}=g;if(b==="/")return{namedRegex:"^/"+(E?".*":"")+"$"};const{namedParameterizedRoute:_}=d(y,!1);let R=E?"(?:(/.*)?)":"";return{namedRegex:"^"+_+R+"$"}}}(vr)),vr}var Si;function $f(){return Si||(Si=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"interpolateAs",{enumerable:!0,get:function(){return n}});const t=Nf(),r=Df();function n(o,i,s){let c="";const u=(0,r.getRouteRegex)(o),l=u.groups,f=(i!==o?(0,t.getRouteMatcher)(u)(i):"")||s;c=o;const p=Object.keys(l);return p.every(d=>{let m=f[d]||"";const{repeat:h,optional:y}=l[d];let g="["+(h?"...":"")+d+"]";return y&&(g=(m?"":"/")+"["+g+"]"),h&&!Array.isArray(m)&&(m=[m]),(y||d in f)&&(c=c.replace(g,h?m.map(b=>encodeURIComponent(b)).join("/"):encodeURIComponent(m))||"/")})||(c=""),{params:p,result:c}}}(yr)),yr}var Ai;function Bf(){return Ai||(Ai=1,function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"resolveHref",{enumerable:!0,get:function(){return f}});const r=Kc(),n=Qc(),o=Rf(),i=Zt(),s=Jt(),c=Jc(),u=If(),l=$f();function f(p,d,m){let h,y=typeof d=="string"?d:(0,n.formatWithValidation)(d);const g=y.match(/^[a-zA-Z]{1,}:\/\//),b=g?y.slice(g[0].length):y;if((b.split("?")[0]||"").match(/(\/\/|\\)/)){console.error("Invalid href '"+y+"' passed to next/router in page: '"+p.pathname+"'. Repeated forward-slashes (//) or backslashes \\ are not valid in the href.");const _=(0,i.normalizeRepeatedSlashes)(b);y=(g?g[0]:"")+_}if(!(0,c.isLocalURL)(y))return m?[y]:y;try{h=new URL(y.startsWith("#")?p.asPath:p.pathname,"http://n")}catch{h=new URL("/","http://n")}try{const _=new URL(y,h);_.pathname=(0,s.normalizePathTrailingSlash)(_.pathname);let R="";if((0,u.isDynamicRoute)(_.pathname)&&_.searchParams&&m){const j=(0,r.searchParamsToUrlQuery)(_.searchParams),{result:x,params:P}=(0,l.interpolateAs)(_.pathname,_.pathname,j);x&&(R=(0,n.formatWithValidation)({pathname:x,hash:_.hash,query:(0,o.omit)(j,P)}))}const S=_.origin===h.origin?_.href.slice(_.origin.length):_.href;return m?[S,R||S]:S}catch{return m?[y]:y}}(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 wt={exports:{}},Er={},Rr={},Ei;function eu(){return Ei||(Ei=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"addPathPrefix",{enumerable:!0,get:function(){return r}});const t=Bo();function r(n,o){if(!n.startsWith("/")||!o)return n;const{pathname:i,query:s,hash:c}=(0,t.parsePath)(n);return""+o+i+s+c}}(Rr)),Rr}var Ri;function qf(){return Ri||(Ri=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"addLocale",{enumerable:!0,get:function(){return n}});const t=eu(),r=Zc();function n(o,i,s,c){if(!i||i===s)return o;const u=o.toLowerCase();return!c&&((0,r.pathHasPrefix)(u,"/api")||(0,r.pathHasPrefix)(u,"/"+i.toLowerCase()))?o:(0,t.addPathPrefix)(o,"/"+i)}}(Er)),Er}var ji;function Hf(){return ji||(ji=1,function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"addLocale",{enumerable:!0,get:function(){return n}});const r=Jt(),n=function(o){for(var i=arguments.length,s=new Array(i>1?i-1:0),c=1;c<i;c++)s[c-1]=arguments[c];return process.env.__NEXT_I18N_SUPPORT?(0,r.normalizePathTrailingSlash)(qf().addLocale(o,...s)):o};(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)}(wt,wt.exports)),wt.exports}var jr={},wi;function tu(){return wi||(wi=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"RouterContext",{enumerable:!0,get:function(){return n}});const n=Re._(C).default.createContext(null);process.env.NODE_ENV!=="production"&&(n.displayName="RouterContext")}(jr)),jr}var wr={},Pi;function ru(){return Pi||(Pi=1,function(e){"use client";Object.defineProperty(e,"__esModule",{value:!0});function t(l,f){for(var p in f)Object.defineProperty(l,p,{enumerable:!0,get:f[p]})}t(e,{CacheStates:function(){return o},AppRouterContext:function(){return i},LayoutRouterContext:function(){return s},GlobalLayoutRouterContext:function(){return c},TemplateContext:function(){return u}});const n=Re._(C);var o;(function(l){l.LAZY_INITIALIZED="LAZYINITIALIZED",l.DATA_FETCH="DATAFETCH",l.READY="READY"})(o||(o={}));const i=n.default.createContext(null),s=n.default.createContext(null),c=n.default.createContext(null),u=n.default.createContext(null);process.env.NODE_ENV!=="production"&&(i.displayName="AppRouterContext",s.displayName="LayoutRouterContext",c.displayName="GlobalLayoutRouterContext",u.displayName="TemplateContext")}(wr)),wr}var Pt={exports:{}},It={exports:{}},Ii;function nu(){return Ii||(Ii=1,function(e,t){Object.defineProperty(t,"__esModule",{value:!0});function r(i,s){for(var c in s)Object.defineProperty(i,c,{enumerable:!0,get:s[c]})}r(t,{requestIdleCallback:function(){return n},cancelIdleCallback:function(){return o}});const n=typeof self<"u"&&self.requestIdleCallback&&self.requestIdleCallback.bind(window)||function(i){let s=Date.now();return self.setTimeout(function(){i({didTimeout:!1,timeRemaining:function(){return Math.max(0,50-(Date.now()-s))}})},1)},o=typeof self<"u"&&self.cancelIdleCallback&&self.cancelIdleCallback.bind(window)||function(i){return clearTimeout(i)};(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}var Ni;function Ff(){return Ni||(Ni=1,function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"useIntersection",{enumerable:!0,get:function(){return l}});const r=C,n=nu(),o=typeof IntersectionObserver=="function",i=new Map,s=[];function c(f){const p={root:f.root||null,margin:f.rootMargin||""},d=s.find(g=>g.root===p.root&&g.margin===p.margin);let m;if(d&&(m=i.get(d),m))return m;const h=new Map,y=new IntersectionObserver(g=>{g.forEach(b=>{const E=h.get(b.target),_=b.isIntersecting||b.intersectionRatio>0;E&&_&&E(_)})},f);return m={id:p,observer:y,elements:h},s.push(p),i.set(p,m),m}function u(f,p,d){const{id:m,observer:h,elements:y}=c(d);return y.set(f,p),h.observe(f),function(){if(y.delete(f),h.unobserve(f),y.size===0){h.disconnect(),i.delete(m);const b=s.findIndex(E=>E.root===m.root&&E.margin===m.margin);b>-1&&s.splice(b,1)}}}function l(f){let{rootRef:p,rootMargin:d,disabled:m}=f;const h=m||!o,[y,g]=(0,r.useState)(!1),b=(0,r.useRef)(null),E=(0,r.useCallback)(R=>{b.current=R},[]);(0,r.useEffect)(()=>{if(o){if(h||y)return;const R=b.current;if(R&&R.tagName)return u(R,j=>j&&g(j),{root:p==null?void 0:p.current,rootMargin:d})}else if(!y){const R=(0,n.requestIdleCallback)(()=>g(!0));return()=>(0,n.cancelIdleCallback)(R)}},[h,d,p,y,b.current]);const _=(0,r.useCallback)(()=>{g(!1)},[]);return[E,y,_]}(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)}(Pt,Pt.exports)),Pt.exports}var Nt={exports:{}},Ot={exports:{}},Pr={},Oi;function zf(){return Oi||(Oi=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"normalizeLocalePath",{enumerable:!0,get:function(){return t}});function t(r,n){let o;const i=r.split("/");return(n||[]).some(s=>i[1]&&i[1].toLowerCase()===s.toLowerCase()?(o=s,i.splice(1,1),r=i.join("/")||"/",!0):!1),{pathname:r,detectedLocale:o}}}(Pr)),Pr}var Ti;function Uf(){return Ti||(Ti=1,function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"normalizeLocalePath",{enumerable:!0,get:function(){return r}});const r=(n,o)=>process.env.__NEXT_I18N_SUPPORT?zf().normalizeLocalePath(n,o):{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)}(Ot,Ot.exports)),Ot.exports}var Tt={exports:{}},Ir={},Mi;function Gf(){return Mi||(Mi=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"detectDomainLocale",{enumerable:!0,get:function(){return t}});function t(r,n,o){if(r){o&&(o=o.toLowerCase());for(const c of r){var i,s;const u=(i=c.domain)==null?void 0:i.split(":")[0].toLowerCase();if(n===u||o===c.defaultLocale.toLowerCase()||(s=c.locales)!=null&&s.some(l=>l.toLowerCase()===o))return c}}}}(Ir)),Ir}var ki;function Wf(){return ki||(ki=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,o=new Array(n),i=0;i<n;i++)o[i]=arguments[i];if(process.env.__NEXT_I18N_SUPPORT)return Gf().detectDomainLocale(...o)};(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 Li;function Vf(){return Li||(Li=1,function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"getDomainLocale",{enumerable:!0,get:function(){return o}});const r=Jt(),n=process.env.__NEXT_ROUTER_BASEPATH||"";function o(i,s,c,u){if(process.env.__NEXT_I18N_SUPPORT){const l=Uf().normalizeLocalePath,f=Wf().detectDomainLocale,p=s||l(i,c).detectedLocale,d=f(u,void 0,p);if(d){const m="http"+(d.http?"":"s")+"://",h=p===d.defaultLocale?"":"/"+p;return""+m+d.domain+(0,r.normalizePathTrailingSlash)(""+n+h+i)}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 Mt={exports:{}},Di;function Kf(){return Di||(Di=1,function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"addBasePath",{enumerable:!0,get:function(){return i}});const r=eu(),n=Jt(),o=process.env.__NEXT_ROUTER_BASEPATH||"";function i(s,c){return(0,n.normalizePathTrailingSlash)(process.env.__NEXT_MANUAL_CLIENT_BASE_PATH&&!c?s:(0,r.addPathPrefix)(s,o))}(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)}(Mt,Mt.exports)),Mt.exports}var kt={exports:{}},$i;function Xf(){return $i||($i=1,function(e,t){Object.defineProperty(t,"__esModule",{value:!0});function r(p,d){for(var m in d)Object.defineProperty(p,m,{enumerable:!0,get:d[m]})}r(t,{PrefetchKind:function(){return f},ACTION_REFRESH:function(){return n},ACTION_NAVIGATE:function(){return o},ACTION_RESTORE:function(){return i},ACTION_SERVER_PATCH:function(){return s},ACTION_PREFETCH:function(){return c},ACTION_FAST_REFRESH:function(){return u},ACTION_SERVER_ACTION:function(){return l}});const n="refresh",o="navigate",i="restore",s="server-patch",c="prefetch",u="fast-refresh",l="server-action";var f;(function(p){p.AUTO="auto",p.FULL="full",p.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)}(kt,kt.exports)),kt.exports}(function(e,t){"use client";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return S}});const n=Re._(C),o=Bf(),i=Jc(),s=Qc(),c=Zt(),u=Hf(),l=tu(),f=ru(),p=Ff(),d=Vf(),m=Kf(),h=Xf(),y=new Set;function g(j,x,P,L,A,O){if(typeof window>"u"||!O&&!(0,i.isLocalURL)(x))return;if(!L.bypassPrefetchedCheck){const D=typeof L.locale<"u"?L.locale:"locale"in j?j.locale:void 0,w=x+"%"+P+"%"+D;if(y.has(w))return;y.add(w)}const N=O?j.prefetch(x,A):j.prefetch(x,P,L);Promise.resolve(N).catch(D=>{if(process.env.NODE_ENV!=="production")throw D})}function b(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 E(j,x,P,L,A,O,N,D,w,q){const{nodeName:z}=j.currentTarget;if(z.toUpperCase()==="A"&&(b(j)||!w&&!(0,i.isLocalURL)(P)))return;j.preventDefault();const K=()=>{const W=N??!0;"beforePopState"in x?x[A?"replace":"push"](P,L,{shallow:O,locale:D,scroll:W}):x[A?"replace":"push"](L||P,{forceOptimisticNavigation:!q,scroll:W})};w?n.default.startTransition(K):K()}function _(j){return typeof j=="string"?j:(0,s.formatUrl)(j)}const S=n.default.forwardRef(function(x,P){let L;const{href:A,as:O,children:N,prefetch:D=null,passHref:w,replace:q,shallow:z,scroll:U,locale:K,onClick:W,onMouseEnter:F,onTouchStart:ne,legacyBehavior:I=!1,...M}=x;L=N,I&&(typeof L=="string"||typeof L=="number")&&(L=n.default.createElement("a",null,L));const B=n.default.useContext(l.RouterContext),X=n.default.useContext(f.AppRouterContext),te=B??X,Z=!B,k=D!==!1,J=D===null?h.PrefetchKind.AUTO:h.PrefetchKind.FULL;if(process.env.NODE_ENV!=="production"){let ie=function(oe){return new Error("Failed prop type: The prop `"+oe.key+"` expects a "+oe.expected+" in `<Link>`, but got `"+oe.actual+"` instead."+(typeof window<"u"?`
|
|
2
|
+
Open your browser's console to view the Component stack trace.`:""))};Object.keys({href:!0}).forEach(oe=>{if(oe==="href"&&(x[oe]==null||typeof x[oe]!="string"&&typeof x[oe]!="object"))throw ie({key:oe,expected:"`string` or `object`",actual:x[oe]===null?"null":typeof x[oe]})}),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(oe=>{const V=typeof x[oe];if(oe==="as"){if(x[oe]&&V!=="string"&&V!=="object")throw ie({key:oe,expected:"`string` or `object`",actual:V})}else if(oe==="locale"){if(x[oe]&&V!=="string")throw ie({key:oe,expected:"`string`",actual:V})}else if(oe==="onClick"||oe==="onMouseEnter"||oe==="onTouchStart"){if(x[oe]&&V!=="function")throw ie({key:oe,expected:"`function`",actual:V})}else if((oe==="replace"||oe==="scroll"||oe==="shallow"||oe==="passHref"||oe==="prefetch"||oe==="legacyBehavior")&&x[oe]!=null&&V!=="boolean")throw ie({key:oe,expected:"`boolean`",actual:V})});const Q=n.default.useRef(!1);x.prefetch&&!Q.current&&!Z&&(Q.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"&&Z&&!O){let ie;if(typeof A=="string"?ie=A:typeof A=="object"&&typeof A.pathname=="string"&&(ie=A.pathname),ie&&ie.split("/").some(G=>G.startsWith("[")&&G.endsWith("]")))throw new Error("Dynamic href `"+ie+"` 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:Y,as:ee}=n.default.useMemo(()=>{if(!B){const G=_(A);return{href:G,as:O?_(O):G}}const[ie,me]=(0,o.resolveHref)(B,A,!0);return{href:ie,as:O?(0,o.resolveHref)(B,O):me||ie}},[B,A,O]),$=n.default.useRef(Y),T=n.default.useRef(ee);let re;if(I)if(process.env.NODE_ENV==="development"){W&&console.warn('"onClick" was passed to <Link> with `href` of `'+A+'` but "legacyBehavior" was set. The legacy behavior requires onClick be set on the child of next/link'),F&&console.warn('"onMouseEnter" was passed to <Link> with `href` of `'+A+'` but "legacyBehavior" was set. The legacy behavior requires onMouseEnter be set on the child of next/link');try{re=n.default.Children.only(L)}catch{throw L?new Error("Multiple children were passed to <Link> with `href` of `"+A+"` 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 `"+A+"` but one child is required https://nextjs.org/docs/messages/link-no-children")}}else re=n.default.Children.only(L);else if(process.env.NODE_ENV==="development"&&(L==null?void 0:L.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 se=I?re&&typeof re=="object"&&re.ref:P,[ce,ue,ae]=(0,p.useIntersection)({rootMargin:"200px"}),H=n.default.useCallback(ie=>{(T.current!==ee||$.current!==Y)&&(ae(),T.current=ee,$.current=Y),ce(ie),se&&(typeof se=="function"?se(ie):typeof se=="object"&&(se.current=ie))},[ee,se,Y,ae,ce]);n.default.useEffect(()=>{process.env.NODE_ENV==="production"&&te&&(!ue||!k||g(te,Y,ee,{locale:K},{kind:J},Z))},[ee,Y,ue,K,k,B==null?void 0:B.locale,te,Z,J]);const he={ref:H,onClick(ie){if(process.env.NODE_ENV!=="production"&&!ie)throw new Error('Component rendered inside next/link has to pass click event to "onClick" prop.');!I&&typeof W=="function"&&W(ie),I&&re.props&&typeof re.props.onClick=="function"&&re.props.onClick(ie),te&&(ie.defaultPrevented||E(ie,te,Y,ee,q,z,U,K,Z,k))},onMouseEnter(ie){!I&&typeof F=="function"&&F(ie),I&&re.props&&typeof re.props.onMouseEnter=="function"&&re.props.onMouseEnter(ie),te&&((!k||process.env.NODE_ENV==="development")&&Z||g(te,Y,ee,{locale:K,priority:!0,bypassPrefetchedCheck:!0},{kind:J},Z))},onTouchStart(ie){!I&&typeof ne=="function"&&ne(ie),I&&re.props&&typeof re.props.onTouchStart=="function"&&re.props.onTouchStart(ie),te&&(!k&&Z||g(te,Y,ee,{locale:K,priority:!0,bypassPrefetchedCheck:!0},{kind:J},Z))}};if((0,c.isAbsoluteUrl)(ee))he.href=ee;else if(!I||w||re.type==="a"&&!("href"in re.props)){const ie=typeof K<"u"?K:B==null?void 0:B.locale,me=(B==null?void 0:B.isLocaleDomain)&&(0,d.getDomainLocale)(ee,ie,B==null?void 0:B.locales,B==null?void 0:B.domainLocales);he.href=me||(0,m.addBasePath)((0,u.addLocale)(ee,ie,B==null?void 0:B.defaultLocale))}return I?n.default.cloneElement(re,he):n.default.createElement("a",{...M,...he},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)})(to,to.exports);var Qf=to.exports,Yf=Qf;const Ne=Yt(Yf),qo={"btn-login":"_btn-login_yas63_12","btn-header":"_btn-header_yas63_22","header-animation":"_header-animation_yas63_35"},Ho=({id:e})=>{const{setIsOpen:t,cartStore:{items:r}}=Be(),{handleSelectContent:n}=ge(),{CONSTANTS:o}=be(),i=r.reduce((s,c)=>s+(c.quantity??0),0);return a.jsx(v.Header.SupportItem,{onClick:()=>{t(!0),n({content:"header:minicart"})},id:e,children:a.jsxs(v.Badge.AutoPositioner,{children:[a.jsx(v.Badge.Count,{count:i,size:"medium",variant:"primary",style:{backgroundColor:"black",display:i>0?"flex":"none"}}),a.jsx(v.Icon,{name:o.header.ICONS.bag,size:"medium"})]})})};Ho.displayName="Header.Bag";const yt=({children:e,href:t,...r})=>t&&t!=="#"?a.jsx(Ne,{href:t.startsWith("/")?t:`/${t}`,...r,children:e}):e,ou=()=>{const{headerData:e}=be(),{handleSelectContent:t}=ge(),{reset:r,updateValue:n}=Ue(),o=i=>{i?n(i):r()};return a.jsx(v.Header.Categories,{children:Array.isArray(e.categories)&&e.categories.map((i,s)=>a.jsx(yt,{href:i.link,onMouseEnter:()=>o(i.submenuId),onFocus:()=>o(i.submenuId),children:a.jsx(v.Header.CategoryItem,{className:qo["btn-header"],value:i.submenuId??null,adornment:{start:a.jsx(v.Icon,{name:i.iconStart}),end:a.jsx(v.Icon,{name:i.iconEnd})},style:{textWrap:"nowrap",gap:"0"},onClick:()=>{t({content:`header:${i.label}`})},children:i.label})},`category-${i.label}-${s}`))})};ou.displayName="Header.Categories";function Zf({SearchModal:e}){const{handleSelectContent:t}=ge(),{CONSTANTS:r}=be(),{setValue:n}=Io();return a.jsxs(a.Fragment,{children:[a.jsx(v.Header.SupportItem,{onClick:()=>{n(!0),t({content:"header:search"})},children:a.jsx(v.Icon,{name:r.header.ICONS.search,size:"medium"})}),a.jsx(e,{recommendations:!1,trends:!0})]})}const Jf={"menu-subcategories-container":"_menu-subcategories-container_a93cr_1"},ep={"observer-wrapper":"_observer-wrapper_r43gk_1"};function tp(e,t,r){const[n,o]=C.useState(!1),{threshold:i}=r||{};return C.useEffect(()=>{if(!e.current)return()=>null;let s=null;const c=new IntersectionObserver(([u])=>{if(r!=null&&r.delay){s&&clearTimeout(s),s=setTimeout(()=>{o(u.isIntersecting),t&&u.isIntersecting&&c.unobserve(e.current)},r.delay);return}o(u.isIntersecting),t&&u.isIntersecting&&c.unobserve(e.current)},{threshold:i||1});return c.observe(e.current),()=>{c.disconnect()}},[e]),n}const er=({children:e,eventData:t,observerOptions:r,callBackWhenVisible:n,stopOnIntersection:o=!0,className:i,...s})=>{const c=C.useRef(null),u=tp(c,o,r),{sendDataLayerEvent:l}=ge();return C.useEffect(()=>{u&&(typeof n=="function"&&n(),t&&l({...t}))},[u]),a.jsx("div",{...s,ref:c,className:v.helpers.classNameConcat(ep["observer-wrapper"],i),children:e})},Fo=({thumbnails:e,category:t,isMobile:r=!0,callBack:n})=>{const{handleSelectPromotionEvent:o}=ge(),i=50/e.length;return a.jsx("div",{className:Jf["menu-subcategories-container"],children:e.map((s,c)=>{const u=r?s.srcMobile:s.srcDesk;if(!u)return null;const l={creative_name:"banner-menu",creative_slot:`banner-menu:${t}:${c+1}`,promotion_id:u,promotion_name:s.promotion_name};return a.jsx(er,{eventData:{functionKey:"readyEvents",data:{event:"view_promotion",readyData:{ecommerce:{...l}}}},observerOptions:{delay:1e3},children:a.jsxs(Ne,{href:s.link??"#",onClick:()=>{typeof n=="function"&&n(),o({updatePromotionRef:!0,promotion:l})},children:[a.jsx($e.Image,{src:u,alt:s.label??u,width:500,height:500,sizes:`(max-width: 768px) 100vw, (max-width: 1023px) 75vw, ${i}vw`}),s.label&&a.jsx("p",{children:s.label})]})},`thumb-${s.label}-${c}`)})})};Fo.displayName="Menu.Thumbnail";const ro={"menu-desktop":"_menu-desktop_1b799_1","menu-categories":"_menu-categories_1b799_12"},rp="_link_w24h0_1",np="_wrapper_w24h0_98",op="_text_w24h0_106",Nr={link:rp,wrapper:np,text:op},ze=({children:e,adornments:t,className:r,disableUnderline:n,href:o,mode:i,size:s,title:c,onClick:u,disablePadding:l,...f})=>{const p=v.helpers.ValidateProp({fieldTypes:tt.SizesSmallExtended,property:s,fallback:"medium"}),d=v.helpers.ValidateProp({fieldTypes:tt.Mode,property:i,fallback:"default"});return a.jsx(Ne,{...f,className:v.helpers.classNameConcat(Nr.link,r),href:o&&o.length>0?o:"#","data-size":p,"data-variant":d,title:c||"NextLink","data-disable-underline":n??!1,"data-disable-padding":l??!0,children:a.jsxs("div",{className:Nr.wrapper,onClick:u,children:[t==null?void 0:t.start,a.jsx("p",{className:Nr.text,"data-size":p,children:e}),t==null?void 0:t.end]})})},iu=({children:e,dividerOnRight:t=!0,subMenu:r,...n})=>{var u;const{router:o}=Pe(),{reset:i}=Ue(),{handleSelectContent:s}=ge(),{CONSTANTS:c}=be();return a.jsxs("div",{...n,className:ro["menu-categories"],children:[(u=r==null?void 0:r.subCategories)==null?void 0:u.map((l,f)=>{var m,h,y;const p=l.listCollapseDesk&&!((m=l.see_all)!=null&&m.link)?{expandAfterRowsQty:l.rowsToShowDesk}:{},d=l.listCollapseDesk&&!((h=l.see_all)!=null&&h.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:a.jsx(v.Icon,{name:c.header.ICONS.arrow_right,size:"small"})}};return a.jsxs(v.ComponentList.Structure,{children:[a.jsx(yt,{href:l.linkLabel,title:l.label,onClick:()=>{l.linkLabel&&(i(),s({content:`menu:${l.label??""}:${r.label??""}`}))},children:a.jsx(v.TextStructure.Root,{children:a.jsx(v.TextStructure.DivWrapper,{children:a.jsx("h2",{children:l.label})})})}),a.jsx(v.ComponentList.List,{columns:1,...p,className:ro["submenu-categories"],children:l.items.map((g,b)=>a.jsx(v.ComponentList.ListItem,{id:`list-item-${g.label}-${b}`,children:a.jsx(ze,{href:g.link??"#",size:"x-small",title:g.label??"",disableUnderline:!0,disablePadding:!0,onClick:()=>{i(),s({content:`menu:${l.label??""}:${g.label??""}:${r.label??""}`})},children:g.label})},`list-item-${g.label}-${b}`))}),((y=l.see_all)==null?void 0:y.link)&&a.jsx(v.ComponentList.Support,{...d,size:"small",onClick:()=>{var g;(g=l.see_all)!=null&&g.link&&(i(),s({content:`menu:${l.label??""}:${r.label}`}),o.push(l.see_all.link))},children:l.see_all.link&&l.see_all.label})]},`list-${l.label}-${f}`)}),t&&a.jsx(v.Utils.Divider,{size:"small",direction:"vertical"})]})};iu.displayName="Menu.Categories";const su=({children:e,dividerOnBottom:t=!0,...r})=>{const{CONSTANTS:n}=be();return a.jsxs(a.Fragment,{children:[a.jsx("div",{...r,className:ro["menu-desktop"],style:{...r.style,justifyContent:n.header.ALIGNMENT_MENU},children:e}),t&&a.jsx(v.Utils.Divider,{size:"small"})]})};su.displayName="Menu.MenuRoot";const Or={Root:su,Categories:iu,Thumbnail:Fo},au=()=>{const{headerData:e,CONSTANTS:t}=be(),r=Qt(),{reset:n}=Ue();return a.jsx(v.Header.SubMenu,{children:Array.isArray(e.subMenus)&&e.subMenus.map((o,i)=>{const{thumbnails:s,label:c,id:u}=o,l=u===r,f=s==null?void 0:s.some(p=>!!p.srcDesk);return a.jsxs(Or.Root,{id:u,style:l?{display:"flex",zIndex:t.header.Z_INDEX_WAR.menu_desktop}:{display:"none"},dividerOnBottom:l,children:[a.jsx(Or.Categories,{dividerOnRight:!!f,subMenu:o}),Array.isArray(s)&&a.jsx(Or.Thumbnail,{thumbnails:s,isMobile:!1,category:c,callBack:n})]},`submenu-${u}-${i}`)})})};au.displayName="Header.SubMenu";const cu=()=>{const{handleSelectContent:e}=ge(),{CONSTANTS:t}=be();return a.jsx(Ne,{href:"/favoritos",children:a.jsx(v.Header.SupportItem,{onClick:()=>e({content:"header:wishlist"}),children:a.jsx(v.Icon,{name:t.header.ICONS.favorite_false,size:"medium"})})})};cu.displayName="Header.WishList";const uu=({SearchModal:e})=>{const{CONSTANTS:t,userMenuDesktopRef:r}=be(),{handleSelectContent:n}=ge(),{reset:o}=Ue(),{setValue:i}=ht();return a.jsxs(a.Fragment,{children:[a.jsxs(v.Header.Wrapper,{children:[a.jsx(v.Header.Logo,{style:{width:"100%"},children:a.jsx(Ne,{href:"/",onMouseEnter:o,children:a.jsx(v.Icon,{name:t.header.ICONS.logo,size:"x-large",onClick:()=>{n({content:"header:logo"})}})})}),a.jsx(ou,{}),a.jsxs(v.Header.Support,{onMouseEnter:o,style:{justifyContent:"flex-end"},children:[a.jsx(Zf,{SearchModal:e}),a.jsx(v.Header.SupportItem,{onClick:()=>{i(!0),n({content:"header:user_menu"})},className:qo["btn-login"],innerRef:r,children:a.jsx(v.Icon,{name:t.header.ICONS.person,size:"medium"})}),a.jsx(cu,{}),a.jsx(Ho,{id:"cart-button"})]})]}),a.jsx(au,{})]})};uu.displayName="Header.HeaderDesktopWrapper";const ip="_divider_1lexj_199",ve={"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:ip,"menu-navigationbar-item":"_menu-navigationbar-item_1lexj_206","menu-categories-textstructure-modifier":"_menu-categories-textstructure-modifier_1lexj_210"},lu=({children:e,mobileBannerAlt:t,mobileBannerSrc:r,onClick:n,textColor:o,...i})=>a.jsx("button",{onClick:n,className:ve["menu-categories-btn"],children:r?a.jsxs(v.Banner.Container,{...i,className:ve["menu-body-banner-container-modifier"],children:[a.jsx(v.Banner.ImageWrapper,{style:{width:"100%"},children:a.jsx($e.Image,{src:r,alt:t??r,className:ve["menu-categories__banner"],width:343,height:128,unoptimized:!0})}),a.jsx(v.Banner.Slot,{verticalAlignment:"center",horizontalAlignment:"start",children:a.jsx(v.TextStructure.Root,{children:a.jsx(v.TextStructure.DivWrapper,{className:ve["menu-categories-textstructure-modifier"],children:a.jsx("h2",{className:"typography-style-body-xs",style:o?{color:o}:{},children:e})})})})]}):a.jsx("h2",{...i,children:e})});lu.displayName="Menu.MenuCategories";const du=({children:e,link:t})=>{const{reset:r}=Qe();return t?a.jsx(Ne,{href:t??"#",onClick:r,children:e}):e};du.displayName="Menu.MenuCategoriesWrapper";const fu=({subcategory:e,submenuLabel:t})=>{var u,l,f;const{router:r}=Pe(),{reset:n}=Qe(),{handleSelectContent:o}=ge(),{CONSTANTS:i}=be(),s=e.listCollapseMobile&&!((u=e.see_all)!=null&&u.link)?{expandAfterRowsQty:e.rowsToShowMobile}:{},c=e.listCollapseMobile&&!((l=e.see_all)!=null&&l.link)?{expansivesAdornments:{open:i.header.ICONS.add,close:i.header.ICONS.minus},expansivesLabels:{open:i.header.COMPONENT_LIST.listExpandLabel,close:i.header.COMPONENT_LIST.listCollapseLabel},iconSize:"x-small"}:{adornment:{end:a.jsx(v.Icon,{name:i.header.ICONS.arrow_right,size:"small"})}};return a.jsxs(v.ComponentList.Structure,{className:ve["menu-submenu--component-list-modifier"],children:[a.jsx(yt,{href:e.linkLabel,title:e.label,onClick:()=>{n(),o({content:`menu:${e.label??""}:${t}`})},children:a.jsx(v.TextStructure.Root,{children:a.jsx(v.TextStructure.DivWrapper,{children:a.jsx("h2",{className:"typography-style-body-sm-strong",children:e.label})})})}),a.jsx(v.ComponentList.List,{columns:1,...s,className:ve["submenu-categories"],children:e.items.map((p,d)=>a.jsx(v.ComponentList.ListItem,{id:`list-item-${p.label}-${d}`,divider:!0,children:a.jsx(ze,{href:p.link??"#",size:"x-small",title:p.label??"",disableUnderline:!0,onClick:()=>{n(),o({content:`menu:${e.label??""}:${p.label}:${t}`})},children:p.label})},`list-item-${p.label}-${d}`))}),((f=e.see_all)==null?void 0:f.link)&&a.jsx(v.ComponentList.Support,{...c,size:"small",onClick:()=>{var p;n(),o({content:`menu:${e.label??""}:${t}`}),(p=e.see_all)!=null&&p.link&&r.push(e.see_all.link)},children:e.see_all.link&&e.see_all.label})]})};fu.displayName="Menu.SubMenuSubCategory";const pu=({submenu:e})=>{var i;const t=Qt(),{handleCloseSubMenu:r}=gt(),{reset:n}=Ue(),{CONSTANTS:o}=be();return a.jsxs("div",{className:ve["menu-submenu--item"],style:{display:t===e.id?"flex":"none"},children:[a.jsx(v.TextStructure.Root,{adornment:{start:a.jsx(v.Icon,{name:o.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&&a.jsx(v.TextStructure.DivWrapper,{style:{position:"absolute",left:"50%",transform:"translate(-50%)"},children:a.jsx("h2",{className:"typography-style-body-md-strong",children:e.label})})}),a.jsx("div",{className:ve["menu-submenu--thumbnails"],children:Array.isArray(e.thumbnails)&&a.jsx(Fo,{thumbnails:e.thumbnails,isMobile:!0,category:e.label,callBack:n})}),(i=e==null?void 0:e.subCategories)==null?void 0:i.map((s,c)=>a.jsx(fu,{subcategory:s,submenuLabel:e.label},`list-${s.label}-${c}`))]})};pu.displayName="Menu.SubMenuItem";const mu=()=>{const{headerData:e}=be(),t=Qt(),{reset:r}=Ue(),{bodyRef:n}=gt();return a.jsx(v.Modal.RootWithoutPortal,{isOpen:!!t,setIsOpen:r,parent:n.current,variant:"sideLeft",style:{position:"absolute",width:"100%"},className:ve["menu-submenu-modal-modifiier"],children:a.jsx("div",{className:ve["menu-submenu"],children:e.subMenus.map((o,i)=>a.jsx(pu,{submenu:o},`submenu-${o.id}-${i}`))})})};mu.displayName="Menu.SubMenu";const hu=({className:e,...t})=>{const{headerData:r}=be(),{setValue:n}=Ue(),{bodyRef:o}=gt(),{handleSelectContent:i}=ge();return a.jsxs("div",{...t,ref:o,id:"menu-body",className:ve["menu-body"],children:[a.jsx("div",{className:ve["menu-categories-container"],children:r.categories.map((s,c)=>{const u=s.submenuId?{}:{"data-close":!0};return a.jsx(du,{link:s.submenuId?null:s.link,children:a.jsx(lu,{onClick:()=>{n(s.submenuId??null),i({content:`menu:${s.label}`})},mobileBannerSrc:s.mobileBannerSrc,mobileBannerAlt:s.mobileBannerAlt,textColor:s.textColor,...u,children:s.mobileBannerAlt})},`menu-categories-${c}`)})}),a.jsx(mu,{})]})};hu.displayName="Menu.MenuBody";const gu=({title:e,subtitle:t})=>{const{CONSTANTS:r}=be();return a.jsxs("div",{className:ve["menu-header-wrapper"],style:t?{alignItems:"start"}:{alignItems:"center"},children:[(e||t)&&a.jsx(v.TextStructure.Root,{children:a.jsxs(v.TextStructure.DivWrapper,{children:[e&&a.jsx("h2",{className:"typography-style-body-md",children:e}),t&&a.jsx("h3",{children:t})]})}),a.jsx(v.Button,{adornment:{end:a.jsx(v.Icon,{name:r.header.ICONS.close})},variant:"tertiary",className:ve["menu-close"],"data-close":!0})]})};gu.displayName="Menu.MenuHeaderWrapper";const yu=({navigationLinks:e})=>{const{reset:t}=Qe(),{handleSelectContent:r}=ge();return e?a.jsx("nav",{className:ve["menu-header-navlinks"],children:e.map((n,o)=>a.jsx(ze,{href:n.link??"#",adornments:{start:n.iconStart&&a.jsx(v.Icon,{name:n.iconStart}),end:n.iconEnd&&a.jsx(v.Icon,{name:n.iconEnd})},onClick:()=>{t(),r({content:`menu:navigationlinks-${n.label}`})},children:n.label},o))}):null};yu.displayName="Menu.MenuHeaderNavLinks";const _u=()=>{const{headerData:e}=be();return a.jsxs("div",{className:ve["menu-header-container"],children:[a.jsx(gu,{title:e.title,subtitle:e.subtitle}),a.jsx(yu,{navigationLinks:e.navigationLinks})]})};_u.displayName="Menu.MenuHeaderContainer";const vu=({children:e})=>{const{documentBodyRef:t}=gt(),{CONSTANTS:r}=be(),n=Po(),{setValue:o}=Qe();return a.jsx(v.Modal.RootWithoutPortal,{isOpen:n,setIsOpen:o,parent:t.current,variant:"sideLeft",style:{position:"fixed",zIndex:r.header.Z_INDEX_WAR.menu_mobile,bottom:"unset",top:0,overflowY:"hidden"},className:ve["modal-modifier"],children:a.jsx("div",{className:ve["menu-mobile"],children:e})})};vu.displayName="Menu.MenuRoot";const Gt=({children:e,...t})=>a.jsxs(a.Fragment,{children:[a.jsx(v.Button,{...t,className:ve["menu-navigationbar-item"],children:e}),a.jsx(v.Utils.Divider,{direction:"vertical",size:"small",className:ve.divider})]});Gt.displayName="Menu.NavigationBarItem";const bu=()=>{const{setIsOpen:e}=Be(),{reset:t}=Qe(),{setValue:r}=ht(),{handleSelectContent:n}=ge(),{CONSTANTS:o}=be(),{router:i}=Pe();return a.jsxs(v.Card,{id:"menu-navigationbar",shadow:!0,className:ve["menu-navigationbar"],style:{zIndex:o.header.Z_INDEX_WAR.menu_mobile_navigation_bar},children:[a.jsx(Gt,{size:"small",variant:"tertiary",iconNameStart:o.header.MENU_INFO.login.button_icon,onClick:()=>{t(),r(!0),n({content:"menu:user_menu"})},children:o.header.MENU_INFO.login.button_text}),a.jsx(Gt,{size:"small",variant:"tertiary",iconNameStart:o.header.MENU_INFO.bag.button_icon,onClick:()=>{t(),e(!0),n({content:"menu:minicart"})},children:o.header.MENU_INFO.bag.button_text}),a.jsx(Gt,{size:"small",variant:"tertiary",iconNameStart:o.header.MENU_INFO.store.button_icon,onClick:()=>{i.push("/institucional/lojas"),t(),n({content:"menu:store"})},children:o.header.MENU_INFO.store.button_text})]})};bu.displayName="Menu.NavigationBar";const Lt={Root:vu,NavigationBar:bu,Header:_u,Body:hu},xu=({SearchModal:e})=>{const t=C.useRef(null),{CONSTANTS:r,userMenuMobileRef:n}=be(),{MENU_NAVIGATION_BAR_ALLOWED:o,ICONS:i,MENU_MOB_BTN_SIDE:s="right"}=r.header,{handleSelectContent:c}=ge(),{setValue:u}=Io(),{setValue:l}=Qe(),{setValue:f}=ht();return a.jsxs(a.Fragment,{children:[a.jsxs(v.Header.Wrapper,{children:[s==="left"&&a.jsx(v.Header.SupportItem,{onClick:()=>l(!0),innerRef:t,children:a.jsx(v.Icon,{name:i.menu,size:"medium"})}),a.jsx(v.Header.Logo,{style:{width:"100%",justifyContent:"center"},children:a.jsx(Ne,{href:"/",children:a.jsx(v.Icon,{name:i.logo,size:"x-large",onClick:()=>{c({content:"header:logo"})}})})}),a.jsxs(v.Header.Support,{children:[a.jsx(v.Header.SupportItem,{onClick:()=>{u(!0),c({content:"header:search"})},children:a.jsx(v.Icon,{name:i.search,size:"medium"})}),a.jsx(v.Header.SupportItem,{onClick:()=>{f(!0),c({content:"header:user_menu"})},innerRef:n,children:a.jsx(v.Icon,{name:i.person,size:"medium"})}),a.jsx(Ho,{}),s==="right"&&a.jsx(v.Header.SupportItem,{onClick:()=>l(!0),innerRef:t,children:a.jsx(v.Icon,{name:i.menu,size:"medium"})})]})]}),a.jsx(e,{recommendations:!1,trends:!0}),a.jsx(dc,{children:a.jsxs(Lt.Root,{children:[a.jsx(Lt.Header,{}),a.jsx(Lt.Body,{}),o?a.jsx(Lt.NavigationBar,{}):a.jsx(a.Fragment,{})]})})]})};xu.displayName="Header.HeaderMobileWrapper";const sp="_root_wvekm_126",ke={"user-menu--credits":"_user-menu--credits_wvekm_1","user-menu--content":"_user-menu--content_wvekm_10","user-menu--login":"_user-menu--login_wvekm_30","user-menu--login--content":"_user-menu--login--content_wvekm_37","user-menu--menu":"_user-menu--menu_wvekm_64","user-menu--tooltip":"_user-menu--tooltip_wvekm_93","tooltip-modifier":"_tooltip-modifier_wvekm_104","modal-controls-modifier":"_modal-controls-modifier_wvekm_109","modal-header-modifier":"_modal-header-modifier_wvekm_117",root:sp},Cu=({className:e,children:t,...r})=>a.jsx("div",{...r,className:v.helpers.classNameConcat(ke["user-menu--content"],e),children:t});Cu.displayName="UserMenu.Content";var Su=(e=>(e.Account="account",e))(Su||{});const Au=({className:e,cashBack:t,credits:r,link:n,total:o,...i})=>{const s=t?Me(t):void 0,c=r?Me(r):void 0,u=o?Me(o):void 0;return a.jsx(v.Credits.Account,{...i,className:v.helpers.classNameConcat(ke["user-menu--credits"],e),icon:"wallet",showIcon:!0,cashBackValue:s,creditsValue:c,linkMore:n,totalValue:u,type:Su.Account})};Au.displayName="UserMenu.Credits";const Eu=({className:e,children:t,description:r,text:n,...o})=>{const{isMobile:i}=Se();return a.jsx("div",{...o,className:v.helpers.classNameConcat(ke["user-menu--login"],e),"data-mobile":i,children:a.jsxs("div",{className:ke["user-menu--login--content"],children:[a.jsx(v.TextStructure.Root,{children:a.jsxs(v.TextStructure.DivWrapper,{alignContent:"flex-start",alignItems:"flex-start",children:[a.jsx("h3",{className:"typography-style-body-lg-strong",children:n}),a.jsx("p",{children:r})]})}),t]})})};Eu.displayName="UserMenu.Login";const Ru=({className:e,isLogged:t,onLogoutClick:r,ICONS:n,storeConfig:o})=>{const{isMobile:i}=Se(),s=Rd({ICONS:n,storeConfig:o}).filter(c=>c.deviceShown==="both"||c.deviceShown===(i?"mobile":"desktop"));return a.jsxs("ul",{className:v.helpers.classNameConcat(ke["user-menu--menu"],e),children:[Array.isArray(s)&&s.map((c,u)=>a.jsx("li",{children:a.jsx(ze,{href:c.href??"#",size:"small",disableUnderline:!0,adornments:{start:a.jsx(v.Icon,{name:c.icon??"delete"})},children:c.label})},u)),t?a.jsx("li",{children:a.jsx(ze,{href:`${o.secureSubdomain}/api/vtexid/pub/logout?scope=mariafilo&returnUrl=${encodeURIComponent(`${o.storeUrl}`)}`,size:"small",disableUnderline:!0,onClick:r,adornments:{start:a.jsx(v.Icon,{name:Ed(n)})},children:Ad})}):a.jsx(a.Fragment,{})]})};Ru.displayName="UserMenu.Menu";const ap=e=>{const t=C.useRef(null),r=C.useCallback(i=>{t.current&&!t.current.contains(i.target)&&e()},[e]),n=C.useCallback(i=>{t.current&&!t.current.contains(i.target)&&e()},[e]),o=C.useCallback(i=>{i.key==="Escape"&&e()},[e]);return C.useEffect(()=>(document.addEventListener("mousedown",r),document.addEventListener("keydown",o),document.addEventListener("touchstart",n),()=>{document.removeEventListener("mousedown",r),document.removeEventListener("keydown",o),document.removeEventListener("touchstart",n)}),[r,o,n]),{ref:t}},cp=e=>{if(!e||typeof window>"u")return 0;const t=window.getComputedStyle(e);return parseInt(t.padding,10)},up=(e,t,r)=>{if(!(e instanceof HTMLElement)||!(t instanceof HTMLElement))return{left:0,top:0};const{height:n,left:o,top:i,width:s}=t.getBoundingClientRect(),c=e.getBoundingClientRect(),u=e!=null&&e.parentElement?cp(e==null?void 0:e.parentElement):0;return{left:o+s/2-(c.width+u*2),top:i+n+r}},ju=C.createContext({}),lp=({children:e,delay:t=600,gap:r=20,isOpen:n,setIsOpen:o,target:i,...s})=>{const c=C.useRef(null),[u,l]=C.useState(!1),[f,p]=C.useState({left:0,top:0}),{ref:d}=ap(()=>{l(!0),typeof window<"u"&&(c.current=window.setTimeout(()=>{o(!1),l(!1)},t))});return C.useEffect(()=>{if(i&&(d!=null&&d.current)){const{left:m,top:h}=up(d.current,i,r??0);p({left:m,top:h}),l(!1)}},[r,n,i,d]),a.jsx(ju.Provider,{value:C.useMemo(()=>({...s,...f,contentRef:d,isLeaving:u,isOpen:n,setIsOpen:o,setIsLeaving:l,target:i}),[s,f,d,u,n,o,l,i]),children:e})},wu=()=>{const e=C.useContext(ju);if(e===void 0)throw new Error("useUserMenuContext must be used within a UserMenuProvider");return e},Pu=({children:e,isMobile:t=!1,Z_INDEX_WAR:r})=>{const{isOpen:n,setIsOpen:o}=wu();return a.jsxs(v.Modal.Root,{"data-user":"user-menu--modal",isMobile:t??!1,isOpen:n,setIsOpen:o,variant:"sideBottom",className:ke["modal-root-modifier"],style:{zIndex:r.user_menu_mobile},children:[a.jsx(v.Modal.Header,{navigation:"top",className:ke["modal-header-modifier"],children:a.jsx(v.Modal.Controls,{navigation:"top",isMobile:!0,className:ke["modal-controls-modifier"]})}),a.jsx(v.Modal.Body,{children:e})]})};Pu.displayName="UserMenu.Modal";const Iu=({children:e,component:t,Z_INDEX_WAR:r,isMobile:n,...o})=>a.jsx(lp,{...o,className:ke.root,children:n?a.jsxs(a.Fragment,{children:[a.jsx(We.Modal,{Z_INDEX_WAR:r,children:t}),e]}):a.jsx(We.Tooltip,{component:t,style:{width:304,zIndex:r.user_menu},Z_INDEX_WAR:r,children:e})});Iu.displayName="UserMenu.Root";const Nu=({children:e,component:t,Z_INDEX_WAR:r,...n})=>{const{contentRef:o,left:i,isLeaving:s,isOpen:c,top:u}=wu();return a.jsx(v.Tooltip.Root,{arrow:"top-right",component:a.jsx("div",{...n,ref:o,children:t}),className:v.helpers.classNameConcat(ke["user-menu--tooltip"],ke["tooltip-modifier"]),isLeaving:s,isOpen:c,left:i,size:"medium",position:"top",top:u,style:{zIndex:r.user_menu},children:a.jsx("div",{className:ke["user-menu--tooltip"],children:e})})};Nu.displayName="UserMenu.Tooltip";const We={Credits:Au,Content:Cu,Login:Eu,Menu:Ru,Modal:Pu,Root:Iu,Tooltip:Nu},zo=()=>{var y,g,b;const e=Lo(),{isMobile:t}=Se(),{userMenuMobileRef:r,userMenuDesktopRef:n,CONSTANTS:{header:o},storeConfig:i}=be(),{ICONS:s,Z_INDEX_WAR:c,MENU_INFO:u}=o,l=nc(),{setValue:f}=ht(),p=()=>{window.location.href=`${i.secureSubdomain}/api/io/login?returnUrl=${encodeURIComponent(`${i.storeUrl}`)}`},d=!!((y=e.user)!=null&&y.userId),{cashback:m,credits:h}=C.useMemo(()=>{var E,_;return{credits:((E=e==null?void 0:e.getCurrentCredits())==null?void 0:E.credits)??0,cashback:((_=e==null?void 0:e.getCurrentCredits())==null?void 0:_.cashback)??0}},[e]);return a.jsx(We.Root,{component:a.jsxs(We.Content,{children:[a.jsx(We.Login,{description:wd(d),text:jd(d,((g=e==null?void 0:e.user)==null?void 0:g.firstName)??((b=e==null?void 0:e.user)==null?void 0:b.email)),children:!d&&a.jsx(v.Button,{size:"medium",variant:"quaternary",onClick:()=>p(),children:u.login.button_text})}),h+m&&d?a.jsx(We.Credits,{credits:h,cashBack:m,link:`${i.secureSubdomain}/account#/meus-creditos`,total:h+m}):a.jsx(a.Fragment,{}),a.jsx(v.Utils.Divider,{}),a.jsx(We.Menu,{isLogged:d,onLogoutClick:()=>e.logout(),ICONS:s,storeConfig:i})]}),target:t?r.current:n.current,isOpen:l,isMobile:t,setIsOpen:f,Z_INDEX_WAR:c})};zo.displayName="UserMenu";const Ou=({tipBar:e,miniCart:t,SearchModal:r})=>{const{structureRef:n,rootRef:o,CONSTANTS:i}=be(),{header:{HEADER_CONFIGS:s,Z_INDEX_WAR:c}}=i;return a.jsx(v.Header.Structure,{innerRef:n,adornment:{start:e},style:{position:"sticky",top:0,zIndex:c.header},className:qo["header-animation"],children:a.jsxs(v.Header.Root,{innerRef:o,style:{zIndex:c.header},variant:s.default_variant,interactiveVariant:s.interactive_variant,children:[a.jsx("div",{className:Te.responsive["responsive-mobile-block"],style:{height:"100%",width:"100%",zIndex:c.header_mobile},children:a.jsx(xu,{SearchModal:r})}),a.jsx("div",{className:Te.responsive["responsive-desktop-block"],style:{height:"100%",width:"100%",zIndex:c.header_desktop},children:a.jsx(uu,{SearchModal:r})}),t,a.jsx($o,{title:"Produto adicionado à sua sacola!",CONSTANTS:i.addToCart}),a.jsx(zo,{})]})})};Ou.displayName="Header";const dp="_shippingFreight_6z8rf_6",fp="_shippingFreight__postalCodeGrid_6z8rf_10",pp="_shippingFreight__grid_6z8rf_14",mp="_shippingFreight__grid__title_6z8rf_18",hp="_shippingFreight__grid__remember_6z8rf_29",gp="_postalCodeContainer_6z8rf_44",yp="_deliveryStatusBar__tag_6z8rf_49",_p="_deliveryStatusBarError__tag_6z8rf_66",vp="_deliveryInfo_6z8rf_74",bp="_deliveryInfo__content_6z8rf_78",xp="_deliveryInfo__text_6z8rf_84",Cp="_deliveryInfo__title_6z8rf_89",Sp="_deliveryInfo__subtitle_6z8rf_99",Ap="_deliveryInfo__tooltipIcon_6z8rf_109",Ep="_deliveryInfo__tooltip_6z8rf_109",Rp="_freightGrid_6z8rf_148",jp="_freightContainer_6z8rf_155",wp="_freightOption__content_6z8rf_160",Pp="_freightOption__value_6z8rf_166",Ip="_freightOption__title_6z8rf_177",Np="_freightOption__title_item_6z8rf_181",Op="_freightOption__paragraph_6z8rf_192",fe={shippingFreight:dp,shippingFreight__postalCodeGrid:fp,shippingFreight__grid:pp,shippingFreight__grid__title:mp,shippingFreight__grid__remember:hp,postalCodeContainer:gp,deliveryStatusBar__tag:yp,deliveryStatusBarError__tag:_p,deliveryInfo:vp,deliveryInfo__content:bp,deliveryInfo__text:xp,deliveryInfo__title:Cp,deliveryInfo__subtitle:Sp,deliveryInfo__tooltipIcon:Ap,deliveryInfo__tooltip:Ep,freightGrid:Rp,freightContainer:jp,freightOption__content:wp,freightOption__value:Pp,freightOption__title:Ip,freightOption__title_item:Np,freightOption__paragraph:Op,"input-modifier":"_input-modifier_6z8rf_207","freight--tooltip":"_freight--tooltip_6z8rf_227"},Tp=({icon:e,title:t,subtitle:r,packageCount:n,packageUnit:o="",labelDescription:i,freightConfig:s,toolTipZIndex:c})=>{const[u,l]=C.useState(!1),f=C.useRef(null),p=()=>l(d=>!d);return a.jsxs("div",{className:fe.deliveryInfo,ref:f,children:[a.jsx(v.Tooltip.Root,{arrow:"bottom",component:a.jsx("div",{children:a.jsx("p",{children:s.messages.select_size_tag})}),id:"freight--tooltip",className:fe["freight--tooltip"],style:{zIndex:c},isOpen:!0,size:"medium",position:"top",top:"-170%",left:"4%",parent:f.current}),a.jsxs("div",{className:fe.deliveryInfo__content,children:[a.jsx("div",{className:fe.deliveryInfo__icon,children:a.jsx(v.Icon,{name:e,size:"medium"})}),a.jsxs("div",{className:fe.deliveryInfo__text,children:[a.jsxs("span",{className:fe.deliveryInfo__title,children:[t," ",n," ",o]}),r&&a.jsx("span",{className:fe.deliveryInfo__subtitle,children:r})]}),i&&a.jsxs("div",{className:fe.deliveryInfo__tooltipIcon,onMouseEnter:p,onMouseLeave:p,"aria-label":"Mostrar descrição",children:[a.jsx("span",{children:a.jsx(v.Icon,{name:s.icons.feedback_help,size:"small"})}),u&&a.jsx("div",{className:fe.deliveryInfo__tooltip,children:i})]})]})]})},Mp=({value:e,title:t,paragraph:r})=>a.jsx("div",{className:fe.freightOption,children:a.jsxs("div",{className:fe.freightOption__content,children:[a.jsx("span",{className:fe.freightOption__value,children:e}),a.jsx("span",{className:fe.freightOption__title,children:a.jsx(v.TextStructure.Root,{children:a.jsxs(v.TextStructure.DivWrapper,{className:fe.footer__item,children:[a.jsx("span",{className:fe.freightOption__title_item,children:t}),r&&a.jsx("span",{className:fe.freightOption__paragraph,children:r})]})})})]})}),kp=({children:e})=>a.jsx("div",{className:fe.freightContainer,children:e}),Lp=({children:e})=>a.jsx("div",{className:fe.freightGrid,children:e}),Dp=({children:e})=>a.jsx("div",{className:fe.postalCodeContainer,children:e}),Bi=({message:e,seller:t="",size:r="small",setError:n})=>a.jsx("div",{className:n?fe.deliveryStatusBarError:fe.deliveryStatusBar,children:a.jsxs(v.Tag,{title:e,className:n?fe.deliveryStatusBarError__tag:fe.deliveryStatusBar__tag,size:r,children:[e," ",!n&&t]})}),$p=e=>{const t=parseInt(e,10);return t===1?`${t} dia`:`${t} dias`},Bp=e=>{var r,n,o;const t=[];return(o=(n=(r=e==null?void 0:e.logisticsInfo)==null?void 0:r[0])==null?void 0:n.slas)==null||o.forEach(i=>{t.push({id:i.id,name:i.name,price:i.price,shippingEstimate:i.shippingEstimate})}),t},qp=({component:e,parent:t,top:r,left:n,target:o,contentRef:i,freightConfig:s,toolTipZIndex:c=999,...u})=>{const{isMobile:l}=Se();return a.jsx(a.Fragment,{children:l?a.jsx(v.Tooltip.Root,{arrow:"bottom",component:a.jsxs("div",{...u,ref:i,children:[e,a.jsx("p",{children:s.messages.select_size_tag})]}),id:"freight--tooltip",className:fe["freight--tooltip"],style:{zIndex:c},isOpen:!0,size:"medium",position:"top",top:"-170%",left:"4%",parent:t}):a.jsx(v.Tooltip.Root,{arrow:"bottom",component:a.jsxs("div",{...u,ref:i,children:[e,a.jsx("p",{children:s.messages.select_size_tag})]}),id:"freight--tooltip",className:fe["freight--tooltip"],style:{zIndex:c},isOpen:!0,size:"medium",position:"top",top:"-110%",left:"3%",parent:t})})},Hp=({onUpdateFreightItems:e,sellerId:t,size:r,skuId:n,quantity:o,setError:i,setIsButtonClicked:s,component:c,freightConfig:u,toolTipZIndex:l})=>{var O,N,D,w;const f=rt(),p=rt(q=>q.shipping),[d,m]=C.useState(),[h,y]=C.useState(!1),[g,b]=C.useState(!1),[E,_]=C.useState(!1),R=(N=(O=f.shippingData)==null?void 0:O.address)==null?void 0:N.postalCode,S=!(d!=null&&d.length)&&R?R:d,j=C.useRef(null),x=async q=>{const U=q.target.value.replace(/\D/g,"").slice(0,8);U.length>5?m(U.replace(/^(\d{5})(\d{1,3})/,"$1-$2")):m(U)},P=async q=>{const z=q.target.value.replace(/\D/g,"");try{if((await Yo.get(`https://viacep.com.br/ws/${z}/json/`)).data.erro){i&&i(u.messages.cep_not_found),s(!1),b(!0);return}i&&i(""),b(!1)}catch{console.log("Erro ao validar o CEP. Tente novamente mais tarde.")}},L=async()=>{y(!0);try{const q=await Yo.post("/api/checkout/simulation",{items:[{id:n,quantity:o,seller:t}],country:"BRA",postalCode:S});e(Bp(q.data))}catch(q){console.error("Erro ao atualizar o documento:",q)}finally{y(!1),p(S,"BRA")}},A=async()=>{if(!n){_(!0),setTimeout(()=>_(!1),1500);return}await P({target:{value:S}}),h||(L(),s(!0))};return a.jsxs("div",{ref:j,style:{position:"relative"},children:[!n&&E?a.jsx(qp,{component:c,isOpen:E,parent:j.current,toolTipZIndex:l,freightConfig:u}):a.jsx(a.Fragment,{}),a.jsx("div",{style:{position:"relative"},children:a.jsx(v.TextField.Structure,{title:"structure",style:{width:"100%"},input:a.jsx(v.TextField.Input,{defaultValue:(w=(D=f.shippingData)==null?void 0:D.address)==null?void 0:w.postalCode,label:u.messages.text_input_label,title:"textfield",value:d,sizeVariant:r,onMouseOver:()=>n?null:_(!0),onMouseOut:()=>n?null:_(!1),mode:"simple",onChange:x,onKeyDown:q=>{q.key==="Enter"&&A()},className:fe["input-modifier"],feedback:g?"error":"none"}),right:a.jsx(v.Button,{onClick:A,size:r,title:"button",children:h?a.jsx(v.Spinner,{size:"small",indicatorColor:"#ffffff"}):u.messages.text_input_btn})})})]})},Fp=({children:e,freightConfig:t})=>a.jsxs("div",{className:fe.shippingFreight,children:[a.jsxs("div",{className:fe.shippingFreight__grid,children:[a.jsx("span",{className:fe.shippingFreight__grid__title,children:t.messages.title}),a.jsx("span",{className:fe.shippingFreight__grid__remember,children:a.jsx(ze,{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})})]}),a.jsx("div",{className:fe.shippingFreight__postalCodeGrid,children:e})]}),zp=({children:e})=>a.jsx("div",{className:fe.freightContainer,children:e}),Up=({className:e,sellerId:t,skuId:r,quantity:n,size:o,seller:i,local:s,CONSTANTS_PROPS:c})=>{const{sendDataLayerEvent:u}=ge(),[l,f]=C.useState(""),[p,d]=C.useState([]),[m,h]=C.useState(""),[y,g]=C.useState(!1),b=_=>f(_),E=_=>{d(_),u({functionKey:"readyEvents",data:{event:"search_zipcode",readyData:{shippings:_.map(R=>({shipping_tier:R.id,delivery_time:R.shippingEstimate.replace("bd",""),flag_pickup:R.name.toLowerCase().includes("retirada")?"true":"false",shipping:R.price,currency:c.currency||"BRL"}))}}})};return a.jsxs(zp,{className:e,children:[a.jsxs(Fp,{freightConfig:c.freightConfig,children:[a.jsx(Dp,{children:a.jsx(Hp,{onUpdateFreightItems:E,skuId:r,quantity:n,size:o,sellerId:t,local:s,setError:h,setIsButtonClicked:g,freightConfig:c.freightConfig,toolTipZIndex:c.toolTipZIndex})}),m?a.jsx(Bi,{size:o,message:m,setError:h}):p.length>0&&a.jsx(Bi,{size:o,message:c.freightConfig.messages.delivered_by,seller:i})]}),y&&!m?p.length>0&&a.jsxs(kp,{children:[a.jsx(Lp,{children:p.filter(({id:_})=>!_.includes("Retirada")).map(_=>a.jsx(Mp,{id:_.id,value:Co({valueInCents:_.price,hasFree:!1,freeTaxMessage:c.freightConfig.messages.free_tax}),title:_.name,paragraph:`${c.freightConfig.messages.prefix_days}${$p(_.shippingEstimate)}`,radioValue:l,changeValue:b},_.id))}),c.deliveryInfoBoxesAllowed?a.jsx(Tp,{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}):a.jsx(a.Fragment,{})]}):null]})},Tu=C.createContext({}),Gp=({children:e,item:t,index:r,shelfTitle:n,...o})=>{const[i,s]=C.useState(null),c=C.useRef(null),u=C.useRef({availableSkus:[],priceInfo:{price:0,listPrice:0}}),{sendDataLayerEvent:l,itemListRef:f}=ge(),p=y=>{l({functionKey:"productEvents",data:{commonData:{...t,availableSizes:u.current.availableSkus,...u.current.priceInfo},customData:{index:r+1},event:y}})},d=()=>{p("add_to_wishlist")},m=()=>{l({functionKey:"skuEvents",data:{event:"add_to_cart",commonData:{products:[{...t,...u.current.priceInfo}]},supportData:{selectedSku:i,selectedSkus:[i]},customData:{index:r}}})},h=()=>{n&&(f.current={item_list_name:n}),p("select_item")};return a.jsx(Tu.Provider,{value:C.useMemo(()=>({...o,index:r,item:t,element:c,selectedSku:i,setSelectedSku:s,eventDataRef:u,sendAddToWishlistEvent:d,sendSelectItemEvent:h,sendAddToCartEvent:m}),[o,t,c,i]),children:e})},Le=()=>{const e=C.useContext(Tu);if(e===void 0)throw new Error("useProductCardContext must be used within a ProductCardProvider");return e},Ee={"product-card--actions":"_product-card--actions_nmzk4_1","product-card--actions--group":"_product-card--actions--group_nmzk4_9","product-card--actions--selectors":"_product-card--actions--selectors_nmzk4_21","product-card--body":"_product-card--body_nmzk4_33","product-card--header":"_product-card--header_nmzk4_47","product-card--footer":"_product-card--footer_nmzk4_67","product-card--image":"_product-card--image_nmzk4_90","product-card--image--container":"_product-card--image--container_nmzk4_97","product-card--outstock":"_product-card--outstock_nmzk4_133","product-card--price":"_product-card--price_nmzk4_155","product-card--title":"_product-card--title_nmzk4_177","product-card--title--tag":"_product-card--title--tag_nmzk4_183","product-card--title--content":"_product-card--title--content_nmzk4_200","product-card--selectors--size":"_product-card--selectors--size_nmzk4_240","product-card--selectors--size--button":"_product-card--selectors--size--button_nmzk4_266","product-card--selectors--size--skus":"_product-card--selectors--size--skus_nmzk4_275","product-card--selectors--style":"_product-card--selectors--style_nmzk4_289","product-card--selectors--style--more":"_product-card--selectors--style--more_nmzk4_299","product-card--video":"_product-card--video_nmzk4_316","product-card--wrapper":"_product-card--wrapper_nmzk4_342"},Mu=({callback:e,children:t,className:r,data:n,isKit:o,...i})=>{const{item:{availability:{status:s},image:c}}=Le();return s?a.jsxs("div",{...i,className:v.helpers.classNameConcat(Ee["product-card--actions"],r),children:[a.jsxs(ye.Wrapper,{type:"actions--group",children:[a.jsx(ye.Price,{}),a.jsx("div",{className:Ee["product-card--actions--selectors"],children:!o&&a.jsx(ye.StyleSelector,{data:n,images:c,callback:e})})]}),t]}):null};Mu.displayName="ProductCard.Actions";const ku=({className:e,isKit:t,...r})=>{const{addToCart:n}=Be(),{isMobile:o=!1,selectedSku:i,outStock:s,item:c,sendAddToCartEvent:u,CONSTANTS:l}=Le(),f=()=>{var m;if(!i)return;const d=Ro(i.offers.offers,l.StoreConfig_MainSellerId);d&&n({id:i==null?void 0:i.sku,quantity:1,seller:d.seller.identifier},{id:c.id,texture:(m=c==null?void 0:c.image.find(h=>l.TEXTURE_IMAGE.includes(h.alternateName)))==null?void 0:m.url}),u()},p=i?l.BUY_BUTTON_LABELS.add_to_cart:l.BUY_BUTTON_LABELS.select_size;return a.jsx(v.Button,{...r,className:v.helpers.classNameConcat(e,"buy-button"),disabled:!t&&!i&&!s,size:o?"medium":"large",variant:s?"secondary":"primary",onClick:s?r.onClick:f,children:s?"Avise-me quando chegar":p})};ku.displayName="ProductCard.Actions.BuyButton";const Lu=({product:e,tag:t,size:r="small"})=>{const n=e.offers.offers[0],{CONSTANTS:o,WishListToggle:i}=Le();return a.jsxs(ye.Wrapper,{type:"header",style:{zIndex:o.Z_INDEX_WAR.product_card_header},children:[t?a.jsx(v.Tag,{title:t.value,adornment:{start:t.enableIcon&&t.icon?a.jsx(v.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,o.PRODUCT_CARD_TOP_WISHLIST_TOGGLE&&a.jsx(i,{product:e,priceInfo:{price:n.price,listPrice:n.listPrice},variant:"card"})]})};Lu.displayName="ProductCard.Actions.Header";const Du=({className:e,children:t,hasPriority:r=!1,showVideo:n=!1,...o})=>{const{element:i,index:s,item:{image:c,slug:u,video:l},sendSelectItemEvent:f,order:p,CONSTANTS:d}=Le(),m=xa({images:c,label:{first:d.MAIN_IMAGE,second:d.SECOND_IMAGE}});return a.jsxs("div",{...o,className:v.helpers.classNameConcat(Ee["product-card--image"],e),ref:i,style:{aspectRatio:d.PRODUCT_CARD_IMAGE_ASPECT_RATIO},children:[a.jsx(Ne,{href:`/${u}/p`,onClick:f,onMouseUp:h=>{h.button===1&&f(),d.PLP_INFINITE_SCROLL&&sessionStorage.setItem(d.PLP_GRID_SCROLL_BACK.order,String(p))},children:a.jsx("div",{className:Ee["product-card--image--container"],children:Array.isArray(m)&&m.map(({url:h,alternateName:y},g)=>C.createElement($e.Image,{...d.PRODUCT_IMAGE_DIMENSIONS.product_card,style:d.PRODUCT_IMAGE_DIMENSIONS.product_card,alt:y??"product image",key:g,...r&&{priority:g===0&&s<4},objectFit:"cover",src:h}))})}),d.PLP_SHOW_VIDEO_ON_PRODUCT_CARD&&n&&l&&a.jsx(ye.Video,{url:l,poster:m[0].url}),t]})};Du.displayName="ProductCard.Media.Media";const $u=({className:e,callback:t,children:r,...n})=>{const{isMobile:o,item:i,CONSTANTS:{PRODUCT_CARD_TEXTS:s}}=Le(),{availability:{status:c}}=i;return c?null:a.jsxs("div",{...n,className:v.helpers.classNameConcat(Ee["product-card--outstock"],e),children:[a.jsx(v.Tag,{size:"small",variant:"secondary",title:s.disabled,children:s.disabled}),a.jsx(v.Button,{className:v.helpers.classNameConcat(e,"buy-button"),size:o?"medium":"large",variant:"quaternary",onClick:()=>{typeof t=="function"&&t(i)},children:s.notify})]})};$u.displayName="ProductCard.OutStock";const Bu=({children:e,className:t="",index:r,isMobile:n=!1,item:o,size:i,order:s,outStock:c,shelfTitle:u,CONSTANTS:l,WishListToggle:f,...p})=>a.jsx(Gp,{item:o,isMobile:n,outStock:c,order:s,size:i,index:r,shelfTitle:u,CONSTANTS:l,WishListToggle:f,children:a.jsx("div",{...p,className:v.helpers.classNameConcat(Ee["product-card--wrapper"],t),"data-size":i,children:e})});Bu.displayName="ProductCard.Root";const qu=({disabled:e,label:t,size:r,value:n,onClick:o,...i})=>a.jsxs(v.ToggleSize.Wrapper,{...i,disabled:!1,outOfStock:e,size:r,onClick:o,children:[a.jsx(v.ToggleSize.DisabledAdornment,{}),a.jsx(v.ToggleSize.Text,{children:t})]});qu.displayName="ProductCard.SizeSelector.Item";const Hu=({active:e=!1,callback:t,selectedSku:r=null,item:n,setNotify:o})=>{const{item:i,isMobile:s,setSelectedSku:c,eventDataRef:u}=Le();n.productId=i.id;const l=Eo(n),f=Ao(n,"tamanho");!l&&!u.current.availableSkus.includes(f)&&u.current.availableSkus.push(f);const p=C.useCallback(m=>{const h=r===m?null:m;typeof c=="function"&&c(h),typeof t=="function"&&t(h)},[t,c,r]),d=C.useCallback(()=>{if(l&&typeof o=="function"){o(i,n);return}p(n)},[n,o,p,l,i]);return a.jsx(qu,{active:e,disabled:l,label:f,onClick:()=>d(),size:s?"x-small":"small",value:n})};Hu.displayName="ProductCard.SizeSelector.SkuItem";const Fu=({callback:e,className:t="",children:r,setNotify:n,...o})=>{const{isMobile:i,item:{isVariantOf:{hasVariant:s}},selectedSku:c}=Le();return a.jsxs("div",{...o,className:v.helpers.classNameConcat(Ee["product-card--selectors--size"],t),"data-mobile":i,children:[a.jsx("div",{className:Ee["product-card--selectors--size--skus"],children:Array.isArray(s)&&s.map((u,l)=>a.jsx(Hu,{active:c===u,callback:e,item:u,selectedSku:c,setNotify:n},`size--${l}--${u.sku}`))}),a.jsx("div",{className:Ee["product-card--selectors--size--button"],children:r})]})};Fu.displayName="ProductCard.SizeSelector";const no=({alt:e="",callback:t,more:r,total:n=4,src:o,url:i,...s})=>a.jsxs(v.ToggleStyle.Wrapper,{...s,onClick:()=>{typeof t=="function"&&t(i)},children:[a.jsx(v.ToggleStyle.DisabledAdornment,{}),a.jsxs(v.ToggleStyle.Texture,{children:[o&&a.jsx($e.Image,{alt:e??o,src:o,height:34,width:34}),r&&a.jsx(v.TextStructure.DivWrapper,{className:Ee["product-card--selectors--style--more"],children:a.jsxs("p",{children:["+ ",n]})})]})]}),Wp=({children:e,callback:t,data:r,total:n=4,size:o,...i})=>{const{index:s}=Le(),{triggerSelectItemEventRef:c}=ge();return a.jsxs("div",{...i,children:[e,Array.isArray(r)&&r.slice(0,n).map((u,l)=>a.jsx(no,{callback:f=>{c.current.trigger=!0,c.current.index=s,typeof t=="function"&&t(f)},src:(u==null?void 0:u.textureImage)??"",alt:u==null?void 0:u.textureAlt,url:u==null?void 0:u.slug,size:o},l)),Array.isArray(r)&&(r==null?void 0:r.length)>n&&a.jsx(no,{size:o,total:r.length-n,more:!0})]})},zu=({callback:e,className:t,data:r,images:n=[],findTexture:o,...i})=>{const{CONSTANTS:s}=Le(),c=o||s.TEXTURE_IMAGE,u=n==null?void 0:n.find(l=>c.includes(l.alternateName));return a.jsx(Wp,{...i,callback:e,className:v.helpers.classNameConcat(Ee["product-card--selectors--style"],t),data:r,size:"x-small",children:u&&a.jsx(no,{active:!0,size:"x-small",src:u.url})})};zu.displayName="ProductCard.StyleSelector";const Uu=({className:e,hasDecimal:t,...r})=>{const{isMobile:n,item:{offers:{lowPrice:o,highPrice:i},installments:{count:s,value:c}},eventDataRef:u}=Le();u.current.priceInfo={price:o,listPrice:i};const l=Me(i,t),f=Me(o,t),p=Me(c??0),d=n?"horizontal":"stacked";return a.jsx("div",{...r,className:v.helpers.classNameConcat(Ee["product-card--price"],e),"data-mobile":n,children:a.jsx(v.ProductInfo.Root,{size:"small",layout:d,children:a.jsxs(v.ProductInfo.Wrapper,{size:"small",layout:d,children:[a.jsx(v.ProductInfo.ValuesWrapper,{children:f!==l?a.jsxs(a.Fragment,{children:[a.jsx(v.ProductInfo.Price,{label:"originalPrice",value:l,size:"small"}),a.jsx(v.ProductInfo.Price,{label:"discountPrice",value:f,size:"small"})]}):a.jsx(v.ProductInfo.Price,{label:"defaultPrice",value:f,size:"small"})}),s&&s>1&&c?a.jsx(v.ProductInfo.Price,{label:"installment",value:`${s}x ${p}`,size:"small"}):null]})})})};Uu.displayName="ProductCard.Price";const Gu=({tag:e,className:t})=>{const{item:{name:r}}=Le();return a.jsxs("div",{className:v.helpers.classNameConcat(Ee["product-card--title"],t),children:[a.jsx("div",{className:Ee["product-card--title--tag"],children:e?a.jsx(v.Tag,{size:"small",title:e.value,variant:"quaternary",adornment:{start:e.enableIcon&&e.icon?a.jsx(v.Icon,{name:e.icon,style:{color:e.iconColor}}):null},style:{background:e.tagColor,color:e.textColor},children:e.value}):a.jsx("div",{})}),a.jsx("div",{className:Ee["product-card--title--content"],children:r&&a.jsx(v.TextStructure.Root,{children:a.jsx(v.TextStructure.DivWrapper,{children:a.jsx("h3",{children:r})})})})]})};Gu.displayName="ProductCard.Title";const Wu=({className:e,url:t,poster:r,...n})=>{const{element:o}=Le();return C.useEffect(()=>{if(!(o!=null&&o.current))return;const i=o.current,s=i.querySelector("video");if(s){const c=new IntersectionObserver(f=>{f.forEach(p=>{Ca(p.isIntersecting,s,t)})},{root:null,rootMargin:"0px",threshold:.5}),u=()=>{s.setAttribute("data-loaded","true")},l=()=>{i&&(c.observe(i),s.addEventListener("loadeddata",u))};return document.readyState==="complete"?l():window.addEventListener("load",l),()=>{c.disconnect(),window.removeEventListener("load",l)}}return()=>null},[t,o]),a.jsx("div",{...n,className:v.helpers.classNameConcat(Ee["product-card--video"],e),children:t&&a.jsx($e.Video,{autoPlay:!1,muted:!0,loop:!0,preload:"none",playsInline:!0,poster:r})})};Wu.displayName="ProductCard.Media.Video";const Vu=({children:e,className:t,type:r,...n})=>a.jsx("div",{...n,className:v.helpers.classNameConcat(Ee[`product-card--${r}`],t),children:e});Vu.displayName="ProductCard.Wrapper";const ye={Actions:Mu,BuyButton:ku,Header:Lu,Media:Du,Root:Bu,OutStock:$u,Price:Uu,SizeSelector:Fu,StyleSelector:zu,Title:Gu,Video:Wu,Wrapper:Vu},Vp="_footer__bottom_1o9af_2",Kp="_footer__wrapper_1o9af_10",Xp="_footer__main_1o9af_39",Qp="_footer__legalInformation_1o9af_55",Yp="_footer__column_1o9af_77",Zp="_footer__columnContent_1o9af_87",Jp="_footer__item_1o9af_91",em="_footer__itemLink_1o9af_107",tm="_footer__columnTitle_1o9af_122",rm="_footer__columnTitleIcon_1o9af_134",nm="_footer__iconList_1o9af_147",om="_footer__itemSmallText_1o9af_157",im="_payment_1o9af_168",sm="_footer__iconContainer_1o9af_173",am="_footer__iconListSubHeader_1o9af_178",cm="_accordionWrapper_1o9af_200",um="_accordionHeader_1o9af_204",lm="_accordionTextWrapper_1o9af_208",pe={footer__bottom:Vp,footer__wrapper:Kp,footer__main:Xp,footer__legalInformation:Qp,footer__column:Yp,footer__columnContent:Zp,footer__item:Jp,footer__itemLink:em,footer__columnTitle:tm,footer__columnTitleIcon:rm,footer__iconList:nm,footer__itemSmallText:om,payment:im,footer__iconContainer:sm,footer__iconListSubHeader:am,accordionWrapper:cm,accordionHeader:um,accordionTextWrapper:lm,"footer--stamps":"_footer--stamps_1o9af_247","footer--stamps--company":"_footer--stamps--company_1o9af_254","support-container":"_support-container_1o9af_258","support-section":"_support-section_1o9af_277","support-text":"_support-text_1o9af_319","support-items":"_support-items_1o9af_329","support-item":"_support-item_1o9af_329"};var Ku={},Uo={},_t={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"warnOnce",{enumerable:!0,get:function(){return t}});let t=r=>{};if(process.env.NODE_ENV!=="production"){const r=new Set;t=n=>{r.has(n)||console.warn(n),r.add(n)}}})(_t);var Xu={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"getImageBlurSvg",{enumerable:!0,get:function(){return t}});function t(r){let{widthInt:n,heightInt:o,blurWidth:i,blurHeight:s,blurDataURL:c,objectFit:u}=r;const l=20,f=i?i*40:n,p=s?s*40:o,d=f&&p?"viewBox='0 0 "+f+" "+p+"'":"",m=d?"none":u==="contain"?"xMidYMid":u==="cover"?"xMidYMid slice":"none";return"%3Csvg xmlns='http://www.w3.org/2000/svg' "+d+"%3E%3Cfilter id='b' color-interpolation-filters='sRGB'%3E%3CfeGaussianBlur stdDeviation='"+l+"'/%3E%3CfeColorMatrix values='1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 100 -1' result='s'/%3E%3CfeFlood x='0' y='0' width='100%25' height='100%25'/%3E%3CfeComposite operator='out' in='s'/%3E%3CfeComposite in2='SourceGraphic'/%3E%3CfeGaussianBlur stdDeviation='"+l+"'/%3E%3C/filter%3E%3Cimage width='100%25' height='100%25' x='0' y='0' preserveAspectRatio='"+m+"' style='filter: url(%23b);' href='"+c+"'/%3E%3C/svg%3E"}})(Xu);var tr={};(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(o,i){for(var s in i)Object.defineProperty(o,s,{enumerable:!0,get:i[s]})}t(e,{VALID_LOADERS:function(){return r},imageConfigDefault:function(){return n}});const r=["default","imgix","cloudinary","akamai","custom"],n={deviceSizes:[640,750,828,1080,1200,1920,2048,3840],imageSizes:[16,32,48,64,96,128,256,384],path:"/_next/image",loader:"default",loaderFile:"",domains:[],disableStaticImages:!1,minimumCacheTTL:60,formats:["image/webp"],dangerouslyAllowSVG:!1,contentSecurityPolicy:"script-src 'none'; frame-src 'none'; sandbox;",contentDispositionType:"inline",remotePatterns:[],unoptimized:!1}})(tr);(function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"getImgProps",{enumerable:!0,get:function(){return m}});const t=_t,r=Xu,n=tr,o=["lazy","eager",void 0];function i(h){return h.default!==void 0}function s(h){return h.src!==void 0}function c(h){return typeof h=="object"&&(i(h)||s(h))}const u=new Map;let l;function f(h){return typeof h>"u"?h:typeof h=="number"?Number.isFinite(h)?h:NaN:typeof h=="string"&&/^[0-9]+$/.test(h)?parseInt(h,10):NaN}function p(h,y,g){let{deviceSizes:b,allSizes:E}=h;if(g){const R=/(^|\s)(1?\d?\d)vw/g,S=[];for(let j;j=R.exec(g);j)S.push(parseInt(j[2]));if(S.length){const j=Math.min(...S)*.01;return{widths:E.filter(x=>x>=b[0]*j),kind:"w"}}return{widths:E,kind:"w"}}return typeof y!="number"?{widths:b,kind:"w"}:{widths:[...new Set([y,y*2].map(R=>E.find(S=>S>=R)||E[E.length-1]))],kind:"x"}}function d(h){let{config:y,src:g,unoptimized:b,width:E,quality:_,sizes:R,loader:S}=h;if(b)return{src:g,srcSet:void 0,sizes:void 0};const{widths:j,kind:x}=p(y,E,R),P=j.length-1;return{sizes:!R&&x==="w"?"100vw":R,srcSet:j.map((L,A)=>S({config:y,src:g,quality:_,width:L})+" "+(x==="w"?L:A+1)+x).join(", "),src:S({config:y,src:g,quality:_,width:j[P]})}}function m(h,y){let{src:g,sizes:b,unoptimized:E=!1,priority:_=!1,loading:R,className:S,quality:j,width:x,height:P,fill:L=!1,style:A,onLoad:O,onLoadingComplete:N,placeholder:D="empty",blurDataURL:w,fetchPriority:q,layout:z,objectFit:U,objectPosition:K,lazyBoundary:W,lazyRoot:F,...ne}=h;const{imgConf:I,showAltText:M,blurComplete:B,defaultLoader:X}=y;let te,Z=I||n.imageConfigDefault;if("allSizes"in Z)te=Z;else{const G=[...Z.deviceSizes,...Z.imageSizes].sort((Ae,Q)=>Ae-Q),le=Z.deviceSizes.sort((Ae,Q)=>Ae-Q);te={...Z,allSizes:G,deviceSizes:le}}let k=ne.loader||X;delete ne.loader,delete ne.srcSet;const J="__next_img_default"in k;if(J){if(te.loader==="custom")throw new Error('Image with src "'+g+`" is missing "loader" prop.
|
|
5
|
+
Read more: https://nextjs.org/docs/messages/next-image-missing-loader`)}else{const G=k;k=le=>{const{config:Ae,...Q}=le;return G(Q)}}if(z){z==="fill"&&(L=!0);const G={intrinsic:{maxWidth:"100%",height:"auto"},responsive:{width:"100%",height:"auto"}},le={responsive:"100vw",fill:"100vw"},Ae=G[z];Ae&&(A={...A,...Ae});const Q=le[z];Q&&!b&&(b=Q)}let Y="",ee=f(x),$=f(P),T,re;if(c(g)){const G=i(g)?g.default:g;if(!G.src)throw new Error("An object should only be passed to the image component src parameter if it comes from a static image import. It must include src. Received "+JSON.stringify(G));if(!G.height||!G.width)throw new Error("An object should only be passed to the image component src parameter if it comes from a static image import. It must include height and width. Received "+JSON.stringify(G));if(T=G.blurWidth,re=G.blurHeight,w=w||G.blurDataURL,Y=G.src,!L){if(!ee&&!$)ee=G.width,$=G.height;else if(ee&&!$){const le=ee/G.width;$=Math.round(G.height*le)}else if(!ee&&$){const le=$/G.height;ee=Math.round(G.width*le)}}}g=typeof g=="string"?g:Y;let se=!_&&(R==="lazy"||typeof R>"u");(!g||g.startsWith("data:")||g.startsWith("blob:"))&&(E=!0,se=!1),te.unoptimized&&(E=!0),J&&g.endsWith(".svg")&&!te.dangerouslyAllowSVG&&(E=!0),_&&(q="high");const ce=f(j);if(process.env.NODE_ENV!=="production"){if(te.output==="export"&&J&&!E)throw new Error("Image Optimization using the default loader is not compatible with `{ output: 'export' }`.\n Possible solutions:\n - Remove `{ output: 'export' }` and run \"next start\" to run server mode including the Image Optimization API.\n - Configure `{ images: { unoptimized: true } }` in `next.config.js` to disable the Image Optimization API.\n Read more: https://nextjs.org/docs/messages/export-image-api");if(!g)E=!0;else if(L){if(x)throw new Error('Image with src "'+g+'" has both "width" and "fill" properties. Only one should be used.');if(P)throw new Error('Image with src "'+g+'" has both "height" and "fill" properties. Only one should be used.');if(A!=null&&A.position&&A.position!=="absolute")throw new Error('Image with src "'+g+'" has both "fill" and "style.position" properties. Images with "fill" always use position absolute - it cannot be modified.');if(A!=null&&A.width&&A.width!=="100%")throw new Error('Image with src "'+g+'" has both "fill" and "style.width" properties. Images with "fill" always use width 100% - it cannot be modified.');if(A!=null&&A.height&&A.height!=="100%")throw new Error('Image with src "'+g+'" has both "fill" and "style.height" properties. Images with "fill" always use height 100% - it cannot be modified.')}else{if(typeof ee>"u")throw new Error('Image with src "'+g+'" is missing required "width" property.');if(isNaN(ee))throw new Error('Image with src "'+g+'" has invalid "width" property. Expected a numeric value in pixels but received "'+x+'".');if(typeof $>"u")throw new Error('Image with src "'+g+'" is missing required "height" property.');if(isNaN($))throw new Error('Image with src "'+g+'" has invalid "height" property. Expected a numeric value in pixels but received "'+P+'".')}if(!o.includes(R))throw new Error('Image with src "'+g+'" has invalid "loading" property. Provided "'+R+'" should be one of '+o.map(String).join(",")+".");if(_&&R==="lazy")throw new Error('Image with src "'+g+`" has both "priority" and "loading='lazy'" properties. Only one should be used.`);if(D!=="empty"&&D!=="blur"&&!D.startsWith("data:image/"))throw new Error('Image with src "'+g+'" has invalid "placeholder" property "'+D+'".');if(D!=="empty"&&ee&&$&&ee*$<1600&&(0,t.warnOnce)('Image with src "'+g+'" is smaller than 40x40. Consider removing the "placeholder" property to improve performance.'),D==="blur"&&!w){const G=["jpeg","png","webp","avif"];throw new Error('Image with src "'+g+`" has "placeholder='blur'" property but is missing the "blurDataURL" property.
|
|
6
|
+
Possible solutions:
|
|
7
|
+
- Add a "blurDataURL" property, the contents should be a small Data URL to represent the image
|
|
8
|
+
- Change the "src" property to a static import with one of the supported file types: `+G.join(",")+` (animated images not supported)
|
|
9
|
+
- Remove the "placeholder" property, effectively no blur effect
|
|
10
|
+
Read more: https://nextjs.org/docs/messages/placeholder-blur-data-url`)}if("ref"in ne&&(0,t.warnOnce)('Image with src "'+g+'" is using unsupported "ref" property. Consider using the "onLoadingComplete" property instead.'),!E&&!J){const G=k({config:te,src:g,width:ee||400,quality:ce||75});let le;try{le=new URL(G)}catch{}(G===g||le&&le.pathname===g&&!le.search)&&(0,t.warnOnce)('Image with src "'+g+`" has a "loader" property that does not implement width. Please implement it or use the "unoptimized" property instead.
|
|
11
|
+
Read more: https://nextjs.org/docs/messages/next-image-missing-loader-width`)}for(const[G,le]of Object.entries({layout:z,objectFit:U,objectPosition:K,lazyBoundary:W,lazyRoot:F}))le&&(0,t.warnOnce)('Image with src "'+g+'" has legacy prop "'+G+`". Did you forget to run the codemod?
|
|
12
|
+
Read more: https://nextjs.org/docs/messages/next-image-upgrade-to-13`);if(typeof window<"u"&&!l&&window.PerformanceObserver){l=new PerformanceObserver(G=>{for(const Ae of G.getEntries()){var le;const Q=(Ae==null||(le=Ae.element)==null?void 0:le.src)||"",oe=u.get(Q);oe&&!oe.priority&&oe.placeholder==="empty"&&!oe.src.startsWith("data:")&&!oe.src.startsWith("blob:")&&(0,t.warnOnce)('Image with src "'+oe.src+`" was detected as the Largest Contentful Paint (LCP). Please add the "priority" property if this image is above the fold.
|
|
13
|
+
Read more: https://nextjs.org/docs/api-reference/next/image#priority`)}});try{l.observe({type:"largest-contentful-paint",buffered:!0})}catch(G){console.error(G)}}}const ue=Object.assign(L?{position:"absolute",height:"100%",width:"100%",left:0,top:0,right:0,bottom:0,objectFit:U,objectPosition:K}:{},M?{}:{color:"transparent"},A),ae=!B&&D!=="empty"?D==="blur"?'url("data:image/svg+xml;charset=utf-8,'+(0,r.getImageBlurSvg)({widthInt:ee,heightInt:$,blurWidth:T,blurHeight:re,blurDataURL:w||"",objectFit:ue.objectFit})+'")':'url("'+D+'")':null;let H=ae?{backgroundSize:ue.objectFit||"cover",backgroundPosition:ue.objectPosition||"50% 50%",backgroundRepeat:"no-repeat",backgroundImage:ae}:{};process.env.NODE_ENV==="development"&&H.backgroundImage&&D==="blur"&&w!=null&&w.startsWith("/")&&(H.backgroundImage='url("'+w+'")');const he=d({config:te,src:g,unoptimized:E,width:ee,quality:ce,sizes:b,loader:k});if(process.env.NODE_ENV!=="production"&&typeof window<"u"){let G;try{G=new URL(he.src)}catch{G=new URL(he.src,window.location.href)}u.set(G.href,{src:g,priority:_,placeholder:D})}return{props:{...ne,loading:se?"lazy":R,fetchPriority:q,width:ee,height:$,decoding:"async",className:S,style:{...ue,...H},sizes:he.sizes,srcSet:he.srcSet,src:he.src},meta:{unoptimized:E,priority:_,placeholder:D,fill:L}}}})(Uo);var oo={exports:{}},Dt={exports:{}},Tr={},qi;function dm(){return qi||(qi=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return i}});const t=C,r=typeof window>"u",n=r?()=>{}:t.useLayoutEffect,o=r?()=>{}:t.useEffect;function i(s){const{headManager:c,reduceComponentsToState:u}=s;function l(){if(c&&c.mountedInstances){const p=t.Children.toArray(Array.from(c.mountedInstances).filter(Boolean));c.updateHead(u(p,s))}}if(r){var f;c==null||(f=c.mountedInstances)==null||f.add(s.children),l()}return n(()=>{var p;return c==null||(p=c.mountedInstances)==null||p.add(s.children),()=>{var d;c==null||(d=c.mountedInstances)==null||d.delete(s.children)}}),n(()=>(c&&(c._pendingUpdate=l),()=>{c&&(c._pendingUpdate=l)})),o(()=>(c&&c._pendingUpdate&&(c._pendingUpdate(),c._pendingUpdate=null),()=>{c&&c._pendingUpdate&&(c._pendingUpdate(),c._pendingUpdate=null)})),null}}(Tr)),Tr}var Mr={},Hi;function fm(){return Hi||(Hi=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"AmpStateContext",{enumerable:!0,get:function(){return n}});const n=Re._(C).default.createContext({});process.env.NODE_ENV!=="production"&&(n.displayName="AmpStateContext")}(Mr)),Mr}var kr={},Fi;function Qu(){return Fi||(Fi=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"HeadManagerContext",{enumerable:!0,get:function(){return n}});const n=Re._(C).default.createContext({});process.env.NODE_ENV!=="production"&&(n.displayName="HeadManagerContext")}(kr)),kr}var Lr={},zi;function pm(){return zi||(zi=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"isInAmpMode",{enumerable:!0,get:function(){return t}});function t(r){let{ampFirst:n=!1,hybrid:o=!1,hasQuery:i=!1}=r===void 0?{}:r;return n||o&&i}}(Lr)),Lr}var Ui;function mm(){return Ui||(Ui=1,function(e,t){"use client";Object.defineProperty(t,"__esModule",{value:!0});function r(E,_){for(var R in _)Object.defineProperty(E,R,{enumerable:!0,get:_[R]})}r(t,{defaultHead:function(){return p},default:function(){return b}});const n=Re,i=Ke._(C),s=n._(dm()),c=fm(),u=Qu(),l=pm(),f=_t;function p(E){E===void 0&&(E=!1);const _=[i.default.createElement("meta",{charSet:"utf-8"})];return E||_.push(i.default.createElement("meta",{name:"viewport",content:"width=device-width"})),_}function d(E,_){return typeof _=="string"||typeof _=="number"?E:_.type===i.default.Fragment?E.concat(i.default.Children.toArray(_.props.children).reduce((R,S)=>typeof S=="string"||typeof S=="number"?R:R.concat(S),[])):E.concat(_)}const m=["name","httpEquiv","charSet","itemProp"];function h(){const E=new Set,_=new Set,R=new Set,S={};return j=>{let x=!0,P=!1;if(j.key&&typeof j.key!="number"&&j.key.indexOf("$")>0){P=!0;const L=j.key.slice(j.key.indexOf("$")+1);E.has(L)?x=!1:E.add(L)}switch(j.type){case"title":case"base":_.has(j.type)?x=!1:_.add(j.type);break;case"meta":for(let L=0,A=m.length;L<A;L++){const O=m[L];if(j.props.hasOwnProperty(O))if(O==="charSet")R.has(O)?x=!1:R.add(O);else{const N=j.props[O],D=S[O]||new Set;(O!=="name"||!P)&&D.has(N)?x=!1:(D.add(N),S[O]=D)}}break}return x}}function y(E,_){const{inAmpMode:R}=_;return E.reduce(d,[]).reverse().concat(p(R).reverse()).filter(h()).reverse().map((S,j)=>{const x=S.key||j;if(process.env.NODE_ENV!=="development"&&process.env.__NEXT_OPTIMIZE_FONTS&&!R&&S.type==="link"&&S.props.href&&["https://fonts.googleapis.com/css","https://use.typekit.net/"].some(P=>S.props.href.startsWith(P))){const P={...S.props||{}};return P["data-href"]=P.href,P.href=void 0,P["data-optimized-fonts"]=!0,i.default.cloneElement(S,P)}if(process.env.NODE_ENV==="development")if(S.type==="script"&&S.props.type!=="application/ld+json"){const P=S.props.src?'<script> tag with src="'+S.props.src+'"':"inline <script>";(0,f.warnOnce)("Do not add <script> tags using next/head (see "+P+`). Use next/script instead.
|
|
14
|
+
See more info here: https://nextjs.org/docs/messages/no-script-tags-in-head-component`)}else S.type==="link"&&S.props.rel==="stylesheet"&&(0,f.warnOnce)('Do not add stylesheets using next/head (see <link rel="stylesheet"> tag with href="'+S.props.href+`"). Use Document instead.
|
|
15
|
+
See more info here: https://nextjs.org/docs/messages/no-stylesheets-in-head-component`);return i.default.cloneElement(S,{key:x})})}function g(E){let{children:_}=E;const R=(0,i.useContext)(c.AmpStateContext),S=(0,i.useContext)(u.HeadManagerContext);return i.default.createElement(s.default,{reduceComponentsToState:y,headManager:S,inAmpMode:(0,l.isInAmpMode)(R)},_)}const b=g;(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)}(Dt,Dt.exports)),Dt.exports}var Dr={},Gi;function hm(){return Gi||(Gi=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"ImageConfigContext",{enumerable:!0,get:function(){return o}});const r=Re._(C),n=tr,o=r.default.createContext(n.imageConfigDefault);process.env.NODE_ENV!=="production"&&(o.displayName="ImageConfigContext")}(Dr)),Dr}var $r={},Br={},qr={exports:{}};const gm=Sf(Te.__viteBrowserExternal);var Hr={},Fr={},zr,Wi;function Yu(){return Wi||(Wi=1,zr=function(){if(typeof Symbol!="function"||typeof Object.getOwnPropertySymbols!="function")return!1;if(typeof Symbol.iterator=="symbol")return!0;var t={},r=Symbol("test"),n=Object(r);if(typeof r=="string"||Object.prototype.toString.call(r)!=="[object Symbol]"||Object.prototype.toString.call(n)!=="[object Symbol]")return!1;var o=42;t[r]=o;for(var i in t)return!1;if(typeof Object.keys=="function"&&Object.keys(t).length!==0||typeof Object.getOwnPropertyNames=="function"&&Object.getOwnPropertyNames(t).length!==0)return!1;var s=Object.getOwnPropertySymbols(t);if(s.length!==1||s[0]!==r||!Object.prototype.propertyIsEnumerable.call(t,r))return!1;if(typeof Object.getOwnPropertyDescriptor=="function"){var c=Object.getOwnPropertyDescriptor(t,r);if(c.value!==o||c.enumerable!==!0)return!1}return!0}),zr}var Ur,Vi;function rr(){if(Vi)return Ur;Vi=1;var e=Yu();return Ur=function(){return e()&&!!Symbol.toStringTag},Ur}var Gr,Ki;function Zu(){return Ki||(Ki=1,Gr=Object),Gr}var Wr,Xi;function ym(){return Xi||(Xi=1,Wr=Error),Wr}var Vr,Qi;function _m(){return Qi||(Qi=1,Vr=EvalError),Vr}var Kr,Yi;function vm(){return Yi||(Yi=1,Kr=RangeError),Kr}var Xr,Zi;function bm(){return Zi||(Zi=1,Xr=ReferenceError),Xr}var Qr,Ji;function Ju(){return Ji||(Ji=1,Qr=SyntaxError),Qr}var Yr,es;function vt(){return es||(es=1,Yr=TypeError),Yr}var Zr,ts;function xm(){return ts||(ts=1,Zr=URIError),Zr}var Jr,rs;function Cm(){return rs||(rs=1,Jr=Math.abs),Jr}var en,ns;function Sm(){return ns||(ns=1,en=Math.floor),en}var tn,os;function Am(){return os||(os=1,tn=Math.max),tn}var rn,is;function Em(){return is||(is=1,rn=Math.min),rn}var nn,ss;function Rm(){return ss||(ss=1,nn=Math.pow),nn}var on,as;function jm(){return as||(as=1,on=Math.round),on}var sn,cs;function wm(){return cs||(cs=1,sn=Number.isNaN||function(t){return t!==t}),sn}var an,us;function Pm(){if(us)return an;us=1;var e=wm();return an=function(r){return e(r)||r===0?r:r<0?-1:1},an}var cn,ls;function Im(){return ls||(ls=1,cn=Object.getOwnPropertyDescriptor),cn}var un,ds;function st(){if(ds)return un;ds=1;var e=Im();if(e)try{e([],"length")}catch{e=null}return un=e,un}var ln,fs;function nr(){if(fs)return ln;fs=1;var e=Object.defineProperty||!1;if(e)try{e({},"a",{value:1})}catch{e=!1}return ln=e,ln}var dn,ps;function Nm(){if(ps)return dn;ps=1;var e=typeof Symbol<"u"&&Symbol,t=Yu();return dn=function(){return typeof e!="function"||typeof Symbol!="function"||typeof e("foo")!="symbol"||typeof Symbol("bar")!="symbol"?!1:t()},dn}var fn,ms;function el(){return ms||(ms=1,fn=typeof Reflect<"u"&&Reflect.getPrototypeOf||null),fn}var pn,hs;function tl(){if(hs)return pn;hs=1;var e=Zu();return pn=e.getPrototypeOf||null,pn}var mn,gs;function Om(){if(gs)return mn;gs=1;var e="Function.prototype.bind called on incompatible ",t=Object.prototype.toString,r=Math.max,n="[object Function]",o=function(u,l){for(var f=[],p=0;p<u.length;p+=1)f[p]=u[p];for(var d=0;d<l.length;d+=1)f[d+u.length]=l[d];return f},i=function(u,l){for(var f=[],p=l,d=0;p<u.length;p+=1,d+=1)f[d]=u[p];return f},s=function(c,u){for(var l="",f=0;f<c.length;f+=1)l+=c[f],f+1<c.length&&(l+=u);return l};return mn=function(u){var l=this;if(typeof l!="function"||t.apply(l)!==n)throw new TypeError(e+l);for(var f=i(arguments,1),p,d=function(){if(this instanceof p){var b=l.apply(this,o(f,arguments));return Object(b)===b?b:this}return l.apply(u,o(f,arguments))},m=r(0,l.length-f.length),h=[],y=0;y<m;y++)h[y]="$"+y;if(p=Function("binder","return function ("+s(h,",")+"){ return binder.apply(this,arguments); }")(d),l.prototype){var g=function(){};g.prototype=l.prototype,p.prototype=new g,g.prototype=null}return p},mn}var hn,ys;function bt(){if(ys)return hn;ys=1;var e=Om();return hn=Function.prototype.bind||e,hn}var gn,_s;function Go(){return _s||(_s=1,gn=Function.prototype.call),gn}var yn,vs;function Wo(){return vs||(vs=1,yn=Function.prototype.apply),yn}var _n,bs;function Tm(){return bs||(bs=1,_n=typeof Reflect<"u"&&Reflect&&Reflect.apply),_n}var vn,xs;function rl(){if(xs)return vn;xs=1;var e=bt(),t=Wo(),r=Go(),n=Tm();return vn=n||e.call(r,t),vn}var bn,Cs;function Vo(){if(Cs)return bn;Cs=1;var e=bt(),t=vt(),r=Go(),n=rl();return bn=function(i){if(i.length<1||typeof i[0]!="function")throw new t("a function is required");return n(e,r,i)},bn}var xn,Ss;function Mm(){if(Ss)return xn;Ss=1;var e=Vo(),t=st(),r;try{r=[].__proto__===Array.prototype}catch(s){if(!s||typeof s!="object"||!("code"in s)||s.code!=="ERR_PROTO_ACCESS")throw s}var n=!!r&&t&&t(Object.prototype,"__proto__"),o=Object,i=o.getPrototypeOf;return xn=n&&typeof n.get=="function"?e([n.get]):typeof i=="function"?function(c){return i(c==null?c:o(c))}:!1,xn}var Cn,As;function Ko(){if(As)return Cn;As=1;var e=el(),t=tl(),r=Mm();return Cn=e?function(o){return e(o)}:t?function(o){if(!o||typeof o!="object"&&typeof o!="function")throw new TypeError("getProto: not an object");return t(o)}:r?function(o){return r(o)}:null,Cn}var Sn,Es;function nl(){if(Es)return Sn;Es=1;var e=Function.prototype.call,t=Object.prototype.hasOwnProperty,r=bt();return Sn=r.call(e,t),Sn}var An,Rs;function ol(){if(Rs)return An;Rs=1;var e,t=Zu(),r=ym(),n=_m(),o=vm(),i=bm(),s=Ju(),c=vt(),u=xm(),l=Cm(),f=Sm(),p=Am(),d=Em(),m=Rm(),h=jm(),y=Pm(),g=Function,b=function(J){try{return g('"use strict"; return ('+J+").constructor;")()}catch{}},E=st(),_=nr(),R=function(){throw new c},S=E?function(){try{return arguments.callee,R}catch{try{return E(arguments,"callee").get}catch{return R}}}():R,j=Nm()(),x=Ko(),P=tl(),L=el(),A=Wo(),O=Go(),N={},D=typeof Uint8Array>"u"||!x?e:x(Uint8Array),w={__proto__:null,"%AggregateError%":typeof AggregateError>"u"?e:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>"u"?e:ArrayBuffer,"%ArrayIteratorPrototype%":j&&x?x([][Symbol.iterator]()):e,"%AsyncFromSyncIteratorPrototype%":e,"%AsyncFunction%":N,"%AsyncGenerator%":N,"%AsyncGeneratorFunction%":N,"%AsyncIteratorPrototype%":N,"%Atomics%":typeof Atomics>"u"?e:Atomics,"%BigInt%":typeof BigInt>"u"?e:BigInt,"%BigInt64Array%":typeof BigInt64Array>"u"?e:BigInt64Array,"%BigUint64Array%":typeof BigUint64Array>"u"?e:BigUint64Array,"%Boolean%":Boolean,"%DataView%":typeof DataView>"u"?e:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":r,"%eval%":eval,"%EvalError%":n,"%Float16Array%":typeof Float16Array>"u"?e:Float16Array,"%Float32Array%":typeof Float32Array>"u"?e:Float32Array,"%Float64Array%":typeof Float64Array>"u"?e:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry>"u"?e:FinalizationRegistry,"%Function%":g,"%GeneratorFunction%":N,"%Int8Array%":typeof Int8Array>"u"?e:Int8Array,"%Int16Array%":typeof Int16Array>"u"?e:Int16Array,"%Int32Array%":typeof Int32Array>"u"?e:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":j&&x?x(x([][Symbol.iterator]())):e,"%JSON%":typeof JSON=="object"?JSON:e,"%Map%":typeof Map>"u"?e:Map,"%MapIteratorPrototype%":typeof Map>"u"||!j||!x?e:x(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":t,"%Object.getOwnPropertyDescriptor%":E,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>"u"?e:Promise,"%Proxy%":typeof Proxy>"u"?e:Proxy,"%RangeError%":o,"%ReferenceError%":i,"%Reflect%":typeof Reflect>"u"?e:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set>"u"?e:Set,"%SetIteratorPrototype%":typeof Set>"u"||!j||!x?e:x(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer>"u"?e:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":j&&x?x(""[Symbol.iterator]()):e,"%Symbol%":j?Symbol:e,"%SyntaxError%":s,"%ThrowTypeError%":S,"%TypedArray%":D,"%TypeError%":c,"%Uint8Array%":typeof Uint8Array>"u"?e:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray>"u"?e:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array>"u"?e:Uint16Array,"%Uint32Array%":typeof Uint32Array>"u"?e:Uint32Array,"%URIError%":u,"%WeakMap%":typeof WeakMap>"u"?e:WeakMap,"%WeakRef%":typeof WeakRef>"u"?e:WeakRef,"%WeakSet%":typeof WeakSet>"u"?e:WeakSet,"%Function.prototype.call%":O,"%Function.prototype.apply%":A,"%Object.defineProperty%":_,"%Object.getPrototypeOf%":P,"%Math.abs%":l,"%Math.floor%":f,"%Math.max%":p,"%Math.min%":d,"%Math.pow%":m,"%Math.round%":h,"%Math.sign%":y,"%Reflect.getPrototypeOf%":L};if(x)try{null.error}catch(J){var q=x(x(J));w["%Error.prototype%"]=q}var z=function J(Y){var ee;if(Y==="%AsyncFunction%")ee=b("async function () {}");else if(Y==="%GeneratorFunction%")ee=b("function* () {}");else if(Y==="%AsyncGeneratorFunction%")ee=b("async function* () {}");else if(Y==="%AsyncGenerator%"){var $=J("%AsyncGeneratorFunction%");$&&(ee=$.prototype)}else if(Y==="%AsyncIteratorPrototype%"){var T=J("%AsyncGenerator%");T&&x&&(ee=x(T.prototype))}return w[Y]=ee,ee},U={__proto__:null,"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},K=bt(),W=nl(),F=K.call(O,Array.prototype.concat),ne=K.call(A,Array.prototype.splice),I=K.call(O,String.prototype.replace),M=K.call(O,String.prototype.slice),B=K.call(O,RegExp.prototype.exec),X=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,te=/\\(\\)?/g,Z=function(Y){var ee=M(Y,0,1),$=M(Y,-1);if(ee==="%"&&$!=="%")throw new s("invalid intrinsic syntax, expected closing `%`");if($==="%"&&ee!=="%")throw new s("invalid intrinsic syntax, expected opening `%`");var T=[];return I(Y,X,function(re,se,ce,ue){T[T.length]=ce?I(ue,te,"$1"):se||re}),T},k=function(Y,ee){var $=Y,T;if(W(U,$)&&(T=U[$],$="%"+T[0]+"%"),W(w,$)){var re=w[$];if(re===N&&(re=z($)),typeof re>"u"&&!ee)throw new c("intrinsic "+Y+" exists, but is not available. Please file an issue!");return{alias:T,name:$,value:re}}throw new s("intrinsic "+Y+" does not exist!")};return An=function(Y,ee){if(typeof Y!="string"||Y.length===0)throw new c("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof ee!="boolean")throw new c('"allowMissing" argument must be a boolean');if(B(/^%?[^%]*%?$/,Y)===null)throw new s("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var $=Z(Y),T=$.length>0?$[0]:"",re=k("%"+T+"%",ee),se=re.name,ce=re.value,ue=!1,ae=re.alias;ae&&(T=ae[0],ne($,F([0,1],ae)));for(var H=1,he=!0;H<$.length;H+=1){var ie=$[H],me=M(ie,0,1),G=M(ie,-1);if((me==='"'||me==="'"||me==="`"||G==='"'||G==="'"||G==="`")&&me!==G)throw new s("property names with quotes must have matching quotes");if((ie==="constructor"||!he)&&(ue=!0),T+="."+ie,se="%"+T+"%",W(w,se))ce=w[se];else if(ce!=null){if(!(ie in ce)){if(!ee)throw new c("base intrinsic for "+Y+" exists, but the property is not available.");return}if(E&&H+1>=$.length){var le=E(ce,ie);he=!!le,he&&"get"in le&&!("originalValue"in le.get)?ce=le.get:ce=ce[ie]}else he=W(ce,ie),ce=ce[ie];he&&!ue&&(w[se]=ce)}}return ce},An}var En,js;function xt(){if(js)return En;js=1;var e=ol(),t=Vo(),r=t([e("%String.prototype.indexOf%")]);return En=function(o,i){var s=e(o,!!i);return typeof s=="function"&&r(o,".prototype.")>-1?t([s]):s},En}var Rn,ws;function km(){if(ws)return Rn;ws=1;var e=rr()(),t=xt(),r=t("Object.prototype.toString"),n=function(c){return e&&c&&typeof c=="object"&&Symbol.toStringTag in c?!1:r(c)==="[object Arguments]"},o=function(c){return n(c)?!0:c!==null&&typeof c=="object"&&"length"in c&&typeof c.length=="number"&&c.length>=0&&r(c)!=="[object Array]"&&"callee"in c&&r(c.callee)==="[object Function]"},i=function(){return n(arguments)}();return n.isLegacyArguments=o,Rn=i?n:o,Rn}var jn,Ps;function Lm(){if(Ps)return jn;Ps=1;var e=xt(),t=rr()(),r=nl(),n=st(),o;if(t){var i=e("RegExp.prototype.exec"),s={},c=function(){throw s},u={toString:c,valueOf:c};typeof Symbol.toPrimitive=="symbol"&&(u[Symbol.toPrimitive]=c),o=function(d){if(!d||typeof d!="object")return!1;var m=n(d,"lastIndex"),h=m&&r(m,"value");if(!h)return!1;try{i(d,u)}catch(y){return y===s}}}else{var l=e("Object.prototype.toString"),f="[object RegExp]";o=function(d){return!d||typeof d!="object"&&typeof d!="function"?!1:l(d)===f}}return jn=o,jn}var wn,Is;function Dm(){if(Is)return wn;Is=1;var e=xt(),t=Lm(),r=e("RegExp.prototype.exec"),n=vt();return wn=function(i){if(!t(i))throw new n("`regex` must be a RegExp");return function(c){return r(i,c)!==null}},wn}var Pn,Ns;function $m(){if(Ns)return Pn;Ns=1;var e=xt(),t=Dm(),r=t(/^\s*(?:function)?\*/),n=rr()(),o=Ko(),i=e("Object.prototype.toString"),s=e("Function.prototype.toString"),c=function(){if(!n)return!1;try{return Function("return function*() {}")()}catch{}},u;return Pn=function(f){if(typeof f!="function")return!1;if(r(s(f)))return!0;if(!n){var p=i(f);return p==="[object GeneratorFunction]"}if(!o)return!1;if(typeof u>"u"){var d=c();u=d?o(d):!1}return o(f)===u},Pn}var In,Os;function Bm(){if(Os)return In;Os=1;var e=Function.prototype.toString,t=typeof Reflect=="object"&&Reflect!==null&&Reflect.apply,r,n;if(typeof t=="function"&&typeof Object.defineProperty=="function")try{r=Object.defineProperty({},"length",{get:function(){throw n}}),n={},t(function(){throw 42},null,r)}catch(E){E!==n&&(t=null)}else t=null;var o=/^\s*class\b/,i=function(_){try{var R=e.call(_);return o.test(R)}catch{return!1}},s=function(_){try{return i(_)?!1:(e.call(_),!0)}catch{return!1}},c=Object.prototype.toString,u="[object Object]",l="[object Function]",f="[object GeneratorFunction]",p="[object HTMLAllCollection]",d="[object HTML document.all class]",m="[object HTMLCollection]",h=typeof Symbol=="function"&&!!Symbol.toStringTag,y=!(0 in[,]),g=function(){return!1};if(typeof document=="object"){var b=document.all;c.call(b)===c.call(document.all)&&(g=function(_){if((y||!_)&&(typeof _>"u"||typeof _=="object"))try{var R=c.call(_);return(R===p||R===d||R===m||R===u)&&_("")==null}catch{}return!1})}return In=t?function(_){if(g(_))return!0;if(!_||typeof _!="function"&&typeof _!="object")return!1;try{t(_,null,r)}catch(R){if(R!==n)return!1}return!i(_)&&s(_)}:function(_){if(g(_))return!0;if(!_||typeof _!="function"&&typeof _!="object")return!1;if(h)return s(_);if(i(_))return!1;var R=c.call(_);return R!==l&&R!==f&&!/^\[object HTML/.test(R)?!1:s(_)},In}var Nn,Ts;function qm(){if(Ts)return Nn;Ts=1;var e=Bm(),t=Object.prototype.toString,r=Object.prototype.hasOwnProperty,n=function(u,l,f){for(var p=0,d=u.length;p<d;p++)r.call(u,p)&&(f==null?l(u[p],p,u):l.call(f,u[p],p,u))},o=function(u,l,f){for(var p=0,d=u.length;p<d;p++)f==null?l(u.charAt(p),p,u):l.call(f,u.charAt(p),p,u)},i=function(u,l,f){for(var p in u)r.call(u,p)&&(f==null?l(u[p],p,u):l.call(f,u[p],p,u))};function s(c){return t.call(c)==="[object Array]"}return Nn=function(u,l,f){if(!e(l))throw new TypeError("iterator must be a function");var p;arguments.length>=3&&(p=f),s(u)?n(u,l,p):typeof u=="string"?o(u,l,p):i(u,l,p)},Nn}var On,Ms;function Hm(){return Ms||(Ms=1,On=["Float16Array","Float32Array","Float64Array","Int8Array","Int16Array","Int32Array","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","BigInt64Array","BigUint64Array"]),On}var Tn,ks;function Fm(){if(ks)return Tn;ks=1;var e=Hm(),t=typeof globalThis>"u"?Vc:globalThis;return Tn=function(){for(var n=[],o=0;o<e.length;o++)typeof t[e[o]]=="function"&&(n[n.length]=e[o]);return n},Tn}var Mn={exports:{}},kn,Ls;function zm(){if(Ls)return kn;Ls=1;var e=nr(),t=Ju(),r=vt(),n=st();return kn=function(i,s,c){if(!i||typeof i!="object"&&typeof i!="function")throw new r("`obj` must be an object or a function`");if(typeof s!="string"&&typeof s!="symbol")throw new r("`property` must be a string or a symbol`");if(arguments.length>3&&typeof arguments[3]!="boolean"&&arguments[3]!==null)throw new r("`nonEnumerable`, if provided, must be a boolean or null");if(arguments.length>4&&typeof arguments[4]!="boolean"&&arguments[4]!==null)throw new r("`nonWritable`, if provided, must be a boolean or null");if(arguments.length>5&&typeof arguments[5]!="boolean"&&arguments[5]!==null)throw new r("`nonConfigurable`, if provided, must be a boolean or null");if(arguments.length>6&&typeof arguments[6]!="boolean")throw new r("`loose`, if provided, must be a boolean");var u=arguments.length>3?arguments[3]:null,l=arguments.length>4?arguments[4]:null,f=arguments.length>5?arguments[5]:null,p=arguments.length>6?arguments[6]:!1,d=!!n&&n(i,s);if(e)e(i,s,{configurable:f===null&&d?d.configurable:!f,enumerable:u===null&&d?d.enumerable:!u,value:c,writable:l===null&&d?d.writable:!l});else if(p||!u&&!l&&!f)i[s]=c;else throw new t("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.")},kn}var Ln,Ds;function Um(){if(Ds)return Ln;Ds=1;var e=nr(),t=function(){return!!e};return t.hasArrayLengthDefineBug=function(){if(!e)return null;try{return e([],"length",{value:1}).length!==1}catch{return!0}},Ln=t,Ln}var Dn,$s;function Gm(){if($s)return Dn;$s=1;var e=ol(),t=zm(),r=Um()(),n=st(),o=vt(),i=e("%Math.floor%");return Dn=function(c,u){if(typeof c!="function")throw new o("`fn` is not a function");if(typeof u!="number"||u<0||u>4294967295||i(u)!==u)throw new o("`length` must be a positive 32-bit integer");var l=arguments.length>2&&!!arguments[2],f=!0,p=!0;if("length"in c&&n){var d=n(c,"length");d&&!d.configurable&&(f=!1),d&&!d.writable&&(p=!1)}return(f||p||!l)&&(r?t(c,"length",u,!0,!0):t(c,"length",u)),c},Dn}var $n,Bs;function Wm(){if(Bs)return $n;Bs=1;var e=bt(),t=Wo(),r=rl();return $n=function(){return r(e,t,arguments)},$n}var qs;function Vm(){return qs||(qs=1,function(e){var t=Gm(),r=nr(),n=Vo(),o=Wm();e.exports=function(s){var c=n(arguments),u=s.length-(arguments.length-1);return t(c,1+(u>0?u:0),!0)},r?r(e.exports,"apply",{value:o}):e.exports.apply=o}(Mn)),Mn.exports}var Bn,Hs;function il(){if(Hs)return Bn;Hs=1;var e=qm(),t=Fm(),r=Vm(),n=xt(),o=st(),i=Ko(),s=n("Object.prototype.toString"),c=rr()(),u=typeof globalThis>"u"?Vc:globalThis,l=t(),f=n("String.prototype.slice"),p=n("Array.prototype.indexOf",!0)||function(g,b){for(var E=0;E<g.length;E+=1)if(g[E]===b)return E;return-1},d={__proto__:null};c&&o&&i?e(l,function(y){var g=new u[y];if(Symbol.toStringTag in g&&i){var b=i(g),E=o(b,Symbol.toStringTag);if(!E&&b){var _=i(b);E=o(_,Symbol.toStringTag)}d["$"+y]=r(E.get)}}):e(l,function(y){var g=new u[y],b=g.slice||g.set;b&&(d["$"+y]=r(b))});var m=function(g){var b=!1;return e(d,function(E,_){if(!b)try{"$"+E(g)===_&&(b=f(_,1))}catch{}}),b},h=function(g){var b=!1;return e(d,function(E,_){if(!b)try{E(g),b=f(_,1)}catch{}}),b};return Bn=function(g){if(!g||typeof g!="object")return!1;if(!c){var b=f(s(g),8,-1);return p(l,b)>-1?b:b!=="Object"?!1:h(g)}return o?m(g):null},Bn}var qn,Fs;function Km(){if(Fs)return qn;Fs=1;var e=il();return qn=function(r){return!!e(r)},qn}var zs;function Xm(){return zs||(zs=1,function(e){var t=km(),r=$m(),n=il(),o=Km();function i(H){return H.call.bind(H)}var s=typeof BigInt<"u",c=typeof Symbol<"u",u=i(Object.prototype.toString),l=i(Number.prototype.valueOf),f=i(String.prototype.valueOf),p=i(Boolean.prototype.valueOf);if(s)var d=i(BigInt.prototype.valueOf);if(c)var m=i(Symbol.prototype.valueOf);function h(H,he){if(typeof H!="object")return!1;try{return he(H),!0}catch{return!1}}e.isArgumentsObject=t,e.isGeneratorFunction=r,e.isTypedArray=o;function y(H){return typeof Promise<"u"&&H instanceof Promise||H!==null&&typeof H=="object"&&typeof H.then=="function"&&typeof H.catch=="function"}e.isPromise=y;function g(H){return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?ArrayBuffer.isView(H):o(H)||M(H)}e.isArrayBufferView=g;function b(H){return n(H)==="Uint8Array"}e.isUint8Array=b;function E(H){return n(H)==="Uint8ClampedArray"}e.isUint8ClampedArray=E;function _(H){return n(H)==="Uint16Array"}e.isUint16Array=_;function R(H){return n(H)==="Uint32Array"}e.isUint32Array=R;function S(H){return n(H)==="Int8Array"}e.isInt8Array=S;function j(H){return n(H)==="Int16Array"}e.isInt16Array=j;function x(H){return n(H)==="Int32Array"}e.isInt32Array=x;function P(H){return n(H)==="Float32Array"}e.isFloat32Array=P;function L(H){return n(H)==="Float64Array"}e.isFloat64Array=L;function A(H){return n(H)==="BigInt64Array"}e.isBigInt64Array=A;function O(H){return n(H)==="BigUint64Array"}e.isBigUint64Array=O;function N(H){return u(H)==="[object Map]"}N.working=typeof Map<"u"&&N(new Map);function D(H){return typeof Map>"u"?!1:N.working?N(H):H instanceof Map}e.isMap=D;function w(H){return u(H)==="[object Set]"}w.working=typeof Set<"u"&&w(new Set);function q(H){return typeof Set>"u"?!1:w.working?w(H):H instanceof Set}e.isSet=q;function z(H){return u(H)==="[object WeakMap]"}z.working=typeof WeakMap<"u"&&z(new WeakMap);function U(H){return typeof WeakMap>"u"?!1:z.working?z(H):H instanceof WeakMap}e.isWeakMap=U;function K(H){return u(H)==="[object WeakSet]"}K.working=typeof WeakSet<"u"&&K(new WeakSet);function W(H){return K(H)}e.isWeakSet=W;function F(H){return u(H)==="[object ArrayBuffer]"}F.working=typeof ArrayBuffer<"u"&&F(new ArrayBuffer);function ne(H){return typeof ArrayBuffer>"u"?!1:F.working?F(H):H instanceof ArrayBuffer}e.isArrayBuffer=ne;function I(H){return u(H)==="[object DataView]"}I.working=typeof ArrayBuffer<"u"&&typeof DataView<"u"&&I(new DataView(new ArrayBuffer(1),0,1));function M(H){return typeof DataView>"u"?!1:I.working?I(H):H instanceof DataView}e.isDataView=M;var B=typeof SharedArrayBuffer<"u"?SharedArrayBuffer:void 0;function X(H){return u(H)==="[object SharedArrayBuffer]"}function te(H){return typeof B>"u"?!1:(typeof X.working>"u"&&(X.working=X(new B)),X.working?X(H):H instanceof B)}e.isSharedArrayBuffer=te;function Z(H){return u(H)==="[object AsyncFunction]"}e.isAsyncFunction=Z;function k(H){return u(H)==="[object Map Iterator]"}e.isMapIterator=k;function J(H){return u(H)==="[object Set Iterator]"}e.isSetIterator=J;function Y(H){return u(H)==="[object Generator]"}e.isGeneratorObject=Y;function ee(H){return u(H)==="[object WebAssembly.Module]"}e.isWebAssemblyCompiledModule=ee;function $(H){return h(H,l)}e.isNumberObject=$;function T(H){return h(H,f)}e.isStringObject=T;function re(H){return h(H,p)}e.isBooleanObject=re;function se(H){return s&&h(H,d)}e.isBigIntObject=se;function ce(H){return c&&h(H,m)}e.isSymbolObject=ce;function ue(H){return $(H)||T(H)||re(H)||se(H)||ce(H)}e.isBoxedPrimitive=ue;function ae(H){return typeof Uint8Array<"u"&&(ne(H)||te(H))}e.isAnyArrayBuffer=ae,["isProxy","isExternal","isModuleNamespaceObject"].forEach(function(H){Object.defineProperty(e,H,{enumerable:!1,value:function(){throw new Error(H+" is not supported in userland")}})})}(Fr)),Fr}var Hn,Us;function Qm(){return Us||(Us=1,Hn=function(t){return t&&typeof t=="object"&&typeof t.copy=="function"&&typeof t.fill=="function"&&typeof t.readUInt8=="function"}),Hn}var $t={exports:{}},Gs;function Ym(){return Gs||(Gs=1,typeof Object.create=="function"?$t.exports=function(t,r){r&&(t.super_=r,t.prototype=Object.create(r.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}))}:$t.exports=function(t,r){if(r){t.super_=r;var n=function(){};n.prototype=r.prototype,t.prototype=new n,t.prototype.constructor=t}}),$t.exports}var Ws;function Zm(){return Ws||(Ws=1,function(e){var t=Object.getOwnPropertyDescriptors||function(M){for(var B=Object.keys(M),X={},te=0;te<B.length;te++)X[B[te]]=Object.getOwnPropertyDescriptor(M,B[te]);return X},r=/%[sdj%]/g;e.format=function(I){if(!S(I)){for(var M=[],B=0;B<arguments.length;B++)M.push(s(arguments[B]));return M.join(" ")}for(var B=1,X=arguments,te=X.length,Z=String(I).replace(r,function(J){if(J==="%%")return"%";if(B>=te)return J;switch(J){case"%s":return String(X[B++]);case"%d":return Number(X[B++]);case"%j":try{return JSON.stringify(X[B++])}catch{return"[Circular]"}default:return J}}),k=X[B];B<te;k=X[++B])E(k)||!L(k)?Z+=" "+k:Z+=" "+s(k);return Z},e.deprecate=function(I,M){if(typeof process<"u"&&process.noDeprecation===!0)return I;if(typeof process>"u")return function(){return e.deprecate(I,M).apply(this,arguments)};var B=!1;function X(){if(!B){if(process.throwDeprecation)throw new Error(M);process.traceDeprecation?console.trace(M):console.error(M),B=!0}return I.apply(this,arguments)}return X};var n={},o=/^$/;if(process.env.NODE_DEBUG){var i=process.env.NODE_DEBUG;i=i.replace(/[|\\{}()[\]^$+?.]/g,"\\$&").replace(/\*/g,".*").replace(/,/g,"$|^").toUpperCase(),o=new RegExp("^"+i+"$","i")}e.debuglog=function(I){if(I=I.toUpperCase(),!n[I])if(o.test(I)){var M=process.pid;n[I]=function(){var B=e.format.apply(e,arguments);console.error("%s %d: %s",I,M,B)}}else n[I]=function(){};return n[I]};function s(I,M){var B={seen:[],stylize:u};return arguments.length>=3&&(B.depth=arguments[2]),arguments.length>=4&&(B.colors=arguments[3]),b(M)?B.showHidden=M:M&&e._extend(B,M),x(B.showHidden)&&(B.showHidden=!1),x(B.depth)&&(B.depth=2),x(B.colors)&&(B.colors=!1),x(B.customInspect)&&(B.customInspect=!0),B.colors&&(B.stylize=c),f(B,I,B.depth)}e.inspect=s,s.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]},s.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"};function c(I,M){var B=s.styles[M];return B?"\x1B["+s.colors[B][0]+"m"+I+"\x1B["+s.colors[B][1]+"m":I}function u(I,M){return I}function l(I){var M={};return I.forEach(function(B,X){M[B]=!0}),M}function f(I,M,B){if(I.customInspect&&M&&N(M.inspect)&&M.inspect!==e.inspect&&!(M.constructor&&M.constructor.prototype===M)){var X=M.inspect(B,I);return S(X)||(X=f(I,X,B)),X}var te=p(I,M);if(te)return te;var Z=Object.keys(M),k=l(Z);if(I.showHidden&&(Z=Object.getOwnPropertyNames(M)),O(M)&&(Z.indexOf("message")>=0||Z.indexOf("description")>=0))return d(M);if(Z.length===0){if(N(M)){var J=M.name?": "+M.name:"";return I.stylize("[Function"+J+"]","special")}if(P(M))return I.stylize(RegExp.prototype.toString.call(M),"regexp");if(A(M))return I.stylize(Date.prototype.toString.call(M),"date");if(O(M))return d(M)}var Y="",ee=!1,$=["{","}"];if(g(M)&&(ee=!0,$=["[","]"]),N(M)){var T=M.name?": "+M.name:"";Y=" [Function"+T+"]"}if(P(M)&&(Y=" "+RegExp.prototype.toString.call(M)),A(M)&&(Y=" "+Date.prototype.toUTCString.call(M)),O(M)&&(Y=" "+d(M)),Z.length===0&&(!ee||M.length==0))return $[0]+Y+$[1];if(B<0)return P(M)?I.stylize(RegExp.prototype.toString.call(M),"regexp"):I.stylize("[Object]","special");I.seen.push(M);var re;return ee?re=m(I,M,B,k,Z):re=Z.map(function(se){return h(I,M,B,k,se,ee)}),I.seen.pop(),y(re,Y,$)}function p(I,M){if(x(M))return I.stylize("undefined","undefined");if(S(M)){var B="'"+JSON.stringify(M).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return I.stylize(B,"string")}if(R(M))return I.stylize(""+M,"number");if(b(M))return I.stylize(""+M,"boolean");if(E(M))return I.stylize("null","null")}function d(I){return"["+Error.prototype.toString.call(I)+"]"}function m(I,M,B,X,te){for(var Z=[],k=0,J=M.length;k<J;++k)K(M,String(k))?Z.push(h(I,M,B,X,String(k),!0)):Z.push("");return te.forEach(function(Y){Y.match(/^\d+$/)||Z.push(h(I,M,B,X,Y,!0))}),Z}function h(I,M,B,X,te,Z){var k,J,Y;if(Y=Object.getOwnPropertyDescriptor(M,te)||{value:M[te]},Y.get?Y.set?J=I.stylize("[Getter/Setter]","special"):J=I.stylize("[Getter]","special"):Y.set&&(J=I.stylize("[Setter]","special")),K(X,te)||(k="["+te+"]"),J||(I.seen.indexOf(Y.value)<0?(E(B)?J=f(I,Y.value,null):J=f(I,Y.value,B-1),J.indexOf(`
|
|
16
|
+
`)>-1&&(Z?J=J.split(`
|
|
17
|
+
`).map(function(ee){return" "+ee}).join(`
|
|
18
|
+
`).slice(2):J=`
|
|
19
|
+
`+J.split(`
|
|
20
|
+
`).map(function(ee){return" "+ee}).join(`
|
|
21
|
+
`))):J=I.stylize("[Circular]","special")),x(k)){if(Z&&te.match(/^\d+$/))return J;k=JSON.stringify(""+te),k.match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(k=k.slice(1,-1),k=I.stylize(k,"name")):(k=k.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),k=I.stylize(k,"string"))}return k+": "+J}function y(I,M,B){var X=I.reduce(function(te,Z){return Z.indexOf(`
|
|
22
|
+
`)>=0,te+Z.replace(/\u001b\[\d\d?m/g,"").length+1},0);return X>60?B[0]+(M===""?"":M+`
|
|
23
|
+
`)+" "+I.join(`,
|
|
24
|
+
`)+" "+B[1]:B[0]+M+" "+I.join(", ")+" "+B[1]}e.types=Xm();function g(I){return Array.isArray(I)}e.isArray=g;function b(I){return typeof I=="boolean"}e.isBoolean=b;function E(I){return I===null}e.isNull=E;function _(I){return I==null}e.isNullOrUndefined=_;function R(I){return typeof I=="number"}e.isNumber=R;function S(I){return typeof I=="string"}e.isString=S;function j(I){return typeof I=="symbol"}e.isSymbol=j;function x(I){return I===void 0}e.isUndefined=x;function P(I){return L(I)&&w(I)==="[object RegExp]"}e.isRegExp=P,e.types.isRegExp=P;function L(I){return typeof I=="object"&&I!==null}e.isObject=L;function A(I){return L(I)&&w(I)==="[object Date]"}e.isDate=A,e.types.isDate=A;function O(I){return L(I)&&(w(I)==="[object Error]"||I instanceof Error)}e.isError=O,e.types.isNativeError=O;function N(I){return typeof I=="function"}e.isFunction=N;function D(I){return I===null||typeof I=="boolean"||typeof I=="number"||typeof I=="string"||typeof I=="symbol"||typeof I>"u"}e.isPrimitive=D,e.isBuffer=Qm();function w(I){return Object.prototype.toString.call(I)}function q(I){return I<10?"0"+I.toString(10):I.toString(10)}var z=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function U(){var I=new Date,M=[q(I.getHours()),q(I.getMinutes()),q(I.getSeconds())].join(":");return[I.getDate(),z[I.getMonth()],M].join(" ")}e.log=function(){console.log("%s - %s",U(),e.format.apply(e,arguments))},e.inherits=Ym(),e._extend=function(I,M){if(!M||!L(M))return I;for(var B=Object.keys(M),X=B.length;X--;)I[B[X]]=M[B[X]];return I};function K(I,M){return Object.prototype.hasOwnProperty.call(I,M)}var W=typeof Symbol<"u"?Symbol("util.promisify.custom"):void 0;e.promisify=function(M){if(typeof M!="function")throw new TypeError('The "original" argument must be of type Function');if(W&&M[W]){var B=M[W];if(typeof B!="function")throw new TypeError('The "util.promisify.custom" argument must be of type Function');return Object.defineProperty(B,W,{value:B,enumerable:!1,writable:!1,configurable:!0}),B}function B(){for(var X,te,Z=new Promise(function(Y,ee){X=Y,te=ee}),k=[],J=0;J<arguments.length;J++)k.push(arguments[J]);k.push(function(Y,ee){Y?te(Y):X(ee)});try{M.apply(this,k)}catch(Y){te(Y)}return Z}return Object.setPrototypeOf(B,Object.getPrototypeOf(M)),W&&Object.defineProperty(B,W,{value:B,enumerable:!1,writable:!1,configurable:!0}),Object.defineProperties(B,t(M))},e.promisify.custom=W;function F(I,M){if(!I){var B=new Error("Promise was rejected with a falsy value");B.reason=I,I=B}return M(I)}function ne(I){if(typeof I!="function")throw new TypeError('The "original" argument must be of type Function');function M(){for(var B=[],X=0;X<arguments.length;X++)B.push(arguments[X]);var te=B.pop();if(typeof te!="function")throw new TypeError("The last argument must be of type Function");var Z=this,k=function(){return te.apply(Z,arguments)};I.apply(this,B).then(function(J){process.nextTick(k.bind(null,null,J))},function(J){process.nextTick(F.bind(null,J,k))})}return Object.setPrototypeOf(M,Object.getPrototypeOf(I)),Object.defineProperties(M,t(I)),M}e.callbackify=ne}(Hr)),Hr}var Vs;function Jm(){return Vs||(Vs=1,(()=>{var e={333:(o,i,s)=>{const c=s(137),u=s(179),l=s(13),f=s(719),p=(d,m={})=>{let h=[];if(Array.isArray(d))for(let y of d){let g=p.create(y,m);Array.isArray(g)?h.push(...g):h.push(g)}else h=[].concat(p.create(d,m));return m&&m.expand===!0&&m.nodupes===!0&&(h=[...new Set(h)]),h};p.parse=(d,m={})=>f(d,m),p.stringify=(d,m={})=>c(typeof d=="string"?p.parse(d,m):d,m),p.compile=(d,m={})=>(typeof d=="string"&&(d=p.parse(d,m)),u(d,m)),p.expand=(d,m={})=>{typeof d=="string"&&(d=p.parse(d,m));let h=l(d,m);return m.noempty===!0&&(h=h.filter(Boolean)),m.nodupes===!0&&(h=[...new Set(h)]),h},p.create=(d,m={})=>d===""||d.length<3?[d]:m.expand!==!0?p.compile(d,m):p.expand(d,m),o.exports=p},179:(o,i,s)=>{const c=s(783),u=s(617),l=(f,p={})=>{let d=(m,h={})=>{let y=u.isInvalidBrace(h),g=m.invalid===!0&&p.escapeInvalid===!0,b=y===!0||g===!0,E=p.escapeInvalid===!0?"\\":"",_="";if(m.isOpen===!0||m.isClose===!0)return E+m.value;if(m.type==="open")return b?E+m.value:"(";if(m.type==="close")return b?E+m.value:")";if(m.type==="comma")return m.prev.type==="comma"?"":b?m.value:"|";if(m.value)return m.value;if(m.nodes&&m.ranges>0){let R=u.reduce(m.nodes),S=c(...R,{...p,wrap:!1,toRegex:!0});if(S.length!==0)return R.length>1&&S.length>1?`(${S})`:S}if(m.nodes)for(let R of m.nodes)_+=d(R,m);return _};return d(f)};o.exports=l},457:o=>{o.exports={MAX_LENGTH:65536,CHAR_0:"0",CHAR_9:"9",CHAR_UPPERCASE_A:"A",CHAR_LOWERCASE_A:"a",CHAR_UPPERCASE_Z:"Z",CHAR_LOWERCASE_Z:"z",CHAR_LEFT_PARENTHESES:"(",CHAR_RIGHT_PARENTHESES:")",CHAR_ASTERISK:"*",CHAR_AMPERSAND:"&",CHAR_AT:"@",CHAR_BACKSLASH:"\\",CHAR_BACKTICK:"`",CHAR_CARRIAGE_RETURN:"\r",CHAR_CIRCUMFLEX_ACCENT:"^",CHAR_COLON:":",CHAR_COMMA:",",CHAR_DOLLAR:"$",CHAR_DOT:".",CHAR_DOUBLE_QUOTE:'"',CHAR_EQUAL:"=",CHAR_EXCLAMATION_MARK:"!",CHAR_FORM_FEED:"\f",CHAR_FORWARD_SLASH:"/",CHAR_HASH:"#",CHAR_HYPHEN_MINUS:"-",CHAR_LEFT_ANGLE_BRACKET:"<",CHAR_LEFT_CURLY_BRACE:"{",CHAR_LEFT_SQUARE_BRACKET:"[",CHAR_LINE_FEED:`
|
|
25
|
+
`,CHAR_NO_BREAK_SPACE:" ",CHAR_PERCENT:"%",CHAR_PLUS:"+",CHAR_QUESTION_MARK:"?",CHAR_RIGHT_ANGLE_BRACKET:">",CHAR_RIGHT_CURLY_BRACE:"}",CHAR_RIGHT_SQUARE_BRACKET:"]",CHAR_SEMICOLON:";",CHAR_SINGLE_QUOTE:"'",CHAR_SPACE:" ",CHAR_TAB:" ",CHAR_UNDERSCORE:"_",CHAR_VERTICAL_LINE:"|",CHAR_ZERO_WIDTH_NOBREAK_SPACE:"\uFEFF"}},13:(o,i,s)=>{const c=s(783),u=s(137),l=s(617),f=(d="",m="",h=!1)=>{let y=[];if(d=[].concat(d),m=[].concat(m),!m.length)return d;if(!d.length)return h?l.flatten(m).map(g=>`{${g}}`):m;for(let g of d)if(Array.isArray(g))for(let b of g)y.push(f(b,m,h));else for(let b of m)h===!0&&typeof b=="string"&&(b=`{${b}}`),y.push(Array.isArray(b)?f(g,b,h):g+b);return l.flatten(y)},p=(d,m={})=>{let h=m.rangeLimit===void 0?1e3:m.rangeLimit,y=(g,b={})=>{g.queue=[];let E=b,_=b.queue;for(;E.type!=="brace"&&E.type!=="root"&&E.parent;)E=E.parent,_=E.queue;if(g.invalid||g.dollar){_.push(f(_.pop(),u(g,m)));return}if(g.type==="brace"&&g.invalid!==!0&&g.nodes.length===2){_.push(f(_.pop(),["{}"]));return}if(g.nodes&&g.ranges>0){let x=l.reduce(g.nodes);if(l.exceedsLimit(...x,m.step,h))throw new RangeError("expanded array length exceeds range limit. Use options.rangeLimit to increase or disable the limit.");let P=c(...x,m);P.length===0&&(P=u(g,m)),_.push(f(_.pop(),P)),g.nodes=[];return}let R=l.encloseBrace(g),S=g.queue,j=g;for(;j.type!=="brace"&&j.type!=="root"&&j.parent;)j=j.parent,S=j.queue;for(let x=0;x<g.nodes.length;x++){let P=g.nodes[x];if(P.type==="comma"&&g.type==="brace"){x===1&&S.push(""),S.push("");continue}if(P.type==="close"){_.push(f(_.pop(),S,R));continue}if(P.value&&P.type!=="open"){S.push(f(S.pop(),P.value));continue}P.nodes&&y(P,g)}return S};return l.flatten(y(d))};o.exports=p},719:(o,i,s)=>{const c=s(137),{MAX_LENGTH:u,CHAR_BACKSLASH:l,CHAR_BACKTICK:f,CHAR_COMMA:p,CHAR_DOT:d,CHAR_LEFT_PARENTHESES:m,CHAR_RIGHT_PARENTHESES:h,CHAR_LEFT_CURLY_BRACE:y,CHAR_RIGHT_CURLY_BRACE:g,CHAR_LEFT_SQUARE_BRACKET:b,CHAR_RIGHT_SQUARE_BRACKET:E,CHAR_DOUBLE_QUOTE:_,CHAR_SINGLE_QUOTE:R,CHAR_NO_BREAK_SPACE:S,CHAR_ZERO_WIDTH_NOBREAK_SPACE:j}=s(457),x=(P,L={})=>{if(typeof P!="string")throw new TypeError("Expected a string");let A=L||{},O=typeof A.maxLength=="number"?Math.min(u,A.maxLength):u;if(P.length>O)throw new SyntaxError(`Input length (${P.length}), exceeds max characters (${O})`);let N={type:"root",input:P,nodes:[]},D=[N],w=N,q=N,z=0,U=P.length,K=0,W=0,F;const ne=()=>P[K++],I=M=>{if(M.type==="text"&&q.type==="dot"&&(q.type="text"),q&&q.type==="text"&&M.type==="text"){q.value+=M.value;return}return w.nodes.push(M),M.parent=w,M.prev=q,q=M,M};for(I({type:"bos"});K<U;)if(w=D[D.length-1],F=ne(),!(F===j||F===S)){if(F===l){I({type:"text",value:(L.keepEscaping?F:"")+ne()});continue}if(F===E){I({type:"text",value:"\\"+F});continue}if(F===b){z++;let M;for(;K<U&&(M=ne());){if(F+=M,M===b){z++;continue}if(M===l){F+=ne();continue}if(M===E&&(z--,z===0))break}I({type:"text",value:F});continue}if(F===m){w=I({type:"paren",nodes:[]}),D.push(w),I({type:"text",value:F});continue}if(F===h){if(w.type!=="paren"){I({type:"text",value:F});continue}w=D.pop(),I({type:"text",value:F}),w=D[D.length-1];continue}if(F===_||F===R||F===f){let M=F,B;for(L.keepQuotes!==!0&&(F="");K<U&&(B=ne());){if(B===l){F+=B+ne();continue}if(B===M){L.keepQuotes===!0&&(F+=B);break}F+=B}I({type:"text",value:F});continue}if(F===y){W++;let B={type:"brace",open:!0,close:!1,dollar:q.value&&q.value.slice(-1)==="$"||w.dollar===!0,depth:W,commas:0,ranges:0,nodes:[]};w=I(B),D.push(w),I({type:"open",value:F});continue}if(F===g){if(w.type!=="brace"){I({type:"text",value:F});continue}let M="close";w=D.pop(),w.close=!0,I({type:M,value:F}),W--,w=D[D.length-1];continue}if(F===p&&W>0){if(w.ranges>0){w.ranges=0;let M=w.nodes.shift();w.nodes=[M,{type:"text",value:c(w)}]}I({type:"comma",value:F}),w.commas++;continue}if(F===d&&W>0&&w.commas===0){let M=w.nodes;if(W===0||M.length===0){I({type:"text",value:F});continue}if(q.type==="dot"){if(w.range=[],q.value+=F,q.type="range",w.nodes.length!==3&&w.nodes.length!==5){w.invalid=!0,w.ranges=0,q.type="text";continue}w.ranges++,w.args=[];continue}if(q.type==="range"){M.pop();let B=M[M.length-1];B.value+=q.value+F,q=B,w.ranges--;continue}I({type:"dot",value:F});continue}I({type:"text",value:F})}do if(w=D.pop(),w.type!=="root"){w.nodes.forEach(X=>{X.nodes||(X.type==="open"&&(X.isOpen=!0),X.type==="close"&&(X.isClose=!0),X.nodes||(X.type="text"),X.invalid=!0)});let M=D[D.length-1],B=M.nodes.indexOf(w);M.nodes.splice(B,1,...w.nodes)}while(D.length>0);return I({type:"eos"}),N};o.exports=x},137:(o,i,s)=>{const c=s(617);o.exports=(u,l={})=>{let f=(p,d={})=>{let m=l.escapeInvalid&&c.isInvalidBrace(d),h=p.invalid===!0&&l.escapeInvalid===!0,y="";if(p.value)return(m||h)&&c.isOpenOrClose(p)?"\\"+p.value:p.value;if(p.value)return p.value;if(p.nodes)for(let g of p.nodes)y+=f(g);return y};return f(u)}},617:(o,i)=>{i.isInteger=s=>typeof s=="number"?Number.isInteger(s):typeof s=="string"&&s.trim()!==""?Number.isInteger(Number(s)):!1,i.find=(s,c)=>s.nodes.find(u=>u.type===c),i.exceedsLimit=(s,c,u=1,l)=>l===!1||!i.isInteger(s)||!i.isInteger(c)?!1:(Number(c)-Number(s))/Number(u)>=l,i.escapeNode=(s,c=0,u)=>{let l=s.nodes[c];l&&(u&&l.type===u||l.type==="open"||l.type==="close")&&l.escaped!==!0&&(l.value="\\"+l.value,l.escaped=!0)},i.encloseBrace=s=>s.type!=="brace"||s.commas>>0+s.ranges>>0?!1:(s.invalid=!0,!0),i.isInvalidBrace=s=>s.type!=="brace"?!1:s.invalid===!0||s.dollar?!0:!(s.commas>>0+s.ranges>>0)||s.open!==!0||s.close!==!0?(s.invalid=!0,!0):!1,i.isOpenOrClose=s=>s.type==="open"||s.type==="close"?!0:s.open===!0||s.close===!0,i.reduce=s=>s.reduce((c,u)=>(u.type==="text"&&c.push(u.value),u.type==="range"&&(u.type="text"),c),[]),i.flatten=(...s)=>{const c=[],u=l=>{for(let f=0;f<l.length;f++){let p=l[f];Array.isArray(p)?u(p):p!==void 0&&c.push(p)}return c};return u(s),c}},783:(o,i,s)=>{/*!
|
|
26
|
+
* fill-range <https://github.com/jonschlinkert/fill-range>
|
|
27
|
+
*
|
|
28
|
+
* Copyright (c) 2014-present, Jon Schlinkert.
|
|
29
|
+
* Licensed under the MIT License.
|
|
30
|
+
*/const c=s(837),u=s(492),l=A=>A!==null&&typeof A=="object"&&!Array.isArray(A),f=A=>O=>A===!0?Number(O):String(O),p=A=>typeof A=="number"||typeof A=="string"&&A!=="",d=A=>Number.isInteger(+A),m=A=>{let O=`${A}`,N=-1;if(O[0]==="-"&&(O=O.slice(1)),O==="0")return!1;for(;O[++N]==="0";);return N>0},h=(A,O,N)=>typeof A=="string"||typeof O=="string"?!0:N.stringify===!0,y=(A,O,N)=>{if(O>0){let D=A[0]==="-"?"-":"";D&&(A=A.slice(1)),A=D+A.padStart(D?O-1:O,"0")}return N===!1?String(A):A},g=(A,O)=>{let N=A[0]==="-"?"-":"";for(N&&(A=A.slice(1),O--);A.length<O;)A="0"+A;return N?"-"+A:A},b=(A,O)=>{A.negatives.sort((z,U)=>z<U?-1:z>U?1:0),A.positives.sort((z,U)=>z<U?-1:z>U?1:0);let N=O.capture?"":"?:",D="",w="",q;return A.positives.length&&(D=A.positives.join("|")),A.negatives.length&&(w=`-(${N}${A.negatives.join("|")})`),D&&w?q=`${D}|${w}`:q=D||w,O.wrap?`(${N}${q})`:q},E=(A,O,N,D)=>{if(N)return u(A,O,{wrap:!1,...D});let w=String.fromCharCode(A);if(A===O)return w;let q=String.fromCharCode(O);return`[${w}-${q}]`},_=(A,O,N)=>{if(Array.isArray(A)){let D=N.wrap===!0,w=N.capture?"":"?:";return D?`(${w}${A.join("|")})`:A.join("|")}return u(A,O,N)},R=(...A)=>new RangeError("Invalid range arguments: "+c.inspect(...A)),S=(A,O,N)=>{if(N.strictRanges===!0)throw R([A,O]);return[]},j=(A,O)=>{if(O.strictRanges===!0)throw new TypeError(`Expected step "${A}" to be a number`);return[]},x=(A,O,N=1,D={})=>{let w=Number(A),q=Number(O);if(!Number.isInteger(w)||!Number.isInteger(q)){if(D.strictRanges===!0)throw R([A,O]);return[]}w===0&&(w=0),q===0&&(q=0);let z=w>q,U=String(A),K=String(O),W=String(N);N=Math.max(Math.abs(N),1);let F=m(U)||m(K)||m(W),ne=F?Math.max(U.length,K.length,W.length):0,I=F===!1&&h(A,O,D)===!1,M=D.transform||f(I);if(D.toRegex&&N===1)return E(g(A,ne),g(O,ne),!0,D);let B={negatives:[],positives:[]},X=k=>B[k<0?"negatives":"positives"].push(Math.abs(k)),te=[],Z=0;for(;z?w>=q:w<=q;)D.toRegex===!0&&N>1?X(w):te.push(y(M(w,Z),ne,I)),w=z?w-N:w+N,Z++;return D.toRegex===!0?N>1?b(B,D):_(te,null,{wrap:!1,...D}):te},P=(A,O,N=1,D={})=>{if(!d(A)&&A.length>1||!d(O)&&O.length>1)return S(A,O,D);let w=D.transform||(I=>String.fromCharCode(I)),q=`${A}`.charCodeAt(0),z=`${O}`.charCodeAt(0),U=q>z,K=Math.min(q,z),W=Math.max(q,z);if(D.toRegex&&N===1)return E(K,W,!1,D);let F=[],ne=0;for(;U?q>=z:q<=z;)F.push(w(q,ne)),q=U?q-N:q+N,ne++;return D.toRegex===!0?_(F,null,{wrap:!1,options:D}):F},L=(A,O,N,D={})=>{if(O==null&&p(A))return[A];if(!p(A)||!p(O))return S(A,O,D);if(typeof N=="function")return L(A,O,1,{transform:N});if(l(N))return L(A,O,0,N);let w={...D};return w.capture===!0&&(w.wrap=!0),N=N||w.step||1,d(N)?d(A)&&d(O)?x(A,O,N,w):P(A,O,Math.max(Math.abs(N),1),w):N!=null&&!l(N)?j(N,w):L(A,O,1,N)};o.exports=L},357:o=>{/*!
|
|
31
|
+
* is-number <https://github.com/jonschlinkert/is-number>
|
|
32
|
+
*
|
|
33
|
+
* Copyright (c) 2014-present, Jon Schlinkert.
|
|
34
|
+
* Released under the MIT License.
|
|
35
|
+
*/o.exports=function(i){return typeof i=="number"?i-i===0:typeof i=="string"&&i.trim()!==""?Number.isFinite?Number.isFinite(+i):isFinite(+i):!1}},971:(o,i,s)=>{const c=s(837),u=s(333),l=s(251),f=s(513),p=m=>m===""||m==="./",d=(m,h,y)=>{h=[].concat(h),m=[].concat(m);let g=new Set,b=new Set,E=new Set,_=0,R=x=>{E.add(x.output),y&&y.onResult&&y.onResult(x)};for(let x=0;x<h.length;x++){let P=l(String(h[x]),{...y,onResult:R},!0),L=P.state.negated||P.state.negatedExtglob;L&&_++;for(let A of m){let O=P(A,!0);(L?!O.isMatch:O.isMatch)&&(L?g.add(O.output):(g.delete(O.output),b.add(O.output)))}}let j=(_===h.length?[...E]:[...b]).filter(x=>!g.has(x));if(y&&j.length===0){if(y.failglob===!0)throw new Error(`No matches found for "${h.join(", ")}"`);if(y.nonull===!0||y.nullglob===!0)return y.unescape?h.map(x=>x.replace(/\\/g,"")):h}return j};d.match=d,d.matcher=(m,h)=>l(m,h),d.isMatch=(m,h,y)=>l(h,y)(m),d.any=d.isMatch,d.not=(m,h,y={})=>{h=[].concat(h).map(String);let g=new Set,b=[],_=d(m,h,{...y,onResult:R=>{y.onResult&&y.onResult(R),b.push(R.output)}});for(let R of b)_.includes(R)||g.add(R);return[...g]},d.contains=(m,h,y)=>{if(typeof m!="string")throw new TypeError(`Expected a string: "${c.inspect(m)}"`);if(Array.isArray(h))return h.some(g=>d.contains(m,g,y));if(typeof h=="string"){if(p(m)||p(h))return!1;if(m.includes(h)||m.startsWith("./")&&m.slice(2).includes(h))return!0}return d.isMatch(m,h,{...y,contains:!0})},d.matchKeys=(m,h,y)=>{if(!f.isObject(m))throw new TypeError("Expected the first argument to be an object");let g=d(Object.keys(m),h,y),b={};for(let E of g)b[E]=m[E];return b},d.some=(m,h,y)=>{let g=[].concat(m);for(let b of[].concat(h)){let E=l(String(b),y);if(g.some(_=>E(_)))return!0}return!1},d.every=(m,h,y)=>{let g=[].concat(m);for(let b of[].concat(h)){let E=l(String(b),y);if(!g.every(_=>E(_)))return!1}return!0},d.all=(m,h,y)=>{if(typeof m!="string")throw new TypeError(`Expected a string: "${c.inspect(m)}"`);return[].concat(h).every(g=>l(g,y)(m))},d.capture=(m,h,y)=>{let g=f.isWindows(y),E=l.makeRe(String(m),{...y,capture:!0}).exec(g?f.toPosixSlashes(h):h);if(E)return E.slice(1).map(_=>_===void 0?"":_)},d.makeRe=(...m)=>l.makeRe(...m),d.scan=(...m)=>l.scan(...m),d.parse=(m,h)=>{let y=[];for(let g of[].concat(m||[]))for(let b of u(String(g),h))y.push(l.parse(b,h));return y},d.braces=(m,h)=>{if(typeof m!="string")throw new TypeError("Expected a string");return h&&h.nobrace===!0||!/\{.*\}/.test(m)?[m]:u(m,h)},d.braceExpand=(m,h)=>{if(typeof m!="string")throw new TypeError("Expected a string");return d.braces(m,{...h,expand:!0})},o.exports=d},251:(o,i,s)=>{o.exports=s(683)},356:(o,i,s)=>{const c=s(17),u="\\\\/",l=`[^${u}]`,f="\\.",p="\\+",d="\\?",m="\\/",h="(?=.)",y="[^/]",g=`(?:${m}|$)`,b=`(?:^|${m})`,E=`${f}{1,2}${g}`,_=`(?!${f})`,R=`(?!${b}${E})`,S=`(?!${f}{0,1}${g})`,j=`(?!${E})`,x=`[^.${m}]`,P=`${y}*?`,L={DOT_LITERAL:f,PLUS_LITERAL:p,QMARK_LITERAL:d,SLASH_LITERAL:m,ONE_CHAR:h,QMARK:y,END_ANCHOR:g,DOTS_SLASH:E,NO_DOT:_,NO_DOTS:R,NO_DOT_SLASH:S,NO_DOTS_SLASH:j,QMARK_NO_DOT:x,STAR:P,START_ANCHOR:b},A={...L,SLASH_LITERAL:`[${u}]`,QMARK:l,STAR:`${l}*?`,DOTS_SLASH:`${f}{1,2}(?:[${u}]|$)`,NO_DOT:`(?!${f})`,NO_DOTS:`(?!(?:^|[${u}])${f}{1,2}(?:[${u}]|$))`,NO_DOT_SLASH:`(?!${f}{0,1}(?:[${u}]|$))`,NO_DOTS_SLASH:`(?!${f}{1,2}(?:[${u}]|$))`,QMARK_NO_DOT:`[^.${u}]`,START_ANCHOR:`(?:^|[${u}])`,END_ANCHOR:`(?:[${u}]|$)`},O={alnum:"a-zA-Z0-9",alpha:"a-zA-Z",ascii:"\\x00-\\x7F",blank:" \\t",cntrl:"\\x00-\\x1F\\x7F",digit:"0-9",graph:"\\x21-\\x7E",lower:"a-z",print:"\\x20-\\x7E ",punct:"\\-!\"#$%&'()\\*+,./:;<=>?@[\\]^_`{|}~",space:" \\t\\r\\n\\v\\f",upper:"A-Z",word:"A-Za-z0-9_",xdigit:"A-Fa-f0-9"};o.exports={MAX_LENGTH:65536,POSIX_REGEX_SOURCE:O,REGEX_BACKSLASH:/\\(?![*+?^${}(|)[\]])/g,REGEX_NON_SPECIAL_CHARS:/^[^@![\].,$*+?^{}()|\\/]+/,REGEX_SPECIAL_CHARS:/[-*+?.^${}(|)[\]]/,REGEX_SPECIAL_CHARS_BACKREF:/(\\?)((\W)(\3*))/g,REGEX_SPECIAL_CHARS_GLOBAL:/([-*+?.^${}(|)[\]])/g,REGEX_REMOVE_BACKSLASH:/(?:\[.*?[^\\]\]|\\(?=.))/g,REPLACEMENTS:{"***":"*","**/**":"**","**/**/**":"**"},CHAR_0:48,CHAR_9:57,CHAR_UPPERCASE_A:65,CHAR_LOWERCASE_A:97,CHAR_UPPERCASE_Z:90,CHAR_LOWERCASE_Z:122,CHAR_LEFT_PARENTHESES:40,CHAR_RIGHT_PARENTHESES:41,CHAR_ASTERISK:42,CHAR_AMPERSAND:38,CHAR_AT:64,CHAR_BACKWARD_SLASH:92,CHAR_CARRIAGE_RETURN:13,CHAR_CIRCUMFLEX_ACCENT:94,CHAR_COLON:58,CHAR_COMMA:44,CHAR_DOT:46,CHAR_DOUBLE_QUOTE:34,CHAR_EQUAL:61,CHAR_EXCLAMATION_MARK:33,CHAR_FORM_FEED:12,CHAR_FORWARD_SLASH:47,CHAR_GRAVE_ACCENT:96,CHAR_HASH:35,CHAR_HYPHEN_MINUS:45,CHAR_LEFT_ANGLE_BRACKET:60,CHAR_LEFT_CURLY_BRACE:123,CHAR_LEFT_SQUARE_BRACKET:91,CHAR_LINE_FEED:10,CHAR_NO_BREAK_SPACE:160,CHAR_PERCENT:37,CHAR_PLUS:43,CHAR_QUESTION_MARK:63,CHAR_RIGHT_ANGLE_BRACKET:62,CHAR_RIGHT_CURLY_BRACE:125,CHAR_RIGHT_SQUARE_BRACKET:93,CHAR_SEMICOLON:59,CHAR_SINGLE_QUOTE:39,CHAR_SPACE:32,CHAR_TAB:9,CHAR_UNDERSCORE:95,CHAR_VERTICAL_LINE:124,CHAR_ZERO_WIDTH_NOBREAK_SPACE:65279,SEP:c.sep,extglobChars(N){return{"!":{type:"negate",open:"(?:(?!(?:",close:`))${N.STAR})`},"?":{type:"qmark",open:"(?:",close:")?"},"+":{type:"plus",open:"(?:",close:")+"},"*":{type:"star",open:"(?:",close:")*"},"@":{type:"at",open:"(?:",close:")"}}},globChars(N){return N===!0?A:L}}},754:(o,i,s)=>{const c=s(356),u=s(513),{MAX_LENGTH:l,POSIX_REGEX_SOURCE:f,REGEX_NON_SPECIAL_CHARS:p,REGEX_SPECIAL_CHARS_BACKREF:d,REPLACEMENTS:m}=c,h=(b,E)=>{if(typeof E.expandRange=="function")return E.expandRange(...b,E);b.sort();const _=`[${b.join("-")}]`;try{new RegExp(_)}catch{return b.map(S=>u.escapeRegex(S)).join("..")}return _},y=(b,E)=>`Missing ${b}: "${E}" - use "\\\\${E}" to match literal characters`,g=(b,E)=>{if(typeof b!="string")throw new TypeError("Expected a string");b=m[b]||b;const _={...E},R=typeof _.maxLength=="number"?Math.min(l,_.maxLength):l;let S=b.length;if(S>R)throw new SyntaxError(`Input length: ${S}, exceeds maximum allowed length: ${R}`);const j={type:"bos",value:"",output:_.prepend||""},x=[j],P=_.capture?"":"?:",L=u.isWindows(E),A=c.globChars(L),O=c.extglobChars(A),{DOT_LITERAL:N,PLUS_LITERAL:D,SLASH_LITERAL:w,ONE_CHAR:q,DOTS_SLASH:z,NO_DOT:U,NO_DOT_SLASH:K,NO_DOTS_SLASH:W,QMARK:F,QMARK_NO_DOT:ne,STAR:I,START_ANCHOR:M}=A,B=Q=>`(${P}(?:(?!${M}${Q.dot?z:N}).)*?)`,X=_.dot?"":U,te=_.dot?F:ne;let Z=_.bash===!0?B(_):I;_.capture&&(Z=`(${Z})`),typeof _.noext=="boolean"&&(_.noextglob=_.noext);const k={input:b,index:-1,start:0,dot:_.dot===!0,consumed:"",output:"",prefix:"",backtrack:!1,negated:!1,brackets:0,braces:0,parens:0,quotes:0,globstar:!1,tokens:x};b=u.removePrefix(b,k),S=b.length;const J=[],Y=[],ee=[];let $=j,T;const re=()=>k.index===S-1,se=k.peek=(Q=1)=>b[k.index+Q],ce=k.advance=()=>b[++k.index],ue=()=>b.slice(k.index+1),ae=(Q="",oe=0)=>{k.consumed+=Q,k.index+=oe},H=Q=>{k.output+=Q.output!=null?Q.output:Q.value,ae(Q.value)},he=()=>{let Q=1;for(;se()==="!"&&(se(2)!=="("||se(3)==="?");)ce(),k.start++,Q++;return Q%2===0?!1:(k.negated=!0,k.start++,!0)},ie=Q=>{k[Q]++,ee.push(Q)},me=Q=>{k[Q]--,ee.pop()},G=Q=>{if($.type==="globstar"){const oe=k.braces>0&&(Q.type==="comma"||Q.type==="brace"),V=Q.extglob===!0||J.length&&(Q.type==="pipe"||Q.type==="paren");Q.type!=="slash"&&Q.type!=="paren"&&!oe&&!V&&(k.output=k.output.slice(0,-$.output.length),$.type="star",$.value="*",$.output=Z,k.output+=$.output)}if(J.length&&Q.type!=="paren"&&!O[Q.value]&&(J[J.length-1].inner+=Q.value),(Q.value||Q.output)&&H(Q),$&&$.type==="text"&&Q.type==="text"){$.value+=Q.value,$.output=($.output||"")+Q.value;return}Q.prev=$,x.push(Q),$=Q},le=(Q,oe)=>{const V={...O[oe],conditions:1,inner:""};V.prev=$,V.parens=k.parens,V.output=k.output;const de=(_.capture?"(":"")+V.open;ie("parens"),G({type:Q,value:oe,output:k.output?"":q}),G({type:"paren",extglob:!0,value:ce(),output:de}),J.push(V)},Ae=Q=>{let oe=Q.close+(_.capture?")":"");if(Q.type==="negate"){let V=Z;Q.inner&&Q.inner.length>1&&Q.inner.includes("/")&&(V=B(_)),(V!==Z||re()||/^\)+$/.test(ue()))&&(oe=Q.close=`)$))${V}`),Q.prev.type==="bos"&&(k.negatedExtglob=!0)}G({type:"paren",extglob:!0,value:T,output:oe}),me("parens")};if(_.fastpaths!==!1&&!/(^[*!]|[/()[\]{}"])/.test(b)){let Q=!1,oe=b.replace(d,(V,de,_e,je,Ce,or)=>je==="\\"?(Q=!0,V):je==="?"?de?de+je+(Ce?F.repeat(Ce.length):""):or===0?te+(Ce?F.repeat(Ce.length):""):F.repeat(_e.length):je==="."?N.repeat(_e.length):je==="*"?de?de+je+(Ce?Z:""):Z:de?V:`\\${V}`);return Q===!0&&(_.unescape===!0?oe=oe.replace(/\\/g,""):oe=oe.replace(/\\+/g,V=>V.length%2===0?"\\\\":V?"\\":"")),oe===b&&_.contains===!0?(k.output=b,k):(k.output=u.wrapOutput(oe,k,E),k)}for(;!re();){if(T=ce(),T==="\0")continue;if(T==="\\"){const V=se();if(V==="/"&&_.bash!==!0||V==="."||V===";")continue;if(!V){T+="\\",G({type:"text",value:T});continue}const de=/^\\+/.exec(ue());let _e=0;if(de&&de[0].length>2&&(_e=de[0].length,k.index+=_e,_e%2!==0&&(T+="\\")),_.unescape===!0?T=ce()||"":T+=ce()||"",k.brackets===0){G({type:"text",value:T});continue}}if(k.brackets>0&&(T!=="]"||$.value==="["||$.value==="[^")){if(_.posix!==!1&&T===":"){const V=$.value.slice(1);if(V.includes("[")&&($.posix=!0,V.includes(":"))){const de=$.value.lastIndexOf("["),_e=$.value.slice(0,de),je=$.value.slice(de+2),Ce=f[je];if(Ce){$.value=_e+Ce,k.backtrack=!0,ce(),!j.output&&x.indexOf($)===1&&(j.output=q);continue}}}(T==="["&&se()!==":"||T==="-"&&se()==="]")&&(T=`\\${T}`),T==="]"&&($.value==="["||$.value==="[^")&&(T=`\\${T}`),_.posix===!0&&T==="!"&&$.value==="["&&(T="^"),$.value+=T,H({value:T});continue}if(k.quotes===1&&T!=='"'){T=u.escapeRegex(T),$.value+=T,H({value:T});continue}if(T==='"'){k.quotes=k.quotes===1?0:1,_.keepQuotes===!0&&G({type:"text",value:T});continue}if(T==="("){ie("parens"),G({type:"paren",value:T});continue}if(T===")"){if(k.parens===0&&_.strictBrackets===!0)throw new SyntaxError(y("opening","("));const V=J[J.length-1];if(V&&k.parens===V.parens+1){Ae(J.pop());continue}G({type:"paren",value:T,output:k.parens?")":"\\)"}),me("parens");continue}if(T==="["){if(_.nobracket===!0||!ue().includes("]")){if(_.nobracket!==!0&&_.strictBrackets===!0)throw new SyntaxError(y("closing","]"));T=`\\${T}`}else ie("brackets");G({type:"bracket",value:T});continue}if(T==="]"){if(_.nobracket===!0||$&&$.type==="bracket"&&$.value.length===1){G({type:"text",value:T,output:`\\${T}`});continue}if(k.brackets===0){if(_.strictBrackets===!0)throw new SyntaxError(y("opening","["));G({type:"text",value:T,output:`\\${T}`});continue}me("brackets");const V=$.value.slice(1);if($.posix!==!0&&V[0]==="^"&&!V.includes("/")&&(T=`/${T}`),$.value+=T,H({value:T}),_.literalBrackets===!1||u.hasRegexChars(V))continue;const de=u.escapeRegex($.value);if(k.output=k.output.slice(0,-$.value.length),_.literalBrackets===!0){k.output+=de,$.value=de;continue}$.value=`(${P}${de}|${$.value})`,k.output+=$.value;continue}if(T==="{"&&_.nobrace!==!0){ie("braces");const V={type:"brace",value:T,output:"(",outputIndex:k.output.length,tokensIndex:k.tokens.length};Y.push(V),G(V);continue}if(T==="}"){const V=Y[Y.length-1];if(_.nobrace===!0||!V){G({type:"text",value:T,output:T});continue}let de=")";if(V.dots===!0){const _e=x.slice(),je=[];for(let Ce=_e.length-1;Ce>=0&&(x.pop(),_e[Ce].type!=="brace");Ce--)_e[Ce].type!=="dots"&&je.unshift(_e[Ce].value);de=h(je,_),k.backtrack=!0}if(V.comma!==!0&&V.dots!==!0){const _e=k.output.slice(0,V.outputIndex),je=k.tokens.slice(V.tokensIndex);V.value=V.output="\\{",T=de="\\}",k.output=_e;for(const Ce of je)k.output+=Ce.output||Ce.value}G({type:"brace",value:T,output:de}),me("braces"),Y.pop();continue}if(T==="|"){J.length>0&&J[J.length-1].conditions++,G({type:"text",value:T});continue}if(T===","){let V=T;const de=Y[Y.length-1];de&&ee[ee.length-1]==="braces"&&(de.comma=!0,V="|"),G({type:"comma",value:T,output:V});continue}if(T==="/"){if($.type==="dot"&&k.index===k.start+1){k.start=k.index+1,k.consumed="",k.output="",x.pop(),$=j;continue}G({type:"slash",value:T,output:w});continue}if(T==="."){if(k.braces>0&&$.type==="dot"){$.value==="."&&($.output=N);const V=Y[Y.length-1];$.type="dots",$.output+=T,$.value+=T,V.dots=!0;continue}if(k.braces+k.parens===0&&$.type!=="bos"&&$.type!=="slash"){G({type:"text",value:T,output:N});continue}G({type:"dot",value:T,output:N});continue}if(T==="?"){if(!($&&$.value==="(")&&_.noextglob!==!0&&se()==="("&&se(2)!=="?"){le("qmark",T);continue}if($&&$.type==="paren"){const de=se();let _e=T;if(de==="<"&&!u.supportsLookbehinds())throw new Error("Node.js v10 or higher is required for regex lookbehinds");($.value==="("&&!/[!=<:]/.test(de)||de==="<"&&!/<([!=]|\w+>)/.test(ue()))&&(_e=`\\${T}`),G({type:"text",value:T,output:_e});continue}if(_.dot!==!0&&($.type==="slash"||$.type==="bos")){G({type:"qmark",value:T,output:ne});continue}G({type:"qmark",value:T,output:F});continue}if(T==="!"){if(_.noextglob!==!0&&se()==="("&&(se(2)!=="?"||!/[!=<:]/.test(se(3)))){le("negate",T);continue}if(_.nonegate!==!0&&k.index===0){he();continue}}if(T==="+"){if(_.noextglob!==!0&&se()==="("&&se(2)!=="?"){le("plus",T);continue}if($&&$.value==="("||_.regex===!1){G({type:"plus",value:T,output:D});continue}if($&&($.type==="bracket"||$.type==="paren"||$.type==="brace")||k.parens>0){G({type:"plus",value:T});continue}G({type:"plus",value:D});continue}if(T==="@"){if(_.noextglob!==!0&&se()==="("&&se(2)!=="?"){G({type:"at",extglob:!0,value:T,output:""});continue}G({type:"text",value:T});continue}if(T!=="*"){(T==="$"||T==="^")&&(T=`\\${T}`);const V=p.exec(ue());V&&(T+=V[0],k.index+=V[0].length),G({type:"text",value:T});continue}if($&&($.type==="globstar"||$.star===!0)){$.type="star",$.star=!0,$.value+=T,$.output=Z,k.backtrack=!0,k.globstar=!0,ae(T);continue}let Q=ue();if(_.noextglob!==!0&&/^\([^?]/.test(Q)){le("star",T);continue}if($.type==="star"){if(_.noglobstar===!0){ae(T);continue}const V=$.prev,de=V.prev,_e=V.type==="slash"||V.type==="bos",je=de&&(de.type==="star"||de.type==="globstar");if(_.bash===!0&&(!_e||Q[0]&&Q[0]!=="/")){G({type:"star",value:T,output:""});continue}const Ce=k.braces>0&&(V.type==="comma"||V.type==="brace"),or=J.length&&(V.type==="pipe"||V.type==="paren");if(!_e&&V.type!=="paren"&&!Ce&&!or){G({type:"star",value:T,output:""});continue}for(;Q.slice(0,3)==="/**";){const St=b[k.index+4];if(St&&St!=="/")break;Q=Q.slice(3),ae("/**",3)}if(V.type==="bos"&&re()){$.type="globstar",$.value+=T,$.output=B(_),k.output=$.output,k.globstar=!0,ae(T);continue}if(V.type==="slash"&&V.prev.type!=="bos"&&!je&&re()){k.output=k.output.slice(0,-(V.output+$.output).length),V.output=`(?:${V.output}`,$.type="globstar",$.output=B(_)+(_.strictSlashes?")":"|$)"),$.value+=T,k.globstar=!0,k.output+=V.output+$.output,ae(T);continue}if(V.type==="slash"&&V.prev.type!=="bos"&&Q[0]==="/"){const St=Q[1]!==void 0?"|$":"";k.output=k.output.slice(0,-(V.output+$.output).length),V.output=`(?:${V.output}`,$.type="globstar",$.output=`${B(_)}${w}|${w}${St})`,$.value+=T,k.output+=V.output+$.output,k.globstar=!0,ae(T+ce()),G({type:"slash",value:"/",output:""});continue}if(V.type==="bos"&&Q[0]==="/"){$.type="globstar",$.value+=T,$.output=`(?:^|${w}|${B(_)}${w})`,k.output=$.output,k.globstar=!0,ae(T+ce()),G({type:"slash",value:"/",output:""});continue}k.output=k.output.slice(0,-$.output.length),$.type="globstar",$.output=B(_),$.value+=T,k.output+=$.output,k.globstar=!0,ae(T);continue}const oe={type:"star",value:T,output:Z};if(_.bash===!0){oe.output=".*?",($.type==="bos"||$.type==="slash")&&(oe.output=X+oe.output),G(oe);continue}if($&&($.type==="bracket"||$.type==="paren")&&_.regex===!0){oe.output=T,G(oe);continue}(k.index===k.start||$.type==="slash"||$.type==="dot")&&($.type==="dot"?(k.output+=K,$.output+=K):_.dot===!0?(k.output+=W,$.output+=W):(k.output+=X,$.output+=X),se()!=="*"&&(k.output+=q,$.output+=q)),G(oe)}for(;k.brackets>0;){if(_.strictBrackets===!0)throw new SyntaxError(y("closing","]"));k.output=u.escapeLast(k.output,"["),me("brackets")}for(;k.parens>0;){if(_.strictBrackets===!0)throw new SyntaxError(y("closing",")"));k.output=u.escapeLast(k.output,"("),me("parens")}for(;k.braces>0;){if(_.strictBrackets===!0)throw new SyntaxError(y("closing","}"));k.output=u.escapeLast(k.output,"{"),me("braces")}if(_.strictSlashes!==!0&&($.type==="star"||$.type==="bracket")&&G({type:"maybe_slash",value:"",output:`${w}?`}),k.backtrack===!0){k.output="";for(const Q of k.tokens)k.output+=Q.output!=null?Q.output:Q.value,Q.suffix&&(k.output+=Q.suffix)}return k};g.fastpaths=(b,E)=>{const _={...E},R=typeof _.maxLength=="number"?Math.min(l,_.maxLength):l,S=b.length;if(S>R)throw new SyntaxError(`Input length: ${S}, exceeds maximum allowed length: ${R}`);b=m[b]||b;const j=u.isWindows(E),{DOT_LITERAL:x,SLASH_LITERAL:P,ONE_CHAR:L,DOTS_SLASH:A,NO_DOT:O,NO_DOTS:N,NO_DOTS_SLASH:D,STAR:w,START_ANCHOR:q}=c.globChars(j),z=_.dot?N:O,U=_.dot?D:O,K=_.capture?"":"?:",W={negated:!1,prefix:""};let F=_.bash===!0?".*?":w;_.capture&&(F=`(${F})`);const ne=X=>X.noglobstar===!0?F:`(${K}(?:(?!${q}${X.dot?A:x}).)*?)`,I=X=>{switch(X){case"*":return`${z}${L}${F}`;case".*":return`${x}${L}${F}`;case"*.*":return`${z}${F}${x}${L}${F}`;case"*/*":return`${z}${F}${P}${L}${U}${F}`;case"**":return z+ne(_);case"**/*":return`(?:${z}${ne(_)}${P})?${U}${L}${F}`;case"**/*.*":return`(?:${z}${ne(_)}${P})?${U}${F}${x}${L}${F}`;case"**/.*":return`(?:${z}${ne(_)}${P})?${x}${L}${F}`;default:{const te=/^(.*?)\.(\w+)$/.exec(X);if(!te)return;const Z=I(te[1]);return Z?Z+x+te[2]:void 0}}},M=u.removePrefix(b,W);let B=I(M);return B&&_.strictSlashes!==!0&&(B+=`${P}?`),B},o.exports=g},683:(o,i,s)=>{const c=s(17),u=s(700),l=s(754),f=s(513),p=s(356),d=h=>h&&typeof h=="object"&&!Array.isArray(h),m=(h,y,g=!1)=>{if(Array.isArray(h)){const P=h.map(A=>m(A,y,g));return A=>{for(const O of P){const N=O(A);if(N)return N}return!1}}const b=d(h)&&h.tokens&&h.input;if(h===""||typeof h!="string"&&!b)throw new TypeError("Expected pattern to be a non-empty string");const E=y||{},_=f.isWindows(y),R=b?m.compileRe(h,y):m.makeRe(h,y,!1,!0),S=R.state;delete R.state;let j=()=>!1;if(E.ignore){const P={...y,ignore:null,onMatch:null,onResult:null};j=m(E.ignore,P,g)}const x=(P,L=!1)=>{const{isMatch:A,match:O,output:N}=m.test(P,R,y,{glob:h,posix:_}),D={glob:h,state:S,regex:R,posix:_,input:P,output:N,match:O,isMatch:A};return typeof E.onResult=="function"&&E.onResult(D),A===!1?(D.isMatch=!1,L?D:!1):j(P)?(typeof E.onIgnore=="function"&&E.onIgnore(D),D.isMatch=!1,L?D:!1):(typeof E.onMatch=="function"&&E.onMatch(D),L?D:!0)};return g&&(x.state=S),x};m.test=(h,y,g,{glob:b,posix:E}={})=>{if(typeof h!="string")throw new TypeError("Expected input to be a string");if(h==="")return{isMatch:!1,output:""};const _=g||{},R=_.format||(E?f.toPosixSlashes:null);let S=h===b,j=S&&R?R(h):h;return S===!1&&(j=R?R(h):h,S=j===b),(S===!1||_.capture===!0)&&(_.matchBase===!0||_.basename===!0?S=m.matchBase(h,y,g,E):S=y.exec(j)),{isMatch:!!S,match:S,output:j}},m.matchBase=(h,y,g,b=f.isWindows(g))=>(y instanceof RegExp?y:m.makeRe(y,g)).test(c.basename(h)),m.isMatch=(h,y,g)=>m(y,g)(h),m.parse=(h,y)=>Array.isArray(h)?h.map(g=>m.parse(g,y)):l(h,{...y,fastpaths:!1}),m.scan=(h,y)=>u(h,y),m.compileRe=(h,y,g=!1,b=!1)=>{if(g===!0)return h.output;const E=y||{},_=E.contains?"":"^",R=E.contains?"":"$";let S=`${_}(?:${h.output})${R}`;h&&h.negated===!0&&(S=`^(?!${S}).*$`);const j=m.toRegex(S,y);return b===!0&&(j.state=h),j},m.makeRe=(h,y,g=!1,b=!1)=>{if(!h||typeof h!="string")throw new TypeError("Expected a non-empty string");const E=y||{};let _={negated:!1,fastpaths:!0},R="",S;return h.startsWith("./")&&(h=h.slice(2),R=_.prefix="./"),E.fastpaths!==!1&&(h[0]==="."||h[0]==="*")&&(S=l.fastpaths(h,y)),S===void 0?(_=l(h,y),_.prefix=R+(_.prefix||"")):_.output=S,m.compileRe(_,y,g,b)},m.toRegex=(h,y)=>{try{const g=y||{};return new RegExp(h,g.flags||(g.nocase?"i":""))}catch(g){if(y&&y.debug===!0)throw g;return/$^/}},m.constants=p,o.exports=m},700:(o,i,s)=>{const c=s(513),{CHAR_ASTERISK:u,CHAR_AT:l,CHAR_BACKWARD_SLASH:f,CHAR_COMMA:p,CHAR_DOT:d,CHAR_EXCLAMATION_MARK:m,CHAR_FORWARD_SLASH:h,CHAR_LEFT_CURLY_BRACE:y,CHAR_LEFT_PARENTHESES:g,CHAR_LEFT_SQUARE_BRACKET:b,CHAR_PLUS:E,CHAR_QUESTION_MARK:_,CHAR_RIGHT_CURLY_BRACE:R,CHAR_RIGHT_PARENTHESES:S,CHAR_RIGHT_SQUARE_BRACKET:j}=s(356),x=A=>A===h||A===f,P=A=>{A.isPrefix!==!0&&(A.depth=A.isGlobstar?1/0:1)},L=(A,O)=>{const N=O||{},D=A.length-1,w=N.parts===!0||N.scanToEnd===!0,q=[],z=[],U=[];let K=A,W=-1,F=0,ne=0,I=!1,M=!1,B=!1,X=!1,te=!1,Z=!1,k=!1,J=!1,Y=!1,ee=0,$,T,re={value:"",depth:0,isGlob:!1};const se=()=>W>=D,ce=()=>K.charCodeAt(W+1),ue=()=>($=T,K.charCodeAt(++W));for(;W<D;){T=ue();let me;if(T===f){k=re.backslashes=!0,T=ue(),T===y&&(Z=!0);continue}if(Z===!0||T===y){for(ee++;se()!==!0&&(T=ue());){if(T===f){k=re.backslashes=!0,ue();continue}if(T===y){ee++;continue}if(Z!==!0&&T===d&&(T=ue())===d){if(I=re.isBrace=!0,B=re.isGlob=!0,Y=!0,w===!0)continue;break}if(Z!==!0&&T===p){if(I=re.isBrace=!0,B=re.isGlob=!0,Y=!0,w===!0)continue;break}if(T===R&&(ee--,ee===0)){Z=!1,I=re.isBrace=!0,Y=!0;break}}if(w===!0)continue;break}if(T===h){if(q.push(W),z.push(re),re={value:"",depth:0,isGlob:!1},Y===!0)continue;if($===d&&W===F+1){F+=2;continue}ne=W+1;continue}if(N.noext!==!0&&(T===E||T===l||T===u||T===_||T===m)===!0&&ce()===g){if(B=re.isGlob=!0,X=re.isExtglob=!0,Y=!0,w===!0){for(;se()!==!0&&(T=ue());){if(T===f){k=re.backslashes=!0,T=ue();continue}if(T===S){B=re.isGlob=!0,Y=!0;break}}continue}break}if(T===u){if($===u&&(te=re.isGlobstar=!0),B=re.isGlob=!0,Y=!0,w===!0)continue;break}if(T===_){if(B=re.isGlob=!0,Y=!0,w===!0)continue;break}if(T===b){for(;se()!==!0&&(me=ue());){if(me===f){k=re.backslashes=!0,ue();continue}if(me===j){M=re.isBracket=!0,B=re.isGlob=!0,Y=!0;break}}if(w===!0)continue;break}if(N.nonegate!==!0&&T===m&&W===F){J=re.negated=!0,F++;continue}if(N.noparen!==!0&&T===g){if(B=re.isGlob=!0,w===!0){for(;se()!==!0&&(T=ue());){if(T===g){k=re.backslashes=!0,T=ue();continue}if(T===S){Y=!0;break}}continue}break}if(B===!0){if(Y=!0,w===!0)continue;break}}N.noext===!0&&(X=!1,B=!1);let ae=K,H="",he="";F>0&&(H=K.slice(0,F),K=K.slice(F),ne-=F),ae&&B===!0&&ne>0?(ae=K.slice(0,ne),he=K.slice(ne)):B===!0?(ae="",he=K):ae=K,ae&&ae!==""&&ae!=="/"&&ae!==K&&x(ae.charCodeAt(ae.length-1))&&(ae=ae.slice(0,-1)),N.unescape===!0&&(he&&(he=c.removeBackslashes(he)),ae&&k===!0&&(ae=c.removeBackslashes(ae)));const ie={prefix:H,input:A,start:F,base:ae,glob:he,isBrace:I,isBracket:M,isGlob:B,isExtglob:X,isGlobstar:te,negated:J};if(N.tokens===!0&&(ie.maxDepth=0,x(T)||z.push(re),ie.tokens=z),N.parts===!0||N.tokens===!0){let me;for(let G=0;G<q.length;G++){const le=me?me+1:F,Ae=q[G],Q=A.slice(le,Ae);N.tokens&&(G===0&&F!==0?(z[G].isPrefix=!0,z[G].value=H):z[G].value=Q,P(z[G]),ie.maxDepth+=z[G].depth),(G!==0||Q!=="")&&U.push(Q),me=Ae}if(me&&me+1<A.length){const G=A.slice(me+1);U.push(G),N.tokens&&(z[z.length-1].value=G,P(z[z.length-1]),ie.maxDepth+=z[z.length-1].depth)}ie.slashes=q,ie.parts=U}return ie};o.exports=L},513:(o,i,s)=>{const c=s(17),u=process.platform==="win32",{REGEX_BACKSLASH:l,REGEX_REMOVE_BACKSLASH:f,REGEX_SPECIAL_CHARS:p,REGEX_SPECIAL_CHARS_GLOBAL:d}=s(356);i.isObject=m=>m!==null&&typeof m=="object"&&!Array.isArray(m),i.hasRegexChars=m=>p.test(m),i.isRegexChar=m=>m.length===1&&i.hasRegexChars(m),i.escapeRegex=m=>m.replace(d,"\\$1"),i.toPosixSlashes=m=>m.replace(l,"/"),i.removeBackslashes=m=>m.replace(f,h=>h==="\\"?"":h),i.supportsLookbehinds=()=>{const m=process.version.slice(1).split(".").map(Number);return m.length===3&&m[0]>=9||m[0]===8&&m[1]>=10},i.isWindows=m=>m&&typeof m.windows=="boolean"?m.windows:u===!0||c.sep==="\\",i.escapeLast=(m,h,y)=>{const g=m.lastIndexOf(h,y);return g===-1?m:m[g-1]==="\\"?i.escapeLast(m,h,g-1):`${m.slice(0,g)}\\${m.slice(g)}`},i.removePrefix=(m,h={})=>{let y=m;return y.startsWith("./")&&(y=y.slice(2),h.prefix="./"),y},i.wrapOutput=(m,h={},y={})=>{const g=y.contains?"":"^",b=y.contains?"":"$";let E=`${g}(?:${m})${b}`;return h.negated===!0&&(E=`(?:^(?!${E}).*$)`),E}},492:(o,i,s)=>{/*!
|
|
36
|
+
* to-regex-range <https://github.com/micromatch/to-regex-range>
|
|
37
|
+
*
|
|
38
|
+
* Copyright (c) 2015-present, Jon Schlinkert.
|
|
39
|
+
* Released under the MIT License.
|
|
40
|
+
*/const c=s(357),u=(x,P,L)=>{if(c(x)===!1)throw new TypeError("toRegexRange: expected the first argument to be a number");if(P===void 0||x===P)return String(x);if(c(P)===!1)throw new TypeError("toRegexRange: expected the second argument to be a number.");let A={relaxZeros:!0,...L};typeof A.strictZeros=="boolean"&&(A.relaxZeros=A.strictZeros===!1);let O=String(A.relaxZeros),N=String(A.shorthand),D=String(A.capture),w=String(A.wrap),q=x+":"+P+"="+O+N+D+w;if(u.cache.hasOwnProperty(q))return u.cache[q].result;let z=Math.min(x,P),U=Math.max(x,P);if(Math.abs(z-U)===1){let I=x+"|"+P;return A.capture?`(${I})`:A.wrap===!1?I:`(?:${I})`}let K=S(x)||S(P),W={min:x,max:P,a:z,b:U},F=[],ne=[];if(K&&(W.isPadded=K,W.maxLen=String(W.max).length),z<0){let I=U<0?Math.abs(U):1;ne=d(I,Math.abs(z),W,A),z=W.a=0}return U>=0&&(F=d(z,U,W,A)),W.negatives=ne,W.positives=F,W.result=l(ne,F),A.capture===!0?W.result=`(${W.result})`:A.wrap!==!1&&F.length+ne.length>1&&(W.result=`(?:${W.result})`),u.cache[q]=W,W.result};function l(x,P,L){let A=m(x,P,"-",!1)||[],O=m(P,x,"",!1)||[],N=m(x,P,"-?",!0)||[];return A.concat(N).concat(O).join("|")}function f(x,P){let L=1,A=1,O=b(x,L),N=new Set([P]);for(;x<=O&&O<=P;)N.add(O),L+=1,O=b(x,L);for(O=E(P+1,A)-1;x<O&&O<=P;)N.add(O),A+=1,O=E(P+1,A)-1;return N=[...N],N.sort(y),N}function p(x,P,L){if(x===P)return{pattern:x,count:[],digits:0};let A=h(x,P),O=A.length,N="",D=0;for(let w=0;w<O;w++){let[q,z]=A[w];q===z?N+=q:q!=="0"||z!=="9"?N+=R(q,z):D++}return D&&(N+=L.shorthand===!0?"\\d":"[0-9]"),{pattern:N,count:[D],digits:O}}function d(x,P,L,A){let O=f(x,P),N=[],D=x,w;for(let q=0;q<O.length;q++){let z=O[q],U=p(String(D),String(z),A),K="";if(!L.isPadded&&w&&w.pattern===U.pattern){w.count.length>1&&w.count.pop(),w.count.push(U.count[0]),w.string=w.pattern+_(w.count),D=z+1;continue}L.isPadded&&(K=j(z,L,A)),U.string=K+U.pattern+_(U.count),N.push(U),D=z+1,w=U}return N}function m(x,P,L,A,O){let N=[];for(let D of x){let{string:w}=D;!A&&!g(P,"string",w)&&N.push(L+w),A&&g(P,"string",w)&&N.push(L+w)}return N}function h(x,P){let L=[];for(let A=0;A<x.length;A++)L.push([x[A],P[A]]);return L}function y(x,P){return x>P?1:P>x?-1:0}function g(x,P,L){return x.some(A=>A[P]===L)}function b(x,P){return Number(String(x).slice(0,-P)+"9".repeat(P))}function E(x,P){return x-x%Math.pow(10,P)}function _(x){let[P=0,L=""]=x;return L||P>1?`{${P+(L?","+L:"")}}`:""}function R(x,P,L){return`[${x}${P-x===1?"":"-"}${P}]`}function S(x){return/^-?(0+)\d/.test(x)}function j(x,P,L){if(!P.isPadded)return x;let A=Math.abs(P.maxLen-String(x).length),O=L.relaxZeros!==!1;switch(A){case 0:return"";case 1:return O?"0?":"0";case 2:return O?"0{0,2}":"00";default:return O?`0{0,${A}}`:`0{${A}}`}}u.cache={},u.clearCache=()=>u.cache={},o.exports=u},17:o=>{o.exports=gm},837:o=>{o.exports=Zm()}},t={};function r(o){var i=t[o];if(i!==void 0)return i.exports;var s=t[o]={exports:{}},c=!0;try{e[o](s,s.exports,r),c=!1}finally{c&&delete t[o]}return s.exports}typeof r<"u"&&(r.ab=__dirname+"/");var n=r(971);qr.exports=n})()),qr.exports}var Ks;function eh(){return Ks||(Ks=1,function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(i,s){for(var c in s)Object.defineProperty(i,c,{enumerable:!0,get:s[c]})}t(e,{matchRemotePattern:function(){return n},hasMatch:function(){return o}});const r=Jm();function n(i,s){if(i.protocol!==void 0){const u=s.protocol.slice(0,-1);if(i.protocol!==u)return!1}if(i.port!==void 0&&i.port!==s.port)return!1;if(i.hostname===void 0)throw new Error(`Pattern should define hostname but found
|
|
41
|
+
`+JSON.stringify(i));if(!(0,r.makeRe)(i.hostname).test(s.hostname))return!1;var c;return!!(0,r.makeRe)((c=i.pathname)!=null?c:"**").test(s.pathname)}function o(i,s,c){return i.some(u=>c.hostname===u)||s.some(u=>n(u,c))}}(Br)),Br}var Xs;function sl(){return Xs||(Xs=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return r}});function t(n){let{config:o,src:i,width:s,quality:c}=n;if(process.env.NODE_ENV!=="production"){const u=[];if(i||u.push("src"),s||u.push("width"),u.length>0)throw new Error("Next Image Optimization requires "+u.join(", ")+" to be provided. Make sure you pass them as props to the `next/image` component. Received: "+JSON.stringify({src:i,width:s,quality:c}));if(i.startsWith("//"))throw new Error('Failed to parse src "'+i+'" on `next/image`, protocol-relative URL (//) must be changed to an absolute URL (http:// or https://)');if(!i.startsWith("/")&&(o.domains||o.remotePatterns)){let l;try{l=new URL(i)}catch(f){throw console.error(f),new Error('Failed to parse src "'+i+'" on `next/image`, if using relative image it must start with a leading slash "/" or be an absolute URL (http:// or https://)')}if(process.env.NODE_ENV!=="test"&&process.env.NEXT_RUNTIME!=="edge"){const{hasMatch:f}=eh();if(!f(o.domains,o.remotePatterns,l))throw new Error("Invalid src prop ("+i+') on `next/image`, hostname "'+l.hostname+'" is not configured under images in your `next.config.js`\nSee more info: https://nextjs.org/docs/messages/next-image-unconfigured-host')}}}return o.path+"?url="+encodeURIComponent(i)+"&w="+s+"&q="+(c||75)+(process.env.NEXT_DEPLOYMENT_ID?"&dpl="+process.env.NEXT_DEPLOYMENT_ID:"")}t.__next_img_default=!0;const r=t}($r)),$r}(function(e,t){"use client";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"Image",{enumerable:!0,get:function(){return E}});const r=Re,o=Ke._(C),i=r._(ma),s=r._(mm()),c=Uo,u=tr,l=hm(),f=_t,p=tu(),d=r._(sl()),m=process.env.__NEXT_IMAGE_OPTS;typeof window>"u"&&(globalThis.__NEXT_IMAGE_IMPORTED=!0);function h(_,R,S,j,x,P){const L=_==null?void 0:_.src;if(!_||_["data-loaded-src"]===L)return;_["data-loaded-src"]=L,("decode"in _?_.decode():Promise.resolve()).catch(()=>{}).then(()=>{if(!(!_.parentElement||!_.isConnected)){if(R!=="empty"&&x(!0),S!=null&&S.current){const O=new Event("load");Object.defineProperty(O,"target",{writable:!1,value:_});let N=!1,D=!1;S.current({...O,nativeEvent:O,currentTarget:_,target:_,isDefaultPrevented:()=>N,isPropagationStopped:()=>D,persist:()=>{},preventDefault:()=>{N=!0,O.preventDefault()},stopPropagation:()=>{D=!0,O.stopPropagation()}})}if(j!=null&&j.current&&j.current(_),process.env.NODE_ENV!=="production"){const O=new URL(L,"http://n").searchParams.get("url")||L;if(_.getAttribute("data-nimg")==="fill"){if(!P&&(!_.getAttribute("sizes")||_.getAttribute("sizes")==="100vw")&&_.getBoundingClientRect().width/window.innerWidth<.6&&(0,f.warnOnce)('Image with src "'+O+'" has "fill" but is missing "sizes" prop. Please add it to improve page performance. Read more: https://nextjs.org/docs/api-reference/next/image#sizes'),_.parentElement){const{position:w}=window.getComputedStyle(_.parentElement),q=["absolute","fixed","relative"];q.includes(w)||(0,f.warnOnce)('Image with src "'+O+'" has "fill" and parent element with invalid "position". Provided "'+w+'" should be one of '+q.map(String).join(",")+".")}_.height===0&&(0,f.warnOnce)('Image with src "'+O+'" has "fill" and a height value of 0. This is likely because the parent element of the image has not been styled to have a set height.')}const N=_.height.toString()!==_.getAttribute("height"),D=_.width.toString()!==_.getAttribute("width");(N&&!D||!N&&D)&&(0,f.warnOnce)('Image with src "'+O+`" has either width or height modified, but not the other. If you use CSS to change the size of your image, also include the styles 'width: "auto"' or 'height: "auto"' to maintain the aspect ratio.`)}}})}function y(_){const[R,S]=o.version.split("."),j=parseInt(R,10),x=parseInt(S,10);return j>18||j===18&&x>=3?{fetchPriority:_}:{fetchpriority:_}}const g=(0,o.forwardRef)((_,R)=>{let{src:S,srcSet:j,sizes:x,height:P,width:L,decoding:A,className:O,style:N,fetchPriority:D,placeholder:w,loading:q,unoptimized:z,fill:U,onLoadRef:K,onLoadingCompleteRef:W,setBlurComplete:F,setShowAltText:ne,onLoad:I,onError:M,...B}=_;return o.default.createElement("img",{...B,...y(D),loading:q,width:L,height:P,decoding:A,"data-nimg":U?"fill":"1",className:O,style:N,sizes:x,srcSet:j,src:S,ref:(0,o.useCallback)(X=>{R&&(typeof R=="function"?R(X):typeof R=="object"&&(R.current=X)),X&&(M&&(X.src=X.src),process.env.NODE_ENV!=="production"&&(S||console.error('Image is missing required "src" property:',X),X.getAttribute("alt")===null&&console.error('Image is missing required "alt" property. Please add Alternative Text to describe the image for screen readers and search engines.')),X.complete&&h(X,w,K,W,F,z))},[S,w,K,W,F,M,z,R]),onLoad:X=>{const te=X.currentTarget;h(te,w,K,W,F,z)},onError:X=>{ne(!0),w!=="empty"&&F(!0),M&&M(X)}})});function b(_){let{isAppRouter:R,imgAttributes:S}=_;const j={as:"image",imageSrcSet:S.srcSet,imageSizes:S.sizes,crossOrigin:S.crossOrigin,referrerPolicy:S.referrerPolicy,...y(S.fetchPriority)};return R&&i.default.preload?(i.default.preload(S.src,j),null):o.default.createElement(s.default,null,o.default.createElement("link",{key:"__nimg-"+S.src+S.srcSet+S.sizes,rel:"preload",href:S.srcSet?void 0:S.src,...j}))}const E=(0,o.forwardRef)((_,R)=>{const j=!(0,o.useContext)(p.RouterContext),x=(0,o.useContext)(l.ImageConfigContext),P=(0,o.useMemo)(()=>{const W=m||x||u.imageConfigDefault,F=[...W.deviceSizes,...W.imageSizes].sort((I,M)=>I-M),ne=W.deviceSizes.sort((I,M)=>I-M);return{...W,allSizes:F,deviceSizes:ne}},[x]),{onLoad:L,onLoadingComplete:A}=_,O=(0,o.useRef)(L);(0,o.useEffect)(()=>{O.current=L},[L]);const N=(0,o.useRef)(A);(0,o.useEffect)(()=>{N.current=A},[A]);const[D,w]=(0,o.useState)(!1),[q,z]=(0,o.useState)(!1),{props:U,meta:K}=(0,c.getImgProps)(_,{defaultLoader:d.default,imgConf:P,blurComplete:D,showAltText:q});return o.default.createElement(o.default.Fragment,null,o.default.createElement(g,{...U,unoptimized:K.unoptimized,placeholder:K.placeholder,fill:K.fill,onLoadRef:O,onLoadingCompleteRef:N,setBlurComplete:w,setShowAltText:z,ref:R}),K.priority?o.default.createElement(b,{isAppRouter:j,imgAttributes:U}):null)});(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)})(oo,oo.exports);var th=oo.exports;(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(l,f){for(var p in f)Object.defineProperty(l,p,{enumerable:!0,get:f[p]})}t(e,{unstable_getImgProps:function(){return c},default:function(){return u}});const r=Re,n=Uo,o=_t,i=th,s=r._(sl()),c=l=>{(0,o.warnOnce)("Warning: unstable_getImgProps() is experimental and may change or be removed at any time. Use at your own risk.");const{props:f}=(0,n.getImgProps)(l,{defaultLoader:s.default,imgConf:process.env.__NEXT_IMAGE_OPTS});for(const[p,d]of Object.entries(f))d===void 0&&delete f[p];return{props:f}},u=i.Image})(Ku);var rh=Ku;const Qs=Yt(rh),nh=({item:e,CONSTANTS:t})=>{const r=e.icon?t.PAYMENT_FLAGS.includes(e.icon)?"payment":"social":null,n=r==="payment"?t.PAYMENT_FLAGS_DICTIONARY[e.icon]:e.icon;return e.link?a.jsxs(Ne,{href:e.link,target:"_blank",rel:"noopener noreferrer",className:pe["support-item"],children:[e.image&&a.jsx("img",{src:e.image,alt:"",loading:"lazy"}),r==="payment"?a.jsx(Qs,{alt:n,src:`/assets/${n}.svg`,width:20,height:20}):a.jsx(v.Icon,{size:"small",name:n})]}):a.jsxs("div",{className:pe["support-item"],children:[e.image&&a.jsx("img",{src:e.image,alt:"",loading:"lazy"}),r==="payment"?a.jsx(Qs,{alt:n,src:`/assets/${n}.svg`,width:20,height:20}):a.jsx(v.Icon,{size:"small",name:n})]})},oh=({content:e,CONSTANTS:t})=>a.jsx("div",{className:pe["support-container"],children:e==null?void 0:e.map((r,n)=>a.jsxs("div",{"data-device":r.device,className:pe["support-section"],children:[a.jsxs("div",{className:pe["support-text"],children:[r.title&&a.jsx("h3",{children:r.title}),r.description&&a.jsx("p",{children:r.description})]}),r.items.length&&a.jsx("div",{className:pe["support-items"],"data-gap":r.gap,children:r.items.map((o,i)=>a.jsx(nh,{item:o,CONSTANTS:t},`footer-support-item-${i}`))})]},`footer-support-${n}`))}),ih=({name:e,nameIcon:t,maxWidth:r,rowAlignContent:n,columnAlignContent:o,columnAlignItems:i,textAlignContent:s,textAlignItems:c,children:u})=>a.jsx(v.TextStructure.Root,{layoutProps:{textRow:{alignContent:n,alignItems:n},columnWrapper:{alignContent:o,alignItems:i}},children:a.jsxs(v.TextStructure.DivWrapper,{alignContent:s,alignItems:c,className:pe.footer__column,children:[a.jsxs("div",{className:t?pe.footer__columnTitleIcon:pe.footer__columnTitle,children:[a.jsx(v.Icon,{name:`${t}`,size:"small"}),e&&a.jsx("div",{children:e})]}),a.jsx("div",{className:pe.footer__columnContent,style:{maxWidth:`${r}px`},children:u})]})}),sh=({name:e,nameIcon:t,maxWidth:r,children:n,ICONS:o,...i})=>a.jsxs(v.Accordion.Wrapper,{className:pe.accordionWrapper,title:"accordion-wrapper",...i,children:[a.jsx(v.Accordion.Header,{id:(i==null?void 0:i.id)??"",className:pe.accordionHeader,closeIndicator:a.jsx(v.Icon,{name:o.arrow_up,size:"medium"}),openIndicator:a.jsx(v.Icon,{name:o.arrow_down,size:"medium"}),title:"accordion-header",children:a.jsx(v.TextStructure.Root,{children:a.jsxs(v.TextStructure.DivWrapper,{className:t?pe.accordionTextWrapper:"",children:[a.jsx(v.Icon,{name:`${t}`,size:"medium"}),a.jsx("h2",{className:"typography-style-body-md",children:e})]})})}),a.jsx(v.Accordion.Body,{title:"accordion-body",children:a.jsx(v.TextStructure.Root,{children:a.jsx(v.TextStructure.DivWrapper,{className:pe.footer__columnContent,style:{maxWidth:`${r}px`},children:n})})})]}),Fn=e=>{const{isMobile:t}=Se();return t?a.jsx(sh,{...e}):a.jsx(ih,{...e})},Bt=({type:e,children:t,className:r,collumnName:n,collumnNameIcon:o,icons:i,iconLink:s,iconSize:c,link:u,paymentDisclaimer:l,paymentTitle:f,rowAlignContent:p,columnAlignContent:d,columnAlignItems:m,textAlignContent:h,textAlignItems:y,...g})=>{let b;const{handleSelectContent:E}=ge(),{nextimage:_}=Pe();switch(e){case"menu":b=a.jsx(Ne,{className:pe.footer__itemLink,href:u??"#",prefetch:!1,children:a.jsx("span",{onClick:()=>{E({content:`footer:${n}:${t}`})},children:t})});break;case"payment":b=a.jsxs("div",{className:v.helpers.classNameConcat(pe.payment,pe.footer__itemSmallText),...g,children:[l,a.jsxs("div",{className:v.helpers.classNameConcat(pe.footer__iconContainer,pe.footer__iconListSubHeader),children:[f,a.jsx("div",{className:pe.footer__iconList,children:i==null?void 0:i.map((R,S)=>a.jsx(_,{alt:R,src:`/assets/${R}.svg`,width:c??20,height:c??20},S))})]})]});break;case"social-media":b=a.jsx("div",{className:pe.footer__iconContainer,...g,children:a.jsx("div",{className:pe.footer__iconList,children:s==null?void 0:s.map((R,S)=>a.jsx(Ne,{prefetch:!1,href:R.link??"#",target:"_blank",children:a.jsx(v.Icon,{size:"medium",name:R.icon,onClick:()=>E({content:`footer:redes-sociais:${R.icon}`})})},S))})});break;default:b=a.jsx("div",{className:r,...g,children:t})}return a.jsx(v.TextStructure.Root,{layoutProps:{textRow:{alignContent:p,alignItems:p},columnWrapper:{alignContent:d,alignItems:m}},...g,children:a.jsx(v.TextStructure.DivWrapper,{alignContent:h,alignItems:y,className:v.helpers.classNameConcat(pe.footer__item,r),children:b})})},ah=({className:e,text:t,...r})=>a.jsx("div",{...r,className:v.helpers.classNameConcat(pe.footer__legalInformation,e),children:a.jsx("span",{children:t})}),al=()=>{const{nextimage:e}=Pe();return a.jsx("div",{className:pe["footer--stamps"],children:a.jsx(e,{alt:"Empresa B",className:pe["footer--stamps--company"],src:"/images/Footer/new_certfB.png",width:56,height:64})})};al.displayName="Footer.Stamps";const cl=({children:e,legalTextSlot:t,adornment:r,className:n,...o})=>{const{isMobile:i}=Se(),s=C.Children.toArray(e).filter(Boolean),c=s.length;return a.jsxs("div",{className:pe.footer__main,children:[(r==null?void 0:r.top)&&a.jsx("div",{className:pe.footer__top,children:r==null?void 0:r.top}),c>0&&a.jsx("div",{...o,className:v.helpers.classNameConcat(pe.footer__wrapper,n),children:s.map((u,l)=>a.jsx("div",{style:{flexGrow:1,maxWidth:`calc(100% / ${i?1:"fit-content"})`},children:u},l))}),(r==null?void 0:r.bottom)&&a.jsx("div",{className:pe.footer__bottom,children:r.bottom}),t&&a.jsx("div",{className:pe.footer__legalText,children:t})]})};cl.displayName="Footer.Wrapper";const ul=({data:{links:{links:e}},payments:t,socialInfo:r,socialMedias:n,adornment:o,LEGAL_INFORMATION_TEXT:i,ICONS:s})=>{var c;return a.jsxs(cl,{adornment:o,legalTextSlot:a.jsx(ah,{text:i}),children:[Array.isArray(e.column)&&e.column.map((u,l)=>a.jsx(Fn,{id:`${l}column-menu`,name:u.name,nameIcon:u.nameIcon,ICONS:s,children:u.items.map((f,p)=>a.jsx(Bt,{type:"menu",link:f.link,collumnName:u.name,collumnNameIcon:u.nameIcon,children:f.text},p))},l)),t&&((c=t.acceptedFlags)==null?void 0:c.length)>0&&a.jsx(Fn,{id:"payment-column",name:t==null?void 0:t.title,nameIcon:t==null?void 0:t.titleIcon,maxWidth:150,ICONS:s,children:a.jsx(Bt,{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})}),a.jsxs(Fn,{id:"social-media-column",name:r==null?void 0:r.title,ICONS:s,children:[r!=null&&r.subTitle?a.jsx(Bt,{children:r==null?void 0:r.subTitle}):null,a.jsx(Bt,{type:"social-media",iconSize:24,iconLink:n}),a.jsx(al,{})]})]})};ul.displayName="Footer";const ch=Object.freeze(Object.defineProperty({__proto__:null,Footer:ul,FooterSupport:oh},Symbol.toStringTag,{value:"Module"})),Ys=({image:e,index:t,handleZoom:r,PRODUCT_IMAGE_DIMENSIONS:n})=>{const o=va(e.imageUrl,n.pdp),{nextimage:i}=Pe();return a.jsx(i,{src:o,alt:e.imageLabel,objectFit:"contain",...n.pdp,...t<=1&&{priority:!0,loading:"eager"},onClick:()=>{r(t)}},t)},uh=({video:e,productName:t,poster:r})=>{const{sendDataLayerEvent:n}=ge(),o=C.useRef(!1);return a.jsx($e.Video,{src:e,autoPlay:!0,muted:!0,loop:!0,playsInline:!0,style:{zIndex:-1,aspectRatio:"2/3"},onPlaying:()=>{o.current||(o.current=!0,n({functionKey:"readyEvents",data:{event:"video_start",readyData:{product:t}}}))},poster:r})},lh={"gallery-carousel-modifier":"_gallery-carousel-modifier_1dxfy_92"},ll=({images:e,video:t,handleZoom:r,productName:n,PRODUCT_IMAGE_DIMENSIONS:o})=>{var l,f;const{initialize:i,pagination:s,controller:c,itemsStyles:u}=v.Carousel.useCarousel({gap:0,itemsPerPage:1,loop:!1,direction:"row"});return a.jsxs(v.Carousel.Root,{innerRef:p=>{i(p)},className:lh["gallery-carousel-modifier"],children:[a.jsx(v.Carousel.Controller,{position:"absolute",top:"24px",bottom:"unset",left:"16px",children:a.jsx(v.Carousel.Bullets,{page:s.currentPage,total:e.length,onBulletClick:p=>c==null?void 0:c.navigateTo(p)})}),a.jsxs(v.Carousel.Body,{children:[a.jsx(v.Carousel.Item,{style:u,children:a.jsx(Ys,{image:e[0],index:0,handleZoom:r,PRODUCT_IMAGE_DIMENSIONS:o})},"PDP_gallery_0"),t&&a.jsx(v.Carousel.Item,{style:u,children:a.jsx(uh,{video:t,productName:n,...((l=e[1])==null?void 0:l.imageUrl)&&{poster:(f=e[1])==null?void 0:f.imageUrl}})},"PDP_gallery_video"),e.map((p,d)=>d===0?null:a.jsx(v.Carousel.Item,{style:u,children:a.jsx(Ys,{image:p,index:d,handleZoom:r,PRODUCT_IMAGE_DIMENSIONS:o})},`PDP_gallery_${d}`))]})]})};ll.displayName="PDP.Carousel";const dh=({productImgs:e,PRODUCT_IMAGE_DIMENSIONS:t})=>{const{video:r,productName:n}=jo(),[o,i]=C.useState({show:!1,initialIndex:0});C.useEffect(()=>(o.show?document.body.classList.add("no-scroll"):document.body.classList.remove("no-scroll"),()=>{document.body.classList.remove("no-scroll")}),[o]);const s=c=>{i({show:!0,initialIndex:c})};return a.jsx(a.Fragment,{children:a.jsx(ll,{images:e,video:r,handleZoom:s,productName:n,PRODUCT_IMAGE_DIMENSIONS:t})})},dl=({TEXTURE_IMAGE:e,PRODUCT_IMAGE_DIMENSIONS:t})=>{const{images:r}=jo(),n=C.useMemo(()=>{const o=r.filter(i=>!e.includes(i.imageLabel));return o.length>0?o:r},[]);return a.jsx(dh,{productImgs:n,PRODUCT_IMAGE_DIMENSIONS:t})};dl.displayName="PDP.Gallery";const fh=Object.freeze(Object.defineProperty({__proto__:null,Gallery:dl},Symbol.toStringTag,{value:"Module"})),ph="_container_1sy8s_16",Fe={"carousel-container":"_carousel-container_1sy8s_1","add-cart-container":"_add-cart-container_1sy8s_8",container:ph,"add-itens-to-cart-container":"_add-itens-to-cart-container_1sy8s_38","add-itens-to-cart-container-values":"_add-itens-to-cart-container-values_1sy8s_45","add-itens-to-cart-qty-products":"_add-itens-to-cart-qty-products_1sy8s_50","add-itens-to-cart-total":"_add-itens-to-cart-total_1sy8s_60","add-button":"_add-button_1sy8s_70"},mh=({selectedProducts:e,handleAddAllToCart:t,CONSTANTS:r})=>{const n=Object.values(e.products).length;return a.jsxs("div",{className:Fe["add-itens-to-cart-container"],children:[a.jsxs("div",{className:Fe["add-itens-to-cart-container-values"],children:[a.jsx("div",{className:Fe["add-itens-to-cart-qty-products"],children:a.jsx("span",{children:n===0?r.BUY_PACKAGE.group_cart.select_all_product:`${n} ${n===1?r.BUY_PACKAGE.group_cart.select_product:r.BUY_PACKAGE.group_cart.select_product+"s"}`})}),a.jsx("div",{className:Fe["add-itens-to-cart-total"],children:a.jsx("span",{children:Co({valueInCents:e.totalPrice*100,hasFree:!1,freeTaxMessage:r.FREIGHT_CALCULATION.messages.free_tax})})})]}),a.jsx(v.Button,{onClick:t,className:Fe["add-button"],size:"large",disabled:n===0,variant:"primary",children:r.BUY_BUTTON_LABELS.add_to_cart})]})},hh=e=>e.reduce((t,r)=>{var o;const n=t.find(i=>i.node.id===r.node.id);if(!n)return[...t,r];if((o=n==null?void 0:n.node.isVariantOf)!=null&&o.hasVariant){const i=n.node.isVariantOf.hasVariant,s=r.node.isVariantOf.hasVariant;i&&s&&(n.node.isVariantOf.hasVariant=[...i,...s])}return t},[]),gh=({selectedProduct:e,productId:t,prevState:r,mainSellerId:n})=>{const{products:o,totalPrice:i}=r;try{if(!e){const{[t]:l,...f}=o;return{...r,totalPrice:i-l.price,products:f}}const s=Ro(e.offers.offers,n);if(!s)return r;const c=s.seller.identifier,u=s.price;if(o[t]){const{price:l}=o[t];return o[t]={...o[t],price:u,id:e.sku,seller:c},{totalPrice:i+u-l,products:{...o}}}return{totalPrice:i+u,products:{...o,[t]:{id:e.sku,price:u,seller:c,productId:t}}}}catch(s){return console.error("Error handling SKU selection:",s),r}},yh="_carousel_245ib_1",_h="_shelf__container_245ib_14",vh="_shelf_without_carousel_245ib_34",lt={carousel:yh,"custom-controllers":"_custom-controllers_245ib_5",shelf__container:_h,"controllers-arrows-bullets":"_controllers-arrows-bullets_245ib_23",shelf_without_carousel:vh},Zs=({title:e})=>a.jsx("div",{className:lt.shelf__container,children:e&&a.jsx(v.TextStructure.Root,{children:a.jsxs(v.TextStructure.DivWrapper,{children:[a.jsx("h2",{className:v.helpers.classNameConcat("typography-style-body-md",Te.responsive["responsive-mobile-flex"]),children:e}),a.jsx("h2",{className:v.helpers.classNameConcat("typography-style-heading-md",Te.responsive["responsive-desktop-flex"]),children:e})]})})}),bh=({children:e,ICONS:t,itemsPerPage:r,title:n})=>{const{isMobile:o}=Se(),i=r[o?"mobile":"desktop"],{initialize:s,controller:c,itemsStyles:u,pagination:l}=v.Carousel.useCarousel({itemsPerPage:i,gap:10,loop:!0,direction:"row"}),f=C.Children.toArray(e).length;return o||f>=4?a.jsxs(v.Carousel.Root,{innerRef:d=>{s(d)},className:lt.carousel,children:[a.jsxs("div",{className:lt["custom-controllers"],children:[n&&a.jsx(Zs,{title:n}),i<f&&a.jsxs(v.Carousel.Controller,{className:lt["controllers-arrows-bullets"],children:[a.jsxs(v.Carousel.Arrows,{children:[a.jsx(v.Button,{variant:"tertiary",onClick:()=>c==null?void 0:c.prevPage(),adornment:{start:a.jsx(v.Icon,{name:t.arrow_left})}}),a.jsx(v.Button,{variant:"tertiary",onClick:()=>c==null?void 0:c.nextPage(),adornment:{start:a.jsx(v.Icon,{name:t.arrow_right})}})]}),!o&&i>2&&a.jsx(v.Carousel.Bullets,{page:l.currentPage,total:l.totalPages,onBulletClick:d=>c==null?void 0:c.navigateTo(d)})]})]}),a.jsx(v.Carousel.Body,{children:C.Children.map(e,(d,m)=>a.jsx(v.Carousel.Item,{style:{...u,overflow:"hidden"},children:d},`${n}_${m}`))})]}):a.jsxs(a.Fragment,{children:[n&&a.jsx(Zs,{title:n}),a.jsx("div",{className:lt.shelf_without_carousel,children:e})]})},xh={Shelf:bh},Ch=({CONSTANTS:e,inView:t,products:r,innerRef:n,WishListToggle:o})=>{const i=C.useMemo(()=>hh(r),[r]),{isMobile:s}=Se(),{addItemsToCart:c}=Be(),{sendDataLayerEvent:u}=ge(),{getAvailableProductTag:l}=xo(),[f,p]=C.useState({totalPrice:0,products:{}}),d=()=>{const h=Object.values(f.products);c(h),u({functionKey:"skuEvents",data:{event:"add_to_cart",commonData:{products:h.map(y=>{const g=i.find(b=>b.node.id===y.productId);return g==null?void 0:g.node})},supportData:{selectedSkus:h,price:f.totalPrice}}})},m=({selectedProduct:h,productId:y})=>{const g=gh({selectedProduct:h,productId:y,prevState:f,mainSellerId:e.StoreConfig_MainSellerId});p(g)};return C.useEffect(()=>{if(!t||i.length===0)return;const h=e.BUY_PACKAGE.header.title;u({functionKey:"productListEvent",data:{event:"view_item_list",commonData:{products:i},customData:{item_list_name:h},outsideEcommerceData:{item_list_name:h}}})},[t]),a.jsxs("div",{className:Fe.container,ref:n,children:[a.jsx("div",{className:Fe["carousel-container"],style:{width:i.length<=3?"max-content":"75%"},children:a.jsx(xh.Shelf,{title:e.BUY_PACKAGE.header.title,itemsPerPage:{desktop:3,mobile:i.length>=3?2.2:i.length},ICONS:e.ICONS,children:Array.isArray(i)&&i.map(({node:h},y)=>{var E,_,R;const g=l(h.cluster.highlights),{availability:{status:b}}=h;return b?a.jsxs(ye.Root,{item:{...h,image:Do.helpers.product.getFirstImages({images:h.image,label:{first:e.MAIN_IMAGE,second:e.SECOND_IMAGE}})},isMobile:s,size:"medium",index:y,shelfTitle:e.BUY_PACKAGE.header.title,CONSTANTS:e,WishListToggle:o,children:[a.jsx(ye.Header,{product:h,tag:g.commercial}),a.jsx(ye.Media,{}),a.jsxs(ye.Wrapper,{type:"body",children:[a.jsx(ye.Title,{tag:{value:(E=g.institucional)==null?void 0:E.value,enableIcon:(_=g.institucional)==null?void 0:_.enableIcon,icon:(R=g.institucional)==null?void 0:R.icon}}),a.jsx(ye.Actions,{children:a.jsx(ye.SizeSelector,{callback:S=>m({selectedProduct:S,productId:h.id})})})]})]},h.id):null})})}),a.jsx("div",{className:Fe["add-cart-container"],children:a.jsx(mh,{handleAddAllToCart:d,selectedProducts:f,CONSTANTS:{BUY_BUTTON_LABELS:e.BUY_BUTTON_LABELS,BUY_PACKAGE:e.BUY_PACKAGE,FREIGHT_CALCULATION:e.FREIGHT_CALCULATION}})})]})},Sh=({page:e,data:t})=>{const{pathname:r}=Pe(),n=C.useRef(null),{sendDataLayerEvent:o,currentLocalRef:i,itemListRef:s,promotionEventRef:c}=ge();return C.useEffect(()=>{const u=Nc("login_event")||"{}",l=JSON.parse(u);if(l.name||l.method){const f=new Date(0);o({functionKey:"readyEvents",data:{event:l.name,readyData:{method:l.method}}}),ko("login_event","",{expires:f})}},[]),C.useEffect(()=>{if(n.current===r)return;n.current=r;let u={};switch(e){case"PDP":{const f=t,p={};if(!f){u={page_category:"pdp"};break}f.items.forEach(({itemId:d,sellers:m})=>p[d]=m[0].commertialOffer.AvailableQuantity),u={page_category:"pdp",seller_ids:f.items.map(({sellers:d})=>d[0].sellerId).join(),skuStocks:p,product_reference_id:f.productReference};break}case"PDC":{const{page_category:f,page_departament:p,id:d,name:m}=ja(),h=m,y=d;u={page_category:"lista_produtos",...p&&{page_departament:p}},s.current={item_list_name:r==="/search"?"busca":h??void 0,item_list_id:r==="/search"?void 0:y??void 0},p&&o({functionKey:"readyEvents",data:{event:"view_category",readyData:{page_category:f,page_departament:p}}});break}default:u={page_category:e},c.current={},s.current={};break}const l={region:e,...u};i.current=e,o({functionKey:"readyEvents",data:{readyData:{vtex_version:"fast",...l}},timeout:0})},[r]),null};var io={exports:{}};function Ah(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 zn={},Un={},Js;function Eh(){return Js||(Js=1,function(e){"use client";Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"LoadableContext",{enumerable:!0,get:function(){return n}});const n=Re._(C).default.createContext(null);process.env.NODE_ENV!=="production"&&(n.displayName="LoadableContext")}(Un)),Un}var ea;function Rh(){return ea||(ea=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return m}});const r=Re._(C),n=Eh();function o(h){return h&&h.default?h.default:h}const i=[],s=[];let c=!1;function u(h){let y=h(),g={loading:!0,loaded:null,error:null};return g.promise=y.then(b=>(g.loading=!1,g.loaded=b,b)).catch(b=>{throw g.loading=!1,g.error=b,b}),g}function l(h,y){let g=Object.assign({loader:null,loading:null,delay:200,timeout:null,webpack:null,modules:null},y),b=null;function E(){if(!b){const S=new f(h,g);b={getCurrentValue:S.getCurrentValue.bind(S),subscribe:S.subscribe.bind(S),retry:S.retry.bind(S),promise:S.promise.bind(S)}}return b.promise()}if(typeof window>"u"&&i.push(E),!c&&typeof window<"u"){const S=g.webpack&&typeof Ah.resolveWeak=="function"?g.webpack():g.modules;S&&s.push(j=>{for(const x of S)if(j.includes(x))return E()})}function _(){E();const S=r.default.useContext(n.LoadableContext);S&&Array.isArray(g.modules)&&g.modules.forEach(j=>{S(j)})}function R(S,j){_();const x=r.default.useSyncExternalStore(b.subscribe,b.getCurrentValue,b.getCurrentValue);return r.default.useImperativeHandle(j,()=>({retry:b.retry}),[]),r.default.useMemo(()=>x.loading||x.error?r.default.createElement(g.loading,{isLoading:x.loading,pastDelay:x.pastDelay,timedOut:x.timedOut,error:x.error,retry:b.retry}):x.loaded?r.default.createElement(o(x.loaded),S):null,[S,x])}return R.preload=()=>E(),R.displayName="LoadableComponent",r.default.forwardRef(R)}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:y,_opts:g}=this;y.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(b=>{this._update({}),this._clearTimeouts()}),this._update({})}_update(y){this._state={...this._state,error:this._res.error,loaded:this._res.loaded,loading:this._res.loading,...y},this._callbacks.forEach(g=>g())}_clearTimeouts(){clearTimeout(this._delay),clearTimeout(this._timeout)}getCurrentValue(){return this._state}subscribe(y){return this._callbacks.add(y),()=>{this._callbacks.delete(y)}}constructor(y,g){this._loadFn=y,this._opts=g,this._callbacks=new Set,this._delay=null,this._timeout=null,this.retry()}}function p(h){return l(u,h)}function d(h,y){let g=[];for(;h.length;){let b=h.pop();g.push(b(y))}return Promise.all(g).then(()=>{if(h.length)return d(h,y)})}p.preloadAll=()=>new Promise((h,y)=>{d(i).then(h,y)}),p.preloadReady=h=>(h===void 0&&(h=[]),new Promise(y=>{const g=()=>(c=!0,y());d(s,h).then(g,g)})),typeof window<"u"&&(window.__NEXT_PRELOADREADY=p.preloadReady);const m=p}(zn)),zn}(function(e,t){Object.defineProperty(t,"__esModule",{value:!0});function r(f,p){for(var d in p)Object.defineProperty(f,d,{enumerable:!0,get:p[d]})}r(t,{noSSR:function(){return u},default:function(){return l}});const n=Re,o=n._(C),i=n._(Rh()),s=typeof window>"u";function c(f){return{default:(f==null?void 0:f.default)||f}}function u(f,p){if(delete p.webpack,delete p.modules,!s)return f(p);const d=p.loading;return()=>o.default.createElement(d,{error:null,isLoading:!0,pastDelay:!1,timedOut:!1})}function l(f,p){let d=i.default,m={loading:g=>{let{error:b,isLoading:E,pastDelay:_}=g;if(!_)return null;if(process.env.NODE_ENV!=="production"){if(E)return null;if(b)return o.default.createElement("p",null,b.message,o.default.createElement("br",null),b.stack)}return null}};f instanceof Promise?m.loader=()=>f:typeof f=="function"?m.loader=f:typeof f=="object"&&(m={...m,...f}),m={...m,...p};const h=m.loader,y=()=>h!=null?h().then(c):Promise.resolve(c(()=>null));return m.loadableGenerated&&(m={...m,...m.loadableGenerated},delete m.loadableGenerated),typeof m.ssr=="boolean"&&!m.ssr?(delete m.webpack,delete m.modules,u(d,m)):d({...m,loader:y})}(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)})(io,io.exports);var jh=io.exports,wh=jh;const Ph=Yt(wh);var so={exports:{}},qt={exports:{}},ta;function Ih(){return ta||(ta=1,function(e,t){Object.defineProperty(t,"__esModule",{value:!0});function r(u,l){for(var f in l)Object.defineProperty(u,f,{enumerable:!0,get:l[f]})}r(t,{DOMAttributeNames:function(){return n},isEqualNode:function(){return i},default:function(){return c}});const n={acceptCharset:"accept-charset",className:"class",htmlFor:"for",httpEquiv:"http-equiv",noModule:"noModule"};function o(u){let{type:l,props:f}=u;const p=document.createElement(l);for(const h in f){if(!f.hasOwnProperty(h)||h==="children"||h==="dangerouslySetInnerHTML"||f[h]===void 0)continue;const y=n[h]||h.toLowerCase();l==="script"&&(y==="async"||y==="defer"||y==="noModule")?p[y]=!!f[h]:p.setAttribute(y,f[h])}const{children:d,dangerouslySetInnerHTML:m}=f;return m?p.innerHTML=m.__html||"":d&&(p.textContent=typeof d=="string"?d:Array.isArray(d)?d.join(""):""),p}function i(u,l){if(u instanceof HTMLElement&&l instanceof HTMLElement){const f=l.getAttribute("nonce");if(f&&!u.getAttribute("nonce")){const p=l.cloneNode(!0);return p.setAttribute("nonce",""),p.nonce=f,f===u.nonce&&u.isEqualNode(p)}}return u.isEqualNode(l)}let s;process.env.__NEXT_STRICT_NEXT_HEAD?s=(u,l)=>{const f=document.querySelector("head");if(!f)return;const p=f.querySelectorAll('meta[name="next-head"]')||[],d=[];if(u==="meta"){const y=f.querySelector("meta[charset]");y&&d.push(y)}for(let y=0;y<p.length;y++){var m;const b=p[y].nextSibling;(b==null||(m=b.tagName)==null?void 0:m.toLowerCase())===u&&d.push(b)}const h=l.map(o).filter(y=>{for(let g=0,b=d.length;g<b;g++){const E=d[g];if(i(E,y))return d.splice(g,1),!1}return!0});d.forEach(y=>{var g;const b=y.previousSibling;if(b&&b.getAttribute("name")==="next-head"){var E;(E=y.parentNode)==null||E.removeChild(b)}(g=y.parentNode)==null||g.removeChild(y)}),h.forEach(y=>{var g;const b=document.createElement("meta");b.name="next-head",b.content="1",((g=y.tagName)==null?void 0:g.toLowerCase())==="meta"&&y.getAttribute("charset")||f.appendChild(b),f.appendChild(y)})}:s=(u,l)=>{const f=document.getElementsByTagName("head")[0],p=f.querySelector("meta[name=next-head-count]");if(process.env.NODE_ENV!=="production"&&!p){console.error("Warning: next-head-count is missing. https://nextjs.org/docs/messages/next-head-count-missing");return}const d=Number(p.content),m=[];for(let g=0,b=p.previousElementSibling;g<d;g++,b=(b==null?void 0:b.previousElementSibling)||null){var h;(b==null||(h=b.tagName)==null?void 0:h.toLowerCase())===u&&m.push(b)}const y=l.map(o).filter(g=>{for(let b=0,E=m.length;b<E;b++){const _=m[b];if(i(_,g))return m.splice(b,1),!1}return!0});m.forEach(g=>{var b;return(b=g.parentNode)==null?void 0:b.removeChild(g)}),y.forEach(g=>f.insertBefore(g,p)),p.content=(d-m.length+y.length).toString()};function c(){return{mountedInstances:new Set,updateHead:u=>{const l={};u.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 m=l[d.type]||[];m.push(d),l[d.type]=m});const f=l.title?l.title[0]:null;let p="";if(f){const{children:d}=f.props;p=typeof d=="string"?d:Array.isArray(d)?d.join(""):""}p!==document.title&&(document.title=p),["meta","base","link","style","script"].forEach(d=>{s(d,l[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)}(qt,qt.exports)),qt.exports}(function(e,t){"use client";Object.defineProperty(t,"__esModule",{value:!0});function r(S,j){for(var x in j)Object.defineProperty(S,x,{enumerable:!0,get:j[x]})}r(t,{handleClientScriptLoad:function(){return y},initScriptLoader:function(){return E},default:function(){return R}});const n=Re,o=Ke,i=n._(ma),s=o._(C),c=Qu(),u=Ih(),l=nu(),f=new Map,p=new Set,d=["onLoad","onReady","dangerouslySetInnerHTML","children","onError","strategy","stylesheets"],m=S=>{if(i.default.preinit){S.forEach(j=>{i.default.preinit(j,{as:"style"})});return}if(typeof window<"u"){let j=document.head;S.forEach(x=>{let P=document.createElement("link");P.type="text/css",P.rel="stylesheet",P.href=x,j.appendChild(P)})}},h=S=>{const{src:j,id:x,onLoad:P=()=>{},onReady:L=null,dangerouslySetInnerHTML:A,children:O="",strategy:N="afterInteractive",onError:D,stylesheets:w}=S,q=x||j;if(q&&p.has(q))return;if(f.has(j)){p.add(q),f.get(j).then(P,D);return}const z=()=>{L&&L(),p.add(q)},U=document.createElement("script"),K=new Promise((W,F)=>{U.addEventListener("load",function(ne){W(),P&&P.call(this,ne),z()}),U.addEventListener("error",function(ne){F(ne)})}).catch(function(W){D&&D(W)});A?(U.innerHTML=A.__html||"",z()):O?(U.textContent=typeof O=="string"?O:Array.isArray(O)?O.join(""):"",z()):j&&(U.src=j,f.set(j,K));for(const[W,F]of Object.entries(S)){if(F===void 0||d.includes(W))continue;const ne=u.DOMAttributeNames[W]||W.toLowerCase();U.setAttribute(ne,F)}N==="worker"&&U.setAttribute("type","text/partytown"),U.setAttribute("data-nscript",N),w&&m(w),document.body.appendChild(U)};function y(S){const{strategy:j="afterInteractive"}=S;j==="lazyOnload"?window.addEventListener("load",()=>{(0,l.requestIdleCallback)(()=>h(S))}):h(S)}function g(S){document.readyState==="complete"?(0,l.requestIdleCallback)(()=>h(S)):window.addEventListener("load",()=>{(0,l.requestIdleCallback)(()=>h(S))})}function b(){[...document.querySelectorAll('[data-nscript="beforeInteractive"]'),...document.querySelectorAll('[data-nscript="beforePageRender"]')].forEach(j=>{const x=j.id||j.getAttribute("src");p.add(x)})}function E(S){S.forEach(y),b()}function _(S){const{id:j,src:x="",onLoad:P=()=>{},onReady:L=null,strategy:A="afterInteractive",onError:O,stylesheets:N,...D}=S,{updateScripts:w,scripts:q,getIsSsr:z,appDir:U,nonce:K}=(0,s.useContext)(c.HeadManagerContext),W=(0,s.useRef)(!1);(0,s.useEffect)(()=>{const ne=j||x;W.current||(L&&ne&&p.has(ne)&&L(),W.current=!0)},[L,j,x]);const F=(0,s.useRef)(!1);if((0,s.useEffect)(()=>{F.current||(A==="afterInteractive"?h(S):A==="lazyOnload"&&g(S),F.current=!0)},[S,A]),(A==="beforeInteractive"||A==="worker")&&(w?(q[A]=(q[A]||[]).concat([{id:j,src:x,onLoad:P,onReady:L,onError:O,...D}]),w(q)):z&&z()?p.add(j||x):z&&!z()&&h(S)),U){if(N&&N.forEach(ne=>{i.default.preinit(ne,{as:"style"})}),A==="beforeInteractive")return x?(i.default.preload(x,D.integrity?{as:"script",integrity:D.integrity}:{as:"script"}),s.default.createElement("script",{nonce:K,dangerouslySetInnerHTML:{__html:"(self.__next_s=self.__next_s||[]).push("+JSON.stringify([x])+")"}})):(D.dangerouslySetInnerHTML&&(D.children=D.dangerouslySetInnerHTML.__html,delete D.dangerouslySetInnerHTML),s.default.createElement("script",{nonce:K,dangerouslySetInnerHTML:{__html:"(self.__next_s=self.__next_s||[]).push("+JSON.stringify([0,{...D}])+")"}}));A==="afterInteractive"&&x&&i.default.preload(x,D.integrity?{as:"script",integrity:D.integrity}:{as:"script"})}return null}Object.defineProperty(_,"__nextScript",{value:!0});const 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)})(so,so.exports);var Nh=so.exports,Oh=Nh;const Th=Yt(Oh),Mh=({children:e,ONE_TRUST:t})=>a.jsxs(a.Fragment,{children:[a.jsx(Th,{src:"https://cdn.cookielaw.org/scripttemplates/otSDKStub.js",defer:!0,strategy:"afterInteractive","data-domain-script":t.siteId,type:"text/javascript"}),e]}),kh=Ph(()=>Promise.resolve(Mh),{ssr:!1}),Lh={"snackbar-modifier":"_snackbar-modifier_1va2l_1"},dt=({size:e,adornment:t,title:r,subtitle:n,supportChildren:o,className:i,Z_INDEX_WAR:s,...c})=>a.jsxs(v.SnackBar.Structure,{...c,size:e,className:v.helpers.classNameConcat(Lh["snackbar-modifier"],i),width:360,style:{zIndex:s.snackbar},children:[a.jsx(v.SnackBar.Content,{adornment:t,title:r,subtitle:n}),o&&a.jsx(v.SnackBar.Support,{children:o})]});dt.displayName="SnackBar";const fl=({children:e,contentState:t,entityKey:r})=>{const{url:n}=t.getEntity(r).getData();return n?a.jsx(Ne,{href:n,children:e}):e},Xo={"product-list--banner":"_product-list--banner_sfibj_1","product-list--card":"_product-list--card_sfibj_30","product-list":"_product-list_sfibj_1"},pl=({className:e,children:t,columns:r=1,isMobile:n=!1,gap:o=8,position_grid:i,totalColumns:s=4,PRODUCT_CARD_IMAGE_ASPECT_RATIO:c,...u})=>{const l=C.useMemo(()=>r%s===0?"initial":n||r<2?c:c.split("/").reverse().join("/"),[r,s,n]);return a.jsx("div",{...u,className:v.helpers.classNameConcat(Xo["product-list--banner"],e),style:{aspectRatio:l,maxWidth:`${r/s*100}%`,order:i,padding:o/2},children:t})};pl.displayName="ProductList.Banner";var ao={exports:{}},ml={};(function(e){"use client";Object.defineProperty(e,"__esModule",{value:!0});function t(s,c){for(var u in c)Object.defineProperty(s,u,{enumerable:!0,get:c[u]})}t(e,{SearchParamsContext:function(){return n},PathnameContext:function(){return o},PathParamsContext:function(){return i}});const r=C,n=(0,r.createContext)(null),o=(0,r.createContext)(null),i=(0,r.createContext)(null);process.env.NODE_ENV!=="production"&&(n.displayName="SearchParamsContext",o.displayName="PathnameContext",i.displayName="PathParamsContext")})(ml);var co={exports:{}};(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"clientHookInServerComponentError",{enumerable:!0,get:function(){return o}});const n=Re._(C);function o(i){if(process.env.NODE_ENV!=="production"&&!n.default.useState)throw new Error(""+i+' only works in Client Components. Add the "use client" directive at the top of the file to use it. Read more: https://nextjs.org/docs/messages/react-client-hook-in-server-component')}(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)})(co,co.exports);var Dh=co.exports,uo={exports:{}};(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"getSegmentValue",{enumerable:!0,get:function(){return r}});function r(n){return Array.isArray(n)?n[1]: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)})(uo,uo.exports);var $h=uo.exports,hl={};(function(e){"use client";Object.defineProperty(e,"__esModule",{value:!0});function t(s,c){for(var u in c)Object.defineProperty(s,u,{enumerable:!0,get:c[u]})}t(e,{ServerInsertedHTMLContext:function(){return o},useServerInsertedHTML:function(){return i}});const n=Ke._(C),o=n.default.createContext(null);function i(s){const c=(0,n.useContext)(o);c&&c(s)}})(hl);var lo={exports:{}},fo={exports:{}},po={exports:{}};(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"createAsyncLocalStorage",{enumerable:!0,get:function(){return i}});const r=new Error("Invariant: AsyncLocalStorage accessed in runtime where it is not available");class n{disable(){throw r}getStore(){}run(){throw r}exit(){throw r}enterWith(){throw r}}const o=globalThis.AsyncLocalStorage;function i(){return o?new o:new 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)})(po,po.exports);var gl=po.exports;(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"requestAsyncStorage",{enumerable:!0,get:function(){return n}});const n=(0,gl.createAsyncLocalStorage)();(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)})(fo,fo.exports);var Bh=fo.exports;(function(e,t){Object.defineProperty(t,"__esModule",{value:!0});function r(d,m){for(var h in m)Object.defineProperty(d,h,{enumerable:!0,get:m[h]})}r(t,{RedirectType:function(){return i},getRedirectError:function(){return s},redirect:function(){return c},permanentRedirect:function(){return u},isRedirectError:function(){return l},getURLFromRedirectError:function(){return f},getRedirectTypeFromError:function(){return p}});const n=Bh,o="NEXT_REDIRECT";var i;(function(d){d.push="push",d.replace="replace"})(i||(i={}));function s(d,m,h){h===void 0&&(h=!1);const y=new Error(o);y.digest=o+";"+m+";"+d+";"+h;const g=n.requestAsyncStorage.getStore();return g&&(y.mutableCookies=g.mutableCookies),y}function c(d,m){throw m===void 0&&(m="replace"),s(d,m,!1)}function u(d,m){throw m===void 0&&(m="replace"),s(d,m,!0)}function l(d){if(typeof(d==null?void 0:d.digest)!="string")return!1;const[m,h,y,g]=d.digest.split(";",4);return m===o&&(h==="replace"||h==="push")&&typeof y=="string"&&(g==="true"||g==="false")}function f(d){return l(d)?d.digest.split(";",3)[2]:null}function p(d){if(!l(d))throw new Error("Not a redirect error");return d.digest.split(";",3)[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)})(lo,lo.exports);var qh=lo.exports,mo={exports:{}};(function(e,t){Object.defineProperty(t,"__esModule",{value:!0});function r(s,c){for(var u in c)Object.defineProperty(s,u,{enumerable:!0,get:c[u]})}r(t,{notFound:function(){return o},isNotFoundError:function(){return i}});const n="NEXT_NOT_FOUND";function o(){const s=new Error(n);throw s.digest=n,s}function i(s){return(s==null?void 0:s.digest)===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)})(mo,mo.exports);var Hh=mo.exports,Ht={exports:{}},Gn={},Wn={},ra;function Fh(){return ra||(ra=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"NEXT_DYNAMIC_NO_SSR_CODE",{enumerable:!0,get:function(){return t}});const t="NEXT_DYNAMIC_NO_SSR_CODE"}(Wn)),Wn}var na;function zh(){return na||(na=1,function(e){"use client";Object.defineProperty(e,"__esModule",{value:!0});function t(i,s){for(var c in s)Object.defineProperty(i,c,{enumerable:!0,get:s[c]})}t(e,{suspense:function(){return n},NoSSR:function(){return o}});const r=Fh();function n(){const i=new Error(r.NEXT_DYNAMIC_NO_SSR_CODE);throw i.digest=r.NEXT_DYNAMIC_NO_SSR_CODE,i}function o(i){let{children:s}=i;return typeof window>"u"&&n(),s}}(Gn)),Gn}var Ft={exports:{}},oa;function Uh(){return oa||(oa=1,function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"staticGenerationAsyncStorage",{enumerable:!0,get:function(){return n}});const n=(0,gl.createAsyncLocalStorage)();(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)}(Ft,Ft.exports)),Ft.exports}var ia;function Gh(){return ia||(ia=1,function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"bailoutToClientRendering",{enumerable:!0,get:function(){return o}});const r=zh(),n=Uh();function o(){const i=n.staticGenerationAsyncStorage.getStore();return i!=null&&i.forceStatic?!0:(i!=null&&i.isStaticGeneration&&(0,r.suspense)(),!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)}(Ht,Ht.exports)),Ht.exports}(function(e,t){Object.defineProperty(t,"__esModule",{value:!0});function r(j,x){for(var P in x)Object.defineProperty(j,P,{enumerable:!0,get:x[P]})}r(t,{ReadonlyURLSearchParams:function(){return m},useSearchParams:function(){return h},usePathname:function(){return y},ServerInsertedHTMLContext:function(){return u.ServerInsertedHTMLContext},useServerInsertedHTML:function(){return u.useServerInsertedHTML},useRouter:function(){return g},useParams:function(){return E},useSelectedLayoutSegments:function(){return R},useSelectedLayoutSegment:function(){return S},redirect:function(){return l.redirect},permanentRedirect:function(){return l.permanentRedirect},RedirectType:function(){return l.RedirectType},notFound:function(){return f.notFound}});const n=C,o=ru(),i=ml,s=Dh,c=$h,u=hl,l=qh,f=Hh,p=Symbol("internal for urlsearchparams readonly");function d(){return new Error("ReadonlyURLSearchParams cannot be modified")}class m{[Symbol.iterator](){return this[p][Symbol.iterator]()}append(){throw d()}delete(){throw d()}set(){throw d()}sort(){throw d()}constructor(x){this[p]=x,this.entries=x.entries.bind(x),this.forEach=x.forEach.bind(x),this.get=x.get.bind(x),this.getAll=x.getAll.bind(x),this.has=x.has.bind(x),this.keys=x.keys.bind(x),this.values=x.values.bind(x),this.toString=x.toString.bind(x),this.size=x.size}}function h(){(0,s.clientHookInServerComponentError)("useSearchParams");const j=(0,n.useContext)(i.SearchParamsContext),x=(0,n.useMemo)(()=>j?new m(j):null,[j]);if(typeof window>"u"){const{bailoutToClientRendering:P}=Gh();if(P())return x}return x}function y(){return(0,s.clientHookInServerComponentError)("usePathname"),(0,n.useContext)(i.PathnameContext)}function g(){(0,s.clientHookInServerComponentError)("useRouter");const j=(0,n.useContext)(o.AppRouterContext);if(j===null)throw new Error("invariant expected app router to be mounted");return j}function b(j,x){x===void 0&&(x={});const P=j[1];for(const L of Object.values(P)){const A=L[0],O=Array.isArray(A),N=O?A[1]:A;if(!N||N.startsWith("__PAGE__"))continue;O&&(A[2]==="c"||A[2]==="oc")?x[A[0]]=A[1].split("/"):O&&(x[A[0]]=A[1]),x=b(L,x)}return x}function E(){(0,s.clientHookInServerComponentError)("useParams");const j=(0,n.useContext)(o.GlobalLayoutRouterContext),x=(0,n.useContext)(i.PathParamsContext);return(0,n.useMemo)(()=>j!=null&&j.tree?b(j.tree):x,[j==null?void 0:j.tree,x])}function _(j,x,P,L){P===void 0&&(P=!0),L===void 0&&(L=[]);let A;if(P)A=j[1][x];else{const w=j[1];var O;A=(O=w.children)!=null?O:Object.values(w)[0]}if(!A)return L;const N=A[0],D=(0,c.getSegmentValue)(N);return!D||D.startsWith("__PAGE__")?L:(L.push(D),_(A,x,!1,L))}function R(j){j===void 0&&(j="children"),(0,s.clientHookInServerComponentError)("useSelectedLayoutSegments");const{tree:x}=(0,n.useContext)(o.LayoutRouterContext);return _(x,j)}function S(j){j===void 0&&(j="children"),(0,s.clientHookInServerComponentError)("useSelectedLayoutSegment");const x=R(j);return x.length===0?null:x[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)})(ao,ao.exports);var Wh=ao.exports,Vh=Wh;const yl=({isKit:e,parent:t,productId:r,setNotify:n,CONSTANTS:o})=>{const i=Vh.useRouter(),s=C.useRef(!1),c=C.useRef(null),[u,l]=C.useState([]),f=h=>i.push(h??""),p=async h=>{try{const y=await fetch("/api/catalog/product/similars",{method:"POST",body:JSON.stringify({productId:h,filterTexture:o.TEXTURE_IMAGE}),priority:"low"});if(!y.ok)throw new Error("Erro ao buscar similares.");const g=await y.json();l(g)}catch(y){console.error(y)}},d=C.useCallback(h=>{!r||!h||(typeof p=="function"&&p(r),s.current=!0)},[r]),m=C.useCallback((h,y)=>{if(!h.isIntersecting){o.PLP_INFINITE_SCROLL&&c.current&&(clearTimeout(c.current),c.current=null);return}if(h.intersectionRatio>=y.threshold&&!s.current){if(o.PLP_INFINITE_SCROLL){c.current=setTimeout(()=>{d(!0)},o.PLP_PRODUCT_SIMILAR_DELAY);return}d(!0)}},[d]);return C.useEffect(()=>{if(e||!t.current)return;const h={root:null,threshold:.1},y=new IntersectionObserver(([g])=>{m(g,h)},h);return y.observe(t.current),()=>{c.current&&clearTimeout(c.current),y.disconnect()}},[m,t,e]),a.jsx(ye.Actions,{...u,callback:f,isKit:e,children:!e&&a.jsx(ye.SizeSelector,{setNotify:n})})};yl.displayName="ProductList.Card.Actions";const _l=({className:e,children:t,gap:r=32,item:n,isMobile:o,order:i,tag:s,hasMaxWidth:c=!0,index:u,setSkuSelected:l,showVideo:f,CONSTANTS:p,WishListToggle:d,...m})=>{const h=C.useRef(null),{availability:{status:y}}=n,g=C.useCallback((E,_)=>{var R;typeof l=="function"&&l((R=E.isVariantOf)==null?void 0:R.hasVariant,_)},[l]),b=n.name.substring(0,4).toLowerCase()==="kit ";return a.jsxs("div",{...m,className:v.helpers.classNameConcat(Xo["product-list--card"],e),"data-mobile":o,"data-order":i,ref:h,style:{...c&&{maxWidth:o?"50%":"25%"},order:i,padding:r/2},children:[a.jsxs(ye.Root,{item:n,isMobile:o,index:u,size:o?"small":"medium",order:i,outStock:!y,CONSTANTS:p,WishListToggle:d,children:[a.jsx(ye.Header,{product:n,tag:s==null?void 0:s.commercial}),a.jsx(ye.Media,{showVideo:f,hasPriority:!0}),a.jsxs(ye.Wrapper,{type:"body",children:[a.jsx(ye.Title,{tag:s==null?void 0:s.institucional}),a.jsx(yl,{productId:n.isVariantOf.productGroupID,parent:h,setNotify:g,isKit:b,CONSTANTS:p}),!b&&a.jsx(ye.OutStock,{callback:g})]}),a.jsx(ye.Wrapper,{type:"footer",children:y&&a.jsx(ye.BuyButton,{isKit:b})})]}),t]})};_l.displayName="ProductList.Card";const vl=({children:e,className:t,...r})=>a.jsx("div",{...r,className:v.helpers.classNameConcat(Xo["product-list"],t),children:e});vl.displayName="ProductList.Grid";const Kh={Banner:pl,Card:_l,Root:vl,helpers:Xd},Xh={teamComponents:{AddToCart:$o,BackToTop:Cf,BuyPackage:Ch,...ch,FreightCalculation:Up,Header:Ou,Link:ze,Media:$e,ProductCard:ye,ProductList:Kh,UserMenu:zo},template:{pdp:fh},utils:{EventCollector:Sh,ExternalScripts:kh,LinkOrNotLink:yt,ObserverWrapper:er,SnackBarComponent:dt,DraftJsLinkWrapper:fl}},Qh=(e,t)=>{const r=e.map(o=>`'${o.source}'`).join(`,
|
|
2
42
|
`);return`
|
|
3
43
|
import type { NextRequest } from 'next/server'
|
|
4
44
|
import { NextResponse } from 'next/server'
|
|
@@ -18,7 +58,7 @@
|
|
|
18
58
|
|
|
19
59
|
if (redirect?.destination) {
|
|
20
60
|
try {
|
|
21
|
-
const redirectUrl = new URL(redirect.destination, '${
|
|
61
|
+
const redirectUrl = new URL(redirect.destination, '${t}')
|
|
22
62
|
return NextResponse.redirect(redirectUrl, 301)
|
|
23
63
|
} catch (e) {
|
|
24
64
|
console.error('[ERROR INVALID URL]:', redirect.destination)
|
|
@@ -38,4 +78,4 @@
|
|
|
38
78
|
${r}
|
|
39
79
|
]
|
|
40
80
|
}
|
|
41
|
-
`},Ca=Object.freeze(Object.defineProperty({__proto__:null,generateMiddleware:ya},Symbol.toStringTag,{value:"Module"})),va={helpers:Ca},ba=(e,n,r)=>{e.findEntityRanges(s=>{const o=s.getEntity();return o===null?!1:r.getEntity(o).getType()==="LINK"},n)},Ee=e=>{const n=new Q.CompositeDecorator([{strategy:ba,component:jr}]),r=Q.convertFromRaw(e);return Q.EditorState.createWithContent(r,n)},ja=e=>Q.convertFromRaw(e),we=Q.DefaultDraftBlockRenderMap.set("unstyled",{element:"div",aliasedElements:["div"]}),Nt="superior-direita",Ne="dentro-inferior-centro",Sa="inferior-direita",De="dentro-inferior-esquerda",Sr=e=>({position:e===Ne||e===De?"absolute":"default",shouldRender:[Nt,Ne,De].includes(e)?"top":"bottom",alignItems:[Ne].includes(e)?"center":[Nt,Sa].includes(e)?"flex-end":"flex-start",left:e===De?"16px":e===Ne?"45%":"unset"}),Na=Object.freeze(Object.defineProperty({__proto__:null,CREATE_CONTENT:Ee,EXTENDED_BLOCK_RENDER_MAP:we,GET_CONTENT_STATE:ja,controllersPositionsAdapter:Sr},Symbol.toStringTag,{value:"Module"})),ce=e=>({centro:"center",esquerda:"start",direita:"end"})[e],Ia=({expanded:e,content:n})=>t.jsxs("details",{open:e,children:[n.textStructureReduced?t.jsx("summary",{onClick:r=>r.preventDefault(),children:t.jsx(Q.Editor,{editorKey:"draft-editor-1",blockRenderMap:we,editorState:n!=null&&n.textStructureReduced?Ee(JSON.parse(n.textStructureReduced)):Q.EditorState.createEmpty(),onChange:()=>null,readOnly:!0})}):t.jsx(t.Fragment,{}),n.showTextStructureExpander&&n.textStructure?t.jsx(t.Fragment,{children:t.jsx(Q.Editor,{editorKey:"draft-editor-1",blockRenderMap:we,editorState:n.textStructure?Ee(JSON.parse(n.textStructure)):Q.EditorState.createEmpty(),onChange:()=>null,readOnly:!0})}):t.jsx(t.Fragment,{})]}),qe={"draftjs-text-modifier":"_draftjs-text-modifier_1itwm_2"},Ea="_textContentWrapper_1bigo_5",wa="_textContentSection_1bigo_13",Ve={"link-modifier":"_link-modifier_1bigo_1",textContentWrapper:Ea,textContentSection:wa},Nr=({data:e,ICONS:n})=>{var o;const[r,s]=f.useState(!1);return t.jsx(d.TextStructure.Root,{layoutProps:{textRow:{alignContent:ce(e.textStructureAlignment),alignItems:ce(e.textStructureAlignment)},columnWrapper:{alignContent:ce(e.textStructureAlignment),alignItems:ce(e.textStructureAlignment)}},adornment:{bottom:e.showTextStructureExpander&&e.textStructure?t.jsx(d.Button,{variant:"tertiary",adornment:{end:t.jsx(d.Icon,{name:r?`${n.arrow_up}`:`${n.arrow_down}`})},onClick:()=>s(a=>!a),size:"small",children:r?"Ver Menos":"Ver Mais"}):t.jsx(t.Fragment,{})},children:t.jsxs(d.Utils.Column,{className:Ve.textContentWrapper,style:{alignItems:ce(e.textStructureAlignment)},children:[t.jsx(d.TextStructure.DivWrapper,{style:{textAlign:ce(e.textStructureAlignment)},mode:e.textStructureMode??"default",className:qe["draftjs-text-modifier"],children:e.textStructureReduced?t.jsx(Ia,{content:e,expanded:r}):t.jsx(t.Fragment,{})}),e.textStructureButtonLabel?t.jsx(ne,{mode:e.textStructureMode??"default",href:e.textStructureButtonHref??"#",size:e.textStructureButtonSize,className:Ve["link-modifier"],adornments:(o=e.textStructureButtonIcon)!=null&&o.length&&e.enableIcon?{end:t.jsx(d.Icon,{name:e.textStructureButtonIcon})}:void 0,children:e.textStructureButtonLabel}):t.jsx(t.Fragment,{})]})})},Pa=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],It=e=>({centro:"center",esquerda:"start",direita:"end"})[e],Ge=({dateEnd:e,dateInit:n,TIME_ZONE:r="America/Sao_Paulo",...s})=>{const[o,a]=f.useState(xn(new ft.TZDate(Date.now(),r),new ft.TZDate(e,r))),[l,i]=f.useState(!1);f.useEffect(()=>{l||i(!0);const u=setInterval(()=>{if(o<=0){clearInterval(u);return}a(o-1e3)},1e3);return()=>{clearInterval(u)}},[o,a,l]);const c=fe(o,"days");return l&&o>0?t.jsxs(d.Timer.Root,{...s,children:[c?t.jsxs(t.Fragment,{children:[t.jsx(d.Timer.Digit,{label:"dias",value:c}),t.jsx(d.Timer.Separator,{})]}):null,t.jsx(d.Timer.Digit,{label:"horas",value:fe(o,"hours")}),t.jsx(d.Timer.Separator,{}),t.jsx(d.Timer.Digit,{label:"min",value:fe(o,"minutes")}),t.jsx(d.Timer.Separator,{}),t.jsx(d.Timer.Digit,{label:"segs",value:fe(o),suppressHydrationWarning:!0})]}):t.jsx(t.Fragment,{})},Et={"content-modifier":"_content-modifier_16y4u_5","banner-image-wrapper-modifier":"_banner-image-wrapper-modifier_16y4u_13"},wt=({data:e,videoUrl:n,priority:r,videoRef:s,ICONS:o,...a})=>{const{video:l,image:i,imageHref:c,imageOpacity:u,altImage:m,backgroundColor:h,position:p,contentAlignment:_,showTimer:g,contentOrder:C,timerMode:y,timerEnd:v,timerInit:N,textStructure:j,textStructureReduced:w}=e.banner,b=(c==null?void 0:c.trim())||(i==null?void 0:i.trim())||null,{nextimage:I}=x.useNextContext();return t.jsxs(d.Banner.Container,{...a,children:[t.jsxs(d.Banner.ImageWrapper,{className:Et["banner-image-wrapper-modifier"],style:u?{background:h}:void 0,children:[l&&t.jsx(J.Video,{videoRef:s,src:n,autoPlay:r,loop:!0,playsInline:!0,muted:!0}),b&&!(l!=null&&l.length)&&t.jsx(I,{src:b,width:"1920",height:"1080",alt:m??i??"",...r?{priority:r}:{},style:u?{opacity:"0"}:void 0}),!i&&!(l!=null&&l.length)&&t.jsx("div",{style:{background:h}})]}),g||w||j?t.jsx(d.Banner.Slot,{...Pa(p??"centro"),className:Et["content-modifier"],style:{textAlign:It(_)},children:t.jsxs(d.Utils.Column,{gap:"16px",alignItems:It(_),children:[g&&C==="timer-first"&&t.jsx(Ge,{mode:y??"default",size:"small",dateEnd:v?new Date(v):new Date,dateInit:N?new Date(N):new Date}),t.jsx(Nr,{data:e.banner,ICONS:o}),g&&C!=="timer-first"&&t.jsx(Ge,{mode:y??"default",size:"small",dateEnd:v?new Date(v):new Date,dateInit:N?new Date(N):new Date})]})}):t.jsx(t.Fragment,{})]})},mt=({data:e,className:n,priority:r,creative:s,...o})=>{const{handleSelectPromotionEvent:a,currentLocalRef:l}=x.useEventContext(),{banner:{promotion_name:i},index:c,componentIndex:u}=e,m=typeof c=="number"?`:${c+1}`:"",h={creative_name:s,creative_slot:`${s}-${l.current}:${u+1}${m}`,promotion_id:e.banner.href,promotion_name:i},p=f.useRef(null),_=f.useMemo(()=>{var C;if((C=e.banner.video)!=null&&C.includes("player.vimeo")){const y=e.banner.video.split("?")[1],v=y==null?void 0:y.split("&"),N=v==null?void 0:v.filter(w=>w.includes("loc")||w.includes("signature")||w.includes("user_id")),j=N==null?void 0:N.join("&");return`${e.banner.video.split("?")[0]}?${j}`}return e.banner.video},[e]),g=()=>{var C;(C=p.current)!=null&&C.paused&&p.current.play()};return t.jsx(Ae,{eventData:{functionKey:"readyEvents",data:{event:"view_promotion",readyData:{ecommerce:{...h,index:c}}}},observerOptions:{delay:100,..._&&{threshold:.1}},..._&&{callBackWhenVisible:g},children:e.banner.href?t.jsx(x.NextLink,{href:e.banner.href,onClick:()=>{a({updatePromotionRef:!0,promotion:h,index:c})},children:t.jsx(wt,{data:e,videoUrl:_,priority:r,videoRef:p,...o})}):t.jsx(wt,{data:e,videoUrl:_,priority:r,videoRef:p,...o})})},Ir=e=>t.jsx(mt,{...e}),He={"custom-carousel":"_custom-carousel_t5fgp_1","carrousel-arrows-display-controller":"_carrousel-arrows-display-controller_t5fgp_10","carousel-controllers-modifier":"_carousel-controllers-modifier_t5fgp_19"};function ka(e,n){const{mediatorRef:r}=x.useGlobalContext();f.useEffect(()=>r.current.subscribe(e,n),[e,n])}const Pt=({prevOnClick:e,nextOnClick:n,onBulletClick:r,currentPage:s,totalPages:o,position:a,hideControllers:l,left:i,isFirst:c,ICONS:u})=>{const[m,h]=f.useState("default");return ka("herobanner:change_controllers_variant",p=>{c&&h(p.includes("white")?"inverse":"default")}),t.jsxs(d.Carousel.Controller,{className:He["carousel-controllers-modifier"],position:a??"absolute","data-hide-controllers":l,bottom:"16px",top:"unset",left:i,children:[t.jsxs(d.Carousel.Arrows,{className:He["carrousel-arrows-display-controller"],children:[t.jsx(d.Button,{variant:"tertiary",onClick:e,adornment:{start:t.jsx(d.Icon,{name:u.arrow_left})},mode:m}),t.jsx(d.Button,{variant:"tertiary",onClick:n,adornment:{start:t.jsx(d.Icon,{name:u.arrow_right})},mode:m})]}),t.jsx(d.Carousel.Bullets,{page:s,total:o,onBulletClick:r,mode:m})]})},Aa=({children:e,data:n,banner:r,...s})=>{const{mediatorRef:o}=x.useGlobalContext();return n.data.first?t.jsx(Ae,{observerOptions:{threshold:.51},stopOnIntersection:!1,callBackWhenVisible:()=>{o.current.publish("header:change_variant",r.headerVariant)},...s,children:e}):t.jsx(t.Fragment,{children:e})},Ta=({data:e,ICONS:n})=>{var h;const{initialize:r,pagination:s,controller:o,itemsStyles:a}=d.Carousel.useCarousel({gap:e.data.config.gap,itemsPerPage:e.data.config.slidesPerView,direction:"row"}),l=f.useRef(void 0),i=f.useMemo(()=>Sr(e.data.config.controllerPosition??"dentro-inferior-centro"),[e]),c=f.useCallback(()=>{e.data.config.slideDuration&&s.totalPages>1&&(l.current=setInterval(()=>{o==null||o.nextPage()},e.data.config.slideDuration*1e3))},[o,e.data.config.slideDuration,s.totalPages]),u=f.useCallback(p=>{clearInterval(l.current),c(),p()},[c]),m=f.useMemo(()=>{var p;return{nextOnClick:()=>u(()=>o==null?void 0:o.nextPage()),prevOnClick:()=>u(()=>o==null?void 0:o.prevPage()),onBulletClick:_=>u(()=>o==null?void 0:o.navigateTo(_)),currentPage:s.currentPage,totalPages:s.totalPages,position:i.position,hideControllers:((p=e.data.config)==null?void 0:p.hideControllers)??!1,left:i.left}},[s.currentPage,s.totalPages,i.position,e.data.config.hideControllers,u,o]);return f.useEffect(()=>(c(),()=>clearInterval(l.current)),[c]),t.jsxs(d.Carousel.Root,{innerRef:p=>{r(p)},className:d.helpers.classNameConcat(He["custom-carousel"],e.data.config.fullWidth?"":"common-section"),"data-infinity-border":!0,style:{...e.data.config.marginTop!=="0px"&&{marginTop:`-${e.data.config.marginTop}`},...e.data.config.marginBottom!=="0px"&&{marginBottom:`-${e.data.config.marginBottom}`}},children:[i.shouldRender==="top"&&s.totalPages>1?t.jsx(Pt,{ICONS:n,...m,isFirst:e.data.first}):t.jsx(t.Fragment,{}),t.jsx(d.Carousel.Body,{children:(h=e==null?void 0:e.data)==null?void 0:h.banners.map((p,_)=>t.jsx(d.Carousel.Item,{style:a,children:t.jsx(Aa,{data:e,banner:p,children:t.jsx(mt,{ICONS:n,suppressContentEditableWarning:!0,suppressHydrationWarning:!0,data:{banner:p,index:_,componentIndex:e.data.componentIndex},creative:"banner-carousel",...e.data.first&&_===0&&{priority:!0}})})},`hero-banner-item-${_}`))}),i.shouldRender==="bottom"&&s.totalPages>1?t.jsx(Pt,{ICONS:n,...m}):t.jsx(t.Fragment,{})]})},Ma={Banner:Ir},pe={"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"},Ra=({data:e,CONSTANTS:n})=>{var u;const{isMobile:r}=x.useGlobalContext(),s=e.config.size??"medium",o=e.config.disableCarouselMobile??!1,{initialize:a,pagination:l,controller:i,itemsStyles:c}=d.Carousel.useCarousel({itemsPerPage:r?e==null?void 0:e.config.slidesPerViewMobile:(u=e==null?void 0:e.config)==null?void 0:u.slidesPerView,gap:r?e.config.gapMobile:e.config.gap,direction:r&&o?"column":"row"});return t.jsx(d.Utils.Column,{style:{width:s==="small"?"70%":"100%"},alignContent:"center",justifyContent:"center",alignItems:"center",children:t.jsxs(d.Carousel.Root,{innerRef:m=>{a(m)},className:d.helpers.classNameConcat(pe["carousel-modifier"],"common-section"),children:[s==="medium"?t.jsxs(d.TextStructure.Root,{children:[t.jsx(d.TextStructure.DivWrapper,{className:pe["carousel-title-modifier"],children:t.jsx("h2",{className:"typography-style-body-lg",children:n.BENNEFITS_BAR_TITLE})}),r&&l.totalPages>1?t.jsx(d.Carousel.Controller,{className:pe["row-controller-modifier"],children:t.jsxs(d.Carousel.Arrows,{children:[t.jsx(d.Button,{variant:"tertiary",onClick:()=>i==null?void 0:i.prevPage(),adornment:{start:t.jsx(d.Icon,{name:n.ICONS.arrow_left})}}),t.jsx(d.Button,{variant:"tertiary",onClick:()=>i==null?void 0:i.nextPage(),adornment:{start:t.jsx(d.Icon,{name:n.ICONS.arrow_right})}})]})}):t.jsx(t.Fragment,{})]}):t.jsx(t.Fragment,{}),t.jsx(d.Carousel.Body,{children:e.bennefit.map((m,h)=>t.jsx(d.Carousel.Item,{className:pe["card-modifier"],style:c,children:t.jsx(d.Card,{stroke:!0,padding:"small",children:t.jsx(d.TextStructure.Root,{layoutProps:{columnWrapper:{alignContent:"start",alignItems:"start",justifyContent:"start"},textRow:{alignContent:"center",alignItems:"center",justifyContent:"center"}},adornment:{[s==="medium"?"top":"start"]:t.jsx(d.Icon,{name:m.icon,size:s==="medium"?"medium":"small"})},children:t.jsxs(d.TextStructure.DivWrapper,{alignItems:"start",children:[t.jsx("h3",{className:"typography-style-body-md",children:m.title}),m.subtitle&&m.subtitle.length?t.jsx("p",{className:"typography-style-body-xs",children:m.subtitle}):t.jsx(t.Fragment,{})]})})})},`bennefit=${h}`))}),!r&&l.totalPages>1?t.jsxs(d.Carousel.Controller,{className:pe["row-controller-modifier"],children:[t.jsxs(d.Carousel.Arrows,{children:[t.jsx(d.Button,{variant:"tertiary",onClick:()=>i==null?void 0:i.prevPage(),adornment:{start:t.jsx(d.Icon,{name:n.ICONS.arrow_left})}}),t.jsx(d.Button,{variant:"tertiary",onClick:()=>i==null?void 0:i.nextPage(),adornment:{start:t.jsx(d.Icon,{name:n.ICONS.arrow_right})}})]}),t.jsx(d.Carousel.Bullets,{page:l.currentPage,total:l.totalPages,onBulletClick:m=>i==null?void 0:i.navigateTo(m)})]}):t.jsx(t.Fragment,{})]})})},Oa=({data:e,ICONS:n})=>t.jsx("div",{className:d.helpers.classNameConcat(Ve.textContentSection),style:e.borderTop?{borderTop:"none"}:void 0,children:t.jsx(Nr,{data:e,ICONS:n})}),kt={"accordion-modifier":"_accordion-modifier_1we16_1","accordion-body-modifier":"_accordion-body-modifier_1we16_7"},La=({data:e,id:n,ICONS:r})=>{var a;const[s,o]=f.useState([]);return t.jsxs(d.Utils.Column,{gap:"var(--gap-vertical-sm)",children:[e.titleAccordion?t.jsx(d.TextStructure.Root,{children:t.jsx(d.TextStructure.DivWrapper,{children:t.jsx("h2",{className:d.helpers.classNameConcat("typography-style-heading-sm","common-section"),style:{fontWeight:500},children:e.titleAccordion})})}):t.jsx(t.Fragment,{}),(a=e.accordions)==null?void 0:a.map((l,i)=>t.jsxs(d.Accordion.Wrapper,{className:kt["accordion-modifier"],children:[t.jsx(d.Accordion.Header,{id:`${n}-text-accordion-${i}`,openIndicator:t.jsx(d.Icon,{name:r.arrow_down}),closeIndicator:t.jsx(d.Icon,{name:r.arrow_up}),startOpen:s.includes(i),onClick:()=>o(c=>c.includes(i)?c.filter(u=>u!==i):[...c,i]),children:t.jsx(d.TextStructure.Root,{children:t.jsxs(d.TextStructure.DivWrapper,{className:qe["draftjs-text-modifier"],children:[t.jsx("h3",{className:"typography-style-body-md-strong",children:l.title}),l.subtitle&&l.subtitle.length?t.jsx("h2",{children:l.subtitle}):t.jsx(t.Fragment,{})]})})}),t.jsx(d.Accordion.Body,{children:t.jsx(d.TextStructure.Root,{children:t.jsx(d.TextStructure.DivWrapper,{className:d.helpers.classNameConcat(kt["accordion-body-modifier"],qe["draftjs-text-modifier"]),children:t.jsx(Q.Editor,{editorKey:`${n}-editor-${i}`,blockRenderMap:we,editorState:l.text?Ee(JSON.parse(l.text)):Q.EditorState.createEmpty(),onChange:()=>null})})})})]},`${n}-accordion-${i}-${s.includes(i)}`))]})},Er=f.createContext({}),Da=({data:e,children:n,...r})=>{var g,C,y,v,N,j,w,b,I,k,D,F,M;const[s,o]=f.useState(!0),{initialize:a,controller:l,itemsStyles:i}=d.Carousel.useCarousel({gap:0,itemsPerPage:1}),c={slideTranstionTimer:(C=(g=e==null?void 0:e.staticConfig)==null?void 0:g.staticConfig)==null?void 0:C.slideTranstionTimer,showCarouselArrows:(v=(y=e==null?void 0:e.staticConfig)==null?void 0:y.staticConfig)==null?void 0:v.showCarouselArrows,hasCloseBtn:(j=(N=e==null?void 0:e.staticConfig)==null?void 0:N.staticConfig)==null?void 0:j.hasCloseBtn,backgroundColor:(b=(w=e==null?void 0:e.staticConfig)==null?void 0:w.staticConfig)==null?void 0:b.backgroundColor,textColorVariant:(k=(I=e==null?void 0:e.staticConfig)==null?void 0:I.staticConfig)==null?void 0:k.textColorVariant,content:((F=(D=e==null?void 0:e.content)==null?void 0:D.content)==null?void 0:F.items)??[]},u=(M=c.content)==null?void 0:M.filter(B=>!B.countDownEndDate||new Date(B.countDownEndDate)>new Date),m=u.length>1,h={...c.backgroundColor?{backgroundColor:c.backgroundColor}:{}},p=()=>{o(!1)},_=d.helpers.ValidateProp({fieldTypes:de.Mode,property:c.textColorVariant,fallback:"default"});return t.jsx(Er.Provider,{value:{isOpen:s,setIsOpen:o,hasCarousel:m,backgroundStyle:h,handleCloseTipbar:p,mode:_,slideTranstionTimer:c.slideTranstionTimer,showCarouselArrows:c.showCarouselArrows,hasCloseBtn:c.hasCloseBtn,slices:u,carouselProps:{initialize:a,controller:l,itemsStyles:i},...r},children:n})},ee=()=>f.useContext(Er),za=({dateEnd:e,...n})=>{const{CONSTANTS:{TIME_ZONE:r}}=ee();return t.jsx(Ge,{dateEnd:new Date(e),TIME_ZONE:r,...n})},Ba="_tipbar_bt3p0_1",$a="_tipbar__carousel_bt3p0_15",be={tipbar:Ba,tipbar__carousel:$a,"tipbar__close-btn":"_tipbar__close-btn_bt3p0_29","tipbar-item":"_tipbar-item_bt3p0_37","tipbar-item__coupon":"_tipbar-item__coupon_bt3p0_45"},Fa=({coupon:e,feedbackTitle:n,feedbackDescription:r,...s})=>{const{CONSTANTS:o}=ee(),{addCouponSeller:a,cartStore:l}=Z(),[i,c]=f.useState({status:!1,showSnackBar:!1}),[u,m]=f.useState(!1),[h,p]=f.useState(!1),_=async()=>{if(!l.items.length){p(!0);return}(await a(e,"coupon")).code===200?c({status:!0,showSnackBar:!0}):m(!0)};return f.useEffect(()=>{i.showSnackBar&&setTimeout(()=>{c(g=>({...g,showSnackBar:!1}))},o.TIPBAR_CONFIGS.snackbar_timeout)},[i.showSnackBar]),f.useEffect(()=>{u&&setTimeout(()=>{m(!1)},o.TIPBAR_CONFIGS.snackbar_timeout)},[u]),f.useEffect(()=>{h&&setTimeout(()=>{p(!1)},o.TIPBAR_CONFIGS.snackbar_timeout)},[h]),t.jsxs(t.Fragment,{children:[t.jsx(d.Button,{...s,onClick:_,disabled:i.status,className:be["tipbar-item__coupon"],children:i.status?`${o.TIPBAR_CONFIGS.coupon_applied_message}`:`${o.TIPBAR_CONFIGS.coupon_default_message}`}),i.showSnackBar&&(n||r)&&t.jsx(ge,{title:n,subtitle:r,Z_INDEX_WAR:o.Z_INDEX_WAR},`feedback-coupon-${e}`),u&&t.jsx(ge,{title:o.TIPBAR_CONFIGS.coupon_error_title,subtitle:o.TIPBAR_CONFIGS.coupon_error_message,Z_INDEX_WAR:o.Z_INDEX_WAR},`error-coupon-${e}`),h&&t.jsx(ge,{title:o.TIPBAR_CONFIGS.coupon_cart_empty_title,subtitle:o.TIPBAR_CONFIGS.coupon_cart_empty_message,Z_INDEX_WAR:o.Z_INDEX_WAR},`error-cart-empty-${e}`)]})},Ua=({title:e,description:n,style:r,mode:s,className:o})=>t.jsx(d.TextStructure.Root,{children:t.jsxs(d.TextStructure.DivWrapper,{mode:s,className:o,children:[e&&t.jsx("h3",{className:"typography-style-body-sm",style:r,children:e}),n&&t.jsx("p",{className:"typography-style-caption",style:r,children:n})]})}),qa=({coupon:e,...n})=>{const{CONSTANTS:r}=ee();return t.jsx(d.Copy,{...n,iconCopy:r.ICONS.copy,iconSuccess:r.ICONS.check,children:e})},Va=({staticZone:e,type:n,className:r,description:s,title:o})=>{const{mode:a}=ee();if(n==="countdown")return t.jsx(za,{dateEnd:e.countDownEndDate,size:"x-small",mode:a});if(n==="coupon"){const l=d.helpers.ValidateProp({fieldTypes:de.Mode,property:e.couponButtonMode,fallback:"default"}),i=d.helpers.ValidateProp({fieldTypes:de.VariantsExtended,property:e.couponButtonVariant,fallback:"primary"});return e.coupon?t.jsx(Fa,{coupon:e.coupon,mode:l,variant:i,feedbackTitle:e.couponFeedbackTitle,feedbackDescription:e.couponFeedbackDescription}):null}if(n==="copy"){const l=d.helpers.ValidateProp({fieldTypes:de.Mode,property:e.couponButtonMode,fallback:"default"});return e.coupon?t.jsx(qa,{coupon:e.coupon,mode:l}):null}return t.jsx(Ua,{title:o,description:s,mode:a,className:r})},At=({handleCloseTipbar:e,mode:n})=>{const{CONSTANTS:r}=ee();return t.jsx(d.Button,{title:"fechar tipbar",className:be["tipbar__close-btn"],onClick:e,variant:"tertiary",mode:n,adornment:{start:t.jsx(d.Icon,{name:r.ICONS.close})}})},Ga=({children:e,mode:n="default",showCarouselArrows:r=!0,slideTranstionTimer:s})=>{const{carouselProps:o,CONSTANTS:a}=ee(),l=f.useRef(null),i=(u,m)=>{var h,p;u.stopPropagation(),u.preventDefault(),m==="prev"?(h=o.controller)==null||h.prevPage():(p=o.controller)==null||p.nextPage(),l.current&&(clearInterval(l.current),c())},c=f.useCallback(()=>{if(s&&o.controller){const u=setInterval(()=>{var m;(m=o.controller)==null||m.nextPage()},s);l.current=u}},[s,o]);return f.useEffect(()=>(c(),()=>{l.current&&clearInterval(l.current)}),[s,c]),t.jsxs(d.Carousel.Root,{innerRef:u=>{o.initialize(u)},className:be.tipbar__carousel,style:{flexDirection:"row",alignItems:"center"},children:[r&&t.jsx(d.Button,{variant:"tertiary",mode:n,onClick:u=>i(u,"prev"),adornment:{start:t.jsx(d.Icon,{name:a.ICONS.arrow_left})}}),t.jsx(d.Carousel.Body,{children:e}),r&&t.jsx(d.Button,{variant:"tertiary",mode:n,onClick:u=>i(u,"next"),adornment:{start:t.jsx(d.Icon,{name:a.ICONS.arrow_right})}})]})},Ha=({children:e,className:n})=>{const{hasCarousel:r,mode:s,hasCloseBtn:o,backgroundStyle:a,showCarouselArrows:l,slideTranstionTimer:i,handleCloseTipbar:c}=ee(),u=r&&l;return t.jsx("div",{style:a,"data-hasclosebtn":o,className:d.helpers.classNameConcat(be.tipbar,n),children:r?t.jsxs(t.Fragment,{children:[t.jsx(Ga,{mode:s,showCarouselArrows:u,slideTranstionTimer:i,children:e}),o&&t.jsx(At,{handleCloseTipbar:c,showCarouselArrows:u,mode:s})]}):t.jsxs(t.Fragment,{children:[e,o&&t.jsx(At,{handleCloseTipbar:c,mode:s})]})})},Wa=({children:e,highlightFirstSection:n,...r})=>{const{hasCarousel:s,carouselProps:o}=ee(),a=t.jsx("div",{...r,className:be["tipbar-item"],children:e});return s?t.jsx(d.Carousel.Item,{style:o.itemsStyles,children:a}):a},wr=({className:e})=>{const{isOpen:n,slices:r}=ee();return r.length&&n?t.jsx(Ha,{children:r.map((s,o)=>{var a;return t.jsx(t.Fragment,{children:t.jsx(ve,{href:s.link,children:t.jsx(Wa,{highlightFirstSection:s.highlightFirstSection,"data-justifyhighlightedsection":s.horizontalAlignHighlightedSection?s.horizontalAlignHighlightedSection:"center",children:s&&((a=s==null?void 0:s.items)!=null&&a.length)?s.items.map((l,i)=>t.jsx(Va,{staticZone:s,type:l.type,title:l.title,description:l.description,className:e},`tipbar-slice-field-${i}`)):null})})},`tipbar-slice-${o}`)})}):null};wr.displayName="TipBar.Root";const We=({className:e,...n})=>t.jsx(Da,{...n,children:t.jsx(wr,{className:e})});We.displayName="TipBar";const Ka=({CONSTANTS:e,data:n})=>{const{tipbarRef:r}=L(),s=n==null?void 0:n.find(a=>{var l,i;return((i=(l=a.staticConfig)==null?void 0:l.staticConfig)==null?void 0:i.deviceType)==="desktop"}),o=n==null?void 0:n.find(a=>{var l,i;return((i=(l=a.staticConfig)==null?void 0:l.staticConfig)==null?void 0:i.deviceType)==="mobile"});return t.jsxs("div",{ref:r,className:x.responsive["responsive-flex"],children:[o?t.jsx("div",{className:x.responsive["responsive-mobile-flex"],children:t.jsx(We,{data:o,CONSTANTS:e})}):null,s?t.jsx("div",{className:x.responsive["responsive-desktop-flex"],children:t.jsx(We,{data:s,CONSTANTS:e})}):null]})},Tt={"card-image-wrapper":"_card-image-wrapper_10mul_1","card-image-container":"_card-image-container_10mul_9"},Xa=e=>{const{nextimage:n}=x.useNextContext();return t.jsx(t.Fragment,{children:e.data.banners.map((r,s)=>t.jsx("div",{className:Tt["card-image-wrapper"],children:t.jsx("div",{className:Tt["card-image-container"],children:t.jsx(n,{src:r.image,alt:r.altImage?r.altImage:"Banner Coleção",width:500,height:600})})},s))})},Ya={Banner:Ma,BannerSection:mt,BennefitsBarSection:Ra,SingleBannerSection:Ir,TextContentSection:Oa,BannerCarousel:Ta,TextAccordionSection:La,TipbarScreening:Ka,ImageGrid:Xa,PLPContentProvider:x.PLPContentProvider},Qa={Components:Ya,helpers:Na};exports.cms=Qa;exports.contexts=Es;exports.data=at;exports.layout=xa;exports.scripts=va;
|
|
81
|
+
`},Yh=Object.freeze(Object.defineProperty({__proto__:null,generateMiddleware:Qh},Symbol.toStringTag,{value:"Module"})),Zh={helpers:Yh},Jh=(e,t,r)=>{e.findEntityRanges(n=>{const o=n.getEntity();return o===null?!1:r.getEntity(o).getType()==="LINK"},t)},Vt=e=>{const t=new De.CompositeDecorator([{strategy:Jh,component:fl}]),r=De.convertFromRaw(e);return De.EditorState.createWithContent(r,t)},eg=e=>De.convertFromRaw(e),Kt=De.DefaultDraftBlockRenderMap.set("unstyled",{element:"div",aliasedElements:["div"]}),sa="superior-direita",zt="dentro-inferior-centro",tg="inferior-direita",Vn="dentro-inferior-esquerda",bl=e=>({position:e===zt||e===Vn?"absolute":"default",shouldRender:[sa,zt,Vn].includes(e)?"top":"bottom",alignItems:[zt].includes(e)?"center":[sa,tg].includes(e)?"flex-end":"flex-start",left:e===Vn?"16px":e===zt?"45%":"unset"}),rg=Object.freeze(Object.defineProperty({__proto__:null,CREATE_CONTENT:Vt,EXTENDED_BLOCK_RENDER_MAP:Kt,GET_CONTENT_STATE:eg,controllersPositionsAdapter:bl},Symbol.toStringTag,{value:"Module"})),Je=e=>({centro:"center",esquerda:"start",direita:"end"})[e],ng=({expanded:e,content:t})=>a.jsxs("details",{open:e,children:[t.textStructureReduced?a.jsx("summary",{onClick:r=>r.preventDefault(),children:a.jsx(De.Editor,{editorKey:"draft-editor-1",blockRenderMap:Kt,editorState:t!=null&&t.textStructureReduced?Vt(JSON.parse(t.textStructureReduced)):De.EditorState.createEmpty(),onChange:()=>null,readOnly:!0})}):a.jsx(a.Fragment,{}),t.showTextStructureExpander&&t.textStructure?a.jsx(a.Fragment,{children:a.jsx(De.Editor,{editorKey:"draft-editor-1",blockRenderMap:Kt,editorState:t.textStructure?Vt(JSON.parse(t.textStructure)):De.EditorState.createEmpty(),onChange:()=>null,readOnly:!0})}):a.jsx(a.Fragment,{})]}),ho={"draftjs-text-modifier":"_draftjs-text-modifier_1itwm_2"},og="_textContentWrapper_1bigo_5",ig="_textContentSection_1bigo_13",go={"link-modifier":"_link-modifier_1bigo_1",textContentWrapper:og,textContentSection:ig},xl=({data:e,ICONS:t})=>{var o;const[r,n]=C.useState(!1);return a.jsx(v.TextStructure.Root,{layoutProps:{textRow:{alignContent:Je(e.textStructureAlignment),alignItems:Je(e.textStructureAlignment)},columnWrapper:{alignContent:Je(e.textStructureAlignment),alignItems:Je(e.textStructureAlignment)}},adornment:{bottom:e.showTextStructureExpander&&e.textStructure?a.jsx(v.Button,{variant:"tertiary",adornment:{end:a.jsx(v.Icon,{name:r?`${t.arrow_up}`:`${t.arrow_down}`})},onClick:()=>n(i=>!i),size:"small",children:r?"Ver Menos":"Ver Mais"}):a.jsx(a.Fragment,{})},children:a.jsxs(v.Utils.Column,{className:go.textContentWrapper,style:{alignItems:Je(e.textStructureAlignment)},children:[a.jsx(v.TextStructure.DivWrapper,{style:{textAlign:Je(e.textStructureAlignment)},mode:e.textStructureMode??"default",className:ho["draftjs-text-modifier"],children:e.textStructureReduced?a.jsx(ng,{content:e,expanded:r}):a.jsx(a.Fragment,{})}),e.textStructureButtonLabel?a.jsx(ze,{mode:e.textStructureMode??"default",href:e.textStructureButtonHref??"#",size:e.textStructureButtonSize,className:go["link-modifier"],adornments:(o=e.textStructureButtonIcon)!=null&&o.length&&e.enableIcon?{end:a.jsx(v.Icon,{name:e.textStructureButtonIcon})}:void 0,children:e.textStructureButtonLabel}):a.jsx(a.Fragment,{})]})})},sg=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],aa=e=>({centro:"center",esquerda:"start",direita:"end"})[e],yo=({dateEnd:e,dateInit:t,TIME_ZONE:r="America/Sao_Paulo",...n})=>{const[o,i]=C.useState(Mc(new Zo.TZDate(Date.now(),r),new Zo.TZDate(e,r))),[s,c]=C.useState(!1);C.useEffect(()=>{s||c(!0);const l=setInterval(()=>{if(o<=0){clearInterval(l);return}i(o-1e3)},1e3);return()=>{clearInterval(l)}},[o,i,s]);const u=ut(o,"days");return s&&o>0?a.jsxs(v.Timer.Root,{...n,children:[u?a.jsxs(a.Fragment,{children:[a.jsx(v.Timer.Digit,{label:"dias",value:u}),a.jsx(v.Timer.Separator,{})]}):null,a.jsx(v.Timer.Digit,{label:"horas",value:ut(o,"hours")}),a.jsx(v.Timer.Separator,{}),a.jsx(v.Timer.Digit,{label:"min",value:ut(o,"minutes")}),a.jsx(v.Timer.Separator,{}),a.jsx(v.Timer.Digit,{label:"segs",value:ut(o),suppressHydrationWarning:!0})]}):a.jsx(a.Fragment,{})},ca={"content-modifier":"_content-modifier_16y4u_5","banner-image-wrapper-modifier":"_banner-image-wrapper-modifier_16y4u_13"},ua=({data:e,videoUrl:t,priority:r,videoRef:n,ICONS:o,...i})=>{const{video:s,image:c,imageHref:u,imageOpacity:l,altImage:f,backgroundColor:p,position:d,contentAlignment:m,showTimer:h,contentOrder:y,timerMode:g,timerEnd:b,timerInit:E,textStructure:_,textStructureReduced:R}=e.banner,S=(u==null?void 0:u.trim())||(c==null?void 0:c.trim())||null,{nextimage:j}=Pe();return a.jsxs(v.Banner.Container,{...i,children:[a.jsxs(v.Banner.ImageWrapper,{className:ca["banner-image-wrapper-modifier"],style:l?{background:p}:void 0,children:[s&&a.jsx($e.Video,{videoRef:n,src:t,autoPlay:r,loop:!0,playsInline:!0,muted:!0}),S&&!(s!=null&&s.length)&&a.jsx(j,{src:S,width:"1920",height:"1080",alt:f??c??"",...r?{priority:r}:{},style:l?{opacity:"0"}:void 0}),!c&&!(s!=null&&s.length)&&a.jsx("div",{style:{background:p}})]}),h||R||_?a.jsx(v.Banner.Slot,{...sg(d??"centro"),className:ca["content-modifier"],style:{textAlign:aa(m)},children:a.jsxs(v.Utils.Column,{gap:"16px",alignItems:aa(m),children:[h&&y==="timer-first"&&a.jsx(yo,{mode:g??"default",size:"small",dateEnd:b?new Date(b):new Date,dateInit:E?new Date(E):new Date}),a.jsx(xl,{data:e.banner,ICONS:o}),h&&y!=="timer-first"&&a.jsx(yo,{mode:g??"default",size:"small",dateEnd:b?new Date(b):new Date,dateInit:E?new Date(E):new Date})]})}):a.jsx(a.Fragment,{})]})},Qo=({data:e,className:t,priority:r,creative:n,...o})=>{const{handleSelectPromotionEvent:i,currentLocalRef:s}=ge(),{banner:{promotion_name:c},index:u,componentIndex:l}=e,f=typeof u=="number"?`:${u+1}`:"",p={creative_name:n,creative_slot:`${n}-${s.current}:${l+1}${f}`,promotion_id:e.banner.href,promotion_name:c},d=C.useRef(null),m=C.useMemo(()=>{var y;if((y=e.banner.video)!=null&&y.includes("player.vimeo")){const g=e.banner.video.split("?")[1],b=g==null?void 0:g.split("&"),E=b==null?void 0:b.filter(R=>R.includes("loc")||R.includes("signature")||R.includes("user_id")),_=E==null?void 0:E.join("&");return`${e.banner.video.split("?")[0]}?${_}`}return e.banner.video},[e]),h=()=>{var y;(y=d.current)!=null&&y.paused&&d.current.play()};return a.jsx(er,{eventData:{functionKey:"readyEvents",data:{event:"view_promotion",readyData:{ecommerce:{...p,index:u}}}},observerOptions:{delay:100,...m&&{threshold:.1}},...m&&{callBackWhenVisible:h},children:e.banner.href?a.jsx(Ne,{href:e.banner.href,onClick:()=>{i({updatePromotionRef:!0,promotion:p,index:u})},children:a.jsx(ua,{data:e,videoUrl:m,priority:r,videoRef:d,...o})}):a.jsx(ua,{data:e,videoUrl:m,priority:r,videoRef:d,...o})})},Cl=e=>a.jsx(Qo,{...e}),_o={"custom-carousel":"_custom-carousel_t5fgp_1","carrousel-arrows-display-controller":"_carrousel-arrows-display-controller_t5fgp_10","carousel-controllers-modifier":"_carousel-controllers-modifier_t5fgp_19"};function ag(e,t){const{mediatorRef:r}=Se();C.useEffect(()=>r.current.subscribe(e,t),[e,t])}const la=({prevOnClick:e,nextOnClick:t,onBulletClick:r,currentPage:n,totalPages:o,position:i,hideControllers:s,left:c,isFirst:u,ICONS:l})=>{const[f,p]=C.useState("default");return ag("herobanner:change_controllers_variant",d=>{u&&p(d.includes("white")?"inverse":"default")}),a.jsxs(v.Carousel.Controller,{className:_o["carousel-controllers-modifier"],position:i??"absolute","data-hide-controllers":s,bottom:"16px",top:"unset",left:c,children:[a.jsxs(v.Carousel.Arrows,{className:_o["carrousel-arrows-display-controller"],children:[a.jsx(v.Button,{variant:"tertiary",onClick:e,adornment:{start:a.jsx(v.Icon,{name:l.arrow_left})},mode:f}),a.jsx(v.Button,{variant:"tertiary",onClick:t,adornment:{start:a.jsx(v.Icon,{name:l.arrow_right})},mode:f})]}),a.jsx(v.Carousel.Bullets,{page:n,total:o,onBulletClick:r,mode:f})]})},cg=({children:e,data:t,banner:r,...n})=>{const{mediatorRef:o}=Se();return t.data.first?a.jsx(er,{observerOptions:{threshold:.51},stopOnIntersection:!1,callBackWhenVisible:()=>{o.current.publish("header:change_variant",r.headerVariant)},...n,children:e}):a.jsx(a.Fragment,{children:e})},ug=({data:e,ICONS:t})=>{var p;const{initialize:r,pagination:n,controller:o,itemsStyles:i}=v.Carousel.useCarousel({gap:e.data.config.gap,itemsPerPage:e.data.config.slidesPerView,direction:"row"}),s=C.useRef(void 0),c=C.useMemo(()=>bl(e.data.config.controllerPosition??"dentro-inferior-centro"),[e]),u=C.useCallback(()=>{e.data.config.slideDuration&&n.totalPages>1&&(s.current=setInterval(()=>{o==null||o.nextPage()},e.data.config.slideDuration*1e3))},[o,e.data.config.slideDuration,n.totalPages]),l=C.useCallback(d=>{clearInterval(s.current),u(),d()},[u]),f=C.useMemo(()=>{var d;return{nextOnClick:()=>l(()=>o==null?void 0:o.nextPage()),prevOnClick:()=>l(()=>o==null?void 0:o.prevPage()),onBulletClick:m=>l(()=>o==null?void 0:o.navigateTo(m)),currentPage:n.currentPage,totalPages:n.totalPages,position:c.position,hideControllers:((d=e.data.config)==null?void 0:d.hideControllers)??!1,left:c.left}},[n.currentPage,n.totalPages,c.position,e.data.config.hideControllers,l,o]);return C.useEffect(()=>(u(),()=>clearInterval(s.current)),[u]),a.jsxs(v.Carousel.Root,{innerRef:d=>{r(d)},className:v.helpers.classNameConcat(_o["custom-carousel"],e.data.config.fullWidth?"":"common-section"),"data-infinity-border":!0,style:{...e.data.config.marginTop!=="0px"&&{marginTop:`-${e.data.config.marginTop}`},...e.data.config.marginBottom!=="0px"&&{marginBottom:`-${e.data.config.marginBottom}`}},children:[c.shouldRender==="top"&&n.totalPages>1?a.jsx(la,{ICONS:t,...f,isFirst:e.data.first}):a.jsx(a.Fragment,{}),a.jsx(v.Carousel.Body,{children:(p=e==null?void 0:e.data)==null?void 0:p.banners.map((d,m)=>a.jsx(v.Carousel.Item,{style:i,children:a.jsx(cg,{data:e,banner:d,children:a.jsx(Qo,{ICONS:t,suppressContentEditableWarning:!0,suppressHydrationWarning:!0,data:{banner:d,index:m,componentIndex:e.data.componentIndex},creative:"banner-carousel",...e.data.first&&m===0&&{priority:!0}})})},`hero-banner-item-${m}`))}),c.shouldRender==="bottom"&&n.totalPages>1?a.jsx(la,{ICONS:t,...f}):a.jsx(a.Fragment,{})]})},lg={Banner:Cl},at={"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"},dg=({data:e,CONSTANTS:t})=>{var l;const{isMobile:r}=Se(),n=e.config.size??"medium",o=e.config.disableCarouselMobile??!1,{initialize:i,pagination:s,controller:c,itemsStyles:u}=v.Carousel.useCarousel({itemsPerPage:r?e==null?void 0:e.config.slidesPerViewMobile:(l=e==null?void 0:e.config)==null?void 0:l.slidesPerView,gap:r?e.config.gapMobile:e.config.gap,direction:r&&o?"column":"row"});return a.jsx(v.Utils.Column,{style:{width:n==="small"?"70%":"100%"},alignContent:"center",justifyContent:"center",alignItems:"center",children:a.jsxs(v.Carousel.Root,{innerRef:f=>{i(f)},className:v.helpers.classNameConcat(at["carousel-modifier"],"common-section"),children:[n==="medium"?a.jsxs(v.TextStructure.Root,{children:[a.jsx(v.TextStructure.DivWrapper,{className:at["carousel-title-modifier"],children:a.jsx("h2",{className:"typography-style-body-lg",children:t.BENNEFITS_BAR_TITLE})}),r&&s.totalPages>1?a.jsx(v.Carousel.Controller,{className:at["row-controller-modifier"],children:a.jsxs(v.Carousel.Arrows,{children:[a.jsx(v.Button,{variant:"tertiary",onClick:()=>c==null?void 0:c.prevPage(),adornment:{start:a.jsx(v.Icon,{name:t.ICONS.arrow_left})}}),a.jsx(v.Button,{variant:"tertiary",onClick:()=>c==null?void 0:c.nextPage(),adornment:{start:a.jsx(v.Icon,{name:t.ICONS.arrow_right})}})]})}):a.jsx(a.Fragment,{})]}):a.jsx(a.Fragment,{}),a.jsx(v.Carousel.Body,{children:e.bennefit.map((f,p)=>a.jsx(v.Carousel.Item,{className:at["card-modifier"],style:u,children:a.jsx(v.Card,{stroke:!0,padding:"small",children:a.jsx(v.TextStructure.Root,{layoutProps:{columnWrapper:{alignContent:"start",alignItems:"start",justifyContent:"start"},textRow:{alignContent:"center",alignItems:"center",justifyContent:"center"}},adornment:{[n==="medium"?"top":"start"]:a.jsx(v.Icon,{name:f.icon,size:n==="medium"?"medium":"small"})},children:a.jsxs(v.TextStructure.DivWrapper,{alignItems:"start",children:[a.jsx("h3",{className:"typography-style-body-md",children:f.title}),f.subtitle&&f.subtitle.length?a.jsx("p",{className:"typography-style-body-xs",children:f.subtitle}):a.jsx(a.Fragment,{})]})})})},`bennefit=${p}`))}),!r&&s.totalPages>1?a.jsxs(v.Carousel.Controller,{className:at["row-controller-modifier"],children:[a.jsxs(v.Carousel.Arrows,{children:[a.jsx(v.Button,{variant:"tertiary",onClick:()=>c==null?void 0:c.prevPage(),adornment:{start:a.jsx(v.Icon,{name:t.ICONS.arrow_left})}}),a.jsx(v.Button,{variant:"tertiary",onClick:()=>c==null?void 0:c.nextPage(),adornment:{start:a.jsx(v.Icon,{name:t.ICONS.arrow_right})}})]}),a.jsx(v.Carousel.Bullets,{page:s.currentPage,total:s.totalPages,onBulletClick:f=>c==null?void 0:c.navigateTo(f)})]}):a.jsx(a.Fragment,{})]})})},fg=({data:e,ICONS:t})=>a.jsx("div",{className:v.helpers.classNameConcat(go.textContentSection),style:e.borderTop?{borderTop:"none"}:void 0,children:a.jsx(xl,{data:e,ICONS:t})}),da={"accordion-modifier":"_accordion-modifier_1we16_1","accordion-body-modifier":"_accordion-body-modifier_1we16_7"},pg=({data:e,id:t,ICONS:r})=>{var i;const[n,o]=C.useState([]);return a.jsxs(v.Utils.Column,{gap:"var(--gap-vertical-sm)",children:[e.titleAccordion?a.jsx(v.TextStructure.Root,{children:a.jsx(v.TextStructure.DivWrapper,{children:a.jsx("h2",{className:v.helpers.classNameConcat("typography-style-heading-sm","common-section"),style:{fontWeight:500},children:e.titleAccordion})})}):a.jsx(a.Fragment,{}),(i=e.accordions)==null?void 0:i.map((s,c)=>a.jsxs(v.Accordion.Wrapper,{className:da["accordion-modifier"],children:[a.jsx(v.Accordion.Header,{id:`${t}-text-accordion-${c}`,openIndicator:a.jsx(v.Icon,{name:r.arrow_down}),closeIndicator:a.jsx(v.Icon,{name:r.arrow_up}),startOpen:n.includes(c),onClick:()=>o(u=>u.includes(c)?u.filter(l=>l!==c):[...u,c]),children:a.jsx(v.TextStructure.Root,{children:a.jsxs(v.TextStructure.DivWrapper,{className:ho["draftjs-text-modifier"],children:[a.jsx("h3",{className:"typography-style-body-md-strong",children:s.title}),s.subtitle&&s.subtitle.length?a.jsx("h2",{children:s.subtitle}):a.jsx(a.Fragment,{})]})})}),a.jsx(v.Accordion.Body,{children:a.jsx(v.TextStructure.Root,{children:a.jsx(v.TextStructure.DivWrapper,{className:v.helpers.classNameConcat(da["accordion-body-modifier"],ho["draftjs-text-modifier"]),children:a.jsx(De.Editor,{editorKey:`${t}-editor-${c}`,blockRenderMap:Kt,editorState:s.text?Vt(JSON.parse(s.text)):De.EditorState.createEmpty(),onChange:()=>null})})})})]},`${t}-accordion-${c}-${n.includes(c)}`))]})},Sl=C.createContext({}),mg=({data:e,children:t,...r})=>{var h,y,g,b,E,_,R,S,j,x,P,L,A;const[n,o]=C.useState(!0),{initialize:i,controller:s,itemsStyles:c}=v.Carousel.useCarousel({gap:0,itemsPerPage:1}),u={slideTranstionTimer:(y=(h=e==null?void 0:e.staticConfig)==null?void 0:h.staticConfig)==null?void 0:y.slideTranstionTimer,showCarouselArrows:(b=(g=e==null?void 0:e.staticConfig)==null?void 0:g.staticConfig)==null?void 0:b.showCarouselArrows,hasCloseBtn:(_=(E=e==null?void 0:e.staticConfig)==null?void 0:E.staticConfig)==null?void 0:_.hasCloseBtn,backgroundColor:(S=(R=e==null?void 0:e.staticConfig)==null?void 0:R.staticConfig)==null?void 0:S.backgroundColor,textColorVariant:(x=(j=e==null?void 0:e.staticConfig)==null?void 0:j.staticConfig)==null?void 0:x.textColorVariant,content:((L=(P=e==null?void 0:e.content)==null?void 0:P.content)==null?void 0:L.items)??[]},l=(A=u.content)==null?void 0:A.filter(O=>!O.countDownEndDate||new Date(O.countDownEndDate)>new Date),f=l.length>1,p={...u.backgroundColor?{backgroundColor:u.backgroundColor}:{}},d=()=>{o(!1)},m=v.helpers.ValidateProp({fieldTypes:tt.Mode,property:u.textColorVariant,fallback:"default"});return a.jsx(Sl.Provider,{value:{isOpen:n,setIsOpen:o,hasCarousel:f,backgroundStyle:p,handleCloseTipbar:d,mode:m,slideTranstionTimer:u.slideTranstionTimer,showCarouselArrows:u.showCarouselArrows,hasCloseBtn:u.hasCloseBtn,slices:l,carouselProps:{initialize:i,controller:s,itemsStyles:c},...r},children:t})},qe=()=>C.useContext(Sl),hg=({dateEnd:e,...t})=>{const{CONSTANTS:{TIME_ZONE:r}}=qe();return a.jsx(yo,{dateEnd:new Date(e),TIME_ZONE:r,...t})},gg="_tipbar_bt3p0_1",yg="_tipbar__carousel_bt3p0_15",Ct={tipbar:gg,tipbar__carousel:yg,"tipbar__close-btn":"_tipbar__close-btn_bt3p0_29","tipbar-item":"_tipbar-item_bt3p0_37","tipbar-item__coupon":"_tipbar-item__coupon_bt3p0_45"},_g=({coupon:e,feedbackTitle:t,feedbackDescription:r,...n})=>{const{CONSTANTS:o}=qe(),{addCouponSeller:i,cartStore:s}=Be(),[c,u]=C.useState({status:!1,showSnackBar:!1}),[l,f]=C.useState(!1),[p,d]=C.useState(!1),m=async()=>{if(!s.items.length){d(!0);return}(await i(e,"coupon")).code===200?u({status:!0,showSnackBar:!0}):f(!0)};return C.useEffect(()=>{c.showSnackBar&&setTimeout(()=>{u(h=>({...h,showSnackBar:!1}))},o.TIPBAR_CONFIGS.snackbar_timeout)},[c.showSnackBar]),C.useEffect(()=>{l&&setTimeout(()=>{f(!1)},o.TIPBAR_CONFIGS.snackbar_timeout)},[l]),C.useEffect(()=>{p&&setTimeout(()=>{d(!1)},o.TIPBAR_CONFIGS.snackbar_timeout)},[p]),a.jsxs(a.Fragment,{children:[a.jsx(v.Button,{...n,onClick:m,disabled:c.status,className:Ct["tipbar-item__coupon"],children:c.status?`${o.TIPBAR_CONFIGS.coupon_applied_message}`:`${o.TIPBAR_CONFIGS.coupon_default_message}`}),c.showSnackBar&&(t||r)&&a.jsx(dt,{title:t,subtitle:r,Z_INDEX_WAR:o.Z_INDEX_WAR},`feedback-coupon-${e}`),l&&a.jsx(dt,{title:o.TIPBAR_CONFIGS.coupon_error_title,subtitle:o.TIPBAR_CONFIGS.coupon_error_message,Z_INDEX_WAR:o.Z_INDEX_WAR},`error-coupon-${e}`),p&&a.jsx(dt,{title:o.TIPBAR_CONFIGS.coupon_cart_empty_title,subtitle:o.TIPBAR_CONFIGS.coupon_cart_empty_message,Z_INDEX_WAR:o.Z_INDEX_WAR},`error-cart-empty-${e}`)]})},vg=({title:e,description:t,style:r,mode:n,className:o})=>a.jsx(v.TextStructure.Root,{children:a.jsxs(v.TextStructure.DivWrapper,{mode:n,className:o,children:[e&&a.jsx("h3",{className:"typography-style-body-sm",style:r,children:e}),t&&a.jsx("p",{className:"typography-style-caption",style:r,children:t})]})}),bg=({coupon:e,...t})=>{const{CONSTANTS:r}=qe();return a.jsx(v.Copy,{...t,iconCopy:r.ICONS.copy,iconSuccess:r.ICONS.check,children:e})},xg=({staticZone:e,type:t,className:r,description:n,title:o})=>{const{mode:i}=qe();if(t==="countdown")return a.jsx(hg,{dateEnd:e.countDownEndDate,size:"x-small",mode:i});if(t==="coupon"){const s=v.helpers.ValidateProp({fieldTypes:tt.Mode,property:e.couponButtonMode,fallback:"default"}),c=v.helpers.ValidateProp({fieldTypes:tt.VariantsExtended,property:e.couponButtonVariant,fallback:"primary"});return e.coupon?a.jsx(_g,{coupon:e.coupon,mode:s,variant:c,feedbackTitle:e.couponFeedbackTitle,feedbackDescription:e.couponFeedbackDescription}):null}if(t==="copy"){const s=v.helpers.ValidateProp({fieldTypes:tt.Mode,property:e.couponButtonMode,fallback:"default"});return e.coupon?a.jsx(bg,{coupon:e.coupon,mode:s}):null}return a.jsx(vg,{title:o,description:n,mode:i,className:r})},fa=({handleCloseTipbar:e,mode:t})=>{const{CONSTANTS:r}=qe();return a.jsx(v.Button,{title:"fechar tipbar",className:Ct["tipbar__close-btn"],onClick:e,variant:"tertiary",mode:t,adornment:{start:a.jsx(v.Icon,{name:r.ICONS.close})}})},Cg=({children:e,mode:t="default",showCarouselArrows:r=!0,slideTranstionTimer:n})=>{const{carouselProps:o,CONSTANTS:i}=qe(),s=C.useRef(null),c=(l,f)=>{var p,d;l.stopPropagation(),l.preventDefault(),f==="prev"?(p=o.controller)==null||p.prevPage():(d=o.controller)==null||d.nextPage(),s.current&&(clearInterval(s.current),u())},u=C.useCallback(()=>{if(n&&o.controller){const l=setInterval(()=>{var f;(f=o.controller)==null||f.nextPage()},n);s.current=l}},[n,o]);return C.useEffect(()=>(u(),()=>{s.current&&clearInterval(s.current)}),[n,u]),a.jsxs(v.Carousel.Root,{innerRef:l=>{o.initialize(l)},className:Ct.tipbar__carousel,style:{flexDirection:"row",alignItems:"center"},children:[r&&a.jsx(v.Button,{variant:"tertiary",mode:t,onClick:l=>c(l,"prev"),adornment:{start:a.jsx(v.Icon,{name:i.ICONS.arrow_left})}}),a.jsx(v.Carousel.Body,{children:e}),r&&a.jsx(v.Button,{variant:"tertiary",mode:t,onClick:l=>c(l,"next"),adornment:{start:a.jsx(v.Icon,{name:i.ICONS.arrow_right})}})]})},Sg=({children:e,className:t})=>{const{hasCarousel:r,mode:n,hasCloseBtn:o,backgroundStyle:i,showCarouselArrows:s,slideTranstionTimer:c,handleCloseTipbar:u}=qe(),l=r&&s;return a.jsx("div",{style:i,"data-hasclosebtn":o,className:v.helpers.classNameConcat(Ct.tipbar,t),children:r?a.jsxs(a.Fragment,{children:[a.jsx(Cg,{mode:n,showCarouselArrows:l,slideTranstionTimer:c,children:e}),o&&a.jsx(fa,{handleCloseTipbar:u,showCarouselArrows:l,mode:n})]}):a.jsxs(a.Fragment,{children:[e,o&&a.jsx(fa,{handleCloseTipbar:u,mode:n})]})})},Ag=({children:e,highlightFirstSection:t,...r})=>{const{hasCarousel:n,carouselProps:o}=qe(),i=a.jsx("div",{...r,className:Ct["tipbar-item"],children:e});return n?a.jsx(v.Carousel.Item,{style:o.itemsStyles,children:i}):i},Al=({className:e})=>{const{isOpen:t,slices:r}=qe();return r.length&&t?a.jsx(Sg,{children:r.map((n,o)=>{var i;return a.jsx(a.Fragment,{children:a.jsx(yt,{href:n.link,children:a.jsx(Ag,{highlightFirstSection:n.highlightFirstSection,"data-justifyhighlightedsection":n.horizontalAlignHighlightedSection?n.horizontalAlignHighlightedSection:"center",children:n&&((i=n==null?void 0:n.items)!=null&&i.length)?n.items.map((s,c)=>a.jsx(xg,{staticZone:n,type:s.type,title:s.title,description:s.description,className:e},`tipbar-slice-field-${c}`)):null})})},`tipbar-slice-${o}`)})}):null};Al.displayName="TipBar.Root";const vo=({className:e,...t})=>a.jsx(mg,{...t,children:a.jsx(Al,{className:e})});vo.displayName="TipBar";const Eg=({CONSTANTS:e,data:t})=>{const{tipbarRef:r}=be(),n=t==null?void 0:t.find(i=>{var s,c;return((c=(s=i.staticConfig)==null?void 0:s.staticConfig)==null?void 0:c.deviceType)==="desktop"}),o=t==null?void 0:t.find(i=>{var s,c;return((c=(s=i.staticConfig)==null?void 0:s.staticConfig)==null?void 0:c.deviceType)==="mobile"});return a.jsxs("div",{ref:r,className:Te.responsive["responsive-flex"],children:[o?a.jsx("div",{className:Te.responsive["responsive-mobile-flex"],children:a.jsx(vo,{data:o,CONSTANTS:e})}):null,n?a.jsx("div",{className:Te.responsive["responsive-desktop-flex"],children:a.jsx(vo,{data:n,CONSTANTS:e})}):null]})},pa={"card-image-wrapper":"_card-image-wrapper_10mul_1","card-image-container":"_card-image-container_10mul_9"},Rg=e=>{const{nextimage:t}=Pe();return a.jsx(a.Fragment,{children:e.data.banners.map((r,n)=>a.jsx("div",{className:pa["card-image-wrapper"],children:a.jsx("div",{className:pa["card-image-container"],children:a.jsx(t,{src:r.image,alt:r.altImage?r.altImage:"Banner Coleção",width:500,height:600})})},n))})},jg={Banner:lg,BannerSection:Qo,BennefitsBarSection:dg,SingleBannerSection:Cl,TextContentSection:fg,BannerCarousel:ug,TextAccordionSection:pg,TipbarScreening:Eg,ImageGrid:Rg},wg={Components:jg,helpers:rg};exports.cms=wg;exports.contexts=rf;exports.data=Do;exports.layout=Xh;exports.scripts=Zh;
|