"use strict";(self.webpackChunkui=self.webpackChunkui||[]).push([[29],{128:(e,s,l)=>{l.d(s,{a:()=>u});var n=l(0),r=l(4),t=l(47),i=l(3),d=l(29),o=l(88);function a({vendor:e,showVendor:s=!0}){return s&&e?(0,n.jsx)("div",{className:o.a.vendorHero,children:(0,n.jsx)("a",{href:`/collections/${e.toLowerCase().replace(/[^a-z0-9\s-]/g,"").trim().replace(/\s+/g,"-")}`,children:e})}):(0,n.jsx)(r.Fragment,{})}var c=l(73);function u({heroTitle:e,headingLevel:s,isBundle:l}){const{selectedVariant:t,product:d,showVendor:o}=(0,i.c)((e=>({product:e.product,selectedVariant:e.selectedVariant,showVendor:e.showVendor})));return d?(0,n.jsx)(h,{heroTitle:e,product:d,selectedVariant:t,headingLevel:s,showVendor:o,isBundle:l}):(0,n.jsx)(r.Fragment,{})}function h({heroTitle:e,product:s,selectedVariant:l,headingLevel:i="1",showVendor:o=!0,isBundle:u}){var h;const{subtitle:p,title:V}=(0,d.a)(null!==(h=null!=e?e:null==l?void 0:l.productTitle)&&void 0!==h?h:null==s?void 0:s.title);return(0,n.jsxs)(r.Fragment,{children:[(0,n.jsx)(a,{vendor:s.vendor,showVendor:o}),(0,n.jsxs)("div",{class:t.a.titleRow,children:[(0,n.jsx)(c.a,{appearance:"pdp",location:"title",product:s,selectedVariant:l,isBundle:u}),(0,n.jsx)(v,{level:i,cssClass:t.a.productTitle,children:V})]}),(null==l?void 0:l.subtitle)&&(0,n.jsx)(v,{level:(j=i,String(parseInt(j)+1)),cssClass:t.a.productSubtitle,children:p})]});var j}function v({level:e="1",cssClass:s,children:l}){const r=`h${e}`;return(0,n.jsx)(r,{class:s,children:l})}}}]);