(self.webpackChunkui=self.webpackChunkui||[]).push([[121],{97:(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"}},127:(t,e,i)=>{"use strict";i.d(e,{a:()=>n});const n={vendorHero:"GstMCSZS"}},18:(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"}},343:(t,e,i)=>{"use strict";var n=i(146),s=i(2),r=i(9),o=i(26);const l=[r.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}){const{props:e}=yield t,i=yield(0,o.a)(e.byteState),n=null==i?void 0:i.product;return!n||n.isPack?{html:""}:{props:{}}},new((n=void 0)||(n=Promise))((function(t,r){function o(t){try{a(s.next(t))}catch(t){r(t)}}function l(t){try{a(s.throw(t))}catch(t){r(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((s=s.apply(e,i||[])).next())}));var e,i,n,s}})]}),(0,s.createEntrypoint)("product_hero_title",n.a,l)},146:(t,e,i)=>{"use strict";i.d(e,{a:()=>u});var n=i(0),s=i(4),r=i(97),o=i(3),l=i(10),a=i(127);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(66);function u({heroTitle:t,headingLevel:e,isBundle:i,apps:{product:r}}){const l=r.product.value,a=r.selectedVariant.value,c=(0,o.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:o="1",showVendor:a=!0,isBundle:u}){var h;const{subtitle:p,title:m}=(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:r.a.titleRow,children:[(0,n.jsx)(d.a,{appearance:"pdp",location:"title",product:e,selectedVariant:i,isBundle:u}),(0,n.jsx)(_,{level:o,cssClass:r.a.productTitle,children:m})]}),(null==i?void 0:i.subtitle)&&(0,n.jsx)(_,{level:(v=o,String(parseInt(v)+1)),cssClass:r.a.productSubtitle,children:p})]});var v}function _({level:t="1",cssClass:e,children:i}){const s=`h${t}`;return(0,n.jsx)(s,{class:e,children:i})}},66:(t,e,i)=>{"use strict";i.d(e,{a:()=>u});var n=i(0),s=i(1),r=i(51),o=i(18),l=i(24),a=i(10),c=i(31),d=i(3);function u(t){const{product:e,selectedVariant:i,appearance:s,location:r,isBundle:o}=t,{pdpWishlistLoc:l}=(0,d.d)((t=>({pdpWishlistLoc:t.pdpWishlistLoc})));return(0,c.a)()?"pdp"===s&&l!==r?null:i?e.isPack||o||!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:m,wishlistMode:v}=(0,r.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)((()=>m.some((t=>t.variantId===f))),[f,m]),g=(0,s.useMemo)((()=>m.some((t=>t.productId===w))),[w,m]),j=(0,s.useMemo)((()=>{switch(v){case"variant":return I;case"product":return g;default:return!1}}),[v,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",T=M?"from":"to",k=(0,s.useMemo)((()=>(0,a.b)(L,i.selectedOptions)),[L,i.selectedOptions]),R=k?`${V} ${k} ${T} wishlist`:`${V} ${T} wishlist`,$="pdp"===t?o.a.wishlistButtonPDP:o.a.wishlistButtonPLP,y="image"===u?_?o.a.pdpImageMobile:o.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:o.a.wishlistButtonIcon})})}},31:(t,e,i)=>{"use strict";i.d(e,{a:()=>s,b:()=>r});var n=i(3);function s(){return(0,n.d)((t=>t.wishlistEnabled))}function r(){return(0,n.d)((t=>t.wishlistProvider))}},24:(t,e,i)=>{"use strict";i.d(e,{a:()=>o,b:()=>r});var n=i(1),s=i(11);function r(t,e){const i=(0,s.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,r=`/products/${null!=n?n:t.handle}`,o=(0,s.c)(r,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}},10:(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 r(t,e){const i=s(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 s=n[n.length-1].trim();return{text:i.filter((t=>t.trim()!==s)).join("-").trim(),color:s}}i.d(e,{a:()=>s,b:()=>r,c:()=>n,d:()=>o})},15:()=>{}},t=>{t.O(0,[1,2,3,4,5,6,7,8,9,10,11,12,13,15,14,17,16,18,19,20,21,24,22,23,25,27,28,29],(()=>t(t.s=343))),t.O()}]);