(self.webpackChunkui=self.webpackChunkui||[]).push([[119],{89:(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"}},119:(t,e,i)=>{"use strict";i.d(e,{a:()=>n});const n={vendorHero:"GstMCSZS"}},22:(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"}},340:(t,e,i)=>{"use strict";var n=i(139),r=i(2),s=i(14),o=i(19);const l=[s.a];r.BentoUI.feature({featureId:"product_hero_title",variations:[r.BentoUI.variation({component:n.a,hydrate:!0,variationId:"default",apps:l,render(t){return e=this,i=arguments,r=function*({globalState:t}){var e;const{props:i}=yield t,n=yield(0,o.a)(i.byteState),r=null==n?void 0:n.product;return!r||(null===(e=r.packCollections)||void 0===e?void 0:e.length)||r.isPack?{html:""}:{props:{}}},new((n=void 0)||(n=Promise))((function(t,s){function o(t){try{a(r.next(t))}catch(t){s(t)}}function l(t){try{a(r.throw(t))}catch(t){s(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(o,l)}a((r=r.apply(e,i||[])).next())}));var e,i,n,r}})]}),(0,r.createEntrypoint)("product_hero_title",n.a,l)},139:(t,e,i)=>{"use strict";i.d(e,{a:()=>u});var n=i(0),r=i(3),s=i(89),o=i(4),l=i(16),a=i(119);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)(r.Fragment,{})}var d=i(85);function u({heroTitle:t,headingLevel:e,isBundle:i,apps:{product:s}}){const l=s.product.value,a=s.selectedVariant.value,c=(0,o.d)((t=>t.showVendor));return l?(0,n.jsx)(_,{heroTitle:t,product:l,selectedVariant:a,headingLevel:e,showVendor:c,isBundle:i}):(0,n.jsx)(r.Fragment,{})}function _({heroTitle:t,product:e,selectedVariant:i,headingLevel:o="1",showVendor:a=!0,isBundle:u}){var _;const{subtitle:p,title:v}=(0,l.c)(null!==(_=null!=t?t:null==i?void 0:i.productTitle)&&void 0!==_?_:null==e?void 0:e.title);return(0,n.jsxs)(r.Fragment,{children:[(0,n.jsx)(c,{vendor:e.vendor,showVendor:a}),(0,n.jsxs)("div",{class:s.a.titleRow,children:[(0,n.jsx)(d.a,{appearance:"pdp",location:"title",product:e,selectedVariant:i,isBundle:u}),(0,n.jsx)(h,{level:o,cssClass:s.a.productTitle,children:v})]}),(null==i?void 0:i.subtitle)&&(0,n.jsx)(h,{level:(b=o,String(parseInt(b)+1)),cssClass:s.a.productSubtitle,children:p})]});var b}function h({level:t="1",cssClass:e,children:i}){const r=`h${t}`;return(0,n.jsx)(r,{class:e,children:i})}},45:(t,e,i)=>{"use strict";i.d(e,{a:()=>o,b:()=>s});var n=i(1),r=i(10);function s(t,e){const i=(0,r.i)();return(0,n.useMemo)((()=>o(t,e,i)),[e,t,i])}function o(t,e,i){const n=null==e?void 0:e.selectedOptions.childProductHandle,s=`/products/${null!=n?n:t.handle}`,o=(0,r.c)(s,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?`${o}?${a}`:o}},16:(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 r(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 s(t,e){const i=r(e);return t?i?`${t}, ${i}`:t:i}function o(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 r=n[n.length-1].trim();return{text:i.filter((t=>t.trim()!==r)).join("-").trim(),color:r}}i.d(e,{a:()=>r,b:()=>s,c:()=>n,d:()=>o})},13:()=>{}},t=>{t.O(0,[1,2,3,4,5,6,7,8,9,10,11,12,14,13,16,15,17,18,20,19,21,23,25,22,24,28,26,44],(()=>t(t.s=340))),t.O()}]);