"use strict";(self.webpackChunkui=self.webpackChunkui||[]).push([[26],{94:(e,r,a)=>{a.d(r,{a:()=>t});const t={bar:"X_0GTLdx",barEllipsis:"Shgl1nRJ",barDots:"HDDCyOJb",barButton:"JW8AkNAr",barButtonUnderline:"N1LiUWVG"}},97:(e,r,a)=>{a.d(r,{a:()=>t});const t={overlay:"cveDcOck",overlayActive:"yE4YJo3O",wrapper:"iOMLKbr_",wrapperActive:"cDbxzJCE",wrapperHeading:"xIIm_Uqh",wrapperLabel:"df_OaUE9",wrapperLabelActive:"Bd3f_ePF",wrapperRight:"QYFV_Dtc",wrapperLabels:"ZgBVIvtk"}},135:(e,r,a)=>{var t=a(0),l=a(1),s=a(2),n=a(14);a(17);const i=e=>{const r=/\d/,a=e.reduce(((e,a)=>{const t=a.variants.reduce(((e,a)=>{const t=e.some((e=>e.name===a.colorValue)),l=r.test(a.colorValue);return t||l?e:a.availableForSale?e.concat({name:a.colorValue,url:a.colorUrl}):e}),[]),l=t.filter((r=>e.every((e=>e.name!==r.name))));return e.concat(l)}),[]);return a},o=["5XS","4XS","3XS","2XS","XXXS","XXS","XS","S","M","L","XL","XXL","XXXL","1X","2X","3X","4X","5X","2XL","3XL","4XL","5XL","0.5","1","1.5","2","2.5","3","3.5","4","4.5","5","5.5","6","6.5","7","7.5","8","8.5","9","9.5","10","10.5","11","11.5","12","12.5","13","13.5","14","14.5","15","15.5","16","16.5","17","17.5","18","18.5","19","19.5","20","20.5","21","21.5","22","22.5","23","23.5","24","24.5","25","25.5","26","26.5","27","27.5","28","28.5","29","29.5","30","30.5","31","31.5","32","32.5","33","33.5","34","34.5","35","35.5","36","36.5","37","37.5","38","38.5","39","39.5","40","40.5","41","41.5","42","42.5","43","43.5","44","44.5","45","45.5","46","46.5","47","47.5","48","48.5","49","49.5","50","50.5","51","51.5","52","52.5","53","53.5","54","54.5","55","55.5","56","56.5","57","57.5","58","58.5","59","59.5","60","9-11","OS","ONE SIZE"];var c=a(3);const p=c.content.object({name:"Color",type:"color",fields:{name:c.content.singleLineTextField({name:"name",required:!0}),color_hex:c.content.colorField({name:"color_hex",required:!1}),image_swatch:c.content.imageField({name:"image_swatch",required:!1})}}),d=c.content.object({name:"Parent Color Group",type:"parent_color_group",fields:{color_group_name:c.content.singleLineTextField({name:"Color Group Name",required:!1}),child_color:c.content.listField({name:"Child Color",fieldType:"metaobjectField",required:!1,reference:p}),parent_color:c.content.colorField({name:"Parent Color",required:!1}),parent_swatch:c.content.imageField({name:"Parent Swatch",required:!1})}});c.content.object({name:"Color Palettes",type:"color_palettes",fields:{parent_color_groups:c.content.listField({name:"parent_color_groups",reference:d,required:!0,fieldType:"metaobjectField"})}});const u=(e,r,a,t)=>{const l=r[`${a}s`];if(!(l.length>0))return e;if("color"===a){const r=l.map((e=>e.toLowerCase()));return e.filter((e=>e.variants.some((e=>{const l=e.options[a];if(l){const a=l.toLowerCase();if(r.includes(a)&&e.availableForSale)return!0;if(t.filter((e=>r.includes(e.name.toLowerCase()))).some((e=>e.childColors.includes(a)))&&e.availableForSale)return!0}return!1}))))}return e.filter((e=>l.some((r=>e.variants.some((e=>e.options[a]===r&&e.availableForSale))))))},g=(e,r,a)=>{let t=u(e,r,"color",a);return t=u(t,r,"size",a),t=((e,r)=>{const a=r.categories;return a.length>0?e.filter((e=>a.some((r=>e.variants.some((e=>e.productType===r&&e.availableForSale)))))):e})(t,r),t},h=["5XS","4XS","3XS","2XS","XXXS","XXS","XS","S","M","L","XL","XXL","XXXL","1X","2X","3X","4X","5X","2XL","3XL","4XL","5XL","OS","ONE SIZE"],m=e=>{const r=e.map((e=>Number(e.price))).filter((e=>!isNaN(e)));return{minVariantPrice:0!==r.length?Math.min(...r):0}},b=(e,r,a)=>e&&"featured"!==e?"best-selling"===e?((e,r)=>r.map((r=>{const[a]=e.filter((e=>r===e.handle));if(a)return a})).filter(n.a))(r,a):[...r].sort(((r,a)=>{if("title-ascending"===e)return r.title.localeCompare(a.title);if("title-descending"===e)return a.title.localeCompare(r.title);if("price-ascending"===e){const e=m(r.variants),t=m(a.variants);return e.minVariantPrice-t.minVariantPrice}if("price-descending"===e){const e=m(r.variants);return m(a.variants).minVariantPrice-e.minVariantPrice}return"created-ascending"===e?r.createdAt>a.createdAt?1:-1:"created-descending"===e?r.createdAt>a.createdAt?-1:1:0})):r,j=e=>new URL(window.location.href).searchParams.get(e)||"",w=e=>{const r=new URL(window.location.href),a=new URLSearchParams(r.search),t=Object.entries(e).filter((([e,r])=>r.length>0));for(const[e,r]of t){const t=r.reduce(((e,r)=>0===e.length?e+r:e+`_${r}`),"");a.set(e,t)}const l=a.toString(),s=l.length>0?`?${l}`:"",n=r.pathname+s;window.history.replaceState(null,"",n)},v=(e,r,a,t)=>{const l=[...e.sizes.clothing,...e.sizes.shoes],s=r.colors.map((e=>e.toLowerCase())),n=r.categories,c=r.sizes,p=a.filter((e=>s.includes(e.name.toLowerCase()))),d=p.flatMap((e=>[e.name.toLowerCase(),...e.childColors.map((e=>e.toLowerCase()))])),u=t.filter((e=>e.variants.some((e=>{var r;return d.includes((null===(r=e.options.color)||void 0===r?void 0:r.toLowerCase())||"")&&e.availableForSale})))),g=t.filter((e=>e.variants.some((e=>{var r;const a=c.includes(e.options.size||""),t=d.includes((null===(r=e.options.color)||void 0===r?void 0:r.toLowerCase())||"");return a&&t&&e.availableForSale||a&&e.availableForSale})))),m=e.colors,b=(e=>{const r=e.reduce(((e,r)=>{const a=r.variants.reduce(((e,r)=>{const a=r.productType;return void 0!==a?e.concat(a):e}),[]);return a.length>0?e.concat(a):e}),[]);return[...new Set(r)].sort(((e,r)=>o.indexOf(e)-o.indexOf(r)))})([...u,...g]),j=t.filter((e=>e.variants.some((e=>n.includes(e.productType)&&e.availableForSale)))),w=t.filter((e=>e.variants.some((e=>c.includes(e.options.size||"")&&e.availableForSale&&n.includes(e.productType))))),v=[...i(j),...i(w)],f=a.reduce(((e,r)=>{const a=r.name.toLowerCase();return s.find((e=>e===a))&&e.push({name:r.name,url:r.parentColor}),e}),[]),x=v.reduce(((e,r)=>{const t=r.name.toLowerCase(),l=a.find((e=>e.name.toLowerCase()===t||e.childColors.map((e=>e.toLowerCase())).includes(t)));return f.length>0&&f.map((({name:r,url:a})=>{e.some((e=>e.name.toLowerCase()===r.toLowerCase()))||e.push({name:r,url:a})})),l&&!e.some((e=>e.name.toLowerCase()===l.name.toLowerCase()))&&e.push({name:l.name,url:l.parentColor}),e}),[]),O=((e,r)=>{const a=r.toLowerCase();return(e=>{const r=new Map;for(const a of e){const e=a.size,t=a.availableToSale;r.set(e,r.has(e)&&r.get(e)||t)}return Array.from(r,(([e,r])=>({size:e,availableToSale:r})))})(e.reduce(((e,r)=>{const t=r.variants.reduce(((e,r)=>{const t=null==r?void 0:r.options[a];return void 0!==t?e.concat({size:t,availableToSale:r.availableForSale}):e}),[]);return t.length>0?e.concat(t):e}),[])).sort(((e,r)=>o.indexOf(e.size)-o.indexOf(r.size)))})([...j,...u],"size"),F=l.map((e=>{const r=e.size,a=O.find((e=>e.size===r));return Object.assign(Object.assign({},e),{availableToSale:!!(null==a?void 0:a.availableToSale)})})),C=0===s.length&&0===n.length?l:F,S={clothing:(L=C).filter((e=>h.includes(e.size))),shoes:L.filter((e=>!h.includes(e.size)))},y=x.length>0?x:m,N=[...new Set([...b,...n])];var L;return{sizes:S,colors:y,categories:b.length>0?N:e.categories}},f=e=>{let r=e.replace(/[-\/\\_]/g," ");return r=r.replace(/\s+/g," ").trim(),r.toLowerCase()};var x=a(16);const O=(e,r,a)=>{const t=e.colors,l=t.flatMap((e=>{const r=a.find((r=>r.name===e));if(r)return r.childColors.concat(e).map(f)})).filter(n.a),s=r.flatMap((e=>e.variants.map((r=>{if(l.includes(f(r.colorValue))&&r.availableForSale)return{id:e.id,handle:e.handle,title:e.title,featuredImage:r.image,createdAt:e.createdAt,colorValue:r.colorValue,variants:e.variants,reviewsData:e.reviewsData,saleMessage:e.saleMessage,tag:e.tag}})).filter(n.a)));return 0===t.length?r:s.reduce(((e,r)=>(e.some((e=>e.colorValue===r.colorValue&&e.handle===r.handle))||e.push(r),[...e])),[])};var F=a(4),C=a(194);const{wrapper:S,wrapperFiltersAmount:y}={wrapper:"pd_yxoje",wrapperFiltersAmount:"fVpYq0sH"},N=({label:e,isFilterWindowOpened:r,activeFiltersAmount:a,handleToggleFilter:l})=>{const s=a>0;return(0,t.jsxs)("button",Object.assign({onClick:l,className:(0,C.a)(S)},{children:[e,(0,t.jsx)(F.l,{}),s&&(0,t.jsx)("span",Object.assign({className:y},{children:`(${a})`}))]}))},{wrapper:L,wrapperActive:P,rotateSVG:T}={wrapper:"Gv_QdhmK",rotateSVG:"WAy3LGp7"},A=({isSortOpened:e,handleToggleSort:r,sortLabel:a})=>(0,t.jsxs)("button",Object.assign({onClick:r,className:(0,C.a)(L,e?P:"")},{children:[a,(0,t.jsx)("span",Object.assign({className:(0,C.a)(e&&T)},{children:(0,t.jsx)(F.f,{})}))]})),{wrapper:R,wrapperNoMargin:D,wrapperProductsAmount:W}={wrapper:"yUpiimGI",wrapperNoMargin:"Cad2trAj",wrapperProductsAmount:"TOFgsKeO"},I=({filterLabel:e,isFilterWindowOpened:r,activeFiltersAmount:a,handleToggleFilter:l,handleToggleSort:s,sortLabel:n,isSortOpened:i,isNoMargin:o,collectionProductAmount:c,productLabel:p})=>{const{handleCustomToggleFilter:d,handleCustomToggleSort:u}=(({isFilterWindowOpened:e,isSortOpened:r,handleToggleFilter:a,handleToggleSort:t})=>({handleCustomToggleFilter:()=>{r&&t(),a()},handleCustomToggleSort:()=>{e&&a(),t()}}))({isFilterWindowOpened:r,isSortOpened:i,handleToggleFilter:l,handleToggleSort:s}),g=1===c?`${c} ${p}`:`${c} ${p}s`;return(0,t.jsxs)("div",Object.assign({className:(0,C.a)(R,o&&D)},{children:[(0,t.jsx)(N,{label:e,isFilterWindowOpened:r,activeFiltersAmount:a,handleToggleFilter:d}),(0,t.jsx)("p",Object.assign({className:W},{children:g})),(0,t.jsx)(A,{sortLabel:n,isSortOpened:i,handleToggleSort:u})]}))};var M=a(28);function _(e){const{isOpen:r,toggleCollapsible:a}=(0,M.a)(!1),{ref:t}=(0,M.c)(r,e);return{isOpen:r,toggleCollapsible:a,ref:t}}const{outerWrapper:z,wrapper:X,wrapperDescription:E,wrapperActive:V,outerWrapperActive:B}={outerWrapper:"yZj5Uxmr",outerWrapperActive:"psRoHFcq",wrapper:"pTsGLEP0",wrapperDescription:"Z2dKgL8P",wrapperActive:"pmBZO6QK"},k=({name:e,url:r,isColorActive:a,handleAddFilter:s,handleRemoveFilter:n})=>{if(!r)return(0,t.jsx)(l.Fragment,{});const i=r.startsWith("#")||r.includes("rgb"),o="White"===e?{border:"1px solid #dcdcdc"}:{},c=i?{background:r}:{backgroundImage:`url(${r})`};return(0,t.jsxs)("div",Object.assign({className:(0,C.a)(z,a&&B)},{children:[(0,t.jsx)("button",{className:(0,C.a)(X,a?V:""),style:Object.assign(Object.assign({},c),o),onClick:a?()=>n("colors",e):()=>s("colors",e)}),(0,t.jsx)("span",Object.assign({className:E},{children:e}))]}),e)},{collapsibleContainer:q,collapsibleContainerTitle:$,collapsibleContainerAngle:H,collapsibleContainerAngleActive:G}={collapsible:"N2apNTul",collapsibleContainer:"xy9_NVTK",collapsibleContainerTitle:"jEYPa3ha",collapsibleContainerAngle:"Cv0fizWW",collapsibleContainerAngleActive:"DIJt0Wnd",collapsibleWrapper:"R5MewzG7",collapsibleWrapperInner:"_NcRqpDq"},U=({label:e,isOpen:r,toggleCollapsible:a,activeFilters:l})=>{const s=l?`${e} (${l})`:e;return(0,t.jsxs)("div",Object.assign({className:q,onClick:a},{children:[(0,t.jsx)("h3",Object.assign({className:$},{children:s})),(0,t.jsx)("div",Object.assign({className:(0,C.a)(H,r&&G)},{children:(0,t.jsx)(F.f,{})}))]}))},{collapsible:J,collapsibleWrapper:Y,collapsibleWrapperInner:Z,collapsibleWrapperInnerFiller:K}={collapsible:"EzwyGTsj",collapsibleWrapper:"yU1DnB7T",collapsibleWrapperInner:"xKiI3fe_",collapsibleWrapperInnerFiller:"IGSnVym7"},Q=({label:e,activeColors:r,uniqueColors:a,handleAddFilter:s,handleRemoveFilter:n})=>{if(0===a.length)return(0,t.jsx)(l.Fragment,{});const{isOpen:i,ref:o,toggleCollapsible:c}=_(a.length);return(0,t.jsxs)("div",Object.assign({className:J},{children:[(0,t.jsx)(U,{label:e,isOpen:i,toggleCollapsible:c,activeFilters:r.length}),(0,t.jsxs)("div",Object.assign({ref:o,className:Y},{children:[(0,t.jsx)("div",Object.assign({className:Z},{children:a.map((e=>(0,t.jsx)(k,{name:e.name,url:e.url,isColorActive:r.includes(e.name),handleAddFilter:s,handleRemoveFilter:n},e.name)))})),i&&(0,t.jsx)("div",{className:K})]}))]}))},{outerWrapper:ee,wrapper:re,wrapperInput:ae,wrapperLabel:te,wrapperInputDisabled:le}={wrapper:"TcPCzosm",wrapperLabel:"lKrpIRSB",wrapperInput:"oVu4fy2v"},se=({name:e,isSizeActive:r,handleAddFilter:a,handleRemoveFilter:l,availableToSale:s})=>(0,t.jsx)("div",Object.assign({className:ee},{children:(0,t.jsxs)("div",Object.assign({className:(0,C.a)(re)},{children:[(0,t.jsx)("input",{className:(0,C.a)(ae,!s&&le),type:"checkbox",id:e,name:e,value:e,checked:r&&s,onChange:r=>{r.target.checked?a("sizes",e):l("sizes",e)},disabled:!s}),(0,t.jsx)("label",Object.assign({className:te,htmlFor:e},{children:e}))]}))}),e),{collapsible:ne,collapsibleWrapper:ie,collapsibleWrapperInner:oe,collapsibleWrapperInnerFiller:ce,collapsibleWrapperLabel:pe,collapsibleWrapperLabelMarginTop:de}={collapsible:"r79tiQ6D",collapsibleWrapper:"lpdwNBUP",collapsibleWrapperLabel:"WDkZJusH",collapsibleWrapperLabelMarginTop:"W5KmgS1w",collapsibleWrapperInner:"lIHjQDZy",collapsibleWrapperInnerFiller:"bXfvRMU_"},ue=({label:e,activeSizes:r,uniqueSizes:a,handleAddFilter:s,handleRemoveFilter:n})=>{const{isOpen:i,ref:o,toggleCollapsible:c}=_(),p=a.shoes.length>0;return(0,t.jsxs)("div",Object.assign({className:ne},{children:[(0,t.jsx)(U,{label:e,isOpen:i,toggleCollapsible:c,activeFilters:r.length}),(0,t.jsxs)("div",Object.assign({ref:o,className:ie},{children:[p&&a.clothing.length>0&&(0,t.jsx)("p",Object.assign({className:pe},{children:"Clothing"})),(0,t.jsx)("div",Object.assign({className:oe},{children:a.clothing.length>0&&a.clothing.map((e=>(0,t.jsx)(se,{name:e.size,isSizeActive:r.includes(e.size),handleAddFilter:s,handleRemoveFilter:n,availableToSale:e.availableToSale},e)))})),p&&(0,t.jsxs)(l.Fragment,{children:[a.clothing.length>0&&(0,t.jsx)("p",Object.assign({className:(0,C.a)(pe,de)},{children:"Shoes"})),(0,t.jsx)("div",Object.assign({className:oe},{children:a.shoes.map((e=>(0,t.jsx)(se,{name:e.size,isSizeActive:r.includes(e.size),handleAddFilter:s,handleRemoveFilter:n,availableToSale:e.availableToSale},e)))}))]}),i&&(0,t.jsx)("div",{className:ce})]}))]}))},{outerWrapper:ge,wrapper:he,wrapperInput:me,wrapperLabel:be}={wrapper:"gaSNCafD",wrapperLabel:"dJ3qkFGQ",wrapperInput:"Qfn72h44"},je=({name:e,isSizeActive:r,handleAddFilter:a,handleRemoveFilter:l})=>{const s=e.trim().split(" ").map((e=>0===e.length?e:e.charAt(0).toUpperCase()+e.slice(1).toLowerCase())).join(" ");return(0,t.jsx)("div",Object.assign({className:ge},{children:(0,t.jsxs)("div",Object.assign({className:(0,C.a)(he)},{children:[(0,t.jsx)("input",{className:me,type:"checkbox",id:e,name:e,value:e,checked:r,onChange:r=>{r.target.checked?a("categories",e):l("categories",e)}}),(0,t.jsx)("label",Object.assign({className:be,htmlFor:e},{children:s}))]}))}),e)},{collapsible:we,collapsibleWrapper:ve,collapsibleWrapperInner:fe,collapsibleWrapperInnerFiller:xe}={collapsible:"Elh_BqUW",collapsibleWrapper:"ZD7plRpy",collapsibleWrapperInner:"vRnftjSX",collapsibleWrapperInnerFiller:"gQ2hoQE_"},Oe=({label:e,activeSizes:r,uniqueSizes:a,handleAddFilter:s,handleRemoveFilter:n})=>{if(0===a.length)return(0,t.jsx)(l.Fragment,{});const{isOpen:i,ref:o,toggleCollapsible:c}=_();return(0,t.jsxs)("div",Object.assign({className:we},{children:[(0,t.jsx)(U,{label:e,isOpen:i,toggleCollapsible:c,activeFilters:r.length}),(0,t.jsxs)("div",Object.assign({ref:o,className:ve},{children:[(0,t.jsx)("div",Object.assign({className:fe},{children:a.map((e=>(0,t.jsx)(je,{name:e,isSizeActive:r.includes(e),handleAddFilter:s,handleRemoveFilter:n},e)))})),i&&(0,t.jsx)("div",{className:xe})]}))]}))},{wrapper:Fe,wrapperActive:Ce,wrapperContainer:Se,wrapperClose:ye,wrapperViewItemsContainer:Ne,open:Le,close:Pe,wrapperHeadContainer:Te,wrapperFilterLabel:Ae,wrapperBtn:Re,wrapperBtnNoActive:De,wrapperBtnWhite:We,wrapperBtnHidden:Ie}={wrapper:"BK39QDh2",wrapperFilterLabel:"d6A4_ON_",wrapperActive:"Bp_4q7dC",wrapperContainer:"L2bpYxv4",wrapperHeadContainer:"VN0UrNd4",wrapperClose:"nWvIfg1t",wrapperRemoveAll:"CtqsqtaY",wrapperBtn:"Rj8VEEyM",wrapperBtnNoActive:"fn0_TQ4P",wrapperBtnWhite:"OIUGT8UE",wrapperBtnHidden:"gvO2mPQi",wrapperViewItemsContainer:"lEREzfmF",wrapperViewItemsContainerItems:"YgqnuZ6x",open:"My_re9V5",slideDown:"DyiT2JEo",close:"O1ZnH35p",slideOutDown:"F042S_1a",slideLeft:"M5Ma28yx",slideOutLeft:"St4cIXhO"},Me=({shared:e,isFilterWindowOpened:r,activeFilters:a,uniqueOptions:n,gridRef:i,currentItemsAmount:o,handleAddFilter:c,handleRemoveFilter:p,handleResetFilterOptions:d,animation:u,hide:g,sortFilteringColors:h,handleApplyFilters:m,activeFiltersAmount:b})=>{const j=n.sizes.clothing.length>0||n.sizes.shoes.length>0,w=n.colors.length>0,v=a.categories.some((e=>n.categories.includes(e))),f=n.categories.length>1||v,x=0===b,O=b>0?`Apply (${b})`:"Apply",[F,S]=(0,s.useState)(n.colors),[y,N]=(0,s.useState)(n.categories);return(0,s.useEffect)((()=>{N(n.categories)}),[a.colors.length,n.categories.length,n.colors.length,n.sizes.clothing.length,n.sizes.shoes.length]),(0,s.useEffect)((()=>{S(n.colors.sort(((e,r)=>e.name.localeCompare(r.name))))}),[n.colors.length]),(0,s.useEffect)((()=>{h&&S(n.colors.sort(((e,r)=>e.name.localeCompare(r.name))))}),[h]),(0,t.jsxs)(l.Fragment,{children:[(0,t.jsxs)("div",Object.assign({className:(0,C.a)(Fe,r?Ce:"",u?Le:Pe)},{children:[(0,t.jsx)("span",Object.assign({className:ye,onClick:()=>g(400)},{children:(0,t.jsx)("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:"18",height:"18",viewBox:"0 0 18 18",fill:"none"},{children:(0,t.jsx)("path",{d:"M0 0.742294L0.742294 0L9 8.25771L17.2577 0L18 0.742294L9.74229 9L18 17.2577L17.2577 18L9 9.74229L0.742294 18L0 17.2577L8.25771 9L0 0.742294Z",fill:"black"})}))})),(0,t.jsx)("div",Object.assign({className:Te},{children:(0,t.jsx)("p",Object.assign({className:Ae},{children:"Filters"}))})),j&&(0,t.jsx)("div",Object.assign({className:Se},{children:(0,t.jsx)(ue,Object.assign({},e.options.sizes,{activeSizes:a.sizes,uniqueSizes:n.sizes,handleAddFilter:c,handleRemoveFilter:p}))})),w&&(0,t.jsx)("div",Object.assign({className:Se},{children:(0,t.jsx)(Q,Object.assign({},e.options.colors,{activeColors:a.colors,uniqueColors:F,handleAddFilter:c,handleRemoveFilter:p}))})),f&&(0,t.jsx)("div",Object.assign({className:Se},{children:(0,t.jsx)(Oe,Object.assign({},e.options.categories,{activeSizes:a.categories,uniqueSizes:y,handleAddFilter:c,handleRemoveFilter:p}))}))]})),(0,t.jsxs)("div",Object.assign({style:{display:r?"flex":"none",zIndex:1e3},className:(0,C.a)(Ne,r?Ce:"",u?Le:Pe)},{children:[(0,t.jsx)("button",Object.assign({className:(0,C.a)(Re,x&&De),onClick:m,disabled:x},{children:O})),(0,t.jsx)("button",Object.assign({className:(0,C.a)(Re,x&&Ie,!x&&We),onClick:d,disabled:x},{children:e.clearAllLabel}))]}))]})};var _e=a(93);const{wrapper:ze}={wrapper:"kpwfYJuc"},Xe=({emptyGridText:e})=>(0,t.jsx)("div",Object.assign({className:ze},{children:(0,t.jsx)("h3",{children:e})}));var Ee=a(95);a(12);const{wrapper:Ve,wrapperColor:Be,wrapperColorActive:ke,wrapperColorOutline:qe}={wrapper:"SJVYD4nO",wrapperColor:"fGafwst4",wrapperColorActive:"wcBYFD6Y",wrapperColorOutline:"xYeQxynC"},$e=({colors:e,selectedColor:r,setSelectedColor:a,isMobile:l})=>(0,t.jsx)("div",Object.assign({className:Ve},{children:e.map((({colorUrl:e,colorValue:s})=>(e=>{try{return new URL(e),!0}catch(e){return!1}})(e)?(0,t.jsx)("div",Object.assign({style:{position:"relative"},className:(0,C.a)(s===r&&ke)},{children:(0,t.jsx)("img",{onMouseEnter:()=>!l&&a(s),onClick:()=>l&&a(s),className:(0,C.a)(Be),src:e,alt:s})})):(0,t.jsx)("div",{onMouseEnter:()=>!l&&a(s),onClick:()=>l&&a(s),className:(0,C.a)(Be,s===r&&qe),style:`background: ${e}`})))}));var He=a(11);const{wrapper:Ge,wrapperComparePrice:Ue,wrapperCrossedPrice:Je,wrapperActualPrice:Ye,wrapperActualPriceRed:Ze,wrapperPercentage:Ke}={wrapper:"YinnmCK3",wrapperPercentage:"POw0QTNw",wrapperActualPrice:"yPJX4va6",wrapperComparePrice:"t0wfaq2a",wrapperActualPriceRed:"hlIy8yZf",wrapperCrossedPrice:"XaVR0uMu"},Qe=({minPrice:e,maxPrice:r,currency:a,isFromPrice:l,percentageDiff:s,PLPDiscountPercentagesEnabled:n})=>{const i=r>e;return l?(0,t.jsx)("div",Object.assign({className:Ge},{children:(0,t.jsx)("p",Object.assign({className:(0,C.a)(Ye)},{children:`From ${a}${e}`}))})):(0,t.jsxs)("div",Object.assign({className:Ge},{children:[i&&(0,t.jsx)("p",Object.assign({className:(0,C.a)(Ue,Je)},{children:`${a}${r}`})),(0,t.jsx)("p",Object.assign({className:(0,C.a)(Ye,i&&Ze)},{children:` ${a}${e}`})),n&&s>=15&&(0,t.jsx)("p",Object.assign({className:Ke},{children:`(${s}% off)`}))]}))},{wrapper:er}={wrapper:"zJsma8ZH"},rr=({productLink:e,tileImage:r,imgRef:a})=>(0,t.jsx)("div",Object.assign({className:er,ref:a},{children:(0,t.jsx)("a",Object.assign({href:e},{children:(0,t.jsx)("img",Object.assign({},r,{width:13,height:18}))}))})),{wrapper:ar,wrapperTag:tr,wrapperTagRed:lr}={wrapper:"dJYow548",wrapperTag:"s9M2GJb2",wrapperTagRed:"r2jnks34"},sr=({bestSeller:e,tag:r})=>{if(!r&&!e)return(0,t.jsx)(l.Fragment,{});const a="sale"===(null==r?void 0:r.toLowerCase())||"clearance"===(null==r?void 0:r.toLowerCase());return(0,t.jsxs)("div",Object.assign({className:ar},{children:[e&&"New"===r?"":(0,t.jsx)("span",Object.assign({className:(0,C.a)(tr,a&&lr)},{children:r})),e&&(0,t.jsx)("span",Object.assign({className:tr},{children:e}))]}))},{wrapper:nr,wrapperTitle:ir}={wrapperTitle:"Bvlrqv0R"},or=({title:e,productLink:r})=>(0,t.jsx)("a",Object.assign({href:r,className:nr},{children:(0,t.jsx)("p",Object.assign({className:ir},{children:e}))})),{wrapper:cr,wrapperTitle:pr}={wrapperTitle:"h8WgLNmu"},dr=({saleMessage:e})=>{var r;if(!e||!(null===(r=e[0])||void 0===r?void 0:r.isActive))return(0,t.jsx)(l.Fragment,{});const{message:a}=e[0];return(0,t.jsx)("div",Object.assign({className:cr},{children:(0,t.jsx)("p",{dangerouslySetInnerHTML:{__html:a},className:pr})}))},{container:ur,star:gr,containerDesktop:hr}={container:"inSje6M4",containerDesktop:"MqYWIjIp",star:"SAn9e0CJ"},mr=({filledStars:e,emptyStars:r,hasEmptyStars:a,hasHalf:s})=>{if(0===e.length)return(0,t.jsx)(l.Fragment,{});const n="#000";return(0,t.jsxs)("div",Object.assign({className:(0,C.a)(ur,hr)},{children:[e.map((()=>(0,t.jsx)("span",Object.assign({className:gr},{children:(0,t.jsx)(F.A,{color:n})})))),s&&(0,t.jsx)("span",Object.assign({className:gr},{children:(0,t.jsx)(F.q,{color:n})})),a&&r.map((()=>(0,t.jsx)("span",Object.assign({className:gr},{children:(0,t.jsx)(F.A,{color:"#dcdcdc"})}))))]}))},{wrapper:br}={wrapper:"AYIE3Hfn"},jr=({handle:e,title:r,featuredImage:a,tag:l,variants:n,currency:i,collectionHandle:o,colorValue:c,isMobile:p,imgRef:d,saleMessage:u,bestSeller:g,reviewsData:h,PLPDiscountPercentagesEnabled:m,activeColors:b,productsAmount:j})=>{const{numberOfColors:w,uniqueColorUrls:v}=(e=>{const r=e.map((e=>({colorValue:e.colorValue,colorUrl:e.colorUrl,image:e.image}))).filter((e=>e)),a=new Map;for(let e of r)a.set(e.colorValue,e);const t=[...a.values()];return{numberOfColors:t.length,uniqueColorUrls:t}})(n),[f,x]=(0,s.useState)(a),[O,F]=(0,s.useState)((()=>c||(v?v[0].colorValue:""))),[C,S]=(0,s.useState)((()=>{const e=n.filter((e=>e.colorValue===O));if(e.length>0)return e[0]})),{minVariantPrice:y,maxVariantCompareAtPrice:N,percentageDiff:L}=((e,r)=>{const a=e.map((e=>Number(e.price))).filter((e=>!isNaN(e))),t=e.map((e=>Number(e.compareAtPrice))).filter((e=>!isNaN(e))),l=0!==a.length?Math.min(...a):0,s=0!==t.length?Math.max(...t):0;return{minVariantPrice:l,maxVariantCompareAtPrice:s,percentageDiff:Math.abs(100-100*l/s).toFixed(0)}})(n),P=(e=>!(!Array.isArray(e)||0===e.length)&&(0,He.useMemo)((()=>{var r;const a=e[0],t=parseFloat(null!==(r=null==a?void 0:a.price)&&void 0!==r?r:"");if(isNaN(t))return!1;let l=!1,s=!1,n=!1;return e.some((e=>{if(!e.price||!e.compareAtPrice)return!1;const r=parseFloat(e.price),a=parseFloat(e.compareAtPrice);return!isNaN(r)&&!isNaN(a)&&(r!==t&&(l=!0),r{S((()=>{const e=n.filter((e=>e.colorValue===O));if(e.length>0)return e[0]}))}),[O]),(0,s.useEffect)((()=>x(a)),[a]),(0,s.useEffect)((()=>{x((()=>{const[e]=v.filter((e=>e.colorValue===O)).map((e=>e.image));return e||a}))}),[C]),(0,s.useEffect)((()=>{F((()=>c||(v?v[0].colorValue:"")))}),[j,b.length,a,c]);const T=`/collections/${o}/products/${e}?variant=${null==C?void 0:C.id}`,A="Sale"===l;return(0,t.jsxs)("div",Object.assign({className:br},{children:[(0,t.jsx)(rr,{productLink:T,tileImage:f,imgRef:d}),(0,t.jsx)(sr,{bestSeller:g,tag:l}),!A&&(0,t.jsx)(dr,{saleMessage:u}),(0,t.jsx)($e,{colors:v,selectedColor:O,productLink:T,setSelectedColor:F,isMobile:p}),(0,t.jsx)(or,{productLink:T,title:r}),(0,t.jsx)(Qe,{minPrice:y,maxPrice:N,currency:i,isFromPrice:P,percentageDiff:Number(L),PLPDiscountPercentagesEnabled:m}),A&&(0,t.jsx)(dr,{saleMessage:u}),(0,t.jsx)(mr,Object.assign({},h))]}))},{wrapper:wr,wrapperTexts:vr,wrapperTextsTitle:fr,wrapperTextsSubtitle:xr,wrapperTextsButton:Or,overlay:Fr}={wrapper:"QwnvNVXJ",wrapperTexts:"vZwrR3ix",wrapperTextsTitle:"JdPzK7cS",wrapperTextsSubtitle:"lQLHKdEB",wrapperTextsButton:"VoyGEVY8",overlay:"H5_3SIxk"},Cr=({title:e,subtitle:r,cta:{label:a,url:s,ctaColor:n,ctaFontColor:i},height:o,isFullTile:c,backgroundColor:p,fontColor:d,secondaryTitle:u,isDefined:g,amountOfProducts:h,disableDeadCellButton:m})=>{if(h<8||!g)return(0,t.jsx)(l.Fragment,{});const b=a.length>0&&!m;return c?(0,t.jsxs)("a",Object.assign({href:b?void 0:s,className:wr},{children:[(0,t.jsx)("div",{style:{background:`${p}`},className:Fr}),(0,t.jsxs)("div",Object.assign({className:vr},{children:[(0,t.jsxs)("div",Object.assign({className:fr},{children:[(0,t.jsx)("h3",{dangerouslySetInnerHTML:{__html:e},style:{color:`${d}`}}),(0,t.jsx)("p",{dangerouslySetInnerHTML:{__html:u},style:{color:`${d}`}})]})),(0,t.jsx)("p",{dangerouslySetInnerHTML:{__html:r},style:{color:`${d}`},className:xr}),b&&(0,t.jsx)("a",Object.assign({style:{background:`${n}`,color:`${i}`},className:Or,href:s},{children:a}))]}))]})):(0,t.jsx)("a",Object.assign({href:b?void 0:s,className:wr,style:{height:`${o}px`}},{children:o>0&&(0,t.jsxs)(l.Fragment,{children:[(0,t.jsx)("div",{style:{background:`${p}`},className:Fr}),(0,t.jsxs)("div",Object.assign({className:vr},{children:[(0,t.jsxs)("div",Object.assign({className:fr},{children:[(0,t.jsx)("h3",{dangerouslySetInnerHTML:{__html:e},style:{color:`${d}`}}),(0,t.jsx)("p",{dangerouslySetInnerHTML:{__html:u},style:{color:`${d}`}})]})),(0,t.jsx)("p",{dangerouslySetInnerHTML:{__html:r},style:{color:`${d}`},className:xr}),b&&(0,t.jsx)("a",Object.assign({style:{background:`${n}`,color:`${i}`},className:Or,href:s},{children:a}))]}))]})}))},{wrapper:Sr,wrapperWithMargin:yr,wrapperTexts:Nr,wrapperTextsTitle:Lr,wrapperTextsSubtitle:Pr,wrapperTextsButton:Tr,wrapperTextsWithoutImage:Ar,overlay:Rr}={wrapper:"ZWgWn53z",wrapperWithMargin:"oDKKNKyI",wrapperTexts:"qg2VjgDf",wrapperTextsTitle:"DVHbhLMQ",wrapperTextsSubtitle:"VtvV7rKZ",wrapperTextsButton:"K4MpEGbt",wrapperTextsWithoutImage:"wMhelmbN",overlay:"F5JUoVPy"},Dr=({title:e,secondaryTitle:r,subtitle:a,cta:s,image:n,deadCellPlacement:i,fontColor:o,isDefined:c,disableDeadCellButton:p})=>{if(!c)return(0,t.jsx)(l.Fragment,{});const d=s.label.length>0&&!p;return(0,t.jsxs)("a",Object.assign({className:(0,C.a)(Sr),href:d?void 0:s.url},{children:[(0,t.jsx)("div",{className:Rr}),0!==n.src.length&&(0,t.jsx)("img",Object.assign({},n)),(0,t.jsxs)("div",Object.assign({className:(0,C.a)(Nr,0===n.src.length&&Ar)},{children:[(0,t.jsxs)("div",Object.assign({className:Lr},{children:[(0,t.jsx)("h3",{dangerouslySetInnerHTML:{__html:e},style:{color:`${o}`}}),(0,t.jsx)("p",{dangerouslySetInnerHTML:{__html:r},style:{color:`${o}`}})]})),(0,t.jsx)("p",{dangerouslySetInnerHTML:{__html:a},style:{color:`${o}`},className:Pr}),d&&(0,t.jsx)("a",Object.assign({style:{background:`${s.ctaColor}`,color:`${s.ctaFontColor}`},className:Tr,href:s.url},{children:s.label}))]}))]}))};var Wr=a(7);const Ir={defaultPlacement:"default",lowerBanner:"lowerBanner",lowerBannerRightTopCorner:"lowerBannerRightTopCorner",lowerBannerSecondRowRight:"lowerBannerSecondRowRight",tile:"tile",fullTile:"fullTile"},{wrapper:Mr,wrapperDeadCellSecondRow:_r,wrapperDeadCellSecondRowRight:zr,wrapperDeadCellRightTopCorner:Xr,wrapperDisabled:Er,wrapperDisabledForTiles:Vr}={wrapper:"qORkBnyH",wrapperDisabled:"f7nRZln4",wrapperDisabledForTiles:"b1vqLJ1v",wrapperDeadCellSecondRow:"aImjAbyT",wrapperDeadCellRightTopCorner:"rXgzXCcs",wrapperDeadCellSecondRowRight:"ZNb4HimY",wrapperDeadCellDefaultDesktop:"LftRcVn2"},Br=({emptyGridText:e,currency:r,products:a,freeShippingData:n,activeFilters:i,activeSorting:o,initialActivePageNumber:c=1,collectionHandle:p,entriesPerPage:d,isMobile:u,flags:g})=>{if(0===a.length)return(0,t.jsx)(Xe,{emptyGridText:e});const{width:h}=(0,Wr.a)(),[m,b]=(0,s.useState)(0),{deadCellPlacement:j,PLPDiscountPercentagesEnabled:w}=g,[v,f]=(0,s.useState)({siblingCount:a.length<=d?0:a.length>d&&a.length<=2*d?.5:1,visibleEntriesPerPage:d,paginationProgress:"start",pagesCount:0,activePageNumber:c}),{paginationLabels:x,activePageNumber:O,pagesCount:F,itemsToDisplay:C,handleChangePageByOne:S,handlePageChange:y}=(0,Ee.a)(v,a,i,o),N=(0,s.useRef)(null);(0,s.useEffect)((()=>{N.current&&N&&b(N.current.clientHeight)}),[h]);const{isTile:L,correctedDeadCellPlacementClass:P}=(0,s.useMemo)((()=>{const{defaultPlacement:e,tile:r,fullTile:t,lowerBanner:l,lowerBannerRightTopCorner:s,lowerBannerSecondRowRight:n}=Ir,i=a.length<8,o=[e],c=[r,t].includes(j),p=o.includes(j)||i;return{isDeadCellHidden:p,isTile:j&&j===r||j&&j===t,isDeadCellHiddenForTile:c,correctedDeadCellPlacementClass:[j.includes(l)&&_r,j===s&&Xr,j===n&&zr,p&&Er,c&&Vr].filter(Boolean).join(" ")}}),[j,a.length]),T=n.isDefined;return(0,t.jsxs)(l.Fragment,{children:[(0,t.jsxs)("div",Object.assign({className:Mr},{children:[null!==j&&"default"!==j&&T&&(0,t.jsx)("div",Object.assign({className:P},{children:(0,t.jsx)(Dr,Object.assign({},n))})),C.map(((e,t)=>(0,l.createElement)(jr,Object.assign({},e,{key:e.id,currency:r,collectionHandle:p,isMobile:u,imgRef:N,activeColors:i.colors,productsAmount:a.length,PLPDiscountPercentagesEnabled:w})))),L&&(0,t.jsx)(Cr,Object.assign({isFullTile:j&&j===Ir.fullTile,amountOfProducts:a.length,height:m},n))]})),a.length>v.visibleEntriesPerPage&&(0,t.jsx)(_e.a,{items:x,handlePageChange:y})]})};var kr=a(96);const{wrapper:qr}={wrapper:"YZdSPhvc"},$r=({title:e})=>{const r=(e=>{const r=e.toLowerCase().trim();return 0===r.length?"":r.charAt(0).toUpperCase()+r.slice(1)})(e);return(0,t.jsx)("p",Object.assign({className:qr},{children:r}))};var Hr=a(10);const{wrapper:Gr,wrapperFiltersInner:Ur,overlay:Jr}={wrapper:"cjPr_oya",wrapperFiltersInner:"f2KXYwVj",overlay:"YSMKdZJi",wrapperOnTop:"paL944sX"};(0,c.createEntrypoint)("collection-feature",(e=>{var r=function(e,r){var a={};for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&r.indexOf(t)<0&&(a[t]=e[t]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var l=0;for(t=Object.getOwnPropertySymbols(e);l{const{ref:r,gridRef:a,activeFilters:t,activeFiltersAmount:l,buttonLabel:n,isFilterOpened:i,uniqueOptions:o,sizeFilterLength:c,colorsFilterLength:p,categoriesFilterLength:d,handleAddFilter:u,handleRemoveFilter:h,handleToggleFilter:m,handleFilterUniqueOptions:f,handleResetFilterOptions:F,handleApplyFilters:C,applyFilter:S,resetApplyFilter:y}=(({label:e,hideLabel:r,activeFilters:a,uniqueOptions:t,colorPalletsWithParentColorGroup:l,collectionProducts:n})=>{const[i,o]=(0,s.useState)(!1),[c,p]=(0,s.useState)(e),[d,u]=(0,s.useState)(!1),[g,h]=(0,s.useState)(a),[m,b]=(0,s.useState)(t),[f,O]=(0,s.useState)(g.sizes.length),[F,C]=(0,s.useState)(g.categories.length),[S,y]=(0,s.useState)(g.colors.length),[N,L]=(0,s.useState)(!1),P=(0,s.useRef)(null),T=(0,s.useRef)(null);(0,s.useEffect)((()=>{O(g.sizes.length)}),[g.sizes]),(0,s.useEffect)((()=>{C(g.categories.length)}),[g.categories]),(0,s.useEffect)((()=>{y(g.colors.length)}),[g.colors]),(0,x.a)(P,(()=>u(!1)));const A=(0,s.useCallback)((()=>{h({colors:[],sizes:[],categories:[]}),(()=>{const e=new URL(window.location.href),r=new URLSearchParams(e.search);r.delete("colors"),r.delete("sizes"),r.delete("prices"),r.delete("collections"),window.history.replaceState(null,"",e.pathname)})()}),[]),R=Object.values(g).reduce(((e,r)=>e+r.length),0);return(0,s.useEffect)((()=>{i&&w(a)}),[i]),(0,s.useEffect)((()=>{p(d?r:e)}),[d]),(0,s.useEffect)((()=>{if(i){const e=()=>{u(!1),A()};return window.addEventListener("popstate",e),()=>{window.removeEventListener("popstate",e)}}}),[i]),(0,s.useEffect)((()=>{0===R&&(L(!0),A())}),[R]),(0,s.useEffect)((()=>{o(!0)}),[]),{ref:P,gridRef:T,buttonLabel:c,activeFilters:g,activeFiltersAmount:R,isFilterOpened:d,uniqueOptions:m,sizeFilterLength:f,handleAddFilter:(e,r)=>{h((a=>Object.assign(Object.assign({},a),{[e]:[...g[e],r]})))},handleRemoveFilter:(e,r)=>{h((a=>Object.assign(Object.assign({},a),{[e]:g[e].filter((e=>e!==r))}))),((e,r)=>{const a=new URL(window.location.href),t=new URLSearchParams(a.search),l=j(e);if(0===l.length)return;const s=l.split("_").filter((e=>e!==r));if(0===s.length)t.delete(e);else{const r=s.join("_");t.set(e,r)}const n=t.toString(),i=n.length>0?`?${n}`:"",o=a.pathname+i;window.history.replaceState(null,"",o)})(e,r)},handleToggleFilter:()=>{u((e=>!e))},handleFilterUniqueOptions:e=>{if(!(e.length>0))return;const r=v(t,g,l,n);b(Object.assign({},r))},handleResetFilterOptions:A,handleApplyFilters:()=>{w(g),L(!0),u(!1)},applyFilter:N,resetApplyFilter:()=>{L(!1)},categoriesFilterLength:F,colorsFilterLength:S}})(Object.assign(Object.assign({},e.sharedCollectionData.filter),{activeFilters:e.activeFilters,uniqueOptions:e.uniqueOptions,colorPalletsWithParentColorGroup:e.colorPalletsWithParentColorGroup,collectionProducts:e.collectionProducts})),{isSortOpened:N,activeSortBy:L,sortRef:P,handleAddSorting:T,handleToggleSort:A}=(e=>{const[r,a]=(0,s.useState)(e),[t,l]=(0,s.useState)(!1),n=(0,s.useRef)(null);return(0,x.a)(n,(()=>l(!1))),{isSortOpened:t,activeSortBy:r,sortRef:n,handleAddSorting:e=>{a(e),(e=>{const r=new URL(window.location.href),a=new URLSearchParams(r.search);0===j("sortBy").length||a.delete("sortBy"),a.set("sortBy",e);const t=`?${a.toString()}`,l=r.pathname+t;window.history.replaceState(null,"",l)})(e)},handleToggleSort:()=>{l((e=>!e))}}})(e.activeSorting),[R,D]=(0,s.useState)(b(L,g(O(t,e.collectionProducts,e.colorPalletsWithParentColorGroup),t,e.colorPalletsWithParentColorGroup),e.productHandles));return(0,s.useEffect)((()=>{f(R)}),[c,d,p,R.length]),(0,s.useEffect)((()=>{if(S)return D(b(L,g(O(t,e.collectionProducts,e.colorPalletsWithParentColorGroup),t,e.colorPalletsWithParentColorGroup),e.productHandles)),void y();D(b(L,b(L,g(O(t,e.collectionProducts,e.colorPalletsWithParentColorGroup),t,e.colorPalletsWithParentColorGroup),e.productHandles),e.productHandles)),y()}),[L,S]),{ref:r,gridRef:a,activeFilters:t,activeFiltersAmount:l,buttonLabel:n,isFilterOpened:i,handleAddFilter:u,handleRemoveFilter:h,handleToggleFilter:m,handleResetFilterOptions:F,isSortOpened:N,activeSortBy:L,sortRef:P,handleAddSorting:T,handleToggleSort:A,filteredProducts:R,uniqueOptions:o,handleApplyFilters:C}})(r);(0,Hr.a)(c);const[T,A]=(0,s.useState)(!0);(0,s.useEffect)((()=>{c||A(!0)}),[c]);const R=e=>{return r=void 0,a=void 0,l=function*(){A(!1),yield new Promise((r=>setTimeout(r,e))),u()},new((t=void 0)||(t=Promise))((function(e,s){function n(e){try{o(l.next(e))}catch(e){s(e)}}function i(e){try{o(l.throw(e))}catch(e){s(e)}}function o(r){var a;r.done?e(r.value):(a=r.value,a instanceof t?a:new t((function(e){e(a)}))).then(n,i)}o((l=l.apply(r,a||[])).next())}));var r,a,t,l};return(0,t.jsxs)("section",Object.assign({className:Gr},{children:[(0,t.jsxs)("div",Object.assign({ref:a},{children:[c&&(0,t.jsx)("div",{className:Jr,onClick:()=>R(400)}),(0,t.jsx)($r,{title:r.collectionTitle}),(0,t.jsx)(Me,{shared:r.sharedCollectionData.filter,isFilterWindowOpened:c,uniqueOptions:N,activeFilters:n,gridRef:l,currentItemsAmount:y.length,handleAddFilter:p,handleRemoveFilter:d,handleResetFilterOptions:L,hide:R,animation:T,sortFilteringColors:!0,handleApplyFilters:P,activeFiltersAmount:i,collectionProducts:r.collectionProducts}),(0,t.jsxs)("div",Object.assign({className:(0,C.a)(Ur),ref:f},{children:[(0,t.jsx)(I,{filterLabel:o,isFilterWindowOpened:c,activeFiltersAmount:i,handleToggleFilter:u,handleToggleSort:S,sortLabel:r.sharedCollectionData.sort.label,isSortOpened:h,collectionProductAmount:y.length,productLabel:r.sharedCollectionData.productLabel}),(0,t.jsx)(kr.a,{sortOptions:r.sharedCollectionData.sort.newSortOptions,isSortOpened:h,activeSortBy:m,handleAddSorting:F,sortLabel:r.sharedCollectionData.sort.sortByLabel,handleSortClose:S,right:!0})]}))]})),(0,t.jsx)("div",Object.assign({ref:l},{children:(0,t.jsx)(Br,{isFilterWindowOpened:c,currency:r.currency,products:y,activeFilters:n,freeShippingData:Object.assign(Object.assign({},r.sharedCollectionData.freeShipping.freeShippingMockProps),{disableDeadCellButton:r.flags.disableDeadCellButton}),emptyGridText:r.sharedCollectionData.emptyGrid.emptyGridText,activeSorting:m,collectionHandle:r.handle,initialActivePageNumber:r.initialActivePageNumber,entriesPerPage:r.entriesPerPage,flags:r.flags,isMobile:r.isMobile})}))]}))}))},10:(e,r,a)=>{a.d(r,{a:()=>l});var t=a(2);const l=e=>{(0,t.useEffect)((()=>{"undefined"!=typeof window&&(window.document.body.style.overflow=e?"hidden":"visible")}),[e])}}},e=>{e.O(0,[1,2,3,4,5,9,10,12,14,19],(()=>(135,e(e.s=135)))),e.O()}]);