(globalThis.webpackChunkwebpackWcBlocksFrontendJsonp=globalThis.webpackChunkwebpackWcBlocksFrontendJsonp||[]).push([[105],{6006:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>y});var o=n(1616),s=n(4921),l=n(2796),r=(n(959),n(790));const a=({className:e="",disabled:t=!1,name:n,permalink:o="",target:l,rel:a,style:c,onClick:i,disabledTagName:u="span",...d})=>{const p=(0,s.A)("wc-block-components-product-name",e),y=u;if(t){const e=d;return(0,r.jsx)(y,{className:p,...e,dangerouslySetInnerHTML:{__html:n}})}return(0,r.jsx)("a",{className:p,href:o,target:l,...d,dangerouslySetInnerHTML:{__html:n},style:c})};var c=n(1509),i=n(41);n(7578);const u=({children:e,headingLevel:t,elementType:n=`h${t}`,...o})=>(0,r.jsx)(n,{...o,children:e}),d=(0,o.withProductDataContext)((e=>{const{className:t,headingLevel:n=2,showProductLink:o=!0,linkTarget:d,align:p}=e,y=(0,i.p)(e),{parentClassName:m}=(0,l.useInnerBlockLayoutContext)(),{product:g}=(0,l.useProductDataContext)(),{dispatchStoreEvent:h}=(0,c.y)();return g.id?(0,r.jsx)(u,{headingLevel:n,className:(0,s.A)(t,y.className,"wc-block-components-product-title",{[`${m}__product-title`]:m,[`wc-block-components-product-title--align-${p}`]:p}),style:y.style,children:(0,r.jsx)(a,{disabled:!o,name:g.name,permalink:g.permalink,target:d,onClick:()=>{h("product-view-link",{product:g})}})}):(0,r.jsx)(u,{headingLevel:n,className:(0,s.A)(t,y.className,"wc-block-components-product-title",{[`${m}__product-title`]:m,[`wc-block-components-product-title--align-${p}`]:p}),style:y.style})})),p=JSON.parse('{"uK":{"headingLevel":{"type":"number","default":2},"showProductLink":{"type":"boolean","default":true},"linkTarget":{"type":"string"},"productId":{"type":"number","default":0},"align":{"type":"string"}}}'),y=(0,o.withFilteredAttributes)(p.uK)(d)},41:(e,t,n)=>{"use strict";n.d(t,{p:()=>i});var o=n(4921),s=n(3993),l=n(7356),r=n(9786);function a(e={}){const t={};return(0,r.getCSSRules)(e,{selector:""}).forEach((e=>{t[e.key]=e.value})),t}function c(e,t){return e&&t?`has-${(0,l.c)(t)}-${e}`:""}const i=e=>{const t=(e=>{const t=(0,s.isObject)(e)?e:{style:{}};let n=t.style;return(0,s.isString)(n)&&(n=JSON.parse(n)||{}),(0,s.isObject)(n)||(n={}),{...t,style:n}})(e),n=function(e){const{backgroundColor:t,textColor:n,gradient:l,style:r}=e,i=c("background-color",t),u=c("color",n),d=function(e){if(e)return`has-${e}-gradient-background`}(l),p=d||r?.color?.gradient;return{className:(0,o.A)(u,d,{[i]:!p&&!!i,"has-text-color":n||r?.color?.text,"has-background":t||r?.color?.background||l||r?.color?.gradient,"has-link-color":(0,s.isObject)(r?.elements?.link)?r?.elements?.link?.color:void 0}),style:a({color:r?.color||{}})}}(t),l=function(e){const t=e.style?.border||{};return{className:function(e){const{borderColor:t,style:n}=e,s=t?c("border-color",t):"";return(0,o.A)({"has-border-color":!!t||!!n?.border?.color,[s]:!!s})}(e),style:a({border:t})}}(t),r=function(e){return{className:void 0,style:a({spacing:e.style?.spacing||{}})}}(t),i=(e=>{const t=(0,s.isObject)(e.style.typography)?e.style.typography:{},n=(0,s.isString)(t.fontFamily)?t.fontFamily:"";return{className:e.fontFamily?`has-${e.fontFamily}-font-family`:n,style:{fontSize:e.fontSize?`var(--wp--preset--font-size--${e.fontSize})`:t.fontSize,fontStyle:t.fontStyle,fontWeight:t.fontWeight,letterSpacing:t.letterSpacing,lineHeight:t.lineHeight,textDecoration:t.textDecoration,textTransform:t.textTransform}}})(t);return{className:(0,o.A)(i.className,n.className,l.className,r.className),style:{...i.style,...n.style,...l.style,...r.style}}}},7578:()=>{},959:()=>{}}]);