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