"use strict";(self.webpackChunkui=self.webpackChunkui||[]).push([[28],{57:(e,a,r)=>{r.d(a,{a:()=>t});const t={wrapper:"KLsioqQP",wrapperFull:"Vgmn_uqg",wrapperHalf:"R1mIbuJy",wrapperText:"u9ZD2TT1",wrapperTextNone:"jXgo8RQA",wrapperArrow:"iRAQLP7w",backgroundedWrapper:"IPaHHNzL",absoluteWrapper:"ACDAq1J6",stackWrapper:"dPU_yzaX"}},61:(e,a,r)=>{r.d(a,{a:()=>t});const t={wrapper:"MDVg4y8I",wrapperCollection:"wzmJ7O2R",wrapperLanding:"Yzwte_iZ",wrapperColMobile:"XKMEyDY7",wrapperMobile:"YOCQ1SrM",wrapperElement:"mjJn3Dy9"}},59:(e,a,r)=>{r.d(a,{a:()=>t});const t={price:"hKT1n9xD",priceComparison:"hLtSB86o",priceCrossed:"v8t1ESx4"}},38:(e,a,r)=>{r.d(a,{a:()=>t});const t={wrapper:"gRtEhNVl",wrapperTooltip:"doAujqlL",showTooltip:"ZpSUq43E",wrapperTooltipArrow:"NJmkUxIQ"}},100:(e,a,r)=>{var t=r(0),s=r(1),i=r(2),l=r(3),n=r(36),o=r(10);const p=()=>(0,t.jsxs)("svg",Object.assign({width:"18",height:"18",viewBox:"0 0 18 18",fill:"none",xmlns:"http://www.w3.org/2000/svg"},{children:[(0,t.jsx)("path",{d:"M6.5 6.5L6.45001 3.29133C6.45001 2.55103 6.75499 1.84104 7.29785 1.31756C7.84072 0.794086 8.577 0.5 9.34473 0.5C10.1125 0.5 10.8487 0.794086 11.3916 1.31756C11.9345 1.84104 12.2394 2.55103 12.2394 3.29133V6.5",stroke:"#041521","stroke-linecap":"round","stroke-linejoin":"round"}),(0,t.jsx)("path",{d:"M2.71677 4.75H15.2832C15.6028 4.74997 15.9186 4.81109 16.209 4.92919C16.4994 5.04728 16.7575 5.21955 16.9656 5.43419C17.1737 5.64882 17.3269 5.90075 17.4147 6.17269C17.5025 6.44463 17.5228 6.73016 17.4742 7.00969L16.0834 15.0049C15.9626 15.6997 15.5648 16.3333 14.9618 16.791C14.3589 17.2487 13.5907 17.5002 12.7963 17.5H5.20258C4.4084 17.5 3.64047 17.2484 3.03775 16.7907C2.43503 16.333 2.03733 15.6996 1.91661 15.0049L0.525755 7.00969C0.477178 6.73016 0.497482 6.44463 0.585274 6.17269C0.673066 5.90075 0.826269 5.64882 1.03438 5.43419C1.24249 5.21955 1.50059 5.04728 1.79098 4.92919C2.08137 4.81109 2.39718 4.74997 2.71677 4.75Z",stroke:"#041521","stroke-linecap":"round","stroke-linejoin":"round"}),(0,t.jsx)("path",{d:"M6.32234 11.3349H11.6743V12.0429H6.32234V11.3349ZM9.35834 9.05495V14.4069H8.63834V9.05495H9.35834Z",fill:"#041521"})]})),{wrapper:c}={wrapper:"Lj5D8z9M"},d=({handleAddToCart:e})=>(0,t.jsx)("button",Object.assign({className:c,onClick:a=>{a.preventDefault(),e()}},{children:(0,t.jsx)(p,{})}));var u=r(56),m=r(5);const{wrapper:g,wrapperText:v,wrapperTextHidden:j,wrapperArrow:w,backgroundedWrapper:b}={wrapper:"Zaxg7MOe",wrapperText:"J4i3Z6rv",wrapperTextHidden:"tHlJBSSt",wrapperArrow:"ZCpcIa1D",backgroundedWrapper:"MeDWxHzv"},x=({averageRating:e,isArrow:a=!1,isWithBackground:r=!1})=>(0,t.jsxs)("div",Object.assign({className:(0,l.a)(g,r&&b)},{children:[0!=e&&(0,t.jsx)(m.a.Y,{fill:"rgba(238,201,189,1)"}),(0,t.jsx)("p",Object.assign({className:(0,l.a)(v,0===e&&j)},{children:e})),a&&(0,t.jsx)("div",Object.assign({className:w},{children:(0,t.jsx)(m.a.g,{})}))]}));var h=r(58);const{wrapper:T,wrapperOuter:f,wrapperOuterBottom:B,wrapperTop:O,wrapperTopContainer:C,wrapperTopImage:N,wrapperTopImageSecond:S,wrapperTopImageBadge:F,wrapperTopTitle:y,wrapperTopPrice:I,wrapperTopPriceCrossed:P,wrapperTopPriceWithDiscount:W,wrapperTopDescription:k,wrapperTopImageInactive:A,wrapperTopImageActive:M,wrapperBottom:V,wrapperBottomVariants:L,wrapperBottomButton:D,wrapperBottomButtonDisabled:H,wrapperBottomButtonLabel:E,btnHidden:R,cardWrapper:_,cardWrapperTopDescription:U,cardWrapperTopImageBadge:Z,cardWrapperTopTitle:z,cardWrapperTopPrice:Y,cardWrapperBottom:q,cardWrapperBottomButton:X}={wrapper:"D3qjTc15",wrapperTop:"Vsiyhq5W",wrapperTopImage:"RlLxYwW4",wrapperTopImageInactive:"L7a9Xbej",wrapperTopImageActive:"pDNxmUM3",wrapperTopImageSecond:"HAcvUcti",wrapperTopImageBadge:"UCLMSF89",wrapperTopContainer:"nkDLmx22",wrapperTopTitle:"t1d8S5Nj",wrapperTopPrice:"rd3fUM9C",wrapperTopPriceCrossed:"Z1abTr2M",wrapperTopPriceWithDiscount:"zM6JAJY2",wrapperTopDescription:"IOsDooEH",wrapperBottomVariants:"w88vhXoO",wrapperBottomButton:"BZQmxqcY",wrapperBottomButtonLabel:"CD6rNcR1",wrapperBottomButtonSpinner:"S8fluZU0",wrapperBottomButtonHidden:"HUK_zWzl",wrapperBottomButtonDisabled:"cDIQiaeN",wrapperBottomButtonDisabledLabel:"xFs0y4B4",wrapperBottomButtonDisabledSpinner:"BjwhyJQ4",wrapperBottomButtonDisabledHidden:"eYofm8OV",btnHidden:"x9tOJBAC",cardWrapper:"Hnn6Hw4C",cardWrapperTopImageBadge:"Fkpo61PP",cardWrapperTopTitle:"D_bEzKPG",cardWrapperTopPrice:"nDBL1kbn",cardWrapperTopDescription:"V8FXM0sk",cardWrapperBottom:"j42_1FFK",cardWrapperBottomButton:"bscOdp_c"},J=({product:e,addToCart:a,order:r,flags:s,isMobile:p})=>{var c,m,g,v,j,w,b,P;const{isTagsHidden:W,plpAddToCart:J,plpRatings:$,plpSeeDiscountInCart:Q,sitewideCrossedPrice:K,plpCardVersion:G}=s,{title:ee,images:ae,variants:re,tagsBadge:te,promoCallout:se,handle:ie}=e,[le,ne]=(0,i.useState)(re.find((e=>e.availableForSale))||re[0]),[oe,pe]=(0,i.useState)(0),ce=re.map((e=>e.image));(0,i.useEffect)((()=>{ne(function(e){for(let a=0;a0)return e[0]}(re))}),[e]);const de=(0,i.useMemo)((()=>`/products/${ie}?variant=${le.id}`),[le]),ue=()=>{a((0,o.b)({product:e,variant:le,quantity:1}))};return(0,t.jsxs)("li",Object.assign({className:(0,l.a)(T,"v1"===G&&_),style:{order:`${r}`}},{children:[(0,t.jsxs)("div",Object.assign({className:f},{children:[(0,t.jsxs)("a",Object.assign({className:O,href:de},{children:[(0,t.jsxs)("div",Object.assign({className:N},{children:[ce.map(((e,a)=>{var r,s,i,n;return(0,t.jsx)("img",{className:(0,l.a)(A,oe===a&&M),src:null!==(s=null===(r=null==le?void 0:le.image)||void 0===r?void 0:r.src)&&void 0!==s?s:e.src,alt:null!==(n=null===(i=null==le?void 0:le.image)||void 0===i?void 0:i.alt)&&void 0!==n?n:null==e?void 0:e.alt})})),!p&&(0,t.jsx)("img",{className:S,src:(null===(c=ae[1])||void 0===c?void 0:c.src)?null===(m=ae[1])||void 0===m?void 0:m.src:null===(g=ae[0])||void 0===g?void 0:g.src,alt:(null===(v=ae[1])||void 0===v?void 0:v.alt)?null===(j=ae[1])||void 0===j?void 0:j.src:null===(w=ae[0])||void 0===w?void 0:w.src}),!W&&te[0]&&(0,t.jsx)("div",Object.assign({className:(0,l.a)(F,"v1"===G&&Z)},{children:te[0]})),"icon"===J&&(0,t.jsx)(d,{handleAddToCart:ue}),"starsOnPhoto"===$&&e.reviewsStats.averageRating>0&&(0,t.jsx)(u.a,{averageRating:e.reviewsStats.averageRating,isAbsolute:!0,isArrow:!0,totalReviews:e.reviewsStats.totalReviews})]})),(0,t.jsx)("div",Object.assign({className:C},{children:(0,t.jsx)("p",Object.assign({className:(0,l.a)(y,"v1"===G&&z)},{children:ee}))})),"textBelowTitle"===$&&e.reviewsStats.averageRating>0&&(0,t.jsx)(x,{averageRating:e.reviewsStats.averageRating,isArrow:!0})]})),(0,t.jsxs)("div",Object.assign({className:(0,l.a)(I,"v1"===G&&Y)},{children:[(null===(b=le.compareAtPrice)||void 0===b?void 0:b.amount)&&(0,t.jsx)(h.a,{amount:(0,l.b)(le.compareAtPrice.amount,le.compareAtPrice.currencyCode),isCompareAtPrice:!0}),(0,t.jsx)(h.a,{amount:(0,l.b)(le.price.amount,le.price.currencyCode),isPriceCrossed:K&&se.toLowerCase().includes("applied in cart")})]}))]})),(0,t.jsxs)("div",Object.assign({className:B},{children:[(null===(P=le.compareAtPrice)||void 0===P?void 0:P.amount)&&("enabled"===Q||"enabledWithPromoTag"===Q)&&(0,t.jsx)("p",Object.assign({className:(0,l.a)(k,"v1"===G&&U)},{children:"SEE PROMO IN CART"})),!se.toLowerCase().includes("exclude")&&("default"===Q||"enabledWithPromoTag"===Q)&&(0,t.jsx)("p",Object.assign({className:(0,l.a)(k,"v1"===G&&U)},{children:se})),se.toLowerCase().includes("exclude")&&(0,t.jsx)("p",Object.assign({className:(0,l.a)(k,"v1"===G&&U)},{children:se})),(0,t.jsxs)("div",Object.assign({className:(0,l.a)(V,"v1"===G&&q)},{children:[(0,t.jsx)("ul",Object.assign({className:L},{children:null==re?void 0:re.map(((e,a)=>(0,t.jsx)(n.a,{variant:e,currentVariantID:le.id,setCurrentVariant:()=>{pe(a),ne(e)}},e.id+a)))})),"textBelowVariants"===$&&(0,t.jsx)(x,{averageRating:e.reviewsStats.averageRating,isWithBackground:!0}),le.availableForSale?(0,t.jsx)("button",Object.assign({className:(0,l.a)(D,"v1"===G&&X,("hidden"===J||"icon"===J)&&R),onClick:ue},{children:(0,t.jsx)("span",Object.assign({className:(0,l.a)(E)},{children:"add to cart"}))})):(0,t.jsx)("button",Object.assign({className:(0,l.a)(H,"v1"===G&&X,("hidden"===J||"icon"===J)&&R)},{children:(0,t.jsx)("span",Object.assign({className:(0,l.a)(E)},{children:"SOLD OUT"}))})),"starsBelow"===$&&(0,t.jsx)(u.a,{averageRating:e.reviewsStats.averageRating,isWithBackground:!0,totalReviews:e.reviewsStats.totalReviews})]}))]}))]}))},{wrapper:$}={wrapper:"poljuBC_"},Q=({order:e,href:a,img:{src:r,alt:s}})=>(0,t.jsx)("li",Object.assign({className:$,style:{order:`${e}`}},{children:(0,t.jsx)("a",Object.assign({href:a},{children:(0,t.jsx)("img",{src:r,alt:s})}))})),{pagination:K,paginationButton:G,paginationInner:ee,paginationText:ae}={pagination:"EmxqYfP4",paginationText:"mRvtnUJA",paginationButton:"hjGJOq9p",paginationInner:"xA6Dv7jY"},re=({nextPage:e,totalItems:a,amountItems:r})=>r!==a?(0,t.jsxs)("section",Object.assign({className:K},{children:[(0,t.jsx)("div",Object.assign({className:ee},{children:(0,t.jsx)("a",Object.assign({onClick:e,className:G,style:`--progress: ${r/a*100}%`},{children:"Load More"}))})),(0,t.jsx)("div",{children:(0,t.jsxs)("p",Object.assign({className:ae},{children:["Showing ",(0,t.jsxs)("span",{children:[" 1 - ",r," of "]}),(0,t.jsx)("span",{children:a})," results"]}))})]})):(0,t.jsx)("div",{}),{wrapper:te}={wrapper:"nbtFaVli"},se=({onClick:e,label:a})=>(0,t.jsx)("li",Object.assign({className:te,onClick:a=>{a.preventDefault(),e()}},{children:(0,t.jsx)("a",Object.assign({href:"#",className:te},{children:null==a?void 0:a.label}))})),{wrapper:ie,wrapperActive:le,wrapperTypes:ne}={wrapper:"UMLbPnp_",wrapperActive:"dps5TpwJ",wrapperTitle:"Lri6ZJWS",wrapperTypes:"DNG2FDfj"},oe=({sortLabels:e,isSortPopupActive:a,onChangeSort:r,setIsSortOpen:s})=>(0,t.jsx)("div",Object.assign({className:(0,l.a)(ie,a&&le)},{children:(0,t.jsx)("ul",Object.assign({className:ne},{children:e.map(((a,i)=>{const l=e.find((e=>e.fieldToSortBy===a.fieldToSortBy&&e.order===a.order));return(0,t.jsx)(se,{label:l,onClick:()=>(e=>{r(e),s(!1)})(a)},i)}))}))}));var pe=r(7);function ce({children:e}){const[a,r]=(0,i.useState)(!1),t=(0,i.useRef)(null);return(0,i.useEffect)((()=>(t.current=document.getElementById("portal"),r(!0),()=>r(!1))),[]),a&&t.current?(0,pe.createPortal)(e,t.current):null}const{wrapper:de,wrapperCheckbox:ue,wrapperLabel:me,wrapperFill:ge}={wrapper:"idozx6zj",wrapperCheckbox:"eOtFRPu9",wrapperFill:"butbUeAQ",wrapperLabel:"Iq7Emd1S"},ve=({isActive:e,count:a,label:r,onChangeFilter:s})=>(0,t.jsxs)("li",Object.assign({className:de,onClick:s},{children:[(0,t.jsx)("div",Object.assign({className:ue},{children:e&&(0,t.jsx)("div",{className:ge})})),(0,t.jsxs)("label",Object.assign({className:me},{children:[r," (",a,")"]}))]})),{wrapper:je,wrapperInputs:we,wrapperInputsInput:be,wrapperControls:xe,wrapperControlsControl:he,wrapperControlsRail:Te,wrapperControlsRailInner:fe}={wrapper:"H4gSh84m",wrapperInputs:"gfS1wXz_",wrapperInputsInput:"ZIidkZeU",wrapperControls:"h0ULt0LB",wrapperControlsControl:"VkyA_CNW",wrapperControlsRail:"dEW10cjx",wrapperControlsRailInner:"U5HPjRfr"},Be=({min:e,max:a,maxValue:r,value:s,setMinValue:l,setMaxValue:n,minValue:o,step:p,handleMinChange:c,handleMaxChange:d,onMouseUp:u,onTouchEnd:m,areMobileFilters:g})=>{const v=(o-e)/(a-e)*100,j=(r-e)/(a-e)*100;return(0,i.useEffect)((()=>{s&&(l(s.min),n(s.max))}),[s.min,s.max]),(0,t.jsxs)("div",Object.assign({className:je,style:g?{paddingTop:"0px"}:{}},{children:[(0,t.jsx)("input",{className:be,type:"range",value:o,min:e,max:a,step:p,onChange:c,onMouseUp:u,onTouchEnd:m}),(0,t.jsx)("input",{className:be,type:"range",value:r,min:e,max:a,step:p,onChange:d,onMouseUp:u,onTouchEnd:m}),(0,t.jsxs)("div",Object.assign({className:xe},{children:[(0,t.jsx)("div",{className:he,style:{left:`${v}%`}}),(0,t.jsx)("div",Object.assign({className:Te},{children:(0,t.jsx)("div",{className:fe,style:{left:`${v}%`,right:100-j+"%"}})})),(0,t.jsx)("div",{className:he,style:{left:`${j}%`}})]}))]}))},{inputs:Oe,inputsInput:Ce,inputsSpaceBetween:Ne}={inputs:"tzfbIG4b",inputsInput:"SYYwxA6q",inputsSpaceBetween:"k1BfojPt"},Se=({onChangeFilter:e,currentMin:a,currentMax:r,minVal:s,maxVal:l,step:n,areMobileFilters:o})=>{const p=s,c=Math.max(l),{handleMaxChange:d,handleMinChange:u,minValue:m,maxValue:g,value:v,setMinValue:j,setMaxValue:w}=(({min:e,max:a,step:r,currentMin:t,currentMax:s})=>{const[l,n]=(0,i.useState)({min:e,max:a}),[o,p]=(0,i.useState)(l?l.min:e),[c,d]=(0,i.useState)(l?l.max:a);return(0,pe.useEffect)((()=>{t!==o&&p(t),s!==c&&d(s)}),[t,s]),{handleMaxChange:e=>{const a=Math.max(+e.target.value,o+r);l||d(a),n({min:o,max:a})},handleMinChange:e=>{const a=Math.min(+e.target.value,c-r);l||p(a),n({min:a,max:c})},minValue:o,maxValue:c,value:l,setMinValue:p,setMaxValue:d}})({currentMin:a,currentMax:r,step:n,min:p,max:c});return(0,t.jsxs)("div",{children:[(0,t.jsx)(Be,{min:p,max:c,step:n,value:v,setMinValue:j,setMaxValue:w,maxValue:g,minValue:m,handleMinChange:u,handleMaxChange:d,onMouseUp:()=>{e(Object.assign(Object.assign({title:"price"},v),{name:"price"}))},onTouchEnd:()=>{e(Object.assign(Object.assign({title:"price"},v),{name:"price"}))},areMobileFilters:!0}),(0,t.jsxs)("div",Object.assign({className:Oe,style:o?{marginTop:"3px"}:{}},{children:[(0,t.jsxs)("div",Object.assign({className:Ce},{children:[(0,t.jsx)("p",{children:"$"}),(0,t.jsx)("input",{type:"number",min:p,max:c,value:m,onChange:a=>{u(a),e(Object.assign(Object.assign({title:"price"},v),{name:"price"}))}})]})),(0,t.jsx)("div",Object.assign({className:Ne},{children:"-"})),(0,t.jsxs)("div",Object.assign({className:Ce},{children:[(0,t.jsx)("p",{children:"$"}),(0,t.jsx)("input",{type:"number",min:p,max:c,value:g,onChange:a=>{d(a),e(Object.assign(Object.assign({title:"price"},v),{name:"price"}))}})]}))]}))]})},{wrapper:Fe,wrapperTitle:ye,wrapperTitleActive:Ie,wrapperValues:Pe,wrapperValuesActive:We,wrapperValuesActivePriceBar:ke}={wrapper:"F9Cgo50T",wrapperTitle:"o8LCtDfF",wrapperTitleActive:"S5ycQSWf",wrapperValues:"UUxL7dqv",wrapperValuesActive:"Z0UWGv4X",wrapperValuesActivePriceBar:"jv_z6dLX"},Ae=({filterValue:e,setFilter:a,removeFilter:r})=>{var s,n,o,p,c,d,u,g;const[v,j]=(0,i.useState)(!1);return(null==e?void 0:e.buckets.length)>0||"slider"===(null==e?void 0:e.type)?(0,t.jsxs)("li",Object.assign({className:Fe},{children:[(0,t.jsxs)("div",Object.assign({className:ye,onClick:()=>{j((e=>!e))}},{children:[(0,t.jsx)("p",{children:e.title}),(0,t.jsx)("p",Object.assign({className:v?"":Ie},{children:(0,t.jsx)(m.a.d,{})}))]})),"slider"!=e.type?(0,t.jsx)("ul",Object.assign({className:(0,l.a)(Pe,v&&We)},{children:e.buckets.filter((e=>e.count>0)).map((({selected:s,count:i,value:l})=>(0,t.jsx)(ve,{isActive:!!s,count:i,label:l,onChangeFilter:()=>s?r({title:e.attribute,name:l}):a({title:e.attribute,name:l})})))})):(0,t.jsx)("ul",Object.assign({className:(0,l.a)(Pe,v&&We,v&&ke)},{children:(0,t.jsx)(Se,{currentMin:Number(null!==(n=null===(s=e.buckets[0])||void 0===s?void 0:s.left)&&void 0!==n?n:0),currentMax:Number(null!==(p=null===(o=e.buckets[0])||void 0===o?void 0:o.right)&&void 0!==p?p:1),maxVal:Number(null!==(d=null===(c=e.buckets[0])||void 0===c?void 0:c.to)&&void 0!==d?d:1),minVal:Number(null!==(g=null===(u=e.buckets[0])||void 0===u?void 0:u.from)&&void 0!==g?g:0),step:1,onChangeFilter:a,areMobileFilters:!0})}))]})):null},{wrapper:Me,wrapperActive:Ve,wrapperHeader:Le,wrapperHeaderTitle:De,wrapperHeaderButton:He,wrapperButton:Ee}={wrapper:"U_0PNZPz",wrapperActive:"Nu5sR0BV",wrapperHeader:"V_Hj4X_o",wrapperHeaderTitle:"kMynjxm2",wrapperHeaderButton:"a18YBXSz",wrapperButton:"NtRcFAhl"},Re=({filterFacets:e,filterTitle:a,isFiltersModalActive:r,toggleFiltersModal:s,setFilter:i,removeFilter:n})=>(0,t.jsx)(ce,{children:(0,t.jsxs)("div",Object.assign({className:(0,l.a)(Me,r&&Ve)},{children:[(0,t.jsxs)("div",Object.assign({className:Le},{children:[(0,t.jsx)("p",Object.assign({className:De},{children:a})),(0,t.jsx)("button",Object.assign({onClick:()=>s(!1),className:He},{children:(0,t.jsx)(m.a.C,{})}))]})),(0,t.jsx)("ul",{children:e.map((e=>(0,t.jsx)(Ae,{setFilter:i,removeFilter:n,filterValue:e},e.attribute)))}),(0,t.jsx)("button",Object.assign({className:Ee,onClick:()=>s(!1)},{children:"APPLY FILTERS"}))]}))});var _e=r(60);const{wrapper:Ue,wrapperHeader:Ze,wrapperHeaderTitle:ze,wrapperHeaderTitleActive:Ye}={wrapperHeader:"NlySLNS1",wrapperHeaderTitle:"W62kag6e",wrapperHeaderTitleActive:"yq5VhoQv",wrapper:"DREc0aky"},qe=({filterFacets:e,setFilter:a,removeFilter:r,sortBy:s,sortLabels:n,setSort:o,flags:p})=>{const[c,d]=(0,i.useState)(!1),[u,g]=(0,i.useState)(!1),{setIsOpen:v}=(0,_e.a)(),j=n.find((e=>e.fieldToSortBy===s.fieldToSortBy&&e.order===s.order));return(0,i.useEffect)((()=>{c?((()=>{const e=(()=>{const e=document.documentElement.clientWidth;return window.innerWidth-e})();document.documentElement.style.overflow="hidden",document.documentElement.style.marginRight=`${e}px`})(),v(!0)):(setTimeout((()=>{document.documentElement.style.overflow="",document.documentElement.style.marginRight=""}),600),v(!1))}),[c]),(0,i.useEffect)((()=>{if(p.emilButtonBehindOverlays){const e=document.querySelector("#ltkPopupButtonTriggerContainer");e&&c&&(e.style.visibility="hidden"),e&&!c&&(e.style.visibility="visible")}}),[c]),(0,t.jsxs)("div",Object.assign({className:Ue},{children:[(0,t.jsxs)("div",Object.assign({className:Ze},{children:[(0,t.jsxs)("div",Object.assign({className:ze,onClick:()=>d(!0)},{children:["Filter ",(0,t.jsx)(m.a.d,{})]})),(0,t.jsx)("div",{style:{maxWidth:"83%",flexWrap:"wrap"}}),(0,t.jsxs)("div",Object.assign({className:(0,l.a)(ze,u&&Ye),onClick:()=>g((e=>!e))},{children:["SORT BY: ",null==j?void 0:j.label," ",(0,t.jsx)(m.a.d,{})]}))]})),(0,t.jsx)(oe,{sortLabels:n,isSortPopupActive:u,onChangeSort:o,setIsSortOpen:g}),(0,t.jsx)(Re,{filterTitle:"Filters",filterFacets:e,isFiltersModalActive:c,toggleFiltersModal:d,setFilter:a,removeFilter:r})]}))};var Xe=r(13);const{wrapper:Je,wrapperTitle:$e,wrapperTitleActive:Qe,wrapperValues:Ke,wrapperValuesTitle:Ge,wrapperValuesTitleActive:ea,wrapperValuesItems:aa,wrapperValuesItemsActive:ra,wrapperValuesButton:ta,noTitle:sa}={wrapper:"Em1gRYzB",wrapperTitle:"MJuhjhCD",wrapperTitleActive:"ydJNnPp2",wrapperValues:"drfkR8hV",wrapperValuesTitle:"Pz2Mbs3h",wrapperValuesTitleActive:"D5vCIkAP",wrapperValuesItems:"aIiSDHAz",wrapperValuesItemsActive:"p0gJbRQc",wrapperValuesButton:"luBk8eZL",noTitle:"rOdXEv7v"},ia=({filterValue:e,setFilter:a,removeFilter:r,flags:n})=>{var o,p,c,d,u,g,v,j,w;const b=(0,i.useRef)(null),[x,h]=(0,i.useState)(!0),T=(0,i.useCallback)((()=>{h((e=>!e))}),[]),[f,B]=(0,i.useState)(!1);return(0,Xe.a)(b,(()=>B(!1))),(0,t.jsxs)("li",Object.assign({className:Je,ref:b},{children:[(0,t.jsxs)("div",Object.assign({className:(0,l.a)($e,f&&Qe),onClick:()=>{B((e=>!e))}},{children:[e.title," ",(0,t.jsx)(m.a.d,{})]})),f&&(0,t.jsxs)("div",Object.assign({className:Ke},{children:[n.plpFiltersDropdownTitle&&(0,t.jsxs)("div",Object.assign({className:(0,l.a)(Ge,x&&ea,"values title"),onClick:()=>T()},{children:[e.title,(0,t.jsx)(m.a.d,{})]})),(0,t.jsx)("ul",Object.assign({className:(0,l.a)(aa,x&&ra,"values items",!n.plpFiltersDropdownTitle&&sa)},{children:"slider"!=e.type?(0,t.jsx)(s.Fragment,{children:null===(o=null==e?void 0:e.buckets)||void 0===o?void 0:o.filter((({count:e})=>e>0)).map((({count:s,value:i,selected:l})=>(0,t.jsx)(ve,{isActive:!!l,count:s,label:i,onChangeFilter:()=>l?r({title:e.attribute,name:i}):a({title:e.attribute,name:i})})))}):"slider"===e.type&&(0,t.jsx)(Se,{currentMin:Number(null!==(c=null===(p=e.buckets[0])||void 0===p?void 0:p.left)&&void 0!==c?c:0),currentMax:Number(null!==(u=null===(d=e.buckets[0])||void 0===d?void 0:d.right)&&void 0!==u?u:1),maxVal:Number(null!==(v=null===(g=e.buckets[0])||void 0===g?void 0:g.to)&&void 0!==v?v:1),minVal:Number(null!==(w=null===(j=e.buckets[0])||void 0===j?void 0:j.from)&&void 0!==w?w:0),step:1,onChangeFilter:a})})),(0,t.jsx)("button",Object.assign({className:ta,onClick:()=>B(!1)},{children:"APPLY FILTERS"}))]}))]}))},{wrapper:la,wrapperFilter:na,wrapperFilterIcon:oa,wrapperClear:pa}={wrapper:"atsWBhE6",wrapperFilter:"KL4AtBPb",wrapperFilterIcon:"zjCfBiLF",wrapperClear:"dxEfVdKf"},ca=({className:e,filterFacets:a,removeFilter:r,clearAllFilters:i})=>{if(!a.length)return null;const n=a.some((e=>e.buckets.filter((({selected:e})=>!!e)).length));return(0,t.jsxs)("div",Object.assign({className:(0,l.a)(la,e)},{children:[a.map((e=>(0,t.jsx)(s.Fragment,{children:e.buckets.filter((({selected:e})=>!!e)).map((({value:a,left:s,right:i})=>{const l="price"===e.attribute?`$${null==s?void 0:s.replace("00","")} - $${null==i?void 0:i.replace("00","")}`:a;return(0,t.jsxs)("a",Object.assign({className:na,onClick:()=>r({title:e.attribute,name:a})},{children:[`${e.title}: ${l}`,(0,t.jsx)("div",Object.assign({className:oa},{children:(0,t.jsx)(m.a.t,{})}))]}))}))}))),n&&(0,t.jsx)("a",Object.assign({className:pa,onClick:i},{children:"Clear All"}))]}))};var da=r(19);const{wrapper:ua,wrapperSelectedFilter:ma,wrapperFilters:ga,wrapperSortTitle:va,wrapperSortTitleActive:ja,icon:wa,iconActive:ba,iconFewer:xa}={wrapper:"TdKlIjrj",wrapperFilters:"M72uQfK0",wrapperSelectedFilter:"Qhn9DXt_",wrapperSortTitle:"acfed0X7",wrapperSortTitleActive:"kVeLrMeo",selectedFilt:"Y_LI3ctA",icon:"XvLwmaWb",iconActive:"uhilEtXM",iconFewer:"ZQWuiBD0"},ha=({filterFacets:e,sortLabels:a,setFilter:r,setSort:s,removeFilter:n,clearAllFilters:o,sortBy:p,flags:c})=>{const d=(0,i.useRef)(null);(0,Xe.a)(d,(()=>g(!1)));const[u,g]=(0,i.useState)(!1),[v,j]=(0,i.useState)(8),[w,b]=(0,i.useState)(1),{width:x}=(0,da.a)(),h=a.find((e=>e.fieldToSortBy===p.fieldToSortBy&&e.order===p.order)),T=(0,i.useMemo)((()=>{if("undefined"!=typeof window)return x<900?(j(Math.min(4,e.length)),!0):x>900&&x<=1e3?(j(Math.min(5,e.length)),!0):x>1e3&&x<=1200?(j(Math.min(6,e.length)),!0):x>1200&&x<=1300?(j(Math.min(7,e.length)),!0):x>1300&&(j(Math.min(8,e.length)),!1)}),[x]),f=e;return(0,t.jsxs)("section",{children:[(0,t.jsxs)("div",Object.assign({className:ua},{children:[(0,t.jsxs)("ul",Object.assign({className:ga},{children:[f.length>0&&f.map(((e,a)=>(0,t.jsx)(ia,{filterValue:e,setFilter:r,removeFilter:n,flags:c},`${e.title}-${a}}`))),T&&(v{j(e.length),b(v)}},{children:["More Filters",(0,t.jsx)(m.a.d,{})]})):(0,t.jsxs)("ul",Object.assign({className:(0,l.a)(wa,xa),onClick:()=>j(w)},{children:["Fewer Filters",(0,t.jsx)(m.a.d,{})]})))]})),(0,t.jsxs)("div",Object.assign({ref:d},{children:[(0,t.jsxs)("div",Object.assign({className:(0,l.a)(va,u&&ja),onClick:()=>g((e=>!e))},{children:["SORT BY: ",null==h?void 0:h.label," ",(0,t.jsx)(m.a.d,{})]})),(0,t.jsx)(oe,{sortLabels:a,isSortPopupActive:u,onChangeSort:s,setIsSortOpen:g})]}))]})),(0,t.jsx)(ca,{className:ma,filterFacets:e,removeFilter:n,clearAllFilters:o})]})},{wrapper:Ta,wrapperContent:fa}={wrapper:"Z04NdIct",wrapperContent:"UyMBIRlx"},Ba=({setFilter:e,removeFilter:a,clearAllFilters:r,setSort:s,filterFacets:i,sortBy:l,flags:n})=>{const o=[{label:"Best Seller",fieldToSortBy:"sales_amount",order:"desc"},{label:"Newest",fieldToSortBy:"created",order:"desc"},{label:"Name: A - Z",fieldToSortBy:"title",order:"asc"},{label:"Name: Z - A",fieldToSortBy:"title",order:"desc"},{label:"Price: Low to High",fieldToSortBy:"price",order:"asc"},{label:"Price: High to Low",fieldToSortBy:"price",order:"desc"}];return(0,t.jsx)("div",Object.assign({className:Ta},{children:(0,t.jsxs)("div",Object.assign({className:fa},{children:[(0,t.jsx)(qe,{sortLabels:o,filterFacets:i,setFilter:e,removeFilter:a,sortBy:l,setSort:s,flags:n}),(0,t.jsx)(ha,{sortLabels:o,filterFacets:i,setFilter:e,removeFilter:a,clearAllFilters:r,sortBy:l,setSort:s,flags:n})]}))}))};var Oa=r(24);const{date:Ca,dateNumber:Na}={date:"s7JF7O58",dateNumber:"r7LwklTP"},Sa=({futureDate:e})=>{const{days:a,hours:r,minutes:s,seconds:i}=(0,Oa.a)(e);return(0,t.jsxs)("div",Object.assign({className:(0,l.a)(Ca)},{children:[(0,t.jsxs)("p",Object.assign({className:(0,l.a)(Na)},{children:[String(a).padStart(2,"0"),"d"]})),(0,t.jsx)("p",Object.assign({className:Na},{children:":"})),(0,t.jsxs)("p",Object.assign({className:(0,l.a)(Na)},{children:[" ",String(r).padStart(2,"0"),"h"]})),(0,t.jsx)("p",Object.assign({className:Na},{children:":"})),(0,t.jsxs)("p",Object.assign({className:(0,l.a)(Na)},{children:[" ",String(s).padStart(2,"0"),"m"]})),(0,t.jsx)("p",Object.assign({className:Na},{children:":"})),(0,t.jsxs)("p",Object.assign({className:(0,l.a)(Na)},{children:[" ",String(i).padStart(2,"0"),"s"]}))]}))},{wrapper:Fa,wrapperTop:ya,wrapperTopImage:Ia,wrapperTopImageBadge:Pa,wrapperTopTitle:Wa,wrapperTopPrice:ka,wrapperTopLeft:Aa,wrapperTopTime:Ma,wrapperBottom:Va,wrapperBottomButton:La,wrapperBottomButtonDisabled:Da,wrapperBottomButtonLabel:Ha,btnHidden:Ea,cardWrapper:Ra,cardWrapperTopImageBadge:_a,cardWrapperTopTitle:Ua,cardWrapperTopPrice:Za,cardWrapperTopLeft:za,cardWrapperTopTime:Ya,cardWrapperBottom:qa,cardWrapperBottomButton:Xa}={wrapper:"u0rbZg4I",wrapperTop:"NbbwZoS2",wrapperTopImage:"T2_bJdpJ",wrapperTopImageBadge:"ObBhD_xx",wrapperTopTitle:"KREh0gx6",wrapperTopPrice:"qeSGBv8q",wrapperTopLeft:"mWeLWOTn",wrapperTopTime:"TQVIh90B",wrapperBottom:"dqaYU8ry",wrapperBottomButton:"VzvGI0FH",wrapperBottomButtonLabel:"i3tU6GMx",wrapperBottomButtonSpinner:"UkdXiKwE",wrapperBottomButtonHidden:"F5IafN3t",wrapperBottomButtonDisabled:"qEwOkhGI",wrapperBottomButtonDisabledLabel:"uWYhZO7a",wrapperBottomButtonDisabledSpinner:"BIzkpnjD",wrapperBottomButtonDisabledHidden:"OIkzdfXb",btnHidden:"SXCpKq6v",cardWrapper:"X62d5I9g",cardWrapperTopImageBadge:"lQSACXLr",cardWrapperTopTitle:"vjIEZ3JI",cardWrapperTopPrice:"iNlQA5ua",cardWrapperTopLeft:"wFiEWMco",cardWrapperTopTime:"guZuRI5j",cardWrapperBottom:"bvnqWETK",cardWrapperBottomButton:"tXn8RYTC"},Ja=({stackProduct:e,addToCart:a,order:r,flags:s})=>{const{isTagsHidden:i,plpAddToCart:n,plpCardVersion:o}=s,{title:p,handle:c,image:u,mainImage:m,promoCallout:g,quantity:v,timeLeft:j,productVariants:w,sotwUniqueId:b}=e,x=null!=m?m:u,h=!!j&&new Date(j).getTime()-(new Date).getTime()>0,T={items:w.filter((e=>e&&!!(null==e?void 0:e.title)&&!!(null==e?void 0:e.price))).map((e=>({id:e.variantId,variant_id:Number(e.variantId),quantity:1,price:100*Number(e.price),final_price:100*Number(e.price),image:e.image.src,variant_title:e.variantTitle,product_title:e.title,sku:e.sku,url:e.handle,vendor:e.vendor,properties:{_compareAtPrice:e.compareAtPrice,_youMayAlsoLikeHandles:[],_sotw:h?b:null}})))},f=()=>{a(T)};return(0,t.jsxs)("li",Object.assign({className:(0,l.a)(Fa,"v1"===o&&Ra),style:{order:`${r}`},id:"stack"},{children:[(0,t.jsxs)("a",Object.assign({className:ya,href:c},{children:[(0,t.jsxs)("div",Object.assign({className:Ia},{children:[(0,t.jsx)("img",{src:x.src,alt:null==x?void 0:x.alt}),!i&&!!g&&(0,t.jsx)("div",Object.assign({className:(0,l.a)(Pa,"v1"===o&&_a)},{children:g})),"icon"===n&&(0,t.jsx)(d,{handleAddToCart:f})]})),(0,t.jsx)("p",Object.assign({className:(0,l.a)(Wa,"v1"===o&&Ua)},{children:p}))]})),(0,t.jsx)("div",Object.assign({className:(0,l.a)(ka,"v1"===o&&Za)},{children:(0,t.jsx)("span",{children:"See price in cart!"})})),v<50&&(0,t.jsx)("div",Object.assign({className:(0,l.a)(Aa,"v1"===o&&za)},{children:(0,t.jsx)("span",{children:"Only a few left!"})})),(0,t.jsx)("div",Object.assign({className:(0,l.a)(Ma,"v1"===o&&Ya)},{children:h&&(0,t.jsx)(Sa,{futureDate:j})})),(0,t.jsx)("div",Object.assign({className:(0,l.a)(Va,"v1"===o&&qa)},{children:v>0?(0,t.jsx)("button",Object.assign({className:(0,l.a)(La,"v1"===o&&Xa,("hidden"===n||"icon"===n)&&Ea),onClick:f},{children:(0,t.jsx)("span",Object.assign({className:(0,l.a)(Ha)},{children:"add to cart"}))})):(0,t.jsx)("button",Object.assign({className:(0,l.a)(Da,"v1"===o&&Xa,("hidden"===n||"icon"===n)&&Ea)},{children:(0,t.jsx)("span",Object.assign({className:(0,l.a)(Ha)},{children:"SOLD OUT"}))}))}))]}))},{wrapper:$a,wrapperTop:Qa,wrapperTopImage:Ka,wrapperTopImageSecond:Ga,wrapperTopImageBadge:er,wrapperTopTitle:ar,wrapperTopPrice:rr,wrapperTopLeft:tr,wrapperTopTime:sr,wrapperTopDescription:ir,wrapperBottom:lr,wrapperBottomButton:nr,wrapperBottomButtonDisabled:or,wrapperBottomButtonLabel:pr,btnHidden:cr,cardWrapper:dr,cardWrapperTopImageBadge:ur,cardWrapperTopTitle:mr,cardWrapperTopPrice:gr,cardWrapperTopLeft:vr,cardWrapperTopTime:jr,cardWrapperTopDescription:wr,cardWrapperBottom:br,cardWrapperBottomButton:xr}={wrapper:"pVEHnqGc",wrapperTop:"tGNMNXVF",wrapperTopImage:"Bg08QgrD",wrapperTopImageBadge:"rQ0_c4Ls",wrapperTopImageSecond:"WC8iqusH",wrapperTopTitle:"aj7kMfpq",wrapperTopPrice:"lPOPUmRx",wrapperTopLeft:"UdWG8F8_",wrapperTopTime:"uZLjwYke",wrapperTopDescription:"UJzG8xN1",wrapperBottom:"mgkWyFTc",wrapperBottomButton:"r8KEmhEd",wrapperBottomButtonLabel:"Y6JpvxQ6",wrapperBottomButtonSpinner:"ACyWLavi",wrapperBottomButtonHidden:"rAgnyR3n",wrapperBottomButtonDisabled:"p2buvBe0",wrapperBottomButtonDisabledLabel:"ivY4wBgA",wrapperBottomButtonDisabledSpinner:"UBDH9J9J",wrapperBottomButtonDisabledHidden:"Y4OAl50C",btnHidden:"EUcPIiYJ",cardWrapper:"gkd06vOq",cardWrapperTopImageBadge:"udbmNM3U",cardWrapperTopTitle:"MAyY1DAg",cardWrapperTopPrice:"XXFnSVor",cardWrapperTopLeft:"gpHWYd85",cardWrapperTopTime:"vfE9smE5",cardWrapperTopDescription:"fLcgJ4ny",cardWrapperBottom:"k1BeO1eW",cardWrapperBottomButton:"rCT7PGz2"},hr=({familyProduct:e,order:a,flags:r,isMobile:s})=>{var i,n;const{isTagsHidden:o,plpAddToCart:p,plpCardVersion:c}=r,{title:d,url:u,image:m,mainImage:g,promoCallout:v,buttonLabel:j,lowestPriceVariant:w,priceLabel:b,badge:x}=e;return(0,t.jsxs)("li",Object.assign({className:(0,l.a)($a,"v1"===c&&dr),style:{order:`${a}`}},{children:[(0,t.jsxs)("a",Object.assign({className:Qa,href:u},{children:[(0,t.jsxs)("div",Object.assign({className:Ka},{children:[(0,t.jsx)("img",{src:g.src,alt:null==g?void 0:g.alt}),!s&&(0,t.jsx)("img",{className:Ga,src:null!==(i=m.src)&&void 0!==i?i:null==g?void 0:g.src,alt:null!==(n=m.alt)&&void 0!==n?n:null==g?void 0:g.alt}),!o&&(0,t.jsx)("div",Object.assign({className:(0,l.a)(er,"v1"===c&&ur)},{children:x}))]})),(0,t.jsx)("p",Object.assign({className:(0,l.a)(ar,"v1"===c&&mr)},{children:d}))]})),(0,t.jsx)("div",Object.assign({className:(0,l.a)(rr,"v1"===c&&gr)},{children:w&&(0,t.jsx)("span",{children:`${b}\n ${(0,l.b)(w.amount,w.currency_code)}`})})),(0,t.jsx)("div",Object.assign({className:(0,l.a)(tr,"v1"===c&&vr)},{children:v&&!v.toLowerCase().includes("exclude")&&("default"===r.plpSeeDiscountInCart||"enabledWithPromoTag"===r.plpSeeDiscountInCart)&&(0,t.jsx)("p",Object.assign({className:(0,l.a)(ir,"v1"===c&&wr)},{children:v}))})),(0,t.jsx)("div",{className:(0,l.a)(sr,"v1"===c&&jr)}),(0,t.jsx)("div",Object.assign({className:(0,l.a)(lr,"v1"===c&&br)},{children:(0,t.jsx)("a",Object.assign({href:u,className:(0,l.a)(nr,"v1"===c&&xr,("hidden"===p||"icon"===p)&&cr)},{children:(0,t.jsx)("span",Object.assign({className:(0,l.a)(pr)},{children:j}))}))}))]}))};var Tr=r(39);const{wrapper:fr,wrapperProducts:Br}={wrapper:"P2LZ5MY8",wrapperProducts:"UC7WZ4bM"},Or=({useSharedState:e,isBtnHidden:a,isTagsHidden:r,deadCells:l,firstLoadProducts:n,flags:o,redirectURL:p,isMobile:c,stackOfTheWeekCards:d,productFamiliesData:u,filterFacets:m})=>{const g=e(),{breadcrumbs:v,addToCart:j,initCollectionState:w,nextPage:b,totalProducts:x,filterWidget:{filterFacets:h,setFilter:T,removeFilter:f,clearAllFilters:B},sortWidget:{currentSort:O,sortProducts:C},products:N,isCollectionStateInitialized:S}=g((e=>({breadcrumbs:e.context.breadcrumbs,addToCart:e.addToCart,initCollectionState:e.initCollectionState,products:e.currentPageProductsToDisplay,nextPage:e.nextPage,filterWidget:e.filterWidget,sortWidget:e.sortWidget,totalProducts:e.totalProducts,isCollectionStateInitialized:e.isCollectionStateInitialized})));(0,i.useEffect)((()=>{p&&"undefined"!=typeof window&&(window.location.href=p)}),[p]),(0,i.useEffect)((()=>{w()}),[]);const F=S?N:n,y=((e,a,r,t)=>e.reduce(((s,i,l)=>{var n,o,p,c,d,u,m,g,v,j,w,b,x,h,T,f,B,O,C,N,S,F,y,I,P,W,k,A,M;const V=null==t?void 0:t.find((e=>e.familyProductHandles.includes(i.handle)));return V&&s.push({title:null!==(n=null==V?void 0:V.plp_family_title)&&void 0!==n?n:i.title,url:`/products/${i.handle}`,image:{src:null!==(m=null!==(d=null===(c=null===(p=null===(o=null==V?void 0:V.plp_family_image)||void 0===o?void 0:o[1])||void 0===p?void 0:p.image)||void 0===c?void 0:c.url)&&void 0!==d?d:null===(u=null==i?void 0:i.images[1])||void 0===u?void 0:u.src)&&void 0!==m?m:null===(g=null==i?void 0:i.images[0])||void 0===g?void 0:g.src,alt:null!==(h=null!==(b=null===(w=null===(j=null===(v=null==V?void 0:V.plp_family_image)||void 0===v?void 0:v[1])||void 0===j?void 0:j.image)||void 0===w?void 0:w.alt)&&void 0!==b?b:null===(x=null==i?void 0:i.images[1])||void 0===x?void 0:x.alt)&&void 0!==h?h:null===(T=null==i?void 0:i.images[0])||void 0===T?void 0:T.alt},mainImage:{src:null!==(C=null===(O=null===(B=null===(f=null==V?void 0:V.plp_family_image)||void 0===f?void 0:f[0])||void 0===B?void 0:B.image)||void 0===O?void 0:O.url)&&void 0!==C?C:null===(N=null==i?void 0:i.images[0])||void 0===N?void 0:N.src,alt:null!==(I=null===(y=null===(F=null===(S=null==V?void 0:V.plp_family_image)||void 0===S?void 0:S[0])||void 0===F?void 0:F.image)||void 0===y?void 0:y.alt)&&void 0!==I?I:null===(P=null==i?void 0:i.images[0])||void 0===P?void 0:P.alt},badge:null!==(W=null==V?void 0:V.plp_image_badge)&&void 0!==W?W:"Family",buttonLabel:null!==(k=null==V?void 0:V.plp_button_label)&&void 0!==k?k:"View all",priceLabel:null!==(A=null==V?void 0:V.plp_price_label)&&void 0!==A?A:"Starting at:",lowestPriceVariant:null==V?void 0:V.lowestPriceVariant,promoCallout:null!==(M=null==V?void 0:V.plp_promo_callout)&&void 0!==M?M:null==i?void 0:i.promoCallout,prodType:"family"}),s.push(Object.assign(Object.assign({},i),{prodType:"product"})),l===e.length-1&&(r.forEach(((e,a)=>{s.splice(10*a,0,Object.assign({prodType:"stack"},e))})),[4,13,18,27].forEach(((e,r)=>{a[r]&&s.splice(e,0,Object.assign({prodType:"deadCell"},a[r]))}))),s}),[]))(F,l,d,u);return(0,t.jsx)("div",{children:(0,t.jsxs)("div",{children:[o.breadcrumbs&&!!v&&(0,t.jsx)(Tr.a,Object.assign({},v,{isCollection:!0})),(0,t.jsx)(Ba,{filterFacets:(null==h?void 0:h.length)?h:m,removeFilter:f,clearAllFilters:B,setFilter:T,sortBy:O,setSort:C,flags:o}),y.length?(0,t.jsxs)("section",Object.assign({className:fr},{children:[(0,t.jsx)("ul",Object.assign({className:Br},{children:y.map(((e,i)=>{switch(e.prodType){case"product":return(0,t.jsx)(J,{flags:o,order:i+1,product:e,addToCart:j,isBtnHidden:a,isTagsHidden:r,isMobile:c},`collectionProduct-${i}`);case"stack":return(0,t.jsx)(Ja,{addToCart:j,stackProduct:e,flags:o,order:i+1},e.prodType+i);case"deadCell":return(0,s.createElement)(Q,Object.assign({},e,{order:i+1,key:i+1}));case"family":return(0,t.jsx)(hr,{familyProduct:e,order:i+1,flags:o,isMobile:c})}}))})),(0,t.jsx)(re,{nextPage:b,totalItems:x,amountItems:F.length})]})):null]})})},{wrapper:Cr,wrapperProducts:Nr}={wrapper:"z7Rt52KX",wrapperProducts:"mo532a3j"},Sr=({useSharedState:e,flags:a,redirectURL:r,stackOfTheWeekCards:s})=>{const l=e(),{addToCart:n,breadcrumbs:o,paginationInfo:p}=l((e=>({paginationInfo:e.paginationInfo,addToCart:e.addToCart,breadcrumbs:e.context.breadcrumbs}))),[c,d]=(0,pe.useState)(1),u=(null==p?void 0:p.perPage)||50,m=s.slice(0,c*u);return(0,i.useEffect)((()=>{r&&"undefined"!=typeof window&&(window.location.href=r)}),[r]),(0,t.jsxs)("section",Object.assign({className:Cr},{children:[a.breadcrumbs&&!!o&&(0,t.jsx)(Tr.a,Object.assign({},o,{isCollection:!0})),(0,t.jsx)("ul",Object.assign({className:Nr},{children:m.map(((e,r)=>(0,t.jsx)(Ja,{addToCart:n,stackProduct:e,flags:a,order:r+1},e.title)))})),(0,t.jsx)(re,{nextPage:()=>d((e=>e+1)),totalItems:s.length,amountItems:m.length})]}))};(0,r(4).createEntrypoint)("collectionProducts",(e=>(0,t.jsxs)(s.Fragment,{children:[!e.isWeeklyWowPage&&(0,t.jsx)(Or,Object.assign({},e)),e.isWeeklyWowPage&&(0,t.jsx)(Sr,Object.assign({},e))]})))},36:(e,a,r)=>{r.d(a,{a:()=>c});var t=r(0),s=r(37),i=r(3);const{wrapper:l,active:n,wrapperPicker:o,wrapperPickerColor:p}={wrapper:"VKbptFLW",wrapperPicker:"BSTgOxHF",wrapperPickerColor:"PrXPSvte",active:"SXU9FE_S",activediv:"icyt5W3Z",wrapperLabel:"pMcIG9Xx"},c=({setCurrentVariant:e,variant:a,currentVariantID:r})=>{var c,d,u;if(!(null===(c=null==a?void 0:a.selectedOptions[0])||void 0===c?void 0:c.bgValue))return null;const m="#"===a.selectedOptions[0].bgValue[0];return(0,t.jsx)("li",Object.assign({className:`${l} ${r===a.id?n:""}`,onClick:()=>{e(a.id)}},{children:(0,t.jsx)(s.a,Object.assign({content:a.title,delay:100},{children:(0,t.jsx)("div",Object.assign({className:(0,i.a)(o)},{children:m||""===(null===(d=a.selectedOptions[0])||void 0===d?void 0:d.bgValue)?(0,t.jsx)("div",{className:p,style:{backgroundColor:`${null===(u=a.selectedOptions[0])||void 0===u?void 0:u.bgValue} !important`}}):(0,t.jsx)("img",{src:a.selectedOptions[0].bgValue,alt:a.selectedOptions[0].value})}))}))}))}}},e=>{e.O(0,[1,2,4,3,5,7,12,17,16],(()=>(100,e(e.s=100)))),e.O()}]);