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