@soma-vertical-web/multi-lib 0.0.74 → 0.0.75
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/contexts/contexts/cart/Context.d.ts +1 -1
- package/contexts/hooks/useOperations.d.ts +1 -1
- package/contexts/index.d.ts +1 -1
- package/index.js +18 -18
- package/index.mjs +2798 -2797
- package/package.json +1 -1
- package/types/contexts/store/cart.d.ts +4 -3
package/index.js
CHANGED
|
@@ -1,45 +1,45 @@
|
|
|
1
|
-
"use strict";var Zp=Object.defineProperty;var Jp=(e,t,n)=>t in e?Zp(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var or=(e,t,n)=>Jp(e,typeof t!="symbol"?t+"":t,n);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("react/jsx-runtime"),x=require("react"),U=require("./index-DL877zTH.js"),Ze=require("idb-keyval"),yt=require("zustand"),Fo=require("js-cookie"),p=require("@soma-vertical-web/core-components"),mt=require("axios"),Bo=require("@date-fns/tz"),em=require("jose"),Pt=require("@soma-vertical-web/foundations"),ls=require("react-dom"),Ye=require("draft-js"),gc=require("react-intersection-observer"),us=x.createContext({}),tm=({data:e,children:t})=>r.jsx(us.Provider,{value:{tags:e==null?void 0:e.config},children:t}),nt=()=>{const{tags:e}=x.useContext(us),t=x.useCallback(n=>{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(f=>{var h;return(h=n??[])==null?void 0:h.find(m=>m.id===f.key)}),s=(u=(l=e==null?void 0:e.institucional)==null?void 0:l.items)==null?void 0:u.find(f=>{var h;return(h=n??[])==null?void 0:h.find(m=>m.id===f.key)}),a=e==null?void 0:e.flagPdp;return{commercial:o,institucional:s,flagPdp:a}},[e]);return{tags:e,getAvailableProductTag:t}},yc=({gridScrollBack:e})=>{x.useEffect(()=>{typeof window<"u"&&(e!=null&&e.refer)&&sessionStorage.setItem(e==null?void 0:e.refer,"true")},[])},_c=x.createContext({}),rm=({children:e,gridScrollBack:t})=>{const n=x.useRef(null);return yc({gridScrollBack:t}),r.jsx(_c.Provider,{value:{sizesContainerRef:n},children:e})},vc=()=>{const e=x.useContext(_c);if(e===void 0)throw new Error("useContext(PDPContext) must be used within a PDPProvider");return e},it=({event:e,data:t})=>{const n=(window==null?void 0:window.dataLayer)||[];t.ecommerce&&n.push({ecommerce:null}),n.push({...e&&{event:`custom_${e}`},...t})},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:n,commonData:o,customData:s,promotionInfo:a,itemList:i,outsideEcommerceData:c}=e,{availableSizes:l,sizes:u,price:f}=o,h={...n==="view_item"?{currency:Se.configs.currency,value:f,grade_disponivel:l??(u?xc(u):"")}:{},...n==="add_to_wishlist"||n==="remove_from_wishlist"?{value:f,currency:Se.configs.currency}:{}},m=sr({data:o,customData:{...s,...i,...a},configs:Se.configs});it({event:n,data:{...c,ecommerce:{...i,...h,items:[m]}}}),typeof t=="function"&&t(m,h)},productListEvent:e=>{const{commonData:{products:t},promotionInfo:n,itemList:o,outsideEcommerceData:s,customData:a}=e;if(t.length===0)return;const i=t.map(({node:c},l)=>sr({data:{...c},customData:{...n,index:l,...a!=null&&a.item_list_name?{item_list_name:a==null?void 0:a.item_list_name}:o},configs:Se.configs}));it({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:n},customData:o,supportData:{selectedSkus:s,price:a},promotionInfo:i,itemList:c,outsideEcommerceData:l}=e;let u=0;const f=n.map(h=>{var y,_,b,S,v,j,P,E,C;const m=s==null?void 0:s.find(R=>(h.productId??h.id)===R.productId);let d={...i,...c};if(m){const R=jc(),I=Cc(R,m);I&&(d={...d,...I}),t==="add_to_cart"&&(i||c)&&qo({persistedData:R,type:"add",sku:(m==null?void 0:m.id)??(m==null?void 0:m.sku),newData:{promotionInfo:i,itemList:c}}),t==="remove_from_cart"&&qo({persistedData:R,type:"remove",sku:(m==null?void 0:m.id)??(m==null?void 0:m.sku)})}u+=h.price??((b=(_=(y=m==null?void 0:m.offers)==null?void 0:y.offers)==null?void 0:_[0])==null?void 0:b.price)??0;const g=(m==null?void 0:m.size)??U.getColorAndSizeFromSkuName((m==null?void 0:m.skuName)??(m==null?void 0:m.name)??((S=h.itemOffered)==null?void 0:S.skuName),Se.configs.NAME_SPLIT_SYMBOL).size;return sr({data:h,customData:{...o,...d??{...i,...c},item_sku:(m==null?void 0:m.id)??(m==null?void 0:m.sku)??((v=h.itemOffered)==null?void 0:v.sku),quantity:(o==null?void 0:o.quantity)??h.quantity??1,item_variant2:g,seller_id:(m==null?void 0:m.sellerId)??(m==null?void 0:m.seller)??((C=(E=(P=(j=m==null?void 0:m.offers)==null?void 0:j.offers)==null?void 0:P[0])==null?void 0:E.seller)==null?void 0:C.identifier)??h.seller},configs:Se.configs})});it({event:t,data:{...l,ecommerce:{value:a??u,currency:Se.configs.currency,items:f}}})},filterEvent:e=>{var i;const{commonData:t,customData:n,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(m=>m.key===c))==null?void 0:h.eventLabel)??c,f=(s==null?void 0:s[u])||[];u==="price_range"&&l.replace(":","-"),s[u]=[...f,l]}),Object.keys(s).forEach(c=>a[c]=s[c].join(", "))),it({event:"filter",data:{...o,...a,...n}})},viewCartEvent:e=>{var f,h,m,d,g,y,_,b,S,v;const{commonData:t,outsideEcommerceData:n}=e,{cartStore:o}=t;if(!o)return;const s=window.localStorage.getItem("persistedCartEventsData"),a=s?JSON.parse(s):{},i=o.items.map(j=>{const{promotionInfo:P,itemList:E}=a[j.id]??{};return sr({data:{...j,price:j.price/100,listPrice:j.listPrice/100},customData:{...P,...E,item_sku:j.id??j.itemOffered.sku,quantity:j.quantity??1},configs:Se.configs})}),c=(((f=o.totalizers.find(j=>j.name==="Total dos Itens"))==null?void 0:f.value)??0)/100,l=(((h=o.totalizers.find(j=>j.name==="Total dos Descontos"))==null?void 0:h.value)??0)/100,u=((m=o.marketingData)==null?void 0:m.utmiCampaign)===Se.configs.VENDOR_CODE?(d=o.marketingData)==null?void 0:d.utmCampaign:(y=String((g=o.openTextField)==null?void 0:g.value))==null?void 0:y.split(" - ")[0];it({event:"view_cart",data:{...n,ecommerce:{currency:Se.configs.currency,value:c+l,total_discount:Math.abs(l),cep_preenchido:!!((b=(_=o.shippingData)==null?void 0:_.address)!=null&&b.postalCode),...u?{seller_coupon_name:u}:{},...((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:n}=e;it({event:t,data:{...n}})}},xc=e=>e.reduce((t,n)=>(n.available&&t.push(n.value),t),[]).toString(),nm=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]}:{}}:{}}},sr=({data:e,customData:t,configs:n})=>({...om(e,n==null?void 0:n.MAIN_IMAGE),...sm(e),...am(e),...im(e),...t}),bc=()=>{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("_"))??[]:[]},jc=()=>{const e=window.localStorage.getItem("persistedCartEventsData");return e?JSON.parse(e):null},Cc=(e,t)=>e==null?void 0:e[t],qo=({persistedData:e,type:t,sku:n,newData:o})=>{if(!e&&t==="add"){window.localStorage.setItem("persistedCartEventsData",JSON.stringify({[n]:o}));return}if(e&&t==="add"){window.localStorage.setItem("persistedCartEventsData",JSON.stringify({...e,[n]:o}));return}e&&t==="remove"&&(delete e[n],window.localStorage.setItem("persistedCartEventsData",JSON.stringify(e)))},om=(e,t="1")=>{var a,i,c,l,u,f,h,m,d,g,y;const n=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(_=>_.alternateName===t||_.imageLabel===t||_.keywords===t);return{item_id:e.productId??((l=e.isVariantOf)==null?void 0:l.productGroupID)??((u=e.isVariationOf)==null?void 0:u.productGroupID)??((h=(f=e.itemOffered)==null?void 0:f.isVariationOf)==null?void 0:h.productGroupID),item_ref:/_\d$/.test(n)?n.slice(0,-2):n,item_name:e.productTitle??e.productName??e.name??U.splitNameAndSizeFromFullName((m=e.itemOffered)==null?void 0:m.name,Se.configs.NAME_SPLIT_SYMBOL).name,item_brand:((d=e.brand)==null?void 0:d.brandName)??((g=e.brand)==null?void 0:g.name)??e.brand??((y=e.itemOffered)==null?void 0:y.brand.name),item_url:`${Se.configs.storeUrl}${e.linkText}/p`,item_image:(s==null?void 0:s.url)??(s==null?void 0:s.imageUrl)}},Js=e=>Array.isArray(e)?e.reduce((t,n)=>(n.length>t.length&&(t=n),t),""):e,sm=e=>{var u,f;const{categories:t,categoriesIds:n}=e,o=t??((u=e.itemOffered)==null?void 0:u.categories),s=n??((f=e.itemOffered)==null?void 0:f.categoriesIds),a=Js(o),i=Js(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]}}},am=e=>{var s,a,i,c,l,u;const t=((s=e.itemOffered)==null?void 0:s.skuName)??((c=(i=(a=e.isVariantOf)==null?void 0:a.hasVariant)==null?void 0:i[0])==null?void 0:c.name)??((u=(l=e.items)==null?void 0:l[0])==null?void 0:u.name),{color:n,size:o}=U.getColorAndSizeFromSkuName(t,Se.configs.NAME_SPLIT_SYMBOL);return{item_variant:n,...e.itemOffered&&{item_variant2:o}}},im=e=>{var l,u;const{price:t,listPrice:n,installments:o}=e,s=t??((l=e.offers)==null?void 0:l.lowPrice)??0,a=n??((u=e.offers)==null?void 0:u.highPrice)??0,i=a?a-s:0,c=i%1===0?i:Number(i.toFixed(2));return{...t&&{price:s??a},...a&&{list_price:a,discount:c},...o&&{installments:o==null?void 0:o.count,installment_value:o==null?void 0:o.value},item_currency:Se.configs.currency}},Sc=()=>{const[e,t]=bc(),[n,o]=e.split("-"),s=n.includes("shop")||n.includes("sale")?n:"";return{page_category:s&&o?o:"",page_departament:s,id:t,name:e}},cm=Object.freeze(Object.defineProperty({__proto__:null,eventsFunctions:Se,findDataInPersistedData:Cc,getAvailablesSizes:xc,getCategories:nm,getPageCategoryAndDepartmentFromSlug:Sc,getPersistedData:jc,getProductListInfoFromHead:bc,pushDatalayer:it,updatePersistedData:qo},Symbol.toStringTag,{value:"Module"})),Pc=x.createContext({}),lm=({children:e,evtFunctionsConfigs:t})=>{const n=x.useRef({}),o=x.useRef(null),s=x.useRef(null),a=x.useRef({}),i=x.useRef({trigger:!1,index:0}),c=({functionKey:f,data:h,callBack:m,timeout:d=100})=>{window.dataLayer||(window.dataLayer=[]),Se.configs=t;try{typeof Se[f]=="function"&&setTimeout(()=>{var g;h.promotionInfo=n.current,(g=s.current)!=null&&g.item_list_name&&(h.itemList=s.current),Se[f](h,m)},d)}catch(g){it({event:"error_event",data:{error_message:(g==null?void 0:g.message)??g}})}},l=({content:f})=>{c({functionKey:"readyEvents",data:{event:"select_content",readyData:{content_type:f.replace("::",":")}}})},u=({updatePromotionRef:f,promotion:h,index:m})=>{f&&(n.current={...h}),c({functionKey:"readyEvents",data:{event:"select_promotion",readyData:{ecommerce:{...h,...m!==void 0&&{index:m}}}}})};return r.jsx(Pc.Provider,{value:{sendDataLayerEvent:c,triggerSelectItemEventRef:i,promotionEventRef:n,currentLocalRef:o,itemListRef:s,cartProductsFullDataRef:a,handleSelectContent:l,handleSelectPromotionEvent:u},children:e})},le=()=>x.useContext(Pc),wc=x.createContext({}),um=({children:e,productData:t,isKit:n,PDP_INFO:o,NAME_SPLIT_SYMBOL:s,TEXTURE_IMAGE:a})=>{var O,W;const{sendDataLayerEvent:i,triggerSelectItemEventRef:c}=le(),{productId:l,productName:u,items:f,items:[{images:h,Videos:m}],description:d,["Composição"]:g="",productReference:y,categories:[_]}=t,{getAvailableProductTag:b}=nt(),S=b(Object.entries(t.clusterHighlights).map(q=>({id:q[0],name:q[1]}))),v=_.slice(1,-1).split("/"),{installments:j,price:P,listPrice:E,sizes:C,allSizesAvailable:R}=U.getSkuInfos({items:f,NAME_SPLIT_SYMBOL:s}),I=U.getThumbImage({images:h,TEXTURE_IMAGE:a}),w=[{label:`${o.product.description}`,value:"description",content:d},{label:`${o.product.materiais}`,value:"composition",content:g}],N=((W=U.getColorAndSizeFromSkuName((O=t.items)==null?void 0:O[0].name,s))==null?void 0:W.color)??t["Cores Filtráveis"][0]??"",T=()=>({commonData:{...t,sizes:C,price:P,listPrice:E,installments:j},customData:{installments:j==null?void 0:j.count,installment_value:Number(j==null?void 0:j.value).toFixed(2)}}),z=({sku:q,size:F})=>{const{commonData:G,customData:V}=T();i({functionKey:"productEvents",data:{event:"view_item",commonData:G,customData:{...V,...q&&{item_sku:q},...F&&{item_variant2:F}}}})};return x.useEffect(()=>{if(c.current.trigger){const{commonData:q,customData:F}=T();i({functionKey:"productEvents",data:{event:"select_item",commonData:q,customData:{...F,index:c.current.index}}}),c.current.trigger=!1}z({})},[]),r.jsx(wc.Provider,{value:{productData:t,productId:l,productName:u,productReference:y,tag:S,items:f,sizes:C,allSizesAvailable:R,installments:j,price:P,listPrice:E,thumbImage:I,images:h,video:m[0],descriptionContent:w,breadcrumbList:v,isKit:n,colorName:N,handleViewItemEvent:z},children:e})},$e=()=>{const e=x.useContext(wc);if(e===void 0)throw new Error("useContext(PDPDataContext) must be used within a PDPDataProvider");return e},dm=()=>{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}}]},Ec=()=>{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)}},[])},fm=typeof window>"u",pm=(e,t)=>{const[n,o]=x.useState(()=>{if(fm)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]),[n,a=>{o(i=>{const c=typeof a=="function"?a(i):a;return localStorage.setItem(e,JSON.stringify(c)),c})}]};function ds(e,t,n){const[o,s]=x.useState(!1),{threshold:a}=n||{};return x.useEffect(()=>{if(!e.current)return()=>null;let i=null;const c=new IntersectionObserver(([l])=>{if(n!=null&&n.delay){i&&clearTimeout(i),i=setTimeout(()=>{s(l.isIntersecting),t&&l.isIntersecting&&c.unobserve(e.current)},n.delay);return}s(l.isIntersecting),t&&l.isIntersecting&&c.unobserve(e.current)},{threshold:a||1});return c.observe(e.current),()=>{c.disconnect()}},[e]),o}const Ir=({callback:e,onEnterViewportOnce:t,options:n})=>{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()))},n);return a.observe(s),()=>{t&&a.unobserve(s),a.disconnect()}},[e,t,n]),{element:o}},Rc=({defaultScale:e=1,maxScale:t=3})=>{const n=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||!n.current)return{minX:0,maxX:0,minY:0,maxY:0};const d=n.current.getBoundingClientRect(),g=o.current.children[0].getBoundingClientRect(),y=g.width,_=g.height,b=Math.min(0,(d.width-y)/2),S=Math.max(0,(y-d.width)/2),v=Math.min(0,(d.height-_)/2),j=Math.max(0,(_-d.height)/2);return{minX:b,maxX:S,minY:v,maxY:j}},f=(d,g,y)=>{if(o.current){const _=o.current.children[0];_&&requestAnimationFrame(()=>{_.style.transform=`translate(calc(-50% + ${d}px), calc(-50% + ${g}px)) scale(${y})`})}},h=x.useCallback(d=>{const{minX:g,maxX:y,minY:_,maxY:b}=u(),{x:S,y:v}=l.current,j=Math.max(g,Math.min(y,S)),P=Math.max(_,Math.min(b,v));if(d.touches.length>1){const E=d.touches[0],C=d.touches[1],R=E.pageX-C.pageX,I=E.pageY-C.pageY;i.current=Math.sqrt(R*R+I*I),c.current={x:(E.pageX+C.pageX)/2,y:(E.pageY+C.pageY)/2}}else d.touches.length===1&&(c.current={x:d.touches[0].pageX-j,y:d.touches[0].pageY-P})},[s,l]),m=x.useCallback(d=>{if(!o.current||!n.current)return;const{minX:g,maxX:y,minY:_,maxY:b}=u();if(d.touches.length>1){d.preventDefault();const S=d.touches[0],v=d.touches[1],j=S.pageX-v.pageX,P=S.pageY-v.pageY,E=Math.sqrt(j*j+P*P);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 I=(S.pageX+v.pageX)/2,w=(S.pageY+v.pageY)/2;let N=I-c.current.x,T=w-c.current.y;N=Math.max(g,Math.min(y,N)),T=Math.max(_,Math.min(b,T)),l.current={x:N,y:T},i.current=E,f(N,T,R)}else if(d.touches.length===1){const S=d.touches[0].pageX,v=d.touches[0].pageY;let j=S-c.current.x,P=v-c.current.y;j=Math.max(g,Math.min(y,j)),P=Math.max(_,Math.min(b,P)),l.current={x:j,y:P},f(j,P,s)}},[t,s]);return x.useEffect(()=>(document.addEventListener("touchstart",h),document.addEventListener("touchmove",m,{passive:!1}),()=>{document.removeEventListener("touchstart",h),document.removeEventListener("touchmove",m)}),[m,h]),{containerRef:n,imgRef:o,scale:s}},mm={attachment:"ATTACHMENT",specification:"SPECIFICATION",attribute:"ATTRIBUTE"},He=Promise.resolve(!1),Ho={id:"",isOpen:!1,items:[],loading:!1,marketingData:null,messages:[],openTextField:{},paymentData:null,shippingData:null,totalizers:[],itemMetadata:[],recentlyAddedProducts:[],addCoupon:()=>He,addItem:()=>He,addSellerCode:()=>He,addMarketingData:()=>He,emptyCart:()=>{},removeItem:()=>He,setIsOpen:()=>{},shipping:()=>He,shippingUpdate:()=>He,toggleServiceToProduct:()=>He,updateItemQuantity:()=>He,insertProfileEmail:()=>He,setRecentlyAddedProducts:()=>{}},fs=e=>e===0,Ac=(e,t)=>{if(!e||e.length===0)return[];let n="";const o=[],s=e.match(/\d+/g)??[];for(const a of s){const i=t[Number(a)];i&&(n+=(n?"/":"")+i,o.push(n))}return o},Nc=(e,t)=>{const{availability:n,additionalInfo:{brandName:o},bundleItems:s,id:a,uniqueId:i,detailUrl:c,ean:l,imageUrl:u,name:f,listPrice:h,quantity:m,price:d,priceDefinition:g,productCategories:y,productCategoryIds:_,productId:b,refId:S,seller:v,referenceId:j,offerings:P,productRefId:E,skuName:C,sellingPrice:R}=e;return{availability:n,bundleItems:s,referenceId:j,productRefId:E,id:a,ean:l,uniqueId:i,itemOffered:{additionalProperty:[],brand:{name:o},categories:Ac(_,y),categoriesIds:_,gtin:S,image:[{alternateName:(t==null?void 0:t.MAIN_IMAGE)??"1",url:u}],name:f,isVariationOf:{name:f,productGroupID:b},sku:a,slug:c,skuName:C},listPrice:h,quantity:m,offerings:P,price:d,priceDefinition:g,sellingPrice:R,seller:v}},Ic=(e,t)=>{const n=e.map(o=>({id:o.id,quantity:o.quantity,seller:o.seller}));return Array.isArray(t)?[...n,...t]:[...n,t]},Tc=(e,t)=>{const n=e.find(o=>o.id===t);if(n){const o=e.map((s,a)=>{var i,c;return{id:((i=s.itemOffered)==null?void 0:i.sku)??"",index:a,quantity:(n==null?void 0:n.id)===((c=s.itemOffered)==null?void 0:c.sku)?0:s.quantity,seller:s.seller??""}});return{updateItems:o,filterItems:o.filter(s=>s.id!==t)}}return{updateItems:[],filterItems:[]}},Oc=(e,t,n)=>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:n,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)??""}}),Uo=(e,t)=>e.filter(n=>n.availability!=="withoutStock").findIndex(({id:n})=>n===t),hm=(e,t)=>{var n;return Array.isArray(e)?(((n=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:n.value)??0)/100:0},gm=e=>{const t=e.reduce((s,a)=>{const i=fs(a.price)?0:a.quantity;return s+i},0),n=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:n,subTotal:o}},ym=e=>Array.isArray(e)?e.filter(t=>t.availability!=="withoutStock").reduce((t,n)=>t+(fs(n==null?void 0:n.price)?0:n.quantity),0):0,kc=(e,t)=>{const{items:n,itemMetadata:o,marketingData:s,messages:a,orderFormId:i,openTextField:c,paymentData:l,shippingData:u,totalizers:f}=e;return{id:i,itemMetadata:o,items:Array.isArray(n)?n.map(h=>Nc(h,t)):[],marketingData:s,messages:a,openTextField:c,paymentData:l,shippingData:u,totalizers:f}},Mc=(e,t)=>{const n=e.find(o=>o.id===t);return n?n.availability==="unavailableItemFulfillment":!1},_m=(e,t)=>{const n=e.sku,o=e.isVariantOf.hasVariant.find(s=>s.sku===n);return o?o.name.split(t)[1]:"--"},jt=(e,t,n=!1)=>!e&&t!==""?{code:300,value:t,statusOk:n}:e===t?{code:200,value:t,statusOk:n}:{code:400,value:t,statusOk:n},vm=(e,t)=>{const n=new Set;return[e,...t].filter(o=>!n.has(o)&&n.add(o),n)},Lc=(e,t)=>t&&Array.isArray(t)&&t.find(o=>o.id===e)?Promise.resolve(e):Promise.resolve(!1),Dc=(e,t)=>t?Promise.resolve(e[t]):Promise.resolve(!1),$c=async e=>{try{const t=await e();if(typeof t!="boolean")return t}catch(t){console.error(`[Error orderForm]: ${t}`)}return!1},zc=(e,t)=>{if(t!==-1){const n=Number(e);return n?n+1:1}return e??1},Fc=(e,t)=>Array.isArray(e)?e.filter(n=>t==null?void 0:t.some(o=>o.id===n.id)):[],Bc=async(e,t)=>e.then(n=>[...n??[],...t??[]]),Oe=async(e,t,n,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 n?c:kc(c,o)})},qc=(e,t,n)=>({notifications:[...e.notifications,{id:Date.now(),message:t,callback:n}]}),Hc=e=>[...Array.isArray(e)?e:[e],"faststore"],Uc=e=>{const t=e.get("utm_source")||pt("utm_source"),n=e.get("utm_campaign")||pt("utm_campaign"),o=e.get("utm_medium")||pt("utm_medium"),s=e.get("utmi_cp")||pt("utmi_cp"),a=e.get("utmi_pc")||pt("utmi_pc"),i=e.get("utmi_p")||pt("utmi_p");return{...t&&{utmSource:t},...o&&{utmMedium:o},...n&&{utmCampaign:n},...s&&{utmiCampaign:s},...a&&{utmiPart:a},...i&&{utmipage:i}}},pt=e=>{if(!e||typeof window>"u")return;const t=window.location.href;e=e.replace(/[[\]]/g,"\\$&");const n=new RegExp("[?&]"+e+"(=([^&#]*)|&|#|$)"),o=n.exec(t);return o?o[2]?decodeURIComponent(o[2].replace(/\+/g," ")):"":null},xm=Object.freeze(Object.defineProperty({__proto__:null,VALUE_REFERENCES:mm,addItemOrder:Ic,addNotification:qc,createItemOrder:Nc,fetchCartAPI:Oe,findItemIndex:Uo,findOptions:Fc,findTotalizerValue:hm,getCategories:Ac,getCode:jt,getQuantity:zc,getRemoveId:Lc,getSize:_m,getTotalItems:ym,getTotalizer:gm,getUrlParameter:pt,getValue:Dc,initialState:Ho,isGift:fs,marketingTagsBuilder:Hc,mergeOptionsPromise:Bc,mountMarketingData:Uc,orderFormValues:kc,promiseDefault:He,removeQuantity:Tc,updateItemSellerExternal:Mc,updateOrderFormPromise:$c,updateQuantity:Oc,wishlistArray:vm},Symbol.toStringTag,{value:"Module"})),bm=()=>{const e=async(d,g)=>Oe("/api/checkout/order-form/coupon",{body:{orderFormId:d,coupon:g}}),t=async(d,g)=>{if(g){const y=g.includes(" - ")?g.split(" - ")[0]:g,_=await Oe("/api/checkout/order-form/seller-code",{body:{orderFormId:d,sellerCode:y}},!0);return _ instanceof Object&&"nome"in _&&(_==null?void 0:_.status)===!0?Oe("/api/checkout/order-form/attachments",{body:{orderFormId:d,sellerCode:y,sellerName:_.nome}}).then(S=>({...S,openTextField:{...(S==null?void 0:S.openTextField)??{},statusOk:!0}})):Promise.resolve({paymentData:null,openTextField:{statusOk:!1,value:y}})}else return Oe("/api/checkout/order-form/attachments",{body:{orderFormId:d,sellerCode:"",sellerName:""}})},n=async(d,g)=>Oe("/api/checkout/order-form/attachments/marketing-data",{body:{orderFormId:d,marketingData:g}}),o=async(d,g,y)=>Oe("/api/checkout/order-form/items",{body:{orderFormId:d,orderItems:Ic(g,y)}}),s=async(d,g,y,_=!1)=>Oe("/api/checkout/order-form/offerings",{body:{id:g,itemIndex:y,orderFormId:d,remove:_}}),a=async d=>Oe("/api/checkout/order-form/items/remove-all",{body:{orderFormId:d}}),i=async(d,g="low")=>Oe("/api/checkout/order-form",{priority:g,body:{orderFormId:d??""}}),c=async(d,g)=>Oe("/api/checkout/order-form/profile",{body:{orderFormId:d,email:g}}),l=async(d,g,y)=>{const _=Tc(g,y);return Oe("/api/checkout/order-form/items/update",{body:{orderItems:_.updateItems,orderFormId:d}})},u=async(d,g,y)=>Oe("/api/checkout/order-form/shipping",{body:{orderFormId:d,country:y,postalCode:g}}),f=async(d,g,y)=>Oe("/api/checkout/order-form/shipping/update",{body:{orderFormId:d,options:g,selectedAddresses:y}}),h=async(d,g,y,_)=>{const b=Oc(g,y,_);return Oe("/api/checkout/order-form/items/update",{body:{orderFormId:d,orderItems:b}})};return{addCoupon:e,addItem:o,addSellerCode:t,addMarketingData:n,giftItem:s,emptyCart:a,getOrderForm:i,insertProfileEmail:c,removeItem:l,shipping:u,shippingUpdate:f,updateItemQuantity:async(d,g,y,_,b)=>h(d,g,y,_).then(S=>S&&Array.isArray(S.items)?Mc(S.items,y)?h(d,g,y,b):S:!1)}},Wo="soma::cart",$t="soma::options",Rt=yt.create((e,t)=>{const n=bm(),o=async(s,a,i)=>{e({loading:!0});const c=await $c(s);if(typeof c!="boolean"){e({...c});const l=await Bc(Ze.get($t),i);return Ze.set($t,l),Dc(c,a).finally(()=>e({loading:!1,options:l}))}return He};if(typeof window<"u"){const s=async a=>{if(a){const i=await Ze.get($t).then(u=>Fc(u,a.items));Ze.set(Wo,a),Ze.set($t,i),e({...a,options:i});const c=new URLSearchParams(window.location.search),l=c.get("utm_campaign")||c.get("utmi_campaign")||"";l&&o(()=>n.addSellerCode(t().id,l.toUpperCase()),"openTextField")}};return Ze.get(Wo).then(a=>n.getOrderForm(a?a.id:"").then(s)),{...Ho,addCoupon:async a=>o(()=>n.addCoupon(t().id,a),"marketingData"),addItem:(a,i)=>{o(()=>n.addItem(t().id,t().items,a),"items",i)},addSellerCode:async a=>o(()=>n.addSellerCode(t().id,a),"openTextField"),addMarketingData:async a=>o(()=>n.addMarketingData(t().id,a),"marketingData"),emptyCart:()=>{o(()=>n.emptyCart(t().id))},removeItem:async a=>{const i=await o(()=>n.removeItem(t().id,t().items,a),"items");return Lc(a,i)},shipping:async(a,i="BR")=>o(()=>n.shipping(t().id,a??"",i),"shippingData"),shippingUpdate:async a=>o(()=>{var i;return n.shippingUpdate(t().id,a,(i=t().shippingData)==null?void 0:i.selectedAddresses)},"shippingData"),toggleServiceToProduct:async(a,i,c)=>o(()=>n.giftItem(t().id,a,i,c),"items"),updateItemQuantity:async(a,i,c)=>{const{id:l,items:u}=t();return o(()=>{var f;return n.updateItemQuantity(l,u,a,i,((f=u.find(h=>h.id===a))==null?void 0:f.quantity)??1)},"items",c?[c]:void 0)},insertProfileEmail:async a=>o(()=>n.insertProfileEmail(t().id,a),"clientProfileData"),setIsOpen:a=>e({isOpen:a})}}return Ho}),jm=()=>Rt(e=>e),Wc=yt.create(e=>({notifications:[],actions:{addNotification:(t,n)=>e(o=>qc(o,t,n)),removeNotification:t=>e(n=>({notifications:n.notifications.filter(o=>o.id!==t)}))}})),ps=()=>Wc(e=>e.notifications),ms=()=>Wc(e=>e.actions),Cm=Object.freeze(Object.defineProperty({__proto__:null,KEY_INDEXED_OPTIONS:$t,KEY_INDEXED_STORE:Wo,useCartStore:Rt,useGetCartStoreState:jm,useGetNotificationActions:ms,useGetNotificationsStore:ps},Symbol.toStringTag,{value:"Module"})),Sm=6e3,Gc=x.createContext({}),Vc=({children:e,...t})=>{const{items:n}=Rt(),[o,s]=x.useState([]),a=x.useRef(null),i=x.useMemo(()=>Array.isArray(o)&&o.length>0?o.map(c=>n.find(l=>l.id===c.id)).filter(c=>c!==void 0):[],[n,o]);return x.useEffect(()=>{o.length&&(clearTimeout(a.current??0),a.current=setTimeout(()=>{s([])},Sm))},[o]),r.jsx(Gc.Provider,{value:x.useMemo(()=>({...t,setRecentlyAdded:s,recentlyAddedProducts:i}),[t,s,i]),children:e})},Wt=()=>{const e=x.useContext(Gc);if(e===void 0)throw new Error("useUIContext must be used within a UIProvider");return e};class Kc{constructor(){or(this,"events",{});or(this,"prevData",{})}subscribe(t,n){return this.events[t]||(this.events[t]=[]),this.events[t].push(n),()=>{this.events[t]=this.events[t].filter(o=>o!==n)}}publish(t,n){this.events[t]&&this.events[t].forEach(o=>{this.prevData[t]=n,o(n)})}}const Xc=x.createContext({}),Pm=({children:e,headerConfigs:t,pathname:n,...o})=>{const[s,a]=x.useState(!0),[i,c]=x.useState(!1),l=n==="/",u=x.useRef(new Kc),f=d=>d?{headerVariant:t.home_default_variant,bannerVariant:t.home_default_variant,position:t.home_default_position}:{headerVariant:t.default_variant,bannerVariant:t.default_variant,position:t.default_position},h=f(l),m=x.useRef(h);return x.useEffect(()=>{var y;const d=((y=new URLSearchParams(window.location.search))==null?void 0:y.toString())??"";(d.includes("utm_")||d.includes("gclid"))&&(Fo.get("lastMedias")||Fo.set("lastMedias",`${d}`,{expires:1/24}));const g=()=>{const _=typeof(window==null?void 0:window.navigator)>"u"?"":navigator==null?void 0:navigator.userAgent,b=window.innerWidth<1024||!!_.match(/Android|BlackBerry|iPhone|iPad|iPod|Opera Mini|IEMobile|WPDesktop/i);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 d=f(l);u.current.publish("header:change_variant",d.headerVariant),u.current.publish("header:change_position",d.position),m.current=d},[l]),r.jsx(Xc.Provider,{value:{isMobile:s,mediatorRef:u,currentHeaderConfigsRef:m,deviceValidated:i,...o},children:r.jsx(Vc,{children:e})})},ce=()=>x.useContext(Xc),Yc=x.createContext({}),wm=({children:e,...t})=>r.jsx(Yc.Provider,{value:{...t},children:e}),_e=()=>x.useContext(Yc),_t=(e,t)=>yt.create(n=>{const o=()=>n({value:e});return t&&t instanceof Set&&t.add(o),{value:e,actions:{setValue:s=>n({value:s}),reset:o}}}),Ht={category:null,menuMobileIsOpen:!1,searchModalIsOpen:!1,userMenuIsOpen:!1},Gt=new Set,Em=()=>{Gt.forEach(e=>{e()})},Qc=yt.create((e,t)=>{const n=()=>e({value:Ht.category});return Gt.add(n),{value:Ht.category,actions:{reset:n,setValue:o=>e(()=>({value:o})),updateValue:o=>{t().value!==o&&e({value:o})}}}}),Zc=()=>Qc(e=>e.value),Vt=()=>Qc(e=>e.actions),Jc=_t(Ht.menuMobileIsOpen,Gt),el=()=>Jc(e=>e.value),tl=()=>Jc(e=>e.actions),rl=_t(Ht.searchModalIsOpen,Gt),nl=()=>rl(e=>e.value),hs=()=>rl(e=>e.actions),ol=_t(Ht.userMenuIsOpen,Gt),gs=()=>ol(e=>e.value),ys=()=>ol(e=>e.actions),Rm=Object.freeze(Object.defineProperty({__proto__:null,resetAllHeaderStores:Em,useActionsHeaderCategory:Vt,useActionsMenuMobileIsOpen:tl,useActionsSearchModalIsOpen:hs,useActionsUserMenuIsOpen:ys,useGetHeaderCategoryStore:Zc,useGetMenuMobileIsOpen:el,useGetSearchModalIsOpen:nl,useGetUserMenuIsOpen:gs},Symbol.toStringTag,{value:"Module"})),At={selectedSkuInfo:{productId:"",name:"",size:"",sku:"",sellerId:"",sellerName:"",available:!1,quantity:1},openLetMeKnow:!1,openMeasurements:!1,showBottomNavigation:!1,showNotify:!1},It=new Set,Am=()=>{It.forEach(e=>{e()})},sl=yt.create(e=>{const t=()=>e({value:At.selectedSkuInfo});return It.add(t),{value:At.selectedSkuInfo,actions:{setValue:n=>e(o=>({value:{...o,...n}})),reset:t}}}),Kt=()=>sl(e=>e.value),al=()=>sl(e=>e.actions),il=_t(At.openLetMeKnow,It),Nm=()=>il(e=>e.value),Im=()=>il(e=>e.actions),cl=_t(At.showNotify,It),ll=()=>cl(e=>e.value),_s=()=>cl(e=>e.actions),ul=_t(At.showBottomNavigation,It),Tm=()=>ul(e=>e.value),Om=()=>ul(e=>e.actions),dl=_t(At.openMeasurements,It),fl=()=>dl(e=>e.value),pl=()=>dl(e=>e.actions),km=Object.freeze(Object.defineProperty({__proto__:null,resetAllPDPStores:Am,useActionsPDPOpenLetMeKnow:Im,useActionsPDPOpenMeasurements:pl,useActionsPDPSelectedSkuInfo:al,useActionsPDPShowBottomNavigation:Om,useActionsPDPShowNotify:_s,useGetPDPOpenLetMeKnow:Nm,useGetPDPOpenMeasurements:fl,useGetPDPSelectedSkuInfo:Kt,useGetPDPShowBottomNavigation:Tm,useGetPDPShowNotify:ll},Symbol.toStringTag,{value:"Module"})),ea={feedback:{active:!1,action:"add"},list:[]},vs=yt.create((e,t)=>({value:ea,actions:{reset:()=>e({value:ea}),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:""}}}))}})),Tt=()=>vs(e=>e.value.list),xs=()=>vs(e=>e.value.feedback),vt=()=>vs(e=>e.actions),Mm=Object.freeze(Object.defineProperty({__proto__:null,useActionsWishlistStore:vt,useGetWishlistFeedbackStore:xs,useGetWishlistStore:Tt},Symbol.toStringTag,{value:"Module"})),ml=x.createContext({}),Lm=({children:e,headerData:t,...n})=>{var f,h;const o=x.useRef(null),s=x.useRef(null),a=x.useRef(null),i=x.useRef(null),c=x.useRef(null),{mediatorRef:l,currentHeaderConfigsRef:u}=ce();return(f=l.current)==null||f.subscribe("header:change_variant",m=>{var b,S,v;if(m&&u.current&&(u.current.bannerVariant=m),!o.current)return;const g=document.body.scrollTop>0,y=o.current.getAttribute("data-interactiveVariant"),_=g?y:m??((b=u.current)==null?void 0:b.bannerVariant)??"default";_!==((S=u.current)==null?void 0:S.headerVariant)&&(o.current.setAttribute("data-bottomdivider",String(g)),o.current.setAttribute("data-variant",String(_)),(v=l.current)==null||v.publish("herobanner:change_controllers_variant",_),u.current&&(u.current.headerVariant=_))}),(h=l.current)==null||h.subscribe("header:change_position",m=>{o.current&&(o.current.style.position=m)}),x.useEffect(()=>{const m=new AbortController,d=p.helpers.throttle(()=>{var y;return(y=l.current)==null?void 0:y.publish("header:change_variant",null)},200);document.body.addEventListener("scroll",d,{passive:!0,signal:m.signal});const g=y=>{var b;(b=y.target.closest("a"))==null||b.blur()};return o.current&&(o.current.addEventListener("click",g,{signal:m.signal}),o.current.addEventListener("touchend",g,{signal:m.signal})),()=>{m.abort()}},[]),r.jsx(ml.Provider,{value:{headerData:t,structureRef:s,rootRef:o,tipbarRef:a,userMenuMobileRef:i,userMenuDesktopRef:c,...n},children:e})},we=()=>x.useContext(ml),hl=x.createContext({}),gl=({children:e,...t})=>r.jsx(hl.Provider,{value:x.useMemo(()=>t,[t]),children:e}),bs=()=>{const e=x.useContext(hl);if(e===void 0)throw new Error("useMenuMobileContext must be used within a MenuMobileProvider");return e},Dm=e=>{if(!e||typeof window>"u")return 0;const t=window.getComputedStyle(e);return parseInt(t.padding,10)},$m=(e,t,n)=>{if(!(e instanceof HTMLElement)||!(t instanceof HTMLElement))return{left:0,top:0};const o=t.getBoundingClientRect(),s=e.getBoundingClientRect(),a=e!=null&&e.parentElement?Dm(e==null?void 0:e.parentElement):0;return{left:o.left+o.width/2-(s.width+a),top:o.top+o.height+n}},yl=x.createContext({}),_l=({children:e,delay:t=600,gap:n=20,...o})=>{const[s,a]=x.useState(!1),i=x.useRef(null),[c,l]=x.useState(!1),[u,f]=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 m=window.document.querySelector("#cart-button"),d=window.document.querySelector("#add-to-cart--tooltip");if(m&&d){const{left:g,top:y}=$m(d,m,n??0);f({left:g,top:y}),l(!1)}},[n,s]),r.jsx(yl.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})},xt=()=>{const e=x.useContext(yl);if(e===void 0)throw new Error("useAddToCartContext must be used within a AddToCartProvider");return e},vl=x.createContext({}),zm=({children:e,CARTPROVIDER_MESSAGE_PRODUCT_REMOVE:t,...n})=>{const o=Rt(),{setRecentlyAdded:s}=Wt(),a=x.useRef(""),i=ps(),{addNotification:c,removeNotification:l}=ms(),{addCoupon:u,addItem:f,addSellerCode:h,addMarketingData:m,emptyCart:d,isOpen:g,removeItem:y,shipping:_,shippingUpdate:b,toggleServiceToProduct:S,updateItemQuantity:v}=o;x.useEffect(()=>{const F=Fo.get("lastMedias");if(o.id&&F&&a.current!==F){a.current=F;const G=new URLSearchParams(F),V=Uc(G);m(V)}},[o,m]);const j=x.useCallback(async(F,G)=>(G==="coupon"?u(F):h(F)).then(B=>{if(typeof B!="boolean"&&B instanceof Object){if(G==="seller"&&"value"in B){const{statusOk:J,value:A}=B,k=String(A??"").split(" - ");return jt((k==null?void 0:k[0])??"",F,!!J)}return jt(String(B.coupon),F,!0)}return jt("","")}).catch(()=>Promise.resolve({code:400})),[u,h]),P=x.useCallback((F,G,V)=>{const{id:B}=F;v(B,G,V)},[v]),E=x.useCallback((F,G,V=!1)=>{if(!F)return;const{id:B}=F,J=Uo(o.items,B);if(J!==-1&&!V){const A=Number(o.items[J].quantity),k=o.items[J]?A+1:1;P(F,k,G)}else f({id:B,quantity:(F==null?void 0:F.quantity)??1,seller:F.seller});g||s(A=>[...A,F])},[f,P,o.items,g,s]),C=x.useCallback((F,G)=>{if(!F||!Array.isArray(F))return;s(B=>[...B,...F]);const V=F.map(B=>{const{id:J,quantity:A,seller:k}=B,D=Uo(o.items,J),X=zc(A??1,D);return{id:J,quantity:X,seller:k}});f(V,G)},[f,o.items,s]),R=x.useCallback(async(F,G,V)=>F?y(F).then(()=>(c(G??`${t}`,V),jt(F,F))):Promise.resolve(jt("","Product id required")),[c,y]),I=x.useCallback(()=>{o.items.length>0&&d()},[d,o.items]),w=x.useCallback((F,G="BRA")=>_(F,G),[_]),N=x.useCallback(F=>{F&&b(F)},[b]),T=x.useCallback(async(F,G,V)=>{const B=o.items.findIndex(A=>A.id===F);return o.items[B]&&B>=0?S(G,B,V??!1):!1},[o.items,S]),z=x.useCallback(async(F,G)=>v(F,G).then(V=>{if(Array.isArray(V)){const B=V.find(J=>J.id===F);if(B&&(B==null?void 0:B.quantity)<G)return String(B.quantity)}return!1}),[v]),O=x.useCallback(async()=>{await m({...o.marketingData,coupon:""})},[m,o.marketingData]),W=x.useCallback(async()=>{await m({...o.marketingData,utmiCampaign:"",utmCampaign:"",utmSource:"",utmMedium:""})},[m,o.marketingData]),q=x.useCallback(async()=>{await _("","BRA")},[_]);return r.jsx(vl.Provider,{value:x.useMemo(()=>({...n,addCouponSeller:j,addToCart:E,addItemsToCart:C,cartStore:o,notifications:i,clearCart:I,addNotification:c,isOpen:o.isOpen,removeNotification:l,removeToCart:R,setIsOpen:o.setIsOpen,shipping:w,shippingUpdateOption:N,toggleGiftItemCart:T,updateItemQuantity:z,removeCoupon:O,removeSellerCode:W,removeCEP:q}),[n,j,E,C,i,I,c,o,l,R,w,N,T,z,O,W,q]),children:e})},Re=()=>{const e=x.useContext(vl);if(e===void 0)throw new Error("useCartContext must be used within a CartProvider");return e},xl=x.createContext({}),js=({children:e,fetch:t})=>{const n=x.useRef(!0),[o,s]=x.useState(null),[a,i]=x.useState(!1);return x.useEffect(()=>{(async()=>{n.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),n.current=!1}catch{n.current=!0,i(!0)}})()},[t]),r.jsx(xl.Provider,{value:x.useMemo(()=>({data:o,isLoading:n.current??!1,isError:a}),[o,a,n]),children:e})},Cs=()=>{const e=x.useContext(xl);if(e===void 0)throw new Error("useProductsContext must be used within a useRootContext");return e},bl=x.createContext({}),Ss=({children:e,sort:t,state:n,count:o,collectionId:s,brand:a,searchParams:i,ITEMS_PER_PAGE:c})=>{const l=x.useMemo(()=>{var u;return s?[{key:"productclusterids",value:s.toString()}]:a?[{key:"brand",value:a}]:(u=n.base)!=null&&u.length?n.base.slice(1).split("/").map((f,h)=>({key:`category-${h+1}`,value:f})):[]},[n.base,s]);return r.jsx(bl.Provider,{value:x.useMemo(()=>({state:{...n,facets:[...l,...n.facets??[]]},sort:t,count:o??c,searchParams:i}),[l,o,t,n,i]),children:e})},ze=()=>{const e=x.useContext(bl);if(e===void 0)throw new Error("useSearchContext must be used within a SearchProvider");return e},jl=x.createContext({}),Fm=({children:e,...t})=>r.jsx(jl.Provider,{value:t,children:e}),Le=()=>{const e=x.useContext(jl);if(e===void 0)throw new Error("usePLPConstants must be used within a PLPConstantsProvider");return e},Cl=x.createContext({}),Bm=({children:e,selectedFacets:t})=>{const{data:n,...o}=Cs(),{router:s}=_e(),{searchParams:a,PLP_SORT_DEFAULT:i}=Le(),c=x.useCallback((m,d)=>{if(d){if(m.key.toLocaleLowerCase()==="price"){const g=d.getAll("facets");d.delete("facets"),g.forEach(y=>{const[_]=y.split("/");_!==m.key&&d.append("facets",y)})}d.set("page","1"),d.append("facets",`${m.key}/${m.value}`),s.push(`?${d.toString()}`)}},[s]),l=x.useCallback(()=>{const m=new URLSearchParams;m.set("sort",i),m.set("page","1"),s.push(`?${m.toString()}`)},[s]),u=x.useCallback((m,d)=>{if(!d||!d.has&&!d.has("facets"))return;const g=d.getAll("facets");d.delete("facets"),d.set("page","1"),g.forEach(y=>{const[_,b]=y.split("/");(_!==m.key||b!==m.value)&&d.append("facets",y)}),s.push(`?${d.toString()}`)},[s]),f=x.useCallback(m=>{const d=a?new URLSearchParams(a):new URLSearchParams;for(const[,g]of d.entries()){const[y,_]=g.split("/");if(y===m.key&&_===m.value)return u(m,d)}return c(m,d)},[c,u,a]),h=x.useCallback(m=>{const d=a?new URLSearchParams(a):new URLSearchParams;d.set("sort",m.replace("_",":")),s.push(`?${d.toString()}`)},[s,a]);return r.jsx(Cl.Provider,{value:x.useMemo(()=>({...o,breadcrumb:n&&"breadcrumb"in n?n==null?void 0:n.breadcrumb:[],deleteAllFacets:l,facets:n&&"facets"in n?n==null?void 0:n.facets:[],selectedFacets:t,onToggleFacet:f,onSort:h,searchParams:a}),[n,l,h,f,o,t,a]),children:e})},Sl=({children:e,forceUpdate:t})=>{const{state:n}=ze();return r.jsx(js,{fetch:()=>fetch("/api/search/facets",{method:"POST",body:JSON.stringify({...n,forceUpdate:t}),priority:"low"}),children:r.jsx(Bm,{selectedFacets:(n==null?void 0:n.facets)??[],children:e})})},Pl=()=>{const e=x.useContext(Cl);if(e===void 0)throw new Error("useFacetsContext must be used within a FacetsProvider");return e},Lt={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"}},qm={nextPage:!1,previousPage:!1,startCursor:"0",endCursor:"0",count:0,total:0},Hm="Imagem do produto",ta=1,Um="Sair",Wm=e=>e.exit,ra=({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"}],Gm=(e,t)=>{const n=(t??"").split("@")[0];return e?`Olá${n.length?", ":" "}${n}!`:"Olá!"},Vm=e=>"Seja bem vindo!",Km="Marque a caixa para aceitar os termos de política de privacidade.",Xm="Algumas informações estão incorretas ou não foram preenchidas",Ym="Enviar",wl=x.createContext({}),Qm=({children:e})=>{const{data:t,...n}=Cs(),[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]),r.jsx(wl.Provider,{value:x.useMemo(()=>({...n,products:t&&"products"in t?t==null?void 0:t.products:[],pagination:t&&"pagination"in t?t==null?void 0:t.pagination:qm,total:o}),[t,n,o]),children:e})},Ps=({children:e,query:t,forceUpdate:n})=>{const{count:o,state:s}=ze(),a={...s,count:o};return r.jsx(js,{fetch:()=>fetch("/api/search/product",{method:"POST",body:JSON.stringify({...a,query:t,forceUpdate:n,facets:s.facets??[]})}),children:r.jsx(Qm,{children:e})})},Xt=()=>{const e=x.useContext(wl);if(e===void 0)throw new Error("useProductsContext must be used within a ProductsProvider");return e},El=x.createContext({}),Zm=({children:e,term:t})=>{const[n,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]),r.jsx(El.Provider,{value:x.useMemo(()=>({suggestedTerms:n,loading:s,setLoading:a}),[n,s]),children:e})},Jm=({children:e,...t})=>r.jsx(Zm,{...t,children:e}),eh=()=>{const e=x.useContext(El);if(!e)throw new Error("useSuggestedTermsContext must be used within a SuggestedTermsProvider");return e},Rl=x.createContext({searches:[],isLoading:!1,error:null}),th=({children:e})=>{const[t,n]=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();n(u.data.searches||[])}catch(l){i(l instanceof Error?l.message:"Erro desconhecido")}finally{s(!1)}})()},[]),r.jsx(Rl.Provider,{value:x.useMemo(()=>({searches:t,isLoading:o,error:a}),[t,o,a]),children:e})},rh=()=>{const e=x.useContext(Rl);if(!e)throw new Error("useTopSearches must be used within a TopSearchesProvider");return e},Al=x.createContext({}),nh=({children:e,slug:t,searchParams:n,collectionId:o,brand:s,itemsPerPage:a=24,PLP_SORT_DEFAULT:i})=>{const{pathname:c}=_e(),l=x.useRef(""),[u,f]=x.useState(!1),h=x.useMemo(()=>{const d=new URL(c,"http://localhost"),g=(n==null?void 0:n.getAll("facets"))??[],y=(n==null?void 0:n.get("page"))??"1",_=(n==null?void 0:n.get("sort"))??(o?"":i);return d.searchParams.set("page",String(y)),d.searchParams.set("sort",String(_)),n!=null&&n.get("query")?(d.searchParams.set("query",n.get("query")),d):(d.searchParams.set("base",Array.isArray(t)?t.join("/"):t),d.searchParams.set("facets",g.join(",")),d)},[o,c,n,t]),m=x.useMemo(()=>{if(Array.isArray(n==null?void 0:n.getAll("facets")))return U.parseSearchState(h,n.getAll("facets")??[""]);const d=(n==null?void 0:n.getAll("facets"))??[];return U.parseSearchState(h,d)},[h,n]);return x.useEffect(()=>{l.current!==c&&(l.current=c,window.document.body.scrollTo(0,0))},[c]),r.jsx(Al.Provider,{value:x.useMemo(()=>({openFilters:u,setOpenFilters:f}),[u,f]),children:r.jsx(Ss,{ITEMS_PER_PAGE:a,searchParams:n??new URLSearchParams,state:x.useMemo(()=>({...m}),[m]),collectionId:o,brand:s,children:e})})},ws=()=>{const e=x.useContext(Al);if(e===void 0)throw new Error("usePLPContext must be used within a PLPProvider");return e},Pr=(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)=>Pr(s,t[a]));if(Array.isArray(t))return!1;const n=Object.keys(e),o=Object.keys(t);return n.length!==o.length?!1:n.every(s=>Object.prototype.hasOwnProperty.call(t,s)&&Pr(e[s],t[s]))},Nl=(e,t,n="page")=>Object.keys(t).some(o=>o===n?!1:!Pr(t[o],e[o])),Go=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 n=await t.json();return n==null?void 0:n.data},Il=()=>({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}}}),Tl=(e,t,n,o=24)=>{const s=new Set,a=[];if(!Array.isArray(e)||e.length===0)return{taken:s,placedBanners:a};const i=t*o*n;for(const c of e){let l=Number(c.position_grid),u=!1;for(;l<i;){const f=l%n;if(f+c.columns>n){l+=n-f;continue}if(!Array.from({length:c.columns}).some((d,g)=>s.has(l+g))){for(let d=0;d<c.columns;d++)s.add(l+d);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}},Vo=(e,t,n,o=24)=>{const{placedBanners:s,taken:a}=Tl(e??[],t,n),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}},jr=(e,t,n=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:Es(),products:t!=null&&t.products.length&&e===a?t==null?void 0:t.products:Array.from({length:n},()=>Il())}}),Ol=(e,t)=>[...e,{loading:!1,page:t,pagination:Es(),products:[]}],Es=()=>({nextPage:!1,previousPage:!1,startCursor:"0",endCursor:"1",count:1,total:1}),oh=(e,t,n,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=n[c];return t.filter((u,f)=>{const h=o[f];return h<=l||s>i&&h>l})},kl=(e,t)=>{const n=new Map;for(const s of e){const a=Math.floor(s/t);n.has(a)||n.set(a,[]),n.get(a).push(s)}const o=[];for(const[,s]of n){const a=s[Math.floor(Math.random()*s.length)];o.push(a)}return o},Ml=(e,t)=>{if(!e)return[];const n=e.map((o,s)=>o.video&&o.video!==""?s:null).filter(o=>o);return kl(n,t)},Ll=e=>Array.isArray(e)?e.map((t,n)=>({href:`/${e.slice(0,n+1).join("/")}`,name:t})):[],sh=Object.freeze(Object.defineProperty({__proto__:null,createBreadcrumb:Ll,createPage:Ol,createPages:jr,createPagination:Es,createProduct:Il,deepEqual:Pr,fetchPage:Go,getBanners:Tl,getPositions:Vo,getProductsWithVideo:Ml,getRandomVideoPerRow:kl,getVisibleBanners:oh,hasStateChangedExceptPage:Nl},Symbol.toStringTag,{value:"Module"})),ah=50,ih=yt.create((e,t)=>{const n=i=>Math.min(i,ah),o=async(i,c)=>{const l=n(i.page);try{const u=await Go({...i,page:l});s(l,f=>c?c(f,u):{...f,...u})}catch(u){console.error(`[PDC - SCROLL INFINITE FAILED TO FETCH PAGE ${l}]: ${u}`),s(l,f=>({...f,loading:!1}))}},s=(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,m,d;const f=n(Number(i==null?void 0:i.page));e({...c,pages:jr(f,void 0,u)});try{const g=await Go({...i,page:f});if(g){if(!g.products.length&&((h=g==null?void 0:g.pagination)==null?void 0:h.total)<f){a({...i,page:(m=g==null?void 0:g.pagination)==null?void 0:m.total},l),e({pages:jr((d=g==null?void 0:g.pagination)==null?void 0:d.total)});return}typeof l=="function"&&l(g),e({load:!0,pages:jr(f,g),total:Number(g.pagination.count)})}}catch(g){console.error(`[PDC - SCROLL INFINITE TO CREATE PAGES]: page ${f} ${g}`)}},addPage:(i,c,l)=>{const{pages:u}=t(),f=n(i==null?void 0:i.page);u.some(h=>h.page===f)||(e({...c,pages:Ol(u,f)}),a(i,l))},updateProducts:(i,c)=>{const l=t().pages.find(u=>u.page===n(i==null?void 0:i.page));l!=null&&l.loading||a(i,c)}}}),ch=(e,t,n,o=0)=>{if(!e.length)return[];let s=0;const a=[];for(let i=0;i<e.length;i+=n){const c=e.slice(i,i+n),l=c.findIndex(u=>{var f;return(f=u.node)==null?void 0:f.video});for(let u=0;u<c.length;u++){const f=i+u,h=o+f,m=t.find(g=>g.position_grid===h+1),d=h+s+1;m&&(s+=m.columns),a.push({position:d,canPlayVideo:u===l})}}return a},Dl=(e,t,n)=>{const o=(t-1)*n,s=t*n;return e>=o&&e<=s},Tr=e=>{var t;return(t=e==null?void 0:e.map(n=>({disable:U.disableSKU(n),size:U.getSKUName(n),skuID:"sku"in n&&n.sku})))==null?void 0:t.filter(n=>n.disable)},lh=Object.freeze(Object.defineProperty({__proto__:null,createGridPosAndVideo:ch,getSkusNotify:Tr,isPositionInCurrentPage:Dl},Symbol.toStringTag,{value:"Module"})),$l=({isMobile:e,ICONS:t,NOTIFY_INFO:n})=>r.jsxs(r.Fragment,{children:[r.jsx(p.Modal.Controls,{navigation:e?"top":"middle",isMobile:e??!1,children:!e&&r.jsxs(r.Fragment,{children:[r.jsx(p.Button,{"data-close":!0,iconNameStart:t.arrow_left,size:"small",variant:"tertiary"}),r.jsx(p.Button,{"data-close":!0,iconNameStart:t.close,size:"small",variant:"tertiary"})]})}),r.jsx(p.Modal.Title,{navigation:e?"top":"middle",title:n.title})]});$l.displayName="Notify.Controls";const Xe={"notify--header-modifier":"_notify--header-modifier_xlomp_1","notify--container":"_notify--container_xlomp_4","notify--form":"_notify--form_xlomp_20","notify--status":"_notify--status_xlomp_36","notify--status--success":"_notify--status--success_xlomp_50","notify--status--error":"_notify--status--error_xlomp_50","notify--modal--body":"_notify--modal--body_xlomp_99","notify--loading":"_notify--loading_xlomp_102","notify--selector":"_notify--selector_xlomp_122","notify--selector--header":"_notify--selector--header_xlomp_138","modal-modifier":"_modal-modifier_xlomp_168"};function zl(e){const n=decodeURIComponent(window.document.cookie).split(";");for(const o of n){const[s,a]=o.trim().split("=");if(s===e)return a}}function Rs(e,t,n={}){const s={...{path:"/",expires:new Date(Date.now()+36e5)},...n};let a=`${encodeURIComponent(e)}=${encodeURIComponent(t??"")}`;for(const i in s)s[i]!==void 0&&(a+=`; ${i}`,i==="expires"?a+=`=${s[i].toUTCString()}`:typeof s[i]=="boolean"?a+=`; ${s[i]?"true":"false"}`:a+=`=${s[i]}`);window.document.cookie=a}const uh=()=>{const{sendDataLayerEvent:e}=le(),{user:t}=Ot(),{cartStore:n}=Re();return x.useEffect(()=>{if(!t)return;(async()=>{const{userId:s,email:a,firstName:i,lastName:c,phone:l,homePhone:u,postalCode:f,street:h,number:m,city:d,gender:g}=t,y=new TextEncoder().encode(s),_=await crypto.subtle.digest("SHA-256",y),S=Array.from(new Uint8Array(_)).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:f,street:h,street_number:m,city:d,gender:g,orderform_id:n==null?void 0:n.id}}})})()},[t,n.id]),null},Fl=x.createContext({amount:null,boxes:null,toExpire:null,loading:!0,logout:()=>null,getCurrentCredits:()=>({credits:0,cashback:0})}),dh=({children:e,AUTH_TOKEN_COOKIE:t})=>{const[n,o]=x.useState({amount:null,boxes:null,toExpire:null,loading:!0}),s=x.useCallback(async()=>{try{await fetch("/api/user",{priority:"low"}).then(c=>c.json()).then(c=>{const{userCredits:l,...u}=c,{wishlist:f,...h}=u;o({amount:l==null?void 0:l.amount,boxes:l==null?void 0:l.boxes,toExpire:l==null?void 0:l.toExpire,user:h,loading:!1,wishlist:(typeof f=="string"?f.split(","):f)??[]})})}catch(c){console.error("my credits request",c),o({...n,loading:!1})}},[o]),a=x.useCallback(()=>{Rs(t),s()},[s]),i=x.useCallback(()=>n.boxes?n.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},[n]);return x.useEffect(()=>{s()},[s]),r.jsxs(Fl.Provider,{value:x.useMemo(()=>({...n,getCurrentCredits:i,logout:a}),[n,i,a]),children:[r.jsx(uh,{}),e]})},Ot=()=>{const e=x.useContext(Fl);if(e===void 0)throw new Error("useContext(SessionContext) must be used within a SessionProvider");return e},Bl=({color:e,delay:t=3e3,sku:n,setStatus:o,setIsLoading:s,NEWSLETTER_CONFIGS:a,NOTIFY_INFO:i})=>{const c=x.useRef(null),[l,u]=x.useState(null),{sendDataLayerEvent:f}=le(),{user:h}=Ot(),m=h!=null&&h.firstName?`${h==null?void 0:h.firstName} ${h==null?void 0:h.lastName}`:"";return r.jsx("div",{className:Xe["notify--form"],children:r.jsxs("form",{action:"POST",onSubmit:async d=>{var _;d.preventDefault();const g=d.currentTarget,y=((_=g.querySelector("input"))==null?void 0:_.value)??"";fetch("/api/aviseme",{method:"POST",body:JSON.stringify({userName:m,email:y,sku:n==null?void 0:n.skuID})}).then(b=>o(b.ok)).finally(()=>{s(!1),g.reset(),f({functionKey:"readyEvents",data:{event:"notify_me",readyData:{size:n==null?void 0:n.size,item_id:n==null?void 0:n.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:[r.jsx(p.TextField.Structure,{input:r.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:d=>u(!d.target.validity.valid),required:!0}),supportText:typeof l=="boolean"&&l?r.jsx(p.TextField.SupportText,{text:a.messages.invalid_email,feedback:"error"}):r.jsx(r.Fragment,{})}),r.jsx(p.Button,{disabled:!(l===!1||!n)||!n,type:"submit",size:"large",children:i.button})]})})};Bl.displayName="Notify.Form";const ql=({isLoading:e=!1})=>r.jsx("div",{className:Xe["notify--loading"],"data-loading":e,children:r.jsx(p.Spinner,{})});ql.displayName="Notify.Loading";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"},Hl=({children:e,...t})=>r.jsx("div",{...t,className:As["product-variation-list--list"],children:e});Hl.displayName="ProductVariationList.List";const Ul=({fill:e="#1352C7",src:t="",type:n="size",text:o,...s})=>{const{nextimage:a}=_e();return n==="size"?r.jsxs(p.ToggleSize.Wrapper,{...s,size:"large",variation:"ghost",children:[r.jsx(p.ToggleSize.DisabledAdornment,{title:"disabled-adornment-size"}),r.jsx(p.ToggleSize.Text,{children:o})]}):r.jsxs(p.ToggleStyle.Wrapper,{...s,size:"small",title:"wrapper-texture",children:[r.jsx(p.ToggleStyle.DisabledAdornment,{title:"disabled-adornment-texture"}),n==="color"?r.jsx(p.ToggleStyle.Color,{background:e,title:"color"}):r.jsx(p.ToggleStyle.Texture,{title:"texture",children:r.jsx(a,{alt:o??"image",height:40,src:t,width:40})})]})};Ul.displayName="ProductVariationList.Option";const Wl=({children:e,...t})=>r.jsx("div",{className:As["product-variation-list"],...t,children:e});Wl.displayName="ProductVariationList.Root";const Gl=({children:e,title:t,...n})=>r.jsxs("div",{...n,className:As["product-variation-list--title"],children:[t?r.jsx(p.TextStructure.Root,{children:r.jsx(p.TextStructure.SectionWrapper,{children:r.jsx("p",{children:t})})}):r.jsx(r.Fragment,{}),e]});Gl.displayName="ProductVariationList.Title";const Qe={List:Hl,Option:Ul,Title:Gl,Root:Wl},fh=(e,t)=>{if(!e||!t)return!1;const n=Object.keys(e);return n.length!==Object.keys(t).length?!1:n.every(o=>e[o]===t[o])},Vl=({children:e,label:t="",skus:n,sku:o,setSku:s})=>r.jsxs(r.Fragment,{children:[r.jsx("div",{className:Xe["notify--selector--header"],children:e}),r.jsxs(Qe.Root,{className:Xe["notify--selector"],children:[r.jsx(Qe.Title,{title:t}),r.jsx(Qe.List,{children:Array.isArray(n)&&n.map((a,i)=>{const c=fh(o,a);return r.jsx(Qe.Option,{active:c,onClick:()=>s(c?null:a),text:String(a.size),type:"size"},i)})})]})]});Vl.displayName="Notify.Selector";const na=({type:e,icon:t,title:n,subtitle:o})=>r.jsx("div",{className:Xe[`notify--status--${e}`],children:r.jsx(p.TextStructure.Root,{adornment:{start:r.jsx(p.Icon,{name:t,size:"large"})},children:r.jsxs(p.TextStructure.DivWrapper,{children:[r.jsx("h2",{children:n}),r.jsx("h3",{children:o})]})})}),Kl=({status:e,ICONS:t,PRODUCT_CARD_TEXTS:n})=>r.jsxs("div",{className:Xe["notify--status"],"data-status":e,children:[r.jsx(na,{...n.success,icon:t.check_circle,type:"success"}),r.jsx(na,{...n.error,icon:t.alert_circle,type:"error"})]});Kl.displayName="Notify.Status";const Ns=({color:e,open:t,setVisible:n,skus:o,sku:s,setSku:a,ICONS:i,NEWSLETTER_CONFIGS:c,NOTIFY_INFO:l,PRODUCT_CARD_TEXTS:u,Z_INDEX_WAR:f})=>{const[h,m]=x.useState(!1),[d,g]=x.useState(null),{isMobile:y}=ce();return r.jsxs(p.Modal.Root,{isMobile:y??!1,isOpen:t,setIsOpen:n,variant:y?"sideBottom":"sideLeft",style:{zIndex:f.modal},className:Xe["modal-modifier"],children:[r.jsx(p.Modal.Header,{navigation:"top",className:Xe["notify--header-modifier"],children:r.jsx($l,{isMobile:y??!1,ICONS:i,NOTIFY_INFO:l})}),r.jsxs(p.Modal.Body,{className:Xe["notify--modal--body"],children:[r.jsxs("div",{className:Xe["notify--container"],children:[r.jsxs(Vl,{label:l.selector_label,sku:s,skus:o,setSku:a,children:[r.jsx("p",{children:l.subtitle}),r.jsx("span",{children:l.description})]}),r.jsx(Bl,{delay:4e3,sku:s,setStatus:g,setIsLoading:m,color:e,NEWSLETTER_CONFIGS:c,NOTIFY_INFO:l}),r.jsx(ql,{isLoading:h}),r.jsx("div",{className:Xe["notify--selector--header"],children:r.jsx("span",{children:l.legal})})]}),r.jsx(Kl,{status:d,ICONS:i,PRODUCT_CARD_TEXTS:u})]})]})};Ns.displayName="Notify";const Or=({skus:e,ICONS:t,NEWSLETTER_CONFIGS:n,NOTIFY_INFO:o,PRODUCT_CARD_TEXTS:s,Z_INDEX_WAR:a,...i})=>{const c=Tr(e??[]);return r.jsx(Ns,{skus:c,ICONS:t,NEWSLETTER_CONFIGS:n,NOTIFY_INFO:o,PRODUCT_CARD_TEXTS:s,Z_INDEX_WAR:a,...i})};Or.displayName="PDC.Notification";const Xl=x.createContext({}),Yl=({banners:e,children:t})=>{const{searchParams:n,ITEMS_PER_PAGE:o,ICONS:s,NEWSLETTER_CONFIGS:a,NOTIFY_INFO:i,PRODUCT_CARD_TEXTS:c,Z_INDEX_WAR:l}=Le(),{router:u}=_e(),{sendDataLayerEvent:f}=le(),{isMobile:h}=ce(),{state:m}=ze(),{addPage:d,createPages:g,updateProducts:y,..._}=ih(),b=h?8:16,S=h?2:4,v=x.useRef(!1),j=x.useRef(m),[P,E]=x.useState(!1),[C,R]=x.useState(null),[I,w]=x.useState([]),N=x.useCallback(q=>{q&&"pagination"in q&&f({functionKey:"productListEvent",data:{event:"view_item_list",commonData:{products:q.products}}})},[f]),T=x.useCallback(q=>{if(q.pagination.nextPage===!0){const F=q.page+1,G=Vo(e,F,S,o);d({...m,page:F},G,N)}},[d,e,N,S,o,m]),z=x.useCallback(q=>{q.loading===!1&&y({...m,page:q.page},N)},[N,y,m]),O=x.useCallback(q=>{const F=new URLSearchParams(n);q.page!==Number(F.get("page")??1)&&(F.set("page",String(q.page)),u.replace(`?${F.toString()}`,{scroll:!1}))},[u,n]),W=x.useCallback((q,F)=>{const G=F?Tr([F]):null;w(q),R(G!=null&&G.length?G[0]:null),E(!0)},[]);return x.useEffect(()=>{const q=!v.current,F=Nl(j.current,m),G=Vo(e,m.page,S);q?g(m,G,N,o):F&&(g(m,G,N,o),j.current=m),v.current=!0},[e,g,N,S,o,m]),r.jsxs(Xl.Provider,{value:x.useMemo(()=>({..._,addPage:d,addNewPage:T,createPages:g,gap:b,columns:S,handleNotify:W,updatePage:z,updateProducts:y,updateParamPage:O}),[d,T,g,W,b,S,_,z,y,O]),children:[t,r.jsx(Or,{open:P,sku:C,skus:I,setSku:R,setVisible:E,ICONS:s,NEWSLETTER_CONFIGS:a,NOTIFY_INFO:i,PRODUCT_CARD_TEXTS:c,Z_INDEX_WAR:l})]})},st=()=>{const e=x.useContext(Xl);if(e===void 0)throw new Error("PLPInfiniteScrollContext must be used within a ScrollInfiniteProvider");return e},Ql=x.createContext({gridBanners:void 0,banners:[]}),ph=({children:e,data:t,device:n,SectionZone:o,COMMON_PAGE_COLUMN_GAP_PDC:s})=>{const{isMobile:a}=ce(),i=(t==null?void 0:t.sections.filter(h=>h.name!=="List Product Banners"))??[],c=i.slice(0,ta),l=i.slice(ta,i.length),u=t==null?void 0:t.sections.find(h=>h.name==="List Product Banners"),f=x.useMemo(()=>{var h,m;return((m=(h=u==null?void 0:u.data)==null?void 0:h.banners)==null?void 0:m.map(d=>({...d.banner,columns:d.bannerWidth,position_grid:d.bannerPosition})))??[]},[u]);return a&&n==="mobile"||!a&&n==="desktop"?r.jsxs(Ql.Provider,{value:{gridBanners:u,banners:f},children:[r.jsx(o,{data:c??[]}),r.jsxs(p.Utils.Column,{gap:s,className:p.helpers.classNameConcat("utils-column-modifier"),children:[e,r.jsx(o,{data:l??[]})]})]}):r.jsx(r.Fragment,{})},kr=()=>{const e=x.useContext(Ql);return e===void 0&&console.error("Needs PLPContentContext on parent component"),e},Zl=x.createContext({}),Jl=({children:e,filters:t,PLP_FILTERS:n,...o})=>{var a;const s=(a=t.facets)==null?void 0:a.filter(i=>n.find(c=>c.key===i.key));return r.jsx(Zl.Provider,{value:x.useMemo(()=>({...o,filters:{...t,facets:s}}),[t,s,o]),children:e})},kt=()=>{const e=x.useContext(Zl);if(e===void 0)throw new Error("useFilterContext must be used within a FilterProvider");return e},eu=x.createContext({product:void 0}),mh=({children:e,data:t,productId:n,COMMON_PAGE_COLUMN_GAP:o,SectionZone:s})=>r.jsxs(eu.Provider,{value:{productId:n},children:[e,r.jsx(p.Utils.Column,{gap:o,className:p.helpers.classNameConcat("utils-column-modifier"),children:r.jsx(s,{data:(t==null?void 0:t.sections)??[]})})]}),tu=()=>{const e=x.useContext(eu);return e||console.error("use this hook only inside PDPContentProvider hierarchy"),e},hh=e=>e.normalize("NFD").replace(/[\u0300-\u036f]/g,"").replace(/\s+/g,"-").toLowerCase().trim();function gh(e,t=1e3){let n=!1;return(...o)=>{n||(e(...o),n=!0,setTimeout(()=>{n=!1},t))}}function yh(e,t=1e3){let n;return(...o)=>{clearTimeout(n),n=setTimeout(()=>{e(...o)},t)}}const ru=(e,t)=>t.getTime()>e.getTime()?Math.abs(t.getTime()-e.getTime()):0,zt=(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),_h=e=>{const t=em.decodeJwt(e??"");return{email:t.sub,userId:t.userId}},vh=["name","email","phone","date","cpf","cep"],oa={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}$/},nu=({type:e,input:t,required:n=!1})=>{if(typeof t!="string"||!n&&t===""||!oa[e])return!0;const o=t.trim();return oa[e].test(o)},xh=e=>{const t=/\/(\d+)-\d+-\d+\/(.+?)\./,n=typeof e=="string"?e.match(t):null;return n?n[2].replace(/-/g," "):Hm},bh=Object.freeze(Object.defineProperty({__proto__:null,FieldTypes:vh,debounce:yh,getAltTextFromUrl:xh,getAuthenticatedUser:_h,getCookie:zl,getDaysHoursMinutesSeconds:zt,getMilliSeconds:ru,removeAccentsAndReplaceSpaces:hh,setCookie:Rs,throttle:gh,validateInput:nu},Symbol.toStringTag,{value:"Module"})),jh=({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}},Ch=({formData:e,mountedFields:t,inputsStatus:n,hasTermsAndConditions:o,checkboxRef:s,setFormStatus:a})=>{let i=!1,c=!1;const l={...n};return o&&!s.current&&(a("unchecked"),i=!0),e.forEach((u,f)=>{var d;if(f==="terms-and-conditions")return;const h=(d=t[f])==null?void 0:d.required;if(h&&!u){l[f]="required",i=!0;return}nu({type:t[f].type,input:u,required:h})||(l[f]="error",c=!0),typeof u=="string"&&e.set(f,u.toString().trim())}),{hasEmptyFields:i,hasErrors:c,inputStatusToUpdate:l}},ou=x.createContext({}),su=({children:e,masterDataEmailField:t,fields:n,variant:o,CONSTANTS:{MASTER_DATA_ENTITY:s,NEWSLETTER_CONFIGS:a}})=>{const{sendDataLayerEvent:i}=le(),c=a.hasTermsAndConditions,{mountedFields:l,mountedInputsStatus:u}=x.useMemo(()=>jh({fields:n}),[n]),f=x.useRef(!1),[h,m]=x.useState("idle"),[d,g]=x.useState(u),y=async({searchFields:E,entity:C})=>{const R=await mt.post("/api/master-data/search",{body:{masterDataEntity:C,searchFields:E,headers:{"REST-Range":"resources=0-49"}}});return console.info(R),R.data},_=async({documentId:E,fieldsToBeUpdated:C,entity:R})=>(await mt.post("/api/master-data/update",{dataEntityName:R,documentId:E,fieldsToBeUpdated:C})).status,b=x.useCallback(async({payload:E,response:C},R,I)=>{var O;const{email:w,...N}=E,[T]=await y({searchFields:{[R]:w},entity:I??s.newsletter}),z=Array.isArray(T)?(O=T[0])==null?void 0:O.id:void 0;return T&&await _({documentId:z,fieldsToBeUpdated:N,entity:I??s.newsletter})!==204?{...C,status:"error"}:{...C,status:"success"}},[]),S=x.useCallback(async({formData:E},C,R)=>{const I={status:"idle",inputsStatus:{}},w={};E.forEach((N,T)=>{w[T]=N});try{const T=(await mt.post("/api/master-data",{body:{payload:w,masterDataEntity:C??s.newsletter}})).data;return(T==null?void 0:T.Message)==="duplicated entry"?b({payload:w,response:I},R,C):T!=null&&T.Id?{...I,status:"success"}:{...I,status:"error"}}catch(N){return console.error("error",N),{...I,status:"error"}}},[b]),v=x.useCallback(async(E,C,R)=>{E.preventDefault();const I=new FormData(E.target);if(I.append("acceptedTerms",f.current?"true":"false"),f.current){const N=new Bo.TZDate(new Date,"America/Sao_Paulo").toISOString();I.append("termsAcceptedAt",N)}C&&Object.keys(C).forEach(N=>{I.append(N,C[N])});const w=await S({formData:I},R??"",t);w&&(m(w==null?void 0:w.status),g(w.inputsStatus),w.status==="success"&&i({functionKey:"readyEvents",data:{event:"generate_lead"}}))},[t,S,m,g,i]),j=x.useCallback(E=>{const C=new FormData(E.currentTarget.parentElement),{hasEmptyFields:R,hasErrors:I,inputStatusToUpdate:w}=Ch({formData:C,mountedFields:l,inputsStatus:d,hasTermsAndConditions:c,checkboxRef:f,setFormStatus:m});if(g(w),R||I){E.preventDefault();return}m("loading")},[l,d,c,f]),P=x.useCallback(()=>{m("idle"),g(u)},[u]);return r.jsx(ou.Provider,{value:x.useMemo(()=>({formStatus:h,handleSubmit:v,setFormStatus:m,inputsStatus:d,setInputsStatus:g,hasTermsAndConditions:c,handleClickToSubmit:j,checkboxRef:f,masterDataEmailField:t,fields:n,variant:o,resetNewsletter:P}),[h,v,m,d,g,j,c,f,t,n,o,P]),children:e})},Is=()=>{const e=x.useContext(ou);if(e===void 0)throw new Error("useNewsletterContext must be used within a NewsletterProvider");return e},au={contexts:{addToCart:{hook:xt,provider:_l},cart:{hook:Re,provider:zm},cms:{FlagsAndTags:{context:us,hook:nt,provider:tm}},newsletter:{hook:Is,provider:su},events:{hook:le,provider:lm},global:{hook:ce,provider:Pm,mediator:Kc},header:{hook:we,provider:Lm},menuMobile:{hook:bs,provider:gl},next:{hook:_e,provider:wm},pdp:{provider:rm},PDPContent:{provider:mh,hook:tu},plp:{provider:nh,hook:ws},plpFilter:{hook:kt,provider:Jl},PLPContent:{provider:ph,hook:kr},plpInfinite:{provider:Yl,hook:st},pdpdata:{provider:um},searchFacets:{hook:Pl,provider:Sl},searchProducts:{hook:Xt,provider:Ps},searchRoot:{hook:Cs,provider:js},searchSearch:{hook:ze,provider:Ss},searchSuggestedTerms:{hook:eh,provider:Jm},searchTopSearchs:{hook:rh,provider:th},session:{hook:Ot,provider:dh},ui:{hook:Wt,provider:Vc}},hooks:{useBackPDC:yc,useClipboard:dm,useDisableZoom:Ec,useLocalStorage:pm,useOnScreen:ds,useSentinel:Ir,useTouchZoomPan:Rc},stores:{cart:Cm,header:Rm,pdp:km,wishlist:Mm}},Sh={cart:xm,events:cm,plp:sh,product:U.productHelpers,utils:bh},Ts={helpers:Sh},qe={"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"},iu=({brand:e,className:t,name:n,...o})=>r.jsxs("div",{...o,className:p.helpers.classNameConcat(qe["add-to-cart--card--name"],t),children:[r.jsx(p.Tag,{style:{textTransform:"uppercase"},size:"small",variant:"quaternary",title:e,children:e}),r.jsx(p.TextStructure.Root,{children:r.jsx(p.TextStructure.DivWrapper,{alignContent:"flex-start",alignItems:"flex-start",children:r.jsx("p",{className:"typography-style-body-md",children:n})})})]});iu.displayName="AddToCart.Card.Name";const cu=({className:e,listPrice:t,price:n,quantity:o,productId:s,...a})=>{const i=U.formatPriceToCurrency(n/100),c=U.formatPriceToCurrency(t/100);return r.jsx("div",{...a,className:p.helpers.classNameConcat(qe["add-to-cart--card--price-quantity"],e),children:r.jsx(p.ProductInfo.Root,{size:"small",layout:"vertical",children:r.jsx(p.ProductInfo.Wrapper,{size:"small",layout:"vertical",children:r.jsx(p.ProductInfo.ValuesWrapper,{children:n!==t?r.jsxs(r.Fragment,{children:[r.jsx(p.ProductInfo.Price,{label:"originalPrice",value:i,size:"small"},"price-list"),r.jsx(p.ProductInfo.Price,{label:"discountPrice",value:c,size:"small"},"price-low")]}):r.jsx(p.ProductInfo.Price,{label:"defaultPrice",value:c,size:"small"},"price-low")})})})})};cu.displayName="AddToCart.Card.PriceQuantity";const Ph="_skeleton_12b79_1",wh={skeleton:Ph},lu=({style:e})=>r.jsx("div",{style:e,className:wh.skeleton}),Eh="_image_lypfr_1",Rh={image:Eh},Ah=({alt:e,className:t,objectFit:n,...o})=>{const{nextimage:s}=_e();return r.jsx(s,{quality:90,...o,alt:e??"",className:p.helpers.classNameConcat(Rh.image,t),"data-object-fit":n??"cover"})},Nh=({videoRef:e,...t})=>r.jsx("video",{...t,ref:e,children:r.jsx("track",{kind:"captions"})}),Ie={Image:Ah,Video:Nh},uu=({className:e,productGroupID:t,size:n,texture:o,...s})=>{const{CONSTANTS:{TEXTURE_IMAGE:a,TOGGLE_STYLE_MODIFIER:i}}=xt(),[c,l]=x.useState(o??"");return x.useEffect(()=>{c||fetch("/api/catalog/product/info",{method:"POST",priority:"low",body:JSON.stringify({ids:[t]})}).then(u=>u.json()).then(u=>{const f=u.data[0].items[0];if(f){const h=f.images.find(m=>a.includes(m.imageLabel));h!=null&&h.imageUrl?l(h.imageUrl):l(f.images[0].imageUrl)}}).catch(u=>{console.error(u)})},[c,t]),r.jsxs("div",{...s,className:p.helpers.classNameConcat(qe["add-to-cart--card--style-size"],e),children:[r.jsx(p.ToggleStyle.Wrapper,{size:"x-small",style:i,children:r.jsx(p.ToggleStyle.Texture,{children:c?r.jsx(Ie.Image,{alt:"",src:c??"",width:164,height:164,style:i}):r.jsx(lu,{})})}),r.jsx(p.Utils.Divider,{direction:"vertical",size:"medium",style:{height:24}}),n&&r.jsxs(p.ToggleSize.Wrapper,{size:"small",title:"wrapper-texture",children:[r.jsx(p.ToggleSize.DisabledAdornment,{title:"disabled-adornment-texture"}),r.jsx(p.ToggleSize.Text,{children:n})]})]})};uu.displayName="AddToCart.Card.StyleSize";const{helpers:Ih}=Ts,du=({className:e,item:t,texture:n,...o})=>{const{itemOffered:{name:s,brand:a,skuName:i,isVariationOf:{productGroupID:c}},quantity:l,price:u,sellingPrice:f}=t,{CONSTANTS:{NAME_SPLIT_SYMBOL:h}}=xt(),{size:m}=Ih.product.getColorAndSizeFromSkuName(i??s,h);return r.jsxs("div",{...o,className:p.helpers.classNameConcat(qe["add-to-cart--card--content"],e),children:[r.jsx(iu,{brand:a.name,name:s}),r.jsx(cu,{price:u,listPrice:f,quantity:l,productId:t.id}),r.jsx(uu,{size:m,texture:n,productGroupID:c})]})};du.displayName="AddToCart.Card.Content";const fu=({image:e,thumbnail:t=!1})=>r.jsx(Ie.Image,{alt:e.alternateName??"image","data-thumbnail":t,height:t?152:120,src:e.url,width:t?152:94});fu.displayName="AddToCart.Card";const pu=({className:e,item:t,texture:n,thumbnail:o,...s})=>{const{itemOffered:{image:[a]}}=t,i=U.updatedResizedImg(a.url,{width:200,height:300});return r.jsxs("div",{...s,className:p.helpers.classNameConcat(qe["add-to-cart--card"],e),children:[r.jsx(fu,{image:{alternateName:a.alternateName||"Produto",url:i||""},thumbnail:o}),!o&&r.jsx(du,{item:t,texture:n})]})};pu.displayName="AddToCart.Card";const mu=({className:e,children:t,title:n,...o})=>r.jsxs("div",{...o,className:p.helpers.classNameConcat(qe["add-to-cart--content"],e),children:[r.jsx("div",{className:qe["add-to-cart--content--title"],children:n&&r.jsx("h2",{children:n})}),t,r.jsx(ht.Footer,{})]});mu.displayName="AddToCart.Layout.Content";const hu=({className:e,...t})=>{var d,g;const{isMobile:n,handleClose:o,CONSTANTS:{ADD_TO_CART:s}}=xt(),{cartStore:{totalizers:a},setIsOpen:i}=Re(),c=(d=a.find(y=>y.id==="Discounts"))==null?void 0:d.value,l=((g=a.find(y=>y.id==="Items"))==null?void 0:g.value)??0,u=a.find(y=>y.id==="Shipping"),h=(l-Math.abs(c??0)+((u==null?void 0:u.value)??0))/100,m=U.formatPriceToCurrency(h??0);return r.jsxs("div",{...t,className:p.helpers.classNameConcat(qe["add-to-cart--footer"],e),children:[r.jsxs("div",{className:qe["add-to-cart--footer--total"],children:[r.jsx("span",{children:"Subtotal:"}),r.jsx("span",{children:m})]}),r.jsx(p.Button,{size:"medium",variant:"primary","data-close":!0,onClick:()=>i(!0),children:s.footer.bag}),n?r.jsx(p.Button,{"data-close":!0,size:"medium",variant:"tertiary",children:s.footer.keep_buying}):r.jsx(p.Button,{onClick:()=>o(),size:"medium",variant:"tertiary",children:s.footer.keep_buying})]})};hu.displayName="AddToCart.Layout.Footer";const gu=({children:e,className:t,thumbnail:n=!1,...o})=>{const{cartStore:{options:s}}=Re(),{recentlyAddedProducts:a}=Wt(),i=a.length>3?4:a.length;return r.jsxs("div",{...o,className:qe["add-to-cart--items"],"data-thumbnail":n,children:[Array.isArray(a)&&a.filter((c,l)=>l<i).map(c=>{var u;const l=(u=s==null?void 0:s.find(f=>f.id===c.itemOffered.isVariationOf.productGroupID))==null?void 0:u.texture;return r.jsx(ht.Card,{item:c,thumbnail:n,texture:l},c.itemOffered.sku)}),e]})};gu.displayName="AddToCart.Layout.Items";const yu=({children:e,Z_INDEX_WAR:t})=>{const{isOpen:n,setIsOpen:o}=xt(),{isMobile:s}=ce();return r.jsxs(p.Modal.Root,{"data-modal":"add-to-cart--modal",className:qe["add-to-cart__modal"],isMobile:s??!1,isOpen:n,setIsOpen:o,variant:"sideBottom",style:{zIndex:t.modal},children:[r.jsx(p.Modal.Header,{navigation:"top",children:r.jsx(p.Modal.Controls,{navigation:"top",isMobile:!0})}),r.jsx(p.Modal.Body,{children:e})]})};yu.displayName="AddToCart.Modal";const Th=({children:e})=>{const{count:t,handleClose:n,setIsOpen:o}=xt(),s=x.useRef(t);return x.useEffect(()=>{t>s.current&&o(!0),t<s.current&&s.current>=1&&n(),s.current=t},[t,n,o]),r.jsx(r.Fragment,{children:e})},_u=({children:e,component:t,CONSTANTS:n,...o})=>{const{recentlyAddedProducts:s}=Wt(),{isMobile:a}=ce(),i=s.length>3?4:s.length;return r.jsx(_l,{...o,count:i,isMobile:a,CONSTANTS:n,children:r.jsx(Th,{children:a?r.jsxs(r.Fragment,{children:[r.jsx(ht.Modal,{Z_INDEX_WAR:n.Z_INDEX_WAR,children:t}),e]}):r.jsx(ht.Tooltip,{component:t,style:{width:350},Z_INDEX_WAR:n.Z_INDEX_WAR,children:e})})})};_u.displayName="AddToCart.Root";const vu=({children:e,component:t,Z_INDEX_WAR:n,...o})=>{const{contentRef:s,left:a,isLeaving:i,target:c,isOpen:l,top:u}=xt();return r.jsx(p.Tooltip.Root,{arrow:"top-right",component:r.jsx("div",{...o,ref:s,children:t}),id:"add-to-cart--tooltip",className:qe["add-to-cart--tooltip"],style:{zIndex:n.modal},isLeaving:i,isOpen:l,left:a,size:"medium",position:"top",top:u,children:r.jsx("div",{className:qe["add-to-cart--tooltip"],ref:c,children:e})})};vu.displayName="AddToCart.Tooltip";const ht={Card:pu,Content:mu,Footer:hu,Items:gu,Modal:yu,Root:_u,Tooltip:vu},Os=({title:e,...t})=>{const{recentlyAddedProducts:n}=Wt(),{isMobile:o}=ce(),s=n.length>3?4:n.length,a=n.length>(s??1),i=n.length>1;return r.jsx(ht.Root,{isMobile:o,count:n.length,component:r.jsx(ht.Content,{title:e,children:r.jsx(ht.Items,{thumbnail:i,children:a&&r.jsx(p.Badge.Count,{count:n.length-s,size:"medium",variant:"secondary"})})}),...t})};Os.displayName="AddToCart";const sa={"backtotop-btn":"_backtotop-btn_vcjsm_1","card-modifier":"_card-modifier_vcjsm_29"},Oh=({children:e,className:t,adornment:n,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&&n?{flexDirection:{top:"column",bottom:"column-reverse",left:"row",right:"row-reverse"}[o]}:{},f=()=>{window&&window.document.body.scrollTo({...c})};return r.jsx(p.Card,{...i,shadow:!0,padding:"small",className:p.helpers.classNameConcat(sa["card-modifier"],t),style:{...a,padding:0},children:r.jsxs("button",{className:sa["backtotop-btn"],onClick:f,style:{...u},"data-orientation":o,children:[n,e]})})},kh="_container_1sy8s_16",lt={"carousel-container":"_carousel-container_1sy8s_1","add-cart-container":"_add-cart-container_1sy8s_8",container:kh,"add-itens-to-cart-container":"_add-itens-to-cart-container_1sy8s_38","add-itens-to-cart-container-values":"_add-itens-to-cart-container-values_1sy8s_45","add-itens-to-cart-qty-products":"_add-itens-to-cart-qty-products_1sy8s_50","add-itens-to-cart-total":"_add-itens-to-cart-total_1sy8s_60","add-button":"_add-button_1sy8s_70"},Mh=({selectedProducts:e,handleAddAllToCart:t,CONSTANTS:n})=>{const o=Object.values(e.products).length;return r.jsxs("div",{className:lt["add-itens-to-cart-container"],children:[r.jsxs("div",{className:lt["add-itens-to-cart-container-values"],children:[r.jsx("div",{className:lt["add-itens-to-cart-qty-products"],children:r.jsx("span",{children:o===0?n.BUY_PACKAGE.group_cart.select_all_product:`${o} ${o===1?n.BUY_PACKAGE.group_cart.select_product:n.BUY_PACKAGE.group_cart.select_product+"s"}`})}),r.jsx("div",{className:lt["add-itens-to-cart-total"],children:r.jsx("span",{children:U.freightParsePrice({valueInCents:e.totalPrice*100,hasFree:!1,freeTaxMessage:n.FREIGHT_CALCULATION.messages.free_tax})})})]}),r.jsx(p.Button,{onClick:t,className:lt["add-button"],size:"large",disabled:o===0,variant:"primary",children:n.BUY_BUTTON_LABELS.add_to_cart})]})},Lh=e=>e.reduce((t,n)=>{var s;const o=t.find(a=>a.node.id===n.node.id);if(!o)return[...t,n];if((s=o==null?void 0:o.node.isVariantOf)!=null&&s.hasVariant){const a=o.node.isVariantOf.hasVariant,i=n.node.isVariantOf.hasVariant;a&&i&&(o.node.isVariantOf.hasVariant=[...a,...i])}return t},[]),Dh=({selectedProduct:e,productId:t,prevState:n,mainSellerId:o})=>{const{products:s,totalPrice:a}=n;try{if(!e){const{[t]:u,...f}=s;return{...n,totalPrice:a-u.price,products:f}}const i=U.getValidOffer(e.offers.offers,o);if(!i)return n;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),n}},xu=x.createContext({}),$h=({children:e,item:t,index:n,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:f}=le(),h=y=>{u({functionKey:"productEvents",data:{commonData:{...t,availableSizes:l.current.availableSkus,...l.current.priceInfo},customData:{index:n+1},event:y}})},m=()=>{h("add_to_wishlist")},d=()=>{u({functionKey:"skuEvents",data:{event:"add_to_cart",commonData:{products:[{...t,...l.current.priceInfo}]},supportData:{selectedSku:a,selectedSkus:[a]},customData:{index:n}}})},g=()=>{o&&(f.current={item_list_name:o}),h("select_item")};return r.jsx(xu.Provider,{value:x.useMemo(()=>({...s,index:n,item:t,element:c,selectedSku:a,setSelectedSku:i,eventDataRef:l,sendAddToWishlistEvent:m,sendSelectItemEvent:g,sendAddToCartEvent:d}),[s,t,c,a]),children:e})},Ke=()=>{const e=x.useContext(xu);if(e===void 0)throw new Error("useProductCardContext must be used within a ProductCardProvider");return e},Ne={"product-card--actions":"_product-card--actions_nmzk4_1","product-card--actions--group":"_product-card--actions--group_nmzk4_9","product-card--actions--selectors":"_product-card--actions--selectors_nmzk4_21","product-card--body":"_product-card--body_nmzk4_33","product-card--header":"_product-card--header_nmzk4_47","product-card--footer":"_product-card--footer_nmzk4_67","product-card--image":"_product-card--image_nmzk4_90","product-card--image--container":"_product-card--image--container_nmzk4_97","product-card--outstock":"_product-card--outstock_nmzk4_133","product-card--price":"_product-card--price_nmzk4_155","product-card--title":"_product-card--title_nmzk4_177","product-card--title--tag":"_product-card--title--tag_nmzk4_183","product-card--title--content":"_product-card--title--content_nmzk4_200","product-card--selectors--size":"_product-card--selectors--size_nmzk4_240","product-card--selectors--size--button":"_product-card--selectors--size--button_nmzk4_266","product-card--selectors--size--skus":"_product-card--selectors--size--skus_nmzk4_275","product-card--selectors--style":"_product-card--selectors--style_nmzk4_289","product-card--selectors--style--more":"_product-card--selectors--style--more_nmzk4_299","product-card--video":"_product-card--video_nmzk4_316","product-card--wrapper":"_product-card--wrapper_nmzk4_342"},bu=({callback:e,children:t,className:n,data:o,isKit:s,...a})=>{const{item:{availability:{status:i},image:c}}=Ke();return i?r.jsxs("div",{...a,className:p.helpers.classNameConcat(Ne["product-card--actions"],n),children:[r.jsxs(xe.Wrapper,{type:"actions--group",children:[r.jsx(xe.Price,{}),r.jsx("div",{className:Ne["product-card--actions--selectors"],children:!s&&r.jsx(xe.StyleSelector,{data:o,images:c,callback:e})})]}),t]}):null};bu.displayName="ProductCard.Actions";const ju=({className:e,isKit:t,...n})=>{const{addToCart:o}=Re(),{isMobile:s=!1,selectedSku:a,outStock:i,item:c,sendAddToCartEvent:l,CONSTANTS:u}=Ke(),f=()=>{var d;if(!a)return;const m=U.getValidOffer(a.offers.offers,u.StoreConfig_MainSellerId);m&&o({id:a==null?void 0:a.sku,quantity:1,seller:m.seller.identifier},{id:c.id,texture:(d=c==null?void 0:c.image.find(g=>u.TEXTURE_IMAGE.includes(g.alternateName)))==null?void 0:d.url}),l()},h=a?u.BUY_BUTTON_LABELS.add_to_cart:u.BUY_BUTTON_LABELS.select_size;return r.jsx(p.Button,{...n,className:p.helpers.classNameConcat(e,"buy-button"),disabled:!t&&!a&&!i,size:s?"medium":"large",variant:i?"secondary":"primary",onClick:i?n.onClick:f,children:i?"Avise-me quando chegar":h})};ju.displayName="ProductCard.Actions.BuyButton";const zh={"snackbar-modifier":"_snackbar-modifier_1va2l_1"},wt=({size:e,adornment:t,title:n,subtitle:o,supportChildren:s,className:a,Z_INDEX_WAR:i,...c})=>r.jsxs(p.SnackBar.Structure,{...c,size:e,className:p.helpers.classNameConcat(zh["snackbar-modifier"],a),width:360,style:{zIndex:i.snackbar},children:[r.jsx(p.SnackBar.Content,{adornment:t,title:n,subtitle:o}),s&&r.jsx(p.SnackBar.Support,{children:s})]});wt.displayName="SnackBar";const Bt={"wishlist--snack":"_wishlist--snack_3qi1o_9","wishlist--snack--actions":"_wishlist--snack--actions_3qi1o_25","wishlist-grid":"_wishlist-grid_3qi1o_31","wishlist-grid--container":"_wishlist-grid--container_3qi1o_39","pdc-empty-modifier":"_pdc-empty-modifier_3qi1o_49"};var Cu=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Mr(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function Fh(e){if(e.__esModule)return e;var t=e.default;if(typeof t=="function"){var n=function o(){return this instanceof o?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};n.prototype=t.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(e).forEach(function(o){var s=Object.getOwnPropertyDescriptor(e,o);Object.defineProperty(n,o,s.get?s:{enumerable:!0,get:function(){return e[o]}})}),n}var Ko={exports:{}},ke={};ke._=ke._interop_require_default=Bh;function Bh(e){return e&&e.__esModule?e:{default:e}}var ar={exports:{}},Yr={},aa;function Su(){return aa||(aa=1,function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(i,c){for(var l in c)Object.defineProperty(i,l,{enumerable:!0,get:c[l]})}t(e,{searchParamsToUrlQuery:function(){return n},urlQueryToSearchParams:function(){return s},assign:function(){return a}});function n(i){const c={};return i.forEach((l,u)=>{typeof c[u]>"u"?c[u]=l:Array.isArray(c[u])?c[u].push(l):c[u]=[c[u],l]}),c}function 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,f]=l;Array.isArray(f)?f.forEach(h=>c.append(u,o(h))):c.set(u,o(f))}),c}function a(i){for(var c=arguments.length,l=new Array(c>1?c-1:0),u=1;u<c;u++)l[u-1]=arguments[u];return l.forEach(f=>{Array.from(f.keys()).forEach(h=>i.delete(h)),f.forEach((h,m)=>i.append(m,h))}),i}}(Yr)),Yr}var Qr={},Nt={};function Pu(e){if(typeof WeakMap!="function")return null;var t=new WeakMap,n=new WeakMap;return(Pu=function(o){return o?n:t})(e)}Nt._=Nt._interop_require_wildcard=qh;function qh(e,t){if(!t&&e&&e.__esModule)return e;if(e===null||typeof e!="object"&&typeof e!="function")return{default:e};var n=Pu(t);if(n&&n.has(e))return n.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,n&&n.set(e,o),o}var ia;function wu(){return ia||(ia=1,function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(l,u){for(var f in u)Object.defineProperty(l,f,{enumerable:!0,get:u[f]})}t(e,{formatUrl:function(){return a},urlObjectKeys:function(){return i},formatWithValidation:function(){return c}});const o=Nt._(Su()),s=/https?|ftp|gopher|file/;function a(l){let{auth:u,hostname:f}=l,h=l.protocol||"",m=l.pathname||"",d=l.hash||"",g=l.query||"",y=!1;u=u?encodeURIComponent(u).replace(/%3A/i,":")+"@":"",l.host?y=u+l.host:f&&(y=u+(~f.indexOf(":")?"["+f+"]":f),l.port&&(y+=":"+l.port)),g&&typeof g=="object"&&(g=String(o.urlQueryToSearchParams(g)));let _=l.search||g&&"?"+g||"";return h&&!h.endsWith(":")&&(h+=":"),l.slashes||(!h||s.test(h))&&y!==!1?(y="//"+(y||""),m&&m[0]!=="/"&&(m="/"+m)):y||(y=""),d&&d[0]!=="#"&&(d="#"+d),_&&_[0]!=="?"&&(_="?"+_),m=m.replace(/[?#]/g,encodeURIComponent),_=_.replace("#","%23"),""+h+y+m+_+d}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)}}(Qr)),Qr}var Zr={},ca;function Hh(){return ca||(ca=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"omit",{enumerable:!0,get:function(){return t}});function t(n,o){const s={};return Object.keys(n).forEach(a=>{o.includes(a)||(s[a]=n[a])}),s}}(Zr)),Zr}var Jr={},la;function Lr(){return la||(la=1,function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(j,P){for(var E in P)Object.defineProperty(j,E,{enumerable:!0,get:P[E]})}t(e,{WEB_VITALS:function(){return n},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 f},loadGetInitialProps:function(){return h},SP:function(){return m},ST:function(){return d},DecodeError:function(){return g},NormalizeError:function(){return y},PageNotFoundError:function(){return _},MissingStaticPage:function(){return b},MiddlewareNotFoundError:function(){return S},stringifyError:function(){return v}});const n=["CLS","FCP","FID","INP","LCP","TTFB"];function o(j){let P=!1,E;return function(){for(var C=arguments.length,R=new Array(C),I=0;I<C;I++)R[I]=arguments[I];return P||(P=!0,E=j(...R)),E}}const s=/^[a-zA-Z][a-zA-Z\d+\-.]*?:/,a=j=>s.test(j);function i(){const{protocol:j,hostname:P,port:E}=window.location;return j+"//"+P+(E?":"+E:"")}function c(){const{href:j}=window.location,P=i();return j.substring(P.length)}function l(j){return typeof j=="string"?j:j.displayName||j.name||"Unknown"}function u(j){return j.finished||j.headersSent}function f(j){const P=j.split("?");return P[0].replace(/\\/g,"/").replace(/\/\/+/g,"/")+(P[1]?"?"+P.slice(1).join("?"):"")}async function h(j,P){if(process.env.NODE_ENV!=="production"){var E;if((E=j.prototype)!=null&&E.getInitialProps){const I='"'+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(I)}}const C=P.res||P.ctx&&P.ctx.res;if(!j.getInitialProps)return P.ctx&&P.Component?{pageProps:await h(P.Component,P.ctx)}:{};const R=await j.getInitialProps(P);if(C&&u(C))return R;if(!R){const I='"'+l(j)+'.getInitialProps()" should resolve to an object. But found "'+R+'" instead.';throw new Error(I)}return process.env.NODE_ENV!=="production"&&Object.keys(R).length===0&&!P.ctx&&console.warn(""+l(j)+" returned an empty object from `getInitialProps`. This de-optimizes and prevents automatic static optimization. https://nextjs.org/docs/messages/empty-object-getInitialProps"),R}const m=typeof performance<"u",d=m&&["mark","measure","getEntriesByName"].every(j=>typeof performance[j]=="function");class g extends Error{}class y extends Error{}class _ extends Error{constructor(P){super(),this.code="ENOENT",this.name="PageNotFoundError",this.message="Cannot find module for page: "+P}}class b extends Error{constructor(P,E){super(),this.message="Failed to load static file for page: "+P+" "+E}}class 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})}}(Jr)),Jr}var ir={exports:{}},en={},ua;function Eu(){return ua||(ua=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"removeTrailingSlash",{enumerable:!0,get:function(){return t}});function t(n){return n.replace(/\/$/,"")||"/"}}(en)),en}var tn={},da;function ks(){return da||(da=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"parsePath",{enumerable:!0,get:function(){return t}});function t(n){const o=n.indexOf("#"),s=n.indexOf("?"),a=s>-1&&(o<0||s<o);return a||o>-1?{pathname:n.substring(0,a?s:o),query:a?n.substring(s,o>-1?o:void 0):"",hash:o>-1?n.slice(o):""}:{pathname:n,query:"",hash:""}}}(tn)),tn}var fa;function Dr(){return fa||(fa=1,function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"normalizePathTrailingSlash",{enumerable:!0,get:function(){return s}});const n=Eu(),o=ks(),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,n.removeTrailingSlash)(i)+c+l:i.endsWith("/")?""+i+c+l:i+"/"+c+l:""+(0,n.removeTrailingSlash)(i)+c+l};(typeof t.default=="function"||typeof t.default=="object"&&t.default!==null)&&typeof t.default.__esModule>"u"&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)}(ir,ir.exports)),ir.exports}var rn={},cr={exports:{}},nn={},pa;function Ru(){return pa||(pa=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"pathHasPrefix",{enumerable:!0,get:function(){return n}});const t=ks();function n(o,s){if(typeof o!="string")return!1;const{pathname:a}=(0,t.parsePath)(o);return a===s||a.startsWith(s+"/")}}(nn)),nn}var ma;function Uh(){return ma||(ma=1,function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"hasBasePath",{enumerable:!0,get:function(){return s}});const n=Ru(),o=process.env.__NEXT_ROUTER_BASEPATH||"";function s(a){return(0,n.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)}(cr,cr.exports)),cr.exports}var ha;function Au(){return ha||(ha=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"isLocalURL",{enumerable:!0,get:function(){return o}});const t=Lr(),n=Uh();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,n.hasBasePath)(i.pathname)}catch{return!1}}}(rn)),rn}var on={},sn={},ga;function Wh(){return ga||(ga=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"getSortedRoutes",{enumerable:!0,get:function(){return n}});class t{insert(s){this._insert(s.split("/").filter(Boolean),[],!1)}smoosh(){return this._smoosh()}_smoosh(s){s===void 0&&(s="/");const a=[...this.children.keys()].sort();this.slugName!==null&&a.splice(a.indexOf("[]"),1),this.restSlugName!==null&&a.splice(a.indexOf("[...]"),1),this.optionalRestSlugName!==null&&a.splice(a.indexOf("[[...]]"),1);const i=a.map(c=>this.children.get(c)._smoosh(""+s+c+"/")).reduce((c,l)=>[...c,...l],[]);if(this.slugName!==null&&i.push(...this.children.get("[]")._smoosh(s+"["+this.slugName+"]/")),!this.placeholder){const c=s==="/"?"/":s.slice(0,-1);if(this.optionalRestSlugName!=null)throw new Error('You cannot define a route with the same specificity as a optional catch-all route ("'+c+'" and "'+c+"[[..."+this.optionalRestSlugName+']]").');i.unshift(c)}return this.restSlugName!==null&&i.push(...this.children.get("[...]")._smoosh(s+"[..."+this.restSlugName+"]/")),this.optionalRestSlugName!==null&&i.push(...this.children.get("[[...]]")._smoosh(s+"[[..."+this.optionalRestSlugName+"]]/")),i}_insert(s,a,i){if(s.length===0){this.placeholder=!1;return}if(i)throw new Error("Catch-all must be the last part of the URL.");let c=s[0];if(c.startsWith("[")&&c.endsWith("]")){let f=function(h,m){if(h!==null&&h!==m)throw new Error("You cannot use different slug names for the same dynamic path ('"+h+"' !== '"+m+"').");a.forEach(d=>{if(d===m)throw new Error('You cannot have the same slug name "'+m+'" repeat within a single dynamic path');if(d.replace(/\W/g,"")===c.replace(/\W/g,""))throw new Error('You cannot have the slug names "'+d+'" and "'+m+'" differ only by non-word symbols within a single dynamic path')}),a.push(m)},l=c.slice(1,-1),u=!1;if(l.startsWith("[")&&l.endsWith("]")&&(l=l.slice(1,-1),u=!0),l.startsWith("...")&&(l=l.substring(3),i=!0),l.startsWith("[")||l.endsWith("]"))throw new Error("Segment names may not start or end with extra brackets ('"+l+"').");if(l.startsWith("."))throw new Error("Segment names may not start with erroneous periods ('"+l+"').");if(i)if(u){if(this.restSlugName!=null)throw new Error('You cannot use both an required and optional catch-all route at the same level ("[...'+this.restSlugName+']" and "'+s[0]+'" ).');f(this.optionalRestSlugName,l),this.optionalRestSlugName=l,c="[[...]]"}else{if(this.optionalRestSlugName!=null)throw new Error('You cannot use both an optional and required catch-all route at the same level ("[[...'+this.optionalRestSlugName+']]" and "'+s[0]+'").');f(this.restSlugName,l),this.restSlugName=l,c="[...]"}else{if(u)throw new Error('Optional route parameters are not yet supported ("'+s[0]+'").');f(this.slugName,l),this.slugName=l,c="[]"}}this.children.has(c)||this.children.set(c,new t),this.children.get(c)._insert(s.slice(1),a,i)}constructor(){this.placeholder=!0,this.children=new Map,this.slugName=null,this.restSlugName=null,this.optionalRestSlugName=null}}function n(o){const s=new t;return o.forEach(a=>s.insert(a)),s.smoosh()}}(sn)),sn}var an={},ya;function Gh(){return ya||(ya=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"isDynamicRoute",{enumerable:!0,get:function(){return n}});const t=/\/\[[^/]+?\](?=\/|$)/;function n(o){return t.test(o)}}(an)),an}var _a;function Vh(){return _a||(_a=1,function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(s,a){for(var i in a)Object.defineProperty(s,i,{enumerable:!0,get:a[i]})}t(e,{getSortedRoutes:function(){return n.getSortedRoutes},isDynamicRoute:function(){return o.isDynamicRoute}});const n=Wh(),o=Gh()}(on)),on}var cn={},ln={},va;function Kh(){return va||(va=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"getRouteMatcher",{enumerable:!0,get:function(){return n}});const t=Lr();function n(o){let{re:s,groups:a}=o;return i=>{const c=s.exec(i);if(!c)return!1;const l=f=>{try{return decodeURIComponent(f)}catch{throw new t.DecodeError("failed to decode param")}},u={};return Object.keys(a).forEach(f=>{const h=a[f],m=c[h.pos];m!==void 0&&(u[f]=~m.indexOf("/")?m.split("/").map(d=>l(d)):h.repeat?[l(m)]:l(m))}),u}}}(ln)),ln}var un={},dn={},fn={},pn={},xa;function Xh(){return xa||(xa=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"ensureLeadingSlash",{enumerable:!0,get:function(){return t}});function t(n){return n.startsWith("/")?n:"/"+n}}(pn)),pn}var mn={},ba;function Yh(){return ba||(ba=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"isGroupSegment",{enumerable:!0,get:function(){return t}});function t(n){return n[0]==="("&&n.endsWith(")")}}(mn)),mn}var ja;function Qh(){return ja||(ja=1,function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(i,c){for(var l in c)Object.defineProperty(i,l,{enumerable:!0,get:c[l]})}t(e,{normalizeAppPath:function(){return s},normalizeRscPath:function(){return a}});const n=Xh(),o=Yh();function s(i){return(0,n.ensureLeadingSlash)(i.split("/").reduce((c,l,u,f)=>!l||(0,o.isGroupSegment)(l)||l[0]==="@"||(l==="page"||l==="route")&&u===f.length-1?c:c+"/"+l,""))}function a(i,c){return c?i.replace(/\.rsc($|\?)/,"$1"):i}}(fn)),fn}var Ca;function Zh(){return Ca||(Ca=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 n=Qh(),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 f of i.split("/"))if(l=o.find(h=>f.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,n.normalizeAppPath)(c),l){case"(.)":c==="/"?u=`/${u}`:u=c+"/"+u;break;case"(..)":if(c==="/")throw new Error(`Invalid interception route: ${i}. Cannot use (..) marker at the root level, use (.) instead.`);u=c.split("/").slice(0,-1).concat(u).join("/");break;case"(...)":u="/"+u;break;case"(..)(..)":const f=c.split("/");if(f.length<=2)throw new Error(`Invalid interception route: ${i}. Cannot use (..)(..) marker at the root level or one level up.`);u=f.slice(0,-2).concat(u).join("/");break;default:throw new Error("Invariant: unexpected marker")}return{interceptingRoute:c,interceptedRoute:u}}}(dn)),dn}var hn={},Sa;function Jh(){return Sa||(Sa=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"escapeStringRegexp",{enumerable:!0,get:function(){return o}});const t=/[|\\{}()[\]^$+*?.-]/,n=/[|\\{}()[\]^$+*?.-]/g;function o(s){return t.test(s)?s.replace(n,"\\$&"):s}}(hn)),hn}var Pa;function eg(){return Pa||(Pa=1,function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(y,_){for(var b in _)Object.defineProperty(y,b,{enumerable:!0,get:_[b]})}t(e,{getRouteRegex:function(){return u},getNamedRouteRegex:function(){return d},getNamedMiddlewareRegex:function(){return g}});const n=Zh(),o=Jh(),s=Eu(),a="nxtP",i="nxtI";function c(y){const _=y.startsWith("[")&&y.endsWith("]");_&&(y=y.slice(1,-1));const b=y.startsWith("...");return b&&(y=y.slice(3)),{key:y,repeat:b,optional:_}}function l(y){const _=(0,s.removeTrailingSlash)(y).slice(1).split("/"),b={};let S=1;return{parameterizedRoute:_.map(v=>{const j=n.INTERCEPTION_ROUTE_MARKERS.find(E=>v.startsWith(E)),P=v.match(/\[((?:\[.*\])|.+)\]/);if(j&&P){const{key:E,optional:C,repeat:R}=c(P[1]);return b[E]={pos:S++,repeat:R,optional:C},"/"+(0,o.escapeStringRegexp)(j)+"([^/]+?)"}else if(P){const{key:E,repeat:C,optional:R}=c(P[1]);return b[E]={pos:S++,repeat:C,optional:R},C?R?"(?:/(.+?))?":"/(.+?)":"/([^/]+?)"}else return"/"+(0,o.escapeStringRegexp)(v)}).join(""),groups:b}}function u(y){const{parameterizedRoute:_,groups:b}=l(y);return{re:new RegExp("^"+_+"(?:/)?$"),groups:b}}function f(){let y=0;return()=>{let _="",b=++y;for(;b>0;)_+=String.fromCharCode(97+(b-1)%26),b=Math.floor((b-1)/26);return _}}function h(y){let{getSafeRouteKey:_,segment:b,routeKeys:S,keyPrefix:v}=y;const{key:j,optional:P,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=_()),v?S[C]=""+v+j:S[C]=""+j,E?P?"(?:/(?<"+C+">.+?))?":"/(?<"+C+">.+?)":"/(?<"+C+">[^/]+?)"}function m(y,_){const b=(0,s.removeTrailingSlash)(y).slice(1).split("/"),S=f(),v={};return{namedParameterizedRoute:b.map(j=>{const P=n.INTERCEPTION_ROUTE_MARKERS.some(C=>j.startsWith(C)),E=j.match(/\[((?:\[.*\])|.+)\]/);return P&&E?h({getSafeRouteKey:S,segment:E[1],routeKeys:v,keyPrefix:_?i:void 0}):E?h({getSafeRouteKey:S,segment:E[1],routeKeys:v,keyPrefix:_?a:void 0}):"/"+(0,o.escapeStringRegexp)(j)}).join(""),routeKeys:v}}function d(y,_){const b=m(y,_);return{...u(y),namedRegex:"^"+b.namedParameterizedRoute+"(?:/)?$",routeKeys:b.routeKeys}}function g(y,_){const{parameterizedRoute:b}=l(y),{catchAll:S=!0}=_;if(b==="/")return{namedRegex:"^/"+(S?".*":"")+"$"};const{namedParameterizedRoute:v}=m(y,!1);let j=S?"(?:(/.*)?)":"";return{namedRegex:"^"+v+j+"$"}}}(un)),un}var wa;function tg(){return wa||(wa=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"interpolateAs",{enumerable:!0,get:function(){return o}});const t=Kh(),n=eg();function o(s,a,i){let c="";const l=(0,n.getRouteRegex)(s),u=l.groups,f=(a!==s?(0,t.getRouteMatcher)(l)(a):"")||i;c=s;const h=Object.keys(u);return h.every(m=>{let d=f[m]||"";const{repeat:g,optional:y}=u[m];let _="["+(g?"...":"")+m+"]";return y&&(_=(d?"":"/")+"["+_+"]"),g&&!Array.isArray(d)&&(d=[d]),(y||m in f)&&(c=c.replace(_,g?d.map(b=>encodeURIComponent(b)).join("/"):encodeURIComponent(d))||"/")})||(c=""),{params:h,result:c}}}(cn)),cn}var Ea;function rg(){return Ea||(Ea=1,function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"resolveHref",{enumerable:!0,get:function(){return f}});const n=Su(),o=wu(),s=Hh(),a=Lr(),i=Dr(),c=Au(),l=Vh(),u=tg();function f(h,m,d){let g,y=typeof m=="string"?m:(0,o.formatWithValidation)(m);const _=y.match(/^[a-zA-Z]{1,}:\/\//),b=_?y.slice(_[0].length):y;if((b.split("?")[0]||"").match(/(\/\/|\\)/)){console.error("Invalid href '"+y+"' passed to next/router in page: '"+h.pathname+"'. Repeated forward-slashes (//) or backslashes \\ are not valid in the href.");const v=(0,a.normalizeRepeatedSlashes)(b);y=(_?_[0]:"")+v}if(!(0,c.isLocalURL)(y))return d?[y]:y;try{g=new URL(y.startsWith("#")?h.asPath:h.pathname,"http://n")}catch{g=new URL("/","http://n")}try{const v=new URL(y,g);v.pathname=(0,i.normalizePathTrailingSlash)(v.pathname);let j="";if((0,l.isDynamicRoute)(v.pathname)&&v.searchParams&&d){const E=(0,n.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 P=v.origin===g.origin?v.href.slice(v.origin.length):v.href;return d?[P,j||P]:P}catch{return d?[y]:y}}(typeof t.default=="function"||typeof t.default=="object"&&t.default!==null)&&typeof t.default.__esModule>"u"&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)}(ar,ar.exports)),ar.exports}var lr={exports:{}},gn={},yn={},Ra;function Nu(){return Ra||(Ra=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"addPathPrefix",{enumerable:!0,get:function(){return n}});const t=ks();function n(o,s){if(!o.startsWith("/")||!s)return o;const{pathname:a,query:i,hash:c}=(0,t.parsePath)(o);return""+s+a+i+c}}(yn)),yn}var Aa;function ng(){return Aa||(Aa=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"addLocale",{enumerable:!0,get:function(){return o}});const t=Nu(),n=Ru();function o(s,a,i,c){if(!a||a===i)return s;const l=s.toLowerCase();return!c&&((0,n.pathHasPrefix)(l,"/api")||(0,n.pathHasPrefix)(l,"/"+a.toLowerCase()))?s:(0,t.addPathPrefix)(s,"/"+a)}}(gn)),gn}var Na;function og(){return Na||(Na=1,function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"addLocale",{enumerable:!0,get:function(){return o}});const n=Dr(),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,n.normalizePathTrailingSlash)(ng().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)}(lr,lr.exports)),lr.exports}var _n={},Ia;function Iu(){return Ia||(Ia=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"RouterContext",{enumerable:!0,get:function(){return o}});const o=ke._(x).default.createContext(null);process.env.NODE_ENV!=="production"&&(o.displayName="RouterContext")}(_n)),_n}var vn={},Ta;function sg(){return Ta||(Ta=1,function(e){"use client";Object.defineProperty(e,"__esModule",{value:!0});function t(u,f){for(var h in f)Object.defineProperty(u,h,{enumerable:!0,get:f[h]})}t(e,{CacheStates:function(){return s},AppRouterContext:function(){return a},LayoutRouterContext:function(){return i},GlobalLayoutRouterContext:function(){return c},TemplateContext:function(){return l}});const o=ke._(x);var s;(function(u){u.LAZY_INITIALIZED="LAZYINITIALIZED",u.DATA_FETCH="DATAFETCH",u.READY="READY"})(s||(s={}));const a=o.default.createContext(null),i=o.default.createContext(null),c=o.default.createContext(null),l=o.default.createContext(null);process.env.NODE_ENV!=="production"&&(a.displayName="AppRouterContext",i.displayName="LayoutRouterContext",c.displayName="GlobalLayoutRouterContext",l.displayName="TemplateContext")}(vn)),vn}var ur={exports:{}},dr={exports:{}},Oa;function Tu(){return Oa||(Oa=1,function(e,t){Object.defineProperty(t,"__esModule",{value:!0});function n(a,i){for(var c in i)Object.defineProperty(a,c,{enumerable:!0,get:i[c]})}n(t,{requestIdleCallback:function(){return 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)}(dr,dr.exports)),dr.exports}var ka;function ag(){return ka||(ka=1,function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"useIntersection",{enumerable:!0,get:function(){return u}});const n=x,o=Tu(),s=typeof IntersectionObserver=="function",a=new Map,i=[];function c(f){const h={root:f.root||null,margin:f.rootMargin||""},m=i.find(_=>_.root===h.root&&_.margin===h.margin);let d;if(m&&(d=a.get(m),d))return d;const g=new Map,y=new IntersectionObserver(_=>{_.forEach(b=>{const S=g.get(b.target),v=b.isIntersecting||b.intersectionRatio>0;S&&v&&S(v)})},f);return d={id:h,observer:y,elements:g},i.push(h),a.set(h,d),d}function l(f,h,m){const{id:d,observer:g,elements:y}=c(m);return y.set(f,h),g.observe(f),function(){if(y.delete(f),g.unobserve(f),y.size===0){g.disconnect(),a.delete(d);const b=i.findIndex(S=>S.root===d.root&&S.margin===d.margin);b>-1&&i.splice(b,1)}}}function u(f){let{rootRef:h,rootMargin:m,disabled:d}=f;const g=d||!s,[y,_]=(0,n.useState)(!1),b=(0,n.useRef)(null),S=(0,n.useCallback)(j=>{b.current=j},[]);(0,n.useEffect)(()=>{if(s){if(g||y)return;const j=b.current;if(j&&j.tagName)return l(j,E=>E&&_(E),{root:h==null?void 0:h.current,rootMargin:m})}else if(!y){const j=(0,o.requestIdleCallback)(()=>_(!0));return()=>(0,o.cancelIdleCallback)(j)}},[g,m,h,y,b.current]);const v=(0,n.useCallback)(()=>{_(!1)},[]);return[S,y,v]}(typeof t.default=="function"||typeof t.default=="object"&&t.default!==null)&&typeof t.default.__esModule>"u"&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)}(ur,ur.exports)),ur.exports}var fr={exports:{}},pr={exports:{}},xn={},Ma;function ig(){return Ma||(Ma=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"normalizeLocalePath",{enumerable:!0,get:function(){return t}});function t(n,o){let s;const a=n.split("/");return(o||[]).some(i=>a[1]&&a[1].toLowerCase()===i.toLowerCase()?(s=i,a.splice(1,1),n=a.join("/")||"/",!0):!1),{pathname:n,detectedLocale:s}}}(xn)),xn}var La;function cg(){return La||(La=1,function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"normalizeLocalePath",{enumerable:!0,get:function(){return n}});const n=(o,s)=>process.env.__NEXT_I18N_SUPPORT?ig().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)}(pr,pr.exports)),pr.exports}var mr={exports:{}},bn={},Da;function lg(){return Da||(Da=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"detectDomainLocale",{enumerable:!0,get:function(){return t}});function t(n,o,s){if(n){s&&(s=s.toLowerCase());for(const c of n){var a,i;const l=(a=c.domain)==null?void 0:a.split(":")[0].toLowerCase();if(o===l||s===c.defaultLocale.toLowerCase()||(i=c.locales)!=null&&i.some(u=>u.toLowerCase()===s))return c}}}}(bn)),bn}var $a;function ug(){return $a||($a=1,function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"detectDomainLocale",{enumerable:!0,get:function(){return n}});const n=function(){for(var o=arguments.length,s=new Array(o),a=0;a<o;a++)s[a]=arguments[a];if(process.env.__NEXT_I18N_SUPPORT)return lg().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)}(mr,mr.exports)),mr.exports}var za;function dg(){return za||(za=1,function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"getDomainLocale",{enumerable:!0,get:function(){return s}});const n=Dr(),o=process.env.__NEXT_ROUTER_BASEPATH||"";function s(a,i,c,l){if(process.env.__NEXT_I18N_SUPPORT){const u=cg().normalizeLocalePath,f=ug().detectDomainLocale,h=i||u(a,c).detectedLocale,m=f(l,void 0,h);if(m){const d="http"+(m.http?"":"s")+"://",g=h===m.defaultLocale?"":"/"+h;return""+d+m.domain+(0,n.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)}(fr,fr.exports)),fr.exports}var hr={exports:{}},Fa;function fg(){return Fa||(Fa=1,function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"addBasePath",{enumerable:!0,get:function(){return a}});const n=Nu(),o=Dr(),s=process.env.__NEXT_ROUTER_BASEPATH||"";function a(i,c){return(0,o.normalizePathTrailingSlash)(process.env.__NEXT_MANUAL_CLIENT_BASE_PATH&&!c?i:(0,n.addPathPrefix)(i,s))}(typeof t.default=="function"||typeof t.default=="object"&&t.default!==null)&&typeof t.default.__esModule>"u"&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)}(hr,hr.exports)),hr.exports}var gr={exports:{}},Ba;function pg(){return Ba||(Ba=1,function(e,t){Object.defineProperty(t,"__esModule",{value:!0});function n(h,m){for(var d in m)Object.defineProperty(h,d,{enumerable:!0,get:m[d]})}n(t,{PrefetchKind:function(){return f},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 f;(function(h){h.AUTO="auto",h.FULL="full",h.TEMPORARY="temporary"})(f||(f={})),(typeof t.default=="function"||typeof t.default=="object"&&t.default!==null)&&typeof t.default.__esModule>"u"&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)}(gr,gr.exports)),gr.exports}(function(e,t){"use client";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return P}});const o=ke._(x),s=rg(),a=Au(),i=wu(),c=Lr(),l=og(),u=Iu(),f=sg(),h=ag(),m=dg(),d=fg(),g=pg(),y=new Set;function _(E,C,R,I,w,N){if(typeof window>"u"||!N&&!(0,a.isLocalURL)(C))return;if(!I.bypassPrefetchedCheck){const z=typeof I.locale<"u"?I.locale:"locale"in E?E.locale:void 0,O=C+"%"+R+"%"+z;if(y.has(O))return;y.add(O)}const T=N?E.prefetch(C,w):E.prefetch(C,R,I);Promise.resolve(T).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,I,w,N,T,z,O,W){const{nodeName:q}=E.currentTarget;if(q.toUpperCase()==="A"&&(b(E)||!O&&!(0,a.isLocalURL)(R)))return;E.preventDefault();const G=()=>{const V=T??!0;"beforePopState"in C?C[w?"replace":"push"](R,I,{shallow:N,locale:z,scroll:V}):C[w?"replace":"push"](I||R,{forceOptimisticNavigation:!W,scroll:V})};O?o.default.startTransition(G):G()}function v(E){return typeof E=="string"?E:(0,i.formatUrl)(E)}const P=o.default.forwardRef(function(C,R){let I;const{href:w,as:N,children:T,prefetch:z=null,passHref:O,replace:W,shallow:q,scroll:F,locale:G,onClick:V,onMouseEnter:B,onTouchStart:J,legacyBehavior:A=!1,...k}=C;I=T,A&&(typeof I=="string"||typeof I=="number")&&(I=o.default.createElement("a",null,I));const D=o.default.useContext(u.RouterContext),X=o.default.useContext(f.AppRouterContext),ne=D??X,ee=!D,L=z!==!1,te=z===null?g.PrefetchKind.AUTO:g.PrefetchKind.FULL;if(process.env.NODE_ENV!=="production"){let ae=function(se){return new Error("Failed prop type: The prop `"+se.key+"` expects a "+se.expected+" in `<Link>`, but got `"+se.actual+"` instead."+(typeof window<"u"?`
|
|
2
|
-
Open your browser's console to view the Component stack trace.`:""))};Object.keys({href:!0}).forEach(se=>{if(se==="href"&&(C[se]==null||typeof C[se]!="string"&&typeof C[se]!="object"))throw ae({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
|
|
1
|
+
"use strict";var Zp=Object.defineProperty;var Jp=(e,t,n)=>t in e?Zp(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var or=(e,t,n)=>Jp(e,typeof t!="symbol"?t+"":t,n);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("react/jsx-runtime"),x=require("react"),U=require("./index-DL877zTH.js"),Ze=require("idb-keyval"),yt=require("zustand"),Fo=require("js-cookie"),p=require("@soma-vertical-web/core-components"),mt=require("axios"),Bo=require("@date-fns/tz"),em=require("jose"),Pt=require("@soma-vertical-web/foundations"),ls=require("react-dom"),Ye=require("draft-js"),gc=require("react-intersection-observer"),us=x.createContext({}),tm=({data:e,children:t})=>r.jsx(us.Provider,{value:{tags:e==null?void 0:e.config},children:t}),nt=()=>{const{tags:e}=x.useContext(us),t=x.useCallback(n=>{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(f=>{var h;return(h=n??[])==null?void 0:h.find(m=>m.id===f.key)}),s=(u=(l=e==null?void 0:e.institucional)==null?void 0:l.items)==null?void 0:u.find(f=>{var h;return(h=n??[])==null?void 0:h.find(m=>m.id===f.key)}),a=e==null?void 0:e.flagPdp;return{commercial:o,institucional:s,flagPdp:a}},[e]);return{tags:e,getAvailableProductTag:t}},yc=({gridScrollBack:e})=>{x.useEffect(()=>{typeof window<"u"&&(e!=null&&e.refer)&&sessionStorage.setItem(e==null?void 0:e.refer,"true")},[])},_c=x.createContext({}),rm=({children:e,gridScrollBack:t})=>{const n=x.useRef(null);return yc({gridScrollBack:t}),r.jsx(_c.Provider,{value:{sizesContainerRef:n},children:e})},vc=()=>{const e=x.useContext(_c);if(e===void 0)throw new Error("useContext(PDPContext) must be used within a PDPProvider");return e},it=({event:e,data:t})=>{const n=(window==null?void 0:window.dataLayer)||[];t.ecommerce&&n.push({ecommerce:null}),n.push({...e&&{event:`custom_${e}`},...t})},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:n,commonData:o,customData:s,promotionInfo:a,itemList:i,outsideEcommerceData:c}=e,{availableSizes:l,sizes:u,price:f}=o,h={...n==="view_item"?{currency:Se.configs.currency,value:f,grade_disponivel:l??(u?xc(u):"")}:{},...n==="add_to_wishlist"||n==="remove_from_wishlist"?{value:f,currency:Se.configs.currency}:{}},m=sr({data:o,customData:{...s,...i,...a},configs:Se.configs});it({event:n,data:{...c,ecommerce:{...i,...h,items:[m]}}}),typeof t=="function"&&t(m,h)},productListEvent:e=>{const{commonData:{products:t},promotionInfo:n,itemList:o,outsideEcommerceData:s,customData:a}=e;if(t.length===0)return;const i=t.map(({node:c},l)=>sr({data:{...c},customData:{...n,index:l,...a!=null&&a.item_list_name?{item_list_name:a==null?void 0:a.item_list_name}:o},configs:Se.configs}));it({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:n},customData:o,supportData:{selectedSkus:s,price:a},promotionInfo:i,itemList:c,outsideEcommerceData:l}=e;let u=0;const f=n.map(h=>{var y,_,b,S,v,j,P,E,C;const m=s==null?void 0:s.find(R=>(h.productId??h.id)===R.productId);let d={...i,...c};if(m){const R=jc(),I=Cc(R,m);I&&(d={...d,...I}),t==="add_to_cart"&&(i||c)&&qo({persistedData:R,type:"add",sku:(m==null?void 0:m.id)??(m==null?void 0:m.sku),newData:{promotionInfo:i,itemList:c}}),t==="remove_from_cart"&&qo({persistedData:R,type:"remove",sku:(m==null?void 0:m.id)??(m==null?void 0:m.sku)})}u+=h.price??((b=(_=(y=m==null?void 0:m.offers)==null?void 0:y.offers)==null?void 0:_[0])==null?void 0:b.price)??0;const g=(m==null?void 0:m.size)??U.getColorAndSizeFromSkuName((m==null?void 0:m.skuName)??(m==null?void 0:m.name)??((S=h.itemOffered)==null?void 0:S.skuName),Se.configs.NAME_SPLIT_SYMBOL).size;return sr({data:h,customData:{...o,...d??{...i,...c},item_sku:(m==null?void 0:m.id)??(m==null?void 0:m.sku)??((v=h.itemOffered)==null?void 0:v.sku),quantity:(o==null?void 0:o.quantity)??h.quantity??1,item_variant2:g,seller_id:(m==null?void 0:m.sellerId)??(m==null?void 0:m.seller)??((C=(E=(P=(j=m==null?void 0:m.offers)==null?void 0:j.offers)==null?void 0:P[0])==null?void 0:E.seller)==null?void 0:C.identifier)??h.seller},configs:Se.configs})});it({event:t,data:{...l,ecommerce:{value:a??u,currency:Se.configs.currency,items:f}}})},filterEvent:e=>{var i;const{commonData:t,customData:n,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(m=>m.key===c))==null?void 0:h.eventLabel)??c,f=(s==null?void 0:s[u])||[];u==="price_range"&&l.replace(":","-"),s[u]=[...f,l]}),Object.keys(s).forEach(c=>a[c]=s[c].join(", "))),it({event:"filter",data:{...o,...a,...n}})},viewCartEvent:e=>{var f,h,m,d,g,y,_,b,S,v;const{commonData:t,outsideEcommerceData:n}=e,{cartStore:o}=t;if(!o)return;const s=window.localStorage.getItem("persistedCartEventsData"),a=s?JSON.parse(s):{},i=o.items.map(j=>{const{promotionInfo:P,itemList:E}=a[j.id]??{};return sr({data:{...j,price:j.price/100,listPrice:j.listPrice/100},customData:{...P,...E,item_sku:j.id??j.itemOffered.sku,quantity:j.quantity??1},configs:Se.configs})}),c=(((f=o.totalizers.find(j=>j.name==="Total dos Itens"))==null?void 0:f.value)??0)/100,l=(((h=o.totalizers.find(j=>j.name==="Total dos Descontos"))==null?void 0:h.value)??0)/100,u=((m=o.marketingData)==null?void 0:m.utmiCampaign)===Se.configs.VENDOR_CODE?(d=o.marketingData)==null?void 0:d.utmCampaign:(y=String((g=o.openTextField)==null?void 0:g.value))==null?void 0:y.split(" - ")[0];it({event:"view_cart",data:{...n,ecommerce:{currency:Se.configs.currency,value:c+l,total_discount:Math.abs(l),cep_preenchido:!!((b=(_=o.shippingData)==null?void 0:_.address)!=null&&b.postalCode),...u?{seller_coupon_name:u}:{},...((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:n}=e;it({event:t,data:{...n}})}},xc=e=>e.reduce((t,n)=>(n.available&&t.push(n.value),t),[]).toString(),nm=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]}:{}}:{}}},sr=({data:e,customData:t,configs:n})=>({...om(e,n==null?void 0:n.MAIN_IMAGE),...sm(e),...am(e),...im(e),...t}),bc=()=>{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("_"))??[]:[]},jc=()=>{const e=window.localStorage.getItem("persistedCartEventsData");return e?JSON.parse(e):null},Cc=(e,t)=>e==null?void 0:e[t],qo=({persistedData:e,type:t,sku:n,newData:o})=>{if(!e&&t==="add"){window.localStorage.setItem("persistedCartEventsData",JSON.stringify({[n]:o}));return}if(e&&t==="add"){window.localStorage.setItem("persistedCartEventsData",JSON.stringify({...e,[n]:o}));return}e&&t==="remove"&&(delete e[n],window.localStorage.setItem("persistedCartEventsData",JSON.stringify(e)))},om=(e,t="1")=>{var a,i,c,l,u,f,h,m,d,g,y;const n=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(_=>_.alternateName===t||_.imageLabel===t||_.keywords===t);return{item_id:e.productId??((l=e.isVariantOf)==null?void 0:l.productGroupID)??((u=e.isVariationOf)==null?void 0:u.productGroupID)??((h=(f=e.itemOffered)==null?void 0:f.isVariationOf)==null?void 0:h.productGroupID),item_ref:/_\d$/.test(n)?n.slice(0,-2):n,item_name:e.productTitle??e.productName??e.name??U.splitNameAndSizeFromFullName((m=e.itemOffered)==null?void 0:m.name,Se.configs.NAME_SPLIT_SYMBOL).name,item_brand:((d=e.brand)==null?void 0:d.brandName)??((g=e.brand)==null?void 0:g.name)??e.brand??((y=e.itemOffered)==null?void 0:y.brand.name),item_url:`${Se.configs.storeUrl}${e.linkText}/p`,item_image:(s==null?void 0:s.url)??(s==null?void 0:s.imageUrl)}},Js=e=>Array.isArray(e)?e.reduce((t,n)=>(n.length>t.length&&(t=n),t),""):e,sm=e=>{var u,f;const{categories:t,categoriesIds:n}=e,o=t??((u=e.itemOffered)==null?void 0:u.categories),s=n??((f=e.itemOffered)==null?void 0:f.categoriesIds),a=Js(o),i=Js(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]}}},am=e=>{var s,a,i,c,l,u;const t=((s=e.itemOffered)==null?void 0:s.skuName)??((c=(i=(a=e.isVariantOf)==null?void 0:a.hasVariant)==null?void 0:i[0])==null?void 0:c.name)??((u=(l=e.items)==null?void 0:l[0])==null?void 0:u.name),{color:n,size:o}=U.getColorAndSizeFromSkuName(t,Se.configs.NAME_SPLIT_SYMBOL);return{item_variant:n,...e.itemOffered&&{item_variant2:o}}},im=e=>{var l,u;const{price:t,listPrice:n,installments:o}=e,s=t??((l=e.offers)==null?void 0:l.lowPrice)??0,a=n??((u=e.offers)==null?void 0:u.highPrice)??0,i=a?a-s:0,c=i%1===0?i:Number(i.toFixed(2));return{...t&&{price:s??a},...a&&{list_price:a,discount:c},...o&&{installments:o==null?void 0:o.count,installment_value:o==null?void 0:o.value},item_currency:Se.configs.currency}},Sc=()=>{const[e,t]=bc(),[n,o]=e.split("-"),s=n.includes("shop")||n.includes("sale")?n:"";return{page_category:s&&o?o:"",page_departament:s,id:t,name:e}},cm=Object.freeze(Object.defineProperty({__proto__:null,eventsFunctions:Se,findDataInPersistedData:Cc,getAvailablesSizes:xc,getCategories:nm,getPageCategoryAndDepartmentFromSlug:Sc,getPersistedData:jc,getProductListInfoFromHead:bc,pushDatalayer:it,updatePersistedData:qo},Symbol.toStringTag,{value:"Module"})),Pc=x.createContext({}),lm=({children:e,evtFunctionsConfigs:t})=>{const n=x.useRef({}),o=x.useRef(null),s=x.useRef(null),a=x.useRef({}),i=x.useRef({trigger:!1,index:0}),c=({functionKey:f,data:h,callBack:m,timeout:d=100})=>{window.dataLayer||(window.dataLayer=[]),Se.configs=t;try{typeof Se[f]=="function"&&setTimeout(()=>{var g;h.promotionInfo=n.current,(g=s.current)!=null&&g.item_list_name&&(h.itemList=s.current),Se[f](h,m)},d)}catch(g){it({event:"error_event",data:{error_message:(g==null?void 0:g.message)??g}})}},l=({content:f})=>{c({functionKey:"readyEvents",data:{event:"select_content",readyData:{content_type:f.replace("::",":")}}})},u=({updatePromotionRef:f,promotion:h,index:m})=>{f&&(n.current={...h}),c({functionKey:"readyEvents",data:{event:"select_promotion",readyData:{ecommerce:{...h,...m!==void 0&&{index:m}}}}})};return r.jsx(Pc.Provider,{value:{sendDataLayerEvent:c,triggerSelectItemEventRef:i,promotionEventRef:n,currentLocalRef:o,itemListRef:s,cartProductsFullDataRef:a,handleSelectContent:l,handleSelectPromotionEvent:u},children:e})},le=()=>x.useContext(Pc),wc=x.createContext({}),um=({children:e,productData:t,isKit:n,PDP_INFO:o,NAME_SPLIT_SYMBOL:s,TEXTURE_IMAGE:a})=>{var O,W;const{sendDataLayerEvent:i,triggerSelectItemEventRef:c}=le(),{productId:l,productName:u,items:f,items:[{images:h,Videos:m}],description:d,["Composição"]:g="",productReference:y,categories:[_]}=t,{getAvailableProductTag:b}=nt(),S=b(Object.entries(t.clusterHighlights).map(B=>({id:B[0],name:B[1]}))),v=_.slice(1,-1).split("/"),{installments:j,price:P,listPrice:E,sizes:C,allSizesAvailable:R}=U.getSkuInfos({items:f,NAME_SPLIT_SYMBOL:s}),I=U.getThumbImage({images:h,TEXTURE_IMAGE:a}),w=[{label:`${o.product.description}`,value:"description",content:d},{label:`${o.product.materiais}`,value:"composition",content:g}],N=((W=U.getColorAndSizeFromSkuName((O=t.items)==null?void 0:O[0].name,s))==null?void 0:W.color)??t["Cores Filtráveis"][0]??"",T=()=>({commonData:{...t,sizes:C,price:P,listPrice:E,installments:j},customData:{installments:j==null?void 0:j.count,installment_value:Number(j==null?void 0:j.value).toFixed(2)}}),z=({sku:B,size:V})=>{const{commonData:F,customData:G}=T();i({functionKey:"productEvents",data:{event:"view_item",commonData:F,customData:{...G,...B&&{item_sku:B},...V&&{item_variant2:V}}}})};return x.useEffect(()=>{if(c.current.trigger){const{commonData:B,customData:V}=T();i({functionKey:"productEvents",data:{event:"select_item",commonData:B,customData:{...V,index:c.current.index}}}),c.current.trigger=!1}z({})},[]),r.jsx(wc.Provider,{value:{productData:t,productId:l,productName:u,productReference:y,tag:S,items:f,sizes:C,allSizesAvailable:R,installments:j,price:P,listPrice:E,thumbImage:I,images:h,video:m[0],descriptionContent:w,breadcrumbList:v,isKit:n,colorName:N,handleViewItemEvent:z},children:e})},$e=()=>{const e=x.useContext(wc);if(e===void 0)throw new Error("useContext(PDPDataContext) must be used within a PDPDataProvider");return e},dm=()=>{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}}]},Ec=()=>{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)}},[])},fm=typeof window>"u",pm=(e,t)=>{const[n,o]=x.useState(()=>{if(fm)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]),[n,a=>{o(i=>{const c=typeof a=="function"?a(i):a;return localStorage.setItem(e,JSON.stringify(c)),c})}]};function ds(e,t,n){const[o,s]=x.useState(!1),{threshold:a}=n||{};return x.useEffect(()=>{if(!e.current)return()=>null;let i=null;const c=new IntersectionObserver(([l])=>{if(n!=null&&n.delay){i&&clearTimeout(i),i=setTimeout(()=>{s(l.isIntersecting),t&&l.isIntersecting&&c.unobserve(e.current)},n.delay);return}s(l.isIntersecting),t&&l.isIntersecting&&c.unobserve(e.current)},{threshold:a||1});return c.observe(e.current),()=>{c.disconnect()}},[e]),o}const Ir=({callback:e,onEnterViewportOnce:t,options:n})=>{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()))},n);return a.observe(s),()=>{t&&a.unobserve(s),a.disconnect()}},[e,t,n]),{element:o}},Rc=({defaultScale:e=1,maxScale:t=3})=>{const n=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||!n.current)return{minX:0,maxX:0,minY:0,maxY:0};const d=n.current.getBoundingClientRect(),g=o.current.children[0].getBoundingClientRect(),y=g.width,_=g.height,b=Math.min(0,(d.width-y)/2),S=Math.max(0,(y-d.width)/2),v=Math.min(0,(d.height-_)/2),j=Math.max(0,(_-d.height)/2);return{minX:b,maxX:S,minY:v,maxY:j}},f=(d,g,y)=>{if(o.current){const _=o.current.children[0];_&&requestAnimationFrame(()=>{_.style.transform=`translate(calc(-50% + ${d}px), calc(-50% + ${g}px)) scale(${y})`})}},h=x.useCallback(d=>{const{minX:g,maxX:y,minY:_,maxY:b}=u(),{x:S,y:v}=l.current,j=Math.max(g,Math.min(y,S)),P=Math.max(_,Math.min(b,v));if(d.touches.length>1){const E=d.touches[0],C=d.touches[1],R=E.pageX-C.pageX,I=E.pageY-C.pageY;i.current=Math.sqrt(R*R+I*I),c.current={x:(E.pageX+C.pageX)/2,y:(E.pageY+C.pageY)/2}}else d.touches.length===1&&(c.current={x:d.touches[0].pageX-j,y:d.touches[0].pageY-P})},[s,l]),m=x.useCallback(d=>{if(!o.current||!n.current)return;const{minX:g,maxX:y,minY:_,maxY:b}=u();if(d.touches.length>1){d.preventDefault();const S=d.touches[0],v=d.touches[1],j=S.pageX-v.pageX,P=S.pageY-v.pageY,E=Math.sqrt(j*j+P*P);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 I=(S.pageX+v.pageX)/2,w=(S.pageY+v.pageY)/2;let N=I-c.current.x,T=w-c.current.y;N=Math.max(g,Math.min(y,N)),T=Math.max(_,Math.min(b,T)),l.current={x:N,y:T},i.current=E,f(N,T,R)}else if(d.touches.length===1){const S=d.touches[0].pageX,v=d.touches[0].pageY;let j=S-c.current.x,P=v-c.current.y;j=Math.max(g,Math.min(y,j)),P=Math.max(_,Math.min(b,P)),l.current={x:j,y:P},f(j,P,s)}},[t,s]);return x.useEffect(()=>(document.addEventListener("touchstart",h),document.addEventListener("touchmove",m,{passive:!1}),()=>{document.removeEventListener("touchstart",h),document.removeEventListener("touchmove",m)}),[m,h]),{containerRef:n,imgRef:o,scale:s}},mm={attachment:"ATTACHMENT",specification:"SPECIFICATION",attribute:"ATTRIBUTE"},He=Promise.resolve(!1),Ho={id:"",isOpen:!1,items:[],loading:!1,marketingData:null,messages:[],openTextField:{},paymentData:null,shippingData:null,totalizers:[],itemMetadata:[],recentlyAddedProducts:[],addCoupon:()=>He,addItem:()=>He,addSellerCode:()=>He,addMarketingData:()=>He,emptyCart:()=>{},removeItem:()=>He,setIsOpen:()=>{},shipping:()=>He,shippingUpdate:()=>He,toggleServiceToProduct:()=>He,updateItemQuantity:()=>He,insertProfileEmail:()=>He,setRecentlyAddedProducts:()=>{}},fs=e=>e===0,Ac=(e,t)=>{if(!e||e.length===0)return[];let n="";const o=[],s=e.match(/\d+/g)??[];for(const a of s){const i=t[Number(a)];i&&(n+=(n?"/":"")+i,o.push(n))}return o},Nc=(e,t)=>{const{availability:n,additionalInfo:{brandName:o},bundleItems:s,id:a,uniqueId:i,detailUrl:c,ean:l,imageUrl:u,name:f,listPrice:h,quantity:m,price:d,priceDefinition:g,productCategories:y,productCategoryIds:_,productId:b,refId:S,seller:v,referenceId:j,offerings:P,productRefId:E,skuName:C,sellingPrice:R}=e;return{availability:n,bundleItems:s,referenceId:j,productRefId:E,id:a,ean:l,uniqueId:i,itemOffered:{additionalProperty:[],brand:{name:o},categories:Ac(_,y),categoriesIds:_,gtin:S,image:[{alternateName:(t==null?void 0:t.MAIN_IMAGE)??"1",url:u}],name:f,isVariationOf:{name:f,productGroupID:b},sku:a,slug:c,skuName:C},listPrice:h,quantity:m,offerings:P,price:d,priceDefinition:g,sellingPrice:R,seller:v}},Ic=(e,t)=>{const n=e.map(o=>({id:o.id,quantity:o.quantity,seller:o.seller}));return Array.isArray(t)?[...n,...t]:[...n,t]},Tc=(e,t)=>{const n=e.find(o=>o.id===t);if(n){const o=e.map((s,a)=>{var i,c;return{id:((i=s.itemOffered)==null?void 0:i.sku)??"",index:a,quantity:(n==null?void 0:n.id)===((c=s.itemOffered)==null?void 0:c.sku)?0:s.quantity,seller:s.seller??""}});return{updateItems:o,filterItems:o.filter(s=>s.id!==t)}}return{updateItems:[],filterItems:[]}},Oc=(e,t,n)=>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:n,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)??""}}),Uo=(e,t)=>e.filter(n=>n.availability!=="withoutStock").findIndex(({id:n})=>n===t),hm=(e,t)=>{var n;return Array.isArray(e)?(((n=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:n.value)??0)/100:0},gm=e=>{const t=e.reduce((s,a)=>{const i=fs(a.price)?0:a.quantity;return s+i},0),n=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:n,subTotal:o}},ym=e=>Array.isArray(e)?e.filter(t=>t.availability!=="withoutStock").reduce((t,n)=>t+(fs(n==null?void 0:n.price)?0:n.quantity),0):0,kc=(e,t)=>{const{items:n,itemMetadata:o,marketingData:s,messages:a,orderFormId:i,openTextField:c,paymentData:l,shippingData:u,totalizers:f}=e;return{id:i,itemMetadata:o,items:Array.isArray(n)?n.map(h=>Nc(h,t)):[],marketingData:s,messages:a,openTextField:c,paymentData:l,shippingData:u,totalizers:f}},Mc=(e,t)=>{const n=e.find(o=>o.id===t);return n?n.availability==="unavailableItemFulfillment":!1},_m=(e,t)=>{const n=e.sku,o=e.isVariantOf.hasVariant.find(s=>s.sku===n);return o?o.name.split(t)[1]:"--"},jt=(e,t,n=!1)=>!e&&t!==""?{code:300,value:t,statusOk:n}:e===t?{code:200,value:t,statusOk:n}:{code:400,value:t,statusOk:n},vm=(e,t)=>{const n=new Set;return[e,...t].filter(o=>!n.has(o)&&n.add(o),n)},Lc=(e,t)=>t&&Array.isArray(t)&&t.find(o=>o.id===e)?Promise.resolve(e):Promise.resolve(!1),Dc=(e,t)=>t?Promise.resolve(e[t]):Promise.resolve(!1),$c=async e=>{try{const t=await e();if(typeof t!="boolean")return t}catch(t){console.error(`[Error orderForm]: ${t}`)}return!1},zc=(e,t)=>{if(t!==-1){const n=Number(e);return n?n+1:1}return e??1},Fc=(e,t)=>Array.isArray(e)?e.filter(n=>t==null?void 0:t.some(o=>o.id===n.id)):[],Bc=async(e,t)=>e.then(n=>[...n??[],...t??[]]),Oe=async(e,t,n,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 n?c:kc(c,o)})},qc=(e,t,n)=>({notifications:[...e.notifications,{id:Date.now(),message:t,callback:n}]}),Hc=e=>[...Array.isArray(e)?e:[e],"faststore"],Uc=e=>{const t=e.get("utm_source")||pt("utm_source"),n=e.get("utm_campaign")||pt("utm_campaign"),o=e.get("utm_medium")||pt("utm_medium"),s=e.get("utmi_cp")||pt("utmi_cp"),a=e.get("utmi_pc")||pt("utmi_pc"),i=e.get("utmi_p")||pt("utmi_p");return{...t&&{utmSource:t},...o&&{utmMedium:o},...n&&{utmCampaign:n},...s&&{utmiCampaign:s},...a&&{utmiPart:a},...i&&{utmipage:i}}},pt=e=>{if(!e||typeof window>"u")return;const t=window.location.href;e=e.replace(/[[\]]/g,"\\$&");const n=new RegExp("[?&]"+e+"(=([^&#]*)|&|#|$)"),o=n.exec(t);return o?o[2]?decodeURIComponent(o[2].replace(/\+/g," ")):"":null},xm=Object.freeze(Object.defineProperty({__proto__:null,VALUE_REFERENCES:mm,addItemOrder:Ic,addNotification:qc,createItemOrder:Nc,fetchCartAPI:Oe,findItemIndex:Uo,findOptions:Fc,findTotalizerValue:hm,getCategories:Ac,getCode:jt,getQuantity:zc,getRemoveId:Lc,getSize:_m,getTotalItems:ym,getTotalizer:gm,getUrlParameter:pt,getValue:Dc,initialState:Ho,isGift:fs,marketingTagsBuilder:Hc,mergeOptionsPromise:Bc,mountMarketingData:Uc,orderFormValues:kc,promiseDefault:He,removeQuantity:Tc,updateItemSellerExternal:Mc,updateOrderFormPromise:$c,updateQuantity:Oc,wishlistArray:vm},Symbol.toStringTag,{value:"Module"})),bm=()=>{const e=async(d,g)=>Oe("/api/checkout/order-form/coupon",{body:{orderFormId:d,coupon:g}}),t=async(d,g,y={})=>{if(g){const _=g.includes(" - ")?g.split(" - ")[0]:g,b=await Oe("/api/checkout/order-form/seller-code",{body:{orderFormId:d,sellerCode:_}},!0);return b instanceof Object&&y.name in b&&b[y.status]===!0?Oe("/api/checkout/order-form/attachments",{body:{orderFormId:d,sellerCode:_,sellerName:b[y.name]}}).then(v=>({...v,openTextField:{...(v==null?void 0:v.openTextField)??{},statusOk:!0}})):Promise.resolve({paymentData:null,openTextField:{statusOk:!1,value:_}})}else return Oe("/api/checkout/order-form/attachments",{body:{orderFormId:d,sellerCode:"",sellerName:""}})},n=async(d,g)=>Oe("/api/checkout/order-form/attachments/marketing-data",{body:{orderFormId:d,marketingData:g}}),o=async(d,g,y)=>Oe("/api/checkout/order-form/items",{body:{orderFormId:d,orderItems:Ic(g,y)}}),s=async(d,g,y,_=!1)=>Oe("/api/checkout/order-form/offerings",{body:{id:g,itemIndex:y,orderFormId:d,remove:_}}),a=async d=>Oe("/api/checkout/order-form/items/remove-all",{body:{orderFormId:d}}),i=async(d,g="low")=>Oe("/api/checkout/order-form",{priority:g,body:{orderFormId:d??""}}),c=async(d,g)=>Oe("/api/checkout/order-form/profile",{body:{orderFormId:d,email:g}}),l=async(d,g,y)=>{const _=Tc(g,y);return Oe("/api/checkout/order-form/items/update",{body:{orderItems:_.updateItems,orderFormId:d}})},u=async(d,g,y)=>Oe("/api/checkout/order-form/shipping",{body:{orderFormId:d,country:y,postalCode:g}}),f=async(d,g,y)=>Oe("/api/checkout/order-form/shipping/update",{body:{orderFormId:d,options:g,selectedAddresses:y}}),h=async(d,g,y,_)=>{const b=Oc(g,y,_);return Oe("/api/checkout/order-form/items/update",{body:{orderFormId:d,orderItems:b}})};return{addCoupon:e,addItem:o,addSellerCode:t,addMarketingData:n,giftItem:s,emptyCart:a,getOrderForm:i,insertProfileEmail:c,removeItem:l,shipping:u,shippingUpdate:f,updateItemQuantity:async(d,g,y,_,b)=>h(d,g,y,_).then(S=>S&&Array.isArray(S.items)?Mc(S.items,y)?h(d,g,y,b):S:!1)}},Wo="soma::cart",$t="soma::options",Rt=yt.create((e,t)=>{const n=bm(),o=async(s,a,i)=>{e({loading:!0});const c=await $c(s);if(typeof c!="boolean"){e({...c});const l=await Bc(Ze.get($t),i);return Ze.set($t,l),Dc(c,a).finally(()=>e({loading:!1,options:l}))}return He};if(typeof window<"u"){const s=async a=>{if(a){const i=await Ze.get($t).then(u=>Fc(u,a.items));Ze.set(Wo,a),Ze.set($t,i),e({...a,options:i});const c=new URLSearchParams(window.location.search),l=c.get("utm_campaign")||c.get("utmi_campaign")||"";l&&o(()=>n.addSellerCode(t().id,l.toUpperCase()),"openTextField")}};return Ze.get(Wo).then(a=>n.getOrderForm(a?a.id:"").then(s)),{...Ho,addCoupon:async a=>o(()=>n.addCoupon(t().id,a),"marketingData"),addItem:(a,i)=>{o(()=>n.addItem(t().id,t().items,a),"items",i)},addSellerCode:async(a,i)=>o(()=>n.addSellerCode(t().id,a,i),"openTextField"),addMarketingData:async a=>o(()=>n.addMarketingData(t().id,a),"marketingData"),emptyCart:()=>{o(()=>n.emptyCart(t().id))},removeItem:async a=>{const i=await o(()=>n.removeItem(t().id,t().items,a),"items");return Lc(a,i)},shipping:async(a,i="BR")=>o(()=>n.shipping(t().id,a??"",i),"shippingData"),shippingUpdate:async a=>o(()=>{var i;return n.shippingUpdate(t().id,a,(i=t().shippingData)==null?void 0:i.selectedAddresses)},"shippingData"),toggleServiceToProduct:async(a,i,c)=>o(()=>n.giftItem(t().id,a,i,c),"items"),updateItemQuantity:async(a,i,c)=>{const{id:l,items:u}=t();return o(()=>{var f;return n.updateItemQuantity(l,u,a,i,((f=u.find(h=>h.id===a))==null?void 0:f.quantity)??1)},"items",c?[c]:void 0)},insertProfileEmail:async a=>o(()=>n.insertProfileEmail(t().id,a),"clientProfileData"),setIsOpen:a=>e({isOpen:a})}}return Ho}),jm=()=>Rt(e=>e),Wc=yt.create(e=>({notifications:[],actions:{addNotification:(t,n)=>e(o=>qc(o,t,n)),removeNotification:t=>e(n=>({notifications:n.notifications.filter(o=>o.id!==t)}))}})),ps=()=>Wc(e=>e.notifications),ms=()=>Wc(e=>e.actions),Cm=Object.freeze(Object.defineProperty({__proto__:null,KEY_INDEXED_OPTIONS:$t,KEY_INDEXED_STORE:Wo,useCartStore:Rt,useGetCartStoreState:jm,useGetNotificationActions:ms,useGetNotificationsStore:ps},Symbol.toStringTag,{value:"Module"})),Sm=6e3,Gc=x.createContext({}),Vc=({children:e,...t})=>{const{items:n}=Rt(),[o,s]=x.useState([]),a=x.useRef(null),i=x.useMemo(()=>Array.isArray(o)&&o.length>0?o.map(c=>n.find(l=>l.id===c.id)).filter(c=>c!==void 0):[],[n,o]);return x.useEffect(()=>{o.length&&(clearTimeout(a.current??0),a.current=setTimeout(()=>{s([])},Sm))},[o]),r.jsx(Gc.Provider,{value:x.useMemo(()=>({...t,setRecentlyAdded:s,recentlyAddedProducts:i}),[t,s,i]),children:e})},Wt=()=>{const e=x.useContext(Gc);if(e===void 0)throw new Error("useUIContext must be used within a UIProvider");return e};class Kc{constructor(){or(this,"events",{});or(this,"prevData",{})}subscribe(t,n){return this.events[t]||(this.events[t]=[]),this.events[t].push(n),()=>{this.events[t]=this.events[t].filter(o=>o!==n)}}publish(t,n){this.events[t]&&this.events[t].forEach(o=>{this.prevData[t]=n,o(n)})}}const Xc=x.createContext({}),Pm=({children:e,headerConfigs:t,pathname:n,...o})=>{const[s,a]=x.useState(!0),[i,c]=x.useState(!1),l=n==="/",u=x.useRef(new Kc),f=d=>d?{headerVariant:t.home_default_variant,bannerVariant:t.home_default_variant,position:t.home_default_position}:{headerVariant:t.default_variant,bannerVariant:t.default_variant,position:t.default_position},h=f(l),m=x.useRef(h);return x.useEffect(()=>{var y;const d=((y=new URLSearchParams(window.location.search))==null?void 0:y.toString())??"";(d.includes("utm_")||d.includes("gclid"))&&(Fo.get("lastMedias")||Fo.set("lastMedias",`${d}`,{expires:1/24}));const g=()=>{const _=typeof(window==null?void 0:window.navigator)>"u"?"":navigator==null?void 0:navigator.userAgent,b=window.innerWidth<1024||!!_.match(/Android|BlackBerry|iPhone|iPad|iPod|Opera Mini|IEMobile|WPDesktop/i);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 d=f(l);u.current.publish("header:change_variant",d.headerVariant),u.current.publish("header:change_position",d.position),m.current=d},[l]),r.jsx(Xc.Provider,{value:{isMobile:s,mediatorRef:u,currentHeaderConfigsRef:m,deviceValidated:i,...o},children:r.jsx(Vc,{children:e})})},ce=()=>x.useContext(Xc),Yc=x.createContext({}),wm=({children:e,...t})=>r.jsx(Yc.Provider,{value:{...t},children:e}),_e=()=>x.useContext(Yc),_t=(e,t)=>yt.create(n=>{const o=()=>n({value:e});return t&&t instanceof Set&&t.add(o),{value:e,actions:{setValue:s=>n({value:s}),reset:o}}}),Ht={category:null,menuMobileIsOpen:!1,searchModalIsOpen:!1,userMenuIsOpen:!1},Gt=new Set,Em=()=>{Gt.forEach(e=>{e()})},Qc=yt.create((e,t)=>{const n=()=>e({value:Ht.category});return Gt.add(n),{value:Ht.category,actions:{reset:n,setValue:o=>e(()=>({value:o})),updateValue:o=>{t().value!==o&&e({value:o})}}}}),Zc=()=>Qc(e=>e.value),Vt=()=>Qc(e=>e.actions),Jc=_t(Ht.menuMobileIsOpen,Gt),el=()=>Jc(e=>e.value),tl=()=>Jc(e=>e.actions),rl=_t(Ht.searchModalIsOpen,Gt),nl=()=>rl(e=>e.value),hs=()=>rl(e=>e.actions),ol=_t(Ht.userMenuIsOpen,Gt),gs=()=>ol(e=>e.value),ys=()=>ol(e=>e.actions),Rm=Object.freeze(Object.defineProperty({__proto__:null,resetAllHeaderStores:Em,useActionsHeaderCategory:Vt,useActionsMenuMobileIsOpen:tl,useActionsSearchModalIsOpen:hs,useActionsUserMenuIsOpen:ys,useGetHeaderCategoryStore:Zc,useGetMenuMobileIsOpen:el,useGetSearchModalIsOpen:nl,useGetUserMenuIsOpen:gs},Symbol.toStringTag,{value:"Module"})),At={selectedSkuInfo:{productId:"",name:"",size:"",sku:"",sellerId:"",sellerName:"",available:!1,quantity:1},openLetMeKnow:!1,openMeasurements:!1,showBottomNavigation:!1,showNotify:!1},It=new Set,Am=()=>{It.forEach(e=>{e()})},sl=yt.create(e=>{const t=()=>e({value:At.selectedSkuInfo});return It.add(t),{value:At.selectedSkuInfo,actions:{setValue:n=>e(o=>({value:{...o,...n}})),reset:t}}}),Kt=()=>sl(e=>e.value),al=()=>sl(e=>e.actions),il=_t(At.openLetMeKnow,It),Nm=()=>il(e=>e.value),Im=()=>il(e=>e.actions),cl=_t(At.showNotify,It),ll=()=>cl(e=>e.value),_s=()=>cl(e=>e.actions),ul=_t(At.showBottomNavigation,It),Tm=()=>ul(e=>e.value),Om=()=>ul(e=>e.actions),dl=_t(At.openMeasurements,It),fl=()=>dl(e=>e.value),pl=()=>dl(e=>e.actions),km=Object.freeze(Object.defineProperty({__proto__:null,resetAllPDPStores:Am,useActionsPDPOpenLetMeKnow:Im,useActionsPDPOpenMeasurements:pl,useActionsPDPSelectedSkuInfo:al,useActionsPDPShowBottomNavigation:Om,useActionsPDPShowNotify:_s,useGetPDPOpenLetMeKnow:Nm,useGetPDPOpenMeasurements:fl,useGetPDPSelectedSkuInfo:Kt,useGetPDPShowBottomNavigation:Tm,useGetPDPShowNotify:ll},Symbol.toStringTag,{value:"Module"})),ea={feedback:{active:!1,action:"add"},list:[]},vs=yt.create((e,t)=>({value:ea,actions:{reset:()=>e({value:ea}),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:""}}}))}})),Tt=()=>vs(e=>e.value.list),xs=()=>vs(e=>e.value.feedback),vt=()=>vs(e=>e.actions),Mm=Object.freeze(Object.defineProperty({__proto__:null,useActionsWishlistStore:vt,useGetWishlistFeedbackStore:xs,useGetWishlistStore:Tt},Symbol.toStringTag,{value:"Module"})),ml=x.createContext({}),Lm=({children:e,headerData:t,...n})=>{var f,h;const o=x.useRef(null),s=x.useRef(null),a=x.useRef(null),i=x.useRef(null),c=x.useRef(null),{mediatorRef:l,currentHeaderConfigsRef:u}=ce();return(f=l.current)==null||f.subscribe("header:change_variant",m=>{var b,S,v;if(m&&u.current&&(u.current.bannerVariant=m),!o.current)return;const g=document.body.scrollTop>0,y=o.current.getAttribute("data-interactiveVariant"),_=g?y:m??((b=u.current)==null?void 0:b.bannerVariant)??"default";_!==((S=u.current)==null?void 0:S.headerVariant)&&(o.current.setAttribute("data-bottomdivider",String(g)),o.current.setAttribute("data-variant",String(_)),(v=l.current)==null||v.publish("herobanner:change_controllers_variant",_),u.current&&(u.current.headerVariant=_))}),(h=l.current)==null||h.subscribe("header:change_position",m=>{o.current&&(o.current.style.position=m)}),x.useEffect(()=>{const m=new AbortController,d=p.helpers.throttle(()=>{var y;return(y=l.current)==null?void 0:y.publish("header:change_variant",null)},200);document.body.addEventListener("scroll",d,{passive:!0,signal:m.signal});const g=y=>{var b;(b=y.target.closest("a"))==null||b.blur()};return o.current&&(o.current.addEventListener("click",g,{signal:m.signal}),o.current.addEventListener("touchend",g,{signal:m.signal})),()=>{m.abort()}},[]),r.jsx(ml.Provider,{value:{headerData:t,structureRef:s,rootRef:o,tipbarRef:a,userMenuMobileRef:i,userMenuDesktopRef:c,...n},children:e})},we=()=>x.useContext(ml),hl=x.createContext({}),gl=({children:e,...t})=>r.jsx(hl.Provider,{value:x.useMemo(()=>t,[t]),children:e}),bs=()=>{const e=x.useContext(hl);if(e===void 0)throw new Error("useMenuMobileContext must be used within a MenuMobileProvider");return e},Dm=e=>{if(!e||typeof window>"u")return 0;const t=window.getComputedStyle(e);return parseInt(t.padding,10)},$m=(e,t,n)=>{if(!(e instanceof HTMLElement)||!(t instanceof HTMLElement))return{left:0,top:0};const o=t.getBoundingClientRect(),s=e.getBoundingClientRect(),a=e!=null&&e.parentElement?Dm(e==null?void 0:e.parentElement):0;return{left:o.left+o.width/2-(s.width+a),top:o.top+o.height+n}},yl=x.createContext({}),_l=({children:e,delay:t=600,gap:n=20,...o})=>{const[s,a]=x.useState(!1),i=x.useRef(null),[c,l]=x.useState(!1),[u,f]=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 m=window.document.querySelector("#cart-button"),d=window.document.querySelector("#add-to-cart--tooltip");if(m&&d){const{left:g,top:y}=$m(d,m,n??0);f({left:g,top:y}),l(!1)}},[n,s]),r.jsx(yl.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})},xt=()=>{const e=x.useContext(yl);if(e===void 0)throw new Error("useAddToCartContext must be used within a AddToCartProvider");return e},vl=x.createContext({}),zm=({children:e,SELLER_CODE_VALIDATION_KEYS:t,CARTPROVIDER_MESSAGE_PRODUCT_REMOVE:n,...o})=>{const s=Rt(),{setRecentlyAdded:a}=Wt(),i=x.useRef(""),c=ps(),{addNotification:l,removeNotification:u}=ms(),{addCoupon:f,addItem:h,addSellerCode:m,addMarketingData:d,emptyCart:g,isOpen:y,removeItem:_,shipping:b,shippingUpdate:S,toggleServiceToProduct:v,updateItemQuantity:j}=s;x.useEffect(()=>{const F=Fo.get("lastMedias");if(s.id&&F&&i.current!==F){i.current=F;const G=new URLSearchParams(F),q=Uc(G);d(q)}},[s,d]);const P=x.useCallback(async(F,G)=>(G==="coupon"?f(F):m(F,t??{})).then(X=>{if(typeof X!="boolean"&&X instanceof Object){if(G==="seller"&&"value"in X){const{statusOk:A,value:k}=X,L=String(k??"").split(" - ");return jt((L==null?void 0:L[0])??"",F,!!A)}return jt(String(X.coupon),F,!0)}return jt("","")}).catch(()=>Promise.resolve({code:400})),[f,m]),E=x.useCallback((F,G,q)=>{const{id:X}=F;j(X,G,q)},[j]),C=x.useCallback((F,G,q=!1)=>{if(!F)return;const{id:X}=F,A=Uo(s.items,X);if(A!==-1&&!q){const k=Number(s.items[A].quantity),L=s.items[A]?k+1:1;E(F,L,G)}else h({id:X,quantity:(F==null?void 0:F.quantity)??1,seller:F.seller});y||a(k=>[...k,F])},[h,E,s.items,y,a]),R=x.useCallback((F,G)=>{if(!F||!Array.isArray(F))return;a(X=>[...X,...F]);const q=F.map(X=>{const{id:A,quantity:k,seller:L}=X,Y=Uo(s.items,A),ne=zc(k??1,Y);return{id:A,quantity:ne,seller:L}});h(q,G)},[h,s.items,a]),I=x.useCallback(async(F,G,q)=>F?_(F).then(()=>(l(G??`${n}`,q),jt(F,F))):Promise.resolve(jt("","Product id required")),[l,_]),w=x.useCallback(()=>{s.items.length>0&&g()},[g,s.items]),N=x.useCallback((F,G="BRA")=>b(F,G),[b]),T=x.useCallback(F=>{F&&S(F)},[S]),z=x.useCallback(async(F,G,q)=>{const X=s.items.findIndex(k=>k.id===F);return s.items[X]&&X>=0?v(G,X,q??!1):!1},[s.items,v]),O=x.useCallback(async(F,G)=>j(F,G).then(q=>{if(Array.isArray(q)){const X=q.find(A=>A.id===F);if(X&&(X==null?void 0:X.quantity)<G)return String(X.quantity)}return!1}),[j]),W=x.useCallback(async()=>{await d({...s.marketingData,coupon:""})},[d,s.marketingData]),B=x.useCallback(async()=>{await d({...s.marketingData,utmiCampaign:"",utmCampaign:"",utmSource:"",utmMedium:""})},[d,s.marketingData]),V=x.useCallback(async()=>{await b("","BRA")},[b]);return r.jsx(vl.Provider,{value:x.useMemo(()=>({...o,addCouponSeller:P,addToCart:C,addItemsToCart:R,cartStore:s,notifications:c,clearCart:w,addNotification:l,isOpen:s.isOpen,removeNotification:u,removeToCart:I,setIsOpen:s.setIsOpen,shipping:N,shippingUpdateOption:T,toggleGiftItemCart:z,updateItemQuantity:O,removeCoupon:W,removeSellerCode:B,removeCEP:V}),[o,P,C,R,c,w,l,s,u,I,N,T,z,O,W,B,V]),children:e})},Re=()=>{const e=x.useContext(vl);if(e===void 0)throw new Error("useCartContext must be used within a CartProvider");return e},xl=x.createContext({}),js=({children:e,fetch:t})=>{const n=x.useRef(!0),[o,s]=x.useState(null),[a,i]=x.useState(!1);return x.useEffect(()=>{(async()=>{n.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),n.current=!1}catch{n.current=!0,i(!0)}})()},[t]),r.jsx(xl.Provider,{value:x.useMemo(()=>({data:o,isLoading:n.current??!1,isError:a}),[o,a,n]),children:e})},Cs=()=>{const e=x.useContext(xl);if(e===void 0)throw new Error("useProductsContext must be used within a useRootContext");return e},bl=x.createContext({}),Ss=({children:e,sort:t,state:n,count:o,collectionId:s,brand:a,searchParams:i,ITEMS_PER_PAGE:c})=>{const l=x.useMemo(()=>{var u;return s?[{key:"productclusterids",value:s.toString()}]:a?[{key:"brand",value:a}]:(u=n.base)!=null&&u.length?n.base.slice(1).split("/").map((f,h)=>({key:`category-${h+1}`,value:f})):[]},[n.base,s]);return r.jsx(bl.Provider,{value:x.useMemo(()=>({state:{...n,facets:[...l,...n.facets??[]]},sort:t,count:o??c,searchParams:i}),[l,o,t,n,i]),children:e})},ze=()=>{const e=x.useContext(bl);if(e===void 0)throw new Error("useSearchContext must be used within a SearchProvider");return e},jl=x.createContext({}),Fm=({children:e,...t})=>r.jsx(jl.Provider,{value:t,children:e}),Le=()=>{const e=x.useContext(jl);if(e===void 0)throw new Error("usePLPConstants must be used within a PLPConstantsProvider");return e},Cl=x.createContext({}),Bm=({children:e,selectedFacets:t})=>{const{data:n,...o}=Cs(),{router:s}=_e(),{searchParams:a,PLP_SORT_DEFAULT:i}=Le(),c=x.useCallback((m,d)=>{if(d){if(m.key.toLocaleLowerCase()==="price"){const g=d.getAll("facets");d.delete("facets"),g.forEach(y=>{const[_]=y.split("/");_!==m.key&&d.append("facets",y)})}d.set("page","1"),d.append("facets",`${m.key}/${m.value}`),s.push(`?${d.toString()}`)}},[s]),l=x.useCallback(()=>{const m=new URLSearchParams;m.set("sort",i),m.set("page","1"),s.push(`?${m.toString()}`)},[s]),u=x.useCallback((m,d)=>{if(!d||!d.has&&!d.has("facets"))return;const g=d.getAll("facets");d.delete("facets"),d.set("page","1"),g.forEach(y=>{const[_,b]=y.split("/");(_!==m.key||b!==m.value)&&d.append("facets",y)}),s.push(`?${d.toString()}`)},[s]),f=x.useCallback(m=>{const d=a?new URLSearchParams(a):new URLSearchParams;for(const[,g]of d.entries()){const[y,_]=g.split("/");if(y===m.key&&_===m.value)return u(m,d)}return c(m,d)},[c,u,a]),h=x.useCallback(m=>{const d=a?new URLSearchParams(a):new URLSearchParams;d.set("sort",m.replace("_",":")),s.push(`?${d.toString()}`)},[s,a]);return r.jsx(Cl.Provider,{value:x.useMemo(()=>({...o,breadcrumb:n&&"breadcrumb"in n?n==null?void 0:n.breadcrumb:[],deleteAllFacets:l,facets:n&&"facets"in n?n==null?void 0:n.facets:[],selectedFacets:t,onToggleFacet:f,onSort:h,searchParams:a}),[n,l,h,f,o,t,a]),children:e})},Sl=({children:e,forceUpdate:t})=>{const{state:n}=ze();return r.jsx(js,{fetch:()=>fetch("/api/search/facets",{method:"POST",body:JSON.stringify({...n,forceUpdate:t}),priority:"low"}),children:r.jsx(Bm,{selectedFacets:(n==null?void 0:n.facets)??[],children:e})})},Pl=()=>{const e=x.useContext(Cl);if(e===void 0)throw new Error("useFacetsContext must be used within a FacetsProvider");return e},Lt={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"}},qm={nextPage:!1,previousPage:!1,startCursor:"0",endCursor:"0",count:0,total:0},Hm="Imagem do produto",ta=1,Um="Sair",Wm=e=>e.exit,ra=({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"}],Gm=(e,t)=>{const n=(t??"").split("@")[0];return e?`Olá${n.length?", ":" "}${n}!`:"Olá!"},Vm=e=>"Seja bem vindo!",Km="Marque a caixa para aceitar os termos de política de privacidade.",Xm="Algumas informações estão incorretas ou não foram preenchidas",Ym="Enviar",wl=x.createContext({}),Qm=({children:e})=>{const{data:t,...n}=Cs(),[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]),r.jsx(wl.Provider,{value:x.useMemo(()=>({...n,products:t&&"products"in t?t==null?void 0:t.products:[],pagination:t&&"pagination"in t?t==null?void 0:t.pagination:qm,total:o}),[t,n,o]),children:e})},Ps=({children:e,query:t,forceUpdate:n})=>{const{count:o,state:s}=ze(),a={...s,count:o};return r.jsx(js,{fetch:()=>fetch("/api/search/product",{method:"POST",body:JSON.stringify({...a,query:t,forceUpdate:n,facets:s.facets??[]})}),children:r.jsx(Qm,{children:e})})},Xt=()=>{const e=x.useContext(wl);if(e===void 0)throw new Error("useProductsContext must be used within a ProductsProvider");return e},El=x.createContext({}),Zm=({children:e,term:t})=>{const[n,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]),r.jsx(El.Provider,{value:x.useMemo(()=>({suggestedTerms:n,loading:s,setLoading:a}),[n,s]),children:e})},Jm=({children:e,...t})=>r.jsx(Zm,{...t,children:e}),eh=()=>{const e=x.useContext(El);if(!e)throw new Error("useSuggestedTermsContext must be used within a SuggestedTermsProvider");return e},Rl=x.createContext({searches:[],isLoading:!1,error:null}),th=({children:e})=>{const[t,n]=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();n(u.data.searches||[])}catch(l){i(l instanceof Error?l.message:"Erro desconhecido")}finally{s(!1)}})()},[]),r.jsx(Rl.Provider,{value:x.useMemo(()=>({searches:t,isLoading:o,error:a}),[t,o,a]),children:e})},rh=()=>{const e=x.useContext(Rl);if(!e)throw new Error("useTopSearches must be used within a TopSearchesProvider");return e},Al=x.createContext({}),nh=({children:e,slug:t,searchParams:n,collectionId:o,brand:s,itemsPerPage:a=24,PLP_SORT_DEFAULT:i})=>{const{pathname:c}=_e(),l=x.useRef(""),[u,f]=x.useState(!1),h=x.useMemo(()=>{const d=new URL(c,"http://localhost"),g=(n==null?void 0:n.getAll("facets"))??[],y=(n==null?void 0:n.get("page"))??"1",_=(n==null?void 0:n.get("sort"))??(o?"":i);return d.searchParams.set("page",String(y)),d.searchParams.set("sort",String(_)),n!=null&&n.get("query")?(d.searchParams.set("query",n.get("query")),d):(d.searchParams.set("base",Array.isArray(t)?t.join("/"):t),d.searchParams.set("facets",g.join(",")),d)},[o,c,n,t]),m=x.useMemo(()=>{if(Array.isArray(n==null?void 0:n.getAll("facets")))return U.parseSearchState(h,n.getAll("facets")??[""]);const d=(n==null?void 0:n.getAll("facets"))??[];return U.parseSearchState(h,d)},[h,n]);return x.useEffect(()=>{l.current!==c&&(l.current=c,window.document.body.scrollTo(0,0))},[c]),r.jsx(Al.Provider,{value:x.useMemo(()=>({openFilters:u,setOpenFilters:f}),[u,f]),children:r.jsx(Ss,{ITEMS_PER_PAGE:a,searchParams:n??new URLSearchParams,state:x.useMemo(()=>({...m}),[m]),collectionId:o,brand:s,children:e})})},ws=()=>{const e=x.useContext(Al);if(e===void 0)throw new Error("usePLPContext must be used within a PLPProvider");return e},Pr=(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)=>Pr(s,t[a]));if(Array.isArray(t))return!1;const n=Object.keys(e),o=Object.keys(t);return n.length!==o.length?!1:n.every(s=>Object.prototype.hasOwnProperty.call(t,s)&&Pr(e[s],t[s]))},Nl=(e,t,n="page")=>Object.keys(t).some(o=>o===n?!1:!Pr(t[o],e[o])),Go=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 n=await t.json();return n==null?void 0:n.data},Il=()=>({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}}}),Tl=(e,t,n,o=24)=>{const s=new Set,a=[];if(!Array.isArray(e)||e.length===0)return{taken:s,placedBanners:a};const i=t*o*n;for(const c of e){let l=Number(c.position_grid),u=!1;for(;l<i;){const f=l%n;if(f+c.columns>n){l+=n-f;continue}if(!Array.from({length:c.columns}).some((d,g)=>s.has(l+g))){for(let d=0;d<c.columns;d++)s.add(l+d);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}},Vo=(e,t,n,o=24)=>{const{placedBanners:s,taken:a}=Tl(e??[],t,n),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}},jr=(e,t,n=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:Es(),products:t!=null&&t.products.length&&e===a?t==null?void 0:t.products:Array.from({length:n},()=>Il())}}),Ol=(e,t)=>[...e,{loading:!1,page:t,pagination:Es(),products:[]}],Es=()=>({nextPage:!1,previousPage:!1,startCursor:"0",endCursor:"1",count:1,total:1}),oh=(e,t,n,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=n[c];return t.filter((u,f)=>{const h=o[f];return h<=l||s>i&&h>l})},kl=(e,t)=>{const n=new Map;for(const s of e){const a=Math.floor(s/t);n.has(a)||n.set(a,[]),n.get(a).push(s)}const o=[];for(const[,s]of n){const a=s[Math.floor(Math.random()*s.length)];o.push(a)}return o},Ml=(e,t)=>{if(!e)return[];const n=e.map((o,s)=>o.video&&o.video!==""?s:null).filter(o=>o);return kl(n,t)},Ll=e=>Array.isArray(e)?e.map((t,n)=>({href:`/${e.slice(0,n+1).join("/")}`,name:t})):[],sh=Object.freeze(Object.defineProperty({__proto__:null,createBreadcrumb:Ll,createPage:Ol,createPages:jr,createPagination:Es,createProduct:Il,deepEqual:Pr,fetchPage:Go,getBanners:Tl,getPositions:Vo,getProductsWithVideo:Ml,getRandomVideoPerRow:kl,getVisibleBanners:oh,hasStateChangedExceptPage:Nl},Symbol.toStringTag,{value:"Module"})),ah=50,ih=yt.create((e,t)=>{const n=i=>Math.min(i,ah),o=async(i,c)=>{const l=n(i.page);try{const u=await Go({...i,page:l});s(l,f=>c?c(f,u):{...f,...u})}catch(u){console.error(`[PDC - SCROLL INFINITE FAILED TO FETCH PAGE ${l}]: ${u}`),s(l,f=>({...f,loading:!1}))}},s=(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,m,d;const f=n(Number(i==null?void 0:i.page));e({...c,pages:jr(f,void 0,u)});try{const g=await Go({...i,page:f});if(g){if(!g.products.length&&((h=g==null?void 0:g.pagination)==null?void 0:h.total)<f){a({...i,page:(m=g==null?void 0:g.pagination)==null?void 0:m.total},l),e({pages:jr((d=g==null?void 0:g.pagination)==null?void 0:d.total)});return}typeof l=="function"&&l(g),e({load:!0,pages:jr(f,g),total:Number(g.pagination.count)})}}catch(g){console.error(`[PDC - SCROLL INFINITE TO CREATE PAGES]: page ${f} ${g}`)}},addPage:(i,c,l)=>{const{pages:u}=t(),f=n(i==null?void 0:i.page);u.some(h=>h.page===f)||(e({...c,pages:Ol(u,f)}),a(i,l))},updateProducts:(i,c)=>{const l=t().pages.find(u=>u.page===n(i==null?void 0:i.page));l!=null&&l.loading||a(i,c)}}}),ch=(e,t,n,o=0)=>{if(!e.length)return[];let s=0;const a=[];for(let i=0;i<e.length;i+=n){const c=e.slice(i,i+n),l=c.findIndex(u=>{var f;return(f=u.node)==null?void 0:f.video});for(let u=0;u<c.length;u++){const f=i+u,h=o+f,m=t.find(g=>g.position_grid===h+1),d=h+s+1;m&&(s+=m.columns),a.push({position:d,canPlayVideo:u===l})}}return a},Dl=(e,t,n)=>{const o=(t-1)*n,s=t*n;return e>=o&&e<=s},Tr=e=>{var t;return(t=e==null?void 0:e.map(n=>({disable:U.disableSKU(n),size:U.getSKUName(n),skuID:"sku"in n&&n.sku})))==null?void 0:t.filter(n=>n.disable)},lh=Object.freeze(Object.defineProperty({__proto__:null,createGridPosAndVideo:ch,getSkusNotify:Tr,isPositionInCurrentPage:Dl},Symbol.toStringTag,{value:"Module"})),$l=({isMobile:e,ICONS:t,NOTIFY_INFO:n})=>r.jsxs(r.Fragment,{children:[r.jsx(p.Modal.Controls,{navigation:e?"top":"middle",isMobile:e??!1,children:!e&&r.jsxs(r.Fragment,{children:[r.jsx(p.Button,{"data-close":!0,iconNameStart:t.arrow_left,size:"small",variant:"tertiary"}),r.jsx(p.Button,{"data-close":!0,iconNameStart:t.close,size:"small",variant:"tertiary"})]})}),r.jsx(p.Modal.Title,{navigation:e?"top":"middle",title:n.title})]});$l.displayName="Notify.Controls";const Xe={"notify--header-modifier":"_notify--header-modifier_xlomp_1","notify--container":"_notify--container_xlomp_4","notify--form":"_notify--form_xlomp_20","notify--status":"_notify--status_xlomp_36","notify--status--success":"_notify--status--success_xlomp_50","notify--status--error":"_notify--status--error_xlomp_50","notify--modal--body":"_notify--modal--body_xlomp_99","notify--loading":"_notify--loading_xlomp_102","notify--selector":"_notify--selector_xlomp_122","notify--selector--header":"_notify--selector--header_xlomp_138","modal-modifier":"_modal-modifier_xlomp_168"};function zl(e){const n=decodeURIComponent(window.document.cookie).split(";");for(const o of n){const[s,a]=o.trim().split("=");if(s===e)return a}}function Rs(e,t,n={}){const s={...{path:"/",expires:new Date(Date.now()+36e5)},...n};let a=`${encodeURIComponent(e)}=${encodeURIComponent(t??"")}`;for(const i in s)s[i]!==void 0&&(a+=`; ${i}`,i==="expires"?a+=`=${s[i].toUTCString()}`:typeof s[i]=="boolean"?a+=`; ${s[i]?"true":"false"}`:a+=`=${s[i]}`);window.document.cookie=a}const uh=()=>{const{sendDataLayerEvent:e}=le(),{user:t}=Ot(),{cartStore:n}=Re();return x.useEffect(()=>{if(!t)return;(async()=>{const{userId:s,email:a,firstName:i,lastName:c,phone:l,homePhone:u,postalCode:f,street:h,number:m,city:d,gender:g}=t,y=new TextEncoder().encode(s),_=await crypto.subtle.digest("SHA-256",y),S=Array.from(new Uint8Array(_)).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:f,street:h,street_number:m,city:d,gender:g,orderform_id:n==null?void 0:n.id}}})})()},[t,n.id]),null},Fl=x.createContext({amount:null,boxes:null,toExpire:null,loading:!0,logout:()=>null,getCurrentCredits:()=>({credits:0,cashback:0})}),dh=({children:e,AUTH_TOKEN_COOKIE:t})=>{const[n,o]=x.useState({amount:null,boxes:null,toExpire:null,loading:!0}),s=x.useCallback(async()=>{try{await fetch("/api/user",{priority:"low"}).then(c=>c.json()).then(c=>{const{userCredits:l,...u}=c,{wishlist:f,...h}=u;o({amount:l==null?void 0:l.amount,boxes:l==null?void 0:l.boxes,toExpire:l==null?void 0:l.toExpire,user:h,loading:!1,wishlist:(typeof f=="string"?f.split(","):f)??[]})})}catch(c){console.error("my credits request",c),o({...n,loading:!1})}},[o]),a=x.useCallback(()=>{Rs(t),s()},[s]),i=x.useCallback(()=>n.boxes?n.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},[n]);return x.useEffect(()=>{s()},[s]),r.jsxs(Fl.Provider,{value:x.useMemo(()=>({...n,getCurrentCredits:i,logout:a}),[n,i,a]),children:[r.jsx(uh,{}),e]})},Ot=()=>{const e=x.useContext(Fl);if(e===void 0)throw new Error("useContext(SessionContext) must be used within a SessionProvider");return e},Bl=({color:e,delay:t=3e3,sku:n,setStatus:o,setIsLoading:s,NEWSLETTER_CONFIGS:a,NOTIFY_INFO:i})=>{const c=x.useRef(null),[l,u]=x.useState(null),{sendDataLayerEvent:f}=le(),{user:h}=Ot(),m=h!=null&&h.firstName?`${h==null?void 0:h.firstName} ${h==null?void 0:h.lastName}`:"";return r.jsx("div",{className:Xe["notify--form"],children:r.jsxs("form",{action:"POST",onSubmit:async d=>{var _;d.preventDefault();const g=d.currentTarget,y=((_=g.querySelector("input"))==null?void 0:_.value)??"";fetch("/api/aviseme",{method:"POST",body:JSON.stringify({userName:m,email:y,sku:n==null?void 0:n.skuID})}).then(b=>o(b.ok)).finally(()=>{s(!1),g.reset(),f({functionKey:"readyEvents",data:{event:"notify_me",readyData:{size:n==null?void 0:n.size,item_id:n==null?void 0:n.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:[r.jsx(p.TextField.Structure,{input:r.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:d=>u(!d.target.validity.valid),required:!0}),supportText:typeof l=="boolean"&&l?r.jsx(p.TextField.SupportText,{text:a.messages.invalid_email,feedback:"error"}):r.jsx(r.Fragment,{})}),r.jsx(p.Button,{disabled:!(l===!1||!n)||!n,type:"submit",size:"large",children:i.button})]})})};Bl.displayName="Notify.Form";const ql=({isLoading:e=!1})=>r.jsx("div",{className:Xe["notify--loading"],"data-loading":e,children:r.jsx(p.Spinner,{})});ql.displayName="Notify.Loading";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"},Hl=({children:e,...t})=>r.jsx("div",{...t,className:As["product-variation-list--list"],children:e});Hl.displayName="ProductVariationList.List";const Ul=({fill:e="#1352C7",src:t="",type:n="size",text:o,...s})=>{const{nextimage:a}=_e();return n==="size"?r.jsxs(p.ToggleSize.Wrapper,{...s,size:"large",variation:"ghost",children:[r.jsx(p.ToggleSize.DisabledAdornment,{title:"disabled-adornment-size"}),r.jsx(p.ToggleSize.Text,{children:o})]}):r.jsxs(p.ToggleStyle.Wrapper,{...s,size:"small",title:"wrapper-texture",children:[r.jsx(p.ToggleStyle.DisabledAdornment,{title:"disabled-adornment-texture"}),n==="color"?r.jsx(p.ToggleStyle.Color,{background:e,title:"color"}):r.jsx(p.ToggleStyle.Texture,{title:"texture",children:r.jsx(a,{alt:o??"image",height:40,src:t,width:40})})]})};Ul.displayName="ProductVariationList.Option";const Wl=({children:e,...t})=>r.jsx("div",{className:As["product-variation-list"],...t,children:e});Wl.displayName="ProductVariationList.Root";const Gl=({children:e,title:t,...n})=>r.jsxs("div",{...n,className:As["product-variation-list--title"],children:[t?r.jsx(p.TextStructure.Root,{children:r.jsx(p.TextStructure.SectionWrapper,{children:r.jsx("p",{children:t})})}):r.jsx(r.Fragment,{}),e]});Gl.displayName="ProductVariationList.Title";const Qe={List:Hl,Option:Ul,Title:Gl,Root:Wl},fh=(e,t)=>{if(!e||!t)return!1;const n=Object.keys(e);return n.length!==Object.keys(t).length?!1:n.every(o=>e[o]===t[o])},Vl=({children:e,label:t="",skus:n,sku:o,setSku:s})=>r.jsxs(r.Fragment,{children:[r.jsx("div",{className:Xe["notify--selector--header"],children:e}),r.jsxs(Qe.Root,{className:Xe["notify--selector"],children:[r.jsx(Qe.Title,{title:t}),r.jsx(Qe.List,{children:Array.isArray(n)&&n.map((a,i)=>{const c=fh(o,a);return r.jsx(Qe.Option,{active:c,onClick:()=>s(c?null:a),text:String(a.size),type:"size"},i)})})]})]});Vl.displayName="Notify.Selector";const na=({type:e,icon:t,title:n,subtitle:o})=>r.jsx("div",{className:Xe[`notify--status--${e}`],children:r.jsx(p.TextStructure.Root,{adornment:{start:r.jsx(p.Icon,{name:t,size:"large"})},children:r.jsxs(p.TextStructure.DivWrapper,{children:[r.jsx("h2",{children:n}),r.jsx("h3",{children:o})]})})}),Kl=({status:e,ICONS:t,PRODUCT_CARD_TEXTS:n})=>r.jsxs("div",{className:Xe["notify--status"],"data-status":e,children:[r.jsx(na,{...n.success,icon:t.check_circle,type:"success"}),r.jsx(na,{...n.error,icon:t.alert_circle,type:"error"})]});Kl.displayName="Notify.Status";const Ns=({color:e,open:t,setVisible:n,skus:o,sku:s,setSku:a,ICONS:i,NEWSLETTER_CONFIGS:c,NOTIFY_INFO:l,PRODUCT_CARD_TEXTS:u,Z_INDEX_WAR:f})=>{const[h,m]=x.useState(!1),[d,g]=x.useState(null),{isMobile:y}=ce();return r.jsxs(p.Modal.Root,{isMobile:y??!1,isOpen:t,setIsOpen:n,variant:y?"sideBottom":"sideLeft",style:{zIndex:f.modal},className:Xe["modal-modifier"],children:[r.jsx(p.Modal.Header,{navigation:"top",className:Xe["notify--header-modifier"],children:r.jsx($l,{isMobile:y??!1,ICONS:i,NOTIFY_INFO:l})}),r.jsxs(p.Modal.Body,{className:Xe["notify--modal--body"],children:[r.jsxs("div",{className:Xe["notify--container"],children:[r.jsxs(Vl,{label:l.selector_label,sku:s,skus:o,setSku:a,children:[r.jsx("p",{children:l.subtitle}),r.jsx("span",{children:l.description})]}),r.jsx(Bl,{delay:4e3,sku:s,setStatus:g,setIsLoading:m,color:e,NEWSLETTER_CONFIGS:c,NOTIFY_INFO:l}),r.jsx(ql,{isLoading:h}),r.jsx("div",{className:Xe["notify--selector--header"],children:r.jsx("span",{children:l.legal})})]}),r.jsx(Kl,{status:d,ICONS:i,PRODUCT_CARD_TEXTS:u})]})]})};Ns.displayName="Notify";const Or=({skus:e,ICONS:t,NEWSLETTER_CONFIGS:n,NOTIFY_INFO:o,PRODUCT_CARD_TEXTS:s,Z_INDEX_WAR:a,...i})=>{const c=Tr(e??[]);return r.jsx(Ns,{skus:c,ICONS:t,NEWSLETTER_CONFIGS:n,NOTIFY_INFO:o,PRODUCT_CARD_TEXTS:s,Z_INDEX_WAR:a,...i})};Or.displayName="PDC.Notification";const Xl=x.createContext({}),Yl=({banners:e,children:t})=>{const{searchParams:n,ITEMS_PER_PAGE:o,ICONS:s,NEWSLETTER_CONFIGS:a,NOTIFY_INFO:i,PRODUCT_CARD_TEXTS:c,Z_INDEX_WAR:l}=Le(),{router:u}=_e(),{sendDataLayerEvent:f}=le(),{isMobile:h}=ce(),{state:m}=ze(),{addPage:d,createPages:g,updateProducts:y,..._}=ih(),b=h?8:16,S=h?2:4,v=x.useRef(!1),j=x.useRef(m),[P,E]=x.useState(!1),[C,R]=x.useState(null),[I,w]=x.useState([]),N=x.useCallback(B=>{B&&"pagination"in B&&f({functionKey:"productListEvent",data:{event:"view_item_list",commonData:{products:B.products}}})},[f]),T=x.useCallback(B=>{if(B.pagination.nextPage===!0){const V=B.page+1,F=Vo(e,V,S,o);d({...m,page:V},F,N)}},[d,e,N,S,o,m]),z=x.useCallback(B=>{B.loading===!1&&y({...m,page:B.page},N)},[N,y,m]),O=x.useCallback(B=>{const V=new URLSearchParams(n);B.page!==Number(V.get("page")??1)&&(V.set("page",String(B.page)),u.replace(`?${V.toString()}`,{scroll:!1}))},[u,n]),W=x.useCallback((B,V)=>{const F=V?Tr([V]):null;w(B),R(F!=null&&F.length?F[0]:null),E(!0)},[]);return x.useEffect(()=>{const B=!v.current,V=Nl(j.current,m),F=Vo(e,m.page,S);B?g(m,F,N,o):V&&(g(m,F,N,o),j.current=m),v.current=!0},[e,g,N,S,o,m]),r.jsxs(Xl.Provider,{value:x.useMemo(()=>({..._,addPage:d,addNewPage:T,createPages:g,gap:b,columns:S,handleNotify:W,updatePage:z,updateProducts:y,updateParamPage:O}),[d,T,g,W,b,S,_,z,y,O]),children:[t,r.jsx(Or,{open:P,sku:C,skus:I,setSku:R,setVisible:E,ICONS:s,NEWSLETTER_CONFIGS:a,NOTIFY_INFO:i,PRODUCT_CARD_TEXTS:c,Z_INDEX_WAR:l})]})},st=()=>{const e=x.useContext(Xl);if(e===void 0)throw new Error("PLPInfiniteScrollContext must be used within a ScrollInfiniteProvider");return e},Ql=x.createContext({gridBanners:void 0,banners:[]}),ph=({children:e,data:t,device:n,SectionZone:o,COMMON_PAGE_COLUMN_GAP_PDC:s})=>{const{isMobile:a}=ce(),i=(t==null?void 0:t.sections.filter(h=>h.name!=="List Product Banners"))??[],c=i.slice(0,ta),l=i.slice(ta,i.length),u=t==null?void 0:t.sections.find(h=>h.name==="List Product Banners"),f=x.useMemo(()=>{var h,m;return((m=(h=u==null?void 0:u.data)==null?void 0:h.banners)==null?void 0:m.map(d=>({...d.banner,columns:d.bannerWidth,position_grid:d.bannerPosition})))??[]},[u]);return a&&n==="mobile"||!a&&n==="desktop"?r.jsxs(Ql.Provider,{value:{gridBanners:u,banners:f},children:[r.jsx(o,{data:c??[]}),r.jsxs(p.Utils.Column,{gap:s,className:p.helpers.classNameConcat("utils-column-modifier"),children:[e,r.jsx(o,{data:l??[]})]})]}):r.jsx(r.Fragment,{})},kr=()=>{const e=x.useContext(Ql);return e===void 0&&console.error("Needs PLPContentContext on parent component"),e},Zl=x.createContext({}),Jl=({children:e,filters:t,PLP_FILTERS:n,...o})=>{var a;const s=(a=t.facets)==null?void 0:a.filter(i=>n.find(c=>c.key===i.key));return r.jsx(Zl.Provider,{value:x.useMemo(()=>({...o,filters:{...t,facets:s}}),[t,s,o]),children:e})},kt=()=>{const e=x.useContext(Zl);if(e===void 0)throw new Error("useFilterContext must be used within a FilterProvider");return e},eu=x.createContext({product:void 0}),mh=({children:e,data:t,productId:n,COMMON_PAGE_COLUMN_GAP:o,SectionZone:s})=>r.jsxs(eu.Provider,{value:{productId:n},children:[e,r.jsx(p.Utils.Column,{gap:o,className:p.helpers.classNameConcat("utils-column-modifier"),children:r.jsx(s,{data:(t==null?void 0:t.sections)??[]})})]}),tu=()=>{const e=x.useContext(eu);return e||console.error("use this hook only inside PDPContentProvider hierarchy"),e},hh=e=>e.normalize("NFD").replace(/[\u0300-\u036f]/g,"").replace(/\s+/g,"-").toLowerCase().trim();function gh(e,t=1e3){let n=!1;return(...o)=>{n||(e(...o),n=!0,setTimeout(()=>{n=!1},t))}}function yh(e,t=1e3){let n;return(...o)=>{clearTimeout(n),n=setTimeout(()=>{e(...o)},t)}}const ru=(e,t)=>t.getTime()>e.getTime()?Math.abs(t.getTime()-e.getTime()):0,zt=(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),_h=e=>{const t=em.decodeJwt(e??"");return{email:t.sub,userId:t.userId}},vh=["name","email","phone","date","cpf","cep"],oa={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}$/},nu=({type:e,input:t,required:n=!1})=>{if(typeof t!="string"||!n&&t===""||!oa[e])return!0;const o=t.trim();return oa[e].test(o)},xh=e=>{const t=/\/(\d+)-\d+-\d+\/(.+?)\./,n=typeof e=="string"?e.match(t):null;return n?n[2].replace(/-/g," "):Hm},bh=Object.freeze(Object.defineProperty({__proto__:null,FieldTypes:vh,debounce:yh,getAltTextFromUrl:xh,getAuthenticatedUser:_h,getCookie:zl,getDaysHoursMinutesSeconds:zt,getMilliSeconds:ru,removeAccentsAndReplaceSpaces:hh,setCookie:Rs,throttle:gh,validateInput:nu},Symbol.toStringTag,{value:"Module"})),jh=({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}},Ch=({formData:e,mountedFields:t,inputsStatus:n,hasTermsAndConditions:o,checkboxRef:s,setFormStatus:a})=>{let i=!1,c=!1;const l={...n};return o&&!s.current&&(a("unchecked"),i=!0),e.forEach((u,f)=>{var d;if(f==="terms-and-conditions")return;const h=(d=t[f])==null?void 0:d.required;if(h&&!u){l[f]="required",i=!0;return}nu({type:t[f].type,input:u,required:h})||(l[f]="error",c=!0),typeof u=="string"&&e.set(f,u.toString().trim())}),{hasEmptyFields:i,hasErrors:c,inputStatusToUpdate:l}},ou=x.createContext({}),su=({children:e,masterDataEmailField:t,fields:n,variant:o,CONSTANTS:{MASTER_DATA_ENTITY:s,NEWSLETTER_CONFIGS:a}})=>{const{sendDataLayerEvent:i}=le(),c=a.hasTermsAndConditions,{mountedFields:l,mountedInputsStatus:u}=x.useMemo(()=>jh({fields:n}),[n]),f=x.useRef(!1),[h,m]=x.useState("idle"),[d,g]=x.useState(u),y=async({searchFields:E,entity:C})=>{const R=await mt.post("/api/master-data/search",{body:{masterDataEntity:C,searchFields:E,headers:{"REST-Range":"resources=0-49"}}});return console.info(R),R.data},_=async({documentId:E,fieldsToBeUpdated:C,entity:R})=>(await mt.post("/api/master-data/update",{dataEntityName:R,documentId:E,fieldsToBeUpdated:C})).status,b=x.useCallback(async({payload:E,response:C},R,I)=>{var O;const{email:w,...N}=E,[T]=await y({searchFields:{[R]:w},entity:I??s.newsletter}),z=Array.isArray(T)?(O=T[0])==null?void 0:O.id:void 0;return T&&await _({documentId:z,fieldsToBeUpdated:N,entity:I??s.newsletter})!==204?{...C,status:"error"}:{...C,status:"success"}},[]),S=x.useCallback(async({formData:E},C,R)=>{const I={status:"idle",inputsStatus:{}},w={};E.forEach((N,T)=>{w[T]=N});try{const T=(await mt.post("/api/master-data",{body:{payload:w,masterDataEntity:C??s.newsletter}})).data;return(T==null?void 0:T.Message)==="duplicated entry"?b({payload:w,response:I},R,C):T!=null&&T.Id?{...I,status:"success"}:{...I,status:"error"}}catch(N){return console.error("error",N),{...I,status:"error"}}},[b]),v=x.useCallback(async(E,C,R)=>{E.preventDefault();const I=new FormData(E.target);if(I.append("acceptedTerms",f.current?"true":"false"),f.current){const N=new Bo.TZDate(new Date,"America/Sao_Paulo").toISOString();I.append("termsAcceptedAt",N)}C&&Object.keys(C).forEach(N=>{I.append(N,C[N])});const w=await S({formData:I},R??"",t);w&&(m(w==null?void 0:w.status),g(w.inputsStatus),w.status==="success"&&i({functionKey:"readyEvents",data:{event:"generate_lead"}}))},[t,S,m,g,i]),j=x.useCallback(E=>{const C=new FormData(E.currentTarget.parentElement),{hasEmptyFields:R,hasErrors:I,inputStatusToUpdate:w}=Ch({formData:C,mountedFields:l,inputsStatus:d,hasTermsAndConditions:c,checkboxRef:f,setFormStatus:m});if(g(w),R||I){E.preventDefault();return}m("loading")},[l,d,c,f]),P=x.useCallback(()=>{m("idle"),g(u)},[u]);return r.jsx(ou.Provider,{value:x.useMemo(()=>({formStatus:h,handleSubmit:v,setFormStatus:m,inputsStatus:d,setInputsStatus:g,hasTermsAndConditions:c,handleClickToSubmit:j,checkboxRef:f,masterDataEmailField:t,fields:n,variant:o,resetNewsletter:P}),[h,v,m,d,g,j,c,f,t,n,o,P]),children:e})},Is=()=>{const e=x.useContext(ou);if(e===void 0)throw new Error("useNewsletterContext must be used within a NewsletterProvider");return e},au={contexts:{addToCart:{hook:xt,provider:_l},cart:{hook:Re,provider:zm},cms:{FlagsAndTags:{context:us,hook:nt,provider:tm}},newsletter:{hook:Is,provider:su},events:{hook:le,provider:lm},global:{hook:ce,provider:Pm,mediator:Kc},header:{hook:we,provider:Lm},menuMobile:{hook:bs,provider:gl},next:{hook:_e,provider:wm},pdp:{provider:rm},PDPContent:{provider:mh,hook:tu},plp:{provider:nh,hook:ws},plpFilter:{hook:kt,provider:Jl},PLPContent:{provider:ph,hook:kr},plpInfinite:{provider:Yl,hook:st},pdpdata:{provider:um},searchFacets:{hook:Pl,provider:Sl},searchProducts:{hook:Xt,provider:Ps},searchRoot:{hook:Cs,provider:js},searchSearch:{hook:ze,provider:Ss},searchSuggestedTerms:{hook:eh,provider:Jm},searchTopSearchs:{hook:rh,provider:th},session:{hook:Ot,provider:dh},ui:{hook:Wt,provider:Vc}},hooks:{useBackPDC:yc,useClipboard:dm,useDisableZoom:Ec,useLocalStorage:pm,useOnScreen:ds,useSentinel:Ir,useTouchZoomPan:Rc},stores:{cart:Cm,header:Rm,pdp:km,wishlist:Mm}},Sh={cart:xm,events:cm,plp:sh,product:U.productHelpers,utils:bh},Ts={helpers:Sh},qe={"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"},iu=({brand:e,className:t,name:n,...o})=>r.jsxs("div",{...o,className:p.helpers.classNameConcat(qe["add-to-cart--card--name"],t),children:[r.jsx(p.Tag,{style:{textTransform:"uppercase"},size:"small",variant:"quaternary",title:e,children:e}),r.jsx(p.TextStructure.Root,{children:r.jsx(p.TextStructure.DivWrapper,{alignContent:"flex-start",alignItems:"flex-start",children:r.jsx("p",{className:"typography-style-body-md",children:n})})})]});iu.displayName="AddToCart.Card.Name";const cu=({className:e,listPrice:t,price:n,quantity:o,productId:s,...a})=>{const i=U.formatPriceToCurrency(n/100),c=U.formatPriceToCurrency(t/100);return r.jsx("div",{...a,className:p.helpers.classNameConcat(qe["add-to-cart--card--price-quantity"],e),children:r.jsx(p.ProductInfo.Root,{size:"small",layout:"vertical",children:r.jsx(p.ProductInfo.Wrapper,{size:"small",layout:"vertical",children:r.jsx(p.ProductInfo.ValuesWrapper,{children:n!==t?r.jsxs(r.Fragment,{children:[r.jsx(p.ProductInfo.Price,{label:"originalPrice",value:i,size:"small"},"price-list"),r.jsx(p.ProductInfo.Price,{label:"discountPrice",value:c,size:"small"},"price-low")]}):r.jsx(p.ProductInfo.Price,{label:"defaultPrice",value:c,size:"small"},"price-low")})})})})};cu.displayName="AddToCart.Card.PriceQuantity";const Ph="_skeleton_12b79_1",wh={skeleton:Ph},lu=({style:e})=>r.jsx("div",{style:e,className:wh.skeleton}),Eh="_image_lypfr_1",Rh={image:Eh},Ah=({alt:e,className:t,objectFit:n,...o})=>{const{nextimage:s}=_e();return r.jsx(s,{quality:90,...o,alt:e??"",className:p.helpers.classNameConcat(Rh.image,t),"data-object-fit":n??"cover"})},Nh=({videoRef:e,...t})=>r.jsx("video",{...t,ref:e,children:r.jsx("track",{kind:"captions"})}),Ie={Image:Ah,Video:Nh},uu=({className:e,productGroupID:t,size:n,texture:o,...s})=>{const{CONSTANTS:{TEXTURE_IMAGE:a,TOGGLE_STYLE_MODIFIER:i}}=xt(),[c,l]=x.useState(o??"");return x.useEffect(()=>{c||fetch("/api/catalog/product/info",{method:"POST",priority:"low",body:JSON.stringify({ids:[t]})}).then(u=>u.json()).then(u=>{const f=u.data[0].items[0];if(f){const h=f.images.find(m=>a.includes(m.imageLabel));h!=null&&h.imageUrl?l(h.imageUrl):l(f.images[0].imageUrl)}}).catch(u=>{console.error(u)})},[c,t]),r.jsxs("div",{...s,className:p.helpers.classNameConcat(qe["add-to-cart--card--style-size"],e),children:[r.jsx(p.ToggleStyle.Wrapper,{size:"x-small",style:i,children:r.jsx(p.ToggleStyle.Texture,{children:c?r.jsx(Ie.Image,{alt:"",src:c??"",width:164,height:164,style:i}):r.jsx(lu,{})})}),r.jsx(p.Utils.Divider,{direction:"vertical",size:"medium",style:{height:24}}),n&&r.jsxs(p.ToggleSize.Wrapper,{size:"small",title:"wrapper-texture",children:[r.jsx(p.ToggleSize.DisabledAdornment,{title:"disabled-adornment-texture"}),r.jsx(p.ToggleSize.Text,{children:n})]})]})};uu.displayName="AddToCart.Card.StyleSize";const{helpers:Ih}=Ts,du=({className:e,item:t,texture:n,...o})=>{const{itemOffered:{name:s,brand:a,skuName:i,isVariationOf:{productGroupID:c}},quantity:l,price:u,sellingPrice:f}=t,{CONSTANTS:{NAME_SPLIT_SYMBOL:h}}=xt(),{size:m}=Ih.product.getColorAndSizeFromSkuName(i??s,h);return r.jsxs("div",{...o,className:p.helpers.classNameConcat(qe["add-to-cart--card--content"],e),children:[r.jsx(iu,{brand:a.name,name:s}),r.jsx(cu,{price:u,listPrice:f,quantity:l,productId:t.id}),r.jsx(uu,{size:m,texture:n,productGroupID:c})]})};du.displayName="AddToCart.Card.Content";const fu=({image:e,thumbnail:t=!1})=>r.jsx(Ie.Image,{alt:e.alternateName??"image","data-thumbnail":t,height:t?152:120,src:e.url,width:t?152:94});fu.displayName="AddToCart.Card";const pu=({className:e,item:t,texture:n,thumbnail:o,...s})=>{const{itemOffered:{image:[a]}}=t,i=U.updatedResizedImg(a.url,{width:200,height:300});return r.jsxs("div",{...s,className:p.helpers.classNameConcat(qe["add-to-cart--card"],e),children:[r.jsx(fu,{image:{alternateName:a.alternateName||"Produto",url:i||""},thumbnail:o}),!o&&r.jsx(du,{item:t,texture:n})]})};pu.displayName="AddToCart.Card";const mu=({className:e,children:t,title:n,...o})=>r.jsxs("div",{...o,className:p.helpers.classNameConcat(qe["add-to-cart--content"],e),children:[r.jsx("div",{className:qe["add-to-cart--content--title"],children:n&&r.jsx("h2",{children:n})}),t,r.jsx(ht.Footer,{})]});mu.displayName="AddToCart.Layout.Content";const hu=({className:e,...t})=>{var d,g;const{isMobile:n,handleClose:o,CONSTANTS:{ADD_TO_CART:s}}=xt(),{cartStore:{totalizers:a},setIsOpen:i}=Re(),c=(d=a.find(y=>y.id==="Discounts"))==null?void 0:d.value,l=((g=a.find(y=>y.id==="Items"))==null?void 0:g.value)??0,u=a.find(y=>y.id==="Shipping"),h=(l-Math.abs(c??0)+((u==null?void 0:u.value)??0))/100,m=U.formatPriceToCurrency(h??0);return r.jsxs("div",{...t,className:p.helpers.classNameConcat(qe["add-to-cart--footer"],e),children:[r.jsxs("div",{className:qe["add-to-cart--footer--total"],children:[r.jsx("span",{children:"Subtotal:"}),r.jsx("span",{children:m})]}),r.jsx(p.Button,{size:"medium",variant:"primary","data-close":!0,onClick:()=>i(!0),children:s.footer.bag}),n?r.jsx(p.Button,{"data-close":!0,size:"medium",variant:"tertiary",children:s.footer.keep_buying}):r.jsx(p.Button,{onClick:()=>o(),size:"medium",variant:"tertiary",children:s.footer.keep_buying})]})};hu.displayName="AddToCart.Layout.Footer";const gu=({children:e,className:t,thumbnail:n=!1,...o})=>{const{cartStore:{options:s}}=Re(),{recentlyAddedProducts:a}=Wt(),i=a.length>3?4:a.length;return r.jsxs("div",{...o,className:qe["add-to-cart--items"],"data-thumbnail":n,children:[Array.isArray(a)&&a.filter((c,l)=>l<i).map(c=>{var u;const l=(u=s==null?void 0:s.find(f=>f.id===c.itemOffered.isVariationOf.productGroupID))==null?void 0:u.texture;return r.jsx(ht.Card,{item:c,thumbnail:n,texture:l},c.itemOffered.sku)}),e]})};gu.displayName="AddToCart.Layout.Items";const yu=({children:e,Z_INDEX_WAR:t})=>{const{isOpen:n,setIsOpen:o}=xt(),{isMobile:s}=ce();return r.jsxs(p.Modal.Root,{"data-modal":"add-to-cart--modal",className:qe["add-to-cart__modal"],isMobile:s??!1,isOpen:n,setIsOpen:o,variant:"sideBottom",style:{zIndex:t.modal},children:[r.jsx(p.Modal.Header,{navigation:"top",children:r.jsx(p.Modal.Controls,{navigation:"top",isMobile:!0})}),r.jsx(p.Modal.Body,{children:e})]})};yu.displayName="AddToCart.Modal";const Th=({children:e})=>{const{count:t,handleClose:n,setIsOpen:o}=xt(),s=x.useRef(t);return x.useEffect(()=>{t>s.current&&o(!0),t<s.current&&s.current>=1&&n(),s.current=t},[t,n,o]),r.jsx(r.Fragment,{children:e})},_u=({children:e,component:t,CONSTANTS:n,...o})=>{const{recentlyAddedProducts:s}=Wt(),{isMobile:a}=ce(),i=s.length>3?4:s.length;return r.jsx(_l,{...o,count:i,isMobile:a,CONSTANTS:n,children:r.jsx(Th,{children:a?r.jsxs(r.Fragment,{children:[r.jsx(ht.Modal,{Z_INDEX_WAR:n.Z_INDEX_WAR,children:t}),e]}):r.jsx(ht.Tooltip,{component:t,style:{width:350},Z_INDEX_WAR:n.Z_INDEX_WAR,children:e})})})};_u.displayName="AddToCart.Root";const vu=({children:e,component:t,Z_INDEX_WAR:n,...o})=>{const{contentRef:s,left:a,isLeaving:i,target:c,isOpen:l,top:u}=xt();return r.jsx(p.Tooltip.Root,{arrow:"top-right",component:r.jsx("div",{...o,ref:s,children:t}),id:"add-to-cart--tooltip",className:qe["add-to-cart--tooltip"],style:{zIndex:n.modal},isLeaving:i,isOpen:l,left:a,size:"medium",position:"top",top:u,children:r.jsx("div",{className:qe["add-to-cart--tooltip"],ref:c,children:e})})};vu.displayName="AddToCart.Tooltip";const ht={Card:pu,Content:mu,Footer:hu,Items:gu,Modal:yu,Root:_u,Tooltip:vu},Os=({title:e,...t})=>{const{recentlyAddedProducts:n}=Wt(),{isMobile:o}=ce(),s=n.length>3?4:n.length,a=n.length>(s??1),i=n.length>1;return r.jsx(ht.Root,{isMobile:o,count:n.length,component:r.jsx(ht.Content,{title:e,children:r.jsx(ht.Items,{thumbnail:i,children:a&&r.jsx(p.Badge.Count,{count:n.length-s,size:"medium",variant:"secondary"})})}),...t})};Os.displayName="AddToCart";const sa={"backtotop-btn":"_backtotop-btn_vcjsm_1","card-modifier":"_card-modifier_vcjsm_29"},Oh=({children:e,className:t,adornment:n,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&&n?{flexDirection:{top:"column",bottom:"column-reverse",left:"row",right:"row-reverse"}[o]}:{},f=()=>{window&&window.document.body.scrollTo({...c})};return r.jsx(p.Card,{...i,shadow:!0,padding:"small",className:p.helpers.classNameConcat(sa["card-modifier"],t),style:{...a,padding:0},children:r.jsxs("button",{className:sa["backtotop-btn"],onClick:f,style:{...u},"data-orientation":o,children:[n,e]})})},kh="_container_1sy8s_16",lt={"carousel-container":"_carousel-container_1sy8s_1","add-cart-container":"_add-cart-container_1sy8s_8",container:kh,"add-itens-to-cart-container":"_add-itens-to-cart-container_1sy8s_38","add-itens-to-cart-container-values":"_add-itens-to-cart-container-values_1sy8s_45","add-itens-to-cart-qty-products":"_add-itens-to-cart-qty-products_1sy8s_50","add-itens-to-cart-total":"_add-itens-to-cart-total_1sy8s_60","add-button":"_add-button_1sy8s_70"},Mh=({selectedProducts:e,handleAddAllToCart:t,CONSTANTS:n})=>{const o=Object.values(e.products).length;return r.jsxs("div",{className:lt["add-itens-to-cart-container"],children:[r.jsxs("div",{className:lt["add-itens-to-cart-container-values"],children:[r.jsx("div",{className:lt["add-itens-to-cart-qty-products"],children:r.jsx("span",{children:o===0?n.BUY_PACKAGE.group_cart.select_all_product:`${o} ${o===1?n.BUY_PACKAGE.group_cart.select_product:n.BUY_PACKAGE.group_cart.select_product+"s"}`})}),r.jsx("div",{className:lt["add-itens-to-cart-total"],children:r.jsx("span",{children:U.freightParsePrice({valueInCents:e.totalPrice*100,hasFree:!1,freeTaxMessage:n.FREIGHT_CALCULATION.messages.free_tax})})})]}),r.jsx(p.Button,{onClick:t,className:lt["add-button"],size:"large",disabled:o===0,variant:"primary",children:n.BUY_BUTTON_LABELS.add_to_cart})]})},Lh=e=>e.reduce((t,n)=>{var s;const o=t.find(a=>a.node.id===n.node.id);if(!o)return[...t,n];if((s=o==null?void 0:o.node.isVariantOf)!=null&&s.hasVariant){const a=o.node.isVariantOf.hasVariant,i=n.node.isVariantOf.hasVariant;a&&i&&(o.node.isVariantOf.hasVariant=[...a,...i])}return t},[]),Dh=({selectedProduct:e,productId:t,prevState:n,mainSellerId:o})=>{const{products:s,totalPrice:a}=n;try{if(!e){const{[t]:u,...f}=s;return{...n,totalPrice:a-u.price,products:f}}const i=U.getValidOffer(e.offers.offers,o);if(!i)return n;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),n}},xu=x.createContext({}),$h=({children:e,item:t,index:n,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:f}=le(),h=y=>{u({functionKey:"productEvents",data:{commonData:{...t,availableSizes:l.current.availableSkus,...l.current.priceInfo},customData:{index:n+1},event:y}})},m=()=>{h("add_to_wishlist")},d=()=>{u({functionKey:"skuEvents",data:{event:"add_to_cart",commonData:{products:[{...t,...l.current.priceInfo}]},supportData:{selectedSku:a,selectedSkus:[a]},customData:{index:n}}})},g=()=>{o&&(f.current={item_list_name:o}),h("select_item")};return r.jsx(xu.Provider,{value:x.useMemo(()=>({...s,index:n,item:t,element:c,selectedSku:a,setSelectedSku:i,eventDataRef:l,sendAddToWishlistEvent:m,sendSelectItemEvent:g,sendAddToCartEvent:d}),[s,t,c,a]),children:e})},Ke=()=>{const e=x.useContext(xu);if(e===void 0)throw new Error("useProductCardContext must be used within a ProductCardProvider");return e},Ne={"product-card--actions":"_product-card--actions_nmzk4_1","product-card--actions--group":"_product-card--actions--group_nmzk4_9","product-card--actions--selectors":"_product-card--actions--selectors_nmzk4_21","product-card--body":"_product-card--body_nmzk4_33","product-card--header":"_product-card--header_nmzk4_47","product-card--footer":"_product-card--footer_nmzk4_67","product-card--image":"_product-card--image_nmzk4_90","product-card--image--container":"_product-card--image--container_nmzk4_97","product-card--outstock":"_product-card--outstock_nmzk4_133","product-card--price":"_product-card--price_nmzk4_155","product-card--title":"_product-card--title_nmzk4_177","product-card--title--tag":"_product-card--title--tag_nmzk4_183","product-card--title--content":"_product-card--title--content_nmzk4_200","product-card--selectors--size":"_product-card--selectors--size_nmzk4_240","product-card--selectors--size--button":"_product-card--selectors--size--button_nmzk4_266","product-card--selectors--size--skus":"_product-card--selectors--size--skus_nmzk4_275","product-card--selectors--style":"_product-card--selectors--style_nmzk4_289","product-card--selectors--style--more":"_product-card--selectors--style--more_nmzk4_299","product-card--video":"_product-card--video_nmzk4_316","product-card--wrapper":"_product-card--wrapper_nmzk4_342"},bu=({callback:e,children:t,className:n,data:o,isKit:s,...a})=>{const{item:{availability:{status:i},image:c}}=Ke();return i?r.jsxs("div",{...a,className:p.helpers.classNameConcat(Ne["product-card--actions"],n),children:[r.jsxs(xe.Wrapper,{type:"actions--group",children:[r.jsx(xe.Price,{}),r.jsx("div",{className:Ne["product-card--actions--selectors"],children:!s&&r.jsx(xe.StyleSelector,{data:o,images:c,callback:e})})]}),t]}):null};bu.displayName="ProductCard.Actions";const ju=({className:e,isKit:t,...n})=>{const{addToCart:o}=Re(),{isMobile:s=!1,selectedSku:a,outStock:i,item:c,sendAddToCartEvent:l,CONSTANTS:u}=Ke(),f=()=>{var d;if(!a)return;const m=U.getValidOffer(a.offers.offers,u.StoreConfig_MainSellerId);m&&o({id:a==null?void 0:a.sku,quantity:1,seller:m.seller.identifier},{id:c.id,texture:(d=c==null?void 0:c.image.find(g=>u.TEXTURE_IMAGE.includes(g.alternateName)))==null?void 0:d.url}),l()},h=a?u.BUY_BUTTON_LABELS.add_to_cart:u.BUY_BUTTON_LABELS.select_size;return r.jsx(p.Button,{...n,className:p.helpers.classNameConcat(e,"buy-button"),disabled:!t&&!a&&!i,size:s?"medium":"large",variant:i?"secondary":"primary",onClick:i?n.onClick:f,children:i?"Avise-me quando chegar":h})};ju.displayName="ProductCard.Actions.BuyButton";const zh={"snackbar-modifier":"_snackbar-modifier_1va2l_1"},wt=({size:e,adornment:t,title:n,subtitle:o,supportChildren:s,className:a,Z_INDEX_WAR:i,...c})=>r.jsxs(p.SnackBar.Structure,{...c,size:e,className:p.helpers.classNameConcat(zh["snackbar-modifier"],a),width:360,style:{zIndex:i.snackbar},children:[r.jsx(p.SnackBar.Content,{adornment:t,title:n,subtitle:o}),s&&r.jsx(p.SnackBar.Support,{children:s})]});wt.displayName="SnackBar";const Bt={"wishlist--snack":"_wishlist--snack_3qi1o_9","wishlist--snack--actions":"_wishlist--snack--actions_3qi1o_25","wishlist-grid":"_wishlist-grid_3qi1o_31","wishlist-grid--container":"_wishlist-grid--container_3qi1o_39","pdc-empty-modifier":"_pdc-empty-modifier_3qi1o_49"};var Cu=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Mr(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function Fh(e){if(e.__esModule)return e;var t=e.default;if(typeof t=="function"){var n=function o(){return this instanceof o?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};n.prototype=t.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(e).forEach(function(o){var s=Object.getOwnPropertyDescriptor(e,o);Object.defineProperty(n,o,s.get?s:{enumerable:!0,get:function(){return e[o]}})}),n}var Ko={exports:{}},ke={};ke._=ke._interop_require_default=Bh;function Bh(e){return e&&e.__esModule?e:{default:e}}var ar={exports:{}},Yr={},aa;function Su(){return aa||(aa=1,function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(i,c){for(var l in c)Object.defineProperty(i,l,{enumerable:!0,get:c[l]})}t(e,{searchParamsToUrlQuery:function(){return n},urlQueryToSearchParams:function(){return s},assign:function(){return a}});function n(i){const c={};return i.forEach((l,u)=>{typeof c[u]>"u"?c[u]=l:Array.isArray(c[u])?c[u].push(l):c[u]=[c[u],l]}),c}function 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,f]=l;Array.isArray(f)?f.forEach(h=>c.append(u,o(h))):c.set(u,o(f))}),c}function a(i){for(var c=arguments.length,l=new Array(c>1?c-1:0),u=1;u<c;u++)l[u-1]=arguments[u];return l.forEach(f=>{Array.from(f.keys()).forEach(h=>i.delete(h)),f.forEach((h,m)=>i.append(m,h))}),i}}(Yr)),Yr}var Qr={},Nt={};function Pu(e){if(typeof WeakMap!="function")return null;var t=new WeakMap,n=new WeakMap;return(Pu=function(o){return o?n:t})(e)}Nt._=Nt._interop_require_wildcard=qh;function qh(e,t){if(!t&&e&&e.__esModule)return e;if(e===null||typeof e!="object"&&typeof e!="function")return{default:e};var n=Pu(t);if(n&&n.has(e))return n.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,n&&n.set(e,o),o}var ia;function wu(){return ia||(ia=1,function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(l,u){for(var f in u)Object.defineProperty(l,f,{enumerable:!0,get:u[f]})}t(e,{formatUrl:function(){return a},urlObjectKeys:function(){return i},formatWithValidation:function(){return c}});const o=Nt._(Su()),s=/https?|ftp|gopher|file/;function a(l){let{auth:u,hostname:f}=l,h=l.protocol||"",m=l.pathname||"",d=l.hash||"",g=l.query||"",y=!1;u=u?encodeURIComponent(u).replace(/%3A/i,":")+"@":"",l.host?y=u+l.host:f&&(y=u+(~f.indexOf(":")?"["+f+"]":f),l.port&&(y+=":"+l.port)),g&&typeof g=="object"&&(g=String(o.urlQueryToSearchParams(g)));let _=l.search||g&&"?"+g||"";return h&&!h.endsWith(":")&&(h+=":"),l.slashes||(!h||s.test(h))&&y!==!1?(y="//"+(y||""),m&&m[0]!=="/"&&(m="/"+m)):y||(y=""),d&&d[0]!=="#"&&(d="#"+d),_&&_[0]!=="?"&&(_="?"+_),m=m.replace(/[?#]/g,encodeURIComponent),_=_.replace("#","%23"),""+h+y+m+_+d}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)}}(Qr)),Qr}var Zr={},ca;function Hh(){return ca||(ca=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"omit",{enumerable:!0,get:function(){return t}});function t(n,o){const s={};return Object.keys(n).forEach(a=>{o.includes(a)||(s[a]=n[a])}),s}}(Zr)),Zr}var Jr={},la;function Lr(){return la||(la=1,function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(j,P){for(var E in P)Object.defineProperty(j,E,{enumerable:!0,get:P[E]})}t(e,{WEB_VITALS:function(){return n},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 f},loadGetInitialProps:function(){return h},SP:function(){return m},ST:function(){return d},DecodeError:function(){return g},NormalizeError:function(){return y},PageNotFoundError:function(){return _},MissingStaticPage:function(){return b},MiddlewareNotFoundError:function(){return S},stringifyError:function(){return v}});const n=["CLS","FCP","FID","INP","LCP","TTFB"];function o(j){let P=!1,E;return function(){for(var C=arguments.length,R=new Array(C),I=0;I<C;I++)R[I]=arguments[I];return P||(P=!0,E=j(...R)),E}}const s=/^[a-zA-Z][a-zA-Z\d+\-.]*?:/,a=j=>s.test(j);function i(){const{protocol:j,hostname:P,port:E}=window.location;return j+"//"+P+(E?":"+E:"")}function c(){const{href:j}=window.location,P=i();return j.substring(P.length)}function l(j){return typeof j=="string"?j:j.displayName||j.name||"Unknown"}function u(j){return j.finished||j.headersSent}function f(j){const P=j.split("?");return P[0].replace(/\\/g,"/").replace(/\/\/+/g,"/")+(P[1]?"?"+P.slice(1).join("?"):"")}async function h(j,P){if(process.env.NODE_ENV!=="production"){var E;if((E=j.prototype)!=null&&E.getInitialProps){const I='"'+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(I)}}const C=P.res||P.ctx&&P.ctx.res;if(!j.getInitialProps)return P.ctx&&P.Component?{pageProps:await h(P.Component,P.ctx)}:{};const R=await j.getInitialProps(P);if(C&&u(C))return R;if(!R){const I='"'+l(j)+'.getInitialProps()" should resolve to an object. But found "'+R+'" instead.';throw new Error(I)}return process.env.NODE_ENV!=="production"&&Object.keys(R).length===0&&!P.ctx&&console.warn(""+l(j)+" returned an empty object from `getInitialProps`. This de-optimizes and prevents automatic static optimization. https://nextjs.org/docs/messages/empty-object-getInitialProps"),R}const m=typeof performance<"u",d=m&&["mark","measure","getEntriesByName"].every(j=>typeof performance[j]=="function");class g extends Error{}class y extends Error{}class _ extends Error{constructor(P){super(),this.code="ENOENT",this.name="PageNotFoundError",this.message="Cannot find module for page: "+P}}class b extends Error{constructor(P,E){super(),this.message="Failed to load static file for page: "+P+" "+E}}class 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})}}(Jr)),Jr}var ir={exports:{}},en={},ua;function Eu(){return ua||(ua=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"removeTrailingSlash",{enumerable:!0,get:function(){return t}});function t(n){return n.replace(/\/$/,"")||"/"}}(en)),en}var tn={},da;function ks(){return da||(da=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"parsePath",{enumerable:!0,get:function(){return t}});function t(n){const o=n.indexOf("#"),s=n.indexOf("?"),a=s>-1&&(o<0||s<o);return a||o>-1?{pathname:n.substring(0,a?s:o),query:a?n.substring(s,o>-1?o:void 0):"",hash:o>-1?n.slice(o):""}:{pathname:n,query:"",hash:""}}}(tn)),tn}var fa;function Dr(){return fa||(fa=1,function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"normalizePathTrailingSlash",{enumerable:!0,get:function(){return s}});const n=Eu(),o=ks(),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,n.removeTrailingSlash)(i)+c+l:i.endsWith("/")?""+i+c+l:i+"/"+c+l:""+(0,n.removeTrailingSlash)(i)+c+l};(typeof t.default=="function"||typeof t.default=="object"&&t.default!==null)&&typeof t.default.__esModule>"u"&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)}(ir,ir.exports)),ir.exports}var rn={},cr={exports:{}},nn={},pa;function Ru(){return pa||(pa=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"pathHasPrefix",{enumerable:!0,get:function(){return n}});const t=ks();function n(o,s){if(typeof o!="string")return!1;const{pathname:a}=(0,t.parsePath)(o);return a===s||a.startsWith(s+"/")}}(nn)),nn}var ma;function Uh(){return ma||(ma=1,function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"hasBasePath",{enumerable:!0,get:function(){return s}});const n=Ru(),o=process.env.__NEXT_ROUTER_BASEPATH||"";function s(a){return(0,n.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)}(cr,cr.exports)),cr.exports}var ha;function Au(){return ha||(ha=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"isLocalURL",{enumerable:!0,get:function(){return o}});const t=Lr(),n=Uh();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,n.hasBasePath)(i.pathname)}catch{return!1}}}(rn)),rn}var on={},sn={},ga;function Wh(){return ga||(ga=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"getSortedRoutes",{enumerable:!0,get:function(){return n}});class t{insert(s){this._insert(s.split("/").filter(Boolean),[],!1)}smoosh(){return this._smoosh()}_smoosh(s){s===void 0&&(s="/");const a=[...this.children.keys()].sort();this.slugName!==null&&a.splice(a.indexOf("[]"),1),this.restSlugName!==null&&a.splice(a.indexOf("[...]"),1),this.optionalRestSlugName!==null&&a.splice(a.indexOf("[[...]]"),1);const i=a.map(c=>this.children.get(c)._smoosh(""+s+c+"/")).reduce((c,l)=>[...c,...l],[]);if(this.slugName!==null&&i.push(...this.children.get("[]")._smoosh(s+"["+this.slugName+"]/")),!this.placeholder){const c=s==="/"?"/":s.slice(0,-1);if(this.optionalRestSlugName!=null)throw new Error('You cannot define a route with the same specificity as a optional catch-all route ("'+c+'" and "'+c+"[[..."+this.optionalRestSlugName+']]").');i.unshift(c)}return this.restSlugName!==null&&i.push(...this.children.get("[...]")._smoosh(s+"[..."+this.restSlugName+"]/")),this.optionalRestSlugName!==null&&i.push(...this.children.get("[[...]]")._smoosh(s+"[[..."+this.optionalRestSlugName+"]]/")),i}_insert(s,a,i){if(s.length===0){this.placeholder=!1;return}if(i)throw new Error("Catch-all must be the last part of the URL.");let c=s[0];if(c.startsWith("[")&&c.endsWith("]")){let f=function(h,m){if(h!==null&&h!==m)throw new Error("You cannot use different slug names for the same dynamic path ('"+h+"' !== '"+m+"').");a.forEach(d=>{if(d===m)throw new Error('You cannot have the same slug name "'+m+'" repeat within a single dynamic path');if(d.replace(/\W/g,"")===c.replace(/\W/g,""))throw new Error('You cannot have the slug names "'+d+'" and "'+m+'" differ only by non-word symbols within a single dynamic path')}),a.push(m)},l=c.slice(1,-1),u=!1;if(l.startsWith("[")&&l.endsWith("]")&&(l=l.slice(1,-1),u=!0),l.startsWith("...")&&(l=l.substring(3),i=!0),l.startsWith("[")||l.endsWith("]"))throw new Error("Segment names may not start or end with extra brackets ('"+l+"').");if(l.startsWith("."))throw new Error("Segment names may not start with erroneous periods ('"+l+"').");if(i)if(u){if(this.restSlugName!=null)throw new Error('You cannot use both an required and optional catch-all route at the same level ("[...'+this.restSlugName+']" and "'+s[0]+'" ).');f(this.optionalRestSlugName,l),this.optionalRestSlugName=l,c="[[...]]"}else{if(this.optionalRestSlugName!=null)throw new Error('You cannot use both an optional and required catch-all route at the same level ("[[...'+this.optionalRestSlugName+']]" and "'+s[0]+'").');f(this.restSlugName,l),this.restSlugName=l,c="[...]"}else{if(u)throw new Error('Optional route parameters are not yet supported ("'+s[0]+'").');f(this.slugName,l),this.slugName=l,c="[]"}}this.children.has(c)||this.children.set(c,new t),this.children.get(c)._insert(s.slice(1),a,i)}constructor(){this.placeholder=!0,this.children=new Map,this.slugName=null,this.restSlugName=null,this.optionalRestSlugName=null}}function n(o){const s=new t;return o.forEach(a=>s.insert(a)),s.smoosh()}}(sn)),sn}var an={},ya;function Gh(){return ya||(ya=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"isDynamicRoute",{enumerable:!0,get:function(){return n}});const t=/\/\[[^/]+?\](?=\/|$)/;function n(o){return t.test(o)}}(an)),an}var _a;function Vh(){return _a||(_a=1,function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(s,a){for(var i in a)Object.defineProperty(s,i,{enumerable:!0,get:a[i]})}t(e,{getSortedRoutes:function(){return n.getSortedRoutes},isDynamicRoute:function(){return o.isDynamicRoute}});const n=Wh(),o=Gh()}(on)),on}var cn={},ln={},va;function Kh(){return va||(va=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"getRouteMatcher",{enumerable:!0,get:function(){return n}});const t=Lr();function n(o){let{re:s,groups:a}=o;return i=>{const c=s.exec(i);if(!c)return!1;const l=f=>{try{return decodeURIComponent(f)}catch{throw new t.DecodeError("failed to decode param")}},u={};return Object.keys(a).forEach(f=>{const h=a[f],m=c[h.pos];m!==void 0&&(u[f]=~m.indexOf("/")?m.split("/").map(d=>l(d)):h.repeat?[l(m)]:l(m))}),u}}}(ln)),ln}var un={},dn={},fn={},pn={},xa;function Xh(){return xa||(xa=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"ensureLeadingSlash",{enumerable:!0,get:function(){return t}});function t(n){return n.startsWith("/")?n:"/"+n}}(pn)),pn}var mn={},ba;function Yh(){return ba||(ba=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"isGroupSegment",{enumerable:!0,get:function(){return t}});function t(n){return n[0]==="("&&n.endsWith(")")}}(mn)),mn}var ja;function Qh(){return ja||(ja=1,function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(i,c){for(var l in c)Object.defineProperty(i,l,{enumerable:!0,get:c[l]})}t(e,{normalizeAppPath:function(){return s},normalizeRscPath:function(){return a}});const n=Xh(),o=Yh();function s(i){return(0,n.ensureLeadingSlash)(i.split("/").reduce((c,l,u,f)=>!l||(0,o.isGroupSegment)(l)||l[0]==="@"||(l==="page"||l==="route")&&u===f.length-1?c:c+"/"+l,""))}function a(i,c){return c?i.replace(/\.rsc($|\?)/,"$1"):i}}(fn)),fn}var Ca;function Zh(){return Ca||(Ca=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 n=Qh(),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 f of i.split("/"))if(l=o.find(h=>f.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,n.normalizeAppPath)(c),l){case"(.)":c==="/"?u=`/${u}`:u=c+"/"+u;break;case"(..)":if(c==="/")throw new Error(`Invalid interception route: ${i}. Cannot use (..) marker at the root level, use (.) instead.`);u=c.split("/").slice(0,-1).concat(u).join("/");break;case"(...)":u="/"+u;break;case"(..)(..)":const f=c.split("/");if(f.length<=2)throw new Error(`Invalid interception route: ${i}. Cannot use (..)(..) marker at the root level or one level up.`);u=f.slice(0,-2).concat(u).join("/");break;default:throw new Error("Invariant: unexpected marker")}return{interceptingRoute:c,interceptedRoute:u}}}(dn)),dn}var hn={},Sa;function Jh(){return Sa||(Sa=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"escapeStringRegexp",{enumerable:!0,get:function(){return o}});const t=/[|\\{}()[\]^$+*?.-]/,n=/[|\\{}()[\]^$+*?.-]/g;function o(s){return t.test(s)?s.replace(n,"\\$&"):s}}(hn)),hn}var Pa;function eg(){return Pa||(Pa=1,function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(y,_){for(var b in _)Object.defineProperty(y,b,{enumerable:!0,get:_[b]})}t(e,{getRouteRegex:function(){return u},getNamedRouteRegex:function(){return d},getNamedMiddlewareRegex:function(){return g}});const n=Zh(),o=Jh(),s=Eu(),a="nxtP",i="nxtI";function c(y){const _=y.startsWith("[")&&y.endsWith("]");_&&(y=y.slice(1,-1));const b=y.startsWith("...");return b&&(y=y.slice(3)),{key:y,repeat:b,optional:_}}function l(y){const _=(0,s.removeTrailingSlash)(y).slice(1).split("/"),b={};let S=1;return{parameterizedRoute:_.map(v=>{const j=n.INTERCEPTION_ROUTE_MARKERS.find(E=>v.startsWith(E)),P=v.match(/\[((?:\[.*\])|.+)\]/);if(j&&P){const{key:E,optional:C,repeat:R}=c(P[1]);return b[E]={pos:S++,repeat:R,optional:C},"/"+(0,o.escapeStringRegexp)(j)+"([^/]+?)"}else if(P){const{key:E,repeat:C,optional:R}=c(P[1]);return b[E]={pos:S++,repeat:C,optional:R},C?R?"(?:/(.+?))?":"/(.+?)":"/([^/]+?)"}else return"/"+(0,o.escapeStringRegexp)(v)}).join(""),groups:b}}function u(y){const{parameterizedRoute:_,groups:b}=l(y);return{re:new RegExp("^"+_+"(?:/)?$"),groups:b}}function f(){let y=0;return()=>{let _="",b=++y;for(;b>0;)_+=String.fromCharCode(97+(b-1)%26),b=Math.floor((b-1)/26);return _}}function h(y){let{getSafeRouteKey:_,segment:b,routeKeys:S,keyPrefix:v}=y;const{key:j,optional:P,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=_()),v?S[C]=""+v+j:S[C]=""+j,E?P?"(?:/(?<"+C+">.+?))?":"/(?<"+C+">.+?)":"/(?<"+C+">[^/]+?)"}function m(y,_){const b=(0,s.removeTrailingSlash)(y).slice(1).split("/"),S=f(),v={};return{namedParameterizedRoute:b.map(j=>{const P=n.INTERCEPTION_ROUTE_MARKERS.some(C=>j.startsWith(C)),E=j.match(/\[((?:\[.*\])|.+)\]/);return P&&E?h({getSafeRouteKey:S,segment:E[1],routeKeys:v,keyPrefix:_?i:void 0}):E?h({getSafeRouteKey:S,segment:E[1],routeKeys:v,keyPrefix:_?a:void 0}):"/"+(0,o.escapeStringRegexp)(j)}).join(""),routeKeys:v}}function d(y,_){const b=m(y,_);return{...u(y),namedRegex:"^"+b.namedParameterizedRoute+"(?:/)?$",routeKeys:b.routeKeys}}function g(y,_){const{parameterizedRoute:b}=l(y),{catchAll:S=!0}=_;if(b==="/")return{namedRegex:"^/"+(S?".*":"")+"$"};const{namedParameterizedRoute:v}=m(y,!1);let j=S?"(?:(/.*)?)":"";return{namedRegex:"^"+v+j+"$"}}}(un)),un}var wa;function tg(){return wa||(wa=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"interpolateAs",{enumerable:!0,get:function(){return o}});const t=Kh(),n=eg();function o(s,a,i){let c="";const l=(0,n.getRouteRegex)(s),u=l.groups,f=(a!==s?(0,t.getRouteMatcher)(l)(a):"")||i;c=s;const h=Object.keys(u);return h.every(m=>{let d=f[m]||"";const{repeat:g,optional:y}=u[m];let _="["+(g?"...":"")+m+"]";return y&&(_=(d?"":"/")+"["+_+"]"),g&&!Array.isArray(d)&&(d=[d]),(y||m in f)&&(c=c.replace(_,g?d.map(b=>encodeURIComponent(b)).join("/"):encodeURIComponent(d))||"/")})||(c=""),{params:h,result:c}}}(cn)),cn}var Ea;function rg(){return Ea||(Ea=1,function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"resolveHref",{enumerable:!0,get:function(){return f}});const n=Su(),o=wu(),s=Hh(),a=Lr(),i=Dr(),c=Au(),l=Vh(),u=tg();function f(h,m,d){let g,y=typeof m=="string"?m:(0,o.formatWithValidation)(m);const _=y.match(/^[a-zA-Z]{1,}:\/\//),b=_?y.slice(_[0].length):y;if((b.split("?")[0]||"").match(/(\/\/|\\)/)){console.error("Invalid href '"+y+"' passed to next/router in page: '"+h.pathname+"'. Repeated forward-slashes (//) or backslashes \\ are not valid in the href.");const v=(0,a.normalizeRepeatedSlashes)(b);y=(_?_[0]:"")+v}if(!(0,c.isLocalURL)(y))return d?[y]:y;try{g=new URL(y.startsWith("#")?h.asPath:h.pathname,"http://n")}catch{g=new URL("/","http://n")}try{const v=new URL(y,g);v.pathname=(0,i.normalizePathTrailingSlash)(v.pathname);let j="";if((0,l.isDynamicRoute)(v.pathname)&&v.searchParams&&d){const E=(0,n.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 P=v.origin===g.origin?v.href.slice(v.origin.length):v.href;return d?[P,j||P]:P}catch{return d?[y]:y}}(typeof t.default=="function"||typeof t.default=="object"&&t.default!==null)&&typeof t.default.__esModule>"u"&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)}(ar,ar.exports)),ar.exports}var lr={exports:{}},gn={},yn={},Ra;function Nu(){return Ra||(Ra=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"addPathPrefix",{enumerable:!0,get:function(){return n}});const t=ks();function n(o,s){if(!o.startsWith("/")||!s)return o;const{pathname:a,query:i,hash:c}=(0,t.parsePath)(o);return""+s+a+i+c}}(yn)),yn}var Aa;function ng(){return Aa||(Aa=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"addLocale",{enumerable:!0,get:function(){return o}});const t=Nu(),n=Ru();function o(s,a,i,c){if(!a||a===i)return s;const l=s.toLowerCase();return!c&&((0,n.pathHasPrefix)(l,"/api")||(0,n.pathHasPrefix)(l,"/"+a.toLowerCase()))?s:(0,t.addPathPrefix)(s,"/"+a)}}(gn)),gn}var Na;function og(){return Na||(Na=1,function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"addLocale",{enumerable:!0,get:function(){return o}});const n=Dr(),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,n.normalizePathTrailingSlash)(ng().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)}(lr,lr.exports)),lr.exports}var _n={},Ia;function Iu(){return Ia||(Ia=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"RouterContext",{enumerable:!0,get:function(){return o}});const o=ke._(x).default.createContext(null);process.env.NODE_ENV!=="production"&&(o.displayName="RouterContext")}(_n)),_n}var vn={},Ta;function sg(){return Ta||(Ta=1,function(e){"use client";Object.defineProperty(e,"__esModule",{value:!0});function t(u,f){for(var h in f)Object.defineProperty(u,h,{enumerable:!0,get:f[h]})}t(e,{CacheStates:function(){return s},AppRouterContext:function(){return a},LayoutRouterContext:function(){return i},GlobalLayoutRouterContext:function(){return c},TemplateContext:function(){return l}});const o=ke._(x);var s;(function(u){u.LAZY_INITIALIZED="LAZYINITIALIZED",u.DATA_FETCH="DATAFETCH",u.READY="READY"})(s||(s={}));const a=o.default.createContext(null),i=o.default.createContext(null),c=o.default.createContext(null),l=o.default.createContext(null);process.env.NODE_ENV!=="production"&&(a.displayName="AppRouterContext",i.displayName="LayoutRouterContext",c.displayName="GlobalLayoutRouterContext",l.displayName="TemplateContext")}(vn)),vn}var ur={exports:{}},dr={exports:{}},Oa;function Tu(){return Oa||(Oa=1,function(e,t){Object.defineProperty(t,"__esModule",{value:!0});function n(a,i){for(var c in i)Object.defineProperty(a,c,{enumerable:!0,get:i[c]})}n(t,{requestIdleCallback:function(){return 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)}(dr,dr.exports)),dr.exports}var ka;function ag(){return ka||(ka=1,function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"useIntersection",{enumerable:!0,get:function(){return u}});const n=x,o=Tu(),s=typeof IntersectionObserver=="function",a=new Map,i=[];function c(f){const h={root:f.root||null,margin:f.rootMargin||""},m=i.find(_=>_.root===h.root&&_.margin===h.margin);let d;if(m&&(d=a.get(m),d))return d;const g=new Map,y=new IntersectionObserver(_=>{_.forEach(b=>{const S=g.get(b.target),v=b.isIntersecting||b.intersectionRatio>0;S&&v&&S(v)})},f);return d={id:h,observer:y,elements:g},i.push(h),a.set(h,d),d}function l(f,h,m){const{id:d,observer:g,elements:y}=c(m);return y.set(f,h),g.observe(f),function(){if(y.delete(f),g.unobserve(f),y.size===0){g.disconnect(),a.delete(d);const b=i.findIndex(S=>S.root===d.root&&S.margin===d.margin);b>-1&&i.splice(b,1)}}}function u(f){let{rootRef:h,rootMargin:m,disabled:d}=f;const g=d||!s,[y,_]=(0,n.useState)(!1),b=(0,n.useRef)(null),S=(0,n.useCallback)(j=>{b.current=j},[]);(0,n.useEffect)(()=>{if(s){if(g||y)return;const j=b.current;if(j&&j.tagName)return l(j,E=>E&&_(E),{root:h==null?void 0:h.current,rootMargin:m})}else if(!y){const j=(0,o.requestIdleCallback)(()=>_(!0));return()=>(0,o.cancelIdleCallback)(j)}},[g,m,h,y,b.current]);const v=(0,n.useCallback)(()=>{_(!1)},[]);return[S,y,v]}(typeof t.default=="function"||typeof t.default=="object"&&t.default!==null)&&typeof t.default.__esModule>"u"&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)}(ur,ur.exports)),ur.exports}var fr={exports:{}},pr={exports:{}},xn={},Ma;function ig(){return Ma||(Ma=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"normalizeLocalePath",{enumerable:!0,get:function(){return t}});function t(n,o){let s;const a=n.split("/");return(o||[]).some(i=>a[1]&&a[1].toLowerCase()===i.toLowerCase()?(s=i,a.splice(1,1),n=a.join("/")||"/",!0):!1),{pathname:n,detectedLocale:s}}}(xn)),xn}var La;function cg(){return La||(La=1,function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"normalizeLocalePath",{enumerable:!0,get:function(){return n}});const n=(o,s)=>process.env.__NEXT_I18N_SUPPORT?ig().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)}(pr,pr.exports)),pr.exports}var mr={exports:{}},bn={},Da;function lg(){return Da||(Da=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"detectDomainLocale",{enumerable:!0,get:function(){return t}});function t(n,o,s){if(n){s&&(s=s.toLowerCase());for(const c of n){var a,i;const l=(a=c.domain)==null?void 0:a.split(":")[0].toLowerCase();if(o===l||s===c.defaultLocale.toLowerCase()||(i=c.locales)!=null&&i.some(u=>u.toLowerCase()===s))return c}}}}(bn)),bn}var $a;function ug(){return $a||($a=1,function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"detectDomainLocale",{enumerable:!0,get:function(){return n}});const n=function(){for(var o=arguments.length,s=new Array(o),a=0;a<o;a++)s[a]=arguments[a];if(process.env.__NEXT_I18N_SUPPORT)return lg().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)}(mr,mr.exports)),mr.exports}var za;function dg(){return za||(za=1,function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"getDomainLocale",{enumerable:!0,get:function(){return s}});const n=Dr(),o=process.env.__NEXT_ROUTER_BASEPATH||"";function s(a,i,c,l){if(process.env.__NEXT_I18N_SUPPORT){const u=cg().normalizeLocalePath,f=ug().detectDomainLocale,h=i||u(a,c).detectedLocale,m=f(l,void 0,h);if(m){const d="http"+(m.http?"":"s")+"://",g=h===m.defaultLocale?"":"/"+h;return""+d+m.domain+(0,n.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)}(fr,fr.exports)),fr.exports}var hr={exports:{}},Fa;function fg(){return Fa||(Fa=1,function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"addBasePath",{enumerable:!0,get:function(){return a}});const n=Nu(),o=Dr(),s=process.env.__NEXT_ROUTER_BASEPATH||"";function a(i,c){return(0,o.normalizePathTrailingSlash)(process.env.__NEXT_MANUAL_CLIENT_BASE_PATH&&!c?i:(0,n.addPathPrefix)(i,s))}(typeof t.default=="function"||typeof t.default=="object"&&t.default!==null)&&typeof t.default.__esModule>"u"&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)}(hr,hr.exports)),hr.exports}var gr={exports:{}},Ba;function pg(){return Ba||(Ba=1,function(e,t){Object.defineProperty(t,"__esModule",{value:!0});function n(h,m){for(var d in m)Object.defineProperty(h,d,{enumerable:!0,get:m[d]})}n(t,{PrefetchKind:function(){return f},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 f;(function(h){h.AUTO="auto",h.FULL="full",h.TEMPORARY="temporary"})(f||(f={})),(typeof t.default=="function"||typeof t.default=="object"&&t.default!==null)&&typeof t.default.__esModule>"u"&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)}(gr,gr.exports)),gr.exports}(function(e,t){"use client";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return P}});const o=ke._(x),s=rg(),a=Au(),i=wu(),c=Lr(),l=og(),u=Iu(),f=sg(),h=ag(),m=dg(),d=fg(),g=pg(),y=new Set;function _(E,C,R,I,w,N){if(typeof window>"u"||!N&&!(0,a.isLocalURL)(C))return;if(!I.bypassPrefetchedCheck){const z=typeof I.locale<"u"?I.locale:"locale"in E?E.locale:void 0,O=C+"%"+R+"%"+z;if(y.has(O))return;y.add(O)}const T=N?E.prefetch(C,w):E.prefetch(C,R,I);Promise.resolve(T).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,I,w,N,T,z,O,W){const{nodeName:B}=E.currentTarget;if(B.toUpperCase()==="A"&&(b(E)||!O&&!(0,a.isLocalURL)(R)))return;E.preventDefault();const F=()=>{const G=T??!0;"beforePopState"in C?C[w?"replace":"push"](R,I,{shallow:N,locale:z,scroll:G}):C[w?"replace":"push"](I||R,{forceOptimisticNavigation:!W,scroll:G})};O?o.default.startTransition(F):F()}function v(E){return typeof E=="string"?E:(0,i.formatUrl)(E)}const P=o.default.forwardRef(function(C,R){let I;const{href:w,as:N,children:T,prefetch:z=null,passHref:O,replace:W,shallow:B,scroll:V,locale:F,onClick:G,onMouseEnter:q,onTouchStart:X,legacyBehavior:A=!1,...k}=C;I=T,A&&(typeof I=="string"||typeof I=="number")&&(I=o.default.createElement("a",null,I));const L=o.default.useContext(u.RouterContext),Y=o.default.useContext(f.AppRouterContext),ne=L??Y,ee=!L,D=z!==!1,te=z===null?g.PrefetchKind.AUTO:g.PrefetchKind.FULL;if(process.env.NODE_ENV!=="production"){let ae=function(se){return new Error("Failed prop type: The prop `"+se.key+"` expects a "+se.expected+" in `<Link>`, but got `"+se.actual+"` instead."+(typeof window<"u"?`
|
|
2
|
+
Open your browser's console to view the Component stack trace.`:""))};Object.keys({href:!0}).forEach(se=>{if(se==="href"&&(C[se]==null||typeof C[se]!="string"&&typeof C[se]!="object"))throw ae({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 ae({key:se,expected:"`string` or `object`",actual:Q})}else if(se==="locale"){if(C[se]&&Q!=="string")throw ae({key:se,expected:"`string`",actual:Q})}else if(se==="onClick"||se==="onMouseEnter"||se==="onTouchStart"){if(C[se]&&Q!=="function")throw ae({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 ae({key:se,expected:"`boolean`",actual:Q})});const Z=o.default.useRef(!1);C.prefetch&&!Z.current&&!ee&&(Z.current=!0,console.warn("Next.js auto-prefetches automatically based on viewport. The prefetch attribute is no longer needed. More: https://nextjs.org/docs/messages/prefetch-true-deprecated"))}if(process.env.NODE_ENV!=="production"&&ee&&!N){let ae;if(typeof w=="string"?ae=w:typeof w=="object"&&typeof w.pathname=="string"&&(ae=w.pathname),ae&&ae.split("/").some(K=>K.startsWith("[")&&K.endsWith("]")))throw new Error("Dynamic href `"+ae+"` found in <Link> while using the `/app` router, this is not supported. Read more: https://nextjs.org/docs/messages/app-dir-dynamic-href")}const{href:J,as:re}=o.default.useMemo(()=>{if(!L){const K=v(w);return{href:K,as:N?v(N):K}}const[ae,ve]=(0,s.resolveHref)(L,w,!0);return{href:ae,as:N?(0,s.resolveHref)(L,N):ve||ae}},[L,w,N]),$=o.default.useRef(J),M=o.default.useRef(re);let oe;if(A)if(process.env.NODE_ENV==="development"){G&&console.warn('"onClick" was passed to <Link> with `href` of `'+w+'` but "legacyBehavior" was set. The legacy behavior requires onClick be set on the child of next/link'),q&&console.warn('"onMouseEnter" was passed to <Link> with `href` of `'+w+'` but "legacyBehavior" was set. The legacy behavior requires onMouseEnter be set on the child of next/link');try{oe=o.default.Children.only(I)}catch{throw I?new Error("Multiple children were passed to <Link> with `href` of `"+w+"` but only one child is supported https://nextjs.org/docs/messages/link-multiple-children"+(typeof window<"u"?`
|
|
3
3
|
Open your browser's console to view the Component stack trace.`:"")):new Error("No children were passed to <Link> with `href` of `"+w+"` but one child is required https://nextjs.org/docs/messages/link-no-children")}}else oe=o.default.Children.only(I);else if(process.env.NODE_ENV==="development"&&(I==null?void 0:I.type)==="a")throw new Error(`Invalid <Link> with <a> child. Please remove <a> or use <Link legacyBehavior>.
|
|
4
|
-
Learn more: https://nextjs.org/docs/messages/invalid-new-link-with-extra-anchor`);const ie=A?oe&&typeof oe=="object"&&oe.ref:R,[fe,pe,ue]=(0,h.useIntersection)({rootMargin:"200px"}),H=o.default.useCallback(ae=>{(M.current!==re||$.current!==Z)&&(ue(),M.current=re,$.current=Z),fe(ae),ie&&(typeof ie=="function"?ie(ae):typeof ie=="object"&&(ie.current=ae))},[re,ie,Z,ue,fe]);o.default.useEffect(()=>{process.env.NODE_ENV==="production"&&ne&&(!pe||!L||_(ne,Z,re,{locale:G},{kind:te},ee))},[re,Z,pe,G,L,D==null?void 0:D.locale,ne,ee,te]);const be={ref:H,onClick(ae){if(process.env.NODE_ENV!=="production"&&!ae)throw new Error('Component rendered inside next/link has to pass click event to "onClick" prop.');!A&&typeof V=="function"&&V(ae),A&&oe.props&&typeof oe.props.onClick=="function"&&oe.props.onClick(ae),ne&&(ae.defaultPrevented||S(ae,ne,Z,re,W,q,F,G,ee,L))},onMouseEnter(ae){!A&&typeof B=="function"&&B(ae),A&&oe.props&&typeof oe.props.onMouseEnter=="function"&&oe.props.onMouseEnter(ae),ne&&((!L||process.env.NODE_ENV==="development")&&ee||_(ne,Z,re,{locale:G,priority:!0,bypassPrefetchedCheck:!0},{kind:te},ee))},onTouchStart(ae){!A&&typeof J=="function"&&J(ae),A&&oe.props&&typeof oe.props.onTouchStart=="function"&&oe.props.onTouchStart(ae),ne&&(!L&&ee||_(ne,Z,re,{locale:G,priority:!0,bypassPrefetchedCheck:!0},{kind:te},ee))}};if((0,c.isAbsoluteUrl)(re))be.href=re;else if(!A||O||oe.type==="a"&&!("href"in oe.props)){const ae=typeof G<"u"?G:D==null?void 0:D.locale,ve=(D==null?void 0:D.isLocaleDomain)&&(0,m.getDomainLocale)(re,ae,D==null?void 0:D.locales,D==null?void 0:D.domainLocales);be.href=ve||(0,d.addBasePath)((0,l.addLocale)(re,ae,D==null?void 0:D.defaultLocale))}return A?o.default.cloneElement(oe,be):o.default.createElement("a",{...k,...be},I)});(typeof t.default=="function"||typeof t.default=="object"&&t.default!==null)&&typeof t.default.__esModule>"u"&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)})(Ko,Ko.exports);var mg=Ko.exports,hg=mg;const De=Mr(hg),gg="_link_w24h0_1",yg="_wrapper_w24h0_98",_g="_text_w24h0_106",jn={link:gg,wrapper:yg,text:_g},Ge=({children:e,adornments:t,className:n,disableUnderline:o,href:s,mode:a,size:i,title:c,onClick:l,disablePadding:u,...f})=>{const h=p.helpers.ValidateProp({fieldTypes:Pt.SizesSmallExtended,property:i,fallback:"medium"}),m=p.helpers.ValidateProp({fieldTypes:Pt.Mode,property:a,fallback:"default"});return r.jsx(De,{...f,className:p.helpers.classNameConcat(jn.link,n),href:s&&s.length>0?s:"#","data-size":h,"data-variant":m,title:c||"NextLink","data-disable-underline":o??!1,"data-disable-padding":u??!0,children:r.jsxs("div",{className:jn.wrapper,onClick:l,children:[t==null?void 0:t.start,r.jsx("p",{className:jn.text,"data-size":h,children:e}),t==null?void 0:t.end]})})},vg=({ICONS:e})=>{const{resetFeedback:t}=vt();return r.jsxs("div",{className:Bt["wishlist--snack--actions"],children:[r.jsx(Ge,{href:"/favoritos",children:"Ver Favoritos"}),r.jsx(p.Button,{variant:"tertiary",size:"small",onClick:t,adornment:{start:r.jsx(p.Icon,{name:e.close})}})]})},Ms=({WISHLIST_INFO:e,ICONS:t,Z_INDEX_WAR:n})=>{const o=xs(),{resetFeedback:s}=vt(),a=x.useRef(null);return x.useEffect(()=>{a.current&&clearTimeout(a.current),o&&(a.current=setTimeout(()=>{s()},5e3))},[o,s]),(o==null?void 0:o.active)&&r.jsx(wt,{Z_INDEX_WAR:n,className:Bt["wishlist--snack"],"data-action":o.action,title:o.action==="add"?e.messages.add:e.messages.remove,supportChildren:r.jsx(vg,{ICONS:t}),size:"medium"})};Ms.displayName="WishList.Feedback";const Ls={"product-list--banner":"_product-list--banner_sfibj_1","product-list--card":"_product-list--card_sfibj_30","product-list":"_product-list_sfibj_1"},Ou=({className:e,children:t,columns:n=1,isMobile:o=!1,gap:s=8,position_grid:a,totalColumns:i=4,PRODUCT_CARD_IMAGE_ASPECT_RATIO:c,...l})=>{const u=x.useMemo(()=>n%i===0?"initial":o||n<2?c:c.split("/").reverse().join("/"),[n,i,o]);return r.jsx("div",{...l,className:p.helpers.classNameConcat(Ls["product-list--banner"],e),style:{aspectRatio:u,maxWidth:`${n/i*100}%`,order:a,padding:s/2},children:t})};Ou.displayName="ProductList.Banner";const ku=({isKit:e,parent:t,productId:n,setNotify:o,CONSTANTS:s})=>{const{router:a}=_e(),i=x.useRef(!1),c=x.useRef(null),[l,u]=x.useState([]),f=g=>a.push(g??""),h=async g=>{try{const y=await fetch("/api/catalog/product/similars",{method:"POST",body:JSON.stringify({productId:g,filterTexture:s.TEXTURE_IMAGE}),priority:"low"});if(!y.ok)throw new Error("Erro ao buscar similares.");const _=await y.json();u(_)}catch(y){console.error(y)}},m=x.useCallback(g=>{!n||!g||(typeof h=="function"&&h(n),i.current=!0)},[n]),d=x.useCallback((g,y)=>{if(!g.isIntersecting){s.PLP_INFINITE_SCROLL&&c.current&&(clearTimeout(c.current),c.current=null);return}if(g.intersectionRatio>=y.threshold&&!i.current){if(s.PLP_INFINITE_SCROLL){c.current=setTimeout(()=>{m(!0)},s.PLP_PRODUCT_SIMILAR_DELAY);return}m(!0)}},[m]);return x.useEffect(()=>{if(e||!t.current)return;const g={root:null,threshold:.1},y=new IntersectionObserver(([_])=>{d(_,g)},g);return y.observe(t.current),()=>{c.current&&clearTimeout(c.current),y.disconnect()}},[d,t,e]),r.jsx(xe.Actions,{...l,callback:f,isKit:e,children:!e&&r.jsx(xe.SizeSelector,{setNotify:o})})};ku.displayName="ProductList.Card.Actions";const Mu=({className:e,children:t,gap:n=32,item:o,isMobile:s,order:a,tag:i,hasMaxWidth:c=!0,index:l,setSkuSelected:u,showVideo:f,CONSTANTS:h,...m})=>{const d=x.useRef(null),{availability:{status:g}}=o,y=x.useCallback((b,S)=>{var v;typeof u=="function"&&u((v=b.isVariantOf)==null?void 0:v.hasVariant,S)},[u]),_=o.name.substring(0,4).toLowerCase()==="kit ";return r.jsxs("div",{...m,className:p.helpers.classNameConcat(Ls["product-list--card"],e),"data-mobile":s,"data-order":a,ref:d,style:{...c&&{maxWidth:s?"50%":"25%"},order:a,padding:n/2},children:[r.jsxs(xe.Root,{item:o,isMobile:s,index:l,size:s?"small":"medium",order:a,outStock:!g,CONSTANTS:h,children:[r.jsx(xe.Header,{product:o,tag:i==null?void 0:i.commercial}),r.jsx(xe.Media,{showVideo:f,hasPriority:!0}),r.jsxs(xe.Wrapper,{type:"body",children:[r.jsx(xe.Title,{tag:i==null?void 0:i.institucional}),r.jsx(ku,{productId:o.isVariantOf.productGroupID,parent:d,setNotify:y,isKit:_,CONSTANTS:h}),!_&&r.jsx(xe.OutStock,{callback:y})]}),r.jsx(xe.Wrapper,{type:"footer",children:g&&r.jsx(xe.BuyButton,{isKit:_})})]}),t]})};Mu.displayName="ProductList.Card";const Lu=({children:e,className:t,...n})=>r.jsx("div",{...n,className:p.helpers.classNameConcat(Ls["product-list"],t),children:e});Lu.displayName="ProductList.Grid";const tt={Banner:Ou,Card:Mu,Root:Lu,helpers:lh},xg="_pdc_alo7z_1",Ve={"pdc--empty":"_pdc--empty_alo7z_1","pdc--grid":"_pdc--grid_alo7z_17","pdc--grid--content":"_pdc--grid--content_alo7z_26","pdc--infinite":"_pdc--infinite_alo7z_41","pdc--infinite--loader":"_pdc--infinite--loader_alo7z_44","pdc--infinite--loader--page":"_pdc--infinite--loader--page_alo7z_54","pdc--infinite--card--disabled":"_pdc--infinite--card--disabled_alo7z_58","pdc--infinite--next-page":"_pdc--infinite--next-page_alo7z_91","pdc--infinite--next-page--card":"_pdc--infinite--next-page--card_alo7z_101","pdc--infinite--next-page--spinner":"_pdc--infinite--next-page--spinner_alo7z_111","pdc--pagination":"_pdc--pagination_alo7z_118",pdc:xg},Ds=({className:e,ICONS:t,PLP_NOT_RESULT:n})=>{const{router:o}=_e(),{isMobile:s}=ce(),a=()=>{o.push(n==null?void 0:n.link)};return r.jsxs("div",{className:p.helpers.classNameConcat(Ve["pdc--empty"],e),children:[r.jsxs(p.TextStructure.DivWrapper,{className:Ve["pdc--empty-wrapper"],children:[r.jsx("span",{className:s?"typography-style-body-md":"typography-style-heading-sm",children:n.title}),r.jsx("p",{className:s?"typography-style-body-xs":"typography-style-body-sm",children:n.subtitle})]}),r.jsx(p.Button,{adornment:{end:r.jsx(p.Icon,{name:t.arrow_right})},className:"typography-style-body-sm-strong",onClick:()=>a(),variant:"tertiary",children:r.jsx("b",{children:n.text})})]})};Ds.displayName="PDC.Empty";const $r=e=>r.jsx("div",{...e,className:Ve["pdc--infinite--next-page"],children:r.jsx(p.Spinner,{className:Ve["pdc--infinite--next-page--spinner"]})});$r.displayName="PDC.Spinner";function Du({CONSTANTS:e}){const{sendDataLayerEvent:t}=le(),{isMobile:n}=ce(),{getAvailableProductTag:o}=nt(),[s,a]=x.useState([]),[i,c]=x.useState(!0),l=Tt(),u=n?16:32;return x.useEffect(()=>{const f=async()=>{l.length?await fetch("/api/wishlist/products",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({productIds:l})}).then(h=>h.json()).then(h=>{a(h),t({functionKey:"productListEvent",data:{event:"view_item_list",commonData:{products:h}}})}).catch(h=>console.error(h)):a([]),c(!1)};if(l.length){f();return}if(l.length===0&&s.length===0){c(!1);return}a([]),c(!1)},[l]),r.jsx("section",{className:Bt["wishlist-grid"],children:r.jsxs("div",{className:Bt["wishlist-grid--container"],children:[i&&r.jsx($r,{}),!l.length&&!(s!=null&&s.length)&&!i&&r.jsx(Ds,{className:Bt["pdc-empty-modifier"],ICONS:e.ICONS,PLP_NOT_RESULT:e.WISHLIST_NOT_RESULT}),r.jsx(tt.Root,{children:Array.isArray(s)&&s.map((f,h)=>{const m=f.node.cluster.highlights||[],d=o(m);return r.jsx(tt.Card,{gap:u,isMobile:n??!1,item:f.node,tag:d,index:h,CONSTANTS:{BUY_BUTTON_LABELS:e.BUY_BUTTON_LABELS,MAIN_IMAGE:e.MAIN_IMAGE,PLP_GRID_SCROLL_BACK:e.PLP_GRID_SCROLL_BACK,PLP_INFINITE_SCROLL:e.PLP_INFINITE_SCROLL,PLP_SHOW_VIDEO_ON_PRODUCT_CARD:e.PLP_SHOW_VIDEO_ON_PRODUCT_CARD,PLP_PRODUCT_SIMILAR_DELAY:e.PLP_PRODUCT_SIMILAR_DELAY,PRODUCT_CARD_IMAGE_ASPECT_RATIO:e.PRODUCT_CARD_IMAGE_ASPECT_RATIO,PRODUCT_CARD_TEXTS:e.PRODUCT_CARD_TEXTS,PRODUCT_CARD_TOP_WISHLIST_TOGGLE:e.PRODUCT_CARD_TOP_WISHLIST_TOGGLE,PRODUCT_IMAGE_DIMENSIONS:e.PRODUCT_IMAGE_DIMENSIONS,SECOND_IMAGE:e.SECOND_IMAGE,StoreConfig_MainSellerId:e.StoreConfig_MainSellerId,TEXTURE_IMAGE:e.TEXTURE_IMAGE,Z_INDEX_WAR:e.Z_INDEX_WAR,ICONS:e.ICONS}},f.node.sku)})})]})})}Du.displayName="Wishlist.Grid";const bg=e=>e.map(t=>{var n;return(n=t.isVariantOf)==null?void 0:n.productGroupID})??[],$u=({WISHLIST_INFO:e,ICONS:t,Z_INDEX_WAR:n})=>{const o=Ot(),s=Tt(),a=xs(),{updateList:i}=vt();return x.useEffect(()=>{var l,u;a.active&&Ze.set("fs::wishlist",s);const c=async()=>{var f;await fetch("/api/wishlist/documents",{method:"PATCH",body:JSON.stringify({productIds:s,docId:(f=o==null?void 0:o.user)==null?void 0:f.id})}).catch(h=>{console.error("Error updating wishlist:",h)})};a.active&&((l=o.user)!=null&&l.id)&&s.length!==((u=o.wishlist)==null?void 0:u.length)&&c()},[a,o,s]),x.useEffect(()=>{var u;const c=async()=>{const f=await Ze.get("fs::wishlist");f&&(f==null?void 0:f.length)!==s.length&&i(f)},l=async()=>{var d;const f=await Ze.get("fs::wishlist")??[],h=o.wishlist?typeof o.wishlist[0]=="object"?bg(o.wishlist):o.wishlist:[],m=[...new Set([...f,...h])];i(m),Ze.set("fs::wishlist",s),h.length!==m.length&&await fetch("/api/wishlist/documents",{method:"PATCH",body:JSON.stringify({productIds:m,docId:(d=o.user)==null?void 0:d.id})}).catch(g=>{console.error("Error updating wishlist:",g)})};if((u=o.user)!=null&&u.id){l();return}c()},[o,i,s]),r.jsx(Ms,{ICONS:t,Z_INDEX_WAR:n,WISHLIST_INFO:e})};$u.displayName="Wishlist.Init";const zu=({product:e,priceInfo:t,size:n="medium",style:o,ICONS:s})=>{const{sendDataLayerEvent:a,currentLocalRef:i}=le(),c=Tt(),{toggleProduct:l}=vt(),{isVariantOf:{productGroupID:u}}=e;return r.jsx(p.Button,{adornment:{start:r.jsx(p.Icon,{size:n,name:c.includes(u)?s.favorite_true:s.favorite_false})},onClick:()=>{l(u),a({functionKey:"productEvents",data:{event:c.includes(u)?"remove_from_wishlist":"add_to_wishlist",outsideEcommerceData:{region:i.current},commonData:{...e,...t}}})},style:{...o,border:"none"},variant:"tertiary"})};zu.displayName="WishList.Toggle";const Fu={Feedback:Ms,Toggle:zu,Grid:Du,Init:$u},Bu=({product:e,tag:t,size:n="small"})=>{const{CONSTANTS:o}=Ke(),{tags:s}=nt(),a=e.offers.offers[0],i=U.getDiscountPercent(a.listPrice,a.price),c=s==null?void 0:s.flagDiscount;return r.jsxs(xe.Wrapper,{type:"header",style:{zIndex:o.Z_INDEX_WAR.product_card_header},children:[i>0&&!t&&(c==null?void 0:c.enableTag)&&r.jsxs(p.Tag,{title:`${i}% ${c==null?void 0:c.tagText}`,variant:"quaternary",size:"small",style:{background:c==null?void 0:c.tagColor,color:c==null?void 0:c.tagTextColor},children:[i,"% ",c==null?void 0:c.tagText]}),t?r.jsx(p.Tag,{title:t.value,adornment:{start:t.enableIcon&&t.icon?r.jsx(p.Icon,{name:t.icon,size:"small",style:{color:t.iconColor}}):null},size:n,variant:"quaternary",style:{background:t.tagColor,color:t.textColor},children:t.value}):null,o.PRODUCT_CARD_TOP_WISHLIST_TOGGLE&&r.jsx(Fu.Toggle,{product:e,priceInfo:{price:a.price,listPrice:a.listPrice},variant:"card",ICONS:o.ICONS})]})};Bu.displayName="ProductCard.Actions.Header";const qu=({className:e,children:t,hasPriority:n=!1,showVideo:o=!1,...s})=>{const{element:a,index:i,item:{image:c,slug:l,video:u},sendSelectItemEvent:f,order:h,CONSTANTS:m}=Ke(),d=U.getFirstImages({images:c,label:{first:m.MAIN_IMAGE,second:m.SECOND_IMAGE}});return r.jsxs("div",{...s,className:p.helpers.classNameConcat(Ne["product-card--image"],e),ref:a,style:{aspectRatio:m.PRODUCT_CARD_IMAGE_ASPECT_RATIO},children:[r.jsx(De,{href:`/${l}/p`,onClick:f,onMouseUp:g=>{g.button===1&&f(),m.PLP_INFINITE_SCROLL&&sessionStorage.setItem(m.PLP_GRID_SCROLL_BACK.order,String(h))},children:r.jsx("div",{className:Ne["product-card--image--container"],children:Array.isArray(d)&&d.map(({url:g,alternateName:y},_)=>x.createElement(Ie.Image,{...m.PRODUCT_IMAGE_DIMENSIONS.product_card,style:m.PRODUCT_IMAGE_DIMENSIONS.product_card,alt:y??"product image",key:_,...n&&{priority:_===0&&i<4},objectFit:"cover",src:g}))})}),m.PLP_SHOW_VIDEO_ON_PRODUCT_CARD&&o&&u&&r.jsx(xe.Video,{url:u,poster:d[0].url}),t]})};qu.displayName="ProductCard.Media.Media";const Hu=({className:e,callback:t,children:n,...o})=>{const{isMobile:s,item:a,CONSTANTS:{PRODUCT_CARD_TEXTS:i}}=Ke(),{availability:{status:c}}=a;return c?null:r.jsxs("div",{...o,className:p.helpers.classNameConcat(Ne["product-card--outstock"],e),children:[r.jsx(p.Tag,{size:"small",variant:"secondary",title:i.disabled,children:i.disabled}),r.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})]})};Hu.displayName="ProductCard.OutStock";const Uu=({children:e,className:t="",index:n,isMobile:o=!1,item:s,size:a,order:i,outStock:c,shelfTitle:l,CONSTANTS:u,...f})=>r.jsx($h,{item:s,isMobile:o,outStock:c,order:i,size:a,index:n,shelfTitle:l,CONSTANTS:u,children:r.jsx("div",{...f,className:p.helpers.classNameConcat(Ne["product-card--wrapper"],t),"data-size":a,children:e})});Uu.displayName="ProductCard.Root";const Wu=({disabled:e,label:t,size:n,value:o,onClick:s,...a})=>r.jsxs(p.ToggleSize.Wrapper,{...a,disabled:!1,outOfStock:e,size:n,onClick:s,children:[r.jsx(p.ToggleSize.DisabledAdornment,{}),r.jsx(p.ToggleSize.Text,{children:t})]});Wu.displayName="ProductCard.SizeSelector.Item";const Gu=({active:e=!1,callback:t,selectedSku:n=null,item:o,setNotify:s})=>{const{item:a,isMobile:i,setSelectedSku:c,eventDataRef:l}=Ke();o.productId=a.id;const u=U.disableSKU(o),f=U.getSKUName(o,"tamanho");!u&&!l.current.availableSkus.includes(f)&&l.current.availableSkus.push(f);const h=x.useCallback(d=>{const g=n===d?null:d;typeof c=="function"&&c(g),typeof t=="function"&&t(g)},[t,c,n]),m=x.useCallback(()=>{if(u&&typeof s=="function"){s(a,o);return}h(o)},[o,s,h,u,a]);return r.jsx(Wu,{active:e,disabled:u,label:f,onClick:()=>m(),size:i?"x-small":"small",value:o})};Gu.displayName="ProductCard.SizeSelector.SkuItem";const Vu=({callback:e,className:t="",children:n,setNotify:o,...s})=>{const{isMobile:a,item:{isVariantOf:{hasVariant:i}},selectedSku:c}=Ke();return r.jsxs("div",{...s,className:p.helpers.classNameConcat(Ne["product-card--selectors--size"],t),"data-mobile":a,children:[r.jsx("div",{className:Ne["product-card--selectors--size--skus"],children:Array.isArray(i)&&i.map((l,u)=>r.jsx(Gu,{active:c===l,callback:e,item:l,selectedSku:c,setNotify:o},`size--${u}--${l.sku}`))}),r.jsx("div",{className:Ne["product-card--selectors--size--button"],children:n})]})};Vu.displayName="ProductCard.SizeSelector";const Xo=({alt:e="",callback:t,more:n,total:o=4,src:s,url:a,...i})=>r.jsxs(p.ToggleStyle.Wrapper,{...i,onClick:()=>{typeof t=="function"&&t(a)},children:[r.jsx(p.ToggleStyle.DisabledAdornment,{}),r.jsxs(p.ToggleStyle.Texture,{children:[s&&r.jsx(Ie.Image,{alt:e??s,src:s,height:34,width:34}),n&&r.jsx(p.TextStructure.DivWrapper,{className:Ne["product-card--selectors--style--more"],children:r.jsxs("p",{children:["+ ",o]})})]})]}),jg=({children:e,callback:t,data:n,total:o=4,size:s,...a})=>{const{index:i}=Ke(),{triggerSelectItemEventRef:c}=le();return r.jsxs("div",{...a,children:[e,Array.isArray(n)&&n.slice(0,o).map((l,u)=>r.jsx(Xo,{callback:f=>{c.current.trigger=!0,c.current.index=i,typeof t=="function"&&t(f)},src:(l==null?void 0:l.textureImage)??"",alt:l==null?void 0:l.textureAlt,url:l==null?void 0:l.slug,size:s},u)),Array.isArray(n)&&(n==null?void 0:n.length)>o&&r.jsx(Xo,{size:s,total:n.length-o,more:!0})]})},Ku=({callback:e,className:t,data:n,images:o=[],findTexture:s,...a})=>{const{CONSTANTS:i}=Ke(),c=s||i.TEXTURE_IMAGE,l=o==null?void 0:o.find(u=>c.includes(u.alternateName));return r.jsx(jg,{...a,callback:e,className:p.helpers.classNameConcat(Ne["product-card--selectors--style"],t),data:n,size:"x-small",children:l&&r.jsx(Xo,{active:!0,size:"x-small",src:l.url})})};Ku.displayName="ProductCard.StyleSelector";const Xu=({className:e,hasDecimal:t,...n})=>{const{isMobile:o,item:{offers:{lowPrice:s,highPrice:a},installments:{count:i,value:c}},eventDataRef:l}=Ke();l.current.priceInfo={price:s,listPrice:a};const u=U.formatPriceToCurrency(a,t),f=U.formatPriceToCurrency(s,t),h=U.formatPriceToCurrency(c??0),m=o?"horizontal":"stacked";return r.jsx("div",{...n,className:p.helpers.classNameConcat(Ne["product-card--price"],e),"data-mobile":o,children:r.jsx(p.ProductInfo.Root,{size:"small",layout:m,children:r.jsxs(p.ProductInfo.Wrapper,{size:"small",layout:m,children:[r.jsx(p.ProductInfo.ValuesWrapper,{children:f!==u?r.jsxs(r.Fragment,{children:[r.jsx(p.ProductInfo.Price,{label:"originalPrice",value:u,size:"small"}),r.jsx(p.ProductInfo.Price,{label:"discountPrice",value:f,size:"small"})]}):r.jsx(p.ProductInfo.Price,{label:"defaultPrice",value:f,size:"small"})}),i&&i>1&&c?r.jsx(p.ProductInfo.Price,{label:"installment",value:`${i}x ${h}`,size:"small"}):null]})})})};Xu.displayName="ProductCard.Price";const Yu=({tag:e,className:t})=>{const{item:{name:n}}=Ke();return r.jsxs("div",{className:p.helpers.classNameConcat(Ne["product-card--title"],t),children:[r.jsx("div",{className:Ne["product-card--title--tag"],children:e?r.jsx(p.Tag,{size:"small",title:e.value,variant:"quaternary",adornment:{start:e.enableIcon&&e.icon?r.jsx(p.Icon,{name:e.icon,style:{color:e.iconColor}}):null},style:{background:e.tagColor,color:e.textColor},children:e.value}):r.jsx("div",{})}),r.jsx("div",{className:Ne["product-card--title--content"],children:n&&r.jsx(p.TextStructure.Root,{children:r.jsx(p.TextStructure.DivWrapper,{children:r.jsx("h3",{children:n})})})})]})};Yu.displayName="ProductCard.Title";const Qu=({className:e,url:t,poster:n,...o})=>{const{element:s}=Ke();return x.useEffect(()=>{if(!(s!=null&&s.current))return;const a=s.current,i=a.querySelector("video");if(i){const c=new IntersectionObserver(f=>{f.forEach(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]),r.jsx("div",{...o,className:p.helpers.classNameConcat(Ne["product-card--video"],e),children:t&&r.jsx(Ie.Video,{autoPlay:!1,muted:!0,loop:!0,preload:"none",playsInline:!0,poster:n})})};Qu.displayName="ProductCard.Media.Video";const Zu=({children:e,className:t,type:n,...o})=>r.jsx("div",{...o,className:p.helpers.classNameConcat(Ne[`product-card--${n}`],t),children:e});Zu.displayName="ProductCard.Wrapper";const xe={Actions:bu,BuyButton:ju,Header:Bu,Media:qu,Root:Uu,OutStock:Hu,Price:Xu,SizeSelector:Vu,StyleSelector:Ku,Title:Yu,Video:Qu,Wrapper:Zu},Cg="_carousel_w0llv_1",Sg="_shelf__container_w0llv_14",Pg="_shelf_without_carousel_w0llv_34",wg="_card_container_w0llv_52",St={carousel:Cg,"custom-controllers":"_custom-controllers_w0llv_5",shelf__container:Sg,"controllers-arrows-bullets":"_controllers-arrows-bullets_w0llv_23",shelf_without_carousel:Pg,card_container:wg},qa=({title:e})=>r.jsx("div",{className:St.shelf__container,children:e&&r.jsx(p.TextStructure.Root,{children:r.jsxs(p.TextStructure.DivWrapper,{children:[r.jsx("h2",{className:p.helpers.classNameConcat("typography-style-body-md",U.responsive["responsive-mobile-flex"]),children:e}),r.jsx("h2",{className:p.helpers.classNameConcat("typography-style-heading-md",U.responsive["responsive-desktop-flex"]),children:e})]})})}),Eg=({children:e,ICONS:t,itemsPerPage:n,title:o})=>{const{isMobile:s}=ce(),a=n[s?"mobile":"desktop"],{initialize:i,controller:c,itemsStyles:l,pagination:u}=p.Carousel.useCarousel({itemsPerPage:a,gap:10,loop:!0,direction:"row"}),f=x.Children.toArray(e).length;return s||f>=4?r.jsxs(p.Carousel.Root,{innerRef:m=>{i(m)},className:St.carousel,children:[r.jsxs("div",{className:St["custom-controllers"],children:[o&&r.jsx(qa,{title:o}),a<f&&r.jsxs(p.Carousel.Controller,{className:St["controllers-arrows-bullets"],children:[r.jsxs(p.Carousel.Arrows,{children:[r.jsx(p.Button,{variant:"tertiary",onClick:()=>c==null?void 0:c.prevPage(),adornment:{start:r.jsx(p.Icon,{name:t.arrow_left})}}),r.jsx(p.Button,{variant:"tertiary",onClick:()=>c==null?void 0:c.nextPage(),adornment:{start:r.jsx(p.Icon,{name:t.arrow_right})}})]}),!s&&a>2&&r.jsx(p.Carousel.Bullets,{page:u.currentPage,total:u.totalPages,onBulletClick:m=>c==null?void 0:c.navigateTo(m)})]})]}),r.jsx(p.Carousel.Body,{children:x.Children.map(e,(m,d)=>r.jsx(p.Carousel.Item,{style:{...l,overflow:"hidden"},children:m},`${o}_${d}`))})]}):r.jsxs(r.Fragment,{children:[o&&r.jsx(qa,{title:o}),r.jsx("div",{className:St.shelf_without_carousel,children:e})]})},Ju=({className:e,item:t,isMobile:n,size:o,shelfTitle:s,...a})=>{const i=x.useRef(null),{getAvailableProductTag:c}=nt(),{availability:{status:l}}=t,u=h=>{const m=h.filter(d=>!a.CONSTANTS.TEXTURE_IMAGE.includes(d.keywords));return n?m.splice(0,2):m},f=c(t.cluster.highlights);return r.jsx("div",{ref:i,className:St.card_container,children:r.jsxs(xe.Root,{...a,item:{...t,image:u(t.image)},isMobile:n,size:n?"small":"medium",outStock:!l,shelfTitle:s,children:[r.jsx(xe.Header,{product:t,tag:f==null?void 0:f.commercial}),r.jsx(xe.Media,{}),r.jsxs(xe.Wrapper,{type:"body",children:[r.jsx(xe.Title,{tag:f==null?void 0:f.institucional}),r.jsx(xe.Actions,{})]}),r.jsx(xe.Wrapper,{type:"footer"})]})})};Ju.displayName="ProductList.Card";const Ut={Shelf:Eg,Card:Ju},ed=({CONSTANTS:e,inView:t,products:n,innerRef:o})=>{const s=x.useMemo(()=>Lh(n),[n]),{isMobile:a}=ce(),{addItemsToCart:i}=Re(),{sendDataLayerEvent:c}=le(),{getAvailableProductTag:l}=nt(),[u,f]=x.useState({totalPrice:0,products:{}}),h=()=>{const d=Object.values(u.products);i(d),c({functionKey:"skuEvents",data:{event:"add_to_cart",commonData:{products:d.map(g=>{const y=s.find(_=>_.node.id===g.productId);return y==null?void 0:y.node})},supportData:{selectedSkus:d,price:u.totalPrice}}})},m=({selectedProduct:d,productId:g})=>{const y=Dh({selectedProduct:d,productId:g,prevState:u,mainSellerId:e.StoreConfig_MainSellerId});f(y)};return x.useEffect(()=>{if(!t||s.length===0)return;const d=e.BUY_PACKAGE.header.title;c({functionKey:"productListEvent",data:{event:"view_item_list",commonData:{products:s},customData:{item_list_name:d},outsideEcommerceData:{item_list_name:d}}})},[t]),r.jsxs("div",{className:lt.container,ref:o,children:[r.jsx("div",{className:lt["carousel-container"],style:{width:s.length<=3?"max-content":"75%"},children:r.jsx(Ut.Shelf,{title:e.BUY_PACKAGE.header.title,itemsPerPage:{desktop:3,mobile:s.length>=3?2.2:s.length},ICONS:e.ICONS,children:Array.isArray(s)&&s.map(({node:d},g)=>{var b,S,v;const y=l(d.cluster.highlights),{availability:{status:_}}=d;return _?r.jsxs(xe.Root,{item:{...d,image:Ts.helpers.product.getFirstImages({images:d.image,label:{first:e.MAIN_IMAGE,second:e.SECOND_IMAGE}})},isMobile:a,size:"medium",index:g,shelfTitle:e.BUY_PACKAGE.header.title,CONSTANTS:e,children:[r.jsx(xe.Header,{product:d,tag:y.commercial}),r.jsx(xe.Media,{}),r.jsxs(xe.Wrapper,{type:"body",children:[r.jsx(xe.Title,{tag:{value:(b=y.institucional)==null?void 0:b.value,enableIcon:(S=y.institucional)==null?void 0:S.enableIcon,icon:(v=y.institucional)==null?void 0:v.icon}}),r.jsx(xe.Actions,{children:r.jsx(xe.SizeSelector,{callback:j=>m({selectedProduct:j,productId:d.id})})})]})]},d.id):null})})}),r.jsx("div",{className:lt["add-cart-container"],children:r.jsx(Mh,{handleAddAllToCart:h,selectedProducts:u,CONSTANTS:{BUY_BUTTON_LABELS:e.BUY_BUTTON_LABELS,BUY_PACKAGE:e.BUY_PACKAGE,FREIGHT_CALCULATION:e.FREIGHT_CALCULATION}})})]})},$s={"btn-login":"_btn-login_yas63_12","btn-header":"_btn-header_yas63_22","header-animation":"_header-animation_yas63_35"},zs=({id:e})=>{const{setIsOpen:t,cartStore:{items:n}}=Re(),{handleSelectContent:o}=le(),{CONSTANTS:s}=we(),a=n.reduce((i,c)=>i+(c.quantity??0),0);return r.jsx(p.Header.SupportItem,{onClick:()=>{t(!0),o({content:"header:minicart"})},id:e,children:r.jsxs(p.Badge.AutoPositioner,{children:[r.jsx(p.Badge.Count,{count:a,size:"medium",variant:"primary",style:{backgroundColor:"black",display:a>0?"flex":"none"}}),r.jsx(p.Icon,{name:s.header.ICONS.bag,size:"medium"})]})})};zs.displayName="Header.Bag";const Yt=({children:e,href:t,...n})=>t&&t!=="#"?r.jsx(De,{href:t.startsWith("/")?t:`/${t}`,...n,children:e}):e,td=()=>{const{headerData:e}=we(),{handleSelectContent:t}=le(),{reset:n,updateValue:o}=Vt(),s=a=>{a?o(a):n()};return r.jsx(p.Header.Categories,{children:Array.isArray(e.categories)&&e.categories.map((a,i)=>r.jsx(Yt,{href:a.link,onMouseEnter:()=>s(a.submenuId),onFocus:()=>s(a.submenuId),children:r.jsx(p.Header.CategoryItem,{className:$s["btn-header"],value:a.submenuId??null,adornment:{start:r.jsx(p.Icon,{name:a.iconStart}),end:r.jsx(p.Icon,{name:a.iconEnd})},style:{textWrap:"nowrap",gap:"0"},onClick:()=>{t({content:`header:${a.label}`})},children:a.label})},`category-${a.label}-${i}`))})};td.displayName="Header.Categories";function Rg(){const{handleSelectContent:e}=le(),{CONSTANTS:t}=we(),{setValue:n}=hs();return r.jsx(p.Header.SupportItem,{onClick:()=>{n(!0),e({content:"header:search"})},children:r.jsx(p.Icon,{name:t.header.ICONS.search,size:"medium"})})}const Ag={"menu-subcategories-container":"_menu-subcategories-container_a93cr_1"},Ng={"observer-wrapper":"_observer-wrapper_r43gk_1"},zr=({children:e,eventData:t,observerOptions:n,callBackWhenVisible:o,stopOnIntersection:s=!0,className:a,...i})=>{const c=x.useRef(null),l=ds(c,s,n),{sendDataLayerEvent:u}=le();return x.useEffect(()=>{l&&(typeof o=="function"&&o(),t&&u({...t}))},[l]),r.jsx("div",{...i,ref:c,className:p.helpers.classNameConcat(Ng["observer-wrapper"],a),children:e})},rd=({thumbnails:e,category:t,isMobile:n=!0,callBack:o})=>{const{handleSelectPromotionEvent:s}=le(),a=50/e.length;return r.jsx("div",{className:Ag["menu-subcategories-container"],children:e.map((i,c)=>{const l=n?i.srcMobile:i.srcDesk;if(!l)return null;const u={creative_name:"banner-menu",creative_slot:`banner-menu:${t}:${c+1}`,promotion_id:l,promotion_name:i.promotion_name};return r.jsx(zr,{eventData:{functionKey:"readyEvents",data:{event:"view_promotion",readyData:{ecommerce:{...u}}}},observerOptions:{delay:1e3},children:r.jsxs(De,{href:i.link??"#",onClick:()=>{typeof o=="function"&&o(),s({updatePromotionRef:!0,promotion:u})},children:[r.jsx(Ie.Image,{src:l,alt:i.label??l,width:500,height:500,sizes:`(max-width: 768px) 100vw, (max-width: 1023px) 75vw, ${a}vw`}),i.label&&r.jsx("p",{children:i.label})]})},`thumb-${i.label}-${c}`)})})};rd.displayName="Menu.Thumbnail";const Yo={"menu-desktop":"_menu-desktop_1b799_1","menu-categories":"_menu-categories_1b799_12"},nd=({children:e,dividerOnRight:t=!0,subMenu:n,...o})=>{var l;const{router:s}=_e(),{reset:a}=Vt(),{handleSelectContent:i}=le(),{CONSTANTS:c}=we();return r.jsxs("div",{...o,className:Yo["menu-categories"],children:[(l=n==null?void 0:n.subCategories)==null?void 0:l.map((u,f)=>{var d,g,y,_;const h=u.listCollapseDesk&&!((d=u.see_all)!=null&&d.link)?{expandAfterRowsQty:u.rowsToShowDesk}:{},m=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:r.jsx(p.Icon,{name:c.header.ICONS.arrow_right,size:"small"})}};return r.jsxs(p.ComponentList.Structure,{children:[r.jsx(Yt,{href:u.linkLabel,title:u.label,onClick:()=>{u.linkLabel&&(a(),i({content:`menu:${u.label??""}:${n.label??""}`}))},children:r.jsx(p.TextStructure.Root,{children:r.jsx(p.TextStructure.DivWrapper,{children:r.jsx("h2",{children:u.label})})})}),r.jsx(p.ComponentList.List,{columns:1,...h,className:Yo["submenu-categories"],children:(y=u.items)==null?void 0:y.map((b,S)=>r.jsx(p.ComponentList.ListItem,{id:`list-item-${b.label}-${S}`,children:r.jsx(Ge,{href:b.link??"#",size:"x-small",title:b.label??"",disableUnderline:!0,disablePadding:!0,onClick:()=>{a(),i({content:`menu:${u.label??""}:${b.label??""}:${n.label??""}`})},children:b.label})},`list-item-${b.label}-${S}`))}),((_=u.see_all)==null?void 0:_.link)&&r.jsx(p.ComponentList.Support,{...m,size:"small",onClick:()=>{var b;(b=u.see_all)!=null&&b.link&&(a(),i({content:`menu:${u.label??""}:${n.label}`}),s.push(u.see_all.link))},children:u.see_all.link&&u.see_all.label})]},`list-${u.label}-${f}`)}),t&&r.jsx(p.Utils.Divider,{size:"small",direction:"vertical"})]})};nd.displayName="Menu.Categories";const od=({children:e,dividerOnBottom:t=!0,...n})=>{const{CONSTANTS:o}=we();return r.jsxs(r.Fragment,{children:[r.jsx("div",{...n,className:Yo["menu-desktop"],style:{...n.style,justifyContent:o.header.ALIGNMENT_MENU},children:e}),t&&r.jsx(p.Utils.Divider,{size:"small"})]})};od.displayName="Menu.MenuRoot";const Cn={Root:od,Categories:nd,Thumbnail:rd},sd=()=>{const{headerData:e,CONSTANTS:t}=we(),n=Zc(),{reset:o}=Vt();return r.jsx(p.Header.SubMenu,{children:Array.isArray(e.subMenus)&&e.subMenus.map((s,a)=>{const{thumbnails:i,label:c,id:l}=s,u=l===n,f=i==null?void 0:i.some(h=>!!h.srcDesk);return r.jsxs(Cn.Root,{id:l,style:u?{display:"flex",zIndex:t.header.Z_INDEX_WAR.menu_desktop}:{display:"none"},dividerOnBottom:u,children:[r.jsx(Cn.Categories,{dividerOnRight:!!f,subMenu:s}),Array.isArray(i)&&r.jsx(Cn.Thumbnail,{thumbnails:i,isMobile:!1,category:c,callBack:o})]},`submenu-${l}-${a}`)})})};sd.displayName="Header.SubMenu";const ad=()=>{const{handleSelectContent:e}=le(),{CONSTANTS:t}=we();return r.jsx(De,{href:"/favoritos",children:r.jsx(p.Header.SupportItem,{onClick:()=>e({content:"header:wishlist"}),children:r.jsx(p.Icon,{name:t.header.ICONS.favorite_false,size:"medium"})})})};ad.displayName="Header.WishList";const Ig="_root_wvekm_126",Ue={"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:Ig},id=({className:e,children:t,...n})=>r.jsx("div",{...n,className:p.helpers.classNameConcat(Ue["user-menu--content"],e),children:t});id.displayName="UserMenu.Content";var cd=(e=>(e.Account="account",e))(cd||{});const ld=({className:e,cashBack:t,credits:n,link:o,total:s,...a})=>{const i=t?U.formatPriceToCurrency(t):void 0,c=n?U.formatPriceToCurrency(n):void 0,l=s?U.formatPriceToCurrency(s):void 0;return r.jsx(p.Credits.Account,{...a,className:p.helpers.classNameConcat(Ue["user-menu--credits"],e),icon:"wallet",showIcon:!0,cashBackValue:i,creditsValue:c,linkMore:o,totalValue:l,type:cd.Account})};ld.displayName="UserMenu.Credits";const ud=({className:e,children:t,description:n,text:o,...s})=>{const{isMobile:a}=ce();return r.jsx("div",{...s,className:p.helpers.classNameConcat(Ue["user-menu--login"],e),"data-mobile":a,children:r.jsxs("div",{className:Ue["user-menu--login--content"],children:[r.jsx(p.TextStructure.Root,{children:r.jsxs(p.TextStructure.DivWrapper,{alignContent:"flex-start",alignItems:"flex-start",children:[r.jsx("h3",{className:"typography-style-body-lg-strong",children:o}),r.jsx("p",{children:n})]})}),t]})})};ud.displayName="UserMenu.Login";const dd=({className:e,isLogged:t,onLogoutClick:n,ICONS:o,storeConfig:s,isMobile:a})=>{const i=a?ra:ra({ICONS:o,storeConfig:s}).filter(c=>c.deviceShown==="both"||c.deviceShown===(a?"mobile":"desktop"));return r.jsxs("ul",{className:p.helpers.classNameConcat(Ue["user-menu--menu"],e),children:[Array.isArray(i)&&i.map((c,l)=>r.jsx("li",{children:r.jsx(Ge,{href:c.href??"#",size:"small",disableUnderline:!0,adornments:{start:r.jsx(p.Icon,{name:c.icon??"delete"})},children:c.label})},l)),t?r.jsx("li",{children:r.jsx(Ge,{href:`${s.secureSubdomain}/api/vtexid/pub/logout?scope=mariafilo&returnUrl=${encodeURIComponent(`${s.storeUrl}`)}`,size:"small",disableUnderline:!0,onClick:n,adornments:{start:r.jsx(p.Icon,{name:Wm(o)})},children:Um})}):r.jsx(r.Fragment,{})]})};dd.displayName="UserMenu.Menu";const fd=e=>{const t=x.useRef(null),n=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",n),document.addEventListener("keydown",s),document.addEventListener("touchstart",o),()=>{document.removeEventListener("mousedown",n),document.removeEventListener("keydown",s),document.removeEventListener("touchstart",o)}),[n,s,o]),{ref:t}},Tg=e=>{if(!e||typeof window>"u")return 0;const t=window.getComputedStyle(e);return parseInt(t.padding,10)},Og=(e,t,n)=>{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?Tg(e==null?void 0:e.parentElement):0;return{left:s+i/2-(c.width+l*2),top:a+o+n}},pd=x.createContext({}),kg=({children:e,delay:t=600,gap:n=20,isOpen:o,setIsOpen:s,target:a,...i})=>{const c=x.useRef(null),[l,u]=x.useState(!1),[f,h]=x.useState({left:0,top:0}),{ref:m}=fd(()=>{u(!0),typeof window<"u"&&(c.current=window.setTimeout(()=>{s(!1),u(!1)},t))});return x.useEffect(()=>{if(a&&(m!=null&&m.current)){const{left:d,top:g}=Og(m.current,a,n??0);h({left:d,top:g}),u(!1)}},[n,o,a,m]),r.jsx(pd.Provider,{value:x.useMemo(()=>({...i,...f,contentRef:m,isLeaving:l,isOpen:o,setIsOpen:s,setIsLeaving:u,target:a}),[i,f,m,l,o,s,u,a]),children:e})},md=()=>{const e=x.useContext(pd);if(e===void 0)throw new Error("useUserMenuContext must be used within a UserMenuProvider");return e},hd=({children:e,isMobile:t=!1,Z_INDEX_WAR:n})=>{const{isOpen:o,setIsOpen:s}=md();return r.jsxs(p.Modal.Root,{"data-user":"user-menu--modal",isMobile:t??!1,isOpen:o,setIsOpen:s,variant:"sideBottom",className:Ue["modal-root-modifier"],style:{zIndex:n.user_menu_mobile},children:[r.jsx(p.Modal.Header,{navigation:"top",className:Ue["modal-header-modifier"],children:r.jsx(p.Modal.Controls,{navigation:"top",isMobile:!0,className:Ue["modal-controls-modifier"]})}),r.jsx(p.Modal.Body,{children:e})]})};hd.displayName="UserMenu.Modal";const gd=({children:e,component:t,Z_INDEX_WAR:n,isMobile:o,...s})=>r.jsx(kg,{...s,className:Ue.root,children:o?r.jsxs(r.Fragment,{children:[r.jsx(ct.Modal,{Z_INDEX_WAR:n,children:t}),e]}):r.jsx(ct.Tooltip,{component:t,style:{width:304,zIndex:n.user_menu},Z_INDEX_WAR:n,children:e})});gd.displayName="UserMenu.Root";const yd=({children:e,component:t,Z_INDEX_WAR:n,...o})=>{const{contentRef:s,left:a,isLeaving:i,isOpen:c,top:l}=md();return r.jsx(p.Tooltip.Root,{arrow:"top-right",component:r.jsx("div",{...o,ref:s,children:t}),className:p.helpers.classNameConcat(Ue["user-menu--tooltip"],Ue["tooltip-modifier"]),isLeaving:i,isOpen:c,left:a,size:"medium",position:"top",top:l,style:{zIndex:n.user_menu},children:r.jsx("div",{className:Ue["user-menu--tooltip"],children:e})})};yd.displayName="UserMenu.Tooltip";const ct={Credits:ld,Content:id,Login:ud,Menu:dd,Modal:hd,Root:gd,Tooltip:yd},Fr=({children:e,isOpen:t,setIsOpen:n,target:o,storeConfig:s})=>{var m,d,g;const{isMobile:a}=ce(),{CONSTANTS:i}=we(),c=Ot(),l=()=>{window.location.href=`${s.secureSubdomain}/api/io/login?returnUrl=${encodeURIComponent(`${window.location.href}`)}`},u=!!((m=c.user)!=null&&m.userId),{cashback:f,credits:h}=x.useMemo(()=>{var y,_;return{credits:((y=c==null?void 0:c.getCurrentCredits())==null?void 0:y.credits)??0,cashback:((_=c==null?void 0:c.getCurrentCredits())==null?void 0:_.cashback)??0}},[c]);return r.jsx(ct.Root,{component:r.jsxs(ct.Content,{children:[r.jsx(ct.Login,{description:Vm(u),text:Gm(u,((d=c==null?void 0:c.user)==null?void 0:d.firstName)??((g=c==null?void 0:c.user)==null?void 0:g.email)),children:!u&&r.jsx(p.Button,{size:"medium",variant:"quaternary",onClick:()=>l(),children:i.header.MENU_INFO.login.button_text})}),h+f&&u?r.jsx(ct.Credits,{credits:h,cashBack:f,link:`${s.secureSubdomain}/account#/meus-creditos`,total:h+f}):r.jsx(r.Fragment,{}),r.jsx(p.Utils.Divider,{}),r.jsx(ct.Menu,{ICONS:i.header.ICONS,storeConfig:s,isLogged:u,className:U.responsive["responsive-desktop-flex"],onLogoutClick:()=>c.logout()}),r.jsx(ct.Menu,{ICONS:i.header.ICONS,storeConfig:s,isMobile:!0,isLogged:u,className:U.responsive["responsive-mobile-flex"],onLogoutClick:()=>c.logout()})]}),isOpen:t,isMobile:a,setIsOpen:n,target:o,Z_INDEX_WAR:i.header.Z_INDEX_WAR,children:e})};Fr.displayName="UserMenu";const _d=({storeConfig:e})=>{const{CONSTANTS:t,userMenuDesktopRef:n}=we(),{handleSelectContent:o}=le(),{reset:s}=Vt(),{setValue:a}=ys(),i=gs(),c=x.useRef(null);return r.jsxs(r.Fragment,{children:[r.jsxs(p.Header.Wrapper,{children:[r.jsx(p.Header.Logo,{style:{width:"100%"},children:r.jsx(De,{href:"/",onMouseEnter:s,children:r.jsx(p.Icon,{name:t.header.ICONS.logo,size:"x-large",onClick:()=>{o({content:"header:logo"})}})})}),r.jsx(td,{}),r.jsxs(p.Header.Support,{onMouseEnter:s,style:{justifyContent:"flex-end"},children:[r.jsx(Rg,{}),r.jsx(Fr,{isOpen:i,setIsOpen:a,target:c.current,storeConfig:e,children:r.jsx(p.Header.SupportItem,{onClick:()=>{a(!0),o({content:"header:user_menu"})},className:$s["btn-login"],innerRef:n,children:r.jsx(p.Icon,{name:t.header.ICONS.person,size:"medium"})})}),r.jsx(ad,{}),r.jsx(zs,{id:"cart-button"})]})]}),r.jsx(sd,{})]})};_d.displayName="Header.HeaderDesktopWrapper";const Fe={"menu--banners":"_menu--banners_1bvvz_1","menu--banners--item":"_menu--banners--item_1bvvz_6","menu--banners--item--text":"_menu--banners--item--text_1bvvz_17","menu--banners--list":"_menu--banners--list_1bvvz_21","menu--dummy-close":"_menu--dummy-close_1bvvz_46","menu--body":"_menu--body_1bvvz_54","menu--categories":"_menu--categories_1bvvz_67","menu--categories--title":"_menu--categories--title_1bvvz_80","menu--step":"_menu--step_1bvvz_92","menu--sub-category":"_menu--sub-category_1bvvz_108","menu--sub-category--item":"_menu--sub-category--item_1bvvz_115","menu--sub-category--list":"_menu--sub-category--list_1bvvz_121"},vd=({children:e,mobileBannerAlt:t,mobileBannerSrc:n,textColor:o,submenuId:s,label:a,...i})=>r.jsx("button",{...i,className:Fe["menu--banners--item"],children:n?r.jsxs(p.Banner.Container,{children:[r.jsx(p.Banner.ImageWrapper,{children:r.jsx(Ie.Image,{alt:t??n,height:128,src:n,width:343,unoptimized:!0})}),r.jsx(p.Banner.Slot,{verticalAlignment:"end",horizontalAlignment:"center",children:r.jsx(p.TextStructure.Root,{children:r.jsx(p.TextStructure.DivWrapper,{className:Fe["menu--banners--item--text"],children:r.jsx("h2",{className:"typography-style-body-xs",style:o?{color:o}:{},children:e})})})})]}):r.jsx("h2",{...i,children:e})});vd.displayName="Menu.Mobile.Category";const xd=({label:e,...t})=>{const{CONSTANTS:n}=we();return r.jsx(p.Button,{...t,adornment:{end:r.jsx(p.Icon,{name:n.header.ICONS.arrow_right,size:"medium"})},mode:"inverse",size:"medium",variant:"primary",children:e})};xd.displayName="Menu.Mobile.Body.Category";const bd=({subCategory:e,submenuLabel:t,onHandleOut:n,...o})=>r.jsx("div",{...o,className:Fe["menu--sub-category--list"],children:Array.isArray(e==null?void 0:e.items)&&(e==null?void 0:e.items.map((s,a)=>r.jsx(Ge,{disableUnderline:!0,disablePadding:!1,href:s.link??"#",onClick:()=>n(s.label,t),size:"medium",title:s.label??"",children:s.label},a)))});bd.displayName="Menu.Mobile.List";const jd=({current:e,onHandleOut:t})=>{var n;return e?r.jsx("div",{className:Fe["menu--sub-category"],children:Array.isArray(e==null?void 0:e.subCategories)&&((n=e==null?void 0:e.subCategories)==null?void 0:n.map((o,s)=>r.jsxs("div",{className:Fe["menu--sub-category--item"],children:[r.jsx(qt.Title,{onHandleOut:t,subCategory:o,submenuLabel:e==null?void 0:e.id}),r.jsx(qt.List,{onHandleOut:t,subCategory:o,submenuLabel:e==null?void 0:e.id})]},s)))}):r.jsx(r.Fragment,{})};jd.displayName="Menu.Mobile.Body.SubCategory";const Cd=({subCategory:e,submenuLabel:t,onHandleOut:n,...o})=>{var c;const{router:s}=_e(),{handleSelectContent:a}=le(),{CONSTANTS:i}=we();return r.jsxs("div",{...o,className:Fe["menu--categories--title"],children:[r.jsx(Yt,{href:e==null?void 0:e.linkLabel,title:e==null?void 0:e.linkLabel,onClick:()=>{a({content:`menu:${e.label??""}:${t}`})},children:r.jsx(p.TextStructure.Root,{children:r.jsx(p.TextStructure.DivWrapper,{children:r.jsx("h2",{className:"typography-style-body-md",children:e==null?void 0:e.label})})})}),((c=e==null?void 0:e.see_all)==null?void 0:c.link)&&r.jsx(p.ComponentList.Support,{adornment:{end:r.jsx(p.Icon,{name:i.header.ICONS.arrow_right,size:"small"})},size:"small",onClick:()=>{var l;n(e.label,t),(l=e==null?void 0:e.see_all)!=null&&l.link&&s.push(e.see_all.link)},children:e.see_all.label})]})};Cd.displayName="Menu.Mobile";const qt={Banner:vd,Category:xd,List:bd,SubCategory:jd,Title:Cd},Sd=x.createContext({}),Mg=({children:e})=>{const[t,n]=x.useState(null),o=x.useCallback(()=>{n(null)},[]),s=a=>{a!==t&&n(a)};return r.jsx(Sd.Provider,{value:{currentCategory:t,setCurrentCategory:n,handleCloseMenu:o,handleChangeSubMenuOpened:s},children:e})},Pd=()=>x.useContext(Sd),wd=e=>{const{router:t}=_e(),{headerData:n}=we(),{handleSelectContent:o}=le(),{currentCategory:s,setCurrentCategory:a}=Pd(),i=x.useRef(null),c=()=>{if(i.current){const d=i.current;d&&(a(null),d==null||d.click())}},l=(d,g)=>{o({content:`menu:${d}`}),t.push(g),c()},u=(d,g)=>{o({content:`menu:${d}:${g}`}),c()},f=Array.isArray(n==null?void 0:n.categories)?n==null?void 0:n.categories:[],h=Array.isArray(n==null?void 0:n.subMenus)?n==null?void 0:n.subMenus:[],m=d=>{d.submenuId?a(d.submenuId):l(d.label,d.link)};return r.jsxs("div",{...e,className:Fe["menu--body"],style:{transform:`translate3d(calc(-100% * ${s?1:0}), 0px, 0px)`},children:[r.jsx("button",{className:Fe["menu--dummy-close"],ref:i,"data-close":!0}),r.jsxs("div",{className:Fe["menu--step"],"data-active":"true",children:[r.jsx("div",{className:Fe["menu--banners"],children:r.jsx("div",{className:Fe["menu--banners--list"],children:f.map((d,g)=>x.createElement(qt.Banner,{...d,key:g,onClick:()=>l(d.label,d.link)},d.mobileBannerAlt))})}),r.jsx("div",{className:Fe["menu--categories"],children:f.map((d,g)=>r.jsx(qt.Category,{label:d.label,onClick:()=>m(d)},g))})]}),r.jsx("div",{className:Fe["menu--step"],"data-active":!!s,children:r.jsx(qt.SubCategory,{current:h.find(d=>d.id===s),onHandleOut:u})})]})};wd.displayName="Menu.Mobile.Body";const Lg={"menu--header":"_menu--header_1ozdf_1"},Ed=()=>{var s;const{headerData:e}=we(),{currentCategory:t,setCurrentCategory:n}=Pd(),o=(s=e==null?void 0:e.categories)==null?void 0:s.find(a=>a.submenuId===t);return r.jsxs("div",{className:Lg["menu--header"],children:[r.jsx(p.Button,{"data-out":!o,iconNameStart:"arrow-left",mode:"inverse",onClick:()=>n(null)}),o&&r.jsx(p.TextStructure.Root,{children:r.jsx(p.TextStructure.DivWrapper,{alignContent:"center",children:r.jsx("h2",{className:"typography-style-body-lg",children:o==null?void 0:o.label})})}),r.jsx(p.Button,{iconNameStart:"close","data-close":!0,"data-only":!o,mode:"inverse",onClick:()=>n(null)})]})};Ed.displayName="Menu.Mobile.Header";var Qo={exports:{}};function Dg(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 Sn={},Pn={},Ha;function $g(){return Ha||(Ha=1,function(e){"use client";Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"LoadableContext",{enumerable:!0,get:function(){return o}});const o=ke._(x).default.createContext(null);process.env.NODE_ENV!=="production"&&(o.displayName="LoadableContext")}(Pn)),Pn}var Ua;function zg(){return Ua||(Ua=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return d}});const n=ke._(x),o=$g();function s(g){return g&&g.default?g.default:g}const a=[],i=[];let c=!1;function l(g){let y=g(),_={loading:!0,loaded:null,error:null};return _.promise=y.then(b=>(_.loading=!1,_.loaded=b,b)).catch(b=>{throw _.loading=!1,_.error=b,b}),_}function u(g,y){let _=Object.assign({loader:null,loading:null,delay:200,timeout:null,webpack:null,modules:null},y),b=null;function S(){if(!b){const P=new f(g,_);b={getCurrentValue:P.getCurrentValue.bind(P),subscribe:P.subscribe.bind(P),retry:P.retry.bind(P),promise:P.promise.bind(P)}}return b.promise()}if(typeof window>"u"&&a.push(S),!c&&typeof window<"u"){const P=_.webpack&&typeof Dg.resolveWeak=="function"?_.webpack():_.modules;P&&i.push(E=>{for(const C of P)if(E.includes(C))return S()})}function v(){S();const P=n.default.useContext(o.LoadableContext);P&&Array.isArray(_.modules)&&_.modules.forEach(E=>{P(E)})}function j(P,E){v();const C=n.default.useSyncExternalStore(b.subscribe,b.getCurrentValue,b.getCurrentValue);return n.default.useImperativeHandle(E,()=>({retry:b.retry}),[]),n.default.useMemo(()=>C.loading||C.error?n.default.createElement(_.loading,{isLoading:C.loading,pastDelay:C.pastDelay,timedOut:C.timedOut,error:C.error,retry:b.retry}):C.loaded?n.default.createElement(s(C.loaded),P):null,[P,C])}return j.preload=()=>S(),j.displayName="LoadableComponent",n.default.forwardRef(j)}class f{promise(){return this._res.promise}retry(){this._clearTimeouts(),this._res=this._loadFn(this._opts.loader),this._state={pastDelay:!1,timedOut:!1};const{_res:y,_opts:_}=this;y.loading&&(typeof _.delay=="number"&&(_.delay===0?this._state.pastDelay=!0:this._delay=setTimeout(()=>{this._update({pastDelay:!0})},_.delay)),typeof _.timeout=="number"&&(this._timeout=setTimeout(()=>{this._update({timedOut:!0})},_.timeout))),this._res.promise.then(()=>{this._update({}),this._clearTimeouts()}).catch(b=>{this._update({}),this._clearTimeouts()}),this._update({})}_update(y){this._state={...this._state,error:this._res.error,loaded:this._res.loaded,loading:this._res.loading,...y},this._callbacks.forEach(_=>_())}_clearTimeouts(){clearTimeout(this._delay),clearTimeout(this._timeout)}getCurrentValue(){return this._state}subscribe(y){return this._callbacks.add(y),()=>{this._callbacks.delete(y)}}constructor(y,_){this._loadFn=y,this._opts=_,this._callbacks=new Set,this._delay=null,this._timeout=null,this.retry()}}function h(g){return u(l,g)}function m(g,y){let _=[];for(;g.length;){let b=g.pop();_.push(b(y))}return Promise.all(_).then(()=>{if(g.length)return m(g,y)})}h.preloadAll=()=>new Promise((g,y)=>{m(a).then(g,y)}),h.preloadReady=g=>(g===void 0&&(g=[]),new Promise(y=>{const _=()=>(c=!0,y());m(i,g).then(_,_)})),typeof window<"u"&&(window.__NEXT_PRELOADREADY=h.preloadReady);const d=h}(Sn)),Sn}(function(e,t){Object.defineProperty(t,"__esModule",{value:!0});function n(f,h){for(var m in h)Object.defineProperty(f,m,{enumerable:!0,get:h[m]})}n(t,{noSSR:function(){return l},default:function(){return u}});const o=ke,s=o._(x),a=o._(zg()),i=typeof window>"u";function c(f){return{default:(f==null?void 0:f.default)||f}}function l(f,h){if(delete h.webpack,delete h.modules,!i)return f(h);const m=h.loading;return()=>s.default.createElement(m,{error:null,isLoading:!0,pastDelay:!1,timedOut:!1})}function u(f,h){let m=a.default,d={loading:_=>{let{error:b,isLoading:S,pastDelay:v}=_;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}};f instanceof Promise?d.loader=()=>f:typeof f=="function"?d.loader=f:typeof f=="object"&&(d={...d,...f}),d={...d,...h};const g=d.loader,y=()=>g!=null?g().then(c):Promise.resolve(c(()=>null));return d.loadableGenerated&&(d={...d,...d.loadableGenerated},delete d.loadableGenerated),typeof d.ssr=="boolean"&&!d.ssr?(delete d.webpack,delete d.modules,l(m,d)):m({...d,loader:y})}(typeof t.default=="function"||typeof t.default=="object"&&t.default!==null)&&typeof t.default.__esModule>"u"&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)})(Qo,Qo.exports);var Fg=Qo.exports,Bg=Fg;const Rd=Mr(Bg),wr={"modal-modifier":"_modal-modifier_394qw_1","menu--navigation-bar":"_menu--navigation-bar_394qw_15","menu--root":"_menu--root_394qw_25"},Ad=({children:e})=>{const{menuIsOpen:t,setMenuIsOpen:n}=bs(),{CONSTANTS:o}=we();return r.jsxs(p.Modal.RootWithoutPortal,{className:wr["modal-modifier"],isOpen:t,setIsOpen:n,variant:"sideRight",style:{bottom:"unset",overflowY:"hidden",position:"fixed",top:0,zIndex:o.header.Z_INDEX_WAR.menu_mobile},children:[r.jsx(Ed,{}),r.jsx(p.Modal.Body,{className:wr["menu--root"],children:e})]})};Ad.displayName="Menu.MenuRoot";const qg=Rd(()=>Promise.resolve(Ad),{ssr:!1}),Nd=({children:e,last:t=!1,...n})=>r.jsxs(r.Fragment,{children:[r.jsx(p.Button,{...n,"data-close":!0,size:"small",variant:"tertiary",children:e}),!t&&r.jsx(p.Utils.Divider,{direction:"vertical",size:"small",className:wr.divider})]});Nd.displayName="Menu.NavigationBarItem";const Id=()=>{const{setUserMenuIsOpen:e}=bs(),{handleSelectContent:t}=le(),{CONSTANTS:n}=we(),{router:o}=_e(),s=[{iconNameStart:n.header.ICONS.person,onClick:()=>{e(!0),t({content:"menu:user_menu"})},text:n.header.MENU_INFO.login.button_text},{iconNameStart:n.header.MENU_INFO.bag.button_icon,onClick:()=>{t({content:"menu:wishlist"}),o.push("/favoritos")},text:n.header.MENU_INFO.bag.button_text},{last:!0,iconNameStart:n.header.MENU_INFO.store.button_icon,onClick:()=>{t({content:"menu:store"}),o.push("/institucional/lojas")},text:n.header.MENU_INFO.store.button_text}];return r.jsx(p.Card,{id:"menu-navigationbar",shadow:!0,className:wr["menu--navigation-bar"],style:{zIndex:n.header.Z_INDEX_WAR.menu_mobile_navigation_bar},children:Array.isArray(s)&&s.map((a,i)=>x.createElement(Nd,{...a,key:i},a.text))})};Id.displayName="Menu.NavigationBar";const wn={Body:wd,NavigationBar:Id,Root:qg},Td=({storeConfig:e,SearchModal:t})=>{const n=x.useRef(null),{CONSTANTS:o}=we(),{MENU_NAVIGATION_BAR_ALLOWED:s,ICONS:a}=o.header,{handleSelectContent:i}=le(),{setValue:c}=hs(),{setValue:l}=tl(),{setValue:u}=ys(),f=gs(),h=el(),m=nl();return r.jsxs(r.Fragment,{children:[r.jsxs(p.Header.Wrapper,{children:[r.jsx(p.Header.Logo,{style:{width:"100%"},children:r.jsx(De,{href:"/",children:r.jsx(p.Icon,{name:a.logo,size:"x-large",onClick:()=>{i({content:"header:logo"})}})})}),r.jsxs(p.Header.Support,{children:[r.jsx(p.Header.SupportItem,{onClick:()=>{c(!0),i({content:"header:search"})},children:r.jsx(p.Icon,{name:a.search,size:"medium"})}),r.jsx(zs,{}),r.jsxs(p.Header.SupportItem,{onClick:()=>l(!0),children:[r.jsx("span",{ref:n}),r.jsx(p.Icon,{name:a.menu,size:"medium"})]})]})]}),r.jsx(t,{setModalIsOpen:c,isOpen:m,recommendations:!1,trends:!0}),r.jsx(gl,{menuIsOpen:h,setMenuIsOpen:l,userMenuIsOpen:h,setUserMenuIsOpen:u,children:r.jsx(Fr,{storeConfig:e,isOpen:f,setIsOpen:u,target:n==null?void 0:n.current,children:r.jsxs(wn.Root,{children:[r.jsx(wn.Body,{}),s?r.jsx(wn.NavigationBar,{}):r.jsx(r.Fragment,{})]})})})]})};Td.displayName="Header.HeaderMobileWrapper";const Hg=x.createContext({}),Ug=({children:e})=>{const{sendDataLayerEvent:t}=le(),{cartStore:n,isOpen:o}=Re();x.useEffect(()=>{o&&t({functionKey:"viewCartEvent",data:{commonData:{cartStore:n}}})},[o]),x.useEffect(()=>{var a,i,c;if(n.id&&!((i=(a=n.marketingData)==null?void 0:a.marketingTags)!=null&&i.includes("faststore"))){const{id:l}=n;mt.post("/api/checkout/order-form/attachments/marketing-data",{orderFormId:l,marketingData:{...n==null?void 0:n.marketingData,marketingTags:Hc(((c=n.marketingData)==null?void 0:c.marketingTags)??[])}}).catch(u=>{console.error(u)})}},[n]);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 r.jsx(Hg.Provider,{value:{handleUpdateItemQuantityEvent:s},children:e})},Wg="_fadeInOut_ottz1_1",Gg="_fadeOut_ottz1_1",de={"mc--cashback":"_mc--cashback_ottz1_1","mc--cashback--positive":"_mc--cashback--positive_ottz1_21","mc--cashback--alert":"_mc--cashback--alert_ottz1_24","mc--container--actions":"_mc--container--actions_ottz1_28","mc--container--actions--secondary":"_mc--container--actions--secondary_ottz1_36","mc--container--actions--toggle-size-modifier":"_mc--container--actions--toggle-size-modifier_ottz1_54","mc--footer":"_mc--footer_ottz1_58","mc--footer--actions":"_mc--footer--actions_ottz1_67","mc--footer--actions-button":"_mc--footer--actions-button_ottz1_73","mc--footer--total":"_mc--footer--total_ottz1_89","mc--footer--total--info":"_mc--footer--total--info_ottz1_94","mc--footer--total--info--content":"_mc--footer--total--info--content_ottz1_99","mc--field":"_mc--field_ottz1_143","mc--body":"_mc--body_ottz1_183","mc--body--products":"_mc--body--products_ottz1_190","mc--body--empty--feedback":"_mc--body--empty--feedback_ottz1_198","mc--body--empty--text":"_mc--body--empty--text_ottz1_203","mc--header":"_mc--header_ottz1_217","mc--header--subtitle":"_mc--header--subtitle_ottz1_243","mc--notify":"_mc--notify_ottz1_284","mc--notify--content":"_mc--notify--content_ottz1_299","mc--notify--item":"_mc--notify--item_ottz1_312",fadeInOut:Wg,fadeOut:Gg,"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"},Od=({item:{id:e,message:t,callback:n},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 r.jsx("div",{className:de["mc--notify--item"],ref:a,onAnimationEnd:()=>c(e),children:r.jsxs(p.SnackBar.Structure,{size:"medium",children:[r.jsx(p.SnackBar.Content,{title:t}),r.jsxs(p.SnackBar.Support,{children:[typeof n=="function"&&r.jsx(p.Button,{onClick:()=>{n(),i()},size:"small",variant:"tertiary",children:"Desfazer"}),r.jsx(p.Button,{iconNameStart:s.close,iconSize:"small",onClick:()=>i(),variant:"tertiary"})]})]})},e)};Od.displayName="MiniCart.Notify.Item";const kd=({ICONS:e})=>{const t=ps(),{removeNotification:n}=ms(),o=t.length?[...t].sort((s,a)=>a.id-s.id):[];return r.jsx("div",{className:de["mc--notify"],children:r.jsx("div",{className:de["mc--notify--content"],children:Array.isArray(o)&&o.map(s=>r.jsx(Od,{item:s,removeNotification:n,ICONS:e},s.id))})})};kd.displayName="MiniCart.Notifications";const Vg=({handleSendEvent:e,onHandleRemove:t,product:n,MINICART_CONFIG:o,...s})=>{const a=Tt(),{toggleProduct:i}=vt(),{itemOffered:{isVariationOf:{productGroupID:c}},quantity:l}=n;return r.jsx(p.Button,{...s,adornment:{end:r.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})},Md=({handleSendEvent:e,product:t,ICONS:n,MINICART_CONFIG:o,...s})=>{const{addToCart:a,removeToCart:i}=Re(),{bundleItems:c=[],id:l,uniqueId:u,seller:f,offerings:h,quantity:m}=t,d=(g,y,_)=>{i(l,g.title,()=>{typeof _=="function"&&_(),a({id:l,quantity:y,seller:f},{id:l,texture:g.texture},!0)})};return r.jsxs(r.Fragment,{children:[r.jsxs("div",{className:de["mc--card--actions--add-remove"],children:[o.has_wishlist_button&&r.jsx(Vg,{...s,product:t,handleSendEvent:e,onHandleRemove:d,ICONS:n,MINICART_CONFIG:o}),r.jsx(p.Button,{...s,adornment:{end:r.jsx(p.Icon,{name:n.delete,size:"small"})},variant:"secondary",state:"danger",onClick:()=>{d({texture:"mini-cart",title:`${o.messages.remove}`},m),e("remove_from_cart","skuEvents")},children:o.messages.remove_button})]}),o.has_gift_option&&r.jsx(Ct.Gift,{uniqueId:u,bundleItems:c,offerings:h,ICONS:n,MINICART_CONFIG:o})]})};Md.displayName="MiniCart.Card.Actions";const Ld=({bundleItems:e,offerings:t,uniqueId:n,ICONS:o,MINICART_CONFIG:s})=>{const[a,i]=x.useState(!1),{toggleGiftItemCart:c}=Re(),l=()=>{if(t instanceof Object&&Array.isArray(t)){const[h]=t;if(h){i(!0);const m=e.some(d=>d.id===h.id);c(n,String(h.id),m).then(()=>i(!1))}}},u=t[0],f=e.find(h=>h.id===u.id);return u&&"id"in u?r.jsx("div",{className:de["mc--card--actions--gift"],children:r.jsx(p.Checkbox,{adornment:r.jsx(p.Icon,{name:o.check}),checked:!!f,disabled:a,label:s.messages.giftPackage,onChange:l})}):null};Ld.displayName="MiniCart.Card.Gift";const Dd=({itemOffered:e})=>{const t=U.updatedResizedImg(e==null?void 0:e.image[0].url,{width:200,height:300});return r.jsx(De,{href:`${e==null?void 0:e.slug}`,className:de["mc--card--product-link"],children:r.jsx(Ie.Image,{alt:(e==null?void 0:e.image[0].alternateName)||"Produto",src:t||"",width:108,height:164})})};Dd.displayName="MiniCart.Card.Media";const $d=({name:e,skuName:t,tagName:n,className:o})=>r.jsxs(r.Fragment,{children:[n&&r.jsx(p.Tag,{variant:"quaternary",title:n,style:{textTransform:"uppercase"},children:n}),r.jsx("p",{className:p.helpers.classNameConcat(de["mc--card--name"],o),children:U.getProductNameWithoutSku(e??"",t??"")})]});$d.displayName="MiniCart.Card.Name";const zd=({total:e,totalList:t})=>r.jsx(p.ProductInfo.Root,{children:r.jsx(p.TextStructure.Root,{children:r.jsx(p.TextStructure.DivWrapper,{className:de["mc--card--price"],children:r.jsx(p.ProductInfo.Wrapper,{className:de["mc--card--price--details"],size:"small",layout:"horizontal",children:t&&e!==t?r.jsxs(r.Fragment,{children:[r.jsx(p.ProductInfo.Price,{label:"originalPrice",value:U.formatPriceToCurrency(t),size:"small"}),r.jsx(p.ProductInfo.Price,{label:"discountPrice",value:U.formatPriceToCurrency(e),size:"small"})]}):r.jsx(p.ProductInfo.Price,{label:"defaultPrice",value:U.formatPriceToCurrency(e),size:"small"})})})})});zd.displayName="MiniCart.ProductPrice";const Fd=({product:e,TEXTURE_IMAGE:t,TOGGLE_STYLE_MODIFIER:n})=>{var u;const[o,s]=x.useState(""),a=x.useRef(null),{cartStore:{options:i}}=Re(),c=e.itemOffered.isVariationOf.productGroupID,l=x.useCallback(()=>{var h;const f=(h=i==null?void 0:i.find(m=>m.id===c))==null?void 0:h.texture;if(f){s(f);return}fetch("/api/catalog/product/info",{method:"POST",priority:"low",body:JSON.stringify({ids:[c]})}).then(m=>m.json()).then(m=>{const d=m.data[0].items.find(g=>g.itemId===e.id);if(d){const g=d.images.find(y=>t.includes(y.imageLabel));if(g!=null&&g.imageUrl){s(g.imageUrl);return}s(d.images[0].imageUrl)}}).catch(m=>{console.error(m)})},[i,c,e.id]);return x.useEffect(()=>{if(!a.current)return;new IntersectionObserver(l).observe(a.current)},[l]),r.jsx("div",{ref:a,children:r.jsx(p.ToggleStyle.Wrapper,{size:"small",style:n,children:r.jsx(p.ToggleStyle.Texture,{children:o?r.jsx(Ie.Image,{alt:((u=e.itemOffered)==null?void 0:u.image[0].alternateName)??"Produto",src:o,width:164,height:164,style:n}):r.jsx(lu,{})})})})};Fd.displayName="MiniCart.Card.Style";const Bd=({product:e,NAME_SPLIT_SYMBOL:t,TEXTURE_IMAGE:n,TOGGLE_STYLE_MODIFIER:o})=>{const{size:s}=U.getColorAndSizeFromSkuName(e.itemOffered.skuName??"",t);return r.jsxs(p.Utils.Row,{alignItems:"center",children:[r.jsx(Fd,{product:e,TEXTURE_IMAGE:n,TOGGLE_STYLE_MODIFIER:o}),r.jsx(p.Utils.Divider,{direction:"vertical",size:"small",style:{height:24}}),s&&r.jsx(p.ToggleSize.Wrapper,{size:"small",variation:"fill",className:de["mc-container-actions--toggle-size-modifier"],children:r.jsx(p.ToggleSize.Text,{children:s})})]})};Bd.displayName="MiniCart.Card.Sku";const Ct={Actions:Md,Gift:Ld,Media:Dd,Name:$d,Price:zd,Sku:Bd},Kg=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}},qd=({available:e=!0,index:t,product:n,ICONS:o,MINICART_CONFIG:s,NAME_SPLIT_SYMBOL:a,TEXTURE_IMAGE:i,TOGGLE_STYLE_MODIFIER:c})=>{var h,m;const{sendDataLayerEvent:l}=le(),u=Kg(n),f=(d,g)=>{const y={commonData:{...n,...u},customData:{index:t},event:d};if(g==="skuEvents"){const _={...n,...u};y.supportData={selectedSkus:[_]},y.commonData.products=[_]}l({functionKey:g,data:y})};return r.jsxs("div",{className:p.helpers.classNameConcat(de["mc--card"],e?"":de["mc--card--unavailable"]),children:[r.jsx(Ct.Media,{itemOffered:n.itemOffered}),r.jsxs("div",{className:de["mc--card--content-info"],children:[r.jsx(Ct.Name,{name:((h=n.itemOffered)==null?void 0:h.name)??"",skuName:(m=n.itemOffered)==null?void 0:m.skuName}),r.jsxs("div",{className:de["mc--card--details"],children:[r.jsx("div",{className:de["mc--card--actions"],children:e?r.jsx(Ct.Price,{total:u.price,totalList:u.listPrice}):r.jsx(p.Tag,{variant:"secondary",size:"small",children:"Indisponível"})}),r.jsxs("div",{className:de["mc--card--actions--secondary"],children:[e&&r.jsx(Ct.Sku,{product:n,NAME_SPLIT_SYMBOL:a,TEXTURE_IMAGE:i,TOGGLE_STYLE_MODIFIER:c}),r.jsx(Ct.Actions,{handleSendEvent:f,product:n,size:"small",variant:"tertiary",ICONS:o,MINICART_CONFIG:s})]})]})]})]})};qd.displayName="MiniCart.Card";const Hd=({type:e="positive",ICONS:t,MESSAGE_CASHBACK:n})=>{var a;const{toExpire:o}=Ot(),s=((a=o==null?void 0:o.cashback)==null?void 0:a.reduce((i,c)=>i+c.remaining_value,0))??0;return s>0?r.jsxs("div",{className:p.helpers.classNameConcat(de["mc--cashback"],de[`mc--cashback--${e}`]),children:[r.jsx(p.Icon,{name:t.alert_circle,size:"medium"}),r.jsxs("p",{children:[r.jsx("span",{children:U.formatPriceToCurrency(s)})," ",n.title]})]}):null};Hd.displayName="MiniCart.Cashback";const Ud=({type:e,ICONS:t,MINICART_CONFIG:n})=>{const{addCouponSeller:o,removeCoupon:s,removeSellerCode:a,cartStore:{marketingData:i,openTextField:c}}=Re(),[l,u]=x.useState(!1),[f,h]=x.useState(!1),m=x.useCallback(()=>{let _="";return e==="coupon"?_=(i==null?void 0:i.coupon)??"":_=String((c==null?void 0:c.value)??""),_.toUpperCase()??""},[i,c,e]),[d,g]=x.useState(!!m()),y=async _=>{h(!0),!!m()&&(e==="coupon"?await s():await a(),g(!1),u(!1)),await o(_,e).then(S=>{if(!S.statusOk&&_||S.code!==200){_?(u(!0),g(!1)):u(!1);return}g(!0),u(!1)}).catch(()=>u(!0)).finally(()=>h(!1))};return r.jsx(Me.Field,{hasError:l,hasSuccess:d,isLoading:f,onHandler:y,type:e,title:e==="coupon"?`${n.messages.descount_cupom_placeholder}`:`${n.messages.sellers_code_placeholder}`,value:m(),MINICART_CONFIG:n,ICONS:t})};Ud.displayName="MiniCart.CouponSeller";const Wd=({ICONS:e,MINICART_CONFIG:t,PLP_NOT_RESULT:n})=>{const{router:o}=_e(),s=()=>{o.push(n.link)};return r.jsxs(p.Utils.Column,{alignContent:"center",alignItems:"center",gap:"24px",className:de["mc--body--empty--feedback"],children:[r.jsx(p.TextStructure.Root,{children:r.jsx(p.TextStructure.DivWrapper,{children:r.jsxs("p",{className:`typography-style-body-xs ${de["mc--body--empty--text"]}`,children:[t.messages.empty_card," "]})})}),r.jsx(p.Button,{variant:"tertiary",size:"large",onClick:()=>s(),"data-close":!0,adornment:{end:r.jsx(p.Icon,{name:e.arrow_right,size:"medium"})},children:t.messages.empty_bag})]})};Wd.displayName="MiniCart.Feedback";const Xg=e=>{const t=e.replace(/\D/g,"");return t.length>5?`${t.slice(0,5)}-${t.slice(5,8)}`:t},Gd=({feedback:e,hasError:t,onHandler:n,hasSuccess:o,type:s,title:a,value:i,ICONS:c})=>{const[l,u]=x.useState(i);x.useEffect(()=>{t||u(i)},[i,t]);const f=()=>t?r.jsx(p.Icon,{name:c.delete_circle}):String(i).length&&o?r.jsx(p.Icon,{name:c.check_circle}):null,h=()=>{if(s==="seller"){const y=String(i).includes(" - ")?String(i).split(" - ")[0]:l;u(y)}},m=()=>{if(s==="seller"){const y=String(i).includes(" - ")?i:l;u(y)}},d=y=>{const _=y.currentTarget.value;if(_===""&&typeof n=="function"||o&&String(i).length>0&&_!==String(i)||t&&_!==String(i)){u(""),n("");return}if(s==="cep"){const S=Xg(_);u(S)}else u(_)},g=y=>{if(y.key.toLocaleLowerCase()==="enter"&&typeof n=="function"){const _=y.currentTarget.value;n(_)}};return r.jsx(p.TextField.Input,{adornment:{end:f()},mode:"over-label",label:a,feedback:e,value:l,type:"text",onFocus:h,onBlur:m,onChange:d,onKeyDown:g})};Gd.displayName="MiniCart.Field.Input";const Vd=({title:e,ICONS:t,MINICART_CONFIG:n,...o})=>{const s=x.useRef(null),{hasSuccess:a,hasError:i,isLoading:c,onHandler:l,type:u,value:f}=o,h=()=>i?"error":String(f).length&&a?"success":"none",m=x.useCallback(()=>{if(s.current){const y=s.current.querySelector("input");y&&typeof l=="function"&&(f!==""||i?(l(""),y.value=""):l((y==null?void 0:y.value)??""))}},[l,f,i]),d=h();return r.jsx("div",{ref:s,children:r.jsx(p.TextField.Structure,{className:de["mc--field"],input:r.jsx(Gd,{...o,feedback:d,title:e,ICONS:t}),right:r.jsx(p.Button,{"data-has-success":!a,size:"medium",title:String(f).length&&a||i?"Remover":"Aplicar",onClick:()=>m(),disabled:c,children:String(f).length&&a||i?r.jsx(p.Icon,{name:"close",size:"small"}):`${n.messages.promo_code_button}`}),supportText:u==="cep"&&d==="success"?r.jsx(p.TextField.SupportText,{text:"Mais informações de frete na etapa a seguir",feedback:"success",title:"support"}):null})})};Vd.displayName="MiniCart.Field";const Kd=({children:e,ICONS:t,MINICART_CONFIG:n,NAME_SPLIT_SYMBOL:o,PLP_NOT_RESULT:s,TEXTURE_IMAGE:a,TOGGLE_STYLE_MODIFIER:i})=>{const{cartStore:{items:c,messages:l}}=Re();return r.jsxs(p.Modal.Body,{className:de["mc--body"],children:[e,r.jsx("div",{className:de["mc--body--products"],children:Array.isArray(c)&&c.length?c.map((u,f)=>{const h=l.find(m=>{var d;return m.code==="withoutStock"&&((d=m.fields)==null?void 0:d.ean)===u.ean})!==void 0;return r.jsx(Me.Card,{available:!u.availability.includes("outStock")||!h,index:f,product:u,ICONS:t,MINICART_CONFIG:n,NAME_SPLIT_SYMBOL:o,TEXTURE_IMAGE:a,TOGGLE_STYLE_MODIFIER:i},`${u.id}-${u.itemOffered.sku}-${f}`)}):r.jsx(Me.Feedback,{ICONS:t,MINICART_CONFIG:n,PLP_NOT_RESULT:s})})]})};Kd.displayName="MiniCart.Body";const Xd=({children:e,storeConfig:t,MINICART_CONFIG:n})=>{const{cartStore:o}=Re();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 r.jsxs(p.Modal.Footer,{className:de["mc--footer"],children:[e,r.jsx("div",{className:de["mc--footer--actions"],children:r.jsx(p.Button,{variant:"primary",size:"large","data-close":!0,className:de["mc--footer--actions-button"],onClick:s,children:n.messages.checkout_button})})]})};Xd.displayName="MiniCart.Modal.Footer";const Yd=({children:e,className:t,ICONS:n,MINICART_CONFIG:o})=>r.jsxs(p.Accordion.Wrapper,{className:de["mc--discount"],children:[r.jsx(p.Accordion.Header,{id:"frete",title:"Frete",closeIndicator:r.jsx(p.Icon,{name:n.arrow_up,size:"medium"}),openIndicator:r.jsx(p.Icon,{name:n.arrow_down,size:"medium"}),className:p.helpers.classNameConcat(de["mc--discount--header"],t),startOpen:o.promotion_input_starts_open,children:r.jsx(p.TextStructure.Root,{children:r.jsxs(p.TextStructure.DivWrapper,{children:[r.jsxs("h3",{className:"typography-style-body-sm",children:[o.messages.promo_code_title," "]}),r.jsx("p",{className:"typography-style-body-xs",children:o.messages.promo_code_subtitle})]})})}),r.jsx(p.Accordion.Body,{className:de["mc--discount--body"],children:e}),r.jsx(p.Utils.Divider,{direction:"horizontal",size:"small",style:{height:16}})]});Yd.displayName="MiniCart.Discount";const Qd=({discount:e,shipping:t,total:n})=>{var c;const{tags:o}=nt(),s=n-Math.abs(e??0)+(t??0),a=t===0?"Frete Grátis":U.formatPriceToCurrency((t??0)/100),i=[{title:"Subtotal",value:U.formatPriceToCurrency(n/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 r.jsx("div",{className:de["mc--footer--total"],children:Array.isArray(i)&&i.map((l,u)=>r.jsxs("div",{className:de["mc--footer--total--info"],"data-discount":l.title==="Desconto",children:[r.jsx("p",{children:l.title}),r.jsxs("div",{className:de["mc--footer--total--info--content"],children:[l.message&&r.jsx(p.Tag,{variant:"primary",title:l.message,children:l.message}),r.jsx(p.ProductInfo.Price,{className:de["mc--footer--total--info"],label:l.title,value:l.value})]})]},u))})};Qd.displayName="MiniCart.Modal.Footer.Resume.Items";const Zd=({totalizers:e})=>{var s,a,i;const t=((s=e.find(c=>c.id==="Items"))==null?void 0:s.value)??0,n=(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 r.jsx(Qd,{discount:n??0,total:t,shipping:o})};Zd.displayName="MiniCart.Modal.Footer.Totals";const Jd=({ICONS:e,MINICART_CONFIG:t})=>{const{isMobile:n}=ce(),{cartStore:{items:o}}=Re(),s=o.reduce((a,i)=>a+(i.quantity??0),0);return r.jsx(p.Modal.Header,{navigation:"top",className:de["mc--header"],children:r.jsxs(p.Modal.Controls,{navigation:"top",isMobile:!!n,children:[r.jsx(p.Modal.Title,{navigation:"top",title:t.messages.title}),r.jsx("span",{className:de["mc--header--subtitle"],children:s!==1?`[${s}] Produtos`:`[${s}] Produto`}),r.jsx(p.Button,{"data-close":!0,iconNameStart:e.close,size:"small",variant:"tertiary"})]})})};Jd.displayName="MiniCart.Modal.Header";const ef=({ICONS:e,MINICART_CONFIG:t})=>{const{cartStore:{shippingData:n},shipping:o,removeCEP:s}=Re(),{sendDataLayerEvent:a}=le(),[i,c]=x.useState(!1),[l,u]=x.useState(!1),f=x.useCallback(()=>{var b;return((b=n==null?void 0:n.address)==null?void 0:b.postalCode)??""},[n]),[h,m]=x.useState(!!f()),d=()=>{m(!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 I;const P=(I=j==null?void 0:j.slas)==null?void 0:I.find(w=>(w==null?void 0:w.id)===(j==null?void 0:j.selectedSla));if(!P)return v;const E=parseInt(String((P==null?void 0:P.shippingEstimate)??"").replace("bd","")),C=Number((((P==null?void 0:P.price)??0)/100).toFixed(2));if(v.shipping_tier===void 0)return v.shipping_tier=j==null?void 0:j.selectedSla,v.delivery_time=E.toString(),v.shipping=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"})},y=async b=>{const S=b.replace(/\D/g,"");if(S.length!==8)return!1;try{return!(await mt.get(`https://viacep.com.br/ws/${S}/json/`)).data.erro}catch{return!1}},_=async b=>{if(u(!0),!!f()||!(b!=null&&b.trim())){await s(),d(),u(!1);return}if(!await y(b)){c(!0),m(!1),u(!1);return}try{const P=await o(b);if(c(!1),P){m(!0);const E=g(P);E&&a({functionKey:"readyEvents",data:{event:"search_zipcode",readyData:E}})}}catch{c(!0)}finally{u(!1)}};return r.jsx(Me.Field,{hasSuccess:h,hasError:i,isLoading:l,onHandler:_,title:`${t.messages.shipping_calculation_placeholder}`,type:"cep",value:f(),ICONS:e,MINICART_CONFIG:t})};ef.displayName="MiniCart.Shipping";const tf=()=>{var n;const{tags:e}=nt(),t=(n=e==null?void 0:e.flagCart)==null?void 0:n.flagHeader;return t!=null&&t.value?r.jsx(p.Tag,{variant:"tertiary",title:t==null?void 0:t.value,size:"small",adornment:{start:t!=null&&t.enableIcon&&(t!=null&&t.icon)?r.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};tf.displayName="MiniCart.TagMessage";const Me={Body:Kd,Card:qd,Cashback:Hd,CouponSeller:Ud,Discount:Yd,Field:Vd,Feedback:Wd,Shipping:ef,Footer:Xd,Header:Jd,TagMessage:tf,Totals:Zd},Yg=({ICONS:e,MINICART_CONFIG:t,NAME_SPLIT_SYMBOL:n,PLP_NOT_RESULT:o,TEXTURE_IMAGE:s,TOGGLE_STYLE_MODIFIER:a,Z_INDEX_WAR:i,storeConfig:c,minicartStyleModifiers:l})=>{const{isOpen:u,setIsOpen:f,cartStore:h}=Re(),{isMobile:m}=ce();return r.jsxs(p.Modal.Root,{className:p.helpers.classNameConcat(de["minicart--modal-modifier"],l),isMobile:!0,isOpen:u,setIsOpen:f,style:{zIndex:i.modal},variant:m?"sideBottom":"sideRight",children:[r.jsx(Me.Header,{ICONS:e,MINICART_CONFIG:t}),r.jsx(Me.Body,{ICONS:e,MINICART_CONFIG:t,NAME_SPLIT_SYMBOL:n,PLP_NOT_RESULT:o,TEXTURE_IMAGE:s,TOGGLE_STYLE_MODIFIER:a,children:r.jsx(Me.TagMessage,{})}),r.jsxs(Me.Footer,{MINICART_CONFIG:t,storeConfig:c,children:[r.jsxs(Me.Discount,{ICONS:e,MINICART_CONFIG:t,children:[r.jsx(Me.CouponSeller,{type:"seller",ICONS:e,MINICART_CONFIG:t}),r.jsx(Me.CouponSeller,{type:"coupon",ICONS:e,MINICART_CONFIG:t}),r.jsx(Me.Shipping,{ICONS:e,MINICART_CONFIG:t})]}),r.jsx(Me.Totals,{totalizers:h.totalizers})]}),r.jsx(kd,{ICONS:e})]})},rf=({tipBar:e,minicartStyleModifiers:t,menuV2:n,storeConfig:o,SearchModal:s})=>{const{structureRef:a,rootRef:i,CONSTANTS:c}=we(),{header:{HEADER_CONFIGS:l,Z_INDEX_WAR:u},minicart:f}=c;return r.jsx(p.Header.Structure,{innerRef:a,adornment:{start:e},style:{position:"sticky",top:0,zIndex:u.header},className:$s["header-animation"],children:r.jsxs(p.Header.Root,{innerRef:i,style:{zIndex:u.header},variant:l.default_variant,interactiveVariant:l.interactive_variant,children:[n??r.jsx(r.Fragment,{children:r.jsxs(Mg,{children:[r.jsx("div",{className:U.responsive["responsive-mobile-block"],style:{height:"100%",width:"100%",zIndex:u.header_mobile},children:r.jsx(Td,{storeConfig:o,SearchModal:s})}),r.jsx("div",{className:U.responsive["responsive-desktop-block"],style:{height:"100%",width:"100%",zIndex:u.header_desktop},children:r.jsx(_d,{storeConfig:o})})]})}),r.jsx(Ug,{children:r.jsx(Yg,{...f,minicartStyleModifiers:t})}),r.jsx(Os,{title:"Produto adicionado à sua sacola!",CONSTANTS:c.addToCart})]})})};rf.displayName="Header";const Qg="_shippingFreight_6z8rf_6",Zg="_shippingFreight__postalCodeGrid_6z8rf_10",Jg="_shippingFreight__grid_6z8rf_14",ey="_shippingFreight__grid__title_6z8rf_18",ty="_shippingFreight__grid__remember_6z8rf_29",ry="_postalCodeContainer_6z8rf_44",ny="_deliveryStatusBar__tag_6z8rf_49",oy="_deliveryStatusBarError__tag_6z8rf_66",sy="_deliveryInfo_6z8rf_74",ay="_deliveryInfo__content_6z8rf_78",iy="_deliveryInfo__text_6z8rf_84",cy="_deliveryInfo__title_6z8rf_89",ly="_deliveryInfo__subtitle_6z8rf_99",uy="_deliveryInfo__tooltipIcon_6z8rf_109",dy="_deliveryInfo__tooltip_6z8rf_109",fy="_freightGrid_6z8rf_148",py="_freightContainer_6z8rf_155",my="_freightOption__content_6z8rf_160",hy="_freightOption__value_6z8rf_166",gy="_freightOption__title_6z8rf_177",yy="_freightOption__title_item_6z8rf_181",_y="_freightOption__paragraph_6z8rf_192",ge={shippingFreight:Qg,shippingFreight__postalCodeGrid:Zg,shippingFreight__grid:Jg,shippingFreight__grid__title:ey,shippingFreight__grid__remember:ty,postalCodeContainer:ry,deliveryStatusBar__tag:ny,deliveryStatusBarError__tag:oy,deliveryInfo:sy,deliveryInfo__content:ay,deliveryInfo__text:iy,deliveryInfo__title:cy,deliveryInfo__subtitle:ly,deliveryInfo__tooltipIcon:uy,deliveryInfo__tooltip:dy,freightGrid:fy,freightContainer:py,freightOption__content:my,freightOption__value:hy,freightOption__title:gy,freightOption__title_item:yy,freightOption__paragraph:_y,"input-modifier":"_input-modifier_6z8rf_207","freight--tooltip":"_freight--tooltip_6z8rf_227"},vy=({icon:e,title:t,subtitle:n,packageCount:o,packageUnit:s="",labelDescription:a,freightConfig:i,toolTipZIndex:c})=>{const[l,u]=x.useState(!1),f=x.useRef(null),h=()=>u(m=>!m);return r.jsxs("div",{className:ge.deliveryInfo,ref:f,children:[r.jsx(p.Tooltip.Root,{arrow:"bottom",component:r.jsx("div",{children:r.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:f.current}),r.jsxs("div",{className:ge.deliveryInfo__content,children:[r.jsx("div",{className:ge.deliveryInfo__icon,children:r.jsx(p.Icon,{name:e,size:"medium"})}),r.jsxs("div",{className:ge.deliveryInfo__text,children:[r.jsxs("span",{className:ge.deliveryInfo__title,children:[t," ",o," ",s]}),n&&r.jsx("span",{className:ge.deliveryInfo__subtitle,children:n})]}),a&&r.jsxs("div",{className:ge.deliveryInfo__tooltipIcon,onMouseEnter:h,onMouseLeave:h,"aria-label":"Mostrar descrição",children:[r.jsx("span",{children:r.jsx(p.Icon,{name:i.icons.feedback_help,size:"small"})}),l&&r.jsx("div",{className:ge.deliveryInfo__tooltip,children:a})]})]})]})},xy=({value:e,title:t,paragraph:n})=>r.jsx("div",{className:ge.freightOption,children:r.jsxs("div",{className:ge.freightOption__content,children:[r.jsx("span",{className:ge.freightOption__value,children:e}),r.jsx("span",{className:ge.freightOption__title,children:r.jsx(p.TextStructure.Root,{children:r.jsxs(p.TextStructure.DivWrapper,{className:ge.footer__item,children:[r.jsx("span",{className:ge.freightOption__title_item,children:t}),n&&r.jsx("span",{className:ge.freightOption__paragraph,children:n})]})})})]})}),by=({children:e})=>r.jsx("div",{className:ge.freightContainer,children:e}),jy=({children:e})=>r.jsx("div",{className:ge.freightGrid,children:e}),Cy=({children:e})=>r.jsx("div",{className:ge.postalCodeContainer,children:e}),Wa=({message:e,seller:t="",size:n="small",setError:o})=>r.jsx("div",{className:o?ge.deliveryStatusBarError:ge.deliveryStatusBar,children:r.jsxs(p.Tag,{title:e,className:o?ge.deliveryStatusBarError__tag:ge.deliveryStatusBar__tag,size:n,children:[e," ",!o&&t]})}),Sy=e=>{const t=parseInt(e,10);return t===1?`${t} dia`:`${t} dias`},Py=e=>{var n,o,s;const t=[];return(s=(o=(n=e==null?void 0:e.logisticsInfo)==null?void 0:n[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},wy=({component:e,parent:t,top:n,left:o,target:s,contentRef:a,freightConfig:i,toolTipZIndex:c=999,...l})=>{const{isMobile:u}=ce();return r.jsx(r.Fragment,{children:u?r.jsx(p.Tooltip.Root,{arrow:"bottom",component:r.jsxs("div",{...l,ref:a,children:[e,r.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}):r.jsx(p.Tooltip.Root,{arrow:"bottom",component:r.jsxs("div",{...l,ref:a,children:[e,r.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})})},Ey=({onUpdateFreightItems:e,sellerId:t,size:n,skuId:o,quantity:s,setError:a,setIsButtonClicked:i,component:c,freightConfig:l,toolTipZIndex:u})=>{var N,T,z,O;const f=Rt(),h=Rt(W=>W.shipping),[m,d]=x.useState(),[g,y]=x.useState(!1),[_,b]=x.useState(!1),[S,v]=x.useState(!1),j=(T=(N=f.shippingData)==null?void 0:N.address)==null?void 0:T.postalCode,P=!(m!=null&&m.length)&&j?j:m,E=x.useRef(null),C=async W=>{const F=W.target.value.replace(/\D/g,"").slice(0,8);F.length>5?d(F.replace(/^(\d{5})(\d{1,3})/,"$1-$2")):d(F)},R=async W=>{const q=W.target.value.replace(/\D/g,"");try{if((await mt.get(`https://viacep.com.br/ws/${q}/json/`)).data.erro){a&&a(l.messages.cep_not_found),i(!1),b(!0);return}a&&a(""),b(!1)}catch{console.log("Erro ao validar o CEP. Tente novamente mais tarde.")}},I=async()=>{y(!0);try{const W=await mt.post("/api/checkout/simulation",{items:[{id:o,quantity:s,seller:t}],country:"BRA",postalCode:P});e(Py(W.data))}catch(W){console.error("Erro ao atualizar o documento:",W)}finally{y(!1),h(P,"BRA")}},w=async()=>{if(!o){v(!0),setTimeout(()=>v(!1),1500);return}await R({target:{value:P}}),g||(I(),i(!0))};return r.jsxs("div",{ref:E,style:{position:"relative"},children:[!o&&S?r.jsx(wy,{component:c,isOpen:S,parent:E.current,toolTipZIndex:u,freightConfig:l}):r.jsx(r.Fragment,{}),r.jsx("div",{style:{position:"relative"},children:r.jsx(p.TextField.Structure,{title:"structure",style:{width:"100%"},input:r.jsx(p.TextField.Input,{defaultValue:(O=(z=f.shippingData)==null?void 0:z.address)==null?void 0:O.postalCode,label:l.messages.text_input_label,title:"textfield",value:m,sizeVariant:n,onMouseOver:()=>o?null:v(!0),onMouseOut:()=>o?null:v(!1),mode:"simple",onChange:C,onKeyDown:W=>{W.key==="Enter"&&w()},className:ge["input-modifier"],feedback:_?"error":"none"}),right:r.jsx(p.Button,{onClick:w,size:n,title:"button",children:g?r.jsx(p.Spinner,{size:"small",indicatorColor:"#ffffff"}):l.messages.text_input_btn})})})]})},Ry=({children:e,freightConfig:t})=>r.jsxs("div",{className:ge.shippingFreight,children:[r.jsxs("div",{className:ge.shippingFreight__grid,children:[r.jsx("span",{className:ge.shippingFreight__grid__title,children:t.messages.title}),r.jsx("span",{className:ge.shippingFreight__grid__remember,children:r.jsx(Ge,{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})})]}),r.jsx("div",{className:ge.shippingFreight__postalCodeGrid,children:e})]}),Ay=({children:e})=>r.jsx("div",{className:ge.freightContainer,children:e}),nf=({className:e,sellerId:t,skuId:n,quantity:o,size:s,seller:a,local:i,CONSTANTS_PROPS:c})=>{const{sendDataLayerEvent:l}=le(),[u,f]=x.useState(""),[h,m]=x.useState([]),[d,g]=x.useState(""),[y,_]=x.useState(!1),b=v=>f(v),S=v=>{m(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 r.jsxs(Ay,{className:e,children:[r.jsxs(Ry,{freightConfig:c.freightConfig,children:[r.jsx(Cy,{children:r.jsx(Ey,{onUpdateFreightItems:S,skuId:n,quantity:o,size:s,sellerId:t,local:i,setError:g,setIsButtonClicked:_,freightConfig:c.freightConfig,toolTipZIndex:c.toolTipZIndex})}),d?r.jsx(Wa,{size:s,message:d,setError:g}):h.length>0&&r.jsx(Wa,{size:s,message:c.freightConfig.messages.delivered_by,seller:a})]}),y&&!d?h.length>0&&r.jsxs(by,{children:[r.jsx(jy,{children:h.filter(({id:v})=>!v.includes("Retirada")).map(v=>r.jsx(xy,{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}${Sy(v.shippingEstimate)}`,radioValue:u,changeValue:b},v.id))}),c.deliveryInfoBoxesAllowed?r.jsx(vy,{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}):r.jsx(r.Fragment,{})]}):null]})},gt={"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"},Ny=({children:e,href:t,isLast:n,title:o,ICONS:s})=>r.jsx(p.BreadCrumb.Item,{adornment:{end:n&&r.jsx(p.Icon,{name:s.arrow_right})},children:n?r.jsx(Ge,{href:t??"/",size:"medium",title:o,disableUnderline:!0,children:e}):e}),of=()=>{var a;const{state:e}=ze(),{ICONS:t}=Le(),n=e!=null&&e.term&&e.term.length>0?`/${e.term}`:"",o=decodeURIComponent((a=e==null?void 0:e.base)!=null&&a.length?e.base:n??n).slice(1).split("/"),s=Ll(o);return r.jsx("div",{className:gt["pcd-navigation--breadcrumb"],children:r.jsx(p.BreadCrumb.DivWrapper,{children:r.jsx(p.BreadCrumb.List,{children:Array.isArray(s)&&s.map((i,c)=>{var l,u;return x.createElement(Ny,{...i,isLast:c!==s.length-1,key:i.href,title:(l=i.name)==null?void 0:l.replace(/-/g," "),ICONS:t},(u=i.name)==null?void 0:u.replace(/-/g," "))})})})})};of.displayName="PLPNavigation.BreadCrumb";const sf=({children:e,...t})=>r.jsxs("div",{...t,className:gt["pdc-navigation--content"],children:[r.jsx(dt.Filters,{}),e]});sf.displayName="PLPNavigation.Content";const Iy="_sort_35wro_1",Br={sort:Iy,"sort-list-wrapper":"_sort-list-wrapper_35wro_8","sort-list":"_sort-list_35wro_8","sort-button":"_sort-button_35wro_25"},Ty=({children:e,sortListOpen:t,btnAdornment:n,style:o,...s})=>r.jsx(p.Button,{...s,adornment:{end:t?n==null?void 0:n.listOpen:n==null?void 0:n.listClosed},size:"small",variant:"tertiary",style:{...o,textDecoration:"none"},className:Br["sort-button"],children:e}),Oy=e=>r.jsx(p.RadioButton.Radio,{...e}),ky=({children:e,className:t,name:n,...o})=>r.jsx(p.RadioButton.Group,{...o,name:n||"sort-group",className:p.helpers.classNameConcat(Br["sort-list"],t),children:e}),My=({children:e,className:t,shadow:n=!0,padding:o="small",height:s="fit-content",...a})=>r.jsx(p.Card,{...a,shadow:n,className:p.helpers.classNameConcat(Br["sort-list-wrapper"],t),padding:o,height:s,children:e}),af=x.forwardRef(({children:e,className:t,...n},o)=>r.jsx("div",{...n,ref:o,className:p.helpers.classNameConcat(Br.sort,t),children:e}));af.displayName="SortRoot";const qr=({handleSelectValue:e,sortListOpen:t,setSortListOpen:n,searchParams:o,ICONS:s,...a})=>{var m;const i=(m=o==null?void 0:o.get("sort"))==null?void 0:m.replace(":","_"),[c,l]=x.useState(i),{sendDataLayerEvent:u}=le();x.useEffect(()=>{l(i||void 0)},[i]);const{ref:f}=fd(()=>n(!1)),h=d=>{const g=d.target.value;l(g),typeof e=="function"&&e(g),u({functionKey:"filterEvent",data:{customData:{ordering:Lt.options[g]}}}),n(!1)};return r.jsxs(af,{...a,ref:f,children:[r.jsx(Ty,{btnAdornment:{listOpen:r.jsx(p.Icon,{name:s.arrow_up,size:"small"}),listClosed:r.jsx(p.Icon,{name:s.arrow_down,size:"small"})},sortListOpen:t,onClick:()=>n(!t),children:c?Lt.options[c]:Lt.placeholder},"sort-button"),t&&r.jsx(My,{children:r.jsx(ky,{name:"sort-group",value:c??"",onChange:h,children:Object.keys(Lt.options).map(d=>r.jsx(Oy,{label:Lt.options[d],value:d},d))})})]})};qr.displayName="Sort";const cf=x.createContext({}),Ly=({children:e,...t})=>{const[n,o]=x.useState(!1);return r.jsx(cf.Provider,{value:x.useMemo(()=>({...t,openOrderBy:n,setOpenOrderBy:o}),[t,n,o]),children:e})},Dy=()=>{const e=x.useContext(cf);if(e===void 0)throw new Error("usePLPNavigationContext must be used within a PDCNavigationProvider");return e},lf=()=>{const{openOrderBy:e,onSort:t,setOpenFilters:n,setOpenOrderBy:o}=Dy(),{ICONS:s,PDC_NAVIGATION:a,searchParams:i}=Le();return r.jsxs("div",{className:gt["pdc-navigation--filters"],children:[r.jsx(dt.BreadCrumb,{}),r.jsxs("div",{className:gt["pdc-navigation--filters--content"],children:[r.jsx(qr,{handleSelectValue:c=>t(c??"release_desc"),sortListOpen:e,setSortListOpen:o,ICONS:s,searchParams:i}),r.jsx(p.Button,{adornment:{end:r.jsx(p.Icon,{name:s.arrow_down})},onClick:()=>n(!0),size:"small",variant:"tertiary",children:a.filter_button}),r.jsx(dt.Total,{})]})]})};lf.displayName="PLPNavigation.Filters";const uf=({children:e,onSort:t,setOpenFilters:n,style:o,...s})=>{const a=x.useRef(null);return r.jsx(Ly,{onSort:t,setOpenFilters:n,children:r.jsx("div",{...s,className:gt["pdc-navigation"],ref:a,style:{...o},children:r.jsx(dt.Content,{children:e})})})};uf.displayName="Root";const df=({callback:e,selected:t,...n})=>r.jsx("div",{...n,className:gt["pdc-navigation--selected"],children:r.jsx("div",{className:gt["pdc-navigation--selected--container"],children:Array.isArray(t)?t.map(o=>o.key==="productclusterids"?null:r.jsx(dt.SelectedItem,{callback:e,facet:o},o.value)):null})});df.displayName="PLPNavigation.Selected";const Fs=({key:e,PLP_FILTERS:t})=>t.some(n=>n.key===e)?e==="cores-filtraveis":!1,Bs=({value:e,PLP_FILTERS_COLORS:t})=>{var n;return((n=t.find(o=>o.value===e))==null?void 0:n.color)??"#F2F2F2"},ff=({key:e,PLP_FILTERS:t})=>{var n;return(n=t.find(o=>o.key===e))==null?void 0:n.label},pf=({key:e,PLP_FILTERS:t})=>{var n;return((n=t.find(o=>o.key===e))==null?void 0:n.order)??0},Zo=({value:e})=>{const[t,n]=e.split(":").length===2?e.split(":"):[0,0],o=U.formatPriceToCurrency(Number(n));return`${U.formatPriceToCurrency(Number(t))} até ${o}`},mf=({items:e})=>{const t=e.flatMap(s=>[s.range.from,s.range.to]),n=Math.min(...t.map(Math.abs)),o=Math.max(...t.map(Math.abs));return[n,o]},hf=Object.freeze(Object.defineProperty({__proto__:null,checkedColor:Fs,createTagPrice:Zo,getAbsoluteMinMax:mf,getColor:Bs,getName:ff,getOrder:pf},Symbol.toStringTag,{value:"Module"})),We={"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"},gf=({columns:e=2,CONSTANTS:t,...n})=>{var a;const{filters:o,onToggleFacet:s}=kt();return r.jsxs("div",{...n,className:We["filter--modal--body--content"],children:[Array.isArray(o.facets)&&o.facets.map(i=>r.jsx(ot.Item,{columns:e,facet:i,onToggleFacet:s,CONSTANTS:t},i.key)),!((a=o.facets)!=null&&a.length)&&r.jsx(ot.Empty,{PLP_FILTERS_EMPTY:t.PLP_FILTERS_EMPTY})]})};gf.displayName="Filter.Item.Content";const yf=({PLP_FILTERS_EMPTY:e})=>{const t=()=>{window.history.back()};return r.jsxs("div",{className:We["filter--empty"],children:[r.jsxs(p.TextStructure.DivWrapper,{children:[r.jsx("h4",{children:e.title}),r.jsx("p",{children:e.subtitle})]}),r.jsx(p.Button,{onClick:()=>t(),variant:"tertiary",children:e.button})]})};yf.displayName="Filter.Empty";const _f=({columns:e,facet:t,onToggleFacet:n,CONSTANTS:o,...s})=>{const a=pf({key:t.key,PLP_FILTERS:o.PLP_FILTERS}),i=()=>{if(t.__typename==="FacetBoolean"){if(t.key==="cores-filtraveis")return r.jsx(ot.Colors,{onToggleFacet:n,values:t.values,PLP_FILTERS:o.PLP_FILTERS,PLP_FILTERS_COLORS:o.PLP_FILTERS_COLORS});if(t.key==="tamanho")return r.jsx(ot.Sizes,{onToggleFacet:n,values:t.values,PLP_SIZE_ORDER:o.PLP_SIZE_ORDER});if(t.key==="category-2")return r.jsx(ot.Toggle,{columns:e,facetKey:t.key,onToggleFacet:n,values:t.values,ICONS:o.ICONS})}return t.__typename==="FacetRange"?r.jsx(ot.Price,{facet:t}):r.jsx("p",{children:"Filter not support!!!"})};return r.jsx("div",{...s,className:We["filter--item"],style:{order:a},children:r.jsxs(p.Accordion.Wrapper,{style:{width:"100%"},children:[r.jsx(p.Accordion.Header,{id:t.key,closeIndicator:r.jsx(p.Icon,{name:o.ICONS.arrow_up}),openIndicator:r.jsx(p.Icon,{name:o.ICONS.arrow_down}),children:r.jsx(p.TextStructure.Root,{children:r.jsx(p.TextStructure.DivWrapper,{children:r.jsx("h4",{className:"typography-style-body-sm",children:ff({key:t.key,PLP_FILTERS:o.PLP_FILTERS})})})})}),r.jsx(p.Accordion.Body,{children:i()})]})})};_f.displayName="Filter.Item";const vf=({onToggleFacet:e,values:t,PLP_FILTERS:n,PLP_FILTERS_COLORS:o,...s})=>r.jsx(Qe.Root,{...s,children:r.jsx(Qe.List,{children:Array.isArray(t)&&t.map(({key:a,selected:i,value:c})=>r.jsx(Qe.Option,{active:i,"data-color":Fs({key:a,PLP_FILTERS:n}),fill:Bs({value:c,PLP_FILTERS_COLORS:o}),onClick:()=>e({key:a,value:c}),type:"color"},`${a}-${c}`))})});vf.displayName="Filter.Item.Color";const xf=({facet:e,...t})=>{var u,f;const{filters:{selected:n},price:o,onToggleFacet:s}=kt(),[a,i]=(o==null?void 0:o.split(":").map(Number))??[0,100],[c,l]=((f=(u=n==null?void 0:n.find(({key:h})=>h==="price"))==null?void 0:u.value)==null?void 0:f.split(":").map(Number))??[a,i];return r.jsx("div",{...t,className:We["filter--item--price"],children:r.jsxs(p.Slider.SliderDual,{format:"price",initialValue:[c<a?a:c,l>i?i:l],min:a,max:i,type:"dual",step:1,onFinish:h=>{var m,d;h&&s({key:"price",value:`${(m=h.range)==null?void 0:m.min}:${(d=h.range)==null?void 0:d.max}`})},children:[r.jsx(p.TextStructure.Root,{children:r.jsx(p.TextStructure.DivWrapper,{children:r.jsx("p",{"data-min-value":!0})})}),r.jsx(p.TextStructure.Root,{children:r.jsx(p.TextStructure.DivWrapper,{children:r.jsx("p",{"data-max-value":!0})})})]})})};xf.displayName="Filter.Item.Price";const bf=({onToggleFacet:e,values:t,PLP_SIZE_ORDER:n,...o})=>{const s=[...t].sort((a,i)=>{const c=n.indexOf(a.name),l=n.indexOf(i.name);return c-l});return r.jsx(Qe.Root,{...o,children:r.jsx(Qe.List,{children:Array.isArray(s)&&s.map(({key:a,selected:i,value:c})=>r.jsx(Qe.Option,{active:i,text:c,type:"size",onClick:()=>e({key:a,value:c})},c))})})};bf.displayName="Filter.Item.Sizes";const jf=({columns:e,facetKey:t,onToggleFacet:n,values:o,ICONS:s,...a})=>r.jsx("div",{...a,className:We["filter--item--toggle"],children:r.jsx("div",{className:We["filter--item--toggle--container"],style:{gridTemplateColumns:`repeat(${e}, 1fr)`},children:Array.isArray(o)&&o.map(i=>r.jsx(p.Checkbox,{label:(i==null?void 0:i.name)??"",adornment:r.jsx(p.Icon,{name:s.check}),checked:i.selected,onChange:()=>n(i)},i.value))})});jf.displayName="Filter.Item.Toggle";const Cf=({...e})=>{const{isLoading:t}=kt();return r.jsx("div",{className:We["filter--loading"],"data-active":t,...e,children:r.jsx(p.Spinner,{indicatorColor:"#000",background:"#222"})})};Cf.displayName="Filter.Loading";const Sf=({children:e,className:t,isMobile:n=!1,CONSTANTS:{PLP_FILTERS_TITLE:o,ICONS:s}})=>{var f;const{deleteAllFacets:a,filters:i,isOpen:c,target:l,setIsOpen:u}=kt();return r.jsxs(p.Modal.Root,{className:p.helpers.classNameConcat(We["filter--modal"],t),isMobile:n??!1,isOpen:c,parent:l,setIsOpen:u,variant:n?"sideBottom":"sideRight",style:{zIndex:99},children:[r.jsxs(p.Modal.Header,{navigation:"top",children:[r.jsx(p.Modal.Controls,{navigation:"top",isMobile:n,children:r.jsx(p.Button,{"data-close":!0,iconNameStart:s.close,size:"small",variant:"tertiary",style:{marginLeft:"auto"}})}),r.jsx(p.Modal.Title,{navigation:"top",title:o})]}),r.jsxs(p.Modal.Body,{style:{width:500},children:[r.jsx("div",{className:We["filter--modal--body"],children:e}),r.jsx(ot.Loading,{})]}),r.jsx(p.Modal.Footer,{children:r.jsxs("div",{className:We["filter--modal--footer"],children:[r.jsx(p.Button,{"data-close":!0,size:"large",variant:"primary",children:(f=i.facets)!=null&&f.length?"ver resultados":"fechar"}),r.jsx(p.Button,{"data-close":!0,onClick:()=>a(),variant:"tertiary",children:"limpar filtros"})]})})]})};Sf.displayName="Filter.Modal";const Pf=({children:e,className:t,isMobile:n,CONSTANTS:o,...s})=>r.jsx(Jl,{...s,PLP_FILTERS:o.PLP_FILTERS,children:r.jsx(ot.Modal,{className:t,isMobile:n,CONSTANTS:o,children:e})});Pf.displayName="Filter.Root";const wf=({ICONS:e,PLP_FILTERS_COLORS:t,PLP_FILTERS:n})=>{const{filters:o,onToggleFacet:s}=kt();return r.jsx("div",{className:We["filter--selected"],children:r.jsx("div",{className:We["filter--selected--content"],children:Array.isArray(o.selected)&&o.selected.map(({key:a,value:i})=>a==="productclusterids"?null:r.jsx(p.Tag,{title:a==="price"?Zo({value:i}):i,adornment:{end:r.jsx(p.Icon,{name:e.close,size:"x-small"})},colorSquare:Bs({value:i,PLP_FILTERS_COLORS:t}),onClick:()=>s({key:a,value:i}),squareShow:Fs({key:a,PLP_FILTERS:n}),size:"medium",variant:"primary",children:a==="price"?Zo({value:i}):i},i))})})};wf.displayName="Filter.Selected";const ot={Colors:vf,Content:gf,Empty:yf,Modal:Sf,Item:_f,Root:Pf,Loading:Cf,Selected:wf,Price:xf,Sizes:bf,Toggle:jf},{checkedColor:$y,createTagPrice:Ga,getColor:zy}=hf,Ef=({callback:e,facet:t})=>{const{ICONS:n,PLP_FILTERS_COLORS:o,PLP_FILTERS:s}=Le();return r.jsx(p.Tag,{title:(t==null?void 0:t.key)==="price"?Ga({value:t.value}):t.value.toUpperCase(),adornment:{end:r.jsx(p.Icon,{name:n.close,size:"x-small"})},colorSquare:zy({value:t.value,PLP_FILTERS_COLORS:o}),onClick:()=>{typeof e=="function"&&e(t,!0)},squareShow:$y({key:t.key,PLP_FILTERS:s}),size:"medium",variant:"primary",children:(t==null?void 0:t.key)==="price"?Ga({value:t.value}):t.value.toUpperCase()})};Ef.displayName="PLPNavigation.Selected.Item";const Rf=()=>r.jsx(p.TextStructure.Root,{children:r.jsx("p",{id:"pdc-navigation--total"})});Rf.displayName="PLPNavigation.Total";const dt={BreadCrumb:of,Content:sf,Filters:lf,Root:uf,Selected:df,SelectedItem:Ef,Total:Rf},Fy="_footer__bottom_1o9af_2",By="_footer__wrapper_1o9af_10",qy="_footer__main_1o9af_39",Hy="_footer__legalInformation_1o9af_55",Uy="_footer__column_1o9af_77",Wy="_footer__columnContent_1o9af_87",Gy="_footer__item_1o9af_91",Vy="_footer__itemLink_1o9af_107",Ky="_footer__columnTitle_1o9af_122",Xy="_footer__columnTitleIcon_1o9af_134",Yy="_footer__iconList_1o9af_147",Qy="_footer__itemSmallText_1o9af_157",Zy="_payment_1o9af_168",Jy="_footer__iconContainer_1o9af_173",e_="_footer__iconListSubHeader_1o9af_178",t_="_accordionWrapper_1o9af_200",r_="_accordionHeader_1o9af_204",n_="_accordionTextWrapper_1o9af_208",ye={footer__bottom:Fy,footer__wrapper:By,footer__main:qy,footer__legalInformation:Hy,footer__column:Uy,footer__columnContent:Wy,footer__item:Gy,footer__itemLink:Vy,footer__columnTitle:Ky,footer__columnTitleIcon:Xy,footer__iconList:Yy,footer__itemSmallText:Qy,payment:Zy,footer__iconContainer:Jy,footer__iconListSubHeader:e_,accordionWrapper:t_,accordionHeader:r_,accordionTextWrapper:n_,"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 Af={},qs={},Qt={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"warnOnce",{enumerable:!0,get:function(){return t}});let t=n=>{};if(process.env.NODE_ENV!=="production"){const n=new Set;t=o=>{n.has(o)||console.warn(o),n.add(o)}}})(Qt);var Nf={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"getImageBlurSvg",{enumerable:!0,get:function(){return t}});function t(n){let{widthInt:o,heightInt:s,blurWidth:a,blurHeight:i,blurDataURL:c,objectFit:l}=n;const u=20,f=a?a*40:o,h=i?i*40:s,m=f&&h?"viewBox='0 0 "+f+" "+h+"'":"",d=m?"none":l==="contain"?"xMidYMid":l==="cover"?"xMidYMid slice":"none";return"%3Csvg xmlns='http://www.w3.org/2000/svg' "+m+"%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='"+d+"' style='filter: url(%23b);' href='"+c+"'/%3E%3C/svg%3E"}})(Nf);var Hr={};(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 n},imageConfigDefault:function(){return o}});const n=["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}})(Hr);(function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"getImgProps",{enumerable:!0,get:function(){return d}});const t=Qt,n=Nf,o=Hr,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 f(g){return typeof g>"u"?g:typeof g=="number"?Number.isFinite(g)?g:NaN:typeof g=="string"&&/^[0-9]+$/.test(g)?parseInt(g,10):NaN}function h(g,y,_){let{deviceSizes:b,allSizes:S}=g;if(_){const j=/(^|\s)(1?\d?\d)vw/g,P=[];for(let E;E=j.exec(_);E)P.push(parseInt(E[2]));if(P.length){const E=Math.min(...P)*.01;return{widths:S.filter(C=>C>=b[0]*E),kind:"w"}}return{widths:S,kind:"w"}}return typeof y!="number"?{widths:b,kind:"w"}:{widths:[...new Set([y,y*2].map(j=>S.find(P=>P>=j)||S[S.length-1]))],kind:"x"}}function m(g){let{config:y,src:_,unoptimized:b,width:S,quality:v,sizes:j,loader:P}=g;if(b)return{src:_,srcSet:void 0,sizes:void 0};const{widths:E,kind:C}=h(y,S,j),R=E.length-1;return{sizes:!j&&C==="w"?"100vw":j,srcSet:E.map((I,w)=>P({config:y,src:_,quality:v,width:I})+" "+(C==="w"?I:w+1)+C).join(", "),src:P({config:y,src:_,quality:v,width:E[R]})}}function d(g,y){let{src:_,sizes:b,unoptimized:S=!1,priority:v=!1,loading:j,className:P,quality:E,width:C,height:R,fill:I=!1,style:w,onLoad:N,onLoadingComplete:T,placeholder:z="empty",blurDataURL:O,fetchPriority:W,layout:q,objectFit:F,objectPosition:G,lazyBoundary:V,lazyRoot:B,...J}=g;const{imgConf:A,showAltText:k,blurComplete:D,defaultLoader:X}=y;let ne,ee=A||o.imageConfigDefault;if("allSizes"in ee)ne=ee;else{const K=[...ee.deviceSizes,...ee.imageSizes].sort((Ae,Q)=>Ae-Q),me=ee.deviceSizes.sort((Ae,Q)=>Ae-Q);ne={...ee,allSizes:K,deviceSizes:me}}let 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 "'+_+`" is missing "loader" prop.
|
|
5
|
-
Read more: https://nextjs.org/docs/messages/next-image-missing-loader`)}else{const K=
|
|
4
|
+
Learn more: https://nextjs.org/docs/messages/invalid-new-link-with-extra-anchor`);const ie=A?oe&&typeof oe=="object"&&oe.ref:R,[fe,pe,ue]=(0,h.useIntersection)({rootMargin:"200px"}),H=o.default.useCallback(ae=>{(M.current!==re||$.current!==J)&&(ue(),M.current=re,$.current=J),fe(ae),ie&&(typeof ie=="function"?ie(ae):typeof ie=="object"&&(ie.current=ae))},[re,ie,J,ue,fe]);o.default.useEffect(()=>{process.env.NODE_ENV==="production"&&ne&&(!pe||!D||_(ne,J,re,{locale:F},{kind:te},ee))},[re,J,pe,F,D,L==null?void 0:L.locale,ne,ee,te]);const be={ref:H,onClick(ae){if(process.env.NODE_ENV!=="production"&&!ae)throw new Error('Component rendered inside next/link has to pass click event to "onClick" prop.');!A&&typeof G=="function"&&G(ae),A&&oe.props&&typeof oe.props.onClick=="function"&&oe.props.onClick(ae),ne&&(ae.defaultPrevented||S(ae,ne,J,re,W,B,V,F,ee,D))},onMouseEnter(ae){!A&&typeof q=="function"&&q(ae),A&&oe.props&&typeof oe.props.onMouseEnter=="function"&&oe.props.onMouseEnter(ae),ne&&((!D||process.env.NODE_ENV==="development")&&ee||_(ne,J,re,{locale:F,priority:!0,bypassPrefetchedCheck:!0},{kind:te},ee))},onTouchStart(ae){!A&&typeof X=="function"&&X(ae),A&&oe.props&&typeof oe.props.onTouchStart=="function"&&oe.props.onTouchStart(ae),ne&&(!D&&ee||_(ne,J,re,{locale:F,priority:!0,bypassPrefetchedCheck:!0},{kind:te},ee))}};if((0,c.isAbsoluteUrl)(re))be.href=re;else if(!A||O||oe.type==="a"&&!("href"in oe.props)){const ae=typeof F<"u"?F:L==null?void 0:L.locale,ve=(L==null?void 0:L.isLocaleDomain)&&(0,m.getDomainLocale)(re,ae,L==null?void 0:L.locales,L==null?void 0:L.domainLocales);be.href=ve||(0,d.addBasePath)((0,l.addLocale)(re,ae,L==null?void 0:L.defaultLocale))}return A?o.default.cloneElement(oe,be):o.default.createElement("a",{...k,...be},I)});(typeof t.default=="function"||typeof t.default=="object"&&t.default!==null)&&typeof t.default.__esModule>"u"&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)})(Ko,Ko.exports);var mg=Ko.exports,hg=mg;const De=Mr(hg),gg="_link_w24h0_1",yg="_wrapper_w24h0_98",_g="_text_w24h0_106",jn={link:gg,wrapper:yg,text:_g},Ge=({children:e,adornments:t,className:n,disableUnderline:o,href:s,mode:a,size:i,title:c,onClick:l,disablePadding:u,...f})=>{const h=p.helpers.ValidateProp({fieldTypes:Pt.SizesSmallExtended,property:i,fallback:"medium"}),m=p.helpers.ValidateProp({fieldTypes:Pt.Mode,property:a,fallback:"default"});return r.jsx(De,{...f,className:p.helpers.classNameConcat(jn.link,n),href:s&&s.length>0?s:"#","data-size":h,"data-variant":m,title:c||"NextLink","data-disable-underline":o??!1,"data-disable-padding":u??!0,children:r.jsxs("div",{className:jn.wrapper,onClick:l,children:[t==null?void 0:t.start,r.jsx("p",{className:jn.text,"data-size":h,children:e}),t==null?void 0:t.end]})})},vg=({ICONS:e})=>{const{resetFeedback:t}=vt();return r.jsxs("div",{className:Bt["wishlist--snack--actions"],children:[r.jsx(Ge,{href:"/favoritos",children:"Ver Favoritos"}),r.jsx(p.Button,{variant:"tertiary",size:"small",onClick:t,adornment:{start:r.jsx(p.Icon,{name:e.close})}})]})},Ms=({WISHLIST_INFO:e,ICONS:t,Z_INDEX_WAR:n})=>{const o=xs(),{resetFeedback:s}=vt(),a=x.useRef(null);return x.useEffect(()=>{a.current&&clearTimeout(a.current),o&&(a.current=setTimeout(()=>{s()},5e3))},[o,s]),(o==null?void 0:o.active)&&r.jsx(wt,{Z_INDEX_WAR:n,className:Bt["wishlist--snack"],"data-action":o.action,title:o.action==="add"?e.messages.add:e.messages.remove,supportChildren:r.jsx(vg,{ICONS:t}),size:"medium"})};Ms.displayName="WishList.Feedback";const Ls={"product-list--banner":"_product-list--banner_sfibj_1","product-list--card":"_product-list--card_sfibj_30","product-list":"_product-list_sfibj_1"},Ou=({className:e,children:t,columns:n=1,isMobile:o=!1,gap:s=8,position_grid:a,totalColumns:i=4,PRODUCT_CARD_IMAGE_ASPECT_RATIO:c,...l})=>{const u=x.useMemo(()=>n%i===0?"initial":o||n<2?c:c.split("/").reverse().join("/"),[n,i,o]);return r.jsx("div",{...l,className:p.helpers.classNameConcat(Ls["product-list--banner"],e),style:{aspectRatio:u,maxWidth:`${n/i*100}%`,order:a,padding:s/2},children:t})};Ou.displayName="ProductList.Banner";const ku=({isKit:e,parent:t,productId:n,setNotify:o,CONSTANTS:s})=>{const{router:a}=_e(),i=x.useRef(!1),c=x.useRef(null),[l,u]=x.useState([]),f=g=>a.push(g??""),h=async g=>{try{const y=await fetch("/api/catalog/product/similars",{method:"POST",body:JSON.stringify({productId:g,filterTexture:s.TEXTURE_IMAGE}),priority:"low"});if(!y.ok)throw new Error("Erro ao buscar similares.");const _=await y.json();u(_)}catch(y){console.error(y)}},m=x.useCallback(g=>{!n||!g||(typeof h=="function"&&h(n),i.current=!0)},[n]),d=x.useCallback((g,y)=>{if(!g.isIntersecting){s.PLP_INFINITE_SCROLL&&c.current&&(clearTimeout(c.current),c.current=null);return}if(g.intersectionRatio>=y.threshold&&!i.current){if(s.PLP_INFINITE_SCROLL){c.current=setTimeout(()=>{m(!0)},s.PLP_PRODUCT_SIMILAR_DELAY);return}m(!0)}},[m]);return x.useEffect(()=>{if(e||!t.current)return;const g={root:null,threshold:.1},y=new IntersectionObserver(([_])=>{d(_,g)},g);return y.observe(t.current),()=>{c.current&&clearTimeout(c.current),y.disconnect()}},[d,t,e]),r.jsx(xe.Actions,{...l,callback:f,isKit:e,children:!e&&r.jsx(xe.SizeSelector,{setNotify:o})})};ku.displayName="ProductList.Card.Actions";const Mu=({className:e,children:t,gap:n=32,item:o,isMobile:s,order:a,tag:i,hasMaxWidth:c=!0,index:l,setSkuSelected:u,showVideo:f,CONSTANTS:h,...m})=>{const d=x.useRef(null),{availability:{status:g}}=o,y=x.useCallback((b,S)=>{var v;typeof u=="function"&&u((v=b.isVariantOf)==null?void 0:v.hasVariant,S)},[u]),_=o.name.substring(0,4).toLowerCase()==="kit ";return r.jsxs("div",{...m,className:p.helpers.classNameConcat(Ls["product-list--card"],e),"data-mobile":s,"data-order":a,ref:d,style:{...c&&{maxWidth:s?"50%":"25%"},order:a,padding:n/2},children:[r.jsxs(xe.Root,{item:o,isMobile:s,index:l,size:s?"small":"medium",order:a,outStock:!g,CONSTANTS:h,children:[r.jsx(xe.Header,{product:o,tag:i==null?void 0:i.commercial}),r.jsx(xe.Media,{showVideo:f,hasPriority:!0}),r.jsxs(xe.Wrapper,{type:"body",children:[r.jsx(xe.Title,{tag:i==null?void 0:i.institucional}),r.jsx(ku,{productId:o.isVariantOf.productGroupID,parent:d,setNotify:y,isKit:_,CONSTANTS:h}),!_&&r.jsx(xe.OutStock,{callback:y})]}),r.jsx(xe.Wrapper,{type:"footer",children:g&&r.jsx(xe.BuyButton,{isKit:_})})]}),t]})};Mu.displayName="ProductList.Card";const Lu=({children:e,className:t,...n})=>r.jsx("div",{...n,className:p.helpers.classNameConcat(Ls["product-list"],t),children:e});Lu.displayName="ProductList.Grid";const tt={Banner:Ou,Card:Mu,Root:Lu,helpers:lh},xg="_pdc_alo7z_1",Ve={"pdc--empty":"_pdc--empty_alo7z_1","pdc--grid":"_pdc--grid_alo7z_17","pdc--grid--content":"_pdc--grid--content_alo7z_26","pdc--infinite":"_pdc--infinite_alo7z_41","pdc--infinite--loader":"_pdc--infinite--loader_alo7z_44","pdc--infinite--loader--page":"_pdc--infinite--loader--page_alo7z_54","pdc--infinite--card--disabled":"_pdc--infinite--card--disabled_alo7z_58","pdc--infinite--next-page":"_pdc--infinite--next-page_alo7z_91","pdc--infinite--next-page--card":"_pdc--infinite--next-page--card_alo7z_101","pdc--infinite--next-page--spinner":"_pdc--infinite--next-page--spinner_alo7z_111","pdc--pagination":"_pdc--pagination_alo7z_118",pdc:xg},Ds=({className:e,ICONS:t,PLP_NOT_RESULT:n})=>{const{router:o}=_e(),{isMobile:s}=ce(),a=()=>{o.push(n==null?void 0:n.link)};return r.jsxs("div",{className:p.helpers.classNameConcat(Ve["pdc--empty"],e),children:[r.jsxs(p.TextStructure.DivWrapper,{className:Ve["pdc--empty-wrapper"],children:[r.jsx("span",{className:s?"typography-style-body-md":"typography-style-heading-sm",children:n.title}),r.jsx("p",{className:s?"typography-style-body-xs":"typography-style-body-sm",children:n.subtitle})]}),r.jsx(p.Button,{adornment:{end:r.jsx(p.Icon,{name:t.arrow_right})},className:"typography-style-body-sm-strong",onClick:()=>a(),variant:"tertiary",children:r.jsx("b",{children:n.text})})]})};Ds.displayName="PDC.Empty";const $r=e=>r.jsx("div",{...e,className:Ve["pdc--infinite--next-page"],children:r.jsx(p.Spinner,{className:Ve["pdc--infinite--next-page--spinner"]})});$r.displayName="PDC.Spinner";function Du({CONSTANTS:e}){const{sendDataLayerEvent:t}=le(),{isMobile:n}=ce(),{getAvailableProductTag:o}=nt(),[s,a]=x.useState([]),[i,c]=x.useState(!0),l=Tt(),u=n?16:32;return x.useEffect(()=>{const f=async()=>{l.length?await fetch("/api/wishlist/products",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({productIds:l})}).then(h=>h.json()).then(h=>{a(h),t({functionKey:"productListEvent",data:{event:"view_item_list",commonData:{products:h}}})}).catch(h=>console.error(h)):a([]),c(!1)};if(l.length){f();return}if(l.length===0&&s.length===0){c(!1);return}a([]),c(!1)},[l]),r.jsx("section",{className:Bt["wishlist-grid"],children:r.jsxs("div",{className:Bt["wishlist-grid--container"],children:[i&&r.jsx($r,{}),!l.length&&!(s!=null&&s.length)&&!i&&r.jsx(Ds,{className:Bt["pdc-empty-modifier"],ICONS:e.ICONS,PLP_NOT_RESULT:e.WISHLIST_NOT_RESULT}),r.jsx(tt.Root,{children:Array.isArray(s)&&s.map((f,h)=>{const m=f.node.cluster.highlights||[],d=o(m);return r.jsx(tt.Card,{gap:u,isMobile:n??!1,item:f.node,tag:d,index:h,CONSTANTS:{BUY_BUTTON_LABELS:e.BUY_BUTTON_LABELS,MAIN_IMAGE:e.MAIN_IMAGE,PLP_GRID_SCROLL_BACK:e.PLP_GRID_SCROLL_BACK,PLP_INFINITE_SCROLL:e.PLP_INFINITE_SCROLL,PLP_SHOW_VIDEO_ON_PRODUCT_CARD:e.PLP_SHOW_VIDEO_ON_PRODUCT_CARD,PLP_PRODUCT_SIMILAR_DELAY:e.PLP_PRODUCT_SIMILAR_DELAY,PRODUCT_CARD_IMAGE_ASPECT_RATIO:e.PRODUCT_CARD_IMAGE_ASPECT_RATIO,PRODUCT_CARD_TEXTS:e.PRODUCT_CARD_TEXTS,PRODUCT_CARD_TOP_WISHLIST_TOGGLE:e.PRODUCT_CARD_TOP_WISHLIST_TOGGLE,PRODUCT_IMAGE_DIMENSIONS:e.PRODUCT_IMAGE_DIMENSIONS,SECOND_IMAGE:e.SECOND_IMAGE,StoreConfig_MainSellerId:e.StoreConfig_MainSellerId,TEXTURE_IMAGE:e.TEXTURE_IMAGE,Z_INDEX_WAR:e.Z_INDEX_WAR,ICONS:e.ICONS}},f.node.sku)})})]})})}Du.displayName="Wishlist.Grid";const bg=e=>e.map(t=>{var n;return(n=t.isVariantOf)==null?void 0:n.productGroupID})??[],$u=({WISHLIST_INFO:e,ICONS:t,Z_INDEX_WAR:n})=>{const o=Ot(),s=Tt(),a=xs(),{updateList:i}=vt();return x.useEffect(()=>{var l,u;a.active&&Ze.set("fs::wishlist",s);const c=async()=>{var f;await fetch("/api/wishlist/documents",{method:"PATCH",body:JSON.stringify({productIds:s,docId:(f=o==null?void 0:o.user)==null?void 0:f.id})}).catch(h=>{console.error("Error updating wishlist:",h)})};a.active&&((l=o.user)!=null&&l.id)&&s.length!==((u=o.wishlist)==null?void 0:u.length)&&c()},[a,o,s]),x.useEffect(()=>{var u;const c=async()=>{const f=await Ze.get("fs::wishlist");f&&(f==null?void 0:f.length)!==s.length&&i(f)},l=async()=>{var d;const f=await Ze.get("fs::wishlist")??[],h=o.wishlist?typeof o.wishlist[0]=="object"?bg(o.wishlist):o.wishlist:[],m=[...new Set([...f,...h])];i(m),Ze.set("fs::wishlist",s),h.length!==m.length&&await fetch("/api/wishlist/documents",{method:"PATCH",body:JSON.stringify({productIds:m,docId:(d=o.user)==null?void 0:d.id})}).catch(g=>{console.error("Error updating wishlist:",g)})};if((u=o.user)!=null&&u.id){l();return}c()},[o,i,s]),r.jsx(Ms,{ICONS:t,Z_INDEX_WAR:n,WISHLIST_INFO:e})};$u.displayName="Wishlist.Init";const zu=({product:e,priceInfo:t,size:n="medium",style:o,ICONS:s})=>{const{sendDataLayerEvent:a,currentLocalRef:i}=le(),c=Tt(),{toggleProduct:l}=vt(),{isVariantOf:{productGroupID:u}}=e;return r.jsx(p.Button,{adornment:{start:r.jsx(p.Icon,{size:n,name:c.includes(u)?s.favorite_true:s.favorite_false})},onClick:()=>{l(u),a({functionKey:"productEvents",data:{event:c.includes(u)?"remove_from_wishlist":"add_to_wishlist",outsideEcommerceData:{region:i.current},commonData:{...e,...t}}})},style:{...o,border:"none"},variant:"tertiary"})};zu.displayName="WishList.Toggle";const Fu={Feedback:Ms,Toggle:zu,Grid:Du,Init:$u},Bu=({product:e,tag:t,size:n="small"})=>{const{CONSTANTS:o}=Ke(),{tags:s}=nt(),a=e.offers.offers[0],i=U.getDiscountPercent(a.listPrice,a.price),c=s==null?void 0:s.flagDiscount;return r.jsxs(xe.Wrapper,{type:"header",style:{zIndex:o.Z_INDEX_WAR.product_card_header},children:[i>0&&!t&&(c==null?void 0:c.enableTag)&&r.jsxs(p.Tag,{title:`${i}% ${c==null?void 0:c.tagText}`,variant:"quaternary",size:"small",style:{background:c==null?void 0:c.tagColor,color:c==null?void 0:c.tagTextColor},children:[i,"% ",c==null?void 0:c.tagText]}),t?r.jsx(p.Tag,{title:t.value,adornment:{start:t.enableIcon&&t.icon?r.jsx(p.Icon,{name:t.icon,size:"small",style:{color:t.iconColor}}):null},size:n,variant:"quaternary",style:{background:t.tagColor,color:t.textColor},children:t.value}):null,o.PRODUCT_CARD_TOP_WISHLIST_TOGGLE&&r.jsx(Fu.Toggle,{product:e,priceInfo:{price:a.price,listPrice:a.listPrice},variant:"card",ICONS:o.ICONS})]})};Bu.displayName="ProductCard.Actions.Header";const qu=({className:e,children:t,hasPriority:n=!1,showVideo:o=!1,...s})=>{const{element:a,index:i,item:{image:c,slug:l,video:u},sendSelectItemEvent:f,order:h,CONSTANTS:m}=Ke(),d=U.getFirstImages({images:c,label:{first:m.MAIN_IMAGE,second:m.SECOND_IMAGE}});return r.jsxs("div",{...s,className:p.helpers.classNameConcat(Ne["product-card--image"],e),ref:a,style:{aspectRatio:m.PRODUCT_CARD_IMAGE_ASPECT_RATIO},children:[r.jsx(De,{href:`/${l}/p`,onClick:f,onMouseUp:g=>{g.button===1&&f(),m.PLP_INFINITE_SCROLL&&sessionStorage.setItem(m.PLP_GRID_SCROLL_BACK.order,String(h))},children:r.jsx("div",{className:Ne["product-card--image--container"],children:Array.isArray(d)&&d.map(({url:g,alternateName:y},_)=>x.createElement(Ie.Image,{...m.PRODUCT_IMAGE_DIMENSIONS.product_card,style:m.PRODUCT_IMAGE_DIMENSIONS.product_card,alt:y??"product image",key:_,...n&&{priority:_===0&&i<4},objectFit:"cover",src:g}))})}),m.PLP_SHOW_VIDEO_ON_PRODUCT_CARD&&o&&u&&r.jsx(xe.Video,{url:u,poster:d[0].url}),t]})};qu.displayName="ProductCard.Media.Media";const Hu=({className:e,callback:t,children:n,...o})=>{const{isMobile:s,item:a,CONSTANTS:{PRODUCT_CARD_TEXTS:i}}=Ke(),{availability:{status:c}}=a;return c?null:r.jsxs("div",{...o,className:p.helpers.classNameConcat(Ne["product-card--outstock"],e),children:[r.jsx(p.Tag,{size:"small",variant:"secondary",title:i.disabled,children:i.disabled}),r.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})]})};Hu.displayName="ProductCard.OutStock";const Uu=({children:e,className:t="",index:n,isMobile:o=!1,item:s,size:a,order:i,outStock:c,shelfTitle:l,CONSTANTS:u,...f})=>r.jsx($h,{item:s,isMobile:o,outStock:c,order:i,size:a,index:n,shelfTitle:l,CONSTANTS:u,children:r.jsx("div",{...f,className:p.helpers.classNameConcat(Ne["product-card--wrapper"],t),"data-size":a,children:e})});Uu.displayName="ProductCard.Root";const Wu=({disabled:e,label:t,size:n,value:o,onClick:s,...a})=>r.jsxs(p.ToggleSize.Wrapper,{...a,disabled:!1,outOfStock:e,size:n,onClick:s,children:[r.jsx(p.ToggleSize.DisabledAdornment,{}),r.jsx(p.ToggleSize.Text,{children:t})]});Wu.displayName="ProductCard.SizeSelector.Item";const Gu=({active:e=!1,callback:t,selectedSku:n=null,item:o,setNotify:s})=>{const{item:a,isMobile:i,setSelectedSku:c,eventDataRef:l}=Ke();o.productId=a.id;const u=U.disableSKU(o),f=U.getSKUName(o,"tamanho");!u&&!l.current.availableSkus.includes(f)&&l.current.availableSkus.push(f);const h=x.useCallback(d=>{const g=n===d?null:d;typeof c=="function"&&c(g),typeof t=="function"&&t(g)},[t,c,n]),m=x.useCallback(()=>{if(u&&typeof s=="function"){s(a,o);return}h(o)},[o,s,h,u,a]);return r.jsx(Wu,{active:e,disabled:u,label:f,onClick:()=>m(),size:i?"x-small":"small",value:o})};Gu.displayName="ProductCard.SizeSelector.SkuItem";const Vu=({callback:e,className:t="",children:n,setNotify:o,...s})=>{const{isMobile:a,item:{isVariantOf:{hasVariant:i}},selectedSku:c}=Ke();return r.jsxs("div",{...s,className:p.helpers.classNameConcat(Ne["product-card--selectors--size"],t),"data-mobile":a,children:[r.jsx("div",{className:Ne["product-card--selectors--size--skus"],children:Array.isArray(i)&&i.map((l,u)=>r.jsx(Gu,{active:c===l,callback:e,item:l,selectedSku:c,setNotify:o},`size--${u}--${l.sku}`))}),r.jsx("div",{className:Ne["product-card--selectors--size--button"],children:n})]})};Vu.displayName="ProductCard.SizeSelector";const Xo=({alt:e="",callback:t,more:n,total:o=4,src:s,url:a,...i})=>r.jsxs(p.ToggleStyle.Wrapper,{...i,onClick:()=>{typeof t=="function"&&t(a)},children:[r.jsx(p.ToggleStyle.DisabledAdornment,{}),r.jsxs(p.ToggleStyle.Texture,{children:[s&&r.jsx(Ie.Image,{alt:e??s,src:s,height:34,width:34}),n&&r.jsx(p.TextStructure.DivWrapper,{className:Ne["product-card--selectors--style--more"],children:r.jsxs("p",{children:["+ ",o]})})]})]}),jg=({children:e,callback:t,data:n,total:o=4,size:s,...a})=>{const{index:i}=Ke(),{triggerSelectItemEventRef:c}=le();return r.jsxs("div",{...a,children:[e,Array.isArray(n)&&n.slice(0,o).map((l,u)=>r.jsx(Xo,{callback:f=>{c.current.trigger=!0,c.current.index=i,typeof t=="function"&&t(f)},src:(l==null?void 0:l.textureImage)??"",alt:l==null?void 0:l.textureAlt,url:l==null?void 0:l.slug,size:s},u)),Array.isArray(n)&&(n==null?void 0:n.length)>o&&r.jsx(Xo,{size:s,total:n.length-o,more:!0})]})},Ku=({callback:e,className:t,data:n,images:o=[],findTexture:s,...a})=>{const{CONSTANTS:i}=Ke(),c=s||i.TEXTURE_IMAGE,l=o==null?void 0:o.find(u=>c.includes(u.alternateName));return r.jsx(jg,{...a,callback:e,className:p.helpers.classNameConcat(Ne["product-card--selectors--style"],t),data:n,size:"x-small",children:l&&r.jsx(Xo,{active:!0,size:"x-small",src:l.url})})};Ku.displayName="ProductCard.StyleSelector";const Xu=({className:e,hasDecimal:t,...n})=>{const{isMobile:o,item:{offers:{lowPrice:s,highPrice:a},installments:{count:i,value:c}},eventDataRef:l}=Ke();l.current.priceInfo={price:s,listPrice:a};const u=U.formatPriceToCurrency(a,t),f=U.formatPriceToCurrency(s,t),h=U.formatPriceToCurrency(c??0),m=o?"horizontal":"stacked";return r.jsx("div",{...n,className:p.helpers.classNameConcat(Ne["product-card--price"],e),"data-mobile":o,children:r.jsx(p.ProductInfo.Root,{size:"small",layout:m,children:r.jsxs(p.ProductInfo.Wrapper,{size:"small",layout:m,children:[r.jsx(p.ProductInfo.ValuesWrapper,{children:f!==u?r.jsxs(r.Fragment,{children:[r.jsx(p.ProductInfo.Price,{label:"originalPrice",value:u,size:"small"}),r.jsx(p.ProductInfo.Price,{label:"discountPrice",value:f,size:"small"})]}):r.jsx(p.ProductInfo.Price,{label:"defaultPrice",value:f,size:"small"})}),i&&i>1&&c?r.jsx(p.ProductInfo.Price,{label:"installment",value:`${i}x ${h}`,size:"small"}):null]})})})};Xu.displayName="ProductCard.Price";const Yu=({tag:e,className:t})=>{const{item:{name:n}}=Ke();return r.jsxs("div",{className:p.helpers.classNameConcat(Ne["product-card--title"],t),children:[r.jsx("div",{className:Ne["product-card--title--tag"],children:e?r.jsx(p.Tag,{size:"small",title:e.value,variant:"quaternary",adornment:{start:e.enableIcon&&e.icon?r.jsx(p.Icon,{name:e.icon,style:{color:e.iconColor}}):null},style:{background:e.tagColor,color:e.textColor},children:e.value}):r.jsx("div",{})}),r.jsx("div",{className:Ne["product-card--title--content"],children:n&&r.jsx(p.TextStructure.Root,{children:r.jsx(p.TextStructure.DivWrapper,{children:r.jsx("h3",{children:n})})})})]})};Yu.displayName="ProductCard.Title";const Qu=({className:e,url:t,poster:n,...o})=>{const{element:s}=Ke();return x.useEffect(()=>{if(!(s!=null&&s.current))return;const a=s.current,i=a.querySelector("video");if(i){const c=new IntersectionObserver(f=>{f.forEach(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]),r.jsx("div",{...o,className:p.helpers.classNameConcat(Ne["product-card--video"],e),children:t&&r.jsx(Ie.Video,{autoPlay:!1,muted:!0,loop:!0,preload:"none",playsInline:!0,poster:n})})};Qu.displayName="ProductCard.Media.Video";const Zu=({children:e,className:t,type:n,...o})=>r.jsx("div",{...o,className:p.helpers.classNameConcat(Ne[`product-card--${n}`],t),children:e});Zu.displayName="ProductCard.Wrapper";const xe={Actions:bu,BuyButton:ju,Header:Bu,Media:qu,Root:Uu,OutStock:Hu,Price:Xu,SizeSelector:Vu,StyleSelector:Ku,Title:Yu,Video:Qu,Wrapper:Zu},Cg="_carousel_w0llv_1",Sg="_shelf__container_w0llv_14",Pg="_shelf_without_carousel_w0llv_34",wg="_card_container_w0llv_52",St={carousel:Cg,"custom-controllers":"_custom-controllers_w0llv_5",shelf__container:Sg,"controllers-arrows-bullets":"_controllers-arrows-bullets_w0llv_23",shelf_without_carousel:Pg,card_container:wg},qa=({title:e})=>r.jsx("div",{className:St.shelf__container,children:e&&r.jsx(p.TextStructure.Root,{children:r.jsxs(p.TextStructure.DivWrapper,{children:[r.jsx("h2",{className:p.helpers.classNameConcat("typography-style-body-md",U.responsive["responsive-mobile-flex"]),children:e}),r.jsx("h2",{className:p.helpers.classNameConcat("typography-style-heading-md",U.responsive["responsive-desktop-flex"]),children:e})]})})}),Eg=({children:e,ICONS:t,itemsPerPage:n,title:o})=>{const{isMobile:s}=ce(),a=n[s?"mobile":"desktop"],{initialize:i,controller:c,itemsStyles:l,pagination:u}=p.Carousel.useCarousel({itemsPerPage:a,gap:10,loop:!0,direction:"row"}),f=x.Children.toArray(e).length;return s||f>=4?r.jsxs(p.Carousel.Root,{innerRef:m=>{i(m)},className:St.carousel,children:[r.jsxs("div",{className:St["custom-controllers"],children:[o&&r.jsx(qa,{title:o}),a<f&&r.jsxs(p.Carousel.Controller,{className:St["controllers-arrows-bullets"],children:[r.jsxs(p.Carousel.Arrows,{children:[r.jsx(p.Button,{variant:"tertiary",onClick:()=>c==null?void 0:c.prevPage(),adornment:{start:r.jsx(p.Icon,{name:t.arrow_left})}}),r.jsx(p.Button,{variant:"tertiary",onClick:()=>c==null?void 0:c.nextPage(),adornment:{start:r.jsx(p.Icon,{name:t.arrow_right})}})]}),!s&&a>2&&r.jsx(p.Carousel.Bullets,{page:u.currentPage,total:u.totalPages,onBulletClick:m=>c==null?void 0:c.navigateTo(m)})]})]}),r.jsx(p.Carousel.Body,{children:x.Children.map(e,(m,d)=>r.jsx(p.Carousel.Item,{style:{...l,overflow:"hidden"},children:m},`${o}_${d}`))})]}):r.jsxs(r.Fragment,{children:[o&&r.jsx(qa,{title:o}),r.jsx("div",{className:St.shelf_without_carousel,children:e})]})},Ju=({className:e,item:t,isMobile:n,size:o,shelfTitle:s,...a})=>{const i=x.useRef(null),{getAvailableProductTag:c}=nt(),{availability:{status:l}}=t,u=h=>{const m=h.filter(d=>!a.CONSTANTS.TEXTURE_IMAGE.includes(d.keywords));return n?m.splice(0,2):m},f=c(t.cluster.highlights);return r.jsx("div",{ref:i,className:St.card_container,children:r.jsxs(xe.Root,{...a,item:{...t,image:u(t.image)},isMobile:n,size:n?"small":"medium",outStock:!l,shelfTitle:s,children:[r.jsx(xe.Header,{product:t,tag:f==null?void 0:f.commercial}),r.jsx(xe.Media,{}),r.jsxs(xe.Wrapper,{type:"body",children:[r.jsx(xe.Title,{tag:f==null?void 0:f.institucional}),r.jsx(xe.Actions,{})]}),r.jsx(xe.Wrapper,{type:"footer"})]})})};Ju.displayName="ProductList.Card";const Ut={Shelf:Eg,Card:Ju},ed=({CONSTANTS:e,inView:t,products:n,innerRef:o})=>{const s=x.useMemo(()=>Lh(n),[n]),{isMobile:a}=ce(),{addItemsToCart:i}=Re(),{sendDataLayerEvent:c}=le(),{getAvailableProductTag:l}=nt(),[u,f]=x.useState({totalPrice:0,products:{}}),h=()=>{const d=Object.values(u.products);i(d),c({functionKey:"skuEvents",data:{event:"add_to_cart",commonData:{products:d.map(g=>{const y=s.find(_=>_.node.id===g.productId);return y==null?void 0:y.node})},supportData:{selectedSkus:d,price:u.totalPrice}}})},m=({selectedProduct:d,productId:g})=>{const y=Dh({selectedProduct:d,productId:g,prevState:u,mainSellerId:e.StoreConfig_MainSellerId});f(y)};return x.useEffect(()=>{if(!t||s.length===0)return;const d=e.BUY_PACKAGE.header.title;c({functionKey:"productListEvent",data:{event:"view_item_list",commonData:{products:s},customData:{item_list_name:d},outsideEcommerceData:{item_list_name:d}}})},[t]),r.jsxs("div",{className:lt.container,ref:o,children:[r.jsx("div",{className:lt["carousel-container"],style:{width:s.length<=3?"max-content":"75%"},children:r.jsx(Ut.Shelf,{title:e.BUY_PACKAGE.header.title,itemsPerPage:{desktop:3,mobile:s.length>=3?2.2:s.length},ICONS:e.ICONS,children:Array.isArray(s)&&s.map(({node:d},g)=>{var b,S,v;const y=l(d.cluster.highlights),{availability:{status:_}}=d;return _?r.jsxs(xe.Root,{item:{...d,image:Ts.helpers.product.getFirstImages({images:d.image,label:{first:e.MAIN_IMAGE,second:e.SECOND_IMAGE}})},isMobile:a,size:"medium",index:g,shelfTitle:e.BUY_PACKAGE.header.title,CONSTANTS:e,children:[r.jsx(xe.Header,{product:d,tag:y.commercial}),r.jsx(xe.Media,{}),r.jsxs(xe.Wrapper,{type:"body",children:[r.jsx(xe.Title,{tag:{value:(b=y.institucional)==null?void 0:b.value,enableIcon:(S=y.institucional)==null?void 0:S.enableIcon,icon:(v=y.institucional)==null?void 0:v.icon}}),r.jsx(xe.Actions,{children:r.jsx(xe.SizeSelector,{callback:j=>m({selectedProduct:j,productId:d.id})})})]})]},d.id):null})})}),r.jsx("div",{className:lt["add-cart-container"],children:r.jsx(Mh,{handleAddAllToCart:h,selectedProducts:u,CONSTANTS:{BUY_BUTTON_LABELS:e.BUY_BUTTON_LABELS,BUY_PACKAGE:e.BUY_PACKAGE,FREIGHT_CALCULATION:e.FREIGHT_CALCULATION}})})]})},$s={"btn-login":"_btn-login_yas63_12","btn-header":"_btn-header_yas63_22","header-animation":"_header-animation_yas63_35"},zs=({id:e})=>{const{setIsOpen:t,cartStore:{items:n}}=Re(),{handleSelectContent:o}=le(),{CONSTANTS:s}=we(),a=n.reduce((i,c)=>i+(c.quantity??0),0);return r.jsx(p.Header.SupportItem,{onClick:()=>{t(!0),o({content:"header:minicart"})},id:e,children:r.jsxs(p.Badge.AutoPositioner,{children:[r.jsx(p.Badge.Count,{count:a,size:"medium",variant:"primary",style:{backgroundColor:"black",display:a>0?"flex":"none"}}),r.jsx(p.Icon,{name:s.header.ICONS.bag,size:"medium"})]})})};zs.displayName="Header.Bag";const Yt=({children:e,href:t,...n})=>t&&t!=="#"?r.jsx(De,{href:t.startsWith("/")?t:`/${t}`,...n,children:e}):e,td=()=>{const{headerData:e}=we(),{handleSelectContent:t}=le(),{reset:n,updateValue:o}=Vt(),s=a=>{a?o(a):n()};return r.jsx(p.Header.Categories,{children:Array.isArray(e.categories)&&e.categories.map((a,i)=>r.jsx(Yt,{href:a.link,onMouseEnter:()=>s(a.submenuId),onFocus:()=>s(a.submenuId),children:r.jsx(p.Header.CategoryItem,{className:$s["btn-header"],value:a.submenuId??null,adornment:{start:r.jsx(p.Icon,{name:a.iconStart}),end:r.jsx(p.Icon,{name:a.iconEnd})},style:{textWrap:"nowrap",gap:"0"},onClick:()=>{t({content:`header:${a.label}`})},children:a.label})},`category-${a.label}-${i}`))})};td.displayName="Header.Categories";function Rg(){const{handleSelectContent:e}=le(),{CONSTANTS:t}=we(),{setValue:n}=hs();return r.jsx(p.Header.SupportItem,{onClick:()=>{n(!0),e({content:"header:search"})},children:r.jsx(p.Icon,{name:t.header.ICONS.search,size:"medium"})})}const Ag={"menu-subcategories-container":"_menu-subcategories-container_a93cr_1"},Ng={"observer-wrapper":"_observer-wrapper_r43gk_1"},zr=({children:e,eventData:t,observerOptions:n,callBackWhenVisible:o,stopOnIntersection:s=!0,className:a,...i})=>{const c=x.useRef(null),l=ds(c,s,n),{sendDataLayerEvent:u}=le();return x.useEffect(()=>{l&&(typeof o=="function"&&o(),t&&u({...t}))},[l]),r.jsx("div",{...i,ref:c,className:p.helpers.classNameConcat(Ng["observer-wrapper"],a),children:e})},rd=({thumbnails:e,category:t,isMobile:n=!0,callBack:o})=>{const{handleSelectPromotionEvent:s}=le(),a=50/e.length;return r.jsx("div",{className:Ag["menu-subcategories-container"],children:e.map((i,c)=>{const l=n?i.srcMobile:i.srcDesk;if(!l)return null;const u={creative_name:"banner-menu",creative_slot:`banner-menu:${t}:${c+1}`,promotion_id:l,promotion_name:i.promotion_name};return r.jsx(zr,{eventData:{functionKey:"readyEvents",data:{event:"view_promotion",readyData:{ecommerce:{...u}}}},observerOptions:{delay:1e3},children:r.jsxs(De,{href:i.link??"#",onClick:()=>{typeof o=="function"&&o(),s({updatePromotionRef:!0,promotion:u})},children:[r.jsx(Ie.Image,{src:l,alt:i.label??l,width:500,height:500,sizes:`(max-width: 768px) 100vw, (max-width: 1023px) 75vw, ${a}vw`}),i.label&&r.jsx("p",{children:i.label})]})},`thumb-${i.label}-${c}`)})})};rd.displayName="Menu.Thumbnail";const Yo={"menu-desktop":"_menu-desktop_1b799_1","menu-categories":"_menu-categories_1b799_12"},nd=({children:e,dividerOnRight:t=!0,subMenu:n,...o})=>{var l;const{router:s}=_e(),{reset:a}=Vt(),{handleSelectContent:i}=le(),{CONSTANTS:c}=we();return r.jsxs("div",{...o,className:Yo["menu-categories"],children:[(l=n==null?void 0:n.subCategories)==null?void 0:l.map((u,f)=>{var d,g,y,_;const h=u.listCollapseDesk&&!((d=u.see_all)!=null&&d.link)?{expandAfterRowsQty:u.rowsToShowDesk}:{},m=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:r.jsx(p.Icon,{name:c.header.ICONS.arrow_right,size:"small"})}};return r.jsxs(p.ComponentList.Structure,{children:[r.jsx(Yt,{href:u.linkLabel,title:u.label,onClick:()=>{u.linkLabel&&(a(),i({content:`menu:${u.label??""}:${n.label??""}`}))},children:r.jsx(p.TextStructure.Root,{children:r.jsx(p.TextStructure.DivWrapper,{children:r.jsx("h2",{children:u.label})})})}),r.jsx(p.ComponentList.List,{columns:1,...h,className:Yo["submenu-categories"],children:(y=u.items)==null?void 0:y.map((b,S)=>r.jsx(p.ComponentList.ListItem,{id:`list-item-${b.label}-${S}`,children:r.jsx(Ge,{href:b.link??"#",size:"x-small",title:b.label??"",disableUnderline:!0,disablePadding:!0,onClick:()=>{a(),i({content:`menu:${u.label??""}:${b.label??""}:${n.label??""}`})},children:b.label})},`list-item-${b.label}-${S}`))}),((_=u.see_all)==null?void 0:_.link)&&r.jsx(p.ComponentList.Support,{...m,size:"small",onClick:()=>{var b;(b=u.see_all)!=null&&b.link&&(a(),i({content:`menu:${u.label??""}:${n.label}`}),s.push(u.see_all.link))},children:u.see_all.link&&u.see_all.label})]},`list-${u.label}-${f}`)}),t&&r.jsx(p.Utils.Divider,{size:"small",direction:"vertical"})]})};nd.displayName="Menu.Categories";const od=({children:e,dividerOnBottom:t=!0,...n})=>{const{CONSTANTS:o}=we();return r.jsxs(r.Fragment,{children:[r.jsx("div",{...n,className:Yo["menu-desktop"],style:{...n.style,justifyContent:o.header.ALIGNMENT_MENU},children:e}),t&&r.jsx(p.Utils.Divider,{size:"small"})]})};od.displayName="Menu.MenuRoot";const Cn={Root:od,Categories:nd,Thumbnail:rd},sd=()=>{const{headerData:e,CONSTANTS:t}=we(),n=Zc(),{reset:o}=Vt();return r.jsx(p.Header.SubMenu,{children:Array.isArray(e.subMenus)&&e.subMenus.map((s,a)=>{const{thumbnails:i,label:c,id:l}=s,u=l===n,f=i==null?void 0:i.some(h=>!!h.srcDesk);return r.jsxs(Cn.Root,{id:l,style:u?{display:"flex",zIndex:t.header.Z_INDEX_WAR.menu_desktop}:{display:"none"},dividerOnBottom:u,children:[r.jsx(Cn.Categories,{dividerOnRight:!!f,subMenu:s}),Array.isArray(i)&&r.jsx(Cn.Thumbnail,{thumbnails:i,isMobile:!1,category:c,callBack:o})]},`submenu-${l}-${a}`)})})};sd.displayName="Header.SubMenu";const ad=()=>{const{handleSelectContent:e}=le(),{CONSTANTS:t}=we();return r.jsx(De,{href:"/favoritos",children:r.jsx(p.Header.SupportItem,{onClick:()=>e({content:"header:wishlist"}),children:r.jsx(p.Icon,{name:t.header.ICONS.favorite_false,size:"medium"})})})};ad.displayName="Header.WishList";const Ig="_root_wvekm_126",Ue={"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:Ig},id=({className:e,children:t,...n})=>r.jsx("div",{...n,className:p.helpers.classNameConcat(Ue["user-menu--content"],e),children:t});id.displayName="UserMenu.Content";var cd=(e=>(e.Account="account",e))(cd||{});const ld=({className:e,cashBack:t,credits:n,link:o,total:s,...a})=>{const i=t?U.formatPriceToCurrency(t):void 0,c=n?U.formatPriceToCurrency(n):void 0,l=s?U.formatPriceToCurrency(s):void 0;return r.jsx(p.Credits.Account,{...a,className:p.helpers.classNameConcat(Ue["user-menu--credits"],e),icon:"wallet",showIcon:!0,cashBackValue:i,creditsValue:c,linkMore:o,totalValue:l,type:cd.Account})};ld.displayName="UserMenu.Credits";const ud=({className:e,children:t,description:n,text:o,...s})=>{const{isMobile:a}=ce();return r.jsx("div",{...s,className:p.helpers.classNameConcat(Ue["user-menu--login"],e),"data-mobile":a,children:r.jsxs("div",{className:Ue["user-menu--login--content"],children:[r.jsx(p.TextStructure.Root,{children:r.jsxs(p.TextStructure.DivWrapper,{alignContent:"flex-start",alignItems:"flex-start",children:[r.jsx("h3",{className:"typography-style-body-lg-strong",children:o}),r.jsx("p",{children:n})]})}),t]})})};ud.displayName="UserMenu.Login";const dd=({className:e,isLogged:t,onLogoutClick:n,ICONS:o,storeConfig:s,isMobile:a})=>{const i=a?ra:ra({ICONS:o,storeConfig:s}).filter(c=>c.deviceShown==="both"||c.deviceShown===(a?"mobile":"desktop"));return r.jsxs("ul",{className:p.helpers.classNameConcat(Ue["user-menu--menu"],e),children:[Array.isArray(i)&&i.map((c,l)=>r.jsx("li",{children:r.jsx(Ge,{href:c.href??"#",size:"small",disableUnderline:!0,adornments:{start:r.jsx(p.Icon,{name:c.icon??"delete"})},children:c.label})},l)),t?r.jsx("li",{children:r.jsx(Ge,{href:`${s.secureSubdomain}/api/vtexid/pub/logout?scope=mariafilo&returnUrl=${encodeURIComponent(`${s.storeUrl}`)}`,size:"small",disableUnderline:!0,onClick:n,adornments:{start:r.jsx(p.Icon,{name:Wm(o)})},children:Um})}):r.jsx(r.Fragment,{})]})};dd.displayName="UserMenu.Menu";const fd=e=>{const t=x.useRef(null),n=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",n),document.addEventListener("keydown",s),document.addEventListener("touchstart",o),()=>{document.removeEventListener("mousedown",n),document.removeEventListener("keydown",s),document.removeEventListener("touchstart",o)}),[n,s,o]),{ref:t}},Tg=e=>{if(!e||typeof window>"u")return 0;const t=window.getComputedStyle(e);return parseInt(t.padding,10)},Og=(e,t,n)=>{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?Tg(e==null?void 0:e.parentElement):0;return{left:s+i/2-(c.width+l*2),top:a+o+n}},pd=x.createContext({}),kg=({children:e,delay:t=600,gap:n=20,isOpen:o,setIsOpen:s,target:a,...i})=>{const c=x.useRef(null),[l,u]=x.useState(!1),[f,h]=x.useState({left:0,top:0}),{ref:m}=fd(()=>{u(!0),typeof window<"u"&&(c.current=window.setTimeout(()=>{s(!1),u(!1)},t))});return x.useEffect(()=>{if(a&&(m!=null&&m.current)){const{left:d,top:g}=Og(m.current,a,n??0);h({left:d,top:g}),u(!1)}},[n,o,a,m]),r.jsx(pd.Provider,{value:x.useMemo(()=>({...i,...f,contentRef:m,isLeaving:l,isOpen:o,setIsOpen:s,setIsLeaving:u,target:a}),[i,f,m,l,o,s,u,a]),children:e})},md=()=>{const e=x.useContext(pd);if(e===void 0)throw new Error("useUserMenuContext must be used within a UserMenuProvider");return e},hd=({children:e,isMobile:t=!1,Z_INDEX_WAR:n})=>{const{isOpen:o,setIsOpen:s}=md();return r.jsxs(p.Modal.Root,{"data-user":"user-menu--modal",isMobile:t??!1,isOpen:o,setIsOpen:s,variant:"sideBottom",className:Ue["modal-root-modifier"],style:{zIndex:n.user_menu_mobile},children:[r.jsx(p.Modal.Header,{navigation:"top",className:Ue["modal-header-modifier"],children:r.jsx(p.Modal.Controls,{navigation:"top",isMobile:!0,className:Ue["modal-controls-modifier"]})}),r.jsx(p.Modal.Body,{children:e})]})};hd.displayName="UserMenu.Modal";const gd=({children:e,component:t,Z_INDEX_WAR:n,isMobile:o,...s})=>r.jsx(kg,{...s,className:Ue.root,children:o?r.jsxs(r.Fragment,{children:[r.jsx(ct.Modal,{Z_INDEX_WAR:n,children:t}),e]}):r.jsx(ct.Tooltip,{component:t,style:{width:304,zIndex:n.user_menu},Z_INDEX_WAR:n,children:e})});gd.displayName="UserMenu.Root";const yd=({children:e,component:t,Z_INDEX_WAR:n,...o})=>{const{contentRef:s,left:a,isLeaving:i,isOpen:c,top:l}=md();return r.jsx(p.Tooltip.Root,{arrow:"top-right",component:r.jsx("div",{...o,ref:s,children:t}),className:p.helpers.classNameConcat(Ue["user-menu--tooltip"],Ue["tooltip-modifier"]),isLeaving:i,isOpen:c,left:a,size:"medium",position:"top",top:l,style:{zIndex:n.user_menu},children:r.jsx("div",{className:Ue["user-menu--tooltip"],children:e})})};yd.displayName="UserMenu.Tooltip";const ct={Credits:ld,Content:id,Login:ud,Menu:dd,Modal:hd,Root:gd,Tooltip:yd},Fr=({children:e,isOpen:t,setIsOpen:n,target:o,storeConfig:s})=>{var m,d,g;const{isMobile:a}=ce(),{CONSTANTS:i}=we(),c=Ot(),l=()=>{window.location.href=`${s.secureSubdomain}/api/io/login?returnUrl=${encodeURIComponent(`${window.location.href}`)}`},u=!!((m=c.user)!=null&&m.userId),{cashback:f,credits:h}=x.useMemo(()=>{var y,_;return{credits:((y=c==null?void 0:c.getCurrentCredits())==null?void 0:y.credits)??0,cashback:((_=c==null?void 0:c.getCurrentCredits())==null?void 0:_.cashback)??0}},[c]);return r.jsx(ct.Root,{component:r.jsxs(ct.Content,{children:[r.jsx(ct.Login,{description:Vm(u),text:Gm(u,((d=c==null?void 0:c.user)==null?void 0:d.firstName)??((g=c==null?void 0:c.user)==null?void 0:g.email)),children:!u&&r.jsx(p.Button,{size:"medium",variant:"quaternary",onClick:()=>l(),children:i.header.MENU_INFO.login.button_text})}),h+f&&u?r.jsx(ct.Credits,{credits:h,cashBack:f,link:`${s.secureSubdomain}/account#/meus-creditos`,total:h+f}):r.jsx(r.Fragment,{}),r.jsx(p.Utils.Divider,{}),r.jsx(ct.Menu,{ICONS:i.header.ICONS,storeConfig:s,isLogged:u,className:U.responsive["responsive-desktop-flex"],onLogoutClick:()=>c.logout()}),r.jsx(ct.Menu,{ICONS:i.header.ICONS,storeConfig:s,isMobile:!0,isLogged:u,className:U.responsive["responsive-mobile-flex"],onLogoutClick:()=>c.logout()})]}),isOpen:t,isMobile:a,setIsOpen:n,target:o,Z_INDEX_WAR:i.header.Z_INDEX_WAR,children:e})};Fr.displayName="UserMenu";const _d=({storeConfig:e})=>{const{CONSTANTS:t,userMenuDesktopRef:n}=we(),{handleSelectContent:o}=le(),{reset:s}=Vt(),{setValue:a}=ys(),i=gs(),c=x.useRef(null);return r.jsxs(r.Fragment,{children:[r.jsxs(p.Header.Wrapper,{children:[r.jsx(p.Header.Logo,{style:{width:"100%"},children:r.jsx(De,{href:"/",onMouseEnter:s,children:r.jsx(p.Icon,{name:t.header.ICONS.logo,size:"x-large",onClick:()=>{o({content:"header:logo"})}})})}),r.jsx(td,{}),r.jsxs(p.Header.Support,{onMouseEnter:s,style:{justifyContent:"flex-end"},children:[r.jsx(Rg,{}),r.jsx(Fr,{isOpen:i,setIsOpen:a,target:c.current,storeConfig:e,children:r.jsx(p.Header.SupportItem,{onClick:()=>{a(!0),o({content:"header:user_menu"})},className:$s["btn-login"],innerRef:n,children:r.jsx(p.Icon,{name:t.header.ICONS.person,size:"medium"})})}),r.jsx(ad,{}),r.jsx(zs,{id:"cart-button"})]})]}),r.jsx(sd,{})]})};_d.displayName="Header.HeaderDesktopWrapper";const Fe={"menu--banners":"_menu--banners_1bvvz_1","menu--banners--item":"_menu--banners--item_1bvvz_6","menu--banners--item--text":"_menu--banners--item--text_1bvvz_17","menu--banners--list":"_menu--banners--list_1bvvz_21","menu--dummy-close":"_menu--dummy-close_1bvvz_46","menu--body":"_menu--body_1bvvz_54","menu--categories":"_menu--categories_1bvvz_67","menu--categories--title":"_menu--categories--title_1bvvz_80","menu--step":"_menu--step_1bvvz_92","menu--sub-category":"_menu--sub-category_1bvvz_108","menu--sub-category--item":"_menu--sub-category--item_1bvvz_115","menu--sub-category--list":"_menu--sub-category--list_1bvvz_121"},vd=({children:e,mobileBannerAlt:t,mobileBannerSrc:n,textColor:o,submenuId:s,label:a,...i})=>r.jsx("button",{...i,className:Fe["menu--banners--item"],children:n?r.jsxs(p.Banner.Container,{children:[r.jsx(p.Banner.ImageWrapper,{children:r.jsx(Ie.Image,{alt:t??n,height:128,src:n,width:343,unoptimized:!0})}),r.jsx(p.Banner.Slot,{verticalAlignment:"end",horizontalAlignment:"center",children:r.jsx(p.TextStructure.Root,{children:r.jsx(p.TextStructure.DivWrapper,{className:Fe["menu--banners--item--text"],children:r.jsx("h2",{className:"typography-style-body-xs",style:o?{color:o}:{},children:e})})})})]}):r.jsx("h2",{...i,children:e})});vd.displayName="Menu.Mobile.Category";const xd=({label:e,...t})=>{const{CONSTANTS:n}=we();return r.jsx(p.Button,{...t,adornment:{end:r.jsx(p.Icon,{name:n.header.ICONS.arrow_right,size:"medium"})},mode:"inverse",size:"medium",variant:"primary",children:e})};xd.displayName="Menu.Mobile.Body.Category";const bd=({subCategory:e,submenuLabel:t,onHandleOut:n,...o})=>r.jsx("div",{...o,className:Fe["menu--sub-category--list"],children:Array.isArray(e==null?void 0:e.items)&&(e==null?void 0:e.items.map((s,a)=>r.jsx(Ge,{disableUnderline:!0,disablePadding:!1,href:s.link??"#",onClick:()=>n(s.label,t),size:"medium",title:s.label??"",children:s.label},a)))});bd.displayName="Menu.Mobile.List";const jd=({current:e,onHandleOut:t})=>{var n;return e?r.jsx("div",{className:Fe["menu--sub-category"],children:Array.isArray(e==null?void 0:e.subCategories)&&((n=e==null?void 0:e.subCategories)==null?void 0:n.map((o,s)=>r.jsxs("div",{className:Fe["menu--sub-category--item"],children:[r.jsx(qt.Title,{onHandleOut:t,subCategory:o,submenuLabel:e==null?void 0:e.id}),r.jsx(qt.List,{onHandleOut:t,subCategory:o,submenuLabel:e==null?void 0:e.id})]},s)))}):r.jsx(r.Fragment,{})};jd.displayName="Menu.Mobile.Body.SubCategory";const Cd=({subCategory:e,submenuLabel:t,onHandleOut:n,...o})=>{var c;const{router:s}=_e(),{handleSelectContent:a}=le(),{CONSTANTS:i}=we();return r.jsxs("div",{...o,className:Fe["menu--categories--title"],children:[r.jsx(Yt,{href:e==null?void 0:e.linkLabel,title:e==null?void 0:e.linkLabel,onClick:()=>{a({content:`menu:${e.label??""}:${t}`})},children:r.jsx(p.TextStructure.Root,{children:r.jsx(p.TextStructure.DivWrapper,{children:r.jsx("h2",{className:"typography-style-body-md",children:e==null?void 0:e.label})})})}),((c=e==null?void 0:e.see_all)==null?void 0:c.link)&&r.jsx(p.ComponentList.Support,{adornment:{end:r.jsx(p.Icon,{name:i.header.ICONS.arrow_right,size:"small"})},size:"small",onClick:()=>{var l;n(e.label,t),(l=e==null?void 0:e.see_all)!=null&&l.link&&s.push(e.see_all.link)},children:e.see_all.label})]})};Cd.displayName="Menu.Mobile";const qt={Banner:vd,Category:xd,List:bd,SubCategory:jd,Title:Cd},Sd=x.createContext({}),Mg=({children:e})=>{const[t,n]=x.useState(null),o=x.useCallback(()=>{n(null)},[]),s=a=>{a!==t&&n(a)};return r.jsx(Sd.Provider,{value:{currentCategory:t,setCurrentCategory:n,handleCloseMenu:o,handleChangeSubMenuOpened:s},children:e})},Pd=()=>x.useContext(Sd),wd=e=>{const{router:t}=_e(),{headerData:n}=we(),{handleSelectContent:o}=le(),{currentCategory:s,setCurrentCategory:a}=Pd(),i=x.useRef(null),c=()=>{if(i.current){const d=i.current;d&&(a(null),d==null||d.click())}},l=(d,g)=>{o({content:`menu:${d}`}),t.push(g),c()},u=(d,g)=>{o({content:`menu:${d}:${g}`}),c()},f=Array.isArray(n==null?void 0:n.categories)?n==null?void 0:n.categories:[],h=Array.isArray(n==null?void 0:n.subMenus)?n==null?void 0:n.subMenus:[],m=d=>{d.submenuId?a(d.submenuId):l(d.label,d.link)};return r.jsxs("div",{...e,className:Fe["menu--body"],style:{transform:`translate3d(calc(-100% * ${s?1:0}), 0px, 0px)`},children:[r.jsx("button",{className:Fe["menu--dummy-close"],ref:i,"data-close":!0}),r.jsxs("div",{className:Fe["menu--step"],"data-active":"true",children:[r.jsx("div",{className:Fe["menu--banners"],children:r.jsx("div",{className:Fe["menu--banners--list"],children:f.map((d,g)=>x.createElement(qt.Banner,{...d,key:g,onClick:()=>l(d.label,d.link)},d.mobileBannerAlt))})}),r.jsx("div",{className:Fe["menu--categories"],children:f.map((d,g)=>r.jsx(qt.Category,{label:d.label,onClick:()=>m(d)},g))})]}),r.jsx("div",{className:Fe["menu--step"],"data-active":!!s,children:r.jsx(qt.SubCategory,{current:h.find(d=>d.id===s),onHandleOut:u})})]})};wd.displayName="Menu.Mobile.Body";const Lg={"menu--header":"_menu--header_1ozdf_1"},Ed=()=>{var s;const{headerData:e}=we(),{currentCategory:t,setCurrentCategory:n}=Pd(),o=(s=e==null?void 0:e.categories)==null?void 0:s.find(a=>a.submenuId===t);return r.jsxs("div",{className:Lg["menu--header"],children:[r.jsx(p.Button,{"data-out":!o,iconNameStart:"arrow-left",mode:"inverse",onClick:()=>n(null)}),o&&r.jsx(p.TextStructure.Root,{children:r.jsx(p.TextStructure.DivWrapper,{alignContent:"center",children:r.jsx("h2",{className:"typography-style-body-lg",children:o==null?void 0:o.label})})}),r.jsx(p.Button,{iconNameStart:"close","data-close":!0,"data-only":!o,mode:"inverse",onClick:()=>n(null)})]})};Ed.displayName="Menu.Mobile.Header";var Qo={exports:{}};function Dg(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 Sn={},Pn={},Ha;function $g(){return Ha||(Ha=1,function(e){"use client";Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"LoadableContext",{enumerable:!0,get:function(){return o}});const o=ke._(x).default.createContext(null);process.env.NODE_ENV!=="production"&&(o.displayName="LoadableContext")}(Pn)),Pn}var Ua;function zg(){return Ua||(Ua=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return d}});const n=ke._(x),o=$g();function s(g){return g&&g.default?g.default:g}const a=[],i=[];let c=!1;function l(g){let y=g(),_={loading:!0,loaded:null,error:null};return _.promise=y.then(b=>(_.loading=!1,_.loaded=b,b)).catch(b=>{throw _.loading=!1,_.error=b,b}),_}function u(g,y){let _=Object.assign({loader:null,loading:null,delay:200,timeout:null,webpack:null,modules:null},y),b=null;function S(){if(!b){const P=new f(g,_);b={getCurrentValue:P.getCurrentValue.bind(P),subscribe:P.subscribe.bind(P),retry:P.retry.bind(P),promise:P.promise.bind(P)}}return b.promise()}if(typeof window>"u"&&a.push(S),!c&&typeof window<"u"){const P=_.webpack&&typeof Dg.resolveWeak=="function"?_.webpack():_.modules;P&&i.push(E=>{for(const C of P)if(E.includes(C))return S()})}function v(){S();const P=n.default.useContext(o.LoadableContext);P&&Array.isArray(_.modules)&&_.modules.forEach(E=>{P(E)})}function j(P,E){v();const C=n.default.useSyncExternalStore(b.subscribe,b.getCurrentValue,b.getCurrentValue);return n.default.useImperativeHandle(E,()=>({retry:b.retry}),[]),n.default.useMemo(()=>C.loading||C.error?n.default.createElement(_.loading,{isLoading:C.loading,pastDelay:C.pastDelay,timedOut:C.timedOut,error:C.error,retry:b.retry}):C.loaded?n.default.createElement(s(C.loaded),P):null,[P,C])}return j.preload=()=>S(),j.displayName="LoadableComponent",n.default.forwardRef(j)}class f{promise(){return this._res.promise}retry(){this._clearTimeouts(),this._res=this._loadFn(this._opts.loader),this._state={pastDelay:!1,timedOut:!1};const{_res:y,_opts:_}=this;y.loading&&(typeof _.delay=="number"&&(_.delay===0?this._state.pastDelay=!0:this._delay=setTimeout(()=>{this._update({pastDelay:!0})},_.delay)),typeof _.timeout=="number"&&(this._timeout=setTimeout(()=>{this._update({timedOut:!0})},_.timeout))),this._res.promise.then(()=>{this._update({}),this._clearTimeouts()}).catch(b=>{this._update({}),this._clearTimeouts()}),this._update({})}_update(y){this._state={...this._state,error:this._res.error,loaded:this._res.loaded,loading:this._res.loading,...y},this._callbacks.forEach(_=>_())}_clearTimeouts(){clearTimeout(this._delay),clearTimeout(this._timeout)}getCurrentValue(){return this._state}subscribe(y){return this._callbacks.add(y),()=>{this._callbacks.delete(y)}}constructor(y,_){this._loadFn=y,this._opts=_,this._callbacks=new Set,this._delay=null,this._timeout=null,this.retry()}}function h(g){return u(l,g)}function m(g,y){let _=[];for(;g.length;){let b=g.pop();_.push(b(y))}return Promise.all(_).then(()=>{if(g.length)return m(g,y)})}h.preloadAll=()=>new Promise((g,y)=>{m(a).then(g,y)}),h.preloadReady=g=>(g===void 0&&(g=[]),new Promise(y=>{const _=()=>(c=!0,y());m(i,g).then(_,_)})),typeof window<"u"&&(window.__NEXT_PRELOADREADY=h.preloadReady);const d=h}(Sn)),Sn}(function(e,t){Object.defineProperty(t,"__esModule",{value:!0});function n(f,h){for(var m in h)Object.defineProperty(f,m,{enumerable:!0,get:h[m]})}n(t,{noSSR:function(){return l},default:function(){return u}});const o=ke,s=o._(x),a=o._(zg()),i=typeof window>"u";function c(f){return{default:(f==null?void 0:f.default)||f}}function l(f,h){if(delete h.webpack,delete h.modules,!i)return f(h);const m=h.loading;return()=>s.default.createElement(m,{error:null,isLoading:!0,pastDelay:!1,timedOut:!1})}function u(f,h){let m=a.default,d={loading:_=>{let{error:b,isLoading:S,pastDelay:v}=_;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}};f instanceof Promise?d.loader=()=>f:typeof f=="function"?d.loader=f:typeof f=="object"&&(d={...d,...f}),d={...d,...h};const g=d.loader,y=()=>g!=null?g().then(c):Promise.resolve(c(()=>null));return d.loadableGenerated&&(d={...d,...d.loadableGenerated},delete d.loadableGenerated),typeof d.ssr=="boolean"&&!d.ssr?(delete d.webpack,delete d.modules,l(m,d)):m({...d,loader:y})}(typeof t.default=="function"||typeof t.default=="object"&&t.default!==null)&&typeof t.default.__esModule>"u"&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)})(Qo,Qo.exports);var Fg=Qo.exports,Bg=Fg;const Rd=Mr(Bg),wr={"modal-modifier":"_modal-modifier_394qw_1","menu--navigation-bar":"_menu--navigation-bar_394qw_15","menu--root":"_menu--root_394qw_25"},Ad=({children:e})=>{const{menuIsOpen:t,setMenuIsOpen:n}=bs(),{CONSTANTS:o}=we();return r.jsxs(p.Modal.RootWithoutPortal,{className:wr["modal-modifier"],isOpen:t,setIsOpen:n,variant:"sideRight",style:{bottom:"unset",overflowY:"hidden",position:"fixed",top:0,zIndex:o.header.Z_INDEX_WAR.menu_mobile},children:[r.jsx(Ed,{}),r.jsx(p.Modal.Body,{className:wr["menu--root"],children:e})]})};Ad.displayName="Menu.MenuRoot";const qg=Rd(()=>Promise.resolve(Ad),{ssr:!1}),Nd=({children:e,last:t=!1,...n})=>r.jsxs(r.Fragment,{children:[r.jsx(p.Button,{...n,"data-close":!0,size:"small",variant:"tertiary",children:e}),!t&&r.jsx(p.Utils.Divider,{direction:"vertical",size:"small",className:wr.divider})]});Nd.displayName="Menu.NavigationBarItem";const Id=()=>{const{setUserMenuIsOpen:e}=bs(),{handleSelectContent:t}=le(),{CONSTANTS:n}=we(),{router:o}=_e(),s=[{iconNameStart:n.header.ICONS.person,onClick:()=>{e(!0),t({content:"menu:user_menu"})},text:n.header.MENU_INFO.login.button_text},{iconNameStart:n.header.MENU_INFO.bag.button_icon,onClick:()=>{t({content:"menu:wishlist"}),o.push("/favoritos")},text:n.header.MENU_INFO.bag.button_text},{last:!0,iconNameStart:n.header.MENU_INFO.store.button_icon,onClick:()=>{t({content:"menu:store"}),o.push("/institucional/lojas")},text:n.header.MENU_INFO.store.button_text}];return r.jsx(p.Card,{id:"menu-navigationbar",shadow:!0,className:wr["menu--navigation-bar"],style:{zIndex:n.header.Z_INDEX_WAR.menu_mobile_navigation_bar},children:Array.isArray(s)&&s.map((a,i)=>x.createElement(Nd,{...a,key:i},a.text))})};Id.displayName="Menu.NavigationBar";const wn={Body:wd,NavigationBar:Id,Root:qg},Td=({storeConfig:e,SearchModal:t})=>{const n=x.useRef(null),{CONSTANTS:o}=we(),{MENU_NAVIGATION_BAR_ALLOWED:s,ICONS:a}=o.header,{handleSelectContent:i}=le(),{setValue:c}=hs(),{setValue:l}=tl(),{setValue:u}=ys(),f=gs(),h=el(),m=nl();return r.jsxs(r.Fragment,{children:[r.jsxs(p.Header.Wrapper,{children:[r.jsx(p.Header.Logo,{style:{width:"100%"},children:r.jsx(De,{href:"/",children:r.jsx(p.Icon,{name:a.logo,size:"x-large",onClick:()=>{i({content:"header:logo"})}})})}),r.jsxs(p.Header.Support,{children:[r.jsx(p.Header.SupportItem,{onClick:()=>{c(!0),i({content:"header:search"})},children:r.jsx(p.Icon,{name:a.search,size:"medium"})}),r.jsx(zs,{}),r.jsxs(p.Header.SupportItem,{onClick:()=>l(!0),children:[r.jsx("span",{ref:n}),r.jsx(p.Icon,{name:a.menu,size:"medium"})]})]})]}),r.jsx(t,{setModalIsOpen:c,isOpen:m,recommendations:!1,trends:!0}),r.jsx(gl,{menuIsOpen:h,setMenuIsOpen:l,userMenuIsOpen:h,setUserMenuIsOpen:u,children:r.jsx(Fr,{storeConfig:e,isOpen:f,setIsOpen:u,target:n==null?void 0:n.current,children:r.jsxs(wn.Root,{children:[r.jsx(wn.Body,{}),s?r.jsx(wn.NavigationBar,{}):r.jsx(r.Fragment,{})]})})})]})};Td.displayName="Header.HeaderMobileWrapper";const Hg=x.createContext({}),Ug=({children:e})=>{const{sendDataLayerEvent:t}=le(),{cartStore:n,isOpen:o}=Re();x.useEffect(()=>{o&&t({functionKey:"viewCartEvent",data:{commonData:{cartStore:n}}})},[o]),x.useEffect(()=>{var a,i,c;if(n.id&&!((i=(a=n.marketingData)==null?void 0:a.marketingTags)!=null&&i.includes("faststore"))){const{id:l}=n;mt.post("/api/checkout/order-form/attachments/marketing-data",{orderFormId:l,marketingData:{...n==null?void 0:n.marketingData,marketingTags:Hc(((c=n.marketingData)==null?void 0:c.marketingTags)??[])}}).catch(u=>{console.error(u)})}},[n]);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 r.jsx(Hg.Provider,{value:{handleUpdateItemQuantityEvent:s},children:e})},Wg="_fadeInOut_ottz1_1",Gg="_fadeOut_ottz1_1",de={"mc--cashback":"_mc--cashback_ottz1_1","mc--cashback--positive":"_mc--cashback--positive_ottz1_21","mc--cashback--alert":"_mc--cashback--alert_ottz1_24","mc--container--actions":"_mc--container--actions_ottz1_28","mc--container--actions--secondary":"_mc--container--actions--secondary_ottz1_36","mc--container--actions--toggle-size-modifier":"_mc--container--actions--toggle-size-modifier_ottz1_54","mc--footer":"_mc--footer_ottz1_58","mc--footer--actions":"_mc--footer--actions_ottz1_67","mc--footer--actions-button":"_mc--footer--actions-button_ottz1_73","mc--footer--total":"_mc--footer--total_ottz1_89","mc--footer--total--info":"_mc--footer--total--info_ottz1_94","mc--footer--total--info--content":"_mc--footer--total--info--content_ottz1_99","mc--field":"_mc--field_ottz1_143","mc--body":"_mc--body_ottz1_183","mc--body--products":"_mc--body--products_ottz1_190","mc--body--empty--feedback":"_mc--body--empty--feedback_ottz1_198","mc--body--empty--text":"_mc--body--empty--text_ottz1_203","mc--header":"_mc--header_ottz1_217","mc--header--subtitle":"_mc--header--subtitle_ottz1_243","mc--notify":"_mc--notify_ottz1_284","mc--notify--content":"_mc--notify--content_ottz1_299","mc--notify--item":"_mc--notify--item_ottz1_312",fadeInOut:Wg,fadeOut:Gg,"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"},Od=({item:{id:e,message:t,callback:n},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 r.jsx("div",{className:de["mc--notify--item"],ref:a,onAnimationEnd:()=>c(e),children:r.jsxs(p.SnackBar.Structure,{size:"medium",children:[r.jsx(p.SnackBar.Content,{title:t}),r.jsxs(p.SnackBar.Support,{children:[typeof n=="function"&&r.jsx(p.Button,{onClick:()=>{n(),i()},size:"small",variant:"tertiary",children:"Desfazer"}),r.jsx(p.Button,{iconNameStart:s.close,iconSize:"small",onClick:()=>i(),variant:"tertiary"})]})]})},e)};Od.displayName="MiniCart.Notify.Item";const kd=({ICONS:e})=>{const t=ps(),{removeNotification:n}=ms(),o=t.length?[...t].sort((s,a)=>a.id-s.id):[];return r.jsx("div",{className:de["mc--notify"],children:r.jsx("div",{className:de["mc--notify--content"],children:Array.isArray(o)&&o.map(s=>r.jsx(Od,{item:s,removeNotification:n,ICONS:e},s.id))})})};kd.displayName="MiniCart.Notifications";const Vg=({handleSendEvent:e,onHandleRemove:t,product:n,MINICART_CONFIG:o,...s})=>{const a=Tt(),{toggleProduct:i}=vt(),{itemOffered:{isVariationOf:{productGroupID:c}},quantity:l}=n;return r.jsx(p.Button,{...s,adornment:{end:r.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})},Md=({handleSendEvent:e,product:t,ICONS:n,MINICART_CONFIG:o,...s})=>{const{addToCart:a,removeToCart:i}=Re(),{bundleItems:c=[],id:l,uniqueId:u,seller:f,offerings:h,quantity:m}=t,d=(g,y,_)=>{i(l,g.title,()=>{typeof _=="function"&&_(),a({id:l,quantity:y,seller:f},{id:l,texture:g.texture},!0)})};return r.jsxs(r.Fragment,{children:[r.jsxs("div",{className:de["mc--card--actions--add-remove"],children:[o.has_wishlist_button&&r.jsx(Vg,{...s,product:t,handleSendEvent:e,onHandleRemove:d,ICONS:n,MINICART_CONFIG:o}),r.jsx(p.Button,{...s,adornment:{end:r.jsx(p.Icon,{name:n.delete,size:"small"})},variant:"secondary",state:"danger",onClick:()=>{d({texture:"mini-cart",title:`${o.messages.remove}`},m),e("remove_from_cart","skuEvents")},children:o.messages.remove_button})]}),o.has_gift_option&&r.jsx(Ct.Gift,{uniqueId:u,bundleItems:c,offerings:h,ICONS:n,MINICART_CONFIG:o})]})};Md.displayName="MiniCart.Card.Actions";const Ld=({bundleItems:e,offerings:t,uniqueId:n,ICONS:o,MINICART_CONFIG:s})=>{const[a,i]=x.useState(!1),{toggleGiftItemCart:c}=Re(),l=()=>{if(t instanceof Object&&Array.isArray(t)){const[h]=t;if(h){i(!0);const m=e.some(d=>d.id===h.id);c(n,String(h.id),m).then(()=>i(!1))}}},u=t[0],f=e.find(h=>h.id===u.id);return u&&"id"in u?r.jsx("div",{className:de["mc--card--actions--gift"],children:r.jsx(p.Checkbox,{adornment:r.jsx(p.Icon,{name:o.check}),checked:!!f,disabled:a,label:s.messages.giftPackage,onChange:l})}):null};Ld.displayName="MiniCart.Card.Gift";const Dd=({itemOffered:e})=>{const t=U.updatedResizedImg(e==null?void 0:e.image[0].url,{width:200,height:300});return r.jsx(De,{href:`${e==null?void 0:e.slug}`,className:de["mc--card--product-link"],children:r.jsx(Ie.Image,{alt:(e==null?void 0:e.image[0].alternateName)||"Produto",src:t||"",width:108,height:164})})};Dd.displayName="MiniCart.Card.Media";const $d=({name:e,skuName:t,tagName:n,className:o})=>r.jsxs(r.Fragment,{children:[n&&r.jsx(p.Tag,{variant:"quaternary",title:n,style:{textTransform:"uppercase"},children:n}),r.jsx("p",{className:p.helpers.classNameConcat(de["mc--card--name"],o),children:U.getProductNameWithoutSku(e??"",t??"")})]});$d.displayName="MiniCart.Card.Name";const zd=({total:e,totalList:t})=>r.jsx(p.ProductInfo.Root,{children:r.jsx(p.TextStructure.Root,{children:r.jsx(p.TextStructure.DivWrapper,{className:de["mc--card--price"],children:r.jsx(p.ProductInfo.Wrapper,{className:de["mc--card--price--details"],size:"small",layout:"horizontal",children:t&&e!==t?r.jsxs(r.Fragment,{children:[r.jsx(p.ProductInfo.Price,{label:"originalPrice",value:U.formatPriceToCurrency(t),size:"small"}),r.jsx(p.ProductInfo.Price,{label:"discountPrice",value:U.formatPriceToCurrency(e),size:"small"})]}):r.jsx(p.ProductInfo.Price,{label:"defaultPrice",value:U.formatPriceToCurrency(e),size:"small"})})})})});zd.displayName="MiniCart.ProductPrice";const Fd=({product:e,TEXTURE_IMAGE:t,TOGGLE_STYLE_MODIFIER:n})=>{var u;const[o,s]=x.useState(""),a=x.useRef(null),{cartStore:{options:i}}=Re(),c=e.itemOffered.isVariationOf.productGroupID,l=x.useCallback(()=>{var h;const f=(h=i==null?void 0:i.find(m=>m.id===c))==null?void 0:h.texture;if(f){s(f);return}fetch("/api/catalog/product/info",{method:"POST",priority:"low",body:JSON.stringify({ids:[c]})}).then(m=>m.json()).then(m=>{const d=m.data[0].items.find(g=>g.itemId===e.id);if(d){const g=d.images.find(y=>t.includes(y.imageLabel));if(g!=null&&g.imageUrl){s(g.imageUrl);return}s(d.images[0].imageUrl)}}).catch(m=>{console.error(m)})},[i,c,e.id]);return x.useEffect(()=>{if(!a.current)return;new IntersectionObserver(l).observe(a.current)},[l]),r.jsx("div",{ref:a,children:r.jsx(p.ToggleStyle.Wrapper,{size:"small",style:n,children:r.jsx(p.ToggleStyle.Texture,{children:o?r.jsx(Ie.Image,{alt:((u=e.itemOffered)==null?void 0:u.image[0].alternateName)??"Produto",src:o,width:164,height:164,style:n}):r.jsx(lu,{})})})})};Fd.displayName="MiniCart.Card.Style";const Bd=({product:e,NAME_SPLIT_SYMBOL:t,TEXTURE_IMAGE:n,TOGGLE_STYLE_MODIFIER:o})=>{const{size:s}=U.getColorAndSizeFromSkuName(e.itemOffered.skuName??"",t);return r.jsxs(p.Utils.Row,{alignItems:"center",children:[r.jsx(Fd,{product:e,TEXTURE_IMAGE:n,TOGGLE_STYLE_MODIFIER:o}),r.jsx(p.Utils.Divider,{direction:"vertical",size:"small",style:{height:24}}),s&&r.jsx(p.ToggleSize.Wrapper,{size:"small",variation:"fill",className:de["mc-container-actions--toggle-size-modifier"],children:r.jsx(p.ToggleSize.Text,{children:s})})]})};Bd.displayName="MiniCart.Card.Sku";const Ct={Actions:Md,Gift:Ld,Media:Dd,Name:$d,Price:zd,Sku:Bd},Kg=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}},qd=({available:e=!0,index:t,product:n,ICONS:o,MINICART_CONFIG:s,NAME_SPLIT_SYMBOL:a,TEXTURE_IMAGE:i,TOGGLE_STYLE_MODIFIER:c})=>{var h,m;const{sendDataLayerEvent:l}=le(),u=Kg(n),f=(d,g)=>{const y={commonData:{...n,...u},customData:{index:t},event:d};if(g==="skuEvents"){const _={...n,...u};y.supportData={selectedSkus:[_]},y.commonData.products=[_]}l({functionKey:g,data:y})};return r.jsxs("div",{className:p.helpers.classNameConcat(de["mc--card"],e?"":de["mc--card--unavailable"]),children:[r.jsx(Ct.Media,{itemOffered:n.itemOffered}),r.jsxs("div",{className:de["mc--card--content-info"],children:[r.jsx(Ct.Name,{name:((h=n.itemOffered)==null?void 0:h.name)??"",skuName:(m=n.itemOffered)==null?void 0:m.skuName}),r.jsxs("div",{className:de["mc--card--details"],children:[r.jsx("div",{className:de["mc--card--actions"],children:e?r.jsx(Ct.Price,{total:u.price,totalList:u.listPrice}):r.jsx(p.Tag,{variant:"secondary",size:"small",children:"Indisponível"})}),r.jsxs("div",{className:de["mc--card--actions--secondary"],children:[e&&r.jsx(Ct.Sku,{product:n,NAME_SPLIT_SYMBOL:a,TEXTURE_IMAGE:i,TOGGLE_STYLE_MODIFIER:c}),r.jsx(Ct.Actions,{handleSendEvent:f,product:n,size:"small",variant:"tertiary",ICONS:o,MINICART_CONFIG:s})]})]})]})]})};qd.displayName="MiniCart.Card";const Hd=({type:e="positive",ICONS:t,MESSAGE_CASHBACK:n})=>{var a;const{toExpire:o}=Ot(),s=((a=o==null?void 0:o.cashback)==null?void 0:a.reduce((i,c)=>i+c.remaining_value,0))??0;return s>0?r.jsxs("div",{className:p.helpers.classNameConcat(de["mc--cashback"],de[`mc--cashback--${e}`]),children:[r.jsx(p.Icon,{name:t.alert_circle,size:"medium"}),r.jsxs("p",{children:[r.jsx("span",{children:U.formatPriceToCurrency(s)})," ",n.title]})]}):null};Hd.displayName="MiniCart.Cashback";const Ud=({type:e,ICONS:t,MINICART_CONFIG:n})=>{const{addCouponSeller:o,removeCoupon:s,removeSellerCode:a,cartStore:{marketingData:i,openTextField:c}}=Re(),[l,u]=x.useState(!1),[f,h]=x.useState(!1),m=x.useCallback(()=>{let _="";return e==="coupon"?_=(i==null?void 0:i.coupon)??"":_=String((c==null?void 0:c.value)??""),_.toUpperCase()??""},[i,c,e]),[d,g]=x.useState(!!m()),y=async _=>{h(!0),!!m()&&(e==="coupon"?await s():await a(),g(!1),u(!1)),await o(_,e).then(S=>{if(!S.statusOk&&_||S.code!==200){_?(u(!0),g(!1)):u(!1);return}g(!0),u(!1)}).catch(()=>u(!0)).finally(()=>h(!1))};return r.jsx(Me.Field,{hasError:l,hasSuccess:d,isLoading:f,onHandler:y,type:e,title:e==="coupon"?`${n.messages.descount_cupom_placeholder}`:`${n.messages.sellers_code_placeholder}`,value:m(),MINICART_CONFIG:n,ICONS:t})};Ud.displayName="MiniCart.CouponSeller";const Wd=({ICONS:e,MINICART_CONFIG:t,PLP_NOT_RESULT:n})=>{const{router:o}=_e(),s=()=>{o.push(n.link)};return r.jsxs(p.Utils.Column,{alignContent:"center",alignItems:"center",gap:"24px",className:de["mc--body--empty--feedback"],children:[r.jsx(p.TextStructure.Root,{children:r.jsx(p.TextStructure.DivWrapper,{children:r.jsxs("p",{className:`typography-style-body-xs ${de["mc--body--empty--text"]}`,children:[t.messages.empty_card," "]})})}),r.jsx(p.Button,{variant:"tertiary",size:"large",onClick:()=>s(),"data-close":!0,adornment:{end:r.jsx(p.Icon,{name:e.arrow_right,size:"medium"})},children:t.messages.empty_bag})]})};Wd.displayName="MiniCart.Feedback";const Xg=e=>{const t=e.replace(/\D/g,"");return t.length>5?`${t.slice(0,5)}-${t.slice(5,8)}`:t},Gd=({feedback:e,hasError:t,onHandler:n,hasSuccess:o,type:s,title:a,value:i,ICONS:c})=>{const[l,u]=x.useState(i);x.useEffect(()=>{t||u(i)},[i,t]);const f=()=>t?r.jsx(p.Icon,{name:c.delete_circle}):String(i).length&&o?r.jsx(p.Icon,{name:c.check_circle}):null,h=()=>{if(s==="seller"){const y=String(i).includes(" - ")?String(i).split(" - ")[0]:l;u(y)}},m=()=>{if(s==="seller"){const y=String(i).includes(" - ")?i:l;u(y)}},d=y=>{const _=y.currentTarget.value;if(_===""&&typeof n=="function"||o&&String(i).length>0&&_!==String(i)||t&&_!==String(i)){u(""),n("");return}if(s==="cep"){const S=Xg(_);u(S)}else u(_)},g=y=>{if(y.key.toLocaleLowerCase()==="enter"&&typeof n=="function"){const _=y.currentTarget.value;n(_)}};return r.jsx(p.TextField.Input,{adornment:{end:f()},mode:"over-label",label:a,feedback:e,value:l,type:"text",onFocus:h,onBlur:m,onChange:d,onKeyDown:g})};Gd.displayName="MiniCart.Field.Input";const Vd=({title:e,ICONS:t,MINICART_CONFIG:n,...o})=>{const s=x.useRef(null),{hasSuccess:a,hasError:i,isLoading:c,onHandler:l,type:u,value:f}=o,h=()=>i?"error":String(f).length&&a?"success":"none",m=x.useCallback(()=>{if(s.current){const y=s.current.querySelector("input");y&&typeof l=="function"&&(f!==""||i?(l(""),y.value=""):l((y==null?void 0:y.value)??""))}},[l,f,i]),d=h();return r.jsx("div",{ref:s,children:r.jsx(p.TextField.Structure,{className:de["mc--field"],input:r.jsx(Gd,{...o,feedback:d,title:e,ICONS:t}),right:r.jsx(p.Button,{"data-has-success":!a,size:"medium",title:String(f).length&&a||i?"Remover":"Aplicar",onClick:()=>m(),disabled:c,children:String(f).length&&a||i?r.jsx(p.Icon,{name:"close",size:"small"}):`${n.messages.promo_code_button}`}),supportText:u==="cep"&&d==="success"?r.jsx(p.TextField.SupportText,{text:"Mais informações de frete na etapa a seguir",feedback:"success",title:"support"}):null})})};Vd.displayName="MiniCart.Field";const Kd=({children:e,ICONS:t,MINICART_CONFIG:n,NAME_SPLIT_SYMBOL:o,PLP_NOT_RESULT:s,TEXTURE_IMAGE:a,TOGGLE_STYLE_MODIFIER:i})=>{const{cartStore:{items:c,messages:l}}=Re();return r.jsxs(p.Modal.Body,{className:de["mc--body"],children:[e,r.jsx("div",{className:de["mc--body--products"],children:Array.isArray(c)&&c.length?c.map((u,f)=>{const h=l.find(m=>{var d;return m.code==="withoutStock"&&((d=m.fields)==null?void 0:d.ean)===u.ean})!==void 0;return r.jsx(Me.Card,{available:!u.availability.includes("outStock")||!h,index:f,product:u,ICONS:t,MINICART_CONFIG:n,NAME_SPLIT_SYMBOL:o,TEXTURE_IMAGE:a,TOGGLE_STYLE_MODIFIER:i},`${u.id}-${u.itemOffered.sku}-${f}`)}):r.jsx(Me.Feedback,{ICONS:t,MINICART_CONFIG:n,PLP_NOT_RESULT:s})})]})};Kd.displayName="MiniCart.Body";const Xd=({children:e,storeConfig:t,MINICART_CONFIG:n})=>{const{cartStore:o}=Re();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 r.jsxs(p.Modal.Footer,{className:de["mc--footer"],children:[e,r.jsx("div",{className:de["mc--footer--actions"],children:r.jsx(p.Button,{variant:"primary",size:"large","data-close":!0,className:de["mc--footer--actions-button"],onClick:s,children:n.messages.checkout_button})})]})};Xd.displayName="MiniCart.Modal.Footer";const Yd=({children:e,className:t,ICONS:n,MINICART_CONFIG:o})=>r.jsxs(p.Accordion.Wrapper,{className:de["mc--discount"],children:[r.jsx(p.Accordion.Header,{id:"frete",title:"Frete",closeIndicator:r.jsx(p.Icon,{name:n.arrow_up,size:"medium"}),openIndicator:r.jsx(p.Icon,{name:n.arrow_down,size:"medium"}),className:p.helpers.classNameConcat(de["mc--discount--header"],t),startOpen:o.promotion_input_starts_open,children:r.jsx(p.TextStructure.Root,{children:r.jsxs(p.TextStructure.DivWrapper,{children:[r.jsxs("h3",{className:"typography-style-body-sm",children:[o.messages.promo_code_title," "]}),r.jsx("p",{className:"typography-style-body-xs",children:o.messages.promo_code_subtitle})]})})}),r.jsx(p.Accordion.Body,{className:de["mc--discount--body"],children:e}),r.jsx(p.Utils.Divider,{direction:"horizontal",size:"small",style:{height:16}})]});Yd.displayName="MiniCart.Discount";const Qd=({discount:e,shipping:t,total:n})=>{var c;const{tags:o}=nt(),s=n-Math.abs(e??0)+(t??0),a=t===0?"Frete Grátis":U.formatPriceToCurrency((t??0)/100),i=[{title:"Subtotal",value:U.formatPriceToCurrency(n/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 r.jsx("div",{className:de["mc--footer--total"],children:Array.isArray(i)&&i.map((l,u)=>r.jsxs("div",{className:de["mc--footer--total--info"],"data-discount":l.title==="Desconto",children:[r.jsx("p",{children:l.title}),r.jsxs("div",{className:de["mc--footer--total--info--content"],children:[l.message&&r.jsx(p.Tag,{variant:"primary",title:l.message,children:l.message}),r.jsx(p.ProductInfo.Price,{className:de["mc--footer--total--info"],label:l.title,value:l.value})]})]},u))})};Qd.displayName="MiniCart.Modal.Footer.Resume.Items";const Zd=({totalizers:e})=>{var s,a,i;const t=((s=e.find(c=>c.id==="Items"))==null?void 0:s.value)??0,n=(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 r.jsx(Qd,{discount:n??0,total:t,shipping:o})};Zd.displayName="MiniCart.Modal.Footer.Totals";const Jd=({ICONS:e,MINICART_CONFIG:t})=>{const{isMobile:n}=ce(),{cartStore:{items:o}}=Re(),s=o.reduce((a,i)=>a+(i.quantity??0),0);return r.jsx(p.Modal.Header,{navigation:"top",className:de["mc--header"],children:r.jsxs(p.Modal.Controls,{navigation:"top",isMobile:!!n,children:[r.jsx(p.Modal.Title,{navigation:"top",title:t.messages.title}),r.jsx("span",{className:de["mc--header--subtitle"],children:s!==1?`[${s}] Produtos`:`[${s}] Produto`}),r.jsx(p.Button,{"data-close":!0,iconNameStart:e.close,size:"small",variant:"tertiary"})]})})};Jd.displayName="MiniCart.Modal.Header";const ef=({ICONS:e,MINICART_CONFIG:t})=>{const{cartStore:{shippingData:n},shipping:o,removeCEP:s}=Re(),{sendDataLayerEvent:a}=le(),[i,c]=x.useState(!1),[l,u]=x.useState(!1),f=x.useCallback(()=>{var b;return((b=n==null?void 0:n.address)==null?void 0:b.postalCode)??""},[n]),[h,m]=x.useState(!!f()),d=()=>{m(!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 I;const P=(I=j==null?void 0:j.slas)==null?void 0:I.find(w=>(w==null?void 0:w.id)===(j==null?void 0:j.selectedSla));if(!P)return v;const E=parseInt(String((P==null?void 0:P.shippingEstimate)??"").replace("bd","")),C=Number((((P==null?void 0:P.price)??0)/100).toFixed(2));if(v.shipping_tier===void 0)return v.shipping_tier=j==null?void 0:j.selectedSla,v.delivery_time=E.toString(),v.shipping=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"})},y=async b=>{const S=b.replace(/\D/g,"");if(S.length!==8)return!1;try{return!(await mt.get(`https://viacep.com.br/ws/${S}/json/`)).data.erro}catch{return!1}},_=async b=>{if(u(!0),!!f()||!(b!=null&&b.trim())){await s(),d(),u(!1);return}if(!await y(b)){c(!0),m(!1),u(!1);return}try{const P=await o(b);if(c(!1),P){m(!0);const E=g(P);E&&a({functionKey:"readyEvents",data:{event:"search_zipcode",readyData:E}})}}catch{c(!0)}finally{u(!1)}};return r.jsx(Me.Field,{hasSuccess:h,hasError:i,isLoading:l,onHandler:_,title:`${t.messages.shipping_calculation_placeholder}`,type:"cep",value:f(),ICONS:e,MINICART_CONFIG:t})};ef.displayName="MiniCart.Shipping";const tf=()=>{var n;const{tags:e}=nt(),t=(n=e==null?void 0:e.flagCart)==null?void 0:n.flagHeader;return t!=null&&t.value?r.jsx(p.Tag,{variant:"tertiary",title:t==null?void 0:t.value,size:"small",adornment:{start:t!=null&&t.enableIcon&&(t!=null&&t.icon)?r.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};tf.displayName="MiniCart.TagMessage";const Me={Body:Kd,Card:qd,Cashback:Hd,CouponSeller:Ud,Discount:Yd,Field:Vd,Feedback:Wd,Shipping:ef,Footer:Xd,Header:Jd,TagMessage:tf,Totals:Zd},Yg=({ICONS:e,MINICART_CONFIG:t,NAME_SPLIT_SYMBOL:n,PLP_NOT_RESULT:o,TEXTURE_IMAGE:s,TOGGLE_STYLE_MODIFIER:a,Z_INDEX_WAR:i,storeConfig:c,minicartStyleModifiers:l})=>{const{isOpen:u,setIsOpen:f,cartStore:h}=Re(),{isMobile:m}=ce();return r.jsxs(p.Modal.Root,{className:p.helpers.classNameConcat(de["minicart--modal-modifier"],l),isMobile:!0,isOpen:u,setIsOpen:f,style:{zIndex:i.modal},variant:m?"sideBottom":"sideRight",children:[r.jsx(Me.Header,{ICONS:e,MINICART_CONFIG:t}),r.jsx(Me.Body,{ICONS:e,MINICART_CONFIG:t,NAME_SPLIT_SYMBOL:n,PLP_NOT_RESULT:o,TEXTURE_IMAGE:s,TOGGLE_STYLE_MODIFIER:a,children:r.jsx(Me.TagMessage,{})}),r.jsxs(Me.Footer,{MINICART_CONFIG:t,storeConfig:c,children:[r.jsxs(Me.Discount,{ICONS:e,MINICART_CONFIG:t,children:[r.jsx(Me.CouponSeller,{type:"seller",ICONS:e,MINICART_CONFIG:t}),r.jsx(Me.CouponSeller,{type:"coupon",ICONS:e,MINICART_CONFIG:t}),r.jsx(Me.Shipping,{ICONS:e,MINICART_CONFIG:t})]}),r.jsx(Me.Totals,{totalizers:h.totalizers})]}),r.jsx(kd,{ICONS:e})]})},rf=({tipBar:e,minicartStyleModifiers:t,menuV2:n,storeConfig:o,SearchModal:s})=>{const{structureRef:a,rootRef:i,CONSTANTS:c}=we(),{header:{HEADER_CONFIGS:l,Z_INDEX_WAR:u},minicart:f}=c;return r.jsx(p.Header.Structure,{innerRef:a,adornment:{start:e},style:{position:"sticky",top:0,zIndex:u.header},className:$s["header-animation"],children:r.jsxs(p.Header.Root,{innerRef:i,style:{zIndex:u.header},variant:l.default_variant,interactiveVariant:l.interactive_variant,children:[n??r.jsx(r.Fragment,{children:r.jsxs(Mg,{children:[r.jsx("div",{className:U.responsive["responsive-mobile-block"],style:{height:"100%",width:"100%",zIndex:u.header_mobile},children:r.jsx(Td,{storeConfig:o,SearchModal:s})}),r.jsx("div",{className:U.responsive["responsive-desktop-block"],style:{height:"100%",width:"100%",zIndex:u.header_desktop},children:r.jsx(_d,{storeConfig:o})})]})}),r.jsx(Ug,{children:r.jsx(Yg,{...f,minicartStyleModifiers:t})}),r.jsx(Os,{title:"Produto adicionado à sua sacola!",CONSTANTS:c.addToCart})]})})};rf.displayName="Header";const Qg="_shippingFreight_6z8rf_6",Zg="_shippingFreight__postalCodeGrid_6z8rf_10",Jg="_shippingFreight__grid_6z8rf_14",ey="_shippingFreight__grid__title_6z8rf_18",ty="_shippingFreight__grid__remember_6z8rf_29",ry="_postalCodeContainer_6z8rf_44",ny="_deliveryStatusBar__tag_6z8rf_49",oy="_deliveryStatusBarError__tag_6z8rf_66",sy="_deliveryInfo_6z8rf_74",ay="_deliveryInfo__content_6z8rf_78",iy="_deliveryInfo__text_6z8rf_84",cy="_deliveryInfo__title_6z8rf_89",ly="_deliveryInfo__subtitle_6z8rf_99",uy="_deliveryInfo__tooltipIcon_6z8rf_109",dy="_deliveryInfo__tooltip_6z8rf_109",fy="_freightGrid_6z8rf_148",py="_freightContainer_6z8rf_155",my="_freightOption__content_6z8rf_160",hy="_freightOption__value_6z8rf_166",gy="_freightOption__title_6z8rf_177",yy="_freightOption__title_item_6z8rf_181",_y="_freightOption__paragraph_6z8rf_192",ge={shippingFreight:Qg,shippingFreight__postalCodeGrid:Zg,shippingFreight__grid:Jg,shippingFreight__grid__title:ey,shippingFreight__grid__remember:ty,postalCodeContainer:ry,deliveryStatusBar__tag:ny,deliveryStatusBarError__tag:oy,deliveryInfo:sy,deliveryInfo__content:ay,deliveryInfo__text:iy,deliveryInfo__title:cy,deliveryInfo__subtitle:ly,deliveryInfo__tooltipIcon:uy,deliveryInfo__tooltip:dy,freightGrid:fy,freightContainer:py,freightOption__content:my,freightOption__value:hy,freightOption__title:gy,freightOption__title_item:yy,freightOption__paragraph:_y,"input-modifier":"_input-modifier_6z8rf_207","freight--tooltip":"_freight--tooltip_6z8rf_227"},vy=({icon:e,title:t,subtitle:n,packageCount:o,packageUnit:s="",labelDescription:a,freightConfig:i,toolTipZIndex:c})=>{const[l,u]=x.useState(!1),f=x.useRef(null),h=()=>u(m=>!m);return r.jsxs("div",{className:ge.deliveryInfo,ref:f,children:[r.jsx(p.Tooltip.Root,{arrow:"bottom",component:r.jsx("div",{children:r.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:f.current}),r.jsxs("div",{className:ge.deliveryInfo__content,children:[r.jsx("div",{className:ge.deliveryInfo__icon,children:r.jsx(p.Icon,{name:e,size:"medium"})}),r.jsxs("div",{className:ge.deliveryInfo__text,children:[r.jsxs("span",{className:ge.deliveryInfo__title,children:[t," ",o," ",s]}),n&&r.jsx("span",{className:ge.deliveryInfo__subtitle,children:n})]}),a&&r.jsxs("div",{className:ge.deliveryInfo__tooltipIcon,onMouseEnter:h,onMouseLeave:h,"aria-label":"Mostrar descrição",children:[r.jsx("span",{children:r.jsx(p.Icon,{name:i.icons.feedback_help,size:"small"})}),l&&r.jsx("div",{className:ge.deliveryInfo__tooltip,children:a})]})]})]})},xy=({value:e,title:t,paragraph:n})=>r.jsx("div",{className:ge.freightOption,children:r.jsxs("div",{className:ge.freightOption__content,children:[r.jsx("span",{className:ge.freightOption__value,children:e}),r.jsx("span",{className:ge.freightOption__title,children:r.jsx(p.TextStructure.Root,{children:r.jsxs(p.TextStructure.DivWrapper,{className:ge.footer__item,children:[r.jsx("span",{className:ge.freightOption__title_item,children:t}),n&&r.jsx("span",{className:ge.freightOption__paragraph,children:n})]})})})]})}),by=({children:e})=>r.jsx("div",{className:ge.freightContainer,children:e}),jy=({children:e})=>r.jsx("div",{className:ge.freightGrid,children:e}),Cy=({children:e})=>r.jsx("div",{className:ge.postalCodeContainer,children:e}),Wa=({message:e,seller:t="",size:n="small",setError:o})=>r.jsx("div",{className:o?ge.deliveryStatusBarError:ge.deliveryStatusBar,children:r.jsxs(p.Tag,{title:e,className:o?ge.deliveryStatusBarError__tag:ge.deliveryStatusBar__tag,size:n,children:[e," ",!o&&t]})}),Sy=e=>{const t=parseInt(e,10);return t===1?`${t} dia`:`${t} dias`},Py=e=>{var n,o,s;const t=[];return(s=(o=(n=e==null?void 0:e.logisticsInfo)==null?void 0:n[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},wy=({component:e,parent:t,top:n,left:o,target:s,contentRef:a,freightConfig:i,toolTipZIndex:c=999,...l})=>{const{isMobile:u}=ce();return r.jsx(r.Fragment,{children:u?r.jsx(p.Tooltip.Root,{arrow:"bottom",component:r.jsxs("div",{...l,ref:a,children:[e,r.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}):r.jsx(p.Tooltip.Root,{arrow:"bottom",component:r.jsxs("div",{...l,ref:a,children:[e,r.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})})},Ey=({onUpdateFreightItems:e,sellerId:t,size:n,skuId:o,quantity:s,setError:a,setIsButtonClicked:i,component:c,freightConfig:l,toolTipZIndex:u})=>{var N,T,z,O;const f=Rt(),h=Rt(W=>W.shipping),[m,d]=x.useState(),[g,y]=x.useState(!1),[_,b]=x.useState(!1),[S,v]=x.useState(!1),j=(T=(N=f.shippingData)==null?void 0:N.address)==null?void 0:T.postalCode,P=!(m!=null&&m.length)&&j?j:m,E=x.useRef(null),C=async W=>{const V=W.target.value.replace(/\D/g,"").slice(0,8);V.length>5?d(V.replace(/^(\d{5})(\d{1,3})/,"$1-$2")):d(V)},R=async W=>{const B=W.target.value.replace(/\D/g,"");try{if((await mt.get(`https://viacep.com.br/ws/${B}/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.")}},I=async()=>{y(!0);try{const W=await mt.post("/api/checkout/simulation",{items:[{id:o,quantity:s,seller:t}],country:"BRA",postalCode:P});e(Py(W.data))}catch(W){console.error("Erro ao atualizar o documento:",W)}finally{y(!1),h(P,"BRA")}},w=async()=>{if(!o){v(!0),setTimeout(()=>v(!1),1500);return}await R({target:{value:P}}),g||(I(),i(!0))};return r.jsxs("div",{ref:E,style:{position:"relative"},children:[!o&&S?r.jsx(wy,{component:c,isOpen:S,parent:E.current,toolTipZIndex:u,freightConfig:l}):r.jsx(r.Fragment,{}),r.jsx("div",{style:{position:"relative"},children:r.jsx(p.TextField.Structure,{title:"structure",style:{width:"100%"},input:r.jsx(p.TextField.Input,{defaultValue:(O=(z=f.shippingData)==null?void 0:z.address)==null?void 0:O.postalCode,label:l.messages.text_input_label,title:"textfield",value:m,sizeVariant:n,onMouseOver:()=>o?null:v(!0),onMouseOut:()=>o?null:v(!1),mode:"simple",onChange:C,onKeyDown:W=>{W.key==="Enter"&&w()},className:ge["input-modifier"],feedback:_?"error":"none"}),right:r.jsx(p.Button,{onClick:w,size:n,title:"button",children:g?r.jsx(p.Spinner,{size:"small",indicatorColor:"#ffffff"}):l.messages.text_input_btn})})})]})},Ry=({children:e,freightConfig:t})=>r.jsxs("div",{className:ge.shippingFreight,children:[r.jsxs("div",{className:ge.shippingFreight__grid,children:[r.jsx("span",{className:ge.shippingFreight__grid__title,children:t.messages.title}),r.jsx("span",{className:ge.shippingFreight__grid__remember,children:r.jsx(Ge,{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})})]}),r.jsx("div",{className:ge.shippingFreight__postalCodeGrid,children:e})]}),Ay=({children:e})=>r.jsx("div",{className:ge.freightContainer,children:e}),nf=({className:e,sellerId:t,skuId:n,quantity:o,size:s,seller:a,local:i,CONSTANTS_PROPS:c})=>{const{sendDataLayerEvent:l}=le(),[u,f]=x.useState(""),[h,m]=x.useState([]),[d,g]=x.useState(""),[y,_]=x.useState(!1),b=v=>f(v),S=v=>{m(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 r.jsxs(Ay,{className:e,children:[r.jsxs(Ry,{freightConfig:c.freightConfig,children:[r.jsx(Cy,{children:r.jsx(Ey,{onUpdateFreightItems:S,skuId:n,quantity:o,size:s,sellerId:t,local:i,setError:g,setIsButtonClicked:_,freightConfig:c.freightConfig,toolTipZIndex:c.toolTipZIndex})}),d?r.jsx(Wa,{size:s,message:d,setError:g}):h.length>0&&r.jsx(Wa,{size:s,message:c.freightConfig.messages.delivered_by,seller:a})]}),y&&!d?h.length>0&&r.jsxs(by,{children:[r.jsx(jy,{children:h.filter(({id:v})=>!v.includes("Retirada")).map(v=>r.jsx(xy,{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}${Sy(v.shippingEstimate)}`,radioValue:u,changeValue:b},v.id))}),c.deliveryInfoBoxesAllowed?r.jsx(vy,{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}):r.jsx(r.Fragment,{})]}):null]})},gt={"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"},Ny=({children:e,href:t,isLast:n,title:o,ICONS:s})=>r.jsx(p.BreadCrumb.Item,{adornment:{end:n&&r.jsx(p.Icon,{name:s.arrow_right})},children:n?r.jsx(Ge,{href:t??"/",size:"medium",title:o,disableUnderline:!0,children:e}):e}),of=()=>{var a;const{state:e}=ze(),{ICONS:t}=Le(),n=e!=null&&e.term&&e.term.length>0?`/${e.term}`:"",o=decodeURIComponent((a=e==null?void 0:e.base)!=null&&a.length?e.base:n??n).slice(1).split("/"),s=Ll(o);return r.jsx("div",{className:gt["pcd-navigation--breadcrumb"],children:r.jsx(p.BreadCrumb.DivWrapper,{children:r.jsx(p.BreadCrumb.List,{children:Array.isArray(s)&&s.map((i,c)=>{var l,u;return x.createElement(Ny,{...i,isLast:c!==s.length-1,key:i.href,title:(l=i.name)==null?void 0:l.replace(/-/g," "),ICONS:t},(u=i.name)==null?void 0:u.replace(/-/g," "))})})})})};of.displayName="PLPNavigation.BreadCrumb";const sf=({children:e,...t})=>r.jsxs("div",{...t,className:gt["pdc-navigation--content"],children:[r.jsx(dt.Filters,{}),e]});sf.displayName="PLPNavigation.Content";const Iy="_sort_35wro_1",Br={sort:Iy,"sort-list-wrapper":"_sort-list-wrapper_35wro_8","sort-list":"_sort-list_35wro_8","sort-button":"_sort-button_35wro_25"},Ty=({children:e,sortListOpen:t,btnAdornment:n,style:o,...s})=>r.jsx(p.Button,{...s,adornment:{end:t?n==null?void 0:n.listOpen:n==null?void 0:n.listClosed},size:"small",variant:"tertiary",style:{...o,textDecoration:"none"},className:Br["sort-button"],children:e}),Oy=e=>r.jsx(p.RadioButton.Radio,{...e}),ky=({children:e,className:t,name:n,...o})=>r.jsx(p.RadioButton.Group,{...o,name:n||"sort-group",className:p.helpers.classNameConcat(Br["sort-list"],t),children:e}),My=({children:e,className:t,shadow:n=!0,padding:o="small",height:s="fit-content",...a})=>r.jsx(p.Card,{...a,shadow:n,className:p.helpers.classNameConcat(Br["sort-list-wrapper"],t),padding:o,height:s,children:e}),af=x.forwardRef(({children:e,className:t,...n},o)=>r.jsx("div",{...n,ref:o,className:p.helpers.classNameConcat(Br.sort,t),children:e}));af.displayName="SortRoot";const qr=({handleSelectValue:e,sortListOpen:t,setSortListOpen:n,searchParams:o,ICONS:s,...a})=>{var m;const i=(m=o==null?void 0:o.get("sort"))==null?void 0:m.replace(":","_"),[c,l]=x.useState(i),{sendDataLayerEvent:u}=le();x.useEffect(()=>{l(i||void 0)},[i]);const{ref:f}=fd(()=>n(!1)),h=d=>{const g=d.target.value;l(g),typeof e=="function"&&e(g),u({functionKey:"filterEvent",data:{customData:{ordering:Lt.options[g]}}}),n(!1)};return r.jsxs(af,{...a,ref:f,children:[r.jsx(Ty,{btnAdornment:{listOpen:r.jsx(p.Icon,{name:s.arrow_up,size:"small"}),listClosed:r.jsx(p.Icon,{name:s.arrow_down,size:"small"})},sortListOpen:t,onClick:()=>n(!t),children:c?Lt.options[c]:Lt.placeholder},"sort-button"),t&&r.jsx(My,{children:r.jsx(ky,{name:"sort-group",value:c??"",onChange:h,children:Object.keys(Lt.options).map(d=>r.jsx(Oy,{label:Lt.options[d],value:d},d))})})]})};qr.displayName="Sort";const cf=x.createContext({}),Ly=({children:e,...t})=>{const[n,o]=x.useState(!1);return r.jsx(cf.Provider,{value:x.useMemo(()=>({...t,openOrderBy:n,setOpenOrderBy:o}),[t,n,o]),children:e})},Dy=()=>{const e=x.useContext(cf);if(e===void 0)throw new Error("usePLPNavigationContext must be used within a PDCNavigationProvider");return e},lf=()=>{const{openOrderBy:e,onSort:t,setOpenFilters:n,setOpenOrderBy:o}=Dy(),{ICONS:s,PDC_NAVIGATION:a,searchParams:i}=Le();return r.jsxs("div",{className:gt["pdc-navigation--filters"],children:[r.jsx(dt.BreadCrumb,{}),r.jsxs("div",{className:gt["pdc-navigation--filters--content"],children:[r.jsx(qr,{handleSelectValue:c=>t(c??"release_desc"),sortListOpen:e,setSortListOpen:o,ICONS:s,searchParams:i}),r.jsx(p.Button,{adornment:{end:r.jsx(p.Icon,{name:s.arrow_down})},onClick:()=>n(!0),size:"small",variant:"tertiary",children:a.filter_button}),r.jsx(dt.Total,{})]})]})};lf.displayName="PLPNavigation.Filters";const uf=({children:e,onSort:t,setOpenFilters:n,style:o,...s})=>{const a=x.useRef(null);return r.jsx(Ly,{onSort:t,setOpenFilters:n,children:r.jsx("div",{...s,className:gt["pdc-navigation"],ref:a,style:{...o},children:r.jsx(dt.Content,{children:e})})})};uf.displayName="Root";const df=({callback:e,selected:t,...n})=>r.jsx("div",{...n,className:gt["pdc-navigation--selected"],children:r.jsx("div",{className:gt["pdc-navigation--selected--container"],children:Array.isArray(t)?t.map(o=>o.key==="productclusterids"?null:r.jsx(dt.SelectedItem,{callback:e,facet:o},o.value)):null})});df.displayName="PLPNavigation.Selected";const Fs=({key:e,PLP_FILTERS:t})=>t.some(n=>n.key===e)?e==="cores-filtraveis":!1,Bs=({value:e,PLP_FILTERS_COLORS:t})=>{var n;return((n=t.find(o=>o.value===e))==null?void 0:n.color)??"#F2F2F2"},ff=({key:e,PLP_FILTERS:t})=>{var n;return(n=t.find(o=>o.key===e))==null?void 0:n.label},pf=({key:e,PLP_FILTERS:t})=>{var n;return((n=t.find(o=>o.key===e))==null?void 0:n.order)??0},Zo=({value:e})=>{const[t,n]=e.split(":").length===2?e.split(":"):[0,0],o=U.formatPriceToCurrency(Number(n));return`${U.formatPriceToCurrency(Number(t))} até ${o}`},mf=({items:e})=>{const t=e.flatMap(s=>[s.range.from,s.range.to]),n=Math.min(...t.map(Math.abs)),o=Math.max(...t.map(Math.abs));return[n,o]},hf=Object.freeze(Object.defineProperty({__proto__:null,checkedColor:Fs,createTagPrice:Zo,getAbsoluteMinMax:mf,getColor:Bs,getName:ff,getOrder:pf},Symbol.toStringTag,{value:"Module"})),We={"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"},gf=({columns:e=2,CONSTANTS:t,...n})=>{var a;const{filters:o,onToggleFacet:s}=kt();return r.jsxs("div",{...n,className:We["filter--modal--body--content"],children:[Array.isArray(o.facets)&&o.facets.map(i=>r.jsx(ot.Item,{columns:e,facet:i,onToggleFacet:s,CONSTANTS:t},i.key)),!((a=o.facets)!=null&&a.length)&&r.jsx(ot.Empty,{PLP_FILTERS_EMPTY:t.PLP_FILTERS_EMPTY})]})};gf.displayName="Filter.Item.Content";const yf=({PLP_FILTERS_EMPTY:e})=>{const t=()=>{window.history.back()};return r.jsxs("div",{className:We["filter--empty"],children:[r.jsxs(p.TextStructure.DivWrapper,{children:[r.jsx("h4",{children:e.title}),r.jsx("p",{children:e.subtitle})]}),r.jsx(p.Button,{onClick:()=>t(),variant:"tertiary",children:e.button})]})};yf.displayName="Filter.Empty";const _f=({columns:e,facet:t,onToggleFacet:n,CONSTANTS:o,...s})=>{const a=pf({key:t.key,PLP_FILTERS:o.PLP_FILTERS}),i=()=>{if(t.__typename==="FacetBoolean"){if(t.key==="cores-filtraveis")return r.jsx(ot.Colors,{onToggleFacet:n,values:t.values,PLP_FILTERS:o.PLP_FILTERS,PLP_FILTERS_COLORS:o.PLP_FILTERS_COLORS});if(t.key==="tamanho")return r.jsx(ot.Sizes,{onToggleFacet:n,values:t.values,PLP_SIZE_ORDER:o.PLP_SIZE_ORDER});if(t.key==="category-2")return r.jsx(ot.Toggle,{columns:e,facetKey:t.key,onToggleFacet:n,values:t.values,ICONS:o.ICONS})}return t.__typename==="FacetRange"?r.jsx(ot.Price,{facet:t}):r.jsx("p",{children:"Filter not support!!!"})};return r.jsx("div",{...s,className:We["filter--item"],style:{order:a},children:r.jsxs(p.Accordion.Wrapper,{style:{width:"100%"},children:[r.jsx(p.Accordion.Header,{id:t.key,closeIndicator:r.jsx(p.Icon,{name:o.ICONS.arrow_up}),openIndicator:r.jsx(p.Icon,{name:o.ICONS.arrow_down}),children:r.jsx(p.TextStructure.Root,{children:r.jsx(p.TextStructure.DivWrapper,{children:r.jsx("h4",{className:"typography-style-body-sm",children:ff({key:t.key,PLP_FILTERS:o.PLP_FILTERS})})})})}),r.jsx(p.Accordion.Body,{children:i()})]})})};_f.displayName="Filter.Item";const vf=({onToggleFacet:e,values:t,PLP_FILTERS:n,PLP_FILTERS_COLORS:o,...s})=>r.jsx(Qe.Root,{...s,children:r.jsx(Qe.List,{children:Array.isArray(t)&&t.map(({key:a,selected:i,value:c})=>r.jsx(Qe.Option,{active:i,"data-color":Fs({key:a,PLP_FILTERS:n}),fill:Bs({value:c,PLP_FILTERS_COLORS:o}),onClick:()=>e({key:a,value:c}),type:"color"},`${a}-${c}`))})});vf.displayName="Filter.Item.Color";const xf=({facet:e,...t})=>{var u,f;const{filters:{selected:n},price:o,onToggleFacet:s}=kt(),[a,i]=(o==null?void 0:o.split(":").map(Number))??[0,100],[c,l]=((f=(u=n==null?void 0:n.find(({key:h})=>h==="price"))==null?void 0:u.value)==null?void 0:f.split(":").map(Number))??[a,i];return r.jsx("div",{...t,className:We["filter--item--price"],children:r.jsxs(p.Slider.SliderDual,{format:"price",initialValue:[c<a?a:c,l>i?i:l],min:a,max:i,type:"dual",step:1,onFinish:h=>{var m,d;h&&s({key:"price",value:`${(m=h.range)==null?void 0:m.min}:${(d=h.range)==null?void 0:d.max}`})},children:[r.jsx(p.TextStructure.Root,{children:r.jsx(p.TextStructure.DivWrapper,{children:r.jsx("p",{"data-min-value":!0})})}),r.jsx(p.TextStructure.Root,{children:r.jsx(p.TextStructure.DivWrapper,{children:r.jsx("p",{"data-max-value":!0})})})]})})};xf.displayName="Filter.Item.Price";const bf=({onToggleFacet:e,values:t,PLP_SIZE_ORDER:n,...o})=>{const s=[...t].sort((a,i)=>{const c=n.indexOf(a.name),l=n.indexOf(i.name);return c-l});return r.jsx(Qe.Root,{...o,children:r.jsx(Qe.List,{children:Array.isArray(s)&&s.map(({key:a,selected:i,value:c})=>r.jsx(Qe.Option,{active:i,text:c,type:"size",onClick:()=>e({key:a,value:c})},c))})})};bf.displayName="Filter.Item.Sizes";const jf=({columns:e,facetKey:t,onToggleFacet:n,values:o,ICONS:s,...a})=>r.jsx("div",{...a,className:We["filter--item--toggle"],children:r.jsx("div",{className:We["filter--item--toggle--container"],style:{gridTemplateColumns:`repeat(${e}, 1fr)`},children:Array.isArray(o)&&o.map(i=>r.jsx(p.Checkbox,{label:(i==null?void 0:i.name)??"",adornment:r.jsx(p.Icon,{name:s.check}),checked:i.selected,onChange:()=>n(i)},i.value))})});jf.displayName="Filter.Item.Toggle";const Cf=({...e})=>{const{isLoading:t}=kt();return r.jsx("div",{className:We["filter--loading"],"data-active":t,...e,children:r.jsx(p.Spinner,{indicatorColor:"#000",background:"#222"})})};Cf.displayName="Filter.Loading";const Sf=({children:e,className:t,isMobile:n=!1,CONSTANTS:{PLP_FILTERS_TITLE:o,ICONS:s}})=>{var f;const{deleteAllFacets:a,filters:i,isOpen:c,target:l,setIsOpen:u}=kt();return r.jsxs(p.Modal.Root,{className:p.helpers.classNameConcat(We["filter--modal"],t),isMobile:n??!1,isOpen:c,parent:l,setIsOpen:u,variant:n?"sideBottom":"sideRight",style:{zIndex:99},children:[r.jsxs(p.Modal.Header,{navigation:"top",children:[r.jsx(p.Modal.Controls,{navigation:"top",isMobile:n,children:r.jsx(p.Button,{"data-close":!0,iconNameStart:s.close,size:"small",variant:"tertiary",style:{marginLeft:"auto"}})}),r.jsx(p.Modal.Title,{navigation:"top",title:o})]}),r.jsxs(p.Modal.Body,{style:{width:500},children:[r.jsx("div",{className:We["filter--modal--body"],children:e}),r.jsx(ot.Loading,{})]}),r.jsx(p.Modal.Footer,{children:r.jsxs("div",{className:We["filter--modal--footer"],children:[r.jsx(p.Button,{"data-close":!0,size:"large",variant:"primary",children:(f=i.facets)!=null&&f.length?"ver resultados":"fechar"}),r.jsx(p.Button,{"data-close":!0,onClick:()=>a(),variant:"tertiary",children:"limpar filtros"})]})})]})};Sf.displayName="Filter.Modal";const Pf=({children:e,className:t,isMobile:n,CONSTANTS:o,...s})=>r.jsx(Jl,{...s,PLP_FILTERS:o.PLP_FILTERS,children:r.jsx(ot.Modal,{className:t,isMobile:n,CONSTANTS:o,children:e})});Pf.displayName="Filter.Root";const wf=({ICONS:e,PLP_FILTERS_COLORS:t,PLP_FILTERS:n})=>{const{filters:o,onToggleFacet:s}=kt();return r.jsx("div",{className:We["filter--selected"],children:r.jsx("div",{className:We["filter--selected--content"],children:Array.isArray(o.selected)&&o.selected.map(({key:a,value:i})=>a==="productclusterids"?null:r.jsx(p.Tag,{title:a==="price"?Zo({value:i}):i,adornment:{end:r.jsx(p.Icon,{name:e.close,size:"x-small"})},colorSquare:Bs({value:i,PLP_FILTERS_COLORS:t}),onClick:()=>s({key:a,value:i}),squareShow:Fs({key:a,PLP_FILTERS:n}),size:"medium",variant:"primary",children:a==="price"?Zo({value:i}):i},i))})})};wf.displayName="Filter.Selected";const ot={Colors:vf,Content:gf,Empty:yf,Modal:Sf,Item:_f,Root:Pf,Loading:Cf,Selected:wf,Price:xf,Sizes:bf,Toggle:jf},{checkedColor:$y,createTagPrice:Ga,getColor:zy}=hf,Ef=({callback:e,facet:t})=>{const{ICONS:n,PLP_FILTERS_COLORS:o,PLP_FILTERS:s}=Le();return r.jsx(p.Tag,{title:(t==null?void 0:t.key)==="price"?Ga({value:t.value}):t.value.toUpperCase(),adornment:{end:r.jsx(p.Icon,{name:n.close,size:"x-small"})},colorSquare:zy({value:t.value,PLP_FILTERS_COLORS:o}),onClick:()=>{typeof e=="function"&&e(t,!0)},squareShow:$y({key:t.key,PLP_FILTERS:s}),size:"medium",variant:"primary",children:(t==null?void 0:t.key)==="price"?Ga({value:t.value}):t.value.toUpperCase()})};Ef.displayName="PLPNavigation.Selected.Item";const Rf=()=>r.jsx(p.TextStructure.Root,{children:r.jsx("p",{id:"pdc-navigation--total"})});Rf.displayName="PLPNavigation.Total";const dt={BreadCrumb:of,Content:sf,Filters:lf,Root:uf,Selected:df,SelectedItem:Ef,Total:Rf},Fy="_footer__bottom_1o9af_2",By="_footer__wrapper_1o9af_10",qy="_footer__main_1o9af_39",Hy="_footer__legalInformation_1o9af_55",Uy="_footer__column_1o9af_77",Wy="_footer__columnContent_1o9af_87",Gy="_footer__item_1o9af_91",Vy="_footer__itemLink_1o9af_107",Ky="_footer__columnTitle_1o9af_122",Xy="_footer__columnTitleIcon_1o9af_134",Yy="_footer__iconList_1o9af_147",Qy="_footer__itemSmallText_1o9af_157",Zy="_payment_1o9af_168",Jy="_footer__iconContainer_1o9af_173",e_="_footer__iconListSubHeader_1o9af_178",t_="_accordionWrapper_1o9af_200",r_="_accordionHeader_1o9af_204",n_="_accordionTextWrapper_1o9af_208",ye={footer__bottom:Fy,footer__wrapper:By,footer__main:qy,footer__legalInformation:Hy,footer__column:Uy,footer__columnContent:Wy,footer__item:Gy,footer__itemLink:Vy,footer__columnTitle:Ky,footer__columnTitleIcon:Xy,footer__iconList:Yy,footer__itemSmallText:Qy,payment:Zy,footer__iconContainer:Jy,footer__iconListSubHeader:e_,accordionWrapper:t_,accordionHeader:r_,accordionTextWrapper:n_,"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 Af={},qs={},Qt={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"warnOnce",{enumerable:!0,get:function(){return t}});let t=n=>{};if(process.env.NODE_ENV!=="production"){const n=new Set;t=o=>{n.has(o)||console.warn(o),n.add(o)}}})(Qt);var Nf={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"getImageBlurSvg",{enumerable:!0,get:function(){return t}});function t(n){let{widthInt:o,heightInt:s,blurWidth:a,blurHeight:i,blurDataURL:c,objectFit:l}=n;const u=20,f=a?a*40:o,h=i?i*40:s,m=f&&h?"viewBox='0 0 "+f+" "+h+"'":"",d=m?"none":l==="contain"?"xMidYMid":l==="cover"?"xMidYMid slice":"none";return"%3Csvg xmlns='http://www.w3.org/2000/svg' "+m+"%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='"+d+"' style='filter: url(%23b);' href='"+c+"'/%3E%3C/svg%3E"}})(Nf);var Hr={};(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 n},imageConfigDefault:function(){return o}});const n=["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}})(Hr);(function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"getImgProps",{enumerable:!0,get:function(){return d}});const t=Qt,n=Nf,o=Hr,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 f(g){return typeof g>"u"?g:typeof g=="number"?Number.isFinite(g)?g:NaN:typeof g=="string"&&/^[0-9]+$/.test(g)?parseInt(g,10):NaN}function h(g,y,_){let{deviceSizes:b,allSizes:S}=g;if(_){const j=/(^|\s)(1?\d?\d)vw/g,P=[];for(let E;E=j.exec(_);E)P.push(parseInt(E[2]));if(P.length){const E=Math.min(...P)*.01;return{widths:S.filter(C=>C>=b[0]*E),kind:"w"}}return{widths:S,kind:"w"}}return typeof y!="number"?{widths:b,kind:"w"}:{widths:[...new Set([y,y*2].map(j=>S.find(P=>P>=j)||S[S.length-1]))],kind:"x"}}function m(g){let{config:y,src:_,unoptimized:b,width:S,quality:v,sizes:j,loader:P}=g;if(b)return{src:_,srcSet:void 0,sizes:void 0};const{widths:E,kind:C}=h(y,S,j),R=E.length-1;return{sizes:!j&&C==="w"?"100vw":j,srcSet:E.map((I,w)=>P({config:y,src:_,quality:v,width:I})+" "+(C==="w"?I:w+1)+C).join(", "),src:P({config:y,src:_,quality:v,width:E[R]})}}function d(g,y){let{src:_,sizes:b,unoptimized:S=!1,priority:v=!1,loading:j,className:P,quality:E,width:C,height:R,fill:I=!1,style:w,onLoad:N,onLoadingComplete:T,placeholder:z="empty",blurDataURL:O,fetchPriority:W,layout:B,objectFit:V,objectPosition:F,lazyBoundary:G,lazyRoot:q,...X}=g;const{imgConf:A,showAltText:k,blurComplete:L,defaultLoader:Y}=y;let ne,ee=A||o.imageConfigDefault;if("allSizes"in ee)ne=ee;else{const K=[...ee.deviceSizes,...ee.imageSizes].sort((Ae,Z)=>Ae-Z),me=ee.deviceSizes.sort((Ae,Z)=>Ae-Z);ne={...ee,allSizes:K,deviceSizes:me}}let D=X.loader||Y;delete X.loader,delete X.srcSet;const te="__next_img_default"in D;if(te){if(ne.loader==="custom")throw new Error('Image with src "'+_+`" is missing "loader" prop.
|
|
5
|
+
Read more: https://nextjs.org/docs/messages/next-image-missing-loader`)}else{const K=D;D=me=>{const{config:Ae,...Z}=me;return K(Z)}}if(B){B==="fill"&&(I=!0);const K={intrinsic:{maxWidth:"100%",height:"auto"},responsive:{width:"100%",height:"auto"}},me={responsive:"100vw",fill:"100vw"},Ae=K[B];Ae&&(w={...w,...Ae});const Z=me[B];Z&&!b&&(b=Z)}let J="",re=f(C),$=f(R),M,oe;if(c(_)){const K=a(_)?_.default:_;if(!K.src)throw new Error("An object should only be passed to the image component src parameter if it comes from a static image import. It must include src. Received "+JSON.stringify(K));if(!K.height||!K.width)throw new Error("An object should only be passed to the image component src parameter if it comes from a static image import. It must include height and width. Received "+JSON.stringify(K));if(M=K.blurWidth,oe=K.blurHeight,O=O||K.blurDataURL,J=K.src,!I){if(!re&&!$)re=K.width,$=K.height;else if(re&&!$){const me=re/K.width;$=Math.round(K.height*me)}else if(!re&&$){const me=$/K.height;re=Math.round(K.width*me)}}}_=typeof _=="string"?_:J;let ie=!v&&(j==="lazy"||typeof j>"u");(!_||_.startsWith("data:")||_.startsWith("blob:"))&&(S=!0,ie=!1),ne.unoptimized&&(S=!0),te&&_.endsWith(".svg")&&!ne.dangerouslyAllowSVG&&(S=!0),v&&(W="high");const fe=f(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(!_)S=!0;else if(I){if(C)throw new Error('Image with src "'+_+'" has both "width" and "fill" properties. Only one should be used.');if(R)throw new Error('Image with src "'+_+'" has both "height" and "fill" properties. Only one should be used.');if(w!=null&&w.position&&w.position!=="absolute")throw new Error('Image with src "'+_+'" has both "fill" and "style.position" properties. Images with "fill" always use position absolute - it cannot be modified.');if(w!=null&&w.width&&w.width!=="100%")throw new Error('Image with src "'+_+'" has both "fill" and "style.width" properties. Images with "fill" always use width 100% - it cannot be modified.');if(w!=null&&w.height&&w.height!=="100%")throw new Error('Image with src "'+_+'" has both "fill" and "style.height" properties. Images with "fill" always use height 100% - it cannot be modified.')}else{if(typeof re>"u")throw new Error('Image with src "'+_+'" is missing required "width" property.');if(isNaN(re))throw new Error('Image with src "'+_+'" has invalid "width" property. Expected a numeric value in pixels but received "'+C+'".');if(typeof $>"u")throw new Error('Image with src "'+_+'" is missing required "height" property.');if(isNaN($))throw new Error('Image with src "'+_+'" has invalid "height" property. Expected a numeric value in pixels but received "'+R+'".')}if(!s.includes(j))throw new Error('Image with src "'+_+'" has invalid "loading" property. Provided "'+j+'" should be one of '+s.map(String).join(",")+".");if(v&&j==="lazy")throw new Error('Image with src "'+_+`" has both "priority" and "loading='lazy'" properties. Only one should be used.`);if(z!=="empty"&&z!=="blur"&&!z.startsWith("data:image/"))throw new Error('Image with src "'+_+'" has invalid "placeholder" property "'+z+'".');if(z!=="empty"&&re&&$&&re*$<1600&&(0,t.warnOnce)('Image with src "'+_+'" is smaller than 40x40. Consider removing the "placeholder" property to improve performance.'),z==="blur"&&!O){const K=["jpeg","png","webp","avif"];throw new Error('Image with src "'+_+`" has "placeholder='blur'" property but is missing the "blurDataURL" property.
|
|
6
6
|
Possible solutions:
|
|
7
7
|
- Add a "blurDataURL" property, the contents should be a small Data URL to represent the image
|
|
8
8
|
- Change the "src" property to a static import with one of the supported file types: `+K.join(",")+` (animated images not supported)
|
|
9
9
|
- Remove the "placeholder" property, effectively no blur effect
|
|
10
|
-
Read more: https://nextjs.org/docs/messages/placeholder-blur-data-url`)}if("ref"in
|
|
11
|
-
Read more: https://nextjs.org/docs/messages/next-image-missing-loader-width`)}for(const[K,me]of Object.entries({layout:
|
|
12
|
-
Read more: https://nextjs.org/docs/messages/next-image-upgrade-to-13`);if(typeof window<"u"&&!u&&window.PerformanceObserver){u=new PerformanceObserver(K=>{for(const Ae of K.getEntries()){var me;const
|
|
13
|
-
Read more: https://nextjs.org/docs/api-reference/next/image#priority`)}});try{u.observe({type:"largest-contentful-paint",buffered:!0})}catch(K){console.error(K)}}}const pe=Object.assign(I?{position:"absolute",height:"100%",width:"100%",left:0,top:0,right:0,bottom:0,objectFit:
|
|
10
|
+
Read more: https://nextjs.org/docs/messages/placeholder-blur-data-url`)}if("ref"in X&&(0,t.warnOnce)('Image with src "'+_+'" is using unsupported "ref" property. Consider using the "onLoadingComplete" property instead.'),!S&&!te){const K=D({config:ne,src:_,width:re||400,quality:fe||75});let me;try{me=new URL(K)}catch{}(K===_||me&&me.pathname===_&&!me.search)&&(0,t.warnOnce)('Image with src "'+_+`" has a "loader" property that does not implement width. Please implement it or use the "unoptimized" property instead.
|
|
11
|
+
Read more: https://nextjs.org/docs/messages/next-image-missing-loader-width`)}for(const[K,me]of Object.entries({layout:B,objectFit:V,objectPosition:F,lazyBoundary:G,lazyRoot:q}))me&&(0,t.warnOnce)('Image with src "'+_+'" has legacy prop "'+K+`". 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(K=>{for(const Ae of K.getEntries()){var me;const Z=(Ae==null||(me=Ae.element)==null?void 0:me.src)||"",se=l.get(Z);se&&!se.priority&&se.placeholder==="empty"&&!se.src.startsWith("data:")&&!se.src.startsWith("blob:")&&(0,t.warnOnce)('Image with src "'+se.src+`" was detected as the Largest Contentful Paint (LCP). Please add the "priority" property if this image is above the fold.
|
|
13
|
+
Read more: https://nextjs.org/docs/api-reference/next/image#priority`)}});try{u.observe({type:"largest-contentful-paint",buffered:!0})}catch(K){console.error(K)}}}const pe=Object.assign(I?{position:"absolute",height:"100%",width:"100%",left:0,top:0,right:0,bottom:0,objectFit:V,objectPosition:F}:{},k?{}:{color:"transparent"},w),ue=!L&&z!=="empty"?z==="blur"?'url("data:image/svg+xml;charset=utf-8,'+(0,n.getImageBlurSvg)({widthInt:re,heightInt:$,blurWidth:M,blurHeight:oe,blurDataURL:O||"",objectFit:pe.objectFit})+'")':'url("'+z+'")':null;let H=ue?{backgroundSize:pe.objectFit||"cover",backgroundPosition:pe.objectPosition||"50% 50%",backgroundRepeat:"no-repeat",backgroundImage:ue}:{};process.env.NODE_ENV==="development"&&H.backgroundImage&&z==="blur"&&O!=null&&O.startsWith("/")&&(H.backgroundImage='url("'+O+'")');const be=m({config:ne,src:_,unoptimized:S,width:re,quality:fe,sizes:b,loader:D});if(process.env.NODE_ENV!=="production"&&typeof window<"u"){let K;try{K=new URL(be.src)}catch{K=new URL(be.src,window.location.href)}l.set(K.href,{src:_,priority:v,placeholder:z})}return{props:{...X,loading:ie?"lazy":j,fetchPriority:W,width:re,height:$,decoding:"async",className:P,style:{...pe,...H},sizes:be.sizes,srcSet:be.srcSet,src:be.src},meta:{unoptimized:S,priority:v,placeholder:z,fill:I}}}})(qs);var Jo={exports:{}},yr={exports:{}},En={},Va;function o_(){return Va||(Va=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return a}});const t=x,n=typeof window>"u",o=n?()=>{}:t.useLayoutEffect,s=n?()=>{}: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(n){var f;c==null||(f=c.mountedInstances)==null||f.add(i.children),u()}return o(()=>{var h;return c==null||(h=c.mountedInstances)==null||h.add(i.children),()=>{var m;c==null||(m=c.mountedInstances)==null||m.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 Rn={},Ka;function s_(){return Ka||(Ka=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"AmpStateContext",{enumerable:!0,get:function(){return o}});const o=ke._(x).default.createContext({});process.env.NODE_ENV!=="production"&&(o.displayName="AmpStateContext")}(Rn)),Rn}var An={},Xa;function If(){return Xa||(Xa=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"HeadManagerContext",{enumerable:!0,get:function(){return o}});const o=ke._(x).default.createContext({});process.env.NODE_ENV!=="production"&&(o.displayName="HeadManagerContext")}(An)),An}var Nn={},Ya;function a_(){return Ya||(Ya=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"isInAmpMode",{enumerable:!0,get:function(){return t}});function t(n){let{ampFirst:o=!1,hybrid:s=!1,hasQuery:a=!1}=n===void 0?{}:n;return o||s&&a}}(Nn)),Nn}var Qa;function i_(){return Qa||(Qa=1,function(e,t){"use client";Object.defineProperty(t,"__esModule",{value:!0});function n(S,v){for(var j in v)Object.defineProperty(S,j,{enumerable:!0,get:v[j]})}n(t,{defaultHead:function(){return h},default:function(){return b}});const o=ke,a=Nt._(x),i=o._(o_()),c=s_(),l=If(),u=a_(),f=Qt;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 m(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,P)=>typeof P=="string"||typeof P=="number"?j:j.concat(P),[])):S.concat(v)}const d=["name","httpEquiv","charSet","itemProp"];function g(){const S=new Set,v=new Set,j=new Set,P={};return E=>{let C=!0,R=!1;if(E.key&&typeof E.key!="number"&&E.key.indexOf("$")>0){R=!0;const I=E.key.slice(E.key.indexOf("$")+1);S.has(I)?C=!1:S.add(I)}switch(E.type){case"title":case"base":v.has(E.type)?C=!1:v.add(E.type);break;case"meta":for(let I=0,w=d.length;I<w;I++){const N=d[I];if(E.props.hasOwnProperty(N))if(N==="charSet")j.has(N)?C=!1:j.add(N);else{const T=E.props[N],z=P[N]||new Set;(N!=="name"||!R)&&z.has(T)?C=!1:(z.add(T),P[N]=z)}}break}return C}}function y(S,v){const{inAmpMode:j}=v;return S.reduce(m,[]).reverse().concat(h(j).reverse()).filter(g()).reverse().map((P,E)=>{const C=P.key||E;if(process.env.NODE_ENV!=="development"&&process.env.__NEXT_OPTIMIZE_FONTS&&!j&&P.type==="link"&&P.props.href&&["https://fonts.googleapis.com/css","https://use.typekit.net/"].some(R=>P.props.href.startsWith(R))){const R={...P.props||{}};return R["data-href"]=R.href,R.href=void 0,R["data-optimized-fonts"]=!0,a.default.cloneElement(P,R)}if(process.env.NODE_ENV==="development")if(P.type==="script"&&P.props.type!=="application/ld+json"){const R=P.props.src?'<script> tag with src="'+P.props.src+'"':"inline <script>";(0,f.warnOnce)("Do not add <script> tags using next/head (see "+R+`). Use next/script instead.
|
|
14
14
|
See more info here: https://nextjs.org/docs/messages/no-script-tags-in-head-component`)}else P.type==="link"&&P.props.rel==="stylesheet"&&(0,f.warnOnce)('Do not add stylesheets using next/head (see <link rel="stylesheet"> tag with href="'+P.props.href+`"). Use Document instead.
|
|
15
|
-
See more info here: https://nextjs.org/docs/messages/no-stylesheets-in-head-component`);return a.default.cloneElement(P,{key:C})})}function _(S){let{children:v}=S;const j=(0,a.useContext)(c.AmpStateContext),P=(0,a.useContext)(l.HeadManagerContext);return a.default.createElement(i.default,{reduceComponentsToState:y,headManager:P,inAmpMode:(0,u.isInAmpMode)(j)},v)}const b=_;(typeof t.default=="function"||typeof t.default=="object"&&t.default!==null)&&typeof t.default.__esModule>"u"&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)}(yr,yr.exports)),yr.exports}var In={},Za;function c_(){return Za||(Za=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"ImageConfigContext",{enumerable:!0,get:function(){return s}});const n=ke._(x),o=Hr,s=n.default.createContext(o.imageConfigDefault);process.env.NODE_ENV!=="production"&&(s.displayName="ImageConfigContext")}(In)),In}var Tn={},On={},kn={exports:{}};const l_=Fh(U.__viteBrowserExternal);var Mn={},Ln={},Dn,Ja;function Tf(){return Ja||(Ja=1,Dn=function(){if(typeof Symbol!="function"||typeof Object.getOwnPropertySymbols!="function")return!1;if(typeof Symbol.iterator=="symbol")return!0;var t={},n=Symbol("test"),o=Object(n);if(typeof n=="string"||Object.prototype.toString.call(n)!=="[object Symbol]"||Object.prototype.toString.call(o)!=="[object Symbol]")return!1;var s=42;t[n]=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]!==n||!Object.prototype.propertyIsEnumerable.call(t,n))return!1;if(typeof Object.getOwnPropertyDescriptor=="function"){var c=Object.getOwnPropertyDescriptor(t,n);if(c.value!==s||c.enumerable!==!0)return!1}return!0}),Dn}var $n,ei;function Ur(){if(ei)return $n;ei=1;var e=Tf();return $n=function(){return e()&&!!Symbol.toStringTag},$n}var zn,ti;function Of(){return ti||(ti=1,zn=Object),zn}var Fn,ri;function u_(){return ri||(ri=1,Fn=Error),Fn}var Bn,ni;function d_(){return ni||(ni=1,Bn=EvalError),Bn}var qn,oi;function f_(){return oi||(oi=1,qn=RangeError),qn}var Hn,si;function p_(){return si||(si=1,Hn=ReferenceError),Hn}var Un,ai;function kf(){return ai||(ai=1,Un=SyntaxError),Un}var Wn,ii;function Zt(){return ii||(ii=1,Wn=TypeError),Wn}var Gn,ci;function m_(){return ci||(ci=1,Gn=URIError),Gn}var Vn,li;function h_(){return li||(li=1,Vn=Math.abs),Vn}var Kn,ui;function g_(){return ui||(ui=1,Kn=Math.floor),Kn}var Xn,di;function y_(){return di||(di=1,Xn=Math.max),Xn}var Yn,fi;function __(){return fi||(fi=1,Yn=Math.min),Yn}var Qn,pi;function v_(){return pi||(pi=1,Qn=Math.pow),Qn}var Zn,mi;function x_(){return mi||(mi=1,Zn=Math.round),Zn}var Jn,hi;function b_(){return hi||(hi=1,Jn=Number.isNaN||function(t){return t!==t}),Jn}var eo,gi;function j_(){if(gi)return eo;gi=1;var e=b_();return eo=function(n){return e(n)||n===0?n:n<0?-1:1},eo}var to,yi;function C_(){return yi||(yi=1,to=Object.getOwnPropertyDescriptor),to}var ro,_i;function Mt(){if(_i)return ro;_i=1;var e=C_();if(e)try{e([],"length")}catch{e=null}return ro=e,ro}var no,vi;function Wr(){if(vi)return no;vi=1;var e=Object.defineProperty||!1;if(e)try{e({},"a",{value:1})}catch{e=!1}return no=e,no}var oo,xi;function S_(){if(xi)return oo;xi=1;var e=typeof Symbol<"u"&&Symbol,t=Tf();return oo=function(){return typeof e!="function"||typeof Symbol!="function"||typeof e("foo")!="symbol"||typeof Symbol("bar")!="symbol"?!1:t()},oo}var so,bi;function Mf(){return bi||(bi=1,so=typeof Reflect<"u"&&Reflect.getPrototypeOf||null),so}var ao,ji;function Lf(){if(ji)return ao;ji=1;var e=Of();return ao=e.getPrototypeOf||null,ao}var io,Ci;function P_(){if(Ci)return io;Ci=1;var e="Function.prototype.bind called on incompatible ",t=Object.prototype.toString,n=Math.max,o="[object Function]",s=function(l,u){for(var f=[],h=0;h<l.length;h+=1)f[h]=l[h];for(var m=0;m<u.length;m+=1)f[m+l.length]=u[m];return f},a=function(l,u){for(var f=[],h=u,m=0;h<l.length;h+=1,m+=1)f[m]=l[h];return f},i=function(c,l){for(var u="",f=0;f<c.length;f+=1)u+=c[f],f+1<c.length&&(u+=l);return u};return io=function(l){var u=this;if(typeof u!="function"||t.apply(u)!==o)throw new TypeError(e+u);for(var f=a(arguments,1),h,m=function(){if(this instanceof h){var b=u.apply(this,s(f,arguments));return Object(b)===b?b:this}return u.apply(l,s(f,arguments))},d=n(0,u.length-f.length),g=[],y=0;y<d;y++)g[y]="$"+y;if(h=Function("binder","return function ("+i(g,",")+"){ return binder.apply(this,arguments); }")(m),u.prototype){var _=function(){};_.prototype=u.prototype,h.prototype=new _,_.prototype=null}return h},io}var co,Si;function Jt(){if(Si)return co;Si=1;var e=P_();return co=Function.prototype.bind||e,co}var lo,Pi;function Hs(){return Pi||(Pi=1,lo=Function.prototype.call),lo}var uo,wi;function Us(){return wi||(wi=1,uo=Function.prototype.apply),uo}var fo,Ei;function w_(){return Ei||(Ei=1,fo=typeof Reflect<"u"&&Reflect&&Reflect.apply),fo}var po,Ri;function Df(){if(Ri)return po;Ri=1;var e=Jt(),t=Us(),n=Hs(),o=w_();return po=o||e.call(n,t),po}var mo,Ai;function Ws(){if(Ai)return mo;Ai=1;var e=Jt(),t=Zt(),n=Hs(),o=Df();return mo=function(a){if(a.length<1||typeof a[0]!="function")throw new t("a function is required");return o(e,n,a)},mo}var ho,Ni;function E_(){if(Ni)return ho;Ni=1;var e=Ws(),t=Mt(),n;try{n=[].__proto__===Array.prototype}catch(i){if(!i||typeof i!="object"||!("code"in i)||i.code!=="ERR_PROTO_ACCESS")throw i}var o=!!n&&t&&t(Object.prototype,"__proto__"),s=Object,a=s.getPrototypeOf;return ho=o&&typeof o.get=="function"?e([o.get]):typeof a=="function"?function(c){return a(c==null?c:s(c))}:!1,ho}var go,Ii;function Gs(){if(Ii)return go;Ii=1;var e=Mf(),t=Lf(),n=E_();return go=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)}:n?function(s){return n(s)}:null,go}var yo,Ti;function $f(){if(Ti)return yo;Ti=1;var e=Function.prototype.call,t=Object.prototype.hasOwnProperty,n=Jt();return yo=n.call(e,t),yo}var _o,Oi;function zf(){if(Oi)return _o;Oi=1;var e,t=Of(),n=u_(),o=d_(),s=f_(),a=p_(),i=kf(),c=Zt(),l=m_(),u=h_(),f=g_(),h=y_(),m=__(),d=v_(),g=x_(),y=j_(),_=Function,b=function(te){try{return _('"use strict"; return ('+te+").constructor;")()}catch{}},S=Mt(),v=Wr(),j=function(){throw new c},P=S?function(){try{return arguments.callee,j}catch{try{return S(arguments,"callee").get}catch{return j}}}():j,E=S_()(),C=Gs(),R=Lf(),I=Mf(),w=Us(),N=Hs(),T={},z=typeof Uint8Array>"u"||!C?e:C(Uint8Array),O={__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%":T,"%AsyncGenerator%":T,"%AsyncGeneratorFunction%":T,"%AsyncIteratorPrototype%":T,"%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%":n,"%eval%":eval,"%EvalError%":o,"%Float16Array%":typeof Float16Array>"u"?e:Float16Array,"%Float32Array%":typeof Float32Array>"u"?e:Float32Array,"%Float64Array%":typeof Float64Array>"u"?e:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry>"u"?e:FinalizationRegistry,"%Function%":_,"%GeneratorFunction%":T,"%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%":P,"%TypedArray%":z,"%TypeError%":c,"%Uint8Array%":typeof Uint8Array>"u"?e:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray>"u"?e:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array>"u"?e:Uint16Array,"%Uint32Array%":typeof Uint32Array>"u"?e:Uint32Array,"%URIError%":l,"%WeakMap%":typeof WeakMap>"u"?e:WeakMap,"%WeakRef%":typeof WeakRef>"u"?e:WeakRef,"%WeakSet%":typeof WeakSet>"u"?e:WeakSet,"%Function.prototype.call%":N,"%Function.prototype.apply%":w,"%Object.defineProperty%":v,"%Object.getPrototypeOf%":R,"%Math.abs%":u,"%Math.floor%":f,"%Math.max%":h,"%Math.min%":m,"%Math.pow%":d,"%Math.round%":g,"%Math.sign%":y,"%Reflect.getPrototypeOf%":I};if(C)try{null.error}catch(te){var W=C(C(te));O["%Error.prototype%"]=W}var q=function te(Z){var re;if(Z==="%AsyncFunction%")re=b("async function () {}");else if(Z==="%GeneratorFunction%")re=b("function* () {}");else if(Z==="%AsyncGeneratorFunction%")re=b("async function* () {}");else if(Z==="%AsyncGenerator%"){var $=te("%AsyncGeneratorFunction%");$&&(re=$.prototype)}else if(Z==="%AsyncIteratorPrototype%"){var M=te("%AsyncGenerator%");M&&C&&(re=C(M.prototype))}return O[Z]=re,re},F={__proto__:null,"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},G=Jt(),V=$f(),B=G.call(N,Array.prototype.concat),J=G.call(w,Array.prototype.splice),A=G.call(N,String.prototype.replace),k=G.call(N,String.prototype.slice),D=G.call(N,RegExp.prototype.exec),X=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,ne=/\\(\\)?/g,ee=function(Z){var re=k(Z,0,1),$=k(Z,-1);if(re==="%"&&$!=="%")throw new i("invalid intrinsic syntax, expected closing `%`");if($==="%"&&re!=="%")throw new i("invalid intrinsic syntax, expected opening `%`");var M=[];return A(Z,X,function(oe,ie,fe,pe){M[M.length]=fe?A(pe,ne,"$1"):ie||oe}),M},L=function(Z,re){var $=Z,M;if(V(F,$)&&(M=F[$],$="%"+M[0]+"%"),V(O,$)){var oe=O[$];if(oe===T&&(oe=q($)),typeof oe>"u"&&!re)throw new c("intrinsic "+Z+" exists, but is not available. Please file an issue!");return{alias:M,name:$,value:oe}}throw new i("intrinsic "+Z+" does not exist!")};return _o=function(Z,re){if(typeof Z!="string"||Z.length===0)throw new c("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof re!="boolean")throw new c('"allowMissing" argument must be a boolean');if(D(/^%?[^%]*%?$/,Z)===null)throw new i("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var $=ee(Z),M=$.length>0?$[0]:"",oe=L("%"+M+"%",re),ie=oe.name,fe=oe.value,pe=!1,ue=oe.alias;ue&&(M=ue[0],J($,B([0,1],ue)));for(var H=1,be=!0;H<$.length;H+=1){var ae=$[H],ve=k(ae,0,1),K=k(ae,-1);if((ve==='"'||ve==="'"||ve==="`"||K==='"'||K==="'"||K==="`")&&ve!==K)throw new i("property names with quotes must have matching quotes");if((ae==="constructor"||!be)&&(pe=!0),M+="."+ae,ie="%"+M+"%",V(O,ie))fe=O[ie];else if(fe!=null){if(!(ae in fe)){if(!re)throw new c("base intrinsic for "+Z+" exists, but the property is not available.");return}if(S&&H+1>=$.length){var me=S(fe,ae);be=!!me,be&&"get"in me&&!("originalValue"in me.get)?fe=me.get:fe=fe[ae]}else be=V(fe,ae),fe=fe[ae];be&&!pe&&(O[ie]=fe)}}return fe},_o}var vo,ki;function er(){if(ki)return vo;ki=1;var e=zf(),t=Ws(),n=t([e("%String.prototype.indexOf%")]);return vo=function(s,a){var i=e(s,!!a);return typeof i=="function"&&n(s,".prototype.")>-1?t([i]):i},vo}var xo,Mi;function R_(){if(Mi)return xo;Mi=1;var e=Ur()(),t=er(),n=t("Object.prototype.toString"),o=function(c){return e&&c&&typeof c=="object"&&Symbol.toStringTag in c?!1:n(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&&n(c)!=="[object Array]"&&"callee"in c&&n(c.callee)==="[object Function]"},a=function(){return o(arguments)}();return o.isLegacyArguments=s,xo=a?o:s,xo}var bo,Li;function A_(){if(Li)return bo;Li=1;var e=er(),t=Ur()(),n=$f(),o=Mt(),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(m){if(!m||typeof m!="object")return!1;var d=o(m,"lastIndex"),g=d&&n(d,"value");if(!g)return!1;try{a(m,l)}catch(y){return y===i}}}else{var u=e("Object.prototype.toString"),f="[object RegExp]";s=function(m){return!m||typeof m!="object"&&typeof m!="function"?!1:u(m)===f}}return bo=s,bo}var jo,Di;function N_(){if(Di)return jo;Di=1;var e=er(),t=A_(),n=e("RegExp.prototype.exec"),o=Zt();return jo=function(a){if(!t(a))throw new o("`regex` must be a RegExp");return function(c){return n(a,c)!==null}},jo}var Co,$i;function I_(){if($i)return Co;$i=1;const e=(function*(){}).constructor;return Co=()=>e,Co}var So,zi;function T_(){if(zi)return So;zi=1;var e=er(),t=N_(),n=t(/^\s*(?:function)?\*/),o=Ur()(),s=Gs(),a=e("Object.prototype.toString"),i=e("Function.prototype.toString"),c=I_();return So=function(u){if(typeof u!="function")return!1;if(n(i(u)))return!0;if(!o){var f=a(u);return f==="[object GeneratorFunction]"}if(!s)return!1;var h=c();return h&&s(u)===h.prototype},So}var Po,Fi;function O_(){if(Fi)return Po;Fi=1;var e=Function.prototype.toString,t=typeof Reflect=="object"&&Reflect!==null&&Reflect.apply,n,o;if(typeof t=="function"&&typeof Object.defineProperty=="function")try{n=Object.defineProperty({},"length",{get:function(){throw o}}),o={},t(function(){throw 42},null,n)}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]",f="[object GeneratorFunction]",h="[object HTMLAllCollection]",m="[object HTML document.all class]",d="[object HTMLCollection]",g=typeof Symbol=="function"&&!!Symbol.toStringTag,y=!(0 in[,]),_=function(){return!1};if(typeof document=="object"){var b=document.all;c.call(b)===c.call(document.all)&&(_=function(v){if((y||!v)&&(typeof v>"u"||typeof v=="object"))try{var j=c.call(v);return(j===h||j===m||j===d||j===l)&&v("")==null}catch{}return!1})}return Po=t?function(v){if(_(v))return!0;if(!v||typeof v!="function"&&typeof v!="object")return!1;try{t(v,null,n)}catch(j){if(j!==o)return!1}return!a(v)&&i(v)}:function(v){if(_(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!==f&&!/^\[object HTML/.test(j)?!1:i(v)},Po}var wo,Bi;function k_(){if(Bi)return wo;Bi=1;var e=O_(),t=Object.prototype.toString,n=Object.prototype.hasOwnProperty,o=function(l,u,f){for(var h=0,m=l.length;h<m;h++)n.call(l,h)&&(f==null?u(l[h],h,l):u.call(f,l[h],h,l))},s=function(l,u,f){for(var h=0,m=l.length;h<m;h++)f==null?u(l.charAt(h),h,l):u.call(f,l.charAt(h),h,l)},a=function(l,u,f){for(var h in l)n.call(l,h)&&(f==null?u(l[h],h,l):u.call(f,l[h],h,l))};function i(c){return t.call(c)==="[object Array]"}return wo=function(l,u,f){if(!e(u))throw new TypeError("iterator must be a function");var h;arguments.length>=3&&(h=f),i(l)?o(l,u,h):typeof l=="string"?s(l,u,h):a(l,u,h)},wo}var Eo,qi;function M_(){return qi||(qi=1,Eo=["Float16Array","Float32Array","Float64Array","Int8Array","Int16Array","Int32Array","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","BigInt64Array","BigUint64Array"]),Eo}var Ro,Hi;function L_(){if(Hi)return Ro;Hi=1;var e=M_(),t=typeof globalThis>"u"?Cu:globalThis;return Ro=function(){for(var o=[],s=0;s<e.length;s++)typeof t[e[s]]=="function"&&(o[o.length]=e[s]);return o},Ro}var Ao={exports:{}},No,Ui;function D_(){if(Ui)return No;Ui=1;var e=Wr(),t=kf(),n=Zt(),o=Mt();return No=function(a,i,c){if(!a||typeof a!="object"&&typeof a!="function")throw new n("`obj` must be an object or a function`");if(typeof i!="string"&&typeof i!="symbol")throw new n("`property` must be a string or a symbol`");if(arguments.length>3&&typeof arguments[3]!="boolean"&&arguments[3]!==null)throw new n("`nonEnumerable`, if provided, must be a boolean or null");if(arguments.length>4&&typeof arguments[4]!="boolean"&&arguments[4]!==null)throw new n("`nonWritable`, if provided, must be a boolean or null");if(arguments.length>5&&typeof arguments[5]!="boolean"&&arguments[5]!==null)throw new n("`nonConfigurable`, if provided, must be a boolean or null");if(arguments.length>6&&typeof arguments[6]!="boolean")throw new n("`loose`, if provided, must be a boolean");var l=arguments.length>3?arguments[3]:null,u=arguments.length>4?arguments[4]:null,f=arguments.length>5?arguments[5]:null,h=arguments.length>6?arguments[6]:!1,m=!!o&&o(a,i);if(e)e(a,i,{configurable:f===null&&m?m.configurable:!f,enumerable:l===null&&m?m.enumerable:!l,value:c,writable:u===null&&m?m.writable:!u});else if(h||!l&&!u&&!f)a[i]=c;else throw new t("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.")},No}var Io,Wi;function $_(){if(Wi)return Io;Wi=1;var e=Wr(),t=function(){return!!e};return t.hasArrayLengthDefineBug=function(){if(!e)return null;try{return e([],"length",{value:1}).length!==1}catch{return!0}},Io=t,Io}var To,Gi;function z_(){if(Gi)return To;Gi=1;var e=zf(),t=D_(),n=$_()(),o=Mt(),s=Zt(),a=e("%Math.floor%");return To=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],f=!0,h=!0;if("length"in c&&o){var m=o(c,"length");m&&!m.configurable&&(f=!1),m&&!m.writable&&(h=!1)}return(f||h||!u)&&(n?t(c,"length",l,!0,!0):t(c,"length",l)),c},To}var Oo,Vi;function F_(){if(Vi)return Oo;Vi=1;var e=Jt(),t=Us(),n=Df();return Oo=function(){return n(e,t,arguments)},Oo}var Ki;function B_(){return Ki||(Ki=1,function(e){var t=z_(),n=Wr(),o=Ws(),s=F_();e.exports=function(i){var c=o(arguments),l=i.length-(arguments.length-1);return t(c,1+(l>0?l:0),!0)},n?n(e.exports,"apply",{value:s}):e.exports.apply=s}(Ao)),Ao.exports}var ko,Xi;function Ff(){if(Xi)return ko;Xi=1;var e=k_(),t=L_(),n=B_(),o=er(),s=Mt(),a=Gs(),i=o("Object.prototype.toString"),c=Ur()(),l=typeof globalThis>"u"?Cu:globalThis,u=t(),f=o("String.prototype.slice"),h=o("Array.prototype.indexOf",!0)||function(_,b){for(var S=0;S<_.length;S+=1)if(_[S]===b)return S;return-1},m={__proto__:null};c&&s&&a?e(u,function(y){var _=new l[y];if(Symbol.toStringTag in _&&a){var b=a(_),S=s(b,Symbol.toStringTag);if(!S&&b){var v=a(b);S=s(v,Symbol.toStringTag)}m["$"+y]=n(S.get)}}):e(u,function(y){var _=new l[y],b=_.slice||_.set;b&&(m["$"+y]=n(b))});var d=function(_){var b=!1;return e(m,function(S,v){if(!b)try{"$"+S(_)===v&&(b=f(v,1))}catch{}}),b},g=function(_){var b=!1;return e(m,function(S,v){if(!b)try{S(_),b=f(v,1)}catch{}}),b};return ko=function(_){if(!_||typeof _!="object")return!1;if(!c){var b=f(i(_),8,-1);return h(u,b)>-1?b:b!=="Object"?!1:g(_)}return s?d(_):null},ko}var Mo,Yi;function q_(){if(Yi)return Mo;Yi=1;var e=Ff();return Mo=function(n){return!!e(n)},Mo}var Qi;function H_(){return Qi||(Qi=1,function(e){var t=R_(),n=T_(),o=Ff(),s=q_();function a(H){return H.call.bind(H)}var i=typeof BigInt<"u",c=typeof Symbol<"u",l=a(Object.prototype.toString),u=a(Number.prototype.valueOf),f=a(String.prototype.valueOf),h=a(Boolean.prototype.valueOf);if(i)var m=a(BigInt.prototype.valueOf);if(c)var d=a(Symbol.prototype.valueOf);function g(H,be){if(typeof H!="object")return!1;try{return be(H),!0}catch{return!1}}e.isArgumentsObject=t,e.isGeneratorFunction=n,e.isTypedArray=s;function y(H){return typeof Promise<"u"&&H instanceof Promise||H!==null&&typeof H=="object"&&typeof H.then=="function"&&typeof H.catch=="function"}e.isPromise=y;function _(H){return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?ArrayBuffer.isView(H):s(H)||k(H)}e.isArrayBufferView=_;function b(H){return o(H)==="Uint8Array"}e.isUint8Array=b;function S(H){return o(H)==="Uint8ClampedArray"}e.isUint8ClampedArray=S;function v(H){return o(H)==="Uint16Array"}e.isUint16Array=v;function j(H){return o(H)==="Uint32Array"}e.isUint32Array=j;function P(H){return o(H)==="Int8Array"}e.isInt8Array=P;function E(H){return o(H)==="Int16Array"}e.isInt16Array=E;function C(H){return o(H)==="Int32Array"}e.isInt32Array=C;function R(H){return o(H)==="Float32Array"}e.isFloat32Array=R;function I(H){return o(H)==="Float64Array"}e.isFloat64Array=I;function w(H){return o(H)==="BigInt64Array"}e.isBigInt64Array=w;function N(H){return o(H)==="BigUint64Array"}e.isBigUint64Array=N;function T(H){return l(H)==="[object Map]"}T.working=typeof Map<"u"&&T(new Map);function z(H){return typeof Map>"u"?!1:T.working?T(H):H instanceof Map}e.isMap=z;function O(H){return l(H)==="[object Set]"}O.working=typeof Set<"u"&&O(new Set);function W(H){return typeof Set>"u"?!1:O.working?O(H):H instanceof Set}e.isSet=W;function q(H){return l(H)==="[object WeakMap]"}q.working=typeof WeakMap<"u"&&q(new WeakMap);function F(H){return typeof WeakMap>"u"?!1:q.working?q(H):H instanceof WeakMap}e.isWeakMap=F;function G(H){return l(H)==="[object WeakSet]"}G.working=typeof WeakSet<"u"&&G(new WeakSet);function V(H){return G(H)}e.isWeakSet=V;function B(H){return l(H)==="[object ArrayBuffer]"}B.working=typeof ArrayBuffer<"u"&&B(new ArrayBuffer);function J(H){return typeof ArrayBuffer>"u"?!1:B.working?B(H):H instanceof ArrayBuffer}e.isArrayBuffer=J;function A(H){return l(H)==="[object DataView]"}A.working=typeof ArrayBuffer<"u"&&typeof DataView<"u"&&A(new DataView(new ArrayBuffer(1),0,1));function k(H){return typeof DataView>"u"?!1:A.working?A(H):H instanceof DataView}e.isDataView=k;var D=typeof SharedArrayBuffer<"u"?SharedArrayBuffer:void 0;function X(H){return l(H)==="[object SharedArrayBuffer]"}function ne(H){return typeof D>"u"?!1:(typeof X.working>"u"&&(X.working=X(new D)),X.working?X(H):H instanceof D)}e.isSharedArrayBuffer=ne;function ee(H){return l(H)==="[object AsyncFunction]"}e.isAsyncFunction=ee;function L(H){return l(H)==="[object Map Iterator]"}e.isMapIterator=L;function te(H){return l(H)==="[object Set Iterator]"}e.isSetIterator=te;function Z(H){return l(H)==="[object Generator]"}e.isGeneratorObject=Z;function re(H){return l(H)==="[object WebAssembly.Module]"}e.isWebAssemblyCompiledModule=re;function $(H){return g(H,u)}e.isNumberObject=$;function M(H){return g(H,f)}e.isStringObject=M;function oe(H){return g(H,h)}e.isBooleanObject=oe;function ie(H){return i&&g(H,m)}e.isBigIntObject=ie;function fe(H){return c&&g(H,d)}e.isSymbolObject=fe;function pe(H){return $(H)||M(H)||oe(H)||ie(H)||fe(H)}e.isBoxedPrimitive=pe;function ue(H){return typeof Uint8Array<"u"&&(J(H)||ne(H))}e.isAnyArrayBuffer=ue,["isProxy","isExternal","isModuleNamespaceObject"].forEach(function(H){Object.defineProperty(e,H,{enumerable:!1,value:function(){throw new Error(H+" is not supported in userland")}})})}(Ln)),Ln}var Lo,Zi;function U_(){return Zi||(Zi=1,Lo=function(t){return t&&typeof t=="object"&&typeof t.copy=="function"&&typeof t.fill=="function"&&typeof t.readUInt8=="function"}),Lo}var _r={exports:{}},Ji;function W_(){return Ji||(Ji=1,typeof Object.create=="function"?_r.exports=function(t,n){n&&(t.super_=n,t.prototype=Object.create(n.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}))}:_r.exports=function(t,n){if(n){t.super_=n;var o=function(){};o.prototype=n.prototype,t.prototype=new o,t.prototype.constructor=t}}),_r.exports}var ec;function G_(){return ec||(ec=1,function(e){var t=Object.getOwnPropertyDescriptors||function(k){for(var D=Object.keys(k),X={},ne=0;ne<D.length;ne++)X[D[ne]]=Object.getOwnPropertyDescriptor(k,D[ne]);return X},n=/%[sdj%]/g;e.format=function(A){if(!P(A)){for(var k=[],D=0;D<arguments.length;D++)k.push(i(arguments[D]));return k.join(" ")}for(var D=1,X=arguments,ne=X.length,ee=String(A).replace(n,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)||!I(L)?ee+=" "+L:ee+=" "+i(L);return ee},e.deprecate=function(A,k){if(typeof process<"u"&&process.noDeprecation===!0)return A;if(typeof process>"u")return function(){return e.deprecate(A,k).apply(this,arguments)};var D=!1;function X(){if(!D){if(process.throwDeprecation)throw new Error(k);process.traceDeprecation?console.trace(k):console.error(k),D=!0}return A.apply(this,arguments)}return X};var o={},s=/^$/;if(process.env.NODE_DEBUG){var a=process.env.NODE_DEBUG;a=a.replace(/[|\\{}()[\]^$+?.]/g,"\\$&").replace(/\*/g,".*").replace(/,/g,"$|^").toUpperCase(),s=new RegExp("^"+a+"$","i")}e.debuglog=function(A){if(A=A.toUpperCase(),!o[A])if(s.test(A)){var k=process.pid;o[A]=function(){var D=e.format.apply(e,arguments);console.error("%s %d: %s",A,k,D)}}else o[A]=function(){};return o[A]};function i(A,k){var D={seen:[],stylize:l};return arguments.length>=3&&(D.depth=arguments[2]),arguments.length>=4&&(D.colors=arguments[3]),b(k)?D.showHidden=k:k&&e._extend(D,k),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),f(D,A,D.depth)}e.inspect=i,i.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]},i.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"};function c(A,k){var D=i.styles[k];return D?"\x1B["+i.colors[D][0]+"m"+A+"\x1B["+i.colors[D][1]+"m":A}function l(A,k){return A}function u(A){var k={};return A.forEach(function(D,X){k[D]=!0}),k}function f(A,k,D){if(A.customInspect&&k&&T(k.inspect)&&k.inspect!==e.inspect&&!(k.constructor&&k.constructor.prototype===k)){var X=k.inspect(D,A);return P(X)||(X=f(A,X,D)),X}var ne=h(A,k);if(ne)return ne;var ee=Object.keys(k),L=u(ee);if(A.showHidden&&(ee=Object.getOwnPropertyNames(k)),N(k)&&(ee.indexOf("message")>=0||ee.indexOf("description")>=0))return m(k);if(ee.length===0){if(T(k)){var te=k.name?": "+k.name:"";return A.stylize("[Function"+te+"]","special")}if(R(k))return A.stylize(RegExp.prototype.toString.call(k),"regexp");if(w(k))return A.stylize(Date.prototype.toString.call(k),"date");if(N(k))return m(k)}var Z="",re=!1,$=["{","}"];if(_(k)&&(re=!0,$=["[","]"]),T(k)){var M=k.name?": "+k.name:"";Z=" [Function"+M+"]"}if(R(k)&&(Z=" "+RegExp.prototype.toString.call(k)),w(k)&&(Z=" "+Date.prototype.toUTCString.call(k)),N(k)&&(Z=" "+m(k)),ee.length===0&&(!re||k.length==0))return $[0]+Z+$[1];if(D<0)return R(k)?A.stylize(RegExp.prototype.toString.call(k),"regexp"):A.stylize("[Object]","special");A.seen.push(k);var oe;return re?oe=d(A,k,D,L,ee):oe=ee.map(function(ie){return g(A,k,D,L,ie,re)}),A.seen.pop(),y(oe,Z,$)}function h(A,k){if(C(k))return A.stylize("undefined","undefined");if(P(k)){var D="'"+JSON.stringify(k).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return A.stylize(D,"string")}if(j(k))return A.stylize(""+k,"number");if(b(k))return A.stylize(""+k,"boolean");if(S(k))return A.stylize("null","null")}function m(A){return"["+Error.prototype.toString.call(A)+"]"}function d(A,k,D,X,ne){for(var ee=[],L=0,te=k.length;L<te;++L)G(k,String(L))?ee.push(g(A,k,D,X,String(L),!0)):ee.push("");return ne.forEach(function(Z){Z.match(/^\d+$/)||ee.push(g(A,k,D,X,Z,!0))}),ee}function g(A,k,D,X,ne,ee){var L,te,Z;if(Z=Object.getOwnPropertyDescriptor(k,ne)||{value:k[ne]},Z.get?Z.set?te=A.stylize("[Getter/Setter]","special"):te=A.stylize("[Getter]","special"):Z.set&&(te=A.stylize("[Setter]","special")),G(X,ne)||(L="["+ne+"]"),te||(A.seen.indexOf(Z.value)<0?(S(D)?te=f(A,Z.value,null):te=f(A,Z.value,D-1),te.indexOf(`
|
|
15
|
+
See more info here: https://nextjs.org/docs/messages/no-stylesheets-in-head-component`);return a.default.cloneElement(P,{key:C})})}function _(S){let{children:v}=S;const j=(0,a.useContext)(c.AmpStateContext),P=(0,a.useContext)(l.HeadManagerContext);return a.default.createElement(i.default,{reduceComponentsToState:y,headManager:P,inAmpMode:(0,u.isInAmpMode)(j)},v)}const b=_;(typeof t.default=="function"||typeof t.default=="object"&&t.default!==null)&&typeof t.default.__esModule>"u"&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)}(yr,yr.exports)),yr.exports}var In={},Za;function c_(){return Za||(Za=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"ImageConfigContext",{enumerable:!0,get:function(){return s}});const n=ke._(x),o=Hr,s=n.default.createContext(o.imageConfigDefault);process.env.NODE_ENV!=="production"&&(s.displayName="ImageConfigContext")}(In)),In}var Tn={},On={},kn={exports:{}};const l_=Fh(U.__viteBrowserExternal);var Mn={},Ln={},Dn,Ja;function Tf(){return Ja||(Ja=1,Dn=function(){if(typeof Symbol!="function"||typeof Object.getOwnPropertySymbols!="function")return!1;if(typeof Symbol.iterator=="symbol")return!0;var t={},n=Symbol("test"),o=Object(n);if(typeof n=="string"||Object.prototype.toString.call(n)!=="[object Symbol]"||Object.prototype.toString.call(o)!=="[object Symbol]")return!1;var s=42;t[n]=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]!==n||!Object.prototype.propertyIsEnumerable.call(t,n))return!1;if(typeof Object.getOwnPropertyDescriptor=="function"){var c=Object.getOwnPropertyDescriptor(t,n);if(c.value!==s||c.enumerable!==!0)return!1}return!0}),Dn}var $n,ei;function Ur(){if(ei)return $n;ei=1;var e=Tf();return $n=function(){return e()&&!!Symbol.toStringTag},$n}var zn,ti;function Of(){return ti||(ti=1,zn=Object),zn}var Fn,ri;function u_(){return ri||(ri=1,Fn=Error),Fn}var Bn,ni;function d_(){return ni||(ni=1,Bn=EvalError),Bn}var qn,oi;function f_(){return oi||(oi=1,qn=RangeError),qn}var Hn,si;function p_(){return si||(si=1,Hn=ReferenceError),Hn}var Un,ai;function kf(){return ai||(ai=1,Un=SyntaxError),Un}var Wn,ii;function Zt(){return ii||(ii=1,Wn=TypeError),Wn}var Gn,ci;function m_(){return ci||(ci=1,Gn=URIError),Gn}var Vn,li;function h_(){return li||(li=1,Vn=Math.abs),Vn}var Kn,ui;function g_(){return ui||(ui=1,Kn=Math.floor),Kn}var Xn,di;function y_(){return di||(di=1,Xn=Math.max),Xn}var Yn,fi;function __(){return fi||(fi=1,Yn=Math.min),Yn}var Qn,pi;function v_(){return pi||(pi=1,Qn=Math.pow),Qn}var Zn,mi;function x_(){return mi||(mi=1,Zn=Math.round),Zn}var Jn,hi;function b_(){return hi||(hi=1,Jn=Number.isNaN||function(t){return t!==t}),Jn}var eo,gi;function j_(){if(gi)return eo;gi=1;var e=b_();return eo=function(n){return e(n)||n===0?n:n<0?-1:1},eo}var to,yi;function C_(){return yi||(yi=1,to=Object.getOwnPropertyDescriptor),to}var ro,_i;function Mt(){if(_i)return ro;_i=1;var e=C_();if(e)try{e([],"length")}catch{e=null}return ro=e,ro}var no,vi;function Wr(){if(vi)return no;vi=1;var e=Object.defineProperty||!1;if(e)try{e({},"a",{value:1})}catch{e=!1}return no=e,no}var oo,xi;function S_(){if(xi)return oo;xi=1;var e=typeof Symbol<"u"&&Symbol,t=Tf();return oo=function(){return typeof e!="function"||typeof Symbol!="function"||typeof e("foo")!="symbol"||typeof Symbol("bar")!="symbol"?!1:t()},oo}var so,bi;function Mf(){return bi||(bi=1,so=typeof Reflect<"u"&&Reflect.getPrototypeOf||null),so}var ao,ji;function Lf(){if(ji)return ao;ji=1;var e=Of();return ao=e.getPrototypeOf||null,ao}var io,Ci;function P_(){if(Ci)return io;Ci=1;var e="Function.prototype.bind called on incompatible ",t=Object.prototype.toString,n=Math.max,o="[object Function]",s=function(l,u){for(var f=[],h=0;h<l.length;h+=1)f[h]=l[h];for(var m=0;m<u.length;m+=1)f[m+l.length]=u[m];return f},a=function(l,u){for(var f=[],h=u,m=0;h<l.length;h+=1,m+=1)f[m]=l[h];return f},i=function(c,l){for(var u="",f=0;f<c.length;f+=1)u+=c[f],f+1<c.length&&(u+=l);return u};return io=function(l){var u=this;if(typeof u!="function"||t.apply(u)!==o)throw new TypeError(e+u);for(var f=a(arguments,1),h,m=function(){if(this instanceof h){var b=u.apply(this,s(f,arguments));return Object(b)===b?b:this}return u.apply(l,s(f,arguments))},d=n(0,u.length-f.length),g=[],y=0;y<d;y++)g[y]="$"+y;if(h=Function("binder","return function ("+i(g,",")+"){ return binder.apply(this,arguments); }")(m),u.prototype){var _=function(){};_.prototype=u.prototype,h.prototype=new _,_.prototype=null}return h},io}var co,Si;function Jt(){if(Si)return co;Si=1;var e=P_();return co=Function.prototype.bind||e,co}var lo,Pi;function Hs(){return Pi||(Pi=1,lo=Function.prototype.call),lo}var uo,wi;function Us(){return wi||(wi=1,uo=Function.prototype.apply),uo}var fo,Ei;function w_(){return Ei||(Ei=1,fo=typeof Reflect<"u"&&Reflect&&Reflect.apply),fo}var po,Ri;function Df(){if(Ri)return po;Ri=1;var e=Jt(),t=Us(),n=Hs(),o=w_();return po=o||e.call(n,t),po}var mo,Ai;function Ws(){if(Ai)return mo;Ai=1;var e=Jt(),t=Zt(),n=Hs(),o=Df();return mo=function(a){if(a.length<1||typeof a[0]!="function")throw new t("a function is required");return o(e,n,a)},mo}var ho,Ni;function E_(){if(Ni)return ho;Ni=1;var e=Ws(),t=Mt(),n;try{n=[].__proto__===Array.prototype}catch(i){if(!i||typeof i!="object"||!("code"in i)||i.code!=="ERR_PROTO_ACCESS")throw i}var o=!!n&&t&&t(Object.prototype,"__proto__"),s=Object,a=s.getPrototypeOf;return ho=o&&typeof o.get=="function"?e([o.get]):typeof a=="function"?function(c){return a(c==null?c:s(c))}:!1,ho}var go,Ii;function Gs(){if(Ii)return go;Ii=1;var e=Mf(),t=Lf(),n=E_();return go=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)}:n?function(s){return n(s)}:null,go}var yo,Ti;function $f(){if(Ti)return yo;Ti=1;var e=Function.prototype.call,t=Object.prototype.hasOwnProperty,n=Jt();return yo=n.call(e,t),yo}var _o,Oi;function zf(){if(Oi)return _o;Oi=1;var e,t=Of(),n=u_(),o=d_(),s=f_(),a=p_(),i=kf(),c=Zt(),l=m_(),u=h_(),f=g_(),h=y_(),m=__(),d=v_(),g=x_(),y=j_(),_=Function,b=function(te){try{return _('"use strict"; return ('+te+").constructor;")()}catch{}},S=Mt(),v=Wr(),j=function(){throw new c},P=S?function(){try{return arguments.callee,j}catch{try{return S(arguments,"callee").get}catch{return j}}}():j,E=S_()(),C=Gs(),R=Lf(),I=Mf(),w=Us(),N=Hs(),T={},z=typeof Uint8Array>"u"||!C?e:C(Uint8Array),O={__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%":T,"%AsyncGenerator%":T,"%AsyncGeneratorFunction%":T,"%AsyncIteratorPrototype%":T,"%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%":n,"%eval%":eval,"%EvalError%":o,"%Float16Array%":typeof Float16Array>"u"?e:Float16Array,"%Float32Array%":typeof Float32Array>"u"?e:Float32Array,"%Float64Array%":typeof Float64Array>"u"?e:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry>"u"?e:FinalizationRegistry,"%Function%":_,"%GeneratorFunction%":T,"%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%":P,"%TypedArray%":z,"%TypeError%":c,"%Uint8Array%":typeof Uint8Array>"u"?e:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray>"u"?e:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array>"u"?e:Uint16Array,"%Uint32Array%":typeof Uint32Array>"u"?e:Uint32Array,"%URIError%":l,"%WeakMap%":typeof WeakMap>"u"?e:WeakMap,"%WeakRef%":typeof WeakRef>"u"?e:WeakRef,"%WeakSet%":typeof WeakSet>"u"?e:WeakSet,"%Function.prototype.call%":N,"%Function.prototype.apply%":w,"%Object.defineProperty%":v,"%Object.getPrototypeOf%":R,"%Math.abs%":u,"%Math.floor%":f,"%Math.max%":h,"%Math.min%":m,"%Math.pow%":d,"%Math.round%":g,"%Math.sign%":y,"%Reflect.getPrototypeOf%":I};if(C)try{null.error}catch(te){var W=C(C(te));O["%Error.prototype%"]=W}var B=function te(J){var re;if(J==="%AsyncFunction%")re=b("async function () {}");else if(J==="%GeneratorFunction%")re=b("function* () {}");else if(J==="%AsyncGeneratorFunction%")re=b("async function* () {}");else if(J==="%AsyncGenerator%"){var $=te("%AsyncGeneratorFunction%");$&&(re=$.prototype)}else if(J==="%AsyncIteratorPrototype%"){var M=te("%AsyncGenerator%");M&&C&&(re=C(M.prototype))}return O[J]=re,re},V={__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"]},F=Jt(),G=$f(),q=F.call(N,Array.prototype.concat),X=F.call(w,Array.prototype.splice),A=F.call(N,String.prototype.replace),k=F.call(N,String.prototype.slice),L=F.call(N,RegExp.prototype.exec),Y=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,ne=/\\(\\)?/g,ee=function(J){var re=k(J,0,1),$=k(J,-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(J,Y,function(oe,ie,fe,pe){M[M.length]=fe?A(pe,ne,"$1"):ie||oe}),M},D=function(J,re){var $=J,M;if(G(V,$)&&(M=V[$],$="%"+M[0]+"%"),G(O,$)){var oe=O[$];if(oe===T&&(oe=B($)),typeof oe>"u"&&!re)throw new c("intrinsic "+J+" exists, but is not available. Please file an issue!");return{alias:M,name:$,value:oe}}throw new i("intrinsic "+J+" does not exist!")};return _o=function(J,re){if(typeof J!="string"||J.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(L(/^%?[^%]*%?$/,J)===null)throw new i("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var $=ee(J),M=$.length>0?$[0]:"",oe=D("%"+M+"%",re),ie=oe.name,fe=oe.value,pe=!1,ue=oe.alias;ue&&(M=ue[0],X($,q([0,1],ue)));for(var H=1,be=!0;H<$.length;H+=1){var ae=$[H],ve=k(ae,0,1),K=k(ae,-1);if((ve==='"'||ve==="'"||ve==="`"||K==='"'||K==="'"||K==="`")&&ve!==K)throw new i("property names with quotes must have matching quotes");if((ae==="constructor"||!be)&&(pe=!0),M+="."+ae,ie="%"+M+"%",G(O,ie))fe=O[ie];else if(fe!=null){if(!(ae in fe)){if(!re)throw new c("base intrinsic for "+J+" exists, but the property is not available.");return}if(S&&H+1>=$.length){var me=S(fe,ae);be=!!me,be&&"get"in me&&!("originalValue"in me.get)?fe=me.get:fe=fe[ae]}else be=G(fe,ae),fe=fe[ae];be&&!pe&&(O[ie]=fe)}}return fe},_o}var vo,ki;function er(){if(ki)return vo;ki=1;var e=zf(),t=Ws(),n=t([e("%String.prototype.indexOf%")]);return vo=function(s,a){var i=e(s,!!a);return typeof i=="function"&&n(s,".prototype.")>-1?t([i]):i},vo}var xo,Mi;function R_(){if(Mi)return xo;Mi=1;var e=Ur()(),t=er(),n=t("Object.prototype.toString"),o=function(c){return e&&c&&typeof c=="object"&&Symbol.toStringTag in c?!1:n(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&&n(c)!=="[object Array]"&&"callee"in c&&n(c.callee)==="[object Function]"},a=function(){return o(arguments)}();return o.isLegacyArguments=s,xo=a?o:s,xo}var bo,Li;function A_(){if(Li)return bo;Li=1;var e=er(),t=Ur()(),n=$f(),o=Mt(),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(m){if(!m||typeof m!="object")return!1;var d=o(m,"lastIndex"),g=d&&n(d,"value");if(!g)return!1;try{a(m,l)}catch(y){return y===i}}}else{var u=e("Object.prototype.toString"),f="[object RegExp]";s=function(m){return!m||typeof m!="object"&&typeof m!="function"?!1:u(m)===f}}return bo=s,bo}var jo,Di;function N_(){if(Di)return jo;Di=1;var e=er(),t=A_(),n=e("RegExp.prototype.exec"),o=Zt();return jo=function(a){if(!t(a))throw new o("`regex` must be a RegExp");return function(c){return n(a,c)!==null}},jo}var Co,$i;function I_(){if($i)return Co;$i=1;const e=(function*(){}).constructor;return Co=()=>e,Co}var So,zi;function T_(){if(zi)return So;zi=1;var e=er(),t=N_(),n=t(/^\s*(?:function)?\*/),o=Ur()(),s=Gs(),a=e("Object.prototype.toString"),i=e("Function.prototype.toString"),c=I_();return So=function(u){if(typeof u!="function")return!1;if(n(i(u)))return!0;if(!o){var f=a(u);return f==="[object GeneratorFunction]"}if(!s)return!1;var h=c();return h&&s(u)===h.prototype},So}var Po,Fi;function O_(){if(Fi)return Po;Fi=1;var e=Function.prototype.toString,t=typeof Reflect=="object"&&Reflect!==null&&Reflect.apply,n,o;if(typeof t=="function"&&typeof Object.defineProperty=="function")try{n=Object.defineProperty({},"length",{get:function(){throw o}}),o={},t(function(){throw 42},null,n)}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]",f="[object GeneratorFunction]",h="[object HTMLAllCollection]",m="[object HTML document.all class]",d="[object HTMLCollection]",g=typeof Symbol=="function"&&!!Symbol.toStringTag,y=!(0 in[,]),_=function(){return!1};if(typeof document=="object"){var b=document.all;c.call(b)===c.call(document.all)&&(_=function(v){if((y||!v)&&(typeof v>"u"||typeof v=="object"))try{var j=c.call(v);return(j===h||j===m||j===d||j===l)&&v("")==null}catch{}return!1})}return Po=t?function(v){if(_(v))return!0;if(!v||typeof v!="function"&&typeof v!="object")return!1;try{t(v,null,n)}catch(j){if(j!==o)return!1}return!a(v)&&i(v)}:function(v){if(_(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!==f&&!/^\[object HTML/.test(j)?!1:i(v)},Po}var wo,Bi;function k_(){if(Bi)return wo;Bi=1;var e=O_(),t=Object.prototype.toString,n=Object.prototype.hasOwnProperty,o=function(l,u,f){for(var h=0,m=l.length;h<m;h++)n.call(l,h)&&(f==null?u(l[h],h,l):u.call(f,l[h],h,l))},s=function(l,u,f){for(var h=0,m=l.length;h<m;h++)f==null?u(l.charAt(h),h,l):u.call(f,l.charAt(h),h,l)},a=function(l,u,f){for(var h in l)n.call(l,h)&&(f==null?u(l[h],h,l):u.call(f,l[h],h,l))};function i(c){return t.call(c)==="[object Array]"}return wo=function(l,u,f){if(!e(u))throw new TypeError("iterator must be a function");var h;arguments.length>=3&&(h=f),i(l)?o(l,u,h):typeof l=="string"?s(l,u,h):a(l,u,h)},wo}var Eo,qi;function M_(){return qi||(qi=1,Eo=["Float16Array","Float32Array","Float64Array","Int8Array","Int16Array","Int32Array","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","BigInt64Array","BigUint64Array"]),Eo}var Ro,Hi;function L_(){if(Hi)return Ro;Hi=1;var e=M_(),t=typeof globalThis>"u"?Cu:globalThis;return Ro=function(){for(var o=[],s=0;s<e.length;s++)typeof t[e[s]]=="function"&&(o[o.length]=e[s]);return o},Ro}var Ao={exports:{}},No,Ui;function D_(){if(Ui)return No;Ui=1;var e=Wr(),t=kf(),n=Zt(),o=Mt();return No=function(a,i,c){if(!a||typeof a!="object"&&typeof a!="function")throw new n("`obj` must be an object or a function`");if(typeof i!="string"&&typeof i!="symbol")throw new n("`property` must be a string or a symbol`");if(arguments.length>3&&typeof arguments[3]!="boolean"&&arguments[3]!==null)throw new n("`nonEnumerable`, if provided, must be a boolean or null");if(arguments.length>4&&typeof arguments[4]!="boolean"&&arguments[4]!==null)throw new n("`nonWritable`, if provided, must be a boolean or null");if(arguments.length>5&&typeof arguments[5]!="boolean"&&arguments[5]!==null)throw new n("`nonConfigurable`, if provided, must be a boolean or null");if(arguments.length>6&&typeof arguments[6]!="boolean")throw new n("`loose`, if provided, must be a boolean");var l=arguments.length>3?arguments[3]:null,u=arguments.length>4?arguments[4]:null,f=arguments.length>5?arguments[5]:null,h=arguments.length>6?arguments[6]:!1,m=!!o&&o(a,i);if(e)e(a,i,{configurable:f===null&&m?m.configurable:!f,enumerable:l===null&&m?m.enumerable:!l,value:c,writable:u===null&&m?m.writable:!u});else if(h||!l&&!u&&!f)a[i]=c;else throw new t("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.")},No}var Io,Wi;function $_(){if(Wi)return Io;Wi=1;var e=Wr(),t=function(){return!!e};return t.hasArrayLengthDefineBug=function(){if(!e)return null;try{return e([],"length",{value:1}).length!==1}catch{return!0}},Io=t,Io}var To,Gi;function z_(){if(Gi)return To;Gi=1;var e=zf(),t=D_(),n=$_()(),o=Mt(),s=Zt(),a=e("%Math.floor%");return To=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],f=!0,h=!0;if("length"in c&&o){var m=o(c,"length");m&&!m.configurable&&(f=!1),m&&!m.writable&&(h=!1)}return(f||h||!u)&&(n?t(c,"length",l,!0,!0):t(c,"length",l)),c},To}var Oo,Vi;function F_(){if(Vi)return Oo;Vi=1;var e=Jt(),t=Us(),n=Df();return Oo=function(){return n(e,t,arguments)},Oo}var Ki;function B_(){return Ki||(Ki=1,function(e){var t=z_(),n=Wr(),o=Ws(),s=F_();e.exports=function(i){var c=o(arguments),l=i.length-(arguments.length-1);return t(c,1+(l>0?l:0),!0)},n?n(e.exports,"apply",{value:s}):e.exports.apply=s}(Ao)),Ao.exports}var ko,Xi;function Ff(){if(Xi)return ko;Xi=1;var e=k_(),t=L_(),n=B_(),o=er(),s=Mt(),a=Gs(),i=o("Object.prototype.toString"),c=Ur()(),l=typeof globalThis>"u"?Cu:globalThis,u=t(),f=o("String.prototype.slice"),h=o("Array.prototype.indexOf",!0)||function(_,b){for(var S=0;S<_.length;S+=1)if(_[S]===b)return S;return-1},m={__proto__:null};c&&s&&a?e(u,function(y){var _=new l[y];if(Symbol.toStringTag in _&&a){var b=a(_),S=s(b,Symbol.toStringTag);if(!S&&b){var v=a(b);S=s(v,Symbol.toStringTag)}m["$"+y]=n(S.get)}}):e(u,function(y){var _=new l[y],b=_.slice||_.set;b&&(m["$"+y]=n(b))});var d=function(_){var b=!1;return e(m,function(S,v){if(!b)try{"$"+S(_)===v&&(b=f(v,1))}catch{}}),b},g=function(_){var b=!1;return e(m,function(S,v){if(!b)try{S(_),b=f(v,1)}catch{}}),b};return ko=function(_){if(!_||typeof _!="object")return!1;if(!c){var b=f(i(_),8,-1);return h(u,b)>-1?b:b!=="Object"?!1:g(_)}return s?d(_):null},ko}var Mo,Yi;function q_(){if(Yi)return Mo;Yi=1;var e=Ff();return Mo=function(n){return!!e(n)},Mo}var Qi;function H_(){return Qi||(Qi=1,function(e){var t=R_(),n=T_(),o=Ff(),s=q_();function a(H){return H.call.bind(H)}var i=typeof BigInt<"u",c=typeof Symbol<"u",l=a(Object.prototype.toString),u=a(Number.prototype.valueOf),f=a(String.prototype.valueOf),h=a(Boolean.prototype.valueOf);if(i)var m=a(BigInt.prototype.valueOf);if(c)var d=a(Symbol.prototype.valueOf);function g(H,be){if(typeof H!="object")return!1;try{return be(H),!0}catch{return!1}}e.isArgumentsObject=t,e.isGeneratorFunction=n,e.isTypedArray=s;function y(H){return typeof Promise<"u"&&H instanceof Promise||H!==null&&typeof H=="object"&&typeof H.then=="function"&&typeof H.catch=="function"}e.isPromise=y;function _(H){return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?ArrayBuffer.isView(H):s(H)||k(H)}e.isArrayBufferView=_;function b(H){return o(H)==="Uint8Array"}e.isUint8Array=b;function S(H){return o(H)==="Uint8ClampedArray"}e.isUint8ClampedArray=S;function v(H){return o(H)==="Uint16Array"}e.isUint16Array=v;function j(H){return o(H)==="Uint32Array"}e.isUint32Array=j;function P(H){return o(H)==="Int8Array"}e.isInt8Array=P;function E(H){return o(H)==="Int16Array"}e.isInt16Array=E;function C(H){return o(H)==="Int32Array"}e.isInt32Array=C;function R(H){return o(H)==="Float32Array"}e.isFloat32Array=R;function I(H){return o(H)==="Float64Array"}e.isFloat64Array=I;function w(H){return o(H)==="BigInt64Array"}e.isBigInt64Array=w;function N(H){return o(H)==="BigUint64Array"}e.isBigUint64Array=N;function T(H){return l(H)==="[object Map]"}T.working=typeof Map<"u"&&T(new Map);function z(H){return typeof Map>"u"?!1:T.working?T(H):H instanceof Map}e.isMap=z;function O(H){return l(H)==="[object Set]"}O.working=typeof Set<"u"&&O(new Set);function W(H){return typeof Set>"u"?!1:O.working?O(H):H instanceof Set}e.isSet=W;function B(H){return l(H)==="[object WeakMap]"}B.working=typeof WeakMap<"u"&&B(new WeakMap);function V(H){return typeof WeakMap>"u"?!1:B.working?B(H):H instanceof WeakMap}e.isWeakMap=V;function F(H){return l(H)==="[object WeakSet]"}F.working=typeof WeakSet<"u"&&F(new WeakSet);function G(H){return F(H)}e.isWeakSet=G;function q(H){return l(H)==="[object ArrayBuffer]"}q.working=typeof ArrayBuffer<"u"&&q(new ArrayBuffer);function X(H){return typeof ArrayBuffer>"u"?!1:q.working?q(H):H instanceof ArrayBuffer}e.isArrayBuffer=X;function A(H){return l(H)==="[object DataView]"}A.working=typeof ArrayBuffer<"u"&&typeof DataView<"u"&&A(new DataView(new ArrayBuffer(1),0,1));function k(H){return typeof DataView>"u"?!1:A.working?A(H):H instanceof DataView}e.isDataView=k;var L=typeof SharedArrayBuffer<"u"?SharedArrayBuffer:void 0;function Y(H){return l(H)==="[object SharedArrayBuffer]"}function ne(H){return typeof L>"u"?!1:(typeof Y.working>"u"&&(Y.working=Y(new L)),Y.working?Y(H):H instanceof L)}e.isSharedArrayBuffer=ne;function ee(H){return l(H)==="[object AsyncFunction]"}e.isAsyncFunction=ee;function D(H){return l(H)==="[object Map Iterator]"}e.isMapIterator=D;function te(H){return l(H)==="[object Set Iterator]"}e.isSetIterator=te;function J(H){return l(H)==="[object Generator]"}e.isGeneratorObject=J;function re(H){return l(H)==="[object WebAssembly.Module]"}e.isWebAssemblyCompiledModule=re;function $(H){return g(H,u)}e.isNumberObject=$;function M(H){return g(H,f)}e.isStringObject=M;function oe(H){return g(H,h)}e.isBooleanObject=oe;function ie(H){return i&&g(H,m)}e.isBigIntObject=ie;function fe(H){return c&&g(H,d)}e.isSymbolObject=fe;function pe(H){return $(H)||M(H)||oe(H)||ie(H)||fe(H)}e.isBoxedPrimitive=pe;function ue(H){return typeof Uint8Array<"u"&&(X(H)||ne(H))}e.isAnyArrayBuffer=ue,["isProxy","isExternal","isModuleNamespaceObject"].forEach(function(H){Object.defineProperty(e,H,{enumerable:!1,value:function(){throw new Error(H+" is not supported in userland")}})})}(Ln)),Ln}var Lo,Zi;function U_(){return Zi||(Zi=1,Lo=function(t){return t&&typeof t=="object"&&typeof t.copy=="function"&&typeof t.fill=="function"&&typeof t.readUInt8=="function"}),Lo}var _r={exports:{}},Ji;function W_(){return Ji||(Ji=1,typeof Object.create=="function"?_r.exports=function(t,n){n&&(t.super_=n,t.prototype=Object.create(n.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}))}:_r.exports=function(t,n){if(n){t.super_=n;var o=function(){};o.prototype=n.prototype,t.prototype=new o,t.prototype.constructor=t}}),_r.exports}var ec;function G_(){return ec||(ec=1,function(e){var t=Object.getOwnPropertyDescriptors||function(k){for(var L=Object.keys(k),Y={},ne=0;ne<L.length;ne++)Y[L[ne]]=Object.getOwnPropertyDescriptor(k,L[ne]);return Y},n=/%[sdj%]/g;e.format=function(A){if(!P(A)){for(var k=[],L=0;L<arguments.length;L++)k.push(i(arguments[L]));return k.join(" ")}for(var L=1,Y=arguments,ne=Y.length,ee=String(A).replace(n,function(te){if(te==="%%")return"%";if(L>=ne)return te;switch(te){case"%s":return String(Y[L++]);case"%d":return Number(Y[L++]);case"%j":try{return JSON.stringify(Y[L++])}catch{return"[Circular]"}default:return te}}),D=Y[L];L<ne;D=Y[++L])S(D)||!I(D)?ee+=" "+D:ee+=" "+i(D);return ee},e.deprecate=function(A,k){if(typeof process<"u"&&process.noDeprecation===!0)return A;if(typeof process>"u")return function(){return e.deprecate(A,k).apply(this,arguments)};var L=!1;function Y(){if(!L){if(process.throwDeprecation)throw new Error(k);process.traceDeprecation?console.trace(k):console.error(k),L=!0}return A.apply(this,arguments)}return Y};var o={},s=/^$/;if(process.env.NODE_DEBUG){var a=process.env.NODE_DEBUG;a=a.replace(/[|\\{}()[\]^$+?.]/g,"\\$&").replace(/\*/g,".*").replace(/,/g,"$|^").toUpperCase(),s=new RegExp("^"+a+"$","i")}e.debuglog=function(A){if(A=A.toUpperCase(),!o[A])if(s.test(A)){var k=process.pid;o[A]=function(){var L=e.format.apply(e,arguments);console.error("%s %d: %s",A,k,L)}}else o[A]=function(){};return o[A]};function i(A,k){var L={seen:[],stylize:l};return arguments.length>=3&&(L.depth=arguments[2]),arguments.length>=4&&(L.colors=arguments[3]),b(k)?L.showHidden=k:k&&e._extend(L,k),C(L.showHidden)&&(L.showHidden=!1),C(L.depth)&&(L.depth=2),C(L.colors)&&(L.colors=!1),C(L.customInspect)&&(L.customInspect=!0),L.colors&&(L.stylize=c),f(L,A,L.depth)}e.inspect=i,i.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]},i.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"};function c(A,k){var L=i.styles[k];return L?"\x1B["+i.colors[L][0]+"m"+A+"\x1B["+i.colors[L][1]+"m":A}function l(A,k){return A}function u(A){var k={};return A.forEach(function(L,Y){k[L]=!0}),k}function f(A,k,L){if(A.customInspect&&k&&T(k.inspect)&&k.inspect!==e.inspect&&!(k.constructor&&k.constructor.prototype===k)){var Y=k.inspect(L,A);return P(Y)||(Y=f(A,Y,L)),Y}var ne=h(A,k);if(ne)return ne;var ee=Object.keys(k),D=u(ee);if(A.showHidden&&(ee=Object.getOwnPropertyNames(k)),N(k)&&(ee.indexOf("message")>=0||ee.indexOf("description")>=0))return m(k);if(ee.length===0){if(T(k)){var te=k.name?": "+k.name:"";return A.stylize("[Function"+te+"]","special")}if(R(k))return A.stylize(RegExp.prototype.toString.call(k),"regexp");if(w(k))return A.stylize(Date.prototype.toString.call(k),"date");if(N(k))return m(k)}var J="",re=!1,$=["{","}"];if(_(k)&&(re=!0,$=["[","]"]),T(k)){var M=k.name?": "+k.name:"";J=" [Function"+M+"]"}if(R(k)&&(J=" "+RegExp.prototype.toString.call(k)),w(k)&&(J=" "+Date.prototype.toUTCString.call(k)),N(k)&&(J=" "+m(k)),ee.length===0&&(!re||k.length==0))return $[0]+J+$[1];if(L<0)return R(k)?A.stylize(RegExp.prototype.toString.call(k),"regexp"):A.stylize("[Object]","special");A.seen.push(k);var oe;return re?oe=d(A,k,L,D,ee):oe=ee.map(function(ie){return g(A,k,L,D,ie,re)}),A.seen.pop(),y(oe,J,$)}function h(A,k){if(C(k))return A.stylize("undefined","undefined");if(P(k)){var L="'"+JSON.stringify(k).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return A.stylize(L,"string")}if(j(k))return A.stylize(""+k,"number");if(b(k))return A.stylize(""+k,"boolean");if(S(k))return A.stylize("null","null")}function m(A){return"["+Error.prototype.toString.call(A)+"]"}function d(A,k,L,Y,ne){for(var ee=[],D=0,te=k.length;D<te;++D)F(k,String(D))?ee.push(g(A,k,L,Y,String(D),!0)):ee.push("");return ne.forEach(function(J){J.match(/^\d+$/)||ee.push(g(A,k,L,Y,J,!0))}),ee}function g(A,k,L,Y,ne,ee){var D,te,J;if(J=Object.getOwnPropertyDescriptor(k,ne)||{value:k[ne]},J.get?J.set?te=A.stylize("[Getter/Setter]","special"):te=A.stylize("[Getter]","special"):J.set&&(te=A.stylize("[Setter]","special")),F(Y,ne)||(D="["+ne+"]"),te||(A.seen.indexOf(J.value)<0?(S(L)?te=f(A,J.value,null):te=f(A,J.value,L-1),te.indexOf(`
|
|
16
16
|
`)>-1&&(ee?te=te.split(`
|
|
17
17
|
`).map(function(re){return" "+re}).join(`
|
|
18
18
|
`).slice(2):te=`
|
|
19
19
|
`+te.split(`
|
|
20
20
|
`).map(function(re){return" "+re}).join(`
|
|
21
|
-
`))):te=A.stylize("[Circular]","special")),C(
|
|
22
|
-
`)>=0,ne+ee.replace(/\u001b\[\d\d?m/g,"").length+1},0);return
|
|
21
|
+
`))):te=A.stylize("[Circular]","special")),C(D)){if(ee&&ne.match(/^\d+$/))return te;D=JSON.stringify(""+ne),D.match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(D=D.slice(1,-1),D=A.stylize(D,"name")):(D=D.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),D=A.stylize(D,"string"))}return D+": "+te}function y(A,k,L){var Y=A.reduce(function(ne,ee){return ee.indexOf(`
|
|
22
|
+
`)>=0,ne+ee.replace(/\u001b\[\d\d?m/g,"").length+1},0);return Y>60?L[0]+(k===""?"":k+`
|
|
23
23
|
`)+" "+A.join(`,
|
|
24
|
-
`)+" "+
|
|
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),f=(m="",d="",g=!1)=>{let y=[];if(m=[].concat(m),d=[].concat(d),!d.length)return m;if(!m.length)return g?u.flatten(d).map(_=>`{${_}}`):d;for(let _ of m)if(Array.isArray(_))for(let b of _)y.push(f(b,d,g));else for(let b of d)g===!0&&typeof b=="string"&&(b=`{${b}}`),y.push(Array.isArray(b)?f(_,b,g):_+b);return u.flatten(y)},h=(m,d={})=>{let g=d.rangeLimit===void 0?1e3:d.rangeLimit,y=(_,b={})=>{_.queue=[];let S=b,v=b.queue;for(;S.type!=="brace"&&S.type!=="root"&&S.parent;)S=S.parent,v=S.queue;if(_.invalid||_.dollar){v.push(f(v.pop(),l(_,d)));return}if(_.type==="brace"&&_.invalid!==!0&&_.nodes.length===2){v.push(f(v.pop(),["{}"]));return}if(_.nodes&&_.ranges>0){let C=u.reduce(_.nodes);if(u.exceedsLimit(...C,d.step,g))throw new RangeError("expanded array length exceeds range limit. Use options.rangeLimit to increase or disable the limit.");let R=c(...C,d);R.length===0&&(R=l(_,d)),v.push(f(v.pop(),R)),_.nodes=[];return}let j=u.encloseBrace(_),P=_.queue,E=_;for(;E.type!=="brace"&&E.type!=="root"&&E.parent;)E=E.parent,P=E.queue;for(let C=0;C<_.nodes.length;C++){let R=_.nodes[C];if(R.type==="comma"&&_.type==="brace"){C===1&&P.push(""),P.push("");continue}if(R.type==="close"){v.push(f(v.pop(),P,j));continue}if(R.value&&R.type!=="open"){P.push(f(P.pop(),R.value));continue}R.nodes&&y(R,_)}return P};return u.flatten(y(m))};s.exports=h},719:(s,a,i)=>{const c=i(137),{MAX_LENGTH:l,CHAR_BACKSLASH:u,CHAR_BACKTICK:f,CHAR_COMMA:h,CHAR_DOT:m,CHAR_LEFT_PARENTHESES:d,CHAR_RIGHT_PARENTHESES:g,CHAR_LEFT_CURLY_BRACE:y,CHAR_RIGHT_CURLY_BRACE:_,CHAR_LEFT_SQUARE_BRACKET:b,CHAR_RIGHT_SQUARE_BRACKET:S,CHAR_DOUBLE_QUOTE:v,CHAR_SINGLE_QUOTE:j,CHAR_NO_BREAK_SPACE:P,CHAR_ZERO_WIDTH_NOBREAK_SPACE:E}=i(457),C=(R,I={})=>{if(typeof R!="string")throw new TypeError("Expected a string");let w=I||{},N=typeof w.maxLength=="number"?Math.min(l,w.maxLength):l;if(R.length>N)throw new SyntaxError(`Input length (${R.length}), exceeds max characters (${N})`);let T={type:"root",input:R,nodes:[]},z=[T],O=T,W=T,
|
|
24
|
+
`)+" "+L[1]:L[0]+k+" "+A.join(", ")+" "+L[1]}e.types=H_();function _(A){return Array.isArray(A)}e.isArray=_;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 P(A){return typeof A=="string"}e.isString=P;function E(A){return typeof A=="symbol"}e.isSymbol=E;function C(A){return A===void 0}e.isUndefined=C;function R(A){return I(A)&&O(A)==="[object RegExp]"}e.isRegExp=R,e.types.isRegExp=R;function I(A){return typeof A=="object"&&A!==null}e.isObject=I;function w(A){return I(A)&&O(A)==="[object Date]"}e.isDate=w,e.types.isDate=w;function N(A){return I(A)&&(O(A)==="[object Error]"||A instanceof Error)}e.isError=N,e.types.isNativeError=N;function T(A){return typeof A=="function"}e.isFunction=T;function z(A){return A===null||typeof A=="boolean"||typeof A=="number"||typeof A=="string"||typeof A=="symbol"||typeof A>"u"}e.isPrimitive=z,e.isBuffer=U_();function O(A){return Object.prototype.toString.call(A)}function W(A){return A<10?"0"+A.toString(10):A.toString(10)}var B=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function V(){var A=new Date,k=[W(A.getHours()),W(A.getMinutes()),W(A.getSeconds())].join(":");return[A.getDate(),B[A.getMonth()],k].join(" ")}e.log=function(){console.log("%s - %s",V(),e.format.apply(e,arguments))},e.inherits=W_(),e._extend=function(A,k){if(!k||!I(k))return A;for(var L=Object.keys(k),Y=L.length;Y--;)A[L[Y]]=k[L[Y]];return A};function F(A,k){return Object.prototype.hasOwnProperty.call(A,k)}var G=typeof Symbol<"u"?Symbol("util.promisify.custom"):void 0;e.promisify=function(k){if(typeof k!="function")throw new TypeError('The "original" argument must be of type Function');if(G&&k[G]){var L=k[G];if(typeof L!="function")throw new TypeError('The "util.promisify.custom" argument must be of type Function');return Object.defineProperty(L,G,{value:L,enumerable:!1,writable:!1,configurable:!0}),L}function L(){for(var Y,ne,ee=new Promise(function(J,re){Y=J,ne=re}),D=[],te=0;te<arguments.length;te++)D.push(arguments[te]);D.push(function(J,re){J?ne(J):Y(re)});try{k.apply(this,D)}catch(J){ne(J)}return ee}return Object.setPrototypeOf(L,Object.getPrototypeOf(k)),G&&Object.defineProperty(L,G,{value:L,enumerable:!1,writable:!1,configurable:!0}),Object.defineProperties(L,t(k))},e.promisify.custom=G;function q(A,k){if(!A){var L=new Error("Promise was rejected with a falsy value");L.reason=A,A=L}return k(A)}function X(A){if(typeof A!="function")throw new TypeError('The "original" argument must be of type Function');function k(){for(var L=[],Y=0;Y<arguments.length;Y++)L.push(arguments[Y]);var ne=L.pop();if(typeof ne!="function")throw new TypeError("The last argument must be of type Function");var ee=this,D=function(){return ne.apply(ee,arguments)};A.apply(this,L).then(function(te){process.nextTick(D.bind(null,null,te))},function(te){process.nextTick(q.bind(null,te,D))})}return Object.setPrototypeOf(k,Object.getPrototypeOf(A)),Object.defineProperties(k,t(A)),k}e.callbackify=X}(Mn)),Mn}var tc;function V_(){return tc||(tc=1,(()=>{var e={333:(s,a,i)=>{const c=i(137),l=i(179),u=i(13),f=i(719),h=(m,d={})=>{let g=[];if(Array.isArray(m))for(let y of m){let _=h.create(y,d);Array.isArray(_)?g.push(..._):g.push(_)}else g=[].concat(h.create(m,d));return d&&d.expand===!0&&d.nodupes===!0&&(g=[...new Set(g)]),g};h.parse=(m,d={})=>f(m,d),h.stringify=(m,d={})=>c(typeof m=="string"?h.parse(m,d):m,d),h.compile=(m,d={})=>(typeof m=="string"&&(m=h.parse(m,d)),l(m,d)),h.expand=(m,d={})=>{typeof m=="string"&&(m=h.parse(m,d));let g=u(m,d);return d.noempty===!0&&(g=g.filter(Boolean)),d.nodupes===!0&&(g=[...new Set(g)]),g},h.create=(m,d={})=>m===""||m.length<3?[m]:d.expand!==!0?h.compile(m,d):h.expand(m,d),s.exports=h},179:(s,a,i)=>{const c=i(783),l=i(617),u=(f,h={})=>{let m=(d,g={})=>{let y=l.isInvalidBrace(g),_=d.invalid===!0&&h.escapeInvalid===!0,b=y===!0||_===!0,S=h.escapeInvalid===!0?"\\":"",v="";if(d.isOpen===!0||d.isClose===!0)return S+d.value;if(d.type==="open")return b?S+d.value:"(";if(d.type==="close")return b?S+d.value:")";if(d.type==="comma")return d.prev.type==="comma"?"":b?d.value:"|";if(d.value)return d.value;if(d.nodes&&d.ranges>0){let j=l.reduce(d.nodes),P=c(...j,{...h,wrap:!1,toRegex:!0});if(P.length!==0)return j.length>1&&P.length>1?`(${P})`:P}if(d.nodes)for(let j of d.nodes)v+=m(j,d);return v};return m(f)};s.exports=u},457:s=>{s.exports={MAX_LENGTH:65536,CHAR_0:"0",CHAR_9:"9",CHAR_UPPERCASE_A:"A",CHAR_LOWERCASE_A:"a",CHAR_UPPERCASE_Z:"Z",CHAR_LOWERCASE_Z:"z",CHAR_LEFT_PARENTHESES:"(",CHAR_RIGHT_PARENTHESES:")",CHAR_ASTERISK:"*",CHAR_AMPERSAND:"&",CHAR_AT:"@",CHAR_BACKSLASH:"\\",CHAR_BACKTICK:"`",CHAR_CARRIAGE_RETURN:"\r",CHAR_CIRCUMFLEX_ACCENT:"^",CHAR_COLON:":",CHAR_COMMA:",",CHAR_DOLLAR:"$",CHAR_DOT:".",CHAR_DOUBLE_QUOTE:'"',CHAR_EQUAL:"=",CHAR_EXCLAMATION_MARK:"!",CHAR_FORM_FEED:"\f",CHAR_FORWARD_SLASH:"/",CHAR_HASH:"#",CHAR_HYPHEN_MINUS:"-",CHAR_LEFT_ANGLE_BRACKET:"<",CHAR_LEFT_CURLY_BRACE:"{",CHAR_LEFT_SQUARE_BRACKET:"[",CHAR_LINE_FEED:`
|
|
25
|
+
`,CHAR_NO_BREAK_SPACE:" ",CHAR_PERCENT:"%",CHAR_PLUS:"+",CHAR_QUESTION_MARK:"?",CHAR_RIGHT_ANGLE_BRACKET:">",CHAR_RIGHT_CURLY_BRACE:"}",CHAR_RIGHT_SQUARE_BRACKET:"]",CHAR_SEMICOLON:";",CHAR_SINGLE_QUOTE:"'",CHAR_SPACE:" ",CHAR_TAB:" ",CHAR_UNDERSCORE:"_",CHAR_VERTICAL_LINE:"|",CHAR_ZERO_WIDTH_NOBREAK_SPACE:"\uFEFF"}},13:(s,a,i)=>{const c=i(783),l=i(137),u=i(617),f=(m="",d="",g=!1)=>{let y=[];if(m=[].concat(m),d=[].concat(d),!d.length)return m;if(!m.length)return g?u.flatten(d).map(_=>`{${_}}`):d;for(let _ of m)if(Array.isArray(_))for(let b of _)y.push(f(b,d,g));else for(let b of d)g===!0&&typeof b=="string"&&(b=`{${b}}`),y.push(Array.isArray(b)?f(_,b,g):_+b);return u.flatten(y)},h=(m,d={})=>{let g=d.rangeLimit===void 0?1e3:d.rangeLimit,y=(_,b={})=>{_.queue=[];let S=b,v=b.queue;for(;S.type!=="brace"&&S.type!=="root"&&S.parent;)S=S.parent,v=S.queue;if(_.invalid||_.dollar){v.push(f(v.pop(),l(_,d)));return}if(_.type==="brace"&&_.invalid!==!0&&_.nodes.length===2){v.push(f(v.pop(),["{}"]));return}if(_.nodes&&_.ranges>0){let C=u.reduce(_.nodes);if(u.exceedsLimit(...C,d.step,g))throw new RangeError("expanded array length exceeds range limit. Use options.rangeLimit to increase or disable the limit.");let R=c(...C,d);R.length===0&&(R=l(_,d)),v.push(f(v.pop(),R)),_.nodes=[];return}let j=u.encloseBrace(_),P=_.queue,E=_;for(;E.type!=="brace"&&E.type!=="root"&&E.parent;)E=E.parent,P=E.queue;for(let C=0;C<_.nodes.length;C++){let R=_.nodes[C];if(R.type==="comma"&&_.type==="brace"){C===1&&P.push(""),P.push("");continue}if(R.type==="close"){v.push(f(v.pop(),P,j));continue}if(R.value&&R.type!=="open"){P.push(f(P.pop(),R.value));continue}R.nodes&&y(R,_)}return P};return u.flatten(y(m))};s.exports=h},719:(s,a,i)=>{const c=i(137),{MAX_LENGTH:l,CHAR_BACKSLASH:u,CHAR_BACKTICK:f,CHAR_COMMA:h,CHAR_DOT:m,CHAR_LEFT_PARENTHESES:d,CHAR_RIGHT_PARENTHESES:g,CHAR_LEFT_CURLY_BRACE:y,CHAR_RIGHT_CURLY_BRACE:_,CHAR_LEFT_SQUARE_BRACKET:b,CHAR_RIGHT_SQUARE_BRACKET:S,CHAR_DOUBLE_QUOTE:v,CHAR_SINGLE_QUOTE:j,CHAR_NO_BREAK_SPACE:P,CHAR_ZERO_WIDTH_NOBREAK_SPACE:E}=i(457),C=(R,I={})=>{if(typeof R!="string")throw new TypeError("Expected a string");let w=I||{},N=typeof w.maxLength=="number"?Math.min(l,w.maxLength):l;if(R.length>N)throw new SyntaxError(`Input length (${R.length}), exceeds max characters (${N})`);let T={type:"root",input:R,nodes:[]},z=[T],O=T,W=T,B=0,V=R.length,F=0,G=0,q;const X=()=>R[F++],A=k=>{if(k.type==="text"&&W.type==="dot"&&(W.type="text"),W&&W.type==="text"&&k.type==="text"){W.value+=k.value;return}return O.nodes.push(k),k.parent=O,k.prev=W,W=k,k};for(A({type:"bos"});F<V;)if(O=z[z.length-1],q=X(),!(q===E||q===P)){if(q===u){A({type:"text",value:(I.keepEscaping?q:"")+X()});continue}if(q===S){A({type:"text",value:"\\"+q});continue}if(q===b){B++;let k;for(;F<V&&(k=X());){if(q+=k,k===b){B++;continue}if(k===u){q+=X();continue}if(k===S&&(B--,B===0))break}A({type:"text",value:q});continue}if(q===d){O=A({type:"paren",nodes:[]}),z.push(O),A({type:"text",value:q});continue}if(q===g){if(O.type!=="paren"){A({type:"text",value:q});continue}O=z.pop(),A({type:"text",value:q}),O=z[z.length-1];continue}if(q===v||q===j||q===f){let k=q,L;for(I.keepQuotes!==!0&&(q="");F<V&&(L=X());){if(L===u){q+=L+X();continue}if(L===k){I.keepQuotes===!0&&(q+=L);break}q+=L}A({type:"text",value:q});continue}if(q===y){G++;let L={type:"brace",open:!0,close:!1,dollar:W.value&&W.value.slice(-1)==="$"||O.dollar===!0,depth:G,commas:0,ranges:0,nodes:[]};O=A(L),z.push(O),A({type:"open",value:q});continue}if(q===_){if(O.type!=="brace"){A({type:"text",value:q});continue}let k="close";O=z.pop(),O.close=!0,A({type:k,value:q}),G--,O=z[z.length-1];continue}if(q===h&&G>0){if(O.ranges>0){O.ranges=0;let k=O.nodes.shift();O.nodes=[k,{type:"text",value:c(O)}]}A({type:"comma",value:q}),O.commas++;continue}if(q===m&&G>0&&O.commas===0){let k=O.nodes;if(G===0||k.length===0){A({type:"text",value:q});continue}if(W.type==="dot"){if(O.range=[],W.value+=q,W.type="range",O.nodes.length!==3&&O.nodes.length!==5){O.invalid=!0,O.ranges=0,W.type="text";continue}O.ranges++,O.args=[];continue}if(W.type==="range"){k.pop();let L=k[k.length-1];L.value+=W.value+q,W=L,O.ranges--;continue}A({type:"dot",value:q});continue}A({type:"text",value:q})}do if(O=z.pop(),O.type!=="root"){O.nodes.forEach(Y=>{Y.nodes||(Y.type==="open"&&(Y.isOpen=!0),Y.type==="close"&&(Y.isClose=!0),Y.nodes||(Y.type="text"),Y.invalid=!0)});let k=z[z.length-1],L=k.nodes.indexOf(O);k.nodes.splice(L,1,...O.nodes)}while(z.length>0);return A({type:"eos"}),T};s.exports=C},137:(s,a,i)=>{const c=i(617);s.exports=(l,u={})=>{let f=(h,m={})=>{let d=u.escapeInvalid&&c.isInvalidBrace(m),g=h.invalid===!0&&u.escapeInvalid===!0,y="";if(h.value)return(d||g)&&c.isOpenOrClose(h)?"\\"+h.value:h.value;if(h.value)return h.value;if(h.nodes)for(let _ of h.nodes)y+=f(_);return y};return f(l)}},617:(s,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 f=0;f<u.length;f++){let h=u[f];Array.isArray(h)?l(h):h!==void 0&&c.push(h)}return c};return l(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=w=>w!==null&&typeof w=="object"&&!Array.isArray(w),f=w=>N=>w===!0?Number(N):String(N),h=w=>typeof w=="number"||typeof w=="string"&&w!=="",m=w=>Number.isInteger(+w),d=w=>{let N=`${w}`,T=-1;if(N[0]==="-"&&(N=N.slice(1)),N==="0")return!1;for(;N[++T]==="0";);return T>0},g=(w,N,T)=>typeof w=="string"||typeof N=="string"?!0:T.stringify===!0,y=(w,N,T)=>{if(N>0){let z=w[0]==="-"?"-":"";z&&(w=w.slice(1)),w=z+w.padStart(z?N-1:N,"0")}return T===!1?String(w):w},_=(w,N)=>{let T=w[0]==="-"?"-":"";for(T&&(w=w.slice(1),N--);w.length<N;)w="0"+w;return T?"-"+w:w},b=(w,N)=>{w.negatives.sort((
|
|
30
|
+
*/const c=i(837),l=i(492),u=w=>w!==null&&typeof w=="object"&&!Array.isArray(w),f=w=>N=>w===!0?Number(N):String(N),h=w=>typeof w=="number"||typeof w=="string"&&w!=="",m=w=>Number.isInteger(+w),d=w=>{let N=`${w}`,T=-1;if(N[0]==="-"&&(N=N.slice(1)),N==="0")return!1;for(;N[++T]==="0";);return T>0},g=(w,N,T)=>typeof w=="string"||typeof N=="string"?!0:T.stringify===!0,y=(w,N,T)=>{if(N>0){let z=w[0]==="-"?"-":"";z&&(w=w.slice(1)),w=z+w.padStart(z?N-1:N,"0")}return T===!1?String(w):w},_=(w,N)=>{let T=w[0]==="-"?"-":"";for(T&&(w=w.slice(1),N--);w.length<N;)w="0"+w;return T?"-"+w:w},b=(w,N)=>{w.negatives.sort((B,V)=>B<V?-1:B>V?1:0),w.positives.sort((B,V)=>B<V?-1:B>V?1:0);let T=N.capture?"":"?:",z="",O="",W;return w.positives.length&&(z=w.positives.join("|")),w.negatives.length&&(O=`-(${T}${w.negatives.join("|")})`),z&&O?W=`${z}|${O}`:W=z||O,N.wrap?`(${T}${W})`:W},S=(w,N,T,z)=>{if(T)return l(w,N,{wrap:!1,...z});let O=String.fromCharCode(w);if(w===N)return O;let W=String.fromCharCode(N);return`[${O}-${W}]`},v=(w,N,T)=>{if(Array.isArray(w)){let z=T.wrap===!0,O=T.capture?"":"?:";return z?`(${O}${w.join("|")})`:w.join("|")}return l(w,N,T)},j=(...w)=>new RangeError("Invalid range arguments: "+c.inspect(...w)),P=(w,N,T)=>{if(T.strictRanges===!0)throw j([w,N]);return[]},E=(w,N)=>{if(N.strictRanges===!0)throw new TypeError(`Expected step "${w}" to be a number`);return[]},C=(w,N,T=1,z={})=>{let O=Number(w),W=Number(N);if(!Number.isInteger(O)||!Number.isInteger(W)){if(z.strictRanges===!0)throw j([w,N]);return[]}O===0&&(O=0),W===0&&(W=0);let B=O>W,V=String(w),F=String(N),G=String(T);T=Math.max(Math.abs(T),1);let q=d(V)||d(F)||d(G),X=q?Math.max(V.length,F.length,G.length):0,A=q===!1&&g(w,N,z)===!1,k=z.transform||f(A);if(z.toRegex&&T===1)return S(_(w,X),_(N,X),!0,z);let L={negatives:[],positives:[]},Y=D=>L[D<0?"negatives":"positives"].push(Math.abs(D)),ne=[],ee=0;for(;B?O>=W:O<=W;)z.toRegex===!0&&T>1?Y(O):ne.push(y(k(O,ee),X,A)),O=B?O-T:O+T,ee++;return z.toRegex===!0?T>1?b(L,z):v(ne,null,{wrap:!1,...z}):ne},R=(w,N,T=1,z={})=>{if(!m(w)&&w.length>1||!m(N)&&N.length>1)return P(w,N,z);let O=z.transform||(A=>String.fromCharCode(A)),W=`${w}`.charCodeAt(0),B=`${N}`.charCodeAt(0),V=W>B,F=Math.min(W,B),G=Math.max(W,B);if(z.toRegex&&T===1)return S(F,G,!1,z);let q=[],X=0;for(;V?W>=B:W<=B;)q.push(O(W,X)),W=V?W-T:W+T,X++;return z.toRegex===!0?v(q,null,{wrap:!1,options:z}):q},I=(w,N,T,z={})=>{if(N==null&&h(w))return[w];if(!h(w)||!h(N))return P(w,N,z);if(typeof T=="function")return I(w,N,1,{transform:T});if(u(T))return I(w,N,0,T);let O={...z};return O.capture===!0&&(O.wrap=!0),T=T||O.step||1,m(T)?m(w)&&m(N)?C(w,N,T,O):R(w,N,Math.max(Math.abs(T),1),O):T!=null&&!u(T)?E(T,O):I(w,N,1,T)};s.exports=I},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),f=i(513),h=d=>d===""||d==="./",m=(d,g,y)=>{g=[].concat(g),d=[].concat(d);let _=new Set,b=new Set,S=new Set,v=0,j=C=>{S.add(C.output),y&&y.onResult&&y.onResult(C)};for(let C=0;C<g.length;C++){let R=u(String(g[C]),{...y,onResult:j},!0),I=R.state.negated||R.state.negatedExtglob;I&&v++;for(let w of d){let N=R(w,!0);(I?!N.isMatch:N.isMatch)&&(I?_.add(N.output):(_.delete(N.output),b.add(N.output)))}}let E=(v===g.length?[...S]:[...b]).filter(C=>!_.has(C));if(y&&E.length===0){if(y.failglob===!0)throw new Error(`No matches found for "${g.join(", ")}"`);if(y.nonull===!0||y.nullglob===!0)return y.unescape?g.map(C=>C.replace(/\\/g,"")):g}return E};m.match=m,m.matcher=(d,g)=>u(d,g),m.isMatch=(d,g,y)=>u(g,y)(d),m.any=m.isMatch,m.not=(d,g,y={})=>{g=[].concat(g).map(String);let _=new Set,b=[],v=m(d,g,{...y,onResult:j=>{y.onResult&&y.onResult(j),b.push(j.output)}});for(let j of b)v.includes(j)||_.add(j);return[..._]},m.contains=(d,g,y)=>{if(typeof d!="string")throw new TypeError(`Expected a string: "${c.inspect(d)}"`);if(Array.isArray(g))return g.some(_=>m.contains(d,_,y));if(typeof g=="string"){if(h(d)||h(g))return!1;if(d.includes(g)||d.startsWith("./")&&d.slice(2).includes(g))return!0}return m.isMatch(d,g,{...y,contains:!0})},m.matchKeys=(d,g,y)=>{if(!f.isObject(d))throw new TypeError("Expected the first argument to be an object");let _=m(Object.keys(d),g,y),b={};for(let S of _)b[S]=d[S];return b},m.some=(d,g,y)=>{let _=[].concat(d);for(let b of[].concat(g)){let S=u(String(b),y);if(_.some(v=>S(v)))return!0}return!1},m.every=(d,g,y)=>{let _=[].concat(d);for(let b of[].concat(g)){let S=u(String(b),y);if(!_.every(v=>S(v)))return!1}return!0},m.all=(d,g,y)=>{if(typeof d!="string")throw new TypeError(`Expected a string: "${c.inspect(d)}"`);return[].concat(g).every(_=>u(_,y)(d))},m.capture=(d,g,y)=>{let _=f.isWindows(y),S=u.makeRe(String(d),{...y,capture:!0}).exec(_?f.toPosixSlashes(g):g);if(S)return S.slice(1).map(v=>v===void 0?"":v)},m.makeRe=(...d)=>u.makeRe(...d),m.scan=(...d)=>u.scan(...d),m.parse=(d,g)=>{let y=[];for(let _ of[].concat(d||[]))for(let b of l(String(_),g))y.push(u.parse(b,g));return y},m.braces=(d,g)=>{if(typeof d!="string")throw new TypeError("Expected a string");return g&&g.nobrace===!0||!/\{.*\}/.test(d)?[d]:l(d,g)},m.braceExpand=(d,g)=>{if(typeof d!="string")throw new TypeError("Expected a string");return m.braces(d,{...g,expand:!0})},s.exports=m},251:(s,a,i)=>{s.exports=i(683)},356:(s,a,i)=>{const c=i(17),l="\\\\/",u=`[^${l}]`,f="\\.",h="\\+",m="\\?",d="\\/",g="(?=.)",y="[^/]",_=`(?:${d}|$)`,b=`(?:^|${d})`,S=`${f}{1,2}${_}`,v=`(?!${f})`,j=`(?!${b}${S})`,P=`(?!${f}{0,1}${_})`,E=`(?!${S})`,C=`[^.${d}]`,R=`${y}*?`,I={DOT_LITERAL:f,PLUS_LITERAL:h,QMARK_LITERAL:m,SLASH_LITERAL:d,ONE_CHAR:g,QMARK:y,END_ANCHOR:_,DOTS_SLASH:S,NO_DOT:v,NO_DOTS:j,NO_DOT_SLASH:P,NO_DOTS_SLASH:E,QMARK_NO_DOT:C,STAR:R,START_ANCHOR:b},w={...I,SLASH_LITERAL:`[${l}]`,QMARK:u,STAR:`${u}*?`,DOTS_SLASH:`${f}{1,2}(?:[${l}]|$)`,NO_DOT:`(?!${f})`,NO_DOTS:`(?!(?:^|[${l}])${f}{1,2}(?:[${l}]|$))`,NO_DOT_SLASH:`(?!${f}{0,1}(?:[${l}]|$))`,NO_DOTS_SLASH:`(?!${f}{1,2}(?:[${l}]|$))`,QMARK_NO_DOT:`[^.${l}]`,START_ANCHOR:`(?:^|[${l}])`,END_ANCHOR:`(?:[${l}]|$)`},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(T){return{"!":{type:"negate",open:"(?:(?!(?:",close:`))${T.STAR})`},"?":{type:"qmark",open:"(?:",close:")?"},"+":{type:"plus",open:"(?:",close:")+"},"*":{type:"star",open:"(?:",close:")*"},"@":{type:"at",open:"(?:",close:")"}}},globChars(T){return T===!0?w:I}}},754:(s,a,i)=>{const c=i(356),l=i(513),{MAX_LENGTH:u,POSIX_REGEX_SOURCE:f,REGEX_NON_SPECIAL_CHARS:h,REGEX_SPECIAL_CHARS_BACKREF:m,REPLACEMENTS:d}=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(P=>l.escapeRegex(P)).join("..")}return v},y=(b,S)=>`Missing ${b}: "${S}" - use "\\\\${S}" to match literal characters`,_=(b,S)=>{if(typeof b!="string")throw new TypeError("Expected a string");b=d[b]||b;const v={...S},j=typeof v.maxLength=="number"?Math.min(u,v.maxLength):u;let P=b.length;if(P>j)throw new SyntaxError(`Input length: ${P}, exceeds maximum allowed length: ${j}`);const E={type:"bos",value:"",output:v.prepend||""},C=[E],R=v.capture?"":"?:",I=l.isWindows(S),w=c.globChars(I),N=c.extglobChars(w),{DOT_LITERAL:T,PLUS_LITERAL:z,SLASH_LITERAL:O,ONE_CHAR:W,DOTS_SLASH:q,NO_DOT:F,NO_DOT_SLASH:G,NO_DOTS_SLASH:V,QMARK:B,QMARK_NO_DOT:J,STAR:A,START_ANCHOR:k}=w,D=Q=>`(${R}(?:(?!${k}${Q.dot?q:T}).)*?)`,X=v.dot?"":F,ne=v.dot?B:J;let ee=v.bash===!0?D(v):A;v.capture&&(ee=`(${ee})`),typeof v.noext=="boolean"&&(v.noextglob=v.noext);const L={input:b,index:-1,start:0,dot:v.dot===!0,consumed:"",output:"",prefix:"",backtrack:!1,negated:!1,brackets:0,braces:0,parens:0,quotes:0,globstar:!1,tokens:C};b=l.removePrefix(b,L),P=b.length;const te=[],Z=[],re=[];let $=E,M;const oe=()=>L.index===P-1,ie=L.peek=(Q=1)=>b[L.index+Q],fe=L.advance=()=>b[++L.index],pe=()=>b.slice(L.index+1),ue=(Q="",se=0)=>{L.consumed+=Q,L.index+=se},H=Q=>{L.output+=Q.output!=null?Q.output:Q.value,ue(Q.value)},be=()=>{let Q=1;for(;ie()==="!"&&(ie(2)!=="("||ie(3)==="?");)fe(),L.start++,Q++;return Q%2===0?!1:(L.negated=!0,L.start++,!0)},ae=Q=>{L[Q]++,re.push(Q)},ve=Q=>{L[Q]--,re.pop()},K=Q=>{if($.type==="globstar"){const se=L.braces>0&&(Q.type==="comma"||Q.type==="brace"),Y=Q.extglob===!0||te.length&&(Q.type==="pipe"||Q.type==="paren");Q.type!=="slash"&&Q.type!=="paren"&&!se&&!Y&&(L.output=L.output.slice(0,-$.output.length),$.type="star",$.value="*",$.output=ee,L.output+=$.output)}if(te.length&&Q.type!=="paren"&&!N[Q.value]&&(te[te.length-1].inner+=Q.value),(Q.value||Q.output)&&H(Q),$&&$.type==="text"&&Q.type==="text"){$.value+=Q.value,$.output=($.output||"")+Q.value;return}Q.prev=$,C.push(Q),$=Q},me=(Q,se)=>{const Y={...N[se],conditions:1,inner:""};Y.prev=$,Y.parens=L.parens,Y.output=L.output;const he=(v.capture?"(":"")+Y.open;ae("parens"),K({type:Q,value:se,output:L.output?"":W}),K({type:"paren",extglob:!0,value:fe(),output:he}),te.push(Y)},Ae=Q=>{let se=Q.close+(v.capture?")":"");if(Q.type==="negate"){let Y=ee;Q.inner&&Q.inner.length>1&&Q.inner.includes("/")&&(Y=D(v)),(Y!==ee||oe()||/^\)+$/.test(pe()))&&(se=Q.close=`)$))${Y}`),Q.prev.type==="bos"&&(L.negatedExtglob=!0)}K({type:"paren",extglob:!0,value:M,output:se}),ve("parens")};if(v.fastpaths!==!1&&!/(^[*!]|[/()[\]{}"])/.test(b)){let Q=!1,se=b.replace(m,(Y,he,Ce,Te,Ee,Xr)=>Te==="\\"?(Q=!0,Y):Te==="?"?he?he+Te+(Ee?B.repeat(Ee.length):""):Xr===0?ne+(Ee?B.repeat(Ee.length):""):B.repeat(Ce.length):Te==="."?T.repeat(Ce.length):Te==="*"?he?he+Te+(Ee?ee:""):ee:he?Y:`\\${Y}`);return Q===!0&&(v.unescape===!0?se=se.replace(/\\/g,""):se=se.replace(/\\+/g,Y=>Y.length%2===0?"\\\\":Y?"\\":"")),se===b&&v.contains===!0?(L.output=b,L):(L.output=l.wrapOutput(se,L,S),L)}for(;!oe();){if(M=fe(),M==="\0")continue;if(M==="\\"){const Y=ie();if(Y==="/"&&v.bash!==!0||Y==="."||Y===";")continue;if(!Y){M+="\\",K({type:"text",value:M});continue}const he=/^\\+/.exec(pe());let Ce=0;if(he&&he[0].length>2&&(Ce=he[0].length,L.index+=Ce,Ce%2!==0&&(M+="\\")),v.unescape===!0?M=fe()||"":M+=fe()||"",L.brackets===0){K({type:"text",value:M});continue}}if(L.brackets>0&&(M!=="]"||$.value==="["||$.value==="[^")){if(v.posix!==!1&&M===":"){const Y=$.value.slice(1);if(Y.includes("[")&&($.posix=!0,Y.includes(":"))){const he=$.value.lastIndexOf("["),Ce=$.value.slice(0,he),Te=$.value.slice(he+2),Ee=f[Te];if(Ee){$.value=Ce+Ee,L.backtrack=!0,fe(),!E.output&&C.indexOf($)===1&&(E.output=W);continue}}}(M==="["&&ie()!==":"||M==="-"&&ie()==="]")&&(M=`\\${M}`),M==="]"&&($.value==="["||$.value==="[^")&&(M=`\\${M}`),v.posix===!0&&M==="!"&&$.value==="["&&(M="^"),$.value+=M,H({value:M});continue}if(L.quotes===1&&M!=='"'){M=l.escapeRegex(M),$.value+=M,H({value:M});continue}if(M==='"'){L.quotes=L.quotes===1?0:1,v.keepQuotes===!0&&K({type:"text",value:M});continue}if(M==="("){ae("parens"),K({type:"paren",value:M});continue}if(M===")"){if(L.parens===0&&v.strictBrackets===!0)throw new SyntaxError(y("opening","("));const Y=te[te.length-1];if(Y&&L.parens===Y.parens+1){Ae(te.pop());continue}K({type:"paren",value:M,output:L.parens?")":"\\)"}),ve("parens");continue}if(M==="["){if(v.nobracket===!0||!pe().includes("]")){if(v.nobracket!==!0&&v.strictBrackets===!0)throw new SyntaxError(y("closing","]"));M=`\\${M}`}else ae("brackets");K({type:"bracket",value:M});continue}if(M==="]"){if(v.nobracket===!0||$&&$.type==="bracket"&&$.value.length===1){K({type:"text",value:M,output:`\\${M}`});continue}if(L.brackets===0){if(v.strictBrackets===!0)throw new SyntaxError(y("opening","["));K({type:"text",value:M,output:`\\${M}`});continue}ve("brackets");const Y=$.value.slice(1);if($.posix!==!0&&Y[0]==="^"&&!Y.includes("/")&&(M=`/${M}`),$.value+=M,H({value:M}),v.literalBrackets===!1||l.hasRegexChars(Y))continue;const he=l.escapeRegex($.value);if(L.output=L.output.slice(0,-$.value.length),v.literalBrackets===!0){L.output+=he,$.value=he;continue}$.value=`(${R}${he}|${$.value})`,L.output+=$.value;continue}if(M==="{"&&v.nobrace!==!0){ae("braces");const Y={type:"brace",value:M,output:"(",outputIndex:L.output.length,tokensIndex:L.tokens.length};Z.push(Y),K(Y);continue}if(M==="}"){const Y=Z[Z.length-1];if(v.nobrace===!0||!Y){K({type:"text",value:M,output:M});continue}let he=")";if(Y.dots===!0){const Ce=C.slice(),Te=[];for(let Ee=Ce.length-1;Ee>=0&&(C.pop(),Ce[Ee].type!=="brace");Ee--)Ce[Ee].type!=="dots"&&Te.unshift(Ce[Ee].value);he=g(Te,v),L.backtrack=!0}if(Y.comma!==!0&&Y.dots!==!0){const Ce=L.output.slice(0,Y.outputIndex),Te=L.tokens.slice(Y.tokensIndex);Y.value=Y.output="\\{",M=he="\\}",L.output=Ce;for(const Ee of Te)L.output+=Ee.output||Ee.value}K({type:"brace",value:M,output:he}),ve("braces"),Z.pop();continue}if(M==="|"){te.length>0&&te[te.length-1].conditions++,K({type:"text",value:M});continue}if(M===","){let Y=M;const he=Z[Z.length-1];he&&re[re.length-1]==="braces"&&(he.comma=!0,Y="|"),K({type:"comma",value:M,output:Y});continue}if(M==="/"){if($.type==="dot"&&L.index===L.start+1){L.start=L.index+1,L.consumed="",L.output="",C.pop(),$=E;continue}K({type:"slash",value:M,output:O});continue}if(M==="."){if(L.braces>0&&$.type==="dot"){$.value==="."&&($.output=T);const Y=Z[Z.length-1];$.type="dots",$.output+=M,$.value+=M,Y.dots=!0;continue}if(L.braces+L.parens===0&&$.type!=="bos"&&$.type!=="slash"){K({type:"text",value:M,output:T});continue}K({type:"dot",value:M,output:T});continue}if(M==="?"){if(!($&&$.value==="(")&&v.noextglob!==!0&&ie()==="("&&ie(2)!=="?"){me("qmark",M);continue}if($&&$.type==="paren"){const he=ie();let Ce=M;if(he==="<"&&!l.supportsLookbehinds())throw new Error("Node.js v10 or higher is required for regex lookbehinds");($.value==="("&&!/[!=<:]/.test(he)||he==="<"&&!/<([!=]|\w+>)/.test(pe()))&&(Ce=`\\${M}`),K({type:"text",value:M,output:Ce});continue}if(v.dot!==!0&&($.type==="slash"||$.type==="bos")){K({type:"qmark",value:M,output:J});continue}K({type:"qmark",value:M,output:B});continue}if(M==="!"){if(v.noextglob!==!0&&ie()==="("&&(ie(2)!=="?"||!/[!=<:]/.test(ie(3)))){me("negate",M);continue}if(v.nonegate!==!0&&L.index===0){be();continue}}if(M==="+"){if(v.noextglob!==!0&&ie()==="("&&ie(2)!=="?"){me("plus",M);continue}if($&&$.value==="("||v.regex===!1){K({type:"plus",value:M,output:z});continue}if($&&($.type==="bracket"||$.type==="paren"||$.type==="brace")||L.parens>0){K({type:"plus",value:M});continue}K({type:"plus",value:z});continue}if(M==="@"){if(v.noextglob!==!0&&ie()==="("&&ie(2)!=="?"){K({type:"at",extglob:!0,value:M,output:""});continue}K({type:"text",value:M});continue}if(M!=="*"){(M==="$"||M==="^")&&(M=`\\${M}`);const Y=h.exec(pe());Y&&(M+=Y[0],L.index+=Y[0].length),K({type:"text",value:M});continue}if($&&($.type==="globstar"||$.star===!0)){$.type="star",$.star=!0,$.value+=M,$.output=ee,L.backtrack=!0,L.globstar=!0,ue(M);continue}let Q=pe();if(v.noextglob!==!0&&/^\([^?]/.test(Q)){me("star",M);continue}if($.type==="star"){if(v.noglobstar===!0){ue(M);continue}const Y=$.prev,he=Y.prev,Ce=Y.type==="slash"||Y.type==="bos",Te=he&&(he.type==="star"||he.type==="globstar");if(v.bash===!0&&(!Ce||Q[0]&&Q[0]!=="/")){K({type:"star",value:M,output:""});continue}const Ee=L.braces>0&&(Y.type==="comma"||Y.type==="brace"),Xr=te.length&&(Y.type==="pipe"||Y.type==="paren");if(!Ce&&Y.type!=="paren"&&!Ee&&!Xr){K({type:"star",value:M,output:""});continue}for(;Q.slice(0,3)==="/**";){const nr=b[L.index+4];if(nr&&nr!=="/")break;Q=Q.slice(3),ue("/**",3)}if(Y.type==="bos"&&oe()){$.type="globstar",$.value+=M,$.output=D(v),L.output=$.output,L.globstar=!0,ue(M);continue}if(Y.type==="slash"&&Y.prev.type!=="bos"&&!Te&&oe()){L.output=L.output.slice(0,-(Y.output+$.output).length),Y.output=`(?:${Y.output}`,$.type="globstar",$.output=D(v)+(v.strictSlashes?")":"|$)"),$.value+=M,L.globstar=!0,L.output+=Y.output+$.output,ue(M);continue}if(Y.type==="slash"&&Y.prev.type!=="bos"&&Q[0]==="/"){const nr=Q[1]!==void 0?"|$":"";L.output=L.output.slice(0,-(Y.output+$.output).length),Y.output=`(?:${Y.output}`,$.type="globstar",$.output=`${D(v)}${O}|${O}${nr})`,$.value+=M,L.output+=Y.output+$.output,L.globstar=!0,ue(M+fe()),K({type:"slash",value:"/",output:""});continue}if(Y.type==="bos"&&Q[0]==="/"){$.type="globstar",$.value+=M,$.output=`(?:^|${O}|${D(v)}${O})`,L.output=$.output,L.globstar=!0,ue(M+fe()),K({type:"slash",value:"/",output:""});continue}L.output=L.output.slice(0,-$.output.length),$.type="globstar",$.output=D(v),$.value+=M,L.output+=$.output,L.globstar=!0,ue(M);continue}const se={type:"star",value:M,output:ee};if(v.bash===!0){se.output=".*?",($.type==="bos"||$.type==="slash")&&(se.output=X+se.output),K(se);continue}if($&&($.type==="bracket"||$.type==="paren")&&v.regex===!0){se.output=M,K(se);continue}(L.index===L.start||$.type==="slash"||$.type==="dot")&&($.type==="dot"?(L.output+=G,$.output+=G):v.dot===!0?(L.output+=V,$.output+=V):(L.output+=X,$.output+=X),ie()!=="*"&&(L.output+=W,$.output+=W)),K(se)}for(;L.brackets>0;){if(v.strictBrackets===!0)throw new SyntaxError(y("closing","]"));L.output=l.escapeLast(L.output,"["),ve("brackets")}for(;L.parens>0;){if(v.strictBrackets===!0)throw new SyntaxError(y("closing",")"));L.output=l.escapeLast(L.output,"("),ve("parens")}for(;L.braces>0;){if(v.strictBrackets===!0)throw new SyntaxError(y("closing","}"));L.output=l.escapeLast(L.output,"{"),ve("braces")}if(v.strictSlashes!==!0&&($.type==="star"||$.type==="bracket")&&K({type:"maybe_slash",value:"",output:`${O}?`}),L.backtrack===!0){L.output="";for(const Q of L.tokens)L.output+=Q.output!=null?Q.output:Q.value,Q.suffix&&(L.output+=Q.suffix)}return L};_.fastpaths=(b,S)=>{const v={...S},j=typeof v.maxLength=="number"?Math.min(u,v.maxLength):u,P=b.length;if(P>j)throw new SyntaxError(`Input length: ${P}, exceeds maximum allowed length: ${j}`);b=d[b]||b;const E=l.isWindows(S),{DOT_LITERAL:C,SLASH_LITERAL:R,ONE_CHAR:I,DOTS_SLASH:w,NO_DOT:N,NO_DOTS:T,NO_DOTS_SLASH:z,STAR:O,START_ANCHOR:W}=c.globChars(E),q=v.dot?T:N,F=v.dot?z:N,G=v.capture?"":"?:",V={negated:!1,prefix:""};let B=v.bash===!0?".*?":O;v.capture&&(B=`(${B})`);const J=X=>X.noglobstar===!0?B:`(${G}(?:(?!${W}${X.dot?w:C}).)*?)`,A=X=>{switch(X){case"*":return`${q}${I}${B}`;case".*":return`${C}${I}${B}`;case"*.*":return`${q}${B}${C}${I}${B}`;case"*/*":return`${q}${B}${R}${I}${F}${B}`;case"**":return q+J(v);case"**/*":return`(?:${q}${J(v)}${R})?${F}${I}${B}`;case"**/*.*":return`(?:${q}${J(v)}${R})?${F}${B}${C}${I}${B}`;case"**/.*":return`(?:${q}${J(v)}${R})?${C}${I}${B}`;default:{const ne=/^(.*?)\.(\w+)$/.exec(X);if(!ne)return;const ee=A(ne[1]);return ee?ee+C+ne[2]:void 0}}},k=l.removePrefix(b,V);let D=A(k);return D&&v.strictSlashes!==!0&&(D+=`${R}?`),D},s.exports=_},683:(s,a,i)=>{const c=i(17),l=i(700),u=i(754),f=i(513),h=i(356),m=g=>g&&typeof g=="object"&&!Array.isArray(g),d=(g,y,_=!1)=>{if(Array.isArray(g)){const R=g.map(w=>d(w,y,_));return w=>{for(const N of R){const T=N(w);if(T)return T}return!1}}const b=m(g)&&g.tokens&&g.input;if(g===""||typeof g!="string"&&!b)throw new TypeError("Expected pattern to be a non-empty string");const S=y||{},v=f.isWindows(y),j=b?d.compileRe(g,y):d.makeRe(g,y,!1,!0),P=j.state;delete j.state;let E=()=>!1;if(S.ignore){const R={...y,ignore:null,onMatch:null,onResult:null};E=d(S.ignore,R,_)}const C=(R,I=!1)=>{const{isMatch:w,match:N,output:T}=d.test(R,j,y,{glob:g,posix:v}),z={glob:g,state:P,regex:j,posix:v,input:R,output:T,match:N,isMatch:w};return typeof S.onResult=="function"&&S.onResult(z),w===!1?(z.isMatch=!1,I?z:!1):E(R)?(typeof S.onIgnore=="function"&&S.onIgnore(z),z.isMatch=!1,I?z:!1):(typeof S.onMatch=="function"&&S.onMatch(z),I?z:!0)};return _&&(C.state=P),C};d.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=_||{},j=v.format||(S?f.toPosixSlashes:null);let P=g===b,E=P&&j?j(g):g;return P===!1&&(E=j?j(g):g,P=E===b),(P===!1||v.capture===!0)&&(v.matchBase===!0||v.basename===!0?P=d.matchBase(g,y,_,S):P=y.exec(E)),{isMatch:!!P,match:P,output:E}},d.matchBase=(g,y,_,b=f.isWindows(_))=>(y instanceof RegExp?y:d.makeRe(y,_)).test(c.basename(g)),d.isMatch=(g,y,_)=>d(y,_)(g),d.parse=(g,y)=>Array.isArray(g)?g.map(_=>d.parse(_,y)):u(g,{...y,fastpaths:!1}),d.scan=(g,y)=>l(g,y),d.compileRe=(g,y,_=!1,b=!1)=>{if(_===!0)return g.output;const S=y||{},v=S.contains?"":"^",j=S.contains?"":"$";let P=`${v}(?:${g.output})${j}`;g&&g.negated===!0&&(P=`^(?!${P}).*$`);const E=d.toRegex(P,y);return b===!0&&(E.state=g),E},d.makeRe=(g,y,_=!1,b=!1)=>{if(!g||typeof g!="string")throw new TypeError("Expected a non-empty string");const S=y||{};let v={negated:!1,fastpaths:!0},j="",P;return g.startsWith("./")&&(g=g.slice(2),j=v.prefix="./"),S.fastpaths!==!1&&(g[0]==="."||g[0]==="*")&&(P=u.fastpaths(g,y)),P===void 0?(v=u(g,y),v.prefix=j+(v.prefix||"")):v.output=P,d.compileRe(v,y,_,b)},d.toRegex=(g,y)=>{try{const _=y||{};return new RegExp(g,_.flags||(_.nocase?"i":""))}catch(_){if(y&&y.debug===!0)throw _;return/$^/}},d.constants=h,s.exports=d},700:(s,a,i)=>{const c=i(513),{CHAR_ASTERISK:l,CHAR_AT:u,CHAR_BACKWARD_SLASH:f,CHAR_COMMA:h,CHAR_DOT:m,CHAR_EXCLAMATION_MARK:d,CHAR_FORWARD_SLASH:g,CHAR_LEFT_CURLY_BRACE:y,CHAR_LEFT_PARENTHESES:_,CHAR_LEFT_SQUARE_BRACKET:b,CHAR_PLUS:S,CHAR_QUESTION_MARK:v,CHAR_RIGHT_CURLY_BRACE:j,CHAR_RIGHT_PARENTHESES:P,CHAR_RIGHT_SQUARE_BRACKET:E}=i(356),C=w=>w===g||w===f,R=w=>{w.isPrefix!==!0&&(w.depth=w.isGlobstar?1/0:1)},I=(w,N)=>{const T=N||{},z=w.length-1,O=T.parts===!0||T.scanToEnd===!0,W=[],q=[],F=[];let G=w,V=-1,B=0,J=0,A=!1,k=!1,D=!1,X=!1,ne=!1,ee=!1,L=!1,te=!1,Z=!1,re=0,$,M,oe={value:"",depth:0,isGlob:!1};const ie=()=>V>=z,fe=()=>G.charCodeAt(V+1),pe=()=>($=M,G.charCodeAt(++V));for(;V<z;){M=pe();let ve;if(M===f){L=oe.backslashes=!0,M=pe(),M===y&&(ee=!0);continue}if(ee===!0||M===y){for(re++;ie()!==!0&&(M=pe());){if(M===f){L=oe.backslashes=!0,pe();continue}if(M===y){re++;continue}if(ee!==!0&&M===m&&(M=pe())===m){if(A=oe.isBrace=!0,D=oe.isGlob=!0,Z=!0,O===!0)continue;break}if(ee!==!0&&M===h){if(A=oe.isBrace=!0,D=oe.isGlob=!0,Z=!0,O===!0)continue;break}if(M===j&&(re--,re===0)){ee=!1,A=oe.isBrace=!0,Z=!0;break}}if(O===!0)continue;break}if(M===g){if(W.push(V),q.push(oe),oe={value:"",depth:0,isGlob:!1},Z===!0)continue;if($===m&&V===B+1){B+=2;continue}J=V+1;continue}if(T.noext!==!0&&(M===S||M===u||M===l||M===v||M===d)===!0&&fe()===_){if(D=oe.isGlob=!0,X=oe.isExtglob=!0,Z=!0,O===!0){for(;ie()!==!0&&(M=pe());){if(M===f){L=oe.backslashes=!0,M=pe();continue}if(M===P){D=oe.isGlob=!0,Z=!0;break}}continue}break}if(M===l){if($===l&&(ne=oe.isGlobstar=!0),D=oe.isGlob=!0,Z=!0,O===!0)continue;break}if(M===v){if(D=oe.isGlob=!0,Z=!0,O===!0)continue;break}if(M===b){for(;ie()!==!0&&(ve=pe());){if(ve===f){L=oe.backslashes=!0,pe();continue}if(ve===E){k=oe.isBracket=!0,D=oe.isGlob=!0,Z=!0;break}}if(O===!0)continue;break}if(T.nonegate!==!0&&M===d&&V===B){te=oe.negated=!0,B++;continue}if(T.noparen!==!0&&M===_){if(D=oe.isGlob=!0,O===!0){for(;ie()!==!0&&(M=pe());){if(M===_){L=oe.backslashes=!0,M=pe();continue}if(M===P){Z=!0;break}}continue}break}if(D===!0){if(Z=!0,O===!0)continue;break}}T.noext===!0&&(X=!1,D=!1);let ue=G,H="",be="";B>0&&(H=G.slice(0,B),G=G.slice(B),J-=B),ue&&D===!0&&J>0?(ue=G.slice(0,J),be=G.slice(J)):D===!0?(ue="",be=G):ue=G,ue&&ue!==""&&ue!=="/"&&ue!==G&&C(ue.charCodeAt(ue.length-1))&&(ue=ue.slice(0,-1)),T.unescape===!0&&(be&&(be=c.removeBackslashes(be)),ue&&L===!0&&(ue=c.removeBackslashes(ue)));const ae={prefix:H,input:w,start:B,base:ue,glob:be,isBrace:A,isBracket:k,isGlob:D,isExtglob:X,isGlobstar:ne,negated:te};if(T.tokens===!0&&(ae.maxDepth=0,C(M)||q.push(oe),ae.tokens=q),T.parts===!0||T.tokens===!0){let ve;for(let K=0;K<W.length;K++){const me=ve?ve+1:B,Ae=W[K],Q=w.slice(me,Ae);T.tokens&&(K===0&&B!==0?(q[K].isPrefix=!0,q[K].value=H):q[K].value=Q,R(q[K]),ae.maxDepth+=q[K].depth),(K!==0||Q!=="")&&F.push(Q),ve=Ae}if(ve&&ve+1<w.length){const K=w.slice(ve+1);F.push(K),T.tokens&&(q[q.length-1].value=K,R(q[q.length-1]),ae.maxDepth+=q[q.length-1].depth)}ae.slashes=W,ae.parts=F}return ae};s.exports=I},513:(s,a,i)=>{const c=i(17),l=process.platform==="win32",{REGEX_BACKSLASH:u,REGEX_REMOVE_BACKSLASH:f,REGEX_SPECIAL_CHARS:h,REGEX_SPECIAL_CHARS_GLOBAL:m}=i(356);a.isObject=d=>d!==null&&typeof d=="object"&&!Array.isArray(d),a.hasRegexChars=d=>h.test(d),a.isRegexChar=d=>d.length===1&&a.hasRegexChars(d),a.escapeRegex=d=>d.replace(m,"\\$1"),a.toPosixSlashes=d=>d.replace(u,"/"),a.removeBackslashes=d=>d.replace(f,g=>g==="\\"?"":g),a.supportsLookbehinds=()=>{const d=process.version.slice(1).split(".").map(Number);return d.length===3&&d[0]>=9||d[0]===8&&d[1]>=10},a.isWindows=d=>d&&typeof d.windows=="boolean"?d.windows:l===!0||c.sep==="\\",a.escapeLast=(d,g,y)=>{const _=d.lastIndexOf(g,y);return _===-1?d:d[_-1]==="\\"?a.escapeLast(d,g,_-1):`${d.slice(0,_)}\\${d.slice(_)}`},a.removePrefix=(d,g={})=>{let y=d;return y.startsWith("./")&&(y=y.slice(2),g.prefix="./"),y},a.wrapOutput=(d,g={},y={})=>{const _=y.contains?"":"^",b=y.contains?"":"$";let S=`${_}(?:${d})${b}`;return g.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),f=i(513),h=d=>d===""||d==="./",m=(d,g,y)=>{g=[].concat(g),d=[].concat(d);let _=new Set,b=new Set,S=new Set,v=0,j=C=>{S.add(C.output),y&&y.onResult&&y.onResult(C)};for(let C=0;C<g.length;C++){let R=u(String(g[C]),{...y,onResult:j},!0),I=R.state.negated||R.state.negatedExtglob;I&&v++;for(let w of d){let N=R(w,!0);(I?!N.isMatch:N.isMatch)&&(I?_.add(N.output):(_.delete(N.output),b.add(N.output)))}}let E=(v===g.length?[...S]:[...b]).filter(C=>!_.has(C));if(y&&E.length===0){if(y.failglob===!0)throw new Error(`No matches found for "${g.join(", ")}"`);if(y.nonull===!0||y.nullglob===!0)return y.unescape?g.map(C=>C.replace(/\\/g,"")):g}return E};m.match=m,m.matcher=(d,g)=>u(d,g),m.isMatch=(d,g,y)=>u(g,y)(d),m.any=m.isMatch,m.not=(d,g,y={})=>{g=[].concat(g).map(String);let _=new Set,b=[],v=m(d,g,{...y,onResult:j=>{y.onResult&&y.onResult(j),b.push(j.output)}});for(let j of b)v.includes(j)||_.add(j);return[..._]},m.contains=(d,g,y)=>{if(typeof d!="string")throw new TypeError(`Expected a string: "${c.inspect(d)}"`);if(Array.isArray(g))return g.some(_=>m.contains(d,_,y));if(typeof g=="string"){if(h(d)||h(g))return!1;if(d.includes(g)||d.startsWith("./")&&d.slice(2).includes(g))return!0}return m.isMatch(d,g,{...y,contains:!0})},m.matchKeys=(d,g,y)=>{if(!f.isObject(d))throw new TypeError("Expected the first argument to be an object");let _=m(Object.keys(d),g,y),b={};for(let S of _)b[S]=d[S];return b},m.some=(d,g,y)=>{let _=[].concat(d);for(let b of[].concat(g)){let S=u(String(b),y);if(_.some(v=>S(v)))return!0}return!1},m.every=(d,g,y)=>{let _=[].concat(d);for(let b of[].concat(g)){let S=u(String(b),y);if(!_.every(v=>S(v)))return!1}return!0},m.all=(d,g,y)=>{if(typeof d!="string")throw new TypeError(`Expected a string: "${c.inspect(d)}"`);return[].concat(g).every(_=>u(_,y)(d))},m.capture=(d,g,y)=>{let _=f.isWindows(y),S=u.makeRe(String(d),{...y,capture:!0}).exec(_?f.toPosixSlashes(g):g);if(S)return S.slice(1).map(v=>v===void 0?"":v)},m.makeRe=(...d)=>u.makeRe(...d),m.scan=(...d)=>u.scan(...d),m.parse=(d,g)=>{let y=[];for(let _ of[].concat(d||[]))for(let b of l(String(_),g))y.push(u.parse(b,g));return y},m.braces=(d,g)=>{if(typeof d!="string")throw new TypeError("Expected a string");return g&&g.nobrace===!0||!/\{.*\}/.test(d)?[d]:l(d,g)},m.braceExpand=(d,g)=>{if(typeof d!="string")throw new TypeError("Expected a string");return m.braces(d,{...g,expand:!0})},s.exports=m},251:(s,a,i)=>{s.exports=i(683)},356:(s,a,i)=>{const c=i(17),l="\\\\/",u=`[^${l}]`,f="\\.",h="\\+",m="\\?",d="\\/",g="(?=.)",y="[^/]",_=`(?:${d}|$)`,b=`(?:^|${d})`,S=`${f}{1,2}${_}`,v=`(?!${f})`,j=`(?!${b}${S})`,P=`(?!${f}{0,1}${_})`,E=`(?!${S})`,C=`[^.${d}]`,R=`${y}*?`,I={DOT_LITERAL:f,PLUS_LITERAL:h,QMARK_LITERAL:m,SLASH_LITERAL:d,ONE_CHAR:g,QMARK:y,END_ANCHOR:_,DOTS_SLASH:S,NO_DOT:v,NO_DOTS:j,NO_DOT_SLASH:P,NO_DOTS_SLASH:E,QMARK_NO_DOT:C,STAR:R,START_ANCHOR:b},w={...I,SLASH_LITERAL:`[${l}]`,QMARK:u,STAR:`${u}*?`,DOTS_SLASH:`${f}{1,2}(?:[${l}]|$)`,NO_DOT:`(?!${f})`,NO_DOTS:`(?!(?:^|[${l}])${f}{1,2}(?:[${l}]|$))`,NO_DOT_SLASH:`(?!${f}{0,1}(?:[${l}]|$))`,NO_DOTS_SLASH:`(?!${f}{1,2}(?:[${l}]|$))`,QMARK_NO_DOT:`[^.${l}]`,START_ANCHOR:`(?:^|[${l}])`,END_ANCHOR:`(?:[${l}]|$)`},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(T){return{"!":{type:"negate",open:"(?:(?!(?:",close:`))${T.STAR})`},"?":{type:"qmark",open:"(?:",close:")?"},"+":{type:"plus",open:"(?:",close:")+"},"*":{type:"star",open:"(?:",close:")*"},"@":{type:"at",open:"(?:",close:")"}}},globChars(T){return T===!0?w:I}}},754:(s,a,i)=>{const c=i(356),l=i(513),{MAX_LENGTH:u,POSIX_REGEX_SOURCE:f,REGEX_NON_SPECIAL_CHARS:h,REGEX_SPECIAL_CHARS_BACKREF:m,REPLACEMENTS:d}=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(P=>l.escapeRegex(P)).join("..")}return v},y=(b,S)=>`Missing ${b}: "${S}" - use "\\\\${S}" to match literal characters`,_=(b,S)=>{if(typeof b!="string")throw new TypeError("Expected a string");b=d[b]||b;const v={...S},j=typeof v.maxLength=="number"?Math.min(u,v.maxLength):u;let P=b.length;if(P>j)throw new SyntaxError(`Input length: ${P}, exceeds maximum allowed length: ${j}`);const E={type:"bos",value:"",output:v.prepend||""},C=[E],R=v.capture?"":"?:",I=l.isWindows(S),w=c.globChars(I),N=c.extglobChars(w),{DOT_LITERAL:T,PLUS_LITERAL:z,SLASH_LITERAL:O,ONE_CHAR:W,DOTS_SLASH:B,NO_DOT:V,NO_DOT_SLASH:F,NO_DOTS_SLASH:G,QMARK:q,QMARK_NO_DOT:X,STAR:A,START_ANCHOR:k}=w,L=Z=>`(${R}(?:(?!${k}${Z.dot?B:T}).)*?)`,Y=v.dot?"":V,ne=v.dot?q:X;let ee=v.bash===!0?L(v):A;v.capture&&(ee=`(${ee})`),typeof v.noext=="boolean"&&(v.noextglob=v.noext);const D={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,D),P=b.length;const te=[],J=[],re=[];let $=E,M;const oe=()=>D.index===P-1,ie=D.peek=(Z=1)=>b[D.index+Z],fe=D.advance=()=>b[++D.index],pe=()=>b.slice(D.index+1),ue=(Z="",se=0)=>{D.consumed+=Z,D.index+=se},H=Z=>{D.output+=Z.output!=null?Z.output:Z.value,ue(Z.value)},be=()=>{let Z=1;for(;ie()==="!"&&(ie(2)!=="("||ie(3)==="?");)fe(),D.start++,Z++;return Z%2===0?!1:(D.negated=!0,D.start++,!0)},ae=Z=>{D[Z]++,re.push(Z)},ve=Z=>{D[Z]--,re.pop()},K=Z=>{if($.type==="globstar"){const se=D.braces>0&&(Z.type==="comma"||Z.type==="brace"),Q=Z.extglob===!0||te.length&&(Z.type==="pipe"||Z.type==="paren");Z.type!=="slash"&&Z.type!=="paren"&&!se&&!Q&&(D.output=D.output.slice(0,-$.output.length),$.type="star",$.value="*",$.output=ee,D.output+=$.output)}if(te.length&&Z.type!=="paren"&&!N[Z.value]&&(te[te.length-1].inner+=Z.value),(Z.value||Z.output)&&H(Z),$&&$.type==="text"&&Z.type==="text"){$.value+=Z.value,$.output=($.output||"")+Z.value;return}Z.prev=$,C.push(Z),$=Z},me=(Z,se)=>{const Q={...N[se],conditions:1,inner:""};Q.prev=$,Q.parens=D.parens,Q.output=D.output;const he=(v.capture?"(":"")+Q.open;ae("parens"),K({type:Z,value:se,output:D.output?"":W}),K({type:"paren",extglob:!0,value:fe(),output:he}),te.push(Q)},Ae=Z=>{let se=Z.close+(v.capture?")":"");if(Z.type==="negate"){let Q=ee;Z.inner&&Z.inner.length>1&&Z.inner.includes("/")&&(Q=L(v)),(Q!==ee||oe()||/^\)+$/.test(pe()))&&(se=Z.close=`)$))${Q}`),Z.prev.type==="bos"&&(D.negatedExtglob=!0)}K({type:"paren",extglob:!0,value:M,output:se}),ve("parens")};if(v.fastpaths!==!1&&!/(^[*!]|[/()[\]{}"])/.test(b)){let Z=!1,se=b.replace(m,(Q,he,Ce,Te,Ee,Xr)=>Te==="\\"?(Z=!0,Q):Te==="?"?he?he+Te+(Ee?q.repeat(Ee.length):""):Xr===0?ne+(Ee?q.repeat(Ee.length):""):q.repeat(Ce.length):Te==="."?T.repeat(Ce.length):Te==="*"?he?he+Te+(Ee?ee:""):ee:he?Q:`\\${Q}`);return Z===!0&&(v.unescape===!0?se=se.replace(/\\/g,""):se=se.replace(/\\+/g,Q=>Q.length%2===0?"\\\\":Q?"\\":"")),se===b&&v.contains===!0?(D.output=b,D):(D.output=l.wrapOutput(se,D,S),D)}for(;!oe();){if(M=fe(),M==="\0")continue;if(M==="\\"){const Q=ie();if(Q==="/"&&v.bash!==!0||Q==="."||Q===";")continue;if(!Q){M+="\\",K({type:"text",value:M});continue}const he=/^\\+/.exec(pe());let Ce=0;if(he&&he[0].length>2&&(Ce=he[0].length,D.index+=Ce,Ce%2!==0&&(M+="\\")),v.unescape===!0?M=fe()||"":M+=fe()||"",D.brackets===0){K({type:"text",value:M});continue}}if(D.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),Ee=f[Te];if(Ee){$.value=Ce+Ee,D.backtrack=!0,fe(),!E.output&&C.indexOf($)===1&&(E.output=W);continue}}}(M==="["&&ie()!==":"||M==="-"&&ie()==="]")&&(M=`\\${M}`),M==="]"&&($.value==="["||$.value==="[^")&&(M=`\\${M}`),v.posix===!0&&M==="!"&&$.value==="["&&(M="^"),$.value+=M,H({value:M});continue}if(D.quotes===1&&M!=='"'){M=l.escapeRegex(M),$.value+=M,H({value:M});continue}if(M==='"'){D.quotes=D.quotes===1?0:1,v.keepQuotes===!0&&K({type:"text",value:M});continue}if(M==="("){ae("parens"),K({type:"paren",value:M});continue}if(M===")"){if(D.parens===0&&v.strictBrackets===!0)throw new SyntaxError(y("opening","("));const Q=te[te.length-1];if(Q&&D.parens===Q.parens+1){Ae(te.pop());continue}K({type:"paren",value:M,output:D.parens?")":"\\)"}),ve("parens");continue}if(M==="["){if(v.nobracket===!0||!pe().includes("]")){if(v.nobracket!==!0&&v.strictBrackets===!0)throw new SyntaxError(y("closing","]"));M=`\\${M}`}else ae("brackets");K({type:"bracket",value:M});continue}if(M==="]"){if(v.nobracket===!0||$&&$.type==="bracket"&&$.value.length===1){K({type:"text",value:M,output:`\\${M}`});continue}if(D.brackets===0){if(v.strictBrackets===!0)throw new SyntaxError(y("opening","["));K({type:"text",value:M,output:`\\${M}`});continue}ve("brackets");const Q=$.value.slice(1);if($.posix!==!0&&Q[0]==="^"&&!Q.includes("/")&&(M=`/${M}`),$.value+=M,H({value:M}),v.literalBrackets===!1||l.hasRegexChars(Q))continue;const he=l.escapeRegex($.value);if(D.output=D.output.slice(0,-$.value.length),v.literalBrackets===!0){D.output+=he,$.value=he;continue}$.value=`(${R}${he}|${$.value})`,D.output+=$.value;continue}if(M==="{"&&v.nobrace!==!0){ae("braces");const Q={type:"brace",value:M,output:"(",outputIndex:D.output.length,tokensIndex:D.tokens.length};J.push(Q),K(Q);continue}if(M==="}"){const Q=J[J.length-1];if(v.nobrace===!0||!Q){K({type:"text",value:M,output:M});continue}let he=")";if(Q.dots===!0){const Ce=C.slice(),Te=[];for(let Ee=Ce.length-1;Ee>=0&&(C.pop(),Ce[Ee].type!=="brace");Ee--)Ce[Ee].type!=="dots"&&Te.unshift(Ce[Ee].value);he=g(Te,v),D.backtrack=!0}if(Q.comma!==!0&&Q.dots!==!0){const Ce=D.output.slice(0,Q.outputIndex),Te=D.tokens.slice(Q.tokensIndex);Q.value=Q.output="\\{",M=he="\\}",D.output=Ce;for(const Ee of Te)D.output+=Ee.output||Ee.value}K({type:"brace",value:M,output:he}),ve("braces"),J.pop();continue}if(M==="|"){te.length>0&&te[te.length-1].conditions++,K({type:"text",value:M});continue}if(M===","){let Q=M;const he=J[J.length-1];he&&re[re.length-1]==="braces"&&(he.comma=!0,Q="|"),K({type:"comma",value:M,output:Q});continue}if(M==="/"){if($.type==="dot"&&D.index===D.start+1){D.start=D.index+1,D.consumed="",D.output="",C.pop(),$=E;continue}K({type:"slash",value:M,output:O});continue}if(M==="."){if(D.braces>0&&$.type==="dot"){$.value==="."&&($.output=T);const Q=J[J.length-1];$.type="dots",$.output+=M,$.value+=M,Q.dots=!0;continue}if(D.braces+D.parens===0&&$.type!=="bos"&&$.type!=="slash"){K({type:"text",value:M,output:T});continue}K({type:"dot",value:M,output:T});continue}if(M==="?"){if(!($&&$.value==="(")&&v.noextglob!==!0&&ie()==="("&&ie(2)!=="?"){me("qmark",M);continue}if($&&$.type==="paren"){const he=ie();let Ce=M;if(he==="<"&&!l.supportsLookbehinds())throw new Error("Node.js v10 or higher is required for regex lookbehinds");($.value==="("&&!/[!=<:]/.test(he)||he==="<"&&!/<([!=]|\w+>)/.test(pe()))&&(Ce=`\\${M}`),K({type:"text",value:M,output:Ce});continue}if(v.dot!==!0&&($.type==="slash"||$.type==="bos")){K({type:"qmark",value:M,output:X});continue}K({type:"qmark",value:M,output:q});continue}if(M==="!"){if(v.noextglob!==!0&&ie()==="("&&(ie(2)!=="?"||!/[!=<:]/.test(ie(3)))){me("negate",M);continue}if(v.nonegate!==!0&&D.index===0){be();continue}}if(M==="+"){if(v.noextglob!==!0&&ie()==="("&&ie(2)!=="?"){me("plus",M);continue}if($&&$.value==="("||v.regex===!1){K({type:"plus",value:M,output:z});continue}if($&&($.type==="bracket"||$.type==="paren"||$.type==="brace")||D.parens>0){K({type:"plus",value:M});continue}K({type:"plus",value:z});continue}if(M==="@"){if(v.noextglob!==!0&&ie()==="("&&ie(2)!=="?"){K({type:"at",extglob:!0,value:M,output:""});continue}K({type:"text",value:M});continue}if(M!=="*"){(M==="$"||M==="^")&&(M=`\\${M}`);const Q=h.exec(pe());Q&&(M+=Q[0],D.index+=Q[0].length),K({type:"text",value:M});continue}if($&&($.type==="globstar"||$.star===!0)){$.type="star",$.star=!0,$.value+=M,$.output=ee,D.backtrack=!0,D.globstar=!0,ue(M);continue}let Z=pe();if(v.noextglob!==!0&&/^\([^?]/.test(Z)){me("star",M);continue}if($.type==="star"){if(v.noglobstar===!0){ue(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||Z[0]&&Z[0]!=="/")){K({type:"star",value:M,output:""});continue}const Ee=D.braces>0&&(Q.type==="comma"||Q.type==="brace"),Xr=te.length&&(Q.type==="pipe"||Q.type==="paren");if(!Ce&&Q.type!=="paren"&&!Ee&&!Xr){K({type:"star",value:M,output:""});continue}for(;Z.slice(0,3)==="/**";){const nr=b[D.index+4];if(nr&&nr!=="/")break;Z=Z.slice(3),ue("/**",3)}if(Q.type==="bos"&&oe()){$.type="globstar",$.value+=M,$.output=L(v),D.output=$.output,D.globstar=!0,ue(M);continue}if(Q.type==="slash"&&Q.prev.type!=="bos"&&!Te&&oe()){D.output=D.output.slice(0,-(Q.output+$.output).length),Q.output=`(?:${Q.output}`,$.type="globstar",$.output=L(v)+(v.strictSlashes?")":"|$)"),$.value+=M,D.globstar=!0,D.output+=Q.output+$.output,ue(M);continue}if(Q.type==="slash"&&Q.prev.type!=="bos"&&Z[0]==="/"){const nr=Z[1]!==void 0?"|$":"";D.output=D.output.slice(0,-(Q.output+$.output).length),Q.output=`(?:${Q.output}`,$.type="globstar",$.output=`${L(v)}${O}|${O}${nr})`,$.value+=M,D.output+=Q.output+$.output,D.globstar=!0,ue(M+fe()),K({type:"slash",value:"/",output:""});continue}if(Q.type==="bos"&&Z[0]==="/"){$.type="globstar",$.value+=M,$.output=`(?:^|${O}|${L(v)}${O})`,D.output=$.output,D.globstar=!0,ue(M+fe()),K({type:"slash",value:"/",output:""});continue}D.output=D.output.slice(0,-$.output.length),$.type="globstar",$.output=L(v),$.value+=M,D.output+=$.output,D.globstar=!0,ue(M);continue}const se={type:"star",value:M,output:ee};if(v.bash===!0){se.output=".*?",($.type==="bos"||$.type==="slash")&&(se.output=Y+se.output),K(se);continue}if($&&($.type==="bracket"||$.type==="paren")&&v.regex===!0){se.output=M,K(se);continue}(D.index===D.start||$.type==="slash"||$.type==="dot")&&($.type==="dot"?(D.output+=F,$.output+=F):v.dot===!0?(D.output+=G,$.output+=G):(D.output+=Y,$.output+=Y),ie()!=="*"&&(D.output+=W,$.output+=W)),K(se)}for(;D.brackets>0;){if(v.strictBrackets===!0)throw new SyntaxError(y("closing","]"));D.output=l.escapeLast(D.output,"["),ve("brackets")}for(;D.parens>0;){if(v.strictBrackets===!0)throw new SyntaxError(y("closing",")"));D.output=l.escapeLast(D.output,"("),ve("parens")}for(;D.braces>0;){if(v.strictBrackets===!0)throw new SyntaxError(y("closing","}"));D.output=l.escapeLast(D.output,"{"),ve("braces")}if(v.strictSlashes!==!0&&($.type==="star"||$.type==="bracket")&&K({type:"maybe_slash",value:"",output:`${O}?`}),D.backtrack===!0){D.output="";for(const Z of D.tokens)D.output+=Z.output!=null?Z.output:Z.value,Z.suffix&&(D.output+=Z.suffix)}return D};_.fastpaths=(b,S)=>{const v={...S},j=typeof v.maxLength=="number"?Math.min(u,v.maxLength):u,P=b.length;if(P>j)throw new SyntaxError(`Input length: ${P}, exceeds maximum allowed length: ${j}`);b=d[b]||b;const E=l.isWindows(S),{DOT_LITERAL:C,SLASH_LITERAL:R,ONE_CHAR:I,DOTS_SLASH:w,NO_DOT:N,NO_DOTS:T,NO_DOTS_SLASH:z,STAR:O,START_ANCHOR:W}=c.globChars(E),B=v.dot?T:N,V=v.dot?z:N,F=v.capture?"":"?:",G={negated:!1,prefix:""};let q=v.bash===!0?".*?":O;v.capture&&(q=`(${q})`);const X=Y=>Y.noglobstar===!0?q:`(${F}(?:(?!${W}${Y.dot?w:C}).)*?)`,A=Y=>{switch(Y){case"*":return`${B}${I}${q}`;case".*":return`${C}${I}${q}`;case"*.*":return`${B}${q}${C}${I}${q}`;case"*/*":return`${B}${q}${R}${I}${V}${q}`;case"**":return B+X(v);case"**/*":return`(?:${B}${X(v)}${R})?${V}${I}${q}`;case"**/*.*":return`(?:${B}${X(v)}${R})?${V}${q}${C}${I}${q}`;case"**/.*":return`(?:${B}${X(v)}${R})?${C}${I}${q}`;default:{const ne=/^(.*?)\.(\w+)$/.exec(Y);if(!ne)return;const ee=A(ne[1]);return ee?ee+C+ne[2]:void 0}}},k=l.removePrefix(b,G);let L=A(k);return L&&v.strictSlashes!==!0&&(L+=`${R}?`),L},s.exports=_},683:(s,a,i)=>{const c=i(17),l=i(700),u=i(754),f=i(513),h=i(356),m=g=>g&&typeof g=="object"&&!Array.isArray(g),d=(g,y,_=!1)=>{if(Array.isArray(g)){const R=g.map(w=>d(w,y,_));return w=>{for(const N of R){const T=N(w);if(T)return T}return!1}}const b=m(g)&&g.tokens&&g.input;if(g===""||typeof g!="string"&&!b)throw new TypeError("Expected pattern to be a non-empty string");const S=y||{},v=f.isWindows(y),j=b?d.compileRe(g,y):d.makeRe(g,y,!1,!0),P=j.state;delete j.state;let E=()=>!1;if(S.ignore){const R={...y,ignore:null,onMatch:null,onResult:null};E=d(S.ignore,R,_)}const C=(R,I=!1)=>{const{isMatch:w,match:N,output:T}=d.test(R,j,y,{glob:g,posix:v}),z={glob:g,state:P,regex:j,posix:v,input:R,output:T,match:N,isMatch:w};return typeof S.onResult=="function"&&S.onResult(z),w===!1?(z.isMatch=!1,I?z:!1):E(R)?(typeof S.onIgnore=="function"&&S.onIgnore(z),z.isMatch=!1,I?z:!1):(typeof S.onMatch=="function"&&S.onMatch(z),I?z:!0)};return _&&(C.state=P),C};d.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=_||{},j=v.format||(S?f.toPosixSlashes:null);let P=g===b,E=P&&j?j(g):g;return P===!1&&(E=j?j(g):g,P=E===b),(P===!1||v.capture===!0)&&(v.matchBase===!0||v.basename===!0?P=d.matchBase(g,y,_,S):P=y.exec(E)),{isMatch:!!P,match:P,output:E}},d.matchBase=(g,y,_,b=f.isWindows(_))=>(y instanceof RegExp?y:d.makeRe(y,_)).test(c.basename(g)),d.isMatch=(g,y,_)=>d(y,_)(g),d.parse=(g,y)=>Array.isArray(g)?g.map(_=>d.parse(_,y)):u(g,{...y,fastpaths:!1}),d.scan=(g,y)=>l(g,y),d.compileRe=(g,y,_=!1,b=!1)=>{if(_===!0)return g.output;const S=y||{},v=S.contains?"":"^",j=S.contains?"":"$";let P=`${v}(?:${g.output})${j}`;g&&g.negated===!0&&(P=`^(?!${P}).*$`);const E=d.toRegex(P,y);return b===!0&&(E.state=g),E},d.makeRe=(g,y,_=!1,b=!1)=>{if(!g||typeof g!="string")throw new TypeError("Expected a non-empty string");const S=y||{};let v={negated:!1,fastpaths:!0},j="",P;return g.startsWith("./")&&(g=g.slice(2),j=v.prefix="./"),S.fastpaths!==!1&&(g[0]==="."||g[0]==="*")&&(P=u.fastpaths(g,y)),P===void 0?(v=u(g,y),v.prefix=j+(v.prefix||"")):v.output=P,d.compileRe(v,y,_,b)},d.toRegex=(g,y)=>{try{const _=y||{};return new RegExp(g,_.flags||(_.nocase?"i":""))}catch(_){if(y&&y.debug===!0)throw _;return/$^/}},d.constants=h,s.exports=d},700:(s,a,i)=>{const c=i(513),{CHAR_ASTERISK:l,CHAR_AT:u,CHAR_BACKWARD_SLASH:f,CHAR_COMMA:h,CHAR_DOT:m,CHAR_EXCLAMATION_MARK:d,CHAR_FORWARD_SLASH:g,CHAR_LEFT_CURLY_BRACE:y,CHAR_LEFT_PARENTHESES:_,CHAR_LEFT_SQUARE_BRACKET:b,CHAR_PLUS:S,CHAR_QUESTION_MARK:v,CHAR_RIGHT_CURLY_BRACE:j,CHAR_RIGHT_PARENTHESES:P,CHAR_RIGHT_SQUARE_BRACKET:E}=i(356),C=w=>w===g||w===f,R=w=>{w.isPrefix!==!0&&(w.depth=w.isGlobstar?1/0:1)},I=(w,N)=>{const T=N||{},z=w.length-1,O=T.parts===!0||T.scanToEnd===!0,W=[],B=[],V=[];let F=w,G=-1,q=0,X=0,A=!1,k=!1,L=!1,Y=!1,ne=!1,ee=!1,D=!1,te=!1,J=!1,re=0,$,M,oe={value:"",depth:0,isGlob:!1};const ie=()=>G>=z,fe=()=>F.charCodeAt(G+1),pe=()=>($=M,F.charCodeAt(++G));for(;G<z;){M=pe();let ve;if(M===f){D=oe.backslashes=!0,M=pe(),M===y&&(ee=!0);continue}if(ee===!0||M===y){for(re++;ie()!==!0&&(M=pe());){if(M===f){D=oe.backslashes=!0,pe();continue}if(M===y){re++;continue}if(ee!==!0&&M===m&&(M=pe())===m){if(A=oe.isBrace=!0,L=oe.isGlob=!0,J=!0,O===!0)continue;break}if(ee!==!0&&M===h){if(A=oe.isBrace=!0,L=oe.isGlob=!0,J=!0,O===!0)continue;break}if(M===j&&(re--,re===0)){ee=!1,A=oe.isBrace=!0,J=!0;break}}if(O===!0)continue;break}if(M===g){if(W.push(G),B.push(oe),oe={value:"",depth:0,isGlob:!1},J===!0)continue;if($===m&&G===q+1){q+=2;continue}X=G+1;continue}if(T.noext!==!0&&(M===S||M===u||M===l||M===v||M===d)===!0&&fe()===_){if(L=oe.isGlob=!0,Y=oe.isExtglob=!0,J=!0,O===!0){for(;ie()!==!0&&(M=pe());){if(M===f){D=oe.backslashes=!0,M=pe();continue}if(M===P){L=oe.isGlob=!0,J=!0;break}}continue}break}if(M===l){if($===l&&(ne=oe.isGlobstar=!0),L=oe.isGlob=!0,J=!0,O===!0)continue;break}if(M===v){if(L=oe.isGlob=!0,J=!0,O===!0)continue;break}if(M===b){for(;ie()!==!0&&(ve=pe());){if(ve===f){D=oe.backslashes=!0,pe();continue}if(ve===E){k=oe.isBracket=!0,L=oe.isGlob=!0,J=!0;break}}if(O===!0)continue;break}if(T.nonegate!==!0&&M===d&&G===q){te=oe.negated=!0,q++;continue}if(T.noparen!==!0&&M===_){if(L=oe.isGlob=!0,O===!0){for(;ie()!==!0&&(M=pe());){if(M===_){D=oe.backslashes=!0,M=pe();continue}if(M===P){J=!0;break}}continue}break}if(L===!0){if(J=!0,O===!0)continue;break}}T.noext===!0&&(Y=!1,L=!1);let ue=F,H="",be="";q>0&&(H=F.slice(0,q),F=F.slice(q),X-=q),ue&&L===!0&&X>0?(ue=F.slice(0,X),be=F.slice(X)):L===!0?(ue="",be=F):ue=F,ue&&ue!==""&&ue!=="/"&&ue!==F&&C(ue.charCodeAt(ue.length-1))&&(ue=ue.slice(0,-1)),T.unescape===!0&&(be&&(be=c.removeBackslashes(be)),ue&&D===!0&&(ue=c.removeBackslashes(ue)));const ae={prefix:H,input:w,start:q,base:ue,glob:be,isBrace:A,isBracket:k,isGlob:L,isExtglob:Y,isGlobstar:ne,negated:te};if(T.tokens===!0&&(ae.maxDepth=0,C(M)||B.push(oe),ae.tokens=B),T.parts===!0||T.tokens===!0){let ve;for(let K=0;K<W.length;K++){const me=ve?ve+1:q,Ae=W[K],Z=w.slice(me,Ae);T.tokens&&(K===0&&q!==0?(B[K].isPrefix=!0,B[K].value=H):B[K].value=Z,R(B[K]),ae.maxDepth+=B[K].depth),(K!==0||Z!=="")&&V.push(Z),ve=Ae}if(ve&&ve+1<w.length){const K=w.slice(ve+1);V.push(K),T.tokens&&(B[B.length-1].value=K,R(B[B.length-1]),ae.maxDepth+=B[B.length-1].depth)}ae.slashes=W,ae.parts=V}return ae};s.exports=I},513:(s,a,i)=>{const c=i(17),l=process.platform==="win32",{REGEX_BACKSLASH:u,REGEX_REMOVE_BACKSLASH:f,REGEX_SPECIAL_CHARS:h,REGEX_SPECIAL_CHARS_GLOBAL:m}=i(356);a.isObject=d=>d!==null&&typeof d=="object"&&!Array.isArray(d),a.hasRegexChars=d=>h.test(d),a.isRegexChar=d=>d.length===1&&a.hasRegexChars(d),a.escapeRegex=d=>d.replace(m,"\\$1"),a.toPosixSlashes=d=>d.replace(u,"/"),a.removeBackslashes=d=>d.replace(f,g=>g==="\\"?"":g),a.supportsLookbehinds=()=>{const d=process.version.slice(1).split(".").map(Number);return d.length===3&&d[0]>=9||d[0]===8&&d[1]>=10},a.isWindows=d=>d&&typeof d.windows=="boolean"?d.windows:l===!0||c.sep==="\\",a.escapeLast=(d,g,y)=>{const _=d.lastIndexOf(g,y);return _===-1?d:d[_-1]==="\\"?a.escapeLast(d,g,_-1):`${d.slice(0,_)}\\${d.slice(_)}`},a.removePrefix=(d,g={})=>{let y=d;return y.startsWith("./")&&(y=y.slice(2),g.prefix="./"),y},a.wrapOutput=(d,g={},y={})=>{const _=y.contains?"":"^",b=y.contains?"":"$";let S=`${_}(?:${d})${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,R,I)=>{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 w={relaxZeros:!0,...I};typeof w.strictZeros=="boolean"&&(w.relaxZeros=w.strictZeros===!1);let N=String(w.relaxZeros),T=String(w.shorthand),z=String(w.capture),O=String(w.wrap),W=C+":"+R+"="+N+T+z+O;if(l.cache.hasOwnProperty(W))return l.cache[W].result;let
|
|
41
|
-
`+JSON.stringify(a));if(!(0,n.makeRe)(a.hostname).test(i.hostname))return!1;var c;return!!(0,n.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))}}(On)),On}var nc;function Bf(){return nc||(nc=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return n}});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(f){throw console.error(f),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:f}=K_();if(!f(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 n=t}(Tn)),Tn}(function(e,t){"use client";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"Image",{enumerable:!0,get:function(){return S}});const n=ke,s=Nt._(x),a=n._(ls),i=n._(i_()),c=qs,l=Hr,u=c_(),f=Qt,h=Iu(),m=n._(Bf()),d=process.env.__NEXT_IMAGE_OPTS;typeof window>"u"&&(globalThis.__NEXT_IMAGE_IMPORTED=!0);function g(v,j,P,E,C,R){const I=v==null?void 0:v.src;if(!v||v["data-loaded-src"]===I)return;v["data-loaded-src"]=I,("decode"in v?v.decode():Promise.resolve()).catch(()=>{}).then(()=>{if(!(!v.parentElement||!v.isConnected)){if(j!=="empty"&&C(!0),P!=null&&P.current){const N=new Event("load");Object.defineProperty(N,"target",{writable:!1,value:v});let T=!1,z=!1;P.current({...N,nativeEvent:N,currentTarget:v,target:v,isDefaultPrevented:()=>T,isPropagationStopped:()=>z,persist:()=>{},preventDefault:()=>{T=!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(I,"http://n").searchParams.get("url")||I;if(v.getAttribute("data-nimg")==="fill"){if(!R&&(!v.getAttribute("sizes")||v.getAttribute("sizes")==="100vw")&&v.getBoundingClientRect().width/window.innerWidth<.6&&(0,f.warnOnce)('Image with src "'+N+'" has "fill" but is missing "sizes" prop. Please add it to improve page performance. Read more: https://nextjs.org/docs/api-reference/next/image#sizes'),v.parentElement){const{position:O}=window.getComputedStyle(v.parentElement),W=["absolute","fixed","relative"];W.includes(O)||(0,f.warnOnce)('Image with src "'+N+'" has "fill" and parent element with invalid "position". Provided "'+O+'" should be one of '+W.map(String).join(",")+".")}v.height===0&&(0,f.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 T=v.height.toString()!==v.getAttribute("height"),z=v.width.toString()!==v.getAttribute("width");(T&&!z||!T&&z)&&(0,f.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 y(v){const[j,P]=s.version.split("."),E=parseInt(j,10),C=parseInt(P,10);return E>18||E===18&&C>=3?{fetchPriority:v}:{fetchpriority:v}}const _=(0,s.forwardRef)((v,j)=>{let{src:P,srcSet:E,sizes:C,height:R,width:I,decoding:w,className:N,style:T,fetchPriority:z,placeholder:O,loading:W,unoptimized:q,fill:F,onLoadRef:G,onLoadingCompleteRef:V,setBlurComplete:B,setShowAltText:J,onLoad:A,onError:k,...D}=v;return s.default.createElement("img",{...D,...y(z),loading:W,width:I,height:R,decoding:w,"data-nimg":F?"fill":"1",className:N,style:T,sizes:C,srcSet:E,src:P,ref:(0,s.useCallback)(X=>{j&&(typeof j=="function"?j(X):typeof j=="object"&&(j.current=X)),X&&(k&&(X.src=X.src),process.env.NODE_ENV!=="production"&&(P||console.error('Image is missing required "src" property:',X),X.getAttribute("alt")===null&&console.error('Image is missing required "alt" property. Please add Alternative Text to describe the image for screen readers and search engines.')),X.complete&&g(X,O,G,V,B,q))},[P,O,G,V,B,k,q,j]),onLoad:X=>{const ne=X.currentTarget;g(ne,O,G,V,B,q)},onError:X=>{J(!0),O!=="empty"&&B(!0),k&&k(X)}})});function b(v){let{isAppRouter:j,imgAttributes:P}=v;const E={as:"image",imageSrcSet:P.srcSet,imageSizes:P.sizes,crossOrigin:P.crossOrigin,referrerPolicy:P.referrerPolicy,...y(P.fetchPriority)};return j&&a.default.preload?(a.default.preload(P.src,E),null):s.default.createElement(i.default,null,s.default.createElement("link",{key:"__nimg-"+P.src+P.srcSet+P.sizes,rel:"preload",href:P.srcSet?void 0:P.src,...E}))}const 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=d||C||l.imageConfigDefault,B=[...V.deviceSizes,...V.imageSizes].sort((A,k)=>A-k),J=V.deviceSizes.sort((A,k)=>A-k);return{...V,allSizes:B,deviceSizes:J}},[C]),{onLoad:I,onLoadingComplete:w}=v,N=(0,s.useRef)(I);(0,s.useEffect)(()=>{N.current=I},[I]);const T=(0,s.useRef)(w);(0,s.useEffect)(()=>{T.current=w},[w]);const[z,O]=(0,s.useState)(!1),[W,q]=(0,s.useState)(!1),{props:F,meta:G}=(0,c.getImgProps)(v,{defaultLoader:m.default,imgConf:R,blurComplete:z,showAltText:W});return s.default.createElement(s.default.Fragment,null,s.default.createElement(_,{...F,unoptimized:G.unoptimized,placeholder:G.placeholder,fill:G.fill,onLoadRef:N,onLoadingCompleteRef:T,setBlurComplete:O,setShowAltText:q,ref:j}),G.priority?s.default.createElement(b,{isAppRouter:E,imgAttributes:F}):null)});(typeof t.default=="function"||typeof t.default=="object"&&t.default!==null)&&typeof t.default.__esModule>"u"&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)})(Jo,Jo.exports);var X_=Jo.exports;(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(u,f){for(var h in f)Object.defineProperty(u,h,{enumerable:!0,get:f[h]})}t(e,{unstable_getImgProps:function(){return c},default:function(){return l}});const n=ke,o=qs,s=Qt,a=X_,i=n._(Bf()),c=u=>{(0,s.warnOnce)("Warning: unstable_getImgProps() is experimental and may change or be removed at any time. Use at your own risk.");const{props:f}=(0,o.getImgProps)(u,{defaultLoader:i.default,imgConf:process.env.__NEXT_IMAGE_OPTS});for(const[h,m]of Object.entries(f))m===void 0&&delete f[h];return{props:f}},l=a.Image})(Af);var Y_=Af;const Er=Mr(Y_),Q_=({item:e,CONSTANTS:t})=>{const n=e.icon?t.PAYMENT_FLAGS.includes(e.icon)?"payment":"social":null,o=n==="payment"?t.PAYMENT_FLAGS_DICTIONARY[e.icon]:e.icon;return e.link?r.jsxs(De,{href:e.link,target:"_blank",rel:"noopener noreferrer",className:ye["support-item"],children:[e.image&&r.jsx("img",{src:e.image,alt:"",loading:"lazy"}),n==="payment"?r.jsx(Er,{alt:o,src:`/assets/${o}.svg`,width:20,height:20}):r.jsx(p.Icon,{size:"small",name:o})]}):r.jsxs("div",{className:ye["support-item"],children:[e.image&&r.jsx("img",{src:e.image,alt:"",loading:"lazy"}),n==="payment"?r.jsx(Er,{alt:o,src:`/assets/${o}.svg`,width:20,height:20}):r.jsx(p.Icon,{size:"small",name:o})]})},Z_=({content:e,CONSTANTS:t})=>r.jsx("div",{className:ye["support-container"],children:e==null?void 0:e.map((n,o)=>r.jsxs("div",{"data-device":n.device,className:ye["support-section"],children:[r.jsxs("div",{className:ye["support-text"],children:[n.title&&r.jsx("h3",{children:n.title}),n.description&&r.jsx("p",{children:n.description})]}),Array.isArray(n.items)&&n.items.length&&r.jsx("div",{className:ye["support-items"],"data-gap":n.gap,children:n.items.map((s,a)=>r.jsx(Q_,{item:s,CONSTANTS:t},`footer-support-item-${a}`))})]},`footer-support-${o}`))}),J_=({name:e,nameIcon:t,maxWidth:n,rowAlignContent:o,columnAlignContent:s,columnAlignItems:a,textAlignContent:i,textAlignItems:c,children:l})=>r.jsx(p.TextStructure.Root,{layoutProps:{textRow:{alignContent:o,alignItems:o},columnWrapper:{alignContent:s,alignItems:a}},children:r.jsxs(p.TextStructure.DivWrapper,{alignContent:i,alignItems:c,className:ye.footer__column,children:[r.jsxs("div",{className:t?ye.footer__columnTitleIcon:ye.footer__columnTitle,children:[r.jsx(p.Icon,{name:`${t}`,size:"small"}),e&&r.jsx("div",{children:e})]}),r.jsx("div",{className:ye.footer__columnContent,style:{maxWidth:`${n}px`},children:l})]})}),ev=({name:e,nameIcon:t,maxWidth:n,children:o,ICONS:s,...a})=>r.jsxs(p.Accordion.Wrapper,{className:ye.accordionWrapper,title:"accordion-wrapper",...a,children:[r.jsx(p.Accordion.Header,{id:(a==null?void 0:a.id)??"",className:ye.accordionHeader,closeIndicator:r.jsx(p.Icon,{name:s.arrow_up,size:"medium"}),openIndicator:r.jsx(p.Icon,{name:s.arrow_down,size:"medium"}),title:"accordion-header",children:r.jsx(p.TextStructure.Root,{children:r.jsxs(p.TextStructure.DivWrapper,{className:t?ye.accordionTextWrapper:"",children:[r.jsx(p.Icon,{name:`${t}`,size:"medium"}),r.jsx("h2",{className:"typography-style-body-md",children:e})]})})}),r.jsx(p.Accordion.Body,{title:"accordion-body",children:r.jsx(p.TextStructure.Root,{children:r.jsx(p.TextStructure.DivWrapper,{className:ye.footer__columnContent,style:{maxWidth:`${n}px`},children:o})})})]}),Do=e=>{const{isMobile:t}=ce();return t?r.jsx(ev,{...e}):r.jsx(J_,{...e})},vr=({type:e,children:t,className:n,collumnName:o,collumnNameIcon:s,icons:a,iconLink:i,iconSize:c,link:l,paymentDisclaimer:u,paymentTitle:f,rowAlignContent:h,columnAlignContent:m,columnAlignItems:d,textAlignContent:g,textAlignItems:y,..._})=>{let b;const{handleSelectContent:S}=le(),{nextimage:v}=_e();switch(e){case"menu":b=r.jsx(De,{className:ye.footer__itemLink,href:l??"#",prefetch:!1,children:r.jsx("span",{onClick:()=>{S({content:`footer:${o}:${t}`})},children:t})});break;case"payment":b=r.jsxs("div",{className:p.helpers.classNameConcat(ye.payment,ye.footer__itemSmallText),..._,children:[u,r.jsxs("div",{className:p.helpers.classNameConcat(ye.footer__iconContainer,ye.footer__iconListSubHeader),children:[f,r.jsx("div",{className:ye.footer__iconList,children:a==null?void 0:a.map((j,P)=>r.jsx(v,{alt:j,src:`/assets/${j}.svg`,width:c??20,height:c??20},P))})]})]});break;case"social-media":b=r.jsx("div",{className:ye.footer__iconContainer,..._,children:r.jsx("div",{className:ye.footer__iconList,children:i==null?void 0:i.map((j,P)=>r.jsx(De,{prefetch:!1,href:j.link??"#",target:"_blank",children:r.jsx(p.Icon,{size:"medium",name:j.icon,onClick:()=>S({content:`footer:redes-sociais:${j.icon}`})})},P))})});break;default:b=r.jsx("div",{className:n,..._,children:t})}return r.jsx(p.TextStructure.Root,{layoutProps:{textRow:{alignContent:h,alignItems:h},columnWrapper:{alignContent:m,alignItems:d}},..._,children:r.jsx(p.TextStructure.DivWrapper,{alignContent:g,alignItems:y,className:p.helpers.classNameConcat(ye.footer__item,n),children:b})})},tv=({className:e,text:t,...n})=>r.jsx("div",{...n,className:p.helpers.classNameConcat(ye.footer__legalInformation,e),children:r.jsx("span",{children:t})}),qf=()=>{const{nextimage:e}=_e();return r.jsx("div",{className:ye["footer--stamps"],children:r.jsx(e,{alt:"Empresa B",className:ye["footer--stamps--company"],src:"/images/Footer/new_certfB.png",width:56,height:64})})};qf.displayName="Footer.Stamps";const Hf=({children:e,legalTextSlot:t,adornment:n,className:o,...s})=>{const{isMobile:a}=ce(),i=x.Children.toArray(e).filter(Boolean),c=i.length;return r.jsxs("div",{className:ye.footer__main,children:[(n==null?void 0:n.top)&&r.jsx("div",{className:ye.footer__top,children:n==null?void 0:n.top}),c>0&&r.jsx("div",{...s,className:p.helpers.classNameConcat(ye.footer__wrapper,o),children:i.map((l,u)=>r.jsx("div",{style:{flexGrow:1,maxWidth:`calc(100% / ${a?1:"fit-content"})`},children:l},u))}),(n==null?void 0:n.bottom)&&r.jsx("div",{className:ye.footer__bottom,children:n.bottom}),t&&r.jsx("div",{className:ye.footer__legalText,children:t})]})};Hf.displayName="Footer.Wrapper";const Uf=({data:{links:{links:e}},payments:t,socialInfo:n,socialMedias:o,adornment:s,LEGAL_INFORMATION_TEXT:a,ICONS:i})=>{var c;return r.jsxs(Hf,{adornment:s,legalTextSlot:r.jsx(tv,{text:a}),children:[Array.isArray(e.column)&&e.column.map((l,u)=>r.jsx(Do,{id:`${u}column-menu`,name:l.name,nameIcon:l.nameIcon,ICONS:i,children:l.items.map((f,h)=>r.jsx(vr,{type:"menu",link:f.link,collumnName:l.name,collumnNameIcon:l.nameIcon,children:f.text},h))},u)),t&&((c=t.acceptedFlags)==null?void 0:c.length)>0&&r.jsx(Do,{id:"payment-column",name:t==null?void 0:t.title,nameIcon:t==null?void 0:t.titleIcon,maxWidth:150,ICONS:i,children:r.jsx(vr,{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})}),r.jsxs(Do,{id:"social-media-column",name:n==null?void 0:n.title,ICONS:i,children:[n!=null&&n.subTitle?r.jsx(vr,{children:n==null?void 0:n.subTitle}):null,r.jsx(vr,{type:"social-media",iconSize:24,iconLink:o}),r.jsx(qf,{})]})]})};Uf.displayName="Footer";const rv=Object.freeze(Object.defineProperty({__proto__:null,Footer:Uf,FooterSupport:Z_},Symbol.toStringTag,{value:"Module"})),nv=()=>{const{colorName:e}=$e();return r.jsx(p.TextStructure.Root,{children:r.jsx(p.TextStructure.DivWrapper,{className:e.length===0?"":U.styles["accessibility-info"],children:r.jsx("p",{children:e})})})},Gr=({className:e,titleId:t})=>{var s,a,i;const{productName:n,tag:o}=$e();return r.jsxs("div",{className:p.helpers.classNameConcat(U.styles.header,e),children:[o!=null&&o.commercial?r.jsx(p.Tag,{size:"small",title:(s=o.commercial)==null?void 0:s.value,variant:"quaternary",adornment:{start:(a=o.commercial)!=null&&a.icon?r.jsx(p.Icon,{name:o.commercial.icon}):null},children:(i=o.commercial)==null?void 0:i.value}):null,r.jsx(p.TextStructure.Root,{children:r.jsx(p.TextStructure.DivWrapper,{children:r.jsx("h1",{id:t,children:n})})})]})};Gr.displayName="PDP.PDPHeader";const Vs=({layout:e="horizontal"})=>{const{price:t,listPrice:n,installments:o}=$e(),{count:s,value:a}=o,i=U.formatPriceToCurrency(n??0,!0),c=U.formatPriceToCurrency(t??0,!0),l=U.formatPriceToCurrency(a??0);return r.jsx(p.ProductInfo.Root,{size:"small",layout:e,children:r.jsxs(p.ProductInfo.Wrapper,{layout:e,size:"small",className:U.styles["price-wrapper"],children:[r.jsx(p.ProductInfo.ValuesWrapper,{children:t!==n?r.jsxs(r.Fragment,{children:[r.jsx(p.ProductInfo.Price,{label:"originalPrice",value:i.toString(),size:"small"}),r.jsx(p.ProductInfo.Price,{label:"discountPrice",value:c.toString(),size:"small"})]}):r.jsx(p.ProductInfo.Price,{label:"defaultPrice",value:c.toString(),size:"small"})}),s&&s>1&&a?r.jsx(p.ProductInfo.Price,{label:"installment",value:`ou ${s}x ${l}`,size:"small"}):null]})})},es=({onAddCallBack:e,onDisabledClickCallBack:t,addToCartBtnSize:n,BUY_BUTTON_LABELS:o})=>{const s=Kt(),{productId:a,productData:i,price:c,listPrice:l,thumbImage:u,isKit:f}=$e(),{isMobile:h}=ce(),{addToCart:m}=Re(),{sendDataLayerEvent:d}=le(),g=!f&&(!s.sku||!s.available),y=()=>{if(g&&typeof t=="function"){t();return}typeof e=="function"&&e({id:s.sku,quantity:s.quantity,seller:s.sellerId,sku:a}),m({id:s.sku,quantity:s.quantity,seller:s.sellerId},{id:a,texture:u==null?void 0:u.imageUrl}),d({functionKey:"skuEvents",data:{event:"add_to_cart",commonData:{products:[{...i,price:c,listPrice:l}]},supportData:{selectedSkus:[s]},customData:{quantity:s.quantity}}})};return r.jsx(p.Button,{className:U.styles["add-to-cart"],size:h?(n==null?void 0:n.mobile)??"large":(n==null?void 0:n.desktop)??"x-large",onClick:y,children:s.sku&&s.available?`${o.add_to_cart}`:`${o.select_size}`})},ov=({addToCartBtnSize:e,BUY_BUTTON_LABELS:t})=>{const{isMobile:n}=ce(),o=Kt(),{sizesContainerRef:s}=vc(),{structureRef:a}=we();return o.sku&&o.available?r.jsx(es,{addToCartBtnSize:e,BUY_BUTTON_LABELS:t}):r.jsx(p.Button,{className:U.styles["add-to-cart"],size:n?(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})},sv=({addToCartBtnSize:e,BUY_BUTTON_LABELS:t,Z_INDEX_WAR:n})=>{const{isMobile:o}=ce();return o?r.jsxs(p.Card,{className:U.styles["bottom-navigation"],shadow:!0,style:{zIndex:n.pdp_bottom_navigation},children:[r.jsxs("div",{className:U.styles["bottom-navigation__header"],children:[r.jsx(Gr,{}),r.jsx(Vs,{layout:"name-vertical"})]}),r.jsx(ov,{addToCartBtnSize:e,BUY_BUTTON_LABELS:t})]}):null},av=({children:e,setShowBottomNavigation:t})=>{const n=x.useRef(null),o=ds(n),s=x.useRef(o);return x.useEffect(()=>{var i;const{top:a}=((i=n.current)==null?void 0:i.getBoundingClientRect())??{top:0};s.current!==o&&a>0&&(t(!o),s.current=o)},[o]),r.jsx("div",{ref:n,style:{width:"100%"},children:e})},iv=({ICONS:e})=>{const{isMobile:t}=ce(),{price:n,listPrice:o,productData:s,productId:a}=$e(),{sendDataLayerEvent:i}=le(),c=Tt(),{toggleProduct:l}=vt();return r.jsx(p.Button,{adornment:{start:r.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:n,listPrice:o}}})}})},Wf=({showWishlist:e=!0,callBack:t,addToCartBtnSize:n,BUY_BUTTON_LABELS:o,ICONS:s,Z_INDEX_WAR:a})=>{const{isMobile:i}=ce(),[c,l]=x.useState(!0);return r.jsxs(r.Fragment,{children:[r.jsxs("div",{className:U.styles.actions,children:[i?r.jsx(av,{setShowBottomNavigation:l,children:r.jsx(es,{onAddCallBack:t,addToCartBtnSize:n,BUY_BUTTON_LABELS:o})}):r.jsx(es,{onAddCallBack:t,addToCartBtnSize:n,BUY_BUTTON_LABELS:o}),e&&r.jsx(iv,{ICONS:s})]}),i&&c&&r.jsx(sv,{addToCartBtnSize:n,BUY_BUTTON_LABELS:o,Z_INDEX_WAR:a})]})},Gf=({className:e,device:t,ICONS:n})=>{const{breadcrumbList:o,productName:s}=$e(),a=i=>i.toLowerCase().normalize("NFD").replace(/[\u0300-\u036f]/g,"");return r.jsx(p.BreadCrumb.DivWrapper,{className:p.helpers.classNameConcat(U.styles.breadcrumb,[t==="mobile"?U.styles["breadcrumbs-mobile"]:U.styles["breadcrumbs-desktop"],e]),children:r.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 r.jsx(p.BreadCrumb.Item,{adornment:{end:r.jsx(p.Icon,{name:n.arrow_right})},role:"listitem",children:r.jsx(De,{href:`/${l}`,children:i})},`pdp-breadcrumb-${l}-${c}`)}),r.jsx(p.BreadCrumb.Item,{role:"listitem",className:p.helpers.classNameConcat(U.styles["breadcrumb--active"],e),children:s},"pdp-breadcrumb-productName")]})})};Gf.displayName="PDP.BreadCrumb";const Vf=({className:e})=>{var o;const{tag:t}=$e(),n=t==null?void 0:t.flagPdp;return n&&((o=n==null?void 0:n.value)!=null&&o.length)?r.jsx(p.Tag,{className:p.helpers.classNameConcat(U.styles.credits,e),variant:"tertiary",title:n==null?void 0:n.value,size:"small",adornment:{start:n!=null&&n.enableIcon&&(n!=null&&n.icon)?r.jsx(p.Icon,{name:n==null?void 0:n.icon,style:{color:n==null?void 0:n.iconColor}}):null},style:{background:n==null?void 0:n.tagColor,color:n==null?void 0:n.textColor},children:n==null?void 0:n.value}):r.jsx(r.Fragment,{})};Vf.displayName="PDPCredits";const cv=()=>{const{descriptionContent:e,productReference:t}=$e(),[n,o]=x.useState("description");return r.jsxs(p.Tabs.Root,{className:U.styles["tabs-root-modifier"],children:[r.jsx(p.Tabs.TabList,{className:U.styles["tabs-list-modifier"],children:e==null?void 0:e.map(({label:s,value:a})=>r.jsx(p.Tabs.Item,{label:s,value:a,activeTab:n,onTabChange:o,size:"large",className:`${U.styles["tabs-item-modifier"]} ${n===a?U.styles["tabs-item-active"]:""}`},a))}),r.jsxs("div",{className:U.styles["content-wrapper"],children:[n==="description"?r.jsx("div",{children:r.jsxs("span",{className:U.styles.productref,children:["Ref:",t]})}):"",e==null?void 0:e.map(({value:s,content:a})=>n===s?r.jsx(p.Tabs.Panel,{className:`${U.styles["tabs-panel"]} ${n===s?U.styles["tabs-panel-enter"]:U.styles["tabs-panel-exit"]}`,children:r.jsx("div",{className:U.styles.content,dangerouslySetInnerHTML:{__html:a}})},s):null)]})]})},lv=({CURRENCY:e,DELIVERY_INFO_BOXES_ALLOWED:t,FREIGHT_CALCULATION:n,Z_INDEX_WAR:o})=>{const s=Kt(),{isMobile:a}=ce();return r.jsxs(r.Fragment,{children:[a?r.jsx(p.Utils.Divider,{direction:"horizontal",size:"small"}):null,r.jsx(nf,{skuId:s.available?s.sku:"",size:a?n.inputSize.mobile:n.inputSize.desktop,quantity:s.quantity,sellerId:s.sellerId,seller:s.sellerName,local:"PDP",CONSTANTS_PROPS:{freightConfig:n,deliveryInfoBoxesAllowed:t,toolTipZIndex:o.modal,currency:e}}),a?r.jsx(p.Utils.Divider,{direction:"horizontal",size:"small"}):null]})},oc=({image:e,index:t,handleZoom:n,PRODUCT_IMAGE_DIMENSIONS:o})=>{const s=U.resizingImg(e.imageUrl,o.pdp),{nextimage:a}=_e();return r.jsx(a,{src:s,alt:e.imageLabel,objectFit:"contain",...o.pdp,...t<=1&&{priority:!0,loading:"eager"},onClick:()=>{n(t)}},t)},uv=({video:e,productName:t,poster:n})=>{const{sendDataLayerEvent:o}=le(),s=x.useRef(!1);return r.jsx(Ie.Video,{src:e,autoPlay:!0,muted:!0,loop:!0,playsInline:!0,style:{zIndex:-1,aspectRatio:"2/3"},onPlaying:()=>{s.current||(s.current=!0,o({functionKey:"readyEvents",data:{event:"video_start",readyData:{product:t}}}))},poster:n})},Kf=({images:e,video:t,handleZoom:n,productName:o,PRODUCT_IMAGE_DIMENSIONS:s})=>{var u,f;const{initialize:a,pagination:i,controller:c,itemsStyles:l}=p.Carousel.useCarousel({gap:0,itemsPerPage:1,loop:!1,direction:"row"});return r.jsxs(p.Carousel.Root,{innerRef:h=>{a(h)},className:U.styles["gallery-carousel-modifier"],children:[r.jsx(p.Carousel.Controller,{position:"absolute",top:"24px",bottom:"unset",left:"16px",children:r.jsx(p.Carousel.Bullets,{page:i.currentPage,total:e.length,onBulletClick:h=>c==null?void 0:c.navigateTo(h)})}),r.jsxs(p.Carousel.Body,{children:[r.jsx(p.Carousel.Item,{style:l,children:r.jsx(oc,{image:e[0],index:0,handleZoom:n,PRODUCT_IMAGE_DIMENSIONS:s})},"PDP_gallery_0"),t&&r.jsx(p.Carousel.Item,{style:l,children:r.jsx(uv,{video:t,productName:o,...((u=e[1])==null?void 0:u.imageUrl)&&{poster:(f=e[1])==null?void 0:f.imageUrl}})},"PDP_gallery_video"),e.map((h,m)=>m===0?null:r.jsx(p.Carousel.Item,{style:l,children:r.jsx(oc,{image:h,index:m,handleZoom:n,PRODUCT_IMAGE_DIMENSIONS:s})},`PDP_gallery_${m}`))]})]})};Kf.displayName="PDP.Carousel";const dv="_thumbs_1954e_65",fv="_selected_1954e_92",pv="_carousel_1954e_164",mv="_bullets_1954e_201",Pe={"image-zoom-wrapper-desktop":"_image-zoom-wrapper-desktop_1954e_1","button-close-container":"_button-close-container_1954e_10","button-close":"_button-close_1954e_10","main-image-container":"_main-image-container_1954e_22","image-desktop":"_image-desktop_1954e_52",thumbs:dv,selected:fv,"image-zoom-wrapper-mobile":"_image-zoom-wrapper-mobile_1954e_117","image-mobile":"_image-mobile_1954e_147","image-zoom--image":"_image-zoom--image_1954e_161",carousel:pv,"carousel-controller":"_carousel-controller_1954e_169","arrow-left":"_arrow-left_1954e_179","arrow-right":"_arrow-right_1954e_180",bullets:mv,"zoom-popup":"_zoom-popup_1954e_212","image-zoom--mobile":"_image-zoom--mobile_1954e_252","image-zoom--image--img":"_image-zoom--image--img_1954e_282"},sc=({onClose:e,ICONS:t})=>r.jsx("div",{className:`${Pe["button-close-container"]}`,children:r.jsx(p.Button,{iconNameStart:t.close,iconSize:"medium",className:`${Pe["button-close"]}`,variant:"tertiary",state:"default",size:"medium",onClick:e,style:{textDecoration:"none"}})}),hv=({children:e,Z_INDEX_WAR:t,...n})=>r.jsx("div",{...n,className:Pe["image-zoom-wrapper-desktop"],style:{zIndex:t.pdp_image_zoom},children:e}),Xf=({images:e,setCurrent:t,setFirstImgLoaded:n,ICONS:o,PRODUCT_IMAGE_DIMENSIONS:s})=>{const{nextimage:a}=_e();let i=null;const c=x.useRef(null),{initialize:l,controller:u,pagination:f,itemsStyles:h}=p.Carousel.useCarousel({itemsPerPage:1,gap:10,loop:!1,direction:"row"}),m=g=>{u==null||u.navigateTo(g)},d=()=>{n(!0)};return x.useEffect(()=>{t(f.currentPage)},[f.currentPage,t]),r.jsxs(p.Carousel.Root,{innerRef:g=>{g&&!i&&(i=g,l(i))},className:Pe.carousel,children:[r.jsxs(p.Carousel.Controller,{className:Pe["carousel-controller"],children:[r.jsx(p.Button,{variant:"tertiary",onClick:()=>u==null?void 0:u.prevPage(),className:Pe["arrow-left"],adornment:{start:r.jsx(p.Icon,{name:o.arrow_left})}}),r.jsx(p.Button,{variant:"tertiary",onClick:()=>u==null?void 0:u.nextPage(),className:Pe["arrow-right"],adornment:{start:r.jsx(p.Icon,{name:o.arrow_right})}})]}),r.jsx(p.Carousel.Body,{children:Array.isArray(e)&&e.map((g,y)=>r.jsx(p.Carousel.Item,{style:h,children:r.jsx(a,{...s.image_zoom.mobile,...y===0&&{priority:!0,loading:"eager"},ref:c,className:Pe.imageMobile,src:g.imageUrl,alt:g.imageText,quality:100,...y===0&&{onLoad:d}})},y))}),r.jsx(p.Carousel.Bullets,{className:Pe.bullets,page:f.currentPage,total:f.totalPages,onBulletClick:m})]})};Xf.displayName="ImageZoom.Mobile.Carousel";const Yf=({imgRef:e,image:t,PRODUCT_IMAGE_DIMENSIONS:n})=>{Ec();const{nextimage:o}=_e();return r.jsx("div",{className:Pe["image-zoom--image"],ref:e,children:r.jsx(o,{...n.image_zoom.mobile,alt:t.imageText,className:Pe["image-zoom--image--img"],quality:100,src:t.imageUrl})})};Yf.displayName="ImageZoom.ImageZoom";const Qf=({loaded:e=!1})=>r.jsx("div",{className:Pe["zoom-popup"],"data-loaded":e,children:r.jsxs("svg",{width:"38",height:"39",viewBox:"0 0 38 39",xmlns:"http://www.w3.org/2000/svg",children:[r.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"}),r.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"}),r.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"})]})});Qf.displayName="ImageZoom.ZoomPopup";const Zf=({images:e,ICONS:t,PRODUCT_IMAGE_DIMENSIONS:n,...o})=>{const[s,a]=x.useState(!1),[i,c]=x.useState(0),{containerRef:l,imgRef:u,scale:f}=Rc({defaultScale:1,maxScale:3});return r.jsxs("div",{...o,className:Pe["image-mobile"],"data-disable-carrousel-pan":f>1,children:[r.jsx(Qf,{loaded:s}),r.jsx(Xf,{images:e,setCurrent:c,setFirstImgLoaded:a,ICONS:t,PRODUCT_IMAGE_DIMENSIONS:n}),r.jsx("div",{className:Pe["image-zoom--mobile"],ref:l,children:r.jsx(Yf,{imgRef:u,image:e[i],PRODUCT_IMAGE_DIMENSIONS:n})})]})};Zf.displayName="ImageZoom.ImageMobile";const gv=({children:e,Z_INDEX_WAR:t,...n})=>r.jsx("div",{...n,className:Pe["image-zoom-wrapper-mobile"],style:{zIndex:t.pdp_image_zoom},children:e}),yv="_modal_1u87b_1",et={modal:yv,"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 _v({headerTitle:e,isMobile:t,ICONS:n}){return r.jsx(p.Modal.Header,{navigation:"top",className:et["modal-header"],children:r.jsxs(p.Modal.Controls,{navigation:"top",isMobile:t,children:[r.jsx("div",{className:et["modal-header__title"],children:r.jsx(p.Modal.Title,{navigation:"top",className:et["quick-shop__title"],title:e})}),r.jsx(p.Button,{className:et["modal-header__close-button"],"data-close":!0,iconNameStart:n.close,size:"small",variant:"tertiary"})]})})}const vv=({items:e,getLabel:t,PLP_SIZE_ORDER:n})=>Array.isArray(e)?[...e].sort((o,s)=>{const a=t(o).toUpperCase(),i=t(s).toUpperCase(),c=n.indexOf(a)-n.indexOf(i);return c!==0?c:a.localeCompare(i,"pt-BR")}):[],Jf=({PDP_INFO:e,PLP_SIZE_ORDER:t,ICONS:n,NEWSLETTER_CONFIGS:o,NOTIFY_INFO:s,PRODUCT_CARD_TEXTS:a,Z_INDEX_WAR:i})=>{const{sizes:c,productId:l,handleViewItemEvent:u}=$e(),f=x.useMemo(()=>c!=null&&c.length?vv({items:c,getLabel:j=>j.value,PLP_SIZE_ORDER:t}):[],[c]),{sizesContainerRef:h}=vc(),{isMobile:m}=ce(),d=Kt(),g=ll(),{setValue:y}=al(),{setValue:_}=_s(),b=x.useRef({}),[S,v]=x.useState(null);return r.jsxs("div",{ref:h,className:U.styles.sizes,children:[r.jsx("span",{className:U.styles["sections-title"],children:e.product.size_title}),r.jsx("div",{children:f.map(j=>(!j.available&&!b.current[j.value]&&(b.current[j.value]={disable:!j.available,size:j.value,skuID:j.sku}),r.jsxs(p.ToggleSize.Wrapper,{size:m?"medium":"large",title:j.value,outOfStock:!j.available,onClick:()=>{j.available||(v({skuID:j.sku,size:j.value,disable:!0}),_(!0)),d.sku!==j.sku&&(y({...d,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:d.sku===j.sku,children:[r.jsx(p.ToggleSize.DisabledAdornment,{title:"disabled-adornment-texture"}),r.jsx(p.ToggleSize.Text,{children:j==null?void 0:j.value})]},`sizes-${j.sku}-${j.value}`)))}),r.jsx(Ns,{open:g,setVisible:_,sku:S,setSku:v,skus:Object.values(b.current),ICONS:n,NEWSLETTER_CONFIGS:o,NOTIFY_INFO:s,PRODUCT_CARD_TEXTS:a,Z_INDEX_WAR:i})]})},Ft=({children:e,className:t,type:n})=>r.jsx("div",{className:p.helpers.classNameConcat(U.styles["pdp-main__info-subsection"],[U.styles[`subsection-${n}`],t]),children:e}),ep=({children:e,className:t})=>{const{structureRef:n,tipbarRef:o}=we(),s=x.useMemo(()=>{var c,l;const a=((c=n.current)==null?void 0:c.clientHeight)||0,i=((l=o.current)==null?void 0:l.clientHeight)||0;return a+i},[n,o]);return r.jsx("div",{className:p.helpers.classNameConcat(U.styles["pdp-main__info"],t),id:"pdpmaininfo",style:{top:s},children:e})},xv=({children:e,link:t,TOGGLE_STYLE_MODIFIER:n})=>{const{isMobile:o}=ce(),{router:s}=_e(),a=()=>{t&&s.push(t)},i=x.useRef(null);return r.jsx(p.ToggleStyle.Wrapper,{size:o?"medium":"small",style:{...n,border:`${i.current===t?"2":"1"}`,overflow:"hidden",padding:"0"},onClick:a,active:i.current===t,children:e})},tp=({productId:e,similars:t,TOGGLE_STYLE_MODIFIER:n})=>{const{thumbImage:o}=$e(),s=[{productId:e,slug:"",textureImage:(o==null?void 0:o.imageUrl)??"",textureAlt:(o==null?void 0:o.imageText)??""},...t];return r.jsx("div",{children:s.map((a,i)=>a.textureImage?r.jsxs(xv,{link:a.slug?a.slug:null,TOGGLE_STYLE_MODIFIER:n,children:[r.jsx(p.ToggleStyle.DisabledAdornment,{}),r.jsx(p.ToggleStyle.Texture,{children:r.jsx(Ie.Image,{alt:a.textureAlt,src:a.textureImage,height:34,width:34,style:{borderRadius:0,height:"100%"}})})]},`similars-item-${i}`):null)})},rp=({TEXTURE_IMAGE:e,TOGGLE_STYLE_MODIFIER:t})=>{const{productId:n}=$e(),[o,s]=x.useState([]);return x.useEffect(()=>{fetch("/api/catalog/product/similars",{method:"POST",body:JSON.stringify({productId:n,filterTexture:e})}).then(a=>a.json()).then(({data:a})=>{Array.isArray(a)&&a.length===0||s(a)}).catch(a=>{console.error(a)})},[n]),r.jsxs("div",{className:U.styles.similars,children:[r.jsx("span",{className:U.styles["sections-title"],children:"Cor"}),r.jsx(tp,{productId:n,similars:o,TOGGLE_STYLE_MODIFIER:t})]})};rp.displayName="PDP.Info.Similars";const bv=({callBackProductAdded:e,BUY_BUTTON_LABELS:t,ICONS:n,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:f})=>r.jsx(p.Modal.Body,{className:et["modal-product-body"],children:r.jsxs(ep,{className:et["pdp-main__info-modifier"],children:[r.jsxs(Ft,{type:"product-info",children:[r.jsx(Gr,{}),r.jsx(Vs,{})]}),r.jsx(Ft,{type:"similars",children:r.jsx(rp,{TEXTURE_IMAGE:l,TOGGLE_STYLE_MODIFIER:u})}),r.jsx(Ft,{type:"sizes",children:r.jsx(Jf,{ICONS:n,NEWSLETTER_CONFIGS:o,NOTIFY_INFO:s,PDP_INFO:a,PLP_SIZE_ORDER:i,PRODUCT_CARD_TEXTS:c,Z_INDEX_WAR:f})}),r.jsx(Ft,{type:"actions",children:r.jsx(Wf,{showWishlist:!1,callBack:e,addToCartBtnSize:{mobile:"medium",desktop:"large"},BUY_BUTTON_LABELS:t,ICONS:n,Z_INDEX_WAR:f})})]})});function jv({callBackProductAdded:e,QUICKSHOP:t,ICONS:n,...o}){const[s,a]=x.useState(!1),i=()=>a(c=>!c);return r.jsxs("div",{className:et["quick-shop"],children:[r.jsx(p.Button,{onClick:i,size:"x-large",className:et["shop-bag"],iconNameStart:n.bag,iconSize:"medium"}),r.jsxs(p.Modal.Root,{isOpen:s,setIsOpen:a,className:`${et.modal} ${et["quick-shop__modal"]}`,style:{position:"fixed",height:"100svh",width:"100%",top:0,zIndex:1e3,bottom:"unset",overflowY:"hidden"},variant:"sideRight",children:[r.jsx(_v,{headerTitle:t.title,ICONS:n}),r.jsx(bv,{callBackProductAdded:e,ICONS:n,...o})]})]})}const Cv=({image:e})=>r.jsx(Er,{src:U.resizingImg(e.imageUrl,{width:50,height:75})||"",alt:e.imageText,className:Pe.mainImage,layout:"fill",objectFit:"cover",priority:!0,quality:10,style:{position:"absolute",inset:0,filter:"blur(10px)"}}),Sv=({images:e,selectedImageIndex:t,PRODUCT_IMAGE_DIMENSIONS:n,...o})=>{const[s,a]=x.useState(!1),{nextimage:i}=_e();return r.jsx("div",{...o,className:Pe["main-image-container"],children:r.jsxs("div",{className:Pe["image-desktop"],children:[!s&&r.jsx(Cv,{image:e==null?void 0:e[t]}),r.jsx(i,{src:U.resizingImg(e==null?void 0:e[t].imageUrl,{...n.image_zoom.desktop})||"",alt:e==null?void 0:e[t].imageText,className:Pe.mainImage,layout:"fill",objectFit:"cover",priority:!0,quality:100,onLoad:()=>{a(!0)}})]})})},Pv=({images:e,onThumbnailClick:t,selectedImageIndex:n})=>{const{nextimage:o}=_e();return r.jsx("div",{className:Pe.thumbs,children:e.map((s,a)=>r.jsx("div",{role:"button",tabIndex:0,onClick:()=>t(a),onKeyDown:i=>{(i.key==="Enter"||i.key===" ")&&t(a)},className:a===n?Pe.selected:"",children:r.jsx(o,{src:s.imageUrl,alt:s.imageText,layout:"responsive",width:100,height:100,objectFit:"cover",priority:!1})},a))})},np=({images:e,initialSelectedImageIndex:t=0,setShowImageZoom:n,ICONS:o,PRODUCT_IMAGE_DIMENSIONS:s,Z_INDEX_WAR:a,...i})=>{const{isMobile:c}=ce(),[l,u]=x.useState(t),f=h=>{u(h)};return c?r.jsxs(gv,{Z_INDEX_WAR:a,children:[r.jsx(sc,{onClose:()=>n({show:!1,initialIndex:0}),ICONS:o}),r.jsx(Zf,{images:e,ICONS:o,PRODUCT_IMAGE_DIMENSIONS:s})]}):r.jsxs(hv,{Z_INDEX_WAR:a,children:[r.jsx(sc,{onClose:()=>n({show:!1,initialIndex:0}),ICONS:o}),r.jsx(Sv,{images:e,selectedImageIndex:l,onThumbnailClick:f,PRODUCT_IMAGE_DIMENSIONS:s},e[l].imageId??`${e[l].imageText}-${l}`),r.jsx(Pv,{images:e,selectedImageIndex:l,onThumbnailClick:f}),r.jsx(jv,{callBackProductAdded:()=>{n({initialIndex:0,show:!1})},ICONS:o,Z_INDEX_WAR:a,...i})]})};np.displayName="ImageZoom";const wv=({productImgs:e,PRODUCT_IMAGE_DIMENSIONS:t,...n})=>{const{video:o,productName:s}=$e(),[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 r.jsxs(r.Fragment,{children:[r.jsx(Kf,{images:e,video:o,handleZoom:c,productName:s,PRODUCT_IMAGE_DIMENSIONS:t}),a.show&&r.jsx(np,{images:e,initialSelectedImageIndex:a.initialIndex,setShowImageZoom:i,PRODUCT_IMAGE_DIMENSIONS:t,...n})]})},op=({TEXTURE_IMAGE:e,PRODUCT_IMAGE_DIMENSIONS:t,...n})=>{const{images:o}=$e(),s=x.useMemo(()=>{const a=o.filter(i=>!e.includes(i.imageLabel));return a.length>0?a:o},[]);return r.jsx(wv,{productImgs:s,TEXTURE_IMAGE:e,PRODUCT_IMAGE_DIMENSIONS:t,...n})};op.displayName="PDP.Gallery";const Ev=({className:e,hasIcons:t=!0,ICONS:n,PDP_INFO:o})=>{const{allSizesAvailable:s,productId:a}=$e(),{setValue:i}=_s(),{sendDataLayerEvent:c}=le();return r.jsx("div",{className:p.helpers.classNameConcat(U.styles.links,e),id:"pdp-container","data-product-id":a,children:r.jsxs("div",{className:U.styles["links-wrapper"],children:[!s&&r.jsx(p.Button,{adornment:t?{start:r.jsx(p.Icon,{name:n.product})}:{},size:"x-small",variant:"tertiary",onClick:()=>i(!0),underline:!0,children:o.links_and_stepper.size_out_of_stock}),r.jsx(p.Button,{adornment:t?{start:r.jsx(p.Icon,{name:n.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}),r.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})]})})},Rv=({children:e})=>r.jsx("div",{className:U.styles["pdp-main__info-main-content"],children:e}),Av=({head:e,className:t})=>r.jsx("thead",{className:t,children:r.jsx("tr",{children:e.map((n,o)=>r.jsx("th",{children:n},`head-title-${o}`))})}),Nv=({rows:e,className:t})=>r.jsx("tbody",{className:t,children:e.map((n,o)=>r.jsx("tr",{children:n.map(s=>typeof s=="string"&&s.includes("blocks")?JSON.parse(s).blocks.map(a=>`${a.text}
|
|
42
|
-
`):s).map((s,a)=>r.jsx("td",{children:s},`cell-content-${a}`))},`row-content-${o}`))}),Iv="_tableContainer_1yxy2_1",Tv={tableContainer:Iv},Ov=({children:e,className:t=""})=>r.jsx("table",{className:`${Tv.tableContainer} ${t}`,children:e}),$o={Head:Av,Rows:Nv,Root:Ov},kv=({title:e,text:t})=>r.jsxs("p",{className:U.styles.measurementRowsText,children:[r.jsx("h1",{className:U.styles.measurementRowsTitle,children:e}),t]}),Mv=({ICONS:e,SIZES:t,Z_INDEX_WAR:n})=>{const o=fl(),{setValue:s}=pl();return r.jsx(p.Modal.Root,{isMobile:!0,style:{zIndex:n.modal},setIsOpen:s,isOpen:o,className:U.styles.measurementModal,children:r.jsx(p.Modal.Body,{children:r.jsxs("div",{className:U.styles.measurementContainer,children:[r.jsx("h1",{className:U.styles.measurementTitle,children:t.title}),r.jsxs("div",{className:U.styles.measurementContent,children:[r.jsx("div",{className:U.styles.measurementImageContainer,children:r.jsx(Er,{width:264,height:402,alt:"",className:U.styles.measurementImage,src:t.bannerImage})}),r.jsxs($o.Root,{className:U.styles.measurementTable,children:[r.jsx($o.Head,{className:U.styles.measurementHead,head:t.head}),r.jsx($o.Rows,{className:U.styles.measurementRows,rows:t.rows.map((a,i)=>[r.jsx(kv,{title:t.descriptions[i].title,text:t.descriptions[i].text},i),...a])})]})]}),r.jsx(p.Button,{onClick:()=>s(!1),className:U.styles.measurementClose,variant:"tertiary",children:r.jsx(p.Icon,{name:e.close})})]})})},"minicart")},Lv=({children:e,className:t,...n})=>r.jsx("div",{className:p.helpers.classNameConcat(U.styles["pdp-main__gallery-wrapper"],t),...n,children:e}),Dv=({children:e,className:t,...n})=>r.jsx("div",{className:p.helpers.classNameConcat(U.styles.pdp,t),...n,children:e}),$v=({children:e,className:t,...n})=>r.jsx("div",{className:p.helpers.classNameConcat(U.styles["pdp-main"],t),...n,children:e}),zv=({children:e,className:t,...n})=>r.jsx("div",{className:p.helpers.classNameConcat(U.styles["pdp-main__info-secondary-content"],t),...n,children:e}),Fv={gallery:Lv,pdp:Dv,main:$v,secondary:zv},Bv=({className:e,...t})=>r.jsx(p.Utils.Divider,{...t,className:p.helpers.classNameConcat(U.styles.divider,e)}),qv=Object.freeze(Object.defineProperty({__proto__:null,AccessibilityInfo:nv,Actions:Wf,BreadCrumb:Gf,Credits:Vf,DescriptionsTabs:cv,Divider:Bv,Freight:lv,Gallery:op,Header:Gr,Links:Ev,MainContent:Rv,MainInfo:ep,Price:Vs,ProductMeasurements:Mv,SimilarsItems:tp,Sizes:Jf,SubSectionWrapper:Ft,containers:Fv},Symbol.toStringTag,{value:"Module"})),Hv=(e,t)=>{const[n,o]=mf({items:e}),[s,a]=t.split(":").map(Number);return isNaN(s)||isNaN(a)?[n,o]:[n<s?n:s,o>a?o:a]},Uv=()=>{var E;const{ICONS:e,PLP_FILTERS:t,PLP_FILTERS_COLORS:n,PLP_FILTERS_EMPTY:o,PLP_FILTERS_TITLE:s,PLP_SIZE_ORDER:a}=Le(),[i,c]=x.useState("10000:0"),{isMobile:l}=ce(),{sendDataLayerEvent:u}=le(),{openFilters:f,setOpenFilters:h}=ws(),{state:m}=ze(),{breadcrumb:d,deleteAllFacets:g,isLoading:y=!1,facets:_,onToggleFacet:b,selectedFacets:S}=au.contexts.searchFacets.hook(),v=x.useRef(""),j={isLast:!0,href:(E=m.term)!=null&&E.length?`/${m.term}`:"",name:m.term},P=U.filterNonRootFacets(S,m==null?void 0:m.base);return x.useEffect(()=>{const C=_.find(({key:R})=>R==="price");if(C){const[R,I]=Hv(C.values,i??"10000:0");c(`${R}:${I}`)}},[_,i,c]),x.useEffect(()=>{if(!P.length)return;const C=JSON.stringify(P);v.current!==C&&(v.current=C,u({functionKey:"filterEvent",data:{commonData:{selectedFacets:P}}}))},[P]),r.jsxs(Sr.teamComponents.Filter.Root,{CONSTANTS:{ICONS:e,PLP_FILTERS_TITLE:s,PLP_FILTERS:t},breadcrumb:d.length?d:[j],deleteAllFacets:g,filters:{facets:U.filterNonCategorySelected(_,m==null?void 0:m.base),selected:P},isMobile:l??!1,isLoading:y,isOpen:f,price:i,onToggleFacet:b,setIsOpen:h,target:document.body,children:[r.jsx(Sr.teamComponents.Filter.Selected,{ICONS:e,PLP_FILTERS:t,PLP_FILTERS_COLORS:n}),r.jsx(Sr.teamComponents.Filter.Content,{columns:2,CONSTANTS:{ICONS:e,PLP_FILTERS:t,PLP_FILTERS_COLORS:n,PLP_FILTERS_EMPTY:o,PLP_SIZE_ORDER:a}})]})},sp=()=>typeof document>"u"?null:r.jsx(Uv,{});sp.displayName="Filters";const Ks=({total:e=0})=>{const{SEARCH_TOTAL_PORTAL_ID:t}=Le();if(typeof window>"u")return null;const n=document.getElementById(t);return n?ls.createPortal(r.jsxs("span",{children:["[",e,"] produto",e>1?"s":""]}),n):null};Ks.displayName="PDC.Grid.NavigationTotal";const Wv=({productCount:e,PLP_GRID_SCROLL_BACK:t})=>{x.useEffect(()=>{var a;const o=new URLSearchParams(window.location.search).get("page");if(e){const[i,c]=((a=sessionStorage.getItem(t.key))==null?void 0:a.split("-"))??["0",null],l=sessionStorage.getItem(t.refer);i&&l==="true"&&(c===(o||"null")&&window.document.body.scrollTo({top:parseInt(i,10),behavior:"smooth"}),sessionStorage.setItem(t.refer,"false"))}const s=()=>{e>0&&window.document.body.scrollTop&&sessionStorage.setItem(t.key,`${window.document.body.scrollTop.toString()}-${o}`)};return window.document.body.addEventListener("scroll",s,{passive:!0}),()=>{window.document.body.removeEventListener("scroll",s)}},[e])},Gv=()=>{const{isMobile:e}=ce(),{isLoading:t,products:n,total:o}=Xt(),s=Le();return Wv({productCount:n.length,PLP_GRID_SCROLL_BACK:s.PLP_GRID_SCROLL_BACK}),r.jsxs(r.Fragment,{children:[r.jsx(Je.Products,{isMobile:e??!1,items:n,...s}),!n.length&&!t&&r.jsx(Je.Empty,{ICONS:s.ICONS,PLP_NOT_RESULT:s.PLP_NOT_RESULT}),r.jsx(Ks,{total:o})]})},ap=({infinite:e=!1})=>r.jsx("div",{className:Ve["pdc--grid"],children:r.jsx("div",{className:Ve["pdc--grid--content"],children:e?r.jsx(Je.InfiniteScroller,{}):r.jsx(Gv,{})})});ap.displayName="Grid";const bt=e=>({centro:"center",esquerda:"start",direita:"end"})[e],ip=({children:e,contentState:t,entityKey:n})=>{const{url:o}=t.getEntity(n).getData();return o?r.jsx(De,{href:o,children:e}):e},Vv=(e,t,n)=>{e.findEntityRanges(o=>{const s=o.getEntity();return s===null?!1:n.getEntity(s).getType()==="LINK"},t)},Rr=e=>{const t=new Ye.CompositeDecorator([{strategy:Vv,component:ip}]),n=Ye.convertFromRaw(e);return Ye.EditorState.createWithContent(n,t)},Kv=e=>Ye.convertFromRaw(e),Ar=Ye.DefaultDraftBlockRenderMap.set("unstyled",{element:"div",aliasedElements:["div"]}),ac="superior-direita",xr="dentro-inferior-centro",Xv="inferior-direita",zo="dentro-inferior-esquerda",cp=e=>({position:e===xr||e===zo?"absolute":"default",shouldRender:[ac,xr,zo].includes(e)?"top":"bottom",alignItems:[xr].includes(e)?"center":[ac,Xv].includes(e)?"flex-end":"flex-start",left:e===zo?"16px":e===xr?"45%":"unset"}),Yv=Object.freeze(Object.defineProperty({__proto__:null,CREATE_CONTENT:Rr,EXTENDED_BLOCK_RENDER_MAP:Ar,GET_CONTENT_STATE:Kv,controllersPositionsAdapter:cp},Symbol.toStringTag,{value:"Module"})),Qv=({expanded:e,content:t})=>r.jsxs("details",{open:e,children:[t.textStructureReduced?r.jsx("summary",{onClick:n=>n.preventDefault(),children:r.jsx(Ye.Editor,{editorKey:"draft-editor-1",blockRenderMap:Ar,editorState:t!=null&&t.textStructureReduced?Rr(JSON.parse(t.textStructureReduced)):Ye.EditorState.createEmpty(),onChange:()=>null,readOnly:!0})}):r.jsx(r.Fragment,{}),t.showTextStructureExpander&&t.textStructure?r.jsx(r.Fragment,{children:r.jsx(Ye.Editor,{editorKey:"draft-editor-1",blockRenderMap:Ar,editorState:t.textStructure?Rr(JSON.parse(t.textStructure)):Ye.EditorState.createEmpty(),onChange:()=>null,readOnly:!0})}):r.jsx(r.Fragment,{})]}),ts={"draftjs-text-modifier":"_draftjs-text-modifier_n4mv8_2"},Zv="_textContentWrapper_176ht_5",Jv="_textContentSection_176ht_13",rs={"link-modifier":"_link-modifier_176ht_1",textContentWrapper:Zv,textContentSection:Jv},lp=({data:e,ICONS:t})=>{var s;const[n,o]=x.useState(!1);return r.jsx(p.TextStructure.Root,{layoutProps:{textRow:{alignContent:bt(e.textStructureAlignment),alignItems:bt(e.textStructureAlignment)},columnWrapper:{alignContent:bt(e.textStructureAlignment),alignItems:bt(e.textStructureAlignment)}},adornment:{bottom:e.showTextStructureExpander&&e.textStructure?r.jsx(p.Button,{variant:"tertiary",adornment:{end:r.jsx(p.Icon,{name:n?`${t.arrow_up}`:`${t.arrow_down}`})},onClick:()=>o(a=>!a),size:"small",children:n?"Ver Menos":"Ver Mais"}):r.jsx(r.Fragment,{})},children:r.jsxs(p.Utils.Column,{className:rs.textContentWrapper,style:{alignItems:bt(e.textStructureAlignment)},children:[r.jsx(p.TextStructure.DivWrapper,{style:{textAlign:bt(e.textStructureAlignment)},mode:e.textStructureMode??"default",className:ts["draftjs-text-modifier"],children:e.textStructureReduced?r.jsx(Qv,{content:e,expanded:n}):r.jsx(r.Fragment,{})}),e.textStructureButtonLabel?r.jsx(Ge,{mode:e.textStructureMode??"default",href:e.textStructureButtonHref??"#",size:e.textStructureButtonSize,className:rs["link-modifier"],adornments:(s=e.textStructureButtonIcon)!=null&&s.length&&e.enableIcon?{end:r.jsx(p.Icon,{name:e.textStructureButtonIcon})}:void 0,children:e.textStructureButtonLabel}):r.jsx(r.Fragment,{})]})})},ex=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],ic=e=>({centro:"center",esquerda:"start",direita:"end"})[e],ns=({dateEnd:e,dateInit:t,TIME_ZONE:n="America/Sao_Paulo",...o})=>{const[s,a]=x.useState(ru(new Bo.TZDate(Date.now(),n),new Bo.TZDate(e,n))),[i,c]=x.useState(!1);x.useEffect(()=>{i||c(!0);const u=setInterval(()=>{if(s<=0){clearInterval(u);return}a(s-1e3)},1e3);return()=>{clearInterval(u)}},[s,a,i]);const l=zt(s,"days");return i&&s>0?r.jsxs(p.Timer.Root,{...o,children:[l?r.jsxs(r.Fragment,{children:[r.jsx(p.Timer.Digit,{label:"dias",value:l}),r.jsx(p.Timer.Separator,{})]}):null,r.jsx(p.Timer.Digit,{label:"horas",value:zt(s,"hours")}),r.jsx(p.Timer.Separator,{}),r.jsx(p.Timer.Digit,{label:"min",value:zt(s,"minutes")}),r.jsx(p.Timer.Separator,{}),r.jsx(p.Timer.Digit,{label:"segs",value:zt(s),suppressHydrationWarning:!0})]}):r.jsx(r.Fragment,{})},cc={"content-modifier":"_content-modifier_16y4u_5","banner-image-wrapper-modifier":"_banner-image-wrapper-modifier_16y4u_13"},lc=({data:e,videoUrl:t,priority:n,videoRef:o,ICONS:s,...a})=>{const{video:i,image:c,imageHref:l,imageOpacity:u,altImage:f,backgroundColor:h,position:m,contentAlignment:d,showTimer:g,contentOrder:y,timerMode:_,timerEnd:b,timerInit:S,textStructure:v,textStructureReduced:j}=e.banner,P=(l==null?void 0:l.trim())||(c==null?void 0:c.trim())||null,{nextimage:E}=_e();return r.jsxs(p.Banner.Container,{...a,children:[r.jsxs(p.Banner.ImageWrapper,{className:cc["banner-image-wrapper-modifier"],style:u?{background:h}:void 0,children:[i&&r.jsx(Ie.Video,{videoRef:o,src:t,autoPlay:n,loop:!0,playsInline:!0,muted:!0}),P&&!(i!=null&&i.length)&&r.jsx(E,{src:P,width:"1920",height:"1080",alt:f??c??"",...n?{priority:n}:{},style:u?{opacity:"0"}:void 0}),!c&&!(i!=null&&i.length)&&r.jsx("div",{style:{background:h}})]}),g||j||v?r.jsx(p.Banner.Slot,{...ex(m??"centro"),className:cc["content-modifier"],style:{textAlign:ic(d)},children:r.jsxs(p.Utils.Column,{gap:"16px",alignItems:ic(d),children:[g&&y==="timer-first"&&r.jsx(ns,{mode:_??"default",size:"small",dateEnd:b?new Date(b):new Date,dateInit:S?new Date(S):new Date}),r.jsx(lp,{data:e.banner,ICONS:s}),g&&y!=="timer-first"&&r.jsx(ns,{mode:_??"default",size:"small",dateEnd:b?new Date(b):new Date,dateInit:S?new Date(S):new Date})]})}):r.jsx(r.Fragment,{})]})},tr=({data:e,className:t,priority:n,creative:o,...s})=>{const{handleSelectPromotionEvent:a,currentLocalRef:i}=le(),{banner:{promotion_name:c},index:l,componentIndex:u}=e,f=typeof l=="number"?`:${l+1}`:"",h={creative_name:o,creative_slot:`${o}-${i.current}:${u+1}${f}`,promotion_id:e.banner.href,promotion_name:c},m=x.useRef(null),d=x.useMemo(()=>{var y;if((y=e.banner.video)!=null&&y.includes("player.vimeo")){const _=e.banner.video.split("?")[1],b=_==null?void 0:_.split("&"),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 y;(y=m.current)!=null&&y.paused&&m.current.play()};return r.jsx(zr,{eventData:{functionKey:"readyEvents",data:{event:"view_promotion",readyData:{ecommerce:{...h,index:l}}}},observerOptions:{delay:100,...d&&{threshold:.1}},...d&&{callBackWhenVisible:g},children:e.banner.href?r.jsx(De,{href:e.banner.href,onClick:()=>{a({updatePromotionRef:!0,promotion:h,index:l})},children:r.jsx(lc,{data:e,videoUrl:d,priority:n,videoRef:m,...s})}):r.jsx(lc,{data:e,videoUrl:d,priority:n,videoRef:m,...s})})},Xs=e=>r.jsx(tr,{...e}),up=({columns:e,count:t,gap:n})=>{var d;const{banners:o,pages:s,products:a}=st(),{isMobile:i}=ce(),{banners:c}=kr(),{ICONS:l,PRODUCT_CARD_IMAGE_ASPECT_RATIO:u}=Le(),f=((d=s[s.length-1])==null?void 0:d.products.length)??t,h=a[(s.length-1)*t+f-1],m=c.filter((g,y)=>o[y]<h);return Array.isArray(m)?m.map((g,y)=>r.jsx(tt.Banner,{columns:g.columns,gap:n,isMobile:i??!1,position_grid:o[y]+1,totalColumns:e,PRODUCT_CARD_IMAGE_ASPECT_RATIO:u,children:r.jsx(tr,{data:{banner:g,componentIndex:y},creative:"banner_grid",ICONS:l})},`${g.position_grid}-${y}`)):null};up.displayName="PDC.InfiniteScroller.Banners";const dp=e=>{var o;const{pages:t}=st(),n=t[t.length-1];return(n==null?void 0:n.page)!==((o=n==null?void 0:n.pagination)==null?void 0:o.total)&&!(n!=null&&n.loading)?r.jsx($r,{...e}):null};dp.displayName="PDC.InfiniteScroller.Loading";const fp=({page:e,...t})=>{const{updateParamPage:n}=st(),{element:o}=Ir({callback:()=>n(e),options:{threshold:0}});return r.jsx("div",{...t,id:`pdc-scroll-infinite-${e.page}`,className:Ve["pdc--infinite--loader"],"data-page":e.page,ref:o})};fp.displayName="PDC.Page.Anchor";const pp=({first:e,gap:t,isMobile:n=!1,item:o,index:s,last:a=!1,order:i,page:c,showVideo:l=!1})=>{const{load:u,handleNotify:f}=st(),{getAvailableProductTag:h}=nt(),{BUY_BUTTON_LABELS:m,MAIN_IMAGE:d,PLP_GRID_SCROLL_BACK:g,PLP_INFINITE_SCROLL:y,PLP_PRODUCT_SIMILAR_DELAY:_,PLP_SHOW_VIDEO_ON_PRODUCT_CARD:b,PRODUCT_CARD_IMAGE_ASPECT_RATIO:S,PRODUCT_CARD_TEXTS:v,PRODUCT_CARD_TOP_WISHLIST_TOGGLE:j,PRODUCT_IMAGE_DIMENSIONS:P,SECOND_IMAGE:E,StoreConfig_MainSellerId:C,TEXTURE_IMAGE:R,Z_INDEX_WAR:I,ICONS:w}=Le(),N=h(o==null?void 0:o.cluster.highlights);return r.jsx(tt.Card,{className:o.id==="skeleton"?Ve["pdc--infinite--card--disabled"]:"",gap:t,isMobile:n??!1,item:o,order:i,tag:N,index:s,setSkuSelected:f,showVideo:l,CONSTANTS:{BUY_BUTTON_LABELS:m,MAIN_IMAGE:d,PLP_GRID_SCROLL_BACK:g,PLP_INFINITE_SCROLL:y,PLP_PRODUCT_SIMILAR_DELAY:_,PLP_SHOW_VIDEO_ON_PRODUCT_CARD:b,PRODUCT_CARD_IMAGE_ASPECT_RATIO:S,PRODUCT_CARD_TEXTS:v,PRODUCT_CARD_TOP_WISHLIST_TOGGLE:j,PRODUCT_IMAGE_DIMENSIONS:P,SECOND_IMAGE:E,StoreConfig_MainSellerId:C,TEXTURE_IMAGE:R,Z_INDEX_WAR:I,ICONS:w},children:c&&u&&r.jsxs(r.Fragment,{children:[e&&r.jsx(Cr.Anchor,{page:c}),!c.loading&&r.jsx(Cr.Loader,{page:c}),a&&c.loading&&r.jsx(Cr.NextPage,{page:c})]})})};pp.displayName="PDC.Page.Card";const mp=({type:e="default",page:t,...n})=>{const{load:o,updatePage:s}=st(),{element:a}=Ir({callback:()=>s(t),onEnterViewportOnce:!0,options:{threshold:1}});return o===!0&&r.jsx("div",{...n,className:Ve[`pdc--infinite--loader${e==="page"?"--page":""}`],ref:a})};mp.displayName="PDC.Page.Loader";const hp=({page:e,...t})=>{var s;const{addNewPage:n}=st(),{element:o}=Ir({callback:()=>{n(e)},onEnterViewportOnce:!0,options:{threshold:[.5,1]}});return((s=e==null?void 0:e.pagination)==null?void 0:s.nextPage)===!0&&e.loading===!0?r.jsx("div",{...t,className:Ve["pdc--infinite--next-page--card"],"data-next-page":!0,ref:o}):null};hp.displayName="PDC.Page.NextPage";const Cr={Anchor:fp,Card:pp,Loader:mp,NextPage:hp},gp=({count:e,gap:t,page:n})=>{const{isMobile:o}=ce(),{columns:s,products:a}=st(),i=(n.page-1)*e,c=Ml(n.products,s);return Array.isArray(n.products)?n.products.map((l,u)=>r.jsx(Cr.Card,{first:u===0,last:u===n.products.length-1,gap:t,index:u,item:l.node,isMobile:o??!1,order:a[i+u]+1,page:u===0||u===n.products.length-1?n:void 0,showVideo:!!c.indexOf(u)},a[i+u]+1)):null};gp.displayName="PDC.Page";const tx=({pages:e,load:t,PLP_GRID_SCROLL_BACK:n})=>{const o=x.useRef(!1);x.useEffect(()=>{const s=e[e.length-1];if(t&&s&&!o.current){const a=sessionStorage.getItem(n.refer),i=sessionStorage.getItem(n.order),c=document.querySelector(a==="true"?`[data-order="${i}"]`:`#pdc-scroll-infinite-${s.page}`);c&&(o.current=!0,sessionStorage.setItem(n.refer,"false"),s.page>1&&c.scrollIntoView({behavior:"instant",block:"start"}))}if(!t&&o.current){o.current=!1;const a=document.querySelector("body > main");a&&a.scrollIntoView({behavior:"instant",block:"start"})}},[t,e])},rx=()=>{var l,u;const{count:e}=ze(),{columns:t,gap:n,load:o,pages:s,total:a}=st(),i=Le(),{PLP_GRID_SCROLL_BACK:c}=Le();return tx({pages:s,load:o,PLP_GRID_SCROLL_BACK:c}),r.jsxs(r.Fragment,{children:[o===!0&&((u=(l=s[0])==null?void 0:l.pagination)==null?void 0:u.count)===0&&r.jsx(Je.Empty,{ICONS:i.ICONS,PLP_NOT_RESULT:i.PLP_NOT_RESULT}),r.jsxs(tt.Root,{children:[Array.isArray(s)&&s.map((f,h)=>r.jsx(gp,{count:e,gap:n,page:f},h)),r.jsx(up,{columns:t,count:e,gap:n})]}),r.jsx(Ks,{total:a}),r.jsx(dp,{})]})},yp=()=>{const{banners:e}=kr();return r.jsx(Yl,{banners:e,children:r.jsx(rx,{})})};yp.displayName="PDC.InfiniteScroller";const _p=()=>{const{setOpenFilters:e}=ws(),{selectedFacets:t,onToggleFacet:n,onSort:o}=Pl(),{state:s}=ze(),{Z_INDEX_WAR:a}=Le(),i=U.filterNonRootFacets(t,s==null?void 0:s.base);return r.jsx(dt.Root,{onSort:o,setOpenFilters:e,style:{zIndex:a.plp_navigation},children:r.jsx(dt.Selected,{callback:n,selected:i})})};_p.displayName="Navigation";const os=({currentPage:e,callback:t,type:n,...o})=>r.jsx(p.Button,{...o,iconNameStart:`arrow-${n}`,onClick:()=>{typeof t=="function"&&t(n==="left"?"prev":"")},size:"large",variant:"tertiary"});os.displayName="Arrow";const ss=({active:e,prev:t,ellipses:n,page:o,selectedPage:s})=>r.jsxs(r.Fragment,{children:[n&&t&&r.jsx(p.Button,{size:"large",variant:"tertiary",children:"..."}),e&&r.jsx(p.Pagination.Item,{isActive:!1,index:o,variant:"tertiary",onClick:()=>{typeof s=="function"&&s(o)},children:o}),n&&!t&&r.jsx(p.Button,{size:"large",variant:"tertiary",children:"..."})]});ss.displayName="PageEllipses";const vp=({children:e,endPage:t,page:n,total:o,selectedPage:s,ITEMS_PER_SECTION:a})=>r.jsxs(r.Fragment,{children:[r.jsx(ss,{active:n>=a&&o>a,selectedPage:s,currentPage:n,prev:!1,ellipses:n>a&&o>a,page:1}),e,r.jsx(ss,{active:o-n>1&&o!==t,selectedPage:s,currentPage:n,prev:!0,ellipses:t<o-1,page:o})]});vp.displayName="Pagination.Layout";const nx=(e,t,n)=>{const o=new URLSearchParams(n);return o.set(e,t),o.toString()},ox=(e,t)=>{const n=[];for(let o=e;o<=t;o++)n.push(o);return n},sx=({currentPage:e,total:t,maxVisiblePages:n,SEARCH_PAGE_ITEM_THRESHOLD:o})=>{const s=t>=o?o:t,a=Math.max(1,e===s?s-n+1:e-Math.floor(n/2)),i=Math.min(s,a+n-1);return{startPage:a,endPage:i,totalPages:s}},xp=({currentPage:e,pages:t,searchParams:n,VARIANT_PAGINATION:o})=>{const{router:s,pathname:a}=_e();return Array.isArray(t)?t.map(i=>r.jsx(p.Pagination.Item,{isActive:e===i,index:i,variant:e===i?o.active:o.default,onClick:()=>s.push(`${a}?${nx("page",i.toString(),n)}`),children:i},i)):null};xp.displayName="Pages";const Ys=({query:e,type:t="default",searchParams:n,ITEMS_DEFAULT_SORT:o,ITEMS_PER_SECTION:s,ITEMS_PER_PAGE:a,SEARCH_PAGE_ITEM_THRESHOLD:i,VARIANT_PAGINATION:c,...l})=>{const{router:u,pathname:f}=_e(),{state:{page:h=1}}=ze(),{pagination:{total:m}}=Xt(),{endPage:d,totalPages:g,startPage:y}=sx({currentPage:h,total:m,maxVisiblePages:s,SEARCH_PAGE_ITEM_THRESHOLD:i}),_=S=>{const v=S.toString(),j=new URLSearchParams(n.toString());t==="default"&&j.set("page",v),t==="search"&&(j.set("query",e??""),j.set("count",a.toString()),j.set("page",v),o&&j.set("sort",o.replace("_",":")));const E=`${t==="search"?"/search":f}?${j.toString()}`;u.push(E)},b=S=>{_(S==="prev"?h-1:h+1)};return m?r.jsx("div",{...l,className:Ve["pdc--pagination"],children:r.jsx(p.Pagination.Wrapper,{adornment:{start:r.jsx(os,{callback:b,currentPage:h,disabled:h<2,type:"left"}),end:r.jsx(os,{callback:b,currentPage:h,disabled:h>=g,type:"right"})},children:r.jsx(vp,{endPage:d,page:h,selectedPage:_,total:m,ITEMS_PER_SECTION:s,children:r.jsx(xp,{currentPage:h,pages:ox(y,d),searchParams:n,VARIANT_PAGINATION:c})})})}):r.jsx(r.Fragment,{})};Ys.displayName="Pagination";const bp=({gap:e,isMobile:t})=>{const{count:n,state:o}=ze(),{banners:s}=kr(),{ICONS:a,PRODUCT_CARD_IMAGE_ASPECT_RATIO:i}=Le(),c=s.filter(l=>Dl(l.position_grid,o.page,n));return Array.isArray(c)?c.map((l,u)=>r.jsx(tt.Banner,{columns:l.columns,gap:e,isMobile:t,position_grid:l.position_grid,totalColumns:t?2:4,PRODUCT_CARD_IMAGE_ASPECT_RATIO:i,children:r.jsx(tr,{data:{banner:l,componentIndex:u},creative:"banner_grid",ICONS:a})},l.position_grid)):null};bp.displayName="PDC.Grid.Banners";const Qs=({isMobile:e=!1,items:t,BUY_BUTTON_LABELS:n,ICONS:o,MAIN_IMAGE:s,NEWSLETTER_CONFIGS:a,NOTIFY_INFO:i,PLP_GRID_SCROLL_BACK:c,PLP_INFINITE_SCROLL:l,PLP_PRODUCT_SIMILAR_DELAY:u,PLP_SHOW_VIDEO_ON_PRODUCT_CARD:f,PRODUCT_CARD_IMAGE_ASPECT_RATIO:h,PRODUCT_CARD_TEXTS:m,PRODUCT_CARD_TOP_WISHLIST_TOGGLE:d,PRODUCT_IMAGE_DIMENSIONS:g,SECOND_IMAGE:y,StoreConfig_MainSellerId:_,TEXTURE_IMAGE:b,Z_INDEX_WAR:S})=>{const{getAvailableProductTag:v}=nt(),{count:j,state:P}=ze(),[E,C]=x.useState(!1),[R,I]=x.useState(null),[w,N]=x.useState([]),T=x.useCallback((q,F)=>{const G=F?Tr([F]):null;N(q),I(G!=null&&G.length?G[0]:null),C(!0)},[]),z=e?8:16,O=(P.page-1)*j,W=tt.helpers.createGridPosAndVideo(t,[],e?2:4,P.page);return r.jsxs(r.Fragment,{children:[r.jsxs(tt.Root,{children:[Array.isArray(t)&&t.map((q,F)=>{var V,B;const G=v(q.node.cluster.highlights);return r.jsx(tt.Card,{gap:z,isMobile:e??!1,item:q.node,order:O+(((V=W[F])==null?void 0:V.position)??0),tag:G,index:F,setSkuSelected:T,showVideo:(B=W[F])==null?void 0:B.canPlayVideo,CONSTANTS:{BUY_BUTTON_LABELS:n,MAIN_IMAGE:s,PLP_GRID_SCROLL_BACK:c,PLP_INFINITE_SCROLL:l,PLP_PRODUCT_SIMILAR_DELAY:u,PLP_SHOW_VIDEO_ON_PRODUCT_CARD:f,PRODUCT_CARD_IMAGE_ASPECT_RATIO:h,PRODUCT_CARD_TEXTS:m,PRODUCT_CARD_TOP_WISHLIST_TOGGLE:d,PRODUCT_IMAGE_DIMENSIONS:g,SECOND_IMAGE:y,StoreConfig_MainSellerId:_,TEXTURE_IMAGE:b,Z_INDEX_WAR:S,ICONS:o}},q.node.sku)}),t.length>0&&r.jsx(bp,{gap:z,isMobile:e??!1})]}),r.jsx(Or,{open:E,sku:R,skus:w,setSku:I,setVisible:C,ICONS:o,NEWSLETTER_CONFIGS:a,NOTIFY_INFO:i,PRODUCT_CARD_TEXTS:m,Z_INDEX_WAR:S})]})};Qs.displayName="PDC.Products";const Je={Empty:Ds,Filters:sp,Grid:ap,InfiniteScroller:yp,Spinner:$r,Navigation:_p,Notification:Or,Pagination:Ys,Products:Qs},jp=({className:e,...t})=>{const{searchParams:n,ITEMS_DEFAULT_SORT:o,ITEMS_PER_SECTION:s,ITEMS_PER_PAGE:a,PLP_INFINITE_SCROLL:i,SEARCH_PAGE_ITEM_THRESHOLD:c,VARIANT_PAGINATION:l}=t;return r.jsx(Fm,{...t,children:r.jsxs("div",{className:p.helpers.classNameConcat(Ve.pdc,e),children:[r.jsxs(Sl,{forceUpdate:!0,children:[r.jsx(Je.Navigation,{}),r.jsx(Je.Filters,{})]}),i===!0?r.jsx(Je.Grid,{infinite:!0}):r.jsxs(Ps,{forceUpdate:!0,query:n.get("query")??void 0,children:[r.jsx(Je.Grid,{}),r.jsx(Je.Pagination,{searchParams:n,ITEMS_DEFAULT_SORT:o,ITEMS_PER_SECTION:s,ITEMS_PER_PAGE:a,SEARCH_PAGE_ITEM_THRESHOLD:c,VARIANT_PAGINATION:l})]})]})})};jp.displayName="Templates.PDC";const Cp=x.createContext({}),ax=({children:e,...t})=>r.jsx(Cp.Provider,{value:t,children:e}),Vr=()=>{const e=x.useContext(Cp);if(e===void 0)throw new Error("useSearchConstants must be used within a SearchConstantsProvider");return e},ix="_grid_e75z7_21",cx="_navigation_e75z7_44",lx="_spinner_e75z7_70",ux="_sort_e75z7_76",ut={"rearch-result--empty":"_rearch-result--empty_e75z7_1",grid:ix,"grid-header":"_grid-header_e75z7_37",navigation:cx,"result-disclaimer":"_result-disclaimer_e75z7_51",spinner:lx,sort:ux,"search-result":"_search-result_e75z7_91"},Sp=({term:e})=>{const{router:t}=_e(),{SEARCH_RESULT:n,ICONS:o}=Vr(),s=()=>{t.push(n.EMPTY.ALL_TERMS)};return r.jsxs("div",{className:ut["rearch-result--empty"],children:[r.jsxs(p.TextStructure.DivWrapper,{children:[r.jsx("div",{className:U.responsive["responsive-desktop-flex"],children:r.jsx("h2",{className:"typography-style-heading-sm",children:n.EMPTY.NOT_FOUND})}),r.jsx("div",{className:U.responsive["responsive-mobile-flex"],children:r.jsx("h2",{className:"typography-style-body-md",children:n.EMPTY.NOT_FOUND})}),r.jsxs("p",{children:[n.EMPTY.NOT_FOUND_P," ",`"${e}"`]})]}),r.jsx(p.Button,{onClick:()=>s(),variant:"tertiary",size:"medium",adornment:{end:r.jsx(p.Icon,{name:o.arrow_right,size:"medium"})},children:n.EMPTY.ALL_TERMS_LABEL})]})};Sp.displayName="RearchResult.Empty";const dx=e=>r.jsxs(r.Fragment,{children:[r.jsx("div",{className:U.responsive["responsive-desktop-flex"],children:r.jsx("h2",{className:"typography-style-heading-sm",children:e.SEARCH.SEARCHING})}),r.jsx("div",{className:U.responsive["responsive-mobile-flex"],children:r.jsx("h2",{className:"typography-style-body-md",children:e.SEARCH.SEARCHING})}),r.jsx(p.Spinner,{className:ut.spinner})]}),fx=(e,t,n)=>r.jsxs(r.Fragment,{children:[r.jsx("div",{className:U.responsive["responsive-desktop-flex"],children:r.jsx("h2",{className:"typography-style-heading-sm",children:t.SEARCH.SEARCHED})}),r.jsx("div",{className:U.responsive["responsive-mobile-flex"],children:r.jsx("h2",{className:"typography-style-body-md",children:t.SEARCH.SEARCHED})}),r.jsxs("p",{children:[t.SEARCH.SEARCHED_P_START," ",e," ",t.SEARCH.SEARCHED_P_END," ",`"${n}"`]})]}),Pp=({isLoading:e,quantity:t,term:n})=>{const{SEARCH_RESULT:o}=Vr();return r.jsx(p.TextStructure.DivWrapper,{children:e?dx(o):fx(t,o,n)})};Pp.displayName="Search.Loading";const px=({term:e})=>{const[t,n]=x.useState(!1),{router:o}=_e(),{searchParams:s}=ze(),{ITEMS_DEFAULT_SORT:a,ITEMS_PER_PAGE:i,ICONS:c}=Vr(),l=u=>{U.navigateToSearchPage(o,e,i,1,u??a)};return r.jsx("div",{className:ut.sort,children:r.jsx(qr,{handleSelectValue:u=>l(u??"release_desc"),sortListOpen:t,setSortListOpen:n,searchParams:s,ICONS:c})})},mx=({query:e})=>{const{isLoading:t,products:n,pagination:o}=Xt();return r.jsxs("div",{className:ut["grid-header"],children:[r.jsxs("div",{className:ut.navigation,children:[!t&&(n!=null&&n.length)?r.jsx(px,{term:e}):null,r.jsx(p.Utils.Divider,{})]}),!t&&(n!=null&&n.length)?r.jsx("div",{className:ut["result-disclaimer"],children:r.jsx(Pp,{term:e,isLoading:t,quantity:o.count})}):null]})},wp=({isMobile:e=!1,query:t})=>{const{isLoading:n,products:o,pagination:s}=Xt(),{searchParams:a}=ze(),i=Vr(),{sendDataLayerEvent:c}=le(),l=x.useRef({query:t,sended:!1}),u=x.useMemo(()=>!n&&o.length>0&&s.count>0,[n,o.length,s.count]);return x.useEffect(()=>{if(!n){if(l.current.query!==t){l.current.sended=!1,l.current.query=t;return}l.current.sended||(c({functionKey:"readyEvents",data:{event:"view_search_results",readyData:{search_term:t,search_found:(o==null?void 0:o.length)>0}}}),l.current.sended=!0)}},[t,o,n,c]),r.jsxs("div",{className:ut.grid,children:[u?r.jsx(mx,{query:t}):r.jsx(r.Fragment,{}),!n&&(o!=null&&o.length)?r.jsx(Qs,{isMobile:e??!1,items:o,...i}):r.jsx(r.Fragment,{}),(o==null?void 0:o.length)===0&&!n?r.jsx(Sp,{term:t}):null,u&&r.jsx(Ys,{searchParams:a,...i})]})};wp.displayName="SearchResultContent";const hx=({className:e})=>{const{state:t}=ze(),{isMobile:n}=ce();return r.jsx(Ps,{forceUpdate:!1,query:t.term??"",children:r.jsx("div",{className:p.helpers.classNameConcat(ut["search-result"],e),children:r.jsx(wp,{currentPage:t.page,isMobile:n??!1,query:t.term??""})})})},Ep=({className:e,searchParams:t,CONSTANTS:n})=>{const o=new URLSearchParams(t??""),s=String((o==null?void 0:o.get("query"))??""),a=Number((o==null?void 0:o.get("count"))??0),i=Number((o==null?void 0:o.get("page"))??0),c=String((o==null?void 0:o.get("sort"))??"");return r.jsx(ax,{...n,children:r.jsx(Ss,{sort:c,state:{sort:c,base:"",facets:[],term:s,page:i,count:a},count:a,searchParams:o,ITEMS_PER_PAGE:n.ITEMS_PER_PAGE,children:r.jsx(hx,{className:e})})})};Ep.displayName="Search";const gx=({page:e,data:t})=>{const{pathname:n}=_e(),o=x.useRef(null),{sendDataLayerEvent:s,currentLocalRef:a,itemListRef:i,promotionEventRef:c}=le();return x.useEffect(()=>{const l=zl("login_event")||"{}",u=JSON.parse(l);if(u.name||u.method){const f=new Date(0);s({functionKey:"readyEvents",data:{event:u.name,readyData:{method:u.method}}}),Rs("login_event","",{expires:f})}},[]),x.useEffect(()=>{if(o.current===n)return;o.current=n;let l={};switch(e){case"PDP":{const f=t,h={};if(!f){l={page_category:"pdp"};break}f.items.forEach(({itemId:m,sellers:d})=>h[m]=d[0].commertialOffer.AvailableQuantity),l={page_category:"pdp",seller_ids:f.items.map(({sellers:m})=>m[0].sellerId).join(),skuStocks:h,product_reference_id:f.productReference};break}case"PDC":{const{page_category:f,page_departament:h,id:m,name:d}=Sc(),g=d,y=m;l={page_category:"lista_produtos",...h&&{page_departament:h}},i.current={item_list_name:n==="/search"?"busca":g??void 0,item_list_id:n==="/search"?void 0:y??void 0},h&&s({functionKey:"readyEvents",data:{event:"view_category",readyData:{page_category:f,page_departament:h}}});break}default:l={page_category:e},c.current={},i.current={};break}const u={region:e,...l};a.current=e,s({functionKey:"readyEvents",data:{readyData:{vtex_version:"fast",...u}},timeout:0})},[n]),null};var as={exports:{}},br={exports:{}},uc;function yx(){return uc||(uc=1,function(e,t){Object.defineProperty(t,"__esModule",{value:!0});function n(l,u){for(var f in u)Object.defineProperty(l,f,{enumerable:!0,get:u[f]})}n(t,{DOMAttributeNames:function(){return 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:f}=l;const h=document.createElement(u);for(const g in f){if(!f.hasOwnProperty(g)||g==="children"||g==="dangerouslySetInnerHTML"||f[g]===void 0)continue;const y=o[g]||g.toLowerCase();u==="script"&&(y==="async"||y==="defer"||y==="noModule")?h[y]=!!f[g]:h.setAttribute(y,f[g])}const{children:m,dangerouslySetInnerHTML:d}=f;return d?h.innerHTML=d.__html||"":m&&(h.textContent=typeof m=="string"?m:Array.isArray(m)?m.join(""):""),h}function a(l,u){if(l instanceof HTMLElement&&u instanceof HTMLElement){const f=u.getAttribute("nonce");if(f&&!l.getAttribute("nonce")){const h=u.cloneNode(!0);return h.setAttribute("nonce",""),h.nonce=f,f===l.nonce&&l.isEqualNode(h)}}return l.isEqualNode(u)}let i;process.env.__NEXT_STRICT_NEXT_HEAD?i=(l,u)=>{const f=document.querySelector("head");if(!f)return;const h=f.querySelectorAll('meta[name="next-head"]')||[],m=[];if(l==="meta"){const y=f.querySelector("meta[charset]");y&&m.push(y)}for(let y=0;y<h.length;y++){var d;const b=h[y].nextSibling;(b==null||(d=b.tagName)==null?void 0:d.toLowerCase())===l&&m.push(b)}const g=u.map(s).filter(y=>{for(let _=0,b=m.length;_<b;_++){const S=m[_];if(a(S,y))return m.splice(_,1),!1}return!0});m.forEach(y=>{var _;const b=y.previousSibling;if(b&&b.getAttribute("name")==="next-head"){var S;(S=y.parentNode)==null||S.removeChild(b)}(_=y.parentNode)==null||_.removeChild(y)}),g.forEach(y=>{var _;const b=document.createElement("meta");b.name="next-head",b.content="1",((_=y.tagName)==null?void 0:_.toLowerCase())==="meta"&&y.getAttribute("charset")||f.appendChild(b),f.appendChild(y)})}:i=(l,u)=>{const f=document.getElementsByTagName("head")[0],h=f.querySelector("meta[name=next-head-count]");if(process.env.NODE_ENV!=="production"&&!h){console.error("Warning: next-head-count is missing. https://nextjs.org/docs/messages/next-head-count-missing");return}const m=Number(h.content),d=[];for(let _=0,b=h.previousElementSibling;_<m;_++,b=(b==null?void 0:b.previousElementSibling)||null){var g;(b==null||(g=b.tagName)==null?void 0:g.toLowerCase())===l&&d.push(b)}const y=u.map(s).filter(_=>{for(let b=0,S=d.length;b<S;b++){const v=d[b];if(a(v,_))return d.splice(b,1),!1}return!0});d.forEach(_=>{var b;return(b=_.parentNode)==null?void 0:b.removeChild(_)}),y.forEach(_=>f.insertBefore(_,h)),h.content=(m-d.length+y.length).toString()};function c(){return{mountedInstances:new Set,updateHead:l=>{const u={};l.forEach(m=>{if(m.type==="link"&&m.props["data-optimized-fonts"]){if(document.querySelector('style[data-href="'+m.props["data-href"]+'"]'))return;m.props.href=m.props["data-href"],m.props["data-href"]=void 0}const d=u[m.type]||[];d.push(m),u[m.type]=d});const f=u.title?u.title[0]:null;let h="";if(f){const{children:m}=f.props;h=typeof m=="string"?m:Array.isArray(m)?m.join(""):""}h!==document.title&&(document.title=h),["meta","base","link","style","script"].forEach(m=>{i(m,u[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)}(br,br.exports)),br.exports}(function(e,t){"use client";Object.defineProperty(t,"__esModule",{value:!0});function n(P,E){for(var C in E)Object.defineProperty(P,C,{enumerable:!0,get:E[C]})}n(t,{handleClientScriptLoad:function(){return y},initScriptLoader:function(){return S},default:function(){return j}});const o=ke,s=Nt,a=o._(ls),i=s._(x),c=If(),l=yx(),u=Tu(),f=new Map,h=new Set,m=["onLoad","onReady","dangerouslySetInnerHTML","children","onError","strategy","stylesheets"],d=P=>{if(a.default.preinit){P.forEach(E=>{a.default.preinit(E,{as:"style"})});return}if(typeof window<"u"){let E=document.head;P.forEach(C=>{let R=document.createElement("link");R.type="text/css",R.rel="stylesheet",R.href=C,E.appendChild(R)})}},g=P=>{const{src:E,id:C,onLoad:R=()=>{},onReady:I=null,dangerouslySetInnerHTML:w,children:N="",strategy:T="afterInteractive",onError:z,stylesheets:O}=P,W=C||E;if(W&&h.has(W))return;if(f.has(E)){h.add(W),f.get(E).then(R,z);return}const q=()=>{I&&I(),h.add(W)},F=document.createElement("script"),G=new Promise((V,B)=>{F.addEventListener("load",function(J){V(),R&&R.call(this,J),q()}),F.addEventListener("error",function(J){B(J)})}).catch(function(V){z&&z(V)});w?(F.innerHTML=w.__html||"",q()):N?(F.textContent=typeof N=="string"?N:Array.isArray(N)?N.join(""):"",q()):E&&(F.src=E,f.set(E,G));for(const[V,B]of Object.entries(P)){if(B===void 0||m.includes(V))continue;const J=l.DOMAttributeNames[V]||V.toLowerCase();F.setAttribute(J,B)}T==="worker"&&F.setAttribute("type","text/partytown"),F.setAttribute("data-nscript",T),O&&d(O),document.body.appendChild(F)};function y(P){const{strategy:E="afterInteractive"}=P;E==="lazyOnload"?window.addEventListener("load",()=>{(0,u.requestIdleCallback)(()=>g(P))}):g(P)}function _(P){document.readyState==="complete"?(0,u.requestIdleCallback)(()=>g(P)):window.addEventListener("load",()=>{(0,u.requestIdleCallback)(()=>g(P))})}function b(){[...document.querySelectorAll('[data-nscript="beforeInteractive"]'),...document.querySelectorAll('[data-nscript="beforePageRender"]')].forEach(E=>{const C=E.id||E.getAttribute("src");h.add(C)})}function S(P){P.forEach(y),b()}function v(P){const{id:E,src:C="",onLoad:R=()=>{},onReady:I=null,strategy:w="afterInteractive",onError:N,stylesheets:T,...z}=P,{updateScripts:O,scripts:W,getIsSsr:q,appDir:F,nonce:G}=(0,i.useContext)(c.HeadManagerContext),V=(0,i.useRef)(!1);(0,i.useEffect)(()=>{const J=E||C;V.current||(I&&J&&h.has(J)&&I(),V.current=!0)},[I,E,C]);const B=(0,i.useRef)(!1);if((0,i.useEffect)(()=>{B.current||(w==="afterInteractive"?g(P):w==="lazyOnload"&&_(P),B.current=!0)},[P,w]),(w==="beforeInteractive"||w==="worker")&&(O?(W[w]=(W[w]||[]).concat([{id:E,src:C,onLoad:R,onReady:I,onError:N,...z}]),O(W)):q&&q()?h.add(E||C):q&&!q()&&g(P)),F){if(T&&T.forEach(J=>{a.default.preinit(J,{as:"style"})}),w==="beforeInteractive")return C?(a.default.preload(C,z.integrity?{as:"script",integrity:z.integrity}:{as:"script"}),i.default.createElement("script",{nonce:G,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:G,dangerouslySetInnerHTML:{__html:"(self.__next_s=self.__next_s||[]).push("+JSON.stringify([0,{...z}])+")"}}));w==="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)})(as,as.exports);var _x=as.exports,vx=_x;const Rp=Mr(vx),xx=({children:e,ONE_TRUST:t})=>r.jsxs(r.Fragment,{children:[r.jsx(Rp,{src:"https://cdn.cookielaw.org/scripttemplates/otSDKStub.js",defer:!0,strategy:"afterInteractive","data-domain-script":t.siteId,type:"text/javascript"}),e]}),bx=Rd(()=>Promise.resolve(xx),{ssr:!1}),jx="_lgpd_1ymbk_85",Cx="_success_1ymbk_266",Sx="_error_1ymbk_330",je={"newsletter-root":"_newsletter-root_1ymbk_1","has-border-top":"_has-border-top_1ymbk_9","has-border-bottom":"_has-border-bottom_1ymbk_12","newsletter-container":"_newsletter-container_1ymbk_20","content-text":"_content-text_1ymbk_35","form-wrapper":"_form-wrapper_1ymbk_39","newsletter-container-banner":"_newsletter-container-banner_1ymbk_67",lgpd:jx,"textfield-structure-modifier":"_textfield-structure-modifier_1ymbk_202","input-wrapper-modifier":"_input-wrapper-modifier_1ymbk_207","submit-btn":"_submit-btn_1ymbk_218","loading-spinner":"_loading-spinner_1ymbk_229","terms-and-conditions-checkbox":"_terms-and-conditions-checkbox_1ymbk_235","terms-and-conditions-unchecked":"_terms-and-conditions-unchecked_1ymbk_248","terms-and-conditions-checked":"_terms-and-conditions-checked_1ymbk_262",success:Cx,"text-structure-modifier":"_text-structure-modifier_1ymbk_275","success-title":"_success-title_1ymbk_315","close-button":"_close-button_1ymbk_320",error:Sx,"newsletter-wrapper":"_newsletter-wrapper_1ymbk_350","banner-container":"_banner-container_1ymbk_363","newsletter-provider-wrapper":"_newsletter-provider-wrapper_1ymbk_376","newsletter-root-banner":"_newsletter-root-banner_1ymbk_389","banner-background":"_banner-background_1ymbk_410","newsletter-provider-wrapper-background":"_newsletter-provider-wrapper-background_1ymbk_419"},Ap=({invalid_message:e,master_data_field:t,placeholder:n,required:o=!1,CONSTANTS:s})=>{const{isMobile:a}=ce(),{inputsStatus:i,setInputsStatus:c,setFormStatus:l,variant:u}=Is();return r.jsx(p.TextField.Structure,{className:`${je["textfield-structure-modifier"]} ${u}`,input:r.jsx(p.TextField.Input,{mode:"simple",label:n,sizeVariant:a?s.NEWSLETTER_CONFIGS.interactionSizeMob:s.NEWSLETTER_CONFIGS.interactionSizeDesk,name:t,className:`${je["input-wrapper-modifier"]} ${u}`,feedback:i[t]==="required"?"error":i[t],onChange:()=>{i[t]!=="none"&&(c(f=>({...f,[t]:"none"})),l("idle"))},required:o}),supportText:i[t]==="error"||i[t]==="required"?r.jsx("div",{className:u==="horizontal"?je["support-text-modifier"]:"",children:r.jsx(p.TextField.SupportText,{text:i[t]==="error"?e??s.NEWSLETTER_CONFIGS.messages.invalid_generic:s.NEWSLETTER_CONFIGS.messages.required_field,feedback:"error"})}):null})};Ap.displayName="Newsletter.Input";const Np=({formStatus:e,fields:t,CONSTANTS:n})=>r.jsxs(r.Fragment,{children:[Array.isArray(t)&&t.map((o,s)=>r.jsx(Ap,{invalid_message:o.invalid_message,master_data_field:o.master_data_field,placeholder:o.placeholder,required:o.required,type:o.type,CONSTANTS:n},`nt-field-${o.master_data_field}-${s}`)),e==="error"&&r.jsx("div",{className:je.error,children:r.jsx("p",{children:n.NEWSLETTER_CONFIGS.form.status.error})})]});Np.displayName="Newsletter.FormFields";const Ip=({formStatus:e,CONSTANTS:t,...n})=>{const{isMobile:o}=ce();return r.jsxs(p.Button,{...n,className:je["submit-btn"],disabled:e==="success",size:o?"medium":"large",children:[r.jsx("span",{"data-loading":e==="loading","data-label":!0,children:t.NEWSLETTER_CONFIGS.submitLabel}),t.NEWSLETTER_CONFIGS.hasLoadingState&&e==="loading"&&r.jsx(p.Spinner,{className:je["loading-spinner"],size:"small"})]})};Ip.displayName="Newsletter.SubmitButton";const Tp=({checkboxRef:e,formStatus:t,setFormStatus:n,CONSTANTS:o})=>{const s=a=>{a.target.checked?(e.current=!0,t==="unchecked"&&n("idle")):e.current=!1};return r.jsxs(r.Fragment,{children:[r.jsx(p.Checkbox,{adornment:r.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",className:je["terms-and-conditions-checkbox"]}),t==="unchecked"&&r.jsx("div",{className:je["terms-and-conditions-unchecked"],children:r.jsx(p.TextStructure.Root,{adornment:{start:r.jsx(p.Icon,{name:o.ICONS.alert_circle,size:"small"})},children:r.jsx(p.TextStructure.DivWrapper,{children:r.jsx("p",{children:o.NEWSLETTER_CONFIGS.messages.terms_and_conditions_not_accepted})})})})]})};Tp.displayName="Newsletter.Terms";const Op=({title:e,description:t,CONSTANTS:n})=>r.jsx("div",{className:je.success,children:r.jsx(p.TextStructure.Root,{children:r.jsxs(p.TextStructure.DivWrapper,{className:je["text-structure-modifier"],children:[r.jsxs("div",{className:je["success-title"],children:[r.jsx(p.Icon,{name:n.ICONS.check_circle,size:"medium"}),r.jsx("h3",{children:e})]}),r.jsx("p",{children:t})]})})});Op.displayName="Newsletter.Success";const kp=({formPayloadOptionals:e,masterDataEntity:t,banner:n,termsDescription:o,lgpdLinkLable:s,lgpdLink:a,variant:i,CONSTANTS:c})=>{const{checkboxRef:l,fields:u,formStatus:f,hasTermsAndConditions:h,handleClickToSubmit:m,handleSubmit:d,setFormStatus:g}=Is();return r.jsx(r.Fragment,{children:f==="success"?r.jsx(Op,{description:c.NEWSLETTER_CONFIGS.messages.success_description,title:c.NEWSLETTER_CONFIGS.messages.success_title,CONSTANTS:c}):r.jsxs(r.Fragment,{children:[r.jsxs("form",{className:je["form-wrapper"],onSubmit:y=>d(y,e,t),children:[r.jsx(Np,{formStatus:f,fields:u,CONSTANTS:c}),h&&r.jsx(Tp,{checkboxRef:l,formStatus:f,setFormStatus:g,CONSTANTS:c}),r.jsx(Ip,{formStatus:f,type:"submit",variant:"primary",onClick:m,CONSTANTS:c})]}),(n||i==="vertical")&&r.jsxs("div",{className:je.lgpd,children:[o&&r.jsx("p",{children:o}),s&&r.jsx(Ge,{href:a,children:s})]})]})})};kp.displayName="Newsletter.Form";const Px=["horizontal","vertical"],Zs=({className:e,description:t,formPayloadOptionals:n,fields:o,masterDataEntity:s,masterDataEmailField:a,masterDataNameField:i,banner:c,altBanner:l,bannerBackground:u,termsDescription:f,lgpdLinkLable:h,lgpdLink:m,title:d,variant:g,borderTop:y,borderBottom:_,CONSTANTS:b,...S})=>{if(!a||!i)return null;const v=p.helpers.ValidateProp({fieldTypes:Px,property:g,fallback:"horizontal"});return r.jsxs("div",{className:c?u?je["banner-background"]:je["newsletter-wrapper"]:"",children:[c&&r.jsx(p.Banner.Container,{className:je["banner-container"],children:r.jsx(p.Banner.ImageWrapper,{children:r.jsx(Ie.Image,{src:c,alt:l,width:"1920",height:"500"})})}),r.jsx("div",{className:c?je["newsletter-provider-wrapper"+(u?"-background":"")]:"",children:r.jsx(su,{fields:o,masterDataEmailField:a,masterDataNameField:i,variant:v,CONSTANTS:b,children:r.jsx("div",{...S,className:p.helpers.classNameConcat(je["newsletter-root"+(c||v==="vertical"?"-banner":"")],[y&&je["has-border-top"],_&&je["has-border-bottom"],e].filter(Boolean)),"data-variant":v,children:r.jsxs("div",{className:c||v==="vertical"?je["newsletter-container-banner"]:je["newsletter-container"],children:[r.jsxs("div",{className:je["content-text"],children:[r.jsx("h2",{children:d}),r.jsx("p",{children:t}),!c&&v==="horizontal"&&r.jsxs("div",{className:je.lgpd,children:[r.jsx("p",{children:f}),h&&r.jsx(Ge,{target:"_blank",href:m,children:h})]})]}),r.jsx(kp,{formPayloadOptionals:n,masterDataEntity:s,CONSTANTS:b,banner:c,lgpdLink:m,lgpdLinkLable:h,termsDescription:f,variant:v})]})})})})]})};Zs.displayName="Newsletter";const Mp=({children:e,...t})=>r.jsx("div",{...t,children:e});Mp.displayName="CallToAction";const wx="_wrapper_aejhu_1",Ex="_body_aejhu_8",Nr={wrapper:wx,body:Ex,"wrapper-body":"_wrapper-body_aejhu_16","accordion-modifier":"_accordion-modifier_aejhu_32"},Rx=({children:e,className:t,...n})=>r.jsx("div",{...n,className:p.helpers.classNameConcat(Nr.wrapper,t),children:e}),Ax=({data:e,ICONS:t})=>{const[n,o]=x.useState(null),s=i=>{o(c=>c===i?null:i)},{router:a}=_e();return r.jsx("div",{className:p.helpers.classNameConcat(Nr.body),children:Array.isArray(e)&&(e==null?void 0:e.map((i,c)=>{var h;const l=n===i.id,u=i.buttonHref&&i.buttonHref!=="#",f=i.buttonHref&&i.type==="button"&&u?{onClick:()=>{var m;if((m=i.buttonHref)!=null&&m.startsWith("/")){a.push(i.buttonHref);return}window.open(i.buttonHref,"_blank")}}:{};return r.jsx("div",{children:i.type==="button"?r.jsxs(r.Fragment,{children:[r.jsx(p.Button,{variant:"tertiary",mode:i.buttonMode??"default",size:i.buttonSize??"medium",iconNameStart:t[i.buttonIcon]??i.buttonIcon,...f,style:{marginTop:16},children:i.buttonLabel}),r.jsx(p.Utils.Divider,{direction:"horizontal",size:"small",style:{height:16}})]}):r.jsxs(p.Accordion.Wrapper,{className:p.helpers.classNameConcat(Nr["accordion-modifier"]),children:[r.jsx(p.Accordion.Header,{id:`${c}-${i.title}`,closeIndicator:l?r.jsx(p.Icon,{name:t.arrow_up,size:"medium"}):void 0,openIndicator:l?void 0:r.jsx(p.Icon,{name:t.arrow_down,size:"medium"}),title:"accordion-header",onClick:()=>s(i.id),children:r.jsx(p.TextStructure.Root,{children:r.jsx(p.TextStructure.DivWrapper,{children:r.jsx("h2",{className:"typography-style-body-sm",children:i.title})})})}),r.jsx(p.Accordion.Body,{title:"accordion-body",children:r.jsx(p.TextStructure.Root,{children:l&&r.jsxs(p.TextStructure.DivWrapper,{children:[i.subtitle?r.jsx("h3",{className:"typography-style-body-md",children:i.subtitle}):r.jsx(r.Fragment,{}),r.jsx("p",{className:"typography-style-caption",children:i.description}),i.buttonLabel&&i.buttonHref?r.jsx(Ge,{href:i.buttonHref??"#",mode:i.buttonMode??"default",size:i.buttonSize??"medium",adornments:(h=i.buttonIcon)!=null&&h.length?{end:r.jsx(p.Icon,{name:t[i.buttonIcon]??i.buttonIcon})}:void 0,children:i.buttonLabel}):r.jsx(r.Fragment,{})]})})})]})},i.id)}))})},Nx=({className:e,data:t,ICONS:n,...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?r.jsxs(Rx,{...o,className:e,children:[r.jsx("div",{className:Nr["wrapper-body"],hidden:!s,children:s&&r.jsx(Ax,{data:i.content,ICONS:n})}),r.jsx(Mp,{children:r.jsx("div",{onClick:l,children:s?r.jsx(p.Button,{iconNameEnd:n.close,size:(i==null?void 0:i.helpButtonSize)??"x-large"}):r.jsx(p.Button,{iconNameStart:(i==null?void 0:i.iconLabel)??n.help,size:(i==null?void 0:i.helpButtonSize)??"x-large",children:i==null?void 0:i.label})})})]}):r.jsx(r.Fragment,{})},Ix="_formContainer_zwlly_1",Tx="_formFieldGroup_zwlly_6",Ox="_formFieldGroupName_zwlly_10",kx="_formFieldWrapper_zwlly_20",Mx="_formFieldInput_zwlly_30",Lx="_success_zwlly_73",Dx="_button_zwlly_110",$x="_error_zwlly_114",rt={formContainer:Ix,formFieldGroup:Tx,formFieldGroupName:Ox,formFieldWrapper:kx,formFieldInput:Mx,success:Lx,"text-structure-modifier":"_text-structure-modifier_zwlly_85",button:Dx,error:$x},zx=({group:e,children:t,className:n})=>r.jsx(r.Fragment,{children:r.jsxs("div",{className:p.helpers.classNameConcat(rt.formFieldGroup,n),children:[r.jsx("h1",{className:rt.formFieldGroupName,children:e.groupLabel}),t]},e.groupLabel)});async function Fx(e){const t=new TextEncoder().encode(e),n=await crypto.subtle.digest("SHA-1",t);return Array.from(new Uint8Array(n)).map(a=>a.toString(16).padStart(2,"0")).join("")}const Bx=async e=>await fetch("/api/dito-ingest",{method:"POST",body:JSON.stringify(e)}).then(n=>n.json()),Lp=x.createContext({});function Dp({children:e,groups:t,masterDataEntity:n,postFn:o,actionName:s="",originName:a="",POPUP_SUBMITTED_STORAGE:i}){const[c,l]=x.useState(!1),[u,f]=x.useState({}),[h,m]=x.useState([]),[d,g]=x.useState("idle"),[y,_]=x.useState(""),b=({target:{name:v,value:j}})=>{f({...u,[v]:j})},S=v=>{v.preventDefault(),o({body:{masterDataEntity:n,payload:u}}).then(async({Message:j})=>{if(j){const E=j.match(/'(.*?[^\\])'/g)||[];var P="-";for(const C of E){const R=C.substring(1,C.length-1),w=t.flatMap(N=>N.fields).find(({name:N})=>N===R);_(R),w&&(P=w.name)}return g("error"),m([P])}if(u.email){const E=await Fx(u.email||""),C=new Date().toISOString();Bx([{user_id:E,timestamp:C,type:"IDENTIFY",traits:{id:E,created_at:C,name:u.name,email:u.email,phone:u==null?void 0:u.phone}},{action:s,timestamp:C,type:"TRACK",user_id:E,context:{user_agent:navigator.userAgent},properties:{custom_data:{email:u.email,nome:u.name,origem:a,...u}}}])}return window.localStorage.setItem(i,"true"),f({}),l(!0),g("success"),m([])})};return r.jsx(Lp.Provider,{value:{formErrors:h,handleInputChange:b,submitForm:S,formData:u,status:d,fieldMessage:y,success:c,setSuccess:l},children:e})}function Kr(){return x.useContext(Lp)}const qx=({fields:e,className:t})=>{const{formData:n,handleInputChange:o,formErrors:s}=Kr();return r.jsx("div",{className:p.helpers.classNameConcat(rt.formFieldWrapper,t),children:e.map(({label:a,name:i,required:c,width:l="medium"})=>r.jsx(p.TextField.Input,{label:`${a}${c?"*":""}`,title:i,value:n[i]||"",name:i,sizeVariant:"large",onChange:o,required:c,feedback:s.includes(i)?"error":"none",className:rt.formFieldInput,"data-inputsize":l},i))})},Hx=({FORM_CONFIGS:e,ICONS:t})=>{const{router:n}=_e();return r.jsxs("div",{className:rt.success,children:[r.jsx(p.TextStructure.Root,{adornment:{start:r.jsx(p.Icon,{name:t.check_circle,size:"medium"})},children:r.jsx(p.TextStructure.DivWrapper,{className:rt["text-structure-modifier"],children:r.jsx("p",{children:e.successMessage})})}),r.jsx(p.Button,{size:"large",onClick:()=>n.push("/"),className:rt.button,children:e.returnButton})]})},Ux=({FORM_CONFIGS:e,ICONS:t})=>{const{fieldMessage:n}=Kr();return r.jsx("div",{className:rt.error,children:r.jsx(p.TextStructure.Root,{adornment:{start:r.jsx(p.Icon,{name:t.delete_circle,size:"small"})},children:r.jsx(p.TextStructure.DivWrapper,{className:rt["text-structure-modifier"],children:r.jsxs("p",{children:[e.errorMessage,n]})})})})},Wx=({children:e,className:t,ICONS:n,FORM_CONFIGS:o})=>{const{submitForm:s,status:a}=Kr();return r.jsx("form",{onSubmit:s,className:p.helpers.classNameConcat(rt.formContainer,t),children:a==="success"?r.jsx(Hx,{ICONS:n,FORM_CONFIGS:o}):r.jsxs(r.Fragment,{children:[e,a==="error"&&r.jsx(Ux,{ICONS:n,FORM_CONFIGS:o})]})})},Gx=e=>{const{children:t,className:n}=e;return r.jsx(Dp,{...e,children:r.jsx(Wx,{ICONS:e.ICONS,FORM_CONFIGS:e.FORM_CONFIGS,className:n,children:t})})},Et={Root:Gx,FieldGroup:zx,FieldWrapper:qx},Vx="_button_1e35m_39",ft={"banner-container":"_banner-container_1e35m_1","banner-background":"_banner-background_1e35m_6","form-root":"_form-root_1e35m_15",button:Vx,"form-fied-wrapper":"_form-fied-wrapper_1e35m_52"};function Kx({content:e,sections:t,FORM_CONFIGS:n,ICONS:o,postFn:s,POPUP_SUBMITTED_STORAGE:a}){var l;const{isMobile:i}=ce(),c=((l=t.find(({name:u})=>u==="Form"))==null?void 0:l.data)||{};return r.jsx("div",{children:r.jsxs(p.Banner.Container,{className:ft["banner-container"],children:[r.jsx(p.Banner.ImageWrapper,{children:r.jsx(Ie.Image,{className:ft["banner-background"],src:i?e.bannerMobile:e.bannerDesk,alt:e.altBanner,width:"1920",height:"500"})}),r.jsxs(Et.Root,{postFn:s,ICONS:o,FORM_CONFIGS:n,groups:c.groups||[],masterDataEntity:c.masterDataEntity||"",className:ft["form-root"],POPUP_SUBMITTED_STORAGE:a,children:[c.groups.map(u=>r.jsx(Et.FieldGroup,{group:u,children:r.jsx(Et.FieldWrapper,{fields:u.fields,className:ft["form-fied-wrapper"]})},u.groupLabel)),r.jsxs("div",{children:[r.jsx(p.TextStructure.DivWrapper,{children:r.jsx("p",{className:"typography-style-body-xs",children:e.requiredMessage})}),r.jsx("div",{className:ft["button-wrapper"],children:r.jsx("div",{className:ft["button-frame"],children:r.jsx(p.Button,{size:"large",type:"submit",className:ft.button,children:e.buttonLabel})})})]})]})]})})}const Sr={teamComponents:{AddToCart:Os,BackToTop:Oh,HelpButton:Nx,BuyPackage:ed,Filter:{...ot,helpers:hf},...rv,FreightCalculation:nf,Header:rf,Link:Ge,Media:Ie,PLPNavigation:dt,ProductCard:xe,ProductList:tt,ProductVariationList:Qe,Sort:qr,UserMenu:Fr,Newsletter:Zs,Form:Et},template:{minicart:Me,pdc:jp,pdc_composites:Je,pdp:qv,searchResult:Ep,wishList:Fu,LPCadastro:Kx},utils:{EventCollector:gx,ExternalScripts:bx,LinkOrNotLink:Yt,ObserverWrapper:zr,SnackBarComponent:wt,DraftJsLinkWrapper:ip}},Xx=(e,t)=>{const n=e.map(s=>`'${s.source}'`).join(`,
|
|
40
|
+
*/const c=i(357),l=(C,R,I)=>{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 w={relaxZeros:!0,...I};typeof w.strictZeros=="boolean"&&(w.relaxZeros=w.strictZeros===!1);let N=String(w.relaxZeros),T=String(w.shorthand),z=String(w.capture),O=String(w.wrap),W=C+":"+R+"="+N+T+z+O;if(l.cache.hasOwnProperty(W))return l.cache[W].result;let B=Math.min(C,R),V=Math.max(C,R);if(Math.abs(B-V)===1){let A=C+"|"+R;return w.capture?`(${A})`:w.wrap===!1?A:`(?:${A})`}let F=P(C)||P(R),G={min:C,max:R,a:B,b:V},q=[],X=[];if(F&&(G.isPadded=F,G.maxLen=String(G.max).length),B<0){let A=V<0?Math.abs(V):1;X=m(A,Math.abs(B),G,w),B=G.a=0}return V>=0&&(q=m(B,V,G,w)),G.negatives=X,G.positives=q,G.result=u(X,q),w.capture===!0?G.result=`(${G.result})`:w.wrap!==!1&&q.length+X.length>1&&(G.result=`(?:${G.result})`),l.cache[W]=G,G.result};function u(C,R,I){let w=d(C,R,"-",!1)||[],N=d(R,C,"",!1)||[],T=d(C,R,"-?",!0)||[];return w.concat(T).concat(N).join("|")}function f(C,R){let I=1,w=1,N=b(C,I),T=new Set([R]);for(;C<=N&&N<=R;)T.add(N),I+=1,N=b(C,I);for(N=S(R+1,w)-1;C<N&&N<=R;)T.add(N),w+=1,N=S(R+1,w)-1;return T=[...T],T.sort(y),T}function h(C,R,I){if(C===R)return{pattern:C,count:[],digits:0};let w=g(C,R),N=w.length,T="",z=0;for(let O=0;O<N;O++){let[W,B]=w[O];W===B?T+=W:W!=="0"||B!=="9"?T+=j(W,B):z++}return z&&(T+=I.shorthand===!0?"\\d":"[0-9]"),{pattern:T,count:[z],digits:N}}function m(C,R,I,w){let N=f(C,R),T=[],z=C,O;for(let W=0;W<N.length;W++){let B=N[W],V=h(String(z),String(B),w),F="";if(!I.isPadded&&O&&O.pattern===V.pattern){O.count.length>1&&O.count.pop(),O.count.push(V.count[0]),O.string=O.pattern+v(O.count),z=B+1;continue}I.isPadded&&(F=E(B,I,w)),V.string=F+V.pattern+v(V.count),T.push(V),z=B+1,O=V}return T}function d(C,R,I,w,N){let T=[];for(let z of C){let{string:O}=z;!w&&!_(R,"string",O)&&T.push(I+O),w&&_(R,"string",O)&&T.push(I+O)}return T}function g(C,R){let I=[];for(let w=0;w<C.length;w++)I.push([C[w],R[w]]);return I}function y(C,R){return C>R?1:R>C?-1:0}function _(C,R,I){return C.some(w=>w[R]===I)}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,I=""]=C;return I||R>1?`{${R+(I?","+I:"")}}`:""}function j(C,R,I){return`[${C}${R-C===1?"":"-"}${R}]`}function P(C){return/^-?(0+)\d/.test(C)}function E(C,R,I){if(!R.isPadded)return C;let w=Math.abs(R.maxLen-String(C).length),N=I.relaxZeros!==!1;switch(w){case 0:return"";case 1:return N?"0?":"0";case 2:return N?"0{0,2}":"00";default:return N?`0{0,${w}}`:`0{${w}}`}}l.cache={},l.clearCache=()=>l.cache={},s.exports=l},17:s=>{s.exports=l_},837:s=>{s.exports=G_()}},t={};function n(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,n),c=!1}finally{c&&delete t[s]}return i.exports}typeof n<"u"&&(n.ab=__dirname+"/");var o=n(971);kn.exports=o})()),kn.exports}var rc;function K_(){return rc||(rc=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 n=V_();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,n.makeRe)(a.hostname).test(i.hostname))return!1;var c;return!!(0,n.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))}}(On)),On}var nc;function Bf(){return nc||(nc=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return n}});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(f){throw console.error(f),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:f}=K_();if(!f(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 n=t}(Tn)),Tn}(function(e,t){"use client";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"Image",{enumerable:!0,get:function(){return S}});const n=ke,s=Nt._(x),a=n._(ls),i=n._(i_()),c=qs,l=Hr,u=c_(),f=Qt,h=Iu(),m=n._(Bf()),d=process.env.__NEXT_IMAGE_OPTS;typeof window>"u"&&(globalThis.__NEXT_IMAGE_IMPORTED=!0);function g(v,j,P,E,C,R){const I=v==null?void 0:v.src;if(!v||v["data-loaded-src"]===I)return;v["data-loaded-src"]=I,("decode"in v?v.decode():Promise.resolve()).catch(()=>{}).then(()=>{if(!(!v.parentElement||!v.isConnected)){if(j!=="empty"&&C(!0),P!=null&&P.current){const N=new Event("load");Object.defineProperty(N,"target",{writable:!1,value:v});let T=!1,z=!1;P.current({...N,nativeEvent:N,currentTarget:v,target:v,isDefaultPrevented:()=>T,isPropagationStopped:()=>z,persist:()=>{},preventDefault:()=>{T=!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(I,"http://n").searchParams.get("url")||I;if(v.getAttribute("data-nimg")==="fill"){if(!R&&(!v.getAttribute("sizes")||v.getAttribute("sizes")==="100vw")&&v.getBoundingClientRect().width/window.innerWidth<.6&&(0,f.warnOnce)('Image with src "'+N+'" has "fill" but is missing "sizes" prop. Please add it to improve page performance. Read more: https://nextjs.org/docs/api-reference/next/image#sizes'),v.parentElement){const{position:O}=window.getComputedStyle(v.parentElement),W=["absolute","fixed","relative"];W.includes(O)||(0,f.warnOnce)('Image with src "'+N+'" has "fill" and parent element with invalid "position". Provided "'+O+'" should be one of '+W.map(String).join(",")+".")}v.height===0&&(0,f.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 T=v.height.toString()!==v.getAttribute("height"),z=v.width.toString()!==v.getAttribute("width");(T&&!z||!T&&z)&&(0,f.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 y(v){const[j,P]=s.version.split("."),E=parseInt(j,10),C=parseInt(P,10);return E>18||E===18&&C>=3?{fetchPriority:v}:{fetchpriority:v}}const _=(0,s.forwardRef)((v,j)=>{let{src:P,srcSet:E,sizes:C,height:R,width:I,decoding:w,className:N,style:T,fetchPriority:z,placeholder:O,loading:W,unoptimized:B,fill:V,onLoadRef:F,onLoadingCompleteRef:G,setBlurComplete:q,setShowAltText:X,onLoad:A,onError:k,...L}=v;return s.default.createElement("img",{...L,...y(z),loading:W,width:I,height:R,decoding:w,"data-nimg":V?"fill":"1",className:N,style:T,sizes:C,srcSet:E,src:P,ref:(0,s.useCallback)(Y=>{j&&(typeof j=="function"?j(Y):typeof j=="object"&&(j.current=Y)),Y&&(k&&(Y.src=Y.src),process.env.NODE_ENV!=="production"&&(P||console.error('Image is missing required "src" property:',Y),Y.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.')),Y.complete&&g(Y,O,F,G,q,B))},[P,O,F,G,q,k,B,j]),onLoad:Y=>{const ne=Y.currentTarget;g(ne,O,F,G,q,B)},onError:Y=>{X(!0),O!=="empty"&&q(!0),k&&k(Y)}})});function b(v){let{isAppRouter:j,imgAttributes:P}=v;const E={as:"image",imageSrcSet:P.srcSet,imageSizes:P.sizes,crossOrigin:P.crossOrigin,referrerPolicy:P.referrerPolicy,...y(P.fetchPriority)};return j&&a.default.preload?(a.default.preload(P.src,E),null):s.default.createElement(i.default,null,s.default.createElement("link",{key:"__nimg-"+P.src+P.srcSet+P.sizes,rel:"preload",href:P.srcSet?void 0:P.src,...E}))}const S=(0,s.forwardRef)((v,j)=>{const E=!(0,s.useContext)(h.RouterContext),C=(0,s.useContext)(u.ImageConfigContext),R=(0,s.useMemo)(()=>{const G=d||C||l.imageConfigDefault,q=[...G.deviceSizes,...G.imageSizes].sort((A,k)=>A-k),X=G.deviceSizes.sort((A,k)=>A-k);return{...G,allSizes:q,deviceSizes:X}},[C]),{onLoad:I,onLoadingComplete:w}=v,N=(0,s.useRef)(I);(0,s.useEffect)(()=>{N.current=I},[I]);const T=(0,s.useRef)(w);(0,s.useEffect)(()=>{T.current=w},[w]);const[z,O]=(0,s.useState)(!1),[W,B]=(0,s.useState)(!1),{props:V,meta:F}=(0,c.getImgProps)(v,{defaultLoader:m.default,imgConf:R,blurComplete:z,showAltText:W});return s.default.createElement(s.default.Fragment,null,s.default.createElement(_,{...V,unoptimized:F.unoptimized,placeholder:F.placeholder,fill:F.fill,onLoadRef:N,onLoadingCompleteRef:T,setBlurComplete:O,setShowAltText:B,ref:j}),F.priority?s.default.createElement(b,{isAppRouter:E,imgAttributes:V}):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)})(Jo,Jo.exports);var X_=Jo.exports;(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(u,f){for(var h in f)Object.defineProperty(u,h,{enumerable:!0,get:f[h]})}t(e,{unstable_getImgProps:function(){return c},default:function(){return l}});const n=ke,o=qs,s=Qt,a=X_,i=n._(Bf()),c=u=>{(0,s.warnOnce)("Warning: unstable_getImgProps() is experimental and may change or be removed at any time. Use at your own risk.");const{props:f}=(0,o.getImgProps)(u,{defaultLoader:i.default,imgConf:process.env.__NEXT_IMAGE_OPTS});for(const[h,m]of Object.entries(f))m===void 0&&delete f[h];return{props:f}},l=a.Image})(Af);var Y_=Af;const Er=Mr(Y_),Q_=({item:e,CONSTANTS:t})=>{const n=e.icon?t.PAYMENT_FLAGS.includes(e.icon)?"payment":"social":null,o=n==="payment"?t.PAYMENT_FLAGS_DICTIONARY[e.icon]:e.icon;return e.link?r.jsxs(De,{href:e.link,target:"_blank",rel:"noopener noreferrer",className:ye["support-item"],children:[e.image&&r.jsx("img",{src:e.image,alt:"",loading:"lazy"}),n==="payment"?r.jsx(Er,{alt:o,src:`/assets/${o}.svg`,width:20,height:20}):r.jsx(p.Icon,{size:"small",name:o})]}):r.jsxs("div",{className:ye["support-item"],children:[e.image&&r.jsx("img",{src:e.image,alt:"",loading:"lazy"}),n==="payment"?r.jsx(Er,{alt:o,src:`/assets/${o}.svg`,width:20,height:20}):r.jsx(p.Icon,{size:"small",name:o})]})},Z_=({content:e,CONSTANTS:t})=>r.jsx("div",{className:ye["support-container"],children:e==null?void 0:e.map((n,o)=>r.jsxs("div",{"data-device":n.device,className:ye["support-section"],children:[r.jsxs("div",{className:ye["support-text"],children:[n.title&&r.jsx("h3",{children:n.title}),n.description&&r.jsx("p",{children:n.description})]}),Array.isArray(n.items)&&n.items.length&&r.jsx("div",{className:ye["support-items"],"data-gap":n.gap,children:n.items.map((s,a)=>r.jsx(Q_,{item:s,CONSTANTS:t},`footer-support-item-${a}`))})]},`footer-support-${o}`))}),J_=({name:e,nameIcon:t,maxWidth:n,rowAlignContent:o,columnAlignContent:s,columnAlignItems:a,textAlignContent:i,textAlignItems:c,children:l})=>r.jsx(p.TextStructure.Root,{layoutProps:{textRow:{alignContent:o,alignItems:o},columnWrapper:{alignContent:s,alignItems:a}},children:r.jsxs(p.TextStructure.DivWrapper,{alignContent:i,alignItems:c,className:ye.footer__column,children:[r.jsxs("div",{className:t?ye.footer__columnTitleIcon:ye.footer__columnTitle,children:[r.jsx(p.Icon,{name:`${t}`,size:"small"}),e&&r.jsx("div",{children:e})]}),r.jsx("div",{className:ye.footer__columnContent,style:{maxWidth:`${n}px`},children:l})]})}),ev=({name:e,nameIcon:t,maxWidth:n,children:o,ICONS:s,...a})=>r.jsxs(p.Accordion.Wrapper,{className:ye.accordionWrapper,title:"accordion-wrapper",...a,children:[r.jsx(p.Accordion.Header,{id:(a==null?void 0:a.id)??"",className:ye.accordionHeader,closeIndicator:r.jsx(p.Icon,{name:s.arrow_up,size:"medium"}),openIndicator:r.jsx(p.Icon,{name:s.arrow_down,size:"medium"}),title:"accordion-header",children:r.jsx(p.TextStructure.Root,{children:r.jsxs(p.TextStructure.DivWrapper,{className:t?ye.accordionTextWrapper:"",children:[r.jsx(p.Icon,{name:`${t}`,size:"medium"}),r.jsx("h2",{className:"typography-style-body-md",children:e})]})})}),r.jsx(p.Accordion.Body,{title:"accordion-body",children:r.jsx(p.TextStructure.Root,{children:r.jsx(p.TextStructure.DivWrapper,{className:ye.footer__columnContent,style:{maxWidth:`${n}px`},children:o})})})]}),Do=e=>{const{isMobile:t}=ce();return t?r.jsx(ev,{...e}):r.jsx(J_,{...e})},vr=({type:e,children:t,className:n,collumnName:o,collumnNameIcon:s,icons:a,iconLink:i,iconSize:c,link:l,paymentDisclaimer:u,paymentTitle:f,rowAlignContent:h,columnAlignContent:m,columnAlignItems:d,textAlignContent:g,textAlignItems:y,..._})=>{let b;const{handleSelectContent:S}=le(),{nextimage:v}=_e();switch(e){case"menu":b=r.jsx(De,{className:ye.footer__itemLink,href:l??"#",prefetch:!1,children:r.jsx("span",{onClick:()=>{S({content:`footer:${o}:${t}`})},children:t})});break;case"payment":b=r.jsxs("div",{className:p.helpers.classNameConcat(ye.payment,ye.footer__itemSmallText),..._,children:[u,r.jsxs("div",{className:p.helpers.classNameConcat(ye.footer__iconContainer,ye.footer__iconListSubHeader),children:[f,r.jsx("div",{className:ye.footer__iconList,children:a==null?void 0:a.map((j,P)=>r.jsx(v,{alt:j,src:`/assets/${j}.svg`,width:c??20,height:c??20},P))})]})]});break;case"social-media":b=r.jsx("div",{className:ye.footer__iconContainer,..._,children:r.jsx("div",{className:ye.footer__iconList,children:i==null?void 0:i.map((j,P)=>r.jsx(De,{prefetch:!1,href:j.link??"#",target:"_blank",children:r.jsx(p.Icon,{size:"medium",name:j.icon,onClick:()=>S({content:`footer:redes-sociais:${j.icon}`})})},P))})});break;default:b=r.jsx("div",{className:n,..._,children:t})}return r.jsx(p.TextStructure.Root,{layoutProps:{textRow:{alignContent:h,alignItems:h},columnWrapper:{alignContent:m,alignItems:d}},..._,children:r.jsx(p.TextStructure.DivWrapper,{alignContent:g,alignItems:y,className:p.helpers.classNameConcat(ye.footer__item,n),children:b})})},tv=({className:e,text:t,...n})=>r.jsx("div",{...n,className:p.helpers.classNameConcat(ye.footer__legalInformation,e),children:r.jsx("span",{children:t})}),qf=()=>{const{nextimage:e}=_e();return r.jsx("div",{className:ye["footer--stamps"],children:r.jsx(e,{alt:"Empresa B",className:ye["footer--stamps--company"],src:"/images/Footer/new_certfB.png",width:56,height:64})})};qf.displayName="Footer.Stamps";const Hf=({children:e,legalTextSlot:t,adornment:n,className:o,...s})=>{const{isMobile:a}=ce(),i=x.Children.toArray(e).filter(Boolean),c=i.length;return r.jsxs("div",{className:ye.footer__main,children:[(n==null?void 0:n.top)&&r.jsx("div",{className:ye.footer__top,children:n==null?void 0:n.top}),c>0&&r.jsx("div",{...s,className:p.helpers.classNameConcat(ye.footer__wrapper,o),children:i.map((l,u)=>r.jsx("div",{style:{flexGrow:1,maxWidth:`calc(100% / ${a?1:"fit-content"})`},children:l},u))}),(n==null?void 0:n.bottom)&&r.jsx("div",{className:ye.footer__bottom,children:n.bottom}),t&&r.jsx("div",{className:ye.footer__legalText,children:t})]})};Hf.displayName="Footer.Wrapper";const Uf=({data:{links:{links:e}},payments:t,socialInfo:n,socialMedias:o,adornment:s,LEGAL_INFORMATION_TEXT:a,ICONS:i})=>{var c;return r.jsxs(Hf,{adornment:s,legalTextSlot:r.jsx(tv,{text:a}),children:[Array.isArray(e.column)&&e.column.map((l,u)=>r.jsx(Do,{id:`${u}column-menu`,name:l.name,nameIcon:l.nameIcon,ICONS:i,children:l.items.map((f,h)=>r.jsx(vr,{type:"menu",link:f.link,collumnName:l.name,collumnNameIcon:l.nameIcon,children:f.text},h))},u)),t&&((c=t.acceptedFlags)==null?void 0:c.length)>0&&r.jsx(Do,{id:"payment-column",name:t==null?void 0:t.title,nameIcon:t==null?void 0:t.titleIcon,maxWidth:150,ICONS:i,children:r.jsx(vr,{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})}),r.jsxs(Do,{id:"social-media-column",name:n==null?void 0:n.title,ICONS:i,children:[n!=null&&n.subTitle?r.jsx(vr,{children:n==null?void 0:n.subTitle}):null,r.jsx(vr,{type:"social-media",iconSize:24,iconLink:o}),r.jsx(qf,{})]})]})};Uf.displayName="Footer";const rv=Object.freeze(Object.defineProperty({__proto__:null,Footer:Uf,FooterSupport:Z_},Symbol.toStringTag,{value:"Module"})),nv=()=>{const{colorName:e}=$e();return r.jsx(p.TextStructure.Root,{children:r.jsx(p.TextStructure.DivWrapper,{className:e.length===0?"":U.styles["accessibility-info"],children:r.jsx("p",{children:e})})})},Gr=({className:e,titleId:t})=>{var s,a,i;const{productName:n,tag:o}=$e();return r.jsxs("div",{className:p.helpers.classNameConcat(U.styles.header,e),children:[o!=null&&o.commercial?r.jsx(p.Tag,{size:"small",title:(s=o.commercial)==null?void 0:s.value,variant:"quaternary",adornment:{start:(a=o.commercial)!=null&&a.icon?r.jsx(p.Icon,{name:o.commercial.icon}):null},children:(i=o.commercial)==null?void 0:i.value}):null,r.jsx(p.TextStructure.Root,{children:r.jsx(p.TextStructure.DivWrapper,{children:r.jsx("h1",{id:t,children:n})})})]})};Gr.displayName="PDP.PDPHeader";const Vs=({layout:e="horizontal"})=>{const{price:t,listPrice:n,installments:o}=$e(),{count:s,value:a}=o,i=U.formatPriceToCurrency(n??0,!0),c=U.formatPriceToCurrency(t??0,!0),l=U.formatPriceToCurrency(a??0);return r.jsx(p.ProductInfo.Root,{size:"small",layout:e,children:r.jsxs(p.ProductInfo.Wrapper,{layout:e,size:"small",className:U.styles["price-wrapper"],children:[r.jsx(p.ProductInfo.ValuesWrapper,{children:t!==n?r.jsxs(r.Fragment,{children:[r.jsx(p.ProductInfo.Price,{label:"originalPrice",value:i.toString(),size:"small"}),r.jsx(p.ProductInfo.Price,{label:"discountPrice",value:c.toString(),size:"small"})]}):r.jsx(p.ProductInfo.Price,{label:"defaultPrice",value:c.toString(),size:"small"})}),s&&s>1&&a?r.jsx(p.ProductInfo.Price,{label:"installment",value:`ou ${s}x ${l}`,size:"small"}):null]})})},es=({onAddCallBack:e,onDisabledClickCallBack:t,addToCartBtnSize:n,BUY_BUTTON_LABELS:o})=>{const s=Kt(),{productId:a,productData:i,price:c,listPrice:l,thumbImage:u,isKit:f}=$e(),{isMobile:h}=ce(),{addToCart:m}=Re(),{sendDataLayerEvent:d}=le(),g=!f&&(!s.sku||!s.available),y=()=>{if(g&&typeof t=="function"){t();return}typeof e=="function"&&e({id:s.sku,quantity:s.quantity,seller:s.sellerId,sku:a}),m({id:s.sku,quantity:s.quantity,seller:s.sellerId},{id:a,texture:u==null?void 0:u.imageUrl}),d({functionKey:"skuEvents",data:{event:"add_to_cart",commonData:{products:[{...i,price:c,listPrice:l}]},supportData:{selectedSkus:[s]},customData:{quantity:s.quantity}}})};return r.jsx(p.Button,{className:U.styles["add-to-cart"],size:h?(n==null?void 0:n.mobile)??"large":(n==null?void 0:n.desktop)??"x-large",onClick:y,children:s.sku&&s.available?`${o.add_to_cart}`:`${o.select_size}`})},ov=({addToCartBtnSize:e,BUY_BUTTON_LABELS:t})=>{const{isMobile:n}=ce(),o=Kt(),{sizesContainerRef:s}=vc(),{structureRef:a}=we();return o.sku&&o.available?r.jsx(es,{addToCartBtnSize:e,BUY_BUTTON_LABELS:t}):r.jsx(p.Button,{className:U.styles["add-to-cart"],size:n?(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})},sv=({addToCartBtnSize:e,BUY_BUTTON_LABELS:t,Z_INDEX_WAR:n})=>{const{isMobile:o}=ce();return o?r.jsxs(p.Card,{className:U.styles["bottom-navigation"],shadow:!0,style:{zIndex:n.pdp_bottom_navigation},children:[r.jsxs("div",{className:U.styles["bottom-navigation__header"],children:[r.jsx(Gr,{}),r.jsx(Vs,{layout:"name-vertical"})]}),r.jsx(ov,{addToCartBtnSize:e,BUY_BUTTON_LABELS:t})]}):null},av=({children:e,setShowBottomNavigation:t})=>{const n=x.useRef(null),o=ds(n),s=x.useRef(o);return x.useEffect(()=>{var i;const{top:a}=((i=n.current)==null?void 0:i.getBoundingClientRect())??{top:0};s.current!==o&&a>0&&(t(!o),s.current=o)},[o]),r.jsx("div",{ref:n,style:{width:"100%"},children:e})},iv=({ICONS:e})=>{const{isMobile:t}=ce(),{price:n,listPrice:o,productData:s,productId:a}=$e(),{sendDataLayerEvent:i}=le(),c=Tt(),{toggleProduct:l}=vt();return r.jsx(p.Button,{adornment:{start:r.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:n,listPrice:o}}})}})},Wf=({showWishlist:e=!0,callBack:t,addToCartBtnSize:n,BUY_BUTTON_LABELS:o,ICONS:s,Z_INDEX_WAR:a})=>{const{isMobile:i}=ce(),[c,l]=x.useState(!0);return r.jsxs(r.Fragment,{children:[r.jsxs("div",{className:U.styles.actions,children:[i?r.jsx(av,{setShowBottomNavigation:l,children:r.jsx(es,{onAddCallBack:t,addToCartBtnSize:n,BUY_BUTTON_LABELS:o})}):r.jsx(es,{onAddCallBack:t,addToCartBtnSize:n,BUY_BUTTON_LABELS:o}),e&&r.jsx(iv,{ICONS:s})]}),i&&c&&r.jsx(sv,{addToCartBtnSize:n,BUY_BUTTON_LABELS:o,Z_INDEX_WAR:a})]})},Gf=({className:e,device:t,ICONS:n})=>{const{breadcrumbList:o,productName:s}=$e(),a=i=>i.toLowerCase().normalize("NFD").replace(/[\u0300-\u036f]/g,"");return r.jsx(p.BreadCrumb.DivWrapper,{className:p.helpers.classNameConcat(U.styles.breadcrumb,[t==="mobile"?U.styles["breadcrumbs-mobile"]:U.styles["breadcrumbs-desktop"],e]),children:r.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 r.jsx(p.BreadCrumb.Item,{adornment:{end:r.jsx(p.Icon,{name:n.arrow_right})},role:"listitem",children:r.jsx(De,{href:`/${l}`,children:i})},`pdp-breadcrumb-${l}-${c}`)}),r.jsx(p.BreadCrumb.Item,{role:"listitem",className:p.helpers.classNameConcat(U.styles["breadcrumb--active"],e),children:s},"pdp-breadcrumb-productName")]})})};Gf.displayName="PDP.BreadCrumb";const Vf=({className:e})=>{var o;const{tag:t}=$e(),n=t==null?void 0:t.flagPdp;return n&&((o=n==null?void 0:n.value)!=null&&o.length)?r.jsx(p.Tag,{className:p.helpers.classNameConcat(U.styles.credits,e),variant:"tertiary",title:n==null?void 0:n.value,size:"small",adornment:{start:n!=null&&n.enableIcon&&(n!=null&&n.icon)?r.jsx(p.Icon,{name:n==null?void 0:n.icon,style:{color:n==null?void 0:n.iconColor}}):null},style:{background:n==null?void 0:n.tagColor,color:n==null?void 0:n.textColor},children:n==null?void 0:n.value}):r.jsx(r.Fragment,{})};Vf.displayName="PDPCredits";const cv=()=>{const{descriptionContent:e,productReference:t}=$e(),[n,o]=x.useState("description");return r.jsxs(p.Tabs.Root,{className:U.styles["tabs-root-modifier"],children:[r.jsx(p.Tabs.TabList,{className:U.styles["tabs-list-modifier"],children:e==null?void 0:e.map(({label:s,value:a})=>r.jsx(p.Tabs.Item,{label:s,value:a,activeTab:n,onTabChange:o,size:"large",className:`${U.styles["tabs-item-modifier"]} ${n===a?U.styles["tabs-item-active"]:""}`},a))}),r.jsxs("div",{className:U.styles["content-wrapper"],children:[n==="description"?r.jsx("div",{children:r.jsxs("span",{className:U.styles.productref,children:["Ref:",t]})}):"",e==null?void 0:e.map(({value:s,content:a})=>n===s?r.jsx(p.Tabs.Panel,{className:`${U.styles["tabs-panel"]} ${n===s?U.styles["tabs-panel-enter"]:U.styles["tabs-panel-exit"]}`,children:r.jsx("div",{className:U.styles.content,dangerouslySetInnerHTML:{__html:a}})},s):null)]})]})},lv=({CURRENCY:e,DELIVERY_INFO_BOXES_ALLOWED:t,FREIGHT_CALCULATION:n,Z_INDEX_WAR:o})=>{const s=Kt(),{isMobile:a}=ce();return r.jsxs(r.Fragment,{children:[a?r.jsx(p.Utils.Divider,{direction:"horizontal",size:"small"}):null,r.jsx(nf,{skuId:s.available?s.sku:"",size:a?n.inputSize.mobile:n.inputSize.desktop,quantity:s.quantity,sellerId:s.sellerId,seller:s.sellerName,local:"PDP",CONSTANTS_PROPS:{freightConfig:n,deliveryInfoBoxesAllowed:t,toolTipZIndex:o.modal,currency:e}}),a?r.jsx(p.Utils.Divider,{direction:"horizontal",size:"small"}):null]})},oc=({image:e,index:t,handleZoom:n,PRODUCT_IMAGE_DIMENSIONS:o})=>{const s=U.resizingImg(e.imageUrl,o.pdp),{nextimage:a}=_e();return r.jsx(a,{src:s,alt:e.imageLabel,objectFit:"contain",...o.pdp,...t<=1&&{priority:!0,loading:"eager"},onClick:()=>{n(t)}},t)},uv=({video:e,productName:t,poster:n})=>{const{sendDataLayerEvent:o}=le(),s=x.useRef(!1);return r.jsx(Ie.Video,{src:e,autoPlay:!0,muted:!0,loop:!0,playsInline:!0,style:{zIndex:-1,aspectRatio:"2/3"},onPlaying:()=>{s.current||(s.current=!0,o({functionKey:"readyEvents",data:{event:"video_start",readyData:{product:t}}}))},poster:n})},Kf=({images:e,video:t,handleZoom:n,productName:o,PRODUCT_IMAGE_DIMENSIONS:s})=>{var u,f;const{initialize:a,pagination:i,controller:c,itemsStyles:l}=p.Carousel.useCarousel({gap:0,itemsPerPage:1,loop:!1,direction:"row"});return r.jsxs(p.Carousel.Root,{innerRef:h=>{a(h)},className:U.styles["gallery-carousel-modifier"],children:[r.jsx(p.Carousel.Controller,{position:"absolute",top:"24px",bottom:"unset",left:"16px",children:r.jsx(p.Carousel.Bullets,{page:i.currentPage,total:e.length,onBulletClick:h=>c==null?void 0:c.navigateTo(h)})}),r.jsxs(p.Carousel.Body,{children:[r.jsx(p.Carousel.Item,{style:l,children:r.jsx(oc,{image:e[0],index:0,handleZoom:n,PRODUCT_IMAGE_DIMENSIONS:s})},"PDP_gallery_0"),t&&r.jsx(p.Carousel.Item,{style:l,children:r.jsx(uv,{video:t,productName:o,...((u=e[1])==null?void 0:u.imageUrl)&&{poster:(f=e[1])==null?void 0:f.imageUrl}})},"PDP_gallery_video"),e.map((h,m)=>m===0?null:r.jsx(p.Carousel.Item,{style:l,children:r.jsx(oc,{image:h,index:m,handleZoom:n,PRODUCT_IMAGE_DIMENSIONS:s})},`PDP_gallery_${m}`))]})]})};Kf.displayName="PDP.Carousel";const dv="_thumbs_1954e_65",fv="_selected_1954e_92",pv="_carousel_1954e_164",mv="_bullets_1954e_201",Pe={"image-zoom-wrapper-desktop":"_image-zoom-wrapper-desktop_1954e_1","button-close-container":"_button-close-container_1954e_10","button-close":"_button-close_1954e_10","main-image-container":"_main-image-container_1954e_22","image-desktop":"_image-desktop_1954e_52",thumbs:dv,selected:fv,"image-zoom-wrapper-mobile":"_image-zoom-wrapper-mobile_1954e_117","image-mobile":"_image-mobile_1954e_147","image-zoom--image":"_image-zoom--image_1954e_161",carousel:pv,"carousel-controller":"_carousel-controller_1954e_169","arrow-left":"_arrow-left_1954e_179","arrow-right":"_arrow-right_1954e_180",bullets:mv,"zoom-popup":"_zoom-popup_1954e_212","image-zoom--mobile":"_image-zoom--mobile_1954e_252","image-zoom--image--img":"_image-zoom--image--img_1954e_282"},sc=({onClose:e,ICONS:t})=>r.jsx("div",{className:`${Pe["button-close-container"]}`,children:r.jsx(p.Button,{iconNameStart:t.close,iconSize:"medium",className:`${Pe["button-close"]}`,variant:"tertiary",state:"default",size:"medium",onClick:e,style:{textDecoration:"none"}})}),hv=({children:e,Z_INDEX_WAR:t,...n})=>r.jsx("div",{...n,className:Pe["image-zoom-wrapper-desktop"],style:{zIndex:t.pdp_image_zoom},children:e}),Xf=({images:e,setCurrent:t,setFirstImgLoaded:n,ICONS:o,PRODUCT_IMAGE_DIMENSIONS:s})=>{const{nextimage:a}=_e();let i=null;const c=x.useRef(null),{initialize:l,controller:u,pagination:f,itemsStyles:h}=p.Carousel.useCarousel({itemsPerPage:1,gap:10,loop:!1,direction:"row"}),m=g=>{u==null||u.navigateTo(g)},d=()=>{n(!0)};return x.useEffect(()=>{t(f.currentPage)},[f.currentPage,t]),r.jsxs(p.Carousel.Root,{innerRef:g=>{g&&!i&&(i=g,l(i))},className:Pe.carousel,children:[r.jsxs(p.Carousel.Controller,{className:Pe["carousel-controller"],children:[r.jsx(p.Button,{variant:"tertiary",onClick:()=>u==null?void 0:u.prevPage(),className:Pe["arrow-left"],adornment:{start:r.jsx(p.Icon,{name:o.arrow_left})}}),r.jsx(p.Button,{variant:"tertiary",onClick:()=>u==null?void 0:u.nextPage(),className:Pe["arrow-right"],adornment:{start:r.jsx(p.Icon,{name:o.arrow_right})}})]}),r.jsx(p.Carousel.Body,{children:Array.isArray(e)&&e.map((g,y)=>r.jsx(p.Carousel.Item,{style:h,children:r.jsx(a,{...s.image_zoom.mobile,...y===0&&{priority:!0,loading:"eager"},ref:c,className:Pe.imageMobile,src:g.imageUrl,alt:g.imageText,quality:100,...y===0&&{onLoad:d}})},y))}),r.jsx(p.Carousel.Bullets,{className:Pe.bullets,page:f.currentPage,total:f.totalPages,onBulletClick:m})]})};Xf.displayName="ImageZoom.Mobile.Carousel";const Yf=({imgRef:e,image:t,PRODUCT_IMAGE_DIMENSIONS:n})=>{Ec();const{nextimage:o}=_e();return r.jsx("div",{className:Pe["image-zoom--image"],ref:e,children:r.jsx(o,{...n.image_zoom.mobile,alt:t.imageText,className:Pe["image-zoom--image--img"],quality:100,src:t.imageUrl})})};Yf.displayName="ImageZoom.ImageZoom";const Qf=({loaded:e=!1})=>r.jsx("div",{className:Pe["zoom-popup"],"data-loaded":e,children:r.jsxs("svg",{width:"38",height:"39",viewBox:"0 0 38 39",xmlns:"http://www.w3.org/2000/svg",children:[r.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"}),r.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"}),r.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"})]})});Qf.displayName="ImageZoom.ZoomPopup";const Zf=({images:e,ICONS:t,PRODUCT_IMAGE_DIMENSIONS:n,...o})=>{const[s,a]=x.useState(!1),[i,c]=x.useState(0),{containerRef:l,imgRef:u,scale:f}=Rc({defaultScale:1,maxScale:3});return r.jsxs("div",{...o,className:Pe["image-mobile"],"data-disable-carrousel-pan":f>1,children:[r.jsx(Qf,{loaded:s}),r.jsx(Xf,{images:e,setCurrent:c,setFirstImgLoaded:a,ICONS:t,PRODUCT_IMAGE_DIMENSIONS:n}),r.jsx("div",{className:Pe["image-zoom--mobile"],ref:l,children:r.jsx(Yf,{imgRef:u,image:e[i],PRODUCT_IMAGE_DIMENSIONS:n})})]})};Zf.displayName="ImageZoom.ImageMobile";const gv=({children:e,Z_INDEX_WAR:t,...n})=>r.jsx("div",{...n,className:Pe["image-zoom-wrapper-mobile"],style:{zIndex:t.pdp_image_zoom},children:e}),yv="_modal_1u87b_1",et={modal:yv,"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 _v({headerTitle:e,isMobile:t,ICONS:n}){return r.jsx(p.Modal.Header,{navigation:"top",className:et["modal-header"],children:r.jsxs(p.Modal.Controls,{navigation:"top",isMobile:t,children:[r.jsx("div",{className:et["modal-header__title"],children:r.jsx(p.Modal.Title,{navigation:"top",className:et["quick-shop__title"],title:e})}),r.jsx(p.Button,{className:et["modal-header__close-button"],"data-close":!0,iconNameStart:n.close,size:"small",variant:"tertiary"})]})})}const vv=({items:e,getLabel:t,PLP_SIZE_ORDER:n})=>Array.isArray(e)?[...e].sort((o,s)=>{const a=t(o).toUpperCase(),i=t(s).toUpperCase(),c=n.indexOf(a)-n.indexOf(i);return c!==0?c:a.localeCompare(i,"pt-BR")}):[],Jf=({PDP_INFO:e,PLP_SIZE_ORDER:t,ICONS:n,NEWSLETTER_CONFIGS:o,NOTIFY_INFO:s,PRODUCT_CARD_TEXTS:a,Z_INDEX_WAR:i})=>{const{sizes:c,productId:l,handleViewItemEvent:u}=$e(),f=x.useMemo(()=>c!=null&&c.length?vv({items:c,getLabel:j=>j.value,PLP_SIZE_ORDER:t}):[],[c]),{sizesContainerRef:h}=vc(),{isMobile:m}=ce(),d=Kt(),g=ll(),{setValue:y}=al(),{setValue:_}=_s(),b=x.useRef({}),[S,v]=x.useState(null);return r.jsxs("div",{ref:h,className:U.styles.sizes,children:[r.jsx("span",{className:U.styles["sections-title"],children:e.product.size_title}),r.jsx("div",{children:f.map(j=>(!j.available&&!b.current[j.value]&&(b.current[j.value]={disable:!j.available,size:j.value,skuID:j.sku}),r.jsxs(p.ToggleSize.Wrapper,{size:m?"medium":"large",title:j.value,outOfStock:!j.available,onClick:()=>{j.available||(v({skuID:j.sku,size:j.value,disable:!0}),_(!0)),d.sku!==j.sku&&(y({...d,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:d.sku===j.sku,children:[r.jsx(p.ToggleSize.DisabledAdornment,{title:"disabled-adornment-texture"}),r.jsx(p.ToggleSize.Text,{children:j==null?void 0:j.value})]},`sizes-${j.sku}-${j.value}`)))}),r.jsx(Ns,{open:g,setVisible:_,sku:S,setSku:v,skus:Object.values(b.current),ICONS:n,NEWSLETTER_CONFIGS:o,NOTIFY_INFO:s,PRODUCT_CARD_TEXTS:a,Z_INDEX_WAR:i})]})},Ft=({children:e,className:t,type:n})=>r.jsx("div",{className:p.helpers.classNameConcat(U.styles["pdp-main__info-subsection"],[U.styles[`subsection-${n}`],t]),children:e}),ep=({children:e,className:t})=>{const{structureRef:n,tipbarRef:o}=we(),s=x.useMemo(()=>{var c,l;const a=((c=n.current)==null?void 0:c.clientHeight)||0,i=((l=o.current)==null?void 0:l.clientHeight)||0;return a+i},[n,o]);return r.jsx("div",{className:p.helpers.classNameConcat(U.styles["pdp-main__info"],t),id:"pdpmaininfo",style:{top:s},children:e})},xv=({children:e,link:t,TOGGLE_STYLE_MODIFIER:n})=>{const{isMobile:o}=ce(),{router:s}=_e(),a=()=>{t&&s.push(t)},i=x.useRef(null);return r.jsx(p.ToggleStyle.Wrapper,{size:o?"medium":"small",style:{...n,border:`${i.current===t?"2":"1"}`,overflow:"hidden",padding:"0"},onClick:a,active:i.current===t,children:e})},tp=({productId:e,similars:t,TOGGLE_STYLE_MODIFIER:n})=>{const{thumbImage:o}=$e(),s=[{productId:e,slug:"",textureImage:(o==null?void 0:o.imageUrl)??"",textureAlt:(o==null?void 0:o.imageText)??""},...t];return r.jsx("div",{children:s.map((a,i)=>a.textureImage?r.jsxs(xv,{link:a.slug?a.slug:null,TOGGLE_STYLE_MODIFIER:n,children:[r.jsx(p.ToggleStyle.DisabledAdornment,{}),r.jsx(p.ToggleStyle.Texture,{children:r.jsx(Ie.Image,{alt:a.textureAlt,src:a.textureImage,height:34,width:34,style:{borderRadius:0,height:"100%"}})})]},`similars-item-${i}`):null)})},rp=({TEXTURE_IMAGE:e,TOGGLE_STYLE_MODIFIER:t})=>{const{productId:n}=$e(),[o,s]=x.useState([]);return x.useEffect(()=>{fetch("/api/catalog/product/similars",{method:"POST",body:JSON.stringify({productId:n,filterTexture:e})}).then(a=>a.json()).then(({data:a})=>{Array.isArray(a)&&a.length===0||s(a)}).catch(a=>{console.error(a)})},[n]),r.jsxs("div",{className:U.styles.similars,children:[r.jsx("span",{className:U.styles["sections-title"],children:"Cor"}),r.jsx(tp,{productId:n,similars:o,TOGGLE_STYLE_MODIFIER:t})]})};rp.displayName="PDP.Info.Similars";const bv=({callBackProductAdded:e,BUY_BUTTON_LABELS:t,ICONS:n,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:f})=>r.jsx(p.Modal.Body,{className:et["modal-product-body"],children:r.jsxs(ep,{className:et["pdp-main__info-modifier"],children:[r.jsxs(Ft,{type:"product-info",children:[r.jsx(Gr,{}),r.jsx(Vs,{})]}),r.jsx(Ft,{type:"similars",children:r.jsx(rp,{TEXTURE_IMAGE:l,TOGGLE_STYLE_MODIFIER:u})}),r.jsx(Ft,{type:"sizes",children:r.jsx(Jf,{ICONS:n,NEWSLETTER_CONFIGS:o,NOTIFY_INFO:s,PDP_INFO:a,PLP_SIZE_ORDER:i,PRODUCT_CARD_TEXTS:c,Z_INDEX_WAR:f})}),r.jsx(Ft,{type:"actions",children:r.jsx(Wf,{showWishlist:!1,callBack:e,addToCartBtnSize:{mobile:"medium",desktop:"large"},BUY_BUTTON_LABELS:t,ICONS:n,Z_INDEX_WAR:f})})]})});function jv({callBackProductAdded:e,QUICKSHOP:t,ICONS:n,...o}){const[s,a]=x.useState(!1),i=()=>a(c=>!c);return r.jsxs("div",{className:et["quick-shop"],children:[r.jsx(p.Button,{onClick:i,size:"x-large",className:et["shop-bag"],iconNameStart:n.bag,iconSize:"medium"}),r.jsxs(p.Modal.Root,{isOpen:s,setIsOpen:a,className:`${et.modal} ${et["quick-shop__modal"]}`,style:{position:"fixed",height:"100svh",width:"100%",top:0,zIndex:1e3,bottom:"unset",overflowY:"hidden"},variant:"sideRight",children:[r.jsx(_v,{headerTitle:t.title,ICONS:n}),r.jsx(bv,{callBackProductAdded:e,ICONS:n,...o})]})]})}const Cv=({image:e})=>r.jsx(Er,{src:U.resizingImg(e.imageUrl,{width:50,height:75})||"",alt:e.imageText,className:Pe.mainImage,layout:"fill",objectFit:"cover",priority:!0,quality:10,style:{position:"absolute",inset:0,filter:"blur(10px)"}}),Sv=({images:e,selectedImageIndex:t,PRODUCT_IMAGE_DIMENSIONS:n,...o})=>{const[s,a]=x.useState(!1),{nextimage:i}=_e();return r.jsx("div",{...o,className:Pe["main-image-container"],children:r.jsxs("div",{className:Pe["image-desktop"],children:[!s&&r.jsx(Cv,{image:e==null?void 0:e[t]}),r.jsx(i,{src:U.resizingImg(e==null?void 0:e[t].imageUrl,{...n.image_zoom.desktop})||"",alt:e==null?void 0:e[t].imageText,className:Pe.mainImage,layout:"fill",objectFit:"cover",priority:!0,quality:100,onLoad:()=>{a(!0)}})]})})},Pv=({images:e,onThumbnailClick:t,selectedImageIndex:n})=>{const{nextimage:o}=_e();return r.jsx("div",{className:Pe.thumbs,children:e.map((s,a)=>r.jsx("div",{role:"button",tabIndex:0,onClick:()=>t(a),onKeyDown:i=>{(i.key==="Enter"||i.key===" ")&&t(a)},className:a===n?Pe.selected:"",children:r.jsx(o,{src:s.imageUrl,alt:s.imageText,layout:"responsive",width:100,height:100,objectFit:"cover",priority:!1})},a))})},np=({images:e,initialSelectedImageIndex:t=0,setShowImageZoom:n,ICONS:o,PRODUCT_IMAGE_DIMENSIONS:s,Z_INDEX_WAR:a,...i})=>{const{isMobile:c}=ce(),[l,u]=x.useState(t),f=h=>{u(h)};return c?r.jsxs(gv,{Z_INDEX_WAR:a,children:[r.jsx(sc,{onClose:()=>n({show:!1,initialIndex:0}),ICONS:o}),r.jsx(Zf,{images:e,ICONS:o,PRODUCT_IMAGE_DIMENSIONS:s})]}):r.jsxs(hv,{Z_INDEX_WAR:a,children:[r.jsx(sc,{onClose:()=>n({show:!1,initialIndex:0}),ICONS:o}),r.jsx(Sv,{images:e,selectedImageIndex:l,onThumbnailClick:f,PRODUCT_IMAGE_DIMENSIONS:s},e[l].imageId??`${e[l].imageText}-${l}`),r.jsx(Pv,{images:e,selectedImageIndex:l,onThumbnailClick:f}),r.jsx(jv,{callBackProductAdded:()=>{n({initialIndex:0,show:!1})},ICONS:o,Z_INDEX_WAR:a,...i})]})};np.displayName="ImageZoom";const wv=({productImgs:e,PRODUCT_IMAGE_DIMENSIONS:t,...n})=>{const{video:o,productName:s}=$e(),[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 r.jsxs(r.Fragment,{children:[r.jsx(Kf,{images:e,video:o,handleZoom:c,productName:s,PRODUCT_IMAGE_DIMENSIONS:t}),a.show&&r.jsx(np,{images:e,initialSelectedImageIndex:a.initialIndex,setShowImageZoom:i,PRODUCT_IMAGE_DIMENSIONS:t,...n})]})},op=({TEXTURE_IMAGE:e,PRODUCT_IMAGE_DIMENSIONS:t,...n})=>{const{images:o}=$e(),s=x.useMemo(()=>{const a=o.filter(i=>!e.includes(i.imageLabel));return a.length>0?a:o},[]);return r.jsx(wv,{productImgs:s,TEXTURE_IMAGE:e,PRODUCT_IMAGE_DIMENSIONS:t,...n})};op.displayName="PDP.Gallery";const Ev=({className:e,hasIcons:t=!0,ICONS:n,PDP_INFO:o})=>{const{allSizesAvailable:s,productId:a}=$e(),{setValue:i}=_s(),{sendDataLayerEvent:c}=le();return r.jsx("div",{className:p.helpers.classNameConcat(U.styles.links,e),id:"pdp-container","data-product-id":a,children:r.jsxs("div",{className:U.styles["links-wrapper"],children:[!s&&r.jsx(p.Button,{adornment:t?{start:r.jsx(p.Icon,{name:n.product})}:{},size:"x-small",variant:"tertiary",onClick:()=>i(!0),underline:!0,children:o.links_and_stepper.size_out_of_stock}),r.jsx(p.Button,{adornment:t?{start:r.jsx(p.Icon,{name:n.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}),r.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})]})})},Rv=({children:e})=>r.jsx("div",{className:U.styles["pdp-main__info-main-content"],children:e}),Av=({head:e,className:t})=>r.jsx("thead",{className:t,children:r.jsx("tr",{children:e.map((n,o)=>r.jsx("th",{children:n},`head-title-${o}`))})}),Nv=({rows:e,className:t})=>r.jsx("tbody",{className:t,children:e.map((n,o)=>r.jsx("tr",{children:n.map(s=>typeof s=="string"&&s.includes("blocks")?JSON.parse(s).blocks.map(a=>`${a.text}
|
|
42
|
+
`):s).map((s,a)=>r.jsx("td",{children:s},`cell-content-${a}`))},`row-content-${o}`))}),Iv="_tableContainer_1yxy2_1",Tv={tableContainer:Iv},Ov=({children:e,className:t=""})=>r.jsx("table",{className:`${Tv.tableContainer} ${t}`,children:e}),$o={Head:Av,Rows:Nv,Root:Ov},kv=({title:e,text:t})=>r.jsxs("p",{className:U.styles.measurementRowsText,children:[r.jsx("h1",{className:U.styles.measurementRowsTitle,children:e}),t]}),Mv=({ICONS:e,SIZES:t,Z_INDEX_WAR:n})=>{const o=fl(),{setValue:s}=pl();return r.jsx(p.Modal.Root,{isMobile:!0,style:{zIndex:n.modal},setIsOpen:s,isOpen:o,className:U.styles.measurementModal,children:r.jsx(p.Modal.Body,{children:r.jsxs("div",{className:U.styles.measurementContainer,children:[r.jsx("h1",{className:U.styles.measurementTitle,children:t.title}),r.jsxs("div",{className:U.styles.measurementContent,children:[r.jsx("div",{className:U.styles.measurementImageContainer,children:r.jsx(Er,{width:264,height:402,alt:"",className:U.styles.measurementImage,src:t.bannerImage})}),r.jsxs($o.Root,{className:U.styles.measurementTable,children:[r.jsx($o.Head,{className:U.styles.measurementHead,head:t.head}),r.jsx($o.Rows,{className:U.styles.measurementRows,rows:t.rows.map((a,i)=>[r.jsx(kv,{title:t.descriptions[i].title,text:t.descriptions[i].text},i),...a])})]})]}),r.jsx(p.Button,{onClick:()=>s(!1),className:U.styles.measurementClose,variant:"tertiary",children:r.jsx(p.Icon,{name:e.close})})]})})},"minicart")},Lv=({children:e,className:t,...n})=>r.jsx("div",{className:p.helpers.classNameConcat(U.styles["pdp-main__gallery-wrapper"],t),...n,children:e}),Dv=({children:e,className:t,...n})=>r.jsx("div",{className:p.helpers.classNameConcat(U.styles.pdp,t),...n,children:e}),$v=({children:e,className:t,...n})=>r.jsx("div",{className:p.helpers.classNameConcat(U.styles["pdp-main"],t),...n,children:e}),zv=({children:e,className:t,...n})=>r.jsx("div",{className:p.helpers.classNameConcat(U.styles["pdp-main__info-secondary-content"],t),...n,children:e}),Fv={gallery:Lv,pdp:Dv,main:$v,secondary:zv},Bv=({className:e,...t})=>r.jsx(p.Utils.Divider,{...t,className:p.helpers.classNameConcat(U.styles.divider,e)}),qv=Object.freeze(Object.defineProperty({__proto__:null,AccessibilityInfo:nv,Actions:Wf,BreadCrumb:Gf,Credits:Vf,DescriptionsTabs:cv,Divider:Bv,Freight:lv,Gallery:op,Header:Gr,Links:Ev,MainContent:Rv,MainInfo:ep,Price:Vs,ProductMeasurements:Mv,SimilarsItems:tp,Sizes:Jf,SubSectionWrapper:Ft,containers:Fv},Symbol.toStringTag,{value:"Module"})),Hv=(e,t)=>{const[n,o]=mf({items:e}),[s,a]=t.split(":").map(Number);return isNaN(s)||isNaN(a)?[n,o]:[n<s?n:s,o>a?o:a]},Uv=()=>{var E;const{ICONS:e,PLP_FILTERS:t,PLP_FILTERS_COLORS:n,PLP_FILTERS_EMPTY:o,PLP_FILTERS_TITLE:s,PLP_SIZE_ORDER:a}=Le(),[i,c]=x.useState("10000:0"),{isMobile:l}=ce(),{sendDataLayerEvent:u}=le(),{openFilters:f,setOpenFilters:h}=ws(),{state:m}=ze(),{breadcrumb:d,deleteAllFacets:g,isLoading:y=!1,facets:_,onToggleFacet:b,selectedFacets:S}=au.contexts.searchFacets.hook(),v=x.useRef(""),j={isLast:!0,href:(E=m.term)!=null&&E.length?`/${m.term}`:"",name:m.term},P=U.filterNonRootFacets(S,m==null?void 0:m.base);return x.useEffect(()=>{const C=_.find(({key:R})=>R==="price");if(C){const[R,I]=Hv(C.values,i??"10000:0");c(`${R}:${I}`)}},[_,i,c]),x.useEffect(()=>{if(!P.length)return;const C=JSON.stringify(P);v.current!==C&&(v.current=C,u({functionKey:"filterEvent",data:{commonData:{selectedFacets:P}}}))},[P]),r.jsxs(Sr.teamComponents.Filter.Root,{CONSTANTS:{ICONS:e,PLP_FILTERS_TITLE:s,PLP_FILTERS:t},breadcrumb:d.length?d:[j],deleteAllFacets:g,filters:{facets:U.filterNonCategorySelected(_,m==null?void 0:m.base),selected:P},isMobile:l??!1,isLoading:y,isOpen:f,price:i,onToggleFacet:b,setIsOpen:h,target:document.body,children:[r.jsx(Sr.teamComponents.Filter.Selected,{ICONS:e,PLP_FILTERS:t,PLP_FILTERS_COLORS:n}),r.jsx(Sr.teamComponents.Filter.Content,{columns:2,CONSTANTS:{ICONS:e,PLP_FILTERS:t,PLP_FILTERS_COLORS:n,PLP_FILTERS_EMPTY:o,PLP_SIZE_ORDER:a}})]})},sp=()=>typeof document>"u"?null:r.jsx(Uv,{});sp.displayName="Filters";const Ks=({total:e=0})=>{const{SEARCH_TOTAL_PORTAL_ID:t}=Le();if(typeof window>"u")return null;const n=document.getElementById(t);return n?ls.createPortal(r.jsxs("span",{children:["[",e,"] produto",e>1?"s":""]}),n):null};Ks.displayName="PDC.Grid.NavigationTotal";const Wv=({productCount:e,PLP_GRID_SCROLL_BACK:t})=>{x.useEffect(()=>{var a;const o=new URLSearchParams(window.location.search).get("page");if(e){const[i,c]=((a=sessionStorage.getItem(t.key))==null?void 0:a.split("-"))??["0",null],l=sessionStorage.getItem(t.refer);i&&l==="true"&&(c===(o||"null")&&window.document.body.scrollTo({top:parseInt(i,10),behavior:"smooth"}),sessionStorage.setItem(t.refer,"false"))}const s=()=>{e>0&&window.document.body.scrollTop&&sessionStorage.setItem(t.key,`${window.document.body.scrollTop.toString()}-${o}`)};return window.document.body.addEventListener("scroll",s,{passive:!0}),()=>{window.document.body.removeEventListener("scroll",s)}},[e])},Gv=()=>{const{isMobile:e}=ce(),{isLoading:t,products:n,total:o}=Xt(),s=Le();return Wv({productCount:n.length,PLP_GRID_SCROLL_BACK:s.PLP_GRID_SCROLL_BACK}),r.jsxs(r.Fragment,{children:[r.jsx(Je.Products,{isMobile:e??!1,items:n,...s}),!n.length&&!t&&r.jsx(Je.Empty,{ICONS:s.ICONS,PLP_NOT_RESULT:s.PLP_NOT_RESULT}),r.jsx(Ks,{total:o})]})},ap=({infinite:e=!1})=>r.jsx("div",{className:Ve["pdc--grid"],children:r.jsx("div",{className:Ve["pdc--grid--content"],children:e?r.jsx(Je.InfiniteScroller,{}):r.jsx(Gv,{})})});ap.displayName="Grid";const bt=e=>({centro:"center",esquerda:"start",direita:"end"})[e],ip=({children:e,contentState:t,entityKey:n})=>{const{url:o}=t.getEntity(n).getData();return o?r.jsx(De,{href:o,children:e}):e},Vv=(e,t,n)=>{e.findEntityRanges(o=>{const s=o.getEntity();return s===null?!1:n.getEntity(s).getType()==="LINK"},t)},Rr=e=>{const t=new Ye.CompositeDecorator([{strategy:Vv,component:ip}]),n=Ye.convertFromRaw(e);return Ye.EditorState.createWithContent(n,t)},Kv=e=>Ye.convertFromRaw(e),Ar=Ye.DefaultDraftBlockRenderMap.set("unstyled",{element:"div",aliasedElements:["div"]}),ac="superior-direita",xr="dentro-inferior-centro",Xv="inferior-direita",zo="dentro-inferior-esquerda",cp=e=>({position:e===xr||e===zo?"absolute":"default",shouldRender:[ac,xr,zo].includes(e)?"top":"bottom",alignItems:[xr].includes(e)?"center":[ac,Xv].includes(e)?"flex-end":"flex-start",left:e===zo?"16px":e===xr?"45%":"unset"}),Yv=Object.freeze(Object.defineProperty({__proto__:null,CREATE_CONTENT:Rr,EXTENDED_BLOCK_RENDER_MAP:Ar,GET_CONTENT_STATE:Kv,controllersPositionsAdapter:cp},Symbol.toStringTag,{value:"Module"})),Qv=({expanded:e,content:t})=>r.jsxs("details",{open:e,children:[t.textStructureReduced?r.jsx("summary",{onClick:n=>n.preventDefault(),children:r.jsx(Ye.Editor,{editorKey:"draft-editor-1",blockRenderMap:Ar,editorState:t!=null&&t.textStructureReduced?Rr(JSON.parse(t.textStructureReduced)):Ye.EditorState.createEmpty(),onChange:()=>null,readOnly:!0})}):r.jsx(r.Fragment,{}),t.showTextStructureExpander&&t.textStructure?r.jsx(r.Fragment,{children:r.jsx(Ye.Editor,{editorKey:"draft-editor-1",blockRenderMap:Ar,editorState:t.textStructure?Rr(JSON.parse(t.textStructure)):Ye.EditorState.createEmpty(),onChange:()=>null,readOnly:!0})}):r.jsx(r.Fragment,{})]}),ts={"draftjs-text-modifier":"_draftjs-text-modifier_n4mv8_2"},Zv="_textContentWrapper_176ht_5",Jv="_textContentSection_176ht_13",rs={"link-modifier":"_link-modifier_176ht_1",textContentWrapper:Zv,textContentSection:Jv},lp=({data:e,ICONS:t})=>{var s;const[n,o]=x.useState(!1);return r.jsx(p.TextStructure.Root,{layoutProps:{textRow:{alignContent:bt(e.textStructureAlignment),alignItems:bt(e.textStructureAlignment)},columnWrapper:{alignContent:bt(e.textStructureAlignment),alignItems:bt(e.textStructureAlignment)}},adornment:{bottom:e.showTextStructureExpander&&e.textStructure?r.jsx(p.Button,{variant:"tertiary",adornment:{end:r.jsx(p.Icon,{name:n?`${t.arrow_up}`:`${t.arrow_down}`})},onClick:()=>o(a=>!a),size:"small",children:n?"Ver Menos":"Ver Mais"}):r.jsx(r.Fragment,{})},children:r.jsxs(p.Utils.Column,{className:rs.textContentWrapper,style:{alignItems:bt(e.textStructureAlignment)},children:[r.jsx(p.TextStructure.DivWrapper,{style:{textAlign:bt(e.textStructureAlignment)},mode:e.textStructureMode??"default",className:ts["draftjs-text-modifier"],children:e.textStructureReduced?r.jsx(Qv,{content:e,expanded:n}):r.jsx(r.Fragment,{})}),e.textStructureButtonLabel?r.jsx(Ge,{mode:e.textStructureMode??"default",href:e.textStructureButtonHref??"#",size:e.textStructureButtonSize,className:rs["link-modifier"],adornments:(s=e.textStructureButtonIcon)!=null&&s.length&&e.enableIcon?{end:r.jsx(p.Icon,{name:e.textStructureButtonIcon})}:void 0,children:e.textStructureButtonLabel}):r.jsx(r.Fragment,{})]})})},ex=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],ic=e=>({centro:"center",esquerda:"start",direita:"end"})[e],ns=({dateEnd:e,dateInit:t,TIME_ZONE:n="America/Sao_Paulo",...o})=>{const[s,a]=x.useState(ru(new Bo.TZDate(Date.now(),n),new Bo.TZDate(e,n))),[i,c]=x.useState(!1);x.useEffect(()=>{i||c(!0);const u=setInterval(()=>{if(s<=0){clearInterval(u);return}a(s-1e3)},1e3);return()=>{clearInterval(u)}},[s,a,i]);const l=zt(s,"days");return i&&s>0?r.jsxs(p.Timer.Root,{...o,children:[l?r.jsxs(r.Fragment,{children:[r.jsx(p.Timer.Digit,{label:"dias",value:l}),r.jsx(p.Timer.Separator,{})]}):null,r.jsx(p.Timer.Digit,{label:"horas",value:zt(s,"hours")}),r.jsx(p.Timer.Separator,{}),r.jsx(p.Timer.Digit,{label:"min",value:zt(s,"minutes")}),r.jsx(p.Timer.Separator,{}),r.jsx(p.Timer.Digit,{label:"segs",value:zt(s),suppressHydrationWarning:!0})]}):r.jsx(r.Fragment,{})},cc={"content-modifier":"_content-modifier_16y4u_5","banner-image-wrapper-modifier":"_banner-image-wrapper-modifier_16y4u_13"},lc=({data:e,videoUrl:t,priority:n,videoRef:o,ICONS:s,...a})=>{const{video:i,image:c,imageHref:l,imageOpacity:u,altImage:f,backgroundColor:h,position:m,contentAlignment:d,showTimer:g,contentOrder:y,timerMode:_,timerEnd:b,timerInit:S,textStructure:v,textStructureReduced:j}=e.banner,P=(l==null?void 0:l.trim())||(c==null?void 0:c.trim())||null,{nextimage:E}=_e();return r.jsxs(p.Banner.Container,{...a,children:[r.jsxs(p.Banner.ImageWrapper,{className:cc["banner-image-wrapper-modifier"],style:u?{background:h}:void 0,children:[i&&r.jsx(Ie.Video,{videoRef:o,src:t,autoPlay:n,loop:!0,playsInline:!0,muted:!0}),P&&!(i!=null&&i.length)&&r.jsx(E,{src:P,width:"1920",height:"1080",alt:f??c??"",...n?{priority:n}:{},style:u?{opacity:"0"}:void 0}),!c&&!(i!=null&&i.length)&&r.jsx("div",{style:{background:h}})]}),g||j||v?r.jsx(p.Banner.Slot,{...ex(m??"centro"),className:cc["content-modifier"],style:{textAlign:ic(d)},children:r.jsxs(p.Utils.Column,{gap:"16px",alignItems:ic(d),children:[g&&y==="timer-first"&&r.jsx(ns,{mode:_??"default",size:"small",dateEnd:b?new Date(b):new Date,dateInit:S?new Date(S):new Date}),r.jsx(lp,{data:e.banner,ICONS:s}),g&&y!=="timer-first"&&r.jsx(ns,{mode:_??"default",size:"small",dateEnd:b?new Date(b):new Date,dateInit:S?new Date(S):new Date})]})}):r.jsx(r.Fragment,{})]})},tr=({data:e,className:t,priority:n,creative:o,...s})=>{const{handleSelectPromotionEvent:a,currentLocalRef:i}=le(),{banner:{promotion_name:c},index:l,componentIndex:u}=e,f=typeof l=="number"?`:${l+1}`:"",h={creative_name:o,creative_slot:`${o}-${i.current}:${u+1}${f}`,promotion_id:e.banner.href,promotion_name:c},m=x.useRef(null),d=x.useMemo(()=>{var y;if((y=e.banner.video)!=null&&y.includes("player.vimeo")){const _=e.banner.video.split("?")[1],b=_==null?void 0:_.split("&"),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 y;(y=m.current)!=null&&y.paused&&m.current.play()};return r.jsx(zr,{eventData:{functionKey:"readyEvents",data:{event:"view_promotion",readyData:{ecommerce:{...h,index:l}}}},observerOptions:{delay:100,...d&&{threshold:.1}},...d&&{callBackWhenVisible:g},children:e.banner.href?r.jsx(De,{href:e.banner.href,onClick:()=>{a({updatePromotionRef:!0,promotion:h,index:l})},children:r.jsx(lc,{data:e,videoUrl:d,priority:n,videoRef:m,...s})}):r.jsx(lc,{data:e,videoUrl:d,priority:n,videoRef:m,...s})})},Xs=e=>r.jsx(tr,{...e}),up=({columns:e,count:t,gap:n})=>{var d;const{banners:o,pages:s,products:a}=st(),{isMobile:i}=ce(),{banners:c}=kr(),{ICONS:l,PRODUCT_CARD_IMAGE_ASPECT_RATIO:u}=Le(),f=((d=s[s.length-1])==null?void 0:d.products.length)??t,h=a[(s.length-1)*t+f-1],m=c.filter((g,y)=>o[y]<h);return Array.isArray(m)?m.map((g,y)=>r.jsx(tt.Banner,{columns:g.columns,gap:n,isMobile:i??!1,position_grid:o[y]+1,totalColumns:e,PRODUCT_CARD_IMAGE_ASPECT_RATIO:u,children:r.jsx(tr,{data:{banner:g,componentIndex:y},creative:"banner_grid",ICONS:l})},`${g.position_grid}-${y}`)):null};up.displayName="PDC.InfiniteScroller.Banners";const dp=e=>{var o;const{pages:t}=st(),n=t[t.length-1];return(n==null?void 0:n.page)!==((o=n==null?void 0:n.pagination)==null?void 0:o.total)&&!(n!=null&&n.loading)?r.jsx($r,{...e}):null};dp.displayName="PDC.InfiniteScroller.Loading";const fp=({page:e,...t})=>{const{updateParamPage:n}=st(),{element:o}=Ir({callback:()=>n(e),options:{threshold:0}});return r.jsx("div",{...t,id:`pdc-scroll-infinite-${e.page}`,className:Ve["pdc--infinite--loader"],"data-page":e.page,ref:o})};fp.displayName="PDC.Page.Anchor";const pp=({first:e,gap:t,isMobile:n=!1,item:o,index:s,last:a=!1,order:i,page:c,showVideo:l=!1})=>{const{load:u,handleNotify:f}=st(),{getAvailableProductTag:h}=nt(),{BUY_BUTTON_LABELS:m,MAIN_IMAGE:d,PLP_GRID_SCROLL_BACK:g,PLP_INFINITE_SCROLL:y,PLP_PRODUCT_SIMILAR_DELAY:_,PLP_SHOW_VIDEO_ON_PRODUCT_CARD:b,PRODUCT_CARD_IMAGE_ASPECT_RATIO:S,PRODUCT_CARD_TEXTS:v,PRODUCT_CARD_TOP_WISHLIST_TOGGLE:j,PRODUCT_IMAGE_DIMENSIONS:P,SECOND_IMAGE:E,StoreConfig_MainSellerId:C,TEXTURE_IMAGE:R,Z_INDEX_WAR:I,ICONS:w}=Le(),N=h(o==null?void 0:o.cluster.highlights);return r.jsx(tt.Card,{className:o.id==="skeleton"?Ve["pdc--infinite--card--disabled"]:"",gap:t,isMobile:n??!1,item:o,order:i,tag:N,index:s,setSkuSelected:f,showVideo:l,CONSTANTS:{BUY_BUTTON_LABELS:m,MAIN_IMAGE:d,PLP_GRID_SCROLL_BACK:g,PLP_INFINITE_SCROLL:y,PLP_PRODUCT_SIMILAR_DELAY:_,PLP_SHOW_VIDEO_ON_PRODUCT_CARD:b,PRODUCT_CARD_IMAGE_ASPECT_RATIO:S,PRODUCT_CARD_TEXTS:v,PRODUCT_CARD_TOP_WISHLIST_TOGGLE:j,PRODUCT_IMAGE_DIMENSIONS:P,SECOND_IMAGE:E,StoreConfig_MainSellerId:C,TEXTURE_IMAGE:R,Z_INDEX_WAR:I,ICONS:w},children:c&&u&&r.jsxs(r.Fragment,{children:[e&&r.jsx(Cr.Anchor,{page:c}),!c.loading&&r.jsx(Cr.Loader,{page:c}),a&&c.loading&&r.jsx(Cr.NextPage,{page:c})]})})};pp.displayName="PDC.Page.Card";const mp=({type:e="default",page:t,...n})=>{const{load:o,updatePage:s}=st(),{element:a}=Ir({callback:()=>s(t),onEnterViewportOnce:!0,options:{threshold:1}});return o===!0&&r.jsx("div",{...n,className:Ve[`pdc--infinite--loader${e==="page"?"--page":""}`],ref:a})};mp.displayName="PDC.Page.Loader";const hp=({page:e,...t})=>{var s;const{addNewPage:n}=st(),{element:o}=Ir({callback:()=>{n(e)},onEnterViewportOnce:!0,options:{threshold:[.5,1]}});return((s=e==null?void 0:e.pagination)==null?void 0:s.nextPage)===!0&&e.loading===!0?r.jsx("div",{...t,className:Ve["pdc--infinite--next-page--card"],"data-next-page":!0,ref:o}):null};hp.displayName="PDC.Page.NextPage";const Cr={Anchor:fp,Card:pp,Loader:mp,NextPage:hp},gp=({count:e,gap:t,page:n})=>{const{isMobile:o}=ce(),{columns:s,products:a}=st(),i=(n.page-1)*e,c=Ml(n.products,s);return Array.isArray(n.products)?n.products.map((l,u)=>r.jsx(Cr.Card,{first:u===0,last:u===n.products.length-1,gap:t,index:u,item:l.node,isMobile:o??!1,order:a[i+u]+1,page:u===0||u===n.products.length-1?n:void 0,showVideo:!!c.indexOf(u)},a[i+u]+1)):null};gp.displayName="PDC.Page";const tx=({pages:e,load:t,PLP_GRID_SCROLL_BACK:n})=>{const o=x.useRef(!1);x.useEffect(()=>{const s=e[e.length-1];if(t&&s&&!o.current){const a=sessionStorage.getItem(n.refer),i=sessionStorage.getItem(n.order),c=document.querySelector(a==="true"?`[data-order="${i}"]`:`#pdc-scroll-infinite-${s.page}`);c&&(o.current=!0,sessionStorage.setItem(n.refer,"false"),s.page>1&&c.scrollIntoView({behavior:"instant",block:"start"}))}if(!t&&o.current){o.current=!1;const a=document.querySelector("body > main");a&&a.scrollIntoView({behavior:"instant",block:"start"})}},[t,e])},rx=()=>{var l,u;const{count:e}=ze(),{columns:t,gap:n,load:o,pages:s,total:a}=st(),i=Le(),{PLP_GRID_SCROLL_BACK:c}=Le();return tx({pages:s,load:o,PLP_GRID_SCROLL_BACK:c}),r.jsxs(r.Fragment,{children:[o===!0&&((u=(l=s[0])==null?void 0:l.pagination)==null?void 0:u.count)===0&&r.jsx(Je.Empty,{ICONS:i.ICONS,PLP_NOT_RESULT:i.PLP_NOT_RESULT}),r.jsxs(tt.Root,{children:[Array.isArray(s)&&s.map((f,h)=>r.jsx(gp,{count:e,gap:n,page:f},h)),r.jsx(up,{columns:t,count:e,gap:n})]}),r.jsx(Ks,{total:a}),r.jsx(dp,{})]})},yp=()=>{const{banners:e}=kr();return r.jsx(Yl,{banners:e,children:r.jsx(rx,{})})};yp.displayName="PDC.InfiniteScroller";const _p=()=>{const{setOpenFilters:e}=ws(),{selectedFacets:t,onToggleFacet:n,onSort:o}=Pl(),{state:s}=ze(),{Z_INDEX_WAR:a}=Le(),i=U.filterNonRootFacets(t,s==null?void 0:s.base);return r.jsx(dt.Root,{onSort:o,setOpenFilters:e,style:{zIndex:a.plp_navigation},children:r.jsx(dt.Selected,{callback:n,selected:i})})};_p.displayName="Navigation";const os=({currentPage:e,callback:t,type:n,...o})=>r.jsx(p.Button,{...o,iconNameStart:`arrow-${n}`,onClick:()=>{typeof t=="function"&&t(n==="left"?"prev":"")},size:"large",variant:"tertiary"});os.displayName="Arrow";const ss=({active:e,prev:t,ellipses:n,page:o,selectedPage:s})=>r.jsxs(r.Fragment,{children:[n&&t&&r.jsx(p.Button,{size:"large",variant:"tertiary",children:"..."}),e&&r.jsx(p.Pagination.Item,{isActive:!1,index:o,variant:"tertiary",onClick:()=>{typeof s=="function"&&s(o)},children:o}),n&&!t&&r.jsx(p.Button,{size:"large",variant:"tertiary",children:"..."})]});ss.displayName="PageEllipses";const vp=({children:e,endPage:t,page:n,total:o,selectedPage:s,ITEMS_PER_SECTION:a})=>r.jsxs(r.Fragment,{children:[r.jsx(ss,{active:n>=a&&o>a,selectedPage:s,currentPage:n,prev:!1,ellipses:n>a&&o>a,page:1}),e,r.jsx(ss,{active:o-n>1&&o!==t,selectedPage:s,currentPage:n,prev:!0,ellipses:t<o-1,page:o})]});vp.displayName="Pagination.Layout";const nx=(e,t,n)=>{const o=new URLSearchParams(n);return o.set(e,t),o.toString()},ox=(e,t)=>{const n=[];for(let o=e;o<=t;o++)n.push(o);return n},sx=({currentPage:e,total:t,maxVisiblePages:n,SEARCH_PAGE_ITEM_THRESHOLD:o})=>{const s=t>=o?o:t,a=Math.max(1,e===s?s-n+1:e-Math.floor(n/2)),i=Math.min(s,a+n-1);return{startPage:a,endPage:i,totalPages:s}},xp=({currentPage:e,pages:t,searchParams:n,VARIANT_PAGINATION:o})=>{const{router:s,pathname:a}=_e();return Array.isArray(t)?t.map(i=>r.jsx(p.Pagination.Item,{isActive:e===i,index:i,variant:e===i?o.active:o.default,onClick:()=>s.push(`${a}?${nx("page",i.toString(),n)}`),children:i},i)):null};xp.displayName="Pages";const Ys=({query:e,type:t="default",searchParams:n,ITEMS_DEFAULT_SORT:o,ITEMS_PER_SECTION:s,ITEMS_PER_PAGE:a,SEARCH_PAGE_ITEM_THRESHOLD:i,VARIANT_PAGINATION:c,...l})=>{const{router:u,pathname:f}=_e(),{state:{page:h=1}}=ze(),{pagination:{total:m}}=Xt(),{endPage:d,totalPages:g,startPage:y}=sx({currentPage:h,total:m,maxVisiblePages:s,SEARCH_PAGE_ITEM_THRESHOLD:i}),_=S=>{const v=S.toString(),j=new URLSearchParams(n.toString());t==="default"&&j.set("page",v),t==="search"&&(j.set("query",e??""),j.set("count",a.toString()),j.set("page",v),o&&j.set("sort",o.replace("_",":")));const E=`${t==="search"?"/search":f}?${j.toString()}`;u.push(E)},b=S=>{_(S==="prev"?h-1:h+1)};return m?r.jsx("div",{...l,className:Ve["pdc--pagination"],children:r.jsx(p.Pagination.Wrapper,{adornment:{start:r.jsx(os,{callback:b,currentPage:h,disabled:h<2,type:"left"}),end:r.jsx(os,{callback:b,currentPage:h,disabled:h>=g,type:"right"})},children:r.jsx(vp,{endPage:d,page:h,selectedPage:_,total:m,ITEMS_PER_SECTION:s,children:r.jsx(xp,{currentPage:h,pages:ox(y,d),searchParams:n,VARIANT_PAGINATION:c})})})}):r.jsx(r.Fragment,{})};Ys.displayName="Pagination";const bp=({gap:e,isMobile:t})=>{const{count:n,state:o}=ze(),{banners:s}=kr(),{ICONS:a,PRODUCT_CARD_IMAGE_ASPECT_RATIO:i}=Le(),c=s.filter(l=>Dl(l.position_grid,o.page,n));return Array.isArray(c)?c.map((l,u)=>r.jsx(tt.Banner,{columns:l.columns,gap:e,isMobile:t,position_grid:l.position_grid,totalColumns:t?2:4,PRODUCT_CARD_IMAGE_ASPECT_RATIO:i,children:r.jsx(tr,{data:{banner:l,componentIndex:u},creative:"banner_grid",ICONS:a})},l.position_grid)):null};bp.displayName="PDC.Grid.Banners";const Qs=({isMobile:e=!1,items:t,BUY_BUTTON_LABELS:n,ICONS:o,MAIN_IMAGE:s,NEWSLETTER_CONFIGS:a,NOTIFY_INFO:i,PLP_GRID_SCROLL_BACK:c,PLP_INFINITE_SCROLL:l,PLP_PRODUCT_SIMILAR_DELAY:u,PLP_SHOW_VIDEO_ON_PRODUCT_CARD:f,PRODUCT_CARD_IMAGE_ASPECT_RATIO:h,PRODUCT_CARD_TEXTS:m,PRODUCT_CARD_TOP_WISHLIST_TOGGLE:d,PRODUCT_IMAGE_DIMENSIONS:g,SECOND_IMAGE:y,StoreConfig_MainSellerId:_,TEXTURE_IMAGE:b,Z_INDEX_WAR:S})=>{const{getAvailableProductTag:v}=nt(),{count:j,state:P}=ze(),[E,C]=x.useState(!1),[R,I]=x.useState(null),[w,N]=x.useState([]),T=x.useCallback((B,V)=>{const F=V?Tr([V]):null;N(B),I(F!=null&&F.length?F[0]:null),C(!0)},[]),z=e?8:16,O=(P.page-1)*j,W=tt.helpers.createGridPosAndVideo(t,[],e?2:4,P.page);return r.jsxs(r.Fragment,{children:[r.jsxs(tt.Root,{children:[Array.isArray(t)&&t.map((B,V)=>{var G,q;const F=v(B.node.cluster.highlights);return r.jsx(tt.Card,{gap:z,isMobile:e??!1,item:B.node,order:O+(((G=W[V])==null?void 0:G.position)??0),tag:F,index:V,setSkuSelected:T,showVideo:(q=W[V])==null?void 0:q.canPlayVideo,CONSTANTS:{BUY_BUTTON_LABELS:n,MAIN_IMAGE:s,PLP_GRID_SCROLL_BACK:c,PLP_INFINITE_SCROLL:l,PLP_PRODUCT_SIMILAR_DELAY:u,PLP_SHOW_VIDEO_ON_PRODUCT_CARD:f,PRODUCT_CARD_IMAGE_ASPECT_RATIO:h,PRODUCT_CARD_TEXTS:m,PRODUCT_CARD_TOP_WISHLIST_TOGGLE:d,PRODUCT_IMAGE_DIMENSIONS:g,SECOND_IMAGE:y,StoreConfig_MainSellerId:_,TEXTURE_IMAGE:b,Z_INDEX_WAR:S,ICONS:o}},B.node.sku)}),t.length>0&&r.jsx(bp,{gap:z,isMobile:e??!1})]}),r.jsx(Or,{open:E,sku:R,skus:w,setSku:I,setVisible:C,ICONS:o,NEWSLETTER_CONFIGS:a,NOTIFY_INFO:i,PRODUCT_CARD_TEXTS:m,Z_INDEX_WAR:S})]})};Qs.displayName="PDC.Products";const Je={Empty:Ds,Filters:sp,Grid:ap,InfiniteScroller:yp,Spinner:$r,Navigation:_p,Notification:Or,Pagination:Ys,Products:Qs},jp=({className:e,...t})=>{const{searchParams:n,ITEMS_DEFAULT_SORT:o,ITEMS_PER_SECTION:s,ITEMS_PER_PAGE:a,PLP_INFINITE_SCROLL:i,SEARCH_PAGE_ITEM_THRESHOLD:c,VARIANT_PAGINATION:l}=t;return r.jsx(Fm,{...t,children:r.jsxs("div",{className:p.helpers.classNameConcat(Ve.pdc,e),children:[r.jsxs(Sl,{forceUpdate:!0,children:[r.jsx(Je.Navigation,{}),r.jsx(Je.Filters,{})]}),i===!0?r.jsx(Je.Grid,{infinite:!0}):r.jsxs(Ps,{forceUpdate:!0,query:n.get("query")??void 0,children:[r.jsx(Je.Grid,{}),r.jsx(Je.Pagination,{searchParams:n,ITEMS_DEFAULT_SORT:o,ITEMS_PER_SECTION:s,ITEMS_PER_PAGE:a,SEARCH_PAGE_ITEM_THRESHOLD:c,VARIANT_PAGINATION:l})]})]})})};jp.displayName="Templates.PDC";const Cp=x.createContext({}),ax=({children:e,...t})=>r.jsx(Cp.Provider,{value:t,children:e}),Vr=()=>{const e=x.useContext(Cp);if(e===void 0)throw new Error("useSearchConstants must be used within a SearchConstantsProvider");return e},ix="_grid_e75z7_21",cx="_navigation_e75z7_44",lx="_spinner_e75z7_70",ux="_sort_e75z7_76",ut={"rearch-result--empty":"_rearch-result--empty_e75z7_1",grid:ix,"grid-header":"_grid-header_e75z7_37",navigation:cx,"result-disclaimer":"_result-disclaimer_e75z7_51",spinner:lx,sort:ux,"search-result":"_search-result_e75z7_91"},Sp=({term:e})=>{const{router:t}=_e(),{SEARCH_RESULT:n,ICONS:o}=Vr(),s=()=>{t.push(n.EMPTY.ALL_TERMS)};return r.jsxs("div",{className:ut["rearch-result--empty"],children:[r.jsxs(p.TextStructure.DivWrapper,{children:[r.jsx("div",{className:U.responsive["responsive-desktop-flex"],children:r.jsx("h2",{className:"typography-style-heading-sm",children:n.EMPTY.NOT_FOUND})}),r.jsx("div",{className:U.responsive["responsive-mobile-flex"],children:r.jsx("h2",{className:"typography-style-body-md",children:n.EMPTY.NOT_FOUND})}),r.jsxs("p",{children:[n.EMPTY.NOT_FOUND_P," ",`"${e}"`]})]}),r.jsx(p.Button,{onClick:()=>s(),variant:"tertiary",size:"medium",adornment:{end:r.jsx(p.Icon,{name:o.arrow_right,size:"medium"})},children:n.EMPTY.ALL_TERMS_LABEL})]})};Sp.displayName="RearchResult.Empty";const dx=e=>r.jsxs(r.Fragment,{children:[r.jsx("div",{className:U.responsive["responsive-desktop-flex"],children:r.jsx("h2",{className:"typography-style-heading-sm",children:e.SEARCH.SEARCHING})}),r.jsx("div",{className:U.responsive["responsive-mobile-flex"],children:r.jsx("h2",{className:"typography-style-body-md",children:e.SEARCH.SEARCHING})}),r.jsx(p.Spinner,{className:ut.spinner})]}),fx=(e,t,n)=>r.jsxs(r.Fragment,{children:[r.jsx("div",{className:U.responsive["responsive-desktop-flex"],children:r.jsx("h2",{className:"typography-style-heading-sm",children:t.SEARCH.SEARCHED})}),r.jsx("div",{className:U.responsive["responsive-mobile-flex"],children:r.jsx("h2",{className:"typography-style-body-md",children:t.SEARCH.SEARCHED})}),r.jsxs("p",{children:[t.SEARCH.SEARCHED_P_START," ",e," ",t.SEARCH.SEARCHED_P_END," ",`"${n}"`]})]}),Pp=({isLoading:e,quantity:t,term:n})=>{const{SEARCH_RESULT:o}=Vr();return r.jsx(p.TextStructure.DivWrapper,{children:e?dx(o):fx(t,o,n)})};Pp.displayName="Search.Loading";const px=({term:e})=>{const[t,n]=x.useState(!1),{router:o}=_e(),{searchParams:s}=ze(),{ITEMS_DEFAULT_SORT:a,ITEMS_PER_PAGE:i,ICONS:c}=Vr(),l=u=>{U.navigateToSearchPage(o,e,i,1,u??a)};return r.jsx("div",{className:ut.sort,children:r.jsx(qr,{handleSelectValue:u=>l(u??"release_desc"),sortListOpen:t,setSortListOpen:n,searchParams:s,ICONS:c})})},mx=({query:e})=>{const{isLoading:t,products:n,pagination:o}=Xt();return r.jsxs("div",{className:ut["grid-header"],children:[r.jsxs("div",{className:ut.navigation,children:[!t&&(n!=null&&n.length)?r.jsx(px,{term:e}):null,r.jsx(p.Utils.Divider,{})]}),!t&&(n!=null&&n.length)?r.jsx("div",{className:ut["result-disclaimer"],children:r.jsx(Pp,{term:e,isLoading:t,quantity:o.count})}):null]})},wp=({isMobile:e=!1,query:t})=>{const{isLoading:n,products:o,pagination:s}=Xt(),{searchParams:a}=ze(),i=Vr(),{sendDataLayerEvent:c}=le(),l=x.useRef({query:t,sended:!1}),u=x.useMemo(()=>!n&&o.length>0&&s.count>0,[n,o.length,s.count]);return x.useEffect(()=>{if(!n){if(l.current.query!==t){l.current.sended=!1,l.current.query=t;return}l.current.sended||(c({functionKey:"readyEvents",data:{event:"view_search_results",readyData:{search_term:t,search_found:(o==null?void 0:o.length)>0}}}),l.current.sended=!0)}},[t,o,n,c]),r.jsxs("div",{className:ut.grid,children:[u?r.jsx(mx,{query:t}):r.jsx(r.Fragment,{}),!n&&(o!=null&&o.length)?r.jsx(Qs,{isMobile:e??!1,items:o,...i}):r.jsx(r.Fragment,{}),(o==null?void 0:o.length)===0&&!n?r.jsx(Sp,{term:t}):null,u&&r.jsx(Ys,{searchParams:a,...i})]})};wp.displayName="SearchResultContent";const hx=({className:e})=>{const{state:t}=ze(),{isMobile:n}=ce();return r.jsx(Ps,{forceUpdate:!1,query:t.term??"",children:r.jsx("div",{className:p.helpers.classNameConcat(ut["search-result"],e),children:r.jsx(wp,{currentPage:t.page,isMobile:n??!1,query:t.term??""})})})},Ep=({className:e,searchParams:t,CONSTANTS:n})=>{const o=new URLSearchParams(t??""),s=String((o==null?void 0:o.get("query"))??""),a=Number((o==null?void 0:o.get("count"))??0),i=Number((o==null?void 0:o.get("page"))??0),c=String((o==null?void 0:o.get("sort"))??"");return r.jsx(ax,{...n,children:r.jsx(Ss,{sort:c,state:{sort:c,base:"",facets:[],term:s,page:i,count:a},count:a,searchParams:o,ITEMS_PER_PAGE:n.ITEMS_PER_PAGE,children:r.jsx(hx,{className:e})})})};Ep.displayName="Search";const gx=({page:e,data:t})=>{const{pathname:n}=_e(),o=x.useRef(null),{sendDataLayerEvent:s,currentLocalRef:a,itemListRef:i,promotionEventRef:c}=le();return x.useEffect(()=>{const l=zl("login_event")||"{}",u=JSON.parse(l);if(u.name||u.method){const f=new Date(0);s({functionKey:"readyEvents",data:{event:u.name,readyData:{method:u.method}}}),Rs("login_event","",{expires:f})}},[]),x.useEffect(()=>{if(o.current===n)return;o.current=n;let l={};switch(e){case"PDP":{const f=t,h={};if(!f){l={page_category:"pdp"};break}f.items.forEach(({itemId:m,sellers:d})=>h[m]=d[0].commertialOffer.AvailableQuantity),l={page_category:"pdp",seller_ids:f.items.map(({sellers:m})=>m[0].sellerId).join(),skuStocks:h,product_reference_id:f.productReference};break}case"PDC":{const{page_category:f,page_departament:h,id:m,name:d}=Sc(),g=d,y=m;l={page_category:"lista_produtos",...h&&{page_departament:h}},i.current={item_list_name:n==="/search"?"busca":g??void 0,item_list_id:n==="/search"?void 0:y??void 0},h&&s({functionKey:"readyEvents",data:{event:"view_category",readyData:{page_category:f,page_departament:h}}});break}default:l={page_category:e},c.current={},i.current={};break}const u={region:e,...l};a.current=e,s({functionKey:"readyEvents",data:{readyData:{vtex_version:"fast",...u}},timeout:0})},[n]),null};var as={exports:{}},br={exports:{}},uc;function yx(){return uc||(uc=1,function(e,t){Object.defineProperty(t,"__esModule",{value:!0});function n(l,u){for(var f in u)Object.defineProperty(l,f,{enumerable:!0,get:u[f]})}n(t,{DOMAttributeNames:function(){return 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:f}=l;const h=document.createElement(u);for(const g in f){if(!f.hasOwnProperty(g)||g==="children"||g==="dangerouslySetInnerHTML"||f[g]===void 0)continue;const y=o[g]||g.toLowerCase();u==="script"&&(y==="async"||y==="defer"||y==="noModule")?h[y]=!!f[g]:h.setAttribute(y,f[g])}const{children:m,dangerouslySetInnerHTML:d}=f;return d?h.innerHTML=d.__html||"":m&&(h.textContent=typeof m=="string"?m:Array.isArray(m)?m.join(""):""),h}function a(l,u){if(l instanceof HTMLElement&&u instanceof HTMLElement){const f=u.getAttribute("nonce");if(f&&!l.getAttribute("nonce")){const h=u.cloneNode(!0);return h.setAttribute("nonce",""),h.nonce=f,f===l.nonce&&l.isEqualNode(h)}}return l.isEqualNode(u)}let i;process.env.__NEXT_STRICT_NEXT_HEAD?i=(l,u)=>{const f=document.querySelector("head");if(!f)return;const h=f.querySelectorAll('meta[name="next-head"]')||[],m=[];if(l==="meta"){const y=f.querySelector("meta[charset]");y&&m.push(y)}for(let y=0;y<h.length;y++){var d;const b=h[y].nextSibling;(b==null||(d=b.tagName)==null?void 0:d.toLowerCase())===l&&m.push(b)}const g=u.map(s).filter(y=>{for(let _=0,b=m.length;_<b;_++){const S=m[_];if(a(S,y))return m.splice(_,1),!1}return!0});m.forEach(y=>{var _;const b=y.previousSibling;if(b&&b.getAttribute("name")==="next-head"){var S;(S=y.parentNode)==null||S.removeChild(b)}(_=y.parentNode)==null||_.removeChild(y)}),g.forEach(y=>{var _;const b=document.createElement("meta");b.name="next-head",b.content="1",((_=y.tagName)==null?void 0:_.toLowerCase())==="meta"&&y.getAttribute("charset")||f.appendChild(b),f.appendChild(y)})}:i=(l,u)=>{const f=document.getElementsByTagName("head")[0],h=f.querySelector("meta[name=next-head-count]");if(process.env.NODE_ENV!=="production"&&!h){console.error("Warning: next-head-count is missing. https://nextjs.org/docs/messages/next-head-count-missing");return}const m=Number(h.content),d=[];for(let _=0,b=h.previousElementSibling;_<m;_++,b=(b==null?void 0:b.previousElementSibling)||null){var g;(b==null||(g=b.tagName)==null?void 0:g.toLowerCase())===l&&d.push(b)}const y=u.map(s).filter(_=>{for(let b=0,S=d.length;b<S;b++){const v=d[b];if(a(v,_))return d.splice(b,1),!1}return!0});d.forEach(_=>{var b;return(b=_.parentNode)==null?void 0:b.removeChild(_)}),y.forEach(_=>f.insertBefore(_,h)),h.content=(m-d.length+y.length).toString()};function c(){return{mountedInstances:new Set,updateHead:l=>{const u={};l.forEach(m=>{if(m.type==="link"&&m.props["data-optimized-fonts"]){if(document.querySelector('style[data-href="'+m.props["data-href"]+'"]'))return;m.props.href=m.props["data-href"],m.props["data-href"]=void 0}const d=u[m.type]||[];d.push(m),u[m.type]=d});const f=u.title?u.title[0]:null;let h="";if(f){const{children:m}=f.props;h=typeof m=="string"?m:Array.isArray(m)?m.join(""):""}h!==document.title&&(document.title=h),["meta","base","link","style","script"].forEach(m=>{i(m,u[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)}(br,br.exports)),br.exports}(function(e,t){"use client";Object.defineProperty(t,"__esModule",{value:!0});function n(P,E){for(var C in E)Object.defineProperty(P,C,{enumerable:!0,get:E[C]})}n(t,{handleClientScriptLoad:function(){return y},initScriptLoader:function(){return S},default:function(){return j}});const o=ke,s=Nt,a=o._(ls),i=s._(x),c=If(),l=yx(),u=Tu(),f=new Map,h=new Set,m=["onLoad","onReady","dangerouslySetInnerHTML","children","onError","strategy","stylesheets"],d=P=>{if(a.default.preinit){P.forEach(E=>{a.default.preinit(E,{as:"style"})});return}if(typeof window<"u"){let E=document.head;P.forEach(C=>{let R=document.createElement("link");R.type="text/css",R.rel="stylesheet",R.href=C,E.appendChild(R)})}},g=P=>{const{src:E,id:C,onLoad:R=()=>{},onReady:I=null,dangerouslySetInnerHTML:w,children:N="",strategy:T="afterInteractive",onError:z,stylesheets:O}=P,W=C||E;if(W&&h.has(W))return;if(f.has(E)){h.add(W),f.get(E).then(R,z);return}const B=()=>{I&&I(),h.add(W)},V=document.createElement("script"),F=new Promise((G,q)=>{V.addEventListener("load",function(X){G(),R&&R.call(this,X),B()}),V.addEventListener("error",function(X){q(X)})}).catch(function(G){z&&z(G)});w?(V.innerHTML=w.__html||"",B()):N?(V.textContent=typeof N=="string"?N:Array.isArray(N)?N.join(""):"",B()):E&&(V.src=E,f.set(E,F));for(const[G,q]of Object.entries(P)){if(q===void 0||m.includes(G))continue;const X=l.DOMAttributeNames[G]||G.toLowerCase();V.setAttribute(X,q)}T==="worker"&&V.setAttribute("type","text/partytown"),V.setAttribute("data-nscript",T),O&&d(O),document.body.appendChild(V)};function y(P){const{strategy:E="afterInteractive"}=P;E==="lazyOnload"?window.addEventListener("load",()=>{(0,u.requestIdleCallback)(()=>g(P))}):g(P)}function _(P){document.readyState==="complete"?(0,u.requestIdleCallback)(()=>g(P)):window.addEventListener("load",()=>{(0,u.requestIdleCallback)(()=>g(P))})}function b(){[...document.querySelectorAll('[data-nscript="beforeInteractive"]'),...document.querySelectorAll('[data-nscript="beforePageRender"]')].forEach(E=>{const C=E.id||E.getAttribute("src");h.add(C)})}function S(P){P.forEach(y),b()}function v(P){const{id:E,src:C="",onLoad:R=()=>{},onReady:I=null,strategy:w="afterInteractive",onError:N,stylesheets:T,...z}=P,{updateScripts:O,scripts:W,getIsSsr:B,appDir:V,nonce:F}=(0,i.useContext)(c.HeadManagerContext),G=(0,i.useRef)(!1);(0,i.useEffect)(()=>{const X=E||C;G.current||(I&&X&&h.has(X)&&I(),G.current=!0)},[I,E,C]);const q=(0,i.useRef)(!1);if((0,i.useEffect)(()=>{q.current||(w==="afterInteractive"?g(P):w==="lazyOnload"&&_(P),q.current=!0)},[P,w]),(w==="beforeInteractive"||w==="worker")&&(O?(W[w]=(W[w]||[]).concat([{id:E,src:C,onLoad:R,onReady:I,onError:N,...z}]),O(W)):B&&B()?h.add(E||C):B&&!B()&&g(P)),V){if(T&&T.forEach(X=>{a.default.preinit(X,{as:"style"})}),w==="beforeInteractive")return C?(a.default.preload(C,z.integrity?{as:"script",integrity:z.integrity}:{as:"script"}),i.default.createElement("script",{nonce:F,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:F,dangerouslySetInnerHTML:{__html:"(self.__next_s=self.__next_s||[]).push("+JSON.stringify([0,{...z}])+")"}}));w==="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)})(as,as.exports);var _x=as.exports,vx=_x;const Rp=Mr(vx),xx=({children:e,ONE_TRUST:t})=>r.jsxs(r.Fragment,{children:[r.jsx(Rp,{src:"https://cdn.cookielaw.org/scripttemplates/otSDKStub.js",defer:!0,strategy:"afterInteractive","data-domain-script":t.siteId,type:"text/javascript"}),e]}),bx=Rd(()=>Promise.resolve(xx),{ssr:!1}),jx="_lgpd_1ymbk_85",Cx="_success_1ymbk_266",Sx="_error_1ymbk_330",je={"newsletter-root":"_newsletter-root_1ymbk_1","has-border-top":"_has-border-top_1ymbk_9","has-border-bottom":"_has-border-bottom_1ymbk_12","newsletter-container":"_newsletter-container_1ymbk_20","content-text":"_content-text_1ymbk_35","form-wrapper":"_form-wrapper_1ymbk_39","newsletter-container-banner":"_newsletter-container-banner_1ymbk_67",lgpd:jx,"textfield-structure-modifier":"_textfield-structure-modifier_1ymbk_202","input-wrapper-modifier":"_input-wrapper-modifier_1ymbk_207","submit-btn":"_submit-btn_1ymbk_218","loading-spinner":"_loading-spinner_1ymbk_229","terms-and-conditions-checkbox":"_terms-and-conditions-checkbox_1ymbk_235","terms-and-conditions-unchecked":"_terms-and-conditions-unchecked_1ymbk_248","terms-and-conditions-checked":"_terms-and-conditions-checked_1ymbk_262",success:Cx,"text-structure-modifier":"_text-structure-modifier_1ymbk_275","success-title":"_success-title_1ymbk_315","close-button":"_close-button_1ymbk_320",error:Sx,"newsletter-wrapper":"_newsletter-wrapper_1ymbk_350","banner-container":"_banner-container_1ymbk_363","newsletter-provider-wrapper":"_newsletter-provider-wrapper_1ymbk_376","newsletter-root-banner":"_newsletter-root-banner_1ymbk_389","banner-background":"_banner-background_1ymbk_410","newsletter-provider-wrapper-background":"_newsletter-provider-wrapper-background_1ymbk_419"},Ap=({invalid_message:e,master_data_field:t,placeholder:n,required:o=!1,CONSTANTS:s})=>{const{isMobile:a}=ce(),{inputsStatus:i,setInputsStatus:c,setFormStatus:l,variant:u}=Is();return r.jsx(p.TextField.Structure,{className:`${je["textfield-structure-modifier"]} ${u}`,input:r.jsx(p.TextField.Input,{mode:"simple",label:n,sizeVariant:a?s.NEWSLETTER_CONFIGS.interactionSizeMob:s.NEWSLETTER_CONFIGS.interactionSizeDesk,name:t,className:`${je["input-wrapper-modifier"]} ${u}`,feedback:i[t]==="required"?"error":i[t],onChange:()=>{i[t]!=="none"&&(c(f=>({...f,[t]:"none"})),l("idle"))},required:o}),supportText:i[t]==="error"||i[t]==="required"?r.jsx("div",{className:u==="horizontal"?je["support-text-modifier"]:"",children:r.jsx(p.TextField.SupportText,{text:i[t]==="error"?e??s.NEWSLETTER_CONFIGS.messages.invalid_generic:s.NEWSLETTER_CONFIGS.messages.required_field,feedback:"error"})}):null})};Ap.displayName="Newsletter.Input";const Np=({formStatus:e,fields:t,CONSTANTS:n})=>r.jsxs(r.Fragment,{children:[Array.isArray(t)&&t.map((o,s)=>r.jsx(Ap,{invalid_message:o.invalid_message,master_data_field:o.master_data_field,placeholder:o.placeholder,required:o.required,type:o.type,CONSTANTS:n},`nt-field-${o.master_data_field}-${s}`)),e==="error"&&r.jsx("div",{className:je.error,children:r.jsx("p",{children:n.NEWSLETTER_CONFIGS.form.status.error})})]});Np.displayName="Newsletter.FormFields";const Ip=({formStatus:e,CONSTANTS:t,...n})=>{const{isMobile:o}=ce();return r.jsxs(p.Button,{...n,className:je["submit-btn"],disabled:e==="success",size:o?"medium":"large",children:[r.jsx("span",{"data-loading":e==="loading","data-label":!0,children:t.NEWSLETTER_CONFIGS.submitLabel}),t.NEWSLETTER_CONFIGS.hasLoadingState&&e==="loading"&&r.jsx(p.Spinner,{className:je["loading-spinner"],size:"small"})]})};Ip.displayName="Newsletter.SubmitButton";const Tp=({checkboxRef:e,formStatus:t,setFormStatus:n,CONSTANTS:o})=>{const s=a=>{a.target.checked?(e.current=!0,t==="unchecked"&&n("idle")):e.current=!1};return r.jsxs(r.Fragment,{children:[r.jsx(p.Checkbox,{adornment:r.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",className:je["terms-and-conditions-checkbox"]}),t==="unchecked"&&r.jsx("div",{className:je["terms-and-conditions-unchecked"],children:r.jsx(p.TextStructure.Root,{adornment:{start:r.jsx(p.Icon,{name:o.ICONS.alert_circle,size:"small"})},children:r.jsx(p.TextStructure.DivWrapper,{children:r.jsx("p",{children:o.NEWSLETTER_CONFIGS.messages.terms_and_conditions_not_accepted})})})})]})};Tp.displayName="Newsletter.Terms";const Op=({title:e,description:t,CONSTANTS:n})=>r.jsx("div",{className:je.success,children:r.jsx(p.TextStructure.Root,{children:r.jsxs(p.TextStructure.DivWrapper,{className:je["text-structure-modifier"],children:[r.jsxs("div",{className:je["success-title"],children:[r.jsx(p.Icon,{name:n.ICONS.check_circle,size:"medium"}),r.jsx("h3",{children:e})]}),r.jsx("p",{children:t})]})})});Op.displayName="Newsletter.Success";const kp=({formPayloadOptionals:e,masterDataEntity:t,banner:n,termsDescription:o,lgpdLinkLable:s,lgpdLink:a,variant:i,CONSTANTS:c})=>{const{checkboxRef:l,fields:u,formStatus:f,hasTermsAndConditions:h,handleClickToSubmit:m,handleSubmit:d,setFormStatus:g}=Is();return r.jsx(r.Fragment,{children:f==="success"?r.jsx(Op,{description:c.NEWSLETTER_CONFIGS.messages.success_description,title:c.NEWSLETTER_CONFIGS.messages.success_title,CONSTANTS:c}):r.jsxs(r.Fragment,{children:[r.jsxs("form",{className:je["form-wrapper"],onSubmit:y=>d(y,e,t),children:[r.jsx(Np,{formStatus:f,fields:u,CONSTANTS:c}),h&&r.jsx(Tp,{checkboxRef:l,formStatus:f,setFormStatus:g,CONSTANTS:c}),r.jsx(Ip,{formStatus:f,type:"submit",variant:"primary",onClick:m,CONSTANTS:c})]}),(n||i==="vertical")&&r.jsxs("div",{className:je.lgpd,children:[o&&r.jsx("p",{children:o}),s&&r.jsx(Ge,{href:a,children:s})]})]})})};kp.displayName="Newsletter.Form";const Px=["horizontal","vertical"],Zs=({className:e,description:t,formPayloadOptionals:n,fields:o,masterDataEntity:s,masterDataEmailField:a,masterDataNameField:i,banner:c,altBanner:l,bannerBackground:u,termsDescription:f,lgpdLinkLable:h,lgpdLink:m,title:d,variant:g,borderTop:y,borderBottom:_,CONSTANTS:b,...S})=>{if(!a||!i)return null;const v=p.helpers.ValidateProp({fieldTypes:Px,property:g,fallback:"horizontal"});return r.jsxs("div",{className:c?u?je["banner-background"]:je["newsletter-wrapper"]:"",children:[c&&r.jsx(p.Banner.Container,{className:je["banner-container"],children:r.jsx(p.Banner.ImageWrapper,{children:r.jsx(Ie.Image,{src:c,alt:l,width:"1920",height:"500"})})}),r.jsx("div",{className:c?je["newsletter-provider-wrapper"+(u?"-background":"")]:"",children:r.jsx(su,{fields:o,masterDataEmailField:a,masterDataNameField:i,variant:v,CONSTANTS:b,children:r.jsx("div",{...S,className:p.helpers.classNameConcat(je["newsletter-root"+(c||v==="vertical"?"-banner":"")],[y&&je["has-border-top"],_&&je["has-border-bottom"],e].filter(Boolean)),"data-variant":v,children:r.jsxs("div",{className:c||v==="vertical"?je["newsletter-container-banner"]:je["newsletter-container"],children:[r.jsxs("div",{className:je["content-text"],children:[r.jsx("h2",{children:d}),r.jsx("p",{children:t}),!c&&v==="horizontal"&&r.jsxs("div",{className:je.lgpd,children:[r.jsx("p",{children:f}),h&&r.jsx(Ge,{target:"_blank",href:m,children:h})]})]}),r.jsx(kp,{formPayloadOptionals:n,masterDataEntity:s,CONSTANTS:b,banner:c,lgpdLink:m,lgpdLinkLable:h,termsDescription:f,variant:v})]})})})})]})};Zs.displayName="Newsletter";const Mp=({children:e,...t})=>r.jsx("div",{...t,children:e});Mp.displayName="CallToAction";const wx="_wrapper_aejhu_1",Ex="_body_aejhu_8",Nr={wrapper:wx,body:Ex,"wrapper-body":"_wrapper-body_aejhu_16","accordion-modifier":"_accordion-modifier_aejhu_32"},Rx=({children:e,className:t,...n})=>r.jsx("div",{...n,className:p.helpers.classNameConcat(Nr.wrapper,t),children:e}),Ax=({data:e,ICONS:t})=>{const[n,o]=x.useState(null),s=i=>{o(c=>c===i?null:i)},{router:a}=_e();return r.jsx("div",{className:p.helpers.classNameConcat(Nr.body),children:Array.isArray(e)&&(e==null?void 0:e.map((i,c)=>{var h;const l=n===i.id,u=i.buttonHref&&i.buttonHref!=="#",f=i.buttonHref&&i.type==="button"&&u?{onClick:()=>{var m;if((m=i.buttonHref)!=null&&m.startsWith("/")){a.push(i.buttonHref);return}window.open(i.buttonHref,"_blank")}}:{};return r.jsx("div",{children:i.type==="button"?r.jsxs(r.Fragment,{children:[r.jsx(p.Button,{variant:"tertiary",mode:i.buttonMode??"default",size:i.buttonSize??"medium",iconNameStart:t[i.buttonIcon]??i.buttonIcon,...f,style:{marginTop:16},children:i.buttonLabel}),r.jsx(p.Utils.Divider,{direction:"horizontal",size:"small",style:{height:16}})]}):r.jsxs(p.Accordion.Wrapper,{className:p.helpers.classNameConcat(Nr["accordion-modifier"]),children:[r.jsx(p.Accordion.Header,{id:`${c}-${i.title}`,closeIndicator:l?r.jsx(p.Icon,{name:t.arrow_up,size:"medium"}):void 0,openIndicator:l?void 0:r.jsx(p.Icon,{name:t.arrow_down,size:"medium"}),title:"accordion-header",onClick:()=>s(i.id),children:r.jsx(p.TextStructure.Root,{children:r.jsx(p.TextStructure.DivWrapper,{children:r.jsx("h2",{className:"typography-style-body-sm",children:i.title})})})}),r.jsx(p.Accordion.Body,{title:"accordion-body",children:r.jsx(p.TextStructure.Root,{children:l&&r.jsxs(p.TextStructure.DivWrapper,{children:[i.subtitle?r.jsx("h3",{className:"typography-style-body-md",children:i.subtitle}):r.jsx(r.Fragment,{}),r.jsx("p",{className:"typography-style-caption",children:i.description}),i.buttonLabel&&i.buttonHref?r.jsx(Ge,{href:i.buttonHref??"#",mode:i.buttonMode??"default",size:i.buttonSize??"medium",adornments:(h=i.buttonIcon)!=null&&h.length?{end:r.jsx(p.Icon,{name:t[i.buttonIcon]??i.buttonIcon})}:void 0,children:i.buttonLabel}):r.jsx(r.Fragment,{})]})})})]})},i.id)}))})},Nx=({className:e,data:t,ICONS:n,...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?r.jsxs(Rx,{...o,className:e,children:[r.jsx("div",{className:Nr["wrapper-body"],hidden:!s,children:s&&r.jsx(Ax,{data:i.content,ICONS:n})}),r.jsx(Mp,{children:r.jsx("div",{onClick:l,children:s?r.jsx(p.Button,{iconNameEnd:n.close,size:(i==null?void 0:i.helpButtonSize)??"x-large"}):r.jsx(p.Button,{iconNameStart:(i==null?void 0:i.iconLabel)??n.help,size:(i==null?void 0:i.helpButtonSize)??"x-large",children:i==null?void 0:i.label})})})]}):r.jsx(r.Fragment,{})},Ix="_formContainer_zwlly_1",Tx="_formFieldGroup_zwlly_6",Ox="_formFieldGroupName_zwlly_10",kx="_formFieldWrapper_zwlly_20",Mx="_formFieldInput_zwlly_30",Lx="_success_zwlly_73",Dx="_button_zwlly_110",$x="_error_zwlly_114",rt={formContainer:Ix,formFieldGroup:Tx,formFieldGroupName:Ox,formFieldWrapper:kx,formFieldInput:Mx,success:Lx,"text-structure-modifier":"_text-structure-modifier_zwlly_85",button:Dx,error:$x},zx=({group:e,children:t,className:n})=>r.jsx(r.Fragment,{children:r.jsxs("div",{className:p.helpers.classNameConcat(rt.formFieldGroup,n),children:[r.jsx("h1",{className:rt.formFieldGroupName,children:e.groupLabel}),t]},e.groupLabel)});async function Fx(e){const t=new TextEncoder().encode(e),n=await crypto.subtle.digest("SHA-1",t);return Array.from(new Uint8Array(n)).map(a=>a.toString(16).padStart(2,"0")).join("")}const Bx=async e=>await fetch("/api/dito-ingest",{method:"POST",body:JSON.stringify(e)}).then(n=>n.json()),Lp=x.createContext({});function Dp({children:e,groups:t,masterDataEntity:n,postFn:o,actionName:s="",originName:a="",POPUP_SUBMITTED_STORAGE:i}){const[c,l]=x.useState(!1),[u,f]=x.useState({}),[h,m]=x.useState([]),[d,g]=x.useState("idle"),[y,_]=x.useState(""),b=({target:{name:v,value:j}})=>{f({...u,[v]:j})},S=v=>{v.preventDefault(),o({body:{masterDataEntity:n,payload:u}}).then(async({Message:j})=>{if(j){const E=j.match(/'(.*?[^\\])'/g)||[];var P="-";for(const C of E){const R=C.substring(1,C.length-1),w=t.flatMap(N=>N.fields).find(({name:N})=>N===R);_(R),w&&(P=w.name)}return g("error"),m([P])}if(u.email){const E=await Fx(u.email||""),C=new Date().toISOString();Bx([{user_id:E,timestamp:C,type:"IDENTIFY",traits:{id:E,created_at:C,name:u.name,email:u.email,phone:u==null?void 0:u.phone}},{action:s,timestamp:C,type:"TRACK",user_id:E,context:{user_agent:navigator.userAgent},properties:{custom_data:{email:u.email,nome:u.name,origem:a,...u}}}])}return window.localStorage.setItem(i,"true"),f({}),l(!0),g("success"),m([])})};return r.jsx(Lp.Provider,{value:{formErrors:h,handleInputChange:b,submitForm:S,formData:u,status:d,fieldMessage:y,success:c,setSuccess:l},children:e})}function Kr(){return x.useContext(Lp)}const qx=({fields:e,className:t})=>{const{formData:n,handleInputChange:o,formErrors:s}=Kr();return r.jsx("div",{className:p.helpers.classNameConcat(rt.formFieldWrapper,t),children:e.map(({label:a,name:i,required:c,width:l="medium"})=>r.jsx(p.TextField.Input,{label:`${a}${c?"*":""}`,title:i,value:n[i]||"",name:i,sizeVariant:"large",onChange:o,required:c,feedback:s.includes(i)?"error":"none",className:rt.formFieldInput,"data-inputsize":l},i))})},Hx=({FORM_CONFIGS:e,ICONS:t})=>{const{router:n}=_e();return r.jsxs("div",{className:rt.success,children:[r.jsx(p.TextStructure.Root,{adornment:{start:r.jsx(p.Icon,{name:t.check_circle,size:"medium"})},children:r.jsx(p.TextStructure.DivWrapper,{className:rt["text-structure-modifier"],children:r.jsx("p",{children:e.successMessage})})}),r.jsx(p.Button,{size:"large",onClick:()=>n.push("/"),className:rt.button,children:e.returnButton})]})},Ux=({FORM_CONFIGS:e,ICONS:t})=>{const{fieldMessage:n}=Kr();return r.jsx("div",{className:rt.error,children:r.jsx(p.TextStructure.Root,{adornment:{start:r.jsx(p.Icon,{name:t.delete_circle,size:"small"})},children:r.jsx(p.TextStructure.DivWrapper,{className:rt["text-structure-modifier"],children:r.jsxs("p",{children:[e.errorMessage,n]})})})})},Wx=({children:e,className:t,ICONS:n,FORM_CONFIGS:o})=>{const{submitForm:s,status:a}=Kr();return r.jsx("form",{onSubmit:s,className:p.helpers.classNameConcat(rt.formContainer,t),children:a==="success"?r.jsx(Hx,{ICONS:n,FORM_CONFIGS:o}):r.jsxs(r.Fragment,{children:[e,a==="error"&&r.jsx(Ux,{ICONS:n,FORM_CONFIGS:o})]})})},Gx=e=>{const{children:t,className:n}=e;return r.jsx(Dp,{...e,children:r.jsx(Wx,{ICONS:e.ICONS,FORM_CONFIGS:e.FORM_CONFIGS,className:n,children:t})})},Et={Root:Gx,FieldGroup:zx,FieldWrapper:qx},Vx="_button_1e35m_39",ft={"banner-container":"_banner-container_1e35m_1","banner-background":"_banner-background_1e35m_6","form-root":"_form-root_1e35m_15",button:Vx,"form-fied-wrapper":"_form-fied-wrapper_1e35m_52"};function Kx({content:e,sections:t,FORM_CONFIGS:n,ICONS:o,postFn:s,POPUP_SUBMITTED_STORAGE:a}){var l;const{isMobile:i}=ce(),c=((l=t.find(({name:u})=>u==="Form"))==null?void 0:l.data)||{};return r.jsx("div",{children:r.jsxs(p.Banner.Container,{className:ft["banner-container"],children:[r.jsx(p.Banner.ImageWrapper,{children:r.jsx(Ie.Image,{className:ft["banner-background"],src:i?e.bannerMobile:e.bannerDesk,alt:e.altBanner,width:"1920",height:"500"})}),r.jsxs(Et.Root,{postFn:s,ICONS:o,FORM_CONFIGS:n,groups:c.groups||[],masterDataEntity:c.masterDataEntity||"",className:ft["form-root"],POPUP_SUBMITTED_STORAGE:a,children:[c.groups.map(u=>r.jsx(Et.FieldGroup,{group:u,children:r.jsx(Et.FieldWrapper,{fields:u.fields,className:ft["form-fied-wrapper"]})},u.groupLabel)),r.jsxs("div",{children:[r.jsx(p.TextStructure.DivWrapper,{children:r.jsx("p",{className:"typography-style-body-xs",children:e.requiredMessage})}),r.jsx("div",{className:ft["button-wrapper"],children:r.jsx("div",{className:ft["button-frame"],children:r.jsx(p.Button,{size:"large",type:"submit",className:ft.button,children:e.buttonLabel})})})]})]})]})})}const Sr={teamComponents:{AddToCart:Os,BackToTop:Oh,HelpButton:Nx,BuyPackage:ed,Filter:{...ot,helpers:hf},...rv,FreightCalculation:nf,Header:rf,Link:Ge,Media:Ie,PLPNavigation:dt,ProductCard:xe,ProductList:tt,ProductVariationList:Qe,Sort:qr,UserMenu:Fr,Newsletter:Zs,Form:Et},template:{minicart:Me,pdc:jp,pdc_composites:Je,pdp:qv,searchResult:Ep,wishList:Fu,LPCadastro:Kx},utils:{EventCollector:gx,ExternalScripts:bx,LinkOrNotLink:Yt,ObserverWrapper:zr,SnackBarComponent:wt,DraftJsLinkWrapper:ip}},Xx=(e,t)=>{const n=e.map(s=>`'${s.source}'`).join(`,
|
|
43
43
|
`);return`
|
|
44
44
|
import type { NextRequest } from 'next/server'
|
|
45
45
|
import { NextResponse } from 'next/server'
|