"use strict";(self.webpackChunkui=self.webpackChunkui||[]).push([[18],{190:(e,t,i)=>{i.d(t,{a:()=>s});var r=i(2),n=i(13),a=i(191);const s=(e,t,i,s,c,o,l,d,u)=>{var p;if(0===(null===(p=null==e?void 0:e.items)||void 0===p?void 0:p.length))return;const v=(0,r.useMemo)((()=>(0,a.b)(e)),[e]),h=(0,r.useMemo)((()=>(0,a.a)(e)),[e]);((e,t)=>{(0,n.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,a]=(0,n.useState)(e);(0,n.useEffect)((()=>{r&&!e&&t&&i({id:String(t.key),quantity:0}),a(e)}),[e,t,r])})(d,v,i),((e,t,i,r,s,c,o,l,d,u)=>{var p;(0,n.useEffect)((()=>{var n,p;const v=null===(n=null==e?void 0:e.items)||void 0===n?void 0:n.every((e=>"navidium-shipping-protection"===e.handle)),h=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)),h&&(r&&s({id:String(r.key),quantity:0}),c(!1));const g=(t/100-i/100).toFixed(2);var m,x,j,f;m=void 0,x=void 0,f=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 o(t),void l(Number(t.price))}if(+g<=0)return;const i=yield(0,a.d)(g);if(!i)return;const r=i,n=r.variant_id,s=null===(t=d.routeinsProduct)||void 0===t?void 0:t.variants.find((e=>e.variantId===String(n)));l(r.price),s&&o(s)}catch(e){console.log(e)}},new((j=void 0)||(j=Promise))((function(e,t){function i(e){try{n(f.next(e))}catch(e){t(e)}}function r(e){try{n(f.throw(e))}catch(e){t(e)}}function n(t){var n;t.done?e(t.value):(n=t.value,n instanceof j?n:new j((function(e){e(n)}))).then(i,r)}n((f=f.apply(m,x||[])).next())}))}),[null===(p=e.items)||void 0===p?void 0:p.length,t,i,r])})(e,t,h,v,i,s,c,o,l,u)}},191:(e,t,i)=>{i.d(t,{a:()=>s,b:()=>a,c:()=>o,d:()=>c});var r=i(38),n=i.n(r);const a=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,a=function*(){try{const t=yield n()(`https://app.navidiumapp.com/api/variant-id-checker-api-march6.php?shop_url=rbxactive.myshopify.com&price=${e}&currency=USD`);return yield t.json()}catch(e){return console.log(e),null}},new((r=void 0)||(r=Promise))((function(e,n){function s(e){try{o(a.next(e))}catch(e){n(e)}}function c(e){try{o(a.throw(e))}catch(e){n(e)}}function o(t){var i;t.done?e(t.value):(i=t.value,i instanceof r?i:new r((function(e){e(i)}))).then(s,c)}o((a=a.apply(t,i||[])).next())}));var t,i,r,a},o=e=>{const t=e.reduce(((e,t)=>(e[t]=(e[t]||0)+1,e)),{});return Object.entries(t).map((([e,t])=>`${e} | Qty: ${t}`))}},193:(e,t,i)=>{i.d(t,{a:()=>c,b:()=>s,c:()=>a});var r=i(13),n=i(21);const a=(e,t,i,n,a)=>{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;if(s.includes(t.product_title))return e;if("quantity-split"===n.freeShippingThresholdType&&(null===(i=t.properties)||void 0===i?void 0:i._variantId)){const i=t.properties._variantId.split(",").length;return i>0?e+i:e+t.quantity}return e+t.quantity}),0))&&void 0!==i?i:0}),[null==e?void 0:e.items,n.freeShippingThresholdType]);return(0,r.useMemo)((()=>Object.assign(Object.assign({},n),{isBusy:a,progressCart:{cost:t/100,quantity:c},currency:i.symbol})),[t,i.symbol,a,n,c])},s=(e,{navidiumPrice:t=0,isShippingProtectionEnabled:i=!1}={})=>{const[n,a]=(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,n=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,a(s-n),c(s+100*r)}),[null==e?void 0:e.items,null==e?void 0:e.total_discount,t,i]),{cartSummary:n,cartSummaryWithProtection:s}},c=({cartCheckout:e,cart:t,currency:i,isBusy:a,addToCart:s,removeFromCart:c,replaceVariant:o,navidiumPrice:l,lowestNavidumPriceVariant:d,cartSummaryWithProtection:u,itemsInCart:p,cartSummary:v,isShippingProtectionEnabled:h,setIsShippingProtectionEnabled:g,shippingProtectionVariant:m,preparedCollectionLink:x,shippingProtectionIconFlag:j})=>{var f,y;const b=(0,r.useMemo)((()=>{var t;return null===(t=e.routeinsProduct)||void 0===t?void 0:t.variants.map((e=>e.variantId))}),[null===(f=e.routeinsProduct)||void 0===f?void 0:f.variants]),S=(0,r.useMemo)((()=>{var e;return null===(e=null==t?void 0:t.items)||void 0===e?void 0:e.find((e=>null==b?void 0:b.includes(String(e.variant_id))))}),[null==t?void 0:t.items,b]),C=(0,r.useMemo)((()=>0===l?e.descriptionShippingProtectionText.replace("__PRICE__",`${i.symbol}${d.toFixed(2)}`):e.descriptionShippingProtectionText.replace("__PRICE__",`${i.symbol}${l.toFixed(2)}`)),[l,d,e.descriptionShippingProtectionText,i.symbol]),w=(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]),I=(0,r.useMemo)((()=>{var i,r;return(0,n.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===(y=e.routeinsProduct)||void 0===y?void 0:y.variants,null==t?void 0:t.items]),O=(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]),P=()=>{var t;e.routeinsProduct&&m&&s((0,n.a)(null===(t=e.routeinsProduct)||void 0===t?void 0:t.productSelect.product,m,{value:1},I))},T=()=>{w&&c({id:String(w.key),quantity:0})},N=()=>{w&&m&&e.routeinsProduct&&o({[w.key]:{image:w.image,variant_title:w.variant_title,variant_id:w.variant_id,price:w.price,final_price:w.final_price,product_title:w.product_title,vendor:w.vendor,url:w.url,quantity:0},[m.id]:{image:m.cartImage.src,variant_title:m.title,variant_id:Number(m.id),price:100*Number(m.price),final_price:100*Number(m.price),product_title:e.routeinsProduct.productSelect.product.title,vendor:e.routeinsProduct.productSelect.product.vendor,url:`/products/${e.routeinsProduct.productSelect.product.handle}?variant=${m.id}`,quantity:1}})},_=(0,r.useMemo)((()=>{var r,n,s,c;return Object.assign(Object.assign({},e),{isBusy:a,hrefContinueShippingButton:x||"",shippingProtectionIconFlag:j,isSameVariant:!!m&&String(null==S?void 0:S.variant_id)===m.id,savingAmount:(0).toFixed(2),descriptionShippingProtectionText:C,cartTotalAmount:(u/100).toFixed(2),subtotalAmount:(u/100).toFixed(2),handleCheckoutButton:()=>{},currency:i.symbol,addToCart:P,removeFromCart:T,updateCart:N,shippingProtectionIsInCart:!!b&&-1!==(null===(r=null==t?void 0:t.items)||void 0===r?void 0:r.findIndex((e=>b.includes(String(e.variant_id))))),isCartEmpty:0===(null===(n=null==t?void 0:t.items)||void 0===n?void 0:n.length),isShippingProtectionIsOnlyInCart:!!m&&-1!==(null===(s=null==t?void 0:t.items)||void 0===s?void 0:s.findIndex((e=>String(e.variant_id)===m.variantId)))&&1===(null===(c=null==t?void 0:t.items)||void 0===c?void 0:c.length),cartItemsAmount:p,shippingProtectionText:e.shippingProtectionText,shippingProtection:h,setIsShippingProtectionEnabled:g,isGiftCardOnlyInCart:O})}),[e,a,m,S,C,u,i.symbol,b,null==t?void 0:t.items,p,h,O,v]);return _}},192:(e,t,i)=>{i.d(t,{a:()=>a});var r=i(191),n=i(14);const a=(e,t,i,r,n,a,o)=>{var l;if(!(null===(l=null==e?void 0:e.items)||void 0===l?void 0:l.length))return{items:[],currency:r.symbol,productText:i.productText,totalText:i.totalText};const{productsByVariantId:d,productsByProductId:u}=((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),p={removeFromCart:n,changeToCart:a,replaceVariant:o},v=e.items.map((e=>{var t,r,l,v,h,g;if("bundle-container"===e.handle){const n=null!==(r=null===(t=e.properties)||void 0===t?void 0:t._productId)&&void 0!==r?r:"",a=null==u?void 0:u[n];return a?c(e,a,i,p):s(e,i,p)}if("navidium-shipping-protection"===e.handle)return s(e,i,p);const m=null==d?void 0:d[String(e.variant_id)];if(!m)return s(e,i,p);const{product:x,variant:j}=m,f=e.variant_title.indexOf(" / "),y=e.variant_title.slice(0,f),b=e.variant_title.slice(f+" / ".length),S="gift-card"===e.handle||"rbx-active-electronic-gift-card"===e.handle,C=S&&j.quantityAvailable<=0?1:j.quantityAvailable,w=j.compareAtPrice?Number(j.compareAtPrice):e.price/100,I=!!(null===(l=e.properties)||void 0===l?void 0:l._finalSale)&&!!x.productSelect.product.showFinalSale,O=null!==(h=null===(v=e.properties)||void 0===v?void 0:v._cartMessage)&&void 0!==h?h:"";return{type:"editable",handle:x.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:j.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:w,removeFromCart:()=>n({id:e.key,quantity:0}),changeQuantity:t=>a({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:S?1:e.quantity,currentSize:b,currentColor:y,availableQuantity:C,productsForUpdate:[],discountMessage:e.discounts,vendor:e.vendor,isFinalSale:I,noReturnLabel:i.noReturnLabel,finalSaleLabel:i.finalSaleLabel,cartMessage:O,isInstantBundle:"--instant-cart-placeholder"===e.handle&&"Yes"===(null===(g=e.properties)||void 0===g?void 0:g._isBundleItem)}}));return{items:v,currency:r.symbol,productText:i.productText,totalText:i.totalText}},s=(e,t,i)=>{const{removeFromCart:r,changeToCart:n}=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=>n({id:e.key,quantity:t})})},c=(e,t,i,a)=>{var s,c,o,l,d,u,p,v,h,g,m,x,j,f;null===(s=e.properties)||void 0===s||s._productId;const y=null!==(o=null===(c=e.properties)||void 0===c?void 0:c._discount)&&void 0!==o?o:"",b=null!==(d=null===(l=e.properties)||void 0===l?void 0:l._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!==(h=null===(v=e.properties)||void 0===v?void 0:v._additionalDiscountValue)&&void 0!==h?h:"",{removeFromCart:w,replaceVariant:I,changeToCart:O}=a,P=(()=>{var t;try{const i=null===(t=e.properties)||void 0===t?void 0:t._variantId;return i?JSON.parse(i):[]}catch(e){return[]}})(),T=P.map((e=>t.variants.find((t=>t.variantId===e)))).filter(n.a),N=T.map((e=>e.colorValue||"")),_=T.reduce(((e,t)=>e+(t.compareAtPrice?+t.compareAtPrice:+t.price)),0),F=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===(m=null===(g=T[0])||void 0===g?void 0:g.cartImage)||void 0===m?void 0:m.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(_),removeFromCart:()=>w({id:e.key,quantity:0}),changeQuantity:t=>O({id:e.key,quantity:t}),updateCart:(t,i)=>I({[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!==(f=null===(j=T[0])||void 0===j?void 0:j.sizeValue)&&void 0!==f?f:"",currentColor:"",availableQuantity:0,discountMessage:F,vendor:e.vendor,isFinalSale:!1,noReturnLabel:i.noReturnLabel,finalSaleLabel:i.finalSaleLabel,cartMessage:S,bundleMessage:b&&+y>0?b.replace("Save","Extra"):"",isBundleCard:!0,variantColors:(0,r.c)(N)}}},183:(e,t,i)=>{i.d(t,{a:()=>le});var r=i(0),n=i(1),a=i(2),s=i(268),c=i(184);const{wrapper:o,wrapperComparePrice:l,wrapperCrossedPrice:d,wrapperActualPrice:u,wrapperActualPriceRed:p}=c.a,v=({currency:e,compareAtPrice:t,price:i})=>{const n=t>i;return(0,r.jsxs)("div",Object.assign({className:o},{children:[(0,r.jsx)("p",Object.assign({className:(0,s.a)(u,n&&p)},{children:` ${e}${i.toFixed(2)}`})),n&&(0,r.jsx)("p",Object.assign({className:(0,s.a)(l,d)},{children:`${e}${t.toFixed(2)}`}))]}))};var h=i(185);const{wrapper:g,wrapperTitle:m,wrapperDetails:x,wrapperDetailsBold:j}=h.a;function f(e){if("string"!=typeof e)return e;const t=document.createElement("textarea");return t.innerHTML=e,t.value}const y=({finalSaleLabel:e,noReturnLabel:t,discountMessage:i,isDiscountMessageDefined:n,cartMessage:a,showCartMessage:c,isFinalSale:o,bundleMessage:l})=>(0,r.jsxs)("div",Object.assign({className:g},{children:[o&&(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("p",Object.assign({className:m},{children:e})),(0,r.jsx)("p",Object.assign({className:x},{children:t}))]}),n&&i.map((e=>(0,r.jsx)("p",Object.assign({className:(0,s.a)(x,j)},{children:f(e.title)})))),c&&(0,r.jsx)("p",Object.assign({className:(0,s.a)(x,j)},{children:f(a)})),l&&(0,r.jsx)("p",Object.assign({className:(0,s.a)(x,j)},{children:l}))]})),b=(e,t,i,r,n,s)=>{const[c,o]=(0,a.useState)(i),[l,d]=(0,a.useState)(r),[u,p]=(0,a.useState)(e),[v,h]=(0,a.useState)(t),[g,m]=(0,a.useState)(n),[x,j]=(0,a.useState)(!1),[f,y]=(0,a.useState)({productTitle:"",productColor:"",productSize:"",colorIcon:{isValidUrl:!1,colorUrl:"",colorName:""},quantity:0,image:{src:"",alt:""},isCartError:!1});return(0,a.useEffect)((()=>{m(n)}),[n]),(0,a.useEffect)((()=>{p(e),h(t)}),[e,t]),(0,a.useEffect)((()=>{if(r<i){if("rbx-active-electronic-gift-card"===s)return o(i),void d(r);o(r)}o(i),d(r)}),[i,r]),{size:u,quantity:c,color:v,isWarning:x,warningMessage:f,setIsWarning:j}};var S=i(186),C=i(64);const{wrapper:w,wrapperImage:I,wrapperImageSlideInCart:O,wrapperDetails:P,wrapperPrice:T,wrapperPriceNew:N,wrapperDetailsNew:_,wrapperDetailsSizeAndColor:F,wrapperQuantity:k,wrapperRemoveBtn:B,wrapperTitle:M,wrapperTitleSlideInCart:E,wrapperDetailsNewWithFinalSale:q,wrapperList:L}=S.a,$=({item:e,items:t,currency:i,isSlideInCart:c})=>{const[o,l]=(0,a.useState)(e);(0,a.useEffect)((()=>{l(e)}),[e]);const{image:{src:d,alt:u},productName:p,price:h,currentSize:g,currentColor:m,availableQuantity:x,quantityInCart:j,removeFromCart:f,changeQuantity:S,variantId:$,handle:A,removeLabel:z,compareAtPrice:D,isFinalSale:R,noReturnLabel:V,finalSaleLabel:W,discountMessage:Q,cartMessage:G,isBundleCard:H,variantColors:U,bundleMessage:J}=o,{size:Y,quantity:K,color:X,isWarning:Z,warningMessage:ee,setIsWarning:te}=b(g,m,j,x,t,A),ie=(0,a.useRef)(K);(0,a.useEffect)((()=>{ie.current=K}),[K]),(0,a.useEffect)((()=>{x<=ie.current&&(ie.current=x),ie.current<=1&&(ie.current=1)}),[ie]);const re=""!==G,ne=Q&&Q.length>0,ae=R||ne||re||J;return(0,r.jsxs)("div",Object.assign({className:w},{children:[Z&&(0,r.jsx)(C.a,{information:ee,setIsWarning:te,isWarning:Z}),(0,r.jsx)("div",Object.assign({className:(0,s.a)(I,c&&O)},{children:(0,r.jsx)("a",Object.assign({href:`/products/${e.handle}?variant=${$}`},{children:(0,r.jsx)("img",{loading:"lazy",src:d,alt:u})}))})),(0,r.jsxs)("div",Object.assign({className:(0,s.a)(P,_,R||re&&q)},{children:[(0,r.jsx)("a",Object.assign({className:(0,s.a)(M,c&&E),href:`/products/${e.handle}?variant=${$}`},{children:p})),ae&&(0,r.jsx)(y,{finalSaleLabel:W,noReturnLabel:V,discountMessage:Q,isDiscountMessageDefined:ne,showCartMessage:re,cartMessage:G,isFinalSale:R,bundleMessage:J}),"gift-card"===A||H?(0,r.jsxs)(n.Fragment,{children:[(0,r.jsx)("p",Object.assign({className:F},{children:`Size: ${Y}`})),(0,r.jsx)("ul",Object.assign({className:L},{children:null==U?void 0:U.map((e=>(0,r.jsx)("li",{children:e},"mobile"+e)))}))]}):(0,r.jsx)("p",Object.assign({className:F},{children:`${X} / ${Y}`})),!H&&(0,r.jsxs)("div",Object.assign({className:k},{children:[(0,r.jsx)("span",Object.assign({onClick:()=>{ie.current-=1,S(ie.current)}},{children:" -"})),(0,r.jsx)("p",{children:K}),(0,r.jsx)("span",Object.assign({onClick:()=>{x<=ie.current?ie.current=x:(ie.current+=1,S(ie.current))}},{children:"+"}))]}))]})),(0,r.jsxs)("div",Object.assign({className:(0,s.a)(T,N)},{children:[(0,r.jsx)(v,{currency:i,price:Number(h),compareAtPrice:D}),(0,r.jsx)("p",Object.assign({onClick:f,className:B},{children:z}))]}))]}))};var A=i(187);const{wrapper:z,wrapperImage:D,wrapperDetails:R,wrapperDetailsPrice:V,wrapperPrice:W,wrapperDetailsSizeAndColor:Q,wrapperQuantity:G,wrapperRemoveBtn:H,wrapperTitle:U,wrapperDetailsProduct:J,wrapperQuantityTab:Y,wrapperList:K}=A.a,X=({item:e,items:t,currency:i,index:s})=>{const[c,o]=(0,a.useState)(e);(0,a.useEffect)((()=>{o(e)}),[e]);const{image:{src:l,alt:d},productName:u,price:p,sizeText:h,currentSize:g,currentColor:m,availableQuantity:x,quantityInCart:j,removeFromCart:f,changeQuantity:S,variantId:w,handle:I,removeLabel:O,colorText:P,quantityText:T,compareAtPrice:N,isFinalSale:_,finalSaleLabel:F,noReturnLabel:k,discountMessage:B,cartMessage:M,isBundleCard:E,variantColors:q,bundleMessage:L}=c,{size:$,quantity:A,color:V,isWarning:X,warningMessage:Z,setIsWarning:ee}=b(g,m,j,x,t,I),te=(0,a.useRef)(A);(0,a.useEffect)((()=>{te.current=A}),[A]),(0,a.useEffect)((()=>{x<=te.current&&(te.current=x),te.current<=1&&(te.current=1)}),[te]);const ie=B.length>0,re=""!==M,ne=_||ie||re||L;return(0,r.jsxs)("div",Object.assign({className:z},{children:[X&&(0,r.jsx)(C.a,{information:Z,setIsWarning:ee,isWarning:X}),(0,r.jsx)("div",Object.assign({className:D},{children:(0,r.jsx)("a",Object.assign({href:`/products/${e.handle}?variant=${w}`},{children:(0,r.jsx)("img",{src:l,alt:d})}))})),(0,r.jsxs)("div",Object.assign({className:R},{children:[(0,r.jsxs)("div",Object.assign({className:J},{children:[(0,r.jsx)("a",Object.assign({className:U,href:`/products/${e.handle}?variant=${w}`},{children:u})),"gift-card"!==I&&(0,r.jsx)("div",Object.assign({className:Q},{children:E?(0,r.jsxs)(n.Fragment,{children:[(0,r.jsx)("div",Object.assign({className:Q},{children:(0,r.jsx)("p",{children:`${h}: ${$}`})})),(0,r.jsx)("ul",Object.assign({className:K},{children:q&&q.map(((e,t)=>(0,r.jsx)("li",{children:e},"desktop"+e)))}))]}):(0,r.jsxs)(n.Fragment,{children:[(0,r.jsx)("p",{children:`${P}: ${V}`}),(0,r.jsx)("p",Object.assign({className:Q},{children:`${h}: ${$}`}))]})})),ne&&(0,r.jsx)(y,{finalSaleLabel:F,noReturnLabel:k,discountMessage:B,isDiscountMessageDefined:ie,showCartMessage:re,cartMessage:M,isFinalSale:_,bundleMessage:L}),(0,r.jsx)("p",Object.assign({onClick:f,className:H},{children:O}))]})),!E&&(0,r.jsxs)("div",Object.assign({className:G},{children:[0===s&&(0,r.jsx)("h3",Object.assign({className:Y},{children:T})),(0,r.jsx)("span",Object.assign({onClick:()=>{te.current-=1,S(te.current)}},{children:"–"})),(0,r.jsx)("p",{children:A}),(0,r.jsx)("span",Object.assign({onClick:()=>{x<=te.current?te.current=x:(te.current+=1,S(te.current))}},{children:"+"}))]})),(0,r.jsx)("div",Object.assign({className:W},{children:(0,r.jsx)(v,{currency:i,price:Number(p),compareAtPrice:N})}))]}))]}))};var Z=i(188),ee=i(9);const{wrapper:te,wrapperSlideInCart:ie,wrapperNoBorders:re,wrapperMobile:ne,wrapperDesktop:ae,wrapperHeading:se,wrapperHeadingTabs:ce,wrapperBtn:oe}=Z.a,le=({items:e,currency:t,productText:i,totalText:c,isSlideInCart:o})=>{const l="navidium-shipping-protection",{width:d}=(0,ee.a)(),u=o||d<1100,[p,v]=(0,a.useState)(null==e?void 0:e.length);return(0,a.useEffect)((()=>v(null==e?void 0:e.length)),[null==e?void 0:e.length]),(0,r.jsxs)("div",Object.assign({className:(0,s.a)(te,re,o&&ie)},{children:[(0,r.jsx)("div",Object.assign({className:se},{children:!o&&(0,r.jsxs)("div",Object.assign({className:ce},{children:[(0,r.jsx)("h3",{children:i}),(0,r.jsx)("h3",{children:c})]}))})),e.length>0&&(null==e?void 0:e.map(((i,a)=>{const s="editable"===i.type,c=s&&i.handle===l,d=s&&"routeins"===i.handle&&"Route"===i.vendor;if(c)return(0,r.jsx)(n.Fragment,{});const p="default"===i.type;return s&&(null==i?void 0:i.isInstantBundle)?(0,r.jsx)(n.Fragment,{}):p||d?(i.handle!==l&&i.removeFromCart(),(0,r.jsx)(n.Fragment,{})):(0,r.jsxs)(n.Fragment,{children:[u&&(0,r.jsx)("div",Object.assign({className:ne},{children:(0,r.jsx)($,{item:i,items:e,currency:t,isSlideInCart:o},i.variantId+i.handle)})),!u&&(0,r.jsx)("div",Object.assign({className:ae},{children:(0,r.jsx)(X,{item:i,items:e,currency:t,index:a,isShippingProtection:c},i.variantId+i.handle+"desktop")}))]})})))]}))}},99:(e,t,i)=>{i.d(t,{a:()=>g});var r=i(0),n=i(1),a=i(2);var s=i(189),c=i(268);const{wrapper:o,wrapperTitle:l,wrapperTitleSlideInCart:d,wrapperBar:u,wrapperFiller:p,wrapperContent:v,wrapperSlideInCart:h}=s.a,g=({title:e,currency:t,freeShippingOnTheAmount:i,freeShippingThresholdType:s,progressCart:g,freeShippingSuccessText:m,isBusy:x,enableCartShippingProgressBar:j=!0,isSlideInCart:f})=>{if(!j)return(0,r.jsx)(n.Fragment,{});const{fillerPercentages:y,isFreeShipping:b,missingAmountForFreeShipping:S}=((e,t,i,r)=>{const n=(0,a.useMemo)((()=>{const i=(e=>{const t=Number(e);return t<0||!Number.isFinite(t)?0:t})(t);let n=0;switch(r){case"cost":n=e.cost;break;case"quantity":case"quantity-split":n=e.quantity}const a=i>0?n/i*100:0;var s;return{missingAmountForFreeShipping:(s=i-n,Math.floor(s)==s?s.toFixed(0):s.toFixed(2)),isFreeShipping:a>=100,fillerPercentages:a<=100?`${String(a)}%`:"100%"}}),[e.cost,e.quantity,i,r,t]);return Object.assign({},n)})(g,i,x,s),[C,w]=(0,a.useState)(!1);(0,a.useEffect)((()=>{x||w(!0)}),[x]);const I=e.replace("_AWAY_","cost"===s?`${t}${S}`:`${S}`);return(0,r.jsx)("div",Object.assign({className:(0,c.a)(o,f&&h)},{children:(0,r.jsxs)("div",Object.assign({className:v},{children:[(0,r.jsx)("p",Object.assign({className:(0,c.a)(l,f&&d)},{children:b?(0,r.jsx)("span",{dangerouslySetInnerHTML:{__html:m}}):C&&(0,r.jsx)("div",{dangerouslySetInnerHTML:{__html:I}})})),(0,r.jsx)("div",Object.assign({className:u},{children:(0,r.jsx)("div",{className:p,style:{width:y}})}))]}))}))}},177:(e,t,i)=>{i.d(t,{a:()=>I});var r=i(0),n=(i(1),i(2)),a=i(268),s=i(178);const{wrapper:c,wrapperOverlay:o,wrapperInput:l,wrapperLabel:d,wrapperInputBlack:u,ldsHourglass:p,wrapperLoaderLeft:v,wrapperLoaderRight:h}=s.a,g=({isChecked:e,isCartEmpty:t,setIsChecked:i,isBusy:n,isGiftCardOnlyInCart:s})=>(0,r.jsxs)("div",Object.assign({className:c},{children:[(t||n||s)&&(0,r.jsx)("div",{className:o}),(0,r.jsx)("input",{className:(0,a.a)(l,u),type:"checkbox",id:"switch",checked:e,onChange:e=>i(e)}),(0,r.jsxs)("label",Object.assign({className:d,for:"switch"},{children:["Toggle",(0,r.jsx)("span",{children:n&&(0,r.jsx)("div",{className:(0,a.a)(p,e?h:v)})})]}))]}));var m=i(4),x=i(179);const{wrapper:j,wrapperIcon:f,wrapperDetails:y,wrapperTitle:b,wrapperSubtile:S,wrapperWithShadow:C,wrapperWithShadowSlideInCart:w}=x.a,I=({descriptionShippingProtectionText:e,isCartEmpty:t,isBusy:i,shippingProtection:s,shippingProtectionText:c,isGiftCardOnlyInCart:o,shippingProtectionIconFlag:l,setIsShippingProtectionEnabled:d,isSlideInCart:u})=>{const[p,v]=(0,n.useState)(!1);(0,n.useEffect)((()=>{v(i)}),[i]);const h=(e=>{switch(e){case"default":default:return(0,r.jsx)(m.K,{});case"v1":return(0,r.jsx)(m.I,{});case"v2":return(0,r.jsx)(m.J,{})}})(l);return(0,r.jsx)("div",Object.assign({className:(0,a.a)(j,C,u&&w)},{children:(0,r.jsxs)("div",Object.assign({className:(0,a.a)(y)},{children:[(0,r.jsx)("div",Object.assign({className:f},{children:h})),(0,r.jsxs)("div",{children:[(0,r.jsx)("p",Object.assign({className:b},{children:c})),(0,r.jsx)("div",{className:S,dangerouslySetInnerHTML:{__html:e}})]}),(0,r.jsx)(g,{isChecked:s,isCartEmpty:t,setIsChecked:e=>{e.preventDefault(),t||p||d(e.target.checked)},isBusy:p,isGiftCardOnlyInCart:o})]}))}))}},176:(e,t,i)=>{i.d(t,{a:()=>B});var r=i(0),n=i(1),a=i(177),s=i(2),c=i(268),o=i(180),l=function(e,t,i,r){return new(i||(i=Promise))((function(n,a){function s(e){try{o(r.next(e))}catch(e){a(e)}}function c(e){try{o(r.throw(e))}catch(e){a(e)}}function o(e){var t;e.done?n(e.value):(t=e.value,t instanceof i?t:new i((function(e){e(t)}))).then(s,c)}o((r=r.apply(e,t||[])).next())}))};const{wrapper:d,wrapperButton:u,wrapperButtonSlideInCart:p,wrapperButtonBlack:v,wrapperButtonLong:h,wrapperForm:g,spinner:m,spinnerPath:x,btnBusy:j}=o.a,f=({hrefContinueShippingButton:e,continueShippingButtonText:t,checkoutButtonText:i,isCartEmpty:a,isBusy:o,shippingProtectionIsInCart:f,shippingProtection:y,updateCart:b,addToCart:S,isSlideInCart:C})=>{const w=(0,s.useRef)(null),I=(0,s.useRef)(null),[O,P]=(0,s.useState)(!1),[T,N]=(0,s.useState)(!1);(0,s.useEffect)((()=>{P(!1),N(!1)}),[]),(0,s.useEffect)((()=>{var e;O&&!o&&(P(!1),null===(e=w.current)||void 0===e||e.click())}),[O,o]),(0,s.useEffect)((()=>{T&&!o&&(N(!1),window.location.href="/cart")}),[T,o]);return a?(0,r.jsx)("div",Object.assign({className:d},{children:(0,r.jsx)("a",Object.assign({ref:I,className:(0,c.a)(u,h),href:e},{children:t}))})):C?(0,r.jsx)("div",Object.assign({className:d},{children:(0,r.jsxs)("a",Object.assign({className:(0,c.a)(u,v,h,u,p),onClick:()=>l(void 0,void 0,void 0,(function*(){if(!o)try{f?yield b():y&&!f&&(yield S()),N(!0)}catch(e){console.error("Error handleURLClick:",e)}}))},{children:["View Cart & Checkout",o&&(0,r.jsxs)(n.Fragment,{children:[(0,r.jsx)("svg",Object.assign({className:m,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.jsxs)(n.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:()=>l(void 0,void 0,void 0,(function*(){o||(f?yield b():y&&!f&&(yield S()),P(!0))})),className:(0,c.a)(u,v)},{children:[i,o&&(0,r.jsxs)(n.Fragment,{children:[(0,r.jsx)("svg",Object.assign({className:m,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 y=i(181);const{wrapper:b,wrapperNew:S,wrapperSlideInCart:C,wrapperSubtotal:w,wrapperSubtotalText:I,wrapperSubtotalAmount:O,wrapperSubtotalTextLarge:P,wrapperSubtotalAmountLarge:T}=y.a,N=({subtotalText:e,subtotalAmount:t,hrefContinueShippingButton:i,continueShippingButtonText:n,checkoutButtonText:a,currency:s,isBusy:o,shippingProtectionIsInCart:l,shippingProtection:d,isCartEmpty:u,cartItemsAmount:p,updateCart:v,addToCart:h,isSlideInCart:g})=>(0,r.jsxs)("div",Object.assign({className:(0,c.a)(b,S,g&&C)},{children:[(0,r.jsxs)("div",Object.assign({className:w},{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)(O,T)},{children:[s,t]}))]})),(0,r.jsx)(f,{hrefContinueShippingButton:i,continueShippingButtonText:n,checkoutButtonText:a,isCartEmpty:u,cartItemsAmount:p,subtotalAmount:t,currency:s,isBusy:o,shippingProtectionIsInCart:l,shippingProtection:d,addToCart:h,updateCart:v,isSlideInCart:g})]}));var _=i(182);const{wrapper:F,wrapperSlideInCart:k}=_.a,B=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 n=0;for(r=Object.getOwnPropertySymbols(e);n<r.length;n++)t.indexOf(r[n])<0&&Object.prototype.propertyIsEnumerable.call(e,r[n])&&(i[r[n]]=e[r[n]])}return i}(e,[]);const{descriptionShippingProtectionText:i,addToCart:s,shippingProtectionIsInCart:o,removeFromCart:l,isCartEmpty:d,isShippingProtectionIsOnlyInCart:u,isSameVariant:p,updateCart:v,isBusy:h,cartItemsAmount:g,shippingProtectionText:m,isGiftCardOnlyInCart:x,shippingProtection:j,shippingProtectionIconFlag:f,setIsShippingProtectionEnabled:y,isSlideInCart:b}=t,S=0!==g;return(0,r.jsx)(n.Fragment,{children:(0,r.jsx)("div",Object.assign({className:(0,c.a)(F,b&&k)},{children:S&&(0,r.jsxs)(n.Fragment,{children:[(0,r.jsx)(a.a,{descriptionShippingProtectionText:i,addToCart:s,shippingProtectionIsInCart:o,removeFromCart:l,isCartEmpty:d,isShippingProtectionIsOnlyInCart:u,isSameVariant:p,updateCart:v,isBusy:h,shippingProtection:j,shippingProtectionText:m,isGiftCardOnlyInCart:x,shippingProtectionIconFlag:f,setIsShippingProtectionEnabled:y,isSlideInCart:b}),(0,r.jsx)(N,Object.assign({},t))]})}))})}},9:(e,t,i)=>{i.d(t,{a:()=>n});var r=i(2);const n=()=>{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}}}]);