(self.webpackChunkwebpackWcBlocksMainJsonp=self.webpackChunkwebpackWcBlocksMainJsonp||[]).push([[345],{2686:(t,o,e)=>{"use strict";e.r(o),e.d(o,{Block:()=>a,default:()=>i});var l=e(1609),n=e(851),s=e(2796),c=e(3566),r=e(1616);e(9644);const a=t=>{const{className:o}=t,e=(0,c.p)(t),{parentClassName:r}=(0,s.useInnerBlockLayoutContext)(),{product:a}=(0,s.useProductDataContext)(),{text:i,class:u}=a.stock_availability;if(!a.id||""===i)return null;const d=a.low_stock_remaining;return(0,l.createElement)("div",{className:(0,n.A)(o,{[`${r}__stock-indicator`]:r,[`wc-block-components-product-stock-indicator--${u}`]:u,"wc-block-components-product-stock-indicator--low-stock":!!d,...t.isDescendantOfAllProducts&&{[e.className]:e.className,"wc-block-components-product-stock-indicator wp-block-woocommerce-product-stock-indicator":!0}}),...t.isDescendantOfAllProducts&&{style:e.style}},i)},i=(0,r.withProductDataContext)(a)},3566:(t,o,e)=>{"use strict";e.d(o,{p:()=>r});var l=e(851),n=e(3993),s=e(92),c=e(6032);const r=t=>{const o=(t=>{const o=(0,n.isObject)(t)?t:{style:{}};let e=o.style;return(0,n.isString)(e)&&(e=JSON.parse(e)||{}),(0,n.isObject)(e)||(e={}),{...o,style:e}})(t),e=(0,c.BK)(o),r=(0,c.aR)(o),a=(0,c.fo)(o),i=(0,s.x)(o);return{className:(0,l.A)(i.className,e.className,r.className,a.className),style:{...i.style,...e.style,...r.style,...a.style}}}},92:(t,o,e)=>{"use strict";e.d(o,{x:()=>n});var l=e(3993);const n=t=>{const o=(0,l.isObject)(t.style.typography)?t.style.typography:{},e=(0,l.isString)(o.fontFamily)?o.fontFamily:"";return{className:t.fontFamily?`has-${t.fontFamily}-font-family`:e,style:{fontSize:t.fontSize?`var(--wp--preset--font-size--${t.fontSize})`:o.fontSize,fontStyle:o.fontStyle,fontWeight:o.fontWeight,letterSpacing:o.letterSpacing,lineHeight:o.lineHeight,textDecoration:o.textDecoration,textTransform:o.textTransform}}}},6032:(t,o,e)=>{"use strict";e.d(o,{BK:()=>i,aR:()=>u,fo:()=>d});var l=e(851),n=e(1194),s=e(9786),c=e(3993);function r(t={}){const o={};return(0,s.getCSSRules)(t,{selector:""}).forEach((t=>{o[t.key]=t.value})),o}function a(t,o){return t&&o?`has-${(0,n.c)(o)}-${t}`:""}function i(t){var o,e,n,s,i,u,d;const{backgroundColor:f,textColor:y,gradient:v,style:k}=t,m=a("background-color",f),p=a("color",y),b=function(t){if(t)return`has-${t}-gradient-background`}(v),g=b||(null==k||null===(o=k.color)||void 0===o?void 0:o.gradient);return{className:(0,l.A)(p,b,{[m]:!g&&!!m,"has-text-color":y||(null==k||null===(e=k.color)||void 0===e?void 0:e.text),"has-background":f||(null==k||null===(n=k.color)||void 0===n?void 0:n.background)||v||(null==k||null===(s=k.color)||void 0===s?void 0:s.gradient),"has-link-color":(0,c.isObject)(null==k||null===(i=k.elements)||void 0===i?void 0:i.link)?null==k||null===(u=k.elements)||void 0===u||null===(d=u.link)||void 0===d?void 0:d.color:void 0}),style:r({color:(null==k?void 0:k.color)||{}})}}function u(t){var o;const e=(null===(o=t.style)||void 0===o?void 0:o.border)||{};return{className:function(t){var o;const{borderColor:e,style:n}=t,s=e?a("border-color",e):"";return(0,l.A)({"has-border-color":!!e||!(null==n||null===(o=n.border)||void 0===o||!o.color),[s]:!!s})}(t),style:r({border:e})}}function d(t){var o;return{className:void 0,style:r({spacing:(null===(o=t.style)||void 0===o?void 0:o.spacing)||{}})}}},9644:()=>{}}]);