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