"use strict";(self.webpackChunkui=self.webpackChunkui||[]).push([[19],{219:(e,t,i)=>{i.d(t,{a:()=>s});var r=i(2),a=i(5),n=i(220);const s=(e,t,i,s,c,l,o,d,u)=>{var p;if("hidden"===u)return;if(0===(null===(p=null==e?void 0:e.items)||void 0===p?void 0:p.length))return;const v=(0,r.useMemo)((()=>(0,n.b)(e)),[e]),m=(0,r.useMemo)((()=>(0,n.a)(e)),[e]);((e,t)=>{(0,a.useEffect)((()=>{(null==e?void 0:e.key)&&t(!0)}),[null==e?void 0:e.key])})(v,s),((e,t,i)=>{if(!(null==t?void 0:t.key))return;const[r,n]=(0,a.useState)(e);(0,a.useEffect)((()=>{r&&!e&&t&&i({id:String(t.key),quantity:0}),n(e)}),[e,t,r])})(d,v,i),((e,t,i,r,s,c,l,o,d,u)=>{var p;(0,a.useEffect)((()=>{var a,p;const v=null===(a=null==e?void 0:e.items)||void 0===a?void 0:a.every((e=>"navidium-shipping-protection"===e.handle)),m=null===(p=null==e?void 0:e.items)||void 0===p?void 0:p.filter((e=>"navidium-shipping-protection"!==e.handle)).every((e=>"gift-card"===e.handle));v&&(r&&s({id:String(r.key),quantity:0}),c(!1)),m&&(r&&s({id:String(r.key),quantity:0}),c(!1));const g=(t/100-i/100).toFixed(2);var h,x,j,b;h=void 0,x=void 0,b=function*(){var e,t;try{if(u){const t=null===(e=d.routeinsProduct)||void 0===e?void 0:e.variants.find((e=>e.price===u));if(t)return l(t),void o(Number(t.price))}if(+g<=0)return;const i=yield(0,n.d)(g);if(!i)return;const r=i,a=r.variant_id,s=null===(t=d.routeinsProduct)||void 0===t?void 0:t.variants.find((e=>e.variantId===String(a)));o(r.price),s&&l(s)}catch(e){console.log(e)}},new((j=void 0)||(j=Promise))((function(e,t){function i(e){try{a(b.next(e))}catch(e){t(e)}}function r(e){try{a(b.throw(e))}catch(e){t(e)}}function a(t){var a;t.done?e(t.value):(a=t.value,a instanceof j?a:new j((function(e){e(a)}))).then(i,r)}a((b=b.apply(h,x||[])).next())}))}),[null===(p=e.items)||void 0===p?void 0:p.length,t,i,r])})(e,t,m,v,i,s,c,l,o,u)}},220:(e,t,i)=>{i.d(t,{a:()=>s,b:()=>n,c:()=>l,d:()=>c});var r=i(25),a=i.n(r);const n=e=>{var t;return null===(t=null==e?void 0:e.items)||void 0===t?void 0:t.find((e=>"navidium-shipping-protection"===e.handle))},s=e=>{var t;return(null===(t=e.items)||void 0===t?void 0:t.filter((e=>"gift-card"===e.handle||"rbx-active-electronic-gift-card"===e.handle)).reduce(((e,t)=>e+t.price),0))||0},c=e=>{return t=void 0,i=void 0,n=function*(){try{const t=yield a()(`https://app.navidiumapp.com/api/variant-id-checker-api-march6.php?shop_url=rbxactive.myshopify.com&price=${e}¤cy=USD`);return yield t.json()}catch(e){return console.log(e),null}},new((r=void 0)||(r=Promise))((function(e,a){function s(e){try{l(n.next(e))}catch(e){a(e)}}function c(e){try{l(n.throw(e))}catch(e){a(e)}}function l(t){var i;t.done?e(t.value):(i=t.value,i instanceof r?i:new r((function(e){e(i)}))).then(s,c)}l((n=n.apply(t,i||[])).next())}));var t,i,r,n},l=e=>{const t=e.reduce(((e,t)=>(e[t]=(e[t]||0)+1,e)),{});return Object.entries(t).map((([e,t])=>`${e} | Qty: ${t}`))}},222:(e,t,i)=>{i.d(t,{a:()=>c,b:()=>s,c:()=>n});var r=i(5),a=i(20);const n=(e,t,i,a,n)=>{const s=["Package Protection","Gift Card","Shipping Protection"],c=(0,r.useMemo)((()=>{var t,i;return null!==(i=null===(t=null==e?void 0:e.items)||void 0===t?void 0:t.reduce(((e,t)=>{var i,r;if(s.includes(t.product_title))return e;if("quantity-split"!==a.freeShippingThresholdType)return e+t.quantity;if(null===(i=t.properties)||void 0===i?void 0:i._containsProducts)try{const i=JSON.parse(t.properties._containsProducts);if(Array.isArray(i))return e+i.length}catch(i){return e+t.quantity}if(null===(r=t.properties)||void 0===r?void 0:r._variantId){const i=t.properties._variantId.split(",").length;if(i>0)return e+i}return e+t.quantity}),0))&&void 0!==i?i:0}),[null==e?void 0:e.items,a.freeShippingThresholdType]);return(0,r.useMemo)((()=>Object.assign(Object.assign({},a),{isBusy:n,progressCart:{cost:t/100,quantity:c},currency:i.symbol})),[t,i.symbol,n,a,c])},s=(e,{navidiumPrice:t=0,isShippingProtectionEnabled:i=!1}={})=>{const[a,n]=(0,r.useState)(0),[s,c]=(0,r.useState)(0);return(0,r.useEffect)((()=>{if(!(null==e?void 0:e.items))return;const r=i?t:0,a=e.items.reduce(((e,t)=>(e=>"gift-card"===e.handle||"rbx-active-electronic-gift-card"===e.handle||"Gift Card"===e.product_title)(t)?e+t.final_price:e),0),s=e.items.reduce(((e,t)=>(e=>"navidium-shipping-protection"===e.handle||"Package Protection"===e.product_title)(t)?e:e+t.final_price*t.quantity),0);e.total_discount,n(s-a),c(s+100*r)}),[null==e?void 0:e.items,null==e?void 0:e.total_discount,t,i]),{cartSummary:a,cartSummaryWithProtection:s}},c=({cartCheckout:e,cart:t,currency:i,isBusy:n,addToCart:s,removeFromCart:c,replaceVariant:l,navidiumPrice:o,lowestNavidumPriceVariant:d,cartSummaryWithProtection:u,itemsInCart:p,cartSummary:v,isShippingProtectionEnabled:m,setIsShippingProtectionEnabled:g,shippingProtectionVariant:h,preparedCollectionLink:x,shippingProtectionIconFlag:j,hideShippingProtection:b,isToggleWithFreeText:f})=>{var y,S;const C=(0,r.useMemo)((()=>{var t;return null===(t=e.routeinsProduct)||void 0===t?void 0:t.variants.map((e=>e.variantId))}),[null===(y=e.routeinsProduct)||void 0===y?void 0:y.variants]),w=(0,r.useMemo)((()=>{var e;return null===(e=null==t?void 0:t.items)||void 0===e?void 0:e.find((e=>null==C?void 0:C.includes(String(e.variant_id))))}),[null==t?void 0:t.items,C]),O=(0,r.useMemo)((()=>0===o?e.descriptionShippingProtectionText.replace("__PRICE__",`${i.symbol}${d.toFixed(2)}`):e.descriptionShippingProtectionText.replace("__PRICE__",`${i.symbol}${o.toFixed(2)}`)),[o,d,e.descriptionShippingProtectionText,i.symbol]),I=(0,r.useMemo)((()=>{var e;return null===(e=null==t?void 0:t.items)||void 0===e?void 0:e.find((e=>"navidium-shipping-protection"===e.handle))}),[null==t?void 0:t.items]),N=(0,r.useMemo)((()=>{var i,r;return(0,a.d)(null===(i=e.routeinsProduct)||void 0===i?void 0:i.variants[0].variantId,null!==(r=null==t?void 0:t.items)&&void 0!==r?r:[])}),[null===(S=e.routeinsProduct)||void 0===S?void 0:S.variants,null==t?void 0:t.items]),P=(0,r.useMemo)((()=>{var e,i;return null!==(i=null===(e=null==t?void 0:t.items)||void 0===e?void 0:e.filter((e=>"navidium-shipping-protection"!==e.handle)).every((e=>"gift-card"===e.handle||"rbx-active-electronic-gift-card"===e.handle)))&&void 0!==i&&i}),[null==t?void 0:t.items]),T=()=>{var t;e.routeinsProduct&&h&&s((0,a.a)(null===(t=e.routeinsProduct)||void 0===t?void 0:t.productSelect.product,h,{value:1},N))},F=()=>{I&&c({id:String(I.key),quantity:0})},_=()=>{I&&h&&e.routeinsProduct&&l({[I.key]:{image:I.image,variant_title:I.variant_title,variant_id:I.variant_id,price:I.price,final_price:I.final_price,product_title:I.product_title,vendor:I.vendor,url:I.url,quantity:0},[h.id]:{image:h.cartImage.src,variant_title:h.title,variant_id:Number(h.id),price:100*Number(h.price),final_price:100*Number(h.price),product_title:e.routeinsProduct.productSelect.product.title,vendor:e.routeinsProduct.productSelect.product.vendor,url:`/products/${e.routeinsProduct.productSelect.product.handle}?variant=${h.id}`,quantity:1}})},k=(0,r.useMemo)((()=>{var r,a,s,c;return Object.assign(Object.assign({},e),{isBusy:n,hrefContinueShippingButton:x||"",shippingProtectionIconFlag:j,isSameVariant:!!h&&String(null==w?void 0:w.variant_id)===h.id,savingAmount:(0).toFixed(2),descriptionShippingProtectionText:O,cartTotalAmount:(u/100).toFixed(2),subtotalAmount:(u/100).toFixed(2),handleCheckoutButton:()=>{},currency:i.symbol,addToCart:T,removeFromCart:F,updateCart:_,shippingProtectionIsInCart:!!C&&-1!==(null===(r=null==t?void 0:t.items)||void 0===r?void 0:r.findIndex((e=>C.includes(String(e.variant_id))))),isCartEmpty:0===(null===(a=null==t?void 0:t.items)||void 0===a?void 0:a.length),isShippingProtectionIsOnlyInCart:!!h&&-1!==(null===(s=null==t?void 0:t.items)||void 0===s?void 0:s.findIndex((e=>String(e.variant_id)===h.variantId)))&&1===(null===(c=null==t?void 0:t.items)||void 0===c?void 0:c.length),cartItemsAmount:p,shippingProtectionText:e.shippingProtectionText,shippingProtection:m,setIsShippingProtectionEnabled:g,isGiftCardOnlyInCart:P,hideShippingProtection:b,isToggleWithFreeText:f})}),[e,n,h,w,O,u,i.symbol,C,null==t?void 0:t.items,p,m,P,v]);return k}},221:(e,t,i)=>{i.d(t,{a:()=>n});var r=i(220),a=i(47);const n=(e,t,i,r,n,l,o,d,u)=>{var p;if(!(null===(p=null==e?void 0:e.items)||void 0===p?void 0:p.length))return{items:[],currency:r.symbol,productText:i.productText,totalText:i.totalText};const{productsByVariantId:v,productsByProductId:m}=((e,t)=>{var i;return(null===(i=null==t?void 0:t.items)||void 0===i?void 0:i.length)?{productsByVariantId:e.reduce(((e,t)=>(t.variants.reduce(((e,i)=>(e[i.variantId]={product:t,variant:i},e)),e),e)),{}),productsByProductId:e.reduce(((e,t)=>(e[t.productSelect.product.id]=t,e)),{})}:{productsByVariantId:{},productsByProductId:{}}})(t,e),g={removeFromCart:n,changeToCart:l,replaceVariant:o,addToCart:d,removerOutfitFromCart:u},h=e.items.map((e=>{var r,p,h,x,j,b,f,y,S,C,w,O;if("outfit-bundle"===e.handle||"no-discount-outfit-bundle"===e.handle){const n=null!==(p=null===(r=e.properties)||void 0===r?void 0:r._outfitMessage)&&void 0!==p?p:"",s=JSON.parse(null!==(x=null===(h=e.properties)||void 0===h?void 0:h._containsProducts)&&void 0!==x?x:"[]"),c=null!==(b=null===(j=e.properties)||void 0===j?void 0:j._outfitId)&&void 0!==b?b:"",l=new Map(t.map((e=>[e.productSelect.product.id,e]))),o=s.map((({productId:t,variantId:r,discountValue:a})=>{var o,p,v,m;const g=l.get(t);if(!g)return;const h=g.variants.find((e=>e.variantId===r));var x,j;return h?{type:"editable",handle:g.productSelect.product.handle,sizeText:i.sizeText,removeLabel:i.removeLabel,quantityText:i.quantityText,colorText:i.colorText,noStockColorText:i.noStockColorText,chooseSizeText:i.chooseSizeText,variantId:String(h.variantId),image:{src:null!==(p=null===(o=null==h?void 0:h.cartImage)||void 0===o?void 0:o.src)&&void 0!==p?p:"",alt:"default"},productName:g.productSelect.product.title,price:(x=Number(h.price),j=Number(null!=a?a:0),x-x*j/100).toFixed(2),compareAtPrice:Number(h.price),originalPrice:h.price,removeFromCart:()=>{return e=void 0,t=void 0,r=function*(){const e=h.variantId,t=s.filter((t=>t.variantId!==e)).map((e=>({id:e.variantId,quantity:1,image:"",product_title:"",variant_title:"",variant_id:Number(e.variantId),price:0,final_price:0,url:"",vendor:""})));yield d({items:t}),yield u(c)},new((i=void 0)||(i=Promise))((function(a,n){function s(e){try{l(r.next(e))}catch(e){n(e)}}function c(e){try{l(r.throw(e))}catch(e){n(e)}}function l(e){var t;e.done?a(e.value):(t=e.value,t instanceof i?t:new i((function(e){e(t)}))).then(s,c)}l((r=r.apply(e,t||[])).next())}));var e,t,i,r},changeQuantity:()=>{},updateCart:()=>{},colorOrder:[],sizes:[],quantityInCart:e.quantity,currentSize:null!==(v=h.sizeValue)&&void 0!==v?v:"",currentColor:null!==(m=h.colorValue)&&void 0!==m?m:"",availableQuantity:0,productsForUpdate:[],discountMessage:[],vendor:g.productSelect.product.vendor,isFinalSale:!1,noReturnLabel:i.noReturnLabel,finalSaleLabel:i.finalSaleLabel,cartMessage:n,isBundleCard:!1,isOutfitCard:!0,isInstantBundle:"--instant-cart-placeholder"===e.handle}:void 0})).filter(a.a);return{type:"outfit",items:o}}if("bundle-container"===e.handle){const t=null!==(y=null===(f=e.properties)||void 0===f?void 0:f._productId)&&void 0!==y?y:"",r=null==m?void 0:m[t];return r?c(e,r,i,g):s(e,i,g)}if("navidium-shipping-protection"===e.handle)return s(e,i,g);const I=null==v?void 0:v[String(e.variant_id)];if(!I)return s(e,i,g);const{product:N,variant:P}=I,T=e.variant_title.indexOf(" / "),F=e.variant_title.slice(0,T),_=e.variant_title.slice(T+" / ".length),k="gift-card"===e.handle||"rbx-active-electronic-gift-card"===e.handle,M=k&&P.quantityAvailable<=0?1:P.quantityAvailable,L=P.compareAtPrice?Number(P.compareAtPrice):e.price/100,B=N.productSelect.product.fakeFinalSale||N.productSelect.product.showFinalSale,E=!!(null===(S=e.properties)||void 0===S?void 0:S._finalSale)&&!!B,$=null!==(w=null===(C=e.properties)||void 0===C?void 0:C._cartMessage)&&void 0!==w?w:"";return{type:"editable",handle:N.productSelect.product.handle,sizeText:i.sizeText,removeLabel:i.removeLabel,quantityText:i.quantityText,colorText:i.colorText,noStockColorText:i.noStockColorText,chooseSizeText:i.chooseSizeText,variantId:String(e.variant_id),image:P.cartImage||{src:e.featured_image.url,alt:"default"},productName:e.product_title,price:(e.final_price/100).toFixed(2),originalPrice:(e.original_price/100).toFixed(2),compareAtPrice:L,removeFromCart:()=>n({id:e.key,quantity:0}),changeQuantity:t=>l({id:e.key,quantity:t}),updateCart:(t,i)=>o({[e.key]:{image:e.image,product_title:e.product_title,variant_title:e.variant_title,variant_id:e.variant_id,quantity:0,price:e.price,final_price:e.final_price,url:e.url,vendor:e.vendor},[t]:i}),colorOrder:[],sizes:[],quantityInCart:k?1:e.quantity,currentSize:_,currentColor:F,availableQuantity:M,productsForUpdate:[],discountMessage:e.discounts,vendor:e.vendor,isFinalSale:E,noReturnLabel:i.noReturnLabel,finalSaleLabel:i.finalSaleLabel,cartMessage:$,isInstantBundle:"--instant-cart-placeholder"===e.handle&&"Yes"===(null===(O=e.properties)||void 0===O?void 0:O._isBundleItem)}}));return{items:h,currency:r.symbol,productText:i.productText,totalText:i.totalText}},s=(e,t,i)=>{const{removeFromCart:r,changeToCart:a}=i;return Object.assign(Object.assign({},e),{sizeText:t.sizeText,quantityText:t.quantityText,colorText:t.colorText,type:"default",removeFromCart:()=>r({id:e.key,quantity:0}),changeQuantity:t=>a({id:e.key,quantity:t})})},c=(e,t,i,n)=>{var s,c,l,o,d,u,p,v,m,g,h,x,j,b;null===(s=e.properties)||void 0===s||s._productId;const f=null!==(l=null===(c=e.properties)||void 0===c?void 0:c._discount)&&void 0!==l?l:"",y=null!==(d=null===(o=e.properties)||void 0===o?void 0:o._bundleMessage)&&void 0!==d?d:"",S=null!==(p=null===(u=e.properties)||void 0===u?void 0:u._cartMessage)&&void 0!==p?p:"",C=null!==(m=null===(v=e.properties)||void 0===v?void 0:v._additionalDiscountValue)&&void 0!==m?m:"",{removeFromCart:w,replaceVariant:O,changeToCart:I}=n,N=(()=>{var t;try{const i=null===(t=e.properties)||void 0===t?void 0:t._variantId;return i?JSON.parse(i):[]}catch(e){return[]}})(),P=N.map((e=>t.variants.find((t=>t.variantId===e)))).filter(a.a),T=P.map((e=>e.colorValue||"")),F=P.reduce(((e,t)=>e+(t.compareAtPrice?+t.compareAtPrice:+t.price)),0),_=C?[{amount:+C,title:C}]:[];return{type:"editable",handle:t.productSelect.product.handle,sizeText:i.sizeText,removeLabel:i.removeLabel,quantityText:i.quantityText,colorText:i.colorText,noStockColorText:i.noStockColorText,chooseSizeText:i.chooseSizeText,variantId:String(e.variant_id),image:{src:null!==(x=null===(h=null===(g=P[0])||void 0===g?void 0:g.cartImage)||void 0===h?void 0:h.src)&&void 0!==x?x:"",alt:"default"},productName:`${t.productSelect.product.title} (Multi-Pack)`,price:(e.final_price/100).toFixed(2),originalPrice:(e.original_price/100).toFixed(2),compareAtPrice:Number(F),removeFromCart:()=>w({id:e.key,quantity:0}),changeQuantity:t=>I({id:e.key,quantity:t}),updateCart:(t,i)=>O({[e.key]:{image:e.image,product_title:e.product_title,variant_title:e.variant_title,variant_id:e.variant_id,quantity:0,price:e.price,final_price:e.final_price,url:e.url,vendor:e.vendor},[t]:i}),colorOrder:[],sizes:[],quantityInCart:e.quantity,currentSize:null!==(b=null===(j=P[0])||void 0===j?void 0:j.sizeValue)&&void 0!==b?b:"",currentColor:"",availableQuantity:0,discountMessage:_,vendor:e.vendor,isFinalSale:!1,noReturnLabel:i.noReturnLabel,finalSaleLabel:i.finalSaleLabel,cartMessage:S,bundleMessage:y&&+f>0?y.replace("Save","Extra"):"",isBundleCard:!0,variantColors:(0,r.c)(T)}}},104:(e,t,i)=>{i.d(t,{a:()=>o});var r=i(0),a=i(4);const n={fire:(0,a.r)(),lightning:(0,a.F)(),flag:(0,a.s)(),"discount badge":(0,a.o)(),alert:(0,a.b)(),bell:(0,a.k)()},s=e=>n[e];var c=i(218);const{wrapper:l}=c.a,o=({message:e,link:t,icon:i})=>e?(0,r.jsxs)("div",Object.assign({className:l},{children:[s(i),t?(0,r.jsx)("a",Object.assign({href:t},{children:e})):e]})):null},205:(e,t,i)=>{i.d(t,{a:()=>de});var r=i(0),a=i(1),n=i(2),s=i(301),c=i(206);const{wrapper:l,wrapperComparePrice:o,wrapperCrossedPrice:d,wrapperActualPrice:u,wrapperActualPriceRed:p}=c.a,v=({currency:e,compareAtPrice:t,price:i})=>{const a=t>i;return(0,r.jsxs)("div",Object.assign({className:l},{children:[(0,r.jsx)("p",Object.assign({className:(0,s.a)(u,a&&p)},{children:` ${e}${i.toFixed(2)}`})),a&&(0,r.jsx)("p",Object.assign({className:(0,s.a)(o,d)},{children:`${e}${t.toFixed(2)}`}))]}))};var m=i(207);const{wrapper:g,wrapperTitle:h,wrapperDetails:x,wrapperDetailsBold:j}=m.a;function b(e){if("string"!=typeof e)return e;const t=document.createElement("textarea");return t.innerHTML=e,t.value}const f=({finalSaleLabel:e,noReturnLabel:t,discountMessage:i,isDiscountMessageDefined:a,cartMessage:n,showCartMessage:c,isFinalSale:l,bundleMessage:o})=>(0,r.jsxs)("div",Object.assign({className:g},{children:[l&&(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("p",Object.assign({className:h},{children:e})),(0,r.jsx)("p",Object.assign({className:x},{children:t}))]}),a&&i.map((e=>(0,r.jsx)("p",Object.assign({className:(0,s.a)(x,j)},{children:b(e.title)})))),c&&(0,r.jsx)("p",Object.assign({className:(0,s.a)(x,j)},{children:b(n)})),o&&(0,r.jsx)("p",Object.assign({className:(0,s.a)(x,j)},{children:o}))]})),y=(e,t,i,r,a,s)=>{const[c,l]=(0,n.useState)(i),[o,d]=(0,n.useState)(r),[u,p]=(0,n.useState)(e),[v,m]=(0,n.useState)(t),[g,h]=(0,n.useState)(a),[x,j]=(0,n.useState)(!1),[b,f]=(0,n.useState)({productTitle:"",productColor:"",productSize:"",colorIcon:{isValidUrl:!1,colorUrl:"",colorName:""},quantity:0,image:{src:"",alt:""},isCartError:!1});return(0,n.useEffect)((()=>{h(a)}),[a]),(0,n.useEffect)((()=>{p(e),m(t)}),[e,t]),(0,n.useEffect)((()=>{if(r{const[l,o]=(0,n.useState)(e);(0,n.useEffect)((()=>{o(e)}),[e]);const{image:{src:d,alt:u},productName:p,price:m,currentSize:g,currentColor:h,availableQuantity:x,quantityInCart:j,removeFromCart:b,changeQuantity:S,variantId:q,handle:A,removeLabel:z,compareAtPrice:R,isFinalSale:V,noReturnLabel:D,finalSaleLabel:W,discountMessage:Q,cartMessage:G,isBundleCard:H,variantColors:J,bundleMessage:U,isOutfitCard:Y}=l;if(!p)return(0,r.jsx)(a.Fragment,{});const{size:K,quantity:X,color:Z,isWarning:ee,warningMessage:te,setIsWarning:ie}=y(g,h,j,x,t,A),re=(0,n.useRef)(X);(0,n.useEffect)((()=>{re.current=X}),[X]),(0,n.useEffect)((()=>{x<=re.current&&(re.current=x),re.current<=1&&(re.current=1)}),[re]);const ae=""!==G,ne=Q&&Q.length>0,se=V||ne||ae||U;return(0,r.jsxs)("div",Object.assign({className:w},{children:[ee&&(0,r.jsx)(C.a,{information:te,setIsWarning:ie,isWarning:ee}),(0,r.jsx)("div",Object.assign({className:(0,s.a)(O,c&&I)},{children:(0,r.jsx)("a",Object.assign({href:`/products/${e.handle}?variant=${q}`},{children:(0,r.jsx)("img",{loading:"lazy",src:d,alt:u})}))})),(0,r.jsxs)("div",Object.assign({className:(0,s.a)(N,F,V||ae&&E)},{children:[(0,r.jsx)("a",Object.assign({className:(0,s.a)(L,c&&B),href:`/products/${e.handle}?variant=${q}`},{children:p})),se&&(0,r.jsx)(f,{finalSaleLabel:W,noReturnLabel:D,discountMessage:Q,isDiscountMessageDefined:ne,showCartMessage:ae,cartMessage:G,isFinalSale:V,bundleMessage:U}),"gift-card"===A||H?(0,r.jsxs)(a.Fragment,{children:[(0,r.jsx)("p",Object.assign({className:_},{children:`Size: ${K}`})),(0,r.jsx)("ul",Object.assign({className:$},{children:null==J?void 0:J.map((e=>(0,r.jsx)("li",{children:e},"mobile"+e)))}))]}):(0,r.jsx)("p",Object.assign({className:_},{children:`${Z} / ${K}`})),!H&&!Y&&(0,r.jsxs)("div",Object.assign({className:k},{children:[(0,r.jsx)("span",Object.assign({onClick:()=>{re.current-=1,S(re.current)}},{children:" -"})),(0,r.jsx)("p",{children:X}),(0,r.jsx)("span",Object.assign({onClick:()=>{x<=re.current?re.current=x:(re.current+=1,S(re.current))}},{children:"+"}))]}))]})),(0,r.jsxs)("div",Object.assign({className:(0,s.a)(P,T)},{children:[(0,r.jsx)(v,{currency:i,price:Number(m),compareAtPrice:R}),(0,r.jsx)("p",Object.assign({onClick:b,className:M},{children:z}))]}))]}))};var A=i(209);const{wrapper:z,wrapperImage:R,wrapperDetails:V,wrapperDetailsPrice:D,wrapperPrice:W,wrapperDetailsSizeAndColor:Q,wrapperQuantity:G,wrapperQuantityBundle:H,wrapperRemoveBtn:J,wrapperTitle:U,wrapperDetailsProduct:Y,wrapperQuantityTab:K,wrapperList:X}=A.a,Z=({item:e,items:t,currency:i,index:c})=>{const[l,o]=(0,n.useState)(e);(0,n.useEffect)((()=>{o(e)}),[e]);const{image:{src:d,alt:u},productName:p,price:m,sizeText:g,currentSize:h,currentColor:x,availableQuantity:j,quantityInCart:b,removeFromCart:S,changeQuantity:w,variantId:O,handle:I,removeLabel:N,colorText:P,quantityText:T,compareAtPrice:F,isFinalSale:_,finalSaleLabel:k,noReturnLabel:M,discountMessage:L,cartMessage:B,isBundleCard:E,variantColors:$,bundleMessage:q,isOutfitCard:A}=l;if(!p)return(0,r.jsx)(a.Fragment,{});const{size:D,quantity:Z,color:ee,isWarning:te,warningMessage:ie,setIsWarning:re}=y(h,x,b,j,t,I),ae=(0,n.useRef)(Z);(0,n.useEffect)((()=>{ae.current=Z}),[Z]),(0,n.useEffect)((()=>{j<=ae.current&&(ae.current=j),ae.current<=1&&(ae.current=1)}),[ae]);const ne=(null==L?void 0:L.length)>0,se=""!==B,ce=_||ne||se||q;return(0,r.jsxs)("div",Object.assign({className:z},{children:[te&&(0,r.jsx)(C.a,{information:ie,setIsWarning:re,isWarning:te}),(0,r.jsx)("div",Object.assign({className:R},{children:(0,r.jsx)("a",Object.assign({href:`/products/${e.handle}?variant=${O}`},{children:(0,r.jsx)("img",{src:d,alt:u})}))})),(0,r.jsxs)("div",Object.assign({className:V},{children:[(0,r.jsxs)("div",Object.assign({className:Y},{children:[(0,r.jsx)("a",Object.assign({className:U,href:`/products/${e.handle}?variant=${O}`},{children:p})),"gift-card"!==I&&(0,r.jsx)("div",Object.assign({className:Q},{children:E||A?(0,r.jsxs)(a.Fragment,{children:[(0,r.jsx)("div",Object.assign({className:Q},{children:(0,r.jsx)("p",{children:`${g}: ${D}`})})),(0,r.jsx)("ul",Object.assign({className:X},{children:$&&$.map(((e,t)=>(0,r.jsx)("li",{children:e},"desktop"+e)))}))]}):(0,r.jsxs)(a.Fragment,{children:[(0,r.jsx)("p",{children:`${P}: ${ee}`}),(0,r.jsx)("p",Object.assign({className:Q},{children:`${g}: ${D}`}))]})})),ce&&(0,r.jsx)(f,{finalSaleLabel:k,noReturnLabel:M,discountMessage:L,isDiscountMessageDefined:ne,showCartMessage:se,cartMessage:B,isFinalSale:_,bundleMessage:q}),(0,r.jsx)("p",Object.assign({onClick:S,className:J},{children:N}))]})),(0,r.jsxs)("div",Object.assign({className:(0,s.a)(G,(A||E)&&H)},{children:[0===c&&(0,r.jsx)("h3",Object.assign({className:K},{children:T})),!E&&!A&&(0,r.jsxs)(a.Fragment,{children:[(0,r.jsx)("span",Object.assign({onClick:()=>{ae.current-=1,w(ae.current)}},{children:"–"})),(0,r.jsx)("p",{children:Z}),(0,r.jsx)("span",Object.assign({onClick:()=>{j<=ae.current?ae.current=j:(ae.current+=1,w(ae.current))}},{children:"+"}))]})]})),(0,r.jsx)("div",Object.assign({className:W},{children:(0,r.jsx)(v,{currency:i,price:Number(m),compareAtPrice:F})}))]}))]}))};var ee=i(210),te=i(9);const{wrapper:ie,wrapperSlideInCart:re,wrapperNoBorders:ae,wrapperMobile:ne,wrapperDesktop:se,wrapperHeading:ce,wrapperHeadingTabs:le,wrapperBtn:oe}=ee.a,de=({items:e,currency:t,productText:i,totalText:c,isSlideInCart:l})=>{const o="navidium-shipping-protection",{width:d}=(0,te.a)(),u=l||d<1100,[p,v]=(0,n.useState)(null==e?void 0:e.length);return(0,n.useEffect)((()=>v(null==e?void 0:e.length)),[null==e?void 0:e.length]),(0,r.jsxs)("div",Object.assign({className:(0,s.a)(ie,ae,l&&re)},{children:[(0,r.jsx)("div",Object.assign({className:ce},{children:!l&&(0,r.jsxs)("div",Object.assign({className:le},{children:[(0,r.jsx)("h3",{children:i}),(0,r.jsx)("h3",{children:c})]}))})),e.length>0&&(null==e?void 0:e.map(((i,n)=>{const s="outfit"===(null==i?void 0:i.type),c="editable"===i.type,d=c&&i.handle===o,p=c&&"routeins"===i.handle&&"Route"===i.vendor;if(d)return(0,r.jsx)(a.Fragment,{});const v="default"===i.type;return c&&(null==i?void 0:i.isInstantBundle)?(0,r.jsx)(a.Fragment,{}):s?i.items.map(((e,i)=>(0,r.jsxs)(a.Fragment,{children:[u&&(0,r.jsx)("div",Object.assign({className:ne},{children:(0,r.jsx)(q,{item:e,items:[e],currency:t,isSlideInCart:l},e.variantId+e.handle+"outfit")})),!u&&(0,r.jsx)("div",Object.assign({className:se},{children:(0,r.jsx)(Z,{item:e,items:[e],currency:t,index:0===n?i:n,isShippingProtection:d},e.variantId+e.handle+"desktopoutfit")}))]}))):v||p?(i.handle!==o&&i.removeFromCart(),(0,r.jsx)(a.Fragment,{})):(0,r.jsxs)(a.Fragment,{children:[u&&(0,r.jsx)("div",Object.assign({className:ne},{children:(0,r.jsx)(q,{item:i,items:e,currency:t,isSlideInCart:l},i.variantId+i.handle)})),!u&&(0,r.jsx)("div",Object.assign({className:se},{children:(0,r.jsx)(Z,{item:i,items:e,currency:t,index:n,isShippingProtection:d},i.variantId+i.handle+"desktop")}))]})})))]}))}},101:(e,t,i)=>{i.d(t,{a:()=>g});var r=i(0),a=i(1),n=i(2);var s=i(211),c=i(301);const{wrapper:l,wrapperTitle:o,wrapperTitleSlideInCart:d,wrapperBar:u,wrapperFiller:p,wrapperContent:v,wrapperSlideInCart:m}=s.a,g=({title:e,currency:t,freeShippingOnTheAmount:i,freeShippingThresholdType:s,progressCart:g,freeShippingSuccessText:h,isBusy:x,enableCartShippingProgressBar:j=!0,isSlideInCart:b})=>{if(!j)return(0,r.jsx)(a.Fragment,{});const{fillerPercentages:f,isFreeShipping:y,missingAmountForFreeShipping:S}=((e,t,i,r)=>{const a=(0,n.useMemo)((()=>{const i=(e=>{const t=Number(e);return t<0||!Number.isFinite(t)?0:t})(t);let a=0;switch(r){case"cost":a=e.cost;break;case"quantity":case"quantity-split":a=e.quantity}const n=i>0?a/i*100:0;var s;return{missingAmountForFreeShipping:(s=i-a,Math.floor(s)==s?s.toFixed(0):s.toFixed(2)),isFreeShipping:n>=100,fillerPercentages:n<=100?`${String(n)}%`:"100%"}}),[e.cost,e.quantity,i,r,t]);return Object.assign({},a)})(g,i,x,s),[C,w]=(0,n.useState)(!1);(0,n.useEffect)((()=>{x||w(!0)}),[x]);const O=e.replace("_AWAY_","cost"===s?`${t}${S}`:`${S}`);return(0,r.jsx)("div",Object.assign({className:(0,c.a)(l,b&&m)},{children:(0,r.jsxs)("div",Object.assign({className:v},{children:[(0,r.jsx)("p",Object.assign({className:(0,c.a)(o,b&&d)},{children:y?(0,r.jsx)("span",{dangerouslySetInnerHTML:{__html:h}}):C&&(0,r.jsx)("div",{dangerouslySetInnerHTML:{__html:O}})})),(0,r.jsx)("div",Object.assign({className:u},{children:(0,r.jsx)("div",{className:p,style:{width:f}})}))]}))}))}},199:(e,t,i)=>{i.d(t,{a:()=>_});var r=i(0),a=i(1),n=i(2),s=i(301),c=i(200);const{wrapper:l,wrapperOverlay:o,wrapperInput:d,wrapperLabel:u,wrapperLabelCircle:p,wrapperLabelCircleFreeToggle:v,wrapperLabelFreeToggle:m,wrapperInputBlack:g,ldsHourglass:h,wrapperLoaderLeft:x,wrapperLoaderRight:j,wrapperFreeToggle:b,wrapperFreeToggleActive:f}=c.a,y=({isChecked:e,isCartEmpty:t,setIsChecked:i,isBusy:a,isGiftCardOnlyInCart:n,isToggleWithFreeText:c})=>(0,r.jsxs)("div",Object.assign({className:l},{children:[(t||a||n)&&(0,r.jsx)("div",{className:o}),(0,r.jsx)("input",{className:(0,s.a)(d,g),type:"checkbox",id:"switch",checked:e,onChange:e=>(e=>{t||a||n||i(e)})(e)}),(0,r.jsxs)("label",Object.assign({className:(0,s.a)(u,c&&m),for:"switch"},{children:[c&&(0,r.jsx)("p",Object.assign({className:(0,s.a)(b,e&&f)},{children:"FREE"})),(0,r.jsx)("span",Object.assign({className:(0,s.a)(p,c&&v)},{children:a&&(0,r.jsx)("div",{className:(0,s.a)(h,e?j:x)})}))]}))]}));var S=i(4),C=i(201);const{wrapper:w,wrapperIcon:O,wrapperDetails:I,wrapperTitle:N,wrapperSubtile:P,wrapperWithShadow:T,wrapperWithShadowSlideInCart:F}=C.a,_=({descriptionShippingProtectionText:e,isCartEmpty:t,isBusy:i,shippingProtection:c,shippingProtectionText:l,isGiftCardOnlyInCart:o,shippingProtectionIconFlag:d,setIsShippingProtectionEnabled:u,isSlideInCart:p,hideShippingProtection:v,isToggleWithFreeText:m})=>{if(v)return(0,r.jsx)(a.Fragment,{});const[g,h]=(0,n.useState)(!1);(0,n.useEffect)((()=>{h(i)}),[i]);const x=(e=>{switch(e){case"default":default:return(0,r.jsx)(S.R,{});case"v1":return(0,r.jsx)(S.P,{});case"v2":return(0,r.jsx)(S.Q,{})}})(d);return(0,r.jsx)("div",Object.assign({className:(0,s.a)(w,T,p&&F)},{children:(0,r.jsxs)("div",Object.assign({className:(0,s.a)(I)},{children:[(0,r.jsx)("div",Object.assign({className:O},{children:x})),(0,r.jsxs)("div",{children:[(0,r.jsx)("p",Object.assign({className:N},{children:l})),(0,r.jsx)("div",{className:P,dangerouslySetInnerHTML:{__html:e}})]}),(0,r.jsx)(y,{isChecked:c,isCartEmpty:t,setIsChecked:e=>{e.preventDefault(),t||g||u(e.target.checked)},isBusy:g,isGiftCardOnlyInCart:o,isToggleWithFreeText:m})]}))}))}},214:(e,t,i)=>{i.d(t,{a:()=>k});var r=i(0),a=(i(1),i(301)),n=i(4),s=i(2),c=i(13);function l(e){return t=>{t.on("animationStarted",(()=>{const i=t.track.details.minIdx,r=t.track.details.maxIdx,a=t.animator.targetIdx||0;e({min:i,max:r,current:a})}))}}const o={priceColor:"#000000",grayscaleColor:"#000000",regularPriceColor:"#8E8E8E",redPriceColor:"#B70111"};var d=i(215);const{wrapper:u,wrapperBiggerFont:p,wrapperTitle:v,wrapperCrossedPrice:m,wrapperImageContainer:g,wrapperPricesContainer:h,wrapperPricesContainerActualPrice:x,wrapperPricesContainerComparePrice:j,wrapperPricesContainerActualPriceFrom:b}=d.a,f=({product:{productTitle:e,productLink:t,featuredImage:i,variantId:n,price:s,crossedPrice:c,isFromPrice:l},currencySymbol:d="$"})=>{const f=s!==c,y=Object.assign({},o),S=`${t}?variant=${n}`;return(0,r.jsxs)("div",Object.assign({className:u},{children:[(0,r.jsx)("a",Object.assign({href:S},{children:(0,r.jsx)("div",Object.assign({className:g},{children:(0,r.jsx)("img",{width:13,height:18,src:i.src,alt:i.alt})}))})),(0,r.jsx)("div",{children:(0,r.jsxs)("div",{children:[(0,r.jsx)("p",Object.assign({className:v},{children:e})),l&&(0,r.jsx)("div",Object.assign({className:h},{children:(0,r.jsx)("p",Object.assign({className:b},{children:`From ${d}${Number(s).toFixed(2)}`}))})),!l&&(0,r.jsxs)("div",Object.assign({className:h},{children:[f&&(0,r.jsx)("p",Object.assign({className:(0,a.a)(j,m),style:{color:y.regularPriceColor}},{children:`${d}${Number(c).toFixed(2)}`})),(0,r.jsx)("p",Object.assign({className:(0,a.a)(x,!f&&p),style:{color:f?y.redPriceColor:y.grayscaleColor}},{children:` ${d}${Number(s).toFixed(2)}`}))]}))]})})]}))};var y=i(216);const S={initial:0,mode:"free",slides:{perView:2.5},breakpoints:{"(min-width: 990px)":{slides:{perView:5}}},loop:!1},C={initial:0,mode:"free",slides:{perView:2.1},breakpoints:{"(min-width: 450px)":{slides:{perView:3.1}},"(min-width: 794px)":{slides:{perView:2.1}}},loop:!1},{wrapper:w,wrapperSlideOutCart:O,wrapperTitle:I,arrowLeft:N,arrowRight:P,disable:T,arrowLeftSlideOutCart:F,arrowRightSlideOutCart:_}=y.a,k=({title:e,slides:t,currencySymbol:i,isSlideOutCart:o})=>{const{carouselRef:d,isJsDisabled:u,handleSlideNext:p,handleSlidePrev:v,slideIdx:{current:m,min:g,max:h}}=function(e,t){const[i,r]=(0,s.useState)(!0),[a,n]=(0,s.useState)({min:0,max:1,current:0}),[o,d]=(0,c.a)(e,[l(n)]);var u,p;(0,s.useEffect)((u=d,p=e,()=>(u.current&&u.current.update(Object.assign({},p)),()=>{u.current&&u.current.destroy()})),[d.current,t]);const v=(0,s.useCallback)((e=>{e.stopPropagation(),d.current&&d.current.prev()}),[d.current]),m=(0,s.useCallback)((e=>{e.stopPropagation(),d.current&&d.current.next()}),[d.current]);return(0,s.useEffect)((()=>{r(!1)}),[]),{carouselRef:o,handleSlideNext:m,handleSlidePrev:v,isJsDisabled:i,instanceRef:d,slideIdx:a}}(o?C:S,t.length);return(0,r.jsxs)("div",Object.assign({className:(0,a.a)(w,u&&"noJsProductSlider",o&&O)},{children:[!o&&(0,r.jsx)("h3",Object.assign({className:I},{children:e})),(0,r.jsx)("a",Object.assign({className:(0,a.a)(N,m===g?T:"",o&&F),onClick:v},{children:(0,r.jsx)(n.J,{})})),(0,r.jsx)("a",Object.assign({className:(0,a.a)(P,m===h?T:"",o&&_),onClick:p},{children:(0,r.jsx)(n.K,{})})),(0,r.jsx)("div",Object.assign({ref:d,class:(0,a.a)("keen-slider")},{children:t.length>0&&t.map(((e,t)=>(0,r.jsx)("div",Object.assign({className:`keen-slider__slide number-slide${t}`},{children:(0,r.jsx)(f,{currencySymbol:i,product:e},e.productTitle)}),e.productTitle)))}))]}))}},198:(e,t,i)=>{i.d(t,{a:()=>L});var r=i(0),a=i(1),n=i(199),s=i(2),c=i(301),l=i(202),o=function(e,t,i,r){return new(i||(i=Promise))((function(a,n){function s(e){try{l(r.next(e))}catch(e){n(e)}}function c(e){try{l(r.throw(e))}catch(e){n(e)}}function l(e){var t;e.done?a(e.value):(t=e.value,t instanceof i?t:new i((function(e){e(t)}))).then(s,c)}l((r=r.apply(e,t||[])).next())}))};const{wrapper:d,wrapperButton:u,wrapperButtonSlideInCart:p,wrapperButtonBlack:v,wrapperButtonLong:m,wrapperForm:g,spinner:h,spinnerPath:x,btnBusy:j}=l.a,b=({hrefContinueShippingButton:e,continueShippingButtonText:t,checkoutButtonText:i,isCartEmpty:n,isBusy:l,shippingProtectionIsInCart:b,shippingProtection:f,updateCart:y,addToCart:S,isSlideInCart:C})=>{const w=(0,s.useRef)(null),O=(0,s.useRef)(null),[I,N]=(0,s.useState)(!1),[P,T]=(0,s.useState)(!1);(0,s.useEffect)((()=>{N(!1),T(!1)}),[]),(0,s.useEffect)((()=>{var e;I&&!l&&(N(!1),null===(e=w.current)||void 0===e||e.click())}),[I,l]),(0,s.useEffect)((()=>{P&&!l&&(T(!1),window.location.href="/cart")}),[P,l]);return n?(0,r.jsx)("div",Object.assign({className:d},{children:(0,r.jsx)("a",Object.assign({ref:O,className:(0,c.a)(u,m),href:e},{children:t}))})):C?(0,r.jsxs)(a.Fragment,{children:[(0,r.jsxs)("div",Object.assign({className:d},{children:[(0,r.jsx)("a",Object.assign({href:"/cart",className:(0,c.a)(u,p)},{children:"view cart"})),(0,r.jsxs)("a",Object.assign({className:(0,c.a)(u,v,m,u,p),onClick:()=>o(void 0,void 0,void 0,(function*(){if(!l)try{b?yield y():f&&!b&&(yield S()),N(!0)}catch(e){console.error("Error handleURLClick:",e)}}))},{children:["Checkout",l&&(0,r.jsxs)(a.Fragment,{children:[(0,r.jsx)("svg",Object.assign({className:h,viewBox:"0 0 50 50"},{children:(0,r.jsx)("circle",{className:(0,c.a)(x),cx:"25",cy:"25",r:"20",fill:"none","stroke-width":"5"})})),(0,r.jsx)("span",{className:j})]})]}))]})),(0,r.jsx)("form",Object.assign({style:{visibility:"hidden",height:0},action:"/cart",method:"post",noValidate:!0},{children:(0,r.jsx)("button",Object.assign({ref:w,name:"checkout"},{children:i}))}))]}):(0,r.jsxs)(a.Fragment,{children:[(0,r.jsxs)("div",Object.assign({className:d},{children:[(0,r.jsx)("a",Object.assign({className:u,href:e},{children:t})),(0,r.jsx)("div",Object.assign({className:g},{children:(0,r.jsxs)("button",Object.assign({onClick:()=>o(void 0,void 0,void 0,(function*(){l||(b?yield y():f&&!b&&(yield S()),N(!0))})),className:(0,c.a)(u,v)},{children:[i,l&&(0,r.jsxs)(a.Fragment,{children:[(0,r.jsx)("svg",Object.assign({className:h,viewBox:"0 0 50 50"},{children:(0,r.jsx)("circle",{className:(0,c.a)(x),cx:"25",cy:"25",r:"20",fill:"none","stroke-width":"5"})})),(0,r.jsx)("span",{className:j})]})]}))}))]})),(0,r.jsx)("form",Object.assign({style:{visibility:"hidden",height:0},action:"/cart",method:"post",noValidate:!0},{children:(0,r.jsx)("button",Object.assign({ref:w,name:"checkout"},{children:i}))}))]})};var f=i(203);const{wrapper:y,wrapperNew:S,wrapperSlideInCart:C,wrapperSubtotal:w,wrapperSubtotalExtraMargin:O,wrapperSubtotalText:I,wrapperSubtotalAmount:N,wrapperSubtotalTextLarge:P,wrapperSubtotalAmountLarge:T}=f.a,F=({subtotalText:e,subtotalAmount:t,hrefContinueShippingButton:i,continueShippingButtonText:a,checkoutButtonText:n,currency:s,isBusy:l,shippingProtectionIsInCart:o,shippingProtection:d,isCartEmpty:u,cartItemsAmount:p,updateCart:v,addToCart:m,isSlideInCart:g,hideShippingProtection:h})=>(0,r.jsxs)("div",Object.assign({className:(0,c.a)(y,S,g&&C)},{children:[(0,r.jsxs)("div",Object.assign({className:(0,c.a)(w,h&&O)},{children:[(0,r.jsxs)("p",Object.assign({className:(0,c.a)(I,P)},{children:[e,":"]})),(0,r.jsxs)("p",Object.assign({className:(0,c.a)(N,T)},{children:[s,t]}))]})),(0,r.jsx)(b,{hrefContinueShippingButton:i,continueShippingButtonText:a,checkoutButtonText:n,isCartEmpty:u,cartItemsAmount:p,subtotalAmount:t,currency:s,isBusy:l,shippingProtectionIsInCart:o,shippingProtection:d,addToCart:m,updateCart:v,isSlideInCart:g})]}));var _=i(204);const{wrapper:k,wrapperSlideInCart:M}=_.a,L=e=>{var t=function(e,t){var i={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(i[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var a=0;for(r=Object.getOwnPropertySymbols(e);a{i.d(t,{a:()=>F});var r=i(0),a=i(1),n=i(2),s=i(213),c=i(214),l=i(102),o=i(301),d=i(217);const{wrapper:u,wrapperDetails:p,wrapperImage:v,wrapperTitle:m,wrapperDiscountPrice:g,wrapperNormalPrice:h,wrapperPriceCrossed:x,wrapperNormalPriceRed:j,wrapperInfo:b}=d.a,f=({product:{productTitle:e,productLink:t,featuredImage:i,variantId:n,price:s,crossedPrice:c,isFromPrice:l},currencySymbol:d})=>{const f=`${t}?variant=${n}`;return(0,r.jsx)(a.Fragment,{children:(0,r.jsx)("div",Object.assign({className:u},{children:(0,r.jsxs)("a",Object.assign({href:f,className:p},{children:[(0,r.jsx)("div",Object.assign({className:v},{children:(0,r.jsx)("img",Object.assign({},i))})),(0,r.jsxs)("div",Object.assign({className:(0,o.a)(b)},{children:[(0,r.jsx)("div",Object.assign({className:m},{children:e})),l&&(0,r.jsx)("div",Object.assign({className:h},{children:(0,r.jsx)("p",{children:`From ${d}${Number(s).toFixed(2)}`})})),!l&&(0,r.jsx)(a.Fragment,{children:s===c?(0,r.jsxs)("span",Object.assign({className:h},{children:[d,s]})):(0,r.jsxs)("div",Object.assign({className:(0,o.a)(g)},{children:[(0,r.jsxs)("span",Object.assign({className:x},{children:[d,Number(c).toFixed(2)]})),(0,r.jsxs)("span",Object.assign({className:(0,o.a)(h,j)},{children:[d,Number(s).toFixed(2)]}))]}))})]}))]}))}))})};var y=i(47);const{wrapper:S,container:C,containerTitle:w,containerItems:O,containerSlider:I,wrapperTitleSlideOutCart:N,wrapperYouMayAlsoLike:P,containerItemsSlideOutCart:T}=s.a,F=({title:e,products:t,mensNewArrivalHandles:i,plusNewArrivalHandles:s,isMensProductInCart:o,isPlusSizeProductInCart:d,isWomensProductInCart:u,currency:p,cartItems:v,youMayAlsoLikeDisabledFlag:m,isSlideOutCart:g,slideInCartValue:h})=>{if(m)return(0,r.jsx)(a.Fragment,{});const x=t.filter((e=>!(-1!==e.variants.findIndex((e=>-1!==(null==v?void 0:v.findIndex((t=>e.id===String(t.variant_id))))))))),j=x.slice(0,10),[b,S]=(0,n.useState)(j),F=x.filter((e=>i.includes(e.productSelect.product.handle))),_=x.filter((e=>s.includes(e.productSelect.product.handle)));(0,n.useEffect)((()=>{S(!o||d||u?d&&!o&&!u?_:u&&!o&&!d?j:u&&o&&d?[..._,...F,...j]:u&&o?[...F,...j]:u&&d?[..._,...j]:o&&d?[..._,...F]:()=>j.length<10?x:[...j,...F]:F)}),[o,d,u]);const k=(0,n.useMemo)((()=>b.map((e=>{var t,i;const r=e.variants.filter((e=>e.availableForSale))[0],{maxComparePrice:a,maxVariantPrice:n}=(0,l.b)(e.variants),s=(0,l.a)(e.variants),c=e.variants.map((e=>e.availableForSale?Number(e.price):null)).filter(y.a),o=Math.min(...c),d=s?String(o):n,u={variantId:null!==(t=null==r?void 0:r.variantId)&&void 0!==t?t:"",price:String(d),crossedPrice:String(a),featuredImage:null!==(i=null==r?void 0:r.image)&&void 0!==i?i:{src:"",alt:""}};return Object.assign({productTitle:e.productSelect.product.title,productLink:`/products/${e.productSelect.product.handle}`,isFromPrice:s},u)})).slice().sort((()=>Math.random()-.5))),[b.length]);return g?"enabledGrid"!==h&&"enabledSlider"!==h?null:(0,r.jsxs)("div",Object.assign({className:P},{children:[(0,r.jsx)("h3",Object.assign({className:N},{children:e})),"enabledGrid"===h&&(0,r.jsx)("div",Object.assign({className:T},{children:k.length>0&&k.map((e=>(0,r.jsx)(f,{product:e,currencySymbol:p},e.variantId)))})),"enabledSlider"===h&&(0,r.jsx)(c.a,{slides:k,title:e,currencySymbol:p,isSlideOutCart:g})]})):(0,r.jsxs)(a.Fragment,{children:[(0,r.jsx)("div",Object.assign({className:I},{children:(0,r.jsx)(c.a,{slides:k,title:e,currencySymbol:p})})),(0,r.jsxs)("div",Object.assign({className:C},{children:[(0,r.jsx)("h3",Object.assign({className:w},{children:e})),(0,r.jsx)("div",Object.assign({className:O},{children:k.length>0&&k.map((e=>(0,r.jsx)(f,{product:e,currencySymbol:p},e.variantId)))}))]}))]})}},9:(e,t,i)=>{i.d(t,{a:()=>a});var r=i(2);const a=()=>{const[e,t]=(0,r.useState)({width:0,height:0});return(0,r.useEffect)((()=>{function e(){t({width:window.innerWidth,height:window.innerHeight})}return window.addEventListener("resize",e),e(),()=>window.removeEventListener("resize",e)}),[]),e}}}]);