"use strict";(self.webpackChunkui=self.webpackChunkui||[]).push([[50],{44:(t,e,l)=>{l.r(e),l.d(e,{default:()=>i});const i={productTitle:"ccRnRBwi",productSubtitle:"IlO1Pxax"}},198:(t,e,l)=>{const i=l(20);(0,l(2).createEntrypoint)("product_hero_title",i.ProductHeroTitle)},20: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.ProductTitle=e.ProductHeroTitle=void 0;const r=l(0),u=l(1),o=i(l(44)),n=l(11);function c({heroTitle:t,product:e,selectedVariant:l}){var i,c;const{subtitle:s,title:d}=(0,n.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",Object.assign({class:o.default.productTitle},{children:d})),(0,r.jsx)("h2",Object.assign({class:o.default.productSubtitle},{children:null!==(c=null==l?void 0:l.subtitle)&&void 0!==c?c:s}))]})}e.ProductHeroTitle=function({heroTitle:t,useSharedState:e}){const l=e(),{selectedVariant:i,product:o}=l((t=>({product:t.product,selectedVariant:t.selectedVariant})));return o?(0,r.jsx)(c,{heroTitle:t,product:o,selectedVariant:i}):(0,r.jsx)(u.Fragment,{})},e.ProductTitle=c},11:(t,e)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.splitTitle=void 0,e.splitTitle=function(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}}}},t=>{t.O(0,[1],(()=>t(t.s=198))),t.O()}]);