"use strict";(self.webpackChunkui=self.webpackChunkui||[]).push([[23],{63:function(e,t,r){var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.ProductHeroTitle=function({heroTitle:e,headingLevel:t}){const{selectedVariant:r,product:n,showVendor:o}=(0,i.useBentoShared)((e=>({product:e.product,selectedVariant:e.selectedVariant,showVendor:e.showVendor})));return n?(0,l.jsx)(c,{heroTitle:e,product:n,selectedVariant:r,headingLevel:t,showVendor:o}):(0,l.jsx)(s.Fragment,{})},t.ProductTitle=c;const l=r(0),s=r(3),o=n(r(38)),i=r(4),d=r(23),u=r(113);function c({heroTitle:e,product:t,selectedVariant:r,headingLevel:n="1",showVendor:i=!0}){var c;const{subtitle:h,title:v}=(0,d.splitTitle)(null!==(c=null!=e?e:null==r?void 0:r.productTitle)&&void 0!==c?c:null==t?void 0:t.title);return(0,l.jsxs)(s.Fragment,{children:[(0,l.jsx)(u.VendorLink,{vendor:t.vendor,showVendor:i}),(0,l.jsx)(a,{level:n,cssClass:o.default.productTitle,children:v}),(null==r?void 0:r.subtitle)&&(0,l.jsx)(a,{level:(f=n,String(parseInt(f)+1)),cssClass:o.default.productSubtitle,children:h})]});var f}function a({level:e="1",cssClass:t,children:r}){const n=`h${e}`;return(0,l.jsx)(n,{class:t,children:r})}},113:function(e,t,r){var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.VendorLink=function({vendor:e,showVendor:t=!0}){return t&&e?(0,l.jsx)("div",{className:o.default.vendorHero,children:(0,l.jsx)("a",{href:`/collections/${e.toLowerCase().replace(/[^a-z0-9\s-]/g,"").trim().replace(/\s+/g,"-")}`,children:e})}):(0,l.jsx)(s.Fragment,{})};const l=r(0),s=r(3),o=n(r(72))}}]);