"use strict";(self.webpackChunkui=self.webpackChunkui||[]).push([[42],{19:(t,e,l)=>{l.r(e),l.d(e,{default:()=>i});const i={productTitle:"ccRnRBwi",productSubtitle:"IlO1Pxax"}},201:(t,e,l)=>{const i=l(24);(0,l(2).createEntrypoint)("product_hero_title",i.ProductHeroTitle)},24:function(t,e,l){var i=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0}),e.ProductHeroTitle=function({heroTitle:t,useSharedState:e}){const l=e(),{selectedVariant:i,product:n}=l((t=>({product:t.product,selectedVariant:t.selectedVariant})));return n?(0,r.jsx)(c,{heroTitle:t,product:n,selectedVariant:i}):(0,r.jsx)(u.Fragment,{})},e.ProductTitle=c;const r=l(0),u=l(1),n=i(l(19)),o=l(11);function c({heroTitle:t,product:e,selectedVariant:l}){var i,c;const{subtitle:d,title:s}=(0,o.splitTitle)(null!==(i=null!=t?t:null==l?void 0:l.productTitle)&&void 0!==i?i:null==e?void 0:e.title);return(0,r.jsxs)(u.Fragment,{children:[(0,r.jsx)("h1",{class:n.default.productTitle,children:s}),(0,r.jsx)("h2",{class:n.default.productSubtitle,children:null!==(c=null==l?void 0:l.subtitle)&&void 0!==c?c:d})]})}},11:(t,e)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.splitTitle=function(t){const e=null==t?void 0:t.split("|").map((t=>t.trim()));if(!e)return{title:t};return{title:e.shift(),subtitle:e.length>0?e.join(" | "):void 0}}}},t=>{t.O(0,[1],(()=>t(t.s=201))),t.O()}]);