@soma-vertical-web/multi-lib 0.0.70 → 0.0.72
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/cms/ContentTypes/LPCadastro/LPCadastroContent.d.ts +4 -0
- package/cms/Sections/PopupModal/Component.d.ts +4 -0
- package/cms/Sections/PopupModal/Composite/FormSection.d.ts +4 -0
- package/cms/Sections/PopupModal/Composite/Success.d.ts +4 -0
- package/cms/index.d.ts +1 -0
- package/cms/server.d.ts +1 -0
- package/constants.d.ts +4 -1
- package/data/api/DitoIngest/sendDitoEvent.d.ts +3 -0
- package/data/api/search/autoCompleteSuggestions/index.d.ts +1 -1
- package/data/helpers/utils/stringToSHA1.d.ts +1 -0
- package/index.js +16 -16
- package/index.mjs +5587 -5190
- package/index2.js +1 -1
- package/index2.mjs +456 -437
- package/layout/index.d.ts +12 -0
- package/layout/team-component/Form/Composite/Content.d.ts +4 -0
- package/layout/team-component/Form/Composite/FieldGroup.d.ts +7 -0
- package/layout/team-component/Form/Composite/FieldWrapper.d.ts +7 -0
- package/layout/team-component/Form/Composite/FormError.d.ts +4 -0
- package/layout/team-component/Form/Composite/Success.d.ts +4 -0
- package/layout/team-component/Form/Composite/index.d.ts +4 -0
- package/layout/team-component/Form/Form.d.ts +11 -0
- package/layout/team-component/Form/FormContext.d.ts +5 -0
- package/layout/team-component/Form/index.d.ts +1 -0
- package/layout/template/LPCadastro/index.d.ts +3 -0
- package/package.json +1 -1
- package/style.css +1 -1
- package/types/cms/Sections/PopupModal/index.d.ts +26 -0
- package/types/data/api/dito-ingest/index.d.ts +65 -0
- package/types/layout/team-components/Form/index.d.ts +21 -3
- package/types/layout/templates/LPCadastro/index.d.ts +32 -0
package/index.js
CHANGED
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
"use strict";var qp=Object.defineProperty;var Hp=(e,t,r)=>t in e?qp(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r;var Ur=(e,t,r)=>Hp(e,typeof t!="symbol"?t+"":t,r);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const n=require("react/jsx-runtime"),x=require("react"),U=require("./index-CwBIv223.js"),Ye=require("idb-keyval"),mt=require("zustand"),ko=require("js-cookie"),m=require("@soma-vertical-web/core-components"),dt=require("axios"),Up=require("jose"),jt=require("@soma-vertical-web/foundations"),rs=require("react-dom"),Ke=require("draft-js"),Vs=require("@date-fns/tz"),lc=require("react-intersection-observer"),ns=x.createContext({}),Wp=({data:e,children:t})=>n.jsx(ns.Provider,{value:{tags:e==null?void 0:e.config},children:t}),rt=()=>{const{tags:e}=x.useContext(ns),t=x.useCallback(r=>{var a,c,l,u;const o=(c=(a=e==null?void 0:e.commercial)==null?void 0:a.items)==null?void 0:c.find(f=>{var h;return(h=r??[])==null?void 0:h.find(d=>d.id===f.key)}),s=(u=(l=e==null?void 0:e.institucional)==null?void 0:l.items)==null?void 0:u.find(f=>{var h;return(h=r??[])==null?void 0:h.find(d=>d.id===f.key)}),i=e==null?void 0:e.flagPdp;return{commercial:o,institucional:s,flagPdp:i}},[e]);return{tags:e,getAvailableProductTag:t}},uc=({gridScrollBack:e})=>{x.useEffect(()=>{typeof window<"u"&&(e!=null&&e.refer)&&sessionStorage.setItem(e==null?void 0:e.refer,"true")},[])},dc=x.createContext({}),Vp=({children:e,gridScrollBack:t})=>{const r=x.useRef(null);return uc({gridScrollBack:t}),n.jsx(dc.Provider,{value:{sizesContainerRef:r},children:e})},fc=()=>{const e=x.useContext(dc);if(e===void 0)throw new Error("useContext(PDPContext) must be used within a PDPProvider");return e},st=({event:e,data:t})=>{const r=(window==null?void 0:window.dataLayer)||[];t.ecommerce&&r.push({ecommerce:null}),r.push({...e&&{event:`custom_${e}`},...t})},Ce={configs:{PLP_FILTERS:[{key:"",label:"",eventLabel:"",order:0}],currency:"BRL",categoryOff:"bazar",storeUrl:"https://www.example.com",MAIN_IMAGE:"1",NAME_SPLIT_SYMBOL:"-",VENDOR_CODE:""},productEvents:(e,t)=>{const{event:r,commonData:o,customData:s,promotionInfo:i,itemList:a,outsideEcommerceData:c}=e,{availableSizes:l,sizes:u,price:f}=o,h={...r==="view_item"?{currency:Ce.configs.currency,value:f,grade_disponivel:l??(u?pc(u):"")}:{},...r==="add_to_wishlist"||r==="remove_from_wishlist"?{value:f,currency:Ce.configs.currency}:{}},d=er({data:o,customData:{...s,...a,...i},configs:Ce.configs});st({event:r,data:{...c,ecommerce:{...a,...h,items:[d]}}}),typeof t=="function"&&t(d,h)},productListEvent:e=>{const{commonData:{products:t},promotionInfo:r,itemList:o,outsideEcommerceData:s,customData:i}=e;if(t.length===0)return;const a=t.map(({node:c},l)=>er({data:{...c},customData:{...r,index:l,...i!=null&&i.item_list_name?{item_list_name:i==null?void 0:i.item_list_name}:o},configs:Ce.configs}));st({event:"view_item_list",data:{...s,ecommerce:{...i!=null&&i.item_list_name?{item_list_name:i==null?void 0:i.item_list_name}:o,items:a}}})},skuEvents:e=>{const{event:t,commonData:{products:r},customData:o,supportData:{selectedSkus:s,price:i},promotionInfo:a,itemList:c,outsideEcommerceData:l}=e;let u=0;const f=r.map(h=>{var y,_,b,S,v,j,P,E,C;const d=s==null?void 0:s.find(R=>(h.productId??h.id)===R.productId);let p={...a,...c};if(d){const R=hc(),T=gc(R,d);T&&(p={...p,...T}),t==="add_to_cart"&&(a||c)&&Lo({persistedData:R,type:"add",sku:(d==null?void 0:d.id)??(d==null?void 0:d.sku),newData:{promotionInfo:a,itemList:c}}),t==="remove_from_cart"&&Lo({persistedData:R,type:"remove",sku:(d==null?void 0:d.id)??(d==null?void 0:d.sku)})}u+=h.price??((b=(_=(y=d==null?void 0:d.offers)==null?void 0:y.offers)==null?void 0:_[0])==null?void 0:b.price)??0;const g=(d==null?void 0:d.size)??U.getColorAndSizeFromSkuName((d==null?void 0:d.skuName)??(d==null?void 0:d.name)??((S=h.itemOffered)==null?void 0:S.skuName),Ce.configs.NAME_SPLIT_SYMBOL).size;return er({data:h,customData:{...o,...p??{...a,...c},item_sku:(d==null?void 0:d.id)??(d==null?void 0:d.sku)??((v=h.itemOffered)==null?void 0:v.sku),quantity:(o==null?void 0:o.quantity)??h.quantity??1,item_variant2:g,seller_id:(d==null?void 0:d.sellerId)??(d==null?void 0:d.seller)??((C=(E=(P=(j=d==null?void 0:d.offers)==null?void 0:j.offers)==null?void 0:P[0])==null?void 0:E.seller)==null?void 0:C.identifier)??h.seller},configs:Ce.configs})});st({event:t,data:{...l,ecommerce:{value:i??u,currency:Ce.configs.currency,items:f}}})},filterEvent:e=>{var a;const{commonData:t,customData:r,outsideEcommerceData:o}=e,s={},i={};Array.isArray(t==null?void 0:t.selectedFacets)&&((a=t==null?void 0:t.selectedFacets)!=null&&a.length)&&((t==null?void 0:t.selectedFacets).forEach(({key:c,value:l})=>{var h;const u=((h=Ce.configs.PLP_FILTERS.find(d=>d.key===c))==null?void 0:h.eventLabel)??c,f=(s==null?void 0:s[u])||[];u==="price_range"&&l.replace(":","-"),s[u]=[...f,l]}),Object.keys(s).forEach(c=>i[c]=s[c].join(", "))),st({event:"filter",data:{...o,...i,...r}})},viewCartEvent:e=>{var f,h,d,p,g,y,_,b,S,v;const{commonData:t,outsideEcommerceData:r}=e,{cartStore:o}=t;if(!o)return;const s=window.localStorage.getItem("persistedCartEventsData"),i=s?JSON.parse(s):{},a=o.items.map(j=>{const{promotionInfo:P,itemList:E}=i[j.id]??{};return er({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:Ce.configs})}),c=(((f=o.totalizers.find(j=>j.name==="Total dos Itens"))==null?void 0:f.value)??0)/100,l=(((h=o.totalizers.find(j=>j.name==="Total dos Descontos"))==null?void 0:h.value)??0)/100,u=((d=o.marketingData)==null?void 0:d.utmiCampaign)===Ce.configs.VENDOR_CODE?(p=o.marketingData)==null?void 0:p.utmCampaign:(y=String((g=o.openTextField)==null?void 0:g.value))==null?void 0:y.split(" - ")[0];st({event:"view_cart",data:{...r,ecommerce:{currency:Ce.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:a}}})},readyEvents:e=>{const{event:t,readyData:r}=e;st({event:t,data:{...r}})}},pc=e=>e.reduce((t,r)=>(r.available&&t.push(r.value),t),[]).toString(),Gp=e=>{const t=e.length;return{...e&&e.length>0?{item_category:e[0].includes(Ce.configs.categoryOff)?"Bazar":"Coleção",...e[1]?{item_category2:e[1]}:{},...t>2?{item_category3:e[t-1]}:{}}:{}}},er=({data:e,customData:t,configs:r})=>({...Kp(e,r==null?void 0:r.MAIN_IMAGE),...Xp(e),...Yp(e),...Qp(e),...t}),mc=()=>{var e,t;return document?((t=(e=window.document.head.querySelector('meta[name="category"]'))==null?void 0:e.getAttribute("content"))==null?void 0:t.split("_"))??[]:[]},hc=()=>{const e=window.localStorage.getItem("persistedCartEventsData");return e?JSON.parse(e):null},gc=(e,t)=>e==null?void 0:e[t],Lo=({persistedData:e,type:t,sku:r,newData:o})=>{if(!e&&t==="add"){window.localStorage.setItem("persistedCartEventsData",JSON.stringify({[r]:o}));return}if(e&&t==="add"){window.localStorage.setItem("persistedCartEventsData",JSON.stringify({...e,[r]:o}));return}e&&t==="remove"&&(delete e[r],window.localStorage.setItem("persistedCartEventsData",JSON.stringify(e)))},Kp=(e,t="1")=>{var i,a,c,l,u,f,h,d,p,g,y;const r=e.productReference??e.gtin??e.productRefId,o=e.image??((a=(i=e.items)==null?void 0:i[0])==null?void 0:a.images)??((c=e.itemOffered)==null?void 0:c.image),s=o==null?void 0:o.find(_=>_.alternateName===t||_.imageLabel===t||_.keywords===t);return{item_id:e.productId??((l=e.isVariantOf)==null?void 0:l.productGroupID)??((u=e.isVariationOf)==null?void 0:u.productGroupID)??((h=(f=e.itemOffered)==null?void 0:f.isVariationOf)==null?void 0:h.productGroupID),item_ref:/_\d$/.test(r)?r.slice(0,-2):r,item_name:e.productTitle??e.productName??e.name??U.splitNameAndSizeFromFullName((d=e.itemOffered)==null?void 0:d.name,Ce.configs.NAME_SPLIT_SYMBOL).name,item_brand:((p=e.brand)==null?void 0:p.brandName)??((g=e.brand)==null?void 0:g.name)??e.brand??((y=e.itemOffered)==null?void 0:y.brand.name),item_url:`${Ce.configs.storeUrl}${e.linkText}/p`,item_image:(s==null?void 0:s.url)??(s==null?void 0:s.imageUrl)}},Gs=e=>Array.isArray(e)?e.reduce((t,r)=>(r.length>t.length&&(t=r),t),""):e,Xp=e=>{var u,f;const{categories:t,categoriesIds:r}=e,o=t??((u=e.itemOffered)==null?void 0:u.categories),s=r??((f=e.itemOffered)==null?void 0:f.categoriesIds),i=Gs(o),a=Gs(s),c=i.slice(1,-1).split("/"),l=a.slice(1,-1).split("/");return{item_category:c[0].toLowerCase().includes(Ce.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]}}},Yp=e=>{var s,i,a,c,l,u;const t=((s=e.itemOffered)==null?void 0:s.skuName)??((c=(a=(i=e.isVariantOf)==null?void 0:i.hasVariant)==null?void 0:a[0])==null?void 0:c.name)??((u=(l=e.items)==null?void 0:l[0])==null?void 0:u.name),{color:r,size:o}=U.getColorAndSizeFromSkuName(t,Ce.configs.NAME_SPLIT_SYMBOL);return{item_variant:r,...e.itemOffered&&{item_variant2:o}}},Qp=e=>{var l,u;const{price:t,listPrice:r,installments:o}=e,s=t??((l=e.offers)==null?void 0:l.lowPrice)??0,i=r??((u=e.offers)==null?void 0:u.highPrice)??0,a=i?i-s:0,c=a%1===0?a:Number(a.toFixed(2));return{...t&&{price:s??i},...i&&{list_price:i,discount:c},...o&&{installments:o==null?void 0:o.count,installment_value:o==null?void 0:o.value},item_currency:Ce.configs.currency}},yc=()=>{const[e,t]=mc(),[r,o]=e.split("-"),s=r.includes("shop")||r.includes("sale")?r:"";return{page_category:s&&o?o:"",page_departament:s,id:t,name:e}},Zp=Object.freeze(Object.defineProperty({__proto__:null,eventsFunctions:Ce,findDataInPersistedData:gc,getAvailablesSizes:pc,getCategories:Gp,getPageCategoryAndDepartmentFromSlug:yc,getPersistedData:hc,getProductListInfoFromHead:mc,pushDatalayer:st,updatePersistedData:Lo},Symbol.toStringTag,{value:"Module"})),_c=x.createContext({}),Jp=({children:e,evtFunctionsConfigs:t})=>{const r=x.useRef({}),o=x.useRef(null),s=x.useRef(null),i=x.useRef({}),a=x.useRef({trigger:!1,index:0}),c=({functionKey:f,data:h,callBack:d,timeout:p=100})=>{window.dataLayer||(window.dataLayer=[]),Ce.configs=t;try{typeof Ce[f]=="function"&&setTimeout(()=>{var g;h.promotionInfo=r.current,(g=s.current)!=null&&g.item_list_name&&(h.itemList=s.current),Ce[f](h,d)},p)}catch(g){st({event:"error_event",data:{error_message:(g==null?void 0:g.message)??g}})}},l=({content:f})=>{c({functionKey:"readyEvents",data:{event:"select_content",readyData:{content_type:f.replace("::",":")}}})},u=({updatePromotionRef:f,promotion:h,index:d})=>{f&&(r.current={...h}),c({functionKey:"readyEvents",data:{event:"select_promotion",readyData:{ecommerce:{...h,...d!==void 0&&{index:d}}}}})};return n.jsx(_c.Provider,{value:{sendDataLayerEvent:c,triggerSelectItemEventRef:a,promotionEventRef:r,currentLocalRef:o,itemListRef:s,cartProductsFullDataRef:i,handleSelectContent:l,handleSelectPromotionEvent:u},children:e})},ce=()=>x.useContext(_c),vc=x.createContext({}),em=({children:e,productData:t,isKit:r,PDP_INFO:o,NAME_SPLIT_SYMBOL:s,TEXTURE_IMAGE:i})=>{var k,W;const{sendDataLayerEvent:a,triggerSelectItemEventRef:c}=ce(),{productId:l,productName:u,items:f,items:[{images:h,Videos:d}],description:p,["Composição"]:g="",productReference:y,categories:[_]}=t,{getAvailableProductTag:b}=rt(),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}),T=U.getThumbImage({images:h,TEXTURE_IMAGE:i}),w=[{label:`${o.product.description}`,value:"description",content:p},{label:`${o.product.materiais}`,value:"composition",content:g}],I=((W=U.getColorAndSizeFromSkuName((k=t.items)==null?void 0:k[0].name,s))==null?void 0:W.color)??t["Cores Filtráveis"][0]??"",N=()=>({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:B})=>{const{commonData:V,customData:G}=N();a({functionKey:"productEvents",data:{event:"view_item",commonData:V,customData:{...G,...q&&{item_sku:q},...B&&{item_variant2:B}}}})};return x.useEffect(()=>{if(c.current.trigger){const{commonData:q,customData:B}=N();a({functionKey:"productEvents",data:{event:"select_item",commonData:q,customData:{...B,index:c.current.index}}}),c.current.trigger=!1}z({})},[]),n.jsx(vc.Provider,{value:{productData:t,productId:l,productName:u,productReference:y,tag:S,items:f,sizes:C,allSizesAvailable:R,installments:j,price:P,listPrice:E,thumbImage:T,images:h,video:d[0],descriptionContent:w,breadcrumbList:v,isKit:r,colorName:I,handleViewItemEvent:z},children:e})},De=()=>{const e=x.useContext(vc);if(e===void 0)throw new Error("useContext(PDPDataContext) must be used within a PDPDataProvider");return e},tm=()=>{const[e,t]=x.useState(null);return[e,async o=>{if(!(navigator!=null&&navigator.clipboard))return console.warn("Clipboard not supported"),!1;try{return await navigator.clipboard.writeText(o),t(o),!0}catch(s){return console.warn("Copy failed",s),t(null),!1}}]},xc=()=>{x.useEffect(()=>{const e=t=>{t.preventDefault()};return document.addEventListener("gesturestart",e),document.addEventListener("gesturechange",e),document.addEventListener("dblclick",e),document.addEventListener("wheel",t=>{t.ctrlKey&&e(t)}),()=>{document.removeEventListener("gesturestart",e),document.removeEventListener("gesturechange",e),document.removeEventListener("dblclick",e),document.removeEventListener("wheel",e)}},[])},rm=typeof window>"u",nm=(e,t)=>{const[r,o]=x.useState(()=>{if(rm)return null;const i=localStorage.getItem(e);return i===null?t:JSON.parse(i||"{}")});return x.useEffect(()=>{const i=a=>{a.storageArea===localStorage&&a.key===e&&o(JSON.parse(a.newValue))};return window.addEventListener("storage",i),()=>{window.removeEventListener("storage",i)}},[e,t]),[r,i=>{o(a=>{const c=typeof i=="function"?i(a):i;return localStorage.setItem(e,JSON.stringify(c)),c})}]};function os(e,t,r){const[o,s]=x.useState(!1),{threshold:i}=r||{};return x.useEffect(()=>{if(!e.current)return()=>null;let a=null;const c=new IntersectionObserver(([l])=>{if(r!=null&&r.delay){a&&clearTimeout(a),a=setTimeout(()=>{s(l.isIntersecting),t&&l.isIntersecting&&c.unobserve(e.current)},r.delay);return}s(l.isIntersecting),t&&l.isIntersecting&&c.unobserve(e.current)},{threshold:i||1});return c.observe(e.current),()=>{c.disconnect()}},[e]),o}const wr=({callback:e,onEnterViewportOnce:t,options:r})=>{const o=x.useRef(null);return x.useEffect(()=>{const s=o.current;if(!s)return;const i=new IntersectionObserver(([a])=>{a.isIntersecting&&typeof e=="function"&&(e(),t&&(i.unobserve(s),i.disconnect()))},r);return i.observe(s),()=>{t&&i.unobserve(s),i.disconnect()}},[e,t,r]),{element:o}},bc=({defaultScale:e=1,maxScale:t=3})=>{const r=x.useRef(null),o=x.useRef(null),[s,i]=x.useState(e),a=x.useRef(0),c=x.useRef({x:0,y:0}),l=x.useRef({x:0,y:0}),u=()=>{if(!o.current||!r.current)return{minX:0,maxX:0,minY:0,maxY:0};const p=r.current.getBoundingClientRect(),g=o.current.children[0].getBoundingClientRect(),y=g.width,_=g.height,b=Math.min(0,(p.width-y)/2),S=Math.max(0,(y-p.width)/2),v=Math.min(0,(p.height-_)/2),j=Math.max(0,(_-p.height)/2);return{minX:b,maxX:S,minY:v,maxY:j}},f=(p,g,y)=>{if(o.current){const _=o.current.children[0];_&&requestAnimationFrame(()=>{_.style.transform=`translate(calc(-50% + ${p}px), calc(-50% + ${g}px)) scale(${y})`})}},h=x.useCallback(p=>{const{minX:g,maxX:y,minY:_,maxY:b}=u(),{x:S,y:v}=l.current,j=Math.max(g,Math.min(y,S)),P=Math.max(_,Math.min(b,v));if(p.touches.length>1){const E=p.touches[0],C=p.touches[1],R=E.pageX-C.pageX,T=E.pageY-C.pageY;a.current=Math.sqrt(R*R+T*T),c.current={x:(E.pageX+C.pageX)/2,y:(E.pageY+C.pageY)/2}}else p.touches.length===1&&(c.current={x:p.touches[0].pageX-j,y:p.touches[0].pageY-P})},[s,l]),d=x.useCallback(p=>{if(!o.current||!r.current)return;const{minX:g,maxX:y,minY:_,maxY:b}=u();if(p.touches.length>1){p.preventDefault();const S=p.touches[0],v=p.touches[1],j=S.pageX-v.pageX,P=S.pageY-v.pageY,E=Math.sqrt(j*j+P*P);if(!a.current){a.current=E;return}const C=E/a.current,R=Math.max(1,Math.min(t,s*C));if(s===R)return;i(R);const T=(S.pageX+v.pageX)/2,w=(S.pageY+v.pageY)/2;let I=T-c.current.x,N=w-c.current.y;I=Math.max(g,Math.min(y,I)),N=Math.max(_,Math.min(b,N)),l.current={x:I,y:N},a.current=E,f(I,N,R)}else if(p.touches.length===1){const S=p.touches[0].pageX,v=p.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",d,{passive:!1}),()=>{document.removeEventListener("touchstart",h),document.removeEventListener("touchmove",d)}),[d,h]),{containerRef:r,imgRef:o,scale:s}},om={attachment:"ATTACHMENT",specification:"SPECIFICATION",attribute:"ATTRIBUTE"},qe=Promise.resolve(!1),Mo={id:"",isOpen:!1,items:[],loading:!1,marketingData:null,messages:[],openTextField:{},paymentData:null,shippingData:null,totalizers:[],itemMetadata:[],recentlyAddedProducts:[],addCoupon:()=>qe,addItem:()=>qe,addSellerCode:()=>qe,addMarketingData:()=>qe,emptyCart:()=>{},removeItem:()=>qe,setIsOpen:()=>{},shipping:()=>qe,shippingUpdate:()=>qe,toggleServiceToProduct:()=>qe,updateItemQuantity:()=>qe,insertProfileEmail:()=>qe,setRecentlyAddedProducts:()=>{}},ss=e=>e===0,jc=(e,t)=>{if(!e||e.length===0)return[];let r="";const o=[],s=e.match(/\d+/g)??[];for(const i of s){const a=t[Number(i)];a&&(r+=(r?"/":"")+a,o.push(r))}return o},Cc=(e,t)=>{const{availability:r,additionalInfo:{brandName:o},bundleItems:s,id:i,uniqueId:a,detailUrl:c,ean:l,imageUrl:u,name:f,listPrice:h,quantity:d,price:p,priceDefinition:g,productCategories:y,productCategoryIds:_,productId:b,refId:S,seller:v,referenceId:j,offerings:P,productRefId:E,skuName:C,sellingPrice:R}=e;return{availability:r,bundleItems:s,referenceId:j,productRefId:E,id:i,ean:l,uniqueId:a,itemOffered:{additionalProperty:[],brand:{name:o},categories:jc(_,y),categoriesIds:_,gtin:S,image:[{alternateName:(t==null?void 0:t.MAIN_IMAGE)??"1",url:u}],name:f,isVariationOf:{name:f,productGroupID:b},sku:i,slug:c,skuName:C},listPrice:h,quantity:d,offerings:P,price:p,priceDefinition:g,sellingPrice:R,seller:v}},Sc=(e,t)=>{const r=e.map(o=>({id:o.id,quantity:o.quantity,seller:o.seller}));return Array.isArray(t)?[...r,...t]:[...r,t]},Pc=(e,t)=>{const r=e.find(o=>o.id===t);if(r){const o=e.map((s,i)=>{var a,c;return{id:((a=s.itemOffered)==null?void 0:a.sku)??"",index:i,quantity:(r==null?void 0:r.id)===((c=s.itemOffered)==null?void 0:c.sku)?0:s.quantity,seller:s.seller??""}});return{updateItems:o,filterItems:o.filter(s=>s.id!==t)}}return{updateItems:[],filterItems:[]}},wc=(e,t,r)=>e.filter(o=>o.availability!=="withoutStock"&&o.availability!=="https://schema.org/OutOfStock").map((o,s)=>{var i,a;return o.id===t?{id:o.id,index:s,quantity:r,seller:o.seller,sku:((i=o.itemOffered)==null?void 0:i.sku)??""}:{id:o.id,index:s,quantity:o.quantity,seller:o.seller,sku:((a=o.itemOffered)==null?void 0:a.sku)??""}}),Do=(e,t)=>e.filter(r=>r.availability!=="withoutStock").findIndex(({id:r})=>r===t),sm=(e,t)=>{var r;return Array.isArray(e)?(((r=e==null?void 0:e.find(o=>{var s;return((s=o==null?void 0:o.id)==null?void 0:s.toLowerCase())===t}))==null?void 0:r.value)??0)/100:0},im=e=>{const t=e.reduce((s,i)=>{const a=ss(i.price)?0:i.quantity;return s+a},0),r=e.reduce((s,i)=>s+i.price*i.quantity,0),o=e.reduce((s,i)=>s+i.listPrice*i.quantity,0);return{totalItems:t,total:r,subTotal:o}},am=e=>Array.isArray(e)?e.filter(t=>t.availability!=="withoutStock").reduce((t,r)=>t+(ss(r==null?void 0:r.price)?0:r.quantity),0):0,Ec=(e,t)=>{const{items:r,itemMetadata:o,marketingData:s,messages:i,orderFormId:a,openTextField:c,paymentData:l,shippingData:u,totalizers:f}=e;return{id:a,itemMetadata:o,items:Array.isArray(r)?r.map(h=>Cc(h,t)):[],marketingData:s,messages:i,openTextField:c,paymentData:l,shippingData:u,totalizers:f}},Rc=(e,t)=>{const r=e.find(o=>o.id===t);return r?r.availability==="unavailableItemFulfillment":!1},cm=(e,t)=>{const r=e.sku,o=e.isVariantOf.hasVariant.find(s=>s.sku===r);return o?o.name.split(t)[1]:"--"},vt=(e,t,r=!1)=>!e&&t!==""?{code:300,value:t,statusOk:r}:e===t?{code:200,value:t,statusOk:r}:{code:400,value:t,statusOk:r},lm=(e,t)=>{const r=new Set;return[e,...t].filter(o=>!r.has(o)&&r.add(o),r)},Ac=(e,t)=>t&&Array.isArray(t)&&t.find(o=>o.id===e)?Promise.resolve(e):Promise.resolve(!1),Ic=(e,t)=>t?Promise.resolve(e[t]):Promise.resolve(!1),Nc=async e=>{try{const t=await e();if(typeof t!="boolean")return t}catch(t){console.error(`[Error orderForm]: ${t}`)}return!1},Tc=(e,t)=>{if(t!==-1){const r=Number(e);return r?r+1:1}return e??1},Oc=(e,t)=>Array.isArray(e)?e.filter(r=>t==null?void 0:t.some(o=>o.id===r.id)):[],kc=async(e,t)=>e.then(r=>[...r??[],...t??[]]),Te=async(e,t,r,o)=>{const{priority:s="auto",body:i}=t;return fetch(e,{headers:{"Content-Type":"application/json"},priority:s,method:"POST",body:JSON.stringify(i)}).then(async a=>{const c=await a.json();return r?c:Ec(c,o)})},Lc=(e,t,r)=>({notifications:[...e.notifications,{id:Date.now(),message:t,callback:r}]}),Mc=e=>[...Array.isArray(e)?e:[e],"faststore"],Dc=e=>{const t=e.get("utm_source")||ut("utm_source"),r=e.get("utm_campaign")||ut("utm_campaign"),o=e.get("utm_medium")||ut("utm_medium"),s=e.get("utmi_cp")||ut("utmi_cp"),i=e.get("utmi_pc")||ut("utmi_pc"),a=e.get("utmi_p")||ut("utmi_p");return{...t&&{utmSource:t},...o&&{utmMedium:o},...r&&{utmCampaign:r},...s&&{utmiCampaign:s},...i&&{utmiPart:i},...a&&{utmipage:a}}},ut=e=>{if(!e||typeof window>"u")return;const t=window.location.href;e=e.replace(/[[\]]/g,"\\$&");const r=new RegExp("[?&]"+e+"(=([^&#]*)|&|#|$)"),o=r.exec(t);return o?o[2]?decodeURIComponent(o[2].replace(/\+/g," ")):"":null},um=Object.freeze(Object.defineProperty({__proto__:null,VALUE_REFERENCES:om,addItemOrder:Sc,addNotification:Lc,createItemOrder:Cc,fetchCartAPI:Te,findItemIndex:Do,findOptions:Oc,findTotalizerValue:sm,getCategories:jc,getCode:vt,getQuantity:Tc,getRemoveId:Ac,getSize:cm,getTotalItems:am,getTotalizer:im,getUrlParameter:ut,getValue:Ic,initialState:Mo,isGift:ss,marketingTagsBuilder:Mc,mergeOptionsPromise:kc,mountMarketingData:Dc,orderFormValues:Ec,promiseDefault:qe,removeQuantity:Pc,updateItemSellerExternal:Rc,updateOrderFormPromise:Nc,updateQuantity:wc,wishlistArray:lm},Symbol.toStringTag,{value:"Module"})),dm=()=>{const e=async(p,g)=>Te("/api/checkout/order-form/coupon",{body:{orderFormId:p,coupon:g}}),t=async(p,g)=>{if(g){const y=g.includes(" - ")?g.split(" - ")[0]:g,_=await Te("/api/checkout/order-form/seller-code",{body:{orderFormId:p,sellerCode:y}},!0);return _ instanceof Object&&"nome"in _&&(_==null?void 0:_.status)===!0?Te("/api/checkout/order-form/attachments",{body:{orderFormId:p,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 Te("/api/checkout/order-form/attachments",{body:{orderFormId:p,sellerCode:"",sellerName:""}})},r=async(p,g)=>Te("/api/checkout/order-form/attachments/marketing-data",{body:{orderFormId:p,marketingData:g}}),o=async(p,g,y)=>Te("/api/checkout/order-form/items",{body:{orderFormId:p,orderItems:Sc(g,y)}}),s=async(p,g,y,_=!1)=>Te("/api/checkout/order-form/offerings",{body:{id:g,itemIndex:y,orderFormId:p,remove:_}}),i=async p=>Te("/api/checkout/order-form/items/remove-all",{body:{orderFormId:p}}),a=async(p,g="low")=>Te("/api/checkout/order-form",{priority:g,body:{orderFormId:p??""}}),c=async(p,g)=>Te("/api/checkout/order-form/profile",{body:{orderFormId:p,email:g}}),l=async(p,g,y)=>{const _=Pc(g,y);return Te("/api/checkout/order-form/items/update",{body:{orderItems:_.updateItems,orderFormId:p}})},u=async(p,g,y)=>Te("/api/checkout/order-form/shipping",{body:{orderFormId:p,country:y,postalCode:g}}),f=async(p,g,y)=>Te("/api/checkout/order-form/shipping/update",{body:{orderFormId:p,options:g,selectedAddresses:y}}),h=async(p,g,y,_)=>{const b=wc(g,y,_);return Te("/api/checkout/order-form/items/update",{body:{orderFormId:p,orderItems:b}})};return{addCoupon:e,addItem:o,addSellerCode:t,addMarketingData:r,giftItem:s,emptyCart:i,getOrderForm:a,insertProfileEmail:c,removeItem:l,shipping:u,shippingUpdate:f,updateItemQuantity:async(p,g,y,_,b)=>h(p,g,y,_).then(S=>S&&Array.isArray(S.items)?Rc(S.items,y)?h(p,g,y,b):S:!1)}},$o="soma::cart",kt="soma::options",St=mt.create((e,t)=>{const r=dm(),o=async(s,i,a)=>{e({loading:!0});const c=await Nc(s);if(typeof c!="boolean"){e({...c});const l=await kc(Ye.get(kt),a);return Ye.set(kt,l),Ic(c,i).finally(()=>e({loading:!1,options:l}))}return qe};if(typeof window<"u"){const s=async i=>{if(i){const a=await Ye.get(kt).then(u=>Oc(u,i.items));Ye.set($o,i),Ye.set(kt,a),e({...i,options:a});const c=new URLSearchParams(window.location.search),l=c.get("utm_campaign")||c.get("utmi_campaign")||"";l&&o(()=>r.addSellerCode(t().id,l.toUpperCase()),"openTextField")}};return Ye.get($o).then(i=>r.getOrderForm(i?i.id:"").then(s)),{...Mo,addCoupon:async i=>o(()=>r.addCoupon(t().id,i),"marketingData"),addItem:(i,a)=>{o(()=>r.addItem(t().id,t().items,i),"items",a)},addSellerCode:async i=>o(()=>r.addSellerCode(t().id,i),"openTextField"),addMarketingData:async i=>o(()=>r.addMarketingData(t().id,i),"marketingData"),emptyCart:()=>{o(()=>r.emptyCart(t().id))},removeItem:async i=>{const a=await o(()=>r.removeItem(t().id,t().items,i),"items");return Ac(i,a)},shipping:async(i,a="BR")=>o(()=>r.shipping(t().id,i??"",a),"shippingData"),shippingUpdate:async i=>o(()=>{var a;return r.shippingUpdate(t().id,i,(a=t().shippingData)==null?void 0:a.selectedAddresses)},"shippingData"),toggleServiceToProduct:async(i,a,c)=>o(()=>r.giftItem(t().id,i,a,c),"items"),updateItemQuantity:async(i,a,c)=>{const{id:l,items:u}=t();return o(()=>{var f;return r.updateItemQuantity(l,u,i,a,((f=u.find(h=>h.id===i))==null?void 0:f.quantity)??1)},"items",c?[c]:void 0)},insertProfileEmail:async i=>o(()=>r.insertProfileEmail(t().id,i),"clientProfileData"),setIsOpen:i=>e({isOpen:i})}}return Mo}),fm=()=>St(e=>e),$c=mt.create(e=>({notifications:[],actions:{addNotification:(t,r)=>e(o=>Lc(o,t,r)),removeNotification:t=>e(r=>({notifications:r.notifications.filter(o=>o.id!==t)}))}})),is=()=>$c(e=>e.notifications),as=()=>$c(e=>e.actions),pm=Object.freeze(Object.defineProperty({__proto__:null,KEY_INDEXED_OPTIONS:kt,KEY_INDEXED_STORE:$o,useCartStore:St,useGetCartStoreState:fm,useGetNotificationActions:as,useGetNotificationsStore:is},Symbol.toStringTag,{value:"Module"})),mm=6e3,zc=x.createContext({}),Bc=({children:e,...t})=>{const{items:r}=St(),[o,s]=x.useState([]),i=x.useRef(null),a=x.useMemo(()=>Array.isArray(o)&&o.length>0?o.map(c=>r.find(l=>l.id===c.id)).filter(c=>c!==void 0):[],[r,o]);return x.useEffect(()=>{o.length&&(clearTimeout(i.current??0),i.current=setTimeout(()=>{s([])},mm))},[o]),n.jsx(zc.Provider,{value:x.useMemo(()=>({...t,setRecentlyAdded:s,recentlyAddedProducts:a}),[t,s,a]),children:e})},Ft=()=>{const e=x.useContext(zc);if(e===void 0)throw new Error("useUIContext must be used within a UIProvider");return e};class Fc{constructor(){Ur(this,"events",{});Ur(this,"prevData",{})}subscribe(t,r){return this.events[t]||(this.events[t]=[]),this.events[t].push(r),()=>{this.events[t]=this.events[t].filter(o=>o!==r)}}publish(t,r){this.events[t]&&this.events[t].forEach(o=>{this.prevData[t]=r,o(r)})}}const qc=x.createContext({}),hm=({children:e,headerConfigs:t,pathname:r,...o})=>{const[s,i]=x.useState(!0),[a,c]=x.useState(!1),l=r==="/",u=x.useRef(new Fc),f=p=>p?{headerVariant:t.home_default_variant,bannerVariant:t.home_default_variant,position:t.home_default_position}:{headerVariant:t.default_variant,bannerVariant:t.default_variant,position:t.default_position},h=f(l),d=x.useRef(h);return x.useEffect(()=>{var y;const p=((y=new URLSearchParams(window.location.search))==null?void 0:y.toString())??"";(p.includes("utm_")||p.includes("gclid"))&&(ko.get("lastMedias")||ko.set("lastMedias",`${p}`,{expires:1/24}));const g=()=>{const _=typeof(window==null?void 0:window.navigator)>"u"?"":navigator==null?void 0:navigator.userAgent,b=window.innerWidth<1024||!!_.match(/Android|BlackBerry|iPhone|iPad|iPod|Opera Mini|IEMobile|WPDesktop/i);a||c(!0),s!==b&&(i(b),c(!0))};return a||g(),window.addEventListener("resize",g,{passive:!0}),()=>window.removeEventListener("resize",g)},[s,a]),x.useEffect(()=>{const p=f(l);u.current.publish("header:change_variant",p.headerVariant),u.current.publish("header:change_position",p.position),d.current=p},[l]),n.jsx(qc.Provider,{value:{isMobile:s,mediatorRef:u,currentHeaderConfigsRef:d,deviceValidated:a,...o},children:n.jsx(Bc,{children:e})})},le=()=>x.useContext(qc),Hc=x.createContext({}),gm=({children:e,...t})=>n.jsx(Hc.Provider,{value:{...t},children:e}),xe=()=>x.useContext(Hc),ht=(e,t)=>mt.create(r=>{const o=()=>r({value:e});return t&&t instanceof Set&&t.add(o),{value:e,actions:{setValue:s=>r({value:s}),reset:o}}}),zt={category:null,menuMobileIsOpen:!1,searchModalIsOpen:!1,userMenuIsOpen:!1},qt=new Set,ym=()=>{qt.forEach(e=>{e()})},Uc=mt.create((e,t)=>{const r=()=>e({value:zt.category});return qt.add(r),{value:zt.category,actions:{reset:r,setValue:o=>e(()=>({value:o})),updateValue:o=>{t().value!==o&&e({value:o})}}}}),Wc=()=>Uc(e=>e.value),Ht=()=>Uc(e=>e.actions),Vc=ht(zt.menuMobileIsOpen,qt),Gc=()=>Vc(e=>e.value),Kc=()=>Vc(e=>e.actions),Xc=ht(zt.searchModalIsOpen,qt),Yc=()=>Xc(e=>e.value),cs=()=>Xc(e=>e.actions),Qc=ht(zt.userMenuIsOpen,qt),ls=()=>Qc(e=>e.value),us=()=>Qc(e=>e.actions),_m=Object.freeze(Object.defineProperty({__proto__:null,resetAllHeaderStores:ym,useActionsHeaderCategory:Ht,useActionsMenuMobileIsOpen:Kc,useActionsSearchModalIsOpen:cs,useActionsUserMenuIsOpen:us,useGetHeaderCategoryStore:Wc,useGetMenuMobileIsOpen:Gc,useGetSearchModalIsOpen:Yc,useGetUserMenuIsOpen:ls},Symbol.toStringTag,{value:"Module"})),Pt={selectedSkuInfo:{productId:"",name:"",size:"",sku:"",sellerId:"",sellerName:"",available:!1,quantity:1},openLetMeKnow:!1,openMeasurements:!1,showBottomNavigation:!1,showNotify:!1},Et=new Set,vm=()=>{Et.forEach(e=>{e()})},Zc=mt.create(e=>{const t=()=>e({value:Pt.selectedSkuInfo});return Et.add(t),{value:Pt.selectedSkuInfo,actions:{setValue:r=>e(o=>({value:{...o,...r}})),reset:t}}}),Ut=()=>Zc(e=>e.value),Jc=()=>Zc(e=>e.actions),el=ht(Pt.openLetMeKnow,Et),xm=()=>el(e=>e.value),bm=()=>el(e=>e.actions),tl=ht(Pt.showNotify,Et),rl=()=>tl(e=>e.value),ds=()=>tl(e=>e.actions),nl=ht(Pt.showBottomNavigation,Et),jm=()=>nl(e=>e.value),Cm=()=>nl(e=>e.actions),ol=ht(Pt.openMeasurements,Et),sl=()=>ol(e=>e.value),il=()=>ol(e=>e.actions),Sm=Object.freeze(Object.defineProperty({__proto__:null,resetAllPDPStores:vm,useActionsPDPOpenLetMeKnow:bm,useActionsPDPOpenMeasurements:il,useActionsPDPSelectedSkuInfo:Jc,useActionsPDPShowBottomNavigation:Cm,useActionsPDPShowNotify:ds,useGetPDPOpenLetMeKnow:xm,useGetPDPOpenMeasurements:sl,useGetPDPSelectedSkuInfo:Ut,useGetPDPShowBottomNavigation:jm,useGetPDPShowNotify:rl},Symbol.toStringTag,{value:"Module"})),Ks={feedback:{active:!1,action:"add"},list:[]},fs=mt.create((e,t)=>({value:Ks,actions:{reset:()=>e({value:Ks}),setValue:o=>e(()=>({value:o})),toggleProduct:o=>e(s=>s.value.list.includes(o)?{value:{feedback:{active:!0,action:"remove"},list:s.value.list.filter(i=>i!==o)}}:{value:{feedback:{active:!0,action:"add"},list:[...s.value.list,o]}}),updateList:o=>e(s=>({value:{...s.value,list:o}})),resetFeedback:()=>e(o=>({value:{...o.value,feedback:{active:!1,action:""}}}))}})),Rt=()=>fs(e=>e.value.list),ps=()=>fs(e=>e.value.feedback),gt=()=>fs(e=>e.actions),Pm=Object.freeze(Object.defineProperty({__proto__:null,useActionsWishlistStore:gt,useGetWishlistFeedbackStore:ps,useGetWishlistStore:Rt},Symbol.toStringTag,{value:"Module"})),al=x.createContext({}),wm=({children:e,headerData:t,...r})=>{var f,h;const o=x.useRef(null),s=x.useRef(null),i=x.useRef(null),a=x.useRef(null),c=x.useRef(null),{mediatorRef:l,currentHeaderConfigsRef:u}=le();return(f=l.current)==null||f.subscribe("header:change_variant",d=>{var b,S,v;if(d&&u.current&&(u.current.bannerVariant=d),!o.current)return;const g=document.body.scrollTop>0,y=o.current.getAttribute("data-interactiveVariant"),_=g?y:d??((b=u.current)==null?void 0:b.bannerVariant)??"default";_!==((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",d=>{o.current&&(o.current.style.position=d)}),x.useEffect(()=>{const d=new AbortController,p=m.helpers.throttle(()=>{var y;return(y=l.current)==null?void 0:y.publish("header:change_variant",null)},200);document.body.addEventListener("scroll",p,{passive:!0,signal:d.signal});const g=y=>{var b;(b=y.target.closest("a"))==null||b.blur()};return o.current&&(o.current.addEventListener("click",g,{signal:d.signal}),o.current.addEventListener("touchend",g,{signal:d.signal})),()=>{d.abort()}},[]),n.jsx(al.Provider,{value:{headerData:t,structureRef:s,rootRef:o,tipbarRef:i,userMenuMobileRef:a,userMenuDesktopRef:c,...r},children:e})},Pe=()=>x.useContext(al),cl=x.createContext({}),ll=({children:e,...t})=>n.jsx(cl.Provider,{value:x.useMemo(()=>t,[t]),children:e}),ms=()=>{const e=x.useContext(cl);if(e===void 0)throw new Error("useMenuMobileContext must be used within a MenuMobileProvider");return e},Em=e=>{if(!e||typeof window>"u")return 0;const t=window.getComputedStyle(e);return parseInt(t.padding,10)},Rm=(e,t,r)=>{if(!(e instanceof HTMLElement)||!(t instanceof HTMLElement))return{left:0,top:0};const o=t.getBoundingClientRect(),s=e.getBoundingClientRect(),i=e!=null&&e.parentElement?Em(e==null?void 0:e.parentElement):0;return{left:o.left+o.width/2-(s.width+i),top:o.top+o.height+r}},ul=x.createContext({}),dl=({children:e,delay:t=600,gap:r=20,...o})=>{const[s,i]=x.useState(!1),a=x.useRef(null),[c,l]=x.useState(!1),[u,f]=x.useState({left:0,top:0}),h=x.useCallback(()=>{l(!0),typeof window<"u"&&(a.current=window.setTimeout(()=>{i(!1),l(!1)},t))},[l,i,t]);return x.useEffect(()=>{if(typeof window>"u")return;const d=window.document.querySelector("#cart-button"),p=window.document.querySelector("#add-to-cart--tooltip");if(d&&p){const{left:g,top:y}=Rm(p,d,r??0);f({left:g,top:y}),l(!1)}},[r,s]),n.jsx(ul.Provider,{value:x.useMemo(()=>({...o,...u,handleClose:h,isLeaving:c,isOpen:s,setIsOpen:i,setIsLeaving:l}),[o,u,h,c,s,i,l]),children:e})},yt=()=>{const e=x.useContext(ul);if(e===void 0)throw new Error("useAddToCartContext must be used within a AddToCartProvider");return e},fl=x.createContext({}),Am=({children:e,CARTPROVIDER_MESSAGE_PRODUCT_REMOVE:t,...r})=>{const o=St(),{setRecentlyAdded:s}=Ft(),i=x.useRef(""),a=is(),{addNotification:c,removeNotification:l}=as(),{addCoupon:u,addItem:f,addSellerCode:h,addMarketingData:d,emptyCart:p,isOpen:g,removeItem:y,shipping:_,shippingUpdate:b,toggleServiceToProduct:S,updateItemQuantity:v}=o;x.useEffect(()=>{const B=ko.get("lastMedias");if(o.id&&B&&i.current!==B){i.current=B;const V=new URLSearchParams(B),G=Dc(V);d(G)}},[o,d]);const j=x.useCallback(async(B,V)=>(V==="coupon"?u(B):h(B)).then(F=>{if(typeof F!="boolean"&&F instanceof Object){if(V==="seller"&&"value"in F){const{statusOk:J,value:A}=F,O=String(A??"").split(" - ");return vt((O==null?void 0:O[0])??"",B,!!J)}return vt(String(F.coupon),B,!0)}return vt("","")}).catch(()=>Promise.resolve({code:400})),[u,h]),P=x.useCallback((B,V,G)=>{const{id:F}=B;v(F,V,G)},[v]),E=x.useCallback((B,V,G=!1)=>{if(!B)return;const{id:F}=B,J=Do(o.items,F);if(J!==-1&&!G){const A=Number(o.items[J].quantity),O=o.items[J]?A+1:1;P(B,O,V)}else f({id:F,quantity:(B==null?void 0:B.quantity)??1,seller:B.seller});g||s(A=>[...A,B])},[f,P,o.items,g,s]),C=x.useCallback((B,V)=>{if(!B||!Array.isArray(B))return;s(F=>[...F,...B]);const G=B.map(F=>{const{id:J,quantity:A,seller:O}=F,D=Do(o.items,J),X=Tc(A??1,D);return{id:J,quantity:X,seller:O}});f(G,V)},[f,o.items,s]),R=x.useCallback(async(B,V,G)=>B?y(B).then(()=>(c(V??`${t}`,G),vt(B,B))):Promise.resolve(vt("","Product id required")),[c,y]),T=x.useCallback(()=>{o.items.length>0&&p()},[p,o.items]),w=x.useCallback((B,V="BRA")=>_(B,V),[_]),I=x.useCallback(B=>{B&&b(B)},[b]),N=x.useCallback(async(B,V,G)=>{const F=o.items.findIndex(A=>A.id===B);return o.items[F]&&F>=0?S(V,F,G??!1):!1},[o.items,S]),z=x.useCallback(async(B,V)=>v(B,V).then(G=>{if(Array.isArray(G)){const F=G.find(J=>J.id===B);if(F&&(F==null?void 0:F.quantity)<V)return String(F.quantity)}return!1}),[v]),k=x.useCallback(async()=>{await d({...o.marketingData,coupon:""})},[d,o.marketingData]),W=x.useCallback(async()=>{await d({...o.marketingData,utmiCampaign:"",utmCampaign:"",utmSource:"",utmMedium:""})},[d,o.marketingData]),q=x.useCallback(async()=>{await _("","BRA")},[_]);return n.jsx(fl.Provider,{value:x.useMemo(()=>({...r,addCouponSeller:j,addToCart:E,addItemsToCart:C,cartStore:o,notifications:a,clearCart:T,addNotification:c,isOpen:o.isOpen,removeNotification:l,removeToCart:R,setIsOpen:o.setIsOpen,shipping:w,shippingUpdateOption:I,toggleGiftItemCart:N,updateItemQuantity:z,removeCoupon:k,removeSellerCode:W,removeCEP:q}),[r,j,E,C,a,T,c,o,l,R,w,I,N,z,k,W,q]),children:e})},Ee=()=>{const e=x.useContext(fl);if(e===void 0)throw new Error("useCartContext must be used within a CartProvider");return e},pl=x.createContext({}),hs=({children:e,fetch:t})=>{const r=x.useRef(!0),[o,s]=x.useState(null),[i,a]=x.useState(!1);return x.useEffect(()=>{(async()=>{r.current=!0;try{const l=await t();if(!l.ok)throw new Error("Failed to fetch data");const u=await l.json();s(u.data),r.current=!1}catch{r.current=!0,a(!0)}})()},[t]),n.jsx(pl.Provider,{value:x.useMemo(()=>({data:o,isLoading:r.current??!1,isError:i}),[o,i,r]),children:e})},gs=()=>{const e=x.useContext(pl);if(e===void 0)throw new Error("useProductsContext must be used within a useRootContext");return e},ml=x.createContext({}),ys=({children:e,sort:t,state:r,count:o,collectionId:s,brand:i,searchParams:a,ITEMS_PER_PAGE:c})=>{const l=x.useMemo(()=>{var u;return s?[{key:"productclusterids",value:s.toString()}]:i?[{key:"brand",value:i}]:(u=r.base)!=null&&u.length?r.base.slice(1).split("/").map((f,h)=>({key:`category-${h+1}`,value:f})):[]},[r.base,s]);return n.jsx(ml.Provider,{value:x.useMemo(()=>({state:{...r,facets:[...l,...r.facets??[]]},sort:t,count:o??c,searchParams:a}),[l,o,t,r,a]),children:e})},$e=()=>{const e=x.useContext(ml);if(e===void 0)throw new Error("useSearchContext must be used within a SearchProvider");return e},hl=x.createContext({}),Im=({children:e,...t})=>n.jsx(hl.Provider,{value:t,children:e}),Le=()=>{const e=x.useContext(hl);if(e===void 0)throw new Error("usePLPConstants must be used within a PLPConstantsProvider");return e},gl=x.createContext({}),Nm=({children:e,selectedFacets:t})=>{const{data:r,...o}=gs(),{router:s}=xe(),{searchParams:i,PLP_SORT_DEFAULT:a}=Le(),c=x.useCallback((d,p)=>{if(p){if(d.key.toLocaleLowerCase()==="price"){const g=p.getAll("facets");p.delete("facets"),g.forEach(y=>{const[_]=y.split("/");_!==d.key&&p.append("facets",y)})}p.set("page","1"),p.append("facets",`${d.key}/${d.value}`),s.push(`?${p.toString()}`)}},[s]),l=x.useCallback(()=>{const d=new URLSearchParams;d.set("sort",a),d.set("page","1"),s.push(`?${d.toString()}`)},[s]),u=x.useCallback((d,p)=>{if(!p||!p.has&&!p.has("facets"))return;const g=p.getAll("facets");p.delete("facets"),p.set("page","1"),g.forEach(y=>{const[_,b]=y.split("/");(_!==d.key||b!==d.value)&&p.append("facets",y)}),s.push(`?${p.toString()}`)},[s]),f=x.useCallback(d=>{const p=i?new URLSearchParams(i):new URLSearchParams;for(const[,g]of p.entries()){const[y,_]=g.split("/");if(y===d.key&&_===d.value)return u(d,p)}return c(d,p)},[c,u,i]),h=x.useCallback(d=>{const p=i?new URLSearchParams(i):new URLSearchParams;p.set("sort",d.replace("_",":")),s.push(`?${p.toString()}`)},[s,i]);return n.jsx(gl.Provider,{value:x.useMemo(()=>({...o,breadcrumb:r&&"breadcrumb"in r?r==null?void 0:r.breadcrumb:[],deleteAllFacets:l,facets:r&&"facets"in r?r==null?void 0:r.facets:[],selectedFacets:t,onToggleFacet:f,onSort:h,searchParams:i}),[r,l,h,f,o,t,i]),children:e})},yl=({children:e,forceUpdate:t})=>{const{state:r}=$e();return n.jsx(hs,{fetch:()=>fetch("/api/search/facets",{method:"POST",body:JSON.stringify({...r,forceUpdate:t}),priority:"low"}),children:n.jsx(Nm,{selectedFacets:(r==null?void 0:r.facets)??[],children:e})})},_l=()=>{const e=x.useContext(gl);if(e===void 0)throw new Error("useFacetsContext must be used within a FacetsProvider");return e},Tt={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"}},Tm={nextPage:!1,previousPage:!1,startCursor:"0",endCursor:"0",count:0,total:0},Om="Imagem do produto",Xs=1,km="Sair",Lm=e=>e.exit,Ys=({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"}],Mm=(e,t)=>{const r=(t??"").split("@")[0];return e?`Olá${r.length?", ":" "}${r}!`:"Olá!"},Dm=e=>"Seja bem vindo!",vl=x.createContext({}),$m=({children:e})=>{const{data:t,...r}=gs(),[o,s]=x.useState(0),{sendDataLayerEvent:i}=ce();return x.useEffect(()=>{if(t&&"pagination"in t&&t.products.length>0){i({functionKey:"productListEvent",data:{event:"view_item_list",commonData:{products:t.products}}});const a=t.pagination.count;a&&Number.isInteger(a)&&s(a)}},[t,i,s]),n.jsx(vl.Provider,{value:x.useMemo(()=>({...r,products:t&&"products"in t?t==null?void 0:t.products:[],pagination:t&&"pagination"in t?t==null?void 0:t.pagination:Tm,total:o}),[t,r,o]),children:e})},_s=({children:e,query:t,forceUpdate:r})=>{const{count:o,state:s}=$e(),i={...s,count:o};return n.jsx(hs,{fetch:()=>fetch("/api/search/product",{method:"POST",body:JSON.stringify({...i,query:t,forceUpdate:r,facets:s.facets??[]})}),children:n.jsx($m,{children:e})})},Wt=()=>{const e=x.useContext(vl);if(e===void 0)throw new Error("useProductsContext must be used within a ProductsProvider");return e},xl=x.createContext({}),zm=({children:e,term:t})=>{const[r,o]=x.useState([]),[s,i]=x.useState(!1);return x.useEffect(()=>{if(!t){o([]);return}(async()=>{i(!0);try{const c=await fetch("/api/search/suggestedTerms",{method:"POST",body:JSON.stringify({query:t,locale:"pt-BR"})}),{data:l}=await c.json();o((l==null?void 0:l.searches)||[])}catch(c){console.error("Erro ao buscar sugestões:",c)}})()},[t]),n.jsx(xl.Provider,{value:x.useMemo(()=>({suggestedTerms:r,loading:s,setLoading:i}),[r,s]),children:e})},Bm=({children:e,...t})=>n.jsx(zm,{...t,children:e}),Fm=()=>{const e=x.useContext(xl);if(!e)throw new Error("useSuggestedTermsContext must be used within a SuggestedTermsProvider");return e},bl=x.createContext({searches:[],isLoading:!1,error:null}),qm=({children:e})=>{const[t,r]=x.useState([]),[o,s]=x.useState(!0),[i,a]=x.useState(null);return x.useEffect(()=>{(async()=>{try{s(!0);const l=await fetch("/api/search/topSearch");if(!l.ok)throw new Error(`Erro ao buscar os dados: ${l.status}`);const u=await l.json();r(u.data.searches||[])}catch(l){a(l instanceof Error?l.message:"Erro desconhecido")}finally{s(!1)}})()},[]),n.jsx(bl.Provider,{value:x.useMemo(()=>({searches:t,isLoading:o,error:i}),[t,o,i]),children:e})},Hm=()=>{const e=x.useContext(bl);if(!e)throw new Error("useTopSearches must be used within a TopSearchesProvider");return e},jl=x.createContext({}),Um=({children:e,slug:t,searchParams:r,collectionId:o,brand:s,itemsPerPage:i=24,PLP_SORT_DEFAULT:a})=>{const{pathname:c}=xe(),l=x.useRef(""),[u,f]=x.useState(!1),h=x.useMemo(()=>{const p=new URL(c,"http://localhost"),g=(r==null?void 0:r.getAll("facets"))??[],y=(r==null?void 0:r.get("page"))??"1",_=(r==null?void 0:r.get("sort"))??(o?"":a);return p.searchParams.set("page",String(y)),p.searchParams.set("sort",String(_)),r!=null&&r.get("query")?(p.searchParams.set("query",r.get("query")),p):(p.searchParams.set("base",Array.isArray(t)?t.join("/"):t),p.searchParams.set("facets",g.join(",")),p)},[o,c,r,t]),d=x.useMemo(()=>{if(Array.isArray(r==null?void 0:r.getAll("facets")))return U.parseSearchState(h,r.getAll("facets")??[""]);const p=(r==null?void 0:r.getAll("facets"))??[];return U.parseSearchState(h,p)},[h,r]);return x.useEffect(()=>{l.current!==c&&(l.current=c,window.document.body.scrollTo(0,0))},[c]),n.jsx(jl.Provider,{value:x.useMemo(()=>({openFilters:u,setOpenFilters:f}),[u,f]),children:n.jsx(ys,{ITEMS_PER_PAGE:i,searchParams:r??new URLSearchParams,state:x.useMemo(()=>({...d}),[d]),collectionId:o,brand:s,children:e})})},vs=()=>{const e=x.useContext(jl);if(e===void 0)throw new Error("usePLPContext must be used within a PLPProvider");return e},xr=(e,t)=>{if(e===t)return!0;if(e==null||t==null||typeof e!="object"||typeof t!="object")return!1;if(Array.isArray(e))return!Array.isArray(t)||e.length!==t.length?!1:e.every((s,i)=>xr(s,t[i]));if(Array.isArray(t))return!1;const r=Object.keys(e),o=Object.keys(t);return r.length!==o.length?!1:r.every(s=>Object.prototype.hasOwnProperty.call(t,s)&&xr(e[s],t[s]))},Cl=(e,t,r="page")=>Object.keys(t).some(o=>o===r?!1:!xr(t[o],e[o])),zo=async e=>{const t=await fetch("/api/search/product",{method:"POST",body:JSON.stringify(e),priority:"high"});if(!t.ok)throw new Error("[FAILED TO FETCH DATA]");const r=await t.json();return r==null?void 0:r.data},Sl=()=>({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}}}),Pl=(e,t,r,o=24)=>{const s=new Set,i=[];if(!Array.isArray(e)||e.length===0)return{taken:s,placedBanners:i};const a=t*o*r;for(const c of e){let l=Number(c.position_grid),u=!1;for(;l<a;){const f=l%r;if(f+c.columns>r){l+=r-f;continue}if(!Array.from({length:c.columns}).some((p,g)=>s.has(l+g))){for(let p=0;p<c.columns;p++)s.add(l+p);i.push(l),u=!0;break}l++}u||console.info(`[PLP INFINITE FAILED BANNER POSITION]: pos=${c.position_grid}, cols=${c.columns}`)}return{taken:s,placedBanners:i}},Bo=(e,t,r,o=24)=>{const{placedBanners:s,taken:i}=Pl(e??[],t,r),a=[];let c=0;try{for(;a.length<t*o;)i.has(c)||a.push(c),c++;return{banners:s,products:a}}catch(l){console.info(`[PLP INFINITE FAILED TO GEN POSITIONS]: page=${t}`,l)}return{banners:[],products:a}},yr=(e,t,r=24)=>Array.from({length:e},(o,s)=>{const i=s+1;return{loading:e===i,page:i,pagination:t!=null&&t.products.length&&e===i?t==null?void 0:t.pagination:xs(),products:t!=null&&t.products.length&&e===i?t==null?void 0:t.products:Array.from({length:r},()=>Sl())}}),wl=(e,t)=>[...e,{loading:!1,page:t,pagination:xs(),products:[]}],xs=()=>({nextPage:!1,previousPage:!1,startCursor:"0",endCursor:"1",count:1,total:1}),Wm=(e,t,r,o,s)=>{const i=e[e.length-1],a=(i==null?void 0:i.products.length)??s,c=(e.length-1)*s+a-1,l=r[c];return t.filter((u,f)=>{const h=o[f];return h<=l||s>a&&h>l})},El=(e,t)=>{const r=new Map;for(const s of e){const i=Math.floor(s/t);r.has(i)||r.set(i,[]),r.get(i).push(s)}const o=[];for(const[,s]of r){const i=s[Math.floor(Math.random()*s.length)];o.push(i)}return o},Rl=(e,t)=>{if(!e)return[];const r=e.map((o,s)=>o.video&&o.video!==""?s:null).filter(o=>o);return El(r,t)},Al=e=>Array.isArray(e)?e.map((t,r)=>({href:`/${e.slice(0,r+1).join("/")}`,name:t})):[],Vm=Object.freeze(Object.defineProperty({__proto__:null,createBreadcrumb:Al,createPage:wl,createPages:yr,createPagination:xs,createProduct:Sl,deepEqual:xr,fetchPage:zo,getBanners:Pl,getPositions:Bo,getProductsWithVideo:Rl,getRandomVideoPerRow:El,getVisibleBanners:Wm,hasStateChangedExceptPage:Cl},Symbol.toStringTag,{value:"Module"})),Gm=50,Km=mt.create((e,t)=>{const r=a=>Math.min(a,Gm),o=async(a,c)=>{const l=r(a.page);try{const u=await zo({...a,page:l});s(l,f=>c?c(f,u):{...f,...u})}catch(u){console.error(`[PDC - SCROLL INFINITE FAILED TO FETCH PAGE ${l}]: ${u}`),s(l,f=>({...f,loading:!1}))}},s=(a,c)=>{e({load:!0,pages:t().pages.map(l=>l.page===a?c(l):l)})},i=async(a,c)=>{await o(a,(l,u)=>(typeof c=="function"&&c(u),{...l,...u,loading:!0}))};return{banners:[],load:!1,pages:[],total:0,positions:[],products:[],createPages:async(a,c,l,u)=>{var h,d,p;const f=r(Number(a==null?void 0:a.page));e({...c,pages:yr(f,void 0,u)});try{const g=await zo({...a,page:f});if(g){if(!g.products.length&&((h=g==null?void 0:g.pagination)==null?void 0:h.total)<f){i({...a,page:(d=g==null?void 0:g.pagination)==null?void 0:d.total},l),e({pages:yr((p=g==null?void 0:g.pagination)==null?void 0:p.total)});return}typeof l=="function"&&l(g),e({load:!0,pages:yr(f,g),total:Number(g.pagination.count)})}}catch(g){console.error(`[PDC - SCROLL INFINITE TO CREATE PAGES]: page ${f} ${g}`)}},addPage:(a,c,l)=>{const{pages:u}=t(),f=r(a==null?void 0:a.page);u.some(h=>h.page===f)||(e({...c,pages:wl(u,f)}),i(a,l))},updateProducts:(a,c)=>{const l=t().pages.find(u=>u.page===r(a==null?void 0:a.page));l!=null&&l.loading||i(a,c)}}}),Xm=(e,t,r,o=0)=>{if(!e.length)return[];let s=0;const i=[];for(let a=0;a<e.length;a+=r){const c=e.slice(a,a+r),l=c.findIndex(u=>{var f;return(f=u.node)==null?void 0:f.video});for(let u=0;u<c.length;u++){const f=a+u,h=o+f,d=t.find(g=>g.position_grid===h+1),p=h+s+1;d&&(s+=d.columns),i.push({position:p,canPlayVideo:u===l})}}return i},Il=(e,t,r)=>{const o=(t-1)*r,s=t*r;return e>=o&&e<=s},Er=e=>{var t;return(t=e==null?void 0:e.map(r=>({disable:U.disableSKU(r),size:U.getSKUName(r),skuID:"sku"in r&&r.sku})))==null?void 0:t.filter(r=>r.disable)},Ym=Object.freeze(Object.defineProperty({__proto__:null,createGridPosAndVideo:Xm,getSkusNotify:Er,isPositionInCurrentPage:Il},Symbol.toStringTag,{value:"Module"})),Nl=({isMobile:e,ICONS:t,NOTIFY_INFO:r})=>n.jsxs(n.Fragment,{children:[n.jsx(m.Modal.Controls,{navigation:e?"top":"middle",isMobile:e??!1,children:!e&&n.jsxs(n.Fragment,{children:[n.jsx(m.Button,{"data-close":!0,iconNameStart:t.arrow_left,size:"small",variant:"tertiary"}),n.jsx(m.Button,{"data-close":!0,iconNameStart:t.close,size:"small",variant:"tertiary"})]})}),n.jsx(m.Modal.Title,{navigation:e?"top":"middle",title:r.title})]});Nl.displayName="Notify.Controls";const Ge={"notify--header-modifier":"_notify--header-modifier_xlomp_1","notify--container":"_notify--container_xlomp_4","notify--form":"_notify--form_xlomp_20","notify--status":"_notify--status_xlomp_36","notify--status--success":"_notify--status--success_xlomp_50","notify--status--error":"_notify--status--error_xlomp_50","notify--modal--body":"_notify--modal--body_xlomp_99","notify--loading":"_notify--loading_xlomp_102","notify--selector":"_notify--selector_xlomp_122","notify--selector--header":"_notify--selector--header_xlomp_138","modal-modifier":"_modal-modifier_xlomp_168"};function Tl(e){const r=decodeURIComponent(window.document.cookie).split(";");for(const o of r){const[s,i]=o.trim().split("=");if(s===e)return i}}function bs(e,t,r={}){const s={...{path:"/",expires:new Date(Date.now()+36e5)},...r};let i=`${encodeURIComponent(e)}=${encodeURIComponent(t??"")}`;for(const a in s)s[a]!==void 0&&(i+=`; ${a}`,a==="expires"?i+=`=${s[a].toUTCString()}`:typeof s[a]=="boolean"?i+=`; ${s[a]?"true":"false"}`:i+=`=${s[a]}`);window.document.cookie=i}const Qm=()=>{const{sendDataLayerEvent:e}=ce(),{user:t}=At(),{cartStore:r}=Ee();return x.useEffect(()=>{if(!t)return;(async()=>{const{userId:s,email:i,firstName:a,lastName:c,phone:l,homePhone:u,postalCode:f,street:h,number:d,city:p,gender:g}=t,y=new TextEncoder().encode(s),_=await crypto.subtle.digest("SHA-256",y),S=Array.from(new Uint8Array(_)).map(v=>v.toString(16).padStart(2,"0")).join("");e({functionKey:"readyEvents",data:{readyData:{user_id:S,email:i,first_name:a,last_name:c,phone:l||u,zip:f,street:h,street_number:d,city:p,gender:g,orderform_id:r==null?void 0:r.id}}})})()},[t,r.id]),null},Ol=x.createContext({amount:null,boxes:null,toExpire:null,loading:!0,logout:()=>null,getCurrentCredits:()=>({credits:0,cashback:0})}),Zm=({children:e,AUTH_TOKEN_COOKIE:t})=>{const[r,o]=x.useState({amount:null,boxes:null,toExpire:null,loading:!0}),s=x.useCallback(async()=>{try{await fetch("/api/user",{priority:"low"}).then(c=>c.json()).then(c=>{const{userCredits:l,...u}=c,{wishlist:f,...h}=u;o({amount:l==null?void 0:l.amount,boxes:l==null?void 0:l.boxes,toExpire:l==null?void 0:l.toExpire,user:h,loading:!1,wishlist:(typeof f=="string"?f.split(","):f)??[]})})}catch(c){console.error("my credits request",c),o({...r,loading:!1})}},[o]),i=x.useCallback(()=>{bs(t),s()},[s]),a=x.useCallback(()=>r.boxes?r.boxes.reduce((c,l)=>l.gift_card_box.refid==="C1643"?(c.cashback+=l.amount,c):(c.credits+=l.amount,c),{cashback:0,credits:0}):{cashback:0,credits:0},[r]);return x.useEffect(()=>{s()},[s]),n.jsxs(Ol.Provider,{value:x.useMemo(()=>({...r,getCurrentCredits:a,logout:i}),[r,a,i]),children:[n.jsx(Qm,{}),e]})},At=()=>{const e=x.useContext(Ol);if(e===void 0)throw new Error("useContext(SessionContext) must be used within a SessionProvider");return e},kl=({color:e,delay:t=3e3,sku:r,setStatus:o,setIsLoading:s,NEWSLETTER_CONFIGS:i,NOTIFY_INFO:a})=>{const c=x.useRef(null),[l,u]=x.useState(null),{sendDataLayerEvent:f}=ce(),{user:h}=At(),d=h!=null&&h.firstName?`${h==null?void 0:h.firstName} ${h==null?void 0:h.lastName}`:"";return n.jsx("div",{className:Ge["notify--form"],children:n.jsxs("form",{action:"POST",onSubmit:async p=>{var _;p.preventDefault();const g=p.currentTarget,y=((_=g.querySelector("input"))==null?void 0:_.value)??"";fetch("/api/aviseme",{method:"POST",body:JSON.stringify({userName:d,email:y,sku:r==null?void 0:r.skuID})}).then(b=>o(b.ok)).finally(()=>{s(!1),g.reset(),f({functionKey:"readyEvents",data:{event:"notify_me",readyData:{size:r==null?void 0:r.size,item_id:r==null?void 0:r.skuID,color:e}}}),c.current&&clearTimeout(c.current),c.current=setTimeout(()=>{var b;(b=document.body)==null||b.dispatchEvent(new MouseEvent("click",{bubbles:!0,cancelable:!0})),u(!0),o(null)},t)})},children:[n.jsx(m.TextField.Structure,{input:n.jsx(m.TextField.Input,{feedback:typeof l=="boolean"&&l?"error":"none",type:"email",label:a.email_placeholder,mode:"over-label",variant:"outlined",sizeVariant:"large",onChange:p=>u(!p.target.validity.valid),required:!0}),supportText:typeof l=="boolean"&&l?n.jsx(m.TextField.SupportText,{text:i.messages.invalid_email,feedback:"error"}):n.jsx(n.Fragment,{})}),n.jsx(m.Button,{disabled:!(l===!1||!r)||!r,type:"submit",size:"large",children:a.button})]})})};kl.displayName="Notify.Form";const Ll=({isLoading:e=!1})=>n.jsx("div",{className:Ge["notify--loading"],"data-loading":e,children:n.jsx(m.Spinner,{})});Ll.displayName="Notify.Loading";const js={"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"},Ml=({children:e,...t})=>n.jsx("div",{...t,className:js["product-variation-list--list"],children:e});Ml.displayName="ProductVariationList.List";const Dl=({fill:e="#1352C7",src:t="",type:r="size",text:o,...s})=>{const{nextimage:i}=xe();return r==="size"?n.jsxs(m.ToggleSize.Wrapper,{...s,size:"large",variation:"ghost",children:[n.jsx(m.ToggleSize.DisabledAdornment,{title:"disabled-adornment-size"}),n.jsx(m.ToggleSize.Text,{children:o})]}):n.jsxs(m.ToggleStyle.Wrapper,{...s,size:"small",title:"wrapper-texture",children:[n.jsx(m.ToggleStyle.DisabledAdornment,{title:"disabled-adornment-texture"}),r==="color"?n.jsx(m.ToggleStyle.Color,{background:e,title:"color"}):n.jsx(m.ToggleStyle.Texture,{title:"texture",children:n.jsx(i,{alt:o??"image",height:40,src:t,width:40})})]})};Dl.displayName="ProductVariationList.Option";const $l=({children:e,...t})=>n.jsx("div",{className:js["product-variation-list"],...t,children:e});$l.displayName="ProductVariationList.Root";const zl=({children:e,title:t,...r})=>n.jsxs("div",{...r,className:js["product-variation-list--title"],children:[t?n.jsx(m.TextStructure.Root,{children:n.jsx(m.TextStructure.SectionWrapper,{children:n.jsx("p",{children:t})})}):n.jsx(n.Fragment,{}),e]});zl.displayName="ProductVariationList.Title";const Xe={List:Ml,Option:Dl,Title:zl,Root:$l},Jm=(e,t)=>{if(!e||!t)return!1;const r=Object.keys(e);return r.length!==Object.keys(t).length?!1:r.every(o=>e[o]===t[o])},Bl=({children:e,label:t="",skus:r,sku:o,setSku:s})=>n.jsxs(n.Fragment,{children:[n.jsx("div",{className:Ge["notify--selector--header"],children:e}),n.jsxs(Xe.Root,{className:Ge["notify--selector"],children:[n.jsx(Xe.Title,{title:t}),n.jsx(Xe.List,{children:Array.isArray(r)&&r.map((i,a)=>{const c=Jm(o,i);return n.jsx(Xe.Option,{active:c,onClick:()=>s(c?null:i),text:String(i.size),type:"size"},a)})})]})]});Bl.displayName="Notify.Selector";const Qs=({type:e,icon:t,title:r,subtitle:o})=>n.jsx("div",{className:Ge[`notify--status--${e}`],children:n.jsx(m.TextStructure.Root,{adornment:{start:n.jsx(m.Icon,{name:t,size:"large"})},children:n.jsxs(m.TextStructure.DivWrapper,{children:[n.jsx("h2",{children:r}),n.jsx("h3",{children:o})]})})}),Fl=({status:e,ICONS:t,PRODUCT_CARD_TEXTS:r})=>n.jsxs("div",{className:Ge["notify--status"],"data-status":e,children:[n.jsx(Qs,{...r.success,icon:t.check_circle,type:"success"}),n.jsx(Qs,{...r.error,icon:t.alert_circle,type:"error"})]});Fl.displayName="Notify.Status";const Cs=({color:e,open:t,setVisible:r,skus:o,sku:s,setSku:i,ICONS:a,NEWSLETTER_CONFIGS:c,NOTIFY_INFO:l,PRODUCT_CARD_TEXTS:u,Z_INDEX_WAR:f})=>{const[h,d]=x.useState(!1),[p,g]=x.useState(null),{isMobile:y}=le();return n.jsxs(m.Modal.Root,{isMobile:y??!1,isOpen:t,setIsOpen:r,variant:y?"sideBottom":"sideLeft",style:{zIndex:f.modal},className:Ge["modal-modifier"],children:[n.jsx(m.Modal.Header,{navigation:"top",className:Ge["notify--header-modifier"],children:n.jsx(Nl,{isMobile:y??!1,ICONS:a,NOTIFY_INFO:l})}),n.jsxs(m.Modal.Body,{className:Ge["notify--modal--body"],children:[n.jsxs("div",{className:Ge["notify--container"],children:[n.jsxs(Bl,{label:l.selector_label,sku:s,skus:o,setSku:i,children:[n.jsx("p",{children:l.subtitle}),n.jsx("span",{children:l.description})]}),n.jsx(kl,{delay:4e3,sku:s,setStatus:g,setIsLoading:d,color:e,NEWSLETTER_CONFIGS:c,NOTIFY_INFO:l}),n.jsx(Ll,{isLoading:h}),n.jsx("div",{className:Ge["notify--selector--header"],children:n.jsx("span",{children:l.legal})})]}),n.jsx(Fl,{status:p,ICONS:a,PRODUCT_CARD_TEXTS:u})]})]})};Cs.displayName="Notify";const Rr=({skus:e,ICONS:t,NEWSLETTER_CONFIGS:r,NOTIFY_INFO:o,PRODUCT_CARD_TEXTS:s,Z_INDEX_WAR:i,...a})=>{const c=Er(e??[]);return n.jsx(Cs,{skus:c,ICONS:t,NEWSLETTER_CONFIGS:r,NOTIFY_INFO:o,PRODUCT_CARD_TEXTS:s,Z_INDEX_WAR:i,...a})};Rr.displayName="PDC.Notification";const ql=x.createContext({}),Hl=({banners:e,children:t})=>{const{searchParams:r,ITEMS_PER_PAGE:o,ICONS:s,NEWSLETTER_CONFIGS:i,NOTIFY_INFO:a,PRODUCT_CARD_TEXTS:c,Z_INDEX_WAR:l}=Le(),{router:u}=xe(),{sendDataLayerEvent:f}=ce(),{isMobile:h}=le(),{state:d}=$e(),{addPage:p,createPages:g,updateProducts:y,..._}=Km(),b=h?8:16,S=h?2:4,v=x.useRef(!1),j=x.useRef(d),[P,E]=x.useState(!1),[C,R]=x.useState(null),[T,w]=x.useState([]),I=x.useCallback(q=>{q&&"pagination"in q&&f({functionKey:"productListEvent",data:{event:"view_item_list",commonData:{products:q.products}}})},[f]),N=x.useCallback(q=>{if(q.pagination.nextPage===!0){const B=q.page+1,V=Bo(e,B,S,o);p({...d,page:B},V,I)}},[p,e,I,S,o,d]),z=x.useCallback(q=>{q.loading===!1&&y({...d,page:q.page},I)},[I,y,d]),k=x.useCallback(q=>{const B=new URLSearchParams(r);q.page!==Number(B.get("page")??1)&&(B.set("page",String(q.page)),u.replace(`?${B.toString()}`,{scroll:!1}))},[u,r]),W=x.useCallback((q,B)=>{const V=B?Er([B]):null;w(q),R(V!=null&&V.length?V[0]:null),E(!0)},[]);return x.useEffect(()=>{const q=!v.current,B=Cl(j.current,d),V=Bo(e,d.page,S);q?g(d,V,I,o):B&&(g(d,V,I,o),j.current=d),v.current=!0},[e,g,I,S,o,d]),n.jsxs(ql.Provider,{value:x.useMemo(()=>({..._,addPage:p,addNewPage:N,createPages:g,gap:b,columns:S,handleNotify:W,updatePage:z,updateProducts:y,updateParamPage:k}),[p,N,g,W,b,S,_,z,y,k]),children:[t,n.jsx(Rr,{open:P,sku:C,skus:T,setSku:R,setVisible:E,ICONS:s,NEWSLETTER_CONFIGS:i,NOTIFY_INFO:a,PRODUCT_CARD_TEXTS:c,Z_INDEX_WAR:l})]})},nt=()=>{const e=x.useContext(ql);if(e===void 0)throw new Error("PLPInfiniteScrollContext must be used within a ScrollInfiniteProvider");return e},Ul=x.createContext({gridBanners:void 0,banners:[]}),eh=({children:e,data:t,device:r,SectionZone:o,COMMON_PAGE_COLUMN_GAP_PDC:s})=>{const{isMobile:i}=le(),a=(t==null?void 0:t.sections.filter(h=>h.name!=="List Product Banners"))??[],c=a.slice(0,Xs),l=a.slice(Xs,a.length),u=t==null?void 0:t.sections.find(h=>h.name==="List Product Banners"),f=x.useMemo(()=>{var h,d;return((d=(h=u==null?void 0:u.data)==null?void 0:h.banners)==null?void 0:d.map(p=>({...p.banner,columns:p.bannerWidth,position_grid:p.bannerPosition})))??[]},[u]);return i&&r==="mobile"||!i&&r==="desktop"?n.jsxs(Ul.Provider,{value:{gridBanners:u,banners:f},children:[n.jsx(o,{data:c??[]}),n.jsxs(m.Utils.Column,{gap:s,className:m.helpers.classNameConcat("utils-column-modifier"),children:[e,n.jsx(o,{data:l??[]})]})]}):n.jsx(n.Fragment,{})},Ar=()=>{const e=x.useContext(Ul);return e===void 0&&console.error("Needs PLPContentContext on parent component"),e},Wl=x.createContext({}),Vl=({children:e,filters:t,PLP_FILTERS:r,...o})=>{var i;const s=(i=t.facets)==null?void 0:i.filter(a=>r.find(c=>c.key===a.key));return n.jsx(Wl.Provider,{value:x.useMemo(()=>({...o,filters:{...t,facets:s}}),[t,s,o]),children:e})},It=()=>{const e=x.useContext(Wl);if(e===void 0)throw new Error("useFilterContext must be used within a FilterProvider");return e},Gl=x.createContext({product:void 0}),th=({children:e,data:t,productId:r,COMMON_PAGE_COLUMN_GAP:o,SectionZone:s})=>n.jsxs(Gl.Provider,{value:{productId:r},children:[e,n.jsx(m.Utils.Column,{gap:o,className:m.helpers.classNameConcat("utils-column-modifier"),children:n.jsx(s,{data:(t==null?void 0:t.sections)??[]})})]}),Kl=()=>{const e=x.useContext(Gl);return e||console.error("use this hook only inside PDPContentProvider hierarchy"),e},rh=e=>e.normalize("NFD").replace(/[\u0300-\u036f]/g,"").replace(/\s+/g,"-").toLowerCase().trim();function nh(e,t=1e3){let r=!1;return(...o)=>{r||(e(...o),r=!0,setTimeout(()=>{r=!1},t))}}function oh(e,t=1e3){let r;return(...o)=>{clearTimeout(r),r=setTimeout(()=>{e(...o)},t)}}const Xl=(e,t)=>t.getTime()>e.getTime()?Math.abs(t.getTime()-e.getTime()):0,Lt=(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),sh=e=>{const t=Up.decodeJwt(e??"");return{email:t.sub,userId:t.userId}},ih=["name","email","phone","date","cpf","cep"],Zs={email:/\S+@\S+\.\S+/,name:new RegExp("^\\p{L}+( \\p{L}+)*$","u"),phone:/^\d{10,11}|\(\d{2}\)\s?\d{4,5}-\d{4}$/,date:/^\d{6,8}|^\d{2}\/\d{2}\/\d{2,4}$/,cep:/^\d{5}[-]?\d{3}$/,cpf:/^\d{11}|\d{3}\.\d{3}\.?\d{3,5}\-[\d]{2}$/},Yl=({type:e,input:t,required:r=!1})=>{if(typeof t!="string"||!r&&t===""||!Zs[e])return!0;const o=t.trim();return Zs[e].test(o)},ah=e=>{const t=/\/(\d+)-\d+-\d+\/(.+?)\./,r=typeof e=="string"?e.match(t):null;return r?r[2].replace(/-/g," "):Om},ch=Object.freeze(Object.defineProperty({__proto__:null,FieldTypes:ih,debounce:oh,getAltTextFromUrl:ah,getAuthenticatedUser:sh,getCookie:Tl,getDaysHoursMinutesSeconds:Lt,getMilliSeconds:Xl,removeAccentsAndReplaceSpaces:rh,setCookie:bs,throttle:nh,validateInput:Yl},Symbol.toStringTag,{value:"Module"})),lh=({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}},uh=({formData:e,mountedFields:t,inputsStatus:r,hasTermsAndConditions:o,checkboxRef:s,setFormStatus:i})=>{let a=!1,c=!1;const l={...r};return o&&!s.current&&(i("unchecked"),a=!0),e.forEach((u,f)=>{var p;if(f==="terms-and-conditions")return;const h=(p=t[f])==null?void 0:p.required;if(h&&!u){l[f]="required",a=!0;return}Yl({type:t[f].type,input:u,required:h})||(l[f]="error",c=!0),typeof u=="string"&&e.set(f,u.toString().trim())}),{hasEmptyFields:a,hasErrors:c,inputStatusToUpdate:l}},Ql=x.createContext({}),Zl=({children:e,masterDataEmailField:t,fields:r,variant:o,CONSTANTS:{MASTER_DATA_ENTITY:s,NEWSLETTER_CONFIGS:i}})=>{const{sendDataLayerEvent:a}=ce(),c=o==="vertical"&&i.hasTermsAndConditions,{mountedFields:l,mountedInputsStatus:u}=x.useMemo(()=>lh({fields:r}),[r]),f=x.useRef(!1),[h,d]=x.useState("idle"),[p,g]=x.useState(u),y=async({searchFields:E,entity:C})=>{const R=await dt.post("/api/master-data/search",{body:{masterDataEntity:C,searchFields:E,headers:{"REST-Range":"resources=0-49"}}});return console.info(R),R.data},_=async({id:E,fieldsToBeUpdated:C,entity:R})=>(await dt.post("/api/master-data/update",{dataEntityName:R,id:E,fieldsToBeUpdated:C})).status,b=x.useCallback(async({payload:E,response:C},R,T)=>{const{email:w,...I}=E,[N]=await y({searchFields:{[R]:w},entity:T??s.newsletter});return N&&await _({id:N.id,fieldsToBeUpdated:I,entity:T??s.newsletter})!==204?{...C,status:"error"}:{...C,status:"success"}},[]),S=x.useCallback(async({formData:E},C,R)=>{const T={status:"idle",inputsStatus:{}},w={};E.forEach((I,N)=>{w[N]=I});try{const N=(await dt.post("/api/master-data",{body:{payload:w,masterDataEntity:C??s.newsletter}})).data;return(N==null?void 0:N.Message)==="duplicated entry"?b({payload:w,response:T},R,C):N!=null&&N.Id?{...T,status:"success"}:{...T,status:"error"}}catch(I){return console.error("error",I),{...T,status:"error"}}},[b]),v=x.useCallback(async(E,C,R)=>{E.preventDefault();const T=new FormData(E.target);C&&Object.keys(C).forEach(I=>{T.append(I,C[I])});const w=await S({formData:T},R??"",t);w&&(d(w==null?void 0:w.status),g(w.inputsStatus),w.status==="success"&&a({functionKey:"readyEvents",data:{event:"generate_lead"}}))},[t,S,d,g,a]),j=x.useCallback(E=>{const C=new FormData(E.currentTarget.parentElement),{hasEmptyFields:R,hasErrors:T,inputStatusToUpdate:w}=uh({formData:C,mountedFields:l,inputsStatus:p,hasTermsAndConditions:c,checkboxRef:f,setFormStatus:d});if(g(w),R||T){E.preventDefault();return}d("loading")},[l,p,c,f]),P=x.useCallback(()=>{d("idle"),g(u)},[u]);return n.jsx(Ql.Provider,{value:x.useMemo(()=>({formStatus:h,handleSubmit:v,setFormStatus:d,inputsStatus:p,setInputsStatus:g,hasTermsAndConditions:c,handleClickToSubmit:j,checkboxRef:f,masterDataEmailField:t,fields:r,variant:o,resetNewsletter:P}),[h,v,d,p,g,j,c,f,t,r,o,P]),children:e})},Ss=()=>{const e=x.useContext(Ql);if(e===void 0)throw new Error("useNewsletterContext must be used within a NewsletterProvider");return e},Jl={contexts:{addToCart:{hook:yt,provider:dl},cart:{hook:Ee,provider:Am},cms:{FlagsAndTags:{context:ns,hook:rt,provider:Wp}},newsletter:{hook:Ss,provider:Zl},events:{hook:ce,provider:Jp},global:{hook:le,provider:hm,mediator:Fc},header:{hook:Pe,provider:wm},menuMobile:{hook:ms,provider:ll},next:{hook:xe,provider:gm},pdp:{provider:Vp},PDPContent:{provider:th,hook:Kl},plp:{provider:Um,hook:vs},plpFilter:{hook:It,provider:Vl},PLPContent:{provider:eh,hook:Ar},plpInfinite:{provider:Hl,hook:nt},pdpdata:{provider:em},searchFacets:{hook:_l,provider:yl},searchProducts:{hook:Wt,provider:_s},searchRoot:{hook:gs,provider:hs},searchSearch:{hook:$e,provider:ys},searchSuggestedTerms:{hook:Fm,provider:Bm},searchTopSearchs:{hook:Hm,provider:qm},session:{hook:At,provider:Zm},ui:{hook:Ft,provider:Bc}},hooks:{useBackPDC:uc,useClipboard:tm,useDisableZoom:xc,useLocalStorage:nm,useOnScreen:os,useSentinel:wr,useTouchZoomPan:bc},stores:{cart:pm,header:_m,pdp:Sm,wishlist:Pm}},dh={cart:um,events:Zp,plp:Vm,product:U.productHelpers,utils:ch},Ps={helpers:dh},Fe={"add-to-cart--card":"_add-to-cart--card_4v41y_1","add-to-cart--card--content":"_add-to-cart--card--content_4v41y_7","add-to-cart--card--name":"_add-to-cart--card--name_4v41y_16","add-to-cart--card--price-quantity":"_add-to-cart--card--price-quantity_4v41y_46","add-to-cart--card--style-size":"_add-to-cart--card--style-size_4v41y_53","add-to-cart--content":"_add-to-cart--content_4v41y_71","add-to-cart--content--title":"_add-to-cart--content--title_4v41y_78","add-to-cart--footer":"_add-to-cart--footer_4v41y_102","add-to-cart--footer--total":"_add-to-cart--footer--total_4v41y_108","add-to-cart--items":"_add-to-cart--items_4v41y_148","add-to-cart--tooltip":"_add-to-cart--tooltip_4v41y_198","add-to-cart__modal":"_add-to-cart__modal_4v41y_211"},eu=({brand:e,className:t,name:r,...o})=>n.jsxs("div",{...o,className:m.helpers.classNameConcat(Fe["add-to-cart--card--name"],t),children:[n.jsx(m.Tag,{style:{textTransform:"uppercase"},size:"small",variant:"quaternary",title:e,children:e}),n.jsx(m.TextStructure.Root,{children:n.jsx(m.TextStructure.DivWrapper,{alignContent:"flex-start",alignItems:"flex-start",children:n.jsx("p",{className:"typography-style-body-md",children:r})})})]});eu.displayName="AddToCart.Card.Name";const tu=({className:e,listPrice:t,price:r,quantity:o,productId:s,...i})=>{const a=U.formatPriceToCurrency(r/100),c=U.formatPriceToCurrency(t/100);return n.jsx("div",{...i,className:m.helpers.classNameConcat(Fe["add-to-cart--card--price-quantity"],e),children:n.jsx(m.ProductInfo.Root,{size:"small",layout:"vertical",children:n.jsx(m.ProductInfo.Wrapper,{size:"small",layout:"vertical",children:n.jsx(m.ProductInfo.ValuesWrapper,{children:r!==t?n.jsxs(n.Fragment,{children:[n.jsx(m.ProductInfo.Price,{label:"originalPrice",value:a,size:"small"},"price-list"),n.jsx(m.ProductInfo.Price,{label:"discountPrice",value:c,size:"small"},"price-low")]}):n.jsx(m.ProductInfo.Price,{label:"defaultPrice",value:c,size:"small"},"price-low")})})})})};tu.displayName="AddToCart.Card.PriceQuantity";const fh="_skeleton_12b79_1",ph={skeleton:fh},ru=({style:e})=>n.jsx("div",{style:e,className:ph.skeleton}),mh="_image_lypfr_1",hh={image:mh},gh=({alt:e,className:t,objectFit:r,...o})=>{const{nextimage:s}=xe();return n.jsx(s,{quality:90,...o,alt:e??"",className:m.helpers.classNameConcat(hh.image,t),"data-object-fit":r??"cover"})},yh=({videoRef:e,...t})=>n.jsx("video",{...t,ref:e,children:n.jsx("track",{kind:"captions"})}),ze={Image:gh,Video:yh},nu=({className:e,productGroupID:t,size:r,texture:o,...s})=>{const{CONSTANTS:{TEXTURE_IMAGE:i,TOGGLE_STYLE_MODIFIER:a}}=yt(),[c,l]=x.useState(o??"");return x.useEffect(()=>{c||fetch("/api/catalog/product/info",{method:"POST",priority:"low",body:JSON.stringify({ids:[t]})}).then(u=>u.json()).then(u=>{const f=u.data[0].items[0];if(f){const h=f.images.find(d=>i.includes(d.imageLabel));h!=null&&h.imageUrl?l(h.imageUrl):l(f.images[0].imageUrl)}}).catch(u=>{console.error(u)})},[c,t]),n.jsxs("div",{...s,className:m.helpers.classNameConcat(Fe["add-to-cart--card--style-size"],e),children:[n.jsx(m.ToggleStyle.Wrapper,{size:"x-small",style:a,children:n.jsx(m.ToggleStyle.Texture,{children:c?n.jsx(ze.Image,{alt:"",src:c??"",width:164,height:164,style:a}):n.jsx(ru,{})})}),n.jsx(m.Utils.Divider,{direction:"vertical",size:"medium",style:{height:24}}),r&&n.jsxs(m.ToggleSize.Wrapper,{size:"small",title:"wrapper-texture",children:[n.jsx(m.ToggleSize.DisabledAdornment,{title:"disabled-adornment-texture"}),n.jsx(m.ToggleSize.Text,{children:r})]})]})};nu.displayName="AddToCart.Card.StyleSize";const{helpers:_h}=Ps,ou=({className:e,item:t,texture:r,...o})=>{const{itemOffered:{name:s,brand:i,skuName:a,isVariationOf:{productGroupID:c}},quantity:l,price:u,sellingPrice:f}=t,{CONSTANTS:{NAME_SPLIT_SYMBOL:h}}=yt(),{size:d}=_h.product.getColorAndSizeFromSkuName(a??s,h);return n.jsxs("div",{...o,className:m.helpers.classNameConcat(Fe["add-to-cart--card--content"],e),children:[n.jsx(eu,{brand:i.name,name:s}),n.jsx(tu,{price:u,listPrice:f,quantity:l,productId:t.id}),n.jsx(nu,{size:d,texture:r,productGroupID:c})]})};ou.displayName="AddToCart.Card.Content";const su=({image:e,thumbnail:t=!1})=>n.jsx(ze.Image,{alt:e.alternateName??"image","data-thumbnail":t,height:t?152:120,src:e.url,width:t?152:94});su.displayName="AddToCart.Card";const iu=({className:e,item:t,texture:r,thumbnail:o,...s})=>{const{itemOffered:{image:[i]}}=t,a=U.updatedResizedImg(i.url,{width:200,height:300});return n.jsxs("div",{...s,className:m.helpers.classNameConcat(Fe["add-to-cart--card"],e),children:[n.jsx(su,{image:{alternateName:i.alternateName||"Produto",url:a||""},thumbnail:o}),!o&&n.jsx(ou,{item:t,texture:r})]})};iu.displayName="AddToCart.Card";const au=({className:e,children:t,title:r,...o})=>n.jsxs("div",{...o,className:m.helpers.classNameConcat(Fe["add-to-cart--content"],e),children:[n.jsx("div",{className:Fe["add-to-cart--content--title"],children:r&&n.jsx("h2",{children:r})}),t,n.jsx(ft.Footer,{})]});au.displayName="AddToCart.Layout.Content";const cu=({className:e,...t})=>{var p,g;const{isMobile:r,handleClose:o,CONSTANTS:{ADD_TO_CART:s}}=yt(),{cartStore:{totalizers:i},setIsOpen:a}=Ee(),c=(p=i.find(y=>y.id==="Discounts"))==null?void 0:p.value,l=((g=i.find(y=>y.id==="Items"))==null?void 0:g.value)??0,u=i.find(y=>y.id==="Shipping"),h=(l-Math.abs(c??0)+((u==null?void 0:u.value)??0))/100,d=U.formatPriceToCurrency(h??0);return n.jsxs("div",{...t,className:m.helpers.classNameConcat(Fe["add-to-cart--footer"],e),children:[n.jsxs("div",{className:Fe["add-to-cart--footer--total"],children:[n.jsx("span",{children:"Subtotal:"}),n.jsx("span",{children:d})]}),n.jsx(m.Button,{size:"medium",variant:"primary","data-close":!0,onClick:()=>a(!0),children:s.footer.bag}),r?n.jsx(m.Button,{"data-close":!0,size:"medium",variant:"tertiary",children:s.footer.keep_buying}):n.jsx(m.Button,{onClick:()=>o(),size:"medium",variant:"tertiary",children:s.footer.keep_buying})]})};cu.displayName="AddToCart.Layout.Footer";const lu=({children:e,className:t,thumbnail:r=!1,...o})=>{const{cartStore:{options:s}}=Ee(),{recentlyAddedProducts:i}=Ft(),a=i.length>3?4:i.length;return n.jsxs("div",{...o,className:Fe["add-to-cart--items"],"data-thumbnail":r,children:[Array.isArray(i)&&i.filter((c,l)=>l<a).map(c=>{var u;const l=(u=s==null?void 0:s.find(f=>f.id===c.itemOffered.isVariationOf.productGroupID))==null?void 0:u.texture;return n.jsx(ft.Card,{item:c,thumbnail:r,texture:l},c.itemOffered.sku)}),e]})};lu.displayName="AddToCart.Layout.Items";const uu=({children:e,Z_INDEX_WAR:t})=>{const{isOpen:r,setIsOpen:o}=yt(),{isMobile:s}=le();return n.jsxs(m.Modal.Root,{"data-modal":"add-to-cart--modal",className:Fe["add-to-cart__modal"],isMobile:s??!1,isOpen:r,setIsOpen:o,variant:"sideBottom",style:{zIndex:t.modal},children:[n.jsx(m.Modal.Header,{navigation:"top",children:n.jsx(m.Modal.Controls,{navigation:"top",isMobile:!0})}),n.jsx(m.Modal.Body,{children:e})]})};uu.displayName="AddToCart.Modal";const vh=({children:e})=>{const{count:t,handleClose:r,setIsOpen:o}=yt(),s=x.useRef(t);return x.useEffect(()=>{t>s.current&&o(!0),t<s.current&&s.current>=1&&r(),s.current=t},[t,r,o]),n.jsx(n.Fragment,{children:e})},du=({children:e,component:t,CONSTANTS:r,...o})=>{const{recentlyAddedProducts:s}=Ft(),{isMobile:i}=le(),a=s.length>3?4:s.length;return n.jsx(dl,{...o,count:a,isMobile:i,CONSTANTS:r,children:n.jsx(vh,{children:i?n.jsxs(n.Fragment,{children:[n.jsx(ft.Modal,{Z_INDEX_WAR:r.Z_INDEX_WAR,children:t}),e]}):n.jsx(ft.Tooltip,{component:t,style:{width:350},Z_INDEX_WAR:r.Z_INDEX_WAR,children:e})})})};du.displayName="AddToCart.Root";const fu=({children:e,component:t,Z_INDEX_WAR:r,...o})=>{const{contentRef:s,left:i,isLeaving:a,target:c,isOpen:l,top:u}=yt();return n.jsx(m.Tooltip.Root,{arrow:"top-right",component:n.jsx("div",{...o,ref:s,children:t}),id:"add-to-cart--tooltip",className:Fe["add-to-cart--tooltip"],style:{zIndex:r.modal},isLeaving:a,isOpen:l,left:i,size:"medium",position:"top",top:u,children:n.jsx("div",{className:Fe["add-to-cart--tooltip"],ref:c,children:e})})};fu.displayName="AddToCart.Tooltip";const ft={Card:iu,Content:au,Footer:cu,Items:lu,Modal:uu,Root:du,Tooltip:fu},ws=({title:e,...t})=>{const{recentlyAddedProducts:r}=Ft(),{isMobile:o}=le(),s=r.length>3?4:r.length,i=r.length>(s??1),a=r.length>1;return n.jsx(ft.Root,{isMobile:o,count:r.length,component:n.jsx(ft.Content,{title:e,children:n.jsx(ft.Items,{thumbnail:a,children:i&&n.jsx(m.Badge.Count,{count:r.length-s,size:"medium",variant:"secondary"})})}),...t})};ws.displayName="AddToCart";const Js={"backtotop-btn":"_backtotop-btn_1shb6_1","card-modifier":"_card-modifier_1shb6_27"},xh=({children:e,className:t,adornment:r,iconPosition:o,scrollToOptions:s,style:i,...a})=>{const c={top:(s==null?void 0:s.top)??0,left:(s==null?void 0:s.left)??0,behavior:(s==null?void 0:s.behavior)??"smooth"},u=o&&r?{flexDirection:{top:"column",bottom:"column-reverse",left:"row",right:"row-reverse"}[o]}:{},f=()=>{window&&window.document.body.scrollTo({...c})};return n.jsx(m.Card,{...a,shadow:!0,padding:"small",className:m.helpers.classNameConcat(Js["card-modifier"],t),style:{...i,padding:0},children:n.jsxs("button",{className:Js["backtotop-btn"],onClick:f,style:{...u},"data-orientation":o,children:[r,e]})})},bh="_container_1sy8s_16",at={"carousel-container":"_carousel-container_1sy8s_1","add-cart-container":"_add-cart-container_1sy8s_8",container:bh,"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"},jh=({selectedProducts:e,handleAddAllToCart:t,CONSTANTS:r})=>{const o=Object.values(e.products).length;return n.jsxs("div",{className:at["add-itens-to-cart-container"],children:[n.jsxs("div",{className:at["add-itens-to-cart-container-values"],children:[n.jsx("div",{className:at["add-itens-to-cart-qty-products"],children:n.jsx("span",{children:o===0?r.BUY_PACKAGE.group_cart.select_all_product:`${o} ${o===1?r.BUY_PACKAGE.group_cart.select_product:r.BUY_PACKAGE.group_cart.select_product+"s"}`})}),n.jsx("div",{className:at["add-itens-to-cart-total"],children:n.jsx("span",{children:U.freightParsePrice({valueInCents:e.totalPrice*100,hasFree:!1,freeTaxMessage:r.FREIGHT_CALCULATION.messages.free_tax})})})]}),n.jsx(m.Button,{onClick:t,className:at["add-button"],size:"large",disabled:o===0,variant:"primary",children:r.BUY_BUTTON_LABELS.add_to_cart})]})},Ch=e=>e.reduce((t,r)=>{var s;const o=t.find(i=>i.node.id===r.node.id);if(!o)return[...t,r];if((s=o==null?void 0:o.node.isVariantOf)!=null&&s.hasVariant){const i=o.node.isVariantOf.hasVariant,a=r.node.isVariantOf.hasVariant;i&&a&&(o.node.isVariantOf.hasVariant=[...i,...a])}return t},[]),Sh=({selectedProduct:e,productId:t,prevState:r,mainSellerId:o})=>{const{products:s,totalPrice:i}=r;try{if(!e){const{[t]:u,...f}=s;return{...r,totalPrice:i-u.price,products:f}}const a=U.getValidOffer(e.offers.offers,o);if(!a)return r;const c=a.seller.identifier,l=a.price;if(s[t]){const{price:u}=s[t];return s[t]={...s[t],price:l,id:e.sku,seller:c},{totalPrice:i+l-u,products:{...s}}}return{totalPrice:i+l,products:{...s,[t]:{id:e.sku,price:l,seller:c,productId:t}}}}catch(a){return console.error("Error handling SKU selection:",a),r}},pu=x.createContext({}),Ph=({children:e,item:t,index:r,shelfTitle:o,...s})=>{const[i,a]=x.useState(null),c=x.useRef(null),l=x.useRef({availableSkus:[],priceInfo:{price:0,listPrice:0}}),{sendDataLayerEvent:u,itemListRef:f}=ce(),h=y=>{u({functionKey:"productEvents",data:{commonData:{...t,availableSizes:l.current.availableSkus,...l.current.priceInfo},customData:{index:r+1},event:y}})},d=()=>{h("add_to_wishlist")},p=()=>{u({functionKey:"skuEvents",data:{event:"add_to_cart",commonData:{products:[{...t,...l.current.priceInfo}]},supportData:{selectedSku:i,selectedSkus:[i]},customData:{index:r}}})},g=()=>{o&&(f.current={item_list_name:o}),h("select_item")};return n.jsx(pu.Provider,{value:x.useMemo(()=>({...s,index:r,item:t,element:c,selectedSku:i,setSelectedSku:a,eventDataRef:l,sendAddToWishlistEvent:d,sendSelectItemEvent:g,sendAddToCartEvent:p}),[s,t,c,i]),children:e})},Ve=()=>{const e=x.useContext(pu);if(e===void 0)throw new Error("useProductCardContext must be used within a ProductCardProvider");return e},Ae={"product-card--actions":"_product-card--actions_nmzk4_1","product-card--actions--group":"_product-card--actions--group_nmzk4_9","product-card--actions--selectors":"_product-card--actions--selectors_nmzk4_21","product-card--body":"_product-card--body_nmzk4_33","product-card--header":"_product-card--header_nmzk4_47","product-card--footer":"_product-card--footer_nmzk4_67","product-card--image":"_product-card--image_nmzk4_90","product-card--image--container":"_product-card--image--container_nmzk4_97","product-card--outstock":"_product-card--outstock_nmzk4_133","product-card--price":"_product-card--price_nmzk4_155","product-card--title":"_product-card--title_nmzk4_177","product-card--title--tag":"_product-card--title--tag_nmzk4_183","product-card--title--content":"_product-card--title--content_nmzk4_200","product-card--selectors--size":"_product-card--selectors--size_nmzk4_240","product-card--selectors--size--button":"_product-card--selectors--size--button_nmzk4_266","product-card--selectors--size--skus":"_product-card--selectors--size--skus_nmzk4_275","product-card--selectors--style":"_product-card--selectors--style_nmzk4_289","product-card--selectors--style--more":"_product-card--selectors--style--more_nmzk4_299","product-card--video":"_product-card--video_nmzk4_316","product-card--wrapper":"_product-card--wrapper_nmzk4_342"},mu=({callback:e,children:t,className:r,data:o,isKit:s,...i})=>{const{item:{availability:{status:a},image:c}}=Ve();return a?n.jsxs("div",{...i,className:m.helpers.classNameConcat(Ae["product-card--actions"],r),children:[n.jsxs(ve.Wrapper,{type:"actions--group",children:[n.jsx(ve.Price,{}),n.jsx("div",{className:Ae["product-card--actions--selectors"],children:!s&&n.jsx(ve.StyleSelector,{data:o,images:c,callback:e})})]}),t]}):null};mu.displayName="ProductCard.Actions";const hu=({className:e,isKit:t,...r})=>{const{addToCart:o}=Ee(),{isMobile:s=!1,selectedSku:i,outStock:a,item:c,sendAddToCartEvent:l,CONSTANTS:u}=Ve(),f=()=>{var p;if(!i)return;const d=U.getValidOffer(i.offers.offers,u.StoreConfig_MainSellerId);d&&o({id:i==null?void 0:i.sku,quantity:1,seller:d.seller.identifier},{id:c.id,texture:(p=c==null?void 0:c.image.find(g=>u.TEXTURE_IMAGE.includes(g.alternateName)))==null?void 0:p.url}),l()},h=i?u.BUY_BUTTON_LABELS.add_to_cart:u.BUY_BUTTON_LABELS.select_size;return n.jsx(m.Button,{...r,className:m.helpers.classNameConcat(e,"buy-button"),disabled:!t&&!i&&!a,size:s?"medium":"large",variant:a?"secondary":"primary",onClick:a?r.onClick:f,children:a?"Avise-me quando chegar":h})};hu.displayName="ProductCard.Actions.BuyButton";const wh={"snackbar-modifier":"_snackbar-modifier_1va2l_1"},Ct=({size:e,adornment:t,title:r,subtitle:o,supportChildren:s,className:i,Z_INDEX_WAR:a,...c})=>n.jsxs(m.SnackBar.Structure,{...c,size:e,className:m.helpers.classNameConcat(wh["snackbar-modifier"],i),width:360,style:{zIndex:a.snackbar},children:[n.jsx(m.SnackBar.Content,{adornment:t,title:r,subtitle:o}),s&&n.jsx(m.SnackBar.Support,{children:s})]});Ct.displayName="SnackBar";const Dt={"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 gu=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Ir(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function Eh(e){if(e.__esModule)return e;var t=e.default;if(typeof t=="function"){var r=function o(){return this instanceof o?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};r.prototype=t.prototype}else r={};return Object.defineProperty(r,"__esModule",{value:!0}),Object.keys(e).forEach(function(o){var s=Object.getOwnPropertyDescriptor(e,o);Object.defineProperty(r,o,s.get?s:{enumerable:!0,get:function(){return e[o]}})}),r}var Fo={exports:{}},Oe={};Oe._=Oe._interop_require_default=Rh;function Rh(e){return e&&e.__esModule?e:{default:e}}var tr={exports:{}},Wr={},ei;function yu(){return ei||(ei=1,function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(a,c){for(var l in c)Object.defineProperty(a,l,{enumerable:!0,get:c[l]})}t(e,{searchParamsToUrlQuery:function(){return r},urlQueryToSearchParams:function(){return s},assign:function(){return i}});function r(a){const c={};return a.forEach((l,u)=>{typeof c[u]>"u"?c[u]=l:Array.isArray(c[u])?c[u].push(l):c[u]=[c[u],l]}),c}function o(a){return typeof a=="string"||typeof a=="number"&&!isNaN(a)||typeof a=="boolean"?String(a):""}function s(a){const c=new URLSearchParams;return Object.entries(a).forEach(l=>{let[u,f]=l;Array.isArray(f)?f.forEach(h=>c.append(u,o(h))):c.set(u,o(f))}),c}function i(a){for(var c=arguments.length,l=new Array(c>1?c-1:0),u=1;u<c;u++)l[u-1]=arguments[u];return l.forEach(f=>{Array.from(f.keys()).forEach(h=>a.delete(h)),f.forEach((h,d)=>a.append(d,h))}),a}}(Wr)),Wr}var Vr={},wt={};function _u(e){if(typeof WeakMap!="function")return null;var t=new WeakMap,r=new WeakMap;return(_u=function(o){return o?r:t})(e)}wt._=wt._interop_require_wildcard=Ah;function Ah(e,t){if(!t&&e&&e.__esModule)return e;if(e===null||typeof e!="object"&&typeof e!="function")return{default:e};var r=_u(t);if(r&&r.has(e))return r.get(e);var o={},s=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if(i!=="default"&&Object.prototype.hasOwnProperty.call(e,i)){var a=s?Object.getOwnPropertyDescriptor(e,i):null;a&&(a.get||a.set)?Object.defineProperty(o,i,a):o[i]=e[i]}return o.default=e,r&&r.set(e,o),o}var ti;function vu(){return ti||(ti=1,function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(l,u){for(var f in u)Object.defineProperty(l,f,{enumerable:!0,get:u[f]})}t(e,{formatUrl:function(){return i},urlObjectKeys:function(){return a},formatWithValidation:function(){return c}});const o=wt._(yu()),s=/https?|ftp|gopher|file/;function i(l){let{auth:u,hostname:f}=l,h=l.protocol||"",d=l.pathname||"",p=l.hash||"",g=l.query||"",y=!1;u=u?encodeURIComponent(u).replace(/%3A/i,":")+"@":"",l.host?y=u+l.host:f&&(y=u+(~f.indexOf(":")?"["+f+"]":f),l.port&&(y+=":"+l.port)),g&&typeof g=="object"&&(g=String(o.urlQueryToSearchParams(g)));let _=l.search||g&&"?"+g||"";return h&&!h.endsWith(":")&&(h+=":"),l.slashes||(!h||s.test(h))&&y!==!1?(y="//"+(y||""),d&&d[0]!=="/"&&(d="/"+d)):y||(y=""),p&&p[0]!=="#"&&(p="#"+p),_&&_[0]!=="?"&&(_="?"+_),d=d.replace(/[?#]/g,encodeURIComponent),_=_.replace("#","%23"),""+h+y+d+_+p}const a=["auth","hash","host","hostname","href","path","pathname","port","protocol","query","search","slashes"];function c(l){return process.env.NODE_ENV==="development"&&l!==null&&typeof l=="object"&&Object.keys(l).forEach(u=>{a.includes(u)||console.warn("Unknown key passed via urlObject into url.format: "+u)}),i(l)}}(Vr)),Vr}var Gr={},ri;function Ih(){return ri||(ri=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"omit",{enumerable:!0,get:function(){return t}});function t(r,o){const s={};return Object.keys(r).forEach(i=>{o.includes(i)||(s[i]=r[i])}),s}}(Gr)),Gr}var Kr={},ni;function Nr(){return ni||(ni=1,function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(j,P){for(var E in P)Object.defineProperty(j,E,{enumerable:!0,get:P[E]})}t(e,{WEB_VITALS:function(){return r},execOnce:function(){return o},isAbsoluteUrl:function(){return i},getLocationOrigin:function(){return a},getURL:function(){return c},getDisplayName:function(){return l},isResSent:function(){return u},normalizeRepeatedSlashes:function(){return f},loadGetInitialProps:function(){return h},SP:function(){return d},ST:function(){return p},DecodeError:function(){return g},NormalizeError:function(){return y},PageNotFoundError:function(){return _},MissingStaticPage:function(){return b},MiddlewareNotFoundError:function(){return S},stringifyError:function(){return v}});const r=["CLS","FCP","FID","INP","LCP","TTFB"];function o(j){let P=!1,E;return function(){for(var C=arguments.length,R=new Array(C),T=0;T<C;T++)R[T]=arguments[T];return P||(P=!0,E=j(...R)),E}}const s=/^[a-zA-Z][a-zA-Z\d+\-.]*?:/,i=j=>s.test(j);function a(){const{protocol:j,hostname:P,port:E}=window.location;return j+"//"+P+(E?":"+E:"")}function c(){const{href:j}=window.location,P=a();return j.substring(P.length)}function l(j){return typeof j=="string"?j:j.displayName||j.name||"Unknown"}function u(j){return j.finished||j.headersSent}function f(j){const P=j.split("?");return P[0].replace(/\\/g,"/").replace(/\/\/+/g,"/")+(P[1]?"?"+P.slice(1).join("?"):"")}async function h(j,P){if(process.env.NODE_ENV!=="production"){var E;if((E=j.prototype)!=null&&E.getInitialProps){const T='"'+l(j)+'.getInitialProps()" is defined as an instance method - visit https://nextjs.org/docs/messages/get-initial-props-as-an-instance-method for more information.';throw new Error(T)}}const 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 T='"'+l(j)+'.getInitialProps()" should resolve to an object. But found "'+R+'" instead.';throw new Error(T)}return process.env.NODE_ENV!=="production"&&Object.keys(R).length===0&&!P.ctx&&console.warn(""+l(j)+" returned an empty object from `getInitialProps`. This de-optimizes and prevents automatic static optimization. https://nextjs.org/docs/messages/empty-object-getInitialProps"),R}const d=typeof performance<"u",p=d&&["mark","measure","getEntriesByName"].every(j=>typeof performance[j]=="function");class g extends Error{}class y extends Error{}class _ extends Error{constructor(P){super(),this.code="ENOENT",this.name="PageNotFoundError",this.message="Cannot find module for page: "+P}}class b extends Error{constructor(P,E){super(),this.message="Failed to load static file for page: "+P+" "+E}}class 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})}}(Kr)),Kr}var rr={exports:{}},Xr={},oi;function xu(){return oi||(oi=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"removeTrailingSlash",{enumerable:!0,get:function(){return t}});function t(r){return r.replace(/\/$/,"")||"/"}}(Xr)),Xr}var Yr={},si;function Es(){return si||(si=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"parsePath",{enumerable:!0,get:function(){return t}});function t(r){const o=r.indexOf("#"),s=r.indexOf("?"),i=s>-1&&(o<0||s<o);return i||o>-1?{pathname:r.substring(0,i?s:o),query:i?r.substring(s,o>-1?o:void 0):"",hash:o>-1?r.slice(o):""}:{pathname:r,query:"",hash:""}}}(Yr)),Yr}var ii;function Tr(){return ii||(ii=1,function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"normalizePathTrailingSlash",{enumerable:!0,get:function(){return s}});const r=xu(),o=Es(),s=i=>{if(!i.startsWith("/")||process.env.__NEXT_MANUAL_TRAILING_SLASH)return i;const{pathname:a,query:c,hash:l}=(0,o.parsePath)(i);return process.env.__NEXT_TRAILING_SLASH?/\.[^/]+\/?$/.test(a)?""+(0,r.removeTrailingSlash)(a)+c+l:a.endsWith("/")?""+a+c+l:a+"/"+c+l:""+(0,r.removeTrailingSlash)(a)+c+l};(typeof t.default=="function"||typeof t.default=="object"&&t.default!==null)&&typeof t.default.__esModule>"u"&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)}(rr,rr.exports)),rr.exports}var Qr={},nr={exports:{}},Zr={},ai;function bu(){return ai||(ai=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"pathHasPrefix",{enumerable:!0,get:function(){return r}});const t=Es();function r(o,s){if(typeof o!="string")return!1;const{pathname:i}=(0,t.parsePath)(o);return i===s||i.startsWith(s+"/")}}(Zr)),Zr}var ci;function Nh(){return ci||(ci=1,function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"hasBasePath",{enumerable:!0,get:function(){return s}});const r=bu(),o=process.env.__NEXT_ROUTER_BASEPATH||"";function s(i){return(0,r.pathHasPrefix)(i,o)}(typeof t.default=="function"||typeof t.default=="object"&&t.default!==null)&&typeof t.default.__esModule>"u"&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)}(nr,nr.exports)),nr.exports}var li;function ju(){return li||(li=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"isLocalURL",{enumerable:!0,get:function(){return o}});const t=Nr(),r=Nh();function o(s){if(!(0,t.isAbsoluteUrl)(s))return!0;try{const i=(0,t.getLocationOrigin)(),a=new URL(s,i);return a.origin===i&&(0,r.hasBasePath)(a.pathname)}catch{return!1}}}(Qr)),Qr}var Jr={},en={},ui;function Th(){return ui||(ui=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"getSortedRoutes",{enumerable:!0,get:function(){return r}});class t{insert(s){this._insert(s.split("/").filter(Boolean),[],!1)}smoosh(){return this._smoosh()}_smoosh(s){s===void 0&&(s="/");const i=[...this.children.keys()].sort();this.slugName!==null&&i.splice(i.indexOf("[]"),1),this.restSlugName!==null&&i.splice(i.indexOf("[...]"),1),this.optionalRestSlugName!==null&&i.splice(i.indexOf("[[...]]"),1);const a=i.map(c=>this.children.get(c)._smoosh(""+s+c+"/")).reduce((c,l)=>[...c,...l],[]);if(this.slugName!==null&&a.push(...this.children.get("[]")._smoosh(s+"["+this.slugName+"]/")),!this.placeholder){const c=s==="/"?"/":s.slice(0,-1);if(this.optionalRestSlugName!=null)throw new Error('You cannot define a route with the same specificity as a optional catch-all route ("'+c+'" and "'+c+"[[..."+this.optionalRestSlugName+']]").');a.unshift(c)}return this.restSlugName!==null&&a.push(...this.children.get("[...]")._smoosh(s+"[..."+this.restSlugName+"]/")),this.optionalRestSlugName!==null&&a.push(...this.children.get("[[...]]")._smoosh(s+"[[..."+this.optionalRestSlugName+"]]/")),a}_insert(s,i,a){if(s.length===0){this.placeholder=!1;return}if(a)throw new Error("Catch-all must be the last part of the URL.");let c=s[0];if(c.startsWith("[")&&c.endsWith("]")){let f=function(h,d){if(h!==null&&h!==d)throw new Error("You cannot use different slug names for the same dynamic path ('"+h+"' !== '"+d+"').");i.forEach(p=>{if(p===d)throw new Error('You cannot have the same slug name "'+d+'" repeat within a single dynamic path');if(p.replace(/\W/g,"")===c.replace(/\W/g,""))throw new Error('You cannot have the slug names "'+p+'" and "'+d+'" differ only by non-word symbols within a single dynamic path')}),i.push(d)},l=c.slice(1,-1),u=!1;if(l.startsWith("[")&&l.endsWith("]")&&(l=l.slice(1,-1),u=!0),l.startsWith("...")&&(l=l.substring(3),a=!0),l.startsWith("[")||l.endsWith("]"))throw new Error("Segment names may not start or end with extra brackets ('"+l+"').");if(l.startsWith("."))throw new Error("Segment names may not start with erroneous periods ('"+l+"').");if(a)if(u){if(this.restSlugName!=null)throw new Error('You cannot use both an required and optional catch-all route at the same level ("[...'+this.restSlugName+']" and "'+s[0]+'" ).');f(this.optionalRestSlugName,l),this.optionalRestSlugName=l,c="[[...]]"}else{if(this.optionalRestSlugName!=null)throw new Error('You cannot use both an optional and required catch-all route at the same level ("[[...'+this.optionalRestSlugName+']]" and "'+s[0]+'").');f(this.restSlugName,l),this.restSlugName=l,c="[...]"}else{if(u)throw new Error('Optional route parameters are not yet supported ("'+s[0]+'").');f(this.slugName,l),this.slugName=l,c="[]"}}this.children.has(c)||this.children.set(c,new t),this.children.get(c)._insert(s.slice(1),i,a)}constructor(){this.placeholder=!0,this.children=new Map,this.slugName=null,this.restSlugName=null,this.optionalRestSlugName=null}}function r(o){const s=new t;return o.forEach(i=>s.insert(i)),s.smoosh()}}(en)),en}var tn={},di;function Oh(){return di||(di=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"isDynamicRoute",{enumerable:!0,get:function(){return r}});const t=/\/\[[^/]+?\](?=\/|$)/;function r(o){return t.test(o)}}(tn)),tn}var fi;function kh(){return fi||(fi=1,function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(s,i){for(var a in i)Object.defineProperty(s,a,{enumerable:!0,get:i[a]})}t(e,{getSortedRoutes:function(){return r.getSortedRoutes},isDynamicRoute:function(){return o.isDynamicRoute}});const r=Th(),o=Oh()}(Jr)),Jr}var rn={},nn={},pi;function Lh(){return pi||(pi=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"getRouteMatcher",{enumerable:!0,get:function(){return r}});const t=Nr();function r(o){let{re:s,groups:i}=o;return a=>{const c=s.exec(a);if(!c)return!1;const l=f=>{try{return decodeURIComponent(f)}catch{throw new t.DecodeError("failed to decode param")}},u={};return Object.keys(i).forEach(f=>{const h=i[f],d=c[h.pos];d!==void 0&&(u[f]=~d.indexOf("/")?d.split("/").map(p=>l(p)):h.repeat?[l(d)]:l(d))}),u}}}(nn)),nn}var on={},sn={},an={},cn={},mi;function Mh(){return mi||(mi=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"ensureLeadingSlash",{enumerable:!0,get:function(){return t}});function t(r){return r.startsWith("/")?r:"/"+r}}(cn)),cn}var ln={},hi;function Dh(){return hi||(hi=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"isGroupSegment",{enumerable:!0,get:function(){return t}});function t(r){return r[0]==="("&&r.endsWith(")")}}(ln)),ln}var gi;function $h(){return gi||(gi=1,function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(a,c){for(var l in c)Object.defineProperty(a,l,{enumerable:!0,get:c[l]})}t(e,{normalizeAppPath:function(){return s},normalizeRscPath:function(){return i}});const r=Mh(),o=Dh();function s(a){return(0,r.ensureLeadingSlash)(a.split("/").reduce((c,l,u,f)=>!l||(0,o.isGroupSegment)(l)||l[0]==="@"||(l==="page"||l==="route")&&u===f.length-1?c:c+"/"+l,""))}function i(a,c){return c?a.replace(/\.rsc($|\?)/,"$1"):a}}(an)),an}var yi;function zh(){return yi||(yi=1,function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(a,c){for(var l in c)Object.defineProperty(a,l,{enumerable:!0,get:c[l]})}t(e,{INTERCEPTION_ROUTE_MARKERS:function(){return o},isInterceptionRouteAppPath:function(){return s},extractInterceptionRouteInformation:function(){return i}});const r=$h(),o=["(..)(..)","(.)","(..)","(...)"];function s(a){return a.split("/").find(c=>o.find(l=>c.startsWith(l)))!==void 0}function i(a){let c,l,u;for(const f of a.split("/"))if(l=o.find(h=>f.startsWith(h)),l){[c,u]=a.split(l,2);break}if(!c||!l||!u)throw new Error(`Invalid interception route: ${a}. Must be in the format /<intercepting route>/(..|...|..)(..)/<intercepted route>`);switch(c=(0,r.normalizeAppPath)(c),l){case"(.)":c==="/"?u=`/${u}`:u=c+"/"+u;break;case"(..)":if(c==="/")throw new Error(`Invalid interception route: ${a}. Cannot use (..) marker at the root level, use (.) instead.`);u=c.split("/").slice(0,-1).concat(u).join("/");break;case"(...)":u="/"+u;break;case"(..)(..)":const f=c.split("/");if(f.length<=2)throw new Error(`Invalid interception route: ${a}. Cannot use (..)(..) marker at the root level or one level up.`);u=f.slice(0,-2).concat(u).join("/");break;default:throw new Error("Invariant: unexpected marker")}return{interceptingRoute:c,interceptedRoute:u}}}(sn)),sn}var un={},_i;function Bh(){return _i||(_i=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"escapeStringRegexp",{enumerable:!0,get:function(){return o}});const t=/[|\\{}()[\]^$+*?.-]/,r=/[|\\{}()[\]^$+*?.-]/g;function o(s){return t.test(s)?s.replace(r,"\\$&"):s}}(un)),un}var vi;function Fh(){return vi||(vi=1,function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(y,_){for(var b in _)Object.defineProperty(y,b,{enumerable:!0,get:_[b]})}t(e,{getRouteRegex:function(){return u},getNamedRouteRegex:function(){return p},getNamedMiddlewareRegex:function(){return g}});const r=zh(),o=Bh(),s=xu(),i="nxtP",a="nxtI";function c(y){const _=y.startsWith("[")&&y.endsWith("]");_&&(y=y.slice(1,-1));const b=y.startsWith("...");return b&&(y=y.slice(3)),{key:y,repeat:b,optional:_}}function l(y){const _=(0,s.removeTrailingSlash)(y).slice(1).split("/"),b={};let S=1;return{parameterizedRoute:_.map(v=>{const j=r.INTERCEPTION_ROUTE_MARKERS.find(E=>v.startsWith(E)),P=v.match(/\[((?:\[.*\])|.+)\]/);if(j&&P){const{key:E,optional: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 d(y,_){const b=(0,s.removeTrailingSlash)(y).slice(1).split("/"),S=f(),v={};return{namedParameterizedRoute:b.map(j=>{const P=r.INTERCEPTION_ROUTE_MARKERS.some(C=>j.startsWith(C)),E=j.match(/\[((?:\[.*\])|.+)\]/);return P&&E?h({getSafeRouteKey:S,segment:E[1],routeKeys:v,keyPrefix:_?a:void 0}):E?h({getSafeRouteKey:S,segment:E[1],routeKeys:v,keyPrefix:_?i:void 0}):"/"+(0,o.escapeStringRegexp)(j)}).join(""),routeKeys:v}}function p(y,_){const b=d(y,_);return{...u(y),namedRegex:"^"+b.namedParameterizedRoute+"(?:/)?$",routeKeys:b.routeKeys}}function g(y,_){const{parameterizedRoute:b}=l(y),{catchAll:S=!0}=_;if(b==="/")return{namedRegex:"^/"+(S?".*":"")+"$"};const{namedParameterizedRoute:v}=d(y,!1);let j=S?"(?:(/.*)?)":"";return{namedRegex:"^"+v+j+"$"}}}(on)),on}var xi;function qh(){return xi||(xi=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"interpolateAs",{enumerable:!0,get:function(){return o}});const t=Lh(),r=Fh();function o(s,i,a){let c="";const l=(0,r.getRouteRegex)(s),u=l.groups,f=(i!==s?(0,t.getRouteMatcher)(l)(i):"")||a;c=s;const h=Object.keys(u);return h.every(d=>{let p=f[d]||"";const{repeat:g,optional:y}=u[d];let _="["+(g?"...":"")+d+"]";return y&&(_=(p?"":"/")+"["+_+"]"),g&&!Array.isArray(p)&&(p=[p]),(y||d in f)&&(c=c.replace(_,g?p.map(b=>encodeURIComponent(b)).join("/"):encodeURIComponent(p))||"/")})||(c=""),{params:h,result:c}}}(rn)),rn}var bi;function Hh(){return bi||(bi=1,function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"resolveHref",{enumerable:!0,get:function(){return f}});const r=yu(),o=vu(),s=Ih(),i=Nr(),a=Tr(),c=ju(),l=kh(),u=qh();function f(h,d,p){let g,y=typeof d=="string"?d:(0,o.formatWithValidation)(d);const _=y.match(/^[a-zA-Z]{1,}:\/\//),b=_?y.slice(_[0].length):y;if((b.split("?")[0]||"").match(/(\/\/|\\)/)){console.error("Invalid href '"+y+"' passed to next/router in page: '"+h.pathname+"'. Repeated forward-slashes (//) or backslashes \\ are not valid in the href.");const v=(0,i.normalizeRepeatedSlashes)(b);y=(_?_[0]:"")+v}if(!(0,c.isLocalURL)(y))return p?[y]:y;try{g=new URL(y.startsWith("#")?h.asPath:h.pathname,"http://n")}catch{g=new URL("/","http://n")}try{const v=new URL(y,g);v.pathname=(0,a.normalizePathTrailingSlash)(v.pathname);let j="";if((0,l.isDynamicRoute)(v.pathname)&&v.searchParams&&p){const E=(0,r.searchParamsToUrlQuery)(v.searchParams),{result: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 p?[P,j||P]:P}catch{return p?[y]:y}}(typeof t.default=="function"||typeof t.default=="object"&&t.default!==null)&&typeof t.default.__esModule>"u"&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)}(tr,tr.exports)),tr.exports}var or={exports:{}},dn={},fn={},ji;function Cu(){return ji||(ji=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"addPathPrefix",{enumerable:!0,get:function(){return r}});const t=Es();function r(o,s){if(!o.startsWith("/")||!s)return o;const{pathname:i,query:a,hash:c}=(0,t.parsePath)(o);return""+s+i+a+c}}(fn)),fn}var Ci;function Uh(){return Ci||(Ci=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"addLocale",{enumerable:!0,get:function(){return o}});const t=Cu(),r=bu();function o(s,i,a,c){if(!i||i===a)return s;const l=s.toLowerCase();return!c&&((0,r.pathHasPrefix)(l,"/api")||(0,r.pathHasPrefix)(l,"/"+i.toLowerCase()))?s:(0,t.addPathPrefix)(s,"/"+i)}}(dn)),dn}var Si;function Wh(){return Si||(Si=1,function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"addLocale",{enumerable:!0,get:function(){return o}});const r=Tr(),o=function(s){for(var i=arguments.length,a=new Array(i>1?i-1:0),c=1;c<i;c++)a[c-1]=arguments[c];return process.env.__NEXT_I18N_SUPPORT?(0,r.normalizePathTrailingSlash)(Uh().addLocale(s,...a)):s};(typeof t.default=="function"||typeof t.default=="object"&&t.default!==null)&&typeof t.default.__esModule>"u"&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)}(or,or.exports)),or.exports}var pn={},Pi;function Su(){return Pi||(Pi=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"RouterContext",{enumerable:!0,get:function(){return o}});const o=Oe._(x).default.createContext(null);process.env.NODE_ENV!=="production"&&(o.displayName="RouterContext")}(pn)),pn}var mn={},wi;function Vh(){return wi||(wi=1,function(e){"use client";Object.defineProperty(e,"__esModule",{value:!0});function t(u,f){for(var h in f)Object.defineProperty(u,h,{enumerable:!0,get:f[h]})}t(e,{CacheStates:function(){return s},AppRouterContext:function(){return i},LayoutRouterContext:function(){return a},GlobalLayoutRouterContext:function(){return c},TemplateContext:function(){return l}});const o=Oe._(x);var s;(function(u){u.LAZY_INITIALIZED="LAZYINITIALIZED",u.DATA_FETCH="DATAFETCH",u.READY="READY"})(s||(s={}));const i=o.default.createContext(null),a=o.default.createContext(null),c=o.default.createContext(null),l=o.default.createContext(null);process.env.NODE_ENV!=="production"&&(i.displayName="AppRouterContext",a.displayName="LayoutRouterContext",c.displayName="GlobalLayoutRouterContext",l.displayName="TemplateContext")}(mn)),mn}var sr={exports:{}},ir={exports:{}},Ei;function Pu(){return Ei||(Ei=1,function(e,t){Object.defineProperty(t,"__esModule",{value:!0});function r(i,a){for(var c in a)Object.defineProperty(i,c,{enumerable:!0,get:a[c]})}r(t,{requestIdleCallback:function(){return o},cancelIdleCallback:function(){return s}});const o=typeof self<"u"&&self.requestIdleCallback&&self.requestIdleCallback.bind(window)||function(i){let a=Date.now();return self.setTimeout(function(){i({didTimeout:!1,timeRemaining:function(){return Math.max(0,50-(Date.now()-a))}})},1)},s=typeof self<"u"&&self.cancelIdleCallback&&self.cancelIdleCallback.bind(window)||function(i){return clearTimeout(i)};(typeof t.default=="function"||typeof t.default=="object"&&t.default!==null)&&typeof t.default.__esModule>"u"&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)}(ir,ir.exports)),ir.exports}var Ri;function Gh(){return Ri||(Ri=1,function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"useIntersection",{enumerable:!0,get:function(){return u}});const r=x,o=Pu(),s=typeof IntersectionObserver=="function",i=new Map,a=[];function c(f){const h={root:f.root||null,margin:f.rootMargin||""},d=a.find(_=>_.root===h.root&&_.margin===h.margin);let p;if(d&&(p=i.get(d),p))return p;const g=new Map,y=new IntersectionObserver(_=>{_.forEach(b=>{const S=g.get(b.target),v=b.isIntersecting||b.intersectionRatio>0;S&&v&&S(v)})},f);return p={id:h,observer:y,elements:g},a.push(h),i.set(h,p),p}function l(f,h,d){const{id:p,observer:g,elements:y}=c(d);return y.set(f,h),g.observe(f),function(){if(y.delete(f),g.unobserve(f),y.size===0){g.disconnect(),i.delete(p);const b=a.findIndex(S=>S.root===p.root&&S.margin===p.margin);b>-1&&a.splice(b,1)}}}function u(f){let{rootRef:h,rootMargin:d,disabled:p}=f;const g=p||!s,[y,_]=(0,r.useState)(!1),b=(0,r.useRef)(null),S=(0,r.useCallback)(j=>{b.current=j},[]);(0,r.useEffect)(()=>{if(s){if(g||y)return;const j=b.current;if(j&&j.tagName)return l(j,E=>E&&_(E),{root:h==null?void 0:h.current,rootMargin:d})}else if(!y){const j=(0,o.requestIdleCallback)(()=>_(!0));return()=>(0,o.cancelIdleCallback)(j)}},[g,d,h,y,b.current]);const v=(0,r.useCallback)(()=>{_(!1)},[]);return[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)}(sr,sr.exports)),sr.exports}var ar={exports:{}},cr={exports:{}},hn={},Ai;function Kh(){return Ai||(Ai=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"normalizeLocalePath",{enumerable:!0,get:function(){return t}});function t(r,o){let s;const i=r.split("/");return(o||[]).some(a=>i[1]&&i[1].toLowerCase()===a.toLowerCase()?(s=a,i.splice(1,1),r=i.join("/")||"/",!0):!1),{pathname:r,detectedLocale:s}}}(hn)),hn}var Ii;function Xh(){return Ii||(Ii=1,function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"normalizeLocalePath",{enumerable:!0,get:function(){return r}});const r=(o,s)=>process.env.__NEXT_I18N_SUPPORT?Kh().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)}(cr,cr.exports)),cr.exports}var lr={exports:{}},gn={},Ni;function Yh(){return Ni||(Ni=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"detectDomainLocale",{enumerable:!0,get:function(){return t}});function t(r,o,s){if(r){s&&(s=s.toLowerCase());for(const c of r){var i,a;const l=(i=c.domain)==null?void 0:i.split(":")[0].toLowerCase();if(o===l||s===c.defaultLocale.toLowerCase()||(a=c.locales)!=null&&a.some(u=>u.toLowerCase()===s))return c}}}}(gn)),gn}var Ti;function Qh(){return Ti||(Ti=1,function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"detectDomainLocale",{enumerable:!0,get:function(){return r}});const r=function(){for(var o=arguments.length,s=new Array(o),i=0;i<o;i++)s[i]=arguments[i];if(process.env.__NEXT_I18N_SUPPORT)return Yh().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)}(lr,lr.exports)),lr.exports}var Oi;function Zh(){return Oi||(Oi=1,function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"getDomainLocale",{enumerable:!0,get:function(){return s}});const r=Tr(),o=process.env.__NEXT_ROUTER_BASEPATH||"";function s(i,a,c,l){if(process.env.__NEXT_I18N_SUPPORT){const u=Xh().normalizeLocalePath,f=Qh().detectDomainLocale,h=a||u(i,c).detectedLocale,d=f(l,void 0,h);if(d){const p="http"+(d.http?"":"s")+"://",g=h===d.defaultLocale?"":"/"+h;return""+p+d.domain+(0,r.normalizePathTrailingSlash)(""+o+g+i)}return!1}else return!1}(typeof t.default=="function"||typeof t.default=="object"&&t.default!==null)&&typeof t.default.__esModule>"u"&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)}(ar,ar.exports)),ar.exports}var ur={exports:{}},ki;function Jh(){return ki||(ki=1,function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"addBasePath",{enumerable:!0,get:function(){return i}});const r=Cu(),o=Tr(),s=process.env.__NEXT_ROUTER_BASEPATH||"";function i(a,c){return(0,o.normalizePathTrailingSlash)(process.env.__NEXT_MANUAL_CLIENT_BASE_PATH&&!c?a:(0,r.addPathPrefix)(a,s))}(typeof t.default=="function"||typeof t.default=="object"&&t.default!==null)&&typeof t.default.__esModule>"u"&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)}(ur,ur.exports)),ur.exports}var dr={exports:{}},Li;function eg(){return Li||(Li=1,function(e,t){Object.defineProperty(t,"__esModule",{value:!0});function r(h,d){for(var p in d)Object.defineProperty(h,p,{enumerable:!0,get:d[p]})}r(t,{PrefetchKind:function(){return f},ACTION_REFRESH:function(){return o},ACTION_NAVIGATE:function(){return s},ACTION_RESTORE:function(){return i},ACTION_SERVER_PATCH:function(){return a},ACTION_PREFETCH:function(){return c},ACTION_FAST_REFRESH:function(){return l},ACTION_SERVER_ACTION:function(){return u}});const o="refresh",s="navigate",i="restore",a="server-patch",c="prefetch",l="fast-refresh",u="server-action";var f;(function(h){h.AUTO="auto",h.FULL="full",h.TEMPORARY="temporary"})(f||(f={})),(typeof t.default=="function"||typeof t.default=="object"&&t.default!==null)&&typeof t.default.__esModule>"u"&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)}(dr,dr.exports)),dr.exports}(function(e,t){"use client";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return P}});const o=Oe._(x),s=Hh(),i=ju(),a=vu(),c=Nr(),l=Wh(),u=Su(),f=Vh(),h=Gh(),d=Zh(),p=Jh(),g=eg(),y=new Set;function _(E,C,R,T,w,I){if(typeof window>"u"||!I&&!(0,i.isLocalURL)(C))return;if(!T.bypassPrefetchedCheck){const z=typeof T.locale<"u"?T.locale:"locale"in E?E.locale:void 0,k=C+"%"+R+"%"+z;if(y.has(k))return;y.add(k)}const N=I?E.prefetch(C,w):E.prefetch(C,R,T);Promise.resolve(N).catch(z=>{if(process.env.NODE_ENV!=="production")throw z})}function b(E){const R=E.currentTarget.getAttribute("target");return R&&R!=="_self"||E.metaKey||E.ctrlKey||E.shiftKey||E.altKey||E.nativeEvent&&E.nativeEvent.which===2}function S(E,C,R,T,w,I,N,z,k,W){const{nodeName:q}=E.currentTarget;if(q.toUpperCase()==="A"&&(b(E)||!k&&!(0,i.isLocalURL)(R)))return;E.preventDefault();const V=()=>{const G=N??!0;"beforePopState"in C?C[w?"replace":"push"](R,T,{shallow:I,locale:z,scroll:G}):C[w?"replace":"push"](T||R,{forceOptimisticNavigation:!W,scroll:G})};k?o.default.startTransition(V):V()}function v(E){return typeof E=="string"?E:(0,a.formatUrl)(E)}const P=o.default.forwardRef(function(C,R){let T;const{href:w,as:I,children:N,prefetch:z=null,passHref:k,replace:W,shallow:q,scroll:B,locale:V,onClick:G,onMouseEnter:F,onTouchStart:J,legacyBehavior:A=!1,...O}=C;T=N,A&&(typeof T=="string"||typeof T=="number")&&(T=o.default.createElement("a",null,T));const D=o.default.useContext(u.RouterContext),X=o.default.useContext(f.AppRouterContext),ne=D??X,ee=!D,M=z!==!1,te=z===null?g.PrefetchKind.AUTO:g.PrefetchKind.FULL;if(process.env.NODE_ENV!=="production"){let ie=function(se){return new Error("Failed prop type: The prop `"+se.key+"` expects a "+se.expected+" in `<Link>`, but got `"+se.actual+"` instead."+(typeof window<"u"?`
|
|
2
|
-
Open your browser's console to view the Component stack trace.`:""))};Object.keys({href:!0}).forEach(se=>{if(se==="href"&&(C[se]==null||typeof C[se]!="string"&&typeof C[se]!="object"))throw
|
|
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 Xr=(e,t,n)=>Jp(e,typeof t!="symbol"?t+"":t,n);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("react/jsx-runtime"),v=require("react"),U=require("./index-CwBIv223.js"),Qe=require("idb-keyval"),yt=require("zustand"),Fo=require("js-cookie"),m=require("@soma-vertical-web/core-components"),mt=require("axios"),em=require("jose"),Pt=require("@soma-vertical-web/foundations"),cs=require("react-dom"),Xe=require("draft-js"),Zs=require("@date-fns/tz"),gc=require("react-intersection-observer"),ls=v.createContext({}),tm=({data:e,children:t})=>r.jsx(ls.Provider,{value:{tags:e==null?void 0:e.config},children:t}),ot=()=>{const{tags:e}=v.useContext(ls),t=v.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(d=>d.id===f.key)}),s=(u=(l=e==null?void 0:e.institucional)==null?void 0:l.items)==null?void 0:u.find(f=>{var h;return(h=n??[])==null?void 0:h.find(d=>d.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})=>{v.useEffect(()=>{typeof window<"u"&&(e!=null&&e.refer)&&sessionStorage.setItem(e==null?void 0:e.refer,"true")},[])},_c=v.createContext({}),rm=({children:e,gridScrollBack:t})=>{const n=v.useRef(null);return yc({gridScrollBack:t}),r.jsx(_c.Provider,{value:{sizesContainerRef:n},children:e})},vc=()=>{const e=v.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})},Ce={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:Ce.configs.currency,value:f,grade_disponivel:l??(u?xc(u):"")}:{},...n==="add_to_wishlist"||n==="remove_from_wishlist"?{value:f,currency:Ce.configs.currency}:{}},d=or({data:o,customData:{...s,...i,...a},configs:Ce.configs});it({event:n,data:{...c,ecommerce:{...i,...h,items:[d]}}}),typeof t=="function"&&t(d,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)=>or({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:Ce.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,x,j,P,E,C;const d=s==null?void 0:s.find(R=>(h.productId??h.id)===R.productId);let p={...i,...c};if(d){const R=jc(),T=Cc(R,d);T&&(p={...p,...T}),t==="add_to_cart"&&(i||c)&&Bo({persistedData:R,type:"add",sku:(d==null?void 0:d.id)??(d==null?void 0:d.sku),newData:{promotionInfo:i,itemList:c}}),t==="remove_from_cart"&&Bo({persistedData:R,type:"remove",sku:(d==null?void 0:d.id)??(d==null?void 0:d.sku)})}u+=h.price??((b=(_=(y=d==null?void 0:d.offers)==null?void 0:y.offers)==null?void 0:_[0])==null?void 0:b.price)??0;const g=(d==null?void 0:d.size)??U.getColorAndSizeFromSkuName((d==null?void 0:d.skuName)??(d==null?void 0:d.name)??((S=h.itemOffered)==null?void 0:S.skuName),Ce.configs.NAME_SPLIT_SYMBOL).size;return or({data:h,customData:{...o,...p??{...i,...c},item_sku:(d==null?void 0:d.id)??(d==null?void 0:d.sku)??((x=h.itemOffered)==null?void 0:x.sku),quantity:(o==null?void 0:o.quantity)??h.quantity??1,item_variant2:g,seller_id:(d==null?void 0:d.sellerId)??(d==null?void 0:d.seller)??((C=(E=(P=(j=d==null?void 0:d.offers)==null?void 0:j.offers)==null?void 0:P[0])==null?void 0:E.seller)==null?void 0:C.identifier)??h.seller},configs:Ce.configs})});it({event:t,data:{...l,ecommerce:{value:a??u,currency:Ce.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=Ce.configs.PLP_FILTERS.find(d=>d.key===c))==null?void 0:h.eventLabel)??c,f=(s==null?void 0:s[u])||[];u==="price_range"&&l.replace(":","-"),s[u]=[...f,l]}),Object.keys(s).forEach(c=>a[c]=s[c].join(", "))),it({event:"filter",data:{...o,...a,...n}})},viewCartEvent:e=>{var f,h,d,p,g,y,_,b,S,x;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 or({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:Ce.configs})}),c=(((f=o.totalizers.find(j=>j.name==="Total dos Itens"))==null?void 0:f.value)??0)/100,l=(((h=o.totalizers.find(j=>j.name==="Total dos Descontos"))==null?void 0:h.value)??0)/100,u=((d=o.marketingData)==null?void 0:d.utmiCampaign)===Ce.configs.VENDOR_CODE?(p=o.marketingData)==null?void 0:p.utmCampaign:(y=String((g=o.openTextField)==null?void 0:g.value))==null?void 0:y.split(" - ")[0];it({event:"view_cart",data:{...n,ecommerce:{currency:Ce.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:(x=o.marketingData)==null?void 0:x.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(Ce.configs.categoryOff)?"Bazar":"Coleção",...e[1]?{item_category2:e[1]}:{},...t>2?{item_category3:e[t-1]}:{}}:{}}},or=({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],Bo=({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,d,p,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((d=e.itemOffered)==null?void 0:d.name,Ce.configs.NAME_SPLIT_SYMBOL).name,item_brand:((p=e.brand)==null?void 0:p.brandName)??((g=e.brand)==null?void 0:g.name)??e.brand??((y=e.itemOffered)==null?void 0:y.brand.name),item_url:`${Ce.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(Ce.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,Ce.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:Ce.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:Ce,findDataInPersistedData:Cc,getAvailablesSizes:xc,getCategories:nm,getPageCategoryAndDepartmentFromSlug:Sc,getPersistedData:jc,getProductListInfoFromHead:bc,pushDatalayer:it,updatePersistedData:Bo},Symbol.toStringTag,{value:"Module"})),Pc=v.createContext({}),lm=({children:e,evtFunctionsConfigs:t})=>{const n=v.useRef({}),o=v.useRef(null),s=v.useRef(null),a=v.useRef({}),i=v.useRef({trigger:!1,index:0}),c=({functionKey:f,data:h,callBack:d,timeout:p=100})=>{window.dataLayer||(window.dataLayer=[]),Ce.configs=t;try{typeof Ce[f]=="function"&&setTimeout(()=>{var g;h.promotionInfo=n.current,(g=s.current)!=null&&g.item_list_name&&(h.itemList=s.current),Ce[f](h,d)},p)}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:d})=>{f&&(n.current={...h}),c({functionKey:"readyEvents",data:{event:"select_promotion",readyData:{ecommerce:{...h,...d!==void 0&&{index:d}}}}})};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=()=>v.useContext(Pc),wc=v.createContext({}),um=({children:e,productData:t,isKit:n,PDP_INFO:o,NAME_SPLIT_SYMBOL:s,TEXTURE_IMAGE:a})=>{var k,W;const{sendDataLayerEvent:i,triggerSelectItemEventRef:c}=le(),{productId:l,productName:u,items:f,items:[{images:h,Videos:d}],description:p,["Composição"]:g="",productReference:y,categories:[_]}=t,{getAvailableProductTag:b}=ot(),S=b(Object.entries(t.clusterHighlights).map(q=>({id:q[0],name:q[1]}))),x=_.slice(1,-1).split("/"),{installments:j,price:P,listPrice:E,sizes:C,allSizesAvailable:R}=U.getSkuInfos({items:f,NAME_SPLIT_SYMBOL:s}),T=U.getThumbImage({images:h,TEXTURE_IMAGE:a}),w=[{label:`${o.product.description}`,value:"description",content:p},{label:`${o.product.materiais}`,value:"composition",content:g}],N=((W=U.getColorAndSizeFromSkuName((k=t.items)==null?void 0:k[0].name,s))==null?void 0:W.color)??t["Cores Filtráveis"][0]??"",I=()=>({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}=I();i({functionKey:"productEvents",data:{event:"view_item",commonData:G,customData:{...V,...q&&{item_sku:q},...F&&{item_variant2:F}}}})};return v.useEffect(()=>{if(c.current.trigger){const{commonData:q,customData:F}=I();i({functionKey:"productEvents",data:{event:"select_item",commonData:q,customData:{...F,index:c.current.index}}}),c.current.trigger=!1}z({})},[]),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:T,images:h,video:d[0],descriptionContent:w,breadcrumbList:x,isKit:n,colorName:N,handleViewItemEvent:z},children:e})},$e=()=>{const e=v.useContext(wc);if(e===void 0)throw new Error("useContext(PDPDataContext) must be used within a PDPDataProvider");return e},dm=()=>{const[e,t]=v.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=()=>{v.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]=v.useState(()=>{if(fm)return null;const a=localStorage.getItem(e);return a===null?t:JSON.parse(a||"{}")});return v.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 us(e,t,n){const[o,s]=v.useState(!1),{threshold:a}=n||{};return v.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 Nr=({callback:e,onEnterViewportOnce:t,options:n})=>{const o=v.useRef(null);return v.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=v.useRef(null),o=v.useRef(null),[s,a]=v.useState(e),i=v.useRef(0),c=v.useRef({x:0,y:0}),l=v.useRef({x:0,y:0}),u=()=>{if(!o.current||!n.current)return{minX:0,maxX:0,minY:0,maxY:0};const p=n.current.getBoundingClientRect(),g=o.current.children[0].getBoundingClientRect(),y=g.width,_=g.height,b=Math.min(0,(p.width-y)/2),S=Math.max(0,(y-p.width)/2),x=Math.min(0,(p.height-_)/2),j=Math.max(0,(_-p.height)/2);return{minX:b,maxX:S,minY:x,maxY:j}},f=(p,g,y)=>{if(o.current){const _=o.current.children[0];_&&requestAnimationFrame(()=>{_.style.transform=`translate(calc(-50% + ${p}px), calc(-50% + ${g}px)) scale(${y})`})}},h=v.useCallback(p=>{const{minX:g,maxX:y,minY:_,maxY:b}=u(),{x:S,y:x}=l.current,j=Math.max(g,Math.min(y,S)),P=Math.max(_,Math.min(b,x));if(p.touches.length>1){const E=p.touches[0],C=p.touches[1],R=E.pageX-C.pageX,T=E.pageY-C.pageY;i.current=Math.sqrt(R*R+T*T),c.current={x:(E.pageX+C.pageX)/2,y:(E.pageY+C.pageY)/2}}else p.touches.length===1&&(c.current={x:p.touches[0].pageX-j,y:p.touches[0].pageY-P})},[s,l]),d=v.useCallback(p=>{if(!o.current||!n.current)return;const{minX:g,maxX:y,minY:_,maxY:b}=u();if(p.touches.length>1){p.preventDefault();const S=p.touches[0],x=p.touches[1],j=S.pageX-x.pageX,P=S.pageY-x.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 T=(S.pageX+x.pageX)/2,w=(S.pageY+x.pageY)/2;let N=T-c.current.x,I=w-c.current.y;N=Math.max(g,Math.min(y,N)),I=Math.max(_,Math.min(b,I)),l.current={x:N,y:I},i.current=E,f(N,I,R)}else if(p.touches.length===1){const S=p.touches[0].pageX,x=p.touches[0].pageY;let j=S-c.current.x,P=x-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 v.useEffect(()=>(document.addEventListener("touchstart",h),document.addEventListener("touchmove",d,{passive:!1}),()=>{document.removeEventListener("touchstart",h),document.removeEventListener("touchmove",d)}),[d,h]),{containerRef:n,imgRef:o,scale:s}},mm={attachment:"ATTACHMENT",specification:"SPECIFICATION",attribute:"ATTRIBUTE"},He=Promise.resolve(!1),qo={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:()=>{}},ds=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:d,price:p,priceDefinition:g,productCategories:y,productCategoryIds:_,productId:b,refId:S,seller:x,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:d,offerings:P,price:p,priceDefinition:g,sellingPrice:R,seller:x}},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)??""}}),Ho=(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=ds(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+(ds(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}},Lc=(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)},Mc=(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:Ho,findOptions:Fc,findTotalizerValue:hm,getCategories:Ac,getCode:jt,getQuantity:zc,getRemoveId:Mc,getSize:_m,getTotalItems:ym,getTotalizer:gm,getUrlParameter:pt,getValue:Dc,initialState:qo,isGift:ds,marketingTagsBuilder:Hc,mergeOptionsPromise:Bc,mountMarketingData:Uc,orderFormValues:kc,promiseDefault:He,removeQuantity:Tc,updateItemSellerExternal:Lc,updateOrderFormPromise:$c,updateQuantity:Oc,wishlistArray:vm},Symbol.toStringTag,{value:"Module"})),bm=()=>{const e=async(p,g)=>Oe("/api/checkout/order-form/coupon",{body:{orderFormId:p,coupon:g}}),t=async(p,g)=>{if(g){const y=g.includes(" - ")?g.split(" - ")[0]:g,_=await Oe("/api/checkout/order-form/seller-code",{body:{orderFormId:p,sellerCode:y}},!0);return _ instanceof Object&&"nome"in _&&(_==null?void 0:_.status)===!0?Oe("/api/checkout/order-form/attachments",{body:{orderFormId:p,sellerCode:y,sellerName:_.nome}}).then(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:p,sellerCode:"",sellerName:""}})},n=async(p,g)=>Oe("/api/checkout/order-form/attachments/marketing-data",{body:{orderFormId:p,marketingData:g}}),o=async(p,g,y)=>Oe("/api/checkout/order-form/items",{body:{orderFormId:p,orderItems:Ic(g,y)}}),s=async(p,g,y,_=!1)=>Oe("/api/checkout/order-form/offerings",{body:{id:g,itemIndex:y,orderFormId:p,remove:_}}),a=async p=>Oe("/api/checkout/order-form/items/remove-all",{body:{orderFormId:p}}),i=async(p,g="low")=>Oe("/api/checkout/order-form",{priority:g,body:{orderFormId:p??""}}),c=async(p,g)=>Oe("/api/checkout/order-form/profile",{body:{orderFormId:p,email:g}}),l=async(p,g,y)=>{const _=Tc(g,y);return Oe("/api/checkout/order-form/items/update",{body:{orderItems:_.updateItems,orderFormId:p}})},u=async(p,g,y)=>Oe("/api/checkout/order-form/shipping",{body:{orderFormId:p,country:y,postalCode:g}}),f=async(p,g,y)=>Oe("/api/checkout/order-form/shipping/update",{body:{orderFormId:p,options:g,selectedAddresses:y}}),h=async(p,g,y,_)=>{const b=Oc(g,y,_);return Oe("/api/checkout/order-form/items/update",{body:{orderFormId:p,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(p,g,y,_,b)=>h(p,g,y,_).then(S=>S&&Array.isArray(S.items)?Lc(S.items,y)?h(p,g,y,b):S:!1)}},Uo="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(Qe.get($t),i);return Qe.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 Qe.get($t).then(u=>Fc(u,a.items));Qe.set(Uo,a),Qe.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 Qe.get(Uo).then(a=>n.getOrderForm(a?a.id:"").then(s)),{...qo,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 Mc(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 qo}),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)}))}})),fs=()=>Wc(e=>e.notifications),ps=()=>Wc(e=>e.actions),Cm=Object.freeze(Object.defineProperty({__proto__:null,KEY_INDEXED_OPTIONS:$t,KEY_INDEXED_STORE:Uo,useCartStore:Rt,useGetCartStoreState:jm,useGetNotificationActions:ps,useGetNotificationsStore:fs},Symbol.toStringTag,{value:"Module"})),Sm=6e3,Gc=v.createContext({}),Vc=({children:e,...t})=>{const{items:n}=Rt(),[o,s]=v.useState([]),a=v.useRef(null),i=v.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 v.useEffect(()=>{o.length&&(clearTimeout(a.current??0),a.current=setTimeout(()=>{s([])},Sm))},[o]),r.jsx(Gc.Provider,{value:v.useMemo(()=>({...t,setRecentlyAdded:s,recentlyAddedProducts:i}),[t,s,i]),children:e})},Wt=()=>{const e=v.useContext(Gc);if(e===void 0)throw new Error("useUIContext must be used within a UIProvider");return e};class Kc{constructor(){Xr(this,"events",{});Xr(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=v.createContext({}),Pm=({children:e,headerConfigs:t,pathname:n,...o})=>{const[s,a]=v.useState(!0),[i,c]=v.useState(!1),l=n==="/",u=v.useRef(new Kc),f=p=>p?{headerVariant:t.home_default_variant,bannerVariant:t.home_default_variant,position:t.home_default_position}:{headerVariant:t.default_variant,bannerVariant:t.default_variant,position:t.default_position},h=f(l),d=v.useRef(h);return v.useEffect(()=>{var y;const p=((y=new URLSearchParams(window.location.search))==null?void 0:y.toString())??"";(p.includes("utm_")||p.includes("gclid"))&&(Fo.get("lastMedias")||Fo.set("lastMedias",`${p}`,{expires:1/24}));const g=()=>{const _=typeof(window==null?void 0:window.navigator)>"u"?"":navigator==null?void 0:navigator.userAgent,b=window.innerWidth<1024||!!_.match(/Android|BlackBerry|iPhone|iPad|iPod|Opera Mini|IEMobile|WPDesktop/i);i||c(!0),s!==b&&(a(b),c(!0))};return i||g(),window.addEventListener("resize",g,{passive:!0}),()=>window.removeEventListener("resize",g)},[s,i]),v.useEffect(()=>{const p=f(l);u.current.publish("header:change_variant",p.headerVariant),u.current.publish("header:change_position",p.position),d.current=p},[l]),r.jsx(Xc.Provider,{value:{isMobile:s,mediatorRef:u,currentHeaderConfigsRef:d,deviceValidated:i,...o},children:r.jsx(Vc,{children:e})})},ce=()=>v.useContext(Xc),Yc=v.createContext({}),wm=({children:e,...t})=>r.jsx(Yc.Provider,{value:{...t},children:e}),_e=()=>v.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),ms=()=>rl(e=>e.actions),ol=_t(Ht.userMenuIsOpen,Gt),hs=()=>ol(e=>e.value),gs=()=>ol(e=>e.actions),Rm=Object.freeze(Object.defineProperty({__proto__:null,resetAllHeaderStores:Em,useActionsHeaderCategory:Vt,useActionsMenuMobileIsOpen:tl,useActionsSearchModalIsOpen:ms,useActionsUserMenuIsOpen:gs,useGetHeaderCategoryStore:Zc,useGetMenuMobileIsOpen:el,useGetSearchModalIsOpen:nl,useGetUserMenuIsOpen:hs},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),ys=()=>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:ys,useGetPDPOpenLetMeKnow:Nm,useGetPDPOpenMeasurements:fl,useGetPDPSelectedSkuInfo:Kt,useGetPDPShowBottomNavigation:Tm,useGetPDPShowNotify:ll},Symbol.toStringTag,{value:"Module"})),ea={feedback:{active:!1,action:"add"},list:[]},_s=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=()=>_s(e=>e.value.list),vs=()=>_s(e=>e.value.feedback),vt=()=>_s(e=>e.actions),Lm=Object.freeze(Object.defineProperty({__proto__:null,useActionsWishlistStore:vt,useGetWishlistFeedbackStore:vs,useGetWishlistStore:Tt},Symbol.toStringTag,{value:"Module"})),ml=v.createContext({}),Mm=({children:e,headerData:t,...n})=>{var f,h;const o=v.useRef(null),s=v.useRef(null),a=v.useRef(null),i=v.useRef(null),c=v.useRef(null),{mediatorRef:l,currentHeaderConfigsRef:u}=ce();return(f=l.current)==null||f.subscribe("header:change_variant",d=>{var b,S,x;if(d&&u.current&&(u.current.bannerVariant=d),!o.current)return;const g=document.body.scrollTop>0,y=o.current.getAttribute("data-interactiveVariant"),_=g?y:d??((b=u.current)==null?void 0:b.bannerVariant)??"default";_!==((S=u.current)==null?void 0:S.headerVariant)&&(o.current.setAttribute("data-bottomdivider",String(g)),o.current.setAttribute("data-variant",String(_)),(x=l.current)==null||x.publish("herobanner:change_controllers_variant",_),u.current&&(u.current.headerVariant=_))}),(h=l.current)==null||h.subscribe("header:change_position",d=>{o.current&&(o.current.style.position=d)}),v.useEffect(()=>{const d=new AbortController,p=m.helpers.throttle(()=>{var y;return(y=l.current)==null?void 0:y.publish("header:change_variant",null)},200);document.body.addEventListener("scroll",p,{passive:!0,signal:d.signal});const g=y=>{var b;(b=y.target.closest("a"))==null||b.blur()};return o.current&&(o.current.addEventListener("click",g,{signal:d.signal}),o.current.addEventListener("touchend",g,{signal:d.signal})),()=>{d.abort()}},[]),r.jsx(ml.Provider,{value:{headerData:t,structureRef:s,rootRef:o,tipbarRef:a,userMenuMobileRef:i,userMenuDesktopRef:c,...n},children:e})},Pe=()=>v.useContext(ml),hl=v.createContext({}),gl=({children:e,...t})=>r.jsx(hl.Provider,{value:v.useMemo(()=>t,[t]),children:e}),xs=()=>{const e=v.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=v.createContext({}),_l=({children:e,delay:t=600,gap:n=20,...o})=>{const[s,a]=v.useState(!1),i=v.useRef(null),[c,l]=v.useState(!1),[u,f]=v.useState({left:0,top:0}),h=v.useCallback(()=>{l(!0),typeof window<"u"&&(i.current=window.setTimeout(()=>{a(!1),l(!1)},t))},[l,a,t]);return v.useEffect(()=>{if(typeof window>"u")return;const d=window.document.querySelector("#cart-button"),p=window.document.querySelector("#add-to-cart--tooltip");if(d&&p){const{left:g,top:y}=$m(p,d,n??0);f({left:g,top:y}),l(!1)}},[n,s]),r.jsx(yl.Provider,{value:v.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=v.useContext(yl);if(e===void 0)throw new Error("useAddToCartContext must be used within a AddToCartProvider");return e},vl=v.createContext({}),zm=({children:e,CARTPROVIDER_MESSAGE_PRODUCT_REMOVE:t,...n})=>{const o=Rt(),{setRecentlyAdded:s}=Wt(),a=v.useRef(""),i=fs(),{addNotification:c,removeNotification:l}=ps(),{addCoupon:u,addItem:f,addSellerCode:h,addMarketingData:d,emptyCart:p,isOpen:g,removeItem:y,shipping:_,shippingUpdate:b,toggleServiceToProduct:S,updateItemQuantity:x}=o;v.useEffect(()=>{const F=Fo.get("lastMedias");if(o.id&&F&&a.current!==F){a.current=F;const G=new URLSearchParams(F),V=Uc(G);d(V)}},[o,d]);const j=v.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,O=String(A??"").split(" - ");return jt((O==null?void 0:O[0])??"",F,!!J)}return jt(String(B.coupon),F,!0)}return jt("","")}).catch(()=>Promise.resolve({code:400})),[u,h]),P=v.useCallback((F,G,V)=>{const{id:B}=F;x(B,G,V)},[x]),E=v.useCallback((F,G,V=!1)=>{if(!F)return;const{id:B}=F,J=Ho(o.items,B);if(J!==-1&&!V){const A=Number(o.items[J].quantity),O=o.items[J]?A+1:1;P(F,O,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=v.useCallback((F,G)=>{if(!F||!Array.isArray(F))return;s(B=>[...B,...F]);const V=F.map(B=>{const{id:J,quantity:A,seller:O}=B,D=Ho(o.items,J),X=zc(A??1,D);return{id:J,quantity:X,seller:O}});f(V,G)},[f,o.items,s]),R=v.useCallback(async(F,G,V)=>F?y(F).then(()=>(c(G??`${t}`,V),jt(F,F))):Promise.resolve(jt("","Product id required")),[c,y]),T=v.useCallback(()=>{o.items.length>0&&p()},[p,o.items]),w=v.useCallback((F,G="BRA")=>_(F,G),[_]),N=v.useCallback(F=>{F&&b(F)},[b]),I=v.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=v.useCallback(async(F,G)=>x(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}),[x]),k=v.useCallback(async()=>{await d({...o.marketingData,coupon:""})},[d,o.marketingData]),W=v.useCallback(async()=>{await d({...o.marketingData,utmiCampaign:"",utmCampaign:"",utmSource:"",utmMedium:""})},[d,o.marketingData]),q=v.useCallback(async()=>{await _("","BRA")},[_]);return r.jsx(vl.Provider,{value:v.useMemo(()=>({...n,addCouponSeller:j,addToCart:E,addItemsToCart:C,cartStore:o,notifications:i,clearCart:T,addNotification:c,isOpen:o.isOpen,removeNotification:l,removeToCart:R,setIsOpen:o.setIsOpen,shipping:w,shippingUpdateOption:N,toggleGiftItemCart:I,updateItemQuantity:z,removeCoupon:k,removeSellerCode:W,removeCEP:q}),[n,j,E,C,i,T,c,o,l,R,w,N,I,z,k,W,q]),children:e})},Ee=()=>{const e=v.useContext(vl);if(e===void 0)throw new Error("useCartContext must be used within a CartProvider");return e},xl=v.createContext({}),bs=({children:e,fetch:t})=>{const n=v.useRef(!0),[o,s]=v.useState(null),[a,i]=v.useState(!1);return v.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:v.useMemo(()=>({data:o,isLoading:n.current??!1,isError:a}),[o,a,n]),children:e})},js=()=>{const e=v.useContext(xl);if(e===void 0)throw new Error("useProductsContext must be used within a useRootContext");return e},bl=v.createContext({}),Cs=({children:e,sort:t,state:n,count:o,collectionId:s,brand:a,searchParams:i,ITEMS_PER_PAGE:c})=>{const l=v.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:v.useMemo(()=>({state:{...n,facets:[...l,...n.facets??[]]},sort:t,count:o??c,searchParams:i}),[l,o,t,n,i]),children:e})},ze=()=>{const e=v.useContext(bl);if(e===void 0)throw new Error("useSearchContext must be used within a SearchProvider");return e},jl=v.createContext({}),Fm=({children:e,...t})=>r.jsx(jl.Provider,{value:t,children:e}),Me=()=>{const e=v.useContext(jl);if(e===void 0)throw new Error("usePLPConstants must be used within a PLPConstantsProvider");return e},Cl=v.createContext({}),Bm=({children:e,selectedFacets:t})=>{const{data:n,...o}=js(),{router:s}=_e(),{searchParams:a,PLP_SORT_DEFAULT:i}=Me(),c=v.useCallback((d,p)=>{if(p){if(d.key.toLocaleLowerCase()==="price"){const g=p.getAll("facets");p.delete("facets"),g.forEach(y=>{const[_]=y.split("/");_!==d.key&&p.append("facets",y)})}p.set("page","1"),p.append("facets",`${d.key}/${d.value}`),s.push(`?${p.toString()}`)}},[s]),l=v.useCallback(()=>{const d=new URLSearchParams;d.set("sort",i),d.set("page","1"),s.push(`?${d.toString()}`)},[s]),u=v.useCallback((d,p)=>{if(!p||!p.has&&!p.has("facets"))return;const g=p.getAll("facets");p.delete("facets"),p.set("page","1"),g.forEach(y=>{const[_,b]=y.split("/");(_!==d.key||b!==d.value)&&p.append("facets",y)}),s.push(`?${p.toString()}`)},[s]),f=v.useCallback(d=>{const p=a?new URLSearchParams(a):new URLSearchParams;for(const[,g]of p.entries()){const[y,_]=g.split("/");if(y===d.key&&_===d.value)return u(d,p)}return c(d,p)},[c,u,a]),h=v.useCallback(d=>{const p=a?new URLSearchParams(a):new URLSearchParams;p.set("sort",d.replace("_",":")),s.push(`?${p.toString()}`)},[s,a]);return r.jsx(Cl.Provider,{value:v.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(bs,{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=v.useContext(Cl);if(e===void 0)throw new Error("useFacetsContext must be used within a FacetsProvider");return e},Mt={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=v.createContext({}),Qm=({children:e})=>{const{data:t,...n}=js(),[o,s]=v.useState(0),{sendDataLayerEvent:a}=le();return v.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:v.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})},Ss=({children:e,query:t,forceUpdate:n})=>{const{count:o,state:s}=ze(),a={...s,count:o};return r.jsx(bs,{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=v.useContext(wl);if(e===void 0)throw new Error("useProductsContext must be used within a ProductsProvider");return e},El=v.createContext({}),Zm=({children:e,term:t})=>{const[n,o]=v.useState([]),[s,a]=v.useState(!1);return v.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:v.useMemo(()=>({suggestedTerms:n,loading:s,setLoading:a}),[n,s]),children:e})},Jm=({children:e,...t})=>r.jsx(Zm,{...t,children:e}),eh=()=>{const e=v.useContext(El);if(!e)throw new Error("useSuggestedTermsContext must be used within a SuggestedTermsProvider");return e},Rl=v.createContext({searches:[],isLoading:!1,error:null}),th=({children:e})=>{const[t,n]=v.useState([]),[o,s]=v.useState(!0),[a,i]=v.useState(null);return v.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:v.useMemo(()=>({searches:t,isLoading:o,error:a}),[t,o,a]),children:e})},rh=()=>{const e=v.useContext(Rl);if(!e)throw new Error("useTopSearches must be used within a TopSearchesProvider");return e},Al=v.createContext({}),nh=({children:e,slug:t,searchParams:n,collectionId:o,brand:s,itemsPerPage:a=24,PLP_SORT_DEFAULT:i})=>{const{pathname:c}=_e(),l=v.useRef(""),[u,f]=v.useState(!1),h=v.useMemo(()=>{const p=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 p.searchParams.set("page",String(y)),p.searchParams.set("sort",String(_)),n!=null&&n.get("query")?(p.searchParams.set("query",n.get("query")),p):(p.searchParams.set("base",Array.isArray(t)?t.join("/"):t),p.searchParams.set("facets",g.join(",")),p)},[o,c,n,t]),d=v.useMemo(()=>{if(Array.isArray(n==null?void 0:n.getAll("facets")))return U.parseSearchState(h,n.getAll("facets")??[""]);const p=(n==null?void 0:n.getAll("facets"))??[];return U.parseSearchState(h,p)},[h,n]);return v.useEffect(()=>{l.current!==c&&(l.current=c,window.document.body.scrollTo(0,0))},[c]),r.jsx(Al.Provider,{value:v.useMemo(()=>({openFilters:u,setOpenFilters:f}),[u,f]),children:r.jsx(Cs,{ITEMS_PER_PAGE:a,searchParams:n??new URLSearchParams,state:v.useMemo(()=>({...d}),[d]),collectionId:o,brand:s,children:e})})},Ps=()=>{const e=v.useContext(Al);if(e===void 0)throw new Error("usePLPContext must be used within a PLPProvider");return e},Sr=(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)=>Sr(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)&&Sr(e[s],t[s]))},Nl=(e,t,n="page")=>Object.keys(t).some(o=>o===n?!1:!Sr(t[o],e[o])),Wo=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((p,g)=>s.has(l+g))){for(let p=0;p<c.columns;p++)s.add(l+p);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}},Go=(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}},br=(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:ws(),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:ws(),products:[]}],ws=()=>({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},Ll=(e,t)=>{if(!e)return[];const n=e.map((o,s)=>o.video&&o.video!==""?s:null).filter(o=>o);return kl(n,t)},Ml=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:Ml,createPage:Ol,createPages:br,createPagination:ws,createProduct:Il,deepEqual:Sr,fetchPage:Wo,getBanners:Tl,getPositions:Go,getProductsWithVideo:Ll,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 Wo({...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,d,p;const f=n(Number(i==null?void 0:i.page));e({...c,pages:br(f,void 0,u)});try{const g=await Wo({...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:(d=g==null?void 0:g.pagination)==null?void 0:d.total},l),e({pages:br((p=g==null?void 0:g.pagination)==null?void 0:p.total)});return}typeof l=="function"&&l(g),e({load:!0,pages:br(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,d=t.find(g=>g.position_grid===h+1),p=h+s+1;d&&(s+=d.columns),a.push({position:p,canPlayVideo:u===l})}}return a},Dl=(e,t,n)=>{const o=(t-1)*n,s=t*n;return e>=o&&e<=s},Ir=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:Ir,isPositionInCurrentPage:Dl},Symbol.toStringTag,{value:"Module"})),$l=({isMobile:e,ICONS:t,NOTIFY_INFO:n})=>r.jsxs(r.Fragment,{children:[r.jsx(m.Modal.Controls,{navigation:e?"top":"middle",isMobile:e??!1,children:!e&&r.jsxs(r.Fragment,{children:[r.jsx(m.Button,{"data-close":!0,iconNameStart:t.arrow_left,size:"small",variant:"tertiary"}),r.jsx(m.Button,{"data-close":!0,iconNameStart:t.close,size:"small",variant:"tertiary"})]})}),r.jsx(m.Modal.Title,{navigation:e?"top":"middle",title:n.title})]});$l.displayName="Notify.Controls";const Ke={"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 Es(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}=Ee();return v.useEffect(()=>{if(!t)return;(async()=>{const{userId:s,email:a,firstName:i,lastName:c,phone:l,homePhone:u,postalCode:f,street:h,number:d,city:p,gender:g}=t,y=new TextEncoder().encode(s),_=await crypto.subtle.digest("SHA-256",y),S=Array.from(new Uint8Array(_)).map(x=>x.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:d,city:p,gender:g,orderform_id:n==null?void 0:n.id}}})})()},[t,n.id]),null},Fl=v.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]=v.useState({amount:null,boxes:null,toExpire:null,loading:!0}),s=v.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=v.useCallback(()=>{Es(t),s()},[s]),i=v.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 v.useEffect(()=>{s()},[s]),r.jsxs(Fl.Provider,{value:v.useMemo(()=>({...n,getCurrentCredits:i,logout:a}),[n,i,a]),children:[r.jsx(uh,{}),e]})},Ot=()=>{const e=v.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=v.useRef(null),[l,u]=v.useState(null),{sendDataLayerEvent:f}=le(),{user:h}=Ot(),d=h!=null&&h.firstName?`${h==null?void 0:h.firstName} ${h==null?void 0:h.lastName}`:"";return r.jsx("div",{className:Ke["notify--form"],children:r.jsxs("form",{action:"POST",onSubmit:async p=>{var _;p.preventDefault();const g=p.currentTarget,y=((_=g.querySelector("input"))==null?void 0:_.value)??"";fetch("/api/aviseme",{method:"POST",body:JSON.stringify({userName:d,email:y,sku: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(m.TextField.Structure,{input:r.jsx(m.TextField.Input,{feedback:typeof l=="boolean"&&l?"error":"none",type:"email",label:i.email_placeholder,mode:"over-label",variant:"outlined",sizeVariant:"large",onChange:p=>u(!p.target.validity.valid),required:!0}),supportText:typeof l=="boolean"&&l?r.jsx(m.TextField.SupportText,{text:a.messages.invalid_email,feedback:"error"}):r.jsx(r.Fragment,{})}),r.jsx(m.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:Ke["notify--loading"],"data-loading":e,children:r.jsx(m.Spinner,{})});ql.displayName="Notify.Loading";const Rs={"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:Rs["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(m.ToggleSize.Wrapper,{...s,size:"large",variation:"ghost",children:[r.jsx(m.ToggleSize.DisabledAdornment,{title:"disabled-adornment-size"}),r.jsx(m.ToggleSize.Text,{children:o})]}):r.jsxs(m.ToggleStyle.Wrapper,{...s,size:"small",title:"wrapper-texture",children:[r.jsx(m.ToggleStyle.DisabledAdornment,{title:"disabled-adornment-texture"}),n==="color"?r.jsx(m.ToggleStyle.Color,{background:e,title:"color"}):r.jsx(m.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:Rs["product-variation-list"],...t,children:e});Wl.displayName="ProductVariationList.Root";const Gl=({children:e,title:t,...n})=>r.jsxs("div",{...n,className:Rs["product-variation-list--title"],children:[t?r.jsx(m.TextStructure.Root,{children:r.jsx(m.TextStructure.SectionWrapper,{children:r.jsx("p",{children:t})})}):r.jsx(r.Fragment,{}),e]});Gl.displayName="ProductVariationList.Title";const Ye={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:Ke["notify--selector--header"],children:e}),r.jsxs(Ye.Root,{className:Ke["notify--selector"],children:[r.jsx(Ye.Title,{title:t}),r.jsx(Ye.List,{children:Array.isArray(n)&&n.map((a,i)=>{const c=fh(o,a);return r.jsx(Ye.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:Ke[`notify--status--${e}`],children:r.jsx(m.TextStructure.Root,{adornment:{start:r.jsx(m.Icon,{name:t,size:"large"})},children:r.jsxs(m.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:Ke["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 As=({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,d]=v.useState(!1),[p,g]=v.useState(null),{isMobile:y}=ce();return r.jsxs(m.Modal.Root,{isMobile:y??!1,isOpen:t,setIsOpen:n,variant:y?"sideBottom":"sideLeft",style:{zIndex:f.modal},className:Ke["modal-modifier"],children:[r.jsx(m.Modal.Header,{navigation:"top",className:Ke["notify--header-modifier"],children:r.jsx($l,{isMobile:y??!1,ICONS:i,NOTIFY_INFO:l})}),r.jsxs(m.Modal.Body,{className:Ke["notify--modal--body"],children:[r.jsxs("div",{className:Ke["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:d,color:e,NEWSLETTER_CONFIGS:c,NOTIFY_INFO:l}),r.jsx(ql,{isLoading:h}),r.jsx("div",{className:Ke["notify--selector--header"],children:r.jsx("span",{children:l.legal})})]}),r.jsx(Kl,{status:p,ICONS:i,PRODUCT_CARD_TEXTS:u})]})]})};As.displayName="Notify";const Tr=({skus:e,ICONS:t,NEWSLETTER_CONFIGS:n,NOTIFY_INFO:o,PRODUCT_CARD_TEXTS:s,Z_INDEX_WAR:a,...i})=>{const c=Ir(e??[]);return r.jsx(As,{skus:c,ICONS:t,NEWSLETTER_CONFIGS:n,NOTIFY_INFO:o,PRODUCT_CARD_TEXTS:s,Z_INDEX_WAR:a,...i})};Tr.displayName="PDC.Notification";const Xl=v.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}=Me(),{router:u}=_e(),{sendDataLayerEvent:f}=le(),{isMobile:h}=ce(),{state:d}=ze(),{addPage:p,createPages:g,updateProducts:y,..._}=ih(),b=h?8:16,S=h?2:4,x=v.useRef(!1),j=v.useRef(d),[P,E]=v.useState(!1),[C,R]=v.useState(null),[T,w]=v.useState([]),N=v.useCallback(q=>{q&&"pagination"in q&&f({functionKey:"productListEvent",data:{event:"view_item_list",commonData:{products:q.products}}})},[f]),I=v.useCallback(q=>{if(q.pagination.nextPage===!0){const F=q.page+1,G=Go(e,F,S,o);p({...d,page:F},G,N)}},[p,e,N,S,o,d]),z=v.useCallback(q=>{q.loading===!1&&y({...d,page:q.page},N)},[N,y,d]),k=v.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=v.useCallback((q,F)=>{const G=F?Ir([F]):null;w(q),R(G!=null&&G.length?G[0]:null),E(!0)},[]);return v.useEffect(()=>{const q=!x.current,F=Nl(j.current,d),G=Go(e,d.page,S);q?g(d,G,N,o):F&&(g(d,G,N,o),j.current=d),x.current=!0},[e,g,N,S,o,d]),r.jsxs(Xl.Provider,{value:v.useMemo(()=>({..._,addPage:p,addNewPage:I,createPages:g,gap:b,columns:S,handleNotify:W,updatePage:z,updateProducts:y,updateParamPage:k}),[p,I,g,W,b,S,_,z,y,k]),children:[t,r.jsx(Tr,{open:P,sku:C,skus:T,setSku:R,setVisible:E,ICONS:s,NEWSLETTER_CONFIGS:a,NOTIFY_INFO:i,PRODUCT_CARD_TEXTS:c,Z_INDEX_WAR:l})]})},st=()=>{const e=v.useContext(Xl);if(e===void 0)throw new Error("PLPInfiniteScrollContext must be used within a ScrollInfiniteProvider");return e},Ql=v.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=v.useMemo(()=>{var h,d;return((d=(h=u==null?void 0:u.data)==null?void 0:h.banners)==null?void 0:d.map(p=>({...p.banner,columns:p.bannerWidth,position_grid:p.bannerPosition})))??[]},[u]);return a&&n==="mobile"||!a&&n==="desktop"?r.jsxs(Ql.Provider,{value:{gridBanners:u,banners:f},children:[r.jsx(o,{data:c??[]}),r.jsxs(m.Utils.Column,{gap:s,className:m.helpers.classNameConcat("utils-column-modifier"),children:[e,r.jsx(o,{data:l??[]})]})]}):r.jsx(r.Fragment,{})},Or=()=>{const e=v.useContext(Ql);return e===void 0&&console.error("Needs PLPContentContext on parent component"),e},Zl=v.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:v.useMemo(()=>({...o,filters:{...t,facets:s}}),[t,s,o]),children:e})},kt=()=>{const e=v.useContext(Zl);if(e===void 0)throw new Error("useFilterContext must be used within a FilterProvider");return e},eu=v.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(m.Utils.Column,{gap:o,className:m.helpers.classNameConcat("utils-column-modifier"),children:r.jsx(s,{data:(t==null?void 0:t.sections)??[]})})]}),tu=()=>{const e=v.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:Es,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 p;if(f==="terms-and-conditions")return;const h=(p=t[f])==null?void 0:p.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=v.createContext({}),su=({children:e,masterDataEmailField:t,fields:n,variant:o,CONSTANTS:{MASTER_DATA_ENTITY:s,NEWSLETTER_CONFIGS:a}})=>{const{sendDataLayerEvent:i}=le(),c=o==="vertical"&&a.hasTermsAndConditions,{mountedFields:l,mountedInputsStatus:u}=v.useMemo(()=>jh({fields:n}),[n]),f=v.useRef(!1),[h,d]=v.useState("idle"),[p,g]=v.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({id:E,fieldsToBeUpdated:C,entity:R})=>(await mt.post("/api/master-data/update",{dataEntityName:R,id:E,fieldsToBeUpdated:C})).status,b=v.useCallback(async({payload:E,response:C},R,T)=>{const{email:w,...N}=E,[I]=await y({searchFields:{[R]:w},entity:T??s.newsletter});return I&&await _({id:I.id,fieldsToBeUpdated:N,entity:T??s.newsletter})!==204?{...C,status:"error"}:{...C,status:"success"}},[]),S=v.useCallback(async({formData:E},C,R)=>{const T={status:"idle",inputsStatus:{}},w={};E.forEach((N,I)=>{w[I]=N});try{const I=(await mt.post("/api/master-data",{body:{payload:w,masterDataEntity:C??s.newsletter}})).data;return(I==null?void 0:I.Message)==="duplicated entry"?b({payload:w,response:T},R,C):I!=null&&I.Id?{...T,status:"success"}:{...T,status:"error"}}catch(N){return console.error("error",N),{...T,status:"error"}}},[b]),x=v.useCallback(async(E,C,R)=>{E.preventDefault();const T=new FormData(E.target);C&&Object.keys(C).forEach(N=>{T.append(N,C[N])});const w=await S({formData:T},R??"",t);w&&(d(w==null?void 0:w.status),g(w.inputsStatus),w.status==="success"&&i({functionKey:"readyEvents",data:{event:"generate_lead"}}))},[t,S,d,g,i]),j=v.useCallback(E=>{const C=new FormData(E.currentTarget.parentElement),{hasEmptyFields:R,hasErrors:T,inputStatusToUpdate:w}=Ch({formData:C,mountedFields:l,inputsStatus:p,hasTermsAndConditions:c,checkboxRef:f,setFormStatus:d});if(g(w),R||T){E.preventDefault();return}d("loading")},[l,p,c,f]),P=v.useCallback(()=>{d("idle"),g(u)},[u]);return r.jsx(ou.Provider,{value:v.useMemo(()=>({formStatus:h,handleSubmit:x,setFormStatus:d,inputsStatus:p,setInputsStatus:g,hasTermsAndConditions:c,handleClickToSubmit:j,checkboxRef:f,masterDataEmailField:t,fields:n,variant:o,resetNewsletter:P}),[h,x,d,p,g,j,c,f,t,n,o,P]),children:e})},Ns=()=>{const e=v.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:Ee,provider:zm},cms:{FlagsAndTags:{context:ls,hook:ot,provider:tm}},newsletter:{hook:Ns,provider:su},events:{hook:le,provider:lm},global:{hook:ce,provider:Pm,mediator:Kc},header:{hook:Pe,provider:Mm},menuMobile:{hook:xs,provider:gl},next:{hook:_e,provider:wm},pdp:{provider:rm},PDPContent:{provider:mh,hook:tu},plp:{provider:nh,hook:Ps},plpFilter:{hook:kt,provider:Jl},PLPContent:{provider:ph,hook:Or},plpInfinite:{provider:Yl,hook:st},pdpdata:{provider:um},searchFacets:{hook:Pl,provider:Sl},searchProducts:{hook:Xt,provider:Ss},searchRoot:{hook:js,provider:bs},searchSearch:{hook:ze,provider:Cs},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:us,useSentinel:Nr,useTouchZoomPan:Rc},stores:{cart:Cm,header:Rm,pdp:km,wishlist:Lm}},Sh={cart:xm,events:cm,plp:sh,product:U.productHelpers,utils:bh},Is={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:m.helpers.classNameConcat(qe["add-to-cart--card--name"],t),children:[r.jsx(m.Tag,{style:{textTransform:"uppercase"},size:"small",variant:"quaternary",title:e,children:e}),r.jsx(m.TextStructure.Root,{children:r.jsx(m.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:m.helpers.classNameConcat(qe["add-to-cart--card--price-quantity"],e),children:r.jsx(m.ProductInfo.Root,{size:"small",layout:"vertical",children:r.jsx(m.ProductInfo.Wrapper,{size:"small",layout:"vertical",children:r.jsx(m.ProductInfo.ValuesWrapper,{children:n!==t?r.jsxs(r.Fragment,{children:[r.jsx(m.ProductInfo.Price,{label:"originalPrice",value:i,size:"small"},"price-list"),r.jsx(m.ProductInfo.Price,{label:"discountPrice",value:c,size:"small"},"price-low")]}):r.jsx(m.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:m.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]=v.useState(o??"");return v.useEffect(()=>{c||fetch("/api/catalog/product/info",{method:"POST",priority:"low",body:JSON.stringify({ids:[t]})}).then(u=>u.json()).then(u=>{const f=u.data[0].items[0];if(f){const h=f.images.find(d=>a.includes(d.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:m.helpers.classNameConcat(qe["add-to-cart--card--style-size"],e),children:[r.jsx(m.ToggleStyle.Wrapper,{size:"x-small",style:i,children:r.jsx(m.ToggleStyle.Texture,{children:c?r.jsx(Ie.Image,{alt:"",src:c??"",width:164,height:164,style:i}):r.jsx(lu,{})})}),r.jsx(m.Utils.Divider,{direction:"vertical",size:"medium",style:{height:24}}),n&&r.jsxs(m.ToggleSize.Wrapper,{size:"small",title:"wrapper-texture",children:[r.jsx(m.ToggleSize.DisabledAdornment,{title:"disabled-adornment-texture"}),r.jsx(m.ToggleSize.Text,{children:n})]})]})};uu.displayName="AddToCart.Card.StyleSize";const{helpers:Ih}=Is,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:d}=Ih.product.getColorAndSizeFromSkuName(i??s,h);return r.jsxs("div",{...o,className:m.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:d,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:m.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:m.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 p,g;const{isMobile:n,handleClose:o,CONSTANTS:{ADD_TO_CART:s}}=xt(),{cartStore:{totalizers:a},setIsOpen:i}=Ee(),c=(p=a.find(y=>y.id==="Discounts"))==null?void 0:p.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,d=U.formatPriceToCurrency(h??0);return r.jsxs("div",{...t,className:m.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:d})]}),r.jsx(m.Button,{size:"medium",variant:"primary","data-close":!0,onClick:()=>i(!0),children:s.footer.bag}),n?r.jsx(m.Button,{"data-close":!0,size:"medium",variant:"tertiary",children:s.footer.keep_buying}):r.jsx(m.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}}=Ee(),{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(m.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(m.Modal.Header,{navigation:"top",children:r.jsx(m.Modal.Controls,{navigation:"top",isMobile:!0})}),r.jsx(m.Modal.Body,{children:e})]})};yu.displayName="AddToCart.Modal";const Th=({children:e})=>{const{count:t,handleClose:n,setIsOpen:o}=xt(),s=v.useRef(t);return v.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(m.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},Ts=({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(m.Badge.Count,{count:n.length-s,size:"medium",variant:"secondary"})})}),...t})};Ts.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(m.Card,{...i,shadow:!0,padding:"small",className:m.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"},Lh=({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(m.Button,{onClick:t,className:lt["add-button"],size:"large",disabled:o===0,variant:"primary",children:n.BUY_BUTTON_LABELS.add_to_cart})]})},Mh=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=v.createContext({}),$h=({children:e,item:t,index:n,shelfTitle:o,...s})=>{const[a,i]=v.useState(null),c=v.useRef(null),l=v.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}})},d=()=>{h("add_to_wishlist")},p=()=>{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:v.useMemo(()=>({...s,index:n,item:t,element:c,selectedSku:a,setSelectedSku:i,eventDataRef:l,sendAddToWishlistEvent:d,sendSelectItemEvent:g,sendAddToCartEvent:p}),[s,t,c,a]),children:e})},Ve=()=>{const e=v.useContext(xu);if(e===void 0)throw new Error("useProductCardContext must be used within a ProductCardProvider");return e},Ae={"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}}=Ve();return i?r.jsxs("div",{...a,className:m.helpers.classNameConcat(Ae["product-card--actions"],n),children:[r.jsxs(xe.Wrapper,{type:"actions--group",children:[r.jsx(xe.Price,{}),r.jsx("div",{className:Ae["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}=Ee(),{isMobile:s=!1,selectedSku:a,outStock:i,item:c,sendAddToCartEvent:l,CONSTANTS:u}=Ve(),f=()=>{var p;if(!a)return;const d=U.getValidOffer(a.offers.offers,u.StoreConfig_MainSellerId);d&&o({id:a==null?void 0:a.sku,quantity:1,seller:d.seller.identifier},{id:c.id,texture:(p=c==null?void 0:c.image.find(g=>u.TEXTURE_IMAGE.includes(g.alternateName)))==null?void 0:p.url}),l()},h=a?u.BUY_BUTTON_LABELS.add_to_cart:u.BUY_BUTTON_LABELS.select_size;return r.jsx(m.Button,{...n,className:m.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(m.SnackBar.Structure,{...c,size:e,className:m.helpers.classNameConcat(zh["snackbar-modifier"],a),width:360,style:{zIndex:i.snackbar},children:[r.jsx(m.SnackBar.Content,{adornment:t,title:n,subtitle:o}),s&&r.jsx(m.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 kr(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 Vo={exports:{}},ke={};ke._=ke._interop_require_default=Bh;function Bh(e){return e&&e.__esModule?e:{default:e}}var sr={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,d)=>i.append(d,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||"",d=l.pathname||"",p=l.hash||"",g=l.query||"",y=!1;u=u?encodeURIComponent(u).replace(/%3A/i,":")+"@":"",l.host?y=u+l.host:f&&(y=u+(~f.indexOf(":")?"["+f+"]":f),l.port&&(y+=":"+l.port)),g&&typeof g=="object"&&(g=String(o.urlQueryToSearchParams(g)));let _=l.search||g&&"?"+g||"";return h&&!h.endsWith(":")&&(h+=":"),l.slashes||(!h||s.test(h))&&y!==!1?(y="//"+(y||""),d&&d[0]!=="/"&&(d="/"+d)):y||(y=""),p&&p[0]!=="#"&&(p="#"+p),_&&_[0]!=="?"&&(_="?"+_),d=d.replace(/[?#]/g,encodeURIComponent),_=_.replace("#","%23"),""+h+y+d+_+p}const 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 d},ST:function(){return p},DecodeError:function(){return g},NormalizeError:function(){return y},PageNotFoundError:function(){return _},MissingStaticPage:function(){return b},MiddlewareNotFoundError:function(){return S},stringifyError:function(){return x}});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),T=0;T<C;T++)R[T]=arguments[T];return P||(P=!0,E=j(...R)),E}}const s=/^[a-zA-Z][a-zA-Z\d+\-.]*?:/,a=j=>s.test(j);function i(){const{protocol:j,hostname:P,port:E}=window.location;return j+"//"+P+(E?":"+E:"")}function c(){const{href:j}=window.location,P=i();return j.substring(P.length)}function l(j){return typeof j=="string"?j:j.displayName||j.name||"Unknown"}function u(j){return j.finished||j.headersSent}function f(j){const P=j.split("?");return P[0].replace(/\\/g,"/").replace(/\/\/+/g,"/")+(P[1]?"?"+P.slice(1).join("?"):"")}async function h(j,P){if(process.env.NODE_ENV!=="production"){var E;if((E=j.prototype)!=null&&E.getInitialProps){const T='"'+l(j)+'.getInitialProps()" is defined as an instance method - visit https://nextjs.org/docs/messages/get-initial-props-as-an-instance-method for more information.';throw new Error(T)}}const 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 T='"'+l(j)+'.getInitialProps()" should resolve to an object. But found "'+R+'" instead.';throw new Error(T)}return process.env.NODE_ENV!=="production"&&Object.keys(R).length===0&&!P.ctx&&console.warn(""+l(j)+" returned an empty object from `getInitialProps`. This de-optimizes and prevents automatic static optimization. https://nextjs.org/docs/messages/empty-object-getInitialProps"),R}const d=typeof performance<"u",p=d&&["mark","measure","getEntriesByName"].every(j=>typeof performance[j]=="function");class g extends Error{}class y extends Error{}class _ extends Error{constructor(P){super(),this.code="ENOENT",this.name="PageNotFoundError",this.message="Cannot find module for page: "+P}}class b extends Error{constructor(P,E){super(),this.message="Failed to load static file for page: "+P+" "+E}}class S extends Error{constructor(){super(),this.code="ENOENT",this.message="Cannot find the middleware module"}}function x(j){return JSON.stringify({message:j.message,stack:j.stack})}}(Jr)),Jr}var ar={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 Os(){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 Mr(){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=Os(),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)}(ar,ar.exports)),ar.exports}var rn={},ir={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=Os();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)}(ir,ir.exports)),ir.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,d){if(h!==null&&h!==d)throw new Error("You cannot use different slug names for the same dynamic path ('"+h+"' !== '"+d+"').");a.forEach(p=>{if(p===d)throw new Error('You cannot have the same slug name "'+d+'" repeat within a single dynamic path');if(p.replace(/\W/g,"")===c.replace(/\W/g,""))throw new Error('You cannot have the slug names "'+p+'" and "'+d+'" differ only by non-word symbols within a single dynamic path')}),a.push(d)},l=c.slice(1,-1),u=!1;if(l.startsWith("[")&&l.endsWith("]")&&(l=l.slice(1,-1),u=!0),l.startsWith("...")&&(l=l.substring(3),i=!0),l.startsWith("[")||l.endsWith("]"))throw new Error("Segment names may not start or end with extra brackets ('"+l+"').");if(l.startsWith("."))throw new Error("Segment names may not start with erroneous periods ('"+l+"').");if(i)if(u){if(this.restSlugName!=null)throw new Error('You cannot use both an required and optional catch-all route at the same level ("[...'+this.restSlugName+']" and "'+s[0]+'" ).');f(this.optionalRestSlugName,l),this.optionalRestSlugName=l,c="[[...]]"}else{if(this.optionalRestSlugName!=null)throw new Error('You cannot use both an optional and required catch-all route at the same level ("[[...'+this.optionalRestSlugName+']]" and "'+s[0]+'").');f(this.restSlugName,l),this.restSlugName=l,c="[...]"}else{if(u)throw new Error('Optional route parameters are not yet supported ("'+s[0]+'").');f(this.slugName,l),this.slugName=l,c="[]"}}this.children.has(c)||this.children.set(c,new t),this.children.get(c)._insert(s.slice(1),a,i)}constructor(){this.placeholder=!0,this.children=new Map,this.slugName=null,this.restSlugName=null,this.optionalRestSlugName=null}}function n(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],d=c[h.pos];d!==void 0&&(u[f]=~d.indexOf("/")?d.split("/").map(p=>l(p)):h.repeat?[l(d)]:l(d))}),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 p},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(x=>{const j=n.INTERCEPTION_ROUTE_MARKERS.find(E=>x.startsWith(E)),P=x.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)(x)}).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:x}=y;const{key:j,optional:P,repeat:E}=c(b);let C=j.replace(/\W/g,"");x&&(C=""+x+C);let R=!1;return(C.length===0||C.length>30)&&(R=!0),isNaN(parseInt(C.slice(0,1)))||(R=!0),R&&(C=_()),x?S[C]=""+x+j:S[C]=""+j,E?P?"(?:/(?<"+C+">.+?))?":"/(?<"+C+">.+?)":"/(?<"+C+">[^/]+?)"}function d(y,_){const b=(0,s.removeTrailingSlash)(y).slice(1).split("/"),S=f(),x={};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:x,keyPrefix:_?i:void 0}):E?h({getSafeRouteKey:S,segment:E[1],routeKeys:x,keyPrefix:_?a:void 0}):"/"+(0,o.escapeStringRegexp)(j)}).join(""),routeKeys:x}}function p(y,_){const b=d(y,_);return{...u(y),namedRegex:"^"+b.namedParameterizedRoute+"(?:/)?$",routeKeys:b.routeKeys}}function g(y,_){const{parameterizedRoute:b}=l(y),{catchAll:S=!0}=_;if(b==="/")return{namedRegex:"^/"+(S?".*":"")+"$"};const{namedParameterizedRoute:x}=d(y,!1);let j=S?"(?:(/.*)?)":"";return{namedRegex:"^"+x+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(d=>{let p=f[d]||"";const{repeat:g,optional:y}=u[d];let _="["+(g?"...":"")+d+"]";return y&&(_=(p?"":"/")+"["+_+"]"),g&&!Array.isArray(p)&&(p=[p]),(y||d in f)&&(c=c.replace(_,g?p.map(b=>encodeURIComponent(b)).join("/"):encodeURIComponent(p))||"/")})||(c=""),{params:h,result:c}}}(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=Mr(),c=Au(),l=Vh(),u=tg();function f(h,d,p){let g,y=typeof d=="string"?d:(0,o.formatWithValidation)(d);const _=y.match(/^[a-zA-Z]{1,}:\/\//),b=_?y.slice(_[0].length):y;if((b.split("?")[0]||"").match(/(\/\/|\\)/)){console.error("Invalid href '"+y+"' passed to next/router in page: '"+h.pathname+"'. Repeated forward-slashes (//) or backslashes \\ are not valid in the href.");const x=(0,a.normalizeRepeatedSlashes)(b);y=(_?_[0]:"")+x}if(!(0,c.isLocalURL)(y))return p?[y]:y;try{g=new URL(y.startsWith("#")?h.asPath:h.pathname,"http://n")}catch{g=new URL("/","http://n")}try{const x=new URL(y,g);x.pathname=(0,i.normalizePathTrailingSlash)(x.pathname);let j="";if((0,l.isDynamicRoute)(x.pathname)&&x.searchParams&&p){const E=(0,n.searchParamsToUrlQuery)(x.searchParams),{result:C,params:R}=(0,u.interpolateAs)(x.pathname,x.pathname,E);C&&(j=(0,o.formatWithValidation)({pathname:C,hash:x.hash,query:(0,s.omit)(E,R)}))}const P=x.origin===g.origin?x.href.slice(x.origin.length):x.href;return p?[P,j||P]:P}catch{return p?[y]:y}}(typeof t.default=="function"||typeof t.default=="object"&&t.default!==null)&&typeof t.default.__esModule>"u"&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)}(sr,sr.exports)),sr.exports}var cr={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=Os();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=Mr(),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)}(cr,cr.exports)),cr.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._(v).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._(v);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 lr={exports:{}},ur={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)}(ur,ur.exports)),ur.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=v,o=Tu(),s=typeof IntersectionObserver=="function",a=new Map,i=[];function c(f){const h={root:f.root||null,margin:f.rootMargin||""},d=i.find(_=>_.root===h.root&&_.margin===h.margin);let p;if(d&&(p=a.get(d),p))return p;const g=new Map,y=new IntersectionObserver(_=>{_.forEach(b=>{const S=g.get(b.target),x=b.isIntersecting||b.intersectionRatio>0;S&&x&&S(x)})},f);return p={id:h,observer:y,elements:g},i.push(h),a.set(h,p),p}function l(f,h,d){const{id:p,observer:g,elements:y}=c(d);return y.set(f,h),g.observe(f),function(){if(y.delete(f),g.unobserve(f),y.size===0){g.disconnect(),a.delete(p);const b=i.findIndex(S=>S.root===p.root&&S.margin===p.margin);b>-1&&i.splice(b,1)}}}function u(f){let{rootRef:h,rootMargin:d,disabled:p}=f;const g=p||!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:d})}else if(!y){const j=(0,o.requestIdleCallback)(()=>_(!0));return()=>(0,o.cancelIdleCallback)(j)}},[g,d,h,y,b.current]);const x=(0,n.useCallback)(()=>{_(!1)},[]);return[S,y,x]}(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 dr={exports:{}},fr={exports:{}},xn={},La;function ig(){return La||(La=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 Ma;function cg(){return Ma||(Ma=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)}(fr,fr.exports)),fr.exports}var pr={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)}(pr,pr.exports)),pr.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=Mr(),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,d=f(l,void 0,h);if(d){const p="http"+(d.http?"":"s")+"://",g=h===d.defaultLocale?"":"/"+h;return""+p+d.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)}(dr,dr.exports)),dr.exports}var mr={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=Mr(),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)}(mr,mr.exports)),mr.exports}var hr={exports:{}},Ba;function pg(){return Ba||(Ba=1,function(e,t){Object.defineProperty(t,"__esModule",{value:!0});function n(h,d){for(var p in d)Object.defineProperty(h,p,{enumerable:!0,get:d[p]})}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)}(hr,hr.exports)),hr.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._(v),s=rg(),a=Au(),i=wu(),c=Lr(),l=og(),u=Iu(),f=sg(),h=ag(),d=dg(),p=fg(),g=pg(),y=new Set;function _(E,C,R,T,w,N){if(typeof window>"u"||!N&&!(0,a.isLocalURL)(C))return;if(!T.bypassPrefetchedCheck){const z=typeof T.locale<"u"?T.locale:"locale"in E?E.locale:void 0,k=C+"%"+R+"%"+z;if(y.has(k))return;y.add(k)}const I=N?E.prefetch(C,w):E.prefetch(C,R,T);Promise.resolve(I).catch(z=>{if(process.env.NODE_ENV!=="production")throw z})}function b(E){const R=E.currentTarget.getAttribute("target");return R&&R!=="_self"||E.metaKey||E.ctrlKey||E.shiftKey||E.altKey||E.nativeEvent&&E.nativeEvent.which===2}function S(E,C,R,T,w,N,I,z,k,W){const{nodeName:q}=E.currentTarget;if(q.toUpperCase()==="A"&&(b(E)||!k&&!(0,a.isLocalURL)(R)))return;E.preventDefault();const G=()=>{const V=I??!0;"beforePopState"in C?C[w?"replace":"push"](R,T,{shallow:N,locale:z,scroll:V}):C[w?"replace":"push"](T||R,{forceOptimisticNavigation:!W,scroll:V})};k?o.default.startTransition(G):G()}function x(E){return typeof E=="string"?E:(0,i.formatUrl)(E)}const P=o.default.forwardRef(function(C,R){let T;const{href:w,as:N,children:I,prefetch:z=null,passHref:k,replace:W,shallow:q,scroll:F,locale:G,onClick:V,onMouseEnter:B,onTouchStart:J,legacyBehavior:A=!1,...O}=C;T=I,A&&(typeof T=="string"||typeof T=="number")&&(T=o.default.createElement("a",null,T));const D=o.default.useContext(u.RouterContext),X=o.default.useContext(f.AppRouterContext),ne=D??X,ee=!D,M=z!==!1,te=z===null?g.PrefetchKind.AUTO:g.PrefetchKind.FULL;if(process.env.NODE_ENV!=="production"){let 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 Y=typeof C[se];if(se==="as"){if(C[se]&&Y!=="string"&&Y!=="object")throw ae({key:se,expected:"`string` or `object`",actual:Y})}else if(se==="locale"){if(C[se]&&Y!=="string")throw ae({key:se,expected:"`string`",actual:Y})}else if(se==="onClick"||se==="onMouseEnter"||se==="onTouchStart"){if(C[se]&&Y!=="function")throw ae({key:se,expected:"`function`",actual:Y})}else if((se==="replace"||se==="scroll"||se==="shallow"||se==="passHref"||se==="prefetch"||se==="legacyBehavior")&&C[se]!=null&&Y!=="boolean")throw ae({key:se,expected:"`boolean`",actual:Y})});const Q=o.default.useRef(!1);C.prefetch&&!Q.current&&!ee&&(Q.current=!0,console.warn("Next.js auto-prefetches automatically based on viewport. The prefetch attribute is no longer needed. More: https://nextjs.org/docs/messages/prefetch-true-deprecated"))}if(process.env.NODE_ENV!=="production"&&ee&&!N){let ae;if(typeof w=="string"?ae=w:typeof w=="object"&&typeof w.pathname=="string"&&(ae=w.pathname),ae&&ae.split("/").some(K=>K.startsWith("[")&&K.endsWith("]")))throw new Error("Dynamic href `"+ae+"` found in <Link> while using the `/app` router, this is not supported. Read more: https://nextjs.org/docs/messages/app-dir-dynamic-href")}const{href:Z,as:re}=o.default.useMemo(()=>{if(!D){const K=x(w);return{href:K,as:N?x(N):K}}const[ae,ve]=(0,s.resolveHref)(D,w,!0);return{href:ae,as:N?(0,s.resolveHref)(D,N):ve||ae}},[D,w,N]),$=o.default.useRef(Z),L=o.default.useRef(re);let oe;if(A)if(process.env.NODE_ENV==="development"){V&&console.warn('"onClick" was passed to <Link> with `href` of `'+w+'` but "legacyBehavior" was set. The legacy behavior requires onClick be set on the child of next/link'),B&&console.warn('"onMouseEnter" was passed to <Link> with `href` of `'+w+'` but "legacyBehavior" was set. The legacy behavior requires onMouseEnter be set on the child of next/link');try{oe=o.default.Children.only(T)}catch{throw T?new Error("Multiple children were passed to <Link> with `href` of `"+w+"` but only one child is supported https://nextjs.org/docs/messages/link-multiple-children"+(typeof window<"u"?`
|
|
3
3
|
Open your browser's console to view the Component stack trace.`:"")):new Error("No children were passed to <Link> with `href` of `"+w+"` but one child is required https://nextjs.org/docs/messages/link-no-children")}}else oe=o.default.Children.only(T);else if(process.env.NODE_ENV==="development"&&(T==null?void 0:T.type)==="a")throw new Error(`Invalid <Link> with <a> child. Please remove <a> or use <Link legacyBehavior>.
|
|
4
|
-
Learn more: https://nextjs.org/docs/messages/invalid-new-link-with-extra-anchor`);const ae=A?oe&&typeof oe=="object"&&oe.ref:R,[fe,pe,ue]=(0,h.useIntersection)({rootMargin:"200px"}),H=o.default.useCallback(ie=>{(L.current!==re||$.current!==Z)&&(ue(),L.current=re,$.current=Z),fe(ie),ae&&(typeof ae=="function"?ae(ie):typeof ae=="object"&&(ae.current=ie))},[re,ae,Z,ue,fe]);o.default.useEffect(()=>{process.env.NODE_ENV==="production"&&ne&&(!pe||!M||_(ne,Z,re,{locale:V},{kind:te},ee))},[re,Z,pe,V,M,D==null?void 0:D.locale,ne,ee,te]);const be={ref:H,onClick(ie){if(process.env.NODE_ENV!=="production"&&!ie)throw new Error('Component rendered inside next/link has to pass click event to "onClick" prop.');!A&&typeof G=="function"&&G(ie),A&&oe.props&&typeof oe.props.onClick=="function"&&oe.props.onClick(ie),ne&&(ie.defaultPrevented||S(ie,ne,Z,re,W,q,B,V,ee,M))},onMouseEnter(ie){!A&&typeof F=="function"&&F(ie),A&&oe.props&&typeof oe.props.onMouseEnter=="function"&&oe.props.onMouseEnter(ie),ne&&((!M||process.env.NODE_ENV==="development")&&ee||_(ne,Z,re,{locale:V,priority:!0,bypassPrefetchedCheck:!0},{kind:te},ee))},onTouchStart(ie){!A&&typeof J=="function"&&J(ie),A&&oe.props&&typeof oe.props.onTouchStart=="function"&&oe.props.onTouchStart(ie),ne&&(!M&&ee||_(ne,Z,re,{locale:V,priority:!0,bypassPrefetchedCheck:!0},{kind:te},ee))}};if((0,c.isAbsoluteUrl)(re))be.href=re;else if(!A||k||oe.type==="a"&&!("href"in oe.props)){const ie=typeof V<"u"?V:D==null?void 0:D.locale,_e=(D==null?void 0:D.isLocaleDomain)&&(0,d.getDomainLocale)(re,ie,D==null?void 0:D.locales,D==null?void 0:D.domainLocales);be.href=_e||(0,p.addBasePath)((0,l.addLocale)(re,ie,D==null?void 0:D.defaultLocale))}return A?o.default.cloneElement(oe,be):o.default.createElement("a",{...O,...be},T)});(typeof t.default=="function"||typeof t.default=="object"&&t.default!==null)&&typeof t.default.__esModule>"u"&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)})(Fo,Fo.exports);var tg=Fo.exports,rg=tg;const Me=Ir(rg),ng="_link_w24h0_1",og="_wrapper_w24h0_98",sg="_text_w24h0_106",yn={link:ng,wrapper:og,text:sg},et=({children:e,adornments:t,className:r,disableUnderline:o,href:s,mode:i,size:a,title:c,onClick:l,disablePadding:u,...f})=>{const h=m.helpers.ValidateProp({fieldTypes:jt.SizesSmallExtended,property:a,fallback:"medium"}),d=m.helpers.ValidateProp({fieldTypes:jt.Mode,property:i,fallback:"default"});return n.jsx(Me,{...f,className:m.helpers.classNameConcat(yn.link,r),href:s&&s.length>0?s:"#","data-size":h,"data-variant":d,title:c||"NextLink","data-disable-underline":o??!1,"data-disable-padding":u??!0,children:n.jsxs("div",{className:yn.wrapper,onClick:l,children:[t==null?void 0:t.start,n.jsx("p",{className:yn.text,"data-size":h,children:e}),t==null?void 0:t.end]})})},ig=({ICONS:e})=>{const{resetFeedback:t}=gt();return n.jsxs("div",{className:Dt["wishlist--snack--actions"],children:[n.jsx(et,{href:"/favoritos",children:"Ver Favoritos"}),n.jsx(m.Button,{variant:"tertiary",size:"small",onClick:t,adornment:{start:n.jsx(m.Icon,{name:e.close})}})]})},Rs=({WISHLIST_INFO:e,ICONS:t,Z_INDEX_WAR:r})=>{const o=ps(),{resetFeedback:s}=gt(),i=x.useRef(null);return x.useEffect(()=>{i.current&&clearTimeout(i.current),o&&(i.current=setTimeout(()=>{s()},5e3))},[o,s]),(o==null?void 0:o.active)&&n.jsx(Ct,{Z_INDEX_WAR:r,className:Dt["wishlist--snack"],"data-action":o.action,title:o.action==="add"?e.messages.add:e.messages.remove,supportChildren:n.jsx(ig,{ICONS:t}),size:"medium"})};Rs.displayName="WishList.Feedback";const As={"product-list--banner":"_product-list--banner_sfibj_1","product-list--card":"_product-list--card_sfibj_30","product-list":"_product-list_sfibj_1"},wu=({className:e,children:t,columns:r=1,isMobile:o=!1,gap:s=8,position_grid:i,totalColumns:a=4,PRODUCT_CARD_IMAGE_ASPECT_RATIO:c,...l})=>{const u=x.useMemo(()=>r%a===0?"initial":o||r<2?c:c.split("/").reverse().join("/"),[r,a,o]);return n.jsx("div",{...l,className:m.helpers.classNameConcat(As["product-list--banner"],e),style:{aspectRatio:u,maxWidth:`${r/a*100}%`,order:i,padding:s/2},children:t})};wu.displayName="ProductList.Banner";const Eu=({isKit:e,parent:t,productId:r,setNotify:o,CONSTANTS:s})=>{const{router:i}=xe(),a=x.useRef(!1),c=x.useRef(null),[l,u]=x.useState([]),f=g=>i.push(g??""),h=async g=>{try{const y=await fetch("/api/catalog/product/similars",{method:"POST",body:JSON.stringify({productId:g,filterTexture:s.TEXTURE_IMAGE}),priority:"low"});if(!y.ok)throw new Error("Erro ao buscar similares.");const _=await y.json();u(_)}catch(y){console.error(y)}},d=x.useCallback(g=>{!r||!g||(typeof h=="function"&&h(r),a.current=!0)},[r]),p=x.useCallback((g,y)=>{if(!g.isIntersecting){s.PLP_INFINITE_SCROLL&&c.current&&(clearTimeout(c.current),c.current=null);return}if(g.intersectionRatio>=y.threshold&&!a.current){if(s.PLP_INFINITE_SCROLL){c.current=setTimeout(()=>{d(!0)},s.PLP_PRODUCT_SIMILAR_DELAY);return}d(!0)}},[d]);return x.useEffect(()=>{if(e||!t.current)return;const g={root:null,threshold:.1},y=new IntersectionObserver(([_])=>{p(_,g)},g);return y.observe(t.current),()=>{c.current&&clearTimeout(c.current),y.disconnect()}},[p,t,e]),n.jsx(ve.Actions,{...l,callback:f,isKit:e,children:!e&&n.jsx(ve.SizeSelector,{setNotify:o})})};Eu.displayName="ProductList.Card.Actions";const Ru=({className:e,children:t,gap:r=32,item:o,isMobile:s,order:i,tag:a,hasMaxWidth:c=!0,index:l,setSkuSelected:u,showVideo:f,CONSTANTS:h,...d})=>{const p=x.useRef(null),{availability:{status:g}}=o,y=x.useCallback((b,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 n.jsxs("div",{...d,className:m.helpers.classNameConcat(As["product-list--card"],e),"data-mobile":s,"data-order":i,ref:p,style:{...c&&{maxWidth:s?"50%":"25%"},order:i,padding:r/2},children:[n.jsxs(ve.Root,{item:o,isMobile:s,index:l,size:s?"small":"medium",order:i,outStock:!g,CONSTANTS:h,children:[n.jsx(ve.Header,{product:o,tag:a==null?void 0:a.commercial}),n.jsx(ve.Media,{showVideo:f,hasPriority:!0}),n.jsxs(ve.Wrapper,{type:"body",children:[n.jsx(ve.Title,{tag:a==null?void 0:a.institucional}),n.jsx(Eu,{productId:o.isVariantOf.productGroupID,parent:p,setNotify:y,isKit:_,CONSTANTS:h}),!_&&n.jsx(ve.OutStock,{callback:y})]}),n.jsx(ve.Wrapper,{type:"footer",children:g&&n.jsx(ve.BuyButton,{isKit:_})})]}),t]})};Ru.displayName="ProductList.Card";const Au=({children:e,className:t,...r})=>n.jsx("div",{...r,className:m.helpers.classNameConcat(As["product-list"],t),children:e});Au.displayName="ProductList.Grid";const Je={Banner:wu,Card:Ru,Root:Au,helpers:Ym},ag="_pdc_alo7z_1",We={"pdc--empty":"_pdc--empty_alo7z_1","pdc--grid":"_pdc--grid_alo7z_17","pdc--grid--content":"_pdc--grid--content_alo7z_26","pdc--infinite":"_pdc--infinite_alo7z_41","pdc--infinite--loader":"_pdc--infinite--loader_alo7z_44","pdc--infinite--loader--page":"_pdc--infinite--loader--page_alo7z_54","pdc--infinite--card--disabled":"_pdc--infinite--card--disabled_alo7z_58","pdc--infinite--next-page":"_pdc--infinite--next-page_alo7z_91","pdc--infinite--next-page--card":"_pdc--infinite--next-page--card_alo7z_101","pdc--infinite--next-page--spinner":"_pdc--infinite--next-page--spinner_alo7z_111","pdc--pagination":"_pdc--pagination_alo7z_118",pdc:ag},Is=({className:e,ICONS:t,PLP_NOT_RESULT:r})=>{const{router:o}=xe(),{isMobile:s}=le(),i=()=>{o.push(r==null?void 0:r.link)};return n.jsxs("div",{className:m.helpers.classNameConcat(We["pdc--empty"],e),children:[n.jsxs(m.TextStructure.DivWrapper,{className:We["pdc--empty-wrapper"],children:[n.jsx("span",{className:s?"typography-style-body-md":"typography-style-heading-sm",children:r.title}),n.jsx("p",{className:s?"typography-style-body-xs":"typography-style-body-sm",children:r.subtitle})]}),n.jsx(m.Button,{adornment:{end:n.jsx(m.Icon,{name:t.arrow_right})},className:"typography-style-body-sm-strong",onClick:()=>i(),variant:"tertiary",children:n.jsx("b",{children:r.text})})]})};Is.displayName="PDC.Empty";const Or=e=>n.jsx("div",{...e,className:We["pdc--infinite--next-page"],children:n.jsx(m.Spinner,{className:We["pdc--infinite--next-page--spinner"]})});Or.displayName="PDC.Spinner";function Iu({CONSTANTS:e}){const{sendDataLayerEvent:t}=ce(),{isMobile:r}=le(),{getAvailableProductTag:o}=rt(),[s,i]=x.useState([]),[a,c]=x.useState(!0),l=Rt(),u=r?16:32;return x.useEffect(()=>{const f=async()=>{l.length?await fetch("/api/wishlist/products",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({productIds:l})}).then(h=>h.json()).then(h=>{i(h),t({functionKey:"productListEvent",data:{event:"view_item_list",commonData:{products:h}}})}).catch(h=>console.error(h)):i([]),c(!1)};if(l.length){f();return}if(l.length===0&&s.length===0){c(!1);return}i([]),c(!1)},[l]),n.jsx("section",{className:Dt["wishlist-grid"],children:n.jsxs("div",{className:Dt["wishlist-grid--container"],children:[a&&n.jsx(Or,{}),!l.length&&!(s!=null&&s.length)&&!a&&n.jsx(Is,{className:Dt["pdc-empty-modifier"],ICONS:e.ICONS,PLP_NOT_RESULT:e.WISHLIST_NOT_RESULT}),n.jsx(Je.Root,{children:Array.isArray(s)&&s.map((f,h)=>{const d=f.node.cluster.highlights||[],p=o(d);return n.jsx(Je.Card,{gap:u,isMobile:r??!1,item:f.node,tag:p,index:h,CONSTANTS:{BUY_BUTTON_LABELS:e.BUY_BUTTON_LABELS,MAIN_IMAGE:e.MAIN_IMAGE,PLP_GRID_SCROLL_BACK:e.PLP_GRID_SCROLL_BACK,PLP_INFINITE_SCROLL:e.PLP_INFINITE_SCROLL,PLP_SHOW_VIDEO_ON_PRODUCT_CARD:e.PLP_SHOW_VIDEO_ON_PRODUCT_CARD,PLP_PRODUCT_SIMILAR_DELAY:e.PLP_PRODUCT_SIMILAR_DELAY,PRODUCT_CARD_IMAGE_ASPECT_RATIO:e.PRODUCT_CARD_IMAGE_ASPECT_RATIO,PRODUCT_CARD_TEXTS:e.PRODUCT_CARD_TEXTS,PRODUCT_CARD_TOP_WISHLIST_TOGGLE:e.PRODUCT_CARD_TOP_WISHLIST_TOGGLE,PRODUCT_IMAGE_DIMENSIONS:e.PRODUCT_IMAGE_DIMENSIONS,SECOND_IMAGE:e.SECOND_IMAGE,StoreConfig_MainSellerId:e.StoreConfig_MainSellerId,TEXTURE_IMAGE:e.TEXTURE_IMAGE,Z_INDEX_WAR:e.Z_INDEX_WAR,ICONS:e.ICONS}},f.node.sku)})})]})})}Iu.displayName="Wishlist.Grid";const cg=e=>e.map(t=>{var r;return(r=t.isVariantOf)==null?void 0:r.productGroupID})??[],Nu=({WISHLIST_INFO:e,ICONS:t,Z_INDEX_WAR:r})=>{const o=At(),s=Rt(),i=ps(),{updateList:a}=gt();return x.useEffect(()=>{var l,u;i.active&&Ye.set("fs::wishlist",s);const c=async()=>{var f;await fetch("/api/wishlist/documents",{method:"PATCH",body:JSON.stringify({productIds:s,docId:(f=o==null?void 0:o.user)==null?void 0:f.id})}).catch(h=>{console.error("Error updating wishlist:",h)})};i.active&&((l=o.user)!=null&&l.id)&&s.length!==((u=o.wishlist)==null?void 0:u.length)&&c()},[i,o,s]),x.useEffect(()=>{var u;const c=async()=>{const f=await Ye.get("fs::wishlist");f&&(f==null?void 0:f.length)!==s.length&&a(f)},l=async()=>{var p;const f=await Ye.get("fs::wishlist")??[],h=o.wishlist?typeof o.wishlist[0]=="object"?cg(o.wishlist):o.wishlist:[],d=[...new Set([...f,...h])];a(d),Ye.set("fs::wishlist",s),h.length!==d.length&&await fetch("/api/wishlist/documents",{method:"PATCH",body:JSON.stringify({productIds:d,docId:(p=o.user)==null?void 0:p.id})}).catch(g=>{console.error("Error updating wishlist:",g)})};if((u=o.user)!=null&&u.id){l();return}c()},[o,a,s]),n.jsx(Rs,{ICONS:t,Z_INDEX_WAR:r,WISHLIST_INFO:e})};Nu.displayName="Wishlist.Init";const Tu=({product:e,priceInfo:t,size:r="medium",style:o,ICONS:s})=>{const{sendDataLayerEvent:i,currentLocalRef:a}=ce(),c=Rt(),{toggleProduct:l}=gt(),{isVariantOf:{productGroupID:u}}=e;return n.jsx(m.Button,{adornment:{start:n.jsx(m.Icon,{size:r,name:c.includes(u)?s.favorite_true:s.favorite_false})},onClick:()=>{l(u),i({functionKey:"productEvents",data:{event:c.includes(u)?"remove_from_wishlist":"add_to_wishlist",outsideEcommerceData:{region:a.current},commonData:{...e,...t}}})},style:{...o,border:"none"},variant:"tertiary"})};Tu.displayName="WishList.Toggle";const Ou={Feedback:Rs,Toggle:Tu,Grid:Iu,Init:Nu},ku=({product:e,tag:t,size:r="small"})=>{const o=e.offers.offers[0],{CONSTANTS:s}=Ve();return n.jsxs(ve.Wrapper,{type:"header",style:{zIndex:s.Z_INDEX_WAR.product_card_header},children:[t?n.jsx(m.Tag,{title:t.value,adornment:{start:t.enableIcon&&t.icon?n.jsx(m.Icon,{name:t.icon,size:"small",style:{color:t.iconColor}}):null},size:r,variant:"quaternary",style:{background:t.tagColor,color:t.textColor},children:t.value}):null,s.PRODUCT_CARD_TOP_WISHLIST_TOGGLE&&n.jsx(Ou.Toggle,{product:e,priceInfo:{price:o.price,listPrice:o.listPrice},variant:"card",ICONS:s.ICONS})]})};ku.displayName="ProductCard.Actions.Header";const Lu=({className:e,children:t,hasPriority:r=!1,showVideo:o=!1,...s})=>{const{element:i,index:a,item:{image:c,slug:l,video:u},sendSelectItemEvent:f,order:h,CONSTANTS:d}=Ve(),p=U.getFirstImages({images:c,label:{first:d.MAIN_IMAGE,second:d.SECOND_IMAGE}});return n.jsxs("div",{...s,className:m.helpers.classNameConcat(Ae["product-card--image"],e),ref:i,style:{aspectRatio:d.PRODUCT_CARD_IMAGE_ASPECT_RATIO},children:[n.jsx(Me,{href:`/${l}/p`,onClick:f,onMouseUp:g=>{g.button===1&&f(),d.PLP_INFINITE_SCROLL&&sessionStorage.setItem(d.PLP_GRID_SCROLL_BACK.order,String(h))},children:n.jsx("div",{className:Ae["product-card--image--container"],children:Array.isArray(p)&&p.map(({url:g,alternateName:y},_)=>x.createElement(ze.Image,{...d.PRODUCT_IMAGE_DIMENSIONS.product_card,style:d.PRODUCT_IMAGE_DIMENSIONS.product_card,alt:y??"product image",key:_,...r&&{priority:_===0&&a<4},objectFit:"cover",src:g}))})}),d.PLP_SHOW_VIDEO_ON_PRODUCT_CARD&&o&&u&&n.jsx(ve.Video,{url:u,poster:p[0].url}),t]})};Lu.displayName="ProductCard.Media.Media";const Mu=({className:e,callback:t,children:r,...o})=>{const{isMobile:s,item:i,CONSTANTS:{PRODUCT_CARD_TEXTS:a}}=Ve(),{availability:{status:c}}=i;return c?null:n.jsxs("div",{...o,className:m.helpers.classNameConcat(Ae["product-card--outstock"],e),children:[n.jsx(m.Tag,{size:"small",variant:"secondary",title:a.disabled,children:a.disabled}),n.jsx(m.Button,{className:m.helpers.classNameConcat(e,"buy-button"),size:s?"medium":"large",variant:"quaternary",onClick:()=>{typeof t=="function"&&t(i)},children:a.notify})]})};Mu.displayName="ProductCard.OutStock";const Du=({children:e,className:t="",index:r,isMobile:o=!1,item:s,size:i,order:a,outStock:c,shelfTitle:l,CONSTANTS:u,...f})=>n.jsx(Ph,{item:s,isMobile:o,outStock:c,order:a,size:i,index:r,shelfTitle:l,CONSTANTS:u,children:n.jsx("div",{...f,className:m.helpers.classNameConcat(Ae["product-card--wrapper"],t),"data-size":i,children:e})});Du.displayName="ProductCard.Root";const $u=({disabled:e,label:t,size:r,value:o,onClick:s,...i})=>n.jsxs(m.ToggleSize.Wrapper,{...i,disabled:!1,outOfStock:e,size:r,onClick:s,children:[n.jsx(m.ToggleSize.DisabledAdornment,{}),n.jsx(m.ToggleSize.Text,{children:t})]});$u.displayName="ProductCard.SizeSelector.Item";const zu=({active:e=!1,callback:t,selectedSku:r=null,item:o,setNotify:s})=>{const{item:i,isMobile:a,setSelectedSku:c,eventDataRef:l}=Ve();o.productId=i.id;const u=U.disableSKU(o),f=U.getSKUName(o,"tamanho");!u&&!l.current.availableSkus.includes(f)&&l.current.availableSkus.push(f);const h=x.useCallback(p=>{const g=r===p?null:p;typeof c=="function"&&c(g),typeof t=="function"&&t(g)},[t,c,r]),d=x.useCallback(()=>{if(u&&typeof s=="function"){s(i,o);return}h(o)},[o,s,h,u,i]);return n.jsx($u,{active:e,disabled:u,label:f,onClick:()=>d(),size:a?"x-small":"small",value:o})};zu.displayName="ProductCard.SizeSelector.SkuItem";const Bu=({callback:e,className:t="",children:r,setNotify:o,...s})=>{const{isMobile:i,item:{isVariantOf:{hasVariant:a}},selectedSku:c}=Ve();return n.jsxs("div",{...s,className:m.helpers.classNameConcat(Ae["product-card--selectors--size"],t),"data-mobile":i,children:[n.jsx("div",{className:Ae["product-card--selectors--size--skus"],children:Array.isArray(a)&&a.map((l,u)=>n.jsx(zu,{active:c===l,callback:e,item:l,selectedSku:c,setNotify:o},`size--${u}--${l.sku}`))}),n.jsx("div",{className:Ae["product-card--selectors--size--button"],children:r})]})};Bu.displayName="ProductCard.SizeSelector";const qo=({alt:e="",callback:t,more:r,total:o=4,src:s,url:i,...a})=>n.jsxs(m.ToggleStyle.Wrapper,{...a,onClick:()=>{typeof t=="function"&&t(i)},children:[n.jsx(m.ToggleStyle.DisabledAdornment,{}),n.jsxs(m.ToggleStyle.Texture,{children:[s&&n.jsx(ze.Image,{alt:e??s,src:s,height:34,width:34}),r&&n.jsx(m.TextStructure.DivWrapper,{className:Ae["product-card--selectors--style--more"],children:n.jsxs("p",{children:["+ ",o]})})]})]}),lg=({children:e,callback:t,data:r,total:o=4,size:s,...i})=>{const{index:a}=Ve(),{triggerSelectItemEventRef:c}=ce();return n.jsxs("div",{...i,children:[e,Array.isArray(r)&&r.slice(0,o).map((l,u)=>n.jsx(qo,{callback:f=>{c.current.trigger=!0,c.current.index=a,typeof t=="function"&&t(f)},src:(l==null?void 0:l.textureImage)??"",alt:l==null?void 0:l.textureAlt,url:l==null?void 0:l.slug,size:s},u)),Array.isArray(r)&&(r==null?void 0:r.length)>o&&n.jsx(qo,{size:s,total:r.length-o,more:!0})]})},Fu=({callback:e,className:t,data:r,images:o=[],findTexture:s,...i})=>{const{CONSTANTS:a}=Ve(),c=s||a.TEXTURE_IMAGE,l=o==null?void 0:o.find(u=>c.includes(u.alternateName));return n.jsx(lg,{...i,callback:e,className:m.helpers.classNameConcat(Ae["product-card--selectors--style"],t),data:r,size:"x-small",children:l&&n.jsx(qo,{active:!0,size:"x-small",src:l.url})})};Fu.displayName="ProductCard.StyleSelector";const qu=({className:e,hasDecimal:t,...r})=>{const{isMobile:o,item:{offers:{lowPrice:s,highPrice:i},installments:{count:a,value:c}},eventDataRef:l}=Ve();l.current.priceInfo={price:s,listPrice:i};const u=U.formatPriceToCurrency(i,t),f=U.formatPriceToCurrency(s,t),h=U.formatPriceToCurrency(c??0),d=o?"horizontal":"stacked";return n.jsx("div",{...r,className:m.helpers.classNameConcat(Ae["product-card--price"],e),"data-mobile":o,children:n.jsx(m.ProductInfo.Root,{size:"small",layout:d,children:n.jsxs(m.ProductInfo.Wrapper,{size:"small",layout:d,children:[n.jsx(m.ProductInfo.ValuesWrapper,{children:f!==u?n.jsxs(n.Fragment,{children:[n.jsx(m.ProductInfo.Price,{label:"originalPrice",value:u,size:"small"}),n.jsx(m.ProductInfo.Price,{label:"discountPrice",value:f,size:"small"})]}):n.jsx(m.ProductInfo.Price,{label:"defaultPrice",value:f,size:"small"})}),a&&a>1&&c?n.jsx(m.ProductInfo.Price,{label:"installment",value:`${a}x ${h}`,size:"small"}):null]})})})};qu.displayName="ProductCard.Price";const Hu=({tag:e,className:t})=>{const{item:{name:r}}=Ve();return n.jsxs("div",{className:m.helpers.classNameConcat(Ae["product-card--title"],t),children:[n.jsx("div",{className:Ae["product-card--title--tag"],children:e?n.jsx(m.Tag,{size:"small",title:e.value,variant:"quaternary",adornment:{start:e.enableIcon&&e.icon?n.jsx(m.Icon,{name:e.icon,style:{color:e.iconColor}}):null},style:{background:e.tagColor,color:e.textColor},children:e.value}):n.jsx("div",{})}),n.jsx("div",{className:Ae["product-card--title--content"],children:r&&n.jsx(m.TextStructure.Root,{children:n.jsx(m.TextStructure.DivWrapper,{children:n.jsx("h3",{children:r})})})})]})};Hu.displayName="ProductCard.Title";const Uu=({className:e,url:t,poster:r,...o})=>{const{element:s}=Ve();return x.useEffect(()=>{if(!(s!=null&&s.current))return;const i=s.current,a=i.querySelector("video");if(a){const c=new IntersectionObserver(f=>{f.forEach(h=>{U.setVideoPlay(h.isIntersecting,a,t)})},{root:null,rootMargin:"0px",threshold:.5}),l=()=>{a.setAttribute("data-loaded","true")},u=()=>{i&&(c.observe(i),a.addEventListener("loadeddata",l))};return document.readyState==="complete"?u():window.addEventListener("load",u),()=>{c.disconnect(),window.removeEventListener("load",u)}}return()=>null},[t,s]),n.jsx("div",{...o,className:m.helpers.classNameConcat(Ae["product-card--video"],e),children:t&&n.jsx(ze.Video,{autoPlay:!1,muted:!0,loop:!0,preload:"none",playsInline:!0,poster:r})})};Uu.displayName="ProductCard.Media.Video";const Wu=({children:e,className:t,type:r,...o})=>n.jsx("div",{...o,className:m.helpers.classNameConcat(Ae[`product-card--${r}`],t),children:e});Wu.displayName="ProductCard.Wrapper";const ve={Actions:mu,BuyButton:hu,Header:ku,Media:Lu,Root:Du,OutStock:Mu,Price:qu,SizeSelector:Bu,StyleSelector:Fu,Title:Hu,Video:Uu,Wrapper:Wu},ug="_carousel_245ib_1",dg="_shelf__container_245ib_14",fg="_shelf_without_carousel_245ib_34",pg="_card_container_245ib_50",bt={carousel:ug,"custom-controllers":"_custom-controllers_245ib_5",shelf__container:dg,"controllers-arrows-bullets":"_controllers-arrows-bullets_245ib_23",shelf_without_carousel:fg,card_container:pg},Mi=({title:e})=>n.jsx("div",{className:bt.shelf__container,children:e&&n.jsx(m.TextStructure.Root,{children:n.jsxs(m.TextStructure.DivWrapper,{children:[n.jsx("h2",{className:m.helpers.classNameConcat("typography-style-body-md",U.responsive["responsive-mobile-flex"]),children:e}),n.jsx("h2",{className:m.helpers.classNameConcat("typography-style-heading-md",U.responsive["responsive-desktop-flex"]),children:e})]})})}),mg=({children:e,ICONS:t,itemsPerPage:r,title:o})=>{const{isMobile:s}=le(),i=r[s?"mobile":"desktop"],{initialize:a,controller:c,itemsStyles:l,pagination:u}=m.Carousel.useCarousel({itemsPerPage:i,gap:10,loop:!0,direction:"row"}),f=x.Children.toArray(e).length;return s||f>=4?n.jsxs(m.Carousel.Root,{innerRef:d=>{a(d)},className:bt.carousel,children:[n.jsxs("div",{className:bt["custom-controllers"],children:[o&&n.jsx(Mi,{title:o}),i<f&&n.jsxs(m.Carousel.Controller,{className:bt["controllers-arrows-bullets"],children:[n.jsxs(m.Carousel.Arrows,{children:[n.jsx(m.Button,{variant:"tertiary",onClick:()=>c==null?void 0:c.prevPage(),adornment:{start:n.jsx(m.Icon,{name:t.arrow_left})}}),n.jsx(m.Button,{variant:"tertiary",onClick:()=>c==null?void 0:c.nextPage(),adornment:{start:n.jsx(m.Icon,{name:t.arrow_right})}})]}),!s&&i>2&&n.jsx(m.Carousel.Bullets,{page:u.currentPage,total:u.totalPages,onBulletClick:d=>c==null?void 0:c.navigateTo(d)})]})]}),n.jsx(m.Carousel.Body,{children:x.Children.map(e,(d,p)=>n.jsx(m.Carousel.Item,{style:{...l,overflow:"hidden"},children:d},`${o}_${p}`))})]}):n.jsxs(n.Fragment,{children:[o&&n.jsx(Mi,{title:o}),n.jsx("div",{className:bt.shelf_without_carousel,children:e})]})},Vu=({className:e,item:t,isMobile:r,size:o,shelfTitle:s,...i})=>{const a=x.useRef(null),{getAvailableProductTag:c}=rt(),{availability:{status:l}}=t,u=h=>{const d=h.filter(p=>!i.CONSTANTS.TEXTURE_IMAGE.includes(p.keywords));return r?d.splice(0,2):d},f=c(t.cluster.highlights);return n.jsx("div",{ref:a,className:bt.card_container,children:n.jsxs(ve.Root,{...i,item:{...t,image:u(t.image)},isMobile:r,size:r?"small":"medium",outStock:!l,shelfTitle:s,children:[n.jsx(ve.Header,{product:t,tag:f==null?void 0:f.commercial}),n.jsx(ve.Media,{}),n.jsxs(ve.Wrapper,{type:"body",children:[n.jsx(ve.Title,{tag:f==null?void 0:f.institucional}),n.jsx(ve.Actions,{})]}),n.jsx(ve.Wrapper,{type:"footer"})]})})};Vu.displayName="ProductList.Card";const Bt={Shelf:mg,Card:Vu},Gu=({CONSTANTS:e,inView:t,products:r,innerRef:o})=>{const s=x.useMemo(()=>Ch(r),[r]),{isMobile:i}=le(),{addItemsToCart:a}=Ee(),{sendDataLayerEvent:c}=ce(),{getAvailableProductTag:l}=rt(),[u,f]=x.useState({totalPrice:0,products:{}}),h=()=>{const p=Object.values(u.products);a(p),c({functionKey:"skuEvents",data:{event:"add_to_cart",commonData:{products:p.map(g=>{const y=s.find(_=>_.node.id===g.productId);return y==null?void 0:y.node})},supportData:{selectedSkus:p,price:u.totalPrice}}})},d=({selectedProduct:p,productId:g})=>{const y=Sh({selectedProduct:p,productId:g,prevState:u,mainSellerId:e.StoreConfig_MainSellerId});f(y)};return x.useEffect(()=>{if(!t||s.length===0)return;const p=e.BUY_PACKAGE.header.title;c({functionKey:"productListEvent",data:{event:"view_item_list",commonData:{products:s},customData:{item_list_name:p},outsideEcommerceData:{item_list_name:p}}})},[t]),n.jsxs("div",{className:at.container,ref:o,children:[n.jsx("div",{className:at["carousel-container"],style:{width:s.length<=3?"max-content":"75%"},children:n.jsx(Bt.Shelf,{title:e.BUY_PACKAGE.header.title,itemsPerPage:{desktop:3,mobile:s.length>=3?2.2:s.length},ICONS:e.ICONS,children:Array.isArray(s)&&s.map(({node:p},g)=>{var b,S,v;const y=l(p.cluster.highlights),{availability:{status:_}}=p;return _?n.jsxs(ve.Root,{item:{...p,image:Ps.helpers.product.getFirstImages({images:p.image,label:{first:e.MAIN_IMAGE,second:e.SECOND_IMAGE}})},isMobile:i,size:"medium",index:g,shelfTitle:e.BUY_PACKAGE.header.title,CONSTANTS:e,children:[n.jsx(ve.Header,{product:p,tag:y.commercial}),n.jsx(ve.Media,{}),n.jsxs(ve.Wrapper,{type:"body",children:[n.jsx(ve.Title,{tag:{value:(b=y.institucional)==null?void 0:b.value,enableIcon:(S=y.institucional)==null?void 0:S.enableIcon,icon:(v=y.institucional)==null?void 0:v.icon}}),n.jsx(ve.Actions,{children:n.jsx(ve.SizeSelector,{callback:j=>d({selectedProduct:j,productId:p.id})})})]})]},p.id):null})})}),n.jsx("div",{className:at["add-cart-container"],children:n.jsx(jh,{handleAddAllToCart:h,selectedProducts:u,CONSTANTS:{BUY_BUTTON_LABELS:e.BUY_BUTTON_LABELS,BUY_PACKAGE:e.BUY_PACKAGE,FREIGHT_CALCULATION:e.FREIGHT_CALCULATION}})})]})},Ns={"btn-login":"_btn-login_yas63_12","btn-header":"_btn-header_yas63_22","header-animation":"_header-animation_yas63_35"},Ts=({id:e})=>{const{setIsOpen:t,cartStore:{items:r}}=Ee(),{handleSelectContent:o}=ce(),{CONSTANTS:s}=Pe(),i=r.reduce((a,c)=>a+(c.quantity??0),0);return n.jsx(m.Header.SupportItem,{onClick:()=>{t(!0),o({content:"header:minicart"})},id:e,children:n.jsxs(m.Badge.AutoPositioner,{children:[n.jsx(m.Badge.Count,{count:i,size:"medium",variant:"primary",style:{backgroundColor:"black",display:i>0?"flex":"none"}}),n.jsx(m.Icon,{name:s.header.ICONS.bag,size:"medium"})]})})};Ts.displayName="Header.Bag";const Vt=({children:e,href:t,...r})=>t&&t!=="#"?n.jsx(Me,{href:t.startsWith("/")?t:`/${t}`,...r,children:e}):e,Ku=()=>{const{headerData:e}=Pe(),{handleSelectContent:t}=ce(),{reset:r,updateValue:o}=Ht(),s=i=>{i?o(i):r()};return n.jsx(m.Header.Categories,{children:Array.isArray(e.categories)&&e.categories.map((i,a)=>n.jsx(Vt,{href:i.link,onMouseEnter:()=>s(i.submenuId),onFocus:()=>s(i.submenuId),children:n.jsx(m.Header.CategoryItem,{className:Ns["btn-header"],value:i.submenuId??null,adornment:{start:n.jsx(m.Icon,{name:i.iconStart}),end:n.jsx(m.Icon,{name:i.iconEnd})},style:{textWrap:"nowrap",gap:"0"},onClick:()=>{t({content:`header:${i.label}`})},children:i.label})},`category-${i.label}-${a}`))})};Ku.displayName="Header.Categories";function hg(){const{handleSelectContent:e}=ce(),{CONSTANTS:t}=Pe(),{setValue:r}=cs();return n.jsx(m.Header.SupportItem,{onClick:()=>{r(!0),e({content:"header:search"})},children:n.jsx(m.Icon,{name:t.header.ICONS.search,size:"medium"})})}const gg={"menu-subcategories-container":"_menu-subcategories-container_a93cr_1"},yg={"observer-wrapper":"_observer-wrapper_r43gk_1"},kr=({children:e,eventData:t,observerOptions:r,callBackWhenVisible:o,stopOnIntersection:s=!0,className:i,...a})=>{const c=x.useRef(null),l=os(c,s,r),{sendDataLayerEvent:u}=ce();return x.useEffect(()=>{l&&(typeof o=="function"&&o(),t&&u({...t}))},[l]),n.jsx("div",{...a,ref:c,className:m.helpers.classNameConcat(yg["observer-wrapper"],i),children:e})},Xu=({thumbnails:e,category:t,isMobile:r=!0,callBack:o})=>{const{handleSelectPromotionEvent:s}=ce(),i=50/e.length;return n.jsx("div",{className:gg["menu-subcategories-container"],children:e.map((a,c)=>{const l=r?a.srcMobile:a.srcDesk;if(!l)return null;const u={creative_name:"banner-menu",creative_slot:`banner-menu:${t}:${c+1}`,promotion_id:l,promotion_name:a.promotion_name};return n.jsx(kr,{eventData:{functionKey:"readyEvents",data:{event:"view_promotion",readyData:{ecommerce:{...u}}}},observerOptions:{delay:1e3},children:n.jsxs(Me,{href:a.link??"#",onClick:()=>{typeof o=="function"&&o(),s({updatePromotionRef:!0,promotion:u})},children:[n.jsx(ze.Image,{src:l,alt:a.label??l,width:500,height:500,sizes:`(max-width: 768px) 100vw, (max-width: 1023px) 75vw, ${i}vw`}),a.label&&n.jsx("p",{children:a.label})]})},`thumb-${a.label}-${c}`)})})};Xu.displayName="Menu.Thumbnail";const Ho={"menu-desktop":"_menu-desktop_1b799_1","menu-categories":"_menu-categories_1b799_12"},Yu=({children:e,dividerOnRight:t=!0,subMenu:r,...o})=>{var l;const{router:s}=xe(),{reset:i}=Ht(),{handleSelectContent:a}=ce(),{CONSTANTS:c}=Pe();return n.jsxs("div",{...o,className:Ho["menu-categories"],children:[(l=r==null?void 0:r.subCategories)==null?void 0:l.map((u,f)=>{var p,g,y;const h=u.listCollapseDesk&&!((p=u.see_all)!=null&&p.link)?{expandAfterRowsQty:u.rowsToShowDesk}:{},d=u.listCollapseDesk&&!((g=u.see_all)!=null&&g.link)?{expansivesAdornments:{open:c.header.ICONS.add,close:c.header.ICONS.minus},expansivesLabels:{open:c.header.COMPONENT_LIST.listExpandLabel,close:c.header.COMPONENT_LIST.listCollapseLabel},iconSize:"x-small"}:{adornment:{end:n.jsx(m.Icon,{name:c.header.ICONS.arrow_right,size:"small"})}};return n.jsxs(m.ComponentList.Structure,{children:[n.jsx(Vt,{href:u.linkLabel,title:u.label,onClick:()=>{u.linkLabel&&(i(),a({content:`menu:${u.label??""}:${r.label??""}`}))},children:n.jsx(m.TextStructure.Root,{children:n.jsx(m.TextStructure.DivWrapper,{children:n.jsx("h2",{children:u.label})})})}),n.jsx(m.ComponentList.List,{columns:1,...h,className:Ho["submenu-categories"],children:u.items.map((_,b)=>n.jsx(m.ComponentList.ListItem,{id:`list-item-${_.label}-${b}`,children:n.jsx(et,{href:_.link??"#",size:"x-small",title:_.label??"",disableUnderline:!0,disablePadding:!0,onClick:()=>{i(),a({content:`menu:${u.label??""}:${_.label??""}:${r.label??""}`})},children:_.label})},`list-item-${_.label}-${b}`))}),((y=u.see_all)==null?void 0:y.link)&&n.jsx(m.ComponentList.Support,{...d,size:"small",onClick:()=>{var _;(_=u.see_all)!=null&&_.link&&(i(),a({content:`menu:${u.label??""}:${r.label}`}),s.push(u.see_all.link))},children:u.see_all.link&&u.see_all.label})]},`list-${u.label}-${f}`)}),t&&n.jsx(m.Utils.Divider,{size:"small",direction:"vertical"})]})};Yu.displayName="Menu.Categories";const Qu=({children:e,dividerOnBottom:t=!0,...r})=>{const{CONSTANTS:o}=Pe();return n.jsxs(n.Fragment,{children:[n.jsx("div",{...r,className:Ho["menu-desktop"],style:{...r.style,justifyContent:o.header.ALIGNMENT_MENU},children:e}),t&&n.jsx(m.Utils.Divider,{size:"small"})]})};Qu.displayName="Menu.MenuRoot";const _n={Root:Qu,Categories:Yu,Thumbnail:Xu},Zu=()=>{const{headerData:e,CONSTANTS:t}=Pe(),r=Wc(),{reset:o}=Ht();return n.jsx(m.Header.SubMenu,{children:Array.isArray(e.subMenus)&&e.subMenus.map((s,i)=>{const{thumbnails:a,label:c,id:l}=s,u=l===r,f=a==null?void 0:a.some(h=>!!h.srcDesk);return n.jsxs(_n.Root,{id:l,style:u?{display:"flex",zIndex:t.header.Z_INDEX_WAR.menu_desktop}:{display:"none"},dividerOnBottom:u,children:[n.jsx(_n.Categories,{dividerOnRight:!!f,subMenu:s}),Array.isArray(a)&&n.jsx(_n.Thumbnail,{thumbnails:a,isMobile:!1,category:c,callBack:o})]},`submenu-${l}-${i}`)})})};Zu.displayName="Header.SubMenu";const Ju=()=>{const{handleSelectContent:e}=ce(),{CONSTANTS:t}=Pe();return n.jsx(Me,{href:"/favoritos",children:n.jsx(m.Header.SupportItem,{onClick:()=>e({content:"header:wishlist"}),children:n.jsx(m.Icon,{name:t.header.ICONS.favorite_false,size:"medium"})})})};Ju.displayName="Header.WishList";const _g="_root_wvekm_126",He={"user-menu--credits":"_user-menu--credits_wvekm_1","user-menu--content":"_user-menu--content_wvekm_10","user-menu--login":"_user-menu--login_wvekm_30","user-menu--login--content":"_user-menu--login--content_wvekm_37","user-menu--menu":"_user-menu--menu_wvekm_64","user-menu--tooltip":"_user-menu--tooltip_wvekm_93","tooltip-modifier":"_tooltip-modifier_wvekm_104","modal-controls-modifier":"_modal-controls-modifier_wvekm_109","modal-header-modifier":"_modal-header-modifier_wvekm_117",root:_g},ed=({className:e,children:t,...r})=>n.jsx("div",{...r,className:m.helpers.classNameConcat(He["user-menu--content"],e),children:t});ed.displayName="UserMenu.Content";var td=(e=>(e.Account="account",e))(td||{});const rd=({className:e,cashBack:t,credits:r,link:o,total:s,...i})=>{const a=t?U.formatPriceToCurrency(t):void 0,c=r?U.formatPriceToCurrency(r):void 0,l=s?U.formatPriceToCurrency(s):void 0;return n.jsx(m.Credits.Account,{...i,className:m.helpers.classNameConcat(He["user-menu--credits"],e),icon:"wallet",showIcon:!0,cashBackValue:a,creditsValue:c,linkMore:o,totalValue:l,type:td.Account})};rd.displayName="UserMenu.Credits";const nd=({className:e,children:t,description:r,text:o,...s})=>{const{isMobile:i}=le();return n.jsx("div",{...s,className:m.helpers.classNameConcat(He["user-menu--login"],e),"data-mobile":i,children:n.jsxs("div",{className:He["user-menu--login--content"],children:[n.jsx(m.TextStructure.Root,{children:n.jsxs(m.TextStructure.DivWrapper,{alignContent:"flex-start",alignItems:"flex-start",children:[n.jsx("h3",{className:"typography-style-body-lg-strong",children:o}),n.jsx("p",{children:r})]})}),t]})})};nd.displayName="UserMenu.Login";const od=({className:e,isLogged:t,onLogoutClick:r,ICONS:o,storeConfig:s,isMobile:i})=>{const a=i?Ys:Ys({ICONS:o,storeConfig:s}).filter(c=>c.deviceShown==="both"||c.deviceShown===(i?"mobile":"desktop"));return n.jsxs("ul",{className:m.helpers.classNameConcat(He["user-menu--menu"],e),children:[Array.isArray(a)&&a.map((c,l)=>n.jsx("li",{children:n.jsx(et,{href:c.href??"#",size:"small",disableUnderline:!0,adornments:{start:n.jsx(m.Icon,{name:c.icon??"delete"})},children:c.label})},l)),t?n.jsx("li",{children:n.jsx(et,{href:`${s.secureSubdomain}/api/vtexid/pub/logout?scope=mariafilo&returnUrl=${encodeURIComponent(`${s.storeUrl}`)}`,size:"small",disableUnderline:!0,onClick:r,adornments:{start:n.jsx(m.Icon,{name:Lm(o)})},children:km})}):n.jsx(n.Fragment,{})]})};od.displayName="UserMenu.Menu";const sd=e=>{const t=x.useRef(null),r=x.useCallback(i=>{t.current&&!t.current.contains(i.target)&&e()},[e]),o=x.useCallback(i=>{t.current&&!t.current.contains(i.target)&&e()},[e]),s=x.useCallback(i=>{i.key==="Escape"&&e()},[e]);return x.useEffect(()=>(document.addEventListener("mousedown",r),document.addEventListener("keydown",s),document.addEventListener("touchstart",o),()=>{document.removeEventListener("mousedown",r),document.removeEventListener("keydown",s),document.removeEventListener("touchstart",o)}),[r,s,o]),{ref:t}},vg=e=>{if(!e||typeof window>"u")return 0;const t=window.getComputedStyle(e);return parseInt(t.padding,10)},xg=(e,t,r)=>{if(!(e instanceof HTMLElement)||!(t instanceof HTMLElement))return{left:0,top:0};const{height:o,left:s,top:i,width:a}=t.getBoundingClientRect(),c=e.getBoundingClientRect(),l=e!=null&&e.parentElement?vg(e==null?void 0:e.parentElement):0;return{left:s+a/2-(c.width+l*2),top:i+o+r}},id=x.createContext({}),bg=({children:e,delay:t=600,gap:r=20,isOpen:o,setIsOpen:s,target:i,...a})=>{const c=x.useRef(null),[l,u]=x.useState(!1),[f,h]=x.useState({left:0,top:0}),{ref:d}=sd(()=>{u(!0),typeof window<"u"&&(c.current=window.setTimeout(()=>{s(!1),u(!1)},t))});return x.useEffect(()=>{if(i&&(d!=null&&d.current)){const{left:p,top:g}=xg(d.current,i,r??0);h({left:p,top:g}),u(!1)}},[r,o,i,d]),n.jsx(id.Provider,{value:x.useMemo(()=>({...a,...f,contentRef:d,isLeaving:l,isOpen:o,setIsOpen:s,setIsLeaving:u,target:i}),[a,f,d,l,o,s,u,i]),children:e})},ad=()=>{const e=x.useContext(id);if(e===void 0)throw new Error("useUserMenuContext must be used within a UserMenuProvider");return e},cd=({children:e,isMobile:t=!1,Z_INDEX_WAR:r})=>{const{isOpen:o,setIsOpen:s}=ad();return n.jsxs(m.Modal.Root,{"data-user":"user-menu--modal",isMobile:t??!1,isOpen:o,setIsOpen:s,variant:"sideBottom",className:He["modal-root-modifier"],style:{zIndex:r.user_menu_mobile},children:[n.jsx(m.Modal.Header,{navigation:"top",className:He["modal-header-modifier"],children:n.jsx(m.Modal.Controls,{navigation:"top",isMobile:!0,className:He["modal-controls-modifier"]})}),n.jsx(m.Modal.Body,{children:e})]})};cd.displayName="UserMenu.Modal";const ld=({children:e,component:t,Z_INDEX_WAR:r,isMobile:o,...s})=>n.jsx(bg,{...s,className:He.root,children:o?n.jsxs(n.Fragment,{children:[n.jsx(it.Modal,{Z_INDEX_WAR:r,children:t}),e]}):n.jsx(it.Tooltip,{component:t,style:{width:304,zIndex:r.user_menu},Z_INDEX_WAR:r,children:e})});ld.displayName="UserMenu.Root";const ud=({children:e,component:t,Z_INDEX_WAR:r,...o})=>{const{contentRef:s,left:i,isLeaving:a,isOpen:c,top:l}=ad();return n.jsx(m.Tooltip.Root,{arrow:"top-right",component:n.jsx("div",{...o,ref:s,children:t}),className:m.helpers.classNameConcat(He["user-menu--tooltip"],He["tooltip-modifier"]),isLeaving:a,isOpen:c,left:i,size:"medium",position:"top",top:l,style:{zIndex:r.user_menu},children:n.jsx("div",{className:He["user-menu--tooltip"],children:e})})};ud.displayName="UserMenu.Tooltip";const it={Credits:rd,Content:ed,Login:nd,Menu:od,Modal:cd,Root:ld,Tooltip:ud},Lr=({children:e,isOpen:t,setIsOpen:r,target:o,storeConfig:s})=>{var d,p,g;const{isMobile:i}=le(),{CONSTANTS:a}=Pe(),c=At(),l=()=>{window.location.href=`${s.secureSubdomain}/api/io/login?returnUrl=${encodeURIComponent(`${s.storeUrl}?ab_test=v2`)}`},u=!!((d=c.user)!=null&&d.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 n.jsx(it.Root,{component:n.jsxs(it.Content,{children:[n.jsx(it.Login,{description:Dm(u),text:Mm(u,((p=c==null?void 0:c.user)==null?void 0:p.firstName)??((g=c==null?void 0:c.user)==null?void 0:g.email)),children:!u&&n.jsx(m.Button,{size:"medium",variant:"quaternary",onClick:()=>l(),children:a.header.MENU_INFO.login.button_text})}),h+f&&u?n.jsx(it.Credits,{credits:h,cashBack:f,link:`${s.secureSubdomain}/account#/meus-creditos`,total:h+f}):n.jsx(n.Fragment,{}),n.jsx(m.Utils.Divider,{}),n.jsx(it.Menu,{ICONS:a.header.ICONS,storeConfig:s,isLogged:u,className:U.responsive["responsive-desktop-flex"],onLogoutClick:()=>c.logout()}),n.jsx(it.Menu,{ICONS:a.header.ICONS,storeConfig:s,isMobile:!0,isLogged:u,className:U.responsive["responsive-mobile-flex"],onLogoutClick:()=>c.logout()})]}),isOpen:t,isMobile:i,setIsOpen:r,target:o,Z_INDEX_WAR:a.header.Z_INDEX_WAR,children:e})};Lr.displayName="UserMenu";const dd=({storeConfig:e})=>{const{CONSTANTS:t,userMenuDesktopRef:r}=Pe(),{handleSelectContent:o}=ce(),{reset:s}=Ht(),{setValue:i}=us(),a=ls(),c=x.useRef(null);return n.jsxs(n.Fragment,{children:[n.jsxs(m.Header.Wrapper,{children:[n.jsx(m.Header.Logo,{style:{width:"100%"},children:n.jsx(Me,{href:"/",onMouseEnter:s,children:n.jsx(m.Icon,{name:t.header.ICONS.logo,size:"x-large",onClick:()=>{o({content:"header:logo"})}})})}),n.jsx(Ku,{}),n.jsxs(m.Header.Support,{onMouseEnter:s,style:{justifyContent:"flex-end"},children:[n.jsx(hg,{}),n.jsx(Lr,{isOpen:a,setIsOpen:i,target:c.current,storeConfig:e,children:n.jsx(m.Header.SupportItem,{onClick:()=>{i(!0),o({content:"header:user_menu"})},className:Ns["btn-login"],innerRef:r,children:n.jsx(m.Icon,{name:t.header.ICONS.person,size:"medium"})})}),n.jsx(Ju,{}),n.jsx(Ts,{id:"cart-button"})]})]}),n.jsx(Zu,{})]})};dd.displayName="Header.HeaderDesktopWrapper";const Be={"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"},fd=({children:e,mobileBannerAlt:t,mobileBannerSrc:r,textColor:o,submenuId:s,label:i,...a})=>n.jsx("button",{...a,className:Be["menu--banners--item"],children:r?n.jsxs(m.Banner.Container,{children:[n.jsx(m.Banner.ImageWrapper,{children:n.jsx(ze.Image,{alt:t??r,height:128,src:r,width:343,unoptimized:!0})}),n.jsx(m.Banner.Slot,{verticalAlignment:"end",horizontalAlignment:"center",children:n.jsx(m.TextStructure.Root,{children:n.jsx(m.TextStructure.DivWrapper,{className:Be["menu--banners--item--text"],children:n.jsx("h2",{className:"typography-style-body-xs",style:o?{color:o}:{},children:e})})})})]}):n.jsx("h2",{...a,children:e})});fd.displayName="Menu.Mobile.Category";const pd=({label:e,...t})=>{const{CONSTANTS:r}=Pe();return n.jsx(m.Button,{...t,adornment:{end:n.jsx(m.Icon,{name:r.header.ICONS.arrow_right,size:"medium"})},mode:"inverse",size:"medium",variant:"primary",children:e})};pd.displayName="Menu.Mobile.Body.Category";const md=({subCategory:e,submenuLabel:t,onHandleOut:r,...o})=>n.jsx("div",{...o,className:Be["menu--sub-category--list"],children:Array.isArray(e==null?void 0:e.items)&&(e==null?void 0:e.items.map((s,i)=>n.jsx(et,{disableUnderline:!0,disablePadding:!1,href:s.link??"#",onClick:()=>r(s.label,t),size:"medium",title:s.label??"",children:s.label},i)))});md.displayName="Menu.Mobile.List";const hd=({current:e,onHandleOut:t})=>{var r;return e?n.jsx("div",{className:Be["menu--sub-category"],children:Array.isArray(e==null?void 0:e.subCategories)&&((r=e==null?void 0:e.subCategories)==null?void 0:r.map((o,s)=>n.jsxs("div",{className:Be["menu--sub-category--item"],children:[n.jsx($t.Title,{onHandleOut:t,subCategory:o,submenuLabel:e==null?void 0:e.id}),n.jsx($t.List,{onHandleOut:t,subCategory:o,submenuLabel:e==null?void 0:e.id})]},s)))}):n.jsx(n.Fragment,{})};hd.displayName="Menu.Mobile.Body.SubCategory";const gd=({subCategory:e,submenuLabel:t,onHandleOut:r,...o})=>{var c;const{router:s}=xe(),{handleSelectContent:i}=ce(),{CONSTANTS:a}=Pe();return n.jsxs("div",{...o,className:Be["menu--categories--title"],children:[n.jsx(Vt,{href:e==null?void 0:e.linkLabel,title:e==null?void 0:e.linkLabel,onClick:()=>{i({content:`menu:${e.label??""}:${t}`})},children:n.jsx(m.TextStructure.Root,{children:n.jsx(m.TextStructure.DivWrapper,{children:n.jsx("h2",{className:"typography-style-body-md",children:e==null?void 0:e.label})})})}),((c=e==null?void 0:e.see_all)==null?void 0:c.link)&&n.jsx(m.ComponentList.Support,{adornment:{end:n.jsx(m.Icon,{name:a.header.ICONS.arrow_right,size:"small"})},size:"small",onClick:()=>{var l;r(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})]})};gd.displayName="Menu.Mobile";const $t={Banner:fd,Category:pd,List:md,SubCategory:hd,Title:gd},yd=x.createContext({}),jg=({children:e})=>{const[t,r]=x.useState(null),o=x.useCallback(()=>{r(null)},[]),s=i=>{i!==t&&r(i)};return n.jsx(yd.Provider,{value:{currentCategory:t,setCurrentCategory:r,handleCloseMenu:o,handleChangeSubMenuOpened:s},children:e})},_d=()=>x.useContext(yd),vd=e=>{const{router:t}=xe(),{headerData:r}=Pe(),{handleSelectContent:o}=ce(),{currentCategory:s,setCurrentCategory:i}=_d(),a=x.useRef(null),c=()=>{if(a.current){const d=a.current;d&&(i(null),d==null||d.click())}},l=(d,p)=>{o({content:`menu:${d}`}),t.push(p),c()},u=(d,p)=>{o({content:`menu:${d}:${p}`}),c()},f=Array.isArray(r==null?void 0:r.categories)?r==null?void 0:r.categories:[],h=Array.isArray(r==null?void 0:r.subMenus)?r==null?void 0:r.subMenus:[];return n.jsxs("div",{...e,className:Be["menu--body"],style:{transform:`translate3d(calc(-100% * ${s?1:0}), 0px, 0px)`},children:[n.jsx("button",{className:Be["menu--dummy-close"],ref:a,"data-close":!0}),n.jsxs("div",{className:Be["menu--step"],"data-active":"true",children:[n.jsx("div",{className:Be["menu--banners"],children:n.jsx("div",{className:Be["menu--banners--list"],children:f.map((d,p)=>x.createElement($t.Banner,{...d,key:p,onClick:()=>l(d.label,d.link)},d.mobileBannerAlt))})}),n.jsx("div",{className:Be["menu--categories"],children:f.map((d,p)=>n.jsx($t.Category,{label:d.label,onClick:()=>i(d.submenuId??null)},p))})]}),n.jsx("div",{className:Be["menu--step"],"data-active":!!s,children:n.jsx($t.SubCategory,{current:h.find(d=>d.id===s),onHandleOut:u})})]})};vd.displayName="Menu.Mobile.Body";const Cg={"menu--header":"_menu--header_1ozdf_1"},xd=()=>{var s;const{headerData:e}=Pe(),{currentCategory:t,setCurrentCategory:r}=_d(),o=(s=e==null?void 0:e.categories)==null?void 0:s.find(i=>i.submenuId===t);return n.jsxs("div",{className:Cg["menu--header"],children:[n.jsx(m.Button,{"data-out":!o,iconNameStart:"arrow-left",mode:"inverse",onClick:()=>r(null)}),o&&n.jsx(m.TextStructure.Root,{children:n.jsx(m.TextStructure.DivWrapper,{alignContent:"center",children:n.jsx("h2",{className:"typography-style-body-lg",children:o==null?void 0:o.label})})}),n.jsx(m.Button,{iconNameStart:"close","data-close":!0,"data-only":!o,mode:"inverse",onClick:()=>r(null)})]})};xd.displayName="Menu.Mobile.Header";var Uo={exports:{}};function Sg(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 vn={},xn={},Di;function Pg(){return Di||(Di=1,function(e){"use client";Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"LoadableContext",{enumerable:!0,get:function(){return o}});const o=Oe._(x).default.createContext(null);process.env.NODE_ENV!=="production"&&(o.displayName="LoadableContext")}(xn)),xn}var $i;function wg(){return $i||($i=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return p}});const r=Oe._(x),o=Pg();function s(g){return g&&g.default?g.default:g}const i=[],a=[];let c=!1;function l(g){let y=g(),_={loading:!0,loaded:null,error:null};return _.promise=y.then(b=>(_.loading=!1,_.loaded=b,b)).catch(b=>{throw _.loading=!1,_.error=b,b}),_}function u(g,y){let _=Object.assign({loader:null,loading:null,delay:200,timeout:null,webpack:null,modules:null},y),b=null;function 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"&&i.push(S),!c&&typeof window<"u"){const P=_.webpack&&typeof Sg.resolveWeak=="function"?_.webpack():_.modules;P&&a.push(E=>{for(const C of P)if(E.includes(C))return S()})}function v(){S();const P=r.default.useContext(o.LoadableContext);P&&Array.isArray(_.modules)&&_.modules.forEach(E=>{P(E)})}function j(P,E){v();const C=r.default.useSyncExternalStore(b.subscribe,b.getCurrentValue,b.getCurrentValue);return r.default.useImperativeHandle(E,()=>({retry:b.retry}),[]),r.default.useMemo(()=>C.loading||C.error?r.default.createElement(_.loading,{isLoading:C.loading,pastDelay:C.pastDelay,timedOut:C.timedOut,error:C.error,retry:b.retry}):C.loaded?r.default.createElement(s(C.loaded),P):null,[P,C])}return j.preload=()=>S(),j.displayName="LoadableComponent",r.default.forwardRef(j)}class f{promise(){return this._res.promise}retry(){this._clearTimeouts(),this._res=this._loadFn(this._opts.loader),this._state={pastDelay:!1,timedOut:!1};const{_res:y,_opts:_}=this;y.loading&&(typeof _.delay=="number"&&(_.delay===0?this._state.pastDelay=!0:this._delay=setTimeout(()=>{this._update({pastDelay:!0})},_.delay)),typeof _.timeout=="number"&&(this._timeout=setTimeout(()=>{this._update({timedOut:!0})},_.timeout))),this._res.promise.then(()=>{this._update({}),this._clearTimeouts()}).catch(b=>{this._update({}),this._clearTimeouts()}),this._update({})}_update(y){this._state={...this._state,error:this._res.error,loaded:this._res.loaded,loading:this._res.loading,...y},this._callbacks.forEach(_=>_())}_clearTimeouts(){clearTimeout(this._delay),clearTimeout(this._timeout)}getCurrentValue(){return this._state}subscribe(y){return this._callbacks.add(y),()=>{this._callbacks.delete(y)}}constructor(y,_){this._loadFn=y,this._opts=_,this._callbacks=new Set,this._delay=null,this._timeout=null,this.retry()}}function h(g){return u(l,g)}function d(g,y){let _=[];for(;g.length;){let b=g.pop();_.push(b(y))}return Promise.all(_).then(()=>{if(g.length)return d(g,y)})}h.preloadAll=()=>new Promise((g,y)=>{d(i).then(g,y)}),h.preloadReady=g=>(g===void 0&&(g=[]),new Promise(y=>{const _=()=>(c=!0,y());d(a,g).then(_,_)})),typeof window<"u"&&(window.__NEXT_PRELOADREADY=h.preloadReady);const p=h}(vn)),vn}(function(e,t){Object.defineProperty(t,"__esModule",{value:!0});function r(f,h){for(var d in h)Object.defineProperty(f,d,{enumerable:!0,get:h[d]})}r(t,{noSSR:function(){return l},default:function(){return u}});const o=Oe,s=o._(x),i=o._(wg()),a=typeof window>"u";function c(f){return{default:(f==null?void 0:f.default)||f}}function l(f,h){if(delete h.webpack,delete h.modules,!a)return f(h);const d=h.loading;return()=>s.default.createElement(d,{error:null,isLoading:!0,pastDelay:!1,timedOut:!1})}function u(f,h){let d=i.default,p={loading:_=>{let{error:b,isLoading: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?p.loader=()=>f:typeof f=="function"?p.loader=f:typeof f=="object"&&(p={...p,...f}),p={...p,...h};const g=p.loader,y=()=>g!=null?g().then(c):Promise.resolve(c(()=>null));return p.loadableGenerated&&(p={...p,...p.loadableGenerated},delete p.loadableGenerated),typeof p.ssr=="boolean"&&!p.ssr?(delete p.webpack,delete p.modules,l(d,p)):d({...p,loader:y})}(typeof t.default=="function"||typeof t.default=="object"&&t.default!==null)&&typeof t.default.__esModule>"u"&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)})(Uo,Uo.exports);var Eg=Uo.exports,Rg=Eg;const bd=Ir(Rg),br={"modal-modifier":"_modal-modifier_394qw_1","menu--navigation-bar":"_menu--navigation-bar_394qw_15","menu--root":"_menu--root_394qw_25"},jd=({children:e})=>{const{menuIsOpen:t,setMenuIsOpen:r}=ms(),{CONSTANTS:o}=Pe();return n.jsxs(m.Modal.RootWithoutPortal,{className:br["modal-modifier"],isOpen:t,setIsOpen:r,variant:"sideRight",style:{bottom:"unset",overflowY:"hidden",position:"fixed",top:0,zIndex:o.header.Z_INDEX_WAR.menu_mobile},children:[n.jsx(xd,{}),n.jsx(m.Modal.Body,{className:br["menu--root"],children:e})]})};jd.displayName="Menu.MenuRoot";const Ag=bd(()=>Promise.resolve(jd),{ssr:!1}),Cd=({children:e,last:t=!1,...r})=>n.jsxs(n.Fragment,{children:[n.jsx(m.Button,{...r,"data-close":!0,size:"small",variant:"tertiary",children:e}),!t&&n.jsx(m.Utils.Divider,{direction:"vertical",size:"small",className:br.divider})]});Cd.displayName="Menu.NavigationBarItem";const Sd=()=>{const{setUserMenuIsOpen:e}=ms(),{handleSelectContent:t}=ce(),{CONSTANTS:r}=Pe(),{router:o}=xe(),s=[{iconNameStart:r.header.ICONS.person,onClick:()=>{e(!0),t({content:"menu:user_menu"})},text:r.header.MENU_INFO.login.button_text},{iconNameStart:r.header.MENU_INFO.bag.button_icon,onClick:()=>{t({content:"menu:wishlist"}),o.push("/favoritos")},text:r.header.MENU_INFO.bag.button_text},{last:!0,iconNameStart:r.header.MENU_INFO.store.button_icon,onClick:()=>{t({content:"menu:store"}),o.push("/institucional/lojas")},text:r.header.MENU_INFO.store.button_text}];return n.jsx(m.Card,{id:"menu-navigationbar",shadow:!0,className:br["menu--navigation-bar"],style:{zIndex:r.header.Z_INDEX_WAR.menu_mobile_navigation_bar},children:Array.isArray(s)&&s.map((i,a)=>x.createElement(Cd,{...i,key:a},i.text))})};Sd.displayName="Menu.NavigationBar";const bn={Body:vd,NavigationBar:Sd,Root:Ag},Pd=({storeConfig:e,SearchModal:t})=>{const r=x.useRef(null),{CONSTANTS:o}=Pe(),{MENU_NAVIGATION_BAR_ALLOWED:s,ICONS:i}=o.header,{handleSelectContent:a}=ce(),{setValue:c}=cs(),{setValue:l}=Kc(),{setValue:u}=us(),f=ls(),h=Gc(),d=Yc();return n.jsxs(n.Fragment,{children:[n.jsxs(m.Header.Wrapper,{children:[n.jsx(m.Header.Logo,{style:{width:"100%"},children:n.jsx(Me,{href:"/",children:n.jsx(m.Icon,{name:i.logo,size:"x-large",onClick:()=>{a({content:"header:logo"})}})})}),n.jsxs(m.Header.Support,{children:[n.jsx(m.Header.SupportItem,{onClick:()=>{c(!0),a({content:"header:search"})},children:n.jsx(m.Icon,{name:i.search,size:"medium"})}),n.jsx(Ts,{}),n.jsxs(m.Header.SupportItem,{onClick:()=>l(!0),children:[n.jsx("span",{ref:r}),n.jsx(m.Icon,{name:i.menu,size:"medium"})]})]})]}),n.jsx(t,{setModalIsOpen:c,isOpen:d,recommendations:!1,trends:!0}),n.jsx(ll,{menuIsOpen:h,setMenuIsOpen:l,userMenuIsOpen:h,setUserMenuIsOpen:u,children:n.jsx(Lr,{storeConfig:e,isOpen:f,setIsOpen:u,target:r==null?void 0:r.current,children:n.jsxs(bn.Root,{children:[n.jsx(bn.Body,{}),s?n.jsx(bn.NavigationBar,{}):n.jsx(n.Fragment,{})]})})})]})};Pd.displayName="Header.HeaderMobileWrapper";const Ig=x.createContext({}),Ng=({children:e})=>{const{sendDataLayerEvent:t}=ce(),{cartStore:r,isOpen:o}=Ee();x.useEffect(()=>{o&&t({functionKey:"viewCartEvent",data:{commonData:{cartStore:r}}})},[o]),x.useEffect(()=>{var i,a,c;if(r.id&&!((a=(i=r.marketingData)==null?void 0:i.marketingTags)!=null&&a.includes("faststore"))){const{id:l}=r;dt.post("/api/checkout/order-form/attachments/marketing-data",{orderFormId:l,marketingData:{...r==null?void 0:r.marketingData,marketingTags:Mc(((c=r.marketingData)==null?void 0:c.marketingTags)??[])}}).catch(u=>{console.error(u)})}},[r]);const s=({cartItem:i,oldQuantity:a,newQuantity:c})=>{t({functionKey:"skuEvents",data:{event:a>c?"remove_from_cart":"add_to_cart",commonData:{products:[{...i,price:i.price/100,listPrice:i.listPrice/100}]},customData:{quantity:c},supportData:{selectedSkus:[i]}}})};return n.jsx(Ig.Provider,{value:{handleUpdateItemQuantityEvent:s},children:e})},Tg="_fadeInOut_ottz1_1",Og="_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:Tg,fadeOut:Og,"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"},wd=({item:{id:e,message:t,callback:r},removeNotification:o,ICONS:s})=>{const i=x.useRef(null),a=()=>{var l;(l=i.current)==null||l.setAttribute("data-animation-out","true")},c=l=>{o(l)};return n.jsx("div",{className:de["mc--notify--item"],ref:i,onAnimationEnd:()=>c(e),children:n.jsxs(m.SnackBar.Structure,{size:"medium",children:[n.jsx(m.SnackBar.Content,{title:t}),n.jsxs(m.SnackBar.Support,{children:[typeof r=="function"&&n.jsx(m.Button,{onClick:()=>{r(),a()},size:"small",variant:"tertiary",children:"Desfazer"}),n.jsx(m.Button,{iconNameStart:s.close,iconSize:"small",onClick:()=>a(),variant:"tertiary"})]})]})},e)};wd.displayName="MiniCart.Notify.Item";const Ed=({ICONS:e})=>{const t=is(),{removeNotification:r}=as(),o=t.length?[...t].sort((s,i)=>i.id-s.id):[];return n.jsx("div",{className:de["mc--notify"],children:n.jsx("div",{className:de["mc--notify--content"],children:Array.isArray(o)&&o.map(s=>n.jsx(wd,{item:s,removeNotification:r,ICONS:e},s.id))})})};Ed.displayName="MiniCart.Notifications";const kg=({handleSendEvent:e,onHandleRemove:t,product:r,MINICART_CONFIG:o,...s})=>{const i=Rt(),{toggleProduct:a}=gt(),{itemOffered:{isVariationOf:{productGroupID:c}},quantity:l}=r;return n.jsx(m.Button,{...s,adornment:{end:n.jsx(m.Icon,{name:`favorite-${i.includes(c)?"true":"false"}`,size:"small"})},onClick:()=>{a(c),i.includes(c)||t({texture:"mini-cart-wishlist",title:`${o.messages.add_wishlist}`},l,()=>a(c)),e(i.includes(c)?"remove_from_wishlist":"add_to_wishlist","productEvents")},children:o.messages.add_wishlist_button})},Rd=({handleSendEvent:e,product:t,ICONS:r,MINICART_CONFIG:o,...s})=>{const{addToCart:i,removeToCart:a}=Ee(),{bundleItems:c=[],id:l,uniqueId:u,seller:f,offerings:h,quantity:d}=t,p=(g,y,_)=>{a(l,g.title,()=>{typeof _=="function"&&_(),i({id:l,quantity:y,seller:f},{id:l,texture:g.texture},!0)})};return n.jsxs(n.Fragment,{children:[n.jsxs("div",{className:de["mc--card--actions--add-remove"],children:[o.has_wishlist_button&&n.jsx(kg,{...s,product:t,handleSendEvent:e,onHandleRemove:p,ICONS:r,MINICART_CONFIG:o}),n.jsx(m.Button,{...s,adornment:{end:n.jsx(m.Icon,{name:r.delete,size:"small"})},variant:"secondary",state:"danger",onClick:()=>{p({texture:"mini-cart",title:`${o.messages.remove}`},d),e("remove_from_cart","skuEvents")},children:o.messages.remove_button})]}),o.has_gift_option&&n.jsx(xt.Gift,{uniqueId:u,bundleItems:c,offerings:h,ICONS:r,MINICART_CONFIG:o})]})};Rd.displayName="MiniCart.Card.Actions";const Ad=({bundleItems:e,offerings:t,uniqueId:r,ICONS:o,MINICART_CONFIG:s})=>{const[i,a]=x.useState(!1),{toggleGiftItemCart:c}=Ee(),l=()=>{if(t instanceof Object&&Array.isArray(t)){const[h]=t;if(h){a(!0);const d=e.some(p=>p.id===h.id);c(r,String(h.id),d).then(()=>a(!1))}}},u=t[0],f=e.find(h=>h.id===u.id);return u&&"id"in u?n.jsx("div",{className:de["mc--card--actions--gift"],children:n.jsx(m.Checkbox,{adornment:n.jsx(m.Icon,{name:o.check}),checked:!!f,disabled:i,label:s.messages.giftPackage,onChange:l})}):null};Ad.displayName="MiniCart.Card.Gift";const Id=({itemOffered:e})=>{const t=U.updatedResizedImg(e==null?void 0:e.image[0].url,{width:200,height:300});return n.jsx(Me,{href:`${e==null?void 0:e.slug}`,className:de["mc--card--product-link"],children:n.jsx(ze.Image,{alt:(e==null?void 0:e.image[0].alternateName)||"Produto",src:t||"",width:108,height:164})})};Id.displayName="MiniCart.Card.Media";const Nd=({name:e,skuName:t,tagName:r,className:o})=>n.jsxs(n.Fragment,{children:[r&&n.jsx(m.Tag,{variant:"quaternary",title:r,style:{textTransform:"uppercase"},children:r}),n.jsx("p",{className:m.helpers.classNameConcat(de["mc--card--name"],o),children:U.getProductNameWithoutSku(e??"",t??"")})]});Nd.displayName="MiniCart.Card.Name";const Td=({total:e,totalList:t})=>n.jsx(m.ProductInfo.Root,{children:n.jsx(m.TextStructure.Root,{children:n.jsx(m.TextStructure.DivWrapper,{className:de["mc--card--price"],children:n.jsx(m.ProductInfo.Wrapper,{className:de["mc--card--price--details"],size:"small",layout:"horizontal",children:t&&e!==t?n.jsxs(n.Fragment,{children:[n.jsx(m.ProductInfo.Price,{label:"originalPrice",value:U.formatPriceToCurrency(t),size:"small"}),n.jsx(m.ProductInfo.Price,{label:"discountPrice",value:U.formatPriceToCurrency(e),size:"small"})]}):n.jsx(m.ProductInfo.Price,{label:"defaultPrice",value:U.formatPriceToCurrency(e),size:"small"})})})})});Td.displayName="MiniCart.ProductPrice";const Od=({product:e,TEXTURE_IMAGE:t,TOGGLE_STYLE_MODIFIER:r})=>{var u;const[o,s]=x.useState(""),i=x.useRef(null),{cartStore:{options:a}}=Ee(),c=e.itemOffered.isVariationOf.productGroupID,l=x.useCallback(()=>{var h;const f=(h=a==null?void 0:a.find(d=>d.id===c))==null?void 0:h.texture;if(f){s(f);return}fetch("/api/catalog/product/info",{method:"POST",priority:"low",body:JSON.stringify({ids:[c]})}).then(d=>d.json()).then(d=>{const p=d.data[0].items.find(g=>g.itemId===e.id);if(p){const g=p.images.find(y=>t.includes(y.imageLabel));if(g!=null&&g.imageUrl){s(g.imageUrl);return}s(p.images[0].imageUrl)}}).catch(d=>{console.error(d)})},[a,c,e.id]);return x.useEffect(()=>{if(!i.current)return;new IntersectionObserver(l).observe(i.current)},[l]),n.jsx("div",{ref:i,children:n.jsx(m.ToggleStyle.Wrapper,{size:"small",style:r,children:n.jsx(m.ToggleStyle.Texture,{children:o?n.jsx(ze.Image,{alt:((u=e.itemOffered)==null?void 0:u.image[0].alternateName)??"Produto",src:o,width:164,height:164,style:r}):n.jsx(ru,{})})})})};Od.displayName="MiniCart.Card.Style";const kd=({product:e,NAME_SPLIT_SYMBOL:t,TEXTURE_IMAGE:r,TOGGLE_STYLE_MODIFIER:o})=>{const{size:s}=U.getColorAndSizeFromSkuName(e.itemOffered.skuName??"",t);return n.jsxs(m.Utils.Row,{alignItems:"center",children:[n.jsx(Od,{product:e,TEXTURE_IMAGE:r,TOGGLE_STYLE_MODIFIER:o}),n.jsx(m.Utils.Divider,{direction:"vertical",size:"small",style:{height:24}}),s&&n.jsx(m.ToggleSize.Wrapper,{size:"small",variation:"fill",className:de["mc-container-actions--toggle-size-modifier"],children:n.jsx(m.ToggleSize.Text,{children:s})})]})};kd.displayName="MiniCart.Card.Sku";const xt={Actions:Rd,Gift:Ad,Media:Id,Name:Nd,Price:Td,Sku:kd},Lg=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}},Ld=({available:e=!0,index:t,product:r,ICONS:o,MINICART_CONFIG:s,NAME_SPLIT_SYMBOL:i,TEXTURE_IMAGE:a,TOGGLE_STYLE_MODIFIER:c})=>{var h,d;const{sendDataLayerEvent:l}=ce(),u=Lg(r),f=(p,g)=>{const y={commonData:{...r,...u},customData:{index:t},event:p};if(g==="skuEvents"){const _={...r,...u};y.supportData={selectedSkus:[_]},y.commonData.products=[_]}l({functionKey:g,data:y})};return n.jsxs("div",{className:m.helpers.classNameConcat(de["mc--card"],e?"":de["mc--card--unavailable"]),children:[n.jsx(xt.Media,{itemOffered:r.itemOffered}),n.jsxs("div",{className:de["mc--card--content-info"],children:[n.jsx(xt.Name,{name:((h=r.itemOffered)==null?void 0:h.name)??"",skuName:(d=r.itemOffered)==null?void 0:d.skuName}),n.jsxs("div",{className:de["mc--card--details"],children:[n.jsx("div",{className:de["mc--card--actions"],children:e?n.jsx(xt.Price,{total:u.price,totalList:u.listPrice}):n.jsx(m.Tag,{variant:"secondary",size:"small",children:"Indisponível"})}),n.jsxs("div",{className:de["mc--card--actions--secondary"],children:[e&&n.jsx(xt.Sku,{product:r,NAME_SPLIT_SYMBOL:i,TEXTURE_IMAGE:a,TOGGLE_STYLE_MODIFIER:c}),n.jsx(xt.Actions,{handleSendEvent:f,product:r,size:"small",variant:"tertiary",ICONS:o,MINICART_CONFIG:s})]})]})]})]})};Ld.displayName="MiniCart.Card";const Md=({type:e="positive",ICONS:t,MESSAGE_CASHBACK:r})=>{var i;const{toExpire:o}=At(),s=((i=o==null?void 0:o.cashback)==null?void 0:i.reduce((a,c)=>a+c.remaining_value,0))??0;return s>0?n.jsxs("div",{className:m.helpers.classNameConcat(de["mc--cashback"],de[`mc--cashback--${e}`]),children:[n.jsx(m.Icon,{name:t.alert_circle,size:"medium"}),n.jsxs("p",{children:[n.jsx("span",{children:U.formatPriceToCurrency(s)})," ",r.title]})]}):null};Md.displayName="MiniCart.Cashback";const Dd=({type:e,ICONS:t,MINICART_CONFIG:r})=>{const{addCouponSeller:o,removeCoupon:s,removeSellerCode:i,cartStore:{marketingData:a,openTextField:c}}=Ee(),[l,u]=x.useState(!1),[f,h]=x.useState(!1),d=x.useCallback(()=>{let _="";return e==="coupon"?_=(a==null?void 0:a.coupon)??"":_=String((c==null?void 0:c.value)??""),_.toUpperCase()??""},[a,c,e]),[p,g]=x.useState(!!d()),y=async _=>{h(!0),!!d()&&(e==="coupon"?await s():await i(),g(!1),u(!1)),await o(_,e).then(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 n.jsx(ke.Field,{hasError:l,hasSuccess:p,isLoading:f,onHandler:y,type:e,title:e==="coupon"?`${r.messages.descount_cupom_placeholder}`:`${r.messages.sellers_code_placeholder}`,value:d(),MINICART_CONFIG:r,ICONS:t})};Dd.displayName="MiniCart.CouponSeller";const $d=({ICONS:e,MINICART_CONFIG:t,PLP_NOT_RESULT:r})=>{const{router:o}=xe(),s=()=>{o.push(r.link)};return n.jsxs(m.Utils.Column,{alignContent:"center",alignItems:"center",gap:"24px",className:de["mc--body--empty--feedback"],children:[n.jsx(m.TextStructure.Root,{children:n.jsx(m.TextStructure.DivWrapper,{children:n.jsxs("p",{className:`typography-style-body-xs ${de["mc--body--empty--text"]}`,children:[t.messages.empty_card," "]})})}),n.jsx(m.Button,{variant:"tertiary",size:"large",onClick:()=>s(),"data-close":!0,adornment:{end:n.jsx(m.Icon,{name:e.arrow_right,size:"medium"})},children:t.messages.empty_bag})]})};$d.displayName="MiniCart.Feedback";const Mg=e=>{const t=e.replace(/\D/g,"");return t.length>5?`${t.slice(0,5)}-${t.slice(5,8)}`:t},zd=({feedback:e,hasError:t,onHandler:r,hasSuccess:o,type:s,title:i,value:a,ICONS:c})=>{const[l,u]=x.useState(a);x.useEffect(()=>{t||u(a)},[a,t]);const f=()=>t?n.jsx(m.Icon,{name:c.delete_circle}):String(a).length&&o?n.jsx(m.Icon,{name:c.check_circle}):null,h=()=>{if(s==="seller"){const y=String(a).includes(" - ")?String(a).split(" - ")[0]:l;u(y)}},d=()=>{if(s==="seller"){const y=String(a).includes(" - ")?a:l;u(y)}},p=y=>{const _=y.currentTarget.value;if(_===""&&typeof r=="function"||o&&String(a).length>0&&_!==String(a)||t&&_!==String(a)){u(""),r("");return}if(s==="cep"){const S=Mg(_);u(S)}else u(_)},g=y=>{if(y.key.toLocaleLowerCase()==="enter"&&typeof r=="function"){const _=y.currentTarget.value;r(_)}};return n.jsx(m.TextField.Input,{adornment:{end:f()},mode:"over-label",label:i,feedback:e,value:l,type:"text",onFocus:h,onBlur:d,onChange:p,onKeyDown:g})};zd.displayName="MiniCart.Field.Input";const Bd=({title:e,ICONS:t,MINICART_CONFIG:r,...o})=>{const s=x.useRef(null),{hasSuccess:i,hasError:a,isLoading:c,onHandler:l,type:u,value:f}=o,h=()=>a?"error":String(f).length&&i?"success":"none",d=x.useCallback(()=>{if(s.current){const y=s.current.querySelector("input");y&&typeof l=="function"&&(f!==""||a?(l(""),y.value=""):l((y==null?void 0:y.value)??""))}},[l,f,a]),p=h();return n.jsx("div",{ref:s,children:n.jsx(m.TextField.Structure,{className:de["mc--field"],input:n.jsx(zd,{...o,feedback:p,title:e,ICONS:t}),right:n.jsx(m.Button,{"data-has-success":!i,size:"medium",title:String(f).length&&i||a?"Remover":"Aplicar",onClick:()=>d(),disabled:c,children:String(f).length&&i||a?n.jsx(m.Icon,{name:"close",size:"small"}):`${r.messages.promo_code_button}`}),supportText:u==="cep"&&p==="success"?n.jsx(m.TextField.SupportText,{text:"Mais informações de frete na etapa a seguir",feedback:"success",title:"support"}):null})})};Bd.displayName="MiniCart.Field";const Fd=({children:e,ICONS:t,MINICART_CONFIG:r,NAME_SPLIT_SYMBOL:o,PLP_NOT_RESULT:s,TEXTURE_IMAGE:i,TOGGLE_STYLE_MODIFIER:a})=>{const{cartStore:{items:c,messages:l}}=Ee();return n.jsxs(m.Modal.Body,{className:de["mc--body"],children:[e,n.jsx("div",{className:de["mc--body--products"],children:Array.isArray(c)&&c.length?c.map((u,f)=>{const h=l.find(d=>{var p;return d.code==="withoutStock"&&((p=d.fields)==null?void 0:p.ean)===u.ean})!==void 0;return n.jsx(ke.Card,{available:!u.availability.includes("outStock")||!h,index:f,product:u,ICONS:t,MINICART_CONFIG:r,NAME_SPLIT_SYMBOL:o,TEXTURE_IMAGE:i,TOGGLE_STYLE_MODIFIER:a},`${u.id}-${u.itemOffered.sku}-${f}`)}):n.jsx(ke.Feedback,{ICONS:t,MINICART_CONFIG:r,PLP_NOT_RESULT:s})})]})};Fd.displayName="MiniCart.Body";const qd=({children:e,storeConfig:t,MINICART_CONFIG:r})=>{const{cartStore:o}=Ee();if(o.items.length===0)return null;const s=()=>{var a;const i=new URLSearchParams({orderFormId:o.id,...((a=o.marketingData)==null?void 0:a.utmCampaign)&&{utm_campaign:o.marketingData.utmCampaign}});window.location.href=`${t.checkoutUrl}?${i.toString()}#/cart`};return n.jsxs(m.Modal.Footer,{className:de["mc--footer"],children:[e,n.jsx("div",{className:de["mc--footer--actions"],children:n.jsx(m.Button,{variant:"primary",size:"large","data-close":!0,className:de["mc--footer--actions-button"],onClick:s,children:r.messages.checkout_button})})]})};qd.displayName="MiniCart.Modal.Footer";const Hd=({children:e,className:t,ICONS:r,MINICART_CONFIG:o})=>n.jsxs(m.Accordion.Wrapper,{className:de["mc--discount"],children:[n.jsx(m.Accordion.Header,{id:"frete",title:"Frete",closeIndicator:n.jsx(m.Icon,{name:r.arrow_up,size:"medium"}),openIndicator:n.jsx(m.Icon,{name:r.arrow_down,size:"medium"}),className:m.helpers.classNameConcat(de["mc--discount--header"],t),startOpen:o.promotion_input_starts_open,children:n.jsx(m.TextStructure.Root,{children:n.jsxs(m.TextStructure.DivWrapper,{children:[n.jsxs("h3",{className:"typography-style-body-sm",children:[o.messages.promo_code_title," "]}),n.jsx("p",{className:"typography-style-body-xs",children:o.messages.promo_code_subtitle})]})})}),n.jsx(m.Accordion.Body,{className:de["mc--discount--body"],children:e}),n.jsx(m.Utils.Divider,{direction:"horizontal",size:"small",style:{height:16}})]});Hd.displayName="MiniCart.Discount";const Ud=({discount:e,shipping:t,total:r})=>{var c;const{tags:o}=rt(),s=r-Math.abs(e??0)+(t??0),i=t===0?"Frete Grátis":U.formatPriceToCurrency((t??0)/100),a=[{title:"Subtotal",value:U.formatPriceToCurrency(r/100)},{title:"Frete",value:t===void 0?"A calcular":i},{title:"Desconto",value:U.formatPriceToCurrency((e??0)/100)},{message:((c=o==null?void 0:o.flagCart)==null?void 0:c.flagTotal)??"",title:"Total",value:`1x de ${U.formatPriceToCurrency(s/100)}`}];return n.jsx("div",{className:de["mc--footer--total"],children:Array.isArray(a)&&a.map((l,u)=>n.jsxs("div",{className:de["mc--footer--total--info"],"data-discount":l.title==="Desconto",children:[n.jsx("p",{children:l.title}),n.jsxs("div",{className:de["mc--footer--total--info--content"],children:[l.message&&n.jsx(m.Tag,{variant:"primary",title:l.message,children:l.message}),n.jsx(m.ProductInfo.Price,{className:de["mc--footer--total--info"],label:l.title,value:l.value})]})]},u))})};Ud.displayName="MiniCart.Modal.Footer.Resume.Items";const Wd=({totalizers:e})=>{var s,i,a;const t=((s=e.find(c=>c.id==="Items"))==null?void 0:s.value)??0,r=(i=e.find(c=>c.id==="Discounts"))==null?void 0:i.value,o=(a=e.find(c=>c.id==="Shipping"))==null?void 0:a.value;return n.jsx(Ud,{discount:r??0,total:t,shipping:o})};Wd.displayName="MiniCart.Modal.Footer.Totals";const Vd=({ICONS:e,MINICART_CONFIG:t})=>{const{isMobile:r}=le(),{cartStore:{items:o}}=Ee(),s=o.reduce((i,a)=>i+(a.quantity??0),0);return n.jsx(m.Modal.Header,{navigation:"top",className:de["mc--header"],children:n.jsxs(m.Modal.Controls,{navigation:"top",isMobile:!!r,children:[n.jsx(m.Modal.Title,{navigation:"top",title:t.messages.title}),n.jsx("span",{className:de["mc--header--subtitle"],children:s!==1?`[${s}] Produtos`:`[${s}] Produto`}),n.jsx(m.Button,{"data-close":!0,iconNameStart:e.close,size:"small",variant:"tertiary"})]})})};Vd.displayName="MiniCart.Modal.Header";const Gd=({ICONS:e,MINICART_CONFIG:t})=>{const{cartStore:{shippingData:r},shipping:o,removeCEP:s}=Ee(),{sendDataLayerEvent:i}=ce(),[a,c]=x.useState(!1),[l,u]=x.useState(!1),f=x.useCallback(()=>{var b;return((b=r==null?void 0:r.address)==null?void 0:b.postalCode)??""},[r]),[h,d]=x.useState(!!f()),p=()=>{d(!1),c(!1)},g=b=>{var S;if(typeof b=="object"&&(b!=null&&b.logisticsInfo))return(S=b.logisticsInfo)==null?void 0:S.reduce((v,j)=>{var T;const P=(T=j==null?void 0:j.slas)==null?void 0:T.find(w=>(w==null?void 0:w.id)===(j==null?void 0:j.selectedSla));if(!P)return v;const E=parseInt(String((P==null?void 0:P.shippingEstimate)??"").replace("bd","")),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 dt.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(),p(),u(!1);return}if(!await y(b)){c(!0),d(!1),u(!1);return}try{const P=await o(b);if(c(!1),P){d(!0);const E=g(P);E&&i({functionKey:"readyEvents",data:{event:"search_zipcode",readyData:E}})}}catch{c(!0)}finally{u(!1)}};return n.jsx(ke.Field,{hasSuccess:h,hasError:a,isLoading:l,onHandler:_,title:`${t.messages.shipping_calculation_placeholder}`,type:"cep",value:f(),ICONS:e,MINICART_CONFIG:t})};Gd.displayName="MiniCart.Shipping";const Kd=()=>{var r;const{tags:e}=rt(),t=(r=e==null?void 0:e.flagCart)==null?void 0:r.flagHeader;return t!=null&&t.value?n.jsx(m.Tag,{variant:"tertiary",title:t==null?void 0:t.value,size:"small",adornment:{start:t!=null&&t.enableIcon&&(t!=null&&t.icon)?n.jsx(m.Icon,{name:t==null?void 0:t.icon,style:{color:t==null?void 0:t.iconColor}}):null},style:{background:t==null?void 0:t.tagColor,color:t==null?void 0:t.textColor,width:"100%"},children:t==null?void 0:t.value}):null};Kd.displayName="MiniCart.TagMessage";const ke={Body:Fd,Card:Ld,Cashback:Md,CouponSeller:Dd,Discount:Hd,Field:Bd,Feedback:$d,Shipping:Gd,Footer:qd,Header:Vd,TagMessage:Kd,Totals:Wd},Dg=({ICONS:e,MINICART_CONFIG:t,NAME_SPLIT_SYMBOL:r,PLP_NOT_RESULT:o,TEXTURE_IMAGE:s,TOGGLE_STYLE_MODIFIER:i,Z_INDEX_WAR:a,storeConfig:c,minicartStyleModifiers:l})=>{const{isOpen:u,setIsOpen:f,cartStore:h}=Ee(),{isMobile:d}=le();return n.jsxs(m.Modal.Root,{className:m.helpers.classNameConcat(de["minicart--modal-modifier"],l),isMobile:!0,isOpen:u,setIsOpen:f,style:{zIndex:a.modal},variant:d?"sideBottom":"sideRight",children:[n.jsx(ke.Header,{ICONS:e,MINICART_CONFIG:t}),n.jsx(ke.Body,{ICONS:e,MINICART_CONFIG:t,NAME_SPLIT_SYMBOL:r,PLP_NOT_RESULT:o,TEXTURE_IMAGE:s,TOGGLE_STYLE_MODIFIER:i,children:n.jsx(ke.TagMessage,{})}),n.jsxs(ke.Footer,{MINICART_CONFIG:t,storeConfig:c,children:[n.jsxs(ke.Discount,{ICONS:e,MINICART_CONFIG:t,children:[n.jsx(ke.CouponSeller,{type:"seller",ICONS:e,MINICART_CONFIG:t}),n.jsx(ke.CouponSeller,{type:"coupon",ICONS:e,MINICART_CONFIG:t}),n.jsx(ke.Shipping,{ICONS:e,MINICART_CONFIG:t})]}),n.jsx(ke.Totals,{totalizers:h.totalizers})]}),n.jsx(Ed,{ICONS:e})]})},Xd=({tipBar:e,minicartStyleModifiers:t,menuV2:r,storeConfig:o,SearchModal:s})=>{const{structureRef:i,rootRef:a,CONSTANTS:c}=Pe(),{header:{HEADER_CONFIGS:l,Z_INDEX_WAR:u},minicart:f}=c;return n.jsx(m.Header.Structure,{innerRef:i,adornment:{start:e},style:{position:"sticky",top:0,zIndex:u.header},className:Ns["header-animation"],children:n.jsxs(m.Header.Root,{innerRef:a,style:{zIndex:u.header},variant:l.default_variant,interactiveVariant:l.interactive_variant,children:[r??n.jsx(n.Fragment,{children:n.jsxs(jg,{children:[n.jsx("div",{className:U.responsive["responsive-mobile-block"],style:{height:"100%",width:"100%",zIndex:u.header_mobile},children:n.jsx(Pd,{storeConfig:o,SearchModal:s})}),n.jsx("div",{className:U.responsive["responsive-desktop-block"],style:{height:"100%",width:"100%",zIndex:u.header_desktop},children:n.jsx(dd,{storeConfig:o})})]})}),n.jsx(Ng,{children:n.jsx(Dg,{...f,minicartStyleModifiers:t})}),n.jsx(ws,{title:"Produto adicionado à sua sacola!",CONSTANTS:c.addToCart})]})})};Xd.displayName="Header";const $g="_shippingFreight_6z8rf_6",zg="_shippingFreight__postalCodeGrid_6z8rf_10",Bg="_shippingFreight__grid_6z8rf_14",Fg="_shippingFreight__grid__title_6z8rf_18",qg="_shippingFreight__grid__remember_6z8rf_29",Hg="_postalCodeContainer_6z8rf_44",Ug="_deliveryStatusBar__tag_6z8rf_49",Wg="_deliveryStatusBarError__tag_6z8rf_66",Vg="_deliveryInfo_6z8rf_74",Gg="_deliveryInfo__content_6z8rf_78",Kg="_deliveryInfo__text_6z8rf_84",Xg="_deliveryInfo__title_6z8rf_89",Yg="_deliveryInfo__subtitle_6z8rf_99",Qg="_deliveryInfo__tooltipIcon_6z8rf_109",Zg="_deliveryInfo__tooltip_6z8rf_109",Jg="_freightGrid_6z8rf_148",ey="_freightContainer_6z8rf_155",ty="_freightOption__content_6z8rf_160",ry="_freightOption__value_6z8rf_166",ny="_freightOption__title_6z8rf_177",oy="_freightOption__title_item_6z8rf_181",sy="_freightOption__paragraph_6z8rf_192",ge={shippingFreight:$g,shippingFreight__postalCodeGrid:zg,shippingFreight__grid:Bg,shippingFreight__grid__title:Fg,shippingFreight__grid__remember:qg,postalCodeContainer:Hg,deliveryStatusBar__tag:Ug,deliveryStatusBarError__tag:Wg,deliveryInfo:Vg,deliveryInfo__content:Gg,deliveryInfo__text:Kg,deliveryInfo__title:Xg,deliveryInfo__subtitle:Yg,deliveryInfo__tooltipIcon:Qg,deliveryInfo__tooltip:Zg,freightGrid:Jg,freightContainer:ey,freightOption__content:ty,freightOption__value:ry,freightOption__title:ny,freightOption__title_item:oy,freightOption__paragraph:sy,"input-modifier":"_input-modifier_6z8rf_207","freight--tooltip":"_freight--tooltip_6z8rf_227"},iy=({icon:e,title:t,subtitle:r,packageCount:o,packageUnit:s="",labelDescription:i,freightConfig:a,toolTipZIndex:c})=>{const[l,u]=x.useState(!1),f=x.useRef(null),h=()=>u(d=>!d);return n.jsxs("div",{className:ge.deliveryInfo,ref:f,children:[n.jsx(m.Tooltip.Root,{arrow:"bottom",component:n.jsx("div",{children:n.jsx("p",{children:a.messages.select_size_tag})}),id:"freight--tooltip",className:ge["freight--tooltip"],style:{zIndex:c},isOpen:!0,size:"medium",position:"top",top:"-170%",left:"4%",parent:f.current}),n.jsxs("div",{className:ge.deliveryInfo__content,children:[n.jsx("div",{className:ge.deliveryInfo__icon,children:n.jsx(m.Icon,{name:e,size:"medium"})}),n.jsxs("div",{className:ge.deliveryInfo__text,children:[n.jsxs("span",{className:ge.deliveryInfo__title,children:[t," ",o," ",s]}),r&&n.jsx("span",{className:ge.deliveryInfo__subtitle,children:r})]}),i&&n.jsxs("div",{className:ge.deliveryInfo__tooltipIcon,onMouseEnter:h,onMouseLeave:h,"aria-label":"Mostrar descrição",children:[n.jsx("span",{children:n.jsx(m.Icon,{name:a.icons.feedback_help,size:"small"})}),l&&n.jsx("div",{className:ge.deliveryInfo__tooltip,children:i})]})]})]})},ay=({value:e,title:t,paragraph:r})=>n.jsx("div",{className:ge.freightOption,children:n.jsxs("div",{className:ge.freightOption__content,children:[n.jsx("span",{className:ge.freightOption__value,children:e}),n.jsx("span",{className:ge.freightOption__title,children:n.jsx(m.TextStructure.Root,{children:n.jsxs(m.TextStructure.DivWrapper,{className:ge.footer__item,children:[n.jsx("span",{className:ge.freightOption__title_item,children:t}),r&&n.jsx("span",{className:ge.freightOption__paragraph,children:r})]})})})]})}),cy=({children:e})=>n.jsx("div",{className:ge.freightContainer,children:e}),ly=({children:e})=>n.jsx("div",{className:ge.freightGrid,children:e}),uy=({children:e})=>n.jsx("div",{className:ge.postalCodeContainer,children:e}),zi=({message:e,seller:t="",size:r="small",setError:o})=>n.jsx("div",{className:o?ge.deliveryStatusBarError:ge.deliveryStatusBar,children:n.jsxs(m.Tag,{title:e,className:o?ge.deliveryStatusBarError__tag:ge.deliveryStatusBar__tag,size:r,children:[e," ",!o&&t]})}),dy=e=>{const t=parseInt(e,10);return t===1?`${t} dia`:`${t} dias`},fy=e=>{var r,o,s;const t=[];return(s=(o=(r=e==null?void 0:e.logisticsInfo)==null?void 0:r[0])==null?void 0:o.slas)==null||s.forEach(i=>{t.push({id:i.id,name:i.name,price:i.price,shippingEstimate:i.shippingEstimate})}),t},py=({component:e,parent:t,top:r,left:o,target:s,contentRef:i,freightConfig:a,toolTipZIndex:c=999,...l})=>{const{isMobile:u}=le();return n.jsx(n.Fragment,{children:u?n.jsx(m.Tooltip.Root,{arrow:"bottom",component:n.jsxs("div",{...l,ref:i,children:[e,n.jsx("p",{children:a.messages.select_size_tag})]}),id:"freight--tooltip",className:ge["freight--tooltip"],style:{zIndex:c},isOpen:!0,size:"medium",position:"top",top:"-170%",left:"4%",parent:t}):n.jsx(m.Tooltip.Root,{arrow:"bottom",component:n.jsxs("div",{...l,ref:i,children:[e,n.jsx("p",{children:a.messages.select_size_tag})]}),id:"freight--tooltip",className:ge["freight--tooltip"],style:{zIndex:c},isOpen:!0,size:"medium",position:"top",top:"-110%",left:"3%",parent:t})})},my=({onUpdateFreightItems:e,sellerId:t,size:r,skuId:o,quantity:s,setError:i,setIsButtonClicked:a,component:c,freightConfig:l,toolTipZIndex:u})=>{var I,N,z,k;const f=St(),h=St(W=>W.shipping),[d,p]=x.useState(),[g,y]=x.useState(!1),[_,b]=x.useState(!1),[S,v]=x.useState(!1),j=(N=(I=f.shippingData)==null?void 0:I.address)==null?void 0:N.postalCode,P=!(d!=null&&d.length)&&j?j:d,E=x.useRef(null),C=async W=>{const B=W.target.value.replace(/\D/g,"").slice(0,8);B.length>5?p(B.replace(/^(\d{5})(\d{1,3})/,"$1-$2")):p(B)},R=async W=>{const q=W.target.value.replace(/\D/g,"");try{if((await dt.get(`https://viacep.com.br/ws/${q}/json/`)).data.erro){i&&i(l.messages.cep_not_found),a(!1),b(!0);return}i&&i(""),b(!1)}catch{console.log("Erro ao validar o CEP. Tente novamente mais tarde.")}},T=async()=>{y(!0);try{const W=await dt.post("/api/checkout/simulation",{items:[{id:o,quantity:s,seller:t}],country:"BRA",postalCode:P});e(fy(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||(T(),a(!0))};return n.jsxs("div",{ref:E,style:{position:"relative"},children:[!o&&S?n.jsx(py,{component:c,isOpen:S,parent:E.current,toolTipZIndex:u,freightConfig:l}):n.jsx(n.Fragment,{}),n.jsx("div",{style:{position:"relative"},children:n.jsx(m.TextField.Structure,{title:"structure",style:{width:"100%"},input:n.jsx(m.TextField.Input,{defaultValue:(k=(z=f.shippingData)==null?void 0:z.address)==null?void 0:k.postalCode,label:l.messages.text_input_label,title:"textfield",value:d,sizeVariant:r,onMouseOver:()=>o?null:v(!0),onMouseOut:()=>o?null:v(!1),mode:"simple",onChange:C,onKeyDown:W=>{W.key==="Enter"&&w()},className:ge["input-modifier"],feedback:_?"error":"none"}),right:n.jsx(m.Button,{onClick:w,size:r,title:"button",children:g?n.jsx(m.Spinner,{size:"small",indicatorColor:"#ffffff"}):l.messages.text_input_btn})})})]})},hy=({children:e,freightConfig:t})=>n.jsxs("div",{className:ge.shippingFreight,children:[n.jsxs("div",{className:ge.shippingFreight__grid,children:[n.jsx("span",{className:ge.shippingFreight__grid__title,children:t.messages.title}),n.jsx("span",{className:ge.shippingFreight__grid__remember,children:n.jsx(et,{href:"https://buscacepinter.correios.com.br/app/endereco/index.php",passHref:!0,target:"_blank",rel:"noopener noreferrer",size:"x-small",disablePadding:!1,title:t.messages.remember_cep,children:t.messages.remember_cep})})]}),n.jsx("div",{className:ge.shippingFreight__postalCodeGrid,children:e})]}),gy=({children:e})=>n.jsx("div",{className:ge.freightContainer,children:e}),Yd=({className:e,sellerId:t,skuId:r,quantity:o,size:s,seller:i,local:a,CONSTANTS_PROPS:c})=>{const{sendDataLayerEvent:l}=ce(),[u,f]=x.useState(""),[h,d]=x.useState([]),[p,g]=x.useState(""),[y,_]=x.useState(!1),b=v=>f(v),S=v=>{d(v),l({functionKey:"readyEvents",data:{event:"search_zipcode",readyData:{shippings:v.map(j=>({shipping_tier:j.id,delivery_time:j.shippingEstimate.replace("bd",""),flag_pickup:j.name.toLowerCase().includes("retirada")?"true":"false",shipping:j.price,currency:c.currency||"BRL"}))}}})};return n.jsxs(gy,{className:e,children:[n.jsxs(hy,{freightConfig:c.freightConfig,children:[n.jsx(uy,{children:n.jsx(my,{onUpdateFreightItems:S,skuId:r,quantity:o,size:s,sellerId:t,local:a,setError:g,setIsButtonClicked:_,freightConfig:c.freightConfig,toolTipZIndex:c.toolTipZIndex})}),p?n.jsx(zi,{size:s,message:p,setError:g}):h.length>0&&n.jsx(zi,{size:s,message:c.freightConfig.messages.delivered_by,seller:i})]}),y&&!p?h.length>0&&n.jsxs(cy,{children:[n.jsx(ly,{children:h.filter(({id:v})=>!v.includes("Retirada")).map(v=>n.jsx(ay,{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}${dy(v.shippingEstimate)}`,radioValue:u,changeValue:b},v.id))}),c.deliveryInfoBoxesAllowed?n.jsx(iy,{icon:c.freightConfig.icons.delivery_truck,packageUnit:c.freightConfig.messages.unit_amout,title:c.freightConfig.messages.delivered_amount_packages,subtitle:"",packageCount:1,labelDescription:"Label",freightConfig:c.freightConfig,toolTipZIndex:c.toolTipZIndex??999}):n.jsx(n.Fragment,{})]}):null]})},pt={"pcd-navigation--breadcrumb":"_pcd-navigation--breadcrumb_e02qd_1","pdc-navigation--content":"_pdc-navigation--content_e02qd_28","pdc-navigation--filters":"_pdc-navigation--filters_e02qd_54","pdc-navigation--filters--content":"_pdc-navigation--filters--content_e02qd_67","pdc-navigation--selected":"_pdc-navigation--selected_e02qd_137","pdc-navigation--selected--container":"_pdc-navigation--selected--container_e02qd_150","pdc-navigation":"_pdc-navigation_e02qd_28"},yy=({children:e,href:t,isLast:r,title:o,ICONS:s})=>n.jsx(m.BreadCrumb.Item,{adornment:{end:r&&n.jsx(m.Icon,{name:s.arrow_right})},children:r?n.jsx(et,{href:t??"/",size:"medium",title:o,disableUnderline:!0,children:e}):e}),Qd=()=>{var i;const{state:e}=$e(),{ICONS:t}=Le(),r=e!=null&&e.term&&e.term.length>0?`/${e.term}`:"",o=decodeURIComponent((i=e==null?void 0:e.base)!=null&&i.length?e.base:r??r).slice(1).split("/"),s=Al(o);return n.jsx("div",{className:pt["pcd-navigation--breadcrumb"],children:n.jsx(m.BreadCrumb.DivWrapper,{children:n.jsx(m.BreadCrumb.List,{children:Array.isArray(s)&&s.map((a,c)=>{var l,u;return x.createElement(yy,{...a,isLast:c!==s.length-1,key:a.href,title:(l=a.name)==null?void 0:l.replace(/-/g," "),ICONS:t},(u=a.name)==null?void 0:u.replace(/-/g," "))})})})})};Qd.displayName="PLPNavigation.BreadCrumb";const Zd=({children:e,...t})=>n.jsxs("div",{...t,className:pt["pdc-navigation--content"],children:[n.jsx(lt.Filters,{}),e]});Zd.displayName="PLPNavigation.Content";const _y="_sort_35wro_1",Mr={sort:_y,"sort-list-wrapper":"_sort-list-wrapper_35wro_8","sort-list":"_sort-list_35wro_8","sort-button":"_sort-button_35wro_25"},vy=({children:e,sortListOpen:t,btnAdornment:r,style:o,...s})=>n.jsx(m.Button,{...s,adornment:{end:t?r==null?void 0:r.listOpen:r==null?void 0:r.listClosed},size:"small",variant:"tertiary",style:{...o,textDecoration:"none"},className:Mr["sort-button"],children:e}),xy=e=>n.jsx(m.RadioButton.Radio,{...e}),by=({children:e,className:t,name:r,...o})=>n.jsx(m.RadioButton.Group,{...o,name:r||"sort-group",className:m.helpers.classNameConcat(Mr["sort-list"],t),children:e}),jy=({children:e,className:t,shadow:r=!0,padding:o="small",height:s="fit-content",...i})=>n.jsx(m.Card,{...i,shadow:r,className:m.helpers.classNameConcat(Mr["sort-list-wrapper"],t),padding:o,height:s,children:e}),Jd=x.forwardRef(({children:e,className:t,...r},o)=>n.jsx("div",{...r,ref:o,className:m.helpers.classNameConcat(Mr.sort,t),children:e}));Jd.displayName="SortRoot";const Dr=({handleSelectValue:e,sortListOpen:t,setSortListOpen:r,searchParams:o,ICONS:s,...i})=>{var d;const a=(d=o==null?void 0:o.get("sort"))==null?void 0:d.replace(":","_"),[c,l]=x.useState(a),{sendDataLayerEvent:u}=ce();x.useEffect(()=>{l(a||void 0)},[a]);const{ref:f}=sd(()=>r(!1)),h=p=>{const g=p.target.value;l(g),typeof e=="function"&&e(g),u({functionKey:"filterEvent",data:{customData:{ordering:Tt.options[g]}}}),r(!1)};return n.jsxs(Jd,{...i,ref:f,children:[n.jsx(vy,{btnAdornment:{listOpen:n.jsx(m.Icon,{name:s.arrow_up,size:"small"}),listClosed:n.jsx(m.Icon,{name:s.arrow_down,size:"small"})},sortListOpen:t,onClick:()=>r(!t),children:c?Tt.options[c]:Tt.placeholder},"sort-button"),t&&n.jsx(jy,{children:n.jsx(by,{name:"sort-group",value:c??"",onChange:h,children:Object.keys(Tt.options).map(p=>n.jsx(xy,{label:Tt.options[p],value:p},p))})})]})};Dr.displayName="Sort";const ef=x.createContext({}),Cy=({children:e,...t})=>{const[r,o]=x.useState(!1);return n.jsx(ef.Provider,{value:x.useMemo(()=>({...t,openOrderBy:r,setOpenOrderBy:o}),[t,r,o]),children:e})},Sy=()=>{const e=x.useContext(ef);if(e===void 0)throw new Error("usePLPNavigationContext must be used within a PDCNavigationProvider");return e},tf=()=>{const{openOrderBy:e,onSort:t,setOpenFilters:r,setOpenOrderBy:o}=Sy(),{ICONS:s,PDC_NAVIGATION:i,searchParams:a}=Le();return n.jsxs("div",{className:pt["pdc-navigation--filters"],children:[n.jsx(lt.BreadCrumb,{}),n.jsxs("div",{className:pt["pdc-navigation--filters--content"],children:[n.jsx(Dr,{handleSelectValue:c=>t(c??"release_desc"),sortListOpen:e,setSortListOpen:o,ICONS:s,searchParams:a}),n.jsx(m.Button,{adornment:{end:n.jsx(m.Icon,{name:s.arrow_down})},onClick:()=>r(!0),size:"small",variant:"tertiary",children:i.filter_button}),n.jsx(lt.Total,{})]})]})};tf.displayName="PLPNavigation.Filters";const rf=({children:e,onSort:t,setOpenFilters:r,style:o,...s})=>{const i=x.useRef(null);return n.jsx(Cy,{onSort:t,setOpenFilters:r,children:n.jsx("div",{...s,className:pt["pdc-navigation"],ref:i,style:{...o},children:n.jsx(lt.Content,{children:e})})})};rf.displayName="Root";const nf=({callback:e,selected:t,...r})=>n.jsx("div",{...r,className:pt["pdc-navigation--selected"],children:n.jsx("div",{className:pt["pdc-navigation--selected--container"],children:Array.isArray(t)?t.map(o=>o.key==="productclusterids"?null:n.jsx(lt.SelectedItem,{callback:e,facet:o},o.value)):null})});nf.displayName="PLPNavigation.Selected";const Os=({key:e,PLP_FILTERS:t})=>t.some(r=>r.key===e)?e==="cores-filtraveis":!1,ks=({value:e,PLP_FILTERS_COLORS:t})=>{var r;return((r=t.find(o=>o.value===e))==null?void 0:r.color)??"#F2F2F2"},of=({key:e,PLP_FILTERS:t})=>{var r;return(r=t.find(o=>o.key===e))==null?void 0:r.label},sf=({key:e,PLP_FILTERS:t})=>{var r;return((r=t.find(o=>o.key===e))==null?void 0:r.order)??0},Wo=({value:e})=>{const[t,r]=e.split(":").length===2?e.split(":"):[0,0],o=U.formatPriceToCurrency(Number(r));return`${U.formatPriceToCurrency(Number(t))} até ${o}`},af=({items:e})=>{const t=e.flatMap(s=>[s.range.from,s.range.to]),r=Math.min(...t.map(Math.abs)),o=Math.max(...t.map(Math.abs));return[r,o]},cf=Object.freeze(Object.defineProperty({__proto__:null,checkedColor:Os,createTagPrice:Wo,getAbsoluteMinMax:af,getColor:ks,getName:of,getOrder:sf},Symbol.toStringTag,{value:"Module"})),Ue={"filter--empty":"_filter--empty_1mjas_1","filter--item":"_filter--item_1mjas_14","filter--item--price":"_filter--item--price_1mjas_19","filter--item--toggle":"_filter--item--toggle_1mjas_19","filter--item--toggle--container":"_filter--item--toggle--container_1mjas_30","filter--modal--body":"_filter--modal--body_1mjas_79","filter--modal--body--content":"_filter--modal--body--content_1mjas_87","filter--modal--footer":"_filter--modal--footer_1mjas_96","filter--modal":"_filter--modal_1mjas_79","filter--loading":"_filter--loading_1mjas_176","filter--selected":"_filter--selected_1mjas_206","filter--selected--content":"_filter--selected--content_1mjas_210"},lf=({columns:e=2,CONSTANTS:t,...r})=>{var i;const{filters:o,onToggleFacet:s}=It();return n.jsxs("div",{...r,className:Ue["filter--modal--body--content"],children:[Array.isArray(o.facets)&&o.facets.map(a=>n.jsx(tt.Item,{columns:e,facet:a,onToggleFacet:s,CONSTANTS:t},a.key)),!((i=o.facets)!=null&&i.length)&&n.jsx(tt.Empty,{PLP_FILTERS_EMPTY:t.PLP_FILTERS_EMPTY})]})};lf.displayName="Filter.Item.Content";const uf=({PLP_FILTERS_EMPTY:e})=>{const t=()=>{window.history.back()};return n.jsxs("div",{className:Ue["filter--empty"],children:[n.jsxs(m.TextStructure.DivWrapper,{children:[n.jsx("h4",{children:e.title}),n.jsx("p",{children:e.subtitle})]}),n.jsx(m.Button,{onClick:()=>t(),variant:"tertiary",children:e.button})]})};uf.displayName="Filter.Empty";const df=({columns:e,facet:t,onToggleFacet:r,CONSTANTS:o,...s})=>{const i=sf({key:t.key,PLP_FILTERS:o.PLP_FILTERS}),a=()=>{if(t.__typename==="FacetBoolean"){if(t.key==="cores-filtraveis")return n.jsx(tt.Colors,{onToggleFacet:r,values:t.values,PLP_FILTERS:o.PLP_FILTERS,PLP_FILTERS_COLORS:o.PLP_FILTERS_COLORS});if(t.key==="tamanho")return n.jsx(tt.Sizes,{onToggleFacet:r,values:t.values,PLP_SIZE_ORDER:o.PLP_SIZE_ORDER});if(t.key==="category-2")return n.jsx(tt.Toggle,{columns:e,facetKey:t.key,onToggleFacet:r,values:t.values,ICONS:o.ICONS})}return t.__typename==="FacetRange"?n.jsx(tt.Price,{facet:t}):n.jsx("p",{children:"Filter not support!!!"})};return n.jsx("div",{...s,className:Ue["filter--item"],style:{order:i},children:n.jsxs(m.Accordion.Wrapper,{style:{width:"100%"},children:[n.jsx(m.Accordion.Header,{id:t.key,closeIndicator:n.jsx(m.Icon,{name:o.ICONS.arrow_up}),openIndicator:n.jsx(m.Icon,{name:o.ICONS.arrow_down}),children:n.jsx(m.TextStructure.Root,{children:n.jsx(m.TextStructure.DivWrapper,{children:n.jsx("h4",{className:"typography-style-body-sm",children:of({key:t.key,PLP_FILTERS:o.PLP_FILTERS})})})})}),n.jsx(m.Accordion.Body,{children:a()})]})})};df.displayName="Filter.Item";const ff=({onToggleFacet:e,values:t,PLP_FILTERS:r,PLP_FILTERS_COLORS:o,...s})=>n.jsx(Xe.Root,{...s,children:n.jsx(Xe.List,{children:Array.isArray(t)&&t.map(({key:i,selected:a,value:c})=>n.jsx(Xe.Option,{active:a,"data-color":Os({key:i,PLP_FILTERS:r}),fill:ks({value:c,PLP_FILTERS_COLORS:o}),onClick:()=>e({key:i,value:c}),type:"color"},`${i}-${c}`))})});ff.displayName="Filter.Item.Color";const pf=({facet:e,...t})=>{var u,f;const{filters:{selected:r},price:o,onToggleFacet:s}=It(),[i,a]=(o==null?void 0:o.split(":").map(Number))??[0,100],[c,l]=((f=(u=r==null?void 0:r.find(({key:h})=>h==="price"))==null?void 0:u.value)==null?void 0:f.split(":").map(Number))??[i,a];return n.jsx("div",{...t,className:Ue["filter--item--price"],children:n.jsxs(m.Slider.SliderDual,{format:"price",initialValue:[c<i?i:c,l>a?a:l],min:i,max:a,type:"dual",step:1,onFinish:h=>{var d,p;h&&s({key:"price",value:`${(d=h.range)==null?void 0:d.min}:${(p=h.range)==null?void 0:p.max}`})},children:[n.jsx(m.TextStructure.Root,{children:n.jsx(m.TextStructure.DivWrapper,{children:n.jsx("p",{"data-min-value":!0})})}),n.jsx(m.TextStructure.Root,{children:n.jsx(m.TextStructure.DivWrapper,{children:n.jsx("p",{"data-max-value":!0})})})]})})};pf.displayName="Filter.Item.Price";const mf=({onToggleFacet:e,values:t,PLP_SIZE_ORDER:r,...o})=>{const s=[...t].sort((i,a)=>{const c=r.indexOf(i.name),l=r.indexOf(a.name);return c-l});return n.jsx(Xe.Root,{...o,children:n.jsx(Xe.List,{children:Array.isArray(s)&&s.map(({key:i,selected:a,value:c})=>n.jsx(Xe.Option,{active:a,text:c,type:"size",onClick:()=>e({key:i,value:c})},c))})})};mf.displayName="Filter.Item.Sizes";const hf=({columns:e,facetKey:t,onToggleFacet:r,values:o,ICONS:s,...i})=>n.jsx("div",{...i,className:Ue["filter--item--toggle"],children:n.jsx("div",{className:Ue["filter--item--toggle--container"],style:{gridTemplateColumns:`repeat(${e}, 1fr)`},children:Array.isArray(o)&&o.map(a=>n.jsx(m.Checkbox,{label:(a==null?void 0:a.name)??"",adornment:n.jsx(m.Icon,{name:s.check}),checked:a.selected,onChange:()=>r(a)},a.value))})});hf.displayName="Filter.Item.Toggle";const gf=({...e})=>{const{isLoading:t}=It();return n.jsx("div",{className:Ue["filter--loading"],"data-active":t,...e,children:n.jsx(m.Spinner,{indicatorColor:"#000",background:"#222"})})};gf.displayName="Filter.Loading";const yf=({children:e,className:t,isMobile:r=!1,CONSTANTS:{PLP_FILTERS_TITLE:o,ICONS:s}})=>{var f;const{deleteAllFacets:i,filters:a,isOpen:c,target:l,setIsOpen:u}=It();return n.jsxs(m.Modal.Root,{className:m.helpers.classNameConcat(Ue["filter--modal"],t),isMobile:r??!1,isOpen:c,parent:l,setIsOpen:u,variant:r?"sideBottom":"sideRight",style:{zIndex:99},children:[n.jsxs(m.Modal.Header,{navigation:"top",children:[n.jsx(m.Modal.Controls,{navigation:"top",isMobile:r,children:n.jsx(m.Button,{"data-close":!0,iconNameStart:s.close,size:"small",variant:"tertiary",style:{marginLeft:"auto"}})}),n.jsx(m.Modal.Title,{navigation:"top",title:o})]}),n.jsxs(m.Modal.Body,{style:{width:500},children:[n.jsx("div",{className:Ue["filter--modal--body"],children:e}),n.jsx(tt.Loading,{})]}),n.jsx(m.Modal.Footer,{children:n.jsxs("div",{className:Ue["filter--modal--footer"],children:[n.jsx(m.Button,{"data-close":!0,size:"large",variant:"primary",children:(f=a.facets)!=null&&f.length?"ver resultados":"fechar"}),n.jsx(m.Button,{"data-close":!0,onClick:()=>i(),variant:"tertiary",children:"limpar filtros"})]})})]})};yf.displayName="Filter.Modal";const _f=({children:e,className:t,isMobile:r,CONSTANTS:o,...s})=>n.jsx(Vl,{...s,PLP_FILTERS:o.PLP_FILTERS,children:n.jsx(tt.Modal,{className:t,isMobile:r,CONSTANTS:o,children:e})});_f.displayName="Filter.Root";const vf=({ICONS:e,PLP_FILTERS_COLORS:t,PLP_FILTERS:r})=>{const{filters:o,onToggleFacet:s}=It();return n.jsx("div",{className:Ue["filter--selected"],children:n.jsx("div",{className:Ue["filter--selected--content"],children:Array.isArray(o.selected)&&o.selected.map(({key:i,value:a})=>i==="productclusterids"?null:n.jsx(m.Tag,{title:i==="price"?Wo({value:a}):a,adornment:{end:n.jsx(m.Icon,{name:e.close,size:"x-small"})},colorSquare:ks({value:a,PLP_FILTERS_COLORS:t}),onClick:()=>s({key:i,value:a}),squareShow:Os({key:i,PLP_FILTERS:r}),size:"medium",variant:"primary",children:i==="price"?Wo({value:a}):a},a))})})};vf.displayName="Filter.Selected";const tt={Colors:ff,Content:lf,Empty:uf,Modal:yf,Item:df,Root:_f,Loading:gf,Selected:vf,Price:pf,Sizes:mf,Toggle:hf},{checkedColor:Py,createTagPrice:Bi,getColor:wy}=cf,xf=({callback:e,facet:t})=>{const{ICONS:r,PLP_FILTERS_COLORS:o,PLP_FILTERS:s}=Le();return n.jsx(m.Tag,{title:(t==null?void 0:t.key)==="price"?Bi({value:t.value}):t.value.toUpperCase(),adornment:{end:n.jsx(m.Icon,{name:r.close,size:"x-small"})},colorSquare:wy({value:t.value,PLP_FILTERS_COLORS:o}),onClick:()=>{typeof e=="function"&&e(t,!0)},squareShow:Py({key:t.key,PLP_FILTERS:s}),size:"medium",variant:"primary",children:(t==null?void 0:t.key)==="price"?Bi({value:t.value}):t.value.toUpperCase()})};xf.displayName="PLPNavigation.Selected.Item";const bf=()=>n.jsx(m.TextStructure.Root,{children:n.jsx("p",{id:"pdc-navigation--total"})});bf.displayName="PLPNavigation.Total";const lt={BreadCrumb:Qd,Content:Zd,Filters:tf,Root:rf,Selected:nf,SelectedItem:xf,Total:bf},Ey="_footer__bottom_1o9af_2",Ry="_footer__wrapper_1o9af_10",Ay="_footer__main_1o9af_39",Iy="_footer__legalInformation_1o9af_55",Ny="_footer__column_1o9af_77",Ty="_footer__columnContent_1o9af_87",Oy="_footer__item_1o9af_91",ky="_footer__itemLink_1o9af_107",Ly="_footer__columnTitle_1o9af_122",My="_footer__columnTitleIcon_1o9af_134",Dy="_footer__iconList_1o9af_147",$y="_footer__itemSmallText_1o9af_157",zy="_payment_1o9af_168",By="_footer__iconContainer_1o9af_173",Fy="_footer__iconListSubHeader_1o9af_178",qy="_accordionWrapper_1o9af_200",Hy="_accordionHeader_1o9af_204",Uy="_accordionTextWrapper_1o9af_208",ye={footer__bottom:Ey,footer__wrapper:Ry,footer__main:Ay,footer__legalInformation:Iy,footer__column:Ny,footer__columnContent:Ty,footer__item:Oy,footer__itemLink:ky,footer__columnTitle:Ly,footer__columnTitleIcon:My,footer__iconList:Dy,footer__itemSmallText:$y,payment:zy,footer__iconContainer:By,footer__iconListSubHeader:Fy,accordionWrapper:qy,accordionHeader:Hy,accordionTextWrapper:Uy,"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 jf={},Ls={},Gt={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"warnOnce",{enumerable:!0,get:function(){return t}});let t=r=>{};if(process.env.NODE_ENV!=="production"){const r=new Set;t=o=>{r.has(o)||console.warn(o),r.add(o)}}})(Gt);var Cf={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"getImageBlurSvg",{enumerable:!0,get:function(){return t}});function t(r){let{widthInt:o,heightInt:s,blurWidth:i,blurHeight:a,blurDataURL:c,objectFit:l}=r;const u=20,f=i?i*40:o,h=a?a*40:s,d=f&&h?"viewBox='0 0 "+f+" "+h+"'":"",p=d?"none":l==="contain"?"xMidYMid":l==="cover"?"xMidYMid slice":"none";return"%3Csvg xmlns='http://www.w3.org/2000/svg' "+d+"%3E%3Cfilter id='b' color-interpolation-filters='sRGB'%3E%3CfeGaussianBlur stdDeviation='"+u+"'/%3E%3CfeColorMatrix values='1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 100 -1' result='s'/%3E%3CfeFlood x='0' y='0' width='100%25' height='100%25'/%3E%3CfeComposite operator='out' in='s'/%3E%3CfeComposite in2='SourceGraphic'/%3E%3CfeGaussianBlur stdDeviation='"+u+"'/%3E%3C/filter%3E%3Cimage width='100%25' height='100%25' x='0' y='0' preserveAspectRatio='"+p+"' style='filter: url(%23b);' href='"+c+"'/%3E%3C/svg%3E"}})(Cf);var $r={};(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(s,i){for(var a in i)Object.defineProperty(s,a,{enumerable:!0,get:i[a]})}t(e,{VALID_LOADERS:function(){return r},imageConfigDefault:function(){return o}});const r=["default","imgix","cloudinary","akamai","custom"],o={deviceSizes:[640,750,828,1080,1200,1920,2048,3840],imageSizes:[16,32,48,64,96,128,256,384],path:"/_next/image",loader:"default",loaderFile:"",domains:[],disableStaticImages:!1,minimumCacheTTL:60,formats:["image/webp"],dangerouslyAllowSVG:!1,contentSecurityPolicy:"script-src 'none'; frame-src 'none'; sandbox;",contentDispositionType:"inline",remotePatterns:[],unoptimized:!1}})($r);(function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"getImgProps",{enumerable:!0,get:function(){return p}});const t=Gt,r=Cf,o=$r,s=["lazy","eager",void 0];function i(g){return g.default!==void 0}function a(g){return g.src!==void 0}function c(g){return typeof g=="object"&&(i(g)||a(g))}const l=new Map;let u;function f(g){return typeof g>"u"?g:typeof g=="number"?Number.isFinite(g)?g:NaN:typeof g=="string"&&/^[0-9]+$/.test(g)?parseInt(g,10):NaN}function h(g,y,_){let{deviceSizes:b,allSizes: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 d(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((T,w)=>P({config:y,src:_,quality:v,width:T})+" "+(C==="w"?T:w+1)+C).join(", "),src:P({config:y,src:_,quality:v,width:E[R]})}}function p(g,y){let{src:_,sizes:b,unoptimized:S=!1,priority:v=!1,loading:j,className:P,quality:E,width:C,height:R,fill:T=!1,style:w,onLoad:I,onLoadingComplete:N,placeholder:z="empty",blurDataURL:k,fetchPriority:W,layout:q,objectFit:B,objectPosition:V,lazyBoundary:G,lazyRoot:F,...J}=g;const{imgConf:A,showAltText:O,blurComplete:D,defaultLoader:X}=y;let ne,ee=A||o.imageConfigDefault;if("allSizes"in ee)ne=ee;else{const K=[...ee.deviceSizes,...ee.imageSizes].sort((Re,Q)=>Re-Q),me=ee.deviceSizes.sort((Re,Q)=>Re-Q);ne={...ee,allSizes:K,deviceSizes:me}}let M=J.loader||X;delete J.loader,delete J.srcSet;const te="__next_img_default"in M;if(te){if(ne.loader==="custom")throw new Error('Image with src "'+_+`" is missing "loader" prop.
|
|
5
|
-
Read more: https://nextjs.org/docs/messages/next-image-missing-loader`)}else{const K=M;M=me=>{const{config:Re,...Q}=me;return K(Q)}}if(q){q==="fill"&&(T=!0);const K={intrinsic:{maxWidth:"100%",height:"auto"},responsive:{width:"100%",height:"auto"}},me={responsive:"100vw",fill:"100vw"},Re=K[q];Re&&(w={...w,...Re});const Q=me[q];Q&&!b&&(b=Q)}let Z="",re=f(C),$=f(R),L,oe;if(c(_)){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=>{(L.current!==re||$.current!==Z)&&(ue(),L.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||!M||_(ne,Z,re,{locale:G},{kind:te},ee))},[re,Z,pe,G,M,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,M))},onMouseEnter(ae){!A&&typeof B=="function"&&B(ae),A&&oe.props&&typeof oe.props.onMouseEnter=="function"&&oe.props.onMouseEnter(ae),ne&&((!M||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&&(!M&&ee||_(ne,Z,re,{locale:G,priority:!0,bypassPrefetchedCheck:!0},{kind:te},ee))}};if((0,c.isAbsoluteUrl)(re))be.href=re;else if(!A||k||oe.type==="a"&&!("href"in oe.props)){const ae=typeof G<"u"?G:D==null?void 0:D.locale,ve=(D==null?void 0:D.isLocaleDomain)&&(0,d.getDomainLocale)(re,ae,D==null?void 0:D.locales,D==null?void 0:D.domainLocales);be.href=ve||(0,p.addBasePath)((0,l.addLocale)(re,ae,D==null?void 0:D.defaultLocale))}return A?o.default.cloneElement(oe,be):o.default.createElement("a",{...O,...be},T)});(typeof t.default=="function"||typeof t.default=="object"&&t.default!==null)&&typeof t.default.__esModule>"u"&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)})(Vo,Vo.exports);var mg=Vo.exports,hg=mg;const De=kr(hg),gg="_link_w24h0_1",yg="_wrapper_w24h0_98",_g="_text_w24h0_106",jn={link:gg,wrapper:yg,text:_g},rt=({children:e,adornments:t,className:n,disableUnderline:o,href:s,mode:a,size:i,title:c,onClick:l,disablePadding:u,...f})=>{const h=m.helpers.ValidateProp({fieldTypes:Pt.SizesSmallExtended,property:i,fallback:"medium"}),d=m.helpers.ValidateProp({fieldTypes:Pt.Mode,property:a,fallback:"default"});return r.jsx(De,{...f,className:m.helpers.classNameConcat(jn.link,n),href:s&&s.length>0?s:"#","data-size":h,"data-variant":d,title:c||"NextLink","data-disable-underline":o??!1,"data-disable-padding":u??!0,children: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(rt,{href:"/favoritos",children:"Ver Favoritos"}),r.jsx(m.Button,{variant:"tertiary",size:"small",onClick:t,adornment:{start:r.jsx(m.Icon,{name:e.close})}})]})},ks=({WISHLIST_INFO:e,ICONS:t,Z_INDEX_WAR:n})=>{const o=vs(),{resetFeedback:s}=vt(),a=v.useRef(null);return v.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"})};ks.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=v.useMemo(()=>n%i===0?"initial":o||n<2?c:c.split("/").reverse().join("/"),[n,i,o]);return r.jsx("div",{...l,className:m.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=v.useRef(!1),c=v.useRef(null),[l,u]=v.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)}},d=v.useCallback(g=>{!n||!g||(typeof h=="function"&&h(n),i.current=!0)},[n]),p=v.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(()=>{d(!0)},s.PLP_PRODUCT_SIMILAR_DELAY);return}d(!0)}},[d]);return v.useEffect(()=>{if(e||!t.current)return;const g={root:null,threshold:.1},y=new IntersectionObserver(([_])=>{p(_,g)},g);return y.observe(t.current),()=>{c.current&&clearTimeout(c.current),y.disconnect()}},[p,t,e]),r.jsx(xe.Actions,{...l,callback:f,isKit:e,children:!e&&r.jsx(xe.SizeSelector,{setNotify:o})})};ku.displayName="ProductList.Card.Actions";const Lu=({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,...d})=>{const p=v.useRef(null),{availability:{status:g}}=o,y=v.useCallback((b,S)=>{var x;typeof u=="function"&&u((x=b.isVariantOf)==null?void 0:x.hasVariant,S)},[u]),_=o.name.substring(0,4).toLowerCase()==="kit ";return r.jsxs("div",{...d,className:m.helpers.classNameConcat(Ls["product-list--card"],e),"data-mobile":s,"data-order":a,ref:p,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:p,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]})};Lu.displayName="ProductList.Card";const Mu=({children:e,className:t,...n})=>r.jsx("div",{...n,className:m.helpers.classNameConcat(Ls["product-list"],t),children:e});Mu.displayName="ProductList.Grid";const et={Banner:Ou,Card:Lu,Root:Mu,helpers:lh},xg="_pdc_alo7z_1",Ge={"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},Ms=({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:m.helpers.classNameConcat(Ge["pdc--empty"],e),children:[r.jsxs(m.TextStructure.DivWrapper,{className:Ge["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(m.Button,{adornment:{end:r.jsx(m.Icon,{name:t.arrow_right})},className:"typography-style-body-sm-strong",onClick:()=>a(),variant:"tertiary",children:r.jsx("b",{children:n.text})})]})};Ms.displayName="PDC.Empty";const Dr=e=>r.jsx("div",{...e,className:Ge["pdc--infinite--next-page"],children:r.jsx(m.Spinner,{className:Ge["pdc--infinite--next-page--spinner"]})});Dr.displayName="PDC.Spinner";function Du({CONSTANTS:e}){const{sendDataLayerEvent:t}=le(),{isMobile:n}=ce(),{getAvailableProductTag:o}=ot(),[s,a]=v.useState([]),[i,c]=v.useState(!0),l=Tt(),u=n?16:32;return v.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(Dr,{}),!l.length&&!(s!=null&&s.length)&&!i&&r.jsx(Ms,{className:Bt["pdc-empty-modifier"],ICONS:e.ICONS,PLP_NOT_RESULT:e.WISHLIST_NOT_RESULT}),r.jsx(et.Root,{children:Array.isArray(s)&&s.map((f,h)=>{const d=f.node.cluster.highlights||[],p=o(d);return r.jsx(et.Card,{gap:u,isMobile:n??!1,item:f.node,tag:p,index:h,CONSTANTS:{BUY_BUTTON_LABELS:e.BUY_BUTTON_LABELS,MAIN_IMAGE:e.MAIN_IMAGE,PLP_GRID_SCROLL_BACK:e.PLP_GRID_SCROLL_BACK,PLP_INFINITE_SCROLL:e.PLP_INFINITE_SCROLL,PLP_SHOW_VIDEO_ON_PRODUCT_CARD:e.PLP_SHOW_VIDEO_ON_PRODUCT_CARD,PLP_PRODUCT_SIMILAR_DELAY:e.PLP_PRODUCT_SIMILAR_DELAY,PRODUCT_CARD_IMAGE_ASPECT_RATIO:e.PRODUCT_CARD_IMAGE_ASPECT_RATIO,PRODUCT_CARD_TEXTS:e.PRODUCT_CARD_TEXTS,PRODUCT_CARD_TOP_WISHLIST_TOGGLE:e.PRODUCT_CARD_TOP_WISHLIST_TOGGLE,PRODUCT_IMAGE_DIMENSIONS:e.PRODUCT_IMAGE_DIMENSIONS,SECOND_IMAGE:e.SECOND_IMAGE,StoreConfig_MainSellerId:e.StoreConfig_MainSellerId,TEXTURE_IMAGE:e.TEXTURE_IMAGE,Z_INDEX_WAR:e.Z_INDEX_WAR,ICONS:e.ICONS}},f.node.sku)})})]})})}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=vs(),{updateList:i}=vt();return v.useEffect(()=>{var l,u;a.active&&Qe.set("fs::wishlist",s);const c=async()=>{var f;await fetch("/api/wishlist/documents",{method:"PATCH",body:JSON.stringify({productIds:s,docId:(f=o==null?void 0:o.user)==null?void 0:f.id})}).catch(h=>{console.error("Error updating wishlist:",h)})};a.active&&((l=o.user)!=null&&l.id)&&s.length!==((u=o.wishlist)==null?void 0:u.length)&&c()},[a,o,s]),v.useEffect(()=>{var u;const c=async()=>{const f=await Qe.get("fs::wishlist");f&&(f==null?void 0:f.length)!==s.length&&i(f)},l=async()=>{var p;const f=await Qe.get("fs::wishlist")??[],h=o.wishlist?typeof o.wishlist[0]=="object"?bg(o.wishlist):o.wishlist:[],d=[...new Set([...f,...h])];i(d),Qe.set("fs::wishlist",s),h.length!==d.length&&await fetch("/api/wishlist/documents",{method:"PATCH",body:JSON.stringify({productIds:d,docId:(p=o.user)==null?void 0:p.id})}).catch(g=>{console.error("Error updating wishlist:",g)})};if((u=o.user)!=null&&u.id){l();return}c()},[o,i,s]),r.jsx(ks,{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(m.Button,{adornment:{start:r.jsx(m.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:ks,Toggle:zu,Grid:Du,Init:$u},Bu=({product:e,tag:t,size:n="small"})=>{const o=e.offers.offers[0],{CONSTANTS:s}=Ve();return r.jsxs(xe.Wrapper,{type:"header",style:{zIndex:s.Z_INDEX_WAR.product_card_header},children:[t?r.jsx(m.Tag,{title:t.value,adornment:{start:t.enableIcon&&t.icon?r.jsx(m.Icon,{name:t.icon,size:"small",style:{color:t.iconColor}}):null},size:n,variant:"quaternary",style:{background:t.tagColor,color:t.textColor},children:t.value}):null,s.PRODUCT_CARD_TOP_WISHLIST_TOGGLE&&r.jsx(Fu.Toggle,{product:e,priceInfo:{price:o.price,listPrice:o.listPrice},variant:"card",ICONS:s.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:d}=Ve(),p=U.getFirstImages({images:c,label:{first:d.MAIN_IMAGE,second:d.SECOND_IMAGE}});return r.jsxs("div",{...s,className:m.helpers.classNameConcat(Ae["product-card--image"],e),ref:a,style:{aspectRatio:d.PRODUCT_CARD_IMAGE_ASPECT_RATIO},children:[r.jsx(De,{href:`/${l}/p`,onClick:f,onMouseUp:g=>{g.button===1&&f(),d.PLP_INFINITE_SCROLL&&sessionStorage.setItem(d.PLP_GRID_SCROLL_BACK.order,String(h))},children:r.jsx("div",{className:Ae["product-card--image--container"],children:Array.isArray(p)&&p.map(({url:g,alternateName:y},_)=>v.createElement(Ie.Image,{...d.PRODUCT_IMAGE_DIMENSIONS.product_card,style:d.PRODUCT_IMAGE_DIMENSIONS.product_card,alt:y??"product image",key:_,...n&&{priority:_===0&&i<4},objectFit:"cover",src:g}))})}),d.PLP_SHOW_VIDEO_ON_PRODUCT_CARD&&o&&u&&r.jsx(xe.Video,{url:u,poster:p[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}}=Ve(),{availability:{status:c}}=a;return c?null:r.jsxs("div",{...o,className:m.helpers.classNameConcat(Ae["product-card--outstock"],e),children:[r.jsx(m.Tag,{size:"small",variant:"secondary",title:i.disabled,children:i.disabled}),r.jsx(m.Button,{className:m.helpers.classNameConcat(e,"buy-button"),size:s?"medium":"large",variant:"quaternary",onClick:()=>{typeof t=="function"&&t(a)},children:i.notify})]})};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:m.helpers.classNameConcat(Ae["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(m.ToggleSize.Wrapper,{...a,disabled:!1,outOfStock:e,size:n,onClick:s,children:[r.jsx(m.ToggleSize.DisabledAdornment,{}),r.jsx(m.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}=Ve();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=v.useCallback(p=>{const g=n===p?null:p;typeof c=="function"&&c(g),typeof t=="function"&&t(g)},[t,c,n]),d=v.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:()=>d(),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}=Ve();return r.jsxs("div",{...s,className:m.helpers.classNameConcat(Ae["product-card--selectors--size"],t),"data-mobile":a,children:[r.jsx("div",{className:Ae["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:Ae["product-card--selectors--size--button"],children:n})]})};Vu.displayName="ProductCard.SizeSelector";const Ko=({alt:e="",callback:t,more:n,total:o=4,src:s,url:a,...i})=>r.jsxs(m.ToggleStyle.Wrapper,{...i,onClick:()=>{typeof t=="function"&&t(a)},children:[r.jsx(m.ToggleStyle.DisabledAdornment,{}),r.jsxs(m.ToggleStyle.Texture,{children:[s&&r.jsx(Ie.Image,{alt:e??s,src:s,height:34,width:34}),n&&r.jsx(m.TextStructure.DivWrapper,{className:Ae["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}=Ve(),{triggerSelectItemEventRef:c}=le();return r.jsxs("div",{...a,children:[e,Array.isArray(n)&&n.slice(0,o).map((l,u)=>r.jsx(Ko,{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(Ko,{size:s,total:n.length-o,more:!0})]})},Ku=({callback:e,className:t,data:n,images:o=[],findTexture:s,...a})=>{const{CONSTANTS:i}=Ve(),c=s||i.TEXTURE_IMAGE,l=o==null?void 0:o.find(u=>c.includes(u.alternateName));return r.jsx(jg,{...a,callback:e,className:m.helpers.classNameConcat(Ae["product-card--selectors--style"],t),data:n,size:"x-small",children:l&&r.jsx(Ko,{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}=Ve();l.current.priceInfo={price:s,listPrice:a};const u=U.formatPriceToCurrency(a,t),f=U.formatPriceToCurrency(s,t),h=U.formatPriceToCurrency(c??0),d=o?"horizontal":"stacked";return r.jsx("div",{...n,className:m.helpers.classNameConcat(Ae["product-card--price"],e),"data-mobile":o,children:r.jsx(m.ProductInfo.Root,{size:"small",layout:d,children:r.jsxs(m.ProductInfo.Wrapper,{size:"small",layout:d,children:[r.jsx(m.ProductInfo.ValuesWrapper,{children:f!==u?r.jsxs(r.Fragment,{children:[r.jsx(m.ProductInfo.Price,{label:"originalPrice",value:u,size:"small"}),r.jsx(m.ProductInfo.Price,{label:"discountPrice",value:f,size:"small"})]}):r.jsx(m.ProductInfo.Price,{label:"defaultPrice",value:f,size:"small"})}),i&&i>1&&c?r.jsx(m.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}}=Ve();return r.jsxs("div",{className:m.helpers.classNameConcat(Ae["product-card--title"],t),children:[r.jsx("div",{className:Ae["product-card--title--tag"],children:e?r.jsx(m.Tag,{size:"small",title:e.value,variant:"quaternary",adornment:{start:e.enableIcon&&e.icon?r.jsx(m.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:Ae["product-card--title--content"],children:n&&r.jsx(m.TextStructure.Root,{children:r.jsx(m.TextStructure.DivWrapper,{children:r.jsx("h3",{children:n})})})})]})};Yu.displayName="ProductCard.Title";const Qu=({className:e,url:t,poster:n,...o})=>{const{element:s}=Ve();return v.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:m.helpers.classNameConcat(Ae["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:m.helpers.classNameConcat(Ae[`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(m.TextStructure.Root,{children:r.jsxs(m.TextStructure.DivWrapper,{children:[r.jsx("h2",{className:m.helpers.classNameConcat("typography-style-body-md",U.responsive["responsive-mobile-flex"]),children:e}),r.jsx("h2",{className:m.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}=m.Carousel.useCarousel({itemsPerPage:a,gap:10,loop:!0,direction:"row"}),f=v.Children.toArray(e).length;return s||f>=4?r.jsxs(m.Carousel.Root,{innerRef:d=>{i(d)},className:St.carousel,children:[r.jsxs("div",{className:St["custom-controllers"],children:[o&&r.jsx(qa,{title:o}),a<f&&r.jsxs(m.Carousel.Controller,{className:St["controllers-arrows-bullets"],children:[r.jsxs(m.Carousel.Arrows,{children:[r.jsx(m.Button,{variant:"tertiary",onClick:()=>c==null?void 0:c.prevPage(),adornment:{start:r.jsx(m.Icon,{name:t.arrow_left})}}),r.jsx(m.Button,{variant:"tertiary",onClick:()=>c==null?void 0:c.nextPage(),adornment:{start:r.jsx(m.Icon,{name:t.arrow_right})}})]}),!s&&a>2&&r.jsx(m.Carousel.Bullets,{page:u.currentPage,total:u.totalPages,onBulletClick:d=>c==null?void 0:c.navigateTo(d)})]})]}),r.jsx(m.Carousel.Body,{children:v.Children.map(e,(d,p)=>r.jsx(m.Carousel.Item,{style:{...l,overflow:"hidden"},children:d},`${o}_${p}`))})]}):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=v.useRef(null),{getAvailableProductTag:c}=ot(),{availability:{status:l}}=t,u=h=>{const d=h.filter(p=>!a.CONSTANTS.TEXTURE_IMAGE.includes(p.keywords));return n?d.splice(0,2):d},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=v.useMemo(()=>Mh(n),[n]),{isMobile:a}=ce(),{addItemsToCart:i}=Ee(),{sendDataLayerEvent:c}=le(),{getAvailableProductTag:l}=ot(),[u,f]=v.useState({totalPrice:0,products:{}}),h=()=>{const p=Object.values(u.products);i(p),c({functionKey:"skuEvents",data:{event:"add_to_cart",commonData:{products:p.map(g=>{const y=s.find(_=>_.node.id===g.productId);return y==null?void 0:y.node})},supportData:{selectedSkus:p,price:u.totalPrice}}})},d=({selectedProduct:p,productId:g})=>{const y=Dh({selectedProduct:p,productId:g,prevState:u,mainSellerId:e.StoreConfig_MainSellerId});f(y)};return v.useEffect(()=>{if(!t||s.length===0)return;const p=e.BUY_PACKAGE.header.title;c({functionKey:"productListEvent",data:{event:"view_item_list",commonData:{products:s},customData:{item_list_name:p},outsideEcommerceData:{item_list_name:p}}})},[t]),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:p},g)=>{var b,S,x;const y=l(p.cluster.highlights),{availability:{status:_}}=p;return _?r.jsxs(xe.Root,{item:{...p,image:Is.helpers.product.getFirstImages({images:p.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:p,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:(x=y.institucional)==null?void 0:x.icon}}),r.jsx(xe.Actions,{children:r.jsx(xe.SizeSelector,{callback:j=>d({selectedProduct:j,productId:p.id})})})]})]},p.id):null})})}),r.jsx("div",{className:lt["add-cart-container"],children:r.jsx(Lh,{handleAddAllToCart:h,selectedProducts:u,CONSTANTS:{BUY_BUTTON_LABELS:e.BUY_BUTTON_LABELS,BUY_PACKAGE:e.BUY_PACKAGE,FREIGHT_CALCULATION:e.FREIGHT_CALCULATION}})})]})},Ds={"btn-login":"_btn-login_yas63_12","btn-header":"_btn-header_yas63_22","header-animation":"_header-animation_yas63_35"},$s=({id:e})=>{const{setIsOpen:t,cartStore:{items:n}}=Ee(),{handleSelectContent:o}=le(),{CONSTANTS:s}=Pe(),a=n.reduce((i,c)=>i+(c.quantity??0),0);return r.jsx(m.Header.SupportItem,{onClick:()=>{t(!0),o({content:"header:minicart"})},id:e,children:r.jsxs(m.Badge.AutoPositioner,{children:[r.jsx(m.Badge.Count,{count:a,size:"medium",variant:"primary",style:{backgroundColor:"black",display:a>0?"flex":"none"}}),r.jsx(m.Icon,{name:s.header.ICONS.bag,size:"medium"})]})})};$s.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}=Pe(),{handleSelectContent:t}=le(),{reset:n,updateValue:o}=Vt(),s=a=>{a?o(a):n()};return r.jsx(m.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(m.Header.CategoryItem,{className:Ds["btn-header"],value:a.submenuId??null,adornment:{start:r.jsx(m.Icon,{name:a.iconStart}),end:r.jsx(m.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}=Pe(),{setValue:n}=ms();return r.jsx(m.Header.SupportItem,{onClick:()=>{n(!0),e({content:"header:search"})},children:r.jsx(m.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"},$r=({children:e,eventData:t,observerOptions:n,callBackWhenVisible:o,stopOnIntersection:s=!0,className:a,...i})=>{const c=v.useRef(null),l=us(c,s,n),{sendDataLayerEvent:u}=le();return v.useEffect(()=>{l&&(typeof o=="function"&&o(),t&&u({...t}))},[l]),r.jsx("div",{...i,ref:c,className:m.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($r,{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 Xo={"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}=Pe();return r.jsxs("div",{...o,className:Xo["menu-categories"],children:[(l=n==null?void 0:n.subCategories)==null?void 0:l.map((u,f)=>{var p,g,y,_;const h=u.listCollapseDesk&&!((p=u.see_all)!=null&&p.link)?{expandAfterRowsQty:u.rowsToShowDesk}:{},d=u.listCollapseDesk&&!((g=u.see_all)!=null&&g.link)?{expansivesAdornments:{open:c.header.ICONS.add,close:c.header.ICONS.minus},expansivesLabels:{open:c.header.COMPONENT_LIST.listExpandLabel,close:c.header.COMPONENT_LIST.listCollapseLabel},iconSize:"x-small"}:{adornment:{end:r.jsx(m.Icon,{name:c.header.ICONS.arrow_right,size:"small"})}};return r.jsxs(m.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(m.TextStructure.Root,{children:r.jsx(m.TextStructure.DivWrapper,{children:r.jsx("h2",{children:u.label})})})}),r.jsx(m.ComponentList.List,{columns:1,...h,className:Xo["submenu-categories"],children:(y=u.items)==null?void 0:y.map((b,S)=>r.jsx(m.ComponentList.ListItem,{id:`list-item-${b.label}-${S}`,children:r.jsx(rt,{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(m.ComponentList.Support,{...d,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(m.Utils.Divider,{size:"small",direction:"vertical"})]})};nd.displayName="Menu.Categories";const od=({children:e,dividerOnBottom:t=!0,...n})=>{const{CONSTANTS:o}=Pe();return r.jsxs(r.Fragment,{children:[r.jsx("div",{...n,className:Xo["menu-desktop"],style:{...n.style,justifyContent:o.header.ALIGNMENT_MENU},children:e}),t&&r.jsx(m.Utils.Divider,{size:"small"})]})};od.displayName="Menu.MenuRoot";const Cn={Root:od,Categories:nd,Thumbnail:rd},sd=()=>{const{headerData:e,CONSTANTS:t}=Pe(),n=Zc(),{reset:o}=Vt();return r.jsx(m.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}=Pe();return r.jsx(De,{href:"/favoritos",children:r.jsx(m.Header.SupportItem,{onClick:()=>e({content:"header:wishlist"}),children:r.jsx(m.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:m.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(m.Credits.Account,{...a,className:m.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:m.helpers.classNameConcat(Ue["user-menu--login"],e),"data-mobile":a,children:r.jsxs("div",{className:Ue["user-menu--login--content"],children:[r.jsx(m.TextStructure.Root,{children:r.jsxs(m.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:m.helpers.classNameConcat(Ue["user-menu--menu"],e),children:[Array.isArray(i)&&i.map((c,l)=>r.jsx("li",{children:r.jsx(rt,{href:c.href??"#",size:"small",disableUnderline:!0,adornments:{start:r.jsx(m.Icon,{name:c.icon??"delete"})},children:c.label})},l)),t?r.jsx("li",{children:r.jsx(rt,{href:`${s.secureSubdomain}/api/vtexid/pub/logout?scope=mariafilo&returnUrl=${encodeURIComponent(`${s.storeUrl}`)}`,size:"small",disableUnderline:!0,onClick:n,adornments:{start:r.jsx(m.Icon,{name:Wm(o)})},children:Um})}):r.jsx(r.Fragment,{})]})};dd.displayName="UserMenu.Menu";const fd=e=>{const t=v.useRef(null),n=v.useCallback(a=>{t.current&&!t.current.contains(a.target)&&e()},[e]),o=v.useCallback(a=>{t.current&&!t.current.contains(a.target)&&e()},[e]),s=v.useCallback(a=>{a.key==="Escape"&&e()},[e]);return v.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=v.createContext({}),kg=({children:e,delay:t=600,gap:n=20,isOpen:o,setIsOpen:s,target:a,...i})=>{const c=v.useRef(null),[l,u]=v.useState(!1),[f,h]=v.useState({left:0,top:0}),{ref:d}=fd(()=>{u(!0),typeof window<"u"&&(c.current=window.setTimeout(()=>{s(!1),u(!1)},t))});return v.useEffect(()=>{if(a&&(d!=null&&d.current)){const{left:p,top:g}=Og(d.current,a,n??0);h({left:p,top:g}),u(!1)}},[n,o,a,d]),r.jsx(pd.Provider,{value:v.useMemo(()=>({...i,...f,contentRef:d,isLeaving:l,isOpen:o,setIsOpen:s,setIsLeaving:u,target:a}),[i,f,d,l,o,s,u,a]),children:e})},md=()=>{const e=v.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(m.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(m.Modal.Header,{navigation:"top",className:Ue["modal-header-modifier"],children:r.jsx(m.Modal.Controls,{navigation:"top",isMobile:!0,className:Ue["modal-controls-modifier"]})}),r.jsx(m.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(m.Tooltip.Root,{arrow:"top-right",component:r.jsx("div",{...o,ref:s,children:t}),className:m.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},zr=({children:e,isOpen:t,setIsOpen:n,target:o,storeConfig:s})=>{var d,p,g;const{isMobile:a}=ce(),{CONSTANTS:i}=Pe(),c=Ot(),l=()=>{window.location.href=`${s.secureSubdomain}/api/io/login?returnUrl=${encodeURIComponent(`${s.storeUrl}?ab_test=v2`)}`},u=!!((d=c.user)!=null&&d.userId),{cashback:f,credits:h}=v.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,((p=c==null?void 0:c.user)==null?void 0:p.firstName)??((g=c==null?void 0:c.user)==null?void 0:g.email)),children:!u&&r.jsx(m.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(m.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})};zr.displayName="UserMenu";const _d=({storeConfig:e})=>{const{CONSTANTS:t,userMenuDesktopRef:n}=Pe(),{handleSelectContent:o}=le(),{reset:s}=Vt(),{setValue:a}=gs(),i=hs(),c=v.useRef(null);return r.jsxs(r.Fragment,{children:[r.jsxs(m.Header.Wrapper,{children:[r.jsx(m.Header.Logo,{style:{width:"100%"},children:r.jsx(De,{href:"/",onMouseEnter:s,children:r.jsx(m.Icon,{name:t.header.ICONS.logo,size:"x-large",onClick:()=>{o({content:"header:logo"})}})})}),r.jsx(td,{}),r.jsxs(m.Header.Support,{onMouseEnter:s,style:{justifyContent:"flex-end"},children:[r.jsx(Rg,{}),r.jsx(zr,{isOpen:i,setIsOpen:a,target:c.current,storeConfig:e,children:r.jsx(m.Header.SupportItem,{onClick:()=>{a(!0),o({content:"header:user_menu"})},className:Ds["btn-login"],innerRef:n,children:r.jsx(m.Icon,{name:t.header.ICONS.person,size:"medium"})})}),r.jsx(ad,{}),r.jsx($s,{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(m.Banner.Container,{children:[r.jsx(m.Banner.ImageWrapper,{children:r.jsx(Ie.Image,{alt:t??n,height:128,src:n,width:343,unoptimized:!0})}),r.jsx(m.Banner.Slot,{verticalAlignment:"end",horizontalAlignment:"center",children:r.jsx(m.TextStructure.Root,{children:r.jsx(m.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}=Pe();return r.jsx(m.Button,{...t,adornment:{end:r.jsx(m.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(rt,{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}=Pe();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(m.TextStructure.Root,{children:r.jsx(m.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(m.ComponentList.Support,{adornment:{end:r.jsx(m.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=v.createContext({}),Lg=({children:e})=>{const[t,n]=v.useState(null),o=v.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=()=>v.useContext(Sd),wd=e=>{const{router:t}=_e(),{headerData:n}=Pe(),{handleSelectContent:o}=le(),{currentCategory:s,setCurrentCategory:a}=Pd(),i=v.useRef(null),c=()=>{if(i.current){const d=i.current;d&&(a(null),d==null||d.click())}},l=(d,p)=>{o({content:`menu:${d}`}),t.push(p),c()},u=(d,p)=>{o({content:`menu:${d}:${p}`}),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:[];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,p)=>v.createElement(qt.Banner,{...d,key:p,onClick:()=>l(d.label,d.link)},d.mobileBannerAlt))})}),r.jsx("div",{className:Fe["menu--categories"],children:f.map((d,p)=>r.jsx(qt.Category,{label:d.label,onClick:()=>a(d.submenuId??null)},p))})]}),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 Mg={"menu--header":"_menu--header_1ozdf_1"},Ed=()=>{var s;const{headerData:e}=Pe(),{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:Mg["menu--header"],children:[r.jsx(m.Button,{"data-out":!o,iconNameStart:"arrow-left",mode:"inverse",onClick:()=>n(null)}),o&&r.jsx(m.TextStructure.Root,{children:r.jsx(m.TextStructure.DivWrapper,{alignContent:"center",children:r.jsx("h2",{className:"typography-style-body-lg",children:o==null?void 0:o.label})})}),r.jsx(m.Button,{iconNameStart:"close","data-close":!0,"data-only":!o,mode:"inverse",onClick:()=>n(null)})]})};Ed.displayName="Menu.Mobile.Header";var Yo={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._(v).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 p}});const n=ke._(v),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 x(){S();const P=n.default.useContext(o.LoadableContext);P&&Array.isArray(_.modules)&&_.modules.forEach(E=>{P(E)})}function j(P,E){x();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 d(g,y){let _=[];for(;g.length;){let b=g.pop();_.push(b(y))}return Promise.all(_).then(()=>{if(g.length)return d(g,y)})}h.preloadAll=()=>new Promise((g,y)=>{d(a).then(g,y)}),h.preloadReady=g=>(g===void 0&&(g=[]),new Promise(y=>{const _=()=>(c=!0,y());d(i,g).then(_,_)})),typeof window<"u"&&(window.__NEXT_PRELOADREADY=h.preloadReady);const p=h}(Sn)),Sn}(function(e,t){Object.defineProperty(t,"__esModule",{value:!0});function n(f,h){for(var d in h)Object.defineProperty(f,d,{enumerable:!0,get:h[d]})}n(t,{noSSR:function(){return l},default:function(){return u}});const o=ke,s=o._(v),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 d=h.loading;return()=>s.default.createElement(d,{error:null,isLoading:!0,pastDelay:!1,timedOut:!1})}function u(f,h){let d=a.default,p={loading:_=>{let{error:b,isLoading:S,pastDelay:x}=_;if(!x)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?p.loader=()=>f:typeof f=="function"?p.loader=f:typeof f=="object"&&(p={...p,...f}),p={...p,...h};const g=p.loader,y=()=>g!=null?g().then(c):Promise.resolve(c(()=>null));return p.loadableGenerated&&(p={...p,...p.loadableGenerated},delete p.loadableGenerated),typeof p.ssr=="boolean"&&!p.ssr?(delete p.webpack,delete p.modules,l(d,p)):d({...p,loader:y})}(typeof t.default=="function"||typeof t.default=="object"&&t.default!==null)&&typeof t.default.__esModule>"u"&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)})(Yo,Yo.exports);var Fg=Yo.exports,Bg=Fg;const Rd=kr(Bg),Pr={"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}=xs(),{CONSTANTS:o}=Pe();return r.jsxs(m.Modal.RootWithoutPortal,{className:Pr["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(m.Modal.Body,{className:Pr["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(m.Button,{...n,"data-close":!0,size:"small",variant:"tertiary",children:e}),!t&&r.jsx(m.Utils.Divider,{direction:"vertical",size:"small",className:Pr.divider})]});Nd.displayName="Menu.NavigationBarItem";const Id=()=>{const{setUserMenuIsOpen:e}=xs(),{handleSelectContent:t}=le(),{CONSTANTS:n}=Pe(),{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(m.Card,{id:"menu-navigationbar",shadow:!0,className:Pr["menu--navigation-bar"],style:{zIndex:n.header.Z_INDEX_WAR.menu_mobile_navigation_bar},children:Array.isArray(s)&&s.map((a,i)=>v.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=v.useRef(null),{CONSTANTS:o}=Pe(),{MENU_NAVIGATION_BAR_ALLOWED:s,ICONS:a}=o.header,{handleSelectContent:i}=le(),{setValue:c}=ms(),{setValue:l}=tl(),{setValue:u}=gs(),f=hs(),h=el(),d=nl();return r.jsxs(r.Fragment,{children:[r.jsxs(m.Header.Wrapper,{children:[r.jsx(m.Header.Logo,{style:{width:"100%"},children:r.jsx(De,{href:"/",children:r.jsx(m.Icon,{name:a.logo,size:"x-large",onClick:()=>{i({content:"header:logo"})}})})}),r.jsxs(m.Header.Support,{children:[r.jsx(m.Header.SupportItem,{onClick:()=>{c(!0),i({content:"header:search"})},children:r.jsx(m.Icon,{name:a.search,size:"medium"})}),r.jsx($s,{}),r.jsxs(m.Header.SupportItem,{onClick:()=>l(!0),children:[r.jsx("span",{ref:n}),r.jsx(m.Icon,{name:a.menu,size:"medium"})]})]})]}),r.jsx(t,{setModalIsOpen:c,isOpen:d,recommendations:!1,trends:!0}),r.jsx(gl,{menuIsOpen:h,setMenuIsOpen:l,userMenuIsOpen:h,setUserMenuIsOpen:u,children:r.jsx(zr,{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=v.createContext({}),Ug=({children:e})=>{const{sendDataLayerEvent:t}=le(),{cartStore:n,isOpen:o}=Ee();v.useEffect(()=>{o&&t({functionKey:"viewCartEvent",data:{commonData:{cartStore:n}}})},[o]),v.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=v.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(m.SnackBar.Structure,{size:"medium",children:[r.jsx(m.SnackBar.Content,{title:t}),r.jsxs(m.SnackBar.Support,{children:[typeof n=="function"&&r.jsx(m.Button,{onClick:()=>{n(),i()},size:"small",variant:"tertiary",children:"Desfazer"}),r.jsx(m.Button,{iconNameStart:s.close,iconSize:"small",onClick:()=>i(),variant:"tertiary"})]})]})},e)};Od.displayName="MiniCart.Notify.Item";const kd=({ICONS:e})=>{const t=fs(),{removeNotification:n}=ps(),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(m.Button,{...s,adornment:{end:r.jsx(m.Icon,{name:`favorite-${a.includes(c)?"true":"false"}`,size:"small"})},onClick:()=>{i(c),a.includes(c)||t({texture:"mini-cart-wishlist",title:`${o.messages.add_wishlist}`},l,()=>i(c)),e(a.includes(c)?"remove_from_wishlist":"add_to_wishlist","productEvents")},children:o.messages.add_wishlist_button})},Ld=({handleSendEvent:e,product:t,ICONS:n,MINICART_CONFIG:o,...s})=>{const{addToCart:a,removeToCart:i}=Ee(),{bundleItems:c=[],id:l,uniqueId:u,seller:f,offerings:h,quantity:d}=t,p=(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:p,ICONS:n,MINICART_CONFIG:o}),r.jsx(m.Button,{...s,adornment:{end:r.jsx(m.Icon,{name:n.delete,size:"small"})},variant:"secondary",state:"danger",onClick:()=>{p({texture:"mini-cart",title:`${o.messages.remove}`},d),e("remove_from_cart","skuEvents")},children:o.messages.remove_button})]}),o.has_gift_option&&r.jsx(Ct.Gift,{uniqueId:u,bundleItems:c,offerings:h,ICONS:n,MINICART_CONFIG:o})]})};Ld.displayName="MiniCart.Card.Actions";const Md=({bundleItems:e,offerings:t,uniqueId:n,ICONS:o,MINICART_CONFIG:s})=>{const[a,i]=v.useState(!1),{toggleGiftItemCart:c}=Ee(),l=()=>{if(t instanceof Object&&Array.isArray(t)){const[h]=t;if(h){i(!0);const d=e.some(p=>p.id===h.id);c(n,String(h.id),d).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(m.Checkbox,{adornment:r.jsx(m.Icon,{name:o.check}),checked:!!f,disabled:a,label:s.messages.giftPackage,onChange:l})}):null};Md.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(m.Tag,{variant:"quaternary",title:n,style:{textTransform:"uppercase"},children:n}),r.jsx("p",{className:m.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(m.ProductInfo.Root,{children:r.jsx(m.TextStructure.Root,{children:r.jsx(m.TextStructure.DivWrapper,{className:de["mc--card--price"],children:r.jsx(m.ProductInfo.Wrapper,{className:de["mc--card--price--details"],size:"small",layout:"horizontal",children:t&&e!==t?r.jsxs(r.Fragment,{children:[r.jsx(m.ProductInfo.Price,{label:"originalPrice",value:U.formatPriceToCurrency(t),size:"small"}),r.jsx(m.ProductInfo.Price,{label:"discountPrice",value:U.formatPriceToCurrency(e),size:"small"})]}):r.jsx(m.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]=v.useState(""),a=v.useRef(null),{cartStore:{options:i}}=Ee(),c=e.itemOffered.isVariationOf.productGroupID,l=v.useCallback(()=>{var h;const f=(h=i==null?void 0:i.find(d=>d.id===c))==null?void 0:h.texture;if(f){s(f);return}fetch("/api/catalog/product/info",{method:"POST",priority:"low",body:JSON.stringify({ids:[c]})}).then(d=>d.json()).then(d=>{const p=d.data[0].items.find(g=>g.itemId===e.id);if(p){const g=p.images.find(y=>t.includes(y.imageLabel));if(g!=null&&g.imageUrl){s(g.imageUrl);return}s(p.images[0].imageUrl)}}).catch(d=>{console.error(d)})},[i,c,e.id]);return v.useEffect(()=>{if(!a.current)return;new IntersectionObserver(l).observe(a.current)},[l]),r.jsx("div",{ref:a,children:r.jsx(m.ToggleStyle.Wrapper,{size:"small",style:n,children:r.jsx(m.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(m.Utils.Row,{alignItems:"center",children:[r.jsx(Fd,{product:e,TEXTURE_IMAGE:n,TOGGLE_STYLE_MODIFIER:o}),r.jsx(m.Utils.Divider,{direction:"vertical",size:"small",style:{height:24}}),s&&r.jsx(m.ToggleSize.Wrapper,{size:"small",variation:"fill",className:de["mc-container-actions--toggle-size-modifier"],children:r.jsx(m.ToggleSize.Text,{children:s})})]})};Bd.displayName="MiniCart.Card.Sku";const Ct={Actions:Ld,Gift:Md,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,d;const{sendDataLayerEvent:l}=le(),u=Kg(n),f=(p,g)=>{const y={commonData:{...n,...u},customData:{index:t},event:p};if(g==="skuEvents"){const _={...n,...u};y.supportData={selectedSkus:[_]},y.commonData.products=[_]}l({functionKey:g,data:y})};return r.jsxs("div",{className:m.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:(d=n.itemOffered)==null?void 0:d.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(m.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:m.helpers.classNameConcat(de["mc--cashback"],de[`mc--cashback--${e}`]),children:[r.jsx(m.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}}=Ee(),[l,u]=v.useState(!1),[f,h]=v.useState(!1),d=v.useCallback(()=>{let _="";return e==="coupon"?_=(i==null?void 0:i.coupon)??"":_=String((c==null?void 0:c.value)??""),_.toUpperCase()??""},[i,c,e]),[p,g]=v.useState(!!d()),y=async _=>{h(!0),!!d()&&(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(Le.Field,{hasError:l,hasSuccess:p,isLoading:f,onHandler:y,type:e,title:e==="coupon"?`${n.messages.descount_cupom_placeholder}`:`${n.messages.sellers_code_placeholder}`,value:d(),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(m.Utils.Column,{alignContent:"center",alignItems:"center",gap:"24px",className:de["mc--body--empty--feedback"],children:[r.jsx(m.TextStructure.Root,{children:r.jsx(m.TextStructure.DivWrapper,{children:r.jsxs("p",{className:`typography-style-body-xs ${de["mc--body--empty--text"]}`,children:[t.messages.empty_card," "]})})}),r.jsx(m.Button,{variant:"tertiary",size:"large",onClick:()=>s(),"data-close":!0,adornment:{end:r.jsx(m.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]=v.useState(i);v.useEffect(()=>{t||u(i)},[i,t]);const f=()=>t?r.jsx(m.Icon,{name:c.delete_circle}):String(i).length&&o?r.jsx(m.Icon,{name:c.check_circle}):null,h=()=>{if(s==="seller"){const y=String(i).includes(" - ")?String(i).split(" - ")[0]:l;u(y)}},d=()=>{if(s==="seller"){const y=String(i).includes(" - ")?i:l;u(y)}},p=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(m.TextField.Input,{adornment:{end:f()},mode:"over-label",label:a,feedback:e,value:l,type:"text",onFocus:h,onBlur:d,onChange:p,onKeyDown:g})};Gd.displayName="MiniCart.Field.Input";const Vd=({title:e,ICONS:t,MINICART_CONFIG:n,...o})=>{const s=v.useRef(null),{hasSuccess:a,hasError:i,isLoading:c,onHandler:l,type:u,value:f}=o,h=()=>i?"error":String(f).length&&a?"success":"none",d=v.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]),p=h();return r.jsx("div",{ref:s,children:r.jsx(m.TextField.Structure,{className:de["mc--field"],input:r.jsx(Gd,{...o,feedback:p,title:e,ICONS:t}),right:r.jsx(m.Button,{"data-has-success":!a,size:"medium",title:String(f).length&&a||i?"Remover":"Aplicar",onClick:()=>d(),disabled:c,children:String(f).length&&a||i?r.jsx(m.Icon,{name:"close",size:"small"}):`${n.messages.promo_code_button}`}),supportText:u==="cep"&&p==="success"?r.jsx(m.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}}=Ee();return r.jsxs(m.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(d=>{var p;return d.code==="withoutStock"&&((p=d.fields)==null?void 0:p.ean)===u.ean})!==void 0;return r.jsx(Le.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(Le.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}=Ee();if(o.items.length===0)return null;const s=()=>{var i;const a=new URLSearchParams({orderFormId:o.id,...((i=o.marketingData)==null?void 0:i.utmCampaign)&&{utm_campaign:o.marketingData.utmCampaign}});window.location.href=`${t.checkoutUrl}?${a.toString()}#/cart`};return r.jsxs(m.Modal.Footer,{className:de["mc--footer"],children:[e,r.jsx("div",{className:de["mc--footer--actions"],children:r.jsx(m.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(m.Accordion.Wrapper,{className:de["mc--discount"],children:[r.jsx(m.Accordion.Header,{id:"frete",title:"Frete",closeIndicator:r.jsx(m.Icon,{name:n.arrow_up,size:"medium"}),openIndicator:r.jsx(m.Icon,{name:n.arrow_down,size:"medium"}),className:m.helpers.classNameConcat(de["mc--discount--header"],t),startOpen:o.promotion_input_starts_open,children:r.jsx(m.TextStructure.Root,{children:r.jsxs(m.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(m.Accordion.Body,{className:de["mc--discount--body"],children:e}),r.jsx(m.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}=ot(),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(m.Tag,{variant:"primary",title:l.message,children:l.message}),r.jsx(m.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}}=Ee(),s=o.reduce((a,i)=>a+(i.quantity??0),0);return r.jsx(m.Modal.Header,{navigation:"top",className:de["mc--header"],children:r.jsxs(m.Modal.Controls,{navigation:"top",isMobile:!!n,children:[r.jsx(m.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(m.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}=Ee(),{sendDataLayerEvent:a}=le(),[i,c]=v.useState(!1),[l,u]=v.useState(!1),f=v.useCallback(()=>{var b;return((b=n==null?void 0:n.address)==null?void 0:b.postalCode)??""},[n]),[h,d]=v.useState(!!f()),p=()=>{d(!1),c(!1)},g=b=>{var S;if(typeof b=="object"&&(b!=null&&b.logisticsInfo))return(S=b.logisticsInfo)==null?void 0:S.reduce((x,j)=>{var T;const P=(T=j==null?void 0:j.slas)==null?void 0:T.find(w=>(w==null?void 0:w.id)===(j==null?void 0:j.selectedSla));if(!P)return x;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(x.shipping_tier===void 0)return x.shipping_tier=j==null?void 0:j.selectedSla,x.delivery_time=E.toString(),x.shipping=C,x.flag_retirada=(j==null?void 0:j.selectedDeliveryChannel)==="delivery"?"false":"true",x;const R=parseInt(x.delivery_time??"0");return E>R&&(x.delivery_time=E.toString()),x.shipping=(x.shipping??0)+C,x},{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(),p(),u(!1);return}if(!await y(b)){c(!0),d(!1),u(!1);return}try{const P=await o(b);if(c(!1),P){d(!0);const E=g(P);E&&a({functionKey:"readyEvents",data:{event:"search_zipcode",readyData:E}})}}catch{c(!0)}finally{u(!1)}};return r.jsx(Le.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}=ot(),t=(n=e==null?void 0:e.flagCart)==null?void 0:n.flagHeader;return t!=null&&t.value?r.jsx(m.Tag,{variant:"tertiary",title:t==null?void 0:t.value,size:"small",adornment:{start:t!=null&&t.enableIcon&&(t!=null&&t.icon)?r.jsx(m.Icon,{name:t==null?void 0:t.icon,style:{color:t==null?void 0:t.iconColor}}):null},style:{background:t==null?void 0:t.tagColor,color:t==null?void 0:t.textColor,width:"100%"},children:t==null?void 0:t.value}):null};tf.displayName="MiniCart.TagMessage";const Le={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}=Ee(),{isMobile:d}=ce();return r.jsxs(m.Modal.Root,{className:m.helpers.classNameConcat(de["minicart--modal-modifier"],l),isMobile:!0,isOpen:u,setIsOpen:f,style:{zIndex:i.modal},variant:d?"sideBottom":"sideRight",children:[r.jsx(Le.Header,{ICONS:e,MINICART_CONFIG:t}),r.jsx(Le.Body,{ICONS:e,MINICART_CONFIG:t,NAME_SPLIT_SYMBOL:n,PLP_NOT_RESULT:o,TEXTURE_IMAGE:s,TOGGLE_STYLE_MODIFIER:a,children:r.jsx(Le.TagMessage,{})}),r.jsxs(Le.Footer,{MINICART_CONFIG:t,storeConfig:c,children:[r.jsxs(Le.Discount,{ICONS:e,MINICART_CONFIG:t,children:[r.jsx(Le.CouponSeller,{type:"seller",ICONS:e,MINICART_CONFIG:t}),r.jsx(Le.CouponSeller,{type:"coupon",ICONS:e,MINICART_CONFIG:t}),r.jsx(Le.Shipping,{ICONS:e,MINICART_CONFIG:t})]}),r.jsx(Le.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}=Pe(),{header:{HEADER_CONFIGS:l,Z_INDEX_WAR:u},minicart:f}=c;return r.jsx(m.Header.Structure,{innerRef:a,adornment:{start:e},style:{position:"sticky",top:0,zIndex:u.header},className:Ds["header-animation"],children:r.jsxs(m.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(Lg,{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(Ts,{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]=v.useState(!1),f=v.useRef(null),h=()=>u(d=>!d);return r.jsxs("div",{className:ge.deliveryInfo,ref:f,children:[r.jsx(m.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(m.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(m.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(m.TextStructure.Root,{children:r.jsxs(m.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(m.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(m.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(m.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,I,z,k;const f=Rt(),h=Rt(W=>W.shipping),[d,p]=v.useState(),[g,y]=v.useState(!1),[_,b]=v.useState(!1),[S,x]=v.useState(!1),j=(I=(N=f.shippingData)==null?void 0:N.address)==null?void 0:I.postalCode,P=!(d!=null&&d.length)&&j?j:d,E=v.useRef(null),C=async W=>{const F=W.target.value.replace(/\D/g,"").slice(0,8);F.length>5?p(F.replace(/^(\d{5})(\d{1,3})/,"$1-$2")):p(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.")}},T=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){x(!0),setTimeout(()=>x(!1),1500);return}await R({target:{value:P}}),g||(T(),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(m.TextField.Structure,{title:"structure",style:{width:"100%"},input:r.jsx(m.TextField.Input,{defaultValue:(k=(z=f.shippingData)==null?void 0:z.address)==null?void 0:k.postalCode,label:l.messages.text_input_label,title:"textfield",value:d,sizeVariant:n,onMouseOver:()=>o?null:x(!0),onMouseOut:()=>o?null:x(!1),mode:"simple",onChange:C,onKeyDown:W=>{W.key==="Enter"&&w()},className:ge["input-modifier"],feedback:_?"error":"none"}),right:r.jsx(m.Button,{onClick:w,size:n,title:"button",children:g?r.jsx(m.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(rt,{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]=v.useState(""),[h,d]=v.useState([]),[p,g]=v.useState(""),[y,_]=v.useState(!1),b=x=>f(x),S=x=>{d(x),l({functionKey:"readyEvents",data:{event:"search_zipcode",readyData:{shippings:x.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})}),p?r.jsx(Wa,{size:s,message:p,setError:g}):h.length>0&&r.jsx(Wa,{size:s,message:c.freightConfig.messages.delivered_by,seller:a})]}),y&&!p?h.length>0&&r.jsxs(by,{children:[r.jsx(jy,{children:h.filter(({id:x})=>!x.includes("Retirada")).map(x=>r.jsx(xy,{id:x.id,value:U.freightParsePrice({valueInCents:x.price,hasFree:!1,freeTaxMessage:c.freightConfig.messages.free_tax}),title:x.name,paragraph:`${c.freightConfig.messages.prefix_days}${Sy(x.shippingEstimate)}`,radioValue:u,changeValue:b},x.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(m.BreadCrumb.Item,{adornment:{end:n&&r.jsx(m.Icon,{name:s.arrow_right})},children:n?r.jsx(rt,{href:t??"/",size:"medium",title:o,disableUnderline:!0,children:e}):e}),of=()=>{var a;const{state:e}=ze(),{ICONS:t}=Me(),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=Ml(o);return r.jsx("div",{className:gt["pcd-navigation--breadcrumb"],children:r.jsx(m.BreadCrumb.DivWrapper,{children:r.jsx(m.BreadCrumb.List,{children:Array.isArray(s)&&s.map((i,c)=>{var l,u;return v.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",Fr={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(m.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:Fr["sort-button"],children:e}),Oy=e=>r.jsx(m.RadioButton.Radio,{...e}),ky=({children:e,className:t,name:n,...o})=>r.jsx(m.RadioButton.Group,{...o,name:n||"sort-group",className:m.helpers.classNameConcat(Fr["sort-list"],t),children:e}),Ly=({children:e,className:t,shadow:n=!0,padding:o="small",height:s="fit-content",...a})=>r.jsx(m.Card,{...a,shadow:n,className:m.helpers.classNameConcat(Fr["sort-list-wrapper"],t),padding:o,height:s,children:e}),af=v.forwardRef(({children:e,className:t,...n},o)=>r.jsx("div",{...n,ref:o,className:m.helpers.classNameConcat(Fr.sort,t),children:e}));af.displayName="SortRoot";const Br=({handleSelectValue:e,sortListOpen:t,setSortListOpen:n,searchParams:o,ICONS:s,...a})=>{var d;const i=(d=o==null?void 0:o.get("sort"))==null?void 0:d.replace(":","_"),[c,l]=v.useState(i),{sendDataLayerEvent:u}=le();v.useEffect(()=>{l(i||void 0)},[i]);const{ref:f}=fd(()=>n(!1)),h=p=>{const g=p.target.value;l(g),typeof e=="function"&&e(g),u({functionKey:"filterEvent",data:{customData:{ordering:Mt.options[g]}}}),n(!1)};return r.jsxs(af,{...a,ref:f,children:[r.jsx(Ty,{btnAdornment:{listOpen:r.jsx(m.Icon,{name:s.arrow_up,size:"small"}),listClosed:r.jsx(m.Icon,{name:s.arrow_down,size:"small"})},sortListOpen:t,onClick:()=>n(!t),children:c?Mt.options[c]:Mt.placeholder},"sort-button"),t&&r.jsx(Ly,{children:r.jsx(ky,{name:"sort-group",value:c??"",onChange:h,children:Object.keys(Mt.options).map(p=>r.jsx(Oy,{label:Mt.options[p],value:p},p))})})]})};Br.displayName="Sort";const cf=v.createContext({}),My=({children:e,...t})=>{const[n,o]=v.useState(!1);return r.jsx(cf.Provider,{value:v.useMemo(()=>({...t,openOrderBy:n,setOpenOrderBy:o}),[t,n,o]),children:e})},Dy=()=>{const e=v.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}=Me();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(Br,{handleSelectValue:c=>t(c??"release_desc"),sortListOpen:e,setSortListOpen:o,ICONS:s,searchParams:i}),r.jsx(m.Button,{adornment:{end:r.jsx(m.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=v.useRef(null);return r.jsx(My,{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 zs=({key:e,PLP_FILTERS:t})=>t.some(n=>n.key===e)?e==="cores-filtraveis":!1,Fs=({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},Qo=({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:zs,createTagPrice:Qo,getAbsoluteMinMax:mf,getColor:Fs,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(nt.Item,{columns:e,facet:i,onToggleFacet:s,CONSTANTS:t},i.key)),!((a=o.facets)!=null&&a.length)&&r.jsx(nt.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(m.TextStructure.DivWrapper,{children:[r.jsx("h4",{children:e.title}),r.jsx("p",{children:e.subtitle})]}),r.jsx(m.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(nt.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(nt.Sizes,{onToggleFacet:n,values:t.values,PLP_SIZE_ORDER:o.PLP_SIZE_ORDER});if(t.key==="category-2")return r.jsx(nt.Toggle,{columns:e,facetKey:t.key,onToggleFacet:n,values:t.values,ICONS:o.ICONS})}return t.__typename==="FacetRange"?r.jsx(nt.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(m.Accordion.Wrapper,{style:{width:"100%"},children:[r.jsx(m.Accordion.Header,{id:t.key,closeIndicator:r.jsx(m.Icon,{name:o.ICONS.arrow_up}),openIndicator:r.jsx(m.Icon,{name:o.ICONS.arrow_down}),children:r.jsx(m.TextStructure.Root,{children:r.jsx(m.TextStructure.DivWrapper,{children:r.jsx("h4",{className:"typography-style-body-sm",children:ff({key:t.key,PLP_FILTERS:o.PLP_FILTERS})})})})}),r.jsx(m.Accordion.Body,{children:i()})]})})};_f.displayName="Filter.Item";const vf=({onToggleFacet:e,values:t,PLP_FILTERS:n,PLP_FILTERS_COLORS:o,...s})=>r.jsx(Ye.Root,{...s,children:r.jsx(Ye.List,{children:Array.isArray(t)&&t.map(({key:a,selected:i,value:c})=>r.jsx(Ye.Option,{active:i,"data-color":zs({key:a,PLP_FILTERS:n}),fill:Fs({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(m.Slider.SliderDual,{format:"price",initialValue:[c<a?a:c,l>i?i:l],min:a,max:i,type:"dual",step:1,onFinish:h=>{var d,p;h&&s({key:"price",value:`${(d=h.range)==null?void 0:d.min}:${(p=h.range)==null?void 0:p.max}`})},children:[r.jsx(m.TextStructure.Root,{children:r.jsx(m.TextStructure.DivWrapper,{children:r.jsx("p",{"data-min-value":!0})})}),r.jsx(m.TextStructure.Root,{children:r.jsx(m.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(Ye.Root,{...o,children:r.jsx(Ye.List,{children:Array.isArray(s)&&s.map(({key:a,selected:i,value:c})=>r.jsx(Ye.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(m.Checkbox,{label:(i==null?void 0:i.name)??"",adornment:r.jsx(m.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(m.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(m.Modal.Root,{className:m.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(m.Modal.Header,{navigation:"top",children:[r.jsx(m.Modal.Controls,{navigation:"top",isMobile:n,children:r.jsx(m.Button,{"data-close":!0,iconNameStart:s.close,size:"small",variant:"tertiary",style:{marginLeft:"auto"}})}),r.jsx(m.Modal.Title,{navigation:"top",title:o})]}),r.jsxs(m.Modal.Body,{style:{width:500},children:[r.jsx("div",{className:We["filter--modal--body"],children:e}),r.jsx(nt.Loading,{})]}),r.jsx(m.Modal.Footer,{children:r.jsxs("div",{className:We["filter--modal--footer"],children:[r.jsx(m.Button,{"data-close":!0,size:"large",variant:"primary",children:(f=i.facets)!=null&&f.length?"ver resultados":"fechar"}),r.jsx(m.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(nt.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(m.Tag,{title:a==="price"?Qo({value:i}):i,adornment:{end:r.jsx(m.Icon,{name:e.close,size:"x-small"})},colorSquare:Fs({value:i,PLP_FILTERS_COLORS:t}),onClick:()=>s({key:a,value:i}),squareShow:zs({key:a,PLP_FILTERS:n}),size:"medium",variant:"primary",children:a==="price"?Qo({value:i}):i},i))})})};wf.displayName="Filter.Selected";const nt={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}=Me();return r.jsx(m.Tag,{title:(t==null?void 0:t.key)==="price"?Ga({value:t.value}):t.value.toUpperCase(),adornment:{end:r.jsx(m.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(m.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={},Bs={},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,d=f&&h?"viewBox='0 0 "+f+" "+h+"'":"",p=d?"none":l==="contain"?"xMidYMid":l==="cover"?"xMidYMid slice":"none";return"%3Csvg xmlns='http://www.w3.org/2000/svg' "+d+"%3E%3Cfilter id='b' color-interpolation-filters='sRGB'%3E%3CfeGaussianBlur stdDeviation='"+u+"'/%3E%3CfeColorMatrix values='1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 100 -1' result='s'/%3E%3CfeFlood x='0' y='0' width='100%25' height='100%25'/%3E%3CfeComposite operator='out' in='s'/%3E%3CfeComposite in2='SourceGraphic'/%3E%3CfeGaussianBlur stdDeviation='"+u+"'/%3E%3C/filter%3E%3Cimage width='100%25' height='100%25' x='0' y='0' preserveAspectRatio='"+p+"' style='filter: url(%23b);' href='"+c+"'/%3E%3C/svg%3E"}})(Nf);var qr={};(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}})(qr);(function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"getImgProps",{enumerable:!0,get:function(){return p}});const t=Qt,n=Nf,o=qr,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 d(g){let{config:y,src:_,unoptimized:b,width:S,quality:x,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((T,w)=>P({config:y,src:_,quality:x,width:T})+" "+(C==="w"?T:w+1)+C).join(", "),src:P({config:y,src:_,quality:x,width:E[R]})}}function p(g,y){let{src:_,sizes:b,unoptimized:S=!1,priority:x=!1,loading:j,className:P,quality:E,width:C,height:R,fill:T=!1,style:w,onLoad:N,onLoadingComplete:I,placeholder:z="empty",blurDataURL:k,fetchPriority:W,layout:q,objectFit:F,objectPosition:G,lazyBoundary:V,lazyRoot:B,...J}=g;const{imgConf:A,showAltText:O,blurComplete:D,defaultLoader:X}=y;let ne,ee=A||o.imageConfigDefault;if("allSizes"in ee)ne=ee;else{const K=[...ee.deviceSizes,...ee.imageSizes].sort((Re,Q)=>Re-Q),me=ee.deviceSizes.sort((Re,Q)=>Re-Q);ne={...ee,allSizes:K,deviceSizes:me}}let M=J.loader||X;delete J.loader,delete J.srcSet;const te="__next_img_default"in M;if(te){if(ne.loader==="custom")throw new Error('Image with src "'+_+`" is missing "loader" prop.
|
|
5
|
+
Read more: https://nextjs.org/docs/messages/next-image-missing-loader`)}else{const K=M;M=me=>{const{config:Re,...Q}=me;return K(Q)}}if(q){q==="fill"&&(T=!0);const K={intrinsic:{maxWidth:"100%",height:"auto"},responsive:{width:"100%",height:"auto"}},me={responsive:"100vw",fill:"100vw"},Re=K[q];Re&&(w={...w,...Re});const Q=me[q];Q&&!b&&(b=Q)}let Z="",re=f(C),$=f(R),L,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(L=K.blurWidth,oe=K.blurHeight,k=k||K.blurDataURL,Z=K.src,!T){if(!re&&!$)re=K.width,$=K.height;else if(re&&!$){const me=re/K.width;$=Math.round(K.height*me)}else if(!re&&$){const me=$/K.height;re=Math.round(K.width*me)}}}_=typeof _=="string"?_:Z;let ie=!x&&(j==="lazy"||typeof j>"u");(!_||_.startsWith("data:")||_.startsWith("blob:"))&&(S=!0,ie=!1),ne.unoptimized&&(S=!0),te&&_.endsWith(".svg")&&!ne.dangerouslyAllowSVG&&(S=!0),x&&(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(T){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(x&&j==="lazy")throw new Error('Image with src "'+_+`" has both "priority" and "loading='lazy'" properties. Only one should be used.`);if(z!=="empty"&&z!=="blur"&&!z.startsWith("data:image/"))throw new Error('Image with src "'+_+'" has invalid "placeholder" property "'+z+'".');if(z!=="empty"&&re&&$&&re*$<1600&&(0,t.warnOnce)('Image with src "'+_+'" is smaller than 40x40. Consider removing the "placeholder" property to improve performance.'),z==="blur"&&!k){const K=["jpeg","png","webp","avif"];throw new Error('Image with src "'+_+`" has "placeholder='blur'" property but is missing the "blurDataURL" property.
|
|
6
6
|
Possible solutions:
|
|
7
7
|
- Add a "blurDataURL" property, the contents should be a small Data URL to represent the image
|
|
8
8
|
- Change the "src" property to a static import with one of the supported file types: `+K.join(",")+` (animated images not supported)
|
|
9
9
|
- Remove the "placeholder" property, effectively no blur effect
|
|
10
10
|
Read more: https://nextjs.org/docs/messages/placeholder-blur-data-url`)}if("ref"in J&&(0,t.warnOnce)('Image with src "'+_+'" is using unsupported "ref" property. Consider using the "onLoadingComplete" property instead.'),!S&&!te){const K=M({config:ne,src:_,width:re||400,quality:fe||75});let me;try{me=new URL(K)}catch{}(K===_||me&&me.pathname===_&&!me.search)&&(0,t.warnOnce)('Image with src "'+_+`" has a "loader" property that does not implement width. Please implement it or use the "unoptimized" property instead.
|
|
11
|
-
Read more: https://nextjs.org/docs/messages/next-image-missing-loader-width`)}for(const[K,me]of Object.entries({layout:q,objectFit:
|
|
11
|
+
Read more: https://nextjs.org/docs/messages/next-image-missing-loader-width`)}for(const[K,me]of Object.entries({layout:q,objectFit:F,objectPosition:G,lazyBoundary:V,lazyRoot:B}))me&&(0,t.warnOnce)('Image with src "'+_+'" has legacy prop "'+K+`". Did you forget to run the codemod?
|
|
12
12
|
Read more: https://nextjs.org/docs/messages/next-image-upgrade-to-13`);if(typeof window<"u"&&!u&&window.PerformanceObserver){u=new PerformanceObserver(K=>{for(const Re of K.getEntries()){var me;const Q=(Re==null||(me=Re.element)==null?void 0:me.src)||"",se=l.get(Q);se&&!se.priority&&se.placeholder==="empty"&&!se.src.startsWith("data:")&&!se.src.startsWith("blob:")&&(0,t.warnOnce)('Image with src "'+se.src+`" was detected as the Largest Contentful Paint (LCP). Please add the "priority" property if this image is above the fold.
|
|
13
|
-
Read more: https://nextjs.org/docs/api-reference/next/image#priority`)}});try{u.observe({type:"largest-contentful-paint",buffered:!0})}catch(K){console.error(K)}}}const pe=Object.assign(T?{position:"absolute",height:"100%",width:"100%",left:0,top:0,right:0,bottom:0,objectFit:
|
|
13
|
+
Read more: https://nextjs.org/docs/api-reference/next/image#priority`)}});try{u.observe({type:"largest-contentful-paint",buffered:!0})}catch(K){console.error(K)}}}const pe=Object.assign(T?{position:"absolute",height:"100%",width:"100%",left:0,top:0,right:0,bottom:0,objectFit:F,objectPosition:G}:{},O?{}:{color:"transparent"},w),ue=!D&&z!=="empty"?z==="blur"?'url("data:image/svg+xml;charset=utf-8,'+(0,n.getImageBlurSvg)({widthInt:re,heightInt:$,blurWidth:L,blurHeight:oe,blurDataURL:k||"",objectFit:pe.objectFit})+'")':'url("'+z+'")':null;let H=ue?{backgroundSize:pe.objectFit||"cover",backgroundPosition:pe.objectPosition||"50% 50%",backgroundRepeat:"no-repeat",backgroundImage:ue}:{};process.env.NODE_ENV==="development"&&H.backgroundImage&&z==="blur"&&k!=null&&k.startsWith("/")&&(H.backgroundImage='url("'+k+'")');const be=d({config:ne,src:_,unoptimized:S,width:re,quality:fe,sizes:b,loader:M});if(process.env.NODE_ENV!=="production"&&typeof window<"u"){let K;try{K=new URL(be.src)}catch{K=new URL(be.src,window.location.href)}l.set(K.href,{src:_,priority:x,placeholder:z})}return{props:{...J,loading:ie?"lazy":j,fetchPriority:W,width:re,height:$,decoding:"async",className:P,style:{...pe,...H},sizes:be.sizes,srcSet:be.srcSet,src:be.src},meta:{unoptimized:S,priority:x,placeholder:z,fill:T}}}})(Bs);var Zo={exports:{}},gr={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=v,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 d;c==null||(d=c.mountedInstances)==null||d.delete(i.children)}}),o(()=>(c&&(c._pendingUpdate=u),()=>{c&&(c._pendingUpdate=u)})),s(()=>(c&&c._pendingUpdate&&(c._pendingUpdate(),c._pendingUpdate=null),()=>{c&&c._pendingUpdate&&(c._pendingUpdate(),c._pendingUpdate=null)})),null}}(En)),En}var 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._(v).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._(v).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,x){for(var j in x)Object.defineProperty(S,j,{enumerable:!0,get:x[j]})}n(t,{defaultHead:function(){return h},default:function(){return b}});const o=ke,a=Nt._(v),i=o._(o_()),c=s_(),l=If(),u=a_(),f=Qt;function h(S){S===void 0&&(S=!1);const x=[a.default.createElement("meta",{charSet:"utf-8"})];return S||x.push(a.default.createElement("meta",{name:"viewport",content:"width=device-width"})),x}function d(S,x){return typeof x=="string"||typeof x=="number"?S:x.type===a.default.Fragment?S.concat(a.default.Children.toArray(x.props.children).reduce((j,P)=>typeof P=="string"||typeof P=="number"?j:j.concat(P),[])):S.concat(x)}const p=["name","httpEquiv","charSet","itemProp"];function g(){const S=new Set,x=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 T=E.key.slice(E.key.indexOf("$")+1);S.has(T)?C=!1:S.add(T)}switch(E.type){case"title":case"base":x.has(E.type)?C=!1:x.add(E.type);break;case"meta":for(let T=0,w=p.length;T<w;T++){const N=p[T];if(E.props.hasOwnProperty(N))if(N==="charSet")j.has(N)?C=!1:j.add(N);else{const I=E.props[N],z=P[N]||new Set;(N!=="name"||!R)&&z.has(I)?C=!1:(z.add(I),P[N]=z)}}break}return C}}function y(S,x){const{inAmpMode:j}=x;return S.reduce(d,[]).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 i.default.cloneElement(P,{key:C})})}function _(S){let{children:v}=S;const j=(0,i.useContext)(c.AmpStateContext),P=(0,i.useContext)(l.HeadManagerContext);return i.default.createElement(a.default,{reduceComponentsToState:y,headManager:P,inAmpMode:(0,u.isInAmpMode)(j)},v)}const b=_;(typeof t.default=="function"||typeof t.default=="object"&&t.default!==null)&&typeof t.default.__esModule>"u"&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)}(fr,fr.exports)),fr.exports}var wn={},Vi;function Xy(){return Vi||(Vi=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"ImageConfigContext",{enumerable:!0,get:function(){return s}});const r=Oe._(x),o=$r,s=r.default.createContext(o.imageConfigDefault);process.env.NODE_ENV!=="production"&&(s.displayName="ImageConfigContext")}(wn)),wn}var En={},Rn={},An={exports:{}};const Yy=Eh(U.__viteBrowserExternal);var In={},Nn={},Tn,Gi;function Pf(){return Gi||(Gi=1,Tn=function(){if(typeof Symbol!="function"||typeof Object.getOwnPropertySymbols!="function")return!1;if(typeof Symbol.iterator=="symbol")return!0;var t={},r=Symbol("test"),o=Object(r);if(typeof r=="string"||Object.prototype.toString.call(r)!=="[object Symbol]"||Object.prototype.toString.call(o)!=="[object Symbol]")return!1;var s=42;t[r]=s;for(var i in t)return!1;if(typeof Object.keys=="function"&&Object.keys(t).length!==0||typeof Object.getOwnPropertyNames=="function"&&Object.getOwnPropertyNames(t).length!==0)return!1;var a=Object.getOwnPropertySymbols(t);if(a.length!==1||a[0]!==r||!Object.prototype.propertyIsEnumerable.call(t,r))return!1;if(typeof Object.getOwnPropertyDescriptor=="function"){var c=Object.getOwnPropertyDescriptor(t,r);if(c.value!==s||c.enumerable!==!0)return!1}return!0}),Tn}var On,Ki;function zr(){if(Ki)return On;Ki=1;var e=Pf();return On=function(){return e()&&!!Symbol.toStringTag},On}var kn,Xi;function wf(){return Xi||(Xi=1,kn=Object),kn}var Ln,Yi;function Qy(){return Yi||(Yi=1,Ln=Error),Ln}var Mn,Qi;function Zy(){return Qi||(Qi=1,Mn=EvalError),Mn}var Dn,Zi;function Jy(){return Zi||(Zi=1,Dn=RangeError),Dn}var $n,Ji;function e_(){return Ji||(Ji=1,$n=ReferenceError),$n}var zn,ea;function Ef(){return ea||(ea=1,zn=SyntaxError),zn}var Bn,ta;function Kt(){return ta||(ta=1,Bn=TypeError),Bn}var Fn,ra;function t_(){return ra||(ra=1,Fn=URIError),Fn}var qn,na;function r_(){return na||(na=1,qn=Math.abs),qn}var Hn,oa;function n_(){return oa||(oa=1,Hn=Math.floor),Hn}var Un,sa;function o_(){return sa||(sa=1,Un=Math.max),Un}var Wn,ia;function s_(){return ia||(ia=1,Wn=Math.min),Wn}var Vn,aa;function i_(){return aa||(aa=1,Vn=Math.pow),Vn}var Gn,ca;function a_(){return ca||(ca=1,Gn=Math.round),Gn}var Kn,la;function c_(){return la||(la=1,Kn=Number.isNaN||function(t){return t!==t}),Kn}var Xn,ua;function l_(){if(ua)return Xn;ua=1;var e=c_();return Xn=function(r){return e(r)||r===0?r:r<0?-1:1},Xn}var Yn,da;function u_(){return da||(da=1,Yn=Object.getOwnPropertyDescriptor),Yn}var Qn,fa;function Nt(){if(fa)return Qn;fa=1;var e=u_();if(e)try{e([],"length")}catch{e=null}return Qn=e,Qn}var Zn,pa;function Br(){if(pa)return Zn;pa=1;var e=Object.defineProperty||!1;if(e)try{e({},"a",{value:1})}catch{e=!1}return Zn=e,Zn}var Jn,ma;function d_(){if(ma)return Jn;ma=1;var e=typeof Symbol<"u"&&Symbol,t=Pf();return Jn=function(){return typeof e!="function"||typeof Symbol!="function"||typeof e("foo")!="symbol"||typeof Symbol("bar")!="symbol"?!1:t()},Jn}var eo,ha;function Rf(){return ha||(ha=1,eo=typeof Reflect<"u"&&Reflect.getPrototypeOf||null),eo}var to,ga;function Af(){if(ga)return to;ga=1;var e=wf();return to=e.getPrototypeOf||null,to}var ro,ya;function f_(){if(ya)return ro;ya=1;var e="Function.prototype.bind called on incompatible ",t=Object.prototype.toString,r=Math.max,o="[object Function]",s=function(l,u){for(var f=[],h=0;h<l.length;h+=1)f[h]=l[h];for(var d=0;d<u.length;d+=1)f[d+l.length]=u[d];return f},i=function(l,u){for(var f=[],h=u,d=0;h<l.length;h+=1,d+=1)f[d]=l[h];return f},a=function(c,l){for(var u="",f=0;f<c.length;f+=1)u+=c[f],f+1<c.length&&(u+=l);return u};return ro=function(l){var u=this;if(typeof u!="function"||t.apply(u)!==o)throw new TypeError(e+u);for(var f=i(arguments,1),h,d=function(){if(this instanceof h){var b=u.apply(this,s(f,arguments));return Object(b)===b?b:this}return u.apply(l,s(f,arguments))},p=r(0,u.length-f.length),g=[],y=0;y<p;y++)g[y]="$"+y;if(h=Function("binder","return function ("+a(g,",")+"){ return binder.apply(this,arguments); }")(d),u.prototype){var _=function(){};_.prototype=u.prototype,h.prototype=new _,_.prototype=null}return h},ro}var no,_a;function Xt(){if(_a)return no;_a=1;var e=f_();return no=Function.prototype.bind||e,no}var oo,va;function Ms(){return va||(va=1,oo=Function.prototype.call),oo}var so,xa;function Ds(){return xa||(xa=1,so=Function.prototype.apply),so}var io,ba;function p_(){return ba||(ba=1,io=typeof Reflect<"u"&&Reflect&&Reflect.apply),io}var ao,ja;function If(){if(ja)return ao;ja=1;var e=Xt(),t=Ds(),r=Ms(),o=p_();return ao=o||e.call(r,t),ao}var co,Ca;function $s(){if(Ca)return co;Ca=1;var e=Xt(),t=Kt(),r=Ms(),o=If();return co=function(i){if(i.length<1||typeof i[0]!="function")throw new t("a function is required");return o(e,r,i)},co}var lo,Sa;function m_(){if(Sa)return lo;Sa=1;var e=$s(),t=Nt(),r;try{r=[].__proto__===Array.prototype}catch(a){if(!a||typeof a!="object"||!("code"in a)||a.code!=="ERR_PROTO_ACCESS")throw a}var o=!!r&&t&&t(Object.prototype,"__proto__"),s=Object,i=s.getPrototypeOf;return lo=o&&typeof o.get=="function"?e([o.get]):typeof i=="function"?function(c){return i(c==null?c:s(c))}:!1,lo}var uo,Pa;function zs(){if(Pa)return uo;Pa=1;var e=Rf(),t=Af(),r=m_();return uo=e?function(s){return e(s)}:t?function(s){if(!s||typeof s!="object"&&typeof s!="function")throw new TypeError("getProto: not an object");return t(s)}:r?function(s){return r(s)}:null,uo}var fo,wa;function Nf(){if(wa)return fo;wa=1;var e=Function.prototype.call,t=Object.prototype.hasOwnProperty,r=Xt();return fo=r.call(e,t),fo}var po,Ea;function Tf(){if(Ea)return po;Ea=1;var e,t=wf(),r=Qy(),o=Zy(),s=Jy(),i=e_(),a=Ef(),c=Kt(),l=t_(),u=r_(),f=n_(),h=o_(),d=s_(),p=i_(),g=a_(),y=l_(),_=Function,b=function(te){try{return _('"use strict"; return ('+te+").constructor;")()}catch{}},S=Nt(),v=Br(),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=d_()(),C=zs(),R=Af(),T=Rf(),w=Ds(),I=Ms(),N={},z=typeof Uint8Array>"u"||!C?e:C(Uint8Array),k={__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%":N,"%AsyncGenerator%":N,"%AsyncGeneratorFunction%":N,"%AsyncIteratorPrototype%":N,"%Atomics%":typeof Atomics>"u"?e:Atomics,"%BigInt%":typeof BigInt>"u"?e:BigInt,"%BigInt64Array%":typeof BigInt64Array>"u"?e:BigInt64Array,"%BigUint64Array%":typeof BigUint64Array>"u"?e:BigUint64Array,"%Boolean%":Boolean,"%DataView%":typeof DataView>"u"?e:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":r,"%eval%":eval,"%EvalError%":o,"%Float16Array%":typeof Float16Array>"u"?e:Float16Array,"%Float32Array%":typeof Float32Array>"u"?e:Float32Array,"%Float64Array%":typeof Float64Array>"u"?e:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry>"u"?e:FinalizationRegistry,"%Function%":_,"%GeneratorFunction%":N,"%Int8Array%":typeof Int8Array>"u"?e:Int8Array,"%Int16Array%":typeof Int16Array>"u"?e:Int16Array,"%Int32Array%":typeof Int32Array>"u"?e:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":E&&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%":i,"%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%":a,"%ThrowTypeError%":P,"%TypedArray%":z,"%TypeError%":c,"%Uint8Array%":typeof Uint8Array>"u"?e:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray>"u"?e:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array>"u"?e:Uint16Array,"%Uint32Array%":typeof Uint32Array>"u"?e:Uint32Array,"%URIError%":l,"%WeakMap%":typeof WeakMap>"u"?e:WeakMap,"%WeakRef%":typeof WeakRef>"u"?e:WeakRef,"%WeakSet%":typeof WeakSet>"u"?e:WeakSet,"%Function.prototype.call%":I,"%Function.prototype.apply%":w,"%Object.defineProperty%":v,"%Object.getPrototypeOf%":R,"%Math.abs%":u,"%Math.floor%":f,"%Math.max%":h,"%Math.min%":d,"%Math.pow%":p,"%Math.round%":g,"%Math.sign%":y,"%Reflect.getPrototypeOf%":T};if(C)try{null.error}catch(te){var W=C(C(te));k["%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 L=te("%AsyncGenerator%");L&&C&&(re=C(L.prototype))}return k[Z]=re,re},B={__proto__:null,"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},V=Xt(),G=Nf(),F=V.call(I,Array.prototype.concat),J=V.call(w,Array.prototype.splice),A=V.call(I,String.prototype.replace),O=V.call(I,String.prototype.slice),D=V.call(I,RegExp.prototype.exec),X=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,ne=/\\(\\)?/g,ee=function(Z){var re=O(Z,0,1),$=O(Z,-1);if(re==="%"&&$!=="%")throw new a("invalid intrinsic syntax, expected closing `%`");if($==="%"&&re!=="%")throw new a("invalid intrinsic syntax, expected opening `%`");var L=[];return A(Z,X,function(oe,ae,fe,pe){L[L.length]=fe?A(pe,ne,"$1"):ae||oe}),L},M=function(Z,re){var $=Z,L;if(G(B,$)&&(L=B[$],$="%"+L[0]+"%"),G(k,$)){var oe=k[$];if(oe===N&&(oe=q($)),typeof oe>"u"&&!re)throw new c("intrinsic "+Z+" exists, but is not available. Please file an issue!");return{alias:L,name:$,value:oe}}throw new a("intrinsic "+Z+" does not exist!")};return po=function(Z,re){if(typeof Z!="string"||Z.length===0)throw new c("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof re!="boolean")throw new c('"allowMissing" argument must be a boolean');if(D(/^%?[^%]*%?$/,Z)===null)throw new a("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var $=ee(Z),L=$.length>0?$[0]:"",oe=M("%"+L+"%",re),ae=oe.name,fe=oe.value,pe=!1,ue=oe.alias;ue&&(L=ue[0],J($,F([0,1],ue)));for(var H=1,be=!0;H<$.length;H+=1){var ie=$[H],_e=O(ie,0,1),K=O(ie,-1);if((_e==='"'||_e==="'"||_e==="`"||K==='"'||K==="'"||K==="`")&&_e!==K)throw new a("property names with quotes must have matching quotes");if((ie==="constructor"||!be)&&(pe=!0),L+="."+ie,ae="%"+L+"%",G(k,ae))fe=k[ae];else if(fe!=null){if(!(ie in fe)){if(!re)throw new c("base intrinsic for "+Z+" exists, but the property is not available.");return}if(S&&H+1>=$.length){var me=S(fe,ie);be=!!me,be&&"get"in me&&!("originalValue"in me.get)?fe=me.get:fe=fe[ie]}else be=G(fe,ie),fe=fe[ie];be&&!pe&&(k[ae]=fe)}}return fe},po}var mo,Ra;function Yt(){if(Ra)return mo;Ra=1;var e=Tf(),t=$s(),r=t([e("%String.prototype.indexOf%")]);return mo=function(s,i){var a=e(s,!!i);return typeof a=="function"&&r(s,".prototype.")>-1?t([a]):a},mo}var ho,Aa;function h_(){if(Aa)return ho;Aa=1;var e=zr()(),t=Yt(),r=t("Object.prototype.toString"),o=function(c){return e&&c&&typeof c=="object"&&Symbol.toStringTag in c?!1:r(c)==="[object Arguments]"},s=function(c){return o(c)?!0:c!==null&&typeof c=="object"&&"length"in c&&typeof c.length=="number"&&c.length>=0&&r(c)!=="[object Array]"&&"callee"in c&&r(c.callee)==="[object Function]"},i=function(){return o(arguments)}();return o.isLegacyArguments=s,ho=i?o:s,ho}var go,Ia;function g_(){if(Ia)return go;Ia=1;var e=Yt(),t=zr()(),r=Nf(),o=Nt(),s;if(t){var i=e("RegExp.prototype.exec"),a={},c=function(){throw a},l={toString:c,valueOf:c};typeof Symbol.toPrimitive=="symbol"&&(l[Symbol.toPrimitive]=c),s=function(d){if(!d||typeof d!="object")return!1;var p=o(d,"lastIndex"),g=p&&r(p,"value");if(!g)return!1;try{i(d,l)}catch(y){return y===a}}}else{var u=e("Object.prototype.toString"),f="[object RegExp]";s=function(d){return!d||typeof d!="object"&&typeof d!="function"?!1:u(d)===f}}return go=s,go}var yo,Na;function y_(){if(Na)return yo;Na=1;var e=Yt(),t=g_(),r=e("RegExp.prototype.exec"),o=Kt();return yo=function(i){if(!t(i))throw new o("`regex` must be a RegExp");return function(c){return r(i,c)!==null}},yo}var _o,Ta;function __(){if(Ta)return _o;Ta=1;var e=Yt(),t=y_(),r=t(/^\s*(?:function)?\*/),o=zr()(),s=zs(),i=e("Object.prototype.toString"),a=e("Function.prototype.toString"),c=function(){if(!o)return!1;try{return Function("return function*() {}")()}catch{}},l;return _o=function(f){if(typeof f!="function")return!1;if(r(a(f)))return!0;if(!o){var h=i(f);return h==="[object GeneratorFunction]"}if(!s)return!1;if(typeof l>"u"){var d=c();l=d?s(d):!1}return s(f)===l},_o}var vo,Oa;function v_(){if(Oa)return vo;Oa=1;var e=Function.prototype.toString,t=typeof Reflect=="object"&&Reflect!==null&&Reflect.apply,r,o;if(typeof t=="function"&&typeof Object.defineProperty=="function")try{r=Object.defineProperty({},"length",{get:function(){throw o}}),o={},t(function(){throw 42},null,r)}catch(S){S!==o&&(t=null)}else t=null;var s=/^\s*class\b/,i=function(v){try{var j=e.call(v);return s.test(j)}catch{return!1}},a=function(v){try{return i(v)?!1:(e.call(v),!0)}catch{return!1}},c=Object.prototype.toString,l="[object Object]",u="[object Function]",f="[object GeneratorFunction]",h="[object HTMLAllCollection]",d="[object HTML document.all class]",p="[object HTMLCollection]",g=typeof Symbol=="function"&&!!Symbol.toStringTag,y=!(0 in[,]),_=function(){return!1};if(typeof document=="object"){var b=document.all;c.call(b)===c.call(document.all)&&(_=function(v){if((y||!v)&&(typeof v>"u"||typeof v=="object"))try{var j=c.call(v);return(j===h||j===d||j===p||j===l)&&v("")==null}catch{}return!1})}return vo=t?function(v){if(_(v))return!0;if(!v||typeof v!="function"&&typeof v!="object")return!1;try{t(v,null,r)}catch(j){if(j!==o)return!1}return!i(v)&&a(v)}:function(v){if(_(v))return!0;if(!v||typeof v!="function"&&typeof v!="object")return!1;if(g)return a(v);if(i(v))return!1;var j=c.call(v);return j!==u&&j!==f&&!/^\[object HTML/.test(j)?!1:a(v)},vo}var xo,ka;function x_(){if(ka)return xo;ka=1;var e=v_(),t=Object.prototype.toString,r=Object.prototype.hasOwnProperty,o=function(l,u,f){for(var h=0,d=l.length;h<d;h++)r.call(l,h)&&(f==null?u(l[h],h,l):u.call(f,l[h],h,l))},s=function(l,u,f){for(var h=0,d=l.length;h<d;h++)f==null?u(l.charAt(h),h,l):u.call(f,l.charAt(h),h,l)},i=function(l,u,f){for(var h in l)r.call(l,h)&&(f==null?u(l[h],h,l):u.call(f,l[h],h,l))};function a(c){return t.call(c)==="[object Array]"}return xo=function(l,u,f){if(!e(u))throw new TypeError("iterator must be a function");var h;arguments.length>=3&&(h=f),a(l)?o(l,u,h):typeof l=="string"?s(l,u,h):i(l,u,h)},xo}var bo,La;function b_(){return La||(La=1,bo=["Float16Array","Float32Array","Float64Array","Int8Array","Int16Array","Int32Array","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","BigInt64Array","BigUint64Array"]),bo}var jo,Ma;function j_(){if(Ma)return jo;Ma=1;var e=b_(),t=typeof globalThis>"u"?gu:globalThis;return jo=function(){for(var o=[],s=0;s<e.length;s++)typeof t[e[s]]=="function"&&(o[o.length]=e[s]);return o},jo}var Co={exports:{}},So,Da;function C_(){if(Da)return So;Da=1;var e=Br(),t=Ef(),r=Kt(),o=Nt();return So=function(i,a,c){if(!i||typeof i!="object"&&typeof i!="function")throw new r("`obj` must be an object or a function`");if(typeof a!="string"&&typeof a!="symbol")throw new r("`property` must be a string or a symbol`");if(arguments.length>3&&typeof arguments[3]!="boolean"&&arguments[3]!==null)throw new r("`nonEnumerable`, if provided, must be a boolean or null");if(arguments.length>4&&typeof arguments[4]!="boolean"&&arguments[4]!==null)throw new r("`nonWritable`, if provided, must be a boolean or null");if(arguments.length>5&&typeof arguments[5]!="boolean"&&arguments[5]!==null)throw new r("`nonConfigurable`, if provided, must be a boolean or null");if(arguments.length>6&&typeof arguments[6]!="boolean")throw new r("`loose`, if provided, must be a boolean");var l=arguments.length>3?arguments[3]:null,u=arguments.length>4?arguments[4]:null,f=arguments.length>5?arguments[5]:null,h=arguments.length>6?arguments[6]:!1,d=!!o&&o(i,a);if(e)e(i,a,{configurable:f===null&&d?d.configurable:!f,enumerable:l===null&&d?d.enumerable:!l,value:c,writable:u===null&&d?d.writable:!u});else if(h||!l&&!u&&!f)i[a]=c;else throw new t("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.")},So}var Po,$a;function S_(){if($a)return Po;$a=1;var e=Br(),t=function(){return!!e};return t.hasArrayLengthDefineBug=function(){if(!e)return null;try{return e([],"length",{value:1}).length!==1}catch{return!0}},Po=t,Po}var wo,za;function P_(){if(za)return wo;za=1;var e=Tf(),t=C_(),r=S_()(),o=Nt(),s=Kt(),i=e("%Math.floor%");return wo=function(c,l){if(typeof c!="function")throw new s("`fn` is not a function");if(typeof l!="number"||l<0||l>4294967295||i(l)!==l)throw new s("`length` must be a positive 32-bit integer");var u=arguments.length>2&&!!arguments[2],f=!0,h=!0;if("length"in c&&o){var d=o(c,"length");d&&!d.configurable&&(f=!1),d&&!d.writable&&(h=!1)}return(f||h||!u)&&(r?t(c,"length",l,!0,!0):t(c,"length",l)),c},wo}var Eo,Ba;function w_(){if(Ba)return Eo;Ba=1;var e=Xt(),t=Ds(),r=If();return Eo=function(){return r(e,t,arguments)},Eo}var Fa;function E_(){return Fa||(Fa=1,function(e){var t=P_(),r=Br(),o=$s(),s=w_();e.exports=function(a){var c=o(arguments),l=a.length-(arguments.length-1);return t(c,1+(l>0?l:0),!0)},r?r(e.exports,"apply",{value:s}):e.exports.apply=s}(Co)),Co.exports}var Ro,qa;function Of(){if(qa)return Ro;qa=1;var e=x_(),t=j_(),r=E_(),o=Yt(),s=Nt(),i=zs(),a=o("Object.prototype.toString"),c=zr()(),l=typeof globalThis>"u"?gu: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},d={__proto__:null};c&&s&&i?e(u,function(y){var _=new l[y];if(Symbol.toStringTag in _&&i){var b=i(_),S=s(b,Symbol.toStringTag);if(!S&&b){var v=i(b);S=s(v,Symbol.toStringTag)}d["$"+y]=r(S.get)}}):e(u,function(y){var _=new l[y],b=_.slice||_.set;b&&(d["$"+y]=r(b))});var p=function(_){var b=!1;return e(d,function(S,v){if(!b)try{"$"+S(_)===v&&(b=f(v,1))}catch{}}),b},g=function(_){var b=!1;return e(d,function(S,v){if(!b)try{S(_),b=f(v,1)}catch{}}),b};return Ro=function(_){if(!_||typeof _!="object")return!1;if(!c){var b=f(a(_),8,-1);return h(u,b)>-1?b:b!=="Object"?!1:g(_)}return s?p(_):null},Ro}var Ao,Ha;function R_(){if(Ha)return Ao;Ha=1;var e=Of();return Ao=function(r){return!!e(r)},Ao}var Ua;function A_(){return Ua||(Ua=1,function(e){var t=h_(),r=__(),o=Of(),s=R_();function i(H){return H.call.bind(H)}var a=typeof BigInt<"u",c=typeof Symbol<"u",l=i(Object.prototype.toString),u=i(Number.prototype.valueOf),f=i(String.prototype.valueOf),h=i(Boolean.prototype.valueOf);if(a)var d=i(BigInt.prototype.valueOf);if(c)var p=i(Symbol.prototype.valueOf);function g(H,be){if(typeof H!="object")return!1;try{return be(H),!0}catch{return!1}}e.isArgumentsObject=t,e.isGeneratorFunction=r,e.isTypedArray=s;function y(H){return typeof Promise<"u"&&H instanceof Promise||H!==null&&typeof H=="object"&&typeof H.then=="function"&&typeof H.catch=="function"}e.isPromise=y;function _(H){return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?ArrayBuffer.isView(H):s(H)||O(H)}e.isArrayBufferView=_;function b(H){return o(H)==="Uint8Array"}e.isUint8Array=b;function 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 T(H){return o(H)==="Float64Array"}e.isFloat64Array=T;function w(H){return o(H)==="BigInt64Array"}e.isBigInt64Array=w;function I(H){return o(H)==="BigUint64Array"}e.isBigUint64Array=I;function N(H){return l(H)==="[object Map]"}N.working=typeof Map<"u"&&N(new Map);function z(H){return typeof Map>"u"?!1:N.working?N(H):H instanceof Map}e.isMap=z;function k(H){return l(H)==="[object Set]"}k.working=typeof Set<"u"&&k(new Set);function W(H){return typeof Set>"u"?!1:k.working?k(H):H instanceof Set}e.isSet=W;function q(H){return l(H)==="[object WeakMap]"}q.working=typeof WeakMap<"u"&&q(new WeakMap);function B(H){return typeof WeakMap>"u"?!1:q.working?q(H):H instanceof WeakMap}e.isWeakMap=B;function V(H){return l(H)==="[object WeakSet]"}V.working=typeof WeakSet<"u"&&V(new WeakSet);function G(H){return V(H)}e.isWeakSet=G;function F(H){return l(H)==="[object ArrayBuffer]"}F.working=typeof ArrayBuffer<"u"&&F(new ArrayBuffer);function J(H){return typeof ArrayBuffer>"u"?!1:F.working?F(H):H instanceof ArrayBuffer}e.isArrayBuffer=J;function A(H){return l(H)==="[object DataView]"}A.working=typeof ArrayBuffer<"u"&&typeof DataView<"u"&&A(new DataView(new ArrayBuffer(1),0,1));function O(H){return typeof DataView>"u"?!1:A.working?A(H):H instanceof DataView}e.isDataView=O;var D=typeof SharedArrayBuffer<"u"?SharedArrayBuffer:void 0;function X(H){return l(H)==="[object SharedArrayBuffer]"}function ne(H){return typeof D>"u"?!1:(typeof X.working>"u"&&(X.working=X(new D)),X.working?X(H):H instanceof D)}e.isSharedArrayBuffer=ne;function ee(H){return l(H)==="[object AsyncFunction]"}e.isAsyncFunction=ee;function M(H){return l(H)==="[object Map Iterator]"}e.isMapIterator=M;function te(H){return l(H)==="[object Set Iterator]"}e.isSetIterator=te;function Z(H){return l(H)==="[object Generator]"}e.isGeneratorObject=Z;function re(H){return l(H)==="[object WebAssembly.Module]"}e.isWebAssemblyCompiledModule=re;function $(H){return g(H,u)}e.isNumberObject=$;function L(H){return g(H,f)}e.isStringObject=L;function oe(H){return g(H,h)}e.isBooleanObject=oe;function ae(H){return a&&g(H,d)}e.isBigIntObject=ae;function fe(H){return c&&g(H,p)}e.isSymbolObject=fe;function pe(H){return $(H)||L(H)||oe(H)||ae(H)||fe(H)}e.isBoxedPrimitive=pe;function ue(H){return typeof Uint8Array<"u"&&(J(H)||ne(H))}e.isAnyArrayBuffer=ue,["isProxy","isExternal","isModuleNamespaceObject"].forEach(function(H){Object.defineProperty(e,H,{enumerable:!1,value:function(){throw new Error(H+" is not supported in userland")}})})}(Nn)),Nn}var Io,Wa;function I_(){return Wa||(Wa=1,Io=function(t){return t&&typeof t=="object"&&typeof t.copy=="function"&&typeof t.fill=="function"&&typeof t.readUInt8=="function"}),Io}var pr={exports:{}},Va;function N_(){return Va||(Va=1,typeof Object.create=="function"?pr.exports=function(t,r){r&&(t.super_=r,t.prototype=Object.create(r.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}))}:pr.exports=function(t,r){if(r){t.super_=r;var o=function(){};o.prototype=r.prototype,t.prototype=new o,t.prototype.constructor=t}}),pr.exports}var Ga;function T_(){return Ga||(Ga=1,function(e){var t=Object.getOwnPropertyDescriptors||function(O){for(var D=Object.keys(O),X={},ne=0;ne<D.length;ne++)X[D[ne]]=Object.getOwnPropertyDescriptor(O,D[ne]);return X},r=/%[sdj%]/g;e.format=function(A){if(!P(A)){for(var O=[],D=0;D<arguments.length;D++)O.push(a(arguments[D]));return O.join(" ")}for(var D=1,X=arguments,ne=X.length,ee=String(A).replace(r,function(te){if(te==="%%")return"%";if(D>=ne)return te;switch(te){case"%s":return String(X[D++]);case"%d":return Number(X[D++]);case"%j":try{return JSON.stringify(X[D++])}catch{return"[Circular]"}default:return te}}),M=X[D];D<ne;M=X[++D])S(M)||!T(M)?ee+=" "+M:ee+=" "+a(M);return ee},e.deprecate=function(A,O){if(typeof process<"u"&&process.noDeprecation===!0)return A;if(typeof process>"u")return function(){return e.deprecate(A,O).apply(this,arguments)};var D=!1;function X(){if(!D){if(process.throwDeprecation)throw new Error(O);process.traceDeprecation?console.trace(O):console.error(O),D=!0}return A.apply(this,arguments)}return X};var o={},s=/^$/;if(process.env.NODE_DEBUG){var i=process.env.NODE_DEBUG;i=i.replace(/[|\\{}()[\]^$+?.]/g,"\\$&").replace(/\*/g,".*").replace(/,/g,"$|^").toUpperCase(),s=new RegExp("^"+i+"$","i")}e.debuglog=function(A){if(A=A.toUpperCase(),!o[A])if(s.test(A)){var O=process.pid;o[A]=function(){var D=e.format.apply(e,arguments);console.error("%s %d: %s",A,O,D)}}else o[A]=function(){};return o[A]};function a(A,O){var D={seen:[],stylize:l};return arguments.length>=3&&(D.depth=arguments[2]),arguments.length>=4&&(D.colors=arguments[3]),b(O)?D.showHidden=O:O&&e._extend(D,O),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=a,a.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]},a.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"};function c(A,O){var D=a.styles[O];return D?"\x1B["+a.colors[D][0]+"m"+A+"\x1B["+a.colors[D][1]+"m":A}function l(A,O){return A}function u(A){var O={};return A.forEach(function(D,X){O[D]=!0}),O}function f(A,O,D){if(A.customInspect&&O&&N(O.inspect)&&O.inspect!==e.inspect&&!(O.constructor&&O.constructor.prototype===O)){var X=O.inspect(D,A);return P(X)||(X=f(A,X,D)),X}var ne=h(A,O);if(ne)return ne;var ee=Object.keys(O),M=u(ee);if(A.showHidden&&(ee=Object.getOwnPropertyNames(O)),I(O)&&(ee.indexOf("message")>=0||ee.indexOf("description")>=0))return d(O);if(ee.length===0){if(N(O)){var te=O.name?": "+O.name:"";return A.stylize("[Function"+te+"]","special")}if(R(O))return A.stylize(RegExp.prototype.toString.call(O),"regexp");if(w(O))return A.stylize(Date.prototype.toString.call(O),"date");if(I(O))return d(O)}var Z="",re=!1,$=["{","}"];if(_(O)&&(re=!0,$=["[","]"]),N(O)){var L=O.name?": "+O.name:"";Z=" [Function"+L+"]"}if(R(O)&&(Z=" "+RegExp.prototype.toString.call(O)),w(O)&&(Z=" "+Date.prototype.toUTCString.call(O)),I(O)&&(Z=" "+d(O)),ee.length===0&&(!re||O.length==0))return $[0]+Z+$[1];if(D<0)return R(O)?A.stylize(RegExp.prototype.toString.call(O),"regexp"):A.stylize("[Object]","special");A.seen.push(O);var oe;return re?oe=p(A,O,D,M,ee):oe=ee.map(function(ae){return g(A,O,D,M,ae,re)}),A.seen.pop(),y(oe,Z,$)}function h(A,O){if(C(O))return A.stylize("undefined","undefined");if(P(O)){var D="'"+JSON.stringify(O).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return A.stylize(D,"string")}if(j(O))return A.stylize(""+O,"number");if(b(O))return A.stylize(""+O,"boolean");if(S(O))return A.stylize("null","null")}function d(A){return"["+Error.prototype.toString.call(A)+"]"}function p(A,O,D,X,ne){for(var ee=[],M=0,te=O.length;M<te;++M)V(O,String(M))?ee.push(g(A,O,D,X,String(M),!0)):ee.push("");return ne.forEach(function(Z){Z.match(/^\d+$/)||ee.push(g(A,O,D,X,Z,!0))}),ee}function g(A,O,D,X,ne,ee){var M,te,Z;if(Z=Object.getOwnPropertyDescriptor(O,ne)||{value:O[ne]},Z.get?Z.set?te=A.stylize("[Getter/Setter]","special"):te=A.stylize("[Getter]","special"):Z.set&&(te=A.stylize("[Setter]","special")),V(X,ne)||(M="["+ne+"]"),te||(A.seen.indexOf(Z.value)<0?(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:x}=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)},x)}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)}(gr,gr.exports)),gr.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._(v),o=qr,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 Ln={},Mn={},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 Hr(){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 Lt(){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 Ur(){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 Lf(){return bi||(bi=1,so=typeof Reflect<"u"&&Reflect.getPrototypeOf||null),so}var ao,ji;function Mf(){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 d=0;d<u.length;d+=1)f[d+l.length]=u[d];return f},a=function(l,u){for(var f=[],h=u,d=0;h<l.length;h+=1,d+=1)f[d]=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,d=function(){if(this instanceof h){var b=u.apply(this,s(f,arguments));return Object(b)===b?b:this}return u.apply(l,s(f,arguments))},p=n(0,u.length-f.length),g=[],y=0;y<p;y++)g[y]="$"+y;if(h=Function("binder","return function ("+i(g,",")+"){ return binder.apply(this,arguments); }")(d),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 qs(){return Pi||(Pi=1,lo=Function.prototype.call),lo}var uo,wi;function Hs(){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=Hs(),n=qs(),o=w_();return po=o||e.call(n,t),po}var mo,Ai;function Us(){if(Ai)return mo;Ai=1;var e=Jt(),t=Zt(),n=qs(),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=Us(),t=Lt(),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 Ws(){if(Ii)return go;Ii=1;var e=Lf(),t=Mf(),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_(),d=__(),p=v_(),g=x_(),y=j_(),_=Function,b=function(te){try{return _('"use strict"; return ('+te+").constructor;")()}catch{}},S=Lt(),x=Ur(),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=Ws(),R=Mf(),T=Lf(),w=Hs(),N=qs(),I={},z=typeof Uint8Array>"u"||!C?e:C(Uint8Array),k={__proto__:null,"%AggregateError%":typeof AggregateError>"u"?e:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>"u"?e:ArrayBuffer,"%ArrayIteratorPrototype%":E&&C?C([][Symbol.iterator]()):e,"%AsyncFromSyncIteratorPrototype%":e,"%AsyncFunction%":I,"%AsyncGenerator%":I,"%AsyncGeneratorFunction%":I,"%AsyncIteratorPrototype%":I,"%Atomics%":typeof Atomics>"u"?e:Atomics,"%BigInt%":typeof BigInt>"u"?e:BigInt,"%BigInt64Array%":typeof BigInt64Array>"u"?e:BigInt64Array,"%BigUint64Array%":typeof BigUint64Array>"u"?e:BigUint64Array,"%Boolean%":Boolean,"%DataView%":typeof DataView>"u"?e:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":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%":I,"%Int8Array%":typeof Int8Array>"u"?e:Int8Array,"%Int16Array%":typeof Int16Array>"u"?e:Int16Array,"%Int32Array%":typeof Int32Array>"u"?e:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":E&&C?C(C([][Symbol.iterator]())):e,"%JSON%":typeof JSON=="object"?JSON:e,"%Map%":typeof Map>"u"?e:Map,"%MapIteratorPrototype%":typeof Map>"u"||!E||!C?e:C(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":t,"%Object.getOwnPropertyDescriptor%":S,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>"u"?e:Promise,"%Proxy%":typeof Proxy>"u"?e:Proxy,"%RangeError%":s,"%ReferenceError%":a,"%Reflect%":typeof Reflect>"u"?e:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set>"u"?e:Set,"%SetIteratorPrototype%":typeof Set>"u"||!E||!C?e:C(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer>"u"?e:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":E&&C?C(""[Symbol.iterator]()):e,"%Symbol%":E?Symbol:e,"%SyntaxError%":i,"%ThrowTypeError%":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%":x,"%Object.getPrototypeOf%":R,"%Math.abs%":u,"%Math.floor%":f,"%Math.max%":h,"%Math.min%":d,"%Math.pow%":p,"%Math.round%":g,"%Math.sign%":y,"%Reflect.getPrototypeOf%":T};if(C)try{null.error}catch(te){var W=C(C(te));k["%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 L=te("%AsyncGenerator%");L&&C&&(re=C(L.prototype))}return k[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),O=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=O(Z,0,1),$=O(Z,-1);if(re==="%"&&$!=="%")throw new i("invalid intrinsic syntax, expected closing `%`");if($==="%"&&re!=="%")throw new i("invalid intrinsic syntax, expected opening `%`");var L=[];return A(Z,X,function(oe,ie,fe,pe){L[L.length]=fe?A(pe,ne,"$1"):ie||oe}),L},M=function(Z,re){var $=Z,L;if(V(F,$)&&(L=F[$],$="%"+L[0]+"%"),V(k,$)){var oe=k[$];if(oe===I&&(oe=q($)),typeof oe>"u"&&!re)throw new c("intrinsic "+Z+" exists, but is not available. Please file an issue!");return{alias:L,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),L=$.length>0?$[0]:"",oe=M("%"+L+"%",re),ie=oe.name,fe=oe.value,pe=!1,ue=oe.alias;ue&&(L=ue[0],J($,B([0,1],ue)));for(var H=1,be=!0;H<$.length;H+=1){var ae=$[H],ve=O(ae,0,1),K=O(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),L+="."+ae,ie="%"+L+"%",V(k,ie))fe=k[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&&(k[ie]=fe)}}return fe},_o}var vo,ki;function er(){if(ki)return vo;ki=1;var e=zf(),t=Us(),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,Li;function R_(){if(Li)return xo;Li=1;var e=Hr()(),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,Mi;function A_(){if(Mi)return bo;Mi=1;var e=er(),t=Hr()(),n=$f(),o=Lt(),s;if(t){var a=e("RegExp.prototype.exec"),i={},c=function(){throw i},l={toString:c,valueOf:c};typeof Symbol.toPrimitive=="symbol"&&(l[Symbol.toPrimitive]=c),s=function(d){if(!d||typeof d!="object")return!1;var p=o(d,"lastIndex"),g=p&&n(p,"value");if(!g)return!1;try{a(d,l)}catch(y){return y===i}}}else{var u=e("Object.prototype.toString"),f="[object RegExp]";s=function(d){return!d||typeof d!="object"&&typeof d!="function"?!1:u(d)===f}}return 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=Hr()(),s=Ws(),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(x){try{var j=e.call(x);return s.test(j)}catch{return!1}},i=function(x){try{return a(x)?!1:(e.call(x),!0)}catch{return!1}},c=Object.prototype.toString,l="[object Object]",u="[object Function]",f="[object GeneratorFunction]",h="[object HTMLAllCollection]",d="[object HTML document.all class]",p="[object HTMLCollection]",g=typeof Symbol=="function"&&!!Symbol.toStringTag,y=!(0 in[,]),_=function(){return!1};if(typeof document=="object"){var b=document.all;c.call(b)===c.call(document.all)&&(_=function(x){if((y||!x)&&(typeof x>"u"||typeof x=="object"))try{var j=c.call(x);return(j===h||j===d||j===p||j===l)&&x("")==null}catch{}return!1})}return Po=t?function(x){if(_(x))return!0;if(!x||typeof x!="function"&&typeof x!="object")return!1;try{t(x,null,n)}catch(j){if(j!==o)return!1}return!a(x)&&i(x)}:function(x){if(_(x))return!0;if(!x||typeof x!="function"&&typeof x!="object")return!1;if(g)return i(x);if(a(x))return!1;var j=c.call(x);return j!==u&&j!==f&&!/^\[object HTML/.test(j)?!1:i(x)},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,d=l.length;h<d;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,d=l.length;h<d;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 L_(){return qi||(qi=1,Eo=["Float16Array","Float32Array","Float64Array","Int8Array","Int16Array","Int32Array","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","BigInt64Array","BigUint64Array"]),Eo}var Ro,Hi;function M_(){if(Hi)return Ro;Hi=1;var e=L_(),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=Ur(),t=kf(),n=Zt(),o=Lt();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,d=!!o&&o(a,i);if(e)e(a,i,{configurable:f===null&&d?d.configurable:!f,enumerable:l===null&&d?d.enumerable:!l,value:c,writable:u===null&&d?d.writable:!u});else if(h||!l&&!u&&!f)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=Ur(),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=Lt(),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 d=o(c,"length");d&&!d.configurable&&(f=!1),d&&!d.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=Hs(),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=Ur(),o=Us(),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=M_(),n=B_(),o=er(),s=Lt(),a=Ws(),i=o("Object.prototype.toString"),c=Hr()(),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},d={__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 x=a(b);S=s(x,Symbol.toStringTag)}d["$"+y]=n(S.get)}}):e(u,function(y){var _=new l[y],b=_.slice||_.set;b&&(d["$"+y]=n(b))});var p=function(_){var b=!1;return e(d,function(S,x){if(!b)try{"$"+S(_)===x&&(b=f(x,1))}catch{}}),b},g=function(_){var b=!1;return e(d,function(S,x){if(!b)try{S(_),b=f(x,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?p(_):null},ko}var Lo,Yi;function q_(){if(Yi)return Lo;Yi=1;var e=Ff();return Lo=function(n){return!!e(n)},Lo}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 d=a(BigInt.prototype.valueOf);if(c)var p=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)||O(H)}e.isArrayBufferView=_;function b(H){return o(H)==="Uint8Array"}e.isUint8Array=b;function S(H){return o(H)==="Uint8ClampedArray"}e.isUint8ClampedArray=S;function x(H){return o(H)==="Uint16Array"}e.isUint16Array=x;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 T(H){return o(H)==="Float64Array"}e.isFloat64Array=T;function w(H){return o(H)==="BigInt64Array"}e.isBigInt64Array=w;function N(H){return o(H)==="BigUint64Array"}e.isBigUint64Array=N;function I(H){return l(H)==="[object Map]"}I.working=typeof Map<"u"&&I(new Map);function z(H){return typeof Map>"u"?!1:I.working?I(H):H instanceof Map}e.isMap=z;function k(H){return l(H)==="[object Set]"}k.working=typeof Set<"u"&&k(new Set);function W(H){return typeof Set>"u"?!1:k.working?k(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 O(H){return typeof DataView>"u"?!1:A.working?A(H):H instanceof DataView}e.isDataView=O;var D=typeof SharedArrayBuffer<"u"?SharedArrayBuffer:void 0;function X(H){return l(H)==="[object SharedArrayBuffer]"}function ne(H){return typeof D>"u"?!1:(typeof X.working>"u"&&(X.working=X(new D)),X.working?X(H):H instanceof D)}e.isSharedArrayBuffer=ne;function ee(H){return l(H)==="[object AsyncFunction]"}e.isAsyncFunction=ee;function M(H){return l(H)==="[object Map Iterator]"}e.isMapIterator=M;function te(H){return l(H)==="[object Set Iterator]"}e.isSetIterator=te;function Z(H){return l(H)==="[object Generator]"}e.isGeneratorObject=Z;function re(H){return l(H)==="[object WebAssembly.Module]"}e.isWebAssemblyCompiledModule=re;function $(H){return g(H,u)}e.isNumberObject=$;function L(H){return g(H,f)}e.isStringObject=L;function oe(H){return g(H,h)}e.isBooleanObject=oe;function ie(H){return i&&g(H,d)}e.isBigIntObject=ie;function fe(H){return c&&g(H,p)}e.isSymbolObject=fe;function pe(H){return $(H)||L(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")}})})}(Mn)),Mn}var Mo,Zi;function U_(){return Zi||(Zi=1,Mo=function(t){return t&&typeof t=="object"&&typeof t.copy=="function"&&typeof t.fill=="function"&&typeof t.readUInt8=="function"}),Mo}var yr={exports:{}},Ji;function W_(){return Ji||(Ji=1,typeof Object.create=="function"?yr.exports=function(t,n){n&&(t.super_=n,t.prototype=Object.create(n.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}))}:yr.exports=function(t,n){if(n){t.super_=n;var o=function(){};o.prototype=n.prototype,t.prototype=new o,t.prototype.constructor=t}}),yr.exports}var ec;function G_(){return ec||(ec=1,function(e){var t=Object.getOwnPropertyDescriptors||function(O){for(var D=Object.keys(O),X={},ne=0;ne<D.length;ne++)X[D[ne]]=Object.getOwnPropertyDescriptor(O,D[ne]);return X},n=/%[sdj%]/g;e.format=function(A){if(!P(A)){for(var O=[],D=0;D<arguments.length;D++)O.push(i(arguments[D]));return O.join(" ")}for(var D=1,X=arguments,ne=X.length,ee=String(A).replace(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}}),M=X[D];D<ne;M=X[++D])S(M)||!T(M)?ee+=" "+M:ee+=" "+i(M);return ee},e.deprecate=function(A,O){if(typeof process<"u"&&process.noDeprecation===!0)return A;if(typeof process>"u")return function(){return e.deprecate(A,O).apply(this,arguments)};var D=!1;function X(){if(!D){if(process.throwDeprecation)throw new Error(O);process.traceDeprecation?console.trace(O):console.error(O),D=!0}return A.apply(this,arguments)}return X};var o={},s=/^$/;if(process.env.NODE_DEBUG){var a=process.env.NODE_DEBUG;a=a.replace(/[|\\{}()[\]^$+?.]/g,"\\$&").replace(/\*/g,".*").replace(/,/g,"$|^").toUpperCase(),s=new RegExp("^"+a+"$","i")}e.debuglog=function(A){if(A=A.toUpperCase(),!o[A])if(s.test(A)){var O=process.pid;o[A]=function(){var D=e.format.apply(e,arguments);console.error("%s %d: %s",A,O,D)}}else o[A]=function(){};return o[A]};function i(A,O){var D={seen:[],stylize:l};return arguments.length>=3&&(D.depth=arguments[2]),arguments.length>=4&&(D.colors=arguments[3]),b(O)?D.showHidden=O:O&&e._extend(D,O),C(D.showHidden)&&(D.showHidden=!1),C(D.depth)&&(D.depth=2),C(D.colors)&&(D.colors=!1),C(D.customInspect)&&(D.customInspect=!0),D.colors&&(D.stylize=c),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,O){var D=i.styles[O];return D?"\x1B["+i.colors[D][0]+"m"+A+"\x1B["+i.colors[D][1]+"m":A}function l(A,O){return A}function u(A){var O={};return A.forEach(function(D,X){O[D]=!0}),O}function f(A,O,D){if(A.customInspect&&O&&I(O.inspect)&&O.inspect!==e.inspect&&!(O.constructor&&O.constructor.prototype===O)){var X=O.inspect(D,A);return P(X)||(X=f(A,X,D)),X}var ne=h(A,O);if(ne)return ne;var ee=Object.keys(O),M=u(ee);if(A.showHidden&&(ee=Object.getOwnPropertyNames(O)),N(O)&&(ee.indexOf("message")>=0||ee.indexOf("description")>=0))return d(O);if(ee.length===0){if(I(O)){var te=O.name?": "+O.name:"";return A.stylize("[Function"+te+"]","special")}if(R(O))return A.stylize(RegExp.prototype.toString.call(O),"regexp");if(w(O))return A.stylize(Date.prototype.toString.call(O),"date");if(N(O))return d(O)}var Z="",re=!1,$=["{","}"];if(_(O)&&(re=!0,$=["[","]"]),I(O)){var L=O.name?": "+O.name:"";Z=" [Function"+L+"]"}if(R(O)&&(Z=" "+RegExp.prototype.toString.call(O)),w(O)&&(Z=" "+Date.prototype.toUTCString.call(O)),N(O)&&(Z=" "+d(O)),ee.length===0&&(!re||O.length==0))return $[0]+Z+$[1];if(D<0)return R(O)?A.stylize(RegExp.prototype.toString.call(O),"regexp"):A.stylize("[Object]","special");A.seen.push(O);var oe;return re?oe=p(A,O,D,M,ee):oe=ee.map(function(ie){return g(A,O,D,M,ie,re)}),A.seen.pop(),y(oe,Z,$)}function h(A,O){if(C(O))return A.stylize("undefined","undefined");if(P(O)){var D="'"+JSON.stringify(O).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return A.stylize(D,"string")}if(j(O))return A.stylize(""+O,"number");if(b(O))return A.stylize(""+O,"boolean");if(S(O))return A.stylize("null","null")}function d(A){return"["+Error.prototype.toString.call(A)+"]"}function p(A,O,D,X,ne){for(var ee=[],M=0,te=O.length;M<te;++M)G(O,String(M))?ee.push(g(A,O,D,X,String(M),!0)):ee.push("");return ne.forEach(function(Z){Z.match(/^\d+$/)||ee.push(g(A,O,D,X,Z,!0))}),ee}function g(A,O,D,X,ne,ee){var M,te,Z;if(Z=Object.getOwnPropertyDescriptor(O,ne)||{value:O[ne]},Z.get?Z.set?te=A.stylize("[Getter/Setter]","special"):te=A.stylize("[Getter]","special"):Z.set&&(te=A.stylize("[Setter]","special")),G(X,ne)||(M="["+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(`
|
|
16
16
|
`)>-1&&(ee?te=te.split(`
|
|
17
17
|
`).map(function(re){return" "+re}).join(`
|
|
18
18
|
`).slice(2):te=`
|
|
@@ -21,25 +21,25 @@ See more info here: https://nextjs.org/docs/messages/no-stylesheets-in-head-comp
|
|
|
21
21
|
`))):te=A.stylize("[Circular]","special")),C(M)){if(ee&&ne.match(/^\d+$/))return te;M=JSON.stringify(""+ne),M.match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(M=M.slice(1,-1),M=A.stylize(M,"name")):(M=M.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),M=A.stylize(M,"string"))}return M+": "+te}function y(A,O,D){var X=A.reduce(function(ne,ee){return ee.indexOf(`
|
|
22
22
|
`)>=0,ne+ee.replace(/\u001b\[\d\d?m/g,"").length+1},0);return X>60?D[0]+(O===""?"":O+`
|
|
23
23
|
`)+" "+A.join(`,
|
|
24
|
-
`)+" "+D[1]:D[0]+O+" "+A.join(", ")+" "+D[1]}e.types=
|
|
25
|
-
`,CHAR_NO_BREAK_SPACE:" ",CHAR_PERCENT:"%",CHAR_PLUS:"+",CHAR_QUESTION_MARK:"?",CHAR_RIGHT_ANGLE_BRACKET:">",CHAR_RIGHT_CURLY_BRACE:"}",CHAR_RIGHT_SQUARE_BRACKET:"]",CHAR_SEMICOLON:";",CHAR_SINGLE_QUOTE:"'",CHAR_SPACE:" ",CHAR_TAB:" ",CHAR_UNDERSCORE:"_",CHAR_VERTICAL_LINE:"|",CHAR_ZERO_WIDTH_NOBREAK_SPACE:"\uFEFF"}},13:(s,i
|
|
24
|
+
`)+" "+D[1]:D[0]+O+" "+A.join(", ")+" "+D[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 x(A){return A==null}e.isNullOrUndefined=x;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 T(A)&&k(A)==="[object RegExp]"}e.isRegExp=R,e.types.isRegExp=R;function T(A){return typeof A=="object"&&A!==null}e.isObject=T;function w(A){return T(A)&&k(A)==="[object Date]"}e.isDate=w,e.types.isDate=w;function N(A){return T(A)&&(k(A)==="[object Error]"||A instanceof Error)}e.isError=N,e.types.isNativeError=N;function I(A){return typeof A=="function"}e.isFunction=I;function z(A){return A===null||typeof A=="boolean"||typeof A=="number"||typeof A=="string"||typeof A=="symbol"||typeof A>"u"}e.isPrimitive=z,e.isBuffer=U_();function k(A){return Object.prototype.toString.call(A)}function W(A){return A<10?"0"+A.toString(10):A.toString(10)}var q=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function F(){var A=new Date,O=[W(A.getHours()),W(A.getMinutes()),W(A.getSeconds())].join(":");return[A.getDate(),q[A.getMonth()],O].join(" ")}e.log=function(){console.log("%s - %s",F(),e.format.apply(e,arguments))},e.inherits=W_(),e._extend=function(A,O){if(!O||!T(O))return A;for(var D=Object.keys(O),X=D.length;X--;)A[D[X]]=O[D[X]];return A};function G(A,O){return Object.prototype.hasOwnProperty.call(A,O)}var V=typeof Symbol<"u"?Symbol("util.promisify.custom"):void 0;e.promisify=function(O){if(typeof O!="function")throw new TypeError('The "original" argument must be of type Function');if(V&&O[V]){var D=O[V];if(typeof D!="function")throw new TypeError('The "util.promisify.custom" argument must be of type Function');return Object.defineProperty(D,V,{value:D,enumerable:!1,writable:!1,configurable:!0}),D}function D(){for(var X,ne,ee=new Promise(function(Z,re){X=Z,ne=re}),M=[],te=0;te<arguments.length;te++)M.push(arguments[te]);M.push(function(Z,re){Z?ne(Z):X(re)});try{O.apply(this,M)}catch(Z){ne(Z)}return ee}return Object.setPrototypeOf(D,Object.getPrototypeOf(O)),V&&Object.defineProperty(D,V,{value:D,enumerable:!1,writable:!1,configurable:!0}),Object.defineProperties(D,t(O))},e.promisify.custom=V;function B(A,O){if(!A){var D=new Error("Promise was rejected with a falsy value");D.reason=A,A=D}return O(A)}function J(A){if(typeof A!="function")throw new TypeError('The "original" argument must be of type Function');function O(){for(var D=[],X=0;X<arguments.length;X++)D.push(arguments[X]);var ne=D.pop();if(typeof ne!="function")throw new TypeError("The last argument must be of type Function");var ee=this,M=function(){return ne.apply(ee,arguments)};A.apply(this,D).then(function(te){process.nextTick(M.bind(null,null,te))},function(te){process.nextTick(B.bind(null,te,M))})}return Object.setPrototypeOf(O,Object.getPrototypeOf(A)),Object.defineProperties(O,t(A)),O}e.callbackify=J}(Ln)),Ln}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=(d,p={})=>{let g=[];if(Array.isArray(d))for(let y of d){let _=h.create(y,p);Array.isArray(_)?g.push(..._):g.push(_)}else g=[].concat(h.create(d,p));return p&&p.expand===!0&&p.nodupes===!0&&(g=[...new Set(g)]),g};h.parse=(d,p={})=>f(d,p),h.stringify=(d,p={})=>c(typeof d=="string"?h.parse(d,p):d,p),h.compile=(d,p={})=>(typeof d=="string"&&(d=h.parse(d,p)),l(d,p)),h.expand=(d,p={})=>{typeof d=="string"&&(d=h.parse(d,p));let g=u(d,p);return p.noempty===!0&&(g=g.filter(Boolean)),p.nodupes===!0&&(g=[...new Set(g)]),g},h.create=(d,p={})=>d===""||d.length<3?[d]:p.expand!==!0?h.compile(d,p):h.expand(d,p),s.exports=h},179:(s,a,i)=>{const c=i(783),l=i(617),u=(f,h={})=>{let d=(p,g={})=>{let y=l.isInvalidBrace(g),_=p.invalid===!0&&h.escapeInvalid===!0,b=y===!0||_===!0,S=h.escapeInvalid===!0?"\\":"",x="";if(p.isOpen===!0||p.isClose===!0)return S+p.value;if(p.type==="open")return b?S+p.value:"(";if(p.type==="close")return b?S+p.value:")";if(p.type==="comma")return p.prev.type==="comma"?"":b?p.value:"|";if(p.value)return p.value;if(p.nodes&&p.ranges>0){let j=l.reduce(p.nodes),P=c(...j,{...h,wrap:!1,toRegex:!0});if(P.length!==0)return j.length>1&&P.length>1?`(${P})`:P}if(p.nodes)for(let j of p.nodes)x+=d(j,p);return x};return d(f)};s.exports=u},457:s=>{s.exports={MAX_LENGTH:65536,CHAR_0:"0",CHAR_9:"9",CHAR_UPPERCASE_A:"A",CHAR_LOWERCASE_A:"a",CHAR_UPPERCASE_Z:"Z",CHAR_LOWERCASE_Z:"z",CHAR_LEFT_PARENTHESES:"(",CHAR_RIGHT_PARENTHESES:")",CHAR_ASTERISK:"*",CHAR_AMPERSAND:"&",CHAR_AT:"@",CHAR_BACKSLASH:"\\",CHAR_BACKTICK:"`",CHAR_CARRIAGE_RETURN:"\r",CHAR_CIRCUMFLEX_ACCENT:"^",CHAR_COLON:":",CHAR_COMMA:",",CHAR_DOLLAR:"$",CHAR_DOT:".",CHAR_DOUBLE_QUOTE:'"',CHAR_EQUAL:"=",CHAR_EXCLAMATION_MARK:"!",CHAR_FORM_FEED:"\f",CHAR_FORWARD_SLASH:"/",CHAR_HASH:"#",CHAR_HYPHEN_MINUS:"-",CHAR_LEFT_ANGLE_BRACKET:"<",CHAR_LEFT_CURLY_BRACE:"{",CHAR_LEFT_SQUARE_BRACKET:"[",CHAR_LINE_FEED:`
|
|
25
|
+
`,CHAR_NO_BREAK_SPACE:" ",CHAR_PERCENT:"%",CHAR_PLUS:"+",CHAR_QUESTION_MARK:"?",CHAR_RIGHT_ANGLE_BRACKET:">",CHAR_RIGHT_CURLY_BRACE:"}",CHAR_RIGHT_SQUARE_BRACKET:"]",CHAR_SEMICOLON:";",CHAR_SINGLE_QUOTE:"'",CHAR_SPACE:" ",CHAR_TAB:" ",CHAR_UNDERSCORE:"_",CHAR_VERTICAL_LINE:"|",CHAR_ZERO_WIDTH_NOBREAK_SPACE:"\uFEFF"}},13:(s,a,i)=>{const c=i(783),l=i(137),u=i(617),f=(d="",p="",g=!1)=>{let y=[];if(d=[].concat(d),p=[].concat(p),!p.length)return d;if(!d.length)return g?u.flatten(p).map(_=>`{${_}}`):p;for(let _ of d)if(Array.isArray(_))for(let b of _)y.push(f(b,p,g));else for(let b of p)g===!0&&typeof b=="string"&&(b=`{${b}}`),y.push(Array.isArray(b)?f(_,b,g):_+b);return u.flatten(y)},h=(d,p={})=>{let g=p.rangeLimit===void 0?1e3:p.rangeLimit,y=(_,b={})=>{_.queue=[];let S=b,x=b.queue;for(;S.type!=="brace"&&S.type!=="root"&&S.parent;)S=S.parent,x=S.queue;if(_.invalid||_.dollar){x.push(f(x.pop(),l(_,p)));return}if(_.type==="brace"&&_.invalid!==!0&&_.nodes.length===2){x.push(f(x.pop(),["{}"]));return}if(_.nodes&&_.ranges>0){let C=u.reduce(_.nodes);if(u.exceedsLimit(...C,p.step,g))throw new RangeError("expanded array length exceeds range limit. Use options.rangeLimit to increase or disable the limit.");let R=c(...C,p);R.length===0&&(R=l(_,p)),x.push(f(x.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"){x.push(f(x.pop(),P,j));continue}if(R.value&&R.type!=="open"){P.push(f(P.pop(),R.value));continue}R.nodes&&y(R,_)}return P};return u.flatten(y(d))};s.exports=h},719:(s,a,i)=>{const c=i(137),{MAX_LENGTH:l,CHAR_BACKSLASH:u,CHAR_BACKTICK:f,CHAR_COMMA:h,CHAR_DOT:d,CHAR_LEFT_PARENTHESES:p,CHAR_RIGHT_PARENTHESES:g,CHAR_LEFT_CURLY_BRACE:y,CHAR_RIGHT_CURLY_BRACE:_,CHAR_LEFT_SQUARE_BRACKET:b,CHAR_RIGHT_SQUARE_BRACKET:S,CHAR_DOUBLE_QUOTE:x,CHAR_SINGLE_QUOTE:j,CHAR_NO_BREAK_SPACE:P,CHAR_ZERO_WIDTH_NOBREAK_SPACE:E}=i(457),C=(R,T={})=>{if(typeof R!="string")throw new TypeError("Expected a string");let w=T||{},N=typeof w.maxLength=="number"?Math.min(l,w.maxLength):l;if(R.length>N)throw new SyntaxError(`Input length (${R.length}), exceeds max characters (${N})`);let I={type:"root",input:R,nodes:[]},z=[I],k=I,W=I,q=0,F=R.length,G=0,V=0,B;const J=()=>R[G++],A=O=>{if(O.type==="text"&&W.type==="dot"&&(W.type="text"),W&&W.type==="text"&&O.type==="text"){W.value+=O.value;return}return k.nodes.push(O),O.parent=k,O.prev=W,W=O,O};for(A({type:"bos"});G<F;)if(k=z[z.length-1],B=J(),!(B===E||B===P)){if(B===u){A({type:"text",value:(T.keepEscaping?B:"")+J()});continue}if(B===S){A({type:"text",value:"\\"+B});continue}if(B===b){q++;let O;for(;G<F&&(O=J());){if(B+=O,O===b){q++;continue}if(O===u){B+=J();continue}if(O===S&&(q--,q===0))break}A({type:"text",value:B});continue}if(B===p){k=A({type:"paren",nodes:[]}),z.push(k),A({type:"text",value:B});continue}if(B===g){if(k.type!=="paren"){A({type:"text",value:B});continue}k=z.pop(),A({type:"text",value:B}),k=z[z.length-1];continue}if(B===x||B===j||B===f){let O=B,D;for(T.keepQuotes!==!0&&(B="");G<F&&(D=J());){if(D===u){B+=D+J();continue}if(D===O){T.keepQuotes===!0&&(B+=D);break}B+=D}A({type:"text",value:B});continue}if(B===y){V++;let D={type:"brace",open:!0,close:!1,dollar:W.value&&W.value.slice(-1)==="$"||k.dollar===!0,depth:V,commas:0,ranges:0,nodes:[]};k=A(D),z.push(k),A({type:"open",value:B});continue}if(B===_){if(k.type!=="brace"){A({type:"text",value:B});continue}let O="close";k=z.pop(),k.close=!0,A({type:O,value:B}),V--,k=z[z.length-1];continue}if(B===h&&V>0){if(k.ranges>0){k.ranges=0;let O=k.nodes.shift();k.nodes=[O,{type:"text",value:c(k)}]}A({type:"comma",value:B}),k.commas++;continue}if(B===d&&V>0&&k.commas===0){let O=k.nodes;if(V===0||O.length===0){A({type:"text",value:B});continue}if(W.type==="dot"){if(k.range=[],W.value+=B,W.type="range",k.nodes.length!==3&&k.nodes.length!==5){k.invalid=!0,k.ranges=0,W.type="text";continue}k.ranges++,k.args=[];continue}if(W.type==="range"){O.pop();let D=O[O.length-1];D.value+=W.value+B,W=D,k.ranges--;continue}A({type:"dot",value:B});continue}A({type:"text",value:B})}do if(k=z.pop(),k.type!=="root"){k.nodes.forEach(X=>{X.nodes||(X.type==="open"&&(X.isOpen=!0),X.type==="close"&&(X.isClose=!0),X.nodes||(X.type="text"),X.invalid=!0)});let O=z[z.length-1],D=O.nodes.indexOf(k);O.nodes.splice(D,1,...k.nodes)}while(z.length>0);return A({type:"eos"}),I};s.exports=C},137:(s,a,i)=>{const c=i(617);s.exports=(l,u={})=>{let f=(h,d={})=>{let p=u.escapeInvalid&&c.isInvalidBrace(d),g=h.invalid===!0&&u.escapeInvalid===!0,y="";if(h.value)return(p||g)&&c.isOpenOrClose(h)?"\\"+h.value:h.value;if(h.value)return h.value;if(h.nodes)for(let _ of h.nodes)y+=f(_);return y};return f(l)}},617:(s,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=
|
|
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!=="",d=w=>Number.isInteger(+w),p=w=>{let N=`${w}`,I=-1;if(N[0]==="-"&&(N=N.slice(1)),N==="0")return!1;for(;N[++I]==="0";);return I>0},g=(w,N,I)=>typeof w=="string"||typeof N=="string"?!0:I.stringify===!0,y=(w,N,I)=>{if(N>0){let z=w[0]==="-"?"-":"";z&&(w=w.slice(1)),w=z+w.padStart(z?N-1:N,"0")}return I===!1?String(w):w},_=(w,N)=>{let I=w[0]==="-"?"-":"";for(I&&(w=w.slice(1),N--);w.length<N;)w="0"+w;return I?"-"+w:w},b=(w,N)=>{w.negatives.sort((q,F)=>q<F?-1:q>F?1:0),w.positives.sort((q,F)=>q<F?-1:q>F?1:0);let I=N.capture?"":"?:",z="",k="",W;return w.positives.length&&(z=w.positives.join("|")),w.negatives.length&&(k=`-(${I}${w.negatives.join("|")})`),z&&k?W=`${z}|${k}`:W=z||k,N.wrap?`(${I}${W})`:W},S=(w,N,I,z)=>{if(I)return l(w,N,{wrap:!1,...z});let k=String.fromCharCode(w);if(w===N)return k;let W=String.fromCharCode(N);return`[${k}-${W}]`},x=(w,N,I)=>{if(Array.isArray(w)){let z=I.wrap===!0,k=I.capture?"":"?:";return z?`(${k}${w.join("|")})`:w.join("|")}return l(w,N,I)},j=(...w)=>new RangeError("Invalid range arguments: "+c.inspect(...w)),P=(w,N,I)=>{if(I.strictRanges===!0)throw j([w,N]);return[]},E=(w,N)=>{if(N.strictRanges===!0)throw new TypeError(`Expected step "${w}" to be a number`);return[]},C=(w,N,I=1,z={})=>{let k=Number(w),W=Number(N);if(!Number.isInteger(k)||!Number.isInteger(W)){if(z.strictRanges===!0)throw j([w,N]);return[]}k===0&&(k=0),W===0&&(W=0);let q=k>W,F=String(w),G=String(N),V=String(I);I=Math.max(Math.abs(I),1);let B=p(F)||p(G)||p(V),J=B?Math.max(F.length,G.length,V.length):0,A=B===!1&&g(w,N,z)===!1,O=z.transform||f(A);if(z.toRegex&&I===1)return S(_(w,J),_(N,J),!0,z);let D={negatives:[],positives:[]},X=M=>D[M<0?"negatives":"positives"].push(Math.abs(M)),ne=[],ee=0;for(;q?k>=W:k<=W;)z.toRegex===!0&&I>1?X(k):ne.push(y(O(k,ee),J,A)),k=q?k-I:k+I,ee++;return z.toRegex===!0?I>1?b(D,z):x(ne,null,{wrap:!1,...z}):ne},R=(w,N,I=1,z={})=>{if(!d(w)&&w.length>1||!d(N)&&N.length>1)return P(w,N,z);let k=z.transform||(A=>String.fromCharCode(A)),W=`${w}`.charCodeAt(0),q=`${N}`.charCodeAt(0),F=W>q,G=Math.min(W,q),V=Math.max(W,q);if(z.toRegex&&I===1)return S(G,V,!1,z);let B=[],J=0;for(;F?W>=q:W<=q;)B.push(k(W,J)),W=F?W-I:W+I,J++;return z.toRegex===!0?x(B,null,{wrap:!1,options:z}):B},T=(w,N,I,z={})=>{if(N==null&&h(w))return[w];if(!h(w)||!h(N))return P(w,N,z);if(typeof I=="function")return T(w,N,1,{transform:I});if(u(I))return T(w,N,0,I);let k={...z};return k.capture===!0&&(k.wrap=!0),I=I||k.step||1,d(I)?d(w)&&d(N)?C(w,N,I,k):R(w,N,Math.max(Math.abs(I),1),k):I!=null&&!u(I)?E(I,k):T(w,N,1,I)};s.exports=T},357:s=>{/*!
|
|
31
31
|
* is-number <https://github.com/jonschlinkert/is-number>
|
|
32
32
|
*
|
|
33
33
|
* Copyright (c) 2014-present, Jon Schlinkert.
|
|
34
34
|
* Released under the MIT License.
|
|
35
|
-
*/s.exports=function(i){return typeof i=="number"?i-i===0:typeof i=="string"&&i.trim()!==""?Number.isFinite?Number.isFinite(+i):isFinite(+i):!1}},971:(s,i,a)=>{const c=a(837),l=a(333),u=a(251),f=a(513),h=p=>p===""||p==="./",d=(p,g,y)=>{g=[].concat(g),p=[].concat(p);let _=new Set,b=new Set,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),T=R.state.negated||R.state.negatedExtglob;T&&v++;for(let w of p){let I=R(w,!0);(T?!I.isMatch:I.isMatch)&&(T?_.add(I.output):(_.delete(I.output),b.add(I.output)))}}let E=(v===g.length?[...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};d.match=d,d.matcher=(p,g)=>u(p,g),d.isMatch=(p,g,y)=>u(g,y)(p),d.any=d.isMatch,d.not=(p,g,y={})=>{g=[].concat(g).map(String);let _=new Set,b=[],v=d(p,g,{...y,onResult:j=>{y.onResult&&y.onResult(j),b.push(j.output)}});for(let j of b)v.includes(j)||_.add(j);return[..._]},d.contains=(p,g,y)=>{if(typeof p!="string")throw new TypeError(`Expected a string: "${c.inspect(p)}"`);if(Array.isArray(g))return g.some(_=>d.contains(p,_,y));if(typeof g=="string"){if(h(p)||h(g))return!1;if(p.includes(g)||p.startsWith("./")&&p.slice(2).includes(g))return!0}return d.isMatch(p,g,{...y,contains:!0})},d.matchKeys=(p,g,y)=>{if(!f.isObject(p))throw new TypeError("Expected the first argument to be an object");let _=d(Object.keys(p),g,y),b={};for(let S of _)b[S]=p[S];return b},d.some=(p,g,y)=>{let _=[].concat(p);for(let b of[].concat(g)){let S=u(String(b),y);if(_.some(v=>S(v)))return!0}return!1},d.every=(p,g,y)=>{let _=[].concat(p);for(let b of[].concat(g)){let S=u(String(b),y);if(!_.every(v=>S(v)))return!1}return!0},d.all=(p,g,y)=>{if(typeof p!="string")throw new TypeError(`Expected a string: "${c.inspect(p)}"`);return[].concat(g).every(_=>u(_,y)(p))},d.capture=(p,g,y)=>{let _=f.isWindows(y),S=u.makeRe(String(p),{...y,capture:!0}).exec(_?f.toPosixSlashes(g):g);if(S)return S.slice(1).map(v=>v===void 0?"":v)},d.makeRe=(...p)=>u.makeRe(...p),d.scan=(...p)=>u.scan(...p),d.parse=(p,g)=>{let y=[];for(let _ of[].concat(p||[]))for(let b of l(String(_),g))y.push(u.parse(b,g));return y},d.braces=(p,g)=>{if(typeof p!="string")throw new TypeError("Expected a string");return g&&g.nobrace===!0||!/\{.*\}/.test(p)?[p]:l(p,g)},d.braceExpand=(p,g)=>{if(typeof p!="string")throw new TypeError("Expected a string");return d.braces(p,{...g,expand:!0})},s.exports=d},251:(s,i,a)=>{s.exports=a(683)},356:(s,i,a)=>{const c=a(17),l="\\\\/",u=`[^${l}]`,f="\\.",h="\\+",d="\\?",p="\\/",g="(?=.)",y="[^/]",_=`(?:${p}|$)`,b=`(?:^|${p})`,S=`${f}{1,2}${_}`,v=`(?!${f})`,j=`(?!${b}${S})`,P=`(?!${f}{0,1}${_})`,E=`(?!${S})`,C=`[^.${p}]`,R=`${y}*?`,T={DOT_LITERAL:f,PLUS_LITERAL:h,QMARK_LITERAL:d,SLASH_LITERAL:p,ONE_CHAR:g,QMARK:y,END_ANCHOR:_,DOTS_SLASH: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={...T,SLASH_LITERAL:`[${l}]`,QMARK:u,STAR:`${u}*?`,DOTS_SLASH:`${f}{1,2}(?:[${l}]|$)`,NO_DOT:`(?!${f})`,NO_DOTS:`(?!(?:^|[${l}])${f}{1,2}(?:[${l}]|$))`,NO_DOT_SLASH:`(?!${f}{0,1}(?:[${l}]|$))`,NO_DOTS_SLASH:`(?!${f}{1,2}(?:[${l}]|$))`,QMARK_NO_DOT:`[^.${l}]`,START_ANCHOR:`(?:^|[${l}])`,END_ANCHOR:`(?:[${l}]|$)`},I={alnum:"a-zA-Z0-9",alpha:"a-zA-Z",ascii:"\\x00-\\x7F",blank:" \\t",cntrl:"\\x00-\\x1F\\x7F",digit:"0-9",graph:"\\x21-\\x7E",lower:"a-z",print:"\\x20-\\x7E ",punct:"\\-!\"#$%&'()\\*+,./:;<=>?@[\\]^_`{|}~",space:" \\t\\r\\n\\v\\f",upper:"A-Z",word:"A-Za-z0-9_",xdigit:"A-Fa-f0-9"};s.exports={MAX_LENGTH:65536,POSIX_REGEX_SOURCE:I,REGEX_BACKSLASH:/\\(?![*+?^${}(|)[\]])/g,REGEX_NON_SPECIAL_CHARS:/^[^@![\].,$*+?^{}()|\\/]+/,REGEX_SPECIAL_CHARS:/[-*+?.^${}(|)[\]]/,REGEX_SPECIAL_CHARS_BACKREF:/(\\?)((\W)(\3*))/g,REGEX_SPECIAL_CHARS_GLOBAL:/([-*+?.^${}(|)[\]])/g,REGEX_REMOVE_BACKSLASH:/(?:\[.*?[^\\]\]|\\(?=.))/g,REPLACEMENTS:{"***":"*","**/**":"**","**/**/**":"**"},CHAR_0:48,CHAR_9:57,CHAR_UPPERCASE_A:65,CHAR_LOWERCASE_A:97,CHAR_UPPERCASE_Z:90,CHAR_LOWERCASE_Z:122,CHAR_LEFT_PARENTHESES:40,CHAR_RIGHT_PARENTHESES:41,CHAR_ASTERISK:42,CHAR_AMPERSAND:38,CHAR_AT:64,CHAR_BACKWARD_SLASH:92,CHAR_CARRIAGE_RETURN:13,CHAR_CIRCUMFLEX_ACCENT:94,CHAR_COLON:58,CHAR_COMMA:44,CHAR_DOT:46,CHAR_DOUBLE_QUOTE:34,CHAR_EQUAL:61,CHAR_EXCLAMATION_MARK:33,CHAR_FORM_FEED:12,CHAR_FORWARD_SLASH:47,CHAR_GRAVE_ACCENT:96,CHAR_HASH:35,CHAR_HYPHEN_MINUS:45,CHAR_LEFT_ANGLE_BRACKET:60,CHAR_LEFT_CURLY_BRACE:123,CHAR_LEFT_SQUARE_BRACKET:91,CHAR_LINE_FEED:10,CHAR_NO_BREAK_SPACE:160,CHAR_PERCENT:37,CHAR_PLUS:43,CHAR_QUESTION_MARK:63,CHAR_RIGHT_ANGLE_BRACKET:62,CHAR_RIGHT_CURLY_BRACE:125,CHAR_RIGHT_SQUARE_BRACKET:93,CHAR_SEMICOLON:59,CHAR_SINGLE_QUOTE:39,CHAR_SPACE:32,CHAR_TAB:9,CHAR_UNDERSCORE:95,CHAR_VERTICAL_LINE:124,CHAR_ZERO_WIDTH_NOBREAK_SPACE:65279,SEP:c.sep,extglobChars(N){return{"!":{type:"negate",open:"(?:(?!(?:",close:`))${N.STAR})`},"?":{type:"qmark",open:"(?:",close:")?"},"+":{type:"plus",open:"(?:",close:")+"},"*":{type:"star",open:"(?:",close:")*"},"@":{type:"at",open:"(?:",close:")"}}},globChars(N){return N===!0?w:T}}},754:(s,i,a)=>{const c=a(356),l=a(513),{MAX_LENGTH:u,POSIX_REGEX_SOURCE:f,REGEX_NON_SPECIAL_CHARS:h,REGEX_SPECIAL_CHARS_BACKREF:d,REPLACEMENTS:p}=c,g=(b,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=p[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?"":"?:",T=l.isWindows(S),w=c.globChars(T),I=c.extglobChars(w),{DOT_LITERAL:N,PLUS_LITERAL:z,SLASH_LITERAL:k,ONE_CHAR:W,DOTS_SLASH:q,NO_DOT:B,NO_DOT_SLASH:V,NO_DOTS_SLASH:G,QMARK:F,QMARK_NO_DOT:J,STAR:A,START_ANCHOR:O}=w,D=Q=>`(${R}(?:(?!${O}${Q.dot?q:N}).)*?)`,X=v.dot?"":B,ne=v.dot?F:J;let ee=v.bash===!0?D(v):A;v.capture&&(ee=`(${ee})`),typeof v.noext=="boolean"&&(v.noextglob=v.noext);const M={input:b,index:-1,start:0,dot:v.dot===!0,consumed:"",output:"",prefix:"",backtrack:!1,negated:!1,brackets:0,braces:0,parens:0,quotes:0,globstar:!1,tokens:C};b=l.removePrefix(b,M),P=b.length;const te=[],Z=[],re=[];let $=E,L;const oe=()=>M.index===P-1,ae=M.peek=(Q=1)=>b[M.index+Q],fe=M.advance=()=>b[++M.index],pe=()=>b.slice(M.index+1),ue=(Q="",se=0)=>{M.consumed+=Q,M.index+=se},H=Q=>{M.output+=Q.output!=null?Q.output:Q.value,ue(Q.value)},be=()=>{let Q=1;for(;ae()==="!"&&(ae(2)!=="("||ae(3)==="?");)fe(),M.start++,Q++;return Q%2===0?!1:(M.negated=!0,M.start++,!0)},ie=Q=>{M[Q]++,re.push(Q)},_e=Q=>{M[Q]--,re.pop()},K=Q=>{if($.type==="globstar"){const se=M.braces>0&&(Q.type==="comma"||Q.type==="brace"),Y=Q.extglob===!0||te.length&&(Q.type==="pipe"||Q.type==="paren");Q.type!=="slash"&&Q.type!=="paren"&&!se&&!Y&&(M.output=M.output.slice(0,-$.output.length),$.type="star",$.value="*",$.output=ee,M.output+=$.output)}if(te.length&&Q.type!=="paren"&&!I[Q.value]&&(te[te.length-1].inner+=Q.value),(Q.value||Q.output)&&H(Q),$&&$.type==="text"&&Q.type==="text"){$.value+=Q.value,$.output=($.output||"")+Q.value;return}Q.prev=$,C.push(Q),$=Q},me=(Q,se)=>{const Y={...I[se],conditions:1,inner:""};Y.prev=$,Y.parens=M.parens,Y.output=M.output;const he=(v.capture?"(":"")+Y.open;ie("parens"),K({type:Q,value:se,output:M.output?"":W}),K({type:"paren",extglob:!0,value:fe(),output:he}),te.push(Y)},Re=Q=>{let se=Q.close+(v.capture?")":"");if(Q.type==="negate"){let Y=ee;Q.inner&&Q.inner.length>1&&Q.inner.includes("/")&&(Y=D(v)),(Y!==ee||oe()||/^\)+$/.test(pe()))&&(se=Q.close=`)$))${Y}`),Q.prev.type==="bos"&&(M.negatedExtglob=!0)}K({type:"paren",extglob:!0,value:L,output:se}),_e("parens")};if(v.fastpaths!==!1&&!/(^[*!]|[/()[\]{}"])/.test(b)){let Q=!1,se=b.replace(d,(Y,he,je,Ne,we,Hr)=>Ne==="\\"?(Q=!0,Y):Ne==="?"?he?he+Ne+(we?F.repeat(we.length):""):Hr===0?ne+(we?F.repeat(we.length):""):F.repeat(je.length):Ne==="."?N.repeat(je.length):Ne==="*"?he?he+Ne+(we?ee:""):ee:he?Y:`\\${Y}`);return Q===!0&&(v.unescape===!0?se=se.replace(/\\/g,""):se=se.replace(/\\+/g,Y=>Y.length%2===0?"\\\\":Y?"\\":"")),se===b&&v.contains===!0?(M.output=b,M):(M.output=l.wrapOutput(se,M,S),M)}for(;!oe();){if(L=fe(),L==="\0")continue;if(L==="\\"){const Y=ae();if(Y==="/"&&v.bash!==!0||Y==="."||Y===";")continue;if(!Y){L+="\\",K({type:"text",value:L});continue}const he=/^\\+/.exec(pe());let je=0;if(he&&he[0].length>2&&(je=he[0].length,M.index+=je,je%2!==0&&(L+="\\")),v.unescape===!0?L=fe()||"":L+=fe()||"",M.brackets===0){K({type:"text",value:L});continue}}if(M.brackets>0&&(L!=="]"||$.value==="["||$.value==="[^")){if(v.posix!==!1&&L===":"){const Y=$.value.slice(1);if(Y.includes("[")&&($.posix=!0,Y.includes(":"))){const he=$.value.lastIndexOf("["),je=$.value.slice(0,he),Ne=$.value.slice(he+2),we=f[Ne];if(we){$.value=je+we,M.backtrack=!0,fe(),!E.output&&C.indexOf($)===1&&(E.output=W);continue}}}(L==="["&&ae()!==":"||L==="-"&&ae()==="]")&&(L=`\\${L}`),L==="]"&&($.value==="["||$.value==="[^")&&(L=`\\${L}`),v.posix===!0&&L==="!"&&$.value==="["&&(L="^"),$.value+=L,H({value:L});continue}if(M.quotes===1&&L!=='"'){L=l.escapeRegex(L),$.value+=L,H({value:L});continue}if(L==='"'){M.quotes=M.quotes===1?0:1,v.keepQuotes===!0&&K({type:"text",value:L});continue}if(L==="("){ie("parens"),K({type:"paren",value:L});continue}if(L===")"){if(M.parens===0&&v.strictBrackets===!0)throw new SyntaxError(y("opening","("));const Y=te[te.length-1];if(Y&&M.parens===Y.parens+1){Re(te.pop());continue}K({type:"paren",value:L,output:M.parens?")":"\\)"}),_e("parens");continue}if(L==="["){if(v.nobracket===!0||!pe().includes("]")){if(v.nobracket!==!0&&v.strictBrackets===!0)throw new SyntaxError(y("closing","]"));L=`\\${L}`}else ie("brackets");K({type:"bracket",value:L});continue}if(L==="]"){if(v.nobracket===!0||$&&$.type==="bracket"&&$.value.length===1){K({type:"text",value:L,output:`\\${L}`});continue}if(M.brackets===0){if(v.strictBrackets===!0)throw new SyntaxError(y("opening","["));K({type:"text",value:L,output:`\\${L}`});continue}_e("brackets");const Y=$.value.slice(1);if($.posix!==!0&&Y[0]==="^"&&!Y.includes("/")&&(L=`/${L}`),$.value+=L,H({value:L}),v.literalBrackets===!1||l.hasRegexChars(Y))continue;const he=l.escapeRegex($.value);if(M.output=M.output.slice(0,-$.value.length),v.literalBrackets===!0){M.output+=he,$.value=he;continue}$.value=`(${R}${he}|${$.value})`,M.output+=$.value;continue}if(L==="{"&&v.nobrace!==!0){ie("braces");const Y={type:"brace",value:L,output:"(",outputIndex:M.output.length,tokensIndex:M.tokens.length};Z.push(Y),K(Y);continue}if(L==="}"){const Y=Z[Z.length-1];if(v.nobrace===!0||!Y){K({type:"text",value:L,output:L});continue}let he=")";if(Y.dots===!0){const je=C.slice(),Ne=[];for(let we=je.length-1;we>=0&&(C.pop(),je[we].type!=="brace");we--)je[we].type!=="dots"&&Ne.unshift(je[we].value);he=g(Ne,v),M.backtrack=!0}if(Y.comma!==!0&&Y.dots!==!0){const je=M.output.slice(0,Y.outputIndex),Ne=M.tokens.slice(Y.tokensIndex);Y.value=Y.output="\\{",L=he="\\}",M.output=je;for(const we of Ne)M.output+=we.output||we.value}K({type:"brace",value:L,output:he}),_e("braces"),Z.pop();continue}if(L==="|"){te.length>0&&te[te.length-1].conditions++,K({type:"text",value:L});continue}if(L===","){let Y=L;const he=Z[Z.length-1];he&&re[re.length-1]==="braces"&&(he.comma=!0,Y="|"),K({type:"comma",value:L,output:Y});continue}if(L==="/"){if($.type==="dot"&&M.index===M.start+1){M.start=M.index+1,M.consumed="",M.output="",C.pop(),$=E;continue}K({type:"slash",value:L,output:k});continue}if(L==="."){if(M.braces>0&&$.type==="dot"){$.value==="."&&($.output=N);const Y=Z[Z.length-1];$.type="dots",$.output+=L,$.value+=L,Y.dots=!0;continue}if(M.braces+M.parens===0&&$.type!=="bos"&&$.type!=="slash"){K({type:"text",value:L,output:N});continue}K({type:"dot",value:L,output:N});continue}if(L==="?"){if(!($&&$.value==="(")&&v.noextglob!==!0&&ae()==="("&&ae(2)!=="?"){me("qmark",L);continue}if($&&$.type==="paren"){const he=ae();let je=L;if(he==="<"&&!l.supportsLookbehinds())throw new Error("Node.js v10 or higher is required for regex lookbehinds");($.value==="("&&!/[!=<:]/.test(he)||he==="<"&&!/<([!=]|\w+>)/.test(pe()))&&(je=`\\${L}`),K({type:"text",value:L,output:je});continue}if(v.dot!==!0&&($.type==="slash"||$.type==="bos")){K({type:"qmark",value:L,output:J});continue}K({type:"qmark",value:L,output:F});continue}if(L==="!"){if(v.noextglob!==!0&&ae()==="("&&(ae(2)!=="?"||!/[!=<:]/.test(ae(3)))){me("negate",L);continue}if(v.nonegate!==!0&&M.index===0){be();continue}}if(L==="+"){if(v.noextglob!==!0&&ae()==="("&&ae(2)!=="?"){me("plus",L);continue}if($&&$.value==="("||v.regex===!1){K({type:"plus",value:L,output:z});continue}if($&&($.type==="bracket"||$.type==="paren"||$.type==="brace")||M.parens>0){K({type:"plus",value:L});continue}K({type:"plus",value:z});continue}if(L==="@"){if(v.noextglob!==!0&&ae()==="("&&ae(2)!=="?"){K({type:"at",extglob:!0,value:L,output:""});continue}K({type:"text",value:L});continue}if(L!=="*"){(L==="$"||L==="^")&&(L=`\\${L}`);const Y=h.exec(pe());Y&&(L+=Y[0],M.index+=Y[0].length),K({type:"text",value:L});continue}if($&&($.type==="globstar"||$.star===!0)){$.type="star",$.star=!0,$.value+=L,$.output=ee,M.backtrack=!0,M.globstar=!0,ue(L);continue}let Q=pe();if(v.noextglob!==!0&&/^\([^?]/.test(Q)){me("star",L);continue}if($.type==="star"){if(v.noglobstar===!0){ue(L);continue}const Y=$.prev,he=Y.prev,je=Y.type==="slash"||Y.type==="bos",Ne=he&&(he.type==="star"||he.type==="globstar");if(v.bash===!0&&(!je||Q[0]&&Q[0]!=="/")){K({type:"star",value:L,output:""});continue}const we=M.braces>0&&(Y.type==="comma"||Y.type==="brace"),Hr=te.length&&(Y.type==="pipe"||Y.type==="paren");if(!je&&Y.type!=="paren"&&!we&&!Hr){K({type:"star",value:L,output:""});continue}for(;Q.slice(0,3)==="/**";){const Jt=b[M.index+4];if(Jt&&Jt!=="/")break;Q=Q.slice(3),ue("/**",3)}if(Y.type==="bos"&&oe()){$.type="globstar",$.value+=L,$.output=D(v),M.output=$.output,M.globstar=!0,ue(L);continue}if(Y.type==="slash"&&Y.prev.type!=="bos"&&!Ne&&oe()){M.output=M.output.slice(0,-(Y.output+$.output).length),Y.output=`(?:${Y.output}`,$.type="globstar",$.output=D(v)+(v.strictSlashes?")":"|$)"),$.value+=L,M.globstar=!0,M.output+=Y.output+$.output,ue(L);continue}if(Y.type==="slash"&&Y.prev.type!=="bos"&&Q[0]==="/"){const Jt=Q[1]!==void 0?"|$":"";M.output=M.output.slice(0,-(Y.output+$.output).length),Y.output=`(?:${Y.output}`,$.type="globstar",$.output=`${D(v)}${k}|${k}${Jt})`,$.value+=L,M.output+=Y.output+$.output,M.globstar=!0,ue(L+fe()),K({type:"slash",value:"/",output:""});continue}if(Y.type==="bos"&&Q[0]==="/"){$.type="globstar",$.value+=L,$.output=`(?:^|${k}|${D(v)}${k})`,M.output=$.output,M.globstar=!0,ue(L+fe()),K({type:"slash",value:"/",output:""});continue}M.output=M.output.slice(0,-$.output.length),$.type="globstar",$.output=D(v),$.value+=L,M.output+=$.output,M.globstar=!0,ue(L);continue}const se={type:"star",value:L,output:ee};if(v.bash===!0){se.output=".*?",($.type==="bos"||$.type==="slash")&&(se.output=X+se.output),K(se);continue}if($&&($.type==="bracket"||$.type==="paren")&&v.regex===!0){se.output=L,K(se);continue}(M.index===M.start||$.type==="slash"||$.type==="dot")&&($.type==="dot"?(M.output+=V,$.output+=V):v.dot===!0?(M.output+=G,$.output+=G):(M.output+=X,$.output+=X),ae()!=="*"&&(M.output+=W,$.output+=W)),K(se)}for(;M.brackets>0;){if(v.strictBrackets===!0)throw new SyntaxError(y("closing","]"));M.output=l.escapeLast(M.output,"["),_e("brackets")}for(;M.parens>0;){if(v.strictBrackets===!0)throw new SyntaxError(y("closing",")"));M.output=l.escapeLast(M.output,"("),_e("parens")}for(;M.braces>0;){if(v.strictBrackets===!0)throw new SyntaxError(y("closing","}"));M.output=l.escapeLast(M.output,"{"),_e("braces")}if(v.strictSlashes!==!0&&($.type==="star"||$.type==="bracket")&&K({type:"maybe_slash",value:"",output:`${k}?`}),M.backtrack===!0){M.output="";for(const Q of M.tokens)M.output+=Q.output!=null?Q.output:Q.value,Q.suffix&&(M.output+=Q.suffix)}return M};_.fastpaths=(b,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=p[b]||b;const E=l.isWindows(S),{DOT_LITERAL:C,SLASH_LITERAL:R,ONE_CHAR:T,DOTS_SLASH:w,NO_DOT:I,NO_DOTS:N,NO_DOTS_SLASH:z,STAR:k,START_ANCHOR:W}=c.globChars(E),q=v.dot?N:I,B=v.dot?z:I,V=v.capture?"":"?:",G={negated:!1,prefix:""};let F=v.bash===!0?".*?":k;v.capture&&(F=`(${F})`);const J=X=>X.noglobstar===!0?F:`(${V}(?:(?!${W}${X.dot?w:C}).)*?)`,A=X=>{switch(X){case"*":return`${q}${T}${F}`;case".*":return`${C}${T}${F}`;case"*.*":return`${q}${F}${C}${T}${F}`;case"*/*":return`${q}${F}${R}${T}${B}${F}`;case"**":return q+J(v);case"**/*":return`(?:${q}${J(v)}${R})?${B}${T}${F}`;case"**/*.*":return`(?:${q}${J(v)}${R})?${B}${F}${C}${T}${F}`;case"**/.*":return`(?:${q}${J(v)}${R})?${C}${T}${F}`;default:{const ne=/^(.*?)\.(\w+)$/.exec(X);if(!ne)return;const ee=A(ne[1]);return ee?ee+C+ne[2]:void 0}}},O=l.removePrefix(b,G);let D=A(O);return D&&v.strictSlashes!==!0&&(D+=`${R}?`),D},s.exports=_},683:(s,i,a)=>{const c=a(17),l=a(700),u=a(754),f=a(513),h=a(356),d=g=>g&&typeof g=="object"&&!Array.isArray(g),p=(g,y,_=!1)=>{if(Array.isArray(g)){const R=g.map(w=>p(w,y,_));return w=>{for(const I of R){const N=I(w);if(N)return N}return!1}}const b=d(g)&&g.tokens&&g.input;if(g===""||typeof g!="string"&&!b)throw new TypeError("Expected pattern to be a non-empty string");const S=y||{},v=f.isWindows(y),j=b?p.compileRe(g,y):p.makeRe(g,y,!1,!0),P=j.state;delete j.state;let E=()=>!1;if(S.ignore){const R={...y,ignore:null,onMatch:null,onResult:null};E=p(S.ignore,R,_)}const C=(R,T=!1)=>{const{isMatch:w,match:I,output:N}=p.test(R,j,y,{glob:g,posix:v}),z={glob:g,state:P,regex:j,posix:v,input:R,output:N,match:I,isMatch:w};return typeof S.onResult=="function"&&S.onResult(z),w===!1?(z.isMatch=!1,T?z:!1):E(R)?(typeof S.onIgnore=="function"&&S.onIgnore(z),z.isMatch=!1,T?z:!1):(typeof S.onMatch=="function"&&S.onMatch(z),T?z:!0)};return _&&(C.state=P),C};p.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=p.matchBase(g,y,_,S):P=y.exec(E)),{isMatch:!!P,match:P,output:E}},p.matchBase=(g,y,_,b=f.isWindows(_))=>(y instanceof RegExp?y:p.makeRe(y,_)).test(c.basename(g)),p.isMatch=(g,y,_)=>p(y,_)(g),p.parse=(g,y)=>Array.isArray(g)?g.map(_=>p.parse(_,y)):u(g,{...y,fastpaths:!1}),p.scan=(g,y)=>l(g,y),p.compileRe=(g,y,_=!1,b=!1)=>{if(_===!0)return g.output;const S=y||{},v=S.contains?"":"^",j=S.contains?"":"$";let P=`${v}(?:${g.output})${j}`;g&&g.negated===!0&&(P=`^(?!${P}).*$`);const E=p.toRegex(P,y);return b===!0&&(E.state=g),E},p.makeRe=(g,y,_=!1,b=!1)=>{if(!g||typeof g!="string")throw new TypeError("Expected a non-empty string");const 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,p.compileRe(v,y,_,b)},p.toRegex=(g,y)=>{try{const _=y||{};return new RegExp(g,_.flags||(_.nocase?"i":""))}catch(_){if(y&&y.debug===!0)throw _;return/$^/}},p.constants=h,s.exports=p},700:(s,i,a)=>{const c=a(513),{CHAR_ASTERISK:l,CHAR_AT:u,CHAR_BACKWARD_SLASH:f,CHAR_COMMA:h,CHAR_DOT:d,CHAR_EXCLAMATION_MARK:p,CHAR_FORWARD_SLASH:g,CHAR_LEFT_CURLY_BRACE:y,CHAR_LEFT_PARENTHESES:_,CHAR_LEFT_SQUARE_BRACKET:b,CHAR_PLUS:S,CHAR_QUESTION_MARK:v,CHAR_RIGHT_CURLY_BRACE:j,CHAR_RIGHT_PARENTHESES:P,CHAR_RIGHT_SQUARE_BRACKET:E}=a(356),C=w=>w===g||w===f,R=w=>{w.isPrefix!==!0&&(w.depth=w.isGlobstar?1/0:1)},T=(w,I)=>{const N=I||{},z=w.length-1,k=N.parts===!0||N.scanToEnd===!0,W=[],q=[],B=[];let V=w,G=-1,F=0,J=0,A=!1,O=!1,D=!1,X=!1,ne=!1,ee=!1,M=!1,te=!1,Z=!1,re=0,$,L,oe={value:"",depth:0,isGlob:!1};const ae=()=>G>=z,fe=()=>V.charCodeAt(G+1),pe=()=>($=L,V.charCodeAt(++G));for(;G<z;){L=pe();let _e;if(L===f){M=oe.backslashes=!0,L=pe(),L===y&&(ee=!0);continue}if(ee===!0||L===y){for(re++;ae()!==!0&&(L=pe());){if(L===f){M=oe.backslashes=!0,pe();continue}if(L===y){re++;continue}if(ee!==!0&&L===d&&(L=pe())===d){if(A=oe.isBrace=!0,D=oe.isGlob=!0,Z=!0,k===!0)continue;break}if(ee!==!0&&L===h){if(A=oe.isBrace=!0,D=oe.isGlob=!0,Z=!0,k===!0)continue;break}if(L===j&&(re--,re===0)){ee=!1,A=oe.isBrace=!0,Z=!0;break}}if(k===!0)continue;break}if(L===g){if(W.push(G),q.push(oe),oe={value:"",depth:0,isGlob:!1},Z===!0)continue;if($===d&&G===F+1){F+=2;continue}J=G+1;continue}if(N.noext!==!0&&(L===S||L===u||L===l||L===v||L===p)===!0&&fe()===_){if(D=oe.isGlob=!0,X=oe.isExtglob=!0,Z=!0,k===!0){for(;ae()!==!0&&(L=pe());){if(L===f){M=oe.backslashes=!0,L=pe();continue}if(L===P){D=oe.isGlob=!0,Z=!0;break}}continue}break}if(L===l){if($===l&&(ne=oe.isGlobstar=!0),D=oe.isGlob=!0,Z=!0,k===!0)continue;break}if(L===v){if(D=oe.isGlob=!0,Z=!0,k===!0)continue;break}if(L===b){for(;ae()!==!0&&(_e=pe());){if(_e===f){M=oe.backslashes=!0,pe();continue}if(_e===E){O=oe.isBracket=!0,D=oe.isGlob=!0,Z=!0;break}}if(k===!0)continue;break}if(N.nonegate!==!0&&L===p&&G===F){te=oe.negated=!0,F++;continue}if(N.noparen!==!0&&L===_){if(D=oe.isGlob=!0,k===!0){for(;ae()!==!0&&(L=pe());){if(L===_){M=oe.backslashes=!0,L=pe();continue}if(L===P){Z=!0;break}}continue}break}if(D===!0){if(Z=!0,k===!0)continue;break}}N.noext===!0&&(X=!1,D=!1);let ue=V,H="",be="";F>0&&(H=V.slice(0,F),V=V.slice(F),J-=F),ue&&D===!0&&J>0?(ue=V.slice(0,J),be=V.slice(J)):D===!0?(ue="",be=V):ue=V,ue&&ue!==""&&ue!=="/"&&ue!==V&&C(ue.charCodeAt(ue.length-1))&&(ue=ue.slice(0,-1)),N.unescape===!0&&(be&&(be=c.removeBackslashes(be)),ue&&M===!0&&(ue=c.removeBackslashes(ue)));const ie={prefix:H,input:w,start:F,base:ue,glob:be,isBrace:A,isBracket:O,isGlob:D,isExtglob:X,isGlobstar:ne,negated:te};if(N.tokens===!0&&(ie.maxDepth=0,C(L)||q.push(oe),ie.tokens=q),N.parts===!0||N.tokens===!0){let _e;for(let K=0;K<W.length;K++){const me=_e?_e+1:F,Re=W[K],Q=w.slice(me,Re);N.tokens&&(K===0&&F!==0?(q[K].isPrefix=!0,q[K].value=H):q[K].value=Q,R(q[K]),ie.maxDepth+=q[K].depth),(K!==0||Q!=="")&&B.push(Q),_e=Re}if(_e&&_e+1<w.length){const K=w.slice(_e+1);B.push(K),N.tokens&&(q[q.length-1].value=K,R(q[q.length-1]),ie.maxDepth+=q[q.length-1].depth)}ie.slashes=W,ie.parts=B}return ie};s.exports=T},513:(s,i,a)=>{const c=a(17),l=process.platform==="win32",{REGEX_BACKSLASH:u,REGEX_REMOVE_BACKSLASH:f,REGEX_SPECIAL_CHARS:h,REGEX_SPECIAL_CHARS_GLOBAL:d}=a(356);i.isObject=p=>p!==null&&typeof p=="object"&&!Array.isArray(p),i.hasRegexChars=p=>h.test(p),i.isRegexChar=p=>p.length===1&&i.hasRegexChars(p),i.escapeRegex=p=>p.replace(d,"\\$1"),i.toPosixSlashes=p=>p.replace(u,"/"),i.removeBackslashes=p=>p.replace(f,g=>g==="\\"?"":g),i.supportsLookbehinds=()=>{const p=process.version.slice(1).split(".").map(Number);return p.length===3&&p[0]>=9||p[0]===8&&p[1]>=10},i.isWindows=p=>p&&typeof p.windows=="boolean"?p.windows:l===!0||c.sep==="\\",i.escapeLast=(p,g,y)=>{const _=p.lastIndexOf(g,y);return _===-1?p:p[_-1]==="\\"?i.escapeLast(p,g,_-1):`${p.slice(0,_)}\\${p.slice(_)}`},i.removePrefix=(p,g={})=>{let y=p;return y.startsWith("./")&&(y=y.slice(2),g.prefix="./"),y},i.wrapOutput=(p,g={},y={})=>{const _=y.contains?"":"^",b=y.contains?"":"$";let S=`${_}(?:${p})${b}`;return g.negated===!0&&(S=`(?:^(?!${S}).*$)`),S}},492:(s,i,a)=>{/*!
|
|
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=p=>p===""||p==="./",d=(p,g,y)=>{g=[].concat(g),p=[].concat(p);let _=new Set,b=new Set,S=new Set,x=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),T=R.state.negated||R.state.negatedExtglob;T&&x++;for(let w of p){let N=R(w,!0);(T?!N.isMatch:N.isMatch)&&(T?_.add(N.output):(_.delete(N.output),b.add(N.output)))}}let E=(x===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};d.match=d,d.matcher=(p,g)=>u(p,g),d.isMatch=(p,g,y)=>u(g,y)(p),d.any=d.isMatch,d.not=(p,g,y={})=>{g=[].concat(g).map(String);let _=new Set,b=[],x=d(p,g,{...y,onResult:j=>{y.onResult&&y.onResult(j),b.push(j.output)}});for(let j of b)x.includes(j)||_.add(j);return[..._]},d.contains=(p,g,y)=>{if(typeof p!="string")throw new TypeError(`Expected a string: "${c.inspect(p)}"`);if(Array.isArray(g))return g.some(_=>d.contains(p,_,y));if(typeof g=="string"){if(h(p)||h(g))return!1;if(p.includes(g)||p.startsWith("./")&&p.slice(2).includes(g))return!0}return d.isMatch(p,g,{...y,contains:!0})},d.matchKeys=(p,g,y)=>{if(!f.isObject(p))throw new TypeError("Expected the first argument to be an object");let _=d(Object.keys(p),g,y),b={};for(let S of _)b[S]=p[S];return b},d.some=(p,g,y)=>{let _=[].concat(p);for(let b of[].concat(g)){let S=u(String(b),y);if(_.some(x=>S(x)))return!0}return!1},d.every=(p,g,y)=>{let _=[].concat(p);for(let b of[].concat(g)){let S=u(String(b),y);if(!_.every(x=>S(x)))return!1}return!0},d.all=(p,g,y)=>{if(typeof p!="string")throw new TypeError(`Expected a string: "${c.inspect(p)}"`);return[].concat(g).every(_=>u(_,y)(p))},d.capture=(p,g,y)=>{let _=f.isWindows(y),S=u.makeRe(String(p),{...y,capture:!0}).exec(_?f.toPosixSlashes(g):g);if(S)return S.slice(1).map(x=>x===void 0?"":x)},d.makeRe=(...p)=>u.makeRe(...p),d.scan=(...p)=>u.scan(...p),d.parse=(p,g)=>{let y=[];for(let _ of[].concat(p||[]))for(let b of l(String(_),g))y.push(u.parse(b,g));return y},d.braces=(p,g)=>{if(typeof p!="string")throw new TypeError("Expected a string");return g&&g.nobrace===!0||!/\{.*\}/.test(p)?[p]:l(p,g)},d.braceExpand=(p,g)=>{if(typeof p!="string")throw new TypeError("Expected a string");return d.braces(p,{...g,expand:!0})},s.exports=d},251:(s,a,i)=>{s.exports=i(683)},356:(s,a,i)=>{const c=i(17),l="\\\\/",u=`[^${l}]`,f="\\.",h="\\+",d="\\?",p="\\/",g="(?=.)",y="[^/]",_=`(?:${p}|$)`,b=`(?:^|${p})`,S=`${f}{1,2}${_}`,x=`(?!${f})`,j=`(?!${b}${S})`,P=`(?!${f}{0,1}${_})`,E=`(?!${S})`,C=`[^.${p}]`,R=`${y}*?`,T={DOT_LITERAL:f,PLUS_LITERAL:h,QMARK_LITERAL:d,SLASH_LITERAL:p,ONE_CHAR:g,QMARK:y,END_ANCHOR:_,DOTS_SLASH:S,NO_DOT:x,NO_DOTS:j,NO_DOT_SLASH:P,NO_DOTS_SLASH:E,QMARK_NO_DOT:C,STAR:R,START_ANCHOR:b},w={...T,SLASH_LITERAL:`[${l}]`,QMARK:u,STAR:`${u}*?`,DOTS_SLASH:`${f}{1,2}(?:[${l}]|$)`,NO_DOT:`(?!${f})`,NO_DOTS:`(?!(?:^|[${l}])${f}{1,2}(?:[${l}]|$))`,NO_DOT_SLASH:`(?!${f}{0,1}(?:[${l}]|$))`,NO_DOTS_SLASH:`(?!${f}{1,2}(?:[${l}]|$))`,QMARK_NO_DOT:`[^.${l}]`,START_ANCHOR:`(?:^|[${l}])`,END_ANCHOR:`(?:[${l}]|$)`},N={alnum:"a-zA-Z0-9",alpha:"a-zA-Z",ascii:"\\x00-\\x7F",blank:" \\t",cntrl:"\\x00-\\x1F\\x7F",digit:"0-9",graph:"\\x21-\\x7E",lower:"a-z",print:"\\x20-\\x7E ",punct:"\\-!\"#$%&'()\\*+,./:;<=>?@[\\]^_`{|}~",space:" \\t\\r\\n\\v\\f",upper:"A-Z",word:"A-Za-z0-9_",xdigit:"A-Fa-f0-9"};s.exports={MAX_LENGTH:65536,POSIX_REGEX_SOURCE:N,REGEX_BACKSLASH:/\\(?![*+?^${}(|)[\]])/g,REGEX_NON_SPECIAL_CHARS:/^[^@![\].,$*+?^{}()|\\/]+/,REGEX_SPECIAL_CHARS:/[-*+?.^${}(|)[\]]/,REGEX_SPECIAL_CHARS_BACKREF:/(\\?)((\W)(\3*))/g,REGEX_SPECIAL_CHARS_GLOBAL:/([-*+?.^${}(|)[\]])/g,REGEX_REMOVE_BACKSLASH:/(?:\[.*?[^\\]\]|\\(?=.))/g,REPLACEMENTS:{"***":"*","**/**":"**","**/**/**":"**"},CHAR_0:48,CHAR_9:57,CHAR_UPPERCASE_A:65,CHAR_LOWERCASE_A:97,CHAR_UPPERCASE_Z:90,CHAR_LOWERCASE_Z:122,CHAR_LEFT_PARENTHESES:40,CHAR_RIGHT_PARENTHESES:41,CHAR_ASTERISK:42,CHAR_AMPERSAND:38,CHAR_AT:64,CHAR_BACKWARD_SLASH:92,CHAR_CARRIAGE_RETURN:13,CHAR_CIRCUMFLEX_ACCENT:94,CHAR_COLON:58,CHAR_COMMA:44,CHAR_DOT:46,CHAR_DOUBLE_QUOTE:34,CHAR_EQUAL:61,CHAR_EXCLAMATION_MARK:33,CHAR_FORM_FEED:12,CHAR_FORWARD_SLASH:47,CHAR_GRAVE_ACCENT:96,CHAR_HASH:35,CHAR_HYPHEN_MINUS:45,CHAR_LEFT_ANGLE_BRACKET:60,CHAR_LEFT_CURLY_BRACE:123,CHAR_LEFT_SQUARE_BRACKET:91,CHAR_LINE_FEED:10,CHAR_NO_BREAK_SPACE:160,CHAR_PERCENT:37,CHAR_PLUS:43,CHAR_QUESTION_MARK:63,CHAR_RIGHT_ANGLE_BRACKET:62,CHAR_RIGHT_CURLY_BRACE:125,CHAR_RIGHT_SQUARE_BRACKET:93,CHAR_SEMICOLON:59,CHAR_SINGLE_QUOTE:39,CHAR_SPACE:32,CHAR_TAB:9,CHAR_UNDERSCORE:95,CHAR_VERTICAL_LINE:124,CHAR_ZERO_WIDTH_NOBREAK_SPACE:65279,SEP:c.sep,extglobChars(I){return{"!":{type:"negate",open:"(?:(?!(?:",close:`))${I.STAR})`},"?":{type:"qmark",open:"(?:",close:")?"},"+":{type:"plus",open:"(?:",close:")+"},"*":{type:"star",open:"(?:",close:")*"},"@":{type:"at",open:"(?:",close:")"}}},globChars(I){return I===!0?w:T}}},754:(s,a,i)=>{const c=i(356),l=i(513),{MAX_LENGTH:u,POSIX_REGEX_SOURCE:f,REGEX_NON_SPECIAL_CHARS:h,REGEX_SPECIAL_CHARS_BACKREF:d,REPLACEMENTS:p}=c,g=(b,S)=>{if(typeof S.expandRange=="function")return S.expandRange(...b,S);b.sort();const x=`[${b.join("-")}]`;try{new RegExp(x)}catch{return b.map(P=>l.escapeRegex(P)).join("..")}return x},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=p[b]||b;const x={...S},j=typeof x.maxLength=="number"?Math.min(u,x.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:x.prepend||""},C=[E],R=x.capture?"":"?:",T=l.isWindows(S),w=c.globChars(T),N=c.extglobChars(w),{DOT_LITERAL:I,PLUS_LITERAL:z,SLASH_LITERAL:k,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:O}=w,D=Q=>`(${R}(?:(?!${O}${Q.dot?q:I}).)*?)`,X=x.dot?"":F,ne=x.dot?B:J;let ee=x.bash===!0?D(x):A;x.capture&&(ee=`(${ee})`),typeof x.noext=="boolean"&&(x.noextglob=x.noext);const M={input:b,index:-1,start:0,dot:x.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,M),P=b.length;const te=[],Z=[],re=[];let $=E,L;const oe=()=>M.index===P-1,ie=M.peek=(Q=1)=>b[M.index+Q],fe=M.advance=()=>b[++M.index],pe=()=>b.slice(M.index+1),ue=(Q="",se=0)=>{M.consumed+=Q,M.index+=se},H=Q=>{M.output+=Q.output!=null?Q.output:Q.value,ue(Q.value)},be=()=>{let Q=1;for(;ie()==="!"&&(ie(2)!=="("||ie(3)==="?");)fe(),M.start++,Q++;return Q%2===0?!1:(M.negated=!0,M.start++,!0)},ae=Q=>{M[Q]++,re.push(Q)},ve=Q=>{M[Q]--,re.pop()},K=Q=>{if($.type==="globstar"){const se=M.braces>0&&(Q.type==="comma"||Q.type==="brace"),Y=Q.extglob===!0||te.length&&(Q.type==="pipe"||Q.type==="paren");Q.type!=="slash"&&Q.type!=="paren"&&!se&&!Y&&(M.output=M.output.slice(0,-$.output.length),$.type="star",$.value="*",$.output=ee,M.output+=$.output)}if(te.length&&Q.type!=="paren"&&!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=M.parens,Y.output=M.output;const he=(x.capture?"(":"")+Y.open;ae("parens"),K({type:Q,value:se,output:M.output?"":W}),K({type:"paren",extglob:!0,value:fe(),output:he}),te.push(Y)},Re=Q=>{let se=Q.close+(x.capture?")":"");if(Q.type==="negate"){let Y=ee;Q.inner&&Q.inner.length>1&&Q.inner.includes("/")&&(Y=D(x)),(Y!==ee||oe()||/^\)+$/.test(pe()))&&(se=Q.close=`)$))${Y}`),Q.prev.type==="bos"&&(M.negatedExtglob=!0)}K({type:"paren",extglob:!0,value:L,output:se}),ve("parens")};if(x.fastpaths!==!1&&!/(^[*!]|[/()[\]{}"])/.test(b)){let Q=!1,se=b.replace(d,(Y,he,je,Te,we,Kr)=>Te==="\\"?(Q=!0,Y):Te==="?"?he?he+Te+(we?B.repeat(we.length):""):Kr===0?ne+(we?B.repeat(we.length):""):B.repeat(je.length):Te==="."?I.repeat(je.length):Te==="*"?he?he+Te+(we?ee:""):ee:he?Y:`\\${Y}`);return Q===!0&&(x.unescape===!0?se=se.replace(/\\/g,""):se=se.replace(/\\+/g,Y=>Y.length%2===0?"\\\\":Y?"\\":"")),se===b&&x.contains===!0?(M.output=b,M):(M.output=l.wrapOutput(se,M,S),M)}for(;!oe();){if(L=fe(),L==="\0")continue;if(L==="\\"){const Y=ie();if(Y==="/"&&x.bash!==!0||Y==="."||Y===";")continue;if(!Y){L+="\\",K({type:"text",value:L});continue}const he=/^\\+/.exec(pe());let je=0;if(he&&he[0].length>2&&(je=he[0].length,M.index+=je,je%2!==0&&(L+="\\")),x.unescape===!0?L=fe()||"":L+=fe()||"",M.brackets===0){K({type:"text",value:L});continue}}if(M.brackets>0&&(L!=="]"||$.value==="["||$.value==="[^")){if(x.posix!==!1&&L===":"){const Y=$.value.slice(1);if(Y.includes("[")&&($.posix=!0,Y.includes(":"))){const he=$.value.lastIndexOf("["),je=$.value.slice(0,he),Te=$.value.slice(he+2),we=f[Te];if(we){$.value=je+we,M.backtrack=!0,fe(),!E.output&&C.indexOf($)===1&&(E.output=W);continue}}}(L==="["&&ie()!==":"||L==="-"&&ie()==="]")&&(L=`\\${L}`),L==="]"&&($.value==="["||$.value==="[^")&&(L=`\\${L}`),x.posix===!0&&L==="!"&&$.value==="["&&(L="^"),$.value+=L,H({value:L});continue}if(M.quotes===1&&L!=='"'){L=l.escapeRegex(L),$.value+=L,H({value:L});continue}if(L==='"'){M.quotes=M.quotes===1?0:1,x.keepQuotes===!0&&K({type:"text",value:L});continue}if(L==="("){ae("parens"),K({type:"paren",value:L});continue}if(L===")"){if(M.parens===0&&x.strictBrackets===!0)throw new SyntaxError(y("opening","("));const Y=te[te.length-1];if(Y&&M.parens===Y.parens+1){Re(te.pop());continue}K({type:"paren",value:L,output:M.parens?")":"\\)"}),ve("parens");continue}if(L==="["){if(x.nobracket===!0||!pe().includes("]")){if(x.nobracket!==!0&&x.strictBrackets===!0)throw new SyntaxError(y("closing","]"));L=`\\${L}`}else ae("brackets");K({type:"bracket",value:L});continue}if(L==="]"){if(x.nobracket===!0||$&&$.type==="bracket"&&$.value.length===1){K({type:"text",value:L,output:`\\${L}`});continue}if(M.brackets===0){if(x.strictBrackets===!0)throw new SyntaxError(y("opening","["));K({type:"text",value:L,output:`\\${L}`});continue}ve("brackets");const Y=$.value.slice(1);if($.posix!==!0&&Y[0]==="^"&&!Y.includes("/")&&(L=`/${L}`),$.value+=L,H({value:L}),x.literalBrackets===!1||l.hasRegexChars(Y))continue;const he=l.escapeRegex($.value);if(M.output=M.output.slice(0,-$.value.length),x.literalBrackets===!0){M.output+=he,$.value=he;continue}$.value=`(${R}${he}|${$.value})`,M.output+=$.value;continue}if(L==="{"&&x.nobrace!==!0){ae("braces");const Y={type:"brace",value:L,output:"(",outputIndex:M.output.length,tokensIndex:M.tokens.length};Z.push(Y),K(Y);continue}if(L==="}"){const Y=Z[Z.length-1];if(x.nobrace===!0||!Y){K({type:"text",value:L,output:L});continue}let he=")";if(Y.dots===!0){const je=C.slice(),Te=[];for(let we=je.length-1;we>=0&&(C.pop(),je[we].type!=="brace");we--)je[we].type!=="dots"&&Te.unshift(je[we].value);he=g(Te,x),M.backtrack=!0}if(Y.comma!==!0&&Y.dots!==!0){const je=M.output.slice(0,Y.outputIndex),Te=M.tokens.slice(Y.tokensIndex);Y.value=Y.output="\\{",L=he="\\}",M.output=je;for(const we of Te)M.output+=we.output||we.value}K({type:"brace",value:L,output:he}),ve("braces"),Z.pop();continue}if(L==="|"){te.length>0&&te[te.length-1].conditions++,K({type:"text",value:L});continue}if(L===","){let Y=L;const he=Z[Z.length-1];he&&re[re.length-1]==="braces"&&(he.comma=!0,Y="|"),K({type:"comma",value:L,output:Y});continue}if(L==="/"){if($.type==="dot"&&M.index===M.start+1){M.start=M.index+1,M.consumed="",M.output="",C.pop(),$=E;continue}K({type:"slash",value:L,output:k});continue}if(L==="."){if(M.braces>0&&$.type==="dot"){$.value==="."&&($.output=I);const Y=Z[Z.length-1];$.type="dots",$.output+=L,$.value+=L,Y.dots=!0;continue}if(M.braces+M.parens===0&&$.type!=="bos"&&$.type!=="slash"){K({type:"text",value:L,output:I});continue}K({type:"dot",value:L,output:I});continue}if(L==="?"){if(!($&&$.value==="(")&&x.noextglob!==!0&&ie()==="("&&ie(2)!=="?"){me("qmark",L);continue}if($&&$.type==="paren"){const he=ie();let je=L;if(he==="<"&&!l.supportsLookbehinds())throw new Error("Node.js v10 or higher is required for regex lookbehinds");($.value==="("&&!/[!=<:]/.test(he)||he==="<"&&!/<([!=]|\w+>)/.test(pe()))&&(je=`\\${L}`),K({type:"text",value:L,output:je});continue}if(x.dot!==!0&&($.type==="slash"||$.type==="bos")){K({type:"qmark",value:L,output:J});continue}K({type:"qmark",value:L,output:B});continue}if(L==="!"){if(x.noextglob!==!0&&ie()==="("&&(ie(2)!=="?"||!/[!=<:]/.test(ie(3)))){me("negate",L);continue}if(x.nonegate!==!0&&M.index===0){be();continue}}if(L==="+"){if(x.noextglob!==!0&&ie()==="("&&ie(2)!=="?"){me("plus",L);continue}if($&&$.value==="("||x.regex===!1){K({type:"plus",value:L,output:z});continue}if($&&($.type==="bracket"||$.type==="paren"||$.type==="brace")||M.parens>0){K({type:"plus",value:L});continue}K({type:"plus",value:z});continue}if(L==="@"){if(x.noextglob!==!0&&ie()==="("&&ie(2)!=="?"){K({type:"at",extglob:!0,value:L,output:""});continue}K({type:"text",value:L});continue}if(L!=="*"){(L==="$"||L==="^")&&(L=`\\${L}`);const Y=h.exec(pe());Y&&(L+=Y[0],M.index+=Y[0].length),K({type:"text",value:L});continue}if($&&($.type==="globstar"||$.star===!0)){$.type="star",$.star=!0,$.value+=L,$.output=ee,M.backtrack=!0,M.globstar=!0,ue(L);continue}let Q=pe();if(x.noextglob!==!0&&/^\([^?]/.test(Q)){me("star",L);continue}if($.type==="star"){if(x.noglobstar===!0){ue(L);continue}const Y=$.prev,he=Y.prev,je=Y.type==="slash"||Y.type==="bos",Te=he&&(he.type==="star"||he.type==="globstar");if(x.bash===!0&&(!je||Q[0]&&Q[0]!=="/")){K({type:"star",value:L,output:""});continue}const we=M.braces>0&&(Y.type==="comma"||Y.type==="brace"),Kr=te.length&&(Y.type==="pipe"||Y.type==="paren");if(!je&&Y.type!=="paren"&&!we&&!Kr){K({type:"star",value:L,output:""});continue}for(;Q.slice(0,3)==="/**";){const nr=b[M.index+4];if(nr&&nr!=="/")break;Q=Q.slice(3),ue("/**",3)}if(Y.type==="bos"&&oe()){$.type="globstar",$.value+=L,$.output=D(x),M.output=$.output,M.globstar=!0,ue(L);continue}if(Y.type==="slash"&&Y.prev.type!=="bos"&&!Te&&oe()){M.output=M.output.slice(0,-(Y.output+$.output).length),Y.output=`(?:${Y.output}`,$.type="globstar",$.output=D(x)+(x.strictSlashes?")":"|$)"),$.value+=L,M.globstar=!0,M.output+=Y.output+$.output,ue(L);continue}if(Y.type==="slash"&&Y.prev.type!=="bos"&&Q[0]==="/"){const nr=Q[1]!==void 0?"|$":"";M.output=M.output.slice(0,-(Y.output+$.output).length),Y.output=`(?:${Y.output}`,$.type="globstar",$.output=`${D(x)}${k}|${k}${nr})`,$.value+=L,M.output+=Y.output+$.output,M.globstar=!0,ue(L+fe()),K({type:"slash",value:"/",output:""});continue}if(Y.type==="bos"&&Q[0]==="/"){$.type="globstar",$.value+=L,$.output=`(?:^|${k}|${D(x)}${k})`,M.output=$.output,M.globstar=!0,ue(L+fe()),K({type:"slash",value:"/",output:""});continue}M.output=M.output.slice(0,-$.output.length),$.type="globstar",$.output=D(x),$.value+=L,M.output+=$.output,M.globstar=!0,ue(L);continue}const se={type:"star",value:L,output:ee};if(x.bash===!0){se.output=".*?",($.type==="bos"||$.type==="slash")&&(se.output=X+se.output),K(se);continue}if($&&($.type==="bracket"||$.type==="paren")&&x.regex===!0){se.output=L,K(se);continue}(M.index===M.start||$.type==="slash"||$.type==="dot")&&($.type==="dot"?(M.output+=G,$.output+=G):x.dot===!0?(M.output+=V,$.output+=V):(M.output+=X,$.output+=X),ie()!=="*"&&(M.output+=W,$.output+=W)),K(se)}for(;M.brackets>0;){if(x.strictBrackets===!0)throw new SyntaxError(y("closing","]"));M.output=l.escapeLast(M.output,"["),ve("brackets")}for(;M.parens>0;){if(x.strictBrackets===!0)throw new SyntaxError(y("closing",")"));M.output=l.escapeLast(M.output,"("),ve("parens")}for(;M.braces>0;){if(x.strictBrackets===!0)throw new SyntaxError(y("closing","}"));M.output=l.escapeLast(M.output,"{"),ve("braces")}if(x.strictSlashes!==!0&&($.type==="star"||$.type==="bracket")&&K({type:"maybe_slash",value:"",output:`${k}?`}),M.backtrack===!0){M.output="";for(const Q of M.tokens)M.output+=Q.output!=null?Q.output:Q.value,Q.suffix&&(M.output+=Q.suffix)}return M};_.fastpaths=(b,S)=>{const x={...S},j=typeof x.maxLength=="number"?Math.min(u,x.maxLength):u,P=b.length;if(P>j)throw new SyntaxError(`Input length: ${P}, exceeds maximum allowed length: ${j}`);b=p[b]||b;const E=l.isWindows(S),{DOT_LITERAL:C,SLASH_LITERAL:R,ONE_CHAR:T,DOTS_SLASH:w,NO_DOT:N,NO_DOTS:I,NO_DOTS_SLASH:z,STAR:k,START_ANCHOR:W}=c.globChars(E),q=x.dot?I:N,F=x.dot?z:N,G=x.capture?"":"?:",V={negated:!1,prefix:""};let B=x.bash===!0?".*?":k;x.capture&&(B=`(${B})`);const J=X=>X.noglobstar===!0?B:`(${G}(?:(?!${W}${X.dot?w:C}).)*?)`,A=X=>{switch(X){case"*":return`${q}${T}${B}`;case".*":return`${C}${T}${B}`;case"*.*":return`${q}${B}${C}${T}${B}`;case"*/*":return`${q}${B}${R}${T}${F}${B}`;case"**":return q+J(x);case"**/*":return`(?:${q}${J(x)}${R})?${F}${T}${B}`;case"**/*.*":return`(?:${q}${J(x)}${R})?${F}${B}${C}${T}${B}`;case"**/.*":return`(?:${q}${J(x)}${R})?${C}${T}${B}`;default:{const ne=/^(.*?)\.(\w+)$/.exec(X);if(!ne)return;const ee=A(ne[1]);return ee?ee+C+ne[2]:void 0}}},O=l.removePrefix(b,V);let D=A(O);return D&&x.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),d=g=>g&&typeof g=="object"&&!Array.isArray(g),p=(g,y,_=!1)=>{if(Array.isArray(g)){const R=g.map(w=>p(w,y,_));return w=>{for(const N of R){const I=N(w);if(I)return I}return!1}}const b=d(g)&&g.tokens&&g.input;if(g===""||typeof g!="string"&&!b)throw new TypeError("Expected pattern to be a non-empty string");const S=y||{},x=f.isWindows(y),j=b?p.compileRe(g,y):p.makeRe(g,y,!1,!0),P=j.state;delete j.state;let E=()=>!1;if(S.ignore){const R={...y,ignore:null,onMatch:null,onResult:null};E=p(S.ignore,R,_)}const C=(R,T=!1)=>{const{isMatch:w,match:N,output:I}=p.test(R,j,y,{glob:g,posix:x}),z={glob:g,state:P,regex:j,posix:x,input:R,output:I,match:N,isMatch:w};return typeof S.onResult=="function"&&S.onResult(z),w===!1?(z.isMatch=!1,T?z:!1):E(R)?(typeof S.onIgnore=="function"&&S.onIgnore(z),z.isMatch=!1,T?z:!1):(typeof S.onMatch=="function"&&S.onMatch(z),T?z:!0)};return _&&(C.state=P),C};p.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 x=_||{},j=x.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||x.capture===!0)&&(x.matchBase===!0||x.basename===!0?P=p.matchBase(g,y,_,S):P=y.exec(E)),{isMatch:!!P,match:P,output:E}},p.matchBase=(g,y,_,b=f.isWindows(_))=>(y instanceof RegExp?y:p.makeRe(y,_)).test(c.basename(g)),p.isMatch=(g,y,_)=>p(y,_)(g),p.parse=(g,y)=>Array.isArray(g)?g.map(_=>p.parse(_,y)):u(g,{...y,fastpaths:!1}),p.scan=(g,y)=>l(g,y),p.compileRe=(g,y,_=!1,b=!1)=>{if(_===!0)return g.output;const S=y||{},x=S.contains?"":"^",j=S.contains?"":"$";let P=`${x}(?:${g.output})${j}`;g&&g.negated===!0&&(P=`^(?!${P}).*$`);const E=p.toRegex(P,y);return b===!0&&(E.state=g),E},p.makeRe=(g,y,_=!1,b=!1)=>{if(!g||typeof g!="string")throw new TypeError("Expected a non-empty string");const S=y||{};let x={negated:!1,fastpaths:!0},j="",P;return g.startsWith("./")&&(g=g.slice(2),j=x.prefix="./"),S.fastpaths!==!1&&(g[0]==="."||g[0]==="*")&&(P=u.fastpaths(g,y)),P===void 0?(x=u(g,y),x.prefix=j+(x.prefix||"")):x.output=P,p.compileRe(x,y,_,b)},p.toRegex=(g,y)=>{try{const _=y||{};return new RegExp(g,_.flags||(_.nocase?"i":""))}catch(_){if(y&&y.debug===!0)throw _;return/$^/}},p.constants=h,s.exports=p},700:(s,a,i)=>{const c=i(513),{CHAR_ASTERISK:l,CHAR_AT:u,CHAR_BACKWARD_SLASH:f,CHAR_COMMA:h,CHAR_DOT:d,CHAR_EXCLAMATION_MARK:p,CHAR_FORWARD_SLASH:g,CHAR_LEFT_CURLY_BRACE:y,CHAR_LEFT_PARENTHESES:_,CHAR_LEFT_SQUARE_BRACKET:b,CHAR_PLUS:S,CHAR_QUESTION_MARK:x,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)},T=(w,N)=>{const I=N||{},z=w.length-1,k=I.parts===!0||I.scanToEnd===!0,W=[],q=[],F=[];let G=w,V=-1,B=0,J=0,A=!1,O=!1,D=!1,X=!1,ne=!1,ee=!1,M=!1,te=!1,Z=!1,re=0,$,L,oe={value:"",depth:0,isGlob:!1};const ie=()=>V>=z,fe=()=>G.charCodeAt(V+1),pe=()=>($=L,G.charCodeAt(++V));for(;V<z;){L=pe();let ve;if(L===f){M=oe.backslashes=!0,L=pe(),L===y&&(ee=!0);continue}if(ee===!0||L===y){for(re++;ie()!==!0&&(L=pe());){if(L===f){M=oe.backslashes=!0,pe();continue}if(L===y){re++;continue}if(ee!==!0&&L===d&&(L=pe())===d){if(A=oe.isBrace=!0,D=oe.isGlob=!0,Z=!0,k===!0)continue;break}if(ee!==!0&&L===h){if(A=oe.isBrace=!0,D=oe.isGlob=!0,Z=!0,k===!0)continue;break}if(L===j&&(re--,re===0)){ee=!1,A=oe.isBrace=!0,Z=!0;break}}if(k===!0)continue;break}if(L===g){if(W.push(V),q.push(oe),oe={value:"",depth:0,isGlob:!1},Z===!0)continue;if($===d&&V===B+1){B+=2;continue}J=V+1;continue}if(I.noext!==!0&&(L===S||L===u||L===l||L===x||L===p)===!0&&fe()===_){if(D=oe.isGlob=!0,X=oe.isExtglob=!0,Z=!0,k===!0){for(;ie()!==!0&&(L=pe());){if(L===f){M=oe.backslashes=!0,L=pe();continue}if(L===P){D=oe.isGlob=!0,Z=!0;break}}continue}break}if(L===l){if($===l&&(ne=oe.isGlobstar=!0),D=oe.isGlob=!0,Z=!0,k===!0)continue;break}if(L===x){if(D=oe.isGlob=!0,Z=!0,k===!0)continue;break}if(L===b){for(;ie()!==!0&&(ve=pe());){if(ve===f){M=oe.backslashes=!0,pe();continue}if(ve===E){O=oe.isBracket=!0,D=oe.isGlob=!0,Z=!0;break}}if(k===!0)continue;break}if(I.nonegate!==!0&&L===p&&V===B){te=oe.negated=!0,B++;continue}if(I.noparen!==!0&&L===_){if(D=oe.isGlob=!0,k===!0){for(;ie()!==!0&&(L=pe());){if(L===_){M=oe.backslashes=!0,L=pe();continue}if(L===P){Z=!0;break}}continue}break}if(D===!0){if(Z=!0,k===!0)continue;break}}I.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)),I.unescape===!0&&(be&&(be=c.removeBackslashes(be)),ue&&M===!0&&(ue=c.removeBackslashes(ue)));const ae={prefix:H,input:w,start:B,base:ue,glob:be,isBrace:A,isBracket:O,isGlob:D,isExtglob:X,isGlobstar:ne,negated:te};if(I.tokens===!0&&(ae.maxDepth=0,C(L)||q.push(oe),ae.tokens=q),I.parts===!0||I.tokens===!0){let ve;for(let K=0;K<W.length;K++){const me=ve?ve+1:B,Re=W[K],Q=w.slice(me,Re);I.tokens&&(K===0&&B!==0?(q[K].isPrefix=!0,q[K].value=H):q[K].value=Q,R(q[K]),ae.maxDepth+=q[K].depth),(K!==0||Q!=="")&&F.push(Q),ve=Re}if(ve&&ve+1<w.length){const K=w.slice(ve+1);F.push(K),I.tokens&&(q[q.length-1].value=K,R(q[q.length-1]),ae.maxDepth+=q[q.length-1].depth)}ae.slashes=W,ae.parts=F}return ae};s.exports=T},513:(s,a,i)=>{const c=i(17),l=process.platform==="win32",{REGEX_BACKSLASH:u,REGEX_REMOVE_BACKSLASH:f,REGEX_SPECIAL_CHARS:h,REGEX_SPECIAL_CHARS_GLOBAL:d}=i(356);a.isObject=p=>p!==null&&typeof p=="object"&&!Array.isArray(p),a.hasRegexChars=p=>h.test(p),a.isRegexChar=p=>p.length===1&&a.hasRegexChars(p),a.escapeRegex=p=>p.replace(d,"\\$1"),a.toPosixSlashes=p=>p.replace(u,"/"),a.removeBackslashes=p=>p.replace(f,g=>g==="\\"?"":g),a.supportsLookbehinds=()=>{const p=process.version.slice(1).split(".").map(Number);return p.length===3&&p[0]>=9||p[0]===8&&p[1]>=10},a.isWindows=p=>p&&typeof p.windows=="boolean"?p.windows:l===!0||c.sep==="\\",a.escapeLast=(p,g,y)=>{const _=p.lastIndexOf(g,y);return _===-1?p:p[_-1]==="\\"?a.escapeLast(p,g,_-1):`${p.slice(0,_)}\\${p.slice(_)}`},a.removePrefix=(p,g={})=>{let y=p;return y.startsWith("./")&&(y=y.slice(2),g.prefix="./"),y},a.wrapOutput=(p,g={},y={})=>{const _=y.contains?"":"^",b=y.contains?"":"$";let S=`${_}(?:${p})${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=
|
|
41
|
-
`+JSON.stringify(i));if(!(0,r.makeRe)(i.hostname).test(a.hostname))return!1;var c;return!!(0,r.makeRe)((c=i.pathname)!=null?c:"**").test(a.pathname)}function s(i,a,c){return i.some(l=>c.hostname===l)||a.some(l=>o(l,c))}}(Rn)),Rn}var Ya;function kf(){return Ya||(Ya=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return r}});function t(o){let{config:s,src:i,width:a,quality:c}=o;if(process.env.NODE_ENV!=="production"){const l=[];if(i||l.push("src"),a||l.push("width"),l.length>0)throw new Error("Next Image Optimization requires "+l.join(", ")+" to be provided. Make sure you pass them as props to the `next/image` component. Received: "+JSON.stringify({src:i,width:a,quality:c}));if(i.startsWith("//"))throw new Error('Failed to parse src "'+i+'" on `next/image`, protocol-relative URL (//) must be changed to an absolute URL (http:// or https://)');if(!i.startsWith("/")&&(s.domains||s.remotePatterns)){let u;try{u=new URL(i)}catch(f){throw console.error(f),new Error('Failed to parse src "'+i+'" on `next/image`, if using relative image it must start with a leading slash "/" or be an absolute URL (http:// or https://)')}if(process.env.NODE_ENV!=="test"&&process.env.NEXT_RUNTIME!=="edge"){const{hasMatch:f}=k_();if(!f(s.domains,s.remotePatterns,u))throw new Error("Invalid src prop ("+i+') on `next/image`, hostname "'+u.hostname+'" is not configured under images in your `next.config.js`\nSee more info: https://nextjs.org/docs/messages/next-image-unconfigured-host')}}}return s.path+"?url="+encodeURIComponent(i)+"&w="+a+"&q="+(c||75)+(process.env.NEXT_DEPLOYMENT_ID?"&dpl="+process.env.NEXT_DEPLOYMENT_ID:"")}t.__next_img_default=!0;const r=t}(En)),En}(function(e,t){"use client";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"Image",{enumerable:!0,get:function(){return S}});const r=Oe,s=wt._(x),i=r._(rs),a=r._(Ky()),c=Ls,l=$r,u=Xy(),f=Gt,h=Su(),d=r._(kf()),p=process.env.__NEXT_IMAGE_OPTS;typeof window>"u"&&(globalThis.__NEXT_IMAGE_IMPORTED=!0);function g(v,j,P,E,C,R){const T=v==null?void 0:v.src;if(!v||v["data-loaded-src"]===T)return;v["data-loaded-src"]=T,("decode"in v?v.decode():Promise.resolve()).catch(()=>{}).then(()=>{if(!(!v.parentElement||!v.isConnected)){if(j!=="empty"&&C(!0),P!=null&&P.current){const I=new Event("load");Object.defineProperty(I,"target",{writable:!1,value:v});let N=!1,z=!1;P.current({...I,nativeEvent:I,currentTarget:v,target:v,isDefaultPrevented:()=>N,isPropagationStopped:()=>z,persist:()=>{},preventDefault:()=>{N=!0,I.preventDefault()},stopPropagation:()=>{z=!0,I.stopPropagation()}})}if(E!=null&&E.current&&E.current(v),process.env.NODE_ENV!=="production"){const I=new URL(T,"http://n").searchParams.get("url")||T;if(v.getAttribute("data-nimg")==="fill"){if(!R&&(!v.getAttribute("sizes")||v.getAttribute("sizes")==="100vw")&&v.getBoundingClientRect().width/window.innerWidth<.6&&(0,f.warnOnce)('Image with src "'+I+'" has "fill" but is missing "sizes" prop. Please add it to improve page performance. Read more: https://nextjs.org/docs/api-reference/next/image#sizes'),v.parentElement){const{position:k}=window.getComputedStyle(v.parentElement),W=["absolute","fixed","relative"];W.includes(k)||(0,f.warnOnce)('Image with src "'+I+'" has "fill" and parent element with invalid "position". Provided "'+k+'" should be one of '+W.map(String).join(",")+".")}v.height===0&&(0,f.warnOnce)('Image with src "'+I+'" has "fill" and a height value of 0. This is likely because the parent element of the image has not been styled to have a set height.')}const N=v.height.toString()!==v.getAttribute("height"),z=v.width.toString()!==v.getAttribute("width");(N&&!z||!N&&z)&&(0,f.warnOnce)('Image with src "'+I+`" has either width or height modified, but not the other. If you use CSS to change the size of your image, also include the styles 'width: "auto"' or 'height: "auto"' to maintain the aspect ratio.`)}}})}function y(v){const[j,P]=s.version.split("."),E=parseInt(j,10),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:T,decoding:w,className:I,style:N,fetchPriority:z,placeholder:k,loading:W,unoptimized:q,fill:B,onLoadRef:V,onLoadingCompleteRef:G,setBlurComplete:F,setShowAltText:J,onLoad:A,onError:O,...D}=v;return s.default.createElement("img",{...D,...y(z),loading:W,width:T,height:R,decoding:w,"data-nimg":B?"fill":"1",className:I,style:N,sizes:C,srcSet:E,src:P,ref:(0,s.useCallback)(X=>{j&&(typeof j=="function"?j(X):typeof j=="object"&&(j.current=X)),X&&(O&&(X.src=X.src),process.env.NODE_ENV!=="production"&&(P||console.error('Image is missing required "src" property:',X),X.getAttribute("alt")===null&&console.error('Image is missing required "alt" property. Please add Alternative Text to describe the image for screen readers and search engines.')),X.complete&&g(X,k,V,G,F,q))},[P,k,V,G,F,O,q,j]),onLoad:X=>{const ne=X.currentTarget;g(ne,k,V,G,F,q)},onError:X=>{J(!0),k!=="empty"&&F(!0),O&&O(X)}})});function b(v){let{isAppRouter:j,imgAttributes:P}=v;const E={as:"image",imageSrcSet:P.srcSet,imageSizes:P.sizes,crossOrigin:P.crossOrigin,referrerPolicy:P.referrerPolicy,...y(P.fetchPriority)};return j&&i.default.preload?(i.default.preload(P.src,E),null):s.default.createElement(a.default,null,s.default.createElement("link",{key:"__nimg-"+P.src+P.srcSet+P.sizes,rel:"preload",href:P.srcSet?void 0:P.src,...E}))}const 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=p||C||l.imageConfigDefault,F=[...G.deviceSizes,...G.imageSizes].sort((A,O)=>A-O),J=G.deviceSizes.sort((A,O)=>A-O);return{...G,allSizes:F,deviceSizes:J}},[C]),{onLoad:T,onLoadingComplete:w}=v,I=(0,s.useRef)(T);(0,s.useEffect)(()=>{I.current=T},[T]);const N=(0,s.useRef)(w);(0,s.useEffect)(()=>{N.current=w},[w]);const[z,k]=(0,s.useState)(!1),[W,q]=(0,s.useState)(!1),{props:B,meta:V}=(0,c.getImgProps)(v,{defaultLoader:d.default,imgConf:R,blurComplete:z,showAltText:W});return s.default.createElement(s.default.Fragment,null,s.default.createElement(_,{...B,unoptimized:V.unoptimized,placeholder:V.placeholder,fill:V.fill,onLoadRef:I,onLoadingCompleteRef:N,setBlurComplete:k,setShowAltText:q,ref:j}),V.priority?s.default.createElement(b,{isAppRouter:E,imgAttributes:B}):null)});(typeof t.default=="function"||typeof t.default=="object"&&t.default!==null)&&typeof t.default.__esModule>"u"&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)})(Vo,Vo.exports);var L_=Vo.exports;(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(u,f){for(var h in f)Object.defineProperty(u,h,{enumerable:!0,get:f[h]})}t(e,{unstable_getImgProps:function(){return c},default:function(){return l}});const r=Oe,o=Ls,s=Gt,i=L_,a=r._(kf()),c=u=>{(0,s.warnOnce)("Warning: unstable_getImgProps() is experimental and may change or be removed at any time. Use at your own risk.");const{props:f}=(0,o.getImgProps)(u,{defaultLoader:a.default,imgConf:process.env.__NEXT_IMAGE_OPTS});for(const[h,d]of Object.entries(f))d===void 0&&delete f[h];return{props:f}},l=i.Image})(jf);var M_=jf;const jr=Ir(M_),D_=({item:e,CONSTANTS:t})=>{const r=e.icon?t.PAYMENT_FLAGS.includes(e.icon)?"payment":"social":null,o=r==="payment"?t.PAYMENT_FLAGS_DICTIONARY[e.icon]:e.icon;return e.link?n.jsxs(Me,{href:e.link,target:"_blank",rel:"noopener noreferrer",className:ye["support-item"],children:[e.image&&n.jsx("img",{src:e.image,alt:"",loading:"lazy"}),r==="payment"?n.jsx(jr,{alt:o,src:`/assets/${o}.svg`,width:20,height:20}):n.jsx(m.Icon,{size:"small",name:o})]}):n.jsxs("div",{className:ye["support-item"],children:[e.image&&n.jsx("img",{src:e.image,alt:"",loading:"lazy"}),r==="payment"?n.jsx(jr,{alt:o,src:`/assets/${o}.svg`,width:20,height:20}):n.jsx(m.Icon,{size:"small",name:o})]})},$_=({content:e,CONSTANTS:t})=>n.jsx("div",{className:ye["support-container"],children:e==null?void 0:e.map((r,o)=>n.jsxs("div",{"data-device":r.device,className:ye["support-section"],children:[n.jsxs("div",{className:ye["support-text"],children:[r.title&&n.jsx("h3",{children:r.title}),r.description&&n.jsx("p",{children:r.description})]}),Array.isArray(r.items)&&r.items.length&&n.jsx("div",{className:ye["support-items"],"data-gap":r.gap,children:r.items.map((s,i)=>n.jsx(D_,{item:s,CONSTANTS:t},`footer-support-item-${i}`))})]},`footer-support-${o}`))}),z_=({name:e,nameIcon:t,maxWidth:r,rowAlignContent:o,columnAlignContent:s,columnAlignItems:i,textAlignContent:a,textAlignItems:c,children:l})=>n.jsx(m.TextStructure.Root,{layoutProps:{textRow:{alignContent:o,alignItems:o},columnWrapper:{alignContent:s,alignItems:i}},children:n.jsxs(m.TextStructure.DivWrapper,{alignContent:a,alignItems:c,className:ye.footer__column,children:[n.jsxs("div",{className:t?ye.footer__columnTitleIcon:ye.footer__columnTitle,children:[n.jsx(m.Icon,{name:`${t}`,size:"small"}),e&&n.jsx("div",{children:e})]}),n.jsx("div",{className:ye.footer__columnContent,style:{maxWidth:`${r}px`},children:l})]})}),B_=({name:e,nameIcon:t,maxWidth:r,children:o,ICONS:s,...i})=>n.jsxs(m.Accordion.Wrapper,{className:ye.accordionWrapper,title:"accordion-wrapper",...i,children:[n.jsx(m.Accordion.Header,{id:(i==null?void 0:i.id)??"",className:ye.accordionHeader,closeIndicator:n.jsx(m.Icon,{name:s.arrow_up,size:"medium"}),openIndicator:n.jsx(m.Icon,{name:s.arrow_down,size:"medium"}),title:"accordion-header",children:n.jsx(m.TextStructure.Root,{children:n.jsxs(m.TextStructure.DivWrapper,{className:t?ye.accordionTextWrapper:"",children:[n.jsx(m.Icon,{name:`${t}`,size:"medium"}),n.jsx("h2",{className:"typography-style-body-md",children:e})]})})}),n.jsx(m.Accordion.Body,{title:"accordion-body",children:n.jsx(m.TextStructure.Root,{children:n.jsx(m.TextStructure.DivWrapper,{className:ye.footer__columnContent,style:{maxWidth:`${r}px`},children:o})})})]}),No=e=>{const{isMobile:t}=le();return t?n.jsx(B_,{...e}):n.jsx(z_,{...e})},mr=({type:e,children:t,className:r,collumnName:o,collumnNameIcon:s,icons:i,iconLink:a,iconSize:c,link:l,paymentDisclaimer:u,paymentTitle:f,rowAlignContent:h,columnAlignContent:d,columnAlignItems:p,textAlignContent:g,textAlignItems:y,..._})=>{let b;const{handleSelectContent:S}=ce(),{nextimage:v}=xe();switch(e){case"menu":b=n.jsx(Me,{className:ye.footer__itemLink,href:l??"#",prefetch:!1,children:n.jsx("span",{onClick:()=>{S({content:`footer:${o}:${t}`})},children:t})});break;case"payment":b=n.jsxs("div",{className:m.helpers.classNameConcat(ye.payment,ye.footer__itemSmallText),..._,children:[u,n.jsxs("div",{className:m.helpers.classNameConcat(ye.footer__iconContainer,ye.footer__iconListSubHeader),children:[f,n.jsx("div",{className:ye.footer__iconList,children:i==null?void 0:i.map((j,P)=>n.jsx(v,{alt:j,src:`/assets/${j}.svg`,width:c??20,height:c??20},P))})]})]});break;case"social-media":b=n.jsx("div",{className:ye.footer__iconContainer,..._,children:n.jsx("div",{className:ye.footer__iconList,children:a==null?void 0:a.map((j,P)=>n.jsx(Me,{prefetch:!1,href:j.link??"#",target:"_blank",children:n.jsx(m.Icon,{size:"medium",name:j.icon,onClick:()=>S({content:`footer:redes-sociais:${j.icon}`})})},P))})});break;default:b=n.jsx("div",{className:r,..._,children:t})}return n.jsx(m.TextStructure.Root,{layoutProps:{textRow:{alignContent:h,alignItems:h},columnWrapper:{alignContent:d,alignItems:p}},..._,children:n.jsx(m.TextStructure.DivWrapper,{alignContent:g,alignItems:y,className:m.helpers.classNameConcat(ye.footer__item,r),children:b})})},F_=({className:e,text:t,...r})=>n.jsx("div",{...r,className:m.helpers.classNameConcat(ye.footer__legalInformation,e),children:n.jsx("span",{children:t})}),Lf=()=>{const{nextimage:e}=xe();return n.jsx("div",{className:ye["footer--stamps"],children:n.jsx(e,{alt:"Empresa B",className:ye["footer--stamps--company"],src:"/images/Footer/new_certfB.png",width:56,height:64})})};Lf.displayName="Footer.Stamps";const Mf=({children:e,legalTextSlot:t,adornment:r,className:o,...s})=>{const{isMobile:i}=le(),a=x.Children.toArray(e).filter(Boolean),c=a.length;return n.jsxs("div",{className:ye.footer__main,children:[(r==null?void 0:r.top)&&n.jsx("div",{className:ye.footer__top,children:r==null?void 0:r.top}),c>0&&n.jsx("div",{...s,className:m.helpers.classNameConcat(ye.footer__wrapper,o),children:a.map((l,u)=>n.jsx("div",{style:{flexGrow:1,maxWidth:`calc(100% / ${i?1:"fit-content"})`},children:l},u))}),(r==null?void 0:r.bottom)&&n.jsx("div",{className:ye.footer__bottom,children:r.bottom}),t&&n.jsx("div",{className:ye.footer__legalText,children:t})]})};Mf.displayName="Footer.Wrapper";const Df=({data:{links:{links:e}},payments:t,socialInfo:r,socialMedias:o,adornment:s,LEGAL_INFORMATION_TEXT:i,ICONS:a})=>{var c;return n.jsxs(Mf,{adornment:s,legalTextSlot:n.jsx(F_,{text:i}),children:[Array.isArray(e.column)&&e.column.map((l,u)=>n.jsx(No,{id:`${u}column-menu`,name:l.name,nameIcon:l.nameIcon,ICONS:a,children:l.items.map((f,h)=>n.jsx(mr,{type:"menu",link:f.link,collumnName:l.name,collumnNameIcon:l.nameIcon,children:f.text},h))},u)),t&&((c=t.acceptedFlags)==null?void 0:c.length)>0&&n.jsx(No,{id:"payment-column",name:t==null?void 0:t.title,nameIcon:t==null?void 0:t.titleIcon,maxWidth:150,ICONS:a,children:n.jsx(mr,{type:"payment",paymentDisclaimer:t==null?void 0:t.text,paymentTitle:t==null?void 0:t.flagsTitle,iconSize:16,icons:t==null?void 0:t.acceptedFlags})}),n.jsxs(No,{id:"social-media-column",name:r==null?void 0:r.title,ICONS:a,children:[r!=null&&r.subTitle?n.jsx(mr,{children:r==null?void 0:r.subTitle}):null,n.jsx(mr,{type:"social-media",iconSize:24,iconLink:o}),n.jsx(Lf,{})]})]})};Df.displayName="Footer";const q_=Object.freeze(Object.defineProperty({__proto__:null,Footer:Df,FooterSupport:$_},Symbol.toStringTag,{value:"Module"})),H_=()=>{const{colorName:e}=De();return n.jsx(m.TextStructure.Root,{children:n.jsx(m.TextStructure.DivWrapper,{className:e.length===0?"":U.styles["accessibility-info"],children:n.jsx("p",{children:e})})})},Fr=({className:e,titleId:t})=>{var s,i,a;const{productName:r,tag:o}=De();return n.jsxs("div",{className:m.helpers.classNameConcat(U.styles.header,e),children:[o!=null&&o.commercial?n.jsx(m.Tag,{size:"small",title:(s=o.commercial)==null?void 0:s.value,variant:"quaternary",adornment:{start:(i=o.commercial)!=null&&i.icon?n.jsx(m.Icon,{name:o.commercial.icon}):null},children:(a=o.commercial)==null?void 0:a.value}):null,n.jsx(m.TextStructure.Root,{children:n.jsx(m.TextStructure.DivWrapper,{children:n.jsx("h1",{id:t,children:r})})})]})};Fr.displayName="PDP.PDPHeader";const Bs=({layout:e="horizontal"})=>{const{price:t,listPrice:r,installments:o}=De(),{count:s,value:i}=o,a=U.formatPriceToCurrency(r??0,!0),c=U.formatPriceToCurrency(t??0,!0),l=U.formatPriceToCurrency(i??0);return n.jsx(m.ProductInfo.Root,{size:"small",layout:e,children:n.jsxs(m.ProductInfo.Wrapper,{layout:e,size:"small",className:U.styles["price-wrapper"],children:[n.jsx(m.ProductInfo.ValuesWrapper,{children:t!==r?n.jsxs(n.Fragment,{children:[n.jsx(m.ProductInfo.Price,{label:"originalPrice",value:a.toString(),size:"small"}),n.jsx(m.ProductInfo.Price,{label:"discountPrice",value:c.toString(),size:"small"})]}):n.jsx(m.ProductInfo.Price,{label:"defaultPrice",value:c.toString(),size:"small"})}),s&&s>1&&i?n.jsx(m.ProductInfo.Price,{label:"installment",value:`ou ${s}x ${l}`,size:"small"}):null]})})},Go=({onAddCallBack:e,onDisabledClickCallBack:t,addToCartBtnSize:r,BUY_BUTTON_LABELS:o})=>{const s=Ut(),{productId:i,productData:a,price:c,listPrice:l,thumbImage:u,isKit:f}=De(),{isMobile:h}=le(),{addToCart:d}=Ee(),{sendDataLayerEvent:p}=ce(),g=!f&&(!s.sku||!s.available),y=()=>{if(g&&typeof t=="function"){t();return}typeof e=="function"&&e({id:s.sku,quantity:s.quantity,seller:s.sellerId,sku:i}),d({id:s.sku,quantity:s.quantity,seller:s.sellerId},{id:i,texture:u==null?void 0:u.imageUrl}),p({functionKey:"skuEvents",data:{event:"add_to_cart",commonData:{products:[{...a,price:c,listPrice:l}]},supportData:{selectedSkus:[s]},customData:{quantity:s.quantity}}})};return n.jsx(m.Button,{className:U.styles["add-to-cart"],size:h?(r==null?void 0:r.mobile)??"large":(r==null?void 0:r.desktop)??"x-large",onClick:y,children:s.sku&&s.available?`${o.add_to_cart}`:`${o.select_size}`})},U_=({addToCartBtnSize:e,BUY_BUTTON_LABELS:t})=>{const{isMobile:r}=le(),o=Ut(),{sizesContainerRef:s}=fc(),{structureRef:i}=Pe();return o.sku&&o.available?n.jsx(Go,{addToCartBtnSize:e,BUY_BUTTON_LABELS:t}):n.jsx(m.Button,{className:U.styles["add-to-cart"],size:r?(e==null?void 0:e.mobile)??"large":(e==null?void 0:e.desktop)??"x-large",onClick:()=>{s.current&&i.current&&window.document.body.scrollTo({top:s.current.offsetTop-i.current.offsetHeight,behavior:"smooth"})},children:o.sku&&o.available?t.add_to_cart:t.select_size})},W_=({addToCartBtnSize:e,BUY_BUTTON_LABELS:t,Z_INDEX_WAR:r})=>{const{isMobile:o}=le();return o?n.jsxs(m.Card,{className:U.styles["bottom-navigation"],shadow:!0,style:{zIndex:r.pdp_bottom_navigation},children:[n.jsxs("div",{className:U.styles["bottom-navigation__header"],children:[n.jsx(Fr,{}),n.jsx(Bs,{layout:"name-vertical"})]}),n.jsx(U_,{addToCartBtnSize:e,BUY_BUTTON_LABELS:t})]}):null},V_=({children:e,setShowBottomNavigation:t})=>{const r=x.useRef(null),o=os(r),s=x.useRef(o);return x.useEffect(()=>{var a;const{top:i}=((a=r.current)==null?void 0:a.getBoundingClientRect())??{top:0};s.current!==o&&i>0&&(t(!o),s.current=o)},[o]),n.jsx("div",{ref:r,style:{width:"100%"},children:e})},G_=({ICONS:e})=>{const{isMobile:t}=le(),{price:r,listPrice:o,productData:s,productId:i}=De(),{sendDataLayerEvent:a}=ce(),c=Rt(),{toggleProduct:l}=gt();return n.jsx(m.Button,{adornment:{start:n.jsx(m.Icon,{name:e[c.includes(i)?"favorite_true":"favorite_false"],size:"medium"})},className:U.styles["add-to-wishlist"],size:t?"medium":"x-large",variant:"tertiary",onClick:()=>{l(i),a({functionKey:"productEvents",data:{event:c.includes(i)?"remove_from_wishlist":"add_to_wishlist",outsideEcommerceData:{region:"PDP"},commonData:{...s,price:r,listPrice:o}}})}})},$f=({showWishlist:e=!0,callBack:t,addToCartBtnSize:r,BUY_BUTTON_LABELS:o,ICONS:s,Z_INDEX_WAR:i})=>{const{isMobile:a}=le(),[c,l]=x.useState(!0);return n.jsxs(n.Fragment,{children:[n.jsxs("div",{className:U.styles.actions,children:[a?n.jsx(V_,{setShowBottomNavigation:l,children:n.jsx(Go,{onAddCallBack:t,addToCartBtnSize:r,BUY_BUTTON_LABELS:o})}):n.jsx(Go,{onAddCallBack:t,addToCartBtnSize:r,BUY_BUTTON_LABELS:o}),e&&n.jsx(G_,{ICONS:s})]}),a&&c&&n.jsx(W_,{addToCartBtnSize:r,BUY_BUTTON_LABELS:o,Z_INDEX_WAR:i})]})},zf=({className:e,device:t,ICONS:r})=>{const{breadcrumbList:o,productName:s}=De(),i=a=>a.toLowerCase().normalize("NFD").replace(/[\u0300-\u036f]/g,"");return n.jsx(m.BreadCrumb.DivWrapper,{className:m.helpers.classNameConcat(U.styles.breadcrumb,[t==="mobile"?U.styles["breadcrumbs-mobile"]:U.styles["breadcrumbs-desktop"],e]),children:n.jsxs(m.BreadCrumb.List,{children:[Array.isArray(o)&&o.map((a,c)=>{const l=i(o.slice(0,c+1).map(u=>u.replace(/\s/g,"-").toLowerCase()).join("/"));return n.jsx(m.BreadCrumb.Item,{adornment:{end:n.jsx(m.Icon,{name:r.arrow_right})},role:"listitem",children:n.jsx(Me,{href:`/${l}`,children:a})},`pdp-breadcrumb-${l}-${c}`)}),n.jsx(m.BreadCrumb.Item,{role:"listitem",className:m.helpers.classNameConcat(U.styles["breadcrumb--active"],e),children:s},"pdp-breadcrumb-productName")]})})};zf.displayName="PDP.BreadCrumb";const Bf=({className:e})=>{var o;const{tag:t}=De(),r=t==null?void 0:t.flagPdp;return r&&((o=r==null?void 0:r.value)!=null&&o.length)?n.jsx(m.Tag,{className:m.helpers.classNameConcat(U.styles.credits,e),variant:"tertiary",title:r==null?void 0:r.value,size:"small",adornment:{start:r!=null&&r.enableIcon&&(r!=null&&r.icon)?n.jsx(m.Icon,{name:r==null?void 0:r.icon,style:{color:r==null?void 0:r.iconColor}}):null},style:{background:r==null?void 0:r.tagColor,color:r==null?void 0:r.textColor},children:r==null?void 0:r.value}):n.jsx(n.Fragment,{})};Bf.displayName="PDPCredits";const K_=()=>{const{descriptionContent:e,productReference:t}=De(),[r,o]=x.useState("description");return n.jsxs(m.Tabs.Root,{className:U.styles["tabs-root-modifier"],children:[n.jsx(m.Tabs.TabList,{className:U.styles["tabs-list-modifier"],children:e==null?void 0:e.map(({label:s,value:i})=>n.jsx(m.Tabs.Item,{label:s,value:i,activeTab:r,onTabChange:o,size:"large",className:`${U.styles["tabs-item-modifier"]} ${r===i?U.styles["tabs-item-active"]:""}`},i))}),n.jsxs("div",{className:U.styles["content-wrapper"],children:[r==="description"?n.jsx("div",{children:n.jsxs("span",{className:U.styles.productref,children:["Ref:",t]})}):"",e==null?void 0:e.map(({value:s,content:i})=>r===s?n.jsx(m.Tabs.Panel,{className:`${U.styles["tabs-panel"]} ${r===s?U.styles["tabs-panel-enter"]:U.styles["tabs-panel-exit"]}`,children:n.jsx("div",{className:U.styles.content,dangerouslySetInnerHTML:{__html:i}})},s):null)]})]})},X_=({CURRENCY:e,DELIVERY_INFO_BOXES_ALLOWED:t,FREIGHT_CALCULATION:r,Z_INDEX_WAR:o})=>{const s=Ut(),{isMobile:i}=le();return n.jsxs(n.Fragment,{children:[i?n.jsx(m.Utils.Divider,{direction:"horizontal",size:"small"}):null,n.jsx(Yd,{skuId:s.available?s.sku:"",size:i?r.inputSize.mobile:r.inputSize.desktop,quantity:s.quantity,sellerId:s.sellerId,seller:s.sellerName,local:"PDP",CONSTANTS_PROPS:{freightConfig:r,deliveryInfoBoxesAllowed:t,toolTipZIndex:o.modal,currency:e}}),i?n.jsx(m.Utils.Divider,{direction:"horizontal",size:"small"}):null]})},Qa=({image:e,index:t,handleZoom:r,PRODUCT_IMAGE_DIMENSIONS:o})=>{const s=U.resizingImg(e.imageUrl,o.pdp),{nextimage:i}=xe();return n.jsx(i,{src:s,alt:e.imageLabel,objectFit:"contain",...o.pdp,...t<=1&&{priority:!0,loading:"eager"},onClick:()=>{r(t)}},t)},Y_=({video:e,productName:t,poster:r})=>{const{sendDataLayerEvent:o}=ce(),s=x.useRef(!1);return n.jsx(ze.Video,{src:e,autoPlay:!0,muted:!0,loop:!0,playsInline:!0,style:{zIndex:-1,aspectRatio:"2/3"},onPlaying:()=>{s.current||(s.current=!0,o({functionKey:"readyEvents",data:{event:"video_start",readyData:{product:t}}}))},poster:r})},Ff=({images:e,video:t,handleZoom:r,productName:o,PRODUCT_IMAGE_DIMENSIONS:s})=>{var u,f;const{initialize:i,pagination:a,controller:c,itemsStyles:l}=m.Carousel.useCarousel({gap:0,itemsPerPage:1,loop:!1,direction:"row"});return n.jsxs(m.Carousel.Root,{innerRef:h=>{i(h)},className:U.styles["gallery-carousel-modifier"],children:[n.jsx(m.Carousel.Controller,{position:"absolute",top:"24px",bottom:"unset",left:"16px",children:n.jsx(m.Carousel.Bullets,{page:a.currentPage,total:e.length,onBulletClick:h=>c==null?void 0:c.navigateTo(h)})}),n.jsxs(m.Carousel.Body,{children:[n.jsx(m.Carousel.Item,{style:l,children:n.jsx(Qa,{image:e[0],index:0,handleZoom:r,PRODUCT_IMAGE_DIMENSIONS:s})},"PDP_gallery_0"),t&&n.jsx(m.Carousel.Item,{style:l,children:n.jsx(Y_,{video:t,productName:o,...((u=e[1])==null?void 0:u.imageUrl)&&{poster:(f=e[1])==null?void 0:f.imageUrl}})},"PDP_gallery_video"),e.map((h,d)=>d===0?null:n.jsx(m.Carousel.Item,{style:l,children:n.jsx(Qa,{image:h,index:d,handleZoom:r,PRODUCT_IMAGE_DIMENSIONS:s})},`PDP_gallery_${d}`))]})]})};Ff.displayName="PDP.Carousel";const Q_="_thumbs_1fbzz_65",Z_="_selected_1fbzz_93",J_="_carousel_1fbzz_162",ev="_bullets_1fbzz_199",Se={"image-zoom-wrapper-desktop":"_image-zoom-wrapper-desktop_1fbzz_1","button-close-container":"_button-close-container_1fbzz_10","button-close":"_button-close_1fbzz_10","main-image-container":"_main-image-container_1fbzz_22","image-desktop":"_image-desktop_1fbzz_52",thumbs:Q_,selected:Z_,"image-zoom-wrapper-mobile":"_image-zoom-wrapper-mobile_1fbzz_115","image-mobile":"_image-mobile_1fbzz_145","image-zoom--image":"_image-zoom--image_1fbzz_159",carousel:J_,"carousel-controller":"_carousel-controller_1fbzz_167","arrow-left":"_arrow-left_1fbzz_177","arrow-right":"_arrow-right_1fbzz_178",bullets:ev,"zoom-popup":"_zoom-popup_1fbzz_210","image-zoom--mobile":"_image-zoom--mobile_1fbzz_250","image-zoom--image--img":"_image-zoom--image--img_1fbzz_280"},Za=({onClose:e,ICONS:t})=>n.jsx("div",{className:`${Se["button-close-container"]}`,children:n.jsx(m.Button,{iconNameStart:t.close,iconSize:"medium",className:`${Se["button-close"]}`,variant:"tertiary",state:"default",size:"medium",onClick:e,style:{textDecoration:"none"}})}),tv=({children:e,Z_INDEX_WAR:t,...r})=>n.jsx("div",{...r,className:Se["image-zoom-wrapper-desktop"],style:{zIndex:t.pdp_image_zoom},children:e}),qf=({images:e,setCurrent:t,setFirstImgLoaded:r,ICONS:o,PRODUCT_IMAGE_DIMENSIONS:s})=>{const{nextimage:i}=xe();let a=null;const c=x.useRef(null),{initialize:l,controller:u,pagination:f,itemsStyles:h}=m.Carousel.useCarousel({itemsPerPage:1,gap:10,loop:!1,direction:"row"}),d=g=>{u==null||u.navigateTo(g)},p=()=>{r(!0)};return x.useEffect(()=>{t(f.currentPage)},[f.currentPage,t]),n.jsxs(m.Carousel.Root,{innerRef:g=>{g&&!a&&(a=g,l(a))},className:Se.carousel,children:[n.jsxs(m.Carousel.Controller,{className:Se["carousel-controller"],children:[n.jsx(m.Button,{variant:"tertiary",onClick:()=>u==null?void 0:u.prevPage(),className:Se["arrow-left"],adornment:{start:n.jsx(m.Icon,{name:o.arrow_left})}}),n.jsx(m.Button,{variant:"tertiary",onClick:()=>u==null?void 0:u.nextPage(),className:Se["arrow-right"],adornment:{start:n.jsx(m.Icon,{name:o.arrow_right})}})]}),n.jsx(m.Carousel.Body,{children:Array.isArray(e)&&e.map((g,y)=>n.jsx(m.Carousel.Item,{style:h,children:n.jsx(i,{...s.image_zoom.mobile,...y===0&&{priority:!0,loading:"eager"},ref:c,className:Se.imageMobile,src:g.imageUrl,alt:g.imageText,quality:100,...y===0&&{onLoad:p}})},y))}),n.jsx(m.Carousel.Bullets,{className:Se.bullets,page:f.currentPage,total:f.totalPages,onBulletClick:d})]})};qf.displayName="ImageZoom.Mobile.Carousel";const Hf=({imgRef:e,image:t,PRODUCT_IMAGE_DIMENSIONS:r})=>{xc();const{nextimage:o}=xe();return n.jsx("div",{className:Se["image-zoom--image"],ref:e,children:n.jsx(o,{...r.image_zoom.mobile,alt:t.imageText,className:Se["image-zoom--image--img"],quality:100,src:t.imageUrl})})};Hf.displayName="ImageZoom.ImageZoom";const Uf=({loaded:e=!1})=>n.jsx("div",{className:Se["zoom-popup"],"data-loaded":e,children:n.jsxs("svg",{width:"38",height:"39",viewBox:"0 0 38 39",xmlns:"http://www.w3.org/2000/svg",children:[n.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M18.93 5.382a3.711 3.711 0 0 1 2.55-1.007c.949 0 1.864.36 2.549 1.007a3.534 3.534 0 0 1 1.113 2.472v11.357l10.118 3.332c.587.193 1.1.56 1.465 1.053.366.494.565 1.089.566 1.7v.004c0 .22-.025.44-.075.653v.005l-2.98 12.52a.625.625 0 0 1-1.215-.29l2.977-12.515v-.002c.029-.122.043-.247.044-.372a1.619 1.619 0 0 0-.321-.958 1.729 1.729 0 0 0-.851-.61L24.32 20.257a.625.625 0 0 1-.43-.594V7.88a2.285 2.285 0 0 0-.72-1.59 2.462 2.462 0 0 0-1.691-.665c-.635 0-1.241.24-1.69.666a2.285 2.285 0 0 0-.722 1.59v19.04a.625.625 0 0 1-1.115.388l-.056-.071-.161-.202a178.922 178.922 0 0 0-2.333-2.858l-.002-.002a2.581 2.581 0 0 0-.897-.69 2.677 2.677 0 0 0-1.122-.25H12.37c-.307 0-.61.078-.874.225a1.712 1.712 0 0 0-.635.61 1.625 1.625 0 0 0-.016 1.653l7.128 12.296a.625.625 0 0 1-1.082.627L9.762 26.35a2.876 2.876 0 0 1 .027-2.924 2.962 2.962 0 0 1 1.098-1.057 3.05 3.05 0 0 1 1.482-.384h1.016c.57.002 1.133.127 1.648.368.515.24.97.59 1.33 1.024.514.614 1.026 1.239 1.455 1.768V7.855a3.535 3.535 0 0 1 1.113-2.473ZM6.446 10.22a.625.625 0 0 1 0 .884l-5.324 5.324a.625.625 0 0 1-.884-.884l5.324-5.324a.625.625 0 0 1 .884 0Z"}),n.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M.68 12.033c.345 0 .625.28.625.625v2.703h2.702a.625.625 0 1 1 0 1.25H.68a.625.625 0 0 1-.625-.625v-3.328c0-.345.28-.625.625-.625ZM16.429.237a.625.625 0 0 1 0 .884l-5.325 5.324a.625.625 0 0 1-.884-.883L15.545.237a.625.625 0 0 1 .884 0Z"}),n.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12.034.68c0-.346.28-.626.625-.626h3.328c.345 0 .625.28.625.625v3.328a.625.625 0 1 1-1.25 0V1.304h-2.703a.625.625 0 0 1-.625-.625Z"})]})});Uf.displayName="ImageZoom.ZoomPopup";const Wf=({images:e,ICONS:t,PRODUCT_IMAGE_DIMENSIONS:r,...o})=>{const[s,i]=x.useState(!1),[a,c]=x.useState(0),{containerRef:l,imgRef:u,scale:f}=bc({defaultScale:1,maxScale:3});return n.jsxs("div",{...o,className:Se["image-mobile"],"data-disable-carrousel-pan":f>1,children:[n.jsx(Uf,{loaded:s}),n.jsx(qf,{images:e,setCurrent:c,setFirstImgLoaded:i,ICONS:t,PRODUCT_IMAGE_DIMENSIONS:r}),n.jsx("div",{className:Se["image-zoom--mobile"],ref:l,children:n.jsx(Hf,{imgRef:u,image:e[a],PRODUCT_IMAGE_DIMENSIONS:r})})]})};Wf.displayName="ImageZoom.ImageMobile";const rv=({children:e,Z_INDEX_WAR:t,...r})=>n.jsx("div",{...r,className:Se["image-zoom-wrapper-mobile"],style:{zIndex:t.pdp_image_zoom},children:e}),nv="_modal_1u87b_1",Ze={modal:nv,"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 ov({headerTitle:e,isMobile:t,ICONS:r}){return n.jsx(m.Modal.Header,{navigation:"top",className:Ze["modal-header"],children:n.jsxs(m.Modal.Controls,{navigation:"top",isMobile:t,children:[n.jsx("div",{className:Ze["modal-header__title"],children:n.jsx(m.Modal.Title,{navigation:"top",className:Ze["quick-shop__title"],title:e})}),n.jsx(m.Button,{className:Ze["modal-header__close-button"],"data-close":!0,iconNameStart:r.close,size:"small",variant:"tertiary"})]})})}const sv=({items:e,getLabel:t,PLP_SIZE_ORDER:r})=>Array.isArray(e)?[...e].sort((o,s)=>{const i=t(o).toUpperCase(),a=t(s).toUpperCase(),c=r.indexOf(i)-r.indexOf(a);return c!==0?c:i.localeCompare(a,"pt-BR")}):[],Vf=({PDP_INFO:e,PLP_SIZE_ORDER:t,ICONS:r,NEWSLETTER_CONFIGS:o,NOTIFY_INFO:s,PRODUCT_CARD_TEXTS:i,Z_INDEX_WAR:a})=>{const{sizes:c,productId:l,handleViewItemEvent:u}=De(),f=x.useMemo(()=>c!=null&&c.length?sv({items:c,getLabel:j=>j.value,PLP_SIZE_ORDER:t}):[],[c]),{sizesContainerRef:h}=fc(),{isMobile:d}=le(),p=Ut(),g=rl(),{setValue:y}=Jc(),{setValue:_}=ds(),b=x.useRef({}),[S,v]=x.useState(null);return n.jsxs("div",{ref:h,className:U.styles.sizes,children:[n.jsx("span",{className:U.styles["sections-title"],children:e.product.size_title}),n.jsx("div",{children:f.map(j=>(!j.available&&!b.current[j.value]&&(b.current[j.value]={disable:!j.available,size:j.value,skuID:j.sku}),n.jsxs(m.ToggleSize.Wrapper,{size:d?"medium":"large",title:j.value,outOfStock:!j.available,onClick:()=>{j.available||(v({skuID:j.sku,size:j.value,disable:!0}),_(!0)),p.sku!==j.sku&&(y({...p,productId:l,name:j.name,size:j.value,sku:j.sku,sellerId:j.sellerId,sellerName:j.sellerName,available:j.available}),u({sku:j.sku,size:j.value}))},active:p.sku===j.sku,children:[n.jsx(m.ToggleSize.DisabledAdornment,{title:"disabled-adornment-texture"}),n.jsx(m.ToggleSize.Text,{children:j==null?void 0:j.value})]},`sizes-${j.sku}-${j.value}`)))}),n.jsx(Cs,{open:g,setVisible:_,sku:S,setSku:v,skus:Object.values(b.current),ICONS:r,NEWSLETTER_CONFIGS:o,NOTIFY_INFO:s,PRODUCT_CARD_TEXTS:i,Z_INDEX_WAR:a})]})},Mt=({children:e,className:t,type:r})=>n.jsx("div",{className:m.helpers.classNameConcat(U.styles["pdp-main__info-subsection"],[U.styles[`subsection-${r}`],t]),children:e}),Gf=({children:e,className:t})=>{const{structureRef:r,tipbarRef:o}=Pe(),s=x.useMemo(()=>{var c,l;const i=((c=r.current)==null?void 0:c.clientHeight)||0,a=((l=o.current)==null?void 0:l.clientHeight)||0;return i+a},[r,o]);return n.jsx("div",{className:m.helpers.classNameConcat(U.styles["pdp-main__info"],t),id:"pdpmaininfo",style:{top:s},children:e})},iv=({children:e,link:t,TOGGLE_STYLE_MODIFIER:r})=>{const{isMobile:o}=le(),{router:s}=xe(),i=()=>{t&&s.push(t)},a=x.useRef(null);return n.jsx(m.ToggleStyle.Wrapper,{size:o?"medium":"small",style:{...r,border:`${a.current===t?"2":"1"}`,overflow:"hidden",padding:"0"},onClick:i,active:a.current===t,children:e})},Kf=({productId:e,similars:t,TOGGLE_STYLE_MODIFIER:r})=>{const{thumbImage:o}=De(),s=[{productId:e,slug:"",textureImage:(o==null?void 0:o.imageUrl)??"",textureAlt:(o==null?void 0:o.imageText)??""},...t];return n.jsx("div",{children:s.map((i,a)=>i.textureImage?n.jsxs(iv,{link:i.slug?i.slug:null,TOGGLE_STYLE_MODIFIER:r,children:[n.jsx(m.ToggleStyle.DisabledAdornment,{}),n.jsx(m.ToggleStyle.Texture,{children:n.jsx(ze.Image,{alt:i.textureAlt,src:i.textureImage,height:34,width:34,style:{borderRadius:0,height:"100%"}})})]},`similars-item-${a}`):null)})},Xf=({TEXTURE_IMAGE:e,TOGGLE_STYLE_MODIFIER:t})=>{const{productId:r}=De(),[o,s]=x.useState([]);return x.useEffect(()=>{fetch("/api/catalog/product/similars",{method:"POST",body:JSON.stringify({productId:r,filterTexture:e})}).then(i=>i.json()).then(({data:i})=>{Array.isArray(i)&&i.length===0||s(i)}).catch(i=>{console.error(i)})},[r]),n.jsxs("div",{className:U.styles.similars,children:[n.jsx("span",{className:U.styles["sections-title"],children:"Cor"}),n.jsx(Kf,{productId:r,similars:o,TOGGLE_STYLE_MODIFIER:t})]})};Xf.displayName="PDP.Info.Similars";const av=({callBackProductAdded:e,BUY_BUTTON_LABELS:t,ICONS:r,NEWSLETTER_CONFIGS:o,NOTIFY_INFO:s,PDP_INFO:i,PLP_SIZE_ORDER:a,PRODUCT_CARD_TEXTS:c,TEXTURE_IMAGE:l,TOGGLE_STYLE_MODIFIER:u,Z_INDEX_WAR:f})=>n.jsx(m.Modal.Body,{className:Ze["modal-product-body"],children:n.jsxs(Gf,{className:Ze["pdp-main__info-modifier"],children:[n.jsxs(Mt,{type:"product-info",children:[n.jsx(Fr,{}),n.jsx(Bs,{})]}),n.jsx(Mt,{type:"similars",children:n.jsx(Xf,{TEXTURE_IMAGE:l,TOGGLE_STYLE_MODIFIER:u})}),n.jsx(Mt,{type:"sizes",children:n.jsx(Vf,{ICONS:r,NEWSLETTER_CONFIGS:o,NOTIFY_INFO:s,PDP_INFO:i,PLP_SIZE_ORDER:a,PRODUCT_CARD_TEXTS:c,Z_INDEX_WAR:f})}),n.jsx(Mt,{type:"actions",children:n.jsx($f,{showWishlist:!1,callBack:e,addToCartBtnSize:{mobile:"medium",desktop:"large"},BUY_BUTTON_LABELS:t,ICONS:r,Z_INDEX_WAR:f})})]})});function cv({callBackProductAdded:e,QUICKSHOP:t,ICONS:r,...o}){const[s,i]=x.useState(!1),a=()=>i(c=>!c);return n.jsxs("div",{className:Ze["quick-shop"],children:[n.jsx(m.Button,{onClick:a,size:"x-large",className:Ze["shop-bag"],iconNameStart:r.bag,iconSize:"medium"}),n.jsxs(m.Modal.Root,{isOpen:s,setIsOpen:i,className:`${Ze.modal} ${Ze["quick-shop__modal"]}`,style:{position:"fixed",height:"100svh",width:"100%",top:0,zIndex:1e3,bottom:"unset",overflowY:"hidden"},variant:"sideRight",children:[n.jsx(ov,{headerTitle:t.title,ICONS:r}),n.jsx(av,{callBackProductAdded:e,ICONS:r,...o})]})]})}const lv=({image:e})=>n.jsx(jr,{src:U.resizingImg(e.imageUrl,{width:50,height:75})||"",alt:e.imageText,className:Se.mainImage,layout:"fill",objectFit:"cover",priority:!0,quality:10,style:{position:"absolute",inset:0,filter:"blur(10px)"}}),uv=({images:e,selectedImageIndex:t,PRODUCT_IMAGE_DIMENSIONS:r,...o})=>{const[s,i]=x.useState(!1),{nextimage:a}=xe();return n.jsx("div",{...o,className:Se["main-image-container"],children:n.jsxs("div",{className:Se["image-desktop"],children:[!s&&n.jsx(lv,{image:e==null?void 0:e[t]}),n.jsx(a,{src:U.resizingImg(e==null?void 0:e[t].imageUrl,{...r.image_zoom.desktop})||"",alt:e==null?void 0:e[t].imageText,className:Se.mainImage,layout:"fill",objectFit:"cover",priority:!0,quality:100,onLoad:()=>{i(!0)}})]})})},dv=({images:e,onThumbnailClick:t,selectedImageIndex:r})=>{const{nextimage:o}=xe();return n.jsx("div",{className:Se.thumbs,children:e.map((s,i)=>n.jsx("div",{role:"button",tabIndex:0,onClick:()=>t(i),onKeyDown:a=>{(a.key==="Enter"||a.key===" ")&&t(i)},className:i===r?Se.selected:"",children:n.jsx(o,{src:s.imageUrl,alt:s.imageText,layout:"responsive",width:100,height:100,objectFit:"cover",priority:!1})},i))})},Yf=({images:e,initialSelectedImageIndex:t=0,setShowImageZoom:r,ICONS:o,PRODUCT_IMAGE_DIMENSIONS:s,Z_INDEX_WAR:i,...a})=>{const{isMobile:c}=le(),[l,u]=x.useState(t),f=h=>{u(h)};return c?n.jsxs(rv,{Z_INDEX_WAR:i,children:[n.jsx(Za,{onClose:()=>r({show:!1,initialIndex:0}),ICONS:o}),n.jsx(Wf,{images:e,ICONS:o,PRODUCT_IMAGE_DIMENSIONS:s})]}):n.jsxs(tv,{Z_INDEX_WAR:i,children:[n.jsx(Za,{onClose:()=>r({show:!1,initialIndex:0}),ICONS:o}),n.jsx(uv,{images:e,selectedImageIndex:l,onThumbnailClick:f,PRODUCT_IMAGE_DIMENSIONS:s},e[l].imageId??`${e[l].imageText}-${l}`),n.jsx(dv,{images:e,selectedImageIndex:l,onThumbnailClick:f}),n.jsx(cv,{callBackProductAdded:()=>{r({initialIndex:0,show:!1})},ICONS:o,Z_INDEX_WAR:i,...a})]})};Yf.displayName="ImageZoom";const fv=({productImgs:e,PRODUCT_IMAGE_DIMENSIONS:t,...r})=>{const{video:o,productName:s}=De(),[i,a]=x.useState({show:!1,initialIndex:0});x.useEffect(()=>(i.show?document.body.classList.add("no-scroll"):document.body.classList.remove("no-scroll"),()=>{document.body.classList.remove("no-scroll")}),[i]);const c=l=>{a({show:!0,initialIndex:l})};return n.jsxs(n.Fragment,{children:[n.jsx(Ff,{images:e,video:o,handleZoom:c,productName:s,PRODUCT_IMAGE_DIMENSIONS:t}),i.show&&n.jsx(Yf,{images:e,initialSelectedImageIndex:i.initialIndex,setShowImageZoom:a,PRODUCT_IMAGE_DIMENSIONS:t,...r})]})},Qf=({TEXTURE_IMAGE:e,PRODUCT_IMAGE_DIMENSIONS:t,...r})=>{const{images:o}=De(),s=x.useMemo(()=>{const i=o.filter(a=>!e.includes(a.imageLabel));return i.length>0?i:o},[]);return n.jsx(fv,{productImgs:s,TEXTURE_IMAGE:e,PRODUCT_IMAGE_DIMENSIONS:t,...r})};Qf.displayName="PDP.Gallery";const pv=({className:e,hasIcons:t=!0,ICONS:r,PDP_INFO:o})=>{const{allSizesAvailable:s,productId:i}=De(),{setValue:a}=ds(),{sendDataLayerEvent:c}=ce();return n.jsx("div",{className:m.helpers.classNameConcat(U.styles.links,e),id:"pdp-container","data-product-id":i,children:n.jsxs("div",{className:U.styles["links-wrapper"],children:[!s&&n.jsx(m.Button,{adornment:t?{start:n.jsx(m.Icon,{name:r.product})}:{},size:"x-small",variant:"tertiary",onClick:()=>a(!0),underline:!0,children:o.links_and_stepper.size_out_of_stock}),n.jsx(m.Button,{adornment:t?{start:n.jsx(m.Icon,{name:r.ruler})}:{},size:"x-small",variant:"tertiary",underline:!0,onClick:()=>{var l,u;(u=window.SizebayParams)==null||u.openChart((l=window.SizebayParams)==null?void 0:l.id),c({functionKey:"readyEvents",data:{event:"select_content",readyData:{content_type:"pdp:guia-de-medidas"}}})},children:o.links_and_stepper.size_table_title}),n.jsx(m.Button,{size:"x-small",variant:"tertiary",className:"sizebay",underline:!0,onClick:()=>{var l,u;return(u=window.SizebayParams)==null?void 0:u.openVFR((l=window.SizebayParams)==null?void 0:l.id)},children:o.links_and_stepper.sizebay})]})})},mv=({children:e})=>n.jsx("div",{className:U.styles["pdp-main__info-main-content"],children:e}),hv=({head:e,className:t})=>n.jsx("thead",{className:t,children:n.jsx("tr",{children:e.map((r,o)=>n.jsx("th",{children:r},`head-title-${o}`))})}),gv=({rows:e,className:t})=>n.jsx("tbody",{className:t,children:e.map((r,o)=>n.jsx("tr",{children:r.map(s=>typeof s=="string"&&s.includes("blocks")?JSON.parse(s).blocks.map(i=>`${i.text}
|
|
42
|
-
`):s).map((s,i)=>n.jsx("td",{children:s},`cell-content-${i}`))},`row-content-${o}`))}),yv="_tableContainer_1yxy2_1",_v={tableContainer:yv},vv=({children:e,className:t=""})=>n.jsx("table",{className:`${_v.tableContainer} ${t}`,children:e}),To={Head:hv,Rows:gv,Root:vv},xv=({title:e,text:t})=>n.jsxs("p",{className:U.styles.measurementRowsText,children:[n.jsx("h1",{className:U.styles.measurementRowsTitle,children:e}),t]}),bv=({ICONS:e,SIZES:t,Z_INDEX_WAR:r})=>{const o=sl(),{setValue:s}=il();return n.jsx(m.Modal.Root,{isMobile:!0,style:{zIndex:r.modal},setIsOpen:s,isOpen:o,className:U.styles.measurementModal,children:n.jsx(m.Modal.Body,{children:n.jsxs("div",{className:U.styles.measurementContainer,children:[n.jsx("h1",{className:U.styles.measurementTitle,children:t.title}),n.jsxs("div",{className:U.styles.measurementContent,children:[n.jsx("div",{className:U.styles.measurementImageContainer,children:n.jsx(jr,{width:264,height:402,alt:"",className:U.styles.measurementImage,src:t.bannerImage})}),n.jsxs(To.Root,{className:U.styles.measurementTable,children:[n.jsx(To.Head,{className:U.styles.measurementHead,head:t.head}),n.jsx(To.Rows,{className:U.styles.measurementRows,rows:t.rows.map((i,a)=>[n.jsx(xv,{title:t.descriptions[a].title,text:t.descriptions[a].text},a),...i])})]})]}),n.jsx(m.Button,{onClick:()=>s(!1),className:U.styles.measurementClose,variant:"tertiary",children:n.jsx(m.Icon,{name:e.close})})]})})},"minicart")},jv=({children:e,className:t,...r})=>n.jsx("div",{className:m.helpers.classNameConcat(U.styles["pdp-main__gallery-wrapper"],t),...r,children:e}),Cv=({children:e,className:t,...r})=>n.jsx("div",{className:m.helpers.classNameConcat(U.styles.pdp,t),...r,children:e}),Sv=({children:e,className:t,...r})=>n.jsx("div",{className:m.helpers.classNameConcat(U.styles["pdp-main"],t),...r,children:e}),Pv=({children:e,className:t,...r})=>n.jsx("div",{className:m.helpers.classNameConcat(U.styles["pdp-main__info-secondary-content"],t),...r,children:e}),wv={gallery:jv,pdp:Cv,main:Sv,secondary:Pv},Ev=({className:e,...t})=>n.jsx(m.Utils.Divider,{...t,className:m.helpers.classNameConcat(U.styles.divider,e)}),Rv=Object.freeze(Object.defineProperty({__proto__:null,AccessibilityInfo:H_,Actions:$f,BreadCrumb:zf,Credits:Bf,DescriptionsTabs:K_,Divider:Ev,Freight:X_,Gallery:Qf,Header:Fr,Links:pv,MainContent:mv,MainInfo:Gf,Price:Bs,ProductMeasurements:bv,SimilarsItems:Kf,Sizes:Vf,SubSectionWrapper:Mt,containers:wv},Symbol.toStringTag,{value:"Module"})),Av=(e,t)=>{const[r,o]=af({items:e}),[s,i]=t.split(":").map(Number);return isNaN(s)||isNaN(i)?[r,o]:[r<s?r:s,o>i?o:i]},Iv=()=>{var E;const{ICONS:e,PLP_FILTERS:t,PLP_FILTERS_COLORS:r,PLP_FILTERS_EMPTY:o,PLP_FILTERS_TITLE:s,PLP_SIZE_ORDER:i}=Le(),[a,c]=x.useState("10000:0"),{isMobile:l}=le(),{sendDataLayerEvent:u}=ce(),{openFilters:f,setOpenFilters:h}=vs(),{state:d}=$e(),{breadcrumb:p,deleteAllFacets:g,isLoading:y=!1,facets:_,onToggleFacet:b,selectedFacets:S}=Jl.contexts.searchFacets.hook(),v=x.useRef(""),j={isLast:!0,href:(E=d.term)!=null&&E.length?`/${d.term}`:"",name:d.term},P=U.filterNonRootFacets(S,d==null?void 0:d.base);return x.useEffect(()=>{const C=_.find(({key:R})=>R==="price");if(C){const[R,T]=Av(C.values,a??"10000:0");c(`${R}:${T}`)}},[_,a,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]),n.jsxs(vr.teamComponents.Filter.Root,{CONSTANTS:{ICONS:e,PLP_FILTERS_TITLE:s,PLP_FILTERS:t},breadcrumb:p.length?p:[j],deleteAllFacets:g,filters:{facets:U.filterNonCategorySelected(_,d==null?void 0:d.base),selected:P},isMobile:l??!1,isLoading:y,isOpen:f,price:a,onToggleFacet:b,setIsOpen:h,target:document.body,children:[n.jsx(vr.teamComponents.Filter.Selected,{ICONS:e,PLP_FILTERS:t,PLP_FILTERS_COLORS:r}),n.jsx(vr.teamComponents.Filter.Content,{columns:2,CONSTANTS:{ICONS:e,PLP_FILTERS:t,PLP_FILTERS_COLORS:r,PLP_FILTERS_EMPTY:o,PLP_SIZE_ORDER:i}})]})},Zf=()=>typeof document>"u"?null:n.jsx(Iv,{});Zf.displayName="Filters";const Fs=({total:e=0})=>{const{SEARCH_TOTAL_PORTAL_ID:t}=Le();if(typeof window>"u")return null;const r=document.getElementById(t);return r?rs.createPortal(n.jsxs("span",{children:["[",e,"] produto",e>1?"s":""]}),r):null};Fs.displayName="PDC.Grid.NavigationTotal";const Nv=({productCount:e,PLP_GRID_SCROLL_BACK:t})=>{x.useEffect(()=>{var i;const o=new URLSearchParams(window.location.search).get("page");if(e){const[a,c]=((i=sessionStorage.getItem(t.key))==null?void 0:i.split("-"))??["0",null],l=sessionStorage.getItem(t.refer);a&&l==="true"&&(c===(o||"null")&&window.document.body.scrollTo({top:parseInt(a,10),behavior:"smooth"}),sessionStorage.setItem(t.refer,"false"))}const s=()=>{e>0&&window.document.body.scrollTop&&sessionStorage.setItem(t.key,`${window.document.body.scrollTop.toString()}-${o}`)};return window.document.body.addEventListener("scroll",s,{passive:!0}),()=>{window.document.body.removeEventListener("scroll",s)}},[e])},Tv=()=>{const{isMobile:e}=le(),{isLoading:t,products:r,total:o}=Wt(),s=Le();return Nv({productCount:r.length,PLP_GRID_SCROLL_BACK:s.PLP_GRID_SCROLL_BACK}),n.jsxs(n.Fragment,{children:[n.jsx(Qe.Products,{isMobile:e??!1,items:r,...s}),!r.length&&!t&&n.jsx(Qe.Empty,{ICONS:s.ICONS,PLP_NOT_RESULT:s.PLP_NOT_RESULT}),n.jsx(Fs,{total:o})]})},Jf=({infinite:e=!1})=>n.jsx("div",{className:We["pdc--grid"],children:n.jsx("div",{className:We["pdc--grid--content"],children:e?n.jsx(Qe.InfiniteScroller,{}):n.jsx(Tv,{})})});Jf.displayName="Grid";const _t=e=>({centro:"center",esquerda:"start",direita:"end"})[e],ep=({children:e,contentState:t,entityKey:r})=>{const{url:o}=t.getEntity(r).getData();return o?n.jsx(Me,{href:o,children:e}):e},Ov=(e,t,r)=>{e.findEntityRanges(o=>{const s=o.getEntity();return s===null?!1:r.getEntity(s).getType()==="LINK"},t)},Cr=e=>{const t=new Ke.CompositeDecorator([{strategy:Ov,component:ep}]),r=Ke.convertFromRaw(e);return Ke.EditorState.createWithContent(r,t)},kv=e=>Ke.convertFromRaw(e),Sr=Ke.DefaultDraftBlockRenderMap.set("unstyled",{element:"div",aliasedElements:["div"]}),Ja="superior-direita",hr="dentro-inferior-centro",Lv="inferior-direita",Oo="dentro-inferior-esquerda",tp=e=>({position:e===hr||e===Oo?"absolute":"default",shouldRender:[Ja,hr,Oo].includes(e)?"top":"bottom",alignItems:[hr].includes(e)?"center":[Ja,Lv].includes(e)?"flex-end":"flex-start",left:e===Oo?"16px":e===hr?"45%":"unset"}),Mv=Object.freeze(Object.defineProperty({__proto__:null,CREATE_CONTENT:Cr,EXTENDED_BLOCK_RENDER_MAP:Sr,GET_CONTENT_STATE:kv,controllersPositionsAdapter:tp},Symbol.toStringTag,{value:"Module"})),Dv=({expanded:e,content:t})=>n.jsxs("details",{open:e,children:[t.textStructureReduced?n.jsx("summary",{onClick:r=>r.preventDefault(),children:n.jsx(Ke.Editor,{editorKey:"draft-editor-1",blockRenderMap:Sr,editorState:t!=null&&t.textStructureReduced?Cr(JSON.parse(t.textStructureReduced)):Ke.EditorState.createEmpty(),onChange:()=>null,readOnly:!0})}):n.jsx(n.Fragment,{}),t.showTextStructureExpander&&t.textStructure?n.jsx(n.Fragment,{children:n.jsx(Ke.Editor,{editorKey:"draft-editor-1",blockRenderMap:Sr,editorState:t.textStructure?Cr(JSON.parse(t.textStructure)):Ke.EditorState.createEmpty(),onChange:()=>null,readOnly:!0})}):n.jsx(n.Fragment,{})]}),Ko={"draftjs-text-modifier":"_draftjs-text-modifier_1itwm_2"},$v="_textContentWrapper_1bigo_5",zv="_textContentSection_1bigo_13",Xo={"link-modifier":"_link-modifier_1bigo_1",textContentWrapper:$v,textContentSection:zv},rp=({data:e,ICONS:t})=>{var s;const[r,o]=x.useState(!1);return n.jsx(m.TextStructure.Root,{layoutProps:{textRow:{alignContent:_t(e.textStructureAlignment),alignItems:_t(e.textStructureAlignment)},columnWrapper:{alignContent:_t(e.textStructureAlignment),alignItems:_t(e.textStructureAlignment)}},adornment:{bottom:e.showTextStructureExpander&&e.textStructure?n.jsx(m.Button,{variant:"tertiary",adornment:{end:n.jsx(m.Icon,{name:r?`${t.arrow_up}`:`${t.arrow_down}`})},onClick:()=>o(i=>!i),size:"small",children:r?"Ver Menos":"Ver Mais"}):n.jsx(n.Fragment,{})},children:n.jsxs(m.Utils.Column,{className:Xo.textContentWrapper,style:{alignItems:_t(e.textStructureAlignment)},children:[n.jsx(m.TextStructure.DivWrapper,{style:{textAlign:_t(e.textStructureAlignment)},mode:e.textStructureMode??"default",className:Ko["draftjs-text-modifier"],children:e.textStructureReduced?n.jsx(Dv,{content:e,expanded:r}):n.jsx(n.Fragment,{})}),e.textStructureButtonLabel?n.jsx(et,{mode:e.textStructureMode??"default",href:e.textStructureButtonHref??"#",size:e.textStructureButtonSize,className:Xo["link-modifier"],adornments:(s=e.textStructureButtonIcon)!=null&&s.length&&e.enableIcon?{end:n.jsx(m.Icon,{name:e.textStructureButtonIcon})}:void 0,children:e.textStructureButtonLabel}):n.jsx(n.Fragment,{})]})})},Bv=e=>({centro:{verticalAlignment:"center",horizontalAlignment:"center"},"centro-esquerda":{verticalAlignment:"center",horizontalAlignment:"start"},"centro-direita":{verticalAlignment:"center",horizontalAlignment:"end"},"superior-centro":{verticalAlignment:"start",horizontalAlignment:"center"},"superior-esquerda":{verticalAlignment:"start",horizontalAlignment:"start"},"superior-direita":{verticalAlignment:"start",horizontalAlignment:"end"},"inferior-centro":{verticalAlignment:"end",horizontalAlignment:"center"},"inferior-esquerda":{verticalAlignment:"end",horizontalAlignment:"start"},"inferior-direita":{verticalAlignment:"end",horizontalAlignment:"end"}})[e],ec=e=>({centro:"center",esquerda:"start",direita:"end"})[e],Yo=({dateEnd:e,dateInit:t,TIME_ZONE:r="America/Sao_Paulo",...o})=>{const[s,i]=x.useState(Xl(new Vs.TZDate(Date.now(),r),new Vs.TZDate(e,r))),[a,c]=x.useState(!1);x.useEffect(()=>{a||c(!0);const u=setInterval(()=>{if(s<=0){clearInterval(u);return}i(s-1e3)},1e3);return()=>{clearInterval(u)}},[s,i,a]);const l=Lt(s,"days");return a&&s>0?n.jsxs(m.Timer.Root,{...o,children:[l?n.jsxs(n.Fragment,{children:[n.jsx(m.Timer.Digit,{label:"dias",value:l}),n.jsx(m.Timer.Separator,{})]}):null,n.jsx(m.Timer.Digit,{label:"horas",value:Lt(s,"hours")}),n.jsx(m.Timer.Separator,{}),n.jsx(m.Timer.Digit,{label:"min",value:Lt(s,"minutes")}),n.jsx(m.Timer.Separator,{}),n.jsx(m.Timer.Digit,{label:"segs",value:Lt(s),suppressHydrationWarning:!0})]}):n.jsx(n.Fragment,{})},tc={"content-modifier":"_content-modifier_16y4u_5","banner-image-wrapper-modifier":"_banner-image-wrapper-modifier_16y4u_13"},rc=({data:e,videoUrl:t,priority:r,videoRef:o,ICONS:s,...i})=>{const{video:a,image:c,imageHref:l,imageOpacity:u,altImage:f,backgroundColor:h,position:d,contentAlignment:p,showTimer:g,contentOrder:y,timerMode:_,timerEnd:b,timerInit:S,textStructure:v,textStructureReduced:j}=e.banner,P=(l==null?void 0:l.trim())||(c==null?void 0:c.trim())||null,{nextimage:E}=xe();return n.jsxs(m.Banner.Container,{...i,children:[n.jsxs(m.Banner.ImageWrapper,{className:tc["banner-image-wrapper-modifier"],style:u?{background:h}:void 0,children:[a&&n.jsx(ze.Video,{videoRef:o,src:t,autoPlay:r,loop:!0,playsInline:!0,muted:!0}),P&&!(a!=null&&a.length)&&n.jsx(E,{src:P,width:"1920",height:"1080",alt:f??c??"",...r?{priority:r}:{},style:u?{opacity:"0"}:void 0}),!c&&!(a!=null&&a.length)&&n.jsx("div",{style:{background:h}})]}),g||j||v?n.jsx(m.Banner.Slot,{...Bv(d??"centro"),className:tc["content-modifier"],style:{textAlign:ec(p)},children:n.jsxs(m.Utils.Column,{gap:"16px",alignItems:ec(p),children:[g&&y==="timer-first"&&n.jsx(Yo,{mode:_??"default",size:"small",dateEnd:b?new Date(b):new Date,dateInit:S?new Date(S):new Date}),n.jsx(rp,{data:e.banner,ICONS:s}),g&&y!=="timer-first"&&n.jsx(Yo,{mode:_??"default",size:"small",dateEnd:b?new Date(b):new Date,dateInit:S?new Date(S):new Date})]})}):n.jsx(n.Fragment,{})]})},Qt=({data:e,className:t,priority:r,creative:o,...s})=>{const{handleSelectPromotionEvent:i,currentLocalRef:a}=ce(),{banner:{promotion_name:c},index:l,componentIndex:u}=e,f=typeof l=="number"?`:${l+1}`:"",h={creative_name:o,creative_slot:`${o}-${a.current}:${u+1}${f}`,promotion_id:e.banner.href,promotion_name:c},d=x.useRef(null),p=x.useMemo(()=>{var y;if((y=e.banner.video)!=null&&y.includes("player.vimeo")){const _=e.banner.video.split("?")[1],b=_==null?void 0:_.split("&"),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=d.current)!=null&&y.paused&&d.current.play()};return n.jsx(kr,{eventData:{functionKey:"readyEvents",data:{event:"view_promotion",readyData:{ecommerce:{...h,index:l}}}},observerOptions:{delay:100,...p&&{threshold:.1}},...p&&{callBackWhenVisible:g},children:e.banner.href?n.jsx(Me,{href:e.banner.href,onClick:()=>{i({updatePromotionRef:!0,promotion:h,index:l})},children:n.jsx(rc,{data:e,videoUrl:p,priority:r,videoRef:d,...s})}):n.jsx(rc,{data:e,videoUrl:p,priority:r,videoRef:d,...s})})},qs=e=>n.jsx(Qt,{...e}),np=({columns:e,count:t,gap:r})=>{var p;const{banners:o,pages:s,products:i}=nt(),{isMobile:a}=le(),{banners:c}=Ar(),{ICONS:l,PRODUCT_CARD_IMAGE_ASPECT_RATIO:u}=Le(),f=((p=s[s.length-1])==null?void 0:p.products.length)??t,h=i[(s.length-1)*t+f-1],d=c.filter((g,y)=>o[y]<h);return Array.isArray(d)?d.map((g,y)=>n.jsx(Je.Banner,{columns:g.columns,gap:r,isMobile:a??!1,position_grid:o[y]+1,totalColumns:e,PRODUCT_CARD_IMAGE_ASPECT_RATIO:u,children:n.jsx(Qt,{data:{banner:g,componentIndex:y},creative:"banner_grid",ICONS:l})},`${g.position_grid}-${y}`)):null};np.displayName="PDC.InfiniteScroller.Banners";const op=e=>{var o;const{pages:t}=nt(),r=t[t.length-1];return(r==null?void 0:r.page)!==((o=r==null?void 0:r.pagination)==null?void 0:o.total)&&!(r!=null&&r.loading)?n.jsx(Or,{...e}):null};op.displayName="PDC.InfiniteScroller.Loading";const sp=({page:e,...t})=>{const{updateParamPage:r}=nt(),{element:o}=wr({callback:()=>r(e),options:{threshold:0}});return n.jsx("div",{...t,id:`pdc-scroll-infinite-${e.page}`,className:We["pdc--infinite--loader"],"data-page":e.page,ref:o})};sp.displayName="PDC.Page.Anchor";const ip=({first:e,gap:t,isMobile:r=!1,item:o,index:s,last:i=!1,order:a,page:c,showVideo:l=!1})=>{const{load:u,handleNotify:f}=nt(),{getAvailableProductTag:h}=rt(),{BUY_BUTTON_LABELS:d,MAIN_IMAGE:p,PLP_GRID_SCROLL_BACK:g,PLP_INFINITE_SCROLL:y,PLP_PRODUCT_SIMILAR_DELAY:_,PLP_SHOW_VIDEO_ON_PRODUCT_CARD:b,PRODUCT_CARD_IMAGE_ASPECT_RATIO: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:T,ICONS:w}=Le(),I=h(o==null?void 0:o.cluster.highlights);return n.jsx(Je.Card,{className:o.id==="skeleton"?We["pdc--infinite--card--disabled"]:"",gap:t,isMobile:r??!1,item:o,order:a,tag:I,index:s,setSkuSelected:f,showVideo:l,CONSTANTS:{BUY_BUTTON_LABELS:d,MAIN_IMAGE:p,PLP_GRID_SCROLL_BACK:g,PLP_INFINITE_SCROLL:y,PLP_PRODUCT_SIMILAR_DELAY:_,PLP_SHOW_VIDEO_ON_PRODUCT_CARD:b,PRODUCT_CARD_IMAGE_ASPECT_RATIO: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:T,ICONS:w},children:c&&u&&n.jsxs(n.Fragment,{children:[e&&n.jsx(_r.Anchor,{page:c}),!c.loading&&n.jsx(_r.Loader,{page:c}),i&&c.loading&&n.jsx(_r.NextPage,{page:c})]})})};ip.displayName="PDC.Page.Card";const ap=({type:e="default",page:t,...r})=>{const{load:o,updatePage:s}=nt(),{element:i}=wr({callback:()=>s(t),onEnterViewportOnce:!0,options:{threshold:1}});return o===!0&&n.jsx("div",{...r,className:We[`pdc--infinite--loader${e==="page"?"--page":""}`],ref:i})};ap.displayName="PDC.Page.Loader";const cp=({page:e,...t})=>{var s;const{addNewPage:r}=nt(),{element:o}=wr({callback:()=>{r(e)},onEnterViewportOnce:!0,options:{threshold:[.5,1]}});return((s=e==null?void 0:e.pagination)==null?void 0:s.nextPage)===!0&&e.loading===!0?n.jsx("div",{...t,className:We["pdc--infinite--next-page--card"],"data-next-page":!0,ref:o}):null};cp.displayName="PDC.Page.NextPage";const _r={Anchor:sp,Card:ip,Loader:ap,NextPage:cp},lp=({count:e,gap:t,page:r})=>{const{isMobile:o}=le(),{columns:s,products:i}=nt(),a=(r.page-1)*e,c=Rl(r.products,s);return Array.isArray(r.products)?r.products.map((l,u)=>n.jsx(_r.Card,{first:u===0,last:u===r.products.length-1,gap:t,index:u,item:l.node,isMobile:o??!1,order:i[a+u]+1,page:u===0||u===r.products.length-1?r:void 0,showVideo:!!c.indexOf(u)},i[a+u]+1)):null};lp.displayName="PDC.Page";const Fv=({pages:e,load:t,PLP_GRID_SCROLL_BACK:r})=>{const o=x.useRef(!1);x.useEffect(()=>{const s=e[e.length-1];if(t&&s&&!o.current){const i=sessionStorage.getItem(r.refer),a=sessionStorage.getItem(r.order),c=document.querySelector(i==="true"?`[data-order="${a}"]`:`#pdc-scroll-infinite-${s.page}`);c&&(o.current=!0,sessionStorage.setItem(r.refer,"false"),s.page>1&&c.scrollIntoView({behavior:"instant",block:"start"}))}if(!t&&o.current){o.current=!1;const i=document.querySelector("body > main");i&&i.scrollIntoView({behavior:"instant",block:"start"})}},[t,e])},qv=()=>{var l,u;const{count:e}=$e(),{columns:t,gap:r,load:o,pages:s,total:i}=nt(),a=Le(),{PLP_GRID_SCROLL_BACK:c}=Le();return Fv({pages:s,load:o,PLP_GRID_SCROLL_BACK:c}),n.jsxs(n.Fragment,{children:[o===!0&&((u=(l=s[0])==null?void 0:l.pagination)==null?void 0:u.count)===0&&n.jsx(Qe.Empty,{ICONS:a.ICONS,PLP_NOT_RESULT:a.PLP_NOT_RESULT}),n.jsxs(Je.Root,{children:[Array.isArray(s)&&s.map((f,h)=>n.jsx(lp,{count:e,gap:r,page:f},h)),n.jsx(np,{columns:t,count:e,gap:r})]}),n.jsx(Fs,{total:i}),n.jsx(op,{})]})},up=()=>{const{banners:e}=Ar();return n.jsx(Hl,{banners:e,children:n.jsx(qv,{})})};up.displayName="PDC.InfiniteScroller";const dp=()=>{const{setOpenFilters:e}=vs(),{selectedFacets:t,onToggleFacet:r,onSort:o}=_l(),{state:s}=$e(),{Z_INDEX_WAR:i}=Le(),a=U.filterNonRootFacets(t,s==null?void 0:s.base);return n.jsx(lt.Root,{onSort:o,setOpenFilters:e,style:{zIndex:i.plp_navigation},children:n.jsx(lt.Selected,{callback:r,selected:a})})};dp.displayName="Navigation";const Qo=({currentPage:e,callback:t,type:r,...o})=>n.jsx(m.Button,{...o,iconNameStart:`arrow-${r}`,onClick:()=>{typeof t=="function"&&t(r==="left"?"prev":"")},size:"large",variant:"tertiary"});Qo.displayName="Arrow";const Zo=({active:e,prev:t,ellipses:r,page:o,selectedPage:s})=>n.jsxs(n.Fragment,{children:[r&&t&&n.jsx(m.Button,{size:"large",variant:"tertiary",children:"..."}),e&&n.jsx(m.Pagination.Item,{isActive:!1,index:o,variant:"tertiary",onClick:()=>{typeof s=="function"&&s(o)},children:o}),r&&!t&&n.jsx(m.Button,{size:"large",variant:"tertiary",children:"..."})]});Zo.displayName="PageEllipses";const fp=({children:e,endPage:t,page:r,total:o,selectedPage:s,ITEMS_PER_SECTION:i})=>n.jsxs(n.Fragment,{children:[n.jsx(Zo,{active:r>=i&&o>i,selectedPage:s,currentPage:r,prev:!1,ellipses:r>i&&o>i,page:1}),e,n.jsx(Zo,{active:o-r>1&&o!==t,selectedPage:s,currentPage:r,prev:!0,ellipses:t<o-1,page:o})]});fp.displayName="Pagination.Layout";const Hv=(e,t,r)=>{const o=new URLSearchParams(r);return o.set(e,t),o.toString()},Uv=(e,t)=>{const r=[];for(let o=e;o<=t;o++)r.push(o);return r},Wv=({currentPage:e,total:t,maxVisiblePages:r,SEARCH_PAGE_ITEM_THRESHOLD:o})=>{const s=t>=o?o:t,i=Math.max(1,e===s?s-r+1:e-Math.floor(r/2)),a=Math.min(s,i+r-1);return{startPage:i,endPage:a,totalPages:s}},pp=({currentPage:e,pages:t,searchParams:r,VARIANT_PAGINATION:o})=>{const{router:s,pathname:i}=xe();return Array.isArray(t)?t.map(a=>n.jsx(m.Pagination.Item,{isActive:e===a,index:a,variant:e===a?o.active:o.default,onClick:()=>s.push(`${i}?${Hv("page",a.toString(),r)}`),children:a},a)):null};pp.displayName="Pages";const Hs=({query:e,type:t="default",searchParams:r,ITEMS_DEFAULT_SORT:o,ITEMS_PER_SECTION:s,ITEMS_PER_PAGE:i,SEARCH_PAGE_ITEM_THRESHOLD:a,VARIANT_PAGINATION:c,...l})=>{const{router:u,pathname:f}=xe(),{state:{page:h=1}}=$e(),{pagination:{total:d}}=Wt(),{endPage:p,totalPages:g,startPage:y}=Wv({currentPage:h,total:d,maxVisiblePages:s,SEARCH_PAGE_ITEM_THRESHOLD:a}),_=S=>{const v=S.toString(),j=new URLSearchParams(r.toString());t==="default"&&j.set("page",v),t==="search"&&(j.set("query",e??""),j.set("count",i.toString()),j.set("page",v),o&&j.set("sort",o.replace("_",":")));const E=`${t==="search"?"/search":f}?${j.toString()}`;u.push(E)},b=S=>{_(S==="prev"?h-1:h+1)};return d?n.jsx("div",{...l,className:We["pdc--pagination"],children:n.jsx(m.Pagination.Wrapper,{adornment:{start:n.jsx(Qo,{callback:b,currentPage:h,disabled:h<2,type:"left"}),end:n.jsx(Qo,{callback:b,currentPage:h,disabled:h>=g,type:"right"})},children:n.jsx(fp,{endPage:p,page:h,selectedPage:_,total:d,ITEMS_PER_SECTION:s,children:n.jsx(pp,{currentPage:h,pages:Uv(y,p),searchParams:r,VARIANT_PAGINATION:c})})})}):n.jsx(n.Fragment,{})};Hs.displayName="Pagination";const mp=({gap:e,isMobile:t})=>{const{count:r,state:o}=$e(),{banners:s}=Ar(),{ICONS:i,PRODUCT_CARD_IMAGE_ASPECT_RATIO:a}=Le(),c=s.filter(l=>Il(l.position_grid,o.page,r));return Array.isArray(c)?c.map((l,u)=>n.jsx(Je.Banner,{columns:l.columns,gap:e,isMobile:t,position_grid:l.position_grid,totalColumns:t?2:4,PRODUCT_CARD_IMAGE_ASPECT_RATIO:a,children:n.jsx(Qt,{data:{banner:l,componentIndex:u},creative:"banner_grid",ICONS:i})},l.position_grid)):null};mp.displayName="PDC.Grid.Banners";const Us=({isMobile:e=!1,items:t,BUY_BUTTON_LABELS:r,ICONS:o,MAIN_IMAGE:s,NEWSLETTER_CONFIGS:i,NOTIFY_INFO:a,PLP_GRID_SCROLL_BACK:c,PLP_INFINITE_SCROLL:l,PLP_PRODUCT_SIMILAR_DELAY:u,PLP_SHOW_VIDEO_ON_PRODUCT_CARD:f,PRODUCT_CARD_IMAGE_ASPECT_RATIO:h,PRODUCT_CARD_TEXTS:d,PRODUCT_CARD_TOP_WISHLIST_TOGGLE:p,PRODUCT_IMAGE_DIMENSIONS:g,SECOND_IMAGE:y,StoreConfig_MainSellerId:_,TEXTURE_IMAGE:b,Z_INDEX_WAR:S})=>{const{getAvailableProductTag:v}=rt(),{count:j,state:P}=$e(),[E,C]=x.useState(!1),[R,T]=x.useState(null),[w,I]=x.useState([]),N=x.useCallback((q,B)=>{const V=B?Er([B]):null;I(q),T(V!=null&&V.length?V[0]:null),C(!0)},[]),z=e?8:16,k=(P.page-1)*j,W=Je.helpers.createGridPosAndVideo(t,[],e?2:4,P.page);return n.jsxs(n.Fragment,{children:[n.jsxs(Je.Root,{children:[Array.isArray(t)&&t.map((q,B)=>{var G,F;const V=v(q.node.cluster.highlights);return n.jsx(Je.Card,{gap:z,isMobile:e??!1,item:q.node,order:k+(((G=W[B])==null?void 0:G.position)??0),tag:V,index:B,setSkuSelected:N,showVideo:(F=W[B])==null?void 0:F.canPlayVideo,CONSTANTS:{BUY_BUTTON_LABELS:r,MAIN_IMAGE:s,PLP_GRID_SCROLL_BACK:c,PLP_INFINITE_SCROLL:l,PLP_PRODUCT_SIMILAR_DELAY:u,PLP_SHOW_VIDEO_ON_PRODUCT_CARD:f,PRODUCT_CARD_IMAGE_ASPECT_RATIO:h,PRODUCT_CARD_TEXTS:d,PRODUCT_CARD_TOP_WISHLIST_TOGGLE:p,PRODUCT_IMAGE_DIMENSIONS:g,SECOND_IMAGE:y,StoreConfig_MainSellerId:_,TEXTURE_IMAGE:b,Z_INDEX_WAR:S,ICONS:o}},q.node.sku)}),t.length>0&&n.jsx(mp,{gap:z,isMobile:e??!1})]}),n.jsx(Rr,{open:E,sku:R,skus:w,setSku:T,setVisible:C,ICONS:o,NEWSLETTER_CONFIGS:i,NOTIFY_INFO:a,PRODUCT_CARD_TEXTS:d,Z_INDEX_WAR:S})]})};Us.displayName="PDC.Products";const Qe={Empty:Is,Filters:Zf,Grid:Jf,InfiniteScroller:up,Spinner:Or,Navigation:dp,Notification:Rr,Pagination:Hs,Products:Us},hp=({className:e,...t})=>{const{searchParams:r,ITEMS_DEFAULT_SORT:o,ITEMS_PER_SECTION:s,ITEMS_PER_PAGE:i,PLP_INFINITE_SCROLL:a,SEARCH_PAGE_ITEM_THRESHOLD:c,VARIANT_PAGINATION:l}=t;return n.jsx(Im,{...t,children:n.jsxs("div",{className:m.helpers.classNameConcat(We.pdc,e),children:[n.jsxs(yl,{forceUpdate:!0,children:[n.jsx(Qe.Navigation,{}),n.jsx(Qe.Filters,{})]}),a===!0?n.jsx(Qe.Grid,{infinite:!0}):n.jsxs(_s,{forceUpdate:!0,query:r.get("query")??void 0,children:[n.jsx(Qe.Grid,{}),n.jsx(Qe.Pagination,{searchParams:r,ITEMS_DEFAULT_SORT:o,ITEMS_PER_SECTION:s,ITEMS_PER_PAGE:i,SEARCH_PAGE_ITEM_THRESHOLD:c,VARIANT_PAGINATION:l})]})]})})};hp.displayName="Templates.PDC";const gp=x.createContext({}),Vv=({children:e,...t})=>n.jsx(gp.Provider,{value:t,children:e}),qr=()=>{const e=x.useContext(gp);if(e===void 0)throw new Error("useSearchConstants must be used within a SearchConstantsProvider");return e},Gv="_grid_e75z7_21",Kv="_navigation_e75z7_44",Xv="_spinner_e75z7_70",Yv="_sort_e75z7_76",ct={"rearch-result--empty":"_rearch-result--empty_e75z7_1",grid:Gv,"grid-header":"_grid-header_e75z7_37",navigation:Kv,"result-disclaimer":"_result-disclaimer_e75z7_51",spinner:Xv,sort:Yv,"search-result":"_search-result_e75z7_91"},yp=({term:e})=>{const{router:t}=xe(),{SEARCH_RESULT:r,ICONS:o}=qr(),s=()=>{t.push(r.EMPTY.ALL_TERMS)};return n.jsxs("div",{className:ct["rearch-result--empty"],children:[n.jsxs(m.TextStructure.DivWrapper,{children:[n.jsx("div",{className:U.responsive["responsive-desktop-flex"],children:n.jsx("h2",{className:"typography-style-heading-sm",children:r.EMPTY.NOT_FOUND})}),n.jsx("div",{className:U.responsive["responsive-mobile-flex"],children:n.jsx("h2",{className:"typography-style-body-md",children:r.EMPTY.NOT_FOUND})}),n.jsxs("p",{children:[r.EMPTY.NOT_FOUND_P," ",`"${e}"`]})]}),n.jsx(m.Button,{onClick:()=>s(),variant:"tertiary",size:"medium",adornment:{end:n.jsx(m.Icon,{name:o.arrow_right,size:"medium"})},children:r.EMPTY.ALL_TERMS_LABEL})]})};yp.displayName="RearchResult.Empty";const Qv=e=>n.jsxs(n.Fragment,{children:[n.jsx("div",{className:U.responsive["responsive-desktop-flex"],children:n.jsx("h2",{className:"typography-style-heading-sm",children:e.SEARCH.SEARCHING})}),n.jsx("div",{className:U.responsive["responsive-mobile-flex"],children:n.jsx("h2",{className:"typography-style-body-md",children:e.SEARCH.SEARCHING})}),n.jsx(m.Spinner,{className:ct.spinner})]}),Zv=(e,t,r)=>n.jsxs(n.Fragment,{children:[n.jsx("div",{className:U.responsive["responsive-desktop-flex"],children:n.jsx("h2",{className:"typography-style-heading-sm",children:t.SEARCH.SEARCHED})}),n.jsx("div",{className:U.responsive["responsive-mobile-flex"],children:n.jsx("h2",{className:"typography-style-body-md",children:t.SEARCH.SEARCHED})}),n.jsxs("p",{children:[t.SEARCH.SEARCHED_P_START," ",e," ",t.SEARCH.SEARCHED_P_END," ",`"${r}"`]})]}),_p=({isLoading:e,quantity:t,term:r})=>{const{SEARCH_RESULT:o}=qr();return n.jsx(m.TextStructure.DivWrapper,{children:e?Qv(o):Zv(t,o,r)})};_p.displayName="Search.Loading";const Jv=({term:e})=>{const[t,r]=x.useState(!1),{router:o}=xe(),{searchParams:s}=$e(),{ITEMS_DEFAULT_SORT:i,ITEMS_PER_PAGE:a,ICONS:c}=qr(),l=u=>{U.navigateToSearchPage(o,e,a,1,u??i)};return n.jsx("div",{className:ct.sort,children:n.jsx(Dr,{handleSelectValue:u=>l(u??"release_desc"),sortListOpen:t,setSortListOpen:r,searchParams:s,ICONS:c})})},ex=({query:e})=>{const{isLoading:t,products:r,pagination:o}=Wt();return n.jsxs("div",{className:ct["grid-header"],children:[n.jsxs("div",{className:ct.navigation,children:[!t&&(r!=null&&r.length)?n.jsx(Jv,{term:e}):null,n.jsx(m.Utils.Divider,{})]}),!t&&(r!=null&&r.length)?n.jsx("div",{className:ct["result-disclaimer"],children:n.jsx(_p,{term:e,isLoading:t,quantity:o.count})}):null]})},vp=({isMobile:e=!1,query:t})=>{const{isLoading:r,products:o,pagination:s}=Wt(),{searchParams:i}=$e(),a=qr(),{sendDataLayerEvent:c}=ce(),l=x.useRef({query:t,sended:!1}),u=x.useMemo(()=>!r&&o.length>0&&s.count>0,[r,o.length,s.count]);return x.useEffect(()=>{if(!r){if(l.current.query!==t){l.current.sended=!1,l.current.query=t;return}l.current.sended||(c({functionKey:"readyEvents",data:{event:"view_search_results",readyData:{search_term:t,search_found:(o==null?void 0:o.length)>0}}}),l.current.sended=!0)}},[t,o,r,c]),n.jsxs("div",{className:ct.grid,children:[u?n.jsx(ex,{query:t}):n.jsx(n.Fragment,{}),!r&&(o!=null&&o.length)?n.jsx(Us,{isMobile:e??!1,items:o,...a}):n.jsx(n.Fragment,{}),(o==null?void 0:o.length)===0&&!r?n.jsx(yp,{term:t}):null,u&&n.jsx(Hs,{searchParams:i,...a})]})};vp.displayName="SearchResultContent";const tx=({className:e})=>{const{state:t}=$e(),{isMobile:r}=le();return n.jsx(_s,{forceUpdate:!1,query:t.term??"",children:n.jsx("div",{className:m.helpers.classNameConcat(ct["search-result"],e),children:n.jsx(vp,{currentPage:t.page,isMobile:r??!1,query:t.term??""})})})},xp=({className:e,searchParams:t,CONSTANTS:r})=>{const o=new URLSearchParams(t??""),s=String((o==null?void 0:o.get("query"))??""),i=Number((o==null?void 0:o.get("count"))??0),a=Number((o==null?void 0:o.get("page"))??0),c=String((o==null?void 0:o.get("sort"))??"");return n.jsx(Vv,{...r,children:n.jsx(ys,{sort:c,state:{sort:c,base:"",facets:[],term:s,page:a,count:i},count:i,searchParams:o,ITEMS_PER_PAGE:r.ITEMS_PER_PAGE,children:n.jsx(tx,{className:e})})})};xp.displayName="Search";const rx=({page:e,data:t})=>{const{pathname:r}=xe(),o=x.useRef(null),{sendDataLayerEvent:s,currentLocalRef:i,itemListRef:a,promotionEventRef:c}=ce();return x.useEffect(()=>{const l=Tl("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}}}),bs("login_event","",{expires:f})}},[]),x.useEffect(()=>{if(o.current===r)return;o.current=r;let l={};switch(e){case"PDP":{const f=t,h={};if(!f){l={page_category:"pdp"};break}f.items.forEach(({itemId:d,sellers:p})=>h[d]=p[0].commertialOffer.AvailableQuantity),l={page_category:"pdp",seller_ids:f.items.map(({sellers:d})=>d[0].sellerId).join(),skuStocks:h,product_reference_id:f.productReference};break}case"PDC":{const{page_category:f,page_departament:h,id:d,name:p}=yc(),g=p,y=d;l={page_category:"lista_produtos",...h&&{page_departament:h}},a.current={item_list_name:r==="/search"?"busca":g??void 0,item_list_id:r==="/search"?void 0:y??void 0},h&&s({functionKey:"readyEvents",data:{event:"view_category",readyData:{page_category:f,page_departament:h}}});break}default:l={page_category:e},c.current={},a.current={};break}const u={region:e,...l};i.current=e,s({functionKey:"readyEvents",data:{readyData:{vtex_version:"fast",...u}},timeout:0})},[r]),null};var Jo={exports:{}},gr={exports:{}},nc;function nx(){return nc||(nc=1,function(e,t){Object.defineProperty(t,"__esModule",{value:!0});function r(l,u){for(var f in u)Object.defineProperty(l,f,{enumerable:!0,get:u[f]})}r(t,{DOMAttributeNames:function(){return o},isEqualNode:function(){return i},default:function(){return c}});const o={acceptCharset:"accept-charset",className:"class",htmlFor:"for",httpEquiv:"http-equiv",noModule:"noModule"};function s(l){let{type:u,props:f}=l;const h=document.createElement(u);for(const g in f){if(!f.hasOwnProperty(g)||g==="children"||g==="dangerouslySetInnerHTML"||f[g]===void 0)continue;const y=o[g]||g.toLowerCase();u==="script"&&(y==="async"||y==="defer"||y==="noModule")?h[y]=!!f[g]:h.setAttribute(y,f[g])}const{children:d,dangerouslySetInnerHTML:p}=f;return p?h.innerHTML=p.__html||"":d&&(h.textContent=typeof d=="string"?d:Array.isArray(d)?d.join(""):""),h}function i(l,u){if(l instanceof HTMLElement&&u instanceof HTMLElement){const f=u.getAttribute("nonce");if(f&&!l.getAttribute("nonce")){const h=u.cloneNode(!0);return h.setAttribute("nonce",""),h.nonce=f,f===l.nonce&&l.isEqualNode(h)}}return l.isEqualNode(u)}let a;process.env.__NEXT_STRICT_NEXT_HEAD?a=(l,u)=>{const f=document.querySelector("head");if(!f)return;const h=f.querySelectorAll('meta[name="next-head"]')||[],d=[];if(l==="meta"){const y=f.querySelector("meta[charset]");y&&d.push(y)}for(let y=0;y<h.length;y++){var p;const b=h[y].nextSibling;(b==null||(p=b.tagName)==null?void 0:p.toLowerCase())===l&&d.push(b)}const g=u.map(s).filter(y=>{for(let _=0,b=d.length;_<b;_++){const S=d[_];if(i(S,y))return d.splice(_,1),!1}return!0});d.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)})}:a=(l,u)=>{const f=document.getElementsByTagName("head")[0],h=f.querySelector("meta[name=next-head-count]");if(process.env.NODE_ENV!=="production"&&!h){console.error("Warning: next-head-count is missing. https://nextjs.org/docs/messages/next-head-count-missing");return}const d=Number(h.content),p=[];for(let _=0,b=h.previousElementSibling;_<d;_++,b=(b==null?void 0:b.previousElementSibling)||null){var g;(b==null||(g=b.tagName)==null?void 0:g.toLowerCase())===l&&p.push(b)}const y=u.map(s).filter(_=>{for(let b=0,S=p.length;b<S;b++){const v=p[b];if(i(v,_))return p.splice(b,1),!1}return!0});p.forEach(_=>{var b;return(b=_.parentNode)==null?void 0:b.removeChild(_)}),y.forEach(_=>f.insertBefore(_,h)),h.content=(d-p.length+y.length).toString()};function c(){return{mountedInstances:new Set,updateHead:l=>{const u={};l.forEach(d=>{if(d.type==="link"&&d.props["data-optimized-fonts"]){if(document.querySelector('style[data-href="'+d.props["data-href"]+'"]'))return;d.props.href=d.props["data-href"],d.props["data-href"]=void 0}const p=u[d.type]||[];p.push(d),u[d.type]=p});const f=u.title?u.title[0]:null;let h="";if(f){const{children:d}=f.props;h=typeof d=="string"?d:Array.isArray(d)?d.join(""):""}h!==document.title&&(document.title=h),["meta","base","link","style","script"].forEach(d=>{a(d,u[d]||[])})}}}(typeof t.default=="function"||typeof t.default=="object"&&t.default!==null)&&typeof t.default.__esModule>"u"&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)}(gr,gr.exports)),gr.exports}(function(e,t){"use client";Object.defineProperty(t,"__esModule",{value:!0});function r(P,E){for(var C in E)Object.defineProperty(P,C,{enumerable:!0,get:E[C]})}r(t,{handleClientScriptLoad:function(){return y},initScriptLoader:function(){return S},default:function(){return j}});const o=Oe,s=wt,i=o._(rs),a=s._(x),c=Sf(),l=nx(),u=Pu(),f=new Map,h=new Set,d=["onLoad","onReady","dangerouslySetInnerHTML","children","onError","strategy","stylesheets"],p=P=>{if(i.default.preinit){P.forEach(E=>{i.default.preinit(E,{as:"style"})});return}if(typeof window<"u"){let E=document.head;P.forEach(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:T=null,dangerouslySetInnerHTML:w,children:I="",strategy:N="afterInteractive",onError:z,stylesheets:k}=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=()=>{T&&T(),h.add(W)},B=document.createElement("script"),V=new Promise((G,F)=>{B.addEventListener("load",function(J){G(),R&&R.call(this,J),q()}),B.addEventListener("error",function(J){F(J)})}).catch(function(G){z&&z(G)});w?(B.innerHTML=w.__html||"",q()):I?(B.textContent=typeof I=="string"?I:Array.isArray(I)?I.join(""):"",q()):E&&(B.src=E,f.set(E,V));for(const[G,F]of Object.entries(P)){if(F===void 0||d.includes(G))continue;const J=l.DOMAttributeNames[G]||G.toLowerCase();B.setAttribute(J,F)}N==="worker"&&B.setAttribute("type","text/partytown"),B.setAttribute("data-nscript",N),k&&p(k),document.body.appendChild(B)};function y(P){const{strategy:E="afterInteractive"}=P;E==="lazyOnload"?window.addEventListener("load",()=>{(0,u.requestIdleCallback)(()=>g(P))}):g(P)}function _(P){document.readyState==="complete"?(0,u.requestIdleCallback)(()=>g(P)):window.addEventListener("load",()=>{(0,u.requestIdleCallback)(()=>g(P))})}function b(){[...document.querySelectorAll('[data-nscript="beforeInteractive"]'),...document.querySelectorAll('[data-nscript="beforePageRender"]')].forEach(E=>{const 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:T=null,strategy:w="afterInteractive",onError:I,stylesheets:N,...z}=P,{updateScripts:k,scripts:W,getIsSsr:q,appDir:B,nonce:V}=(0,a.useContext)(c.HeadManagerContext),G=(0,a.useRef)(!1);(0,a.useEffect)(()=>{const J=E||C;G.current||(T&&J&&h.has(J)&&T(),G.current=!0)},[T,E,C]);const F=(0,a.useRef)(!1);if((0,a.useEffect)(()=>{F.current||(w==="afterInteractive"?g(P):w==="lazyOnload"&&_(P),F.current=!0)},[P,w]),(w==="beforeInteractive"||w==="worker")&&(k?(W[w]=(W[w]||[]).concat([{id:E,src:C,onLoad:R,onReady:T,onError:I,...z}]),k(W)):q&&q()?h.add(E||C):q&&!q()&&g(P)),B){if(N&&N.forEach(J=>{i.default.preinit(J,{as:"style"})}),w==="beforeInteractive")return C?(i.default.preload(C,z.integrity?{as:"script",integrity:z.integrity}:{as:"script"}),a.default.createElement("script",{nonce:V,dangerouslySetInnerHTML:{__html:"(self.__next_s=self.__next_s||[]).push("+JSON.stringify([C])+")"}})):(z.dangerouslySetInnerHTML&&(z.children=z.dangerouslySetInnerHTML.__html,delete z.dangerouslySetInnerHTML),a.default.createElement("script",{nonce:V,dangerouslySetInnerHTML:{__html:"(self.__next_s=self.__next_s||[]).push("+JSON.stringify([0,{...z}])+")"}}));w==="afterInteractive"&&C&&i.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)})(Jo,Jo.exports);var ox=Jo.exports,sx=ox;const bp=Ir(sx),ix=({children:e,ONE_TRUST:t})=>n.jsxs(n.Fragment,{children:[n.jsx(bp,{src:"https://cdn.cookielaw.org/scripttemplates/otSDKStub.js",defer:!0,strategy:"afterInteractive","data-domain-script":t.siteId,type:"text/javascript"}),e]}),ax=bd(()=>Promise.resolve(ix),{ssr:!1}),cx="_container_1kcm0_20",lx="_lgpd_1kcm0_71",ux="_success_1kcm0_205",dx="_error_1kcm0_225",Ie={"newsletter-root":"_newsletter-root_1kcm0_1","has-border-top":"_has-border-top_1kcm0_9","has-border-bottom":"_has-border-bottom_1kcm0_12",container:cx,"content-text":"_content-text_1kcm0_39","form-wrapper":"_form-wrapper_1kcm0_43",lgpd:lx,"textfield-structure-modifier":"_textfield-structure-modifier_1kcm0_166","input-wrapper-modifier":"_input-wrapper-modifier_1kcm0_172","support-text-modifier":"_support-text-modifier_1kcm0_176","submit-btn":"_submit-btn_1kcm0_180","loading-spinner":"_loading-spinner_1kcm0_191","terms-and-conditions-unchecked":"_terms-and-conditions-unchecked_1kcm0_197",success:ux,"text-structure-modifier":"_text-structure-modifier_1kcm0_210",error:dx},jp=({invalid_message:e,master_data_field:t,placeholder:r,required:o=!1,CONSTANTS:s})=>{const{isMobile:i}=le(),{inputsStatus:a,setInputsStatus:c,setFormStatus:l,variant:u}=Ss();return n.jsx(m.TextField.Structure,{className:`${Ie["textfield-structure-modifier"]} ${u}`,input:n.jsx(m.TextField.Input,{mode:"simple",label:r,sizeVariant:i?s.NEWSLETTER_CONFIGS.interactionSizeMob:s.NEWSLETTER_CONFIGS.interactionSizeDesk,name:t,className:`${Ie["input-wrapper-modifier"]} ${u}`,feedback:a[t]==="required"?"error":a[t],onChange:()=>{a[t]!=="none"&&(c(f=>({...f,[t]:"none"})),l("idle"))},required:o}),supportText:a[t]==="error"||a[t]==="required"?n.jsx("div",{className:u==="horizontal"?Ie["support-text-modifier"]:"",children:n.jsx(m.TextField.SupportText,{text:a[t]==="error"?e??s.NEWSLETTER_CONFIGS.messages.invalid_generic:s.NEWSLETTER_CONFIGS.messages.required_field,feedback:"error"})}):null})};jp.displayName="Newsletter.Input";const Cp=({title:e,description:t,CONSTANTS:r})=>n.jsx("div",{className:Ie.success,children:n.jsx(m.TextStructure.Root,{adornment:{start:n.jsx(m.Icon,{name:r.ICONS.check_circle,size:"small"})},children:n.jsxs(m.TextStructure.DivWrapper,{className:Ie["text-structure-modifier"],children:[n.jsx("h3",{children:e}),n.jsx("p",{children:t})]})})});Cp.displayName="Newsletter.Success";const Sp=({formStatus:e,fields:t,CONSTANTS:r})=>n.jsx(n.Fragment,{children:e==="success"?n.jsx(Cp,{description:r.NEWSLETTER_CONFIGS.messages.success_description,title:r.NEWSLETTER_CONFIGS.messages.success_title,CONSTANTS:r}):n.jsxs(n.Fragment,{children:[Array.isArray(t)&&t.map((o,s)=>n.jsx(jp,{invalid_message:o.invalid_message,master_data_field:o.master_data_field,placeholder:o.placeholder,required:o.required,type:o.type,CONSTANTS:r},`nt-field-${o.master_data_field}-${s}`)),e==="error"&&n.jsx("div",{className:Ie.error,children:n.jsx("p",{children:r.NEWSLETTER_CONFIGS.form.status.error})})]})});Sp.displayName="Newsletter.FormFields";const Pp=({formStatus:e,CONSTANTS:t,...r})=>{const{isMobile:o}=le();return n.jsxs(m.Button,{...r,className:Ie["submit-btn"],disabled:e==="success",size:o?"medium":"large",children:[n.jsx("span",{"data-loading":e==="loading","data-label":!0,children:t.NEWSLETTER_CONFIGS.submitLabel}),t.NEWSLETTER_CONFIGS.hasLoadingState&&e==="loading"&&n.jsx(m.Spinner,{className:Ie["loading-spinner"],size:"small"})]})};Pp.displayName="Newsletter.SubmitButton";const wp=({checkboxRef:e,formStatus:t,setFormStatus:r,CONSTANTS:o})=>{const s=i=>{i.target.checked?(e.current=!0,t==="unchecked"&&r("idle")):e.current=!1};return n.jsxs(n.Fragment,{children:[n.jsx(m.Checkbox,{adornment:n.jsx(m.Icon,{name:o.ICONS.check,size:"x-small"}),defaultChecked:e.current,disabled:t==="success",name:"terms-and-conditions",label:o.NEWSLETTER_CONFIGS.messages.accept_terms_and_conditions,onChange:s,sizeVariant:"small"}),t==="unchecked"&&n.jsx("div",{className:Ie["terms-and-conditions-unchecked"],children:n.jsx(m.TextStructure.Root,{adornment:{start:n.jsx(m.Icon,{name:o.ICONS.alert_circle,size:"small"})},children:n.jsx(m.TextStructure.DivWrapper,{children:n.jsx("p",{children:o.NEWSLETTER_CONFIGS.messages.terms_and_conditions_not_accepted})})})})]})};wp.displayName="Newsletter.Terms";const Ep=({formPayloadOptionals:e,masterDataEntity:t,CONSTANTS:r})=>{const{checkboxRef:o,fields:s,formStatus:i,hasTermsAndConditions:a,handleClickToSubmit:c,handleSubmit:l,setFormStatus:u}=Ss();return n.jsxs("form",{className:Ie["form-wrapper"],onSubmit:f=>l(f,e,t),children:[n.jsx(Sp,{formStatus:i,fields:s,CONSTANTS:r}),a&&n.jsx(wp,{checkboxRef:o,formStatus:i,setFormStatus:u,CONSTANTS:r}),n.jsx(Pp,{formStatus:i,type:"submit",variant:"primary",onClick:c,CONSTANTS:r})]})};Ep.displayName="Newsletter.Form";const fx=["horizontal","vertical"],Ws=({className:e,description:t,formPayloadOptionals:r,fields:o,masterDataEntity:s,masterDataEmailField:i,masterDataNameField:a,lgpd:c,title:l,variant:u,borderTop:f,borderBottom:h,CONSTANTS:d,...p})=>{if(!i||!a)return null;const g=m.helpers.ValidateProp({fieldTypes:fx,property:u,fallback:"horizontal"});return n.jsx(Zl,{fields:o,masterDataEmailField:i,masterDataNameField:a,variant:g,CONSTANTS:d,children:n.jsxs("div",{...p,className:m.helpers.classNameConcat(Ie["newsletter-root"],[f&&Ie["has-border-top"],h&&Ie["has-border-bottom"],e].filter(Boolean)),"data-variant":g,children:[n.jsxs("div",{className:Ie.container,children:[n.jsxs("div",{className:Ie["content-text"],children:[l&&n.jsx("h2",{children:l}),t&&n.jsx("p",{children:t})]}),n.jsx(Ep,{formPayloadOptionals:r,masterDataEntity:s,CONSTANTS:d})]}),n.jsx("div",{className:Ie.lgpd,children:n.jsx("p",{children:d.NEWSLETTER_CONFIGS.messages.lgpd})})]})})};Ws.displayName="Newsletter";const Rp=({children:e,...t})=>n.jsx("div",{...t,children:e});Rp.displayName="CallToAction";const px="_wrapper_aejhu_1",mx="_body_aejhu_8",Pr={wrapper:px,body:mx,"wrapper-body":"_wrapper-body_aejhu_16","accordion-modifier":"_accordion-modifier_aejhu_32"},hx=({children:e,className:t,...r})=>n.jsx("div",{...r,className:m.helpers.classNameConcat(Pr.wrapper,t),children:e}),gx=({data:e,ICONS:t})=>{const[r,o]=x.useState(null),s=a=>{o(c=>c===a?null:a)},{router:i}=xe();return n.jsx("div",{className:m.helpers.classNameConcat(Pr.body),children:Array.isArray(e)&&(e==null?void 0:e.map((a,c)=>{var h;const l=r===a.id,u=a.buttonHref&&a.buttonHref!=="#",f=a.buttonHref&&a.type==="button"&&u?{onClick:()=>{var d;if((d=a.buttonHref)!=null&&d.startsWith("/")){i.push(a.buttonHref);return}window.open(a.buttonHref,"_blank")}}:{};return n.jsx("div",{children:a.type==="button"?n.jsxs(n.Fragment,{children:[n.jsx(m.Button,{variant:"tertiary",mode:a.buttonMode??"default",size:a.buttonSize??"medium",iconNameStart:t[a.buttonIcon]??a.buttonIcon,...f,style:{marginTop:16},children:a.buttonLabel}),n.jsx(m.Utils.Divider,{direction:"horizontal",size:"small",style:{height:16}})]}):n.jsxs(m.Accordion.Wrapper,{className:m.helpers.classNameConcat(Pr["accordion-modifier"]),children:[n.jsx(m.Accordion.Header,{id:`${c}-${a.title}`,closeIndicator:l?n.jsx(m.Icon,{name:t.arrow_up,size:"medium"}):void 0,openIndicator:l?void 0:n.jsx(m.Icon,{name:t.arrow_down,size:"medium"}),title:"accordion-header",onClick:()=>s(a.id),children:n.jsx(m.TextStructure.Root,{children:n.jsx(m.TextStructure.DivWrapper,{children:n.jsx("h2",{className:"typography-style-body-sm",children:a.title})})})}),n.jsx(m.Accordion.Body,{title:"accordion-body",children:n.jsx(m.TextStructure.Root,{children:l&&n.jsxs(m.TextStructure.DivWrapper,{children:[a.subtitle?n.jsx("h3",{className:"typography-style-body-md",children:a.subtitle}):n.jsx(n.Fragment,{}),n.jsx("p",{className:"typography-style-caption",children:a.description}),a.buttonLabel&&a.buttonHref?n.jsx(et,{href:a.buttonHref??"#",mode:a.buttonMode??"default",size:a.buttonSize??"medium",adornments:(h=a.buttonIcon)!=null&&h.length?{end:n.jsx(m.Icon,{name:t[a.buttonIcon]??a.buttonIcon})}:void 0,children:a.buttonLabel}):n.jsx(n.Fragment,{})]})})})]})},a.id)}))})},yx=({className:e,data:t,ICONS:r,...o})=>{const[s,i]=x.useState(!1),[a,c]=x.useState(null);x.useEffect(()=>{!s&&!a&&t&&c(t)},[s,a]);const l=x.useCallback(()=>{i(u=>!u)},[]);return a?n.jsxs(hx,{...o,className:e,children:[n.jsx("div",{className:Pr["wrapper-body"],hidden:!s,children:s&&n.jsx(gx,{data:a.content,ICONS:r})}),n.jsx(Rp,{children:n.jsx("div",{onClick:l,children:s?n.jsx(m.Button,{iconNameEnd:r.close,size:(a==null?void 0:a.helpButtonSize)??"x-large"}):n.jsx(m.Button,{iconNameStart:(a==null?void 0:a.iconLabel)??r.help,size:(a==null?void 0:a.helpButtonSize)??"x-large",children:a==null?void 0:a.label})})})]}):n.jsx(n.Fragment,{})},vr={teamComponents:{AddToCart:ws,BackToTop:xh,HelpButton:yx,BuyPackage:Gu,Filter:{...tt,helpers:cf},...q_,FreightCalculation:Yd,Header:Xd,Link:et,Media:ze,PLPNavigation:lt,ProductCard:ve,ProductList:Je,ProductVariationList:Xe,Sort:Dr,UserMenu:Lr,Newsletter:Ws},template:{minicart:ke,pdc:hp,pdc_composites:Qe,pdp:Rv,searchResult:xp,wishList:Ou},utils:{EventCollector:rx,ExternalScripts:ax,LinkOrNotLink:Vt,ObserverWrapper:kr,SnackBarComponent:Ct,DraftJsLinkWrapper:ep}},_x=(e,t)=>{const r=e.map(s=>`'${s.source}'`).join(`,
|
|
40
|
+
*/const c=i(357),l=(C,R,T)=>{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,...T};typeof w.strictZeros=="boolean"&&(w.relaxZeros=w.strictZeros===!1);let N=String(w.relaxZeros),I=String(w.shorthand),z=String(w.capture),k=String(w.wrap),W=C+":"+R+"="+N+I+z+k;if(l.cache.hasOwnProperty(W))return l.cache[W].result;let q=Math.min(C,R),F=Math.max(C,R);if(Math.abs(q-F)===1){let A=C+"|"+R;return w.capture?`(${A})`:w.wrap===!1?A:`(?:${A})`}let G=P(C)||P(R),V={min:C,max:R,a:q,b:F},B=[],J=[];if(G&&(V.isPadded=G,V.maxLen=String(V.max).length),q<0){let A=F<0?Math.abs(F):1;J=d(A,Math.abs(q),V,w),q=V.a=0}return F>=0&&(B=d(q,F,V,w)),V.negatives=J,V.positives=B,V.result=u(J,B),w.capture===!0?V.result=`(${V.result})`:w.wrap!==!1&&B.length+J.length>1&&(V.result=`(?:${V.result})`),l.cache[W]=V,V.result};function u(C,R,T){let w=p(C,R,"-",!1)||[],N=p(R,C,"",!1)||[],I=p(C,R,"-?",!0)||[];return w.concat(I).concat(N).join("|")}function f(C,R){let T=1,w=1,N=b(C,T),I=new Set([R]);for(;C<=N&&N<=R;)I.add(N),T+=1,N=b(C,T);for(N=S(R+1,w)-1;C<N&&N<=R;)I.add(N),w+=1,N=S(R+1,w)-1;return I=[...I],I.sort(y),I}function h(C,R,T){if(C===R)return{pattern:C,count:[],digits:0};let w=g(C,R),N=w.length,I="",z=0;for(let k=0;k<N;k++){let[W,q]=w[k];W===q?I+=W:W!=="0"||q!=="9"?I+=j(W,q):z++}return z&&(I+=T.shorthand===!0?"\\d":"[0-9]"),{pattern:I,count:[z],digits:N}}function d(C,R,T,w){let N=f(C,R),I=[],z=C,k;for(let W=0;W<N.length;W++){let q=N[W],F=h(String(z),String(q),w),G="";if(!T.isPadded&&k&&k.pattern===F.pattern){k.count.length>1&&k.count.pop(),k.count.push(F.count[0]),k.string=k.pattern+x(k.count),z=q+1;continue}T.isPadded&&(G=E(q,T,w)),F.string=G+F.pattern+x(F.count),I.push(F),z=q+1,k=F}return I}function p(C,R,T,w,N){let I=[];for(let z of C){let{string:k}=z;!w&&!_(R,"string",k)&&I.push(T+k),w&&_(R,"string",k)&&I.push(T+k)}return I}function g(C,R){let T=[];for(let w=0;w<C.length;w++)T.push([C[w],R[w]]);return T}function y(C,R){return C>R?1:R>C?-1:0}function _(C,R,T){return C.some(w=>w[R]===T)}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 x(C){let[R=0,T=""]=C;return T||R>1?`{${R+(T?","+T:"")}}`:""}function j(C,R,T){return`[${C}${R-C===1?"":"-"}${R}]`}function P(C){return/^-?(0+)\d/.test(C)}function E(C,R,T){if(!R.isPadded)return C;let w=Math.abs(R.maxLen-String(C).length),N=T.relaxZeros!==!1;switch(w){case 0:return"";case 1:return N?"0?":"0";case 2:return N?"0{0,2}":"00";default:return N?`0{0,${w}}`:`0{${w}}`}}l.cache={},l.clearCache=()=>l.cache={},s.exports=l},17:s=>{s.exports=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._(v),a=n._(cs),i=n._(i_()),c=Bs,l=qr,u=c_(),f=Qt,h=Iu(),d=n._(Bf()),p=process.env.__NEXT_IMAGE_OPTS;typeof window>"u"&&(globalThis.__NEXT_IMAGE_IMPORTED=!0);function g(x,j,P,E,C,R){const T=x==null?void 0:x.src;if(!x||x["data-loaded-src"]===T)return;x["data-loaded-src"]=T,("decode"in x?x.decode():Promise.resolve()).catch(()=>{}).then(()=>{if(!(!x.parentElement||!x.isConnected)){if(j!=="empty"&&C(!0),P!=null&&P.current){const N=new Event("load");Object.defineProperty(N,"target",{writable:!1,value:x});let I=!1,z=!1;P.current({...N,nativeEvent:N,currentTarget:x,target:x,isDefaultPrevented:()=>I,isPropagationStopped:()=>z,persist:()=>{},preventDefault:()=>{I=!0,N.preventDefault()},stopPropagation:()=>{z=!0,N.stopPropagation()}})}if(E!=null&&E.current&&E.current(x),process.env.NODE_ENV!=="production"){const N=new URL(T,"http://n").searchParams.get("url")||T;if(x.getAttribute("data-nimg")==="fill"){if(!R&&(!x.getAttribute("sizes")||x.getAttribute("sizes")==="100vw")&&x.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'),x.parentElement){const{position:k}=window.getComputedStyle(x.parentElement),W=["absolute","fixed","relative"];W.includes(k)||(0,f.warnOnce)('Image with src "'+N+'" has "fill" and parent element with invalid "position". Provided "'+k+'" should be one of '+W.map(String).join(",")+".")}x.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 I=x.height.toString()!==x.getAttribute("height"),z=x.width.toString()!==x.getAttribute("width");(I&&!z||!I&&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(x){const[j,P]=s.version.split("."),E=parseInt(j,10),C=parseInt(P,10);return E>18||E===18&&C>=3?{fetchPriority:x}:{fetchpriority:x}}const _=(0,s.forwardRef)((x,j)=>{let{src:P,srcSet:E,sizes:C,height:R,width:T,decoding:w,className:N,style:I,fetchPriority:z,placeholder:k,loading:W,unoptimized:q,fill:F,onLoadRef:G,onLoadingCompleteRef:V,setBlurComplete:B,setShowAltText:J,onLoad:A,onError:O,...D}=x;return s.default.createElement("img",{...D,...y(z),loading:W,width:T,height:R,decoding:w,"data-nimg":F?"fill":"1",className:N,style:I,sizes:C,srcSet:E,src:P,ref:(0,s.useCallback)(X=>{j&&(typeof j=="function"?j(X):typeof j=="object"&&(j.current=X)),X&&(O&&(X.src=X.src),process.env.NODE_ENV!=="production"&&(P||console.error('Image is missing required "src" property:',X),X.getAttribute("alt")===null&&console.error('Image is missing required "alt" property. Please add Alternative Text to describe the image for screen readers and search engines.')),X.complete&&g(X,k,G,V,B,q))},[P,k,G,V,B,O,q,j]),onLoad:X=>{const ne=X.currentTarget;g(ne,k,G,V,B,q)},onError:X=>{J(!0),k!=="empty"&&B(!0),O&&O(X)}})});function b(x){let{isAppRouter:j,imgAttributes:P}=x;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)((x,j)=>{const E=!(0,s.useContext)(h.RouterContext),C=(0,s.useContext)(u.ImageConfigContext),R=(0,s.useMemo)(()=>{const V=p||C||l.imageConfigDefault,B=[...V.deviceSizes,...V.imageSizes].sort((A,O)=>A-O),J=V.deviceSizes.sort((A,O)=>A-O);return{...V,allSizes:B,deviceSizes:J}},[C]),{onLoad:T,onLoadingComplete:w}=x,N=(0,s.useRef)(T);(0,s.useEffect)(()=>{N.current=T},[T]);const I=(0,s.useRef)(w);(0,s.useEffect)(()=>{I.current=w},[w]);const[z,k]=(0,s.useState)(!1),[W,q]=(0,s.useState)(!1),{props:F,meta:G}=(0,c.getImgProps)(x,{defaultLoader:d.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:I,setBlurComplete:k,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)})(Zo,Zo.exports);var X_=Zo.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=Bs,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,d]of Object.entries(f))d===void 0&&delete f[h];return{props:f}},l=a.Image})(Af);var Y_=Af;const wr=kr(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(wr,{alt:o,src:`/assets/${o}.svg`,width:20,height:20}):r.jsx(m.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(wr,{alt:o,src:`/assets/${o}.svg`,width:20,height:20}):r.jsx(m.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(m.TextStructure.Root,{layoutProps:{textRow:{alignContent:o,alignItems:o},columnWrapper:{alignContent:s,alignItems:a}},children:r.jsxs(m.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(m.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(m.Accordion.Wrapper,{className:ye.accordionWrapper,title:"accordion-wrapper",...a,children:[r.jsx(m.Accordion.Header,{id:(a==null?void 0:a.id)??"",className:ye.accordionHeader,closeIndicator:r.jsx(m.Icon,{name:s.arrow_up,size:"medium"}),openIndicator:r.jsx(m.Icon,{name:s.arrow_down,size:"medium"}),title:"accordion-header",children:r.jsx(m.TextStructure.Root,{children:r.jsxs(m.TextStructure.DivWrapper,{className:t?ye.accordionTextWrapper:"",children:[r.jsx(m.Icon,{name:`${t}`,size:"medium"}),r.jsx("h2",{className:"typography-style-body-md",children:e})]})})}),r.jsx(m.Accordion.Body,{title:"accordion-body",children:r.jsx(m.TextStructure.Root,{children:r.jsx(m.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})},_r=({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:d,columnAlignItems:p,textAlignContent:g,textAlignItems:y,..._})=>{let b;const{handleSelectContent:S}=le(),{nextimage:x}=_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:m.helpers.classNameConcat(ye.payment,ye.footer__itemSmallText),..._,children:[u,r.jsxs("div",{className:m.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(x,{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(m.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(m.TextStructure.Root,{layoutProps:{textRow:{alignContent:h,alignItems:h},columnWrapper:{alignContent:d,alignItems:p}},..._,children:r.jsx(m.TextStructure.DivWrapper,{alignContent:g,alignItems:y,className:m.helpers.classNameConcat(ye.footer__item,n),children:b})})},tv=({className:e,text:t,...n})=>r.jsx("div",{...n,className:m.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=v.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:m.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(_r,{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(_r,{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(_r,{children:n==null?void 0:n.subTitle}):null,r.jsx(_r,{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(m.TextStructure.Root,{children:r.jsx(m.TextStructure.DivWrapper,{className:e.length===0?"":U.styles["accessibility-info"],children:r.jsx("p",{children:e})})})},Wr=({className:e,titleId:t})=>{var s,a,i;const{productName:n,tag:o}=$e();return r.jsxs("div",{className:m.helpers.classNameConcat(U.styles.header,e),children:[o!=null&&o.commercial?r.jsx(m.Tag,{size:"small",title:(s=o.commercial)==null?void 0:s.value,variant:"quaternary",adornment:{start:(a=o.commercial)!=null&&a.icon?r.jsx(m.Icon,{name:o.commercial.icon}):null},children:(i=o.commercial)==null?void 0:i.value}):null,r.jsx(m.TextStructure.Root,{children:r.jsx(m.TextStructure.DivWrapper,{children:r.jsx("h1",{id:t,children:n})})})]})};Wr.displayName="PDP.PDPHeader";const Gs=({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(m.ProductInfo.Root,{size:"small",layout:e,children:r.jsxs(m.ProductInfo.Wrapper,{layout:e,size:"small",className:U.styles["price-wrapper"],children:[r.jsx(m.ProductInfo.ValuesWrapper,{children:t!==n?r.jsxs(r.Fragment,{children:[r.jsx(m.ProductInfo.Price,{label:"originalPrice",value:i.toString(),size:"small"}),r.jsx(m.ProductInfo.Price,{label:"discountPrice",value:c.toString(),size:"small"})]}):r.jsx(m.ProductInfo.Price,{label:"defaultPrice",value:c.toString(),size:"small"})}),s&&s>1&&a?r.jsx(m.ProductInfo.Price,{label:"installment",value:`ou ${s}x ${l}`,size:"small"}):null]})})},Jo=({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:d}=Ee(),{sendDataLayerEvent:p}=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}),d({id:s.sku,quantity:s.quantity,seller:s.sellerId},{id:a,texture:u==null?void 0:u.imageUrl}),p({functionKey:"skuEvents",data:{event:"add_to_cart",commonData:{products:[{...i,price:c,listPrice:l}]},supportData:{selectedSkus:[s]},customData:{quantity:s.quantity}}})};return r.jsx(m.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}=Pe();return o.sku&&o.available?r.jsx(Jo,{addToCartBtnSize:e,BUY_BUTTON_LABELS:t}):r.jsx(m.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(m.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(Wr,{}),r.jsx(Gs,{layout:"name-vertical"})]}),r.jsx(ov,{addToCartBtnSize:e,BUY_BUTTON_LABELS:t})]}):null},av=({children:e,setShowBottomNavigation:t})=>{const n=v.useRef(null),o=us(n),s=v.useRef(o);return v.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(m.Button,{adornment:{start:r.jsx(m.Icon,{name:e[c.includes(a)?"favorite_true":"favorite_false"],size:"medium"})},className:U.styles["add-to-wishlist"],size:t?"medium":"x-large",variant:"tertiary",onClick:()=>{l(a),i({functionKey:"productEvents",data:{event:c.includes(a)?"remove_from_wishlist":"add_to_wishlist",outsideEcommerceData:{region:"PDP"},commonData:{...s,price: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]=v.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(Jo,{onAddCallBack:t,addToCartBtnSize:n,BUY_BUTTON_LABELS:o})}):r.jsx(Jo,{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(m.BreadCrumb.DivWrapper,{className:m.helpers.classNameConcat(U.styles.breadcrumb,[t==="mobile"?U.styles["breadcrumbs-mobile"]:U.styles["breadcrumbs-desktop"],e]),children:r.jsxs(m.BreadCrumb.List,{children:[Array.isArray(o)&&o.map((i,c)=>{const l=a(o.slice(0,c+1).map(u=>u.replace(/\s/g,"-").toLowerCase()).join("/"));return r.jsx(m.BreadCrumb.Item,{adornment:{end:r.jsx(m.Icon,{name:n.arrow_right})},role:"listitem",children:r.jsx(De,{href:`/${l}`,children:i})},`pdp-breadcrumb-${l}-${c}`)}),r.jsx(m.BreadCrumb.Item,{role:"listitem",className:m.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(m.Tag,{className:m.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(m.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]=v.useState("description");return r.jsxs(m.Tabs.Root,{className:U.styles["tabs-root-modifier"],children:[r.jsx(m.Tabs.TabList,{className:U.styles["tabs-list-modifier"],children:e==null?void 0:e.map(({label:s,value:a})=>r.jsx(m.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(m.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(m.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(m.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=v.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}=m.Carousel.useCarousel({gap:0,itemsPerPage:1,loop:!1,direction:"row"});return r.jsxs(m.Carousel.Root,{innerRef:h=>{a(h)},className:U.styles["gallery-carousel-modifier"],children:[r.jsx(m.Carousel.Controller,{position:"absolute",top:"24px",bottom:"unset",left:"16px",children:r.jsx(m.Carousel.Bullets,{page:i.currentPage,total:e.length,onBulletClick:h=>c==null?void 0:c.navigateTo(h)})}),r.jsxs(m.Carousel.Body,{children:[r.jsx(m.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(m.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,d)=>d===0?null:r.jsx(m.Carousel.Item,{style:l,children:r.jsx(oc,{image:h,index:d,handleZoom:n,PRODUCT_IMAGE_DIMENSIONS:s})},`PDP_gallery_${d}`))]})]})};Kf.displayName="PDP.Carousel";const dv="_thumbs_1954e_65",fv="_selected_1954e_92",pv="_carousel_1954e_164",mv="_bullets_1954e_201",Se={"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:`${Se["button-close-container"]}`,children:r.jsx(m.Button,{iconNameStart:t.close,iconSize:"medium",className:`${Se["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:Se["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=v.useRef(null),{initialize:l,controller:u,pagination:f,itemsStyles:h}=m.Carousel.useCarousel({itemsPerPage:1,gap:10,loop:!1,direction:"row"}),d=g=>{u==null||u.navigateTo(g)},p=()=>{n(!0)};return v.useEffect(()=>{t(f.currentPage)},[f.currentPage,t]),r.jsxs(m.Carousel.Root,{innerRef:g=>{g&&!i&&(i=g,l(i))},className:Se.carousel,children:[r.jsxs(m.Carousel.Controller,{className:Se["carousel-controller"],children:[r.jsx(m.Button,{variant:"tertiary",onClick:()=>u==null?void 0:u.prevPage(),className:Se["arrow-left"],adornment:{start:r.jsx(m.Icon,{name:o.arrow_left})}}),r.jsx(m.Button,{variant:"tertiary",onClick:()=>u==null?void 0:u.nextPage(),className:Se["arrow-right"],adornment:{start:r.jsx(m.Icon,{name:o.arrow_right})}})]}),r.jsx(m.Carousel.Body,{children:Array.isArray(e)&&e.map((g,y)=>r.jsx(m.Carousel.Item,{style:h,children:r.jsx(a,{...s.image_zoom.mobile,...y===0&&{priority:!0,loading:"eager"},ref:c,className:Se.imageMobile,src:g.imageUrl,alt:g.imageText,quality:100,...y===0&&{onLoad:p}})},y))}),r.jsx(m.Carousel.Bullets,{className:Se.bullets,page:f.currentPage,total:f.totalPages,onBulletClick:d})]})};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:Se["image-zoom--image"],ref:e,children:r.jsx(o,{...n.image_zoom.mobile,alt:t.imageText,className:Se["image-zoom--image--img"],quality:100,src:t.imageUrl})})};Yf.displayName="ImageZoom.ImageZoom";const Qf=({loaded:e=!1})=>r.jsx("div",{className:Se["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]=v.useState(!1),[i,c]=v.useState(0),{containerRef:l,imgRef:u,scale:f}=Rc({defaultScale:1,maxScale:3});return r.jsxs("div",{...o,className:Se["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:Se["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:Se["image-zoom-wrapper-mobile"],style:{zIndex:t.pdp_image_zoom},children:e}),yv="_modal_1u87b_1",Je={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(m.Modal.Header,{navigation:"top",className:Je["modal-header"],children:r.jsxs(m.Modal.Controls,{navigation:"top",isMobile:t,children:[r.jsx("div",{className:Je["modal-header__title"],children:r.jsx(m.Modal.Title,{navigation:"top",className:Je["quick-shop__title"],title:e})}),r.jsx(m.Button,{className:Je["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=v.useMemo(()=>c!=null&&c.length?vv({items:c,getLabel:j=>j.value,PLP_SIZE_ORDER:t}):[],[c]),{sizesContainerRef:h}=vc(),{isMobile:d}=ce(),p=Kt(),g=ll(),{setValue:y}=al(),{setValue:_}=ys(),b=v.useRef({}),[S,x]=v.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(m.ToggleSize.Wrapper,{size:d?"medium":"large",title:j.value,outOfStock:!j.available,onClick:()=>{j.available||(x({skuID:j.sku,size:j.value,disable:!0}),_(!0)),p.sku!==j.sku&&(y({...p,productId:l,name:j.name,size:j.value,sku:j.sku,sellerId:j.sellerId,sellerName:j.sellerName,available:j.available}),u({sku:j.sku,size:j.value}))},active:p.sku===j.sku,children:[r.jsx(m.ToggleSize.DisabledAdornment,{title:"disabled-adornment-texture"}),r.jsx(m.ToggleSize.Text,{children:j==null?void 0:j.value})]},`sizes-${j.sku}-${j.value}`)))}),r.jsx(As,{open:g,setVisible:_,sku:S,setSku:x,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:m.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}=Pe(),s=v.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:m.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=v.useRef(null);return r.jsx(m.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(m.ToggleStyle.DisabledAdornment,{}),r.jsx(m.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]=v.useState([]);return v.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(m.Modal.Body,{className:Je["modal-product-body"],children:r.jsxs(ep,{className:Je["pdp-main__info-modifier"],children:[r.jsxs(Ft,{type:"product-info",children:[r.jsx(Wr,{}),r.jsx(Gs,{})]}),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]=v.useState(!1),i=()=>a(c=>!c);return r.jsxs("div",{className:Je["quick-shop"],children:[r.jsx(m.Button,{onClick:i,size:"x-large",className:Je["shop-bag"],iconNameStart:n.bag,iconSize:"medium"}),r.jsxs(m.Modal.Root,{isOpen:s,setIsOpen:a,className:`${Je.modal} ${Je["quick-shop__modal"]}`,style:{position:"fixed",height:"100svh",width:"100%",top:0,zIndex:1e3,bottom:"unset",overflowY:"hidden"},variant:"sideRight",children:[r.jsx(_v,{headerTitle:t.title,ICONS:n}),r.jsx(bv,{callBackProductAdded:e,ICONS:n,...o})]})]})}const Cv=({image:e})=>r.jsx(wr,{src:U.resizingImg(e.imageUrl,{width:50,height:75})||"",alt:e.imageText,className:Se.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]=v.useState(!1),{nextimage:i}=_e();return r.jsx("div",{...o,className:Se["main-image-container"],children:r.jsxs("div",{className:Se["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:Se.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:Se.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?Se.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]=v.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]=v.useState({show:!1,initialIndex:0});v.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=v.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}=ys(),{sendDataLayerEvent:c}=le();return r.jsx("div",{className:m.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(m.Button,{adornment:t?{start:r.jsx(m.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(m.Button,{adornment:t?{start:r.jsx(m.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(m.Button,{size:"x-small",variant:"tertiary",className:"sizebay",underline:!0,onClick:()=>{var l,u;return(u=window.SizebayParams)==null?void 0:u.openVFR((l=window.SizebayParams)==null?void 0:l.id)},children:o.links_and_stepper.sizebay})]})})},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]}),Lv=({ICONS:e,SIZES:t,Z_INDEX_WAR:n})=>{const o=fl(),{setValue:s}=pl();return r.jsx(m.Modal.Root,{isMobile:!0,style:{zIndex:n.modal},setIsOpen:s,isOpen:o,className:U.styles.measurementModal,children:r.jsx(m.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(wr,{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(m.Button,{onClick:()=>s(!1),className:U.styles.measurementClose,variant:"tertiary",children:r.jsx(m.Icon,{name:e.close})})]})})},"minicart")},Mv=({children:e,className:t,...n})=>r.jsx("div",{className:m.helpers.classNameConcat(U.styles["pdp-main__gallery-wrapper"],t),...n,children:e}),Dv=({children:e,className:t,...n})=>r.jsx("div",{className:m.helpers.classNameConcat(U.styles.pdp,t),...n,children:e}),$v=({children:e,className:t,...n})=>r.jsx("div",{className:m.helpers.classNameConcat(U.styles["pdp-main"],t),...n,children:e}),zv=({children:e,className:t,...n})=>r.jsx("div",{className:m.helpers.classNameConcat(U.styles["pdp-main__info-secondary-content"],t),...n,children:e}),Fv={gallery:Mv,pdp:Dv,main:$v,secondary:zv},Bv=({className:e,...t})=>r.jsx(m.Utils.Divider,{...t,className:m.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:Wr,Links:Ev,MainContent:Rv,MainInfo:ep,Price:Gs,ProductMeasurements:Lv,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}=Me(),[i,c]=v.useState("10000:0"),{isMobile:l}=ce(),{sendDataLayerEvent:u}=le(),{openFilters:f,setOpenFilters:h}=Ps(),{state:d}=ze(),{breadcrumb:p,deleteAllFacets:g,isLoading:y=!1,facets:_,onToggleFacet:b,selectedFacets:S}=au.contexts.searchFacets.hook(),x=v.useRef(""),j={isLast:!0,href:(E=d.term)!=null&&E.length?`/${d.term}`:"",name:d.term},P=U.filterNonRootFacets(S,d==null?void 0:d.base);return v.useEffect(()=>{const C=_.find(({key:R})=>R==="price");if(C){const[R,T]=Hv(C.values,i??"10000:0");c(`${R}:${T}`)}},[_,i,c]),v.useEffect(()=>{if(!P.length)return;const C=JSON.stringify(P);x.current!==C&&(x.current=C,u({functionKey:"filterEvent",data:{commonData:{selectedFacets:P}}}))},[P]),r.jsxs(Cr.teamComponents.Filter.Root,{CONSTANTS:{ICONS:e,PLP_FILTERS_TITLE:s,PLP_FILTERS:t},breadcrumb:p.length?p:[j],deleteAllFacets:g,filters:{facets:U.filterNonCategorySelected(_,d==null?void 0:d.base),selected:P},isMobile:l??!1,isLoading:y,isOpen:f,price:i,onToggleFacet:b,setIsOpen:h,target:document.body,children:[r.jsx(Cr.teamComponents.Filter.Selected,{ICONS:e,PLP_FILTERS:t,PLP_FILTERS_COLORS:n}),r.jsx(Cr.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 Vs=({total:e=0})=>{const{SEARCH_TOTAL_PORTAL_ID:t}=Me();if(typeof window>"u")return null;const n=document.getElementById(t);return n?cs.createPortal(r.jsxs("span",{children:["[",e,"] produto",e>1?"s":""]}),n):null};Vs.displayName="PDC.Grid.NavigationTotal";const Wv=({productCount:e,PLP_GRID_SCROLL_BACK:t})=>{v.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=Me();return Wv({productCount:n.length,PLP_GRID_SCROLL_BACK:s.PLP_GRID_SCROLL_BACK}),r.jsxs(r.Fragment,{children:[r.jsx(Ze.Products,{isMobile:e??!1,items:n,...s}),!n.length&&!t&&r.jsx(Ze.Empty,{ICONS:s.ICONS,PLP_NOT_RESULT:s.PLP_NOT_RESULT}),r.jsx(Vs,{total:o})]})},ap=({infinite:e=!1})=>r.jsx("div",{className:Ge["pdc--grid"],children:r.jsx("div",{className:Ge["pdc--grid--content"],children:e?r.jsx(Ze.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)},Er=e=>{const t=new Xe.CompositeDecorator([{strategy:Vv,component:ip}]),n=Xe.convertFromRaw(e);return Xe.EditorState.createWithContent(n,t)},Kv=e=>Xe.convertFromRaw(e),Rr=Xe.DefaultDraftBlockRenderMap.set("unstyled",{element:"div",aliasedElements:["div"]}),ac="superior-direita",vr="dentro-inferior-centro",Xv="inferior-direita",zo="dentro-inferior-esquerda",cp=e=>({position:e===vr||e===zo?"absolute":"default",shouldRender:[ac,vr,zo].includes(e)?"top":"bottom",alignItems:[vr].includes(e)?"center":[ac,Xv].includes(e)?"flex-end":"flex-start",left:e===zo?"16px":e===vr?"45%":"unset"}),Yv=Object.freeze(Object.defineProperty({__proto__:null,CREATE_CONTENT:Er,EXTENDED_BLOCK_RENDER_MAP:Rr,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(Xe.Editor,{editorKey:"draft-editor-1",blockRenderMap:Rr,editorState:t!=null&&t.textStructureReduced?Er(JSON.parse(t.textStructureReduced)):Xe.EditorState.createEmpty(),onChange:()=>null,readOnly:!0})}):r.jsx(r.Fragment,{}),t.showTextStructureExpander&&t.textStructure?r.jsx(r.Fragment,{children:r.jsx(Xe.Editor,{editorKey:"draft-editor-1",blockRenderMap:Rr,editorState:t.textStructure?Er(JSON.parse(t.textStructure)):Xe.EditorState.createEmpty(),onChange:()=>null,readOnly:!0})}):r.jsx(r.Fragment,{})]}),es={"draftjs-text-modifier":"_draftjs-text-modifier_n4mv8_2"},Zv="_textContentWrapper_176ht_5",Jv="_textContentSection_176ht_13",ts={"link-modifier":"_link-modifier_176ht_1",textContentWrapper:Zv,textContentSection:Jv},lp=({data:e,ICONS:t})=>{var s;const[n,o]=v.useState(!1);return r.jsx(m.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(m.Button,{variant:"tertiary",adornment:{end:r.jsx(m.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(m.Utils.Column,{className:ts.textContentWrapper,style:{alignItems:bt(e.textStructureAlignment)},children:[r.jsx(m.TextStructure.DivWrapper,{style:{textAlign:bt(e.textStructureAlignment)},mode:e.textStructureMode??"default",className:es["draftjs-text-modifier"],children:e.textStructureReduced?r.jsx(Qv,{content:e,expanded:n}):r.jsx(r.Fragment,{})}),e.textStructureButtonLabel?r.jsx(rt,{mode:e.textStructureMode??"default",href:e.textStructureButtonHref??"#",size:e.textStructureButtonSize,className:ts["link-modifier"],adornments:(s=e.textStructureButtonIcon)!=null&&s.length&&e.enableIcon?{end:r.jsx(m.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],rs=({dateEnd:e,dateInit:t,TIME_ZONE:n="America/Sao_Paulo",...o})=>{const[s,a]=v.useState(ru(new Zs.TZDate(Date.now(),n),new Zs.TZDate(e,n))),[i,c]=v.useState(!1);v.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(m.Timer.Root,{...o,children:[l?r.jsxs(r.Fragment,{children:[r.jsx(m.Timer.Digit,{label:"dias",value:l}),r.jsx(m.Timer.Separator,{})]}):null,r.jsx(m.Timer.Digit,{label:"horas",value:zt(s,"hours")}),r.jsx(m.Timer.Separator,{}),r.jsx(m.Timer.Digit,{label:"min",value:zt(s,"minutes")}),r.jsx(m.Timer.Separator,{}),r.jsx(m.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:d,contentAlignment:p,showTimer:g,contentOrder:y,timerMode:_,timerEnd:b,timerInit:S,textStructure:x,textStructureReduced:j}=e.banner,P=(l==null?void 0:l.trim())||(c==null?void 0:c.trim())||null,{nextimage:E}=_e();return r.jsxs(m.Banner.Container,{...a,children:[r.jsxs(m.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||x?r.jsx(m.Banner.Slot,{...ex(d??"centro"),className:cc["content-modifier"],style:{textAlign:ic(p)},children:r.jsxs(m.Utils.Column,{gap:"16px",alignItems:ic(p),children:[g&&y==="timer-first"&&r.jsx(rs,{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(rs,{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},d=v.useRef(null),p=v.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")),x=S==null?void 0:S.join("&");return`${e.banner.video.split("?")[0]}?${x}`}return e.banner.video},[e]),g=()=>{var y;(y=d.current)!=null&&y.paused&&d.current.play()};return r.jsx($r,{eventData:{functionKey:"readyEvents",data:{event:"view_promotion",readyData:{ecommerce:{...h,index:l}}}},observerOptions:{delay:100,...p&&{threshold:.1}},...p&&{callBackWhenVisible:g},children:e.banner.href?r.jsx(De,{href:e.banner.href,onClick:()=>{a({updatePromotionRef:!0,promotion:h,index:l})},children:r.jsx(lc,{data:e,videoUrl:p,priority:n,videoRef:d,...s})}):r.jsx(lc,{data:e,videoUrl:p,priority:n,videoRef:d,...s})})},Ks=e=>r.jsx(tr,{...e}),up=({columns:e,count:t,gap:n})=>{var p;const{banners:o,pages:s,products:a}=st(),{isMobile:i}=ce(),{banners:c}=Or(),{ICONS:l,PRODUCT_CARD_IMAGE_ASPECT_RATIO:u}=Me(),f=((p=s[s.length-1])==null?void 0:p.products.length)??t,h=a[(s.length-1)*t+f-1],d=c.filter((g,y)=>o[y]<h);return Array.isArray(d)?d.map((g,y)=>r.jsx(et.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(Dr,{...e}):null};dp.displayName="PDC.InfiniteScroller.Loading";const fp=({page:e,...t})=>{const{updateParamPage:n}=st(),{element:o}=Nr({callback:()=>n(e),options:{threshold:0}});return r.jsx("div",{...t,id:`pdc-scroll-infinite-${e.page}`,className:Ge["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}=ot(),{BUY_BUTTON_LABELS:d,MAIN_IMAGE:p,PLP_GRID_SCROLL_BACK:g,PLP_INFINITE_SCROLL:y,PLP_PRODUCT_SIMILAR_DELAY:_,PLP_SHOW_VIDEO_ON_PRODUCT_CARD:b,PRODUCT_CARD_IMAGE_ASPECT_RATIO:S,PRODUCT_CARD_TEXTS:x,PRODUCT_CARD_TOP_WISHLIST_TOGGLE:j,PRODUCT_IMAGE_DIMENSIONS:P,SECOND_IMAGE:E,StoreConfig_MainSellerId:C,TEXTURE_IMAGE:R,Z_INDEX_WAR:T,ICONS:w}=Me(),N=h(o==null?void 0:o.cluster.highlights);return r.jsx(et.Card,{className:o.id==="skeleton"?Ge["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:d,MAIN_IMAGE:p,PLP_GRID_SCROLL_BACK:g,PLP_INFINITE_SCROLL:y,PLP_PRODUCT_SIMILAR_DELAY:_,PLP_SHOW_VIDEO_ON_PRODUCT_CARD:b,PRODUCT_CARD_IMAGE_ASPECT_RATIO:S,PRODUCT_CARD_TEXTS:x,PRODUCT_CARD_TOP_WISHLIST_TOGGLE:j,PRODUCT_IMAGE_DIMENSIONS:P,SECOND_IMAGE:E,StoreConfig_MainSellerId:C,TEXTURE_IMAGE:R,Z_INDEX_WAR:T,ICONS:w},children:c&&u&&r.jsxs(r.Fragment,{children:[e&&r.jsx(jr.Anchor,{page:c}),!c.loading&&r.jsx(jr.Loader,{page:c}),a&&c.loading&&r.jsx(jr.NextPage,{page:c})]})})};pp.displayName="PDC.Page.Card";const mp=({type:e="default",page:t,...n})=>{const{load:o,updatePage:s}=st(),{element:a}=Nr({callback:()=>s(t),onEnterViewportOnce:!0,options:{threshold:1}});return o===!0&&r.jsx("div",{...n,className:Ge[`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}=Nr({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:Ge["pdc--infinite--next-page--card"],"data-next-page":!0,ref:o}):null};hp.displayName="PDC.Page.NextPage";const jr={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=Ll(n.products,s);return Array.isArray(n.products)?n.products.map((l,u)=>r.jsx(jr.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=v.useRef(!1);v.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=Me(),{PLP_GRID_SCROLL_BACK:c}=Me();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(Ze.Empty,{ICONS:i.ICONS,PLP_NOT_RESULT:i.PLP_NOT_RESULT}),r.jsxs(et.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(Vs,{total:a}),r.jsx(dp,{})]})},yp=()=>{const{banners:e}=Or();return r.jsx(Yl,{banners:e,children:r.jsx(rx,{})})};yp.displayName="PDC.InfiniteScroller";const _p=()=>{const{setOpenFilters:e}=Ps(),{selectedFacets:t,onToggleFacet:n,onSort:o}=Pl(),{state:s}=ze(),{Z_INDEX_WAR:a}=Me(),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 ns=({currentPage:e,callback:t,type:n,...o})=>r.jsx(m.Button,{...o,iconNameStart:`arrow-${n}`,onClick:()=>{typeof t=="function"&&t(n==="left"?"prev":"")},size:"large",variant:"tertiary"});ns.displayName="Arrow";const os=({active:e,prev:t,ellipses:n,page:o,selectedPage:s})=>r.jsxs(r.Fragment,{children:[n&&t&&r.jsx(m.Button,{size:"large",variant:"tertiary",children:"..."}),e&&r.jsx(m.Pagination.Item,{isActive:!1,index:o,variant:"tertiary",onClick:()=>{typeof s=="function"&&s(o)},children:o}),n&&!t&&r.jsx(m.Button,{size:"large",variant:"tertiary",children:"..."})]});os.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(os,{active:n>=a&&o>a,selectedPage:s,currentPage:n,prev:!1,ellipses:n>a&&o>a,page:1}),e,r.jsx(os,{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(m.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 Xs=({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:d}}=Xt(),{endPage:p,totalPages:g,startPage:y}=sx({currentPage:h,total:d,maxVisiblePages:s,SEARCH_PAGE_ITEM_THRESHOLD:i}),_=S=>{const x=S.toString(),j=new URLSearchParams(n.toString());t==="default"&&j.set("page",x),t==="search"&&(j.set("query",e??""),j.set("count",a.toString()),j.set("page",x),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 d?r.jsx("div",{...l,className:Ge["pdc--pagination"],children:r.jsx(m.Pagination.Wrapper,{adornment:{start:r.jsx(ns,{callback:b,currentPage:h,disabled:h<2,type:"left"}),end:r.jsx(ns,{callback:b,currentPage:h,disabled:h>=g,type:"right"})},children:r.jsx(vp,{endPage:p,page:h,selectedPage:_,total:d,ITEMS_PER_SECTION:s,children:r.jsx(xp,{currentPage:h,pages:ox(y,p),searchParams:n,VARIANT_PAGINATION:c})})})}):r.jsx(r.Fragment,{})};Xs.displayName="Pagination";const bp=({gap:e,isMobile:t})=>{const{count:n,state:o}=ze(),{banners:s}=Or(),{ICONS:a,PRODUCT_CARD_IMAGE_ASPECT_RATIO:i}=Me(),c=s.filter(l=>Dl(l.position_grid,o.page,n));return Array.isArray(c)?c.map((l,u)=>r.jsx(et.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 Ys=({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:d,PRODUCT_CARD_TOP_WISHLIST_TOGGLE:p,PRODUCT_IMAGE_DIMENSIONS:g,SECOND_IMAGE:y,StoreConfig_MainSellerId:_,TEXTURE_IMAGE:b,Z_INDEX_WAR:S})=>{const{getAvailableProductTag:x}=ot(),{count:j,state:P}=ze(),[E,C]=v.useState(!1),[R,T]=v.useState(null),[w,N]=v.useState([]),I=v.useCallback((q,F)=>{const G=F?Ir([F]):null;N(q),T(G!=null&&G.length?G[0]:null),C(!0)},[]),z=e?8:16,k=(P.page-1)*j,W=et.helpers.createGridPosAndVideo(t,[],e?2:4,P.page);return r.jsxs(r.Fragment,{children:[r.jsxs(et.Root,{children:[Array.isArray(t)&&t.map((q,F)=>{var V,B;const G=x(q.node.cluster.highlights);return r.jsx(et.Card,{gap:z,isMobile:e??!1,item:q.node,order:k+(((V=W[F])==null?void 0:V.position)??0),tag:G,index:F,setSkuSelected:I,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:d,PRODUCT_CARD_TOP_WISHLIST_TOGGLE:p,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(Tr,{open:E,sku:R,skus:w,setSku:T,setVisible:C,ICONS:o,NEWSLETTER_CONFIGS:a,NOTIFY_INFO:i,PRODUCT_CARD_TEXTS:d,Z_INDEX_WAR:S})]})};Ys.displayName="PDC.Products";const Ze={Empty:Ms,Filters:sp,Grid:ap,InfiniteScroller:yp,Spinner:Dr,Navigation:_p,Notification:Tr,Pagination:Xs,Products:Ys},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:m.helpers.classNameConcat(Ge.pdc,e),children:[r.jsxs(Sl,{forceUpdate:!0,children:[r.jsx(Ze.Navigation,{}),r.jsx(Ze.Filters,{})]}),i===!0?r.jsx(Ze.Grid,{infinite:!0}):r.jsxs(Ss,{forceUpdate:!0,query:n.get("query")??void 0,children:[r.jsx(Ze.Grid,{}),r.jsx(Ze.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=v.createContext({}),ax=({children:e,...t})=>r.jsx(Cp.Provider,{value:t,children:e}),Gr=()=>{const e=v.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}=Gr(),s=()=>{t.push(n.EMPTY.ALL_TERMS)};return r.jsxs("div",{className:ut["rearch-result--empty"],children:[r.jsxs(m.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(m.Button,{onClick:()=>s(),variant:"tertiary",size:"medium",adornment:{end:r.jsx(m.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(m.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}=Gr();return r.jsx(m.TextStructure.DivWrapper,{children:e?dx(o):fx(t,o,n)})};Pp.displayName="Search.Loading";const px=({term:e})=>{const[t,n]=v.useState(!1),{router:o}=_e(),{searchParams:s}=ze(),{ITEMS_DEFAULT_SORT:a,ITEMS_PER_PAGE:i,ICONS:c}=Gr(),l=u=>{U.navigateToSearchPage(o,e,i,1,u??a)};return r.jsx("div",{className:ut.sort,children:r.jsx(Br,{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(m.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=Gr(),{sendDataLayerEvent:c}=le(),l=v.useRef({query:t,sended:!1}),u=v.useMemo(()=>!n&&o.length>0&&s.count>0,[n,o.length,s.count]);return v.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(Ys,{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(Xs,{searchParams:a,...i})]})};wp.displayName="SearchResultContent";const hx=({className:e})=>{const{state:t}=ze(),{isMobile:n}=ce();return r.jsx(Ss,{forceUpdate:!1,query:t.term??"",children:r.jsx("div",{className:m.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(Cs,{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=v.useRef(null),{sendDataLayerEvent:s,currentLocalRef:a,itemListRef:i,promotionEventRef:c}=le();return v.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}}}),Es("login_event","",{expires:f})}},[]),v.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:d,sellers:p})=>h[d]=p[0].commertialOffer.AvailableQuantity),l={page_category:"pdp",seller_ids:f.items.map(({sellers:d})=>d[0].sellerId).join(),skuStocks:h,product_reference_id:f.productReference};break}case"PDC":{const{page_category:f,page_departament:h,id:d,name:p}=Sc(),g=p,y=d;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 ss={exports:{}},xr={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:d,dangerouslySetInnerHTML:p}=f;return p?h.innerHTML=p.__html||"":d&&(h.textContent=typeof d=="string"?d:Array.isArray(d)?d.join(""):""),h}function a(l,u){if(l instanceof HTMLElement&&u instanceof HTMLElement){const 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"]')||[],d=[];if(l==="meta"){const y=f.querySelector("meta[charset]");y&&d.push(y)}for(let y=0;y<h.length;y++){var p;const b=h[y].nextSibling;(b==null||(p=b.tagName)==null?void 0:p.toLowerCase())===l&&d.push(b)}const g=u.map(s).filter(y=>{for(let _=0,b=d.length;_<b;_++){const S=d[_];if(a(S,y))return d.splice(_,1),!1}return!0});d.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 d=Number(h.content),p=[];for(let _=0,b=h.previousElementSibling;_<d;_++,b=(b==null?void 0:b.previousElementSibling)||null){var g;(b==null||(g=b.tagName)==null?void 0:g.toLowerCase())===l&&p.push(b)}const y=u.map(s).filter(_=>{for(let b=0,S=p.length;b<S;b++){const x=p[b];if(a(x,_))return p.splice(b,1),!1}return!0});p.forEach(_=>{var b;return(b=_.parentNode)==null?void 0:b.removeChild(_)}),y.forEach(_=>f.insertBefore(_,h)),h.content=(d-p.length+y.length).toString()};function c(){return{mountedInstances:new Set,updateHead:l=>{const u={};l.forEach(d=>{if(d.type==="link"&&d.props["data-optimized-fonts"]){if(document.querySelector('style[data-href="'+d.props["data-href"]+'"]'))return;d.props.href=d.props["data-href"],d.props["data-href"]=void 0}const p=u[d.type]||[];p.push(d),u[d.type]=p});const f=u.title?u.title[0]:null;let h="";if(f){const{children:d}=f.props;h=typeof d=="string"?d:Array.isArray(d)?d.join(""):""}h!==document.title&&(document.title=h),["meta","base","link","style","script"].forEach(d=>{i(d,u[d]||[])})}}}(typeof t.default=="function"||typeof t.default=="object"&&t.default!==null)&&typeof t.default.__esModule>"u"&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)}(xr,xr.exports)),xr.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._(cs),i=s._(v),c=If(),l=yx(),u=Tu(),f=new Map,h=new Set,d=["onLoad","onReady","dangerouslySetInnerHTML","children","onError","strategy","stylesheets"],p=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:T=null,dangerouslySetInnerHTML:w,children:N="",strategy:I="afterInteractive",onError:z,stylesheets:k}=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=()=>{T&&T(),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||d.includes(V))continue;const J=l.DOMAttributeNames[V]||V.toLowerCase();F.setAttribute(J,B)}I==="worker"&&F.setAttribute("type","text/partytown"),F.setAttribute("data-nscript",I),k&&p(k),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 x(P){const{id:E,src:C="",onLoad:R=()=>{},onReady:T=null,strategy:w="afterInteractive",onError:N,stylesheets:I,...z}=P,{updateScripts:k,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||(T&&J&&h.has(J)&&T(),V.current=!0)},[T,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")&&(k?(W[w]=(W[w]||[]).concat([{id:E,src:C,onLoad:R,onReady:T,onError:N,...z}]),k(W)):q&&q()?h.add(E||C):q&&!q()&&g(P)),F){if(I&&I.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(x,"__nextScript",{value:!0});const j=x;(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)})(ss,ss.exports);var _x=ss.exports,vx=_x;const Rp=kr(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="_container_1krmp_20",Cx="_lgpd_1krmp_71",Sx="_success_1krmp_205",Px="_error_1krmp_225",Ne={"newsletter-root":"_newsletter-root_1krmp_1","has-border-top":"_has-border-top_1krmp_9","has-border-bottom":"_has-border-bottom_1krmp_12",container:jx,"content-text":"_content-text_1krmp_39","form-wrapper":"_form-wrapper_1krmp_44",lgpd:Cx,"textfield-structure-modifier":"_textfield-structure-modifier_1krmp_166","input-wrapper-modifier":"_input-wrapper-modifier_1krmp_172","support-text-modifier":"_support-text-modifier_1krmp_176","submit-btn":"_submit-btn_1krmp_180","loading-spinner":"_loading-spinner_1krmp_191","terms-and-conditions-unchecked":"_terms-and-conditions-unchecked_1krmp_197",success:Sx,"text-structure-modifier":"_text-structure-modifier_1krmp_210",error:Px},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}=Ns();return r.jsx(m.TextField.Structure,{className:`${Ne["textfield-structure-modifier"]} ${u}`,input:r.jsx(m.TextField.Input,{mode:"simple",label:n,sizeVariant:a?s.NEWSLETTER_CONFIGS.interactionSizeMob:s.NEWSLETTER_CONFIGS.interactionSizeDesk,name:t,className:`${Ne["input-wrapper-modifier"]} ${u}`,feedback:i[t]==="required"?"error":i[t],onChange:()=>{i[t]!=="none"&&(c(f=>({...f,[t]:"none"})),l("idle"))},required:o}),supportText:i[t]==="error"||i[t]==="required"?r.jsx("div",{className:u==="horizontal"?Ne["support-text-modifier"]:"",children:r.jsx(m.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=({title:e,description:t,CONSTANTS:n})=>r.jsx("div",{className:Ne.success,children:r.jsx(m.TextStructure.Root,{adornment:{start:r.jsx(m.Icon,{name:n.ICONS.check_circle,size:"small"})},children:r.jsxs(m.TextStructure.DivWrapper,{className:Ne["text-structure-modifier"],children:[r.jsx("h3",{children:e}),r.jsx("p",{children:t})]})})});Np.displayName="Newsletter.Success";const Ip=({formStatus:e,fields:t,CONSTANTS:n})=>r.jsx(r.Fragment,{children:e==="success"?r.jsx(Np,{description:n.NEWSLETTER_CONFIGS.messages.success_description,title:n.NEWSLETTER_CONFIGS.messages.success_title,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:Ne.error,children:r.jsx("p",{children:n.NEWSLETTER_CONFIGS.form.status.error})})]})});Ip.displayName="Newsletter.FormFields";const Tp=({formStatus:e,CONSTANTS:t,...n})=>{const{isMobile:o}=ce();return r.jsxs(m.Button,{...n,className:Ne["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(m.Spinner,{className:Ne["loading-spinner"],size:"small"})]})};Tp.displayName="Newsletter.SubmitButton";const Op=({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(m.Checkbox,{adornment:r.jsx(m.Icon,{name:o.ICONS.check,size:"x-small"}),defaultChecked:e.current,disabled:t==="success",name:"terms-and-conditions",label:o.NEWSLETTER_CONFIGS.messages.accept_terms_and_conditions,onChange:s,sizeVariant:"small"}),t==="unchecked"&&r.jsx("div",{className:Ne["terms-and-conditions-unchecked"],children:r.jsx(m.TextStructure.Root,{adornment:{start:r.jsx(m.Icon,{name:o.ICONS.alert_circle,size:"small"})},children:r.jsx(m.TextStructure.DivWrapper,{children:r.jsx("p",{children:o.NEWSLETTER_CONFIGS.messages.terms_and_conditions_not_accepted})})})})]})};Op.displayName="Newsletter.Terms";const kp=({formPayloadOptionals:e,masterDataEntity:t,CONSTANTS:n})=>{const{checkboxRef:o,fields:s,formStatus:a,hasTermsAndConditions:i,handleClickToSubmit:c,handleSubmit:l,setFormStatus:u}=Ns();return r.jsxs("form",{className:Ne["form-wrapper"],onSubmit:f=>l(f,e,t),children:[r.jsx(Ip,{formStatus:a,fields:s,CONSTANTS:n}),i&&r.jsx(Op,{checkboxRef:o,formStatus:a,setFormStatus:u,CONSTANTS:n}),r.jsx(Tp,{formStatus:a,type:"submit",variant:"primary",onClick:c,CONSTANTS:n})]})};kp.displayName="Newsletter.Form";const wx=["horizontal","vertical"],Qs=({className:e,description:t,formPayloadOptionals:n,fields:o,masterDataEntity:s,masterDataEmailField:a,masterDataNameField:i,lgpd:c,title:l,variant:u,borderTop:f,borderBottom:h,CONSTANTS:d,...p})=>{if(!a||!i)return null;const g=m.helpers.ValidateProp({fieldTypes:wx,property:u,fallback:"horizontal"});return r.jsx(su,{fields:o,masterDataEmailField:a,masterDataNameField:i,variant:g,CONSTANTS:d,children:r.jsxs("div",{...p,className:m.helpers.classNameConcat(Ne["newsletter-root"],[f&&Ne["has-border-top"],h&&Ne["has-border-bottom"],e].filter(Boolean)),"data-variant":g,children:[r.jsxs("div",{className:Ne.container,children:[r.jsxs("div",{className:Ne["content-text"],children:[l&&r.jsx("h2",{children:l}),t&&r.jsx("p",{children:t})]}),r.jsx(kp,{formPayloadOptionals:n,masterDataEntity:s,CONSTANTS:d})]}),r.jsx("div",{className:Ne.lgpd,children:r.jsx("p",{children:d.NEWSLETTER_CONFIGS.messages.lgpd})})]})})};Qs.displayName="Newsletter";const Lp=({children:e,...t})=>r.jsx("div",{...t,children:e});Lp.displayName="CallToAction";const Ex="_wrapper_aejhu_1",Rx="_body_aejhu_8",Ar={wrapper:Ex,body:Rx,"wrapper-body":"_wrapper-body_aejhu_16","accordion-modifier":"_accordion-modifier_aejhu_32"},Ax=({children:e,className:t,...n})=>r.jsx("div",{...n,className:m.helpers.classNameConcat(Ar.wrapper,t),children:e}),Nx=({data:e,ICONS:t})=>{const[n,o]=v.useState(null),s=i=>{o(c=>c===i?null:i)},{router:a}=_e();return r.jsx("div",{className:m.helpers.classNameConcat(Ar.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 d;if((d=i.buttonHref)!=null&&d.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(m.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(m.Utils.Divider,{direction:"horizontal",size:"small",style:{height:16}})]}):r.jsxs(m.Accordion.Wrapper,{className:m.helpers.classNameConcat(Ar["accordion-modifier"]),children:[r.jsx(m.Accordion.Header,{id:`${c}-${i.title}`,closeIndicator:l?r.jsx(m.Icon,{name:t.arrow_up,size:"medium"}):void 0,openIndicator:l?void 0:r.jsx(m.Icon,{name:t.arrow_down,size:"medium"}),title:"accordion-header",onClick:()=>s(i.id),children:r.jsx(m.TextStructure.Root,{children:r.jsx(m.TextStructure.DivWrapper,{children:r.jsx("h2",{className:"typography-style-body-sm",children:i.title})})})}),r.jsx(m.Accordion.Body,{title:"accordion-body",children:r.jsx(m.TextStructure.Root,{children:l&&r.jsxs(m.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(rt,{href:i.buttonHref??"#",mode:i.buttonMode??"default",size:i.buttonSize??"medium",adornments:(h=i.buttonIcon)!=null&&h.length?{end:r.jsx(m.Icon,{name:t[i.buttonIcon]??i.buttonIcon})}:void 0,children:i.buttonLabel}):r.jsx(r.Fragment,{})]})})})]})},i.id)}))})},Ix=({className:e,data:t,ICONS:n,...o})=>{const[s,a]=v.useState(!1),[i,c]=v.useState(null);v.useEffect(()=>{!s&&!i&&t&&c(t)},[s,i]);const l=v.useCallback(()=>{a(u=>!u)},[]);return i?r.jsxs(Ax,{...o,className:e,children:[r.jsx("div",{className:Ar["wrapper-body"],hidden:!s,children:s&&r.jsx(Nx,{data:i.content,ICONS:n})}),r.jsx(Lp,{children:r.jsx("div",{onClick:l,children:s?r.jsx(m.Button,{iconNameEnd:n.close,size:(i==null?void 0:i.helpButtonSize)??"x-large"}):r.jsx(m.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,{})},Tx="_formContainer_zwlly_1",Ox="_formFieldGroup_zwlly_6",kx="_formFieldGroupName_zwlly_10",Lx="_formFieldWrapper_zwlly_20",Mx="_formFieldInput_zwlly_30",Dx="_success_zwlly_73",$x="_button_zwlly_110",zx="_error_zwlly_114",tt={formContainer:Tx,formFieldGroup:Ox,formFieldGroupName:kx,formFieldWrapper:Lx,formFieldInput:Mx,success:Dx,"text-structure-modifier":"_text-structure-modifier_zwlly_85",button:$x,error:zx},Fx=({group:e,children:t,className:n})=>r.jsx(r.Fragment,{children:r.jsxs("div",{className:m.helpers.classNameConcat(tt.formFieldGroup,n),children:[r.jsx("h1",{className:tt.formFieldGroupName,children:e.groupLabel}),t]},e.groupLabel)});async function Bx(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 qx=async e=>await fetch("/api/dito-ingest",{method:"POST",body:JSON.stringify(e)}).then(n=>n.json()),Mp=v.createContext({});function Dp({children:e,groups:t,masterDataEntity:n,postFn:o,actionName:s="",originName:a="",POPUP_SUBMITTED_STORAGE:i}){const[c,l]=v.useState(!1),[u,f]=v.useState({}),[h,d]=v.useState([]),[p,g]=v.useState("idle"),[y,_]=v.useState(""),b=({target:{name:x,value:j}})=>{f({...u,[x]:j})},S=x=>{x.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"),d([P])}if(u.email){const E=await Bx(u.email||""),C=new Date().toISOString();qx([{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"),d([])})};return r.jsx(Mp.Provider,{value:{formErrors:h,handleInputChange:b,submitForm:S,formData:u,status:p,fieldMessage:y,success:c,setSuccess:l},children:e})}function Vr(){return v.useContext(Mp)}const Hx=({fields:e,className:t})=>{const{formData:n,handleInputChange:o,formErrors:s}=Vr();return r.jsx("div",{className:m.helpers.classNameConcat(tt.formFieldWrapper,t),children:e.map(({label:a,name:i,required:c,width:l="medium"})=>r.jsx(m.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:tt.formFieldInput,"data-inputsize":l},i))})},Ux=({FORM_CONFIGS:e,ICONS:t})=>{const{router:n}=_e();return r.jsxs("div",{className:tt.success,children:[r.jsx(m.TextStructure.Root,{adornment:{start:r.jsx(m.Icon,{name:t.check_circle,size:"medium"})},children:r.jsx(m.TextStructure.DivWrapper,{className:tt["text-structure-modifier"],children:r.jsx("p",{children:e.successMessage})})}),r.jsx(m.Button,{size:"large",onClick:()=>n.push("/"),className:tt.button,children:e.returnButton})]})},Wx=({FORM_CONFIGS:e,ICONS:t})=>{const{fieldMessage:n}=Vr();return r.jsx("div",{className:tt.error,children:r.jsx(m.TextStructure.Root,{adornment:{start:r.jsx(m.Icon,{name:t.delete_circle,size:"small"})},children:r.jsx(m.TextStructure.DivWrapper,{className:tt["text-structure-modifier"],children:r.jsxs("p",{children:[e.errorMessage,n]})})})})},Gx=({children:e,className:t,ICONS:n,FORM_CONFIGS:o})=>{const{submitForm:s,status:a}=Vr();return r.jsx("form",{onSubmit:s,className:m.helpers.classNameConcat(tt.formContainer,t),children:a==="success"?r.jsx(Ux,{ICONS:n,FORM_CONFIGS:o}):r.jsxs(r.Fragment,{children:[e,a==="error"&&r.jsx(Wx,{ICONS:n,FORM_CONFIGS:o})]})})},Vx=e=>{const{children:t,className:n}=e;return r.jsx(Dp,{...e,children:r.jsx(Gx,{ICONS:e.ICONS,FORM_CONFIGS:e.FORM_CONFIGS,className:n,children:t})})},Et={Root:Vx,FieldGroup:Fx,FieldWrapper:Hx},Kx="_button_1e35m_39",ft={"banner-container":"_banner-container_1e35m_1","banner-background":"_banner-background_1e35m_6","form-root":"_form-root_1e35m_15",button:Kx,"form-fied-wrapper":"_form-fied-wrapper_1e35m_52"};function Xx({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(m.Banner.Container,{className:ft["banner-container"],children:[r.jsx(m.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(m.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(m.Button,{size:"large",type:"submit",className:ft.button,children:e.buttonLabel})})})]})]})]})})}const Cr={teamComponents:{AddToCart:Ts,BackToTop:Oh,HelpButton:Ix,BuyPackage:ed,Filter:{...nt,helpers:hf},...rv,FreightCalculation:nf,Header:rf,Link:rt,Media:Ie,PLPNavigation:dt,ProductCard:xe,ProductList:et,ProductVariationList:Ye,Sort:Br,UserMenu:zr,Newsletter:Qs,Form:Et},template:{minicart:Le,pdc:jp,pdc_composites:Ze,pdp:qv,searchResult:Ep,wishList:Fu,LPCadastro:Xx},utils:{EventCollector:gx,ExternalScripts:bx,LinkOrNotLink:Yt,ObserverWrapper:$r,SnackBarComponent:wt,DraftJsLinkWrapper:ip}},Yx=(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'
|
|
@@ -76,7 +76,7 @@ See more info here: https://nextjs.org/docs/messages/no-stylesheets-in-head-comp
|
|
|
76
76
|
|
|
77
77
|
export const config = {
|
|
78
78
|
matcher: [
|
|
79
|
-
${
|
|
79
|
+
${n}
|
|
80
80
|
]
|
|
81
81
|
}
|
|
82
|
-
`},vx=Object.freeze(Object.defineProperty({__proto__:null,generateMiddleware:_x},Symbol.toStringTag,{value:"Module"})),xx={helpers:vx},es={"custom-carousel":"_custom-carousel_t5fgp_1","carrousel-arrows-display-controller":"_carrousel-arrows-display-controller_t5fgp_10","carousel-controllers-modifier":"_carousel-controllers-modifier_t5fgp_19"};function bx(e,t){const{mediatorRef:r}=le();x.useEffect(()=>r.current.subscribe(e,t),[e,t])}const oc=({prevOnClick:e,nextOnClick:t,onBulletClick:r,currentPage:o,totalPages:s,position:i,hideControllers:a,left:c,isFirst:l,ICONS:u})=>{const[f,h]=x.useState("default");return bx("herobanner:change_controllers_variant",d=>{l&&h(d.includes("white")?"inverse":"default")}),n.jsxs(m.Carousel.Controller,{className:es["carousel-controllers-modifier"],position:i??"absolute","data-hide-controllers":a,bottom:"16px",top:"unset",left:c,children:[n.jsxs(m.Carousel.Arrows,{className:es["carrousel-arrows-display-controller"],children:[n.jsx(m.Button,{variant:"tertiary",onClick:e,adornment:{start:n.jsx(m.Icon,{name:u.arrow_left})},mode:f}),n.jsx(m.Button,{variant:"tertiary",onClick:t,adornment:{start:n.jsx(m.Icon,{name:u.arrow_right})},mode:f})]}),n.jsx(m.Carousel.Bullets,{page:o,total:s,onBulletClick:r,mode:f})]})},jx=({children:e,data:t,banner:r,...o})=>{const{mediatorRef:s}=le();return t.data.first?n.jsx(kr,{observerOptions:{threshold:.51},stopOnIntersection:!1,callBackWhenVisible:()=>{s.current.publish("header:change_variant",r.headerVariant)},...o,children:e}):n.jsx(n.Fragment,{children:e})},Ap=e=>{const{initialize:t,pagination:r,controller:o,itemsStyles:s}=m.Carousel.useCarousel({gap:e.data.config.gap,itemsPerPage:e.data.config.slidesPerView,direction:"row"}),i=x.useRef(void 0),a=x.useMemo(()=>tp(e.data.config.controllerPosition??"dentro-inferior-centro"),[e]),c=x.useCallback(()=>{e.data.config.slideDuration&&r.totalPages>1&&(i.current=setInterval(()=>{o==null||o.nextPage()},e.data.config.slideDuration*1e3))},[o,e.data.config.slideDuration,r.totalPages]),l=x.useCallback(f=>{clearInterval(i.current),c(),f()},[c]),u=x.useMemo(()=>{var f;return{nextOnClick:()=>l(()=>o==null?void 0:o.nextPage()),prevOnClick:()=>l(()=>o==null?void 0:o.prevPage()),onBulletClick:h=>l(()=>o==null?void 0:o.navigateTo(h)),currentPage:r.currentPage,totalPages:r.totalPages,position:a.position,hideControllers:((f=e.data.config)==null?void 0:f.hideControllers)??!1,left:a.left}},[r.currentPage,r.totalPages,a.position,e.data.config.hideControllers,l,o]);return x.useEffect(()=>(c(),()=>clearInterval(i.current)),[c]),n.jsxs(m.Carousel.Root,{innerRef:f=>{t(f)},className:m.helpers.classNameConcat(es["custom-carousel"],e.data.config.fullWidth?"":"common-section"),"data-infinity-border":!0,style:{...e.data.config.marginTop!=="0px"&&{marginTop:`-${e.data.config.marginTop}`},...e.data.config.marginBottom!=="0px"&&{marginBottom:`-${e.data.config.marginBottom}`}},children:[a.shouldRender==="top"&&r.totalPages>1?n.jsx(oc,{ICONS:e.ICONS,...u,isFirst:e.data.first}):n.jsx(n.Fragment,{}),n.jsx(m.Carousel.Body,{children:e==null?void 0:e.data.banners.map((f,h)=>n.jsx(m.Carousel.Item,{style:s,children:n.jsx(jx,{data:e,banner:f,children:n.jsx(Qt,{ICONS:e.ICONS,suppressContentEditableWarning:!0,suppressHydrationWarning:!0,data:{banner:f,index:h,componentIndex:e.data.componentIndex},creative:"banner-carousel",...e.data.first&&h===0&&{priority:!0}})})},`hero-banner-item-${h}`))}),a.shouldRender==="bottom"&&r.totalPages>1?n.jsx(oc,{ICONS:e.ICONS,...u}):n.jsx(n.Fragment,{})]})},Cx={Banner:qs},Ot={"row-controller-modifier":"_row-controller-modifier_co4wb_1","carousel-title-modifier":"_carousel-title-modifier_co4wb_18","carousel-modifier":"_carousel-modifier_co4wb_22","card-modifier":"_card-modifier_co4wb_26"},Ip=({data:e,CONSTANTS:t})=>{var u;const{isMobile:r}=le(),o=e.config.size??"medium",s=e.config.disableCarouselMobile??!1,{initialize:i,pagination:a,controller:c,itemsStyles:l}=m.Carousel.useCarousel({itemsPerPage:r?e==null?void 0:e.config.slidesPerViewMobile:(u=e==null?void 0:e.config)==null?void 0:u.slidesPerView,gap:r?e.config.gapMobile:e.config.gap,direction:r&&s?"column":"row"});return n.jsx(m.Utils.Column,{style:{width:o==="small"?"70%":"100%"},alignContent:"center",justifyContent:"center",alignItems:"center",children:n.jsxs(m.Carousel.Root,{innerRef:f=>{i(f)},className:m.helpers.classNameConcat(Ot["carousel-modifier"],"common-section"),children:[o==="medium"?n.jsxs(m.TextStructure.Root,{children:[n.jsx(m.TextStructure.DivWrapper,{className:Ot["carousel-title-modifier"],children:n.jsx("h2",{className:"typography-style-body-lg",children:t.BENNEFITS_BAR_TITLE})}),r&&a.totalPages>1?n.jsx(m.Carousel.Controller,{className:Ot["row-controller-modifier"],children:n.jsxs(m.Carousel.Arrows,{children:[n.jsx(m.Button,{variant:"tertiary",onClick:()=>c==null?void 0:c.prevPage(),adornment:{start:n.jsx(m.Icon,{name:t.ICONS.arrow_left})}}),n.jsx(m.Button,{variant:"tertiary",onClick:()=>c==null?void 0:c.nextPage(),adornment:{start:n.jsx(m.Icon,{name:t.ICONS.arrow_right})}})]})}):n.jsx(n.Fragment,{})]}):n.jsx(n.Fragment,{}),n.jsx(m.Carousel.Body,{children:e.bennefit.map((f,h)=>n.jsx(m.Carousel.Item,{className:Ot["card-modifier"],style:l,children:n.jsx(m.Card,{stroke:!0,padding:"small",children:n.jsx(m.TextStructure.Root,{layoutProps:{columnWrapper:{alignContent:"start",alignItems:"start",justifyContent:"start"},textRow:{alignContent:"center",alignItems:"center",justifyContent:"center"}},adornment:{[o==="medium"?"top":"start"]:n.jsx(m.Icon,{name:f.icon,size:o==="medium"?"medium":"small"})},children:n.jsxs(m.TextStructure.DivWrapper,{alignItems:"start",children:[n.jsx("h3",{className:"typography-style-body-md",children:f.title}),f.subtitle&&f.subtitle.length?n.jsx("p",{className:"typography-style-body-xs",children:f.subtitle}):n.jsx(n.Fragment,{})]})})})},`bennefit=${h}`))}),!r&&a.totalPages>1?n.jsxs(m.Carousel.Controller,{className:Ot["row-controller-modifier"],children:[n.jsxs(m.Carousel.Arrows,{children:[n.jsx(m.Button,{variant:"tertiary",onClick:()=>c==null?void 0:c.prevPage(),adornment:{start:n.jsx(m.Icon,{name:t.ICONS.arrow_left})}}),n.jsx(m.Button,{variant:"tertiary",onClick:()=>c==null?void 0:c.nextPage(),adornment:{start:n.jsx(m.Icon,{name:t.ICONS.arrow_right})}})]}),n.jsx(m.Carousel.Bullets,{page:a.currentPage,total:a.totalPages,onBulletClick:f=>c==null?void 0:c.navigateTo(f)})]}):n.jsx(n.Fragment,{})]})})},Np=({data:e,ICONS:t})=>n.jsx("div",{className:m.helpers.classNameConcat(Xo.textContentSection),style:e.borderTop?{borderTop:"none"}:void 0,children:n.jsx(rp,{data:e,ICONS:t})}),sc={"accordion-modifier":"_accordion-modifier_1we16_1","accordion-body-modifier":"_accordion-body-modifier_1we16_7"},Tp=({data:e,id:t,ICONS:r})=>{var i;const[o,s]=x.useState([]);return n.jsxs(m.Utils.Column,{gap:"var(--gap-vertical-sm)",children:[e.titleAccordion?n.jsx(m.TextStructure.Root,{children:n.jsx(m.TextStructure.DivWrapper,{children:n.jsx("h2",{className:m.helpers.classNameConcat("typography-style-heading-sm","common-section"),style:{fontWeight:500},children:e.titleAccordion})})}):n.jsx(n.Fragment,{}),(i=e.accordions)==null?void 0:i.map((a,c)=>n.jsxs(m.Accordion.Wrapper,{className:sc["accordion-modifier"],children:[n.jsx(m.Accordion.Header,{id:`${t}-text-accordion-${c}`,openIndicator:n.jsx(m.Icon,{name:r.arrow_down}),closeIndicator:n.jsx(m.Icon,{name:r.arrow_up}),startOpen:o.includes(c),onClick:()=>s(l=>l.includes(c)?l.filter(u=>u!==c):[...l,c]),children:n.jsx(m.TextStructure.Root,{children:n.jsxs(m.TextStructure.DivWrapper,{className:Ko["draftjs-text-modifier"],children:[n.jsx("h3",{className:"typography-style-body-md-strong",children:a.title}),a.subtitle&&a.subtitle.length?n.jsx("h2",{children:a.subtitle}):n.jsx(n.Fragment,{})]})})}),n.jsx(m.Accordion.Body,{children:n.jsx(m.TextStructure.Root,{children:n.jsx(m.TextStructure.DivWrapper,{className:m.helpers.classNameConcat(sc["accordion-body-modifier"],Ko["draftjs-text-modifier"]),children:n.jsx(Ke.Editor,{editorKey:`${t}-editor-${c}`,blockRenderMap:Sr,editorState:a.text?Cr(JSON.parse(a.text)):Ke.EditorState.createEmpty(),onChange:()=>null})})})})]},`${t}-accordion-${c}-${o.includes(c)}`))]})},Op=x.createContext({}),Sx=({data:e,children:t,...r})=>{var g,y,_,b,S,v,j,P,E,C,R,T,w;const[o,s]=x.useState(!0),{initialize:i,controller:a,itemsStyles:c}=m.Carousel.useCarousel({gap:0,itemsPerPage:1}),l={slideTranstionTimer:(y=(g=e==null?void 0:e.staticConfig)==null?void 0:g.staticConfig)==null?void 0:y.slideTranstionTimer,showCarouselArrows:(b=(_=e==null?void 0:e.staticConfig)==null?void 0:_.staticConfig)==null?void 0:b.showCarouselArrows,hasCloseBtn:(v=(S=e==null?void 0:e.staticConfig)==null?void 0:S.staticConfig)==null?void 0:v.hasCloseBtn,backgroundColor:(P=(j=e==null?void 0:e.staticConfig)==null?void 0:j.staticConfig)==null?void 0:P.backgroundColor,textColorVariant:(C=(E=e==null?void 0:e.staticConfig)==null?void 0:E.staticConfig)==null?void 0:C.textColorVariant,content:((T=(R=e==null?void 0:e.content)==null?void 0:R.content)==null?void 0:T.items)??[]},u=(w=l.content)==null?void 0:w.filter(I=>!I.countDownEndDate||new Date(I.countDownEndDate)>new Date),f=u.length>1,h={...l.backgroundColor?{backgroundColor:l.backgroundColor}:{}},d=()=>{s(!1)},p=m.helpers.ValidateProp({fieldTypes:jt.Mode,property:l.textColorVariant,fallback:"default"});return n.jsx(Op.Provider,{value:{isOpen:o,setIsOpen:s,hasCarousel:f,backgroundStyle:h,handleCloseTipbar:d,mode:p,slideTranstionTimer:l.slideTranstionTimer,showCarouselArrows:l.showCarouselArrows,hasCloseBtn:l.hasCloseBtn,slices:u,carouselProps:{initialize:i,controller:a,itemsStyles:c},...r},children:t})},ot=()=>x.useContext(Op),Px=({dateEnd:e,...t})=>{const{CONSTANTS:{TIME_ZONE:r}}=ot();return n.jsx(Yo,{dateEnd:new Date(e),TIME_ZONE:r,...t})},wx="_tipbar_bt3p0_1",Ex="_tipbar__carousel_bt3p0_15",Zt={tipbar:wx,tipbar__carousel:Ex,"tipbar__close-btn":"_tipbar__close-btn_bt3p0_29","tipbar-item":"_tipbar-item_bt3p0_37","tipbar-item__coupon":"_tipbar-item__coupon_bt3p0_45"},Rx=({coupon:e,feedbackTitle:t,feedbackDescription:r,...o})=>{const{CONSTANTS:s}=ot(),{addCouponSeller:i,cartStore:a}=Ee(),[c,l]=x.useState({status:!1,showSnackBar:!1}),[u,f]=x.useState(!1),[h,d]=x.useState(!1),p=async()=>{if(!a.items.length){d(!0);return}(await i(e,"coupon")).code===200?l({status:!0,showSnackBar:!0}):f(!0)};return x.useEffect(()=>{c.showSnackBar&&setTimeout(()=>{l(g=>({...g,showSnackBar:!1}))},s.TIPBAR_CONFIGS.snackbar_timeout)},[c.showSnackBar]),x.useEffect(()=>{u&&setTimeout(()=>{f(!1)},s.TIPBAR_CONFIGS.snackbar_timeout)},[u]),x.useEffect(()=>{h&&setTimeout(()=>{d(!1)},s.TIPBAR_CONFIGS.snackbar_timeout)},[h]),n.jsxs(n.Fragment,{children:[n.jsx(m.Button,{...o,onClick:p,disabled:c.status,className:Zt["tipbar-item__coupon"],children:c.status?`${s.TIPBAR_CONFIGS.coupon_applied_message}`:`${s.TIPBAR_CONFIGS.coupon_default_message}`}),c.showSnackBar&&(t||r)&&n.jsx(Ct,{title:t,subtitle:r,Z_INDEX_WAR:s.Z_INDEX_WAR},`feedback-coupon-${e}`),u&&n.jsx(Ct,{title:s.TIPBAR_CONFIGS.coupon_error_title,subtitle:s.TIPBAR_CONFIGS.coupon_error_message,Z_INDEX_WAR:s.Z_INDEX_WAR},`error-coupon-${e}`),h&&n.jsx(Ct,{title:s.TIPBAR_CONFIGS.coupon_cart_empty_title,subtitle:s.TIPBAR_CONFIGS.coupon_cart_empty_message,Z_INDEX_WAR:s.Z_INDEX_WAR},`error-cart-empty-${e}`)]})},Ax=({title:e,description:t,style:r,mode:o,className:s})=>n.jsx(m.TextStructure.Root,{children:n.jsxs(m.TextStructure.DivWrapper,{mode:o,className:s,children:[e&&n.jsx("h3",{className:"typography-style-body-sm",style:r,children:e}),t&&n.jsx("p",{className:"typography-style-caption",style:r,children:t})]})}),Ix=({coupon:e,...t})=>{const{CONSTANTS:r}=ot();return n.jsx(m.Copy,{...t,iconCopy:r.ICONS.copy,iconSuccess:r.ICONS.check,children:e})},Nx=({staticZone:e,type:t,className:r,description:o,title:s})=>{const{mode:i}=ot();if(t==="countdown")return n.jsx(Px,{dateEnd:e.countDownEndDate,size:"x-small",mode:i});if(t==="coupon"){const a=m.helpers.ValidateProp({fieldTypes:jt.Mode,property:e.couponButtonMode,fallback:"default"}),c=m.helpers.ValidateProp({fieldTypes:jt.VariantsExtended,property:e.couponButtonVariant,fallback:"primary"});return e.coupon?n.jsx(Rx,{coupon:e.coupon,mode:a,variant:c,feedbackTitle:e.couponFeedbackTitle,feedbackDescription:e.couponFeedbackDescription}):null}if(t==="copy"){const a=m.helpers.ValidateProp({fieldTypes:jt.Mode,property:e.couponButtonMode,fallback:"default"});return e.coupon?n.jsx(Ix,{coupon:e.coupon,mode:a}):null}return n.jsx(Ax,{title:s,description:o,mode:i,className:r})},ic=({handleCloseTipbar:e,mode:t})=>{const{CONSTANTS:r}=ot();return n.jsx(m.Button,{title:"fechar tipbar",className:Zt["tipbar__close-btn"],onClick:e,variant:"tertiary",mode:t,adornment:{start:n.jsx(m.Icon,{name:r.ICONS.close})}})},Tx=({children:e,mode:t="default",showCarouselArrows:r=!0,slideTranstionTimer:o})=>{const{carouselProps:s,CONSTANTS:i}=ot(),a=x.useRef(null),c=(u,f)=>{var h,d;u.stopPropagation(),u.preventDefault(),f==="prev"?(h=s.controller)==null||h.prevPage():(d=s.controller)==null||d.nextPage(),a.current&&(clearInterval(a.current),l())},l=x.useCallback(()=>{if(o&&s.controller){const u=setInterval(()=>{var f;(f=s.controller)==null||f.nextPage()},o);a.current=u}},[o,s]);return x.useEffect(()=>(l(),()=>{a.current&&clearInterval(a.current)}),[o,l]),n.jsxs(m.Carousel.Root,{innerRef:u=>{s.initialize(u)},className:Zt.tipbar__carousel,style:{flexDirection:"row",alignItems:"center"},children:[r&&n.jsx(m.Button,{variant:"tertiary",mode:t,onClick:u=>c(u,"prev"),adornment:{start:n.jsx(m.Icon,{name:i.ICONS.arrow_left})}}),n.jsx(m.Carousel.Body,{children:e}),r&&n.jsx(m.Button,{variant:"tertiary",mode:t,onClick:u=>c(u,"next"),adornment:{start:n.jsx(m.Icon,{name:i.ICONS.arrow_right})}})]})},Ox=({children:e,className:t})=>{const{hasCarousel:r,mode:o,hasCloseBtn:s,backgroundStyle:i,showCarouselArrows:a,slideTranstionTimer:c,handleCloseTipbar:l}=ot(),u=r&&a;return n.jsx("div",{style:i,"data-hasclosebtn":s,className:m.helpers.classNameConcat(Zt.tipbar,t),children:r?n.jsxs(n.Fragment,{children:[n.jsx(Tx,{mode:o,showCarouselArrows:u,slideTranstionTimer:c,children:e}),s&&n.jsx(ic,{handleCloseTipbar:l,showCarouselArrows:u,mode:o})]}):n.jsxs(n.Fragment,{children:[e,s&&n.jsx(ic,{handleCloseTipbar:l,mode:o})]})})},kx=({children:e,highlightFirstSection:t,...r})=>{const{hasCarousel:o,carouselProps:s}=ot(),i=n.jsx("div",{...r,className:Zt["tipbar-item"],children:e});return o?n.jsx(m.Carousel.Item,{style:s.itemsStyles,children:i}):i},kp=({className:e})=>{const{isOpen:t,slices:r}=ot();return r.length&&t?n.jsx(Ox,{children:r.map((o,s)=>{var i;return n.jsx(n.Fragment,{children:n.jsx(Vt,{href:o.link,children:n.jsx(kx,{highlightFirstSection:o.highlightFirstSection,"data-justifyhighlightedsection":o.horizontalAlignHighlightedSection?o.horizontalAlignHighlightedSection:"center",children:o&&((i=o==null?void 0:o.items)!=null&&i.length)?o.items.map((a,c)=>n.jsx(Nx,{staticZone:o,type:a.type,title:a.title,description:a.description,className:e},`tipbar-slice-field-${c}`)):null})})},`tipbar-slice-${s}`)})}):null};kp.displayName="TipBar.Root";const ts=({className:e,...t})=>n.jsx(Sx,{...t,children:n.jsx(kp,{className:e})});ts.displayName="TipBar";const Lx=({CONSTANTS:e,data:t})=>{const{pathname:r}=xe(),{tipbarRef:o}=Pe(),s=c=>{const l=t==null?void 0:t.find(u=>{var f,h,d,p,g;return((h=(f=u.staticConfig)==null?void 0:f.staticConfig)==null?void 0:h.deviceType)===c&&((g=(p=(d=u.staticConfig)==null?void 0:d.staticConfig)==null?void 0:p.paths)==null?void 0:g.includes(r))});return l||(t==null?void 0:t.find(u=>{var f,h,d,p,g,y;return((h=(f=u.staticConfig)==null?void 0:f.staticConfig)==null?void 0:h.deviceType)===c&&(!((p=(d=u.staticConfig)==null?void 0:d.staticConfig)!=null&&p.paths)||((y=(g=u.staticConfig)==null?void 0:g.staticConfig)==null?void 0:y.paths.length)===0)}))},i=s("desktop"),a=s("mobile");return n.jsxs("div",{ref:o,className:U.responsive["responsive-flex"],children:[a&&n.jsx("div",{className:U.responsive["responsive-mobile-flex"],children:n.jsx(ts,{data:a,CONSTANTS:e})}),i&&n.jsx("div",{className:U.responsive["responsive-desktop-flex"],children:n.jsx(ts,{data:i,CONSTANTS:e})})]})},ac={"card-image-wrapper":"_card-image-wrapper_10mul_1","card-image-container":"_card-image-container_10mul_9"},Lp=e=>{const{nextimage:t}=xe();return n.jsx(n.Fragment,{children:e.data.banners.map((r,o)=>n.jsx("div",{className:ac["card-image-wrapper"],children:n.jsx("div",{className:ac["card-image-container"],children:n.jsx(t,{src:r.image,alt:r.altImage?r.altImage:"Banner Coleção",width:500,height:600})})},o))})},Mx=({SectionZone:e,CMS_PROJECT_NAME:t,storeId:r,previewId:o})=>{const[s,i]=x.useState();return x.useEffect(()=>{s||U.getContentType({contentType:"search",CMS_PROJECT_NAME:t,storeId:r,previewId:o}).then(a=>{i(a.data[0])})},[]),n.jsx(e,{data:s??[]})},Mp=({data:{componentIndex:e,...t},CONSTANTS:r})=>n.jsx(Ws,{...t,CONSTANTS:r}),Dp=async e=>{const{type:t}=e,r=t==="collectionSearch"?"/api/search/product":"/api/search/crosseling",o=JSON.stringify(t==="collectionSearch"?{...e.params,facets:e.facets,term:e.term,forceUpdate:!1}:e.facets);return(await fetch(r,{method:"POST",headers:{"Content-Type":"application/json"},body:o}).then(i=>i.json()).then(i=>t==="collectionSearch"?i.data.products:i.products)).filter(i=>!!i.node.availability.status)},Dx="_shelf__container_bi04n_10",$p={shelf__container:Dx},$x=({collectionSearch:e,title:t,CONSTANTS:r})=>{const[o,s]=x.useState([]),{isMobile:i}=le(),{ref:a,inView:c}=lc.useInView({threshold:.7,delay:100,triggerOnce:!0}),{sendDataLayerEvent:l}=ce();return x.useEffect(()=>{if(!e)return;function u(){var f,h;Dp({type:"collectionSearch",term:e==null?void 0:e.term,facets:e==null?void 0:e.facets,params:{count:((f=e==null?void 0:e.params)==null?void 0:f.count)??12,sort:((h=e==null?void 0:e.params)==null?void 0:h.sort)??r.ITEMS_DEFAULT_SORT}}).then(d=>{s(d)})}u()},[e]),x.useEffect(()=>{!c||o.length===0||l({functionKey:"productListEvent",data:{event:"view_item_list",commonData:{products:o},customData:{item_list_name:t??"Você também pode gostar"}}})},[c,o]),o.length===0?null:n.jsx("div",{ref:a,className:$p.shelf__container,children:n.jsx(Bt.Shelf,{title:t??"Você também pode gostar",itemsPerPage:{desktop:4.4,mobile:2.2},ICONS:r.ICONS,children:Array.isArray(o)&&o.map(({node:u},f)=>{const{availability:{status:h}}=u;return h?n.jsx(Bt.Card,{item:u,isMobile:i,size:"medium",index:f,shelfTitle:t??"Você também pode gostar",CONSTANTS:r},u.id):null})})})},zx=({recommendationSearch:e,title:t,CONSTANTS:r})=>{const[o,s]=x.useState([]),{isMobile:i}=le(),{ref:a,inView:c}=lc.useInView({threshold:.7,delay:100,triggerOnce:!0}),{sendDataLayerEvent:l}=ce(),u=x.useMemo(()=>e?[{key:e.type,value:e.productId}]:[],[e]);return x.useEffect(()=>{if(!e)return;function f(){var h;Dp({type:"recommendationSearch",facets:u,params:{count:((h=e==null?void 0:e.params)==null?void 0:h.count)??12,sort:r.ITEMS_DEFAULT_SORT}}).then(d=>s(d))}f()},[u,e]),x.useEffect(()=>{if(!c||o.length===0||(e==null?void 0:e.type)==="suggestions")return;const f=t??"Você também pode gostar";l({functionKey:"productListEvent",data:{event:"view_item_list",commonData:{products:o},customData:{item_list_name:f},outsideEcommerceData:{item_list_name:f}}})},[c,o]),(o==null?void 0:o.length)===0?null:(e==null?void 0:e.type)==="suggestions"?n.jsx(Gu,{products:o,innerRef:a,inView:c,CONSTANTS:r}):n.jsx("div",{ref:a,className:$p.shelf__container,children:n.jsx(Bt.Shelf,{title:t??"Você também pode gostar",itemsPerPage:{desktop:4.4,mobile:2.2},ICONS:r.ICONS,children:Array.isArray(o)&&o.map(({node:f},h)=>{const{availability:{status:d}}=f;return d?n.jsx(Bt.Card,{item:f,isMobile:i,size:"medium",index:h,shelfTitle:t??"Você também pode gostar",CONSTANTS:r},f.id):null})})})},zp=({data:e,CONSTANTS:t})=>{const{productId:r}=Kl();return e.productLists.map((o,s)=>n.jsx(zx,{title:o.title,recommendationSearch:{type:o.product_group_option,productId:r,params:{count:o.number_of_items,sort:"score:desc"}},CONSTANTS:t},`shelf=${s}`))},Bp=({data:e,CONSTANTS:t})=>e.productLists.map((r,o)=>{const s=r.collectionId?{term:"",facets:[{key:"productclusterids",value:`${r.collectionId}`}]}:{term:r.search_base_name,facets:[]};return n.jsx($x,{title:r.title,collectionSearch:{params:{count:r.number_of_items,sort:r.sort},...s},CONSTANTS:t},`shelf=${o}`)}),Bx="_embedLiveContainer_1ss0l_2",Fx="_embedLivePlayer_1ss0l_7",cc={embedLiveContainer:Bx,embedLivePlayer:Fx},Fp=({data:e})=>n.jsx("div",{className:cc.embedLiveContainer,children:n.jsx("div",{className:cc.embedLivePlayer,children:e.banner.videosrc?n.jsx(ze.Video,{src:e.banner.videosrc??"",playsInline:!0,autoPlay:!0,loop:!0,muted:!0,title:"Live",controls:!0}):n.jsxs("div",{children:[n.jsx("iframe",{src:e.banner.embed_source??"",allow:"autoplay; fullscreen; picture-in-picture; loop;",title:"Live"}),n.jsx(bp,{src:"https://player.vimeo.com/api/player.js",defer:!0,strategy:"lazyOnload"})]})})}),qx={"Image Grid":Lp,"Embed Live":Fp,"Banner Carousel":Ap,Banner:qs,"Bennefits Bar":Ip,newsletter:Mp,TextContent:Np,TextAccordion:Tp,"Product Carousel":Bp,"PDP Product Carousel":zp},Hx=({data:e,identifyWhoIsFirst:t=!1,componentConfigs:r})=>e==null?void 0:e.map((o,s)=>{const i=qx[o.name],a=(r==null?void 0:r[o.name])??{};return t&&s===0&&(o.data.first=!0),o.data.componentIndex=s,o.name==="TextAccordion"&&(a.id=`text-accordion-${s}`),i?n.jsx(i,{data:o.data,...a},`section-zone-component-${s}`):null}),Ux={Banner:Cx,BannerSection:Qt,BennefitsBarSection:Ip,SingleBannerSection:qs,TextContentSection:Np,BannerCarousel:Ap,TextAccordionSection:Tp,TipbarScreening:Lx,ImageGrid:Lp,SearchPageScreening:U.SearchPageScreening,SearchContent:Mx,NewsletterSection:Mp,PDPProductCarousel:zp,ProductCarousel:Bp,EmbedLive:Fp,SectionZone:Hx},Wx={Components:Ux,helpers:Mv};exports.cms=Wx;exports.contexts=Jl;exports.data=Ps;exports.layout=vr;exports.scripts=xx;
|
|
82
|
+
`},Qx=Object.freeze(Object.defineProperty({__proto__:null,generateMiddleware:Yx},Symbol.toStringTag,{value:"Module"})),Zx={helpers:Qx},as={"custom-carousel":"_custom-carousel_t5fgp_1","carrousel-arrows-display-controller":"_carrousel-arrows-display-controller_t5fgp_10","carousel-controllers-modifier":"_carousel-controllers-modifier_t5fgp_19"};function Jx(e,t){const{mediatorRef:n}=ce();v.useEffect(()=>n.current.subscribe(e,t),[e,t])}const dc=({prevOnClick:e,nextOnClick:t,onBulletClick:n,currentPage:o,totalPages:s,position:a,hideControllers:i,left:c,isFirst:l,ICONS:u})=>{const[f,h]=v.useState("default");return Jx("herobanner:change_controllers_variant",d=>{l&&h(d.includes("white")?"inverse":"default")}),r.jsxs(m.Carousel.Controller,{className:as["carousel-controllers-modifier"],position:a??"absolute","data-hide-controllers":i,bottom:"16px",top:"unset",left:c,children:[r.jsxs(m.Carousel.Arrows,{className:as["carrousel-arrows-display-controller"],children:[r.jsx(m.Button,{variant:"tertiary",onClick:e,adornment:{start:r.jsx(m.Icon,{name:u.arrow_left})},mode:f}),r.jsx(m.Button,{variant:"tertiary",onClick:t,adornment:{start:r.jsx(m.Icon,{name:u.arrow_right})},mode:f})]}),r.jsx(m.Carousel.Bullets,{page:o,total:s,onBulletClick:n,mode:f})]})},eb=({children:e,data:t,banner:n,...o})=>{const{mediatorRef:s}=ce();return t.data.first?r.jsx($r,{observerOptions:{threshold:.51},stopOnIntersection:!1,callBackWhenVisible:()=>{s.current.publish("header:change_variant",n.headerVariant)},...o,children:e}):r.jsx(r.Fragment,{children:e})},$p=e=>{const{initialize:t,pagination:n,controller:o,itemsStyles:s}=m.Carousel.useCarousel({gap:e.data.config.gap,itemsPerPage:e.data.config.slidesPerView,direction:"row"}),a=v.useRef(void 0),i=v.useMemo(()=>cp(e.data.config.controllerPosition??"dentro-inferior-centro"),[e]),c=v.useCallback(()=>{e.data.config.slideDuration&&n.totalPages>1&&(a.current=setInterval(()=>{o==null||o.nextPage()},e.data.config.slideDuration*1e3))},[o,e.data.config.slideDuration,n.totalPages]),l=v.useCallback(f=>{clearInterval(a.current),c(),f()},[c]),u=v.useMemo(()=>{var f;return{nextOnClick:()=>l(()=>o==null?void 0:o.nextPage()),prevOnClick:()=>l(()=>o==null?void 0:o.prevPage()),onBulletClick:h=>l(()=>o==null?void 0:o.navigateTo(h)),currentPage:n.currentPage,totalPages:n.totalPages,position:i.position,hideControllers:((f=e.data.config)==null?void 0:f.hideControllers)??!1,left:i.left}},[n.currentPage,n.totalPages,i.position,e.data.config.hideControllers,l,o]);return v.useEffect(()=>(c(),()=>clearInterval(a.current)),[c]),r.jsxs(m.Carousel.Root,{innerRef:f=>{t(f)},className:m.helpers.classNameConcat(as["custom-carousel"],e.data.config.fullWidth?"":"common-section"),"data-infinity-border":!0,style:{...e.data.config.marginTop!=="0px"&&{marginTop:`-${e.data.config.marginTop}`},...e.data.config.marginBottom!=="0px"&&{marginBottom:`-${e.data.config.marginBottom}`}},children:[i.shouldRender==="top"&&n.totalPages>1?r.jsx(dc,{ICONS:e.ICONS,...u,isFirst:e.data.first}):r.jsx(r.Fragment,{}),r.jsx(m.Carousel.Body,{children:e==null?void 0:e.data.banners.map((f,h)=>r.jsx(m.Carousel.Item,{style:s,children:r.jsx(eb,{data:e,banner:f,children:r.jsx(tr,{ICONS:e.ICONS,suppressContentEditableWarning:!0,suppressHydrationWarning:!0,data:{banner:f,index:h,componentIndex:e.data.componentIndex},creative:"banner-carousel",...e.data.first&&h===0&&{priority:!0}})})},`hero-banner-item-${h}`))}),i.shouldRender==="bottom"&&n.totalPages>1?r.jsx(dc,{ICONS:e.ICONS,...u}):r.jsx(r.Fragment,{})]})},tb={Banner:Ks},Dt={"row-controller-modifier":"_row-controller-modifier_co4wb_1","carousel-title-modifier":"_carousel-title-modifier_co4wb_18","carousel-modifier":"_carousel-modifier_co4wb_22","card-modifier":"_card-modifier_co4wb_26"},zp=({data:e,CONSTANTS:t})=>{var u;const{isMobile:n}=ce(),o=e.config.size??"medium",s=e.config.disableCarouselMobile??!1,{initialize:a,pagination:i,controller:c,itemsStyles:l}=m.Carousel.useCarousel({itemsPerPage:n?e==null?void 0:e.config.slidesPerViewMobile:(u=e==null?void 0:e.config)==null?void 0:u.slidesPerView,gap:n?e.config.gapMobile:e.config.gap,direction:n&&s?"column":"row"});return r.jsx(m.Utils.Column,{style:{width:o==="small"?"70%":"100%"},alignContent:"center",justifyContent:"center",alignItems:"center",children:r.jsxs(m.Carousel.Root,{innerRef:f=>{a(f)},className:m.helpers.classNameConcat(Dt["carousel-modifier"],"common-section"),children:[o==="medium"?r.jsxs(m.TextStructure.Root,{children:[r.jsx(m.TextStructure.DivWrapper,{className:Dt["carousel-title-modifier"],children:r.jsx("h2",{className:"typography-style-body-lg",children:t.BENNEFITS_BAR_TITLE})}),n&&i.totalPages>1?r.jsx(m.Carousel.Controller,{className:Dt["row-controller-modifier"],children:r.jsxs(m.Carousel.Arrows,{children:[r.jsx(m.Button,{variant:"tertiary",onClick:()=>c==null?void 0:c.prevPage(),adornment:{start:r.jsx(m.Icon,{name:t.ICONS.arrow_left})}}),r.jsx(m.Button,{variant:"tertiary",onClick:()=>c==null?void 0:c.nextPage(),adornment:{start:r.jsx(m.Icon,{name:t.ICONS.arrow_right})}})]})}):r.jsx(r.Fragment,{})]}):r.jsx(r.Fragment,{}),r.jsx(m.Carousel.Body,{children:e.bennefit.map((f,h)=>r.jsx(m.Carousel.Item,{className:Dt["card-modifier"],style:l,children:r.jsx(m.Card,{stroke:!0,padding:"small",children:r.jsx(m.TextStructure.Root,{layoutProps:{columnWrapper:{alignContent:"start",alignItems:"start",justifyContent:"start"},textRow:{alignContent:"center",alignItems:"center",justifyContent:"center"}},adornment:{[o==="medium"?"top":"start"]:r.jsx(m.Icon,{name:f.icon,size:o==="medium"?"medium":"small"})},children:r.jsxs(m.TextStructure.DivWrapper,{alignItems:"start",children:[r.jsx("h3",{className:"typography-style-body-md",children:f.title}),f.subtitle&&f.subtitle.length?r.jsx("p",{className:"typography-style-body-xs",children:f.subtitle}):r.jsx(r.Fragment,{})]})})})},`bennefit=${h}`))}),!n&&i.totalPages>1?r.jsxs(m.Carousel.Controller,{className:Dt["row-controller-modifier"],children:[r.jsxs(m.Carousel.Arrows,{children:[r.jsx(m.Button,{variant:"tertiary",onClick:()=>c==null?void 0:c.prevPage(),adornment:{start:r.jsx(m.Icon,{name:t.ICONS.arrow_left})}}),r.jsx(m.Button,{variant:"tertiary",onClick:()=>c==null?void 0:c.nextPage(),adornment:{start:r.jsx(m.Icon,{name:t.ICONS.arrow_right})}})]}),r.jsx(m.Carousel.Bullets,{page:i.currentPage,total:i.totalPages,onBulletClick:f=>c==null?void 0:c.navigateTo(f)})]}):r.jsx(r.Fragment,{})]})})},Fp=({data:e,ICONS:t})=>r.jsx("div",{className:m.helpers.classNameConcat(ts.textContentSection),style:e.borderTop?{borderTop:"none"}:void 0,children:r.jsx(lp,{data:e,ICONS:t})}),fc={"accordion-modifier":"_accordion-modifier_1we16_1","accordion-body-modifier":"_accordion-body-modifier_1we16_7"},Bp=({data:e,id:t,ICONS:n})=>{var a;const[o,s]=v.useState([]);return r.jsxs(m.Utils.Column,{gap:"var(--gap-vertical-sm)",children:[e.titleAccordion?r.jsx(m.TextStructure.Root,{children:r.jsx(m.TextStructure.DivWrapper,{children:r.jsx("h2",{className:m.helpers.classNameConcat("typography-style-heading-sm","common-section"),style:{fontWeight:500},children:e.titleAccordion})})}):r.jsx(r.Fragment,{}),(a=e.accordions)==null?void 0:a.map((i,c)=>r.jsxs(m.Accordion.Wrapper,{className:fc["accordion-modifier"],children:[r.jsx(m.Accordion.Header,{id:`${t}-text-accordion-${c}`,openIndicator:r.jsx(m.Icon,{name:n.arrow_down}),closeIndicator:r.jsx(m.Icon,{name:n.arrow_up}),startOpen:o.includes(c),onClick:()=>s(l=>l.includes(c)?l.filter(u=>u!==c):[...l,c]),children:r.jsx(m.TextStructure.Root,{children:r.jsxs(m.TextStructure.DivWrapper,{className:es["draftjs-text-modifier"],children:[r.jsx("h3",{className:"typography-style-body-md-strong",children:i.title}),i.subtitle&&i.subtitle.length?r.jsx("h2",{children:i.subtitle}):r.jsx(r.Fragment,{})]})})}),r.jsx(m.Accordion.Body,{children:r.jsx(m.TextStructure.Root,{children:r.jsx(m.TextStructure.DivWrapper,{className:m.helpers.classNameConcat(fc["accordion-body-modifier"],es["draftjs-text-modifier"]),children:r.jsx(Xe.Editor,{editorKey:`${t}-editor-${c}`,blockRenderMap:Rr,editorState:i.text?Er(JSON.parse(i.text)):Xe.EditorState.createEmpty(),onChange:()=>null})})})})]},`${t}-accordion-${c}-${o.includes(c)}`))]})},qp=v.createContext({}),rb=({data:e,children:t,...n})=>{var g,y,_,b,S,x,j,P,E,C,R,T,w;const[o,s]=v.useState(!0),{initialize:a,controller:i,itemsStyles:c}=m.Carousel.useCarousel({gap:0,itemsPerPage:1}),l={slideTranstionTimer:(y=(g=e==null?void 0:e.staticConfig)==null?void 0:g.staticConfig)==null?void 0:y.slideTranstionTimer,showCarouselArrows:(b=(_=e==null?void 0:e.staticConfig)==null?void 0:_.staticConfig)==null?void 0:b.showCarouselArrows,hasCloseBtn:(x=(S=e==null?void 0:e.staticConfig)==null?void 0:S.staticConfig)==null?void 0:x.hasCloseBtn,backgroundColor:(P=(j=e==null?void 0:e.staticConfig)==null?void 0:j.staticConfig)==null?void 0:P.backgroundColor,textColorVariant:(C=(E=e==null?void 0:e.staticConfig)==null?void 0:E.staticConfig)==null?void 0:C.textColorVariant,content:((T=(R=e==null?void 0:e.content)==null?void 0:R.content)==null?void 0:T.items)??[]},u=(w=l.content)==null?void 0:w.filter(N=>!N.countDownEndDate||new Date(N.countDownEndDate)>new Date),f=u.length>1,h={...l.backgroundColor?{backgroundColor:l.backgroundColor}:{}},d=()=>{s(!1)},p=m.helpers.ValidateProp({fieldTypes:Pt.Mode,property:l.textColorVariant,fallback:"default"});return r.jsx(qp.Provider,{value:{isOpen:o,setIsOpen:s,hasCarousel:f,backgroundStyle:h,handleCloseTipbar:d,mode:p,slideTranstionTimer:l.slideTranstionTimer,showCarouselArrows:l.showCarouselArrows,hasCloseBtn:l.hasCloseBtn,slices:u,carouselProps:{initialize:a,controller:i,itemsStyles:c},...n},children:t})},at=()=>v.useContext(qp),nb=({dateEnd:e,...t})=>{const{CONSTANTS:{TIME_ZONE:n}}=at();return r.jsx(rs,{dateEnd:new Date(e),TIME_ZONE:n,...t})},ob="_tipbar_bt3p0_1",sb="_tipbar__carousel_bt3p0_15",rr={tipbar:ob,tipbar__carousel:sb,"tipbar__close-btn":"_tipbar__close-btn_bt3p0_29","tipbar-item":"_tipbar-item_bt3p0_37","tipbar-item__coupon":"_tipbar-item__coupon_bt3p0_45"},ab=({coupon:e,feedbackTitle:t,feedbackDescription:n,...o})=>{const{CONSTANTS:s}=at(),{addCouponSeller:a,cartStore:i}=Ee(),[c,l]=v.useState({status:!1,showSnackBar:!1}),[u,f]=v.useState(!1),[h,d]=v.useState(!1),p=async()=>{if(!i.items.length){d(!0);return}(await a(e,"coupon")).code===200?l({status:!0,showSnackBar:!0}):f(!0)};return v.useEffect(()=>{c.showSnackBar&&setTimeout(()=>{l(g=>({...g,showSnackBar:!1}))},s.TIPBAR_CONFIGS.snackbar_timeout)},[c.showSnackBar]),v.useEffect(()=>{u&&setTimeout(()=>{f(!1)},s.TIPBAR_CONFIGS.snackbar_timeout)},[u]),v.useEffect(()=>{h&&setTimeout(()=>{d(!1)},s.TIPBAR_CONFIGS.snackbar_timeout)},[h]),r.jsxs(r.Fragment,{children:[r.jsx(m.Button,{...o,onClick:p,disabled:c.status,className:rr["tipbar-item__coupon"],children:c.status?`${s.TIPBAR_CONFIGS.coupon_applied_message}`:`${s.TIPBAR_CONFIGS.coupon_default_message}`}),c.showSnackBar&&(t||n)&&r.jsx(wt,{title:t,subtitle:n,Z_INDEX_WAR:s.Z_INDEX_WAR},`feedback-coupon-${e}`),u&&r.jsx(wt,{title:s.TIPBAR_CONFIGS.coupon_error_title,subtitle:s.TIPBAR_CONFIGS.coupon_error_message,Z_INDEX_WAR:s.Z_INDEX_WAR},`error-coupon-${e}`),h&&r.jsx(wt,{title:s.TIPBAR_CONFIGS.coupon_cart_empty_title,subtitle:s.TIPBAR_CONFIGS.coupon_cart_empty_message,Z_INDEX_WAR:s.Z_INDEX_WAR},`error-cart-empty-${e}`)]})},ib=({title:e,description:t,style:n,mode:o,className:s})=>r.jsx(m.TextStructure.Root,{children:r.jsxs(m.TextStructure.DivWrapper,{mode:o,className:s,children:[e&&r.jsx("h3",{className:"typography-style-body-sm",style:n,children:e}),t&&r.jsx("p",{className:"typography-style-caption",style:n,children:t})]})}),cb=({coupon:e,...t})=>{const{CONSTANTS:n}=at();return r.jsx(m.Copy,{...t,iconCopy:n.ICONS.copy,iconSuccess:n.ICONS.check,children:e})},lb=({staticZone:e,type:t,className:n,description:o,title:s})=>{const{mode:a}=at();if(t==="countdown")return r.jsx(nb,{dateEnd:e.countDownEndDate,size:"x-small",mode:a});if(t==="coupon"){const i=m.helpers.ValidateProp({fieldTypes:Pt.Mode,property:e.couponButtonMode,fallback:"default"}),c=m.helpers.ValidateProp({fieldTypes:Pt.VariantsExtended,property:e.couponButtonVariant,fallback:"primary"});return e.coupon?r.jsx(ab,{coupon:e.coupon,mode:i,variant:c,feedbackTitle:e.couponFeedbackTitle,feedbackDescription:e.couponFeedbackDescription}):null}if(t==="copy"){const i=m.helpers.ValidateProp({fieldTypes:Pt.Mode,property:e.couponButtonMode,fallback:"default"});return e.coupon?r.jsx(cb,{coupon:e.coupon,mode:i}):null}return r.jsx(ib,{title:s,description:o,mode:a,className:n})},pc=({handleCloseTipbar:e,mode:t})=>{const{CONSTANTS:n}=at();return r.jsx(m.Button,{title:"fechar tipbar",className:rr["tipbar__close-btn"],onClick:e,variant:"tertiary",mode:t,adornment:{start:r.jsx(m.Icon,{name:n.ICONS.close})}})},ub=({children:e,mode:t="default",showCarouselArrows:n=!0,slideTranstionTimer:o})=>{const{carouselProps:s,CONSTANTS:a}=at(),i=v.useRef(null),c=(u,f)=>{var h,d;u.stopPropagation(),u.preventDefault(),f==="prev"?(h=s.controller)==null||h.prevPage():(d=s.controller)==null||d.nextPage(),i.current&&(clearInterval(i.current),l())},l=v.useCallback(()=>{if(o&&s.controller){const u=setInterval(()=>{var f;(f=s.controller)==null||f.nextPage()},o);i.current=u}},[o,s]);return v.useEffect(()=>(l(),()=>{i.current&&clearInterval(i.current)}),[o,l]),r.jsxs(m.Carousel.Root,{innerRef:u=>{s.initialize(u)},className:rr.tipbar__carousel,style:{flexDirection:"row",alignItems:"center"},children:[n&&r.jsx(m.Button,{variant:"tertiary",mode:t,onClick:u=>c(u,"prev"),adornment:{start:r.jsx(m.Icon,{name:a.ICONS.arrow_left})}}),r.jsx(m.Carousel.Body,{children:e}),n&&r.jsx(m.Button,{variant:"tertiary",mode:t,onClick:u=>c(u,"next"),adornment:{start:r.jsx(m.Icon,{name:a.ICONS.arrow_right})}})]})},db=({children:e,className:t})=>{const{hasCarousel:n,mode:o,hasCloseBtn:s,backgroundStyle:a,showCarouselArrows:i,slideTranstionTimer:c,handleCloseTipbar:l}=at(),u=n&&i;return r.jsx("div",{style:a,"data-hasclosebtn":s,className:m.helpers.classNameConcat(rr.tipbar,t),children:n?r.jsxs(r.Fragment,{children:[r.jsx(ub,{mode:o,showCarouselArrows:u,slideTranstionTimer:c,children:e}),s&&r.jsx(pc,{handleCloseTipbar:l,showCarouselArrows:u,mode:o})]}):r.jsxs(r.Fragment,{children:[e,s&&r.jsx(pc,{handleCloseTipbar:l,mode:o})]})})},fb=({children:e,highlightFirstSection:t,...n})=>{const{hasCarousel:o,carouselProps:s}=at(),a=r.jsx("div",{...n,className:rr["tipbar-item"],children:e});return o?r.jsx(m.Carousel.Item,{style:s.itemsStyles,children:a}):a},Hp=({className:e})=>{const{isOpen:t,slices:n}=at();return n.length&&t?r.jsx(db,{children:n.map((o,s)=>{var a;return r.jsx(r.Fragment,{children:r.jsx(Yt,{href:o.link,children:r.jsx(fb,{highlightFirstSection:o.highlightFirstSection,"data-justifyhighlightedsection":o.horizontalAlignHighlightedSection?o.horizontalAlignHighlightedSection:"center",children:o&&((a=o==null?void 0:o.items)!=null&&a.length)?o.items.map((i,c)=>r.jsx(lb,{staticZone:o,type:i.type,title:i.title,description:i.description,className:e},`tipbar-slice-field-${c}`)):null})})},`tipbar-slice-${s}`)})}):null};Hp.displayName="TipBar.Root";const is=({className:e,...t})=>r.jsx(rb,{...t,children:r.jsx(Hp,{className:e})});is.displayName="TipBar";const pb=({CONSTANTS:e,data:t})=>{const{pathname:n}=_e(),{tipbarRef:o}=Pe(),s=c=>{const l=t==null?void 0:t.find(u=>{var f,h,d,p,g;return((h=(f=u.staticConfig)==null?void 0:f.staticConfig)==null?void 0:h.deviceType)===c&&((g=(p=(d=u.staticConfig)==null?void 0:d.staticConfig)==null?void 0:p.paths)==null?void 0:g.includes(n))});return l||(t==null?void 0:t.find(u=>{var f,h,d,p,g,y;return((h=(f=u.staticConfig)==null?void 0:f.staticConfig)==null?void 0:h.deviceType)===c&&(!((p=(d=u.staticConfig)==null?void 0:d.staticConfig)!=null&&p.paths)||((y=(g=u.staticConfig)==null?void 0:g.staticConfig)==null?void 0:y.paths.length)===0)}))},a=s("desktop"),i=s("mobile");return r.jsxs("div",{ref:o,className:U.responsive["responsive-flex"],children:[i&&r.jsx("div",{className:U.responsive["responsive-mobile-flex"],children:r.jsx(is,{data:i,CONSTANTS:e})}),a&&r.jsx("div",{className:U.responsive["responsive-desktop-flex"],children:r.jsx(is,{data:a,CONSTANTS:e})})]})},mc={"card-image-wrapper":"_card-image-wrapper_10mul_1","card-image-container":"_card-image-container_10mul_9"},Up=e=>{const{nextimage:t}=_e();return r.jsx(r.Fragment,{children:e.data.banners.map((n,o)=>r.jsx("div",{className:mc["card-image-wrapper"],children:r.jsx("div",{className:mc["card-image-container"],children:r.jsx(t,{src:n.image,alt:n.altImage?n.altImage:"Banner Coleção",width:500,height:600})})},o))})},mb=({SectionZone:e,CMS_PROJECT_NAME:t,storeId:n,previewId:o})=>{const[s,a]=v.useState();return v.useEffect(()=>{s||U.getContentType({contentType:"search",CMS_PROJECT_NAME:t,storeId:n,previewId:o}).then(i=>{a(i.data[0])})},[]),r.jsx(e,{data:s??[]})},Wp=({data:{componentIndex:e,...t},CONSTANTS:n})=>r.jsx(Qs,{...t,CONSTANTS:n}),Gp=async e=>{const{type:t}=e,n=t==="collectionSearch"?"/api/search/product":"/api/search/crosseling",o=JSON.stringify(t==="collectionSearch"?{...e.params,facets:e.facets,term:e.term,forceUpdate:!1}:e.facets);return(await fetch(n,{method:"POST",headers:{"Content-Type":"application/json"},body:o}).then(a=>a.json()).then(a=>t==="collectionSearch"?a.data.products:a.products)).filter(a=>!!a.node.availability.status)},hb="_shelf__container_bi04n_10",Vp={shelf__container:hb},gb=({collectionSearch:e,title:t,CONSTANTS:n})=>{const[o,s]=v.useState([]),{isMobile:a}=ce(),{ref:i,inView:c}=gc.useInView({threshold:.7,delay:100,triggerOnce:!0}),{sendDataLayerEvent:l}=le();return v.useEffect(()=>{if(!e)return;function u(){var f,h;Gp({type:"collectionSearch",term:e==null?void 0:e.term,facets:e==null?void 0:e.facets,params:{count:((f=e==null?void 0:e.params)==null?void 0:f.count)??12,sort:((h=e==null?void 0:e.params)==null?void 0:h.sort)??n.ITEMS_DEFAULT_SORT}}).then(d=>{s(d)})}u()},[e]),v.useEffect(()=>{!c||o.length===0||l({functionKey:"productListEvent",data:{event:"view_item_list",commonData:{products:o},customData:{item_list_name:t??"Você também pode gostar"}}})},[c,o]),o.length===0?null:r.jsx("div",{ref:i,className:Vp.shelf__container,children:r.jsx(Ut.Shelf,{title:t??"Você também pode gostar",itemsPerPage:{desktop:4.4,mobile:2.2},ICONS:n.ICONS,children:Array.isArray(o)&&o.map(({node:u},f)=>{const{availability:{status:h}}=u;return h?r.jsx(Ut.Card,{item:u,isMobile:a,size:"medium",index:f,shelfTitle:t??"Você também pode gostar",CONSTANTS:n},u.id):null})})})},yb=({recommendationSearch:e,title:t,CONSTANTS:n})=>{const[o,s]=v.useState([]),{isMobile:a}=ce(),{ref:i,inView:c}=gc.useInView({threshold:.7,delay:100,triggerOnce:!0}),{sendDataLayerEvent:l}=le(),u=v.useMemo(()=>e?[{key:e.type,value:e.productId}]:[],[e]);return v.useEffect(()=>{if(!e)return;function f(){var h;Gp({type:"recommendationSearch",facets:u,params:{count:((h=e==null?void 0:e.params)==null?void 0:h.count)??12,sort:n.ITEMS_DEFAULT_SORT}}).then(d=>s(d))}f()},[u,e]),v.useEffect(()=>{if(!c||o.length===0||(e==null?void 0:e.type)==="suggestions")return;const f=t??"Você também pode gostar";l({functionKey:"productListEvent",data:{event:"view_item_list",commonData:{products:o},customData:{item_list_name:f},outsideEcommerceData:{item_list_name:f}}})},[c,o]),(o==null?void 0:o.length)===0?null:(e==null?void 0:e.type)==="suggestions"?r.jsx(ed,{products:o,innerRef:i,inView:c,CONSTANTS:n}):r.jsx("div",{ref:i,className:Vp.shelf__container,children:r.jsx(Ut.Shelf,{title:t??"Você também pode gostar",itemsPerPage:{desktop:4.4,mobile:2.2},ICONS:n.ICONS,children:Array.isArray(o)&&o.map(({node:f},h)=>{const{availability:{status:d}}=f;return d?r.jsx(Ut.Card,{item:f,isMobile:a,size:"medium",index:h,shelfTitle:t??"Você também pode gostar",CONSTANTS:n},f.id):null})})})},Kp=({data:e,CONSTANTS:t})=>{const{productId:n}=tu();return e.productLists.map((o,s)=>r.jsx(yb,{title:o.title,recommendationSearch:{type:o.product_group_option,productId:n,params:{count:o.number_of_items,sort:"score:desc"}},CONSTANTS:t},`shelf=${s}`))},Xp=({data:e,CONSTANTS:t})=>e.productLists.map((n,o)=>{const s=n.collectionId?{term:"",facets:[{key:"productclusterids",value:`${n.collectionId}`}]}:{term:n.search_base_name,facets:[]};return r.jsx(gb,{title:n.title,collectionSearch:{params:{count:n.number_of_items,sort:n.sort},...s},CONSTANTS:t},`shelf=${o}`)}),_b="_embedLiveContainer_1ss0l_2",vb="_embedLivePlayer_1ss0l_7",hc={embedLiveContainer:_b,embedLivePlayer:vb},Yp=({data:e})=>r.jsx("div",{className:hc.embedLiveContainer,children:r.jsx("div",{className:hc.embedLivePlayer,children:e.banner.videosrc?r.jsx(Ie.Video,{src:e.banner.videosrc??"",playsInline:!0,autoPlay:!0,loop:!0,muted:!0,title:"Live",controls:!0}):r.jsxs("div",{children:[r.jsx("iframe",{src:e.banner.embed_source??"",allow:"autoplay; fullscreen; picture-in-picture; loop;",title:"Live"}),r.jsx(Rp,{src:"https://player.vimeo.com/api/player.js",defer:!0,strategy:"lazyOnload"})]})})}),xb="_popup_5taxs_9",bb="_popup__overlay_5taxs_19",jb="_popup__modal_5taxs_27",Be={popup:xb,popup__overlay:bb,popup__modal:jb,"popup__modal--form":"_popup__modal--form_5taxs_49","popup__modal--header":"_popup__modal--header_5taxs_66","popup__modal--status":"_popup__modal--status_5taxs_69","popup__modal--checkbox":"_popup__modal--checkbox_5taxs_78","popup__modal--success":"_popup__modal--success_5taxs_90","popup__modal--close":"_popup__modal--close_5taxs_101"},Cb=e=>r.jsx("div",{className:Be["popup__modal--success"],children:r.jsx(m.TextStructure.Root,{adornment:{start:r.jsx(m.Icon,{name:e.ICONS.check_circle,size:"large"})},children:r.jsxs(m.TextStructure.DivWrapper,{className:Be["text-structure-modifier"],children:[r.jsx("h3",{className:"typography-style-body-sm-strong",children:e.successTitle}),r.jsx("p",{className:"typography-style-body-caption",children:e.successDescription})]})})}),Sb=e=>{const{title:t,description:n,groups:o,ICONS:s}=e,{formErrors:a,submitForm:i,success:c}=Vr(),[l,u]=v.useState(!1);return r.jsx("form",{onSubmit:i,className:Be.formContainer,children:r.jsxs("div",{className:Be["popup__modal--form"],children:[r.jsxs(m.TextStructure.DivWrapper,{className:Be["popup__modal--header"],children:[r.jsx("strong",{className:"typography-style-body-md-strong",children:t}),r.jsx("p",{className:"typography-style-body-xs",children:n})]}),c?r.jsx(Cb,{...e}):r.jsxs(r.Fragment,{children:[o.map(f=>r.jsx(Et.FieldGroup,{group:f,children:r.jsx(Et.FieldWrapper,{fields:f.fields})},f.groupLabel)),r.jsx(m.Checkbox,{className:Be["popup__modal--checkbox"],adornment:r.jsx(m.Icon,{name:s.check,size:"small"}),name:"terms-and-conditions",label:"Li e aceito os termos de política de privacidade abaixo.",sizeVariant:"small",checked:l,onChange:()=>u(!l)}),r.jsxs("div",{children:[!l&&r.jsx(m.TextStructure.DivWrapper,{className:Be["popup__modal--status"],children:r.jsxs("p",{className:"typography-style-body-caption",children:[r.jsx(m.Icon,{size:"small",name:s.alert_circle}),Km]})}),r.jsx(m.Button,{disabled:!l,size:"medium",type:"submit",children:Ym}),a.length?r.jsx(m.TextStructure.DivWrapper,{className:Be["popup__modal--status"],children:r.jsx("p",{className:m.helpers.classNameConcat(Be.formSubmitWarning,"typography-style-body-xs"),children:Xm})}):null]})]})]})})},Qp=({data:e,CONSTANTS:t})=>{const[n,o]=v.useState(!1),s=typeof window<"u"?window.sessionStorage.getItem(t.POPUP_TRACK_STORAGE)||window.localStorage.getItem(t.POPUP_SUBMITTED_STORAGE):null,a=()=>{o(!1),window.sessionStorage.setItem(t.POPUP_TRACK_STORAGE,"true")};return v.useEffect(()=>{setTimeout(()=>!s&&o(!0),2e3)},[]),e.active&&n?r.jsxs("div",{className:Be.popup,children:[r.jsx("div",{onClick:a,className:Be.popup__overlay}),r.jsxs("div",{className:Be.popup__modal,children:[r.jsx(m.Button,{onClick:a,variant:"tertiary",className:Be["popup__modal--close"],children:r.jsx(m.Icon,{style:{color:e.closeColor||"#000"},name:t.ICONS.close,size:"medium"})}),r.jsx("div",{children:r.jsx(Ie.Image,{src:e.imageUrl,width:"459",height:"418",alt:e.title})}),r.jsx(Dp,{...e,children:r.jsx(Sb,{...e,ICONS:t.ICONS})})]})]}):null},Pb={"Image Grid":Up,"Embed Live":Yp,"Banner Carousel":$p,Banner:Ks,"Bennefits Bar":zp,newsletter:Wp,TextContent:Fp,TextAccordion:Bp,"Product Carousel":Xp,"PDP Product Carousel":Kp,"Popup Modal":Qp},wb=({data:e,identifyWhoIsFirst:t=!1,componentConfigs:n})=>e==null?void 0:e.map((o,s)=>{const a=Pb[o.name],i=(n==null?void 0:n[o.name])??{};return t&&s===0&&(o.data.first=!0),o.data.componentIndex=s,o.name==="TextAccordion"&&(i.id=`text-accordion-${s}`),a?r.jsx(a,{data:o.data,...i},`section-zone-component-${s}`):null}),Eb={Banner:tb,BannerSection:tr,BennefitsBarSection:zp,SingleBannerSection:Ks,TextContentSection:Fp,BannerCarousel:$p,TextAccordionSection:Bp,TipbarScreening:pb,ImageGrid:Up,SearchPageScreening:U.SearchPageScreening,SearchContent:mb,NewsletterSection:Wp,PDPProductCarousel:Kp,ProductCarousel:Xp,EmbedLive:Yp,PopupModalSection:Qp,SectionZone:wb},Rb={Components:Eb,helpers:Yv};exports.cms=Rb;exports.contexts=au;exports.data=Is;exports.layout=Cr;exports.scripts=Zx;
|