(self.webpackChunkwebpackWcBlocksFrontendJsonp=self.webpackChunkwebpackWcBlocksFrontendJsonp||[]).push([[6925],{1529:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>f});var l=n(721),o=n(9196),r=n(7608),s=n.n(r),a=n(2864),c=n(8752),i=n(2629);n(333);const u=({className:e="",disabled:t=!1,name:n,permalink:l="",target:r,rel:a,style:c,onClick:u,...d})=>{const m=s()("wc-block-components-product-name",e);if(t){const e=d;return(0,o.createElement)("span",{className:m,...e,dangerouslySetInnerHTML:{__html:(0,i.decodeEntities)(n)}})}return(0,o.createElement)("a",{className:m,href:l,target:r,...d,dangerouslySetInnerHTML:{__html:(0,i.decodeEntities)(n)},style:c})};var d=n(8360),m=n(947);n(9375);const p=({children:e,headingLevel:t,elementType:n=`h${t}`,...l})=>(0,o.createElement)(n,{...l},e),y=(0,l.withProductDataContext)((e=>{const{className:t,headingLevel:n=2,showProductLink:l=!0,linkTarget:r,align:i}=e,y=(0,m.F)(e),{parentClassName:v}=(0,a.useInnerBlockLayoutContext)(),{product:g}=(0,a.useProductDataContext)(),{dispatchStoreEvent:f}=(0,d.n)();return g.id?(0,o.createElement)(p,{headingLevel:n,className:s()(t,y.className,"wc-block-components-product-title",{[`${v}__product-title`]:v,[`wc-block-components-product-title--align-${i}`]:i&&(0,c.uq)()}),style:(0,c.uq)()?y.style:{}},(0,o.createElement)(u,{disabled:!l,name:g.name,permalink:g.permalink,target:r,onClick:()=>{f("product-view-link",{product:g})}})):(0,o.createElement)(p,{headingLevel:n,className:s()(t,y.className,"wc-block-components-product-title",{[`${v}__product-title`]:v,[`wc-block-components-product-title--align-${i}`]:i&&(0,c.uq)()}),style:(0,c.uq)()?y.style:{}})}));let v={headingLevel:{type:"number",default:2},showProductLink:{type:"boolean",default:!0},linkTarget:{type:"string"},productId:{type:"number",default:0}};(0,c.uq)()&&(v={...v,align:{type:"string"}});const g=v,f=(0,l.withFilteredAttributes)(g)(y)},947:(e,t,n)=>{"use strict";n.d(t,{F:()=>c});var l=n(7608),o=n.n(l),r=n(6946),s=n(3392),a=n(172);const c=e=>{const t=(e=>{const t=(0,r.isObject)(e)?e:{style:{}};let n=t.style;return(0,r.isString)(n)&&(n=JSON.parse(n)||{}),(0,r.isObject)(n)||(n={}),{...t,style:n}})(e),n=(0,a.vc)(t),l=(0,a.l8)(t),c=(0,a.su)(t),i=(0,s.f)(t);return{className:o()(i.className,n.className,l.className,c.className),style:{...i.style,...n.style,...l.style,...c.style}}}},3392:(e,t,n)=>{"use strict";n.d(t,{f:()=>o});var l=n(6946);const o=e=>{const t=(0,l.isObject)(e.style.typography)?e.style.typography:{},n=(0,l.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}}}},172:(e,t,n)=>{"use strict";n.d(t,{l8:()=>d,su:()=>m,vc:()=>u});var l=n(7608),o=n.n(l),r=n(7427),s=n(2289),a=n(6946);function c(e={}){const t={};return(0,s.getCSSRules)(e,{selector:""}).forEach((e=>{t[e.key]=e.value})),t}function i(e,t){return e&&t?`has-${(0,r.o)(t)}-${e}`:""}function u(e){var t,n,l,r,s,u,d;const{backgroundColor:m,textColor:p,gradient:y,style:v}=e,g=i("background-color",m),f=i("color",p),k=function(e){if(e)return`has-${e}-gradient-background`}(y),h=k||(null==v||null===(t=v.color)||void 0===t?void 0:t.gradient);return{className:o()(f,k,{[g]:!h&&!!g,"has-text-color":p||(null==v||null===(n=v.color)||void 0===n?void 0:n.text),"has-background":m||(null==v||null===(l=v.color)||void 0===l?void 0:l.background)||y||(null==v||null===(r=v.color)||void 0===r?void 0:r.gradient),"has-link-color":(0,a.isObject)(null==v||null===(s=v.elements)||void 0===s?void 0:s.link)?null==v||null===(u=v.elements)||void 0===u||null===(d=u.link)||void 0===d?void 0:d.color:void 0}),style:c({color:(null==v?void 0:v.color)||{}})}}function d(e){var t;const n=(null===(t=e.style)||void 0===t?void 0:t.border)||{};return{className:function(e){var t;const{borderColor:n,style:l}=e,r=n?i("border-color",n):"";return o()({"has-border-color":!!n||!(null==l||null===(t=l.border)||void 0===t||!t.color),[r]:!!r})}(e),style:c({border:n})}}function m(e){var t;return{className:void 0,style:c({spacing:(null===(t=e.style)||void 0===t?void 0:t.spacing)||{}})}}},9375:()=>{},333:()=>{}}]);