PageSourceSearch

https://baggu.com/_next/static/chunks/1j2fhr5ap99gv.js?dpl=dpl_ABmGPgcVLexrCeKTiZwXQQXS6794

js baggu.com collected 2026-09-24 19:07:48 UTC 23,714 bytes, 5 lines download raw bytes

1;!function(){try { var e="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof global?global:"undefined"!=typeof window?window:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&((e._debugIds|| (e._debugIds={}))[n]="c9e1c2a9-66dd-89ae-50af-97bf456fdb1f")}catch(e){}}();
2(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,641976,735287,45070,522671,547060,524982,35698,476749,237551,663391,973396,110372,375534,331141,e=>{"use strict";let t;function n(e){let t;return()=>(void 0===t&&(t=e()),t)}e.i(262502),e.s(["memo",0,n],735287);let r=n(()=>void 0!==window.ScrollTimeline);class a{constructor(e){this.stop=()=>this.runAll("stop"),this.animations=e.filter(Boolean)}get finished(){return Promise.all(this.animations.map(e=>"finished"in e?e.finished:e))}getAll(e){return this.animations[0][e]}setAll(e,t){for(let n=0;n<this.animations.length;n++)this.animations[n][e]=t}attachTimeline(e,t){let n=this.animations.map(n=>r()&&n.attachTimeline?n.attachTimeline(e):"function"==typeof t?t(n):void 0);return()=>{n.forEach((e,t)=>{e&&e(),this.animations[t].stop()})}}get time(){return this.getAll("time")}set time(e){this.setAll("time",e)}get speed(){return this.getAll("speed")}set speed(e){this.setAll("speed",e)}get startTime(){return this.getAll("startTime")}get duration(){let e=0;for(let t=0;t<this.animations.length;t++)e=Math.max(e,this.animations[t].duration);return e}runAll(e){this.animations.forEach(t=>t[e]())}flatten(){this.runAll("flatten")}play(){this.runAll("play")}pause(){this.runAll("pause")}cancel(){this.runAll("cancel")}complete(){this.runAll("complete")}}e.s(["GroupPlaybackControls",0,class extends a{then(e,t){return Promise.all(this.animations).then(e).catch(t)}}],45070),e.s(["millisecondsToSeconds",0,e=>e/1e3,"secondsToMilliseconds",0,e=>1e3*e],522671),e.s(["calcGeneratorDuration",0,function(e){let t=0,n=e.next(t);for(;!n.done&&t<2e4;)t+=50,n=e.next(t);return t>=2e4?1/0:t},"maxGeneratorDuration",0,2e4],547060),e.i(415199),e.s(["attachTimeline",0,function(e,t){e.timeline=t,e.onfinish=null}],524982);let i=e=>Array.isArray(e)&&"number"==typeof e[0];e.s(["isBezierDefinition",0,i],35698);let l,s=(t=n(()=>{try{document.createElement("div").animate({opacity:0}
2,{easing:"linear(0, 1)"})}catch(e){return!1}return!0}),()=>{var e;return null!=(e=l)?e:t()});e.s(["supportsLinearEasing",0,s],476749);let o=(e,t,n)=>{let r=t-e;return 0===r?1:(n-e)/r};e.s(["progress",0,o],237551);let u=(e,t,n=10)=>{let r="",a=Math.max(Math.round(t/n),2);for(let t=0;t<a;t++)r+=e(o(0,a-1,t))+", ";return`linear(${r.substring(0,r.length-2)})`};e.s(["generateLinearEasing",0,u],663391);let c=([e,t,n,r])=>`cubic-bezier(${e}, ${t}, ${n}, ${r})`,d={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:c([0,.65,.55,1]),circOut:c([.55,0,1,.45]),backIn:c([.31,.01,.66,-.59]),backOut:c([.33,1.53,.69,.99])};e.s(["isWaapiSupportedEasing",0,function e(t){return!!("function"==typeof t&&s()||!t||"string"==typeof t&&(t in d||s())||i(t)||Array.isArray(t)&&t.every(e))},"mapEasingToNativeEasing",0,function e(t,n){if(t)return"function"==typeof t&&s()?u(t,n):i(t)?c(t):Array.isArray(t)?t.map(t=>e(t,n)||d.easeOut):d[t]}],973396),e.s(["getValueTransition",0,function(e,t){return e?e[t]||e.default||e:void 0}],110372),e.s(["isGenerator",0,function(e){return"function"==typeof e}],375534),e.s([],641976),e.s(["resolveElements",0,function(e,t,n){var r;if(e instanceof Element)return[e];if("string"==typeof e){let a=document;t&&(a=t.current);let i=null!=(r=null==n?void 0:n[e])?r:a.querySelectorAll(e);return i?Array.from(i):[]}return Array.from(e)}],331141)},2085,e=>{"use strict";var t=e.i(533337);e.i(641976);var n=e.i(331141);let r={some:0,all:1};e.s(["useInView",0,function(e,{root:a,margin:i,amount:l,once:s=!1}={}){let[o,u]=(0,t.useState)(!1);return(0,t.useEffect)(()=>{if(!e.current||s&&o)return;let t={root:a&&a.current||void 0,margin:i,amount:l};return function(e,t,{root:a,margin:i,amount:l="some"}={}){let s=(0,n.resolveElements)(e),o=new WeakMap,u=new IntersectionObserver(e=>{e.forEach(e=>{let n=o.get(e.target);if(!!n!==e.isIntersecting)if(e.isIntersecting){let n=t(e);"function"==typeof n?o.set(e.target,n):u.unobserve(e.target)}else"function"==typeof n&&(n(e),o.delete(e.target))})},{root:a,rootMargin:i,threshold:"number"==typeof l?l:r[l]});return s.forEach(e=>u.observe(e)),()=>u.disconnect()}(e.current,()=>(u(!0),s?void 0:()=>u(!1)),t)},[a,e,i,s,l]),o}],2085)},642497,e=>{"use strict";var t=e.i(968946),n=e.i(36995),r=e.i(91792),a=e.i(992290),i=e.i(533337),l=e.i(829622),s=e.i(132509),o=e.i(490016),u=e.i(87481),c=e.i(451067),d=e.i(543472),f=e.i(715138),p=e.i(134983),h=e.i(271225);let m=d.useForm;e.s(["default",0,({isDefault:e=!1,onAdd:d=()=>{},pushUpVariant:v=()=>null,pushUpQuantity:g=()=>null,pushUpVariants:b=()=>null,pushUpAvailability:x=()=>null,bundling:y={},disableOutOfStock:w,buttonType:S="primary",updatedVariant:j,formClass:T,showInlinePrice:k=!1,category:C,showQuantity:N=!1,badge:A,slug:E,sanityId:O=null,showVariants:I,addText:$="Add To Cart",productId:D,cmsQuantity:P=1,baseButtonClass:F="h-9 text-10 400:text-14 800:text-16 font-bold flex items-center justify-center w-full rounded-full transition-all",buttonClass:M="text-tan hover:text-white duration-75 hover:font-semibold border-burnt bg-burnt",secondaryClass:_="text-burnt border-burnt hover:text-tan bg-tan duration-200 hover:bg-burnt",stockPlaceholder:R="Notify me",atcStyle:z})=>{let L="SL"===z,U="Adding",{register:W,handleSubmit:q}=m(),[V,G]=(0,i.useState)({}),[Q,B]=(0,i.useState)(!1),[H,K]=(0,i.useState)(!0),[J,X]=(0,i.useState)(!1),[Y,Z]=(0,i.useState)(!1),[ee,et]=(0,i.useState)(!1),[en,er]=(0,i.useState)([]),[ea,ei]=(0,i.useState)({}),[el,es]=(0,i.useState)(!1),[eo,eu]=(0,i.useState)(!0),[ec,ed]=(0,i.useState)(!1),[ef,ep]=(0,i.useState)(!1),[eh,em]=(0,i.useState)(!1),[ev,eg]=(0,i.useState)(P);(0,i.useEffect)(()=>{ei(j)},[j]),(0,i.useEffect)(()=>{x(ee)},[ee]),(0,i.useEffect)(()=>
2{V.title&&ea?.id&&(0,r.updateTriplePixelProduct)({id:D,title:V.title,price:ea.price?.amount,variant:ea.id||""})},[V.title,ea?.id,D]);let{addItemsToCart:eb,customer:ex,storeType:ey,toggleModal:ew}=(0,s.default)(e=>({addItemsToCart:e.addItemsToCart,customer:e.customer,storeType:e.storeType,toggleModal:e.toggleModal}),f.default),eS="frontend"==ey,ej=e=>{e.preventDefault(),X(!0);let t=[];if(t.push({key:"__timestamp",value:`${parseInt((new Date().getTime()/1e3).toFixed(0))}`}),t.push({key:"__originalProductId",value:`${D}`}),E&&t.push({key:"__productSlug",value:E}),V.title&&y&&y?.active&&eS){t.push({key:"__bundlingId",value:y.id});let{cart:e,quantity:n}=y;e.cta&&e.cta2&&n&&(t.push({key:"__bundlingQuantity",value:`${n}`}),t.push({key:"__bundlingInital",value:`${e.cta}`}),t.push({key:"__bundlingMinimum",value:`${e.cta2}`}))}let n=[{merchandiseId:ea.id,quantity:ev,attributes:t}],a=[{id:D,sku:ea.sku,title:V.title,variant:ea,quantity:ev,category:C,price:ea.price.amount}];eb(n).then(()=>{var e;(0,r.addToCart)(a),(0,r.trackTripleWhaleAddToCart)(D,ev,ea.id||""),X(!1),Z(!0),setTimeout(()=>{Z(!1)},2e3),d&&ea.price.amount&&d((e=ea.price.amount,new Intl.NumberFormat("en-US",{style:"currency",currency:"USD"}).format(Number(e)).replace(/\D00(?=\D*$)/,"")))})};(0,i.useEffect)(()=>{K(!0),et(!1),"wholesale"!==ey||"wholesale"===ey&&null!==ex?n.storefront.request(p.productQuery,{id:(0,h.getGlobalID)("Product",D)}).then(e=>{let t=e.product,n=t?.variants.edges;if(t){if(n.length>1){let e=(0,c.default)(t?.variants?.edges,{node:{availableForSale:!0}});e?(et(e.node.availableForSale),ei(e.node),v(e.node)):(et(n[0].node.availableForSale),ei(n[0].node),v(n[0].node))}else et(n[0].node.availableForSale),ei(n[0].node),v(n[0].node);b(n),er(n),G(t)}else eu(!1);K(!1)}):K(!1)},[D,ex,ey]),(0,i.useEffect)(()=>{g(ev)},[ev]),(0,i.useCallback)(async e=>{em(!0),fetch("/api/waitlist-join",{method:"POST",body:e}).then(e=>e.json()).then(t=>{if(t.success){em(!1),ed(!0);try{let t=JSON.parse(e);t.email&&(0,r.trackContact)({email:t.email})}catch(e){console.log("Could not parse waitlist data for Triple Whale tracking")}}t.error&&(em(!1),ep(!0))}).catch(e=>{console.log(e)})});let eT=ee&&ea?.availableForSale&&("wholesale"!==ey||"wholesale"===ey&&null!==ex)&&(L?(0,t.jsx)("form",{className:(0,o.cn)(T,"pointer-events-auto relative block w-full"),onSubmit:ej,onClick:e=>e.stopPropagation(),children:(0,t.jsx)(a.default,{buttonType:L?"SL":S,type:"submit",onClick:e=>e.stopPropagation(),children:(0,t.jsx)("span",{children:J?U:$})})}):(0,t.jsx)("form",{className:(0,o.cn)(T,"pointer-events-auto relative block w-full"),onSubmit:ej,onClick:e=>e.stopPropagation(),children:(0,t.jsxs)(u.m.button,{type:"submit",onClick:e=>e.stopPropagation(),animate:J||Y?"loading":"closed",variants:{closed:{width:28,borderRadius:50},loading:{width:"100%",borderRadius:14}},transition:{duration:.4,ease:"easeInOut"},className:(0,o.cn)("relative h-7 overflow-hidden rounded-full border-2 border-solid border-burnt bg-tan text-10 font-bold uppercase text-burnt 400:font-medium"),style:{minWidth:28,padding:0,display:"block",maxWidth:"none"},children:[(0,t.jsx)("span",{className:(0,o.cn)("absolute inset-0 flex h-full w-full items-center justify-center transition-opacity duration-150 ease-in-out",{"opacity-0":Y||J}),children:(0,t.jsx)(l.PlusElse,{className:"h-3 w-3"})}),(0,t.jsx)("span",{className:(0,o.cn)("absolute inset-0 flex items-center justify-center !text-14 font-bold uppercase text-burnt transition-opacity duration-500 ease-in-out",{"opacity-0":!Y&&!J,"delay-100":Y||J}),children:J?U:"Added"})]})}));return N&&ea&&(i.default.Fragment,ea.availableForSale,el&&!ec&&ea?.availableForSale),!w||ee||ea?.availableForSale||(a.default,(0,o.cn)(!L&&F,!L&&("primary"===S?M:_),"cursor-not-allowed hover:brightness-100 hover:saturate-100")),(0,t.jsx)(i.default.Fragment,{children:!H&&(0,t.jsx)(t.Fragment,{children:eT})})}],642497)},438607,(e,t,n)=>{var r=e.r(947524);t.exports=function(e,t){var n=[];return r(e,function(e,r,a){t(e,r,a)&&n.push(e)}),n}},311950,(e,t,n)=>{var r=e.r(274775),a=e.r(438607),i=e.r(320435),l=e.r(372797);t.exports=function(e,t){return(l(e)?r:a)(e,i(t,3))}},257998,e=>{"use strict";var t=e.i(132509),n=e.i(19517),r=e.i(311950),a=e.i(451067);e.s(["default",0,()=>{let e=(0,t.default)(e=>e.cart),i=(0,t.default)(e=>e.isUpdatingCart),l=(0,t.default)(e=>e.isCartOpen),s=(0,t.default)(e=>e.isNavigatingToCheckout),o=0,u=[],c=[];e&&(c=e.lines.edges,u=(0,r.default)(e.lines.edges,({node:e})=>!(0,a.default)(e.attributes,{key:"_hidden",value:"true"})&&!(0,n.isDeadCartLine)(e)),o=e.totalQuantity);let{addItemsToCart:d,updateItemsInCart:f,toggleCart:p,navigateToCheckout:h}=(0,t.default)(e=>({addItemsToCart:e.addItemsToCart,updateItemsInCart:e.updateItemsInCart,toggleCart:e.toggleCart,navigateToCheckout:e.navigateToCheckout}));return{cart:e,lineItems:u,unfilteredLineItems:c,isCartOpen:l,lineItemCount:o,isUpdatingCart:i,isNavigatingToCheckout:s,addItemsToCart:d,updateItemsInCart:f,toggleCart:p,navigateToCheckout:h}}])},223808,(e,t,n)=>{var r=0/0,a=/^\s+|\s+$/g,i=/^[-+]0x[0-9a-f]+$/i,l=/^0b[01]+$/i,s=/^0o[0-7]+$/i,o=parseInt,u=e.g&&e.g.Object===Object&&e.g,c="object"==typeof self&&self&&self.Object===Object&&self,d=u||c||Function("return this")(),f=Object.prototype.toString,p=Math.max,h=Math.min,m=function(){return d.Date.now()};function v(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function g(e){if("number"==typeof e)return e;if("symbol"==typeof(t=e)||t&&"object"==typeof t&&"[object Symbol]"==f.call(t))return r;if(v(e)){var t,n="function"==typeof e.valueOf?e.valueOf():e;e=v(n)?n+"":n}if("string"!=typeof e)return 0===e?e:+e;e=e.replace(a,"");var u=l.test(e);return u||s.test(e)?o(e.slice(2),u?2:8):i.test(e)?r:+e}t.exports=function(e,t,n){var r,a,i,l,s,o,u=0,c=!1,d=!1,f=!0;if("function"!=typeof e)throw TypeError("Expected a function");function b(t){var n=r,i=a;return r=a=void 0,u=t,l=e.apply(i,n)}function x(e){var n=e-o,r=e-u;return void 0===o||n>=t||n<0||d&&r>=i}function y(){var e,n,r,a=m();if(x(a))return w(a);s=setTimeout(y,(e=a-o,n=a-u,r=t-e,d?h(r,i-n):r))}function w(e){return(s=void 0,f&&r)?b(e):(r=a=void 0,l)}function S(){var e,n=m(),i=x(n);
2if(r=arguments,a=this,o=n,i){if(void 0===s)return u=e=o,s=setTimeout(y,t),c?b(e):l;if(d)return s=setTimeout(y,t),b(o)}return void 0===s&&(s=setTimeout(y,t)),l}return t=g(t)||0,v(n)&&(c=!!n.leading,i=(d="maxWait"in n)?p(g(n.maxWait)||0,t):i,f="trailing"in n?!!n.trailing:f),S.cancel=function(){void 0!==s&&clearTimeout(s),u=0,r=o=a=s=void 0},S.flush=function(){return void 0===s?l:w(m())},S}},685551,(e,t,n)=>{t.exports=function(e){return e!=e}},119120,(e,t,n)=>{t.exports=function(e,t,n){for(var r=n-1,a=e.length;++r<a;)if(e[r]===t)return r;return -1}},91385,(e,t,n)=>{var r=e.r(636339),a=e.r(685551),i=e.r(119120);t.exports=function(e,t,n){return t==t?i(e,t,n):r(e,a,n)}},113619,(e,t,n)=>{var r=e.r(91385);t.exports=function(e,t){return!!(null==e?0:e.length)&&r(e,t,0)>-1}},744040,(e,t,n)=>{t.exports=function(e,t,n){for(var r=-1,a=null==e?0:e.length;++r<a;)if(n(t,e[r]))return!0;return!1}},239392,(e,t,n)=>{var r=e.r(196047),a=e.r(113619),i=e.r(744040),l=e.r(70234),s=e.r(389239),o=e.r(233037),u=Math.min;t.exports=function(e,t,n){for(var c=n?i:a,d=e[0].length,f=e.length,p=f,h=Array(f),m=1/0,v=[];p--;){var g=e[p];p&&t&&(g=l(g,s(t))),m=u(g.length,m),h[p]=!n&&(t||d>=120&&g.length>=120)?new r(p&&g):void 0}g=e[0];var b=-1,x=h[0];e:for(;++b<d&&v.length<m;){var y=g[b],w=t?t(y):y;if(y=n||0!==y?y:0,!(x?o(x,w):c(v,w,n))){for(p=f;--p;){var S=h[p];if(!(S?o(S,w):c(e[p],w,n)))continue e}x&&x.push(w),v.push(y)}}return v}},749980,(e,t,n)=>{t.exports=function(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}},253536,(e,t,n)=>{var r=e.r(749980),a=Math.max;t.exports=function(e,t,n){return t=a(void 0===t?e.length-1:t,0),function(){for(var i=arguments,l=-1,s=a(i.length-t,0),o=Array(s);++l<s;)o[l]=i[t+l];l=-1;for(var u=Array(t+1);++l<t;)u[l]=i[l];return u[t]=n(o),r(e,this,u)}}},884366,(e,t,n)=>{t.exports=function(e){return function(){return e}}},882218,(e,t,n)=>{var r=e.r(698830);t.exports=function(){try{var e=r(Object,"defineProperty");return e({},"",{}),e}catch(e){}}()},382511,(e,t,n)=>{var r=e.r(884366),a=e.r(882218),i=e.r(3765);t.exports=a?function(e,t){return a(e,"toString",{configurable:!0,enumerable:!1,value:r(t),writable:!0})}:i},964553,(e,t,n)=>{var r=Date.now;t.exports=function(e){var t=0,n=0;return function(){var a=r(),i=16-(a-n);if(n=a,i>0){if(++t>=800)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}},724975,(e,t,n)=>{var r=e.r(382511);t.exports=e.r(964553)(r)},380487,(e,t,n)=>{var r=e.r(3765),a=e.r(253536),i=e.r(724975);t.exports=function(e,t){return i(a(e,t,r),e+"")}},583755,(e,t,n)=>{var r=e.r(140062),a=e.r(386457);t.exports=function(e){return a(e)&&r(e)}},796040,(e,t,n)=>{var r=e.r(583755);t.exports=function(e){return r(e)?e:[]}},521760,(e,t,n)=>{var r=e.r(70234),a=e.r(239392),i=e.r(380487),l=e.r(796040);t.exports=i(function(e){var t=r(e,l);return t.length&&t[0]===e[0]?a(t):[]})},367720,370842,120921,121185,e=>{"use strict";var t=e.i(968946),n=e.i(254128),r=e.i(91792),a=e.i(569055),i=e.i(163168),l=e.i(642497),s=e.i(962166),o=e.i(257998),u=e.i(132509),c=e.i(490016),d=e.i(953464),f=e.i(223808),p=e.i(533337);let h=!!("u">typeof window&&window.document&&window.document.createElement);e.s(["default",0,h],370842);let m=e=>"function"==typeof e&&!!e.constructor&&!!e.call&&!!e.apply,v=e=>"u">typeof window&&e in window;e.s(["default",0,v],120921);let g=new Map,b=e=>{g.has(e)||(g.set(e,!0),console.warn(e))};e.s(["default",0,b],121185);let x=(e,t=100)=>{let n=v("ResizeObserver"),r=(0,p.useRef)(null),[a,i]=(0,p.useState)();return h&&!n?void b("ResizeObserver is not supported, this could happen both because window. ResizeObserver is not supported by your current browser or you're using the useResizeObserver hook whilst server side rendering."):((0,p.useEffect)(()=>{if(n){let e=(0,f.default)(e=>{let{bottom:t,height:n,left:r,right:a,top:l,width:s}=e[0].contentRect;i({bottom:t,height:n,left:r,right:a,top:l,width:s})},t);return r.current=new ResizeObserver(e),()=>{var t;e.cancel(),r.current&&m(null==(t=null==r?void 0:r.current)?void 0:t.disconnect)&&r.current.disconnect()}}return()=>{}},[]),(0,p.useEffect)(()=>{var t;n&&e.current&&r.current&&m(null==(t=null==r?void 0:r.current)?void 0:t.observe)&&r.current.observe(e.current)},[e.current]),a)};var y=e.i(2085),w=e.i(521760),S=e.i(715138);e.s(["default",0,({image:e,use:f,images:h=[],filteredColors:m=[],filterMaterials:v=[],className:g,slug:b,inventory:j,resizeEvent:T,badge:k,inventoryTrack:C=!0,mini:N=!1,productCategory:A="",hoverImage:E,_id:O,price:I,cents:$,colorFilterMultiSelect:D,compareAtCents:P,publishDate:F,color:M={},material:_="",parentProduct:R=null,productId:z,outline:L,colorOverride:U,salesChannel:W,wsSalesChannel:q,isDefault:V=!0,productOrder:G,disableOutOfStock:Q,collections:B=[],parentLandingCollection:H,flyingAnimations:K=[],onProductClick:J,onAddToCart:X,atcStyle:Y,eventLabel:Z="ProductCard",eventIndex:ee})=>{let et=void 0!==ee?`${ee}: ${Z}`:Z;!E&&h[1]&&(E=h[1]);let[en,er]=(0,p.useState)(!1),[ea,ei]=(0,p.useState)(!1),el=(0,p.useRef)(),es=x(el),eo=(0,p.useRef)(),eu=x(eo),ec=(0,u.default)(e=>e.hydrateProductCardDimensions),{productCardDimensions:ed,storeType:ef}=(0,u.default)(e=>({productCardDimensions:e.productCardDimensions,storeType:e.storeType}),S.default),{lineItems:ep=[]}=(0,o.default)(),eh=(0,p.useRef)(),em=(0,y.useInView)(eh,{once:!0,amount:1}
2),[ev,eg]=(0,p.useState)(0),[eb,ex]=(0,p.useState)(!1),[ey,ew]=(0,p.useState)(!1),[eS,ej]=(0,p.useState)({}),[eT,ek]=(0,p.useState)(j||0),[eC,eN]=(0,p.useState)(!1);R?.title;let eA=R?.bundling,eE=eA?.active&&"frontend"==ef,eO=(0,p.useCallback)(e=>{let t=0,n=eA?.id;e.forEach(({node:e})=>{let{attributes:r,quantity:a}=e;for(let e=0;e<r.length;e++)r[e].value==n&&(t+=a)}),eg(t)},[eA]),eI=[...B];H&&(eI=[...eI,...H.collections]);let[e$,eD]=(0,p.useState)(!1),[eP,eF]=(0,p.useState)(!1),[eM,e_]=(0,p.useMemo)(()=>{let e=W&&W[0]&&new Date(W[0].publishDate),t=new Date;return[e?.toLocaleString(),t.toLocaleString()]},[W]),eR=()=>{J?J():(0,r.productClick)({title:R?.title,productId:z,cents:$,variant:eS})};function ez(e){if(e)return e.map(e=>e._id)}return(0,p.useEffect)(()=>{es&&eu&&0===G&&ec({imageWidth:es.width,imageHeight:es.height,cardWidth:eu.width,cardHeight:eu.height})},[es,eu,ec,G]),(0,p.useEffect)(()=>{ei(!0),er("ontouchstart"in window)},[]),(0,p.useEffect)(()=>{(eb&&!ey||g?.includes("cart-upsell-variant")||N)&&ew(!0)},[eb,ey,g,N]),(0,p.useEffect)(()=>{ep&&eO(ep)},[ep,eO]),(0,p.useEffect)(()=>{!1===eS.availableForSale&&ek(0)},[eS]),(0,p.useEffect)(()=>{eD(!0)},[]),(0,p.useEffect)(()=>{eM&&new Date(eM).getTime()>new Date(e_).getTime()&&eF(!0)},[eM,e_]),(0,t.jsxs)("div",{ref:eh,onMouseOver:()=>ex(!0),onMouseLeave:()=>ex(!1),className:(0,c.cn)("relative",g,{hidden:m.length>0&&!(0,w.default)(ez(m),ez(D)).length,"cart-upsell-variant":g?.includes("cart-upsell-variant")}),style:{color:U?.value},children:[k&&(0,t.jsx)("span",{className:"absolute left-side top-side z-30 text-12 font-semibold uppercase leading-none text-accent 800:text-14",children:k}),e$&&!1==eS.availableForSale&&(0,t.jsx)("div",{className:(0,c.cn)("absolute right-[6px] top-1 z-30 text-14 font-bold uppercase leading-none tracking-tight text-accent",{"text-14":V,"text-12":N}),children:"Sold Out"}),(0,t.jsx)("div",{ref:eo,className:"",url:`/products/${b}`,children:(0,t.jsxs)("div",{children:[(0,t.jsxs)("div",{className:(0,c.cn)("relative",{"drawn-product":L}),children:[(0,t.jsx)("div",{className:(0,c.cn)("pointer-events-none absolute bottom-0 left-0 right-0 z-[15] flex items-end p-1",{hidden:!ea,"block 800:hidden":ea&&!en&&!N,block:ea&&(en||N)}),children:(0,t.jsx)(l.default,{pushUpVariant:e=>ej(e),formClass:"w-full",bundling:eA,sanityId:O,category:A,buttonType:"secondaryClass",productId:z,showQuantity:!1,slug:b,disableOutOfStock:Q||!1,isDefault:V,onAdd:X,atcStyle:Y})}),!N&&(ey||eP)&&(0,t.jsx)("div",{className:(0,c.cn)("absolute bottom-0 z-30 w-full p-side duration-100",{"opacity-0":!eb&&!eP,"opacity-100":eP||eb,hidden:!ea||en,"hidden 800:block":ea&&!en}),children:(0,t.jsx)(n.default,{pushUpVariant:e=>ej(e),updatedVariant:eS,formClass:"w-full",bundling:eA,sanityId:O,category:A,buttonType:"secondaryClass",productId:z,colorOverride:U,slug:b,showQuantity:!1,disableOutOfStock:Q||!1,headless:W,wsHeadless:q,onAdd:X,atcStyle:Y})}),(0,t.jsx)("div",{className:(0,c.cn)("w-full",{"relative aspect-[4/5] overflow-hidden":g?.includes("cart-upsell-variant")||"productCard"===f||"productCarousel"===f}),ref:0===G?el:null,children:(0,t.jsxs)(i.default,{cb:eR,eventLabel:et,url:`/products/${b}`,className:(0,c.cn)({"block h-full w-full":g?.includes("cart-upsell-variant")||"productCard"===f||"productCarousel"===f}),children:[(0,t.jsx)(s.default,{use:f,url:e,className:"relative h-full w-full object-cover",alt:`${R&&R.title} - ${M?.colorName}`,fill:g?.includes("cart-upsell-variant"),width:g?.includes("cart-upsell-variant")?200:void 0,height:g?.includes("cart-upsell-variant")?240:void 0}),em&&E&&ea&&!en&&(0,t.jsx)(s.default,{className:(0,c.cn)("absolute inset-0 top-0 z-10 h-full w-full object-cover opacity-0 transition-opacity delay-100 duration-150",{"opacity-0":!eb,"opacity-100":eb}),use:f,url:E,alt:`${R&&R.title} - ${M?.colorName}`})]})}),eA&&eE&&eA.collection&&eS.availableForSale&&!P&&ev&&eA.quantity&&eA.collection.cta?(0,t.jsx)("span",{className:"absolute right-side top-side z-30 text-14 font-semibold uppercase leading-none",children:eA.collection.cta}):null]}),(0,t.jsxs)(i.default,{cb:eR,eventLabel:et,url:`/products/${b}
2`,className:(0,c.cn)("flex justify-between pt-1 text-14 leading-tight tracking-snug antialiased",{"flex-row-reverse text-12 800:gap-6":V||g?.includes("cart-upsell-variant"),"!gap-2":N,"flex-row px-side":!V}),children:[(0,t.jsxs)("div",{className:(0,c.cn)({"grow text-14 800:text-14":V,"pr-[1px] !text-12 leading-none":N}),children:[(0,t.jsx)("h3",{className:(0,c.cn)({"font-bold tracking-tight":V,"font-medium":!V}),children:R&&R.title}),(0,t.jsxs)("span",{className:(0,c.cn)({"hidden 800:block":N}),children:[(0,t.jsx)("span",{className:(0,c.cn)({"font-bold italic":V,"font-medium italic":!V,"pr-[1px] text-12 italic":N}),children:M?.colorName})," ",R?.count>1&&(0,t.jsxs)("span",{style:{color:U?.value,opacity:.5},className:(0,c.cn)("ml-0.5 inline-block uppercase text-black/50 antialiased",{"font-bold":V,"text-[10px] font-semibold leading-tight tracking-normal 800:font-medium 1200:text-[11px]":!V}),children:["+ ",R.count-1," more"]})]})]}),(0,t.jsx)(t.Fragment,{children:P?(0,t.jsxs)("span",{className:(0,c.cn)({"text-12":N,"text-14 leading-[1.2]":V}),children:[(0,t.jsx)("span",{className:(0,c.cn)("pr-1 text-[#838383] line-through",{"font-bold":V,"font-normal":!V}),children:(0,d.default)(P)}),(0,t.jsx)("span",{className:(0,c.cn)("text-accent",{"font-bold":V,"font-normal":!V}),children:$&&$.cents?(0,d.default)($.cents):(0,d.default)($)})]}):(0,t.jsxs)("span",{className:(0,c.cn)({"!text-12 leading-none":N,"pr-2 text-14 800:pr-0":V}),children:[(0,t.jsx)("span",{className:(0,c.cn)({"line-through":eA&&eE&&ev>=eA?.quantity&&eA?.pricePerUnit*100!==$,"font-bold":V,"font-normal":!V}),children:$&&$.cents?(0,d.default)($.cents):(0,d.default)($)}),eA&&eE&&ev>=eA?.quantity&&eA?.pricePerUnit*100!==$&&(0,t.jsx)("span",{className:(0,c.cn)("ml-1.5 tracking-tight text-accent",{"font-bold":V,"font-normal":!V}),children:`${eA?.pricePerUnit}`})]})})]})]})}),K?.map((e,n)=>(0,t.jsx)(a.default,{value:e},`flying-${n}`))]})}],367720)}]);
3
4//# debugId=c9e1c2a9-66dd-89ae-50af-97bf456fdb1f
5//# sourceMappingURL=25qy8lbj38phn.js.map

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.