"use strict";(self.webpackChunkui=self.webpackChunkui||[]).push([[21],{58:function(e,t,l){var r=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 r=t(),{selectedVariant:i,product:d,showVendor:u}=r((e=>({product:e.product,selectedVariant:e.selectedVariant,showVendor:e.showVendor})));return d?(0,s.jsx)(o,{heroTitle:e,product:d,selectedVariant:i,headingLevel:l,showVendor:u}):(0,s.jsx)(n.Fragment,{})},t.ProductTitle=o;const s=l(0),n=l(1),i=r(l(37)),d=l(17);function o({heroTitle:e,product:t,selectedVariant:l,headingLevel:r="1",showVendor:o=!0}){var c;const{subtitle:a,title:h}=(0,d.splitTitle)(null!==(c=null!=e?e:null==l?void 0:l.productTitle)&&void 0!==c?c:null==t?void 0:t.title);return(0,s.jsxs)(n.Fragment,{children:[o&&(0,s.jsx)("div",{class:i.default.vendor,children:t.vendor}),(0,s.jsx)(u,{level:r,cssClass:i.default.productTitle,children:h}),(null==l?void 0:l.subtitle)&&(0,s.jsx)(u,{level:(v=r,String(parseInt(v)+1)),cssClass:i.default.productSubtitle,children:a})]});var v}function u({level:e="1",cssClass:t,children:l}){const r=`h${e}`;return(0,s.jsx)(r,{class:t,children:l})}}}]);