@soma-vertical-web/multi-lib 0.0.67 → 0.0.68

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (33) hide show
  1. package/cms/Sections/ProductCarousel/Composite/CommonShelf.d.ts +1 -1
  2. package/cms/Sections/ProductCarousel/Composite/RecommendationShelf.d.ts +1 -1
  3. package/cms/Sections/ProductCarousel/ProductCarousel.d.ts +2 -2
  4. package/cms/index.d.ts +2 -2
  5. package/index.js +19 -19
  6. package/index.mjs +6104 -5878
  7. package/layout/index.d.ts +28 -5
  8. package/layout/team-component/BuyPackage/BuyPackage.d.ts +1 -1
  9. package/layout/team-component/ProductCard/Composite/Root.d.ts +1 -1
  10. package/layout/team-component/ProductCard/ProductCard.d.ts +1 -1
  11. package/layout/team-component/ProductList/Composite/Card/Card.d.ts +1 -1
  12. package/layout/team-component/ProductList/ProductList.d.ts +1 -1
  13. package/layout/template/PDC/Composite/Empty/Empty.d.ts +1 -1
  14. package/layout/template/PDC/Composite/Products/Products.d.ts +1 -1
  15. package/layout/template/PDC/index.d.ts +2 -2
  16. package/layout/template/WishList/Composite/Feedback.d.ts +11 -0
  17. package/layout/template/WishList/Composite/Grid.d.ts +7 -0
  18. package/layout/template/WishList/Composite/Init.d.ts +11 -0
  19. package/layout/template/WishList/Composite/Toggle.d.ts +7 -0
  20. package/layout/template/WishList/WishList.d.ts +26 -0
  21. package/layout/template/WishList/helpers.d.ts +12 -0
  22. package/layout/template/WishList/index.d.ts +1 -0
  23. package/package.json +1 -1
  24. package/style.css +1 -1
  25. package/types/cms/Sections/ProductCarousel/index.d.ts +0 -3
  26. package/types/constants.d.ts +12 -0
  27. package/types/contexts/contexts/plp.d.ts +0 -1
  28. package/types/layout/team-components/BuyPackage/index.d.ts +0 -1
  29. package/types/layout/team-components/ProductCard/index.d.ts +3 -3
  30. package/types/layout/team-components/ProductList/index.d.ts +0 -1
  31. package/types/layout/templates/PLP/index.d.ts +5 -10
  32. package/types/layout/templates/Wishlist/index.d.ts +21 -0
  33. package/types/layout/utils/index.d.ts +1 -1
package/index.js CHANGED
@@ -1,45 +1,45 @@
1
- "use strict";var Ip=Object.defineProperty;var Tp=(e,t,r)=>t in e?Ip(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r;var Hr=(e,t,r)=>Tp(e,typeof t!="symbol"?t+"":t,r);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const n=require("react/jsx-runtime"),x=require("react"),U=require("./index-CwBIv223.js"),_t=require("idb-keyval"),mt=require("zustand"),To=require("js-cookie"),m=require("@soma-vertical-web/core-components"),dt=require("axios"),Op=require("jose"),Ct=require("@soma-vertical-web/foundations"),es=require("react-dom"),Ke=require("draft-js"),Us=require("@date-fns/tz"),ic=require("react-intersection-observer"),ts=x.createContext({}),kp=({data:e,children:t})=>n.jsx(ts.Provider,{value:{tags:e==null?void 0:e.config},children:t}),it=()=>{const{tags:e}=x.useContext(ts),t=x.useCallback(r=>{var i,c,l,u;const o=(c=(i=e==null?void 0:e.commercial)==null?void 0:i.items)==null?void 0:c.find(p=>{var h;return(h=r??[])==null?void 0:h.find(d=>d.id===p.key)}),s=(u=(l=e==null?void 0:e.institucional)==null?void 0:l.items)==null?void 0:u.find(p=>{var h;return(h=r??[])==null?void 0:h.find(d=>d.id===p.key)}),a=e==null?void 0:e.flagPdp;return{commercial:o,institucional:s,flagPdp:a}},[e]);return{tags:e,getAvailableProductTag:t}},cc=({gridScrollBack:e})=>{x.useEffect(()=>{typeof window<"u"&&(e!=null&&e.refer)&&sessionStorage.setItem(e==null?void 0:e.refer,"true")},[])},lc=x.createContext({}),Mp=({children:e,gridScrollBack:t})=>{const r=x.useRef(null);return cc({gridScrollBack:t}),n.jsx(lc.Provider,{value:{sizesContainerRef:r},children:e})},uc=()=>{const e=x.useContext(lc);if(e===void 0)throw new Error("useContext(PDPContext) must be used within a PDPProvider");return e},rt=({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})},Se={configs:{PLP_FILTERS:[{key:"",label:"",eventLabel:"",order:0}],currency:"BRL",categoryOff:"bazar",storeUrl:"https://www.example.com",MAIN_IMAGE:"1",NAME_SPLIT_SYMBOL:"-",VENDOR_CODE:""},productEvents:(e,t)=>{const{event:r,commonData:o,customData:s,promotionInfo:a,itemList:i,outsideEcommerceData:c}=e,{availableSizes:l,sizes:u,price:p}=o,h={...r==="view_item"?{currency:Se.configs.currency,value:p,grade_disponivel:l??(u?dc(u):"")}:{},...r==="add_to_wishlist"||r==="remove_from_wishlist"?{value:p,currency:Se.configs.currency}:{}},d=Zt({data:o,customData:{...s,...i,...a},configs:Se.configs});rt({event:r,data:{...c,ecommerce:{...i,...h,items:[d]}}}),typeof t=="function"&&t(d,h)},productListEvent:e=>{const{commonData:{products:t},promotionInfo:r,itemList:o,outsideEcommerceData:s,customData:a}=e;if(t.length===0)return;const i=t.map(({node:c},l)=>Zt({data:{...c},customData:{...r,index:l,...a!=null&&a.item_list_name?{item_list_name:a==null?void 0:a.item_list_name}:o},configs:Se.configs}));rt({event:"view_item_list",data:{...s,ecommerce:{...a!=null&&a.item_list_name?{item_list_name:a==null?void 0:a.item_list_name}:o,items:i}}})},skuEvents:e=>{const{event:t,commonData:{products:r},customData:o,supportData:{selectedSkus:s,price:a},promotionInfo:i,itemList:c,outsideEcommerceData:l}=e;let u=0;const p=r.map(h=>{var _,y,b,C,v,j,P,E,S;const d=s==null?void 0:s.find(R=>(h.productId??h.id)===R.productId);let f={...i,...c};if(d){const R=pc(),T=mc(R,d);T&&(f={...f,...T}),t==="add_to_cart"&&(i||c)&&Oo({persistedData:R,type:"add",sku:(d==null?void 0:d.id)??(d==null?void 0:d.sku),newData:{promotionInfo:i,itemList:c}}),t==="remove_from_cart"&&Oo({persistedData:R,type:"remove",sku:(d==null?void 0:d.id)??(d==null?void 0:d.sku)})}u+=h.price??((b=(y=(_=d==null?void 0:d.offers)==null?void 0:_.offers)==null?void 0:y[0])==null?void 0:b.price)??0;const g=(d==null?void 0:d.size)??U.getColorAndSizeFromSkuName((d==null?void 0:d.skuName)??(d==null?void 0:d.name)??((C=h.itemOffered)==null?void 0:C.skuName),Se.configs.NAME_SPLIT_SYMBOL).size;return Zt({data:h,customData:{...o,...f??{...i,...c},item_sku:(d==null?void 0:d.id)??(d==null?void 0:d.sku)??((v=h.itemOffered)==null?void 0:v.sku),quantity:(o==null?void 0:o.quantity)??h.quantity??1,item_variant2:g,seller_id:(d==null?void 0:d.sellerId)??(d==null?void 0:d.seller)??((S=(E=(P=(j=d==null?void 0:d.offers)==null?void 0:j.offers)==null?void 0:P[0])==null?void 0:E.seller)==null?void 0:S.identifier)??h.seller},configs:Se.configs})});rt({event:t,data:{...l,ecommerce:{value:a??u,currency:Se.configs.currency,items:p}}})},filterEvent:e=>{var i;const{commonData:t,customData:r,outsideEcommerceData:o}=e,s={},a={};Array.isArray(t==null?void 0:t.selectedFacets)&&((i=t==null?void 0:t.selectedFacets)!=null&&i.length)&&((t==null?void 0:t.selectedFacets).forEach(({key:c,value:l})=>{var h;const u=((h=Se.configs.PLP_FILTERS.find(d=>d.key===c))==null?void 0:h.eventLabel)??c,p=(s==null?void 0:s[u])||[];u==="price_range"&&l.replace(":","-"),s[u]=[...p,l]}),Object.keys(s).forEach(c=>a[c]=s[c].join(", "))),rt({event:"filter",data:{...o,...a,...r}})},viewCartEvent:e=>{var p,h,d,f,g,_,y,b,C,v;const{commonData:t,outsideEcommerceData:r}=e,{cartStore:o}=t;if(!o)return;const s=window.localStorage.getItem("persistedCartEventsData"),a=s?JSON.parse(s):{},i=o.items.map(j=>{const{promotionInfo:P,itemList:E}=a[j.id]??{};return Zt({data:{...j,price:j.price/100,listPrice:j.listPrice/100},customData:{...P,...E,item_sku:j.id??j.itemOffered.sku,quantity:j.quantity??1},configs:Se.configs})}),c=(((p=o.totalizers.find(j=>j.name==="Total dos Itens"))==null?void 0:p.value)??0)/100,l=(((h=o.totalizers.find(j=>j.name==="Total dos Descontos"))==null?void 0:h.value)??0)/100,u=((d=o.marketingData)==null?void 0:d.utmiCampaign)===Se.configs.VENDOR_CODE?(f=o.marketingData)==null?void 0:f.utmCampaign:(_=String((g=o.openTextField)==null?void 0:g.value))==null?void 0:_.split(" - ")[0];rt({event:"view_cart",data:{...r,ecommerce:{currency:Se.configs.currency,value:c+l,total_discount:Math.abs(l),cep_preenchido:!!((b=(y=o.shippingData)==null?void 0:y.address)!=null&&b.postalCode),...u?{seller_coupon_name:u}:{},...((C=o.marketingData)==null?void 0:C.coupon)&&{sale_coupon_name:(v=o.marketingData)==null?void 0:v.coupon},subtotal:c,items:i}}})},readyEvents:e=>{const{event:t,readyData:r}=e;rt({event:t,data:{...r}})}},dc=e=>e.reduce((t,r)=>(r.available&&t.push(r.value),t),[]).toString(),Lp=e=>{const t=e.length;return{...e&&e.length>0?{item_category:e[0].includes(Se.configs.categoryOff)?"Bazar":"Coleção",...e[1]?{item_category2:e[1]}:{},...t>2?{item_category3:e[t-1]}:{}}:{}}},Zt=({data:e,customData:t,configs:r})=>({...Dp(e,r==null?void 0:r.MAIN_IMAGE),...$p(e),...zp(e),...Bp(e),...t}),fc=()=>{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("_"))??[]:[]},pc=()=>{const e=window.localStorage.getItem("persistedCartEventsData");return e?JSON.parse(e):null},mc=(e,t)=>e==null?void 0:e[t],Oo=({persistedData:e,type:t,sku:r,newData:o})=>{if(!e&&t==="add"){window.localStorage.setItem("persistedCartEventsData",JSON.stringify({[r]:o}));return}if(e&&t==="add"){window.localStorage.setItem("persistedCartEventsData",JSON.stringify({...e,[r]:o}));return}e&&t==="remove"&&(delete e[r],window.localStorage.setItem("persistedCartEventsData",JSON.stringify(e)))},Dp=(e,t="1")=>{var a,i,c,l,u,p,h,d,f,g,_;const r=e.productReference??e.gtin??e.productRefId,o=e.image??((i=(a=e.items)==null?void 0:a[0])==null?void 0:i.images)??((c=e.itemOffered)==null?void 0:c.image),s=o==null?void 0:o.find(y=>y.alternateName===t||y.imageLabel===t||y.keywords===t);return{item_id:e.productId??((l=e.isVariantOf)==null?void 0:l.productGroupID)??((u=e.isVariationOf)==null?void 0:u.productGroupID)??((h=(p=e.itemOffered)==null?void 0:p.isVariationOf)==null?void 0:h.productGroupID),item_ref:/_\d$/.test(r)?r.slice(0,-2):r,item_name:e.productTitle??e.productName??e.name??U.splitNameAndSizeFromFullName((d=e.itemOffered)==null?void 0:d.name,Se.configs.NAME_SPLIT_SYMBOL).name,item_brand:((f=e.brand)==null?void 0:f.brandName)??((g=e.brand)==null?void 0:g.name)??e.brand??((_=e.itemOffered)==null?void 0:_.brand.name),item_url:`${Se.configs.storeUrl}${e.linkText}/p`,item_image:(s==null?void 0:s.url)??(s==null?void 0:s.imageUrl)}},Ws=e=>Array.isArray(e)?e.reduce((t,r)=>(r.length>t.length&&(t=r),t),""):e,$p=e=>{var u,p;const{categories:t,categoriesIds:r}=e,o=t??((u=e.itemOffered)==null?void 0:u.categories),s=r??((p=e.itemOffered)==null?void 0:p.categoriesIds),a=Ws(o),i=Ws(s),c=a.slice(1,-1).split("/"),l=i.slice(1,-1).split("/");return{item_category:c[0].toLowerCase().includes(Se.configs.categoryOff)?"Bazar":"Coleção",...c[1]&&{item_category2:c[1]},...c.length>2&&{item_category3:c[c.length-1]},item_category_id:l[l.length-1],...l.length>1&&{item_parent_category_id:l[l.length-2]}}},zp=e=>{var s,a,i,c,l,u;const t=((s=e.itemOffered)==null?void 0:s.skuName)??((c=(i=(a=e.isVariantOf)==null?void 0:a.hasVariant)==null?void 0:i[0])==null?void 0:c.name)??((u=(l=e.items)==null?void 0:l[0])==null?void 0:u.name),{color:r,size:o}=U.getColorAndSizeFromSkuName(t,Se.configs.NAME_SPLIT_SYMBOL);return{item_variant:r,...e.itemOffered&&{item_variant2:o}}},Bp=e=>{var l,u;const{price:t,listPrice:r,installments:o}=e,s=t??((l=e.offers)==null?void 0:l.lowPrice)??0,a=r??((u=e.offers)==null?void 0:u.highPrice)??0,i=a?a-s:0,c=i%1===0?i:Number(i.toFixed(2));return{...t&&{price:s??a},...a&&{list_price:a,discount:c},...o&&{installments:o==null?void 0:o.count,installment_value:o==null?void 0:o.value},item_currency:Se.configs.currency}},hc=()=>{const[e,t]=fc(),[r,o]=e.split("-"),s=r.includes("shop")||r.includes("sale")?r:"";return{page_category:s&&o?o:"",page_departament:s,id:t,name:e}},Fp=Object.freeze(Object.defineProperty({__proto__:null,eventsFunctions:Se,findDataInPersistedData:mc,getAvailablesSizes:dc,getCategories:Lp,getPageCategoryAndDepartmentFromSlug:hc,getPersistedData:pc,getProductListInfoFromHead:fc,pushDatalayer:rt,updatePersistedData:Oo},Symbol.toStringTag,{value:"Module"})),gc=x.createContext({}),qp=({children:e,evtFunctionsConfigs:t})=>{const r=x.useRef({}),o=x.useRef(null),s=x.useRef(null),a=x.useRef({}),i=x.useRef({trigger:!1,index:0}),c=({functionKey:p,data:h,callBack:d,timeout:f=100})=>{window.dataLayer||(window.dataLayer=[]),Se.configs=t;try{typeof Se[p]=="function"&&setTimeout(()=>{var g;h.promotionInfo=r.current,(g=s.current)!=null&&g.item_list_name&&(h.itemList=s.current),Se[p](h,d)},f)}catch(g){rt({event:"error_event",data:{error_message:(g==null?void 0:g.message)??g}})}},l=({content:p})=>{c({functionKey:"readyEvents",data:{event:"select_content",readyData:{content_type:p.replace("::",":")}}})},u=({updatePromotionRef:p,promotion:h,index:d})=>{p&&(r.current={...h}),c({functionKey:"readyEvents",data:{event:"select_promotion",readyData:{ecommerce:{...h,...d!==void 0&&{index:d}}}}})};return n.jsx(gc.Provider,{value:{sendDataLayerEvent:c,triggerSelectItemEventRef:i,promotionEventRef:r,currentLocalRef:o,itemListRef:s,cartProductsFullDataRef:a,handleSelectContent:l,handleSelectPromotionEvent:u},children:e})},le=()=>x.useContext(gc),yc=x.createContext({}),Hp=({children:e,productData:t,isKit:r,PDP_INFO:o,NAME_SPLIT_SYMBOL:s,TEXTURE_IMAGE:a})=>{var O,W;const{sendDataLayerEvent:i,triggerSelectItemEventRef:c}=le(),{productId:l,productName:u,items:p,items:[{images:h,Videos:d}],description:f,["Composição"]:g="",productReference:_,categories:[y]}=t,{getAvailableProductTag:b}=it(),C=b(Object.entries(t.clusterHighlights).map(q=>({id:q[0],name:q[1]}))),v=y.slice(1,-1).split("/"),{installments:j,price:P,listPrice:E,sizes:S,allSizesAvailable:R}=U.getSkuInfos({items:p,NAME_SPLIT_SYMBOL:s}),T=U.getThumbImage({images:h,TEXTURE_IMAGE:a}),w=[{label:`${o.product.description}`,value:"description",content:f},{label:`${o.product.materiais}`,value:"composition",content:g}],N=((W=U.getColorAndSizeFromSkuName((O=t.items)==null?void 0:O[0].name,s))==null?void 0:W.color)??t["Cores Filtráveis"][0]??"",I=()=>({commonData:{...t,sizes:S,price:P,listPrice:E,installments:j},customData:{installments:j==null?void 0:j.count,installment_value:Number(j==null?void 0:j.value).toFixed(2)}}),z=({sku:q,size:F})=>{const{commonData:V,customData:G}=I();i({functionKey:"productEvents",data:{event:"view_item",commonData:V,customData:{...G,...q&&{item_sku:q},...F&&{item_variant2:F}}}})};return x.useEffect(()=>{if(c.current.trigger){const{commonData:q,customData:F}=I();i({functionKey:"productEvents",data:{event:"select_item",commonData:q,customData:{...F,index:c.current.index}}}),c.current.trigger=!1}z({})},[]),n.jsx(yc.Provider,{value:{productData:t,productId:l,productName:u,productReference:_,tag:C,items:p,sizes:S,allSizesAvailable:R,installments:j,price:P,listPrice:E,thumbImage:T,images:h,video:d[0],descriptionContent:w,breadcrumbList:v,isKit:r,colorName:N,handleViewItemEvent:z},children:e})},De=()=>{const e=x.useContext(yc);if(e===void 0)throw new Error("useContext(PDPDataContext) must be used within a PDPDataProvider");return e},Up=()=>{const[e,t]=x.useState(null);return[e,async o=>{if(!(navigator!=null&&navigator.clipboard))return console.warn("Clipboard not supported"),!1;try{return await navigator.clipboard.writeText(o),t(o),!0}catch(s){return console.warn("Copy failed",s),t(null),!1}}]},_c=()=>{x.useEffect(()=>{const e=t=>{t.preventDefault()};return document.addEventListener("gesturestart",e),document.addEventListener("gesturechange",e),document.addEventListener("dblclick",e),document.addEventListener("wheel",t=>{t.ctrlKey&&e(t)}),()=>{document.removeEventListener("gesturestart",e),document.removeEventListener("gesturechange",e),document.removeEventListener("dblclick",e),document.removeEventListener("wheel",e)}},[])},Wp=typeof window>"u",Vp=(e,t)=>{const[r,o]=x.useState(()=>{if(Wp)return null;const a=localStorage.getItem(e);return a===null?t:JSON.parse(a||"{}")});return x.useEffect(()=>{const a=i=>{i.storageArea===localStorage&&i.key===e&&o(JSON.parse(i.newValue))};return window.addEventListener("storage",a),()=>{window.removeEventListener("storage",a)}},[e,t]),[r,a=>{o(i=>{const c=typeof a=="function"?a(i):a;return localStorage.setItem(e,JSON.stringify(c)),c})}]};function rs(e,t,r){const[o,s]=x.useState(!1),{threshold:a}=r||{};return x.useEffect(()=>{if(!e.current)return()=>null;let i=null;const c=new IntersectionObserver(([l])=>{if(r!=null&&r.delay){i&&clearTimeout(i),i=setTimeout(()=>{s(l.isIntersecting),t&&l.isIntersecting&&c.unobserve(e.current)},r.delay);return}s(l.isIntersecting),t&&l.isIntersecting&&c.unobserve(e.current)},{threshold:a||1});return c.observe(e.current),()=>{c.disconnect()}},[e]),o}const Pr=({callback:e,onEnterViewportOnce:t,options:r})=>{const o=x.useRef(null);return x.useEffect(()=>{const s=o.current;if(!s)return;const a=new IntersectionObserver(([i])=>{i.isIntersecting&&typeof e=="function"&&(e(),t&&(a.unobserve(s),a.disconnect()))},r);return a.observe(s),()=>{t&&a.unobserve(s),a.disconnect()}},[e,t,r]),{element:o}},vc=({defaultScale:e=1,maxScale:t=3})=>{const r=x.useRef(null),o=x.useRef(null),[s,a]=x.useState(e),i=x.useRef(0),c=x.useRef({x:0,y:0}),l=x.useRef({x:0,y:0}),u=()=>{if(!o.current||!r.current)return{minX:0,maxX:0,minY:0,maxY:0};const f=r.current.getBoundingClientRect(),g=o.current.children[0].getBoundingClientRect(),_=g.width,y=g.height,b=Math.min(0,(f.width-_)/2),C=Math.max(0,(_-f.width)/2),v=Math.min(0,(f.height-y)/2),j=Math.max(0,(y-f.height)/2);return{minX:b,maxX:C,minY:v,maxY:j}},p=(f,g,_)=>{if(o.current){const y=o.current.children[0];y&&requestAnimationFrame(()=>{y.style.transform=`translate(calc(-50% + ${f}px), calc(-50% + ${g}px)) scale(${_})`})}},h=x.useCallback(f=>{const{minX:g,maxX:_,minY:y,maxY:b}=u(),{x:C,y:v}=l.current,j=Math.max(g,Math.min(_,C)),P=Math.max(y,Math.min(b,v));if(f.touches.length>1){const E=f.touches[0],S=f.touches[1],R=E.pageX-S.pageX,T=E.pageY-S.pageY;i.current=Math.sqrt(R*R+T*T),c.current={x:(E.pageX+S.pageX)/2,y:(E.pageY+S.pageY)/2}}else f.touches.length===1&&(c.current={x:f.touches[0].pageX-j,y:f.touches[0].pageY-P})},[s,l]),d=x.useCallback(f=>{if(!o.current||!r.current)return;const{minX:g,maxX:_,minY:y,maxY:b}=u();if(f.touches.length>1){f.preventDefault();const C=f.touches[0],v=f.touches[1],j=C.pageX-v.pageX,P=C.pageY-v.pageY,E=Math.sqrt(j*j+P*P);if(!i.current){i.current=E;return}const S=E/i.current,R=Math.max(1,Math.min(t,s*S));if(s===R)return;a(R);const T=(C.pageX+v.pageX)/2,w=(C.pageY+v.pageY)/2;let N=T-c.current.x,I=w-c.current.y;N=Math.max(g,Math.min(_,N)),I=Math.max(y,Math.min(b,I)),l.current={x:N,y:I},i.current=E,p(N,I,R)}else if(f.touches.length===1){const C=f.touches[0].pageX,v=f.touches[0].pageY;let j=C-c.current.x,P=v-c.current.y;j=Math.max(g,Math.min(_,j)),P=Math.max(y,Math.min(b,P)),l.current={x:j,y:P},p(j,P,s)}},[t,s]);return x.useEffect(()=>(document.addEventListener("touchstart",h),document.addEventListener("touchmove",d,{passive:!1}),()=>{document.removeEventListener("touchstart",h),document.removeEventListener("touchmove",d)}),[d,h]),{containerRef:r,imgRef:o,scale:s}},Gp={attachment:"ATTACHMENT",specification:"SPECIFICATION",attribute:"ATTRIBUTE"},qe=Promise.resolve(!1),ko={id:"",isOpen:!1,items:[],loading:!1,marketingData:null,messages:[],openTextField:{},paymentData:null,shippingData:null,totalizers:[],itemMetadata:[],recentlyAddedProducts:[],addCoupon:()=>qe,addItem:()=>qe,addSellerCode:()=>qe,addMarketingData:()=>qe,emptyCart:()=>{},removeItem:()=>qe,setIsOpen:()=>{},shipping:()=>qe,shippingUpdate:()=>qe,toggleServiceToProduct:()=>qe,updateItemQuantity:()=>qe,insertProfileEmail:()=>qe,setRecentlyAddedProducts:()=>{}},ns=e=>e===0,xc=(e,t)=>{if(!e||e.length===0)return[];let r="";const o=[],s=e.match(/\d+/g)??[];for(const a of s){const i=t[Number(a)];i&&(r+=(r?"/":"")+i,o.push(r))}return o},bc=(e,t)=>{const{availability:r,additionalInfo:{brandName:o},bundleItems:s,id:a,uniqueId:i,detailUrl:c,ean:l,imageUrl:u,name:p,listPrice:h,quantity:d,price:f,priceDefinition:g,productCategories:_,productCategoryIds:y,productId:b,refId:C,seller:v,referenceId:j,offerings:P,productRefId:E,skuName:S,sellingPrice:R}=e;return{availability:r,bundleItems:s,referenceId:j,productRefId:E,id:a,ean:l,uniqueId:i,itemOffered:{additionalProperty:[],brand:{name:o},categories:xc(y,_),categoriesIds:y,gtin:C,image:[{alternateName:(t==null?void 0:t.MAIN_IMAGE)??"1",url:u}],name:p,isVariationOf:{name:p,productGroupID:b},sku:a,slug:c,skuName:S},listPrice:h,quantity:d,offerings:P,price:f,priceDefinition:g,sellingPrice:R,seller:v}},jc=(e,t)=>{const r=e.map(o=>({id:o.id,quantity:o.quantity,seller:o.seller}));return Array.isArray(t)?[...r,...t]:[...r,t]},Cc=(e,t)=>{const r=e.find(o=>o.id===t);if(r){const o=e.map((s,a)=>{var i,c;return{id:((i=s.itemOffered)==null?void 0:i.sku)??"",index:a,quantity:(r==null?void 0:r.id)===((c=s.itemOffered)==null?void 0:c.sku)?0:s.quantity,seller:s.seller??""}});return{updateItems:o,filterItems:o.filter(s=>s.id!==t)}}return{updateItems:[],filterItems:[]}},Sc=(e,t,r)=>e.filter(o=>o.availability!=="withoutStock"&&o.availability!=="https://schema.org/OutOfStock").map((o,s)=>{var a,i;return o.id===t?{id:o.id,index:s,quantity:r,seller:o.seller,sku:((a=o.itemOffered)==null?void 0:a.sku)??""}:{id:o.id,index:s,quantity:o.quantity,seller:o.seller,sku:((i=o.itemOffered)==null?void 0:i.sku)??""}}),Mo=(e,t)=>e.filter(r=>r.availability!=="withoutStock").findIndex(({id:r})=>r===t),Kp=(e,t)=>{var r;return Array.isArray(e)?(((r=e==null?void 0:e.find(o=>{var s;return((s=o==null?void 0:o.id)==null?void 0:s.toLowerCase())===t}))==null?void 0:r.value)??0)/100:0},Xp=e=>{const t=e.reduce((s,a)=>{const i=ns(a.price)?0:a.quantity;return s+i},0),r=e.reduce((s,a)=>s+a.price*a.quantity,0),o=e.reduce((s,a)=>s+a.listPrice*a.quantity,0);return{totalItems:t,total:r,subTotal:o}},Yp=e=>Array.isArray(e)?e.filter(t=>t.availability!=="withoutStock").reduce((t,r)=>t+(ns(r==null?void 0:r.price)?0:r.quantity),0):0,Pc=(e,t)=>{const{items:r,itemMetadata:o,marketingData:s,messages:a,orderFormId:i,openTextField:c,paymentData:l,shippingData:u,totalizers:p}=e;return{id:i,itemMetadata:o,items:Array.isArray(r)?r.map(h=>bc(h,t)):[],marketingData:s,messages:a,openTextField:c,paymentData:l,shippingData:u,totalizers:p}},wc=(e,t)=>{const r=e.find(o=>o.id===t);return r?r.availability==="unavailableItemFulfillment":!1},Qp=(e,t)=>{const r=e.sku,o=e.isVariantOf.hasVariant.find(s=>s.sku===r);return o?o.name.split(t)[1]:"--"},xt=(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},Zp=(e,t)=>{const r=new Set;return[e,...t].filter(o=>!r.has(o)&&r.add(o),r)},Ec=(e,t)=>t&&Array.isArray(t)&&t.find(o=>o.id===e)?Promise.resolve(e):Promise.resolve(!1),Rc=(e,t)=>t?Promise.resolve(e[t]):Promise.resolve(!1),Ac=async e=>{try{const t=await e();if(typeof t!="boolean")return t}catch(t){console.error(`[Error orderForm]: ${t}`)}return!1},Nc=(e,t)=>{if(t!==-1){const r=Number(e);return r?r+1:1}return e??1},Ic=(e,t)=>Array.isArray(e)?e.filter(r=>t==null?void 0:t.some(o=>o.id===r.id)):[],Tc=async(e,t)=>e.then(r=>[...r??[],...t??[]]),Oe=async(e,t,r,o)=>{const{priority:s="auto",body:a}=t;return fetch(e,{headers:{"Content-Type":"application/json"},priority:s,method:"POST",body:JSON.stringify(a)}).then(async i=>{const c=await i.json();return r?c:Pc(c,o)})},Oc=(e,t,r)=>({notifications:[...e.notifications,{id:Date.now(),message:t,callback:r}]}),kc=e=>[...Array.isArray(e)?e:[e],"faststore"],Mc=e=>{const t=e.get("utm_source")||lt("utm_source"),r=e.get("utm_campaign")||lt("utm_campaign"),o=e.get("utm_medium")||lt("utm_medium"),s=e.get("utmi_cp")||lt("utmi_cp"),a=e.get("utmi_pc")||lt("utmi_pc"),i=e.get("utmi_p")||lt("utmi_p");return{...t&&{utmSource:t},...o&&{utmMedium:o},...r&&{utmCampaign:r},...s&&{utmiCampaign:s},...a&&{utmiPart:a},...i&&{utmipage:i}}},lt=e=>{if(!e||typeof window>"u")return;const t=window.location.href;e=e.replace(/[[\]]/g,"\\$&");const r=new RegExp("[?&]"+e+"(=([^&#]*)|&|#|$)"),o=r.exec(t);return o?o[2]?decodeURIComponent(o[2].replace(/\+/g," ")):"":null},Jp=Object.freeze(Object.defineProperty({__proto__:null,VALUE_REFERENCES:Gp,addItemOrder:jc,addNotification:Oc,createItemOrder:bc,fetchCartAPI:Oe,findItemIndex:Mo,findOptions:Ic,findTotalizerValue:Kp,getCategories:xc,getCode:xt,getQuantity:Nc,getRemoveId:Ec,getSize:Qp,getTotalItems:Yp,getTotalizer:Xp,getUrlParameter:lt,getValue:Rc,initialState:ko,isGift:ns,marketingTagsBuilder:kc,mergeOptionsPromise:Tc,mountMarketingData:Mc,orderFormValues:Pc,promiseDefault:qe,removeQuantity:Cc,updateItemSellerExternal:wc,updateOrderFormPromise:Ac,updateQuantity:Sc,wishlistArray:Zp},Symbol.toStringTag,{value:"Module"})),em=()=>{const e=async(f,g)=>Oe("/api/checkout/order-form/coupon",{body:{orderFormId:f,coupon:g}}),t=async(f,g)=>{if(g){const _=g.includes(" - ")?g.split(" - ")[0]:g,y=await Oe("/api/checkout/order-form/seller-code",{body:{orderFormId:f,sellerCode:_}},!0);return y instanceof Object&&"nome"in y&&(y==null?void 0:y.status)===!0?Oe("/api/checkout/order-form/attachments",{body:{orderFormId:f,sellerCode:_,sellerName:y.nome}}).then(C=>({...C,openTextField:{...(C==null?void 0:C.openTextField)??{},statusOk:!0}})):Promise.resolve({paymentData:null,openTextField:{statusOk:!1,value:_}})}else return Oe("/api/checkout/order-form/attachments",{body:{orderFormId:f,sellerCode:"",sellerName:""}})},r=async(f,g)=>Oe("/api/checkout/order-form/attachments/marketing-data",{body:{orderFormId:f,marketingData:g}}),o=async(f,g,_)=>Oe("/api/checkout/order-form/items",{body:{orderFormId:f,orderItems:jc(g,_)}}),s=async(f,g,_,y=!1)=>Oe("/api/checkout/order-form/offerings",{body:{id:g,itemIndex:_,orderFormId:f,remove:y}}),a=async f=>Oe("/api/checkout/order-form/items/remove-all",{body:{orderFormId:f}}),i=async(f,g="low")=>Oe("/api/checkout/order-form",{priority:g,body:{orderFormId:f??""}}),c=async(f,g)=>Oe("/api/checkout/order-form/profile",{body:{orderFormId:f,email:g}}),l=async(f,g,_)=>{const y=Cc(g,_);return Oe("/api/checkout/order-form/items/update",{body:{orderItems:y.updateItems,orderFormId:f}})},u=async(f,g,_)=>Oe("/api/checkout/order-form/shipping",{body:{orderFormId:f,country:_,postalCode:g}}),p=async(f,g,_)=>Oe("/api/checkout/order-form/shipping/update",{body:{orderFormId:f,options:g,selectedAddresses:_}}),h=async(f,g,_,y)=>{const b=Sc(g,_,y);return Oe("/api/checkout/order-form/items/update",{body:{orderFormId:f,orderItems:b}})};return{addCoupon:e,addItem:o,addSellerCode:t,addMarketingData:r,giftItem:s,emptyCart:a,getOrderForm:i,insertProfileEmail:c,removeItem:l,shipping:u,shippingUpdate:p,updateItemQuantity:async(f,g,_,y,b)=>h(f,g,_,y).then(C=>C&&Array.isArray(C.items)?wc(C.items,_)?h(f,g,_,b):C:!1)}},Lo="soma::cart",It="soma::options",St=mt.create((e,t)=>{const r=em(),o=async(s,a,i)=>{e({loading:!0});const c=await Ac(s);if(typeof c!="boolean"){e({...c});const l=await Tc(_t.get(It),i);return _t.set(It,l),Rc(c,a).finally(()=>e({loading:!1,options:l}))}return qe};if(typeof window<"u"){const s=async a=>{if(a){const i=await _t.get(It).then(u=>Ic(u,a.items));_t.set(Lo,a),_t.set(It,i),e({...a,options:i});const c=new URLSearchParams(window.location.search),l=c.get("utm_campaign")||c.get("utmi_campaign")||"";l&&o(()=>r.addSellerCode(t().id,l.toUpperCase()),"openTextField")}};return _t.get(Lo).then(a=>r.getOrderForm(a?a.id:"").then(s)),{...ko,addCoupon:async a=>o(()=>r.addCoupon(t().id,a),"marketingData"),addItem:(a,i)=>{o(()=>r.addItem(t().id,t().items,a),"items",i)},addSellerCode:async a=>o(()=>r.addSellerCode(t().id,a),"openTextField"),addMarketingData:async a=>o(()=>r.addMarketingData(t().id,a),"marketingData"),emptyCart:()=>{o(()=>r.emptyCart(t().id))},removeItem:async a=>{const i=await o(()=>r.removeItem(t().id,t().items,a),"items");return Ec(a,i)},shipping:async(a,i="BR")=>o(()=>r.shipping(t().id,a??"",i),"shippingData"),shippingUpdate:async a=>o(()=>{var i;return r.shippingUpdate(t().id,a,(i=t().shippingData)==null?void 0:i.selectedAddresses)},"shippingData"),toggleServiceToProduct:async(a,i,c)=>o(()=>r.giftItem(t().id,a,i,c),"items"),updateItemQuantity:async(a,i,c)=>{const{id:l,items:u}=t();return o(()=>{var p;return r.updateItemQuantity(l,u,a,i,((p=u.find(h=>h.id===a))==null?void 0:p.quantity)??1)},"items",c?[c]:void 0)},insertProfileEmail:async a=>o(()=>r.insertProfileEmail(t().id,a),"clientProfileData"),setIsOpen:a=>e({isOpen:a})}}return ko}),tm=()=>St(e=>e),Lc=mt.create(e=>({notifications:[],actions:{addNotification:(t,r)=>e(o=>Oc(o,t,r)),removeNotification:t=>e(r=>({notifications:r.notifications.filter(o=>o.id!==t)}))}})),os=()=>Lc(e=>e.notifications),ss=()=>Lc(e=>e.actions),rm=Object.freeze(Object.defineProperty({__proto__:null,KEY_INDEXED_OPTIONS:It,KEY_INDEXED_STORE:Lo,useCartStore:St,useGetCartStoreState:tm,useGetNotificationActions:ss,useGetNotificationsStore:os},Symbol.toStringTag,{value:"Module"})),nm=6e3,Dc=x.createContext({}),$c=({children:e,...t})=>{const{items:r}=St(),[o,s]=x.useState([]),a=x.useRef(null),i=x.useMemo(()=>Array.isArray(o)&&o.length>0?o.map(c=>r.find(l=>l.id===c.id)).filter(c=>c!==void 0):[],[r,o]);return x.useEffect(()=>{o.length&&(clearTimeout(a.current??0),a.current=setTimeout(()=>{s([])},nm))},[o]),n.jsx(Dc.Provider,{value:x.useMemo(()=>({...t,setRecentlyAdded:s,recentlyAddedProducts:i}),[t,s,i]),children:e})},Dt=()=>{const e=x.useContext(Dc);if(e===void 0)throw new Error("useUIContext must be used within a UIProvider");return e};class zc{constructor(){Hr(this,"events",{});Hr(this,"prevData",{})}subscribe(t,r){return this.events[t]||(this.events[t]=[]),this.events[t].push(r),()=>{this.events[t]=this.events[t].filter(o=>o!==r)}}publish(t,r){this.events[t]&&this.events[t].forEach(o=>{this.prevData[t]=r,o(r)})}}const Bc=x.createContext({}),om=({children:e,headerConfigs:t,pathname:r,...o})=>{const[s,a]=x.useState(!0),[i,c]=x.useState(!1),l=r==="/",u=x.useRef(new zc),p=f=>f?{headerVariant:t.home_default_variant,bannerVariant:t.home_default_variant,position:t.home_default_position}:{headerVariant:t.default_variant,bannerVariant:t.default_variant,position:t.default_position},h=p(l),d=x.useRef(h);return x.useEffect(()=>{var _;const f=((_=new URLSearchParams(window.location.search))==null?void 0:_.toString())??"";(f.includes("utm_")||f.includes("gclid"))&&(To.get("lastMedias")||To.set("lastMedias",`${f}`,{expires:1/24}));const g=()=>{const y=typeof(window==null?void 0:window.navigator)>"u"?"":navigator==null?void 0:navigator.userAgent,b=window.innerWidth<1024||!!y.match(/Android|BlackBerry|iPhone|iPad|iPod|Opera Mini|IEMobile|WPDesktop/i);i||c(!0),s!==b&&(a(b),c(!0))};return i||g(),window.addEventListener("resize",g,{passive:!0}),()=>window.removeEventListener("resize",g)},[s,i]),x.useEffect(()=>{const f=p(l);u.current.publish("header:change_variant",f.headerVariant),u.current.publish("header:change_position",f.position),d.current=f},[l]),n.jsx(Bc.Provider,{value:{isMobile:s,mediatorRef:u,currentHeaderConfigsRef:d,deviceValidated:i,...o},children:n.jsx($c,{children:e})})},ce=()=>x.useContext(Bc),Fc=x.createContext({}),sm=({children:e,...t})=>n.jsx(Fc.Provider,{value:{...t},children:e}),xe=()=>x.useContext(Fc),ht=(e,t)=>mt.create(r=>{const o=()=>r({value:e});return t&&t instanceof Set&&t.add(o),{value:e,actions:{setValue:s=>r({value:s}),reset:o}}}),Mt={category:null,menuMobileIsOpen:!1,searchModalIsOpen:!1,userMenuIsOpen:!1},$t=new Set,am=()=>{$t.forEach(e=>{e()})},qc=mt.create((e,t)=>{const r=()=>e({value:Mt.category});return $t.add(r),{value:Mt.category,actions:{reset:r,setValue:o=>e(()=>({value:o})),updateValue:o=>{t().value!==o&&e({value:o})}}}}),wr=()=>qc(e=>e.value),ct=()=>qc(e=>e.actions),Hc=ht(Mt.menuMobileIsOpen,$t),as=()=>Hc(e=>e.value),gt=()=>Hc(e=>e.actions),Uc=ht(Mt.searchModalIsOpen,$t),im=()=>Uc(e=>e.value),is=()=>Uc(e=>e.actions),Wc=ht(Mt.userMenuIsOpen,$t),Vc=()=>Wc(e=>e.value),zt=()=>Wc(e=>e.actions),cm=Object.freeze(Object.defineProperty({__proto__:null,resetAllHeaderStores:am,useActionsHeaderCategory:ct,useActionsMenuMobileIsOpen:gt,useActionsSearchModalIsOpen:is,useActionsUserMenuIsOpen:zt,useGetHeaderCategoryStore:wr,useGetMenuMobileIsOpen:as,useGetSearchModalIsOpen:im,useGetUserMenuIsOpen:Vc},Symbol.toStringTag,{value:"Module"})),Pt={selectedSkuInfo:{productId:"",name:"",size:"",sku:"",sellerId:"",sellerName:"",available:!1,quantity:1},openLetMeKnow:!1,openMeasurements:!1,showBottomNavigation:!1,showNotify:!1},wt=new Set,lm=()=>{wt.forEach(e=>{e()})},Gc=mt.create(e=>{const t=()=>e({value:Pt.selectedSkuInfo});return wt.add(t),{value:Pt.selectedSkuInfo,actions:{setValue:r=>e(o=>({value:{...o,...r}})),reset:t}}}),Bt=()=>Gc(e=>e.value),Kc=()=>Gc(e=>e.actions),Xc=ht(Pt.openLetMeKnow,wt),um=()=>Xc(e=>e.value),dm=()=>Xc(e=>e.actions),Yc=ht(Pt.showNotify,wt),Qc=()=>Yc(e=>e.value),cs=()=>Yc(e=>e.actions),Zc=ht(Pt.showBottomNavigation,wt),fm=()=>Zc(e=>e.value),pm=()=>Zc(e=>e.actions),Jc=ht(Pt.openMeasurements,wt),el=()=>Jc(e=>e.value),tl=()=>Jc(e=>e.actions),mm=Object.freeze(Object.defineProperty({__proto__:null,resetAllPDPStores:lm,useActionsPDPOpenLetMeKnow:dm,useActionsPDPOpenMeasurements:tl,useActionsPDPSelectedSkuInfo:Kc,useActionsPDPShowBottomNavigation:pm,useActionsPDPShowNotify:cs,useGetPDPOpenLetMeKnow:um,useGetPDPOpenMeasurements:el,useGetPDPSelectedSkuInfo:Bt,useGetPDPShowBottomNavigation:fm,useGetPDPShowNotify:Qc},Symbol.toStringTag,{value:"Module"})),Vs={feedback:{active:!1,action:"add"},list:[]},ls=mt.create((e,t)=>({value:Vs,actions:{reset:()=>e({value:Vs}),setValue:o=>e(()=>({value:o})),toggleProduct:o=>e(s=>s.value.list.includes(o)?{value:{feedback:{active:!0,action:"remove"},list:s.value.list.filter(a=>a!==o)}}:{value:{feedback:{active:!0,action:"add"},list:[...s.value.list,o]}}),updateList:o=>e(s=>({value:{...s.value,list:o}})),resetFeedback:()=>e(o=>({value:{...o.value,feedback:{active:!1,action:""}}}))}})),us=()=>ls(e=>e.value.list),hm=()=>ls(e=>e.value.feedback),ds=()=>ls(e=>e.actions),gm=Object.freeze(Object.defineProperty({__proto__:null,useActionsWishlistStore:ds,useGetWishlistFeedbackStore:hm,useGetWishlistStore:us},Symbol.toStringTag,{value:"Module"})),rl=x.createContext({}),ym=({children:e,headerData:t,...r})=>{var p,h;const o=x.useRef(null),s=x.useRef(null),a=x.useRef(null),i=x.useRef(null),c=x.useRef(null),{mediatorRef:l,currentHeaderConfigsRef:u}=ce();return(p=l.current)==null||p.subscribe("header:change_variant",d=>{var b,C,v;if(d&&u.current&&(u.current.bannerVariant=d),!o.current)return;const g=document.body.scrollTop>0,_=o.current.getAttribute("data-interactiveVariant"),y=g?_:d??((b=u.current)==null?void 0:b.bannerVariant)??"default";y!==((C=u.current)==null?void 0:C.headerVariant)&&(o.current.setAttribute("data-bottomdivider",String(g)),o.current.setAttribute("data-variant",String(y)),(v=l.current)==null||v.publish("herobanner:change_controllers_variant",y),u.current&&(u.current.headerVariant=y))}),(h=l.current)==null||h.subscribe("header:change_position",d=>{o.current&&(o.current.style.position=d)}),x.useEffect(()=>{const d=new AbortController,f=m.helpers.throttle(()=>{var _;return(_=l.current)==null?void 0:_.publish("header:change_variant",null)},200);document.body.addEventListener("scroll",f,{passive:!0,signal:d.signal});const g=_=>{var b;(b=_.target.closest("a"))==null||b.blur()};return o.current&&(o.current.addEventListener("click",g,{signal:d.signal}),o.current.addEventListener("touchend",g,{signal:d.signal})),()=>{d.abort()}},[]),n.jsx(rl.Provider,{value:{headerData:t,structureRef:s,rootRef:o,tipbarRef:a,userMenuMobileRef:i,userMenuDesktopRef:c,...r},children:e})},je=()=>x.useContext(rl),nl=x.createContext({}),ol=({children:e})=>{const t=x.useRef(null),r=x.useRef(null),o=as(),s=x.useCallback(()=>{var a;{const i=(a=t.current)==null?void 0:a.querySelector("dialog");if(i){i.dataset.animation="out";const c=i.children[0];c.dataset.animation="out"}}},[]);return x.useEffect(()=>{var a;if(o)document.body.dataset.modalopen="true";else{document.body.dataset.modalopen="false";const i=(a=r.current)==null?void 0:a.querySelector("dialog");if(i){i.dataset.animation="out";const c=i.children[0];c.dataset.animation="out"}}},[o]),x.useEffect(()=>{r.current=document.body},[]),n.jsx(nl.Provider,{value:{bodyRef:t,handleCloseSubMenu:s,documentBodyRef:r},children:e})},Ft=()=>x.useContext(nl),_m=e=>{if(!e||typeof window>"u")return 0;const t=window.getComputedStyle(e);return parseInt(t.padding,10)},vm=(e,t,r)=>{if(!(e instanceof HTMLElement)||!(t instanceof HTMLElement))return{left:0,top:0};const o=t.getBoundingClientRect(),s=e.getBoundingClientRect(),a=e!=null&&e.parentElement?_m(e==null?void 0:e.parentElement):0;return{left:o.left+o.width/2-(s.width+a),top:o.top+o.height+r}},sl=x.createContext({}),al=({children:e,delay:t=600,gap:r=20,...o})=>{const[s,a]=x.useState(!1),i=x.useRef(null),[c,l]=x.useState(!1),[u,p]=x.useState({left:0,top:0}),h=x.useCallback(()=>{l(!0),typeof window<"u"&&(i.current=window.setTimeout(()=>{a(!1),l(!1)},t))},[l,a,t]);return x.useEffect(()=>{if(typeof window>"u")return;const d=window.document.querySelector("#cart-button"),f=window.document.querySelector("#add-to-cart--tooltip");if(d&&f){const{left:g,top:_}=vm(f,d,r??0);p({left:g,top:_}),l(!1)}},[r,s]),n.jsx(sl.Provider,{value:x.useMemo(()=>({...o,...u,handleClose:h,isLeaving:c,isOpen:s,setIsOpen:a,setIsLeaving:l}),[o,u,h,c,s,a,l]),children:e})},yt=()=>{const e=x.useContext(sl);if(e===void 0)throw new Error("useAddToCartContext must be used within a AddToCartProvider");return e},il=x.createContext({}),xm=({children:e,CARTPROVIDER_MESSAGE_PRODUCT_REMOVE:t,...r})=>{const o=St(),{setRecentlyAdded:s}=Dt(),a=x.useRef(""),i=os(),{addNotification:c,removeNotification:l}=ss(),{addCoupon:u,addItem:p,addSellerCode:h,addMarketingData:d,emptyCart:f,isOpen:g,removeItem:_,shipping:y,shippingUpdate:b,toggleServiceToProduct:C,updateItemQuantity:v}=o;x.useEffect(()=>{const F=To.get("lastMedias");if(o.id&&F&&a.current!==F){a.current=F;const V=new URLSearchParams(F),G=Mc(V);d(G)}},[o,d]);const j=x.useCallback(async(F,V)=>(V==="coupon"?u(F):h(F)).then(B=>{if(typeof B!="boolean"&&B instanceof Object){if(V==="seller"&&"value"in B){const{statusOk:J,value:A}=B,k=String(A??"").split(" - ");return xt((k==null?void 0:k[0])??"",F,!!J)}return xt(String(B.coupon),F,!0)}return xt("","")}).catch(()=>Promise.resolve({code:400})),[u,h]),P=x.useCallback((F,V,G)=>{const{id:B}=F;v(B,V,G)},[v]),E=x.useCallback((F,V,G=!1)=>{if(!F)return;const{id:B}=F,J=Mo(o.items,B);if(J!==-1&&!G){const A=Number(o.items[J].quantity),k=o.items[J]?A+1:1;P(F,k,V)}else p({id:B,quantity:(F==null?void 0:F.quantity)??1,seller:F.seller});g||s(A=>[...A,F])},[p,P,o.items,g,s]),S=x.useCallback((F,V)=>{if(!F||!Array.isArray(F))return;s(B=>[...B,...F]);const G=F.map(B=>{const{id:J,quantity:A,seller:k}=B,D=Mo(o.items,J),X=Nc(A??1,D);return{id:J,quantity:X,seller:k}});p(G,V)},[p,o.items,s]),R=x.useCallback(async(F,V,G)=>F?_(F).then(()=>(c(V??`${t}`,G),xt(F,F))):Promise.resolve(xt("","Product id required")),[c,_]),T=x.useCallback(()=>{o.items.length>0&&f()},[f,o.items]),w=x.useCallback((F,V="BRA")=>y(F,V),[y]),N=x.useCallback(F=>{F&&b(F)},[b]),I=x.useCallback(async(F,V,G)=>{const B=o.items.findIndex(A=>A.id===F);return o.items[B]&&B>=0?C(V,B,G??!1):!1},[o.items,C]),z=x.useCallback(async(F,V)=>v(F,V).then(G=>{if(Array.isArray(G)){const B=G.find(J=>J.id===F);if(B&&(B==null?void 0:B.quantity)<V)return String(B.quantity)}return!1}),[v]),O=x.useCallback(async()=>{await d({...o.marketingData,coupon:""})},[d,o.marketingData]),W=x.useCallback(async()=>{await d({...o.marketingData,utmiCampaign:"",utmCampaign:"",utmSource:"",utmMedium:""})},[d,o.marketingData]),q=x.useCallback(async()=>{await y("","BRA")},[y]);return n.jsx(il.Provider,{value:x.useMemo(()=>({...r,addCouponSeller:j,addToCart:E,addItemsToCart:S,cartStore:o,notifications:i,clearCart:T,addNotification:c,isOpen:o.isOpen,removeNotification:l,removeToCart:R,setIsOpen:o.setIsOpen,shipping:w,shippingUpdateOption:N,toggleGiftItemCart:I,updateItemQuantity:z,removeCoupon:O,removeSellerCode:W,removeCEP:q}),[r,j,E,S,i,T,c,o,l,R,w,N,I,z,O,W,q]),children:e})},Ee=()=>{const e=x.useContext(il);if(e===void 0)throw new Error("useCartContext must be used within a CartProvider");return e},cl=x.createContext({}),fs=({children:e,fetch:t})=>{const r=x.useRef(!0),[o,s]=x.useState(null),[a,i]=x.useState(!1);return x.useEffect(()=>{(async()=>{r.current=!0;try{const l=await t();if(!l.ok)throw new Error("Failed to fetch data");const u=await l.json();s(u.data),r.current=!1}catch{r.current=!0,i(!0)}})()},[t]),n.jsx(cl.Provider,{value:x.useMemo(()=>({data:o,isLoading:r.current??!1,isError:a}),[o,a,r]),children:e})},ps=()=>{const e=x.useContext(cl);if(e===void 0)throw new Error("useProductsContext must be used within a useRootContext");return e},ll=x.createContext({}),ms=({children:e,sort:t,state:r,count:o,collectionId:s,brand:a,searchParams:i,ITEMS_PER_PAGE:c})=>{const l=x.useMemo(()=>{var u;return s?[{key:"productclusterids",value:s.toString()}]:a?[{key:"brand",value:a}]:(u=r.base)!=null&&u.length?r.base.slice(1).split("/").map((p,h)=>({key:`category-${h+1}`,value:p})):[]},[r.base,s]);return n.jsx(ll.Provider,{value:x.useMemo(()=>({state:{...r,facets:[...l,...r.facets??[]]},sort:t,count:o??c,searchParams:i}),[l,o,t,r,i]),children:e})},$e=()=>{const e=x.useContext(ll);if(e===void 0)throw new Error("useSearchContext must be used within a SearchProvider");return e},ul=x.createContext({}),bm=({children:e,...t})=>n.jsx(ul.Provider,{value:t,children:e}),ze=()=>{const e=x.useContext(ul);if(e===void 0)throw new Error("usePLPConstants must be used within a PLPConstantsProvider");return e},dl=x.createContext({}),jm=({children:e,selectedFacets:t})=>{const{data:r,...o}=ps(),{router:s}=xe(),{searchParams:a,PLP_SORT_DEFAULT:i}=ze(),c=x.useCallback((d,f)=>{if(f){if(d.key.toLocaleLowerCase()==="price"){const g=f.getAll("facets");f.delete("facets"),g.forEach(_=>{const[y]=_.split("/");y!==d.key&&f.append("facets",_)})}f.set("page","1"),f.append("facets",`${d.key}/${d.value}`),s.push(`?${f.toString()}`)}},[s]),l=x.useCallback(()=>{const d=new URLSearchParams;d.set("sort",i),d.set("page","1"),s.push(`?${d.toString()}`)},[s]),u=x.useCallback((d,f)=>{if(!f||!f.has&&!f.has("facets"))return;const g=f.getAll("facets");f.delete("facets"),f.set("page","1"),g.forEach(_=>{const[y,b]=_.split("/");(y!==d.key||b!==d.value)&&f.append("facets",_)}),s.push(`?${f.toString()}`)},[s]),p=x.useCallback(d=>{const f=a?new URLSearchParams(a):new URLSearchParams;for(const[,g]of f.entries()){const[_,y]=g.split("/");if(_===d.key&&y===d.value)return u(d,f)}return c(d,f)},[c,u,a]),h=x.useCallback(d=>{const f=a?new URLSearchParams(a):new URLSearchParams;f.set("sort",d.replace("_",":")),s.push(`?${f.toString()}`)},[s,a]);return n.jsx(dl.Provider,{value:x.useMemo(()=>({...o,breadcrumb:r&&"breadcrumb"in r?r==null?void 0:r.breadcrumb:[],deleteAllFacets:l,facets:r&&"facets"in r?r==null?void 0:r.facets:[],selectedFacets:t,onToggleFacet:p,onSort:h,searchParams:a}),[r,l,h,p,o,t,a]),children:e})},fl=({children:e,forceUpdate:t})=>{const{state:r}=$e();return n.jsx(fs,{fetch:()=>fetch("/api/search/facets",{method:"POST",body:JSON.stringify({...r,forceUpdate:t}),priority:"low"}),children:n.jsx(jm,{selectedFacets:(r==null?void 0:r.facets)??[],children:e})})},pl=()=>{const e=x.useContext(dl);if(e===void 0)throw new Error("useFacetsContext must be used within a FacetsProvider");return e},At={placeholder:"Ordernar por",options:{score_desc:"Mais Relevantes",orders_desc:"Mais Vendidos",price_desc:"Maior Preço",price_asc:"Menor Preço",release_desc:"Novidades",discount_desc:"Maior Desconto",name_asc:"De A a Z"}},Cm={nextPage:!1,previousPage:!1,startCursor:"0",endCursor:"0",count:0,total:0},Sm="Imagem do produto",Gs=1,Pm="Sair",wm=e=>e.exit,Em=({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"}],Rm=(e,t)=>{const r=(t??"").split("@")[0];return e?`Olá${r.length?", ":" "}${r}!`:"Olá!"},Am=e=>"Seja bem vindo!",ml=x.createContext({}),Nm=({children:e})=>{const{data:t,...r}=ps(),[o,s]=x.useState(0),{sendDataLayerEvent:a}=le();return x.useEffect(()=>{if(t&&"pagination"in t&&t.products.length>0){a({functionKey:"productListEvent",data:{event:"view_item_list",commonData:{products:t.products}}});const i=t.pagination.count;i&&Number.isInteger(i)&&s(i)}},[t,a,s]),n.jsx(ml.Provider,{value:x.useMemo(()=>({...r,products:t&&"products"in t?t==null?void 0:t.products:[],pagination:t&&"pagination"in t?t==null?void 0:t.pagination:Cm,total:o}),[t,r,o]),children:e})},hs=({children:e,query:t,forceUpdate:r})=>{const{count:o,state:s}=$e(),a={...s,count:o};return n.jsx(fs,{fetch:()=>fetch("/api/search/product",{method:"POST",body:JSON.stringify({...a,query:t,forceUpdate:r,facets:s.facets??[]})}),children:n.jsx(Nm,{children:e})})},qt=()=>{const e=x.useContext(ml);if(e===void 0)throw new Error("useProductsContext must be used within a ProductsProvider");return e},hl=x.createContext({}),Im=({children:e,term:t})=>{const[r,o]=x.useState([]),[s,a]=x.useState(!1);return x.useEffect(()=>{if(!t){o([]);return}(async()=>{a(!0);try{const c=await fetch("/api/search/suggestedTerms",{method:"POST",body:JSON.stringify({query:t,locale:"pt-BR"})}),{data:l}=await c.json();o((l==null?void 0:l.searches)||[])}catch(c){console.error("Erro ao buscar sugestões:",c)}})()},[t]),n.jsx(hl.Provider,{value:x.useMemo(()=>({suggestedTerms:r,loading:s,setLoading:a}),[r,s]),children:e})},Tm=({children:e,...t})=>n.jsx(Im,{...t,children:e}),Om=()=>{const e=x.useContext(hl);if(!e)throw new Error("useSuggestedTermsContext must be used within a SuggestedTermsProvider");return e},gl=x.createContext({searches:[],isLoading:!1,error:null}),km=({children:e})=>{const[t,r]=x.useState([]),[o,s]=x.useState(!0),[a,i]=x.useState(null);return x.useEffect(()=>{(async()=>{try{s(!0);const l=await fetch("/api/search/topSearch");if(!l.ok)throw new Error(`Erro ao buscar os dados: ${l.status}`);const u=await l.json();r(u.data.searches||[])}catch(l){i(l instanceof Error?l.message:"Erro desconhecido")}finally{s(!1)}})()},[]),n.jsx(gl.Provider,{value:x.useMemo(()=>({searches:t,isLoading:o,error:a}),[t,o,a]),children:e})},Mm=()=>{const e=x.useContext(gl);if(!e)throw new Error("useTopSearches must be used within a TopSearchesProvider");return e},yl=x.createContext({}),Lm=({children:e,slug:t,searchParams:r,collectionId:o,brand:s,itemsPerPage:a=24,PLP_SORT_DEFAULT:i})=>{const{pathname:c}=xe(),l=x.useRef(""),[u,p]=x.useState(!1),h=x.useMemo(()=>{const f=new URL(c,"http://localhost"),g=(r==null?void 0:r.getAll("facets"))??[],_=(r==null?void 0:r.get("page"))??"1",y=(r==null?void 0:r.get("sort"))??(o?"":i);return f.searchParams.set("page",String(_)),f.searchParams.set("sort",String(y)),r!=null&&r.get("query")?(f.searchParams.set("query",r.get("query")),f):(f.searchParams.set("base",Array.isArray(t)?t.join("/"):t),f.searchParams.set("facets",g.join(",")),f)},[o,c,r,t]),d=x.useMemo(()=>{if(Array.isArray(r==null?void 0:r.getAll("facets")))return U.parseSearchState(h,r.getAll("facets")??[""]);const f=(r==null?void 0:r.getAll("facets"))??[];return U.parseSearchState(h,f)},[h,r]);return x.useEffect(()=>{l.current!==c&&(l.current=c,window.document.body.scrollTo(0,0))},[c]),n.jsx(yl.Provider,{value:x.useMemo(()=>({openFilters:u,setOpenFilters:p}),[u,p]),children:n.jsx(ms,{ITEMS_PER_PAGE:a,searchParams:r??new URLSearchParams,state:x.useMemo(()=>({...d}),[d]),collectionId:o,brand:s,children:e})})},gs=()=>{const e=x.useContext(yl);if(e===void 0)throw new Error("usePLPContext must be used within a PLPProvider");return e},xr=(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((s,a)=>xr(s,t[a]));if(Array.isArray(t))return!1;const r=Object.keys(e),o=Object.keys(t);return r.length!==o.length?!1:r.every(s=>Object.prototype.hasOwnProperty.call(t,s)&&xr(e[s],t[s]))},_l=(e,t,r="page")=>Object.keys(t).some(o=>o===r?!1:!xr(t[o],e[o])),Do=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},vl=()=>({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}}}),xl=(e,t,r,o=24)=>{const s=new Set,a=[];if(!Array.isArray(e)||e.length===0)return{taken:s,placedBanners:a};const i=t*o*r;for(const c of e){let l=Number(c.position_grid),u=!1;for(;l<i;){const p=l%r;if(p+c.columns>r){l+=r-p;continue}if(!Array.from({length:c.columns}).some((f,g)=>s.has(l+g))){for(let f=0;f<c.columns;f++)s.add(l+f);a.push(l),u=!0;break}l++}u||console.info(`[PLP INFINITE FAILED BANNER POSITION]: pos=${c.position_grid}, cols=${c.columns}`)}return{taken:s,placedBanners:a}},$o=(e,t,r,o=24)=>{const{placedBanners:s,taken:a}=xl(e??[],t,r),i=[];let c=0;try{for(;i.length<t*o;)a.has(c)||i.push(c),c++;return{banners:s,products:i}}catch(l){console.info(`[PLP INFINITE FAILED TO GEN POSITIONS]: page=${t}`,l)}return{banners:[],products:i}},yr=(e,t,r=24)=>Array.from({length:e},(o,s)=>{const a=s+1;return{loading:e===a,page:a,pagination:t!=null&&t.products.length&&e===a?t==null?void 0:t.pagination:ys(),products:t!=null&&t.products.length&&e===a?t==null?void 0:t.products:Array.from({length:r},()=>vl())}}),bl=(e,t)=>[...e,{loading:!1,page:t,pagination:ys(),products:[]}],ys=()=>({nextPage:!1,previousPage:!1,startCursor:"0",endCursor:"1",count:1,total:1}),Dm=(e,t,r,o,s)=>{const a=e[e.length-1],i=(a==null?void 0:a.products.length)??s,c=(e.length-1)*s+i-1,l=r[c];return t.filter((u,p)=>{const h=o[p];return h<=l||s>i&&h>l})},jl=(e,t)=>{const r=new Map;for(const s of e){const a=Math.floor(s/t);r.has(a)||r.set(a,[]),r.get(a).push(s)}const o=[];for(const[,s]of r){const a=s[Math.floor(Math.random()*s.length)];o.push(a)}return o},Cl=(e,t)=>{if(!e)return[];const r=e.map((o,s)=>o.video&&o.video!==""?s:null).filter(o=>o);return jl(r,t)},Sl=e=>Array.isArray(e)?e.map((t,r)=>({href:`/${e.slice(0,r+1).join("/")}`,name:t})):[],$m=Object.freeze(Object.defineProperty({__proto__:null,createBreadcrumb:Sl,createPage:bl,createPages:yr,createPagination:ys,createProduct:vl,deepEqual:xr,fetchPage:Do,getBanners:xl,getPositions:$o,getProductsWithVideo:Cl,getRandomVideoPerRow:jl,getVisibleBanners:Dm,hasStateChangedExceptPage:_l},Symbol.toStringTag,{value:"Module"})),zm=50,Bm=mt.create((e,t)=>{const r=i=>Math.min(i,zm),o=async(i,c)=>{const l=r(i.page);try{const u=await Do({...i,page:l});s(l,p=>c?c(p,u):{...p,...u})}catch(u){console.error(`[PDC - SCROLL INFINITE FAILED TO FETCH PAGE ${l}]: ${u}`),s(l,p=>({...p,loading:!1}))}},s=(i,c)=>{e({load:!0,pages:t().pages.map(l=>l.page===i?c(l):l)})},a=async(i,c)=>{await o(i,(l,u)=>(typeof c=="function"&&c(u),{...l,...u,loading:!0}))};return{banners:[],load:!1,pages:[],total:0,positions:[],products:[],createPages:async(i,c,l,u)=>{var h,d,f;const p=r(Number(i==null?void 0:i.page));e({...c,pages:yr(p,void 0,u)});try{const g=await Do({...i,page:p});if(g){if(!g.products.length&&((h=g==null?void 0:g.pagination)==null?void 0:h.total)<p){a({...i,page:(d=g==null?void 0:g.pagination)==null?void 0:d.total},l),e({pages:yr((f=g==null?void 0:g.pagination)==null?void 0:f.total)});return}typeof l=="function"&&l(g),e({load:!0,pages:yr(p,g),total:Number(g.pagination.count)})}}catch(g){console.error(`[PDC - SCROLL INFINITE TO CREATE PAGES]: page ${p} ${g}`)}},addPage:(i,c,l)=>{const{pages:u}=t(),p=r(i==null?void 0:i.page);u.some(h=>h.page===p)||(e({...c,pages:bl(u,p)}),a(i,l))},updateProducts:(i,c)=>{const l=t().pages.find(u=>u.page===r(i==null?void 0:i.page));l!=null&&l.loading||a(i,c)}}}),Fm=(e,t,r,o=0)=>{if(!e.length)return[];let s=0;const a=[];for(let i=0;i<e.length;i+=r){const c=e.slice(i,i+r),l=c.findIndex(u=>{var p;return(p=u.node)==null?void 0:p.video});for(let u=0;u<c.length;u++){const p=i+u,h=o+p,d=t.find(g=>g.position_grid===h+1),f=h+s+1;d&&(s+=d.columns),a.push({position:f,canPlayVideo:u===l})}}return a},Pl=(e,t,r)=>{const o=(t-1)*r,s=t*r;return e>=o&&e<=s},Er=e=>{var t;return(t=e==null?void 0:e.map(r=>({disable:U.disableSKU(r),size:U.getSKUName(r),skuID:"sku"in r&&r.sku})))==null?void 0:t.filter(r=>r.disable)},qm=Object.freeze(Object.defineProperty({__proto__:null,createGridPosAndVideo:Fm,getSkusNotify:Er,isPositionInCurrentPage:Pl},Symbol.toStringTag,{value:"Module"})),wl=({isMobile:e,ICONS:t,NOTIFY_INFO:r})=>n.jsxs(n.Fragment,{children:[n.jsx(m.Modal.Controls,{navigation:e?"top":"middle",isMobile:e??!1,children:!e&&n.jsxs(n.Fragment,{children:[n.jsx(m.Button,{"data-close":!0,iconNameStart:t.arrow_left,size:"small",variant:"tertiary"}),n.jsx(m.Button,{"data-close":!0,iconNameStart:t.close,size:"small",variant:"tertiary"})]})}),n.jsx(m.Modal.Title,{navigation:e?"top":"middle",title:r.title})]});wl.displayName="Notify.Controls";const Ge={"notify--header-modifier":"_notify--header-modifier_xlomp_1","notify--container":"_notify--container_xlomp_4","notify--form":"_notify--form_xlomp_20","notify--status":"_notify--status_xlomp_36","notify--status--success":"_notify--status--success_xlomp_50","notify--status--error":"_notify--status--error_xlomp_50","notify--modal--body":"_notify--modal--body_xlomp_99","notify--loading":"_notify--loading_xlomp_102","notify--selector":"_notify--selector_xlomp_122","notify--selector--header":"_notify--selector--header_xlomp_138","modal-modifier":"_modal-modifier_xlomp_168"};function El(e){const r=decodeURIComponent(window.document.cookie).split(";");for(const o of r){const[s,a]=o.trim().split("=");if(s===e)return a}}function _s(e,t,r={}){const s={...{path:"/",expires:new Date(Date.now()+36e5)},...r};let a=`${encodeURIComponent(e)}=${encodeURIComponent(t??"")}`;for(const i in s)s[i]!==void 0&&(a+=`; ${i}`,i==="expires"?a+=`=${s[i].toUTCString()}`:typeof s[i]=="boolean"?a+=`; ${s[i]?"true":"false"}`:a+=`=${s[i]}`);window.document.cookie=a}const Hm=()=>{const{sendDataLayerEvent:e}=le(),{user:t}=Ht(),{cartStore:r}=Ee();return x.useEffect(()=>{if(!t)return;(async()=>{const{userId:s,email:a,firstName:i,lastName:c,phone:l,homePhone:u,postalCode:p,street:h,number:d,city:f,gender:g}=t,_=new TextEncoder().encode(s),y=await crypto.subtle.digest("SHA-256",_),C=Array.from(new Uint8Array(y)).map(v=>v.toString(16).padStart(2,"0")).join("");e({functionKey:"readyEvents",data:{readyData:{user_id:C,email:a,first_name:i,last_name:c,phone:l||u,zip:p,street:h,street_number:d,city:f,gender:g,orderform_id:r==null?void 0:r.id}}})})()},[t,r.id]),null},Rl=x.createContext({amount:null,boxes:null,toExpire:null,loading:!0,logout:()=>null,getCurrentCredits:()=>({credits:0,cashback:0})}),Um=({children:e,AUTH_TOKEN_COOKIE:t})=>{const[r,o]=x.useState({amount:null,boxes:null,toExpire:null,loading:!0}),s=x.useCallback(async()=>{try{await fetch("/api/user",{priority:"low"}).then(c=>c.json()).then(c=>{const{userCredits:l,...u}=c,{wishlist:p,...h}=u;o({amount:l==null?void 0:l.amount,boxes:l==null?void 0:l.boxes,toExpire:l==null?void 0:l.toExpire,user:h,loading:!1,wishlist:(typeof p=="string"?p.split(","):p)??[]})})}catch(c){console.error("my credits request",c),o({...r,loading:!1})}},[o]),a=x.useCallback(()=>{_s(t),s()},[s]),i=x.useCallback(()=>r.boxes?r.boxes.reduce((c,l)=>l.gift_card_box.refid==="C1643"?(c.cashback+=l.amount,c):(c.credits+=l.amount,c),{cashback:0,credits:0}):{cashback:0,credits:0},[r]);return x.useEffect(()=>{s()},[s]),n.jsxs(Rl.Provider,{value:x.useMemo(()=>({...r,getCurrentCredits:i,logout:a}),[r,i,a]),children:[n.jsx(Hm,{}),e]})},Ht=()=>{const e=x.useContext(Rl);if(e===void 0)throw new Error("useContext(SessionContext) must be used within a SessionProvider");return e},Al=({color:e,delay:t=3e3,sku:r,setStatus:o,setIsLoading:s,NEWSLETTER_CONFIGS:a,NOTIFY_INFO:i})=>{const c=x.useRef(null),[l,u]=x.useState(null),{sendDataLayerEvent:p}=le(),{user:h}=Ht(),d=h!=null&&h.firstName?`${h==null?void 0:h.firstName} ${h==null?void 0:h.lastName}`:"";return n.jsx("div",{className:Ge["notify--form"],children:n.jsxs("form",{action:"POST",onSubmit:async f=>{var y;f.preventDefault();const g=f.currentTarget,_=((y=g.querySelector("input"))==null?void 0:y.value)??"";fetch("/api/aviseme",{method:"POST",body:JSON.stringify({userName:d,email:_,sku:r==null?void 0:r.skuID})}).then(b=>o(b.ok)).finally(()=>{s(!1),g.reset(),p({functionKey:"readyEvents",data:{event:"notify_me",readyData:{size:r==null?void 0:r.size,item_id:r==null?void 0:r.skuID,color:e}}}),c.current&&clearTimeout(c.current),c.current=setTimeout(()=>{var b;(b=document.body)==null||b.dispatchEvent(new MouseEvent("click",{bubbles:!0,cancelable:!0})),u(!0),o(null)},t)})},children:[n.jsx(m.TextField.Structure,{input:n.jsx(m.TextField.Input,{feedback:typeof l=="boolean"&&l?"error":"none",type:"email",label:i.email_placeholder,mode:"over-label",variant:"outlined",sizeVariant:"large",onChange:f=>u(!f.target.validity.valid),required:!0}),supportText:typeof l=="boolean"&&l?n.jsx(m.TextField.SupportText,{text:a.messages.invalid_email,feedback:"error"}):n.jsx(n.Fragment,{})}),n.jsx(m.Button,{disabled:!(l===!1||!r)||!r,type:"submit",size:"large",children:i.button})]})})};Al.displayName="Notify.Form";const Nl=({isLoading:e=!1})=>n.jsx("div",{className:Ge["notify--loading"],"data-loading":e,children:n.jsx(m.Spinner,{})});Nl.displayName="Notify.Loading";const vs={"product-variation-list--list":"_product-variation-list--list_e0he8_1","product-variation-list--title":"_product-variation-list--title_e0he8_10","product-variation-list":"_product-variation-list_e0he8_1"},Il=({children:e,...t})=>n.jsx("div",{...t,className:vs["product-variation-list--list"],children:e});Il.displayName="ProductVariationList.List";const Tl=({fill:e="#1352C7",src:t="",type:r="size",text:o,...s})=>{const{nextimage:a}=xe();return r==="size"?n.jsxs(m.ToggleSize.Wrapper,{...s,size:"large",variation:"ghost",children:[n.jsx(m.ToggleSize.DisabledAdornment,{title:"disabled-adornment-size"}),n.jsx(m.ToggleSize.Text,{children:o})]}):n.jsxs(m.ToggleStyle.Wrapper,{...s,size:"small",title:"wrapper-texture",children:[n.jsx(m.ToggleStyle.DisabledAdornment,{title:"disabled-adornment-texture"}),r==="color"?n.jsx(m.ToggleStyle.Color,{background:e,title:"color"}):n.jsx(m.ToggleStyle.Texture,{title:"texture",children:n.jsx(a,{alt:o??"image",height:40,src:t,width:40})})]})};Tl.displayName="ProductVariationList.Option";const Ol=({children:e,...t})=>n.jsx("div",{className:vs["product-variation-list"],...t,children:e});Ol.displayName="ProductVariationList.Root";const kl=({children:e,title:t,...r})=>n.jsxs("div",{...r,className:vs["product-variation-list--title"],children:[t?n.jsx(m.TextStructure.Root,{children:n.jsx(m.TextStructure.SectionWrapper,{children:n.jsx("p",{children:t})})}):n.jsx(n.Fragment,{}),e]});kl.displayName="ProductVariationList.Title";const Xe={List:Il,Option:Tl,Title:kl,Root:Ol},Wm=(e,t)=>{if(!e||!t)return!1;const r=Object.keys(e);return r.length!==Object.keys(t).length?!1:r.every(o=>e[o]===t[o])},Ml=({children:e,label:t="",skus:r,sku:o,setSku:s})=>n.jsxs(n.Fragment,{children:[n.jsx("div",{className:Ge["notify--selector--header"],children:e}),n.jsxs(Xe.Root,{className:Ge["notify--selector"],children:[n.jsx(Xe.Title,{title:t}),n.jsx(Xe.List,{children:Array.isArray(r)&&r.map((a,i)=>{const c=Wm(o,a);return n.jsx(Xe.Option,{active:c,onClick:()=>s(c?null:a),text:String(a.size),type:"size"},i)})})]})]});Ml.displayName="Notify.Selector";const Ks=({type:e,icon:t,title:r,subtitle:o})=>n.jsx("div",{className:Ge[`notify--status--${e}`],children:n.jsx(m.TextStructure.Root,{adornment:{start:n.jsx(m.Icon,{name:t,size:"large"})},children:n.jsxs(m.TextStructure.DivWrapper,{children:[n.jsx("h2",{children:r}),n.jsx("h3",{children:o})]})})}),Ll=({status:e,ICONS:t,PRODUCT_CARD_TEXTS:r})=>n.jsxs("div",{className:Ge["notify--status"],"data-status":e,children:[n.jsx(Ks,{...r.success,icon:t.check_circle,type:"success"}),n.jsx(Ks,{...r.error,icon:t.alert_circle,type:"error"})]});Ll.displayName="Notify.Status";const xs=({color:e,open:t,setVisible:r,skus:o,sku:s,setSku:a,ICONS:i,NEWSLETTER_CONFIGS:c,NOTIFY_INFO:l,PRODUCT_CARD_TEXTS:u,Z_INDEX_WAR:p})=>{const[h,d]=x.useState(!1),[f,g]=x.useState(null),{isMobile:_}=ce();return n.jsxs(m.Modal.Root,{isMobile:_??!1,isOpen:t,setIsOpen:r,variant:_?"sideBottom":"sideLeft",style:{zIndex:p.modal},className:Ge["modal-modifier"],children:[n.jsx(m.Modal.Header,{navigation:"top",className:Ge["notify--header-modifier"],children:n.jsx(wl,{isMobile:_??!1,ICONS:i,NOTIFY_INFO:l})}),n.jsxs(m.Modal.Body,{className:Ge["notify--modal--body"],children:[n.jsxs("div",{className:Ge["notify--container"],children:[n.jsxs(Ml,{label:l.selector_label,sku:s,skus:o,setSku:a,children:[n.jsx("p",{children:l.subtitle}),n.jsx("span",{children:l.description})]}),n.jsx(Al,{delay:4e3,sku:s,setStatus:g,setIsLoading:d,color:e,NEWSLETTER_CONFIGS:c,NOTIFY_INFO:l}),n.jsx(Nl,{isLoading:h}),n.jsx("div",{className:Ge["notify--selector--header"],children:n.jsx("span",{children:l.legal})})]}),n.jsx(Ll,{status:f,ICONS:i,PRODUCT_CARD_TEXTS:u})]})]})};xs.displayName="Notify";const Rr=({skus:e,ICONS:t,NEWSLETTER_CONFIGS:r,NOTIFY_INFO:o,PRODUCT_CARD_TEXTS:s,Z_INDEX_WAR:a,...i})=>{const c=Er(e??[]);return n.jsx(xs,{skus:c,ICONS:t,NEWSLETTER_CONFIGS:r,NOTIFY_INFO:o,PRODUCT_CARD_TEXTS:s,Z_INDEX_WAR:a,...i})};Rr.displayName="PDC.Notification";const Dl=x.createContext({}),$l=({banners:e,children:t})=>{const{searchParams:r,ITEMS_PER_PAGE:o,ICONS:s,NEWSLETTER_CONFIGS:a,NOTIFY_INFO:i,PRODUCT_CARD_TEXTS:c,Z_INDEX_WAR:l}=ze(),{router:u}=xe(),{sendDataLayerEvent:p}=le(),{isMobile:h}=ce(),{state:d}=$e(),{addPage:f,createPages:g,updateProducts:_,...y}=Bm(),b=h?8:16,C=h?2:4,v=x.useRef(!1),j=x.useRef(d),[P,E]=x.useState(!1),[S,R]=x.useState(null),[T,w]=x.useState([]),N=x.useCallback(q=>{q&&"pagination"in q&&p({functionKey:"productListEvent",data:{event:"view_item_list",commonData:{products:q.products}}})},[p]),I=x.useCallback(q=>{if(q.pagination.nextPage===!0){const F=q.page+1,V=$o(e,F,C,o);f({...d,page:F},V,N)}},[f,e,N,C,o,d]),z=x.useCallback(q=>{q.loading===!1&&_({...d,page:q.page},N)},[N,_,d]),O=x.useCallback(q=>{const F=new URLSearchParams(r);q.page!==Number(F.get("page")??1)&&(F.set("page",String(q.page)),u.replace(`?${F.toString()}`,{scroll:!1}))},[u,r]),W=x.useCallback((q,F)=>{const V=F?Er([F]):null;w(q),R(V!=null&&V.length?V[0]:null),E(!0)},[]);return x.useEffect(()=>{const q=!v.current,F=_l(j.current,d),V=$o(e,d.page,C);q?g(d,V,N,o):F&&(g(d,V,N,o),j.current=d),v.current=!0},[e,g,N,C,o,d]),n.jsxs(Dl.Provider,{value:x.useMemo(()=>({...y,addPage:f,addNewPage:I,createPages:g,gap:b,columns:C,handleNotify:W,updatePage:z,updateProducts:_,updateParamPage:O}),[f,I,g,W,b,C,y,z,_,O]),children:[t,n.jsx(Rr,{open:P,sku:S,skus:T,setSku:R,setVisible:E,ICONS:s,NEWSLETTER_CONFIGS:a,NOTIFY_INFO:i,PRODUCT_CARD_TEXTS:c,Z_INDEX_WAR:l})]})},et=()=>{const e=x.useContext(Dl);if(e===void 0)throw new Error("PLPInfiniteScrollContext must be used within a ScrollInfiniteProvider");return e},zl=x.createContext({gridBanners:void 0,banners:[]}),Vm=({children:e,data:t,device:r,SectionZone:o,COMMON_PAGE_COLUMN_GAP_PDC:s})=>{const{isMobile:a}=ce(),i=(t==null?void 0:t.sections.filter(h=>h.name!=="List Product Banners"))??[],c=i.slice(0,Gs),l=i.slice(Gs,i.length),u=t==null?void 0:t.sections.find(h=>h.name==="List Product Banners"),p=x.useMemo(()=>{var h,d;return((d=(h=u==null?void 0:u.data)==null?void 0:h.banners)==null?void 0:d.map(f=>({...f.banner,columns:f.bannerWidth,position_grid:f.bannerPosition})))??[]},[u]);return a&&r==="mobile"||!a&&r==="desktop"?n.jsxs(zl.Provider,{value:{gridBanners:u,banners:p},children:[n.jsx(o,{data:c??[]}),n.jsxs(m.Utils.Column,{gap:s,className:m.helpers.classNameConcat("utils-column-modifier"),children:[e,n.jsx(o,{data:l??[]})]})]}):n.jsx(n.Fragment,{})},Ar=()=>{const e=x.useContext(zl);return e===void 0&&console.error("Needs PLPContentContext on parent component"),e},Bl=x.createContext({}),Fl=({children:e,filters:t,PLP_FILTERS:r,...o})=>{var a;const s=(a=t.facets)==null?void 0:a.filter(i=>r.find(c=>c.key===i.key));return n.jsx(Bl.Provider,{value:x.useMemo(()=>({...o,filters:{...t,facets:s}}),[t,s,o]),children:e})},Et=()=>{const e=x.useContext(Bl);if(e===void 0)throw new Error("useFilterContext must be used within a FilterProvider");return e},ql=x.createContext({product:void 0}),Gm=({children:e,data:t,productId:r,COMMON_PAGE_COLUMN_GAP:o,SectionZone:s})=>n.jsxs(ql.Provider,{value:{productId:r},children:[e,n.jsx(m.Utils.Column,{gap:o,className:m.helpers.classNameConcat("utils-column-modifier"),children:n.jsx(s,{data:(t==null?void 0:t.sections)??[]})})]}),Hl=()=>{const e=x.useContext(ql);return e||console.error("use this hook only inside PDPContentProvider hierarchy"),e},Km=e=>e.normalize("NFD").replace(/[\u0300-\u036f]/g,"").replace(/\s+/g,"-").toLowerCase().trim();function Xm(e,t=1e3){let r=!1;return(...o)=>{r||(e(...o),r=!0,setTimeout(()=>{r=!1},t))}}function Ym(e,t=1e3){let r;return(...o)=>{clearTimeout(r),r=setTimeout(()=>{e(...o)},t)}}const Ul=(e,t)=>t.getTime()>e.getTime()?Math.abs(t.getTime()-e.getTime()):0,Tt=(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),Qm=e=>{const t=Op.decodeJwt(e??"");return{email:t.sub,userId:t.userId}},Zm=["name","email","phone","date","cpf","cep"],Xs={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}$/},Wl=({type:e,input:t,required:r=!1})=>{if(typeof t!="string"||!r&&t===""||!Xs[e])return!0;const o=t.trim();return Xs[e].test(o)},Jm=e=>{const t=/\/(\d+)-\d+-\d+\/(.+?)\./,r=typeof e=="string"?e.match(t):null;return r?r[2].replace(/-/g," "):Sm},eh=Object.freeze(Object.defineProperty({__proto__:null,FieldTypes:Zm,debounce:Ym,getAltTextFromUrl:Jm,getAuthenticatedUser:Qm,getCookie:El,getDaysHoursMinutesSeconds:Tt,getMilliSeconds:Ul,removeAccentsAndReplaceSpaces:Km,setCookie:_s,throttle:Xm,validateInput:Wl},Symbol.toStringTag,{value:"Module"})),th=({fields:e})=>{const t={};return{mountedFields:(e==null?void 0:e.reduce((o,s)=>(t[s.master_data_field]="none",{...o,[s.master_data_field]:s}),{}))??{},mountedInputsStatus:t}},rh=({formData:e,mountedFields:t,inputsStatus:r,hasTermsAndConditions:o,checkboxRef:s,setFormStatus:a})=>{let i=!1,c=!1;const l={...r};return o&&!s.current&&(a("unchecked"),i=!0),e.forEach((u,p)=>{var f;if(p==="terms-and-conditions")return;const h=(f=t[p])==null?void 0:f.required;if(h&&!u){l[p]="required",i=!0;return}Wl({type:t[p].type,input:u,required:h})||(l[p]="error",c=!0),typeof u=="string"&&e.set(p,u.toString().trim())}),{hasEmptyFields:i,hasErrors:c,inputStatusToUpdate:l}},Vl=x.createContext({}),Gl=({children:e,masterDataEmailField:t,fields:r,variant:o,CONSTANTS:{MASTER_DATA_ENTITY:s,NEWSLETTER_CONFIGS:a}})=>{const{sendDataLayerEvent:i}=le(),c=o==="vertical"&&a.hasTermsAndConditions,{mountedFields:l,mountedInputsStatus:u}=x.useMemo(()=>th({fields:r}),[r]),p=x.useRef(!1),[h,d]=x.useState("idle"),[f,g]=x.useState(u),_=async({searchFields:E,entity:S})=>{const R=await dt.post("/api/master-data/search",{body:{masterDataEntity:S,searchFields:E,headers:{"REST-Range":"resources=0-49"}}});return console.info(R),R.data},y=async({id:E,fieldsToBeUpdated:S,entity:R})=>(await dt.post("/api/master-data/update",{dataEntityName:R,id:E,fieldsToBeUpdated:S})).status,b=x.useCallback(async({payload:E,response:S},R,T)=>{const{email:w,...N}=E,[I]=await _({searchFields:{[R]:w},entity:T??s.newsletter});return I&&await y({id:I.id,fieldsToBeUpdated:N,entity:T??s.newsletter})!==204?{...S,status:"error"}:{...S,status:"success"}},[]),C=x.useCallback(async({formData:E},S,R)=>{const T={status:"idle",inputsStatus:{}},w={};E.forEach((N,I)=>{w[I]=N});try{const I=(await dt.post("/api/master-data",{body:{payload:w,masterDataEntity:S??s.newsletter}})).data;return(I==null?void 0:I.Message)==="duplicated entry"?b({payload:w,response:T},R,S):I!=null&&I.Id?{...T,status:"success"}:{...T,status:"error"}}catch(N){return console.error("error",N),{...T,status:"error"}}},[b]),v=x.useCallback(async(E,S,R)=>{E.preventDefault();const T=new FormData(E.target);S&&Object.keys(S).forEach(N=>{T.append(N,S[N])});const w=await C({formData:T},R??"",t);w&&(d(w==null?void 0:w.status),g(w.inputsStatus),w.status==="success"&&i({functionKey:"readyEvents",data:{event:"generate_lead"}}))},[t,C,d,g,i]),j=x.useCallback(E=>{const S=new FormData(E.currentTarget.parentElement),{hasEmptyFields:R,hasErrors:T,inputStatusToUpdate:w}=rh({formData:S,mountedFields:l,inputsStatus:f,hasTermsAndConditions:c,checkboxRef:p,setFormStatus:d});if(g(w),R||T){E.preventDefault();return}d("loading")},[l,f,c,p]),P=x.useCallback(()=>{d("idle"),g(u)},[u]);return n.jsx(Vl.Provider,{value:x.useMemo(()=>({formStatus:h,handleSubmit:v,setFormStatus:d,inputsStatus:f,setInputsStatus:g,hasTermsAndConditions:c,handleClickToSubmit:j,checkboxRef:p,masterDataEmailField:t,fields:r,variant:o,resetNewsletter:P}),[h,v,d,f,g,j,c,p,t,r,o,P]),children:e})},bs=()=>{const e=x.useContext(Vl);if(e===void 0)throw new Error("useNewsletterContext must be used within a NewsletterProvider");return e},Kl={contexts:{addToCart:{hook:yt,provider:al},cart:{hook:Ee,provider:xm},cms:{FlagsAndTags:{context:ts,hook:it,provider:kp}},newsletter:{hook:bs,provider:Gl},events:{hook:le,provider:qp},global:{hook:ce,provider:om,mediator:zc},header:{hook:je,provider:ym},menuMobile:{hook:Ft,provider:ol},next:{hook:xe,provider:sm},pdp:{provider:Mp},PDPContent:{provider:Gm,hook:Hl},plp:{provider:Lm,hook:gs},plpFilter:{hook:Et,provider:Fl},PLPContent:{provider:Vm,hook:Ar},plpInfinite:{provider:$l,hook:et},pdpdata:{provider:Hp},searchFacets:{hook:pl,provider:fl},searchProducts:{hook:qt,provider:hs},searchRoot:{hook:ps,provider:fs},searchSearch:{hook:$e,provider:ms},searchSuggestedTerms:{hook:Om,provider:Tm},searchTopSearchs:{hook:Mm,provider:km},session:{hook:Ht,provider:Um},ui:{hook:Dt,provider:$c}},hooks:{useBackPDC:cc,useClipboard:Up,useDisableZoom:_c,useLocalStorage:Vp,useOnScreen:rs,useSentinel:Pr,useTouchZoomPan:vc},stores:{cart:rm,header:cm,pdp:mm,wishlist:gm}},nh={cart:Jp,events:Fp,plp:$m,product:U.productHelpers,utils:eh},js={helpers:nh},Fe={"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"},Xl=({brand:e,className:t,name:r,...o})=>n.jsxs("div",{...o,className:m.helpers.classNameConcat(Fe["add-to-cart--card--name"],t),children:[n.jsx(m.Tag,{style:{textTransform:"uppercase"},size:"small",variant:"quaternary",title:e,children:e}),n.jsx(m.TextStructure.Root,{children:n.jsx(m.TextStructure.DivWrapper,{alignContent:"flex-start",alignItems:"flex-start",children:n.jsx("p",{className:"typography-style-body-md",children:r})})})]});Xl.displayName="AddToCart.Card.Name";const Yl=({className:e,listPrice:t,price:r,quantity:o,productId:s,...a})=>{const i=U.formatPriceToCurrency(r/100),c=U.formatPriceToCurrency(t/100);return n.jsx("div",{...a,className:m.helpers.classNameConcat(Fe["add-to-cart--card--price-quantity"],e),children:n.jsx(m.ProductInfo.Root,{size:"small",layout:"vertical",children:n.jsx(m.ProductInfo.Wrapper,{size:"small",layout:"vertical",children:n.jsx(m.ProductInfo.ValuesWrapper,{children:r!==t?n.jsxs(n.Fragment,{children:[n.jsx(m.ProductInfo.Price,{label:"originalPrice",value:i,size:"small"},"price-list"),n.jsx(m.ProductInfo.Price,{label:"discountPrice",value:c,size:"small"},"price-low")]}):n.jsx(m.ProductInfo.Price,{label:"defaultPrice",value:c,size:"small"},"price-low")})})})})};Yl.displayName="AddToCart.Card.PriceQuantity";const oh="_skeleton_12b79_1",sh={skeleton:oh},Ql=({style:e})=>n.jsx("div",{style:e,className:sh.skeleton}),ah="_image_lypfr_1",ih={image:ah},ch=({alt:e,className:t,objectFit:r,...o})=>{const{nextimage:s}=xe();return n.jsx(s,{quality:90,...o,alt:e??"",className:m.helpers.classNameConcat(ih.image,t),"data-object-fit":r??"cover"})},lh=({videoRef:e,...t})=>n.jsx("video",{...t,ref:e,children:n.jsx("track",{kind:"captions"})}),Be={Image:ch,Video:lh},Zl=({className:e,productGroupID:t,size:r,texture:o,...s})=>{const{CONSTANTS:{TEXTURE_IMAGE:a,TOGGLE_STYLE_MODIFIER:i}}=yt(),[c,l]=x.useState(o??"");return x.useEffect(()=>{c||fetch("/api/catalog/product/info",{method:"POST",priority:"low",body:JSON.stringify({ids:[t]})}).then(u=>u.json()).then(u=>{const p=u.data[0].items[0];if(p){const h=p.images.find(d=>a.includes(d.imageLabel));h!=null&&h.imageUrl?l(h.imageUrl):l(p.images[0].imageUrl)}}).catch(u=>{console.error(u)})},[c,t]),n.jsxs("div",{...s,className:m.helpers.classNameConcat(Fe["add-to-cart--card--style-size"],e),children:[n.jsx(m.ToggleStyle.Wrapper,{size:"x-small",style:i,children:n.jsx(m.ToggleStyle.Texture,{children:c?n.jsx(Be.Image,{alt:"",src:c??"",width:164,height:164,style:i}):n.jsx(Ql,{})})}),n.jsx(m.Utils.Divider,{direction:"vertical",size:"medium",style:{height:24}}),r&&n.jsxs(m.ToggleSize.Wrapper,{size:"small",title:"wrapper-texture",children:[n.jsx(m.ToggleSize.DisabledAdornment,{title:"disabled-adornment-texture"}),n.jsx(m.ToggleSize.Text,{children:r})]})]})};Zl.displayName="AddToCart.Card.StyleSize";const{helpers:uh}=js,Jl=({className:e,item:t,texture:r,...o})=>{const{itemOffered:{name:s,brand:a,skuName:i,isVariationOf:{productGroupID:c}},quantity:l,price:u,sellingPrice:p}=t,{CONSTANTS:{NAME_SPLIT_SYMBOL:h}}=yt(),{size:d}=uh.product.getColorAndSizeFromSkuName(i??s,h);return n.jsxs("div",{...o,className:m.helpers.classNameConcat(Fe["add-to-cart--card--content"],e),children:[n.jsx(Xl,{brand:a.name,name:s}),n.jsx(Yl,{price:u,listPrice:p,quantity:l,productId:t.id}),n.jsx(Zl,{size:d,texture:r,productGroupID:c})]})};Jl.displayName="AddToCart.Card.Content";const eu=({image:e,thumbnail:t=!1})=>n.jsx(Be.Image,{alt:e.alternateName??"image","data-thumbnail":t,height:t?152:120,src:e.url,width:t?152:94});eu.displayName="AddToCart.Card";const tu=({className:e,item:t,texture:r,thumbnail:o,...s})=>{const{itemOffered:{image:[a]}}=t,i=U.updatedResizedImg(a.url,{width:200,height:300});return n.jsxs("div",{...s,className:m.helpers.classNameConcat(Fe["add-to-cart--card"],e),children:[n.jsx(eu,{image:{alternateName:a.alternateName||"Produto",url:i||""},thumbnail:o}),!o&&n.jsx(Jl,{item:t,texture:r})]})};tu.displayName="AddToCart.Card";const ru=({className:e,children:t,title:r,...o})=>n.jsxs("div",{...o,className:m.helpers.classNameConcat(Fe["add-to-cart--content"],e),children:[n.jsx("div",{className:Fe["add-to-cart--content--title"],children:r&&n.jsx("h2",{children:r})}),t,n.jsx(ft.Footer,{})]});ru.displayName="AddToCart.Layout.Content";const nu=({className:e,...t})=>{var f,g;const{isMobile:r,handleClose:o,CONSTANTS:{ADD_TO_CART:s}}=yt(),{cartStore:{totalizers:a},setIsOpen:i}=Ee(),c=(f=a.find(_=>_.id==="Discounts"))==null?void 0:f.value,l=((g=a.find(_=>_.id==="Items"))==null?void 0:g.value)??0,u=a.find(_=>_.id==="Shipping"),h=(l-Math.abs(c??0)+((u==null?void 0:u.value)??0))/100,d=U.formatPriceToCurrency(h??0);return n.jsxs("div",{...t,className:m.helpers.classNameConcat(Fe["add-to-cart--footer"],e),children:[n.jsxs("div",{className:Fe["add-to-cart--footer--total"],children:[n.jsx("span",{children:"Subtotal:"}),n.jsx("span",{children:d})]}),n.jsx(m.Button,{size:"medium",variant:"primary","data-close":!0,onClick:()=>i(!0),children:s.footer.bag}),r?n.jsx(m.Button,{"data-close":!0,size:"medium",variant:"tertiary",children:s.footer.keep_buying}):n.jsx(m.Button,{onClick:()=>o(),size:"medium",variant:"tertiary",children:s.footer.keep_buying})]})};nu.displayName="AddToCart.Layout.Footer";const ou=({children:e,className:t,thumbnail:r=!1,...o})=>{const{cartStore:{options:s}}=Ee(),{recentlyAddedProducts:a}=Dt(),i=a.length>3?4:a.length;return n.jsxs("div",{...o,className:Fe["add-to-cart--items"],"data-thumbnail":r,children:[Array.isArray(a)&&a.filter((c,l)=>l<i).map(c=>{var u;const l=(u=s==null?void 0:s.find(p=>p.id===c.itemOffered.isVariationOf.productGroupID))==null?void 0:u.texture;return n.jsx(ft.Card,{item:c,thumbnail:r,texture:l},c.itemOffered.sku)}),e]})};ou.displayName="AddToCart.Layout.Items";const su=({children:e,Z_INDEX_WAR:t})=>{const{isOpen:r,setIsOpen:o}=yt(),{isMobile:s}=ce();return n.jsxs(m.Modal.Root,{"data-modal":"add-to-cart--modal",className:Fe["add-to-cart__modal"],isMobile:s??!1,isOpen:r,setIsOpen:o,variant:"sideBottom",style:{zIndex:t.modal},children:[n.jsx(m.Modal.Header,{navigation:"top",children:n.jsx(m.Modal.Controls,{navigation:"top",isMobile:!0})}),n.jsx(m.Modal.Body,{children:e})]})};su.displayName="AddToCart.Modal";const dh=({children:e})=>{const{count:t,handleClose:r,setIsOpen:o}=yt(),s=x.useRef(t);return x.useEffect(()=>{t>s.current&&o(!0),t<s.current&&s.current>=1&&r(),s.current=t},[t,r,o]),n.jsx(n.Fragment,{children:e})},au=({children:e,component:t,CONSTANTS:r,...o})=>{const{recentlyAddedProducts:s}=Dt(),{isMobile:a}=ce(),i=s.length>3?4:s.length;return n.jsx(al,{...o,count:i,isMobile:a,CONSTANTS:r,children:n.jsx(dh,{children:a?n.jsxs(n.Fragment,{children:[n.jsx(ft.Modal,{Z_INDEX_WAR:r.Z_INDEX_WAR,children:t}),e]}):n.jsx(ft.Tooltip,{component:t,style:{width:350},Z_INDEX_WAR:r.Z_INDEX_WAR,children:e})})})};au.displayName="AddToCart.Root";const iu=({children:e,component:t,Z_INDEX_WAR:r,...o})=>{const{contentRef:s,left:a,isLeaving:i,target:c,isOpen:l,top:u}=yt();return n.jsx(m.Tooltip.Root,{arrow:"top-right",component:n.jsx("div",{...o,ref:s,children:t}),id:"add-to-cart--tooltip",className:Fe["add-to-cart--tooltip"],style:{zIndex:r.modal},isLeaving:i,isOpen:l,left:a,size:"medium",position:"top",top:u,children:n.jsx("div",{className:Fe["add-to-cart--tooltip"],ref:c,children:e})})};iu.displayName="AddToCart.Tooltip";const ft={Card:tu,Content:ru,Footer:nu,Items:ou,Modal:su,Root:au,Tooltip:iu},Cs=({title:e,...t})=>{const{recentlyAddedProducts:r}=Dt(),{isMobile:o}=ce(),s=r.length>3?4:r.length,a=r.length>(s??1),i=r.length>1;return n.jsx(ft.Root,{isMobile:o,count:r.length,component:n.jsx(ft.Content,{title:e,children:n.jsx(ft.Items,{thumbnail:i,children:a&&n.jsx(m.Badge.Count,{count:r.length-s,size:"medium",variant:"secondary"})})}),...t})};Cs.displayName="AddToCart";const Ys={"backtotop-btn":"_backtotop-btn_1shb6_1","card-modifier":"_card-modifier_1shb6_27"},fh=({children:e,className:t,adornment:r,iconPosition:o,scrollToOptions:s,style:a,...i})=>{const c={top:(s==null?void 0:s.top)??0,left:(s==null?void 0:s.left)??0,behavior:(s==null?void 0:s.behavior)??"smooth"},u=o&&r?{flexDirection:{top:"column",bottom:"column-reverse",left:"row",right:"row-reverse"}[o]}:{},p=()=>{window&&window.document.body.scrollTo({...c})};return n.jsx(m.Card,{...i,shadow:!0,padding:"small",className:m.helpers.classNameConcat(Ys["card-modifier"],t),style:{...a,padding:0},children:n.jsxs("button",{className:Ys["backtotop-btn"],onClick:p,style:{...u},"data-orientation":o,children:[r,e]})})},ph="_container_1sy8s_16",nt={"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 o=Object.values(e.products).length;return n.jsxs("div",{className:nt["add-itens-to-cart-container"],children:[n.jsxs("div",{className:nt["add-itens-to-cart-container-values"],children:[n.jsx("div",{className:nt["add-itens-to-cart-qty-products"],children:n.jsx("span",{children:o===0?r.BUY_PACKAGE.group_cart.select_all_product:`${o} ${o===1?r.BUY_PACKAGE.group_cart.select_product:r.BUY_PACKAGE.group_cart.select_product+"s"}`})}),n.jsx("div",{className:nt["add-itens-to-cart-total"],children:n.jsx("span",{children:U.freightParsePrice({valueInCents:e.totalPrice*100,hasFree:!1,freeTaxMessage:r.FREIGHT_CALCULATION.messages.free_tax})})})]}),n.jsx(m.Button,{onClick:t,className:nt["add-button"],size:"large",disabled:o===0,variant:"primary",children:r.BUY_BUTTON_LABELS.add_to_cart})]})},hh=e=>e.reduce((t,r)=>{var s;const o=t.find(a=>a.node.id===r.node.id);if(!o)return[...t,r];if((s=o==null?void 0:o.node.isVariantOf)!=null&&s.hasVariant){const a=o.node.isVariantOf.hasVariant,i=r.node.isVariantOf.hasVariant;a&&i&&(o.node.isVariantOf.hasVariant=[...a,...i])}return t},[]),gh=({selectedProduct:e,productId:t,prevState:r,mainSellerId:o})=>{const{products:s,totalPrice:a}=r;try{if(!e){const{[t]:u,...p}=s;return{...r,totalPrice:a-u.price,products:p}}const i=U.getValidOffer(e.offers.offers,o);if(!i)return r;const c=i.seller.identifier,l=i.price;if(s[t]){const{price:u}=s[t];return s[t]={...s[t],price:l,id:e.sku,seller:c},{totalPrice:a+l-u,products:{...s}}}return{totalPrice:a+l,products:{...s,[t]:{id:e.sku,price:l,seller:c,productId:t}}}}catch(i){return console.error("Error handling SKU selection:",i),r}},cu=x.createContext({}),yh=({children:e,item:t,index:r,shelfTitle:o,...s})=>{const[a,i]=x.useState(null),c=x.useRef(null),l=x.useRef({availableSkus:[],priceInfo:{price:0,listPrice:0}}),{sendDataLayerEvent:u,itemListRef:p}=le(),h=_=>{u({functionKey:"productEvents",data:{commonData:{...t,availableSizes:l.current.availableSkus,...l.current.priceInfo},customData:{index:r+1},event:_}})},d=()=>{h("add_to_wishlist")},f=()=>{u({functionKey:"skuEvents",data:{event:"add_to_cart",commonData:{products:[{...t,...l.current.priceInfo}]},supportData:{selectedSku:a,selectedSkus:[a]},customData:{index:r}}})},g=()=>{o&&(p.current={item_list_name:o}),h("select_item")};return n.jsx(cu.Provider,{value:x.useMemo(()=>({...s,index:r,item:t,element:c,selectedSku:a,setSelectedSku:i,eventDataRef:l,sendAddToWishlistEvent:d,sendSelectItemEvent:g,sendAddToCartEvent:f}),[s,t,c,a]),children:e})},Ve=()=>{const e=x.useContext(cu);if(e===void 0)throw new Error("useProductCardContext must be used within a ProductCardProvider");return e},Ne={"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"},lu=({callback:e,children:t,className:r,data:o,isKit:s,...a})=>{const{item:{availability:{status:i},image:c}}=Ve();return i?n.jsxs("div",{...a,className:m.helpers.classNameConcat(Ne["product-card--actions"],r),children:[n.jsxs(ve.Wrapper,{type:"actions--group",children:[n.jsx(ve.Price,{}),n.jsx("div",{className:Ne["product-card--actions--selectors"],children:!s&&n.jsx(ve.StyleSelector,{data:o,images:c,callback:e})})]}),t]}):null};lu.displayName="ProductCard.Actions";const uu=({className:e,isKit:t,...r})=>{const{addToCart:o}=Ee(),{isMobile:s=!1,selectedSku:a,outStock:i,item:c,sendAddToCartEvent:l,CONSTANTS:u}=Ve(),p=()=>{var f;if(!a)return;const d=U.getValidOffer(a.offers.offers,u.StoreConfig_MainSellerId);d&&o({id:a==null?void 0:a.sku,quantity:1,seller:d.seller.identifier},{id:c.id,texture:(f=c==null?void 0:c.image.find(g=>u.TEXTURE_IMAGE.includes(g.alternateName)))==null?void 0:f.url}),l()},h=a?u.BUY_BUTTON_LABELS.add_to_cart:u.BUY_BUTTON_LABELS.select_size;return n.jsx(m.Button,{...r,className:m.helpers.classNameConcat(e,"buy-button"),disabled:!t&&!a&&!i,size:s?"medium":"large",variant:i?"secondary":"primary",onClick:i?r.onClick:p,children:i?"Avise-me quando chegar":h})};uu.displayName="ProductCard.Actions.BuyButton";const du=({product:e,tag:t,size:r="small"})=>{const o=e.offers.offers[0],{CONSTANTS:s,WishListToggle:a}=Ve();return n.jsxs(ve.Wrapper,{type:"header",style:{zIndex:s.Z_INDEX_WAR.product_card_header},children:[t?n.jsx(m.Tag,{title:t.value,adornment:{start:t.enableIcon&&t.icon?n.jsx(m.Icon,{name:t.icon,size:"small",style:{color:t.iconColor}}):null},size:r,variant:"quaternary",style:{background:t.tagColor,color:t.textColor},children:t.value}):null,s.PRODUCT_CARD_TOP_WISHLIST_TOGGLE&&n.jsx(a,{product:e,priceInfo:{price:o.price,listPrice:o.listPrice},variant:"card"})]})};du.displayName="ProductCard.Actions.Header";var fu=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Nr(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function _h(e){if(e.__esModule)return e;var t=e.default;if(typeof t=="function"){var r=function o(){return this instanceof o?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(o){var s=Object.getOwnPropertyDescriptor(e,o);Object.defineProperty(r,o,s.get?s:{enumerable:!0,get:function(){return e[o]}})}),r}var zo={exports:{}},ke={};ke._=ke._interop_require_default=vh;function vh(e){return e&&e.__esModule?e:{default:e}}var Jt={exports:{}},Ur={},Qs;function pu(){return Qs||(Qs=1,function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(i,c){for(var l in c)Object.defineProperty(i,l,{enumerable:!0,get:c[l]})}t(e,{searchParamsToUrlQuery:function(){return r},urlQueryToSearchParams:function(){return s},assign:function(){return a}});function r(i){const c={};return i.forEach((l,u)=>{typeof c[u]>"u"?c[u]=l:Array.isArray(c[u])?c[u].push(l):c[u]=[c[u],l]}),c}function o(i){return typeof i=="string"||typeof i=="number"&&!isNaN(i)||typeof i=="boolean"?String(i):""}function s(i){const c=new URLSearchParams;return Object.entries(i).forEach(l=>{let[u,p]=l;Array.isArray(p)?p.forEach(h=>c.append(u,o(h))):c.set(u,o(p))}),c}function a(i){for(var c=arguments.length,l=new Array(c>1?c-1:0),u=1;u<c;u++)l[u-1]=arguments[u];return l.forEach(p=>{Array.from(p.keys()).forEach(h=>i.delete(h)),p.forEach((h,d)=>i.append(d,h))}),i}}(Ur)),Ur}var Wr={},er={},Zs;function Ir(){if(Zs)return er;Zs=1;function e(r){if(typeof WeakMap!="function")return null;var o=new WeakMap,s=new WeakMap;return(e=function(a){return a?s:o})(r)}er._=er._interop_require_wildcard=t;function t(r,o){if(!o&&r&&r.__esModule)return r;if(r===null||typeof r!="object"&&typeof r!="function")return{default:r};var s=e(o);if(s&&s.has(r))return s.get(r);var a={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var c in r)if(c!=="default"&&Object.prototype.hasOwnProperty.call(r,c)){var l=i?Object.getOwnPropertyDescriptor(r,c):null;l&&(l.get||l.set)?Object.defineProperty(a,c,l):a[c]=r[c]}return a.default=r,s&&s.set(r,a),a}return er}var Js;function mu(){return Js||(Js=1,function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(l,u){for(var p in u)Object.defineProperty(l,p,{enumerable:!0,get:u[p]})}t(e,{formatUrl:function(){return a},urlObjectKeys:function(){return i},formatWithValidation:function(){return c}});const o=Ir()._(pu()),s=/https?|ftp|gopher|file/;function a(l){let{auth:u,hostname:p}=l,h=l.protocol||"",d=l.pathname||"",f=l.hash||"",g=l.query||"",_=!1;u=u?encodeURIComponent(u).replace(/%3A/i,":")+"@":"",l.host?_=u+l.host:p&&(_=u+(~p.indexOf(":")?"["+p+"]":p),l.port&&(_+=":"+l.port)),g&&typeof g=="object"&&(g=String(o.urlQueryToSearchParams(g)));let y=l.search||g&&"?"+g||"";return h&&!h.endsWith(":")&&(h+=":"),l.slashes||(!h||s.test(h))&&_!==!1?(_="//"+(_||""),d&&d[0]!=="/"&&(d="/"+d)):_||(_=""),f&&f[0]!=="#"&&(f="#"+f),y&&y[0]!=="?"&&(y="?"+y),d=d.replace(/[?#]/g,encodeURIComponent),y=y.replace("#","%23"),""+h+_+d+y+f}const i=["auth","hash","host","hostname","href","path","pathname","port","protocol","query","search","slashes"];function c(l){return process.env.NODE_ENV==="development"&&l!==null&&typeof l=="object"&&Object.keys(l).forEach(u=>{i.includes(u)||console.warn("Unknown key passed via urlObject into url.format: "+u)}),a(l)}}(Wr)),Wr}var Vr={},ea;function xh(){return ea||(ea=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"omit",{enumerable:!0,get:function(){return t}});function t(r,o){const s={};return Object.keys(r).forEach(a=>{o.includes(a)||(s[a]=r[a])}),s}}(Vr)),Vr}var Gr={},ta;function Tr(){return ta||(ta=1,function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(j,P){for(var E in P)Object.defineProperty(j,E,{enumerable:!0,get:P[E]})}t(e,{WEB_VITALS:function(){return r},execOnce:function(){return o},isAbsoluteUrl:function(){return a},getLocationOrigin:function(){return i},getURL:function(){return c},getDisplayName:function(){return l},isResSent:function(){return u},normalizeRepeatedSlashes:function(){return p},loadGetInitialProps:function(){return h},SP:function(){return d},ST:function(){return f},DecodeError:function(){return g},NormalizeError:function(){return _},PageNotFoundError:function(){return y},MissingStaticPage:function(){return b},MiddlewareNotFoundError:function(){return C},stringifyError:function(){return v}});const r=["CLS","FCP","FID","INP","LCP","TTFB"];function o(j){let P=!1,E;return function(){for(var S=arguments.length,R=new Array(S),T=0;T<S;T++)R[T]=arguments[T];return P||(P=!0,E=j(...R)),E}}const s=/^[a-zA-Z][a-zA-Z\d+\-.]*?:/,a=j=>s.test(j);function i(){const{protocol:j,hostname:P,port:E}=window.location;return j+"//"+P+(E?":"+E:"")}function c(){const{href:j}=window.location,P=i();return j.substring(P.length)}function l(j){return typeof j=="string"?j:j.displayName||j.name||"Unknown"}function u(j){return j.finished||j.headersSent}function p(j){const P=j.split("?");return P[0].replace(/\\/g,"/").replace(/\/\/+/g,"/")+(P[1]?"?"+P.slice(1).join("?"):"")}async function h(j,P){if(process.env.NODE_ENV!=="production"){var E;if((E=j.prototype)!=null&&E.getInitialProps){const T='"'+l(j)+'.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(T)}}const S=P.res||P.ctx&&P.ctx.res;if(!j.getInitialProps)return P.ctx&&P.Component?{pageProps:await h(P.Component,P.ctx)}:{};const R=await j.getInitialProps(P);if(S&&u(S))return R;if(!R){const T='"'+l(j)+'.getInitialProps()" should resolve to an object. But found "'+R+'" instead.';throw new Error(T)}return process.env.NODE_ENV!=="production"&&Object.keys(R).length===0&&!P.ctx&&console.warn(""+l(j)+" returned an empty object from `getInitialProps`. This de-optimizes and prevents automatic static optimization. https://nextjs.org/docs/messages/empty-object-getInitialProps"),R}const d=typeof performance<"u",f=d&&["mark","measure","getEntriesByName"].every(j=>typeof performance[j]=="function");class g extends Error{}class _ extends Error{}class y extends Error{constructor(P){super(),this.code="ENOENT",this.name="PageNotFoundError",this.message="Cannot find module for page: "+P}}class b extends Error{constructor(P,E){super(),this.message="Failed to load static file for page: "+P+" "+E}}class C extends Error{constructor(){super(),this.code="ENOENT",this.message="Cannot find the middleware module"}}function v(j){return JSON.stringify({message:j.message,stack:j.stack})}}(Gr)),Gr}var tr={exports:{}},Kr={},ra;function hu(){return ra||(ra=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(/\/$/,"")||"/"}}(Kr)),Kr}var Xr={},na;function Ss(){return na||(na=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"parsePath",{enumerable:!0,get:function(){return t}});function t(r){const o=r.indexOf("#"),s=r.indexOf("?"),a=s>-1&&(o<0||s<o);return a||o>-1?{pathname:r.substring(0,a?s:o),query:a?r.substring(s,o>-1?o:void 0):"",hash:o>-1?r.slice(o):""}:{pathname:r,query:"",hash:""}}}(Xr)),Xr}var oa;function Or(){return oa||(oa=1,function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"normalizePathTrailingSlash",{enumerable:!0,get:function(){return s}});const r=hu(),o=Ss(),s=a=>{if(!a.startsWith("/")||process.env.__NEXT_MANUAL_TRAILING_SLASH)return a;const{pathname:i,query:c,hash:l}=(0,o.parsePath)(a);return process.env.__NEXT_TRAILING_SLASH?/\.[^/]+\/?$/.test(i)?""+(0,r.removeTrailingSlash)(i)+c+l:i.endsWith("/")?""+i+c+l:i+"/"+c+l:""+(0,r.removeTrailingSlash)(i)+c+l};(typeof t.default=="function"||typeof t.default=="object"&&t.default!==null)&&typeof t.default.__esModule>"u"&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)}(tr,tr.exports)),tr.exports}var Yr={},rr={exports:{}},Qr={},sa;function gu(){return sa||(sa=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"pathHasPrefix",{enumerable:!0,get:function(){return r}});const t=Ss();function r(o,s){if(typeof o!="string")return!1;const{pathname:a}=(0,t.parsePath)(o);return a===s||a.startsWith(s+"/")}}(Qr)),Qr}var aa;function bh(){return aa||(aa=1,function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"hasBasePath",{enumerable:!0,get:function(){return s}});const r=gu(),o=process.env.__NEXT_ROUTER_BASEPATH||"";function s(a){return(0,r.pathHasPrefix)(a,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)}(rr,rr.exports)),rr.exports}var ia;function yu(){return ia||(ia=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"isLocalURL",{enumerable:!0,get:function(){return o}});const t=Tr(),r=bh();function o(s){if(!(0,t.isAbsoluteUrl)(s))return!0;try{const a=(0,t.getLocationOrigin)(),i=new URL(s,a);return i.origin===a&&(0,r.hasBasePath)(i.pathname)}catch{return!1}}}(Yr)),Yr}var Zr={},Jr={},ca;function jh(){return ca||(ca=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"getSortedRoutes",{enumerable:!0,get:function(){return r}});class t{insert(s){this._insert(s.split("/").filter(Boolean),[],!1)}smoosh(){return this._smoosh()}_smoosh(s){s===void 0&&(s="/");const a=[...this.children.keys()].sort();this.slugName!==null&&a.splice(a.indexOf("[]"),1),this.restSlugName!==null&&a.splice(a.indexOf("[...]"),1),this.optionalRestSlugName!==null&&a.splice(a.indexOf("[[...]]"),1);const i=a.map(c=>this.children.get(c)._smoosh(""+s+c+"/")).reduce((c,l)=>[...c,...l],[]);if(this.slugName!==null&&i.push(...this.children.get("[]")._smoosh(s+"["+this.slugName+"]/")),!this.placeholder){const c=s==="/"?"/":s.slice(0,-1);if(this.optionalRestSlugName!=null)throw new Error('You cannot define a route with the same specificity as a optional catch-all route ("'+c+'" and "'+c+"[[..."+this.optionalRestSlugName+']]").');i.unshift(c)}return this.restSlugName!==null&&i.push(...this.children.get("[...]")._smoosh(s+"[..."+this.restSlugName+"]/")),this.optionalRestSlugName!==null&&i.push(...this.children.get("[[...]]")._smoosh(s+"[[..."+this.optionalRestSlugName+"]]/")),i}_insert(s,a,i){if(s.length===0){this.placeholder=!1;return}if(i)throw new Error("Catch-all must be the last part of the URL.");let c=s[0];if(c.startsWith("[")&&c.endsWith("]")){let p=function(h,d){if(h!==null&&h!==d)throw new Error("You cannot use different slug names for the same dynamic path ('"+h+"' !== '"+d+"').");a.forEach(f=>{if(f===d)throw new Error('You cannot have the same slug name "'+d+'" repeat within a single dynamic path');if(f.replace(/\W/g,"")===c.replace(/\W/g,""))throw new Error('You cannot have the slug names "'+f+'" and "'+d+'" differ only by non-word symbols within a single dynamic path')}),a.push(d)},l=c.slice(1,-1),u=!1;if(l.startsWith("[")&&l.endsWith("]")&&(l=l.slice(1,-1),u=!0),l.startsWith("...")&&(l=l.substring(3),i=!0),l.startsWith("[")||l.endsWith("]"))throw new Error("Segment names may not start or end with extra brackets ('"+l+"').");if(l.startsWith("."))throw new Error("Segment names may not start with erroneous periods ('"+l+"').");if(i)if(u){if(this.restSlugName!=null)throw new Error('You cannot use both an required and optional catch-all route at the same level ("[...'+this.restSlugName+']" and "'+s[0]+'" ).');p(this.optionalRestSlugName,l),this.optionalRestSlugName=l,c="[[...]]"}else{if(this.optionalRestSlugName!=null)throw new Error('You cannot use both an optional and required catch-all route at the same level ("[[...'+this.optionalRestSlugName+']]" and "'+s[0]+'").');p(this.restSlugName,l),this.restSlugName=l,c="[...]"}else{if(u)throw new Error('Optional route parameters are not yet supported ("'+s[0]+'").');p(this.slugName,l),this.slugName=l,c="[]"}}this.children.has(c)||this.children.set(c,new t),this.children.get(c)._insert(s.slice(1),a,i)}constructor(){this.placeholder=!0,this.children=new Map,this.slugName=null,this.restSlugName=null,this.optionalRestSlugName=null}}function r(o){const s=new t;return o.forEach(a=>s.insert(a)),s.smoosh()}}(Jr)),Jr}var en={},la;function Ch(){return la||(la=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"isDynamicRoute",{enumerable:!0,get:function(){return r}});const t=/\/\[[^/]+?\](?=\/|$)/;function r(o){return t.test(o)}}(en)),en}var ua;function Sh(){return ua||(ua=1,function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(s,a){for(var i in a)Object.defineProperty(s,i,{enumerable:!0,get:a[i]})}t(e,{getSortedRoutes:function(){return r.getSortedRoutes},isDynamicRoute:function(){return o.isDynamicRoute}});const r=jh(),o=Ch()}(Zr)),Zr}var tn={},rn={},da;function Ph(){return da||(da=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"getRouteMatcher",{enumerable:!0,get:function(){return r}});const t=Tr();function r(o){let{re:s,groups:a}=o;return i=>{const c=s.exec(i);if(!c)return!1;const l=p=>{try{return decodeURIComponent(p)}catch{throw new t.DecodeError("failed to decode param")}},u={};return Object.keys(a).forEach(p=>{const h=a[p],d=c[h.pos];d!==void 0&&(u[p]=~d.indexOf("/")?d.split("/").map(f=>l(f)):h.repeat?[l(d)]:l(d))}),u}}}(rn)),rn}var nn={},on={},sn={},an={},fa;function wh(){return fa||(fa=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}}(an)),an}var cn={},pa;function Eh(){return pa||(pa=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(")")}}(cn)),cn}var ma;function Rh(){return ma||(ma=1,function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(i,c){for(var l in c)Object.defineProperty(i,l,{enumerable:!0,get:c[l]})}t(e,{normalizeAppPath:function(){return s},normalizeRscPath:function(){return a}});const r=wh(),o=Eh();function s(i){return(0,r.ensureLeadingSlash)(i.split("/").reduce((c,l,u,p)=>!l||(0,o.isGroupSegment)(l)||l[0]==="@"||(l==="page"||l==="route")&&u===p.length-1?c:c+"/"+l,""))}function a(i,c){return c?i.replace(/\.rsc($|\?)/,"$1"):i}}(sn)),sn}var ha;function Ah(){return ha||(ha=1,function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(i,c){for(var l in c)Object.defineProperty(i,l,{enumerable:!0,get:c[l]})}t(e,{INTERCEPTION_ROUTE_MARKERS:function(){return o},isInterceptionRouteAppPath:function(){return s},extractInterceptionRouteInformation:function(){return a}});const r=Rh(),o=["(..)(..)","(.)","(..)","(...)"];function s(i){return i.split("/").find(c=>o.find(l=>c.startsWith(l)))!==void 0}function a(i){let c,l,u;for(const p of i.split("/"))if(l=o.find(h=>p.startsWith(h)),l){[c,u]=i.split(l,2);break}if(!c||!l||!u)throw new Error(`Invalid interception route: ${i}. Must be in the format /<intercepting route>/(..|...|..)(..)/<intercepted route>`);switch(c=(0,r.normalizeAppPath)(c),l){case"(.)":c==="/"?u=`/${u}`:u=c+"/"+u;break;case"(..)":if(c==="/")throw new Error(`Invalid interception route: ${i}. Cannot use (..) marker at the root level, use (.) instead.`);u=c.split("/").slice(0,-1).concat(u).join("/");break;case"(...)":u="/"+u;break;case"(..)(..)":const p=c.split("/");if(p.length<=2)throw new Error(`Invalid interception route: ${i}. Cannot use (..)(..) marker at the root level or one level up.`);u=p.slice(0,-2).concat(u).join("/");break;default:throw new Error("Invariant: unexpected marker")}return{interceptingRoute:c,interceptedRoute:u}}}(on)),on}var ln={},ga;function Nh(){return ga||(ga=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"escapeStringRegexp",{enumerable:!0,get:function(){return o}});const t=/[|\\{}()[\]^$+*?.-]/,r=/[|\\{}()[\]^$+*?.-]/g;function o(s){return t.test(s)?s.replace(r,"\\$&"):s}}(ln)),ln}var ya;function Ih(){return ya||(ya=1,function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(_,y){for(var b in y)Object.defineProperty(_,b,{enumerable:!0,get:y[b]})}t(e,{getRouteRegex:function(){return u},getNamedRouteRegex:function(){return f},getNamedMiddlewareRegex:function(){return g}});const r=Ah(),o=Nh(),s=hu(),a="nxtP",i="nxtI";function c(_){const y=_.startsWith("[")&&_.endsWith("]");y&&(_=_.slice(1,-1));const b=_.startsWith("...");return b&&(_=_.slice(3)),{key:_,repeat:b,optional:y}}function l(_){const y=(0,s.removeTrailingSlash)(_).slice(1).split("/"),b={};let C=1;return{parameterizedRoute:y.map(v=>{const j=r.INTERCEPTION_ROUTE_MARKERS.find(E=>v.startsWith(E)),P=v.match(/\[((?:\[.*\])|.+)\]/);if(j&&P){const{key:E,optional:S,repeat:R}=c(P[1]);return b[E]={pos:C++,repeat:R,optional:S},"/"+(0,o.escapeStringRegexp)(j)+"([^/]+?)"}else if(P){const{key:E,repeat:S,optional:R}=c(P[1]);return b[E]={pos:C++,repeat:S,optional:R},S?R?"(?:/(.+?))?":"/(.+?)":"/([^/]+?)"}else return"/"+(0,o.escapeStringRegexp)(v)}).join(""),groups:b}}function u(_){const{parameterizedRoute:y,groups:b}=l(_);return{re:new RegExp("^"+y+"(?:/)?$"),groups:b}}function p(){let _=0;return()=>{let y="",b=++_;for(;b>0;)y+=String.fromCharCode(97+(b-1)%26),b=Math.floor((b-1)/26);return y}}function h(_){let{getSafeRouteKey:y,segment:b,routeKeys:C,keyPrefix:v}=_;const{key:j,optional:P,repeat:E}=c(b);let S=j.replace(/\W/g,"");v&&(S=""+v+S);let R=!1;return(S.length===0||S.length>30)&&(R=!0),isNaN(parseInt(S.slice(0,1)))||(R=!0),R&&(S=y()),v?C[S]=""+v+j:C[S]=""+j,E?P?"(?:/(?<"+S+">.+?))?":"/(?<"+S+">.+?)":"/(?<"+S+">[^/]+?)"}function d(_,y){const b=(0,s.removeTrailingSlash)(_).slice(1).split("/"),C=p(),v={};return{namedParameterizedRoute:b.map(j=>{const P=r.INTERCEPTION_ROUTE_MARKERS.some(S=>j.startsWith(S)),E=j.match(/\[((?:\[.*\])|.+)\]/);return P&&E?h({getSafeRouteKey:C,segment:E[1],routeKeys:v,keyPrefix:y?i:void 0}):E?h({getSafeRouteKey:C,segment:E[1],routeKeys:v,keyPrefix:y?a:void 0}):"/"+(0,o.escapeStringRegexp)(j)}).join(""),routeKeys:v}}function f(_,y){const b=d(_,y);return{...u(_),namedRegex:"^"+b.namedParameterizedRoute+"(?:/)?$",routeKeys:b.routeKeys}}function g(_,y){const{parameterizedRoute:b}=l(_),{catchAll:C=!0}=y;if(b==="/")return{namedRegex:"^/"+(C?".*":"")+"$"};const{namedParameterizedRoute:v}=d(_,!1);let j=C?"(?:(/.*)?)":"";return{namedRegex:"^"+v+j+"$"}}}(nn)),nn}var _a;function Th(){return _a||(_a=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"interpolateAs",{enumerable:!0,get:function(){return o}});const t=Ph(),r=Ih();function o(s,a,i){let c="";const l=(0,r.getRouteRegex)(s),u=l.groups,p=(a!==s?(0,t.getRouteMatcher)(l)(a):"")||i;c=s;const h=Object.keys(u);return h.every(d=>{let f=p[d]||"";const{repeat:g,optional:_}=u[d];let y="["+(g?"...":"")+d+"]";return _&&(y=(f?"":"/")+"["+y+"]"),g&&!Array.isArray(f)&&(f=[f]),(_||d in p)&&(c=c.replace(y,g?f.map(b=>encodeURIComponent(b)).join("/"):encodeURIComponent(f))||"/")})||(c=""),{params:h,result:c}}}(tn)),tn}var va;function Oh(){return va||(va=1,function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"resolveHref",{enumerable:!0,get:function(){return p}});const r=pu(),o=mu(),s=xh(),a=Tr(),i=Or(),c=yu(),l=Sh(),u=Th();function p(h,d,f){let g,_=typeof d=="string"?d:(0,o.formatWithValidation)(d);const y=_.match(/^[a-zA-Z]{1,}:\/\//),b=y?_.slice(y[0].length):_;if((b.split("?")[0]||"").match(/(\/\/|\\)/)){console.error("Invalid href '"+_+"' passed to next/router in page: '"+h.pathname+"'. Repeated forward-slashes (//) or backslashes \\ are not valid in the href.");const v=(0,a.normalizeRepeatedSlashes)(b);_=(y?y[0]:"")+v}if(!(0,c.isLocalURL)(_))return f?[_]:_;try{g=new URL(_.startsWith("#")?h.asPath:h.pathname,"http://n")}catch{g=new URL("/","http://n")}try{const v=new URL(_,g);v.pathname=(0,i.normalizePathTrailingSlash)(v.pathname);let j="";if((0,l.isDynamicRoute)(v.pathname)&&v.searchParams&&f){const E=(0,r.searchParamsToUrlQuery)(v.searchParams),{result:S,params:R}=(0,u.interpolateAs)(v.pathname,v.pathname,E);S&&(j=(0,o.formatWithValidation)({pathname:S,hash:v.hash,query:(0,s.omit)(E,R)}))}const P=v.origin===g.origin?v.href.slice(v.origin.length):v.href;return f?[P,j||P]:P}catch{return 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)}(Jt,Jt.exports)),Jt.exports}var nr={exports:{}},un={},dn={},xa;function _u(){return xa||(xa=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"addPathPrefix",{enumerable:!0,get:function(){return r}});const t=Ss();function r(o,s){if(!o.startsWith("/")||!s)return o;const{pathname:a,query:i,hash:c}=(0,t.parsePath)(o);return""+s+a+i+c}}(dn)),dn}var ba;function kh(){return ba||(ba=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"addLocale",{enumerable:!0,get:function(){return o}});const t=_u(),r=gu();function o(s,a,i,c){if(!a||a===i)return s;const l=s.toLowerCase();return!c&&((0,r.pathHasPrefix)(l,"/api")||(0,r.pathHasPrefix)(l,"/"+a.toLowerCase()))?s:(0,t.addPathPrefix)(s,"/"+a)}}(un)),un}var ja;function Mh(){return ja||(ja=1,function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"addLocale",{enumerable:!0,get:function(){return o}});const r=Or(),o=function(s){for(var a=arguments.length,i=new Array(a>1?a-1:0),c=1;c<a;c++)i[c-1]=arguments[c];return process.env.__NEXT_I18N_SUPPORT?(0,r.normalizePathTrailingSlash)(kh().addLocale(s,...i)):s};(typeof t.default=="function"||typeof t.default=="object"&&t.default!==null)&&typeof t.default.__esModule>"u"&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)}(nr,nr.exports)),nr.exports}var fn={},Ca;function vu(){return Ca||(Ca=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"RouterContext",{enumerable:!0,get:function(){return o}});const o=ke._(x).default.createContext(null);process.env.NODE_ENV!=="production"&&(o.displayName="RouterContext")}(fn)),fn}var pn={},Sa;function Lh(){return Sa||(Sa=1,function(e){"use client";Object.defineProperty(e,"__esModule",{value:!0});function t(u,p){for(var h in p)Object.defineProperty(u,h,{enumerable:!0,get:p[h]})}t(e,{CacheStates:function(){return s},AppRouterContext:function(){return a},LayoutRouterContext:function(){return i},GlobalLayoutRouterContext:function(){return c},TemplateContext:function(){return l}});const o=ke._(x);var s;(function(u){u.LAZY_INITIALIZED="LAZYINITIALIZED",u.DATA_FETCH="DATAFETCH",u.READY="READY"})(s||(s={}));const a=o.default.createContext(null),i=o.default.createContext(null),c=o.default.createContext(null),l=o.default.createContext(null);process.env.NODE_ENV!=="production"&&(a.displayName="AppRouterContext",i.displayName="LayoutRouterContext",c.displayName="GlobalLayoutRouterContext",l.displayName="TemplateContext")}(pn)),pn}var or={exports:{}},sr={exports:{}},Pa;function xu(){return Pa||(Pa=1,function(e,t){Object.defineProperty(t,"__esModule",{value:!0});function r(a,i){for(var c in i)Object.defineProperty(a,c,{enumerable:!0,get:i[c]})}r(t,{requestIdleCallback:function(){return o},cancelIdleCallback:function(){return s}});const o=typeof self<"u"&&self.requestIdleCallback&&self.requestIdleCallback.bind(window)||function(a){let i=Date.now();return self.setTimeout(function(){a({didTimeout:!1,timeRemaining:function(){return Math.max(0,50-(Date.now()-i))}})},1)},s=typeof self<"u"&&self.cancelIdleCallback&&self.cancelIdleCallback.bind(window)||function(a){return clearTimeout(a)};(typeof t.default=="function"||typeof t.default=="object"&&t.default!==null)&&typeof t.default.__esModule>"u"&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)}(sr,sr.exports)),sr.exports}var wa;function Dh(){return wa||(wa=1,function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"useIntersection",{enumerable:!0,get:function(){return u}});const r=x,o=xu(),s=typeof IntersectionObserver=="function",a=new Map,i=[];function c(p){const h={root:p.root||null,margin:p.rootMargin||""},d=i.find(y=>y.root===h.root&&y.margin===h.margin);let f;if(d&&(f=a.get(d),f))return f;const g=new Map,_=new IntersectionObserver(y=>{y.forEach(b=>{const C=g.get(b.target),v=b.isIntersecting||b.intersectionRatio>0;C&&v&&C(v)})},p);return f={id:h,observer:_,elements:g},i.push(h),a.set(h,f),f}function l(p,h,d){const{id:f,observer:g,elements:_}=c(d);return _.set(p,h),g.observe(p),function(){if(_.delete(p),g.unobserve(p),_.size===0){g.disconnect(),a.delete(f);const b=i.findIndex(C=>C.root===f.root&&C.margin===f.margin);b>-1&&i.splice(b,1)}}}function u(p){let{rootRef:h,rootMargin:d,disabled:f}=p;const g=f||!s,[_,y]=(0,r.useState)(!1),b=(0,r.useRef)(null),C=(0,r.useCallback)(j=>{b.current=j},[]);(0,r.useEffect)(()=>{if(s){if(g||_)return;const j=b.current;if(j&&j.tagName)return l(j,E=>E&&y(E),{root:h==null?void 0:h.current,rootMargin:d})}else if(!_){const j=(0,o.requestIdleCallback)(()=>y(!0));return()=>(0,o.cancelIdleCallback)(j)}},[g,d,h,_,b.current]);const v=(0,r.useCallback)(()=>{y(!1)},[]);return[C,_,v]}(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)}(or,or.exports)),or.exports}var ar={exports:{}},ir={exports:{}},mn={},Ea;function $h(){return Ea||(Ea=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"normalizeLocalePath",{enumerable:!0,get:function(){return t}});function t(r,o){let s;const a=r.split("/");return(o||[]).some(i=>a[1]&&a[1].toLowerCase()===i.toLowerCase()?(s=i,a.splice(1,1),r=a.join("/")||"/",!0):!1),{pathname:r,detectedLocale:s}}}(mn)),mn}var Ra;function zh(){return Ra||(Ra=1,function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"normalizeLocalePath",{enumerable:!0,get:function(){return r}});const r=(o,s)=>process.env.__NEXT_I18N_SUPPORT?$h().normalizeLocalePath(o,s):{pathname:o,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)}(ir,ir.exports)),ir.exports}var cr={exports:{}},hn={},Aa;function Bh(){return Aa||(Aa=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"detectDomainLocale",{enumerable:!0,get:function(){return t}});function t(r,o,s){if(r){s&&(s=s.toLowerCase());for(const c of r){var a,i;const l=(a=c.domain)==null?void 0:a.split(":")[0].toLowerCase();if(o===l||s===c.defaultLocale.toLowerCase()||(i=c.locales)!=null&&i.some(u=>u.toLowerCase()===s))return c}}}}(hn)),hn}var Na;function Fh(){return Na||(Na=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 o=arguments.length,s=new Array(o),a=0;a<o;a++)s[a]=arguments[a];if(process.env.__NEXT_I18N_SUPPORT)return Bh().detectDomainLocale(...s)};(typeof t.default=="function"||typeof t.default=="object"&&t.default!==null)&&typeof t.default.__esModule>"u"&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)}(cr,cr.exports)),cr.exports}var Ia;function qh(){return Ia||(Ia=1,function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"getDomainLocale",{enumerable:!0,get:function(){return s}});const r=Or(),o=process.env.__NEXT_ROUTER_BASEPATH||"";function s(a,i,c,l){if(process.env.__NEXT_I18N_SUPPORT){const u=zh().normalizeLocalePath,p=Fh().detectDomainLocale,h=i||u(a,c).detectedLocale,d=p(l,void 0,h);if(d){const f="http"+(d.http?"":"s")+"://",g=h===d.defaultLocale?"":"/"+h;return""+f+d.domain+(0,r.normalizePathTrailingSlash)(""+o+g+a)}return!1}else return!1}(typeof t.default=="function"||typeof t.default=="object"&&t.default!==null)&&typeof t.default.__esModule>"u"&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)}(ar,ar.exports)),ar.exports}var lr={exports:{}},Ta;function Hh(){return Ta||(Ta=1,function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"addBasePath",{enumerable:!0,get:function(){return a}});const r=_u(),o=Or(),s=process.env.__NEXT_ROUTER_BASEPATH||"";function a(i,c){return(0,o.normalizePathTrailingSlash)(process.env.__NEXT_MANUAL_CLIENT_BASE_PATH&&!c?i:(0,r.addPathPrefix)(i,s))}(typeof t.default=="function"||typeof t.default=="object"&&t.default!==null)&&typeof t.default.__esModule>"u"&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)}(lr,lr.exports)),lr.exports}var ur={exports:{}},Oa;function Uh(){return Oa||(Oa=1,function(e,t){Object.defineProperty(t,"__esModule",{value:!0});function r(h,d){for(var f in d)Object.defineProperty(h,f,{enumerable:!0,get:d[f]})}r(t,{PrefetchKind:function(){return p},ACTION_REFRESH:function(){return o},ACTION_NAVIGATE:function(){return s},ACTION_RESTORE:function(){return a},ACTION_SERVER_PATCH:function(){return i},ACTION_PREFETCH:function(){return c},ACTION_FAST_REFRESH:function(){return l},ACTION_SERVER_ACTION:function(){return u}});const o="refresh",s="navigate",a="restore",i="server-patch",c="prefetch",l="fast-refresh",u="server-action";var p;(function(h){h.AUTO="auto",h.FULL="full",h.TEMPORARY="temporary"})(p||(p={})),(typeof t.default=="function"||typeof t.default=="object"&&t.default!==null)&&typeof t.default.__esModule>"u"&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)}(ur,ur.exports)),ur.exports}(function(e,t){"use client";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return P}});const o=ke._(x),s=Oh(),a=yu(),i=mu(),c=Tr(),l=Mh(),u=vu(),p=Lh(),h=Dh(),d=qh(),f=Hh(),g=Uh(),_=new Set;function y(E,S,R,T,w,N){if(typeof window>"u"||!N&&!(0,a.isLocalURL)(S))return;if(!T.bypassPrefetchedCheck){const z=typeof T.locale<"u"?T.locale:"locale"in E?E.locale:void 0,O=S+"%"+R+"%"+z;if(_.has(O))return;_.add(O)}const I=N?E.prefetch(S,w):E.prefetch(S,R,T);Promise.resolve(I).catch(z=>{if(process.env.NODE_ENV!=="production")throw z})}function b(E){const R=E.currentTarget.getAttribute("target");return R&&R!=="_self"||E.metaKey||E.ctrlKey||E.shiftKey||E.altKey||E.nativeEvent&&E.nativeEvent.which===2}function C(E,S,R,T,w,N,I,z,O,W){const{nodeName:q}=E.currentTarget;if(q.toUpperCase()==="A"&&(b(E)||!O&&!(0,a.isLocalURL)(R)))return;E.preventDefault();const V=()=>{const G=I??!0;"beforePopState"in S?S[w?"replace":"push"](R,T,{shallow:N,locale:z,scroll:G}):S[w?"replace":"push"](T||R,{forceOptimisticNavigation:!W,scroll:G})};O?o.default.startTransition(V):V()}function v(E){return typeof E=="string"?E:(0,i.formatUrl)(E)}const P=o.default.forwardRef(function(S,R){let T;const{href:w,as:N,children:I,prefetch:z=null,passHref:O,replace:W,shallow:q,scroll:F,locale:V,onClick:G,onMouseEnter:B,onTouchStart:J,legacyBehavior:A=!1,...k}=S;T=I,A&&(typeof T=="string"||typeof T=="number")&&(T=o.default.createElement("a",null,T));const D=o.default.useContext(u.RouterContext),X=o.default.useContext(p.AppRouterContext),ne=D??X,ee=!D,L=z!==!1,te=z===null?g.PrefetchKind.AUTO:g.PrefetchKind.FULL;if(process.env.NODE_ENV!=="production"){let ae=function(se){return new Error("Failed prop type: The prop `"+se.key+"` expects a "+se.expected+" in `<Link>`, but got `"+se.actual+"` instead."+(typeof window<"u"?`
2
- Open your browser's console to view the Component stack trace.`:""))};Object.keys({href:!0}).forEach(se=>{if(se==="href"&&(S[se]==null||typeof S[se]!="string"&&typeof S[se]!="object"))throw ae({key:se,expected:"`string` or `object`",actual:S[se]===null?"null":typeof S[se]})}),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(se=>{const Y=typeof S[se];if(se==="as"){if(S[se]&&Y!=="string"&&Y!=="object")throw ae({key:se,expected:"`string` or `object`",actual:Y})}else if(se==="locale"){if(S[se]&&Y!=="string")throw ae({key:se,expected:"`string`",actual:Y})}else if(se==="onClick"||se==="onMouseEnter"||se==="onTouchStart"){if(S[se]&&Y!=="function")throw ae({key:se,expected:"`function`",actual:Y})}else if((se==="replace"||se==="scroll"||se==="shallow"||se==="passHref"||se==="prefetch"||se==="legacyBehavior")&&S[se]!=null&&Y!=="boolean")throw ae({key:se,expected:"`boolean`",actual:Y})});const Q=o.default.useRef(!1);S.prefetch&&!Q.current&&!ee&&(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"&&ee&&!N){let ae;if(typeof w=="string"?ae=w:typeof w=="object"&&typeof w.pathname=="string"&&(ae=w.pathname),ae&&ae.split("/").some(K=>K.startsWith("[")&&K.endsWith("]")))throw new Error("Dynamic href `"+ae+"` 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:Z,as:re}=o.default.useMemo(()=>{if(!D){const K=v(w);return{href:K,as:N?v(N):K}}const[ae,_e]=(0,s.resolveHref)(D,w,!0);return{href:ae,as:N?(0,s.resolveHref)(D,N):_e||ae}},[D,w,N]),$=o.default.useRef(Z),M=o.default.useRef(re);let oe;if(A)if(process.env.NODE_ENV==="development"){G&&console.warn('"onClick" was passed to <Link> with `href` of `'+w+'` but "legacyBehavior" was set. The legacy behavior requires onClick be set on the child of next/link'),B&&console.warn('"onMouseEnter" was passed to <Link> with `href` of `'+w+'` but "legacyBehavior" was set. The legacy behavior requires onMouseEnter be set on the child of next/link');try{oe=o.default.Children.only(T)}catch{throw T?new Error("Multiple children were passed to <Link> with `href` of `"+w+"` but only one child is supported https://nextjs.org/docs/messages/link-multiple-children"+(typeof window<"u"?`
1
+ "use strict";var Dp=Object.defineProperty;var $p=(e,t,r)=>t in e?Dp(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r;var Vr=(e,t,r)=>$p(e,typeof t!="symbol"?t+"":t,r);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const n=require("react/jsx-runtime"),x=require("react"),W=require("./index-CwBIv223.js"),Qe=require("idb-keyval"),ht=require("zustand"),Lo=require("js-cookie"),m=require("@soma-vertical-web/core-components"),ft=require("axios"),zp=require("jose"),St=require("@soma-vertical-web/foundations"),ns=require("react-dom"),Ke=require("draft-js"),Gs=require("@date-fns/tz"),lc=require("react-intersection-observer"),os=x.createContext({}),Bp=({data:e,children:t})=>n.jsx(os.Provider,{value:{tags:e==null?void 0:e.config},children:t}),rt=()=>{const{tags:e}=x.useContext(os),t=x.useCallback(r=>{var a,c,l,u;const o=(c=(a=e==null?void 0:e.commercial)==null?void 0:a.items)==null?void 0:c.find(f=>{var h;return(h=r??[])==null?void 0:h.find(d=>d.id===f.key)}),s=(u=(l=e==null?void 0:e.institucional)==null?void 0:l.items)==null?void 0:u.find(f=>{var h;return(h=r??[])==null?void 0:h.find(d=>d.id===f.key)}),i=e==null?void 0:e.flagPdp;return{commercial:o,institucional:s,flagPdp:i}},[e]);return{tags:e,getAvailableProductTag:t}},uc=({gridScrollBack:e})=>{x.useEffect(()=>{typeof window<"u"&&(e!=null&&e.refer)&&sessionStorage.setItem(e==null?void 0:e.refer,"true")},[])},dc=x.createContext({}),Fp=({children:e,gridScrollBack:t})=>{const r=x.useRef(null);return uc({gridScrollBack:t}),n.jsx(dc.Provider,{value:{sizesContainerRef:r},children:e})},fc=()=>{const e=x.useContext(dc);if(e===void 0)throw new Error("useContext(PDPContext) must be used within a PDPProvider");return e},st=({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})},Se={configs:{PLP_FILTERS:[{key:"",label:"",eventLabel:"",order:0}],currency:"BRL",categoryOff:"bazar",storeUrl:"https://www.example.com",MAIN_IMAGE:"1",NAME_SPLIT_SYMBOL:"-",VENDOR_CODE:""},productEvents:(e,t)=>{const{event:r,commonData:o,customData:s,promotionInfo:i,itemList:a,outsideEcommerceData:c}=e,{availableSizes:l,sizes:u,price:f}=o,h={...r==="view_item"?{currency:Se.configs.currency,value:f,grade_disponivel:l??(u?pc(u):"")}:{},...r==="add_to_wishlist"||r==="remove_from_wishlist"?{value:f,currency:Se.configs.currency}:{}},d=rr({data:o,customData:{...s,...a,...i},configs:Se.configs});st({event:r,data:{...c,ecommerce:{...a,...h,items:[d]}}}),typeof t=="function"&&t(d,h)},productListEvent:e=>{const{commonData:{products:t},promotionInfo:r,itemList:o,outsideEcommerceData:s,customData:i}=e;if(t.length===0)return;const a=t.map(({node:c},l)=>rr({data:{...c},customData:{...r,index:l,...i!=null&&i.item_list_name?{item_list_name:i==null?void 0:i.item_list_name}:o},configs:Se.configs}));st({event:"view_item_list",data:{...s,ecommerce:{...i!=null&&i.item_list_name?{item_list_name:i==null?void 0:i.item_list_name}:o,items:a}}})},skuEvents:e=>{const{event:t,commonData:{products:r},customData:o,supportData:{selectedSkus:s,price:i},promotionInfo:a,itemList:c,outsideEcommerceData:l}=e;let u=0;const f=r.map(h=>{var y,_,b,C,v,j,P,E,S;const d=s==null?void 0:s.find(R=>(h.productId??h.id)===R.productId);let p={...a,...c};if(d){const R=hc(),T=gc(R,d);T&&(p={...p,...T}),t==="add_to_cart"&&(a||c)&&Mo({persistedData:R,type:"add",sku:(d==null?void 0:d.id)??(d==null?void 0:d.sku),newData:{promotionInfo:a,itemList:c}}),t==="remove_from_cart"&&Mo({persistedData:R,type:"remove",sku:(d==null?void 0:d.id)??(d==null?void 0:d.sku)})}u+=h.price??((b=(_=(y=d==null?void 0:d.offers)==null?void 0:y.offers)==null?void 0:_[0])==null?void 0:b.price)??0;const g=(d==null?void 0:d.size)??W.getColorAndSizeFromSkuName((d==null?void 0:d.skuName)??(d==null?void 0:d.name)??((C=h.itemOffered)==null?void 0:C.skuName),Se.configs.NAME_SPLIT_SYMBOL).size;return rr({data:h,customData:{...o,...p??{...a,...c},item_sku:(d==null?void 0:d.id)??(d==null?void 0:d.sku)??((v=h.itemOffered)==null?void 0:v.sku),quantity:(o==null?void 0:o.quantity)??h.quantity??1,item_variant2:g,seller_id:(d==null?void 0:d.sellerId)??(d==null?void 0:d.seller)??((S=(E=(P=(j=d==null?void 0:d.offers)==null?void 0:j.offers)==null?void 0:P[0])==null?void 0:E.seller)==null?void 0:S.identifier)??h.seller},configs:Se.configs})});st({event:t,data:{...l,ecommerce:{value:i??u,currency:Se.configs.currency,items:f}}})},filterEvent:e=>{var a;const{commonData:t,customData:r,outsideEcommerceData:o}=e,s={},i={};Array.isArray(t==null?void 0:t.selectedFacets)&&((a=t==null?void 0:t.selectedFacets)!=null&&a.length)&&((t==null?void 0:t.selectedFacets).forEach(({key:c,value:l})=>{var h;const u=((h=Se.configs.PLP_FILTERS.find(d=>d.key===c))==null?void 0:h.eventLabel)??c,f=(s==null?void 0:s[u])||[];u==="price_range"&&l.replace(":","-"),s[u]=[...f,l]}),Object.keys(s).forEach(c=>i[c]=s[c].join(", "))),st({event:"filter",data:{...o,...i,...r}})},viewCartEvent:e=>{var f,h,d,p,g,y,_,b,C,v;const{commonData:t,outsideEcommerceData:r}=e,{cartStore:o}=t;if(!o)return;const s=window.localStorage.getItem("persistedCartEventsData"),i=s?JSON.parse(s):{},a=o.items.map(j=>{const{promotionInfo:P,itemList:E}=i[j.id]??{};return rr({data:{...j,price:j.price/100,listPrice:j.listPrice/100},customData:{...P,...E,item_sku:j.id??j.itemOffered.sku,quantity:j.quantity??1},configs:Se.configs})}),c=(((f=o.totalizers.find(j=>j.name==="Total dos Itens"))==null?void 0:f.value)??0)/100,l=(((h=o.totalizers.find(j=>j.name==="Total dos Descontos"))==null?void 0:h.value)??0)/100,u=((d=o.marketingData)==null?void 0:d.utmiCampaign)===Se.configs.VENDOR_CODE?(p=o.marketingData)==null?void 0:p.utmCampaign:(y=String((g=o.openTextField)==null?void 0:g.value))==null?void 0:y.split(" - ")[0];st({event:"view_cart",data:{...r,ecommerce:{currency:Se.configs.currency,value:c+l,total_discount:Math.abs(l),cep_preenchido:!!((b=(_=o.shippingData)==null?void 0:_.address)!=null&&b.postalCode),...u?{seller_coupon_name:u}:{},...((C=o.marketingData)==null?void 0:C.coupon)&&{sale_coupon_name:(v=o.marketingData)==null?void 0:v.coupon},subtotal:c,items:a}}})},readyEvents:e=>{const{event:t,readyData:r}=e;st({event:t,data:{...r}})}},pc=e=>e.reduce((t,r)=>(r.available&&t.push(r.value),t),[]).toString(),qp=e=>{const t=e.length;return{...e&&e.length>0?{item_category:e[0].includes(Se.configs.categoryOff)?"Bazar":"Coleção",...e[1]?{item_category2:e[1]}:{},...t>2?{item_category3:e[t-1]}:{}}:{}}},rr=({data:e,customData:t,configs:r})=>({...Hp(e,r==null?void 0:r.MAIN_IMAGE),...Up(e),...Wp(e),...Vp(e),...t}),mc=()=>{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("_"))??[]:[]},hc=()=>{const e=window.localStorage.getItem("persistedCartEventsData");return e?JSON.parse(e):null},gc=(e,t)=>e==null?void 0:e[t],Mo=({persistedData:e,type:t,sku:r,newData:o})=>{if(!e&&t==="add"){window.localStorage.setItem("persistedCartEventsData",JSON.stringify({[r]:o}));return}if(e&&t==="add"){window.localStorage.setItem("persistedCartEventsData",JSON.stringify({...e,[r]:o}));return}e&&t==="remove"&&(delete e[r],window.localStorage.setItem("persistedCartEventsData",JSON.stringify(e)))},Hp=(e,t="1")=>{var i,a,c,l,u,f,h,d,p,g,y;const r=e.productReference??e.gtin??e.productRefId,o=e.image??((a=(i=e.items)==null?void 0:i[0])==null?void 0:a.images)??((c=e.itemOffered)==null?void 0:c.image),s=o==null?void 0:o.find(_=>_.alternateName===t||_.imageLabel===t||_.keywords===t);return{item_id:e.productId??((l=e.isVariantOf)==null?void 0:l.productGroupID)??((u=e.isVariationOf)==null?void 0:u.productGroupID)??((h=(f=e.itemOffered)==null?void 0:f.isVariationOf)==null?void 0:h.productGroupID),item_ref:/_\d$/.test(r)?r.slice(0,-2):r,item_name:e.productTitle??e.productName??e.name??W.splitNameAndSizeFromFullName((d=e.itemOffered)==null?void 0:d.name,Se.configs.NAME_SPLIT_SYMBOL).name,item_brand:((p=e.brand)==null?void 0:p.brandName)??((g=e.brand)==null?void 0:g.name)??e.brand??((y=e.itemOffered)==null?void 0:y.brand.name),item_url:`${Se.configs.storeUrl}${e.linkText}/p`,item_image:(s==null?void 0:s.url)??(s==null?void 0:s.imageUrl)}},Ks=e=>Array.isArray(e)?e.reduce((t,r)=>(r.length>t.length&&(t=r),t),""):e,Up=e=>{var u,f;const{categories:t,categoriesIds:r}=e,o=t??((u=e.itemOffered)==null?void 0:u.categories),s=r??((f=e.itemOffered)==null?void 0:f.categoriesIds),i=Ks(o),a=Ks(s),c=i.slice(1,-1).split("/"),l=a.slice(1,-1).split("/");return{item_category:c[0].toLowerCase().includes(Se.configs.categoryOff)?"Bazar":"Coleção",...c[1]&&{item_category2:c[1]},...c.length>2&&{item_category3:c[c.length-1]},item_category_id:l[l.length-1],...l.length>1&&{item_parent_category_id:l[l.length-2]}}},Wp=e=>{var s,i,a,c,l,u;const t=((s=e.itemOffered)==null?void 0:s.skuName)??((c=(a=(i=e.isVariantOf)==null?void 0:i.hasVariant)==null?void 0:a[0])==null?void 0:c.name)??((u=(l=e.items)==null?void 0:l[0])==null?void 0:u.name),{color:r,size:o}=W.getColorAndSizeFromSkuName(t,Se.configs.NAME_SPLIT_SYMBOL);return{item_variant:r,...e.itemOffered&&{item_variant2:o}}},Vp=e=>{var l,u;const{price:t,listPrice:r,installments:o}=e,s=t??((l=e.offers)==null?void 0:l.lowPrice)??0,i=r??((u=e.offers)==null?void 0:u.highPrice)??0,a=i?i-s:0,c=a%1===0?a:Number(a.toFixed(2));return{...t&&{price:s??i},...i&&{list_price:i,discount:c},...o&&{installments:o==null?void 0:o.count,installment_value:o==null?void 0:o.value},item_currency:Se.configs.currency}},yc=()=>{const[e,t]=mc(),[r,o]=e.split("-"),s=r.includes("shop")||r.includes("sale")?r:"";return{page_category:s&&o?o:"",page_departament:s,id:t,name:e}},Gp=Object.freeze(Object.defineProperty({__proto__:null,eventsFunctions:Se,findDataInPersistedData:gc,getAvailablesSizes:pc,getCategories:qp,getPageCategoryAndDepartmentFromSlug:yc,getPersistedData:hc,getProductListInfoFromHead:mc,pushDatalayer:st,updatePersistedData:Mo},Symbol.toStringTag,{value:"Module"})),_c=x.createContext({}),Kp=({children:e,evtFunctionsConfigs:t})=>{const r=x.useRef({}),o=x.useRef(null),s=x.useRef(null),i=x.useRef({}),a=x.useRef({trigger:!1,index:0}),c=({functionKey:f,data:h,callBack:d,timeout:p=100})=>{window.dataLayer||(window.dataLayer=[]),Se.configs=t;try{typeof Se[f]=="function"&&setTimeout(()=>{var g;h.promotionInfo=r.current,(g=s.current)!=null&&g.item_list_name&&(h.itemList=s.current),Se[f](h,d)},p)}catch(g){st({event:"error_event",data:{error_message:(g==null?void 0:g.message)??g}})}},l=({content:f})=>{c({functionKey:"readyEvents",data:{event:"select_content",readyData:{content_type:f.replace("::",":")}}})},u=({updatePromotionRef:f,promotion:h,index:d})=>{f&&(r.current={...h}),c({functionKey:"readyEvents",data:{event:"select_promotion",readyData:{ecommerce:{...h,...d!==void 0&&{index:d}}}}})};return n.jsx(_c.Provider,{value:{sendDataLayerEvent:c,triggerSelectItemEventRef:a,promotionEventRef:r,currentLocalRef:o,itemListRef:s,cartProductsFullDataRef:i,handleSelectContent:l,handleSelectPromotionEvent:u},children:e})},ce=()=>x.useContext(_c),vc=x.createContext({}),Xp=({children:e,productData:t,isKit:r,PDP_INFO:o,NAME_SPLIT_SYMBOL:s,TEXTURE_IMAGE:i})=>{var k,U;const{sendDataLayerEvent:a,triggerSelectItemEventRef:c}=ce(),{productId:l,productName:u,items:f,items:[{images:h,Videos:d}],description:p,["Composição"]:g="",productReference:y,categories:[_]}=t,{getAvailableProductTag:b}=rt(),C=b(Object.entries(t.clusterHighlights).map(q=>({id:q[0],name:q[1]}))),v=_.slice(1,-1).split("/"),{installments:j,price:P,listPrice:E,sizes:S,allSizesAvailable:R}=W.getSkuInfos({items:f,NAME_SPLIT_SYMBOL:s}),T=W.getThumbImage({images:h,TEXTURE_IMAGE:i}),w=[{label:`${o.product.description}`,value:"description",content:p},{label:`${o.product.materiais}`,value:"composition",content:g}],I=((U=W.getColorAndSizeFromSkuName((k=t.items)==null?void 0:k[0].name,s))==null?void 0:U.color)??t["Cores Filtráveis"][0]??"",N=()=>({commonData:{...t,sizes:S,price:P,listPrice:E,installments:j},customData:{installments:j==null?void 0:j.count,installment_value:Number(j==null?void 0:j.value).toFixed(2)}}),z=({sku:q,size:B})=>{const{commonData:V,customData:G}=N();a({functionKey:"productEvents",data:{event:"view_item",commonData:V,customData:{...G,...q&&{item_sku:q},...B&&{item_variant2:B}}}})};return x.useEffect(()=>{if(c.current.trigger){const{commonData:q,customData:B}=N();a({functionKey:"productEvents",data:{event:"select_item",commonData:q,customData:{...B,index:c.current.index}}}),c.current.trigger=!1}z({})},[]),n.jsx(vc.Provider,{value:{productData:t,productId:l,productName:u,productReference:y,tag:C,items:f,sizes:S,allSizesAvailable:R,installments:j,price:P,listPrice:E,thumbImage:T,images:h,video:d[0],descriptionContent:w,breadcrumbList:v,isKit:r,colorName:I,handleViewItemEvent:z},children:e})},$e=()=>{const e=x.useContext(vc);if(e===void 0)throw new Error("useContext(PDPDataContext) must be used within a PDPDataProvider");return e},Yp=()=>{const[e,t]=x.useState(null);return[e,async o=>{if(!(navigator!=null&&navigator.clipboard))return console.warn("Clipboard not supported"),!1;try{return await navigator.clipboard.writeText(o),t(o),!0}catch(s){return console.warn("Copy failed",s),t(null),!1}}]},xc=()=>{x.useEffect(()=>{const e=t=>{t.preventDefault()};return document.addEventListener("gesturestart",e),document.addEventListener("gesturechange",e),document.addEventListener("dblclick",e),document.addEventListener("wheel",t=>{t.ctrlKey&&e(t)}),()=>{document.removeEventListener("gesturestart",e),document.removeEventListener("gesturechange",e),document.removeEventListener("dblclick",e),document.removeEventListener("wheel",e)}},[])},Qp=typeof window>"u",Zp=(e,t)=>{const[r,o]=x.useState(()=>{if(Qp)return null;const i=localStorage.getItem(e);return i===null?t:JSON.parse(i||"{}")});return x.useEffect(()=>{const i=a=>{a.storageArea===localStorage&&a.key===e&&o(JSON.parse(a.newValue))};return window.addEventListener("storage",i),()=>{window.removeEventListener("storage",i)}},[e,t]),[r,i=>{o(a=>{const c=typeof i=="function"?i(a):i;return localStorage.setItem(e,JSON.stringify(c)),c})}]};function ss(e,t,r){const[o,s]=x.useState(!1),{threshold:i}=r||{};return x.useEffect(()=>{if(!e.current)return()=>null;let a=null;const c=new IntersectionObserver(([l])=>{if(r!=null&&r.delay){a&&clearTimeout(a),a=setTimeout(()=>{s(l.isIntersecting),t&&l.isIntersecting&&c.unobserve(e.current)},r.delay);return}s(l.isIntersecting),t&&l.isIntersecting&&c.unobserve(e.current)},{threshold:i||1});return c.observe(e.current),()=>{c.disconnect()}},[e]),o}const Rr=({callback:e,onEnterViewportOnce:t,options:r})=>{const o=x.useRef(null);return x.useEffect(()=>{const s=o.current;if(!s)return;const i=new IntersectionObserver(([a])=>{a.isIntersecting&&typeof e=="function"&&(e(),t&&(i.unobserve(s),i.disconnect()))},r);return i.observe(s),()=>{t&&i.unobserve(s),i.disconnect()}},[e,t,r]),{element:o}},bc=({defaultScale:e=1,maxScale:t=3})=>{const r=x.useRef(null),o=x.useRef(null),[s,i]=x.useState(e),a=x.useRef(0),c=x.useRef({x:0,y:0}),l=x.useRef({x:0,y:0}),u=()=>{if(!o.current||!r.current)return{minX:0,maxX:0,minY:0,maxY:0};const p=r.current.getBoundingClientRect(),g=o.current.children[0].getBoundingClientRect(),y=g.width,_=g.height,b=Math.min(0,(p.width-y)/2),C=Math.max(0,(y-p.width)/2),v=Math.min(0,(p.height-_)/2),j=Math.max(0,(_-p.height)/2);return{minX:b,maxX:C,minY:v,maxY:j}},f=(p,g,y)=>{if(o.current){const _=o.current.children[0];_&&requestAnimationFrame(()=>{_.style.transform=`translate(calc(-50% + ${p}px), calc(-50% + ${g}px)) scale(${y})`})}},h=x.useCallback(p=>{const{minX:g,maxX:y,minY:_,maxY:b}=u(),{x:C,y:v}=l.current,j=Math.max(g,Math.min(y,C)),P=Math.max(_,Math.min(b,v));if(p.touches.length>1){const E=p.touches[0],S=p.touches[1],R=E.pageX-S.pageX,T=E.pageY-S.pageY;a.current=Math.sqrt(R*R+T*T),c.current={x:(E.pageX+S.pageX)/2,y:(E.pageY+S.pageY)/2}}else p.touches.length===1&&(c.current={x:p.touches[0].pageX-j,y:p.touches[0].pageY-P})},[s,l]),d=x.useCallback(p=>{if(!o.current||!r.current)return;const{minX:g,maxX:y,minY:_,maxY:b}=u();if(p.touches.length>1){p.preventDefault();const C=p.touches[0],v=p.touches[1],j=C.pageX-v.pageX,P=C.pageY-v.pageY,E=Math.sqrt(j*j+P*P);if(!a.current){a.current=E;return}const S=E/a.current,R=Math.max(1,Math.min(t,s*S));if(s===R)return;i(R);const T=(C.pageX+v.pageX)/2,w=(C.pageY+v.pageY)/2;let I=T-c.current.x,N=w-c.current.y;I=Math.max(g,Math.min(y,I)),N=Math.max(_,Math.min(b,N)),l.current={x:I,y:N},a.current=E,f(I,N,R)}else if(p.touches.length===1){const C=p.touches[0].pageX,v=p.touches[0].pageY;let j=C-c.current.x,P=v-c.current.y;j=Math.max(g,Math.min(y,j)),P=Math.max(_,Math.min(b,P)),l.current={x:j,y:P},f(j,P,s)}},[t,s]);return x.useEffect(()=>(document.addEventListener("touchstart",h),document.addEventListener("touchmove",d,{passive:!1}),()=>{document.removeEventListener("touchstart",h),document.removeEventListener("touchmove",d)}),[d,h]),{containerRef:r,imgRef:o,scale:s}},Jp={attachment:"ATTACHMENT",specification:"SPECIFICATION",attribute:"ATTRIBUTE"},qe=Promise.resolve(!1),Do={id:"",isOpen:!1,items:[],loading:!1,marketingData:null,messages:[],openTextField:{},paymentData:null,shippingData:null,totalizers:[],itemMetadata:[],recentlyAddedProducts:[],addCoupon:()=>qe,addItem:()=>qe,addSellerCode:()=>qe,addMarketingData:()=>qe,emptyCart:()=>{},removeItem:()=>qe,setIsOpen:()=>{},shipping:()=>qe,shippingUpdate:()=>qe,toggleServiceToProduct:()=>qe,updateItemQuantity:()=>qe,insertProfileEmail:()=>qe,setRecentlyAddedProducts:()=>{}},is=e=>e===0,jc=(e,t)=>{if(!e||e.length===0)return[];let r="";const o=[],s=e.match(/\d+/g)??[];for(const i of s){const a=t[Number(i)];a&&(r+=(r?"/":"")+a,o.push(r))}return o},Cc=(e,t)=>{const{availability:r,additionalInfo:{brandName:o},bundleItems:s,id:i,uniqueId:a,detailUrl:c,ean:l,imageUrl:u,name:f,listPrice:h,quantity:d,price:p,priceDefinition:g,productCategories:y,productCategoryIds:_,productId:b,refId:C,seller:v,referenceId:j,offerings:P,productRefId:E,skuName:S,sellingPrice:R}=e;return{availability:r,bundleItems:s,referenceId:j,productRefId:E,id:i,ean:l,uniqueId:a,itemOffered:{additionalProperty:[],brand:{name:o},categories:jc(_,y),categoriesIds:_,gtin:C,image:[{alternateName:(t==null?void 0:t.MAIN_IMAGE)??"1",url:u}],name:f,isVariationOf:{name:f,productGroupID:b},sku:i,slug:c,skuName:S},listPrice:h,quantity:d,offerings:P,price:p,priceDefinition:g,sellingPrice:R,seller:v}},Sc=(e,t)=>{const r=e.map(o=>({id:o.id,quantity:o.quantity,seller:o.seller}));return Array.isArray(t)?[...r,...t]:[...r,t]},Pc=(e,t)=>{const r=e.find(o=>o.id===t);if(r){const o=e.map((s,i)=>{var a,c;return{id:((a=s.itemOffered)==null?void 0:a.sku)??"",index:i,quantity:(r==null?void 0:r.id)===((c=s.itemOffered)==null?void 0:c.sku)?0:s.quantity,seller:s.seller??""}});return{updateItems:o,filterItems:o.filter(s=>s.id!==t)}}return{updateItems:[],filterItems:[]}},wc=(e,t,r)=>e.filter(o=>o.availability!=="withoutStock"&&o.availability!=="https://schema.org/OutOfStock").map((o,s)=>{var i,a;return o.id===t?{id:o.id,index:s,quantity:r,seller:o.seller,sku:((i=o.itemOffered)==null?void 0:i.sku)??""}:{id:o.id,index:s,quantity:o.quantity,seller:o.seller,sku:((a=o.itemOffered)==null?void 0:a.sku)??""}}),$o=(e,t)=>e.filter(r=>r.availability!=="withoutStock").findIndex(({id:r})=>r===t),em=(e,t)=>{var r;return Array.isArray(e)?(((r=e==null?void 0:e.find(o=>{var s;return((s=o==null?void 0:o.id)==null?void 0:s.toLowerCase())===t}))==null?void 0:r.value)??0)/100:0},tm=e=>{const t=e.reduce((s,i)=>{const a=is(i.price)?0:i.quantity;return s+a},0),r=e.reduce((s,i)=>s+i.price*i.quantity,0),o=e.reduce((s,i)=>s+i.listPrice*i.quantity,0);return{totalItems:t,total:r,subTotal:o}},rm=e=>Array.isArray(e)?e.filter(t=>t.availability!=="withoutStock").reduce((t,r)=>t+(is(r==null?void 0:r.price)?0:r.quantity),0):0,Ec=(e,t)=>{const{items:r,itemMetadata:o,marketingData:s,messages:i,orderFormId:a,openTextField:c,paymentData:l,shippingData:u,totalizers:f}=e;return{id:a,itemMetadata:o,items:Array.isArray(r)?r.map(h=>Cc(h,t)):[],marketingData:s,messages:i,openTextField:c,paymentData:l,shippingData:u,totalizers:f}},Rc=(e,t)=>{const r=e.find(o=>o.id===t);return r?r.availability==="unavailableItemFulfillment":!1},nm=(e,t)=>{const r=e.sku,o=e.isVariantOf.hasVariant.find(s=>s.sku===r);return o?o.name.split(t)[1]:"--"},bt=(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},om=(e,t)=>{const r=new Set;return[e,...t].filter(o=>!r.has(o)&&r.add(o),r)},Ac=(e,t)=>t&&Array.isArray(t)&&t.find(o=>o.id===e)?Promise.resolve(e):Promise.resolve(!1),Ic=(e,t)=>t?Promise.resolve(e[t]):Promise.resolve(!1),Nc=async e=>{try{const t=await e();if(typeof t!="boolean")return t}catch(t){console.error(`[Error orderForm]: ${t}`)}return!1},Tc=(e,t)=>{if(t!==-1){const r=Number(e);return r?r+1:1}return e??1},Oc=(e,t)=>Array.isArray(e)?e.filter(r=>t==null?void 0:t.some(o=>o.id===r.id)):[],kc=async(e,t)=>e.then(r=>[...r??[],...t??[]]),Oe=async(e,t,r,o)=>{const{priority:s="auto",body:i}=t;return fetch(e,{headers:{"Content-Type":"application/json"},priority:s,method:"POST",body:JSON.stringify(i)}).then(async a=>{const c=await a.json();return r?c:Ec(c,o)})},Lc=(e,t,r)=>({notifications:[...e.notifications,{id:Date.now(),message:t,callback:r}]}),Mc=e=>[...Array.isArray(e)?e:[e],"faststore"],Dc=e=>{const t=e.get("utm_source")||ut("utm_source"),r=e.get("utm_campaign")||ut("utm_campaign"),o=e.get("utm_medium")||ut("utm_medium"),s=e.get("utmi_cp")||ut("utmi_cp"),i=e.get("utmi_pc")||ut("utmi_pc"),a=e.get("utmi_p")||ut("utmi_p");return{...t&&{utmSource:t},...o&&{utmMedium:o},...r&&{utmCampaign:r},...s&&{utmiCampaign:s},...i&&{utmiPart:i},...a&&{utmipage:a}}},ut=e=>{if(!e||typeof window>"u")return;const t=window.location.href;e=e.replace(/[[\]]/g,"\\$&");const r=new RegExp("[?&]"+e+"(=([^&#]*)|&|#|$)"),o=r.exec(t);return o?o[2]?decodeURIComponent(o[2].replace(/\+/g," ")):"":null},sm=Object.freeze(Object.defineProperty({__proto__:null,VALUE_REFERENCES:Jp,addItemOrder:Sc,addNotification:Lc,createItemOrder:Cc,fetchCartAPI:Oe,findItemIndex:$o,findOptions:Oc,findTotalizerValue:em,getCategories:jc,getCode:bt,getQuantity:Tc,getRemoveId:Ac,getSize:nm,getTotalItems:rm,getTotalizer:tm,getUrlParameter:ut,getValue:Ic,initialState:Do,isGift:is,marketingTagsBuilder:Mc,mergeOptionsPromise:kc,mountMarketingData:Dc,orderFormValues:Ec,promiseDefault:qe,removeQuantity:Pc,updateItemSellerExternal:Rc,updateOrderFormPromise:Nc,updateQuantity:wc,wishlistArray:om},Symbol.toStringTag,{value:"Module"})),im=()=>{const e=async(p,g)=>Oe("/api/checkout/order-form/coupon",{body:{orderFormId:p,coupon:g}}),t=async(p,g)=>{if(g){const y=g.includes(" - ")?g.split(" - ")[0]:g,_=await Oe("/api/checkout/order-form/seller-code",{body:{orderFormId:p,sellerCode:y}},!0);return _ instanceof Object&&"nome"in _&&(_==null?void 0:_.status)===!0?Oe("/api/checkout/order-form/attachments",{body:{orderFormId:p,sellerCode:y,sellerName:_.nome}}).then(C=>({...C,openTextField:{...(C==null?void 0:C.openTextField)??{},statusOk:!0}})):Promise.resolve({paymentData:null,openTextField:{statusOk:!1,value:y}})}else return Oe("/api/checkout/order-form/attachments",{body:{orderFormId:p,sellerCode:"",sellerName:""}})},r=async(p,g)=>Oe("/api/checkout/order-form/attachments/marketing-data",{body:{orderFormId:p,marketingData:g}}),o=async(p,g,y)=>Oe("/api/checkout/order-form/items",{body:{orderFormId:p,orderItems:Sc(g,y)}}),s=async(p,g,y,_=!1)=>Oe("/api/checkout/order-form/offerings",{body:{id:g,itemIndex:y,orderFormId:p,remove:_}}),i=async p=>Oe("/api/checkout/order-form/items/remove-all",{body:{orderFormId:p}}),a=async(p,g="low")=>Oe("/api/checkout/order-form",{priority:g,body:{orderFormId:p??""}}),c=async(p,g)=>Oe("/api/checkout/order-form/profile",{body:{orderFormId:p,email:g}}),l=async(p,g,y)=>{const _=Pc(g,y);return Oe("/api/checkout/order-form/items/update",{body:{orderItems:_.updateItems,orderFormId:p}})},u=async(p,g,y)=>Oe("/api/checkout/order-form/shipping",{body:{orderFormId:p,country:y,postalCode:g}}),f=async(p,g,y)=>Oe("/api/checkout/order-form/shipping/update",{body:{orderFormId:p,options:g,selectedAddresses:y}}),h=async(p,g,y,_)=>{const b=wc(g,y,_);return Oe("/api/checkout/order-form/items/update",{body:{orderFormId:p,orderItems:b}})};return{addCoupon:e,addItem:o,addSellerCode:t,addMarketingData:r,giftItem:s,emptyCart:i,getOrderForm:a,insertProfileEmail:c,removeItem:l,shipping:u,shippingUpdate:f,updateItemQuantity:async(p,g,y,_,b)=>h(p,g,y,_).then(C=>C&&Array.isArray(C.items)?Rc(C.items,y)?h(p,g,y,b):C:!1)}},zo="soma::cart",Mt="soma::options",wt=ht.create((e,t)=>{const r=im(),o=async(s,i,a)=>{e({loading:!0});const c=await Nc(s);if(typeof c!="boolean"){e({...c});const l=await kc(Qe.get(Mt),a);return Qe.set(Mt,l),Ic(c,i).finally(()=>e({loading:!1,options:l}))}return qe};if(typeof window<"u"){const s=async i=>{if(i){const a=await Qe.get(Mt).then(u=>Oc(u,i.items));Qe.set(zo,i),Qe.set(Mt,a),e({...i,options:a});const c=new URLSearchParams(window.location.search),l=c.get("utm_campaign")||c.get("utmi_campaign")||"";l&&o(()=>r.addSellerCode(t().id,l.toUpperCase()),"openTextField")}};return Qe.get(zo).then(i=>r.getOrderForm(i?i.id:"").then(s)),{...Do,addCoupon:async i=>o(()=>r.addCoupon(t().id,i),"marketingData"),addItem:(i,a)=>{o(()=>r.addItem(t().id,t().items,i),"items",a)},addSellerCode:async i=>o(()=>r.addSellerCode(t().id,i),"openTextField"),addMarketingData:async i=>o(()=>r.addMarketingData(t().id,i),"marketingData"),emptyCart:()=>{o(()=>r.emptyCart(t().id))},removeItem:async i=>{const a=await o(()=>r.removeItem(t().id,t().items,i),"items");return Ac(i,a)},shipping:async(i,a="BR")=>o(()=>r.shipping(t().id,i??"",a),"shippingData"),shippingUpdate:async i=>o(()=>{var a;return r.shippingUpdate(t().id,i,(a=t().shippingData)==null?void 0:a.selectedAddresses)},"shippingData"),toggleServiceToProduct:async(i,a,c)=>o(()=>r.giftItem(t().id,i,a,c),"items"),updateItemQuantity:async(i,a,c)=>{const{id:l,items:u}=t();return o(()=>{var f;return r.updateItemQuantity(l,u,i,a,((f=u.find(h=>h.id===i))==null?void 0:f.quantity)??1)},"items",c?[c]:void 0)},insertProfileEmail:async i=>o(()=>r.insertProfileEmail(t().id,i),"clientProfileData"),setIsOpen:i=>e({isOpen:i})}}return Do}),am=()=>wt(e=>e),$c=ht.create(e=>({notifications:[],actions:{addNotification:(t,r)=>e(o=>Lc(o,t,r)),removeNotification:t=>e(r=>({notifications:r.notifications.filter(o=>o.id!==t)}))}})),as=()=>$c(e=>e.notifications),cs=()=>$c(e=>e.actions),cm=Object.freeze(Object.defineProperty({__proto__:null,KEY_INDEXED_OPTIONS:Mt,KEY_INDEXED_STORE:zo,useCartStore:wt,useGetCartStoreState:am,useGetNotificationActions:cs,useGetNotificationsStore:as},Symbol.toStringTag,{value:"Module"})),lm=6e3,zc=x.createContext({}),Bc=({children:e,...t})=>{const{items:r}=wt(),[o,s]=x.useState([]),i=x.useRef(null),a=x.useMemo(()=>Array.isArray(o)&&o.length>0?o.map(c=>r.find(l=>l.id===c.id)).filter(c=>c!==void 0):[],[r,o]);return x.useEffect(()=>{o.length&&(clearTimeout(i.current??0),i.current=setTimeout(()=>{s([])},lm))},[o]),n.jsx(zc.Provider,{value:x.useMemo(()=>({...t,setRecentlyAdded:s,recentlyAddedProducts:a}),[t,s,a]),children:e})},qt=()=>{const e=x.useContext(zc);if(e===void 0)throw new Error("useUIContext must be used within a UIProvider");return e};class Fc{constructor(){Vr(this,"events",{});Vr(this,"prevData",{})}subscribe(t,r){return this.events[t]||(this.events[t]=[]),this.events[t].push(r),()=>{this.events[t]=this.events[t].filter(o=>o!==r)}}publish(t,r){this.events[t]&&this.events[t].forEach(o=>{this.prevData[t]=r,o(r)})}}const qc=x.createContext({}),um=({children:e,headerConfigs:t,pathname:r,...o})=>{const[s,i]=x.useState(!0),[a,c]=x.useState(!1),l=r==="/",u=x.useRef(new Fc),f=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},h=f(l),d=x.useRef(h);return x.useEffect(()=>{var y;const p=((y=new URLSearchParams(window.location.search))==null?void 0:y.toString())??"";(p.includes("utm_")||p.includes("gclid"))&&(Lo.get("lastMedias")||Lo.set("lastMedias",`${p}`,{expires:1/24}));const g=()=>{const _=typeof(window==null?void 0:window.navigator)>"u"?"":navigator==null?void 0:navigator.userAgent,b=window.innerWidth<1024||!!_.match(/Android|BlackBerry|iPhone|iPad|iPod|Opera Mini|IEMobile|WPDesktop/i);a||c(!0),s!==b&&(i(b),c(!0))};return a||g(),window.addEventListener("resize",g,{passive:!0}),()=>window.removeEventListener("resize",g)},[s,a]),x.useEffect(()=>{const p=f(l);u.current.publish("header:change_variant",p.headerVariant),u.current.publish("header:change_position",p.position),d.current=p},[l]),n.jsx(qc.Provider,{value:{isMobile:s,mediatorRef:u,currentHeaderConfigsRef:d,deviceValidated:a,...o},children:n.jsx(Bc,{children:e})})},le=()=>x.useContext(qc),Hc=x.createContext({}),dm=({children:e,...t})=>n.jsx(Hc.Provider,{value:{...t},children:e}),xe=()=>x.useContext(Hc),gt=(e,t)=>ht.create(r=>{const o=()=>r({value:e});return t&&t instanceof Set&&t.add(o),{value:e,actions:{setValue:s=>r({value:s}),reset:o}}}),Bt={category:null,menuMobileIsOpen:!1,searchModalIsOpen:!1,userMenuIsOpen:!1},Ht=new Set,fm=()=>{Ht.forEach(e=>{e()})},Uc=ht.create((e,t)=>{const r=()=>e({value:Bt.category});return Ht.add(r),{value:Bt.category,actions:{reset:r,setValue:o=>e(()=>({value:o})),updateValue:o=>{t().value!==o&&e({value:o})}}}}),Ar=()=>Uc(e=>e.value),lt=()=>Uc(e=>e.actions),Wc=gt(Bt.menuMobileIsOpen,Ht),ls=()=>Wc(e=>e.value),yt=()=>Wc(e=>e.actions),Vc=gt(Bt.searchModalIsOpen,Ht),pm=()=>Vc(e=>e.value),us=()=>Vc(e=>e.actions),Gc=gt(Bt.userMenuIsOpen,Ht),Kc=()=>Gc(e=>e.value),Ut=()=>Gc(e=>e.actions),mm=Object.freeze(Object.defineProperty({__proto__:null,resetAllHeaderStores:fm,useActionsHeaderCategory:lt,useActionsMenuMobileIsOpen:yt,useActionsSearchModalIsOpen:us,useActionsUserMenuIsOpen:Ut,useGetHeaderCategoryStore:Ar,useGetMenuMobileIsOpen:ls,useGetSearchModalIsOpen:pm,useGetUserMenuIsOpen:Kc},Symbol.toStringTag,{value:"Module"})),Et={selectedSkuInfo:{productId:"",name:"",size:"",sku:"",sellerId:"",sellerName:"",available:!1,quantity:1},openLetMeKnow:!1,openMeasurements:!1,showBottomNavigation:!1,showNotify:!1},At=new Set,hm=()=>{At.forEach(e=>{e()})},Xc=ht.create(e=>{const t=()=>e({value:Et.selectedSkuInfo});return At.add(t),{value:Et.selectedSkuInfo,actions:{setValue:r=>e(o=>({value:{...o,...r}})),reset:t}}}),Wt=()=>Xc(e=>e.value),Yc=()=>Xc(e=>e.actions),Qc=gt(Et.openLetMeKnow,At),gm=()=>Qc(e=>e.value),ym=()=>Qc(e=>e.actions),Zc=gt(Et.showNotify,At),Jc=()=>Zc(e=>e.value),ds=()=>Zc(e=>e.actions),el=gt(Et.showBottomNavigation,At),_m=()=>el(e=>e.value),vm=()=>el(e=>e.actions),tl=gt(Et.openMeasurements,At),rl=()=>tl(e=>e.value),nl=()=>tl(e=>e.actions),xm=Object.freeze(Object.defineProperty({__proto__:null,resetAllPDPStores:hm,useActionsPDPOpenLetMeKnow:ym,useActionsPDPOpenMeasurements:nl,useActionsPDPSelectedSkuInfo:Yc,useActionsPDPShowBottomNavigation:vm,useActionsPDPShowNotify:ds,useGetPDPOpenLetMeKnow:gm,useGetPDPOpenMeasurements:rl,useGetPDPSelectedSkuInfo:Wt,useGetPDPShowBottomNavigation:_m,useGetPDPShowNotify:Jc},Symbol.toStringTag,{value:"Module"})),Xs={feedback:{active:!1,action:"add"},list:[]},fs=ht.create((e,t)=>({value:Xs,actions:{reset:()=>e({value:Xs}),setValue:o=>e(()=>({value:o})),toggleProduct:o=>e(s=>s.value.list.includes(o)?{value:{feedback:{active:!0,action:"remove"},list:s.value.list.filter(i=>i!==o)}}:{value:{feedback:{active:!0,action:"add"},list:[...s.value.list,o]}}),updateList:o=>e(s=>({value:{...s.value,list:o}})),resetFeedback:()=>e(o=>({value:{...o.value,feedback:{active:!1,action:""}}}))}})),It=()=>fs(e=>e.value.list),ps=()=>fs(e=>e.value.feedback),_t=()=>fs(e=>e.actions),bm=Object.freeze(Object.defineProperty({__proto__:null,useActionsWishlistStore:_t,useGetWishlistFeedbackStore:ps,useGetWishlistStore:It},Symbol.toStringTag,{value:"Module"})),ol=x.createContext({}),jm=({children:e,headerData:t,...r})=>{var f,h;const o=x.useRef(null),s=x.useRef(null),i=x.useRef(null),a=x.useRef(null),c=x.useRef(null),{mediatorRef:l,currentHeaderConfigsRef:u}=le();return(f=l.current)==null||f.subscribe("header:change_variant",d=>{var b,C,v;if(d&&u.current&&(u.current.bannerVariant=d),!o.current)return;const g=document.body.scrollTop>0,y=o.current.getAttribute("data-interactiveVariant"),_=g?y:d??((b=u.current)==null?void 0:b.bannerVariant)??"default";_!==((C=u.current)==null?void 0:C.headerVariant)&&(o.current.setAttribute("data-bottomdivider",String(g)),o.current.setAttribute("data-variant",String(_)),(v=l.current)==null||v.publish("herobanner:change_controllers_variant",_),u.current&&(u.current.headerVariant=_))}),(h=l.current)==null||h.subscribe("header:change_position",d=>{o.current&&(o.current.style.position=d)}),x.useEffect(()=>{const d=new AbortController,p=m.helpers.throttle(()=>{var y;return(y=l.current)==null?void 0:y.publish("header:change_variant",null)},200);document.body.addEventListener("scroll",p,{passive:!0,signal:d.signal});const g=y=>{var b;(b=y.target.closest("a"))==null||b.blur()};return o.current&&(o.current.addEventListener("click",g,{signal:d.signal}),o.current.addEventListener("touchend",g,{signal:d.signal})),()=>{d.abort()}},[]),n.jsx(ol.Provider,{value:{headerData:t,structureRef:s,rootRef:o,tipbarRef:i,userMenuMobileRef:a,userMenuDesktopRef:c,...r},children:e})},je=()=>x.useContext(ol),sl=x.createContext({}),il=({children:e})=>{const t=x.useRef(null),r=x.useRef(null),o=ls(),s=x.useCallback(()=>{var i;{const a=(i=t.current)==null?void 0:i.querySelector("dialog");if(a){a.dataset.animation="out";const c=a.children[0];c.dataset.animation="out"}}},[]);return x.useEffect(()=>{var i;if(o)document.body.dataset.modalopen="true";else{document.body.dataset.modalopen="false";const a=(i=r.current)==null?void 0:i.querySelector("dialog");if(a){a.dataset.animation="out";const c=a.children[0];c.dataset.animation="out"}}},[o]),x.useEffect(()=>{r.current=document.body},[]),n.jsx(sl.Provider,{value:{bodyRef:t,handleCloseSubMenu:s,documentBodyRef:r},children:e})},Vt=()=>x.useContext(sl),Cm=e=>{if(!e||typeof window>"u")return 0;const t=window.getComputedStyle(e);return parseInt(t.padding,10)},Sm=(e,t,r)=>{if(!(e instanceof HTMLElement)||!(t instanceof HTMLElement))return{left:0,top:0};const o=t.getBoundingClientRect(),s=e.getBoundingClientRect(),i=e!=null&&e.parentElement?Cm(e==null?void 0:e.parentElement):0;return{left:o.left+o.width/2-(s.width+i),top:o.top+o.height+r}},al=x.createContext({}),cl=({children:e,delay:t=600,gap:r=20,...o})=>{const[s,i]=x.useState(!1),a=x.useRef(null),[c,l]=x.useState(!1),[u,f]=x.useState({left:0,top:0}),h=x.useCallback(()=>{l(!0),typeof window<"u"&&(a.current=window.setTimeout(()=>{i(!1),l(!1)},t))},[l,i,t]);return x.useEffect(()=>{if(typeof window>"u")return;const d=window.document.querySelector("#cart-button"),p=window.document.querySelector("#add-to-cart--tooltip");if(d&&p){const{left:g,top:y}=Sm(p,d,r??0);f({left:g,top:y}),l(!1)}},[r,s]),n.jsx(al.Provider,{value:x.useMemo(()=>({...o,...u,handleClose:h,isLeaving:c,isOpen:s,setIsOpen:i,setIsLeaving:l}),[o,u,h,c,s,i,l]),children:e})},vt=()=>{const e=x.useContext(al);if(e===void 0)throw new Error("useAddToCartContext must be used within a AddToCartProvider");return e},ll=x.createContext({}),Pm=({children:e,CARTPROVIDER_MESSAGE_PRODUCT_REMOVE:t,...r})=>{const o=wt(),{setRecentlyAdded:s}=qt(),i=x.useRef(""),a=as(),{addNotification:c,removeNotification:l}=cs(),{addCoupon:u,addItem:f,addSellerCode:h,addMarketingData:d,emptyCart:p,isOpen:g,removeItem:y,shipping:_,shippingUpdate:b,toggleServiceToProduct:C,updateItemQuantity:v}=o;x.useEffect(()=>{const B=Lo.get("lastMedias");if(o.id&&B&&i.current!==B){i.current=B;const V=new URLSearchParams(B),G=Dc(V);d(G)}},[o,d]);const j=x.useCallback(async(B,V)=>(V==="coupon"?u(B):h(B)).then(F=>{if(typeof F!="boolean"&&F instanceof Object){if(V==="seller"&&"value"in F){const{statusOk:J,value:A}=F,O=String(A??"").split(" - ");return bt((O==null?void 0:O[0])??"",B,!!J)}return bt(String(F.coupon),B,!0)}return bt("","")}).catch(()=>Promise.resolve({code:400})),[u,h]),P=x.useCallback((B,V,G)=>{const{id:F}=B;v(F,V,G)},[v]),E=x.useCallback((B,V,G=!1)=>{if(!B)return;const{id:F}=B,J=$o(o.items,F);if(J!==-1&&!G){const A=Number(o.items[J].quantity),O=o.items[J]?A+1:1;P(B,O,V)}else f({id:F,quantity:(B==null?void 0:B.quantity)??1,seller:B.seller});g||s(A=>[...A,B])},[f,P,o.items,g,s]),S=x.useCallback((B,V)=>{if(!B||!Array.isArray(B))return;s(F=>[...F,...B]);const G=B.map(F=>{const{id:J,quantity:A,seller:O}=F,D=$o(o.items,J),X=Tc(A??1,D);return{id:J,quantity:X,seller:O}});f(G,V)},[f,o.items,s]),R=x.useCallback(async(B,V,G)=>B?y(B).then(()=>(c(V??`${t}`,G),bt(B,B))):Promise.resolve(bt("","Product id required")),[c,y]),T=x.useCallback(()=>{o.items.length>0&&p()},[p,o.items]),w=x.useCallback((B,V="BRA")=>_(B,V),[_]),I=x.useCallback(B=>{B&&b(B)},[b]),N=x.useCallback(async(B,V,G)=>{const F=o.items.findIndex(A=>A.id===B);return o.items[F]&&F>=0?C(V,F,G??!1):!1},[o.items,C]),z=x.useCallback(async(B,V)=>v(B,V).then(G=>{if(Array.isArray(G)){const F=G.find(J=>J.id===B);if(F&&(F==null?void 0:F.quantity)<V)return String(F.quantity)}return!1}),[v]),k=x.useCallback(async()=>{await d({...o.marketingData,coupon:""})},[d,o.marketingData]),U=x.useCallback(async()=>{await d({...o.marketingData,utmiCampaign:"",utmCampaign:"",utmSource:"",utmMedium:""})},[d,o.marketingData]),q=x.useCallback(async()=>{await _("","BRA")},[_]);return n.jsx(ll.Provider,{value:x.useMemo(()=>({...r,addCouponSeller:j,addToCart:E,addItemsToCart:S,cartStore:o,notifications:a,clearCart:T,addNotification:c,isOpen:o.isOpen,removeNotification:l,removeToCart:R,setIsOpen:o.setIsOpen,shipping:w,shippingUpdateOption:I,toggleGiftItemCart:N,updateItemQuantity:z,removeCoupon:k,removeSellerCode:U,removeCEP:q}),[r,j,E,S,a,T,c,o,l,R,w,I,N,z,k,U,q]),children:e})},Ee=()=>{const e=x.useContext(ll);if(e===void 0)throw new Error("useCartContext must be used within a CartProvider");return e},ul=x.createContext({}),ms=({children:e,fetch:t})=>{const r=x.useRef(!0),[o,s]=x.useState(null),[i,a]=x.useState(!1);return x.useEffect(()=>{(async()=>{r.current=!0;try{const l=await t();if(!l.ok)throw new Error("Failed to fetch data");const u=await l.json();s(u.data),r.current=!1}catch{r.current=!0,a(!0)}})()},[t]),n.jsx(ul.Provider,{value:x.useMemo(()=>({data:o,isLoading:r.current??!1,isError:i}),[o,i,r]),children:e})},hs=()=>{const e=x.useContext(ul);if(e===void 0)throw new Error("useProductsContext must be used within a useRootContext");return e},dl=x.createContext({}),gs=({children:e,sort:t,state:r,count:o,collectionId:s,brand:i,searchParams:a,ITEMS_PER_PAGE:c})=>{const l=x.useMemo(()=>{var u;return s?[{key:"productclusterids",value:s.toString()}]:i?[{key:"brand",value:i}]:(u=r.base)!=null&&u.length?r.base.slice(1).split("/").map((f,h)=>({key:`category-${h+1}`,value:f})):[]},[r.base,s]);return n.jsx(dl.Provider,{value:x.useMemo(()=>({state:{...r,facets:[...l,...r.facets??[]]},sort:t,count:o??c,searchParams:a}),[l,o,t,r,a]),children:e})},ze=()=>{const e=x.useContext(dl);if(e===void 0)throw new Error("useSearchContext must be used within a SearchProvider");return e},fl=x.createContext({}),wm=({children:e,...t})=>n.jsx(fl.Provider,{value:t,children:e}),De=()=>{const e=x.useContext(fl);if(e===void 0)throw new Error("usePLPConstants must be used within a PLPConstantsProvider");return e},pl=x.createContext({}),Em=({children:e,selectedFacets:t})=>{const{data:r,...o}=hs(),{router:s}=xe(),{searchParams:i,PLP_SORT_DEFAULT:a}=De(),c=x.useCallback((d,p)=>{if(p){if(d.key.toLocaleLowerCase()==="price"){const g=p.getAll("facets");p.delete("facets"),g.forEach(y=>{const[_]=y.split("/");_!==d.key&&p.append("facets",y)})}p.set("page","1"),p.append("facets",`${d.key}/${d.value}`),s.push(`?${p.toString()}`)}},[s]),l=x.useCallback(()=>{const d=new URLSearchParams;d.set("sort",a),d.set("page","1"),s.push(`?${d.toString()}`)},[s]),u=x.useCallback((d,p)=>{if(!p||!p.has&&!p.has("facets"))return;const g=p.getAll("facets");p.delete("facets"),p.set("page","1"),g.forEach(y=>{const[_,b]=y.split("/");(_!==d.key||b!==d.value)&&p.append("facets",y)}),s.push(`?${p.toString()}`)},[s]),f=x.useCallback(d=>{const p=i?new URLSearchParams(i):new URLSearchParams;for(const[,g]of p.entries()){const[y,_]=g.split("/");if(y===d.key&&_===d.value)return u(d,p)}return c(d,p)},[c,u,i]),h=x.useCallback(d=>{const p=i?new URLSearchParams(i):new URLSearchParams;p.set("sort",d.replace("_",":")),s.push(`?${p.toString()}`)},[s,i]);return n.jsx(pl.Provider,{value:x.useMemo(()=>({...o,breadcrumb:r&&"breadcrumb"in r?r==null?void 0:r.breadcrumb:[],deleteAllFacets:l,facets:r&&"facets"in r?r==null?void 0:r.facets:[],selectedFacets:t,onToggleFacet:f,onSort:h,searchParams:i}),[r,l,h,f,o,t,i]),children:e})},ml=({children:e,forceUpdate:t})=>{const{state:r}=ze();return n.jsx(ms,{fetch:()=>fetch("/api/search/facets",{method:"POST",body:JSON.stringify({...r,forceUpdate:t}),priority:"low"}),children:n.jsx(Em,{selectedFacets:(r==null?void 0:r.facets)??[],children:e})})},hl=()=>{const e=x.useContext(pl);if(e===void 0)throw new Error("useFacetsContext must be used within a FacetsProvider");return e},kt={placeholder:"Ordernar por",options:{score_desc:"Mais Relevantes",orders_desc:"Mais Vendidos",price_desc:"Maior Preço",price_asc:"Menor Preço",release_desc:"Novidades",discount_desc:"Maior Desconto",name_asc:"De A a Z"}},Rm={nextPage:!1,previousPage:!1,startCursor:"0",endCursor:"0",count:0,total:0},Am="Imagem do produto",Ys=1,Im="Sair",Nm=e=>e.exit,Tm=({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"}],Om=(e,t)=>{const r=(t??"").split("@")[0];return e?`Olá${r.length?", ":" "}${r}!`:"Olá!"},km=e=>"Seja bem vindo!",gl=x.createContext({}),Lm=({children:e})=>{const{data:t,...r}=hs(),[o,s]=x.useState(0),{sendDataLayerEvent:i}=ce();return x.useEffect(()=>{if(t&&"pagination"in t&&t.products.length>0){i({functionKey:"productListEvent",data:{event:"view_item_list",commonData:{products:t.products}}});const a=t.pagination.count;a&&Number.isInteger(a)&&s(a)}},[t,i,s]),n.jsx(gl.Provider,{value:x.useMemo(()=>({...r,products:t&&"products"in t?t==null?void 0:t.products:[],pagination:t&&"pagination"in t?t==null?void 0:t.pagination:Rm,total:o}),[t,r,o]),children:e})},ys=({children:e,query:t,forceUpdate:r})=>{const{count:o,state:s}=ze(),i={...s,count:o};return n.jsx(ms,{fetch:()=>fetch("/api/search/product",{method:"POST",body:JSON.stringify({...i,query:t,forceUpdate:r,facets:s.facets??[]})}),children:n.jsx(Lm,{children:e})})},Gt=()=>{const e=x.useContext(gl);if(e===void 0)throw new Error("useProductsContext must be used within a ProductsProvider");return e},yl=x.createContext({}),Mm=({children:e,term:t})=>{const[r,o]=x.useState([]),[s,i]=x.useState(!1);return x.useEffect(()=>{if(!t){o([]);return}(async()=>{i(!0);try{const c=await fetch("/api/search/suggestedTerms",{method:"POST",body:JSON.stringify({query:t,locale:"pt-BR"})}),{data:l}=await c.json();o((l==null?void 0:l.searches)||[])}catch(c){console.error("Erro ao buscar sugestões:",c)}})()},[t]),n.jsx(yl.Provider,{value:x.useMemo(()=>({suggestedTerms:r,loading:s,setLoading:i}),[r,s]),children:e})},Dm=({children:e,...t})=>n.jsx(Mm,{...t,children:e}),$m=()=>{const e=x.useContext(yl);if(!e)throw new Error("useSuggestedTermsContext must be used within a SuggestedTermsProvider");return e},_l=x.createContext({searches:[],isLoading:!1,error:null}),zm=({children:e})=>{const[t,r]=x.useState([]),[o,s]=x.useState(!0),[i,a]=x.useState(null);return x.useEffect(()=>{(async()=>{try{s(!0);const l=await fetch("/api/search/topSearch");if(!l.ok)throw new Error(`Erro ao buscar os dados: ${l.status}`);const u=await l.json();r(u.data.searches||[])}catch(l){a(l instanceof Error?l.message:"Erro desconhecido")}finally{s(!1)}})()},[]),n.jsx(_l.Provider,{value:x.useMemo(()=>({searches:t,isLoading:o,error:i}),[t,o,i]),children:e})},Bm=()=>{const e=x.useContext(_l);if(!e)throw new Error("useTopSearches must be used within a TopSearchesProvider");return e},vl=x.createContext({}),Fm=({children:e,slug:t,searchParams:r,collectionId:o,brand:s,itemsPerPage:i=24,PLP_SORT_DEFAULT:a})=>{const{pathname:c}=xe(),l=x.useRef(""),[u,f]=x.useState(!1),h=x.useMemo(()=>{const p=new URL(c,"http://localhost"),g=(r==null?void 0:r.getAll("facets"))??[],y=(r==null?void 0:r.get("page"))??"1",_=(r==null?void 0:r.get("sort"))??(o?"":a);return p.searchParams.set("page",String(y)),p.searchParams.set("sort",String(_)),r!=null&&r.get("query")?(p.searchParams.set("query",r.get("query")),p):(p.searchParams.set("base",Array.isArray(t)?t.join("/"):t),p.searchParams.set("facets",g.join(",")),p)},[o,c,r,t]),d=x.useMemo(()=>{if(Array.isArray(r==null?void 0:r.getAll("facets")))return W.parseSearchState(h,r.getAll("facets")??[""]);const p=(r==null?void 0:r.getAll("facets"))??[];return W.parseSearchState(h,p)},[h,r]);return x.useEffect(()=>{l.current!==c&&(l.current=c,window.document.body.scrollTo(0,0))},[c]),n.jsx(vl.Provider,{value:x.useMemo(()=>({openFilters:u,setOpenFilters:f}),[u,f]),children:n.jsx(gs,{ITEMS_PER_PAGE:i,searchParams:r??new URLSearchParams,state:x.useMemo(()=>({...d}),[d]),collectionId:o,brand:s,children:e})})},_s=()=>{const e=x.useContext(vl);if(e===void 0)throw new Error("usePLPContext must be used within a PLPProvider");return e},Cr=(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((s,i)=>Cr(s,t[i]));if(Array.isArray(t))return!1;const r=Object.keys(e),o=Object.keys(t);return r.length!==o.length?!1:r.every(s=>Object.prototype.hasOwnProperty.call(t,s)&&Cr(e[s],t[s]))},xl=(e,t,r="page")=>Object.keys(t).some(o=>o===r?!1:!Cr(t[o],e[o])),Bo=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},bl=()=>({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}}}),jl=(e,t,r,o=24)=>{const s=new Set,i=[];if(!Array.isArray(e)||e.length===0)return{taken:s,placedBanners:i};const a=t*o*r;for(const c of e){let l=Number(c.position_grid),u=!1;for(;l<a;){const f=l%r;if(f+c.columns>r){l+=r-f;continue}if(!Array.from({length:c.columns}).some((p,g)=>s.has(l+g))){for(let p=0;p<c.columns;p++)s.add(l+p);i.push(l),u=!0;break}l++}u||console.info(`[PLP INFINITE FAILED BANNER POSITION]: pos=${c.position_grid}, cols=${c.columns}`)}return{taken:s,placedBanners:i}},Fo=(e,t,r,o=24)=>{const{placedBanners:s,taken:i}=jl(e??[],t,r),a=[];let c=0;try{for(;a.length<t*o;)i.has(c)||a.push(c),c++;return{banners:s,products:a}}catch(l){console.info(`[PLP INFINITE FAILED TO GEN POSITIONS]: page=${t}`,l)}return{banners:[],products:a}},xr=(e,t,r=24)=>Array.from({length:e},(o,s)=>{const i=s+1;return{loading:e===i,page:i,pagination:t!=null&&t.products.length&&e===i?t==null?void 0:t.pagination:vs(),products:t!=null&&t.products.length&&e===i?t==null?void 0:t.products:Array.from({length:r},()=>bl())}}),Cl=(e,t)=>[...e,{loading:!1,page:t,pagination:vs(),products:[]}],vs=()=>({nextPage:!1,previousPage:!1,startCursor:"0",endCursor:"1",count:1,total:1}),qm=(e,t,r,o,s)=>{const i=e[e.length-1],a=(i==null?void 0:i.products.length)??s,c=(e.length-1)*s+a-1,l=r[c];return t.filter((u,f)=>{const h=o[f];return h<=l||s>a&&h>l})},Sl=(e,t)=>{const r=new Map;for(const s of e){const i=Math.floor(s/t);r.has(i)||r.set(i,[]),r.get(i).push(s)}const o=[];for(const[,s]of r){const i=s[Math.floor(Math.random()*s.length)];o.push(i)}return o},Pl=(e,t)=>{if(!e)return[];const r=e.map((o,s)=>o.video&&o.video!==""?s:null).filter(o=>o);return Sl(r,t)},wl=e=>Array.isArray(e)?e.map((t,r)=>({href:`/${e.slice(0,r+1).join("/")}`,name:t})):[],Hm=Object.freeze(Object.defineProperty({__proto__:null,createBreadcrumb:wl,createPage:Cl,createPages:xr,createPagination:vs,createProduct:bl,deepEqual:Cr,fetchPage:Bo,getBanners:jl,getPositions:Fo,getProductsWithVideo:Pl,getRandomVideoPerRow:Sl,getVisibleBanners:qm,hasStateChangedExceptPage:xl},Symbol.toStringTag,{value:"Module"})),Um=50,Wm=ht.create((e,t)=>{const r=a=>Math.min(a,Um),o=async(a,c)=>{const l=r(a.page);try{const u=await Bo({...a,page:l});s(l,f=>c?c(f,u):{...f,...u})}catch(u){console.error(`[PDC - SCROLL INFINITE FAILED TO FETCH PAGE ${l}]: ${u}`),s(l,f=>({...f,loading:!1}))}},s=(a,c)=>{e({load:!0,pages:t().pages.map(l=>l.page===a?c(l):l)})},i=async(a,c)=>{await o(a,(l,u)=>(typeof c=="function"&&c(u),{...l,...u,loading:!0}))};return{banners:[],load:!1,pages:[],total:0,positions:[],products:[],createPages:async(a,c,l,u)=>{var h,d,p;const f=r(Number(a==null?void 0:a.page));e({...c,pages:xr(f,void 0,u)});try{const g=await Bo({...a,page:f});if(g){if(!g.products.length&&((h=g==null?void 0:g.pagination)==null?void 0:h.total)<f){i({...a,page:(d=g==null?void 0:g.pagination)==null?void 0:d.total},l),e({pages:xr((p=g==null?void 0:g.pagination)==null?void 0:p.total)});return}typeof l=="function"&&l(g),e({load:!0,pages:xr(f,g),total:Number(g.pagination.count)})}}catch(g){console.error(`[PDC - SCROLL INFINITE TO CREATE PAGES]: page ${f} ${g}`)}},addPage:(a,c,l)=>{const{pages:u}=t(),f=r(a==null?void 0:a.page);u.some(h=>h.page===f)||(e({...c,pages:Cl(u,f)}),i(a,l))},updateProducts:(a,c)=>{const l=t().pages.find(u=>u.page===r(a==null?void 0:a.page));l!=null&&l.loading||i(a,c)}}}),Vm=(e,t,r,o=0)=>{if(!e.length)return[];let s=0;const i=[];for(let a=0;a<e.length;a+=r){const c=e.slice(a,a+r),l=c.findIndex(u=>{var f;return(f=u.node)==null?void 0:f.video});for(let u=0;u<c.length;u++){const f=a+u,h=o+f,d=t.find(g=>g.position_grid===h+1),p=h+s+1;d&&(s+=d.columns),i.push({position:p,canPlayVideo:u===l})}}return i},El=(e,t,r)=>{const o=(t-1)*r,s=t*r;return e>=o&&e<=s},Ir=e=>{var t;return(t=e==null?void 0:e.map(r=>({disable:W.disableSKU(r),size:W.getSKUName(r),skuID:"sku"in r&&r.sku})))==null?void 0:t.filter(r=>r.disable)},Gm=Object.freeze(Object.defineProperty({__proto__:null,createGridPosAndVideo:Vm,getSkusNotify:Ir,isPositionInCurrentPage:El},Symbol.toStringTag,{value:"Module"})),Rl=({isMobile:e,ICONS:t,NOTIFY_INFO:r})=>n.jsxs(n.Fragment,{children:[n.jsx(m.Modal.Controls,{navigation:e?"top":"middle",isMobile:e??!1,children:!e&&n.jsxs(n.Fragment,{children:[n.jsx(m.Button,{"data-close":!0,iconNameStart:t.arrow_left,size:"small",variant:"tertiary"}),n.jsx(m.Button,{"data-close":!0,iconNameStart:t.close,size:"small",variant:"tertiary"})]})}),n.jsx(m.Modal.Title,{navigation:e?"top":"middle",title:r.title})]});Rl.displayName="Notify.Controls";const Ge={"notify--header-modifier":"_notify--header-modifier_xlomp_1","notify--container":"_notify--container_xlomp_4","notify--form":"_notify--form_xlomp_20","notify--status":"_notify--status_xlomp_36","notify--status--success":"_notify--status--success_xlomp_50","notify--status--error":"_notify--status--error_xlomp_50","notify--modal--body":"_notify--modal--body_xlomp_99","notify--loading":"_notify--loading_xlomp_102","notify--selector":"_notify--selector_xlomp_122","notify--selector--header":"_notify--selector--header_xlomp_138","modal-modifier":"_modal-modifier_xlomp_168"};function Al(e){const r=decodeURIComponent(window.document.cookie).split(";");for(const o of r){const[s,i]=o.trim().split("=");if(s===e)return i}}function xs(e,t,r={}){const s={...{path:"/",expires:new Date(Date.now()+36e5)},...r};let i=`${encodeURIComponent(e)}=${encodeURIComponent(t??"")}`;for(const a in s)s[a]!==void 0&&(i+=`; ${a}`,a==="expires"?i+=`=${s[a].toUTCString()}`:typeof s[a]=="boolean"?i+=`; ${s[a]?"true":"false"}`:i+=`=${s[a]}`);window.document.cookie=i}const Km=()=>{const{sendDataLayerEvent:e}=ce(),{user:t}=Nt(),{cartStore:r}=Ee();return x.useEffect(()=>{if(!t)return;(async()=>{const{userId:s,email:i,firstName:a,lastName:c,phone:l,homePhone:u,postalCode:f,street:h,number:d,city:p,gender:g}=t,y=new TextEncoder().encode(s),_=await crypto.subtle.digest("SHA-256",y),C=Array.from(new Uint8Array(_)).map(v=>v.toString(16).padStart(2,"0")).join("");e({functionKey:"readyEvents",data:{readyData:{user_id:C,email:i,first_name:a,last_name:c,phone:l||u,zip:f,street:h,street_number:d,city:p,gender:g,orderform_id:r==null?void 0:r.id}}})})()},[t,r.id]),null},Il=x.createContext({amount:null,boxes:null,toExpire:null,loading:!0,logout:()=>null,getCurrentCredits:()=>({credits:0,cashback:0})}),Xm=({children:e,AUTH_TOKEN_COOKIE:t})=>{const[r,o]=x.useState({amount:null,boxes:null,toExpire:null,loading:!0}),s=x.useCallback(async()=>{try{await fetch("/api/user",{priority:"low"}).then(c=>c.json()).then(c=>{const{userCredits:l,...u}=c,{wishlist:f,...h}=u;o({amount:l==null?void 0:l.amount,boxes:l==null?void 0:l.boxes,toExpire:l==null?void 0:l.toExpire,user:h,loading:!1,wishlist:(typeof f=="string"?f.split(","):f)??[]})})}catch(c){console.error("my credits request",c),o({...r,loading:!1})}},[o]),i=x.useCallback(()=>{xs(t),s()},[s]),a=x.useCallback(()=>r.boxes?r.boxes.reduce((c,l)=>l.gift_card_box.refid==="C1643"?(c.cashback+=l.amount,c):(c.credits+=l.amount,c),{cashback:0,credits:0}):{cashback:0,credits:0},[r]);return x.useEffect(()=>{s()},[s]),n.jsxs(Il.Provider,{value:x.useMemo(()=>({...r,getCurrentCredits:a,logout:i}),[r,a,i]),children:[n.jsx(Km,{}),e]})},Nt=()=>{const e=x.useContext(Il);if(e===void 0)throw new Error("useContext(SessionContext) must be used within a SessionProvider");return e},Nl=({color:e,delay:t=3e3,sku:r,setStatus:o,setIsLoading:s,NEWSLETTER_CONFIGS:i,NOTIFY_INFO:a})=>{const c=x.useRef(null),[l,u]=x.useState(null),{sendDataLayerEvent:f}=ce(),{user:h}=Nt(),d=h!=null&&h.firstName?`${h==null?void 0:h.firstName} ${h==null?void 0:h.lastName}`:"";return n.jsx("div",{className:Ge["notify--form"],children:n.jsxs("form",{action:"POST",onSubmit:async p=>{var _;p.preventDefault();const g=p.currentTarget,y=((_=g.querySelector("input"))==null?void 0:_.value)??"";fetch("/api/aviseme",{method:"POST",body:JSON.stringify({userName:d,email:y,sku:r==null?void 0:r.skuID})}).then(b=>o(b.ok)).finally(()=>{s(!1),g.reset(),f({functionKey:"readyEvents",data:{event:"notify_me",readyData:{size:r==null?void 0:r.size,item_id:r==null?void 0:r.skuID,color:e}}}),c.current&&clearTimeout(c.current),c.current=setTimeout(()=>{var b;(b=document.body)==null||b.dispatchEvent(new MouseEvent("click",{bubbles:!0,cancelable:!0})),u(!0),o(null)},t)})},children:[n.jsx(m.TextField.Structure,{input:n.jsx(m.TextField.Input,{feedback:typeof l=="boolean"&&l?"error":"none",type:"email",label:a.email_placeholder,mode:"over-label",variant:"outlined",sizeVariant:"large",onChange:p=>u(!p.target.validity.valid),required:!0}),supportText:typeof l=="boolean"&&l?n.jsx(m.TextField.SupportText,{text:i.messages.invalid_email,feedback:"error"}):n.jsx(n.Fragment,{})}),n.jsx(m.Button,{disabled:!(l===!1||!r)||!r,type:"submit",size:"large",children:a.button})]})})};Nl.displayName="Notify.Form";const Tl=({isLoading:e=!1})=>n.jsx("div",{className:Ge["notify--loading"],"data-loading":e,children:n.jsx(m.Spinner,{})});Tl.displayName="Notify.Loading";const bs={"product-variation-list--list":"_product-variation-list--list_e0he8_1","product-variation-list--title":"_product-variation-list--title_e0he8_10","product-variation-list":"_product-variation-list_e0he8_1"},Ol=({children:e,...t})=>n.jsx("div",{...t,className:bs["product-variation-list--list"],children:e});Ol.displayName="ProductVariationList.List";const kl=({fill:e="#1352C7",src:t="",type:r="size",text:o,...s})=>{const{nextimage:i}=xe();return r==="size"?n.jsxs(m.ToggleSize.Wrapper,{...s,size:"large",variation:"ghost",children:[n.jsx(m.ToggleSize.DisabledAdornment,{title:"disabled-adornment-size"}),n.jsx(m.ToggleSize.Text,{children:o})]}):n.jsxs(m.ToggleStyle.Wrapper,{...s,size:"small",title:"wrapper-texture",children:[n.jsx(m.ToggleStyle.DisabledAdornment,{title:"disabled-adornment-texture"}),r==="color"?n.jsx(m.ToggleStyle.Color,{background:e,title:"color"}):n.jsx(m.ToggleStyle.Texture,{title:"texture",children:n.jsx(i,{alt:o??"image",height:40,src:t,width:40})})]})};kl.displayName="ProductVariationList.Option";const Ll=({children:e,...t})=>n.jsx("div",{className:bs["product-variation-list"],...t,children:e});Ll.displayName="ProductVariationList.Root";const Ml=({children:e,title:t,...r})=>n.jsxs("div",{...r,className:bs["product-variation-list--title"],children:[t?n.jsx(m.TextStructure.Root,{children:n.jsx(m.TextStructure.SectionWrapper,{children:n.jsx("p",{children:t})})}):n.jsx(n.Fragment,{}),e]});Ml.displayName="ProductVariationList.Title";const Xe={List:Ol,Option:kl,Title:Ml,Root:Ll},Ym=(e,t)=>{if(!e||!t)return!1;const r=Object.keys(e);return r.length!==Object.keys(t).length?!1:r.every(o=>e[o]===t[o])},Dl=({children:e,label:t="",skus:r,sku:o,setSku:s})=>n.jsxs(n.Fragment,{children:[n.jsx("div",{className:Ge["notify--selector--header"],children:e}),n.jsxs(Xe.Root,{className:Ge["notify--selector"],children:[n.jsx(Xe.Title,{title:t}),n.jsx(Xe.List,{children:Array.isArray(r)&&r.map((i,a)=>{const c=Ym(o,i);return n.jsx(Xe.Option,{active:c,onClick:()=>s(c?null:i),text:String(i.size),type:"size"},a)})})]})]});Dl.displayName="Notify.Selector";const Qs=({type:e,icon:t,title:r,subtitle:o})=>n.jsx("div",{className:Ge[`notify--status--${e}`],children:n.jsx(m.TextStructure.Root,{adornment:{start:n.jsx(m.Icon,{name:t,size:"large"})},children:n.jsxs(m.TextStructure.DivWrapper,{children:[n.jsx("h2",{children:r}),n.jsx("h3",{children:o})]})})}),$l=({status:e,ICONS:t,PRODUCT_CARD_TEXTS:r})=>n.jsxs("div",{className:Ge["notify--status"],"data-status":e,children:[n.jsx(Qs,{...r.success,icon:t.check_circle,type:"success"}),n.jsx(Qs,{...r.error,icon:t.alert_circle,type:"error"})]});$l.displayName="Notify.Status";const js=({color:e,open:t,setVisible:r,skus:o,sku:s,setSku:i,ICONS:a,NEWSLETTER_CONFIGS:c,NOTIFY_INFO:l,PRODUCT_CARD_TEXTS:u,Z_INDEX_WAR:f})=>{const[h,d]=x.useState(!1),[p,g]=x.useState(null),{isMobile:y}=le();return n.jsxs(m.Modal.Root,{isMobile:y??!1,isOpen:t,setIsOpen:r,variant:y?"sideBottom":"sideLeft",style:{zIndex:f.modal},className:Ge["modal-modifier"],children:[n.jsx(m.Modal.Header,{navigation:"top",className:Ge["notify--header-modifier"],children:n.jsx(Rl,{isMobile:y??!1,ICONS:a,NOTIFY_INFO:l})}),n.jsxs(m.Modal.Body,{className:Ge["notify--modal--body"],children:[n.jsxs("div",{className:Ge["notify--container"],children:[n.jsxs(Dl,{label:l.selector_label,sku:s,skus:o,setSku:i,children:[n.jsx("p",{children:l.subtitle}),n.jsx("span",{children:l.description})]}),n.jsx(Nl,{delay:4e3,sku:s,setStatus:g,setIsLoading:d,color:e,NEWSLETTER_CONFIGS:c,NOTIFY_INFO:l}),n.jsx(Tl,{isLoading:h}),n.jsx("div",{className:Ge["notify--selector--header"],children:n.jsx("span",{children:l.legal})})]}),n.jsx($l,{status:p,ICONS:a,PRODUCT_CARD_TEXTS:u})]})]})};js.displayName="Notify";const Nr=({skus:e,ICONS:t,NEWSLETTER_CONFIGS:r,NOTIFY_INFO:o,PRODUCT_CARD_TEXTS:s,Z_INDEX_WAR:i,...a})=>{const c=Ir(e??[]);return n.jsx(js,{skus:c,ICONS:t,NEWSLETTER_CONFIGS:r,NOTIFY_INFO:o,PRODUCT_CARD_TEXTS:s,Z_INDEX_WAR:i,...a})};Nr.displayName="PDC.Notification";const zl=x.createContext({}),Bl=({banners:e,children:t})=>{const{searchParams:r,ITEMS_PER_PAGE:o,ICONS:s,NEWSLETTER_CONFIGS:i,NOTIFY_INFO:a,PRODUCT_CARD_TEXTS:c,Z_INDEX_WAR:l}=De(),{router:u}=xe(),{sendDataLayerEvent:f}=ce(),{isMobile:h}=le(),{state:d}=ze(),{addPage:p,createPages:g,updateProducts:y,..._}=Wm(),b=h?8:16,C=h?2:4,v=x.useRef(!1),j=x.useRef(d),[P,E]=x.useState(!1),[S,R]=x.useState(null),[T,w]=x.useState([]),I=x.useCallback(q=>{q&&"pagination"in q&&f({functionKey:"productListEvent",data:{event:"view_item_list",commonData:{products:q.products}}})},[f]),N=x.useCallback(q=>{if(q.pagination.nextPage===!0){const B=q.page+1,V=Fo(e,B,C,o);p({...d,page:B},V,I)}},[p,e,I,C,o,d]),z=x.useCallback(q=>{q.loading===!1&&y({...d,page:q.page},I)},[I,y,d]),k=x.useCallback(q=>{const B=new URLSearchParams(r);q.page!==Number(B.get("page")??1)&&(B.set("page",String(q.page)),u.replace(`?${B.toString()}`,{scroll:!1}))},[u,r]),U=x.useCallback((q,B)=>{const V=B?Ir([B]):null;w(q),R(V!=null&&V.length?V[0]:null),E(!0)},[]);return x.useEffect(()=>{const q=!v.current,B=xl(j.current,d),V=Fo(e,d.page,C);q?g(d,V,I,o):B&&(g(d,V,I,o),j.current=d),v.current=!0},[e,g,I,C,o,d]),n.jsxs(zl.Provider,{value:x.useMemo(()=>({..._,addPage:p,addNewPage:N,createPages:g,gap:b,columns:C,handleNotify:U,updatePage:z,updateProducts:y,updateParamPage:k}),[p,N,g,U,b,C,_,z,y,k]),children:[t,n.jsx(Nr,{open:P,sku:S,skus:T,setSku:R,setVisible:E,ICONS:s,NEWSLETTER_CONFIGS:i,NOTIFY_INFO:a,PRODUCT_CARD_TEXTS:c,Z_INDEX_WAR:l})]})},nt=()=>{const e=x.useContext(zl);if(e===void 0)throw new Error("PLPInfiniteScrollContext must be used within a ScrollInfiniteProvider");return e},Fl=x.createContext({gridBanners:void 0,banners:[]}),Qm=({children:e,data:t,device:r,SectionZone:o,COMMON_PAGE_COLUMN_GAP_PDC:s})=>{const{isMobile:i}=le(),a=(t==null?void 0:t.sections.filter(h=>h.name!=="List Product Banners"))??[],c=a.slice(0,Ys),l=a.slice(Ys,a.length),u=t==null?void 0:t.sections.find(h=>h.name==="List Product Banners"),f=x.useMemo(()=>{var h,d;return((d=(h=u==null?void 0:u.data)==null?void 0:h.banners)==null?void 0:d.map(p=>({...p.banner,columns:p.bannerWidth,position_grid:p.bannerPosition})))??[]},[u]);return i&&r==="mobile"||!i&&r==="desktop"?n.jsxs(Fl.Provider,{value:{gridBanners:u,banners:f},children:[n.jsx(o,{data:c??[]}),n.jsxs(m.Utils.Column,{gap:s,className:m.helpers.classNameConcat("utils-column-modifier"),children:[e,n.jsx(o,{data:l??[]})]})]}):n.jsx(n.Fragment,{})},Tr=()=>{const e=x.useContext(Fl);return e===void 0&&console.error("Needs PLPContentContext on parent component"),e},ql=x.createContext({}),Hl=({children:e,filters:t,PLP_FILTERS:r,...o})=>{var i;const s=(i=t.facets)==null?void 0:i.filter(a=>r.find(c=>c.key===a.key));return n.jsx(ql.Provider,{value:x.useMemo(()=>({...o,filters:{...t,facets:s}}),[t,s,o]),children:e})},Tt=()=>{const e=x.useContext(ql);if(e===void 0)throw new Error("useFilterContext must be used within a FilterProvider");return e},Ul=x.createContext({product:void 0}),Zm=({children:e,data:t,productId:r,COMMON_PAGE_COLUMN_GAP:o,SectionZone:s})=>n.jsxs(Ul.Provider,{value:{productId:r},children:[e,n.jsx(m.Utils.Column,{gap:o,className:m.helpers.classNameConcat("utils-column-modifier"),children:n.jsx(s,{data:(t==null?void 0:t.sections)??[]})})]}),Wl=()=>{const e=x.useContext(Ul);return e||console.error("use this hook only inside PDPContentProvider hierarchy"),e},Jm=e=>e.normalize("NFD").replace(/[\u0300-\u036f]/g,"").replace(/\s+/g,"-").toLowerCase().trim();function eh(e,t=1e3){let r=!1;return(...o)=>{r||(e(...o),r=!0,setTimeout(()=>{r=!1},t))}}function th(e,t=1e3){let r;return(...o)=>{clearTimeout(r),r=setTimeout(()=>{e(...o)},t)}}const Vl=(e,t)=>t.getTime()>e.getTime()?Math.abs(t.getTime()-e.getTime()):0,Dt=(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),rh=e=>{const t=zp.decodeJwt(e??"");return{email:t.sub,userId:t.userId}},nh=["name","email","phone","date","cpf","cep"],Zs={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}$/},Gl=({type:e,input:t,required:r=!1})=>{if(typeof t!="string"||!r&&t===""||!Zs[e])return!0;const o=t.trim();return Zs[e].test(o)},oh=e=>{const t=/\/(\d+)-\d+-\d+\/(.+?)\./,r=typeof e=="string"?e.match(t):null;return r?r[2].replace(/-/g," "):Am},sh=Object.freeze(Object.defineProperty({__proto__:null,FieldTypes:nh,debounce:th,getAltTextFromUrl:oh,getAuthenticatedUser:rh,getCookie:Al,getDaysHoursMinutesSeconds:Dt,getMilliSeconds:Vl,removeAccentsAndReplaceSpaces:Jm,setCookie:xs,throttle:eh,validateInput:Gl},Symbol.toStringTag,{value:"Module"})),ih=({fields:e})=>{const t={};return{mountedFields:(e==null?void 0:e.reduce((o,s)=>(t[s.master_data_field]="none",{...o,[s.master_data_field]:s}),{}))??{},mountedInputsStatus:t}},ah=({formData:e,mountedFields:t,inputsStatus:r,hasTermsAndConditions:o,checkboxRef:s,setFormStatus:i})=>{let a=!1,c=!1;const l={...r};return o&&!s.current&&(i("unchecked"),a=!0),e.forEach((u,f)=>{var p;if(f==="terms-and-conditions")return;const h=(p=t[f])==null?void 0:p.required;if(h&&!u){l[f]="required",a=!0;return}Gl({type:t[f].type,input:u,required:h})||(l[f]="error",c=!0),typeof u=="string"&&e.set(f,u.toString().trim())}),{hasEmptyFields:a,hasErrors:c,inputStatusToUpdate:l}},Kl=x.createContext({}),Xl=({children:e,masterDataEmailField:t,fields:r,variant:o,CONSTANTS:{MASTER_DATA_ENTITY:s,NEWSLETTER_CONFIGS:i}})=>{const{sendDataLayerEvent:a}=ce(),c=o==="vertical"&&i.hasTermsAndConditions,{mountedFields:l,mountedInputsStatus:u}=x.useMemo(()=>ih({fields:r}),[r]),f=x.useRef(!1),[h,d]=x.useState("idle"),[p,g]=x.useState(u),y=async({searchFields:E,entity:S})=>{const R=await ft.post("/api/master-data/search",{body:{masterDataEntity:S,searchFields:E,headers:{"REST-Range":"resources=0-49"}}});return console.info(R),R.data},_=async({id:E,fieldsToBeUpdated:S,entity:R})=>(await ft.post("/api/master-data/update",{dataEntityName:R,id:E,fieldsToBeUpdated:S})).status,b=x.useCallback(async({payload:E,response:S},R,T)=>{const{email:w,...I}=E,[N]=await y({searchFields:{[R]:w},entity:T??s.newsletter});return N&&await _({id:N.id,fieldsToBeUpdated:I,entity:T??s.newsletter})!==204?{...S,status:"error"}:{...S,status:"success"}},[]),C=x.useCallback(async({formData:E},S,R)=>{const T={status:"idle",inputsStatus:{}},w={};E.forEach((I,N)=>{w[N]=I});try{const N=(await ft.post("/api/master-data",{body:{payload:w,masterDataEntity:S??s.newsletter}})).data;return(N==null?void 0:N.Message)==="duplicated entry"?b({payload:w,response:T},R,S):N!=null&&N.Id?{...T,status:"success"}:{...T,status:"error"}}catch(I){return console.error("error",I),{...T,status:"error"}}},[b]),v=x.useCallback(async(E,S,R)=>{E.preventDefault();const T=new FormData(E.target);S&&Object.keys(S).forEach(I=>{T.append(I,S[I])});const w=await C({formData:T},R??"",t);w&&(d(w==null?void 0:w.status),g(w.inputsStatus),w.status==="success"&&a({functionKey:"readyEvents",data:{event:"generate_lead"}}))},[t,C,d,g,a]),j=x.useCallback(E=>{const S=new FormData(E.currentTarget.parentElement),{hasEmptyFields:R,hasErrors:T,inputStatusToUpdate:w}=ah({formData:S,mountedFields:l,inputsStatus:p,hasTermsAndConditions:c,checkboxRef:f,setFormStatus:d});if(g(w),R||T){E.preventDefault();return}d("loading")},[l,p,c,f]),P=x.useCallback(()=>{d("idle"),g(u)},[u]);return n.jsx(Kl.Provider,{value:x.useMemo(()=>({formStatus:h,handleSubmit:v,setFormStatus:d,inputsStatus:p,setInputsStatus:g,hasTermsAndConditions:c,handleClickToSubmit:j,checkboxRef:f,masterDataEmailField:t,fields:r,variant:o,resetNewsletter:P}),[h,v,d,p,g,j,c,f,t,r,o,P]),children:e})},Cs=()=>{const e=x.useContext(Kl);if(e===void 0)throw new Error("useNewsletterContext must be used within a NewsletterProvider");return e},Yl={contexts:{addToCart:{hook:vt,provider:cl},cart:{hook:Ee,provider:Pm},cms:{FlagsAndTags:{context:os,hook:rt,provider:Bp}},newsletter:{hook:Cs,provider:Xl},events:{hook:ce,provider:Kp},global:{hook:le,provider:um,mediator:Fc},header:{hook:je,provider:jm},menuMobile:{hook:Vt,provider:il},next:{hook:xe,provider:dm},pdp:{provider:Fp},PDPContent:{provider:Zm,hook:Wl},plp:{provider:Fm,hook:_s},plpFilter:{hook:Tt,provider:Hl},PLPContent:{provider:Qm,hook:Tr},plpInfinite:{provider:Bl,hook:nt},pdpdata:{provider:Xp},searchFacets:{hook:hl,provider:ml},searchProducts:{hook:Gt,provider:ys},searchRoot:{hook:hs,provider:ms},searchSearch:{hook:ze,provider:gs},searchSuggestedTerms:{hook:$m,provider:Dm},searchTopSearchs:{hook:Bm,provider:zm},session:{hook:Nt,provider:Xm},ui:{hook:qt,provider:Bc}},hooks:{useBackPDC:uc,useClipboard:Yp,useDisableZoom:xc,useLocalStorage:Zp,useOnScreen:ss,useSentinel:Rr,useTouchZoomPan:bc},stores:{cart:cm,header:mm,pdp:xm,wishlist:bm}},ch={cart:sm,events:Gp,plp:Hm,product:W.productHelpers,utils:sh},Ss={helpers:ch},Fe={"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"},Ql=({brand:e,className:t,name:r,...o})=>n.jsxs("div",{...o,className:m.helpers.classNameConcat(Fe["add-to-cart--card--name"],t),children:[n.jsx(m.Tag,{style:{textTransform:"uppercase"},size:"small",variant:"quaternary",title:e,children:e}),n.jsx(m.TextStructure.Root,{children:n.jsx(m.TextStructure.DivWrapper,{alignContent:"flex-start",alignItems:"flex-start",children:n.jsx("p",{className:"typography-style-body-md",children:r})})})]});Ql.displayName="AddToCart.Card.Name";const Zl=({className:e,listPrice:t,price:r,quantity:o,productId:s,...i})=>{const a=W.formatPriceToCurrency(r/100),c=W.formatPriceToCurrency(t/100);return n.jsx("div",{...i,className:m.helpers.classNameConcat(Fe["add-to-cart--card--price-quantity"],e),children:n.jsx(m.ProductInfo.Root,{size:"small",layout:"vertical",children:n.jsx(m.ProductInfo.Wrapper,{size:"small",layout:"vertical",children:n.jsx(m.ProductInfo.ValuesWrapper,{children:r!==t?n.jsxs(n.Fragment,{children:[n.jsx(m.ProductInfo.Price,{label:"originalPrice",value:a,size:"small"},"price-list"),n.jsx(m.ProductInfo.Price,{label:"discountPrice",value:c,size:"small"},"price-low")]}):n.jsx(m.ProductInfo.Price,{label:"defaultPrice",value:c,size:"small"},"price-low")})})})})};Zl.displayName="AddToCart.Card.PriceQuantity";const lh="_skeleton_12b79_1",uh={skeleton:lh},Jl=({style:e})=>n.jsx("div",{style:e,className:uh.skeleton}),dh="_image_lypfr_1",fh={image:dh},ph=({alt:e,className:t,objectFit:r,...o})=>{const{nextimage:s}=xe();return n.jsx(s,{quality:90,...o,alt:e??"",className:m.helpers.classNameConcat(fh.image,t),"data-object-fit":r??"cover"})},mh=({videoRef:e,...t})=>n.jsx("video",{...t,ref:e,children:n.jsx("track",{kind:"captions"})}),Be={Image:ph,Video:mh},eu=({className:e,productGroupID:t,size:r,texture:o,...s})=>{const{CONSTANTS:{TEXTURE_IMAGE:i,TOGGLE_STYLE_MODIFIER:a}}=vt(),[c,l]=x.useState(o??"");return x.useEffect(()=>{c||fetch("/api/catalog/product/info",{method:"POST",priority:"low",body:JSON.stringify({ids:[t]})}).then(u=>u.json()).then(u=>{const f=u.data[0].items[0];if(f){const h=f.images.find(d=>i.includes(d.imageLabel));h!=null&&h.imageUrl?l(h.imageUrl):l(f.images[0].imageUrl)}}).catch(u=>{console.error(u)})},[c,t]),n.jsxs("div",{...s,className:m.helpers.classNameConcat(Fe["add-to-cart--card--style-size"],e),children:[n.jsx(m.ToggleStyle.Wrapper,{size:"x-small",style:a,children:n.jsx(m.ToggleStyle.Texture,{children:c?n.jsx(Be.Image,{alt:"",src:c??"",width:164,height:164,style:a}):n.jsx(Jl,{})})}),n.jsx(m.Utils.Divider,{direction:"vertical",size:"medium",style:{height:24}}),r&&n.jsxs(m.ToggleSize.Wrapper,{size:"small",title:"wrapper-texture",children:[n.jsx(m.ToggleSize.DisabledAdornment,{title:"disabled-adornment-texture"}),n.jsx(m.ToggleSize.Text,{children:r})]})]})};eu.displayName="AddToCart.Card.StyleSize";const{helpers:hh}=Ss,tu=({className:e,item:t,texture:r,...o})=>{const{itemOffered:{name:s,brand:i,skuName:a,isVariationOf:{productGroupID:c}},quantity:l,price:u,sellingPrice:f}=t,{CONSTANTS:{NAME_SPLIT_SYMBOL:h}}=vt(),{size:d}=hh.product.getColorAndSizeFromSkuName(a??s,h);return n.jsxs("div",{...o,className:m.helpers.classNameConcat(Fe["add-to-cart--card--content"],e),children:[n.jsx(Ql,{brand:i.name,name:s}),n.jsx(Zl,{price:u,listPrice:f,quantity:l,productId:t.id}),n.jsx(eu,{size:d,texture:r,productGroupID:c})]})};tu.displayName="AddToCart.Card.Content";const ru=({image:e,thumbnail:t=!1})=>n.jsx(Be.Image,{alt:e.alternateName??"image","data-thumbnail":t,height:t?152:120,src:e.url,width:t?152:94});ru.displayName="AddToCart.Card";const nu=({className:e,item:t,texture:r,thumbnail:o,...s})=>{const{itemOffered:{image:[i]}}=t,a=W.updatedResizedImg(i.url,{width:200,height:300});return n.jsxs("div",{...s,className:m.helpers.classNameConcat(Fe["add-to-cart--card"],e),children:[n.jsx(ru,{image:{alternateName:i.alternateName||"Produto",url:a||""},thumbnail:o}),!o&&n.jsx(tu,{item:t,texture:r})]})};nu.displayName="AddToCart.Card";const ou=({className:e,children:t,title:r,...o})=>n.jsxs("div",{...o,className:m.helpers.classNameConcat(Fe["add-to-cart--content"],e),children:[n.jsx("div",{className:Fe["add-to-cart--content--title"],children:r&&n.jsx("h2",{children:r})}),t,n.jsx(pt.Footer,{})]});ou.displayName="AddToCart.Layout.Content";const su=({className:e,...t})=>{var p,g;const{isMobile:r,handleClose:o,CONSTANTS:{ADD_TO_CART:s}}=vt(),{cartStore:{totalizers:i},setIsOpen:a}=Ee(),c=(p=i.find(y=>y.id==="Discounts"))==null?void 0:p.value,l=((g=i.find(y=>y.id==="Items"))==null?void 0:g.value)??0,u=i.find(y=>y.id==="Shipping"),h=(l-Math.abs(c??0)+((u==null?void 0:u.value)??0))/100,d=W.formatPriceToCurrency(h??0);return n.jsxs("div",{...t,className:m.helpers.classNameConcat(Fe["add-to-cart--footer"],e),children:[n.jsxs("div",{className:Fe["add-to-cart--footer--total"],children:[n.jsx("span",{children:"Subtotal:"}),n.jsx("span",{children:d})]}),n.jsx(m.Button,{size:"medium",variant:"primary","data-close":!0,onClick:()=>a(!0),children:s.footer.bag}),r?n.jsx(m.Button,{"data-close":!0,size:"medium",variant:"tertiary",children:s.footer.keep_buying}):n.jsx(m.Button,{onClick:()=>o(),size:"medium",variant:"tertiary",children:s.footer.keep_buying})]})};su.displayName="AddToCart.Layout.Footer";const iu=({children:e,className:t,thumbnail:r=!1,...o})=>{const{cartStore:{options:s}}=Ee(),{recentlyAddedProducts:i}=qt(),a=i.length>3?4:i.length;return n.jsxs("div",{...o,className:Fe["add-to-cart--items"],"data-thumbnail":r,children:[Array.isArray(i)&&i.filter((c,l)=>l<a).map(c=>{var u;const l=(u=s==null?void 0:s.find(f=>f.id===c.itemOffered.isVariationOf.productGroupID))==null?void 0:u.texture;return n.jsx(pt.Card,{item:c,thumbnail:r,texture:l},c.itemOffered.sku)}),e]})};iu.displayName="AddToCart.Layout.Items";const au=({children:e,Z_INDEX_WAR:t})=>{const{isOpen:r,setIsOpen:o}=vt(),{isMobile:s}=le();return n.jsxs(m.Modal.Root,{"data-modal":"add-to-cart--modal",className:Fe["add-to-cart__modal"],isMobile:s??!1,isOpen:r,setIsOpen:o,variant:"sideBottom",style:{zIndex:t.modal},children:[n.jsx(m.Modal.Header,{navigation:"top",children:n.jsx(m.Modal.Controls,{navigation:"top",isMobile:!0})}),n.jsx(m.Modal.Body,{children:e})]})};au.displayName="AddToCart.Modal";const gh=({children:e})=>{const{count:t,handleClose:r,setIsOpen:o}=vt(),s=x.useRef(t);return x.useEffect(()=>{t>s.current&&o(!0),t<s.current&&s.current>=1&&r(),s.current=t},[t,r,o]),n.jsx(n.Fragment,{children:e})},cu=({children:e,component:t,CONSTANTS:r,...o})=>{const{recentlyAddedProducts:s}=qt(),{isMobile:i}=le(),a=s.length>3?4:s.length;return n.jsx(cl,{...o,count:a,isMobile:i,CONSTANTS:r,children:n.jsx(gh,{children:i?n.jsxs(n.Fragment,{children:[n.jsx(pt.Modal,{Z_INDEX_WAR:r.Z_INDEX_WAR,children:t}),e]}):n.jsx(pt.Tooltip,{component:t,style:{width:350},Z_INDEX_WAR:r.Z_INDEX_WAR,children:e})})})};cu.displayName="AddToCart.Root";const lu=({children:e,component:t,Z_INDEX_WAR:r,...o})=>{const{contentRef:s,left:i,isLeaving:a,target:c,isOpen:l,top:u}=vt();return n.jsx(m.Tooltip.Root,{arrow:"top-right",component:n.jsx("div",{...o,ref:s,children:t}),id:"add-to-cart--tooltip",className:Fe["add-to-cart--tooltip"],style:{zIndex:r.modal},isLeaving:a,isOpen:l,left:i,size:"medium",position:"top",top:u,children:n.jsx("div",{className:Fe["add-to-cart--tooltip"],ref:c,children:e})})};lu.displayName="AddToCart.Tooltip";const pt={Card:nu,Content:ou,Footer:su,Items:iu,Modal:au,Root:cu,Tooltip:lu},Ps=({title:e,...t})=>{const{recentlyAddedProducts:r}=qt(),{isMobile:o}=le(),s=r.length>3?4:r.length,i=r.length>(s??1),a=r.length>1;return n.jsx(pt.Root,{isMobile:o,count:r.length,component:n.jsx(pt.Content,{title:e,children:n.jsx(pt.Items,{thumbnail:a,children:i&&n.jsx(m.Badge.Count,{count:r.length-s,size:"medium",variant:"secondary"})})}),...t})};Ps.displayName="AddToCart";const Js={"backtotop-btn":"_backtotop-btn_1shb6_1","card-modifier":"_card-modifier_1shb6_27"},yh=({children:e,className:t,adornment:r,iconPosition:o,scrollToOptions:s,style:i,...a})=>{const c={top:(s==null?void 0:s.top)??0,left:(s==null?void 0:s.left)??0,behavior:(s==null?void 0:s.behavior)??"smooth"},u=o&&r?{flexDirection:{top:"column",bottom:"column-reverse",left:"row",right:"row-reverse"}[o]}:{},f=()=>{window&&window.document.body.scrollTo({...c})};return n.jsx(m.Card,{...a,shadow:!0,padding:"small",className:m.helpers.classNameConcat(Js["card-modifier"],t),style:{...i,padding:0},children:n.jsxs("button",{className:Js["backtotop-btn"],onClick:f,style:{...u},"data-orientation":o,children:[r,e]})})},_h="_container_1sy8s_16",it={"carousel-container":"_carousel-container_1sy8s_1","add-cart-container":"_add-cart-container_1sy8s_8",container:_h,"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"},vh=({selectedProducts:e,handleAddAllToCart:t,CONSTANTS:r})=>{const o=Object.values(e.products).length;return n.jsxs("div",{className:it["add-itens-to-cart-container"],children:[n.jsxs("div",{className:it["add-itens-to-cart-container-values"],children:[n.jsx("div",{className:it["add-itens-to-cart-qty-products"],children:n.jsx("span",{children:o===0?r.BUY_PACKAGE.group_cart.select_all_product:`${o} ${o===1?r.BUY_PACKAGE.group_cart.select_product:r.BUY_PACKAGE.group_cart.select_product+"s"}`})}),n.jsx("div",{className:it["add-itens-to-cart-total"],children:n.jsx("span",{children:W.freightParsePrice({valueInCents:e.totalPrice*100,hasFree:!1,freeTaxMessage:r.FREIGHT_CALCULATION.messages.free_tax})})})]}),n.jsx(m.Button,{onClick:t,className:it["add-button"],size:"large",disabled:o===0,variant:"primary",children:r.BUY_BUTTON_LABELS.add_to_cart})]})},xh=e=>e.reduce((t,r)=>{var s;const o=t.find(i=>i.node.id===r.node.id);if(!o)return[...t,r];if((s=o==null?void 0:o.node.isVariantOf)!=null&&s.hasVariant){const i=o.node.isVariantOf.hasVariant,a=r.node.isVariantOf.hasVariant;i&&a&&(o.node.isVariantOf.hasVariant=[...i,...a])}return t},[]),bh=({selectedProduct:e,productId:t,prevState:r,mainSellerId:o})=>{const{products:s,totalPrice:i}=r;try{if(!e){const{[t]:u,...f}=s;return{...r,totalPrice:i-u.price,products:f}}const a=W.getValidOffer(e.offers.offers,o);if(!a)return r;const c=a.seller.identifier,l=a.price;if(s[t]){const{price:u}=s[t];return s[t]={...s[t],price:l,id:e.sku,seller:c},{totalPrice:i+l-u,products:{...s}}}return{totalPrice:i+l,products:{...s,[t]:{id:e.sku,price:l,seller:c,productId:t}}}}catch(a){return console.error("Error handling SKU selection:",a),r}},uu=x.createContext({}),jh=({children:e,item:t,index:r,shelfTitle:o,...s})=>{const[i,a]=x.useState(null),c=x.useRef(null),l=x.useRef({availableSkus:[],priceInfo:{price:0,listPrice:0}}),{sendDataLayerEvent:u,itemListRef:f}=ce(),h=y=>{u({functionKey:"productEvents",data:{commonData:{...t,availableSizes:l.current.availableSkus,...l.current.priceInfo},customData:{index:r+1},event:y}})},d=()=>{h("add_to_wishlist")},p=()=>{u({functionKey:"skuEvents",data:{event:"add_to_cart",commonData:{products:[{...t,...l.current.priceInfo}]},supportData:{selectedSku:i,selectedSkus:[i]},customData:{index:r}}})},g=()=>{o&&(f.current={item_list_name:o}),h("select_item")};return n.jsx(uu.Provider,{value:x.useMemo(()=>({...s,index:r,item:t,element:c,selectedSku:i,setSelectedSku:a,eventDataRef:l,sendAddToWishlistEvent:d,sendSelectItemEvent:g,sendAddToCartEvent:p}),[s,t,c,i]),children:e})},Ve=()=>{const e=x.useContext(uu);if(e===void 0)throw new Error("useProductCardContext must be used within a ProductCardProvider");return e},Ie={"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"},du=({callback:e,children:t,className:r,data:o,isKit:s,...i})=>{const{item:{availability:{status:a},image:c}}=Ve();return a?n.jsxs("div",{...i,className:m.helpers.classNameConcat(Ie["product-card--actions"],r),children:[n.jsxs(ve.Wrapper,{type:"actions--group",children:[n.jsx(ve.Price,{}),n.jsx("div",{className:Ie["product-card--actions--selectors"],children:!s&&n.jsx(ve.StyleSelector,{data:o,images:c,callback:e})})]}),t]}):null};du.displayName="ProductCard.Actions";const fu=({className:e,isKit:t,...r})=>{const{addToCart:o}=Ee(),{isMobile:s=!1,selectedSku:i,outStock:a,item:c,sendAddToCartEvent:l,CONSTANTS:u}=Ve(),f=()=>{var p;if(!i)return;const d=W.getValidOffer(i.offers.offers,u.StoreConfig_MainSellerId);d&&o({id:i==null?void 0:i.sku,quantity:1,seller:d.seller.identifier},{id:c.id,texture:(p=c==null?void 0:c.image.find(g=>u.TEXTURE_IMAGE.includes(g.alternateName)))==null?void 0:p.url}),l()},h=i?u.BUY_BUTTON_LABELS.add_to_cart:u.BUY_BUTTON_LABELS.select_size;return n.jsx(m.Button,{...r,className:m.helpers.classNameConcat(e,"buy-button"),disabled:!t&&!i&&!a,size:s?"medium":"large",variant:a?"secondary":"primary",onClick:a?r.onClick:f,children:a?"Avise-me quando chegar":h})};fu.displayName="ProductCard.Actions.BuyButton";const Ch={"snackbar-modifier":"_snackbar-modifier_1va2l_1"},Pt=({size:e,adornment:t,title:r,subtitle:o,supportChildren:s,className:i,Z_INDEX_WAR:a,...c})=>n.jsxs(m.SnackBar.Structure,{...c,size:e,className:m.helpers.classNameConcat(Ch["snackbar-modifier"],i),width:360,style:{zIndex:a.snackbar},children:[n.jsx(m.SnackBar.Content,{adornment:t,title:r,subtitle:o}),s&&n.jsx(m.SnackBar.Support,{children:s})]});Pt.displayName="SnackBar";const zt={"wishlist--snack":"_wishlist--snack_3qi1o_9","wishlist--snack--actions":"_wishlist--snack--actions_3qi1o_25","wishlist-grid":"_wishlist-grid_3qi1o_31","wishlist-grid--container":"_wishlist-grid--container_3qi1o_39","pdc-empty-modifier":"_pdc-empty-modifier_3qi1o_49"};var pu=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Or(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function Sh(e){if(e.__esModule)return e;var t=e.default;if(typeof t=="function"){var r=function o(){return this instanceof o?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(o){var s=Object.getOwnPropertyDescriptor(e,o);Object.defineProperty(r,o,s.get?s:{enumerable:!0,get:function(){return e[o]}})}),r}var qo={exports:{}},ke={};ke._=ke._interop_require_default=Ph;function Ph(e){return e&&e.__esModule?e:{default:e}}var nr={exports:{}},Gr={},ei;function mu(){return ei||(ei=1,function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(a,c){for(var l in c)Object.defineProperty(a,l,{enumerable:!0,get:c[l]})}t(e,{searchParamsToUrlQuery:function(){return r},urlQueryToSearchParams:function(){return s},assign:function(){return i}});function r(a){const c={};return a.forEach((l,u)=>{typeof c[u]>"u"?c[u]=l:Array.isArray(c[u])?c[u].push(l):c[u]=[c[u],l]}),c}function o(a){return typeof a=="string"||typeof a=="number"&&!isNaN(a)||typeof a=="boolean"?String(a):""}function s(a){const c=new URLSearchParams;return Object.entries(a).forEach(l=>{let[u,f]=l;Array.isArray(f)?f.forEach(h=>c.append(u,o(h))):c.set(u,o(f))}),c}function i(a){for(var c=arguments.length,l=new Array(c>1?c-1:0),u=1;u<c;u++)l[u-1]=arguments[u];return l.forEach(f=>{Array.from(f.keys()).forEach(h=>a.delete(h)),f.forEach((h,d)=>a.append(d,h))}),a}}(Gr)),Gr}var Kr={},Rt={};function hu(e){if(typeof WeakMap!="function")return null;var t=new WeakMap,r=new WeakMap;return(hu=function(o){return o?r:t})(e)}Rt._=Rt._interop_require_wildcard=wh;function wh(e,t){if(!t&&e&&e.__esModule)return e;if(e===null||typeof e!="object"&&typeof e!="function")return{default:e};var r=hu(t);if(r&&r.has(e))return r.get(e);var o={},s=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if(i!=="default"&&Object.prototype.hasOwnProperty.call(e,i)){var a=s?Object.getOwnPropertyDescriptor(e,i):null;a&&(a.get||a.set)?Object.defineProperty(o,i,a):o[i]=e[i]}return o.default=e,r&&r.set(e,o),o}var ti;function gu(){return ti||(ti=1,function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(l,u){for(var f in u)Object.defineProperty(l,f,{enumerable:!0,get:u[f]})}t(e,{formatUrl:function(){return i},urlObjectKeys:function(){return a},formatWithValidation:function(){return c}});const o=Rt._(mu()),s=/https?|ftp|gopher|file/;function i(l){let{auth:u,hostname:f}=l,h=l.protocol||"",d=l.pathname||"",p=l.hash||"",g=l.query||"",y=!1;u=u?encodeURIComponent(u).replace(/%3A/i,":")+"@":"",l.host?y=u+l.host:f&&(y=u+(~f.indexOf(":")?"["+f+"]":f),l.port&&(y+=":"+l.port)),g&&typeof g=="object"&&(g=String(o.urlQueryToSearchParams(g)));let _=l.search||g&&"?"+g||"";return h&&!h.endsWith(":")&&(h+=":"),l.slashes||(!h||s.test(h))&&y!==!1?(y="//"+(y||""),d&&d[0]!=="/"&&(d="/"+d)):y||(y=""),p&&p[0]!=="#"&&(p="#"+p),_&&_[0]!=="?"&&(_="?"+_),d=d.replace(/[?#]/g,encodeURIComponent),_=_.replace("#","%23"),""+h+y+d+_+p}const a=["auth","hash","host","hostname","href","path","pathname","port","protocol","query","search","slashes"];function c(l){return process.env.NODE_ENV==="development"&&l!==null&&typeof l=="object"&&Object.keys(l).forEach(u=>{a.includes(u)||console.warn("Unknown key passed via urlObject into url.format: "+u)}),i(l)}}(Kr)),Kr}var Xr={},ri;function Eh(){return ri||(ri=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"omit",{enumerable:!0,get:function(){return t}});function t(r,o){const s={};return Object.keys(r).forEach(i=>{o.includes(i)||(s[i]=r[i])}),s}}(Xr)),Xr}var Yr={},ni;function kr(){return ni||(ni=1,function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(j,P){for(var E in P)Object.defineProperty(j,E,{enumerable:!0,get:P[E]})}t(e,{WEB_VITALS:function(){return r},execOnce:function(){return o},isAbsoluteUrl:function(){return i},getLocationOrigin:function(){return a},getURL:function(){return c},getDisplayName:function(){return l},isResSent:function(){return u},normalizeRepeatedSlashes:function(){return f},loadGetInitialProps:function(){return h},SP:function(){return d},ST:function(){return p},DecodeError:function(){return g},NormalizeError:function(){return y},PageNotFoundError:function(){return _},MissingStaticPage:function(){return b},MiddlewareNotFoundError:function(){return C},stringifyError:function(){return v}});const r=["CLS","FCP","FID","INP","LCP","TTFB"];function o(j){let P=!1,E;return function(){for(var S=arguments.length,R=new Array(S),T=0;T<S;T++)R[T]=arguments[T];return P||(P=!0,E=j(...R)),E}}const s=/^[a-zA-Z][a-zA-Z\d+\-.]*?:/,i=j=>s.test(j);function a(){const{protocol:j,hostname:P,port:E}=window.location;return j+"//"+P+(E?":"+E:"")}function c(){const{href:j}=window.location,P=a();return j.substring(P.length)}function l(j){return typeof j=="string"?j:j.displayName||j.name||"Unknown"}function u(j){return j.finished||j.headersSent}function f(j){const P=j.split("?");return P[0].replace(/\\/g,"/").replace(/\/\/+/g,"/")+(P[1]?"?"+P.slice(1).join("?"):"")}async function h(j,P){if(process.env.NODE_ENV!=="production"){var E;if((E=j.prototype)!=null&&E.getInitialProps){const T='"'+l(j)+'.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(T)}}const S=P.res||P.ctx&&P.ctx.res;if(!j.getInitialProps)return P.ctx&&P.Component?{pageProps:await h(P.Component,P.ctx)}:{};const R=await j.getInitialProps(P);if(S&&u(S))return R;if(!R){const T='"'+l(j)+'.getInitialProps()" should resolve to an object. But found "'+R+'" instead.';throw new Error(T)}return process.env.NODE_ENV!=="production"&&Object.keys(R).length===0&&!P.ctx&&console.warn(""+l(j)+" returned an empty object from `getInitialProps`. This de-optimizes and prevents automatic static optimization. https://nextjs.org/docs/messages/empty-object-getInitialProps"),R}const d=typeof performance<"u",p=d&&["mark","measure","getEntriesByName"].every(j=>typeof performance[j]=="function");class g extends Error{}class y extends Error{}class _ extends Error{constructor(P){super(),this.code="ENOENT",this.name="PageNotFoundError",this.message="Cannot find module for page: "+P}}class b extends Error{constructor(P,E){super(),this.message="Failed to load static file for page: "+P+" "+E}}class C extends Error{constructor(){super(),this.code="ENOENT",this.message="Cannot find the middleware module"}}function v(j){return JSON.stringify({message:j.message,stack:j.stack})}}(Yr)),Yr}var or={exports:{}},Qr={},oi;function yu(){return oi||(oi=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(/\/$/,"")||"/"}}(Qr)),Qr}var Zr={},si;function ws(){return si||(si=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"parsePath",{enumerable:!0,get:function(){return t}});function t(r){const o=r.indexOf("#"),s=r.indexOf("?"),i=s>-1&&(o<0||s<o);return i||o>-1?{pathname:r.substring(0,i?s:o),query:i?r.substring(s,o>-1?o:void 0):"",hash:o>-1?r.slice(o):""}:{pathname:r,query:"",hash:""}}}(Zr)),Zr}var ii;function Lr(){return ii||(ii=1,function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"normalizePathTrailingSlash",{enumerable:!0,get:function(){return s}});const r=yu(),o=ws(),s=i=>{if(!i.startsWith("/")||process.env.__NEXT_MANUAL_TRAILING_SLASH)return i;const{pathname:a,query:c,hash:l}=(0,o.parsePath)(i);return process.env.__NEXT_TRAILING_SLASH?/\.[^/]+\/?$/.test(a)?""+(0,r.removeTrailingSlash)(a)+c+l:a.endsWith("/")?""+a+c+l:a+"/"+c+l:""+(0,r.removeTrailingSlash)(a)+c+l};(typeof t.default=="function"||typeof t.default=="object"&&t.default!==null)&&typeof t.default.__esModule>"u"&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)}(or,or.exports)),or.exports}var Jr={},sr={exports:{}},en={},ai;function _u(){return ai||(ai=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"pathHasPrefix",{enumerable:!0,get:function(){return r}});const t=ws();function r(o,s){if(typeof o!="string")return!1;const{pathname:i}=(0,t.parsePath)(o);return i===s||i.startsWith(s+"/")}}(en)),en}var ci;function Rh(){return ci||(ci=1,function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"hasBasePath",{enumerable:!0,get:function(){return s}});const r=_u(),o=process.env.__NEXT_ROUTER_BASEPATH||"";function s(i){return(0,r.pathHasPrefix)(i,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)}(sr,sr.exports)),sr.exports}var li;function vu(){return li||(li=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"isLocalURL",{enumerable:!0,get:function(){return o}});const t=kr(),r=Rh();function o(s){if(!(0,t.isAbsoluteUrl)(s))return!0;try{const i=(0,t.getLocationOrigin)(),a=new URL(s,i);return a.origin===i&&(0,r.hasBasePath)(a.pathname)}catch{return!1}}}(Jr)),Jr}var tn={},rn={},ui;function Ah(){return ui||(ui=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"getSortedRoutes",{enumerable:!0,get:function(){return r}});class t{insert(s){this._insert(s.split("/").filter(Boolean),[],!1)}smoosh(){return this._smoosh()}_smoosh(s){s===void 0&&(s="/");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 a=i.map(c=>this.children.get(c)._smoosh(""+s+c+"/")).reduce((c,l)=>[...c,...l],[]);if(this.slugName!==null&&a.push(...this.children.get("[]")._smoosh(s+"["+this.slugName+"]/")),!this.placeholder){const c=s==="/"?"/":s.slice(0,-1);if(this.optionalRestSlugName!=null)throw new Error('You cannot define a route with the same specificity as a optional catch-all route ("'+c+'" and "'+c+"[[..."+this.optionalRestSlugName+']]").');a.unshift(c)}return this.restSlugName!==null&&a.push(...this.children.get("[...]")._smoosh(s+"[..."+this.restSlugName+"]/")),this.optionalRestSlugName!==null&&a.push(...this.children.get("[[...]]")._smoosh(s+"[[..."+this.optionalRestSlugName+"]]/")),a}_insert(s,i,a){if(s.length===0){this.placeholder=!1;return}if(a)throw new Error("Catch-all must be the last part of the URL.");let c=s[0];if(c.startsWith("[")&&c.endsWith("]")){let f=function(h,d){if(h!==null&&h!==d)throw new Error("You cannot use different slug names for the same dynamic path ('"+h+"' !== '"+d+"').");i.forEach(p=>{if(p===d)throw new Error('You cannot have the same slug name "'+d+'" repeat within a single dynamic path');if(p.replace(/\W/g,"")===c.replace(/\W/g,""))throw new Error('You cannot have the slug names "'+p+'" and "'+d+'" differ only by non-word symbols within a single dynamic path')}),i.push(d)},l=c.slice(1,-1),u=!1;if(l.startsWith("[")&&l.endsWith("]")&&(l=l.slice(1,-1),u=!0),l.startsWith("...")&&(l=l.substring(3),a=!0),l.startsWith("[")||l.endsWith("]"))throw new Error("Segment names may not start or end with extra brackets ('"+l+"').");if(l.startsWith("."))throw new Error("Segment names may not start with erroneous periods ('"+l+"').");if(a)if(u){if(this.restSlugName!=null)throw new Error('You cannot use both an required and optional catch-all route at the same level ("[...'+this.restSlugName+']" and "'+s[0]+'" ).');f(this.optionalRestSlugName,l),this.optionalRestSlugName=l,c="[[...]]"}else{if(this.optionalRestSlugName!=null)throw new Error('You cannot use both an optional and required catch-all route at the same level ("[[...'+this.optionalRestSlugName+']]" and "'+s[0]+'").');f(this.restSlugName,l),this.restSlugName=l,c="[...]"}else{if(u)throw new Error('Optional route parameters are not yet supported ("'+s[0]+'").');f(this.slugName,l),this.slugName=l,c="[]"}}this.children.has(c)||this.children.set(c,new t),this.children.get(c)._insert(s.slice(1),i,a)}constructor(){this.placeholder=!0,this.children=new Map,this.slugName=null,this.restSlugName=null,this.optionalRestSlugName=null}}function r(o){const s=new t;return o.forEach(i=>s.insert(i)),s.smoosh()}}(rn)),rn}var nn={},di;function Ih(){return di||(di=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"isDynamicRoute",{enumerable:!0,get:function(){return r}});const t=/\/\[[^/]+?\](?=\/|$)/;function r(o){return t.test(o)}}(nn)),nn}var fi;function Nh(){return fi||(fi=1,function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(s,i){for(var a in i)Object.defineProperty(s,a,{enumerable:!0,get:i[a]})}t(e,{getSortedRoutes:function(){return r.getSortedRoutes},isDynamicRoute:function(){return o.isDynamicRoute}});const r=Ah(),o=Ih()}(tn)),tn}var on={},sn={},pi;function Th(){return pi||(pi=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"getRouteMatcher",{enumerable:!0,get:function(){return r}});const t=kr();function r(o){let{re:s,groups:i}=o;return a=>{const c=s.exec(a);if(!c)return!1;const l=f=>{try{return decodeURIComponent(f)}catch{throw new t.DecodeError("failed to decode param")}},u={};return Object.keys(i).forEach(f=>{const h=i[f],d=c[h.pos];d!==void 0&&(u[f]=~d.indexOf("/")?d.split("/").map(p=>l(p)):h.repeat?[l(d)]:l(d))}),u}}}(sn)),sn}var an={},cn={},ln={},un={},mi;function Oh(){return mi||(mi=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}}(un)),un}var dn={},hi;function kh(){return hi||(hi=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(")")}}(dn)),dn}var gi;function Lh(){return gi||(gi=1,function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(a,c){for(var l in c)Object.defineProperty(a,l,{enumerable:!0,get:c[l]})}t(e,{normalizeAppPath:function(){return s},normalizeRscPath:function(){return i}});const r=Oh(),o=kh();function s(a){return(0,r.ensureLeadingSlash)(a.split("/").reduce((c,l,u,f)=>!l||(0,o.isGroupSegment)(l)||l[0]==="@"||(l==="page"||l==="route")&&u===f.length-1?c:c+"/"+l,""))}function i(a,c){return c?a.replace(/\.rsc($|\?)/,"$1"):a}}(ln)),ln}var yi;function Mh(){return yi||(yi=1,function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(a,c){for(var l in c)Object.defineProperty(a,l,{enumerable:!0,get:c[l]})}t(e,{INTERCEPTION_ROUTE_MARKERS:function(){return o},isInterceptionRouteAppPath:function(){return s},extractInterceptionRouteInformation:function(){return i}});const r=Lh(),o=["(..)(..)","(.)","(..)","(...)"];function s(a){return a.split("/").find(c=>o.find(l=>c.startsWith(l)))!==void 0}function i(a){let c,l,u;for(const f of a.split("/"))if(l=o.find(h=>f.startsWith(h)),l){[c,u]=a.split(l,2);break}if(!c||!l||!u)throw new Error(`Invalid interception route: ${a}. Must be in the format /<intercepting route>/(..|...|..)(..)/<intercepted route>`);switch(c=(0,r.normalizeAppPath)(c),l){case"(.)":c==="/"?u=`/${u}`:u=c+"/"+u;break;case"(..)":if(c==="/")throw new Error(`Invalid interception route: ${a}. Cannot use (..) marker at the root level, use (.) instead.`);u=c.split("/").slice(0,-1).concat(u).join("/");break;case"(...)":u="/"+u;break;case"(..)(..)":const f=c.split("/");if(f.length<=2)throw new Error(`Invalid interception route: ${a}. Cannot use (..)(..) marker at the root level or one level up.`);u=f.slice(0,-2).concat(u).join("/");break;default:throw new Error("Invariant: unexpected marker")}return{interceptingRoute:c,interceptedRoute:u}}}(cn)),cn}var fn={},_i;function Dh(){return _i||(_i=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"escapeStringRegexp",{enumerable:!0,get:function(){return o}});const t=/[|\\{}()[\]^$+*?.-]/,r=/[|\\{}()[\]^$+*?.-]/g;function o(s){return t.test(s)?s.replace(r,"\\$&"):s}}(fn)),fn}var vi;function $h(){return vi||(vi=1,function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(y,_){for(var b in _)Object.defineProperty(y,b,{enumerable:!0,get:_[b]})}t(e,{getRouteRegex:function(){return u},getNamedRouteRegex:function(){return p},getNamedMiddlewareRegex:function(){return g}});const r=Mh(),o=Dh(),s=yu(),i="nxtP",a="nxtI";function c(y){const _=y.startsWith("[")&&y.endsWith("]");_&&(y=y.slice(1,-1));const b=y.startsWith("...");return b&&(y=y.slice(3)),{key:y,repeat:b,optional:_}}function l(y){const _=(0,s.removeTrailingSlash)(y).slice(1).split("/"),b={};let C=1;return{parameterizedRoute:_.map(v=>{const j=r.INTERCEPTION_ROUTE_MARKERS.find(E=>v.startsWith(E)),P=v.match(/\[((?:\[.*\])|.+)\]/);if(j&&P){const{key:E,optional:S,repeat:R}=c(P[1]);return b[E]={pos:C++,repeat:R,optional:S},"/"+(0,o.escapeStringRegexp)(j)+"([^/]+?)"}else if(P){const{key:E,repeat:S,optional:R}=c(P[1]);return b[E]={pos:C++,repeat:S,optional:R},S?R?"(?:/(.+?))?":"/(.+?)":"/([^/]+?)"}else return"/"+(0,o.escapeStringRegexp)(v)}).join(""),groups:b}}function u(y){const{parameterizedRoute:_,groups:b}=l(y);return{re:new RegExp("^"+_+"(?:/)?$"),groups:b}}function f(){let y=0;return()=>{let _="",b=++y;for(;b>0;)_+=String.fromCharCode(97+(b-1)%26),b=Math.floor((b-1)/26);return _}}function h(y){let{getSafeRouteKey:_,segment:b,routeKeys:C,keyPrefix:v}=y;const{key:j,optional:P,repeat:E}=c(b);let S=j.replace(/\W/g,"");v&&(S=""+v+S);let R=!1;return(S.length===0||S.length>30)&&(R=!0),isNaN(parseInt(S.slice(0,1)))||(R=!0),R&&(S=_()),v?C[S]=""+v+j:C[S]=""+j,E?P?"(?:/(?<"+S+">.+?))?":"/(?<"+S+">.+?)":"/(?<"+S+">[^/]+?)"}function d(y,_){const b=(0,s.removeTrailingSlash)(y).slice(1).split("/"),C=f(),v={};return{namedParameterizedRoute:b.map(j=>{const P=r.INTERCEPTION_ROUTE_MARKERS.some(S=>j.startsWith(S)),E=j.match(/\[((?:\[.*\])|.+)\]/);return P&&E?h({getSafeRouteKey:C,segment:E[1],routeKeys:v,keyPrefix:_?a:void 0}):E?h({getSafeRouteKey:C,segment:E[1],routeKeys:v,keyPrefix:_?i:void 0}):"/"+(0,o.escapeStringRegexp)(j)}).join(""),routeKeys:v}}function p(y,_){const b=d(y,_);return{...u(y),namedRegex:"^"+b.namedParameterizedRoute+"(?:/)?$",routeKeys:b.routeKeys}}function g(y,_){const{parameterizedRoute:b}=l(y),{catchAll:C=!0}=_;if(b==="/")return{namedRegex:"^/"+(C?".*":"")+"$"};const{namedParameterizedRoute:v}=d(y,!1);let j=C?"(?:(/.*)?)":"";return{namedRegex:"^"+v+j+"$"}}}(an)),an}var xi;function zh(){return xi||(xi=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"interpolateAs",{enumerable:!0,get:function(){return o}});const t=Th(),r=$h();function o(s,i,a){let c="";const l=(0,r.getRouteRegex)(s),u=l.groups,f=(i!==s?(0,t.getRouteMatcher)(l)(i):"")||a;c=s;const h=Object.keys(u);return h.every(d=>{let p=f[d]||"";const{repeat:g,optional:y}=u[d];let _="["+(g?"...":"")+d+"]";return y&&(_=(p?"":"/")+"["+_+"]"),g&&!Array.isArray(p)&&(p=[p]),(y||d in f)&&(c=c.replace(_,g?p.map(b=>encodeURIComponent(b)).join("/"):encodeURIComponent(p))||"/")})||(c=""),{params:h,result:c}}}(on)),on}var bi;function Bh(){return bi||(bi=1,function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"resolveHref",{enumerable:!0,get:function(){return f}});const r=mu(),o=gu(),s=Eh(),i=kr(),a=Lr(),c=vu(),l=Nh(),u=zh();function f(h,d,p){let g,y=typeof d=="string"?d:(0,o.formatWithValidation)(d);const _=y.match(/^[a-zA-Z]{1,}:\/\//),b=_?y.slice(_[0].length):y;if((b.split("?")[0]||"").match(/(\/\/|\\)/)){console.error("Invalid href '"+y+"' passed to next/router in page: '"+h.pathname+"'. Repeated forward-slashes (//) or backslashes \\ are not valid in the href.");const v=(0,i.normalizeRepeatedSlashes)(b);y=(_?_[0]:"")+v}if(!(0,c.isLocalURL)(y))return p?[y]:y;try{g=new URL(y.startsWith("#")?h.asPath:h.pathname,"http://n")}catch{g=new URL("/","http://n")}try{const v=new URL(y,g);v.pathname=(0,a.normalizePathTrailingSlash)(v.pathname);let j="";if((0,l.isDynamicRoute)(v.pathname)&&v.searchParams&&p){const E=(0,r.searchParamsToUrlQuery)(v.searchParams),{result:S,params:R}=(0,u.interpolateAs)(v.pathname,v.pathname,E);S&&(j=(0,o.formatWithValidation)({pathname:S,hash:v.hash,query:(0,s.omit)(E,R)}))}const P=v.origin===g.origin?v.href.slice(v.origin.length):v.href;return p?[P,j||P]:P}catch{return p?[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)}(nr,nr.exports)),nr.exports}var ir={exports:{}},pn={},mn={},ji;function xu(){return ji||(ji=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"addPathPrefix",{enumerable:!0,get:function(){return r}});const t=ws();function r(o,s){if(!o.startsWith("/")||!s)return o;const{pathname:i,query:a,hash:c}=(0,t.parsePath)(o);return""+s+i+a+c}}(mn)),mn}var Ci;function Fh(){return Ci||(Ci=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"addLocale",{enumerable:!0,get:function(){return o}});const t=xu(),r=_u();function o(s,i,a,c){if(!i||i===a)return s;const l=s.toLowerCase();return!c&&((0,r.pathHasPrefix)(l,"/api")||(0,r.pathHasPrefix)(l,"/"+i.toLowerCase()))?s:(0,t.addPathPrefix)(s,"/"+i)}}(pn)),pn}var Si;function qh(){return Si||(Si=1,function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"addLocale",{enumerable:!0,get:function(){return o}});const r=Lr(),o=function(s){for(var i=arguments.length,a=new Array(i>1?i-1:0),c=1;c<i;c++)a[c-1]=arguments[c];return process.env.__NEXT_I18N_SUPPORT?(0,r.normalizePathTrailingSlash)(Fh().addLocale(s,...a)):s};(typeof t.default=="function"||typeof t.default=="object"&&t.default!==null)&&typeof t.default.__esModule>"u"&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)}(ir,ir.exports)),ir.exports}var hn={},Pi;function bu(){return Pi||(Pi=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"RouterContext",{enumerable:!0,get:function(){return o}});const o=ke._(x).default.createContext(null);process.env.NODE_ENV!=="production"&&(o.displayName="RouterContext")}(hn)),hn}var gn={},wi;function Hh(){return wi||(wi=1,function(e){"use client";Object.defineProperty(e,"__esModule",{value:!0});function t(u,f){for(var h in f)Object.defineProperty(u,h,{enumerable:!0,get:f[h]})}t(e,{CacheStates:function(){return s},AppRouterContext:function(){return i},LayoutRouterContext:function(){return a},GlobalLayoutRouterContext:function(){return c},TemplateContext:function(){return l}});const o=ke._(x);var s;(function(u){u.LAZY_INITIALIZED="LAZYINITIALIZED",u.DATA_FETCH="DATAFETCH",u.READY="READY"})(s||(s={}));const i=o.default.createContext(null),a=o.default.createContext(null),c=o.default.createContext(null),l=o.default.createContext(null);process.env.NODE_ENV!=="production"&&(i.displayName="AppRouterContext",a.displayName="LayoutRouterContext",c.displayName="GlobalLayoutRouterContext",l.displayName="TemplateContext")}(gn)),gn}var ar={exports:{}},cr={exports:{}},Ei;function ju(){return Ei||(Ei=1,function(e,t){Object.defineProperty(t,"__esModule",{value:!0});function r(i,a){for(var c in a)Object.defineProperty(i,c,{enumerable:!0,get:a[c]})}r(t,{requestIdleCallback:function(){return o},cancelIdleCallback:function(){return s}});const o=typeof self<"u"&&self.requestIdleCallback&&self.requestIdleCallback.bind(window)||function(i){let a=Date.now();return self.setTimeout(function(){i({didTimeout:!1,timeRemaining:function(){return Math.max(0,50-(Date.now()-a))}})},1)},s=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)}(cr,cr.exports)),cr.exports}var Ri;function Uh(){return Ri||(Ri=1,function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"useIntersection",{enumerable:!0,get:function(){return u}});const r=x,o=ju(),s=typeof IntersectionObserver=="function",i=new Map,a=[];function c(f){const h={root:f.root||null,margin:f.rootMargin||""},d=a.find(_=>_.root===h.root&&_.margin===h.margin);let p;if(d&&(p=i.get(d),p))return p;const g=new Map,y=new IntersectionObserver(_=>{_.forEach(b=>{const C=g.get(b.target),v=b.isIntersecting||b.intersectionRatio>0;C&&v&&C(v)})},f);return p={id:h,observer:y,elements:g},a.push(h),i.set(h,p),p}function l(f,h,d){const{id:p,observer:g,elements:y}=c(d);return y.set(f,h),g.observe(f),function(){if(y.delete(f),g.unobserve(f),y.size===0){g.disconnect(),i.delete(p);const b=a.findIndex(C=>C.root===p.root&&C.margin===p.margin);b>-1&&a.splice(b,1)}}}function u(f){let{rootRef:h,rootMargin:d,disabled:p}=f;const g=p||!s,[y,_]=(0,r.useState)(!1),b=(0,r.useRef)(null),C=(0,r.useCallback)(j=>{b.current=j},[]);(0,r.useEffect)(()=>{if(s){if(g||y)return;const j=b.current;if(j&&j.tagName)return l(j,E=>E&&_(E),{root:h==null?void 0:h.current,rootMargin:d})}else if(!y){const j=(0,o.requestIdleCallback)(()=>_(!0));return()=>(0,o.cancelIdleCallback)(j)}},[g,d,h,y,b.current]);const v=(0,r.useCallback)(()=>{_(!1)},[]);return[C,y,v]}(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)}(ar,ar.exports)),ar.exports}var lr={exports:{}},ur={exports:{}},yn={},Ai;function Wh(){return Ai||(Ai=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"normalizeLocalePath",{enumerable:!0,get:function(){return t}});function t(r,o){let s;const i=r.split("/");return(o||[]).some(a=>i[1]&&i[1].toLowerCase()===a.toLowerCase()?(s=a,i.splice(1,1),r=i.join("/")||"/",!0):!1),{pathname:r,detectedLocale:s}}}(yn)),yn}var Ii;function Vh(){return Ii||(Ii=1,function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"normalizeLocalePath",{enumerable:!0,get:function(){return r}});const r=(o,s)=>process.env.__NEXT_I18N_SUPPORT?Wh().normalizeLocalePath(o,s):{pathname:o,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)}(ur,ur.exports)),ur.exports}var dr={exports:{}},_n={},Ni;function Gh(){return Ni||(Ni=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"detectDomainLocale",{enumerable:!0,get:function(){return t}});function t(r,o,s){if(r){s&&(s=s.toLowerCase());for(const c of r){var i,a;const l=(i=c.domain)==null?void 0:i.split(":")[0].toLowerCase();if(o===l||s===c.defaultLocale.toLowerCase()||(a=c.locales)!=null&&a.some(u=>u.toLowerCase()===s))return c}}}}(_n)),_n}var Ti;function Kh(){return Ti||(Ti=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 o=arguments.length,s=new Array(o),i=0;i<o;i++)s[i]=arguments[i];if(process.env.__NEXT_I18N_SUPPORT)return Gh().detectDomainLocale(...s)};(typeof t.default=="function"||typeof t.default=="object"&&t.default!==null)&&typeof t.default.__esModule>"u"&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)}(dr,dr.exports)),dr.exports}var Oi;function Xh(){return Oi||(Oi=1,function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"getDomainLocale",{enumerable:!0,get:function(){return s}});const r=Lr(),o=process.env.__NEXT_ROUTER_BASEPATH||"";function s(i,a,c,l){if(process.env.__NEXT_I18N_SUPPORT){const u=Vh().normalizeLocalePath,f=Kh().detectDomainLocale,h=a||u(i,c).detectedLocale,d=f(l,void 0,h);if(d){const p="http"+(d.http?"":"s")+"://",g=h===d.defaultLocale?"":"/"+h;return""+p+d.domain+(0,r.normalizePathTrailingSlash)(""+o+g+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)}(lr,lr.exports)),lr.exports}var fr={exports:{}},ki;function Yh(){return ki||(ki=1,function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"addBasePath",{enumerable:!0,get:function(){return i}});const r=xu(),o=Lr(),s=process.env.__NEXT_ROUTER_BASEPATH||"";function i(a,c){return(0,o.normalizePathTrailingSlash)(process.env.__NEXT_MANUAL_CLIENT_BASE_PATH&&!c?a:(0,r.addPathPrefix)(a,s))}(typeof t.default=="function"||typeof t.default=="object"&&t.default!==null)&&typeof t.default.__esModule>"u"&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)}(fr,fr.exports)),fr.exports}var pr={exports:{}},Li;function Qh(){return Li||(Li=1,function(e,t){Object.defineProperty(t,"__esModule",{value:!0});function r(h,d){for(var p in d)Object.defineProperty(h,p,{enumerable:!0,get:d[p]})}r(t,{PrefetchKind:function(){return f},ACTION_REFRESH:function(){return o},ACTION_NAVIGATE:function(){return s},ACTION_RESTORE:function(){return i},ACTION_SERVER_PATCH:function(){return a},ACTION_PREFETCH:function(){return c},ACTION_FAST_REFRESH:function(){return l},ACTION_SERVER_ACTION:function(){return u}});const o="refresh",s="navigate",i="restore",a="server-patch",c="prefetch",l="fast-refresh",u="server-action";var f;(function(h){h.AUTO="auto",h.FULL="full",h.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)}(pr,pr.exports)),pr.exports}(function(e,t){"use client";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return P}});const o=ke._(x),s=Bh(),i=vu(),a=gu(),c=kr(),l=qh(),u=bu(),f=Hh(),h=Uh(),d=Xh(),p=Yh(),g=Qh(),y=new Set;function _(E,S,R,T,w,I){if(typeof window>"u"||!I&&!(0,i.isLocalURL)(S))return;if(!T.bypassPrefetchedCheck){const z=typeof T.locale<"u"?T.locale:"locale"in E?E.locale:void 0,k=S+"%"+R+"%"+z;if(y.has(k))return;y.add(k)}const N=I?E.prefetch(S,w):E.prefetch(S,R,T);Promise.resolve(N).catch(z=>{if(process.env.NODE_ENV!=="production")throw z})}function b(E){const R=E.currentTarget.getAttribute("target");return R&&R!=="_self"||E.metaKey||E.ctrlKey||E.shiftKey||E.altKey||E.nativeEvent&&E.nativeEvent.which===2}function C(E,S,R,T,w,I,N,z,k,U){const{nodeName:q}=E.currentTarget;if(q.toUpperCase()==="A"&&(b(E)||!k&&!(0,i.isLocalURL)(R)))return;E.preventDefault();const V=()=>{const G=N??!0;"beforePopState"in S?S[w?"replace":"push"](R,T,{shallow:I,locale:z,scroll:G}):S[w?"replace":"push"](T||R,{forceOptimisticNavigation:!U,scroll:G})};k?o.default.startTransition(V):V()}function v(E){return typeof E=="string"?E:(0,a.formatUrl)(E)}const P=o.default.forwardRef(function(S,R){let T;const{href:w,as:I,children:N,prefetch:z=null,passHref:k,replace:U,shallow:q,scroll:B,locale:V,onClick:G,onMouseEnter:F,onTouchStart:J,legacyBehavior:A=!1,...O}=S;T=N,A&&(typeof T=="string"||typeof T=="number")&&(T=o.default.createElement("a",null,T));const D=o.default.useContext(u.RouterContext),X=o.default.useContext(f.AppRouterContext),ne=D??X,ee=!D,M=z!==!1,te=z===null?g.PrefetchKind.AUTO:g.PrefetchKind.FULL;if(process.env.NODE_ENV!=="production"){let ie=function(se){return new Error("Failed prop type: The prop `"+se.key+"` expects a "+se.expected+" in `<Link>`, but got `"+se.actual+"` instead."+(typeof window<"u"?`
2
+ Open your browser's console to view the Component stack trace.`:""))};Object.keys({href:!0}).forEach(se=>{if(se==="href"&&(S[se]==null||typeof S[se]!="string"&&typeof S[se]!="object"))throw ie({key:se,expected:"`string` or `object`",actual:S[se]===null?"null":typeof S[se]})}),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(se=>{const Y=typeof S[se];if(se==="as"){if(S[se]&&Y!=="string"&&Y!=="object")throw ie({key:se,expected:"`string` or `object`",actual:Y})}else if(se==="locale"){if(S[se]&&Y!=="string")throw ie({key:se,expected:"`string`",actual:Y})}else if(se==="onClick"||se==="onMouseEnter"||se==="onTouchStart"){if(S[se]&&Y!=="function")throw ie({key:se,expected:"`function`",actual:Y})}else if((se==="replace"||se==="scroll"||se==="shallow"||se==="passHref"||se==="prefetch"||se==="legacyBehavior")&&S[se]!=null&&Y!=="boolean")throw ie({key:se,expected:"`boolean`",actual:Y})});const Q=o.default.useRef(!1);S.prefetch&&!Q.current&&!ee&&(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"&&ee&&!I){let ie;if(typeof w=="string"?ie=w:typeof w=="object"&&typeof w.pathname=="string"&&(ie=w.pathname),ie&&ie.split("/").some(K=>K.startsWith("[")&&K.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:Z,as:re}=o.default.useMemo(()=>{if(!D){const K=v(w);return{href:K,as:I?v(I):K}}const[ie,_e]=(0,s.resolveHref)(D,w,!0);return{href:ie,as:I?(0,s.resolveHref)(D,I):_e||ie}},[D,w,I]),$=o.default.useRef(Z),L=o.default.useRef(re);let oe;if(A)if(process.env.NODE_ENV==="development"){G&&console.warn('"onClick" was passed to <Link> with `href` of `'+w+'` 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 `'+w+'` but "legacyBehavior" was set. The legacy behavior requires onMouseEnter be set on the child of next/link');try{oe=o.default.Children.only(T)}catch{throw T?new Error("Multiple children were passed to <Link> with `href` of `"+w+"` but only one child is supported https://nextjs.org/docs/messages/link-multiple-children"+(typeof window<"u"?`
3
3
  Open your browser's console to view the Component stack trace.`:"")):new Error("No children were passed to <Link> with `href` of `"+w+"` but one child is required https://nextjs.org/docs/messages/link-no-children")}}else oe=o.default.Children.only(T);else if(process.env.NODE_ENV==="development"&&(T==null?void 0:T.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 ie=A?oe&&typeof oe=="object"&&oe.ref:R,[fe,pe,ue]=(0,h.useIntersection)({rootMargin:"200px"}),H=o.default.useCallback(ae=>{(M.current!==re||$.current!==Z)&&(ue(),M.current=re,$.current=Z),fe(ae),ie&&(typeof ie=="function"?ie(ae):typeof ie=="object"&&(ie.current=ae))},[re,ie,Z,ue,fe]);o.default.useEffect(()=>{process.env.NODE_ENV==="production"&&ne&&(!pe||!L||y(ne,Z,re,{locale:V},{kind:te},ee))},[re,Z,pe,V,L,D==null?void 0:D.locale,ne,ee,te]);const be={ref:H,onClick(ae){if(process.env.NODE_ENV!=="production"&&!ae)throw new Error('Component rendered inside next/link has to pass click event to "onClick" prop.');!A&&typeof G=="function"&&G(ae),A&&oe.props&&typeof oe.props.onClick=="function"&&oe.props.onClick(ae),ne&&(ae.defaultPrevented||C(ae,ne,Z,re,W,q,F,V,ee,L))},onMouseEnter(ae){!A&&typeof B=="function"&&B(ae),A&&oe.props&&typeof oe.props.onMouseEnter=="function"&&oe.props.onMouseEnter(ae),ne&&((!L||process.env.NODE_ENV==="development")&&ee||y(ne,Z,re,{locale:V,priority:!0,bypassPrefetchedCheck:!0},{kind:te},ee))},onTouchStart(ae){!A&&typeof J=="function"&&J(ae),A&&oe.props&&typeof oe.props.onTouchStart=="function"&&oe.props.onTouchStart(ae),ne&&(!L&&ee||y(ne,Z,re,{locale:V,priority:!0,bypassPrefetchedCheck:!0},{kind:te},ee))}};if((0,c.isAbsoluteUrl)(re))be.href=re;else if(!A||O||oe.type==="a"&&!("href"in oe.props)){const ae=typeof V<"u"?V:D==null?void 0:D.locale,_e=(D==null?void 0:D.isLocaleDomain)&&(0,d.getDomainLocale)(re,ae,D==null?void 0:D.locales,D==null?void 0:D.domainLocales);be.href=_e||(0,f.addBasePath)((0,l.addLocale)(re,ae,D==null?void 0:D.defaultLocale))}return A?o.default.cloneElement(oe,be):o.default.createElement("a",{...k,...be},T)});(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)})(zo,zo.exports);var Wh=zo.exports,Vh=Wh;const Me=Nr(Vh),bu=({className:e,children:t,hasPriority:r=!1,showVideo:o=!1,...s})=>{const{element:a,index:i,item:{image:c,slug:l,video:u},sendSelectItemEvent:p,order:h,CONSTANTS:d}=Ve(),f=U.getFirstImages({images:c,label:{first:d.MAIN_IMAGE,second:d.SECOND_IMAGE}});return n.jsxs("div",{...s,className:m.helpers.classNameConcat(Ne["product-card--image"],e),ref:a,style:{aspectRatio:d.PRODUCT_CARD_IMAGE_ASPECT_RATIO},children:[n.jsx(Me,{href:`/${l}/p`,onClick:p,onMouseUp:g=>{g.button===1&&p(),d.PLP_INFINITE_SCROLL&&sessionStorage.setItem(d.PLP_GRID_SCROLL_BACK.order,String(h))},children:n.jsx("div",{className:Ne["product-card--image--container"],children:Array.isArray(f)&&f.map(({url:g,alternateName:_},y)=>x.createElement(Be.Image,{...d.PRODUCT_IMAGE_DIMENSIONS.product_card,style:d.PRODUCT_IMAGE_DIMENSIONS.product_card,alt:_??"product image",key:y,...r&&{priority:y===0&&i<4},objectFit:"cover",src:g}))})}),d.PLP_SHOW_VIDEO_ON_PRODUCT_CARD&&o&&u&&n.jsx(ve.Video,{url:u,poster:f[0].url}),t]})};bu.displayName="ProductCard.Media.Media";const ju=({className:e,callback:t,children:r,...o})=>{const{isMobile:s,item:a,CONSTANTS:{PRODUCT_CARD_TEXTS:i}}=Ve(),{availability:{status:c}}=a;return c?null:n.jsxs("div",{...o,className:m.helpers.classNameConcat(Ne["product-card--outstock"],e),children:[n.jsx(m.Tag,{size:"small",variant:"secondary",title:i.disabled,children:i.disabled}),n.jsx(m.Button,{className:m.helpers.classNameConcat(e,"buy-button"),size:s?"medium":"large",variant:"quaternary",onClick:()=>{typeof t=="function"&&t(a)},children:i.notify})]})};ju.displayName="ProductCard.OutStock";const Cu=({children:e,className:t="",index:r,isMobile:o=!1,item:s,size:a,order:i,outStock:c,shelfTitle:l,CONSTANTS:u,WishListToggle:p,...h})=>n.jsx(yh,{item:s,isMobile:o,outStock:c,order:i,size:a,index:r,shelfTitle:l,CONSTANTS:u,WishListToggle:p,children:n.jsx("div",{...h,className:m.helpers.classNameConcat(Ne["product-card--wrapper"],t),"data-size":a,children:e})});Cu.displayName="ProductCard.Root";const Su=({disabled:e,label:t,size:r,value:o,onClick:s,...a})=>n.jsxs(m.ToggleSize.Wrapper,{...a,disabled:!1,outOfStock:e,size:r,onClick:s,children:[n.jsx(m.ToggleSize.DisabledAdornment,{}),n.jsx(m.ToggleSize.Text,{children:t})]});Su.displayName="ProductCard.SizeSelector.Item";const Pu=({active:e=!1,callback:t,selectedSku:r=null,item:o,setNotify:s})=>{const{item:a,isMobile:i,setSelectedSku:c,eventDataRef:l}=Ve();o.productId=a.id;const u=U.disableSKU(o),p=U.getSKUName(o,"tamanho");!u&&!l.current.availableSkus.includes(p)&&l.current.availableSkus.push(p);const h=x.useCallback(f=>{const g=r===f?null:f;typeof c=="function"&&c(g),typeof t=="function"&&t(g)},[t,c,r]),d=x.useCallback(()=>{if(u&&typeof s=="function"){s(a,o);return}h(o)},[o,s,h,u,a]);return n.jsx(Su,{active:e,disabled:u,label:p,onClick:()=>d(),size:i?"x-small":"small",value:o})};Pu.displayName="ProductCard.SizeSelector.SkuItem";const wu=({callback:e,className:t="",children:r,setNotify:o,...s})=>{const{isMobile:a,item:{isVariantOf:{hasVariant:i}},selectedSku:c}=Ve();return n.jsxs("div",{...s,className:m.helpers.classNameConcat(Ne["product-card--selectors--size"],t),"data-mobile":a,children:[n.jsx("div",{className:Ne["product-card--selectors--size--skus"],children:Array.isArray(i)&&i.map((l,u)=>n.jsx(Pu,{active:c===l,callback:e,item:l,selectedSku:c,setNotify:o},`size--${u}--${l.sku}`))}),n.jsx("div",{className:Ne["product-card--selectors--size--button"],children:r})]})};wu.displayName="ProductCard.SizeSelector";const Bo=({alt:e="",callback:t,more:r,total:o=4,src:s,url:a,...i})=>n.jsxs(m.ToggleStyle.Wrapper,{...i,onClick:()=>{typeof t=="function"&&t(a)},children:[n.jsx(m.ToggleStyle.DisabledAdornment,{}),n.jsxs(m.ToggleStyle.Texture,{children:[s&&n.jsx(Be.Image,{alt:e??s,src:s,height:34,width:34}),r&&n.jsx(m.TextStructure.DivWrapper,{className:Ne["product-card--selectors--style--more"],children:n.jsxs("p",{children:["+ ",o]})})]})]}),Gh=({children:e,callback:t,data:r,total:o=4,size:s,...a})=>{const{index:i}=Ve(),{triggerSelectItemEventRef:c}=le();return n.jsxs("div",{...a,children:[e,Array.isArray(r)&&r.slice(0,o).map((l,u)=>n.jsx(Bo,{callback:p=>{c.current.trigger=!0,c.current.index=i,typeof t=="function"&&t(p)},src:(l==null?void 0:l.textureImage)??"",alt:l==null?void 0:l.textureAlt,url:l==null?void 0:l.slug,size:s},u)),Array.isArray(r)&&(r==null?void 0:r.length)>o&&n.jsx(Bo,{size:s,total:r.length-o,more:!0})]})},Eu=({callback:e,className:t,data:r,images:o=[],findTexture:s,...a})=>{const{CONSTANTS:i}=Ve(),c=s||i.TEXTURE_IMAGE,l=o==null?void 0:o.find(u=>c.includes(u.alternateName));return n.jsx(Gh,{...a,callback:e,className:m.helpers.classNameConcat(Ne["product-card--selectors--style"],t),data:r,size:"x-small",children:l&&n.jsx(Bo,{active:!0,size:"x-small",src:l.url})})};Eu.displayName="ProductCard.StyleSelector";const Ru=({className:e,hasDecimal:t,...r})=>{const{isMobile:o,item:{offers:{lowPrice:s,highPrice:a},installments:{count:i,value:c}},eventDataRef:l}=Ve();l.current.priceInfo={price:s,listPrice:a};const u=U.formatPriceToCurrency(a,t),p=U.formatPriceToCurrency(s,t),h=U.formatPriceToCurrency(c??0),d=o?"horizontal":"stacked";return n.jsx("div",{...r,className:m.helpers.classNameConcat(Ne["product-card--price"],e),"data-mobile":o,children:n.jsx(m.ProductInfo.Root,{size:"small",layout:d,children:n.jsxs(m.ProductInfo.Wrapper,{size:"small",layout:d,children:[n.jsx(m.ProductInfo.ValuesWrapper,{children:p!==u?n.jsxs(n.Fragment,{children:[n.jsx(m.ProductInfo.Price,{label:"originalPrice",value:u,size:"small"}),n.jsx(m.ProductInfo.Price,{label:"discountPrice",value:p,size:"small"})]}):n.jsx(m.ProductInfo.Price,{label:"defaultPrice",value:p,size:"small"})}),i&&i>1&&c?n.jsx(m.ProductInfo.Price,{label:"installment",value:`${i}x ${h}`,size:"small"}):null]})})})};Ru.displayName="ProductCard.Price";const Au=({tag:e,className:t})=>{const{item:{name:r}}=Ve();return n.jsxs("div",{className:m.helpers.classNameConcat(Ne["product-card--title"],t),children:[n.jsx("div",{className:Ne["product-card--title--tag"],children:e?n.jsx(m.Tag,{size:"small",title:e.value,variant:"quaternary",adornment:{start:e.enableIcon&&e.icon?n.jsx(m.Icon,{name:e.icon,style:{color:e.iconColor}}):null},style:{background:e.tagColor,color:e.textColor},children:e.value}):n.jsx("div",{})}),n.jsx("div",{className:Ne["product-card--title--content"],children:r&&n.jsx(m.TextStructure.Root,{children:n.jsx(m.TextStructure.DivWrapper,{children:n.jsx("h3",{children:r})})})})]})};Au.displayName="ProductCard.Title";const Nu=({className:e,url:t,poster:r,...o})=>{const{element:s}=Ve();return x.useEffect(()=>{if(!(s!=null&&s.current))return;const a=s.current,i=a.querySelector("video");if(i){const c=new IntersectionObserver(p=>{p.forEach(h=>{U.setVideoPlay(h.isIntersecting,i,t)})},{root:null,rootMargin:"0px",threshold:.5}),l=()=>{i.setAttribute("data-loaded","true")},u=()=>{a&&(c.observe(a),i.addEventListener("loadeddata",l))};return document.readyState==="complete"?u():window.addEventListener("load",u),()=>{c.disconnect(),window.removeEventListener("load",u)}}return()=>null},[t,s]),n.jsx("div",{...o,className:m.helpers.classNameConcat(Ne["product-card--video"],e),children:t&&n.jsx(Be.Video,{autoPlay:!1,muted:!0,loop:!0,preload:"none",playsInline:!0,poster:r})})};Nu.displayName="ProductCard.Media.Video";const Iu=({children:e,className:t,type:r,...o})=>n.jsx("div",{...o,className:m.helpers.classNameConcat(Ne[`product-card--${r}`],t),children:e});Iu.displayName="ProductCard.Wrapper";const ve={Actions:lu,BuyButton:uu,Header:du,Media:bu,Root:Cu,OutStock:ju,Price:Ru,SizeSelector:wu,StyleSelector:Eu,Title:Au,Video:Nu,Wrapper:Iu},Kh="_carousel_245ib_1",Xh="_shelf__container_245ib_14",Yh="_shelf_without_carousel_245ib_34",Qh="_card_container_245ib_50",jt={carousel:Kh,"custom-controllers":"_custom-controllers_245ib_5",shelf__container:Xh,"controllers-arrows-bullets":"_controllers-arrows-bullets_245ib_23",shelf_without_carousel:Yh,card_container:Qh},ka=({title:e})=>n.jsx("div",{className:jt.shelf__container,children:e&&n.jsx(m.TextStructure.Root,{children:n.jsxs(m.TextStructure.DivWrapper,{children:[n.jsx("h2",{className:m.helpers.classNameConcat("typography-style-body-md",U.responsive["responsive-mobile-flex"]),children:e}),n.jsx("h2",{className:m.helpers.classNameConcat("typography-style-heading-md",U.responsive["responsive-desktop-flex"]),children:e})]})})}),Zh=({children:e,ICONS:t,itemsPerPage:r,title:o})=>{const{isMobile:s}=ce(),a=r[s?"mobile":"desktop"],{initialize:i,controller:c,itemsStyles:l,pagination:u}=m.Carousel.useCarousel({itemsPerPage:a,gap:10,loop:!0,direction:"row"}),p=x.Children.toArray(e).length;return s||p>=4?n.jsxs(m.Carousel.Root,{innerRef:d=>{i(d)},className:jt.carousel,children:[n.jsxs("div",{className:jt["custom-controllers"],children:[o&&n.jsx(ka,{title:o}),a<p&&n.jsxs(m.Carousel.Controller,{className:jt["controllers-arrows-bullets"],children:[n.jsxs(m.Carousel.Arrows,{children:[n.jsx(m.Button,{variant:"tertiary",onClick:()=>c==null?void 0:c.prevPage(),adornment:{start:n.jsx(m.Icon,{name:t.arrow_left})}}),n.jsx(m.Button,{variant:"tertiary",onClick:()=>c==null?void 0:c.nextPage(),adornment:{start:n.jsx(m.Icon,{name:t.arrow_right})}})]}),!s&&a>2&&n.jsx(m.Carousel.Bullets,{page:u.currentPage,total:u.totalPages,onBulletClick:d=>c==null?void 0:c.navigateTo(d)})]})]}),n.jsx(m.Carousel.Body,{children:x.Children.map(e,(d,f)=>n.jsx(m.Carousel.Item,{style:{...l,overflow:"hidden"},children:d},`${o}_${f}`))})]}):n.jsxs(n.Fragment,{children:[o&&n.jsx(ka,{title:o}),n.jsx("div",{className:jt.shelf_without_carousel,children:e})]})},Tu=({className:e,item:t,isMobile:r,size:o,shelfTitle:s,...a})=>{const i=x.useRef(null),{getAvailableProductTag:c}=it(),{availability:{status:l}}=t,u=h=>{const d=h.filter(f=>!a.CONSTANTS.TEXTURE_IMAGE.includes(f.keywords));return r?d.splice(0,2):d},p=c(t.cluster.highlights);return n.jsx("div",{ref:i,className:jt.card_container,children:n.jsxs(ve.Root,{...a,item:{...t,image:u(t.image)},isMobile:r,size:r?"small":"medium",outStock:!l,shelfTitle:s,children:[n.jsx(ve.Header,{product:t,tag:p==null?void 0:p.commercial}),n.jsx(ve.Media,{}),n.jsxs(ve.Wrapper,{type:"body",children:[n.jsx(ve.Title,{tag:p==null?void 0:p.institucional}),n.jsx(ve.Actions,{})]}),n.jsx(ve.Wrapper,{type:"footer"})]})})};Tu.displayName="ProductList.Card";const Lt={Shelf:Zh,Card:Tu},Ou=({CONSTANTS:e,inView:t,products:r,innerRef:o,WishListToggle:s})=>{const a=x.useMemo(()=>hh(r),[r]),{isMobile:i}=ce(),{addItemsToCart:c}=Ee(),{sendDataLayerEvent:l}=le(),{getAvailableProductTag:u}=it(),[p,h]=x.useState({totalPrice:0,products:{}}),d=()=>{const g=Object.values(p.products);c(g),l({functionKey:"skuEvents",data:{event:"add_to_cart",commonData:{products:g.map(_=>{const y=a.find(b=>b.node.id===_.productId);return y==null?void 0:y.node})},supportData:{selectedSkus:g,price:p.totalPrice}}})},f=({selectedProduct:g,productId:_})=>{const y=gh({selectedProduct:g,productId:_,prevState:p,mainSellerId:e.StoreConfig_MainSellerId});h(y)};return x.useEffect(()=>{if(!t||a.length===0)return;const g=e.BUY_PACKAGE.header.title;l({functionKey:"productListEvent",data:{event:"view_item_list",commonData:{products:a},customData:{item_list_name:g},outsideEcommerceData:{item_list_name:g}}})},[t]),n.jsxs("div",{className:nt.container,ref:o,children:[n.jsx("div",{className:nt["carousel-container"],style:{width:a.length<=3?"max-content":"75%"},children:n.jsx(Lt.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},_)=>{var C,v,j;const y=u(g.cluster.highlights),{availability:{status:b}}=g;return b?n.jsxs(ve.Root,{item:{...g,image:js.helpers.product.getFirstImages({images:g.image,label:{first:e.MAIN_IMAGE,second:e.SECOND_IMAGE}})},isMobile:i,size:"medium",index:_,shelfTitle:e.BUY_PACKAGE.header.title,CONSTANTS:e,WishListToggle:s,children:[n.jsx(ve.Header,{product:g,tag:y.commercial}),n.jsx(ve.Media,{}),n.jsxs(ve.Wrapper,{type:"body",children:[n.jsx(ve.Title,{tag:{value:(C=y.institucional)==null?void 0:C.value,enableIcon:(v=y.institucional)==null?void 0:v.enableIcon,icon:(j=y.institucional)==null?void 0:j.icon}}),n.jsx(ve.Actions,{children:n.jsx(ve.SizeSelector,{callback:P=>f({selectedProduct:P,productId:g.id})})})]})]},g.id):null})})}),n.jsx("div",{className:nt["add-cart-container"],children:n.jsx(mh,{handleAddAllToCart:d,selectedProducts:p,CONSTANTS:{BUY_BUTTON_LABELS:e.BUY_BUTTON_LABELS,BUY_PACKAGE:e.BUY_PACKAGE,FREIGHT_CALCULATION:e.FREIGHT_CALCULATION}})})]})},Ps={"btn-login":"_btn-login_yas63_12","btn-header":"_btn-header_yas63_22","header-animation":"_header-animation_yas63_35"},ws=({id:e})=>{const{setIsOpen:t,cartStore:{items:r}}=Ee(),{handleSelectContent:o}=le(),{CONSTANTS:s}=je(),a=r.reduce((i,c)=>i+(c.quantity??0),0);return n.jsx(m.Header.SupportItem,{onClick:()=>{t(!0),o({content:"header:minicart"})},id:e,children:n.jsxs(m.Badge.AutoPositioner,{children:[n.jsx(m.Badge.Count,{count:a,size:"medium",variant:"primary",style:{backgroundColor:"black",display:a>0?"flex":"none"}}),n.jsx(m.Icon,{name:s.header.ICONS.bag,size:"medium"})]})})};ws.displayName="Header.Bag";const Ut=({children:e,href:t,...r})=>t&&t!=="#"?n.jsx(Me,{href:t.startsWith("/")?t:`/${t}`,...r,children:e}):e,ku=()=>{const{headerData:e}=je(),{handleSelectContent:t}=le(),{reset:r,updateValue:o}=ct(),s=a=>{a?o(a):r()};return n.jsx(m.Header.Categories,{children:Array.isArray(e.categories)&&e.categories.map((a,i)=>n.jsx(Ut,{href:a.link,onMouseEnter:()=>s(a.submenuId),onFocus:()=>s(a.submenuId),children:n.jsx(m.Header.CategoryItem,{className:Ps["btn-header"],value:a.submenuId??null,adornment:{start:n.jsx(m.Icon,{name:a.iconStart}),end:n.jsx(m.Icon,{name:a.iconEnd})},style:{textWrap:"nowrap",gap:"0"},onClick:()=>{t({content:`header:${a.label}`})},children:a.label})},`category-${a.label}-${i}`))})};ku.displayName="Header.Categories";function Jh(){const{handleSelectContent:e}=le(),{CONSTANTS:t}=je(),{setValue:r}=is();return n.jsx(m.Header.SupportItem,{onClick:()=>{r(!0),e({content:"header:search"})},children:n.jsx(m.Icon,{name:t.header.ICONS.search,size:"medium"})})}const eg={"menu-subcategories-container":"_menu-subcategories-container_a93cr_1"},tg={"observer-wrapper":"_observer-wrapper_r43gk_1"},kr=({children:e,eventData:t,observerOptions:r,callBackWhenVisible:o,stopOnIntersection:s=!0,className:a,...i})=>{const c=x.useRef(null),l=rs(c,s,r),{sendDataLayerEvent:u}=le();return x.useEffect(()=>{l&&(typeof o=="function"&&o(),t&&u({...t}))},[l]),n.jsx("div",{...i,ref:c,className:m.helpers.classNameConcat(tg["observer-wrapper"],a),children:e})},Es=({thumbnails:e,category:t,isMobile:r=!0,callBack:o})=>{const{handleSelectPromotionEvent:s}=le(),a=50/e.length;return n.jsx("div",{className:eg["menu-subcategories-container"],children:e.map((i,c)=>{const l=r?i.srcMobile:i.srcDesk;if(!l)return null;const u={creative_name:"banner-menu",creative_slot:`banner-menu:${t}:${c+1}`,promotion_id:l,promotion_name:i.promotion_name};return n.jsx(kr,{eventData:{functionKey:"readyEvents",data:{event:"view_promotion",readyData:{ecommerce:{...u}}}},observerOptions:{delay:1e3},children:n.jsxs(Me,{href:i.link??"#",onClick:()=>{typeof o=="function"&&o(),s({updatePromotionRef:!0,promotion:u})},children:[n.jsx(Be.Image,{src:l,alt:i.label??l,width:500,height:500,sizes:`(max-width: 768px) 100vw, (max-width: 1023px) 75vw, ${a}vw`}),i.label&&n.jsx("p",{children:i.label})]})},`thumb-${i.label}-${c}`)})})};Es.displayName="Menu.Thumbnail";const Fo={"menu-desktop":"_menu-desktop_1b799_1","menu-categories":"_menu-categories_1b799_12"},rg="_link_w24h0_1",ng="_wrapper_w24h0_98",og="_text_w24h0_106",gn={link:rg,wrapper:ng,text:og},Ze=({children:e,adornments:t,className:r,disableUnderline:o,href:s,mode:a,size:i,title:c,onClick:l,disablePadding:u,...p})=>{const h=m.helpers.ValidateProp({fieldTypes:Ct.SizesSmallExtended,property:i,fallback:"medium"}),d=m.helpers.ValidateProp({fieldTypes:Ct.Mode,property:a,fallback:"default"});return n.jsx(Me,{...p,className:m.helpers.classNameConcat(gn.link,r),href:s&&s.length>0?s:"#","data-size":h,"data-variant":d,title:c||"NextLink","data-disable-underline":o??!1,"data-disable-padding":u??!0,children:n.jsxs("div",{className:gn.wrapper,onClick:l,children:[t==null?void 0:t.start,n.jsx("p",{className:gn.text,"data-size":h,children:e}),t==null?void 0:t.end]})})},Mu=({children:e,dividerOnRight:t=!0,subMenu:r,...o})=>{var l;const{router:s}=xe(),{reset:a}=ct(),{handleSelectContent:i}=le(),{CONSTANTS:c}=je();return n.jsxs("div",{...o,className:Fo["menu-categories"],children:[(l=r==null?void 0:r.subCategories)==null?void 0:l.map((u,p)=>{var f,g,_;const h=u.listCollapseDesk&&!((f=u.see_all)!=null&&f.link)?{expandAfterRowsQty:u.rowsToShowDesk}:{},d=u.listCollapseDesk&&!((g=u.see_all)!=null&&g.link)?{expansivesAdornments:{open:c.header.ICONS.add,close:c.header.ICONS.minus},expansivesLabels:{open:c.header.COMPONENT_LIST.listExpandLabel,close:c.header.COMPONENT_LIST.listCollapseLabel},iconSize:"x-small"}:{adornment:{end:n.jsx(m.Icon,{name:c.header.ICONS.arrow_right,size:"small"})}};return n.jsxs(m.ComponentList.Structure,{children:[n.jsx(Ut,{href:u.linkLabel,title:u.label,onClick:()=>{u.linkLabel&&(a(),i({content:`menu:${u.label??""}:${r.label??""}`}))},children:n.jsx(m.TextStructure.Root,{children:n.jsx(m.TextStructure.DivWrapper,{children:n.jsx("h2",{children:u.label})})})}),n.jsx(m.ComponentList.List,{columns:1,...h,className:Fo["submenu-categories"],children:u.items.map((y,b)=>n.jsx(m.ComponentList.ListItem,{id:`list-item-${y.label}-${b}`,children:n.jsx(Ze,{href:y.link??"#",size:"x-small",title:y.label??"",disableUnderline:!0,disablePadding:!0,onClick:()=>{a(),i({content:`menu:${u.label??""}:${y.label??""}:${r.label??""}`})},children:y.label})},`list-item-${y.label}-${b}`))}),((_=u.see_all)==null?void 0:_.link)&&n.jsx(m.ComponentList.Support,{...d,size:"small",onClick:()=>{var y;(y=u.see_all)!=null&&y.link&&(a(),i({content:`menu:${u.label??""}:${r.label}`}),s.push(u.see_all.link))},children:u.see_all.link&&u.see_all.label})]},`list-${u.label}-${p}`)}),t&&n.jsx(m.Utils.Divider,{size:"small",direction:"vertical"})]})};Mu.displayName="Menu.Categories";const Lu=({children:e,dividerOnBottom:t=!0,...r})=>{const{CONSTANTS:o}=je();return n.jsxs(n.Fragment,{children:[n.jsx("div",{...r,className:Fo["menu-desktop"],style:{...r.style,justifyContent:o.header.ALIGNMENT_MENU},children:e}),t&&n.jsx(m.Utils.Divider,{size:"small"})]})};Lu.displayName="Menu.MenuRoot";const yn={Root:Lu,Categories:Mu,Thumbnail:Es},Du=()=>{const{headerData:e,CONSTANTS:t}=je(),r=wr(),{reset:o}=ct();return n.jsx(m.Header.SubMenu,{children:Array.isArray(e.subMenus)&&e.subMenus.map((s,a)=>{const{thumbnails:i,label:c,id:l}=s,u=l===r,p=i==null?void 0:i.some(h=>!!h.srcDesk);return n.jsxs(yn.Root,{id:l,style:u?{display:"flex",zIndex:t.header.Z_INDEX_WAR.menu_desktop}:{display:"none"},dividerOnBottom:u,children:[n.jsx(yn.Categories,{dividerOnRight:!!p,subMenu:s}),Array.isArray(i)&&n.jsx(yn.Thumbnail,{thumbnails:i,isMobile:!1,category:c,callBack:o})]},`submenu-${l}-${a}`)})})};Du.displayName="Header.SubMenu";const $u=()=>{const{handleSelectContent:e}=le(),{CONSTANTS:t}=je();return n.jsx(Me,{href:"/favoritos",children:n.jsx(m.Header.SupportItem,{onClick:()=>e({content:"header:wishlist"}),children:n.jsx(m.Icon,{name:t.header.ICONS.favorite_false,size:"medium"})})})};$u.displayName="Header.WishList";const zu=()=>{const{CONSTANTS:e,userMenuDesktopRef:t}=je(),{handleSelectContent:r}=le(),{reset:o}=ct(),{setValue:s}=zt();return n.jsxs(n.Fragment,{children:[n.jsxs(m.Header.Wrapper,{children:[n.jsx(m.Header.Logo,{style:{width:"100%"},children:n.jsx(Me,{href:"/",onMouseEnter:o,children:n.jsx(m.Icon,{name:e.header.ICONS.logo,size:"x-large",onClick:()=>{r({content:"header:logo"})}})})}),n.jsx(ku,{}),n.jsxs(m.Header.Support,{onMouseEnter:o,style:{justifyContent:"flex-end"},children:[n.jsx(Jh,{}),n.jsx(m.Header.SupportItem,{onClick:()=>{s(!0),r({content:"header:user_menu"})},className:Ps["btn-login"],innerRef:t,children:n.jsx(m.Icon,{name:e.header.ICONS.person,size:"medium"})}),n.jsx($u,{}),n.jsx(ws,{id:"cart-button"})]})]}),n.jsx(Du,{})]})};zu.displayName="Header.HeaderDesktopWrapper";const sg="_divider_1lexj_199",we={"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:sg,"menu-navigationbar-item":"_menu-navigationbar-item_1lexj_206","menu-categories-textstructure-modifier":"_menu-categories-textstructure-modifier_1lexj_210"},Bu=({children:e,mobileBannerAlt:t,mobileBannerSrc:r,onClick:o,textColor:s,...a})=>n.jsx("button",{onClick:o,className:we["menu-categories-btn"],children:r?n.jsxs(m.Banner.Container,{...a,className:we["menu-body-banner-container-modifier"],children:[n.jsx(m.Banner.ImageWrapper,{style:{width:"100%"},children:n.jsx(Be.Image,{src:r,alt:t??r,className:we["menu-categories__banner"],width:343,height:128,unoptimized:!0})}),n.jsx(m.Banner.Slot,{verticalAlignment:"center",horizontalAlignment:"start",children:n.jsx(m.TextStructure.Root,{children:n.jsx(m.TextStructure.DivWrapper,{className:we["menu-categories-textstructure-modifier"],children:n.jsx("h2",{className:"typography-style-body-xs",style:s?{color:s}:{},children:e})})})})]}):n.jsx("h2",{...a,children:e})});Bu.displayName="Menu.MenuCategories";const Fu=({children:e,link:t})=>{const{reset:r}=gt();return t?n.jsx(Me,{href:t??"#",onClick:r,children:e}):e};Fu.displayName="Menu.MenuCategoriesWrapper";const qu=({subcategory:e,submenuLabel:t})=>{var l,u,p;const{router:r}=xe(),{reset:o}=gt(),{handleSelectContent:s}=le(),{CONSTANTS:a}=je(),i=e.listCollapseMobile&&!((l=e.see_all)!=null&&l.link)?{expandAfterRowsQty:e.rowsToShowMobile}:{},c=e.listCollapseMobile&&!((u=e.see_all)!=null&&u.link)?{expansivesAdornments:{open:a.header.ICONS.add,close:a.header.ICONS.minus},expansivesLabels:{open:a.header.COMPONENT_LIST.listExpandLabel,close:a.header.COMPONENT_LIST.listCollapseLabel},iconSize:"x-small"}:{adornment:{end:n.jsx(m.Icon,{name:a.header.ICONS.arrow_right,size:"small"})}};return n.jsxs(m.ComponentList.Structure,{className:we["menu-submenu--component-list-modifier"],children:[n.jsx(Ut,{href:e.linkLabel,title:e.label,onClick:()=>{o(),s({content:`menu:${e.label??""}:${t}`})},children:n.jsx(m.TextStructure.Root,{children:n.jsx(m.TextStructure.DivWrapper,{children:n.jsx("h2",{className:"typography-style-body-sm-strong",children:e.label})})})}),n.jsx(m.ComponentList.List,{columns:1,...i,className:we["submenu-categories"],children:e.items.map((h,d)=>n.jsx(m.ComponentList.ListItem,{id:`list-item-${h.label}-${d}`,divider:!0,children:n.jsx(Ze,{href:h.link??"#",size:"x-small",title:h.label??"",disableUnderline:!0,onClick:()=>{o(),s({content:`menu:${e.label??""}:${h.label}:${t}`})},children:h.label})},`list-item-${h.label}-${d}`))}),((p=e.see_all)==null?void 0:p.link)&&n.jsx(m.ComponentList.Support,{...c,size:"small",onClick:()=>{var h;o(),s({content:`menu:${e.label??""}:${t}`}),(h=e.see_all)!=null&&h.link&&r.push(e.see_all.link)},children:e.see_all.link&&e.see_all.label})]})};qu.displayName="Menu.SubMenuSubCategory";const Hu=({submenu:e})=>{var a;const t=wr(),{handleCloseSubMenu:r}=Ft(),{reset:o}=ct(),{CONSTANTS:s}=je();return n.jsxs("div",{className:we["menu-submenu--item"],style:{display:t===e.id?"flex":"none"},children:[n.jsx(m.TextStructure.Root,{adornment:{start:n.jsx(m.Icon,{name:s.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&&n.jsx(m.TextStructure.DivWrapper,{style:{position:"absolute",left:"50%",transform:"translate(-50%)"},children:n.jsx("h2",{className:"typography-style-body-md-strong",children:e.label})})}),n.jsx("div",{className:we["menu-submenu--thumbnails"],children:Array.isArray(e.thumbnails)&&n.jsx(Es,{thumbnails:e.thumbnails,isMobile:!0,category:e.label,callBack:o})}),(a=e==null?void 0:e.subCategories)==null?void 0:a.map((i,c)=>n.jsx(qu,{subcategory:i,submenuLabel:e.label},`list-${i.label}-${c}`))]})};Hu.displayName="Menu.SubMenuItem";const Uu=()=>{const{headerData:e}=je(),t=wr(),{reset:r}=ct(),{bodyRef:o}=Ft();return n.jsx(m.Modal.RootWithoutPortal,{isOpen:!!t,setIsOpen:r,parent:o.current,variant:"sideLeft",style:{position:"absolute",width:"100%"},className:we["menu-submenu-modal-modifiier"],children:n.jsx("div",{className:we["menu-submenu"],children:e.subMenus.map((s,a)=>n.jsx(Hu,{submenu:s},`submenu-${s.id}-${a}`))})})};Uu.displayName="Menu.SubMenu";const Wu=({className:e,...t})=>{const{headerData:r}=je(),{setValue:o}=ct(),{bodyRef:s}=Ft(),{handleSelectContent:a}=le();return n.jsxs("div",{...t,ref:s,id:"menu-body",className:we["menu-body"],children:[n.jsx("div",{className:we["menu-categories-container"],children:r.categories.map((i,c)=>{const l=i.submenuId?{}:{"data-close":!0};return n.jsx(Fu,{link:i.submenuId?null:i.link,children:n.jsx(Bu,{onClick:()=>{o(i.submenuId??null),a({content:`menu:${i.label}`})},mobileBannerSrc:i.mobileBannerSrc,mobileBannerAlt:i.mobileBannerAlt,textColor:i.textColor,...l,children:i.mobileBannerAlt})},`menu-categories-${c}`)})}),n.jsx(Uu,{})]})};Wu.displayName="Menu.MenuBody";const Vu=({title:e,subtitle:t})=>{const{CONSTANTS:r}=je();return n.jsxs("div",{className:we["menu-header-wrapper"],style:t?{alignItems:"start"}:{alignItems:"center"},children:[(e||t)&&n.jsx(m.TextStructure.Root,{children:n.jsxs(m.TextStructure.DivWrapper,{children:[e&&n.jsx("h2",{className:"typography-style-body-md",children:e}),t&&n.jsx("h3",{children:t})]})}),n.jsx(m.Button,{adornment:{end:n.jsx(m.Icon,{name:r.header.ICONS.close})},variant:"tertiary",className:we["menu-close"],"data-close":!0})]})};Vu.displayName="Menu.MenuHeaderWrapper";const Gu=({navigationLinks:e})=>{const{reset:t}=gt(),{handleSelectContent:r}=le();return e?n.jsx("nav",{className:we["menu-header-navlinks"],children:e.map((o,s)=>n.jsx(Ze,{href:o.link??"#",adornments:{start:o.iconStart&&n.jsx(m.Icon,{name:o.iconStart}),end:o.iconEnd&&n.jsx(m.Icon,{name:o.iconEnd})},onClick:()=>{t(),r({content:`menu:navigationlinks-${o.label}`})},children:o.label},s))}):null};Gu.displayName="Menu.MenuHeaderNavLinks";const Ku=()=>{const{headerData:e}=je();return n.jsxs("div",{className:we["menu-header-container"],children:[n.jsx(Vu,{title:e.title,subtitle:e.subtitle}),n.jsx(Gu,{navigationLinks:e.navigationLinks})]})};Ku.displayName="Menu.MenuHeaderContainer";const Xu=({children:e})=>{const{documentBodyRef:t}=Ft(),{CONSTANTS:r}=je(),o=as(),{setValue:s}=gt();return n.jsx(m.Modal.RootWithoutPortal,{isOpen:o,setIsOpen:s,parent:t.current,variant:"sideLeft",style:{position:"fixed",zIndex:r.header.Z_INDEX_WAR.menu_mobile,bottom:"unset",top:0,overflowY:"hidden"},className:we["modal-modifier"],children:n.jsx("div",{className:we["menu-mobile"],children:e})})};Xu.displayName="Menu.MenuRoot";const Yu=({children:e,...t})=>n.jsxs(n.Fragment,{children:[n.jsx(m.Button,{...t,className:we["menu-navigationbar-item"],children:e}),n.jsx(m.Utils.Divider,{direction:"vertical",size:"small",className:we.divider})]});Yu.displayName="Menu.NavigationBarItem";const Qu=()=>{const{setIsOpen:e}=Ee(),{reset:t}=gt(),{setValue:r}=zt(),{handleSelectContent:o}=le(),{CONSTANTS:s}=je(),{router:a}=xe();return n.jsx(m.Card,{id:"menu-navigationbar",shadow:!0,className:we["menu-navigationbar"],style:{zIndex:s.header.Z_INDEX_WAR.menu_mobile_navigation_bar},children:s.header.MENU_INFO.navigation_bar.items.map(i=>n.jsx(Yu,{size:"small",variant:"tertiary",iconNameStart:i.button_icon,onClick:()=>{i.href&&a.push(i.href),t(),i.openUserMenu&&r(!0),i.openCart&&e(!0),o({content:`menu:${i.eventContent}`})},children:i.button_text}))})};Qu.displayName="Menu.NavigationBar";const dr={Root:Xu,NavigationBar:Qu,Header:Ku,Body:Wu},Zu=()=>{const e=x.useRef(null),{CONSTANTS:t,userMenuMobileRef:r}=je(),{MENU_NAVIGATION_BAR_ALLOWED:o,ICONS:s,MENU_MOB_BTN_SIDE:a="right"}=t.header,{handleSelectContent:i}=le(),{setValue:c}=is(),{setValue:l}=gt(),{setValue:u}=zt();return n.jsxs(n.Fragment,{children:[n.jsxs(m.Header.Wrapper,{children:[a==="left"&&n.jsx(m.Header.SupportItem,{onClick:()=>l(!0),innerRef:e,children:n.jsx(m.Icon,{name:s.menu,size:"medium"})}),n.jsx(m.Header.Logo,{style:{width:"100%",justifyContent:"center"},children:n.jsx(Me,{href:"/",children:n.jsx(m.Icon,{name:s.logo,size:"x-large",onClick:()=>{i({content:"header:logo"})}})})}),n.jsxs(m.Header.Support,{children:[n.jsx(m.Header.SupportItem,{onClick:()=>{c(!0),i({content:"header:search"})},children:n.jsx(m.Icon,{name:s.search,size:"medium"})}),n.jsx(m.Header.SupportItem,{onClick:()=>{u(!0),i({content:"header:user_menu"})},innerRef:r,children:n.jsx(m.Icon,{name:s.person,size:"medium"})}),n.jsx(ws,{}),a==="right"&&n.jsx(m.Header.SupportItem,{onClick:()=>l(!0),innerRef:e,children:n.jsx(m.Icon,{name:s.menu,size:"medium"})})]})]}),n.jsx(ol,{children:n.jsxs(dr.Root,{children:[n.jsx(dr.Header,{}),n.jsx(dr.Body,{}),o?n.jsx(dr.NavigationBar,{}):n.jsx(n.Fragment,{})]})})]})};Zu.displayName="Header.HeaderMobileWrapper";const ag="_root_wvekm_126",He={"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:ag},Ju=({className:e,children:t,...r})=>n.jsx("div",{...r,className:m.helpers.classNameConcat(He["user-menu--content"],e),children:t});Ju.displayName="UserMenu.Content";var ed=(e=>(e.Account="account",e))(ed||{});const td=({className:e,cashBack:t,credits:r,link:o,total:s,...a})=>{const i=t?U.formatPriceToCurrency(t):void 0,c=r?U.formatPriceToCurrency(r):void 0,l=s?U.formatPriceToCurrency(s):void 0;return n.jsx(m.Credits.Account,{...a,className:m.helpers.classNameConcat(He["user-menu--credits"],e),icon:"wallet",showIcon:!0,cashBackValue:i,creditsValue:c,linkMore:o,totalValue:l,type:ed.Account})};td.displayName="UserMenu.Credits";const rd=({className:e,children:t,description:r,text:o,...s})=>{const{isMobile:a}=ce();return n.jsx("div",{...s,className:m.helpers.classNameConcat(He["user-menu--login"],e),"data-mobile":a,children:n.jsxs("div",{className:He["user-menu--login--content"],children:[n.jsx(m.TextStructure.Root,{children:n.jsxs(m.TextStructure.DivWrapper,{alignContent:"flex-start",alignItems:"flex-start",children:[n.jsx("h3",{className:"typography-style-body-lg-strong",children:o}),n.jsx("p",{children:r})]})}),t]})})};rd.displayName="UserMenu.Login";const nd=({className:e,isLogged:t,onLogoutClick:r,ICONS:o,storeConfig:s})=>{const{isMobile:a}=ce(),i=Em({ICONS:o,storeConfig:s}).filter(c=>c.deviceShown==="both"||c.deviceShown===(a?"mobile":"desktop"));return n.jsxs("ul",{className:m.helpers.classNameConcat(He["user-menu--menu"],e),children:[Array.isArray(i)&&i.map((c,l)=>n.jsx("li",{children:n.jsx(Ze,{href:c.href??"#",size:"small",disableUnderline:!0,adornments:{start:n.jsx(m.Icon,{name:c.icon??"delete"})},children:c.label})},l)),t?n.jsx("li",{children:n.jsx(Ze,{href:`${s.secureSubdomain}/api/vtexid/pub/logout?scope=mariafilo&returnUrl=${encodeURIComponent(`${s.storeUrl}`)}`,size:"small",disableUnderline:!0,onClick:r,adornments:{start:n.jsx(m.Icon,{name:wm(o)})},children:Pm})}):n.jsx(n.Fragment,{})]})};nd.displayName="UserMenu.Menu";const od=e=>{const t=x.useRef(null),r=x.useCallback(a=>{t.current&&!t.current.contains(a.target)&&e()},[e]),o=x.useCallback(a=>{t.current&&!t.current.contains(a.target)&&e()},[e]),s=x.useCallback(a=>{a.key==="Escape"&&e()},[e]);return x.useEffect(()=>(document.addEventListener("mousedown",r),document.addEventListener("keydown",s),document.addEventListener("touchstart",o),()=>{document.removeEventListener("mousedown",r),document.removeEventListener("keydown",s),document.removeEventListener("touchstart",o)}),[r,s,o]),{ref:t}},ig=e=>{if(!e||typeof window>"u")return 0;const t=window.getComputedStyle(e);return parseInt(t.padding,10)},cg=(e,t,r)=>{if(!(e instanceof HTMLElement)||!(t instanceof HTMLElement))return{left:0,top:0};const{height:o,left:s,top:a,width:i}=t.getBoundingClientRect(),c=e.getBoundingClientRect(),l=e!=null&&e.parentElement?ig(e==null?void 0:e.parentElement):0;return{left:s+i/2-(c.width+l*2),top:a+o+r}},sd=x.createContext({}),lg=({children:e,delay:t=600,gap:r=20,isOpen:o,setIsOpen:s,target:a,...i})=>{const c=x.useRef(null),[l,u]=x.useState(!1),[p,h]=x.useState({left:0,top:0}),{ref:d}=od(()=>{u(!0),typeof window<"u"&&(c.current=window.setTimeout(()=>{s(!1),u(!1)},t))});return x.useEffect(()=>{if(a&&(d!=null&&d.current)){const{left:f,top:g}=cg(d.current,a,r??0);h({left:f,top:g}),u(!1)}},[r,o,a,d]),n.jsx(sd.Provider,{value:x.useMemo(()=>({...i,...p,contentRef:d,isLeaving:l,isOpen:o,setIsOpen:s,setIsLeaving:u,target:a}),[i,p,d,l,o,s,u,a]),children:e})},ad=()=>{const e=x.useContext(sd);if(e===void 0)throw new Error("useUserMenuContext must be used within a UserMenuProvider");return e},id=({children:e,isMobile:t=!1,Z_INDEX_WAR:r})=>{const{isOpen:o,setIsOpen:s}=ad();return n.jsxs(m.Modal.Root,{"data-user":"user-menu--modal",isMobile:t??!1,isOpen:o,setIsOpen:s,variant:"sideBottom",className:He["modal-root-modifier"],style:{zIndex:r.user_menu_mobile},children:[n.jsx(m.Modal.Header,{navigation:"top",className:He["modal-header-modifier"],children:n.jsx(m.Modal.Controls,{navigation:"top",isMobile:!0,className:He["modal-controls-modifier"]})}),n.jsx(m.Modal.Body,{children:e})]})};id.displayName="UserMenu.Modal";const cd=({children:e,component:t,Z_INDEX_WAR:r,isMobile:o,...s})=>n.jsx(lg,{...s,className:He.root,children:o?n.jsxs(n.Fragment,{children:[n.jsx(ut.Modal,{Z_INDEX_WAR:r,children:t}),e]}):n.jsx(ut.Tooltip,{component:t,style:{width:304,zIndex:r.user_menu},Z_INDEX_WAR:r,children:e})});cd.displayName="UserMenu.Root";const ld=({children:e,component:t,Z_INDEX_WAR:r,...o})=>{const{contentRef:s,left:a,isLeaving:i,isOpen:c,top:l}=ad();return n.jsx(m.Tooltip.Root,{arrow:"top-right",component:n.jsx("div",{...o,ref:s,children:t}),className:m.helpers.classNameConcat(He["user-menu--tooltip"],He["tooltip-modifier"]),isLeaving:i,isOpen:c,left:a,size:"medium",position:"top",top:l,style:{zIndex:r.user_menu},children:n.jsx("div",{className:He["user-menu--tooltip"],children:e})})};ld.displayName="UserMenu.Tooltip";const ut={Credits:td,Content:Ju,Login:rd,Menu:nd,Modal:id,Root:cd,Tooltip:ld},Rs=()=>{var _,y,b;const e=Ht(),{isMobile:t}=ce(),{userMenuMobileRef:r,userMenuDesktopRef:o,CONSTANTS:{header:s},storeConfig:a}=je(),{ICONS:i,Z_INDEX_WAR:c,MENU_INFO:l}=s,u=Vc(),{setValue:p}=zt(),h=()=>{window.location.href=`${a.secureSubdomain}/api/io/login?returnUrl=${encodeURIComponent(`${a.storeUrl}`)}`},d=!!((_=e.user)!=null&&_.userId),{cashback:f,credits:g}=x.useMemo(()=>{var C,v;return{credits:((C=e==null?void 0:e.getCurrentCredits())==null?void 0:C.credits)??0,cashback:((v=e==null?void 0:e.getCurrentCredits())==null?void 0:v.cashback)??0}},[e]);return n.jsx(ut.Root,{component:n.jsxs(ut.Content,{children:[n.jsx(ut.Login,{description:Am(d),text:Rm(d,((y=e==null?void 0:e.user)==null?void 0:y.firstName)??((b=e==null?void 0:e.user)==null?void 0:b.email)),children:!d&&n.jsx(m.Button,{size:"medium",variant:"quaternary",onClick:()=>h(),children:l.login.button_text})}),g+f&&d?n.jsx(ut.Credits,{credits:g,cashBack:f,link:`${a.secureSubdomain}/account#/meus-creditos`,total:g+f}):n.jsx(n.Fragment,{}),n.jsx(m.Utils.Divider,{}),n.jsx(ut.Menu,{isLogged:d,onLogoutClick:()=>e.logout(),ICONS:i,storeConfig:a})]}),target:t?r.current:o.current,isOpen:u,isMobile:t,setIsOpen:p,Z_INDEX_WAR:c})};Rs.displayName="UserMenu";const ug=x.createContext({}),dg=({children:e})=>{const{sendDataLayerEvent:t}=le(),{cartStore:r,isOpen:o}=Ee();x.useEffect(()=>{o&&t({functionKey:"viewCartEvent",data:{commonData:{cartStore:r}}})},[o]),x.useEffect(()=>{var a,i,c;if(r.id&&!((i=(a=r.marketingData)==null?void 0:a.marketingTags)!=null&&i.includes("faststore"))){const{id:l}=r;dt.post("/api/checkout/order-form/attachments/marketing-data",{orderFormId:l,marketingData:{...r==null?void 0:r.marketingData,marketingTags:kc(((c=r.marketingData)==null?void 0:c.marketingTags)??[])}}).catch(u=>{console.error(u)})}},[r]);const s=({cartItem:a,oldQuantity:i,newQuantity:c})=>{t({functionKey:"skuEvents",data:{event:i>c?"remove_from_cart":"add_to_cart",commonData:{products:[{...a,price:a.price/100,listPrice:a.listPrice/100}]},customData:{quantity:c},supportData:{selectedSkus:[a]}}})};return n.jsx(ug.Provider,{value:{handleUpdateItemQuantityEvent:s},children:e})},fg="_fadeInOut_ottz1_1",pg="_fadeOut_ottz1_1",de={"mc--cashback":"_mc--cashback_ottz1_1","mc--cashback--positive":"_mc--cashback--positive_ottz1_21","mc--cashback--alert":"_mc--cashback--alert_ottz1_24","mc--container--actions":"_mc--container--actions_ottz1_28","mc--container--actions--secondary":"_mc--container--actions--secondary_ottz1_36","mc--container--actions--toggle-size-modifier":"_mc--container--actions--toggle-size-modifier_ottz1_54","mc--footer":"_mc--footer_ottz1_58","mc--footer--actions":"_mc--footer--actions_ottz1_67","mc--footer--actions-button":"_mc--footer--actions-button_ottz1_73","mc--footer--total":"_mc--footer--total_ottz1_89","mc--footer--total--info":"_mc--footer--total--info_ottz1_94","mc--footer--total--info--content":"_mc--footer--total--info--content_ottz1_99","mc--field":"_mc--field_ottz1_143","mc--body":"_mc--body_ottz1_183","mc--body--products":"_mc--body--products_ottz1_190","mc--body--empty--feedback":"_mc--body--empty--feedback_ottz1_198","mc--body--empty--text":"_mc--body--empty--text_ottz1_203","mc--header":"_mc--header_ottz1_217","mc--header--subtitle":"_mc--header--subtitle_ottz1_243","mc--notify":"_mc--notify_ottz1_284","mc--notify--content":"_mc--notify--content_ottz1_299","mc--notify--item":"_mc--notify--item_ottz1_312",fadeInOut:fg,fadeOut:pg,"mc--card":"_mc--card_ottz1_374","mc--card--actions":"_mc--card--actions_ottz1_379","mc--card--actions--secondary":"_mc--card--actions--secondary_ottz1_387","mc--card--actions--add-remove":"_mc--card--actions--add-remove_ottz1_414","mc--card--actions--gift":"_mc--card--actions--gift_ottz1_428","mc--card--content-info":"_mc--card--content-info_ottz1_444","mc--card--details":"_mc--card--details_ottz1_451","mc--card--link":"_mc--card--link_ottz1_456","mc--product--unavailable":"_mc--product--unavailable_ottz1_464","mc--card--name":"_mc--card--name_ottz1_467","mc--card--price":"_mc--card--price_ottz1_482","mc--card--price--old-price":"_mc--card--price--old-price_ottz1_492","mc--card--price--price-details":"_mc--card--price--price-details_ottz1_496","mc--card--product-link":"_mc--card--product-link_ottz1_507","mc--discount":"_mc--discount_ottz1_517","mc--discount--body":"_mc--discount--body_ottz1_526","minicart--modal-modifier":"_minicart--modal-modifier_ottz1_547"},ud=({item:{id:e,message:t,callback:r},removeNotification:o,ICONS:s})=>{const a=x.useRef(null),i=()=>{var l;(l=a.current)==null||l.setAttribute("data-animation-out","true")},c=l=>{o(l)};return n.jsx("div",{className:de["mc--notify--item"],ref:a,onAnimationEnd:()=>c(e),children:n.jsxs(m.SnackBar.Structure,{size:"medium",children:[n.jsx(m.SnackBar.Content,{title:t}),n.jsxs(m.SnackBar.Support,{children:[typeof r=="function"&&n.jsx(m.Button,{onClick:()=>{r(),i()},size:"small",variant:"tertiary",children:"Desfazer"}),n.jsx(m.Button,{iconNameStart:s.close,iconSize:"small",onClick:()=>i(),variant:"tertiary"})]})]})},e)};ud.displayName="MiniCart.Notify.Item";const dd=({ICONS:e})=>{const t=os(),{removeNotification:r}=ss(),o=t.length?[...t].sort((s,a)=>a.id-s.id):[];return n.jsx("div",{className:de["mc--notify"],children:n.jsx("div",{className:de["mc--notify--content"],children:Array.isArray(o)&&o.map(s=>n.jsx(ud,{item:s,removeNotification:r,ICONS:e},s.id))})})};dd.displayName="MiniCart.Notifications";const mg=({handleSendEvent:e,onHandleRemove:t,product:r,MINICART_CONFIG:o,...s})=>{const a=us(),{toggleProduct:i}=ds(),{itemOffered:{isVariationOf:{productGroupID:c}},quantity:l}=r;return n.jsx(m.Button,{...s,adornment:{end:n.jsx(m.Icon,{name:`favorite-${a.includes(c)?"true":"false"}`,size:"small"})},onClick:()=>{i(c),a.includes(c)||t({texture:"mini-cart-wishlist",title:`${o.messages.add_wishlist}`},l,()=>i(c)),e(a.includes(c)?"remove_from_wishlist":"add_to_wishlist","productEvents")},children:o.messages.add_wishlist_button})},fd=({handleSendEvent:e,product:t,ICONS:r,MINICART_CONFIG:o,...s})=>{const{addToCart:a,removeToCart:i}=Ee(),{bundleItems:c=[],id:l,uniqueId:u,seller:p,offerings:h,quantity:d}=t,f=(g,_,y)=>{i(l,g.title,()=>{typeof y=="function"&&y(),a({id:l,quantity:_,seller:p},{id:l,texture:g.texture},!0)})};return n.jsxs(n.Fragment,{children:[n.jsxs("div",{className:de["mc--card--actions--add-remove"],children:[o.has_wishlist_button&&n.jsx(mg,{...s,product:t,handleSendEvent:e,onHandleRemove:f,ICONS:r,MINICART_CONFIG:o}),n.jsx(m.Button,{...s,adornment:{end:n.jsx(m.Icon,{name:r.delete,size:"small"})},variant:"secondary",state:"danger",onClick:()=>{f({texture:"mini-cart",title:`${o.messages.remove}`},d),e("remove_from_cart","skuEvents")},children:o.messages.remove_button})]}),o.has_gift_option&&n.jsx(bt.Gift,{uniqueId:u,bundleItems:c,offerings:h,ICONS:r,MINICART_CONFIG:o})]})};fd.displayName="MiniCart.Card.Actions";const pd=({bundleItems:e,offerings:t,uniqueId:r,ICONS:o,MINICART_CONFIG:s})=>{const[a,i]=x.useState(!1),{toggleGiftItemCart:c}=Ee(),l=()=>{if(t instanceof Object&&Array.isArray(t)){const[h]=t;if(h){i(!0);const d=e.some(f=>f.id===h.id);c(r,String(h.id),d).then(()=>i(!1))}}},u=t[0],p=e.find(h=>h.id===u.id);return u&&"id"in u?n.jsx("div",{className:de["mc--card--actions--gift"],children:n.jsx(m.Checkbox,{adornment:n.jsx(m.Icon,{name:o.check}),checked:!!p,disabled:a,label:s.messages.giftPackage,onChange:l})}):null};pd.displayName="MiniCart.Card.Gift";const md=({itemOffered:e})=>{const t=U.updatedResizedImg(e==null?void 0:e.image[0].url,{width:200,height:300});return n.jsx(Me,{href:`${e==null?void 0:e.slug}`,className:de["mc--card--product-link"],children:n.jsx(Be.Image,{alt:(e==null?void 0:e.image[0].alternateName)||"Produto",src:t||"",width:108,height:164})})};md.displayName="MiniCart.Card.Media";const hd=({name:e,skuName:t,tagName:r,className:o})=>n.jsxs(n.Fragment,{children:[r&&n.jsx(m.Tag,{variant:"quaternary",title:r,style:{textTransform:"uppercase"},children:r}),n.jsx("p",{className:m.helpers.classNameConcat(de["mc--card--name"],o),children:U.getProductNameWithoutSku(e??"",t??"")})]});hd.displayName="MiniCart.Card.Name";const gd=({total:e,totalList:t})=>n.jsx(m.ProductInfo.Root,{children:n.jsx(m.TextStructure.Root,{children:n.jsx(m.TextStructure.DivWrapper,{className:de["mc--card--price"],children:n.jsx(m.ProductInfo.Wrapper,{className:de["mc--card--price--details"],size:"small",layout:"horizontal",children:t&&e!==t?n.jsxs(n.Fragment,{children:[n.jsx(m.ProductInfo.Price,{label:"originalPrice",value:U.formatPriceToCurrency(t),size:"small"}),n.jsx(m.ProductInfo.Price,{label:"discountPrice",value:U.formatPriceToCurrency(e),size:"small"})]}):n.jsx(m.ProductInfo.Price,{label:"defaultPrice",value:U.formatPriceToCurrency(e),size:"small"})})})})});gd.displayName="MiniCart.ProductPrice";const yd=({product:e,TEXTURE_IMAGE:t,TOGGLE_STYLE_MODIFIER:r})=>{var u;const[o,s]=x.useState(""),a=x.useRef(null),{cartStore:{options:i}}=Ee(),c=e.itemOffered.isVariationOf.productGroupID,l=x.useCallback(()=>{var h;const p=(h=i==null?void 0:i.find(d=>d.id===c))==null?void 0:h.texture;if(p){s(p);return}fetch("/api/catalog/product/info",{method:"POST",priority:"low",body:JSON.stringify({ids:[c]})}).then(d=>d.json()).then(d=>{const f=d.data[0].items.find(g=>g.itemId===e.id);if(f){const g=f.images.find(_=>t.includes(_.imageLabel));if(g!=null&&g.imageUrl){s(g.imageUrl);return}s(f.images[0].imageUrl)}}).catch(d=>{console.error(d)})},[i,c,e.id]);return x.useEffect(()=>{if(!a.current)return;new IntersectionObserver(l).observe(a.current)},[l]),n.jsx("div",{ref:a,children:n.jsx(m.ToggleStyle.Wrapper,{size:"small",style:r,children:n.jsx(m.ToggleStyle.Texture,{children:o?n.jsx(Be.Image,{alt:((u=e.itemOffered)==null?void 0:u.image[0].alternateName)??"Produto",src:o,width:164,height:164,style:r}):n.jsx(Ql,{})})})})};yd.displayName="MiniCart.Card.Style";const _d=({product:e,NAME_SPLIT_SYMBOL:t,TEXTURE_IMAGE:r,TOGGLE_STYLE_MODIFIER:o})=>{const{size:s}=U.getColorAndSizeFromSkuName(e.itemOffered.skuName??"",t);return n.jsxs(m.Utils.Row,{alignItems:"center",children:[n.jsx(yd,{product:e,TEXTURE_IMAGE:r,TOGGLE_STYLE_MODIFIER:o}),n.jsx(m.Utils.Divider,{direction:"vertical",size:"small",style:{height:24}}),s&&n.jsx(m.ToggleSize.Wrapper,{size:"small",variation:"fill",className:de["mc-container-actions--toggle-size-modifier"],children:n.jsx(m.ToggleSize.Text,{children:s})})]})};_d.displayName="MiniCart.Card.Sku";const bt={Actions:fd,Gift:pd,Media:md,Name:hd,Price:gd,Sku:_d},hg=e=>{var t;return{price:e.sellingPrice/100,listPrice:e.listPrice/100,totalPrice:(((t=e.priceDefinition)==null?void 0:t.total)??0)/100,totalListPrice:e.listPrice*e.quantity/100}},vd=({available:e=!0,index:t,product:r,ICONS:o,MINICART_CONFIG:s,NAME_SPLIT_SYMBOL:a,TEXTURE_IMAGE:i,TOGGLE_STYLE_MODIFIER:c})=>{var h,d;const{sendDataLayerEvent:l}=le(),u=hg(r),p=(f,g)=>{const _={commonData:{...r,...u},customData:{index:t},event:f};if(g==="skuEvents"){const y={...r,...u};_.supportData={selectedSkus:[y]},_.commonData.products=[y]}l({functionKey:g,data:_})};return n.jsxs("div",{className:m.helpers.classNameConcat(de["mc--card"],e?"":de["mc--card--unavailable"]),children:[n.jsx(bt.Media,{itemOffered:r.itemOffered}),n.jsxs("div",{className:de["mc--card--content-info"],children:[n.jsx(bt.Name,{name:((h=r.itemOffered)==null?void 0:h.name)??"",skuName:(d=r.itemOffered)==null?void 0:d.skuName}),n.jsxs("div",{className:de["mc--card--details"],children:[n.jsx("div",{className:de["mc--card--actions"],children:e?n.jsx(bt.Price,{total:u.price,totalList:u.listPrice}):n.jsx(m.Tag,{variant:"secondary",size:"small",children:"Indisponível"})}),n.jsxs("div",{className:de["mc--card--actions--secondary"],children:[e&&n.jsx(bt.Sku,{product:r,NAME_SPLIT_SYMBOL:a,TEXTURE_IMAGE:i,TOGGLE_STYLE_MODIFIER:c}),n.jsx(bt.Actions,{handleSendEvent:p,product:r,size:"small",variant:"tertiary",ICONS:o,MINICART_CONFIG:s})]})]})]})]})};vd.displayName="MiniCart.Card";const xd=({type:e="positive",ICONS:t,MESSAGE_CASHBACK:r})=>{var a;const{toExpire:o}=Ht(),s=((a=o==null?void 0:o.cashback)==null?void 0:a.reduce((i,c)=>i+c.remaining_value,0))??0;return s>0?n.jsxs("div",{className:m.helpers.classNameConcat(de["mc--cashback"],de[`mc--cashback--${e}`]),children:[n.jsx(m.Icon,{name:t.alert_circle,size:"medium"}),n.jsxs("p",{children:[n.jsx("span",{children:U.formatPriceToCurrency(s)})," ",r.title]})]}):null};xd.displayName="MiniCart.Cashback";const bd=({type:e,ICONS:t,MINICART_CONFIG:r})=>{const{addCouponSeller:o,removeCoupon:s,removeSellerCode:a,cartStore:{marketingData:i,openTextField:c}}=Ee(),[l,u]=x.useState(!1),[p,h]=x.useState(!1),d=x.useCallback(()=>{let y="";return e==="coupon"?y=(i==null?void 0:i.coupon)??"":y=String((c==null?void 0:c.value)??""),y.toUpperCase()??""},[i,c,e]),[f,g]=x.useState(!!d()),_=async y=>{h(!0),!!d()&&(e==="coupon"?await s():await a(),g(!1),u(!1)),await o(y,e).then(C=>{if(!C.statusOk&&y||C.code!==200){y?(u(!0),g(!1)):u(!1);return}g(!0),u(!1)}).catch(()=>u(!0)).finally(()=>h(!1))};return n.jsx(Le.Field,{hasError:l,hasSuccess:f,isLoading:p,onHandler:_,type:e,title:e==="coupon"?`${r.messages.descount_cupom_placeholder}`:`${r.messages.sellers_code_placeholder}`,value:d(),MINICART_CONFIG:r,ICONS:t})};bd.displayName="MiniCart.CouponSeller";const jd=({ICONS:e,MINICART_CONFIG:t,PLP_NOT_RESULT:r})=>{const{router:o}=xe(),s=()=>{o.push(r.link)};return n.jsxs(m.Utils.Column,{alignContent:"center",alignItems:"center",gap:"24px",className:de["mc--body--empty--feedback"],children:[n.jsx(m.TextStructure.Root,{children:n.jsx(m.TextStructure.DivWrapper,{children:n.jsxs("p",{className:`typography-style-body-xs ${de["mc--body--empty--text"]}`,children:[t.messages.empty_card," "]})})}),n.jsx(m.Button,{variant:"tertiary",size:"large",onClick:()=>s(),"data-close":!0,adornment:{end:n.jsx(m.Icon,{name:e.arrow_right,size:"medium"})},children:t.messages.empty_bag})]})};jd.displayName="MiniCart.Feedback";const gg=e=>{const t=e.replace(/\D/g,"");return t.length>5?`${t.slice(0,5)}-${t.slice(5,8)}`:t},Cd=({feedback:e,hasError:t,onHandler:r,hasSuccess:o,type:s,title:a,value:i,ICONS:c})=>{const[l,u]=x.useState(i);x.useEffect(()=>{t||u(i)},[i,t]);const p=()=>t?n.jsx(m.Icon,{name:c.delete_circle}):String(i).length&&o?n.jsx(m.Icon,{name:c.check_circle}):null,h=()=>{if(s==="seller"){const _=String(i).includes(" - ")?String(i).split(" - ")[0]:l;u(_)}},d=()=>{if(s==="seller"){const _=String(i).includes(" - ")?i:l;u(_)}},f=_=>{const y=_.currentTarget.value;if(y===""&&typeof r=="function"||o&&String(i).length>0&&y!==String(i)||t&&y!==String(i)){u(""),r("");return}if(s==="cep"){const C=gg(y);u(C)}else u(y)},g=_=>{if(_.key.toLocaleLowerCase()==="enter"&&typeof r=="function"){const y=_.currentTarget.value;r(y)}};return n.jsx(m.TextField.Input,{adornment:{end:p()},mode:"over-label",label:a,feedback:e,value:l,type:"text",onFocus:h,onBlur:d,onChange:f,onKeyDown:g})};Cd.displayName="MiniCart.Field.Input";const Sd=({title:e,ICONS:t,MINICART_CONFIG:r,...o})=>{const s=x.useRef(null),{hasSuccess:a,hasError:i,isLoading:c,onHandler:l,type:u,value:p}=o,h=()=>i?"error":String(p).length&&a?"success":"none",d=x.useCallback(()=>{if(s.current){const _=s.current.querySelector("input");_&&typeof l=="function"&&(p!==""||i?(l(""),_.value=""):l((_==null?void 0:_.value)??""))}},[l,p,i]),f=h();return n.jsx("div",{ref:s,children:n.jsx(m.TextField.Structure,{className:de["mc--field"],input:n.jsx(Cd,{...o,feedback:f,title:e,ICONS:t}),right:n.jsx(m.Button,{"data-has-success":!a,size:"medium",title:String(p).length&&a||i?"Remover":"Aplicar",onClick:()=>d(),disabled:c,children:String(p).length&&a||i?n.jsx(m.Icon,{name:"close",size:"small"}):`${r.messages.promo_code_button}`}),supportText:u==="cep"&&f==="success"?n.jsx(m.TextField.SupportText,{text:"Mais informações de frete na etapa a seguir",feedback:"success",title:"support"}):null})})};Sd.displayName="MiniCart.Field";const Pd=({children:e,ICONS:t,MINICART_CONFIG:r,NAME_SPLIT_SYMBOL:o,PLP_NOT_RESULT:s,TEXTURE_IMAGE:a,TOGGLE_STYLE_MODIFIER:i})=>{const{cartStore:{items:c,messages:l}}=Ee();return n.jsxs(m.Modal.Body,{className:de["mc--body"],children:[e,n.jsx("div",{className:de["mc--body--products"],children:Array.isArray(c)&&c.length?c.map((u,p)=>{const h=l.find(d=>{var f;return d.code==="withoutStock"&&((f=d.fields)==null?void 0:f.ean)===u.ean})!==void 0;return n.jsx(Le.Card,{available:!u.availability.includes("outStock")||!h,index:p,product:u,ICONS:t,MINICART_CONFIG:r,NAME_SPLIT_SYMBOL:o,TEXTURE_IMAGE:a,TOGGLE_STYLE_MODIFIER:i},`${u.id}-${u.itemOffered.sku}-${p}`)}):n.jsx(Le.Feedback,{ICONS:t,MINICART_CONFIG:r,PLP_NOT_RESULT:s})})]})};Pd.displayName="MiniCart.Body";const wd=({children:e,storeConfig:t,MINICART_CONFIG:r})=>{const{cartStore:o}=Ee();if(o.items.length===0)return null;const s=()=>{var i;const a=new URLSearchParams({orderFormId:o.id,...((i=o.marketingData)==null?void 0:i.utmCampaign)&&{utm_campaign:o.marketingData.utmCampaign}});window.location.href=`${t.checkoutUrl}?${a.toString()}#/cart`};return n.jsxs(m.Modal.Footer,{className:de["mc--footer"],children:[e,n.jsx("div",{className:de["mc--footer--actions"],children:n.jsx(m.Button,{variant:"primary",size:"large","data-close":!0,className:de["mc--footer--actions-button"],onClick:s,children:r.messages.checkout_button})})]})};wd.displayName="MiniCart.Modal.Footer";const Ed=({children:e,className:t,ICONS:r,MINICART_CONFIG:o})=>n.jsxs(m.Accordion.Wrapper,{className:de["mc--discount"],children:[n.jsx(m.Accordion.Header,{id:"frete",title:"Frete",closeIndicator:n.jsx(m.Icon,{name:r.arrow_up,size:"medium"}),openIndicator:n.jsx(m.Icon,{name:r.arrow_down,size:"medium"}),className:m.helpers.classNameConcat(de["mc--discount--header"],t),startOpen:o.promotion_input_starts_open,children:n.jsx(m.TextStructure.Root,{children:n.jsxs(m.TextStructure.DivWrapper,{children:[n.jsxs("h3",{className:"typography-style-body-sm",children:[o.messages.promo_code_title," "]}),n.jsx("p",{className:"typography-style-body-xs",children:o.messages.promo_code_subtitle})]})})}),n.jsx(m.Accordion.Body,{className:de["mc--discount--body"],children:e}),n.jsx(m.Utils.Divider,{direction:"horizontal",size:"small",style:{height:16}})]});Ed.displayName="MiniCart.Discount";const Rd=({discount:e,shipping:t,total:r})=>{var c;const{tags:o}=it(),s=r-Math.abs(e??0)+(t??0),a=t===0?"Frete Grátis":U.formatPriceToCurrency((t??0)/100),i=[{title:"Subtotal",value:U.formatPriceToCurrency(r/100)},{title:"Frete",value:t===void 0?"A calcular":a},{title:"Desconto",value:U.formatPriceToCurrency((e??0)/100)},{message:((c=o==null?void 0:o.flagCart)==null?void 0:c.flagTotal)??"",title:"Total",value:`1x de ${U.formatPriceToCurrency(s/100)}`}];return n.jsx("div",{className:de["mc--footer--total"],children:Array.isArray(i)&&i.map((l,u)=>n.jsxs("div",{className:de["mc--footer--total--info"],"data-discount":l.title==="Desconto",children:[n.jsx("p",{children:l.title}),n.jsxs("div",{className:de["mc--footer--total--info--content"],children:[l.message&&n.jsx(m.Tag,{variant:"primary",title:l.message,children:l.message}),n.jsx(m.ProductInfo.Price,{className:de["mc--footer--total--info"],label:l.title,value:l.value})]})]},u))})};Rd.displayName="MiniCart.Modal.Footer.Resume.Items";const Ad=({totalizers:e})=>{var s,a,i;const t=((s=e.find(c=>c.id==="Items"))==null?void 0:s.value)??0,r=(a=e.find(c=>c.id==="Discounts"))==null?void 0:a.value,o=(i=e.find(c=>c.id==="Shipping"))==null?void 0:i.value;return n.jsx(Rd,{discount:r??0,total:t,shipping:o})};Ad.displayName="MiniCart.Modal.Footer.Totals";const Nd=({ICONS:e,MINICART_CONFIG:t})=>{const{isMobile:r}=ce(),{cartStore:{items:o}}=Ee(),s=o.reduce((a,i)=>a+(i.quantity??0),0);return n.jsx(m.Modal.Header,{navigation:"top",className:de["mc--header"],children:n.jsxs(m.Modal.Controls,{navigation:"top",isMobile:!!r,children:[n.jsx(m.Modal.Title,{navigation:"top",title:t.messages.title}),n.jsx("span",{className:de["mc--header--subtitle"],children:s!==1?`[${s}] Produtos`:`[${s}] Produto`}),n.jsx(m.Button,{"data-close":!0,iconNameStart:e.close,size:"small",variant:"tertiary"})]})})};Nd.displayName="MiniCart.Modal.Header";const Id=({ICONS:e,MINICART_CONFIG:t})=>{const{cartStore:{shippingData:r},shipping:o,removeCEP:s}=Ee(),{sendDataLayerEvent:a}=le(),[i,c]=x.useState(!1),[l,u]=x.useState(!1),p=x.useCallback(()=>{var b;return((b=r==null?void 0:r.address)==null?void 0:b.postalCode)??""},[r]),[h,d]=x.useState(!!p()),f=()=>{d(!1),c(!1)},g=b=>{var C;if(typeof b=="object"&&(b!=null&&b.logisticsInfo))return(C=b.logisticsInfo)==null?void 0:C.reduce((v,j)=>{var T;const P=(T=j==null?void 0:j.slas)==null?void 0:T.find(w=>(w==null?void 0:w.id)===(j==null?void 0:j.selectedSla));if(!P)return v;const E=parseInt(String((P==null?void 0:P.shippingEstimate)??"").replace("bd","")),S=Number((((P==null?void 0:P.price)??0)/100).toFixed(2));if(v.shipping_tier===void 0)return v.shipping_tier=j==null?void 0:j.selectedSla,v.delivery_time=E.toString(),v.shipping=S,v.flag_retirada=(j==null?void 0:j.selectedDeliveryChannel)==="delivery"?"false":"true",v;const R=parseInt(v.delivery_time??"0");return E>R&&(v.delivery_time=E.toString()),v.shipping=(v.shipping??0)+S,v},{shipping_tier:void 0,delivery_time:void 0,flag_retirada:void 0,shipping:void 0,currency:"BRL"})},_=async b=>{const C=b.replace(/\D/g,"");if(C.length!==8)return!1;try{return!(await dt.get(`https://viacep.com.br/ws/${C}/json/`)).data.erro}catch{return!1}},y=async b=>{if(u(!0),!!p()||!(b!=null&&b.trim())){await s(),f(),u(!1);return}if(!await _(b)){c(!0),d(!1),u(!1);return}try{const P=await o(b);if(c(!1),P){d(!0);const E=g(P);E&&a({functionKey:"readyEvents",data:{event:"search_zipcode",readyData:E}})}}catch{c(!0)}finally{u(!1)}};return n.jsx(Le.Field,{hasSuccess:h,hasError:i,isLoading:l,onHandler:y,title:`${t.messages.shipping_calculation_placeholder}`,type:"cep",value:p(),ICONS:e,MINICART_CONFIG:t})};Id.displayName="MiniCart.Shipping";const Td=()=>{var r;const{tags:e}=it(),t=(r=e==null?void 0:e.flagCart)==null?void 0:r.flagHeader;return t!=null&&t.value?n.jsx(m.Tag,{variant:"tertiary",title:t==null?void 0:t.value,size:"small",adornment:{start:t!=null&&t.enableIcon&&(t!=null&&t.icon)?n.jsx(m.Icon,{name:t==null?void 0:t.icon,style:{color:t==null?void 0:t.iconColor}}):null},style:{background:t==null?void 0:t.tagColor,color:t==null?void 0:t.textColor,width:"100%"},children:t==null?void 0:t.value}):null};Td.displayName="MiniCart.TagMessage";const Le={Body:Pd,Card:vd,Cashback:xd,CouponSeller:bd,Discount:Ed,Field:Sd,Feedback:jd,Shipping:Id,Footer:wd,Header:Nd,TagMessage:Td,Totals:Ad},yg=({ICONS:e,MINICART_CONFIG:t,NAME_SPLIT_SYMBOL:r,PLP_NOT_RESULT:o,TEXTURE_IMAGE:s,TOGGLE_STYLE_MODIFIER:a,Z_INDEX_WAR:i,storeConfig:c,minicartStyleModifiers:l})=>{const{isOpen:u,setIsOpen:p,cartStore:h}=Ee(),{isMobile:d}=ce();return n.jsxs(m.Modal.Root,{className:m.helpers.classNameConcat(de["minicart--modal-modifier"],l),isMobile:!0,isOpen:u,setIsOpen:p,style:{zIndex:i.modal},variant:d?"sideBottom":"sideRight",children:[n.jsx(Le.Header,{ICONS:e,MINICART_CONFIG:t}),n.jsx(Le.Body,{ICONS:e,MINICART_CONFIG:t,NAME_SPLIT_SYMBOL:r,PLP_NOT_RESULT:o,TEXTURE_IMAGE:s,TOGGLE_STYLE_MODIFIER:a,children:n.jsx(Le.TagMessage,{})}),n.jsxs(Le.Footer,{MINICART_CONFIG:t,storeConfig:c,children:[n.jsxs(Le.Discount,{ICONS:e,MINICART_CONFIG:t,children:[n.jsx(Le.CouponSeller,{type:"seller",ICONS:e,MINICART_CONFIG:t}),n.jsx(Le.CouponSeller,{type:"coupon",ICONS:e,MINICART_CONFIG:t}),n.jsx(Le.Shipping,{ICONS:e,MINICART_CONFIG:t})]}),n.jsx(Le.Totals,{totalizers:h.totalizers})]}),n.jsx(dd,{ICONS:e})]})},Od=({tipBar:e,minicartStyleModifiers:t,menuV2:r})=>{const{structureRef:o,rootRef:s,CONSTANTS:a}=je(),{header:{HEADER_CONFIGS:i,Z_INDEX_WAR:c},minicart:l}=a;return n.jsx(m.Header.Structure,{innerRef:o,adornment:{start:e},style:{position:"sticky",top:0,zIndex:c.header},className:Ps["header-animation"],children:n.jsxs(m.Header.Root,{innerRef:s,style:{zIndex:c.header},variant:i.default_variant,interactiveVariant:i.interactive_variant,children:[r??n.jsxs(n.Fragment,{children:[n.jsx("div",{className:U.responsive["responsive-mobile-block"],style:{height:"100%",width:"100%",zIndex:c.header_mobile},children:n.jsx(Zu,{})}),n.jsx("div",{className:U.responsive["responsive-desktop-block"],style:{height:"100%",width:"100%",zIndex:c.header_desktop},children:n.jsx(zu,{})})]}),n.jsx(dg,{children:n.jsx(yg,{...l,minicartStyleModifiers:t})}),n.jsx(Cs,{title:"Produto adicionado à sua sacola!",CONSTANTS:a.addToCart}),n.jsx(Rs,{})]})})};Od.displayName="Header";const _g="_shippingFreight_6z8rf_6",vg="_shippingFreight__postalCodeGrid_6z8rf_10",xg="_shippingFreight__grid_6z8rf_14",bg="_shippingFreight__grid__title_6z8rf_18",jg="_shippingFreight__grid__remember_6z8rf_29",Cg="_postalCodeContainer_6z8rf_44",Sg="_deliveryStatusBar__tag_6z8rf_49",Pg="_deliveryStatusBarError__tag_6z8rf_66",wg="_deliveryInfo_6z8rf_74",Eg="_deliveryInfo__content_6z8rf_78",Rg="_deliveryInfo__text_6z8rf_84",Ag="_deliveryInfo__title_6z8rf_89",Ng="_deliveryInfo__subtitle_6z8rf_99",Ig="_deliveryInfo__tooltipIcon_6z8rf_109",Tg="_deliveryInfo__tooltip_6z8rf_109",Og="_freightGrid_6z8rf_148",kg="_freightContainer_6z8rf_155",Mg="_freightOption__content_6z8rf_160",Lg="_freightOption__value_6z8rf_166",Dg="_freightOption__title_6z8rf_177",$g="_freightOption__title_item_6z8rf_181",zg="_freightOption__paragraph_6z8rf_192",ge={shippingFreight:_g,shippingFreight__postalCodeGrid:vg,shippingFreight__grid:xg,shippingFreight__grid__title:bg,shippingFreight__grid__remember:jg,postalCodeContainer:Cg,deliveryStatusBar__tag:Sg,deliveryStatusBarError__tag:Pg,deliveryInfo:wg,deliveryInfo__content:Eg,deliveryInfo__text:Rg,deliveryInfo__title:Ag,deliveryInfo__subtitle:Ng,deliveryInfo__tooltipIcon:Ig,deliveryInfo__tooltip:Tg,freightGrid:Og,freightContainer:kg,freightOption__content:Mg,freightOption__value:Lg,freightOption__title:Dg,freightOption__title_item:$g,freightOption__paragraph:zg,"input-modifier":"_input-modifier_6z8rf_207","freight--tooltip":"_freight--tooltip_6z8rf_227"},Bg=({icon:e,title:t,subtitle:r,packageCount:o,packageUnit:s="",labelDescription:a,freightConfig:i,toolTipZIndex:c})=>{const[l,u]=x.useState(!1),p=x.useRef(null),h=()=>u(d=>!d);return n.jsxs("div",{className:ge.deliveryInfo,ref:p,children:[n.jsx(m.Tooltip.Root,{arrow:"bottom",component:n.jsx("div",{children:n.jsx("p",{children:i.messages.select_size_tag})}),id:"freight--tooltip",className:ge["freight--tooltip"],style:{zIndex:c},isOpen:!0,size:"medium",position:"top",top:"-170%",left:"4%",parent:p.current}),n.jsxs("div",{className:ge.deliveryInfo__content,children:[n.jsx("div",{className:ge.deliveryInfo__icon,children:n.jsx(m.Icon,{name:e,size:"medium"})}),n.jsxs("div",{className:ge.deliveryInfo__text,children:[n.jsxs("span",{className:ge.deliveryInfo__title,children:[t," ",o," ",s]}),r&&n.jsx("span",{className:ge.deliveryInfo__subtitle,children:r})]}),a&&n.jsxs("div",{className:ge.deliveryInfo__tooltipIcon,onMouseEnter:h,onMouseLeave:h,"aria-label":"Mostrar descrição",children:[n.jsx("span",{children:n.jsx(m.Icon,{name:i.icons.feedback_help,size:"small"})}),l&&n.jsx("div",{className:ge.deliveryInfo__tooltip,children:a})]})]})]})},Fg=({value:e,title:t,paragraph:r})=>n.jsx("div",{className:ge.freightOption,children:n.jsxs("div",{className:ge.freightOption__content,children:[n.jsx("span",{className:ge.freightOption__value,children:e}),n.jsx("span",{className:ge.freightOption__title,children:n.jsx(m.TextStructure.Root,{children:n.jsxs(m.TextStructure.DivWrapper,{className:ge.footer__item,children:[n.jsx("span",{className:ge.freightOption__title_item,children:t}),r&&n.jsx("span",{className:ge.freightOption__paragraph,children:r})]})})})]})}),qg=({children:e})=>n.jsx("div",{className:ge.freightContainer,children:e}),Hg=({children:e})=>n.jsx("div",{className:ge.freightGrid,children:e}),Ug=({children:e})=>n.jsx("div",{className:ge.postalCodeContainer,children:e}),Ma=({message:e,seller:t="",size:r="small",setError:o})=>n.jsx("div",{className:o?ge.deliveryStatusBarError:ge.deliveryStatusBar,children:n.jsxs(m.Tag,{title:e,className:o?ge.deliveryStatusBarError__tag:ge.deliveryStatusBar__tag,size:r,children:[e," ",!o&&t]})}),Wg=e=>{const t=parseInt(e,10);return t===1?`${t} dia`:`${t} dias`},Vg=e=>{var r,o,s;const t=[];return(s=(o=(r=e==null?void 0:e.logisticsInfo)==null?void 0:r[0])==null?void 0:o.slas)==null||s.forEach(a=>{t.push({id:a.id,name:a.name,price:a.price,shippingEstimate:a.shippingEstimate})}),t},Gg=({component:e,parent:t,top:r,left:o,target:s,contentRef:a,freightConfig:i,toolTipZIndex:c=999,...l})=>{const{isMobile:u}=ce();return n.jsx(n.Fragment,{children:u?n.jsx(m.Tooltip.Root,{arrow:"bottom",component:n.jsxs("div",{...l,ref:a,children:[e,n.jsx("p",{children:i.messages.select_size_tag})]}),id:"freight--tooltip",className:ge["freight--tooltip"],style:{zIndex:c},isOpen:!0,size:"medium",position:"top",top:"-170%",left:"4%",parent:t}):n.jsx(m.Tooltip.Root,{arrow:"bottom",component:n.jsxs("div",{...l,ref:a,children:[e,n.jsx("p",{children:i.messages.select_size_tag})]}),id:"freight--tooltip",className:ge["freight--tooltip"],style:{zIndex:c},isOpen:!0,size:"medium",position:"top",top:"-110%",left:"3%",parent:t})})},Kg=({onUpdateFreightItems:e,sellerId:t,size:r,skuId:o,quantity:s,setError:a,setIsButtonClicked:i,component:c,freightConfig:l,toolTipZIndex:u})=>{var N,I,z,O;const p=St(),h=St(W=>W.shipping),[d,f]=x.useState(),[g,_]=x.useState(!1),[y,b]=x.useState(!1),[C,v]=x.useState(!1),j=(I=(N=p.shippingData)==null?void 0:N.address)==null?void 0:I.postalCode,P=!(d!=null&&d.length)&&j?j:d,E=x.useRef(null),S=async W=>{const F=W.target.value.replace(/\D/g,"").slice(0,8);F.length>5?f(F.replace(/^(\d{5})(\d{1,3})/,"$1-$2")):f(F)},R=async W=>{const q=W.target.value.replace(/\D/g,"");try{if((await dt.get(`https://viacep.com.br/ws/${q}/json/`)).data.erro){a&&a(l.messages.cep_not_found),i(!1),b(!0);return}a&&a(""),b(!1)}catch{console.log("Erro ao validar o CEP. Tente novamente mais tarde.")}},T=async()=>{_(!0);try{const W=await dt.post("/api/checkout/simulation",{items:[{id:o,quantity:s,seller:t}],country:"BRA",postalCode:P});e(Vg(W.data))}catch(W){console.error("Erro ao atualizar o documento:",W)}finally{_(!1),h(P,"BRA")}},w=async()=>{if(!o){v(!0),setTimeout(()=>v(!1),1500);return}await R({target:{value:P}}),g||(T(),i(!0))};return n.jsxs("div",{ref:E,style:{position:"relative"},children:[!o&&C?n.jsx(Gg,{component:c,isOpen:C,parent:E.current,toolTipZIndex:u,freightConfig:l}):n.jsx(n.Fragment,{}),n.jsx("div",{style:{position:"relative"},children:n.jsx(m.TextField.Structure,{title:"structure",style:{width:"100%"},input:n.jsx(m.TextField.Input,{defaultValue:(O=(z=p.shippingData)==null?void 0:z.address)==null?void 0:O.postalCode,label:l.messages.text_input_label,title:"textfield",value:d,sizeVariant:r,onMouseOver:()=>o?null:v(!0),onMouseOut:()=>o?null:v(!1),mode:"simple",onChange:S,onKeyDown:W=>{W.key==="Enter"&&w()},className:ge["input-modifier"],feedback:y?"error":"none"}),right:n.jsx(m.Button,{onClick:w,size:r,title:"button",children:g?n.jsx(m.Spinner,{size:"small",indicatorColor:"#ffffff"}):l.messages.text_input_btn})})})]})},Xg=({children:e,freightConfig:t})=>n.jsxs("div",{className:ge.shippingFreight,children:[n.jsxs("div",{className:ge.shippingFreight__grid,children:[n.jsx("span",{className:ge.shippingFreight__grid__title,children:t.messages.title}),n.jsx("span",{className:ge.shippingFreight__grid__remember,children:n.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})})]}),n.jsx("div",{className:ge.shippingFreight__postalCodeGrid,children:e})]}),Yg=({children:e})=>n.jsx("div",{className:ge.freightContainer,children:e}),kd=({className:e,sellerId:t,skuId:r,quantity:o,size:s,seller:a,local:i,CONSTANTS_PROPS:c})=>{const{sendDataLayerEvent:l}=le(),[u,p]=x.useState(""),[h,d]=x.useState([]),[f,g]=x.useState(""),[_,y]=x.useState(!1),b=v=>p(v),C=v=>{d(v),l({functionKey:"readyEvents",data:{event:"search_zipcode",readyData:{shippings:v.map(j=>({shipping_tier:j.id,delivery_time:j.shippingEstimate.replace("bd",""),flag_pickup:j.name.toLowerCase().includes("retirada")?"true":"false",shipping:j.price,currency:c.currency||"BRL"}))}}})};return n.jsxs(Yg,{className:e,children:[n.jsxs(Xg,{freightConfig:c.freightConfig,children:[n.jsx(Ug,{children:n.jsx(Kg,{onUpdateFreightItems:C,skuId:r,quantity:o,size:s,sellerId:t,local:i,setError:g,setIsButtonClicked:y,freightConfig:c.freightConfig,toolTipZIndex:c.toolTipZIndex})}),f?n.jsx(Ma,{size:s,message:f,setError:g}):h.length>0&&n.jsx(Ma,{size:s,message:c.freightConfig.messages.delivered_by,seller:a})]}),_&&!f?h.length>0&&n.jsxs(qg,{children:[n.jsx(Hg,{children:h.filter(({id:v})=>!v.includes("Retirada")).map(v=>n.jsx(Fg,{id:v.id,value:U.freightParsePrice({valueInCents:v.price,hasFree:!1,freeTaxMessage:c.freightConfig.messages.free_tax}),title:v.name,paragraph:`${c.freightConfig.messages.prefix_days}${Wg(v.shippingEstimate)}`,radioValue:u,changeValue:b},v.id))}),c.deliveryInfoBoxesAllowed?n.jsx(Bg,{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}):n.jsx(n.Fragment,{})]}):null]})},pt={"pcd-navigation--breadcrumb":"_pcd-navigation--breadcrumb_e02qd_1","pdc-navigation--content":"_pdc-navigation--content_e02qd_28","pdc-navigation--filters":"_pdc-navigation--filters_e02qd_54","pdc-navigation--filters--content":"_pdc-navigation--filters--content_e02qd_67","pdc-navigation--selected":"_pdc-navigation--selected_e02qd_137","pdc-navigation--selected--container":"_pdc-navigation--selected--container_e02qd_150","pdc-navigation":"_pdc-navigation_e02qd_28"},Qg=({children:e,href:t,isLast:r,title:o,ICONS:s})=>n.jsx(m.BreadCrumb.Item,{adornment:{end:r&&n.jsx(m.Icon,{name:s.arrow_right})},children:r?n.jsx(Ze,{href:t??"/",size:"medium",title:o,disableUnderline:!0,children:e}):e}),Md=()=>{var a;const{state:e}=$e(),{ICONS:t}=ze(),r=e!=null&&e.term&&e.term.length>0?`/${e.term}`:"",o=decodeURIComponent((a=e==null?void 0:e.base)!=null&&a.length?e.base:r??r).slice(1).split("/"),s=Sl(o);return n.jsx("div",{className:pt["pcd-navigation--breadcrumb"],children:n.jsx(m.BreadCrumb.DivWrapper,{children:n.jsx(m.BreadCrumb.List,{children:Array.isArray(s)&&s.map((i,c)=>{var l,u;return x.createElement(Qg,{...i,isLast:c!==s.length-1,key:i.href,title:(l=i.name)==null?void 0:l.replace(/-/g," "),ICONS:t},(u=i.name)==null?void 0:u.replace(/-/g," "))})})})})};Md.displayName="PLPNavigation.BreadCrumb";const Ld=({children:e,...t})=>n.jsxs("div",{...t,className:pt["pdc-navigation--content"],children:[n.jsx(at.Filters,{}),e]});Ld.displayName="PLPNavigation.Content";const Zg="_sort_35wro_1",Mr={sort:Zg,"sort-list-wrapper":"_sort-list-wrapper_35wro_8","sort-list":"_sort-list_35wro_8","sort-button":"_sort-button_35wro_25"},Jg=({children:e,sortListOpen:t,btnAdornment:r,style:o,...s})=>n.jsx(m.Button,{...s,adornment:{end:t?r==null?void 0:r.listOpen:r==null?void 0:r.listClosed},size:"small",variant:"tertiary",style:{...o,textDecoration:"none"},className:Mr["sort-button"],children:e}),ey=e=>n.jsx(m.RadioButton.Radio,{...e}),ty=({children:e,className:t,name:r,...o})=>n.jsx(m.RadioButton.Group,{...o,name:r||"sort-group",className:m.helpers.classNameConcat(Mr["sort-list"],t),children:e}),ry=({children:e,className:t,shadow:r=!0,padding:o="small",height:s="fit-content",...a})=>n.jsx(m.Card,{...a,shadow:r,className:m.helpers.classNameConcat(Mr["sort-list-wrapper"],t),padding:o,height:s,children:e}),Dd=x.forwardRef(({children:e,className:t,...r},o)=>n.jsx("div",{...r,ref:o,className:m.helpers.classNameConcat(Mr.sort,t),children:e}));Dd.displayName="SortRoot";const Lr=({handleSelectValue:e,sortListOpen:t,setSortListOpen:r,searchParams:o,ICONS:s,...a})=>{var d;const i=(d=o==null?void 0:o.get("sort"))==null?void 0:d.replace(":","_"),[c,l]=x.useState(i),{sendDataLayerEvent:u}=le();x.useEffect(()=>{l(i||void 0)},[i]);const{ref:p}=od(()=>r(!1)),h=f=>{const g=f.target.value;l(g),typeof e=="function"&&e(g),u({functionKey:"filterEvent",data:{customData:{ordering:At.options[g]}}}),r(!1)};return n.jsxs(Dd,{...a,ref:p,children:[n.jsx(Jg,{btnAdornment:{listOpen:n.jsx(m.Icon,{name:s.arrow_up,size:"small"}),listClosed:n.jsx(m.Icon,{name:s.arrow_down,size:"small"})},sortListOpen:t,onClick:()=>r(!t),children:c?At.options[c]:At.placeholder},"sort-button"),t&&n.jsx(ry,{children:n.jsx(ty,{name:"sort-group",value:c??"",onChange:h,children:Object.keys(At.options).map(f=>n.jsx(ey,{label:At.options[f],value:f},f))})})]})};Lr.displayName="Sort";const $d=x.createContext({}),ny=({children:e,...t})=>{const[r,o]=x.useState(!1);return n.jsx($d.Provider,{value:x.useMemo(()=>({...t,openOrderBy:r,setOpenOrderBy:o}),[t,r,o]),children:e})},oy=()=>{const e=x.useContext($d);if(e===void 0)throw new Error("usePLPNavigationContext must be used within a PDCNavigationProvider");return e},zd=()=>{const{openOrderBy:e,onSort:t,setOpenFilters:r,setOpenOrderBy:o}=oy(),{ICONS:s,PDC_NAVIGATION:a,searchParams:i}=ze();return n.jsxs("div",{className:pt["pdc-navigation--filters"],children:[n.jsx(at.BreadCrumb,{}),n.jsxs("div",{className:pt["pdc-navigation--filters--content"],children:[n.jsx(Lr,{handleSelectValue:c=>t(c??"release_desc"),sortListOpen:e,setSortListOpen:o,ICONS:s,searchParams:i}),n.jsx(m.Button,{adornment:{end:n.jsx(m.Icon,{name:s.arrow_down})},onClick:()=>r(!0),size:"small",variant:"tertiary",children:a.filter_button}),n.jsx(at.Total,{})]})]})};zd.displayName="PLPNavigation.Filters";const Bd=({children:e,onSort:t,setOpenFilters:r,style:o,...s})=>{const a=x.useRef(null);return n.jsx(ny,{onSort:t,setOpenFilters:r,children:n.jsx("div",{...s,className:pt["pdc-navigation"],ref:a,style:{...o},children:n.jsx(at.Content,{children:e})})})};Bd.displayName="Root";const Fd=({callback:e,selected:t,...r})=>n.jsx("div",{...r,className:pt["pdc-navigation--selected"],children:n.jsx("div",{className:pt["pdc-navigation--selected--container"],children:Array.isArray(t)?t.map(o=>o.key==="productclusterids"?null:n.jsx(at.SelectedItem,{callback:e,facet:o},o.value)):null})});Fd.displayName="PLPNavigation.Selected";const As=({key:e,PLP_FILTERS:t})=>t.some(r=>r.key===e)?e==="cores-filtraveis":!1,Ns=({value:e,PLP_FILTERS_COLORS:t})=>{var r;return((r=t.find(o=>o.value===e))==null?void 0:r.color)??"#F2F2F2"},qd=({key:e,PLP_FILTERS:t})=>{var r;return(r=t.find(o=>o.key===e))==null?void 0:r.label},Hd=({key:e,PLP_FILTERS:t})=>{var r;return((r=t.find(o=>o.key===e))==null?void 0:r.order)??0},qo=({value:e})=>{const[t,r]=e.split(":").length===2?e.split(":"):[0,0],o=U.formatPriceToCurrency(Number(r));return`${U.formatPriceToCurrency(Number(t))} até ${o}`},Ud=({items:e})=>{const t=e.flatMap(s=>[s.range.from,s.range.to]),r=Math.min(...t.map(Math.abs)),o=Math.max(...t.map(Math.abs));return[r,o]},Wd=Object.freeze(Object.defineProperty({__proto__:null,checkedColor:As,createTagPrice:qo,getAbsoluteMinMax:Ud,getColor:Ns,getName:qd,getOrder:Hd},Symbol.toStringTag,{value:"Module"})),Ue={"filter--empty":"_filter--empty_1mjas_1","filter--item":"_filter--item_1mjas_14","filter--item--price":"_filter--item--price_1mjas_19","filter--item--toggle":"_filter--item--toggle_1mjas_19","filter--item--toggle--container":"_filter--item--toggle--container_1mjas_30","filter--modal--body":"_filter--modal--body_1mjas_79","filter--modal--body--content":"_filter--modal--body--content_1mjas_87","filter--modal--footer":"_filter--modal--footer_1mjas_96","filter--modal":"_filter--modal_1mjas_79","filter--loading":"_filter--loading_1mjas_176","filter--selected":"_filter--selected_1mjas_206","filter--selected--content":"_filter--selected--content_1mjas_210"},Vd=({columns:e=2,CONSTANTS:t,...r})=>{var a;const{filters:o,onToggleFacet:s}=Et();return n.jsxs("div",{...r,className:Ue["filter--modal--body--content"],children:[Array.isArray(o.facets)&&o.facets.map(i=>n.jsx(Je.Item,{columns:e,facet:i,onToggleFacet:s,CONSTANTS:t},i.key)),!((a=o.facets)!=null&&a.length)&&n.jsx(Je.Empty,{PLP_FILTERS_EMPTY:t.PLP_FILTERS_EMPTY})]})};Vd.displayName="Filter.Item.Content";const Gd=({PLP_FILTERS_EMPTY:e})=>{const t=()=>{window.history.back()};return n.jsxs("div",{className:Ue["filter--empty"],children:[n.jsxs(m.TextStructure.DivWrapper,{children:[n.jsx("h4",{children:e.title}),n.jsx("p",{children:e.subtitle})]}),n.jsx(m.Button,{onClick:()=>t(),variant:"tertiary",children:e.button})]})};Gd.displayName="Filter.Empty";const Kd=({columns:e,facet:t,onToggleFacet:r,CONSTANTS:o,...s})=>{const a=Hd({key:t.key,PLP_FILTERS:o.PLP_FILTERS}),i=()=>{if(t.__typename==="FacetBoolean"){if(t.key==="cores-filtraveis")return n.jsx(Je.Colors,{onToggleFacet:r,values:t.values,PLP_FILTERS:o.PLP_FILTERS,PLP_FILTERS_COLORS:o.PLP_FILTERS_COLORS});if(t.key==="tamanho")return n.jsx(Je.Sizes,{onToggleFacet:r,values:t.values,PLP_SIZE_ORDER:o.PLP_SIZE_ORDER});if(t.key==="category-2")return n.jsx(Je.Toggle,{columns:e,facetKey:t.key,onToggleFacet:r,values:t.values,ICONS:o.ICONS})}return t.__typename==="FacetRange"?n.jsx(Je.Price,{facet:t}):n.jsx("p",{children:"Filter not support!!!"})};return n.jsx("div",{...s,className:Ue["filter--item"],style:{order:a},children:n.jsxs(m.Accordion.Wrapper,{style:{width:"100%"},children:[n.jsx(m.Accordion.Header,{id:t.key,closeIndicator:n.jsx(m.Icon,{name:o.ICONS.arrow_up}),openIndicator:n.jsx(m.Icon,{name:o.ICONS.arrow_down}),children:n.jsx(m.TextStructure.Root,{children:n.jsx(m.TextStructure.DivWrapper,{children:n.jsx("h4",{className:"typography-style-body-sm",children:qd({key:t.key,PLP_FILTERS:o.PLP_FILTERS})})})})}),n.jsx(m.Accordion.Body,{children:i()})]})})};Kd.displayName="Filter.Item";const Xd=({onToggleFacet:e,values:t,PLP_FILTERS:r,PLP_FILTERS_COLORS:o,...s})=>n.jsx(Xe.Root,{...s,children:n.jsx(Xe.List,{children:Array.isArray(t)&&t.map(({key:a,selected:i,value:c})=>n.jsx(Xe.Option,{active:i,"data-color":As({key:a,PLP_FILTERS:r}),fill:Ns({value:c,PLP_FILTERS_COLORS:o}),onClick:()=>e({key:a,value:c}),type:"color"},`${a}-${c}`))})});Xd.displayName="Filter.Item.Color";const Yd=({facet:e,...t})=>{var u,p;const{filters:{selected:r},price:o,onToggleFacet:s}=Et(),[a,i]=(o==null?void 0:o.split(":").map(Number))??[0,100],[c,l]=((p=(u=r==null?void 0:r.find(({key:h})=>h==="price"))==null?void 0:u.value)==null?void 0:p.split(":").map(Number))??[a,i];return n.jsx("div",{...t,className:Ue["filter--item--price"],children:n.jsxs(m.Slider.SliderDual,{format:"price",initialValue:[c<a?a:c,l>i?i:l],min:a,max:i,type:"dual",step:1,onFinish:h=>{var d,f;h&&s({key:"price",value:`${(d=h.range)==null?void 0:d.min}:${(f=h.range)==null?void 0:f.max}`})},children:[n.jsx(m.TextStructure.Root,{children:n.jsx(m.TextStructure.DivWrapper,{children:n.jsx("p",{"data-min-value":!0})})}),n.jsx(m.TextStructure.Root,{children:n.jsx(m.TextStructure.DivWrapper,{children:n.jsx("p",{"data-max-value":!0})})})]})})};Yd.displayName="Filter.Item.Price";const Qd=({onToggleFacet:e,values:t,PLP_SIZE_ORDER:r,...o})=>{const s=[...t].sort((a,i)=>{const c=r.indexOf(a.name),l=r.indexOf(i.name);return c-l});return n.jsx(Xe.Root,{...o,children:n.jsx(Xe.List,{children:Array.isArray(s)&&s.map(({key:a,selected:i,value:c})=>n.jsx(Xe.Option,{active:i,text:c,type:"size",onClick:()=>e({key:a,value:c})},c))})})};Qd.displayName="Filter.Item.Sizes";const Zd=({columns:e,facetKey:t,onToggleFacet:r,values:o,ICONS:s,...a})=>n.jsx("div",{...a,className:Ue["filter--item--toggle"],children:n.jsx("div",{className:Ue["filter--item--toggle--container"],style:{gridTemplateColumns:`repeat(${e}, 1fr)`},children:Array.isArray(o)&&o.map(i=>n.jsx(m.Checkbox,{label:(i==null?void 0:i.name)??"",adornment:n.jsx(m.Icon,{name:s.check}),checked:i.selected,onChange:()=>r(i)},i.value))})});Zd.displayName="Filter.Item.Toggle";const Jd=({...e})=>{const{isLoading:t}=Et();return n.jsx("div",{className:Ue["filter--loading"],"data-active":t,...e,children:n.jsx(m.Spinner,{indicatorColor:"#000",background:"#222"})})};Jd.displayName="Filter.Loading";const ef=({children:e,className:t,isMobile:r=!1,CONSTANTS:{PLP_FILTERS_TITLE:o,ICONS:s}})=>{var p;const{deleteAllFacets:a,filters:i,isOpen:c,target:l,setIsOpen:u}=Et();return n.jsxs(m.Modal.Root,{className:m.helpers.classNameConcat(Ue["filter--modal"],t),isMobile:r??!1,isOpen:c,parent:l,setIsOpen:u,variant:r?"sideBottom":"sideRight",style:{zIndex:99},children:[n.jsxs(m.Modal.Header,{navigation:"top",children:[n.jsx(m.Modal.Controls,{navigation:"top",isMobile:r,children:n.jsx(m.Button,{"data-close":!0,iconNameStart:s.close,size:"small",variant:"tertiary",style:{marginLeft:"auto"}})}),n.jsx(m.Modal.Title,{navigation:"top",title:o})]}),n.jsxs(m.Modal.Body,{style:{width:500},children:[n.jsx("div",{className:Ue["filter--modal--body"],children:e}),n.jsx(Je.Loading,{})]}),n.jsx(m.Modal.Footer,{children:n.jsxs("div",{className:Ue["filter--modal--footer"],children:[n.jsx(m.Button,{"data-close":!0,size:"large",variant:"primary",children:(p=i.facets)!=null&&p.length?"ver resultados":"fechar"}),n.jsx(m.Button,{"data-close":!0,onClick:()=>a(),variant:"tertiary",children:"limpar filtros"})]})})]})};ef.displayName="Filter.Modal";const tf=({children:e,className:t,isMobile:r,CONSTANTS:o,...s})=>n.jsx(Fl,{...s,PLP_FILTERS:o.PLP_FILTERS,children:n.jsx(Je.Modal,{className:t,isMobile:r,CONSTANTS:o,children:e})});tf.displayName="Filter.Root";const rf=({ICONS:e,PLP_FILTERS_COLORS:t,PLP_FILTERS:r})=>{const{filters:o,onToggleFacet:s}=Et();return n.jsx("div",{className:Ue["filter--selected"],children:n.jsx("div",{className:Ue["filter--selected--content"],children:Array.isArray(o.selected)&&o.selected.map(({key:a,value:i})=>a==="productclusterids"?null:n.jsx(m.Tag,{title:a==="price"?qo({value:i}):i,adornment:{end:n.jsx(m.Icon,{name:e.close,size:"x-small"})},colorSquare:Ns({value:i,PLP_FILTERS_COLORS:t}),onClick:()=>s({key:a,value:i}),squareShow:As({key:a,PLP_FILTERS:r}),size:"medium",variant:"primary",children:a==="price"?qo({value:i}):i},i))})})};rf.displayName="Filter.Selected";const Je={Colors:Xd,Content:Vd,Empty:Gd,Modal:ef,Item:Kd,Root:tf,Loading:Jd,Selected:rf,Price:Yd,Sizes:Qd,Toggle:Zd},{checkedColor:sy,createTagPrice:La,getColor:ay}=Wd,nf=({callback:e,facet:t})=>{const{ICONS:r,PLP_FILTERS_COLORS:o,PLP_FILTERS:s}=ze();return n.jsx(m.Tag,{title:(t==null?void 0:t.key)==="price"?La({value:t.value}):t.value.toUpperCase(),adornment:{end:n.jsx(m.Icon,{name:r.close,size:"x-small"})},colorSquare:ay({value:t.value,PLP_FILTERS_COLORS:o}),onClick:()=>{typeof e=="function"&&e(t,!0)},squareShow:sy({key:t.key,PLP_FILTERS:s}),size:"medium",variant:"primary",children:(t==null?void 0:t.key)==="price"?La({value:t.value}):t.value.toUpperCase()})};nf.displayName="PLPNavigation.Selected.Item";const of=()=>n.jsx(m.TextStructure.Root,{children:n.jsx("p",{id:"pdc-navigation--total"})});of.displayName="PLPNavigation.Total";const at={BreadCrumb:Md,Content:Ld,Filters:zd,Root:Bd,Selected:Fd,SelectedItem:nf,Total:of},Is={"product-list--banner":"_product-list--banner_sfibj_1","product-list--card":"_product-list--card_sfibj_30","product-list":"_product-list_sfibj_1"},sf=({className:e,children:t,columns:r=1,isMobile:o=!1,gap:s=8,position_grid:a,totalColumns:i=4,PRODUCT_CARD_IMAGE_ASPECT_RATIO:c,...l})=>{const u=x.useMemo(()=>r%i===0?"initial":o||r<2?c:c.split("/").reverse().join("/"),[r,i,o]);return n.jsx("div",{...l,className:m.helpers.classNameConcat(Is["product-list--banner"],e),style:{aspectRatio:u,maxWidth:`${r/i*100}%`,order:a,padding:s/2},children:t})};sf.displayName="ProductList.Banner";const af=({isKit:e,parent:t,productId:r,setNotify:o,CONSTANTS:s})=>{const{router:a}=xe(),i=x.useRef(!1),c=x.useRef(null),[l,u]=x.useState([]),p=g=>a.push(g??""),h=async g=>{try{const _=await fetch("/api/catalog/product/similars",{method:"POST",body:JSON.stringify({productId:g,filterTexture:s.TEXTURE_IMAGE}),priority:"low"});if(!_.ok)throw new Error("Erro ao buscar similares.");const y=await _.json();u(y)}catch(_){console.error(_)}},d=x.useCallback(g=>{!r||!g||(typeof h=="function"&&h(r),i.current=!0)},[r]),f=x.useCallback((g,_)=>{if(!g.isIntersecting){s.PLP_INFINITE_SCROLL&&c.current&&(clearTimeout(c.current),c.current=null);return}if(g.intersectionRatio>=_.threshold&&!i.current){if(s.PLP_INFINITE_SCROLL){c.current=setTimeout(()=>{d(!0)},s.PLP_PRODUCT_SIMILAR_DELAY);return}d(!0)}},[d]);return x.useEffect(()=>{if(e||!t.current)return;const g={root:null,threshold:.1},_=new IntersectionObserver(([y])=>{f(y,g)},g);return _.observe(t.current),()=>{c.current&&clearTimeout(c.current),_.disconnect()}},[f,t,e]),n.jsx(ve.Actions,{...l,callback:p,isKit:e,children:!e&&n.jsx(ve.SizeSelector,{setNotify:o})})};af.displayName="ProductList.Card.Actions";const cf=({className:e,children:t,gap:r=32,item:o,isMobile:s,order:a,tag:i,hasMaxWidth:c=!0,index:l,setSkuSelected:u,showVideo:p,CONSTANTS:h,WishListToggle:d,...f})=>{const g=x.useRef(null),{availability:{status:_}}=o,y=x.useCallback((C,v)=>{var j;typeof u=="function"&&u((j=C.isVariantOf)==null?void 0:j.hasVariant,v)},[u]),b=o.name.substring(0,4).toLowerCase()==="kit ";return n.jsxs("div",{...f,className:m.helpers.classNameConcat(Is["product-list--card"],e),"data-mobile":s,"data-order":a,ref:g,style:{...c&&{maxWidth:s?"50%":"25%"},order:a,padding:r/2},children:[n.jsxs(ve.Root,{item:o,isMobile:s,index:l,size:s?"small":"medium",order:a,outStock:!_,CONSTANTS:h,WishListToggle:d,children:[n.jsx(ve.Header,{product:o,tag:i==null?void 0:i.commercial}),n.jsx(ve.Media,{showVideo:p,hasPriority:!0}),n.jsxs(ve.Wrapper,{type:"body",children:[n.jsx(ve.Title,{tag:i==null?void 0:i.institucional}),n.jsx(af,{productId:o.isVariantOf.productGroupID,parent:g,setNotify:y,isKit:b,CONSTANTS:h}),!b&&n.jsx(ve.OutStock,{callback:y})]}),n.jsx(ve.Wrapper,{type:"footer",children:_&&n.jsx(ve.BuyButton,{isKit:b})})]}),t]})};cf.displayName="ProductList.Card";const lf=({children:e,className:t,...r})=>n.jsx("div",{...r,className:m.helpers.classNameConcat(Is["product-list"],t),children:e});lf.displayName="ProductList.Grid";const ot={Banner:sf,Card:cf,Root:lf,helpers:qm},iy="_footer__bottom_1o9af_2",cy="_footer__wrapper_1o9af_10",ly="_footer__main_1o9af_39",uy="_footer__legalInformation_1o9af_55",dy="_footer__column_1o9af_77",fy="_footer__columnContent_1o9af_87",py="_footer__item_1o9af_91",my="_footer__itemLink_1o9af_107",hy="_footer__columnTitle_1o9af_122",gy="_footer__columnTitleIcon_1o9af_134",yy="_footer__iconList_1o9af_147",_y="_footer__itemSmallText_1o9af_157",vy="_payment_1o9af_168",xy="_footer__iconContainer_1o9af_173",by="_footer__iconListSubHeader_1o9af_178",jy="_accordionWrapper_1o9af_200",Cy="_accordionHeader_1o9af_204",Sy="_accordionTextWrapper_1o9af_208",ye={footer__bottom:iy,footer__wrapper:cy,footer__main:ly,footer__legalInformation:uy,footer__column:dy,footer__columnContent:fy,footer__item:py,footer__itemLink:my,footer__columnTitle:hy,footer__columnTitleIcon:gy,footer__iconList:yy,footer__itemSmallText:_y,payment:vy,footer__iconContainer:xy,footer__iconListSubHeader:by,accordionWrapper:jy,accordionHeader:Cy,accordionTextWrapper:Sy,"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 uf={},Ts={},Wt={};(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=o=>{r.has(o)||console.warn(o),r.add(o)}}})(Wt);var df={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"getImageBlurSvg",{enumerable:!0,get:function(){return t}});function t(r){let{widthInt:o,heightInt:s,blurWidth:a,blurHeight:i,blurDataURL:c,objectFit:l}=r;const u=20,p=a?a*40:o,h=i?i*40:s,d=p&&h?"viewBox='0 0 "+p+" "+h+"'":"",f=d?"none":l==="contain"?"xMidYMid":l==="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='"+u+"'/%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='"+u+"'/%3E%3C/filter%3E%3Cimage width='100%25' height='100%25' x='0' y='0' preserveAspectRatio='"+f+"' style='filter: url(%23b);' href='"+c+"'/%3E%3C/svg%3E"}})(df);var Dr={};(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(s,a){for(var i in a)Object.defineProperty(s,i,{enumerable:!0,get:a[i]})}t(e,{VALID_LOADERS:function(){return r},imageConfigDefault:function(){return o}});const r=["default","imgix","cloudinary","akamai","custom"],o={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}})(Dr);(function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"getImgProps",{enumerable:!0,get:function(){return f}});const t=Wt,r=df,o=Dr,s=["lazy","eager",void 0];function a(g){return g.default!==void 0}function i(g){return g.src!==void 0}function c(g){return typeof g=="object"&&(a(g)||i(g))}const l=new Map;let u;function p(g){return typeof g>"u"?g:typeof g=="number"?Number.isFinite(g)?g:NaN:typeof g=="string"&&/^[0-9]+$/.test(g)?parseInt(g,10):NaN}function h(g,_,y){let{deviceSizes:b,allSizes:C}=g;if(y){const j=/(^|\s)(1?\d?\d)vw/g,P=[];for(let E;E=j.exec(y);E)P.push(parseInt(E[2]));if(P.length){const E=Math.min(...P)*.01;return{widths:C.filter(S=>S>=b[0]*E),kind:"w"}}return{widths:C,kind:"w"}}return typeof _!="number"?{widths:b,kind:"w"}:{widths:[...new Set([_,_*2].map(j=>C.find(P=>P>=j)||C[C.length-1]))],kind:"x"}}function d(g){let{config:_,src:y,unoptimized:b,width:C,quality:v,sizes:j,loader:P}=g;if(b)return{src:y,srcSet:void 0,sizes:void 0};const{widths:E,kind:S}=h(_,C,j),R=E.length-1;return{sizes:!j&&S==="w"?"100vw":j,srcSet:E.map((T,w)=>P({config:_,src:y,quality:v,width:T})+" "+(S==="w"?T:w+1)+S).join(", "),src:P({config:_,src:y,quality:v,width:E[R]})}}function f(g,_){let{src:y,sizes:b,unoptimized:C=!1,priority:v=!1,loading:j,className:P,quality:E,width:S,height:R,fill:T=!1,style:w,onLoad:N,onLoadingComplete:I,placeholder:z="empty",blurDataURL:O,fetchPriority:W,layout:q,objectFit:F,objectPosition:V,lazyBoundary:G,lazyRoot:B,...J}=g;const{imgConf:A,showAltText:k,blurComplete:D,defaultLoader:X}=_;let ne,ee=A||o.imageConfigDefault;if("allSizes"in ee)ne=ee;else{const K=[...ee.deviceSizes,...ee.imageSizes].sort((Ae,Q)=>Ae-Q),me=ee.deviceSizes.sort((Ae,Q)=>Ae-Q);ne={...ee,allSizes:K,deviceSizes:me}}let L=J.loader||X;delete J.loader,delete J.srcSet;const te="__next_img_default"in L;if(te){if(ne.loader==="custom")throw new Error('Image with src "'+y+`" is missing "loader" prop.
5
- Read more: https://nextjs.org/docs/messages/next-image-missing-loader`)}else{const K=L;L=me=>{const{config:Ae,...Q}=me;return K(Q)}}if(q){q==="fill"&&(T=!0);const K={intrinsic:{maxWidth:"100%",height:"auto"},responsive:{width:"100%",height:"auto"}},me={responsive:"100vw",fill:"100vw"},Ae=K[q];Ae&&(w={...w,...Ae});const Q=me[q];Q&&!b&&(b=Q)}let Z="",re=p(S),$=p(R),M,oe;if(c(y)){const K=a(y)?y.default:y;if(!K.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(K));if(!K.height||!K.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(K));if(M=K.blurWidth,oe=K.blurHeight,O=O||K.blurDataURL,Z=K.src,!T){if(!re&&!$)re=K.width,$=K.height;else if(re&&!$){const me=re/K.width;$=Math.round(K.height*me)}else if(!re&&$){const me=$/K.height;re=Math.round(K.width*me)}}}y=typeof y=="string"?y:Z;let ie=!v&&(j==="lazy"||typeof j>"u");(!y||y.startsWith("data:")||y.startsWith("blob:"))&&(C=!0,ie=!1),ne.unoptimized&&(C=!0),te&&y.endsWith(".svg")&&!ne.dangerouslyAllowSVG&&(C=!0),v&&(W="high");const fe=p(E);if(process.env.NODE_ENV!=="production"){if(ne.output==="export"&&te&&!C)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(!y)C=!0;else if(T){if(S)throw new Error('Image with src "'+y+'" has both "width" and "fill" properties. Only one should be used.');if(R)throw new Error('Image with src "'+y+'" has both "height" and "fill" properties. Only one should be used.');if(w!=null&&w.position&&w.position!=="absolute")throw new Error('Image with src "'+y+'" has both "fill" and "style.position" properties. Images with "fill" always use position absolute - it cannot be modified.');if(w!=null&&w.width&&w.width!=="100%")throw new Error('Image with src "'+y+'" has both "fill" and "style.width" properties. Images with "fill" always use width 100% - it cannot be modified.');if(w!=null&&w.height&&w.height!=="100%")throw new Error('Image with src "'+y+'" has both "fill" and "style.height" properties. Images with "fill" always use height 100% - it cannot be modified.')}else{if(typeof re>"u")throw new Error('Image with src "'+y+'" is missing required "width" property.');if(isNaN(re))throw new Error('Image with src "'+y+'" has invalid "width" property. Expected a numeric value in pixels but received "'+S+'".');if(typeof $>"u")throw new Error('Image with src "'+y+'" is missing required "height" property.');if(isNaN($))throw new Error('Image with src "'+y+'" has invalid "height" property. Expected a numeric value in pixels but received "'+R+'".')}if(!s.includes(j))throw new Error('Image with src "'+y+'" has invalid "loading" property. Provided "'+j+'" should be one of '+s.map(String).join(",")+".");if(v&&j==="lazy")throw new Error('Image with src "'+y+`" has both "priority" and "loading='lazy'" properties. Only one should be used.`);if(z!=="empty"&&z!=="blur"&&!z.startsWith("data:image/"))throw new Error('Image with src "'+y+'" has invalid "placeholder" property "'+z+'".');if(z!=="empty"&&re&&$&&re*$<1600&&(0,t.warnOnce)('Image with src "'+y+'" is smaller than 40x40. Consider removing the "placeholder" property to improve performance.'),z==="blur"&&!O){const K=["jpeg","png","webp","avif"];throw new Error('Image with src "'+y+`" has "placeholder='blur'" property but is missing the "blurDataURL" property.
4
+ Learn more: https://nextjs.org/docs/messages/invalid-new-link-with-extra-anchor`);const ae=A?oe&&typeof oe=="object"&&oe.ref:R,[fe,pe,ue]=(0,h.useIntersection)({rootMargin:"200px"}),H=o.default.useCallback(ie=>{(L.current!==re||$.current!==Z)&&(ue(),L.current=re,$.current=Z),fe(ie),ae&&(typeof ae=="function"?ae(ie):typeof ae=="object"&&(ae.current=ie))},[re,ae,Z,ue,fe]);o.default.useEffect(()=>{process.env.NODE_ENV==="production"&&ne&&(!pe||!M||_(ne,Z,re,{locale:V},{kind:te},ee))},[re,Z,pe,V,M,D==null?void 0:D.locale,ne,ee,te]);const be={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.');!A&&typeof G=="function"&&G(ie),A&&oe.props&&typeof oe.props.onClick=="function"&&oe.props.onClick(ie),ne&&(ie.defaultPrevented||C(ie,ne,Z,re,U,q,B,V,ee,M))},onMouseEnter(ie){!A&&typeof F=="function"&&F(ie),A&&oe.props&&typeof oe.props.onMouseEnter=="function"&&oe.props.onMouseEnter(ie),ne&&((!M||process.env.NODE_ENV==="development")&&ee||_(ne,Z,re,{locale:V,priority:!0,bypassPrefetchedCheck:!0},{kind:te},ee))},onTouchStart(ie){!A&&typeof J=="function"&&J(ie),A&&oe.props&&typeof oe.props.onTouchStart=="function"&&oe.props.onTouchStart(ie),ne&&(!M&&ee||_(ne,Z,re,{locale:V,priority:!0,bypassPrefetchedCheck:!0},{kind:te},ee))}};if((0,c.isAbsoluteUrl)(re))be.href=re;else if(!A||k||oe.type==="a"&&!("href"in oe.props)){const ie=typeof V<"u"?V:D==null?void 0:D.locale,_e=(D==null?void 0:D.isLocaleDomain)&&(0,d.getDomainLocale)(re,ie,D==null?void 0:D.locales,D==null?void 0:D.domainLocales);be.href=_e||(0,p.addBasePath)((0,l.addLocale)(re,ie,D==null?void 0:D.defaultLocale))}return A?o.default.cloneElement(oe,be):o.default.createElement("a",{...O,...be},T)});(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)})(qo,qo.exports);var Zh=qo.exports,Jh=Zh;const Le=Or(Jh),eg="_link_w24h0_1",tg="_wrapper_w24h0_98",rg="_text_w24h0_106",vn={link:eg,wrapper:tg,text:rg},Ye=({children:e,adornments:t,className:r,disableUnderline:o,href:s,mode:i,size:a,title:c,onClick:l,disablePadding:u,...f})=>{const h=m.helpers.ValidateProp({fieldTypes:St.SizesSmallExtended,property:a,fallback:"medium"}),d=m.helpers.ValidateProp({fieldTypes:St.Mode,property:i,fallback:"default"});return n.jsx(Le,{...f,className:m.helpers.classNameConcat(vn.link,r),href:s&&s.length>0?s:"#","data-size":h,"data-variant":d,title:c||"NextLink","data-disable-underline":o??!1,"data-disable-padding":u??!0,children:n.jsxs("div",{className:vn.wrapper,onClick:l,children:[t==null?void 0:t.start,n.jsx("p",{className:vn.text,"data-size":h,children:e}),t==null?void 0:t.end]})})},ng=({ICONS:e})=>{const{resetFeedback:t}=_t();return n.jsxs("div",{className:zt["wishlist--snack--actions"],children:[n.jsx(Ye,{href:"/favoritos",children:"Ver Favoritos"}),n.jsx(m.Button,{variant:"tertiary",size:"small",onClick:t,adornment:{start:n.jsx(m.Icon,{name:e.close})}})]})},Es=({WISHLIST_INFO:e,ICONS:t,Z_INDEX_WAR:r})=>{const o=ps(),{resetFeedback:s}=_t(),i=x.useRef(null);return x.useEffect(()=>{i.current&&clearTimeout(i.current),o&&(i.current=setTimeout(()=>{s()},5e3))},[o,s]),(o==null?void 0:o.active)&&n.jsx(Pt,{Z_INDEX_WAR:r,className:zt["wishlist--snack"],"data-action":o.action,title:o.action==="add"?e.messages.add:e.messages.remove,supportChildren:n.jsx(ng,{ICONS:t}),size:"medium"})};Es.displayName="WishList.Feedback";const Rs={"product-list--banner":"_product-list--banner_sfibj_1","product-list--card":"_product-list--card_sfibj_30","product-list":"_product-list_sfibj_1"},Cu=({className:e,children:t,columns:r=1,isMobile:o=!1,gap:s=8,position_grid:i,totalColumns:a=4,PRODUCT_CARD_IMAGE_ASPECT_RATIO:c,...l})=>{const u=x.useMemo(()=>r%a===0?"initial":o||r<2?c:c.split("/").reverse().join("/"),[r,a,o]);return n.jsx("div",{...l,className:m.helpers.classNameConcat(Rs["product-list--banner"],e),style:{aspectRatio:u,maxWidth:`${r/a*100}%`,order:i,padding:s/2},children:t})};Cu.displayName="ProductList.Banner";const Su=({isKit:e,parent:t,productId:r,setNotify:o,CONSTANTS:s})=>{const{router:i}=xe(),a=x.useRef(!1),c=x.useRef(null),[l,u]=x.useState([]),f=g=>i.push(g??""),h=async g=>{try{const y=await fetch("/api/catalog/product/similars",{method:"POST",body:JSON.stringify({productId:g,filterTexture:s.TEXTURE_IMAGE}),priority:"low"});if(!y.ok)throw new Error("Erro ao buscar similares.");const _=await y.json();u(_)}catch(y){console.error(y)}},d=x.useCallback(g=>{!r||!g||(typeof h=="function"&&h(r),a.current=!0)},[r]),p=x.useCallback((g,y)=>{if(!g.isIntersecting){s.PLP_INFINITE_SCROLL&&c.current&&(clearTimeout(c.current),c.current=null);return}if(g.intersectionRatio>=y.threshold&&!a.current){if(s.PLP_INFINITE_SCROLL){c.current=setTimeout(()=>{d(!0)},s.PLP_PRODUCT_SIMILAR_DELAY);return}d(!0)}},[d]);return x.useEffect(()=>{if(e||!t.current)return;const g={root:null,threshold:.1},y=new IntersectionObserver(([_])=>{p(_,g)},g);return y.observe(t.current),()=>{c.current&&clearTimeout(c.current),y.disconnect()}},[p,t,e]),n.jsx(ve.Actions,{...l,callback:f,isKit:e,children:!e&&n.jsx(ve.SizeSelector,{setNotify:o})})};Su.displayName="ProductList.Card.Actions";const Pu=({className:e,children:t,gap:r=32,item:o,isMobile:s,order:i,tag:a,hasMaxWidth:c=!0,index:l,setSkuSelected:u,showVideo:f,CONSTANTS:h,...d})=>{const p=x.useRef(null),{availability:{status:g}}=o,y=x.useCallback((b,C)=>{var v;typeof u=="function"&&u((v=b.isVariantOf)==null?void 0:v.hasVariant,C)},[u]),_=o.name.substring(0,4).toLowerCase()==="kit ";return n.jsxs("div",{...d,className:m.helpers.classNameConcat(Rs["product-list--card"],e),"data-mobile":s,"data-order":i,ref:p,style:{...c&&{maxWidth:s?"50%":"25%"},order:i,padding:r/2},children:[n.jsxs(ve.Root,{item:o,isMobile:s,index:l,size:s?"small":"medium",order:i,outStock:!g,CONSTANTS:h,children:[n.jsx(ve.Header,{product:o,tag:a==null?void 0:a.commercial}),n.jsx(ve.Media,{showVideo:f,hasPriority:!0}),n.jsxs(ve.Wrapper,{type:"body",children:[n.jsx(ve.Title,{tag:a==null?void 0:a.institucional}),n.jsx(Su,{productId:o.isVariantOf.productGroupID,parent:p,setNotify:y,isKit:_,CONSTANTS:h}),!_&&n.jsx(ve.OutStock,{callback:y})]}),n.jsx(ve.Wrapper,{type:"footer",children:g&&n.jsx(ve.BuyButton,{isKit:_})})]}),t]})};Pu.displayName="ProductList.Card";const wu=({children:e,className:t,...r})=>n.jsx("div",{...r,className:m.helpers.classNameConcat(Rs["product-list"],t),children:e});wu.displayName="ProductList.Grid";const et={Banner:Cu,Card:Pu,Root:wu,helpers:Gm},og="_pdc_alo7z_1",We={"pdc--empty":"_pdc--empty_alo7z_1","pdc--grid":"_pdc--grid_alo7z_17","pdc--grid--content":"_pdc--grid--content_alo7z_26","pdc--infinite":"_pdc--infinite_alo7z_41","pdc--infinite--loader":"_pdc--infinite--loader_alo7z_44","pdc--infinite--loader--page":"_pdc--infinite--loader--page_alo7z_54","pdc--infinite--card--disabled":"_pdc--infinite--card--disabled_alo7z_58","pdc--infinite--next-page":"_pdc--infinite--next-page_alo7z_91","pdc--infinite--next-page--card":"_pdc--infinite--next-page--card_alo7z_101","pdc--infinite--next-page--spinner":"_pdc--infinite--next-page--spinner_alo7z_111","pdc--pagination":"_pdc--pagination_alo7z_118",pdc:og},As=({className:e,ICONS:t,PLP_NOT_RESULT:r})=>{const{router:o}=xe(),{isMobile:s}=le(),i=()=>{o.push(r==null?void 0:r.link)};return n.jsxs("div",{className:m.helpers.classNameConcat(We["pdc--empty"],e),children:[n.jsxs(m.TextStructure.DivWrapper,{className:We["pdc--empty-wrapper"],children:[n.jsx("span",{className:s?"typography-style-body-md":"typography-style-heading-sm",children:r.title}),n.jsx("p",{className:s?"typography-style-body-xs":"typography-style-body-sm",children:r.subtitle})]}),n.jsx(m.Button,{adornment:{end:n.jsx(m.Icon,{name:t.arrow_right})},className:"typography-style-body-sm-strong",onClick:()=>i(),variant:"tertiary",children:n.jsx("b",{children:r.text})})]})};As.displayName="PDC.Empty";const Mr=e=>n.jsx("div",{...e,className:We["pdc--infinite--next-page"],children:n.jsx(m.Spinner,{className:We["pdc--infinite--next-page--spinner"]})});Mr.displayName="PDC.Spinner";function Eu({CONSTANTS:e}){const{sendDataLayerEvent:t}=ce(),{isMobile:r}=le(),{getAvailableProductTag:o}=rt(),[s,i]=x.useState([]),[a,c]=x.useState(!0),l=It(),u=r?16:32;return x.useEffect(()=>{const f=async()=>{l.length?await fetch("/api/wishlist/products",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({productIds:l})}).then(h=>h.json()).then(h=>{i(h),t({functionKey:"productListEvent",data:{event:"view_item_list",commonData:{products:h}}})}).catch(h=>console.error(h)):i([]),c(!1)};if(l.length){f();return}if(l.length===0&&s.length===0){c(!1);return}i([]),c(!1)},[l]),n.jsx("section",{className:zt["wishlist-grid"],children:n.jsxs("div",{className:zt["wishlist-grid--container"],children:[a&&n.jsx(Mr,{}),!l.length&&!(s!=null&&s.length)&&!a&&n.jsx(As,{className:zt["pdc-empty-modifier"],ICONS:e.ICONS,PLP_NOT_RESULT:e.WISHLIST_NOT_RESULT}),n.jsx(et.Root,{children:Array.isArray(s)&&s.map((f,h)=>{const d=f.node.cluster.highlights||[],p=o(d);return n.jsx(et.Card,{gap:u,isMobile:r??!1,item:f.node,tag:p,index:h,CONSTANTS:{BUY_BUTTON_LABELS:e.BUY_BUTTON_LABELS,MAIN_IMAGE:e.MAIN_IMAGE,PLP_GRID_SCROLL_BACK:e.PLP_GRID_SCROLL_BACK,PLP_INFINITE_SCROLL:e.PLP_INFINITE_SCROLL,PLP_SHOW_VIDEO_ON_PRODUCT_CARD:e.PLP_SHOW_VIDEO_ON_PRODUCT_CARD,PLP_PRODUCT_SIMILAR_DELAY:e.PLP_PRODUCT_SIMILAR_DELAY,PRODUCT_CARD_IMAGE_ASPECT_RATIO:e.PRODUCT_CARD_IMAGE_ASPECT_RATIO,PRODUCT_CARD_TEXTS:e.PRODUCT_CARD_TEXTS,PRODUCT_CARD_TOP_WISHLIST_TOGGLE:e.PRODUCT_CARD_TOP_WISHLIST_TOGGLE,PRODUCT_IMAGE_DIMENSIONS:e.PRODUCT_IMAGE_DIMENSIONS,SECOND_IMAGE:e.SECOND_IMAGE,StoreConfig_MainSellerId:e.StoreConfig_MainSellerId,TEXTURE_IMAGE:e.TEXTURE_IMAGE,Z_INDEX_WAR:e.Z_INDEX_WAR,ICONS:e.ICONS}},f.node.sku)})})]})})}Eu.displayName="Wishlist.Grid";const sg=e=>e.map(t=>{var r;return(r=t.isVariantOf)==null?void 0:r.productGroupID})??[],Ru=({WISHLIST_INFO:e,ICONS:t,Z_INDEX_WAR:r})=>{const o=Nt(),s=It(),i=ps(),{updateList:a}=_t();return x.useEffect(()=>{var l,u;i.active&&Qe.set("fs::wishlist",s);const c=async()=>{var f;await fetch("/api/wishlist/documents",{method:"PATCH",body:JSON.stringify({productIds:s,docId:(f=o==null?void 0:o.user)==null?void 0:f.id})}).catch(h=>{console.error("Error updating wishlist:",h)})};i.active&&((l=o.user)!=null&&l.id)&&s.length!==((u=o.wishlist)==null?void 0:u.length)&&c()},[i,o,s]),x.useEffect(()=>{var u;const c=async()=>{const f=await Qe.get("fs::wishlist");f&&(f==null?void 0:f.length)!==s.length&&a(f)},l=async()=>{var p;const f=await Qe.get("fs::wishlist")??[],h=o.wishlist?typeof o.wishlist[0]=="object"?sg(o.wishlist):o.wishlist:[],d=[...new Set([...f,...h])];a(d),Qe.set("fs::wishlist",s),h.length!==d.length&&await fetch("/api/wishlist/documents",{method:"PATCH",body:JSON.stringify({productIds:d,docId:(p=o.user)==null?void 0:p.id})}).catch(g=>{console.error("Error updating wishlist:",g)})};if((u=o.user)!=null&&u.id){l();return}c()},[o,a,s]),n.jsx(Es,{ICONS:t,Z_INDEX_WAR:r,WISHLIST_INFO:e})};Ru.displayName="Wishlist.Init";const Au=({product:e,priceInfo:t,size:r="medium",style:o,ICONS:s})=>{const{sendDataLayerEvent:i,currentLocalRef:a}=ce(),c=It(),{toggleProduct:l}=_t(),{isVariantOf:{productGroupID:u}}=e;return n.jsx(m.Button,{adornment:{start:n.jsx(m.Icon,{size:r,name:c.includes(u)?s.favorite_true:s.favorite_false})},onClick:()=>{l(u),i({functionKey:"productEvents",data:{event:c.includes(u)?"remove_from_wishlist":"add_to_wishlist",outsideEcommerceData:{region:a.current},commonData:{...e,...t}}})},style:{...o,border:"none"},variant:"tertiary"})};Au.displayName="WishList.Toggle";const Iu={Feedback:Es,Toggle:Au,Grid:Eu,Init:Ru},Nu=({product:e,tag:t,size:r="small"})=>{const o=e.offers.offers[0],{CONSTANTS:s}=Ve();return n.jsxs(ve.Wrapper,{type:"header",style:{zIndex:s.Z_INDEX_WAR.product_card_header},children:[t?n.jsx(m.Tag,{title:t.value,adornment:{start:t.enableIcon&&t.icon?n.jsx(m.Icon,{name:t.icon,size:"small",style:{color:t.iconColor}}):null},size:r,variant:"quaternary",style:{background:t.tagColor,color:t.textColor},children:t.value}):null,s.PRODUCT_CARD_TOP_WISHLIST_TOGGLE&&n.jsx(Iu.Toggle,{product:e,priceInfo:{price:o.price,listPrice:o.listPrice},variant:"card",ICONS:s.ICONS})]})};Nu.displayName="ProductCard.Actions.Header";const Tu=({className:e,children:t,hasPriority:r=!1,showVideo:o=!1,...s})=>{const{element:i,index:a,item:{image:c,slug:l,video:u},sendSelectItemEvent:f,order:h,CONSTANTS:d}=Ve(),p=W.getFirstImages({images:c,label:{first:d.MAIN_IMAGE,second:d.SECOND_IMAGE}});return n.jsxs("div",{...s,className:m.helpers.classNameConcat(Ie["product-card--image"],e),ref:i,style:{aspectRatio:d.PRODUCT_CARD_IMAGE_ASPECT_RATIO},children:[n.jsx(Le,{href:`/${l}/p`,onClick:f,onMouseUp:g=>{g.button===1&&f(),d.PLP_INFINITE_SCROLL&&sessionStorage.setItem(d.PLP_GRID_SCROLL_BACK.order,String(h))},children:n.jsx("div",{className:Ie["product-card--image--container"],children:Array.isArray(p)&&p.map(({url:g,alternateName:y},_)=>x.createElement(Be.Image,{...d.PRODUCT_IMAGE_DIMENSIONS.product_card,style:d.PRODUCT_IMAGE_DIMENSIONS.product_card,alt:y??"product image",key:_,...r&&{priority:_===0&&a<4},objectFit:"cover",src:g}))})}),d.PLP_SHOW_VIDEO_ON_PRODUCT_CARD&&o&&u&&n.jsx(ve.Video,{url:u,poster:p[0].url}),t]})};Tu.displayName="ProductCard.Media.Media";const Ou=({className:e,callback:t,children:r,...o})=>{const{isMobile:s,item:i,CONSTANTS:{PRODUCT_CARD_TEXTS:a}}=Ve(),{availability:{status:c}}=i;return c?null:n.jsxs("div",{...o,className:m.helpers.classNameConcat(Ie["product-card--outstock"],e),children:[n.jsx(m.Tag,{size:"small",variant:"secondary",title:a.disabled,children:a.disabled}),n.jsx(m.Button,{className:m.helpers.classNameConcat(e,"buy-button"),size:s?"medium":"large",variant:"quaternary",onClick:()=>{typeof t=="function"&&t(i)},children:a.notify})]})};Ou.displayName="ProductCard.OutStock";const ku=({children:e,className:t="",index:r,isMobile:o=!1,item:s,size:i,order:a,outStock:c,shelfTitle:l,CONSTANTS:u,...f})=>n.jsx(jh,{item:s,isMobile:o,outStock:c,order:a,size:i,index:r,shelfTitle:l,CONSTANTS:u,children:n.jsx("div",{...f,className:m.helpers.classNameConcat(Ie["product-card--wrapper"],t),"data-size":i,children:e})});ku.displayName="ProductCard.Root";const Lu=({disabled:e,label:t,size:r,value:o,onClick:s,...i})=>n.jsxs(m.ToggleSize.Wrapper,{...i,disabled:!1,outOfStock:e,size:r,onClick:s,children:[n.jsx(m.ToggleSize.DisabledAdornment,{}),n.jsx(m.ToggleSize.Text,{children:t})]});Lu.displayName="ProductCard.SizeSelector.Item";const Mu=({active:e=!1,callback:t,selectedSku:r=null,item:o,setNotify:s})=>{const{item:i,isMobile:a,setSelectedSku:c,eventDataRef:l}=Ve();o.productId=i.id;const u=W.disableSKU(o),f=W.getSKUName(o,"tamanho");!u&&!l.current.availableSkus.includes(f)&&l.current.availableSkus.push(f);const h=x.useCallback(p=>{const g=r===p?null:p;typeof c=="function"&&c(g),typeof t=="function"&&t(g)},[t,c,r]),d=x.useCallback(()=>{if(u&&typeof s=="function"){s(i,o);return}h(o)},[o,s,h,u,i]);return n.jsx(Lu,{active:e,disabled:u,label:f,onClick:()=>d(),size:a?"x-small":"small",value:o})};Mu.displayName="ProductCard.SizeSelector.SkuItem";const Du=({callback:e,className:t="",children:r,setNotify:o,...s})=>{const{isMobile:i,item:{isVariantOf:{hasVariant:a}},selectedSku:c}=Ve();return n.jsxs("div",{...s,className:m.helpers.classNameConcat(Ie["product-card--selectors--size"],t),"data-mobile":i,children:[n.jsx("div",{className:Ie["product-card--selectors--size--skus"],children:Array.isArray(a)&&a.map((l,u)=>n.jsx(Mu,{active:c===l,callback:e,item:l,selectedSku:c,setNotify:o},`size--${u}--${l.sku}`))}),n.jsx("div",{className:Ie["product-card--selectors--size--button"],children:r})]})};Du.displayName="ProductCard.SizeSelector";const Ho=({alt:e="",callback:t,more:r,total:o=4,src:s,url:i,...a})=>n.jsxs(m.ToggleStyle.Wrapper,{...a,onClick:()=>{typeof t=="function"&&t(i)},children:[n.jsx(m.ToggleStyle.DisabledAdornment,{}),n.jsxs(m.ToggleStyle.Texture,{children:[s&&n.jsx(Be.Image,{alt:e??s,src:s,height:34,width:34}),r&&n.jsx(m.TextStructure.DivWrapper,{className:Ie["product-card--selectors--style--more"],children:n.jsxs("p",{children:["+ ",o]})})]})]}),ig=({children:e,callback:t,data:r,total:o=4,size:s,...i})=>{const{index:a}=Ve(),{triggerSelectItemEventRef:c}=ce();return n.jsxs("div",{...i,children:[e,Array.isArray(r)&&r.slice(0,o).map((l,u)=>n.jsx(Ho,{callback:f=>{c.current.trigger=!0,c.current.index=a,typeof t=="function"&&t(f)},src:(l==null?void 0:l.textureImage)??"",alt:l==null?void 0:l.textureAlt,url:l==null?void 0:l.slug,size:s},u)),Array.isArray(r)&&(r==null?void 0:r.length)>o&&n.jsx(Ho,{size:s,total:r.length-o,more:!0})]})},$u=({callback:e,className:t,data:r,images:o=[],findTexture:s,...i})=>{const{CONSTANTS:a}=Ve(),c=s||a.TEXTURE_IMAGE,l=o==null?void 0:o.find(u=>c.includes(u.alternateName));return n.jsx(ig,{...i,callback:e,className:m.helpers.classNameConcat(Ie["product-card--selectors--style"],t),data:r,size:"x-small",children:l&&n.jsx(Ho,{active:!0,size:"x-small",src:l.url})})};$u.displayName="ProductCard.StyleSelector";const zu=({className:e,hasDecimal:t,...r})=>{const{isMobile:o,item:{offers:{lowPrice:s,highPrice:i},installments:{count:a,value:c}},eventDataRef:l}=Ve();l.current.priceInfo={price:s,listPrice:i};const u=W.formatPriceToCurrency(i,t),f=W.formatPriceToCurrency(s,t),h=W.formatPriceToCurrency(c??0),d=o?"horizontal":"stacked";return n.jsx("div",{...r,className:m.helpers.classNameConcat(Ie["product-card--price"],e),"data-mobile":o,children:n.jsx(m.ProductInfo.Root,{size:"small",layout:d,children:n.jsxs(m.ProductInfo.Wrapper,{size:"small",layout:d,children:[n.jsx(m.ProductInfo.ValuesWrapper,{children:f!==u?n.jsxs(n.Fragment,{children:[n.jsx(m.ProductInfo.Price,{label:"originalPrice",value:u,size:"small"}),n.jsx(m.ProductInfo.Price,{label:"discountPrice",value:f,size:"small"})]}):n.jsx(m.ProductInfo.Price,{label:"defaultPrice",value:f,size:"small"})}),a&&a>1&&c?n.jsx(m.ProductInfo.Price,{label:"installment",value:`${a}x ${h}`,size:"small"}):null]})})})};zu.displayName="ProductCard.Price";const Bu=({tag:e,className:t})=>{const{item:{name:r}}=Ve();return n.jsxs("div",{className:m.helpers.classNameConcat(Ie["product-card--title"],t),children:[n.jsx("div",{className:Ie["product-card--title--tag"],children:e?n.jsx(m.Tag,{size:"small",title:e.value,variant:"quaternary",adornment:{start:e.enableIcon&&e.icon?n.jsx(m.Icon,{name:e.icon,style:{color:e.iconColor}}):null},style:{background:e.tagColor,color:e.textColor},children:e.value}):n.jsx("div",{})}),n.jsx("div",{className:Ie["product-card--title--content"],children:r&&n.jsx(m.TextStructure.Root,{children:n.jsx(m.TextStructure.DivWrapper,{children:n.jsx("h3",{children:r})})})})]})};Bu.displayName="ProductCard.Title";const Fu=({className:e,url:t,poster:r,...o})=>{const{element:s}=Ve();return x.useEffect(()=>{if(!(s!=null&&s.current))return;const i=s.current,a=i.querySelector("video");if(a){const c=new IntersectionObserver(f=>{f.forEach(h=>{W.setVideoPlay(h.isIntersecting,a,t)})},{root:null,rootMargin:"0px",threshold:.5}),l=()=>{a.setAttribute("data-loaded","true")},u=()=>{i&&(c.observe(i),a.addEventListener("loadeddata",l))};return document.readyState==="complete"?u():window.addEventListener("load",u),()=>{c.disconnect(),window.removeEventListener("load",u)}}return()=>null},[t,s]),n.jsx("div",{...o,className:m.helpers.classNameConcat(Ie["product-card--video"],e),children:t&&n.jsx(Be.Video,{autoPlay:!1,muted:!0,loop:!0,preload:"none",playsInline:!0,poster:r})})};Fu.displayName="ProductCard.Media.Video";const qu=({children:e,className:t,type:r,...o})=>n.jsx("div",{...o,className:m.helpers.classNameConcat(Ie[`product-card--${r}`],t),children:e});qu.displayName="ProductCard.Wrapper";const ve={Actions:du,BuyButton:fu,Header:Nu,Media:Tu,Root:ku,OutStock:Ou,Price:zu,SizeSelector:Du,StyleSelector:$u,Title:Bu,Video:Fu,Wrapper:qu},ag="_carousel_245ib_1",cg="_shelf__container_245ib_14",lg="_shelf_without_carousel_245ib_34",ug="_card_container_245ib_50",Ct={carousel:ag,"custom-controllers":"_custom-controllers_245ib_5",shelf__container:cg,"controllers-arrows-bullets":"_controllers-arrows-bullets_245ib_23",shelf_without_carousel:lg,card_container:ug},Mi=({title:e})=>n.jsx("div",{className:Ct.shelf__container,children:e&&n.jsx(m.TextStructure.Root,{children:n.jsxs(m.TextStructure.DivWrapper,{children:[n.jsx("h2",{className:m.helpers.classNameConcat("typography-style-body-md",W.responsive["responsive-mobile-flex"]),children:e}),n.jsx("h2",{className:m.helpers.classNameConcat("typography-style-heading-md",W.responsive["responsive-desktop-flex"]),children:e})]})})}),dg=({children:e,ICONS:t,itemsPerPage:r,title:o})=>{const{isMobile:s}=le(),i=r[s?"mobile":"desktop"],{initialize:a,controller:c,itemsStyles:l,pagination:u}=m.Carousel.useCarousel({itemsPerPage:i,gap:10,loop:!0,direction:"row"}),f=x.Children.toArray(e).length;return s||f>=4?n.jsxs(m.Carousel.Root,{innerRef:d=>{a(d)},className:Ct.carousel,children:[n.jsxs("div",{className:Ct["custom-controllers"],children:[o&&n.jsx(Mi,{title:o}),i<f&&n.jsxs(m.Carousel.Controller,{className:Ct["controllers-arrows-bullets"],children:[n.jsxs(m.Carousel.Arrows,{children:[n.jsx(m.Button,{variant:"tertiary",onClick:()=>c==null?void 0:c.prevPage(),adornment:{start:n.jsx(m.Icon,{name:t.arrow_left})}}),n.jsx(m.Button,{variant:"tertiary",onClick:()=>c==null?void 0:c.nextPage(),adornment:{start:n.jsx(m.Icon,{name:t.arrow_right})}})]}),!s&&i>2&&n.jsx(m.Carousel.Bullets,{page:u.currentPage,total:u.totalPages,onBulletClick:d=>c==null?void 0:c.navigateTo(d)})]})]}),n.jsx(m.Carousel.Body,{children:x.Children.map(e,(d,p)=>n.jsx(m.Carousel.Item,{style:{...l,overflow:"hidden"},children:d},`${o}_${p}`))})]}):n.jsxs(n.Fragment,{children:[o&&n.jsx(Mi,{title:o}),n.jsx("div",{className:Ct.shelf_without_carousel,children:e})]})},Hu=({className:e,item:t,isMobile:r,size:o,shelfTitle:s,...i})=>{const a=x.useRef(null),{getAvailableProductTag:c}=rt(),{availability:{status:l}}=t,u=h=>{const d=h.filter(p=>!i.CONSTANTS.TEXTURE_IMAGE.includes(p.keywords));return r?d.splice(0,2):d},f=c(t.cluster.highlights);return n.jsx("div",{ref:a,className:Ct.card_container,children:n.jsxs(ve.Root,{...i,item:{...t,image:u(t.image)},isMobile:r,size:r?"small":"medium",outStock:!l,shelfTitle:s,children:[n.jsx(ve.Header,{product:t,tag:f==null?void 0:f.commercial}),n.jsx(ve.Media,{}),n.jsxs(ve.Wrapper,{type:"body",children:[n.jsx(ve.Title,{tag:f==null?void 0:f.institucional}),n.jsx(ve.Actions,{})]}),n.jsx(ve.Wrapper,{type:"footer"})]})})};Hu.displayName="ProductList.Card";const Ft={Shelf:dg,Card:Hu},Uu=({CONSTANTS:e,inView:t,products:r,innerRef:o})=>{const s=x.useMemo(()=>xh(r),[r]),{isMobile:i}=le(),{addItemsToCart:a}=Ee(),{sendDataLayerEvent:c}=ce(),{getAvailableProductTag:l}=rt(),[u,f]=x.useState({totalPrice:0,products:{}}),h=()=>{const p=Object.values(u.products);a(p),c({functionKey:"skuEvents",data:{event:"add_to_cart",commonData:{products:p.map(g=>{const y=s.find(_=>_.node.id===g.productId);return y==null?void 0:y.node})},supportData:{selectedSkus:p,price:u.totalPrice}}})},d=({selectedProduct:p,productId:g})=>{const y=bh({selectedProduct:p,productId:g,prevState:u,mainSellerId:e.StoreConfig_MainSellerId});f(y)};return x.useEffect(()=>{if(!t||s.length===0)return;const p=e.BUY_PACKAGE.header.title;c({functionKey:"productListEvent",data:{event:"view_item_list",commonData:{products:s},customData:{item_list_name:p},outsideEcommerceData:{item_list_name:p}}})},[t]),n.jsxs("div",{className:it.container,ref:o,children:[n.jsx("div",{className:it["carousel-container"],style:{width:s.length<=3?"max-content":"75%"},children:n.jsx(Ft.Shelf,{title:e.BUY_PACKAGE.header.title,itemsPerPage:{desktop:3,mobile:s.length>=3?2.2:s.length},ICONS:e.ICONS,children:Array.isArray(s)&&s.map(({node:p},g)=>{var b,C,v;const y=l(p.cluster.highlights),{availability:{status:_}}=p;return _?n.jsxs(ve.Root,{item:{...p,image:Ss.helpers.product.getFirstImages({images:p.image,label:{first:e.MAIN_IMAGE,second:e.SECOND_IMAGE}})},isMobile:i,size:"medium",index:g,shelfTitle:e.BUY_PACKAGE.header.title,CONSTANTS:e,children:[n.jsx(ve.Header,{product:p,tag:y.commercial}),n.jsx(ve.Media,{}),n.jsxs(ve.Wrapper,{type:"body",children:[n.jsx(ve.Title,{tag:{value:(b=y.institucional)==null?void 0:b.value,enableIcon:(C=y.institucional)==null?void 0:C.enableIcon,icon:(v=y.institucional)==null?void 0:v.icon}}),n.jsx(ve.Actions,{children:n.jsx(ve.SizeSelector,{callback:j=>d({selectedProduct:j,productId:p.id})})})]})]},p.id):null})})}),n.jsx("div",{className:it["add-cart-container"],children:n.jsx(vh,{handleAddAllToCart:h,selectedProducts:u,CONSTANTS:{BUY_BUTTON_LABELS:e.BUY_BUTTON_LABELS,BUY_PACKAGE:e.BUY_PACKAGE,FREIGHT_CALCULATION:e.FREIGHT_CALCULATION}})})]})},Is={"btn-login":"_btn-login_yas63_12","btn-header":"_btn-header_yas63_22","header-animation":"_header-animation_yas63_35"},Ns=({id:e})=>{const{setIsOpen:t,cartStore:{items:r}}=Ee(),{handleSelectContent:o}=ce(),{CONSTANTS:s}=je(),i=r.reduce((a,c)=>a+(c.quantity??0),0);return n.jsx(m.Header.SupportItem,{onClick:()=>{t(!0),o({content:"header:minicart"})},id:e,children:n.jsxs(m.Badge.AutoPositioner,{children:[n.jsx(m.Badge.Count,{count:i,size:"medium",variant:"primary",style:{backgroundColor:"black",display:i>0?"flex":"none"}}),n.jsx(m.Icon,{name:s.header.ICONS.bag,size:"medium"})]})})};Ns.displayName="Header.Bag";const Kt=({children:e,href:t,...r})=>t&&t!=="#"?n.jsx(Le,{href:t.startsWith("/")?t:`/${t}`,...r,children:e}):e,Wu=()=>{const{headerData:e}=je(),{handleSelectContent:t}=ce(),{reset:r,updateValue:o}=lt(),s=i=>{i?o(i):r()};return n.jsx(m.Header.Categories,{children:Array.isArray(e.categories)&&e.categories.map((i,a)=>n.jsx(Kt,{href:i.link,onMouseEnter:()=>s(i.submenuId),onFocus:()=>s(i.submenuId),children:n.jsx(m.Header.CategoryItem,{className:Is["btn-header"],value:i.submenuId??null,adornment:{start:n.jsx(m.Icon,{name:i.iconStart}),end:n.jsx(m.Icon,{name:i.iconEnd})},style:{textWrap:"nowrap",gap:"0"},onClick:()=>{t({content:`header:${i.label}`})},children:i.label})},`category-${i.label}-${a}`))})};Wu.displayName="Header.Categories";function fg(){const{handleSelectContent:e}=ce(),{CONSTANTS:t}=je(),{setValue:r}=us();return n.jsx(m.Header.SupportItem,{onClick:()=>{r(!0),e({content:"header:search"})},children:n.jsx(m.Icon,{name:t.header.ICONS.search,size:"medium"})})}const pg={"menu-subcategories-container":"_menu-subcategories-container_a93cr_1"},mg={"observer-wrapper":"_observer-wrapper_r43gk_1"},Dr=({children:e,eventData:t,observerOptions:r,callBackWhenVisible:o,stopOnIntersection:s=!0,className:i,...a})=>{const c=x.useRef(null),l=ss(c,s,r),{sendDataLayerEvent:u}=ce();return x.useEffect(()=>{l&&(typeof o=="function"&&o(),t&&u({...t}))},[l]),n.jsx("div",{...a,ref:c,className:m.helpers.classNameConcat(mg["observer-wrapper"],i),children:e})},Ts=({thumbnails:e,category:t,isMobile:r=!0,callBack:o})=>{const{handleSelectPromotionEvent:s}=ce(),i=50/e.length;return n.jsx("div",{className:pg["menu-subcategories-container"],children:e.map((a,c)=>{const l=r?a.srcMobile:a.srcDesk;if(!l)return null;const u={creative_name:"banner-menu",creative_slot:`banner-menu:${t}:${c+1}`,promotion_id:l,promotion_name:a.promotion_name};return n.jsx(Dr,{eventData:{functionKey:"readyEvents",data:{event:"view_promotion",readyData:{ecommerce:{...u}}}},observerOptions:{delay:1e3},children:n.jsxs(Le,{href:a.link??"#",onClick:()=>{typeof o=="function"&&o(),s({updatePromotionRef:!0,promotion:u})},children:[n.jsx(Be.Image,{src:l,alt:a.label??l,width:500,height:500,sizes:`(max-width: 768px) 100vw, (max-width: 1023px) 75vw, ${i}vw`}),a.label&&n.jsx("p",{children:a.label})]})},`thumb-${a.label}-${c}`)})})};Ts.displayName="Menu.Thumbnail";const Uo={"menu-desktop":"_menu-desktop_1b799_1","menu-categories":"_menu-categories_1b799_12"},Vu=({children:e,dividerOnRight:t=!0,subMenu:r,...o})=>{var l;const{router:s}=xe(),{reset:i}=lt(),{handleSelectContent:a}=ce(),{CONSTANTS:c}=je();return n.jsxs("div",{...o,className:Uo["menu-categories"],children:[(l=r==null?void 0:r.subCategories)==null?void 0:l.map((u,f)=>{var p,g,y;const h=u.listCollapseDesk&&!((p=u.see_all)!=null&&p.link)?{expandAfterRowsQty:u.rowsToShowDesk}:{},d=u.listCollapseDesk&&!((g=u.see_all)!=null&&g.link)?{expansivesAdornments:{open:c.header.ICONS.add,close:c.header.ICONS.minus},expansivesLabels:{open:c.header.COMPONENT_LIST.listExpandLabel,close:c.header.COMPONENT_LIST.listCollapseLabel},iconSize:"x-small"}:{adornment:{end:n.jsx(m.Icon,{name:c.header.ICONS.arrow_right,size:"small"})}};return n.jsxs(m.ComponentList.Structure,{children:[n.jsx(Kt,{href:u.linkLabel,title:u.label,onClick:()=>{u.linkLabel&&(i(),a({content:`menu:${u.label??""}:${r.label??""}`}))},children:n.jsx(m.TextStructure.Root,{children:n.jsx(m.TextStructure.DivWrapper,{children:n.jsx("h2",{children:u.label})})})}),n.jsx(m.ComponentList.List,{columns:1,...h,className:Uo["submenu-categories"],children:u.items.map((_,b)=>n.jsx(m.ComponentList.ListItem,{id:`list-item-${_.label}-${b}`,children:n.jsx(Ye,{href:_.link??"#",size:"x-small",title:_.label??"",disableUnderline:!0,disablePadding:!0,onClick:()=>{i(),a({content:`menu:${u.label??""}:${_.label??""}:${r.label??""}`})},children:_.label})},`list-item-${_.label}-${b}`))}),((y=u.see_all)==null?void 0:y.link)&&n.jsx(m.ComponentList.Support,{...d,size:"small",onClick:()=>{var _;(_=u.see_all)!=null&&_.link&&(i(),a({content:`menu:${u.label??""}:${r.label}`}),s.push(u.see_all.link))},children:u.see_all.link&&u.see_all.label})]},`list-${u.label}-${f}`)}),t&&n.jsx(m.Utils.Divider,{size:"small",direction:"vertical"})]})};Vu.displayName="Menu.Categories";const Gu=({children:e,dividerOnBottom:t=!0,...r})=>{const{CONSTANTS:o}=je();return n.jsxs(n.Fragment,{children:[n.jsx("div",{...r,className:Uo["menu-desktop"],style:{...r.style,justifyContent:o.header.ALIGNMENT_MENU},children:e}),t&&n.jsx(m.Utils.Divider,{size:"small"})]})};Gu.displayName="Menu.MenuRoot";const xn={Root:Gu,Categories:Vu,Thumbnail:Ts},Ku=()=>{const{headerData:e,CONSTANTS:t}=je(),r=Ar(),{reset:o}=lt();return n.jsx(m.Header.SubMenu,{children:Array.isArray(e.subMenus)&&e.subMenus.map((s,i)=>{const{thumbnails:a,label:c,id:l}=s,u=l===r,f=a==null?void 0:a.some(h=>!!h.srcDesk);return n.jsxs(xn.Root,{id:l,style:u?{display:"flex",zIndex:t.header.Z_INDEX_WAR.menu_desktop}:{display:"none"},dividerOnBottom:u,children:[n.jsx(xn.Categories,{dividerOnRight:!!f,subMenu:s}),Array.isArray(a)&&n.jsx(xn.Thumbnail,{thumbnails:a,isMobile:!1,category:c,callBack:o})]},`submenu-${l}-${i}`)})})};Ku.displayName="Header.SubMenu";const Xu=()=>{const{handleSelectContent:e}=ce(),{CONSTANTS:t}=je();return n.jsx(Le,{href:"/favoritos",children:n.jsx(m.Header.SupportItem,{onClick:()=>e({content:"header:wishlist"}),children:n.jsx(m.Icon,{name:t.header.ICONS.favorite_false,size:"medium"})})})};Xu.displayName="Header.WishList";const Yu=()=>{const{CONSTANTS:e,userMenuDesktopRef:t}=je(),{handleSelectContent:r}=ce(),{reset:o}=lt(),{setValue:s}=Ut();return n.jsxs(n.Fragment,{children:[n.jsxs(m.Header.Wrapper,{children:[n.jsx(m.Header.Logo,{style:{width:"100%"},children:n.jsx(Le,{href:"/",onMouseEnter:o,children:n.jsx(m.Icon,{name:e.header.ICONS.logo,size:"x-large",onClick:()=>{r({content:"header:logo"})}})})}),n.jsx(Wu,{}),n.jsxs(m.Header.Support,{onMouseEnter:o,style:{justifyContent:"flex-end"},children:[n.jsx(fg,{}),n.jsx(m.Header.SupportItem,{onClick:()=>{s(!0),r({content:"header:user_menu"})},className:Is["btn-login"],innerRef:t,children:n.jsx(m.Icon,{name:e.header.ICONS.person,size:"medium"})}),n.jsx(Xu,{}),n.jsx(Ns,{id:"cart-button"})]})]}),n.jsx(Ku,{})]})};Yu.displayName="Header.HeaderDesktopWrapper";const hg="_divider_1lexj_199",we={"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:hg,"menu-navigationbar-item":"_menu-navigationbar-item_1lexj_206","menu-categories-textstructure-modifier":"_menu-categories-textstructure-modifier_1lexj_210"},Qu=({children:e,mobileBannerAlt:t,mobileBannerSrc:r,onClick:o,textColor:s,...i})=>n.jsx("button",{onClick:o,className:we["menu-categories-btn"],children:r?n.jsxs(m.Banner.Container,{...i,className:we["menu-body-banner-container-modifier"],children:[n.jsx(m.Banner.ImageWrapper,{style:{width:"100%"},children:n.jsx(Be.Image,{src:r,alt:t??r,className:we["menu-categories__banner"],width:343,height:128,unoptimized:!0})}),n.jsx(m.Banner.Slot,{verticalAlignment:"center",horizontalAlignment:"start",children:n.jsx(m.TextStructure.Root,{children:n.jsx(m.TextStructure.DivWrapper,{className:we["menu-categories-textstructure-modifier"],children:n.jsx("h2",{className:"typography-style-body-xs",style:s?{color:s}:{},children:e})})})})]}):n.jsx("h2",{...i,children:e})});Qu.displayName="Menu.MenuCategories";const Zu=({children:e,link:t})=>{const{reset:r}=yt();return t?n.jsx(Le,{href:t??"#",onClick:r,children:e}):e};Zu.displayName="Menu.MenuCategoriesWrapper";const Ju=({subcategory:e,submenuLabel:t})=>{var l,u,f;const{router:r}=xe(),{reset:o}=yt(),{handleSelectContent:s}=ce(),{CONSTANTS:i}=je(),a=e.listCollapseMobile&&!((l=e.see_all)!=null&&l.link)?{expandAfterRowsQty:e.rowsToShowMobile}:{},c=e.listCollapseMobile&&!((u=e.see_all)!=null&&u.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:n.jsx(m.Icon,{name:i.header.ICONS.arrow_right,size:"small"})}};return n.jsxs(m.ComponentList.Structure,{className:we["menu-submenu--component-list-modifier"],children:[n.jsx(Kt,{href:e.linkLabel,title:e.label,onClick:()=>{o(),s({content:`menu:${e.label??""}:${t}`})},children:n.jsx(m.TextStructure.Root,{children:n.jsx(m.TextStructure.DivWrapper,{children:n.jsx("h2",{className:"typography-style-body-sm-strong",children:e.label})})})}),n.jsx(m.ComponentList.List,{columns:1,...a,className:we["submenu-categories"],children:e.items.map((h,d)=>n.jsx(m.ComponentList.ListItem,{id:`list-item-${h.label}-${d}`,divider:!0,children:n.jsx(Ye,{href:h.link??"#",size:"x-small",title:h.label??"",disableUnderline:!0,onClick:()=>{o(),s({content:`menu:${e.label??""}:${h.label}:${t}`})},children:h.label})},`list-item-${h.label}-${d}`))}),((f=e.see_all)==null?void 0:f.link)&&n.jsx(m.ComponentList.Support,{...c,size:"small",onClick:()=>{var h;o(),s({content:`menu:${e.label??""}:${t}`}),(h=e.see_all)!=null&&h.link&&r.push(e.see_all.link)},children:e.see_all.link&&e.see_all.label})]})};Ju.displayName="Menu.SubMenuSubCategory";const ed=({submenu:e})=>{var i;const t=Ar(),{handleCloseSubMenu:r}=Vt(),{reset:o}=lt(),{CONSTANTS:s}=je();return n.jsxs("div",{className:we["menu-submenu--item"],style:{display:t===e.id?"flex":"none"},children:[n.jsx(m.TextStructure.Root,{adornment:{start:n.jsx(m.Icon,{name:s.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&&n.jsx(m.TextStructure.DivWrapper,{style:{position:"absolute",left:"50%",transform:"translate(-50%)"},children:n.jsx("h2",{className:"typography-style-body-md-strong",children:e.label})})}),n.jsx("div",{className:we["menu-submenu--thumbnails"],children:Array.isArray(e.thumbnails)&&n.jsx(Ts,{thumbnails:e.thumbnails,isMobile:!0,category:e.label,callBack:o})}),(i=e==null?void 0:e.subCategories)==null?void 0:i.map((a,c)=>n.jsx(Ju,{subcategory:a,submenuLabel:e.label},`list-${a.label}-${c}`))]})};ed.displayName="Menu.SubMenuItem";const td=()=>{const{headerData:e}=je(),t=Ar(),{reset:r}=lt(),{bodyRef:o}=Vt();return n.jsx(m.Modal.RootWithoutPortal,{isOpen:!!t,setIsOpen:r,parent:o.current,variant:"sideLeft",style:{position:"absolute",width:"100%"},className:we["menu-submenu-modal-modifiier"],children:n.jsx("div",{className:we["menu-submenu"],children:e.subMenus.map((s,i)=>n.jsx(ed,{submenu:s},`submenu-${s.id}-${i}`))})})};td.displayName="Menu.SubMenu";const rd=({className:e,...t})=>{const{headerData:r}=je(),{setValue:o}=lt(),{bodyRef:s}=Vt(),{handleSelectContent:i}=ce();return n.jsxs("div",{...t,ref:s,id:"menu-body",className:we["menu-body"],children:[n.jsx("div",{className:we["menu-categories-container"],children:r.categories.map((a,c)=>{const l=a.submenuId?{}:{"data-close":!0};return n.jsx(Zu,{link:a.submenuId?null:a.link,children:n.jsx(Qu,{onClick:()=>{o(a.submenuId??null),i({content:`menu:${a.label}`})},mobileBannerSrc:a.mobileBannerSrc,mobileBannerAlt:a.mobileBannerAlt,textColor:a.textColor,...l,children:a.mobileBannerAlt})},`menu-categories-${c}`)})}),n.jsx(td,{})]})};rd.displayName="Menu.MenuBody";const nd=({title:e,subtitle:t})=>{const{CONSTANTS:r}=je();return n.jsxs("div",{className:we["menu-header-wrapper"],style:t?{alignItems:"start"}:{alignItems:"center"},children:[(e||t)&&n.jsx(m.TextStructure.Root,{children:n.jsxs(m.TextStructure.DivWrapper,{children:[e&&n.jsx("h2",{className:"typography-style-body-md",children:e}),t&&n.jsx("h3",{children:t})]})}),n.jsx(m.Button,{adornment:{end:n.jsx(m.Icon,{name:r.header.ICONS.close})},variant:"tertiary",className:we["menu-close"],"data-close":!0})]})};nd.displayName="Menu.MenuHeaderWrapper";const od=({navigationLinks:e})=>{const{reset:t}=yt(),{handleSelectContent:r}=ce();return e?n.jsx("nav",{className:we["menu-header-navlinks"],children:e.map((o,s)=>n.jsx(Ye,{href:o.link??"#",adornments:{start:o.iconStart&&n.jsx(m.Icon,{name:o.iconStart}),end:o.iconEnd&&n.jsx(m.Icon,{name:o.iconEnd})},onClick:()=>{t(),r({content:`menu:navigationlinks-${o.label}`})},children:o.label},s))}):null};od.displayName="Menu.MenuHeaderNavLinks";const sd=()=>{const{headerData:e}=je();return n.jsxs("div",{className:we["menu-header-container"],children:[n.jsx(nd,{title:e.title,subtitle:e.subtitle}),n.jsx(od,{navigationLinks:e.navigationLinks})]})};sd.displayName="Menu.MenuHeaderContainer";const id=({children:e})=>{const{documentBodyRef:t}=Vt(),{CONSTANTS:r}=je(),o=ls(),{setValue:s}=yt();return n.jsx(m.Modal.RootWithoutPortal,{isOpen:o,setIsOpen:s,parent:t.current,variant:"sideLeft",style:{position:"fixed",zIndex:r.header.Z_INDEX_WAR.menu_mobile,bottom:"unset",top:0,overflowY:"hidden"},className:we["modal-modifier"],children:n.jsx("div",{className:we["menu-mobile"],children:e})})};id.displayName="Menu.MenuRoot";const ad=({children:e,...t})=>n.jsxs(n.Fragment,{children:[n.jsx(m.Button,{...t,className:we["menu-navigationbar-item"],children:e}),n.jsx(m.Utils.Divider,{direction:"vertical",size:"small",className:we.divider})]});ad.displayName="Menu.NavigationBarItem";const cd=()=>{const{setIsOpen:e}=Ee(),{reset:t}=yt(),{setValue:r}=Ut(),{handleSelectContent:o}=ce(),{CONSTANTS:s}=je(),{router:i}=xe();return n.jsx(m.Card,{id:"menu-navigationbar",shadow:!0,className:we["menu-navigationbar"],style:{zIndex:s.header.Z_INDEX_WAR.menu_mobile_navigation_bar},children:s.header.MENU_INFO.navigation_bar.items.map(a=>n.jsx(ad,{size:"small",variant:"tertiary",iconNameStart:a.button_icon,onClick:()=>{a.href&&i.push(a.href),t(),a.openUserMenu&&r(!0),a.openCart&&e(!0),o({content:`menu:${a.eventContent}`})},children:a.button_text}))})};cd.displayName="Menu.NavigationBar";const mr={Root:id,NavigationBar:cd,Header:sd,Body:rd},ld=()=>{const e=x.useRef(null),{CONSTANTS:t,userMenuMobileRef:r}=je(),{MENU_NAVIGATION_BAR_ALLOWED:o,ICONS:s,MENU_MOB_BTN_SIDE:i="right"}=t.header,{handleSelectContent:a}=ce(),{setValue:c}=us(),{setValue:l}=yt(),{setValue:u}=Ut();return n.jsxs(n.Fragment,{children:[n.jsxs(m.Header.Wrapper,{children:[i==="left"&&n.jsx(m.Header.SupportItem,{onClick:()=>l(!0),innerRef:e,children:n.jsx(m.Icon,{name:s.menu,size:"medium"})}),n.jsx(m.Header.Logo,{style:{width:"100%",justifyContent:"center"},children:n.jsx(Le,{href:"/",children:n.jsx(m.Icon,{name:s.logo,size:"x-large",onClick:()=>{a({content:"header:logo"})}})})}),n.jsxs(m.Header.Support,{children:[n.jsx(m.Header.SupportItem,{onClick:()=>{c(!0),a({content:"header:search"})},children:n.jsx(m.Icon,{name:s.search,size:"medium"})}),n.jsx(m.Header.SupportItem,{onClick:()=>{u(!0),a({content:"header:user_menu"})},innerRef:r,children:n.jsx(m.Icon,{name:s.person,size:"medium"})}),n.jsx(Ns,{}),i==="right"&&n.jsx(m.Header.SupportItem,{onClick:()=>l(!0),innerRef:e,children:n.jsx(m.Icon,{name:s.menu,size:"medium"})})]})]}),n.jsx(il,{children:n.jsxs(mr.Root,{children:[n.jsx(mr.Header,{}),n.jsx(mr.Body,{}),o?n.jsx(mr.NavigationBar,{}):n.jsx(n.Fragment,{})]})})]})};ld.displayName="Header.HeaderMobileWrapper";const gg="_root_wvekm_126",He={"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:gg},ud=({className:e,children:t,...r})=>n.jsx("div",{...r,className:m.helpers.classNameConcat(He["user-menu--content"],e),children:t});ud.displayName="UserMenu.Content";var dd=(e=>(e.Account="account",e))(dd||{});const fd=({className:e,cashBack:t,credits:r,link:o,total:s,...i})=>{const a=t?W.formatPriceToCurrency(t):void 0,c=r?W.formatPriceToCurrency(r):void 0,l=s?W.formatPriceToCurrency(s):void 0;return n.jsx(m.Credits.Account,{...i,className:m.helpers.classNameConcat(He["user-menu--credits"],e),icon:"wallet",showIcon:!0,cashBackValue:a,creditsValue:c,linkMore:o,totalValue:l,type:dd.Account})};fd.displayName="UserMenu.Credits";const pd=({className:e,children:t,description:r,text:o,...s})=>{const{isMobile:i}=le();return n.jsx("div",{...s,className:m.helpers.classNameConcat(He["user-menu--login"],e),"data-mobile":i,children:n.jsxs("div",{className:He["user-menu--login--content"],children:[n.jsx(m.TextStructure.Root,{children:n.jsxs(m.TextStructure.DivWrapper,{alignContent:"flex-start",alignItems:"flex-start",children:[n.jsx("h3",{className:"typography-style-body-lg-strong",children:o}),n.jsx("p",{children:r})]})}),t]})})};pd.displayName="UserMenu.Login";const md=({className:e,isLogged:t,onLogoutClick:r,ICONS:o,storeConfig:s})=>{const{isMobile:i}=le(),a=Tm({ICONS:o,storeConfig:s}).filter(c=>c.deviceShown==="both"||c.deviceShown===(i?"mobile":"desktop"));return n.jsxs("ul",{className:m.helpers.classNameConcat(He["user-menu--menu"],e),children:[Array.isArray(a)&&a.map((c,l)=>n.jsx("li",{children:n.jsx(Ye,{href:c.href??"#",size:"small",disableUnderline:!0,adornments:{start:n.jsx(m.Icon,{name:c.icon??"delete"})},children:c.label})},l)),t?n.jsx("li",{children:n.jsx(Ye,{href:`${s.secureSubdomain}/api/vtexid/pub/logout?scope=mariafilo&returnUrl=${encodeURIComponent(`${s.storeUrl}`)}`,size:"small",disableUnderline:!0,onClick:r,adornments:{start:n.jsx(m.Icon,{name:Nm(o)})},children:Im})}):n.jsx(n.Fragment,{})]})};md.displayName="UserMenu.Menu";const hd=e=>{const t=x.useRef(null),r=x.useCallback(i=>{t.current&&!t.current.contains(i.target)&&e()},[e]),o=x.useCallback(i=>{t.current&&!t.current.contains(i.target)&&e()},[e]),s=x.useCallback(i=>{i.key==="Escape"&&e()},[e]);return x.useEffect(()=>(document.addEventListener("mousedown",r),document.addEventListener("keydown",s),document.addEventListener("touchstart",o),()=>{document.removeEventListener("mousedown",r),document.removeEventListener("keydown",s),document.removeEventListener("touchstart",o)}),[r,s,o]),{ref:t}},yg=e=>{if(!e||typeof window>"u")return 0;const t=window.getComputedStyle(e);return parseInt(t.padding,10)},_g=(e,t,r)=>{if(!(e instanceof HTMLElement)||!(t instanceof HTMLElement))return{left:0,top:0};const{height:o,left:s,top:i,width:a}=t.getBoundingClientRect(),c=e.getBoundingClientRect(),l=e!=null&&e.parentElement?yg(e==null?void 0:e.parentElement):0;return{left:s+a/2-(c.width+l*2),top:i+o+r}},gd=x.createContext({}),vg=({children:e,delay:t=600,gap:r=20,isOpen:o,setIsOpen:s,target:i,...a})=>{const c=x.useRef(null),[l,u]=x.useState(!1),[f,h]=x.useState({left:0,top:0}),{ref:d}=hd(()=>{u(!0),typeof window<"u"&&(c.current=window.setTimeout(()=>{s(!1),u(!1)},t))});return x.useEffect(()=>{if(i&&(d!=null&&d.current)){const{left:p,top:g}=_g(d.current,i,r??0);h({left:p,top:g}),u(!1)}},[r,o,i,d]),n.jsx(gd.Provider,{value:x.useMemo(()=>({...a,...f,contentRef:d,isLeaving:l,isOpen:o,setIsOpen:s,setIsLeaving:u,target:i}),[a,f,d,l,o,s,u,i]),children:e})},yd=()=>{const e=x.useContext(gd);if(e===void 0)throw new Error("useUserMenuContext must be used within a UserMenuProvider");return e},_d=({children:e,isMobile:t=!1,Z_INDEX_WAR:r})=>{const{isOpen:o,setIsOpen:s}=yd();return n.jsxs(m.Modal.Root,{"data-user":"user-menu--modal",isMobile:t??!1,isOpen:o,setIsOpen:s,variant:"sideBottom",className:He["modal-root-modifier"],style:{zIndex:r.user_menu_mobile},children:[n.jsx(m.Modal.Header,{navigation:"top",className:He["modal-header-modifier"],children:n.jsx(m.Modal.Controls,{navigation:"top",isMobile:!0,className:He["modal-controls-modifier"]})}),n.jsx(m.Modal.Body,{children:e})]})};_d.displayName="UserMenu.Modal";const vd=({children:e,component:t,Z_INDEX_WAR:r,isMobile:o,...s})=>n.jsx(vg,{...s,className:He.root,children:o?n.jsxs(n.Fragment,{children:[n.jsx(dt.Modal,{Z_INDEX_WAR:r,children:t}),e]}):n.jsx(dt.Tooltip,{component:t,style:{width:304,zIndex:r.user_menu},Z_INDEX_WAR:r,children:e})});vd.displayName="UserMenu.Root";const xd=({children:e,component:t,Z_INDEX_WAR:r,...o})=>{const{contentRef:s,left:i,isLeaving:a,isOpen:c,top:l}=yd();return n.jsx(m.Tooltip.Root,{arrow:"top-right",component:n.jsx("div",{...o,ref:s,children:t}),className:m.helpers.classNameConcat(He["user-menu--tooltip"],He["tooltip-modifier"]),isLeaving:a,isOpen:c,left:i,size:"medium",position:"top",top:l,style:{zIndex:r.user_menu},children:n.jsx("div",{className:He["user-menu--tooltip"],children:e})})};xd.displayName="UserMenu.Tooltip";const dt={Credits:fd,Content:ud,Login:pd,Menu:md,Modal:_d,Root:vd,Tooltip:xd},Os=()=>{var y,_,b;const e=Nt(),{isMobile:t}=le(),{userMenuMobileRef:r,userMenuDesktopRef:o,CONSTANTS:{header:s},storeConfig:i}=je(),{ICONS:a,Z_INDEX_WAR:c,MENU_INFO:l}=s,u=Kc(),{setValue:f}=Ut(),h=()=>{window.location.href=`${i.secureSubdomain}/api/io/login?returnUrl=${encodeURIComponent(`${i.storeUrl}`)}`},d=!!((y=e.user)!=null&&y.userId),{cashback:p,credits:g}=x.useMemo(()=>{var C,v;return{credits:((C=e==null?void 0:e.getCurrentCredits())==null?void 0:C.credits)??0,cashback:((v=e==null?void 0:e.getCurrentCredits())==null?void 0:v.cashback)??0}},[e]);return n.jsx(dt.Root,{component:n.jsxs(dt.Content,{children:[n.jsx(dt.Login,{description:km(d),text:Om(d,((_=e==null?void 0:e.user)==null?void 0:_.firstName)??((b=e==null?void 0:e.user)==null?void 0:b.email)),children:!d&&n.jsx(m.Button,{size:"medium",variant:"quaternary",onClick:()=>h(),children:l.login.button_text})}),g+p&&d?n.jsx(dt.Credits,{credits:g,cashBack:p,link:`${i.secureSubdomain}/account#/meus-creditos`,total:g+p}):n.jsx(n.Fragment,{}),n.jsx(m.Utils.Divider,{}),n.jsx(dt.Menu,{isLogged:d,onLogoutClick:()=>e.logout(),ICONS:a,storeConfig:i})]}),target:t?r.current:o.current,isOpen:u,isMobile:t,setIsOpen:f,Z_INDEX_WAR:c})};Os.displayName="UserMenu";const xg=x.createContext({}),bg=({children:e})=>{const{sendDataLayerEvent:t}=ce(),{cartStore:r,isOpen:o}=Ee();x.useEffect(()=>{o&&t({functionKey:"viewCartEvent",data:{commonData:{cartStore:r}}})},[o]),x.useEffect(()=>{var i,a,c;if(r.id&&!((a=(i=r.marketingData)==null?void 0:i.marketingTags)!=null&&a.includes("faststore"))){const{id:l}=r;ft.post("/api/checkout/order-form/attachments/marketing-data",{orderFormId:l,marketingData:{...r==null?void 0:r.marketingData,marketingTags:Mc(((c=r.marketingData)==null?void 0:c.marketingTags)??[])}}).catch(u=>{console.error(u)})}},[r]);const s=({cartItem:i,oldQuantity:a,newQuantity:c})=>{t({functionKey:"skuEvents",data:{event:a>c?"remove_from_cart":"add_to_cart",commonData:{products:[{...i,price:i.price/100,listPrice:i.listPrice/100}]},customData:{quantity:c},supportData:{selectedSkus:[i]}}})};return n.jsx(xg.Provider,{value:{handleUpdateItemQuantityEvent:s},children:e})},jg="_fadeInOut_ottz1_1",Cg="_fadeOut_ottz1_1",de={"mc--cashback":"_mc--cashback_ottz1_1","mc--cashback--positive":"_mc--cashback--positive_ottz1_21","mc--cashback--alert":"_mc--cashback--alert_ottz1_24","mc--container--actions":"_mc--container--actions_ottz1_28","mc--container--actions--secondary":"_mc--container--actions--secondary_ottz1_36","mc--container--actions--toggle-size-modifier":"_mc--container--actions--toggle-size-modifier_ottz1_54","mc--footer":"_mc--footer_ottz1_58","mc--footer--actions":"_mc--footer--actions_ottz1_67","mc--footer--actions-button":"_mc--footer--actions-button_ottz1_73","mc--footer--total":"_mc--footer--total_ottz1_89","mc--footer--total--info":"_mc--footer--total--info_ottz1_94","mc--footer--total--info--content":"_mc--footer--total--info--content_ottz1_99","mc--field":"_mc--field_ottz1_143","mc--body":"_mc--body_ottz1_183","mc--body--products":"_mc--body--products_ottz1_190","mc--body--empty--feedback":"_mc--body--empty--feedback_ottz1_198","mc--body--empty--text":"_mc--body--empty--text_ottz1_203","mc--header":"_mc--header_ottz1_217","mc--header--subtitle":"_mc--header--subtitle_ottz1_243","mc--notify":"_mc--notify_ottz1_284","mc--notify--content":"_mc--notify--content_ottz1_299","mc--notify--item":"_mc--notify--item_ottz1_312",fadeInOut:jg,fadeOut:Cg,"mc--card":"_mc--card_ottz1_374","mc--card--actions":"_mc--card--actions_ottz1_379","mc--card--actions--secondary":"_mc--card--actions--secondary_ottz1_387","mc--card--actions--add-remove":"_mc--card--actions--add-remove_ottz1_414","mc--card--actions--gift":"_mc--card--actions--gift_ottz1_428","mc--card--content-info":"_mc--card--content-info_ottz1_444","mc--card--details":"_mc--card--details_ottz1_451","mc--card--link":"_mc--card--link_ottz1_456","mc--product--unavailable":"_mc--product--unavailable_ottz1_464","mc--card--name":"_mc--card--name_ottz1_467","mc--card--price":"_mc--card--price_ottz1_482","mc--card--price--old-price":"_mc--card--price--old-price_ottz1_492","mc--card--price--price-details":"_mc--card--price--price-details_ottz1_496","mc--card--product-link":"_mc--card--product-link_ottz1_507","mc--discount":"_mc--discount_ottz1_517","mc--discount--body":"_mc--discount--body_ottz1_526","minicart--modal-modifier":"_minicart--modal-modifier_ottz1_547"},bd=({item:{id:e,message:t,callback:r},removeNotification:o,ICONS:s})=>{const i=x.useRef(null),a=()=>{var l;(l=i.current)==null||l.setAttribute("data-animation-out","true")},c=l=>{o(l)};return n.jsx("div",{className:de["mc--notify--item"],ref:i,onAnimationEnd:()=>c(e),children:n.jsxs(m.SnackBar.Structure,{size:"medium",children:[n.jsx(m.SnackBar.Content,{title:t}),n.jsxs(m.SnackBar.Support,{children:[typeof r=="function"&&n.jsx(m.Button,{onClick:()=>{r(),a()},size:"small",variant:"tertiary",children:"Desfazer"}),n.jsx(m.Button,{iconNameStart:s.close,iconSize:"small",onClick:()=>a(),variant:"tertiary"})]})]})},e)};bd.displayName="MiniCart.Notify.Item";const jd=({ICONS:e})=>{const t=as(),{removeNotification:r}=cs(),o=t.length?[...t].sort((s,i)=>i.id-s.id):[];return n.jsx("div",{className:de["mc--notify"],children:n.jsx("div",{className:de["mc--notify--content"],children:Array.isArray(o)&&o.map(s=>n.jsx(bd,{item:s,removeNotification:r,ICONS:e},s.id))})})};jd.displayName="MiniCart.Notifications";const Sg=({handleSendEvent:e,onHandleRemove:t,product:r,MINICART_CONFIG:o,...s})=>{const i=It(),{toggleProduct:a}=_t(),{itemOffered:{isVariationOf:{productGroupID:c}},quantity:l}=r;return n.jsx(m.Button,{...s,adornment:{end:n.jsx(m.Icon,{name:`favorite-${i.includes(c)?"true":"false"}`,size:"small"})},onClick:()=>{a(c),i.includes(c)||t({texture:"mini-cart-wishlist",title:`${o.messages.add_wishlist}`},l,()=>a(c)),e(i.includes(c)?"remove_from_wishlist":"add_to_wishlist","productEvents")},children:o.messages.add_wishlist_button})},Cd=({handleSendEvent:e,product:t,ICONS:r,MINICART_CONFIG:o,...s})=>{const{addToCart:i,removeToCart:a}=Ee(),{bundleItems:c=[],id:l,uniqueId:u,seller:f,offerings:h,quantity:d}=t,p=(g,y,_)=>{a(l,g.title,()=>{typeof _=="function"&&_(),i({id:l,quantity:y,seller:f},{id:l,texture:g.texture},!0)})};return n.jsxs(n.Fragment,{children:[n.jsxs("div",{className:de["mc--card--actions--add-remove"],children:[o.has_wishlist_button&&n.jsx(Sg,{...s,product:t,handleSendEvent:e,onHandleRemove:p,ICONS:r,MINICART_CONFIG:o}),n.jsx(m.Button,{...s,adornment:{end:n.jsx(m.Icon,{name:r.delete,size:"small"})},variant:"secondary",state:"danger",onClick:()=>{p({texture:"mini-cart",title:`${o.messages.remove}`},d),e("remove_from_cart","skuEvents")},children:o.messages.remove_button})]}),o.has_gift_option&&n.jsx(jt.Gift,{uniqueId:u,bundleItems:c,offerings:h,ICONS:r,MINICART_CONFIG:o})]})};Cd.displayName="MiniCart.Card.Actions";const Sd=({bundleItems:e,offerings:t,uniqueId:r,ICONS:o,MINICART_CONFIG:s})=>{const[i,a]=x.useState(!1),{toggleGiftItemCart:c}=Ee(),l=()=>{if(t instanceof Object&&Array.isArray(t)){const[h]=t;if(h){a(!0);const d=e.some(p=>p.id===h.id);c(r,String(h.id),d).then(()=>a(!1))}}},u=t[0],f=e.find(h=>h.id===u.id);return u&&"id"in u?n.jsx("div",{className:de["mc--card--actions--gift"],children:n.jsx(m.Checkbox,{adornment:n.jsx(m.Icon,{name:o.check}),checked:!!f,disabled:i,label:s.messages.giftPackage,onChange:l})}):null};Sd.displayName="MiniCart.Card.Gift";const Pd=({itemOffered:e})=>{const t=W.updatedResizedImg(e==null?void 0:e.image[0].url,{width:200,height:300});return n.jsx(Le,{href:`${e==null?void 0:e.slug}`,className:de["mc--card--product-link"],children:n.jsx(Be.Image,{alt:(e==null?void 0:e.image[0].alternateName)||"Produto",src:t||"",width:108,height:164})})};Pd.displayName="MiniCart.Card.Media";const wd=({name:e,skuName:t,tagName:r,className:o})=>n.jsxs(n.Fragment,{children:[r&&n.jsx(m.Tag,{variant:"quaternary",title:r,style:{textTransform:"uppercase"},children:r}),n.jsx("p",{className:m.helpers.classNameConcat(de["mc--card--name"],o),children:W.getProductNameWithoutSku(e??"",t??"")})]});wd.displayName="MiniCart.Card.Name";const Ed=({total:e,totalList:t})=>n.jsx(m.ProductInfo.Root,{children:n.jsx(m.TextStructure.Root,{children:n.jsx(m.TextStructure.DivWrapper,{className:de["mc--card--price"],children:n.jsx(m.ProductInfo.Wrapper,{className:de["mc--card--price--details"],size:"small",layout:"horizontal",children:t&&e!==t?n.jsxs(n.Fragment,{children:[n.jsx(m.ProductInfo.Price,{label:"originalPrice",value:W.formatPriceToCurrency(t),size:"small"}),n.jsx(m.ProductInfo.Price,{label:"discountPrice",value:W.formatPriceToCurrency(e),size:"small"})]}):n.jsx(m.ProductInfo.Price,{label:"defaultPrice",value:W.formatPriceToCurrency(e),size:"small"})})})})});Ed.displayName="MiniCart.ProductPrice";const Rd=({product:e,TEXTURE_IMAGE:t,TOGGLE_STYLE_MODIFIER:r})=>{var u;const[o,s]=x.useState(""),i=x.useRef(null),{cartStore:{options:a}}=Ee(),c=e.itemOffered.isVariationOf.productGroupID,l=x.useCallback(()=>{var h;const f=(h=a==null?void 0:a.find(d=>d.id===c))==null?void 0:h.texture;if(f){s(f);return}fetch("/api/catalog/product/info",{method:"POST",priority:"low",body:JSON.stringify({ids:[c]})}).then(d=>d.json()).then(d=>{const p=d.data[0].items.find(g=>g.itemId===e.id);if(p){const g=p.images.find(y=>t.includes(y.imageLabel));if(g!=null&&g.imageUrl){s(g.imageUrl);return}s(p.images[0].imageUrl)}}).catch(d=>{console.error(d)})},[a,c,e.id]);return x.useEffect(()=>{if(!i.current)return;new IntersectionObserver(l).observe(i.current)},[l]),n.jsx("div",{ref:i,children:n.jsx(m.ToggleStyle.Wrapper,{size:"small",style:r,children:n.jsx(m.ToggleStyle.Texture,{children:o?n.jsx(Be.Image,{alt:((u=e.itemOffered)==null?void 0:u.image[0].alternateName)??"Produto",src:o,width:164,height:164,style:r}):n.jsx(Jl,{})})})})};Rd.displayName="MiniCart.Card.Style";const Ad=({product:e,NAME_SPLIT_SYMBOL:t,TEXTURE_IMAGE:r,TOGGLE_STYLE_MODIFIER:o})=>{const{size:s}=W.getColorAndSizeFromSkuName(e.itemOffered.skuName??"",t);return n.jsxs(m.Utils.Row,{alignItems:"center",children:[n.jsx(Rd,{product:e,TEXTURE_IMAGE:r,TOGGLE_STYLE_MODIFIER:o}),n.jsx(m.Utils.Divider,{direction:"vertical",size:"small",style:{height:24}}),s&&n.jsx(m.ToggleSize.Wrapper,{size:"small",variation:"fill",className:de["mc-container-actions--toggle-size-modifier"],children:n.jsx(m.ToggleSize.Text,{children:s})})]})};Ad.displayName="MiniCart.Card.Sku";const jt={Actions:Cd,Gift:Sd,Media:Pd,Name:wd,Price:Ed,Sku:Ad},Pg=e=>{var t;return{price:e.sellingPrice/100,listPrice:e.listPrice/100,totalPrice:(((t=e.priceDefinition)==null?void 0:t.total)??0)/100,totalListPrice:e.listPrice*e.quantity/100}},Id=({available:e=!0,index:t,product:r,ICONS:o,MINICART_CONFIG:s,NAME_SPLIT_SYMBOL:i,TEXTURE_IMAGE:a,TOGGLE_STYLE_MODIFIER:c})=>{var h,d;const{sendDataLayerEvent:l}=ce(),u=Pg(r),f=(p,g)=>{const y={commonData:{...r,...u},customData:{index:t},event:p};if(g==="skuEvents"){const _={...r,...u};y.supportData={selectedSkus:[_]},y.commonData.products=[_]}l({functionKey:g,data:y})};return n.jsxs("div",{className:m.helpers.classNameConcat(de["mc--card"],e?"":de["mc--card--unavailable"]),children:[n.jsx(jt.Media,{itemOffered:r.itemOffered}),n.jsxs("div",{className:de["mc--card--content-info"],children:[n.jsx(jt.Name,{name:((h=r.itemOffered)==null?void 0:h.name)??"",skuName:(d=r.itemOffered)==null?void 0:d.skuName}),n.jsxs("div",{className:de["mc--card--details"],children:[n.jsx("div",{className:de["mc--card--actions"],children:e?n.jsx(jt.Price,{total:u.price,totalList:u.listPrice}):n.jsx(m.Tag,{variant:"secondary",size:"small",children:"Indisponível"})}),n.jsxs("div",{className:de["mc--card--actions--secondary"],children:[e&&n.jsx(jt.Sku,{product:r,NAME_SPLIT_SYMBOL:i,TEXTURE_IMAGE:a,TOGGLE_STYLE_MODIFIER:c}),n.jsx(jt.Actions,{handleSendEvent:f,product:r,size:"small",variant:"tertiary",ICONS:o,MINICART_CONFIG:s})]})]})]})]})};Id.displayName="MiniCart.Card";const Nd=({type:e="positive",ICONS:t,MESSAGE_CASHBACK:r})=>{var i;const{toExpire:o}=Nt(),s=((i=o==null?void 0:o.cashback)==null?void 0:i.reduce((a,c)=>a+c.remaining_value,0))??0;return s>0?n.jsxs("div",{className:m.helpers.classNameConcat(de["mc--cashback"],de[`mc--cashback--${e}`]),children:[n.jsx(m.Icon,{name:t.alert_circle,size:"medium"}),n.jsxs("p",{children:[n.jsx("span",{children:W.formatPriceToCurrency(s)})," ",r.title]})]}):null};Nd.displayName="MiniCart.Cashback";const Td=({type:e,ICONS:t,MINICART_CONFIG:r})=>{const{addCouponSeller:o,removeCoupon:s,removeSellerCode:i,cartStore:{marketingData:a,openTextField:c}}=Ee(),[l,u]=x.useState(!1),[f,h]=x.useState(!1),d=x.useCallback(()=>{let _="";return e==="coupon"?_=(a==null?void 0:a.coupon)??"":_=String((c==null?void 0:c.value)??""),_.toUpperCase()??""},[a,c,e]),[p,g]=x.useState(!!d()),y=async _=>{h(!0),!!d()&&(e==="coupon"?await s():await i(),g(!1),u(!1)),await o(_,e).then(C=>{if(!C.statusOk&&_||C.code!==200){_?(u(!0),g(!1)):u(!1);return}g(!0),u(!1)}).catch(()=>u(!0)).finally(()=>h(!1))};return n.jsx(Me.Field,{hasError:l,hasSuccess:p,isLoading:f,onHandler:y,type:e,title:e==="coupon"?`${r.messages.descount_cupom_placeholder}`:`${r.messages.sellers_code_placeholder}`,value:d(),MINICART_CONFIG:r,ICONS:t})};Td.displayName="MiniCart.CouponSeller";const Od=({ICONS:e,MINICART_CONFIG:t,PLP_NOT_RESULT:r})=>{const{router:o}=xe(),s=()=>{o.push(r.link)};return n.jsxs(m.Utils.Column,{alignContent:"center",alignItems:"center",gap:"24px",className:de["mc--body--empty--feedback"],children:[n.jsx(m.TextStructure.Root,{children:n.jsx(m.TextStructure.DivWrapper,{children:n.jsxs("p",{className:`typography-style-body-xs ${de["mc--body--empty--text"]}`,children:[t.messages.empty_card," "]})})}),n.jsx(m.Button,{variant:"tertiary",size:"large",onClick:()=>s(),"data-close":!0,adornment:{end:n.jsx(m.Icon,{name:e.arrow_right,size:"medium"})},children:t.messages.empty_bag})]})};Od.displayName="MiniCart.Feedback";const wg=e=>{const t=e.replace(/\D/g,"");return t.length>5?`${t.slice(0,5)}-${t.slice(5,8)}`:t},kd=({feedback:e,hasError:t,onHandler:r,hasSuccess:o,type:s,title:i,value:a,ICONS:c})=>{const[l,u]=x.useState(a);x.useEffect(()=>{t||u(a)},[a,t]);const f=()=>t?n.jsx(m.Icon,{name:c.delete_circle}):String(a).length&&o?n.jsx(m.Icon,{name:c.check_circle}):null,h=()=>{if(s==="seller"){const y=String(a).includes(" - ")?String(a).split(" - ")[0]:l;u(y)}},d=()=>{if(s==="seller"){const y=String(a).includes(" - ")?a:l;u(y)}},p=y=>{const _=y.currentTarget.value;if(_===""&&typeof r=="function"||o&&String(a).length>0&&_!==String(a)||t&&_!==String(a)){u(""),r("");return}if(s==="cep"){const C=wg(_);u(C)}else u(_)},g=y=>{if(y.key.toLocaleLowerCase()==="enter"&&typeof r=="function"){const _=y.currentTarget.value;r(_)}};return n.jsx(m.TextField.Input,{adornment:{end:f()},mode:"over-label",label:i,feedback:e,value:l,type:"text",onFocus:h,onBlur:d,onChange:p,onKeyDown:g})};kd.displayName="MiniCart.Field.Input";const Ld=({title:e,ICONS:t,MINICART_CONFIG:r,...o})=>{const s=x.useRef(null),{hasSuccess:i,hasError:a,isLoading:c,onHandler:l,type:u,value:f}=o,h=()=>a?"error":String(f).length&&i?"success":"none",d=x.useCallback(()=>{if(s.current){const y=s.current.querySelector("input");y&&typeof l=="function"&&(f!==""||a?(l(""),y.value=""):l((y==null?void 0:y.value)??""))}},[l,f,a]),p=h();return n.jsx("div",{ref:s,children:n.jsx(m.TextField.Structure,{className:de["mc--field"],input:n.jsx(kd,{...o,feedback:p,title:e,ICONS:t}),right:n.jsx(m.Button,{"data-has-success":!i,size:"medium",title:String(f).length&&i||a?"Remover":"Aplicar",onClick:()=>d(),disabled:c,children:String(f).length&&i||a?n.jsx(m.Icon,{name:"close",size:"small"}):`${r.messages.promo_code_button}`}),supportText:u==="cep"&&p==="success"?n.jsx(m.TextField.SupportText,{text:"Mais informações de frete na etapa a seguir",feedback:"success",title:"support"}):null})})};Ld.displayName="MiniCart.Field";const Md=({children:e,ICONS:t,MINICART_CONFIG:r,NAME_SPLIT_SYMBOL:o,PLP_NOT_RESULT:s,TEXTURE_IMAGE:i,TOGGLE_STYLE_MODIFIER:a})=>{const{cartStore:{items:c,messages:l}}=Ee();return n.jsxs(m.Modal.Body,{className:de["mc--body"],children:[e,n.jsx("div",{className:de["mc--body--products"],children:Array.isArray(c)&&c.length?c.map((u,f)=>{const h=l.find(d=>{var p;return d.code==="withoutStock"&&((p=d.fields)==null?void 0:p.ean)===u.ean})!==void 0;return n.jsx(Me.Card,{available:!u.availability.includes("outStock")||!h,index:f,product:u,ICONS:t,MINICART_CONFIG:r,NAME_SPLIT_SYMBOL:o,TEXTURE_IMAGE:i,TOGGLE_STYLE_MODIFIER:a},`${u.id}-${u.itemOffered.sku}-${f}`)}):n.jsx(Me.Feedback,{ICONS:t,MINICART_CONFIG:r,PLP_NOT_RESULT:s})})]})};Md.displayName="MiniCart.Body";const Dd=({children:e,storeConfig:t,MINICART_CONFIG:r})=>{const{cartStore:o}=Ee();if(o.items.length===0)return null;const s=()=>{var a;const i=new URLSearchParams({orderFormId:o.id,...((a=o.marketingData)==null?void 0:a.utmCampaign)&&{utm_campaign:o.marketingData.utmCampaign}});window.location.href=`${t.checkoutUrl}?${i.toString()}#/cart`};return n.jsxs(m.Modal.Footer,{className:de["mc--footer"],children:[e,n.jsx("div",{className:de["mc--footer--actions"],children:n.jsx(m.Button,{variant:"primary",size:"large","data-close":!0,className:de["mc--footer--actions-button"],onClick:s,children:r.messages.checkout_button})})]})};Dd.displayName="MiniCart.Modal.Footer";const $d=({children:e,className:t,ICONS:r,MINICART_CONFIG:o})=>n.jsxs(m.Accordion.Wrapper,{className:de["mc--discount"],children:[n.jsx(m.Accordion.Header,{id:"frete",title:"Frete",closeIndicator:n.jsx(m.Icon,{name:r.arrow_up,size:"medium"}),openIndicator:n.jsx(m.Icon,{name:r.arrow_down,size:"medium"}),className:m.helpers.classNameConcat(de["mc--discount--header"],t),startOpen:o.promotion_input_starts_open,children:n.jsx(m.TextStructure.Root,{children:n.jsxs(m.TextStructure.DivWrapper,{children:[n.jsxs("h3",{className:"typography-style-body-sm",children:[o.messages.promo_code_title," "]}),n.jsx("p",{className:"typography-style-body-xs",children:o.messages.promo_code_subtitle})]})})}),n.jsx(m.Accordion.Body,{className:de["mc--discount--body"],children:e}),n.jsx(m.Utils.Divider,{direction:"horizontal",size:"small",style:{height:16}})]});$d.displayName="MiniCart.Discount";const zd=({discount:e,shipping:t,total:r})=>{var c;const{tags:o}=rt(),s=r-Math.abs(e??0)+(t??0),i=t===0?"Frete Grátis":W.formatPriceToCurrency((t??0)/100),a=[{title:"Subtotal",value:W.formatPriceToCurrency(r/100)},{title:"Frete",value:t===void 0?"A calcular":i},{title:"Desconto",value:W.formatPriceToCurrency((e??0)/100)},{message:((c=o==null?void 0:o.flagCart)==null?void 0:c.flagTotal)??"",title:"Total",value:`1x de ${W.formatPriceToCurrency(s/100)}`}];return n.jsx("div",{className:de["mc--footer--total"],children:Array.isArray(a)&&a.map((l,u)=>n.jsxs("div",{className:de["mc--footer--total--info"],"data-discount":l.title==="Desconto",children:[n.jsx("p",{children:l.title}),n.jsxs("div",{className:de["mc--footer--total--info--content"],children:[l.message&&n.jsx(m.Tag,{variant:"primary",title:l.message,children:l.message}),n.jsx(m.ProductInfo.Price,{className:de["mc--footer--total--info"],label:l.title,value:l.value})]})]},u))})};zd.displayName="MiniCart.Modal.Footer.Resume.Items";const Bd=({totalizers:e})=>{var s,i,a;const t=((s=e.find(c=>c.id==="Items"))==null?void 0:s.value)??0,r=(i=e.find(c=>c.id==="Discounts"))==null?void 0:i.value,o=(a=e.find(c=>c.id==="Shipping"))==null?void 0:a.value;return n.jsx(zd,{discount:r??0,total:t,shipping:o})};Bd.displayName="MiniCart.Modal.Footer.Totals";const Fd=({ICONS:e,MINICART_CONFIG:t})=>{const{isMobile:r}=le(),{cartStore:{items:o}}=Ee(),s=o.reduce((i,a)=>i+(a.quantity??0),0);return n.jsx(m.Modal.Header,{navigation:"top",className:de["mc--header"],children:n.jsxs(m.Modal.Controls,{navigation:"top",isMobile:!!r,children:[n.jsx(m.Modal.Title,{navigation:"top",title:t.messages.title}),n.jsx("span",{className:de["mc--header--subtitle"],children:s!==1?`[${s}] Produtos`:`[${s}] Produto`}),n.jsx(m.Button,{"data-close":!0,iconNameStart:e.close,size:"small",variant:"tertiary"})]})})};Fd.displayName="MiniCart.Modal.Header";const qd=({ICONS:e,MINICART_CONFIG:t})=>{const{cartStore:{shippingData:r},shipping:o,removeCEP:s}=Ee(),{sendDataLayerEvent:i}=ce(),[a,c]=x.useState(!1),[l,u]=x.useState(!1),f=x.useCallback(()=>{var b;return((b=r==null?void 0:r.address)==null?void 0:b.postalCode)??""},[r]),[h,d]=x.useState(!!f()),p=()=>{d(!1),c(!1)},g=b=>{var C;if(typeof b=="object"&&(b!=null&&b.logisticsInfo))return(C=b.logisticsInfo)==null?void 0:C.reduce((v,j)=>{var T;const P=(T=j==null?void 0:j.slas)==null?void 0:T.find(w=>(w==null?void 0:w.id)===(j==null?void 0:j.selectedSla));if(!P)return v;const E=parseInt(String((P==null?void 0:P.shippingEstimate)??"").replace("bd","")),S=Number((((P==null?void 0:P.price)??0)/100).toFixed(2));if(v.shipping_tier===void 0)return v.shipping_tier=j==null?void 0:j.selectedSla,v.delivery_time=E.toString(),v.shipping=S,v.flag_retirada=(j==null?void 0:j.selectedDeliveryChannel)==="delivery"?"false":"true",v;const R=parseInt(v.delivery_time??"0");return E>R&&(v.delivery_time=E.toString()),v.shipping=(v.shipping??0)+S,v},{shipping_tier:void 0,delivery_time:void 0,flag_retirada:void 0,shipping:void 0,currency:"BRL"})},y=async b=>{const C=b.replace(/\D/g,"");if(C.length!==8)return!1;try{return!(await ft.get(`https://viacep.com.br/ws/${C}/json/`)).data.erro}catch{return!1}},_=async b=>{if(u(!0),!!f()||!(b!=null&&b.trim())){await s(),p(),u(!1);return}if(!await y(b)){c(!0),d(!1),u(!1);return}try{const P=await o(b);if(c(!1),P){d(!0);const E=g(P);E&&i({functionKey:"readyEvents",data:{event:"search_zipcode",readyData:E}})}}catch{c(!0)}finally{u(!1)}};return n.jsx(Me.Field,{hasSuccess:h,hasError:a,isLoading:l,onHandler:_,title:`${t.messages.shipping_calculation_placeholder}`,type:"cep",value:f(),ICONS:e,MINICART_CONFIG:t})};qd.displayName="MiniCart.Shipping";const Hd=()=>{var r;const{tags:e}=rt(),t=(r=e==null?void 0:e.flagCart)==null?void 0:r.flagHeader;return t!=null&&t.value?n.jsx(m.Tag,{variant:"tertiary",title:t==null?void 0:t.value,size:"small",adornment:{start:t!=null&&t.enableIcon&&(t!=null&&t.icon)?n.jsx(m.Icon,{name:t==null?void 0:t.icon,style:{color:t==null?void 0:t.iconColor}}):null},style:{background:t==null?void 0:t.tagColor,color:t==null?void 0:t.textColor,width:"100%"},children:t==null?void 0:t.value}):null};Hd.displayName="MiniCart.TagMessage";const Me={Body:Md,Card:Id,Cashback:Nd,CouponSeller:Td,Discount:$d,Field:Ld,Feedback:Od,Shipping:qd,Footer:Dd,Header:Fd,TagMessage:Hd,Totals:Bd},Eg=({ICONS:e,MINICART_CONFIG:t,NAME_SPLIT_SYMBOL:r,PLP_NOT_RESULT:o,TEXTURE_IMAGE:s,TOGGLE_STYLE_MODIFIER:i,Z_INDEX_WAR:a,storeConfig:c,minicartStyleModifiers:l})=>{const{isOpen:u,setIsOpen:f,cartStore:h}=Ee(),{isMobile:d}=le();return n.jsxs(m.Modal.Root,{className:m.helpers.classNameConcat(de["minicart--modal-modifier"],l),isMobile:!0,isOpen:u,setIsOpen:f,style:{zIndex:a.modal},variant:d?"sideBottom":"sideRight",children:[n.jsx(Me.Header,{ICONS:e,MINICART_CONFIG:t}),n.jsx(Me.Body,{ICONS:e,MINICART_CONFIG:t,NAME_SPLIT_SYMBOL:r,PLP_NOT_RESULT:o,TEXTURE_IMAGE:s,TOGGLE_STYLE_MODIFIER:i,children:n.jsx(Me.TagMessage,{})}),n.jsxs(Me.Footer,{MINICART_CONFIG:t,storeConfig:c,children:[n.jsxs(Me.Discount,{ICONS:e,MINICART_CONFIG:t,children:[n.jsx(Me.CouponSeller,{type:"seller",ICONS:e,MINICART_CONFIG:t}),n.jsx(Me.CouponSeller,{type:"coupon",ICONS:e,MINICART_CONFIG:t}),n.jsx(Me.Shipping,{ICONS:e,MINICART_CONFIG:t})]}),n.jsx(Me.Totals,{totalizers:h.totalizers})]}),n.jsx(jd,{ICONS:e})]})},Ud=({tipBar:e,minicartStyleModifiers:t,menuV2:r})=>{const{structureRef:o,rootRef:s,CONSTANTS:i}=je(),{header:{HEADER_CONFIGS:a,Z_INDEX_WAR:c},minicart:l}=i;return n.jsx(m.Header.Structure,{innerRef:o,adornment:{start:e},style:{position:"sticky",top:0,zIndex:c.header},className:Is["header-animation"],children:n.jsxs(m.Header.Root,{innerRef:s,style:{zIndex:c.header},variant:a.default_variant,interactiveVariant:a.interactive_variant,children:[r??n.jsxs(n.Fragment,{children:[n.jsx("div",{className:W.responsive["responsive-mobile-block"],style:{height:"100%",width:"100%",zIndex:c.header_mobile},children:n.jsx(ld,{})}),n.jsx("div",{className:W.responsive["responsive-desktop-block"],style:{height:"100%",width:"100%",zIndex:c.header_desktop},children:n.jsx(Yu,{})})]}),n.jsx(bg,{children:n.jsx(Eg,{...l,minicartStyleModifiers:t})}),n.jsx(Ps,{title:"Produto adicionado à sua sacola!",CONSTANTS:i.addToCart}),n.jsx(Os,{})]})})};Ud.displayName="Header";const Rg="_shippingFreight_6z8rf_6",Ag="_shippingFreight__postalCodeGrid_6z8rf_10",Ig="_shippingFreight__grid_6z8rf_14",Ng="_shippingFreight__grid__title_6z8rf_18",Tg="_shippingFreight__grid__remember_6z8rf_29",Og="_postalCodeContainer_6z8rf_44",kg="_deliveryStatusBar__tag_6z8rf_49",Lg="_deliveryStatusBarError__tag_6z8rf_66",Mg="_deliveryInfo_6z8rf_74",Dg="_deliveryInfo__content_6z8rf_78",$g="_deliveryInfo__text_6z8rf_84",zg="_deliveryInfo__title_6z8rf_89",Bg="_deliveryInfo__subtitle_6z8rf_99",Fg="_deliveryInfo__tooltipIcon_6z8rf_109",qg="_deliveryInfo__tooltip_6z8rf_109",Hg="_freightGrid_6z8rf_148",Ug="_freightContainer_6z8rf_155",Wg="_freightOption__content_6z8rf_160",Vg="_freightOption__value_6z8rf_166",Gg="_freightOption__title_6z8rf_177",Kg="_freightOption__title_item_6z8rf_181",Xg="_freightOption__paragraph_6z8rf_192",ge={shippingFreight:Rg,shippingFreight__postalCodeGrid:Ag,shippingFreight__grid:Ig,shippingFreight__grid__title:Ng,shippingFreight__grid__remember:Tg,postalCodeContainer:Og,deliveryStatusBar__tag:kg,deliveryStatusBarError__tag:Lg,deliveryInfo:Mg,deliveryInfo__content:Dg,deliveryInfo__text:$g,deliveryInfo__title:zg,deliveryInfo__subtitle:Bg,deliveryInfo__tooltipIcon:Fg,deliveryInfo__tooltip:qg,freightGrid:Hg,freightContainer:Ug,freightOption__content:Wg,freightOption__value:Vg,freightOption__title:Gg,freightOption__title_item:Kg,freightOption__paragraph:Xg,"input-modifier":"_input-modifier_6z8rf_207","freight--tooltip":"_freight--tooltip_6z8rf_227"},Yg=({icon:e,title:t,subtitle:r,packageCount:o,packageUnit:s="",labelDescription:i,freightConfig:a,toolTipZIndex:c})=>{const[l,u]=x.useState(!1),f=x.useRef(null),h=()=>u(d=>!d);return n.jsxs("div",{className:ge.deliveryInfo,ref:f,children:[n.jsx(m.Tooltip.Root,{arrow:"bottom",component:n.jsx("div",{children:n.jsx("p",{children:a.messages.select_size_tag})}),id:"freight--tooltip",className:ge["freight--tooltip"],style:{zIndex:c},isOpen:!0,size:"medium",position:"top",top:"-170%",left:"4%",parent:f.current}),n.jsxs("div",{className:ge.deliveryInfo__content,children:[n.jsx("div",{className:ge.deliveryInfo__icon,children:n.jsx(m.Icon,{name:e,size:"medium"})}),n.jsxs("div",{className:ge.deliveryInfo__text,children:[n.jsxs("span",{className:ge.deliveryInfo__title,children:[t," ",o," ",s]}),r&&n.jsx("span",{className:ge.deliveryInfo__subtitle,children:r})]}),i&&n.jsxs("div",{className:ge.deliveryInfo__tooltipIcon,onMouseEnter:h,onMouseLeave:h,"aria-label":"Mostrar descrição",children:[n.jsx("span",{children:n.jsx(m.Icon,{name:a.icons.feedback_help,size:"small"})}),l&&n.jsx("div",{className:ge.deliveryInfo__tooltip,children:i})]})]})]})},Qg=({value:e,title:t,paragraph:r})=>n.jsx("div",{className:ge.freightOption,children:n.jsxs("div",{className:ge.freightOption__content,children:[n.jsx("span",{className:ge.freightOption__value,children:e}),n.jsx("span",{className:ge.freightOption__title,children:n.jsx(m.TextStructure.Root,{children:n.jsxs(m.TextStructure.DivWrapper,{className:ge.footer__item,children:[n.jsx("span",{className:ge.freightOption__title_item,children:t}),r&&n.jsx("span",{className:ge.freightOption__paragraph,children:r})]})})})]})}),Zg=({children:e})=>n.jsx("div",{className:ge.freightContainer,children:e}),Jg=({children:e})=>n.jsx("div",{className:ge.freightGrid,children:e}),ey=({children:e})=>n.jsx("div",{className:ge.postalCodeContainer,children:e}),Di=({message:e,seller:t="",size:r="small",setError:o})=>n.jsx("div",{className:o?ge.deliveryStatusBarError:ge.deliveryStatusBar,children:n.jsxs(m.Tag,{title:e,className:o?ge.deliveryStatusBarError__tag:ge.deliveryStatusBar__tag,size:r,children:[e," ",!o&&t]})}),ty=e=>{const t=parseInt(e,10);return t===1?`${t} dia`:`${t} dias`},ry=e=>{var r,o,s;const t=[];return(s=(o=(r=e==null?void 0:e.logisticsInfo)==null?void 0:r[0])==null?void 0:o.slas)==null||s.forEach(i=>{t.push({id:i.id,name:i.name,price:i.price,shippingEstimate:i.shippingEstimate})}),t},ny=({component:e,parent:t,top:r,left:o,target:s,contentRef:i,freightConfig:a,toolTipZIndex:c=999,...l})=>{const{isMobile:u}=le();return n.jsx(n.Fragment,{children:u?n.jsx(m.Tooltip.Root,{arrow:"bottom",component:n.jsxs("div",{...l,ref:i,children:[e,n.jsx("p",{children:a.messages.select_size_tag})]}),id:"freight--tooltip",className:ge["freight--tooltip"],style:{zIndex:c},isOpen:!0,size:"medium",position:"top",top:"-170%",left:"4%",parent:t}):n.jsx(m.Tooltip.Root,{arrow:"bottom",component:n.jsxs("div",{...l,ref:i,children:[e,n.jsx("p",{children:a.messages.select_size_tag})]}),id:"freight--tooltip",className:ge["freight--tooltip"],style:{zIndex:c},isOpen:!0,size:"medium",position:"top",top:"-110%",left:"3%",parent:t})})},oy=({onUpdateFreightItems:e,sellerId:t,size:r,skuId:o,quantity:s,setError:i,setIsButtonClicked:a,component:c,freightConfig:l,toolTipZIndex:u})=>{var I,N,z,k;const f=wt(),h=wt(U=>U.shipping),[d,p]=x.useState(),[g,y]=x.useState(!1),[_,b]=x.useState(!1),[C,v]=x.useState(!1),j=(N=(I=f.shippingData)==null?void 0:I.address)==null?void 0:N.postalCode,P=!(d!=null&&d.length)&&j?j:d,E=x.useRef(null),S=async U=>{const B=U.target.value.replace(/\D/g,"").slice(0,8);B.length>5?p(B.replace(/^(\d{5})(\d{1,3})/,"$1-$2")):p(B)},R=async U=>{const q=U.target.value.replace(/\D/g,"");try{if((await ft.get(`https://viacep.com.br/ws/${q}/json/`)).data.erro){i&&i(l.messages.cep_not_found),a(!1),b(!0);return}i&&i(""),b(!1)}catch{console.log("Erro ao validar o CEP. Tente novamente mais tarde.")}},T=async()=>{y(!0);try{const U=await ft.post("/api/checkout/simulation",{items:[{id:o,quantity:s,seller:t}],country:"BRA",postalCode:P});e(ry(U.data))}catch(U){console.error("Erro ao atualizar o documento:",U)}finally{y(!1),h(P,"BRA")}},w=async()=>{if(!o){v(!0),setTimeout(()=>v(!1),1500);return}await R({target:{value:P}}),g||(T(),a(!0))};return n.jsxs("div",{ref:E,style:{position:"relative"},children:[!o&&C?n.jsx(ny,{component:c,isOpen:C,parent:E.current,toolTipZIndex:u,freightConfig:l}):n.jsx(n.Fragment,{}),n.jsx("div",{style:{position:"relative"},children:n.jsx(m.TextField.Structure,{title:"structure",style:{width:"100%"},input:n.jsx(m.TextField.Input,{defaultValue:(k=(z=f.shippingData)==null?void 0:z.address)==null?void 0:k.postalCode,label:l.messages.text_input_label,title:"textfield",value:d,sizeVariant:r,onMouseOver:()=>o?null:v(!0),onMouseOut:()=>o?null:v(!1),mode:"simple",onChange:S,onKeyDown:U=>{U.key==="Enter"&&w()},className:ge["input-modifier"],feedback:_?"error":"none"}),right:n.jsx(m.Button,{onClick:w,size:r,title:"button",children:g?n.jsx(m.Spinner,{size:"small",indicatorColor:"#ffffff"}):l.messages.text_input_btn})})})]})},sy=({children:e,freightConfig:t})=>n.jsxs("div",{className:ge.shippingFreight,children:[n.jsxs("div",{className:ge.shippingFreight__grid,children:[n.jsx("span",{className:ge.shippingFreight__grid__title,children:t.messages.title}),n.jsx("span",{className:ge.shippingFreight__grid__remember,children:n.jsx(Ye,{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})})]}),n.jsx("div",{className:ge.shippingFreight__postalCodeGrid,children:e})]}),iy=({children:e})=>n.jsx("div",{className:ge.freightContainer,children:e}),Wd=({className:e,sellerId:t,skuId:r,quantity:o,size:s,seller:i,local:a,CONSTANTS_PROPS:c})=>{const{sendDataLayerEvent:l}=ce(),[u,f]=x.useState(""),[h,d]=x.useState([]),[p,g]=x.useState(""),[y,_]=x.useState(!1),b=v=>f(v),C=v=>{d(v),l({functionKey:"readyEvents",data:{event:"search_zipcode",readyData:{shippings:v.map(j=>({shipping_tier:j.id,delivery_time:j.shippingEstimate.replace("bd",""),flag_pickup:j.name.toLowerCase().includes("retirada")?"true":"false",shipping:j.price,currency:c.currency||"BRL"}))}}})};return n.jsxs(iy,{className:e,children:[n.jsxs(sy,{freightConfig:c.freightConfig,children:[n.jsx(ey,{children:n.jsx(oy,{onUpdateFreightItems:C,skuId:r,quantity:o,size:s,sellerId:t,local:a,setError:g,setIsButtonClicked:_,freightConfig:c.freightConfig,toolTipZIndex:c.toolTipZIndex})}),p?n.jsx(Di,{size:s,message:p,setError:g}):h.length>0&&n.jsx(Di,{size:s,message:c.freightConfig.messages.delivered_by,seller:i})]}),y&&!p?h.length>0&&n.jsxs(Zg,{children:[n.jsx(Jg,{children:h.filter(({id:v})=>!v.includes("Retirada")).map(v=>n.jsx(Qg,{id:v.id,value:W.freightParsePrice({valueInCents:v.price,hasFree:!1,freeTaxMessage:c.freightConfig.messages.free_tax}),title:v.name,paragraph:`${c.freightConfig.messages.prefix_days}${ty(v.shippingEstimate)}`,radioValue:u,changeValue:b},v.id))}),c.deliveryInfoBoxesAllowed?n.jsx(Yg,{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}):n.jsx(n.Fragment,{})]}):null]})},mt={"pcd-navigation--breadcrumb":"_pcd-navigation--breadcrumb_e02qd_1","pdc-navigation--content":"_pdc-navigation--content_e02qd_28","pdc-navigation--filters":"_pdc-navigation--filters_e02qd_54","pdc-navigation--filters--content":"_pdc-navigation--filters--content_e02qd_67","pdc-navigation--selected":"_pdc-navigation--selected_e02qd_137","pdc-navigation--selected--container":"_pdc-navigation--selected--container_e02qd_150","pdc-navigation":"_pdc-navigation_e02qd_28"},ay=({children:e,href:t,isLast:r,title:o,ICONS:s})=>n.jsx(m.BreadCrumb.Item,{adornment:{end:r&&n.jsx(m.Icon,{name:s.arrow_right})},children:r?n.jsx(Ye,{href:t??"/",size:"medium",title:o,disableUnderline:!0,children:e}):e}),Vd=()=>{var i;const{state:e}=ze(),{ICONS:t}=De(),r=e!=null&&e.term&&e.term.length>0?`/${e.term}`:"",o=decodeURIComponent((i=e==null?void 0:e.base)!=null&&i.length?e.base:r??r).slice(1).split("/"),s=wl(o);return n.jsx("div",{className:mt["pcd-navigation--breadcrumb"],children:n.jsx(m.BreadCrumb.DivWrapper,{children:n.jsx(m.BreadCrumb.List,{children:Array.isArray(s)&&s.map((a,c)=>{var l,u;return x.createElement(ay,{...a,isLast:c!==s.length-1,key:a.href,title:(l=a.name)==null?void 0:l.replace(/-/g," "),ICONS:t},(u=a.name)==null?void 0:u.replace(/-/g," "))})})})})};Vd.displayName="PLPNavigation.BreadCrumb";const Gd=({children:e,...t})=>n.jsxs("div",{...t,className:mt["pdc-navigation--content"],children:[n.jsx(ct.Filters,{}),e]});Gd.displayName="PLPNavigation.Content";const cy="_sort_35wro_1",$r={sort:cy,"sort-list-wrapper":"_sort-list-wrapper_35wro_8","sort-list":"_sort-list_35wro_8","sort-button":"_sort-button_35wro_25"},ly=({children:e,sortListOpen:t,btnAdornment:r,style:o,...s})=>n.jsx(m.Button,{...s,adornment:{end:t?r==null?void 0:r.listOpen:r==null?void 0:r.listClosed},size:"small",variant:"tertiary",style:{...o,textDecoration:"none"},className:$r["sort-button"],children:e}),uy=e=>n.jsx(m.RadioButton.Radio,{...e}),dy=({children:e,className:t,name:r,...o})=>n.jsx(m.RadioButton.Group,{...o,name:r||"sort-group",className:m.helpers.classNameConcat($r["sort-list"],t),children:e}),fy=({children:e,className:t,shadow:r=!0,padding:o="small",height:s="fit-content",...i})=>n.jsx(m.Card,{...i,shadow:r,className:m.helpers.classNameConcat($r["sort-list-wrapper"],t),padding:o,height:s,children:e}),Kd=x.forwardRef(({children:e,className:t,...r},o)=>n.jsx("div",{...r,ref:o,className:m.helpers.classNameConcat($r.sort,t),children:e}));Kd.displayName="SortRoot";const zr=({handleSelectValue:e,sortListOpen:t,setSortListOpen:r,searchParams:o,ICONS:s,...i})=>{var d;const a=(d=o==null?void 0:o.get("sort"))==null?void 0:d.replace(":","_"),[c,l]=x.useState(a),{sendDataLayerEvent:u}=ce();x.useEffect(()=>{l(a||void 0)},[a]);const{ref:f}=hd(()=>r(!1)),h=p=>{const g=p.target.value;l(g),typeof e=="function"&&e(g),u({functionKey:"filterEvent",data:{customData:{ordering:kt.options[g]}}}),r(!1)};return n.jsxs(Kd,{...i,ref:f,children:[n.jsx(ly,{btnAdornment:{listOpen:n.jsx(m.Icon,{name:s.arrow_up,size:"small"}),listClosed:n.jsx(m.Icon,{name:s.arrow_down,size:"small"})},sortListOpen:t,onClick:()=>r(!t),children:c?kt.options[c]:kt.placeholder},"sort-button"),t&&n.jsx(fy,{children:n.jsx(dy,{name:"sort-group",value:c??"",onChange:h,children:Object.keys(kt.options).map(p=>n.jsx(uy,{label:kt.options[p],value:p},p))})})]})};zr.displayName="Sort";const Xd=x.createContext({}),py=({children:e,...t})=>{const[r,o]=x.useState(!1);return n.jsx(Xd.Provider,{value:x.useMemo(()=>({...t,openOrderBy:r,setOpenOrderBy:o}),[t,r,o]),children:e})},my=()=>{const e=x.useContext(Xd);if(e===void 0)throw new Error("usePLPNavigationContext must be used within a PDCNavigationProvider");return e},Yd=()=>{const{openOrderBy:e,onSort:t,setOpenFilters:r,setOpenOrderBy:o}=my(),{ICONS:s,PDC_NAVIGATION:i,searchParams:a}=De();return n.jsxs("div",{className:mt["pdc-navigation--filters"],children:[n.jsx(ct.BreadCrumb,{}),n.jsxs("div",{className:mt["pdc-navigation--filters--content"],children:[n.jsx(zr,{handleSelectValue:c=>t(c??"release_desc"),sortListOpen:e,setSortListOpen:o,ICONS:s,searchParams:a}),n.jsx(m.Button,{adornment:{end:n.jsx(m.Icon,{name:s.arrow_down})},onClick:()=>r(!0),size:"small",variant:"tertiary",children:i.filter_button}),n.jsx(ct.Total,{})]})]})};Yd.displayName="PLPNavigation.Filters";const Qd=({children:e,onSort:t,setOpenFilters:r,style:o,...s})=>{const i=x.useRef(null);return n.jsx(py,{onSort:t,setOpenFilters:r,children:n.jsx("div",{...s,className:mt["pdc-navigation"],ref:i,style:{...o},children:n.jsx(ct.Content,{children:e})})})};Qd.displayName="Root";const Zd=({callback:e,selected:t,...r})=>n.jsx("div",{...r,className:mt["pdc-navigation--selected"],children:n.jsx("div",{className:mt["pdc-navigation--selected--container"],children:Array.isArray(t)?t.map(o=>o.key==="productclusterids"?null:n.jsx(ct.SelectedItem,{callback:e,facet:o},o.value)):null})});Zd.displayName="PLPNavigation.Selected";const ks=({key:e,PLP_FILTERS:t})=>t.some(r=>r.key===e)?e==="cores-filtraveis":!1,Ls=({value:e,PLP_FILTERS_COLORS:t})=>{var r;return((r=t.find(o=>o.value===e))==null?void 0:r.color)??"#F2F2F2"},Jd=({key:e,PLP_FILTERS:t})=>{var r;return(r=t.find(o=>o.key===e))==null?void 0:r.label},ef=({key:e,PLP_FILTERS:t})=>{var r;return((r=t.find(o=>o.key===e))==null?void 0:r.order)??0},Wo=({value:e})=>{const[t,r]=e.split(":").length===2?e.split(":"):[0,0],o=W.formatPriceToCurrency(Number(r));return`${W.formatPriceToCurrency(Number(t))} até ${o}`},tf=({items:e})=>{const t=e.flatMap(s=>[s.range.from,s.range.to]),r=Math.min(...t.map(Math.abs)),o=Math.max(...t.map(Math.abs));return[r,o]},rf=Object.freeze(Object.defineProperty({__proto__:null,checkedColor:ks,createTagPrice:Wo,getAbsoluteMinMax:tf,getColor:Ls,getName:Jd,getOrder:ef},Symbol.toStringTag,{value:"Module"})),Ue={"filter--empty":"_filter--empty_1mjas_1","filter--item":"_filter--item_1mjas_14","filter--item--price":"_filter--item--price_1mjas_19","filter--item--toggle":"_filter--item--toggle_1mjas_19","filter--item--toggle--container":"_filter--item--toggle--container_1mjas_30","filter--modal--body":"_filter--modal--body_1mjas_79","filter--modal--body--content":"_filter--modal--body--content_1mjas_87","filter--modal--footer":"_filter--modal--footer_1mjas_96","filter--modal":"_filter--modal_1mjas_79","filter--loading":"_filter--loading_1mjas_176","filter--selected":"_filter--selected_1mjas_206","filter--selected--content":"_filter--selected--content_1mjas_210"},nf=({columns:e=2,CONSTANTS:t,...r})=>{var i;const{filters:o,onToggleFacet:s}=Tt();return n.jsxs("div",{...r,className:Ue["filter--modal--body--content"],children:[Array.isArray(o.facets)&&o.facets.map(a=>n.jsx(tt.Item,{columns:e,facet:a,onToggleFacet:s,CONSTANTS:t},a.key)),!((i=o.facets)!=null&&i.length)&&n.jsx(tt.Empty,{PLP_FILTERS_EMPTY:t.PLP_FILTERS_EMPTY})]})};nf.displayName="Filter.Item.Content";const of=({PLP_FILTERS_EMPTY:e})=>{const t=()=>{window.history.back()};return n.jsxs("div",{className:Ue["filter--empty"],children:[n.jsxs(m.TextStructure.DivWrapper,{children:[n.jsx("h4",{children:e.title}),n.jsx("p",{children:e.subtitle})]}),n.jsx(m.Button,{onClick:()=>t(),variant:"tertiary",children:e.button})]})};of.displayName="Filter.Empty";const sf=({columns:e,facet:t,onToggleFacet:r,CONSTANTS:o,...s})=>{const i=ef({key:t.key,PLP_FILTERS:o.PLP_FILTERS}),a=()=>{if(t.__typename==="FacetBoolean"){if(t.key==="cores-filtraveis")return n.jsx(tt.Colors,{onToggleFacet:r,values:t.values,PLP_FILTERS:o.PLP_FILTERS,PLP_FILTERS_COLORS:o.PLP_FILTERS_COLORS});if(t.key==="tamanho")return n.jsx(tt.Sizes,{onToggleFacet:r,values:t.values,PLP_SIZE_ORDER:o.PLP_SIZE_ORDER});if(t.key==="category-2")return n.jsx(tt.Toggle,{columns:e,facetKey:t.key,onToggleFacet:r,values:t.values,ICONS:o.ICONS})}return t.__typename==="FacetRange"?n.jsx(tt.Price,{facet:t}):n.jsx("p",{children:"Filter not support!!!"})};return n.jsx("div",{...s,className:Ue["filter--item"],style:{order:i},children:n.jsxs(m.Accordion.Wrapper,{style:{width:"100%"},children:[n.jsx(m.Accordion.Header,{id:t.key,closeIndicator:n.jsx(m.Icon,{name:o.ICONS.arrow_up}),openIndicator:n.jsx(m.Icon,{name:o.ICONS.arrow_down}),children:n.jsx(m.TextStructure.Root,{children:n.jsx(m.TextStructure.DivWrapper,{children:n.jsx("h4",{className:"typography-style-body-sm",children:Jd({key:t.key,PLP_FILTERS:o.PLP_FILTERS})})})})}),n.jsx(m.Accordion.Body,{children:a()})]})})};sf.displayName="Filter.Item";const af=({onToggleFacet:e,values:t,PLP_FILTERS:r,PLP_FILTERS_COLORS:o,...s})=>n.jsx(Xe.Root,{...s,children:n.jsx(Xe.List,{children:Array.isArray(t)&&t.map(({key:i,selected:a,value:c})=>n.jsx(Xe.Option,{active:a,"data-color":ks({key:i,PLP_FILTERS:r}),fill:Ls({value:c,PLP_FILTERS_COLORS:o}),onClick:()=>e({key:i,value:c}),type:"color"},`${i}-${c}`))})});af.displayName="Filter.Item.Color";const cf=({facet:e,...t})=>{var u,f;const{filters:{selected:r},price:o,onToggleFacet:s}=Tt(),[i,a]=(o==null?void 0:o.split(":").map(Number))??[0,100],[c,l]=((f=(u=r==null?void 0:r.find(({key:h})=>h==="price"))==null?void 0:u.value)==null?void 0:f.split(":").map(Number))??[i,a];return n.jsx("div",{...t,className:Ue["filter--item--price"],children:n.jsxs(m.Slider.SliderDual,{format:"price",initialValue:[c<i?i:c,l>a?a:l],min:i,max:a,type:"dual",step:1,onFinish:h=>{var d,p;h&&s({key:"price",value:`${(d=h.range)==null?void 0:d.min}:${(p=h.range)==null?void 0:p.max}`})},children:[n.jsx(m.TextStructure.Root,{children:n.jsx(m.TextStructure.DivWrapper,{children:n.jsx("p",{"data-min-value":!0})})}),n.jsx(m.TextStructure.Root,{children:n.jsx(m.TextStructure.DivWrapper,{children:n.jsx("p",{"data-max-value":!0})})})]})})};cf.displayName="Filter.Item.Price";const lf=({onToggleFacet:e,values:t,PLP_SIZE_ORDER:r,...o})=>{const s=[...t].sort((i,a)=>{const c=r.indexOf(i.name),l=r.indexOf(a.name);return c-l});return n.jsx(Xe.Root,{...o,children:n.jsx(Xe.List,{children:Array.isArray(s)&&s.map(({key:i,selected:a,value:c})=>n.jsx(Xe.Option,{active:a,text:c,type:"size",onClick:()=>e({key:i,value:c})},c))})})};lf.displayName="Filter.Item.Sizes";const uf=({columns:e,facetKey:t,onToggleFacet:r,values:o,ICONS:s,...i})=>n.jsx("div",{...i,className:Ue["filter--item--toggle"],children:n.jsx("div",{className:Ue["filter--item--toggle--container"],style:{gridTemplateColumns:`repeat(${e}, 1fr)`},children:Array.isArray(o)&&o.map(a=>n.jsx(m.Checkbox,{label:(a==null?void 0:a.name)??"",adornment:n.jsx(m.Icon,{name:s.check}),checked:a.selected,onChange:()=>r(a)},a.value))})});uf.displayName="Filter.Item.Toggle";const df=({...e})=>{const{isLoading:t}=Tt();return n.jsx("div",{className:Ue["filter--loading"],"data-active":t,...e,children:n.jsx(m.Spinner,{indicatorColor:"#000",background:"#222"})})};df.displayName="Filter.Loading";const ff=({children:e,className:t,isMobile:r=!1,CONSTANTS:{PLP_FILTERS_TITLE:o,ICONS:s}})=>{var f;const{deleteAllFacets:i,filters:a,isOpen:c,target:l,setIsOpen:u}=Tt();return n.jsxs(m.Modal.Root,{className:m.helpers.classNameConcat(Ue["filter--modal"],t),isMobile:r??!1,isOpen:c,parent:l,setIsOpen:u,variant:r?"sideBottom":"sideRight",style:{zIndex:99},children:[n.jsxs(m.Modal.Header,{navigation:"top",children:[n.jsx(m.Modal.Controls,{navigation:"top",isMobile:r,children:n.jsx(m.Button,{"data-close":!0,iconNameStart:s.close,size:"small",variant:"tertiary",style:{marginLeft:"auto"}})}),n.jsx(m.Modal.Title,{navigation:"top",title:o})]}),n.jsxs(m.Modal.Body,{style:{width:500},children:[n.jsx("div",{className:Ue["filter--modal--body"],children:e}),n.jsx(tt.Loading,{})]}),n.jsx(m.Modal.Footer,{children:n.jsxs("div",{className:Ue["filter--modal--footer"],children:[n.jsx(m.Button,{"data-close":!0,size:"large",variant:"primary",children:(f=a.facets)!=null&&f.length?"ver resultados":"fechar"}),n.jsx(m.Button,{"data-close":!0,onClick:()=>i(),variant:"tertiary",children:"limpar filtros"})]})})]})};ff.displayName="Filter.Modal";const pf=({children:e,className:t,isMobile:r,CONSTANTS:o,...s})=>n.jsx(Hl,{...s,PLP_FILTERS:o.PLP_FILTERS,children:n.jsx(tt.Modal,{className:t,isMobile:r,CONSTANTS:o,children:e})});pf.displayName="Filter.Root";const mf=({ICONS:e,PLP_FILTERS_COLORS:t,PLP_FILTERS:r})=>{const{filters:o,onToggleFacet:s}=Tt();return n.jsx("div",{className:Ue["filter--selected"],children:n.jsx("div",{className:Ue["filter--selected--content"],children:Array.isArray(o.selected)&&o.selected.map(({key:i,value:a})=>i==="productclusterids"?null:n.jsx(m.Tag,{title:i==="price"?Wo({value:a}):a,adornment:{end:n.jsx(m.Icon,{name:e.close,size:"x-small"})},colorSquare:Ls({value:a,PLP_FILTERS_COLORS:t}),onClick:()=>s({key:i,value:a}),squareShow:ks({key:i,PLP_FILTERS:r}),size:"medium",variant:"primary",children:i==="price"?Wo({value:a}):a},a))})})};mf.displayName="Filter.Selected";const tt={Colors:af,Content:nf,Empty:of,Modal:ff,Item:sf,Root:pf,Loading:df,Selected:mf,Price:cf,Sizes:lf,Toggle:uf},{checkedColor:hy,createTagPrice:$i,getColor:gy}=rf,hf=({callback:e,facet:t})=>{const{ICONS:r,PLP_FILTERS_COLORS:o,PLP_FILTERS:s}=De();return n.jsx(m.Tag,{title:(t==null?void 0:t.key)==="price"?$i({value:t.value}):t.value.toUpperCase(),adornment:{end:n.jsx(m.Icon,{name:r.close,size:"x-small"})},colorSquare:gy({value:t.value,PLP_FILTERS_COLORS:o}),onClick:()=>{typeof e=="function"&&e(t,!0)},squareShow:hy({key:t.key,PLP_FILTERS:s}),size:"medium",variant:"primary",children:(t==null?void 0:t.key)==="price"?$i({value:t.value}):t.value.toUpperCase()})};hf.displayName="PLPNavigation.Selected.Item";const gf=()=>n.jsx(m.TextStructure.Root,{children:n.jsx("p",{id:"pdc-navigation--total"})});gf.displayName="PLPNavigation.Total";const ct={BreadCrumb:Vd,Content:Gd,Filters:Yd,Root:Qd,Selected:Zd,SelectedItem:hf,Total:gf},yy="_footer__bottom_1o9af_2",_y="_footer__wrapper_1o9af_10",vy="_footer__main_1o9af_39",xy="_footer__legalInformation_1o9af_55",by="_footer__column_1o9af_77",jy="_footer__columnContent_1o9af_87",Cy="_footer__item_1o9af_91",Sy="_footer__itemLink_1o9af_107",Py="_footer__columnTitle_1o9af_122",wy="_footer__columnTitleIcon_1o9af_134",Ey="_footer__iconList_1o9af_147",Ry="_footer__itemSmallText_1o9af_157",Ay="_payment_1o9af_168",Iy="_footer__iconContainer_1o9af_173",Ny="_footer__iconListSubHeader_1o9af_178",Ty="_accordionWrapper_1o9af_200",Oy="_accordionHeader_1o9af_204",ky="_accordionTextWrapper_1o9af_208",ye={footer__bottom:yy,footer__wrapper:_y,footer__main:vy,footer__legalInformation:xy,footer__column:by,footer__columnContent:jy,footer__item:Cy,footer__itemLink:Sy,footer__columnTitle:Py,footer__columnTitleIcon:wy,footer__iconList:Ey,footer__itemSmallText:Ry,payment:Ay,footer__iconContainer:Iy,footer__iconListSubHeader:Ny,accordionWrapper:Ty,accordionHeader:Oy,accordionTextWrapper:ky,"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 yf={},Ms={},Xt={};(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=o=>{r.has(o)||console.warn(o),r.add(o)}}})(Xt);var _f={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"getImageBlurSvg",{enumerable:!0,get:function(){return t}});function t(r){let{widthInt:o,heightInt:s,blurWidth:i,blurHeight:a,blurDataURL:c,objectFit:l}=r;const u=20,f=i?i*40:o,h=a?a*40:s,d=f&&h?"viewBox='0 0 "+f+" "+h+"'":"",p=d?"none":l==="contain"?"xMidYMid":l==="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='"+u+"'/%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='"+u+"'/%3E%3C/filter%3E%3Cimage width='100%25' height='100%25' x='0' y='0' preserveAspectRatio='"+p+"' style='filter: url(%23b);' href='"+c+"'/%3E%3C/svg%3E"}})(_f);var Br={};(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(s,i){for(var a in i)Object.defineProperty(s,a,{enumerable:!0,get:i[a]})}t(e,{VALID_LOADERS:function(){return r},imageConfigDefault:function(){return o}});const r=["default","imgix","cloudinary","akamai","custom"],o={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}})(Br);(function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"getImgProps",{enumerable:!0,get:function(){return p}});const t=Xt,r=_f,o=Br,s=["lazy","eager",void 0];function i(g){return g.default!==void 0}function a(g){return g.src!==void 0}function c(g){return typeof g=="object"&&(i(g)||a(g))}const l=new Map;let u;function f(g){return typeof g>"u"?g:typeof g=="number"?Number.isFinite(g)?g:NaN:typeof g=="string"&&/^[0-9]+$/.test(g)?parseInt(g,10):NaN}function h(g,y,_){let{deviceSizes:b,allSizes:C}=g;if(_){const j=/(^|\s)(1?\d?\d)vw/g,P=[];for(let E;E=j.exec(_);E)P.push(parseInt(E[2]));if(P.length){const E=Math.min(...P)*.01;return{widths:C.filter(S=>S>=b[0]*E),kind:"w"}}return{widths:C,kind:"w"}}return typeof y!="number"?{widths:b,kind:"w"}:{widths:[...new Set([y,y*2].map(j=>C.find(P=>P>=j)||C[C.length-1]))],kind:"x"}}function d(g){let{config:y,src:_,unoptimized:b,width:C,quality:v,sizes:j,loader:P}=g;if(b)return{src:_,srcSet:void 0,sizes:void 0};const{widths:E,kind:S}=h(y,C,j),R=E.length-1;return{sizes:!j&&S==="w"?"100vw":j,srcSet:E.map((T,w)=>P({config:y,src:_,quality:v,width:T})+" "+(S==="w"?T:w+1)+S).join(", "),src:P({config:y,src:_,quality:v,width:E[R]})}}function p(g,y){let{src:_,sizes:b,unoptimized:C=!1,priority:v=!1,loading:j,className:P,quality:E,width:S,height:R,fill:T=!1,style:w,onLoad:I,onLoadingComplete:N,placeholder:z="empty",blurDataURL:k,fetchPriority:U,layout:q,objectFit:B,objectPosition:V,lazyBoundary:G,lazyRoot:F,...J}=g;const{imgConf:A,showAltText:O,blurComplete:D,defaultLoader:X}=y;let ne,ee=A||o.imageConfigDefault;if("allSizes"in ee)ne=ee;else{const K=[...ee.deviceSizes,...ee.imageSizes].sort((Ae,Q)=>Ae-Q),me=ee.deviceSizes.sort((Ae,Q)=>Ae-Q);ne={...ee,allSizes:K,deviceSizes:me}}let M=J.loader||X;delete J.loader,delete J.srcSet;const te="__next_img_default"in M;if(te){if(ne.loader==="custom")throw new Error('Image with src "'+_+`" is missing "loader" prop.
5
+ Read more: https://nextjs.org/docs/messages/next-image-missing-loader`)}else{const K=M;M=me=>{const{config:Ae,...Q}=me;return K(Q)}}if(q){q==="fill"&&(T=!0);const K={intrinsic:{maxWidth:"100%",height:"auto"},responsive:{width:"100%",height:"auto"}},me={responsive:"100vw",fill:"100vw"},Ae=K[q];Ae&&(w={...w,...Ae});const Q=me[q];Q&&!b&&(b=Q)}let Z="",re=f(S),$=f(R),L,oe;if(c(_)){const K=i(_)?_.default:_;if(!K.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(K));if(!K.height||!K.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(K));if(L=K.blurWidth,oe=K.blurHeight,k=k||K.blurDataURL,Z=K.src,!T){if(!re&&!$)re=K.width,$=K.height;else if(re&&!$){const me=re/K.width;$=Math.round(K.height*me)}else if(!re&&$){const me=$/K.height;re=Math.round(K.width*me)}}}_=typeof _=="string"?_:Z;let ae=!v&&(j==="lazy"||typeof j>"u");(!_||_.startsWith("data:")||_.startsWith("blob:"))&&(C=!0,ae=!1),ne.unoptimized&&(C=!0),te&&_.endsWith(".svg")&&!ne.dangerouslyAllowSVG&&(C=!0),v&&(U="high");const fe=f(E);if(process.env.NODE_ENV!=="production"){if(ne.output==="export"&&te&&!C)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(!_)C=!0;else if(T){if(S)throw new Error('Image with src "'+_+'" has both "width" and "fill" properties. Only one should be used.');if(R)throw new Error('Image with src "'+_+'" has both "height" and "fill" properties. Only one should be used.');if(w!=null&&w.position&&w.position!=="absolute")throw new Error('Image with src "'+_+'" has both "fill" and "style.position" properties. Images with "fill" always use position absolute - it cannot be modified.');if(w!=null&&w.width&&w.width!=="100%")throw new Error('Image with src "'+_+'" has both "fill" and "style.width" properties. Images with "fill" always use width 100% - it cannot be modified.');if(w!=null&&w.height&&w.height!=="100%")throw new Error('Image with src "'+_+'" has both "fill" and "style.height" properties. Images with "fill" always use height 100% - it cannot be modified.')}else{if(typeof re>"u")throw new Error('Image with src "'+_+'" is missing required "width" property.');if(isNaN(re))throw new Error('Image with src "'+_+'" has invalid "width" property. Expected a numeric value in pixels but received "'+S+'".');if(typeof $>"u")throw new Error('Image with src "'+_+'" is missing required "height" property.');if(isNaN($))throw new Error('Image with src "'+_+'" has invalid "height" property. Expected a numeric value in pixels but received "'+R+'".')}if(!s.includes(j))throw new Error('Image with src "'+_+'" has invalid "loading" property. Provided "'+j+'" should be one of '+s.map(String).join(",")+".");if(v&&j==="lazy")throw new Error('Image with src "'+_+`" has both "priority" and "loading='lazy'" properties. Only one should be used.`);if(z!=="empty"&&z!=="blur"&&!z.startsWith("data:image/"))throw new Error('Image with src "'+_+'" has invalid "placeholder" property "'+z+'".');if(z!=="empty"&&re&&$&&re*$<1600&&(0,t.warnOnce)('Image with src "'+_+'" is smaller than 40x40. Consider removing the "placeholder" property to improve performance.'),z==="blur"&&!k){const K=["jpeg","png","webp","avif"];throw new Error('Image with src "'+_+`" has "placeholder='blur'" property but is missing the "blurDataURL" property.
6
6
  Possible solutions:
7
7
  - Add a "blurDataURL" property, the contents should be a small Data URL to represent the image
8
8
  - Change the "src" property to a static import with one of the supported file types: `+K.join(",")+` (animated images not supported)
9
9
  - Remove the "placeholder" property, effectively no blur effect
10
- Read more: https://nextjs.org/docs/messages/placeholder-blur-data-url`)}if("ref"in J&&(0,t.warnOnce)('Image with src "'+y+'" is using unsupported "ref" property. Consider using the "onLoadingComplete" property instead.'),!C&&!te){const K=L({config:ne,src:y,width:re||400,quality:fe||75});let me;try{me=new URL(K)}catch{}(K===y||me&&me.pathname===y&&!me.search)&&(0,t.warnOnce)('Image with src "'+y+`" 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[K,me]of Object.entries({layout:q,objectFit:F,objectPosition:V,lazyBoundary:G,lazyRoot:B}))me&&(0,t.warnOnce)('Image with src "'+y+'" has legacy prop "'+K+`". Did you forget to run the codemod?
10
+ Read more: https://nextjs.org/docs/messages/placeholder-blur-data-url`)}if("ref"in J&&(0,t.warnOnce)('Image with src "'+_+'" is using unsupported "ref" property. Consider using the "onLoadingComplete" property instead.'),!C&&!te){const K=M({config:ne,src:_,width:re||400,quality:fe||75});let me;try{me=new URL(K)}catch{}(K===_||me&&me.pathname===_&&!me.search)&&(0,t.warnOnce)('Image with src "'+_+`" 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[K,me]of Object.entries({layout:q,objectFit:B,objectPosition:V,lazyBoundary:G,lazyRoot:F}))me&&(0,t.warnOnce)('Image with src "'+_+'" has legacy prop "'+K+`". Did you forget to run the codemod?
12
12
  Read more: https://nextjs.org/docs/messages/next-image-upgrade-to-13`);if(typeof window<"u"&&!u&&window.PerformanceObserver){u=new PerformanceObserver(K=>{for(const Ae of K.getEntries()){var me;const Q=(Ae==null||(me=Ae.element)==null?void 0:me.src)||"",se=l.get(Q);se&&!se.priority&&se.placeholder==="empty"&&!se.src.startsWith("data:")&&!se.src.startsWith("blob:")&&(0,t.warnOnce)('Image with src "'+se.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{u.observe({type:"largest-contentful-paint",buffered:!0})}catch(K){console.error(K)}}}const pe=Object.assign(T?{position:"absolute",height:"100%",width:"100%",left:0,top:0,right:0,bottom:0,objectFit:F,objectPosition:V}:{},k?{}:{color:"transparent"},w),ue=!D&&z!=="empty"?z==="blur"?'url("data:image/svg+xml;charset=utf-8,'+(0,r.getImageBlurSvg)({widthInt:re,heightInt:$,blurWidth:M,blurHeight:oe,blurDataURL:O||"",objectFit:pe.objectFit})+'")':'url("'+z+'")':null;let H=ue?{backgroundSize:pe.objectFit||"cover",backgroundPosition:pe.objectPosition||"50% 50%",backgroundRepeat:"no-repeat",backgroundImage:ue}:{};process.env.NODE_ENV==="development"&&H.backgroundImage&&z==="blur"&&O!=null&&O.startsWith("/")&&(H.backgroundImage='url("'+O+'")');const be=d({config:ne,src:y,unoptimized:C,width:re,quality:fe,sizes:b,loader:L});if(process.env.NODE_ENV!=="production"&&typeof window<"u"){let K;try{K=new URL(be.src)}catch{K=new URL(be.src,window.location.href)}l.set(K.href,{src:y,priority:v,placeholder:z})}return{props:{...J,loading:ie?"lazy":j,fetchPriority:W,width:re,height:$,decoding:"async",className:P,style:{...pe,...H},sizes:be.sizes,srcSet:be.srcSet,src:be.src},meta:{unoptimized:C,priority:v,placeholder:z,fill:T}}}})(Ts);var Ho={exports:{}},fr={exports:{}},_n={},Da;function Py(){return Da||(Da=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return a}});const t=x,r=typeof window>"u",o=r?()=>{}:t.useLayoutEffect,s=r?()=>{}:t.useEffect;function a(i){const{headManager:c,reduceComponentsToState:l}=i;function u(){if(c&&c.mountedInstances){const h=t.Children.toArray(Array.from(c.mountedInstances).filter(Boolean));c.updateHead(l(h,i))}}if(r){var p;c==null||(p=c.mountedInstances)==null||p.add(i.children),u()}return o(()=>{var h;return c==null||(h=c.mountedInstances)==null||h.add(i.children),()=>{var d;c==null||(d=c.mountedInstances)==null||d.delete(i.children)}}),o(()=>(c&&(c._pendingUpdate=u),()=>{c&&(c._pendingUpdate=u)})),s(()=>(c&&c._pendingUpdate&&(c._pendingUpdate(),c._pendingUpdate=null),()=>{c&&c._pendingUpdate&&(c._pendingUpdate(),c._pendingUpdate=null)})),null}}(_n)),_n}var vn={},$a;function wy(){return $a||($a=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"AmpStateContext",{enumerable:!0,get:function(){return o}});const o=ke._(x).default.createContext({});process.env.NODE_ENV!=="production"&&(o.displayName="AmpStateContext")}(vn)),vn}var xn={},za;function ff(){return za||(za=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"HeadManagerContext",{enumerable:!0,get:function(){return o}});const o=ke._(x).default.createContext({});process.env.NODE_ENV!=="production"&&(o.displayName="HeadManagerContext")}(xn)),xn}var bn={},Ba;function Ey(){return Ba||(Ba=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"isInAmpMode",{enumerable:!0,get:function(){return t}});function t(r){let{ampFirst:o=!1,hybrid:s=!1,hasQuery:a=!1}=r===void 0?{}:r;return o||s&&a}}(bn)),bn}var Fa;function Ry(){return Fa||(Fa=1,function(e,t){"use client";Object.defineProperty(t,"__esModule",{value:!0});function r(C,v){for(var j in v)Object.defineProperty(C,j,{enumerable:!0,get:v[j]})}r(t,{defaultHead:function(){return h},default:function(){return b}});const o=ke,a=Ir()._(x),i=o._(Py()),c=wy(),l=ff(),u=Ey(),p=Wt;function h(C){C===void 0&&(C=!1);const v=[a.default.createElement("meta",{charSet:"utf-8"})];return C||v.push(a.default.createElement("meta",{name:"viewport",content:"width=device-width"})),v}function d(C,v){return typeof v=="string"||typeof v=="number"?C:v.type===a.default.Fragment?C.concat(a.default.Children.toArray(v.props.children).reduce((j,P)=>typeof P=="string"||typeof P=="number"?j:j.concat(P),[])):C.concat(v)}const f=["name","httpEquiv","charSet","itemProp"];function g(){const C=new Set,v=new Set,j=new Set,P={};return E=>{let S=!0,R=!1;if(E.key&&typeof E.key!="number"&&E.key.indexOf("$")>0){R=!0;const T=E.key.slice(E.key.indexOf("$")+1);C.has(T)?S=!1:C.add(T)}switch(E.type){case"title":case"base":v.has(E.type)?S=!1:v.add(E.type);break;case"meta":for(let T=0,w=f.length;T<w;T++){const N=f[T];if(E.props.hasOwnProperty(N))if(N==="charSet")j.has(N)?S=!1:j.add(N);else{const I=E.props[N],z=P[N]||new Set;(N!=="name"||!R)&&z.has(I)?S=!1:(z.add(I),P[N]=z)}}break}return S}}function _(C,v){const{inAmpMode:j}=v;return C.reduce(d,[]).reverse().concat(h(j).reverse()).filter(g()).reverse().map((P,E)=>{const S=P.key||E;if(process.env.NODE_ENV!=="development"&&process.env.__NEXT_OPTIMIZE_FONTS&&!j&&P.type==="link"&&P.props.href&&["https://fonts.googleapis.com/css","https://use.typekit.net/"].some(R=>P.props.href.startsWith(R))){const R={...P.props||{}};return R["data-href"]=R.href,R.href=void 0,R["data-optimized-fonts"]=!0,a.default.cloneElement(P,R)}if(process.env.NODE_ENV==="development")if(P.type==="script"&&P.props.type!=="application/ld+json"){const R=P.props.src?'<script> tag with src="'+P.props.src+'"':"inline <script>";(0,p.warnOnce)("Do not add <script> tags using next/head (see "+R+`). Use next/script instead.
14
- See more info here: https://nextjs.org/docs/messages/no-script-tags-in-head-component`)}else P.type==="link"&&P.props.rel==="stylesheet"&&(0,p.warnOnce)('Do not add stylesheets using next/head (see <link rel="stylesheet"> tag with href="'+P.props.href+`"). Use Document instead.
15
- See more info here: https://nextjs.org/docs/messages/no-stylesheets-in-head-component`);return a.default.cloneElement(P,{key:S})})}function y(C){let{children:v}=C;const j=(0,a.useContext)(c.AmpStateContext),P=(0,a.useContext)(l.HeadManagerContext);return a.default.createElement(i.default,{reduceComponentsToState:_,headManager:P,inAmpMode:(0,u.isInAmpMode)(j)},v)}const b=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)}(fr,fr.exports)),fr.exports}var jn={},qa;function Ay(){return qa||(qa=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"ImageConfigContext",{enumerable:!0,get:function(){return s}});const r=ke._(x),o=Dr,s=r.default.createContext(o.imageConfigDefault);process.env.NODE_ENV!=="production"&&(s.displayName="ImageConfigContext")}(jn)),jn}var Cn={},Sn={},Pn={exports:{}};const Ny=_h(U.__viteBrowserExternal);var wn={},En={},Rn,Ha;function pf(){return Ha||(Ha=1,Rn=function(){if(typeof Symbol!="function"||typeof Object.getOwnPropertySymbols!="function")return!1;if(typeof Symbol.iterator=="symbol")return!0;var t={},r=Symbol("test"),o=Object(r);if(typeof r=="string"||Object.prototype.toString.call(r)!=="[object Symbol]"||Object.prototype.toString.call(o)!=="[object Symbol]")return!1;var s=42;t[r]=s;for(var a 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 i=Object.getOwnPropertySymbols(t);if(i.length!==1||i[0]!==r||!Object.prototype.propertyIsEnumerable.call(t,r))return!1;if(typeof Object.getOwnPropertyDescriptor=="function"){var c=Object.getOwnPropertyDescriptor(t,r);if(c.value!==s||c.enumerable!==!0)return!1}return!0}),Rn}var An,Ua;function $r(){if(Ua)return An;Ua=1;var e=pf();return An=function(){return e()&&!!Symbol.toStringTag},An}var Nn,Wa;function mf(){return Wa||(Wa=1,Nn=Object),Nn}var In,Va;function Iy(){return Va||(Va=1,In=Error),In}var Tn,Ga;function Ty(){return Ga||(Ga=1,Tn=EvalError),Tn}var On,Ka;function Oy(){return Ka||(Ka=1,On=RangeError),On}var kn,Xa;function ky(){return Xa||(Xa=1,kn=ReferenceError),kn}var Mn,Ya;function hf(){return Ya||(Ya=1,Mn=SyntaxError),Mn}var Ln,Qa;function Vt(){return Qa||(Qa=1,Ln=TypeError),Ln}var Dn,Za;function My(){return Za||(Za=1,Dn=URIError),Dn}var $n,Ja;function Ly(){return Ja||(Ja=1,$n=Math.abs),$n}var zn,ei;function Dy(){return ei||(ei=1,zn=Math.floor),zn}var Bn,ti;function $y(){return ti||(ti=1,Bn=Math.max),Bn}var Fn,ri;function zy(){return ri||(ri=1,Fn=Math.min),Fn}var qn,ni;function By(){return ni||(ni=1,qn=Math.pow),qn}var Hn,oi;function Fy(){return oi||(oi=1,Hn=Math.round),Hn}var Un,si;function qy(){return si||(si=1,Un=Number.isNaN||function(t){return t!==t}),Un}var Wn,ai;function Hy(){if(ai)return Wn;ai=1;var e=qy();return Wn=function(r){return e(r)||r===0?r:r<0?-1:1},Wn}var Vn,ii;function Uy(){return ii||(ii=1,Vn=Object.getOwnPropertyDescriptor),Vn}var Gn,ci;function Rt(){if(ci)return Gn;ci=1;var e=Uy();if(e)try{e([],"length")}catch{e=null}return Gn=e,Gn}var Kn,li;function zr(){if(li)return Kn;li=1;var e=Object.defineProperty||!1;if(e)try{e({},"a",{value:1})}catch{e=!1}return Kn=e,Kn}var Xn,ui;function Wy(){if(ui)return Xn;ui=1;var e=typeof Symbol<"u"&&Symbol,t=pf();return Xn=function(){return typeof e!="function"||typeof Symbol!="function"||typeof e("foo")!="symbol"||typeof Symbol("bar")!="symbol"?!1:t()},Xn}var Yn,di;function gf(){return di||(di=1,Yn=typeof Reflect<"u"&&Reflect.getPrototypeOf||null),Yn}var Qn,fi;function yf(){if(fi)return Qn;fi=1;var e=mf();return Qn=e.getPrototypeOf||null,Qn}var Zn,pi;function Vy(){if(pi)return Zn;pi=1;var e="Function.prototype.bind called on incompatible ",t=Object.prototype.toString,r=Math.max,o="[object Function]",s=function(l,u){for(var p=[],h=0;h<l.length;h+=1)p[h]=l[h];for(var d=0;d<u.length;d+=1)p[d+l.length]=u[d];return p},a=function(l,u){for(var p=[],h=u,d=0;h<l.length;h+=1,d+=1)p[d]=l[h];return p},i=function(c,l){for(var u="",p=0;p<c.length;p+=1)u+=c[p],p+1<c.length&&(u+=l);return u};return Zn=function(l){var u=this;if(typeof u!="function"||t.apply(u)!==o)throw new TypeError(e+u);for(var p=a(arguments,1),h,d=function(){if(this instanceof h){var b=u.apply(this,s(p,arguments));return Object(b)===b?b:this}return u.apply(l,s(p,arguments))},f=r(0,u.length-p.length),g=[],_=0;_<f;_++)g[_]="$"+_;if(h=Function("binder","return function ("+i(g,",")+"){ return binder.apply(this,arguments); }")(d),u.prototype){var y=function(){};y.prototype=u.prototype,h.prototype=new y,y.prototype=null}return h},Zn}var Jn,mi;function Gt(){if(mi)return Jn;mi=1;var e=Vy();return Jn=Function.prototype.bind||e,Jn}var eo,hi;function Os(){return hi||(hi=1,eo=Function.prototype.call),eo}var to,gi;function ks(){return gi||(gi=1,to=Function.prototype.apply),to}var ro,yi;function Gy(){return yi||(yi=1,ro=typeof Reflect<"u"&&Reflect&&Reflect.apply),ro}var no,_i;function _f(){if(_i)return no;_i=1;var e=Gt(),t=ks(),r=Os(),o=Gy();return no=o||e.call(r,t),no}var oo,vi;function Ms(){if(vi)return oo;vi=1;var e=Gt(),t=Vt(),r=Os(),o=_f();return oo=function(a){if(a.length<1||typeof a[0]!="function")throw new t("a function is required");return o(e,r,a)},oo}var so,xi;function Ky(){if(xi)return so;xi=1;var e=Ms(),t=Rt(),r;try{r=[].__proto__===Array.prototype}catch(i){if(!i||typeof i!="object"||!("code"in i)||i.code!=="ERR_PROTO_ACCESS")throw i}var o=!!r&&t&&t(Object.prototype,"__proto__"),s=Object,a=s.getPrototypeOf;return so=o&&typeof o.get=="function"?e([o.get]):typeof a=="function"?function(c){return a(c==null?c:s(c))}:!1,so}var ao,bi;function Ls(){if(bi)return ao;bi=1;var e=gf(),t=yf(),r=Ky();return ao=e?function(s){return e(s)}:t?function(s){if(!s||typeof s!="object"&&typeof s!="function")throw new TypeError("getProto: not an object");return t(s)}:r?function(s){return r(s)}:null,ao}var io,ji;function vf(){if(ji)return io;ji=1;var e=Function.prototype.call,t=Object.prototype.hasOwnProperty,r=Gt();return io=r.call(e,t),io}var co,Ci;function xf(){if(Ci)return co;Ci=1;var e,t=mf(),r=Iy(),o=Ty(),s=Oy(),a=ky(),i=hf(),c=Vt(),l=My(),u=Ly(),p=Dy(),h=$y(),d=zy(),f=By(),g=Fy(),_=Hy(),y=Function,b=function(te){try{return y('"use strict"; return ('+te+").constructor;")()}catch{}},C=Rt(),v=zr(),j=function(){throw new c},P=C?function(){try{return arguments.callee,j}catch{try{return C(arguments,"callee").get}catch{return j}}}():j,E=Wy()(),S=Ls(),R=yf(),T=gf(),w=ks(),N=Os(),I={},z=typeof Uint8Array>"u"||!S?e:S(Uint8Array),O={__proto__:null,"%AggregateError%":typeof AggregateError>"u"?e:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>"u"?e:ArrayBuffer,"%ArrayIteratorPrototype%":E&&S?S([][Symbol.iterator]()):e,"%AsyncFromSyncIteratorPrototype%":e,"%AsyncFunction%":I,"%AsyncGenerator%":I,"%AsyncGeneratorFunction%":I,"%AsyncIteratorPrototype%":I,"%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%":o,"%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%":y,"%GeneratorFunction%":I,"%Int8Array%":typeof Int8Array>"u"?e:Int8Array,"%Int16Array%":typeof Int16Array>"u"?e:Int16Array,"%Int32Array%":typeof Int32Array>"u"?e:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":E&&S?S(S([][Symbol.iterator]())):e,"%JSON%":typeof JSON=="object"?JSON:e,"%Map%":typeof Map>"u"?e:Map,"%MapIteratorPrototype%":typeof Map>"u"||!E||!S?e:S(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":t,"%Object.getOwnPropertyDescriptor%":C,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>"u"?e:Promise,"%Proxy%":typeof Proxy>"u"?e:Proxy,"%RangeError%":s,"%ReferenceError%":a,"%Reflect%":typeof Reflect>"u"?e:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set>"u"?e:Set,"%SetIteratorPrototype%":typeof Set>"u"||!E||!S?e:S(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer>"u"?e:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":E&&S?S(""[Symbol.iterator]()):e,"%Symbol%":E?Symbol:e,"%SyntaxError%":i,"%ThrowTypeError%":P,"%TypedArray%":z,"%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%":l,"%WeakMap%":typeof WeakMap>"u"?e:WeakMap,"%WeakRef%":typeof WeakRef>"u"?e:WeakRef,"%WeakSet%":typeof WeakSet>"u"?e:WeakSet,"%Function.prototype.call%":N,"%Function.prototype.apply%":w,"%Object.defineProperty%":v,"%Object.getPrototypeOf%":R,"%Math.abs%":u,"%Math.floor%":p,"%Math.max%":h,"%Math.min%":d,"%Math.pow%":f,"%Math.round%":g,"%Math.sign%":_,"%Reflect.getPrototypeOf%":T};if(S)try{null.error}catch(te){var W=S(S(te));O["%Error.prototype%"]=W}var q=function te(Z){var re;if(Z==="%AsyncFunction%")re=b("async function () {}");else if(Z==="%GeneratorFunction%")re=b("function* () {}");else if(Z==="%AsyncGeneratorFunction%")re=b("async function* () {}");else if(Z==="%AsyncGenerator%"){var $=te("%AsyncGeneratorFunction%");$&&(re=$.prototype)}else if(Z==="%AsyncIteratorPrototype%"){var M=te("%AsyncGenerator%");M&&S&&(re=S(M.prototype))}return O[Z]=re,re},F={__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"]},V=Gt(),G=vf(),B=V.call(N,Array.prototype.concat),J=V.call(w,Array.prototype.splice),A=V.call(N,String.prototype.replace),k=V.call(N,String.prototype.slice),D=V.call(N,RegExp.prototype.exec),X=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,ne=/\\(\\)?/g,ee=function(Z){var re=k(Z,0,1),$=k(Z,-1);if(re==="%"&&$!=="%")throw new i("invalid intrinsic syntax, expected closing `%`");if($==="%"&&re!=="%")throw new i("invalid intrinsic syntax, expected opening `%`");var M=[];return A(Z,X,function(oe,ie,fe,pe){M[M.length]=fe?A(pe,ne,"$1"):ie||oe}),M},L=function(Z,re){var $=Z,M;if(G(F,$)&&(M=F[$],$="%"+M[0]+"%"),G(O,$)){var oe=O[$];if(oe===I&&(oe=q($)),typeof oe>"u"&&!re)throw new c("intrinsic "+Z+" exists, but is not available. Please file an issue!");return{alias:M,name:$,value:oe}}throw new i("intrinsic "+Z+" does not exist!")};return co=function(Z,re){if(typeof Z!="string"||Z.length===0)throw new c("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof re!="boolean")throw new c('"allowMissing" argument must be a boolean');if(D(/^%?[^%]*%?$/,Z)===null)throw new i("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var $=ee(Z),M=$.length>0?$[0]:"",oe=L("%"+M+"%",re),ie=oe.name,fe=oe.value,pe=!1,ue=oe.alias;ue&&(M=ue[0],J($,B([0,1],ue)));for(var H=1,be=!0;H<$.length;H+=1){var ae=$[H],_e=k(ae,0,1),K=k(ae,-1);if((_e==='"'||_e==="'"||_e==="`"||K==='"'||K==="'"||K==="`")&&_e!==K)throw new i("property names with quotes must have matching quotes");if((ae==="constructor"||!be)&&(pe=!0),M+="."+ae,ie="%"+M+"%",G(O,ie))fe=O[ie];else if(fe!=null){if(!(ae in fe)){if(!re)throw new c("base intrinsic for "+Z+" exists, but the property is not available.");return}if(C&&H+1>=$.length){var me=C(fe,ae);be=!!me,be&&"get"in me&&!("originalValue"in me.get)?fe=me.get:fe=fe[ae]}else be=G(fe,ae),fe=fe[ae];be&&!pe&&(O[ie]=fe)}}return fe},co}var lo,Si;function Kt(){if(Si)return lo;Si=1;var e=xf(),t=Ms(),r=t([e("%String.prototype.indexOf%")]);return lo=function(s,a){var i=e(s,!!a);return typeof i=="function"&&r(s,".prototype.")>-1?t([i]):i},lo}var uo,Pi;function Xy(){if(Pi)return uo;Pi=1;var e=$r()(),t=Kt(),r=t("Object.prototype.toString"),o=function(c){return e&&c&&typeof c=="object"&&Symbol.toStringTag in c?!1:r(c)==="[object Arguments]"},s=function(c){return o(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]"},a=function(){return o(arguments)}();return o.isLegacyArguments=s,uo=a?o:s,uo}var fo,wi;function Yy(){if(wi)return fo;wi=1;var e=Kt(),t=$r()(),r=vf(),o=Rt(),s;if(t){var a=e("RegExp.prototype.exec"),i={},c=function(){throw i},l={toString:c,valueOf:c};typeof Symbol.toPrimitive=="symbol"&&(l[Symbol.toPrimitive]=c),s=function(d){if(!d||typeof d!="object")return!1;var f=o(d,"lastIndex"),g=f&&r(f,"value");if(!g)return!1;try{a(d,l)}catch(_){return _===i}}}else{var u=e("Object.prototype.toString"),p="[object RegExp]";s=function(d){return!d||typeof d!="object"&&typeof d!="function"?!1:u(d)===p}}return fo=s,fo}var po,Ei;function Qy(){if(Ei)return po;Ei=1;var e=Kt(),t=Yy(),r=e("RegExp.prototype.exec"),o=Vt();return po=function(a){if(!t(a))throw new o("`regex` must be a RegExp");return function(c){return r(a,c)!==null}},po}var mo,Ri;function Zy(){if(Ri)return mo;Ri=1;var e=Kt(),t=Qy(),r=t(/^\s*(?:function)?\*/),o=$r()(),s=Ls(),a=e("Object.prototype.toString"),i=e("Function.prototype.toString"),c=function(){if(!o)return!1;try{return Function("return function*() {}")()}catch{}},l;return mo=function(p){if(typeof p!="function")return!1;if(r(i(p)))return!0;if(!o){var h=a(p);return h==="[object GeneratorFunction]"}if(!s)return!1;if(typeof l>"u"){var d=c();l=d?s(d):!1}return s(p)===l},mo}var ho,Ai;function Jy(){if(Ai)return ho;Ai=1;var e=Function.prototype.toString,t=typeof Reflect=="object"&&Reflect!==null&&Reflect.apply,r,o;if(typeof t=="function"&&typeof Object.defineProperty=="function")try{r=Object.defineProperty({},"length",{get:function(){throw o}}),o={},t(function(){throw 42},null,r)}catch(C){C!==o&&(t=null)}else t=null;var s=/^\s*class\b/,a=function(v){try{var j=e.call(v);return s.test(j)}catch{return!1}},i=function(v){try{return a(v)?!1:(e.call(v),!0)}catch{return!1}},c=Object.prototype.toString,l="[object Object]",u="[object Function]",p="[object GeneratorFunction]",h="[object HTMLAllCollection]",d="[object HTML document.all class]",f="[object HTMLCollection]",g=typeof Symbol=="function"&&!!Symbol.toStringTag,_=!(0 in[,]),y=function(){return!1};if(typeof document=="object"){var b=document.all;c.call(b)===c.call(document.all)&&(y=function(v){if((_||!v)&&(typeof v>"u"||typeof v=="object"))try{var j=c.call(v);return(j===h||j===d||j===f||j===l)&&v("")==null}catch{}return!1})}return ho=t?function(v){if(y(v))return!0;if(!v||typeof v!="function"&&typeof v!="object")return!1;try{t(v,null,r)}catch(j){if(j!==o)return!1}return!a(v)&&i(v)}:function(v){if(y(v))return!0;if(!v||typeof v!="function"&&typeof v!="object")return!1;if(g)return i(v);if(a(v))return!1;var j=c.call(v);return j!==u&&j!==p&&!/^\[object HTML/.test(j)?!1:i(v)},ho}var go,Ni;function e_(){if(Ni)return go;Ni=1;var e=Jy(),t=Object.prototype.toString,r=Object.prototype.hasOwnProperty,o=function(l,u,p){for(var h=0,d=l.length;h<d;h++)r.call(l,h)&&(p==null?u(l[h],h,l):u.call(p,l[h],h,l))},s=function(l,u,p){for(var h=0,d=l.length;h<d;h++)p==null?u(l.charAt(h),h,l):u.call(p,l.charAt(h),h,l)},a=function(l,u,p){for(var h in l)r.call(l,h)&&(p==null?u(l[h],h,l):u.call(p,l[h],h,l))};function i(c){return t.call(c)==="[object Array]"}return go=function(l,u,p){if(!e(u))throw new TypeError("iterator must be a function");var h;arguments.length>=3&&(h=p),i(l)?o(l,u,h):typeof l=="string"?s(l,u,h):a(l,u,h)},go}var yo,Ii;function t_(){return Ii||(Ii=1,yo=["Float16Array","Float32Array","Float64Array","Int8Array","Int16Array","Int32Array","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","BigInt64Array","BigUint64Array"]),yo}var _o,Ti;function r_(){if(Ti)return _o;Ti=1;var e=t_(),t=typeof globalThis>"u"?fu:globalThis;return _o=function(){for(var o=[],s=0;s<e.length;s++)typeof t[e[s]]=="function"&&(o[o.length]=e[s]);return o},_o}var vo={exports:{}},xo,Oi;function n_(){if(Oi)return xo;Oi=1;var e=zr(),t=hf(),r=Vt(),o=Rt();return xo=function(a,i,c){if(!a||typeof a!="object"&&typeof a!="function")throw new r("`obj` must be an object or a function`");if(typeof i!="string"&&typeof i!="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 l=arguments.length>3?arguments[3]:null,u=arguments.length>4?arguments[4]:null,p=arguments.length>5?arguments[5]:null,h=arguments.length>6?arguments[6]:!1,d=!!o&&o(a,i);if(e)e(a,i,{configurable:p===null&&d?d.configurable:!p,enumerable:l===null&&d?d.enumerable:!l,value:c,writable:u===null&&d?d.writable:!u});else if(h||!l&&!u&&!p)a[i]=c;else throw new t("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.")},xo}var bo,ki;function o_(){if(ki)return bo;ki=1;var e=zr(),t=function(){return!!e};return t.hasArrayLengthDefineBug=function(){if(!e)return null;try{return e([],"length",{value:1}).length!==1}catch{return!0}},bo=t,bo}var jo,Mi;function s_(){if(Mi)return jo;Mi=1;var e=xf(),t=n_(),r=o_()(),o=Rt(),s=Vt(),a=e("%Math.floor%");return jo=function(c,l){if(typeof c!="function")throw new s("`fn` is not a function");if(typeof l!="number"||l<0||l>4294967295||a(l)!==l)throw new s("`length` must be a positive 32-bit integer");var u=arguments.length>2&&!!arguments[2],p=!0,h=!0;if("length"in c&&o){var d=o(c,"length");d&&!d.configurable&&(p=!1),d&&!d.writable&&(h=!1)}return(p||h||!u)&&(r?t(c,"length",l,!0,!0):t(c,"length",l)),c},jo}var Co,Li;function a_(){if(Li)return Co;Li=1;var e=Gt(),t=ks(),r=_f();return Co=function(){return r(e,t,arguments)},Co}var Di;function i_(){return Di||(Di=1,function(e){var t=s_(),r=zr(),o=Ms(),s=a_();e.exports=function(i){var c=o(arguments),l=i.length-(arguments.length-1);return t(c,1+(l>0?l:0),!0)},r?r(e.exports,"apply",{value:s}):e.exports.apply=s}(vo)),vo.exports}var So,$i;function bf(){if($i)return So;$i=1;var e=e_(),t=r_(),r=i_(),o=Kt(),s=Rt(),a=Ls(),i=o("Object.prototype.toString"),c=$r()(),l=typeof globalThis>"u"?fu:globalThis,u=t(),p=o("String.prototype.slice"),h=o("Array.prototype.indexOf",!0)||function(y,b){for(var C=0;C<y.length;C+=1)if(y[C]===b)return C;return-1},d={__proto__:null};c&&s&&a?e(u,function(_){var y=new l[_];if(Symbol.toStringTag in y&&a){var b=a(y),C=s(b,Symbol.toStringTag);if(!C&&b){var v=a(b);C=s(v,Symbol.toStringTag)}d["$"+_]=r(C.get)}}):e(u,function(_){var y=new l[_],b=y.slice||y.set;b&&(d["$"+_]=r(b))});var f=function(y){var b=!1;return e(d,function(C,v){if(!b)try{"$"+C(y)===v&&(b=p(v,1))}catch{}}),b},g=function(y){var b=!1;return e(d,function(C,v){if(!b)try{C(y),b=p(v,1)}catch{}}),b};return So=function(y){if(!y||typeof y!="object")return!1;if(!c){var b=p(i(y),8,-1);return h(u,b)>-1?b:b!=="Object"?!1:g(y)}return s?f(y):null},So}var Po,zi;function c_(){if(zi)return Po;zi=1;var e=bf();return Po=function(r){return!!e(r)},Po}var Bi;function l_(){return Bi||(Bi=1,function(e){var t=Xy(),r=Zy(),o=bf(),s=c_();function a(H){return H.call.bind(H)}var i=typeof BigInt<"u",c=typeof Symbol<"u",l=a(Object.prototype.toString),u=a(Number.prototype.valueOf),p=a(String.prototype.valueOf),h=a(Boolean.prototype.valueOf);if(i)var d=a(BigInt.prototype.valueOf);if(c)var f=a(Symbol.prototype.valueOf);function g(H,be){if(typeof H!="object")return!1;try{return be(H),!0}catch{return!1}}e.isArgumentsObject=t,e.isGeneratorFunction=r,e.isTypedArray=s;function _(H){return typeof Promise<"u"&&H instanceof Promise||H!==null&&typeof H=="object"&&typeof H.then=="function"&&typeof H.catch=="function"}e.isPromise=_;function y(H){return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?ArrayBuffer.isView(H):s(H)||k(H)}e.isArrayBufferView=y;function b(H){return o(H)==="Uint8Array"}e.isUint8Array=b;function C(H){return o(H)==="Uint8ClampedArray"}e.isUint8ClampedArray=C;function v(H){return o(H)==="Uint16Array"}e.isUint16Array=v;function j(H){return o(H)==="Uint32Array"}e.isUint32Array=j;function P(H){return o(H)==="Int8Array"}e.isInt8Array=P;function E(H){return o(H)==="Int16Array"}e.isInt16Array=E;function S(H){return o(H)==="Int32Array"}e.isInt32Array=S;function R(H){return o(H)==="Float32Array"}e.isFloat32Array=R;function T(H){return o(H)==="Float64Array"}e.isFloat64Array=T;function w(H){return o(H)==="BigInt64Array"}e.isBigInt64Array=w;function N(H){return o(H)==="BigUint64Array"}e.isBigUint64Array=N;function I(H){return l(H)==="[object Map]"}I.working=typeof Map<"u"&&I(new Map);function z(H){return typeof Map>"u"?!1:I.working?I(H):H instanceof Map}e.isMap=z;function O(H){return l(H)==="[object Set]"}O.working=typeof Set<"u"&&O(new Set);function W(H){return typeof Set>"u"?!1:O.working?O(H):H instanceof Set}e.isSet=W;function q(H){return l(H)==="[object WeakMap]"}q.working=typeof WeakMap<"u"&&q(new WeakMap);function F(H){return typeof WeakMap>"u"?!1:q.working?q(H):H instanceof WeakMap}e.isWeakMap=F;function V(H){return l(H)==="[object WeakSet]"}V.working=typeof WeakSet<"u"&&V(new WeakSet);function G(H){return V(H)}e.isWeakSet=G;function B(H){return l(H)==="[object ArrayBuffer]"}B.working=typeof ArrayBuffer<"u"&&B(new ArrayBuffer);function J(H){return typeof ArrayBuffer>"u"?!1:B.working?B(H):H instanceof ArrayBuffer}e.isArrayBuffer=J;function A(H){return l(H)==="[object DataView]"}A.working=typeof ArrayBuffer<"u"&&typeof DataView<"u"&&A(new DataView(new ArrayBuffer(1),0,1));function k(H){return typeof DataView>"u"?!1:A.working?A(H):H instanceof DataView}e.isDataView=k;var D=typeof SharedArrayBuffer<"u"?SharedArrayBuffer:void 0;function X(H){return l(H)==="[object SharedArrayBuffer]"}function ne(H){return typeof D>"u"?!1:(typeof X.working>"u"&&(X.working=X(new D)),X.working?X(H):H instanceof D)}e.isSharedArrayBuffer=ne;function ee(H){return l(H)==="[object AsyncFunction]"}e.isAsyncFunction=ee;function L(H){return l(H)==="[object Map Iterator]"}e.isMapIterator=L;function te(H){return l(H)==="[object Set Iterator]"}e.isSetIterator=te;function Z(H){return l(H)==="[object Generator]"}e.isGeneratorObject=Z;function re(H){return l(H)==="[object WebAssembly.Module]"}e.isWebAssemblyCompiledModule=re;function $(H){return g(H,u)}e.isNumberObject=$;function M(H){return g(H,p)}e.isStringObject=M;function oe(H){return g(H,h)}e.isBooleanObject=oe;function ie(H){return i&&g(H,d)}e.isBigIntObject=ie;function fe(H){return c&&g(H,f)}e.isSymbolObject=fe;function pe(H){return $(H)||M(H)||oe(H)||ie(H)||fe(H)}e.isBoxedPrimitive=pe;function ue(H){return typeof Uint8Array<"u"&&(J(H)||ne(H))}e.isAnyArrayBuffer=ue,["isProxy","isExternal","isModuleNamespaceObject"].forEach(function(H){Object.defineProperty(e,H,{enumerable:!1,value:function(){throw new Error(H+" is not supported in userland")}})})}(En)),En}var wo,Fi;function u_(){return Fi||(Fi=1,wo=function(t){return t&&typeof t=="object"&&typeof t.copy=="function"&&typeof t.fill=="function"&&typeof t.readUInt8=="function"}),wo}var pr={exports:{}},qi;function d_(){return qi||(qi=1,typeof Object.create=="function"?pr.exports=function(t,r){r&&(t.super_=r,t.prototype=Object.create(r.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}))}:pr.exports=function(t,r){if(r){t.super_=r;var o=function(){};o.prototype=r.prototype,t.prototype=new o,t.prototype.constructor=t}}),pr.exports}var Hi;function f_(){return Hi||(Hi=1,function(e){var t=Object.getOwnPropertyDescriptors||function(k){for(var D=Object.keys(k),X={},ne=0;ne<D.length;ne++)X[D[ne]]=Object.getOwnPropertyDescriptor(k,D[ne]);return X},r=/%[sdj%]/g;e.format=function(A){if(!P(A)){for(var k=[],D=0;D<arguments.length;D++)k.push(i(arguments[D]));return k.join(" ")}for(var D=1,X=arguments,ne=X.length,ee=String(A).replace(r,function(te){if(te==="%%")return"%";if(D>=ne)return te;switch(te){case"%s":return String(X[D++]);case"%d":return Number(X[D++]);case"%j":try{return JSON.stringify(X[D++])}catch{return"[Circular]"}default:return te}}),L=X[D];D<ne;L=X[++D])C(L)||!T(L)?ee+=" "+L:ee+=" "+i(L);return ee},e.deprecate=function(A,k){if(typeof process<"u"&&process.noDeprecation===!0)return A;if(typeof process>"u")return function(){return e.deprecate(A,k).apply(this,arguments)};var D=!1;function X(){if(!D){if(process.throwDeprecation)throw new Error(k);process.traceDeprecation?console.trace(k):console.error(k),D=!0}return A.apply(this,arguments)}return X};var o={},s=/^$/;if(process.env.NODE_DEBUG){var a=process.env.NODE_DEBUG;a=a.replace(/[|\\{}()[\]^$+?.]/g,"\\$&").replace(/\*/g,".*").replace(/,/g,"$|^").toUpperCase(),s=new RegExp("^"+a+"$","i")}e.debuglog=function(A){if(A=A.toUpperCase(),!o[A])if(s.test(A)){var k=process.pid;o[A]=function(){var D=e.format.apply(e,arguments);console.error("%s %d: %s",A,k,D)}}else o[A]=function(){};return o[A]};function i(A,k){var D={seen:[],stylize:l};return arguments.length>=3&&(D.depth=arguments[2]),arguments.length>=4&&(D.colors=arguments[3]),b(k)?D.showHidden=k:k&&e._extend(D,k),S(D.showHidden)&&(D.showHidden=!1),S(D.depth)&&(D.depth=2),S(D.colors)&&(D.colors=!1),S(D.customInspect)&&(D.customInspect=!0),D.colors&&(D.stylize=c),p(D,A,D.depth)}e.inspect=i,i.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]},i.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"};function c(A,k){var D=i.styles[k];return D?"\x1B["+i.colors[D][0]+"m"+A+"\x1B["+i.colors[D][1]+"m":A}function l(A,k){return A}function u(A){var k={};return A.forEach(function(D,X){k[D]=!0}),k}function p(A,k,D){if(A.customInspect&&k&&I(k.inspect)&&k.inspect!==e.inspect&&!(k.constructor&&k.constructor.prototype===k)){var X=k.inspect(D,A);return P(X)||(X=p(A,X,D)),X}var ne=h(A,k);if(ne)return ne;var ee=Object.keys(k),L=u(ee);if(A.showHidden&&(ee=Object.getOwnPropertyNames(k)),N(k)&&(ee.indexOf("message")>=0||ee.indexOf("description")>=0))return d(k);if(ee.length===0){if(I(k)){var te=k.name?": "+k.name:"";return A.stylize("[Function"+te+"]","special")}if(R(k))return A.stylize(RegExp.prototype.toString.call(k),"regexp");if(w(k))return A.stylize(Date.prototype.toString.call(k),"date");if(N(k))return d(k)}var Z="",re=!1,$=["{","}"];if(y(k)&&(re=!0,$=["[","]"]),I(k)){var M=k.name?": "+k.name:"";Z=" [Function"+M+"]"}if(R(k)&&(Z=" "+RegExp.prototype.toString.call(k)),w(k)&&(Z=" "+Date.prototype.toUTCString.call(k)),N(k)&&(Z=" "+d(k)),ee.length===0&&(!re||k.length==0))return $[0]+Z+$[1];if(D<0)return R(k)?A.stylize(RegExp.prototype.toString.call(k),"regexp"):A.stylize("[Object]","special");A.seen.push(k);var oe;return re?oe=f(A,k,D,L,ee):oe=ee.map(function(ie){return g(A,k,D,L,ie,re)}),A.seen.pop(),_(oe,Z,$)}function h(A,k){if(S(k))return A.stylize("undefined","undefined");if(P(k)){var D="'"+JSON.stringify(k).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return A.stylize(D,"string")}if(j(k))return A.stylize(""+k,"number");if(b(k))return A.stylize(""+k,"boolean");if(C(k))return A.stylize("null","null")}function d(A){return"["+Error.prototype.toString.call(A)+"]"}function f(A,k,D,X,ne){for(var ee=[],L=0,te=k.length;L<te;++L)V(k,String(L))?ee.push(g(A,k,D,X,String(L),!0)):ee.push("");return ne.forEach(function(Z){Z.match(/^\d+$/)||ee.push(g(A,k,D,X,Z,!0))}),ee}function g(A,k,D,X,ne,ee){var L,te,Z;if(Z=Object.getOwnPropertyDescriptor(k,ne)||{value:k[ne]},Z.get?Z.set?te=A.stylize("[Getter/Setter]","special"):te=A.stylize("[Getter]","special"):Z.set&&(te=A.stylize("[Setter]","special")),V(X,ne)||(L="["+ne+"]"),te||(A.seen.indexOf(Z.value)<0?(C(D)?te=p(A,Z.value,null):te=p(A,Z.value,D-1),te.indexOf(`
13
+ Read more: https://nextjs.org/docs/api-reference/next/image#priority`)}});try{u.observe({type:"largest-contentful-paint",buffered:!0})}catch(K){console.error(K)}}}const pe=Object.assign(T?{position:"absolute",height:"100%",width:"100%",left:0,top:0,right:0,bottom:0,objectFit:B,objectPosition:V}:{},O?{}:{color:"transparent"},w),ue=!D&&z!=="empty"?z==="blur"?'url("data:image/svg+xml;charset=utf-8,'+(0,r.getImageBlurSvg)({widthInt:re,heightInt:$,blurWidth:L,blurHeight:oe,blurDataURL:k||"",objectFit:pe.objectFit})+'")':'url("'+z+'")':null;let H=ue?{backgroundSize:pe.objectFit||"cover",backgroundPosition:pe.objectPosition||"50% 50%",backgroundRepeat:"no-repeat",backgroundImage:ue}:{};process.env.NODE_ENV==="development"&&H.backgroundImage&&z==="blur"&&k!=null&&k.startsWith("/")&&(H.backgroundImage='url("'+k+'")');const be=d({config:ne,src:_,unoptimized:C,width:re,quality:fe,sizes:b,loader:M});if(process.env.NODE_ENV!=="production"&&typeof window<"u"){let K;try{K=new URL(be.src)}catch{K=new URL(be.src,window.location.href)}l.set(K.href,{src:_,priority:v,placeholder:z})}return{props:{...J,loading:ae?"lazy":j,fetchPriority:U,width:re,height:$,decoding:"async",className:P,style:{...pe,...H},sizes:be.sizes,srcSet:be.srcSet,src:be.src},meta:{unoptimized:C,priority:v,placeholder:z,fill:T}}}})(Ms);var Vo={exports:{}},hr={exports:{}},bn={},zi;function Ly(){return zi||(zi=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return i}});const t=x,r=typeof window>"u",o=r?()=>{}:t.useLayoutEffect,s=r?()=>{}:t.useEffect;function i(a){const{headManager:c,reduceComponentsToState:l}=a;function u(){if(c&&c.mountedInstances){const h=t.Children.toArray(Array.from(c.mountedInstances).filter(Boolean));c.updateHead(l(h,a))}}if(r){var f;c==null||(f=c.mountedInstances)==null||f.add(a.children),u()}return o(()=>{var h;return c==null||(h=c.mountedInstances)==null||h.add(a.children),()=>{var d;c==null||(d=c.mountedInstances)==null||d.delete(a.children)}}),o(()=>(c&&(c._pendingUpdate=u),()=>{c&&(c._pendingUpdate=u)})),s(()=>(c&&c._pendingUpdate&&(c._pendingUpdate(),c._pendingUpdate=null),()=>{c&&c._pendingUpdate&&(c._pendingUpdate(),c._pendingUpdate=null)})),null}}(bn)),bn}var jn={},Bi;function My(){return Bi||(Bi=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"AmpStateContext",{enumerable:!0,get:function(){return o}});const o=ke._(x).default.createContext({});process.env.NODE_ENV!=="production"&&(o.displayName="AmpStateContext")}(jn)),jn}var Cn={},Fi;function vf(){return Fi||(Fi=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"HeadManagerContext",{enumerable:!0,get:function(){return o}});const o=ke._(x).default.createContext({});process.env.NODE_ENV!=="production"&&(o.displayName="HeadManagerContext")}(Cn)),Cn}var Sn={},qi;function Dy(){return qi||(qi=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"isInAmpMode",{enumerable:!0,get:function(){return t}});function t(r){let{ampFirst:o=!1,hybrid:s=!1,hasQuery:i=!1}=r===void 0?{}:r;return o||s&&i}}(Sn)),Sn}var Hi;function $y(){return Hi||(Hi=1,function(e,t){"use client";Object.defineProperty(t,"__esModule",{value:!0});function r(C,v){for(var j in v)Object.defineProperty(C,j,{enumerable:!0,get:v[j]})}r(t,{defaultHead:function(){return h},default:function(){return b}});const o=ke,i=Rt._(x),a=o._(Ly()),c=My(),l=vf(),u=Dy(),f=Xt;function h(C){C===void 0&&(C=!1);const v=[i.default.createElement("meta",{charSet:"utf-8"})];return C||v.push(i.default.createElement("meta",{name:"viewport",content:"width=device-width"})),v}function d(C,v){return typeof v=="string"||typeof v=="number"?C:v.type===i.default.Fragment?C.concat(i.default.Children.toArray(v.props.children).reduce((j,P)=>typeof P=="string"||typeof P=="number"?j:j.concat(P),[])):C.concat(v)}const p=["name","httpEquiv","charSet","itemProp"];function g(){const C=new Set,v=new Set,j=new Set,P={};return E=>{let S=!0,R=!1;if(E.key&&typeof E.key!="number"&&E.key.indexOf("$")>0){R=!0;const T=E.key.slice(E.key.indexOf("$")+1);C.has(T)?S=!1:C.add(T)}switch(E.type){case"title":case"base":v.has(E.type)?S=!1:v.add(E.type);break;case"meta":for(let T=0,w=p.length;T<w;T++){const I=p[T];if(E.props.hasOwnProperty(I))if(I==="charSet")j.has(I)?S=!1:j.add(I);else{const N=E.props[I],z=P[I]||new Set;(I!=="name"||!R)&&z.has(N)?S=!1:(z.add(N),P[I]=z)}}break}return S}}function y(C,v){const{inAmpMode:j}=v;return C.reduce(d,[]).reverse().concat(h(j).reverse()).filter(g()).reverse().map((P,E)=>{const S=P.key||E;if(process.env.NODE_ENV!=="development"&&process.env.__NEXT_OPTIMIZE_FONTS&&!j&&P.type==="link"&&P.props.href&&["https://fonts.googleapis.com/css","https://use.typekit.net/"].some(R=>P.props.href.startsWith(R))){const R={...P.props||{}};return R["data-href"]=R.href,R.href=void 0,R["data-optimized-fonts"]=!0,i.default.cloneElement(P,R)}if(process.env.NODE_ENV==="development")if(P.type==="script"&&P.props.type!=="application/ld+json"){const R=P.props.src?'<script> tag with src="'+P.props.src+'"':"inline <script>";(0,f.warnOnce)("Do not add <script> tags using next/head (see "+R+`). Use next/script instead.
14
+ See more info here: https://nextjs.org/docs/messages/no-script-tags-in-head-component`)}else P.type==="link"&&P.props.rel==="stylesheet"&&(0,f.warnOnce)('Do not add stylesheets using next/head (see <link rel="stylesheet"> tag with href="'+P.props.href+`"). Use Document instead.
15
+ See more info here: https://nextjs.org/docs/messages/no-stylesheets-in-head-component`);return i.default.cloneElement(P,{key:S})})}function _(C){let{children:v}=C;const j=(0,i.useContext)(c.AmpStateContext),P=(0,i.useContext)(l.HeadManagerContext);return i.default.createElement(a.default,{reduceComponentsToState:y,headManager:P,inAmpMode:(0,u.isInAmpMode)(j)},v)}const b=_;(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)}(hr,hr.exports)),hr.exports}var Pn={},Ui;function zy(){return Ui||(Ui=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"ImageConfigContext",{enumerable:!0,get:function(){return s}});const r=ke._(x),o=Br,s=r.default.createContext(o.imageConfigDefault);process.env.NODE_ENV!=="production"&&(s.displayName="ImageConfigContext")}(Pn)),Pn}var wn={},En={},Rn={exports:{}};const By=Sh(W.__viteBrowserExternal);var An={},In={},Nn,Wi;function xf(){return Wi||(Wi=1,Nn=function(){if(typeof Symbol!="function"||typeof Object.getOwnPropertySymbols!="function")return!1;if(typeof Symbol.iterator=="symbol")return!0;var t={},r=Symbol("test"),o=Object(r);if(typeof r=="string"||Object.prototype.toString.call(r)!=="[object Symbol]"||Object.prototype.toString.call(o)!=="[object Symbol]")return!1;var s=42;t[r]=s;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 a=Object.getOwnPropertySymbols(t);if(a.length!==1||a[0]!==r||!Object.prototype.propertyIsEnumerable.call(t,r))return!1;if(typeof Object.getOwnPropertyDescriptor=="function"){var c=Object.getOwnPropertyDescriptor(t,r);if(c.value!==s||c.enumerable!==!0)return!1}return!0}),Nn}var Tn,Vi;function Fr(){if(Vi)return Tn;Vi=1;var e=xf();return Tn=function(){return e()&&!!Symbol.toStringTag},Tn}var On,Gi;function bf(){return Gi||(Gi=1,On=Object),On}var kn,Ki;function Fy(){return Ki||(Ki=1,kn=Error),kn}var Ln,Xi;function qy(){return Xi||(Xi=1,Ln=EvalError),Ln}var Mn,Yi;function Hy(){return Yi||(Yi=1,Mn=RangeError),Mn}var Dn,Qi;function Uy(){return Qi||(Qi=1,Dn=ReferenceError),Dn}var $n,Zi;function jf(){return Zi||(Zi=1,$n=SyntaxError),$n}var zn,Ji;function Yt(){return Ji||(Ji=1,zn=TypeError),zn}var Bn,ea;function Wy(){return ea||(ea=1,Bn=URIError),Bn}var Fn,ta;function Vy(){return ta||(ta=1,Fn=Math.abs),Fn}var qn,ra;function Gy(){return ra||(ra=1,qn=Math.floor),qn}var Hn,na;function Ky(){return na||(na=1,Hn=Math.max),Hn}var Un,oa;function Xy(){return oa||(oa=1,Un=Math.min),Un}var Wn,sa;function Yy(){return sa||(sa=1,Wn=Math.pow),Wn}var Vn,ia;function Qy(){return ia||(ia=1,Vn=Math.round),Vn}var Gn,aa;function Zy(){return aa||(aa=1,Gn=Number.isNaN||function(t){return t!==t}),Gn}var Kn,ca;function Jy(){if(ca)return Kn;ca=1;var e=Zy();return Kn=function(r){return e(r)||r===0?r:r<0?-1:1},Kn}var Xn,la;function e_(){return la||(la=1,Xn=Object.getOwnPropertyDescriptor),Xn}var Yn,ua;function Ot(){if(ua)return Yn;ua=1;var e=e_();if(e)try{e([],"length")}catch{e=null}return Yn=e,Yn}var Qn,da;function qr(){if(da)return Qn;da=1;var e=Object.defineProperty||!1;if(e)try{e({},"a",{value:1})}catch{e=!1}return Qn=e,Qn}var Zn,fa;function t_(){if(fa)return Zn;fa=1;var e=typeof Symbol<"u"&&Symbol,t=xf();return Zn=function(){return typeof e!="function"||typeof Symbol!="function"||typeof e("foo")!="symbol"||typeof Symbol("bar")!="symbol"?!1:t()},Zn}var Jn,pa;function Cf(){return pa||(pa=1,Jn=typeof Reflect<"u"&&Reflect.getPrototypeOf||null),Jn}var eo,ma;function Sf(){if(ma)return eo;ma=1;var e=bf();return eo=e.getPrototypeOf||null,eo}var to,ha;function r_(){if(ha)return to;ha=1;var e="Function.prototype.bind called on incompatible ",t=Object.prototype.toString,r=Math.max,o="[object Function]",s=function(l,u){for(var f=[],h=0;h<l.length;h+=1)f[h]=l[h];for(var d=0;d<u.length;d+=1)f[d+l.length]=u[d];return f},i=function(l,u){for(var f=[],h=u,d=0;h<l.length;h+=1,d+=1)f[d]=l[h];return f},a=function(c,l){for(var u="",f=0;f<c.length;f+=1)u+=c[f],f+1<c.length&&(u+=l);return u};return to=function(l){var u=this;if(typeof u!="function"||t.apply(u)!==o)throw new TypeError(e+u);for(var f=i(arguments,1),h,d=function(){if(this instanceof h){var b=u.apply(this,s(f,arguments));return Object(b)===b?b:this}return u.apply(l,s(f,arguments))},p=r(0,u.length-f.length),g=[],y=0;y<p;y++)g[y]="$"+y;if(h=Function("binder","return function ("+a(g,",")+"){ return binder.apply(this,arguments); }")(d),u.prototype){var _=function(){};_.prototype=u.prototype,h.prototype=new _,_.prototype=null}return h},to}var ro,ga;function Qt(){if(ga)return ro;ga=1;var e=r_();return ro=Function.prototype.bind||e,ro}var no,ya;function Ds(){return ya||(ya=1,no=Function.prototype.call),no}var oo,_a;function $s(){return _a||(_a=1,oo=Function.prototype.apply),oo}var so,va;function n_(){return va||(va=1,so=typeof Reflect<"u"&&Reflect&&Reflect.apply),so}var io,xa;function Pf(){if(xa)return io;xa=1;var e=Qt(),t=$s(),r=Ds(),o=n_();return io=o||e.call(r,t),io}var ao,ba;function zs(){if(ba)return ao;ba=1;var e=Qt(),t=Yt(),r=Ds(),o=Pf();return ao=function(i){if(i.length<1||typeof i[0]!="function")throw new t("a function is required");return o(e,r,i)},ao}var co,ja;function o_(){if(ja)return co;ja=1;var e=zs(),t=Ot(),r;try{r=[].__proto__===Array.prototype}catch(a){if(!a||typeof a!="object"||!("code"in a)||a.code!=="ERR_PROTO_ACCESS")throw a}var o=!!r&&t&&t(Object.prototype,"__proto__"),s=Object,i=s.getPrototypeOf;return co=o&&typeof o.get=="function"?e([o.get]):typeof i=="function"?function(c){return i(c==null?c:s(c))}:!1,co}var lo,Ca;function Bs(){if(Ca)return lo;Ca=1;var e=Cf(),t=Sf(),r=o_();return lo=e?function(s){return e(s)}:t?function(s){if(!s||typeof s!="object"&&typeof s!="function")throw new TypeError("getProto: not an object");return t(s)}:r?function(s){return r(s)}:null,lo}var uo,Sa;function wf(){if(Sa)return uo;Sa=1;var e=Function.prototype.call,t=Object.prototype.hasOwnProperty,r=Qt();return uo=r.call(e,t),uo}var fo,Pa;function Ef(){if(Pa)return fo;Pa=1;var e,t=bf(),r=Fy(),o=qy(),s=Hy(),i=Uy(),a=jf(),c=Yt(),l=Wy(),u=Vy(),f=Gy(),h=Ky(),d=Xy(),p=Yy(),g=Qy(),y=Jy(),_=Function,b=function(te){try{return _('"use strict"; return ('+te+").constructor;")()}catch{}},C=Ot(),v=qr(),j=function(){throw new c},P=C?function(){try{return arguments.callee,j}catch{try{return C(arguments,"callee").get}catch{return j}}}():j,E=t_()(),S=Bs(),R=Sf(),T=Cf(),w=$s(),I=Ds(),N={},z=typeof Uint8Array>"u"||!S?e:S(Uint8Array),k={__proto__:null,"%AggregateError%":typeof AggregateError>"u"?e:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>"u"?e:ArrayBuffer,"%ArrayIteratorPrototype%":E&&S?S([][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%":o,"%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%":_,"%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%":E&&S?S(S([][Symbol.iterator]())):e,"%JSON%":typeof JSON=="object"?JSON:e,"%Map%":typeof Map>"u"?e:Map,"%MapIteratorPrototype%":typeof Map>"u"||!E||!S?e:S(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":t,"%Object.getOwnPropertyDescriptor%":C,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>"u"?e:Promise,"%Proxy%":typeof Proxy>"u"?e:Proxy,"%RangeError%":s,"%ReferenceError%":i,"%Reflect%":typeof Reflect>"u"?e:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set>"u"?e:Set,"%SetIteratorPrototype%":typeof Set>"u"||!E||!S?e:S(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer>"u"?e:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":E&&S?S(""[Symbol.iterator]()):e,"%Symbol%":E?Symbol:e,"%SyntaxError%":a,"%ThrowTypeError%":P,"%TypedArray%":z,"%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%":l,"%WeakMap%":typeof WeakMap>"u"?e:WeakMap,"%WeakRef%":typeof WeakRef>"u"?e:WeakRef,"%WeakSet%":typeof WeakSet>"u"?e:WeakSet,"%Function.prototype.call%":I,"%Function.prototype.apply%":w,"%Object.defineProperty%":v,"%Object.getPrototypeOf%":R,"%Math.abs%":u,"%Math.floor%":f,"%Math.max%":h,"%Math.min%":d,"%Math.pow%":p,"%Math.round%":g,"%Math.sign%":y,"%Reflect.getPrototypeOf%":T};if(S)try{null.error}catch(te){var U=S(S(te));k["%Error.prototype%"]=U}var q=function te(Z){var re;if(Z==="%AsyncFunction%")re=b("async function () {}");else if(Z==="%GeneratorFunction%")re=b("function* () {}");else if(Z==="%AsyncGeneratorFunction%")re=b("async function* () {}");else if(Z==="%AsyncGenerator%"){var $=te("%AsyncGeneratorFunction%");$&&(re=$.prototype)}else if(Z==="%AsyncIteratorPrototype%"){var L=te("%AsyncGenerator%");L&&S&&(re=S(L.prototype))}return k[Z]=re,re},B={__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"]},V=Qt(),G=wf(),F=V.call(I,Array.prototype.concat),J=V.call(w,Array.prototype.splice),A=V.call(I,String.prototype.replace),O=V.call(I,String.prototype.slice),D=V.call(I,RegExp.prototype.exec),X=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,ne=/\\(\\)?/g,ee=function(Z){var re=O(Z,0,1),$=O(Z,-1);if(re==="%"&&$!=="%")throw new a("invalid intrinsic syntax, expected closing `%`");if($==="%"&&re!=="%")throw new a("invalid intrinsic syntax, expected opening `%`");var L=[];return A(Z,X,function(oe,ae,fe,pe){L[L.length]=fe?A(pe,ne,"$1"):ae||oe}),L},M=function(Z,re){var $=Z,L;if(G(B,$)&&(L=B[$],$="%"+L[0]+"%"),G(k,$)){var oe=k[$];if(oe===N&&(oe=q($)),typeof oe>"u"&&!re)throw new c("intrinsic "+Z+" exists, but is not available. Please file an issue!");return{alias:L,name:$,value:oe}}throw new a("intrinsic "+Z+" does not exist!")};return fo=function(Z,re){if(typeof Z!="string"||Z.length===0)throw new c("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof re!="boolean")throw new c('"allowMissing" argument must be a boolean');if(D(/^%?[^%]*%?$/,Z)===null)throw new a("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var $=ee(Z),L=$.length>0?$[0]:"",oe=M("%"+L+"%",re),ae=oe.name,fe=oe.value,pe=!1,ue=oe.alias;ue&&(L=ue[0],J($,F([0,1],ue)));for(var H=1,be=!0;H<$.length;H+=1){var ie=$[H],_e=O(ie,0,1),K=O(ie,-1);if((_e==='"'||_e==="'"||_e==="`"||K==='"'||K==="'"||K==="`")&&_e!==K)throw new a("property names with quotes must have matching quotes");if((ie==="constructor"||!be)&&(pe=!0),L+="."+ie,ae="%"+L+"%",G(k,ae))fe=k[ae];else if(fe!=null){if(!(ie in fe)){if(!re)throw new c("base intrinsic for "+Z+" exists, but the property is not available.");return}if(C&&H+1>=$.length){var me=C(fe,ie);be=!!me,be&&"get"in me&&!("originalValue"in me.get)?fe=me.get:fe=fe[ie]}else be=G(fe,ie),fe=fe[ie];be&&!pe&&(k[ae]=fe)}}return fe},fo}var po,wa;function Zt(){if(wa)return po;wa=1;var e=Ef(),t=zs(),r=t([e("%String.prototype.indexOf%")]);return po=function(s,i){var a=e(s,!!i);return typeof a=="function"&&r(s,".prototype.")>-1?t([a]):a},po}var mo,Ea;function s_(){if(Ea)return mo;Ea=1;var e=Fr()(),t=Zt(),r=t("Object.prototype.toString"),o=function(c){return e&&c&&typeof c=="object"&&Symbol.toStringTag in c?!1:r(c)==="[object Arguments]"},s=function(c){return o(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 o(arguments)}();return o.isLegacyArguments=s,mo=i?o:s,mo}var ho,Ra;function i_(){if(Ra)return ho;Ra=1;var e=Zt(),t=Fr()(),r=wf(),o=Ot(),s;if(t){var i=e("RegExp.prototype.exec"),a={},c=function(){throw a},l={toString:c,valueOf:c};typeof Symbol.toPrimitive=="symbol"&&(l[Symbol.toPrimitive]=c),s=function(d){if(!d||typeof d!="object")return!1;var p=o(d,"lastIndex"),g=p&&r(p,"value");if(!g)return!1;try{i(d,l)}catch(y){return y===a}}}else{var u=e("Object.prototype.toString"),f="[object RegExp]";s=function(d){return!d||typeof d!="object"&&typeof d!="function"?!1:u(d)===f}}return ho=s,ho}var go,Aa;function a_(){if(Aa)return go;Aa=1;var e=Zt(),t=i_(),r=e("RegExp.prototype.exec"),o=Yt();return go=function(i){if(!t(i))throw new o("`regex` must be a RegExp");return function(c){return r(i,c)!==null}},go}var yo,Ia;function c_(){if(Ia)return yo;Ia=1;var e=Zt(),t=a_(),r=t(/^\s*(?:function)?\*/),o=Fr()(),s=Bs(),i=e("Object.prototype.toString"),a=e("Function.prototype.toString"),c=function(){if(!o)return!1;try{return Function("return function*() {}")()}catch{}},l;return yo=function(f){if(typeof f!="function")return!1;if(r(a(f)))return!0;if(!o){var h=i(f);return h==="[object GeneratorFunction]"}if(!s)return!1;if(typeof l>"u"){var d=c();l=d?s(d):!1}return s(f)===l},yo}var _o,Na;function l_(){if(Na)return _o;Na=1;var e=Function.prototype.toString,t=typeof Reflect=="object"&&Reflect!==null&&Reflect.apply,r,o;if(typeof t=="function"&&typeof Object.defineProperty=="function")try{r=Object.defineProperty({},"length",{get:function(){throw o}}),o={},t(function(){throw 42},null,r)}catch(C){C!==o&&(t=null)}else t=null;var s=/^\s*class\b/,i=function(v){try{var j=e.call(v);return s.test(j)}catch{return!1}},a=function(v){try{return i(v)?!1:(e.call(v),!0)}catch{return!1}},c=Object.prototype.toString,l="[object Object]",u="[object Function]",f="[object GeneratorFunction]",h="[object HTMLAllCollection]",d="[object HTML document.all class]",p="[object HTMLCollection]",g=typeof Symbol=="function"&&!!Symbol.toStringTag,y=!(0 in[,]),_=function(){return!1};if(typeof document=="object"){var b=document.all;c.call(b)===c.call(document.all)&&(_=function(v){if((y||!v)&&(typeof v>"u"||typeof v=="object"))try{var j=c.call(v);return(j===h||j===d||j===p||j===l)&&v("")==null}catch{}return!1})}return _o=t?function(v){if(_(v))return!0;if(!v||typeof v!="function"&&typeof v!="object")return!1;try{t(v,null,r)}catch(j){if(j!==o)return!1}return!i(v)&&a(v)}:function(v){if(_(v))return!0;if(!v||typeof v!="function"&&typeof v!="object")return!1;if(g)return a(v);if(i(v))return!1;var j=c.call(v);return j!==u&&j!==f&&!/^\[object HTML/.test(j)?!1:a(v)},_o}var vo,Ta;function u_(){if(Ta)return vo;Ta=1;var e=l_(),t=Object.prototype.toString,r=Object.prototype.hasOwnProperty,o=function(l,u,f){for(var h=0,d=l.length;h<d;h++)r.call(l,h)&&(f==null?u(l[h],h,l):u.call(f,l[h],h,l))},s=function(l,u,f){for(var h=0,d=l.length;h<d;h++)f==null?u(l.charAt(h),h,l):u.call(f,l.charAt(h),h,l)},i=function(l,u,f){for(var h in l)r.call(l,h)&&(f==null?u(l[h],h,l):u.call(f,l[h],h,l))};function a(c){return t.call(c)==="[object Array]"}return vo=function(l,u,f){if(!e(u))throw new TypeError("iterator must be a function");var h;arguments.length>=3&&(h=f),a(l)?o(l,u,h):typeof l=="string"?s(l,u,h):i(l,u,h)},vo}var xo,Oa;function d_(){return Oa||(Oa=1,xo=["Float16Array","Float32Array","Float64Array","Int8Array","Int16Array","Int32Array","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","BigInt64Array","BigUint64Array"]),xo}var bo,ka;function f_(){if(ka)return bo;ka=1;var e=d_(),t=typeof globalThis>"u"?pu:globalThis;return bo=function(){for(var o=[],s=0;s<e.length;s++)typeof t[e[s]]=="function"&&(o[o.length]=e[s]);return o},bo}var jo={exports:{}},Co,La;function p_(){if(La)return Co;La=1;var e=qr(),t=jf(),r=Yt(),o=Ot();return Co=function(i,a,c){if(!i||typeof i!="object"&&typeof i!="function")throw new r("`obj` must be an object or a function`");if(typeof a!="string"&&typeof a!="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 l=arguments.length>3?arguments[3]:null,u=arguments.length>4?arguments[4]:null,f=arguments.length>5?arguments[5]:null,h=arguments.length>6?arguments[6]:!1,d=!!o&&o(i,a);if(e)e(i,a,{configurable:f===null&&d?d.configurable:!f,enumerable:l===null&&d?d.enumerable:!l,value:c,writable:u===null&&d?d.writable:!u});else if(h||!l&&!u&&!f)i[a]=c;else throw new t("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.")},Co}var So,Ma;function m_(){if(Ma)return So;Ma=1;var e=qr(),t=function(){return!!e};return t.hasArrayLengthDefineBug=function(){if(!e)return null;try{return e([],"length",{value:1}).length!==1}catch{return!0}},So=t,So}var Po,Da;function h_(){if(Da)return Po;Da=1;var e=Ef(),t=p_(),r=m_()(),o=Ot(),s=Yt(),i=e("%Math.floor%");return Po=function(c,l){if(typeof c!="function")throw new s("`fn` is not a function");if(typeof l!="number"||l<0||l>4294967295||i(l)!==l)throw new s("`length` must be a positive 32-bit integer");var u=arguments.length>2&&!!arguments[2],f=!0,h=!0;if("length"in c&&o){var d=o(c,"length");d&&!d.configurable&&(f=!1),d&&!d.writable&&(h=!1)}return(f||h||!u)&&(r?t(c,"length",l,!0,!0):t(c,"length",l)),c},Po}var wo,$a;function g_(){if($a)return wo;$a=1;var e=Qt(),t=$s(),r=Pf();return wo=function(){return r(e,t,arguments)},wo}var za;function y_(){return za||(za=1,function(e){var t=h_(),r=qr(),o=zs(),s=g_();e.exports=function(a){var c=o(arguments),l=a.length-(arguments.length-1);return t(c,1+(l>0?l:0),!0)},r?r(e.exports,"apply",{value:s}):e.exports.apply=s}(jo)),jo.exports}var Eo,Ba;function Rf(){if(Ba)return Eo;Ba=1;var e=u_(),t=f_(),r=y_(),o=Zt(),s=Ot(),i=Bs(),a=o("Object.prototype.toString"),c=Fr()(),l=typeof globalThis>"u"?pu:globalThis,u=t(),f=o("String.prototype.slice"),h=o("Array.prototype.indexOf",!0)||function(_,b){for(var C=0;C<_.length;C+=1)if(_[C]===b)return C;return-1},d={__proto__:null};c&&s&&i?e(u,function(y){var _=new l[y];if(Symbol.toStringTag in _&&i){var b=i(_),C=s(b,Symbol.toStringTag);if(!C&&b){var v=i(b);C=s(v,Symbol.toStringTag)}d["$"+y]=r(C.get)}}):e(u,function(y){var _=new l[y],b=_.slice||_.set;b&&(d["$"+y]=r(b))});var p=function(_){var b=!1;return e(d,function(C,v){if(!b)try{"$"+C(_)===v&&(b=f(v,1))}catch{}}),b},g=function(_){var b=!1;return e(d,function(C,v){if(!b)try{C(_),b=f(v,1)}catch{}}),b};return Eo=function(_){if(!_||typeof _!="object")return!1;if(!c){var b=f(a(_),8,-1);return h(u,b)>-1?b:b!=="Object"?!1:g(_)}return s?p(_):null},Eo}var Ro,Fa;function __(){if(Fa)return Ro;Fa=1;var e=Rf();return Ro=function(r){return!!e(r)},Ro}var qa;function v_(){return qa||(qa=1,function(e){var t=s_(),r=c_(),o=Rf(),s=__();function i(H){return H.call.bind(H)}var a=typeof BigInt<"u",c=typeof Symbol<"u",l=i(Object.prototype.toString),u=i(Number.prototype.valueOf),f=i(String.prototype.valueOf),h=i(Boolean.prototype.valueOf);if(a)var d=i(BigInt.prototype.valueOf);if(c)var p=i(Symbol.prototype.valueOf);function g(H,be){if(typeof H!="object")return!1;try{return be(H),!0}catch{return!1}}e.isArgumentsObject=t,e.isGeneratorFunction=r,e.isTypedArray=s;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 _(H){return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?ArrayBuffer.isView(H):s(H)||O(H)}e.isArrayBufferView=_;function b(H){return o(H)==="Uint8Array"}e.isUint8Array=b;function C(H){return o(H)==="Uint8ClampedArray"}e.isUint8ClampedArray=C;function v(H){return o(H)==="Uint16Array"}e.isUint16Array=v;function j(H){return o(H)==="Uint32Array"}e.isUint32Array=j;function P(H){return o(H)==="Int8Array"}e.isInt8Array=P;function E(H){return o(H)==="Int16Array"}e.isInt16Array=E;function S(H){return o(H)==="Int32Array"}e.isInt32Array=S;function R(H){return o(H)==="Float32Array"}e.isFloat32Array=R;function T(H){return o(H)==="Float64Array"}e.isFloat64Array=T;function w(H){return o(H)==="BigInt64Array"}e.isBigInt64Array=w;function I(H){return o(H)==="BigUint64Array"}e.isBigUint64Array=I;function N(H){return l(H)==="[object Map]"}N.working=typeof Map<"u"&&N(new Map);function z(H){return typeof Map>"u"?!1:N.working?N(H):H instanceof Map}e.isMap=z;function k(H){return l(H)==="[object Set]"}k.working=typeof Set<"u"&&k(new Set);function U(H){return typeof Set>"u"?!1:k.working?k(H):H instanceof Set}e.isSet=U;function q(H){return l(H)==="[object WeakMap]"}q.working=typeof WeakMap<"u"&&q(new WeakMap);function B(H){return typeof WeakMap>"u"?!1:q.working?q(H):H instanceof WeakMap}e.isWeakMap=B;function V(H){return l(H)==="[object WeakSet]"}V.working=typeof WeakSet<"u"&&V(new WeakSet);function G(H){return V(H)}e.isWeakSet=G;function F(H){return l(H)==="[object ArrayBuffer]"}F.working=typeof ArrayBuffer<"u"&&F(new ArrayBuffer);function J(H){return typeof ArrayBuffer>"u"?!1:F.working?F(H):H instanceof ArrayBuffer}e.isArrayBuffer=J;function A(H){return l(H)==="[object DataView]"}A.working=typeof ArrayBuffer<"u"&&typeof DataView<"u"&&A(new DataView(new ArrayBuffer(1),0,1));function O(H){return typeof DataView>"u"?!1:A.working?A(H):H instanceof DataView}e.isDataView=O;var D=typeof SharedArrayBuffer<"u"?SharedArrayBuffer:void 0;function X(H){return l(H)==="[object SharedArrayBuffer]"}function ne(H){return typeof D>"u"?!1:(typeof X.working>"u"&&(X.working=X(new D)),X.working?X(H):H instanceof D)}e.isSharedArrayBuffer=ne;function ee(H){return l(H)==="[object AsyncFunction]"}e.isAsyncFunction=ee;function M(H){return l(H)==="[object Map Iterator]"}e.isMapIterator=M;function te(H){return l(H)==="[object Set Iterator]"}e.isSetIterator=te;function Z(H){return l(H)==="[object Generator]"}e.isGeneratorObject=Z;function re(H){return l(H)==="[object WebAssembly.Module]"}e.isWebAssemblyCompiledModule=re;function $(H){return g(H,u)}e.isNumberObject=$;function L(H){return g(H,f)}e.isStringObject=L;function oe(H){return g(H,h)}e.isBooleanObject=oe;function ae(H){return a&&g(H,d)}e.isBigIntObject=ae;function fe(H){return c&&g(H,p)}e.isSymbolObject=fe;function pe(H){return $(H)||L(H)||oe(H)||ae(H)||fe(H)}e.isBoxedPrimitive=pe;function ue(H){return typeof Uint8Array<"u"&&(J(H)||ne(H))}e.isAnyArrayBuffer=ue,["isProxy","isExternal","isModuleNamespaceObject"].forEach(function(H){Object.defineProperty(e,H,{enumerable:!1,value:function(){throw new Error(H+" is not supported in userland")}})})}(In)),In}var Ao,Ha;function x_(){return Ha||(Ha=1,Ao=function(t){return t&&typeof t=="object"&&typeof t.copy=="function"&&typeof t.fill=="function"&&typeof t.readUInt8=="function"}),Ao}var gr={exports:{}},Ua;function b_(){return Ua||(Ua=1,typeof Object.create=="function"?gr.exports=function(t,r){r&&(t.super_=r,t.prototype=Object.create(r.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}))}:gr.exports=function(t,r){if(r){t.super_=r;var o=function(){};o.prototype=r.prototype,t.prototype=new o,t.prototype.constructor=t}}),gr.exports}var Wa;function j_(){return Wa||(Wa=1,function(e){var t=Object.getOwnPropertyDescriptors||function(O){for(var D=Object.keys(O),X={},ne=0;ne<D.length;ne++)X[D[ne]]=Object.getOwnPropertyDescriptor(O,D[ne]);return X},r=/%[sdj%]/g;e.format=function(A){if(!P(A)){for(var O=[],D=0;D<arguments.length;D++)O.push(a(arguments[D]));return O.join(" ")}for(var D=1,X=arguments,ne=X.length,ee=String(A).replace(r,function(te){if(te==="%%")return"%";if(D>=ne)return te;switch(te){case"%s":return String(X[D++]);case"%d":return Number(X[D++]);case"%j":try{return JSON.stringify(X[D++])}catch{return"[Circular]"}default:return te}}),M=X[D];D<ne;M=X[++D])C(M)||!T(M)?ee+=" "+M:ee+=" "+a(M);return ee},e.deprecate=function(A,O){if(typeof process<"u"&&process.noDeprecation===!0)return A;if(typeof process>"u")return function(){return e.deprecate(A,O).apply(this,arguments)};var D=!1;function X(){if(!D){if(process.throwDeprecation)throw new Error(O);process.traceDeprecation?console.trace(O):console.error(O),D=!0}return A.apply(this,arguments)}return X};var o={},s=/^$/;if(process.env.NODE_DEBUG){var i=process.env.NODE_DEBUG;i=i.replace(/[|\\{}()[\]^$+?.]/g,"\\$&").replace(/\*/g,".*").replace(/,/g,"$|^").toUpperCase(),s=new RegExp("^"+i+"$","i")}e.debuglog=function(A){if(A=A.toUpperCase(),!o[A])if(s.test(A)){var O=process.pid;o[A]=function(){var D=e.format.apply(e,arguments);console.error("%s %d: %s",A,O,D)}}else o[A]=function(){};return o[A]};function a(A,O){var D={seen:[],stylize:l};return arguments.length>=3&&(D.depth=arguments[2]),arguments.length>=4&&(D.colors=arguments[3]),b(O)?D.showHidden=O:O&&e._extend(D,O),S(D.showHidden)&&(D.showHidden=!1),S(D.depth)&&(D.depth=2),S(D.colors)&&(D.colors=!1),S(D.customInspect)&&(D.customInspect=!0),D.colors&&(D.stylize=c),f(D,A,D.depth)}e.inspect=a,a.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]},a.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"};function c(A,O){var D=a.styles[O];return D?"\x1B["+a.colors[D][0]+"m"+A+"\x1B["+a.colors[D][1]+"m":A}function l(A,O){return A}function u(A){var O={};return A.forEach(function(D,X){O[D]=!0}),O}function f(A,O,D){if(A.customInspect&&O&&N(O.inspect)&&O.inspect!==e.inspect&&!(O.constructor&&O.constructor.prototype===O)){var X=O.inspect(D,A);return P(X)||(X=f(A,X,D)),X}var ne=h(A,O);if(ne)return ne;var ee=Object.keys(O),M=u(ee);if(A.showHidden&&(ee=Object.getOwnPropertyNames(O)),I(O)&&(ee.indexOf("message")>=0||ee.indexOf("description")>=0))return d(O);if(ee.length===0){if(N(O)){var te=O.name?": "+O.name:"";return A.stylize("[Function"+te+"]","special")}if(R(O))return A.stylize(RegExp.prototype.toString.call(O),"regexp");if(w(O))return A.stylize(Date.prototype.toString.call(O),"date");if(I(O))return d(O)}var Z="",re=!1,$=["{","}"];if(_(O)&&(re=!0,$=["[","]"]),N(O)){var L=O.name?": "+O.name:"";Z=" [Function"+L+"]"}if(R(O)&&(Z=" "+RegExp.prototype.toString.call(O)),w(O)&&(Z=" "+Date.prototype.toUTCString.call(O)),I(O)&&(Z=" "+d(O)),ee.length===0&&(!re||O.length==0))return $[0]+Z+$[1];if(D<0)return R(O)?A.stylize(RegExp.prototype.toString.call(O),"regexp"):A.stylize("[Object]","special");A.seen.push(O);var oe;return re?oe=p(A,O,D,M,ee):oe=ee.map(function(ae){return g(A,O,D,M,ae,re)}),A.seen.pop(),y(oe,Z,$)}function h(A,O){if(S(O))return A.stylize("undefined","undefined");if(P(O)){var D="'"+JSON.stringify(O).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return A.stylize(D,"string")}if(j(O))return A.stylize(""+O,"number");if(b(O))return A.stylize(""+O,"boolean");if(C(O))return A.stylize("null","null")}function d(A){return"["+Error.prototype.toString.call(A)+"]"}function p(A,O,D,X,ne){for(var ee=[],M=0,te=O.length;M<te;++M)V(O,String(M))?ee.push(g(A,O,D,X,String(M),!0)):ee.push("");return ne.forEach(function(Z){Z.match(/^\d+$/)||ee.push(g(A,O,D,X,Z,!0))}),ee}function g(A,O,D,X,ne,ee){var M,te,Z;if(Z=Object.getOwnPropertyDescriptor(O,ne)||{value:O[ne]},Z.get?Z.set?te=A.stylize("[Getter/Setter]","special"):te=A.stylize("[Getter]","special"):Z.set&&(te=A.stylize("[Setter]","special")),V(X,ne)||(M="["+ne+"]"),te||(A.seen.indexOf(Z.value)<0?(C(D)?te=f(A,Z.value,null):te=f(A,Z.value,D-1),te.indexOf(`
16
16
  `)>-1&&(ee?te=te.split(`
17
17
  `).map(function(re){return" "+re}).join(`
18
18
  `).slice(2):te=`
19
19
  `+te.split(`
20
20
  `).map(function(re){return" "+re}).join(`
21
- `))):te=A.stylize("[Circular]","special")),S(L)){if(ee&&ne.match(/^\d+$/))return te;L=JSON.stringify(""+ne),L.match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(L=L.slice(1,-1),L=A.stylize(L,"name")):(L=L.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),L=A.stylize(L,"string"))}return L+": "+te}function _(A,k,D){var X=A.reduce(function(ne,ee){return ee.indexOf(`
22
- `)>=0,ne+ee.replace(/\u001b\[\d\d?m/g,"").length+1},0);return X>60?D[0]+(k===""?"":k+`
21
+ `))):te=A.stylize("[Circular]","special")),S(M)){if(ee&&ne.match(/^\d+$/))return te;M=JSON.stringify(""+ne),M.match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(M=M.slice(1,-1),M=A.stylize(M,"name")):(M=M.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),M=A.stylize(M,"string"))}return M+": "+te}function y(A,O,D){var X=A.reduce(function(ne,ee){return ee.indexOf(`
22
+ `)>=0,ne+ee.replace(/\u001b\[\d\d?m/g,"").length+1},0);return X>60?D[0]+(O===""?"":O+`
23
23
  `)+" "+A.join(`,
24
- `)+" "+D[1]:D[0]+k+" "+A.join(", ")+" "+D[1]}e.types=l_();function y(A){return Array.isArray(A)}e.isArray=y;function b(A){return typeof A=="boolean"}e.isBoolean=b;function C(A){return A===null}e.isNull=C;function v(A){return A==null}e.isNullOrUndefined=v;function j(A){return typeof A=="number"}e.isNumber=j;function P(A){return typeof A=="string"}e.isString=P;function E(A){return typeof A=="symbol"}e.isSymbol=E;function S(A){return A===void 0}e.isUndefined=S;function R(A){return T(A)&&O(A)==="[object RegExp]"}e.isRegExp=R,e.types.isRegExp=R;function T(A){return typeof A=="object"&&A!==null}e.isObject=T;function w(A){return T(A)&&O(A)==="[object Date]"}e.isDate=w,e.types.isDate=w;function N(A){return T(A)&&(O(A)==="[object Error]"||A instanceof Error)}e.isError=N,e.types.isNativeError=N;function I(A){return typeof A=="function"}e.isFunction=I;function z(A){return A===null||typeof A=="boolean"||typeof A=="number"||typeof A=="string"||typeof A=="symbol"||typeof A>"u"}e.isPrimitive=z,e.isBuffer=u_();function O(A){return Object.prototype.toString.call(A)}function W(A){return A<10?"0"+A.toString(10):A.toString(10)}var q=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function F(){var A=new Date,k=[W(A.getHours()),W(A.getMinutes()),W(A.getSeconds())].join(":");return[A.getDate(),q[A.getMonth()],k].join(" ")}e.log=function(){console.log("%s - %s",F(),e.format.apply(e,arguments))},e.inherits=d_(),e._extend=function(A,k){if(!k||!T(k))return A;for(var D=Object.keys(k),X=D.length;X--;)A[D[X]]=k[D[X]];return A};function V(A,k){return Object.prototype.hasOwnProperty.call(A,k)}var G=typeof Symbol<"u"?Symbol("util.promisify.custom"):void 0;e.promisify=function(k){if(typeof k!="function")throw new TypeError('The "original" argument must be of type Function');if(G&&k[G]){var D=k[G];if(typeof D!="function")throw new TypeError('The "util.promisify.custom" argument must be of type Function');return Object.defineProperty(D,G,{value:D,enumerable:!1,writable:!1,configurable:!0}),D}function D(){for(var X,ne,ee=new Promise(function(Z,re){X=Z,ne=re}),L=[],te=0;te<arguments.length;te++)L.push(arguments[te]);L.push(function(Z,re){Z?ne(Z):X(re)});try{k.apply(this,L)}catch(Z){ne(Z)}return ee}return Object.setPrototypeOf(D,Object.getPrototypeOf(k)),G&&Object.defineProperty(D,G,{value:D,enumerable:!1,writable:!1,configurable:!0}),Object.defineProperties(D,t(k))},e.promisify.custom=G;function B(A,k){if(!A){var D=new Error("Promise was rejected with a falsy value");D.reason=A,A=D}return k(A)}function J(A){if(typeof A!="function")throw new TypeError('The "original" argument must be of type Function');function k(){for(var D=[],X=0;X<arguments.length;X++)D.push(arguments[X]);var ne=D.pop();if(typeof ne!="function")throw new TypeError("The last argument must be of type Function");var ee=this,L=function(){return ne.apply(ee,arguments)};A.apply(this,D).then(function(te){process.nextTick(L.bind(null,null,te))},function(te){process.nextTick(B.bind(null,te,L))})}return Object.setPrototypeOf(k,Object.getPrototypeOf(A)),Object.defineProperties(k,t(A)),k}e.callbackify=J}(wn)),wn}var Ui;function p_(){return Ui||(Ui=1,(()=>{var e={333:(s,a,i)=>{const c=i(137),l=i(179),u=i(13),p=i(719),h=(d,f={})=>{let g=[];if(Array.isArray(d))for(let _ of d){let y=h.create(_,f);Array.isArray(y)?g.push(...y):g.push(y)}else g=[].concat(h.create(d,f));return f&&f.expand===!0&&f.nodupes===!0&&(g=[...new Set(g)]),g};h.parse=(d,f={})=>p(d,f),h.stringify=(d,f={})=>c(typeof d=="string"?h.parse(d,f):d,f),h.compile=(d,f={})=>(typeof d=="string"&&(d=h.parse(d,f)),l(d,f)),h.expand=(d,f={})=>{typeof d=="string"&&(d=h.parse(d,f));let g=u(d,f);return f.noempty===!0&&(g=g.filter(Boolean)),f.nodupes===!0&&(g=[...new Set(g)]),g},h.create=(d,f={})=>d===""||d.length<3?[d]:f.expand!==!0?h.compile(d,f):h.expand(d,f),s.exports=h},179:(s,a,i)=>{const c=i(783),l=i(617),u=(p,h={})=>{let d=(f,g={})=>{let _=l.isInvalidBrace(g),y=f.invalid===!0&&h.escapeInvalid===!0,b=_===!0||y===!0,C=h.escapeInvalid===!0?"\\":"",v="";if(f.isOpen===!0||f.isClose===!0)return C+f.value;if(f.type==="open")return b?C+f.value:"(";if(f.type==="close")return b?C+f.value:")";if(f.type==="comma")return f.prev.type==="comma"?"":b?f.value:"|";if(f.value)return f.value;if(f.nodes&&f.ranges>0){let j=l.reduce(f.nodes),P=c(...j,{...h,wrap:!1,toRegex:!0});if(P.length!==0)return j.length>1&&P.length>1?`(${P})`:P}if(f.nodes)for(let j of f.nodes)v+=d(j,f);return v};return d(p)};s.exports=u},457:s=>{s.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:(s,a,i)=>{const c=i(783),l=i(137),u=i(617),p=(d="",f="",g=!1)=>{let _=[];if(d=[].concat(d),f=[].concat(f),!f.length)return d;if(!d.length)return g?u.flatten(f).map(y=>`{${y}}`):f;for(let y of d)if(Array.isArray(y))for(let b of y)_.push(p(b,f,g));else for(let b of f)g===!0&&typeof b=="string"&&(b=`{${b}}`),_.push(Array.isArray(b)?p(y,b,g):y+b);return u.flatten(_)},h=(d,f={})=>{let g=f.rangeLimit===void 0?1e3:f.rangeLimit,_=(y,b={})=>{y.queue=[];let C=b,v=b.queue;for(;C.type!=="brace"&&C.type!=="root"&&C.parent;)C=C.parent,v=C.queue;if(y.invalid||y.dollar){v.push(p(v.pop(),l(y,f)));return}if(y.type==="brace"&&y.invalid!==!0&&y.nodes.length===2){v.push(p(v.pop(),["{}"]));return}if(y.nodes&&y.ranges>0){let S=u.reduce(y.nodes);if(u.exceedsLimit(...S,f.step,g))throw new RangeError("expanded array length exceeds range limit. Use options.rangeLimit to increase or disable the limit.");let R=c(...S,f);R.length===0&&(R=l(y,f)),v.push(p(v.pop(),R)),y.nodes=[];return}let j=u.encloseBrace(y),P=y.queue,E=y;for(;E.type!=="brace"&&E.type!=="root"&&E.parent;)E=E.parent,P=E.queue;for(let S=0;S<y.nodes.length;S++){let R=y.nodes[S];if(R.type==="comma"&&y.type==="brace"){S===1&&P.push(""),P.push("");continue}if(R.type==="close"){v.push(p(v.pop(),P,j));continue}if(R.value&&R.type!=="open"){P.push(p(P.pop(),R.value));continue}R.nodes&&_(R,y)}return P};return u.flatten(_(d))};s.exports=h},719:(s,a,i)=>{const c=i(137),{MAX_LENGTH:l,CHAR_BACKSLASH:u,CHAR_BACKTICK:p,CHAR_COMMA:h,CHAR_DOT:d,CHAR_LEFT_PARENTHESES:f,CHAR_RIGHT_PARENTHESES:g,CHAR_LEFT_CURLY_BRACE:_,CHAR_RIGHT_CURLY_BRACE:y,CHAR_LEFT_SQUARE_BRACKET:b,CHAR_RIGHT_SQUARE_BRACKET:C,CHAR_DOUBLE_QUOTE:v,CHAR_SINGLE_QUOTE:j,CHAR_NO_BREAK_SPACE:P,CHAR_ZERO_WIDTH_NOBREAK_SPACE:E}=i(457),S=(R,T={})=>{if(typeof R!="string")throw new TypeError("Expected a string");let w=T||{},N=typeof w.maxLength=="number"?Math.min(l,w.maxLength):l;if(R.length>N)throw new SyntaxError(`Input length (${R.length}), exceeds max characters (${N})`);let I={type:"root",input:R,nodes:[]},z=[I],O=I,W=I,q=0,F=R.length,V=0,G=0,B;const J=()=>R[V++],A=k=>{if(k.type==="text"&&W.type==="dot"&&(W.type="text"),W&&W.type==="text"&&k.type==="text"){W.value+=k.value;return}return O.nodes.push(k),k.parent=O,k.prev=W,W=k,k};for(A({type:"bos"});V<F;)if(O=z[z.length-1],B=J(),!(B===E||B===P)){if(B===u){A({type:"text",value:(T.keepEscaping?B:"")+J()});continue}if(B===C){A({type:"text",value:"\\"+B});continue}if(B===b){q++;let k;for(;V<F&&(k=J());){if(B+=k,k===b){q++;continue}if(k===u){B+=J();continue}if(k===C&&(q--,q===0))break}A({type:"text",value:B});continue}if(B===f){O=A({type:"paren",nodes:[]}),z.push(O),A({type:"text",value:B});continue}if(B===g){if(O.type!=="paren"){A({type:"text",value:B});continue}O=z.pop(),A({type:"text",value:B}),O=z[z.length-1];continue}if(B===v||B===j||B===p){let k=B,D;for(T.keepQuotes!==!0&&(B="");V<F&&(D=J());){if(D===u){B+=D+J();continue}if(D===k){T.keepQuotes===!0&&(B+=D);break}B+=D}A({type:"text",value:B});continue}if(B===_){G++;let D={type:"brace",open:!0,close:!1,dollar:W.value&&W.value.slice(-1)==="$"||O.dollar===!0,depth:G,commas:0,ranges:0,nodes:[]};O=A(D),z.push(O),A({type:"open",value:B});continue}if(B===y){if(O.type!=="brace"){A({type:"text",value:B});continue}let k="close";O=z.pop(),O.close=!0,A({type:k,value:B}),G--,O=z[z.length-1];continue}if(B===h&&G>0){if(O.ranges>0){O.ranges=0;let k=O.nodes.shift();O.nodes=[k,{type:"text",value:c(O)}]}A({type:"comma",value:B}),O.commas++;continue}if(B===d&&G>0&&O.commas===0){let k=O.nodes;if(G===0||k.length===0){A({type:"text",value:B});continue}if(W.type==="dot"){if(O.range=[],W.value+=B,W.type="range",O.nodes.length!==3&&O.nodes.length!==5){O.invalid=!0,O.ranges=0,W.type="text";continue}O.ranges++,O.args=[];continue}if(W.type==="range"){k.pop();let D=k[k.length-1];D.value+=W.value+B,W=D,O.ranges--;continue}A({type:"dot",value:B});continue}A({type:"text",value:B})}do if(O=z.pop(),O.type!=="root"){O.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 k=z[z.length-1],D=k.nodes.indexOf(O);k.nodes.splice(D,1,...O.nodes)}while(z.length>0);return A({type:"eos"}),I};s.exports=S},137:(s,a,i)=>{const c=i(617);s.exports=(l,u={})=>{let p=(h,d={})=>{let f=u.escapeInvalid&&c.isInvalidBrace(d),g=h.invalid===!0&&u.escapeInvalid===!0,_="";if(h.value)return(f||g)&&c.isOpenOrClose(h)?"\\"+h.value:h.value;if(h.value)return h.value;if(h.nodes)for(let y of h.nodes)_+=p(y);return _};return p(l)}},617:(s,a)=>{a.isInteger=i=>typeof i=="number"?Number.isInteger(i):typeof i=="string"&&i.trim()!==""?Number.isInteger(Number(i)):!1,a.find=(i,c)=>i.nodes.find(l=>l.type===c),a.exceedsLimit=(i,c,l=1,u)=>u===!1||!a.isInteger(i)||!a.isInteger(c)?!1:(Number(c)-Number(i))/Number(l)>=u,a.escapeNode=(i,c=0,l)=>{let u=i.nodes[c];u&&(l&&u.type===l||u.type==="open"||u.type==="close")&&u.escaped!==!0&&(u.value="\\"+u.value,u.escaped=!0)},a.encloseBrace=i=>i.type!=="brace"||i.commas>>0+i.ranges>>0?!1:(i.invalid=!0,!0),a.isInvalidBrace=i=>i.type!=="brace"?!1:i.invalid===!0||i.dollar?!0:!(i.commas>>0+i.ranges>>0)||i.open!==!0||i.close!==!0?(i.invalid=!0,!0):!1,a.isOpenOrClose=i=>i.type==="open"||i.type==="close"?!0:i.open===!0||i.close===!0,a.reduce=i=>i.reduce((c,l)=>(l.type==="text"&&c.push(l.value),l.type==="range"&&(l.type="text"),c),[]),a.flatten=(...i)=>{const c=[],l=u=>{for(let p=0;p<u.length;p++){let h=u[p];Array.isArray(h)?l(h):h!==void 0&&c.push(h)}return c};return l(i),c}},783:(s,a,i)=>{/*!
24
+ `)+" "+D[1]:D[0]+O+" "+A.join(", ")+" "+D[1]}e.types=v_();function _(A){return Array.isArray(A)}e.isArray=_;function b(A){return typeof A=="boolean"}e.isBoolean=b;function C(A){return A===null}e.isNull=C;function v(A){return A==null}e.isNullOrUndefined=v;function j(A){return typeof A=="number"}e.isNumber=j;function P(A){return typeof A=="string"}e.isString=P;function E(A){return typeof A=="symbol"}e.isSymbol=E;function S(A){return A===void 0}e.isUndefined=S;function R(A){return T(A)&&k(A)==="[object RegExp]"}e.isRegExp=R,e.types.isRegExp=R;function T(A){return typeof A=="object"&&A!==null}e.isObject=T;function w(A){return T(A)&&k(A)==="[object Date]"}e.isDate=w,e.types.isDate=w;function I(A){return T(A)&&(k(A)==="[object Error]"||A instanceof Error)}e.isError=I,e.types.isNativeError=I;function N(A){return typeof A=="function"}e.isFunction=N;function z(A){return A===null||typeof A=="boolean"||typeof A=="number"||typeof A=="string"||typeof A=="symbol"||typeof A>"u"}e.isPrimitive=z,e.isBuffer=x_();function k(A){return Object.prototype.toString.call(A)}function U(A){return A<10?"0"+A.toString(10):A.toString(10)}var q=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function B(){var A=new Date,O=[U(A.getHours()),U(A.getMinutes()),U(A.getSeconds())].join(":");return[A.getDate(),q[A.getMonth()],O].join(" ")}e.log=function(){console.log("%s - %s",B(),e.format.apply(e,arguments))},e.inherits=b_(),e._extend=function(A,O){if(!O||!T(O))return A;for(var D=Object.keys(O),X=D.length;X--;)A[D[X]]=O[D[X]];return A};function V(A,O){return Object.prototype.hasOwnProperty.call(A,O)}var G=typeof Symbol<"u"?Symbol("util.promisify.custom"):void 0;e.promisify=function(O){if(typeof O!="function")throw new TypeError('The "original" argument must be of type Function');if(G&&O[G]){var D=O[G];if(typeof D!="function")throw new TypeError('The "util.promisify.custom" argument must be of type Function');return Object.defineProperty(D,G,{value:D,enumerable:!1,writable:!1,configurable:!0}),D}function D(){for(var X,ne,ee=new Promise(function(Z,re){X=Z,ne=re}),M=[],te=0;te<arguments.length;te++)M.push(arguments[te]);M.push(function(Z,re){Z?ne(Z):X(re)});try{O.apply(this,M)}catch(Z){ne(Z)}return ee}return Object.setPrototypeOf(D,Object.getPrototypeOf(O)),G&&Object.defineProperty(D,G,{value:D,enumerable:!1,writable:!1,configurable:!0}),Object.defineProperties(D,t(O))},e.promisify.custom=G;function F(A,O){if(!A){var D=new Error("Promise was rejected with a falsy value");D.reason=A,A=D}return O(A)}function J(A){if(typeof A!="function")throw new TypeError('The "original" argument must be of type Function');function O(){for(var D=[],X=0;X<arguments.length;X++)D.push(arguments[X]);var ne=D.pop();if(typeof ne!="function")throw new TypeError("The last argument must be of type Function");var ee=this,M=function(){return ne.apply(ee,arguments)};A.apply(this,D).then(function(te){process.nextTick(M.bind(null,null,te))},function(te){process.nextTick(F.bind(null,te,M))})}return Object.setPrototypeOf(O,Object.getPrototypeOf(A)),Object.defineProperties(O,t(A)),O}e.callbackify=J}(An)),An}var Va;function C_(){return Va||(Va=1,(()=>{var e={333:(s,i,a)=>{const c=a(137),l=a(179),u=a(13),f=a(719),h=(d,p={})=>{let g=[];if(Array.isArray(d))for(let y of d){let _=h.create(y,p);Array.isArray(_)?g.push(..._):g.push(_)}else g=[].concat(h.create(d,p));return p&&p.expand===!0&&p.nodupes===!0&&(g=[...new Set(g)]),g};h.parse=(d,p={})=>f(d,p),h.stringify=(d,p={})=>c(typeof d=="string"?h.parse(d,p):d,p),h.compile=(d,p={})=>(typeof d=="string"&&(d=h.parse(d,p)),l(d,p)),h.expand=(d,p={})=>{typeof d=="string"&&(d=h.parse(d,p));let g=u(d,p);return p.noempty===!0&&(g=g.filter(Boolean)),p.nodupes===!0&&(g=[...new Set(g)]),g},h.create=(d,p={})=>d===""||d.length<3?[d]:p.expand!==!0?h.compile(d,p):h.expand(d,p),s.exports=h},179:(s,i,a)=>{const c=a(783),l=a(617),u=(f,h={})=>{let d=(p,g={})=>{let y=l.isInvalidBrace(g),_=p.invalid===!0&&h.escapeInvalid===!0,b=y===!0||_===!0,C=h.escapeInvalid===!0?"\\":"",v="";if(p.isOpen===!0||p.isClose===!0)return C+p.value;if(p.type==="open")return b?C+p.value:"(";if(p.type==="close")return b?C+p.value:")";if(p.type==="comma")return p.prev.type==="comma"?"":b?p.value:"|";if(p.value)return p.value;if(p.nodes&&p.ranges>0){let j=l.reduce(p.nodes),P=c(...j,{...h,wrap:!1,toRegex:!0});if(P.length!==0)return j.length>1&&P.length>1?`(${P})`:P}if(p.nodes)for(let j of p.nodes)v+=d(j,p);return v};return d(f)};s.exports=u},457:s=>{s.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:(s,i,a)=>{const c=a(783),l=a(137),u=a(617),f=(d="",p="",g=!1)=>{let y=[];if(d=[].concat(d),p=[].concat(p),!p.length)return d;if(!d.length)return g?u.flatten(p).map(_=>`{${_}}`):p;for(let _ of d)if(Array.isArray(_))for(let b of _)y.push(f(b,p,g));else for(let b of p)g===!0&&typeof b=="string"&&(b=`{${b}}`),y.push(Array.isArray(b)?f(_,b,g):_+b);return u.flatten(y)},h=(d,p={})=>{let g=p.rangeLimit===void 0?1e3:p.rangeLimit,y=(_,b={})=>{_.queue=[];let C=b,v=b.queue;for(;C.type!=="brace"&&C.type!=="root"&&C.parent;)C=C.parent,v=C.queue;if(_.invalid||_.dollar){v.push(f(v.pop(),l(_,p)));return}if(_.type==="brace"&&_.invalid!==!0&&_.nodes.length===2){v.push(f(v.pop(),["{}"]));return}if(_.nodes&&_.ranges>0){let S=u.reduce(_.nodes);if(u.exceedsLimit(...S,p.step,g))throw new RangeError("expanded array length exceeds range limit. Use options.rangeLimit to increase or disable the limit.");let R=c(...S,p);R.length===0&&(R=l(_,p)),v.push(f(v.pop(),R)),_.nodes=[];return}let j=u.encloseBrace(_),P=_.queue,E=_;for(;E.type!=="brace"&&E.type!=="root"&&E.parent;)E=E.parent,P=E.queue;for(let S=0;S<_.nodes.length;S++){let R=_.nodes[S];if(R.type==="comma"&&_.type==="brace"){S===1&&P.push(""),P.push("");continue}if(R.type==="close"){v.push(f(v.pop(),P,j));continue}if(R.value&&R.type!=="open"){P.push(f(P.pop(),R.value));continue}R.nodes&&y(R,_)}return P};return u.flatten(y(d))};s.exports=h},719:(s,i,a)=>{const c=a(137),{MAX_LENGTH:l,CHAR_BACKSLASH:u,CHAR_BACKTICK:f,CHAR_COMMA:h,CHAR_DOT:d,CHAR_LEFT_PARENTHESES:p,CHAR_RIGHT_PARENTHESES:g,CHAR_LEFT_CURLY_BRACE:y,CHAR_RIGHT_CURLY_BRACE:_,CHAR_LEFT_SQUARE_BRACKET:b,CHAR_RIGHT_SQUARE_BRACKET:C,CHAR_DOUBLE_QUOTE:v,CHAR_SINGLE_QUOTE:j,CHAR_NO_BREAK_SPACE:P,CHAR_ZERO_WIDTH_NOBREAK_SPACE:E}=a(457),S=(R,T={})=>{if(typeof R!="string")throw new TypeError("Expected a string");let w=T||{},I=typeof w.maxLength=="number"?Math.min(l,w.maxLength):l;if(R.length>I)throw new SyntaxError(`Input length (${R.length}), exceeds max characters (${I})`);let N={type:"root",input:R,nodes:[]},z=[N],k=N,U=N,q=0,B=R.length,V=0,G=0,F;const J=()=>R[V++],A=O=>{if(O.type==="text"&&U.type==="dot"&&(U.type="text"),U&&U.type==="text"&&O.type==="text"){U.value+=O.value;return}return k.nodes.push(O),O.parent=k,O.prev=U,U=O,O};for(A({type:"bos"});V<B;)if(k=z[z.length-1],F=J(),!(F===E||F===P)){if(F===u){A({type:"text",value:(T.keepEscaping?F:"")+J()});continue}if(F===C){A({type:"text",value:"\\"+F});continue}if(F===b){q++;let O;for(;V<B&&(O=J());){if(F+=O,O===b){q++;continue}if(O===u){F+=J();continue}if(O===C&&(q--,q===0))break}A({type:"text",value:F});continue}if(F===p){k=A({type:"paren",nodes:[]}),z.push(k),A({type:"text",value:F});continue}if(F===g){if(k.type!=="paren"){A({type:"text",value:F});continue}k=z.pop(),A({type:"text",value:F}),k=z[z.length-1];continue}if(F===v||F===j||F===f){let O=F,D;for(T.keepQuotes!==!0&&(F="");V<B&&(D=J());){if(D===u){F+=D+J();continue}if(D===O){T.keepQuotes===!0&&(F+=D);break}F+=D}A({type:"text",value:F});continue}if(F===y){G++;let D={type:"brace",open:!0,close:!1,dollar:U.value&&U.value.slice(-1)==="$"||k.dollar===!0,depth:G,commas:0,ranges:0,nodes:[]};k=A(D),z.push(k),A({type:"open",value:F});continue}if(F===_){if(k.type!=="brace"){A({type:"text",value:F});continue}let O="close";k=z.pop(),k.close=!0,A({type:O,value:F}),G--,k=z[z.length-1];continue}if(F===h&&G>0){if(k.ranges>0){k.ranges=0;let O=k.nodes.shift();k.nodes=[O,{type:"text",value:c(k)}]}A({type:"comma",value:F}),k.commas++;continue}if(F===d&&G>0&&k.commas===0){let O=k.nodes;if(G===0||O.length===0){A({type:"text",value:F});continue}if(U.type==="dot"){if(k.range=[],U.value+=F,U.type="range",k.nodes.length!==3&&k.nodes.length!==5){k.invalid=!0,k.ranges=0,U.type="text";continue}k.ranges++,k.args=[];continue}if(U.type==="range"){O.pop();let D=O[O.length-1];D.value+=U.value+F,U=D,k.ranges--;continue}A({type:"dot",value:F});continue}A({type:"text",value:F})}do if(k=z.pop(),k.type!=="root"){k.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 O=z[z.length-1],D=O.nodes.indexOf(k);O.nodes.splice(D,1,...k.nodes)}while(z.length>0);return A({type:"eos"}),N};s.exports=S},137:(s,i,a)=>{const c=a(617);s.exports=(l,u={})=>{let f=(h,d={})=>{let p=u.escapeInvalid&&c.isInvalidBrace(d),g=h.invalid===!0&&u.escapeInvalid===!0,y="";if(h.value)return(p||g)&&c.isOpenOrClose(h)?"\\"+h.value:h.value;if(h.value)return h.value;if(h.nodes)for(let _ of h.nodes)y+=f(_);return y};return f(l)}},617:(s,i)=>{i.isInteger=a=>typeof a=="number"?Number.isInteger(a):typeof a=="string"&&a.trim()!==""?Number.isInteger(Number(a)):!1,i.find=(a,c)=>a.nodes.find(l=>l.type===c),i.exceedsLimit=(a,c,l=1,u)=>u===!1||!i.isInteger(a)||!i.isInteger(c)?!1:(Number(c)-Number(a))/Number(l)>=u,i.escapeNode=(a,c=0,l)=>{let u=a.nodes[c];u&&(l&&u.type===l||u.type==="open"||u.type==="close")&&u.escaped!==!0&&(u.value="\\"+u.value,u.escaped=!0)},i.encloseBrace=a=>a.type!=="brace"||a.commas>>0+a.ranges>>0?!1:(a.invalid=!0,!0),i.isInvalidBrace=a=>a.type!=="brace"?!1:a.invalid===!0||a.dollar?!0:!(a.commas>>0+a.ranges>>0)||a.open!==!0||a.close!==!0?(a.invalid=!0,!0):!1,i.isOpenOrClose=a=>a.type==="open"||a.type==="close"?!0:a.open===!0||a.close===!0,i.reduce=a=>a.reduce((c,l)=>(l.type==="text"&&c.push(l.value),l.type==="range"&&(l.type="text"),c),[]),i.flatten=(...a)=>{const c=[],l=u=>{for(let f=0;f<u.length;f++){let h=u[f];Array.isArray(h)?l(h):h!==void 0&&c.push(h)}return c};return l(a),c}},783:(s,i,a)=>{/*!
26
26
  * fill-range <https://github.com/jonschlinkert/fill-range>
27
27
  *
28
28
  * Copyright (c) 2014-present, Jon Schlinkert.
29
29
  * Licensed under the MIT License.
30
- */const c=i(837),l=i(492),u=w=>w!==null&&typeof w=="object"&&!Array.isArray(w),p=w=>N=>w===!0?Number(N):String(N),h=w=>typeof w=="number"||typeof w=="string"&&w!=="",d=w=>Number.isInteger(+w),f=w=>{let N=`${w}`,I=-1;if(N[0]==="-"&&(N=N.slice(1)),N==="0")return!1;for(;N[++I]==="0";);return I>0},g=(w,N,I)=>typeof w=="string"||typeof N=="string"?!0:I.stringify===!0,_=(w,N,I)=>{if(N>0){let z=w[0]==="-"?"-":"";z&&(w=w.slice(1)),w=z+w.padStart(z?N-1:N,"0")}return I===!1?String(w):w},y=(w,N)=>{let I=w[0]==="-"?"-":"";for(I&&(w=w.slice(1),N--);w.length<N;)w="0"+w;return I?"-"+w:w},b=(w,N)=>{w.negatives.sort((q,F)=>q<F?-1:q>F?1:0),w.positives.sort((q,F)=>q<F?-1:q>F?1:0);let I=N.capture?"":"?:",z="",O="",W;return w.positives.length&&(z=w.positives.join("|")),w.negatives.length&&(O=`-(${I}${w.negatives.join("|")})`),z&&O?W=`${z}|${O}`:W=z||O,N.wrap?`(${I}${W})`:W},C=(w,N,I,z)=>{if(I)return l(w,N,{wrap:!1,...z});let O=String.fromCharCode(w);if(w===N)return O;let W=String.fromCharCode(N);return`[${O}-${W}]`},v=(w,N,I)=>{if(Array.isArray(w)){let z=I.wrap===!0,O=I.capture?"":"?:";return z?`(${O}${w.join("|")})`:w.join("|")}return l(w,N,I)},j=(...w)=>new RangeError("Invalid range arguments: "+c.inspect(...w)),P=(w,N,I)=>{if(I.strictRanges===!0)throw j([w,N]);return[]},E=(w,N)=>{if(N.strictRanges===!0)throw new TypeError(`Expected step "${w}" to be a number`);return[]},S=(w,N,I=1,z={})=>{let O=Number(w),W=Number(N);if(!Number.isInteger(O)||!Number.isInteger(W)){if(z.strictRanges===!0)throw j([w,N]);return[]}O===0&&(O=0),W===0&&(W=0);let q=O>W,F=String(w),V=String(N),G=String(I);I=Math.max(Math.abs(I),1);let B=f(F)||f(V)||f(G),J=B?Math.max(F.length,V.length,G.length):0,A=B===!1&&g(w,N,z)===!1,k=z.transform||p(A);if(z.toRegex&&I===1)return C(y(w,J),y(N,J),!0,z);let D={negatives:[],positives:[]},X=L=>D[L<0?"negatives":"positives"].push(Math.abs(L)),ne=[],ee=0;for(;q?O>=W:O<=W;)z.toRegex===!0&&I>1?X(O):ne.push(_(k(O,ee),J,A)),O=q?O-I:O+I,ee++;return z.toRegex===!0?I>1?b(D,z):v(ne,null,{wrap:!1,...z}):ne},R=(w,N,I=1,z={})=>{if(!d(w)&&w.length>1||!d(N)&&N.length>1)return P(w,N,z);let O=z.transform||(A=>String.fromCharCode(A)),W=`${w}`.charCodeAt(0),q=`${N}`.charCodeAt(0),F=W>q,V=Math.min(W,q),G=Math.max(W,q);if(z.toRegex&&I===1)return C(V,G,!1,z);let B=[],J=0;for(;F?W>=q:W<=q;)B.push(O(W,J)),W=F?W-I:W+I,J++;return z.toRegex===!0?v(B,null,{wrap:!1,options:z}):B},T=(w,N,I,z={})=>{if(N==null&&h(w))return[w];if(!h(w)||!h(N))return P(w,N,z);if(typeof I=="function")return T(w,N,1,{transform:I});if(u(I))return T(w,N,0,I);let O={...z};return O.capture===!0&&(O.wrap=!0),I=I||O.step||1,d(I)?d(w)&&d(N)?S(w,N,I,O):R(w,N,Math.max(Math.abs(I),1),O):I!=null&&!u(I)?E(I,O):T(w,N,1,I)};s.exports=T},357:s=>{/*!
30
+ */const c=a(837),l=a(492),u=w=>w!==null&&typeof w=="object"&&!Array.isArray(w),f=w=>I=>w===!0?Number(I):String(I),h=w=>typeof w=="number"||typeof w=="string"&&w!=="",d=w=>Number.isInteger(+w),p=w=>{let I=`${w}`,N=-1;if(I[0]==="-"&&(I=I.slice(1)),I==="0")return!1;for(;I[++N]==="0";);return N>0},g=(w,I,N)=>typeof w=="string"||typeof I=="string"?!0:N.stringify===!0,y=(w,I,N)=>{if(I>0){let z=w[0]==="-"?"-":"";z&&(w=w.slice(1)),w=z+w.padStart(z?I-1:I,"0")}return N===!1?String(w):w},_=(w,I)=>{let N=w[0]==="-"?"-":"";for(N&&(w=w.slice(1),I--);w.length<I;)w="0"+w;return N?"-"+w:w},b=(w,I)=>{w.negatives.sort((q,B)=>q<B?-1:q>B?1:0),w.positives.sort((q,B)=>q<B?-1:q>B?1:0);let N=I.capture?"":"?:",z="",k="",U;return w.positives.length&&(z=w.positives.join("|")),w.negatives.length&&(k=`-(${N}${w.negatives.join("|")})`),z&&k?U=`${z}|${k}`:U=z||k,I.wrap?`(${N}${U})`:U},C=(w,I,N,z)=>{if(N)return l(w,I,{wrap:!1,...z});let k=String.fromCharCode(w);if(w===I)return k;let U=String.fromCharCode(I);return`[${k}-${U}]`},v=(w,I,N)=>{if(Array.isArray(w)){let z=N.wrap===!0,k=N.capture?"":"?:";return z?`(${k}${w.join("|")})`:w.join("|")}return l(w,I,N)},j=(...w)=>new RangeError("Invalid range arguments: "+c.inspect(...w)),P=(w,I,N)=>{if(N.strictRanges===!0)throw j([w,I]);return[]},E=(w,I)=>{if(I.strictRanges===!0)throw new TypeError(`Expected step "${w}" to be a number`);return[]},S=(w,I,N=1,z={})=>{let k=Number(w),U=Number(I);if(!Number.isInteger(k)||!Number.isInteger(U)){if(z.strictRanges===!0)throw j([w,I]);return[]}k===0&&(k=0),U===0&&(U=0);let q=k>U,B=String(w),V=String(I),G=String(N);N=Math.max(Math.abs(N),1);let F=p(B)||p(V)||p(G),J=F?Math.max(B.length,V.length,G.length):0,A=F===!1&&g(w,I,z)===!1,O=z.transform||f(A);if(z.toRegex&&N===1)return C(_(w,J),_(I,J),!0,z);let D={negatives:[],positives:[]},X=M=>D[M<0?"negatives":"positives"].push(Math.abs(M)),ne=[],ee=0;for(;q?k>=U:k<=U;)z.toRegex===!0&&N>1?X(k):ne.push(y(O(k,ee),J,A)),k=q?k-N:k+N,ee++;return z.toRegex===!0?N>1?b(D,z):v(ne,null,{wrap:!1,...z}):ne},R=(w,I,N=1,z={})=>{if(!d(w)&&w.length>1||!d(I)&&I.length>1)return P(w,I,z);let k=z.transform||(A=>String.fromCharCode(A)),U=`${w}`.charCodeAt(0),q=`${I}`.charCodeAt(0),B=U>q,V=Math.min(U,q),G=Math.max(U,q);if(z.toRegex&&N===1)return C(V,G,!1,z);let F=[],J=0;for(;B?U>=q:U<=q;)F.push(k(U,J)),U=B?U-N:U+N,J++;return z.toRegex===!0?v(F,null,{wrap:!1,options:z}):F},T=(w,I,N,z={})=>{if(I==null&&h(w))return[w];if(!h(w)||!h(I))return P(w,I,z);if(typeof N=="function")return T(w,I,1,{transform:N});if(u(N))return T(w,I,0,N);let k={...z};return k.capture===!0&&(k.wrap=!0),N=N||k.step||1,d(N)?d(w)&&d(I)?S(w,I,N,k):R(w,I,Math.max(Math.abs(N),1),k):N!=null&&!u(N)?E(N,k):T(w,I,1,N)};s.exports=T},357:s=>{/*!
31
31
  * is-number <https://github.com/jonschlinkert/is-number>
32
32
  *
33
33
  * Copyright (c) 2014-present, Jon Schlinkert.
34
34
  * Released under the MIT License.
35
- */s.exports=function(a){return typeof a=="number"?a-a===0:typeof a=="string"&&a.trim()!==""?Number.isFinite?Number.isFinite(+a):isFinite(+a):!1}},971:(s,a,i)=>{const c=i(837),l=i(333),u=i(251),p=i(513),h=f=>f===""||f==="./",d=(f,g,_)=>{g=[].concat(g),f=[].concat(f);let y=new Set,b=new Set,C=new Set,v=0,j=S=>{C.add(S.output),_&&_.onResult&&_.onResult(S)};for(let S=0;S<g.length;S++){let R=u(String(g[S]),{..._,onResult:j},!0),T=R.state.negated||R.state.negatedExtglob;T&&v++;for(let w of f){let N=R(w,!0);(T?!N.isMatch:N.isMatch)&&(T?y.add(N.output):(y.delete(N.output),b.add(N.output)))}}let E=(v===g.length?[...C]:[...b]).filter(S=>!y.has(S));if(_&&E.length===0){if(_.failglob===!0)throw new Error(`No matches found for "${g.join(", ")}"`);if(_.nonull===!0||_.nullglob===!0)return _.unescape?g.map(S=>S.replace(/\\/g,"")):g}return E};d.match=d,d.matcher=(f,g)=>u(f,g),d.isMatch=(f,g,_)=>u(g,_)(f),d.any=d.isMatch,d.not=(f,g,_={})=>{g=[].concat(g).map(String);let y=new Set,b=[],v=d(f,g,{..._,onResult:j=>{_.onResult&&_.onResult(j),b.push(j.output)}});for(let j of b)v.includes(j)||y.add(j);return[...y]},d.contains=(f,g,_)=>{if(typeof f!="string")throw new TypeError(`Expected a string: "${c.inspect(f)}"`);if(Array.isArray(g))return g.some(y=>d.contains(f,y,_));if(typeof g=="string"){if(h(f)||h(g))return!1;if(f.includes(g)||f.startsWith("./")&&f.slice(2).includes(g))return!0}return d.isMatch(f,g,{..._,contains:!0})},d.matchKeys=(f,g,_)=>{if(!p.isObject(f))throw new TypeError("Expected the first argument to be an object");let y=d(Object.keys(f),g,_),b={};for(let C of y)b[C]=f[C];return b},d.some=(f,g,_)=>{let y=[].concat(f);for(let b of[].concat(g)){let C=u(String(b),_);if(y.some(v=>C(v)))return!0}return!1},d.every=(f,g,_)=>{let y=[].concat(f);for(let b of[].concat(g)){let C=u(String(b),_);if(!y.every(v=>C(v)))return!1}return!0},d.all=(f,g,_)=>{if(typeof f!="string")throw new TypeError(`Expected a string: "${c.inspect(f)}"`);return[].concat(g).every(y=>u(y,_)(f))},d.capture=(f,g,_)=>{let y=p.isWindows(_),C=u.makeRe(String(f),{..._,capture:!0}).exec(y?p.toPosixSlashes(g):g);if(C)return C.slice(1).map(v=>v===void 0?"":v)},d.makeRe=(...f)=>u.makeRe(...f),d.scan=(...f)=>u.scan(...f),d.parse=(f,g)=>{let _=[];for(let y of[].concat(f||[]))for(let b of l(String(y),g))_.push(u.parse(b,g));return _},d.braces=(f,g)=>{if(typeof f!="string")throw new TypeError("Expected a string");return g&&g.nobrace===!0||!/\{.*\}/.test(f)?[f]:l(f,g)},d.braceExpand=(f,g)=>{if(typeof f!="string")throw new TypeError("Expected a string");return d.braces(f,{...g,expand:!0})},s.exports=d},251:(s,a,i)=>{s.exports=i(683)},356:(s,a,i)=>{const c=i(17),l="\\\\/",u=`[^${l}]`,p="\\.",h="\\+",d="\\?",f="\\/",g="(?=.)",_="[^/]",y=`(?:${f}|$)`,b=`(?:^|${f})`,C=`${p}{1,2}${y}`,v=`(?!${p})`,j=`(?!${b}${C})`,P=`(?!${p}{0,1}${y})`,E=`(?!${C})`,S=`[^.${f}]`,R=`${_}*?`,T={DOT_LITERAL:p,PLUS_LITERAL:h,QMARK_LITERAL:d,SLASH_LITERAL:f,ONE_CHAR:g,QMARK:_,END_ANCHOR:y,DOTS_SLASH:C,NO_DOT:v,NO_DOTS:j,NO_DOT_SLASH:P,NO_DOTS_SLASH:E,QMARK_NO_DOT:S,STAR:R,START_ANCHOR:b},w={...T,SLASH_LITERAL:`[${l}]`,QMARK:u,STAR:`${u}*?`,DOTS_SLASH:`${p}{1,2}(?:[${l}]|$)`,NO_DOT:`(?!${p})`,NO_DOTS:`(?!(?:^|[${l}])${p}{1,2}(?:[${l}]|$))`,NO_DOT_SLASH:`(?!${p}{0,1}(?:[${l}]|$))`,NO_DOTS_SLASH:`(?!${p}{1,2}(?:[${l}]|$))`,QMARK_NO_DOT:`[^.${l}]`,START_ANCHOR:`(?:^|[${l}])`,END_ANCHOR:`(?:[${l}]|$)`},N={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"};s.exports={MAX_LENGTH:65536,POSIX_REGEX_SOURCE:N,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(I){return{"!":{type:"negate",open:"(?:(?!(?:",close:`))${I.STAR})`},"?":{type:"qmark",open:"(?:",close:")?"},"+":{type:"plus",open:"(?:",close:")+"},"*":{type:"star",open:"(?:",close:")*"},"@":{type:"at",open:"(?:",close:")"}}},globChars(I){return I===!0?w:T}}},754:(s,a,i)=>{const c=i(356),l=i(513),{MAX_LENGTH:u,POSIX_REGEX_SOURCE:p,REGEX_NON_SPECIAL_CHARS:h,REGEX_SPECIAL_CHARS_BACKREF:d,REPLACEMENTS:f}=c,g=(b,C)=>{if(typeof C.expandRange=="function")return C.expandRange(...b,C);b.sort();const v=`[${b.join("-")}]`;try{new RegExp(v)}catch{return b.map(P=>l.escapeRegex(P)).join("..")}return v},_=(b,C)=>`Missing ${b}: "${C}" - use "\\\\${C}" to match literal characters`,y=(b,C)=>{if(typeof b!="string")throw new TypeError("Expected a string");b=f[b]||b;const v={...C},j=typeof v.maxLength=="number"?Math.min(u,v.maxLength):u;let P=b.length;if(P>j)throw new SyntaxError(`Input length: ${P}, exceeds maximum allowed length: ${j}`);const E={type:"bos",value:"",output:v.prepend||""},S=[E],R=v.capture?"":"?:",T=l.isWindows(C),w=c.globChars(T),N=c.extglobChars(w),{DOT_LITERAL:I,PLUS_LITERAL:z,SLASH_LITERAL:O,ONE_CHAR:W,DOTS_SLASH:q,NO_DOT:F,NO_DOT_SLASH:V,NO_DOTS_SLASH:G,QMARK:B,QMARK_NO_DOT:J,STAR:A,START_ANCHOR:k}=w,D=Q=>`(${R}(?:(?!${k}${Q.dot?q:I}).)*?)`,X=v.dot?"":F,ne=v.dot?B:J;let ee=v.bash===!0?D(v):A;v.capture&&(ee=`(${ee})`),typeof v.noext=="boolean"&&(v.noextglob=v.noext);const L={input:b,index:-1,start:0,dot:v.dot===!0,consumed:"",output:"",prefix:"",backtrack:!1,negated:!1,brackets:0,braces:0,parens:0,quotes:0,globstar:!1,tokens:S};b=l.removePrefix(b,L),P=b.length;const te=[],Z=[],re=[];let $=E,M;const oe=()=>L.index===P-1,ie=L.peek=(Q=1)=>b[L.index+Q],fe=L.advance=()=>b[++L.index],pe=()=>b.slice(L.index+1),ue=(Q="",se=0)=>{L.consumed+=Q,L.index+=se},H=Q=>{L.output+=Q.output!=null?Q.output:Q.value,ue(Q.value)},be=()=>{let Q=1;for(;ie()==="!"&&(ie(2)!=="("||ie(3)==="?");)fe(),L.start++,Q++;return Q%2===0?!1:(L.negated=!0,L.start++,!0)},ae=Q=>{L[Q]++,re.push(Q)},_e=Q=>{L[Q]--,re.pop()},K=Q=>{if($.type==="globstar"){const se=L.braces>0&&(Q.type==="comma"||Q.type==="brace"),Y=Q.extglob===!0||te.length&&(Q.type==="pipe"||Q.type==="paren");Q.type!=="slash"&&Q.type!=="paren"&&!se&&!Y&&(L.output=L.output.slice(0,-$.output.length),$.type="star",$.value="*",$.output=ee,L.output+=$.output)}if(te.length&&Q.type!=="paren"&&!N[Q.value]&&(te[te.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=$,S.push(Q),$=Q},me=(Q,se)=>{const Y={...N[se],conditions:1,inner:""};Y.prev=$,Y.parens=L.parens,Y.output=L.output;const he=(v.capture?"(":"")+Y.open;ae("parens"),K({type:Q,value:se,output:L.output?"":W}),K({type:"paren",extglob:!0,value:fe(),output:he}),te.push(Y)},Ae=Q=>{let se=Q.close+(v.capture?")":"");if(Q.type==="negate"){let Y=ee;Q.inner&&Q.inner.length>1&&Q.inner.includes("/")&&(Y=D(v)),(Y!==ee||oe()||/^\)+$/.test(pe()))&&(se=Q.close=`)$))${Y}`),Q.prev.type==="bos"&&(L.negatedExtglob=!0)}K({type:"paren",extglob:!0,value:M,output:se}),_e("parens")};if(v.fastpaths!==!1&&!/(^[*!]|[/()[\]{}"])/.test(b)){let Q=!1,se=b.replace(d,(Y,he,Ce,Te,Re,qr)=>Te==="\\"?(Q=!0,Y):Te==="?"?he?he+Te+(Re?B.repeat(Re.length):""):qr===0?ne+(Re?B.repeat(Re.length):""):B.repeat(Ce.length):Te==="."?I.repeat(Ce.length):Te==="*"?he?he+Te+(Re?ee:""):ee:he?Y:`\\${Y}`);return Q===!0&&(v.unescape===!0?se=se.replace(/\\/g,""):se=se.replace(/\\+/g,Y=>Y.length%2===0?"\\\\":Y?"\\":"")),se===b&&v.contains===!0?(L.output=b,L):(L.output=l.wrapOutput(se,L,C),L)}for(;!oe();){if(M=fe(),M==="\0")continue;if(M==="\\"){const Y=ie();if(Y==="/"&&v.bash!==!0||Y==="."||Y===";")continue;if(!Y){M+="\\",K({type:"text",value:M});continue}const he=/^\\+/.exec(pe());let Ce=0;if(he&&he[0].length>2&&(Ce=he[0].length,L.index+=Ce,Ce%2!==0&&(M+="\\")),v.unescape===!0?M=fe()||"":M+=fe()||"",L.brackets===0){K({type:"text",value:M});continue}}if(L.brackets>0&&(M!=="]"||$.value==="["||$.value==="[^")){if(v.posix!==!1&&M===":"){const Y=$.value.slice(1);if(Y.includes("[")&&($.posix=!0,Y.includes(":"))){const he=$.value.lastIndexOf("["),Ce=$.value.slice(0,he),Te=$.value.slice(he+2),Re=p[Te];if(Re){$.value=Ce+Re,L.backtrack=!0,fe(),!E.output&&S.indexOf($)===1&&(E.output=W);continue}}}(M==="["&&ie()!==":"||M==="-"&&ie()==="]")&&(M=`\\${M}`),M==="]"&&($.value==="["||$.value==="[^")&&(M=`\\${M}`),v.posix===!0&&M==="!"&&$.value==="["&&(M="^"),$.value+=M,H({value:M});continue}if(L.quotes===1&&M!=='"'){M=l.escapeRegex(M),$.value+=M,H({value:M});continue}if(M==='"'){L.quotes=L.quotes===1?0:1,v.keepQuotes===!0&&K({type:"text",value:M});continue}if(M==="("){ae("parens"),K({type:"paren",value:M});continue}if(M===")"){if(L.parens===0&&v.strictBrackets===!0)throw new SyntaxError(_("opening","("));const Y=te[te.length-1];if(Y&&L.parens===Y.parens+1){Ae(te.pop());continue}K({type:"paren",value:M,output:L.parens?")":"\\)"}),_e("parens");continue}if(M==="["){if(v.nobracket===!0||!pe().includes("]")){if(v.nobracket!==!0&&v.strictBrackets===!0)throw new SyntaxError(_("closing","]"));M=`\\${M}`}else ae("brackets");K({type:"bracket",value:M});continue}if(M==="]"){if(v.nobracket===!0||$&&$.type==="bracket"&&$.value.length===1){K({type:"text",value:M,output:`\\${M}`});continue}if(L.brackets===0){if(v.strictBrackets===!0)throw new SyntaxError(_("opening","["));K({type:"text",value:M,output:`\\${M}`});continue}_e("brackets");const Y=$.value.slice(1);if($.posix!==!0&&Y[0]==="^"&&!Y.includes("/")&&(M=`/${M}`),$.value+=M,H({value:M}),v.literalBrackets===!1||l.hasRegexChars(Y))continue;const he=l.escapeRegex($.value);if(L.output=L.output.slice(0,-$.value.length),v.literalBrackets===!0){L.output+=he,$.value=he;continue}$.value=`(${R}${he}|${$.value})`,L.output+=$.value;continue}if(M==="{"&&v.nobrace!==!0){ae("braces");const Y={type:"brace",value:M,output:"(",outputIndex:L.output.length,tokensIndex:L.tokens.length};Z.push(Y),K(Y);continue}if(M==="}"){const Y=Z[Z.length-1];if(v.nobrace===!0||!Y){K({type:"text",value:M,output:M});continue}let he=")";if(Y.dots===!0){const Ce=S.slice(),Te=[];for(let Re=Ce.length-1;Re>=0&&(S.pop(),Ce[Re].type!=="brace");Re--)Ce[Re].type!=="dots"&&Te.unshift(Ce[Re].value);he=g(Te,v),L.backtrack=!0}if(Y.comma!==!0&&Y.dots!==!0){const Ce=L.output.slice(0,Y.outputIndex),Te=L.tokens.slice(Y.tokensIndex);Y.value=Y.output="\\{",M=he="\\}",L.output=Ce;for(const Re of Te)L.output+=Re.output||Re.value}K({type:"brace",value:M,output:he}),_e("braces"),Z.pop();continue}if(M==="|"){te.length>0&&te[te.length-1].conditions++,K({type:"text",value:M});continue}if(M===","){let Y=M;const he=Z[Z.length-1];he&&re[re.length-1]==="braces"&&(he.comma=!0,Y="|"),K({type:"comma",value:M,output:Y});continue}if(M==="/"){if($.type==="dot"&&L.index===L.start+1){L.start=L.index+1,L.consumed="",L.output="",S.pop(),$=E;continue}K({type:"slash",value:M,output:O});continue}if(M==="."){if(L.braces>0&&$.type==="dot"){$.value==="."&&($.output=I);const Y=Z[Z.length-1];$.type="dots",$.output+=M,$.value+=M,Y.dots=!0;continue}if(L.braces+L.parens===0&&$.type!=="bos"&&$.type!=="slash"){K({type:"text",value:M,output:I});continue}K({type:"dot",value:M,output:I});continue}if(M==="?"){if(!($&&$.value==="(")&&v.noextglob!==!0&&ie()==="("&&ie(2)!=="?"){me("qmark",M);continue}if($&&$.type==="paren"){const he=ie();let Ce=M;if(he==="<"&&!l.supportsLookbehinds())throw new Error("Node.js v10 or higher is required for regex lookbehinds");($.value==="("&&!/[!=<:]/.test(he)||he==="<"&&!/<([!=]|\w+>)/.test(pe()))&&(Ce=`\\${M}`),K({type:"text",value:M,output:Ce});continue}if(v.dot!==!0&&($.type==="slash"||$.type==="bos")){K({type:"qmark",value:M,output:J});continue}K({type:"qmark",value:M,output:B});continue}if(M==="!"){if(v.noextglob!==!0&&ie()==="("&&(ie(2)!=="?"||!/[!=<:]/.test(ie(3)))){me("negate",M);continue}if(v.nonegate!==!0&&L.index===0){be();continue}}if(M==="+"){if(v.noextglob!==!0&&ie()==="("&&ie(2)!=="?"){me("plus",M);continue}if($&&$.value==="("||v.regex===!1){K({type:"plus",value:M,output:z});continue}if($&&($.type==="bracket"||$.type==="paren"||$.type==="brace")||L.parens>0){K({type:"plus",value:M});continue}K({type:"plus",value:z});continue}if(M==="@"){if(v.noextglob!==!0&&ie()==="("&&ie(2)!=="?"){K({type:"at",extglob:!0,value:M,output:""});continue}K({type:"text",value:M});continue}if(M!=="*"){(M==="$"||M==="^")&&(M=`\\${M}`);const Y=h.exec(pe());Y&&(M+=Y[0],L.index+=Y[0].length),K({type:"text",value:M});continue}if($&&($.type==="globstar"||$.star===!0)){$.type="star",$.star=!0,$.value+=M,$.output=ee,L.backtrack=!0,L.globstar=!0,ue(M);continue}let Q=pe();if(v.noextglob!==!0&&/^\([^?]/.test(Q)){me("star",M);continue}if($.type==="star"){if(v.noglobstar===!0){ue(M);continue}const Y=$.prev,he=Y.prev,Ce=Y.type==="slash"||Y.type==="bos",Te=he&&(he.type==="star"||he.type==="globstar");if(v.bash===!0&&(!Ce||Q[0]&&Q[0]!=="/")){K({type:"star",value:M,output:""});continue}const Re=L.braces>0&&(Y.type==="comma"||Y.type==="brace"),qr=te.length&&(Y.type==="pipe"||Y.type==="paren");if(!Ce&&Y.type!=="paren"&&!Re&&!qr){K({type:"star",value:M,output:""});continue}for(;Q.slice(0,3)==="/**";){const Qt=b[L.index+4];if(Qt&&Qt!=="/")break;Q=Q.slice(3),ue("/**",3)}if(Y.type==="bos"&&oe()){$.type="globstar",$.value+=M,$.output=D(v),L.output=$.output,L.globstar=!0,ue(M);continue}if(Y.type==="slash"&&Y.prev.type!=="bos"&&!Te&&oe()){L.output=L.output.slice(0,-(Y.output+$.output).length),Y.output=`(?:${Y.output}`,$.type="globstar",$.output=D(v)+(v.strictSlashes?")":"|$)"),$.value+=M,L.globstar=!0,L.output+=Y.output+$.output,ue(M);continue}if(Y.type==="slash"&&Y.prev.type!=="bos"&&Q[0]==="/"){const Qt=Q[1]!==void 0?"|$":"";L.output=L.output.slice(0,-(Y.output+$.output).length),Y.output=`(?:${Y.output}`,$.type="globstar",$.output=`${D(v)}${O}|${O}${Qt})`,$.value+=M,L.output+=Y.output+$.output,L.globstar=!0,ue(M+fe()),K({type:"slash",value:"/",output:""});continue}if(Y.type==="bos"&&Q[0]==="/"){$.type="globstar",$.value+=M,$.output=`(?:^|${O}|${D(v)}${O})`,L.output=$.output,L.globstar=!0,ue(M+fe()),K({type:"slash",value:"/",output:""});continue}L.output=L.output.slice(0,-$.output.length),$.type="globstar",$.output=D(v),$.value+=M,L.output+=$.output,L.globstar=!0,ue(M);continue}const se={type:"star",value:M,output:ee};if(v.bash===!0){se.output=".*?",($.type==="bos"||$.type==="slash")&&(se.output=X+se.output),K(se);continue}if($&&($.type==="bracket"||$.type==="paren")&&v.regex===!0){se.output=M,K(se);continue}(L.index===L.start||$.type==="slash"||$.type==="dot")&&($.type==="dot"?(L.output+=V,$.output+=V):v.dot===!0?(L.output+=G,$.output+=G):(L.output+=X,$.output+=X),ie()!=="*"&&(L.output+=W,$.output+=W)),K(se)}for(;L.brackets>0;){if(v.strictBrackets===!0)throw new SyntaxError(_("closing","]"));L.output=l.escapeLast(L.output,"["),_e("brackets")}for(;L.parens>0;){if(v.strictBrackets===!0)throw new SyntaxError(_("closing",")"));L.output=l.escapeLast(L.output,"("),_e("parens")}for(;L.braces>0;){if(v.strictBrackets===!0)throw new SyntaxError(_("closing","}"));L.output=l.escapeLast(L.output,"{"),_e("braces")}if(v.strictSlashes!==!0&&($.type==="star"||$.type==="bracket")&&K({type:"maybe_slash",value:"",output:`${O}?`}),L.backtrack===!0){L.output="";for(const Q of L.tokens)L.output+=Q.output!=null?Q.output:Q.value,Q.suffix&&(L.output+=Q.suffix)}return L};y.fastpaths=(b,C)=>{const v={...C},j=typeof v.maxLength=="number"?Math.min(u,v.maxLength):u,P=b.length;if(P>j)throw new SyntaxError(`Input length: ${P}, exceeds maximum allowed length: ${j}`);b=f[b]||b;const E=l.isWindows(C),{DOT_LITERAL:S,SLASH_LITERAL:R,ONE_CHAR:T,DOTS_SLASH:w,NO_DOT:N,NO_DOTS:I,NO_DOTS_SLASH:z,STAR:O,START_ANCHOR:W}=c.globChars(E),q=v.dot?I:N,F=v.dot?z:N,V=v.capture?"":"?:",G={negated:!1,prefix:""};let B=v.bash===!0?".*?":O;v.capture&&(B=`(${B})`);const J=X=>X.noglobstar===!0?B:`(${V}(?:(?!${W}${X.dot?w:S}).)*?)`,A=X=>{switch(X){case"*":return`${q}${T}${B}`;case".*":return`${S}${T}${B}`;case"*.*":return`${q}${B}${S}${T}${B}`;case"*/*":return`${q}${B}${R}${T}${F}${B}`;case"**":return q+J(v);case"**/*":return`(?:${q}${J(v)}${R})?${F}${T}${B}`;case"**/*.*":return`(?:${q}${J(v)}${R})?${F}${B}${S}${T}${B}`;case"**/.*":return`(?:${q}${J(v)}${R})?${S}${T}${B}`;default:{const ne=/^(.*?)\.(\w+)$/.exec(X);if(!ne)return;const ee=A(ne[1]);return ee?ee+S+ne[2]:void 0}}},k=l.removePrefix(b,G);let D=A(k);return D&&v.strictSlashes!==!0&&(D+=`${R}?`),D},s.exports=y},683:(s,a,i)=>{const c=i(17),l=i(700),u=i(754),p=i(513),h=i(356),d=g=>g&&typeof g=="object"&&!Array.isArray(g),f=(g,_,y=!1)=>{if(Array.isArray(g)){const R=g.map(w=>f(w,_,y));return w=>{for(const N of R){const I=N(w);if(I)return I}return!1}}const b=d(g)&&g.tokens&&g.input;if(g===""||typeof g!="string"&&!b)throw new TypeError("Expected pattern to be a non-empty string");const C=_||{},v=p.isWindows(_),j=b?f.compileRe(g,_):f.makeRe(g,_,!1,!0),P=j.state;delete j.state;let E=()=>!1;if(C.ignore){const R={..._,ignore:null,onMatch:null,onResult:null};E=f(C.ignore,R,y)}const S=(R,T=!1)=>{const{isMatch:w,match:N,output:I}=f.test(R,j,_,{glob:g,posix:v}),z={glob:g,state:P,regex:j,posix:v,input:R,output:I,match:N,isMatch:w};return typeof C.onResult=="function"&&C.onResult(z),w===!1?(z.isMatch=!1,T?z:!1):E(R)?(typeof C.onIgnore=="function"&&C.onIgnore(z),z.isMatch=!1,T?z:!1):(typeof C.onMatch=="function"&&C.onMatch(z),T?z:!0)};return y&&(S.state=P),S};f.test=(g,_,y,{glob:b,posix:C}={})=>{if(typeof g!="string")throw new TypeError("Expected input to be a string");if(g==="")return{isMatch:!1,output:""};const v=y||{},j=v.format||(C?p.toPosixSlashes:null);let P=g===b,E=P&&j?j(g):g;return P===!1&&(E=j?j(g):g,P=E===b),(P===!1||v.capture===!0)&&(v.matchBase===!0||v.basename===!0?P=f.matchBase(g,_,y,C):P=_.exec(E)),{isMatch:!!P,match:P,output:E}},f.matchBase=(g,_,y,b=p.isWindows(y))=>(_ instanceof RegExp?_:f.makeRe(_,y)).test(c.basename(g)),f.isMatch=(g,_,y)=>f(_,y)(g),f.parse=(g,_)=>Array.isArray(g)?g.map(y=>f.parse(y,_)):u(g,{..._,fastpaths:!1}),f.scan=(g,_)=>l(g,_),f.compileRe=(g,_,y=!1,b=!1)=>{if(y===!0)return g.output;const C=_||{},v=C.contains?"":"^",j=C.contains?"":"$";let P=`${v}(?:${g.output})${j}`;g&&g.negated===!0&&(P=`^(?!${P}).*$`);const E=f.toRegex(P,_);return b===!0&&(E.state=g),E},f.makeRe=(g,_,y=!1,b=!1)=>{if(!g||typeof g!="string")throw new TypeError("Expected a non-empty string");const C=_||{};let v={negated:!1,fastpaths:!0},j="",P;return g.startsWith("./")&&(g=g.slice(2),j=v.prefix="./"),C.fastpaths!==!1&&(g[0]==="."||g[0]==="*")&&(P=u.fastpaths(g,_)),P===void 0?(v=u(g,_),v.prefix=j+(v.prefix||"")):v.output=P,f.compileRe(v,_,y,b)},f.toRegex=(g,_)=>{try{const y=_||{};return new RegExp(g,y.flags||(y.nocase?"i":""))}catch(y){if(_&&_.debug===!0)throw y;return/$^/}},f.constants=h,s.exports=f},700:(s,a,i)=>{const c=i(513),{CHAR_ASTERISK:l,CHAR_AT:u,CHAR_BACKWARD_SLASH:p,CHAR_COMMA:h,CHAR_DOT:d,CHAR_EXCLAMATION_MARK:f,CHAR_FORWARD_SLASH:g,CHAR_LEFT_CURLY_BRACE:_,CHAR_LEFT_PARENTHESES:y,CHAR_LEFT_SQUARE_BRACKET:b,CHAR_PLUS:C,CHAR_QUESTION_MARK:v,CHAR_RIGHT_CURLY_BRACE:j,CHAR_RIGHT_PARENTHESES:P,CHAR_RIGHT_SQUARE_BRACKET:E}=i(356),S=w=>w===g||w===p,R=w=>{w.isPrefix!==!0&&(w.depth=w.isGlobstar?1/0:1)},T=(w,N)=>{const I=N||{},z=w.length-1,O=I.parts===!0||I.scanToEnd===!0,W=[],q=[],F=[];let V=w,G=-1,B=0,J=0,A=!1,k=!1,D=!1,X=!1,ne=!1,ee=!1,L=!1,te=!1,Z=!1,re=0,$,M,oe={value:"",depth:0,isGlob:!1};const ie=()=>G>=z,fe=()=>V.charCodeAt(G+1),pe=()=>($=M,V.charCodeAt(++G));for(;G<z;){M=pe();let _e;if(M===p){L=oe.backslashes=!0,M=pe(),M===_&&(ee=!0);continue}if(ee===!0||M===_){for(re++;ie()!==!0&&(M=pe());){if(M===p){L=oe.backslashes=!0,pe();continue}if(M===_){re++;continue}if(ee!==!0&&M===d&&(M=pe())===d){if(A=oe.isBrace=!0,D=oe.isGlob=!0,Z=!0,O===!0)continue;break}if(ee!==!0&&M===h){if(A=oe.isBrace=!0,D=oe.isGlob=!0,Z=!0,O===!0)continue;break}if(M===j&&(re--,re===0)){ee=!1,A=oe.isBrace=!0,Z=!0;break}}if(O===!0)continue;break}if(M===g){if(W.push(G),q.push(oe),oe={value:"",depth:0,isGlob:!1},Z===!0)continue;if($===d&&G===B+1){B+=2;continue}J=G+1;continue}if(I.noext!==!0&&(M===C||M===u||M===l||M===v||M===f)===!0&&fe()===y){if(D=oe.isGlob=!0,X=oe.isExtglob=!0,Z=!0,O===!0){for(;ie()!==!0&&(M=pe());){if(M===p){L=oe.backslashes=!0,M=pe();continue}if(M===P){D=oe.isGlob=!0,Z=!0;break}}continue}break}if(M===l){if($===l&&(ne=oe.isGlobstar=!0),D=oe.isGlob=!0,Z=!0,O===!0)continue;break}if(M===v){if(D=oe.isGlob=!0,Z=!0,O===!0)continue;break}if(M===b){for(;ie()!==!0&&(_e=pe());){if(_e===p){L=oe.backslashes=!0,pe();continue}if(_e===E){k=oe.isBracket=!0,D=oe.isGlob=!0,Z=!0;break}}if(O===!0)continue;break}if(I.nonegate!==!0&&M===f&&G===B){te=oe.negated=!0,B++;continue}if(I.noparen!==!0&&M===y){if(D=oe.isGlob=!0,O===!0){for(;ie()!==!0&&(M=pe());){if(M===y){L=oe.backslashes=!0,M=pe();continue}if(M===P){Z=!0;break}}continue}break}if(D===!0){if(Z=!0,O===!0)continue;break}}I.noext===!0&&(X=!1,D=!1);let ue=V,H="",be="";B>0&&(H=V.slice(0,B),V=V.slice(B),J-=B),ue&&D===!0&&J>0?(ue=V.slice(0,J),be=V.slice(J)):D===!0?(ue="",be=V):ue=V,ue&&ue!==""&&ue!=="/"&&ue!==V&&S(ue.charCodeAt(ue.length-1))&&(ue=ue.slice(0,-1)),I.unescape===!0&&(be&&(be=c.removeBackslashes(be)),ue&&L===!0&&(ue=c.removeBackslashes(ue)));const ae={prefix:H,input:w,start:B,base:ue,glob:be,isBrace:A,isBracket:k,isGlob:D,isExtglob:X,isGlobstar:ne,negated:te};if(I.tokens===!0&&(ae.maxDepth=0,S(M)||q.push(oe),ae.tokens=q),I.parts===!0||I.tokens===!0){let _e;for(let K=0;K<W.length;K++){const me=_e?_e+1:B,Ae=W[K],Q=w.slice(me,Ae);I.tokens&&(K===0&&B!==0?(q[K].isPrefix=!0,q[K].value=H):q[K].value=Q,R(q[K]),ae.maxDepth+=q[K].depth),(K!==0||Q!=="")&&F.push(Q),_e=Ae}if(_e&&_e+1<w.length){const K=w.slice(_e+1);F.push(K),I.tokens&&(q[q.length-1].value=K,R(q[q.length-1]),ae.maxDepth+=q[q.length-1].depth)}ae.slashes=W,ae.parts=F}return ae};s.exports=T},513:(s,a,i)=>{const c=i(17),l=process.platform==="win32",{REGEX_BACKSLASH:u,REGEX_REMOVE_BACKSLASH:p,REGEX_SPECIAL_CHARS:h,REGEX_SPECIAL_CHARS_GLOBAL:d}=i(356);a.isObject=f=>f!==null&&typeof f=="object"&&!Array.isArray(f),a.hasRegexChars=f=>h.test(f),a.isRegexChar=f=>f.length===1&&a.hasRegexChars(f),a.escapeRegex=f=>f.replace(d,"\\$1"),a.toPosixSlashes=f=>f.replace(u,"/"),a.removeBackslashes=f=>f.replace(p,g=>g==="\\"?"":g),a.supportsLookbehinds=()=>{const f=process.version.slice(1).split(".").map(Number);return f.length===3&&f[0]>=9||f[0]===8&&f[1]>=10},a.isWindows=f=>f&&typeof f.windows=="boolean"?f.windows:l===!0||c.sep==="\\",a.escapeLast=(f,g,_)=>{const y=f.lastIndexOf(g,_);return y===-1?f:f[y-1]==="\\"?a.escapeLast(f,g,y-1):`${f.slice(0,y)}\\${f.slice(y)}`},a.removePrefix=(f,g={})=>{let _=f;return _.startsWith("./")&&(_=_.slice(2),g.prefix="./"),_},a.wrapOutput=(f,g={},_={})=>{const y=_.contains?"":"^",b=_.contains?"":"$";let C=`${y}(?:${f})${b}`;return g.negated===!0&&(C=`(?:^(?!${C}).*$)`),C}},492:(s,a,i)=>{/*!
35
+ */s.exports=function(i){return typeof i=="number"?i-i===0:typeof i=="string"&&i.trim()!==""?Number.isFinite?Number.isFinite(+i):isFinite(+i):!1}},971:(s,i,a)=>{const c=a(837),l=a(333),u=a(251),f=a(513),h=p=>p===""||p==="./",d=(p,g,y)=>{g=[].concat(g),p=[].concat(p);let _=new Set,b=new Set,C=new Set,v=0,j=S=>{C.add(S.output),y&&y.onResult&&y.onResult(S)};for(let S=0;S<g.length;S++){let R=u(String(g[S]),{...y,onResult:j},!0),T=R.state.negated||R.state.negatedExtglob;T&&v++;for(let w of p){let I=R(w,!0);(T?!I.isMatch:I.isMatch)&&(T?_.add(I.output):(_.delete(I.output),b.add(I.output)))}}let E=(v===g.length?[...C]:[...b]).filter(S=>!_.has(S));if(y&&E.length===0){if(y.failglob===!0)throw new Error(`No matches found for "${g.join(", ")}"`);if(y.nonull===!0||y.nullglob===!0)return y.unescape?g.map(S=>S.replace(/\\/g,"")):g}return E};d.match=d,d.matcher=(p,g)=>u(p,g),d.isMatch=(p,g,y)=>u(g,y)(p),d.any=d.isMatch,d.not=(p,g,y={})=>{g=[].concat(g).map(String);let _=new Set,b=[],v=d(p,g,{...y,onResult:j=>{y.onResult&&y.onResult(j),b.push(j.output)}});for(let j of b)v.includes(j)||_.add(j);return[..._]},d.contains=(p,g,y)=>{if(typeof p!="string")throw new TypeError(`Expected a string: "${c.inspect(p)}"`);if(Array.isArray(g))return g.some(_=>d.contains(p,_,y));if(typeof g=="string"){if(h(p)||h(g))return!1;if(p.includes(g)||p.startsWith("./")&&p.slice(2).includes(g))return!0}return d.isMatch(p,g,{...y,contains:!0})},d.matchKeys=(p,g,y)=>{if(!f.isObject(p))throw new TypeError("Expected the first argument to be an object");let _=d(Object.keys(p),g,y),b={};for(let C of _)b[C]=p[C];return b},d.some=(p,g,y)=>{let _=[].concat(p);for(let b of[].concat(g)){let C=u(String(b),y);if(_.some(v=>C(v)))return!0}return!1},d.every=(p,g,y)=>{let _=[].concat(p);for(let b of[].concat(g)){let C=u(String(b),y);if(!_.every(v=>C(v)))return!1}return!0},d.all=(p,g,y)=>{if(typeof p!="string")throw new TypeError(`Expected a string: "${c.inspect(p)}"`);return[].concat(g).every(_=>u(_,y)(p))},d.capture=(p,g,y)=>{let _=f.isWindows(y),C=u.makeRe(String(p),{...y,capture:!0}).exec(_?f.toPosixSlashes(g):g);if(C)return C.slice(1).map(v=>v===void 0?"":v)},d.makeRe=(...p)=>u.makeRe(...p),d.scan=(...p)=>u.scan(...p),d.parse=(p,g)=>{let y=[];for(let _ of[].concat(p||[]))for(let b of l(String(_),g))y.push(u.parse(b,g));return y},d.braces=(p,g)=>{if(typeof p!="string")throw new TypeError("Expected a string");return g&&g.nobrace===!0||!/\{.*\}/.test(p)?[p]:l(p,g)},d.braceExpand=(p,g)=>{if(typeof p!="string")throw new TypeError("Expected a string");return d.braces(p,{...g,expand:!0})},s.exports=d},251:(s,i,a)=>{s.exports=a(683)},356:(s,i,a)=>{const c=a(17),l="\\\\/",u=`[^${l}]`,f="\\.",h="\\+",d="\\?",p="\\/",g="(?=.)",y="[^/]",_=`(?:${p}|$)`,b=`(?:^|${p})`,C=`${f}{1,2}${_}`,v=`(?!${f})`,j=`(?!${b}${C})`,P=`(?!${f}{0,1}${_})`,E=`(?!${C})`,S=`[^.${p}]`,R=`${y}*?`,T={DOT_LITERAL:f,PLUS_LITERAL:h,QMARK_LITERAL:d,SLASH_LITERAL:p,ONE_CHAR:g,QMARK:y,END_ANCHOR:_,DOTS_SLASH:C,NO_DOT:v,NO_DOTS:j,NO_DOT_SLASH:P,NO_DOTS_SLASH:E,QMARK_NO_DOT:S,STAR:R,START_ANCHOR:b},w={...T,SLASH_LITERAL:`[${l}]`,QMARK:u,STAR:`${u}*?`,DOTS_SLASH:`${f}{1,2}(?:[${l}]|$)`,NO_DOT:`(?!${f})`,NO_DOTS:`(?!(?:^|[${l}])${f}{1,2}(?:[${l}]|$))`,NO_DOT_SLASH:`(?!${f}{0,1}(?:[${l}]|$))`,NO_DOTS_SLASH:`(?!${f}{1,2}(?:[${l}]|$))`,QMARK_NO_DOT:`[^.${l}]`,START_ANCHOR:`(?:^|[${l}])`,END_ANCHOR:`(?:[${l}]|$)`},I={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"};s.exports={MAX_LENGTH:65536,POSIX_REGEX_SOURCE:I,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?w:T}}},754:(s,i,a)=>{const c=a(356),l=a(513),{MAX_LENGTH:u,POSIX_REGEX_SOURCE:f,REGEX_NON_SPECIAL_CHARS:h,REGEX_SPECIAL_CHARS_BACKREF:d,REPLACEMENTS:p}=c,g=(b,C)=>{if(typeof C.expandRange=="function")return C.expandRange(...b,C);b.sort();const v=`[${b.join("-")}]`;try{new RegExp(v)}catch{return b.map(P=>l.escapeRegex(P)).join("..")}return v},y=(b,C)=>`Missing ${b}: "${C}" - use "\\\\${C}" to match literal characters`,_=(b,C)=>{if(typeof b!="string")throw new TypeError("Expected a string");b=p[b]||b;const v={...C},j=typeof v.maxLength=="number"?Math.min(u,v.maxLength):u;let P=b.length;if(P>j)throw new SyntaxError(`Input length: ${P}, exceeds maximum allowed length: ${j}`);const E={type:"bos",value:"",output:v.prepend||""},S=[E],R=v.capture?"":"?:",T=l.isWindows(C),w=c.globChars(T),I=c.extglobChars(w),{DOT_LITERAL:N,PLUS_LITERAL:z,SLASH_LITERAL:k,ONE_CHAR:U,DOTS_SLASH:q,NO_DOT:B,NO_DOT_SLASH:V,NO_DOTS_SLASH:G,QMARK:F,QMARK_NO_DOT:J,STAR:A,START_ANCHOR:O}=w,D=Q=>`(${R}(?:(?!${O}${Q.dot?q:N}).)*?)`,X=v.dot?"":B,ne=v.dot?F:J;let ee=v.bash===!0?D(v):A;v.capture&&(ee=`(${ee})`),typeof v.noext=="boolean"&&(v.noextglob=v.noext);const M={input:b,index:-1,start:0,dot:v.dot===!0,consumed:"",output:"",prefix:"",backtrack:!1,negated:!1,brackets:0,braces:0,parens:0,quotes:0,globstar:!1,tokens:S};b=l.removePrefix(b,M),P=b.length;const te=[],Z=[],re=[];let $=E,L;const oe=()=>M.index===P-1,ae=M.peek=(Q=1)=>b[M.index+Q],fe=M.advance=()=>b[++M.index],pe=()=>b.slice(M.index+1),ue=(Q="",se=0)=>{M.consumed+=Q,M.index+=se},H=Q=>{M.output+=Q.output!=null?Q.output:Q.value,ue(Q.value)},be=()=>{let Q=1;for(;ae()==="!"&&(ae(2)!=="("||ae(3)==="?");)fe(),M.start++,Q++;return Q%2===0?!1:(M.negated=!0,M.start++,!0)},ie=Q=>{M[Q]++,re.push(Q)},_e=Q=>{M[Q]--,re.pop()},K=Q=>{if($.type==="globstar"){const se=M.braces>0&&(Q.type==="comma"||Q.type==="brace"),Y=Q.extglob===!0||te.length&&(Q.type==="pipe"||Q.type==="paren");Q.type!=="slash"&&Q.type!=="paren"&&!se&&!Y&&(M.output=M.output.slice(0,-$.output.length),$.type="star",$.value="*",$.output=ee,M.output+=$.output)}if(te.length&&Q.type!=="paren"&&!I[Q.value]&&(te[te.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=$,S.push(Q),$=Q},me=(Q,se)=>{const Y={...I[se],conditions:1,inner:""};Y.prev=$,Y.parens=M.parens,Y.output=M.output;const he=(v.capture?"(":"")+Y.open;ie("parens"),K({type:Q,value:se,output:M.output?"":U}),K({type:"paren",extglob:!0,value:fe(),output:he}),te.push(Y)},Ae=Q=>{let se=Q.close+(v.capture?")":"");if(Q.type==="negate"){let Y=ee;Q.inner&&Q.inner.length>1&&Q.inner.includes("/")&&(Y=D(v)),(Y!==ee||oe()||/^\)+$/.test(pe()))&&(se=Q.close=`)$))${Y}`),Q.prev.type==="bos"&&(M.negatedExtglob=!0)}K({type:"paren",extglob:!0,value:L,output:se}),_e("parens")};if(v.fastpaths!==!1&&!/(^[*!]|[/()[\]{}"])/.test(b)){let Q=!1,se=b.replace(d,(Y,he,Ce,Te,Re,Wr)=>Te==="\\"?(Q=!0,Y):Te==="?"?he?he+Te+(Re?F.repeat(Re.length):""):Wr===0?ne+(Re?F.repeat(Re.length):""):F.repeat(Ce.length):Te==="."?N.repeat(Ce.length):Te==="*"?he?he+Te+(Re?ee:""):ee:he?Y:`\\${Y}`);return Q===!0&&(v.unescape===!0?se=se.replace(/\\/g,""):se=se.replace(/\\+/g,Y=>Y.length%2===0?"\\\\":Y?"\\":"")),se===b&&v.contains===!0?(M.output=b,M):(M.output=l.wrapOutput(se,M,C),M)}for(;!oe();){if(L=fe(),L==="\0")continue;if(L==="\\"){const Y=ae();if(Y==="/"&&v.bash!==!0||Y==="."||Y===";")continue;if(!Y){L+="\\",K({type:"text",value:L});continue}const he=/^\\+/.exec(pe());let Ce=0;if(he&&he[0].length>2&&(Ce=he[0].length,M.index+=Ce,Ce%2!==0&&(L+="\\")),v.unescape===!0?L=fe()||"":L+=fe()||"",M.brackets===0){K({type:"text",value:L});continue}}if(M.brackets>0&&(L!=="]"||$.value==="["||$.value==="[^")){if(v.posix!==!1&&L===":"){const Y=$.value.slice(1);if(Y.includes("[")&&($.posix=!0,Y.includes(":"))){const he=$.value.lastIndexOf("["),Ce=$.value.slice(0,he),Te=$.value.slice(he+2),Re=f[Te];if(Re){$.value=Ce+Re,M.backtrack=!0,fe(),!E.output&&S.indexOf($)===1&&(E.output=U);continue}}}(L==="["&&ae()!==":"||L==="-"&&ae()==="]")&&(L=`\\${L}`),L==="]"&&($.value==="["||$.value==="[^")&&(L=`\\${L}`),v.posix===!0&&L==="!"&&$.value==="["&&(L="^"),$.value+=L,H({value:L});continue}if(M.quotes===1&&L!=='"'){L=l.escapeRegex(L),$.value+=L,H({value:L});continue}if(L==='"'){M.quotes=M.quotes===1?0:1,v.keepQuotes===!0&&K({type:"text",value:L});continue}if(L==="("){ie("parens"),K({type:"paren",value:L});continue}if(L===")"){if(M.parens===0&&v.strictBrackets===!0)throw new SyntaxError(y("opening","("));const Y=te[te.length-1];if(Y&&M.parens===Y.parens+1){Ae(te.pop());continue}K({type:"paren",value:L,output:M.parens?")":"\\)"}),_e("parens");continue}if(L==="["){if(v.nobracket===!0||!pe().includes("]")){if(v.nobracket!==!0&&v.strictBrackets===!0)throw new SyntaxError(y("closing","]"));L=`\\${L}`}else ie("brackets");K({type:"bracket",value:L});continue}if(L==="]"){if(v.nobracket===!0||$&&$.type==="bracket"&&$.value.length===1){K({type:"text",value:L,output:`\\${L}`});continue}if(M.brackets===0){if(v.strictBrackets===!0)throw new SyntaxError(y("opening","["));K({type:"text",value:L,output:`\\${L}`});continue}_e("brackets");const Y=$.value.slice(1);if($.posix!==!0&&Y[0]==="^"&&!Y.includes("/")&&(L=`/${L}`),$.value+=L,H({value:L}),v.literalBrackets===!1||l.hasRegexChars(Y))continue;const he=l.escapeRegex($.value);if(M.output=M.output.slice(0,-$.value.length),v.literalBrackets===!0){M.output+=he,$.value=he;continue}$.value=`(${R}${he}|${$.value})`,M.output+=$.value;continue}if(L==="{"&&v.nobrace!==!0){ie("braces");const Y={type:"brace",value:L,output:"(",outputIndex:M.output.length,tokensIndex:M.tokens.length};Z.push(Y),K(Y);continue}if(L==="}"){const Y=Z[Z.length-1];if(v.nobrace===!0||!Y){K({type:"text",value:L,output:L});continue}let he=")";if(Y.dots===!0){const Ce=S.slice(),Te=[];for(let Re=Ce.length-1;Re>=0&&(S.pop(),Ce[Re].type!=="brace");Re--)Ce[Re].type!=="dots"&&Te.unshift(Ce[Re].value);he=g(Te,v),M.backtrack=!0}if(Y.comma!==!0&&Y.dots!==!0){const Ce=M.output.slice(0,Y.outputIndex),Te=M.tokens.slice(Y.tokensIndex);Y.value=Y.output="\\{",L=he="\\}",M.output=Ce;for(const Re of Te)M.output+=Re.output||Re.value}K({type:"brace",value:L,output:he}),_e("braces"),Z.pop();continue}if(L==="|"){te.length>0&&te[te.length-1].conditions++,K({type:"text",value:L});continue}if(L===","){let Y=L;const he=Z[Z.length-1];he&&re[re.length-1]==="braces"&&(he.comma=!0,Y="|"),K({type:"comma",value:L,output:Y});continue}if(L==="/"){if($.type==="dot"&&M.index===M.start+1){M.start=M.index+1,M.consumed="",M.output="",S.pop(),$=E;continue}K({type:"slash",value:L,output:k});continue}if(L==="."){if(M.braces>0&&$.type==="dot"){$.value==="."&&($.output=N);const Y=Z[Z.length-1];$.type="dots",$.output+=L,$.value+=L,Y.dots=!0;continue}if(M.braces+M.parens===0&&$.type!=="bos"&&$.type!=="slash"){K({type:"text",value:L,output:N});continue}K({type:"dot",value:L,output:N});continue}if(L==="?"){if(!($&&$.value==="(")&&v.noextglob!==!0&&ae()==="("&&ae(2)!=="?"){me("qmark",L);continue}if($&&$.type==="paren"){const he=ae();let Ce=L;if(he==="<"&&!l.supportsLookbehinds())throw new Error("Node.js v10 or higher is required for regex lookbehinds");($.value==="("&&!/[!=<:]/.test(he)||he==="<"&&!/<([!=]|\w+>)/.test(pe()))&&(Ce=`\\${L}`),K({type:"text",value:L,output:Ce});continue}if(v.dot!==!0&&($.type==="slash"||$.type==="bos")){K({type:"qmark",value:L,output:J});continue}K({type:"qmark",value:L,output:F});continue}if(L==="!"){if(v.noextglob!==!0&&ae()==="("&&(ae(2)!=="?"||!/[!=<:]/.test(ae(3)))){me("negate",L);continue}if(v.nonegate!==!0&&M.index===0){be();continue}}if(L==="+"){if(v.noextglob!==!0&&ae()==="("&&ae(2)!=="?"){me("plus",L);continue}if($&&$.value==="("||v.regex===!1){K({type:"plus",value:L,output:z});continue}if($&&($.type==="bracket"||$.type==="paren"||$.type==="brace")||M.parens>0){K({type:"plus",value:L});continue}K({type:"plus",value:z});continue}if(L==="@"){if(v.noextglob!==!0&&ae()==="("&&ae(2)!=="?"){K({type:"at",extglob:!0,value:L,output:""});continue}K({type:"text",value:L});continue}if(L!=="*"){(L==="$"||L==="^")&&(L=`\\${L}`);const Y=h.exec(pe());Y&&(L+=Y[0],M.index+=Y[0].length),K({type:"text",value:L});continue}if($&&($.type==="globstar"||$.star===!0)){$.type="star",$.star=!0,$.value+=L,$.output=ee,M.backtrack=!0,M.globstar=!0,ue(L);continue}let Q=pe();if(v.noextglob!==!0&&/^\([^?]/.test(Q)){me("star",L);continue}if($.type==="star"){if(v.noglobstar===!0){ue(L);continue}const Y=$.prev,he=Y.prev,Ce=Y.type==="slash"||Y.type==="bos",Te=he&&(he.type==="star"||he.type==="globstar");if(v.bash===!0&&(!Ce||Q[0]&&Q[0]!=="/")){K({type:"star",value:L,output:""});continue}const Re=M.braces>0&&(Y.type==="comma"||Y.type==="brace"),Wr=te.length&&(Y.type==="pipe"||Y.type==="paren");if(!Ce&&Y.type!=="paren"&&!Re&&!Wr){K({type:"star",value:L,output:""});continue}for(;Q.slice(0,3)==="/**";){const tr=b[M.index+4];if(tr&&tr!=="/")break;Q=Q.slice(3),ue("/**",3)}if(Y.type==="bos"&&oe()){$.type="globstar",$.value+=L,$.output=D(v),M.output=$.output,M.globstar=!0,ue(L);continue}if(Y.type==="slash"&&Y.prev.type!=="bos"&&!Te&&oe()){M.output=M.output.slice(0,-(Y.output+$.output).length),Y.output=`(?:${Y.output}`,$.type="globstar",$.output=D(v)+(v.strictSlashes?")":"|$)"),$.value+=L,M.globstar=!0,M.output+=Y.output+$.output,ue(L);continue}if(Y.type==="slash"&&Y.prev.type!=="bos"&&Q[0]==="/"){const tr=Q[1]!==void 0?"|$":"";M.output=M.output.slice(0,-(Y.output+$.output).length),Y.output=`(?:${Y.output}`,$.type="globstar",$.output=`${D(v)}${k}|${k}${tr})`,$.value+=L,M.output+=Y.output+$.output,M.globstar=!0,ue(L+fe()),K({type:"slash",value:"/",output:""});continue}if(Y.type==="bos"&&Q[0]==="/"){$.type="globstar",$.value+=L,$.output=`(?:^|${k}|${D(v)}${k})`,M.output=$.output,M.globstar=!0,ue(L+fe()),K({type:"slash",value:"/",output:""});continue}M.output=M.output.slice(0,-$.output.length),$.type="globstar",$.output=D(v),$.value+=L,M.output+=$.output,M.globstar=!0,ue(L);continue}const se={type:"star",value:L,output:ee};if(v.bash===!0){se.output=".*?",($.type==="bos"||$.type==="slash")&&(se.output=X+se.output),K(se);continue}if($&&($.type==="bracket"||$.type==="paren")&&v.regex===!0){se.output=L,K(se);continue}(M.index===M.start||$.type==="slash"||$.type==="dot")&&($.type==="dot"?(M.output+=V,$.output+=V):v.dot===!0?(M.output+=G,$.output+=G):(M.output+=X,$.output+=X),ae()!=="*"&&(M.output+=U,$.output+=U)),K(se)}for(;M.brackets>0;){if(v.strictBrackets===!0)throw new SyntaxError(y("closing","]"));M.output=l.escapeLast(M.output,"["),_e("brackets")}for(;M.parens>0;){if(v.strictBrackets===!0)throw new SyntaxError(y("closing",")"));M.output=l.escapeLast(M.output,"("),_e("parens")}for(;M.braces>0;){if(v.strictBrackets===!0)throw new SyntaxError(y("closing","}"));M.output=l.escapeLast(M.output,"{"),_e("braces")}if(v.strictSlashes!==!0&&($.type==="star"||$.type==="bracket")&&K({type:"maybe_slash",value:"",output:`${k}?`}),M.backtrack===!0){M.output="";for(const Q of M.tokens)M.output+=Q.output!=null?Q.output:Q.value,Q.suffix&&(M.output+=Q.suffix)}return M};_.fastpaths=(b,C)=>{const v={...C},j=typeof v.maxLength=="number"?Math.min(u,v.maxLength):u,P=b.length;if(P>j)throw new SyntaxError(`Input length: ${P}, exceeds maximum allowed length: ${j}`);b=p[b]||b;const E=l.isWindows(C),{DOT_LITERAL:S,SLASH_LITERAL:R,ONE_CHAR:T,DOTS_SLASH:w,NO_DOT:I,NO_DOTS:N,NO_DOTS_SLASH:z,STAR:k,START_ANCHOR:U}=c.globChars(E),q=v.dot?N:I,B=v.dot?z:I,V=v.capture?"":"?:",G={negated:!1,prefix:""};let F=v.bash===!0?".*?":k;v.capture&&(F=`(${F})`);const J=X=>X.noglobstar===!0?F:`(${V}(?:(?!${U}${X.dot?w:S}).)*?)`,A=X=>{switch(X){case"*":return`${q}${T}${F}`;case".*":return`${S}${T}${F}`;case"*.*":return`${q}${F}${S}${T}${F}`;case"*/*":return`${q}${F}${R}${T}${B}${F}`;case"**":return q+J(v);case"**/*":return`(?:${q}${J(v)}${R})?${B}${T}${F}`;case"**/*.*":return`(?:${q}${J(v)}${R})?${B}${F}${S}${T}${F}`;case"**/.*":return`(?:${q}${J(v)}${R})?${S}${T}${F}`;default:{const ne=/^(.*?)\.(\w+)$/.exec(X);if(!ne)return;const ee=A(ne[1]);return ee?ee+S+ne[2]:void 0}}},O=l.removePrefix(b,G);let D=A(O);return D&&v.strictSlashes!==!0&&(D+=`${R}?`),D},s.exports=_},683:(s,i,a)=>{const c=a(17),l=a(700),u=a(754),f=a(513),h=a(356),d=g=>g&&typeof g=="object"&&!Array.isArray(g),p=(g,y,_=!1)=>{if(Array.isArray(g)){const R=g.map(w=>p(w,y,_));return w=>{for(const I of R){const N=I(w);if(N)return N}return!1}}const b=d(g)&&g.tokens&&g.input;if(g===""||typeof g!="string"&&!b)throw new TypeError("Expected pattern to be a non-empty string");const C=y||{},v=f.isWindows(y),j=b?p.compileRe(g,y):p.makeRe(g,y,!1,!0),P=j.state;delete j.state;let E=()=>!1;if(C.ignore){const R={...y,ignore:null,onMatch:null,onResult:null};E=p(C.ignore,R,_)}const S=(R,T=!1)=>{const{isMatch:w,match:I,output:N}=p.test(R,j,y,{glob:g,posix:v}),z={glob:g,state:P,regex:j,posix:v,input:R,output:N,match:I,isMatch:w};return typeof C.onResult=="function"&&C.onResult(z),w===!1?(z.isMatch=!1,T?z:!1):E(R)?(typeof C.onIgnore=="function"&&C.onIgnore(z),z.isMatch=!1,T?z:!1):(typeof C.onMatch=="function"&&C.onMatch(z),T?z:!0)};return _&&(S.state=P),S};p.test=(g,y,_,{glob:b,posix:C}={})=>{if(typeof g!="string")throw new TypeError("Expected input to be a string");if(g==="")return{isMatch:!1,output:""};const v=_||{},j=v.format||(C?f.toPosixSlashes:null);let P=g===b,E=P&&j?j(g):g;return P===!1&&(E=j?j(g):g,P=E===b),(P===!1||v.capture===!0)&&(v.matchBase===!0||v.basename===!0?P=p.matchBase(g,y,_,C):P=y.exec(E)),{isMatch:!!P,match:P,output:E}},p.matchBase=(g,y,_,b=f.isWindows(_))=>(y instanceof RegExp?y:p.makeRe(y,_)).test(c.basename(g)),p.isMatch=(g,y,_)=>p(y,_)(g),p.parse=(g,y)=>Array.isArray(g)?g.map(_=>p.parse(_,y)):u(g,{...y,fastpaths:!1}),p.scan=(g,y)=>l(g,y),p.compileRe=(g,y,_=!1,b=!1)=>{if(_===!0)return g.output;const C=y||{},v=C.contains?"":"^",j=C.contains?"":"$";let P=`${v}(?:${g.output})${j}`;g&&g.negated===!0&&(P=`^(?!${P}).*$`);const E=p.toRegex(P,y);return b===!0&&(E.state=g),E},p.makeRe=(g,y,_=!1,b=!1)=>{if(!g||typeof g!="string")throw new TypeError("Expected a non-empty string");const C=y||{};let v={negated:!1,fastpaths:!0},j="",P;return g.startsWith("./")&&(g=g.slice(2),j=v.prefix="./"),C.fastpaths!==!1&&(g[0]==="."||g[0]==="*")&&(P=u.fastpaths(g,y)),P===void 0?(v=u(g,y),v.prefix=j+(v.prefix||"")):v.output=P,p.compileRe(v,y,_,b)},p.toRegex=(g,y)=>{try{const _=y||{};return new RegExp(g,_.flags||(_.nocase?"i":""))}catch(_){if(y&&y.debug===!0)throw _;return/$^/}},p.constants=h,s.exports=p},700:(s,i,a)=>{const c=a(513),{CHAR_ASTERISK:l,CHAR_AT:u,CHAR_BACKWARD_SLASH:f,CHAR_COMMA:h,CHAR_DOT:d,CHAR_EXCLAMATION_MARK:p,CHAR_FORWARD_SLASH:g,CHAR_LEFT_CURLY_BRACE:y,CHAR_LEFT_PARENTHESES:_,CHAR_LEFT_SQUARE_BRACKET:b,CHAR_PLUS:C,CHAR_QUESTION_MARK:v,CHAR_RIGHT_CURLY_BRACE:j,CHAR_RIGHT_PARENTHESES:P,CHAR_RIGHT_SQUARE_BRACKET:E}=a(356),S=w=>w===g||w===f,R=w=>{w.isPrefix!==!0&&(w.depth=w.isGlobstar?1/0:1)},T=(w,I)=>{const N=I||{},z=w.length-1,k=N.parts===!0||N.scanToEnd===!0,U=[],q=[],B=[];let V=w,G=-1,F=0,J=0,A=!1,O=!1,D=!1,X=!1,ne=!1,ee=!1,M=!1,te=!1,Z=!1,re=0,$,L,oe={value:"",depth:0,isGlob:!1};const ae=()=>G>=z,fe=()=>V.charCodeAt(G+1),pe=()=>($=L,V.charCodeAt(++G));for(;G<z;){L=pe();let _e;if(L===f){M=oe.backslashes=!0,L=pe(),L===y&&(ee=!0);continue}if(ee===!0||L===y){for(re++;ae()!==!0&&(L=pe());){if(L===f){M=oe.backslashes=!0,pe();continue}if(L===y){re++;continue}if(ee!==!0&&L===d&&(L=pe())===d){if(A=oe.isBrace=!0,D=oe.isGlob=!0,Z=!0,k===!0)continue;break}if(ee!==!0&&L===h){if(A=oe.isBrace=!0,D=oe.isGlob=!0,Z=!0,k===!0)continue;break}if(L===j&&(re--,re===0)){ee=!1,A=oe.isBrace=!0,Z=!0;break}}if(k===!0)continue;break}if(L===g){if(U.push(G),q.push(oe),oe={value:"",depth:0,isGlob:!1},Z===!0)continue;if($===d&&G===F+1){F+=2;continue}J=G+1;continue}if(N.noext!==!0&&(L===C||L===u||L===l||L===v||L===p)===!0&&fe()===_){if(D=oe.isGlob=!0,X=oe.isExtglob=!0,Z=!0,k===!0){for(;ae()!==!0&&(L=pe());){if(L===f){M=oe.backslashes=!0,L=pe();continue}if(L===P){D=oe.isGlob=!0,Z=!0;break}}continue}break}if(L===l){if($===l&&(ne=oe.isGlobstar=!0),D=oe.isGlob=!0,Z=!0,k===!0)continue;break}if(L===v){if(D=oe.isGlob=!0,Z=!0,k===!0)continue;break}if(L===b){for(;ae()!==!0&&(_e=pe());){if(_e===f){M=oe.backslashes=!0,pe();continue}if(_e===E){O=oe.isBracket=!0,D=oe.isGlob=!0,Z=!0;break}}if(k===!0)continue;break}if(N.nonegate!==!0&&L===p&&G===F){te=oe.negated=!0,F++;continue}if(N.noparen!==!0&&L===_){if(D=oe.isGlob=!0,k===!0){for(;ae()!==!0&&(L=pe());){if(L===_){M=oe.backslashes=!0,L=pe();continue}if(L===P){Z=!0;break}}continue}break}if(D===!0){if(Z=!0,k===!0)continue;break}}N.noext===!0&&(X=!1,D=!1);let ue=V,H="",be="";F>0&&(H=V.slice(0,F),V=V.slice(F),J-=F),ue&&D===!0&&J>0?(ue=V.slice(0,J),be=V.slice(J)):D===!0?(ue="",be=V):ue=V,ue&&ue!==""&&ue!=="/"&&ue!==V&&S(ue.charCodeAt(ue.length-1))&&(ue=ue.slice(0,-1)),N.unescape===!0&&(be&&(be=c.removeBackslashes(be)),ue&&M===!0&&(ue=c.removeBackslashes(ue)));const ie={prefix:H,input:w,start:F,base:ue,glob:be,isBrace:A,isBracket:O,isGlob:D,isExtglob:X,isGlobstar:ne,negated:te};if(N.tokens===!0&&(ie.maxDepth=0,S(L)||q.push(oe),ie.tokens=q),N.parts===!0||N.tokens===!0){let _e;for(let K=0;K<U.length;K++){const me=_e?_e+1:F,Ae=U[K],Q=w.slice(me,Ae);N.tokens&&(K===0&&F!==0?(q[K].isPrefix=!0,q[K].value=H):q[K].value=Q,R(q[K]),ie.maxDepth+=q[K].depth),(K!==0||Q!=="")&&B.push(Q),_e=Ae}if(_e&&_e+1<w.length){const K=w.slice(_e+1);B.push(K),N.tokens&&(q[q.length-1].value=K,R(q[q.length-1]),ie.maxDepth+=q[q.length-1].depth)}ie.slashes=U,ie.parts=B}return ie};s.exports=T},513:(s,i,a)=>{const c=a(17),l=process.platform==="win32",{REGEX_BACKSLASH:u,REGEX_REMOVE_BACKSLASH:f,REGEX_SPECIAL_CHARS:h,REGEX_SPECIAL_CHARS_GLOBAL:d}=a(356);i.isObject=p=>p!==null&&typeof p=="object"&&!Array.isArray(p),i.hasRegexChars=p=>h.test(p),i.isRegexChar=p=>p.length===1&&i.hasRegexChars(p),i.escapeRegex=p=>p.replace(d,"\\$1"),i.toPosixSlashes=p=>p.replace(u,"/"),i.removeBackslashes=p=>p.replace(f,g=>g==="\\"?"":g),i.supportsLookbehinds=()=>{const p=process.version.slice(1).split(".").map(Number);return p.length===3&&p[0]>=9||p[0]===8&&p[1]>=10},i.isWindows=p=>p&&typeof p.windows=="boolean"?p.windows:l===!0||c.sep==="\\",i.escapeLast=(p,g,y)=>{const _=p.lastIndexOf(g,y);return _===-1?p:p[_-1]==="\\"?i.escapeLast(p,g,_-1):`${p.slice(0,_)}\\${p.slice(_)}`},i.removePrefix=(p,g={})=>{let y=p;return y.startsWith("./")&&(y=y.slice(2),g.prefix="./"),y},i.wrapOutput=(p,g={},y={})=>{const _=y.contains?"":"^",b=y.contains?"":"$";let C=`${_}(?:${p})${b}`;return g.negated===!0&&(C=`(?:^(?!${C}).*$)`),C}},492:(s,i,a)=>{/*!
36
36
  * to-regex-range <https://github.com/micromatch/to-regex-range>
37
37
  *
38
38
  * Copyright (c) 2015-present, Jon Schlinkert.
39
39
  * Released under the MIT License.
40
- */const c=i(357),l=(S,R,T)=>{if(c(S)===!1)throw new TypeError("toRegexRange: expected the first argument to be a number");if(R===void 0||S===R)return String(S);if(c(R)===!1)throw new TypeError("toRegexRange: expected the second argument to be a number.");let w={relaxZeros:!0,...T};typeof w.strictZeros=="boolean"&&(w.relaxZeros=w.strictZeros===!1);let N=String(w.relaxZeros),I=String(w.shorthand),z=String(w.capture),O=String(w.wrap),W=S+":"+R+"="+N+I+z+O;if(l.cache.hasOwnProperty(W))return l.cache[W].result;let q=Math.min(S,R),F=Math.max(S,R);if(Math.abs(q-F)===1){let A=S+"|"+R;return w.capture?`(${A})`:w.wrap===!1?A:`(?:${A})`}let V=P(S)||P(R),G={min:S,max:R,a:q,b:F},B=[],J=[];if(V&&(G.isPadded=V,G.maxLen=String(G.max).length),q<0){let A=F<0?Math.abs(F):1;J=d(A,Math.abs(q),G,w),q=G.a=0}return F>=0&&(B=d(q,F,G,w)),G.negatives=J,G.positives=B,G.result=u(J,B),w.capture===!0?G.result=`(${G.result})`:w.wrap!==!1&&B.length+J.length>1&&(G.result=`(?:${G.result})`),l.cache[W]=G,G.result};function u(S,R,T){let w=f(S,R,"-",!1)||[],N=f(R,S,"",!1)||[],I=f(S,R,"-?",!0)||[];return w.concat(I).concat(N).join("|")}function p(S,R){let T=1,w=1,N=b(S,T),I=new Set([R]);for(;S<=N&&N<=R;)I.add(N),T+=1,N=b(S,T);for(N=C(R+1,w)-1;S<N&&N<=R;)I.add(N),w+=1,N=C(R+1,w)-1;return I=[...I],I.sort(_),I}function h(S,R,T){if(S===R)return{pattern:S,count:[],digits:0};let w=g(S,R),N=w.length,I="",z=0;for(let O=0;O<N;O++){let[W,q]=w[O];W===q?I+=W:W!=="0"||q!=="9"?I+=j(W,q):z++}return z&&(I+=T.shorthand===!0?"\\d":"[0-9]"),{pattern:I,count:[z],digits:N}}function d(S,R,T,w){let N=p(S,R),I=[],z=S,O;for(let W=0;W<N.length;W++){let q=N[W],F=h(String(z),String(q),w),V="";if(!T.isPadded&&O&&O.pattern===F.pattern){O.count.length>1&&O.count.pop(),O.count.push(F.count[0]),O.string=O.pattern+v(O.count),z=q+1;continue}T.isPadded&&(V=E(q,T,w)),F.string=V+F.pattern+v(F.count),I.push(F),z=q+1,O=F}return I}function f(S,R,T,w,N){let I=[];for(let z of S){let{string:O}=z;!w&&!y(R,"string",O)&&I.push(T+O),w&&y(R,"string",O)&&I.push(T+O)}return I}function g(S,R){let T=[];for(let w=0;w<S.length;w++)T.push([S[w],R[w]]);return T}function _(S,R){return S>R?1:R>S?-1:0}function y(S,R,T){return S.some(w=>w[R]===T)}function b(S,R){return Number(String(S).slice(0,-R)+"9".repeat(R))}function C(S,R){return S-S%Math.pow(10,R)}function v(S){let[R=0,T=""]=S;return T||R>1?`{${R+(T?","+T:"")}}`:""}function j(S,R,T){return`[${S}${R-S===1?"":"-"}${R}]`}function P(S){return/^-?(0+)\d/.test(S)}function E(S,R,T){if(!R.isPadded)return S;let w=Math.abs(R.maxLen-String(S).length),N=T.relaxZeros!==!1;switch(w){case 0:return"";case 1:return N?"0?":"0";case 2:return N?"0{0,2}":"00";default:return N?`0{0,${w}}`:`0{${w}}`}}l.cache={},l.clearCache=()=>l.cache={},s.exports=l},17:s=>{s.exports=Ny},837:s=>{s.exports=f_()}},t={};function r(s){var a=t[s];if(a!==void 0)return a.exports;var i=t[s]={exports:{}},c=!0;try{e[s](i,i.exports,r),c=!1}finally{c&&delete t[s]}return i.exports}typeof r<"u"&&(r.ab=__dirname+"/");var o=r(971);Pn.exports=o})()),Pn.exports}var Wi;function m_(){return Wi||(Wi=1,function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(a,i){for(var c in i)Object.defineProperty(a,c,{enumerable:!0,get:i[c]})}t(e,{matchRemotePattern:function(){return o},hasMatch:function(){return s}});const r=p_();function o(a,i){if(a.protocol!==void 0){const l=i.protocol.slice(0,-1);if(a.protocol!==l)return!1}if(a.port!==void 0&&a.port!==i.port)return!1;if(a.hostname===void 0)throw new Error(`Pattern should define hostname but found
41
- `+JSON.stringify(a));if(!(0,r.makeRe)(a.hostname).test(i.hostname))return!1;var c;return!!(0,r.makeRe)((c=a.pathname)!=null?c:"**").test(i.pathname)}function s(a,i,c){return a.some(l=>c.hostname===l)||i.some(l=>o(l,c))}}(Sn)),Sn}var Vi;function jf(){return Vi||(Vi=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return r}});function t(o){let{config:s,src:a,width:i,quality:c}=o;if(process.env.NODE_ENV!=="production"){const l=[];if(a||l.push("src"),i||l.push("width"),l.length>0)throw new Error("Next Image Optimization requires "+l.join(", ")+" to be provided. Make sure you pass them as props to the `next/image` component. Received: "+JSON.stringify({src:a,width:i,quality:c}));if(a.startsWith("//"))throw new Error('Failed to parse src "'+a+'" on `next/image`, protocol-relative URL (//) must be changed to an absolute URL (http:// or https://)');if(!a.startsWith("/")&&(s.domains||s.remotePatterns)){let u;try{u=new URL(a)}catch(p){throw console.error(p),new Error('Failed to parse src "'+a+'" 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:p}=m_();if(!p(s.domains,s.remotePatterns,u))throw new Error("Invalid src prop ("+a+') on `next/image`, hostname "'+u.hostname+'" is not configured under images in your `next.config.js`\nSee more info: https://nextjs.org/docs/messages/next-image-unconfigured-host')}}}return s.path+"?url="+encodeURIComponent(a)+"&w="+i+"&q="+(c||75)+(process.env.NEXT_DEPLOYMENT_ID?"&dpl="+process.env.NEXT_DEPLOYMENT_ID:"")}t.__next_img_default=!0;const r=t}(Cn)),Cn}(function(e,t){"use client";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"Image",{enumerable:!0,get:function(){return C}});const r=ke,s=Ir()._(x),a=r._(es),i=r._(Ry()),c=Ts,l=Dr,u=Ay(),p=Wt,h=vu(),d=r._(jf()),f=process.env.__NEXT_IMAGE_OPTS;typeof window>"u"&&(globalThis.__NEXT_IMAGE_IMPORTED=!0);function g(v,j,P,E,S,R){const T=v==null?void 0:v.src;if(!v||v["data-loaded-src"]===T)return;v["data-loaded-src"]=T,("decode"in v?v.decode():Promise.resolve()).catch(()=>{}).then(()=>{if(!(!v.parentElement||!v.isConnected)){if(j!=="empty"&&S(!0),P!=null&&P.current){const N=new Event("load");Object.defineProperty(N,"target",{writable:!1,value:v});let I=!1,z=!1;P.current({...N,nativeEvent:N,currentTarget:v,target:v,isDefaultPrevented:()=>I,isPropagationStopped:()=>z,persist:()=>{},preventDefault:()=>{I=!0,N.preventDefault()},stopPropagation:()=>{z=!0,N.stopPropagation()}})}if(E!=null&&E.current&&E.current(v),process.env.NODE_ENV!=="production"){const N=new URL(T,"http://n").searchParams.get("url")||T;if(v.getAttribute("data-nimg")==="fill"){if(!R&&(!v.getAttribute("sizes")||v.getAttribute("sizes")==="100vw")&&v.getBoundingClientRect().width/window.innerWidth<.6&&(0,p.warnOnce)('Image with src "'+N+'" 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'),v.parentElement){const{position:O}=window.getComputedStyle(v.parentElement),W=["absolute","fixed","relative"];W.includes(O)||(0,p.warnOnce)('Image with src "'+N+'" has "fill" and parent element with invalid "position". Provided "'+O+'" should be one of '+W.map(String).join(",")+".")}v.height===0&&(0,p.warnOnce)('Image with src "'+N+'" 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 I=v.height.toString()!==v.getAttribute("height"),z=v.width.toString()!==v.getAttribute("width");(I&&!z||!I&&z)&&(0,p.warnOnce)('Image with src "'+N+`" 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 _(v){const[j,P]=s.version.split("."),E=parseInt(j,10),S=parseInt(P,10);return E>18||E===18&&S>=3?{fetchPriority:v}:{fetchpriority:v}}const y=(0,s.forwardRef)((v,j)=>{let{src:P,srcSet:E,sizes:S,height:R,width:T,decoding:w,className:N,style:I,fetchPriority:z,placeholder:O,loading:W,unoptimized:q,fill:F,onLoadRef:V,onLoadingCompleteRef:G,setBlurComplete:B,setShowAltText:J,onLoad:A,onError:k,...D}=v;return s.default.createElement("img",{...D,..._(z),loading:W,width:T,height:R,decoding:w,"data-nimg":F?"fill":"1",className:N,style:I,sizes:S,srcSet:E,src:P,ref:(0,s.useCallback)(X=>{j&&(typeof j=="function"?j(X):typeof j=="object"&&(j.current=X)),X&&(k&&(X.src=X.src),process.env.NODE_ENV!=="production"&&(P||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&&g(X,O,V,G,B,q))},[P,O,V,G,B,k,q,j]),onLoad:X=>{const ne=X.currentTarget;g(ne,O,V,G,B,q)},onError:X=>{J(!0),O!=="empty"&&B(!0),k&&k(X)}})});function b(v){let{isAppRouter:j,imgAttributes:P}=v;const E={as:"image",imageSrcSet:P.srcSet,imageSizes:P.sizes,crossOrigin:P.crossOrigin,referrerPolicy:P.referrerPolicy,..._(P.fetchPriority)};return j&&a.default.preload?(a.default.preload(P.src,E),null):s.default.createElement(i.default,null,s.default.createElement("link",{key:"__nimg-"+P.src+P.srcSet+P.sizes,rel:"preload",href:P.srcSet?void 0:P.src,...E}))}const C=(0,s.forwardRef)((v,j)=>{const E=!(0,s.useContext)(h.RouterContext),S=(0,s.useContext)(u.ImageConfigContext),R=(0,s.useMemo)(()=>{const G=f||S||l.imageConfigDefault,B=[...G.deviceSizes,...G.imageSizes].sort((A,k)=>A-k),J=G.deviceSizes.sort((A,k)=>A-k);return{...G,allSizes:B,deviceSizes:J}},[S]),{onLoad:T,onLoadingComplete:w}=v,N=(0,s.useRef)(T);(0,s.useEffect)(()=>{N.current=T},[T]);const I=(0,s.useRef)(w);(0,s.useEffect)(()=>{I.current=w},[w]);const[z,O]=(0,s.useState)(!1),[W,q]=(0,s.useState)(!1),{props:F,meta:V}=(0,c.getImgProps)(v,{defaultLoader:d.default,imgConf:R,blurComplete:z,showAltText:W});return s.default.createElement(s.default.Fragment,null,s.default.createElement(y,{...F,unoptimized:V.unoptimized,placeholder:V.placeholder,fill:V.fill,onLoadRef:N,onLoadingCompleteRef:I,setBlurComplete:O,setShowAltText:q,ref:j}),V.priority?s.default.createElement(b,{isAppRouter:E,imgAttributes:F}):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)})(Ho,Ho.exports);var h_=Ho.exports;(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(u,p){for(var h in p)Object.defineProperty(u,h,{enumerable:!0,get:p[h]})}t(e,{unstable_getImgProps:function(){return c},default:function(){return l}});const r=ke,o=Ts,s=Wt,a=h_,i=r._(jf()),c=u=>{(0,s.warnOnce)("Warning: unstable_getImgProps() is experimental and may change or be removed at any time. Use at your own risk.");const{props:p}=(0,o.getImgProps)(u,{defaultLoader:i.default,imgConf:process.env.__NEXT_IMAGE_OPTS});for(const[h,d]of Object.entries(p))d===void 0&&delete p[h];return{props:p}},l=a.Image})(uf);var g_=uf;const br=Nr(g_),y_=({item:e,CONSTANTS:t})=>{const r=e.icon?t.PAYMENT_FLAGS.includes(e.icon)?"payment":"social":null,o=r==="payment"?t.PAYMENT_FLAGS_DICTIONARY[e.icon]:e.icon;return e.link?n.jsxs(Me,{href:e.link,target:"_blank",rel:"noopener noreferrer",className:ye["support-item"],children:[e.image&&n.jsx("img",{src:e.image,alt:"",loading:"lazy"}),r==="payment"?n.jsx(br,{alt:o,src:`/assets/${o}.svg`,width:20,height:20}):n.jsx(m.Icon,{size:"small",name:o})]}):n.jsxs("div",{className:ye["support-item"],children:[e.image&&n.jsx("img",{src:e.image,alt:"",loading:"lazy"}),r==="payment"?n.jsx(br,{alt:o,src:`/assets/${o}.svg`,width:20,height:20}):n.jsx(m.Icon,{size:"small",name:o})]})},__=({content:e,CONSTANTS:t})=>n.jsx("div",{className:ye["support-container"],children:e==null?void 0:e.map((r,o)=>n.jsxs("div",{"data-device":r.device,className:ye["support-section"],children:[n.jsxs("div",{className:ye["support-text"],children:[r.title&&n.jsx("h3",{children:r.title}),r.description&&n.jsx("p",{children:r.description})]}),Array.isArray(r.items)&&r.items.length&&n.jsx("div",{className:ye["support-items"],"data-gap":r.gap,children:r.items.map((s,a)=>n.jsx(y_,{item:s,CONSTANTS:t},`footer-support-item-${a}`))})]},`footer-support-${o}`))}),v_=({name:e,nameIcon:t,maxWidth:r,rowAlignContent:o,columnAlignContent:s,columnAlignItems:a,textAlignContent:i,textAlignItems:c,children:l})=>n.jsx(m.TextStructure.Root,{layoutProps:{textRow:{alignContent:o,alignItems:o},columnWrapper:{alignContent:s,alignItems:a}},children:n.jsxs(m.TextStructure.DivWrapper,{alignContent:i,alignItems:c,className:ye.footer__column,children:[n.jsxs("div",{className:t?ye.footer__columnTitleIcon:ye.footer__columnTitle,children:[n.jsx(m.Icon,{name:`${t}`,size:"small"}),e&&n.jsx("div",{children:e})]}),n.jsx("div",{className:ye.footer__columnContent,style:{maxWidth:`${r}px`},children:l})]})}),x_=({name:e,nameIcon:t,maxWidth:r,children:o,ICONS:s,...a})=>n.jsxs(m.Accordion.Wrapper,{className:ye.accordionWrapper,title:"accordion-wrapper",...a,children:[n.jsx(m.Accordion.Header,{id:(a==null?void 0:a.id)??"",className:ye.accordionHeader,closeIndicator:n.jsx(m.Icon,{name:s.arrow_up,size:"medium"}),openIndicator:n.jsx(m.Icon,{name:s.arrow_down,size:"medium"}),title:"accordion-header",children:n.jsx(m.TextStructure.Root,{children:n.jsxs(m.TextStructure.DivWrapper,{className:t?ye.accordionTextWrapper:"",children:[n.jsx(m.Icon,{name:`${t}`,size:"medium"}),n.jsx("h2",{className:"typography-style-body-md",children:e})]})})}),n.jsx(m.Accordion.Body,{title:"accordion-body",children:n.jsx(m.TextStructure.Root,{children:n.jsx(m.TextStructure.DivWrapper,{className:ye.footer__columnContent,style:{maxWidth:`${r}px`},children:o})})})]}),Eo=e=>{const{isMobile:t}=ce();return t?n.jsx(x_,{...e}):n.jsx(v_,{...e})},mr=({type:e,children:t,className:r,collumnName:o,collumnNameIcon:s,icons:a,iconLink:i,iconSize:c,link:l,paymentDisclaimer:u,paymentTitle:p,rowAlignContent:h,columnAlignContent:d,columnAlignItems:f,textAlignContent:g,textAlignItems:_,...y})=>{let b;const{handleSelectContent:C}=le(),{nextimage:v}=xe();switch(e){case"menu":b=n.jsx(Me,{className:ye.footer__itemLink,href:l??"#",prefetch:!1,children:n.jsx("span",{onClick:()=>{C({content:`footer:${o}:${t}`})},children:t})});break;case"payment":b=n.jsxs("div",{className:m.helpers.classNameConcat(ye.payment,ye.footer__itemSmallText),...y,children:[u,n.jsxs("div",{className:m.helpers.classNameConcat(ye.footer__iconContainer,ye.footer__iconListSubHeader),children:[p,n.jsx("div",{className:ye.footer__iconList,children:a==null?void 0:a.map((j,P)=>n.jsx(v,{alt:j,src:`/assets/${j}.svg`,width:c??20,height:c??20},P))})]})]});break;case"social-media":b=n.jsx("div",{className:ye.footer__iconContainer,...y,children:n.jsx("div",{className:ye.footer__iconList,children:i==null?void 0:i.map((j,P)=>n.jsx(Me,{prefetch:!1,href:j.link??"#",target:"_blank",children:n.jsx(m.Icon,{size:"medium",name:j.icon,onClick:()=>C({content:`footer:redes-sociais:${j.icon}`})})},P))})});break;default:b=n.jsx("div",{className:r,...y,children:t})}return n.jsx(m.TextStructure.Root,{layoutProps:{textRow:{alignContent:h,alignItems:h},columnWrapper:{alignContent:d,alignItems:f}},...y,children:n.jsx(m.TextStructure.DivWrapper,{alignContent:g,alignItems:_,className:m.helpers.classNameConcat(ye.footer__item,r),children:b})})},b_=({className:e,text:t,...r})=>n.jsx("div",{...r,className:m.helpers.classNameConcat(ye.footer__legalInformation,e),children:n.jsx("span",{children:t})}),Cf=()=>{const{nextimage:e}=xe();return n.jsx("div",{className:ye["footer--stamps"],children:n.jsx(e,{alt:"Empresa B",className:ye["footer--stamps--company"],src:"/images/Footer/new_certfB.png",width:56,height:64})})};Cf.displayName="Footer.Stamps";const Sf=({children:e,legalTextSlot:t,adornment:r,className:o,...s})=>{const{isMobile:a}=ce(),i=x.Children.toArray(e).filter(Boolean),c=i.length;return n.jsxs("div",{className:ye.footer__main,children:[(r==null?void 0:r.top)&&n.jsx("div",{className:ye.footer__top,children:r==null?void 0:r.top}),c>0&&n.jsx("div",{...s,className:m.helpers.classNameConcat(ye.footer__wrapper,o),children:i.map((l,u)=>n.jsx("div",{style:{flexGrow:1,maxWidth:`calc(100% / ${a?1:"fit-content"})`},children:l},u))}),(r==null?void 0:r.bottom)&&n.jsx("div",{className:ye.footer__bottom,children:r.bottom}),t&&n.jsx("div",{className:ye.footer__legalText,children:t})]})};Sf.displayName="Footer.Wrapper";const Pf=({data:{links:{links:e}},payments:t,socialInfo:r,socialMedias:o,adornment:s,LEGAL_INFORMATION_TEXT:a,ICONS:i})=>{var c;return n.jsxs(Sf,{adornment:s,legalTextSlot:n.jsx(b_,{text:a}),children:[Array.isArray(e.column)&&e.column.map((l,u)=>n.jsx(Eo,{id:`${u}column-menu`,name:l.name,nameIcon:l.nameIcon,ICONS:i,children:l.items.map((p,h)=>n.jsx(mr,{type:"menu",link:p.link,collumnName:l.name,collumnNameIcon:l.nameIcon,children:p.text},h))},u)),t&&((c=t.acceptedFlags)==null?void 0:c.length)>0&&n.jsx(Eo,{id:"payment-column",name:t==null?void 0:t.title,nameIcon:t==null?void 0:t.titleIcon,maxWidth:150,ICONS:i,children:n.jsx(mr,{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})}),n.jsxs(Eo,{id:"social-media-column",name:r==null?void 0:r.title,ICONS:i,children:[r!=null&&r.subTitle?n.jsx(mr,{children:r==null?void 0:r.subTitle}):null,n.jsx(mr,{type:"social-media",iconSize:24,iconLink:o}),n.jsx(Cf,{})]})]})};Pf.displayName="Footer";const j_=Object.freeze(Object.defineProperty({__proto__:null,Footer:Pf,FooterSupport:__},Symbol.toStringTag,{value:"Module"})),C_=()=>{const{colorName:e}=De();return n.jsx(m.TextStructure.Root,{children:n.jsx(m.TextStructure.DivWrapper,{className:e.length===0?"":U.styles["accessibility-info"],children:n.jsx("p",{children:e})})})},Br=({className:e,titleId:t})=>{var s,a,i;const{productName:r,tag:o}=De();return n.jsxs("div",{className:m.helpers.classNameConcat(U.styles.header,e),children:[o!=null&&o.commercial?n.jsx(m.Tag,{size:"small",title:(s=o.commercial)==null?void 0:s.value,variant:"quaternary",adornment:{start:(a=o.commercial)!=null&&a.icon?n.jsx(m.Icon,{name:o.commercial.icon}):null},children:(i=o.commercial)==null?void 0:i.value}):null,n.jsx(m.TextStructure.Root,{children:n.jsx(m.TextStructure.DivWrapper,{children:n.jsx("h1",{id:t,children:r})})})]})};Br.displayName="PDP.PDPHeader";const Ds=({layout:e="horizontal"})=>{const{price:t,listPrice:r,installments:o}=De(),{count:s,value:a}=o,i=U.formatPriceToCurrency(r??0,!0),c=U.formatPriceToCurrency(t??0,!0),l=U.formatPriceToCurrency(a??0);return n.jsx(m.ProductInfo.Root,{size:"small",layout:e,children:n.jsxs(m.ProductInfo.Wrapper,{layout:e,size:"small",className:U.styles["price-wrapper"],children:[n.jsx(m.ProductInfo.ValuesWrapper,{children:t!==r?n.jsxs(n.Fragment,{children:[n.jsx(m.ProductInfo.Price,{label:"originalPrice",value:i.toString(),size:"small"}),n.jsx(m.ProductInfo.Price,{label:"discountPrice",value:c.toString(),size:"small"})]}):n.jsx(m.ProductInfo.Price,{label:"defaultPrice",value:c.toString(),size:"small"})}),s&&s>1&&a?n.jsx(m.ProductInfo.Price,{label:"installment",value:`ou ${s}x ${l}`,size:"small"}):null]})})},Uo=({onAddCallBack:e,onDisabledClickCallBack:t,addToCartBtnSize:r,BUY_BUTTON_LABELS:o})=>{const s=Bt(),{productId:a,productData:i,price:c,listPrice:l,thumbImage:u,isKit:p}=De(),{isMobile:h}=ce(),{addToCart:d}=Ee(),{sendDataLayerEvent:f}=le(),g=!p&&(!s.sku||!s.available),_=()=>{if(g&&typeof t=="function"){t();return}typeof e=="function"&&e({id:s.sku,quantity:s.quantity,seller:s.sellerId,sku:a}),d({id:s.sku,quantity:s.quantity,seller:s.sellerId},{id:a,texture:u==null?void 0:u.imageUrl}),f({functionKey:"skuEvents",data:{event:"add_to_cart",commonData:{products:[{...i,price:c,listPrice:l}]},supportData:{selectedSkus:[s]},customData:{quantity:s.quantity}}})};return n.jsx(m.Button,{className:U.styles["add-to-cart"],size:h?(r==null?void 0:r.mobile)??"large":(r==null?void 0:r.desktop)??"x-large",onClick:_,children:s.sku&&s.available?`${o.add_to_cart}`:`${o.select_size}`})},S_=({addToCartBtnSize:e,BUY_BUTTON_LABELS:t})=>{const{isMobile:r}=ce(),o=Bt(),{sizesContainerRef:s}=uc(),{structureRef:a}=je();return o.sku&&o.available?n.jsx(Uo,{addToCartBtnSize:e,BUY_BUTTON_LABELS:t}):n.jsx(m.Button,{className:U.styles["add-to-cart"],size:r?(e==null?void 0:e.mobile)??"large":(e==null?void 0:e.desktop)??"x-large",onClick:()=>{s.current&&a.current&&window.document.body.scrollTo({top:s.current.offsetTop-a.current.offsetHeight,behavior:"smooth"})},children:o.sku&&o.available?t.add_to_cart:t.select_size})},P_=({addToCartBtnSize:e,BUY_BUTTON_LABELS:t,Z_INDEX_WAR:r})=>{const{isMobile:o}=ce();return o?n.jsxs(m.Card,{className:U.styles["bottom-navigation"],shadow:!0,style:{zIndex:r.pdp_bottom_navigation},children:[n.jsxs("div",{className:U.styles["bottom-navigation__header"],children:[n.jsx(Br,{}),n.jsx(Ds,{layout:"name-vertical"})]}),n.jsx(S_,{addToCartBtnSize:e,BUY_BUTTON_LABELS:t})]}):null},w_=({children:e,setShowBottomNavigation:t})=>{const r=x.useRef(null),o=rs(r),s=x.useRef(o);return x.useEffect(()=>{var i;const{top:a}=((i=r.current)==null?void 0:i.getBoundingClientRect())??{top:0};s.current!==o&&a>0&&(t(!o),s.current=o)},[o]),n.jsx("div",{ref:r,style:{width:"100%"},children:e})},E_=({ICONS:e})=>{const{isMobile:t}=ce(),{price:r,listPrice:o,productData:s,productId:a}=De(),{sendDataLayerEvent:i}=le(),c=us(),{toggleProduct:l}=ds();return n.jsx(m.Button,{adornment:{start:n.jsx(m.Icon,{name:e[c.includes(a)?"favorite_true":"favorite_false"],size:"medium"})},className:U.styles["add-to-wishlist"],size:t?"medium":"x-large",variant:"tertiary",onClick:()=>{l(a),i({functionKey:"productEvents",data:{event:c.includes(a)?"remove_from_wishlist":"add_to_wishlist",outsideEcommerceData:{region:"PDP"},commonData:{...s,price:r,listPrice:o}}})}})},wf=({showWishlist:e=!0,callBack:t,addToCartBtnSize:r,BUY_BUTTON_LABELS:o,ICONS:s,Z_INDEX_WAR:a})=>{const{isMobile:i}=ce(),[c,l]=x.useState(!0);return n.jsxs(n.Fragment,{children:[n.jsxs("div",{className:U.styles.actions,children:[i?n.jsx(w_,{setShowBottomNavigation:l,children:n.jsx(Uo,{onAddCallBack:t,addToCartBtnSize:r,BUY_BUTTON_LABELS:o})}):n.jsx(Uo,{onAddCallBack:t,addToCartBtnSize:r,BUY_BUTTON_LABELS:o}),e&&n.jsx(E_,{ICONS:s})]}),i&&c&&n.jsx(P_,{addToCartBtnSize:r,BUY_BUTTON_LABELS:o,Z_INDEX_WAR:a})]})},Ef=({className:e,device:t,ICONS:r})=>{const{breadcrumbList:o,productName:s}=De(),a=i=>i.toLowerCase().normalize("NFD").replace(/[\u0300-\u036f]/g,"");return n.jsx(m.BreadCrumb.DivWrapper,{className:m.helpers.classNameConcat(U.styles.breadcrumb,[t==="mobile"?U.styles["breadcrumbs-mobile"]:U.styles["breadcrumbs-desktop"],e]),children:n.jsxs(m.BreadCrumb.List,{children:[Array.isArray(o)&&o.map((i,c)=>{const l=a(o.slice(0,c+1).map(u=>u.replace(/\s/g,"-").toLowerCase()).join("/"));return n.jsx(m.BreadCrumb.Item,{adornment:{end:n.jsx(m.Icon,{name:r.arrow_right})},role:"listitem",children:n.jsx(Me,{href:`/${l}`,children:i})},`pdp-breadcrumb-${l}-${c}`)}),n.jsx(m.BreadCrumb.Item,{role:"listitem",className:m.helpers.classNameConcat(U.styles["breadcrumb--active"],e),children:s},"pdp-breadcrumb-productName")]})})};Ef.displayName="PDP.BreadCrumb";const Rf=({className:e})=>{var o;const{tag:t}=De(),r=t==null?void 0:t.flagPdp;return r&&((o=r==null?void 0:r.value)!=null&&o.length)?n.jsx(m.Tag,{className:m.helpers.classNameConcat(U.styles.credits,e),variant:"tertiary",title:r==null?void 0:r.value,size:"small",adornment:{start:r!=null&&r.enableIcon&&(r!=null&&r.icon)?n.jsx(m.Icon,{name:r==null?void 0:r.icon,style:{color:r==null?void 0:r.iconColor}}):null},style:{background:r==null?void 0:r.tagColor,color:r==null?void 0:r.textColor},children:r==null?void 0:r.value}):n.jsx(n.Fragment,{})};Rf.displayName="PDPCredits";const R_=()=>{const{descriptionContent:e,productReference:t}=De(),[r,o]=x.useState("description");return n.jsxs(m.Tabs.Root,{className:U.styles["tabs-root-modifier"],children:[n.jsx(m.Tabs.TabList,{className:U.styles["tabs-list-modifier"],children:e==null?void 0:e.map(({label:s,value:a})=>n.jsx(m.Tabs.Item,{label:s,value:a,activeTab:r,onTabChange:o,size:"large",className:`${U.styles["tabs-item-modifier"]} ${r===a?U.styles["tabs-item-active"]:""}`},a))}),n.jsxs("div",{className:U.styles["content-wrapper"],children:[r==="description"?n.jsx("div",{children:n.jsxs("span",{className:U.styles.productref,children:["Ref:",t]})}):"",e==null?void 0:e.map(({value:s,content:a})=>r===s?n.jsx(m.Tabs.Panel,{className:`${U.styles["tabs-panel"]} ${r===s?U.styles["tabs-panel-enter"]:U.styles["tabs-panel-exit"]}`,children:n.jsx("div",{className:U.styles.content,dangerouslySetInnerHTML:{__html:a}})},s):null)]})]})},A_=({CURRENCY:e,DELIVERY_INFO_BOXES_ALLOWED:t,FREIGHT_CALCULATION:r,Z_INDEX_WAR:o})=>{const s=Bt(),{isMobile:a}=ce();return n.jsxs(n.Fragment,{children:[a?n.jsx(m.Utils.Divider,{direction:"horizontal",size:"small"}):null,n.jsx(kd,{skuId:s.available?s.sku:"",size:a?r.inputSize.mobile:r.inputSize.desktop,quantity:s.quantity,sellerId:s.sellerId,seller:s.sellerName,local:"PDP",CONSTANTS_PROPS:{freightConfig:r,deliveryInfoBoxesAllowed:t,toolTipZIndex:o.modal,currency:e}}),a?n.jsx(m.Utils.Divider,{direction:"horizontal",size:"small"}):null]})},Gi=({image:e,index:t,handleZoom:r,PRODUCT_IMAGE_DIMENSIONS:o})=>{const s=U.resizingImg(e.imageUrl,o.pdp),{nextimage:a}=xe();return n.jsx(a,{src:s,alt:e.imageLabel,objectFit:"contain",...o.pdp,...t<=1&&{priority:!0,loading:"eager"},onClick:()=>{r(t)}},t)},N_=({video:e,productName:t,poster:r})=>{const{sendDataLayerEvent:o}=le(),s=x.useRef(!1);return n.jsx(Be.Video,{src:e,autoPlay:!0,muted:!0,loop:!0,playsInline:!0,style:{zIndex:-1,aspectRatio:"2/3"},onPlaying:()=>{s.current||(s.current=!0,o({functionKey:"readyEvents",data:{event:"video_start",readyData:{product:t}}}))},poster:r})},Af=({images:e,video:t,handleZoom:r,productName:o,PRODUCT_IMAGE_DIMENSIONS:s})=>{var u,p;const{initialize:a,pagination:i,controller:c,itemsStyles:l}=m.Carousel.useCarousel({gap:0,itemsPerPage:1,loop:!1,direction:"row"});return n.jsxs(m.Carousel.Root,{innerRef:h=>{a(h)},className:U.styles["gallery-carousel-modifier"],children:[n.jsx(m.Carousel.Controller,{position:"absolute",top:"24px",bottom:"unset",left:"16px",children:n.jsx(m.Carousel.Bullets,{page:i.currentPage,total:e.length,onBulletClick:h=>c==null?void 0:c.navigateTo(h)})}),n.jsxs(m.Carousel.Body,{children:[n.jsx(m.Carousel.Item,{style:l,children:n.jsx(Gi,{image:e[0],index:0,handleZoom:r,PRODUCT_IMAGE_DIMENSIONS:s})},"PDP_gallery_0"),t&&n.jsx(m.Carousel.Item,{style:l,children:n.jsx(N_,{video:t,productName:o,...((u=e[1])==null?void 0:u.imageUrl)&&{poster:(p=e[1])==null?void 0:p.imageUrl}})},"PDP_gallery_video"),e.map((h,d)=>d===0?null:n.jsx(m.Carousel.Item,{style:l,children:n.jsx(Gi,{image:h,index:d,handleZoom:r,PRODUCT_IMAGE_DIMENSIONS:s})},`PDP_gallery_${d}`))]})]})};Af.displayName="PDP.Carousel";const I_="_thumbs_1fbzz_65",T_="_selected_1fbzz_93",O_="_carousel_1fbzz_162",k_="_bullets_1fbzz_199",Pe={"image-zoom-wrapper-desktop":"_image-zoom-wrapper-desktop_1fbzz_1","button-close-container":"_button-close-container_1fbzz_10","button-close":"_button-close_1fbzz_10","main-image-container":"_main-image-container_1fbzz_22","image-desktop":"_image-desktop_1fbzz_52",thumbs:I_,selected:T_,"image-zoom-wrapper-mobile":"_image-zoom-wrapper-mobile_1fbzz_115","image-mobile":"_image-mobile_1fbzz_145","image-zoom--image":"_image-zoom--image_1fbzz_159",carousel:O_,"carousel-controller":"_carousel-controller_1fbzz_167","arrow-left":"_arrow-left_1fbzz_177","arrow-right":"_arrow-right_1fbzz_178",bullets:k_,"zoom-popup":"_zoom-popup_1fbzz_210","image-zoom--mobile":"_image-zoom--mobile_1fbzz_250","image-zoom--image--img":"_image-zoom--image--img_1fbzz_280"},Ki=({onClose:e,ICONS:t})=>n.jsx("div",{className:`${Pe["button-close-container"]}`,children:n.jsx(m.Button,{iconNameStart:t.close,iconSize:"medium",className:`${Pe["button-close"]}`,variant:"tertiary",state:"default",size:"medium",onClick:e,style:{textDecoration:"none"}})}),M_=({children:e,Z_INDEX_WAR:t,...r})=>n.jsx("div",{...r,className:Pe["image-zoom-wrapper-desktop"],style:{zIndex:t.pdp_image_zoom},children:e}),Nf=({images:e,setCurrent:t,setFirstImgLoaded:r,ICONS:o,PRODUCT_IMAGE_DIMENSIONS:s})=>{const{nextimage:a}=xe();let i=null;const c=x.useRef(null),{initialize:l,controller:u,pagination:p,itemsStyles:h}=m.Carousel.useCarousel({itemsPerPage:1,gap:10,loop:!1,direction:"row"}),d=g=>{u==null||u.navigateTo(g)},f=()=>{r(!0)};return x.useEffect(()=>{t(p.currentPage)},[p.currentPage,t]),n.jsxs(m.Carousel.Root,{innerRef:g=>{g&&!i&&(i=g,l(i))},className:Pe.carousel,children:[n.jsxs(m.Carousel.Controller,{className:Pe["carousel-controller"],children:[n.jsx(m.Button,{variant:"tertiary",onClick:()=>u==null?void 0:u.prevPage(),className:Pe["arrow-left"],adornment:{start:n.jsx(m.Icon,{name:o.arrow_left})}}),n.jsx(m.Button,{variant:"tertiary",onClick:()=>u==null?void 0:u.nextPage(),className:Pe["arrow-right"],adornment:{start:n.jsx(m.Icon,{name:o.arrow_right})}})]}),n.jsx(m.Carousel.Body,{children:Array.isArray(e)&&e.map((g,_)=>n.jsx(m.Carousel.Item,{style:h,children:n.jsx(a,{...s.image_zoom.mobile,..._===0&&{priority:!0,loading:"eager"},ref:c,className:Pe.imageMobile,src:g.imageUrl,alt:g.imageText,quality:100,..._===0&&{onLoad:f}})},_))}),n.jsx(m.Carousel.Bullets,{className:Pe.bullets,page:p.currentPage,total:p.totalPages,onBulletClick:d})]})};Nf.displayName="ImageZoom.Mobile.Carousel";const If=({imgRef:e,image:t,PRODUCT_IMAGE_DIMENSIONS:r})=>{_c();const{nextimage:o}=xe();return n.jsx("div",{className:Pe["image-zoom--image"],ref:e,children:n.jsx(o,{...r.image_zoom.mobile,alt:t.imageText,className:Pe["image-zoom--image--img"],quality:100,src:t.imageUrl})})};If.displayName="ImageZoom.ImageZoom";const Tf=({loaded:e=!1})=>n.jsx("div",{className:Pe["zoom-popup"],"data-loaded":e,children:n.jsxs("svg",{width:"38",height:"39",viewBox:"0 0 38 39",xmlns:"http://www.w3.org/2000/svg",children:[n.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M18.93 5.382a3.711 3.711 0 0 1 2.55-1.007c.949 0 1.864.36 2.549 1.007a3.534 3.534 0 0 1 1.113 2.472v11.357l10.118 3.332c.587.193 1.1.56 1.465 1.053.366.494.565 1.089.566 1.7v.004c0 .22-.025.44-.075.653v.005l-2.98 12.52a.625.625 0 0 1-1.215-.29l2.977-12.515v-.002c.029-.122.043-.247.044-.372a1.619 1.619 0 0 0-.321-.958 1.729 1.729 0 0 0-.851-.61L24.32 20.257a.625.625 0 0 1-.43-.594V7.88a2.285 2.285 0 0 0-.72-1.59 2.462 2.462 0 0 0-1.691-.665c-.635 0-1.241.24-1.69.666a2.285 2.285 0 0 0-.722 1.59v19.04a.625.625 0 0 1-1.115.388l-.056-.071-.161-.202a178.922 178.922 0 0 0-2.333-2.858l-.002-.002a2.581 2.581 0 0 0-.897-.69 2.677 2.677 0 0 0-1.122-.25H12.37c-.307 0-.61.078-.874.225a1.712 1.712 0 0 0-.635.61 1.625 1.625 0 0 0-.016 1.653l7.128 12.296a.625.625 0 0 1-1.082.627L9.762 26.35a2.876 2.876 0 0 1 .027-2.924 2.962 2.962 0 0 1 1.098-1.057 3.05 3.05 0 0 1 1.482-.384h1.016c.57.002 1.133.127 1.648.368.515.24.97.59 1.33 1.024.514.614 1.026 1.239 1.455 1.768V7.855a3.535 3.535 0 0 1 1.113-2.473ZM6.446 10.22a.625.625 0 0 1 0 .884l-5.324 5.324a.625.625 0 0 1-.884-.884l5.324-5.324a.625.625 0 0 1 .884 0Z"}),n.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M.68 12.033c.345 0 .625.28.625.625v2.703h2.702a.625.625 0 1 1 0 1.25H.68a.625.625 0 0 1-.625-.625v-3.328c0-.345.28-.625.625-.625ZM16.429.237a.625.625 0 0 1 0 .884l-5.325 5.324a.625.625 0 0 1-.884-.883L15.545.237a.625.625 0 0 1 .884 0Z"}),n.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12.034.68c0-.346.28-.626.625-.626h3.328c.345 0 .625.28.625.625v3.328a.625.625 0 1 1-1.25 0V1.304h-2.703a.625.625 0 0 1-.625-.625Z"})]})});Tf.displayName="ImageZoom.ZoomPopup";const Of=({images:e,ICONS:t,PRODUCT_IMAGE_DIMENSIONS:r,...o})=>{const[s,a]=x.useState(!1),[i,c]=x.useState(0),{containerRef:l,imgRef:u,scale:p}=vc({defaultScale:1,maxScale:3});return n.jsxs("div",{...o,className:Pe["image-mobile"],"data-disable-carrousel-pan":p>1,children:[n.jsx(Tf,{loaded:s}),n.jsx(Nf,{images:e,setCurrent:c,setFirstImgLoaded:a,ICONS:t,PRODUCT_IMAGE_DIMENSIONS:r}),n.jsx("div",{className:Pe["image-zoom--mobile"],ref:l,children:n.jsx(If,{imgRef:u,image:e[i],PRODUCT_IMAGE_DIMENSIONS:r})})]})};Of.displayName="ImageZoom.ImageMobile";const L_=({children:e,Z_INDEX_WAR:t,...r})=>n.jsx("div",{...r,className:Pe["image-zoom-wrapper-mobile"],style:{zIndex:t.pdp_image_zoom},children:e}),D_="_modal_1u87b_1",Qe={modal:D_,"quick-shop__modal":"_quick-shop__modal_1u87b_4","shop-bag":"_shop-bag_1u87b_9","modal-product-body":"_modal-product-body_1u87b_25","pdp-main__info-modifier":"_pdp-main__info-modifier_1u87b_32","modal-header":"_modal-header_1u87b_38","modal-header__title":"_modal-header__title_1u87b_41"};function $_({headerTitle:e,isMobile:t,ICONS:r}){return n.jsx(m.Modal.Header,{navigation:"top",className:Qe["modal-header"],children:n.jsxs(m.Modal.Controls,{navigation:"top",isMobile:t,children:[n.jsx("div",{className:Qe["modal-header__title"],children:n.jsx(m.Modal.Title,{navigation:"top",className:Qe["quick-shop__title"],title:e})}),n.jsx(m.Button,{className:Qe["modal-header__close-button"],"data-close":!0,iconNameStart:r.close,size:"small",variant:"tertiary"})]})})}const z_=({items:e,getLabel:t,PLP_SIZE_ORDER:r})=>Array.isArray(e)?[...e].sort((o,s)=>{const a=t(o).toUpperCase(),i=t(s).toUpperCase(),c=r.indexOf(a)-r.indexOf(i);return c!==0?c:a.localeCompare(i,"pt-BR")}):[],kf=({PDP_INFO:e,PLP_SIZE_ORDER:t,ICONS:r,NEWSLETTER_CONFIGS:o,NOTIFY_INFO:s,PRODUCT_CARD_TEXTS:a,Z_INDEX_WAR:i})=>{const{sizes:c,productId:l,handleViewItemEvent:u}=De(),p=x.useMemo(()=>c!=null&&c.length?z_({items:c,getLabel:j=>j.value,PLP_SIZE_ORDER:t}):[],[c]),{sizesContainerRef:h}=uc(),{isMobile:d}=ce(),f=Bt(),g=Qc(),{setValue:_}=Kc(),{setValue:y}=cs(),b=x.useRef({}),[C,v]=x.useState(null);return n.jsxs("div",{ref:h,className:U.styles.sizes,children:[n.jsx("span",{className:U.styles["sections-title"],children:e.product.size_title}),n.jsx("div",{children:p.map(j=>(!j.available&&!b.current[j.value]&&(b.current[j.value]={disable:!j.available,size:j.value,skuID:j.sku}),n.jsxs(m.ToggleSize.Wrapper,{size:d?"medium":"large",title:j.value,outOfStock:!j.available,onClick:()=>{j.available||(v({skuID:j.sku,size:j.value,disable:!0}),y(!0)),f.sku!==j.sku&&(_({...f,productId:l,name:j.name,size:j.value,sku:j.sku,sellerId:j.sellerId,sellerName:j.sellerName,available:j.available}),u({sku:j.sku,size:j.value}))},active:f.sku===j.sku,children:[n.jsx(m.ToggleSize.DisabledAdornment,{title:"disabled-adornment-texture"}),n.jsx(m.ToggleSize.Text,{children:j==null?void 0:j.value})]},`sizes-${j.sku}-${j.value}`)))}),n.jsx(xs,{open:g,setVisible:y,sku:C,setSku:v,skus:Object.values(b.current),ICONS:r,NEWSLETTER_CONFIGS:o,NOTIFY_INFO:s,PRODUCT_CARD_TEXTS:a,Z_INDEX_WAR:i})]})},Ot=({children:e,className:t,type:r})=>n.jsx("div",{className:m.helpers.classNameConcat(U.styles["pdp-main__info-subsection"],[U.styles[`subsection-${r}`],t]),children:e}),Mf=({children:e,className:t})=>{const{structureRef:r,tipbarRef:o}=je(),s=x.useMemo(()=>{var c,l;const a=((c=r.current)==null?void 0:c.clientHeight)||0,i=((l=o.current)==null?void 0:l.clientHeight)||0;return a+i},[r,o]);return n.jsx("div",{className:m.helpers.classNameConcat(U.styles["pdp-main__info"],t),id:"pdpmaininfo",style:{top:s},children:e})},B_=({children:e,link:t,TOGGLE_STYLE_MODIFIER:r})=>{const{isMobile:o}=ce(),{router:s}=xe(),a=()=>{t&&s.push(t)},i=x.useRef(null);return n.jsx(m.ToggleStyle.Wrapper,{size:o?"medium":"small",style:{...r,border:`${i.current===t?"2":"1"}`,overflow:"hidden",padding:"0"},onClick:a,active:i.current===t,children:e})},Lf=({productId:e,similars:t,TOGGLE_STYLE_MODIFIER:r})=>{const{thumbImage:o}=De(),s=[{productId:e,slug:"",textureImage:(o==null?void 0:o.imageUrl)??"",textureAlt:(o==null?void 0:o.imageText)??""},...t];return n.jsx("div",{children:s.map((a,i)=>a.textureImage?n.jsxs(B_,{link:a.slug?a.slug:null,TOGGLE_STYLE_MODIFIER:r,children:[n.jsx(m.ToggleStyle.DisabledAdornment,{}),n.jsx(m.ToggleStyle.Texture,{children:n.jsx(Be.Image,{alt:a.textureAlt,src:a.textureImage,height:34,width:34,style:{borderRadius:0,height:"100%"}})})]},`similars-item-${i}`):null)})},Df=({TEXTURE_IMAGE:e,TOGGLE_STYLE_MODIFIER:t})=>{const{productId:r}=De(),[o,s]=x.useState([]);return x.useEffect(()=>{fetch("/api/catalog/product/similars",{method:"POST",body:JSON.stringify({productId:r,filterTexture:e})}).then(a=>a.json()).then(({data:a})=>{Array.isArray(a)&&a.length===0||s(a)}).catch(a=>{console.error(a)})},[r]),n.jsxs("div",{className:U.styles.similars,children:[n.jsx("span",{className:U.styles["sections-title"],children:"Cor"}),n.jsx(Lf,{productId:r,similars:o,TOGGLE_STYLE_MODIFIER:t})]})};Df.displayName="PDP.Info.Similars";const F_=({callBackProductAdded:e,BUY_BUTTON_LABELS:t,ICONS:r,NEWSLETTER_CONFIGS:o,NOTIFY_INFO:s,PDP_INFO:a,PLP_SIZE_ORDER:i,PRODUCT_CARD_TEXTS:c,TEXTURE_IMAGE:l,TOGGLE_STYLE_MODIFIER:u,Z_INDEX_WAR:p})=>n.jsx(m.Modal.Body,{className:Qe["modal-product-body"],children:n.jsxs(Mf,{className:Qe["pdp-main__info-modifier"],children:[n.jsxs(Ot,{type:"product-info",children:[n.jsx(Br,{}),n.jsx(Ds,{})]}),n.jsx(Ot,{type:"similars",children:n.jsx(Df,{TEXTURE_IMAGE:l,TOGGLE_STYLE_MODIFIER:u})}),n.jsx(Ot,{type:"sizes",children:n.jsx(kf,{ICONS:r,NEWSLETTER_CONFIGS:o,NOTIFY_INFO:s,PDP_INFO:a,PLP_SIZE_ORDER:i,PRODUCT_CARD_TEXTS:c,Z_INDEX_WAR:p})}),n.jsx(Ot,{type:"actions",children:n.jsx(wf,{showWishlist:!1,callBack:e,addToCartBtnSize:{mobile:"medium",desktop:"large"},BUY_BUTTON_LABELS:t,ICONS:r,Z_INDEX_WAR:p})})]})});function q_({callBackProductAdded:e,QUICKSHOP:t,ICONS:r,...o}){const[s,a]=x.useState(!1),i=()=>a(c=>!c);return n.jsxs("div",{className:Qe["quick-shop"],children:[n.jsx(m.Button,{onClick:i,size:"x-large",className:Qe["shop-bag"],iconNameStart:r.bag,iconSize:"medium"}),n.jsxs(m.Modal.Root,{isOpen:s,setIsOpen:a,className:`${Qe.modal} ${Qe["quick-shop__modal"]}`,style:{position:"fixed",height:"100svh",width:"100%",top:0,zIndex:1e3,bottom:"unset",overflowY:"hidden"},variant:"sideRight",children:[n.jsx($_,{headerTitle:t.title,ICONS:r}),n.jsx(F_,{callBackProductAdded:e,ICONS:r,...o})]})]})}const H_=({image:e})=>n.jsx(br,{src:U.resizingImg(e.imageUrl,{width:50,height:75})||"",alt:e.imageText,className:Pe.mainImage,layout:"fill",objectFit:"cover",priority:!0,quality:10,style:{position:"absolute",inset:0,filter:"blur(10px)"}}),U_=({images:e,selectedImageIndex:t,PRODUCT_IMAGE_DIMENSIONS:r,...o})=>{const[s,a]=x.useState(!1),{nextimage:i}=xe();return n.jsx("div",{...o,className:Pe["main-image-container"],children:n.jsxs("div",{className:Pe["image-desktop"],children:[!s&&n.jsx(H_,{image:e==null?void 0:e[t]}),n.jsx(i,{src:U.resizingImg(e==null?void 0:e[t].imageUrl,{...r.image_zoom.desktop})||"",alt:e==null?void 0:e[t].imageText,className:Pe.mainImage,layout:"fill",objectFit:"cover",priority:!0,quality:100,onLoad:()=>{a(!0)}})]})})},W_=({images:e,onThumbnailClick:t,selectedImageIndex:r})=>{const{nextimage:o}=xe();return n.jsx("div",{className:Pe.thumbs,children:e.map((s,a)=>n.jsx("div",{role:"button",tabIndex:0,onClick:()=>t(a),onKeyDown:i=>{(i.key==="Enter"||i.key===" ")&&t(a)},className:a===r?Pe.selected:"",children:n.jsx(o,{src:s.imageUrl,alt:s.imageText,layout:"responsive",width:100,height:100,objectFit:"cover",priority:!1})},a))})},$f=({images:e,initialSelectedImageIndex:t=0,setShowImageZoom:r,ICONS:o,PRODUCT_IMAGE_DIMENSIONS:s,Z_INDEX_WAR:a,...i})=>{const{isMobile:c}=ce(),[l,u]=x.useState(t),p=h=>{u(h)};return c?n.jsxs(L_,{Z_INDEX_WAR:a,children:[n.jsx(Ki,{onClose:()=>r({show:!1,initialIndex:0}),ICONS:o}),n.jsx(Of,{images:e,ICONS:o,PRODUCT_IMAGE_DIMENSIONS:s})]}):n.jsxs(M_,{Z_INDEX_WAR:a,children:[n.jsx(Ki,{onClose:()=>r({show:!1,initialIndex:0}),ICONS:o}),n.jsx(U_,{images:e,selectedImageIndex:l,onThumbnailClick:p,PRODUCT_IMAGE_DIMENSIONS:s},e[l].imageId??`${e[l].imageText}-${l}`),n.jsx(W_,{images:e,selectedImageIndex:l,onThumbnailClick:p}),n.jsx(q_,{callBackProductAdded:()=>{r({initialIndex:0,show:!1})},ICONS:o,Z_INDEX_WAR:a,...i})]})};$f.displayName="ImageZoom";const V_=({productImgs:e,PRODUCT_IMAGE_DIMENSIONS:t,...r})=>{const{video:o,productName:s}=De(),[a,i]=x.useState({show:!1,initialIndex:0});x.useEffect(()=>(a.show?document.body.classList.add("no-scroll"):document.body.classList.remove("no-scroll"),()=>{document.body.classList.remove("no-scroll")}),[a]);const c=l=>{i({show:!0,initialIndex:l})};return n.jsxs(n.Fragment,{children:[n.jsx(Af,{images:e,video:o,handleZoom:c,productName:s,PRODUCT_IMAGE_DIMENSIONS:t}),a.show&&n.jsx($f,{images:e,initialSelectedImageIndex:a.initialIndex,setShowImageZoom:i,PRODUCT_IMAGE_DIMENSIONS:t,...r})]})},zf=({TEXTURE_IMAGE:e,PRODUCT_IMAGE_DIMENSIONS:t,...r})=>{const{images:o}=De(),s=x.useMemo(()=>{const a=o.filter(i=>!e.includes(i.imageLabel));return a.length>0?a:o},[]);return n.jsx(V_,{productImgs:s,TEXTURE_IMAGE:e,PRODUCT_IMAGE_DIMENSIONS:t,...r})};zf.displayName="PDP.Gallery";const G_=({className:e,hasIcons:t=!0,ICONS:r,PDP_INFO:o})=>{const{allSizesAvailable:s,productId:a}=De(),{setValue:i}=cs(),{sendDataLayerEvent:c}=le();return n.jsx("div",{className:m.helpers.classNameConcat(U.styles.links,e),id:"pdp-container","data-product-id":a,children:n.jsxs("div",{className:U.styles["links-wrapper"],children:[!s&&n.jsx(m.Button,{adornment:t?{start:n.jsx(m.Icon,{name:r.product})}:{},size:"x-small",variant:"tertiary",onClick:()=>i(!0),underline:!0,children:o.links_and_stepper.size_out_of_stock}),n.jsx(m.Button,{adornment:t?{start:n.jsx(m.Icon,{name:r.ruler})}:{},size:"x-small",variant:"tertiary",underline:!0,onClick:()=>{var l,u;(u=window.SizebayParams)==null||u.openChart((l=window.SizebayParams)==null?void 0:l.id),c({functionKey:"readyEvents",data:{event:"select_content",readyData:{content_type:"pdp:guia-de-medidas"}}})},children:o.links_and_stepper.size_table_title}),n.jsx(m.Button,{size:"x-small",variant:"tertiary",className:"sizebay",underline:!0,onClick:()=>{var l,u;return(u=window.SizebayParams)==null?void 0:u.openVFR((l=window.SizebayParams)==null?void 0:l.id)},children:o.links_and_stepper.sizebay})]})})},K_=({children:e})=>n.jsx("div",{className:U.styles["pdp-main__info-main-content"],children:e}),X_=({head:e,className:t})=>n.jsx("thead",{className:t,children:n.jsx("tr",{children:e.map((r,o)=>n.jsx("th",{children:r},`head-title-${o}`))})}),Y_=({rows:e,className:t})=>n.jsx("tbody",{className:t,children:e.map((r,o)=>n.jsx("tr",{children:r.map(s=>typeof s=="string"&&s.includes("blocks")?JSON.parse(s).blocks.map(a=>`${a.text}
42
- `):s).map((s,a)=>n.jsx("td",{children:s},`cell-content-${a}`))},`row-content-${o}`))}),Q_="_tableContainer_1yxy2_1",Z_={tableContainer:Q_},J_=({children:e,className:t=""})=>n.jsx("table",{className:`${Z_.tableContainer} ${t}`,children:e}),Ro={Head:X_,Rows:Y_,Root:J_},ev=({title:e,text:t})=>n.jsxs("p",{className:U.styles.measurementRowsText,children:[n.jsx("h1",{className:U.styles.measurementRowsTitle,children:e}),t]}),tv=({ICONS:e,SIZES:t,Z_INDEX_WAR:r})=>{const o=el(),{setValue:s}=tl();return n.jsx(m.Modal.Root,{isMobile:!0,style:{zIndex:r.modal},setIsOpen:s,isOpen:o,className:U.styles.measurementModal,children:n.jsx(m.Modal.Body,{children:n.jsxs("div",{className:U.styles.measurementContainer,children:[n.jsx("h1",{className:U.styles.measurementTitle,children:t.title}),n.jsxs("div",{className:U.styles.measurementContent,children:[n.jsx("div",{className:U.styles.measurementImageContainer,children:n.jsx(br,{width:264,height:402,alt:"",className:U.styles.measurementImage,src:t.bannerImage})}),n.jsxs(Ro.Root,{className:U.styles.measurementTable,children:[n.jsx(Ro.Head,{className:U.styles.measurementHead,head:t.head}),n.jsx(Ro.Rows,{className:U.styles.measurementRows,rows:t.rows.map((a,i)=>[n.jsx(ev,{title:t.descriptions[i].title,text:t.descriptions[i].text},i),...a])})]})]}),n.jsx(m.Button,{onClick:()=>s(!1),className:U.styles.measurementClose,variant:"tertiary",children:n.jsx(m.Icon,{name:e.close})})]})})},"minicart")},rv=({children:e,className:t,...r})=>n.jsx("div",{className:m.helpers.classNameConcat(U.styles["pdp-main__gallery-wrapper"],t),...r,children:e}),nv=({children:e,className:t,...r})=>n.jsx("div",{className:m.helpers.classNameConcat(U.styles.pdp,t),...r,children:e}),ov=({children:e,className:t,...r})=>n.jsx("div",{className:m.helpers.classNameConcat(U.styles["pdp-main"],t),...r,children:e}),sv=({children:e,className:t,...r})=>n.jsx("div",{className:m.helpers.classNameConcat(U.styles["pdp-main__info-secondary-content"],t),...r,children:e}),av={gallery:rv,pdp:nv,main:ov,secondary:sv},iv=({className:e,...t})=>n.jsx(m.Utils.Divider,{...t,className:m.helpers.classNameConcat(U.styles.divider,e)}),cv=Object.freeze(Object.defineProperty({__proto__:null,AccessibilityInfo:C_,Actions:wf,BreadCrumb:Ef,Credits:Rf,DescriptionsTabs:R_,Divider:iv,Freight:A_,Gallery:zf,Header:Br,Links:G_,MainContent:K_,MainInfo:Mf,Price:Ds,ProductMeasurements:tv,SimilarsItems:Lf,Sizes:kf,SubSectionWrapper:Ot,containers:av},Symbol.toStringTag,{value:"Module"})),lv="_pdc_alo7z_1",We={"pdc--empty":"_pdc--empty_alo7z_1","pdc--grid":"_pdc--grid_alo7z_17","pdc--grid--content":"_pdc--grid--content_alo7z_26","pdc--infinite":"_pdc--infinite_alo7z_41","pdc--infinite--loader":"_pdc--infinite--loader_alo7z_44","pdc--infinite--loader--page":"_pdc--infinite--loader--page_alo7z_54","pdc--infinite--card--disabled":"_pdc--infinite--card--disabled_alo7z_58","pdc--infinite--next-page":"_pdc--infinite--next-page_alo7z_91","pdc--infinite--next-page--card":"_pdc--infinite--next-page--card_alo7z_101","pdc--infinite--next-page--spinner":"_pdc--infinite--next-page--spinner_alo7z_111","pdc--pagination":"_pdc--pagination_alo7z_118",pdc:lv},Bf=({className:e,content:t})=>{const{ICONS:r,PLP_NOT_RESULT:o}=ze(),s=t??o,{router:a}=xe(),{isMobile:i}=ce(),c=()=>{a.push(s.link)};return n.jsxs("div",{className:m.helpers.classNameConcat(We["pdc--empty"],e),children:[n.jsxs(m.TextStructure.DivWrapper,{className:We["pdc--empty-wrapper"],children:[n.jsx("span",{className:i?"typography-style-body-md":"typography-style-heading-sm",children:s.title}),n.jsx("p",{className:i?"typography-style-body-xs":"typography-style-body-sm",children:s.subtitle})]}),n.jsx(m.Button,{adornment:{end:n.jsx(m.Icon,{name:r.arrow_right})},className:"typography-style-body-sm-strong",onClick:()=>c(),variant:"tertiary",children:n.jsx("b",{children:s.text})})]})};Bf.displayName="PDC.Empty";const uv=(e,t)=>{const[r,o]=Ud({items:e}),[s,a]=t.split(":").map(Number);return isNaN(s)||isNaN(a)?[r,o]:[r<s?r:s,o>a?o:a]},dv=()=>{var E;const{ICONS:e,PLP_FILTERS:t,PLP_FILTERS_COLORS:r,PLP_FILTERS_EMPTY:o,PLP_FILTERS_TITLE:s,PLP_SIZE_ORDER:a}=ze(),[i,c]=x.useState("10000:0"),{isMobile:l}=ce(),{sendDataLayerEvent:u}=le(),{openFilters:p,setOpenFilters:h}=gs(),{state:d}=$e(),{breadcrumb:f,deleteAllFacets:g,isLoading:_=!1,facets:y,onToggleFacet:b,selectedFacets:C}=Kl.contexts.searchFacets.hook(),v=x.useRef(""),j={isLast:!0,href:(E=d.term)!=null&&E.length?`/${d.term}`:"",name:d.term},P=U.filterNonRootFacets(C,d==null?void 0:d.base);return x.useEffect(()=>{const S=y.find(({key:R})=>R==="price");if(S){const[R,T]=uv(S.values,i??"10000:0");c(`${R}:${T}`)}},[y,i,c]),x.useEffect(()=>{if(!P.length)return;const S=JSON.stringify(P);v.current!==S&&(v.current=S,u({functionKey:"filterEvent",data:{commonData:{selectedFacets:P}}}))},[P]),n.jsxs(vr.teamComponents.Filter.Root,{CONSTANTS:{ICONS:e,PLP_FILTERS_TITLE:s,PLP_FILTERS:t},breadcrumb:f.length?f:[j],deleteAllFacets:g,filters:{facets:U.filterNonCategorySelected(y,d==null?void 0:d.base),selected:P},isMobile:l??!1,isLoading:_,isOpen:p,price:i,onToggleFacet:b,setIsOpen:h,target:document.body,children:[n.jsx(vr.teamComponents.Filter.Selected,{ICONS:e,PLP_FILTERS:t,PLP_FILTERS_COLORS:r}),n.jsx(vr.teamComponents.Filter.Content,{columns:2,CONSTANTS:{ICONS:e,PLP_FILTERS:t,PLP_FILTERS_COLORS:r,PLP_FILTERS_EMPTY:o,PLP_SIZE_ORDER:a}})]})},Ff=()=>typeof document>"u"?null:n.jsx(dv,{});Ff.displayName="Filters";const $s=({total:e=0})=>{const{SEARCH_TOTAL_PORTAL_ID:t}=ze();if(typeof window>"u")return null;const r=document.getElementById(t);return r?es.createPortal(n.jsxs("span",{children:["[",e,"] produto",e>1?"s":""]}),r):null};$s.displayName="PDC.Grid.NavigationTotal";const fv=({productCount:e,PLP_GRID_SCROLL_BACK:t})=>{x.useEffect(()=>{var a;const o=new URLSearchParams(window.location.search).get("page");if(e){const[i,c]=((a=sessionStorage.getItem(t.key))==null?void 0:a.split("-"))??["0",null],l=sessionStorage.getItem(t.refer);i&&l==="true"&&(c===(o||"null")&&window.document.body.scrollTo({top:parseInt(i,10),behavior:"smooth"}),sessionStorage.setItem(t.refer,"false"))}const s=()=>{e>0&&window.document.body.scrollTop&&sessionStorage.setItem(t.key,`${window.document.body.scrollTop.toString()}-${o}`)};return window.document.body.addEventListener("scroll",s,{passive:!0}),()=>{window.document.body.removeEventListener("scroll",s)}},[e])},pv=()=>{const{isMobile:e}=ce(),{isLoading:t,products:r,total:o}=qt(),s=ze();return fv({productCount:r.length,PLP_GRID_SCROLL_BACK:s.PLP_GRID_SCROLL_BACK}),n.jsxs(n.Fragment,{children:[n.jsx(Ye.Products,{isMobile:e??!1,items:r,...s}),!r.length&&!t&&n.jsx(Ye.Empty,{}),n.jsx($s,{total:o})]})},qf=({infinite:e=!1})=>n.jsx("div",{className:We["pdc--grid"],children:n.jsx("div",{className:We["pdc--grid--content"],children:e?n.jsx(Ye.InfiniteScroller,{}):n.jsx(pv,{})})});qf.displayName="Grid";const vt=e=>({centro:"center",esquerda:"start",direita:"end"})[e],Hf=({children:e,contentState:t,entityKey:r})=>{const{url:o}=t.getEntity(r).getData();return o?n.jsx(Me,{href:o,children:e}):e},mv=(e,t,r)=>{e.findEntityRanges(o=>{const s=o.getEntity();return s===null?!1:r.getEntity(s).getType()==="LINK"},t)},jr=e=>{const t=new Ke.CompositeDecorator([{strategy:mv,component:Hf}]),r=Ke.convertFromRaw(e);return Ke.EditorState.createWithContent(r,t)},hv=e=>Ke.convertFromRaw(e),Cr=Ke.DefaultDraftBlockRenderMap.set("unstyled",{element:"div",aliasedElements:["div"]}),Xi="superior-direita",hr="dentro-inferior-centro",gv="inferior-direita",Ao="dentro-inferior-esquerda",Uf=e=>({position:e===hr||e===Ao?"absolute":"default",shouldRender:[Xi,hr,Ao].includes(e)?"top":"bottom",alignItems:[hr].includes(e)?"center":[Xi,gv].includes(e)?"flex-end":"flex-start",left:e===Ao?"16px":e===hr?"45%":"unset"}),yv=Object.freeze(Object.defineProperty({__proto__:null,CREATE_CONTENT:jr,EXTENDED_BLOCK_RENDER_MAP:Cr,GET_CONTENT_STATE:hv,controllersPositionsAdapter:Uf},Symbol.toStringTag,{value:"Module"})),_v=({expanded:e,content:t})=>n.jsxs("details",{open:e,children:[t.textStructureReduced?n.jsx("summary",{onClick:r=>r.preventDefault(),children:n.jsx(Ke.Editor,{editorKey:"draft-editor-1",blockRenderMap:Cr,editorState:t!=null&&t.textStructureReduced?jr(JSON.parse(t.textStructureReduced)):Ke.EditorState.createEmpty(),onChange:()=>null,readOnly:!0})}):n.jsx(n.Fragment,{}),t.showTextStructureExpander&&t.textStructure?n.jsx(n.Fragment,{children:n.jsx(Ke.Editor,{editorKey:"draft-editor-1",blockRenderMap:Cr,editorState:t.textStructure?jr(JSON.parse(t.textStructure)):Ke.EditorState.createEmpty(),onChange:()=>null,readOnly:!0})}):n.jsx(n.Fragment,{})]}),Wo={"draftjs-text-modifier":"_draftjs-text-modifier_1itwm_2"},vv="_textContentWrapper_1bigo_5",xv="_textContentSection_1bigo_13",Vo={"link-modifier":"_link-modifier_1bigo_1",textContentWrapper:vv,textContentSection:xv},Wf=({data:e,ICONS:t})=>{var s;const[r,o]=x.useState(!1);return n.jsx(m.TextStructure.Root,{layoutProps:{textRow:{alignContent:vt(e.textStructureAlignment),alignItems:vt(e.textStructureAlignment)},columnWrapper:{alignContent:vt(e.textStructureAlignment),alignItems:vt(e.textStructureAlignment)}},adornment:{bottom:e.showTextStructureExpander&&e.textStructure?n.jsx(m.Button,{variant:"tertiary",adornment:{end:n.jsx(m.Icon,{name:r?`${t.arrow_up}`:`${t.arrow_down}`})},onClick:()=>o(a=>!a),size:"small",children:r?"Ver Menos":"Ver Mais"}):n.jsx(n.Fragment,{})},children:n.jsxs(m.Utils.Column,{className:Vo.textContentWrapper,style:{alignItems:vt(e.textStructureAlignment)},children:[n.jsx(m.TextStructure.DivWrapper,{style:{textAlign:vt(e.textStructureAlignment)},mode:e.textStructureMode??"default",className:Wo["draftjs-text-modifier"],children:e.textStructureReduced?n.jsx(_v,{content:e,expanded:r}):n.jsx(n.Fragment,{})}),e.textStructureButtonLabel?n.jsx(Ze,{mode:e.textStructureMode??"default",href:e.textStructureButtonHref??"#",size:e.textStructureButtonSize,className:Vo["link-modifier"],adornments:(s=e.textStructureButtonIcon)!=null&&s.length&&e.enableIcon?{end:n.jsx(m.Icon,{name:e.textStructureButtonIcon})}:void 0,children:e.textStructureButtonLabel}):n.jsx(n.Fragment,{})]})})},bv=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],Yi=e=>({centro:"center",esquerda:"start",direita:"end"})[e],Go=({dateEnd:e,dateInit:t,TIME_ZONE:r="America/Sao_Paulo",...o})=>{const[s,a]=x.useState(Ul(new Us.TZDate(Date.now(),r),new Us.TZDate(e,r))),[i,c]=x.useState(!1);x.useEffect(()=>{i||c(!0);const u=setInterval(()=>{if(s<=0){clearInterval(u);return}a(s-1e3)},1e3);return()=>{clearInterval(u)}},[s,a,i]);const l=Tt(s,"days");return i&&s>0?n.jsxs(m.Timer.Root,{...o,children:[l?n.jsxs(n.Fragment,{children:[n.jsx(m.Timer.Digit,{label:"dias",value:l}),n.jsx(m.Timer.Separator,{})]}):null,n.jsx(m.Timer.Digit,{label:"horas",value:Tt(s,"hours")}),n.jsx(m.Timer.Separator,{}),n.jsx(m.Timer.Digit,{label:"min",value:Tt(s,"minutes")}),n.jsx(m.Timer.Separator,{}),n.jsx(m.Timer.Digit,{label:"segs",value:Tt(s),suppressHydrationWarning:!0})]}):n.jsx(n.Fragment,{})},Qi={"content-modifier":"_content-modifier_16y4u_5","banner-image-wrapper-modifier":"_banner-image-wrapper-modifier_16y4u_13"},Zi=({data:e,videoUrl:t,priority:r,videoRef:o,ICONS:s,...a})=>{const{video:i,image:c,imageHref:l,imageOpacity:u,altImage:p,backgroundColor:h,position:d,contentAlignment:f,showTimer:g,contentOrder:_,timerMode:y,timerEnd:b,timerInit:C,textStructure:v,textStructureReduced:j}=e.banner,P=(l==null?void 0:l.trim())||(c==null?void 0:c.trim())||null,{nextimage:E}=xe();return n.jsxs(m.Banner.Container,{...a,children:[n.jsxs(m.Banner.ImageWrapper,{className:Qi["banner-image-wrapper-modifier"],style:u?{background:h}:void 0,children:[i&&n.jsx(Be.Video,{videoRef:o,src:t,autoPlay:r,loop:!0,playsInline:!0,muted:!0}),P&&!(i!=null&&i.length)&&n.jsx(E,{src:P,width:"1920",height:"1080",alt:p??c??"",...r?{priority:r}:{},style:u?{opacity:"0"}:void 0}),!c&&!(i!=null&&i.length)&&n.jsx("div",{style:{background:h}})]}),g||j||v?n.jsx(m.Banner.Slot,{...bv(d??"centro"),className:Qi["content-modifier"],style:{textAlign:Yi(f)},children:n.jsxs(m.Utils.Column,{gap:"16px",alignItems:Yi(f),children:[g&&_==="timer-first"&&n.jsx(Go,{mode:y??"default",size:"small",dateEnd:b?new Date(b):new Date,dateInit:C?new Date(C):new Date}),n.jsx(Wf,{data:e.banner,ICONS:s}),g&&_!=="timer-first"&&n.jsx(Go,{mode:y??"default",size:"small",dateEnd:b?new Date(b):new Date,dateInit:C?new Date(C):new Date})]})}):n.jsx(n.Fragment,{})]})},Xt=({data:e,className:t,priority:r,creative:o,...s})=>{const{handleSelectPromotionEvent:a,currentLocalRef:i}=le(),{banner:{promotion_name:c},index:l,componentIndex:u}=e,p=typeof l=="number"?`:${l+1}`:"",h={creative_name:o,creative_slot:`${o}-${i.current}:${u+1}${p}`,promotion_id:e.banner.href,promotion_name:c},d=x.useRef(null),f=x.useMemo(()=>{var _;if((_=e.banner.video)!=null&&_.includes("player.vimeo")){const y=e.banner.video.split("?")[1],b=y==null?void 0:y.split("&"),C=b==null?void 0:b.filter(j=>j.includes("loc")||j.includes("signature")||j.includes("user_id")),v=C==null?void 0:C.join("&");return`${e.banner.video.split("?")[0]}?${v}`}return e.banner.video},[e]),g=()=>{var _;(_=d.current)!=null&&_.paused&&d.current.play()};return n.jsx(kr,{eventData:{functionKey:"readyEvents",data:{event:"view_promotion",readyData:{ecommerce:{...h,index:l}}}},observerOptions:{delay:100,...f&&{threshold:.1}},...f&&{callBackWhenVisible:g},children:e.banner.href?n.jsx(Me,{href:e.banner.href,onClick:()=>{a({updatePromotionRef:!0,promotion:h,index:l})},children:n.jsx(Zi,{data:e,videoUrl:f,priority:r,videoRef:d,...s})}):n.jsx(Zi,{data:e,videoUrl:f,priority:r,videoRef:d,...s})})},zs=e=>n.jsx(Xt,{...e}),Vf=({columns:e,count:t,gap:r})=>{var f;const{banners:o,pages:s,products:a}=et(),{isMobile:i}=ce(),{banners:c}=Ar(),{ICONS:l,PRODUCT_CARD_IMAGE_ASPECT_RATIO:u}=ze(),p=((f=s[s.length-1])==null?void 0:f.products.length)??t,h=a[(s.length-1)*t+p-1],d=c.filter((g,_)=>o[_]<h);return Array.isArray(d)?d.map((g,_)=>n.jsx(ot.Banner,{columns:g.columns,gap:r,isMobile:i??!1,position_grid:o[_]+1,totalColumns:e,PRODUCT_CARD_IMAGE_ASPECT_RATIO:u,children:n.jsx(Xt,{data:{banner:g,componentIndex:_},creative:"banner_grid",ICONS:l})},`${g.position_grid}-${_}`)):null};Vf.displayName="PDC.InfiniteScroller.Banners";const Bs=e=>n.jsx("div",{...e,className:We["pdc--infinite--next-page"],children:n.jsx(m.Spinner,{className:We["pdc--infinite--next-page--spinner"]})});Bs.displayName="PDC.Spinner";const Gf=e=>{var o;const{pages:t}=et(),r=t[t.length-1];return(r==null?void 0:r.page)!==((o=r==null?void 0:r.pagination)==null?void 0:o.total)&&!(r!=null&&r.loading)?n.jsx(Bs,{...e}):null};Gf.displayName="PDC.InfiniteScroller.Loading";const Kf=({page:e,...t})=>{const{updateParamPage:r}=et(),{element:o}=Pr({callback:()=>r(e),options:{threshold:0}});return n.jsx("div",{...t,id:`pdc-scroll-infinite-${e.page}`,className:We["pdc--infinite--loader"],"data-page":e.page,ref:o})};Kf.displayName="PDC.Page.Anchor";const Xf=({first:e,gap:t,isMobile:r=!1,item:o,index:s,last:a=!1,order:i,page:c,showVideo:l=!1})=>{const{load:u,handleNotify:p}=et(),{getAvailableProductTag:h}=it(),{BUY_BUTTON_LABELS:d,MAIN_IMAGE:f,PLP_GRID_SCROLL_BACK:g,PLP_INFINITE_SCROLL:_,PLP_PRODUCT_SIMILAR_DELAY:y,PLP_SHOW_VIDEO_ON_PRODUCT_CARD:b,PRODUCT_CARD_IMAGE_ASPECT_RATIO:C,PRODUCT_CARD_TEXTS:v,PRODUCT_CARD_TOP_WISHLIST_TOGGLE:j,PRODUCT_IMAGE_DIMENSIONS:P,SECOND_IMAGE:E,StoreConfig_MainSellerId:S,TEXTURE_IMAGE:R,Z_INDEX_WAR:T,WishListToggle:w}=ze(),N=h(o==null?void 0:o.cluster.highlights);return n.jsx(ot.Card,{className:o.id==="skeleton"?We["pdc--infinite--card--disabled"]:"",gap:t,isMobile:r??!1,item:o,order:i,tag:N,index:s,setSkuSelected:p,showVideo:l,CONSTANTS:{BUY_BUTTON_LABELS:d,MAIN_IMAGE:f,PLP_GRID_SCROLL_BACK:g,PLP_INFINITE_SCROLL:_,PLP_PRODUCT_SIMILAR_DELAY:y,PLP_SHOW_VIDEO_ON_PRODUCT_CARD:b,PRODUCT_CARD_IMAGE_ASPECT_RATIO:C,PRODUCT_CARD_TEXTS:v,PRODUCT_CARD_TOP_WISHLIST_TOGGLE:j,PRODUCT_IMAGE_DIMENSIONS:P,SECOND_IMAGE:E,StoreConfig_MainSellerId:S,TEXTURE_IMAGE:R,Z_INDEX_WAR:T},WishListToggle:w,children:c&&u&&n.jsxs(n.Fragment,{children:[e&&n.jsx(_r.Anchor,{page:c}),!c.loading&&n.jsx(_r.Loader,{page:c}),a&&c.loading&&n.jsx(_r.NextPage,{page:c})]})})};Xf.displayName="PDC.Page.Card";const Yf=({type:e="default",page:t,...r})=>{const{load:o,updatePage:s}=et(),{element:a}=Pr({callback:()=>s(t),onEnterViewportOnce:!0,options:{threshold:1}});return o===!0&&n.jsx("div",{...r,className:We[`pdc--infinite--loader${e==="page"?"--page":""}`],ref:a})};Yf.displayName="PDC.Page.Loader";const Qf=({page:e,...t})=>{var s;const{addNewPage:r}=et(),{element:o}=Pr({callback:()=>{r(e)},onEnterViewportOnce:!0,options:{threshold:[.5,1]}});return((s=e==null?void 0:e.pagination)==null?void 0:s.nextPage)===!0&&e.loading===!0?n.jsx("div",{...t,className:We["pdc--infinite--next-page--card"],"data-next-page":!0,ref:o}):null};Qf.displayName="PDC.Page.NextPage";const _r={Anchor:Kf,Card:Xf,Loader:Yf,NextPage:Qf},Zf=({count:e,gap:t,page:r})=>{const{isMobile:o}=ce(),{columns:s,products:a}=et(),i=(r.page-1)*e,c=Cl(r.products,s);return Array.isArray(r.products)?r.products.map((l,u)=>n.jsx(_r.Card,{first:u===0,last:u===r.products.length-1,gap:t,index:u,item:l.node,isMobile:o??!1,order:a[i+u]+1,page:u===0||u===r.products.length-1?r:void 0,showVideo:!!c.indexOf(u)},a[i+u]+1)):null};Zf.displayName="PDC.Page";const jv=({pages:e,load:t,PLP_GRID_SCROLL_BACK:r})=>{const o=x.useRef(!1);x.useEffect(()=>{const s=e[e.length-1];if(t&&s&&!o.current){const a=sessionStorage.getItem(r.refer),i=sessionStorage.getItem(r.order),c=document.querySelector(a==="true"?`[data-order="${i}"]`:`#pdc-scroll-infinite-${s.page}`);c&&(o.current=!0,sessionStorage.setItem(r.refer,"false"),s.page>1&&c.scrollIntoView({behavior:"instant",block:"start"}))}if(!t&&o.current){o.current=!1;const a=document.querySelector("body > main");a&&a.scrollIntoView({behavior:"instant",block:"start"})}},[t,e])},Cv=()=>{var c,l;const{count:e}=$e(),{columns:t,gap:r,load:o,pages:s,total:a}=et(),{PLP_GRID_SCROLL_BACK:i}=ze();return jv({pages:s,load:o,PLP_GRID_SCROLL_BACK:i}),n.jsxs(n.Fragment,{children:[o===!0&&((l=(c=s[0])==null?void 0:c.pagination)==null?void 0:l.count)===0&&n.jsx(Ye.Empty,{}),n.jsxs(ot.Root,{children:[Array.isArray(s)&&s.map((u,p)=>n.jsx(Zf,{count:e,gap:r,page:u},p)),n.jsx(Vf,{columns:t,count:e,gap:r})]}),n.jsx($s,{total:a}),n.jsx(Gf,{})]})},Jf=()=>{const{banners:e}=Ar();return n.jsx($l,{banners:e,children:n.jsx(Cv,{})})};Jf.displayName="PDC.InfiniteScroller";const ep=()=>{const{setOpenFilters:e}=gs(),{selectedFacets:t,onToggleFacet:r,onSort:o}=pl(),{state:s}=$e(),{Z_INDEX_WAR:a}=ze(),i=U.filterNonRootFacets(t,s==null?void 0:s.base);return n.jsx(at.Root,{onSort:o,setOpenFilters:e,style:{zIndex:a.plp_navigation},children:n.jsx(at.Selected,{callback:r,selected:i})})};ep.displayName="Navigation";const Ko=({currentPage:e,callback:t,type:r,...o})=>n.jsx(m.Button,{...o,iconNameStart:`arrow-${r}`,onClick:()=>{typeof t=="function"&&t(r==="left"?"prev":"")},size:"large",variant:"tertiary"});Ko.displayName="Arrow";const Xo=({active:e,prev:t,ellipses:r,page:o,selectedPage:s})=>n.jsxs(n.Fragment,{children:[r&&t&&n.jsx(m.Button,{size:"large",variant:"tertiary",children:"..."}),e&&n.jsx(m.Pagination.Item,{isActive:!1,index:o,variant:"tertiary",onClick:()=>{typeof s=="function"&&s(o)},children:o}),r&&!t&&n.jsx(m.Button,{size:"large",variant:"tertiary",children:"..."})]});Xo.displayName="PageEllipses";const tp=({children:e,endPage:t,page:r,total:o,selectedPage:s,ITEMS_PER_SECTION:a})=>n.jsxs(n.Fragment,{children:[n.jsx(Xo,{active:r>=a&&o>a,selectedPage:s,currentPage:r,prev:!1,ellipses:r>a&&o>a,page:1}),e,n.jsx(Xo,{active:o-r>1&&o!==t,selectedPage:s,currentPage:r,prev:!0,ellipses:t<o-1,page:o})]});tp.displayName="Pagination.Layout";const Sv=(e,t,r)=>{const o=new URLSearchParams(r);return o.set(e,t),o.toString()},Pv=(e,t)=>{const r=[];for(let o=e;o<=t;o++)r.push(o);return r},wv=({currentPage:e,total:t,maxVisiblePages:r,SEARCH_PAGE_ITEM_THRESHOLD:o})=>{const s=t>=o?o:t,a=Math.max(1,e===s?s-r+1:e-Math.floor(r/2)),i=Math.min(s,a+r-1);return{startPage:a,endPage:i,totalPages:s}},rp=({currentPage:e,pages:t,searchParams:r,VARIANT_PAGINATION:o})=>{const{router:s,pathname:a}=xe();return Array.isArray(t)?t.map(i=>n.jsx(m.Pagination.Item,{isActive:e===i,index:i,variant:e===i?o.active:o.default,onClick:()=>s.push(`${a}?${Sv("page",i.toString(),r)}`),children:i},i)):null};rp.displayName="Pages";const Fs=({query:e,type:t="default",searchParams:r,ITEMS_DEFAULT_SORT:o,ITEMS_PER_SECTION:s,ITEMS_PER_PAGE:a,SEARCH_PAGE_ITEM_THRESHOLD:i,VARIANT_PAGINATION:c,...l})=>{const{router:u,pathname:p}=xe(),{state:{page:h=1}}=$e(),{pagination:{total:d}}=qt(),{endPage:f,totalPages:g,startPage:_}=wv({currentPage:h,total:d,maxVisiblePages:s,SEARCH_PAGE_ITEM_THRESHOLD:i}),y=C=>{const v=C.toString(),j=new URLSearchParams(r.toString());t==="default"&&j.set("page",v),t==="search"&&(j.set("query",e??""),j.set("count",a.toString()),j.set("page",v),o&&j.set("sort",o.replace("_",":")));const E=`${t==="search"?"/search":p}?${j.toString()}`;u.push(E)},b=C=>{y(C==="prev"?h-1:h+1)};return d?n.jsx("div",{...l,className:We["pdc--pagination"],children:n.jsx(m.Pagination.Wrapper,{adornment:{start:n.jsx(Ko,{callback:b,currentPage:h,disabled:h<2,type:"left"}),end:n.jsx(Ko,{callback:b,currentPage:h,disabled:h>=g,type:"right"})},children:n.jsx(tp,{endPage:f,page:h,selectedPage:y,total:d,ITEMS_PER_SECTION:s,children:n.jsx(rp,{currentPage:h,pages:Pv(_,f),searchParams:r,VARIANT_PAGINATION:c})})})}):n.jsx(n.Fragment,{})};Fs.displayName="Pagination";const np=({gap:e,isMobile:t})=>{const{count:r,state:o}=$e(),{banners:s}=Ar(),{ICONS:a,PRODUCT_CARD_IMAGE_ASPECT_RATIO:i}=ze(),c=s.filter(l=>Pl(l.position_grid,o.page,r));return Array.isArray(c)?c.map((l,u)=>n.jsx(ot.Banner,{columns:l.columns,gap:e,isMobile:t,position_grid:l.position_grid,totalColumns:t?2:4,PRODUCT_CARD_IMAGE_ASPECT_RATIO:i,children:n.jsx(Xt,{data:{banner:l,componentIndex:u},creative:"banner_grid",ICONS:a})},l.position_grid)):null};np.displayName="PDC.Grid.Banners";const qs=({isMobile:e=!1,items:t,BUY_BUTTON_LABELS:r,ICONS:o,MAIN_IMAGE:s,NEWSLETTER_CONFIGS:a,NOTIFY_INFO:i,PLP_GRID_SCROLL_BACK:c,PLP_INFINITE_SCROLL:l,PLP_PRODUCT_SIMILAR_DELAY:u,PLP_SHOW_VIDEO_ON_PRODUCT_CARD:p,PRODUCT_CARD_IMAGE_ASPECT_RATIO:h,PRODUCT_CARD_TEXTS:d,PRODUCT_CARD_TOP_WISHLIST_TOGGLE:f,PRODUCT_IMAGE_DIMENSIONS:g,SECOND_IMAGE:_,StoreConfig_MainSellerId:y,TEXTURE_IMAGE:b,Z_INDEX_WAR:C,WishListToggle:v})=>{const{getAvailableProductTag:j}=it(),{count:P,state:E}=$e(),[S,R]=x.useState(!1),[T,w]=x.useState(null),[N,I]=x.useState([]),z=x.useCallback((F,V)=>{const G=V?Er([V]):null;I(F),w(G!=null&&G.length?G[0]:null),R(!0)},[]),O=e?8:16,W=(E.page-1)*P,q=ot.helpers.createGridPosAndVideo(t,[],e?2:4,E.page);return n.jsxs(n.Fragment,{children:[n.jsxs(ot.Root,{children:[Array.isArray(t)&&t.map((F,V)=>{var B,J;const G=j(F.node.cluster.highlights);return n.jsx(ot.Card,{gap:O,isMobile:e??!1,item:F.node,order:W+(((B=q[V])==null?void 0:B.position)??0),tag:G,index:V,setSkuSelected:z,showVideo:(J=q[V])==null?void 0:J.canPlayVideo,CONSTANTS:{BUY_BUTTON_LABELS:r,MAIN_IMAGE:s,PLP_GRID_SCROLL_BACK:c,PLP_INFINITE_SCROLL:l,PLP_PRODUCT_SIMILAR_DELAY:u,PLP_SHOW_VIDEO_ON_PRODUCT_CARD:p,PRODUCT_CARD_IMAGE_ASPECT_RATIO:h,PRODUCT_CARD_TEXTS:d,PRODUCT_CARD_TOP_WISHLIST_TOGGLE:f,PRODUCT_IMAGE_DIMENSIONS:g,SECOND_IMAGE:_,StoreConfig_MainSellerId:y,TEXTURE_IMAGE:b,Z_INDEX_WAR:C},WishListToggle:v},F.node.sku)}),t.length>0&&n.jsx(np,{gap:O,isMobile:e??!1})]}),n.jsx(Rr,{open:S,sku:T,skus:N,setSku:w,setVisible:R,ICONS:o,NEWSLETTER_CONFIGS:a,NOTIFY_INFO:i,PRODUCT_CARD_TEXTS:d,Z_INDEX_WAR:C})]})};qs.displayName="PDC.Products";const Ye={Empty:Bf,Filters:Ff,Grid:qf,InfiniteScroller:Jf,Spinner:Bs,Navigation:ep,Notification:Rr,Pagination:Fs,Products:qs},op=({className:e,...t})=>{const{searchParams:r,ITEMS_DEFAULT_SORT:o,ITEMS_PER_SECTION:s,ITEMS_PER_PAGE:a,PLP_INFINITE_SCROLL:i,SEARCH_PAGE_ITEM_THRESHOLD:c,VARIANT_PAGINATION:l}=t;return n.jsx(bm,{...t,children:n.jsxs("div",{className:m.helpers.classNameConcat(We.pdc,e),children:[n.jsxs(fl,{forceUpdate:!0,children:[n.jsx(Ye.Navigation,{}),n.jsx(Ye.Filters,{})]}),i===!0?n.jsx(Ye.Grid,{infinite:!0}):n.jsxs(hs,{forceUpdate:!0,query:r.get("query")??void 0,children:[n.jsx(Ye.Grid,{}),n.jsx(Ye.Pagination,{searchParams:r,ITEMS_DEFAULT_SORT:o,ITEMS_PER_SECTION:s,ITEMS_PER_PAGE:a,SEARCH_PAGE_ITEM_THRESHOLD:c,VARIANT_PAGINATION:l})]})]})})};op.displayName="Templates.PDC";const sp=x.createContext({}),Ev=({children:e,...t})=>n.jsx(sp.Provider,{value:t,children:e}),Fr=()=>{const e=x.useContext(sp);if(e===void 0)throw new Error("useSearchConstants must be used within a SearchConstantsProvider");return e},Rv="_grid_e75z7_21",Av="_navigation_e75z7_44",Nv="_spinner_e75z7_70",Iv="_sort_e75z7_76",st={"rearch-result--empty":"_rearch-result--empty_e75z7_1",grid:Rv,"grid-header":"_grid-header_e75z7_37",navigation:Av,"result-disclaimer":"_result-disclaimer_e75z7_51",spinner:Nv,sort:Iv,"search-result":"_search-result_e75z7_91"},ap=({term:e})=>{const{router:t}=xe(),{SEARCH_RESULT:r,ICONS:o}=Fr(),s=()=>{t.push(r.EMPTY.ALL_TERMS)};return n.jsxs("div",{className:st["rearch-result--empty"],children:[n.jsxs(m.TextStructure.DivWrapper,{children:[n.jsx("div",{className:U.responsive["responsive-desktop-flex"],children:n.jsx("h2",{className:"typography-style-heading-sm",children:r.EMPTY.NOT_FOUND})}),n.jsx("div",{className:U.responsive["responsive-mobile-flex"],children:n.jsx("h2",{className:"typography-style-body-md",children:r.EMPTY.NOT_FOUND})}),n.jsxs("p",{children:[r.EMPTY.NOT_FOUND_P," ",`"${e}"`]})]}),n.jsx(m.Button,{onClick:()=>s(),variant:"tertiary",size:"medium",adornment:{end:n.jsx(m.Icon,{name:o.arrow_right,size:"medium"})},children:r.EMPTY.ALL_TERMS_LABEL})]})};ap.displayName="RearchResult.Empty";const Tv=e=>n.jsxs(n.Fragment,{children:[n.jsx("div",{className:U.responsive["responsive-desktop-flex"],children:n.jsx("h2",{className:"typography-style-heading-sm",children:e.SEARCH.SEARCHING})}),n.jsx("div",{className:U.responsive["responsive-mobile-flex"],children:n.jsx("h2",{className:"typography-style-body-md",children:e.SEARCH.SEARCHING})}),n.jsx(m.Spinner,{className:st.spinner})]}),Ov=(e,t,r)=>n.jsxs(n.Fragment,{children:[n.jsx("div",{className:U.responsive["responsive-desktop-flex"],children:n.jsx("h2",{className:"typography-style-heading-sm",children:t.SEARCH.SEARCHED})}),n.jsx("div",{className:U.responsive["responsive-mobile-flex"],children:n.jsx("h2",{className:"typography-style-body-md",children:t.SEARCH.SEARCHED})}),n.jsxs("p",{children:[t.SEARCH.SEARCHED_P_START," ",e," ",t.SEARCH.SEARCHED_P_END," ",`"${r}"`]})]}),ip=({isLoading:e,quantity:t,term:r})=>{const{SEARCH_RESULT:o}=Fr();return n.jsx(m.TextStructure.DivWrapper,{children:e?Tv(o):Ov(t,o,r)})};ip.displayName="Search.Loading";const kv=({term:e})=>{const[t,r]=x.useState(!1),{router:o}=xe(),{searchParams:s}=$e(),{ITEMS_DEFAULT_SORT:a,ITEMS_PER_PAGE:i,ICONS:c}=Fr(),l=u=>{U.navigateToSearchPage(o,e,i,1,u??a)};return n.jsx("div",{className:st.sort,children:n.jsx(Lr,{handleSelectValue:u=>l(u??"release_desc"),sortListOpen:t,setSortListOpen:r,searchParams:s,ICONS:c})})},Mv=({query:e})=>{const{isLoading:t,products:r,pagination:o}=qt();return n.jsxs("div",{className:st["grid-header"],children:[n.jsxs("div",{className:st.navigation,children:[!t&&(r!=null&&r.length)?n.jsx(kv,{term:e}):null,n.jsx(m.Utils.Divider,{})]}),!t&&(r!=null&&r.length)?n.jsx("div",{className:st["result-disclaimer"],children:n.jsx(ip,{term:e,isLoading:t,quantity:o.count})}):null]})},cp=({isMobile:e=!1,query:t})=>{const{isLoading:r,products:o,pagination:s}=qt(),{searchParams:a}=$e(),i=Fr(),{sendDataLayerEvent:c}=le(),l=x.useRef({query:t,sended:!1}),u=x.useMemo(()=>!r&&o.length>0&&s.count>0,[r,o.length,s.count]);return x.useEffect(()=>{if(!r){if(l.current.query!==t){l.current.sended=!1,l.current.query=t;return}l.current.sended||(c({functionKey:"readyEvents",data:{event:"view_search_results",readyData:{search_term:t,search_found:(o==null?void 0:o.length)>0}}}),l.current.sended=!0)}},[t,o,r,c]),n.jsxs("div",{className:st.grid,children:[u?n.jsx(Mv,{query:t}):n.jsx(n.Fragment,{}),!r&&(o!=null&&o.length)?n.jsx(qs,{isMobile:e??!1,items:o,...i}):n.jsx(n.Fragment,{}),(o==null?void 0:o.length)===0&&!r?n.jsx(ap,{term:t}):null,u&&n.jsx(Fs,{searchParams:a,...i})]})};cp.displayName="SearchResultContent";const Lv=({className:e})=>{const{state:t}=$e(),{isMobile:r}=ce();return n.jsx(hs,{forceUpdate:!1,query:t.term??"",children:n.jsx("div",{className:m.helpers.classNameConcat(st["search-result"],e),children:n.jsx(cp,{currentPage:t.page,isMobile:r??!1,query:t.term??""})})})},lp=({className:e,searchParams:t,CONSTANTS:r})=>{const o=new URLSearchParams(t??""),s=String((o==null?void 0:o.get("query"))??""),a=Number((o==null?void 0:o.get("count"))??0),i=Number((o==null?void 0:o.get("page"))??0),c=String((o==null?void 0:o.get("sort"))??"");return n.jsx(Ev,{...r,children:n.jsx(ms,{sort:c,state:{sort:c,base:"",facets:[],term:s,page:i,count:a},count:a,searchParams:o,ITEMS_PER_PAGE:r.ITEMS_PER_PAGE,children:n.jsx(Lv,{className:e})})})};lp.displayName="Search";const Dv=({page:e,data:t})=>{const{pathname:r}=xe(),o=x.useRef(null),{sendDataLayerEvent:s,currentLocalRef:a,itemListRef:i,promotionEventRef:c}=le();return x.useEffect(()=>{const l=El("login_event")||"{}",u=JSON.parse(l);if(u.name||u.method){const p=new Date(0);s({functionKey:"readyEvents",data:{event:u.name,readyData:{method:u.method}}}),_s("login_event","",{expires:p})}},[]),x.useEffect(()=>{if(o.current===r)return;o.current=r;let l={};switch(e){case"PDP":{const p=t,h={};if(!p){l={page_category:"pdp"};break}p.items.forEach(({itemId:d,sellers:f})=>h[d]=f[0].commertialOffer.AvailableQuantity),l={page_category:"pdp",seller_ids:p.items.map(({sellers:d})=>d[0].sellerId).join(),skuStocks:h,product_reference_id:p.productReference};break}case"PDC":{const{page_category:p,page_departament:h,id:d,name:f}=hc(),g=f,_=d;l={page_category:"lista_produtos",...h&&{page_departament:h}},i.current={item_list_name:r==="/search"?"busca":g??void 0,item_list_id:r==="/search"?void 0:_??void 0},h&&s({functionKey:"readyEvents",data:{event:"view_category",readyData:{page_category:p,page_departament:h}}});break}default:l={page_category:e},c.current={},i.current={};break}const u={region:e,...l};a.current=e,s({functionKey:"readyEvents",data:{readyData:{vtex_version:"fast",...u}},timeout:0})},[r]),null};var Yo={exports:{}};function $v(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 No={},Io={},Ji;function zv(){return Ji||(Ji=1,function(e){"use client";Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"LoadableContext",{enumerable:!0,get:function(){return o}});const o=ke._(x).default.createContext(null);process.env.NODE_ENV!=="production"&&(o.displayName="LoadableContext")}(Io)),Io}var ec;function Bv(){return ec||(ec=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return f}});const r=ke._(x),o=zv();function s(g){return g&&g.default?g.default:g}const a=[],i=[];let c=!1;function l(g){let _=g(),y={loading:!0,loaded:null,error:null};return y.promise=_.then(b=>(y.loading=!1,y.loaded=b,b)).catch(b=>{throw y.loading=!1,y.error=b,b}),y}function u(g,_){let y=Object.assign({loader:null,loading:null,delay:200,timeout:null,webpack:null,modules:null},_),b=null;function C(){if(!b){const P=new p(g,y);b={getCurrentValue:P.getCurrentValue.bind(P),subscribe:P.subscribe.bind(P),retry:P.retry.bind(P),promise:P.promise.bind(P)}}return b.promise()}if(typeof window>"u"&&a.push(C),!c&&typeof window<"u"){const P=y.webpack&&typeof $v.resolveWeak=="function"?y.webpack():y.modules;P&&i.push(E=>{for(const S of P)if(E.includes(S))return C()})}function v(){C();const P=r.default.useContext(o.LoadableContext);P&&Array.isArray(y.modules)&&y.modules.forEach(E=>{P(E)})}function j(P,E){v();const S=r.default.useSyncExternalStore(b.subscribe,b.getCurrentValue,b.getCurrentValue);return r.default.useImperativeHandle(E,()=>({retry:b.retry}),[]),r.default.useMemo(()=>S.loading||S.error?r.default.createElement(y.loading,{isLoading:S.loading,pastDelay:S.pastDelay,timedOut:S.timedOut,error:S.error,retry:b.retry}):S.loaded?r.default.createElement(s(S.loaded),P):null,[P,S])}return j.preload=()=>C(),j.displayName="LoadableComponent",r.default.forwardRef(j)}class p{promise(){return this._res.promise}retry(){this._clearTimeouts(),this._res=this._loadFn(this._opts.loader),this._state={pastDelay:!1,timedOut:!1};const{_res:_,_opts:y}=this;_.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(b=>{this._update({}),this._clearTimeouts()}),this._update({})}_update(_){this._state={...this._state,error:this._res.error,loaded:this._res.loaded,loading:this._res.loading,..._},this._callbacks.forEach(y=>y())}_clearTimeouts(){clearTimeout(this._delay),clearTimeout(this._timeout)}getCurrentValue(){return this._state}subscribe(_){return this._callbacks.add(_),()=>{this._callbacks.delete(_)}}constructor(_,y){this._loadFn=_,this._opts=y,this._callbacks=new Set,this._delay=null,this._timeout=null,this.retry()}}function h(g){return u(l,g)}function d(g,_){let y=[];for(;g.length;){let b=g.pop();y.push(b(_))}return Promise.all(y).then(()=>{if(g.length)return d(g,_)})}h.preloadAll=()=>new Promise((g,_)=>{d(a).then(g,_)}),h.preloadReady=g=>(g===void 0&&(g=[]),new Promise(_=>{const y=()=>(c=!0,_());d(i,g).then(y,y)})),typeof window<"u"&&(window.__NEXT_PRELOADREADY=h.preloadReady);const f=h}(No)),No}(function(e,t){Object.defineProperty(t,"__esModule",{value:!0});function r(p,h){for(var d in h)Object.defineProperty(p,d,{enumerable:!0,get:h[d]})}r(t,{noSSR:function(){return l},default:function(){return u}});const o=ke,s=o._(x),a=o._(Bv()),i=typeof window>"u";function c(p){return{default:(p==null?void 0:p.default)||p}}function l(p,h){if(delete h.webpack,delete h.modules,!i)return p(h);const d=h.loading;return()=>s.default.createElement(d,{error:null,isLoading:!0,pastDelay:!1,timedOut:!1})}function u(p,h){let d=a.default,f={loading:y=>{let{error:b,isLoading:C,pastDelay:v}=y;if(!v)return null;if(process.env.NODE_ENV!=="production"){if(C)return null;if(b)return s.default.createElement("p",null,b.message,s.default.createElement("br",null),b.stack)}return null}};p instanceof Promise?f.loader=()=>p:typeof p=="function"?f.loader=p:typeof p=="object"&&(f={...f,...p}),f={...f,...h};const g=f.loader,_=()=>g!=null?g().then(c):Promise.resolve(c(()=>null));return f.loadableGenerated&&(f={...f,...f.loadableGenerated},delete f.loadableGenerated),typeof f.ssr=="boolean"&&!f.ssr?(delete f.webpack,delete f.modules,l(d,f)):d({...f,loader:_})}(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)})(Yo,Yo.exports);var Fv=Yo.exports,qv=Fv;const Hv=Nr(qv);var Qo={exports:{}},gr={exports:{}},tc;function Uv(){return tc||(tc=1,function(e,t){Object.defineProperty(t,"__esModule",{value:!0});function r(l,u){for(var p in u)Object.defineProperty(l,p,{enumerable:!0,get:u[p]})}r(t,{DOMAttributeNames:function(){return o},isEqualNode:function(){return a},default:function(){return c}});const o={acceptCharset:"accept-charset",className:"class",htmlFor:"for",httpEquiv:"http-equiv",noModule:"noModule"};function s(l){let{type:u,props:p}=l;const h=document.createElement(u);for(const g in p){if(!p.hasOwnProperty(g)||g==="children"||g==="dangerouslySetInnerHTML"||p[g]===void 0)continue;const _=o[g]||g.toLowerCase();u==="script"&&(_==="async"||_==="defer"||_==="noModule")?h[_]=!!p[g]:h.setAttribute(_,p[g])}const{children:d,dangerouslySetInnerHTML:f}=p;return f?h.innerHTML=f.__html||"":d&&(h.textContent=typeof d=="string"?d:Array.isArray(d)?d.join(""):""),h}function a(l,u){if(l instanceof HTMLElement&&u instanceof HTMLElement){const p=u.getAttribute("nonce");if(p&&!l.getAttribute("nonce")){const h=u.cloneNode(!0);return h.setAttribute("nonce",""),h.nonce=p,p===l.nonce&&l.isEqualNode(h)}}return l.isEqualNode(u)}let i;process.env.__NEXT_STRICT_NEXT_HEAD?i=(l,u)=>{const p=document.querySelector("head");if(!p)return;const h=p.querySelectorAll('meta[name="next-head"]')||[],d=[];if(l==="meta"){const _=p.querySelector("meta[charset]");_&&d.push(_)}for(let _=0;_<h.length;_++){var f;const b=h[_].nextSibling;(b==null||(f=b.tagName)==null?void 0:f.toLowerCase())===l&&d.push(b)}const g=u.map(s).filter(_=>{for(let y=0,b=d.length;y<b;y++){const C=d[y];if(a(C,_))return d.splice(y,1),!1}return!0});d.forEach(_=>{var y;const b=_.previousSibling;if(b&&b.getAttribute("name")==="next-head"){var C;(C=_.parentNode)==null||C.removeChild(b)}(y=_.parentNode)==null||y.removeChild(_)}),g.forEach(_=>{var y;const b=document.createElement("meta");b.name="next-head",b.content="1",((y=_.tagName)==null?void 0:y.toLowerCase())==="meta"&&_.getAttribute("charset")||p.appendChild(b),p.appendChild(_)})}:i=(l,u)=>{const p=document.getElementsByTagName("head")[0],h=p.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 d=Number(h.content),f=[];for(let y=0,b=h.previousElementSibling;y<d;y++,b=(b==null?void 0:b.previousElementSibling)||null){var g;(b==null||(g=b.tagName)==null?void 0:g.toLowerCase())===l&&f.push(b)}const _=u.map(s).filter(y=>{for(let b=0,C=f.length;b<C;b++){const v=f[b];if(a(v,y))return f.splice(b,1),!1}return!0});f.forEach(y=>{var b;return(b=y.parentNode)==null?void 0:b.removeChild(y)}),_.forEach(y=>p.insertBefore(y,h)),h.content=(d-f.length+_.length).toString()};function c(){return{mountedInstances:new Set,updateHead:l=>{const u={};l.forEach(d=>{if(d.type==="link"&&d.props["data-optimized-fonts"]){if(document.querySelector('style[data-href="'+d.props["data-href"]+'"]'))return;d.props.href=d.props["data-href"],d.props["data-href"]=void 0}const f=u[d.type]||[];f.push(d),u[d.type]=f});const p=u.title?u.title[0]:null;let h="";if(p){const{children:d}=p.props;h=typeof d=="string"?d:Array.isArray(d)?d.join(""):""}h!==document.title&&(document.title=h),["meta","base","link","style","script"].forEach(d=>{i(d,u[d]||[])})}}}(typeof t.default=="function"||typeof t.default=="object"&&t.default!==null)&&typeof t.default.__esModule>"u"&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)}(gr,gr.exports)),gr.exports}(function(e,t){"use client";Object.defineProperty(t,"__esModule",{value:!0});function r(P,E){for(var S in E)Object.defineProperty(P,S,{enumerable:!0,get:E[S]})}r(t,{handleClientScriptLoad:function(){return _},initScriptLoader:function(){return C},default:function(){return j}});const o=ke,s=Ir(),a=o._(es),i=s._(x),c=ff(),l=Uv(),u=xu(),p=new Map,h=new Set,d=["onLoad","onReady","dangerouslySetInnerHTML","children","onError","strategy","stylesheets"],f=P=>{if(a.default.preinit){P.forEach(E=>{a.default.preinit(E,{as:"style"})});return}if(typeof window<"u"){let E=document.head;P.forEach(S=>{let R=document.createElement("link");R.type="text/css",R.rel="stylesheet",R.href=S,E.appendChild(R)})}},g=P=>{const{src:E,id:S,onLoad:R=()=>{},onReady:T=null,dangerouslySetInnerHTML:w,children:N="",strategy:I="afterInteractive",onError:z,stylesheets:O}=P,W=S||E;if(W&&h.has(W))return;if(p.has(E)){h.add(W),p.get(E).then(R,z);return}const q=()=>{T&&T(),h.add(W)},F=document.createElement("script"),V=new Promise((G,B)=>{F.addEventListener("load",function(J){G(),R&&R.call(this,J),q()}),F.addEventListener("error",function(J){B(J)})}).catch(function(G){z&&z(G)});w?(F.innerHTML=w.__html||"",q()):N?(F.textContent=typeof N=="string"?N:Array.isArray(N)?N.join(""):"",q()):E&&(F.src=E,p.set(E,V));for(const[G,B]of Object.entries(P)){if(B===void 0||d.includes(G))continue;const J=l.DOMAttributeNames[G]||G.toLowerCase();F.setAttribute(J,B)}I==="worker"&&F.setAttribute("type","text/partytown"),F.setAttribute("data-nscript",I),O&&f(O),document.body.appendChild(F)};function _(P){const{strategy:E="afterInteractive"}=P;E==="lazyOnload"?window.addEventListener("load",()=>{(0,u.requestIdleCallback)(()=>g(P))}):g(P)}function y(P){document.readyState==="complete"?(0,u.requestIdleCallback)(()=>g(P)):window.addEventListener("load",()=>{(0,u.requestIdleCallback)(()=>g(P))})}function b(){[...document.querySelectorAll('[data-nscript="beforeInteractive"]'),...document.querySelectorAll('[data-nscript="beforePageRender"]')].forEach(E=>{const S=E.id||E.getAttribute("src");h.add(S)})}function C(P){P.forEach(_),b()}function v(P){const{id:E,src:S="",onLoad:R=()=>{},onReady:T=null,strategy:w="afterInteractive",onError:N,stylesheets:I,...z}=P,{updateScripts:O,scripts:W,getIsSsr:q,appDir:F,nonce:V}=(0,i.useContext)(c.HeadManagerContext),G=(0,i.useRef)(!1);(0,i.useEffect)(()=>{const J=E||S;G.current||(T&&J&&h.has(J)&&T(),G.current=!0)},[T,E,S]);const B=(0,i.useRef)(!1);if((0,i.useEffect)(()=>{B.current||(w==="afterInteractive"?g(P):w==="lazyOnload"&&y(P),B.current=!0)},[P,w]),(w==="beforeInteractive"||w==="worker")&&(O?(W[w]=(W[w]||[]).concat([{id:E,src:S,onLoad:R,onReady:T,onError:N,...z}]),O(W)):q&&q()?h.add(E||S):q&&!q()&&g(P)),F){if(I&&I.forEach(J=>{a.default.preinit(J,{as:"style"})}),w==="beforeInteractive")return S?(a.default.preload(S,z.integrity?{as:"script",integrity:z.integrity}:{as:"script"}),i.default.createElement("script",{nonce:V,dangerouslySetInnerHTML:{__html:"(self.__next_s=self.__next_s||[]).push("+JSON.stringify([S])+")"}})):(z.dangerouslySetInnerHTML&&(z.children=z.dangerouslySetInnerHTML.__html,delete z.dangerouslySetInnerHTML),i.default.createElement("script",{nonce:V,dangerouslySetInnerHTML:{__html:"(self.__next_s=self.__next_s||[]).push("+JSON.stringify([0,{...z}])+")"}}));w==="afterInteractive"&&S&&a.default.preload(S,z.integrity?{as:"script",integrity:z.integrity}:{as:"script"})}return null}Object.defineProperty(v,"__nextScript",{value:!0});const j=v;(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)})(Qo,Qo.exports);var Wv=Qo.exports,Vv=Wv;const up=Nr(Vv),Gv=({children:e,ONE_TRUST:t})=>n.jsxs(n.Fragment,{children:[n.jsx(up,{src:"https://cdn.cookielaw.org/scripttemplates/otSDKStub.js",defer:!0,strategy:"afterInteractive","data-domain-script":t.siteId,type:"text/javascript"}),e]}),Kv=Hv(()=>Promise.resolve(Gv),{ssr:!1}),Xv={"snackbar-modifier":"_snackbar-modifier_1va2l_1"},kt=({size:e,adornment:t,title:r,subtitle:o,supportChildren:s,className:a,Z_INDEX_WAR:i,...c})=>n.jsxs(m.SnackBar.Structure,{...c,size:e,className:m.helpers.classNameConcat(Xv["snackbar-modifier"],a),width:360,style:{zIndex:i.snackbar},children:[n.jsx(m.SnackBar.Content,{adornment:t,title:r,subtitle:o}),s&&n.jsx(m.SnackBar.Support,{children:s})]});kt.displayName="SnackBar";const Yv="_container_1kcm0_20",Qv="_lgpd_1kcm0_71",Zv="_success_1kcm0_205",Jv="_error_1kcm0_225",Ie={"newsletter-root":"_newsletter-root_1kcm0_1","has-border-top":"_has-border-top_1kcm0_9","has-border-bottom":"_has-border-bottom_1kcm0_12",container:Yv,"content-text":"_content-text_1kcm0_39","form-wrapper":"_form-wrapper_1kcm0_43",lgpd:Qv,"textfield-structure-modifier":"_textfield-structure-modifier_1kcm0_166","input-wrapper-modifier":"_input-wrapper-modifier_1kcm0_172","support-text-modifier":"_support-text-modifier_1kcm0_176","submit-btn":"_submit-btn_1kcm0_180","loading-spinner":"_loading-spinner_1kcm0_191","terms-and-conditions-unchecked":"_terms-and-conditions-unchecked_1kcm0_197",success:Zv,"text-structure-modifier":"_text-structure-modifier_1kcm0_210",error:Jv},dp=({invalid_message:e,master_data_field:t,placeholder:r,required:o=!1,CONSTANTS:s})=>{const{isMobile:a}=ce(),{inputsStatus:i,setInputsStatus:c,setFormStatus:l,variant:u}=bs();return n.jsx(m.TextField.Structure,{className:`${Ie["textfield-structure-modifier"]} ${u}`,input:n.jsx(m.TextField.Input,{mode:"simple",label:r,sizeVariant:a?s.NEWSLETTER_CONFIGS.interactionSizeMob:s.NEWSLETTER_CONFIGS.interactionSizeDesk,name:t,className:`${Ie["input-wrapper-modifier"]} ${u}`,feedback:i[t]==="required"?"error":i[t],onChange:()=>{i[t]!=="none"&&(c(p=>({...p,[t]:"none"})),l("idle"))},required:o}),supportText:i[t]==="error"||i[t]==="required"?n.jsx("div",{className:u==="horizontal"?Ie["support-text-modifier"]:"",children:n.jsx(m.TextField.SupportText,{text:i[t]==="error"?e??s.NEWSLETTER_CONFIGS.messages.invalid_generic:s.NEWSLETTER_CONFIGS.messages.required_field,feedback:"error"})}):null})};dp.displayName="Newsletter.Input";const fp=({title:e,description:t,CONSTANTS:r})=>n.jsx("div",{className:Ie.success,children:n.jsx(m.TextStructure.Root,{adornment:{start:n.jsx(m.Icon,{name:r.ICONS.check_circle,size:"small"})},children:n.jsxs(m.TextStructure.DivWrapper,{className:Ie["text-structure-modifier"],children:[n.jsx("h3",{children:e}),n.jsx("p",{children:t})]})})});fp.displayName="Newsletter.Success";const pp=({formStatus:e,fields:t,CONSTANTS:r})=>n.jsx(n.Fragment,{children:e==="success"?n.jsx(fp,{description:r.NEWSLETTER_CONFIGS.messages.success_description,title:r.NEWSLETTER_CONFIGS.messages.success_title,CONSTANTS:r}):n.jsxs(n.Fragment,{children:[Array.isArray(t)&&t.map((o,s)=>n.jsx(dp,{invalid_message:o.invalid_message,master_data_field:o.master_data_field,placeholder:o.placeholder,required:o.required,type:o.type,CONSTANTS:r},`nt-field-${o.master_data_field}-${s}`)),e==="error"&&n.jsx("div",{className:Ie.error,children:n.jsx("p",{children:r.NEWSLETTER_CONFIGS.form.status.error})})]})});pp.displayName="Newsletter.FormFields";const mp=({formStatus:e,CONSTANTS:t,...r})=>{const{isMobile:o}=ce();return n.jsxs(m.Button,{...r,className:Ie["submit-btn"],disabled:e==="success",size:o?"medium":"large",children:[n.jsx("span",{"data-loading":e==="loading","data-label":!0,children:t.NEWSLETTER_CONFIGS.submitLabel}),t.NEWSLETTER_CONFIGS.hasLoadingState&&e==="loading"&&n.jsx(m.Spinner,{className:Ie["loading-spinner"],size:"small"})]})};mp.displayName="Newsletter.SubmitButton";const hp=({checkboxRef:e,formStatus:t,setFormStatus:r,CONSTANTS:o})=>{const s=a=>{a.target.checked?(e.current=!0,t==="unchecked"&&r("idle")):e.current=!1};return n.jsxs(n.Fragment,{children:[n.jsx(m.Checkbox,{adornment:n.jsx(m.Icon,{name:o.ICONS.check,size:"x-small"}),defaultChecked:e.current,disabled:t==="success",name:"terms-and-conditions",label:o.NEWSLETTER_CONFIGS.messages.accept_terms_and_conditions,onChange:s,sizeVariant:"small"}),t==="unchecked"&&n.jsx("div",{className:Ie["terms-and-conditions-unchecked"],children:n.jsx(m.TextStructure.Root,{adornment:{start:n.jsx(m.Icon,{name:o.ICONS.alert_circle,size:"small"})},children:n.jsx(m.TextStructure.DivWrapper,{children:n.jsx("p",{children:o.NEWSLETTER_CONFIGS.messages.terms_and_conditions_not_accepted})})})})]})};hp.displayName="Newsletter.Terms";const gp=({formPayloadOptionals:e,masterDataEntity:t,CONSTANTS:r})=>{const{checkboxRef:o,fields:s,formStatus:a,hasTermsAndConditions:i,handleClickToSubmit:c,handleSubmit:l,setFormStatus:u}=bs();return n.jsxs("form",{className:Ie["form-wrapper"],onSubmit:p=>l(p,e,t),children:[n.jsx(pp,{formStatus:a,fields:s,CONSTANTS:r}),i&&n.jsx(hp,{checkboxRef:o,formStatus:a,setFormStatus:u,CONSTANTS:r}),n.jsx(mp,{formStatus:a,type:"submit",variant:"primary",onClick:c,CONSTANTS:r})]})};gp.displayName="Newsletter.Form";const ex=["horizontal","vertical"],Hs=({className:e,description:t,formPayloadOptionals:r,fields:o,masterDataEntity:s,masterDataEmailField:a,masterDataNameField:i,lgpd:c,title:l,variant:u,borderTop:p,borderBottom:h,CONSTANTS:d,...f})=>{if(!a||!i)return null;const g=m.helpers.ValidateProp({fieldTypes:ex,property:u,fallback:"horizontal"});return n.jsx(Gl,{fields:o,masterDataEmailField:a,masterDataNameField:i,variant:g,CONSTANTS:d,children:n.jsxs("div",{...f,className:m.helpers.classNameConcat(Ie["newsletter-root"],[p&&Ie["has-border-top"],h&&Ie["has-border-bottom"],e].filter(Boolean)),"data-variant":g,children:[n.jsxs("div",{className:Ie.container,children:[n.jsxs("div",{className:Ie["content-text"],children:[l&&n.jsx("h2",{children:l}),t&&n.jsx("p",{children:t})]}),n.jsx(gp,{formPayloadOptionals:r,masterDataEntity:s,CONSTANTS:d})]}),n.jsx("div",{className:Ie.lgpd,children:n.jsx("p",{children:d.NEWSLETTER_CONFIGS.messages.lgpd})})]})})};Hs.displayName="Newsletter";const yp=({children:e,...t})=>n.jsx("div",{...t,children:e});yp.displayName="CallToAction";const tx="_wrapper_aejhu_1",rx="_body_aejhu_8",Sr={wrapper:tx,body:rx,"wrapper-body":"_wrapper-body_aejhu_16","accordion-modifier":"_accordion-modifier_aejhu_32"},nx=({children:e,className:t,...r})=>n.jsx("div",{...r,className:m.helpers.classNameConcat(Sr.wrapper,t),children:e}),ox=({data:e,ICONS:t})=>{const[r,o]=x.useState(null),s=i=>{o(c=>c===i?null:i)},{router:a}=xe();return n.jsx("div",{className:m.helpers.classNameConcat(Sr.body),children:Array.isArray(e)&&(e==null?void 0:e.map((i,c)=>{var h;const l=r===i.id,u=i.buttonHref&&i.buttonHref!=="#",p=i.buttonHref&&i.type==="button"&&u?{onClick:()=>{var d;if((d=i.buttonHref)!=null&&d.startsWith("/")){a.push(i.buttonHref);return}window.open(i.buttonHref,"_blank")}}:{};return n.jsx("div",{children:i.type==="button"?n.jsxs(n.Fragment,{children:[n.jsx(m.Button,{variant:"tertiary",mode:i.buttonMode??"default",size:i.buttonSize??"medium",iconNameStart:t[i.buttonIcon]??i.buttonIcon,...p,style:{marginTop:16},children:i.buttonLabel}),n.jsx(m.Utils.Divider,{direction:"horizontal",size:"small",style:{height:16}})]}):n.jsxs(m.Accordion.Wrapper,{className:m.helpers.classNameConcat(Sr["accordion-modifier"]),children:[n.jsx(m.Accordion.Header,{id:`${c}-${i.title}`,closeIndicator:l?n.jsx(m.Icon,{name:t.arrow_up,size:"medium"}):void 0,openIndicator:l?void 0:n.jsx(m.Icon,{name:t.arrow_down,size:"medium"}),title:"accordion-header",onClick:()=>s(i.id),children:n.jsx(m.TextStructure.Root,{children:n.jsx(m.TextStructure.DivWrapper,{children:n.jsx("h2",{className:"typography-style-body-sm",children:i.title})})})}),n.jsx(m.Accordion.Body,{title:"accordion-body",children:n.jsx(m.TextStructure.Root,{children:l&&n.jsxs(m.TextStructure.DivWrapper,{children:[i.subtitle?n.jsx("h3",{className:"typography-style-body-md",children:i.subtitle}):n.jsx(n.Fragment,{}),n.jsx("p",{className:"typography-style-caption",children:i.description}),i.buttonLabel&&i.buttonHref?n.jsx(Ze,{href:i.buttonHref??"#",mode:i.buttonMode??"default",size:i.buttonSize??"medium",adornments:(h=i.buttonIcon)!=null&&h.length?{end:n.jsx(m.Icon,{name:t[i.buttonIcon]??i.buttonIcon})}:void 0,children:i.buttonLabel}):n.jsx(n.Fragment,{})]})})})]})},i.id)}))})},sx=({className:e,data:t,ICONS:r,...o})=>{const[s,a]=x.useState(!1),[i,c]=x.useState(null);x.useEffect(()=>{!s&&!i&&t&&c(t)},[s,i]);const l=x.useCallback(()=>{a(u=>!u)},[]);return i?n.jsxs(nx,{...o,className:e,children:[n.jsx("div",{className:Sr["wrapper-body"],hidden:!s,children:s&&n.jsx(ox,{data:i.content,ICONS:r})}),n.jsx(yp,{children:n.jsx("div",{onClick:l,children:s?n.jsx(m.Button,{iconNameEnd:r.close,size:(i==null?void 0:i.helpButtonSize)??"x-large"}):n.jsx(m.Button,{iconNameStart:(i==null?void 0:i.iconLabel)??r.help,size:(i==null?void 0:i.helpButtonSize)??"x-large",children:i==null?void 0:i.label})})})]}):n.jsx(n.Fragment,{})},vr={teamComponents:{AddToCart:Cs,BackToTop:fh,HelpButton:sx,BuyPackage:Ou,Filter:{...Je,helpers:Wd},...j_,FreightCalculation:kd,Header:Od,Link:Ze,Media:Be,PLPNavigation:at,ProductCard:ve,ProductList:ot,ProductVariationList:Xe,Sort:Lr,UserMenu:Rs,Newsletter:Hs},template:{minicart:Le,pdc:op,pdc_composites:Ye,pdp:cv,searchResult:lp},utils:{EventCollector:Dv,ExternalScripts:Kv,LinkOrNotLink:Ut,ObserverWrapper:kr,SnackBarComponent:kt,DraftJsLinkWrapper:Hf}},ax=(e,t)=>{const r=e.map(s=>`'${s.source}'`).join(`,
40
+ */const c=a(357),l=(S,R,T)=>{if(c(S)===!1)throw new TypeError("toRegexRange: expected the first argument to be a number");if(R===void 0||S===R)return String(S);if(c(R)===!1)throw new TypeError("toRegexRange: expected the second argument to be a number.");let w={relaxZeros:!0,...T};typeof w.strictZeros=="boolean"&&(w.relaxZeros=w.strictZeros===!1);let I=String(w.relaxZeros),N=String(w.shorthand),z=String(w.capture),k=String(w.wrap),U=S+":"+R+"="+I+N+z+k;if(l.cache.hasOwnProperty(U))return l.cache[U].result;let q=Math.min(S,R),B=Math.max(S,R);if(Math.abs(q-B)===1){let A=S+"|"+R;return w.capture?`(${A})`:w.wrap===!1?A:`(?:${A})`}let V=P(S)||P(R),G={min:S,max:R,a:q,b:B},F=[],J=[];if(V&&(G.isPadded=V,G.maxLen=String(G.max).length),q<0){let A=B<0?Math.abs(B):1;J=d(A,Math.abs(q),G,w),q=G.a=0}return B>=0&&(F=d(q,B,G,w)),G.negatives=J,G.positives=F,G.result=u(J,F),w.capture===!0?G.result=`(${G.result})`:w.wrap!==!1&&F.length+J.length>1&&(G.result=`(?:${G.result})`),l.cache[U]=G,G.result};function u(S,R,T){let w=p(S,R,"-",!1)||[],I=p(R,S,"",!1)||[],N=p(S,R,"-?",!0)||[];return w.concat(N).concat(I).join("|")}function f(S,R){let T=1,w=1,I=b(S,T),N=new Set([R]);for(;S<=I&&I<=R;)N.add(I),T+=1,I=b(S,T);for(I=C(R+1,w)-1;S<I&&I<=R;)N.add(I),w+=1,I=C(R+1,w)-1;return N=[...N],N.sort(y),N}function h(S,R,T){if(S===R)return{pattern:S,count:[],digits:0};let w=g(S,R),I=w.length,N="",z=0;for(let k=0;k<I;k++){let[U,q]=w[k];U===q?N+=U:U!=="0"||q!=="9"?N+=j(U,q):z++}return z&&(N+=T.shorthand===!0?"\\d":"[0-9]"),{pattern:N,count:[z],digits:I}}function d(S,R,T,w){let I=f(S,R),N=[],z=S,k;for(let U=0;U<I.length;U++){let q=I[U],B=h(String(z),String(q),w),V="";if(!T.isPadded&&k&&k.pattern===B.pattern){k.count.length>1&&k.count.pop(),k.count.push(B.count[0]),k.string=k.pattern+v(k.count),z=q+1;continue}T.isPadded&&(V=E(q,T,w)),B.string=V+B.pattern+v(B.count),N.push(B),z=q+1,k=B}return N}function p(S,R,T,w,I){let N=[];for(let z of S){let{string:k}=z;!w&&!_(R,"string",k)&&N.push(T+k),w&&_(R,"string",k)&&N.push(T+k)}return N}function g(S,R){let T=[];for(let w=0;w<S.length;w++)T.push([S[w],R[w]]);return T}function y(S,R){return S>R?1:R>S?-1:0}function _(S,R,T){return S.some(w=>w[R]===T)}function b(S,R){return Number(String(S).slice(0,-R)+"9".repeat(R))}function C(S,R){return S-S%Math.pow(10,R)}function v(S){let[R=0,T=""]=S;return T||R>1?`{${R+(T?","+T:"")}}`:""}function j(S,R,T){return`[${S}${R-S===1?"":"-"}${R}]`}function P(S){return/^-?(0+)\d/.test(S)}function E(S,R,T){if(!R.isPadded)return S;let w=Math.abs(R.maxLen-String(S).length),I=T.relaxZeros!==!1;switch(w){case 0:return"";case 1:return I?"0?":"0";case 2:return I?"0{0,2}":"00";default:return I?`0{0,${w}}`:`0{${w}}`}}l.cache={},l.clearCache=()=>l.cache={},s.exports=l},17:s=>{s.exports=By},837:s=>{s.exports=j_()}},t={};function r(s){var i=t[s];if(i!==void 0)return i.exports;var a=t[s]={exports:{}},c=!0;try{e[s](a,a.exports,r),c=!1}finally{c&&delete t[s]}return a.exports}typeof r<"u"&&(r.ab=__dirname+"/");var o=r(971);Rn.exports=o})()),Rn.exports}var Ga;function S_(){return Ga||(Ga=1,function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(i,a){for(var c in a)Object.defineProperty(i,c,{enumerable:!0,get:a[c]})}t(e,{matchRemotePattern:function(){return o},hasMatch:function(){return s}});const r=C_();function o(i,a){if(i.protocol!==void 0){const l=a.protocol.slice(0,-1);if(i.protocol!==l)return!1}if(i.port!==void 0&&i.port!==a.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(a.hostname))return!1;var c;return!!(0,r.makeRe)((c=i.pathname)!=null?c:"**").test(a.pathname)}function s(i,a,c){return i.some(l=>c.hostname===l)||a.some(l=>o(l,c))}}(En)),En}var Ka;function Af(){return Ka||(Ka=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return r}});function t(o){let{config:s,src:i,width:a,quality:c}=o;if(process.env.NODE_ENV!=="production"){const l=[];if(i||l.push("src"),a||l.push("width"),l.length>0)throw new Error("Next Image Optimization requires "+l.join(", ")+" to be provided. Make sure you pass them as props to the `next/image` component. Received: "+JSON.stringify({src:i,width:a,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("/")&&(s.domains||s.remotePatterns)){let u;try{u=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}=S_();if(!f(s.domains,s.remotePatterns,u))throw new Error("Invalid src prop ("+i+') on `next/image`, hostname "'+u.hostname+'" is not configured under images in your `next.config.js`\nSee more info: https://nextjs.org/docs/messages/next-image-unconfigured-host')}}}return s.path+"?url="+encodeURIComponent(i)+"&w="+a+"&q="+(c||75)+(process.env.NEXT_DEPLOYMENT_ID?"&dpl="+process.env.NEXT_DEPLOYMENT_ID:"")}t.__next_img_default=!0;const r=t}(wn)),wn}(function(e,t){"use client";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"Image",{enumerable:!0,get:function(){return C}});const r=ke,s=Rt._(x),i=r._(ns),a=r._($y()),c=Ms,l=Br,u=zy(),f=Xt,h=bu(),d=r._(Af()),p=process.env.__NEXT_IMAGE_OPTS;typeof window>"u"&&(globalThis.__NEXT_IMAGE_IMPORTED=!0);function g(v,j,P,E,S,R){const T=v==null?void 0:v.src;if(!v||v["data-loaded-src"]===T)return;v["data-loaded-src"]=T,("decode"in v?v.decode():Promise.resolve()).catch(()=>{}).then(()=>{if(!(!v.parentElement||!v.isConnected)){if(j!=="empty"&&S(!0),P!=null&&P.current){const I=new Event("load");Object.defineProperty(I,"target",{writable:!1,value:v});let N=!1,z=!1;P.current({...I,nativeEvent:I,currentTarget:v,target:v,isDefaultPrevented:()=>N,isPropagationStopped:()=>z,persist:()=>{},preventDefault:()=>{N=!0,I.preventDefault()},stopPropagation:()=>{z=!0,I.stopPropagation()}})}if(E!=null&&E.current&&E.current(v),process.env.NODE_ENV!=="production"){const I=new URL(T,"http://n").searchParams.get("url")||T;if(v.getAttribute("data-nimg")==="fill"){if(!R&&(!v.getAttribute("sizes")||v.getAttribute("sizes")==="100vw")&&v.getBoundingClientRect().width/window.innerWidth<.6&&(0,f.warnOnce)('Image with src "'+I+'" 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'),v.parentElement){const{position:k}=window.getComputedStyle(v.parentElement),U=["absolute","fixed","relative"];U.includes(k)||(0,f.warnOnce)('Image with src "'+I+'" has "fill" and parent element with invalid "position". Provided "'+k+'" should be one of '+U.map(String).join(",")+".")}v.height===0&&(0,f.warnOnce)('Image with src "'+I+'" 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=v.height.toString()!==v.getAttribute("height"),z=v.width.toString()!==v.getAttribute("width");(N&&!z||!N&&z)&&(0,f.warnOnce)('Image with src "'+I+`" 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(v){const[j,P]=s.version.split("."),E=parseInt(j,10),S=parseInt(P,10);return E>18||E===18&&S>=3?{fetchPriority:v}:{fetchpriority:v}}const _=(0,s.forwardRef)((v,j)=>{let{src:P,srcSet:E,sizes:S,height:R,width:T,decoding:w,className:I,style:N,fetchPriority:z,placeholder:k,loading:U,unoptimized:q,fill:B,onLoadRef:V,onLoadingCompleteRef:G,setBlurComplete:F,setShowAltText:J,onLoad:A,onError:O,...D}=v;return s.default.createElement("img",{...D,...y(z),loading:U,width:T,height:R,decoding:w,"data-nimg":B?"fill":"1",className:I,style:N,sizes:S,srcSet:E,src:P,ref:(0,s.useCallback)(X=>{j&&(typeof j=="function"?j(X):typeof j=="object"&&(j.current=X)),X&&(O&&(X.src=X.src),process.env.NODE_ENV!=="production"&&(P||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&&g(X,k,V,G,F,q))},[P,k,V,G,F,O,q,j]),onLoad:X=>{const ne=X.currentTarget;g(ne,k,V,G,F,q)},onError:X=>{J(!0),k!=="empty"&&F(!0),O&&O(X)}})});function b(v){let{isAppRouter:j,imgAttributes:P}=v;const E={as:"image",imageSrcSet:P.srcSet,imageSizes:P.sizes,crossOrigin:P.crossOrigin,referrerPolicy:P.referrerPolicy,...y(P.fetchPriority)};return j&&i.default.preload?(i.default.preload(P.src,E),null):s.default.createElement(a.default,null,s.default.createElement("link",{key:"__nimg-"+P.src+P.srcSet+P.sizes,rel:"preload",href:P.srcSet?void 0:P.src,...E}))}const C=(0,s.forwardRef)((v,j)=>{const E=!(0,s.useContext)(h.RouterContext),S=(0,s.useContext)(u.ImageConfigContext),R=(0,s.useMemo)(()=>{const G=p||S||l.imageConfigDefault,F=[...G.deviceSizes,...G.imageSizes].sort((A,O)=>A-O),J=G.deviceSizes.sort((A,O)=>A-O);return{...G,allSizes:F,deviceSizes:J}},[S]),{onLoad:T,onLoadingComplete:w}=v,I=(0,s.useRef)(T);(0,s.useEffect)(()=>{I.current=T},[T]);const N=(0,s.useRef)(w);(0,s.useEffect)(()=>{N.current=w},[w]);const[z,k]=(0,s.useState)(!1),[U,q]=(0,s.useState)(!1),{props:B,meta:V}=(0,c.getImgProps)(v,{defaultLoader:d.default,imgConf:R,blurComplete:z,showAltText:U});return s.default.createElement(s.default.Fragment,null,s.default.createElement(_,{...B,unoptimized:V.unoptimized,placeholder:V.placeholder,fill:V.fill,onLoadRef:I,onLoadingCompleteRef:N,setBlurComplete:k,setShowAltText:q,ref:j}),V.priority?s.default.createElement(b,{isAppRouter:E,imgAttributes:B}):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)})(Vo,Vo.exports);var P_=Vo.exports;(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(u,f){for(var h in f)Object.defineProperty(u,h,{enumerable:!0,get:f[h]})}t(e,{unstable_getImgProps:function(){return c},default:function(){return l}});const r=ke,o=Ms,s=Xt,i=P_,a=r._(Af()),c=u=>{(0,s.warnOnce)("Warning: unstable_getImgProps() is experimental and may change or be removed at any time. Use at your own risk.");const{props:f}=(0,o.getImgProps)(u,{defaultLoader:a.default,imgConf:process.env.__NEXT_IMAGE_OPTS});for(const[h,d]of Object.entries(f))d===void 0&&delete f[h];return{props:f}},l=i.Image})(yf);var w_=yf;const Sr=Or(w_),E_=({item:e,CONSTANTS:t})=>{const r=e.icon?t.PAYMENT_FLAGS.includes(e.icon)?"payment":"social":null,o=r==="payment"?t.PAYMENT_FLAGS_DICTIONARY[e.icon]:e.icon;return e.link?n.jsxs(Le,{href:e.link,target:"_blank",rel:"noopener noreferrer",className:ye["support-item"],children:[e.image&&n.jsx("img",{src:e.image,alt:"",loading:"lazy"}),r==="payment"?n.jsx(Sr,{alt:o,src:`/assets/${o}.svg`,width:20,height:20}):n.jsx(m.Icon,{size:"small",name:o})]}):n.jsxs("div",{className:ye["support-item"],children:[e.image&&n.jsx("img",{src:e.image,alt:"",loading:"lazy"}),r==="payment"?n.jsx(Sr,{alt:o,src:`/assets/${o}.svg`,width:20,height:20}):n.jsx(m.Icon,{size:"small",name:o})]})},R_=({content:e,CONSTANTS:t})=>n.jsx("div",{className:ye["support-container"],children:e==null?void 0:e.map((r,o)=>n.jsxs("div",{"data-device":r.device,className:ye["support-section"],children:[n.jsxs("div",{className:ye["support-text"],children:[r.title&&n.jsx("h3",{children:r.title}),r.description&&n.jsx("p",{children:r.description})]}),Array.isArray(r.items)&&r.items.length&&n.jsx("div",{className:ye["support-items"],"data-gap":r.gap,children:r.items.map((s,i)=>n.jsx(E_,{item:s,CONSTANTS:t},`footer-support-item-${i}`))})]},`footer-support-${o}`))}),A_=({name:e,nameIcon:t,maxWidth:r,rowAlignContent:o,columnAlignContent:s,columnAlignItems:i,textAlignContent:a,textAlignItems:c,children:l})=>n.jsx(m.TextStructure.Root,{layoutProps:{textRow:{alignContent:o,alignItems:o},columnWrapper:{alignContent:s,alignItems:i}},children:n.jsxs(m.TextStructure.DivWrapper,{alignContent:a,alignItems:c,className:ye.footer__column,children:[n.jsxs("div",{className:t?ye.footer__columnTitleIcon:ye.footer__columnTitle,children:[n.jsx(m.Icon,{name:`${t}`,size:"small"}),e&&n.jsx("div",{children:e})]}),n.jsx("div",{className:ye.footer__columnContent,style:{maxWidth:`${r}px`},children:l})]})}),I_=({name:e,nameIcon:t,maxWidth:r,children:o,ICONS:s,...i})=>n.jsxs(m.Accordion.Wrapper,{className:ye.accordionWrapper,title:"accordion-wrapper",...i,children:[n.jsx(m.Accordion.Header,{id:(i==null?void 0:i.id)??"",className:ye.accordionHeader,closeIndicator:n.jsx(m.Icon,{name:s.arrow_up,size:"medium"}),openIndicator:n.jsx(m.Icon,{name:s.arrow_down,size:"medium"}),title:"accordion-header",children:n.jsx(m.TextStructure.Root,{children:n.jsxs(m.TextStructure.DivWrapper,{className:t?ye.accordionTextWrapper:"",children:[n.jsx(m.Icon,{name:`${t}`,size:"medium"}),n.jsx("h2",{className:"typography-style-body-md",children:e})]})})}),n.jsx(m.Accordion.Body,{title:"accordion-body",children:n.jsx(m.TextStructure.Root,{children:n.jsx(m.TextStructure.DivWrapper,{className:ye.footer__columnContent,style:{maxWidth:`${r}px`},children:o})})})]}),Io=e=>{const{isMobile:t}=le();return t?n.jsx(I_,{...e}):n.jsx(A_,{...e})},yr=({type:e,children:t,className:r,collumnName:o,collumnNameIcon:s,icons:i,iconLink:a,iconSize:c,link:l,paymentDisclaimer:u,paymentTitle:f,rowAlignContent:h,columnAlignContent:d,columnAlignItems:p,textAlignContent:g,textAlignItems:y,..._})=>{let b;const{handleSelectContent:C}=ce(),{nextimage:v}=xe();switch(e){case"menu":b=n.jsx(Le,{className:ye.footer__itemLink,href:l??"#",prefetch:!1,children:n.jsx("span",{onClick:()=>{C({content:`footer:${o}:${t}`})},children:t})});break;case"payment":b=n.jsxs("div",{className:m.helpers.classNameConcat(ye.payment,ye.footer__itemSmallText),..._,children:[u,n.jsxs("div",{className:m.helpers.classNameConcat(ye.footer__iconContainer,ye.footer__iconListSubHeader),children:[f,n.jsx("div",{className:ye.footer__iconList,children:i==null?void 0:i.map((j,P)=>n.jsx(v,{alt:j,src:`/assets/${j}.svg`,width:c??20,height:c??20},P))})]})]});break;case"social-media":b=n.jsx("div",{className:ye.footer__iconContainer,..._,children:n.jsx("div",{className:ye.footer__iconList,children:a==null?void 0:a.map((j,P)=>n.jsx(Le,{prefetch:!1,href:j.link??"#",target:"_blank",children:n.jsx(m.Icon,{size:"medium",name:j.icon,onClick:()=>C({content:`footer:redes-sociais:${j.icon}`})})},P))})});break;default:b=n.jsx("div",{className:r,..._,children:t})}return n.jsx(m.TextStructure.Root,{layoutProps:{textRow:{alignContent:h,alignItems:h},columnWrapper:{alignContent:d,alignItems:p}},..._,children:n.jsx(m.TextStructure.DivWrapper,{alignContent:g,alignItems:y,className:m.helpers.classNameConcat(ye.footer__item,r),children:b})})},N_=({className:e,text:t,...r})=>n.jsx("div",{...r,className:m.helpers.classNameConcat(ye.footer__legalInformation,e),children:n.jsx("span",{children:t})}),If=()=>{const{nextimage:e}=xe();return n.jsx("div",{className:ye["footer--stamps"],children:n.jsx(e,{alt:"Empresa B",className:ye["footer--stamps--company"],src:"/images/Footer/new_certfB.png",width:56,height:64})})};If.displayName="Footer.Stamps";const Nf=({children:e,legalTextSlot:t,adornment:r,className:o,...s})=>{const{isMobile:i}=le(),a=x.Children.toArray(e).filter(Boolean),c=a.length;return n.jsxs("div",{className:ye.footer__main,children:[(r==null?void 0:r.top)&&n.jsx("div",{className:ye.footer__top,children:r==null?void 0:r.top}),c>0&&n.jsx("div",{...s,className:m.helpers.classNameConcat(ye.footer__wrapper,o),children:a.map((l,u)=>n.jsx("div",{style:{flexGrow:1,maxWidth:`calc(100% / ${i?1:"fit-content"})`},children:l},u))}),(r==null?void 0:r.bottom)&&n.jsx("div",{className:ye.footer__bottom,children:r.bottom}),t&&n.jsx("div",{className:ye.footer__legalText,children:t})]})};Nf.displayName="Footer.Wrapper";const Tf=({data:{links:{links:e}},payments:t,socialInfo:r,socialMedias:o,adornment:s,LEGAL_INFORMATION_TEXT:i,ICONS:a})=>{var c;return n.jsxs(Nf,{adornment:s,legalTextSlot:n.jsx(N_,{text:i}),children:[Array.isArray(e.column)&&e.column.map((l,u)=>n.jsx(Io,{id:`${u}column-menu`,name:l.name,nameIcon:l.nameIcon,ICONS:a,children:l.items.map((f,h)=>n.jsx(yr,{type:"menu",link:f.link,collumnName:l.name,collumnNameIcon:l.nameIcon,children:f.text},h))},u)),t&&((c=t.acceptedFlags)==null?void 0:c.length)>0&&n.jsx(Io,{id:"payment-column",name:t==null?void 0:t.title,nameIcon:t==null?void 0:t.titleIcon,maxWidth:150,ICONS:a,children:n.jsx(yr,{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})}),n.jsxs(Io,{id:"social-media-column",name:r==null?void 0:r.title,ICONS:a,children:[r!=null&&r.subTitle?n.jsx(yr,{children:r==null?void 0:r.subTitle}):null,n.jsx(yr,{type:"social-media",iconSize:24,iconLink:o}),n.jsx(If,{})]})]})};Tf.displayName="Footer";const T_=Object.freeze(Object.defineProperty({__proto__:null,Footer:Tf,FooterSupport:R_},Symbol.toStringTag,{value:"Module"})),O_=()=>{const{colorName:e}=$e();return n.jsx(m.TextStructure.Root,{children:n.jsx(m.TextStructure.DivWrapper,{className:e.length===0?"":W.styles["accessibility-info"],children:n.jsx("p",{children:e})})})},Hr=({className:e,titleId:t})=>{var s,i,a;const{productName:r,tag:o}=$e();return n.jsxs("div",{className:m.helpers.classNameConcat(W.styles.header,e),children:[o!=null&&o.commercial?n.jsx(m.Tag,{size:"small",title:(s=o.commercial)==null?void 0:s.value,variant:"quaternary",adornment:{start:(i=o.commercial)!=null&&i.icon?n.jsx(m.Icon,{name:o.commercial.icon}):null},children:(a=o.commercial)==null?void 0:a.value}):null,n.jsx(m.TextStructure.Root,{children:n.jsx(m.TextStructure.DivWrapper,{children:n.jsx("h1",{id:t,children:r})})})]})};Hr.displayName="PDP.PDPHeader";const Fs=({layout:e="horizontal"})=>{const{price:t,listPrice:r,installments:o}=$e(),{count:s,value:i}=o,a=W.formatPriceToCurrency(r??0,!0),c=W.formatPriceToCurrency(t??0,!0),l=W.formatPriceToCurrency(i??0);return n.jsx(m.ProductInfo.Root,{size:"small",layout:e,children:n.jsxs(m.ProductInfo.Wrapper,{layout:e,size:"small",className:W.styles["price-wrapper"],children:[n.jsx(m.ProductInfo.ValuesWrapper,{children:t!==r?n.jsxs(n.Fragment,{children:[n.jsx(m.ProductInfo.Price,{label:"originalPrice",value:a.toString(),size:"small"}),n.jsx(m.ProductInfo.Price,{label:"discountPrice",value:c.toString(),size:"small"})]}):n.jsx(m.ProductInfo.Price,{label:"defaultPrice",value:c.toString(),size:"small"})}),s&&s>1&&i?n.jsx(m.ProductInfo.Price,{label:"installment",value:`ou ${s}x ${l}`,size:"small"}):null]})})},Go=({onAddCallBack:e,onDisabledClickCallBack:t,addToCartBtnSize:r,BUY_BUTTON_LABELS:o})=>{const s=Wt(),{productId:i,productData:a,price:c,listPrice:l,thumbImage:u,isKit:f}=$e(),{isMobile:h}=le(),{addToCart:d}=Ee(),{sendDataLayerEvent:p}=ce(),g=!f&&(!s.sku||!s.available),y=()=>{if(g&&typeof t=="function"){t();return}typeof e=="function"&&e({id:s.sku,quantity:s.quantity,seller:s.sellerId,sku:i}),d({id:s.sku,quantity:s.quantity,seller:s.sellerId},{id:i,texture:u==null?void 0:u.imageUrl}),p({functionKey:"skuEvents",data:{event:"add_to_cart",commonData:{products:[{...a,price:c,listPrice:l}]},supportData:{selectedSkus:[s]},customData:{quantity:s.quantity}}})};return n.jsx(m.Button,{className:W.styles["add-to-cart"],size:h?(r==null?void 0:r.mobile)??"large":(r==null?void 0:r.desktop)??"x-large",onClick:y,children:s.sku&&s.available?`${o.add_to_cart}`:`${o.select_size}`})},k_=({addToCartBtnSize:e,BUY_BUTTON_LABELS:t})=>{const{isMobile:r}=le(),o=Wt(),{sizesContainerRef:s}=fc(),{structureRef:i}=je();return o.sku&&o.available?n.jsx(Go,{addToCartBtnSize:e,BUY_BUTTON_LABELS:t}):n.jsx(m.Button,{className:W.styles["add-to-cart"],size:r?(e==null?void 0:e.mobile)??"large":(e==null?void 0:e.desktop)??"x-large",onClick:()=>{s.current&&i.current&&window.document.body.scrollTo({top:s.current.offsetTop-i.current.offsetHeight,behavior:"smooth"})},children:o.sku&&o.available?t.add_to_cart:t.select_size})},L_=({addToCartBtnSize:e,BUY_BUTTON_LABELS:t,Z_INDEX_WAR:r})=>{const{isMobile:o}=le();return o?n.jsxs(m.Card,{className:W.styles["bottom-navigation"],shadow:!0,style:{zIndex:r.pdp_bottom_navigation},children:[n.jsxs("div",{className:W.styles["bottom-navigation__header"],children:[n.jsx(Hr,{}),n.jsx(Fs,{layout:"name-vertical"})]}),n.jsx(k_,{addToCartBtnSize:e,BUY_BUTTON_LABELS:t})]}):null},M_=({children:e,setShowBottomNavigation:t})=>{const r=x.useRef(null),o=ss(r),s=x.useRef(o);return x.useEffect(()=>{var a;const{top:i}=((a=r.current)==null?void 0:a.getBoundingClientRect())??{top:0};s.current!==o&&i>0&&(t(!o),s.current=o)},[o]),n.jsx("div",{ref:r,style:{width:"100%"},children:e})},D_=({ICONS:e})=>{const{isMobile:t}=le(),{price:r,listPrice:o,productData:s,productId:i}=$e(),{sendDataLayerEvent:a}=ce(),c=It(),{toggleProduct:l}=_t();return n.jsx(m.Button,{adornment:{start:n.jsx(m.Icon,{name:e[c.includes(i)?"favorite_true":"favorite_false"],size:"medium"})},className:W.styles["add-to-wishlist"],size:t?"medium":"x-large",variant:"tertiary",onClick:()=>{l(i),a({functionKey:"productEvents",data:{event:c.includes(i)?"remove_from_wishlist":"add_to_wishlist",outsideEcommerceData:{region:"PDP"},commonData:{...s,price:r,listPrice:o}}})}})},Of=({showWishlist:e=!0,callBack:t,addToCartBtnSize:r,BUY_BUTTON_LABELS:o,ICONS:s,Z_INDEX_WAR:i})=>{const{isMobile:a}=le(),[c,l]=x.useState(!0);return n.jsxs(n.Fragment,{children:[n.jsxs("div",{className:W.styles.actions,children:[a?n.jsx(M_,{setShowBottomNavigation:l,children:n.jsx(Go,{onAddCallBack:t,addToCartBtnSize:r,BUY_BUTTON_LABELS:o})}):n.jsx(Go,{onAddCallBack:t,addToCartBtnSize:r,BUY_BUTTON_LABELS:o}),e&&n.jsx(D_,{ICONS:s})]}),a&&c&&n.jsx(L_,{addToCartBtnSize:r,BUY_BUTTON_LABELS:o,Z_INDEX_WAR:i})]})},kf=({className:e,device:t,ICONS:r})=>{const{breadcrumbList:o,productName:s}=$e(),i=a=>a.toLowerCase().normalize("NFD").replace(/[\u0300-\u036f]/g,"");return n.jsx(m.BreadCrumb.DivWrapper,{className:m.helpers.classNameConcat(W.styles.breadcrumb,[t==="mobile"?W.styles["breadcrumbs-mobile"]:W.styles["breadcrumbs-desktop"],e]),children:n.jsxs(m.BreadCrumb.List,{children:[Array.isArray(o)&&o.map((a,c)=>{const l=i(o.slice(0,c+1).map(u=>u.replace(/\s/g,"-").toLowerCase()).join("/"));return n.jsx(m.BreadCrumb.Item,{adornment:{end:n.jsx(m.Icon,{name:r.arrow_right})},role:"listitem",children:n.jsx(Le,{href:`/${l}`,children:a})},`pdp-breadcrumb-${l}-${c}`)}),n.jsx(m.BreadCrumb.Item,{role:"listitem",className:m.helpers.classNameConcat(W.styles["breadcrumb--active"],e),children:s},"pdp-breadcrumb-productName")]})})};kf.displayName="PDP.BreadCrumb";const Lf=({className:e})=>{var o;const{tag:t}=$e(),r=t==null?void 0:t.flagPdp;return r&&((o=r==null?void 0:r.value)!=null&&o.length)?n.jsx(m.Tag,{className:m.helpers.classNameConcat(W.styles.credits,e),variant:"tertiary",title:r==null?void 0:r.value,size:"small",adornment:{start:r!=null&&r.enableIcon&&(r!=null&&r.icon)?n.jsx(m.Icon,{name:r==null?void 0:r.icon,style:{color:r==null?void 0:r.iconColor}}):null},style:{background:r==null?void 0:r.tagColor,color:r==null?void 0:r.textColor},children:r==null?void 0:r.value}):n.jsx(n.Fragment,{})};Lf.displayName="PDPCredits";const $_=()=>{const{descriptionContent:e,productReference:t}=$e(),[r,o]=x.useState("description");return n.jsxs(m.Tabs.Root,{className:W.styles["tabs-root-modifier"],children:[n.jsx(m.Tabs.TabList,{className:W.styles["tabs-list-modifier"],children:e==null?void 0:e.map(({label:s,value:i})=>n.jsx(m.Tabs.Item,{label:s,value:i,activeTab:r,onTabChange:o,size:"large",className:`${W.styles["tabs-item-modifier"]} ${r===i?W.styles["tabs-item-active"]:""}`},i))}),n.jsxs("div",{className:W.styles["content-wrapper"],children:[r==="description"?n.jsx("div",{children:n.jsxs("span",{className:W.styles.productref,children:["Ref:",t]})}):"",e==null?void 0:e.map(({value:s,content:i})=>r===s?n.jsx(m.Tabs.Panel,{className:`${W.styles["tabs-panel"]} ${r===s?W.styles["tabs-panel-enter"]:W.styles["tabs-panel-exit"]}`,children:n.jsx("div",{className:W.styles.content,dangerouslySetInnerHTML:{__html:i}})},s):null)]})]})},z_=({CURRENCY:e,DELIVERY_INFO_BOXES_ALLOWED:t,FREIGHT_CALCULATION:r,Z_INDEX_WAR:o})=>{const s=Wt(),{isMobile:i}=le();return n.jsxs(n.Fragment,{children:[i?n.jsx(m.Utils.Divider,{direction:"horizontal",size:"small"}):null,n.jsx(Wd,{skuId:s.available?s.sku:"",size:i?r.inputSize.mobile:r.inputSize.desktop,quantity:s.quantity,sellerId:s.sellerId,seller:s.sellerName,local:"PDP",CONSTANTS_PROPS:{freightConfig:r,deliveryInfoBoxesAllowed:t,toolTipZIndex:o.modal,currency:e}}),i?n.jsx(m.Utils.Divider,{direction:"horizontal",size:"small"}):null]})},Xa=({image:e,index:t,handleZoom:r,PRODUCT_IMAGE_DIMENSIONS:o})=>{const s=W.resizingImg(e.imageUrl,o.pdp),{nextimage:i}=xe();return n.jsx(i,{src:s,alt:e.imageLabel,objectFit:"contain",...o.pdp,...t<=1&&{priority:!0,loading:"eager"},onClick:()=>{r(t)}},t)},B_=({video:e,productName:t,poster:r})=>{const{sendDataLayerEvent:o}=ce(),s=x.useRef(!1);return n.jsx(Be.Video,{src:e,autoPlay:!0,muted:!0,loop:!0,playsInline:!0,style:{zIndex:-1,aspectRatio:"2/3"},onPlaying:()=>{s.current||(s.current=!0,o({functionKey:"readyEvents",data:{event:"video_start",readyData:{product:t}}}))},poster:r})},Mf=({images:e,video:t,handleZoom:r,productName:o,PRODUCT_IMAGE_DIMENSIONS:s})=>{var u,f;const{initialize:i,pagination:a,controller:c,itemsStyles:l}=m.Carousel.useCarousel({gap:0,itemsPerPage:1,loop:!1,direction:"row"});return n.jsxs(m.Carousel.Root,{innerRef:h=>{i(h)},className:W.styles["gallery-carousel-modifier"],children:[n.jsx(m.Carousel.Controller,{position:"absolute",top:"24px",bottom:"unset",left:"16px",children:n.jsx(m.Carousel.Bullets,{page:a.currentPage,total:e.length,onBulletClick:h=>c==null?void 0:c.navigateTo(h)})}),n.jsxs(m.Carousel.Body,{children:[n.jsx(m.Carousel.Item,{style:l,children:n.jsx(Xa,{image:e[0],index:0,handleZoom:r,PRODUCT_IMAGE_DIMENSIONS:s})},"PDP_gallery_0"),t&&n.jsx(m.Carousel.Item,{style:l,children:n.jsx(B_,{video:t,productName:o,...((u=e[1])==null?void 0:u.imageUrl)&&{poster:(f=e[1])==null?void 0:f.imageUrl}})},"PDP_gallery_video"),e.map((h,d)=>d===0?null:n.jsx(m.Carousel.Item,{style:l,children:n.jsx(Xa,{image:h,index:d,handleZoom:r,PRODUCT_IMAGE_DIMENSIONS:s})},`PDP_gallery_${d}`))]})]})};Mf.displayName="PDP.Carousel";const F_="_thumbs_1fbzz_65",q_="_selected_1fbzz_93",H_="_carousel_1fbzz_162",U_="_bullets_1fbzz_199",Pe={"image-zoom-wrapper-desktop":"_image-zoom-wrapper-desktop_1fbzz_1","button-close-container":"_button-close-container_1fbzz_10","button-close":"_button-close_1fbzz_10","main-image-container":"_main-image-container_1fbzz_22","image-desktop":"_image-desktop_1fbzz_52",thumbs:F_,selected:q_,"image-zoom-wrapper-mobile":"_image-zoom-wrapper-mobile_1fbzz_115","image-mobile":"_image-mobile_1fbzz_145","image-zoom--image":"_image-zoom--image_1fbzz_159",carousel:H_,"carousel-controller":"_carousel-controller_1fbzz_167","arrow-left":"_arrow-left_1fbzz_177","arrow-right":"_arrow-right_1fbzz_178",bullets:U_,"zoom-popup":"_zoom-popup_1fbzz_210","image-zoom--mobile":"_image-zoom--mobile_1fbzz_250","image-zoom--image--img":"_image-zoom--image--img_1fbzz_280"},Ya=({onClose:e,ICONS:t})=>n.jsx("div",{className:`${Pe["button-close-container"]}`,children:n.jsx(m.Button,{iconNameStart:t.close,iconSize:"medium",className:`${Pe["button-close"]}`,variant:"tertiary",state:"default",size:"medium",onClick:e,style:{textDecoration:"none"}})}),W_=({children:e,Z_INDEX_WAR:t,...r})=>n.jsx("div",{...r,className:Pe["image-zoom-wrapper-desktop"],style:{zIndex:t.pdp_image_zoom},children:e}),Df=({images:e,setCurrent:t,setFirstImgLoaded:r,ICONS:o,PRODUCT_IMAGE_DIMENSIONS:s})=>{const{nextimage:i}=xe();let a=null;const c=x.useRef(null),{initialize:l,controller:u,pagination:f,itemsStyles:h}=m.Carousel.useCarousel({itemsPerPage:1,gap:10,loop:!1,direction:"row"}),d=g=>{u==null||u.navigateTo(g)},p=()=>{r(!0)};return x.useEffect(()=>{t(f.currentPage)},[f.currentPage,t]),n.jsxs(m.Carousel.Root,{innerRef:g=>{g&&!a&&(a=g,l(a))},className:Pe.carousel,children:[n.jsxs(m.Carousel.Controller,{className:Pe["carousel-controller"],children:[n.jsx(m.Button,{variant:"tertiary",onClick:()=>u==null?void 0:u.prevPage(),className:Pe["arrow-left"],adornment:{start:n.jsx(m.Icon,{name:o.arrow_left})}}),n.jsx(m.Button,{variant:"tertiary",onClick:()=>u==null?void 0:u.nextPage(),className:Pe["arrow-right"],adornment:{start:n.jsx(m.Icon,{name:o.arrow_right})}})]}),n.jsx(m.Carousel.Body,{children:Array.isArray(e)&&e.map((g,y)=>n.jsx(m.Carousel.Item,{style:h,children:n.jsx(i,{...s.image_zoom.mobile,...y===0&&{priority:!0,loading:"eager"},ref:c,className:Pe.imageMobile,src:g.imageUrl,alt:g.imageText,quality:100,...y===0&&{onLoad:p}})},y))}),n.jsx(m.Carousel.Bullets,{className:Pe.bullets,page:f.currentPage,total:f.totalPages,onBulletClick:d})]})};Df.displayName="ImageZoom.Mobile.Carousel";const $f=({imgRef:e,image:t,PRODUCT_IMAGE_DIMENSIONS:r})=>{xc();const{nextimage:o}=xe();return n.jsx("div",{className:Pe["image-zoom--image"],ref:e,children:n.jsx(o,{...r.image_zoom.mobile,alt:t.imageText,className:Pe["image-zoom--image--img"],quality:100,src:t.imageUrl})})};$f.displayName="ImageZoom.ImageZoom";const zf=({loaded:e=!1})=>n.jsx("div",{className:Pe["zoom-popup"],"data-loaded":e,children:n.jsxs("svg",{width:"38",height:"39",viewBox:"0 0 38 39",xmlns:"http://www.w3.org/2000/svg",children:[n.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M18.93 5.382a3.711 3.711 0 0 1 2.55-1.007c.949 0 1.864.36 2.549 1.007a3.534 3.534 0 0 1 1.113 2.472v11.357l10.118 3.332c.587.193 1.1.56 1.465 1.053.366.494.565 1.089.566 1.7v.004c0 .22-.025.44-.075.653v.005l-2.98 12.52a.625.625 0 0 1-1.215-.29l2.977-12.515v-.002c.029-.122.043-.247.044-.372a1.619 1.619 0 0 0-.321-.958 1.729 1.729 0 0 0-.851-.61L24.32 20.257a.625.625 0 0 1-.43-.594V7.88a2.285 2.285 0 0 0-.72-1.59 2.462 2.462 0 0 0-1.691-.665c-.635 0-1.241.24-1.69.666a2.285 2.285 0 0 0-.722 1.59v19.04a.625.625 0 0 1-1.115.388l-.056-.071-.161-.202a178.922 178.922 0 0 0-2.333-2.858l-.002-.002a2.581 2.581 0 0 0-.897-.69 2.677 2.677 0 0 0-1.122-.25H12.37c-.307 0-.61.078-.874.225a1.712 1.712 0 0 0-.635.61 1.625 1.625 0 0 0-.016 1.653l7.128 12.296a.625.625 0 0 1-1.082.627L9.762 26.35a2.876 2.876 0 0 1 .027-2.924 2.962 2.962 0 0 1 1.098-1.057 3.05 3.05 0 0 1 1.482-.384h1.016c.57.002 1.133.127 1.648.368.515.24.97.59 1.33 1.024.514.614 1.026 1.239 1.455 1.768V7.855a3.535 3.535 0 0 1 1.113-2.473ZM6.446 10.22a.625.625 0 0 1 0 .884l-5.324 5.324a.625.625 0 0 1-.884-.884l5.324-5.324a.625.625 0 0 1 .884 0Z"}),n.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M.68 12.033c.345 0 .625.28.625.625v2.703h2.702a.625.625 0 1 1 0 1.25H.68a.625.625 0 0 1-.625-.625v-3.328c0-.345.28-.625.625-.625ZM16.429.237a.625.625 0 0 1 0 .884l-5.325 5.324a.625.625 0 0 1-.884-.883L15.545.237a.625.625 0 0 1 .884 0Z"}),n.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12.034.68c0-.346.28-.626.625-.626h3.328c.345 0 .625.28.625.625v3.328a.625.625 0 1 1-1.25 0V1.304h-2.703a.625.625 0 0 1-.625-.625Z"})]})});zf.displayName="ImageZoom.ZoomPopup";const Bf=({images:e,ICONS:t,PRODUCT_IMAGE_DIMENSIONS:r,...o})=>{const[s,i]=x.useState(!1),[a,c]=x.useState(0),{containerRef:l,imgRef:u,scale:f}=bc({defaultScale:1,maxScale:3});return n.jsxs("div",{...o,className:Pe["image-mobile"],"data-disable-carrousel-pan":f>1,children:[n.jsx(zf,{loaded:s}),n.jsx(Df,{images:e,setCurrent:c,setFirstImgLoaded:i,ICONS:t,PRODUCT_IMAGE_DIMENSIONS:r}),n.jsx("div",{className:Pe["image-zoom--mobile"],ref:l,children:n.jsx($f,{imgRef:u,image:e[a],PRODUCT_IMAGE_DIMENSIONS:r})})]})};Bf.displayName="ImageZoom.ImageMobile";const V_=({children:e,Z_INDEX_WAR:t,...r})=>n.jsx("div",{...r,className:Pe["image-zoom-wrapper-mobile"],style:{zIndex:t.pdp_image_zoom},children:e}),G_="_modal_1u87b_1",Je={modal:G_,"quick-shop__modal":"_quick-shop__modal_1u87b_4","shop-bag":"_shop-bag_1u87b_9","modal-product-body":"_modal-product-body_1u87b_25","pdp-main__info-modifier":"_pdp-main__info-modifier_1u87b_32","modal-header":"_modal-header_1u87b_38","modal-header__title":"_modal-header__title_1u87b_41"};function K_({headerTitle:e,isMobile:t,ICONS:r}){return n.jsx(m.Modal.Header,{navigation:"top",className:Je["modal-header"],children:n.jsxs(m.Modal.Controls,{navigation:"top",isMobile:t,children:[n.jsx("div",{className:Je["modal-header__title"],children:n.jsx(m.Modal.Title,{navigation:"top",className:Je["quick-shop__title"],title:e})}),n.jsx(m.Button,{className:Je["modal-header__close-button"],"data-close":!0,iconNameStart:r.close,size:"small",variant:"tertiary"})]})})}const X_=({items:e,getLabel:t,PLP_SIZE_ORDER:r})=>Array.isArray(e)?[...e].sort((o,s)=>{const i=t(o).toUpperCase(),a=t(s).toUpperCase(),c=r.indexOf(i)-r.indexOf(a);return c!==0?c:i.localeCompare(a,"pt-BR")}):[],Ff=({PDP_INFO:e,PLP_SIZE_ORDER:t,ICONS:r,NEWSLETTER_CONFIGS:o,NOTIFY_INFO:s,PRODUCT_CARD_TEXTS:i,Z_INDEX_WAR:a})=>{const{sizes:c,productId:l,handleViewItemEvent:u}=$e(),f=x.useMemo(()=>c!=null&&c.length?X_({items:c,getLabel:j=>j.value,PLP_SIZE_ORDER:t}):[],[c]),{sizesContainerRef:h}=fc(),{isMobile:d}=le(),p=Wt(),g=Jc(),{setValue:y}=Yc(),{setValue:_}=ds(),b=x.useRef({}),[C,v]=x.useState(null);return n.jsxs("div",{ref:h,className:W.styles.sizes,children:[n.jsx("span",{className:W.styles["sections-title"],children:e.product.size_title}),n.jsx("div",{children:f.map(j=>(!j.available&&!b.current[j.value]&&(b.current[j.value]={disable:!j.available,size:j.value,skuID:j.sku}),n.jsxs(m.ToggleSize.Wrapper,{size:d?"medium":"large",title:j.value,outOfStock:!j.available,onClick:()=>{j.available||(v({skuID:j.sku,size:j.value,disable:!0}),_(!0)),p.sku!==j.sku&&(y({...p,productId:l,name:j.name,size:j.value,sku:j.sku,sellerId:j.sellerId,sellerName:j.sellerName,available:j.available}),u({sku:j.sku,size:j.value}))},active:p.sku===j.sku,children:[n.jsx(m.ToggleSize.DisabledAdornment,{title:"disabled-adornment-texture"}),n.jsx(m.ToggleSize.Text,{children:j==null?void 0:j.value})]},`sizes-${j.sku}-${j.value}`)))}),n.jsx(js,{open:g,setVisible:_,sku:C,setSku:v,skus:Object.values(b.current),ICONS:r,NEWSLETTER_CONFIGS:o,NOTIFY_INFO:s,PRODUCT_CARD_TEXTS:i,Z_INDEX_WAR:a})]})},$t=({children:e,className:t,type:r})=>n.jsx("div",{className:m.helpers.classNameConcat(W.styles["pdp-main__info-subsection"],[W.styles[`subsection-${r}`],t]),children:e}),qf=({children:e,className:t})=>{const{structureRef:r,tipbarRef:o}=je(),s=x.useMemo(()=>{var c,l;const i=((c=r.current)==null?void 0:c.clientHeight)||0,a=((l=o.current)==null?void 0:l.clientHeight)||0;return i+a},[r,o]);return n.jsx("div",{className:m.helpers.classNameConcat(W.styles["pdp-main__info"],t),id:"pdpmaininfo",style:{top:s},children:e})},Y_=({children:e,link:t,TOGGLE_STYLE_MODIFIER:r})=>{const{isMobile:o}=le(),{router:s}=xe(),i=()=>{t&&s.push(t)},a=x.useRef(null);return n.jsx(m.ToggleStyle.Wrapper,{size:o?"medium":"small",style:{...r,border:`${a.current===t?"2":"1"}`,overflow:"hidden",padding:"0"},onClick:i,active:a.current===t,children:e})},Hf=({productId:e,similars:t,TOGGLE_STYLE_MODIFIER:r})=>{const{thumbImage:o}=$e(),s=[{productId:e,slug:"",textureImage:(o==null?void 0:o.imageUrl)??"",textureAlt:(o==null?void 0:o.imageText)??""},...t];return n.jsx("div",{children:s.map((i,a)=>i.textureImage?n.jsxs(Y_,{link:i.slug?i.slug:null,TOGGLE_STYLE_MODIFIER:r,children:[n.jsx(m.ToggleStyle.DisabledAdornment,{}),n.jsx(m.ToggleStyle.Texture,{children:n.jsx(Be.Image,{alt:i.textureAlt,src:i.textureImage,height:34,width:34,style:{borderRadius:0,height:"100%"}})})]},`similars-item-${a}`):null)})},Uf=({TEXTURE_IMAGE:e,TOGGLE_STYLE_MODIFIER:t})=>{const{productId:r}=$e(),[o,s]=x.useState([]);return x.useEffect(()=>{fetch("/api/catalog/product/similars",{method:"POST",body:JSON.stringify({productId:r,filterTexture:e})}).then(i=>i.json()).then(({data:i})=>{Array.isArray(i)&&i.length===0||s(i)}).catch(i=>{console.error(i)})},[r]),n.jsxs("div",{className:W.styles.similars,children:[n.jsx("span",{className:W.styles["sections-title"],children:"Cor"}),n.jsx(Hf,{productId:r,similars:o,TOGGLE_STYLE_MODIFIER:t})]})};Uf.displayName="PDP.Info.Similars";const Q_=({callBackProductAdded:e,BUY_BUTTON_LABELS:t,ICONS:r,NEWSLETTER_CONFIGS:o,NOTIFY_INFO:s,PDP_INFO:i,PLP_SIZE_ORDER:a,PRODUCT_CARD_TEXTS:c,TEXTURE_IMAGE:l,TOGGLE_STYLE_MODIFIER:u,Z_INDEX_WAR:f})=>n.jsx(m.Modal.Body,{className:Je["modal-product-body"],children:n.jsxs(qf,{className:Je["pdp-main__info-modifier"],children:[n.jsxs($t,{type:"product-info",children:[n.jsx(Hr,{}),n.jsx(Fs,{})]}),n.jsx($t,{type:"similars",children:n.jsx(Uf,{TEXTURE_IMAGE:l,TOGGLE_STYLE_MODIFIER:u})}),n.jsx($t,{type:"sizes",children:n.jsx(Ff,{ICONS:r,NEWSLETTER_CONFIGS:o,NOTIFY_INFO:s,PDP_INFO:i,PLP_SIZE_ORDER:a,PRODUCT_CARD_TEXTS:c,Z_INDEX_WAR:f})}),n.jsx($t,{type:"actions",children:n.jsx(Of,{showWishlist:!1,callBack:e,addToCartBtnSize:{mobile:"medium",desktop:"large"},BUY_BUTTON_LABELS:t,ICONS:r,Z_INDEX_WAR:f})})]})});function Z_({callBackProductAdded:e,QUICKSHOP:t,ICONS:r,...o}){const[s,i]=x.useState(!1),a=()=>i(c=>!c);return n.jsxs("div",{className:Je["quick-shop"],children:[n.jsx(m.Button,{onClick:a,size:"x-large",className:Je["shop-bag"],iconNameStart:r.bag,iconSize:"medium"}),n.jsxs(m.Modal.Root,{isOpen:s,setIsOpen:i,className:`${Je.modal} ${Je["quick-shop__modal"]}`,style:{position:"fixed",height:"100svh",width:"100%",top:0,zIndex:1e3,bottom:"unset",overflowY:"hidden"},variant:"sideRight",children:[n.jsx(K_,{headerTitle:t.title,ICONS:r}),n.jsx(Q_,{callBackProductAdded:e,ICONS:r,...o})]})]})}const J_=({image:e})=>n.jsx(Sr,{src:W.resizingImg(e.imageUrl,{width:50,height:75})||"",alt:e.imageText,className:Pe.mainImage,layout:"fill",objectFit:"cover",priority:!0,quality:10,style:{position:"absolute",inset:0,filter:"blur(10px)"}}),ev=({images:e,selectedImageIndex:t,PRODUCT_IMAGE_DIMENSIONS:r,...o})=>{const[s,i]=x.useState(!1),{nextimage:a}=xe();return n.jsx("div",{...o,className:Pe["main-image-container"],children:n.jsxs("div",{className:Pe["image-desktop"],children:[!s&&n.jsx(J_,{image:e==null?void 0:e[t]}),n.jsx(a,{src:W.resizingImg(e==null?void 0:e[t].imageUrl,{...r.image_zoom.desktop})||"",alt:e==null?void 0:e[t].imageText,className:Pe.mainImage,layout:"fill",objectFit:"cover",priority:!0,quality:100,onLoad:()=>{i(!0)}})]})})},tv=({images:e,onThumbnailClick:t,selectedImageIndex:r})=>{const{nextimage:o}=xe();return n.jsx("div",{className:Pe.thumbs,children:e.map((s,i)=>n.jsx("div",{role:"button",tabIndex:0,onClick:()=>t(i),onKeyDown:a=>{(a.key==="Enter"||a.key===" ")&&t(i)},className:i===r?Pe.selected:"",children:n.jsx(o,{src:s.imageUrl,alt:s.imageText,layout:"responsive",width:100,height:100,objectFit:"cover",priority:!1})},i))})},Wf=({images:e,initialSelectedImageIndex:t=0,setShowImageZoom:r,ICONS:o,PRODUCT_IMAGE_DIMENSIONS:s,Z_INDEX_WAR:i,...a})=>{const{isMobile:c}=le(),[l,u]=x.useState(t),f=h=>{u(h)};return c?n.jsxs(V_,{Z_INDEX_WAR:i,children:[n.jsx(Ya,{onClose:()=>r({show:!1,initialIndex:0}),ICONS:o}),n.jsx(Bf,{images:e,ICONS:o,PRODUCT_IMAGE_DIMENSIONS:s})]}):n.jsxs(W_,{Z_INDEX_WAR:i,children:[n.jsx(Ya,{onClose:()=>r({show:!1,initialIndex:0}),ICONS:o}),n.jsx(ev,{images:e,selectedImageIndex:l,onThumbnailClick:f,PRODUCT_IMAGE_DIMENSIONS:s},e[l].imageId??`${e[l].imageText}-${l}`),n.jsx(tv,{images:e,selectedImageIndex:l,onThumbnailClick:f}),n.jsx(Z_,{callBackProductAdded:()=>{r({initialIndex:0,show:!1})},ICONS:o,Z_INDEX_WAR:i,...a})]})};Wf.displayName="ImageZoom";const rv=({productImgs:e,PRODUCT_IMAGE_DIMENSIONS:t,...r})=>{const{video:o,productName:s}=$e(),[i,a]=x.useState({show:!1,initialIndex:0});x.useEffect(()=>(i.show?document.body.classList.add("no-scroll"):document.body.classList.remove("no-scroll"),()=>{document.body.classList.remove("no-scroll")}),[i]);const c=l=>{a({show:!0,initialIndex:l})};return n.jsxs(n.Fragment,{children:[n.jsx(Mf,{images:e,video:o,handleZoom:c,productName:s,PRODUCT_IMAGE_DIMENSIONS:t}),i.show&&n.jsx(Wf,{images:e,initialSelectedImageIndex:i.initialIndex,setShowImageZoom:a,PRODUCT_IMAGE_DIMENSIONS:t,...r})]})},Vf=({TEXTURE_IMAGE:e,PRODUCT_IMAGE_DIMENSIONS:t,...r})=>{const{images:o}=$e(),s=x.useMemo(()=>{const i=o.filter(a=>!e.includes(a.imageLabel));return i.length>0?i:o},[]);return n.jsx(rv,{productImgs:s,TEXTURE_IMAGE:e,PRODUCT_IMAGE_DIMENSIONS:t,...r})};Vf.displayName="PDP.Gallery";const nv=({className:e,hasIcons:t=!0,ICONS:r,PDP_INFO:o})=>{const{allSizesAvailable:s,productId:i}=$e(),{setValue:a}=ds(),{sendDataLayerEvent:c}=ce();return n.jsx("div",{className:m.helpers.classNameConcat(W.styles.links,e),id:"pdp-container","data-product-id":i,children:n.jsxs("div",{className:W.styles["links-wrapper"],children:[!s&&n.jsx(m.Button,{adornment:t?{start:n.jsx(m.Icon,{name:r.product})}:{},size:"x-small",variant:"tertiary",onClick:()=>a(!0),underline:!0,children:o.links_and_stepper.size_out_of_stock}),n.jsx(m.Button,{adornment:t?{start:n.jsx(m.Icon,{name:r.ruler})}:{},size:"x-small",variant:"tertiary",underline:!0,onClick:()=>{var l,u;(u=window.SizebayParams)==null||u.openChart((l=window.SizebayParams)==null?void 0:l.id),c({functionKey:"readyEvents",data:{event:"select_content",readyData:{content_type:"pdp:guia-de-medidas"}}})},children:o.links_and_stepper.size_table_title}),n.jsx(m.Button,{size:"x-small",variant:"tertiary",className:"sizebay",underline:!0,onClick:()=>{var l,u;return(u=window.SizebayParams)==null?void 0:u.openVFR((l=window.SizebayParams)==null?void 0:l.id)},children:o.links_and_stepper.sizebay})]})})},ov=({children:e})=>n.jsx("div",{className:W.styles["pdp-main__info-main-content"],children:e}),sv=({head:e,className:t})=>n.jsx("thead",{className:t,children:n.jsx("tr",{children:e.map((r,o)=>n.jsx("th",{children:r},`head-title-${o}`))})}),iv=({rows:e,className:t})=>n.jsx("tbody",{className:t,children:e.map((r,o)=>n.jsx("tr",{children:r.map(s=>typeof s=="string"&&s.includes("blocks")?JSON.parse(s).blocks.map(i=>`${i.text}
42
+ `):s).map((s,i)=>n.jsx("td",{children:s},`cell-content-${i}`))},`row-content-${o}`))}),av="_tableContainer_1yxy2_1",cv={tableContainer:av},lv=({children:e,className:t=""})=>n.jsx("table",{className:`${cv.tableContainer} ${t}`,children:e}),No={Head:sv,Rows:iv,Root:lv},uv=({title:e,text:t})=>n.jsxs("p",{className:W.styles.measurementRowsText,children:[n.jsx("h1",{className:W.styles.measurementRowsTitle,children:e}),t]}),dv=({ICONS:e,SIZES:t,Z_INDEX_WAR:r})=>{const o=rl(),{setValue:s}=nl();return n.jsx(m.Modal.Root,{isMobile:!0,style:{zIndex:r.modal},setIsOpen:s,isOpen:o,className:W.styles.measurementModal,children:n.jsx(m.Modal.Body,{children:n.jsxs("div",{className:W.styles.measurementContainer,children:[n.jsx("h1",{className:W.styles.measurementTitle,children:t.title}),n.jsxs("div",{className:W.styles.measurementContent,children:[n.jsx("div",{className:W.styles.measurementImageContainer,children:n.jsx(Sr,{width:264,height:402,alt:"",className:W.styles.measurementImage,src:t.bannerImage})}),n.jsxs(No.Root,{className:W.styles.measurementTable,children:[n.jsx(No.Head,{className:W.styles.measurementHead,head:t.head}),n.jsx(No.Rows,{className:W.styles.measurementRows,rows:t.rows.map((i,a)=>[n.jsx(uv,{title:t.descriptions[a].title,text:t.descriptions[a].text},a),...i])})]})]}),n.jsx(m.Button,{onClick:()=>s(!1),className:W.styles.measurementClose,variant:"tertiary",children:n.jsx(m.Icon,{name:e.close})})]})})},"minicart")},fv=({children:e,className:t,...r})=>n.jsx("div",{className:m.helpers.classNameConcat(W.styles["pdp-main__gallery-wrapper"],t),...r,children:e}),pv=({children:e,className:t,...r})=>n.jsx("div",{className:m.helpers.classNameConcat(W.styles.pdp,t),...r,children:e}),mv=({children:e,className:t,...r})=>n.jsx("div",{className:m.helpers.classNameConcat(W.styles["pdp-main"],t),...r,children:e}),hv=({children:e,className:t,...r})=>n.jsx("div",{className:m.helpers.classNameConcat(W.styles["pdp-main__info-secondary-content"],t),...r,children:e}),gv={gallery:fv,pdp:pv,main:mv,secondary:hv},yv=({className:e,...t})=>n.jsx(m.Utils.Divider,{...t,className:m.helpers.classNameConcat(W.styles.divider,e)}),_v=Object.freeze(Object.defineProperty({__proto__:null,AccessibilityInfo:O_,Actions:Of,BreadCrumb:kf,Credits:Lf,DescriptionsTabs:$_,Divider:yv,Freight:z_,Gallery:Vf,Header:Hr,Links:nv,MainContent:ov,MainInfo:qf,Price:Fs,ProductMeasurements:dv,SimilarsItems:Hf,Sizes:Ff,SubSectionWrapper:$t,containers:gv},Symbol.toStringTag,{value:"Module"})),vv=(e,t)=>{const[r,o]=tf({items:e}),[s,i]=t.split(":").map(Number);return isNaN(s)||isNaN(i)?[r,o]:[r<s?r:s,o>i?o:i]},xv=()=>{var E;const{ICONS:e,PLP_FILTERS:t,PLP_FILTERS_COLORS:r,PLP_FILTERS_EMPTY:o,PLP_FILTERS_TITLE:s,PLP_SIZE_ORDER:i}=De(),[a,c]=x.useState("10000:0"),{isMobile:l}=le(),{sendDataLayerEvent:u}=ce(),{openFilters:f,setOpenFilters:h}=_s(),{state:d}=ze(),{breadcrumb:p,deleteAllFacets:g,isLoading:y=!1,facets:_,onToggleFacet:b,selectedFacets:C}=Yl.contexts.searchFacets.hook(),v=x.useRef(""),j={isLast:!0,href:(E=d.term)!=null&&E.length?`/${d.term}`:"",name:d.term},P=W.filterNonRootFacets(C,d==null?void 0:d.base);return x.useEffect(()=>{const S=_.find(({key:R})=>R==="price");if(S){const[R,T]=vv(S.values,a??"10000:0");c(`${R}:${T}`)}},[_,a,c]),x.useEffect(()=>{if(!P.length)return;const S=JSON.stringify(P);v.current!==S&&(v.current=S,u({functionKey:"filterEvent",data:{commonData:{selectedFacets:P}}}))},[P]),n.jsxs(jr.teamComponents.Filter.Root,{CONSTANTS:{ICONS:e,PLP_FILTERS_TITLE:s,PLP_FILTERS:t},breadcrumb:p.length?p:[j],deleteAllFacets:g,filters:{facets:W.filterNonCategorySelected(_,d==null?void 0:d.base),selected:P},isMobile:l??!1,isLoading:y,isOpen:f,price:a,onToggleFacet:b,setIsOpen:h,target:document.body,children:[n.jsx(jr.teamComponents.Filter.Selected,{ICONS:e,PLP_FILTERS:t,PLP_FILTERS_COLORS:r}),n.jsx(jr.teamComponents.Filter.Content,{columns:2,CONSTANTS:{ICONS:e,PLP_FILTERS:t,PLP_FILTERS_COLORS:r,PLP_FILTERS_EMPTY:o,PLP_SIZE_ORDER:i}})]})},Gf=()=>typeof document>"u"?null:n.jsx(xv,{});Gf.displayName="Filters";const qs=({total:e=0})=>{const{SEARCH_TOTAL_PORTAL_ID:t}=De();if(typeof window>"u")return null;const r=document.getElementById(t);return r?ns.createPortal(n.jsxs("span",{children:["[",e,"] produto",e>1?"s":""]}),r):null};qs.displayName="PDC.Grid.NavigationTotal";const bv=({productCount:e,PLP_GRID_SCROLL_BACK:t})=>{x.useEffect(()=>{var i;const o=new URLSearchParams(window.location.search).get("page");if(e){const[a,c]=((i=sessionStorage.getItem(t.key))==null?void 0:i.split("-"))??["0",null],l=sessionStorage.getItem(t.refer);a&&l==="true"&&(c===(o||"null")&&window.document.body.scrollTo({top:parseInt(a,10),behavior:"smooth"}),sessionStorage.setItem(t.refer,"false"))}const s=()=>{e>0&&window.document.body.scrollTop&&sessionStorage.setItem(t.key,`${window.document.body.scrollTop.toString()}-${o}`)};return window.document.body.addEventListener("scroll",s,{passive:!0}),()=>{window.document.body.removeEventListener("scroll",s)}},[e])},jv=()=>{const{isMobile:e}=le(),{isLoading:t,products:r,total:o}=Gt(),s=De();return bv({productCount:r.length,PLP_GRID_SCROLL_BACK:s.PLP_GRID_SCROLL_BACK}),n.jsxs(n.Fragment,{children:[n.jsx(Ze.Products,{isMobile:e??!1,items:r,...s}),!r.length&&!t&&n.jsx(Ze.Empty,{ICONS:s.ICONS,PLP_NOT_RESULT:s.PLP_NOT_RESULT}),n.jsx(qs,{total:o})]})},Kf=({infinite:e=!1})=>n.jsx("div",{className:We["pdc--grid"],children:n.jsx("div",{className:We["pdc--grid--content"],children:e?n.jsx(Ze.InfiniteScroller,{}):n.jsx(jv,{})})});Kf.displayName="Grid";const xt=e=>({centro:"center",esquerda:"start",direita:"end"})[e],Xf=({children:e,contentState:t,entityKey:r})=>{const{url:o}=t.getEntity(r).getData();return o?n.jsx(Le,{href:o,children:e}):e},Cv=(e,t,r)=>{e.findEntityRanges(o=>{const s=o.getEntity();return s===null?!1:r.getEntity(s).getType()==="LINK"},t)},Pr=e=>{const t=new Ke.CompositeDecorator([{strategy:Cv,component:Xf}]),r=Ke.convertFromRaw(e);return Ke.EditorState.createWithContent(r,t)},Sv=e=>Ke.convertFromRaw(e),wr=Ke.DefaultDraftBlockRenderMap.set("unstyled",{element:"div",aliasedElements:["div"]}),Qa="superior-direita",_r="dentro-inferior-centro",Pv="inferior-direita",To="dentro-inferior-esquerda",Yf=e=>({position:e===_r||e===To?"absolute":"default",shouldRender:[Qa,_r,To].includes(e)?"top":"bottom",alignItems:[_r].includes(e)?"center":[Qa,Pv].includes(e)?"flex-end":"flex-start",left:e===To?"16px":e===_r?"45%":"unset"}),wv=Object.freeze(Object.defineProperty({__proto__:null,CREATE_CONTENT:Pr,EXTENDED_BLOCK_RENDER_MAP:wr,GET_CONTENT_STATE:Sv,controllersPositionsAdapter:Yf},Symbol.toStringTag,{value:"Module"})),Ev=({expanded:e,content:t})=>n.jsxs("details",{open:e,children:[t.textStructureReduced?n.jsx("summary",{onClick:r=>r.preventDefault(),children:n.jsx(Ke.Editor,{editorKey:"draft-editor-1",blockRenderMap:wr,editorState:t!=null&&t.textStructureReduced?Pr(JSON.parse(t.textStructureReduced)):Ke.EditorState.createEmpty(),onChange:()=>null,readOnly:!0})}):n.jsx(n.Fragment,{}),t.showTextStructureExpander&&t.textStructure?n.jsx(n.Fragment,{children:n.jsx(Ke.Editor,{editorKey:"draft-editor-1",blockRenderMap:wr,editorState:t.textStructure?Pr(JSON.parse(t.textStructure)):Ke.EditorState.createEmpty(),onChange:()=>null,readOnly:!0})}):n.jsx(n.Fragment,{})]}),Ko={"draftjs-text-modifier":"_draftjs-text-modifier_1itwm_2"},Rv="_textContentWrapper_1bigo_5",Av="_textContentSection_1bigo_13",Xo={"link-modifier":"_link-modifier_1bigo_1",textContentWrapper:Rv,textContentSection:Av},Qf=({data:e,ICONS:t})=>{var s;const[r,o]=x.useState(!1);return n.jsx(m.TextStructure.Root,{layoutProps:{textRow:{alignContent:xt(e.textStructureAlignment),alignItems:xt(e.textStructureAlignment)},columnWrapper:{alignContent:xt(e.textStructureAlignment),alignItems:xt(e.textStructureAlignment)}},adornment:{bottom:e.showTextStructureExpander&&e.textStructure?n.jsx(m.Button,{variant:"tertiary",adornment:{end:n.jsx(m.Icon,{name:r?`${t.arrow_up}`:`${t.arrow_down}`})},onClick:()=>o(i=>!i),size:"small",children:r?"Ver Menos":"Ver Mais"}):n.jsx(n.Fragment,{})},children:n.jsxs(m.Utils.Column,{className:Xo.textContentWrapper,style:{alignItems:xt(e.textStructureAlignment)},children:[n.jsx(m.TextStructure.DivWrapper,{style:{textAlign:xt(e.textStructureAlignment)},mode:e.textStructureMode??"default",className:Ko["draftjs-text-modifier"],children:e.textStructureReduced?n.jsx(Ev,{content:e,expanded:r}):n.jsx(n.Fragment,{})}),e.textStructureButtonLabel?n.jsx(Ye,{mode:e.textStructureMode??"default",href:e.textStructureButtonHref??"#",size:e.textStructureButtonSize,className:Xo["link-modifier"],adornments:(s=e.textStructureButtonIcon)!=null&&s.length&&e.enableIcon?{end:n.jsx(m.Icon,{name:e.textStructureButtonIcon})}:void 0,children:e.textStructureButtonLabel}):n.jsx(n.Fragment,{})]})})},Iv=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],Za=e=>({centro:"center",esquerda:"start",direita:"end"})[e],Yo=({dateEnd:e,dateInit:t,TIME_ZONE:r="America/Sao_Paulo",...o})=>{const[s,i]=x.useState(Vl(new Gs.TZDate(Date.now(),r),new Gs.TZDate(e,r))),[a,c]=x.useState(!1);x.useEffect(()=>{a||c(!0);const u=setInterval(()=>{if(s<=0){clearInterval(u);return}i(s-1e3)},1e3);return()=>{clearInterval(u)}},[s,i,a]);const l=Dt(s,"days");return a&&s>0?n.jsxs(m.Timer.Root,{...o,children:[l?n.jsxs(n.Fragment,{children:[n.jsx(m.Timer.Digit,{label:"dias",value:l}),n.jsx(m.Timer.Separator,{})]}):null,n.jsx(m.Timer.Digit,{label:"horas",value:Dt(s,"hours")}),n.jsx(m.Timer.Separator,{}),n.jsx(m.Timer.Digit,{label:"min",value:Dt(s,"minutes")}),n.jsx(m.Timer.Separator,{}),n.jsx(m.Timer.Digit,{label:"segs",value:Dt(s),suppressHydrationWarning:!0})]}):n.jsx(n.Fragment,{})},Ja={"content-modifier":"_content-modifier_16y4u_5","banner-image-wrapper-modifier":"_banner-image-wrapper-modifier_16y4u_13"},ec=({data:e,videoUrl:t,priority:r,videoRef:o,ICONS:s,...i})=>{const{video:a,image:c,imageHref:l,imageOpacity:u,altImage:f,backgroundColor:h,position:d,contentAlignment:p,showTimer:g,contentOrder:y,timerMode:_,timerEnd:b,timerInit:C,textStructure:v,textStructureReduced:j}=e.banner,P=(l==null?void 0:l.trim())||(c==null?void 0:c.trim())||null,{nextimage:E}=xe();return n.jsxs(m.Banner.Container,{...i,children:[n.jsxs(m.Banner.ImageWrapper,{className:Ja["banner-image-wrapper-modifier"],style:u?{background:h}:void 0,children:[a&&n.jsx(Be.Video,{videoRef:o,src:t,autoPlay:r,loop:!0,playsInline:!0,muted:!0}),P&&!(a!=null&&a.length)&&n.jsx(E,{src:P,width:"1920",height:"1080",alt:f??c??"",...r?{priority:r}:{},style:u?{opacity:"0"}:void 0}),!c&&!(a!=null&&a.length)&&n.jsx("div",{style:{background:h}})]}),g||j||v?n.jsx(m.Banner.Slot,{...Iv(d??"centro"),className:Ja["content-modifier"],style:{textAlign:Za(p)},children:n.jsxs(m.Utils.Column,{gap:"16px",alignItems:Za(p),children:[g&&y==="timer-first"&&n.jsx(Yo,{mode:_??"default",size:"small",dateEnd:b?new Date(b):new Date,dateInit:C?new Date(C):new Date}),n.jsx(Qf,{data:e.banner,ICONS:s}),g&&y!=="timer-first"&&n.jsx(Yo,{mode:_??"default",size:"small",dateEnd:b?new Date(b):new Date,dateInit:C?new Date(C):new Date})]})}):n.jsx(n.Fragment,{})]})},Jt=({data:e,className:t,priority:r,creative:o,...s})=>{const{handleSelectPromotionEvent:i,currentLocalRef:a}=ce(),{banner:{promotion_name:c},index:l,componentIndex:u}=e,f=typeof l=="number"?`:${l+1}`:"",h={creative_name:o,creative_slot:`${o}-${a.current}:${u+1}${f}`,promotion_id:e.banner.href,promotion_name:c},d=x.useRef(null),p=x.useMemo(()=>{var y;if((y=e.banner.video)!=null&&y.includes("player.vimeo")){const _=e.banner.video.split("?")[1],b=_==null?void 0:_.split("&"),C=b==null?void 0:b.filter(j=>j.includes("loc")||j.includes("signature")||j.includes("user_id")),v=C==null?void 0:C.join("&");return`${e.banner.video.split("?")[0]}?${v}`}return e.banner.video},[e]),g=()=>{var y;(y=d.current)!=null&&y.paused&&d.current.play()};return n.jsx(Dr,{eventData:{functionKey:"readyEvents",data:{event:"view_promotion",readyData:{ecommerce:{...h,index:l}}}},observerOptions:{delay:100,...p&&{threshold:.1}},...p&&{callBackWhenVisible:g},children:e.banner.href?n.jsx(Le,{href:e.banner.href,onClick:()=>{i({updatePromotionRef:!0,promotion:h,index:l})},children:n.jsx(ec,{data:e,videoUrl:p,priority:r,videoRef:d,...s})}):n.jsx(ec,{data:e,videoUrl:p,priority:r,videoRef:d,...s})})},Hs=e=>n.jsx(Jt,{...e}),Zf=({columns:e,count:t,gap:r})=>{var p;const{banners:o,pages:s,products:i}=nt(),{isMobile:a}=le(),{banners:c}=Tr(),{ICONS:l,PRODUCT_CARD_IMAGE_ASPECT_RATIO:u}=De(),f=((p=s[s.length-1])==null?void 0:p.products.length)??t,h=i[(s.length-1)*t+f-1],d=c.filter((g,y)=>o[y]<h);return Array.isArray(d)?d.map((g,y)=>n.jsx(et.Banner,{columns:g.columns,gap:r,isMobile:a??!1,position_grid:o[y]+1,totalColumns:e,PRODUCT_CARD_IMAGE_ASPECT_RATIO:u,children:n.jsx(Jt,{data:{banner:g,componentIndex:y},creative:"banner_grid",ICONS:l})},`${g.position_grid}-${y}`)):null};Zf.displayName="PDC.InfiniteScroller.Banners";const Jf=e=>{var o;const{pages:t}=nt(),r=t[t.length-1];return(r==null?void 0:r.page)!==((o=r==null?void 0:r.pagination)==null?void 0:o.total)&&!(r!=null&&r.loading)?n.jsx(Mr,{...e}):null};Jf.displayName="PDC.InfiniteScroller.Loading";const ep=({page:e,...t})=>{const{updateParamPage:r}=nt(),{element:o}=Rr({callback:()=>r(e),options:{threshold:0}});return n.jsx("div",{...t,id:`pdc-scroll-infinite-${e.page}`,className:We["pdc--infinite--loader"],"data-page":e.page,ref:o})};ep.displayName="PDC.Page.Anchor";const tp=({first:e,gap:t,isMobile:r=!1,item:o,index:s,last:i=!1,order:a,page:c,showVideo:l=!1})=>{const{load:u,handleNotify:f}=nt(),{getAvailableProductTag:h}=rt(),{BUY_BUTTON_LABELS:d,MAIN_IMAGE:p,PLP_GRID_SCROLL_BACK:g,PLP_INFINITE_SCROLL:y,PLP_PRODUCT_SIMILAR_DELAY:_,PLP_SHOW_VIDEO_ON_PRODUCT_CARD:b,PRODUCT_CARD_IMAGE_ASPECT_RATIO:C,PRODUCT_CARD_TEXTS:v,PRODUCT_CARD_TOP_WISHLIST_TOGGLE:j,PRODUCT_IMAGE_DIMENSIONS:P,SECOND_IMAGE:E,StoreConfig_MainSellerId:S,TEXTURE_IMAGE:R,Z_INDEX_WAR:T,ICONS:w}=De(),I=h(o==null?void 0:o.cluster.highlights);return n.jsx(et.Card,{className:o.id==="skeleton"?We["pdc--infinite--card--disabled"]:"",gap:t,isMobile:r??!1,item:o,order:a,tag:I,index:s,setSkuSelected:f,showVideo:l,CONSTANTS:{BUY_BUTTON_LABELS:d,MAIN_IMAGE:p,PLP_GRID_SCROLL_BACK:g,PLP_INFINITE_SCROLL:y,PLP_PRODUCT_SIMILAR_DELAY:_,PLP_SHOW_VIDEO_ON_PRODUCT_CARD:b,PRODUCT_CARD_IMAGE_ASPECT_RATIO:C,PRODUCT_CARD_TEXTS:v,PRODUCT_CARD_TOP_WISHLIST_TOGGLE:j,PRODUCT_IMAGE_DIMENSIONS:P,SECOND_IMAGE:E,StoreConfig_MainSellerId:S,TEXTURE_IMAGE:R,Z_INDEX_WAR:T,ICONS:w},children:c&&u&&n.jsxs(n.Fragment,{children:[e&&n.jsx(br.Anchor,{page:c}),!c.loading&&n.jsx(br.Loader,{page:c}),i&&c.loading&&n.jsx(br.NextPage,{page:c})]})})};tp.displayName="PDC.Page.Card";const rp=({type:e="default",page:t,...r})=>{const{load:o,updatePage:s}=nt(),{element:i}=Rr({callback:()=>s(t),onEnterViewportOnce:!0,options:{threshold:1}});return o===!0&&n.jsx("div",{...r,className:We[`pdc--infinite--loader${e==="page"?"--page":""}`],ref:i})};rp.displayName="PDC.Page.Loader";const np=({page:e,...t})=>{var s;const{addNewPage:r}=nt(),{element:o}=Rr({callback:()=>{r(e)},onEnterViewportOnce:!0,options:{threshold:[.5,1]}});return((s=e==null?void 0:e.pagination)==null?void 0:s.nextPage)===!0&&e.loading===!0?n.jsx("div",{...t,className:We["pdc--infinite--next-page--card"],"data-next-page":!0,ref:o}):null};np.displayName="PDC.Page.NextPage";const br={Anchor:ep,Card:tp,Loader:rp,NextPage:np},op=({count:e,gap:t,page:r})=>{const{isMobile:o}=le(),{columns:s,products:i}=nt(),a=(r.page-1)*e,c=Pl(r.products,s);return Array.isArray(r.products)?r.products.map((l,u)=>n.jsx(br.Card,{first:u===0,last:u===r.products.length-1,gap:t,index:u,item:l.node,isMobile:o??!1,order:i[a+u]+1,page:u===0||u===r.products.length-1?r:void 0,showVideo:!!c.indexOf(u)},i[a+u]+1)):null};op.displayName="PDC.Page";const Nv=({pages:e,load:t,PLP_GRID_SCROLL_BACK:r})=>{const o=x.useRef(!1);x.useEffect(()=>{const s=e[e.length-1];if(t&&s&&!o.current){const i=sessionStorage.getItem(r.refer),a=sessionStorage.getItem(r.order),c=document.querySelector(i==="true"?`[data-order="${a}"]`:`#pdc-scroll-infinite-${s.page}`);c&&(o.current=!0,sessionStorage.setItem(r.refer,"false"),s.page>1&&c.scrollIntoView({behavior:"instant",block:"start"}))}if(!t&&o.current){o.current=!1;const i=document.querySelector("body > main");i&&i.scrollIntoView({behavior:"instant",block:"start"})}},[t,e])},Tv=()=>{var l,u;const{count:e}=ze(),{columns:t,gap:r,load:o,pages:s,total:i}=nt(),a=De(),{PLP_GRID_SCROLL_BACK:c}=De();return Nv({pages:s,load:o,PLP_GRID_SCROLL_BACK:c}),n.jsxs(n.Fragment,{children:[o===!0&&((u=(l=s[0])==null?void 0:l.pagination)==null?void 0:u.count)===0&&n.jsx(Ze.Empty,{ICONS:a.ICONS,PLP_NOT_RESULT:a.PLP_NOT_RESULT}),n.jsxs(et.Root,{children:[Array.isArray(s)&&s.map((f,h)=>n.jsx(op,{count:e,gap:r,page:f},h)),n.jsx(Zf,{columns:t,count:e,gap:r})]}),n.jsx(qs,{total:i}),n.jsx(Jf,{})]})},sp=()=>{const{banners:e}=Tr();return n.jsx(Bl,{banners:e,children:n.jsx(Tv,{})})};sp.displayName="PDC.InfiniteScroller";const ip=()=>{const{setOpenFilters:e}=_s(),{selectedFacets:t,onToggleFacet:r,onSort:o}=hl(),{state:s}=ze(),{Z_INDEX_WAR:i}=De(),a=W.filterNonRootFacets(t,s==null?void 0:s.base);return n.jsx(ct.Root,{onSort:o,setOpenFilters:e,style:{zIndex:i.plp_navigation},children:n.jsx(ct.Selected,{callback:r,selected:a})})};ip.displayName="Navigation";const Qo=({currentPage:e,callback:t,type:r,...o})=>n.jsx(m.Button,{...o,iconNameStart:`arrow-${r}`,onClick:()=>{typeof t=="function"&&t(r==="left"?"prev":"")},size:"large",variant:"tertiary"});Qo.displayName="Arrow";const Zo=({active:e,prev:t,ellipses:r,page:o,selectedPage:s})=>n.jsxs(n.Fragment,{children:[r&&t&&n.jsx(m.Button,{size:"large",variant:"tertiary",children:"..."}),e&&n.jsx(m.Pagination.Item,{isActive:!1,index:o,variant:"tertiary",onClick:()=>{typeof s=="function"&&s(o)},children:o}),r&&!t&&n.jsx(m.Button,{size:"large",variant:"tertiary",children:"..."})]});Zo.displayName="PageEllipses";const ap=({children:e,endPage:t,page:r,total:o,selectedPage:s,ITEMS_PER_SECTION:i})=>n.jsxs(n.Fragment,{children:[n.jsx(Zo,{active:r>=i&&o>i,selectedPage:s,currentPage:r,prev:!1,ellipses:r>i&&o>i,page:1}),e,n.jsx(Zo,{active:o-r>1&&o!==t,selectedPage:s,currentPage:r,prev:!0,ellipses:t<o-1,page:o})]});ap.displayName="Pagination.Layout";const Ov=(e,t,r)=>{const o=new URLSearchParams(r);return o.set(e,t),o.toString()},kv=(e,t)=>{const r=[];for(let o=e;o<=t;o++)r.push(o);return r},Lv=({currentPage:e,total:t,maxVisiblePages:r,SEARCH_PAGE_ITEM_THRESHOLD:o})=>{const s=t>=o?o:t,i=Math.max(1,e===s?s-r+1:e-Math.floor(r/2)),a=Math.min(s,i+r-1);return{startPage:i,endPage:a,totalPages:s}},cp=({currentPage:e,pages:t,searchParams:r,VARIANT_PAGINATION:o})=>{const{router:s,pathname:i}=xe();return Array.isArray(t)?t.map(a=>n.jsx(m.Pagination.Item,{isActive:e===a,index:a,variant:e===a?o.active:o.default,onClick:()=>s.push(`${i}?${Ov("page",a.toString(),r)}`),children:a},a)):null};cp.displayName="Pages";const Us=({query:e,type:t="default",searchParams:r,ITEMS_DEFAULT_SORT:o,ITEMS_PER_SECTION:s,ITEMS_PER_PAGE:i,SEARCH_PAGE_ITEM_THRESHOLD:a,VARIANT_PAGINATION:c,...l})=>{const{router:u,pathname:f}=xe(),{state:{page:h=1}}=ze(),{pagination:{total:d}}=Gt(),{endPage:p,totalPages:g,startPage:y}=Lv({currentPage:h,total:d,maxVisiblePages:s,SEARCH_PAGE_ITEM_THRESHOLD:a}),_=C=>{const v=C.toString(),j=new URLSearchParams(r.toString());t==="default"&&j.set("page",v),t==="search"&&(j.set("query",e??""),j.set("count",i.toString()),j.set("page",v),o&&j.set("sort",o.replace("_",":")));const E=`${t==="search"?"/search":f}?${j.toString()}`;u.push(E)},b=C=>{_(C==="prev"?h-1:h+1)};return d?n.jsx("div",{...l,className:We["pdc--pagination"],children:n.jsx(m.Pagination.Wrapper,{adornment:{start:n.jsx(Qo,{callback:b,currentPage:h,disabled:h<2,type:"left"}),end:n.jsx(Qo,{callback:b,currentPage:h,disabled:h>=g,type:"right"})},children:n.jsx(ap,{endPage:p,page:h,selectedPage:_,total:d,ITEMS_PER_SECTION:s,children:n.jsx(cp,{currentPage:h,pages:kv(y,p),searchParams:r,VARIANT_PAGINATION:c})})})}):n.jsx(n.Fragment,{})};Us.displayName="Pagination";const lp=({gap:e,isMobile:t})=>{const{count:r,state:o}=ze(),{banners:s}=Tr(),{ICONS:i,PRODUCT_CARD_IMAGE_ASPECT_RATIO:a}=De(),c=s.filter(l=>El(l.position_grid,o.page,r));return Array.isArray(c)?c.map((l,u)=>n.jsx(et.Banner,{columns:l.columns,gap:e,isMobile:t,position_grid:l.position_grid,totalColumns:t?2:4,PRODUCT_CARD_IMAGE_ASPECT_RATIO:a,children:n.jsx(Jt,{data:{banner:l,componentIndex:u},creative:"banner_grid",ICONS:i})},l.position_grid)):null};lp.displayName="PDC.Grid.Banners";const Ws=({isMobile:e=!1,items:t,BUY_BUTTON_LABELS:r,ICONS:o,MAIN_IMAGE:s,NEWSLETTER_CONFIGS:i,NOTIFY_INFO:a,PLP_GRID_SCROLL_BACK:c,PLP_INFINITE_SCROLL:l,PLP_PRODUCT_SIMILAR_DELAY:u,PLP_SHOW_VIDEO_ON_PRODUCT_CARD:f,PRODUCT_CARD_IMAGE_ASPECT_RATIO:h,PRODUCT_CARD_TEXTS:d,PRODUCT_CARD_TOP_WISHLIST_TOGGLE:p,PRODUCT_IMAGE_DIMENSIONS:g,SECOND_IMAGE:y,StoreConfig_MainSellerId:_,TEXTURE_IMAGE:b,Z_INDEX_WAR:C})=>{const{getAvailableProductTag:v}=rt(),{count:j,state:P}=ze(),[E,S]=x.useState(!1),[R,T]=x.useState(null),[w,I]=x.useState([]),N=x.useCallback((q,B)=>{const V=B?Ir([B]):null;I(q),T(V!=null&&V.length?V[0]:null),S(!0)},[]),z=e?8:16,k=(P.page-1)*j,U=et.helpers.createGridPosAndVideo(t,[],e?2:4,P.page);return n.jsxs(n.Fragment,{children:[n.jsxs(et.Root,{children:[Array.isArray(t)&&t.map((q,B)=>{var G,F;const V=v(q.node.cluster.highlights);return n.jsx(et.Card,{gap:z,isMobile:e??!1,item:q.node,order:k+(((G=U[B])==null?void 0:G.position)??0),tag:V,index:B,setSkuSelected:N,showVideo:(F=U[B])==null?void 0:F.canPlayVideo,CONSTANTS:{BUY_BUTTON_LABELS:r,MAIN_IMAGE:s,PLP_GRID_SCROLL_BACK:c,PLP_INFINITE_SCROLL:l,PLP_PRODUCT_SIMILAR_DELAY:u,PLP_SHOW_VIDEO_ON_PRODUCT_CARD:f,PRODUCT_CARD_IMAGE_ASPECT_RATIO:h,PRODUCT_CARD_TEXTS:d,PRODUCT_CARD_TOP_WISHLIST_TOGGLE:p,PRODUCT_IMAGE_DIMENSIONS:g,SECOND_IMAGE:y,StoreConfig_MainSellerId:_,TEXTURE_IMAGE:b,Z_INDEX_WAR:C,ICONS:o}},q.node.sku)}),t.length>0&&n.jsx(lp,{gap:z,isMobile:e??!1})]}),n.jsx(Nr,{open:E,sku:R,skus:w,setSku:T,setVisible:S,ICONS:o,NEWSLETTER_CONFIGS:i,NOTIFY_INFO:a,PRODUCT_CARD_TEXTS:d,Z_INDEX_WAR:C})]})};Ws.displayName="PDC.Products";const Ze={Empty:As,Filters:Gf,Grid:Kf,InfiniteScroller:sp,Spinner:Mr,Navigation:ip,Notification:Nr,Pagination:Us,Products:Ws},up=({className:e,...t})=>{const{searchParams:r,ITEMS_DEFAULT_SORT:o,ITEMS_PER_SECTION:s,ITEMS_PER_PAGE:i,PLP_INFINITE_SCROLL:a,SEARCH_PAGE_ITEM_THRESHOLD:c,VARIANT_PAGINATION:l}=t;return n.jsx(wm,{...t,children:n.jsxs("div",{className:m.helpers.classNameConcat(We.pdc,e),children:[n.jsxs(ml,{forceUpdate:!0,children:[n.jsx(Ze.Navigation,{}),n.jsx(Ze.Filters,{})]}),a===!0?n.jsx(Ze.Grid,{infinite:!0}):n.jsxs(ys,{forceUpdate:!0,query:r.get("query")??void 0,children:[n.jsx(Ze.Grid,{}),n.jsx(Ze.Pagination,{searchParams:r,ITEMS_DEFAULT_SORT:o,ITEMS_PER_SECTION:s,ITEMS_PER_PAGE:i,SEARCH_PAGE_ITEM_THRESHOLD:c,VARIANT_PAGINATION:l})]})]})})};up.displayName="Templates.PDC";const dp=x.createContext({}),Mv=({children:e,...t})=>n.jsx(dp.Provider,{value:t,children:e}),Ur=()=>{const e=x.useContext(dp);if(e===void 0)throw new Error("useSearchConstants must be used within a SearchConstantsProvider");return e},Dv="_grid_e75z7_21",$v="_navigation_e75z7_44",zv="_spinner_e75z7_70",Bv="_sort_e75z7_76",at={"rearch-result--empty":"_rearch-result--empty_e75z7_1",grid:Dv,"grid-header":"_grid-header_e75z7_37",navigation:$v,"result-disclaimer":"_result-disclaimer_e75z7_51",spinner:zv,sort:Bv,"search-result":"_search-result_e75z7_91"},fp=({term:e})=>{const{router:t}=xe(),{SEARCH_RESULT:r,ICONS:o}=Ur(),s=()=>{t.push(r.EMPTY.ALL_TERMS)};return n.jsxs("div",{className:at["rearch-result--empty"],children:[n.jsxs(m.TextStructure.DivWrapper,{children:[n.jsx("div",{className:W.responsive["responsive-desktop-flex"],children:n.jsx("h2",{className:"typography-style-heading-sm",children:r.EMPTY.NOT_FOUND})}),n.jsx("div",{className:W.responsive["responsive-mobile-flex"],children:n.jsx("h2",{className:"typography-style-body-md",children:r.EMPTY.NOT_FOUND})}),n.jsxs("p",{children:[r.EMPTY.NOT_FOUND_P," ",`"${e}"`]})]}),n.jsx(m.Button,{onClick:()=>s(),variant:"tertiary",size:"medium",adornment:{end:n.jsx(m.Icon,{name:o.arrow_right,size:"medium"})},children:r.EMPTY.ALL_TERMS_LABEL})]})};fp.displayName="RearchResult.Empty";const Fv=e=>n.jsxs(n.Fragment,{children:[n.jsx("div",{className:W.responsive["responsive-desktop-flex"],children:n.jsx("h2",{className:"typography-style-heading-sm",children:e.SEARCH.SEARCHING})}),n.jsx("div",{className:W.responsive["responsive-mobile-flex"],children:n.jsx("h2",{className:"typography-style-body-md",children:e.SEARCH.SEARCHING})}),n.jsx(m.Spinner,{className:at.spinner})]}),qv=(e,t,r)=>n.jsxs(n.Fragment,{children:[n.jsx("div",{className:W.responsive["responsive-desktop-flex"],children:n.jsx("h2",{className:"typography-style-heading-sm",children:t.SEARCH.SEARCHED})}),n.jsx("div",{className:W.responsive["responsive-mobile-flex"],children:n.jsx("h2",{className:"typography-style-body-md",children:t.SEARCH.SEARCHED})}),n.jsxs("p",{children:[t.SEARCH.SEARCHED_P_START," ",e," ",t.SEARCH.SEARCHED_P_END," ",`"${r}"`]})]}),pp=({isLoading:e,quantity:t,term:r})=>{const{SEARCH_RESULT:o}=Ur();return n.jsx(m.TextStructure.DivWrapper,{children:e?Fv(o):qv(t,o,r)})};pp.displayName="Search.Loading";const Hv=({term:e})=>{const[t,r]=x.useState(!1),{router:o}=xe(),{searchParams:s}=ze(),{ITEMS_DEFAULT_SORT:i,ITEMS_PER_PAGE:a,ICONS:c}=Ur(),l=u=>{W.navigateToSearchPage(o,e,a,1,u??i)};return n.jsx("div",{className:at.sort,children:n.jsx(zr,{handleSelectValue:u=>l(u??"release_desc"),sortListOpen:t,setSortListOpen:r,searchParams:s,ICONS:c})})},Uv=({query:e})=>{const{isLoading:t,products:r,pagination:o}=Gt();return n.jsxs("div",{className:at["grid-header"],children:[n.jsxs("div",{className:at.navigation,children:[!t&&(r!=null&&r.length)?n.jsx(Hv,{term:e}):null,n.jsx(m.Utils.Divider,{})]}),!t&&(r!=null&&r.length)?n.jsx("div",{className:at["result-disclaimer"],children:n.jsx(pp,{term:e,isLoading:t,quantity:o.count})}):null]})},mp=({isMobile:e=!1,query:t})=>{const{isLoading:r,products:o,pagination:s}=Gt(),{searchParams:i}=ze(),a=Ur(),{sendDataLayerEvent:c}=ce(),l=x.useRef({query:t,sended:!1}),u=x.useMemo(()=>!r&&o.length>0&&s.count>0,[r,o.length,s.count]);return x.useEffect(()=>{if(!r){if(l.current.query!==t){l.current.sended=!1,l.current.query=t;return}l.current.sended||(c({functionKey:"readyEvents",data:{event:"view_search_results",readyData:{search_term:t,search_found:(o==null?void 0:o.length)>0}}}),l.current.sended=!0)}},[t,o,r,c]),n.jsxs("div",{className:at.grid,children:[u?n.jsx(Uv,{query:t}):n.jsx(n.Fragment,{}),!r&&(o!=null&&o.length)?n.jsx(Ws,{isMobile:e??!1,items:o,...a}):n.jsx(n.Fragment,{}),(o==null?void 0:o.length)===0&&!r?n.jsx(fp,{term:t}):null,u&&n.jsx(Us,{searchParams:i,...a})]})};mp.displayName="SearchResultContent";const Wv=({className:e})=>{const{state:t}=ze(),{isMobile:r}=le();return n.jsx(ys,{forceUpdate:!1,query:t.term??"",children:n.jsx("div",{className:m.helpers.classNameConcat(at["search-result"],e),children:n.jsx(mp,{currentPage:t.page,isMobile:r??!1,query:t.term??""})})})},hp=({className:e,searchParams:t,CONSTANTS:r})=>{const o=new URLSearchParams(t??""),s=String((o==null?void 0:o.get("query"))??""),i=Number((o==null?void 0:o.get("count"))??0),a=Number((o==null?void 0:o.get("page"))??0),c=String((o==null?void 0:o.get("sort"))??"");return n.jsx(Mv,{...r,children:n.jsx(gs,{sort:c,state:{sort:c,base:"",facets:[],term:s,page:a,count:i},count:i,searchParams:o,ITEMS_PER_PAGE:r.ITEMS_PER_PAGE,children:n.jsx(Wv,{className:e})})})};hp.displayName="Search";const Vv=({page:e,data:t})=>{const{pathname:r}=xe(),o=x.useRef(null),{sendDataLayerEvent:s,currentLocalRef:i,itemListRef:a,promotionEventRef:c}=ce();return x.useEffect(()=>{const l=Al("login_event")||"{}",u=JSON.parse(l);if(u.name||u.method){const f=new Date(0);s({functionKey:"readyEvents",data:{event:u.name,readyData:{method:u.method}}}),xs("login_event","",{expires:f})}},[]),x.useEffect(()=>{if(o.current===r)return;o.current=r;let l={};switch(e){case"PDP":{const f=t,h={};if(!f){l={page_category:"pdp"};break}f.items.forEach(({itemId:d,sellers:p})=>h[d]=p[0].commertialOffer.AvailableQuantity),l={page_category:"pdp",seller_ids:f.items.map(({sellers:d})=>d[0].sellerId).join(),skuStocks:h,product_reference_id:f.productReference};break}case"PDC":{const{page_category:f,page_departament:h,id:d,name:p}=yc(),g=p,y=d;l={page_category:"lista_produtos",...h&&{page_departament:h}},a.current={item_list_name:r==="/search"?"busca":g??void 0,item_list_id:r==="/search"?void 0:y??void 0},h&&s({functionKey:"readyEvents",data:{event:"view_category",readyData:{page_category:f,page_departament:h}}});break}default:l={page_category:e},c.current={},a.current={};break}const u={region:e,...l};i.current=e,s({functionKey:"readyEvents",data:{readyData:{vtex_version:"fast",...u}},timeout:0})},[r]),null};var Jo={exports:{}};function Gv(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 Oo={},ko={},tc;function Kv(){return tc||(tc=1,function(e){"use client";Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"LoadableContext",{enumerable:!0,get:function(){return o}});const o=ke._(x).default.createContext(null);process.env.NODE_ENV!=="production"&&(o.displayName="LoadableContext")}(ko)),ko}var rc;function Xv(){return rc||(rc=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return p}});const r=ke._(x),o=Kv();function s(g){return g&&g.default?g.default:g}const i=[],a=[];let c=!1;function l(g){let y=g(),_={loading:!0,loaded:null,error:null};return _.promise=y.then(b=>(_.loading=!1,_.loaded=b,b)).catch(b=>{throw _.loading=!1,_.error=b,b}),_}function u(g,y){let _=Object.assign({loader:null,loading:null,delay:200,timeout:null,webpack:null,modules:null},y),b=null;function C(){if(!b){const P=new f(g,_);b={getCurrentValue:P.getCurrentValue.bind(P),subscribe:P.subscribe.bind(P),retry:P.retry.bind(P),promise:P.promise.bind(P)}}return b.promise()}if(typeof window>"u"&&i.push(C),!c&&typeof window<"u"){const P=_.webpack&&typeof Gv.resolveWeak=="function"?_.webpack():_.modules;P&&a.push(E=>{for(const S of P)if(E.includes(S))return C()})}function v(){C();const P=r.default.useContext(o.LoadableContext);P&&Array.isArray(_.modules)&&_.modules.forEach(E=>{P(E)})}function j(P,E){v();const S=r.default.useSyncExternalStore(b.subscribe,b.getCurrentValue,b.getCurrentValue);return r.default.useImperativeHandle(E,()=>({retry:b.retry}),[]),r.default.useMemo(()=>S.loading||S.error?r.default.createElement(_.loading,{isLoading:S.loading,pastDelay:S.pastDelay,timedOut:S.timedOut,error:S.error,retry:b.retry}):S.loaded?r.default.createElement(s(S.loaded),P):null,[P,S])}return j.preload=()=>C(),j.displayName="LoadableComponent",r.default.forwardRef(j)}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:_}=this;y.loading&&(typeof _.delay=="number"&&(_.delay===0?this._state.pastDelay=!0:this._delay=setTimeout(()=>{this._update({pastDelay:!0})},_.delay)),typeof _.timeout=="number"&&(this._timeout=setTimeout(()=>{this._update({timedOut:!0})},_.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(_=>_())}_clearTimeouts(){clearTimeout(this._delay),clearTimeout(this._timeout)}getCurrentValue(){return this._state}subscribe(y){return this._callbacks.add(y),()=>{this._callbacks.delete(y)}}constructor(y,_){this._loadFn=y,this._opts=_,this._callbacks=new Set,this._delay=null,this._timeout=null,this.retry()}}function h(g){return u(l,g)}function d(g,y){let _=[];for(;g.length;){let b=g.pop();_.push(b(y))}return Promise.all(_).then(()=>{if(g.length)return d(g,y)})}h.preloadAll=()=>new Promise((g,y)=>{d(i).then(g,y)}),h.preloadReady=g=>(g===void 0&&(g=[]),new Promise(y=>{const _=()=>(c=!0,y());d(a,g).then(_,_)})),typeof window<"u"&&(window.__NEXT_PRELOADREADY=h.preloadReady);const p=h}(Oo)),Oo}(function(e,t){Object.defineProperty(t,"__esModule",{value:!0});function r(f,h){for(var d in h)Object.defineProperty(f,d,{enumerable:!0,get:h[d]})}r(t,{noSSR:function(){return l},default:function(){return u}});const o=ke,s=o._(x),i=o._(Xv()),a=typeof window>"u";function c(f){return{default:(f==null?void 0:f.default)||f}}function l(f,h){if(delete h.webpack,delete h.modules,!a)return f(h);const d=h.loading;return()=>s.default.createElement(d,{error:null,isLoading:!0,pastDelay:!1,timedOut:!1})}function u(f,h){let d=i.default,p={loading:_=>{let{error:b,isLoading:C,pastDelay:v}=_;if(!v)return null;if(process.env.NODE_ENV!=="production"){if(C)return null;if(b)return s.default.createElement("p",null,b.message,s.default.createElement("br",null),b.stack)}return null}};f instanceof Promise?p.loader=()=>f:typeof f=="function"?p.loader=f:typeof f=="object"&&(p={...p,...f}),p={...p,...h};const g=p.loader,y=()=>g!=null?g().then(c):Promise.resolve(c(()=>null));return p.loadableGenerated&&(p={...p,...p.loadableGenerated},delete p.loadableGenerated),typeof p.ssr=="boolean"&&!p.ssr?(delete p.webpack,delete p.modules,l(d,p)):d({...p,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)})(Jo,Jo.exports);var Yv=Jo.exports,Qv=Yv;const Zv=Or(Qv);var es={exports:{}},vr={exports:{}},nc;function Jv(){return nc||(nc=1,function(e,t){Object.defineProperty(t,"__esModule",{value:!0});function r(l,u){for(var f in u)Object.defineProperty(l,f,{enumerable:!0,get:u[f]})}r(t,{DOMAttributeNames:function(){return o},isEqualNode:function(){return i},default:function(){return c}});const o={acceptCharset:"accept-charset",className:"class",htmlFor:"for",httpEquiv:"http-equiv",noModule:"noModule"};function s(l){let{type:u,props:f}=l;const h=document.createElement(u);for(const g in f){if(!f.hasOwnProperty(g)||g==="children"||g==="dangerouslySetInnerHTML"||f[g]===void 0)continue;const y=o[g]||g.toLowerCase();u==="script"&&(y==="async"||y==="defer"||y==="noModule")?h[y]=!!f[g]:h.setAttribute(y,f[g])}const{children:d,dangerouslySetInnerHTML:p}=f;return p?h.innerHTML=p.__html||"":d&&(h.textContent=typeof d=="string"?d:Array.isArray(d)?d.join(""):""),h}function i(l,u){if(l instanceof HTMLElement&&u instanceof HTMLElement){const f=u.getAttribute("nonce");if(f&&!l.getAttribute("nonce")){const h=u.cloneNode(!0);return h.setAttribute("nonce",""),h.nonce=f,f===l.nonce&&l.isEqualNode(h)}}return l.isEqualNode(u)}let a;process.env.__NEXT_STRICT_NEXT_HEAD?a=(l,u)=>{const f=document.querySelector("head");if(!f)return;const h=f.querySelectorAll('meta[name="next-head"]')||[],d=[];if(l==="meta"){const y=f.querySelector("meta[charset]");y&&d.push(y)}for(let y=0;y<h.length;y++){var p;const b=h[y].nextSibling;(b==null||(p=b.tagName)==null?void 0:p.toLowerCase())===l&&d.push(b)}const g=u.map(s).filter(y=>{for(let _=0,b=d.length;_<b;_++){const C=d[_];if(i(C,y))return d.splice(_,1),!1}return!0});d.forEach(y=>{var _;const b=y.previousSibling;if(b&&b.getAttribute("name")==="next-head"){var C;(C=y.parentNode)==null||C.removeChild(b)}(_=y.parentNode)==null||_.removeChild(y)}),g.forEach(y=>{var _;const b=document.createElement("meta");b.name="next-head",b.content="1",((_=y.tagName)==null?void 0:_.toLowerCase())==="meta"&&y.getAttribute("charset")||f.appendChild(b),f.appendChild(y)})}:a=(l,u)=>{const f=document.getElementsByTagName("head")[0],h=f.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 d=Number(h.content),p=[];for(let _=0,b=h.previousElementSibling;_<d;_++,b=(b==null?void 0:b.previousElementSibling)||null){var g;(b==null||(g=b.tagName)==null?void 0:g.toLowerCase())===l&&p.push(b)}const y=u.map(s).filter(_=>{for(let b=0,C=p.length;b<C;b++){const v=p[b];if(i(v,_))return p.splice(b,1),!1}return!0});p.forEach(_=>{var b;return(b=_.parentNode)==null?void 0:b.removeChild(_)}),y.forEach(_=>f.insertBefore(_,h)),h.content=(d-p.length+y.length).toString()};function c(){return{mountedInstances:new Set,updateHead:l=>{const u={};l.forEach(d=>{if(d.type==="link"&&d.props["data-optimized-fonts"]){if(document.querySelector('style[data-href="'+d.props["data-href"]+'"]'))return;d.props.href=d.props["data-href"],d.props["data-href"]=void 0}const p=u[d.type]||[];p.push(d),u[d.type]=p});const f=u.title?u.title[0]:null;let h="";if(f){const{children:d}=f.props;h=typeof d=="string"?d:Array.isArray(d)?d.join(""):""}h!==document.title&&(document.title=h),["meta","base","link","style","script"].forEach(d=>{a(d,u[d]||[])})}}}(typeof t.default=="function"||typeof t.default=="object"&&t.default!==null)&&typeof t.default.__esModule>"u"&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)}(vr,vr.exports)),vr.exports}(function(e,t){"use client";Object.defineProperty(t,"__esModule",{value:!0});function r(P,E){for(var S in E)Object.defineProperty(P,S,{enumerable:!0,get:E[S]})}r(t,{handleClientScriptLoad:function(){return y},initScriptLoader:function(){return C},default:function(){return j}});const o=ke,s=Rt,i=o._(ns),a=s._(x),c=vf(),l=Jv(),u=ju(),f=new Map,h=new Set,d=["onLoad","onReady","dangerouslySetInnerHTML","children","onError","strategy","stylesheets"],p=P=>{if(i.default.preinit){P.forEach(E=>{i.default.preinit(E,{as:"style"})});return}if(typeof window<"u"){let E=document.head;P.forEach(S=>{let R=document.createElement("link");R.type="text/css",R.rel="stylesheet",R.href=S,E.appendChild(R)})}},g=P=>{const{src:E,id:S,onLoad:R=()=>{},onReady:T=null,dangerouslySetInnerHTML:w,children:I="",strategy:N="afterInteractive",onError:z,stylesheets:k}=P,U=S||E;if(U&&h.has(U))return;if(f.has(E)){h.add(U),f.get(E).then(R,z);return}const q=()=>{T&&T(),h.add(U)},B=document.createElement("script"),V=new Promise((G,F)=>{B.addEventListener("load",function(J){G(),R&&R.call(this,J),q()}),B.addEventListener("error",function(J){F(J)})}).catch(function(G){z&&z(G)});w?(B.innerHTML=w.__html||"",q()):I?(B.textContent=typeof I=="string"?I:Array.isArray(I)?I.join(""):"",q()):E&&(B.src=E,f.set(E,V));for(const[G,F]of Object.entries(P)){if(F===void 0||d.includes(G))continue;const J=l.DOMAttributeNames[G]||G.toLowerCase();B.setAttribute(J,F)}N==="worker"&&B.setAttribute("type","text/partytown"),B.setAttribute("data-nscript",N),k&&p(k),document.body.appendChild(B)};function y(P){const{strategy:E="afterInteractive"}=P;E==="lazyOnload"?window.addEventListener("load",()=>{(0,u.requestIdleCallback)(()=>g(P))}):g(P)}function _(P){document.readyState==="complete"?(0,u.requestIdleCallback)(()=>g(P)):window.addEventListener("load",()=>{(0,u.requestIdleCallback)(()=>g(P))})}function b(){[...document.querySelectorAll('[data-nscript="beforeInteractive"]'),...document.querySelectorAll('[data-nscript="beforePageRender"]')].forEach(E=>{const S=E.id||E.getAttribute("src");h.add(S)})}function C(P){P.forEach(y),b()}function v(P){const{id:E,src:S="",onLoad:R=()=>{},onReady:T=null,strategy:w="afterInteractive",onError:I,stylesheets:N,...z}=P,{updateScripts:k,scripts:U,getIsSsr:q,appDir:B,nonce:V}=(0,a.useContext)(c.HeadManagerContext),G=(0,a.useRef)(!1);(0,a.useEffect)(()=>{const J=E||S;G.current||(T&&J&&h.has(J)&&T(),G.current=!0)},[T,E,S]);const F=(0,a.useRef)(!1);if((0,a.useEffect)(()=>{F.current||(w==="afterInteractive"?g(P):w==="lazyOnload"&&_(P),F.current=!0)},[P,w]),(w==="beforeInteractive"||w==="worker")&&(k?(U[w]=(U[w]||[]).concat([{id:E,src:S,onLoad:R,onReady:T,onError:I,...z}]),k(U)):q&&q()?h.add(E||S):q&&!q()&&g(P)),B){if(N&&N.forEach(J=>{i.default.preinit(J,{as:"style"})}),w==="beforeInteractive")return S?(i.default.preload(S,z.integrity?{as:"script",integrity:z.integrity}:{as:"script"}),a.default.createElement("script",{nonce:V,dangerouslySetInnerHTML:{__html:"(self.__next_s=self.__next_s||[]).push("+JSON.stringify([S])+")"}})):(z.dangerouslySetInnerHTML&&(z.children=z.dangerouslySetInnerHTML.__html,delete z.dangerouslySetInnerHTML),a.default.createElement("script",{nonce:V,dangerouslySetInnerHTML:{__html:"(self.__next_s=self.__next_s||[]).push("+JSON.stringify([0,{...z}])+")"}}));w==="afterInteractive"&&S&&i.default.preload(S,z.integrity?{as:"script",integrity:z.integrity}:{as:"script"})}return null}Object.defineProperty(v,"__nextScript",{value:!0});const j=v;(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)})(es,es.exports);var ex=es.exports,tx=ex;const gp=Or(tx),rx=({children:e,ONE_TRUST:t})=>n.jsxs(n.Fragment,{children:[n.jsx(gp,{src:"https://cdn.cookielaw.org/scripttemplates/otSDKStub.js",defer:!0,strategy:"afterInteractive","data-domain-script":t.siteId,type:"text/javascript"}),e]}),nx=Zv(()=>Promise.resolve(rx),{ssr:!1}),ox="_container_1kcm0_20",sx="_lgpd_1kcm0_71",ix="_success_1kcm0_205",ax="_error_1kcm0_225",Ne={"newsletter-root":"_newsletter-root_1kcm0_1","has-border-top":"_has-border-top_1kcm0_9","has-border-bottom":"_has-border-bottom_1kcm0_12",container:ox,"content-text":"_content-text_1kcm0_39","form-wrapper":"_form-wrapper_1kcm0_43",lgpd:sx,"textfield-structure-modifier":"_textfield-structure-modifier_1kcm0_166","input-wrapper-modifier":"_input-wrapper-modifier_1kcm0_172","support-text-modifier":"_support-text-modifier_1kcm0_176","submit-btn":"_submit-btn_1kcm0_180","loading-spinner":"_loading-spinner_1kcm0_191","terms-and-conditions-unchecked":"_terms-and-conditions-unchecked_1kcm0_197",success:ix,"text-structure-modifier":"_text-structure-modifier_1kcm0_210",error:ax},yp=({invalid_message:e,master_data_field:t,placeholder:r,required:o=!1,CONSTANTS:s})=>{const{isMobile:i}=le(),{inputsStatus:a,setInputsStatus:c,setFormStatus:l,variant:u}=Cs();return n.jsx(m.TextField.Structure,{className:`${Ne["textfield-structure-modifier"]} ${u}`,input:n.jsx(m.TextField.Input,{mode:"simple",label:r,sizeVariant:i?s.NEWSLETTER_CONFIGS.interactionSizeMob:s.NEWSLETTER_CONFIGS.interactionSizeDesk,name:t,className:`${Ne["input-wrapper-modifier"]} ${u}`,feedback:a[t]==="required"?"error":a[t],onChange:()=>{a[t]!=="none"&&(c(f=>({...f,[t]:"none"})),l("idle"))},required:o}),supportText:a[t]==="error"||a[t]==="required"?n.jsx("div",{className:u==="horizontal"?Ne["support-text-modifier"]:"",children:n.jsx(m.TextField.SupportText,{text:a[t]==="error"?e??s.NEWSLETTER_CONFIGS.messages.invalid_generic:s.NEWSLETTER_CONFIGS.messages.required_field,feedback:"error"})}):null})};yp.displayName="Newsletter.Input";const _p=({title:e,description:t,CONSTANTS:r})=>n.jsx("div",{className:Ne.success,children:n.jsx(m.TextStructure.Root,{adornment:{start:n.jsx(m.Icon,{name:r.ICONS.check_circle,size:"small"})},children:n.jsxs(m.TextStructure.DivWrapper,{className:Ne["text-structure-modifier"],children:[n.jsx("h3",{children:e}),n.jsx("p",{children:t})]})})});_p.displayName="Newsletter.Success";const vp=({formStatus:e,fields:t,CONSTANTS:r})=>n.jsx(n.Fragment,{children:e==="success"?n.jsx(_p,{description:r.NEWSLETTER_CONFIGS.messages.success_description,title:r.NEWSLETTER_CONFIGS.messages.success_title,CONSTANTS:r}):n.jsxs(n.Fragment,{children:[Array.isArray(t)&&t.map((o,s)=>n.jsx(yp,{invalid_message:o.invalid_message,master_data_field:o.master_data_field,placeholder:o.placeholder,required:o.required,type:o.type,CONSTANTS:r},`nt-field-${o.master_data_field}-${s}`)),e==="error"&&n.jsx("div",{className:Ne.error,children:n.jsx("p",{children:r.NEWSLETTER_CONFIGS.form.status.error})})]})});vp.displayName="Newsletter.FormFields";const xp=({formStatus:e,CONSTANTS:t,...r})=>{const{isMobile:o}=le();return n.jsxs(m.Button,{...r,className:Ne["submit-btn"],disabled:e==="success",size:o?"medium":"large",children:[n.jsx("span",{"data-loading":e==="loading","data-label":!0,children:t.NEWSLETTER_CONFIGS.submitLabel}),t.NEWSLETTER_CONFIGS.hasLoadingState&&e==="loading"&&n.jsx(m.Spinner,{className:Ne["loading-spinner"],size:"small"})]})};xp.displayName="Newsletter.SubmitButton";const bp=({checkboxRef:e,formStatus:t,setFormStatus:r,CONSTANTS:o})=>{const s=i=>{i.target.checked?(e.current=!0,t==="unchecked"&&r("idle")):e.current=!1};return n.jsxs(n.Fragment,{children:[n.jsx(m.Checkbox,{adornment:n.jsx(m.Icon,{name:o.ICONS.check,size:"x-small"}),defaultChecked:e.current,disabled:t==="success",name:"terms-and-conditions",label:o.NEWSLETTER_CONFIGS.messages.accept_terms_and_conditions,onChange:s,sizeVariant:"small"}),t==="unchecked"&&n.jsx("div",{className:Ne["terms-and-conditions-unchecked"],children:n.jsx(m.TextStructure.Root,{adornment:{start:n.jsx(m.Icon,{name:o.ICONS.alert_circle,size:"small"})},children:n.jsx(m.TextStructure.DivWrapper,{children:n.jsx("p",{children:o.NEWSLETTER_CONFIGS.messages.terms_and_conditions_not_accepted})})})})]})};bp.displayName="Newsletter.Terms";const jp=({formPayloadOptionals:e,masterDataEntity:t,CONSTANTS:r})=>{const{checkboxRef:o,fields:s,formStatus:i,hasTermsAndConditions:a,handleClickToSubmit:c,handleSubmit:l,setFormStatus:u}=Cs();return n.jsxs("form",{className:Ne["form-wrapper"],onSubmit:f=>l(f,e,t),children:[n.jsx(vp,{formStatus:i,fields:s,CONSTANTS:r}),a&&n.jsx(bp,{checkboxRef:o,formStatus:i,setFormStatus:u,CONSTANTS:r}),n.jsx(xp,{formStatus:i,type:"submit",variant:"primary",onClick:c,CONSTANTS:r})]})};jp.displayName="Newsletter.Form";const cx=["horizontal","vertical"],Vs=({className:e,description:t,formPayloadOptionals:r,fields:o,masterDataEntity:s,masterDataEmailField:i,masterDataNameField:a,lgpd:c,title:l,variant:u,borderTop:f,borderBottom:h,CONSTANTS:d,...p})=>{if(!i||!a)return null;const g=m.helpers.ValidateProp({fieldTypes:cx,property:u,fallback:"horizontal"});return n.jsx(Xl,{fields:o,masterDataEmailField:i,masterDataNameField:a,variant:g,CONSTANTS:d,children:n.jsxs("div",{...p,className:m.helpers.classNameConcat(Ne["newsletter-root"],[f&&Ne["has-border-top"],h&&Ne["has-border-bottom"],e].filter(Boolean)),"data-variant":g,children:[n.jsxs("div",{className:Ne.container,children:[n.jsxs("div",{className:Ne["content-text"],children:[l&&n.jsx("h2",{children:l}),t&&n.jsx("p",{children:t})]}),n.jsx(jp,{formPayloadOptionals:r,masterDataEntity:s,CONSTANTS:d})]}),n.jsx("div",{className:Ne.lgpd,children:n.jsx("p",{children:d.NEWSLETTER_CONFIGS.messages.lgpd})})]})})};Vs.displayName="Newsletter";const Cp=({children:e,...t})=>n.jsx("div",{...t,children:e});Cp.displayName="CallToAction";const lx="_wrapper_aejhu_1",ux="_body_aejhu_8",Er={wrapper:lx,body:ux,"wrapper-body":"_wrapper-body_aejhu_16","accordion-modifier":"_accordion-modifier_aejhu_32"},dx=({children:e,className:t,...r})=>n.jsx("div",{...r,className:m.helpers.classNameConcat(Er.wrapper,t),children:e}),fx=({data:e,ICONS:t})=>{const[r,o]=x.useState(null),s=a=>{o(c=>c===a?null:a)},{router:i}=xe();return n.jsx("div",{className:m.helpers.classNameConcat(Er.body),children:Array.isArray(e)&&(e==null?void 0:e.map((a,c)=>{var h;const l=r===a.id,u=a.buttonHref&&a.buttonHref!=="#",f=a.buttonHref&&a.type==="button"&&u?{onClick:()=>{var d;if((d=a.buttonHref)!=null&&d.startsWith("/")){i.push(a.buttonHref);return}window.open(a.buttonHref,"_blank")}}:{};return n.jsx("div",{children:a.type==="button"?n.jsxs(n.Fragment,{children:[n.jsx(m.Button,{variant:"tertiary",mode:a.buttonMode??"default",size:a.buttonSize??"medium",iconNameStart:t[a.buttonIcon]??a.buttonIcon,...f,style:{marginTop:16},children:a.buttonLabel}),n.jsx(m.Utils.Divider,{direction:"horizontal",size:"small",style:{height:16}})]}):n.jsxs(m.Accordion.Wrapper,{className:m.helpers.classNameConcat(Er["accordion-modifier"]),children:[n.jsx(m.Accordion.Header,{id:`${c}-${a.title}`,closeIndicator:l?n.jsx(m.Icon,{name:t.arrow_up,size:"medium"}):void 0,openIndicator:l?void 0:n.jsx(m.Icon,{name:t.arrow_down,size:"medium"}),title:"accordion-header",onClick:()=>s(a.id),children:n.jsx(m.TextStructure.Root,{children:n.jsx(m.TextStructure.DivWrapper,{children:n.jsx("h2",{className:"typography-style-body-sm",children:a.title})})})}),n.jsx(m.Accordion.Body,{title:"accordion-body",children:n.jsx(m.TextStructure.Root,{children:l&&n.jsxs(m.TextStructure.DivWrapper,{children:[a.subtitle?n.jsx("h3",{className:"typography-style-body-md",children:a.subtitle}):n.jsx(n.Fragment,{}),n.jsx("p",{className:"typography-style-caption",children:a.description}),a.buttonLabel&&a.buttonHref?n.jsx(Ye,{href:a.buttonHref??"#",mode:a.buttonMode??"default",size:a.buttonSize??"medium",adornments:(h=a.buttonIcon)!=null&&h.length?{end:n.jsx(m.Icon,{name:t[a.buttonIcon]??a.buttonIcon})}:void 0,children:a.buttonLabel}):n.jsx(n.Fragment,{})]})})})]})},a.id)}))})},px=({className:e,data:t,ICONS:r,...o})=>{const[s,i]=x.useState(!1),[a,c]=x.useState(null);x.useEffect(()=>{!s&&!a&&t&&c(t)},[s,a]);const l=x.useCallback(()=>{i(u=>!u)},[]);return a?n.jsxs(dx,{...o,className:e,children:[n.jsx("div",{className:Er["wrapper-body"],hidden:!s,children:s&&n.jsx(fx,{data:a.content,ICONS:r})}),n.jsx(Cp,{children:n.jsx("div",{onClick:l,children:s?n.jsx(m.Button,{iconNameEnd:r.close,size:(a==null?void 0:a.helpButtonSize)??"x-large"}):n.jsx(m.Button,{iconNameStart:(a==null?void 0:a.iconLabel)??r.help,size:(a==null?void 0:a.helpButtonSize)??"x-large",children:a==null?void 0:a.label})})})]}):n.jsx(n.Fragment,{})},jr={teamComponents:{AddToCart:Ps,BackToTop:yh,HelpButton:px,BuyPackage:Uu,Filter:{...tt,helpers:rf},...T_,FreightCalculation:Wd,Header:Ud,Link:Ye,Media:Be,PLPNavigation:ct,ProductCard:ve,ProductList:et,ProductVariationList:Xe,Sort:zr,UserMenu:Os,Newsletter:Vs},template:{minicart:Me,pdc:up,pdc_composites:Ze,pdp:_v,searchResult:hp,wishList:Iu},utils:{EventCollector:Vv,ExternalScripts:nx,LinkOrNotLink:Kt,ObserverWrapper:Dr,SnackBarComponent:Pt,DraftJsLinkWrapper:Xf}},mx=(e,t)=>{const r=e.map(s=>`'${s.source}'`).join(`,
43
43
  `);return`
44
44
  import type { NextRequest } from 'next/server'
45
45
  import { NextResponse } from 'next/server'
@@ -79,4 +79,4 @@ See more info here: https://nextjs.org/docs/messages/no-stylesheets-in-head-comp
79
79
  ${r}
80
80
  ]
81
81
  }
82
- `},ix=Object.freeze(Object.defineProperty({__proto__:null,generateMiddleware:ax},Symbol.toStringTag,{value:"Module"})),cx={helpers:ix},Zo={"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 lx(e,t){const{mediatorRef:r}=ce();x.useEffect(()=>r.current.subscribe(e,t),[e,t])}const rc=({prevOnClick:e,nextOnClick:t,onBulletClick:r,currentPage:o,totalPages:s,position:a,hideControllers:i,left:c,isFirst:l,ICONS:u})=>{const[p,h]=x.useState("default");return lx("herobanner:change_controllers_variant",d=>{l&&h(d.includes("white")?"inverse":"default")}),n.jsxs(m.Carousel.Controller,{className:Zo["carousel-controllers-modifier"],position:a??"absolute","data-hide-controllers":i,bottom:"16px",top:"unset",left:c,children:[n.jsxs(m.Carousel.Arrows,{className:Zo["carrousel-arrows-display-controller"],children:[n.jsx(m.Button,{variant:"tertiary",onClick:e,adornment:{start:n.jsx(m.Icon,{name:u.arrow_left})},mode:p}),n.jsx(m.Button,{variant:"tertiary",onClick:t,adornment:{start:n.jsx(m.Icon,{name:u.arrow_right})},mode:p})]}),n.jsx(m.Carousel.Bullets,{page:o,total:s,onBulletClick:r,mode:p})]})},ux=({children:e,data:t,banner:r,...o})=>{const{mediatorRef:s}=ce();return t.data.first?n.jsx(kr,{observerOptions:{threshold:.51},stopOnIntersection:!1,callBackWhenVisible:()=>{s.current.publish("header:change_variant",r.headerVariant)},...o,children:e}):n.jsx(n.Fragment,{children:e})},_p=e=>{const{initialize:t,pagination:r,controller:o,itemsStyles:s}=m.Carousel.useCarousel({gap:e.data.config.gap,itemsPerPage:e.data.config.slidesPerView,direction:"row"}),a=x.useRef(void 0),i=x.useMemo(()=>Uf(e.data.config.controllerPosition??"dentro-inferior-centro"),[e]),c=x.useCallback(()=>{e.data.config.slideDuration&&r.totalPages>1&&(a.current=setInterval(()=>{o==null||o.nextPage()},e.data.config.slideDuration*1e3))},[o,e.data.config.slideDuration,r.totalPages]),l=x.useCallback(p=>{clearInterval(a.current),c(),p()},[c]),u=x.useMemo(()=>{var p;return{nextOnClick:()=>l(()=>o==null?void 0:o.nextPage()),prevOnClick:()=>l(()=>o==null?void 0:o.prevPage()),onBulletClick:h=>l(()=>o==null?void 0:o.navigateTo(h)),currentPage:r.currentPage,totalPages:r.totalPages,position:i.position,hideControllers:((p=e.data.config)==null?void 0:p.hideControllers)??!1,left:i.left}},[r.currentPage,r.totalPages,i.position,e.data.config.hideControllers,l,o]);return x.useEffect(()=>(c(),()=>clearInterval(a.current)),[c]),n.jsxs(m.Carousel.Root,{innerRef:p=>{t(p)},className:m.helpers.classNameConcat(Zo["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"&&r.totalPages>1?n.jsx(rc,{ICONS:e.ICONS,...u,isFirst:e.data.first}):n.jsx(n.Fragment,{}),n.jsx(m.Carousel.Body,{children:e==null?void 0:e.data.banners.map((p,h)=>n.jsx(m.Carousel.Item,{style:s,children:n.jsx(ux,{data:e,banner:p,children:n.jsx(Xt,{ICONS:e.ICONS,suppressContentEditableWarning:!0,suppressHydrationWarning:!0,data:{banner:p,index:h,componentIndex:e.data.componentIndex},creative:"banner-carousel",...e.data.first&&h===0&&{priority:!0}})})},`hero-banner-item-${h}`))}),i.shouldRender==="bottom"&&r.totalPages>1?n.jsx(rc,{ICONS:e.ICONS,...u}):n.jsx(n.Fragment,{})]})},dx={Banner:zs},Nt={"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"},vp=({data:e,CONSTANTS:t})=>{var u;const{isMobile:r}=ce(),o=e.config.size??"medium",s=e.config.disableCarouselMobile??!1,{initialize:a,pagination:i,controller:c,itemsStyles:l}=m.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&&s?"column":"row"});return n.jsx(m.Utils.Column,{style:{width:o==="small"?"70%":"100%"},alignContent:"center",justifyContent:"center",alignItems:"center",children:n.jsxs(m.Carousel.Root,{innerRef:p=>{a(p)},className:m.helpers.classNameConcat(Nt["carousel-modifier"],"common-section"),children:[o==="medium"?n.jsxs(m.TextStructure.Root,{children:[n.jsx(m.TextStructure.DivWrapper,{className:Nt["carousel-title-modifier"],children:n.jsx("h2",{className:"typography-style-body-lg",children:t.BENNEFITS_BAR_TITLE})}),r&&i.totalPages>1?n.jsx(m.Carousel.Controller,{className:Nt["row-controller-modifier"],children:n.jsxs(m.Carousel.Arrows,{children:[n.jsx(m.Button,{variant:"tertiary",onClick:()=>c==null?void 0:c.prevPage(),adornment:{start:n.jsx(m.Icon,{name:t.ICONS.arrow_left})}}),n.jsx(m.Button,{variant:"tertiary",onClick:()=>c==null?void 0:c.nextPage(),adornment:{start:n.jsx(m.Icon,{name:t.ICONS.arrow_right})}})]})}):n.jsx(n.Fragment,{})]}):n.jsx(n.Fragment,{}),n.jsx(m.Carousel.Body,{children:e.bennefit.map((p,h)=>n.jsx(m.Carousel.Item,{className:Nt["card-modifier"],style:l,children:n.jsx(m.Card,{stroke:!0,padding:"small",children:n.jsx(m.TextStructure.Root,{layoutProps:{columnWrapper:{alignContent:"start",alignItems:"start",justifyContent:"start"},textRow:{alignContent:"center",alignItems:"center",justifyContent:"center"}},adornment:{[o==="medium"?"top":"start"]:n.jsx(m.Icon,{name:p.icon,size:o==="medium"?"medium":"small"})},children:n.jsxs(m.TextStructure.DivWrapper,{alignItems:"start",children:[n.jsx("h3",{className:"typography-style-body-md",children:p.title}),p.subtitle&&p.subtitle.length?n.jsx("p",{className:"typography-style-body-xs",children:p.subtitle}):n.jsx(n.Fragment,{})]})})})},`bennefit=${h}`))}),!r&&i.totalPages>1?n.jsxs(m.Carousel.Controller,{className:Nt["row-controller-modifier"],children:[n.jsxs(m.Carousel.Arrows,{children:[n.jsx(m.Button,{variant:"tertiary",onClick:()=>c==null?void 0:c.prevPage(),adornment:{start:n.jsx(m.Icon,{name:t.ICONS.arrow_left})}}),n.jsx(m.Button,{variant:"tertiary",onClick:()=>c==null?void 0:c.nextPage(),adornment:{start:n.jsx(m.Icon,{name:t.ICONS.arrow_right})}})]}),n.jsx(m.Carousel.Bullets,{page:i.currentPage,total:i.totalPages,onBulletClick:p=>c==null?void 0:c.navigateTo(p)})]}):n.jsx(n.Fragment,{})]})})},xp=({data:e,ICONS:t})=>n.jsx("div",{className:m.helpers.classNameConcat(Vo.textContentSection),style:e.borderTop?{borderTop:"none"}:void 0,children:n.jsx(Wf,{data:e,ICONS:t})}),nc={"accordion-modifier":"_accordion-modifier_1we16_1","accordion-body-modifier":"_accordion-body-modifier_1we16_7"},bp=({data:e,id:t,ICONS:r})=>{var a;const[o,s]=x.useState([]);return n.jsxs(m.Utils.Column,{gap:"var(--gap-vertical-sm)",children:[e.titleAccordion?n.jsx(m.TextStructure.Root,{children:n.jsx(m.TextStructure.DivWrapper,{children:n.jsx("h2",{className:m.helpers.classNameConcat("typography-style-heading-sm","common-section"),style:{fontWeight:500},children:e.titleAccordion})})}):n.jsx(n.Fragment,{}),(a=e.accordions)==null?void 0:a.map((i,c)=>n.jsxs(m.Accordion.Wrapper,{className:nc["accordion-modifier"],children:[n.jsx(m.Accordion.Header,{id:`${t}-text-accordion-${c}`,openIndicator:n.jsx(m.Icon,{name:r.arrow_down}),closeIndicator:n.jsx(m.Icon,{name:r.arrow_up}),startOpen:o.includes(c),onClick:()=>s(l=>l.includes(c)?l.filter(u=>u!==c):[...l,c]),children:n.jsx(m.TextStructure.Root,{children:n.jsxs(m.TextStructure.DivWrapper,{className:Wo["draftjs-text-modifier"],children:[n.jsx("h3",{className:"typography-style-body-md-strong",children:i.title}),i.subtitle&&i.subtitle.length?n.jsx("h2",{children:i.subtitle}):n.jsx(n.Fragment,{})]})})}),n.jsx(m.Accordion.Body,{children:n.jsx(m.TextStructure.Root,{children:n.jsx(m.TextStructure.DivWrapper,{className:m.helpers.classNameConcat(nc["accordion-body-modifier"],Wo["draftjs-text-modifier"]),children:n.jsx(Ke.Editor,{editorKey:`${t}-editor-${c}`,blockRenderMap:Cr,editorState:i.text?jr(JSON.parse(i.text)):Ke.EditorState.createEmpty(),onChange:()=>null})})})})]},`${t}-accordion-${c}-${o.includes(c)}`))]})},jp=x.createContext({}),fx=({data:e,children:t,...r})=>{var g,_,y,b,C,v,j,P,E,S,R,T,w;const[o,s]=x.useState(!0),{initialize:a,controller:i,itemsStyles:c}=m.Carousel.useCarousel({gap:0,itemsPerPage:1}),l={slideTranstionTimer:(_=(g=e==null?void 0:e.staticConfig)==null?void 0:g.staticConfig)==null?void 0:_.slideTranstionTimer,showCarouselArrows:(b=(y=e==null?void 0:e.staticConfig)==null?void 0:y.staticConfig)==null?void 0:b.showCarouselArrows,hasCloseBtn:(v=(C=e==null?void 0:e.staticConfig)==null?void 0:C.staticConfig)==null?void 0:v.hasCloseBtn,backgroundColor:(P=(j=e==null?void 0:e.staticConfig)==null?void 0:j.staticConfig)==null?void 0:P.backgroundColor,textColorVariant:(S=(E=e==null?void 0:e.staticConfig)==null?void 0:E.staticConfig)==null?void 0:S.textColorVariant,content:((T=(R=e==null?void 0:e.content)==null?void 0:R.content)==null?void 0:T.items)??[]},u=(w=l.content)==null?void 0:w.filter(N=>!N.countDownEndDate||new Date(N.countDownEndDate)>new Date),p=u.length>1,h={...l.backgroundColor?{backgroundColor:l.backgroundColor}:{}},d=()=>{s(!1)},f=m.helpers.ValidateProp({fieldTypes:Ct.Mode,property:l.textColorVariant,fallback:"default"});return n.jsx(jp.Provider,{value:{isOpen:o,setIsOpen:s,hasCarousel:p,backgroundStyle:h,handleCloseTipbar:d,mode:f,slideTranstionTimer:l.slideTranstionTimer,showCarouselArrows:l.showCarouselArrows,hasCloseBtn:l.hasCloseBtn,slices:u,carouselProps:{initialize:a,controller:i,itemsStyles:c},...r},children:t})},tt=()=>x.useContext(jp),px=({dateEnd:e,...t})=>{const{CONSTANTS:{TIME_ZONE:r}}=tt();return n.jsx(Go,{dateEnd:new Date(e),TIME_ZONE:r,...t})},mx="_tipbar_bt3p0_1",hx="_tipbar__carousel_bt3p0_15",Yt={tipbar:mx,tipbar__carousel:hx,"tipbar__close-btn":"_tipbar__close-btn_bt3p0_29","tipbar-item":"_tipbar-item_bt3p0_37","tipbar-item__coupon":"_tipbar-item__coupon_bt3p0_45"},gx=({coupon:e,feedbackTitle:t,feedbackDescription:r,...o})=>{const{CONSTANTS:s}=tt(),{addCouponSeller:a,cartStore:i}=Ee(),[c,l]=x.useState({status:!1,showSnackBar:!1}),[u,p]=x.useState(!1),[h,d]=x.useState(!1),f=async()=>{if(!i.items.length){d(!0);return}(await a(e,"coupon")).code===200?l({status:!0,showSnackBar:!0}):p(!0)};return x.useEffect(()=>{c.showSnackBar&&setTimeout(()=>{l(g=>({...g,showSnackBar:!1}))},s.TIPBAR_CONFIGS.snackbar_timeout)},[c.showSnackBar]),x.useEffect(()=>{u&&setTimeout(()=>{p(!1)},s.TIPBAR_CONFIGS.snackbar_timeout)},[u]),x.useEffect(()=>{h&&setTimeout(()=>{d(!1)},s.TIPBAR_CONFIGS.snackbar_timeout)},[h]),n.jsxs(n.Fragment,{children:[n.jsx(m.Button,{...o,onClick:f,disabled:c.status,className:Yt["tipbar-item__coupon"],children:c.status?`${s.TIPBAR_CONFIGS.coupon_applied_message}`:`${s.TIPBAR_CONFIGS.coupon_default_message}`}),c.showSnackBar&&(t||r)&&n.jsx(kt,{title:t,subtitle:r,Z_INDEX_WAR:s.Z_INDEX_WAR},`feedback-coupon-${e}`),u&&n.jsx(kt,{title:s.TIPBAR_CONFIGS.coupon_error_title,subtitle:s.TIPBAR_CONFIGS.coupon_error_message,Z_INDEX_WAR:s.Z_INDEX_WAR},`error-coupon-${e}`),h&&n.jsx(kt,{title:s.TIPBAR_CONFIGS.coupon_cart_empty_title,subtitle:s.TIPBAR_CONFIGS.coupon_cart_empty_message,Z_INDEX_WAR:s.Z_INDEX_WAR},`error-cart-empty-${e}`)]})},yx=({title:e,description:t,style:r,mode:o,className:s})=>n.jsx(m.TextStructure.Root,{children:n.jsxs(m.TextStructure.DivWrapper,{mode:o,className:s,children:[e&&n.jsx("h3",{className:"typography-style-body-sm",style:r,children:e}),t&&n.jsx("p",{className:"typography-style-caption",style:r,children:t})]})}),_x=({coupon:e,...t})=>{const{CONSTANTS:r}=tt();return n.jsx(m.Copy,{...t,iconCopy:r.ICONS.copy,iconSuccess:r.ICONS.check,children:e})},vx=({staticZone:e,type:t,className:r,description:o,title:s})=>{const{mode:a}=tt();if(t==="countdown")return n.jsx(px,{dateEnd:e.countDownEndDate,size:"x-small",mode:a});if(t==="coupon"){const i=m.helpers.ValidateProp({fieldTypes:Ct.Mode,property:e.couponButtonMode,fallback:"default"}),c=m.helpers.ValidateProp({fieldTypes:Ct.VariantsExtended,property:e.couponButtonVariant,fallback:"primary"});return e.coupon?n.jsx(gx,{coupon:e.coupon,mode:i,variant:c,feedbackTitle:e.couponFeedbackTitle,feedbackDescription:e.couponFeedbackDescription}):null}if(t==="copy"){const i=m.helpers.ValidateProp({fieldTypes:Ct.Mode,property:e.couponButtonMode,fallback:"default"});return e.coupon?n.jsx(_x,{coupon:e.coupon,mode:i}):null}return n.jsx(yx,{title:s,description:o,mode:a,className:r})},oc=({handleCloseTipbar:e,mode:t})=>{const{CONSTANTS:r}=tt();return n.jsx(m.Button,{title:"fechar tipbar",className:Yt["tipbar__close-btn"],onClick:e,variant:"tertiary",mode:t,adornment:{start:n.jsx(m.Icon,{name:r.ICONS.close})}})},xx=({children:e,mode:t="default",showCarouselArrows:r=!0,slideTranstionTimer:o})=>{const{carouselProps:s,CONSTANTS:a}=tt(),i=x.useRef(null),c=(u,p)=>{var h,d;u.stopPropagation(),u.preventDefault(),p==="prev"?(h=s.controller)==null||h.prevPage():(d=s.controller)==null||d.nextPage(),i.current&&(clearInterval(i.current),l())},l=x.useCallback(()=>{if(o&&s.controller){const u=setInterval(()=>{var p;(p=s.controller)==null||p.nextPage()},o);i.current=u}},[o,s]);return x.useEffect(()=>(l(),()=>{i.current&&clearInterval(i.current)}),[o,l]),n.jsxs(m.Carousel.Root,{innerRef:u=>{s.initialize(u)},className:Yt.tipbar__carousel,style:{flexDirection:"row",alignItems:"center"},children:[r&&n.jsx(m.Button,{variant:"tertiary",mode:t,onClick:u=>c(u,"prev"),adornment:{start:n.jsx(m.Icon,{name:a.ICONS.arrow_left})}}),n.jsx(m.Carousel.Body,{children:e}),r&&n.jsx(m.Button,{variant:"tertiary",mode:t,onClick:u=>c(u,"next"),adornment:{start:n.jsx(m.Icon,{name:a.ICONS.arrow_right})}})]})},bx=({children:e,className:t})=>{const{hasCarousel:r,mode:o,hasCloseBtn:s,backgroundStyle:a,showCarouselArrows:i,slideTranstionTimer:c,handleCloseTipbar:l}=tt(),u=r&&i;return n.jsx("div",{style:a,"data-hasclosebtn":s,className:m.helpers.classNameConcat(Yt.tipbar,t),children:r?n.jsxs(n.Fragment,{children:[n.jsx(xx,{mode:o,showCarouselArrows:u,slideTranstionTimer:c,children:e}),s&&n.jsx(oc,{handleCloseTipbar:l,showCarouselArrows:u,mode:o})]}):n.jsxs(n.Fragment,{children:[e,s&&n.jsx(oc,{handleCloseTipbar:l,mode:o})]})})},jx=({children:e,highlightFirstSection:t,...r})=>{const{hasCarousel:o,carouselProps:s}=tt(),a=n.jsx("div",{...r,className:Yt["tipbar-item"],children:e});return o?n.jsx(m.Carousel.Item,{style:s.itemsStyles,children:a}):a},Cp=({className:e})=>{const{isOpen:t,slices:r}=tt();return r.length&&t?n.jsx(bx,{children:r.map((o,s)=>{var a;return n.jsx(n.Fragment,{children:n.jsx(Ut,{href:o.link,children:n.jsx(jx,{highlightFirstSection:o.highlightFirstSection,"data-justifyhighlightedsection":o.horizontalAlignHighlightedSection?o.horizontalAlignHighlightedSection:"center",children:o&&((a=o==null?void 0:o.items)!=null&&a.length)?o.items.map((i,c)=>n.jsx(vx,{staticZone:o,type:i.type,title:i.title,description:i.description,className:e},`tipbar-slice-field-${c}`)):null})})},`tipbar-slice-${s}`)})}):null};Cp.displayName="TipBar.Root";const Jo=({className:e,...t})=>n.jsx(fx,{...t,children:n.jsx(Cp,{className:e})});Jo.displayName="TipBar";const Cx=({CONSTANTS:e,data:t})=>{const{pathname:r}=xe(),{tipbarRef:o}=je(),s=c=>{const l=t==null?void 0:t.find(u=>{var p,h,d,f,g;return((h=(p=u.staticConfig)==null?void 0:p.staticConfig)==null?void 0:h.deviceType)===c&&((g=(f=(d=u.staticConfig)==null?void 0:d.staticConfig)==null?void 0:f.paths)==null?void 0:g.includes(r))});return l||(t==null?void 0:t.find(u=>{var p,h,d,f,g,_;return((h=(p=u.staticConfig)==null?void 0:p.staticConfig)==null?void 0:h.deviceType)===c&&(!((f=(d=u.staticConfig)==null?void 0:d.staticConfig)!=null&&f.paths)||((_=(g=u.staticConfig)==null?void 0:g.staticConfig)==null?void 0:_.paths.length)===0)}))},a=s("desktop"),i=s("mobile");return n.jsxs("div",{ref:o,className:U.responsive["responsive-flex"],children:[i&&n.jsx("div",{className:U.responsive["responsive-mobile-flex"],children:n.jsx(Jo,{data:i,CONSTANTS:e})}),a&&n.jsx("div",{className:U.responsive["responsive-desktop-flex"],children:n.jsx(Jo,{data:a,CONSTANTS:e})})]})},sc={"card-image-wrapper":"_card-image-wrapper_10mul_1","card-image-container":"_card-image-container_10mul_9"},Sp=e=>{const{nextimage:t}=xe();return n.jsx(n.Fragment,{children:e.data.banners.map((r,o)=>n.jsx("div",{className:sc["card-image-wrapper"],children:n.jsx("div",{className:sc["card-image-container"],children:n.jsx(t,{src:r.image,alt:r.altImage?r.altImage:"Banner Coleção",width:500,height:600})})},o))})},Sx=({SectionZone:e,CMS_PROJECT_NAME:t,storeId:r,previewId:o})=>{const[s,a]=x.useState();return x.useEffect(()=>{s||U.getContentType({contentType:"search",CMS_PROJECT_NAME:t,storeId:r,previewId:o}).then(i=>{a(i.data[0])})},[]),n.jsx(e,{data:s??[]})},Pp=({data:{componentIndex:e,...t},CONSTANTS:r})=>n.jsx(Hs,{...t,CONSTANTS:r}),wp=async e=>{const{type:t}=e,r=t==="collectionSearch"?"/api/search/product":"/api/search/crosseling",o=JSON.stringify(t==="collectionSearch"?{...e.params,facets:e.facets,term:e.term,forceUpdate:!1}:e.facets);return(await fetch(r,{method:"POST",headers:{"Content-Type":"application/json"},body:o}).then(a=>a.json()).then(a=>t==="collectionSearch"?a.data.products:a.products)).filter(a=>!!a.node.availability.status)},Px="_shelf__container_bi04n_10",Ep={shelf__container:Px},wx=({collectionSearch:e,title:t,CONSTANTS:r,WishListToggle:o})=>{const[s,a]=x.useState([]),{isMobile:i}=ce(),{ref:c,inView:l}=ic.useInView({threshold:.7,delay:100,triggerOnce:!0}),{sendDataLayerEvent:u}=le();return x.useEffect(()=>{if(!e)return;function p(){var h,d;wp({type:"collectionSearch",term:e==null?void 0:e.term,facets:e==null?void 0:e.facets,params:{count:((h=e==null?void 0:e.params)==null?void 0:h.count)??12,sort:((d=e==null?void 0:e.params)==null?void 0:d.sort)??r.ITEMS_DEFAULT_SORT}}).then(f=>{a(f)})}p()},[e]),x.useEffect(()=>{!l||s.length===0||u({functionKey:"productListEvent",data:{event:"view_item_list",commonData:{products:s},customData:{item_list_name:t??"Você também pode gostar"}}})},[l,s]),s.length===0?null:n.jsx("div",{ref:c,className:Ep.shelf__container,children:n.jsx(Lt.Shelf,{title:t??"Você também pode gostar",itemsPerPage:{desktop:4.4,mobile:2.2},ICONS:r.ICONS,children:Array.isArray(s)&&s.map(({node:p},h)=>{const{availability:{status:d}}=p;return d?n.jsx(Lt.Card,{item:p,isMobile:i,size:"medium",index:h,shelfTitle:t??"Você também pode gostar",CONSTANTS:r,WishListToggle:o},p.id):null})})})},Ex=({recommendationSearch:e,title:t,CONSTANTS:r,WishListToggle:o})=>{const[s,a]=x.useState([]),{isMobile:i}=ce(),{ref:c,inView:l}=ic.useInView({threshold:.7,delay:100,triggerOnce:!0}),{sendDataLayerEvent:u}=le(),p=x.useMemo(()=>e?[{key:e.type,value:e.productId}]:[],[e]);return x.useEffect(()=>{if(!e)return;function h(){var d;wp({type:"recommendationSearch",facets:p,params:{count:((d=e==null?void 0:e.params)==null?void 0:d.count)??12,sort:r.ITEMS_DEFAULT_SORT}}).then(f=>a(f))}h()},[p,e]),x.useEffect(()=>{if(!l||s.length===0||(e==null?void 0:e.type)==="suggestions")return;const h=t??"Você também pode gostar";u({functionKey:"productListEvent",data:{event:"view_item_list",commonData:{products:s},customData:{item_list_name:h},outsideEcommerceData:{item_list_name:h}}})},[l,s]),(s==null?void 0:s.length)===0?null:(e==null?void 0:e.type)==="suggestions"?n.jsx(Ou,{products:s,innerRef:c,inView:l,WishListToggle:o,CONSTANTS:r}):n.jsx("div",{ref:c,className:Ep.shelf__container,children:n.jsx(Lt.Shelf,{title:t??"Você também pode gostar",itemsPerPage:{desktop:4.4,mobile:2.2},ICONS:r.ICONS,children:Array.isArray(s)&&s.map(({node:h},d)=>{const{availability:{status:f}}=h;return f?n.jsx(Lt.Card,{item:h,isMobile:i,size:"medium",index:d,shelfTitle:t??"Você também pode gostar",CONSTANTS:r,WishListToggle:o},h.id):null})})})},Rp=({data:e,CONSTANTS:t,WishListToggle:r})=>{const{productId:o}=Hl();return e.productLists.map((s,a)=>n.jsx(Ex,{title:s.title,recommendationSearch:{type:s.product_group_option,productId:o,params:{count:s.number_of_items,sort:"score:desc"}},CONSTANTS:t,WishListToggle:r},`shelf=${a}`))},Ap=({data:e,CONSTANTS:t,WishListToggle:r})=>e.productLists.map((o,s)=>{const a=o.collectionId?{term:"",facets:[{key:"productclusterids",value:`${o.collectionId}`}]}:{term:o.search_base_name,facets:[]};return n.jsx(wx,{title:o.title,collectionSearch:{params:{count:o.number_of_items,sort:o.sort},...a},CONSTANTS:t,WishListToggle:r},`shelf=${s}`)}),Rx="_embedLiveContainer_1ss0l_2",Ax="_embedLivePlayer_1ss0l_7",ac={embedLiveContainer:Rx,embedLivePlayer:Ax},Np=({data:e})=>n.jsx("div",{className:ac.embedLiveContainer,children:n.jsx("div",{className:ac.embedLivePlayer,children:e.banner.videosrc?n.jsx(Be.Video,{src:e.banner.videosrc??"",playsInline:!0,autoPlay:!0,loop:!0,muted:!0,title:"Live",controls:!0}):n.jsxs("div",{children:[n.jsx("iframe",{src:e.banner.embed_source??"",allow:"autoplay; fullscreen; picture-in-picture; loop;",title:"Live"}),n.jsx(up,{src:"https://player.vimeo.com/api/player.js",defer:!0,strategy:"lazyOnload"})]})})}),Nx={"Image Grid":Sp,"Embed Live":Np,"Banner Carousel":_p,Banner:zs,"Bennefits Bar":vp,newsletter:Pp,TextContent:xp,TextAccordion:bp,"Product Carousel":Ap,"PDP Product Carousel":Rp},Ix=({data:e,identifyWhoIsFirst:t=!1,componentConfigs:r})=>e==null?void 0:e.map((o,s)=>{const a=Nx[o.name],i=r[o.name];return t&&s===0&&(o.data.first=!0),o.data.componentIndex=s,o.name==="TextAccordion"&&(i.id=`text-accordion-${s}`),a?n.jsx(a,{data:o.data,...i},`section-zone-component-${s}`):null}),Tx={Banner:dx,BannerSection:Xt,BennefitsBarSection:vp,SingleBannerSection:zs,TextContentSection:xp,BannerCarousel:_p,TextAccordionSection:bp,TipbarScreening:Cx,ImageGrid:Sp,SearchPageScreening:U.SearchPageScreening,SearchContent:Sx,NewsletterSection:Pp,PDPProductCarousel:Rp,ProductCarousel:Ap,EmbedLive:Np,SectionZone:Ix},Ox={Components:Tx,helpers:yv};exports.cms=Ox;exports.contexts=Kl;exports.data=js;exports.layout=vr;exports.scripts=cx;
82
+ `},hx=Object.freeze(Object.defineProperty({__proto__:null,generateMiddleware:mx},Symbol.toStringTag,{value:"Module"})),gx={helpers:hx},ts={"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 yx(e,t){const{mediatorRef:r}=le();x.useEffect(()=>r.current.subscribe(e,t),[e,t])}const oc=({prevOnClick:e,nextOnClick:t,onBulletClick:r,currentPage:o,totalPages:s,position:i,hideControllers:a,left:c,isFirst:l,ICONS:u})=>{const[f,h]=x.useState("default");return yx("herobanner:change_controllers_variant",d=>{l&&h(d.includes("white")?"inverse":"default")}),n.jsxs(m.Carousel.Controller,{className:ts["carousel-controllers-modifier"],position:i??"absolute","data-hide-controllers":a,bottom:"16px",top:"unset",left:c,children:[n.jsxs(m.Carousel.Arrows,{className:ts["carrousel-arrows-display-controller"],children:[n.jsx(m.Button,{variant:"tertiary",onClick:e,adornment:{start:n.jsx(m.Icon,{name:u.arrow_left})},mode:f}),n.jsx(m.Button,{variant:"tertiary",onClick:t,adornment:{start:n.jsx(m.Icon,{name:u.arrow_right})},mode:f})]}),n.jsx(m.Carousel.Bullets,{page:o,total:s,onBulletClick:r,mode:f})]})},_x=({children:e,data:t,banner:r,...o})=>{const{mediatorRef:s}=le();return t.data.first?n.jsx(Dr,{observerOptions:{threshold:.51},stopOnIntersection:!1,callBackWhenVisible:()=>{s.current.publish("header:change_variant",r.headerVariant)},...o,children:e}):n.jsx(n.Fragment,{children:e})},Sp=e=>{const{initialize:t,pagination:r,controller:o,itemsStyles:s}=m.Carousel.useCarousel({gap:e.data.config.gap,itemsPerPage:e.data.config.slidesPerView,direction:"row"}),i=x.useRef(void 0),a=x.useMemo(()=>Yf(e.data.config.controllerPosition??"dentro-inferior-centro"),[e]),c=x.useCallback(()=>{e.data.config.slideDuration&&r.totalPages>1&&(i.current=setInterval(()=>{o==null||o.nextPage()},e.data.config.slideDuration*1e3))},[o,e.data.config.slideDuration,r.totalPages]),l=x.useCallback(f=>{clearInterval(i.current),c(),f()},[c]),u=x.useMemo(()=>{var f;return{nextOnClick:()=>l(()=>o==null?void 0:o.nextPage()),prevOnClick:()=>l(()=>o==null?void 0:o.prevPage()),onBulletClick:h=>l(()=>o==null?void 0:o.navigateTo(h)),currentPage:r.currentPage,totalPages:r.totalPages,position:a.position,hideControllers:((f=e.data.config)==null?void 0:f.hideControllers)??!1,left:a.left}},[r.currentPage,r.totalPages,a.position,e.data.config.hideControllers,l,o]);return x.useEffect(()=>(c(),()=>clearInterval(i.current)),[c]),n.jsxs(m.Carousel.Root,{innerRef:f=>{t(f)},className:m.helpers.classNameConcat(ts["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:[a.shouldRender==="top"&&r.totalPages>1?n.jsx(oc,{ICONS:e.ICONS,...u,isFirst:e.data.first}):n.jsx(n.Fragment,{}),n.jsx(m.Carousel.Body,{children:e==null?void 0:e.data.banners.map((f,h)=>n.jsx(m.Carousel.Item,{style:s,children:n.jsx(_x,{data:e,banner:f,children:n.jsx(Jt,{ICONS:e.ICONS,suppressContentEditableWarning:!0,suppressHydrationWarning:!0,data:{banner:f,index:h,componentIndex:e.data.componentIndex},creative:"banner-carousel",...e.data.first&&h===0&&{priority:!0}})})},`hero-banner-item-${h}`))}),a.shouldRender==="bottom"&&r.totalPages>1?n.jsx(oc,{ICONS:e.ICONS,...u}):n.jsx(n.Fragment,{})]})},vx={Banner:Hs},Lt={"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"},Pp=({data:e,CONSTANTS:t})=>{var u;const{isMobile:r}=le(),o=e.config.size??"medium",s=e.config.disableCarouselMobile??!1,{initialize:i,pagination:a,controller:c,itemsStyles:l}=m.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&&s?"column":"row"});return n.jsx(m.Utils.Column,{style:{width:o==="small"?"70%":"100%"},alignContent:"center",justifyContent:"center",alignItems:"center",children:n.jsxs(m.Carousel.Root,{innerRef:f=>{i(f)},className:m.helpers.classNameConcat(Lt["carousel-modifier"],"common-section"),children:[o==="medium"?n.jsxs(m.TextStructure.Root,{children:[n.jsx(m.TextStructure.DivWrapper,{className:Lt["carousel-title-modifier"],children:n.jsx("h2",{className:"typography-style-body-lg",children:t.BENNEFITS_BAR_TITLE})}),r&&a.totalPages>1?n.jsx(m.Carousel.Controller,{className:Lt["row-controller-modifier"],children:n.jsxs(m.Carousel.Arrows,{children:[n.jsx(m.Button,{variant:"tertiary",onClick:()=>c==null?void 0:c.prevPage(),adornment:{start:n.jsx(m.Icon,{name:t.ICONS.arrow_left})}}),n.jsx(m.Button,{variant:"tertiary",onClick:()=>c==null?void 0:c.nextPage(),adornment:{start:n.jsx(m.Icon,{name:t.ICONS.arrow_right})}})]})}):n.jsx(n.Fragment,{})]}):n.jsx(n.Fragment,{}),n.jsx(m.Carousel.Body,{children:e.bennefit.map((f,h)=>n.jsx(m.Carousel.Item,{className:Lt["card-modifier"],style:l,children:n.jsx(m.Card,{stroke:!0,padding:"small",children:n.jsx(m.TextStructure.Root,{layoutProps:{columnWrapper:{alignContent:"start",alignItems:"start",justifyContent:"start"},textRow:{alignContent:"center",alignItems:"center",justifyContent:"center"}},adornment:{[o==="medium"?"top":"start"]:n.jsx(m.Icon,{name:f.icon,size:o==="medium"?"medium":"small"})},children:n.jsxs(m.TextStructure.DivWrapper,{alignItems:"start",children:[n.jsx("h3",{className:"typography-style-body-md",children:f.title}),f.subtitle&&f.subtitle.length?n.jsx("p",{className:"typography-style-body-xs",children:f.subtitle}):n.jsx(n.Fragment,{})]})})})},`bennefit=${h}`))}),!r&&a.totalPages>1?n.jsxs(m.Carousel.Controller,{className:Lt["row-controller-modifier"],children:[n.jsxs(m.Carousel.Arrows,{children:[n.jsx(m.Button,{variant:"tertiary",onClick:()=>c==null?void 0:c.prevPage(),adornment:{start:n.jsx(m.Icon,{name:t.ICONS.arrow_left})}}),n.jsx(m.Button,{variant:"tertiary",onClick:()=>c==null?void 0:c.nextPage(),adornment:{start:n.jsx(m.Icon,{name:t.ICONS.arrow_right})}})]}),n.jsx(m.Carousel.Bullets,{page:a.currentPage,total:a.totalPages,onBulletClick:f=>c==null?void 0:c.navigateTo(f)})]}):n.jsx(n.Fragment,{})]})})},wp=({data:e,ICONS:t})=>n.jsx("div",{className:m.helpers.classNameConcat(Xo.textContentSection),style:e.borderTop?{borderTop:"none"}:void 0,children:n.jsx(Qf,{data:e,ICONS:t})}),sc={"accordion-modifier":"_accordion-modifier_1we16_1","accordion-body-modifier":"_accordion-body-modifier_1we16_7"},Ep=({data:e,id:t,ICONS:r})=>{var i;const[o,s]=x.useState([]);return n.jsxs(m.Utils.Column,{gap:"var(--gap-vertical-sm)",children:[e.titleAccordion?n.jsx(m.TextStructure.Root,{children:n.jsx(m.TextStructure.DivWrapper,{children:n.jsx("h2",{className:m.helpers.classNameConcat("typography-style-heading-sm","common-section"),style:{fontWeight:500},children:e.titleAccordion})})}):n.jsx(n.Fragment,{}),(i=e.accordions)==null?void 0:i.map((a,c)=>n.jsxs(m.Accordion.Wrapper,{className:sc["accordion-modifier"],children:[n.jsx(m.Accordion.Header,{id:`${t}-text-accordion-${c}`,openIndicator:n.jsx(m.Icon,{name:r.arrow_down}),closeIndicator:n.jsx(m.Icon,{name:r.arrow_up}),startOpen:o.includes(c),onClick:()=>s(l=>l.includes(c)?l.filter(u=>u!==c):[...l,c]),children:n.jsx(m.TextStructure.Root,{children:n.jsxs(m.TextStructure.DivWrapper,{className:Ko["draftjs-text-modifier"],children:[n.jsx("h3",{className:"typography-style-body-md-strong",children:a.title}),a.subtitle&&a.subtitle.length?n.jsx("h2",{children:a.subtitle}):n.jsx(n.Fragment,{})]})})}),n.jsx(m.Accordion.Body,{children:n.jsx(m.TextStructure.Root,{children:n.jsx(m.TextStructure.DivWrapper,{className:m.helpers.classNameConcat(sc["accordion-body-modifier"],Ko["draftjs-text-modifier"]),children:n.jsx(Ke.Editor,{editorKey:`${t}-editor-${c}`,blockRenderMap:wr,editorState:a.text?Pr(JSON.parse(a.text)):Ke.EditorState.createEmpty(),onChange:()=>null})})})})]},`${t}-accordion-${c}-${o.includes(c)}`))]})},Rp=x.createContext({}),xx=({data:e,children:t,...r})=>{var g,y,_,b,C,v,j,P,E,S,R,T,w;const[o,s]=x.useState(!0),{initialize:i,controller:a,itemsStyles:c}=m.Carousel.useCarousel({gap:0,itemsPerPage:1}),l={slideTranstionTimer:(y=(g=e==null?void 0:e.staticConfig)==null?void 0:g.staticConfig)==null?void 0:y.slideTranstionTimer,showCarouselArrows:(b=(_=e==null?void 0:e.staticConfig)==null?void 0:_.staticConfig)==null?void 0:b.showCarouselArrows,hasCloseBtn:(v=(C=e==null?void 0:e.staticConfig)==null?void 0:C.staticConfig)==null?void 0:v.hasCloseBtn,backgroundColor:(P=(j=e==null?void 0:e.staticConfig)==null?void 0:j.staticConfig)==null?void 0:P.backgroundColor,textColorVariant:(S=(E=e==null?void 0:e.staticConfig)==null?void 0:E.staticConfig)==null?void 0:S.textColorVariant,content:((T=(R=e==null?void 0:e.content)==null?void 0:R.content)==null?void 0:T.items)??[]},u=(w=l.content)==null?void 0:w.filter(I=>!I.countDownEndDate||new Date(I.countDownEndDate)>new Date),f=u.length>1,h={...l.backgroundColor?{backgroundColor:l.backgroundColor}:{}},d=()=>{s(!1)},p=m.helpers.ValidateProp({fieldTypes:St.Mode,property:l.textColorVariant,fallback:"default"});return n.jsx(Rp.Provider,{value:{isOpen:o,setIsOpen:s,hasCarousel:f,backgroundStyle:h,handleCloseTipbar:d,mode:p,slideTranstionTimer:l.slideTranstionTimer,showCarouselArrows:l.showCarouselArrows,hasCloseBtn:l.hasCloseBtn,slices:u,carouselProps:{initialize:i,controller:a,itemsStyles:c},...r},children:t})},ot=()=>x.useContext(Rp),bx=({dateEnd:e,...t})=>{const{CONSTANTS:{TIME_ZONE:r}}=ot();return n.jsx(Yo,{dateEnd:new Date(e),TIME_ZONE:r,...t})},jx="_tipbar_bt3p0_1",Cx="_tipbar__carousel_bt3p0_15",er={tipbar:jx,tipbar__carousel:Cx,"tipbar__close-btn":"_tipbar__close-btn_bt3p0_29","tipbar-item":"_tipbar-item_bt3p0_37","tipbar-item__coupon":"_tipbar-item__coupon_bt3p0_45"},Sx=({coupon:e,feedbackTitle:t,feedbackDescription:r,...o})=>{const{CONSTANTS:s}=ot(),{addCouponSeller:i,cartStore:a}=Ee(),[c,l]=x.useState({status:!1,showSnackBar:!1}),[u,f]=x.useState(!1),[h,d]=x.useState(!1),p=async()=>{if(!a.items.length){d(!0);return}(await i(e,"coupon")).code===200?l({status:!0,showSnackBar:!0}):f(!0)};return x.useEffect(()=>{c.showSnackBar&&setTimeout(()=>{l(g=>({...g,showSnackBar:!1}))},s.TIPBAR_CONFIGS.snackbar_timeout)},[c.showSnackBar]),x.useEffect(()=>{u&&setTimeout(()=>{f(!1)},s.TIPBAR_CONFIGS.snackbar_timeout)},[u]),x.useEffect(()=>{h&&setTimeout(()=>{d(!1)},s.TIPBAR_CONFIGS.snackbar_timeout)},[h]),n.jsxs(n.Fragment,{children:[n.jsx(m.Button,{...o,onClick:p,disabled:c.status,className:er["tipbar-item__coupon"],children:c.status?`${s.TIPBAR_CONFIGS.coupon_applied_message}`:`${s.TIPBAR_CONFIGS.coupon_default_message}`}),c.showSnackBar&&(t||r)&&n.jsx(Pt,{title:t,subtitle:r,Z_INDEX_WAR:s.Z_INDEX_WAR},`feedback-coupon-${e}`),u&&n.jsx(Pt,{title:s.TIPBAR_CONFIGS.coupon_error_title,subtitle:s.TIPBAR_CONFIGS.coupon_error_message,Z_INDEX_WAR:s.Z_INDEX_WAR},`error-coupon-${e}`),h&&n.jsx(Pt,{title:s.TIPBAR_CONFIGS.coupon_cart_empty_title,subtitle:s.TIPBAR_CONFIGS.coupon_cart_empty_message,Z_INDEX_WAR:s.Z_INDEX_WAR},`error-cart-empty-${e}`)]})},Px=({title:e,description:t,style:r,mode:o,className:s})=>n.jsx(m.TextStructure.Root,{children:n.jsxs(m.TextStructure.DivWrapper,{mode:o,className:s,children:[e&&n.jsx("h3",{className:"typography-style-body-sm",style:r,children:e}),t&&n.jsx("p",{className:"typography-style-caption",style:r,children:t})]})}),wx=({coupon:e,...t})=>{const{CONSTANTS:r}=ot();return n.jsx(m.Copy,{...t,iconCopy:r.ICONS.copy,iconSuccess:r.ICONS.check,children:e})},Ex=({staticZone:e,type:t,className:r,description:o,title:s})=>{const{mode:i}=ot();if(t==="countdown")return n.jsx(bx,{dateEnd:e.countDownEndDate,size:"x-small",mode:i});if(t==="coupon"){const a=m.helpers.ValidateProp({fieldTypes:St.Mode,property:e.couponButtonMode,fallback:"default"}),c=m.helpers.ValidateProp({fieldTypes:St.VariantsExtended,property:e.couponButtonVariant,fallback:"primary"});return e.coupon?n.jsx(Sx,{coupon:e.coupon,mode:a,variant:c,feedbackTitle:e.couponFeedbackTitle,feedbackDescription:e.couponFeedbackDescription}):null}if(t==="copy"){const a=m.helpers.ValidateProp({fieldTypes:St.Mode,property:e.couponButtonMode,fallback:"default"});return e.coupon?n.jsx(wx,{coupon:e.coupon,mode:a}):null}return n.jsx(Px,{title:s,description:o,mode:i,className:r})},ic=({handleCloseTipbar:e,mode:t})=>{const{CONSTANTS:r}=ot();return n.jsx(m.Button,{title:"fechar tipbar",className:er["tipbar__close-btn"],onClick:e,variant:"tertiary",mode:t,adornment:{start:n.jsx(m.Icon,{name:r.ICONS.close})}})},Rx=({children:e,mode:t="default",showCarouselArrows:r=!0,slideTranstionTimer:o})=>{const{carouselProps:s,CONSTANTS:i}=ot(),a=x.useRef(null),c=(u,f)=>{var h,d;u.stopPropagation(),u.preventDefault(),f==="prev"?(h=s.controller)==null||h.prevPage():(d=s.controller)==null||d.nextPage(),a.current&&(clearInterval(a.current),l())},l=x.useCallback(()=>{if(o&&s.controller){const u=setInterval(()=>{var f;(f=s.controller)==null||f.nextPage()},o);a.current=u}},[o,s]);return x.useEffect(()=>(l(),()=>{a.current&&clearInterval(a.current)}),[o,l]),n.jsxs(m.Carousel.Root,{innerRef:u=>{s.initialize(u)},className:er.tipbar__carousel,style:{flexDirection:"row",alignItems:"center"},children:[r&&n.jsx(m.Button,{variant:"tertiary",mode:t,onClick:u=>c(u,"prev"),adornment:{start:n.jsx(m.Icon,{name:i.ICONS.arrow_left})}}),n.jsx(m.Carousel.Body,{children:e}),r&&n.jsx(m.Button,{variant:"tertiary",mode:t,onClick:u=>c(u,"next"),adornment:{start:n.jsx(m.Icon,{name:i.ICONS.arrow_right})}})]})},Ax=({children:e,className:t})=>{const{hasCarousel:r,mode:o,hasCloseBtn:s,backgroundStyle:i,showCarouselArrows:a,slideTranstionTimer:c,handleCloseTipbar:l}=ot(),u=r&&a;return n.jsx("div",{style:i,"data-hasclosebtn":s,className:m.helpers.classNameConcat(er.tipbar,t),children:r?n.jsxs(n.Fragment,{children:[n.jsx(Rx,{mode:o,showCarouselArrows:u,slideTranstionTimer:c,children:e}),s&&n.jsx(ic,{handleCloseTipbar:l,showCarouselArrows:u,mode:o})]}):n.jsxs(n.Fragment,{children:[e,s&&n.jsx(ic,{handleCloseTipbar:l,mode:o})]})})},Ix=({children:e,highlightFirstSection:t,...r})=>{const{hasCarousel:o,carouselProps:s}=ot(),i=n.jsx("div",{...r,className:er["tipbar-item"],children:e});return o?n.jsx(m.Carousel.Item,{style:s.itemsStyles,children:i}):i},Ap=({className:e})=>{const{isOpen:t,slices:r}=ot();return r.length&&t?n.jsx(Ax,{children:r.map((o,s)=>{var i;return n.jsx(n.Fragment,{children:n.jsx(Kt,{href:o.link,children:n.jsx(Ix,{highlightFirstSection:o.highlightFirstSection,"data-justifyhighlightedsection":o.horizontalAlignHighlightedSection?o.horizontalAlignHighlightedSection:"center",children:o&&((i=o==null?void 0:o.items)!=null&&i.length)?o.items.map((a,c)=>n.jsx(Ex,{staticZone:o,type:a.type,title:a.title,description:a.description,className:e},`tipbar-slice-field-${c}`)):null})})},`tipbar-slice-${s}`)})}):null};Ap.displayName="TipBar.Root";const rs=({className:e,...t})=>n.jsx(xx,{...t,children:n.jsx(Ap,{className:e})});rs.displayName="TipBar";const Nx=({CONSTANTS:e,data:t})=>{const{pathname:r}=xe(),{tipbarRef:o}=je(),s=c=>{const l=t==null?void 0:t.find(u=>{var f,h,d,p,g;return((h=(f=u.staticConfig)==null?void 0:f.staticConfig)==null?void 0:h.deviceType)===c&&((g=(p=(d=u.staticConfig)==null?void 0:d.staticConfig)==null?void 0:p.paths)==null?void 0:g.includes(r))});return l||(t==null?void 0:t.find(u=>{var f,h,d,p,g,y;return((h=(f=u.staticConfig)==null?void 0:f.staticConfig)==null?void 0:h.deviceType)===c&&(!((p=(d=u.staticConfig)==null?void 0:d.staticConfig)!=null&&p.paths)||((y=(g=u.staticConfig)==null?void 0:g.staticConfig)==null?void 0:y.paths.length)===0)}))},i=s("desktop"),a=s("mobile");return n.jsxs("div",{ref:o,className:W.responsive["responsive-flex"],children:[a&&n.jsx("div",{className:W.responsive["responsive-mobile-flex"],children:n.jsx(rs,{data:a,CONSTANTS:e})}),i&&n.jsx("div",{className:W.responsive["responsive-desktop-flex"],children:n.jsx(rs,{data:i,CONSTANTS:e})})]})},ac={"card-image-wrapper":"_card-image-wrapper_10mul_1","card-image-container":"_card-image-container_10mul_9"},Ip=e=>{const{nextimage:t}=xe();return n.jsx(n.Fragment,{children:e.data.banners.map((r,o)=>n.jsx("div",{className:ac["card-image-wrapper"],children:n.jsx("div",{className:ac["card-image-container"],children:n.jsx(t,{src:r.image,alt:r.altImage?r.altImage:"Banner Coleção",width:500,height:600})})},o))})},Tx=({SectionZone:e,CMS_PROJECT_NAME:t,storeId:r,previewId:o})=>{const[s,i]=x.useState();return x.useEffect(()=>{s||W.getContentType({contentType:"search",CMS_PROJECT_NAME:t,storeId:r,previewId:o}).then(a=>{i(a.data[0])})},[]),n.jsx(e,{data:s??[]})},Np=({data:{componentIndex:e,...t},CONSTANTS:r})=>n.jsx(Vs,{...t,CONSTANTS:r}),Tp=async e=>{const{type:t}=e,r=t==="collectionSearch"?"/api/search/product":"/api/search/crosseling",o=JSON.stringify(t==="collectionSearch"?{...e.params,facets:e.facets,term:e.term,forceUpdate:!1}:e.facets);return(await fetch(r,{method:"POST",headers:{"Content-Type":"application/json"},body:o}).then(i=>i.json()).then(i=>t==="collectionSearch"?i.data.products:i.products)).filter(i=>!!i.node.availability.status)},Ox="_shelf__container_bi04n_10",Op={shelf__container:Ox},kx=({collectionSearch:e,title:t,CONSTANTS:r})=>{const[o,s]=x.useState([]),{isMobile:i}=le(),{ref:a,inView:c}=lc.useInView({threshold:.7,delay:100,triggerOnce:!0}),{sendDataLayerEvent:l}=ce();return x.useEffect(()=>{if(!e)return;function u(){var f,h;Tp({type:"collectionSearch",term:e==null?void 0:e.term,facets:e==null?void 0:e.facets,params:{count:((f=e==null?void 0:e.params)==null?void 0:f.count)??12,sort:((h=e==null?void 0:e.params)==null?void 0:h.sort)??r.ITEMS_DEFAULT_SORT}}).then(d=>{s(d)})}u()},[e]),x.useEffect(()=>{!c||o.length===0||l({functionKey:"productListEvent",data:{event:"view_item_list",commonData:{products:o},customData:{item_list_name:t??"Você também pode gostar"}}})},[c,o]),o.length===0?null:n.jsx("div",{ref:a,className:Op.shelf__container,children:n.jsx(Ft.Shelf,{title:t??"Você também pode gostar",itemsPerPage:{desktop:4.4,mobile:2.2},ICONS:r.ICONS,children:Array.isArray(o)&&o.map(({node:u},f)=>{const{availability:{status:h}}=u;return h?n.jsx(Ft.Card,{item:u,isMobile:i,size:"medium",index:f,shelfTitle:t??"Você também pode gostar",CONSTANTS:r},u.id):null})})})},Lx=({recommendationSearch:e,title:t,CONSTANTS:r})=>{const[o,s]=x.useState([]),{isMobile:i}=le(),{ref:a,inView:c}=lc.useInView({threshold:.7,delay:100,triggerOnce:!0}),{sendDataLayerEvent:l}=ce(),u=x.useMemo(()=>e?[{key:e.type,value:e.productId}]:[],[e]);return x.useEffect(()=>{if(!e)return;function f(){var h;Tp({type:"recommendationSearch",facets:u,params:{count:((h=e==null?void 0:e.params)==null?void 0:h.count)??12,sort:r.ITEMS_DEFAULT_SORT}}).then(d=>s(d))}f()},[u,e]),x.useEffect(()=>{if(!c||o.length===0||(e==null?void 0:e.type)==="suggestions")return;const f=t??"Você também pode gostar";l({functionKey:"productListEvent",data:{event:"view_item_list",commonData:{products:o},customData:{item_list_name:f},outsideEcommerceData:{item_list_name:f}}})},[c,o]),(o==null?void 0:o.length)===0?null:(e==null?void 0:e.type)==="suggestions"?n.jsx(Uu,{products:o,innerRef:a,inView:c,CONSTANTS:r}):n.jsx("div",{ref:a,className:Op.shelf__container,children:n.jsx(Ft.Shelf,{title:t??"Você também pode gostar",itemsPerPage:{desktop:4.4,mobile:2.2},ICONS:r.ICONS,children:Array.isArray(o)&&o.map(({node:f},h)=>{const{availability:{status:d}}=f;return d?n.jsx(Ft.Card,{item:f,isMobile:i,size:"medium",index:h,shelfTitle:t??"Você também pode gostar",CONSTANTS:r},f.id):null})})})},kp=({data:e,CONSTANTS:t})=>{const{productId:r}=Wl();return e.productLists.map((o,s)=>n.jsx(Lx,{title:o.title,recommendationSearch:{type:o.product_group_option,productId:r,params:{count:o.number_of_items,sort:"score:desc"}},CONSTANTS:t},`shelf=${s}`))},Lp=({data:e,CONSTANTS:t})=>e.productLists.map((r,o)=>{const s=r.collectionId?{term:"",facets:[{key:"productclusterids",value:`${r.collectionId}`}]}:{term:r.search_base_name,facets:[]};return n.jsx(kx,{title:r.title,collectionSearch:{params:{count:r.number_of_items,sort:r.sort},...s},CONSTANTS:t},`shelf=${o}`)}),Mx="_embedLiveContainer_1ss0l_2",Dx="_embedLivePlayer_1ss0l_7",cc={embedLiveContainer:Mx,embedLivePlayer:Dx},Mp=({data:e})=>n.jsx("div",{className:cc.embedLiveContainer,children:n.jsx("div",{className:cc.embedLivePlayer,children:e.banner.videosrc?n.jsx(Be.Video,{src:e.banner.videosrc??"",playsInline:!0,autoPlay:!0,loop:!0,muted:!0,title:"Live",controls:!0}):n.jsxs("div",{children:[n.jsx("iframe",{src:e.banner.embed_source??"",allow:"autoplay; fullscreen; picture-in-picture; loop;",title:"Live"}),n.jsx(gp,{src:"https://player.vimeo.com/api/player.js",defer:!0,strategy:"lazyOnload"})]})})}),$x={"Image Grid":Ip,"Embed Live":Mp,"Banner Carousel":Sp,Banner:Hs,"Bennefits Bar":Pp,newsletter:Np,TextContent:wp,TextAccordion:Ep,"Product Carousel":Lp,"PDP Product Carousel":kp},zx=({data:e,identifyWhoIsFirst:t=!1,componentConfigs:r})=>e==null?void 0:e.map((o,s)=>{const i=$x[o.name],a=r[o.name];return t&&s===0&&(o.data.first=!0),o.data.componentIndex=s,o.name==="TextAccordion"&&(a.id=`text-accordion-${s}`),i?n.jsx(i,{data:o.data,...a},`section-zone-component-${s}`):null}),Bx={Banner:vx,BannerSection:Jt,BennefitsBarSection:Pp,SingleBannerSection:Hs,TextContentSection:wp,BannerCarousel:Sp,TextAccordionSection:Ep,TipbarScreening:Nx,ImageGrid:Ip,SearchPageScreening:W.SearchPageScreening,SearchContent:Tx,NewsletterSection:Np,PDPProductCarousel:kp,ProductCarousel:Lp,EmbedLive:Mp,SectionZone:zx},Fx={Components:Bx,helpers:wv};exports.cms=Fx;exports.contexts=Yl;exports.data=Ss;exports.layout=jr;exports.scripts=gx;