(self.webpackChunkwebpackWcBlocksFrontendJsonp=self.webpackChunkwebpackWcBlocksFrontendJsonp||[]).push([[724],{3975:(e,t,o)=>{"use strict";o.r(t),o.d(t,{default:()=>u});var l=o(1609),n=o(7723),s=o(851),r=o(2796),a=o(1616),c=o(3249);o(7663);const i=({parentClassName:e,sku:t,className:o,style:r})=>(0,l.createElement)("div",{className:(0,s.A)(o,{[`${e}__product-sku`]:e}),style:r},(0,n.__)("SKU:","woocommerce")," ",(0,l.createElement)("strong",null,t)),u=(0,a.withProductDataContext)((e=>{const{className:t}=e,o=(0,c.p)(e),{parentClassName:n}=(0,r.useInnerBlockLayoutContext)(),{product:a}=(0,r.useProductDataContext)(),u=a.sku;return e.isDescendentOfSingleProductTemplate?(0,l.createElement)(i,{parentClassName:n,className:t,sku:"Product SKU"}):u?(0,l.createElement)(i,{className:t,parentClassName:n,sku:u,...e.isDescendantOfAllProducts&&{className:(0,s.A)(t,"wc-block-components-product-sku wp-block-woocommerce-product-sku",o.className),style:{...o.style}}}):null}))},3249:(e,t,o)=>{"use strict";o.d(t,{p:()=>i});var l=o(851),n=o(3993),s=o(1194),r=o(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,s.c)(t)}-${e}`:""}const i=e=>{const t=(e=>{const t=(0,n.isObject)(e)?e:{style:{}};let o=t.style;return(0,n.isString)(o)&&(o=JSON.parse(o)||{}),(0,n.isObject)(o)||(o={}),{...t,style:o}})(e),o=function(e){var t,o,s,r,i,u,d;const{backgroundColor:m,textColor:y,gradient:f,style:p}=e,v=c("background-color",m),k=c("color",y),g=function(e){if(e)return`has-${e}-gradient-background`}(f),b=g||(null==p||null===(t=p.color)||void 0===t?void 0:t.gradient);return{className:(0,l.A)(k,g,{[v]:!b&&!!v,"has-text-color":y||(null==p||null===(o=p.color)||void 0===o?void 0:o.text),"has-background":m||(null==p||null===(s=p.color)||void 0===s?void 0:s.background)||f||(null==p||null===(r=p.color)||void 0===r?void 0:r.gradient),"has-link-color":(0,n.isObject)(null==p||null===(i=p.elements)||void 0===i?void 0:i.link)?null==p||null===(u=p.elements)||void 0===u||null===(d=u.link)||void 0===d?void 0:d.color:void 0}),style:a({color:(null==p?void 0:p.color)||{}})}}(t),s=function(e){var t;const o=(null===(t=e.style)||void 0===t?void 0:t.border)||{};return{className:function(e){var t;const{borderColor:o,style:n}=e,s=o?c("border-color",o):"";return(0,l.A)({"has-border-color":!!o||!(null==n||null===(t=n.border)||void 0===t||!t.color),[s]:!!s})}(e),style:a({border:o})}}(t),r=function(e){var t;return{className:void 0,style:a({spacing:(null===(t=e.style)||void 0===t?void 0:t.spacing)||{}})}}(t),i=(e=>{const t=(0,n.isObject)(e.style.typography)?e.style.typography:{},o=(0,n.isString)(t.fontFamily)?t.fontFamily:"";return{className:e.fontFamily?`has-${e.fontFamily}-font-family`:o,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,l.A)(i.className,o.className,s.className,r.className),style:{...i.style,...o.style,...s.style,...r.style}}}},7663:()=>{}}]);