"use strict";(self.webpackChunkshopwp=self.webpackChunkshopwp||[]).push([["ProductTitle-public"],{OXiE:function(t,e,i){i.r(e);var s=i("LpH3"),n=i("U039"),l=i("dGr1"),a=i("iPOl"),o=i("Qu7M"),p=i("FG1g"),r=wp.element.lazy((function(){return i.e("Link-public").then(i.bind(i,"Y2m9"))}));function c(t){var e="h".concat(shopwp.misc.isSingularProducts?"1":"2"),i=wp.hooks.applyFilters("product.titleText",t.title,t.product);return(0,s.tZ)(React.Fragment,null,(0,s.tZ)(l.ce,{name:"before.productTitle",args:[t]}),(0,s.tZ)(e,{itemProp:"name",content:i,className:t.classList,css:t.styles},i),(0,s.tZ)(l.ce,{name:"after.productTitle",args:[t]}))}e.default=wp.element.memo((function(){var t=(0,o.Q)(),e=(0,p.C)(),i=(0,s.iv)("&&{font-family:",t.settings.titleTypeFontFamily?t.settings.titleTypeFontFamily:"inherit",";font-weight:",t.settings.titleTypeFontWeight?t.settings.titleTypeFontWeight:"initial",";font-size:",t.settings.titleTypeFontSize?t.settings.titleTypeFontSize:t.settings.titleSize,";letter-spacing:",t.settings.titleTypeLetterSpacing?t.settings.titleTypeLetterSpacing:"initial",";line-height:",t.settings.titleTypeLineHeight?t.settings.titleTypeLineHeight:"initial",";text-decoration:",t.settings.titleTypeTextDecoration?t.settings.titleTypeTextDecoration:"initial",";text-transform:",t.settings.titleTypeTextTransform?t.settings.titleTypeTextTransform:"initial",";font-style:",t.settings.titleTypeFontStyle?t.settings.titleTypeFontStyle:"initial",";color:",t.settings.titleColor,";white-space:normal;margin:0;};label:titleStyles;"),g=(0,s.iv)("margin-bottom:",t.settings.isSingleComponent?"0px":"10px",";;label:titleStylesWrapper;");return(0,n.vI)((0,s.tZ)("div",{className:"wps-component wps-component-products-title","aria-label":"Product Title","data-wps-component-order":"0",css:g},(0,a.AH)(t.settings)?(0,s.tZ)(r,{type:"products",payload:e.payload,target:t.settings.linkTarget,linkTo:t.settings.linkTo},(0,s.tZ)(c,{styles:i,title:e.payload.title,classList:t.settings.titleClassName,product:e.payload})):(0,s.tZ)(c,{styles:i,title:e.payload.title,classList:t.settings.titleClassName,product:e.payload})),(0,l.tu)(t.settings.dropzoneProductTitle))}))}}]);