(globalThis.webpackChunkwebpackWcBlocksFrontendJsonp=globalThis.webpackChunkwebpackWcBlocksFrontendJsonp||[]).push([[724],{1648:(e,t,s)=>{"use strict";s.r(t),s.d(t,{default:()=>f});var o=s(4921),r=s(2796),c=s(1616),n=s(41),a=s(4715),l=s(7723),i=(s(1129),s(790));const u=({setAttributes:e,parentClassName:t,sku:s,className:r,style:c,prefix:n,suffix:u})=>(0,i.jsxs)("div",{className:(0,o.A)(r,"wp-block-post-terms",{[`${t}__product-sku`]:t}),style:c,children:[(0,i.jsx)(a.RichText,{className:"wc-block-components-product-sku__prefix",tagName:"span",placeholder:(0,l.__)("Prefix","woocommerce"),value:n,onChange:t=>e({prefix:t})}),(0,i.jsxs)("span",{children:[" ",s]}),(0,i.jsx)(a.RichText,{className:"wc-block-components-product-sku__suffix",tagName:"span",placeholder:" "+(0,l.__)("Suffix","woocommerce"),value:u,onChange:t=>e({suffix:t})})]}),f=(0,c.withProductDataContext)((e=>{const{className:t}=e,s=(0,n.p)(e),{parentClassName:c}=(0,r.useInnerBlockLayoutContext)(),{product:a}=(0,r.useProductDataContext)(),f=a.sku;return e.isDescendentOfSingleProductTemplate?(0,i.jsx)(u,{setAttributes:e.setAttributes,parentClassName:c,className:t,sku:(0,l.__)("Product SKU","woocommerce"),prefix:e.prefix,suffix:e.suffix}):f?(0,i.jsx)(u,{setAttributes:e.setAttributes,className:t,parentClassName:c,sku:f,prefix:e.prefix,suffix:e.suffix,...e.isDescendantOfAllProducts&&{className:(0,o.A)(t,"wc-block-components-product-sku wp-block-woocommerce-product-sku",s.className),style:{...s.style}}}):null}))},41:(e,t,s)=>{"use strict";s.d(t,{p:()=>i});var o=s(4921),r=s(3993),c=s(7356),n=s(9786);function a(e={}){const t={};return(0,n.getCSSRules)(e,{selector:""}).forEach((e=>{t[e.key]=e.value})),t}function l(e,t){return e&&t?`has-${(0,c.c)(t)}-${e}`:""}const i=e=>{const t=(e=>{const t=(0,r.isObject)(e)?e:{style:{}};let s=t.style;return(0,r.isString)(s)&&(s=JSON.parse(s)||{}),(0,r.isObject)(s)||(s={}),{...t,style:s}})(e),s=function(e){const{backgroundColor:t,textColor:s,gradient:c,style:n}=e,i=l("background-color",t),u=l("color",s),f=function(e){if(e)return`has-${e}-gradient-background`}(c),p=f||n?.color?.gradient;return{className:(0,o.A)(u,f,{[i]:!p&&!!i,"has-text-color":s||n?.color?.text,"has-background":t||n?.color?.background||c||n?.color?.gradient,"has-link-color":(0,r.isObject)(n?.elements?.link)?n?.elements?.link?.color:void 0}),style:a({color:n?.color||{}})}}(t),c=function(e){const t=e.style?.border||{};return{className:function(e){const{borderColor:t,style:s}=e,r=t?l("border-color",t):"";return(0,o.A)({"has-border-color":!!t||!!s?.border?.color,[r]:!!r})}(e),style:a({border:t})}}(t),n=function(e){return{className:void 0,style:a({spacing:e.style?.spacing||{}})}}(t),i=(e=>{const t=(0,r.isObject)(e.style.typography)?e.style.typography:{},s=(0,r.isString)(t.fontFamily)?t.fontFamily:"";return{className:e.fontFamily?`has-${e.fontFamily}-font-family`:s,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,s.className,c.className,n.className),style:{...i.style,...s.style,...c.style,...n.style}}}},1129:()=>{}}]);