(self.webpackChunkui=self.webpackChunkui||[]).push([[120],{82:(t,e,i)=>{"use strict";i.d(e,{a:()=>n});const n={titleRow:"TTRhC20D",productTitle:"ccRnRBwi __bite_extend __bite_theme_productHeroTitle_productTitle",productSubtitle:"IlO1Pxax __bite_extend __bite_theme_productHeroTitle_productSubtitle",vendor:"Sq7gEpXM __bite_extend __bite_theme_productHeroTitle_vendor"}},118:(t,e,i)=>{"use strict";i.d(e,{a:()=>n});const n={vendorHero:"GstMCSZS"}},20:(t,e,i)=>{"use strict";i.d(e,{a:()=>n});const n={wishlistContainer:"jRlsVCot __bite_extend __bite_theme_wishlistContainer",wishlistButton:"ctbTZqfr jRlsVCot __bite_extend __bite_theme_wishlistContainer __bite_extend __bite_theme_wishlistButton",wishlistButtonIcon:"Iss5I7uB",wishlistButtonPDP:"FdsXzuwl ctbTZqfr jRlsVCot __bite_extend __bite_theme_wishlistContainer __bite_extend __bite_theme_wishlistButton",pdpImageDesktop:"cJBLNq_Q",pdpImageMobile:"VJdwZWfE",wishlistButtonPLP:"X4YRRsog ctbTZqfr jRlsVCot __bite_extend __bite_theme_wishlistContainer __bite_extend __bite_theme_wishlistButton",menuItemLink:"KCUcKOJW menuItemLink __bite_extend __bite_theme_menuItemLink",wishlistNav:"hYyHs83Q jRlsVCot __bite_extend __bite_theme_wishlistContainer",wishlistNavIcon:"jrjh9AQB",wishlistNavLabel:"hryykMDx",wishlistNavCount:"Y5u0ouJF"}},325:(t,e,i)=>{"use strict";var n=i(137),s=i(2),o=i(13),r=i(18);const l=[o.a];s.BentoUI.feature({featureId:"product_hero_title",variations:[s.BentoUI.variation({component:n.a,hydrate:!0,variationId:"default",apps:l,render(t){return e=this,i=arguments,s=function*({globalState:t}){var e;const{props:i}=yield t,n=yield(0,r.a)(i.byteState),s=null==n?void 0:n.product;return!s||(null===(e=s.packCollections)||void 0===e?void 0:e.length)||s.isPack?{html:""}:{props:{}}},new((n=void 0)||(n=Promise))((function(t,o){function r(t){try{a(s.next(t))}catch(t){o(t)}}function l(t){try{a(s.throw(t))}catch(t){o(t)}}function a(e){var i;e.done?t(e.value):(i=e.value,i instanceof n?i:new n((function(t){t(i)}))).then(r,l)}a((s=s.apply(e,i||[])).next())}));var e,i,n,s}})]}),(0,s.createEntrypoint)("product_hero_title",n.a,l)},137:(t,e,i)=>{"use strict";i.d(e,{a:()=>u});var n=i(0),s=i(4),o=i(82),r=i(3),l=i(15),a=i(118);function c({vendor:t,showVendor:e=!0}){return e&&t?(0,n.jsx)("div",{className:a.a.vendorHero,children:(0,n.jsx)("a",{href:`/collections/${t.toLowerCase().replace(/[^a-z0-9\s-]/g,"").trim().replace(/\s+/g,"-")}`,children:t})}):(0,n.jsx)(s.Fragment,{})}var d=i(91);function u({heroTitle:t,headingLevel:e,isBundle:i,apps:{product:o}}){const l=o.product.value,a=o.selectedVariant.value,c=(0,r.d)((t=>t.showVendor));return l?(0,n.jsx)(h,{heroTitle:t,product:l,selectedVariant:a,headingLevel:e,showVendor:c,isBundle:i}):(0,n.jsx)(s.Fragment,{})}function h({heroTitle:t,product:e,selectedVariant:i,headingLevel:r="1",showVendor:a=!0,isBundle:u}){var h;const{subtitle:p,title:v}=(0,l.c)(null!==(h=null!=t?t:null==i?void 0:i.productTitle)&&void 0!==h?h:null==e?void 0:e.title);return(0,n.jsxs)(s.Fragment,{children:[(0,n.jsx)(c,{vendor:e.vendor,showVendor:a}),(0,n.jsxs)("div",{class:o.a.titleRow,children:[(0,n.jsx)(d.a,{appearance:"pdp",location:"title",product:e,selectedVariant:i,isBundle:u}),(0,n.jsx)(_,{level:r,cssClass:o.a.productTitle,children:v})]}),(null==i?void 0:i.subtitle)&&(0,n.jsx)(_,{level:(m=r,String(parseInt(m)+1)),cssClass:o.a.productSubtitle,children:p})]});var m}function _({level:t="1",cssClass:e,children:i}){const s=`h${t}`;return(0,n.jsx)(s,{class:e,children:i})}},91:(t,e,i)=>{"use strict";i.d(e,{a:()=>u});var n=i(0),s=i(1),o=i(65),r=i(20),l=i(41),a=i(15),c=i(49),d=i(3);function u(t){const{product:e,selectedVariant:i,appearance:s,location:o,isBundle:r}=t,{pdpWishlistLoc:l}=(0,d.d)((t=>({pdpWishlistLoc:t.pdpWishlistLoc})));return(0,c.a)()?"pdp"===s&&l!==o?null:i?e.isPack||r||!i||i.parentId?null:(0,n.jsx)(h,Object.assign({},t,{selectedVariant:i})):null:null}function h({appearance:t,product:e,selectedVariant:i,disabled:c=!1,location:u}){var h;const{isMobile:_}=(0,d.d)((t=>({isMobile:t.isMobile}))),{toggleWishlistItem:p,wishlistItems:v,wishlistMode:m}=(0,o.g)(),b=(0,l.b)(e,i),w=(0,s.useMemo)((()=>{const t=i.childProductId;return parseInt(t||e.id)}),[i.childProductId,e.id]),f=(0,s.useMemo)((()=>parseInt(i.variantId)),[i.variantId]),x=(0,s.useMemo)((()=>"undefined"!=typeof window?window.location.origin+b:b),[b]),I=(0,s.useMemo)((()=>v.some((t=>t.variantId===f))),[f,v]),g=(0,s.useMemo)((()=>v.some((t=>t.productId===w))),[w,v]),j=(0,s.useMemo)((()=>{switch(m){case"variant":return I;case"product":return g;default:return!1}}),[m,I,g]),C=(0,s.useCallback)((()=>{void 0!==f&&void 0!==w&&(document.activeElement instanceof HTMLElement&&document.activeElement.blur(),p({epi:f,empi:w,du:x}))}),[p,f,w,x]),[P,B]=(0,s.useState)(!1);(0,s.useLayoutEffect)((()=>{B(!0)}),[]);const L=null!==(h=i.productTitle)&&void 0!==h?h:e.title,M=P&&j,V=M?"Remove":"Add",k=M?"from":"to",T=(0,s.useMemo)((()=>(0,a.b)(L,i.selectedOptions)),[L,i.selectedOptions]),R=T?`${V} ${T} ${k} wishlist`:`${V} ${k} wishlist`,$="pdp"===t?r.a.wishlistButtonPDP:r.a.wishlistButtonPLP,y="image"===u?_?r.a.pdpImageMobile:r.a.pdpImageDesktop:void 0,S=y?`${$} ${y}`:$;return(0,n.jsx)("button",{onClick:C,class:S,"aria-pressed":P&&j,disabled:c,"aria-label":R,children:(0,n.jsx)("div",{className:r.a.wishlistButtonIcon})})}},49:(t,e,i)=>{"use strict";i.d(e,{a:()=>s,b:()=>o});var n=i(3);function s(){return(0,n.d)((t=>t.wishlistEnabled))}function o(){return(0,n.d)((t=>t.wishlistProvider))}},41:(t,e,i)=>{"use strict";i.d(e,{a:()=>r,b:()=>o});var n=i(1),s=i(10);function o(t,e){const i=(0,s.i)();return(0,n.useMemo)((()=>r(t,e,i)),[e,t,i])}function r(t,e,i){const n=null==e?void 0:e.selectedOptions.childProductHandle,o=`/products/${null!=n?n:t.handle}`,r=(0,s.c)(o,i);let l=new URLSearchParams;if(e&&l.set("variant",e.variantId),t.trackingParameters){const e=new URLSearchParams(t.trackingParameters);l=new URLSearchParams([...l,...e])}const a=l.toString();return a?`${r}?${a}`:r}},15:(t,e,i)=>{"use strict";function n(t){const e=null==t?void 0:t.split("|").map((t=>t.trim()));return e?{title:e.shift(),subtitle:e.length>0?e.join(" | "):void 0}:{title:t}}function s(t){return t?(Array.isArray(t)?t.map((({name:t,value:e})=>[t,e])):Object.entries(t)).filter((([t])=>!t.startsWith("_")&&"childProductHandle"!==t)).map((([t,e])=>`${t} ${e}`)).join(", "):""}function o(t,e){const i=s(e);return t?i?`${t}, ${i}`:t:i}function r(t){if(!t)return{text:t,color:void 0};const e=/pre.order/i,i=t.split("-"),n=i.filter((t=>!e.test(t)));if(1===n.length)return{text:t,color:void 0};const s=n[n.length-1].trim();return{text:i.filter((t=>t.trim()!==s)).join("-").trim(),color:s}}i.d(e,{a:()=>s,b:()=>o,c:()=>n,d:()=>r})},12:()=>{}},t=>{t.O(0,[1,2,3,4,5,6,7,8,9,10,11,12,14,13,17,15,16,18,20,19,22,21,24,23,27,25],(()=>t(t.s=325))),t.O()}]);