(self.webpackChunkwebpackWcBlocksJsonp=self.webpackChunkwebpackWcBlocksJsonp||[]).push([[5445],{789:(o,t,n)=>{"use strict";n.r(t),n.d(t,{Block:()=>u,default:()=>d});var c=n(9196),e=n(5736),s=n(4184),l=n.n(s),r=n(2864),a=n(3611),i=n(721);n(39);const u=o=>{const{className:t}=o,n=(0,a.F)(o),{parentClassName:s}=(0,r.useInnerBlockLayoutContext)(),{product:i}=(0,r.useProductDataContext)();if(!i.id)return null;const u=!!i.is_in_stock,d=i.low_stock_remaining,k=i.is_on_backorder;return(0,c.createElement)("div",{className:l()(t,{[`${s}__stock-indicator`]:s,"wc-block-components-product-stock-indicator--in-stock":u,"wc-block-components-product-stock-indicator--out-of-stock":!u,"wc-block-components-product-stock-indicator--low-stock":!!d,"wc-block-components-product-stock-indicator--available-on-backorder":!!k,...o.isDescendantOfAllProducts&&{[n.className]:n.className,"wc-block-components-product-stock-indicator wp-block-woocommerce-product-stock-indicator":!0}}),...o.isDescendantOfAllProducts&&{style:n.style}},(({isInStock:o=!1,isLowStock:t=!1,lowStockAmount:n=null,isOnBackorder:c=!1})=>t&&null!==n?(0,e.sprintf)(/* translators: %d stock amount (number of items in stock for product) */
(0,e.__)("%d left in stock","woocommerce"),n):c?(0,e.__)("Available on backorder","woocommerce"):o?(0,e.__)("In stock","woocommerce"):(0,e.__)("Out of stock","woocommerce"))({isInStock:u,isLowStock:!!d,lowStockAmount:d,isOnBackorder:k}))},d=(0,i.withProductDataContext)(u)},3611:(o,t,n)=>{"use strict";n.d(t,{F:()=>i});var c=n(4184),e=n.n(c),s=n(7884),l=n(2646),r=n(1473),a=n(2661);const i=o=>{const t=(o=>{const t=(0,s.Kn)(o)?o:{style:{}};let n=t.style;return(0,l.H)(n)&&(n=JSON.parse(n)||{}),(0,s.Kn)(n)||(n={}),{...t,style:n}})(o),n=(0,a.vc)(t),c=(0,a.l8)(t),i=(0,a.su)(t),u=(0,r.f)(t);return{className:e()(u.className,n.className,c.className,i.className),style:{...u.style,...n.style,...c.style,...i.style}}}},1473:(o,t,n)=>{"use strict";n.d(t,{f:()=>s});var c=n(7884),e=n(2646);const s=o=>{const t=(0,c.Kn)(o.style.typography)?o.style.typography:{},n=(0,e.H)(t.fontFamily)?t.fontFamily:"";return{className:o.fontFamily?`has-${o.fontFamily}-font-family`:n,style:{fontSize:o.fontSize?`var(--wp--preset--font-size--${o.fontSize})`:t.fontSize,fontStyle:t.fontStyle,fontWeight:t.fontWeight,letterSpacing:t.letterSpacing,lineHeight:t.lineHeight,textDecoration:t.textDecoration,textTransform:t.textTransform}}}},2661:(o,t,n)=>{"use strict";n.d(t,{l8:()=>d,su:()=>k,vc:()=>u});var c=n(4184),e=n.n(c),s=n(9784),l=n(2289),r=n(7884);function a(o={}){const t={};return(0,l.getCSSRules)(o,{selector:""}).forEach((o=>{t[o.key]=o.value})),t}function i(o,t){return o&&t?`has-${(0,s.o)(t)}-${o}`:""}function u(o){var t,n,c,s,l,u,d;const{backgroundColor:k,textColor:f,gradient:p,style:b}=o,v=i("background-color",k),y=i("color",f),m=function(o){if(o)return`has-${o}-gradient-background`}(p),g=m||(null==b||null===(t=b.color)||void 0===t?void 0:t.gradient);return{className:e()(y,m,{[v]:!g&&!!v,"has-text-color":f||(null==b||null===(n=b.color)||void 0===n?void 0:n.text),"has-background":k||(null==b||null===(c=b.color)||void 0===c?void 0:c.background)||p||(null==b||null===(s=b.color)||void 0===s?void 0:s.gradient),"has-link-color":(0,r.Kn)(null==b||null===(l=b.elements)||void 0===l?void 0:l.link)?null==b||null===(u=b.elements)||void 0===u||null===(d=u.link)||void 0===d?void 0:d.color:void 0}),style:a({color:(null==b?void 0:b.color)||{}})}}function d(o){var t;const n=(null===(t=o.style)||void 0===t?void 0:t.border)||{};return{className:function(o){var t;const{borderColor:n,style:c}=o,s=n?i("border-color",n):"";return e()({"has-border-color":!!n||!(null==c||null===(t=c.border)||void 0===t||!t.color),[s]:!!s})}(o),style:a({border:n})}}function k(o){var t;return{className:void 0,style:a({spacing:(null===(t=o.style)||void 0===t?void 0:t.spacing)||{}})}}},8519:(o,t,n)=>{"use strict";n.d(t,{F:()=>c});const c=o=>null===o},7884:(o,t,n)=>{"use strict";n.d(t,{$n:()=>s,Kn:()=>e,Qr:()=>l});var c=n(8519);const e=o=>!(0,c.F)(o)&&o instanceof Object&&o.constructor===Object;function s(o,t){return e(o)&&t in o}const l=o=>0===Object.keys(o).length},2646:(o,t,n)=>{"use strict";n.d(t,{H:()=>c});const c=o=>"string"==typeof o},39:()=>{}}]);