@soma-vertical-web/multi-lib 0.0.63 → 0.0.65

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 (58) hide show
  1. package/cms/Sections/EmbedLive/Component.d.ts +4 -0
  2. package/cms/Sections/ProductCarousel/Composite/CommonShelf.d.ts +4 -0
  3. package/cms/Sections/ProductCarousel/Composite/RecommendationShelf.d.ts +4 -0
  4. package/cms/Sections/ProductCarousel/ProductCarousel.d.ts +4 -0
  5. package/cms/Sections/ProductCarousel/request.d.ts +24 -0
  6. package/cms/index.d.ts +3 -0
  7. package/contexts/hooks/useScrollRestoration.d.ts +3 -0
  8. package/contexts/hooks/useScrollRestorationInfinite.d.ts +4 -0
  9. package/index.js +19 -19
  10. package/index.mjs +4990 -4693
  11. package/layout/template/PDC/Composite/Empty/Empty.d.ts +7 -0
  12. package/layout/template/PDC/Composite/Empty/index.d.ts +1 -0
  13. package/layout/template/PDC/Composite/Filters/Filters.d.ts +7 -0
  14. package/layout/template/PDC/Composite/Filters/helpers.d.ts +4 -0
  15. package/layout/template/PDC/Composite/Filters/index.d.ts +1 -0
  16. package/layout/template/PDC/Composite/Grid/Banners.d.ts +7 -0
  17. package/layout/template/PDC/Composite/Grid/Grid.d.ts +7 -0
  18. package/layout/template/PDC/Composite/Grid/NavigationTotal.d.ts +8 -0
  19. package/layout/template/PDC/Composite/Grid/index.d.ts +1 -0
  20. package/layout/template/PDC/Composite/InfiniteScroller/Banners/Banners.d.ts +7 -0
  21. package/layout/template/PDC/Composite/InfiniteScroller/Banners/index.d.ts +1 -0
  22. package/layout/template/PDC/Composite/InfiniteScroller/InfiniteScroller.d.ts +7 -0
  23. package/layout/template/PDC/Composite/InfiniteScroller/Loading/Loading.d.ts +7 -0
  24. package/layout/template/PDC/Composite/InfiniteScroller/Loading/index.d.ts +1 -0
  25. package/layout/template/PDC/Composite/InfiniteScroller/Page/Composite/Anchor.d.ts +7 -0
  26. package/layout/template/PDC/Composite/InfiniteScroller/Page/Composite/Card.d.ts +7 -0
  27. package/layout/template/PDC/Composite/InfiniteScroller/Page/Composite/Loader.d.ts +9 -0
  28. package/layout/template/PDC/Composite/InfiniteScroller/Page/Composite/NextPage.d.ts +7 -0
  29. package/layout/template/PDC/Composite/InfiniteScroller/Page/Page.d.ts +7 -0
  30. package/layout/template/PDC/Composite/InfiniteScroller/Page/index.d.ts +21 -0
  31. package/layout/template/PDC/Composite/InfiniteScroller/index.d.ts +1 -0
  32. package/layout/template/PDC/Composite/Navigation/Navigation.d.ts +7 -0
  33. package/layout/template/PDC/Composite/Navigation/index.d.ts +1 -0
  34. package/layout/template/PDC/Composite/Notification/Notification.d.ts +7 -0
  35. package/layout/template/PDC/Composite/Notification/index.d.ts +1 -0
  36. package/layout/template/PDC/Composite/Pagination/Arrow/Arrow.d.ts +7 -0
  37. package/layout/template/PDC/Composite/Pagination/Arrow/index.d.ts +1 -0
  38. package/layout/template/PDC/Composite/Pagination/Arrow/interfaces.d.ts +8 -0
  39. package/layout/template/PDC/Composite/Pagination/Layout/Layout.d.ts +7 -0
  40. package/layout/template/PDC/Composite/Pagination/Layout/index.d.ts +1 -0
  41. package/layout/template/PDC/Composite/Pagination/PageEllipses/PageEllipses.d.ts +7 -0
  42. package/layout/template/PDC/Composite/Pagination/PageEllipses/index.d.ts +1 -0
  43. package/layout/template/PDC/Composite/Pagination/PageEllipses/interfaces.d.ts +10 -0
  44. package/layout/template/PDC/Composite/Pagination/Pages/Pages.d.ts +7 -0
  45. package/layout/template/PDC/Composite/Pagination/Pages/index.d.ts +1 -0
  46. package/layout/template/PDC/Composite/Pagination/Pages/interfaces.d.ts +7 -0
  47. package/layout/template/PDC/Composite/Pagination/Pagination.d.ts +7 -0
  48. package/layout/template/PDC/Composite/Pagination/helpers.d.ts +12 -0
  49. package/layout/template/PDC/Composite/Pagination/index.d.ts +1 -0
  50. package/layout/template/PDC/Composite/Products/Products.d.ts +7 -0
  51. package/layout/template/PDC/Composite/Products/index.d.ts +1 -0
  52. package/layout/template/PDC/Composite/Spinner/index.d.ts +7 -0
  53. package/layout/template/PDC/PDC.d.ts +7 -0
  54. package/layout/template/PDC/index.d.ts +39 -0
  55. package/package.json +1 -1
  56. package/style.css +1 -1
  57. package/types/cms/Sections/EmbedLive/index.d.ts +13 -0
  58. package/types/cms/Sections/ProductCarousel/index.d.ts +36 -2
package/index.js CHANGED
@@ -1,18 +1,18 @@
1
- "use strict";var gf=Object.defineProperty;var yf=(e,t,r)=>t in e?gf(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r;var wr=(e,t,r)=>yf(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-DJeLEsRl.js"),lt=require("idb-keyval"),st=require("zustand"),mo=require("js-cookie"),p=require("@soma-vertical-web/core-components"),rt=require("axios"),_f=require("jose"),pt=require("@soma-vertical-web/foundations"),Ia=require("react-dom"),We=require("draft-js"),hs=require("@date-fns/tz"),Oo=x.createContext({}),vf=({data:e,children:t})=>n.jsx(Oo.Provider,{value:{tags:e==null?void 0:e.config},children:t}),At=()=>{const{tags:e}=x.useContext(Oo),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(m=>{var g;return(g=r??[])==null?void 0:g.find(d=>d.id===m.key)}),s=(u=(l=e==null?void 0:e.institucional)==null?void 0:l.items)==null?void 0:u.find(m=>{var g;return(g=r??[])==null?void 0:g.find(d=>d.id===m.key)}),a=e==null?void 0:e.flagPdp;return{commercial:o,institucional:s,flagPdp:a}},[e]);return{tags:e,getAvailableProductTag:t}},Na=({gridScrollBack:e})=>{x.useEffect(()=>{typeof window<"u"&&(e!=null&&e.refer)&&sessionStorage.setItem(e==null?void 0:e.refer,"true")},[])},Ta=x.createContext({}),xf=({children:e,gridScrollBack:t})=>{const r=x.useRef(null);return Na({gridScrollBack:t}),n.jsx(Ta.Provider,{value:{sizesContainerRef:r},children:e})},ka=()=>{const e=x.useContext(Ta);if(e===void 0)throw new Error("useContext(PDPContext) must be used within a PDPProvider");return e},Ye=({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:m}=o,g={...r==="view_item"?{currency:Se.configs.currency,value:m,grade_disponivel:l??(u?Oa(u):"")}:{},...r==="add_to_wishlist"||r==="remove_from_wishlist"?{value:m,currency:Se.configs.currency}:{}},d=Ht({data:o,customData:{...s,...i,...a},configs:Se.configs});Ye({event:r,data:{...c,ecommerce:{...i,...g,items:[d]}}}),typeof t=="function"&&t(d,g)},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)=>Ht({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}));Ye({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 m=r.map(g=>{var _,y,b,S,v,j,w,E,C;const d=s==null?void 0:s.find(P=>(g.productId??g.id)===P.productId);let f={...i,...c};if(d){const P=La(),k=Da(P,d);k&&(f={...f,...k}),t==="add_to_cart"&&(i||c)&&ho({persistedData:P,type:"add",sku:(d==null?void 0:d.id)??(d==null?void 0:d.sku),newData:{promotionInfo:i,itemList:c}}),t==="remove_from_cart"&&ho({persistedData:P,type:"remove",sku:(d==null?void 0:d.id)??(d==null?void 0:d.sku)})}u+=g.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 h=(d==null?void 0:d.size)??U.getColorAndSizeFromSkuName((d==null?void 0:d.skuName)??(d==null?void 0:d.name)??((S=g.itemOffered)==null?void 0:S.skuName),Se.configs.NAME_SPLIT_SYMBOL).size;return Ht({data:g,customData:{...o,...f??{...i,...c},item_sku:(d==null?void 0:d.id)??(d==null?void 0:d.sku)??((v=g.itemOffered)==null?void 0:v.sku),quantity:(o==null?void 0:o.quantity)??g.quantity??1,item_variant2:h,seller_id:(d==null?void 0:d.sellerId)??(d==null?void 0:d.seller)??((C=(E=(w=(j=d==null?void 0:d.offers)==null?void 0:j.offers)==null?void 0:w[0])==null?void 0:E.seller)==null?void 0:C.identifier)??g.seller},configs:Se.configs})});Ye({event:t,data:{...l,ecommerce:{value:a??u,currency:Se.configs.currency,items:m}}})},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 g;const u=((g=Se.configs.PLP_FILTERS.find(d=>d.key===c))==null?void 0:g.eventLabel)??c,m=(s==null?void 0:s[u])||[];u==="price_range"&&l.replace(":","-"),s[u]=[...m,l]}),Object.keys(s).forEach(c=>a[c]=s[c].join(", "))),Ye({event:"filter",data:{...o,...a,...r}})},viewCartEvent:e=>{var m,g,d,f,h,_,y,b,S,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:w,itemList:E}=a[j.id]??{};return Ht({data:{...j,price:j.price/100,listPrice:j.listPrice/100},customData:{...w,...E,item_sku:j.id??j.itemOffered.sku,quantity:j.quantity??1},configs:Se.configs})}),c=(((m=o.totalizers.find(j=>j.name==="Total dos Itens"))==null?void 0:m.value)??0)/100,l=(((g=o.totalizers.find(j=>j.name==="Total dos Descontos"))==null?void 0:g.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((h=o.openTextField)==null?void 0:h.value))==null?void 0:_.split(" - ")[0];Ye({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}:{},...((S=o.marketingData)==null?void 0:S.coupon)&&{sale_coupon_name:(v=o.marketingData)==null?void 0:v.coupon},subtotal:c,items:i}}})},readyEvents:e=>{const{event:t,readyData:r}=e;Ye({event:t,data:{...r}})}},Oa=e=>e.reduce((t,r)=>(r.available&&t.push(r.value),t),[]).toString(),bf=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]}:{}}:{}}},Ht=({data:e,customData:t,configs:r})=>({...jf(e,r==null?void 0:r.MAIN_IMAGE),...Cf(e),...Sf(e),...wf(e),...t}),Ma=()=>{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("_"))??[]:[]},La=()=>{const e=window.localStorage.getItem("persistedCartEventsData");return e?JSON.parse(e):null},Da=(e,t)=>e==null?void 0:e[t],ho=({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)))},jf=(e,t="1")=>{var a,i,c,l,u,m,g,d,f,h,_;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)??((g=(m=e.itemOffered)==null?void 0:m.isVariationOf)==null?void 0:g.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)??((h=e.brand)==null?void 0:h.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)}},gs=e=>Array.isArray(e)?e.reduce((t,r)=>(r.length>t.length&&(t=r),t),""):e,Cf=e=>{var u,m;const{categories:t,categoriesIds:r}=e,o=t??((u=e.itemOffered)==null?void 0:u.categories),s=r??((m=e.itemOffered)==null?void 0:m.categoriesIds),a=gs(o),i=gs(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]}}},Sf=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}}},wf=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}},$a=()=>{const[e,t]=Ma(),[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}},Rf=Object.freeze(Object.defineProperty({__proto__:null,eventsFunctions:Se,findDataInPersistedData:Da,getAvailablesSizes:Oa,getCategories:bf,getPageCategoryAndDepartmentFromSlug:$a,getPersistedData:La,getProductListInfoFromHead:Ma,pushDatalayer:Ye,updatePersistedData:ho},Symbol.toStringTag,{value:"Module"})),za=x.createContext({}),Ef=({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:m,data:g,callBack:d,timeout:f=100})=>{window.dataLayer||(window.dataLayer=[]),Se.configs=t;try{typeof Se[m]=="function"&&setTimeout(()=>{var h;g.promotionInfo=r.current,(h=s.current)!=null&&h.item_list_name&&(g.itemList=s.current),Se[m](g,d)},f)}catch(h){Ye({event:"error_event",data:{error_message:(h==null?void 0:h.message)??h}})}},l=({content:m})=>{c({functionKey:"readyEvents",data:{event:"select_content",readyData:{content_type:m.replace("::",":")}}})},u=({updatePromotionRef:m,promotion:g,index:d})=>{m&&(r.current={...g}),c({functionKey:"readyEvents",data:{event:"select_promotion",readyData:{ecommerce:{...g,...d!==void 0&&{index:d}}}}})};return n.jsx(za.Provider,{value:{sendDataLayerEvent:c,triggerSelectItemEventRef:i,promotionEventRef:r,currentLocalRef:o,itemListRef:s,cartProductsFullDataRef:a,handleSelectContent:l,handleSelectPromotionEvent:u},children:e})},ue=()=>x.useContext(za),Ba=x.createContext({}),Pf=({children:e,productData:t,isKit:r,PDP_INFO:o,NAME_SPLIT_SYMBOL:s,TEXTURE_IMAGE:a})=>{var T,H;const{sendDataLayerEvent:i,triggerSelectItemEventRef:c}=ue(),{productId:l,productName:u,items:m,items:[{images:g,Videos:d}],description:f,["Composição"]:h="",productReference:_,categories:[y]}=t,{getAvailableProductTag:b}=At(),S=b(Object.entries(t.clusterHighlights).map(W=>({id:W[0],name:W[1]}))),v=y.slice(1,-1).split("/"),{installments:j,price:w,listPrice:E,sizes:C,allSizesAvailable:P}=U.getSkuInfos({items:m,NAME_SPLIT_SYMBOL:s}),k=U.getThumbImage({images:g,TEXTURE_IMAGE:a}),R=[{label:`${o.product.description}`,value:"description",content:f},{label:`${o.product.materiais}`,value:"composition",content:h}],N=((H=U.getColorAndSizeFromSkuName((T=t.items)==null?void 0:T[0].name,s))==null?void 0:H.color)??t["Cores Filtráveis"][0]??"",I=()=>({commonData:{...t,sizes:C,price:w,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:W,size:q})=>{const{commonData:K,customData:V}=I();i({functionKey:"productEvents",data:{event:"view_item",commonData:K,customData:{...V,...W&&{item_sku:W},...q&&{item_variant2:q}}}})};return x.useEffect(()=>{if(c.current.trigger){const{commonData:W,customData:q}=I();i({functionKey:"productEvents",data:{event:"select_item",commonData:W,customData:{...q,index:c.current.index}}}),c.current.trigger=!1}z({})},[]),n.jsx(Ba.Provider,{value:{productData:t,productId:l,productName:u,productReference:_,tag:S,items:m,sizes:C,allSizesAvailable:P,installments:j,price:w,listPrice:E,thumbImage:k,images:g,video:d[0],descriptionContent:R,breadcrumbList:v,isKit:r,colorName:N,handleViewItemEvent:z},children:e})},De=()=>{const e=x.useContext(Ba);if(e===void 0)throw new Error("useContext(PDPDataContext) must be used within a PDPDataProvider");return e},Af=()=>{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}}]},Fa=()=>{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)}},[])},If=typeof window>"u",Nf=(e,t)=>{const[r,o]=x.useState(()=>{if(If)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 Mo(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 Tf=({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}},qa=({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(),h=o.current.children[0].getBoundingClientRect(),_=h.width,y=h.height,b=Math.min(0,(f.width-_)/2),S=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:S,minY:v,maxY:j}},m=(f,h,_)=>{if(o.current){const y=o.current.children[0];y&&requestAnimationFrame(()=>{y.style.transform=`translate(calc(-50% + ${f}px), calc(-50% + ${h}px)) scale(${_})`})}},g=x.useCallback(f=>{const{minX:h,maxX:_,minY:y,maxY:b}=u(),{x:S,y:v}=l.current,j=Math.max(h,Math.min(_,S)),w=Math.max(y,Math.min(b,v));if(f.touches.length>1){const E=f.touches[0],C=f.touches[1],P=E.pageX-C.pageX,k=E.pageY-C.pageY;i.current=Math.sqrt(P*P+k*k),c.current={x:(E.pageX+C.pageX)/2,y:(E.pageY+C.pageY)/2}}else f.touches.length===1&&(c.current={x:f.touches[0].pageX-j,y:f.touches[0].pageY-w})},[s,l]),d=x.useCallback(f=>{if(!o.current||!r.current)return;const{minX:h,maxX:_,minY:y,maxY:b}=u();if(f.touches.length>1){f.preventDefault();const S=f.touches[0],v=f.touches[1],j=S.pageX-v.pageX,w=S.pageY-v.pageY,E=Math.sqrt(j*j+w*w);if(!i.current){i.current=E;return}const C=E/i.current,P=Math.max(1,Math.min(t,s*C));if(s===P)return;a(P);const k=(S.pageX+v.pageX)/2,R=(S.pageY+v.pageY)/2;let N=k-c.current.x,I=R-c.current.y;N=Math.max(h,Math.min(_,N)),I=Math.max(y,Math.min(b,I)),l.current={x:N,y:I},i.current=E,m(N,I,P)}else if(f.touches.length===1){const S=f.touches[0].pageX,v=f.touches[0].pageY;let j=S-c.current.x,w=v-c.current.y;j=Math.max(h,Math.min(_,j)),w=Math.max(y,Math.min(b,w)),l.current={x:j,y:w},m(j,w,s)}},[t,s]);return x.useEffect(()=>(document.addEventListener("touchstart",g),document.addEventListener("touchmove",d,{passive:!1}),()=>{document.removeEventListener("touchstart",g),document.removeEventListener("touchmove",d)}),[d,g]),{containerRef:r,imgRef:o,scale:s}},kf={attachment:"ATTACHMENT",specification:"SPECIFICATION",attribute:"ATTRIBUTE"},Be=Promise.resolve(!1),go={id:"",isOpen:!1,items:[],loading:!1,marketingData:null,messages:[],openTextField:{},paymentData:null,shippingData:null,totalizers:[],itemMetadata:[],recentlyAddedProducts:[],addCoupon:()=>Be,addItem:()=>Be,addSellerCode:()=>Be,addMarketingData:()=>Be,emptyCart:()=>{},removeItem:()=>Be,setIsOpen:()=>{},shipping:()=>Be,shippingUpdate:()=>Be,toggleServiceToProduct:()=>Be,updateItemQuantity:()=>Be,insertProfileEmail:()=>Be,setRecentlyAddedProducts:()=>{}},Lo=e=>e===0,Ha=(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},Ua=(e,t)=>{const{availability:r,additionalInfo:{brandName:o},bundleItems:s,id:a,uniqueId:i,detailUrl:c,ean:l,imageUrl:u,name:m,listPrice:g,quantity:d,price:f,priceDefinition:h,productCategories:_,productCategoryIds:y,productId:b,refId:S,seller:v,referenceId:j,offerings:w,productRefId:E,skuName:C,sellingPrice:P}=e;return{availability:r,bundleItems:s,referenceId:j,productRefId:E,id:a,ean:l,uniqueId:i,itemOffered:{additionalProperty:[],brand:{name:o},categories:Ha(y,_),categoriesIds:y,gtin:S,image:[{alternateName:(t==null?void 0:t.MAIN_IMAGE)??"1",url:u}],name:m,isVariationOf:{name:m,productGroupID:b},sku:a,slug:c,skuName:C},listPrice:g,quantity:d,offerings:w,price:f,priceDefinition:h,sellingPrice:P,seller:v}},Wa=(e,t)=>{const r=e.map(o=>({id:o.id,quantity:o.quantity,seller:o.seller}));return Array.isArray(t)?[...r,...t]:[...r,t]},Va=(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:[]}},Ga=(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)??""}}),yo=(e,t)=>e.filter(r=>r.availability!=="withoutStock").findIndex(({id:r})=>r===t),Of=(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},Mf=e=>{const t=e.reduce((s,a)=>{const i=Lo(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}},Lf=e=>Array.isArray(e)?e.filter(t=>t.availability!=="withoutStock").reduce((t,r)=>t+(Lo(r==null?void 0:r.price)?0:r.quantity),0):0,Ka=(e,t)=>{const{items:r,itemMetadata:o,marketingData:s,messages:a,orderFormId:i,openTextField:c,paymentData:l,shippingData:u,totalizers:m}=e;return{id:i,itemMetadata:o,items:Array.isArray(r)?r.map(g=>Ua(g,t)):[],marketingData:s,messages:a,openTextField:c,paymentData:l,shippingData:u,totalizers:m}},Xa=(e,t)=>{const r=e.find(o=>o.id===t);return r?r.availability==="unavailableItemFulfillment":!1},Df=(e,t)=>{const r=e.sku,o=e.isVariantOf.hasVariant.find(s=>s.sku===r);return o?o.name.split(t)[1]:"--"},dt=(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},$f=(e,t)=>{const r=new Set;return[e,...t].filter(o=>!r.has(o)&&r.add(o),r)},Qa=(e,t)=>t&&Array.isArray(t)&&t.find(o=>o.id===e)?Promise.resolve(e):Promise.resolve(!1),Ya=(e,t)=>t?Promise.resolve(e[t]):Promise.resolve(!1),Za=async e=>{try{const t=await e();if(typeof t!="boolean")return t}catch(t){console.error(`[Error orderForm]: ${t}`)}return!1},Ja=(e,t)=>{if(t!==-1){const r=Number(e);return r?r+1:1}return e??1},ec=(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??[]]),ke=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:Ka(c,o)})},rc=(e,t,r)=>({notifications:[...e.notifications,{id:Date.now(),message:t,callback:r}]}),nc=e=>[...Array.isArray(e)?e:[e],"faststore"],oc=e=>{const t=e.get("utm_source")||et("utm_source"),r=e.get("utm_campaign")||et("utm_campaign"),o=e.get("utm_medium")||et("utm_medium"),s=e.get("utmi_cp")||et("utmi_cp"),a=e.get("utmi_pc")||et("utmi_pc"),i=e.get("utmi_p")||et("utmi_p");return{...t&&{utmSource:t},...o&&{utmMedium:o},...r&&{utmCampaign:r},...s&&{utmiCampaign:s},...a&&{utmiPart:a},...i&&{utmipage:i}}},et=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},zf=Object.freeze(Object.defineProperty({__proto__:null,VALUE_REFERENCES:kf,addItemOrder:Wa,addNotification:rc,createItemOrder:Ua,fetchCartAPI:ke,findItemIndex:yo,findOptions:ec,findTotalizerValue:Of,getCategories:Ha,getCode:dt,getQuantity:Ja,getRemoveId:Qa,getSize:Df,getTotalItems:Lf,getTotalizer:Mf,getUrlParameter:et,getValue:Ya,initialState:go,isGift:Lo,marketingTagsBuilder:nc,mergeOptionsPromise:tc,mountMarketingData:oc,orderFormValues:Ka,promiseDefault:Be,removeQuantity:Va,updateItemSellerExternal:Xa,updateOrderFormPromise:Za,updateQuantity:Ga,wishlistArray:$f},Symbol.toStringTag,{value:"Module"})),Bf=()=>{const e=async(f,h)=>ke("/api/checkout/order-form/coupon",{body:{orderFormId:f,coupon:h}}),t=async(f,h)=>{if(h){const _=h.includes(" - ")?h.split(" - ")[0]:h,y=await ke("/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?ke("/api/checkout/order-form/attachments",{body:{orderFormId:f,sellerCode:_,sellerName:y.nome}}).then(S=>({...S,openTextField:{...(S==null?void 0:S.openTextField)??{},statusOk:!0}})):Promise.resolve({paymentData:null,openTextField:{statusOk:!1,value:_}})}else return ke("/api/checkout/order-form/attachments",{body:{orderFormId:f,sellerCode:"",sellerName:""}})},r=async(f,h)=>ke("/api/checkout/order-form/attachments/marketing-data",{body:{orderFormId:f,marketingData:h}}),o=async(f,h,_)=>ke("/api/checkout/order-form/items",{body:{orderFormId:f,orderItems:Wa(h,_)}}),s=async(f,h,_,y=!1)=>ke("/api/checkout/order-form/offerings",{body:{id:h,itemIndex:_,orderFormId:f,remove:y}}),a=async f=>ke("/api/checkout/order-form/items/remove-all",{body:{orderFormId:f}}),i=async(f,h="low")=>ke("/api/checkout/order-form",{priority:h,body:{orderFormId:f??""}}),c=async(f,h)=>ke("/api/checkout/order-form/profile",{body:{orderFormId:f,email:h}}),l=async(f,h,_)=>{const y=Va(h,_);return ke("/api/checkout/order-form/items/update",{body:{orderItems:y.updateItems,orderFormId:f}})},u=async(f,h,_)=>ke("/api/checkout/order-form/shipping",{body:{orderFormId:f,country:_,postalCode:h}}),m=async(f,h,_)=>ke("/api/checkout/order-form/shipping/update",{body:{orderFormId:f,options:h,selectedAddresses:_}}),g=async(f,h,_,y)=>{const b=Ga(h,_,y);return ke("/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:m,updateItemQuantity:async(f,h,_,y,b)=>g(f,h,_,y).then(S=>S&&Array.isArray(S.items)?Xa(S.items,_)?g(f,h,_,b):S:!1)}},_o="soma::cart",Ct="soma::options",mt=st.create((e,t)=>{const r=Bf(),o=async(s,a,i)=>{e({loading:!0});const c=await Za(s);if(typeof c!="boolean"){e({...c});const l=await tc(lt.get(Ct),i);return lt.set(Ct,l),Ya(c,a).finally(()=>e({loading:!1,options:l}))}return Be};if(typeof window<"u"){const s=async a=>{if(a){const i=await lt.get(Ct).then(u=>ec(u,a.items));lt.set(_o,a),lt.set(Ct,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 lt.get(_o).then(a=>r.getOrderForm(a?a.id:"").then(s)),{...go,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 Qa(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 m;return r.updateItemQuantity(l,u,a,i,((m=u.find(g=>g.id===a))==null?void 0:m.quantity)??1)},"items",c?[c]:void 0)},insertProfileEmail:async a=>o(()=>r.insertProfileEmail(t().id,a),"clientProfileData"),setIsOpen:a=>e({isOpen:a})}}return go}),Ff=()=>mt(e=>e),sc=st.create(e=>({notifications:[],actions:{addNotification:(t,r)=>e(o=>rc(o,t,r)),removeNotification:t=>e(r=>({notifications:r.notifications.filter(o=>o.id!==t)}))}})),Do=()=>sc(e=>e.notifications),$o=()=>sc(e=>e.actions),qf=Object.freeze(Object.defineProperty({__proto__:null,KEY_INDEXED_OPTIONS:Ct,KEY_INDEXED_STORE:_o,useCartStore:mt,useGetCartStoreState:Ff,useGetNotificationActions:$o,useGetNotificationsStore:Do},Symbol.toStringTag,{value:"Module"})),Hf=6e3,ic=x.createContext({}),ac=({children:e,...t})=>{const{items:r}=mt(),[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([])},Hf))},[o]),n.jsx(ic.Provider,{value:x.useMemo(()=>({...t,setRecentlyAdded:s,recentlyAddedProducts:i}),[t,s,i]),children:e})},It=()=>{const e=x.useContext(ic);if(e===void 0)throw new Error("useUIContext must be used within a UIProvider");return e};class cc{constructor(){wr(this,"events",{});wr(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 lc=x.createContext({}),Uf=({children:e,headerConfigs:t,pathname:r,...o})=>{const[s,a]=x.useState(!0),[i,c]=x.useState(!1),l=r==="/",u=x.useRef(new cc),m=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},g=m(l),d=x.useRef(g);return x.useEffect(()=>{var _;const f=((_=new URLSearchParams(window.location.search))==null?void 0:_.toString())??"";(f.includes("utm_")||f.includes("gclid"))&&(mo.get("lastMedias")||mo.set("lastMedias",`${f}`,{expires:1/24}));const h=()=>{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||h(),window.addEventListener("resize",h,{passive:!0}),()=>window.removeEventListener("resize",h)},[s,i]),x.useEffect(()=>{const f=m(l);u.current.publish("header:change_variant",f.headerVariant),u.current.publish("header:change_position",f.position),d.current=f},[l]),n.jsx(lc.Provider,{value:{isMobile:s,mediatorRef:u,currentHeaderConfigsRef:d,deviceValidated:i,...o},children:n.jsx(ac,{children:e})})},ge=()=>x.useContext(lc),uc=x.createContext({}),Wf=({children:e,...t})=>n.jsx(uc.Provider,{value:{...t},children:e}),xe=()=>x.useContext(uc),it=(e,t)=>st.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}}}),Pt={category:null,menuMobileIsOpen:!1,searchModalIsOpen:!1,userMenuIsOpen:!1},Nt=new Set,Vf=()=>{Nt.forEach(e=>{e()})},dc=st.create((e,t)=>{const r=()=>e({value:Pt.category});return Nt.add(r),{value:Pt.category,actions:{reset:r,setValue:o=>e(()=>({value:o})),updateValue:o=>{t().value!==o&&e({value:o})}}}}),pr=()=>dc(e=>e.value),Je=()=>dc(e=>e.actions),fc=it(Pt.menuMobileIsOpen,Nt),zo=()=>fc(e=>e.value),at=()=>fc(e=>e.actions),pc=it(Pt.searchModalIsOpen,Nt),Gf=()=>pc(e=>e.value),Bo=()=>pc(e=>e.actions),mc=it(Pt.userMenuIsOpen,Nt),hc=()=>mc(e=>e.value),Tt=()=>mc(e=>e.actions),Kf=Object.freeze(Object.defineProperty({__proto__:null,resetAllHeaderStores:Vf,useActionsHeaderCategory:Je,useActionsMenuMobileIsOpen:at,useActionsSearchModalIsOpen:Bo,useActionsUserMenuIsOpen:Tt,useGetHeaderCategoryStore:pr,useGetMenuMobileIsOpen:zo,useGetSearchModalIsOpen:Gf,useGetUserMenuIsOpen:hc},Symbol.toStringTag,{value:"Module"})),ht={selectedSkuInfo:{productId:"",name:"",size:"",sku:"",sellerId:"",sellerName:"",available:!1,quantity:1},openLetMeKnow:!1,openMeasurements:!1,showBottomNavigation:!1,showNotify:!1},_t=new Set,Xf=()=>{_t.forEach(e=>{e()})},gc=st.create(e=>{const t=()=>e({value:ht.selectedSkuInfo});return _t.add(t),{value:ht.selectedSkuInfo,actions:{setValue:r=>e(o=>({value:{...o,...r}})),reset:t}}}),kt=()=>gc(e=>e.value),yc=()=>gc(e=>e.actions),_c=it(ht.openLetMeKnow,_t),Qf=()=>_c(e=>e.value),Yf=()=>_c(e=>e.actions),vc=it(ht.showNotify,_t),xc=()=>vc(e=>e.value),Fo=()=>vc(e=>e.actions),bc=it(ht.showBottomNavigation,_t),Zf=()=>bc(e=>e.value),Jf=()=>bc(e=>e.actions),jc=it(ht.openMeasurements,_t),Cc=()=>jc(e=>e.value),Sc=()=>jc(e=>e.actions),ep=Object.freeze(Object.defineProperty({__proto__:null,resetAllPDPStores:Xf,useActionsPDPOpenLetMeKnow:Yf,useActionsPDPOpenMeasurements:Sc,useActionsPDPSelectedSkuInfo:yc,useActionsPDPShowBottomNavigation:Jf,useActionsPDPShowNotify:Fo,useGetPDPOpenLetMeKnow:Qf,useGetPDPOpenMeasurements:Cc,useGetPDPSelectedSkuInfo:kt,useGetPDPShowBottomNavigation:Zf,useGetPDPShowNotify:xc},Symbol.toStringTag,{value:"Module"})),ys={feedback:{active:!1,action:"add"},list:[]},qo=st.create((e,t)=>({value:ys,actions:{reset:()=>e({value:ys}),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:""}}}))}})),Ho=()=>qo(e=>e.value.list),tp=()=>qo(e=>e.value.feedback),Uo=()=>qo(e=>e.actions),rp=Object.freeze(Object.defineProperty({__proto__:null,useActionsWishlistStore:Uo,useGetWishlistFeedbackStore:tp,useGetWishlistStore:Ho},Symbol.toStringTag,{value:"Module"})),wc=x.createContext({}),np=({children:e,headerData:t,...r})=>{var m,g;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}=ge();return(m=l.current)==null||m.subscribe("header:change_variant",d=>{var b,S,v;if(d&&u.current&&(u.current.bannerVariant=d),!o.current)return;const h=document.body.scrollTop>0,_=o.current.getAttribute("data-interactiveVariant"),y=h?_:d??((b=u.current)==null?void 0:b.bannerVariant)??"default";y!==((S=u.current)==null?void 0:S.headerVariant)&&(o.current.setAttribute("data-bottomdivider",String(h)),o.current.setAttribute("data-variant",String(y)),(v=l.current)==null||v.publish("herobanner:change_controllers_variant",y),u.current&&(u.current.headerVariant=y))}),(g=l.current)==null||g.subscribe("header:change_position",d=>{o.current&&(o.current.style.position=d)}),x.useEffect(()=>{const d=new AbortController,f=p.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 h=_=>{var b;(b=_.target.closest("a"))==null||b.blur()};return o.current&&(o.current.addEventListener("click",h,{signal:d.signal}),o.current.addEventListener("touchend",h,{signal:d.signal})),()=>{d.abort()}},[]),n.jsx(wc.Provider,{value:{headerData:t,structureRef:s,rootRef:o,tipbarRef:a,userMenuMobileRef:i,userMenuDesktopRef:c,...r},children:e})},je=()=>x.useContext(wc),Rc=x.createContext({}),Ec=({children:e})=>{const t=x.useRef(null),r=x.useRef(null),o=zo(),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(Rc.Provider,{value:{bodyRef:t,handleCloseSubMenu:s,documentBodyRef:r},children:e})},Ot=()=>x.useContext(Rc),op=e=>{if(!e||typeof window>"u")return 0;const t=window.getComputedStyle(e);return parseInt(t.padding,10)},sp=(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?op(e==null?void 0:e.parentElement):0;return{left:o.left+o.width/2-(s.width+a),top:o.top+o.height+r}},Pc=x.createContext({}),Ac=({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,m]=x.useState({left:0,top:0}),g=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:h,top:_}=sp(f,d,r??0);m({left:h,top:_}),l(!1)}},[r,s]),n.jsx(Pc.Provider,{value:x.useMemo(()=>({...o,...u,handleClose:g,isLeaving:c,isOpen:s,setIsOpen:a,setIsLeaving:l}),[o,u,g,c,s,a,l]),children:e})},ct=()=>{const e=x.useContext(Pc);if(e===void 0)throw new Error("useAddToCartContext must be used within a AddToCartProvider");return e},Ic=x.createContext({}),ip=({children:e,CARTPROVIDER_MESSAGE_PRODUCT_REMOVE:t,...r})=>{const o=mt(),{setRecentlyAdded:s}=It(),a=x.useRef(""),i=Do(),{addNotification:c,removeNotification:l}=$o(),{addCoupon:u,addItem:m,addSellerCode:g,addMarketingData:d,emptyCart:f,isOpen:h,removeItem:_,shipping:y,shippingUpdate:b,toggleServiceToProduct:S,updateItemQuantity:v}=o;x.useEffect(()=>{const q=mo.get("lastMedias");if(o.id&&q&&a.current!==q){a.current=q;const K=new URLSearchParams(q),V=oc(K);d(V)}},[o,d]);const j=x.useCallback(async(q,K)=>(K==="coupon"?u(q):g(q)).then(B=>{if(typeof B!="boolean"&&B instanceof Object){if(K==="seller"&&"value"in B){const{statusOk:J,value:A}=B,O=String(A??"").split(" - ");return dt((O==null?void 0:O[0])??"",q,!!J)}return dt(String(B.coupon),q,!0)}return dt("","")}).catch(()=>Promise.resolve({code:400})),[u,g]),w=x.useCallback((q,K,V)=>{const{id:B}=q;v(B,K,V)},[v]),E=x.useCallback((q,K,V=!1)=>{if(!q)return;const{id:B}=q,J=yo(o.items,B);if(J!==-1&&!V){const A=Number(o.items[J].quantity),O=o.items[J]?A+1:1;w(q,O,K)}else m({id:B,quantity:(q==null?void 0:q.quantity)??1,seller:q.seller});h||s(A=>[...A,q])},[m,w,o.items,h,s]),C=x.useCallback((q,K)=>{if(!q||!Array.isArray(q))return;s(B=>[...B,...q]);const V=q.map(B=>{const{id:J,quantity:A,seller:O}=B,D=yo(o.items,J),X=Ja(A??1,D);return{id:J,quantity:X,seller:O}});m(V,K)},[m,o.items,s]),P=x.useCallback(async(q,K,V)=>q?_(q).then(()=>(c(K??`${t}`,V),dt(q,q))):Promise.resolve(dt("","Product id required")),[c,_]),k=x.useCallback(()=>{o.items.length>0&&f()},[f,o.items]),R=x.useCallback((q,K="BRA")=>y(q,K),[y]),N=x.useCallback(q=>{q&&b(q)},[b]),I=x.useCallback(async(q,K,V)=>{const B=o.items.findIndex(A=>A.id===q);return o.items[B]&&B>=0?S(K,B,V??!1):!1},[o.items,S]),z=x.useCallback(async(q,K)=>v(q,K).then(V=>{if(Array.isArray(V)){const B=V.find(J=>J.id===q);if(B&&(B==null?void 0:B.quantity)<K)return String(B.quantity)}return!1}),[v]),T=x.useCallback(async()=>{await d({...o.marketingData,coupon:""})},[d,o.marketingData]),H=x.useCallback(async()=>{await d({...o.marketingData,utmiCampaign:"",utmCampaign:"",utmSource:"",utmMedium:""})},[d,o.marketingData]),W=x.useCallback(async()=>{await y("","BRA")},[y]);return n.jsx(Ic.Provider,{value:x.useMemo(()=>({...r,addCouponSeller:j,addToCart:E,addItemsToCart:C,cartStore:o,notifications:i,clearCart:k,addNotification:c,isOpen:o.isOpen,removeNotification:l,removeToCart:P,setIsOpen:o.setIsOpen,shipping:R,shippingUpdateOption:N,toggleGiftItemCart:I,updateItemQuantity:z,removeCoupon:T,removeSellerCode:H,removeCEP:W}),[r,j,E,C,i,k,c,o,l,P,R,N,I,z,T,H,W]),children:e})},Ee=()=>{const e=x.useContext(Ic);if(e===void 0)throw new Error("useCartContext must be used within a CartProvider");return e},Nc=x.createContext({}),Wo=({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(Nc.Provider,{value:x.useMemo(()=>({data:o,isLoading:r.current??!1,isError:a}),[o,a,r]),children:e})},Vo=()=>{const e=x.useContext(Nc);if(e===void 0)throw new Error("useProductsContext must be used within a useRootContext");return e},Tc=x.createContext({}),kc=({children:e,sort:t,state:r,count:o,collectionId:s,brand:a,CONSTANTS:i})=>{const c=x.useMemo(()=>{var l;return s?[{key:"productclusterids",value:s.toString()}]:a?[{key:"brand",value:a}]:(l=r.base)!=null&&l.length?r.base.slice(1).split("/").map((u,m)=>({key:`category-${m+1}`,value:u})):[]},[r.base,s]);return n.jsx(Tc.Provider,{value:x.useMemo(()=>({state:{...r,facets:[...c,...r.facets??[]]},sort:t,count:o??i.ITEMS_PER_PAGE}),[c,o,t,r]),children:e})},mr=()=>{const e=x.useContext(Tc);if(e===void 0)throw new Error("useSearchContext must be used within a SearchProvider");return e},bt={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"}},ap={nextPage:!1,previousPage:!1,startCursor:"0",endCursor:"0",count:0,total:0},cp="Imagem do produto",_s=1,lp="Sair",up=e=>e.exit,dp=({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"}],fp=(e,t)=>{const r=(t??"").split("@")[0];return e?`Olá${r.length?", ":" "}${r}!`:"Olá!"},pp=e=>"Seja bem vindo!",Oc=x.createContext({}),mp=({children:e,searchParams:t,selectedFacets:r,PLP_SORT_DEFAULT:o})=>{const{data:s,...a}=Vo(),{router:i}=xe(),c=x.useCallback((d,f)=>{if(f){if(d.key.toLocaleLowerCase()==="price"){const h=f.getAll("facets");f.delete("facets"),h.forEach(_=>{const[y]=_.split("/");y!==d.key&&f.append("facets",_)})}f.set("page","1"),f.append("facets",`${d.key}/${d.value}`),i.push(`?${f.toString()}`)}},[i]),l=x.useCallback(()=>{const d=new URLSearchParams;d.set("sort",o),d.set("page","1"),i.push(`?${d.toString()}`)},[i]),u=x.useCallback((d,f)=>{if(!f||!f.has&&!f.has("facets"))return;const h=f.getAll("facets");f.delete("facets"),f.set("page","1"),h.forEach(_=>{const[y,b]=_.split("/");(y!==d.key||b!==d.value)&&f.append("facets",_)}),i.push(`?${f.toString()}`)},[i]),m=x.useCallback(d=>{const f=new URLSearchParams(U.convertSearchParams(t));for(const[,h]of f.entries()){const[_,y]=h.split("/");if(_===d.key&&y===d.value)return u(d,f)}return c(d,f)},[c,u,t]),g=x.useCallback(d=>{const f=new URLSearchParams(U.convertSearchParams(t));f.set("sort",d.replace("_",":")),i.push(`?${f.toString()}`)},[i,t]);return n.jsx(Oc.Provider,{value:x.useMemo(()=>({...a,breadcrumb:s&&"breadcrumb"in s?s==null?void 0:s.breadcrumb:[],deleteAllFacets:l,facets:s&&"facets"in s?s==null?void 0:s.facets:[],selectedFacets:r,onToggleFacet:m,onSort:g,searchParams:t}),[s,l,g,m,a,r,t]),children:e})},hp=({children:e,searchParams:t,forceUpdate:r,PLP_SORT_DEFAULT:o})=>{const{state:s}=mr();return n.jsx(Wo,{fetch:()=>fetch("/api/search/facets",{method:"POST",body:JSON.stringify({...s,forceUpdate:r}),priority:"low"}),children:n.jsx(mp,{selectedFacets:(s==null?void 0:s.facets)??[],searchParams:t,PLP_SORT_DEFAULT:o,children:e})})},gp=()=>{const e=x.useContext(Oc);if(e===void 0)throw new Error("useFacetsContext must be used within a FacetsProvider");return e},Mc=x.createContext({}),yp=({children:e})=>{const{data:t,...r}=Vo(),[o,s]=x.useState(0),{sendDataLayerEvent:a}=ue();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(Mc.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:ap,total:o}),[t,r,o]),children:e})},_p=({children:e,query:t,state:r,selectedFacets:o,forceUpdate:s})=>n.jsx(Wo,{fetch:()=>fetch("/api/search/product",{method:"POST",body:JSON.stringify({...r,query:t,forceUpdate:s,facets:o??[]})}),children:n.jsx(yp,{state:r,children:e})}),vp=()=>{const e=x.useContext(Mc);if(e===void 0)throw new Error("useProductsContext must be used within a ProductsProvider");return e},Lc=x.createContext({}),xp=({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(Lc.Provider,{value:x.useMemo(()=>({suggestedTerms:r,loading:s,setLoading:a}),[r,s]),children:e})},bp=({children:e,...t})=>n.jsx(xp,{...t,children:e}),jp=()=>{const e=x.useContext(Lc);if(!e)throw new Error("useSuggestedTermsContext must be used within a SuggestedTermsProvider");return e},Dc=x.createContext({searches:[],isLoading:!1,error:null}),Cp=({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(Dc.Provider,{value:x.useMemo(()=>({searches:t,isLoading:o,error:a}),[t,o,a]),children:e})},Sp=()=>{const e=x.useContext(Dc);if(!e)throw new Error("useTopSearches must be used within a TopSearchesProvider");return e},$c=x.createContext({}),wp=({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,m]=x.useState(!1),g=x.useMemo(()=>{const f=new URL(c,"http://localhost"),h=Array.isArray(r==null?void 0:r.facets)?r.facets:[(r==null?void 0:r.facets)??""],_=(r==null?void 0:r.page)??"1",y=(r==null?void 0:r.sort)??(o?"":i);return f.searchParams.set("page",String(_)),f.searchParams.set("sort",String(y)),r!=null&&r.query?(f.searchParams.set("query",r.query),f):(f.searchParams.set("base",Array.isArray(t)?t.join("/"):t),f.searchParams.set("facets",h.join(",")),f)},[o,c,r,t]),d=x.useMemo(()=>{if(Array.isArray(r==null?void 0:r.facets))return U.parseSearchState(g,r.facets);const f=r!=null&&r.facets?[r==null?void 0:r.facets]:[];return U.parseSearchState(g,f)},[g,r]);return x.useEffect(()=>{l.current!==c&&(l.current=c,window.document.body.scrollTo(0,0))},[c]),n.jsx($c.Provider,{value:x.useMemo(()=>({openFilters:u,setOpenFilters:m}),[u,m]),children:n.jsx(kc,{CONSTANTS:{ITEMS_PER_PAGE:a},state:x.useMemo(()=>({...d}),[d]),collectionId:o,brand:s,children:e})})},Rp=()=>{const e=x.useContext($c);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,a)=>cr(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)&&cr(e[s],t[s]))},zc=(e,t,r="page")=>Object.keys(t).some(o=>o===r?!1:!cr(t[o],e[o])),vo=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},Bc=()=>({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}}}),Fc=(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 m=l%r;if(m+c.columns>r){l+=r-m;continue}if(!Array.from({length:c.columns}).some((f,h)=>s.has(l+h))){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}},xo=(e,t,r,o=24)=>{const{placedBanners:s,taken:a}=Fc(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}},ar=(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:Go(),products:t!=null&&t.products.length&&e===a?t==null?void 0:t.products:Array.from({length:r},()=>Bc())}}),qc=(e,t)=>[...e,{loading:!1,page:t,pagination:Go(),products:[]}],Go=()=>({nextPage:!1,previousPage:!1,startCursor:"0",endCursor:"1",count:1,total:1}),Ep=(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,m)=>{const g=o[m];return g<=l||s>i&&g>l})},Hc=(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},Pp=(e,t)=>{if(!e)return[];const r=e.map((o,s)=>o.video&&o.video!==""?s:null).filter(o=>o);return Hc(r,t)},Uc=e=>Array.isArray(e)?e.map((t,r)=>({href:`/${e.slice(0,r+1).join("/")}`,name:t})):[],Ap=Object.freeze(Object.defineProperty({__proto__:null,createBreadcrumb:Uc,createPage:qc,createPages:ar,createPagination:Go,createProduct:Bc,deepEqual:cr,fetchPage:vo,getBanners:Fc,getPositions:xo,getProductsWithVideo:Pp,getRandomVideoPerRow:Hc,getVisibleBanners:Ep,hasStateChangedExceptPage:zc},Symbol.toStringTag,{value:"Module"})),Ip=50,Np=st.create((e,t)=>{const r=i=>Math.min(i,Ip),o=async(i,c)=>{const l=r(i.page);try{const u=await vo({...i,page:l});s(l,m=>c?c(m,u):{...m,...u})}catch(u){console.error(`[PDC - SCROLL INFINITE FAILED TO FETCH PAGE ${l}]: ${u}`),s(l,m=>({...m,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 g,d,f;const m=r(Number(i==null?void 0:i.page));e({...c,pages:ar(m,void 0,u)});try{const h=await vo({...i,page:m});if(h){if(!h.products.length&&((g=h==null?void 0:h.pagination)==null?void 0:g.total)<m){a({...i,page:(d=h==null?void 0:h.pagination)==null?void 0:d.total},l),e({pages:ar((f=h==null?void 0:h.pagination)==null?void 0:f.total)});return}typeof l=="function"&&l(h),e({load:!0,pages:ar(m,h),total:Number(h.pagination.count)})}}catch(h){console.error(`[PDC - SCROLL INFINITE TO CREATE PAGES]: page ${m} ${h}`)}},addPage:(i,c,l)=>{const{pages:u}=t(),m=r(i==null?void 0:i.page);u.some(g=>g.page===m)||(e({...c,pages:qc(u,m)}),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)}}}),Tp=(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 m;return(m=u.node)==null?void 0:m.video});for(let u=0;u<c.length;u++){const m=i+u,g=o+m,d=t.find(h=>h.position_grid===g+1),f=g+s+1;d&&(s+=d.columns),a.push({position:f,canPlayVideo:u===l})}}return a},kp=(e,t,r)=>{const o=(t-1)*r,s=t*r;return e>=o&&e<=s},Wc=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)},Op=Object.freeze(Object.defineProperty({__proto__:null,createGridPosAndVideo:Tp,getSkusNotify:Wc,isPositionInCurrentPage:kp},Symbol.toStringTag,{value:"Module"})),Vc=x.createContext({}),Mp=({banners:e,children:t,itemsPerPage:r=24,searchParams:o,Notification:s})=>{const{router:a}=xe(),{sendDataLayerEvent:i}=ue(),{isMobile:c}=ge(),{state:l}=mr(),{addPage:u,createPages:m,updateProducts:g,...d}=Np(),f=c?8:16,h=c?2:4,_=x.useRef(!1),y=x.useRef(l),[b,S]=x.useState(!1),[v,j]=x.useState(null),[w,E]=x.useState([]),C=x.useCallback(I=>{I&&"pagination"in I&&i({functionKey:"productListEvent",data:{event:"view_item_list",commonData:{products:I.products}}})},[i]),P=x.useCallback(I=>{if(I.pagination.nextPage===!0){const z=I.page+1,T=xo(e,z,h,r);u({...l,page:z},T,C)}},[u,e,C,h,r,l]),k=x.useCallback(I=>{I.loading===!1&&g({...l,page:I.page},C)},[C,g,l]),R=x.useCallback(I=>{const z=new URLSearchParams(o);I.page!==Number(z.get("page")??1)&&(z.set("page",String(I.page)),a.replace(`?${z.toString()}`,{scroll:!1}))},[a,o]),N=x.useCallback((I,z)=>{const T=z?Wc([z]):null;E(I),j(T!=null&&T.length?T[0]:null),S(!0)},[]);return x.useEffect(()=>{const I=!_.current,z=zc(y.current,l),T=xo(e,l.page,h);I?m(l,T,C,r):z&&(m(l,T,C,r),y.current=l),_.current=!0},[e,m,C,h,r,l]),n.jsxs(Vc.Provider,{value:x.useMemo(()=>({...d,addPage:u,addNewPage:P,createPages:m,gap:f,columns:h,handleNotify:N,updatePage:k,updateProducts:g,updateParamPage:R}),[u,P,m,N,f,h,d,k,g,R]),children:[t,n.jsx(s,{notify:b,sku:v,skus:w,setSku:j,setNotify:S})]})},Lp=()=>{const e=x.useContext(Vc);if(e===void 0)throw new Error("PLPInfiniteScrollContext must be used within a ScrollInfiniteProvider");return e};function Gc(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 Ko(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 Dp=()=>{const{sendDataLayerEvent:e}=ue(),{user:t}=Mt(),{cartStore:r}=Ee();return x.useEffect(()=>{if(!t)return;(async()=>{const{userId:s,email:a,firstName:i,lastName:c,phone:l,homePhone:u,postalCode:m,street:g,number:d,city:f,gender:h}=t,_=new TextEncoder().encode(s),y=await crypto.subtle.digest("SHA-256",_),S=Array.from(new Uint8Array(y)).map(v=>v.toString(16).padStart(2,"0")).join("");e({functionKey:"readyEvents",data:{readyData:{user_id:S,email:a,first_name:i,last_name:c,phone:l||u,zip:m,street:g,street_number:d,city:f,gender:h,orderform_id:r==null?void 0:r.id}}})})()},[t,r.id]),null},Kc=x.createContext({amount:null,boxes:null,toExpire:null,loading:!0,logout:()=>null,getCurrentCredits:()=>({credits:0,cashback:0})}),$p=({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:m,...g}=u;o({amount:l==null?void 0:l.amount,boxes:l==null?void 0:l.boxes,toExpire:l==null?void 0:l.toExpire,user:g,loading:!1,wishlist:(typeof m=="string"?m.split(","):m)??[]})})}catch(c){console.error("my credits request",c),o({...r,loading:!1})}},[o]),a=x.useCallback(()=>{Ko(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(Kc.Provider,{value:x.useMemo(()=>({...r,getCurrentCredits:i,logout:a}),[r,i,a]),children:[n.jsx(Dp,{}),e]})},Mt=()=>{const e=x.useContext(Kc);if(e===void 0)throw new Error("useContext(SessionContext) must be used within a SessionProvider");return e},Xc=x.createContext({gridBanners:void 0,banners:[]}),zp=({children:e,data:t,device:r,SectionZone:o,COMMON_PAGE_COLUMN_GAP_PDC:s})=>{const{isMobile:a}=ge(),i=(t==null?void 0:t.sections.filter(g=>g.name!=="List Product Banners"))??[],c=i.slice(0,_s),l=i.slice(_s,i.length),u=t==null?void 0:t.sections.find(g=>g.name==="List Product Banners"),m=x.useMemo(()=>{var g,d;return((d=(g=u==null?void 0:u.data)==null?void 0:g.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(Xc.Provider,{value:{gridBanners:u,banners:m},children:[n.jsx(o,{data:c??[]}),n.jsxs(p.Utils.Column,{gap:s,className:p.helpers.classNameConcat("utils-column-modifier"),children:[e,n.jsx(o,{data:l??[]})]})]}):n.jsx(n.Fragment,{})},Bp=()=>{const e=x.useContext(Xc);return e===void 0&&console.error("Needs PLPContentContext on parent component"),e},Qc=x.createContext({}),Yc=({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(Qc.Provider,{value:x.useMemo(()=>({...o,filters:{...t,facets:s}}),[t,s,o]),children:e})},vt=()=>{const e=x.useContext(Qc);if(e===void 0)throw new Error("useFilterContext must be used within a FilterProvider");return e},Zc=x.createContext({product:void 0}),Fp=({children:e,data:t,productId:r,COMMON_PAGE_COLUMN_GAP:o,SectionZone:s})=>n.jsxs(Zc.Provider,{value:{productId:r},children:[e,n.jsx(p.Utils.Column,{gap:o,className:p.helpers.classNameConcat("utils-column-modifier"),children:n.jsx(s,{data:(t==null?void 0:t.sections)??[]})})]}),qp=()=>{const e=x.useContext(Zc);return e||console.error("use this hook only inside PDPContentProvider hierarchy"),e},Hp=e=>e.normalize("NFD").replace(/[\u0300-\u036f]/g,"").replace(/\s+/g,"-").toLowerCase().trim();function Up(e,t=1e3){let r=!1;return(...o)=>{r||(e(...o),r=!0,setTimeout(()=>{r=!1},t))}}function Wp(e,t=1e3){let r;return(...o)=>{clearTimeout(r),r=setTimeout(()=>{e(...o)},t)}}const Jc=(e,t)=>t.getTime()>e.getTime()?Math.abs(t.getTime()-e.getTime()):0,St=(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),Vp=e=>{const t=_f.decodeJwt(e??"");return{email:t.sub,userId:t.userId}},Gp=["name","email","phone","date","cpf","cep"],vs={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}$/},el=({type:e,input:t,required:r=!1})=>{if(typeof t!="string"||!r&&t===""||!vs[e])return!0;const o=t.trim();return vs[e].test(o)},Kp=e=>{const t=/\/(\d+)-\d+-\d+\/(.+?)\./,r=typeof e=="string"?e.match(t):null;return r?r[2].replace(/-/g," "):cp},Xp=Object.freeze(Object.defineProperty({__proto__:null,FieldTypes:Gp,debounce:Wp,getAltTextFromUrl:Kp,getAuthenticatedUser:Vp,getCookie:Gc,getDaysHoursMinutesSeconds:St,getMilliSeconds:Jc,removeAccentsAndReplaceSpaces:Hp,setCookie:Ko,throttle:Up,validateInput:el},Symbol.toStringTag,{value:"Module"})),Qp=({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}},Yp=({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,m)=>{var f;if(m==="terms-and-conditions")return;const g=(f=t[m])==null?void 0:f.required;if(g&&!u){l[m]="required",i=!0;return}el({type:t[m].type,input:u,required:g})||(l[m]="error",c=!0),typeof u=="string"&&e.set(m,u.toString().trim())}),{hasEmptyFields:i,hasErrors:c,inputStatusToUpdate:l}},tl=x.createContext({}),rl=({children:e,masterDataEmailField:t,fields:r,variant:o,CONSTANTS:{MASTER_DATA_ENTITY:s,NEWSLETTER_CONFIGS:a}})=>{const{sendDataLayerEvent:i}=ue(),c=o==="vertical"&&a.hasTermsAndConditions,{mountedFields:l,mountedInputsStatus:u}=x.useMemo(()=>Qp({fields:r}),[r]),m=x.useRef(!1),[g,d]=x.useState("idle"),[f,h]=x.useState(u),_=async({searchFields:E,entity:C})=>{const P=await rt.post("/api/master-data/search",{body:{masterDataEntity:C,searchFields:E,headers:{"REST-Range":"resources=0-49"}}});return console.info(P),P.data},y=async({id:E,fieldsToBeUpdated:C,entity:P})=>(await rt.post("/api/master-data/update",{dataEntityName:P,id:E,fieldsToBeUpdated:C})).status,b=x.useCallback(async({payload:E,response:C},P,k)=>{const{email:R,...N}=E,[I]=await _({searchFields:{[P]:R},entity:k??s.newsletter});return I&&await y({id:I.id,fieldsToBeUpdated:N,entity:k??s.newsletter})!==204?{...C,status:"error"}:{...C,status:"success"}},[]),S=x.useCallback(async({formData:E},C,P)=>{const k={status:"idle",inputsStatus:{}},R={};E.forEach((N,I)=>{R[I]=N});try{const I=(await rt.post("/api/master-data",{body:{payload:R,masterDataEntity:C??s.newsletter}})).data;return(I==null?void 0:I.Message)==="duplicated entry"?b({payload:R,response:k},P,C):I!=null&&I.Id?{...k,status:"success"}:{...k,status:"error"}}catch(N){return console.error("error",N),{...k,status:"error"}}},[b]),v=x.useCallback(async(E,C,P)=>{E.preventDefault();const k=new FormData(E.target);C&&Object.keys(C).forEach(N=>{k.append(N,C[N])});const R=await S({formData:k},P??"",t);R&&(d(R==null?void 0:R.status),h(R.inputsStatus),R.status==="success"&&i({functionKey:"readyEvents",data:{event:"generate_lead"}}))},[t,S,d,h,i]),j=x.useCallback(E=>{const C=new FormData(E.currentTarget.parentElement),{hasEmptyFields:P,hasErrors:k,inputStatusToUpdate:R}=Yp({formData:C,mountedFields:l,inputsStatus:f,hasTermsAndConditions:c,checkboxRef:m,setFormStatus:d});if(h(R),P||k){E.preventDefault();return}d("loading")},[l,f,c,m]),w=x.useCallback(()=>{d("idle"),h(u)},[u]);return n.jsx(tl.Provider,{value:x.useMemo(()=>({formStatus:g,handleSubmit:v,setFormStatus:d,inputsStatus:f,setInputsStatus:h,hasTermsAndConditions:c,handleClickToSubmit:j,checkboxRef:m,masterDataEmailField:t,fields:r,variant:o,resetNewsletter:w}),[g,v,d,f,h,j,c,m,t,r,o,w]),children:e})},Xo=()=>{const e=x.useContext(tl);if(e===void 0)throw new Error("useNewsletterContext must be used within a NewsletterProvider");return e},Zp={contexts:{addToCart:{hook:ct,provider:Ac},cart:{hook:Ee,provider:ip},cms:{FlagsAndTags:{context:Oo,hook:At,provider:vf}},newsletter:{hook:Xo,provider:rl},events:{hook:ue,provider:Ef},global:{hook:ge,provider:Uf,mediator:cc},header:{hook:je,provider:np},menuMobile:{hook:Ot,provider:Ec},next:{hook:xe,provider:Wf},pdp:{provider:xf},PDPContent:{provider:Fp,hook:qp},plp:{provider:wp,hook:Rp},plpFilter:{hook:vt,provider:Yc},PLPContent:{provider:zp,hook:Bp},plpInfinite:{provider:Mp,hook:Lp},pdpdata:{provider:Pf},searchFacets:{hook:gp,provider:hp},searchProducts:{hook:vp,provider:_p},searchRoot:{hook:Vo,provider:Wo},searchSearch:{hook:mr,provider:kc},searchSuggestedTerms:{hook:jp,provider:bp},searchTopSearchs:{hook:Sp,provider:Cp},session:{hook:Mt,provider:$p},ui:{hook:It,provider:ac}},hooks:{useBackPDC:Na,useClipboard:Af,useDisableZoom:Fa,useLocalStorage:Nf,useOnScreen:Mo,useSentinel:Tf,useTouchZoomPan:qa},stores:{cart:qf,header:Kf,pdp:ep,wishlist:rp}},Jp={cart:zf,events:Rf,plp:Ap,product:U.productHelpers,utils:Xp},Qo={helpers:Jp},$e={"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"},nl=({brand:e,className:t,name:r,...o})=>n.jsxs("div",{...o,className:p.helpers.classNameConcat($e["add-to-cart--card--name"],t),children:[n.jsx(p.Tag,{style:{textTransform:"uppercase"},size:"small",variant:"quaternary",title:e,children:e}),n.jsx(p.TextStructure.Root,{children:n.jsx(p.TextStructure.DivWrapper,{alignContent:"flex-start",alignItems:"flex-start",children:n.jsx("p",{className:"typography-style-body-md",children:r})})})]});nl.displayName="AddToCart.Card.Name";const ol=({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:p.helpers.classNameConcat($e["add-to-cart--card--price-quantity"],e),children:n.jsx(p.ProductInfo.Root,{size:"small",layout:"vertical",children:n.jsx(p.ProductInfo.Wrapper,{size:"small",layout:"vertical",children:n.jsx(p.ProductInfo.ValuesWrapper,{children:r!==t?n.jsxs(n.Fragment,{children:[n.jsx(p.ProductInfo.Price,{label:"originalPrice",value:i,size:"small"},"price-list"),n.jsx(p.ProductInfo.Price,{label:"discountPrice",value:c,size:"small"},"price-low")]}):n.jsx(p.ProductInfo.Price,{label:"defaultPrice",value:c,size:"small"},"price-low")})})})})};ol.displayName="AddToCart.Card.PriceQuantity";const em="_skeleton_12b79_1",tm={skeleton:em},sl=({style:e})=>n.jsx("div",{style:e,className:tm.skeleton}),rm="_image_lypfr_1",nm={image:rm},om=({alt:e,className:t,objectFit:r,...o})=>{const{nextimage:s}=xe();return n.jsx(s,{quality:90,...o,alt:e??"",className:p.helpers.classNameConcat(nm.image,t),"data-object-fit":r??"cover"})},sm=({videoRef:e,...t})=>n.jsx("video",{...t,ref:e,children:n.jsx("track",{kind:"captions"})}),ze={Image:om,Video:sm},il=({className:e,productGroupID:t,size:r,texture:o,...s})=>{const{CONSTANTS:{TEXTURE_IMAGE:a,TOGGLE_STYLE_MODIFIER:i}}=ct(),[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 m=u.data[0].items[0];if(m){const g=m.images.find(d=>a.includes(d.imageLabel));g!=null&&g.imageUrl?l(g.imageUrl):l(m.images[0].imageUrl)}}).catch(u=>{console.error(u)})},[c,t]),n.jsxs("div",{...s,className:p.helpers.classNameConcat($e["add-to-cart--card--style-size"],e),children:[n.jsx(p.ToggleStyle.Wrapper,{size:"x-small",style:i,children:n.jsx(p.ToggleStyle.Texture,{children:c?n.jsx(ze.Image,{alt:"",src:c??"",width:164,height:164,style:i}):n.jsx(sl,{})})}),n.jsx(p.Utils.Divider,{direction:"vertical",size:"medium",style:{height:24}}),r&&n.jsxs(p.ToggleSize.Wrapper,{size:"small",title:"wrapper-texture",children:[n.jsx(p.ToggleSize.DisabledAdornment,{title:"disabled-adornment-texture"}),n.jsx(p.ToggleSize.Text,{children:r})]})]})};il.displayName="AddToCart.Card.StyleSize";const{helpers:im}=Qo,al=({className:e,item:t,texture:r,...o})=>{const{itemOffered:{name:s,brand:a,skuName:i,isVariationOf:{productGroupID:c}},quantity:l,price:u,sellingPrice:m}=t,{CONSTANTS:{NAME_SPLIT_SYMBOL:g}}=ct(),{size:d}=im.product.getColorAndSizeFromSkuName(i??s,g);return n.jsxs("div",{...o,className:p.helpers.classNameConcat($e["add-to-cart--card--content"],e),children:[n.jsx(nl,{brand:a.name,name:s}),n.jsx(ol,{price:u,listPrice:m,quantity:l,productId:t.id}),n.jsx(il,{size:d,texture:r,productGroupID:c})]})};al.displayName="AddToCart.Card.Content";const cl=({image:e,thumbnail:t=!1})=>n.jsx(ze.Image,{alt:e.alternateName??"image","data-thumbnail":t,height:t?152:120,src:e.url,width:t?152:94});cl.displayName="AddToCart.Card";const ll=({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:p.helpers.classNameConcat($e["add-to-cart--card"],e),children:[n.jsx(cl,{image:{alternateName:a.alternateName||"Produto",url:i||""},thumbnail:o}),!o&&n.jsx(al,{item:t,texture:r})]})};ll.displayName="AddToCart.Card";const ul=({className:e,children:t,title:r,...o})=>n.jsxs("div",{...o,className:p.helpers.classNameConcat($e["add-to-cart--content"],e),children:[n.jsx("div",{className:$e["add-to-cart--content--title"],children:r&&n.jsx("h2",{children:r})}),t,n.jsx(nt.Footer,{})]});ul.displayName="AddToCart.Layout.Content";const dl=({className:e,...t})=>{var f,h;const{isMobile:r,handleClose:o,CONSTANTS:{ADD_TO_CART:s}}=ct(),{cartStore:{totalizers:a},setIsOpen:i}=Ee(),c=(f=a.find(_=>_.id==="Discounts"))==null?void 0:f.value,l=((h=a.find(_=>_.id==="Items"))==null?void 0:h.value)??0,u=a.find(_=>_.id==="Shipping"),g=(l-Math.abs(c??0)+((u==null?void 0:u.value)??0))/100,d=U.formatPriceToCurrency(g??0);return n.jsxs("div",{...t,className:p.helpers.classNameConcat($e["add-to-cart--footer"],e),children:[n.jsxs("div",{className:$e["add-to-cart--footer--total"],children:[n.jsx("span",{children:"Subtotal:"}),n.jsx("span",{children:d})]}),n.jsx(p.Button,{size:"medium",variant:"primary","data-close":!0,onClick:()=>i(!0),children:s.footer.bag}),r?n.jsx(p.Button,{"data-close":!0,size:"medium",variant:"tertiary",children:s.footer.keep_buying}):n.jsx(p.Button,{onClick:()=>o(),size:"medium",variant:"tertiary",children:s.footer.keep_buying})]})};dl.displayName="AddToCart.Layout.Footer";const fl=({children:e,className:t,thumbnail:r=!1,...o})=>{const{cartStore:{options:s}}=Ee(),{recentlyAddedProducts:a}=It(),i=a.length>3?4:a.length;return n.jsxs("div",{...o,className:$e["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(m=>m.id===c.itemOffered.isVariationOf.productGroupID))==null?void 0:u.texture;return n.jsx(nt.Card,{item:c,thumbnail:r,texture:l},c.itemOffered.sku)}),e]})};fl.displayName="AddToCart.Layout.Items";const pl=({children:e,Z_INDEX_WAR:t})=>{const{isOpen:r,setIsOpen:o}=ct(),{isMobile:s}=ge();return n.jsxs(p.Modal.Root,{"data-modal":"add-to-cart--modal",className:$e["add-to-cart__modal"],isMobile:s??!1,isOpen:r,setIsOpen:o,variant:"sideBottom",style:{zIndex:t.modal},children:[n.jsx(p.Modal.Header,{navigation:"top",children:n.jsx(p.Modal.Controls,{navigation:"top",isMobile:!0})}),n.jsx(p.Modal.Body,{children:e})]})};pl.displayName="AddToCart.Modal";const am=({children:e})=>{const{count:t,handleClose:r,setIsOpen:o}=ct(),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})},ml=({children:e,component:t,CONSTANTS:r,...o})=>{const{recentlyAddedProducts:s}=It(),{isMobile:a}=ge(),i=s.length>3?4:s.length;return n.jsx(Ac,{...o,count:i,isMobile:a,CONSTANTS:r,children:n.jsx(am,{children:a?n.jsxs(n.Fragment,{children:[n.jsx(nt.Modal,{Z_INDEX_WAR:r.Z_INDEX_WAR,children:t}),e]}):n.jsx(nt.Tooltip,{component:t,style:{width:350},Z_INDEX_WAR:r.Z_INDEX_WAR,children:e})})})};ml.displayName="AddToCart.Root";const hl=({children:e,component:t,Z_INDEX_WAR:r,...o})=>{const{contentRef:s,left:a,isLeaving:i,target:c,isOpen:l,top:u}=ct();return n.jsx(p.Tooltip.Root,{arrow:"top-right",component:n.jsx("div",{...o,ref:s,children:t}),id:"add-to-cart--tooltip",className:$e["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:$e["add-to-cart--tooltip"],ref:c,children:e})})};hl.displayName="AddToCart.Tooltip";const nt={Card:ll,Content:ul,Footer:dl,Items:fl,Modal:pl,Root:ml,Tooltip:hl},Yo=({title:e,...t})=>{const{recentlyAddedProducts:r}=It(),{isMobile:o}=ge(),s=r.length>3?4:r.length,a=r.length>(s??1),i=r.length>1;return n.jsx(nt.Root,{isMobile:o,count:r.length,component:n.jsx(nt.Content,{title:e,children:n.jsx(nt.Items,{thumbnail:i,children:a&&n.jsx(p.Badge.Count,{count:r.length-s,size:"medium",variant:"secondary"})})}),...t})};Yo.displayName="AddToCart";const xs={"backtotop-btn":"_backtotop-btn_1shb6_1","card-modifier":"_card-modifier_1shb6_27"},cm=({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]}:{},m=()=>{window&&window.document.body.scrollTo({...c})};return n.jsx(p.Card,{...i,shadow:!0,padding:"small",className:p.helpers.classNameConcat(xs["card-modifier"],t),style:{...a,padding:0},children:n.jsxs("button",{className:xs["backtotop-btn"],onClick:m,style:{...u},"data-orientation":o,children:[r,e]})})},lm="_container_1sy8s_16",Ze={"carousel-container":"_carousel-container_1sy8s_1","add-cart-container":"_add-cart-container_1sy8s_8",container:lm,"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"},um=({selectedProducts:e,handleAddAllToCart:t,CONSTANTS:r})=>{const o=Object.values(e.products).length;return n.jsxs("div",{className:Ze["add-itens-to-cart-container"],children:[n.jsxs("div",{className:Ze["add-itens-to-cart-container-values"],children:[n.jsx("div",{className:Ze["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:Ze["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(p.Button,{onClick:t,className:Ze["add-button"],size:"large",disabled:o===0,variant:"primary",children:r.BUY_BUTTON_LABELS.add_to_cart})]})},dm=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},[]),fm=({selectedProduct:e,productId:t,prevState:r,mainSellerId:o})=>{const{products:s,totalPrice:a}=r;try{if(!e){const{[t]:u,...m}=s;return{...r,totalPrice:a-u.price,products:m}}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}},gl=x.createContext({}),pm=({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:m}=ue(),g=_=>{u({functionKey:"productEvents",data:{commonData:{...t,availableSizes:l.current.availableSkus,...l.current.priceInfo},customData:{index:r+1},event:_}})},d=()=>{g("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}}})},h=()=>{o&&(m.current={item_list_name:o}),g("select_item")};return n.jsx(gl.Provider,{value:x.useMemo(()=>({...s,index:r,item:t,element:c,selectedSku:a,setSelectedSku:i,eventDataRef:l,sendAddToWishlistEvent:d,sendSelectItemEvent:h,sendAddToCartEvent:f}),[s,t,c,a]),children:e})},He=()=>{const e=x.useContext(gl);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"},yl=({callback:e,children:t,className:r,data:o,isKit:s,...a})=>{const{item:{availability:{status:i},image:c}}=He();return i?n.jsxs("div",{...a,className:p.helpers.classNameConcat(Ie["product-card--actions"],r),children:[n.jsxs(be.Wrapper,{type:"actions--group",children:[n.jsx(be.Price,{}),n.jsx("div",{className:Ie["product-card--actions--selectors"],children:!s&&n.jsx(be.StyleSelector,{data:o,images:c,callback:e})})]}),t]}):null};yl.displayName="ProductCard.Actions";const _l=({className:e,isKit:t,...r})=>{const{addToCart:o}=Ee(),{isMobile:s=!1,selectedSku:a,outStock:i,item:c,sendAddToCartEvent:l,CONSTANTS:u}=He(),m=()=>{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(h=>u.TEXTURE_IMAGE.includes(h.alternateName)))==null?void 0:f.url}),l()},g=a?u.BUY_BUTTON_LABELS.add_to_cart:u.BUY_BUTTON_LABELS.select_size;return n.jsx(p.Button,{...r,className:p.helpers.classNameConcat(e,"buy-button"),disabled:!t&&!a&&!i,size:s?"medium":"large",variant:i?"secondary":"primary",onClick:i?r.onClick:m,children:i?"Avise-me quando chegar":g})};_l.displayName="ProductCard.Actions.BuyButton";const vl=({product:e,tag:t,size:r="small"})=>{const o=e.offers.offers[0],{CONSTANTS:s,WishListToggle:a}=He();return n.jsxs(be.Wrapper,{type:"header",style:{zIndex:s.Z_INDEX_WAR.product_card_header},children:[t?n.jsx(p.Tag,{title:t.value,adornment:{start:t.enableIcon&&t.icon?n.jsx(p.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"})]})};vl.displayName="ProductCard.Actions.Header";var xl=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function hr(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function mm(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 bo={exports:{}},Oe={};Oe._=Oe._interop_require_default=hm;function hm(e){return e&&e.__esModule?e:{default:e}}var Ut={exports:{}},Rr={},bs;function bl(){return bs||(bs=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,m]=l;Array.isArray(m)?m.forEach(g=>c.append(u,o(g))):c.set(u,o(m))}),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(m=>{Array.from(m.keys()).forEach(g=>i.delete(g)),m.forEach((g,d)=>i.append(d,g))}),i}}(Rr)),Rr}var Er={},gt={};function jl(e){if(typeof WeakMap!="function")return null;var t=new WeakMap,r=new WeakMap;return(jl=function(o){return o?r:t})(e)}gt._=gt._interop_require_wildcard=gm;function gm(e,t){if(!t&&e&&e.__esModule)return e;if(e===null||typeof e!="object"&&typeof e!="function")return{default:e};var r=jl(t);if(r&&r.has(e))return r.get(e);var o={},s=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if(a!=="default"&&Object.prototype.hasOwnProperty.call(e,a)){var i=s?Object.getOwnPropertyDescriptor(e,a):null;i&&(i.get||i.set)?Object.defineProperty(o,a,i):o[a]=e[a]}return o.default=e,r&&r.set(e,o),o}var js;function Cl(){return js||(js=1,function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(l,u){for(var m in u)Object.defineProperty(l,m,{enumerable:!0,get:u[m]})}t(e,{formatUrl:function(){return a},urlObjectKeys:function(){return i},formatWithValidation:function(){return c}});const o=gt._(bl()),s=/https?|ftp|gopher|file/;function a(l){let{auth:u,hostname:m}=l,g=l.protocol||"",d=l.pathname||"",f=l.hash||"",h=l.query||"",_=!1;u=u?encodeURIComponent(u).replace(/%3A/i,":")+"@":"",l.host?_=u+l.host:m&&(_=u+(~m.indexOf(":")?"["+m+"]":m),l.port&&(_+=":"+l.port)),h&&typeof h=="object"&&(h=String(o.urlQueryToSearchParams(h)));let y=l.search||h&&"?"+h||"";return g&&!g.endsWith(":")&&(g+=":"),l.slashes||(!g||s.test(g))&&_!==!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"),""+g+_+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)}}(Er)),Er}var Pr={},Cs;function ym(){return Cs||(Cs=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}}(Pr)),Pr}var Ar={},Ss;function gr(){return Ss||(Ss=1,function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(j,w){for(var E in w)Object.defineProperty(j,E,{enumerable:!0,get:w[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 m},loadGetInitialProps:function(){return g},SP:function(){return d},ST:function(){return f},DecodeError:function(){return h},NormalizeError:function(){return _},PageNotFoundError:function(){return y},MissingStaticPage:function(){return b},MiddlewareNotFoundError:function(){return S},stringifyError:function(){return v}});const r=["CLS","FCP","FID","INP","LCP","TTFB"];function o(j){let w=!1,E;return function(){for(var C=arguments.length,P=new Array(C),k=0;k<C;k++)P[k]=arguments[k];return w||(w=!0,E=j(...P)),E}}const s=/^[a-zA-Z][a-zA-Z\d+\-.]*?:/,a=j=>s.test(j);function i(){const{protocol:j,hostname:w,port:E}=window.location;return j+"//"+w+(E?":"+E:"")}function c(){const{href:j}=window.location,w=i();return j.substring(w.length)}function l(j){return typeof j=="string"?j:j.displayName||j.name||"Unknown"}function u(j){return j.finished||j.headersSent}function m(j){const w=j.split("?");return w[0].replace(/\\/g,"/").replace(/\/\/+/g,"/")+(w[1]?"?"+w.slice(1).join("?"):"")}async function g(j,w){if(process.env.NODE_ENV!=="production"){var E;if((E=j.prototype)!=null&&E.getInitialProps){const k='"'+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(k)}}const C=w.res||w.ctx&&w.ctx.res;if(!j.getInitialProps)return w.ctx&&w.Component?{pageProps:await g(w.Component,w.ctx)}:{};const P=await j.getInitialProps(w);if(C&&u(C))return P;if(!P){const k='"'+l(j)+'.getInitialProps()" should resolve to an object. But found "'+P+'" instead.';throw new Error(k)}return process.env.NODE_ENV!=="production"&&Object.keys(P).length===0&&!w.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"),P}const d=typeof performance<"u",f=d&&["mark","measure","getEntriesByName"].every(j=>typeof performance[j]=="function");class h extends Error{}class _ extends Error{}class y extends Error{constructor(w){super(),this.code="ENOENT",this.name="PageNotFoundError",this.message="Cannot find module for page: "+w}}class b extends Error{constructor(w,E){super(),this.message="Failed to load static file for page: "+w+" "+E}}class S 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})}}(Ar)),Ar}var Wt={exports:{}},Ir={},ws;function Sl(){return ws||(ws=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(/\/$/,"")||"/"}}(Ir)),Ir}var Nr={},Rs;function Zo(){return Rs||(Rs=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:""}}}(Nr)),Nr}var Es;function yr(){return Es||(Es=1,function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"normalizePathTrailingSlash",{enumerable:!0,get:function(){return s}});const r=Sl(),o=Zo(),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)}(Wt,Wt.exports)),Wt.exports}var Tr={},Vt={exports:{}},kr={},Ps;function wl(){return Ps||(Ps=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"pathHasPrefix",{enumerable:!0,get:function(){return r}});const t=Zo();function r(o,s){if(typeof o!="string")return!1;const{pathname:a}=(0,t.parsePath)(o);return a===s||a.startsWith(s+"/")}}(kr)),kr}var As;function _m(){return As||(As=1,function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"hasBasePath",{enumerable:!0,get:function(){return s}});const r=wl(),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)}(Vt,Vt.exports)),Vt.exports}var Is;function Rl(){return Is||(Is=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"isLocalURL",{enumerable:!0,get:function(){return o}});const t=gr(),r=_m();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}}}(Tr)),Tr}var Or={},Mr={},Ns;function vm(){return Ns||(Ns=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 m=function(g,d){if(g!==null&&g!==d)throw new Error("You cannot use different slug names for the same dynamic path ('"+g+"' !== '"+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]+'" ).');m(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]+'").');m(this.restSlugName,l),this.restSlugName=l,c="[...]"}else{if(u)throw new Error('Optional route parameters are not yet supported ("'+s[0]+'").');m(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()}}(Mr)),Mr}var Lr={},Ts;function xm(){return Ts||(Ts=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)}}(Lr)),Lr}var ks;function bm(){return ks||(ks=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=vm(),o=xm()}(Or)),Or}var Dr={},$r={},Os;function jm(){return Os||(Os=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"getRouteMatcher",{enumerable:!0,get:function(){return r}});const t=gr();function r(o){let{re:s,groups:a}=o;return i=>{const c=s.exec(i);if(!c)return!1;const l=m=>{try{return decodeURIComponent(m)}catch{throw new t.DecodeError("failed to decode param")}},u={};return Object.keys(a).forEach(m=>{const g=a[m],d=c[g.pos];d!==void 0&&(u[m]=~d.indexOf("/")?d.split("/").map(f=>l(f)):g.repeat?[l(d)]:l(d))}),u}}}($r)),$r}var zr={},Br={},Fr={},qr={},Ms;function Cm(){return Ms||(Ms=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}}(qr)),qr}var Hr={},Ls;function Sm(){return Ls||(Ls=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(")")}}(Hr)),Hr}var Ds;function wm(){return Ds||(Ds=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=Cm(),o=Sm();function s(i){return(0,r.ensureLeadingSlash)(i.split("/").reduce((c,l,u,m)=>!l||(0,o.isGroupSegment)(l)||l[0]==="@"||(l==="page"||l==="route")&&u===m.length-1?c:c+"/"+l,""))}function a(i,c){return c?i.replace(/\.rsc($|\?)/,"$1"):i}}(Fr)),Fr}var $s;function Rm(){return $s||($s=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=wm(),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 m of i.split("/"))if(l=o.find(g=>m.startsWith(g)),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 m=c.split("/");if(m.length<=2)throw new Error(`Invalid interception route: ${i}. Cannot use (..)(..) marker at the root level or one level up.`);u=m.slice(0,-2).concat(u).join("/");break;default:throw new Error("Invariant: unexpected marker")}return{interceptingRoute:c,interceptedRoute:u}}}(Br)),Br}var Ur={},zs;function Em(){return zs||(zs=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}}(Ur)),Ur}var Bs;function Pm(){return Bs||(Bs=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 h}});const r=Rm(),o=Em(),s=Sl(),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 S=1;return{parameterizedRoute:y.map(v=>{const j=r.INTERCEPTION_ROUTE_MARKERS.find(E=>v.startsWith(E)),w=v.match(/\[((?:\[.*\])|.+)\]/);if(j&&w){const{key:E,optional:C,repeat:P}=c(w[1]);return b[E]={pos:S++,repeat:P,optional:C},"/"+(0,o.escapeStringRegexp)(j)+"([^/]+?)"}else if(w){const{key:E,repeat:C,optional:P}=c(w[1]);return b[E]={pos:S++,repeat:C,optional:P},C?P?"(?:/(.+?))?":"/(.+?)":"/([^/]+?)"}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 m(){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 g(_){let{getSafeRouteKey:y,segment:b,routeKeys:S,keyPrefix:v}=_;const{key:j,optional:w,repeat:E}=c(b);let C=j.replace(/\W/g,"");v&&(C=""+v+C);let P=!1;return(C.length===0||C.length>30)&&(P=!0),isNaN(parseInt(C.slice(0,1)))||(P=!0),P&&(C=y()),v?S[C]=""+v+j:S[C]=""+j,E?w?"(?:/(?<"+C+">.+?))?":"/(?<"+C+">.+?)":"/(?<"+C+">[^/]+?)"}function d(_,y){const b=(0,s.removeTrailingSlash)(_).slice(1).split("/"),S=m(),v={};return{namedParameterizedRoute:b.map(j=>{const w=r.INTERCEPTION_ROUTE_MARKERS.some(C=>j.startsWith(C)),E=j.match(/\[((?:\[.*\])|.+)\]/);return w&&E?g({getSafeRouteKey:S,segment:E[1],routeKeys:v,keyPrefix:y?i:void 0}):E?g({getSafeRouteKey:S,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 h(_,y){const{parameterizedRoute:b}=l(_),{catchAll:S=!0}=y;if(b==="/")return{namedRegex:"^/"+(S?".*":"")+"$"};const{namedParameterizedRoute:v}=d(_,!1);let j=S?"(?:(/.*)?)":"";return{namedRegex:"^"+v+j+"$"}}}(zr)),zr}var Fs;function Am(){return Fs||(Fs=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"interpolateAs",{enumerable:!0,get:function(){return o}});const t=jm(),r=Pm();function o(s,a,i){let c="";const l=(0,r.getRouteRegex)(s),u=l.groups,m=(a!==s?(0,t.getRouteMatcher)(l)(a):"")||i;c=s;const g=Object.keys(u);return g.every(d=>{let f=m[d]||"";const{repeat:h,optional:_}=u[d];let y="["+(h?"...":"")+d+"]";return _&&(y=(f?"":"/")+"["+y+"]"),h&&!Array.isArray(f)&&(f=[f]),(_||d in m)&&(c=c.replace(y,h?f.map(b=>encodeURIComponent(b)).join("/"):encodeURIComponent(f))||"/")})||(c=""),{params:g,result:c}}}(Dr)),Dr}var qs;function Im(){return qs||(qs=1,function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"resolveHref",{enumerable:!0,get:function(){return m}});const r=bl(),o=Cl(),s=ym(),a=gr(),i=yr(),c=Rl(),l=bm(),u=Am();function m(g,d,f){let h,_=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: '"+g.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{h=new URL(_.startsWith("#")?g.asPath:g.pathname,"http://n")}catch{h=new URL("/","http://n")}try{const v=new URL(_,h);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:C,params:P}=(0,u.interpolateAs)(v.pathname,v.pathname,E);C&&(j=(0,o.formatWithValidation)({pathname:C,hash:v.hash,query:(0,s.omit)(E,P)}))}const w=v.origin===h.origin?v.href.slice(v.origin.length):v.href;return f?[w,j||w]:w}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)}(Ut,Ut.exports)),Ut.exports}var Gt={exports:{}},Wr={},Vr={},Hs;function El(){return Hs||(Hs=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"addPathPrefix",{enumerable:!0,get:function(){return r}});const t=Zo();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}}(Vr)),Vr}var Us;function Nm(){return Us||(Us=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"addLocale",{enumerable:!0,get:function(){return o}});const t=El(),r=wl();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)}}(Wr)),Wr}var Ws;function Tm(){return Ws||(Ws=1,function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"addLocale",{enumerable:!0,get:function(){return o}});const r=yr(),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)(Nm().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)}(Gt,Gt.exports)),Gt.exports}var Gr={},Vs;function Pl(){return Vs||(Vs=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"RouterContext",{enumerable:!0,get:function(){return o}});const o=Oe._(x).default.createContext(null);process.env.NODE_ENV!=="production"&&(o.displayName="RouterContext")}(Gr)),Gr}var Kr={},Gs;function km(){return Gs||(Gs=1,function(e){"use client";Object.defineProperty(e,"__esModule",{value:!0});function t(u,m){for(var g in m)Object.defineProperty(u,g,{enumerable:!0,get:m[g]})}t(e,{CacheStates:function(){return s},AppRouterContext:function(){return a},LayoutRouterContext:function(){return i},GlobalLayoutRouterContext:function(){return c},TemplateContext:function(){return l}});const o=Oe._(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")}(Kr)),Kr}var Kt={exports:{}},Xt={exports:{}},Ks;function Al(){return Ks||(Ks=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)}(Xt,Xt.exports)),Xt.exports}var Xs;function Om(){return Xs||(Xs=1,function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"useIntersection",{enumerable:!0,get:function(){return u}});const r=x,o=Al(),s=typeof IntersectionObserver=="function",a=new Map,i=[];function c(m){const g={root:m.root||null,margin:m.rootMargin||""},d=i.find(y=>y.root===g.root&&y.margin===g.margin);let f;if(d&&(f=a.get(d),f))return f;const h=new Map,_=new IntersectionObserver(y=>{y.forEach(b=>{const S=h.get(b.target),v=b.isIntersecting||b.intersectionRatio>0;S&&v&&S(v)})},m);return f={id:g,observer:_,elements:h},i.push(g),a.set(g,f),f}function l(m,g,d){const{id:f,observer:h,elements:_}=c(d);return _.set(m,g),h.observe(m),function(){if(_.delete(m),h.unobserve(m),_.size===0){h.disconnect(),a.delete(f);const b=i.findIndex(S=>S.root===f.root&&S.margin===f.margin);b>-1&&i.splice(b,1)}}}function u(m){let{rootRef:g,rootMargin:d,disabled:f}=m;const h=f||!s,[_,y]=(0,r.useState)(!1),b=(0,r.useRef)(null),S=(0,r.useCallback)(j=>{b.current=j},[]);(0,r.useEffect)(()=>{if(s){if(h||_)return;const j=b.current;if(j&&j.tagName)return l(j,E=>E&&y(E),{root:g==null?void 0:g.current,rootMargin:d})}else if(!_){const j=(0,o.requestIdleCallback)(()=>y(!0));return()=>(0,o.cancelIdleCallback)(j)}},[h,d,g,_,b.current]);const v=(0,r.useCallback)(()=>{y(!1)},[]);return[S,_,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)}(Kt,Kt.exports)),Kt.exports}var Qt={exports:{}},Yt={exports:{}},Xr={},Qs;function Mm(){return Qs||(Qs=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}}}(Xr)),Xr}var Ys;function Lm(){return Ys||(Ys=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?Mm().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)}(Yt,Yt.exports)),Yt.exports}var Zt={exports:{}},Qr={},Zs;function Dm(){return Zs||(Zs=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}}}}(Qr)),Qr}var Js;function $m(){return Js||(Js=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 Dm().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)}(Zt,Zt.exports)),Zt.exports}var ei;function zm(){return ei||(ei=1,function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"getDomainLocale",{enumerable:!0,get:function(){return s}});const r=yr(),o=process.env.__NEXT_ROUTER_BASEPATH||"";function s(a,i,c,l){if(process.env.__NEXT_I18N_SUPPORT){const u=Lm().normalizeLocalePath,m=$m().detectDomainLocale,g=i||u(a,c).detectedLocale,d=m(l,void 0,g);if(d){const f="http"+(d.http?"":"s")+"://",h=g===d.defaultLocale?"":"/"+g;return""+f+d.domain+(0,r.normalizePathTrailingSlash)(""+o+h+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)}(Qt,Qt.exports)),Qt.exports}var Jt={exports:{}},ti;function Bm(){return ti||(ti=1,function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"addBasePath",{enumerable:!0,get:function(){return a}});const r=El(),o=yr(),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)}(Jt,Jt.exports)),Jt.exports}var er={exports:{}},ri;function Fm(){return ri||(ri=1,function(e,t){Object.defineProperty(t,"__esModule",{value:!0});function r(g,d){for(var f in d)Object.defineProperty(g,f,{enumerable:!0,get:d[f]})}r(t,{PrefetchKind:function(){return m},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 m;(function(g){g.AUTO="auto",g.FULL="full",g.TEMPORARY="temporary"})(m||(m={})),(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)}(er,er.exports)),er.exports}(function(e,t){"use client";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return w}});const o=Oe._(x),s=Im(),a=Rl(),i=Cl(),c=gr(),l=Tm(),u=Pl(),m=km(),g=Om(),d=zm(),f=Bm(),h=Fm(),_=new Set;function y(E,C,P,k,R,N){if(typeof window>"u"||!N&&!(0,a.isLocalURL)(C))return;if(!k.bypassPrefetchedCheck){const z=typeof k.locale<"u"?k.locale:"locale"in E?E.locale:void 0,T=C+"%"+P+"%"+z;if(_.has(T))return;_.add(T)}const I=N?E.prefetch(C,R):E.prefetch(C,P,k);Promise.resolve(I).catch(z=>{if(process.env.NODE_ENV!=="production")throw z})}function b(E){const P=E.currentTarget.getAttribute("target");return P&&P!=="_self"||E.metaKey||E.ctrlKey||E.shiftKey||E.altKey||E.nativeEvent&&E.nativeEvent.which===2}function S(E,C,P,k,R,N,I,z,T,H){const{nodeName:W}=E.currentTarget;if(W.toUpperCase()==="A"&&(b(E)||!T&&!(0,a.isLocalURL)(P)))return;E.preventDefault();const K=()=>{const V=I??!0;"beforePopState"in C?C[R?"replace":"push"](P,k,{shallow:N,locale:z,scroll:V}):C[R?"replace":"push"](k||P,{forceOptimisticNavigation:!H,scroll:V})};T?o.default.startTransition(K):K()}function v(E){return typeof E=="string"?E:(0,i.formatUrl)(E)}const w=o.default.forwardRef(function(C,P){let k;const{href:R,as:N,children:I,prefetch:z=null,passHref:T,replace:H,shallow:W,scroll:q,locale:K,onClick:V,onMouseEnter:B,onTouchStart:J,legacyBehavior:A=!1,...O}=C;k=I,A&&(typeof k=="string"||typeof k=="number")&&(k=o.default.createElement("a",null,k));const D=o.default.useContext(u.RouterContext),X=o.default.useContext(m.AppRouterContext),ne=D??X,ee=!D,L=z!==!1,te=z===null?h.PrefetchKind.AUTO:h.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"&&(C[se]==null||typeof C[se]!="string"&&typeof C[se]!="object"))throw ie({key:se,expected:"`string` or `object`",actual:C[se]===null?"null":typeof C[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 Q=typeof C[se];if(se==="as"){if(C[se]&&Q!=="string"&&Q!=="object")throw ie({key:se,expected:"`string` or `object`",actual:Q})}else if(se==="locale"){if(C[se]&&Q!=="string")throw ie({key:se,expected:"`string`",actual:Q})}else if(se==="onClick"||se==="onMouseEnter"||se==="onTouchStart"){if(C[se]&&Q!=="function")throw ie({key:se,expected:"`function`",actual:Q})}else if((se==="replace"||se==="scroll"||se==="shallow"||se==="passHref"||se==="prefetch"||se==="legacyBehavior")&&C[se]!=null&&Q!=="boolean")throw ie({key:se,expected:"`boolean`",actual:Q})});const Y=o.default.useRef(!1);C.prefetch&&!Y.current&&!ee&&(Y.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 ie;if(typeof R=="string"?ie=R:typeof R=="object"&&typeof R.pathname=="string"&&(ie=R.pathname),ie&&ie.split("/").some(G=>G.startsWith("[")&&G.endsWith("]")))throw new Error("Dynamic href `"+ie+"` found in <Link> while using the `/app` router, this is not supported. Read more: https://nextjs.org/docs/messages/app-dir-dynamic-href")}const{href:Z,as:re}=o.default.useMemo(()=>{if(!D){const G=v(R);return{href:G,as:N?v(N):G}}const[ie,_e]=(0,s.resolveHref)(D,R,!0);return{href:ie,as:N?(0,s.resolveHref)(D,N):_e||ie}},[D,R,N]),$=o.default.useRef(Z),M=o.default.useRef(re);let oe;if(A)if(process.env.NODE_ENV==="development"){V&&console.warn('"onClick" was passed to <Link> with `href` of `'+R+'` 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 `'+R+'` but "legacyBehavior" was set. The legacy behavior requires onMouseEnter be set on the child of next/link');try{oe=o.default.Children.only(k)}catch{throw k?new Error("Multiple children were passed to <Link> with `href` of `"+R+"` but only one child is supported https://nextjs.org/docs/messages/link-multiple-children"+(typeof window<"u"?`
3
- Open your browser's console to view the Component stack trace.`:"")):new Error("No children were passed to <Link> with `href` of `"+R+"` but one child is required https://nextjs.org/docs/messages/link-no-children")}}else oe=o.default.Children.only(k);else if(process.env.NODE_ENV==="development"&&(k==null?void 0:k.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 ae=A?oe&&typeof oe=="object"&&oe.ref:P,[de,fe,ce]=(0,g.useIntersection)({rootMargin:"200px"}),F=o.default.useCallback(ie=>{(M.current!==re||$.current!==Z)&&(ce(),M.current=re,$.current=Z),de(ie),ae&&(typeof ae=="function"?ae(ie):typeof ae=="object"&&(ae.current=ie))},[re,ae,Z,ce,de]);o.default.useEffect(()=>{process.env.NODE_ENV==="production"&&ne&&(!fe||!L||y(ne,Z,re,{locale:K},{kind:te},ee))},[re,Z,fe,K,L,D==null?void 0:D.locale,ne,ee,te]);const ve={ref:F,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 V=="function"&&V(ie),A&&oe.props&&typeof oe.props.onClick=="function"&&oe.props.onClick(ie),ne&&(ie.defaultPrevented||S(ie,ne,Z,re,H,W,q,K,ee,L))},onMouseEnter(ie){!A&&typeof B=="function"&&B(ie),A&&oe.props&&typeof oe.props.onMouseEnter=="function"&&oe.props.onMouseEnter(ie),ne&&((!L||process.env.NODE_ENV==="development")&&ee||y(ne,Z,re,{locale:K,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&&(!L&&ee||y(ne,Z,re,{locale:K,priority:!0,bypassPrefetchedCheck:!0},{kind:te},ee))}};if((0,c.isAbsoluteUrl)(re))ve.href=re;else if(!A||T||oe.type==="a"&&!("href"in oe.props)){const ie=typeof K<"u"?K: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);ve.href=_e||(0,f.addBasePath)((0,l.addLocale)(re,ie,D==null?void 0:D.defaultLocale))}return A?o.default.cloneElement(oe,ve):o.default.createElement("a",{...O,...ve},k)});(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)})(bo,bo.exports);var qm=bo.exports,Hm=qm;const Me=hr(Hm),Il=({className:e,children:t,hasPriority:r=!1,showVideo:o=!1,...s})=>{const{element:a,index:i,item:{image:c,slug:l,video:u},sendSelectItemEvent:m,order:g,CONSTANTS:d}=He(),f=U.getFirstImages({images:c,label:{first:d.MAIN_IMAGE,second:d.SECOND_IMAGE}});return n.jsxs("div",{...s,className:p.helpers.classNameConcat(Ie["product-card--image"],e),ref:a,style:{aspectRatio:d.PRODUCT_CARD_IMAGE_ASPECT_RATIO},children:[n.jsx(Me,{href:`/${l}/p`,onClick:m,onMouseUp:h=>{h.button===1&&m(),d.PLP_INFINITE_SCROLL&&sessionStorage.setItem(d.PLP_GRID_SCROLL_BACK.order,String(g))},children:n.jsx("div",{className:Ie["product-card--image--container"],children:Array.isArray(f)&&f.map(({url:h,alternateName:_},y)=>x.createElement(ze.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:h}))})}),d.PLP_SHOW_VIDEO_ON_PRODUCT_CARD&&o&&u&&n.jsx(be.Video,{url:u,poster:f[0].url}),t]})};Il.displayName="ProductCard.Media.Media";const Nl=({className:e,callback:t,children:r,...o})=>{const{isMobile:s,item:a,CONSTANTS:{PRODUCT_CARD_TEXTS:i}}=He(),{availability:{status:c}}=a;return c?null:n.jsxs("div",{...o,className:p.helpers.classNameConcat(Ie["product-card--outstock"],e),children:[n.jsx(p.Tag,{size:"small",variant:"secondary",title:i.disabled,children:i.disabled}),n.jsx(p.Button,{className:p.helpers.classNameConcat(e,"buy-button"),size:s?"medium":"large",variant:"quaternary",onClick:()=>{typeof t=="function"&&t(a)},children:i.notify})]})};Nl.displayName="ProductCard.OutStock";const Tl=({children:e,className:t="",index:r,isMobile:o=!1,item:s,size:a,order:i,outStock:c,shelfTitle:l,CONSTANTS:u,WishListToggle:m,...g})=>n.jsx(pm,{item:s,isMobile:o,outStock:c,order:i,size:a,index:r,shelfTitle:l,CONSTANTS:u,WishListToggle:m,children:n.jsx("div",{...g,className:p.helpers.classNameConcat(Ie["product-card--wrapper"],t),"data-size":a,children:e})});Tl.displayName="ProductCard.Root";const kl=({disabled:e,label:t,size:r,value:o,onClick:s,...a})=>n.jsxs(p.ToggleSize.Wrapper,{...a,disabled:!1,outOfStock:e,size:r,onClick:s,children:[n.jsx(p.ToggleSize.DisabledAdornment,{}),n.jsx(p.ToggleSize.Text,{children:t})]});kl.displayName="ProductCard.SizeSelector.Item";const Ol=({active:e=!1,callback:t,selectedSku:r=null,item:o,setNotify:s})=>{const{item:a,isMobile:i,setSelectedSku:c,eventDataRef:l}=He();o.productId=a.id;const u=U.disableSKU(o),m=U.getSKUName(o,"tamanho");!u&&!l.current.availableSkus.includes(m)&&l.current.availableSkus.push(m);const g=x.useCallback(f=>{const h=r===f?null:f;typeof c=="function"&&c(h),typeof t=="function"&&t(h)},[t,c,r]),d=x.useCallback(()=>{if(u&&typeof s=="function"){s(a,o);return}g(o)},[o,s,g,u,a]);return n.jsx(kl,{active:e,disabled:u,label:m,onClick:()=>d(),size:i?"x-small":"small",value:o})};Ol.displayName="ProductCard.SizeSelector.SkuItem";const Ml=({callback:e,className:t="",children:r,setNotify:o,...s})=>{const{isMobile:a,item:{isVariantOf:{hasVariant:i}},selectedSku:c}=He();return n.jsxs("div",{...s,className:p.helpers.classNameConcat(Ie["product-card--selectors--size"],t),"data-mobile":a,children:[n.jsx("div",{className:Ie["product-card--selectors--size--skus"],children:Array.isArray(i)&&i.map((l,u)=>n.jsx(Ol,{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})]})};Ml.displayName="ProductCard.SizeSelector";const jo=({alt:e="",callback:t,more:r,total:o=4,src:s,url:a,...i})=>n.jsxs(p.ToggleStyle.Wrapper,{...i,onClick:()=>{typeof t=="function"&&t(a)},children:[n.jsx(p.ToggleStyle.DisabledAdornment,{}),n.jsxs(p.ToggleStyle.Texture,{children:[s&&n.jsx(ze.Image,{alt:e??s,src:s,height:34,width:34}),r&&n.jsx(p.TextStructure.DivWrapper,{className:Ie["product-card--selectors--style--more"],children:n.jsxs("p",{children:["+ ",o]})})]})]}),Um=({children:e,callback:t,data:r,total:o=4,size:s,...a})=>{const{index:i}=He(),{triggerSelectItemEventRef:c}=ue();return n.jsxs("div",{...a,children:[e,Array.isArray(r)&&r.slice(0,o).map((l,u)=>n.jsx(jo,{callback:m=>{c.current.trigger=!0,c.current.index=i,typeof t=="function"&&t(m)},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(jo,{size:s,total:r.length-o,more:!0})]})},Ll=({callback:e,className:t,data:r,images:o=[],findTexture:s,...a})=>{const{CONSTANTS:i}=He(),c=s||i.TEXTURE_IMAGE,l=o==null?void 0:o.find(u=>c.includes(u.alternateName));return n.jsx(Um,{...a,callback:e,className:p.helpers.classNameConcat(Ie["product-card--selectors--style"],t),data:r,size:"x-small",children:l&&n.jsx(jo,{active:!0,size:"x-small",src:l.url})})};Ll.displayName="ProductCard.StyleSelector";const Dl=({className:e,hasDecimal:t,...r})=>{const{isMobile:o,item:{offers:{lowPrice:s,highPrice:a},installments:{count:i,value:c}},eventDataRef:l}=He();l.current.priceInfo={price:s,listPrice:a};const u=U.formatPriceToCurrency(a,t),m=U.formatPriceToCurrency(s,t),g=U.formatPriceToCurrency(c??0),d=o?"horizontal":"stacked";return n.jsx("div",{...r,className:p.helpers.classNameConcat(Ie["product-card--price"],e),"data-mobile":o,children:n.jsx(p.ProductInfo.Root,{size:"small",layout:d,children:n.jsxs(p.ProductInfo.Wrapper,{size:"small",layout:d,children:[n.jsx(p.ProductInfo.ValuesWrapper,{children:m!==u?n.jsxs(n.Fragment,{children:[n.jsx(p.ProductInfo.Price,{label:"originalPrice",value:u,size:"small"}),n.jsx(p.ProductInfo.Price,{label:"discountPrice",value:m,size:"small"})]}):n.jsx(p.ProductInfo.Price,{label:"defaultPrice",value:m,size:"small"})}),i&&i>1&&c?n.jsx(p.ProductInfo.Price,{label:"installment",value:`${i}x ${g}`,size:"small"}):null]})})})};Dl.displayName="ProductCard.Price";const $l=({tag:e,className:t})=>{const{item:{name:r}}=He();return n.jsxs("div",{className:p.helpers.classNameConcat(Ie["product-card--title"],t),children:[n.jsx("div",{className:Ie["product-card--title--tag"],children:e?n.jsx(p.Tag,{size:"small",title:e.value,variant:"quaternary",adornment:{start:e.enableIcon&&e.icon?n.jsx(p.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(p.TextStructure.Root,{children:n.jsx(p.TextStructure.DivWrapper,{children:n.jsx("h3",{children:r})})})})]})};$l.displayName="ProductCard.Title";const zl=({className:e,url:t,poster:r,...o})=>{const{element:s}=He();return x.useEffect(()=>{if(!(s!=null&&s.current))return;const a=s.current,i=a.querySelector("video");if(i){const c=new IntersectionObserver(m=>{m.forEach(g=>{U.setVideoPlay(g.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:p.helpers.classNameConcat(Ie["product-card--video"],e),children:t&&n.jsx(ze.Video,{autoPlay:!1,muted:!0,loop:!0,preload:"none",playsInline:!0,poster:r})})};zl.displayName="ProductCard.Media.Video";const Bl=({children:e,className:t,type:r,...o})=>n.jsx("div",{...o,className:p.helpers.classNameConcat(Ie[`product-card--${r}`],t),children:e});Bl.displayName="ProductCard.Wrapper";const be={Actions:yl,BuyButton:_l,Header:vl,Media:Il,Root:Tl,OutStock:Nl,Price:Dl,SizeSelector:Ml,StyleSelector:Ll,Title:$l,Video:zl,Wrapper:Bl},Wm="_carousel_245ib_1",Vm="_shelf__container_245ib_14",Gm="_shelf_without_carousel_245ib_34",wt={carousel:Wm,"custom-controllers":"_custom-controllers_245ib_5",shelf__container:Vm,"controllers-arrows-bullets":"_controllers-arrows-bullets_245ib_23",shelf_without_carousel:Gm},ni=({title:e})=>n.jsx("div",{className:wt.shelf__container,children:e&&n.jsx(p.TextStructure.Root,{children:n.jsxs(p.TextStructure.DivWrapper,{children:[n.jsx("h2",{className:p.helpers.classNameConcat("typography-style-body-md",U.responsive["responsive-mobile-flex"]),children:e}),n.jsx("h2",{className:p.helpers.classNameConcat("typography-style-heading-md",U.responsive["responsive-desktop-flex"]),children:e})]})})}),Km=({children:e,ICONS:t,itemsPerPage:r,title:o})=>{const{isMobile:s}=ge(),a=r[s?"mobile":"desktop"],{initialize:i,controller:c,itemsStyles:l,pagination:u}=p.Carousel.useCarousel({itemsPerPage:a,gap:10,loop:!0,direction:"row"}),m=x.Children.toArray(e).length;return s||m>=4?n.jsxs(p.Carousel.Root,{innerRef:d=>{i(d)},className:wt.carousel,children:[n.jsxs("div",{className:wt["custom-controllers"],children:[o&&n.jsx(ni,{title:o}),a<m&&n.jsxs(p.Carousel.Controller,{className:wt["controllers-arrows-bullets"],children:[n.jsxs(p.Carousel.Arrows,{children:[n.jsx(p.Button,{variant:"tertiary",onClick:()=>c==null?void 0:c.prevPage(),adornment:{start:n.jsx(p.Icon,{name:t.arrow_left})}}),n.jsx(p.Button,{variant:"tertiary",onClick:()=>c==null?void 0:c.nextPage(),adornment:{start:n.jsx(p.Icon,{name:t.arrow_right})}})]}),!s&&a>2&&n.jsx(p.Carousel.Bullets,{page:u.currentPage,total:u.totalPages,onBulletClick:d=>c==null?void 0:c.navigateTo(d)})]})]}),n.jsx(p.Carousel.Body,{children:x.Children.map(e,(d,f)=>n.jsx(p.Carousel.Item,{style:{...l,overflow:"hidden"},children:d},`${o}_${f}`))})]}):n.jsxs(n.Fragment,{children:[o&&n.jsx(ni,{title:o}),n.jsx("div",{className:wt.shelf_without_carousel,children:e})]})},Xm={Shelf:Km},Qm=({CONSTANTS:e,inView:t,products:r,innerRef:o,WishListToggle:s})=>{const a=x.useMemo(()=>dm(r),[r]),{isMobile:i}=ge(),{addItemsToCart:c}=Ee(),{sendDataLayerEvent:l}=ue(),{getAvailableProductTag:u}=At(),[m,g]=x.useState({totalPrice:0,products:{}}),d=()=>{const h=Object.values(m.products);c(h),l({functionKey:"skuEvents",data:{event:"add_to_cart",commonData:{products:h.map(_=>{const y=a.find(b=>b.node.id===_.productId);return y==null?void 0:y.node})},supportData:{selectedSkus:h,price:m.totalPrice}}})},f=({selectedProduct:h,productId:_})=>{const y=fm({selectedProduct:h,productId:_,prevState:m,mainSellerId:e.StoreConfig_MainSellerId});g(y)};return x.useEffect(()=>{if(!t||a.length===0)return;const h=e.BUY_PACKAGE.header.title;l({functionKey:"productListEvent",data:{event:"view_item_list",commonData:{products:a},customData:{item_list_name:h},outsideEcommerceData:{item_list_name:h}}})},[t]),n.jsxs("div",{className:Ze.container,ref:o,children:[n.jsx("div",{className:Ze["carousel-container"],style:{width:a.length<=3?"max-content":"75%"},children:n.jsx(Xm.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:h},_)=>{var S,v,j;const y=u(h.cluster.highlights),{availability:{status:b}}=h;return b?n.jsxs(be.Root,{item:{...h,image:Qo.helpers.product.getFirstImages({images:h.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(be.Header,{product:h,tag:y.commercial}),n.jsx(be.Media,{}),n.jsxs(be.Wrapper,{type:"body",children:[n.jsx(be.Title,{tag:{value:(S=y.institucional)==null?void 0:S.value,enableIcon:(v=y.institucional)==null?void 0:v.enableIcon,icon:(j=y.institucional)==null?void 0:j.icon}}),n.jsx(be.Actions,{children:n.jsx(be.SizeSelector,{callback:w=>f({selectedProduct:w,productId:h.id})})})]})]},h.id):null})})}),n.jsx("div",{className:Ze["add-cart-container"],children:n.jsx(um,{handleAddAllToCart:d,selectedProducts:m,CONSTANTS:{BUY_BUTTON_LABELS:e.BUY_BUTTON_LABELS,BUY_PACKAGE:e.BUY_PACKAGE,FREIGHT_CALCULATION:e.FREIGHT_CALCULATION}})})]})},Jo={"btn-login":"_btn-login_yas63_12","btn-header":"_btn-header_yas63_22","header-animation":"_header-animation_yas63_35"},es=({id:e})=>{const{setIsOpen:t,cartStore:{items:r}}=Ee(),{handleSelectContent:o}=ue(),{CONSTANTS:s}=je(),a=r.reduce((i,c)=>i+(c.quantity??0),0);return n.jsx(p.Header.SupportItem,{onClick:()=>{t(!0),o({content:"header:minicart"})},id:e,children:n.jsxs(p.Badge.AutoPositioner,{children:[n.jsx(p.Badge.Count,{count:a,size:"medium",variant:"primary",style:{backgroundColor:"black",display:a>0?"flex":"none"}}),n.jsx(p.Icon,{name:s.header.ICONS.bag,size:"medium"})]})})};es.displayName="Header.Bag";const Lt=({children:e,href:t,...r})=>t&&t!=="#"?n.jsx(Me,{href:t.startsWith("/")?t:`/${t}`,...r,children:e}):e,Fl=()=>{const{headerData:e}=je(),{handleSelectContent:t}=ue(),{reset:r,updateValue:o}=Je(),s=a=>{a?o(a):r()};return n.jsx(p.Header.Categories,{children:Array.isArray(e.categories)&&e.categories.map((a,i)=>n.jsx(Lt,{href:a.link,onMouseEnter:()=>s(a.submenuId),onFocus:()=>s(a.submenuId),children:n.jsx(p.Header.CategoryItem,{className:Jo["btn-header"],value:a.submenuId??null,adornment:{start:n.jsx(p.Icon,{name:a.iconStart}),end:n.jsx(p.Icon,{name:a.iconEnd})},style:{textWrap:"nowrap",gap:"0"},onClick:()=>{t({content:`header:${a.label}`})},children:a.label})},`category-${a.label}-${i}`))})};Fl.displayName="Header.Categories";function Ym(){const{handleSelectContent:e}=ue(),{CONSTANTS:t}=je(),{setValue:r}=Bo();return n.jsx(p.Header.SupportItem,{onClick:()=>{r(!0),e({content:"header:search"})},children:n.jsx(p.Icon,{name:t.header.ICONS.search,size:"medium"})})}const Zm={"menu-subcategories-container":"_menu-subcategories-container_a93cr_1"},Jm={"observer-wrapper":"_observer-wrapper_r43gk_1"},_r=({children:e,eventData:t,observerOptions:r,callBackWhenVisible:o,stopOnIntersection:s=!0,className:a,...i})=>{const c=x.useRef(null),l=Mo(c,s,r),{sendDataLayerEvent:u}=ue();return x.useEffect(()=>{l&&(typeof o=="function"&&o(),t&&u({...t}))},[l]),n.jsx("div",{...i,ref:c,className:p.helpers.classNameConcat(Jm["observer-wrapper"],a),children:e})},ts=({thumbnails:e,category:t,isMobile:r=!0,callBack:o})=>{const{handleSelectPromotionEvent:s}=ue(),a=50/e.length;return n.jsx("div",{className:Zm["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(_r,{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(ze.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}`)})})};ts.displayName="Menu.Thumbnail";const Co={"menu-desktop":"_menu-desktop_1b799_1","menu-categories":"_menu-categories_1b799_12"},eh="_link_w24h0_1",th="_wrapper_w24h0_98",rh="_text_w24h0_106",Yr={link:eh,wrapper:th,text:rh},Ke=({children:e,adornments:t,className:r,disableUnderline:o,href:s,mode:a,size:i,title:c,onClick:l,disablePadding:u,...m})=>{const g=p.helpers.ValidateProp({fieldTypes:pt.SizesSmallExtended,property:i,fallback:"medium"}),d=p.helpers.ValidateProp({fieldTypes:pt.Mode,property:a,fallback:"default"});return n.jsx(Me,{...m,className:p.helpers.classNameConcat(Yr.link,r),href:s&&s.length>0?s:"#","data-size":g,"data-variant":d,title:c||"NextLink","data-disable-underline":o??!1,"data-disable-padding":u??!0,children:n.jsxs("div",{className:Yr.wrapper,onClick:l,children:[t==null?void 0:t.start,n.jsx("p",{className:Yr.text,"data-size":g,children:e}),t==null?void 0:t.end]})})},ql=({children:e,dividerOnRight:t=!0,subMenu:r,...o})=>{var l;const{router:s}=xe(),{reset:a}=Je(),{handleSelectContent:i}=ue(),{CONSTANTS:c}=je();return n.jsxs("div",{...o,className:Co["menu-categories"],children:[(l=r==null?void 0:r.subCategories)==null?void 0:l.map((u,m)=>{var f,h,_;const g=u.listCollapseDesk&&!((f=u.see_all)!=null&&f.link)?{expandAfterRowsQty:u.rowsToShowDesk}:{},d=u.listCollapseDesk&&!((h=u.see_all)!=null&&h.link)?{expansivesAdornments:{open:c.header.ICONS.add,close:c.header.ICONS.minus},expansivesLabels:{open:c.header.COMPONENT_LIST.listExpandLabel,close:c.header.COMPONENT_LIST.listCollapseLabel},iconSize:"x-small"}:{adornment:{end:n.jsx(p.Icon,{name:c.header.ICONS.arrow_right,size:"small"})}};return n.jsxs(p.ComponentList.Structure,{children:[n.jsx(Lt,{href:u.linkLabel,title:u.label,onClick:()=>{u.linkLabel&&(a(),i({content:`menu:${u.label??""}:${r.label??""}`}))},children:n.jsx(p.TextStructure.Root,{children:n.jsx(p.TextStructure.DivWrapper,{children:n.jsx("h2",{children:u.label})})})}),n.jsx(p.ComponentList.List,{columns:1,...g,className:Co["submenu-categories"],children:u.items.map((y,b)=>n.jsx(p.ComponentList.ListItem,{id:`list-item-${y.label}-${b}`,children:n.jsx(Ke,{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(p.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}-${m}`)}),t&&n.jsx(p.Utils.Divider,{size:"small",direction:"vertical"})]})};ql.displayName="Menu.Categories";const Hl=({children:e,dividerOnBottom:t=!0,...r})=>{const{CONSTANTS:o}=je();return n.jsxs(n.Fragment,{children:[n.jsx("div",{...r,className:Co["menu-desktop"],style:{...r.style,justifyContent:o.header.ALIGNMENT_MENU},children:e}),t&&n.jsx(p.Utils.Divider,{size:"small"})]})};Hl.displayName="Menu.MenuRoot";const Zr={Root:Hl,Categories:ql,Thumbnail:ts},Ul=()=>{const{headerData:e,CONSTANTS:t}=je(),r=pr(),{reset:o}=Je();return n.jsx(p.Header.SubMenu,{children:Array.isArray(e.subMenus)&&e.subMenus.map((s,a)=>{const{thumbnails:i,label:c,id:l}=s,u=l===r,m=i==null?void 0:i.some(g=>!!g.srcDesk);return n.jsxs(Zr.Root,{id:l,style:u?{display:"flex",zIndex:t.header.Z_INDEX_WAR.menu_desktop}:{display:"none"},dividerOnBottom:u,children:[n.jsx(Zr.Categories,{dividerOnRight:!!m,subMenu:s}),Array.isArray(i)&&n.jsx(Zr.Thumbnail,{thumbnails:i,isMobile:!1,category:c,callBack:o})]},`submenu-${l}-${a}`)})})};Ul.displayName="Header.SubMenu";const Wl=()=>{const{handleSelectContent:e}=ue(),{CONSTANTS:t}=je();return n.jsx(Me,{href:"/favoritos",children:n.jsx(p.Header.SupportItem,{onClick:()=>e({content:"header:wishlist"}),children:n.jsx(p.Icon,{name:t.header.ICONS.favorite_false,size:"medium"})})})};Wl.displayName="Header.WishList";const Vl=()=>{const{CONSTANTS:e,userMenuDesktopRef:t}=je(),{handleSelectContent:r}=ue(),{reset:o}=Je(),{setValue:s}=Tt();return n.jsxs(n.Fragment,{children:[n.jsxs(p.Header.Wrapper,{children:[n.jsx(p.Header.Logo,{style:{width:"100%"},children:n.jsx(Me,{href:"/",onMouseEnter:o,children:n.jsx(p.Icon,{name:e.header.ICONS.logo,size:"x-large",onClick:()=>{r({content:"header:logo"})}})})}),n.jsx(Fl,{}),n.jsxs(p.Header.Support,{onMouseEnter:o,style:{justifyContent:"flex-end"},children:[n.jsx(Ym,{}),n.jsx(p.Header.SupportItem,{onClick:()=>{s(!0),r({content:"header:user_menu"})},className:Jo["btn-login"],innerRef:t,children:n.jsx(p.Icon,{name:e.header.ICONS.person,size:"medium"})}),n.jsx(Wl,{}),n.jsx(es,{id:"cart-button"})]})]}),n.jsx(Ul,{})]})};Vl.displayName="Header.HeaderDesktopWrapper";const nh="_divider_1lexj_199",Re={"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:nh,"menu-navigationbar-item":"_menu-navigationbar-item_1lexj_206","menu-categories-textstructure-modifier":"_menu-categories-textstructure-modifier_1lexj_210"},Gl=({children:e,mobileBannerAlt:t,mobileBannerSrc:r,onClick:o,textColor:s,...a})=>n.jsx("button",{onClick:o,className:Re["menu-categories-btn"],children:r?n.jsxs(p.Banner.Container,{...a,className:Re["menu-body-banner-container-modifier"],children:[n.jsx(p.Banner.ImageWrapper,{style:{width:"100%"},children:n.jsx(ze.Image,{src:r,alt:t??r,className:Re["menu-categories__banner"],width:343,height:128,unoptimized:!0})}),n.jsx(p.Banner.Slot,{verticalAlignment:"center",horizontalAlignment:"start",children:n.jsx(p.TextStructure.Root,{children:n.jsx(p.TextStructure.DivWrapper,{className:Re["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})});Gl.displayName="Menu.MenuCategories";const Kl=({children:e,link:t})=>{const{reset:r}=at();return t?n.jsx(Me,{href:t??"#",onClick:r,children:e}):e};Kl.displayName="Menu.MenuCategoriesWrapper";const Xl=({subcategory:e,submenuLabel:t})=>{var l,u,m;const{router:r}=xe(),{reset:o}=at(),{handleSelectContent:s}=ue(),{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(p.Icon,{name:a.header.ICONS.arrow_right,size:"small"})}};return n.jsxs(p.ComponentList.Structure,{className:Re["menu-submenu--component-list-modifier"],children:[n.jsx(Lt,{href:e.linkLabel,title:e.label,onClick:()=>{o(),s({content:`menu:${e.label??""}:${t}`})},children:n.jsx(p.TextStructure.Root,{children:n.jsx(p.TextStructure.DivWrapper,{children:n.jsx("h2",{className:"typography-style-body-sm-strong",children:e.label})})})}),n.jsx(p.ComponentList.List,{columns:1,...i,className:Re["submenu-categories"],children:e.items.map((g,d)=>n.jsx(p.ComponentList.ListItem,{id:`list-item-${g.label}-${d}`,divider:!0,children:n.jsx(Ke,{href:g.link??"#",size:"x-small",title:g.label??"",disableUnderline:!0,onClick:()=>{o(),s({content:`menu:${e.label??""}:${g.label}:${t}`})},children:g.label})},`list-item-${g.label}-${d}`))}),((m=e.see_all)==null?void 0:m.link)&&n.jsx(p.ComponentList.Support,{...c,size:"small",onClick:()=>{var g;o(),s({content:`menu:${e.label??""}:${t}`}),(g=e.see_all)!=null&&g.link&&r.push(e.see_all.link)},children:e.see_all.link&&e.see_all.label})]})};Xl.displayName="Menu.SubMenuSubCategory";const Ql=({submenu:e})=>{var a;const t=pr(),{handleCloseSubMenu:r}=Ot(),{reset:o}=Je(),{CONSTANTS:s}=je();return n.jsxs("div",{className:Re["menu-submenu--item"],style:{display:t===e.id?"flex":"none"},children:[n.jsx(p.TextStructure.Root,{adornment:{start:n.jsx(p.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(p.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:Re["menu-submenu--thumbnails"],children:Array.isArray(e.thumbnails)&&n.jsx(ts,{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(Xl,{subcategory:i,submenuLabel:e.label},`list-${i.label}-${c}`))]})};Ql.displayName="Menu.SubMenuItem";const Yl=()=>{const{headerData:e}=je(),t=pr(),{reset:r}=Je(),{bodyRef:o}=Ot();return n.jsx(p.Modal.RootWithoutPortal,{isOpen:!!t,setIsOpen:r,parent:o.current,variant:"sideLeft",style:{position:"absolute",width:"100%"},className:Re["menu-submenu-modal-modifiier"],children:n.jsx("div",{className:Re["menu-submenu"],children:e.subMenus.map((s,a)=>n.jsx(Ql,{submenu:s},`submenu-${s.id}-${a}`))})})};Yl.displayName="Menu.SubMenu";const Zl=({className:e,...t})=>{const{headerData:r}=je(),{setValue:o}=Je(),{bodyRef:s}=Ot(),{handleSelectContent:a}=ue();return n.jsxs("div",{...t,ref:s,id:"menu-body",className:Re["menu-body"],children:[n.jsx("div",{className:Re["menu-categories-container"],children:r.categories.map((i,c)=>{const l=i.submenuId?{}:{"data-close":!0};return n.jsx(Kl,{link:i.submenuId?null:i.link,children:n.jsx(Gl,{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(Yl,{})]})};Zl.displayName="Menu.MenuBody";const Jl=({title:e,subtitle:t})=>{const{CONSTANTS:r}=je();return n.jsxs("div",{className:Re["menu-header-wrapper"],style:t?{alignItems:"start"}:{alignItems:"center"},children:[(e||t)&&n.jsx(p.TextStructure.Root,{children:n.jsxs(p.TextStructure.DivWrapper,{children:[e&&n.jsx("h2",{className:"typography-style-body-md",children:e}),t&&n.jsx("h3",{children:t})]})}),n.jsx(p.Button,{adornment:{end:n.jsx(p.Icon,{name:r.header.ICONS.close})},variant:"tertiary",className:Re["menu-close"],"data-close":!0})]})};Jl.displayName="Menu.MenuHeaderWrapper";const eu=({navigationLinks:e})=>{const{reset:t}=at(),{handleSelectContent:r}=ue();return e?n.jsx("nav",{className:Re["menu-header-navlinks"],children:e.map((o,s)=>n.jsx(Ke,{href:o.link??"#",adornments:{start:o.iconStart&&n.jsx(p.Icon,{name:o.iconStart}),end:o.iconEnd&&n.jsx(p.Icon,{name:o.iconEnd})},onClick:()=>{t(),r({content:`menu:navigationlinks-${o.label}`})},children:o.label},s))}):null};eu.displayName="Menu.MenuHeaderNavLinks";const tu=()=>{const{headerData:e}=je();return n.jsxs("div",{className:Re["menu-header-container"],children:[n.jsx(Jl,{title:e.title,subtitle:e.subtitle}),n.jsx(eu,{navigationLinks:e.navigationLinks})]})};tu.displayName="Menu.MenuHeaderContainer";const ru=({children:e})=>{const{documentBodyRef:t}=Ot(),{CONSTANTS:r}=je(),o=zo(),{setValue:s}=at();return n.jsx(p.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:Re["modal-modifier"],children:n.jsx("div",{className:Re["menu-mobile"],children:e})})};ru.displayName="Menu.MenuRoot";const nu=({children:e,...t})=>n.jsxs(n.Fragment,{children:[n.jsx(p.Button,{...t,className:Re["menu-navigationbar-item"],children:e}),n.jsx(p.Utils.Divider,{direction:"vertical",size:"small",className:Re.divider})]});nu.displayName="Menu.NavigationBarItem";const ou=()=>{const{setIsOpen:e}=Ee(),{reset:t}=at(),{setValue:r}=Tt(),{handleSelectContent:o}=ue(),{CONSTANTS:s}=je(),{router:a}=xe();return n.jsx(p.Card,{id:"menu-navigationbar",shadow:!0,className:Re["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(nu,{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}))})};ou.displayName="Menu.NavigationBar";const tr={Root:ru,NavigationBar:ou,Header:tu,Body:Zl},su=()=>{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}=ue(),{setValue:c}=Bo(),{setValue:l}=at(),{setValue:u}=Tt();return n.jsxs(n.Fragment,{children:[n.jsxs(p.Header.Wrapper,{children:[a==="left"&&n.jsx(p.Header.SupportItem,{onClick:()=>l(!0),innerRef:e,children:n.jsx(p.Icon,{name:s.menu,size:"medium"})}),n.jsx(p.Header.Logo,{style:{width:"100%",justifyContent:"center"},children:n.jsx(Me,{href:"/",children:n.jsx(p.Icon,{name:s.logo,size:"x-large",onClick:()=>{i({content:"header:logo"})}})})}),n.jsxs(p.Header.Support,{children:[n.jsx(p.Header.SupportItem,{onClick:()=>{c(!0),i({content:"header:search"})},children:n.jsx(p.Icon,{name:s.search,size:"medium"})}),n.jsx(p.Header.SupportItem,{onClick:()=>{u(!0),i({content:"header:user_menu"})},innerRef:r,children:n.jsx(p.Icon,{name:s.person,size:"medium"})}),n.jsx(es,{}),a==="right"&&n.jsx(p.Header.SupportItem,{onClick:()=>l(!0),innerRef:e,children:n.jsx(p.Icon,{name:s.menu,size:"medium"})})]})]}),n.jsx(Ec,{children:n.jsxs(tr.Root,{children:[n.jsx(tr.Header,{}),n.jsx(tr.Body,{}),o?n.jsx(tr.NavigationBar,{}):n.jsx(n.Fragment,{})]})})]})};su.displayName="Header.HeaderMobileWrapper";const oh="_root_wvekm_126",Fe={"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:oh},iu=({className:e,children:t,...r})=>n.jsx("div",{...r,className:p.helpers.classNameConcat(Fe["user-menu--content"],e),children:t});iu.displayName="UserMenu.Content";var au=(e=>(e.Account="account",e))(au||{});const cu=({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(p.Credits.Account,{...a,className:p.helpers.classNameConcat(Fe["user-menu--credits"],e),icon:"wallet",showIcon:!0,cashBackValue:i,creditsValue:c,linkMore:o,totalValue:l,type:au.Account})};cu.displayName="UserMenu.Credits";const lu=({className:e,children:t,description:r,text:o,...s})=>{const{isMobile:a}=ge();return n.jsx("div",{...s,className:p.helpers.classNameConcat(Fe["user-menu--login"],e),"data-mobile":a,children:n.jsxs("div",{className:Fe["user-menu--login--content"],children:[n.jsx(p.TextStructure.Root,{children:n.jsxs(p.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]})})};lu.displayName="UserMenu.Login";const uu=({className:e,isLogged:t,onLogoutClick:r,ICONS:o,storeConfig:s})=>{const{isMobile:a}=ge(),i=dp({ICONS:o,storeConfig:s}).filter(c=>c.deviceShown==="both"||c.deviceShown===(a?"mobile":"desktop"));return n.jsxs("ul",{className:p.helpers.classNameConcat(Fe["user-menu--menu"],e),children:[Array.isArray(i)&&i.map((c,l)=>n.jsx("li",{children:n.jsx(Ke,{href:c.href??"#",size:"small",disableUnderline:!0,adornments:{start:n.jsx(p.Icon,{name:c.icon??"delete"})},children:c.label})},l)),t?n.jsx("li",{children:n.jsx(Ke,{href:`${s.secureSubdomain}/api/vtexid/pub/logout?scope=mariafilo&returnUrl=${encodeURIComponent(`${s.storeUrl}`)}`,size:"small",disableUnderline:!0,onClick:r,adornments:{start:n.jsx(p.Icon,{name:up(o)})},children:lp})}):n.jsx(n.Fragment,{})]})};uu.displayName="UserMenu.Menu";const du=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}},sh=e=>{if(!e||typeof window>"u")return 0;const t=window.getComputedStyle(e);return parseInt(t.padding,10)},ih=(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?sh(e==null?void 0:e.parentElement):0;return{left:s+i/2-(c.width+l*2),top:a+o+r}},fu=x.createContext({}),ah=({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),[m,g]=x.useState({left:0,top:0}),{ref:d}=du(()=>{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:h}=ih(d.current,a,r??0);g({left:f,top:h}),u(!1)}},[r,o,a,d]),n.jsx(fu.Provider,{value:x.useMemo(()=>({...i,...m,contentRef:d,isLeaving:l,isOpen:o,setIsOpen:s,setIsLeaving:u,target:a}),[i,m,d,l,o,s,u,a]),children:e})},pu=()=>{const e=x.useContext(fu);if(e===void 0)throw new Error("useUserMenuContext must be used within a UserMenuProvider");return e},mu=({children:e,isMobile:t=!1,Z_INDEX_WAR:r})=>{const{isOpen:o,setIsOpen:s}=pu();return n.jsxs(p.Modal.Root,{"data-user":"user-menu--modal",isMobile:t??!1,isOpen:o,setIsOpen:s,variant:"sideBottom",className:Fe["modal-root-modifier"],style:{zIndex:r.user_menu_mobile},children:[n.jsx(p.Modal.Header,{navigation:"top",className:Fe["modal-header-modifier"],children:n.jsx(p.Modal.Controls,{navigation:"top",isMobile:!0,className:Fe["modal-controls-modifier"]})}),n.jsx(p.Modal.Body,{children:e})]})};mu.displayName="UserMenu.Modal";const hu=({children:e,component:t,Z_INDEX_WAR:r,isMobile:o,...s})=>n.jsx(ah,{...s,className:Fe.root,children:o?n.jsxs(n.Fragment,{children:[n.jsx(tt.Modal,{Z_INDEX_WAR:r,children:t}),e]}):n.jsx(tt.Tooltip,{component:t,style:{width:304,zIndex:r.user_menu},Z_INDEX_WAR:r,children:e})});hu.displayName="UserMenu.Root";const gu=({children:e,component:t,Z_INDEX_WAR:r,...o})=>{const{contentRef:s,left:a,isLeaving:i,isOpen:c,top:l}=pu();return n.jsx(p.Tooltip.Root,{arrow:"top-right",component:n.jsx("div",{...o,ref:s,children:t}),className:p.helpers.classNameConcat(Fe["user-menu--tooltip"],Fe["tooltip-modifier"]),isLeaving:i,isOpen:c,left:a,size:"medium",position:"top",top:l,style:{zIndex:r.user_menu},children:n.jsx("div",{className:Fe["user-menu--tooltip"],children:e})})};gu.displayName="UserMenu.Tooltip";const tt={Credits:cu,Content:iu,Login:lu,Menu:uu,Modal:mu,Root:hu,Tooltip:gu},rs=()=>{var _,y,b;const e=Mt(),{isMobile:t}=ge(),{userMenuMobileRef:r,userMenuDesktopRef:o,CONSTANTS:{header:s},storeConfig:a}=je(),{ICONS:i,Z_INDEX_WAR:c,MENU_INFO:l}=s,u=hc(),{setValue:m}=Tt(),g=()=>{window.location.href=`${a.secureSubdomain}/api/io/login?returnUrl=${encodeURIComponent(`${a.storeUrl}`)}`},d=!!((_=e.user)!=null&&_.userId),{cashback:f,credits:h}=x.useMemo(()=>{var S,v;return{credits:((S=e==null?void 0:e.getCurrentCredits())==null?void 0:S.credits)??0,cashback:((v=e==null?void 0:e.getCurrentCredits())==null?void 0:v.cashback)??0}},[e]);return n.jsx(tt.Root,{component:n.jsxs(tt.Content,{children:[n.jsx(tt.Login,{description:pp(d),text:fp(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(p.Button,{size:"medium",variant:"quaternary",onClick:()=>g(),children:l.login.button_text})}),h+f&&d?n.jsx(tt.Credits,{credits:h,cashBack:f,link:`${a.secureSubdomain}/account#/meus-creditos`,total:h+f}):n.jsx(n.Fragment,{}),n.jsx(p.Utils.Divider,{}),n.jsx(tt.Menu,{isLogged:d,onLogoutClick:()=>e.logout(),ICONS:i,storeConfig:a})]}),target:t?r.current:o.current,isOpen:u,isMobile:t,setIsOpen:m,Z_INDEX_WAR:c})};rs.displayName="UserMenu";const ch=x.createContext({}),lh=({children:e})=>{const{sendDataLayerEvent:t}=ue(),{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;rt.post("/api/checkout/order-form/attachments/marketing-data",{orderFormId:l,marketingData:{...r==null?void 0:r.marketingData,marketingTags:nc(((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(ch.Provider,{value:{handleUpdateItemQuantityEvent:s},children:e})},uh="_fadeInOut_ottz1_1",dh="_fadeOut_ottz1_1",le={"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:uh,fadeOut:dh,"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"},yu=({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:le["mc--notify--item"],ref:a,onAnimationEnd:()=>c(e),children:n.jsxs(p.SnackBar.Structure,{size:"medium",children:[n.jsx(p.SnackBar.Content,{title:t}),n.jsxs(p.SnackBar.Support,{children:[typeof r=="function"&&n.jsx(p.Button,{onClick:()=>{r(),i()},size:"small",variant:"tertiary",children:"Desfazer"}),n.jsx(p.Button,{iconNameStart:s.close,iconSize:"small",onClick:()=>i(),variant:"tertiary"})]})]})},e)};yu.displayName="MiniCart.Notify.Item";const _u=({ICONS:e})=>{const t=Do(),{removeNotification:r}=$o(),o=t.length?[...t].sort((s,a)=>a.id-s.id):[];return n.jsx("div",{className:le["mc--notify"],children:n.jsx("div",{className:le["mc--notify--content"],children:Array.isArray(o)&&o.map(s=>n.jsx(yu,{item:s,removeNotification:r,ICONS:e},s.id))})})};_u.displayName="MiniCart.Notifications";const fh=({handleSendEvent:e,onHandleRemove:t,product:r,MINICART_CONFIG:o,...s})=>{const a=Ho(),{toggleProduct:i}=Uo(),{itemOffered:{isVariationOf:{productGroupID:c}},quantity:l}=r;return n.jsx(p.Button,{...s,adornment:{end:n.jsx(p.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})},vu=({handleSendEvent:e,product:t,ICONS:r,MINICART_CONFIG:o,...s})=>{const{addToCart:a,removeToCart:i}=Ee(),{bundleItems:c=[],id:l,uniqueId:u,seller:m,offerings:g,quantity:d}=t,f=(h,_,y)=>{i(l,h.title,()=>{typeof y=="function"&&y(),a({id:l,quantity:_,seller:m},{id:l,texture:h.texture},!0)})};return n.jsxs(n.Fragment,{children:[n.jsxs("div",{className:le["mc--card--actions--add-remove"],children:[o.has_wishlist_button&&n.jsx(fh,{...s,product:t,handleSendEvent:e,onHandleRemove:f,ICONS:r,MINICART_CONFIG:o}),n.jsx(p.Button,{...s,adornment:{end:n.jsx(p.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(ft.Gift,{uniqueId:u,bundleItems:c,offerings:g,ICONS:r,MINICART_CONFIG:o})]})};vu.displayName="MiniCart.Card.Actions";const xu=({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[g]=t;if(g){i(!0);const d=e.some(f=>f.id===g.id);c(r,String(g.id),d).then(()=>i(!1))}}},u=t[0],m=e.find(g=>g.id===u.id);return u&&"id"in u?n.jsx("div",{className:le["mc--card--actions--gift"],children:n.jsx(p.Checkbox,{adornment:n.jsx(p.Icon,{name:o.check}),checked:!!m,disabled:a,label:s.messages.giftPackage,onChange:l})}):null};xu.displayName="MiniCart.Card.Gift";const bu=({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:le["mc--card--product-link"],children:n.jsx(ze.Image,{alt:(e==null?void 0:e.image[0].alternateName)||"Produto",src:t||"",width:108,height:164})})};bu.displayName="MiniCart.Card.Media";const ju=({name:e,skuName:t,tagName:r,className:o})=>n.jsxs(n.Fragment,{children:[r&&n.jsx(p.Tag,{variant:"quaternary",title:r,style:{textTransform:"uppercase"},children:r}),n.jsx("p",{className:p.helpers.classNameConcat(le["mc--card--name"],o),children:U.getProductNameWithoutSku(e??"",t??"")})]});ju.displayName="MiniCart.Card.Name";const Cu=({total:e,totalList:t})=>n.jsx(p.ProductInfo.Root,{children:n.jsx(p.TextStructure.Root,{children:n.jsx(p.TextStructure.DivWrapper,{className:le["mc--card--price"],children:n.jsx(p.ProductInfo.Wrapper,{className:le["mc--card--price--details"],size:"small",layout:"horizontal",children:t&&e!==t?n.jsxs(n.Fragment,{children:[n.jsx(p.ProductInfo.Price,{label:"originalPrice",value:U.formatPriceToCurrency(t),size:"small"}),n.jsx(p.ProductInfo.Price,{label:"discountPrice",value:U.formatPriceToCurrency(e),size:"small"})]}):n.jsx(p.ProductInfo.Price,{label:"defaultPrice",value:U.formatPriceToCurrency(e),size:"small"})})})})});Cu.displayName="MiniCart.ProductPrice";const Su=({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 g;const m=(g=i==null?void 0:i.find(d=>d.id===c))==null?void 0:g.texture;if(m){s(m);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(h=>h.itemId===e.id);if(f){const h=f.images.find(_=>t.includes(_.imageLabel));if(h!=null&&h.imageUrl){s(h.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(p.ToggleStyle.Wrapper,{size:"small",style:r,children:n.jsx(p.ToggleStyle.Texture,{children:o?n.jsx(ze.Image,{alt:((u=e.itemOffered)==null?void 0:u.image[0].alternateName)??"Produto",src:o,width:164,height:164,style:r}):n.jsx(sl,{})})})})};Su.displayName="MiniCart.Card.Style";const wu=({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(p.Utils.Row,{alignItems:"center",children:[n.jsx(Su,{product:e,TEXTURE_IMAGE:r,TOGGLE_STYLE_MODIFIER:o}),n.jsx(p.Utils.Divider,{direction:"vertical",size:"small",style:{height:24}}),s&&n.jsx(p.ToggleSize.Wrapper,{size:"small",variation:"fill",className:le["mc-container-actions--toggle-size-modifier"],children:n.jsx(p.ToggleSize.Text,{children:s})})]})};wu.displayName="MiniCart.Card.Sku";const ft={Actions:vu,Gift:xu,Media:bu,Name:ju,Price:Cu,Sku:wu},ph=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}},Ru=({available:e=!0,index:t,product:r,ICONS:o,MINICART_CONFIG:s,NAME_SPLIT_SYMBOL:a,TEXTURE_IMAGE:i,TOGGLE_STYLE_MODIFIER:c})=>{var g,d;const{sendDataLayerEvent:l}=ue(),u=ph(r),m=(f,h)=>{const _={commonData:{...r,...u},customData:{index:t},event:f};if(h==="skuEvents"){const y={...r,...u};_.supportData={selectedSkus:[y]},_.commonData.products=[y]}l({functionKey:h,data:_})};return n.jsxs("div",{className:p.helpers.classNameConcat(le["mc--card"],e?"":le["mc--card--unavailable"]),children:[n.jsx(ft.Media,{itemOffered:r.itemOffered}),n.jsxs("div",{className:le["mc--card--content-info"],children:[n.jsx(ft.Name,{name:((g=r.itemOffered)==null?void 0:g.name)??"",skuName:(d=r.itemOffered)==null?void 0:d.skuName}),n.jsxs("div",{className:le["mc--card--details"],children:[n.jsx("div",{className:le["mc--card--actions"],children:e?n.jsx(ft.Price,{total:u.price,totalList:u.listPrice}):n.jsx(p.Tag,{variant:"secondary",size:"small",children:"Indisponível"})}),n.jsxs("div",{className:le["mc--card--actions--secondary"],children:[e&&n.jsx(ft.Sku,{product:r,NAME_SPLIT_SYMBOL:a,TEXTURE_IMAGE:i,TOGGLE_STYLE_MODIFIER:c}),n.jsx(ft.Actions,{handleSendEvent:m,product:r,size:"small",variant:"tertiary",ICONS:o,MINICART_CONFIG:s})]})]})]})]})};Ru.displayName="MiniCart.Card";const Eu=({type:e="positive",ICONS:t,MESSAGE_CASHBACK:r})=>{var a;const{toExpire:o}=Mt(),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:p.helpers.classNameConcat(le["mc--cashback"],le[`mc--cashback--${e}`]),children:[n.jsx(p.Icon,{name:t.alert_circle,size:"medium"}),n.jsxs("p",{children:[n.jsx("span",{children:U.formatPriceToCurrency(s)})," ",r.title]})]}):null};Eu.displayName="MiniCart.Cashback";const Pu=({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),[m,g]=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,h]=x.useState(!!d()),_=async y=>{g(!0),!!d()&&(e==="coupon"?await s():await a(),h(!1),u(!1)),await o(y,e).then(S=>{if(!S.statusOk&&y||S.code!==200){y?(u(!0),h(!1)):u(!1);return}h(!0),u(!1)}).catch(()=>u(!0)).finally(()=>g(!1))};return n.jsx(Le.Field,{hasError:l,hasSuccess:f,isLoading:m,onHandler:_,type:e,title:e==="coupon"?`${r.messages.descount_cupom_placeholder}`:`${r.messages.sellers_code_placeholder}`,value:d(),MINICART_CONFIG:r,ICONS:t})};Pu.displayName="MiniCart.CouponSeller";const Au=({ICONS:e,MINICART_CONFIG:t,PLP_NOT_RESULT:r})=>{const{router:o}=xe(),s=()=>{o.push(r.link)};return n.jsxs(p.Utils.Column,{alignContent:"center",alignItems:"center",gap:"24px",className:le["mc--body--empty--feedback"],children:[n.jsx(p.TextStructure.Root,{children:n.jsx(p.TextStructure.DivWrapper,{children:n.jsxs("p",{className:`typography-style-body-xs ${le["mc--body--empty--text"]}`,children:[t.messages.empty_card," "]})})}),n.jsx(p.Button,{variant:"tertiary",size:"large",onClick:()=>s(),"data-close":!0,adornment:{end:n.jsx(p.Icon,{name:e.arrow_right,size:"medium"})},children:t.messages.empty_bag})]})};Au.displayName="MiniCart.Feedback";const mh=e=>{const t=e.replace(/\D/g,"");return t.length>5?`${t.slice(0,5)}-${t.slice(5,8)}`:t},Iu=({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 m=()=>t?n.jsx(p.Icon,{name:c.delete_circle}):String(i).length&&o?n.jsx(p.Icon,{name:c.check_circle}):null,g=()=>{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 S=mh(y);u(S)}else u(y)},h=_=>{if(_.key.toLocaleLowerCase()==="enter"&&typeof r=="function"){const y=_.currentTarget.value;r(y)}};return n.jsx(p.TextField.Input,{adornment:{end:m()},mode:"over-label",label:a,feedback:e,value:l,type:"text",onFocus:g,onBlur:d,onChange:f,onKeyDown:h})};Iu.displayName="MiniCart.Field.Input";const Nu=({title:e,ICONS:t,MINICART_CONFIG:r,...o})=>{const s=x.useRef(null),{hasSuccess:a,hasError:i,isLoading:c,onHandler:l,type:u,value:m}=o,g=()=>i?"error":String(m).length&&a?"success":"none",d=x.useCallback(()=>{if(s.current){const _=s.current.querySelector("input");_&&typeof l=="function"&&(m!==""||i?(l(""),_.value=""):l((_==null?void 0:_.value)??""))}},[l,m,i]),f=g();return n.jsx("div",{ref:s,children:n.jsx(p.TextField.Structure,{className:le["mc--field"],input:n.jsx(Iu,{...o,feedback:f,title:e,ICONS:t}),right:n.jsx(p.Button,{"data-has-success":!a,size:"medium",title:String(m).length&&a||i?"Remover":"Aplicar",onClick:()=>d(),disabled:c,children:String(m).length&&a||i?n.jsx(p.Icon,{name:"close",size:"small"}):`${r.messages.promo_code_button}`}),supportText:u==="cep"&&f==="success"?n.jsx(p.TextField.SupportText,{text:"Mais informações de frete na etapa a seguir",feedback:"success",title:"support"}):null})})};Nu.displayName="MiniCart.Field";const Tu=({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(p.Modal.Body,{className:le["mc--body"],children:[e,n.jsx("div",{className:le["mc--body--products"],children:Array.isArray(c)&&c.length?c.map((u,m)=>{const g=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")||!g,index:m,product:u,ICONS:t,MINICART_CONFIG:r,NAME_SPLIT_SYMBOL:o,TEXTURE_IMAGE:a,TOGGLE_STYLE_MODIFIER:i},`${u.id}-${u.itemOffered.sku}-${m}`)}):n.jsx(Le.Feedback,{ICONS:t,MINICART_CONFIG:r,PLP_NOT_RESULT:s})})]})};Tu.displayName="MiniCart.Body";const ku=({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(p.Modal.Footer,{className:le["mc--footer"],children:[e,n.jsx("div",{className:le["mc--footer--actions"],children:n.jsx(p.Button,{variant:"primary",size:"large","data-close":!0,className:le["mc--footer--actions-button"],onClick:s,children:r.messages.checkout_button})})]})};ku.displayName="MiniCart.Modal.Footer";const Ou=({children:e,className:t,ICONS:r,MINICART_CONFIG:o})=>n.jsxs(p.Accordion.Wrapper,{className:le["mc--discount"],children:[n.jsx(p.Accordion.Header,{id:"frete",title:"Frete",closeIndicator:n.jsx(p.Icon,{name:r.arrow_up,size:"medium"}),openIndicator:n.jsx(p.Icon,{name:r.arrow_down,size:"medium"}),className:p.helpers.classNameConcat(le["mc--discount--header"],t),startOpen:o.promotion_input_starts_open,children:n.jsx(p.TextStructure.Root,{children:n.jsxs(p.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(p.Accordion.Body,{className:le["mc--discount--body"],children:e}),n.jsx(p.Utils.Divider,{direction:"horizontal",size:"small",style:{height:16}})]});Ou.displayName="MiniCart.Discount";const Mu=({discount:e,shipping:t,total:r})=>{var c;const{tags:o}=At(),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:le["mc--footer--total"],children:Array.isArray(i)&&i.map((l,u)=>n.jsxs("div",{className:le["mc--footer--total--info"],"data-discount":l.title==="Desconto",children:[n.jsx("p",{children:l.title}),n.jsxs("div",{className:le["mc--footer--total--info--content"],children:[l.message&&n.jsx(p.Tag,{variant:"primary",title:l.message,children:l.message}),n.jsx(p.ProductInfo.Price,{className:le["mc--footer--total--info"],label:l.title,value:l.value})]})]},u))})};Mu.displayName="MiniCart.Modal.Footer.Resume.Items";const Lu=({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(Mu,{discount:r??0,total:t,shipping:o})};Lu.displayName="MiniCart.Modal.Footer.Totals";const Du=({ICONS:e,MINICART_CONFIG:t})=>{const{isMobile:r}=ge(),{cartStore:{items:o}}=Ee(),s=o.reduce((a,i)=>a+(i.quantity??0),0);return n.jsx(p.Modal.Header,{navigation:"top",className:le["mc--header"],children:n.jsxs(p.Modal.Controls,{navigation:"top",isMobile:!!r,children:[n.jsx(p.Modal.Title,{navigation:"top",title:t.messages.title}),n.jsx("span",{className:le["mc--header--subtitle"],children:s!==1?`[${s}] Produtos`:`[${s}] Produto`}),n.jsx(p.Button,{"data-close":!0,iconNameStart:e.close,size:"small",variant:"tertiary"})]})})};Du.displayName="MiniCart.Modal.Header";const $u=({ICONS:e,MINICART_CONFIG:t})=>{const{cartStore:{shippingData:r},shipping:o,removeCEP:s}=Ee(),{sendDataLayerEvent:a}=ue(),[i,c]=x.useState(!1),[l,u]=x.useState(!1),m=x.useCallback(()=>{var b;return((b=r==null?void 0:r.address)==null?void 0:b.postalCode)??""},[r]),[g,d]=x.useState(!!m()),f=()=>{d(!1),c(!1)},h=b=>{var S;if(typeof b=="object"&&(b!=null&&b.logisticsInfo))return(S=b.logisticsInfo)==null?void 0:S.reduce((v,j)=>{var k;const w=(k=j==null?void 0:j.slas)==null?void 0:k.find(R=>(R==null?void 0:R.id)===(j==null?void 0:j.selectedSla));if(!w)return v;const E=parseInt(String((w==null?void 0:w.shippingEstimate)??"").replace("bd","")),C=Number((((w==null?void 0:w.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=C,v.flag_retirada=(j==null?void 0:j.selectedDeliveryChannel)==="delivery"?"false":"true",v;const P=parseInt(v.delivery_time??"0");return E>P&&(v.delivery_time=E.toString()),v.shipping=(v.shipping??0)+C,v},{shipping_tier:void 0,delivery_time:void 0,flag_retirada:void 0,shipping:void 0,currency:"BRL"})},_=async b=>{const S=b.replace(/\D/g,"");if(S.length!==8)return!1;try{return!(await rt.get(`https://viacep.com.br/ws/${S}/json/`)).data.erro}catch{return!1}},y=async b=>{if(u(!0),!!m()||!(b!=null&&b.trim())){await s(),f(),u(!1);return}if(!await _(b)){c(!0),d(!1),u(!1);return}try{const w=await o(b);if(c(!1),w){d(!0);const E=h(w);E&&a({functionKey:"readyEvents",data:{event:"search_zipcode",readyData:E}})}}catch{c(!0)}finally{u(!1)}};return n.jsx(Le.Field,{hasSuccess:g,hasError:i,isLoading:l,onHandler:y,title:`${t.messages.shipping_calculation_placeholder}`,type:"cep",value:m(),ICONS:e,MINICART_CONFIG:t})};$u.displayName="MiniCart.Shipping";const zu=()=>{var r;const{tags:e}=At(),t=(r=e==null?void 0:e.flagCart)==null?void 0:r.flagHeader;return t!=null&&t.value?n.jsx(p.Tag,{variant:"tertiary",title:t==null?void 0:t.value,size:"small",adornment:{start:t!=null&&t.enableIcon&&(t!=null&&t.icon)?n.jsx(p.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};zu.displayName="MiniCart.TagMessage";const Le={Body:Tu,Card:Ru,Cashback:Eu,CouponSeller:Pu,Discount:Ou,Field:Nu,Feedback:Au,Shipping:$u,Footer:ku,Header:Du,TagMessage:zu,Totals:Lu},hh=({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:m,cartStore:g}=Ee(),{isMobile:d}=ge();return n.jsxs(p.Modal.Root,{className:p.helpers.classNameConcat(le["minicart--modal-modifier"],l),isMobile:!0,isOpen:u,setIsOpen:m,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:g.totalizers})]}),n.jsx(_u,{ICONS:e})]})},Bu=({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(p.Header.Structure,{innerRef:o,adornment:{start:e},style:{position:"sticky",top:0,zIndex:c.header},className:Jo["header-animation"],children:n.jsxs(p.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(su,{})}),n.jsx("div",{className:U.responsive["responsive-desktop-block"],style:{height:"100%",width:"100%",zIndex:c.header_desktop},children:n.jsx(Vl,{})})]}),n.jsx(lh,{children:n.jsx(hh,{...l,minicartStyleModifiers:t})}),n.jsx(Yo,{title:"Produto adicionado à sua sacola!",CONSTANTS:a.addToCart}),n.jsx(rs,{})]})})};Bu.displayName="Header";const gh="_shippingFreight_6z8rf_6",yh="_shippingFreight__postalCodeGrid_6z8rf_10",_h="_shippingFreight__grid_6z8rf_14",vh="_shippingFreight__grid__title_6z8rf_18",xh="_shippingFreight__grid__remember_6z8rf_29",bh="_postalCodeContainer_6z8rf_44",jh="_deliveryStatusBar__tag_6z8rf_49",Ch="_deliveryStatusBarError__tag_6z8rf_66",Sh="_deliveryInfo_6z8rf_74",wh="_deliveryInfo__content_6z8rf_78",Rh="_deliveryInfo__text_6z8rf_84",Eh="_deliveryInfo__title_6z8rf_89",Ph="_deliveryInfo__subtitle_6z8rf_99",Ah="_deliveryInfo__tooltipIcon_6z8rf_109",Ih="_deliveryInfo__tooltip_6z8rf_109",Nh="_freightGrid_6z8rf_148",Th="_freightContainer_6z8rf_155",kh="_freightOption__content_6z8rf_160",Oh="_freightOption__value_6z8rf_166",Mh="_freightOption__title_6z8rf_177",Lh="_freightOption__title_item_6z8rf_181",Dh="_freightOption__paragraph_6z8rf_192",he={shippingFreight:gh,shippingFreight__postalCodeGrid:yh,shippingFreight__grid:_h,shippingFreight__grid__title:vh,shippingFreight__grid__remember:xh,postalCodeContainer:bh,deliveryStatusBar__tag:jh,deliveryStatusBarError__tag:Ch,deliveryInfo:Sh,deliveryInfo__content:wh,deliveryInfo__text:Rh,deliveryInfo__title:Eh,deliveryInfo__subtitle:Ph,deliveryInfo__tooltipIcon:Ah,deliveryInfo__tooltip:Ih,freightGrid:Nh,freightContainer:Th,freightOption__content:kh,freightOption__value:Oh,freightOption__title:Mh,freightOption__title_item:Lh,freightOption__paragraph:Dh,"input-modifier":"_input-modifier_6z8rf_207","freight--tooltip":"_freight--tooltip_6z8rf_227"},$h=({icon:e,title:t,subtitle:r,packageCount:o,packageUnit:s="",labelDescription:a,freightConfig:i,toolTipZIndex:c})=>{const[l,u]=x.useState(!1),m=x.useRef(null),g=()=>u(d=>!d);return n.jsxs("div",{className:he.deliveryInfo,ref:m,children:[n.jsx(p.Tooltip.Root,{arrow:"bottom",component:n.jsx("div",{children:n.jsx("p",{children:i.messages.select_size_tag})}),id:"freight--tooltip",className:he["freight--tooltip"],style:{zIndex:c},isOpen:!0,size:"medium",position:"top",top:"-170%",left:"4%",parent:m.current}),n.jsxs("div",{className:he.deliveryInfo__content,children:[n.jsx("div",{className:he.deliveryInfo__icon,children:n.jsx(p.Icon,{name:e,size:"medium"})}),n.jsxs("div",{className:he.deliveryInfo__text,children:[n.jsxs("span",{className:he.deliveryInfo__title,children:[t," ",o," ",s]}),r&&n.jsx("span",{className:he.deliveryInfo__subtitle,children:r})]}),a&&n.jsxs("div",{className:he.deliveryInfo__tooltipIcon,onMouseEnter:g,onMouseLeave:g,"aria-label":"Mostrar descrição",children:[n.jsx("span",{children:n.jsx(p.Icon,{name:i.icons.feedback_help,size:"small"})}),l&&n.jsx("div",{className:he.deliveryInfo__tooltip,children:a})]})]})]})},zh=({value:e,title:t,paragraph:r})=>n.jsx("div",{className:he.freightOption,children:n.jsxs("div",{className:he.freightOption__content,children:[n.jsx("span",{className:he.freightOption__value,children:e}),n.jsx("span",{className:he.freightOption__title,children:n.jsx(p.TextStructure.Root,{children:n.jsxs(p.TextStructure.DivWrapper,{className:he.footer__item,children:[n.jsx("span",{className:he.freightOption__title_item,children:t}),r&&n.jsx("span",{className:he.freightOption__paragraph,children:r})]})})})]})}),Bh=({children:e})=>n.jsx("div",{className:he.freightContainer,children:e}),Fh=({children:e})=>n.jsx("div",{className:he.freightGrid,children:e}),qh=({children:e})=>n.jsx("div",{className:he.postalCodeContainer,children:e}),oi=({message:e,seller:t="",size:r="small",setError:o})=>n.jsx("div",{className:o?he.deliveryStatusBarError:he.deliveryStatusBar,children:n.jsxs(p.Tag,{title:e,className:o?he.deliveryStatusBarError__tag:he.deliveryStatusBar__tag,size:r,children:[e," ",!o&&t]})}),Hh=e=>{const t=parseInt(e,10);return t===1?`${t} dia`:`${t} dias`},Uh=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},Wh=({component:e,parent:t,top:r,left:o,target:s,contentRef:a,freightConfig:i,toolTipZIndex:c=999,...l})=>{const{isMobile:u}=ge();return n.jsx(n.Fragment,{children:u?n.jsx(p.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:he["freight--tooltip"],style:{zIndex:c},isOpen:!0,size:"medium",position:"top",top:"-170%",left:"4%",parent:t}):n.jsx(p.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:he["freight--tooltip"],style:{zIndex:c},isOpen:!0,size:"medium",position:"top",top:"-110%",left:"3%",parent:t})})},Vh=({onUpdateFreightItems:e,sellerId:t,size:r,skuId:o,quantity:s,setError:a,setIsButtonClicked:i,component:c,freightConfig:l,toolTipZIndex:u})=>{var N,I,z,T;const m=mt(),g=mt(H=>H.shipping),[d,f]=x.useState(),[h,_]=x.useState(!1),[y,b]=x.useState(!1),[S,v]=x.useState(!1),j=(I=(N=m.shippingData)==null?void 0:N.address)==null?void 0:I.postalCode,w=!(d!=null&&d.length)&&j?j:d,E=x.useRef(null),C=async H=>{const q=H.target.value.replace(/\D/g,"").slice(0,8);q.length>5?f(q.replace(/^(\d{5})(\d{1,3})/,"$1-$2")):f(q)},P=async H=>{const W=H.target.value.replace(/\D/g,"");try{if((await rt.get(`https://viacep.com.br/ws/${W}/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.")}},k=async()=>{_(!0);try{const H=await rt.post("/api/checkout/simulation",{items:[{id:o,quantity:s,seller:t}],country:"BRA",postalCode:w});e(Uh(H.data))}catch(H){console.error("Erro ao atualizar o documento:",H)}finally{_(!1),g(w,"BRA")}},R=async()=>{if(!o){v(!0),setTimeout(()=>v(!1),1500);return}await P({target:{value:w}}),h||(k(),i(!0))};return n.jsxs("div",{ref:E,style:{position:"relative"},children:[!o&&S?n.jsx(Wh,{component:c,isOpen:S,parent:E.current,toolTipZIndex:u,freightConfig:l}):n.jsx(n.Fragment,{}),n.jsx("div",{style:{position:"relative"},children:n.jsx(p.TextField.Structure,{title:"structure",style:{width:"100%"},input:n.jsx(p.TextField.Input,{defaultValue:(T=(z=m.shippingData)==null?void 0:z.address)==null?void 0:T.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:C,onKeyDown:H=>{H.key==="Enter"&&R()},className:he["input-modifier"],feedback:y?"error":"none"}),right:n.jsx(p.Button,{onClick:R,size:r,title:"button",children:h?n.jsx(p.Spinner,{size:"small",indicatorColor:"#ffffff"}):l.messages.text_input_btn})})})]})},Gh=({children:e,freightConfig:t})=>n.jsxs("div",{className:he.shippingFreight,children:[n.jsxs("div",{className:he.shippingFreight__grid,children:[n.jsx("span",{className:he.shippingFreight__grid__title,children:t.messages.title}),n.jsx("span",{className:he.shippingFreight__grid__remember,children:n.jsx(Ke,{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:he.shippingFreight__postalCodeGrid,children:e})]}),Kh=({children:e})=>n.jsx("div",{className:he.freightContainer,children:e}),Fu=({className:e,sellerId:t,skuId:r,quantity:o,size:s,seller:a,local:i,CONSTANTS_PROPS:c})=>{const{sendDataLayerEvent:l}=ue(),[u,m]=x.useState(""),[g,d]=x.useState([]),[f,h]=x.useState(""),[_,y]=x.useState(!1),b=v=>m(v),S=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(Kh,{className:e,children:[n.jsxs(Gh,{freightConfig:c.freightConfig,children:[n.jsx(qh,{children:n.jsx(Vh,{onUpdateFreightItems:S,skuId:r,quantity:o,size:s,sellerId:t,local:i,setError:h,setIsButtonClicked:y,freightConfig:c.freightConfig,toolTipZIndex:c.toolTipZIndex})}),f?n.jsx(oi,{size:s,message:f,setError:h}):g.length>0&&n.jsx(oi,{size:s,message:c.freightConfig.messages.delivered_by,seller:a})]}),_&&!f?g.length>0&&n.jsxs(Bh,{children:[n.jsx(Fh,{children:g.filter(({id:v})=>!v.includes("Retirada")).map(v=>n.jsx(zh,{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}${Hh(v.shippingEstimate)}`,radioValue:u,changeValue:b},v.id))}),c.deliveryInfoBoxesAllowed?n.jsx($h,{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]})},ot={"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"},Xh=({children:e,href:t,isLast:r,title:o,ICONS:s})=>n.jsx(p.BreadCrumb.Item,{adornment:{end:r&&n.jsx(p.Icon,{name:s.arrow_right})},children:r?n.jsx(Ke,{href:t??"/",size:"medium",title:o,disableUnderline:!0,children:e}):e}),qu=({ICONS:e,...t})=>{var i;const{state:r}=mr(),o=r!=null&&r.term&&r.term.length>0?`/${r.term}`:"",s=decodeURIComponent((i=r==null?void 0:r.base)!=null&&i.length?r.base:o??o).slice(1).split("/"),a=Uc(s);return n.jsx("div",{...t,className:ot["pcd-navigation--breadcrumb"],children:n.jsx(p.BreadCrumb.DivWrapper,{children:n.jsx(p.BreadCrumb.List,{children:Array.isArray(a)&&a.map((c,l)=>{var u,m;return x.createElement(Xh,{...c,isLast:l!==a.length-1,key:c.href,title:(u=c.name)==null?void 0:u.replace(/-/g," "),ICONS:e},(m=c.name)==null?void 0:m.replace(/-/g," "))})})})})};qu.displayName="PLPNavigation.BreadCrumb";const Hu=({children:e,ICONS:t,PDC_NAVIGATION:r,searchParams:o,...s})=>n.jsxs("div",{...s,className:ot["pdc-navigation--content"],children:[n.jsx(yt.Filters,{ICONS:t,PDC_NAVIGATION:r,searchParams:o}),e]});Hu.displayName="PLPNavigation.Content";const Qh="_sort_35wro_1",vr={sort:Qh,"sort-list-wrapper":"_sort-list-wrapper_35wro_8","sort-list":"_sort-list_35wro_8","sort-button":"_sort-button_35wro_25"},Yh=({children:e,sortListOpen:t,btnAdornment:r,style:o,...s})=>n.jsx(p.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:vr["sort-button"],children:e}),Zh=e=>n.jsx(p.RadioButton.Radio,{...e}),Jh=({children:e,className:t,name:r,...o})=>n.jsx(p.RadioButton.Group,{...o,name:r||"sort-group",className:p.helpers.classNameConcat(vr["sort-list"],t),children:e}),eg=({children:e,className:t,shadow:r=!0,padding:o="small",height:s="fit-content",...a})=>n.jsx(p.Card,{...a,shadow:r,className:p.helpers.classNameConcat(vr["sort-list-wrapper"],t),padding:o,height:s,children:e}),Uu=x.forwardRef(({children:e,className:t,...r},o)=>n.jsx("div",{...r,ref:o,className:p.helpers.classNameConcat(vr.sort,t),children:e}));Uu.displayName="SortRoot";const ns=({handleSelectValue:e,sortListOpen:t,setSortListOpen:r,searchParams:o,CONSTANTS: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}=ue();x.useEffect(()=>{l(i||void 0)},[i]);const{ref:m}=du(()=>r(!1)),g=f=>{const h=f.target.value;l(h),typeof e=="function"&&e(h),u({functionKey:"filterEvent",data:{customData:{ordering:bt.options[h]}}}),r(!1)};return n.jsxs(Uu,{...a,ref:m,children:[n.jsx(Yh,{btnAdornment:{listOpen:n.jsx(p.Icon,{name:s.ICONS.arrow_up,size:"small"}),listClosed:n.jsx(p.Icon,{name:s.ICONS.arrow_down,size:"small"})},sortListOpen:t,onClick:()=>r(!t),children:c?bt.options[c]:bt.placeholder},"sort-button"),t&&n.jsx(eg,{children:n.jsx(Jh,{name:"sort-group",value:c??"",onChange:g,children:Object.keys(bt.options).map(f=>n.jsx(Zh,{label:bt.options[f],value:f},f))})})]})};ns.displayName="Sort";const Wu=x.createContext({}),tg=({children:e,...t})=>{const[r,o]=x.useState(!1);return n.jsx(Wu.Provider,{value:x.useMemo(()=>({...t,openOrderBy:r,setOpenOrderBy:o}),[t,r,o]),children:e})},rg=()=>{const e=x.useContext(Wu);if(e===void 0)throw new Error("usePLPNavigationContext must be used within a PDCNavigationProvider");return e},Vu=({ICONS:e,PDC_NAVIGATION:t,searchParams:r})=>{const{openOrderBy:o,onSort:s,setOpenFilters:a,setOpenOrderBy:i}=rg();return n.jsxs("div",{className:ot["pdc-navigation--filters"],children:[n.jsx(yt.BreadCrumb,{ICONS:e}),n.jsxs("div",{className:ot["pdc-navigation--filters--content"],children:[n.jsx(ns,{handleSelectValue:c=>s(c??"release_desc"),sortListOpen:o,setSortListOpen:i,CONSTANTS:{ICONS:e},searchParams:r}),n.jsx(p.Button,{adornment:{end:n.jsx(p.Icon,{name:e.arrow_down})},onClick:()=>a(!0),size:"small",variant:"tertiary",children:t.filter_button}),n.jsx(yt.Total,{})]})]})};Vu.displayName="PLPNavigation.Filters";const Gu=({children:e,onSort:t,setOpenFilters:r,style:o,PDC_NAVIGATION:s,ICONS:a,searchParams:i,...c})=>{const l=x.useRef(null);return n.jsx(tg,{onSort:t,setOpenFilters:r,children:n.jsx("div",{...c,className:ot["pdc-navigation"],ref:l,style:{...o},children:n.jsx(yt.Content,{ICONS:a,PDC_NAVIGATION:s,searchParams:i,children:e})})})};Gu.displayName="Root";const Ku=({callback:e,selected:t,CONSTANTS:r,...o})=>n.jsx("div",{...o,className:ot["pdc-navigation--selected"],children:n.jsx("div",{className:ot["pdc-navigation--selected--container"],children:Array.isArray(t)?t.map(s=>s.key==="productclusterids"?null:n.jsx(yt.SelectedItem,{callback:e,facet:s,CONSTANTS:r},s.value)):n.jsx(n.Fragment,{})})});Ku.displayName="PLPNavigation.Selected";const os=({key:e,PLP_FILTERS:t})=>t.some(r=>r.key===e)?e==="cores-filtraveis":!1,ss=({value:e,PLP_FILTERS_COLORS:t})=>{var r;return((r=t.find(o=>o.value===e))==null?void 0:r.color)??"#F2F2F2"},Xu=({key:e,PLP_FILTERS:t})=>{var r;return(r=t.find(o=>o.key===e))==null?void 0:r.label},Qu=({key:e,PLP_FILTERS:t})=>{var r;return((r=t.find(o=>o.key===e))==null?void 0:r.order)??0},So=({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}`},ng=({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]},Yu=Object.freeze(Object.defineProperty({__proto__:null,checkedColor:os,createTagPrice:So,getAbsoluteMinMax:ng,getColor:ss,getName:Xu,getOrder:Qu},Symbol.toStringTag,{value:"Module"})),qe={"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"},Zu=({columns:e=2,CONSTANTS:t,...r})=>{var a;const{filters:o,onToggleFacet:s}=vt();return n.jsxs("div",{...r,className:qe["filter--modal--body--content"],children:[Array.isArray(o.facets)&&o.facets.map(i=>n.jsx(Xe.Item,{columns:e,facet:i,onToggleFacet:s,CONSTANTS:t},i.key)),!((a=o.facets)!=null&&a.length)&&n.jsx(Xe.Empty,{PLP_FILTERS_EMPTY:t.PLP_FILTERS_EMPTY})]})};Zu.displayName="Filter.Item.Content";const Ju=({PLP_FILTERS_EMPTY:e})=>{const t=()=>{window.history.back()};return n.jsxs("div",{className:qe["filter--empty"],children:[n.jsxs(p.TextStructure.DivWrapper,{children:[n.jsx("h4",{children:e.title}),n.jsx("p",{children:e.subtitle})]}),n.jsx(p.Button,{onClick:()=>t(),variant:"tertiary",children:e.button})]})};Ju.displayName="Filter.Empty";const ed=({columns:e,facet:t,onToggleFacet:r,CONSTANTS:o,...s})=>{const a=Qu({key:t.key,PLP_FILTERS:o.PLP_FILTERS}),i=()=>{if(t.__typename==="FacetBoolean"){if(t.key==="cores-filtraveis")return n.jsx(Xe.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(Xe.Sizes,{onToggleFacet:r,values:t.values,PLP_SIZE_ORDER:o.PLP_SIZE_ORDER});if(t.key==="category-2")return n.jsx(Xe.Toggle,{columns:e,facetKey:t.key,onToggleFacet:r,values:t.values,ICONS:o.ICONS})}return t.__typename==="FacetRange"?n.jsx(Xe.Price,{facet:t}):n.jsx("p",{children:"Filter not support!!!"})};return n.jsx("div",{...s,className:qe["filter--item"],style:{order:a},children:n.jsxs(p.Accordion.Wrapper,{style:{width:"100%"},children:[n.jsx(p.Accordion.Header,{id:t.key,closeIndicator:n.jsx(p.Icon,{name:o.ICONS.arrow_up}),openIndicator:n.jsx(p.Icon,{name:o.ICONS.arrow_down}),children:n.jsx(p.TextStructure.Root,{children:n.jsx(p.TextStructure.DivWrapper,{children:n.jsx("h4",{className:"typography-style-body-sm",children:Xu({key:t.key,PLP_FILTERS:o.PLP_FILTERS})})})})}),n.jsx(p.Accordion.Body,{children:i()})]})})};ed.displayName="Filter.Item";const is={"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"},td=({children:e,...t})=>n.jsx("div",{...t,className:is["product-variation-list--list"],children:e});td.displayName="ProductVariationList.List";const rd=({fill:e="#1352C7",src:t="",type:r="size",text:o,...s})=>{const{nextimage:a}=xe();return r==="size"?n.jsxs(p.ToggleSize.Wrapper,{...s,size:"large",variation:"ghost",children:[n.jsx(p.ToggleSize.DisabledAdornment,{title:"disabled-adornment-size"}),n.jsx(p.ToggleSize.Text,{children:o})]}):n.jsxs(p.ToggleStyle.Wrapper,{...s,size:"small",title:"wrapper-texture",children:[n.jsx(p.ToggleStyle.DisabledAdornment,{title:"disabled-adornment-texture"}),r==="color"?n.jsx(p.ToggleStyle.Color,{background:e,title:"color"}):n.jsx(p.ToggleStyle.Texture,{title:"texture",children:n.jsx(a,{alt:o??"image",height:40,src:t,width:40})})]})};rd.displayName="ProductVariationList.Option";const nd=({children:e,...t})=>n.jsx("div",{className:is["product-variation-list"],...t,children:e});nd.displayName="ProductVariationList.Root";const od=({children:e,title:t,...r})=>n.jsxs("div",{...r,className:is["product-variation-list--title"],children:[t?n.jsx(p.TextStructure.Root,{children:n.jsx(p.TextStructure.SectionWrapper,{children:n.jsx("p",{children:t})})}):n.jsx(n.Fragment,{}),e]});od.displayName="ProductVariationList.Title";const Ve={List:td,Option:rd,Title:od,Root:nd},sd=({onToggleFacet:e,values:t,PLP_FILTERS:r,PLP_FILTERS_COLORS:o,...s})=>n.jsx(Ve.Root,{...s,children:n.jsx(Ve.List,{children:Array.isArray(t)&&t.map(({key:a,selected:i,value:c})=>n.jsx(Ve.Option,{active:i,"data-color":os({key:a,PLP_FILTERS:r}),fill:ss({value:c,PLP_FILTERS_COLORS:o}),onClick:()=>e({key:a,value:c}),type:"color"},`${a}-${c}`))})});sd.displayName="Filter.Item.Color";const id=({facet:e,...t})=>{var u,m;const{filters:{selected:r},price:o,onToggleFacet:s}=vt(),[a,i]=(o==null?void 0:o.split(":").map(Number))??[0,100],[c,l]=((m=(u=r==null?void 0:r.find(({key:g})=>g==="price"))==null?void 0:u.value)==null?void 0:m.split(":").map(Number))??[a,i];return n.jsx("div",{...t,className:qe["filter--item--price"],children:n.jsxs(p.Slider.SliderDual,{format:"price",initialValue:[c<a?a:c,l>i?i:l],min:a,max:i,type:"dual",step:1,onFinish:g=>{var d,f;g&&s({key:"price",value:`${(d=g.range)==null?void 0:d.min}:${(f=g.range)==null?void 0:f.max}`})},children:[n.jsx(p.TextStructure.Root,{children:n.jsx(p.TextStructure.DivWrapper,{children:n.jsx("p",{"data-min-value":!0})})}),n.jsx(p.TextStructure.Root,{children:n.jsx(p.TextStructure.DivWrapper,{children:n.jsx("p",{"data-max-value":!0})})})]})})};id.displayName="Filter.Item.Price";const ad=({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(Ve.Root,{...o,children:n.jsx(Ve.List,{children:Array.isArray(s)&&s.map(({key:a,selected:i,value:c})=>n.jsx(Ve.Option,{active:i,text:c,type:"size",onClick:()=>e({key:a,value:c})},c))})})};ad.displayName="Filter.Item.Sizes";const cd=({columns:e,facetKey:t,onToggleFacet:r,values:o,ICONS:s,...a})=>n.jsx("div",{...a,className:qe["filter--item--toggle"],children:n.jsx("div",{className:qe["filter--item--toggle--container"],style:{gridTemplateColumns:`repeat(${e}, 1fr)`},children:Array.isArray(o)&&o.map(i=>n.jsx(p.Checkbox,{label:(i==null?void 0:i.name)??"",adornment:n.jsx(p.Icon,{name:s.check}),checked:i.selected,onChange:()=>r(i)},i.value))})});cd.displayName="Filter.Item.Toggle";const ld=({...e})=>{const{isLoading:t}=vt();return n.jsx("div",{className:qe["filter--loading"],"data-active":t,...e,children:n.jsx(p.Spinner,{indicatorColor:"#000",background:"#222"})})};ld.displayName="Filter.Loading";const ud=({children:e,className:t,isMobile:r=!1,CONSTANTS:{PLP_FILTERS_TITLE:o,ICONS:s}})=>{var m;const{deleteAllFacets:a,filters:i,isOpen:c,target:l,setIsOpen:u}=vt();return n.jsxs(p.Modal.Root,{className:p.helpers.classNameConcat(qe["filter--modal"],t),isMobile:r??!1,isOpen:c,parent:l,setIsOpen:u,variant:r?"sideBottom":"sideRight",style:{zIndex:99},children:[n.jsxs(p.Modal.Header,{navigation:"top",children:[n.jsx(p.Modal.Controls,{navigation:"top",isMobile:r,children:n.jsx(p.Button,{"data-close":!0,iconNameStart:s.close,size:"small",variant:"tertiary",style:{marginLeft:"auto"}})}),n.jsx(p.Modal.Title,{navigation:"top",title:o})]}),n.jsxs(p.Modal.Body,{style:{width:500},children:[n.jsx("div",{className:qe["filter--modal--body"],children:e}),n.jsx(Xe.Loading,{})]}),n.jsx(p.Modal.Footer,{children:n.jsxs("div",{className:qe["filter--modal--footer"],children:[n.jsx(p.Button,{"data-close":!0,size:"large",variant:"primary",children:(m=i.facets)!=null&&m.length?"ver resultados":"fechar"}),n.jsx(p.Button,{"data-close":!0,onClick:()=>a(),variant:"tertiary",children:"limpar filtros"})]})})]})};ud.displayName="Filter.Modal";const dd=({children:e,className:t,isMobile:r,CONSTANTS:o,...s})=>n.jsx(Yc,{...s,PLP_FILTERS:o.PLP_FILTERS,children:n.jsx(Xe.Modal,{className:t,isMobile:r,CONSTANTS:o,children:e})});dd.displayName="Filter.Root";const fd=({ICONS:e,PLP_FILTERS_COLORS:t,PLP_FILTERS:r})=>{const{filters:o,onToggleFacet:s}=vt();return n.jsx("div",{className:qe["filter--selected"],children:n.jsx("div",{className:qe["filter--selected--content"],children:Array.isArray(o.selected)&&o.selected.map(({key:a,value:i})=>a==="productclusterids"?null:n.jsx(p.Tag,{title:a==="price"?So({value:i}):i,adornment:{end:n.jsx(p.Icon,{name:e.close,size:"x-small"})},colorSquare:ss({value:i,PLP_FILTERS_COLORS:t}),onClick:()=>s({key:a,value:i}),squareShow:os({key:a,PLP_FILTERS:r}),size:"medium",variant:"primary",children:a==="price"?So({value:i}):i},i))})})};fd.displayName="Filter.Selected";const Xe={Colors:sd,Content:Zu,Empty:Ju,Modal:ud,Item:ed,Root:dd,Loading:ld,Selected:fd,Price:id,Sizes:ad,Toggle:cd},{checkedColor:og,createTagPrice:si,getColor:sg}=Yu,pd=({callback:e,facet:t,CONSTANTS:r})=>n.jsx(p.Tag,{title:(t==null?void 0:t.key)==="price"?si({value:t.value}):t.value.toUpperCase(),adornment:{end:n.jsx(p.Icon,{name:r.ICONS.close,size:"x-small"})},colorSquare:sg({value:t.value,PLP_FILTERS_COLORS:r.PLP_FILTERS_COLORS}),onClick:()=>{typeof e=="function"&&e(t,!0)},squareShow:og({key:t.key,PLP_FILTERS:r.PLP_FILTERS}),size:"medium",variant:"primary",children:(t==null?void 0:t.key)==="price"?si({value:t.value}):t.value.toUpperCase()});pd.displayName="PLPNavigation.Selected.Item";const md=()=>n.jsx(p.TextStructure.Root,{children:n.jsx("p",{id:"pdc-navigation--total"})});md.displayName="PLPNavigation.Total";const yt={BreadCrumb:qu,Content:Hu,Filters:Vu,Root:Gu,Selected:Ku,SelectedItem:pd,Total:md},as={"product-list--banner":"_product-list--banner_sfibj_1","product-list--card":"_product-list--card_sfibj_30","product-list":"_product-list_sfibj_1"},hd=({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:p.helpers.classNameConcat(as["product-list--banner"],e),style:{aspectRatio:u,maxWidth:`${r/i*100}%`,order:a,padding:s/2},children:t})};hd.displayName="ProductList.Banner";const gd=({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([]),m=h=>a.push(h??""),g=async h=>{try{const _=await fetch("/api/catalog/product/similars",{method:"POST",body:JSON.stringify({productId:h,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(h=>{!r||!h||(typeof g=="function"&&g(r),i.current=!0)},[r]),f=x.useCallback((h,_)=>{if(!h.isIntersecting){s.PLP_INFINITE_SCROLL&&c.current&&(clearTimeout(c.current),c.current=null);return}if(h.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 h={root:null,threshold:.1},_=new IntersectionObserver(([y])=>{f(y,h)},h);return _.observe(t.current),()=>{c.current&&clearTimeout(c.current),_.disconnect()}},[f,t,e]),n.jsx(be.Actions,{...l,callback:m,isKit:e,children:!e&&n.jsx(be.SizeSelector,{setNotify:o})})};gd.displayName="ProductList.Card.Actions";const yd=({className:e,children:t,gap:r=32,item:o,isMobile:s,order:a,tag:i,hasMaxWidth:c=!0,index:l,setSkuSelected:u,showVideo:m,CONSTANTS:g,WishListToggle:d,...f})=>{const h=x.useRef(null),{availability:{status:_}}=o,y=x.useCallback((S,v)=>{var j;typeof u=="function"&&u((j=S.isVariantOf)==null?void 0:j.hasVariant,v)},[u]),b=o.name.substring(0,4).toLowerCase()==="kit ";return n.jsxs("div",{...f,className:p.helpers.classNameConcat(as["product-list--card"],e),"data-mobile":s,"data-order":a,ref:h,style:{...c&&{maxWidth:s?"50%":"25%"},order:a,padding:r/2},children:[n.jsxs(be.Root,{item:o,isMobile:s,index:l,size:s?"small":"medium",order:a,outStock:!_,CONSTANTS:g,WishListToggle:d,children:[n.jsx(be.Header,{product:o,tag:i==null?void 0:i.commercial}),n.jsx(be.Media,{showVideo:m,hasPriority:!0}),n.jsxs(be.Wrapper,{type:"body",children:[n.jsx(be.Title,{tag:i==null?void 0:i.institucional}),n.jsx(gd,{productId:o.isVariantOf.productGroupID,parent:h,setNotify:y,isKit:b,CONSTANTS:g}),!b&&n.jsx(be.OutStock,{callback:y})]}),n.jsx(be.Wrapper,{type:"footer",children:_&&n.jsx(be.BuyButton,{isKit:b})})]}),t]})};yd.displayName="ProductList.Card";const _d=({children:e,className:t,...r})=>n.jsx("div",{...r,className:p.helpers.classNameConcat(as["product-list"],t),children:e});_d.displayName="ProductList.Grid";const ig={Banner:hd,Card:yd,Root:_d,helpers:Op},ag="_footer__bottom_1o9af_2",cg="_footer__wrapper_1o9af_10",lg="_footer__main_1o9af_39",ug="_footer__legalInformation_1o9af_55",dg="_footer__column_1o9af_77",fg="_footer__columnContent_1o9af_87",pg="_footer__item_1o9af_91",mg="_footer__itemLink_1o9af_107",hg="_footer__columnTitle_1o9af_122",gg="_footer__columnTitleIcon_1o9af_134",yg="_footer__iconList_1o9af_147",_g="_footer__itemSmallText_1o9af_157",vg="_payment_1o9af_168",xg="_footer__iconContainer_1o9af_173",bg="_footer__iconListSubHeader_1o9af_178",jg="_accordionWrapper_1o9af_200",Cg="_accordionHeader_1o9af_204",Sg="_accordionTextWrapper_1o9af_208",ye={footer__bottom:ag,footer__wrapper:cg,footer__main:lg,footer__legalInformation:ug,footer__column:dg,footer__columnContent:fg,footer__item:pg,footer__itemLink:mg,footer__columnTitle:hg,footer__columnTitleIcon:gg,footer__iconList:yg,footer__itemSmallText:_g,payment:vg,footer__iconContainer:xg,footer__iconListSubHeader:bg,accordionWrapper:jg,accordionHeader:Cg,accordionTextWrapper:Sg,"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 vd={},cs={},Dt={};(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)}}})(Dt);var xd={};(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,m=a?a*40:o,g=i?i*40:s,d=m&&g?"viewBox='0 0 "+m+" "+g+"'":"",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"}})(xd);var xr={};(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}})(xr);(function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"getImgProps",{enumerable:!0,get:function(){return f}});const t=Dt,r=xd,o=xr,s=["lazy","eager",void 0];function a(h){return h.default!==void 0}function i(h){return h.src!==void 0}function c(h){return typeof h=="object"&&(a(h)||i(h))}const l=new Map;let u;function m(h){return typeof h>"u"?h:typeof h=="number"?Number.isFinite(h)?h:NaN:typeof h=="string"&&/^[0-9]+$/.test(h)?parseInt(h,10):NaN}function g(h,_,y){let{deviceSizes:b,allSizes:S}=h;if(y){const j=/(^|\s)(1?\d?\d)vw/g,w=[];for(let E;E=j.exec(y);E)w.push(parseInt(E[2]));if(w.length){const E=Math.min(...w)*.01;return{widths:S.filter(C=>C>=b[0]*E),kind:"w"}}return{widths:S,kind:"w"}}return typeof _!="number"?{widths:b,kind:"w"}:{widths:[...new Set([_,_*2].map(j=>S.find(w=>w>=j)||S[S.length-1]))],kind:"x"}}function d(h){let{config:_,src:y,unoptimized:b,width:S,quality:v,sizes:j,loader:w}=h;if(b)return{src:y,srcSet:void 0,sizes:void 0};const{widths:E,kind:C}=g(_,S,j),P=E.length-1;return{sizes:!j&&C==="w"?"100vw":j,srcSet:E.map((k,R)=>w({config:_,src:y,quality:v,width:k})+" "+(C==="w"?k:R+1)+C).join(", "),src:w({config:_,src:y,quality:v,width:E[P]})}}function f(h,_){let{src:y,sizes:b,unoptimized:S=!1,priority:v=!1,loading:j,className:w,quality:E,width:C,height:P,fill:k=!1,style:R,onLoad:N,onLoadingComplete:I,placeholder:z="empty",blurDataURL:T,fetchPriority:H,layout:W,objectFit:q,objectPosition:K,lazyBoundary:V,lazyRoot:B,...J}=h;const{imgConf:A,showAltText:O,blurComplete:D,defaultLoader:X}=_;let ne,ee=A||o.imageConfigDefault;if("allSizes"in ee)ne=ee;else{const G=[...ee.deviceSizes,...ee.imageSizes].sort((Ae,Y)=>Ae-Y),pe=ee.deviceSizes.sort((Ae,Y)=>Ae-Y);ne={...ee,allSizes:G,deviceSizes:pe}}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 G=L;L=pe=>{const{config:Ae,...Y}=pe;return G(Y)}}if(W){W==="fill"&&(k=!0);const G={intrinsic:{maxWidth:"100%",height:"auto"},responsive:{width:"100%",height:"auto"}},pe={responsive:"100vw",fill:"100vw"},Ae=G[W];Ae&&(R={...R,...Ae});const Y=pe[W];Y&&!b&&(b=Y)}let Z="",re=m(C),$=m(P),M,oe;if(c(y)){const G=a(y)?y.default:y;if(!G.src)throw new Error("An object should only be passed to the image component src parameter if it comes from a static image import. It must include src. Received "+JSON.stringify(G));if(!G.height||!G.width)throw new Error("An object should only be passed to the image component src parameter if it comes from a static image import. It must include height and width. Received "+JSON.stringify(G));if(M=G.blurWidth,oe=G.blurHeight,T=T||G.blurDataURL,Z=G.src,!k){if(!re&&!$)re=G.width,$=G.height;else if(re&&!$){const pe=re/G.width;$=Math.round(G.height*pe)}else if(!re&&$){const pe=$/G.height;re=Math.round(G.width*pe)}}}y=typeof y=="string"?y:Z;let ae=!v&&(j==="lazy"||typeof j>"u");(!y||y.startsWith("data:")||y.startsWith("blob:"))&&(S=!0,ae=!1),ne.unoptimized&&(S=!0),te&&y.endsWith(".svg")&&!ne.dangerouslyAllowSVG&&(S=!0),v&&(H="high");const de=m(E);if(process.env.NODE_ENV!=="production"){if(ne.output==="export"&&te&&!S)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)S=!0;else if(k){if(C)throw new Error('Image with src "'+y+'" has both "width" and "fill" properties. Only one should be used.');if(P)throw new Error('Image with src "'+y+'" has both "height" and "fill" properties. Only one should be used.');if(R!=null&&R.position&&R.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(R!=null&&R.width&&R.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(R!=null&&R.height&&R.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 "'+C+'".');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 "'+P+'".')}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"&&!T){const G=["jpeg","png","webp","avif"];throw new Error('Image with src "'+y+`" has "placeholder='blur'" property but is missing the "blurDataURL" property.
1
+ "use strict";var wf=Object.defineProperty;var Pf=(e,t,r)=>t in e?wf(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r;var Pr=(e,t,r)=>Pf(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-DJeLEsRl.js"),lt=require("idb-keyval"),st=require("zustand"),ho=require("js-cookie"),m=require("@soma-vertical-web/core-components"),rt=require("axios"),Ef=require("jose"),mt=require("@soma-vertical-web/foundations"),Ta=require("react-dom"),We=require("draft-js"),gs=require("@date-fns/tz"),ka=require("react-intersection-observer"),Mo=x.createContext({}),Rf=({data:e,children:t})=>n.jsx(Mo.Provider,{value:{tags:e==null?void 0:e.config},children:t}),vt=()=>{const{tags:e}=x.useContext(Mo),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}},Oa=({gridScrollBack:e})=>{x.useEffect(()=>{typeof window<"u"&&(e!=null&&e.refer)&&sessionStorage.setItem(e==null?void 0:e.refer,"true")},[])},Ma=x.createContext({}),Af=({children:e,gridScrollBack:t})=>{const r=x.useRef(null);return Oa({gridScrollBack:t}),n.jsx(Ma.Provider,{value:{sizesContainerRef:r},children:e})},La=()=>{const e=x.useContext(Ma);if(e===void 0)throw new Error("useContext(PDPContext) must be used within a PDPProvider");return e},Ye=({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?Da(u):"")}:{},...r==="add_to_wishlist"||r==="remove_from_wishlist"?{value:p,currency:Se.configs.currency}:{}},d=Ut({data:o,customData:{...s,...i,...a},configs:Se.configs});Ye({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)=>Ut({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}));Ye({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,S,v,j,w,E,C;const d=s==null?void 0:s.find(R=>(h.productId??h.id)===R.productId);let f={...i,...c};if(d){const R=za(),k=Ba(R,d);k&&(f={...f,...k}),t==="add_to_cart"&&(i||c)&&go({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"&&go({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)??((S=h.itemOffered)==null?void 0:S.skuName),Se.configs.NAME_SPLIT_SYMBOL).size;return Ut({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)??((C=(E=(w=(j=d==null?void 0:d.offers)==null?void 0:j.offers)==null?void 0:w[0])==null?void 0:E.seller)==null?void 0:C.identifier)??h.seller},configs:Se.configs})});Ye({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(", "))),Ye({event:"filter",data:{...o,...a,...r}})},viewCartEvent:e=>{var p,h,d,f,g,_,y,b,S,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:w,itemList:E}=a[j.id]??{};return Ut({data:{...j,price:j.price/100,listPrice:j.listPrice/100},customData:{...w,...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];Ye({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}:{},...((S=o.marketingData)==null?void 0:S.coupon)&&{sale_coupon_name:(v=o.marketingData)==null?void 0:v.coupon},subtotal:c,items:i}}})},readyEvents:e=>{const{event:t,readyData:r}=e;Ye({event:t,data:{...r}})}},Da=e=>e.reduce((t,r)=>(r.available&&t.push(r.value),t),[]).toString(),If=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]}:{}}:{}}},Ut=({data:e,customData:t,configs:r})=>({...Nf(e,r==null?void 0:r.MAIN_IMAGE),...Tf(e),...kf(e),...Of(e),...t}),$a=()=>{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("_"))??[]:[]},za=()=>{const e=window.localStorage.getItem("persistedCartEventsData");return e?JSON.parse(e):null},Ba=(e,t)=>e==null?void 0:e[t],go=({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)))},Nf=(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)}},ys=e=>Array.isArray(e)?e.reduce((t,r)=>(r.length>t.length&&(t=r),t),""):e,Tf=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=ys(o),i=ys(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]}}},kf=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}}},Of=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}},Fa=()=>{const[e,t]=$a(),[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}},Mf=Object.freeze(Object.defineProperty({__proto__:null,eventsFunctions:Se,findDataInPersistedData:Ba,getAvailablesSizes:Da,getCategories:If,getPageCategoryAndDepartmentFromSlug:Fa,getPersistedData:za,getProductListInfoFromHead:$a,pushDatalayer:Ye,updatePersistedData:go},Symbol.toStringTag,{value:"Module"})),qa=x.createContext({}),Lf=({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){Ye({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(qa.Provider,{value:{sendDataLayerEvent:c,triggerSelectItemEventRef:i,promotionEventRef:r,currentLocalRef:o,itemListRef:s,cartProductsFullDataRef:a,handleSelectContent:l,handleSelectPromotionEvent:u},children:e})},le=()=>x.useContext(qa),Ha=x.createContext({}),Df=({children:e,productData:t,isKit:r,PDP_INFO:o,NAME_SPLIT_SYMBOL:s,TEXTURE_IMAGE:a})=>{var T,H;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}=vt(),S=b(Object.entries(t.clusterHighlights).map(W=>({id:W[0],name:W[1]}))),v=y.slice(1,-1).split("/"),{installments:j,price:w,listPrice:E,sizes:C,allSizesAvailable:R}=U.getSkuInfos({items:p,NAME_SPLIT_SYMBOL:s}),k=U.getThumbImage({images:h,TEXTURE_IMAGE:a}),P=[{label:`${o.product.description}`,value:"description",content:f},{label:`${o.product.materiais}`,value:"composition",content:g}],N=((H=U.getColorAndSizeFromSkuName((T=t.items)==null?void 0:T[0].name,s))==null?void 0:H.color)??t["Cores Filtráveis"][0]??"",I=()=>({commonData:{...t,sizes:C,price:w,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:W,size:q})=>{const{commonData:K,customData:V}=I();i({functionKey:"productEvents",data:{event:"view_item",commonData:K,customData:{...V,...W&&{item_sku:W},...q&&{item_variant2:q}}}})};return x.useEffect(()=>{if(c.current.trigger){const{commonData:W,customData:q}=I();i({functionKey:"productEvents",data:{event:"select_item",commonData:W,customData:{...q,index:c.current.index}}}),c.current.trigger=!1}z({})},[]),n.jsx(Ha.Provider,{value:{productData:t,productId:l,productName:u,productReference:_,tag:S,items:p,sizes:C,allSizesAvailable:R,installments:j,price:w,listPrice:E,thumbImage:k,images:h,video:d[0],descriptionContent:P,breadcrumbList:v,isKit:r,colorName:N,handleViewItemEvent:z},children:e})},De=()=>{const e=x.useContext(Ha);if(e===void 0)throw new Error("useContext(PDPDataContext) must be used within a PDPDataProvider");return e},$f=()=>{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}}]},Ua=()=>{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)}},[])},zf=typeof window>"u",Bf=(e,t)=>{const[r,o]=x.useState(()=>{if(zf)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 Lo(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 Ff=({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}},Wa=({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),S=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:S,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:S,y:v}=l.current,j=Math.max(g,Math.min(_,S)),w=Math.max(y,Math.min(b,v));if(f.touches.length>1){const E=f.touches[0],C=f.touches[1],R=E.pageX-C.pageX,k=E.pageY-C.pageY;i.current=Math.sqrt(R*R+k*k),c.current={x:(E.pageX+C.pageX)/2,y:(E.pageY+C.pageY)/2}}else f.touches.length===1&&(c.current={x:f.touches[0].pageX-j,y:f.touches[0].pageY-w})},[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 S=f.touches[0],v=f.touches[1],j=S.pageX-v.pageX,w=S.pageY-v.pageY,E=Math.sqrt(j*j+w*w);if(!i.current){i.current=E;return}const C=E/i.current,R=Math.max(1,Math.min(t,s*C));if(s===R)return;a(R);const k=(S.pageX+v.pageX)/2,P=(S.pageY+v.pageY)/2;let N=k-c.current.x,I=P-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 S=f.touches[0].pageX,v=f.touches[0].pageY;let j=S-c.current.x,w=v-c.current.y;j=Math.max(g,Math.min(_,j)),w=Math.max(y,Math.min(b,w)),l.current={x:j,y:w},p(j,w,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}},qf={attachment:"ATTACHMENT",specification:"SPECIFICATION",attribute:"ATTRIBUTE"},Be=Promise.resolve(!1),yo={id:"",isOpen:!1,items:[],loading:!1,marketingData:null,messages:[],openTextField:{},paymentData:null,shippingData:null,totalizers:[],itemMetadata:[],recentlyAddedProducts:[],addCoupon:()=>Be,addItem:()=>Be,addSellerCode:()=>Be,addMarketingData:()=>Be,emptyCart:()=>{},removeItem:()=>Be,setIsOpen:()=>{},shipping:()=>Be,shippingUpdate:()=>Be,toggleServiceToProduct:()=>Be,updateItemQuantity:()=>Be,insertProfileEmail:()=>Be,setRecentlyAddedProducts:()=>{}},Do=e=>e===0,Va=(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},Ga=(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:S,seller:v,referenceId:j,offerings:w,productRefId:E,skuName:C,sellingPrice:R}=e;return{availability:r,bundleItems:s,referenceId:j,productRefId:E,id:a,ean:l,uniqueId:i,itemOffered:{additionalProperty:[],brand:{name:o},categories:Va(y,_),categoriesIds:y,gtin:S,image:[{alternateName:(t==null?void 0:t.MAIN_IMAGE)??"1",url:u}],name:p,isVariationOf:{name:p,productGroupID:b},sku:a,slug:c,skuName:C},listPrice:h,quantity:d,offerings:w,price:f,priceDefinition:g,sellingPrice:R,seller:v}},Ka=(e,t)=>{const r=e.map(o=>({id:o.id,quantity:o.quantity,seller:o.seller}));return Array.isArray(t)?[...r,...t]:[...r,t]},Xa=(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:[]}},Qa=(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)??""}}),_o=(e,t)=>e.filter(r=>r.availability!=="withoutStock").findIndex(({id:r})=>r===t),Hf=(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},Uf=e=>{const t=e.reduce((s,a)=>{const i=Do(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}},Wf=e=>Array.isArray(e)?e.filter(t=>t.availability!=="withoutStock").reduce((t,r)=>t+(Do(r==null?void 0:r.price)?0:r.quantity),0):0,Ya=(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=>Ga(h,t)):[],marketingData:s,messages:a,openTextField:c,paymentData:l,shippingData:u,totalizers:p}},Za=(e,t)=>{const r=e.find(o=>o.id===t);return r?r.availability==="unavailableItemFulfillment":!1},Vf=(e,t)=>{const r=e.sku,o=e.isVariantOf.hasVariant.find(s=>s.sku===r);return o?o.name.split(t)[1]:"--"},dt=(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},Gf=(e,t)=>{const r=new Set;return[e,...t].filter(o=>!r.has(o)&&r.add(o),r)},Ja=(e,t)=>t&&Array.isArray(t)&&t.find(o=>o.id===e)?Promise.resolve(e):Promise.resolve(!1),ec=(e,t)=>t?Promise.resolve(e[t]):Promise.resolve(!1),tc=async e=>{try{const t=await e();if(typeof t!="boolean")return t}catch(t){console.error(`[Error orderForm]: ${t}`)}return!1},rc=(e,t)=>{if(t!==-1){const r=Number(e);return r?r+1:1}return e??1},nc=(e,t)=>Array.isArray(e)?e.filter(r=>t==null?void 0:t.some(o=>o.id===r.id)):[],oc=async(e,t)=>e.then(r=>[...r??[],...t??[]]),ke=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:Ya(c,o)})},sc=(e,t,r)=>({notifications:[...e.notifications,{id:Date.now(),message:t,callback:r}]}),ic=e=>[...Array.isArray(e)?e:[e],"faststore"],ac=e=>{const t=e.get("utm_source")||et("utm_source"),r=e.get("utm_campaign")||et("utm_campaign"),o=e.get("utm_medium")||et("utm_medium"),s=e.get("utmi_cp")||et("utmi_cp"),a=e.get("utmi_pc")||et("utmi_pc"),i=e.get("utmi_p")||et("utmi_p");return{...t&&{utmSource:t},...o&&{utmMedium:o},...r&&{utmCampaign:r},...s&&{utmiCampaign:s},...a&&{utmiPart:a},...i&&{utmipage:i}}},et=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},Kf=Object.freeze(Object.defineProperty({__proto__:null,VALUE_REFERENCES:qf,addItemOrder:Ka,addNotification:sc,createItemOrder:Ga,fetchCartAPI:ke,findItemIndex:_o,findOptions:nc,findTotalizerValue:Hf,getCategories:Va,getCode:dt,getQuantity:rc,getRemoveId:Ja,getSize:Vf,getTotalItems:Wf,getTotalizer:Uf,getUrlParameter:et,getValue:ec,initialState:yo,isGift:Do,marketingTagsBuilder:ic,mergeOptionsPromise:oc,mountMarketingData:ac,orderFormValues:Ya,promiseDefault:Be,removeQuantity:Xa,updateItemSellerExternal:Za,updateOrderFormPromise:tc,updateQuantity:Qa,wishlistArray:Gf},Symbol.toStringTag,{value:"Module"})),Xf=()=>{const e=async(f,g)=>ke("/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 ke("/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?ke("/api/checkout/order-form/attachments",{body:{orderFormId:f,sellerCode:_,sellerName:y.nome}}).then(S=>({...S,openTextField:{...(S==null?void 0:S.openTextField)??{},statusOk:!0}})):Promise.resolve({paymentData:null,openTextField:{statusOk:!1,value:_}})}else return ke("/api/checkout/order-form/attachments",{body:{orderFormId:f,sellerCode:"",sellerName:""}})},r=async(f,g)=>ke("/api/checkout/order-form/attachments/marketing-data",{body:{orderFormId:f,marketingData:g}}),o=async(f,g,_)=>ke("/api/checkout/order-form/items",{body:{orderFormId:f,orderItems:Ka(g,_)}}),s=async(f,g,_,y=!1)=>ke("/api/checkout/order-form/offerings",{body:{id:g,itemIndex:_,orderFormId:f,remove:y}}),a=async f=>ke("/api/checkout/order-form/items/remove-all",{body:{orderFormId:f}}),i=async(f,g="low")=>ke("/api/checkout/order-form",{priority:g,body:{orderFormId:f??""}}),c=async(f,g)=>ke("/api/checkout/order-form/profile",{body:{orderFormId:f,email:g}}),l=async(f,g,_)=>{const y=Xa(g,_);return ke("/api/checkout/order-form/items/update",{body:{orderItems:y.updateItems,orderFormId:f}})},u=async(f,g,_)=>ke("/api/checkout/order-form/shipping",{body:{orderFormId:f,country:_,postalCode:g}}),p=async(f,g,_)=>ke("/api/checkout/order-form/shipping/update",{body:{orderFormId:f,options:g,selectedAddresses:_}}),h=async(f,g,_,y)=>{const b=Qa(g,_,y);return ke("/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(S=>S&&Array.isArray(S.items)?Za(S.items,_)?h(f,g,_,b):S:!1)}},vo="soma::cart",wt="soma::options",ht=st.create((e,t)=>{const r=Xf(),o=async(s,a,i)=>{e({loading:!0});const c=await tc(s);if(typeof c!="boolean"){e({...c});const l=await oc(lt.get(wt),i);return lt.set(wt,l),ec(c,a).finally(()=>e({loading:!1,options:l}))}return Be};if(typeof window<"u"){const s=async a=>{if(a){const i=await lt.get(wt).then(u=>nc(u,a.items));lt.set(vo,a),lt.set(wt,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 lt.get(vo).then(a=>r.getOrderForm(a?a.id:"").then(s)),{...yo,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 Ja(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 yo}),Qf=()=>ht(e=>e),cc=st.create(e=>({notifications:[],actions:{addNotification:(t,r)=>e(o=>sc(o,t,r)),removeNotification:t=>e(r=>({notifications:r.notifications.filter(o=>o.id!==t)}))}})),$o=()=>cc(e=>e.notifications),zo=()=>cc(e=>e.actions),Yf=Object.freeze(Object.defineProperty({__proto__:null,KEY_INDEXED_OPTIONS:wt,KEY_INDEXED_STORE:vo,useCartStore:ht,useGetCartStoreState:Qf,useGetNotificationActions:zo,useGetNotificationsStore:$o},Symbol.toStringTag,{value:"Module"})),Zf=6e3,lc=x.createContext({}),uc=({children:e,...t})=>{const{items:r}=ht(),[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([])},Zf))},[o]),n.jsx(lc.Provider,{value:x.useMemo(()=>({...t,setRecentlyAdded:s,recentlyAddedProducts:i}),[t,s,i]),children:e})},Nt=()=>{const e=x.useContext(lc);if(e===void 0)throw new Error("useUIContext must be used within a UIProvider");return e};class dc{constructor(){Pr(this,"events",{});Pr(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 fc=x.createContext({}),Jf=({children:e,headerConfigs:t,pathname:r,...o})=>{const[s,a]=x.useState(!0),[i,c]=x.useState(!1),l=r==="/",u=x.useRef(new dc),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"))&&(ho.get("lastMedias")||ho.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(fc.Provider,{value:{isMobile:s,mediatorRef:u,currentHeaderConfigsRef:d,deviceValidated:i,...o},children:n.jsx(uc,{children:e})})},fe=()=>x.useContext(fc),pc=x.createContext({}),ep=({children:e,...t})=>n.jsx(pc.Provider,{value:{...t},children:e}),be=()=>x.useContext(pc),it=(e,t)=>st.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}}}),At={category:null,menuMobileIsOpen:!1,searchModalIsOpen:!1,userMenuIsOpen:!1},Tt=new Set,tp=()=>{Tt.forEach(e=>{e()})},mc=st.create((e,t)=>{const r=()=>e({value:At.category});return Tt.add(r),{value:At.category,actions:{reset:r,setValue:o=>e(()=>({value:o})),updateValue:o=>{t().value!==o&&e({value:o})}}}}),mr=()=>mc(e=>e.value),Je=()=>mc(e=>e.actions),hc=it(At.menuMobileIsOpen,Tt),Bo=()=>hc(e=>e.value),at=()=>hc(e=>e.actions),gc=it(At.searchModalIsOpen,Tt),rp=()=>gc(e=>e.value),Fo=()=>gc(e=>e.actions),yc=it(At.userMenuIsOpen,Tt),_c=()=>yc(e=>e.value),kt=()=>yc(e=>e.actions),np=Object.freeze(Object.defineProperty({__proto__:null,resetAllHeaderStores:tp,useActionsHeaderCategory:Je,useActionsMenuMobileIsOpen:at,useActionsSearchModalIsOpen:Fo,useActionsUserMenuIsOpen:kt,useGetHeaderCategoryStore:mr,useGetMenuMobileIsOpen:Bo,useGetSearchModalIsOpen:rp,useGetUserMenuIsOpen:_c},Symbol.toStringTag,{value:"Module"})),gt={selectedSkuInfo:{productId:"",name:"",size:"",sku:"",sellerId:"",sellerName:"",available:!1,quantity:1},openLetMeKnow:!1,openMeasurements:!1,showBottomNavigation:!1,showNotify:!1},xt=new Set,op=()=>{xt.forEach(e=>{e()})},vc=st.create(e=>{const t=()=>e({value:gt.selectedSkuInfo});return xt.add(t),{value:gt.selectedSkuInfo,actions:{setValue:r=>e(o=>({value:{...o,...r}})),reset:t}}}),Ot=()=>vc(e=>e.value),xc=()=>vc(e=>e.actions),bc=it(gt.openLetMeKnow,xt),sp=()=>bc(e=>e.value),ip=()=>bc(e=>e.actions),jc=it(gt.showNotify,xt),Cc=()=>jc(e=>e.value),qo=()=>jc(e=>e.actions),Sc=it(gt.showBottomNavigation,xt),ap=()=>Sc(e=>e.value),cp=()=>Sc(e=>e.actions),wc=it(gt.openMeasurements,xt),Pc=()=>wc(e=>e.value),Ec=()=>wc(e=>e.actions),lp=Object.freeze(Object.defineProperty({__proto__:null,resetAllPDPStores:op,useActionsPDPOpenLetMeKnow:ip,useActionsPDPOpenMeasurements:Ec,useActionsPDPSelectedSkuInfo:xc,useActionsPDPShowBottomNavigation:cp,useActionsPDPShowNotify:qo,useGetPDPOpenLetMeKnow:sp,useGetPDPOpenMeasurements:Pc,useGetPDPSelectedSkuInfo:Ot,useGetPDPShowBottomNavigation:ap,useGetPDPShowNotify:Cc},Symbol.toStringTag,{value:"Module"})),_s={feedback:{active:!1,action:"add"},list:[]},Ho=st.create((e,t)=>({value:_s,actions:{reset:()=>e({value:_s}),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:""}}}))}})),Uo=()=>Ho(e=>e.value.list),up=()=>Ho(e=>e.value.feedback),Wo=()=>Ho(e=>e.actions),dp=Object.freeze(Object.defineProperty({__proto__:null,useActionsWishlistStore:Wo,useGetWishlistFeedbackStore:up,useGetWishlistStore:Uo},Symbol.toStringTag,{value:"Module"})),Rc=x.createContext({}),fp=({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}=fe();return(p=l.current)==null||p.subscribe("header:change_variant",d=>{var b,S,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!==((S=u.current)==null?void 0:S.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(Rc.Provider,{value:{headerData:t,structureRef:s,rootRef:o,tipbarRef:a,userMenuMobileRef:i,userMenuDesktopRef:c,...r},children:e})},je=()=>x.useContext(Rc),Ac=x.createContext({}),Ic=({children:e})=>{const t=x.useRef(null),r=x.useRef(null),o=Bo(),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(Ac.Provider,{value:{bodyRef:t,handleCloseSubMenu:s,documentBodyRef:r},children:e})},Mt=()=>x.useContext(Ac),pp=e=>{if(!e||typeof window>"u")return 0;const t=window.getComputedStyle(e);return parseInt(t.padding,10)},mp=(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?pp(e==null?void 0:e.parentElement):0;return{left:o.left+o.width/2-(s.width+a),top:o.top+o.height+r}},Nc=x.createContext({}),Tc=({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:_}=mp(f,d,r??0);p({left:g,top:_}),l(!1)}},[r,s]),n.jsx(Nc.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})},ct=()=>{const e=x.useContext(Nc);if(e===void 0)throw new Error("useAddToCartContext must be used within a AddToCartProvider");return e},kc=x.createContext({}),hp=({children:e,CARTPROVIDER_MESSAGE_PRODUCT_REMOVE:t,...r})=>{const o=ht(),{setRecentlyAdded:s}=Nt(),a=x.useRef(""),i=$o(),{addNotification:c,removeNotification:l}=zo(),{addCoupon:u,addItem:p,addSellerCode:h,addMarketingData:d,emptyCart:f,isOpen:g,removeItem:_,shipping:y,shippingUpdate:b,toggleServiceToProduct:S,updateItemQuantity:v}=o;x.useEffect(()=>{const q=ho.get("lastMedias");if(o.id&&q&&a.current!==q){a.current=q;const K=new URLSearchParams(q),V=ac(K);d(V)}},[o,d]);const j=x.useCallback(async(q,K)=>(K==="coupon"?u(q):h(q)).then(B=>{if(typeof B!="boolean"&&B instanceof Object){if(K==="seller"&&"value"in B){const{statusOk:J,value:A}=B,O=String(A??"").split(" - ");return dt((O==null?void 0:O[0])??"",q,!!J)}return dt(String(B.coupon),q,!0)}return dt("","")}).catch(()=>Promise.resolve({code:400})),[u,h]),w=x.useCallback((q,K,V)=>{const{id:B}=q;v(B,K,V)},[v]),E=x.useCallback((q,K,V=!1)=>{if(!q)return;const{id:B}=q,J=_o(o.items,B);if(J!==-1&&!V){const A=Number(o.items[J].quantity),O=o.items[J]?A+1:1;w(q,O,K)}else p({id:B,quantity:(q==null?void 0:q.quantity)??1,seller:q.seller});g||s(A=>[...A,q])},[p,w,o.items,g,s]),C=x.useCallback((q,K)=>{if(!q||!Array.isArray(q))return;s(B=>[...B,...q]);const V=q.map(B=>{const{id:J,quantity:A,seller:O}=B,D=_o(o.items,J),X=rc(A??1,D);return{id:J,quantity:X,seller:O}});p(V,K)},[p,o.items,s]),R=x.useCallback(async(q,K,V)=>q?_(q).then(()=>(c(K??`${t}`,V),dt(q,q))):Promise.resolve(dt("","Product id required")),[c,_]),k=x.useCallback(()=>{o.items.length>0&&f()},[f,o.items]),P=x.useCallback((q,K="BRA")=>y(q,K),[y]),N=x.useCallback(q=>{q&&b(q)},[b]),I=x.useCallback(async(q,K,V)=>{const B=o.items.findIndex(A=>A.id===q);return o.items[B]&&B>=0?S(K,B,V??!1):!1},[o.items,S]),z=x.useCallback(async(q,K)=>v(q,K).then(V=>{if(Array.isArray(V)){const B=V.find(J=>J.id===q);if(B&&(B==null?void 0:B.quantity)<K)return String(B.quantity)}return!1}),[v]),T=x.useCallback(async()=>{await d({...o.marketingData,coupon:""})},[d,o.marketingData]),H=x.useCallback(async()=>{await d({...o.marketingData,utmiCampaign:"",utmCampaign:"",utmSource:"",utmMedium:""})},[d,o.marketingData]),W=x.useCallback(async()=>{await y("","BRA")},[y]);return n.jsx(kc.Provider,{value:x.useMemo(()=>({...r,addCouponSeller:j,addToCart:E,addItemsToCart:C,cartStore:o,notifications:i,clearCart:k,addNotification:c,isOpen:o.isOpen,removeNotification:l,removeToCart:R,setIsOpen:o.setIsOpen,shipping:P,shippingUpdateOption:N,toggleGiftItemCart:I,updateItemQuantity:z,removeCoupon:T,removeSellerCode:H,removeCEP:W}),[r,j,E,C,i,k,c,o,l,R,P,N,I,z,T,H,W]),children:e})},Ee=()=>{const e=x.useContext(kc);if(e===void 0)throw new Error("useCartContext must be used within a CartProvider");return e},Oc=x.createContext({}),Vo=({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(Oc.Provider,{value:x.useMemo(()=>({data:o,isLoading:r.current??!1,isError:a}),[o,a,r]),children:e})},Go=()=>{const e=x.useContext(Oc);if(e===void 0)throw new Error("useProductsContext must be used within a useRootContext");return e},Mc=x.createContext({}),Lc=({children:e,sort:t,state:r,count:o,collectionId:s,brand:a,CONSTANTS:i})=>{const c=x.useMemo(()=>{var l;return s?[{key:"productclusterids",value:s.toString()}]:a?[{key:"brand",value:a}]:(l=r.base)!=null&&l.length?r.base.slice(1).split("/").map((u,p)=>({key:`category-${p+1}`,value:u})):[]},[r.base,s]);return n.jsx(Mc.Provider,{value:x.useMemo(()=>({state:{...r,facets:[...c,...r.facets??[]]},sort:t,count:o??i.ITEMS_PER_PAGE}),[c,o,t,r]),children:e})},hr=()=>{const e=x.useContext(Mc);if(e===void 0)throw new Error("useSearchContext must be used within a SearchProvider");return e},Ct={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"}},gp={nextPage:!1,previousPage:!1,startCursor:"0",endCursor:"0",count:0,total:0},yp="Imagem do produto",vs=1,_p="Sair",vp=e=>e.exit,xp=({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"}],bp=(e,t)=>{const r=(t??"").split("@")[0];return e?`Olá${r.length?", ":" "}${r}!`:"Olá!"},jp=e=>"Seja bem vindo!",Dc=x.createContext({}),Cp=({children:e,searchParams:t,selectedFacets:r,PLP_SORT_DEFAULT:o})=>{const{data:s,...a}=Go(),{router:i}=be(),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}`),i.push(`?${f.toString()}`)}},[i]),l=x.useCallback(()=>{const d=new URLSearchParams;d.set("sort",o),d.set("page","1"),i.push(`?${d.toString()}`)},[i]),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",_)}),i.push(`?${f.toString()}`)},[i]),p=x.useCallback(d=>{const f=new URLSearchParams(U.convertSearchParams(t));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,t]),h=x.useCallback(d=>{const f=new URLSearchParams(U.convertSearchParams(t));f.set("sort",d.replace("_",":")),i.push(`?${f.toString()}`)},[i,t]);return n.jsx(Dc.Provider,{value:x.useMemo(()=>({...a,breadcrumb:s&&"breadcrumb"in s?s==null?void 0:s.breadcrumb:[],deleteAllFacets:l,facets:s&&"facets"in s?s==null?void 0:s.facets:[],selectedFacets:r,onToggleFacet:p,onSort:h,searchParams:t}),[s,l,h,p,a,r,t]),children:e})},Sp=({children:e,searchParams:t,forceUpdate:r,PLP_SORT_DEFAULT:o})=>{const{state:s}=hr();return n.jsx(Vo,{fetch:()=>fetch("/api/search/facets",{method:"POST",body:JSON.stringify({...s,forceUpdate:r}),priority:"low"}),children:n.jsx(Cp,{selectedFacets:(s==null?void 0:s.facets)??[],searchParams:t,PLP_SORT_DEFAULT:o,children:e})})},wp=()=>{const e=x.useContext(Dc);if(e===void 0)throw new Error("useFacetsContext must be used within a FacetsProvider");return e},$c=x.createContext({}),Pp=({children:e})=>{const{data:t,...r}=Go(),[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($c.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:gp,total:o}),[t,r,o]),children:e})},Ep=({children:e,query:t,state:r,selectedFacets:o,forceUpdate:s})=>n.jsx(Vo,{fetch:()=>fetch("/api/search/product",{method:"POST",body:JSON.stringify({...r,query:t,forceUpdate:s,facets:o??[]})}),children:n.jsx(Pp,{state:r,children:e})}),Rp=()=>{const e=x.useContext($c);if(e===void 0)throw new Error("useProductsContext must be used within a ProductsProvider");return e},zc=x.createContext({}),Ap=({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(zc.Provider,{value:x.useMemo(()=>({suggestedTerms:r,loading:s,setLoading:a}),[r,s]),children:e})},Ip=({children:e,...t})=>n.jsx(Ap,{...t,children:e}),Np=()=>{const e=x.useContext(zc);if(!e)throw new Error("useSuggestedTermsContext must be used within a SuggestedTermsProvider");return e},Bc=x.createContext({searches:[],isLoading:!1,error:null}),Tp=({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(Bc.Provider,{value:x.useMemo(()=>({searches:t,isLoading:o,error:a}),[t,o,a]),children:e})},kp=()=>{const e=x.useContext(Bc);if(!e)throw new Error("useTopSearches must be used within a TopSearchesProvider");return e},Fc=x.createContext({}),Op=({children:e,slug:t,searchParams:r,collectionId:o,brand:s,itemsPerPage:a=24,PLP_SORT_DEFAULT:i})=>{const{pathname:c}=be(),l=x.useRef(""),[u,p]=x.useState(!1),h=x.useMemo(()=>{const f=new URL(c,"http://localhost"),g=Array.isArray(r==null?void 0:r.facets)?r.facets:[(r==null?void 0:r.facets)??""],_=(r==null?void 0:r.page)??"1",y=(r==null?void 0:r.sort)??(o?"":i);return f.searchParams.set("page",String(_)),f.searchParams.set("sort",String(y)),r!=null&&r.query?(f.searchParams.set("query",r.query),f):(f.searchParams.set("base",Array.isArray(t)?t.join("/"):t),f.searchParams.set("facets",g.join(",")),f)},[o,c,r,t]),d=x.useMemo(()=>{if(Array.isArray(r==null?void 0:r.facets))return U.parseSearchState(h,r.facets);const f=r!=null&&r.facets?[r==null?void 0:r.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(Fc.Provider,{value:x.useMemo(()=>({openFilters:u,setOpenFilters:p}),[u,p]),children:n.jsx(Lc,{CONSTANTS:{ITEMS_PER_PAGE:a},state:x.useMemo(()=>({...d}),[d]),collectionId:o,brand:s,children:e})})},Mp=()=>{const e=x.useContext(Fc);if(e===void 0)throw new Error("usePLPContext must be used within a PLPProvider");return e},lr=(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)=>lr(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)&&lr(e[s],t[s]))},qc=(e,t,r="page")=>Object.keys(t).some(o=>o===r?!1:!lr(t[o],e[o])),xo=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},Hc=()=>({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}}}),Uc=(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}},bo=(e,t,r,o=24)=>{const{placedBanners:s,taken:a}=Uc(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}},cr=(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:Ko(),products:t!=null&&t.products.length&&e===a?t==null?void 0:t.products:Array.from({length:r},()=>Hc())}}),Wc=(e,t)=>[...e,{loading:!1,page:t,pagination:Ko(),products:[]}],Ko=()=>({nextPage:!1,previousPage:!1,startCursor:"0",endCursor:"1",count:1,total:1}),Lp=(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})},Vc=(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},Dp=(e,t)=>{if(!e)return[];const r=e.map((o,s)=>o.video&&o.video!==""?s:null).filter(o=>o);return Vc(r,t)},Gc=e=>Array.isArray(e)?e.map((t,r)=>({href:`/${e.slice(0,r+1).join("/")}`,name:t})):[],$p=Object.freeze(Object.defineProperty({__proto__:null,createBreadcrumb:Gc,createPage:Wc,createPages:cr,createPagination:Ko,createProduct:Hc,deepEqual:lr,fetchPage:xo,getBanners:Uc,getPositions:bo,getProductsWithVideo:Dp,getRandomVideoPerRow:Vc,getVisibleBanners:Lp,hasStateChangedExceptPage:qc},Symbol.toStringTag,{value:"Module"})),zp=50,Bp=st.create((e,t)=>{const r=i=>Math.min(i,zp),o=async(i,c)=>{const l=r(i.page);try{const u=await xo({...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:cr(p,void 0,u)});try{const g=await xo({...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:cr((f=g==null?void 0:g.pagination)==null?void 0:f.total)});return}typeof l=="function"&&l(g),e({load:!0,pages:cr(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:Wc(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)}}}),Fp=(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},qp=(e,t,r)=>{const o=(t-1)*r,s=t*r;return e>=o&&e<=s},Kc=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)},Hp=Object.freeze(Object.defineProperty({__proto__:null,createGridPosAndVideo:Fp,getSkusNotify:Kc,isPositionInCurrentPage:qp},Symbol.toStringTag,{value:"Module"})),Xc=x.createContext({}),Up=({banners:e,children:t,itemsPerPage:r=24,searchParams:o,Notification:s})=>{const{router:a}=be(),{sendDataLayerEvent:i}=le(),{isMobile:c}=fe(),{state:l}=hr(),{addPage:u,createPages:p,updateProducts:h,...d}=Bp(),f=c?8:16,g=c?2:4,_=x.useRef(!1),y=x.useRef(l),[b,S]=x.useState(!1),[v,j]=x.useState(null),[w,E]=x.useState([]),C=x.useCallback(I=>{I&&"pagination"in I&&i({functionKey:"productListEvent",data:{event:"view_item_list",commonData:{products:I.products}}})},[i]),R=x.useCallback(I=>{if(I.pagination.nextPage===!0){const z=I.page+1,T=bo(e,z,g,r);u({...l,page:z},T,C)}},[u,e,C,g,r,l]),k=x.useCallback(I=>{I.loading===!1&&h({...l,page:I.page},C)},[C,h,l]),P=x.useCallback(I=>{const z=new URLSearchParams(o);I.page!==Number(z.get("page")??1)&&(z.set("page",String(I.page)),a.replace(`?${z.toString()}`,{scroll:!1}))},[a,o]),N=x.useCallback((I,z)=>{const T=z?Kc([z]):null;E(I),j(T!=null&&T.length?T[0]:null),S(!0)},[]);return x.useEffect(()=>{const I=!_.current,z=qc(y.current,l),T=bo(e,l.page,g);I?p(l,T,C,r):z&&(p(l,T,C,r),y.current=l),_.current=!0},[e,p,C,g,r,l]),n.jsxs(Xc.Provider,{value:x.useMemo(()=>({...d,addPage:u,addNewPage:R,createPages:p,gap:f,columns:g,handleNotify:N,updatePage:k,updateProducts:h,updateParamPage:P}),[u,R,p,N,f,g,d,k,h,P]),children:[t,n.jsx(s,{notify:b,sku:v,skus:w,setSku:j,setNotify:S})]})},Wp=()=>{const e=x.useContext(Xc);if(e===void 0)throw new Error("PLPInfiniteScrollContext must be used within a ScrollInfiniteProvider");return e};function Qc(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 Xo(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 Vp=()=>{const{sendDataLayerEvent:e}=le(),{user:t}=Lt(),{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",_),S=Array.from(new Uint8Array(y)).map(v=>v.toString(16).padStart(2,"0")).join("");e({functionKey:"readyEvents",data:{readyData:{user_id:S,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},Yc=x.createContext({amount:null,boxes:null,toExpire:null,loading:!0,logout:()=>null,getCurrentCredits:()=>({credits:0,cashback:0})}),Gp=({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(()=>{Xo(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(Yc.Provider,{value:x.useMemo(()=>({...r,getCurrentCredits:i,logout:a}),[r,i,a]),children:[n.jsx(Vp,{}),e]})},Lt=()=>{const e=x.useContext(Yc);if(e===void 0)throw new Error("useContext(SessionContext) must be used within a SessionProvider");return e},Zc=x.createContext({gridBanners:void 0,banners:[]}),Kp=({children:e,data:t,device:r,SectionZone:o,COMMON_PAGE_COLUMN_GAP_PDC:s})=>{const{isMobile:a}=fe(),i=(t==null?void 0:t.sections.filter(h=>h.name!=="List Product Banners"))??[],c=i.slice(0,vs),l=i.slice(vs,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(Zc.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,{})},Xp=()=>{const e=x.useContext(Zc);return e===void 0&&console.error("Needs PLPContentContext on parent component"),e},Jc=x.createContext({}),el=({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(Jc.Provider,{value:x.useMemo(()=>({...o,filters:{...t,facets:s}}),[t,s,o]),children:e})},bt=()=>{const e=x.useContext(Jc);if(e===void 0)throw new Error("useFilterContext must be used within a FilterProvider");return e},tl=x.createContext({product:void 0}),Qp=({children:e,data:t,productId:r,COMMON_PAGE_COLUMN_GAP:o,SectionZone:s})=>n.jsxs(tl.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)??[]})})]}),rl=()=>{const e=x.useContext(tl);return e||console.error("use this hook only inside PDPContentProvider hierarchy"),e},Yp=e=>e.normalize("NFD").replace(/[\u0300-\u036f]/g,"").replace(/\s+/g,"-").toLowerCase().trim();function Zp(e,t=1e3){let r=!1;return(...o)=>{r||(e(...o),r=!0,setTimeout(()=>{r=!1},t))}}function Jp(e,t=1e3){let r;return(...o)=>{clearTimeout(r),r=setTimeout(()=>{e(...o)},t)}}const nl=(e,t)=>t.getTime()>e.getTime()?Math.abs(t.getTime()-e.getTime()):0,Pt=(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),em=e=>{const t=Ef.decodeJwt(e??"");return{email:t.sub,userId:t.userId}},tm=["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}$/},ol=({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)},rm=e=>{const t=/\/(\d+)-\d+-\d+\/(.+?)\./,r=typeof e=="string"?e.match(t):null;return r?r[2].replace(/-/g," "):yp},nm=Object.freeze(Object.defineProperty({__proto__:null,FieldTypes:tm,debounce:Jp,getAltTextFromUrl:rm,getAuthenticatedUser:em,getCookie:Qc,getDaysHoursMinutesSeconds:Pt,getMilliSeconds:nl,removeAccentsAndReplaceSpaces:Yp,setCookie:Xo,throttle:Zp,validateInput:ol},Symbol.toStringTag,{value:"Module"})),om=({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}},sm=({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}ol({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}},sl=x.createContext({}),il=({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(()=>om({fields:r}),[r]),p=x.useRef(!1),[h,d]=x.useState("idle"),[f,g]=x.useState(u),_=async({searchFields:E,entity:C})=>{const R=await rt.post("/api/master-data/search",{body:{masterDataEntity:C,searchFields:E,headers:{"REST-Range":"resources=0-49"}}});return console.info(R),R.data},y=async({id:E,fieldsToBeUpdated:C,entity:R})=>(await rt.post("/api/master-data/update",{dataEntityName:R,id:E,fieldsToBeUpdated:C})).status,b=x.useCallback(async({payload:E,response:C},R,k)=>{const{email:P,...N}=E,[I]=await _({searchFields:{[R]:P},entity:k??s.newsletter});return I&&await y({id:I.id,fieldsToBeUpdated:N,entity:k??s.newsletter})!==204?{...C,status:"error"}:{...C,status:"success"}},[]),S=x.useCallback(async({formData:E},C,R)=>{const k={status:"idle",inputsStatus:{}},P={};E.forEach((N,I)=>{P[I]=N});try{const I=(await rt.post("/api/master-data",{body:{payload:P,masterDataEntity:C??s.newsletter}})).data;return(I==null?void 0:I.Message)==="duplicated entry"?b({payload:P,response:k},R,C):I!=null&&I.Id?{...k,status:"success"}:{...k,status:"error"}}catch(N){return console.error("error",N),{...k,status:"error"}}},[b]),v=x.useCallback(async(E,C,R)=>{E.preventDefault();const k=new FormData(E.target);C&&Object.keys(C).forEach(N=>{k.append(N,C[N])});const P=await S({formData:k},R??"",t);P&&(d(P==null?void 0:P.status),g(P.inputsStatus),P.status==="success"&&i({functionKey:"readyEvents",data:{event:"generate_lead"}}))},[t,S,d,g,i]),j=x.useCallback(E=>{const C=new FormData(E.currentTarget.parentElement),{hasEmptyFields:R,hasErrors:k,inputStatusToUpdate:P}=sm({formData:C,mountedFields:l,inputsStatus:f,hasTermsAndConditions:c,checkboxRef:p,setFormStatus:d});if(g(P),R||k){E.preventDefault();return}d("loading")},[l,f,c,p]),w=x.useCallback(()=>{d("idle"),g(u)},[u]);return n.jsx(sl.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:w}),[h,v,d,f,g,j,c,p,t,r,o,w]),children:e})},Qo=()=>{const e=x.useContext(sl);if(e===void 0)throw new Error("useNewsletterContext must be used within a NewsletterProvider");return e},im={contexts:{addToCart:{hook:ct,provider:Tc},cart:{hook:Ee,provider:hp},cms:{FlagsAndTags:{context:Mo,hook:vt,provider:Rf}},newsletter:{hook:Qo,provider:il},events:{hook:le,provider:Lf},global:{hook:fe,provider:Jf,mediator:dc},header:{hook:je,provider:fp},menuMobile:{hook:Mt,provider:Ic},next:{hook:be,provider:ep},pdp:{provider:Af},PDPContent:{provider:Qp,hook:rl},plp:{provider:Op,hook:Mp},plpFilter:{hook:bt,provider:el},PLPContent:{provider:Kp,hook:Xp},plpInfinite:{provider:Up,hook:Wp},pdpdata:{provider:Df},searchFacets:{hook:wp,provider:Sp},searchProducts:{hook:Rp,provider:Ep},searchRoot:{hook:Go,provider:Vo},searchSearch:{hook:hr,provider:Lc},searchSuggestedTerms:{hook:Np,provider:Ip},searchTopSearchs:{hook:kp,provider:Tp},session:{hook:Lt,provider:Gp},ui:{hook:Nt,provider:uc}},hooks:{useBackPDC:Oa,useClipboard:$f,useDisableZoom:Ua,useLocalStorage:Bf,useOnScreen:Lo,useSentinel:Ff,useTouchZoomPan:Wa},stores:{cart:Yf,header:np,pdp:lp,wishlist:dp}},am={cart:Kf,events:Mf,plp:$p,product:U.productHelpers,utils:nm},Yo={helpers:am},ze={"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"},al=({brand:e,className:t,name:r,...o})=>n.jsxs("div",{...o,className:m.helpers.classNameConcat(ze["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})})})]});al.displayName="AddToCart.Card.Name";const cl=({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(ze["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")})})})})};cl.displayName="AddToCart.Card.PriceQuantity";const cm="_skeleton_12b79_1",lm={skeleton:cm},ll=({style:e})=>n.jsx("div",{style:e,className:lm.skeleton}),um="_image_lypfr_1",dm={image:um},fm=({alt:e,className:t,objectFit:r,...o})=>{const{nextimage:s}=be();return n.jsx(s,{quality:90,...o,alt:e??"",className:m.helpers.classNameConcat(dm.image,t),"data-object-fit":r??"cover"})},pm=({videoRef:e,...t})=>n.jsx("video",{...t,ref:e,children:n.jsx("track",{kind:"captions"})}),$e={Image:fm,Video:pm},ul=({className:e,productGroupID:t,size:r,texture:o,...s})=>{const{CONSTANTS:{TEXTURE_IMAGE:a,TOGGLE_STYLE_MODIFIER:i}}=ct(),[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(ze["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($e.Image,{alt:"",src:c??"",width:164,height:164,style:i}):n.jsx(ll,{})})}),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})]})]})};ul.displayName="AddToCart.Card.StyleSize";const{helpers:mm}=Yo,dl=({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}}=ct(),{size:d}=mm.product.getColorAndSizeFromSkuName(i??s,h);return n.jsxs("div",{...o,className:m.helpers.classNameConcat(ze["add-to-cart--card--content"],e),children:[n.jsx(al,{brand:a.name,name:s}),n.jsx(cl,{price:u,listPrice:p,quantity:l,productId:t.id}),n.jsx(ul,{size:d,texture:r,productGroupID:c})]})};dl.displayName="AddToCart.Card.Content";const fl=({image:e,thumbnail:t=!1})=>n.jsx($e.Image,{alt:e.alternateName??"image","data-thumbnail":t,height:t?152:120,src:e.url,width:t?152:94});fl.displayName="AddToCart.Card";const pl=({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(ze["add-to-cart--card"],e),children:[n.jsx(fl,{image:{alternateName:a.alternateName||"Produto",url:i||""},thumbnail:o}),!o&&n.jsx(dl,{item:t,texture:r})]})};pl.displayName="AddToCart.Card";const ml=({className:e,children:t,title:r,...o})=>n.jsxs("div",{...o,className:m.helpers.classNameConcat(ze["add-to-cart--content"],e),children:[n.jsx("div",{className:ze["add-to-cart--content--title"],children:r&&n.jsx("h2",{children:r})}),t,n.jsx(nt.Footer,{})]});ml.displayName="AddToCart.Layout.Content";const hl=({className:e,...t})=>{var f,g;const{isMobile:r,handleClose:o,CONSTANTS:{ADD_TO_CART:s}}=ct(),{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(ze["add-to-cart--footer"],e),children:[n.jsxs("div",{className:ze["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})]})};hl.displayName="AddToCart.Layout.Footer";const gl=({children:e,className:t,thumbnail:r=!1,...o})=>{const{cartStore:{options:s}}=Ee(),{recentlyAddedProducts:a}=Nt(),i=a.length>3?4:a.length;return n.jsxs("div",{...o,className:ze["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(nt.Card,{item:c,thumbnail:r,texture:l},c.itemOffered.sku)}),e]})};gl.displayName="AddToCart.Layout.Items";const yl=({children:e,Z_INDEX_WAR:t})=>{const{isOpen:r,setIsOpen:o}=ct(),{isMobile:s}=fe();return n.jsxs(m.Modal.Root,{"data-modal":"add-to-cart--modal",className:ze["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})]})};yl.displayName="AddToCart.Modal";const hm=({children:e})=>{const{count:t,handleClose:r,setIsOpen:o}=ct(),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})},_l=({children:e,component:t,CONSTANTS:r,...o})=>{const{recentlyAddedProducts:s}=Nt(),{isMobile:a}=fe(),i=s.length>3?4:s.length;return n.jsx(Tc,{...o,count:i,isMobile:a,CONSTANTS:r,children:n.jsx(hm,{children:a?n.jsxs(n.Fragment,{children:[n.jsx(nt.Modal,{Z_INDEX_WAR:r.Z_INDEX_WAR,children:t}),e]}):n.jsx(nt.Tooltip,{component:t,style:{width:350},Z_INDEX_WAR:r.Z_INDEX_WAR,children:e})})})};_l.displayName="AddToCart.Root";const vl=({children:e,component:t,Z_INDEX_WAR:r,...o})=>{const{contentRef:s,left:a,isLeaving:i,target:c,isOpen:l,top:u}=ct();return n.jsx(m.Tooltip.Root,{arrow:"top-right",component:n.jsx("div",{...o,ref:s,children:t}),id:"add-to-cart--tooltip",className:ze["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:ze["add-to-cart--tooltip"],ref:c,children:e})})};vl.displayName="AddToCart.Tooltip";const nt={Card:pl,Content:ml,Footer:hl,Items:gl,Modal:yl,Root:_l,Tooltip:vl},Zo=({title:e,...t})=>{const{recentlyAddedProducts:r}=Nt(),{isMobile:o}=fe(),s=r.length>3?4:r.length,a=r.length>(s??1),i=r.length>1;return n.jsx(nt.Root,{isMobile:o,count:r.length,component:n.jsx(nt.Content,{title:e,children:n.jsx(nt.Items,{thumbnail:i,children:a&&n.jsx(m.Badge.Count,{count:r.length-s,size:"medium",variant:"secondary"})})}),...t})};Zo.displayName="AddToCart";const bs={"backtotop-btn":"_backtotop-btn_1shb6_1","card-modifier":"_card-modifier_1shb6_27"},gm=({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(bs["card-modifier"],t),style:{...a,padding:0},children:n.jsxs("button",{className:bs["backtotop-btn"],onClick:p,style:{...u},"data-orientation":o,children:[r,e]})})},ym="_container_1sy8s_16",Ze={"carousel-container":"_carousel-container_1sy8s_1","add-cart-container":"_add-cart-container_1sy8s_8",container:ym,"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"},_m=({selectedProducts:e,handleAddAllToCart:t,CONSTANTS:r})=>{const o=Object.values(e.products).length;return n.jsxs("div",{className:Ze["add-itens-to-cart-container"],children:[n.jsxs("div",{className:Ze["add-itens-to-cart-container-values"],children:[n.jsx("div",{className:Ze["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:Ze["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:Ze["add-button"],size:"large",disabled:o===0,variant:"primary",children:r.BUY_BUTTON_LABELS.add_to_cart})]})},vm=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},[]),xm=({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}},xl=x.createContext({}),bm=({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(xl.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})},He=()=>{const e=x.useContext(xl);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"},bl=({callback:e,children:t,className:r,data:o,isKit:s,...a})=>{const{item:{availability:{status:i},image:c}}=He();return i?n.jsxs("div",{...a,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};bl.displayName="ProductCard.Actions";const jl=({className:e,isKit:t,...r})=>{const{addToCart:o}=Ee(),{isMobile:s=!1,selectedSku:a,outStock:i,item:c,sendAddToCartEvent:l,CONSTANTS:u}=He(),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})};jl.displayName="ProductCard.Actions.BuyButton";const Cl=({product:e,tag:t,size:r="small"})=>{const o=e.offers.offers[0],{CONSTANTS:s,WishListToggle:a}=He();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"})]})};Cl.displayName="ProductCard.Actions.Header";var Sl=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function gr(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function jm(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 jo={exports:{}},Oe={};Oe._=Oe._interop_require_default=Cm;function Cm(e){return e&&e.__esModule?e:{default:e}}var Wt={exports:{}},Er={},js;function wl(){return js||(js=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}}(Er)),Er}var Rr={},yt={};function Pl(e){if(typeof WeakMap!="function")return null;var t=new WeakMap,r=new WeakMap;return(Pl=function(o){return o?r:t})(e)}yt._=yt._interop_require_wildcard=Sm;function Sm(e,t){if(!t&&e&&e.__esModule)return e;if(e===null||typeof e!="object"&&typeof e!="function")return{default:e};var r=Pl(t);if(r&&r.has(e))return r.get(e);var o={},s=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if(a!=="default"&&Object.prototype.hasOwnProperty.call(e,a)){var i=s?Object.getOwnPropertyDescriptor(e,a):null;i&&(i.get||i.set)?Object.defineProperty(o,a,i):o[a]=e[a]}return o.default=e,r&&r.set(e,o),o}var Cs;function El(){return Cs||(Cs=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=yt._(wl()),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)}}(Rr)),Rr}var Ar={},Ss;function wm(){return Ss||(Ss=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}}(Ar)),Ar}var Ir={},ws;function yr(){return ws||(ws=1,function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(j,w){for(var E in w)Object.defineProperty(j,E,{enumerable:!0,get:w[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 S},stringifyError:function(){return v}});const r=["CLS","FCP","FID","INP","LCP","TTFB"];function o(j){let w=!1,E;return function(){for(var C=arguments.length,R=new Array(C),k=0;k<C;k++)R[k]=arguments[k];return w||(w=!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:w,port:E}=window.location;return j+"//"+w+(E?":"+E:"")}function c(){const{href:j}=window.location,w=i();return j.substring(w.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 w=j.split("?");return w[0].replace(/\\/g,"/").replace(/\/\/+/g,"/")+(w[1]?"?"+w.slice(1).join("?"):"")}async function h(j,w){if(process.env.NODE_ENV!=="production"){var E;if((E=j.prototype)!=null&&E.getInitialProps){const k='"'+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(k)}}const C=w.res||w.ctx&&w.ctx.res;if(!j.getInitialProps)return w.ctx&&w.Component?{pageProps:await h(w.Component,w.ctx)}:{};const R=await j.getInitialProps(w);if(C&&u(C))return R;if(!R){const k='"'+l(j)+'.getInitialProps()" should resolve to an object. But found "'+R+'" instead.';throw new Error(k)}return process.env.NODE_ENV!=="production"&&Object.keys(R).length===0&&!w.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(w){super(),this.code="ENOENT",this.name="PageNotFoundError",this.message="Cannot find module for page: "+w}}class b extends Error{constructor(w,E){super(),this.message="Failed to load static file for page: "+w+" "+E}}class S 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})}}(Ir)),Ir}var Vt={exports:{}},Nr={},Ps;function Rl(){return Ps||(Ps=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(/\/$/,"")||"/"}}(Nr)),Nr}var Tr={},Es;function Jo(){return Es||(Es=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:""}}}(Tr)),Tr}var Rs;function _r(){return Rs||(Rs=1,function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"normalizePathTrailingSlash",{enumerable:!0,get:function(){return s}});const r=Rl(),o=Jo(),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)}(Vt,Vt.exports)),Vt.exports}var kr={},Gt={exports:{}},Or={},As;function Al(){return As||(As=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"pathHasPrefix",{enumerable:!0,get:function(){return r}});const t=Jo();function r(o,s){if(typeof o!="string")return!1;const{pathname:a}=(0,t.parsePath)(o);return a===s||a.startsWith(s+"/")}}(Or)),Or}var Is;function Pm(){return Is||(Is=1,function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"hasBasePath",{enumerable:!0,get:function(){return s}});const r=Al(),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)}(Gt,Gt.exports)),Gt.exports}var Ns;function Il(){return Ns||(Ns=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"isLocalURL",{enumerable:!0,get:function(){return o}});const t=yr(),r=Pm();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}}}(kr)),kr}var Mr={},Lr={},Ts;function Em(){return Ts||(Ts=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()}}(Lr)),Lr}var Dr={},ks;function Rm(){return ks||(ks=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)}}(Dr)),Dr}var Os;function Am(){return Os||(Os=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=Em(),o=Rm()}(Mr)),Mr}var $r={},zr={},Ms;function Im(){return Ms||(Ms=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"getRouteMatcher",{enumerable:!0,get:function(){return r}});const t=yr();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}}}(zr)),zr}var Br={},Fr={},qr={},Hr={},Ls;function Nm(){return Ls||(Ls=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}}(Hr)),Hr}var Ur={},Ds;function Tm(){return Ds||(Ds=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(")")}}(Ur)),Ur}var $s;function km(){return $s||($s=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=Nm(),o=Tm();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}}(qr)),qr}var zs;function Om(){return zs||(zs=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=km(),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}}}(Fr)),Fr}var Wr={},Bs;function Mm(){return Bs||(Bs=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}}(Wr)),Wr}var Fs;function Lm(){return Fs||(Fs=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=Om(),o=Mm(),s=Rl(),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 S=1;return{parameterizedRoute:y.map(v=>{const j=r.INTERCEPTION_ROUTE_MARKERS.find(E=>v.startsWith(E)),w=v.match(/\[((?:\[.*\])|.+)\]/);if(j&&w){const{key:E,optional:C,repeat:R}=c(w[1]);return b[E]={pos:S++,repeat:R,optional:C},"/"+(0,o.escapeStringRegexp)(j)+"([^/]+?)"}else if(w){const{key:E,repeat:C,optional:R}=c(w[1]);return b[E]={pos:S++,repeat:C,optional:R},C?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:S,keyPrefix:v}=_;const{key:j,optional:w,repeat:E}=c(b);let C=j.replace(/\W/g,"");v&&(C=""+v+C);let R=!1;return(C.length===0||C.length>30)&&(R=!0),isNaN(parseInt(C.slice(0,1)))||(R=!0),R&&(C=y()),v?S[C]=""+v+j:S[C]=""+j,E?w?"(?:/(?<"+C+">.+?))?":"/(?<"+C+">.+?)":"/(?<"+C+">[^/]+?)"}function d(_,y){const b=(0,s.removeTrailingSlash)(_).slice(1).split("/"),S=p(),v={};return{namedParameterizedRoute:b.map(j=>{const w=r.INTERCEPTION_ROUTE_MARKERS.some(C=>j.startsWith(C)),E=j.match(/\[((?:\[.*\])|.+)\]/);return w&&E?h({getSafeRouteKey:S,segment:E[1],routeKeys:v,keyPrefix:y?i:void 0}):E?h({getSafeRouteKey:S,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:S=!0}=y;if(b==="/")return{namedRegex:"^/"+(S?".*":"")+"$"};const{namedParameterizedRoute:v}=d(_,!1);let j=S?"(?:(/.*)?)":"";return{namedRegex:"^"+v+j+"$"}}}(Br)),Br}var qs;function Dm(){return qs||(qs=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"interpolateAs",{enumerable:!0,get:function(){return o}});const t=Im(),r=Lm();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}}}($r)),$r}var Hs;function $m(){return Hs||(Hs=1,function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"resolveHref",{enumerable:!0,get:function(){return p}});const r=wl(),o=El(),s=wm(),a=yr(),i=_r(),c=Il(),l=Am(),u=Dm();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:C,params:R}=(0,u.interpolateAs)(v.pathname,v.pathname,E);C&&(j=(0,o.formatWithValidation)({pathname:C,hash:v.hash,query:(0,s.omit)(E,R)}))}const w=v.origin===g.origin?v.href.slice(v.origin.length):v.href;return f?[w,j||w]:w}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)}(Wt,Wt.exports)),Wt.exports}var Kt={exports:{}},Vr={},Gr={},Us;function Nl(){return Us||(Us=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"addPathPrefix",{enumerable:!0,get:function(){return r}});const t=Jo();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}}(Gr)),Gr}var Ws;function zm(){return Ws||(Ws=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"addLocale",{enumerable:!0,get:function(){return o}});const t=Nl(),r=Al();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)}}(Vr)),Vr}var Vs;function Bm(){return Vs||(Vs=1,function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"addLocale",{enumerable:!0,get:function(){return o}});const r=_r(),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)(zm().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)}(Kt,Kt.exports)),Kt.exports}var Kr={},Gs;function Tl(){return Gs||(Gs=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"RouterContext",{enumerable:!0,get:function(){return o}});const o=Oe._(x).default.createContext(null);process.env.NODE_ENV!=="production"&&(o.displayName="RouterContext")}(Kr)),Kr}var Xr={},Ks;function Fm(){return Ks||(Ks=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=Oe._(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")}(Xr)),Xr}var Xt={exports:{}},Qt={exports:{}},Xs;function kl(){return Xs||(Xs=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)}(Qt,Qt.exports)),Qt.exports}var Qs;function qm(){return Qs||(Qs=1,function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"useIntersection",{enumerable:!0,get:function(){return u}});const r=x,o=kl(),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 S=g.get(b.target),v=b.isIntersecting||b.intersectionRatio>0;S&&v&&S(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(S=>S.root===f.root&&S.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),S=(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[S,_,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)}(Xt,Xt.exports)),Xt.exports}var Yt={exports:{}},Zt={exports:{}},Qr={},Ys;function Hm(){return Ys||(Ys=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}}}(Qr)),Qr}var Zs;function Um(){return Zs||(Zs=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?Hm().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)}(Zt,Zt.exports)),Zt.exports}var Jt={exports:{}},Yr={},Js;function Wm(){return Js||(Js=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}}}}(Yr)),Yr}var ei;function Vm(){return ei||(ei=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 Wm().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)}(Jt,Jt.exports)),Jt.exports}var ti;function Gm(){return ti||(ti=1,function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"getDomainLocale",{enumerable:!0,get:function(){return s}});const r=_r(),o=process.env.__NEXT_ROUTER_BASEPATH||"";function s(a,i,c,l){if(process.env.__NEXT_I18N_SUPPORT){const u=Um().normalizeLocalePath,p=Vm().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)}(Yt,Yt.exports)),Yt.exports}var er={exports:{}},ri;function Km(){return ri||(ri=1,function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"addBasePath",{enumerable:!0,get:function(){return a}});const r=Nl(),o=_r(),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)}(er,er.exports)),er.exports}var tr={exports:{}},ni;function Xm(){return ni||(ni=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)}(tr,tr.exports)),tr.exports}(function(e,t){"use client";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return w}});const o=Oe._(x),s=$m(),a=Il(),i=El(),c=yr(),l=Bm(),u=Tl(),p=Fm(),h=qm(),d=Gm(),f=Km(),g=Xm(),_=new Set;function y(E,C,R,k,P,N){if(typeof window>"u"||!N&&!(0,a.isLocalURL)(C))return;if(!k.bypassPrefetchedCheck){const z=typeof k.locale<"u"?k.locale:"locale"in E?E.locale:void 0,T=C+"%"+R+"%"+z;if(_.has(T))return;_.add(T)}const I=N?E.prefetch(C,P):E.prefetch(C,R,k);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 S(E,C,R,k,P,N,I,z,T,H){const{nodeName:W}=E.currentTarget;if(W.toUpperCase()==="A"&&(b(E)||!T&&!(0,a.isLocalURL)(R)))return;E.preventDefault();const K=()=>{const V=I??!0;"beforePopState"in C?C[P?"replace":"push"](R,k,{shallow:N,locale:z,scroll:V}):C[P?"replace":"push"](k||R,{forceOptimisticNavigation:!H,scroll:V})};T?o.default.startTransition(K):K()}function v(E){return typeof E=="string"?E:(0,i.formatUrl)(E)}const w=o.default.forwardRef(function(C,R){let k;const{href:P,as:N,children:I,prefetch:z=null,passHref:T,replace:H,shallow:W,scroll:q,locale:K,onClick:V,onMouseEnter:B,onTouchStart:J,legacyBehavior:A=!1,...O}=C;k=I,A&&(typeof k=="string"||typeof k=="number")&&(k=o.default.createElement("a",null,k));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 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"&&(C[se]==null||typeof C[se]!="string"&&typeof C[se]!="object"))throw ie({key:se,expected:"`string` or `object`",actual:C[se]===null?"null":typeof C[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 Q=typeof C[se];if(se==="as"){if(C[se]&&Q!=="string"&&Q!=="object")throw ie({key:se,expected:"`string` or `object`",actual:Q})}else if(se==="locale"){if(C[se]&&Q!=="string")throw ie({key:se,expected:"`string`",actual:Q})}else if(se==="onClick"||se==="onMouseEnter"||se==="onTouchStart"){if(C[se]&&Q!=="function")throw ie({key:se,expected:"`function`",actual:Q})}else if((se==="replace"||se==="scroll"||se==="shallow"||se==="passHref"||se==="prefetch"||se==="legacyBehavior")&&C[se]!=null&&Q!=="boolean")throw ie({key:se,expected:"`boolean`",actual:Q})});const Y=o.default.useRef(!1);C.prefetch&&!Y.current&&!ee&&(Y.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 ie;if(typeof P=="string"?ie=P:typeof P=="object"&&typeof P.pathname=="string"&&(ie=P.pathname),ie&&ie.split("/").some(G=>G.startsWith("[")&&G.endsWith("]")))throw new Error("Dynamic href `"+ie+"` found in <Link> while using the `/app` router, this is not supported. Read more: https://nextjs.org/docs/messages/app-dir-dynamic-href")}const{href:Z,as:re}=o.default.useMemo(()=>{if(!D){const G=v(P);return{href:G,as:N?v(N):G}}const[ie,_e]=(0,s.resolveHref)(D,P,!0);return{href:ie,as:N?(0,s.resolveHref)(D,N):_e||ie}},[D,P,N]),$=o.default.useRef(Z),M=o.default.useRef(re);let oe;if(A)if(process.env.NODE_ENV==="development"){V&&console.warn('"onClick" was passed to <Link> with `href` of `'+P+'` 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 `'+P+'` but "legacyBehavior" was set. The legacy behavior requires onMouseEnter be set on the child of next/link');try{oe=o.default.Children.only(k)}catch{throw k?new Error("Multiple children were passed to <Link> with `href` of `"+P+"` but only one child is supported https://nextjs.org/docs/messages/link-multiple-children"+(typeof window<"u"?`
3
+ Open your browser's console to view the Component stack trace.`:"")):new Error("No children were passed to <Link> with `href` of `"+P+"` but one child is required https://nextjs.org/docs/messages/link-no-children")}}else oe=o.default.Children.only(k);else if(process.env.NODE_ENV==="development"&&(k==null?void 0:k.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 ae=A?oe&&typeof oe=="object"&&oe.ref:R,[de,pe,ce]=(0,h.useIntersection)({rootMargin:"200px"}),F=o.default.useCallback(ie=>{(M.current!==re||$.current!==Z)&&(ce(),M.current=re,$.current=Z),de(ie),ae&&(typeof ae=="function"?ae(ie):typeof ae=="object"&&(ae.current=ie))},[re,ae,Z,ce,de]);o.default.useEffect(()=>{process.env.NODE_ENV==="production"&&ne&&(!pe||!L||y(ne,Z,re,{locale:K},{kind:te},ee))},[re,Z,pe,K,L,D==null?void 0:D.locale,ne,ee,te]);const xe={ref:F,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 V=="function"&&V(ie),A&&oe.props&&typeof oe.props.onClick=="function"&&oe.props.onClick(ie),ne&&(ie.defaultPrevented||S(ie,ne,Z,re,H,W,q,K,ee,L))},onMouseEnter(ie){!A&&typeof B=="function"&&B(ie),A&&oe.props&&typeof oe.props.onMouseEnter=="function"&&oe.props.onMouseEnter(ie),ne&&((!L||process.env.NODE_ENV==="development")&&ee||y(ne,Z,re,{locale:K,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&&(!L&&ee||y(ne,Z,re,{locale:K,priority:!0,bypassPrefetchedCheck:!0},{kind:te},ee))}};if((0,c.isAbsoluteUrl)(re))xe.href=re;else if(!A||T||oe.type==="a"&&!("href"in oe.props)){const ie=typeof K<"u"?K: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);xe.href=_e||(0,f.addBasePath)((0,l.addLocale)(re,ie,D==null?void 0:D.defaultLocale))}return A?o.default.cloneElement(oe,xe):o.default.createElement("a",{...O,...xe},k)});(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 Qm=jo.exports,Ym=Qm;const Me=gr(Ym),Ol=({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}=He(),f=U.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: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:Ie["product-card--image--container"],children:Array.isArray(f)&&f.map(({url:g,alternateName:_},y)=>x.createElement($e.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]})};Ol.displayName="ProductCard.Media.Media";const Ml=({className:e,callback:t,children:r,...o})=>{const{isMobile:s,item:a,CONSTANTS:{PRODUCT_CARD_TEXTS:i}}=He(),{availability:{status:c}}=a;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: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})]})};Ml.displayName="ProductCard.OutStock";const Ll=({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(bm,{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(Ie["product-card--wrapper"],t),"data-size":a,children:e})});Ll.displayName="ProductCard.Root";const Dl=({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})]});Dl.displayName="ProductCard.SizeSelector.Item";const $l=({active:e=!1,callback:t,selectedSku:r=null,item:o,setNotify:s})=>{const{item:a,isMobile:i,setSelectedSku:c,eventDataRef:l}=He();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(Dl,{active:e,disabled:u,label:p,onClick:()=>d(),size:i?"x-small":"small",value:o})};$l.displayName="ProductCard.SizeSelector.SkuItem";const zl=({callback:e,className:t="",children:r,setNotify:o,...s})=>{const{isMobile:a,item:{isVariantOf:{hasVariant:i}},selectedSku:c}=He();return n.jsxs("div",{...s,className:m.helpers.classNameConcat(Ie["product-card--selectors--size"],t),"data-mobile":a,children:[n.jsx("div",{className:Ie["product-card--selectors--size--skus"],children:Array.isArray(i)&&i.map((l,u)=>n.jsx($l,{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})]})};zl.displayName="ProductCard.SizeSelector";const Co=({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($e.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]})})]})]}),Zm=({children:e,callback:t,data:r,total:o=4,size:s,...a})=>{const{index:i}=He(),{triggerSelectItemEventRef:c}=le();return n.jsxs("div",{...a,children:[e,Array.isArray(r)&&r.slice(0,o).map((l,u)=>n.jsx(Co,{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(Co,{size:s,total:r.length-o,more:!0})]})},Bl=({callback:e,className:t,data:r,images:o=[],findTexture:s,...a})=>{const{CONSTANTS:i}=He(),c=s||i.TEXTURE_IMAGE,l=o==null?void 0:o.find(u=>c.includes(u.alternateName));return n.jsx(Zm,{...a,callback:e,className:m.helpers.classNameConcat(Ie["product-card--selectors--style"],t),data:r,size:"x-small",children:l&&n.jsx(Co,{active:!0,size:"x-small",src:l.url})})};Bl.displayName="ProductCard.StyleSelector";const Fl=({className:e,hasDecimal:t,...r})=>{const{isMobile:o,item:{offers:{lowPrice:s,highPrice:a},installments:{count:i,value:c}},eventDataRef:l}=He();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(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: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]})})})};Fl.displayName="ProductCard.Price";const ql=({tag:e,className:t})=>{const{item:{name:r}}=He();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})})})})]})};ql.displayName="ProductCard.Title";const Hl=({className:e,url:t,poster:r,...o})=>{const{element:s}=He();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(Ie["product-card--video"],e),children:t&&n.jsx($e.Video,{autoPlay:!1,muted:!0,loop:!0,preload:"none",playsInline:!0,poster:r})})};Hl.displayName="ProductCard.Media.Video";const Ul=({children:e,className:t,type:r,...o})=>n.jsx("div",{...o,className:m.helpers.classNameConcat(Ie[`product-card--${r}`],t),children:e});Ul.displayName="ProductCard.Wrapper";const ve={Actions:bl,BuyButton:jl,Header:Cl,Media:Ol,Root:Ll,OutStock:Ml,Price:Fl,SizeSelector:zl,StyleSelector:Bl,Title:ql,Video:Hl,Wrapper:Ul},Jm="_carousel_245ib_1",eh="_shelf__container_245ib_14",th="_shelf_without_carousel_245ib_34",rh="_card_container_245ib_50",pt={carousel:Jm,"custom-controllers":"_custom-controllers_245ib_5",shelf__container:eh,"controllers-arrows-bullets":"_controllers-arrows-bullets_245ib_23",shelf_without_carousel:th,card_container:rh},oi=({title:e})=>n.jsx("div",{className:pt.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})]})})}),nh=({children:e,ICONS:t,itemsPerPage:r,title:o})=>{const{isMobile:s}=fe(),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:pt.carousel,children:[n.jsxs("div",{className:pt["custom-controllers"],children:[o&&n.jsx(oi,{title:o}),a<p&&n.jsxs(m.Carousel.Controller,{className:pt["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(oi,{title:o}),n.jsx("div",{className:pt.shelf_without_carousel,children:e})]})},Wl=({className:e,item:t,isMobile:r,size:o,shelfTitle:s,...a})=>{const i=x.useRef(null),{getAvailableProductTag:c}=vt(),{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:pt.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"})]})})};Wl.displayName="ProductList.Card";const It={Shelf:nh,Card:Wl},Vl=({CONSTANTS:e,inView:t,products:r,innerRef:o,WishListToggle:s})=>{const a=x.useMemo(()=>vm(r),[r]),{isMobile:i}=fe(),{addItemsToCart:c}=Ee(),{sendDataLayerEvent:l}=le(),{getAvailableProductTag:u}=vt(),[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=xm({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:Ze.container,ref:o,children:[n.jsx("div",{className:Ze["carousel-container"],style:{width:a.length<=3?"max-content":"75%"},children:n.jsx(It.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 S,v,j;const y=u(g.cluster.highlights),{availability:{status:b}}=g;return b?n.jsxs(ve.Root,{item:{...g,image:Yo.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:(S=y.institucional)==null?void 0:S.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:w=>f({selectedProduct:w,productId:g.id})})})]})]},g.id):null})})}),n.jsx("div",{className:Ze["add-cart-container"],children:n.jsx(_m,{handleAddAllToCart:d,selectedProducts:p,CONSTANTS:{BUY_BUTTON_LABELS:e.BUY_BUTTON_LABELS,BUY_PACKAGE:e.BUY_PACKAGE,FREIGHT_CALCULATION:e.FREIGHT_CALCULATION}})})]})},es={"btn-login":"_btn-login_yas63_12","btn-header":"_btn-header_yas63_22","header-animation":"_header-animation_yas63_35"},ts=({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"})]})})};ts.displayName="Header.Bag";const Dt=({children:e,href:t,...r})=>t&&t!=="#"?n.jsx(Me,{href:t.startsWith("/")?t:`/${t}`,...r,children:e}):e,Gl=()=>{const{headerData:e}=je(),{handleSelectContent:t}=le(),{reset:r,updateValue:o}=Je(),s=a=>{a?o(a):r()};return n.jsx(m.Header.Categories,{children:Array.isArray(e.categories)&&e.categories.map((a,i)=>n.jsx(Dt,{href:a.link,onMouseEnter:()=>s(a.submenuId),onFocus:()=>s(a.submenuId),children:n.jsx(m.Header.CategoryItem,{className:es["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}`))})};Gl.displayName="Header.Categories";function oh(){const{handleSelectContent:e}=le(),{CONSTANTS:t}=je(),{setValue:r}=Fo();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 sh={"menu-subcategories-container":"_menu-subcategories-container_a93cr_1"},ih={"observer-wrapper":"_observer-wrapper_r43gk_1"},vr=({children:e,eventData:t,observerOptions:r,callBackWhenVisible:o,stopOnIntersection:s=!0,className:a,...i})=>{const c=x.useRef(null),l=Lo(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(ih["observer-wrapper"],a),children:e})},rs=({thumbnails:e,category:t,isMobile:r=!0,callBack:o})=>{const{handleSelectPromotionEvent:s}=le(),a=50/e.length;return n.jsx("div",{className:sh["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(vr,{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($e.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}`)})})};rs.displayName="Menu.Thumbnail";const So={"menu-desktop":"_menu-desktop_1b799_1","menu-categories":"_menu-categories_1b799_12"},ah="_link_w24h0_1",ch="_wrapper_w24h0_98",lh="_text_w24h0_106",Zr={link:ah,wrapper:ch,text:lh},Ke=({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:mt.SizesSmallExtended,property:i,fallback:"medium"}),d=m.helpers.ValidateProp({fieldTypes:mt.Mode,property:a,fallback:"default"});return n.jsx(Me,{...p,className:m.helpers.classNameConcat(Zr.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:Zr.wrapper,onClick:l,children:[t==null?void 0:t.start,n.jsx("p",{className:Zr.text,"data-size":h,children:e}),t==null?void 0:t.end]})})},Kl=({children:e,dividerOnRight:t=!0,subMenu:r,...o})=>{var l;const{router:s}=be(),{reset:a}=Je(),{handleSelectContent:i}=le(),{CONSTANTS:c}=je();return n.jsxs("div",{...o,className:So["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(Dt,{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:So["submenu-categories"],children:u.items.map((y,b)=>n.jsx(m.ComponentList.ListItem,{id:`list-item-${y.label}-${b}`,children:n.jsx(Ke,{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"})]})};Kl.displayName="Menu.Categories";const Xl=({children:e,dividerOnBottom:t=!0,...r})=>{const{CONSTANTS:o}=je();return n.jsxs(n.Fragment,{children:[n.jsx("div",{...r,className:So["menu-desktop"],style:{...r.style,justifyContent:o.header.ALIGNMENT_MENU},children:e}),t&&n.jsx(m.Utils.Divider,{size:"small"})]})};Xl.displayName="Menu.MenuRoot";const Jr={Root:Xl,Categories:Kl,Thumbnail:rs},Ql=()=>{const{headerData:e,CONSTANTS:t}=je(),r=mr(),{reset:o}=Je();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(Jr.Root,{id:l,style:u?{display:"flex",zIndex:t.header.Z_INDEX_WAR.menu_desktop}:{display:"none"},dividerOnBottom:u,children:[n.jsx(Jr.Categories,{dividerOnRight:!!p,subMenu:s}),Array.isArray(i)&&n.jsx(Jr.Thumbnail,{thumbnails:i,isMobile:!1,category:c,callBack:o})]},`submenu-${l}-${a}`)})})};Ql.displayName="Header.SubMenu";const Yl=()=>{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"})})})};Yl.displayName="Header.WishList";const Zl=()=>{const{CONSTANTS:e,userMenuDesktopRef:t}=je(),{handleSelectContent:r}=le(),{reset:o}=Je(),{setValue:s}=kt();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(Gl,{}),n.jsxs(m.Header.Support,{onMouseEnter:o,style:{justifyContent:"flex-end"},children:[n.jsx(oh,{}),n.jsx(m.Header.SupportItem,{onClick:()=>{s(!0),r({content:"header:user_menu"})},className:es["btn-login"],innerRef:t,children:n.jsx(m.Icon,{name:e.header.ICONS.person,size:"medium"})}),n.jsx(Yl,{}),n.jsx(ts,{id:"cart-button"})]})]}),n.jsx(Ql,{})]})};Zl.displayName="Header.HeaderDesktopWrapper";const uh="_divider_1lexj_199",Pe={"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:uh,"menu-navigationbar-item":"_menu-navigationbar-item_1lexj_206","menu-categories-textstructure-modifier":"_menu-categories-textstructure-modifier_1lexj_210"},Jl=({children:e,mobileBannerAlt:t,mobileBannerSrc:r,onClick:o,textColor:s,...a})=>n.jsx("button",{onClick:o,className:Pe["menu-categories-btn"],children:r?n.jsxs(m.Banner.Container,{...a,className:Pe["menu-body-banner-container-modifier"],children:[n.jsx(m.Banner.ImageWrapper,{style:{width:"100%"},children:n.jsx($e.Image,{src:r,alt:t??r,className:Pe["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:Pe["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})});Jl.displayName="Menu.MenuCategories";const eu=({children:e,link:t})=>{const{reset:r}=at();return t?n.jsx(Me,{href:t??"#",onClick:r,children:e}):e};eu.displayName="Menu.MenuCategoriesWrapper";const tu=({subcategory:e,submenuLabel:t})=>{var l,u,p;const{router:r}=be(),{reset:o}=at(),{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:Pe["menu-submenu--component-list-modifier"],children:[n.jsx(Dt,{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:Pe["submenu-categories"],children:e.items.map((h,d)=>n.jsx(m.ComponentList.ListItem,{id:`list-item-${h.label}-${d}`,divider:!0,children:n.jsx(Ke,{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})]})};tu.displayName="Menu.SubMenuSubCategory";const ru=({submenu:e})=>{var a;const t=mr(),{handleCloseSubMenu:r}=Mt(),{reset:o}=Je(),{CONSTANTS:s}=je();return n.jsxs("div",{className:Pe["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:Pe["menu-submenu--thumbnails"],children:Array.isArray(e.thumbnails)&&n.jsx(rs,{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(tu,{subcategory:i,submenuLabel:e.label},`list-${i.label}-${c}`))]})};ru.displayName="Menu.SubMenuItem";const nu=()=>{const{headerData:e}=je(),t=mr(),{reset:r}=Je(),{bodyRef:o}=Mt();return n.jsx(m.Modal.RootWithoutPortal,{isOpen:!!t,setIsOpen:r,parent:o.current,variant:"sideLeft",style:{position:"absolute",width:"100%"},className:Pe["menu-submenu-modal-modifiier"],children:n.jsx("div",{className:Pe["menu-submenu"],children:e.subMenus.map((s,a)=>n.jsx(ru,{submenu:s},`submenu-${s.id}-${a}`))})})};nu.displayName="Menu.SubMenu";const ou=({className:e,...t})=>{const{headerData:r}=je(),{setValue:o}=Je(),{bodyRef:s}=Mt(),{handleSelectContent:a}=le();return n.jsxs("div",{...t,ref:s,id:"menu-body",className:Pe["menu-body"],children:[n.jsx("div",{className:Pe["menu-categories-container"],children:r.categories.map((i,c)=>{const l=i.submenuId?{}:{"data-close":!0};return n.jsx(eu,{link:i.submenuId?null:i.link,children:n.jsx(Jl,{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(nu,{})]})};ou.displayName="Menu.MenuBody";const su=({title:e,subtitle:t})=>{const{CONSTANTS:r}=je();return n.jsxs("div",{className:Pe["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:Pe["menu-close"],"data-close":!0})]})};su.displayName="Menu.MenuHeaderWrapper";const iu=({navigationLinks:e})=>{const{reset:t}=at(),{handleSelectContent:r}=le();return e?n.jsx("nav",{className:Pe["menu-header-navlinks"],children:e.map((o,s)=>n.jsx(Ke,{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};iu.displayName="Menu.MenuHeaderNavLinks";const au=()=>{const{headerData:e}=je();return n.jsxs("div",{className:Pe["menu-header-container"],children:[n.jsx(su,{title:e.title,subtitle:e.subtitle}),n.jsx(iu,{navigationLinks:e.navigationLinks})]})};au.displayName="Menu.MenuHeaderContainer";const cu=({children:e})=>{const{documentBodyRef:t}=Mt(),{CONSTANTS:r}=je(),o=Bo(),{setValue:s}=at();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:Pe["modal-modifier"],children:n.jsx("div",{className:Pe["menu-mobile"],children:e})})};cu.displayName="Menu.MenuRoot";const lu=({children:e,...t})=>n.jsxs(n.Fragment,{children:[n.jsx(m.Button,{...t,className:Pe["menu-navigationbar-item"],children:e}),n.jsx(m.Utils.Divider,{direction:"vertical",size:"small",className:Pe.divider})]});lu.displayName="Menu.NavigationBarItem";const uu=()=>{const{setIsOpen:e}=Ee(),{reset:t}=at(),{setValue:r}=kt(),{handleSelectContent:o}=le(),{CONSTANTS:s}=je(),{router:a}=be();return n.jsx(m.Card,{id:"menu-navigationbar",shadow:!0,className:Pe["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(lu,{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}))})};uu.displayName="Menu.NavigationBar";const rr={Root:cu,NavigationBar:uu,Header:au,Body:ou},du=()=>{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}=Fo(),{setValue:l}=at(),{setValue:u}=kt();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(ts,{}),a==="right"&&n.jsx(m.Header.SupportItem,{onClick:()=>l(!0),innerRef:e,children:n.jsx(m.Icon,{name:s.menu,size:"medium"})})]})]}),n.jsx(Ic,{children:n.jsxs(rr.Root,{children:[n.jsx(rr.Header,{}),n.jsx(rr.Body,{}),o?n.jsx(rr.NavigationBar,{}):n.jsx(n.Fragment,{})]})})]})};du.displayName="Header.HeaderMobileWrapper";const dh="_root_wvekm_126",Fe={"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:dh},fu=({className:e,children:t,...r})=>n.jsx("div",{...r,className:m.helpers.classNameConcat(Fe["user-menu--content"],e),children:t});fu.displayName="UserMenu.Content";var pu=(e=>(e.Account="account",e))(pu||{});const mu=({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(Fe["user-menu--credits"],e),icon:"wallet",showIcon:!0,cashBackValue:i,creditsValue:c,linkMore:o,totalValue:l,type:pu.Account})};mu.displayName="UserMenu.Credits";const hu=({className:e,children:t,description:r,text:o,...s})=>{const{isMobile:a}=fe();return n.jsx("div",{...s,className:m.helpers.classNameConcat(Fe["user-menu--login"],e),"data-mobile":a,children:n.jsxs("div",{className:Fe["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]})})};hu.displayName="UserMenu.Login";const gu=({className:e,isLogged:t,onLogoutClick:r,ICONS:o,storeConfig:s})=>{const{isMobile:a}=fe(),i=xp({ICONS:o,storeConfig:s}).filter(c=>c.deviceShown==="both"||c.deviceShown===(a?"mobile":"desktop"));return n.jsxs("ul",{className:m.helpers.classNameConcat(Fe["user-menu--menu"],e),children:[Array.isArray(i)&&i.map((c,l)=>n.jsx("li",{children:n.jsx(Ke,{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(Ke,{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:vp(o)})},children:_p})}):n.jsx(n.Fragment,{})]})};gu.displayName="UserMenu.Menu";const yu=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}},fh=e=>{if(!e||typeof window>"u")return 0;const t=window.getComputedStyle(e);return parseInt(t.padding,10)},ph=(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?fh(e==null?void 0:e.parentElement):0;return{left:s+i/2-(c.width+l*2),top:a+o+r}},_u=x.createContext({}),mh=({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}=yu(()=>{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}=ph(d.current,a,r??0);h({left:f,top:g}),u(!1)}},[r,o,a,d]),n.jsx(_u.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})},vu=()=>{const e=x.useContext(_u);if(e===void 0)throw new Error("useUserMenuContext must be used within a UserMenuProvider");return e},xu=({children:e,isMobile:t=!1,Z_INDEX_WAR:r})=>{const{isOpen:o,setIsOpen:s}=vu();return n.jsxs(m.Modal.Root,{"data-user":"user-menu--modal",isMobile:t??!1,isOpen:o,setIsOpen:s,variant:"sideBottom",className:Fe["modal-root-modifier"],style:{zIndex:r.user_menu_mobile},children:[n.jsx(m.Modal.Header,{navigation:"top",className:Fe["modal-header-modifier"],children:n.jsx(m.Modal.Controls,{navigation:"top",isMobile:!0,className:Fe["modal-controls-modifier"]})}),n.jsx(m.Modal.Body,{children:e})]})};xu.displayName="UserMenu.Modal";const bu=({children:e,component:t,Z_INDEX_WAR:r,isMobile:o,...s})=>n.jsx(mh,{...s,className:Fe.root,children:o?n.jsxs(n.Fragment,{children:[n.jsx(tt.Modal,{Z_INDEX_WAR:r,children:t}),e]}):n.jsx(tt.Tooltip,{component:t,style:{width:304,zIndex:r.user_menu},Z_INDEX_WAR:r,children:e})});bu.displayName="UserMenu.Root";const ju=({children:e,component:t,Z_INDEX_WAR:r,...o})=>{const{contentRef:s,left:a,isLeaving:i,isOpen:c,top:l}=vu();return n.jsx(m.Tooltip.Root,{arrow:"top-right",component:n.jsx("div",{...o,ref:s,children:t}),className:m.helpers.classNameConcat(Fe["user-menu--tooltip"],Fe["tooltip-modifier"]),isLeaving:i,isOpen:c,left:a,size:"medium",position:"top",top:l,style:{zIndex:r.user_menu},children:n.jsx("div",{className:Fe["user-menu--tooltip"],children:e})})};ju.displayName="UserMenu.Tooltip";const tt={Credits:mu,Content:fu,Login:hu,Menu:gu,Modal:xu,Root:bu,Tooltip:ju},ns=()=>{var _,y,b;const e=Lt(),{isMobile:t}=fe(),{userMenuMobileRef:r,userMenuDesktopRef:o,CONSTANTS:{header:s},storeConfig:a}=je(),{ICONS:i,Z_INDEX_WAR:c,MENU_INFO:l}=s,u=_c(),{setValue:p}=kt(),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 S,v;return{credits:((S=e==null?void 0:e.getCurrentCredits())==null?void 0:S.credits)??0,cashback:((v=e==null?void 0:e.getCurrentCredits())==null?void 0:v.cashback)??0}},[e]);return n.jsx(tt.Root,{component:n.jsxs(tt.Content,{children:[n.jsx(tt.Login,{description:jp(d),text:bp(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(tt.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(tt.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})};ns.displayName="UserMenu";const hh=x.createContext({}),gh=({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;rt.post("/api/checkout/order-form/attachments/marketing-data",{orderFormId:l,marketingData:{...r==null?void 0:r.marketingData,marketingTags:ic(((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(hh.Provider,{value:{handleUpdateItemQuantityEvent:s},children:e})},yh="_fadeInOut_ottz1_1",_h="_fadeOut_ottz1_1",ue={"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:yh,fadeOut:_h,"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"},Cu=({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:ue["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)};Cu.displayName="MiniCart.Notify.Item";const Su=({ICONS:e})=>{const t=$o(),{removeNotification:r}=zo(),o=t.length?[...t].sort((s,a)=>a.id-s.id):[];return n.jsx("div",{className:ue["mc--notify"],children:n.jsx("div",{className:ue["mc--notify--content"],children:Array.isArray(o)&&o.map(s=>n.jsx(Cu,{item:s,removeNotification:r,ICONS:e},s.id))})})};Su.displayName="MiniCart.Notifications";const vh=({handleSendEvent:e,onHandleRemove:t,product:r,MINICART_CONFIG:o,...s})=>{const a=Uo(),{toggleProduct:i}=Wo(),{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})},wu=({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:ue["mc--card--actions--add-remove"],children:[o.has_wishlist_button&&n.jsx(vh,{...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(ft.Gift,{uniqueId:u,bundleItems:c,offerings:h,ICONS:r,MINICART_CONFIG:o})]})};wu.displayName="MiniCart.Card.Actions";const Pu=({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:ue["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};Pu.displayName="MiniCart.Card.Gift";const Eu=({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:ue["mc--card--product-link"],children:n.jsx($e.Image,{alt:(e==null?void 0:e.image[0].alternateName)||"Produto",src:t||"",width:108,height:164})})};Eu.displayName="MiniCart.Card.Media";const Ru=({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(ue["mc--card--name"],o),children:U.getProductNameWithoutSku(e??"",t??"")})]});Ru.displayName="MiniCart.Card.Name";const Au=({total:e,totalList:t})=>n.jsx(m.ProductInfo.Root,{children:n.jsx(m.TextStructure.Root,{children:n.jsx(m.TextStructure.DivWrapper,{className:ue["mc--card--price"],children:n.jsx(m.ProductInfo.Wrapper,{className:ue["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"})})})})});Au.displayName="MiniCart.ProductPrice";const Iu=({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($e.Image,{alt:((u=e.itemOffered)==null?void 0:u.image[0].alternateName)??"Produto",src:o,width:164,height:164,style:r}):n.jsx(ll,{})})})})};Iu.displayName="MiniCart.Card.Style";const Nu=({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(Iu,{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:ue["mc-container-actions--toggle-size-modifier"],children:n.jsx(m.ToggleSize.Text,{children:s})})]})};Nu.displayName="MiniCart.Card.Sku";const ft={Actions:wu,Gift:Pu,Media:Eu,Name:Ru,Price:Au,Sku:Nu},xh=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}},Tu=({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=xh(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(ue["mc--card"],e?"":ue["mc--card--unavailable"]),children:[n.jsx(ft.Media,{itemOffered:r.itemOffered}),n.jsxs("div",{className:ue["mc--card--content-info"],children:[n.jsx(ft.Name,{name:((h=r.itemOffered)==null?void 0:h.name)??"",skuName:(d=r.itemOffered)==null?void 0:d.skuName}),n.jsxs("div",{className:ue["mc--card--details"],children:[n.jsx("div",{className:ue["mc--card--actions"],children:e?n.jsx(ft.Price,{total:u.price,totalList:u.listPrice}):n.jsx(m.Tag,{variant:"secondary",size:"small",children:"Indisponível"})}),n.jsxs("div",{className:ue["mc--card--actions--secondary"],children:[e&&n.jsx(ft.Sku,{product:r,NAME_SPLIT_SYMBOL:a,TEXTURE_IMAGE:i,TOGGLE_STYLE_MODIFIER:c}),n.jsx(ft.Actions,{handleSendEvent:p,product:r,size:"small",variant:"tertiary",ICONS:o,MINICART_CONFIG:s})]})]})]})]})};Tu.displayName="MiniCart.Card";const ku=({type:e="positive",ICONS:t,MESSAGE_CASHBACK:r})=>{var a;const{toExpire:o}=Lt(),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(ue["mc--cashback"],ue[`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};ku.displayName="MiniCart.Cashback";const Ou=({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(S=>{if(!S.statusOk&&y||S.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})};Ou.displayName="MiniCart.CouponSeller";const Mu=({ICONS:e,MINICART_CONFIG:t,PLP_NOT_RESULT:r})=>{const{router:o}=be(),s=()=>{o.push(r.link)};return n.jsxs(m.Utils.Column,{alignContent:"center",alignItems:"center",gap:"24px",className:ue["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 ${ue["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})]})};Mu.displayName="MiniCart.Feedback";const bh=e=>{const t=e.replace(/\D/g,"");return t.length>5?`${t.slice(0,5)}-${t.slice(5,8)}`:t},Lu=({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 S=bh(y);u(S)}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})};Lu.displayName="MiniCart.Field.Input";const Du=({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:ue["mc--field"],input:n.jsx(Lu,{...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})})};Du.displayName="MiniCart.Field";const $u=({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:ue["mc--body"],children:[e,n.jsx("div",{className:ue["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})})]})};$u.displayName="MiniCart.Body";const zu=({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:ue["mc--footer"],children:[e,n.jsx("div",{className:ue["mc--footer--actions"],children:n.jsx(m.Button,{variant:"primary",size:"large","data-close":!0,className:ue["mc--footer--actions-button"],onClick:s,children:r.messages.checkout_button})})]})};zu.displayName="MiniCart.Modal.Footer";const Bu=({children:e,className:t,ICONS:r,MINICART_CONFIG:o})=>n.jsxs(m.Accordion.Wrapper,{className:ue["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(ue["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:ue["mc--discount--body"],children:e}),n.jsx(m.Utils.Divider,{direction:"horizontal",size:"small",style:{height:16}})]});Bu.displayName="MiniCart.Discount";const Fu=({discount:e,shipping:t,total:r})=>{var c;const{tags:o}=vt(),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:ue["mc--footer--total"],children:Array.isArray(i)&&i.map((l,u)=>n.jsxs("div",{className:ue["mc--footer--total--info"],"data-discount":l.title==="Desconto",children:[n.jsx("p",{children:l.title}),n.jsxs("div",{className:ue["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:ue["mc--footer--total--info"],label:l.title,value:l.value})]})]},u))})};Fu.displayName="MiniCart.Modal.Footer.Resume.Items";const qu=({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(Fu,{discount:r??0,total:t,shipping:o})};qu.displayName="MiniCart.Modal.Footer.Totals";const Hu=({ICONS:e,MINICART_CONFIG:t})=>{const{isMobile:r}=fe(),{cartStore:{items:o}}=Ee(),s=o.reduce((a,i)=>a+(i.quantity??0),0);return n.jsx(m.Modal.Header,{navigation:"top",className:ue["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:ue["mc--header--subtitle"],children:s!==1?`[${s}] Produtos`:`[${s}] Produto`}),n.jsx(m.Button,{"data-close":!0,iconNameStart:e.close,size:"small",variant:"tertiary"})]})})};Hu.displayName="MiniCart.Modal.Header";const Uu=({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 S;if(typeof b=="object"&&(b!=null&&b.logisticsInfo))return(S=b.logisticsInfo)==null?void 0:S.reduce((v,j)=>{var k;const w=(k=j==null?void 0:j.slas)==null?void 0:k.find(P=>(P==null?void 0:P.id)===(j==null?void 0:j.selectedSla));if(!w)return v;const E=parseInt(String((w==null?void 0:w.shippingEstimate)??"").replace("bd","")),C=Number((((w==null?void 0:w.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=C,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)+C,v},{shipping_tier:void 0,delivery_time:void 0,flag_retirada:void 0,shipping:void 0,currency:"BRL"})},_=async b=>{const S=b.replace(/\D/g,"");if(S.length!==8)return!1;try{return!(await rt.get(`https://viacep.com.br/ws/${S}/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 w=await o(b);if(c(!1),w){d(!0);const E=g(w);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})};Uu.displayName="MiniCart.Shipping";const Wu=()=>{var r;const{tags:e}=vt(),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};Wu.displayName="MiniCart.TagMessage";const Le={Body:$u,Card:Tu,Cashback:ku,CouponSeller:Ou,Discount:Bu,Field:Du,Feedback:Mu,Shipping:Uu,Footer:zu,Header:Hu,TagMessage:Wu,Totals:qu},jh=({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}=fe();return n.jsxs(m.Modal.Root,{className:m.helpers.classNameConcat(ue["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(Su,{ICONS:e})]})},Vu=({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:es["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(du,{})}),n.jsx("div",{className:U.responsive["responsive-desktop-block"],style:{height:"100%",width:"100%",zIndex:c.header_desktop},children:n.jsx(Zl,{})})]}),n.jsx(gh,{children:n.jsx(jh,{...l,minicartStyleModifiers:t})}),n.jsx(Zo,{title:"Produto adicionado à sua sacola!",CONSTANTS:a.addToCart}),n.jsx(ns,{})]})})};Vu.displayName="Header";const Ch="_shippingFreight_6z8rf_6",Sh="_shippingFreight__postalCodeGrid_6z8rf_10",wh="_shippingFreight__grid_6z8rf_14",Ph="_shippingFreight__grid__title_6z8rf_18",Eh="_shippingFreight__grid__remember_6z8rf_29",Rh="_postalCodeContainer_6z8rf_44",Ah="_deliveryStatusBar__tag_6z8rf_49",Ih="_deliveryStatusBarError__tag_6z8rf_66",Nh="_deliveryInfo_6z8rf_74",Th="_deliveryInfo__content_6z8rf_78",kh="_deliveryInfo__text_6z8rf_84",Oh="_deliveryInfo__title_6z8rf_89",Mh="_deliveryInfo__subtitle_6z8rf_99",Lh="_deliveryInfo__tooltipIcon_6z8rf_109",Dh="_deliveryInfo__tooltip_6z8rf_109",$h="_freightGrid_6z8rf_148",zh="_freightContainer_6z8rf_155",Bh="_freightOption__content_6z8rf_160",Fh="_freightOption__value_6z8rf_166",qh="_freightOption__title_6z8rf_177",Hh="_freightOption__title_item_6z8rf_181",Uh="_freightOption__paragraph_6z8rf_192",ge={shippingFreight:Ch,shippingFreight__postalCodeGrid:Sh,shippingFreight__grid:wh,shippingFreight__grid__title:Ph,shippingFreight__grid__remember:Eh,postalCodeContainer:Rh,deliveryStatusBar__tag:Ah,deliveryStatusBarError__tag:Ih,deliveryInfo:Nh,deliveryInfo__content:Th,deliveryInfo__text:kh,deliveryInfo__title:Oh,deliveryInfo__subtitle:Mh,deliveryInfo__tooltipIcon:Lh,deliveryInfo__tooltip:Dh,freightGrid:$h,freightContainer:zh,freightOption__content:Bh,freightOption__value:Fh,freightOption__title:qh,freightOption__title_item:Hh,freightOption__paragraph:Uh,"input-modifier":"_input-modifier_6z8rf_207","freight--tooltip":"_freight--tooltip_6z8rf_227"},Wh=({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})]})]})]})},Vh=({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})]})})})]})}),Gh=({children:e})=>n.jsx("div",{className:ge.freightContainer,children:e}),Kh=({children:e})=>n.jsx("div",{className:ge.freightGrid,children:e}),Xh=({children:e})=>n.jsx("div",{className:ge.postalCodeContainer,children:e}),si=({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]})}),Qh=e=>{const t=parseInt(e,10);return t===1?`${t} dia`:`${t} dias`},Yh=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},Zh=({component:e,parent:t,top:r,left:o,target:s,contentRef:a,freightConfig:i,toolTipZIndex:c=999,...l})=>{const{isMobile:u}=fe();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})})},Jh=({onUpdateFreightItems:e,sellerId:t,size:r,skuId:o,quantity:s,setError:a,setIsButtonClicked:i,component:c,freightConfig:l,toolTipZIndex:u})=>{var N,I,z,T;const p=ht(),h=ht(H=>H.shipping),[d,f]=x.useState(),[g,_]=x.useState(!1),[y,b]=x.useState(!1),[S,v]=x.useState(!1),j=(I=(N=p.shippingData)==null?void 0:N.address)==null?void 0:I.postalCode,w=!(d!=null&&d.length)&&j?j:d,E=x.useRef(null),C=async H=>{const q=H.target.value.replace(/\D/g,"").slice(0,8);q.length>5?f(q.replace(/^(\d{5})(\d{1,3})/,"$1-$2")):f(q)},R=async H=>{const W=H.target.value.replace(/\D/g,"");try{if((await rt.get(`https://viacep.com.br/ws/${W}/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.")}},k=async()=>{_(!0);try{const H=await rt.post("/api/checkout/simulation",{items:[{id:o,quantity:s,seller:t}],country:"BRA",postalCode:w});e(Yh(H.data))}catch(H){console.error("Erro ao atualizar o documento:",H)}finally{_(!1),h(w,"BRA")}},P=async()=>{if(!o){v(!0),setTimeout(()=>v(!1),1500);return}await R({target:{value:w}}),g||(k(),i(!0))};return n.jsxs("div",{ref:E,style:{position:"relative"},children:[!o&&S?n.jsx(Zh,{component:c,isOpen:S,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:(T=(z=p.shippingData)==null?void 0:z.address)==null?void 0:T.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:C,onKeyDown:H=>{H.key==="Enter"&&P()},className:ge["input-modifier"],feedback:y?"error":"none"}),right:n.jsx(m.Button,{onClick:P,size:r,title:"button",children:g?n.jsx(m.Spinner,{size:"small",indicatorColor:"#ffffff"}):l.messages.text_input_btn})})})]})},eg=({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(Ke,{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})]}),tg=({children:e})=>n.jsx("div",{className:ge.freightContainer,children:e}),Gu=({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),S=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(tg,{className:e,children:[n.jsxs(eg,{freightConfig:c.freightConfig,children:[n.jsx(Xh,{children:n.jsx(Jh,{onUpdateFreightItems:S,skuId:r,quantity:o,size:s,sellerId:t,local:i,setError:g,setIsButtonClicked:y,freightConfig:c.freightConfig,toolTipZIndex:c.toolTipZIndex})}),f?n.jsx(si,{size:s,message:f,setError:g}):h.length>0&&n.jsx(si,{size:s,message:c.freightConfig.messages.delivered_by,seller:a})]}),_&&!f?h.length>0&&n.jsxs(Gh,{children:[n.jsx(Kh,{children:h.filter(({id:v})=>!v.includes("Retirada")).map(v=>n.jsx(Vh,{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}${Qh(v.shippingEstimate)}`,radioValue:u,changeValue:b},v.id))}),c.deliveryInfoBoxesAllowed?n.jsx(Wh,{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]})},ot={"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"},rg=({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(Ke,{href:t??"/",size:"medium",title:o,disableUnderline:!0,children:e}):e}),Ku=({ICONS:e,...t})=>{var i;const{state:r}=hr(),o=r!=null&&r.term&&r.term.length>0?`/${r.term}`:"",s=decodeURIComponent((i=r==null?void 0:r.base)!=null&&i.length?r.base:o??o).slice(1).split("/"),a=Gc(s);return n.jsx("div",{...t,className:ot["pcd-navigation--breadcrumb"],children:n.jsx(m.BreadCrumb.DivWrapper,{children:n.jsx(m.BreadCrumb.List,{children:Array.isArray(a)&&a.map((c,l)=>{var u,p;return x.createElement(rg,{...c,isLast:l!==a.length-1,key:c.href,title:(u=c.name)==null?void 0:u.replace(/-/g," "),ICONS:e},(p=c.name)==null?void 0:p.replace(/-/g," "))})})})})};Ku.displayName="PLPNavigation.BreadCrumb";const Xu=({children:e,ICONS:t,PDC_NAVIGATION:r,searchParams:o,...s})=>n.jsxs("div",{...s,className:ot["pdc-navigation--content"],children:[n.jsx(_t.Filters,{ICONS:t,PDC_NAVIGATION:r,searchParams:o}),e]});Xu.displayName="PLPNavigation.Content";const ng="_sort_35wro_1",xr={sort:ng,"sort-list-wrapper":"_sort-list-wrapper_35wro_8","sort-list":"_sort-list_35wro_8","sort-button":"_sort-button_35wro_25"},og=({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:xr["sort-button"],children:e}),sg=e=>n.jsx(m.RadioButton.Radio,{...e}),ig=({children:e,className:t,name:r,...o})=>n.jsx(m.RadioButton.Group,{...o,name:r||"sort-group",className:m.helpers.classNameConcat(xr["sort-list"],t),children:e}),ag=({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(xr["sort-list-wrapper"],t),padding:o,height:s,children:e}),Qu=x.forwardRef(({children:e,className:t,...r},o)=>n.jsx("div",{...r,ref:o,className:m.helpers.classNameConcat(xr.sort,t),children:e}));Qu.displayName="SortRoot";const os=({handleSelectValue:e,sortListOpen:t,setSortListOpen:r,searchParams:o,CONSTANTS: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}=yu(()=>r(!1)),h=f=>{const g=f.target.value;l(g),typeof e=="function"&&e(g),u({functionKey:"filterEvent",data:{customData:{ordering:Ct.options[g]}}}),r(!1)};return n.jsxs(Qu,{...a,ref:p,children:[n.jsx(og,{btnAdornment:{listOpen:n.jsx(m.Icon,{name:s.ICONS.arrow_up,size:"small"}),listClosed:n.jsx(m.Icon,{name:s.ICONS.arrow_down,size:"small"})},sortListOpen:t,onClick:()=>r(!t),children:c?Ct.options[c]:Ct.placeholder},"sort-button"),t&&n.jsx(ag,{children:n.jsx(ig,{name:"sort-group",value:c??"",onChange:h,children:Object.keys(Ct.options).map(f=>n.jsx(sg,{label:Ct.options[f],value:f},f))})})]})};os.displayName="Sort";const Yu=x.createContext({}),cg=({children:e,...t})=>{const[r,o]=x.useState(!1);return n.jsx(Yu.Provider,{value:x.useMemo(()=>({...t,openOrderBy:r,setOpenOrderBy:o}),[t,r,o]),children:e})},lg=()=>{const e=x.useContext(Yu);if(e===void 0)throw new Error("usePLPNavigationContext must be used within a PDCNavigationProvider");return e},Zu=({ICONS:e,PDC_NAVIGATION:t,searchParams:r})=>{const{openOrderBy:o,onSort:s,setOpenFilters:a,setOpenOrderBy:i}=lg();return n.jsxs("div",{className:ot["pdc-navigation--filters"],children:[n.jsx(_t.BreadCrumb,{ICONS:e}),n.jsxs("div",{className:ot["pdc-navigation--filters--content"],children:[n.jsx(os,{handleSelectValue:c=>s(c??"release_desc"),sortListOpen:o,setSortListOpen:i,CONSTANTS:{ICONS:e},searchParams:r}),n.jsx(m.Button,{adornment:{end:n.jsx(m.Icon,{name:e.arrow_down})},onClick:()=>a(!0),size:"small",variant:"tertiary",children:t.filter_button}),n.jsx(_t.Total,{})]})]})};Zu.displayName="PLPNavigation.Filters";const Ju=({children:e,onSort:t,setOpenFilters:r,style:o,PDC_NAVIGATION:s,ICONS:a,searchParams:i,...c})=>{const l=x.useRef(null);return n.jsx(cg,{onSort:t,setOpenFilters:r,children:n.jsx("div",{...c,className:ot["pdc-navigation"],ref:l,style:{...o},children:n.jsx(_t.Content,{ICONS:a,PDC_NAVIGATION:s,searchParams:i,children:e})})})};Ju.displayName="Root";const ed=({callback:e,selected:t,CONSTANTS:r,...o})=>n.jsx("div",{...o,className:ot["pdc-navigation--selected"],children:n.jsx("div",{className:ot["pdc-navigation--selected--container"],children:Array.isArray(t)?t.map(s=>s.key==="productclusterids"?null:n.jsx(_t.SelectedItem,{callback:e,facet:s,CONSTANTS:r},s.value)):n.jsx(n.Fragment,{})})});ed.displayName="PLPNavigation.Selected";const ss=({key:e,PLP_FILTERS:t})=>t.some(r=>r.key===e)?e==="cores-filtraveis":!1,is=({value:e,PLP_FILTERS_COLORS:t})=>{var r;return((r=t.find(o=>o.value===e))==null?void 0:r.color)??"#F2F2F2"},td=({key:e,PLP_FILTERS:t})=>{var r;return(r=t.find(o=>o.key===e))==null?void 0:r.label},rd=({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=U.formatPriceToCurrency(Number(r));return`${U.formatPriceToCurrency(Number(t))} até ${o}`},ug=({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]},nd=Object.freeze(Object.defineProperty({__proto__:null,checkedColor:ss,createTagPrice:wo,getAbsoluteMinMax:ug,getColor:is,getName:td,getOrder:rd},Symbol.toStringTag,{value:"Module"})),qe={"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"},od=({columns:e=2,CONSTANTS:t,...r})=>{var a;const{filters:o,onToggleFacet:s}=bt();return n.jsxs("div",{...r,className:qe["filter--modal--body--content"],children:[Array.isArray(o.facets)&&o.facets.map(i=>n.jsx(Xe.Item,{columns:e,facet:i,onToggleFacet:s,CONSTANTS:t},i.key)),!((a=o.facets)!=null&&a.length)&&n.jsx(Xe.Empty,{PLP_FILTERS_EMPTY:t.PLP_FILTERS_EMPTY})]})};od.displayName="Filter.Item.Content";const sd=({PLP_FILTERS_EMPTY:e})=>{const t=()=>{window.history.back()};return n.jsxs("div",{className:qe["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})]})};sd.displayName="Filter.Empty";const id=({columns:e,facet:t,onToggleFacet:r,CONSTANTS:o,...s})=>{const a=rd({key:t.key,PLP_FILTERS:o.PLP_FILTERS}),i=()=>{if(t.__typename==="FacetBoolean"){if(t.key==="cores-filtraveis")return n.jsx(Xe.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(Xe.Sizes,{onToggleFacet:r,values:t.values,PLP_SIZE_ORDER:o.PLP_SIZE_ORDER});if(t.key==="category-2")return n.jsx(Xe.Toggle,{columns:e,facetKey:t.key,onToggleFacet:r,values:t.values,ICONS:o.ICONS})}return t.__typename==="FacetRange"?n.jsx(Xe.Price,{facet:t}):n.jsx("p",{children:"Filter not support!!!"})};return n.jsx("div",{...s,className:qe["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:td({key:t.key,PLP_FILTERS:o.PLP_FILTERS})})})})}),n.jsx(m.Accordion.Body,{children:i()})]})})};id.displayName="Filter.Item";const as={"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"},ad=({children:e,...t})=>n.jsx("div",{...t,className:as["product-variation-list--list"],children:e});ad.displayName="ProductVariationList.List";const cd=({fill:e="#1352C7",src:t="",type:r="size",text:o,...s})=>{const{nextimage:a}=be();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})})]})};cd.displayName="ProductVariationList.Option";const ld=({children:e,...t})=>n.jsx("div",{className:as["product-variation-list"],...t,children:e});ld.displayName="ProductVariationList.Root";const ud=({children:e,title:t,...r})=>n.jsxs("div",{...r,className:as["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]});ud.displayName="ProductVariationList.Title";const Ve={List:ad,Option:cd,Title:ud,Root:ld},dd=({onToggleFacet:e,values:t,PLP_FILTERS:r,PLP_FILTERS_COLORS:o,...s})=>n.jsx(Ve.Root,{...s,children:n.jsx(Ve.List,{children:Array.isArray(t)&&t.map(({key:a,selected:i,value:c})=>n.jsx(Ve.Option,{active:i,"data-color":ss({key:a,PLP_FILTERS:r}),fill:is({value:c,PLP_FILTERS_COLORS:o}),onClick:()=>e({key:a,value:c}),type:"color"},`${a}-${c}`))})});dd.displayName="Filter.Item.Color";const fd=({facet:e,...t})=>{var u,p;const{filters:{selected:r},price:o,onToggleFacet:s}=bt(),[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:qe["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})})})]})})};fd.displayName="Filter.Item.Price";const pd=({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(Ve.Root,{...o,children:n.jsx(Ve.List,{children:Array.isArray(s)&&s.map(({key:a,selected:i,value:c})=>n.jsx(Ve.Option,{active:i,text:c,type:"size",onClick:()=>e({key:a,value:c})},c))})})};pd.displayName="Filter.Item.Sizes";const md=({columns:e,facetKey:t,onToggleFacet:r,values:o,ICONS:s,...a})=>n.jsx("div",{...a,className:qe["filter--item--toggle"],children:n.jsx("div",{className:qe["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))})});md.displayName="Filter.Item.Toggle";const hd=({...e})=>{const{isLoading:t}=bt();return n.jsx("div",{className:qe["filter--loading"],"data-active":t,...e,children:n.jsx(m.Spinner,{indicatorColor:"#000",background:"#222"})})};hd.displayName="Filter.Loading";const gd=({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}=bt();return n.jsxs(m.Modal.Root,{className:m.helpers.classNameConcat(qe["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:qe["filter--modal--body"],children:e}),n.jsx(Xe.Loading,{})]}),n.jsx(m.Modal.Footer,{children:n.jsxs("div",{className:qe["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"})]})})]})};gd.displayName="Filter.Modal";const yd=({children:e,className:t,isMobile:r,CONSTANTS:o,...s})=>n.jsx(el,{...s,PLP_FILTERS:o.PLP_FILTERS,children:n.jsx(Xe.Modal,{className:t,isMobile:r,CONSTANTS:o,children:e})});yd.displayName="Filter.Root";const _d=({ICONS:e,PLP_FILTERS_COLORS:t,PLP_FILTERS:r})=>{const{filters:o,onToggleFacet:s}=bt();return n.jsx("div",{className:qe["filter--selected"],children:n.jsx("div",{className:qe["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"?wo({value:i}):i,adornment:{end:n.jsx(m.Icon,{name:e.close,size:"x-small"})},colorSquare:is({value:i,PLP_FILTERS_COLORS:t}),onClick:()=>s({key:a,value:i}),squareShow:ss({key:a,PLP_FILTERS:r}),size:"medium",variant:"primary",children:a==="price"?wo({value:i}):i},i))})})};_d.displayName="Filter.Selected";const Xe={Colors:dd,Content:od,Empty:sd,Modal:gd,Item:id,Root:yd,Loading:hd,Selected:_d,Price:fd,Sizes:pd,Toggle:md},{checkedColor:dg,createTagPrice:ii,getColor:fg}=nd,vd=({callback:e,facet:t,CONSTANTS:r})=>n.jsx(m.Tag,{title:(t==null?void 0:t.key)==="price"?ii({value:t.value}):t.value.toUpperCase(),adornment:{end:n.jsx(m.Icon,{name:r.ICONS.close,size:"x-small"})},colorSquare:fg({value:t.value,PLP_FILTERS_COLORS:r.PLP_FILTERS_COLORS}),onClick:()=>{typeof e=="function"&&e(t,!0)},squareShow:dg({key:t.key,PLP_FILTERS:r.PLP_FILTERS}),size:"medium",variant:"primary",children:(t==null?void 0:t.key)==="price"?ii({value:t.value}):t.value.toUpperCase()});vd.displayName="PLPNavigation.Selected.Item";const xd=()=>n.jsx(m.TextStructure.Root,{children:n.jsx("p",{id:"pdc-navigation--total"})});xd.displayName="PLPNavigation.Total";const _t={BreadCrumb:Ku,Content:Xu,Filters:Zu,Root:Ju,Selected:ed,SelectedItem:vd,Total:xd},cs={"product-list--banner":"_product-list--banner_sfibj_1","product-list--card":"_product-list--card_sfibj_30","product-list":"_product-list_sfibj_1"},bd=({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(cs["product-list--banner"],e),style:{aspectRatio:u,maxWidth:`${r/i*100}%`,order:a,padding:s/2},children:t})};bd.displayName="ProductList.Banner";const jd=({isKit:e,parent:t,productId:r,setNotify:o,CONSTANTS:s})=>{const{router:a}=be(),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})})};jd.displayName="ProductList.Card.Actions";const Cd=({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((S,v)=>{var j;typeof u=="function"&&u((j=S.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(cs["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(jd,{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]})};Cd.displayName="ProductList.Card";const Sd=({children:e,className:t,...r})=>n.jsx("div",{...r,className:m.helpers.classNameConcat(cs["product-list"],t),children:e});Sd.displayName="ProductList.Grid";const pg={Banner:bd,Card:Cd,Root:Sd,helpers:Hp},mg="_footer__bottom_1o9af_2",hg="_footer__wrapper_1o9af_10",gg="_footer__main_1o9af_39",yg="_footer__legalInformation_1o9af_55",_g="_footer__column_1o9af_77",vg="_footer__columnContent_1o9af_87",xg="_footer__item_1o9af_91",bg="_footer__itemLink_1o9af_107",jg="_footer__columnTitle_1o9af_122",Cg="_footer__columnTitleIcon_1o9af_134",Sg="_footer__iconList_1o9af_147",wg="_footer__itemSmallText_1o9af_157",Pg="_payment_1o9af_168",Eg="_footer__iconContainer_1o9af_173",Rg="_footer__iconListSubHeader_1o9af_178",Ag="_accordionWrapper_1o9af_200",Ig="_accordionHeader_1o9af_204",Ng="_accordionTextWrapper_1o9af_208",ye={footer__bottom:mg,footer__wrapper:hg,footer__main:gg,footer__legalInformation:yg,footer__column:_g,footer__columnContent:vg,footer__item:xg,footer__itemLink:bg,footer__columnTitle:jg,footer__columnTitleIcon:Cg,footer__iconList:Sg,footer__itemSmallText:wg,payment:Pg,footer__iconContainer:Eg,footer__iconListSubHeader:Rg,accordionWrapper:Ag,accordionHeader:Ig,accordionTextWrapper:Ng,"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 wd={},ls={},$t={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"warnOnce",{enumerable:!0,get:function(){return t}});let t=r=>{};if(process.env.NODE_ENV!=="production"){const r=new Set;t=o=>{r.has(o)||console.warn(o),r.add(o)}}})($t);var Pd={};(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"}})(Pd);var br={};(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}})(br);(function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"getImgProps",{enumerable:!0,get:function(){return f}});const t=$t,r=Pd,o=br,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:S}=g;if(y){const j=/(^|\s)(1?\d?\d)vw/g,w=[];for(let E;E=j.exec(y);E)w.push(parseInt(E[2]));if(w.length){const E=Math.min(...w)*.01;return{widths:S.filter(C=>C>=b[0]*E),kind:"w"}}return{widths:S,kind:"w"}}return typeof _!="number"?{widths:b,kind:"w"}:{widths:[...new Set([_,_*2].map(j=>S.find(w=>w>=j)||S[S.length-1]))],kind:"x"}}function d(g){let{config:_,src:y,unoptimized:b,width:S,quality:v,sizes:j,loader:w}=g;if(b)return{src:y,srcSet:void 0,sizes:void 0};const{widths:E,kind:C}=h(_,S,j),R=E.length-1;return{sizes:!j&&C==="w"?"100vw":j,srcSet:E.map((k,P)=>w({config:_,src:y,quality:v,width:k})+" "+(C==="w"?k:P+1)+C).join(", "),src:w({config:_,src:y,quality:v,width:E[R]})}}function f(g,_){let{src:y,sizes:b,unoptimized:S=!1,priority:v=!1,loading:j,className:w,quality:E,width:C,height:R,fill:k=!1,style:P,onLoad:N,onLoadingComplete:I,placeholder:z="empty",blurDataURL:T,fetchPriority:H,layout:W,objectFit:q,objectPosition:K,lazyBoundary:V,lazyRoot:B,...J}=g;const{imgConf:A,showAltText:O,blurComplete:D,defaultLoader:X}=_;let ne,ee=A||o.imageConfigDefault;if("allSizes"in ee)ne=ee;else{const G=[...ee.deviceSizes,...ee.imageSizes].sort((Ae,Y)=>Ae-Y),me=ee.deviceSizes.sort((Ae,Y)=>Ae-Y);ne={...ee,allSizes:G,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 G=L;L=me=>{const{config:Ae,...Y}=me;return G(Y)}}if(W){W==="fill"&&(k=!0);const G={intrinsic:{maxWidth:"100%",height:"auto"},responsive:{width:"100%",height:"auto"}},me={responsive:"100vw",fill:"100vw"},Ae=G[W];Ae&&(P={...P,...Ae});const Y=me[W];Y&&!b&&(b=Y)}let Z="",re=p(C),$=p(R),M,oe;if(c(y)){const G=a(y)?y.default:y;if(!G.src)throw new Error("An object should only be passed to the image component src parameter if it comes from a static image import. It must include src. Received "+JSON.stringify(G));if(!G.height||!G.width)throw new Error("An object should only be passed to the image component src parameter if it comes from a static image import. It must include height and width. Received "+JSON.stringify(G));if(M=G.blurWidth,oe=G.blurHeight,T=T||G.blurDataURL,Z=G.src,!k){if(!re&&!$)re=G.width,$=G.height;else if(re&&!$){const me=re/G.width;$=Math.round(G.height*me)}else if(!re&&$){const me=$/G.height;re=Math.round(G.width*me)}}}y=typeof y=="string"?y:Z;let ae=!v&&(j==="lazy"||typeof j>"u");(!y||y.startsWith("data:")||y.startsWith("blob:"))&&(S=!0,ae=!1),ne.unoptimized&&(S=!0),te&&y.endsWith(".svg")&&!ne.dangerouslyAllowSVG&&(S=!0),v&&(H="high");const de=p(E);if(process.env.NODE_ENV!=="production"){if(ne.output==="export"&&te&&!S)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)S=!0;else if(k){if(C)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(P!=null&&P.position&&P.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(P!=null&&P.width&&P.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(P!=null&&P.height&&P.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 "'+C+'".');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"&&!T){const G=["jpeg","png","webp","avif"];throw new Error('Image with src "'+y+`" 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: `+G.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.'),!S&&!te){const G=L({config:ne,src:y,width:re||400,quality:de||75});let pe;try{pe=new URL(G)}catch{}(G===y||pe&&pe.pathname===y&&!pe.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[G,pe]of Object.entries({layout:W,objectFit:q,objectPosition:K,lazyBoundary:V,lazyRoot:B}))pe&&(0,t.warnOnce)('Image with src "'+y+'" has legacy prop "'+G+`". Did you forget to run the codemod?
12
- Read more: https://nextjs.org/docs/messages/next-image-upgrade-to-13`);if(typeof window<"u"&&!u&&window.PerformanceObserver){u=new PerformanceObserver(G=>{for(const Ae of G.getEntries()){var pe;const Y=(Ae==null||(pe=Ae.element)==null?void 0:pe.src)||"",se=l.get(Y);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(G){console.error(G)}}}const fe=Object.assign(k?{position:"absolute",height:"100%",width:"100%",left:0,top:0,right:0,bottom:0,objectFit:q,objectPosition:K}:{},O?{}:{color:"transparent"},R),ce=!D&&z!=="empty"?z==="blur"?'url("data:image/svg+xml;charset=utf-8,'+(0,r.getImageBlurSvg)({widthInt:re,heightInt:$,blurWidth:M,blurHeight:oe,blurDataURL:T||"",objectFit:fe.objectFit})+'")':'url("'+z+'")':null;let F=ce?{backgroundSize:fe.objectFit||"cover",backgroundPosition:fe.objectPosition||"50% 50%",backgroundRepeat:"no-repeat",backgroundImage:ce}:{};process.env.NODE_ENV==="development"&&F.backgroundImage&&z==="blur"&&T!=null&&T.startsWith("/")&&(F.backgroundImage='url("'+T+'")');const ve=d({config:ne,src:y,unoptimized:S,width:re,quality:de,sizes:b,loader:L});if(process.env.NODE_ENV!=="production"&&typeof window<"u"){let G;try{G=new URL(ve.src)}catch{G=new URL(ve.src,window.location.href)}l.set(G.href,{src:y,priority:v,placeholder:z})}return{props:{...J,loading:ae?"lazy":j,fetchPriority:H,width:re,height:$,decoding:"async",className:w,style:{...fe,...F},sizes:ve.sizes,srcSet:ve.srcSet,src:ve.src},meta:{unoptimized:S,priority:v,placeholder:z,fill:k}}}})(cs);var wo={exports:{}},rr={exports:{}},Jr={},ii;function wg(){return ii||(ii=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 g=t.Children.toArray(Array.from(c.mountedInstances).filter(Boolean));c.updateHead(l(g,i))}}if(r){var m;c==null||(m=c.mountedInstances)==null||m.add(i.children),u()}return o(()=>{var g;return c==null||(g=c.mountedInstances)==null||g.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}}(Jr)),Jr}var en={},ai;function Rg(){return ai||(ai=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"AmpStateContext",{enumerable:!0,get:function(){return o}});const o=Oe._(x).default.createContext({});process.env.NODE_ENV!=="production"&&(o.displayName="AmpStateContext")}(en)),en}var tn={},ci;function bd(){return ci||(ci=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"HeadManagerContext",{enumerable:!0,get:function(){return o}});const o=Oe._(x).default.createContext({});process.env.NODE_ENV!=="production"&&(o.displayName="HeadManagerContext")}(tn)),tn}var rn={},li;function Eg(){return li||(li=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}}(rn)),rn}var ui;function Pg(){return ui||(ui=1,function(e,t){"use client";Object.defineProperty(t,"__esModule",{value:!0});function r(S,v){for(var j in v)Object.defineProperty(S,j,{enumerable:!0,get:v[j]})}r(t,{defaultHead:function(){return g},default:function(){return b}});const o=Oe,a=gt._(x),i=o._(wg()),c=Rg(),l=bd(),u=Eg(),m=Dt;function g(S){S===void 0&&(S=!1);const v=[a.default.createElement("meta",{charSet:"utf-8"})];return S||v.push(a.default.createElement("meta",{name:"viewport",content:"width=device-width"})),v}function d(S,v){return typeof v=="string"||typeof v=="number"?S:v.type===a.default.Fragment?S.concat(a.default.Children.toArray(v.props.children).reduce((j,w)=>typeof w=="string"||typeof w=="number"?j:j.concat(w),[])):S.concat(v)}const f=["name","httpEquiv","charSet","itemProp"];function h(){const S=new Set,v=new Set,j=new Set,w={};return E=>{let C=!0,P=!1;if(E.key&&typeof E.key!="number"&&E.key.indexOf("$")>0){P=!0;const k=E.key.slice(E.key.indexOf("$")+1);S.has(k)?C=!1:S.add(k)}switch(E.type){case"title":case"base":v.has(E.type)?C=!1:v.add(E.type);break;case"meta":for(let k=0,R=f.length;k<R;k++){const N=f[k];if(E.props.hasOwnProperty(N))if(N==="charSet")j.has(N)?C=!1:j.add(N);else{const I=E.props[N],z=w[N]||new Set;(N!=="name"||!P)&&z.has(I)?C=!1:(z.add(I),w[N]=z)}}break}return C}}function _(S,v){const{inAmpMode:j}=v;return S.reduce(d,[]).reverse().concat(g(j).reverse()).filter(h()).reverse().map((w,E)=>{const C=w.key||E;if(process.env.NODE_ENV!=="development"&&process.env.__NEXT_OPTIMIZE_FONTS&&!j&&w.type==="link"&&w.props.href&&["https://fonts.googleapis.com/css","https://use.typekit.net/"].some(P=>w.props.href.startsWith(P))){const P={...w.props||{}};return P["data-href"]=P.href,P.href=void 0,P["data-optimized-fonts"]=!0,a.default.cloneElement(w,P)}if(process.env.NODE_ENV==="development")if(w.type==="script"&&w.props.type!=="application/ld+json"){const P=w.props.src?'<script> tag with src="'+w.props.src+'"':"inline <script>";(0,m.warnOnce)("Do not add <script> tags using next/head (see "+P+`). Use next/script instead.
14
- See more info here: https://nextjs.org/docs/messages/no-script-tags-in-head-component`)}else w.type==="link"&&w.props.rel==="stylesheet"&&(0,m.warnOnce)('Do not add stylesheets using next/head (see <link rel="stylesheet"> tag with href="'+w.props.href+`"). Use Document instead.
15
- See more info here: https://nextjs.org/docs/messages/no-stylesheets-in-head-component`);return a.default.cloneElement(w,{key:C})})}function y(S){let{children:v}=S;const j=(0,a.useContext)(c.AmpStateContext),w=(0,a.useContext)(l.HeadManagerContext);return a.default.createElement(i.default,{reduceComponentsToState:_,headManager:w,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)}(rr,rr.exports)),rr.exports}var nn={},di;function Ag(){return di||(di=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"ImageConfigContext",{enumerable:!0,get:function(){return s}});const r=Oe._(x),o=xr,s=r.default.createContext(o.imageConfigDefault);process.env.NODE_ENV!=="production"&&(s.displayName="ImageConfigContext")}(nn)),nn}var on={},sn={},an={exports:{}};const Ig=mm(U.__viteBrowserExternal);var cn={},ln={},un,fi;function jd(){return fi||(fi=1,un=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}),un}var dn,pi;function br(){if(pi)return dn;pi=1;var e=jd();return dn=function(){return e()&&!!Symbol.toStringTag},dn}var fn,mi;function Cd(){return mi||(mi=1,fn=Object),fn}var pn,hi;function Ng(){return hi||(hi=1,pn=Error),pn}var mn,gi;function Tg(){return gi||(gi=1,mn=EvalError),mn}var hn,yi;function kg(){return yi||(yi=1,hn=RangeError),hn}var gn,_i;function Og(){return _i||(_i=1,gn=ReferenceError),gn}var yn,vi;function Sd(){return vi||(vi=1,yn=SyntaxError),yn}var _n,xi;function $t(){return xi||(xi=1,_n=TypeError),_n}var vn,bi;function Mg(){return bi||(bi=1,vn=URIError),vn}var xn,ji;function Lg(){return ji||(ji=1,xn=Math.abs),xn}var bn,Ci;function Dg(){return Ci||(Ci=1,bn=Math.floor),bn}var jn,Si;function $g(){return Si||(Si=1,jn=Math.max),jn}var Cn,wi;function zg(){return wi||(wi=1,Cn=Math.min),Cn}var Sn,Ri;function Bg(){return Ri||(Ri=1,Sn=Math.pow),Sn}var wn,Ei;function Fg(){return Ei||(Ei=1,wn=Math.round),wn}var Rn,Pi;function qg(){return Pi||(Pi=1,Rn=Number.isNaN||function(t){return t!==t}),Rn}var En,Ai;function Hg(){if(Ai)return En;Ai=1;var e=qg();return En=function(r){return e(r)||r===0?r:r<0?-1:1},En}var Pn,Ii;function Ug(){return Ii||(Ii=1,Pn=Object.getOwnPropertyDescriptor),Pn}var An,Ni;function xt(){if(Ni)return An;Ni=1;var e=Ug();if(e)try{e([],"length")}catch{e=null}return An=e,An}var In,Ti;function jr(){if(Ti)return In;Ti=1;var e=Object.defineProperty||!1;if(e)try{e({},"a",{value:1})}catch{e=!1}return In=e,In}var Nn,ki;function Wg(){if(ki)return Nn;ki=1;var e=typeof Symbol<"u"&&Symbol,t=jd();return Nn=function(){return typeof e!="function"||typeof Symbol!="function"||typeof e("foo")!="symbol"||typeof Symbol("bar")!="symbol"?!1:t()},Nn}var Tn,Oi;function wd(){return Oi||(Oi=1,Tn=typeof Reflect<"u"&&Reflect.getPrototypeOf||null),Tn}var kn,Mi;function Rd(){if(Mi)return kn;Mi=1;var e=Cd();return kn=e.getPrototypeOf||null,kn}var On,Li;function Vg(){if(Li)return On;Li=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 m=[],g=0;g<l.length;g+=1)m[g]=l[g];for(var d=0;d<u.length;d+=1)m[d+l.length]=u[d];return m},a=function(l,u){for(var m=[],g=u,d=0;g<l.length;g+=1,d+=1)m[d]=l[g];return m},i=function(c,l){for(var u="",m=0;m<c.length;m+=1)u+=c[m],m+1<c.length&&(u+=l);return u};return On=function(l){var u=this;if(typeof u!="function"||t.apply(u)!==o)throw new TypeError(e+u);for(var m=a(arguments,1),g,d=function(){if(this instanceof g){var b=u.apply(this,s(m,arguments));return Object(b)===b?b:this}return u.apply(l,s(m,arguments))},f=r(0,u.length-m.length),h=[],_=0;_<f;_++)h[_]="$"+_;if(g=Function("binder","return function ("+i(h,",")+"){ return binder.apply(this,arguments); }")(d),u.prototype){var y=function(){};y.prototype=u.prototype,g.prototype=new y,y.prototype=null}return g},On}var Mn,Di;function zt(){if(Di)return Mn;Di=1;var e=Vg();return Mn=Function.prototype.bind||e,Mn}var Ln,$i;function ls(){return $i||($i=1,Ln=Function.prototype.call),Ln}var Dn,zi;function us(){return zi||(zi=1,Dn=Function.prototype.apply),Dn}var $n,Bi;function Gg(){return Bi||(Bi=1,$n=typeof Reflect<"u"&&Reflect&&Reflect.apply),$n}var zn,Fi;function Ed(){if(Fi)return zn;Fi=1;var e=zt(),t=us(),r=ls(),o=Gg();return zn=o||e.call(r,t),zn}var Bn,qi;function ds(){if(qi)return Bn;qi=1;var e=zt(),t=$t(),r=ls(),o=Ed();return Bn=function(a){if(a.length<1||typeof a[0]!="function")throw new t("a function is required");return o(e,r,a)},Bn}var Fn,Hi;function Kg(){if(Hi)return Fn;Hi=1;var e=ds(),t=xt(),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 Fn=o&&typeof o.get=="function"?e([o.get]):typeof a=="function"?function(c){return a(c==null?c:s(c))}:!1,Fn}var qn,Ui;function fs(){if(Ui)return qn;Ui=1;var e=wd(),t=Rd(),r=Kg();return qn=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,qn}var Hn,Wi;function Pd(){if(Wi)return Hn;Wi=1;var e=Function.prototype.call,t=Object.prototype.hasOwnProperty,r=zt();return Hn=r.call(e,t),Hn}var Un,Vi;function Ad(){if(Vi)return Un;Vi=1;var e,t=Cd(),r=Ng(),o=Tg(),s=kg(),a=Og(),i=Sd(),c=$t(),l=Mg(),u=Lg(),m=Dg(),g=$g(),d=zg(),f=Bg(),h=Fg(),_=Hg(),y=Function,b=function(te){try{return y('"use strict"; return ('+te+").constructor;")()}catch{}},S=xt(),v=jr(),j=function(){throw new c},w=S?function(){try{return arguments.callee,j}catch{try{return S(arguments,"callee").get}catch{return j}}}():j,E=Wg()(),C=fs(),P=Rd(),k=wd(),R=us(),N=ls(),I={},z=typeof Uint8Array>"u"||!C?e:C(Uint8Array),T={__proto__:null,"%AggregateError%":typeof AggregateError>"u"?e:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>"u"?e:ArrayBuffer,"%ArrayIteratorPrototype%":E&&C?C([][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&&C?C(C([][Symbol.iterator]())):e,"%JSON%":typeof JSON=="object"?JSON:e,"%Map%":typeof Map>"u"?e:Map,"%MapIteratorPrototype%":typeof Map>"u"||!E||!C?e:C(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":t,"%Object.getOwnPropertyDescriptor%":S,"%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||!C?e:C(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer>"u"?e:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":E&&C?C(""[Symbol.iterator]()):e,"%Symbol%":E?Symbol:e,"%SyntaxError%":i,"%ThrowTypeError%":w,"%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%":R,"%Object.defineProperty%":v,"%Object.getPrototypeOf%":P,"%Math.abs%":u,"%Math.floor%":m,"%Math.max%":g,"%Math.min%":d,"%Math.pow%":f,"%Math.round%":h,"%Math.sign%":_,"%Reflect.getPrototypeOf%":k};if(C)try{null.error}catch(te){var H=C(C(te));T["%Error.prototype%"]=H}var W=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&&C&&(re=C(M.prototype))}return T[Z]=re,re},q={__proto__:null,"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},K=zt(),V=Pd(),B=K.call(N,Array.prototype.concat),J=K.call(R,Array.prototype.splice),A=K.call(N,String.prototype.replace),O=K.call(N,String.prototype.slice),D=K.call(N,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 i("invalid intrinsic syntax, expected closing `%`");if($==="%"&&re!=="%")throw new i("invalid intrinsic syntax, expected opening `%`");var M=[];return A(Z,X,function(oe,ae,de,fe){M[M.length]=de?A(fe,ne,"$1"):ae||oe}),M},L=function(Z,re){var $=Z,M;if(V(q,$)&&(M=q[$],$="%"+M[0]+"%"),V(T,$)){var oe=T[$];if(oe===I&&(oe=W($)),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 Un=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),ae=oe.name,de=oe.value,fe=!1,ce=oe.alias;ce&&(M=ce[0],J($,B([0,1],ce)));for(var F=1,ve=!0;F<$.length;F+=1){var ie=$[F],_e=O(ie,0,1),G=O(ie,-1);if((_e==='"'||_e==="'"||_e==="`"||G==='"'||G==="'"||G==="`")&&_e!==G)throw new i("property names with quotes must have matching quotes");if((ie==="constructor"||!ve)&&(fe=!0),M+="."+ie,ae="%"+M+"%",V(T,ae))de=T[ae];else if(de!=null){if(!(ie in de)){if(!re)throw new c("base intrinsic for "+Z+" exists, but the property is not available.");return}if(S&&F+1>=$.length){var pe=S(de,ie);ve=!!pe,ve&&"get"in pe&&!("originalValue"in pe.get)?de=pe.get:de=de[ie]}else ve=V(de,ie),de=de[ie];ve&&!fe&&(T[ae]=de)}}return de},Un}var Wn,Gi;function Bt(){if(Gi)return Wn;Gi=1;var e=Ad(),t=ds(),r=t([e("%String.prototype.indexOf%")]);return Wn=function(s,a){var i=e(s,!!a);return typeof i=="function"&&r(s,".prototype.")>-1?t([i]):i},Wn}var Vn,Ki;function Xg(){if(Ki)return Vn;Ki=1;var e=br()(),t=Bt(),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,Vn=a?o:s,Vn}var Gn,Xi;function Qg(){if(Xi)return Gn;Xi=1;var e=Bt(),t=br()(),r=Pd(),o=xt(),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"),h=f&&r(f,"value");if(!h)return!1;try{a(d,l)}catch(_){return _===i}}}else{var u=e("Object.prototype.toString"),m="[object RegExp]";s=function(d){return!d||typeof d!="object"&&typeof d!="function"?!1:u(d)===m}}return Gn=s,Gn}var Kn,Qi;function Yg(){if(Qi)return Kn;Qi=1;var e=Bt(),t=Qg(),r=e("RegExp.prototype.exec"),o=$t();return Kn=function(a){if(!t(a))throw new o("`regex` must be a RegExp");return function(c){return r(a,c)!==null}},Kn}var Xn,Yi;function Zg(){if(Yi)return Xn;Yi=1;var e=Bt(),t=Yg(),r=t(/^\s*(?:function)?\*/),o=br()(),s=fs(),a=e("Object.prototype.toString"),i=e("Function.prototype.toString"),c=function(){if(!o)return!1;try{return Function("return function*() {}")()}catch{}},l;return Xn=function(m){if(typeof m!="function")return!1;if(r(i(m)))return!0;if(!o){var g=a(m);return g==="[object GeneratorFunction]"}if(!s)return!1;if(typeof l>"u"){var d=c();l=d?s(d):!1}return s(m)===l},Xn}var Qn,Zi;function Jg(){if(Zi)return Qn;Zi=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(S){S!==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]",m="[object GeneratorFunction]",g="[object HTMLAllCollection]",d="[object HTML document.all class]",f="[object HTMLCollection]",h=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===g||j===d||j===f||j===l)&&v("")==null}catch{}return!1})}return Qn=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(h)return i(v);if(a(v))return!1;var j=c.call(v);return j!==u&&j!==m&&!/^\[object HTML/.test(j)?!1:i(v)},Qn}var Yn,Ji;function ey(){if(Ji)return Yn;Ji=1;var e=Jg(),t=Object.prototype.toString,r=Object.prototype.hasOwnProperty,o=function(l,u,m){for(var g=0,d=l.length;g<d;g++)r.call(l,g)&&(m==null?u(l[g],g,l):u.call(m,l[g],g,l))},s=function(l,u,m){for(var g=0,d=l.length;g<d;g++)m==null?u(l.charAt(g),g,l):u.call(m,l.charAt(g),g,l)},a=function(l,u,m){for(var g in l)r.call(l,g)&&(m==null?u(l[g],g,l):u.call(m,l[g],g,l))};function i(c){return t.call(c)==="[object Array]"}return Yn=function(l,u,m){if(!e(u))throw new TypeError("iterator must be a function");var g;arguments.length>=3&&(g=m),i(l)?o(l,u,g):typeof l=="string"?s(l,u,g):a(l,u,g)},Yn}var Zn,ea;function ty(){return ea||(ea=1,Zn=["Float16Array","Float32Array","Float64Array","Int8Array","Int16Array","Int32Array","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","BigInt64Array","BigUint64Array"]),Zn}var Jn,ta;function ry(){if(ta)return Jn;ta=1;var e=ty(),t=typeof globalThis>"u"?xl:globalThis;return Jn=function(){for(var o=[],s=0;s<e.length;s++)typeof t[e[s]]=="function"&&(o[o.length]=e[s]);return o},Jn}var eo={exports:{}},to,ra;function ny(){if(ra)return to;ra=1;var e=jr(),t=Sd(),r=$t(),o=xt();return to=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,m=arguments.length>5?arguments[5]:null,g=arguments.length>6?arguments[6]:!1,d=!!o&&o(a,i);if(e)e(a,i,{configurable:m===null&&d?d.configurable:!m,enumerable:l===null&&d?d.enumerable:!l,value:c,writable:u===null&&d?d.writable:!u});else if(g||!l&&!u&&!m)a[i]=c;else throw new t("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.")},to}var ro,na;function oy(){if(na)return ro;na=1;var e=jr(),t=function(){return!!e};return t.hasArrayLengthDefineBug=function(){if(!e)return null;try{return e([],"length",{value:1}).length!==1}catch{return!0}},ro=t,ro}var no,oa;function sy(){if(oa)return no;oa=1;var e=Ad(),t=ny(),r=oy()(),o=xt(),s=$t(),a=e("%Math.floor%");return no=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],m=!0,g=!0;if("length"in c&&o){var d=o(c,"length");d&&!d.configurable&&(m=!1),d&&!d.writable&&(g=!1)}return(m||g||!u)&&(r?t(c,"length",l,!0,!0):t(c,"length",l)),c},no}var oo,sa;function iy(){if(sa)return oo;sa=1;var e=zt(),t=us(),r=Ed();return oo=function(){return r(e,t,arguments)},oo}var ia;function ay(){return ia||(ia=1,function(e){var t=sy(),r=jr(),o=ds(),s=iy();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}(eo)),eo.exports}var so,aa;function Id(){if(aa)return so;aa=1;var e=ey(),t=ry(),r=ay(),o=Bt(),s=xt(),a=fs(),i=o("Object.prototype.toString"),c=br()(),l=typeof globalThis>"u"?xl:globalThis,u=t(),m=o("String.prototype.slice"),g=o("Array.prototype.indexOf",!0)||function(y,b){for(var S=0;S<y.length;S+=1)if(y[S]===b)return S;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),S=s(b,Symbol.toStringTag);if(!S&&b){var v=a(b);S=s(v,Symbol.toStringTag)}d["$"+_]=r(S.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(S,v){if(!b)try{"$"+S(y)===v&&(b=m(v,1))}catch{}}),b},h=function(y){var b=!1;return e(d,function(S,v){if(!b)try{S(y),b=m(v,1)}catch{}}),b};return so=function(y){if(!y||typeof y!="object")return!1;if(!c){var b=m(i(y),8,-1);return g(u,b)>-1?b:b!=="Object"?!1:h(y)}return s?f(y):null},so}var io,ca;function cy(){if(ca)return io;ca=1;var e=Id();return io=function(r){return!!e(r)},io}var la;function ly(){return la||(la=1,function(e){var t=Xg(),r=Zg(),o=Id(),s=cy();function a(F){return F.call.bind(F)}var i=typeof BigInt<"u",c=typeof Symbol<"u",l=a(Object.prototype.toString),u=a(Number.prototype.valueOf),m=a(String.prototype.valueOf),g=a(Boolean.prototype.valueOf);if(i)var d=a(BigInt.prototype.valueOf);if(c)var f=a(Symbol.prototype.valueOf);function h(F,ve){if(typeof F!="object")return!1;try{return ve(F),!0}catch{return!1}}e.isArgumentsObject=t,e.isGeneratorFunction=r,e.isTypedArray=s;function _(F){return typeof Promise<"u"&&F instanceof Promise||F!==null&&typeof F=="object"&&typeof F.then=="function"&&typeof F.catch=="function"}e.isPromise=_;function y(F){return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?ArrayBuffer.isView(F):s(F)||O(F)}e.isArrayBufferView=y;function b(F){return o(F)==="Uint8Array"}e.isUint8Array=b;function S(F){return o(F)==="Uint8ClampedArray"}e.isUint8ClampedArray=S;function v(F){return o(F)==="Uint16Array"}e.isUint16Array=v;function j(F){return o(F)==="Uint32Array"}e.isUint32Array=j;function w(F){return o(F)==="Int8Array"}e.isInt8Array=w;function E(F){return o(F)==="Int16Array"}e.isInt16Array=E;function C(F){return o(F)==="Int32Array"}e.isInt32Array=C;function P(F){return o(F)==="Float32Array"}e.isFloat32Array=P;function k(F){return o(F)==="Float64Array"}e.isFloat64Array=k;function R(F){return o(F)==="BigInt64Array"}e.isBigInt64Array=R;function N(F){return o(F)==="BigUint64Array"}e.isBigUint64Array=N;function I(F){return l(F)==="[object Map]"}I.working=typeof Map<"u"&&I(new Map);function z(F){return typeof Map>"u"?!1:I.working?I(F):F instanceof Map}e.isMap=z;function T(F){return l(F)==="[object Set]"}T.working=typeof Set<"u"&&T(new Set);function H(F){return typeof Set>"u"?!1:T.working?T(F):F instanceof Set}e.isSet=H;function W(F){return l(F)==="[object WeakMap]"}W.working=typeof WeakMap<"u"&&W(new WeakMap);function q(F){return typeof WeakMap>"u"?!1:W.working?W(F):F instanceof WeakMap}e.isWeakMap=q;function K(F){return l(F)==="[object WeakSet]"}K.working=typeof WeakSet<"u"&&K(new WeakSet);function V(F){return K(F)}e.isWeakSet=V;function B(F){return l(F)==="[object ArrayBuffer]"}B.working=typeof ArrayBuffer<"u"&&B(new ArrayBuffer);function J(F){return typeof ArrayBuffer>"u"?!1:B.working?B(F):F instanceof ArrayBuffer}e.isArrayBuffer=J;function A(F){return l(F)==="[object DataView]"}A.working=typeof ArrayBuffer<"u"&&typeof DataView<"u"&&A(new DataView(new ArrayBuffer(1),0,1));function O(F){return typeof DataView>"u"?!1:A.working?A(F):F instanceof DataView}e.isDataView=O;var D=typeof SharedArrayBuffer<"u"?SharedArrayBuffer:void 0;function X(F){return l(F)==="[object SharedArrayBuffer]"}function ne(F){return typeof D>"u"?!1:(typeof X.working>"u"&&(X.working=X(new D)),X.working?X(F):F instanceof D)}e.isSharedArrayBuffer=ne;function ee(F){return l(F)==="[object AsyncFunction]"}e.isAsyncFunction=ee;function L(F){return l(F)==="[object Map Iterator]"}e.isMapIterator=L;function te(F){return l(F)==="[object Set Iterator]"}e.isSetIterator=te;function Z(F){return l(F)==="[object Generator]"}e.isGeneratorObject=Z;function re(F){return l(F)==="[object WebAssembly.Module]"}e.isWebAssemblyCompiledModule=re;function $(F){return h(F,u)}e.isNumberObject=$;function M(F){return h(F,m)}e.isStringObject=M;function oe(F){return h(F,g)}e.isBooleanObject=oe;function ae(F){return i&&h(F,d)}e.isBigIntObject=ae;function de(F){return c&&h(F,f)}e.isSymbolObject=de;function fe(F){return $(F)||M(F)||oe(F)||ae(F)||de(F)}e.isBoxedPrimitive=fe;function ce(F){return typeof Uint8Array<"u"&&(J(F)||ne(F))}e.isAnyArrayBuffer=ce,["isProxy","isExternal","isModuleNamespaceObject"].forEach(function(F){Object.defineProperty(e,F,{enumerable:!1,value:function(){throw new Error(F+" is not supported in userland")}})})}(ln)),ln}var ao,ua;function uy(){return ua||(ua=1,ao=function(t){return t&&typeof t=="object"&&typeof t.copy=="function"&&typeof t.fill=="function"&&typeof t.readUInt8=="function"}),ao}var nr={exports:{}},da;function dy(){return da||(da=1,typeof Object.create=="function"?nr.exports=function(t,r){r&&(t.super_=r,t.prototype=Object.create(r.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}))}:nr.exports=function(t,r){if(r){t.super_=r;var o=function(){};o.prototype=r.prototype,t.prototype=new o,t.prototype.constructor=t}}),nr.exports}var fa;function fy(){return fa||(fa=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(!w(A)){for(var O=[],D=0;D<arguments.length;D++)O.push(i(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}}),L=X[D];D<ne;L=X[++D])S(L)||!k(L)?ee+=" "+L:ee+=" "+i(L);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 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 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 i(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),C(D.showHidden)&&(D.showHidden=!1),C(D.depth)&&(D.depth=2),C(D.colors)&&(D.colors=!1),C(D.customInspect)&&(D.customInspect=!0),D.colors&&(D.stylize=c),m(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,O){var D=i.styles[O];return D?"\x1B["+i.colors[D][0]+"m"+A+"\x1B["+i.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 m(A,O,D){if(A.customInspect&&O&&I(O.inspect)&&O.inspect!==e.inspect&&!(O.constructor&&O.constructor.prototype===O)){var X=O.inspect(D,A);return w(X)||(X=m(A,X,D)),X}var ne=g(A,O);if(ne)return ne;var ee=Object.keys(O),L=u(ee);if(A.showHidden&&(ee=Object.getOwnPropertyNames(O)),N(O)&&(ee.indexOf("message")>=0||ee.indexOf("description")>=0))return d(O);if(ee.length===0){if(I(O)){var te=O.name?": "+O.name:"";return A.stylize("[Function"+te+"]","special")}if(P(O))return A.stylize(RegExp.prototype.toString.call(O),"regexp");if(R(O))return A.stylize(Date.prototype.toString.call(O),"date");if(N(O))return d(O)}var Z="",re=!1,$=["{","}"];if(y(O)&&(re=!0,$=["[","]"]),I(O)){var M=O.name?": "+O.name:"";Z=" [Function"+M+"]"}if(P(O)&&(Z=" "+RegExp.prototype.toString.call(O)),R(O)&&(Z=" "+Date.prototype.toUTCString.call(O)),N(O)&&(Z=" "+d(O)),ee.length===0&&(!re||O.length==0))return $[0]+Z+$[1];if(D<0)return P(O)?A.stylize(RegExp.prototype.toString.call(O),"regexp"):A.stylize("[Object]","special");A.seen.push(O);var oe;return re?oe=f(A,O,D,L,ee):oe=ee.map(function(ae){return h(A,O,D,L,ae,re)}),A.seen.pop(),_(oe,Z,$)}function g(A,O){if(C(O))return A.stylize("undefined","undefined");if(w(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(S(O))return A.stylize("null","null")}function d(A){return"["+Error.prototype.toString.call(A)+"]"}function f(A,O,D,X,ne){for(var ee=[],L=0,te=O.length;L<te;++L)K(O,String(L))?ee.push(h(A,O,D,X,String(L),!0)):ee.push("");return ne.forEach(function(Z){Z.match(/^\d+$/)||ee.push(h(A,O,D,X,Z,!0))}),ee}function h(A,O,D,X,ne,ee){var L,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")),K(X,ne)||(L="["+ne+"]"),te||(A.seen.indexOf(Z.value)<0?(S(D)?te=m(A,Z.value,null):te=m(A,Z.value,D-1),te.indexOf(`
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.'),!S&&!te){const G=L({config:ne,src:y,width:re||400,quality:de||75});let me;try{me=new URL(G)}catch{}(G===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[G,me]of Object.entries({layout:W,objectFit:q,objectPosition:K,lazyBoundary:V,lazyRoot:B}))me&&(0,t.warnOnce)('Image with src "'+y+'" has legacy prop "'+G+`". Did you forget to run the codemod?
12
+ Read more: https://nextjs.org/docs/messages/next-image-upgrade-to-13`);if(typeof window<"u"&&!u&&window.PerformanceObserver){u=new PerformanceObserver(G=>{for(const Ae of G.getEntries()){var me;const Y=(Ae==null||(me=Ae.element)==null?void 0:me.src)||"",se=l.get(Y);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(G){console.error(G)}}}const pe=Object.assign(k?{position:"absolute",height:"100%",width:"100%",left:0,top:0,right:0,bottom:0,objectFit:q,objectPosition:K}:{},O?{}:{color:"transparent"},P),ce=!D&&z!=="empty"?z==="blur"?'url("data:image/svg+xml;charset=utf-8,'+(0,r.getImageBlurSvg)({widthInt:re,heightInt:$,blurWidth:M,blurHeight:oe,blurDataURL:T||"",objectFit:pe.objectFit})+'")':'url("'+z+'")':null;let F=ce?{backgroundSize:pe.objectFit||"cover",backgroundPosition:pe.objectPosition||"50% 50%",backgroundRepeat:"no-repeat",backgroundImage:ce}:{};process.env.NODE_ENV==="development"&&F.backgroundImage&&z==="blur"&&T!=null&&T.startsWith("/")&&(F.backgroundImage='url("'+T+'")');const xe=d({config:ne,src:y,unoptimized:S,width:re,quality:de,sizes:b,loader:L});if(process.env.NODE_ENV!=="production"&&typeof window<"u"){let G;try{G=new URL(xe.src)}catch{G=new URL(xe.src,window.location.href)}l.set(G.href,{src:y,priority:v,placeholder:z})}return{props:{...J,loading:ae?"lazy":j,fetchPriority:H,width:re,height:$,decoding:"async",className:w,style:{...pe,...F},sizes:xe.sizes,srcSet:xe.srcSet,src:xe.src},meta:{unoptimized:S,priority:v,placeholder:z,fill:k}}}})(ls);var Po={exports:{}},nr={exports:{}},en={},ai;function Tg(){return ai||(ai=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}}(en)),en}var tn={},ci;function kg(){return ci||(ci=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"AmpStateContext",{enumerable:!0,get:function(){return o}});const o=Oe._(x).default.createContext({});process.env.NODE_ENV!=="production"&&(o.displayName="AmpStateContext")}(tn)),tn}var rn={},li;function Ed(){return li||(li=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"HeadManagerContext",{enumerable:!0,get:function(){return o}});const o=Oe._(x).default.createContext({});process.env.NODE_ENV!=="production"&&(o.displayName="HeadManagerContext")}(rn)),rn}var nn={},ui;function Og(){return ui||(ui=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}}(nn)),nn}var di;function Mg(){return di||(di=1,function(e,t){"use client";Object.defineProperty(t,"__esModule",{value:!0});function r(S,v){for(var j in v)Object.defineProperty(S,j,{enumerable:!0,get:v[j]})}r(t,{defaultHead:function(){return h},default:function(){return b}});const o=Oe,a=yt._(x),i=o._(Tg()),c=kg(),l=Ed(),u=Og(),p=$t;function h(S){S===void 0&&(S=!1);const v=[a.default.createElement("meta",{charSet:"utf-8"})];return S||v.push(a.default.createElement("meta",{name:"viewport",content:"width=device-width"})),v}function d(S,v){return typeof v=="string"||typeof v=="number"?S:v.type===a.default.Fragment?S.concat(a.default.Children.toArray(v.props.children).reduce((j,w)=>typeof w=="string"||typeof w=="number"?j:j.concat(w),[])):S.concat(v)}const f=["name","httpEquiv","charSet","itemProp"];function g(){const S=new Set,v=new Set,j=new Set,w={};return E=>{let C=!0,R=!1;if(E.key&&typeof E.key!="number"&&E.key.indexOf("$")>0){R=!0;const k=E.key.slice(E.key.indexOf("$")+1);S.has(k)?C=!1:S.add(k)}switch(E.type){case"title":case"base":v.has(E.type)?C=!1:v.add(E.type);break;case"meta":for(let k=0,P=f.length;k<P;k++){const N=f[k];if(E.props.hasOwnProperty(N))if(N==="charSet")j.has(N)?C=!1:j.add(N);else{const I=E.props[N],z=w[N]||new Set;(N!=="name"||!R)&&z.has(I)?C=!1:(z.add(I),w[N]=z)}}break}return C}}function _(S,v){const{inAmpMode:j}=v;return S.reduce(d,[]).reverse().concat(h(j).reverse()).filter(g()).reverse().map((w,E)=>{const C=w.key||E;if(process.env.NODE_ENV!=="development"&&process.env.__NEXT_OPTIMIZE_FONTS&&!j&&w.type==="link"&&w.props.href&&["https://fonts.googleapis.com/css","https://use.typekit.net/"].some(R=>w.props.href.startsWith(R))){const R={...w.props||{}};return R["data-href"]=R.href,R.href=void 0,R["data-optimized-fonts"]=!0,a.default.cloneElement(w,R)}if(process.env.NODE_ENV==="development")if(w.type==="script"&&w.props.type!=="application/ld+json"){const R=w.props.src?'<script> tag with src="'+w.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 w.type==="link"&&w.props.rel==="stylesheet"&&(0,p.warnOnce)('Do not add stylesheets using next/head (see <link rel="stylesheet"> tag with href="'+w.props.href+`"). Use Document instead.
15
+ See more info here: https://nextjs.org/docs/messages/no-stylesheets-in-head-component`);return a.default.cloneElement(w,{key:C})})}function y(S){let{children:v}=S;const j=(0,a.useContext)(c.AmpStateContext),w=(0,a.useContext)(l.HeadManagerContext);return a.default.createElement(i.default,{reduceComponentsToState:_,headManager:w,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)}(nr,nr.exports)),nr.exports}var on={},fi;function Lg(){return fi||(fi=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"ImageConfigContext",{enumerable:!0,get:function(){return s}});const r=Oe._(x),o=br,s=r.default.createContext(o.imageConfigDefault);process.env.NODE_ENV!=="production"&&(s.displayName="ImageConfigContext")}(on)),on}var sn={},an={},cn={exports:{}};const Dg=jm(U.__viteBrowserExternal);var ln={},un={},dn,pi;function Rd(){return pi||(pi=1,dn=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}),dn}var fn,mi;function jr(){if(mi)return fn;mi=1;var e=Rd();return fn=function(){return e()&&!!Symbol.toStringTag},fn}var pn,hi;function Ad(){return hi||(hi=1,pn=Object),pn}var mn,gi;function $g(){return gi||(gi=1,mn=Error),mn}var hn,yi;function zg(){return yi||(yi=1,hn=EvalError),hn}var gn,_i;function Bg(){return _i||(_i=1,gn=RangeError),gn}var yn,vi;function Fg(){return vi||(vi=1,yn=ReferenceError),yn}var _n,xi;function Id(){return xi||(xi=1,_n=SyntaxError),_n}var vn,bi;function zt(){return bi||(bi=1,vn=TypeError),vn}var xn,ji;function qg(){return ji||(ji=1,xn=URIError),xn}var bn,Ci;function Hg(){return Ci||(Ci=1,bn=Math.abs),bn}var jn,Si;function Ug(){return Si||(Si=1,jn=Math.floor),jn}var Cn,wi;function Wg(){return wi||(wi=1,Cn=Math.max),Cn}var Sn,Pi;function Vg(){return Pi||(Pi=1,Sn=Math.min),Sn}var wn,Ei;function Gg(){return Ei||(Ei=1,wn=Math.pow),wn}var Pn,Ri;function Kg(){return Ri||(Ri=1,Pn=Math.round),Pn}var En,Ai;function Xg(){return Ai||(Ai=1,En=Number.isNaN||function(t){return t!==t}),En}var Rn,Ii;function Qg(){if(Ii)return Rn;Ii=1;var e=Xg();return Rn=function(r){return e(r)||r===0?r:r<0?-1:1},Rn}var An,Ni;function Yg(){return Ni||(Ni=1,An=Object.getOwnPropertyDescriptor),An}var In,Ti;function jt(){if(Ti)return In;Ti=1;var e=Yg();if(e)try{e([],"length")}catch{e=null}return In=e,In}var Nn,ki;function Cr(){if(ki)return Nn;ki=1;var e=Object.defineProperty||!1;if(e)try{e({},"a",{value:1})}catch{e=!1}return Nn=e,Nn}var Tn,Oi;function Zg(){if(Oi)return Tn;Oi=1;var e=typeof Symbol<"u"&&Symbol,t=Rd();return Tn=function(){return typeof e!="function"||typeof Symbol!="function"||typeof e("foo")!="symbol"||typeof Symbol("bar")!="symbol"?!1:t()},Tn}var kn,Mi;function Nd(){return Mi||(Mi=1,kn=typeof Reflect<"u"&&Reflect.getPrototypeOf||null),kn}var On,Li;function Td(){if(Li)return On;Li=1;var e=Ad();return On=e.getPrototypeOf||null,On}var Mn,Di;function Jg(){if(Di)return Mn;Di=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 Mn=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},Mn}var Ln,$i;function Bt(){if($i)return Ln;$i=1;var e=Jg();return Ln=Function.prototype.bind||e,Ln}var Dn,zi;function us(){return zi||(zi=1,Dn=Function.prototype.call),Dn}var $n,Bi;function ds(){return Bi||(Bi=1,$n=Function.prototype.apply),$n}var zn,Fi;function ey(){return Fi||(Fi=1,zn=typeof Reflect<"u"&&Reflect&&Reflect.apply),zn}var Bn,qi;function kd(){if(qi)return Bn;qi=1;var e=Bt(),t=ds(),r=us(),o=ey();return Bn=o||e.call(r,t),Bn}var Fn,Hi;function fs(){if(Hi)return Fn;Hi=1;var e=Bt(),t=zt(),r=us(),o=kd();return Fn=function(a){if(a.length<1||typeof a[0]!="function")throw new t("a function is required");return o(e,r,a)},Fn}var qn,Ui;function ty(){if(Ui)return qn;Ui=1;var e=fs(),t=jt(),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 qn=o&&typeof o.get=="function"?e([o.get]):typeof a=="function"?function(c){return a(c==null?c:s(c))}:!1,qn}var Hn,Wi;function ps(){if(Wi)return Hn;Wi=1;var e=Nd(),t=Td(),r=ty();return Hn=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,Hn}var Un,Vi;function Od(){if(Vi)return Un;Vi=1;var e=Function.prototype.call,t=Object.prototype.hasOwnProperty,r=Bt();return Un=r.call(e,t),Un}var Wn,Gi;function Md(){if(Gi)return Wn;Gi=1;var e,t=Ad(),r=$g(),o=zg(),s=Bg(),a=Fg(),i=Id(),c=zt(),l=qg(),u=Hg(),p=Ug(),h=Wg(),d=Vg(),f=Gg(),g=Kg(),_=Qg(),y=Function,b=function(te){try{return y('"use strict"; return ('+te+").constructor;")()}catch{}},S=jt(),v=Cr(),j=function(){throw new c},w=S?function(){try{return arguments.callee,j}catch{try{return S(arguments,"callee").get}catch{return j}}}():j,E=Zg()(),C=ps(),R=Td(),k=Nd(),P=ds(),N=us(),I={},z=typeof Uint8Array>"u"||!C?e:C(Uint8Array),T={__proto__:null,"%AggregateError%":typeof AggregateError>"u"?e:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>"u"?e:ArrayBuffer,"%ArrayIteratorPrototype%":E&&C?C([][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&&C?C(C([][Symbol.iterator]())):e,"%JSON%":typeof JSON=="object"?JSON:e,"%Map%":typeof Map>"u"?e:Map,"%MapIteratorPrototype%":typeof Map>"u"||!E||!C?e:C(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":t,"%Object.getOwnPropertyDescriptor%":S,"%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||!C?e:C(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer>"u"?e:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":E&&C?C(""[Symbol.iterator]()):e,"%Symbol%":E?Symbol:e,"%SyntaxError%":i,"%ThrowTypeError%":w,"%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%":P,"%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%":k};if(C)try{null.error}catch(te){var H=C(C(te));T["%Error.prototype%"]=H}var W=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&&C&&(re=C(M.prototype))}return T[Z]=re,re},q={__proto__:null,"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},K=Bt(),V=Od(),B=K.call(N,Array.prototype.concat),J=K.call(P,Array.prototype.splice),A=K.call(N,String.prototype.replace),O=K.call(N,String.prototype.slice),D=K.call(N,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 i("invalid intrinsic syntax, expected closing `%`");if($==="%"&&re!=="%")throw new i("invalid intrinsic syntax, expected opening `%`");var M=[];return A(Z,X,function(oe,ae,de,pe){M[M.length]=de?A(pe,ne,"$1"):ae||oe}),M},L=function(Z,re){var $=Z,M;if(V(q,$)&&(M=q[$],$="%"+M[0]+"%"),V(T,$)){var oe=T[$];if(oe===I&&(oe=W($)),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 Wn=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),ae=oe.name,de=oe.value,pe=!1,ce=oe.alias;ce&&(M=ce[0],J($,B([0,1],ce)));for(var F=1,xe=!0;F<$.length;F+=1){var ie=$[F],_e=O(ie,0,1),G=O(ie,-1);if((_e==='"'||_e==="'"||_e==="`"||G==='"'||G==="'"||G==="`")&&_e!==G)throw new i("property names with quotes must have matching quotes");if((ie==="constructor"||!xe)&&(pe=!0),M+="."+ie,ae="%"+M+"%",V(T,ae))de=T[ae];else if(de!=null){if(!(ie in de)){if(!re)throw new c("base intrinsic for "+Z+" exists, but the property is not available.");return}if(S&&F+1>=$.length){var me=S(de,ie);xe=!!me,xe&&"get"in me&&!("originalValue"in me.get)?de=me.get:de=de[ie]}else xe=V(de,ie),de=de[ie];xe&&!pe&&(T[ae]=de)}}return de},Wn}var Vn,Ki;function Ft(){if(Ki)return Vn;Ki=1;var e=Md(),t=fs(),r=t([e("%String.prototype.indexOf%")]);return Vn=function(s,a){var i=e(s,!!a);return typeof i=="function"&&r(s,".prototype.")>-1?t([i]):i},Vn}var Gn,Xi;function ry(){if(Xi)return Gn;Xi=1;var e=jr()(),t=Ft(),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,Gn=a?o:s,Gn}var Kn,Qi;function ny(){if(Qi)return Kn;Qi=1;var e=Ft(),t=jr()(),r=Od(),o=jt(),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 Kn=s,Kn}var Xn,Yi;function oy(){if(Yi)return Xn;Yi=1;var e=Ft(),t=ny(),r=e("RegExp.prototype.exec"),o=zt();return Xn=function(a){if(!t(a))throw new o("`regex` must be a RegExp");return function(c){return r(a,c)!==null}},Xn}var Qn,Zi;function sy(){if(Zi)return Qn;Zi=1;var e=Ft(),t=oy(),r=t(/^\s*(?:function)?\*/),o=jr()(),s=ps(),a=e("Object.prototype.toString"),i=e("Function.prototype.toString"),c=function(){if(!o)return!1;try{return Function("return function*() {}")()}catch{}},l;return Qn=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},Qn}var Yn,Ji;function iy(){if(Ji)return Yn;Ji=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(S){S!==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 Yn=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)},Yn}var Zn,ea;function ay(){if(ea)return Zn;ea=1;var e=iy(),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 Zn=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)},Zn}var Jn,ta;function cy(){return ta||(ta=1,Jn=["Float16Array","Float32Array","Float64Array","Int8Array","Int16Array","Int32Array","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","BigInt64Array","BigUint64Array"]),Jn}var eo,ra;function ly(){if(ra)return eo;ra=1;var e=cy(),t=typeof globalThis>"u"?Sl:globalThis;return eo=function(){for(var o=[],s=0;s<e.length;s++)typeof t[e[s]]=="function"&&(o[o.length]=e[s]);return o},eo}var to={exports:{}},ro,na;function uy(){if(na)return ro;na=1;var e=Cr(),t=Id(),r=zt(),o=jt();return ro=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.")},ro}var no,oa;function dy(){if(oa)return no;oa=1;var e=Cr(),t=function(){return!!e};return t.hasArrayLengthDefineBug=function(){if(!e)return null;try{return e([],"length",{value:1}).length!==1}catch{return!0}},no=t,no}var oo,sa;function fy(){if(sa)return oo;sa=1;var e=Md(),t=uy(),r=dy()(),o=jt(),s=zt(),a=e("%Math.floor%");return oo=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},oo}var so,ia;function py(){if(ia)return so;ia=1;var e=Bt(),t=ds(),r=kd();return so=function(){return r(e,t,arguments)},so}var aa;function my(){return aa||(aa=1,function(e){var t=fy(),r=Cr(),o=fs(),s=py();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}(to)),to.exports}var io,ca;function Ld(){if(ca)return io;ca=1;var e=ay(),t=ly(),r=my(),o=Ft(),s=jt(),a=ps(),i=o("Object.prototype.toString"),c=jr()(),l=typeof globalThis>"u"?Sl:globalThis,u=t(),p=o("String.prototype.slice"),h=o("Array.prototype.indexOf",!0)||function(y,b){for(var S=0;S<y.length;S+=1)if(y[S]===b)return S;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),S=s(b,Symbol.toStringTag);if(!S&&b){var v=a(b);S=s(v,Symbol.toStringTag)}d["$"+_]=r(S.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(S,v){if(!b)try{"$"+S(y)===v&&(b=p(v,1))}catch{}}),b},g=function(y){var b=!1;return e(d,function(S,v){if(!b)try{S(y),b=p(v,1)}catch{}}),b};return io=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},io}var ao,la;function hy(){if(la)return ao;la=1;var e=Ld();return ao=function(r){return!!e(r)},ao}var ua;function gy(){return ua||(ua=1,function(e){var t=ry(),r=sy(),o=Ld(),s=hy();function a(F){return F.call.bind(F)}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(F,xe){if(typeof F!="object")return!1;try{return xe(F),!0}catch{return!1}}e.isArgumentsObject=t,e.isGeneratorFunction=r,e.isTypedArray=s;function _(F){return typeof Promise<"u"&&F instanceof Promise||F!==null&&typeof F=="object"&&typeof F.then=="function"&&typeof F.catch=="function"}e.isPromise=_;function y(F){return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?ArrayBuffer.isView(F):s(F)||O(F)}e.isArrayBufferView=y;function b(F){return o(F)==="Uint8Array"}e.isUint8Array=b;function S(F){return o(F)==="Uint8ClampedArray"}e.isUint8ClampedArray=S;function v(F){return o(F)==="Uint16Array"}e.isUint16Array=v;function j(F){return o(F)==="Uint32Array"}e.isUint32Array=j;function w(F){return o(F)==="Int8Array"}e.isInt8Array=w;function E(F){return o(F)==="Int16Array"}e.isInt16Array=E;function C(F){return o(F)==="Int32Array"}e.isInt32Array=C;function R(F){return o(F)==="Float32Array"}e.isFloat32Array=R;function k(F){return o(F)==="Float64Array"}e.isFloat64Array=k;function P(F){return o(F)==="BigInt64Array"}e.isBigInt64Array=P;function N(F){return o(F)==="BigUint64Array"}e.isBigUint64Array=N;function I(F){return l(F)==="[object Map]"}I.working=typeof Map<"u"&&I(new Map);function z(F){return typeof Map>"u"?!1:I.working?I(F):F instanceof Map}e.isMap=z;function T(F){return l(F)==="[object Set]"}T.working=typeof Set<"u"&&T(new Set);function H(F){return typeof Set>"u"?!1:T.working?T(F):F instanceof Set}e.isSet=H;function W(F){return l(F)==="[object WeakMap]"}W.working=typeof WeakMap<"u"&&W(new WeakMap);function q(F){return typeof WeakMap>"u"?!1:W.working?W(F):F instanceof WeakMap}e.isWeakMap=q;function K(F){return l(F)==="[object WeakSet]"}K.working=typeof WeakSet<"u"&&K(new WeakSet);function V(F){return K(F)}e.isWeakSet=V;function B(F){return l(F)==="[object ArrayBuffer]"}B.working=typeof ArrayBuffer<"u"&&B(new ArrayBuffer);function J(F){return typeof ArrayBuffer>"u"?!1:B.working?B(F):F instanceof ArrayBuffer}e.isArrayBuffer=J;function A(F){return l(F)==="[object DataView]"}A.working=typeof ArrayBuffer<"u"&&typeof DataView<"u"&&A(new DataView(new ArrayBuffer(1),0,1));function O(F){return typeof DataView>"u"?!1:A.working?A(F):F instanceof DataView}e.isDataView=O;var D=typeof SharedArrayBuffer<"u"?SharedArrayBuffer:void 0;function X(F){return l(F)==="[object SharedArrayBuffer]"}function ne(F){return typeof D>"u"?!1:(typeof X.working>"u"&&(X.working=X(new D)),X.working?X(F):F instanceof D)}e.isSharedArrayBuffer=ne;function ee(F){return l(F)==="[object AsyncFunction]"}e.isAsyncFunction=ee;function L(F){return l(F)==="[object Map Iterator]"}e.isMapIterator=L;function te(F){return l(F)==="[object Set Iterator]"}e.isSetIterator=te;function Z(F){return l(F)==="[object Generator]"}e.isGeneratorObject=Z;function re(F){return l(F)==="[object WebAssembly.Module]"}e.isWebAssemblyCompiledModule=re;function $(F){return g(F,u)}e.isNumberObject=$;function M(F){return g(F,p)}e.isStringObject=M;function oe(F){return g(F,h)}e.isBooleanObject=oe;function ae(F){return i&&g(F,d)}e.isBigIntObject=ae;function de(F){return c&&g(F,f)}e.isSymbolObject=de;function pe(F){return $(F)||M(F)||oe(F)||ae(F)||de(F)}e.isBoxedPrimitive=pe;function ce(F){return typeof Uint8Array<"u"&&(J(F)||ne(F))}e.isAnyArrayBuffer=ce,["isProxy","isExternal","isModuleNamespaceObject"].forEach(function(F){Object.defineProperty(e,F,{enumerable:!1,value:function(){throw new Error(F+" is not supported in userland")}})})}(un)),un}var co,da;function yy(){return da||(da=1,co=function(t){return t&&typeof t=="object"&&typeof t.copy=="function"&&typeof t.fill=="function"&&typeof t.readUInt8=="function"}),co}var or={exports:{}},fa;function _y(){return fa||(fa=1,typeof Object.create=="function"?or.exports=function(t,r){r&&(t.super_=r,t.prototype=Object.create(r.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}))}:or.exports=function(t,r){if(r){t.super_=r;var o=function(){};o.prototype=r.prototype,t.prototype=new o,t.prototype.constructor=t}}),or.exports}var pa;function vy(){return pa||(pa=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(!w(A)){for(var O=[],D=0;D<arguments.length;D++)O.push(i(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}}),L=X[D];D<ne;L=X[++D])S(L)||!k(L)?ee+=" "+L:ee+=" "+i(L);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 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 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 i(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),C(D.showHidden)&&(D.showHidden=!1),C(D.depth)&&(D.depth=2),C(D.colors)&&(D.colors=!1),C(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,O){var D=i.styles[O];return D?"\x1B["+i.colors[D][0]+"m"+A+"\x1B["+i.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 p(A,O,D){if(A.customInspect&&O&&I(O.inspect)&&O.inspect!==e.inspect&&!(O.constructor&&O.constructor.prototype===O)){var X=O.inspect(D,A);return w(X)||(X=p(A,X,D)),X}var ne=h(A,O);if(ne)return ne;var ee=Object.keys(O),L=u(ee);if(A.showHidden&&(ee=Object.getOwnPropertyNames(O)),N(O)&&(ee.indexOf("message")>=0||ee.indexOf("description")>=0))return d(O);if(ee.length===0){if(I(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(P(O))return A.stylize(Date.prototype.toString.call(O),"date");if(N(O))return d(O)}var Z="",re=!1,$=["{","}"];if(y(O)&&(re=!0,$=["[","]"]),I(O)){var M=O.name?": "+O.name:"";Z=" [Function"+M+"]"}if(R(O)&&(Z=" "+RegExp.prototype.toString.call(O)),P(O)&&(Z=" "+Date.prototype.toUTCString.call(O)),N(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=f(A,O,D,L,ee):oe=ee.map(function(ae){return g(A,O,D,L,ae,re)}),A.seen.pop(),_(oe,Z,$)}function h(A,O){if(C(O))return A.stylize("undefined","undefined");if(w(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(S(O))return A.stylize("null","null")}function d(A){return"["+Error.prototype.toString.call(A)+"]"}function f(A,O,D,X,ne){for(var ee=[],L=0,te=O.length;L<te;++L)K(O,String(L))?ee.push(g(A,O,D,X,String(L),!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 L,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")),K(X,ne)||(L="["+ne+"]"),te||(A.seen.indexOf(Z.value)<0?(S(D)?te=p(A,Z.value,null):te=p(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=`
@@ -21,25 +21,25 @@ See more info here: https://nextjs.org/docs/messages/no-stylesheets-in-head-comp
21
21
  `))):te=A.stylize("[Circular]","special")),C(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,O,D){var X=A.reduce(function(ne,ee){return ee.indexOf(`
22
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]+O+" "+A.join(", ")+" "+D[1]}e.types=ly();function y(A){return Array.isArray(A)}e.isArray=y;function b(A){return typeof A=="boolean"}e.isBoolean=b;function S(A){return A===null}e.isNull=S;function v(A){return A==null}e.isNullOrUndefined=v;function j(A){return typeof A=="number"}e.isNumber=j;function w(A){return typeof A=="string"}e.isString=w;function E(A){return typeof A=="symbol"}e.isSymbol=E;function C(A){return A===void 0}e.isUndefined=C;function P(A){return k(A)&&T(A)==="[object RegExp]"}e.isRegExp=P,e.types.isRegExp=P;function k(A){return typeof A=="object"&&A!==null}e.isObject=k;function R(A){return k(A)&&T(A)==="[object Date]"}e.isDate=R,e.types.isDate=R;function N(A){return k(A)&&(T(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=uy();function T(A){return Object.prototype.toString.call(A)}function H(A){return A<10?"0"+A.toString(10):A.toString(10)}var W=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function q(){var A=new Date,O=[H(A.getHours()),H(A.getMinutes()),H(A.getSeconds())].join(":");return[A.getDate(),W[A.getMonth()],O].join(" ")}e.log=function(){console.log("%s - %s",q(),e.format.apply(e,arguments))},e.inherits=dy(),e._extend=function(A,O){if(!O||!k(O))return A;for(var D=Object.keys(O),X=D.length;X--;)A[D[X]]=O[D[X]];return A};function K(A,O){return Object.prototype.hasOwnProperty.call(A,O)}var V=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(V&&O[V]){var D=O[V];if(typeof D!="function")throw new TypeError('The "util.promisify.custom" argument must be of type Function');return Object.defineProperty(D,V,{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{O.apply(this,L)}catch(Z){ne(Z)}return ee}return Object.setPrototypeOf(D,Object.getPrototypeOf(O)),V&&Object.defineProperty(D,V,{value:D,enumerable:!1,writable:!1,configurable:!0}),Object.defineProperties(D,t(O))},e.promisify.custom=V;function B(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,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(O,Object.getPrototypeOf(A)),Object.defineProperties(O,t(A)),O}e.callbackify=J}(cn)),cn}var pa;function py(){return pa||(pa=1,(()=>{var e={333:(s,a,i)=>{const c=i(137),l=i(179),u=i(13),m=i(719),g=(d,f={})=>{let h=[];if(Array.isArray(d))for(let _ of d){let y=g.create(_,f);Array.isArray(y)?h.push(...y):h.push(y)}else h=[].concat(g.create(d,f));return f&&f.expand===!0&&f.nodupes===!0&&(h=[...new Set(h)]),h};g.parse=(d,f={})=>m(d,f),g.stringify=(d,f={})=>c(typeof d=="string"?g.parse(d,f):d,f),g.compile=(d,f={})=>(typeof d=="string"&&(d=g.parse(d,f)),l(d,f)),g.expand=(d,f={})=>{typeof d=="string"&&(d=g.parse(d,f));let h=u(d,f);return f.noempty===!0&&(h=h.filter(Boolean)),f.nodupes===!0&&(h=[...new Set(h)]),h},g.create=(d,f={})=>d===""||d.length<3?[d]:f.expand!==!0?g.compile(d,f):g.expand(d,f),s.exports=g},179:(s,a,i)=>{const c=i(783),l=i(617),u=(m,g={})=>{let d=(f,h={})=>{let _=l.isInvalidBrace(h),y=f.invalid===!0&&g.escapeInvalid===!0,b=_===!0||y===!0,S=g.escapeInvalid===!0?"\\":"",v="";if(f.isOpen===!0||f.isClose===!0)return S+f.value;if(f.type==="open")return b?S+f.value:"(";if(f.type==="close")return b?S+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),w=c(...j,{...g,wrap:!1,toRegex:!0});if(w.length!==0)return j.length>1&&w.length>1?`(${w})`:w}if(f.nodes)for(let j of f.nodes)v+=d(j,f);return v};return d(m)};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),m=(d="",f="",h=!1)=>{let _=[];if(d=[].concat(d),f=[].concat(f),!f.length)return d;if(!d.length)return h?u.flatten(f).map(y=>`{${y}}`):f;for(let y of d)if(Array.isArray(y))for(let b of y)_.push(m(b,f,h));else for(let b of f)h===!0&&typeof b=="string"&&(b=`{${b}}`),_.push(Array.isArray(b)?m(y,b,h):y+b);return u.flatten(_)},g=(d,f={})=>{let h=f.rangeLimit===void 0?1e3:f.rangeLimit,_=(y,b={})=>{y.queue=[];let S=b,v=b.queue;for(;S.type!=="brace"&&S.type!=="root"&&S.parent;)S=S.parent,v=S.queue;if(y.invalid||y.dollar){v.push(m(v.pop(),l(y,f)));return}if(y.type==="brace"&&y.invalid!==!0&&y.nodes.length===2){v.push(m(v.pop(),["{}"]));return}if(y.nodes&&y.ranges>0){let C=u.reduce(y.nodes);if(u.exceedsLimit(...C,f.step,h))throw new RangeError("expanded array length exceeds range limit. Use options.rangeLimit to increase or disable the limit.");let P=c(...C,f);P.length===0&&(P=l(y,f)),v.push(m(v.pop(),P)),y.nodes=[];return}let j=u.encloseBrace(y),w=y.queue,E=y;for(;E.type!=="brace"&&E.type!=="root"&&E.parent;)E=E.parent,w=E.queue;for(let C=0;C<y.nodes.length;C++){let P=y.nodes[C];if(P.type==="comma"&&y.type==="brace"){C===1&&w.push(""),w.push("");continue}if(P.type==="close"){v.push(m(v.pop(),w,j));continue}if(P.value&&P.type!=="open"){w.push(m(w.pop(),P.value));continue}P.nodes&&_(P,y)}return w};return u.flatten(_(d))};s.exports=g},719:(s,a,i)=>{const c=i(137),{MAX_LENGTH:l,CHAR_BACKSLASH:u,CHAR_BACKTICK:m,CHAR_COMMA:g,CHAR_DOT:d,CHAR_LEFT_PARENTHESES:f,CHAR_RIGHT_PARENTHESES:h,CHAR_LEFT_CURLY_BRACE:_,CHAR_RIGHT_CURLY_BRACE:y,CHAR_LEFT_SQUARE_BRACKET:b,CHAR_RIGHT_SQUARE_BRACKET:S,CHAR_DOUBLE_QUOTE:v,CHAR_SINGLE_QUOTE:j,CHAR_NO_BREAK_SPACE:w,CHAR_ZERO_WIDTH_NOBREAK_SPACE:E}=i(457),C=(P,k={})=>{if(typeof P!="string")throw new TypeError("Expected a string");let R=k||{},N=typeof R.maxLength=="number"?Math.min(l,R.maxLength):l;if(P.length>N)throw new SyntaxError(`Input length (${P.length}), exceeds max characters (${N})`);let I={type:"root",input:P,nodes:[]},z=[I],T=I,H=I,W=0,q=P.length,K=0,V=0,B;const J=()=>P[K++],A=O=>{if(O.type==="text"&&H.type==="dot"&&(H.type="text"),H&&H.type==="text"&&O.type==="text"){H.value+=O.value;return}return T.nodes.push(O),O.parent=T,O.prev=H,H=O,O};for(A({type:"bos"});K<q;)if(T=z[z.length-1],B=J(),!(B===E||B===w)){if(B===u){A({type:"text",value:(k.keepEscaping?B:"")+J()});continue}if(B===S){A({type:"text",value:"\\"+B});continue}if(B===b){W++;let O;for(;K<q&&(O=J());){if(B+=O,O===b){W++;continue}if(O===u){B+=J();continue}if(O===S&&(W--,W===0))break}A({type:"text",value:B});continue}if(B===f){T=A({type:"paren",nodes:[]}),z.push(T),A({type:"text",value:B});continue}if(B===h){if(T.type!=="paren"){A({type:"text",value:B});continue}T=z.pop(),A({type:"text",value:B}),T=z[z.length-1];continue}if(B===v||B===j||B===m){let O=B,D;for(k.keepQuotes!==!0&&(B="");K<q&&(D=J());){if(D===u){B+=D+J();continue}if(D===O){k.keepQuotes===!0&&(B+=D);break}B+=D}A({type:"text",value:B});continue}if(B===_){V++;let D={type:"brace",open:!0,close:!1,dollar:H.value&&H.value.slice(-1)==="$"||T.dollar===!0,depth:V,commas:0,ranges:0,nodes:[]};T=A(D),z.push(T),A({type:"open",value:B});continue}if(B===y){if(T.type!=="brace"){A({type:"text",value:B});continue}let O="close";T=z.pop(),T.close=!0,A({type:O,value:B}),V--,T=z[z.length-1];continue}if(B===g&&V>0){if(T.ranges>0){T.ranges=0;let O=T.nodes.shift();T.nodes=[O,{type:"text",value:c(T)}]}A({type:"comma",value:B}),T.commas++;continue}if(B===d&&V>0&&T.commas===0){let O=T.nodes;if(V===0||O.length===0){A({type:"text",value:B});continue}if(H.type==="dot"){if(T.range=[],H.value+=B,H.type="range",T.nodes.length!==3&&T.nodes.length!==5){T.invalid=!0,T.ranges=0,H.type="text";continue}T.ranges++,T.args=[];continue}if(H.type==="range"){O.pop();let D=O[O.length-1];D.value+=H.value+B,H=D,T.ranges--;continue}A({type:"dot",value:B});continue}A({type:"text",value:B})}do if(T=z.pop(),T.type!=="root"){T.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(T);O.nodes.splice(D,1,...T.nodes)}while(z.length>0);return A({type:"eos"}),I};s.exports=C},137:(s,a,i)=>{const c=i(617);s.exports=(l,u={})=>{let m=(g,d={})=>{let f=u.escapeInvalid&&c.isInvalidBrace(d),h=g.invalid===!0&&u.escapeInvalid===!0,_="";if(g.value)return(f||h)&&c.isOpenOrClose(g)?"\\"+g.value:g.value;if(g.value)return g.value;if(g.nodes)for(let y of g.nodes)_+=m(y);return _};return m(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 m=0;m<u.length;m++){let g=u[m];Array.isArray(g)?l(g):g!==void 0&&c.push(g)}return c};return l(i),c}},783:(s,a,i)=>{/*!
24
+ `)+" "+D[1]:D[0]+O+" "+A.join(", ")+" "+D[1]}e.types=gy();function y(A){return Array.isArray(A)}e.isArray=y;function b(A){return typeof A=="boolean"}e.isBoolean=b;function S(A){return A===null}e.isNull=S;function v(A){return A==null}e.isNullOrUndefined=v;function j(A){return typeof A=="number"}e.isNumber=j;function w(A){return typeof A=="string"}e.isString=w;function E(A){return typeof A=="symbol"}e.isSymbol=E;function C(A){return A===void 0}e.isUndefined=C;function R(A){return k(A)&&T(A)==="[object RegExp]"}e.isRegExp=R,e.types.isRegExp=R;function k(A){return typeof A=="object"&&A!==null}e.isObject=k;function P(A){return k(A)&&T(A)==="[object Date]"}e.isDate=P,e.types.isDate=P;function N(A){return k(A)&&(T(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=yy();function T(A){return Object.prototype.toString.call(A)}function H(A){return A<10?"0"+A.toString(10):A.toString(10)}var W=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function q(){var A=new Date,O=[H(A.getHours()),H(A.getMinutes()),H(A.getSeconds())].join(":");return[A.getDate(),W[A.getMonth()],O].join(" ")}e.log=function(){console.log("%s - %s",q(),e.format.apply(e,arguments))},e.inherits=_y(),e._extend=function(A,O){if(!O||!k(O))return A;for(var D=Object.keys(O),X=D.length;X--;)A[D[X]]=O[D[X]];return A};function K(A,O){return Object.prototype.hasOwnProperty.call(A,O)}var V=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(V&&O[V]){var D=O[V];if(typeof D!="function")throw new TypeError('The "util.promisify.custom" argument must be of type Function');return Object.defineProperty(D,V,{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{O.apply(this,L)}catch(Z){ne(Z)}return ee}return Object.setPrototypeOf(D,Object.getPrototypeOf(O)),V&&Object.defineProperty(D,V,{value:D,enumerable:!1,writable:!1,configurable:!0}),Object.defineProperties(D,t(O))},e.promisify.custom=V;function B(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,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(O,Object.getPrototypeOf(A)),Object.defineProperties(O,t(A)),O}e.callbackify=J}(ln)),ln}var ma;function xy(){return ma||(ma=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,S=h.escapeInvalid===!0?"\\":"",v="";if(f.isOpen===!0||f.isClose===!0)return S+f.value;if(f.type==="open")return b?S+f.value:"(";if(f.type==="close")return b?S+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),w=c(...j,{...h,wrap:!1,toRegex:!0});if(w.length!==0)return j.length>1&&w.length>1?`(${w})`:w}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 S=b,v=b.queue;for(;S.type!=="brace"&&S.type!=="root"&&S.parent;)S=S.parent,v=S.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 C=u.reduce(y.nodes);if(u.exceedsLimit(...C,f.step,g))throw new RangeError("expanded array length exceeds range limit. Use options.rangeLimit to increase or disable the limit.");let R=c(...C,f);R.length===0&&(R=l(y,f)),v.push(p(v.pop(),R)),y.nodes=[];return}let j=u.encloseBrace(y),w=y.queue,E=y;for(;E.type!=="brace"&&E.type!=="root"&&E.parent;)E=E.parent,w=E.queue;for(let C=0;C<y.nodes.length;C++){let R=y.nodes[C];if(R.type==="comma"&&y.type==="brace"){C===1&&w.push(""),w.push("");continue}if(R.type==="close"){v.push(p(v.pop(),w,j));continue}if(R.value&&R.type!=="open"){w.push(p(w.pop(),R.value));continue}R.nodes&&_(R,y)}return w};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:S,CHAR_DOUBLE_QUOTE:v,CHAR_SINGLE_QUOTE:j,CHAR_NO_BREAK_SPACE:w,CHAR_ZERO_WIDTH_NOBREAK_SPACE:E}=i(457),C=(R,k={})=>{if(typeof R!="string")throw new TypeError("Expected a string");let P=k||{},N=typeof P.maxLength=="number"?Math.min(l,P.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],T=I,H=I,W=0,q=R.length,K=0,V=0,B;const J=()=>R[K++],A=O=>{if(O.type==="text"&&H.type==="dot"&&(H.type="text"),H&&H.type==="text"&&O.type==="text"){H.value+=O.value;return}return T.nodes.push(O),O.parent=T,O.prev=H,H=O,O};for(A({type:"bos"});K<q;)if(T=z[z.length-1],B=J(),!(B===E||B===w)){if(B===u){A({type:"text",value:(k.keepEscaping?B:"")+J()});continue}if(B===S){A({type:"text",value:"\\"+B});continue}if(B===b){W++;let O;for(;K<q&&(O=J());){if(B+=O,O===b){W++;continue}if(O===u){B+=J();continue}if(O===S&&(W--,W===0))break}A({type:"text",value:B});continue}if(B===f){T=A({type:"paren",nodes:[]}),z.push(T),A({type:"text",value:B});continue}if(B===g){if(T.type!=="paren"){A({type:"text",value:B});continue}T=z.pop(),A({type:"text",value:B}),T=z[z.length-1];continue}if(B===v||B===j||B===p){let O=B,D;for(k.keepQuotes!==!0&&(B="");K<q&&(D=J());){if(D===u){B+=D+J();continue}if(D===O){k.keepQuotes===!0&&(B+=D);break}B+=D}A({type:"text",value:B});continue}if(B===_){V++;let D={type:"brace",open:!0,close:!1,dollar:H.value&&H.value.slice(-1)==="$"||T.dollar===!0,depth:V,commas:0,ranges:0,nodes:[]};T=A(D),z.push(T),A({type:"open",value:B});continue}if(B===y){if(T.type!=="brace"){A({type:"text",value:B});continue}let O="close";T=z.pop(),T.close=!0,A({type:O,value:B}),V--,T=z[z.length-1];continue}if(B===h&&V>0){if(T.ranges>0){T.ranges=0;let O=T.nodes.shift();T.nodes=[O,{type:"text",value:c(T)}]}A({type:"comma",value:B}),T.commas++;continue}if(B===d&&V>0&&T.commas===0){let O=T.nodes;if(V===0||O.length===0){A({type:"text",value:B});continue}if(H.type==="dot"){if(T.range=[],H.value+=B,H.type="range",T.nodes.length!==3&&T.nodes.length!==5){T.invalid=!0,T.ranges=0,H.type="text";continue}T.ranges++,T.args=[];continue}if(H.type==="range"){O.pop();let D=O[O.length-1];D.value+=H.value+B,H=D,T.ranges--;continue}A({type:"dot",value:B});continue}A({type:"text",value:B})}do if(T=z.pop(),T.type!=="root"){T.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(T);O.nodes.splice(D,1,...T.nodes)}while(z.length>0);return A({type:"eos"}),I};s.exports=C},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)=>{/*!
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=R=>R!==null&&typeof R=="object"&&!Array.isArray(R),m=R=>N=>R===!0?Number(N):String(N),g=R=>typeof R=="number"||typeof R=="string"&&R!=="",d=R=>Number.isInteger(+R),f=R=>{let N=`${R}`,I=-1;if(N[0]==="-"&&(N=N.slice(1)),N==="0")return!1;for(;N[++I]==="0";);return I>0},h=(R,N,I)=>typeof R=="string"||typeof N=="string"?!0:I.stringify===!0,_=(R,N,I)=>{if(N>0){let z=R[0]==="-"?"-":"";z&&(R=R.slice(1)),R=z+R.padStart(z?N-1:N,"0")}return I===!1?String(R):R},y=(R,N)=>{let I=R[0]==="-"?"-":"";for(I&&(R=R.slice(1),N--);R.length<N;)R="0"+R;return I?"-"+R:R},b=(R,N)=>{R.negatives.sort((W,q)=>W<q?-1:W>q?1:0),R.positives.sort((W,q)=>W<q?-1:W>q?1:0);let I=N.capture?"":"?:",z="",T="",H;return R.positives.length&&(z=R.positives.join("|")),R.negatives.length&&(T=`-(${I}${R.negatives.join("|")})`),z&&T?H=`${z}|${T}`:H=z||T,N.wrap?`(${I}${H})`:H},S=(R,N,I,z)=>{if(I)return l(R,N,{wrap:!1,...z});let T=String.fromCharCode(R);if(R===N)return T;let H=String.fromCharCode(N);return`[${T}-${H}]`},v=(R,N,I)=>{if(Array.isArray(R)){let z=I.wrap===!0,T=I.capture?"":"?:";return z?`(${T}${R.join("|")})`:R.join("|")}return l(R,N,I)},j=(...R)=>new RangeError("Invalid range arguments: "+c.inspect(...R)),w=(R,N,I)=>{if(I.strictRanges===!0)throw j([R,N]);return[]},E=(R,N)=>{if(N.strictRanges===!0)throw new TypeError(`Expected step "${R}" to be a number`);return[]},C=(R,N,I=1,z={})=>{let T=Number(R),H=Number(N);if(!Number.isInteger(T)||!Number.isInteger(H)){if(z.strictRanges===!0)throw j([R,N]);return[]}T===0&&(T=0),H===0&&(H=0);let W=T>H,q=String(R),K=String(N),V=String(I);I=Math.max(Math.abs(I),1);let B=f(q)||f(K)||f(V),J=B?Math.max(q.length,K.length,V.length):0,A=B===!1&&h(R,N,z)===!1,O=z.transform||m(A);if(z.toRegex&&I===1)return S(y(R,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(;W?T>=H:T<=H;)z.toRegex===!0&&I>1?X(T):ne.push(_(O(T,ee),J,A)),T=W?T-I:T+I,ee++;return z.toRegex===!0?I>1?b(D,z):v(ne,null,{wrap:!1,...z}):ne},P=(R,N,I=1,z={})=>{if(!d(R)&&R.length>1||!d(N)&&N.length>1)return w(R,N,z);let T=z.transform||(A=>String.fromCharCode(A)),H=`${R}`.charCodeAt(0),W=`${N}`.charCodeAt(0),q=H>W,K=Math.min(H,W),V=Math.max(H,W);if(z.toRegex&&I===1)return S(K,V,!1,z);let B=[],J=0;for(;q?H>=W:H<=W;)B.push(T(H,J)),H=q?H-I:H+I,J++;return z.toRegex===!0?v(B,null,{wrap:!1,options:z}):B},k=(R,N,I,z={})=>{if(N==null&&g(R))return[R];if(!g(R)||!g(N))return w(R,N,z);if(typeof I=="function")return k(R,N,1,{transform:I});if(u(I))return k(R,N,0,I);let T={...z};return T.capture===!0&&(T.wrap=!0),I=I||T.step||1,d(I)?d(R)&&d(N)?C(R,N,I,T):P(R,N,Math.max(Math.abs(I),1),T):I!=null&&!u(I)?E(I,T):k(R,N,1,I)};s.exports=k},357:s=>{/*!
30
+ */const c=i(837),l=i(492),u=P=>P!==null&&typeof P=="object"&&!Array.isArray(P),p=P=>N=>P===!0?Number(N):String(N),h=P=>typeof P=="number"||typeof P=="string"&&P!=="",d=P=>Number.isInteger(+P),f=P=>{let N=`${P}`,I=-1;if(N[0]==="-"&&(N=N.slice(1)),N==="0")return!1;for(;N[++I]==="0";);return I>0},g=(P,N,I)=>typeof P=="string"||typeof N=="string"?!0:I.stringify===!0,_=(P,N,I)=>{if(N>0){let z=P[0]==="-"?"-":"";z&&(P=P.slice(1)),P=z+P.padStart(z?N-1:N,"0")}return I===!1?String(P):P},y=(P,N)=>{let I=P[0]==="-"?"-":"";for(I&&(P=P.slice(1),N--);P.length<N;)P="0"+P;return I?"-"+P:P},b=(P,N)=>{P.negatives.sort((W,q)=>W<q?-1:W>q?1:0),P.positives.sort((W,q)=>W<q?-1:W>q?1:0);let I=N.capture?"":"?:",z="",T="",H;return P.positives.length&&(z=P.positives.join("|")),P.negatives.length&&(T=`-(${I}${P.negatives.join("|")})`),z&&T?H=`${z}|${T}`:H=z||T,N.wrap?`(${I}${H})`:H},S=(P,N,I,z)=>{if(I)return l(P,N,{wrap:!1,...z});let T=String.fromCharCode(P);if(P===N)return T;let H=String.fromCharCode(N);return`[${T}-${H}]`},v=(P,N,I)=>{if(Array.isArray(P)){let z=I.wrap===!0,T=I.capture?"":"?:";return z?`(${T}${P.join("|")})`:P.join("|")}return l(P,N,I)},j=(...P)=>new RangeError("Invalid range arguments: "+c.inspect(...P)),w=(P,N,I)=>{if(I.strictRanges===!0)throw j([P,N]);return[]},E=(P,N)=>{if(N.strictRanges===!0)throw new TypeError(`Expected step "${P}" to be a number`);return[]},C=(P,N,I=1,z={})=>{let T=Number(P),H=Number(N);if(!Number.isInteger(T)||!Number.isInteger(H)){if(z.strictRanges===!0)throw j([P,N]);return[]}T===0&&(T=0),H===0&&(H=0);let W=T>H,q=String(P),K=String(N),V=String(I);I=Math.max(Math.abs(I),1);let B=f(q)||f(K)||f(V),J=B?Math.max(q.length,K.length,V.length):0,A=B===!1&&g(P,N,z)===!1,O=z.transform||p(A);if(z.toRegex&&I===1)return S(y(P,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(;W?T>=H:T<=H;)z.toRegex===!0&&I>1?X(T):ne.push(_(O(T,ee),J,A)),T=W?T-I:T+I,ee++;return z.toRegex===!0?I>1?b(D,z):v(ne,null,{wrap:!1,...z}):ne},R=(P,N,I=1,z={})=>{if(!d(P)&&P.length>1||!d(N)&&N.length>1)return w(P,N,z);let T=z.transform||(A=>String.fromCharCode(A)),H=`${P}`.charCodeAt(0),W=`${N}`.charCodeAt(0),q=H>W,K=Math.min(H,W),V=Math.max(H,W);if(z.toRegex&&I===1)return S(K,V,!1,z);let B=[],J=0;for(;q?H>=W:H<=W;)B.push(T(H,J)),H=q?H-I:H+I,J++;return z.toRegex===!0?v(B,null,{wrap:!1,options:z}):B},k=(P,N,I,z={})=>{if(N==null&&h(P))return[P];if(!h(P)||!h(N))return w(P,N,z);if(typeof I=="function")return k(P,N,1,{transform:I});if(u(I))return k(P,N,0,I);let T={...z};return T.capture===!0&&(T.wrap=!0),I=I||T.step||1,d(I)?d(P)&&d(N)?C(P,N,I,T):R(P,N,Math.max(Math.abs(I),1),T):I!=null&&!u(I)?E(I,T):k(P,N,1,I)};s.exports=k},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),m=i(513),g=f=>f===""||f==="./",d=(f,h,_)=>{h=[].concat(h),f=[].concat(f);let y=new Set,b=new Set,S=new Set,v=0,j=C=>{S.add(C.output),_&&_.onResult&&_.onResult(C)};for(let C=0;C<h.length;C++){let P=u(String(h[C]),{..._,onResult:j},!0),k=P.state.negated||P.state.negatedExtglob;k&&v++;for(let R of f){let N=P(R,!0);(k?!N.isMatch:N.isMatch)&&(k?y.add(N.output):(y.delete(N.output),b.add(N.output)))}}let E=(v===h.length?[...S]:[...b]).filter(C=>!y.has(C));if(_&&E.length===0){if(_.failglob===!0)throw new Error(`No matches found for "${h.join(", ")}"`);if(_.nonull===!0||_.nullglob===!0)return _.unescape?h.map(C=>C.replace(/\\/g,"")):h}return E};d.match=d,d.matcher=(f,h)=>u(f,h),d.isMatch=(f,h,_)=>u(h,_)(f),d.any=d.isMatch,d.not=(f,h,_={})=>{h=[].concat(h).map(String);let y=new Set,b=[],v=d(f,h,{..._,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,h,_)=>{if(typeof f!="string")throw new TypeError(`Expected a string: "${c.inspect(f)}"`);if(Array.isArray(h))return h.some(y=>d.contains(f,y,_));if(typeof h=="string"){if(g(f)||g(h))return!1;if(f.includes(h)||f.startsWith("./")&&f.slice(2).includes(h))return!0}return d.isMatch(f,h,{..._,contains:!0})},d.matchKeys=(f,h,_)=>{if(!m.isObject(f))throw new TypeError("Expected the first argument to be an object");let y=d(Object.keys(f),h,_),b={};for(let S of y)b[S]=f[S];return b},d.some=(f,h,_)=>{let y=[].concat(f);for(let b of[].concat(h)){let S=u(String(b),_);if(y.some(v=>S(v)))return!0}return!1},d.every=(f,h,_)=>{let y=[].concat(f);for(let b of[].concat(h)){let S=u(String(b),_);if(!y.every(v=>S(v)))return!1}return!0},d.all=(f,h,_)=>{if(typeof f!="string")throw new TypeError(`Expected a string: "${c.inspect(f)}"`);return[].concat(h).every(y=>u(y,_)(f))},d.capture=(f,h,_)=>{let y=m.isWindows(_),S=u.makeRe(String(f),{..._,capture:!0}).exec(y?m.toPosixSlashes(h):h);if(S)return S.slice(1).map(v=>v===void 0?"":v)},d.makeRe=(...f)=>u.makeRe(...f),d.scan=(...f)=>u.scan(...f),d.parse=(f,h)=>{let _=[];for(let y of[].concat(f||[]))for(let b of l(String(y),h))_.push(u.parse(b,h));return _},d.braces=(f,h)=>{if(typeof f!="string")throw new TypeError("Expected a string");return h&&h.nobrace===!0||!/\{.*\}/.test(f)?[f]:l(f,h)},d.braceExpand=(f,h)=>{if(typeof f!="string")throw new TypeError("Expected a string");return d.braces(f,{...h,expand:!0})},s.exports=d},251:(s,a,i)=>{s.exports=i(683)},356:(s,a,i)=>{const c=i(17),l="\\\\/",u=`[^${l}]`,m="\\.",g="\\+",d="\\?",f="\\/",h="(?=.)",_="[^/]",y=`(?:${f}|$)`,b=`(?:^|${f})`,S=`${m}{1,2}${y}`,v=`(?!${m})`,j=`(?!${b}${S})`,w=`(?!${m}{0,1}${y})`,E=`(?!${S})`,C=`[^.${f}]`,P=`${_}*?`,k={DOT_LITERAL:m,PLUS_LITERAL:g,QMARK_LITERAL:d,SLASH_LITERAL:f,ONE_CHAR:h,QMARK:_,END_ANCHOR:y,DOTS_SLASH:S,NO_DOT:v,NO_DOTS:j,NO_DOT_SLASH:w,NO_DOTS_SLASH:E,QMARK_NO_DOT:C,STAR:P,START_ANCHOR:b},R={...k,SLASH_LITERAL:`[${l}]`,QMARK:u,STAR:`${u}*?`,DOTS_SLASH:`${m}{1,2}(?:[${l}]|$)`,NO_DOT:`(?!${m})`,NO_DOTS:`(?!(?:^|[${l}])${m}{1,2}(?:[${l}]|$))`,NO_DOT_SLASH:`(?!${m}{0,1}(?:[${l}]|$))`,NO_DOTS_SLASH:`(?!${m}{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?R:k}}},754:(s,a,i)=>{const c=i(356),l=i(513),{MAX_LENGTH:u,POSIX_REGEX_SOURCE:m,REGEX_NON_SPECIAL_CHARS:g,REGEX_SPECIAL_CHARS_BACKREF:d,REPLACEMENTS:f}=c,h=(b,S)=>{if(typeof S.expandRange=="function")return S.expandRange(...b,S);b.sort();const v=`[${b.join("-")}]`;try{new RegExp(v)}catch{return b.map(w=>l.escapeRegex(w)).join("..")}return v},_=(b,S)=>`Missing ${b}: "${S}" - use "\\\\${S}" to match literal characters`,y=(b,S)=>{if(typeof b!="string")throw new TypeError("Expected a string");b=f[b]||b;const v={...S},j=typeof v.maxLength=="number"?Math.min(u,v.maxLength):u;let w=b.length;if(w>j)throw new SyntaxError(`Input length: ${w}, exceeds maximum allowed length: ${j}`);const E={type:"bos",value:"",output:v.prepend||""},C=[E],P=v.capture?"":"?:",k=l.isWindows(S),R=c.globChars(k),N=c.extglobChars(R),{DOT_LITERAL:I,PLUS_LITERAL:z,SLASH_LITERAL:T,ONE_CHAR:H,DOTS_SLASH:W,NO_DOT:q,NO_DOT_SLASH:K,NO_DOTS_SLASH:V,QMARK:B,QMARK_NO_DOT:J,STAR:A,START_ANCHOR:O}=R,D=Y=>`(${P}(?:(?!${O}${Y.dot?W:I}).)*?)`,X=v.dot?"":q,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:C};b=l.removePrefix(b,L),w=b.length;const te=[],Z=[],re=[];let $=E,M;const oe=()=>L.index===w-1,ae=L.peek=(Y=1)=>b[L.index+Y],de=L.advance=()=>b[++L.index],fe=()=>b.slice(L.index+1),ce=(Y="",se=0)=>{L.consumed+=Y,L.index+=se},F=Y=>{L.output+=Y.output!=null?Y.output:Y.value,ce(Y.value)},ve=()=>{let Y=1;for(;ae()==="!"&&(ae(2)!=="("||ae(3)==="?");)de(),L.start++,Y++;return Y%2===0?!1:(L.negated=!0,L.start++,!0)},ie=Y=>{L[Y]++,re.push(Y)},_e=Y=>{L[Y]--,re.pop()},G=Y=>{if($.type==="globstar"){const se=L.braces>0&&(Y.type==="comma"||Y.type==="brace"),Q=Y.extglob===!0||te.length&&(Y.type==="pipe"||Y.type==="paren");Y.type!=="slash"&&Y.type!=="paren"&&!se&&!Q&&(L.output=L.output.slice(0,-$.output.length),$.type="star",$.value="*",$.output=ee,L.output+=$.output)}if(te.length&&Y.type!=="paren"&&!N[Y.value]&&(te[te.length-1].inner+=Y.value),(Y.value||Y.output)&&F(Y),$&&$.type==="text"&&Y.type==="text"){$.value+=Y.value,$.output=($.output||"")+Y.value;return}Y.prev=$,C.push(Y),$=Y},pe=(Y,se)=>{const Q={...N[se],conditions:1,inner:""};Q.prev=$,Q.parens=L.parens,Q.output=L.output;const me=(v.capture?"(":"")+Q.open;ie("parens"),G({type:Y,value:se,output:L.output?"":H}),G({type:"paren",extglob:!0,value:de(),output:me}),te.push(Q)},Ae=Y=>{let se=Y.close+(v.capture?")":"");if(Y.type==="negate"){let Q=ee;Y.inner&&Y.inner.length>1&&Y.inner.includes("/")&&(Q=D(v)),(Q!==ee||oe()||/^\)+$/.test(fe()))&&(se=Y.close=`)$))${Q}`),Y.prev.type==="bos"&&(L.negatedExtglob=!0)}G({type:"paren",extglob:!0,value:M,output:se}),_e("parens")};if(v.fastpaths!==!1&&!/(^[*!]|[/()[\]{}"])/.test(b)){let Y=!1,se=b.replace(d,(Q,me,Ce,Te,Pe,Sr)=>Te==="\\"?(Y=!0,Q):Te==="?"?me?me+Te+(Pe?B.repeat(Pe.length):""):Sr===0?ne+(Pe?B.repeat(Pe.length):""):B.repeat(Ce.length):Te==="."?I.repeat(Ce.length):Te==="*"?me?me+Te+(Pe?ee:""):ee:me?Q:`\\${Q}`);return Y===!0&&(v.unescape===!0?se=se.replace(/\\/g,""):se=se.replace(/\\+/g,Q=>Q.length%2===0?"\\\\":Q?"\\":"")),se===b&&v.contains===!0?(L.output=b,L):(L.output=l.wrapOutput(se,L,S),L)}for(;!oe();){if(M=de(),M==="\0")continue;if(M==="\\"){const Q=ae();if(Q==="/"&&v.bash!==!0||Q==="."||Q===";")continue;if(!Q){M+="\\",G({type:"text",value:M});continue}const me=/^\\+/.exec(fe());let Ce=0;if(me&&me[0].length>2&&(Ce=me[0].length,L.index+=Ce,Ce%2!==0&&(M+="\\")),v.unescape===!0?M=de()||"":M+=de()||"",L.brackets===0){G({type:"text",value:M});continue}}if(L.brackets>0&&(M!=="]"||$.value==="["||$.value==="[^")){if(v.posix!==!1&&M===":"){const Q=$.value.slice(1);if(Q.includes("[")&&($.posix=!0,Q.includes(":"))){const me=$.value.lastIndexOf("["),Ce=$.value.slice(0,me),Te=$.value.slice(me+2),Pe=m[Te];if(Pe){$.value=Ce+Pe,L.backtrack=!0,de(),!E.output&&C.indexOf($)===1&&(E.output=H);continue}}}(M==="["&&ae()!==":"||M==="-"&&ae()==="]")&&(M=`\\${M}`),M==="]"&&($.value==="["||$.value==="[^")&&(M=`\\${M}`),v.posix===!0&&M==="!"&&$.value==="["&&(M="^"),$.value+=M,F({value:M});continue}if(L.quotes===1&&M!=='"'){M=l.escapeRegex(M),$.value+=M,F({value:M});continue}if(M==='"'){L.quotes=L.quotes===1?0:1,v.keepQuotes===!0&&G({type:"text",value:M});continue}if(M==="("){ie("parens"),G({type:"paren",value:M});continue}if(M===")"){if(L.parens===0&&v.strictBrackets===!0)throw new SyntaxError(_("opening","("));const Q=te[te.length-1];if(Q&&L.parens===Q.parens+1){Ae(te.pop());continue}G({type:"paren",value:M,output:L.parens?")":"\\)"}),_e("parens");continue}if(M==="["){if(v.nobracket===!0||!fe().includes("]")){if(v.nobracket!==!0&&v.strictBrackets===!0)throw new SyntaxError(_("closing","]"));M=`\\${M}`}else ie("brackets");G({type:"bracket",value:M});continue}if(M==="]"){if(v.nobracket===!0||$&&$.type==="bracket"&&$.value.length===1){G({type:"text",value:M,output:`\\${M}`});continue}if(L.brackets===0){if(v.strictBrackets===!0)throw new SyntaxError(_("opening","["));G({type:"text",value:M,output:`\\${M}`});continue}_e("brackets");const Q=$.value.slice(1);if($.posix!==!0&&Q[0]==="^"&&!Q.includes("/")&&(M=`/${M}`),$.value+=M,F({value:M}),v.literalBrackets===!1||l.hasRegexChars(Q))continue;const me=l.escapeRegex($.value);if(L.output=L.output.slice(0,-$.value.length),v.literalBrackets===!0){L.output+=me,$.value=me;continue}$.value=`(${P}${me}|${$.value})`,L.output+=$.value;continue}if(M==="{"&&v.nobrace!==!0){ie("braces");const Q={type:"brace",value:M,output:"(",outputIndex:L.output.length,tokensIndex:L.tokens.length};Z.push(Q),G(Q);continue}if(M==="}"){const Q=Z[Z.length-1];if(v.nobrace===!0||!Q){G({type:"text",value:M,output:M});continue}let me=")";if(Q.dots===!0){const Ce=C.slice(),Te=[];for(let Pe=Ce.length-1;Pe>=0&&(C.pop(),Ce[Pe].type!=="brace");Pe--)Ce[Pe].type!=="dots"&&Te.unshift(Ce[Pe].value);me=h(Te,v),L.backtrack=!0}if(Q.comma!==!0&&Q.dots!==!0){const Ce=L.output.slice(0,Q.outputIndex),Te=L.tokens.slice(Q.tokensIndex);Q.value=Q.output="\\{",M=me="\\}",L.output=Ce;for(const Pe of Te)L.output+=Pe.output||Pe.value}G({type:"brace",value:M,output:me}),_e("braces"),Z.pop();continue}if(M==="|"){te.length>0&&te[te.length-1].conditions++,G({type:"text",value:M});continue}if(M===","){let Q=M;const me=Z[Z.length-1];me&&re[re.length-1]==="braces"&&(me.comma=!0,Q="|"),G({type:"comma",value:M,output:Q});continue}if(M==="/"){if($.type==="dot"&&L.index===L.start+1){L.start=L.index+1,L.consumed="",L.output="",C.pop(),$=E;continue}G({type:"slash",value:M,output:T});continue}if(M==="."){if(L.braces>0&&$.type==="dot"){$.value==="."&&($.output=I);const Q=Z[Z.length-1];$.type="dots",$.output+=M,$.value+=M,Q.dots=!0;continue}if(L.braces+L.parens===0&&$.type!=="bos"&&$.type!=="slash"){G({type:"text",value:M,output:I});continue}G({type:"dot",value:M,output:I});continue}if(M==="?"){if(!($&&$.value==="(")&&v.noextglob!==!0&&ae()==="("&&ae(2)!=="?"){pe("qmark",M);continue}if($&&$.type==="paren"){const me=ae();let Ce=M;if(me==="<"&&!l.supportsLookbehinds())throw new Error("Node.js v10 or higher is required for regex lookbehinds");($.value==="("&&!/[!=<:]/.test(me)||me==="<"&&!/<([!=]|\w+>)/.test(fe()))&&(Ce=`\\${M}`),G({type:"text",value:M,output:Ce});continue}if(v.dot!==!0&&($.type==="slash"||$.type==="bos")){G({type:"qmark",value:M,output:J});continue}G({type:"qmark",value:M,output:B});continue}if(M==="!"){if(v.noextglob!==!0&&ae()==="("&&(ae(2)!=="?"||!/[!=<:]/.test(ae(3)))){pe("negate",M);continue}if(v.nonegate!==!0&&L.index===0){ve();continue}}if(M==="+"){if(v.noextglob!==!0&&ae()==="("&&ae(2)!=="?"){pe("plus",M);continue}if($&&$.value==="("||v.regex===!1){G({type:"plus",value:M,output:z});continue}if($&&($.type==="bracket"||$.type==="paren"||$.type==="brace")||L.parens>0){G({type:"plus",value:M});continue}G({type:"plus",value:z});continue}if(M==="@"){if(v.noextglob!==!0&&ae()==="("&&ae(2)!=="?"){G({type:"at",extglob:!0,value:M,output:""});continue}G({type:"text",value:M});continue}if(M!=="*"){(M==="$"||M==="^")&&(M=`\\${M}`);const Q=g.exec(fe());Q&&(M+=Q[0],L.index+=Q[0].length),G({type:"text",value:M});continue}if($&&($.type==="globstar"||$.star===!0)){$.type="star",$.star=!0,$.value+=M,$.output=ee,L.backtrack=!0,L.globstar=!0,ce(M);continue}let Y=fe();if(v.noextglob!==!0&&/^\([^?]/.test(Y)){pe("star",M);continue}if($.type==="star"){if(v.noglobstar===!0){ce(M);continue}const Q=$.prev,me=Q.prev,Ce=Q.type==="slash"||Q.type==="bos",Te=me&&(me.type==="star"||me.type==="globstar");if(v.bash===!0&&(!Ce||Y[0]&&Y[0]!=="/")){G({type:"star",value:M,output:""});continue}const Pe=L.braces>0&&(Q.type==="comma"||Q.type==="brace"),Sr=te.length&&(Q.type==="pipe"||Q.type==="paren");if(!Ce&&Q.type!=="paren"&&!Pe&&!Sr){G({type:"star",value:M,output:""});continue}for(;Y.slice(0,3)==="/**";){const qt=b[L.index+4];if(qt&&qt!=="/")break;Y=Y.slice(3),ce("/**",3)}if(Q.type==="bos"&&oe()){$.type="globstar",$.value+=M,$.output=D(v),L.output=$.output,L.globstar=!0,ce(M);continue}if(Q.type==="slash"&&Q.prev.type!=="bos"&&!Te&&oe()){L.output=L.output.slice(0,-(Q.output+$.output).length),Q.output=`(?:${Q.output}`,$.type="globstar",$.output=D(v)+(v.strictSlashes?")":"|$)"),$.value+=M,L.globstar=!0,L.output+=Q.output+$.output,ce(M);continue}if(Q.type==="slash"&&Q.prev.type!=="bos"&&Y[0]==="/"){const qt=Y[1]!==void 0?"|$":"";L.output=L.output.slice(0,-(Q.output+$.output).length),Q.output=`(?:${Q.output}`,$.type="globstar",$.output=`${D(v)}${T}|${T}${qt})`,$.value+=M,L.output+=Q.output+$.output,L.globstar=!0,ce(M+de()),G({type:"slash",value:"/",output:""});continue}if(Q.type==="bos"&&Y[0]==="/"){$.type="globstar",$.value+=M,$.output=`(?:^|${T}|${D(v)}${T})`,L.output=$.output,L.globstar=!0,ce(M+de()),G({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,ce(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),G(se);continue}if($&&($.type==="bracket"||$.type==="paren")&&v.regex===!0){se.output=M,G(se);continue}(L.index===L.start||$.type==="slash"||$.type==="dot")&&($.type==="dot"?(L.output+=K,$.output+=K):v.dot===!0?(L.output+=V,$.output+=V):(L.output+=X,$.output+=X),ae()!=="*"&&(L.output+=H,$.output+=H)),G(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")&&G({type:"maybe_slash",value:"",output:`${T}?`}),L.backtrack===!0){L.output="";for(const Y of L.tokens)L.output+=Y.output!=null?Y.output:Y.value,Y.suffix&&(L.output+=Y.suffix)}return L};y.fastpaths=(b,S)=>{const v={...S},j=typeof v.maxLength=="number"?Math.min(u,v.maxLength):u,w=b.length;if(w>j)throw new SyntaxError(`Input length: ${w}, exceeds maximum allowed length: ${j}`);b=f[b]||b;const E=l.isWindows(S),{DOT_LITERAL:C,SLASH_LITERAL:P,ONE_CHAR:k,DOTS_SLASH:R,NO_DOT:N,NO_DOTS:I,NO_DOTS_SLASH:z,STAR:T,START_ANCHOR:H}=c.globChars(E),W=v.dot?I:N,q=v.dot?z:N,K=v.capture?"":"?:",V={negated:!1,prefix:""};let B=v.bash===!0?".*?":T;v.capture&&(B=`(${B})`);const J=X=>X.noglobstar===!0?B:`(${K}(?:(?!${H}${X.dot?R:C}).)*?)`,A=X=>{switch(X){case"*":return`${W}${k}${B}`;case".*":return`${C}${k}${B}`;case"*.*":return`${W}${B}${C}${k}${B}`;case"*/*":return`${W}${B}${P}${k}${q}${B}`;case"**":return W+J(v);case"**/*":return`(?:${W}${J(v)}${P})?${q}${k}${B}`;case"**/*.*":return`(?:${W}${J(v)}${P})?${q}${B}${C}${k}${B}`;case"**/.*":return`(?:${W}${J(v)}${P})?${C}${k}${B}`;default:{const ne=/^(.*?)\.(\w+)$/.exec(X);if(!ne)return;const ee=A(ne[1]);return ee?ee+C+ne[2]:void 0}}},O=l.removePrefix(b,V);let D=A(O);return D&&v.strictSlashes!==!0&&(D+=`${P}?`),D},s.exports=y},683:(s,a,i)=>{const c=i(17),l=i(700),u=i(754),m=i(513),g=i(356),d=h=>h&&typeof h=="object"&&!Array.isArray(h),f=(h,_,y=!1)=>{if(Array.isArray(h)){const P=h.map(R=>f(R,_,y));return R=>{for(const N of P){const I=N(R);if(I)return I}return!1}}const b=d(h)&&h.tokens&&h.input;if(h===""||typeof h!="string"&&!b)throw new TypeError("Expected pattern to be a non-empty string");const S=_||{},v=m.isWindows(_),j=b?f.compileRe(h,_):f.makeRe(h,_,!1,!0),w=j.state;delete j.state;let E=()=>!1;if(S.ignore){const P={..._,ignore:null,onMatch:null,onResult:null};E=f(S.ignore,P,y)}const C=(P,k=!1)=>{const{isMatch:R,match:N,output:I}=f.test(P,j,_,{glob:h,posix:v}),z={glob:h,state:w,regex:j,posix:v,input:P,output:I,match:N,isMatch:R};return typeof S.onResult=="function"&&S.onResult(z),R===!1?(z.isMatch=!1,k?z:!1):E(P)?(typeof S.onIgnore=="function"&&S.onIgnore(z),z.isMatch=!1,k?z:!1):(typeof S.onMatch=="function"&&S.onMatch(z),k?z:!0)};return y&&(C.state=w),C};f.test=(h,_,y,{glob:b,posix:S}={})=>{if(typeof h!="string")throw new TypeError("Expected input to be a string");if(h==="")return{isMatch:!1,output:""};const v=y||{},j=v.format||(S?m.toPosixSlashes:null);let w=h===b,E=w&&j?j(h):h;return w===!1&&(E=j?j(h):h,w=E===b),(w===!1||v.capture===!0)&&(v.matchBase===!0||v.basename===!0?w=f.matchBase(h,_,y,S):w=_.exec(E)),{isMatch:!!w,match:w,output:E}},f.matchBase=(h,_,y,b=m.isWindows(y))=>(_ instanceof RegExp?_:f.makeRe(_,y)).test(c.basename(h)),f.isMatch=(h,_,y)=>f(_,y)(h),f.parse=(h,_)=>Array.isArray(h)?h.map(y=>f.parse(y,_)):u(h,{..._,fastpaths:!1}),f.scan=(h,_)=>l(h,_),f.compileRe=(h,_,y=!1,b=!1)=>{if(y===!0)return h.output;const S=_||{},v=S.contains?"":"^",j=S.contains?"":"$";let w=`${v}(?:${h.output})${j}`;h&&h.negated===!0&&(w=`^(?!${w}).*$`);const E=f.toRegex(w,_);return b===!0&&(E.state=h),E},f.makeRe=(h,_,y=!1,b=!1)=>{if(!h||typeof h!="string")throw new TypeError("Expected a non-empty string");const S=_||{};let v={negated:!1,fastpaths:!0},j="",w;return h.startsWith("./")&&(h=h.slice(2),j=v.prefix="./"),S.fastpaths!==!1&&(h[0]==="."||h[0]==="*")&&(w=u.fastpaths(h,_)),w===void 0?(v=u(h,_),v.prefix=j+(v.prefix||"")):v.output=w,f.compileRe(v,_,y,b)},f.toRegex=(h,_)=>{try{const y=_||{};return new RegExp(h,y.flags||(y.nocase?"i":""))}catch(y){if(_&&_.debug===!0)throw y;return/$^/}},f.constants=g,s.exports=f},700:(s,a,i)=>{const c=i(513),{CHAR_ASTERISK:l,CHAR_AT:u,CHAR_BACKWARD_SLASH:m,CHAR_COMMA:g,CHAR_DOT:d,CHAR_EXCLAMATION_MARK:f,CHAR_FORWARD_SLASH:h,CHAR_LEFT_CURLY_BRACE:_,CHAR_LEFT_PARENTHESES:y,CHAR_LEFT_SQUARE_BRACKET:b,CHAR_PLUS:S,CHAR_QUESTION_MARK:v,CHAR_RIGHT_CURLY_BRACE:j,CHAR_RIGHT_PARENTHESES:w,CHAR_RIGHT_SQUARE_BRACKET:E}=i(356),C=R=>R===h||R===m,P=R=>{R.isPrefix!==!0&&(R.depth=R.isGlobstar?1/0:1)},k=(R,N)=>{const I=N||{},z=R.length-1,T=I.parts===!0||I.scanToEnd===!0,H=[],W=[],q=[];let K=R,V=-1,B=0,J=0,A=!1,O=!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 ae=()=>V>=z,de=()=>K.charCodeAt(V+1),fe=()=>($=M,K.charCodeAt(++V));for(;V<z;){M=fe();let _e;if(M===m){L=oe.backslashes=!0,M=fe(),M===_&&(ee=!0);continue}if(ee===!0||M===_){for(re++;ae()!==!0&&(M=fe());){if(M===m){L=oe.backslashes=!0,fe();continue}if(M===_){re++;continue}if(ee!==!0&&M===d&&(M=fe())===d){if(A=oe.isBrace=!0,D=oe.isGlob=!0,Z=!0,T===!0)continue;break}if(ee!==!0&&M===g){if(A=oe.isBrace=!0,D=oe.isGlob=!0,Z=!0,T===!0)continue;break}if(M===j&&(re--,re===0)){ee=!1,A=oe.isBrace=!0,Z=!0;break}}if(T===!0)continue;break}if(M===h){if(H.push(V),W.push(oe),oe={value:"",depth:0,isGlob:!1},Z===!0)continue;if($===d&&V===B+1){B+=2;continue}J=V+1;continue}if(I.noext!==!0&&(M===S||M===u||M===l||M===v||M===f)===!0&&de()===y){if(D=oe.isGlob=!0,X=oe.isExtglob=!0,Z=!0,T===!0){for(;ae()!==!0&&(M=fe());){if(M===m){L=oe.backslashes=!0,M=fe();continue}if(M===w){D=oe.isGlob=!0,Z=!0;break}}continue}break}if(M===l){if($===l&&(ne=oe.isGlobstar=!0),D=oe.isGlob=!0,Z=!0,T===!0)continue;break}if(M===v){if(D=oe.isGlob=!0,Z=!0,T===!0)continue;break}if(M===b){for(;ae()!==!0&&(_e=fe());){if(_e===m){L=oe.backslashes=!0,fe();continue}if(_e===E){O=oe.isBracket=!0,D=oe.isGlob=!0,Z=!0;break}}if(T===!0)continue;break}if(I.nonegate!==!0&&M===f&&V===B){te=oe.negated=!0,B++;continue}if(I.noparen!==!0&&M===y){if(D=oe.isGlob=!0,T===!0){for(;ae()!==!0&&(M=fe());){if(M===y){L=oe.backslashes=!0,M=fe();continue}if(M===w){Z=!0;break}}continue}break}if(D===!0){if(Z=!0,T===!0)continue;break}}I.noext===!0&&(X=!1,D=!1);let ce=K,F="",ve="";B>0&&(F=K.slice(0,B),K=K.slice(B),J-=B),ce&&D===!0&&J>0?(ce=K.slice(0,J),ve=K.slice(J)):D===!0?(ce="",ve=K):ce=K,ce&&ce!==""&&ce!=="/"&&ce!==K&&C(ce.charCodeAt(ce.length-1))&&(ce=ce.slice(0,-1)),I.unescape===!0&&(ve&&(ve=c.removeBackslashes(ve)),ce&&L===!0&&(ce=c.removeBackslashes(ce)));const ie={prefix:F,input:R,start:B,base:ce,glob:ve,isBrace:A,isBracket:O,isGlob:D,isExtglob:X,isGlobstar:ne,negated:te};if(I.tokens===!0&&(ie.maxDepth=0,C(M)||W.push(oe),ie.tokens=W),I.parts===!0||I.tokens===!0){let _e;for(let G=0;G<H.length;G++){const pe=_e?_e+1:B,Ae=H[G],Y=R.slice(pe,Ae);I.tokens&&(G===0&&B!==0?(W[G].isPrefix=!0,W[G].value=F):W[G].value=Y,P(W[G]),ie.maxDepth+=W[G].depth),(G!==0||Y!=="")&&q.push(Y),_e=Ae}if(_e&&_e+1<R.length){const G=R.slice(_e+1);q.push(G),I.tokens&&(W[W.length-1].value=G,P(W[W.length-1]),ie.maxDepth+=W[W.length-1].depth)}ie.slashes=H,ie.parts=q}return ie};s.exports=k},513:(s,a,i)=>{const c=i(17),l=process.platform==="win32",{REGEX_BACKSLASH:u,REGEX_REMOVE_BACKSLASH:m,REGEX_SPECIAL_CHARS:g,REGEX_SPECIAL_CHARS_GLOBAL:d}=i(356);a.isObject=f=>f!==null&&typeof f=="object"&&!Array.isArray(f),a.hasRegexChars=f=>g.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(m,h=>h==="\\"?"":h),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,h,_)=>{const y=f.lastIndexOf(h,_);return y===-1?f:f[y-1]==="\\"?a.escapeLast(f,h,y-1):`${f.slice(0,y)}\\${f.slice(y)}`},a.removePrefix=(f,h={})=>{let _=f;return _.startsWith("./")&&(_=_.slice(2),h.prefix="./"),_},a.wrapOutput=(f,h={},_={})=>{const y=_.contains?"":"^",b=_.contains?"":"$";let S=`${y}(?:${f})${b}`;return h.negated===!0&&(S=`(?:^(?!${S}).*$)`),S}},492:(s,a,i)=>{/*!
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,S=new Set,v=0,j=C=>{S.add(C.output),_&&_.onResult&&_.onResult(C)};for(let C=0;C<g.length;C++){let R=u(String(g[C]),{..._,onResult:j},!0),k=R.state.negated||R.state.negatedExtglob;k&&v++;for(let P of f){let N=R(P,!0);(k?!N.isMatch:N.isMatch)&&(k?y.add(N.output):(y.delete(N.output),b.add(N.output)))}}let E=(v===g.length?[...S]:[...b]).filter(C=>!y.has(C));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(C=>C.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 S of y)b[S]=f[S];return b},d.some=(f,g,_)=>{let y=[].concat(f);for(let b of[].concat(g)){let S=u(String(b),_);if(y.some(v=>S(v)))return!0}return!1},d.every=(f,g,_)=>{let y=[].concat(f);for(let b of[].concat(g)){let S=u(String(b),_);if(!y.every(v=>S(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(_),S=u.makeRe(String(f),{..._,capture:!0}).exec(y?p.toPosixSlashes(g):g);if(S)return S.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})`,S=`${p}{1,2}${y}`,v=`(?!${p})`,j=`(?!${b}${S})`,w=`(?!${p}{0,1}${y})`,E=`(?!${S})`,C=`[^.${f}]`,R=`${_}*?`,k={DOT_LITERAL:p,PLUS_LITERAL:h,QMARK_LITERAL:d,SLASH_LITERAL:f,ONE_CHAR:g,QMARK:_,END_ANCHOR:y,DOTS_SLASH:S,NO_DOT:v,NO_DOTS:j,NO_DOT_SLASH:w,NO_DOTS_SLASH:E,QMARK_NO_DOT:C,STAR:R,START_ANCHOR:b},P={...k,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?P:k}}},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,S)=>{if(typeof S.expandRange=="function")return S.expandRange(...b,S);b.sort();const v=`[${b.join("-")}]`;try{new RegExp(v)}catch{return b.map(w=>l.escapeRegex(w)).join("..")}return v},_=(b,S)=>`Missing ${b}: "${S}" - use "\\\\${S}" to match literal characters`,y=(b,S)=>{if(typeof b!="string")throw new TypeError("Expected a string");b=f[b]||b;const v={...S},j=typeof v.maxLength=="number"?Math.min(u,v.maxLength):u;let w=b.length;if(w>j)throw new SyntaxError(`Input length: ${w}, exceeds maximum allowed length: ${j}`);const E={type:"bos",value:"",output:v.prepend||""},C=[E],R=v.capture?"":"?:",k=l.isWindows(S),P=c.globChars(k),N=c.extglobChars(P),{DOT_LITERAL:I,PLUS_LITERAL:z,SLASH_LITERAL:T,ONE_CHAR:H,DOTS_SLASH:W,NO_DOT:q,NO_DOT_SLASH:K,NO_DOTS_SLASH:V,QMARK:B,QMARK_NO_DOT:J,STAR:A,START_ANCHOR:O}=P,D=Y=>`(${R}(?:(?!${O}${Y.dot?W:I}).)*?)`,X=v.dot?"":q,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:C};b=l.removePrefix(b,L),w=b.length;const te=[],Z=[],re=[];let $=E,M;const oe=()=>L.index===w-1,ae=L.peek=(Y=1)=>b[L.index+Y],de=L.advance=()=>b[++L.index],pe=()=>b.slice(L.index+1),ce=(Y="",se=0)=>{L.consumed+=Y,L.index+=se},F=Y=>{L.output+=Y.output!=null?Y.output:Y.value,ce(Y.value)},xe=()=>{let Y=1;for(;ae()==="!"&&(ae(2)!=="("||ae(3)==="?");)de(),L.start++,Y++;return Y%2===0?!1:(L.negated=!0,L.start++,!0)},ie=Y=>{L[Y]++,re.push(Y)},_e=Y=>{L[Y]--,re.pop()},G=Y=>{if($.type==="globstar"){const se=L.braces>0&&(Y.type==="comma"||Y.type==="brace"),Q=Y.extglob===!0||te.length&&(Y.type==="pipe"||Y.type==="paren");Y.type!=="slash"&&Y.type!=="paren"&&!se&&!Q&&(L.output=L.output.slice(0,-$.output.length),$.type="star",$.value="*",$.output=ee,L.output+=$.output)}if(te.length&&Y.type!=="paren"&&!N[Y.value]&&(te[te.length-1].inner+=Y.value),(Y.value||Y.output)&&F(Y),$&&$.type==="text"&&Y.type==="text"){$.value+=Y.value,$.output=($.output||"")+Y.value;return}Y.prev=$,C.push(Y),$=Y},me=(Y,se)=>{const Q={...N[se],conditions:1,inner:""};Q.prev=$,Q.parens=L.parens,Q.output=L.output;const he=(v.capture?"(":"")+Q.open;ie("parens"),G({type:Y,value:se,output:L.output?"":H}),G({type:"paren",extglob:!0,value:de(),output:he}),te.push(Q)},Ae=Y=>{let se=Y.close+(v.capture?")":"");if(Y.type==="negate"){let Q=ee;Y.inner&&Y.inner.length>1&&Y.inner.includes("/")&&(Q=D(v)),(Q!==ee||oe()||/^\)+$/.test(pe()))&&(se=Y.close=`)$))${Q}`),Y.prev.type==="bos"&&(L.negatedExtglob=!0)}G({type:"paren",extglob:!0,value:M,output:se}),_e("parens")};if(v.fastpaths!==!1&&!/(^[*!]|[/()[\]{}"])/.test(b)){let Y=!1,se=b.replace(d,(Q,he,Ce,Te,Re,wr)=>Te==="\\"?(Y=!0,Q):Te==="?"?he?he+Te+(Re?B.repeat(Re.length):""):wr===0?ne+(Re?B.repeat(Re.length):""):B.repeat(Ce.length):Te==="."?I.repeat(Ce.length):Te==="*"?he?he+Te+(Re?ee:""):ee:he?Q:`\\${Q}`);return Y===!0&&(v.unescape===!0?se=se.replace(/\\/g,""):se=se.replace(/\\+/g,Q=>Q.length%2===0?"\\\\":Q?"\\":"")),se===b&&v.contains===!0?(L.output=b,L):(L.output=l.wrapOutput(se,L,S),L)}for(;!oe();){if(M=de(),M==="\0")continue;if(M==="\\"){const Q=ae();if(Q==="/"&&v.bash!==!0||Q==="."||Q===";")continue;if(!Q){M+="\\",G({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=de()||"":M+=de()||"",L.brackets===0){G({type:"text",value:M});continue}}if(L.brackets>0&&(M!=="]"||$.value==="["||$.value==="[^")){if(v.posix!==!1&&M===":"){const Q=$.value.slice(1);if(Q.includes("[")&&($.posix=!0,Q.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,de(),!E.output&&C.indexOf($)===1&&(E.output=H);continue}}}(M==="["&&ae()!==":"||M==="-"&&ae()==="]")&&(M=`\\${M}`),M==="]"&&($.value==="["||$.value==="[^")&&(M=`\\${M}`),v.posix===!0&&M==="!"&&$.value==="["&&(M="^"),$.value+=M,F({value:M});continue}if(L.quotes===1&&M!=='"'){M=l.escapeRegex(M),$.value+=M,F({value:M});continue}if(M==='"'){L.quotes=L.quotes===1?0:1,v.keepQuotes===!0&&G({type:"text",value:M});continue}if(M==="("){ie("parens"),G({type:"paren",value:M});continue}if(M===")"){if(L.parens===0&&v.strictBrackets===!0)throw new SyntaxError(_("opening","("));const Q=te[te.length-1];if(Q&&L.parens===Q.parens+1){Ae(te.pop());continue}G({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 ie("brackets");G({type:"bracket",value:M});continue}if(M==="]"){if(v.nobracket===!0||$&&$.type==="bracket"&&$.value.length===1){G({type:"text",value:M,output:`\\${M}`});continue}if(L.brackets===0){if(v.strictBrackets===!0)throw new SyntaxError(_("opening","["));G({type:"text",value:M,output:`\\${M}`});continue}_e("brackets");const Q=$.value.slice(1);if($.posix!==!0&&Q[0]==="^"&&!Q.includes("/")&&(M=`/${M}`),$.value+=M,F({value:M}),v.literalBrackets===!1||l.hasRegexChars(Q))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){ie("braces");const Q={type:"brace",value:M,output:"(",outputIndex:L.output.length,tokensIndex:L.tokens.length};Z.push(Q),G(Q);continue}if(M==="}"){const Q=Z[Z.length-1];if(v.nobrace===!0||!Q){G({type:"text",value:M,output:M});continue}let he=")";if(Q.dots===!0){const Ce=C.slice(),Te=[];for(let Re=Ce.length-1;Re>=0&&(C.pop(),Ce[Re].type!=="brace");Re--)Ce[Re].type!=="dots"&&Te.unshift(Ce[Re].value);he=g(Te,v),L.backtrack=!0}if(Q.comma!==!0&&Q.dots!==!0){const Ce=L.output.slice(0,Q.outputIndex),Te=L.tokens.slice(Q.tokensIndex);Q.value=Q.output="\\{",M=he="\\}",L.output=Ce;for(const Re of Te)L.output+=Re.output||Re.value}G({type:"brace",value:M,output:he}),_e("braces"),Z.pop();continue}if(M==="|"){te.length>0&&te[te.length-1].conditions++,G({type:"text",value:M});continue}if(M===","){let Q=M;const he=Z[Z.length-1];he&&re[re.length-1]==="braces"&&(he.comma=!0,Q="|"),G({type:"comma",value:M,output:Q});continue}if(M==="/"){if($.type==="dot"&&L.index===L.start+1){L.start=L.index+1,L.consumed="",L.output="",C.pop(),$=E;continue}G({type:"slash",value:M,output:T});continue}if(M==="."){if(L.braces>0&&$.type==="dot"){$.value==="."&&($.output=I);const Q=Z[Z.length-1];$.type="dots",$.output+=M,$.value+=M,Q.dots=!0;continue}if(L.braces+L.parens===0&&$.type!=="bos"&&$.type!=="slash"){G({type:"text",value:M,output:I});continue}G({type:"dot",value:M,output:I});continue}if(M==="?"){if(!($&&$.value==="(")&&v.noextglob!==!0&&ae()==="("&&ae(2)!=="?"){me("qmark",M);continue}if($&&$.type==="paren"){const he=ae();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}`),G({type:"text",value:M,output:Ce});continue}if(v.dot!==!0&&($.type==="slash"||$.type==="bos")){G({type:"qmark",value:M,output:J});continue}G({type:"qmark",value:M,output:B});continue}if(M==="!"){if(v.noextglob!==!0&&ae()==="("&&(ae(2)!=="?"||!/[!=<:]/.test(ae(3)))){me("negate",M);continue}if(v.nonegate!==!0&&L.index===0){xe();continue}}if(M==="+"){if(v.noextglob!==!0&&ae()==="("&&ae(2)!=="?"){me("plus",M);continue}if($&&$.value==="("||v.regex===!1){G({type:"plus",value:M,output:z});continue}if($&&($.type==="bracket"||$.type==="paren"||$.type==="brace")||L.parens>0){G({type:"plus",value:M});continue}G({type:"plus",value:z});continue}if(M==="@"){if(v.noextglob!==!0&&ae()==="("&&ae(2)!=="?"){G({type:"at",extglob:!0,value:M,output:""});continue}G({type:"text",value:M});continue}if(M!=="*"){(M==="$"||M==="^")&&(M=`\\${M}`);const Q=h.exec(pe());Q&&(M+=Q[0],L.index+=Q[0].length),G({type:"text",value:M});continue}if($&&($.type==="globstar"||$.star===!0)){$.type="star",$.star=!0,$.value+=M,$.output=ee,L.backtrack=!0,L.globstar=!0,ce(M);continue}let Y=pe();if(v.noextglob!==!0&&/^\([^?]/.test(Y)){me("star",M);continue}if($.type==="star"){if(v.noglobstar===!0){ce(M);continue}const Q=$.prev,he=Q.prev,Ce=Q.type==="slash"||Q.type==="bos",Te=he&&(he.type==="star"||he.type==="globstar");if(v.bash===!0&&(!Ce||Y[0]&&Y[0]!=="/")){G({type:"star",value:M,output:""});continue}const Re=L.braces>0&&(Q.type==="comma"||Q.type==="brace"),wr=te.length&&(Q.type==="pipe"||Q.type==="paren");if(!Ce&&Q.type!=="paren"&&!Re&&!wr){G({type:"star",value:M,output:""});continue}for(;Y.slice(0,3)==="/**";){const Ht=b[L.index+4];if(Ht&&Ht!=="/")break;Y=Y.slice(3),ce("/**",3)}if(Q.type==="bos"&&oe()){$.type="globstar",$.value+=M,$.output=D(v),L.output=$.output,L.globstar=!0,ce(M);continue}if(Q.type==="slash"&&Q.prev.type!=="bos"&&!Te&&oe()){L.output=L.output.slice(0,-(Q.output+$.output).length),Q.output=`(?:${Q.output}`,$.type="globstar",$.output=D(v)+(v.strictSlashes?")":"|$)"),$.value+=M,L.globstar=!0,L.output+=Q.output+$.output,ce(M);continue}if(Q.type==="slash"&&Q.prev.type!=="bos"&&Y[0]==="/"){const Ht=Y[1]!==void 0?"|$":"";L.output=L.output.slice(0,-(Q.output+$.output).length),Q.output=`(?:${Q.output}`,$.type="globstar",$.output=`${D(v)}${T}|${T}${Ht})`,$.value+=M,L.output+=Q.output+$.output,L.globstar=!0,ce(M+de()),G({type:"slash",value:"/",output:""});continue}if(Q.type==="bos"&&Y[0]==="/"){$.type="globstar",$.value+=M,$.output=`(?:^|${T}|${D(v)}${T})`,L.output=$.output,L.globstar=!0,ce(M+de()),G({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,ce(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),G(se);continue}if($&&($.type==="bracket"||$.type==="paren")&&v.regex===!0){se.output=M,G(se);continue}(L.index===L.start||$.type==="slash"||$.type==="dot")&&($.type==="dot"?(L.output+=K,$.output+=K):v.dot===!0?(L.output+=V,$.output+=V):(L.output+=X,$.output+=X),ae()!=="*"&&(L.output+=H,$.output+=H)),G(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")&&G({type:"maybe_slash",value:"",output:`${T}?`}),L.backtrack===!0){L.output="";for(const Y of L.tokens)L.output+=Y.output!=null?Y.output:Y.value,Y.suffix&&(L.output+=Y.suffix)}return L};y.fastpaths=(b,S)=>{const v={...S},j=typeof v.maxLength=="number"?Math.min(u,v.maxLength):u,w=b.length;if(w>j)throw new SyntaxError(`Input length: ${w}, exceeds maximum allowed length: ${j}`);b=f[b]||b;const E=l.isWindows(S),{DOT_LITERAL:C,SLASH_LITERAL:R,ONE_CHAR:k,DOTS_SLASH:P,NO_DOT:N,NO_DOTS:I,NO_DOTS_SLASH:z,STAR:T,START_ANCHOR:H}=c.globChars(E),W=v.dot?I:N,q=v.dot?z:N,K=v.capture?"":"?:",V={negated:!1,prefix:""};let B=v.bash===!0?".*?":T;v.capture&&(B=`(${B})`);const J=X=>X.noglobstar===!0?B:`(${K}(?:(?!${H}${X.dot?P:C}).)*?)`,A=X=>{switch(X){case"*":return`${W}${k}${B}`;case".*":return`${C}${k}${B}`;case"*.*":return`${W}${B}${C}${k}${B}`;case"*/*":return`${W}${B}${R}${k}${q}${B}`;case"**":return W+J(v);case"**/*":return`(?:${W}${J(v)}${R})?${q}${k}${B}`;case"**/*.*":return`(?:${W}${J(v)}${R})?${q}${B}${C}${k}${B}`;case"**/.*":return`(?:${W}${J(v)}${R})?${C}${k}${B}`;default:{const ne=/^(.*?)\.(\w+)$/.exec(X);if(!ne)return;const ee=A(ne[1]);return ee?ee+C+ne[2]:void 0}}},O=l.removePrefix(b,V);let D=A(O);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(P=>f(P,_,y));return P=>{for(const N of R){const I=N(P);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 S=_||{},v=p.isWindows(_),j=b?f.compileRe(g,_):f.makeRe(g,_,!1,!0),w=j.state;delete j.state;let E=()=>!1;if(S.ignore){const R={..._,ignore:null,onMatch:null,onResult:null};E=f(S.ignore,R,y)}const C=(R,k=!1)=>{const{isMatch:P,match:N,output:I}=f.test(R,j,_,{glob:g,posix:v}),z={glob:g,state:w,regex:j,posix:v,input:R,output:I,match:N,isMatch:P};return typeof S.onResult=="function"&&S.onResult(z),P===!1?(z.isMatch=!1,k?z:!1):E(R)?(typeof S.onIgnore=="function"&&S.onIgnore(z),z.isMatch=!1,k?z:!1):(typeof S.onMatch=="function"&&S.onMatch(z),k?z:!0)};return y&&(C.state=w),C};f.test=(g,_,y,{glob:b,posix:S}={})=>{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||(S?p.toPosixSlashes:null);let w=g===b,E=w&&j?j(g):g;return w===!1&&(E=j?j(g):g,w=E===b),(w===!1||v.capture===!0)&&(v.matchBase===!0||v.basename===!0?w=f.matchBase(g,_,y,S):w=_.exec(E)),{isMatch:!!w,match:w,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 S=_||{},v=S.contains?"":"^",j=S.contains?"":"$";let w=`${v}(?:${g.output})${j}`;g&&g.negated===!0&&(w=`^(?!${w}).*$`);const E=f.toRegex(w,_);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 S=_||{};let v={negated:!1,fastpaths:!0},j="",w;return g.startsWith("./")&&(g=g.slice(2),j=v.prefix="./"),S.fastpaths!==!1&&(g[0]==="."||g[0]==="*")&&(w=u.fastpaths(g,_)),w===void 0?(v=u(g,_),v.prefix=j+(v.prefix||"")):v.output=w,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:S,CHAR_QUESTION_MARK:v,CHAR_RIGHT_CURLY_BRACE:j,CHAR_RIGHT_PARENTHESES:w,CHAR_RIGHT_SQUARE_BRACKET:E}=i(356),C=P=>P===g||P===p,R=P=>{P.isPrefix!==!0&&(P.depth=P.isGlobstar?1/0:1)},k=(P,N)=>{const I=N||{},z=P.length-1,T=I.parts===!0||I.scanToEnd===!0,H=[],W=[],q=[];let K=P,V=-1,B=0,J=0,A=!1,O=!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 ae=()=>V>=z,de=()=>K.charCodeAt(V+1),pe=()=>($=M,K.charCodeAt(++V));for(;V<z;){M=pe();let _e;if(M===p){L=oe.backslashes=!0,M=pe(),M===_&&(ee=!0);continue}if(ee===!0||M===_){for(re++;ae()!==!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,T===!0)continue;break}if(ee!==!0&&M===h){if(A=oe.isBrace=!0,D=oe.isGlob=!0,Z=!0,T===!0)continue;break}if(M===j&&(re--,re===0)){ee=!1,A=oe.isBrace=!0,Z=!0;break}}if(T===!0)continue;break}if(M===g){if(H.push(V),W.push(oe),oe={value:"",depth:0,isGlob:!1},Z===!0)continue;if($===d&&V===B+1){B+=2;continue}J=V+1;continue}if(I.noext!==!0&&(M===S||M===u||M===l||M===v||M===f)===!0&&de()===y){if(D=oe.isGlob=!0,X=oe.isExtglob=!0,Z=!0,T===!0){for(;ae()!==!0&&(M=pe());){if(M===p){L=oe.backslashes=!0,M=pe();continue}if(M===w){D=oe.isGlob=!0,Z=!0;break}}continue}break}if(M===l){if($===l&&(ne=oe.isGlobstar=!0),D=oe.isGlob=!0,Z=!0,T===!0)continue;break}if(M===v){if(D=oe.isGlob=!0,Z=!0,T===!0)continue;break}if(M===b){for(;ae()!==!0&&(_e=pe());){if(_e===p){L=oe.backslashes=!0,pe();continue}if(_e===E){O=oe.isBracket=!0,D=oe.isGlob=!0,Z=!0;break}}if(T===!0)continue;break}if(I.nonegate!==!0&&M===f&&V===B){te=oe.negated=!0,B++;continue}if(I.noparen!==!0&&M===y){if(D=oe.isGlob=!0,T===!0){for(;ae()!==!0&&(M=pe());){if(M===y){L=oe.backslashes=!0,M=pe();continue}if(M===w){Z=!0;break}}continue}break}if(D===!0){if(Z=!0,T===!0)continue;break}}I.noext===!0&&(X=!1,D=!1);let ce=K,F="",xe="";B>0&&(F=K.slice(0,B),K=K.slice(B),J-=B),ce&&D===!0&&J>0?(ce=K.slice(0,J),xe=K.slice(J)):D===!0?(ce="",xe=K):ce=K,ce&&ce!==""&&ce!=="/"&&ce!==K&&C(ce.charCodeAt(ce.length-1))&&(ce=ce.slice(0,-1)),I.unescape===!0&&(xe&&(xe=c.removeBackslashes(xe)),ce&&L===!0&&(ce=c.removeBackslashes(ce)));const ie={prefix:F,input:P,start:B,base:ce,glob:xe,isBrace:A,isBracket:O,isGlob:D,isExtglob:X,isGlobstar:ne,negated:te};if(I.tokens===!0&&(ie.maxDepth=0,C(M)||W.push(oe),ie.tokens=W),I.parts===!0||I.tokens===!0){let _e;for(let G=0;G<H.length;G++){const me=_e?_e+1:B,Ae=H[G],Y=P.slice(me,Ae);I.tokens&&(G===0&&B!==0?(W[G].isPrefix=!0,W[G].value=F):W[G].value=Y,R(W[G]),ie.maxDepth+=W[G].depth),(G!==0||Y!=="")&&q.push(Y),_e=Ae}if(_e&&_e+1<P.length){const G=P.slice(_e+1);q.push(G),I.tokens&&(W[W.length-1].value=G,R(W[W.length-1]),ie.maxDepth+=W[W.length-1].depth)}ie.slashes=H,ie.parts=q}return ie};s.exports=k},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 S=`${y}(?:${f})${b}`;return g.negated===!0&&(S=`(?:^(?!${S}).*$)`),S}},492:(s,a,i)=>{/*!
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=(C,P,k)=>{if(c(C)===!1)throw new TypeError("toRegexRange: expected the first argument to be a number");if(P===void 0||C===P)return String(C);if(c(P)===!1)throw new TypeError("toRegexRange: expected the second argument to be a number.");let R={relaxZeros:!0,...k};typeof R.strictZeros=="boolean"&&(R.relaxZeros=R.strictZeros===!1);let N=String(R.relaxZeros),I=String(R.shorthand),z=String(R.capture),T=String(R.wrap),H=C+":"+P+"="+N+I+z+T;if(l.cache.hasOwnProperty(H))return l.cache[H].result;let W=Math.min(C,P),q=Math.max(C,P);if(Math.abs(W-q)===1){let A=C+"|"+P;return R.capture?`(${A})`:R.wrap===!1?A:`(?:${A})`}let K=w(C)||w(P),V={min:C,max:P,a:W,b:q},B=[],J=[];if(K&&(V.isPadded=K,V.maxLen=String(V.max).length),W<0){let A=q<0?Math.abs(q):1;J=d(A,Math.abs(W),V,R),W=V.a=0}return q>=0&&(B=d(W,q,V,R)),V.negatives=J,V.positives=B,V.result=u(J,B),R.capture===!0?V.result=`(${V.result})`:R.wrap!==!1&&B.length+J.length>1&&(V.result=`(?:${V.result})`),l.cache[H]=V,V.result};function u(C,P,k){let R=f(C,P,"-",!1)||[],N=f(P,C,"",!1)||[],I=f(C,P,"-?",!0)||[];return R.concat(I).concat(N).join("|")}function m(C,P){let k=1,R=1,N=b(C,k),I=new Set([P]);for(;C<=N&&N<=P;)I.add(N),k+=1,N=b(C,k);for(N=S(P+1,R)-1;C<N&&N<=P;)I.add(N),R+=1,N=S(P+1,R)-1;return I=[...I],I.sort(_),I}function g(C,P,k){if(C===P)return{pattern:C,count:[],digits:0};let R=h(C,P),N=R.length,I="",z=0;for(let T=0;T<N;T++){let[H,W]=R[T];H===W?I+=H:H!=="0"||W!=="9"?I+=j(H,W):z++}return z&&(I+=k.shorthand===!0?"\\d":"[0-9]"),{pattern:I,count:[z],digits:N}}function d(C,P,k,R){let N=m(C,P),I=[],z=C,T;for(let H=0;H<N.length;H++){let W=N[H],q=g(String(z),String(W),R),K="";if(!k.isPadded&&T&&T.pattern===q.pattern){T.count.length>1&&T.count.pop(),T.count.push(q.count[0]),T.string=T.pattern+v(T.count),z=W+1;continue}k.isPadded&&(K=E(W,k,R)),q.string=K+q.pattern+v(q.count),I.push(q),z=W+1,T=q}return I}function f(C,P,k,R,N){let I=[];for(let z of C){let{string:T}=z;!R&&!y(P,"string",T)&&I.push(k+T),R&&y(P,"string",T)&&I.push(k+T)}return I}function h(C,P){let k=[];for(let R=0;R<C.length;R++)k.push([C[R],P[R]]);return k}function _(C,P){return C>P?1:P>C?-1:0}function y(C,P,k){return C.some(R=>R[P]===k)}function b(C,P){return Number(String(C).slice(0,-P)+"9".repeat(P))}function S(C,P){return C-C%Math.pow(10,P)}function v(C){let[P=0,k=""]=C;return k||P>1?`{${P+(k?","+k:"")}}`:""}function j(C,P,k){return`[${C}${P-C===1?"":"-"}${P}]`}function w(C){return/^-?(0+)\d/.test(C)}function E(C,P,k){if(!P.isPadded)return C;let R=Math.abs(P.maxLen-String(C).length),N=k.relaxZeros!==!1;switch(R){case 0:return"";case 1:return N?"0?":"0";case 2:return N?"0{0,2}":"00";default:return N?`0{0,${R}}`:`0{${R}}`}}l.cache={},l.clearCache=()=>l.cache={},s.exports=l},17:s=>{s.exports=Ig},837:s=>{s.exports=fy()}},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);an.exports=o})()),an.exports}var ma;function my(){return ma||(ma=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=py();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 ha;function Nd(){return ha||(ha=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(m){throw console.error(m),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:m}=my();if(!m(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}(on)),on}(function(e,t){"use client";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"Image",{enumerable:!0,get:function(){return S}});const r=Oe,s=gt._(x),a=r._(Ia),i=r._(Pg()),c=cs,l=xr,u=Ag(),m=Dt,g=Pl(),d=r._(Nd()),f=process.env.__NEXT_IMAGE_OPTS;typeof window>"u"&&(globalThis.__NEXT_IMAGE_IMPORTED=!0);function h(v,j,w,E,C,P){const k=v==null?void 0:v.src;if(!v||v["data-loaded-src"]===k)return;v["data-loaded-src"]=k,("decode"in v?v.decode():Promise.resolve()).catch(()=>{}).then(()=>{if(!(!v.parentElement||!v.isConnected)){if(j!=="empty"&&C(!0),w!=null&&w.current){const N=new Event("load");Object.defineProperty(N,"target",{writable:!1,value:v});let I=!1,z=!1;w.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(k,"http://n").searchParams.get("url")||k;if(v.getAttribute("data-nimg")==="fill"){if(!P&&(!v.getAttribute("sizes")||v.getAttribute("sizes")==="100vw")&&v.getBoundingClientRect().width/window.innerWidth<.6&&(0,m.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:T}=window.getComputedStyle(v.parentElement),H=["absolute","fixed","relative"];H.includes(T)||(0,m.warnOnce)('Image with src "'+N+'" has "fill" and parent element with invalid "position". Provided "'+T+'" should be one of '+H.map(String).join(",")+".")}v.height===0&&(0,m.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,m.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,w]=s.version.split("."),E=parseInt(j,10),C=parseInt(w,10);return E>18||E===18&&C>=3?{fetchPriority:v}:{fetchpriority:v}}const y=(0,s.forwardRef)((v,j)=>{let{src:w,srcSet:E,sizes:C,height:P,width:k,decoding:R,className:N,style:I,fetchPriority:z,placeholder:T,loading:H,unoptimized:W,fill:q,onLoadRef:K,onLoadingCompleteRef:V,setBlurComplete:B,setShowAltText:J,onLoad:A,onError:O,...D}=v;return s.default.createElement("img",{...D,..._(z),loading:H,width:k,height:P,decoding:R,"data-nimg":q?"fill":"1",className:N,style:I,sizes:C,srcSet:E,src:w,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"&&(w||console.error('Image is missing required "src" property:',X),X.getAttribute("alt")===null&&console.error('Image is missing required "alt" property. Please add Alternative Text to describe the image for screen readers and search engines.')),X.complete&&h(X,T,K,V,B,W))},[w,T,K,V,B,O,W,j]),onLoad:X=>{const ne=X.currentTarget;h(ne,T,K,V,B,W)},onError:X=>{J(!0),T!=="empty"&&B(!0),O&&O(X)}})});function b(v){let{isAppRouter:j,imgAttributes:w}=v;const E={as:"image",imageSrcSet:w.srcSet,imageSizes:w.sizes,crossOrigin:w.crossOrigin,referrerPolicy:w.referrerPolicy,..._(w.fetchPriority)};return j&&a.default.preload?(a.default.preload(w.src,E),null):s.default.createElement(i.default,null,s.default.createElement("link",{key:"__nimg-"+w.src+w.srcSet+w.sizes,rel:"preload",href:w.srcSet?void 0:w.src,...E}))}const S=(0,s.forwardRef)((v,j)=>{const E=!(0,s.useContext)(g.RouterContext),C=(0,s.useContext)(u.ImageConfigContext),P=(0,s.useMemo)(()=>{const V=f||C||l.imageConfigDefault,B=[...V.deviceSizes,...V.imageSizes].sort((A,O)=>A-O),J=V.deviceSizes.sort((A,O)=>A-O);return{...V,allSizes:B,deviceSizes:J}},[C]),{onLoad:k,onLoadingComplete:R}=v,N=(0,s.useRef)(k);(0,s.useEffect)(()=>{N.current=k},[k]);const I=(0,s.useRef)(R);(0,s.useEffect)(()=>{I.current=R},[R]);const[z,T]=(0,s.useState)(!1),[H,W]=(0,s.useState)(!1),{props:q,meta:K}=(0,c.getImgProps)(v,{defaultLoader:d.default,imgConf:P,blurComplete:z,showAltText:H});return s.default.createElement(s.default.Fragment,null,s.default.createElement(y,{...q,unoptimized:K.unoptimized,placeholder:K.placeholder,fill:K.fill,onLoadRef:N,onLoadingCompleteRef:I,setBlurComplete:T,setShowAltText:W,ref:j}),K.priority?s.default.createElement(b,{isAppRouter:E,imgAttributes:q}):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)})(wo,wo.exports);var hy=wo.exports;(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(u,m){for(var g in m)Object.defineProperty(u,g,{enumerable:!0,get:m[g]})}t(e,{unstable_getImgProps:function(){return c},default:function(){return l}});const r=Oe,o=cs,s=Dt,a=hy,i=r._(Nd()),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:m}=(0,o.getImgProps)(u,{defaultLoader:i.default,imgConf:process.env.__NEXT_IMAGE_OPTS});for(const[g,d]of Object.entries(m))d===void 0&&delete m[g];return{props:m}},l=a.Image})(vd);var gy=vd;const lr=hr(gy),yy=({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(lr,{alt:o,src:`/assets/${o}.svg`,width:20,height:20}):n.jsx(p.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(lr,{alt:o,src:`/assets/${o}.svg`,width:20,height:20}):n.jsx(p.Icon,{size:"small",name:o})]})},_y=({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(yy,{item:s,CONSTANTS:t},`footer-support-item-${a}`))})]},`footer-support-${o}`))}),vy=({name:e,nameIcon:t,maxWidth:r,rowAlignContent:o,columnAlignContent:s,columnAlignItems:a,textAlignContent:i,textAlignItems:c,children:l})=>n.jsx(p.TextStructure.Root,{layoutProps:{textRow:{alignContent:o,alignItems:o},columnWrapper:{alignContent:s,alignItems:a}},children:n.jsxs(p.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(p.Icon,{name:`${t}`,size:"small"}),e&&n.jsx("div",{children:e})]}),n.jsx("div",{className:ye.footer__columnContent,style:{maxWidth:`${r}px`},children:l})]})}),xy=({name:e,nameIcon:t,maxWidth:r,children:o,ICONS:s,...a})=>n.jsxs(p.Accordion.Wrapper,{className:ye.accordionWrapper,title:"accordion-wrapper",...a,children:[n.jsx(p.Accordion.Header,{id:(a==null?void 0:a.id)??"",className:ye.accordionHeader,closeIndicator:n.jsx(p.Icon,{name:s.arrow_up,size:"medium"}),openIndicator:n.jsx(p.Icon,{name:s.arrow_down,size:"medium"}),title:"accordion-header",children:n.jsx(p.TextStructure.Root,{children:n.jsxs(p.TextStructure.DivWrapper,{className:t?ye.accordionTextWrapper:"",children:[n.jsx(p.Icon,{name:`${t}`,size:"medium"}),n.jsx("h2",{className:"typography-style-body-md",children:e})]})})}),n.jsx(p.Accordion.Body,{title:"accordion-body",children:n.jsx(p.TextStructure.Root,{children:n.jsx(p.TextStructure.DivWrapper,{className:ye.footer__columnContent,style:{maxWidth:`${r}px`},children:o})})})]}),co=e=>{const{isMobile:t}=ge();return t?n.jsx(xy,{...e}):n.jsx(vy,{...e})},or=({type:e,children:t,className:r,collumnName:o,collumnNameIcon:s,icons:a,iconLink:i,iconSize:c,link:l,paymentDisclaimer:u,paymentTitle:m,rowAlignContent:g,columnAlignContent:d,columnAlignItems:f,textAlignContent:h,textAlignItems:_,...y})=>{let b;const{handleSelectContent:S}=ue(),{nextimage:v}=xe();switch(e){case"menu":b=n.jsx(Me,{className:ye.footer__itemLink,href:l??"#",prefetch:!1,children:n.jsx("span",{onClick:()=>{S({content:`footer:${o}:${t}`})},children:t})});break;case"payment":b=n.jsxs("div",{className:p.helpers.classNameConcat(ye.payment,ye.footer__itemSmallText),...y,children:[u,n.jsxs("div",{className:p.helpers.classNameConcat(ye.footer__iconContainer,ye.footer__iconListSubHeader),children:[m,n.jsx("div",{className:ye.footer__iconList,children:a==null?void 0:a.map((j,w)=>n.jsx(v,{alt:j,src:`/assets/${j}.svg`,width:c??20,height:c??20},w))})]})]});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,w)=>n.jsx(Me,{prefetch:!1,href:j.link??"#",target:"_blank",children:n.jsx(p.Icon,{size:"medium",name:j.icon,onClick:()=>S({content:`footer:redes-sociais:${j.icon}`})})},w))})});break;default:b=n.jsx("div",{className:r,...y,children:t})}return n.jsx(p.TextStructure.Root,{layoutProps:{textRow:{alignContent:g,alignItems:g},columnWrapper:{alignContent:d,alignItems:f}},...y,children:n.jsx(p.TextStructure.DivWrapper,{alignContent:h,alignItems:_,className:p.helpers.classNameConcat(ye.footer__item,r),children:b})})},by=({className:e,text:t,...r})=>n.jsx("div",{...r,className:p.helpers.classNameConcat(ye.footer__legalInformation,e),children:n.jsx("span",{children:t})}),Td=()=>{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})})};Td.displayName="Footer.Stamps";const kd=({children:e,legalTextSlot:t,adornment:r,className:o,...s})=>{const{isMobile:a}=ge(),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:p.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})]})};kd.displayName="Footer.Wrapper";const Od=({data:{links:{links:e}},payments:t,socialInfo:r,socialMedias:o,adornment:s,LEGAL_INFORMATION_TEXT:a,ICONS:i})=>{var c;return n.jsxs(kd,{adornment:s,legalTextSlot:n.jsx(by,{text:a}),children:[Array.isArray(e.column)&&e.column.map((l,u)=>n.jsx(co,{id:`${u}column-menu`,name:l.name,nameIcon:l.nameIcon,ICONS:i,children:l.items.map((m,g)=>n.jsx(or,{type:"menu",link:m.link,collumnName:l.name,collumnNameIcon:l.nameIcon,children:m.text},g))},u)),t&&((c=t.acceptedFlags)==null?void 0:c.length)>0&&n.jsx(co,{id:"payment-column",name:t==null?void 0:t.title,nameIcon:t==null?void 0:t.titleIcon,maxWidth:150,ICONS:i,children:n.jsx(or,{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(co,{id:"social-media-column",name:r==null?void 0:r.title,ICONS:i,children:[r!=null&&r.subTitle?n.jsx(or,{children:r==null?void 0:r.subTitle}):null,n.jsx(or,{type:"social-media",iconSize:24,iconLink:o}),n.jsx(Td,{})]})]})};Od.displayName="Footer";const jy=Object.freeze(Object.defineProperty({__proto__:null,Footer:Od,FooterSupport:_y},Symbol.toStringTag,{value:"Module"})),Cy=()=>{const{colorName:e}=De();return n.jsx(p.TextStructure.Root,{children:n.jsx(p.TextStructure.DivWrapper,{className:e.length===0?"":U.styles["accessibility-info"],children:n.jsx("p",{children:e})})})},Cr=({className:e,titleId:t})=>{var s,a,i;const{productName:r,tag:o}=De();return n.jsxs("div",{className:p.helpers.classNameConcat(U.styles.header,e),children:[o!=null&&o.commercial?n.jsx(p.Tag,{size:"small",title:(s=o.commercial)==null?void 0:s.value,variant:"quaternary",adornment:{start:(a=o.commercial)!=null&&a.icon?n.jsx(p.Icon,{name:o.commercial.icon}):null},children:(i=o.commercial)==null?void 0:i.value}):null,n.jsx(p.TextStructure.Root,{children:n.jsx(p.TextStructure.DivWrapper,{children:n.jsx("h1",{id:t,children:r})})})]})};Cr.displayName="PDP.PDPHeader";const ps=({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(p.ProductInfo.Root,{size:"small",layout:e,children:n.jsxs(p.ProductInfo.Wrapper,{layout:e,size:"small",className:U.styles["price-wrapper"],children:[n.jsx(p.ProductInfo.ValuesWrapper,{children:t!==r?n.jsxs(n.Fragment,{children:[n.jsx(p.ProductInfo.Price,{label:"originalPrice",value:i.toString(),size:"small"}),n.jsx(p.ProductInfo.Price,{label:"discountPrice",value:c.toString(),size:"small"})]}):n.jsx(p.ProductInfo.Price,{label:"defaultPrice",value:c.toString(),size:"small"})}),s&&s>1&&a?n.jsx(p.ProductInfo.Price,{label:"installment",value:`ou ${s}x ${l}`,size:"small"}):null]})})},Ro=({onAddCallBack:e,onDisabledClickCallBack:t,addToCartBtnSize:r,BUY_BUTTON_LABELS:o})=>{const s=kt(),{productId:a,productData:i,price:c,listPrice:l,thumbImage:u,isKit:m}=De(),{isMobile:g}=ge(),{addToCart:d}=Ee(),{sendDataLayerEvent:f}=ue(),h=!m&&(!s.sku||!s.available),_=()=>{if(h&&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(p.Button,{className:U.styles["add-to-cart"],size:g?(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}`})},Sy=({addToCartBtnSize:e,BUY_BUTTON_LABELS:t})=>{const{isMobile:r}=ge(),o=kt(),{sizesContainerRef:s}=ka(),{structureRef:a}=je();return o.sku&&o.available?n.jsx(Ro,{addToCartBtnSize:e,BUY_BUTTON_LABELS:t}):n.jsx(p.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})},wy=({addToCartBtnSize:e,BUY_BUTTON_LABELS:t,Z_INDEX_WAR:r})=>{const{isMobile:o}=ge();return o?n.jsxs(p.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(Cr,{}),n.jsx(ps,{layout:"name-vertical"})]}),n.jsx(Sy,{addToCartBtnSize:e,BUY_BUTTON_LABELS:t})]}):null},Ry=({children:e,setShowBottomNavigation:t})=>{const r=x.useRef(null),o=Mo(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})},Ey=({ICONS:e})=>{const{isMobile:t}=ge(),{price:r,listPrice:o,productData:s,productId:a}=De(),{sendDataLayerEvent:i}=ue(),c=Ho(),{toggleProduct:l}=Uo();return n.jsx(p.Button,{adornment:{start:n.jsx(p.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}}})}})},Md=({showWishlist:e=!0,callBack:t,addToCartBtnSize:r,BUY_BUTTON_LABELS:o,ICONS:s,Z_INDEX_WAR:a})=>{const{isMobile:i}=ge(),[c,l]=x.useState(!0);return n.jsxs(n.Fragment,{children:[n.jsxs("div",{className:U.styles.actions,children:[i?n.jsx(Ry,{setShowBottomNavigation:l,children:n.jsx(Ro,{onAddCallBack:t,addToCartBtnSize:r,BUY_BUTTON_LABELS:o})}):n.jsx(Ro,{onAddCallBack:t,addToCartBtnSize:r,BUY_BUTTON_LABELS:o}),e&&n.jsx(Ey,{ICONS:s})]}),i&&c&&n.jsx(wy,{addToCartBtnSize:r,BUY_BUTTON_LABELS:o,Z_INDEX_WAR:a})]})},Ld=({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(p.BreadCrumb.DivWrapper,{className:p.helpers.classNameConcat(U.styles.breadcrumb,[t==="mobile"?U.styles["breadcrumbs-mobile"]:U.styles["breadcrumbs-desktop"],e]),children:n.jsxs(p.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(p.BreadCrumb.Item,{adornment:{end:n.jsx(p.Icon,{name:r.arrow_right})},role:"listitem",children:n.jsx(Me,{href:`/${l}`,children:i})},`pdp-breadcrumb-${l}-${c}`)}),n.jsx(p.BreadCrumb.Item,{role:"listitem",className:p.helpers.classNameConcat(U.styles["breadcrumb--active"],e),children:s},"pdp-breadcrumb-productName")]})})};Ld.displayName="PDP.BreadCrumb";const Dd=({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(p.Tag,{className:p.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(p.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,{})};Dd.displayName="PDPCredits";const Py=()=>{const{descriptionContent:e,productReference:t}=De(),[r,o]=x.useState("description");return n.jsxs(p.Tabs.Root,{className:U.styles["tabs-root-modifier"],children:[n.jsx(p.Tabs.TabList,{className:U.styles["tabs-list-modifier"],children:e==null?void 0:e.map(({label:s,value:a})=>n.jsx(p.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(p.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)]})]})},Ay=({CURRENCY:e,DELIVERY_INFO_BOXES_ALLOWED:t,FREIGHT_CALCULATION:r,Z_INDEX_WAR:o})=>{const s=kt(),{isMobile:a}=ge();return n.jsxs(n.Fragment,{children:[a?n.jsx(p.Utils.Divider,{direction:"horizontal",size:"small"}):null,n.jsx(Fu,{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(p.Utils.Divider,{direction:"horizontal",size:"small"}):null]})},ga=({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)},Iy=({video:e,productName:t,poster:r})=>{const{sendDataLayerEvent:o}=ue(),s=x.useRef(!1);return n.jsx(ze.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})},$d=({images:e,video:t,handleZoom:r,productName:o,PRODUCT_IMAGE_DIMENSIONS:s})=>{var u,m;const{initialize:a,pagination:i,controller:c,itemsStyles:l}=p.Carousel.useCarousel({gap:0,itemsPerPage:1,loop:!1,direction:"row"});return n.jsxs(p.Carousel.Root,{innerRef:g=>{a(g)},className:U.styles["gallery-carousel-modifier"],children:[n.jsx(p.Carousel.Controller,{position:"absolute",top:"24px",bottom:"unset",left:"16px",children:n.jsx(p.Carousel.Bullets,{page:i.currentPage,total:e.length,onBulletClick:g=>c==null?void 0:c.navigateTo(g)})}),n.jsxs(p.Carousel.Body,{children:[n.jsx(p.Carousel.Item,{style:l,children:n.jsx(ga,{image:e[0],index:0,handleZoom:r,PRODUCT_IMAGE_DIMENSIONS:s})},"PDP_gallery_0"),t&&n.jsx(p.Carousel.Item,{style:l,children:n.jsx(Iy,{video:t,productName:o,...((u=e[1])==null?void 0:u.imageUrl)&&{poster:(m=e[1])==null?void 0:m.imageUrl}})},"PDP_gallery_video"),e.map((g,d)=>d===0?null:n.jsx(p.Carousel.Item,{style:l,children:n.jsx(ga,{image:g,index:d,handleZoom:r,PRODUCT_IMAGE_DIMENSIONS:s})},`PDP_gallery_${d}`))]})]})};$d.displayName="PDP.Carousel";const Ny="_thumbs_1fbzz_65",Ty="_selected_1fbzz_93",ky="_carousel_1fbzz_162",Oy="_bullets_1fbzz_199",we={"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:Ny,selected:Ty,"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:ky,"carousel-controller":"_carousel-controller_1fbzz_167","arrow-left":"_arrow-left_1fbzz_177","arrow-right":"_arrow-right_1fbzz_178",bullets:Oy,"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:`${we["button-close-container"]}`,children:n.jsx(p.Button,{iconNameStart:t.close,iconSize:"medium",className:`${we["button-close"]}`,variant:"tertiary",state:"default",size:"medium",onClick:e,style:{textDecoration:"none"}})}),My=({children:e,Z_INDEX_WAR:t,...r})=>n.jsx("div",{...r,className:we["image-zoom-wrapper-desktop"],style:{zIndex:t.pdp_image_zoom},children:e}),zd=({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:m,itemsStyles:g}=p.Carousel.useCarousel({itemsPerPage:1,gap:10,loop:!1,direction:"row"}),d=h=>{u==null||u.navigateTo(h)},f=()=>{r(!0)};return x.useEffect(()=>{t(m.currentPage)},[m.currentPage,t]),n.jsxs(p.Carousel.Root,{innerRef:h=>{h&&!i&&(i=h,l(i))},className:we.carousel,children:[n.jsxs(p.Carousel.Controller,{className:we["carousel-controller"],children:[n.jsx(p.Button,{variant:"tertiary",onClick:()=>u==null?void 0:u.prevPage(),className:we["arrow-left"],adornment:{start:n.jsx(p.Icon,{name:o.arrow_left})}}),n.jsx(p.Button,{variant:"tertiary",onClick:()=>u==null?void 0:u.nextPage(),className:we["arrow-right"],adornment:{start:n.jsx(p.Icon,{name:o.arrow_right})}})]}),n.jsx(p.Carousel.Body,{children:Array.isArray(e)&&e.map((h,_)=>n.jsx(p.Carousel.Item,{style:g,children:n.jsx(a,{...s.image_zoom.mobile,..._===0&&{priority:!0,loading:"eager"},ref:c,className:we.imageMobile,src:h.imageUrl,alt:h.imageText,quality:100,..._===0&&{onLoad:f}})},_))}),n.jsx(p.Carousel.Bullets,{className:we.bullets,page:m.currentPage,total:m.totalPages,onBulletClick:d})]})};zd.displayName="ImageZoom.Mobile.Carousel";const Bd=({imgRef:e,image:t,PRODUCT_IMAGE_DIMENSIONS:r})=>{Fa();const{nextimage:o}=xe();return n.jsx("div",{className:we["image-zoom--image"],ref:e,children:n.jsx(o,{...r.image_zoom.mobile,alt:t.imageText,className:we["image-zoom--image--img"],quality:100,src:t.imageUrl})})};Bd.displayName="ImageZoom.ImageZoom";const Fd=({loaded:e=!1})=>n.jsx("div",{className:we["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"})]})});Fd.displayName="ImageZoom.ZoomPopup";const qd=({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:m}=qa({defaultScale:1,maxScale:3});return n.jsxs("div",{...o,className:we["image-mobile"],"data-disable-carrousel-pan":m>1,children:[n.jsx(Fd,{loaded:s}),n.jsx(zd,{images:e,setCurrent:c,setFirstImgLoaded:a,ICONS:t,PRODUCT_IMAGE_DIMENSIONS:r}),n.jsx("div",{className:we["image-zoom--mobile"],ref:l,children:n.jsx(Bd,{imgRef:u,image:e[i],PRODUCT_IMAGE_DIMENSIONS:r})})]})};qd.displayName="ImageZoom.ImageMobile";const Ly=({children:e,Z_INDEX_WAR:t,...r})=>n.jsx("div",{...r,className:we["image-zoom-wrapper-mobile"],style:{zIndex:t.pdp_image_zoom},children:e}),Dy="_modal_1u87b_1",Ge={modal:Dy,"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 $y({headerTitle:e,isMobile:t,ICONS:r}){return n.jsx(p.Modal.Header,{navigation:"top",className:Ge["modal-header"],children:n.jsxs(p.Modal.Controls,{navigation:"top",isMobile:t,children:[n.jsx("div",{className:Ge["modal-header__title"],children:n.jsx(p.Modal.Title,{navigation:"top",className:Ge["quick-shop__title"],title:e})}),n.jsx(p.Button,{className:Ge["modal-header__close-button"],"data-close":!0,iconNameStart:r.close,size:"small",variant:"tertiary"})]})})}const zy=({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")}):[],Hd=({isMobile:e,ICONS:t,NOTIFY_INFO:r})=>n.jsxs(n.Fragment,{children:[n.jsx(p.Modal.Controls,{navigation:e?"top":"middle",isMobile:e??!1,children:!e&&n.jsxs(n.Fragment,{children:[n.jsx(p.Button,{"data-close":!0,iconNameStart:t.arrow_left,size:"small",variant:"tertiary"}),n.jsx(p.Button,{"data-close":!0,iconNameStart:t.close,size:"small",variant:"tertiary"})]})}),n.jsx(p.Modal.Title,{navigation:e?"top":"middle",title:r.title})]});Hd.displayName="Notify.Controls";const Ue={"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"},Ud=({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:m}=ue(),{user:g}=Mt(),d=g!=null&&g.firstName?`${g==null?void 0:g.firstName} ${g==null?void 0:g.lastName}`:"";return n.jsx("div",{className:Ue["notify--form"],children:n.jsxs("form",{action:"POST",onSubmit:async f=>{var y;f.preventDefault();const h=f.currentTarget,_=((y=h.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),h.reset(),m({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(p.TextField.Structure,{input:n.jsx(p.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(p.TextField.SupportText,{text:a.messages.invalid_email,feedback:"error"}):n.jsx(n.Fragment,{})}),n.jsx(p.Button,{disabled:!(l===!1||!r)||!r,type:"submit",size:"large",children:i.button})]})})};Ud.displayName="Notify.Form";const Wd=({isLoading:e=!1})=>n.jsx("div",{className:Ue["notify--loading"],"data-loading":e,children:n.jsx(p.Spinner,{})});Wd.displayName="Notify.Loading";const By=(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])},Vd=({children:e,label:t="",skus:r,sku:o,setSku:s})=>n.jsxs(n.Fragment,{children:[n.jsx("div",{className:Ue["notify--selector--header"],children:e}),n.jsxs(Ve.Root,{className:Ue["notify--selector"],children:[n.jsx(Ve.Title,{title:t}),n.jsx(Ve.List,{children:Array.isArray(r)&&r.map((a,i)=>{const c=By(o,a);return n.jsx(Ve.Option,{active:c,onClick:()=>s(c?null:a),text:String(a.size),type:"size"},i)})})]})]});Vd.displayName="Notify.Selector";const _a=({type:e,icon:t,title:r,subtitle:o})=>n.jsx("div",{className:Ue[`notify--status--${e}`],children:n.jsx(p.TextStructure.Root,{adornment:{start:n.jsx(p.Icon,{name:t,size:"large"})},children:n.jsxs(p.TextStructure.DivWrapper,{children:[n.jsx("h2",{children:r}),n.jsx("h3",{children:o})]})})}),Gd=({status:e,ICONS:t,PRODUCT_CARD_TEXTS:r})=>n.jsxs("div",{className:Ue["notify--status"],"data-status":e,children:[n.jsx(_a,{...r.success,icon:t.check_circle,type:"success"}),n.jsx(_a,{...r.error,icon:t.alert_circle,type:"error"})]});Gd.displayName="Notify.Status";const Kd=({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:m})=>{const[g,d]=x.useState(!1),[f,h]=x.useState(null),{isMobile:_}=ge();return n.jsxs(p.Modal.Root,{isMobile:_??!1,isOpen:t,setIsOpen:r,variant:_?"sideBottom":"sideLeft",style:{zIndex:m.modal},className:Ue["modal-modifier"],children:[n.jsx(p.Modal.Header,{navigation:"top",className:Ue["notify--header-modifier"],children:n.jsx(Hd,{isMobile:_??!1,ICONS:i,NOTIFY_INFO:l})}),n.jsxs(p.Modal.Body,{className:Ue["notify--modal--body"],children:[n.jsxs("div",{className:Ue["notify--container"],children:[n.jsxs(Vd,{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(Ud,{delay:4e3,sku:s,setStatus:h,setIsLoading:d,color:e,NEWSLETTER_CONFIGS:c,NOTIFY_INFO:l}),n.jsx(Wd,{isLoading:g}),n.jsx("div",{className:Ue["notify--selector--header"],children:n.jsx("span",{children:l.legal})})]}),n.jsx(Gd,{status:f,ICONS:i,PRODUCT_CARD_TEXTS:u})]})]})};Kd.displayName="Notify";const Xd=({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(),m=x.useMemo(()=>c!=null&&c.length?zy({items:c,getLabel:j=>j.value,PLP_SIZE_ORDER:t}):[],[c]),{sizesContainerRef:g}=ka(),{isMobile:d}=ge(),f=kt(),h=xc(),{setValue:_}=yc(),{setValue:y}=Fo(),b=x.useRef({}),[S,v]=x.useState(null);return n.jsxs("div",{ref:g,className:U.styles.sizes,children:[n.jsx("span",{className:U.styles["sections-title"],children:e.product.size_title}),n.jsx("div",{children:m.map(j=>(!j.available&&!b.current[j.value]&&(b.current[j.value]={disable:!j.available,size:j.value,skuID:j.sku}),n.jsxs(p.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(p.ToggleSize.DisabledAdornment,{title:"disabled-adornment-texture"}),n.jsx(p.ToggleSize.Text,{children:j==null?void 0:j.value})]},`sizes-${j.sku}-${j.value}`)))}),n.jsx(Kd,{open:h,setVisible:y,sku:S,setSku:v,skus:Object.values(b.current),ICONS:r,NEWSLETTER_CONFIGS:o,NOTIFY_INFO:s,PRODUCT_CARD_TEXTS:a,Z_INDEX_WAR:i})]})},Rt=({children:e,className:t,type:r})=>n.jsx("div",{className:p.helpers.classNameConcat(U.styles["pdp-main__info-subsection"],[U.styles[`subsection-${r}`],t]),children:e}),Qd=({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:p.helpers.classNameConcat(U.styles["pdp-main__info"],t),id:"pdpmaininfo",style:{top:s},children:e})},Fy=({children:e,link:t,TOGGLE_STYLE_MODIFIER:r})=>{const{isMobile:o}=ge(),{router:s}=xe(),a=()=>{t&&s.push(t)},i=x.useRef(null);return n.jsx(p.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})},Yd=({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(Fy,{link:a.slug?a.slug:null,TOGGLE_STYLE_MODIFIER:r,children:[n.jsx(p.ToggleStyle.DisabledAdornment,{}),n.jsx(p.ToggleStyle.Texture,{children:n.jsx(ze.Image,{alt:a.textureAlt,src:a.textureImage,height:34,width:34,style:{borderRadius:0,height:"100%"}})})]},`similars-item-${i}`):null)})},Zd=({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(Yd,{productId:r,similars:o,TOGGLE_STYLE_MODIFIER:t})]})};Zd.displayName="PDP.Info.Similars";const qy=({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:m})=>n.jsx(p.Modal.Body,{className:Ge["modal-product-body"],children:n.jsxs(Qd,{className:Ge["pdp-main__info-modifier"],children:[n.jsxs(Rt,{type:"product-info",children:[n.jsx(Cr,{}),n.jsx(ps,{})]}),n.jsx(Rt,{type:"similars",children:n.jsx(Zd,{TEXTURE_IMAGE:l,TOGGLE_STYLE_MODIFIER:u})}),n.jsx(Rt,{type:"sizes",children:n.jsx(Xd,{ICONS:r,NEWSLETTER_CONFIGS:o,NOTIFY_INFO:s,PDP_INFO:a,PLP_SIZE_ORDER:i,PRODUCT_CARD_TEXTS:c,Z_INDEX_WAR:m})}),n.jsx(Rt,{type:"actions",children:n.jsx(Md,{showWishlist:!1,callBack:e,addToCartBtnSize:{mobile:"medium",desktop:"large"},BUY_BUTTON_LABELS:t,ICONS:r,Z_INDEX_WAR:m})})]})});function Hy({callBackProductAdded:e,QUICKSHOP:t,ICONS:r,...o}){const[s,a]=x.useState(!1),i=()=>a(c=>!c);return n.jsxs("div",{className:Ge["quick-shop"],children:[n.jsx(p.Button,{onClick:i,size:"x-large",className:Ge["shop-bag"],iconNameStart:r.bag,iconSize:"medium"}),n.jsxs(p.Modal.Root,{isOpen:s,setIsOpen:a,className:`${Ge.modal} ${Ge["quick-shop__modal"]}`,style:{position:"fixed",height:"100svh",width:"100%",top:0,zIndex:1e3,bottom:"unset",overflowY:"hidden"},variant:"sideRight",children:[n.jsx($y,{headerTitle:t.title,ICONS:r}),n.jsx(qy,{callBackProductAdded:e,ICONS:r,...o})]})]})}const Uy=({image:e})=>n.jsx(lr,{src:U.resizingImg(e.imageUrl,{width:50,height:75})||"",alt:e.imageText,className:we.mainImage,layout:"fill",objectFit:"cover",priority:!0,quality:10,style:{position:"absolute",inset:0,filter:"blur(10px)"}}),Wy=({images:e,selectedImageIndex:t,PRODUCT_IMAGE_DIMENSIONS:r,...o})=>{const[s,a]=x.useState(!1),{nextimage:i}=xe();return n.jsx("div",{...o,className:we["main-image-container"],children:n.jsxs("div",{className:we["image-desktop"],children:[!s&&n.jsx(Uy,{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:we.mainImage,layout:"fill",objectFit:"cover",priority:!0,quality:100,onLoad:()=>{a(!0)}})]})})},Vy=({images:e,onThumbnailClick:t,selectedImageIndex:r})=>{const{nextimage:o}=xe();return n.jsx("div",{className:we.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?we.selected:"",children:n.jsx(o,{src:s.imageUrl,alt:s.imageText,layout:"responsive",width:100,height:100,objectFit:"cover",priority:!1})},a))})},Jd=({images:e,initialSelectedImageIndex:t=0,setShowImageZoom:r,ICONS:o,PRODUCT_IMAGE_DIMENSIONS:s,Z_INDEX_WAR:a,...i})=>{const{isMobile:c}=ge(),[l,u]=x.useState(t),m=g=>{u(g)};return c?n.jsxs(Ly,{Z_INDEX_WAR:a,children:[n.jsx(ya,{onClose:()=>r({show:!1,initialIndex:0}),ICONS:o}),n.jsx(qd,{images:e,ICONS:o,PRODUCT_IMAGE_DIMENSIONS:s})]}):n.jsxs(My,{Z_INDEX_WAR:a,children:[n.jsx(ya,{onClose:()=>r({show:!1,initialIndex:0}),ICONS:o}),n.jsx(Wy,{images:e,selectedImageIndex:l,onThumbnailClick:m,PRODUCT_IMAGE_DIMENSIONS:s},e[l].imageId??`${e[l].imageText}-${l}`),n.jsx(Vy,{images:e,selectedImageIndex:l,onThumbnailClick:m}),n.jsx(Hy,{callBackProductAdded:()=>{r({initialIndex:0,show:!1})},ICONS:o,Z_INDEX_WAR:a,...i})]})};Jd.displayName="ImageZoom";const Gy=({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($d,{images:e,video:o,handleZoom:c,productName:s,PRODUCT_IMAGE_DIMENSIONS:t}),a.show&&n.jsx(Jd,{images:e,initialSelectedImageIndex:a.initialIndex,setShowImageZoom:i,PRODUCT_IMAGE_DIMENSIONS:t,...r})]})},ef=({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(Gy,{productImgs:s,TEXTURE_IMAGE:e,PRODUCT_IMAGE_DIMENSIONS:t,...r})};ef.displayName="PDP.Gallery";const Ky=({className:e,hasIcons:t=!0,ICONS:r,PDP_INFO:o})=>{const{allSizesAvailable:s,productId:a}=De(),{setValue:i}=Fo(),{sendDataLayerEvent:c}=ue();return n.jsx("div",{className:p.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(p.Button,{adornment:t?{start:n.jsx(p.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(p.Button,{adornment:t?{start:n.jsx(p.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(p.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})]})})},Xy=({children:e})=>n.jsx("div",{className:U.styles["pdp-main__info-main-content"],children:e}),Qy=({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}`))})}),Yy=({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}`))}),Zy="_tableContainer_1yxy2_1",Jy={tableContainer:Zy},e_=({children:e,className:t=""})=>n.jsx("table",{className:`${Jy.tableContainer} ${t}`,children:e}),lo={Head:Qy,Rows:Yy,Root:e_},t_=({title:e,text:t})=>n.jsxs("p",{className:U.styles.measurementRowsText,children:[n.jsx("h1",{className:U.styles.measurementRowsTitle,children:e}),t]}),r_=({ICONS:e,SIZES:t,Z_INDEX_WAR:r})=>{const o=Cc(),{setValue:s}=Sc();return n.jsx(p.Modal.Root,{isMobile:!0,style:{zIndex:r.modal},setIsOpen:s,isOpen:o,className:U.styles.measurementModal,children:n.jsx(p.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(lr,{width:264,height:402,alt:"",className:U.styles.measurementImage,src:t.bannerImage})}),n.jsxs(lo.Root,{className:U.styles.measurementTable,children:[n.jsx(lo.Head,{className:U.styles.measurementHead,head:t.head}),n.jsx(lo.Rows,{className:U.styles.measurementRows,rows:t.rows.map((a,i)=>[n.jsx(t_,{title:t.descriptions[i].title,text:t.descriptions[i].text},i),...a])})]})]}),n.jsx(p.Button,{onClick:()=>s(!1),className:U.styles.measurementClose,variant:"tertiary",children:n.jsx(p.Icon,{name:e.close})})]})})},"minicart")},n_=({children:e,className:t,...r})=>n.jsx("div",{className:p.helpers.classNameConcat(U.styles["pdp-main__gallery-wrapper"],t),...r,children:e}),o_=({children:e,className:t,...r})=>n.jsx("div",{className:p.helpers.classNameConcat(U.styles.pdp,t),...r,children:e}),s_=({children:e,className:t,...r})=>n.jsx("div",{className:p.helpers.classNameConcat(U.styles["pdp-main"],t),...r,children:e}),i_=({children:e,className:t,...r})=>n.jsx("div",{className:p.helpers.classNameConcat(U.styles["pdp-main__info-secondary-content"],t),...r,children:e}),a_={gallery:n_,pdp:o_,main:s_,secondary:i_},c_=({className:e,...t})=>n.jsx(p.Utils.Divider,{...t,className:p.helpers.classNameConcat(U.styles.divider,e)}),l_=Object.freeze(Object.defineProperty({__proto__:null,AccessibilityInfo:Cy,Actions:Md,BreadCrumb:Ld,Credits:Dd,DescriptionsTabs:Py,Divider:c_,Freight:Ay,Gallery:ef,Header:Cr,Links:Ky,MainContent:Xy,MainInfo:Qd,Price:ps,ProductMeasurements:r_,SimilarsItems:Yd,Sizes:Xd,SubSectionWrapper:Rt,containers:a_},Symbol.toStringTag,{value:"Module"})),u_=({page:e,data:t})=>{const{pathname:r}=xe(),o=x.useRef(null),{sendDataLayerEvent:s,currentLocalRef:a,itemListRef:i,promotionEventRef:c}=ue();return x.useEffect(()=>{const l=Gc("login_event")||"{}",u=JSON.parse(l);if(u.name||u.method){const m=new Date(0);s({functionKey:"readyEvents",data:{event:u.name,readyData:{method:u.method}}}),Ko("login_event","",{expires:m})}},[]),x.useEffect(()=>{if(o.current===r)return;o.current=r;let l={};switch(e){case"PDP":{const m=t,g={};if(!m){l={page_category:"pdp"};break}m.items.forEach(({itemId:d,sellers:f})=>g[d]=f[0].commertialOffer.AvailableQuantity),l={page_category:"pdp",seller_ids:m.items.map(({sellers:d})=>d[0].sellerId).join(),skuStocks:g,product_reference_id:m.productReference};break}case"PDC":{const{page_category:m,page_departament:g,id:d,name:f}=$a(),h=f,_=d;l={page_category:"lista_produtos",...g&&{page_departament:g}},i.current={item_list_name:r==="/search"?"busca":h??void 0,item_list_id:r==="/search"?void 0:_??void 0},g&&s({functionKey:"readyEvents",data:{event:"view_category",readyData:{page_category:m,page_departament:g}}});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 Eo={exports:{}};function d_(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 uo={},fo={},va;function f_(){return va||(va=1,function(e){"use client";Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"LoadableContext",{enumerable:!0,get:function(){return o}});const o=Oe._(x).default.createContext(null);process.env.NODE_ENV!=="production"&&(o.displayName="LoadableContext")}(fo)),fo}var xa;function p_(){return xa||(xa=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return f}});const r=Oe._(x),o=f_();function s(h){return h&&h.default?h.default:h}const a=[],i=[];let c=!1;function l(h){let _=h(),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(h,_){let y=Object.assign({loader:null,loading:null,delay:200,timeout:null,webpack:null,modules:null},_),b=null;function S(){if(!b){const w=new m(h,y);b={getCurrentValue:w.getCurrentValue.bind(w),subscribe:w.subscribe.bind(w),retry:w.retry.bind(w),promise:w.promise.bind(w)}}return b.promise()}if(typeof window>"u"&&a.push(S),!c&&typeof window<"u"){const w=y.webpack&&typeof d_.resolveWeak=="function"?y.webpack():y.modules;w&&i.push(E=>{for(const C of w)if(E.includes(C))return S()})}function v(){S();const w=r.default.useContext(o.LoadableContext);w&&Array.isArray(y.modules)&&y.modules.forEach(E=>{w(E)})}function j(w,E){v();const C=r.default.useSyncExternalStore(b.subscribe,b.getCurrentValue,b.getCurrentValue);return r.default.useImperativeHandle(E,()=>({retry:b.retry}),[]),r.default.useMemo(()=>C.loading||C.error?r.default.createElement(y.loading,{isLoading:C.loading,pastDelay:C.pastDelay,timedOut:C.timedOut,error:C.error,retry:b.retry}):C.loaded?r.default.createElement(s(C.loaded),w):null,[w,C])}return j.preload=()=>S(),j.displayName="LoadableComponent",r.default.forwardRef(j)}class m{promise(){return this._res.promise}retry(){this._clearTimeouts(),this._res=this._loadFn(this._opts.loader),this._state={pastDelay:!1,timedOut:!1};const{_res:_,_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 g(h){return u(l,h)}function d(h,_){let y=[];for(;h.length;){let b=h.pop();y.push(b(_))}return Promise.all(y).then(()=>{if(h.length)return d(h,_)})}g.preloadAll=()=>new Promise((h,_)=>{d(a).then(h,_)}),g.preloadReady=h=>(h===void 0&&(h=[]),new Promise(_=>{const y=()=>(c=!0,_());d(i,h).then(y,y)})),typeof window<"u"&&(window.__NEXT_PRELOADREADY=g.preloadReady);const f=g}(uo)),uo}(function(e,t){Object.defineProperty(t,"__esModule",{value:!0});function r(m,g){for(var d in g)Object.defineProperty(m,d,{enumerable:!0,get:g[d]})}r(t,{noSSR:function(){return l},default:function(){return u}});const o=Oe,s=o._(x),a=o._(p_()),i=typeof window>"u";function c(m){return{default:(m==null?void 0:m.default)||m}}function l(m,g){if(delete g.webpack,delete g.modules,!i)return m(g);const d=g.loading;return()=>s.default.createElement(d,{error:null,isLoading:!0,pastDelay:!1,timedOut:!1})}function u(m,g){let d=a.default,f={loading:y=>{let{error:b,isLoading:S,pastDelay:v}=y;if(!v)return null;if(process.env.NODE_ENV!=="production"){if(S)return null;if(b)return s.default.createElement("p",null,b.message,s.default.createElement("br",null),b.stack)}return null}};m instanceof Promise?f.loader=()=>m:typeof m=="function"?f.loader=m:typeof m=="object"&&(f={...f,...m}),f={...f,...g};const h=f.loader,_=()=>h!=null?h().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)})(Eo,Eo.exports);var m_=Eo.exports,h_=m_;const g_=hr(h_);var Po={exports:{}},sr={exports:{}},ba;function y_(){return ba||(ba=1,function(e,t){Object.defineProperty(t,"__esModule",{value:!0});function r(l,u){for(var m in u)Object.defineProperty(l,m,{enumerable:!0,get:u[m]})}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:m}=l;const g=document.createElement(u);for(const h in m){if(!m.hasOwnProperty(h)||h==="children"||h==="dangerouslySetInnerHTML"||m[h]===void 0)continue;const _=o[h]||h.toLowerCase();u==="script"&&(_==="async"||_==="defer"||_==="noModule")?g[_]=!!m[h]:g.setAttribute(_,m[h])}const{children:d,dangerouslySetInnerHTML:f}=m;return f?g.innerHTML=f.__html||"":d&&(g.textContent=typeof d=="string"?d:Array.isArray(d)?d.join(""):""),g}function a(l,u){if(l instanceof HTMLElement&&u instanceof HTMLElement){const m=u.getAttribute("nonce");if(m&&!l.getAttribute("nonce")){const g=u.cloneNode(!0);return g.setAttribute("nonce",""),g.nonce=m,m===l.nonce&&l.isEqualNode(g)}}return l.isEqualNode(u)}let i;process.env.__NEXT_STRICT_NEXT_HEAD?i=(l,u)=>{const m=document.querySelector("head");if(!m)return;const g=m.querySelectorAll('meta[name="next-head"]')||[],d=[];if(l==="meta"){const _=m.querySelector("meta[charset]");_&&d.push(_)}for(let _=0;_<g.length;_++){var f;const b=g[_].nextSibling;(b==null||(f=b.tagName)==null?void 0:f.toLowerCase())===l&&d.push(b)}const h=u.map(s).filter(_=>{for(let y=0,b=d.length;y<b;y++){const S=d[y];if(a(S,_))return d.splice(y,1),!1}return!0});d.forEach(_=>{var y;const b=_.previousSibling;if(b&&b.getAttribute("name")==="next-head"){var S;(S=_.parentNode)==null||S.removeChild(b)}(y=_.parentNode)==null||y.removeChild(_)}),h.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")||m.appendChild(b),m.appendChild(_)})}:i=(l,u)=>{const m=document.getElementsByTagName("head")[0],g=m.querySelector("meta[name=next-head-count]");if(process.env.NODE_ENV!=="production"&&!g){console.error("Warning: next-head-count is missing. https://nextjs.org/docs/messages/next-head-count-missing");return}const d=Number(g.content),f=[];for(let y=0,b=g.previousElementSibling;y<d;y++,b=(b==null?void 0:b.previousElementSibling)||null){var h;(b==null||(h=b.tagName)==null?void 0:h.toLowerCase())===l&&f.push(b)}const _=u.map(s).filter(y=>{for(let b=0,S=f.length;b<S;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=>m.insertBefore(y,g)),g.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 m=u.title?u.title[0]:null;let g="";if(m){const{children:d}=m.props;g=typeof d=="string"?d:Array.isArray(d)?d.join(""):""}g!==document.title&&(document.title=g),["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)}(sr,sr.exports)),sr.exports}(function(e,t){"use client";Object.defineProperty(t,"__esModule",{value:!0});function r(w,E){for(var C in E)Object.defineProperty(w,C,{enumerable:!0,get:E[C]})}r(t,{handleClientScriptLoad:function(){return _},initScriptLoader:function(){return S},default:function(){return j}});const o=Oe,s=gt,a=o._(Ia),i=s._(x),c=bd(),l=y_(),u=Al(),m=new Map,g=new Set,d=["onLoad","onReady","dangerouslySetInnerHTML","children","onError","strategy","stylesheets"],f=w=>{if(a.default.preinit){w.forEach(E=>{a.default.preinit(E,{as:"style"})});return}if(typeof window<"u"){let E=document.head;w.forEach(C=>{let P=document.createElement("link");P.type="text/css",P.rel="stylesheet",P.href=C,E.appendChild(P)})}},h=w=>{const{src:E,id:C,onLoad:P=()=>{},onReady:k=null,dangerouslySetInnerHTML:R,children:N="",strategy:I="afterInteractive",onError:z,stylesheets:T}=w,H=C||E;if(H&&g.has(H))return;if(m.has(E)){g.add(H),m.get(E).then(P,z);return}const W=()=>{k&&k(),g.add(H)},q=document.createElement("script"),K=new Promise((V,B)=>{q.addEventListener("load",function(J){V(),P&&P.call(this,J),W()}),q.addEventListener("error",function(J){B(J)})}).catch(function(V){z&&z(V)});R?(q.innerHTML=R.__html||"",W()):N?(q.textContent=typeof N=="string"?N:Array.isArray(N)?N.join(""):"",W()):E&&(q.src=E,m.set(E,K));for(const[V,B]of Object.entries(w)){if(B===void 0||d.includes(V))continue;const J=l.DOMAttributeNames[V]||V.toLowerCase();q.setAttribute(J,B)}I==="worker"&&q.setAttribute("type","text/partytown"),q.setAttribute("data-nscript",I),T&&f(T),document.body.appendChild(q)};function _(w){const{strategy:E="afterInteractive"}=w;E==="lazyOnload"?window.addEventListener("load",()=>{(0,u.requestIdleCallback)(()=>h(w))}):h(w)}function y(w){document.readyState==="complete"?(0,u.requestIdleCallback)(()=>h(w)):window.addEventListener("load",()=>{(0,u.requestIdleCallback)(()=>h(w))})}function b(){[...document.querySelectorAll('[data-nscript="beforeInteractive"]'),...document.querySelectorAll('[data-nscript="beforePageRender"]')].forEach(E=>{const C=E.id||E.getAttribute("src");g.add(C)})}function S(w){w.forEach(_),b()}function v(w){const{id:E,src:C="",onLoad:P=()=>{},onReady:k=null,strategy:R="afterInteractive",onError:N,stylesheets:I,...z}=w,{updateScripts:T,scripts:H,getIsSsr:W,appDir:q,nonce:K}=(0,i.useContext)(c.HeadManagerContext),V=(0,i.useRef)(!1);(0,i.useEffect)(()=>{const J=E||C;V.current||(k&&J&&g.has(J)&&k(),V.current=!0)},[k,E,C]);const B=(0,i.useRef)(!1);if((0,i.useEffect)(()=>{B.current||(R==="afterInteractive"?h(w):R==="lazyOnload"&&y(w),B.current=!0)},[w,R]),(R==="beforeInteractive"||R==="worker")&&(T?(H[R]=(H[R]||[]).concat([{id:E,src:C,onLoad:P,onReady:k,onError:N,...z}]),T(H)):W&&W()?g.add(E||C):W&&!W()&&h(w)),q){if(I&&I.forEach(J=>{a.default.preinit(J,{as:"style"})}),R==="beforeInteractive")return C?(a.default.preload(C,z.integrity?{as:"script",integrity:z.integrity}:{as:"script"}),i.default.createElement("script",{nonce:K,dangerouslySetInnerHTML:{__html:"(self.__next_s=self.__next_s||[]).push("+JSON.stringify([C])+")"}})):(z.dangerouslySetInnerHTML&&(z.children=z.dangerouslySetInnerHTML.__html,delete z.dangerouslySetInnerHTML),i.default.createElement("script",{nonce:K,dangerouslySetInnerHTML:{__html:"(self.__next_s=self.__next_s||[]).push("+JSON.stringify([0,{...z}])+")"}}));R==="afterInteractive"&&C&&a.default.preload(C,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)})(Po,Po.exports);var __=Po.exports,v_=__;const x_=hr(v_),b_=({children:e,ONE_TRUST:t})=>n.jsxs(n.Fragment,{children:[n.jsx(x_,{src:"https://cdn.cookielaw.org/scripttemplates/otSDKStub.js",defer:!0,strategy:"afterInteractive","data-domain-script":t.siteId,type:"text/javascript"}),e]}),j_=g_(()=>Promise.resolve(b_),{ssr:!1}),C_={"snackbar-modifier":"_snackbar-modifier_1va2l_1"},Et=({size:e,adornment:t,title:r,subtitle:o,supportChildren:s,className:a,Z_INDEX_WAR:i,...c})=>n.jsxs(p.SnackBar.Structure,{...c,size:e,className:p.helpers.classNameConcat(C_["snackbar-modifier"],a),width:360,style:{zIndex:i.snackbar},children:[n.jsx(p.SnackBar.Content,{adornment:t,title:r,subtitle:o}),s&&n.jsx(p.SnackBar.Support,{children:s})]});Et.displayName="SnackBar";const tf=({children:e,contentState:t,entityKey:r})=>{const{url:o}=t.getEntity(r).getData();return o?n.jsx(Me,{href:o,children:e}):e},S_="_container_1kcm0_20",w_="_lgpd_1kcm0_71",R_="_success_1kcm0_205",E_="_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:S_,"content-text":"_content-text_1kcm0_39","form-wrapper":"_form-wrapper_1kcm0_43",lgpd:w_,"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:R_,"text-structure-modifier":"_text-structure-modifier_1kcm0_210",error:E_},rf=({invalid_message:e,master_data_field:t,placeholder:r,required:o=!1,CONSTANTS:s})=>{const{isMobile:a}=ge(),{inputsStatus:i,setInputsStatus:c,setFormStatus:l,variant:u}=Xo();return n.jsx(p.TextField.Structure,{className:`${Ne["textfield-structure-modifier"]} ${u}`,input:n.jsx(p.TextField.Input,{mode:"simple",label:r,sizeVariant:a?s.NEWSLETTER_CONFIGS.interactionSizeMob:s.NEWSLETTER_CONFIGS.interactionSizeDesk,name:t,className:`${Ne["input-wrapper-modifier"]} ${u}`,feedback:i[t]==="required"?"error":i[t],onChange:()=>{i[t]!=="none"&&(c(m=>({...m,[t]:"none"})),l("idle"))},required:o}),supportText:i[t]==="error"||i[t]==="required"?n.jsx("div",{className:u==="horizontal"?Ne["support-text-modifier"]:"",children:n.jsx(p.TextField.SupportText,{text:i[t]==="error"?e??s.NEWSLETTER_CONFIGS.messages.invalid_generic:s.NEWSLETTER_CONFIGS.messages.required_field,feedback:"error"})}):null})};rf.displayName="Newsletter.Input";const nf=({title:e,description:t,CONSTANTS:r})=>n.jsx("div",{className:Ne.success,children:n.jsx(p.TextStructure.Root,{adornment:{start:n.jsx(p.Icon,{name:r.ICONS.check_circle,size:"small"})},children:n.jsxs(p.TextStructure.DivWrapper,{className:Ne["text-structure-modifier"],children:[n.jsx("h3",{children:e}),n.jsx("p",{children:t})]})})});nf.displayName="Newsletter.Success";const of=({formStatus:e,fields:t,CONSTANTS:r})=>n.jsx(n.Fragment,{children:e==="success"?n.jsx(nf,{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(rf,{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})})]})});of.displayName="Newsletter.FormFields";const sf=({formStatus:e,CONSTANTS:t,...r})=>{const{isMobile:o}=ge();return n.jsxs(p.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(p.Spinner,{className:Ne["loading-spinner"],size:"small"})]})};sf.displayName="Newsletter.SubmitButton";const af=({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(p.Checkbox,{adornment:n.jsx(p.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(p.TextStructure.Root,{adornment:{start:n.jsx(p.Icon,{name:o.ICONS.alert_circle,size:"small"})},children:n.jsx(p.TextStructure.DivWrapper,{children:n.jsx("p",{children:o.NEWSLETTER_CONFIGS.messages.terms_and_conditions_not_accepted})})})})]})};af.displayName="Newsletter.Terms";const cf=({formPayloadOptionals:e,masterDataEntity:t,CONSTANTS:r})=>{const{checkboxRef:o,fields:s,formStatus:a,hasTermsAndConditions:i,handleClickToSubmit:c,handleSubmit:l,setFormStatus:u}=Xo();return n.jsxs("form",{className:Ne["form-wrapper"],onSubmit:m=>l(m,e,t),children:[n.jsx(of,{formStatus:a,fields:s,CONSTANTS:r}),i&&n.jsx(af,{checkboxRef:o,formStatus:a,setFormStatus:u,CONSTANTS:r}),n.jsx(sf,{formStatus:a,type:"submit",variant:"primary",onClick:c,CONSTANTS:r})]})};cf.displayName="Newsletter.Form";const P_=["horizontal","vertical"],lf=({className:e,description:t,formPayloadOptionals:r,fields:o,masterDataEntity:s,masterDataEmailField:a,masterDataNameField:i,lgpd:c,title:l,variant:u,borderTop:m,borderBottom:g,CONSTANTS:d,...f})=>{if(!a||!i)return null;const h=p.helpers.ValidateProp({fieldTypes:P_,property:u,fallback:"horizontal"});return n.jsx(rl,{fields:o,masterDataEmailField:a,masterDataNameField:i,variant:h,CONSTANTS:d,children:n.jsxs("div",{...f,className:p.helpers.classNameConcat(Ne["newsletter-root"],[m&&Ne["has-border-top"],g&&Ne["has-border-bottom"],e].filter(Boolean)),"data-variant":h,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(cf,{formPayloadOptionals:r,masterDataEntity:s,CONSTANTS:d})]}),n.jsx("div",{className:Ne.lgpd,children:n.jsx("p",{children:d.NEWSLETTER_CONFIGS.messages.lgpd})})]})})};lf.displayName="Newsletter";const uf=({children:e,...t})=>n.jsx("div",{...t,children:e});uf.displayName="CallToAction";const A_="_wrapper_aejhu_1",I_="_body_aejhu_8",ur={wrapper:A_,body:I_,"wrapper-body":"_wrapper-body_aejhu_16","accordion-modifier":"_accordion-modifier_aejhu_32"},N_=({children:e,className:t,...r})=>n.jsx("div",{...r,className:p.helpers.classNameConcat(ur.wrapper,t),children:e}),T_=({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:p.helpers.classNameConcat(ur.body),children:Array.isArray(e)&&(e==null?void 0:e.map((i,c)=>{var g;const l=r===i.id,u=i.buttonHref&&i.buttonHref!=="#",m=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(p.Button,{variant:"tertiary",mode:i.buttonMode??"default",size:i.buttonSize??"medium",iconNameStart:t[i.buttonIcon]??i.buttonIcon,...m,style:{marginTop:16},children:i.buttonLabel}),n.jsx(p.Utils.Divider,{direction:"horizontal",size:"small",style:{height:16}})]}):n.jsxs(p.Accordion.Wrapper,{className:p.helpers.classNameConcat(ur["accordion-modifier"]),children:[n.jsx(p.Accordion.Header,{id:`${c}-${i.title}`,closeIndicator:l?n.jsx(p.Icon,{name:t.arrow_up,size:"medium"}):void 0,openIndicator:l?void 0:n.jsx(p.Icon,{name:t.arrow_down,size:"medium"}),title:"accordion-header",onClick:()=>s(i.id),children:n.jsx(p.TextStructure.Root,{children:n.jsx(p.TextStructure.DivWrapper,{children:n.jsx("h2",{className:"typography-style-body-sm",children:i.title})})})}),n.jsx(p.Accordion.Body,{title:"accordion-body",children:n.jsx(p.TextStructure.Root,{children:l&&n.jsxs(p.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(Ke,{href:i.buttonHref??"#",mode:i.buttonMode??"default",size:i.buttonSize??"medium",adornments:(g=i.buttonIcon)!=null&&g.length?{end:n.jsx(p.Icon,{name:t[i.buttonIcon]??i.buttonIcon})}:void 0,children:i.buttonLabel}):n.jsx(n.Fragment,{})]})})})]})},i.id)}))})},k_=({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?(console.log("HelpButton contentData",i.content),n.jsxs(N_,{...o,className:e,children:[n.jsx("div",{className:ur["wrapper-body"],hidden:!s,children:s&&n.jsx(T_,{data:i.content,ICONS:r})}),n.jsx(uf,{children:n.jsx("div",{onClick:l,children:s?n.jsx(p.Button,{iconNameEnd:r.close,size:(i==null?void 0:i.helpButtonSize)??"x-large"}):n.jsx(p.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,{})},O_={teamComponents:{AddToCart:Yo,BackToTop:cm,HelpButton:k_,BuyPackage:Qm,Filter:{...Xe,helpers:Yu},...jy,FreightCalculation:Fu,Header:Bu,Link:Ke,Media:ze,PLPNavigation:yt,ProductCard:be,ProductList:ig,ProductVariationList:Ve,Sort:ns,UserMenu:rs,Newsletter:lf},template:{pdp:l_,minicart:Le},utils:{EventCollector:u_,ExternalScripts:j_,LinkOrNotLink:Lt,ObserverWrapper:_r,SnackBarComponent:Et,DraftJsLinkWrapper:tf}},M_=(e,t)=>{const r=e.map(s=>`'${s.source}'`).join(`,
40
+ */const c=i(357),l=(C,R,k)=>{if(c(C)===!1)throw new TypeError("toRegexRange: expected the first argument to be a number");if(R===void 0||C===R)return String(C);if(c(R)===!1)throw new TypeError("toRegexRange: expected the second argument to be a number.");let P={relaxZeros:!0,...k};typeof P.strictZeros=="boolean"&&(P.relaxZeros=P.strictZeros===!1);let N=String(P.relaxZeros),I=String(P.shorthand),z=String(P.capture),T=String(P.wrap),H=C+":"+R+"="+N+I+z+T;if(l.cache.hasOwnProperty(H))return l.cache[H].result;let W=Math.min(C,R),q=Math.max(C,R);if(Math.abs(W-q)===1){let A=C+"|"+R;return P.capture?`(${A})`:P.wrap===!1?A:`(?:${A})`}let K=w(C)||w(R),V={min:C,max:R,a:W,b:q},B=[],J=[];if(K&&(V.isPadded=K,V.maxLen=String(V.max).length),W<0){let A=q<0?Math.abs(q):1;J=d(A,Math.abs(W),V,P),W=V.a=0}return q>=0&&(B=d(W,q,V,P)),V.negatives=J,V.positives=B,V.result=u(J,B),P.capture===!0?V.result=`(${V.result})`:P.wrap!==!1&&B.length+J.length>1&&(V.result=`(?:${V.result})`),l.cache[H]=V,V.result};function u(C,R,k){let P=f(C,R,"-",!1)||[],N=f(R,C,"",!1)||[],I=f(C,R,"-?",!0)||[];return P.concat(I).concat(N).join("|")}function p(C,R){let k=1,P=1,N=b(C,k),I=new Set([R]);for(;C<=N&&N<=R;)I.add(N),k+=1,N=b(C,k);for(N=S(R+1,P)-1;C<N&&N<=R;)I.add(N),P+=1,N=S(R+1,P)-1;return I=[...I],I.sort(_),I}function h(C,R,k){if(C===R)return{pattern:C,count:[],digits:0};let P=g(C,R),N=P.length,I="",z=0;for(let T=0;T<N;T++){let[H,W]=P[T];H===W?I+=H:H!=="0"||W!=="9"?I+=j(H,W):z++}return z&&(I+=k.shorthand===!0?"\\d":"[0-9]"),{pattern:I,count:[z],digits:N}}function d(C,R,k,P){let N=p(C,R),I=[],z=C,T;for(let H=0;H<N.length;H++){let W=N[H],q=h(String(z),String(W),P),K="";if(!k.isPadded&&T&&T.pattern===q.pattern){T.count.length>1&&T.count.pop(),T.count.push(q.count[0]),T.string=T.pattern+v(T.count),z=W+1;continue}k.isPadded&&(K=E(W,k,P)),q.string=K+q.pattern+v(q.count),I.push(q),z=W+1,T=q}return I}function f(C,R,k,P,N){let I=[];for(let z of C){let{string:T}=z;!P&&!y(R,"string",T)&&I.push(k+T),P&&y(R,"string",T)&&I.push(k+T)}return I}function g(C,R){let k=[];for(let P=0;P<C.length;P++)k.push([C[P],R[P]]);return k}function _(C,R){return C>R?1:R>C?-1:0}function y(C,R,k){return C.some(P=>P[R]===k)}function b(C,R){return Number(String(C).slice(0,-R)+"9".repeat(R))}function S(C,R){return C-C%Math.pow(10,R)}function v(C){let[R=0,k=""]=C;return k||R>1?`{${R+(k?","+k:"")}}`:""}function j(C,R,k){return`[${C}${R-C===1?"":"-"}${R}]`}function w(C){return/^-?(0+)\d/.test(C)}function E(C,R,k){if(!R.isPadded)return C;let P=Math.abs(R.maxLen-String(C).length),N=k.relaxZeros!==!1;switch(P){case 0:return"";case 1:return N?"0?":"0";case 2:return N?"0{0,2}":"00";default:return N?`0{0,${P}}`:`0{${P}}`}}l.cache={},l.clearCache=()=>l.cache={},s.exports=l},17:s=>{s.exports=Dg},837:s=>{s.exports=vy()}},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);cn.exports=o})()),cn.exports}var ha;function by(){return ha||(ha=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=xy();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))}}(an)),an}var ga;function Dd(){return ga||(ga=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}=by();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}(sn)),sn}(function(e,t){"use client";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"Image",{enumerable:!0,get:function(){return S}});const r=Oe,s=yt._(x),a=r._(Ta),i=r._(Mg()),c=ls,l=br,u=Lg(),p=$t,h=Tl(),d=r._(Dd()),f=process.env.__NEXT_IMAGE_OPTS;typeof window>"u"&&(globalThis.__NEXT_IMAGE_IMPORTED=!0);function g(v,j,w,E,C,R){const k=v==null?void 0:v.src;if(!v||v["data-loaded-src"]===k)return;v["data-loaded-src"]=k,("decode"in v?v.decode():Promise.resolve()).catch(()=>{}).then(()=>{if(!(!v.parentElement||!v.isConnected)){if(j!=="empty"&&C(!0),w!=null&&w.current){const N=new Event("load");Object.defineProperty(N,"target",{writable:!1,value:v});let I=!1,z=!1;w.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(k,"http://n").searchParams.get("url")||k;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:T}=window.getComputedStyle(v.parentElement),H=["absolute","fixed","relative"];H.includes(T)||(0,p.warnOnce)('Image with src "'+N+'" has "fill" and parent element with invalid "position". Provided "'+T+'" should be one of '+H.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,w]=s.version.split("."),E=parseInt(j,10),C=parseInt(w,10);return E>18||E===18&&C>=3?{fetchPriority:v}:{fetchpriority:v}}const y=(0,s.forwardRef)((v,j)=>{let{src:w,srcSet:E,sizes:C,height:R,width:k,decoding:P,className:N,style:I,fetchPriority:z,placeholder:T,loading:H,unoptimized:W,fill:q,onLoadRef:K,onLoadingCompleteRef:V,setBlurComplete:B,setShowAltText:J,onLoad:A,onError:O,...D}=v;return s.default.createElement("img",{...D,..._(z),loading:H,width:k,height:R,decoding:P,"data-nimg":q?"fill":"1",className:N,style:I,sizes:C,srcSet:E,src:w,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"&&(w||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,T,K,V,B,W))},[w,T,K,V,B,O,W,j]),onLoad:X=>{const ne=X.currentTarget;g(ne,T,K,V,B,W)},onError:X=>{J(!0),T!=="empty"&&B(!0),O&&O(X)}})});function b(v){let{isAppRouter:j,imgAttributes:w}=v;const E={as:"image",imageSrcSet:w.srcSet,imageSizes:w.sizes,crossOrigin:w.crossOrigin,referrerPolicy:w.referrerPolicy,..._(w.fetchPriority)};return j&&a.default.preload?(a.default.preload(w.src,E),null):s.default.createElement(i.default,null,s.default.createElement("link",{key:"__nimg-"+w.src+w.srcSet+w.sizes,rel:"preload",href:w.srcSet?void 0:w.src,...E}))}const S=(0,s.forwardRef)((v,j)=>{const E=!(0,s.useContext)(h.RouterContext),C=(0,s.useContext)(u.ImageConfigContext),R=(0,s.useMemo)(()=>{const V=f||C||l.imageConfigDefault,B=[...V.deviceSizes,...V.imageSizes].sort((A,O)=>A-O),J=V.deviceSizes.sort((A,O)=>A-O);return{...V,allSizes:B,deviceSizes:J}},[C]),{onLoad:k,onLoadingComplete:P}=v,N=(0,s.useRef)(k);(0,s.useEffect)(()=>{N.current=k},[k]);const I=(0,s.useRef)(P);(0,s.useEffect)(()=>{I.current=P},[P]);const[z,T]=(0,s.useState)(!1),[H,W]=(0,s.useState)(!1),{props:q,meta:K}=(0,c.getImgProps)(v,{defaultLoader:d.default,imgConf:R,blurComplete:z,showAltText:H});return s.default.createElement(s.default.Fragment,null,s.default.createElement(y,{...q,unoptimized:K.unoptimized,placeholder:K.placeholder,fill:K.fill,onLoadRef:N,onLoadingCompleteRef:I,setBlurComplete:T,setShowAltText:W,ref:j}),K.priority?s.default.createElement(b,{isAppRouter:E,imgAttributes:q}):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)})(Po,Po.exports);var jy=Po.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=Oe,o=ls,s=$t,a=jy,i=r._(Dd()),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})(wd);var Cy=wd;const ur=gr(Cy),Sy=({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(ur,{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(ur,{alt:o,src:`/assets/${o}.svg`,width:20,height:20}):n.jsx(m.Icon,{size:"small",name:o})]})},wy=({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(Sy,{item:s,CONSTANTS:t},`footer-support-item-${a}`))})]},`footer-support-${o}`))}),Py=({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})]})}),Ey=({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})})})]}),lo=e=>{const{isMobile:t}=fe();return t?n.jsx(Ey,{...e}):n.jsx(Py,{...e})},sr=({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:S}=le(),{nextimage:v}=be();switch(e){case"menu":b=n.jsx(Me,{className:ye.footer__itemLink,href:l??"#",prefetch:!1,children:n.jsx("span",{onClick:()=>{S({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,w)=>n.jsx(v,{alt:j,src:`/assets/${j}.svg`,width:c??20,height:c??20},w))})]})]});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,w)=>n.jsx(Me,{prefetch:!1,href:j.link??"#",target:"_blank",children:n.jsx(m.Icon,{size:"medium",name:j.icon,onClick:()=>S({content:`footer:redes-sociais:${j.icon}`})})},w))})});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})})},Ry=({className:e,text:t,...r})=>n.jsx("div",{...r,className:m.helpers.classNameConcat(ye.footer__legalInformation,e),children:n.jsx("span",{children:t})}),$d=()=>{const{nextimage:e}=be();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})})};$d.displayName="Footer.Stamps";const zd=({children:e,legalTextSlot:t,adornment:r,className:o,...s})=>{const{isMobile:a}=fe(),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})]})};zd.displayName="Footer.Wrapper";const Bd=({data:{links:{links:e}},payments:t,socialInfo:r,socialMedias:o,adornment:s,LEGAL_INFORMATION_TEXT:a,ICONS:i})=>{var c;return n.jsxs(zd,{adornment:s,legalTextSlot:n.jsx(Ry,{text:a}),children:[Array.isArray(e.column)&&e.column.map((l,u)=>n.jsx(lo,{id:`${u}column-menu`,name:l.name,nameIcon:l.nameIcon,ICONS:i,children:l.items.map((p,h)=>n.jsx(sr,{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(lo,{id:"payment-column",name:t==null?void 0:t.title,nameIcon:t==null?void 0:t.titleIcon,maxWidth:150,ICONS:i,children:n.jsx(sr,{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(lo,{id:"social-media-column",name:r==null?void 0:r.title,ICONS:i,children:[r!=null&&r.subTitle?n.jsx(sr,{children:r==null?void 0:r.subTitle}):null,n.jsx(sr,{type:"social-media",iconSize:24,iconLink:o}),n.jsx($d,{})]})]})};Bd.displayName="Footer";const Ay=Object.freeze(Object.defineProperty({__proto__:null,Footer:Bd,FooterSupport:wy},Symbol.toStringTag,{value:"Module"})),Iy=()=>{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})})})},Sr=({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})})})]})};Sr.displayName="PDP.PDPHeader";const ms=({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]})})},Eo=({onAddCallBack:e,onDisabledClickCallBack:t,addToCartBtnSize:r,BUY_BUTTON_LABELS:o})=>{const s=Ot(),{productId:a,productData:i,price:c,listPrice:l,thumbImage:u,isKit:p}=De(),{isMobile:h}=fe(),{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}`})},Ny=({addToCartBtnSize:e,BUY_BUTTON_LABELS:t})=>{const{isMobile:r}=fe(),o=Ot(),{sizesContainerRef:s}=La(),{structureRef:a}=je();return o.sku&&o.available?n.jsx(Eo,{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})},Ty=({addToCartBtnSize:e,BUY_BUTTON_LABELS:t,Z_INDEX_WAR:r})=>{const{isMobile:o}=fe();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(Sr,{}),n.jsx(ms,{layout:"name-vertical"})]}),n.jsx(Ny,{addToCartBtnSize:e,BUY_BUTTON_LABELS:t})]}):null},ky=({children:e,setShowBottomNavigation:t})=>{const r=x.useRef(null),o=Lo(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})},Oy=({ICONS:e})=>{const{isMobile:t}=fe(),{price:r,listPrice:o,productData:s,productId:a}=De(),{sendDataLayerEvent:i}=le(),c=Uo(),{toggleProduct:l}=Wo();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}}})}})},Fd=({showWishlist:e=!0,callBack:t,addToCartBtnSize:r,BUY_BUTTON_LABELS:o,ICONS:s,Z_INDEX_WAR:a})=>{const{isMobile:i}=fe(),[c,l]=x.useState(!0);return n.jsxs(n.Fragment,{children:[n.jsxs("div",{className:U.styles.actions,children:[i?n.jsx(ky,{setShowBottomNavigation:l,children:n.jsx(Eo,{onAddCallBack:t,addToCartBtnSize:r,BUY_BUTTON_LABELS:o})}):n.jsx(Eo,{onAddCallBack:t,addToCartBtnSize:r,BUY_BUTTON_LABELS:o}),e&&n.jsx(Oy,{ICONS:s})]}),i&&c&&n.jsx(Ty,{addToCartBtnSize:r,BUY_BUTTON_LABELS:o,Z_INDEX_WAR:a})]})},qd=({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")]})})};qd.displayName="PDP.BreadCrumb";const Hd=({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,{})};Hd.displayName="PDPCredits";const My=()=>{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)]})]})},Ly=({CURRENCY:e,DELIVERY_INFO_BOXES_ALLOWED:t,FREIGHT_CALCULATION:r,Z_INDEX_WAR:o})=>{const s=Ot(),{isMobile:a}=fe();return n.jsxs(n.Fragment,{children:[a?n.jsx(m.Utils.Divider,{direction:"horizontal",size:"small"}):null,n.jsx(Gu,{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]})},ya=({image:e,index:t,handleZoom:r,PRODUCT_IMAGE_DIMENSIONS:o})=>{const s=U.resizingImg(e.imageUrl,o.pdp),{nextimage:a}=be();return n.jsx(a,{src:s,alt:e.imageLabel,objectFit:"contain",...o.pdp,...t<=1&&{priority:!0,loading:"eager"},onClick:()=>{r(t)}},t)},Dy=({video:e,productName:t,poster:r})=>{const{sendDataLayerEvent:o}=le(),s=x.useRef(!1);return n.jsx($e.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})},Ud=({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(ya,{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(Dy,{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(ya,{image:h,index:d,handleZoom:r,PRODUCT_IMAGE_DIMENSIONS:s})},`PDP_gallery_${d}`))]})]})};Ud.displayName="PDP.Carousel";const $y="_thumbs_1fbzz_65",zy="_selected_1fbzz_93",By="_carousel_1fbzz_162",Fy="_bullets_1fbzz_199",we={"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:$y,selected:zy,"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:By,"carousel-controller":"_carousel-controller_1fbzz_167","arrow-left":"_arrow-left_1fbzz_177","arrow-right":"_arrow-right_1fbzz_178",bullets:Fy,"zoom-popup":"_zoom-popup_1fbzz_210","image-zoom--mobile":"_image-zoom--mobile_1fbzz_250","image-zoom--image--img":"_image-zoom--image--img_1fbzz_280"},_a=({onClose:e,ICONS:t})=>n.jsx("div",{className:`${we["button-close-container"]}`,children:n.jsx(m.Button,{iconNameStart:t.close,iconSize:"medium",className:`${we["button-close"]}`,variant:"tertiary",state:"default",size:"medium",onClick:e,style:{textDecoration:"none"}})}),qy=({children:e,Z_INDEX_WAR:t,...r})=>n.jsx("div",{...r,className:we["image-zoom-wrapper-desktop"],style:{zIndex:t.pdp_image_zoom},children:e}),Wd=({images:e,setCurrent:t,setFirstImgLoaded:r,ICONS:o,PRODUCT_IMAGE_DIMENSIONS:s})=>{const{nextimage:a}=be();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:we.carousel,children:[n.jsxs(m.Carousel.Controller,{className:we["carousel-controller"],children:[n.jsx(m.Button,{variant:"tertiary",onClick:()=>u==null?void 0:u.prevPage(),className:we["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:we["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:we.imageMobile,src:g.imageUrl,alt:g.imageText,quality:100,..._===0&&{onLoad:f}})},_))}),n.jsx(m.Carousel.Bullets,{className:we.bullets,page:p.currentPage,total:p.totalPages,onBulletClick:d})]})};Wd.displayName="ImageZoom.Mobile.Carousel";const Vd=({imgRef:e,image:t,PRODUCT_IMAGE_DIMENSIONS:r})=>{Ua();const{nextimage:o}=be();return n.jsx("div",{className:we["image-zoom--image"],ref:e,children:n.jsx(o,{...r.image_zoom.mobile,alt:t.imageText,className:we["image-zoom--image--img"],quality:100,src:t.imageUrl})})};Vd.displayName="ImageZoom.ImageZoom";const Gd=({loaded:e=!1})=>n.jsx("div",{className:we["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"})]})});Gd.displayName="ImageZoom.ZoomPopup";const Kd=({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}=Wa({defaultScale:1,maxScale:3});return n.jsxs("div",{...o,className:we["image-mobile"],"data-disable-carrousel-pan":p>1,children:[n.jsx(Gd,{loaded:s}),n.jsx(Wd,{images:e,setCurrent:c,setFirstImgLoaded:a,ICONS:t,PRODUCT_IMAGE_DIMENSIONS:r}),n.jsx("div",{className:we["image-zoom--mobile"],ref:l,children:n.jsx(Vd,{imgRef:u,image:e[i],PRODUCT_IMAGE_DIMENSIONS:r})})]})};Kd.displayName="ImageZoom.ImageMobile";const Hy=({children:e,Z_INDEX_WAR:t,...r})=>n.jsx("div",{...r,className:we["image-zoom-wrapper-mobile"],style:{zIndex:t.pdp_image_zoom},children:e}),Uy="_modal_1u87b_1",Ge={modal:Uy,"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 Wy({headerTitle:e,isMobile:t,ICONS:r}){return n.jsx(m.Modal.Header,{navigation:"top",className:Ge["modal-header"],children:n.jsxs(m.Modal.Controls,{navigation:"top",isMobile:t,children:[n.jsx("div",{className:Ge["modal-header__title"],children:n.jsx(m.Modal.Title,{navigation:"top",className:Ge["quick-shop__title"],title:e})}),n.jsx(m.Button,{className:Ge["modal-header__close-button"],"data-close":!0,iconNameStart:r.close,size:"small",variant:"tertiary"})]})})}const Vy=({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")}):[],Xd=({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})]});Xd.displayName="Notify.Controls";const Ue={"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"},Qd=({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}=Lt(),d=h!=null&&h.firstName?`${h==null?void 0:h.firstName} ${h==null?void 0:h.lastName}`:"";return n.jsx("div",{className:Ue["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})]})})};Qd.displayName="Notify.Form";const Yd=({isLoading:e=!1})=>n.jsx("div",{className:Ue["notify--loading"],"data-loading":e,children:n.jsx(m.Spinner,{})});Yd.displayName="Notify.Loading";const Gy=(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])},Zd=({children:e,label:t="",skus:r,sku:o,setSku:s})=>n.jsxs(n.Fragment,{children:[n.jsx("div",{className:Ue["notify--selector--header"],children:e}),n.jsxs(Ve.Root,{className:Ue["notify--selector"],children:[n.jsx(Ve.Title,{title:t}),n.jsx(Ve.List,{children:Array.isArray(r)&&r.map((a,i)=>{const c=Gy(o,a);return n.jsx(Ve.Option,{active:c,onClick:()=>s(c?null:a),text:String(a.size),type:"size"},i)})})]})]});Zd.displayName="Notify.Selector";const va=({type:e,icon:t,title:r,subtitle:o})=>n.jsx("div",{className:Ue[`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})]})})}),Jd=({status:e,ICONS:t,PRODUCT_CARD_TEXTS:r})=>n.jsxs("div",{className:Ue["notify--status"],"data-status":e,children:[n.jsx(va,{...r.success,icon:t.check_circle,type:"success"}),n.jsx(va,{...r.error,icon:t.alert_circle,type:"error"})]});Jd.displayName="Notify.Status";const ef=({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:_}=fe();return n.jsxs(m.Modal.Root,{isMobile:_??!1,isOpen:t,setIsOpen:r,variant:_?"sideBottom":"sideLeft",style:{zIndex:p.modal},className:Ue["modal-modifier"],children:[n.jsx(m.Modal.Header,{navigation:"top",className:Ue["notify--header-modifier"],children:n.jsx(Xd,{isMobile:_??!1,ICONS:i,NOTIFY_INFO:l})}),n.jsxs(m.Modal.Body,{className:Ue["notify--modal--body"],children:[n.jsxs("div",{className:Ue["notify--container"],children:[n.jsxs(Zd,{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(Qd,{delay:4e3,sku:s,setStatus:g,setIsLoading:d,color:e,NEWSLETTER_CONFIGS:c,NOTIFY_INFO:l}),n.jsx(Yd,{isLoading:h}),n.jsx("div",{className:Ue["notify--selector--header"],children:n.jsx("span",{children:l.legal})})]}),n.jsx(Jd,{status:f,ICONS:i,PRODUCT_CARD_TEXTS:u})]})]})};ef.displayName="Notify";const tf=({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?Vy({items:c,getLabel:j=>j.value,PLP_SIZE_ORDER:t}):[],[c]),{sizesContainerRef:h}=La(),{isMobile:d}=fe(),f=Ot(),g=Cc(),{setValue:_}=xc(),{setValue:y}=qo(),b=x.useRef({}),[S,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(ef,{open:g,setVisible:y,sku:S,setSku:v,skus:Object.values(b.current),ICONS:r,NEWSLETTER_CONFIGS:o,NOTIFY_INFO:s,PRODUCT_CARD_TEXTS:a,Z_INDEX_WAR:i})]})},Et=({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}),rf=({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})},Ky=({children:e,link:t,TOGGLE_STYLE_MODIFIER:r})=>{const{isMobile:o}=fe(),{router:s}=be(),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})},nf=({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(Ky,{link:a.slug?a.slug:null,TOGGLE_STYLE_MODIFIER:r,children:[n.jsx(m.ToggleStyle.DisabledAdornment,{}),n.jsx(m.ToggleStyle.Texture,{children:n.jsx($e.Image,{alt:a.textureAlt,src:a.textureImage,height:34,width:34,style:{borderRadius:0,height:"100%"}})})]},`similars-item-${i}`):null)})},of=({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(nf,{productId:r,similars:o,TOGGLE_STYLE_MODIFIER:t})]})};of.displayName="PDP.Info.Similars";const Xy=({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:Ge["modal-product-body"],children:n.jsxs(rf,{className:Ge["pdp-main__info-modifier"],children:[n.jsxs(Et,{type:"product-info",children:[n.jsx(Sr,{}),n.jsx(ms,{})]}),n.jsx(Et,{type:"similars",children:n.jsx(of,{TEXTURE_IMAGE:l,TOGGLE_STYLE_MODIFIER:u})}),n.jsx(Et,{type:"sizes",children:n.jsx(tf,{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(Et,{type:"actions",children:n.jsx(Fd,{showWishlist:!1,callBack:e,addToCartBtnSize:{mobile:"medium",desktop:"large"},BUY_BUTTON_LABELS:t,ICONS:r,Z_INDEX_WAR:p})})]})});function Qy({callBackProductAdded:e,QUICKSHOP:t,ICONS:r,...o}){const[s,a]=x.useState(!1),i=()=>a(c=>!c);return n.jsxs("div",{className:Ge["quick-shop"],children:[n.jsx(m.Button,{onClick:i,size:"x-large",className:Ge["shop-bag"],iconNameStart:r.bag,iconSize:"medium"}),n.jsxs(m.Modal.Root,{isOpen:s,setIsOpen:a,className:`${Ge.modal} ${Ge["quick-shop__modal"]}`,style:{position:"fixed",height:"100svh",width:"100%",top:0,zIndex:1e3,bottom:"unset",overflowY:"hidden"},variant:"sideRight",children:[n.jsx(Wy,{headerTitle:t.title,ICONS:r}),n.jsx(Xy,{callBackProductAdded:e,ICONS:r,...o})]})]})}const Yy=({image:e})=>n.jsx(ur,{src:U.resizingImg(e.imageUrl,{width:50,height:75})||"",alt:e.imageText,className:we.mainImage,layout:"fill",objectFit:"cover",priority:!0,quality:10,style:{position:"absolute",inset:0,filter:"blur(10px)"}}),Zy=({images:e,selectedImageIndex:t,PRODUCT_IMAGE_DIMENSIONS:r,...o})=>{const[s,a]=x.useState(!1),{nextimage:i}=be();return n.jsx("div",{...o,className:we["main-image-container"],children:n.jsxs("div",{className:we["image-desktop"],children:[!s&&n.jsx(Yy,{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:we.mainImage,layout:"fill",objectFit:"cover",priority:!0,quality:100,onLoad:()=>{a(!0)}})]})})},Jy=({images:e,onThumbnailClick:t,selectedImageIndex:r})=>{const{nextimage:o}=be();return n.jsx("div",{className:we.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?we.selected:"",children:n.jsx(o,{src:s.imageUrl,alt:s.imageText,layout:"responsive",width:100,height:100,objectFit:"cover",priority:!1})},a))})},sf=({images:e,initialSelectedImageIndex:t=0,setShowImageZoom:r,ICONS:o,PRODUCT_IMAGE_DIMENSIONS:s,Z_INDEX_WAR:a,...i})=>{const{isMobile:c}=fe(),[l,u]=x.useState(t),p=h=>{u(h)};return c?n.jsxs(Hy,{Z_INDEX_WAR:a,children:[n.jsx(_a,{onClose:()=>r({show:!1,initialIndex:0}),ICONS:o}),n.jsx(Kd,{images:e,ICONS:o,PRODUCT_IMAGE_DIMENSIONS:s})]}):n.jsxs(qy,{Z_INDEX_WAR:a,children:[n.jsx(_a,{onClose:()=>r({show:!1,initialIndex:0}),ICONS:o}),n.jsx(Zy,{images:e,selectedImageIndex:l,onThumbnailClick:p,PRODUCT_IMAGE_DIMENSIONS:s},e[l].imageId??`${e[l].imageText}-${l}`),n.jsx(Jy,{images:e,selectedImageIndex:l,onThumbnailClick:p}),n.jsx(Qy,{callBackProductAdded:()=>{r({initialIndex:0,show:!1})},ICONS:o,Z_INDEX_WAR:a,...i})]})};sf.displayName="ImageZoom";const e_=({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(Ud,{images:e,video:o,handleZoom:c,productName:s,PRODUCT_IMAGE_DIMENSIONS:t}),a.show&&n.jsx(sf,{images:e,initialSelectedImageIndex:a.initialIndex,setShowImageZoom:i,PRODUCT_IMAGE_DIMENSIONS:t,...r})]})},af=({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(e_,{productImgs:s,TEXTURE_IMAGE:e,PRODUCT_IMAGE_DIMENSIONS:t,...r})};af.displayName="PDP.Gallery";const t_=({className:e,hasIcons:t=!0,ICONS:r,PDP_INFO:o})=>{const{allSizesAvailable:s,productId:a}=De(),{setValue:i}=qo(),{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})]})})},r_=({children:e})=>n.jsx("div",{className:U.styles["pdp-main__info-main-content"],children:e}),n_=({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}`))})}),o_=({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}`))}),s_="_tableContainer_1yxy2_1",i_={tableContainer:s_},a_=({children:e,className:t=""})=>n.jsx("table",{className:`${i_.tableContainer} ${t}`,children:e}),uo={Head:n_,Rows:o_,Root:a_},c_=({title:e,text:t})=>n.jsxs("p",{className:U.styles.measurementRowsText,children:[n.jsx("h1",{className:U.styles.measurementRowsTitle,children:e}),t]}),l_=({ICONS:e,SIZES:t,Z_INDEX_WAR:r})=>{const o=Pc(),{setValue:s}=Ec();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(ur,{width:264,height:402,alt:"",className:U.styles.measurementImage,src:t.bannerImage})}),n.jsxs(uo.Root,{className:U.styles.measurementTable,children:[n.jsx(uo.Head,{className:U.styles.measurementHead,head:t.head}),n.jsx(uo.Rows,{className:U.styles.measurementRows,rows:t.rows.map((a,i)=>[n.jsx(c_,{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")},u_=({children:e,className:t,...r})=>n.jsx("div",{className:m.helpers.classNameConcat(U.styles["pdp-main__gallery-wrapper"],t),...r,children:e}),d_=({children:e,className:t,...r})=>n.jsx("div",{className:m.helpers.classNameConcat(U.styles.pdp,t),...r,children:e}),f_=({children:e,className:t,...r})=>n.jsx("div",{className:m.helpers.classNameConcat(U.styles["pdp-main"],t),...r,children:e}),p_=({children:e,className:t,...r})=>n.jsx("div",{className:m.helpers.classNameConcat(U.styles["pdp-main__info-secondary-content"],t),...r,children:e}),m_={gallery:u_,pdp:d_,main:f_,secondary:p_},h_=({className:e,...t})=>n.jsx(m.Utils.Divider,{...t,className:m.helpers.classNameConcat(U.styles.divider,e)}),g_=Object.freeze(Object.defineProperty({__proto__:null,AccessibilityInfo:Iy,Actions:Fd,BreadCrumb:qd,Credits:Hd,DescriptionsTabs:My,Divider:h_,Freight:Ly,Gallery:af,Header:Sr,Links:t_,MainContent:r_,MainInfo:rf,Price:ms,ProductMeasurements:l_,SimilarsItems:nf,Sizes:tf,SubSectionWrapper:Et,containers:m_},Symbol.toStringTag,{value:"Module"})),y_=({page:e,data:t})=>{const{pathname:r}=be(),o=x.useRef(null),{sendDataLayerEvent:s,currentLocalRef:a,itemListRef:i,promotionEventRef:c}=le();return x.useEffect(()=>{const l=Qc("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}}}),Xo("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}=Fa(),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 Ro={exports:{}};function __(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 fo={},po={},xa;function v_(){return xa||(xa=1,function(e){"use client";Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"LoadableContext",{enumerable:!0,get:function(){return o}});const o=Oe._(x).default.createContext(null);process.env.NODE_ENV!=="production"&&(o.displayName="LoadableContext")}(po)),po}var ba;function x_(){return ba||(ba=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return f}});const r=Oe._(x),o=v_();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 S(){if(!b){const w=new p(g,y);b={getCurrentValue:w.getCurrentValue.bind(w),subscribe:w.subscribe.bind(w),retry:w.retry.bind(w),promise:w.promise.bind(w)}}return b.promise()}if(typeof window>"u"&&a.push(S),!c&&typeof window<"u"){const w=y.webpack&&typeof __.resolveWeak=="function"?y.webpack():y.modules;w&&i.push(E=>{for(const C of w)if(E.includes(C))return S()})}function v(){S();const w=r.default.useContext(o.LoadableContext);w&&Array.isArray(y.modules)&&y.modules.forEach(E=>{w(E)})}function j(w,E){v();const C=r.default.useSyncExternalStore(b.subscribe,b.getCurrentValue,b.getCurrentValue);return r.default.useImperativeHandle(E,()=>({retry:b.retry}),[]),r.default.useMemo(()=>C.loading||C.error?r.default.createElement(y.loading,{isLoading:C.loading,pastDelay:C.pastDelay,timedOut:C.timedOut,error:C.error,retry:b.retry}):C.loaded?r.default.createElement(s(C.loaded),w):null,[w,C])}return j.preload=()=>S(),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}(fo)),fo}(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=Oe,s=o._(x),a=o._(x_()),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:S,pastDelay:v}=y;if(!v)return null;if(process.env.NODE_ENV!=="production"){if(S)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)})(Ro,Ro.exports);var b_=Ro.exports,j_=b_;const C_=gr(j_);var Ao={exports:{}},ir={exports:{}},ja;function S_(){return ja||(ja=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 S=d[y];if(a(S,_))return d.splice(y,1),!1}return!0});d.forEach(_=>{var y;const b=_.previousSibling;if(b&&b.getAttribute("name")==="next-head"){var S;(S=_.parentNode)==null||S.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,S=f.length;b<S;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)}(ir,ir.exports)),ir.exports}(function(e,t){"use client";Object.defineProperty(t,"__esModule",{value:!0});function r(w,E){for(var C in E)Object.defineProperty(w,C,{enumerable:!0,get:E[C]})}r(t,{handleClientScriptLoad:function(){return _},initScriptLoader:function(){return S},default:function(){return j}});const o=Oe,s=yt,a=o._(Ta),i=s._(x),c=Ed(),l=S_(),u=kl(),p=new Map,h=new Set,d=["onLoad","onReady","dangerouslySetInnerHTML","children","onError","strategy","stylesheets"],f=w=>{if(a.default.preinit){w.forEach(E=>{a.default.preinit(E,{as:"style"})});return}if(typeof window<"u"){let E=document.head;w.forEach(C=>{let R=document.createElement("link");R.type="text/css",R.rel="stylesheet",R.href=C,E.appendChild(R)})}},g=w=>{const{src:E,id:C,onLoad:R=()=>{},onReady:k=null,dangerouslySetInnerHTML:P,children:N="",strategy:I="afterInteractive",onError:z,stylesheets:T}=w,H=C||E;if(H&&h.has(H))return;if(p.has(E)){h.add(H),p.get(E).then(R,z);return}const W=()=>{k&&k(),h.add(H)},q=document.createElement("script"),K=new Promise((V,B)=>{q.addEventListener("load",function(J){V(),R&&R.call(this,J),W()}),q.addEventListener("error",function(J){B(J)})}).catch(function(V){z&&z(V)});P?(q.innerHTML=P.__html||"",W()):N?(q.textContent=typeof N=="string"?N:Array.isArray(N)?N.join(""):"",W()):E&&(q.src=E,p.set(E,K));for(const[V,B]of Object.entries(w)){if(B===void 0||d.includes(V))continue;const J=l.DOMAttributeNames[V]||V.toLowerCase();q.setAttribute(J,B)}I==="worker"&&q.setAttribute("type","text/partytown"),q.setAttribute("data-nscript",I),T&&f(T),document.body.appendChild(q)};function _(w){const{strategy:E="afterInteractive"}=w;E==="lazyOnload"?window.addEventListener("load",()=>{(0,u.requestIdleCallback)(()=>g(w))}):g(w)}function y(w){document.readyState==="complete"?(0,u.requestIdleCallback)(()=>g(w)):window.addEventListener("load",()=>{(0,u.requestIdleCallback)(()=>g(w))})}function b(){[...document.querySelectorAll('[data-nscript="beforeInteractive"]'),...document.querySelectorAll('[data-nscript="beforePageRender"]')].forEach(E=>{const C=E.id||E.getAttribute("src");h.add(C)})}function S(w){w.forEach(_),b()}function v(w){const{id:E,src:C="",onLoad:R=()=>{},onReady:k=null,strategy:P="afterInteractive",onError:N,stylesheets:I,...z}=w,{updateScripts:T,scripts:H,getIsSsr:W,appDir:q,nonce:K}=(0,i.useContext)(c.HeadManagerContext),V=(0,i.useRef)(!1);(0,i.useEffect)(()=>{const J=E||C;V.current||(k&&J&&h.has(J)&&k(),V.current=!0)},[k,E,C]);const B=(0,i.useRef)(!1);if((0,i.useEffect)(()=>{B.current||(P==="afterInteractive"?g(w):P==="lazyOnload"&&y(w),B.current=!0)},[w,P]),(P==="beforeInteractive"||P==="worker")&&(T?(H[P]=(H[P]||[]).concat([{id:E,src:C,onLoad:R,onReady:k,onError:N,...z}]),T(H)):W&&W()?h.add(E||C):W&&!W()&&g(w)),q){if(I&&I.forEach(J=>{a.default.preinit(J,{as:"style"})}),P==="beforeInteractive")return C?(a.default.preload(C,z.integrity?{as:"script",integrity:z.integrity}:{as:"script"}),i.default.createElement("script",{nonce:K,dangerouslySetInnerHTML:{__html:"(self.__next_s=self.__next_s||[]).push("+JSON.stringify([C])+")"}})):(z.dangerouslySetInnerHTML&&(z.children=z.dangerouslySetInnerHTML.__html,delete z.dangerouslySetInnerHTML),i.default.createElement("script",{nonce:K,dangerouslySetInnerHTML:{__html:"(self.__next_s=self.__next_s||[]).push("+JSON.stringify([0,{...z}])+")"}}));P==="afterInteractive"&&C&&a.default.preload(C,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)})(Ao,Ao.exports);var w_=Ao.exports,P_=w_;const cf=gr(P_),E_=({children:e,ONE_TRUST:t})=>n.jsxs(n.Fragment,{children:[n.jsx(cf,{src:"https://cdn.cookielaw.org/scripttemplates/otSDKStub.js",defer:!0,strategy:"afterInteractive","data-domain-script":t.siteId,type:"text/javascript"}),e]}),R_=C_(()=>Promise.resolve(E_),{ssr:!1}),A_={"snackbar-modifier":"_snackbar-modifier_1va2l_1"},Rt=({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(A_["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})]});Rt.displayName="SnackBar";const lf=({children:e,contentState:t,entityKey:r})=>{const{url:o}=t.getEntity(r).getData();return o?n.jsx(Me,{href:o,children:e}):e},I_="_container_1kcm0_20",N_="_lgpd_1kcm0_71",T_="_success_1kcm0_205",k_="_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:I_,"content-text":"_content-text_1kcm0_39","form-wrapper":"_form-wrapper_1kcm0_43",lgpd:N_,"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:T_,"text-structure-modifier":"_text-structure-modifier_1kcm0_210",error:k_},uf=({invalid_message:e,master_data_field:t,placeholder:r,required:o=!1,CONSTANTS:s})=>{const{isMobile:a}=fe(),{inputsStatus:i,setInputsStatus:c,setFormStatus:l,variant:u}=Qo();return n.jsx(m.TextField.Structure,{className:`${Ne["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:`${Ne["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"?Ne["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})};uf.displayName="Newsletter.Input";const df=({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})]})})});df.displayName="Newsletter.Success";const ff=({formStatus:e,fields:t,CONSTANTS:r})=>n.jsx(n.Fragment,{children:e==="success"?n.jsx(df,{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(uf,{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})})]})});ff.displayName="Newsletter.FormFields";const pf=({formStatus:e,CONSTANTS:t,...r})=>{const{isMobile:o}=fe();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"})]})};pf.displayName="Newsletter.SubmitButton";const mf=({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: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})})})})]})};mf.displayName="Newsletter.Terms";const hf=({formPayloadOptionals:e,masterDataEntity:t,CONSTANTS:r})=>{const{checkboxRef:o,fields:s,formStatus:a,hasTermsAndConditions:i,handleClickToSubmit:c,handleSubmit:l,setFormStatus:u}=Qo();return n.jsxs("form",{className:Ne["form-wrapper"],onSubmit:p=>l(p,e,t),children:[n.jsx(ff,{formStatus:a,fields:s,CONSTANTS:r}),i&&n.jsx(mf,{checkboxRef:o,formStatus:a,setFormStatus:u,CONSTANTS:r}),n.jsx(pf,{formStatus:a,type:"submit",variant:"primary",onClick:c,CONSTANTS:r})]})};hf.displayName="Newsletter.Form";const O_=["horizontal","vertical"],gf=({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:O_,property:u,fallback:"horizontal"});return n.jsx(il,{fields:o,masterDataEmailField:a,masterDataNameField:i,variant:g,CONSTANTS:d,children:n.jsxs("div",{...f,className:m.helpers.classNameConcat(Ne["newsletter-root"],[p&&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(hf,{formPayloadOptionals:r,masterDataEntity:s,CONSTANTS:d})]}),n.jsx("div",{className:Ne.lgpd,children:n.jsx("p",{children:d.NEWSLETTER_CONFIGS.messages.lgpd})})]})})};gf.displayName="Newsletter";const yf=({children:e,...t})=>n.jsx("div",{...t,children:e});yf.displayName="CallToAction";const M_="_wrapper_aejhu_1",L_="_body_aejhu_8",dr={wrapper:M_,body:L_,"wrapper-body":"_wrapper-body_aejhu_16","accordion-modifier":"_accordion-modifier_aejhu_32"},D_=({children:e,className:t,...r})=>n.jsx("div",{...r,className:m.helpers.classNameConcat(dr.wrapper,t),children:e}),$_=({data:e,ICONS:t})=>{const[r,o]=x.useState(null),s=i=>{o(c=>c===i?null:i)},{router:a}=be();return n.jsx("div",{className:m.helpers.classNameConcat(dr.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(dr["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(Ke,{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)}))})},z_=({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(D_,{...o,className:e,children:[n.jsx("div",{className:dr["wrapper-body"],hidden:!s,children:s&&n.jsx($_,{data:i.content,ICONS:r})}),n.jsx(yf,{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,{})},B_={teamComponents:{AddToCart:Zo,BackToTop:gm,HelpButton:z_,BuyPackage:Vl,Filter:{...Xe,helpers:nd},...Ay,FreightCalculation:Gu,Header:Vu,Link:Ke,Media:$e,PLPNavigation:_t,ProductCard:ve,ProductList:pg,ProductVariationList:Ve,Sort:os,UserMenu:ns,Newsletter:gf},template:{pdp:g_,minicart:Le},utils:{EventCollector:y_,ExternalScripts:R_,LinkOrNotLink:Dt,ObserverWrapper:vr,SnackBarComponent:Rt,DraftJsLinkWrapper:lf}},F_=(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
- `},L_=Object.freeze(Object.defineProperty({__proto__:null,generateMiddleware:M_},Symbol.toStringTag,{value:"Module"})),D_={helpers:L_},$_=(e,t,r)=>{e.findEntityRanges(o=>{const s=o.getEntity();return s===null?!1:r.getEntity(s).getType()==="LINK"},t)},dr=e=>{const t=new We.CompositeDecorator([{strategy:$_,component:tf}]),r=We.convertFromRaw(e);return We.EditorState.createWithContent(r,t)},z_=e=>We.convertFromRaw(e),fr=We.DefaultDraftBlockRenderMap.set("unstyled",{element:"div",aliasedElements:["div"]}),ja="superior-direita",ir="dentro-inferior-centro",B_="inferior-direita",po="dentro-inferior-esquerda",df=e=>({position:e===ir||e===po?"absolute":"default",shouldRender:[ja,ir,po].includes(e)?"top":"bottom",alignItems:[ir].includes(e)?"center":[ja,B_].includes(e)?"flex-end":"flex-start",left:e===po?"16px":e===ir?"45%":"unset"}),F_=Object.freeze(Object.defineProperty({__proto__:null,CREATE_CONTENT:dr,EXTENDED_BLOCK_RENDER_MAP:fr,GET_CONTENT_STATE:z_,controllersPositionsAdapter:df},Symbol.toStringTag,{value:"Module"})),ut=e=>({centro:"center",esquerda:"start",direita:"end"})[e],q_=({expanded:e,content:t})=>n.jsxs("details",{open:e,children:[t.textStructureReduced?n.jsx("summary",{onClick:r=>r.preventDefault(),children:n.jsx(We.Editor,{editorKey:"draft-editor-1",blockRenderMap:fr,editorState:t!=null&&t.textStructureReduced?dr(JSON.parse(t.textStructureReduced)):We.EditorState.createEmpty(),onChange:()=>null,readOnly:!0})}):n.jsx(n.Fragment,{}),t.showTextStructureExpander&&t.textStructure?n.jsx(n.Fragment,{children:n.jsx(We.Editor,{editorKey:"draft-editor-1",blockRenderMap:fr,editorState:t.textStructure?dr(JSON.parse(t.textStructure)):We.EditorState.createEmpty(),onChange:()=>null,readOnly:!0})}):n.jsx(n.Fragment,{})]}),Ao={"draftjs-text-modifier":"_draftjs-text-modifier_1itwm_2"},H_="_textContentWrapper_1bigo_5",U_="_textContentSection_1bigo_13",Io={"link-modifier":"_link-modifier_1bigo_1",textContentWrapper:H_,textContentSection:U_},ff=({data:e,ICONS:t})=>{var s;const[r,o]=x.useState(!1);return n.jsx(p.TextStructure.Root,{layoutProps:{textRow:{alignContent:ut(e.textStructureAlignment),alignItems:ut(e.textStructureAlignment)},columnWrapper:{alignContent:ut(e.textStructureAlignment),alignItems:ut(e.textStructureAlignment)}},adornment:{bottom:e.showTextStructureExpander&&e.textStructure?n.jsx(p.Button,{variant:"tertiary",adornment:{end:n.jsx(p.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(p.Utils.Column,{className:Io.textContentWrapper,style:{alignItems:ut(e.textStructureAlignment)},children:[n.jsx(p.TextStructure.DivWrapper,{style:{textAlign:ut(e.textStructureAlignment)},mode:e.textStructureMode??"default",className:Ao["draftjs-text-modifier"],children:e.textStructureReduced?n.jsx(q_,{content:e,expanded:r}):n.jsx(n.Fragment,{})}),e.textStructureButtonLabel?n.jsx(Ke,{mode:e.textStructureMode??"default",href:e.textStructureButtonHref??"#",size:e.textStructureButtonSize,className:Io["link-modifier"],adornments:(s=e.textStructureButtonIcon)!=null&&s.length&&e.enableIcon?{end:n.jsx(p.Icon,{name:e.textStructureButtonIcon})}:void 0,children:e.textStructureButtonLabel}):n.jsx(n.Fragment,{})]})})},W_=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],Ca=e=>({centro:"center",esquerda:"start",direita:"end"})[e],No=({dateEnd:e,dateInit:t,TIME_ZONE:r="America/Sao_Paulo",...o})=>{const[s,a]=x.useState(Jc(new hs.TZDate(Date.now(),r),new hs.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=St(s,"days");return i&&s>0?n.jsxs(p.Timer.Root,{...o,children:[l?n.jsxs(n.Fragment,{children:[n.jsx(p.Timer.Digit,{label:"dias",value:l}),n.jsx(p.Timer.Separator,{})]}):null,n.jsx(p.Timer.Digit,{label:"horas",value:St(s,"hours")}),n.jsx(p.Timer.Separator,{}),n.jsx(p.Timer.Digit,{label:"min",value:St(s,"minutes")}),n.jsx(p.Timer.Separator,{}),n.jsx(p.Timer.Digit,{label:"segs",value:St(s),suppressHydrationWarning:!0})]}):n.jsx(n.Fragment,{})},Sa={"content-modifier":"_content-modifier_16y4u_5","banner-image-wrapper-modifier":"_banner-image-wrapper-modifier_16y4u_13"},wa=({data:e,videoUrl:t,priority:r,videoRef:o,ICONS:s,...a})=>{const{video:i,image:c,imageHref:l,imageOpacity:u,altImage:m,backgroundColor:g,position:d,contentAlignment:f,showTimer:h,contentOrder:_,timerMode:y,timerEnd:b,timerInit:S,textStructure:v,textStructureReduced:j}=e.banner,w=(l==null?void 0:l.trim())||(c==null?void 0:c.trim())||null,{nextimage:E}=xe();return n.jsxs(p.Banner.Container,{...a,children:[n.jsxs(p.Banner.ImageWrapper,{className:Sa["banner-image-wrapper-modifier"],style:u?{background:g}:void 0,children:[i&&n.jsx(ze.Video,{videoRef:o,src:t,autoPlay:r,loop:!0,playsInline:!0,muted:!0}),w&&!(i!=null&&i.length)&&n.jsx(E,{src:w,width:"1920",height:"1080",alt:m??c??"",...r?{priority:r}:{},style:u?{opacity:"0"}:void 0}),!c&&!(i!=null&&i.length)&&n.jsx("div",{style:{background:g}})]}),h||j||v?n.jsx(p.Banner.Slot,{...W_(d??"centro"),className:Sa["content-modifier"],style:{textAlign:Ca(f)},children:n.jsxs(p.Utils.Column,{gap:"16px",alignItems:Ca(f),children:[h&&_==="timer-first"&&n.jsx(No,{mode:y??"default",size:"small",dateEnd:b?new Date(b):new Date,dateInit:S?new Date(S):new Date}),n.jsx(ff,{data:e.banner,ICONS:s}),h&&_!=="timer-first"&&n.jsx(No,{mode:y??"default",size:"small",dateEnd:b?new Date(b):new Date,dateInit:S?new Date(S):new Date})]})}):n.jsx(n.Fragment,{})]})},ms=({data:e,className:t,priority:r,creative:o,...s})=>{const{handleSelectPromotionEvent:a,currentLocalRef:i}=ue(),{banner:{promotion_name:c},index:l,componentIndex:u}=e,m=typeof l=="number"?`:${l+1}`:"",g={creative_name:o,creative_slot:`${o}-${i.current}:${u+1}${m}`,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("&"),S=b==null?void 0:b.filter(j=>j.includes("loc")||j.includes("signature")||j.includes("user_id")),v=S==null?void 0:S.join("&");return`${e.banner.video.split("?")[0]}?${v}`}return e.banner.video},[e]),h=()=>{var _;(_=d.current)!=null&&_.paused&&d.current.play()};return n.jsx(_r,{eventData:{functionKey:"readyEvents",data:{event:"view_promotion",readyData:{ecommerce:{...g,index:l}}}},observerOptions:{delay:100,...f&&{threshold:.1}},...f&&{callBackWhenVisible:h},children:e.banner.href?n.jsx(Me,{href:e.banner.href,onClick:()=>{a({updatePromotionRef:!0,promotion:g,index:l})},children:n.jsx(wa,{data:e,videoUrl:f,priority:r,videoRef:d,...s})}):n.jsx(wa,{data:e,videoUrl:f,priority:r,videoRef:d,...s})})},pf=e=>n.jsx(ms,{...e}),To={"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 V_(e,t){const{mediatorRef:r}=ge();x.useEffect(()=>r.current.subscribe(e,t),[e,t])}const Ra=({prevOnClick:e,nextOnClick:t,onBulletClick:r,currentPage:o,totalPages:s,position:a,hideControllers:i,left:c,isFirst:l,ICONS:u})=>{const[m,g]=x.useState("default");return V_("herobanner:change_controllers_variant",d=>{l&&g(d.includes("white")?"inverse":"default")}),n.jsxs(p.Carousel.Controller,{className:To["carousel-controllers-modifier"],position:a??"absolute","data-hide-controllers":i,bottom:"16px",top:"unset",left:c,children:[n.jsxs(p.Carousel.Arrows,{className:To["carrousel-arrows-display-controller"],children:[n.jsx(p.Button,{variant:"tertiary",onClick:e,adornment:{start:n.jsx(p.Icon,{name:u.arrow_left})},mode:m}),n.jsx(p.Button,{variant:"tertiary",onClick:t,adornment:{start:n.jsx(p.Icon,{name:u.arrow_right})},mode:m})]}),n.jsx(p.Carousel.Bullets,{page:o,total:s,onBulletClick:r,mode:m})]})},G_=({children:e,data:t,banner:r,...o})=>{const{mediatorRef:s}=ge();return t.data.first?n.jsx(_r,{observerOptions:{threshold:.51},stopOnIntersection:!1,callBackWhenVisible:()=>{s.current.publish("header:change_variant",r.headerVariant)},...o,children:e}):n.jsx(n.Fragment,{children:e})},K_=({data:e,ICONS:t})=>{var g;const{initialize:r,pagination:o,controller:s,itemsStyles:a}=p.Carousel.useCarousel({gap:e.data.config.gap,itemsPerPage:e.data.config.slidesPerView,direction:"row"}),i=x.useRef(void 0),c=x.useMemo(()=>df(e.data.config.controllerPosition??"dentro-inferior-centro"),[e]),l=x.useCallback(()=>{e.data.config.slideDuration&&o.totalPages>1&&(i.current=setInterval(()=>{s==null||s.nextPage()},e.data.config.slideDuration*1e3))},[s,e.data.config.slideDuration,o.totalPages]),u=x.useCallback(d=>{clearInterval(i.current),l(),d()},[l]),m=x.useMemo(()=>{var d;return{nextOnClick:()=>u(()=>s==null?void 0:s.nextPage()),prevOnClick:()=>u(()=>s==null?void 0:s.prevPage()),onBulletClick:f=>u(()=>s==null?void 0:s.navigateTo(f)),currentPage:o.currentPage,totalPages:o.totalPages,position:c.position,hideControllers:((d=e.data.config)==null?void 0:d.hideControllers)??!1,left:c.left}},[o.currentPage,o.totalPages,c.position,e.data.config.hideControllers,u,s]);return x.useEffect(()=>(l(),()=>clearInterval(i.current)),[l]),n.jsxs(p.Carousel.Root,{innerRef:d=>{r(d)},className:p.helpers.classNameConcat(To["custom-carousel"],e.data.config.fullWidth?"":"common-section"),"data-infinity-border":!0,style:{...e.data.config.marginTop!=="0px"&&{marginTop:`-${e.data.config.marginTop}`},...e.data.config.marginBottom!=="0px"&&{marginBottom:`-${e.data.config.marginBottom}`}},children:[c.shouldRender==="top"&&o.totalPages>1?n.jsx(Ra,{ICONS:t,...m,isFirst:e.data.first}):n.jsx(n.Fragment,{}),n.jsx(p.Carousel.Body,{children:(g=e==null?void 0:e.data)==null?void 0:g.banners.map((d,f)=>n.jsx(p.Carousel.Item,{style:a,children:n.jsx(G_,{data:e,banner:d,children:n.jsx(ms,{ICONS:t,suppressContentEditableWarning:!0,suppressHydrationWarning:!0,data:{banner:d,index:f,componentIndex:e.data.componentIndex},creative:"banner-carousel",...e.data.first&&f===0&&{priority:!0}})})},`hero-banner-item-${f}`))}),c.shouldRender==="bottom"&&o.totalPages>1?n.jsx(Ra,{ICONS:t,...m}):n.jsx(n.Fragment,{})]})},X_={Banner:pf},jt={"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"},Q_=({data:e,CONSTANTS:t})=>{var u;const{isMobile:r}=ge(),o=e.config.size??"medium",s=e.config.disableCarouselMobile??!1,{initialize:a,pagination:i,controller:c,itemsStyles:l}=p.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(p.Utils.Column,{style:{width:o==="small"?"70%":"100%"},alignContent:"center",justifyContent:"center",alignItems:"center",children:n.jsxs(p.Carousel.Root,{innerRef:m=>{a(m)},className:p.helpers.classNameConcat(jt["carousel-modifier"],"common-section"),children:[o==="medium"?n.jsxs(p.TextStructure.Root,{children:[n.jsx(p.TextStructure.DivWrapper,{className:jt["carousel-title-modifier"],children:n.jsx("h2",{className:"typography-style-body-lg",children:t.BENNEFITS_BAR_TITLE})}),r&&i.totalPages>1?n.jsx(p.Carousel.Controller,{className:jt["row-controller-modifier"],children:n.jsxs(p.Carousel.Arrows,{children:[n.jsx(p.Button,{variant:"tertiary",onClick:()=>c==null?void 0:c.prevPage(),adornment:{start:n.jsx(p.Icon,{name:t.ICONS.arrow_left})}}),n.jsx(p.Button,{variant:"tertiary",onClick:()=>c==null?void 0:c.nextPage(),adornment:{start:n.jsx(p.Icon,{name:t.ICONS.arrow_right})}})]})}):n.jsx(n.Fragment,{})]}):n.jsx(n.Fragment,{}),n.jsx(p.Carousel.Body,{children:e.bennefit.map((m,g)=>n.jsx(p.Carousel.Item,{className:jt["card-modifier"],style:l,children:n.jsx(p.Card,{stroke:!0,padding:"small",children:n.jsx(p.TextStructure.Root,{layoutProps:{columnWrapper:{alignContent:"start",alignItems:"start",justifyContent:"start"},textRow:{alignContent:"center",alignItems:"center",justifyContent:"center"}},adornment:{[o==="medium"?"top":"start"]:n.jsx(p.Icon,{name:m.icon,size:o==="medium"?"medium":"small"})},children:n.jsxs(p.TextStructure.DivWrapper,{alignItems:"start",children:[n.jsx("h3",{className:"typography-style-body-md",children:m.title}),m.subtitle&&m.subtitle.length?n.jsx("p",{className:"typography-style-body-xs",children:m.subtitle}):n.jsx(n.Fragment,{})]})})})},`bennefit=${g}`))}),!r&&i.totalPages>1?n.jsxs(p.Carousel.Controller,{className:jt["row-controller-modifier"],children:[n.jsxs(p.Carousel.Arrows,{children:[n.jsx(p.Button,{variant:"tertiary",onClick:()=>c==null?void 0:c.prevPage(),adornment:{start:n.jsx(p.Icon,{name:t.ICONS.arrow_left})}}),n.jsx(p.Button,{variant:"tertiary",onClick:()=>c==null?void 0:c.nextPage(),adornment:{start:n.jsx(p.Icon,{name:t.ICONS.arrow_right})}})]}),n.jsx(p.Carousel.Bullets,{page:i.currentPage,total:i.totalPages,onBulletClick:m=>c==null?void 0:c.navigateTo(m)})]}):n.jsx(n.Fragment,{})]})})},Y_=({data:e,ICONS:t})=>n.jsx("div",{className:p.helpers.classNameConcat(Io.textContentSection),style:e.borderTop?{borderTop:"none"}:void 0,children:n.jsx(ff,{data:e,ICONS:t})}),Ea={"accordion-modifier":"_accordion-modifier_1we16_1","accordion-body-modifier":"_accordion-body-modifier_1we16_7"},Z_=({data:e,id:t,ICONS:r})=>{var a;const[o,s]=x.useState([]);return n.jsxs(p.Utils.Column,{gap:"var(--gap-vertical-sm)",children:[e.titleAccordion?n.jsx(p.TextStructure.Root,{children:n.jsx(p.TextStructure.DivWrapper,{children:n.jsx("h2",{className:p.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(p.Accordion.Wrapper,{className:Ea["accordion-modifier"],children:[n.jsx(p.Accordion.Header,{id:`${t}-text-accordion-${c}`,openIndicator:n.jsx(p.Icon,{name:r.arrow_down}),closeIndicator:n.jsx(p.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(p.TextStructure.Root,{children:n.jsxs(p.TextStructure.DivWrapper,{className:Ao["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(p.Accordion.Body,{children:n.jsx(p.TextStructure.Root,{children:n.jsx(p.TextStructure.DivWrapper,{className:p.helpers.classNameConcat(Ea["accordion-body-modifier"],Ao["draftjs-text-modifier"]),children:n.jsx(We.Editor,{editorKey:`${t}-editor-${c}`,blockRenderMap:fr,editorState:i.text?dr(JSON.parse(i.text)):We.EditorState.createEmpty(),onChange:()=>null})})})})]},`${t}-accordion-${c}-${o.includes(c)}`))]})},mf=x.createContext({}),J_=({data:e,children:t,...r})=>{var h,_,y,b,S,v,j,w,E,C,P,k,R;const[o,s]=x.useState(!0),{initialize:a,controller:i,itemsStyles:c}=p.Carousel.useCarousel({gap:0,itemsPerPage:1}),l={slideTranstionTimer:(_=(h=e==null?void 0:e.staticConfig)==null?void 0:h.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=(S=e==null?void 0:e.staticConfig)==null?void 0:S.staticConfig)==null?void 0:v.hasCloseBtn,backgroundColor:(w=(j=e==null?void 0:e.staticConfig)==null?void 0:j.staticConfig)==null?void 0:w.backgroundColor,textColorVariant:(C=(E=e==null?void 0:e.staticConfig)==null?void 0:E.staticConfig)==null?void 0:C.textColorVariant,content:((k=(P=e==null?void 0:e.content)==null?void 0:P.content)==null?void 0:k.items)??[]},u=(R=l.content)==null?void 0:R.filter(N=>!N.countDownEndDate||new Date(N.countDownEndDate)>new Date),m=u.length>1,g={...l.backgroundColor?{backgroundColor:l.backgroundColor}:{}},d=()=>{s(!1)},f=p.helpers.ValidateProp({fieldTypes:pt.Mode,property:l.textColorVariant,fallback:"default"});return n.jsx(mf.Provider,{value:{isOpen:o,setIsOpen:s,hasCarousel:m,backgroundStyle:g,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})},Qe=()=>x.useContext(mf),ev=({dateEnd:e,...t})=>{const{CONSTANTS:{TIME_ZONE:r}}=Qe();return n.jsx(No,{dateEnd:new Date(e),TIME_ZONE:r,...t})},tv="_tipbar_bt3p0_1",rv="_tipbar__carousel_bt3p0_15",Ft={tipbar:tv,tipbar__carousel:rv,"tipbar__close-btn":"_tipbar__close-btn_bt3p0_29","tipbar-item":"_tipbar-item_bt3p0_37","tipbar-item__coupon":"_tipbar-item__coupon_bt3p0_45"},nv=({coupon:e,feedbackTitle:t,feedbackDescription:r,...o})=>{const{CONSTANTS:s}=Qe(),{addCouponSeller:a,cartStore:i}=Ee(),[c,l]=x.useState({status:!1,showSnackBar:!1}),[u,m]=x.useState(!1),[g,d]=x.useState(!1),f=async()=>{if(!i.items.length){d(!0);return}(await a(e,"coupon")).code===200?l({status:!0,showSnackBar:!0}):m(!0)};return x.useEffect(()=>{c.showSnackBar&&setTimeout(()=>{l(h=>({...h,showSnackBar:!1}))},s.TIPBAR_CONFIGS.snackbar_timeout)},[c.showSnackBar]),x.useEffect(()=>{u&&setTimeout(()=>{m(!1)},s.TIPBAR_CONFIGS.snackbar_timeout)},[u]),x.useEffect(()=>{g&&setTimeout(()=>{d(!1)},s.TIPBAR_CONFIGS.snackbar_timeout)},[g]),n.jsxs(n.Fragment,{children:[n.jsx(p.Button,{...o,onClick:f,disabled:c.status,className:Ft["tipbar-item__coupon"],children:c.status?`${s.TIPBAR_CONFIGS.coupon_applied_message}`:`${s.TIPBAR_CONFIGS.coupon_default_message}`}),c.showSnackBar&&(t||r)&&n.jsx(Et,{title:t,subtitle:r,Z_INDEX_WAR:s.Z_INDEX_WAR},`feedback-coupon-${e}`),u&&n.jsx(Et,{title:s.TIPBAR_CONFIGS.coupon_error_title,subtitle:s.TIPBAR_CONFIGS.coupon_error_message,Z_INDEX_WAR:s.Z_INDEX_WAR},`error-coupon-${e}`),g&&n.jsx(Et,{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}`)]})},ov=({title:e,description:t,style:r,mode:o,className:s})=>n.jsx(p.TextStructure.Root,{children:n.jsxs(p.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})]})}),sv=({coupon:e,...t})=>{const{CONSTANTS:r}=Qe();return n.jsx(p.Copy,{...t,iconCopy:r.ICONS.copy,iconSuccess:r.ICONS.check,children:e})},iv=({staticZone:e,type:t,className:r,description:o,title:s})=>{const{mode:a}=Qe();if(t==="countdown")return n.jsx(ev,{dateEnd:e.countDownEndDate,size:"x-small",mode:a});if(t==="coupon"){const i=p.helpers.ValidateProp({fieldTypes:pt.Mode,property:e.couponButtonMode,fallback:"default"}),c=p.helpers.ValidateProp({fieldTypes:pt.VariantsExtended,property:e.couponButtonVariant,fallback:"primary"});return e.coupon?n.jsx(nv,{coupon:e.coupon,mode:i,variant:c,feedbackTitle:e.couponFeedbackTitle,feedbackDescription:e.couponFeedbackDescription}):null}if(t==="copy"){const i=p.helpers.ValidateProp({fieldTypes:pt.Mode,property:e.couponButtonMode,fallback:"default"});return e.coupon?n.jsx(sv,{coupon:e.coupon,mode:i}):null}return n.jsx(ov,{title:s,description:o,mode:a,className:r})},Pa=({handleCloseTipbar:e,mode:t})=>{const{CONSTANTS:r}=Qe();return n.jsx(p.Button,{title:"fechar tipbar",className:Ft["tipbar__close-btn"],onClick:e,variant:"tertiary",mode:t,adornment:{start:n.jsx(p.Icon,{name:r.ICONS.close})}})},av=({children:e,mode:t="default",showCarouselArrows:r=!0,slideTranstionTimer:o})=>{const{carouselProps:s,CONSTANTS:a}=Qe(),i=x.useRef(null),c=(u,m)=>{var g,d;u.stopPropagation(),u.preventDefault(),m==="prev"?(g=s.controller)==null||g.prevPage():(d=s.controller)==null||d.nextPage(),i.current&&(clearInterval(i.current),l())},l=x.useCallback(()=>{if(o&&s.controller){const u=setInterval(()=>{var m;(m=s.controller)==null||m.nextPage()},o);i.current=u}},[o,s]);return x.useEffect(()=>(l(),()=>{i.current&&clearInterval(i.current)}),[o,l]),n.jsxs(p.Carousel.Root,{innerRef:u=>{s.initialize(u)},className:Ft.tipbar__carousel,style:{flexDirection:"row",alignItems:"center"},children:[r&&n.jsx(p.Button,{variant:"tertiary",mode:t,onClick:u=>c(u,"prev"),adornment:{start:n.jsx(p.Icon,{name:a.ICONS.arrow_left})}}),n.jsx(p.Carousel.Body,{children:e}),r&&n.jsx(p.Button,{variant:"tertiary",mode:t,onClick:u=>c(u,"next"),adornment:{start:n.jsx(p.Icon,{name:a.ICONS.arrow_right})}})]})},cv=({children:e,className:t})=>{const{hasCarousel:r,mode:o,hasCloseBtn:s,backgroundStyle:a,showCarouselArrows:i,slideTranstionTimer:c,handleCloseTipbar:l}=Qe(),u=r&&i;return n.jsx("div",{style:a,"data-hasclosebtn":s,className:p.helpers.classNameConcat(Ft.tipbar,t),children:r?n.jsxs(n.Fragment,{children:[n.jsx(av,{mode:o,showCarouselArrows:u,slideTranstionTimer:c,children:e}),s&&n.jsx(Pa,{handleCloseTipbar:l,showCarouselArrows:u,mode:o})]}):n.jsxs(n.Fragment,{children:[e,s&&n.jsx(Pa,{handleCloseTipbar:l,mode:o})]})})},lv=({children:e,highlightFirstSection:t,...r})=>{const{hasCarousel:o,carouselProps:s}=Qe(),a=n.jsx("div",{...r,className:Ft["tipbar-item"],children:e});return o?n.jsx(p.Carousel.Item,{style:s.itemsStyles,children:a}):a},hf=({className:e})=>{const{isOpen:t,slices:r}=Qe();return r.length&&t?n.jsx(cv,{children:r.map((o,s)=>{var a;return n.jsx(n.Fragment,{children:n.jsx(Lt,{href:o.link,children:n.jsx(lv,{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(iv,{staticZone:o,type:i.type,title:i.title,description:i.description,className:e},`tipbar-slice-field-${c}`)):null})})},`tipbar-slice-${s}`)})}):null};hf.displayName="TipBar.Root";const ko=({className:e,...t})=>n.jsx(J_,{...t,children:n.jsx(hf,{className:e})});ko.displayName="TipBar";const uv=({CONSTANTS:e,data:t})=>{const{pathname:r}=xe(),{tipbarRef:o}=je(),s=c=>{const l=t==null?void 0:t.find(u=>{var m,g,d,f,h;return((g=(m=u.staticConfig)==null?void 0:m.staticConfig)==null?void 0:g.deviceType)===c&&((h=(f=(d=u.staticConfig)==null?void 0:d.staticConfig)==null?void 0:f.paths)==null?void 0:h.includes(r))});return l||(t==null?void 0:t.find(u=>{var m,g,d,f,h,_;return((g=(m=u.staticConfig)==null?void 0:m.staticConfig)==null?void 0:g.deviceType)===c&&(!((f=(d=u.staticConfig)==null?void 0:d.staticConfig)!=null&&f.paths)||((_=(h=u.staticConfig)==null?void 0:h.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(ko,{data:i,CONSTANTS:e})}),a&&n.jsx("div",{className:U.responsive["responsive-desktop-flex"],children:n.jsx(ko,{data:a,CONSTANTS:e})})]})},Aa={"card-image-wrapper":"_card-image-wrapper_10mul_1","card-image-container":"_card-image-container_10mul_9"},dv=e=>{const{nextimage:t}=xe();return n.jsx(n.Fragment,{children:e.data.banners.map((r,o)=>n.jsx("div",{className:Aa["card-image-wrapper"],children:n.jsx("div",{className:Aa["card-image-container"],children:n.jsx(t,{src:r.image,alt:r.altImage?r.altImage:"Banner Coleção",width:500,height:600})})},o))})},fv=({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??[]})},pv=({data:{componentIndex:e,...t},ClientNewsletterSection:r})=>n.jsx(r,{...t}),mv={Banner:X_,BannerSection:ms,BennefitsBarSection:Q_,SingleBannerSection:pf,TextContentSection:Y_,BannerCarousel:K_,TextAccordionSection:Z_,TipbarScreening:uv,ImageGrid:dv,SearchPageScreening:U.SearchPageScreening,SearchContent:fv,NewsletterSection:pv},hv={Components:mv,helpers:F_};exports.cms=hv;exports.contexts=Zp;exports.data=Qo;exports.layout=O_;exports.scripts=D_;
82
+ `},q_=Object.freeze(Object.defineProperty({__proto__:null,generateMiddleware:F_},Symbol.toStringTag,{value:"Module"})),H_={helpers:q_},U_=(e,t,r)=>{e.findEntityRanges(o=>{const s=o.getEntity();return s===null?!1:r.getEntity(s).getType()==="LINK"},t)},fr=e=>{const t=new We.CompositeDecorator([{strategy:U_,component:lf}]),r=We.convertFromRaw(e);return We.EditorState.createWithContent(r,t)},W_=e=>We.convertFromRaw(e),pr=We.DefaultDraftBlockRenderMap.set("unstyled",{element:"div",aliasedElements:["div"]}),Ca="superior-direita",ar="dentro-inferior-centro",V_="inferior-direita",mo="dentro-inferior-esquerda",_f=e=>({position:e===ar||e===mo?"absolute":"default",shouldRender:[Ca,ar,mo].includes(e)?"top":"bottom",alignItems:[ar].includes(e)?"center":[Ca,V_].includes(e)?"flex-end":"flex-start",left:e===mo?"16px":e===ar?"45%":"unset"}),G_=Object.freeze(Object.defineProperty({__proto__:null,CREATE_CONTENT:fr,EXTENDED_BLOCK_RENDER_MAP:pr,GET_CONTENT_STATE:W_,controllersPositionsAdapter:_f},Symbol.toStringTag,{value:"Module"})),ut=e=>({centro:"center",esquerda:"start",direita:"end"})[e],K_=({expanded:e,content:t})=>n.jsxs("details",{open:e,children:[t.textStructureReduced?n.jsx("summary",{onClick:r=>r.preventDefault(),children:n.jsx(We.Editor,{editorKey:"draft-editor-1",blockRenderMap:pr,editorState:t!=null&&t.textStructureReduced?fr(JSON.parse(t.textStructureReduced)):We.EditorState.createEmpty(),onChange:()=>null,readOnly:!0})}):n.jsx(n.Fragment,{}),t.showTextStructureExpander&&t.textStructure?n.jsx(n.Fragment,{children:n.jsx(We.Editor,{editorKey:"draft-editor-1",blockRenderMap:pr,editorState:t.textStructure?fr(JSON.parse(t.textStructure)):We.EditorState.createEmpty(),onChange:()=>null,readOnly:!0})}):n.jsx(n.Fragment,{})]}),Io={"draftjs-text-modifier":"_draftjs-text-modifier_1itwm_2"},X_="_textContentWrapper_1bigo_5",Q_="_textContentSection_1bigo_13",No={"link-modifier":"_link-modifier_1bigo_1",textContentWrapper:X_,textContentSection:Q_},vf=({data:e,ICONS:t})=>{var s;const[r,o]=x.useState(!1);return n.jsx(m.TextStructure.Root,{layoutProps:{textRow:{alignContent:ut(e.textStructureAlignment),alignItems:ut(e.textStructureAlignment)},columnWrapper:{alignContent:ut(e.textStructureAlignment),alignItems:ut(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:No.textContentWrapper,style:{alignItems:ut(e.textStructureAlignment)},children:[n.jsx(m.TextStructure.DivWrapper,{style:{textAlign:ut(e.textStructureAlignment)},mode:e.textStructureMode??"default",className:Io["draftjs-text-modifier"],children:e.textStructureReduced?n.jsx(K_,{content:e,expanded:r}):n.jsx(n.Fragment,{})}),e.textStructureButtonLabel?n.jsx(Ke,{mode:e.textStructureMode??"default",href:e.textStructureButtonHref??"#",size:e.textStructureButtonSize,className:No["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,{})]})})},Y_=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],Sa=e=>({centro:"center",esquerda:"start",direita:"end"})[e],To=({dateEnd:e,dateInit:t,TIME_ZONE:r="America/Sao_Paulo",...o})=>{const[s,a]=x.useState(nl(new gs.TZDate(Date.now(),r),new gs.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=Pt(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:Pt(s,"hours")}),n.jsx(m.Timer.Separator,{}),n.jsx(m.Timer.Digit,{label:"min",value:Pt(s,"minutes")}),n.jsx(m.Timer.Separator,{}),n.jsx(m.Timer.Digit,{label:"segs",value:Pt(s),suppressHydrationWarning:!0})]}):n.jsx(n.Fragment,{})},wa={"content-modifier":"_content-modifier_16y4u_5","banner-image-wrapper-modifier":"_banner-image-wrapper-modifier_16y4u_13"},Pa=({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:S,textStructure:v,textStructureReduced:j}=e.banner,w=(l==null?void 0:l.trim())||(c==null?void 0:c.trim())||null,{nextimage:E}=be();return n.jsxs(m.Banner.Container,{...a,children:[n.jsxs(m.Banner.ImageWrapper,{className:wa["banner-image-wrapper-modifier"],style:u?{background:h}:void 0,children:[i&&n.jsx($e.Video,{videoRef:o,src:t,autoPlay:r,loop:!0,playsInline:!0,muted:!0}),w&&!(i!=null&&i.length)&&n.jsx(E,{src:w,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,{...Y_(d??"centro"),className:wa["content-modifier"],style:{textAlign:Sa(f)},children:n.jsxs(m.Utils.Column,{gap:"16px",alignItems:Sa(f),children:[g&&_==="timer-first"&&n.jsx(To,{mode:y??"default",size:"small",dateEnd:b?new Date(b):new Date,dateInit:S?new Date(S):new Date}),n.jsx(vf,{data:e.banner,ICONS:s}),g&&_!=="timer-first"&&n.jsx(To,{mode:y??"default",size:"small",dateEnd:b?new Date(b):new Date,dateInit:S?new Date(S):new Date})]})}):n.jsx(n.Fragment,{})]})},hs=({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("&"),S=b==null?void 0:b.filter(j=>j.includes("loc")||j.includes("signature")||j.includes("user_id")),v=S==null?void 0:S.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(vr,{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(Pa,{data:e,videoUrl:f,priority:r,videoRef:d,...s})}):n.jsx(Pa,{data:e,videoUrl:f,priority:r,videoRef:d,...s})})},xf=e=>n.jsx(hs,{...e}),ko={"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 Z_(e,t){const{mediatorRef:r}=fe();x.useEffect(()=>r.current.subscribe(e,t),[e,t])}const Ea=({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 Z_("herobanner:change_controllers_variant",d=>{l&&h(d.includes("white")?"inverse":"default")}),n.jsxs(m.Carousel.Controller,{className:ko["carousel-controllers-modifier"],position:a??"absolute","data-hide-controllers":i,bottom:"16px",top:"unset",left:c,children:[n.jsxs(m.Carousel.Arrows,{className:ko["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})]})},J_=({children:e,data:t,banner:r,...o})=>{const{mediatorRef:s}=fe();return t.data.first?n.jsx(vr,{observerOptions:{threshold:.51},stopOnIntersection:!1,callBackWhenVisible:()=>{s.current.publish("header:change_variant",r.headerVariant)},...o,children:e}):n.jsx(n.Fragment,{children:e})},ev=({data:e,ICONS:t})=>{var h;const{initialize:r,pagination:o,controller:s,itemsStyles:a}=m.Carousel.useCarousel({gap:e.data.config.gap,itemsPerPage:e.data.config.slidesPerView,direction:"row"}),i=x.useRef(void 0),c=x.useMemo(()=>_f(e.data.config.controllerPosition??"dentro-inferior-centro"),[e]),l=x.useCallback(()=>{e.data.config.slideDuration&&o.totalPages>1&&(i.current=setInterval(()=>{s==null||s.nextPage()},e.data.config.slideDuration*1e3))},[s,e.data.config.slideDuration,o.totalPages]),u=x.useCallback(d=>{clearInterval(i.current),l(),d()},[l]),p=x.useMemo(()=>{var d;return{nextOnClick:()=>u(()=>s==null?void 0:s.nextPage()),prevOnClick:()=>u(()=>s==null?void 0:s.prevPage()),onBulletClick:f=>u(()=>s==null?void 0:s.navigateTo(f)),currentPage:o.currentPage,totalPages:o.totalPages,position:c.position,hideControllers:((d=e.data.config)==null?void 0:d.hideControllers)??!1,left:c.left}},[o.currentPage,o.totalPages,c.position,e.data.config.hideControllers,u,s]);return x.useEffect(()=>(l(),()=>clearInterval(i.current)),[l]),n.jsxs(m.Carousel.Root,{innerRef:d=>{r(d)},className:m.helpers.classNameConcat(ko["custom-carousel"],e.data.config.fullWidth?"":"common-section"),"data-infinity-border":!0,style:{...e.data.config.marginTop!=="0px"&&{marginTop:`-${e.data.config.marginTop}`},...e.data.config.marginBottom!=="0px"&&{marginBottom:`-${e.data.config.marginBottom}`}},children:[c.shouldRender==="top"&&o.totalPages>1?n.jsx(Ea,{ICONS:t,...p,isFirst:e.data.first}):n.jsx(n.Fragment,{}),n.jsx(m.Carousel.Body,{children:(h=e==null?void 0:e.data)==null?void 0:h.banners.map((d,f)=>n.jsx(m.Carousel.Item,{style:a,children:n.jsx(J_,{data:e,banner:d,children:n.jsx(hs,{ICONS:t,suppressContentEditableWarning:!0,suppressHydrationWarning:!0,data:{banner:d,index:f,componentIndex:e.data.componentIndex},creative:"banner-carousel",...e.data.first&&f===0&&{priority:!0}})})},`hero-banner-item-${f}`))}),c.shouldRender==="bottom"&&o.totalPages>1?n.jsx(Ea,{ICONS:t,...p}):n.jsx(n.Fragment,{})]})},tv={Banner:xf},St={"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"},rv=({data:e,CONSTANTS:t})=>{var u;const{isMobile:r}=fe(),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(St["carousel-modifier"],"common-section"),children:[o==="medium"?n.jsxs(m.TextStructure.Root,{children:[n.jsx(m.TextStructure.DivWrapper,{className:St["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:St["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:St["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:St["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,{})]})})},nv=({data:e,ICONS:t})=>n.jsx("div",{className:m.helpers.classNameConcat(No.textContentSection),style:e.borderTop?{borderTop:"none"}:void 0,children:n.jsx(vf,{data:e,ICONS:t})}),Ra={"accordion-modifier":"_accordion-modifier_1we16_1","accordion-body-modifier":"_accordion-body-modifier_1we16_7"},ov=({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:Ra["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:Io["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(Ra["accordion-body-modifier"],Io["draftjs-text-modifier"]),children:n.jsx(We.Editor,{editorKey:`${t}-editor-${c}`,blockRenderMap:pr,editorState:i.text?fr(JSON.parse(i.text)):We.EditorState.createEmpty(),onChange:()=>null})})})})]},`${t}-accordion-${c}-${o.includes(c)}`))]})},bf=x.createContext({}),sv=({data:e,children:t,...r})=>{var g,_,y,b,S,v,j,w,E,C,R,k,P;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=(S=e==null?void 0:e.staticConfig)==null?void 0:S.staticConfig)==null?void 0:v.hasCloseBtn,backgroundColor:(w=(j=e==null?void 0:e.staticConfig)==null?void 0:j.staticConfig)==null?void 0:w.backgroundColor,textColorVariant:(C=(E=e==null?void 0:e.staticConfig)==null?void 0:E.staticConfig)==null?void 0:C.textColorVariant,content:((k=(R=e==null?void 0:e.content)==null?void 0:R.content)==null?void 0:k.items)??[]},u=(P=l.content)==null?void 0:P.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:mt.Mode,property:l.textColorVariant,fallback:"default"});return n.jsx(bf.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})},Qe=()=>x.useContext(bf),iv=({dateEnd:e,...t})=>{const{CONSTANTS:{TIME_ZONE:r}}=Qe();return n.jsx(To,{dateEnd:new Date(e),TIME_ZONE:r,...t})},av="_tipbar_bt3p0_1",cv="_tipbar__carousel_bt3p0_15",qt={tipbar:av,tipbar__carousel:cv,"tipbar__close-btn":"_tipbar__close-btn_bt3p0_29","tipbar-item":"_tipbar-item_bt3p0_37","tipbar-item__coupon":"_tipbar-item__coupon_bt3p0_45"},lv=({coupon:e,feedbackTitle:t,feedbackDescription:r,...o})=>{const{CONSTANTS:s}=Qe(),{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:qt["tipbar-item__coupon"],children:c.status?`${s.TIPBAR_CONFIGS.coupon_applied_message}`:`${s.TIPBAR_CONFIGS.coupon_default_message}`}),c.showSnackBar&&(t||r)&&n.jsx(Rt,{title:t,subtitle:r,Z_INDEX_WAR:s.Z_INDEX_WAR},`feedback-coupon-${e}`),u&&n.jsx(Rt,{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(Rt,{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}`)]})},uv=({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})]})}),dv=({coupon:e,...t})=>{const{CONSTANTS:r}=Qe();return n.jsx(m.Copy,{...t,iconCopy:r.ICONS.copy,iconSuccess:r.ICONS.check,children:e})},fv=({staticZone:e,type:t,className:r,description:o,title:s})=>{const{mode:a}=Qe();if(t==="countdown")return n.jsx(iv,{dateEnd:e.countDownEndDate,size:"x-small",mode:a});if(t==="coupon"){const i=m.helpers.ValidateProp({fieldTypes:mt.Mode,property:e.couponButtonMode,fallback:"default"}),c=m.helpers.ValidateProp({fieldTypes:mt.VariantsExtended,property:e.couponButtonVariant,fallback:"primary"});return e.coupon?n.jsx(lv,{coupon:e.coupon,mode:i,variant:c,feedbackTitle:e.couponFeedbackTitle,feedbackDescription:e.couponFeedbackDescription}):null}if(t==="copy"){const i=m.helpers.ValidateProp({fieldTypes:mt.Mode,property:e.couponButtonMode,fallback:"default"});return e.coupon?n.jsx(dv,{coupon:e.coupon,mode:i}):null}return n.jsx(uv,{title:s,description:o,mode:a,className:r})},Aa=({handleCloseTipbar:e,mode:t})=>{const{CONSTANTS:r}=Qe();return n.jsx(m.Button,{title:"fechar tipbar",className:qt["tipbar__close-btn"],onClick:e,variant:"tertiary",mode:t,adornment:{start:n.jsx(m.Icon,{name:r.ICONS.close})}})},pv=({children:e,mode:t="default",showCarouselArrows:r=!0,slideTranstionTimer:o})=>{const{carouselProps:s,CONSTANTS:a}=Qe(),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:qt.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})}})]})},mv=({children:e,className:t})=>{const{hasCarousel:r,mode:o,hasCloseBtn:s,backgroundStyle:a,showCarouselArrows:i,slideTranstionTimer:c,handleCloseTipbar:l}=Qe(),u=r&&i;return n.jsx("div",{style:a,"data-hasclosebtn":s,className:m.helpers.classNameConcat(qt.tipbar,t),children:r?n.jsxs(n.Fragment,{children:[n.jsx(pv,{mode:o,showCarouselArrows:u,slideTranstionTimer:c,children:e}),s&&n.jsx(Aa,{handleCloseTipbar:l,showCarouselArrows:u,mode:o})]}):n.jsxs(n.Fragment,{children:[e,s&&n.jsx(Aa,{handleCloseTipbar:l,mode:o})]})})},hv=({children:e,highlightFirstSection:t,...r})=>{const{hasCarousel:o,carouselProps:s}=Qe(),a=n.jsx("div",{...r,className:qt["tipbar-item"],children:e});return o?n.jsx(m.Carousel.Item,{style:s.itemsStyles,children:a}):a},jf=({className:e})=>{const{isOpen:t,slices:r}=Qe();return r.length&&t?n.jsx(mv,{children:r.map((o,s)=>{var a;return n.jsx(n.Fragment,{children:n.jsx(Dt,{href:o.link,children:n.jsx(hv,{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(fv,{staticZone:o,type:i.type,title:i.title,description:i.description,className:e},`tipbar-slice-field-${c}`)):null})})},`tipbar-slice-${s}`)})}):null};jf.displayName="TipBar.Root";const Oo=({className:e,...t})=>n.jsx(sv,{...t,children:n.jsx(jf,{className:e})});Oo.displayName="TipBar";const gv=({CONSTANTS:e,data:t})=>{const{pathname:r}=be(),{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(Oo,{data:i,CONSTANTS:e})}),a&&n.jsx("div",{className:U.responsive["responsive-desktop-flex"],children:n.jsx(Oo,{data:a,CONSTANTS:e})})]})},Ia={"card-image-wrapper":"_card-image-wrapper_10mul_1","card-image-container":"_card-image-container_10mul_9"},yv=e=>{const{nextimage:t}=be();return n.jsx(n.Fragment,{children:e.data.banners.map((r,o)=>n.jsx("div",{className:Ia["card-image-wrapper"],children:n.jsx("div",{className:Ia["card-image-container"],children:n.jsx(t,{src:r.image,alt:r.altImage?r.altImage:"Banner Coleção",width:500,height:600})})},o))})},_v=({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??[]})},vv=({data:{componentIndex:e,...t},ClientNewsletterSection:r})=>n.jsx(r,{...t}),Cf=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)},xv="_shelf__container_bi04n_10",Sf={shelf__container:xv},bv=({collectionSearch:e,title:t,CONSTANTS:r,WishListToggle:o})=>{const[s,a]=x.useState([]),{isMobile:i}=fe(),{ref:c,inView:l}=ka.useInView({threshold:.7,delay:100,triggerOnce:!0}),{sendDataLayerEvent:u}=le();return x.useEffect(()=>{if(!e)return;function p(){var h,d;Cf({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:Sf.shelf__container,children:n.jsx(It.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(It.Card,{item:p,isMobile:i,size:"medium",index:h,shelfTitle:t??"Você também pode gostar",CONSTANTS:r,WishListToggle:o},p.id):null})})})},jv=({recommendationSearch:e,title:t,CONSTANTS:r,WishListToggle:o})=>{const[s,a]=x.useState([]),{isMobile:i}=fe(),{ref:c,inView:l}=ka.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;Cf({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(Vl,{products:s,innerRef:c,inView:l,WishListToggle:o,CONSTANTS:r}):n.jsx("div",{ref:c,className:Sf.shelf__container,children:n.jsx(It.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(It.Card,{item:h,isMobile:i,size:"medium",index:d,shelfTitle:t??"Você também pode gostar",CONSTANTS:r,WishListToggle:o},h.id):null})})})},Cv=({data:e,CONSTANTS:t,WishListToggle:r})=>{const{productId:o}=rl();return e.data.productLists.map((s,a)=>n.jsx(jv,{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}`))},Sv=({data:e,CONSTANTS:t,WishListToggle:r})=>e.data.productLists.map((o,s)=>{const a=o.collectionId?{term:"",facets:[{key:"productclusterids",value:`${o.collectionId}`}]}:{term:o.search_base_name,facets:[]};return n.jsx(bv,{title:o.title,collectionSearch:{params:{count:o.number_of_items,sort:o.sort},...a},CONSTANTS:t,WishListToggle:r},`shelf=${s}`)}),wv="_embedLiveContainer_1ss0l_2",Pv="_embedLivePlayer_1ss0l_7",Na={embedLiveContainer:wv,embedLivePlayer:Pv},Ev=({data:e})=>n.jsx("div",{className:Na.embedLiveContainer,children:n.jsx("div",{className:Na.embedLivePlayer,children:e.banner.videosrc?n.jsx($e.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(cf,{src:"https://player.vimeo.com/api/player.js",defer:!0,strategy:"lazyOnload"})]})})}),Rv={Banner:tv,BannerSection:hs,BennefitsBarSection:rv,SingleBannerSection:xf,TextContentSection:nv,BannerCarousel:ev,TextAccordionSection:ov,TipbarScreening:gv,ImageGrid:yv,SearchPageScreening:U.SearchPageScreening,SearchContent:_v,NewsletterSection:vv,PDPProductCarousel:Cv,ProductCarousel:Sv,EmbedLive:Ev},Av={Components:Rv,helpers:G_};exports.cms=Av;exports.contexts=im;exports.data=Yo;exports.layout=B_;exports.scripts=H_;