"use strict";(self.webpackChunkui=self.webpackChunkui||[]).push([[23],{54:function(e,t,l){var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.ProductHeroTitle=function({heroTitle:e,useSharedState:t,headingLevel:l}){const i=t(),{selectedVariant:n,product:u}=i((e=>({product:e.product,selectedVariant:e.selectedVariant})));return u?(0,r.jsx)(c,{heroTitle:e,product:u,selectedVariant:n,headingLevel:l}):(0,r.jsx)(s.Fragment,{})},t.ProductTitle=c;const r=l(0),s=l(1),n=i(l(31)),u=l(15);function c({heroTitle:e,product:t,selectedVariant:l,headingLevel:i="1"}){var c;const{subtitle:a,title:o}=(0,u.splitTitle)(null!==(c=null!=e?e:null==l?void 0:l.productTitle)&&void 0!==c?c:null==t?void 0:t.title);return(0,r.jsxs)(s.Fragment,{children:[(0,r.jsx)(d,{level:i,cssClass:n.default.productTitle,children:o}),(null==l?void 0:l.subtitle)&&(0,r.jsx)(d,{level:(h=i,String(parseInt(h)+1)),cssClass:n.default.productSubtitle,children:a})]});var h}function d({level:e="1",cssClass:t,children:l}){const i=`h${e}`;return(0,r.jsx)(i,{class:t,children:l})}}}]);