(self.webpackChunkwebpackWcBlocksJsonp=self.webpackChunkwebpackWcBlocksJsonp||[]).push([[5445],{4304:(o,t,e)=>{"use strict";e.r(t),e.d(t,{Block:()=>u,default:()=>d});var n=e(9196),r=e(5736),c=e(3849),s=e.n(c),l=e(2864),i=e(947),a=e(721);e(8094);const u=o=>{const{className:t}=o,e=(0,i.F)(o),{parentClassName:c}=(0,l.useInnerBlockLayoutContext)(),{product:a}=(0,l.useProductDataContext)();if(!a.id)return null;const u=!!a.is_in_stock,d=a.low_stock_remaining,f=a.is_on_backorder;return(0,n.createElement)("div",{className:s()(t,{[`${c}__stock-indicator`]:c,"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":!!f,...o.isDescendantOfAllProducts&&{[e.className]:e.className,"wc-block-components-product-stock-indicator wp-block-woocommerce-product-stock-indicator":!0}}),...o.isDescendantOfAllProducts&&{style:e.style}},(({isInStock:o=!1,isLowStock:t=!1,lowStockAmount:e=null,isOnBackorder:n=!1})=>t&&null!==e?(0,r.sprintf)(/* translators: %d stock amount (number of items in stock for product) */ /* translators: %d stock amount (number of items in stock for product) */
(0,r.__)("%d left in stock","woocommerce"),e):n?(0,r.__)("Available on backorder","woocommerce"):o?(0,r.__)("In stock","woocommerce"):(0,r.__)("Out of stock","woocommerce"))({isInStock:u,isLowStock:!!d,lowStockAmount:d,isOnBackorder:f}))},d=(0,a.withProductDataContext)(u)},947:(o,t,e)=>{"use strict";e.d(t,{F:()=>a});var n=e(3849),r=e.n(n),c=e(7998),s=e(3243),l=e(3392),i=e(172);const a=o=>{const t=(o=>{const t=(0,c.Kn)(o)?o:{style:{}};let e=t.style;return(0,s.H)(e)&&(e=JSON.parse(e)||{}),(0,c.Kn)(e)||(e={}),{...t,style:e}})(o),e=(0,i.vc)(t),n=(0,i.l8)(t),a=(0,i.su)(t),u=(0,l.f)(t);return{className:r()(u.className,e.className,n.className,a.className),style:{...u.style,...e.style,...n.style,...a.style}}}},3392:(o,t,e)=>{"use strict";e.d(t,{f:()=>c});var n=e(7998),r=e(3243);const c=o=>{const t=(0,n.Kn)(o.style.typography)?o.style.typography:{},e=(0,r.H)(t.fontFamily)?t.fontFamily:"";return{className:o.fontFamily?`has-${o.fontFamily}-font-family`:e,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}}}},172:(o,t,e)=>{"use strict";e.d(t,{l8:()=>d,su:()=>f,vc:()=>u});var n=e(3849),r=e.n(n),c=e(7427),s=e(2289),l=e(7998);function i(o={}){const t={};return(0,s.getCSSRules)(o,{selector:""}).forEach((o=>{t[o.key]=o.value})),t}function a(o,t){return o&&t?`has-${(0,c.o)(t)}-${o}`:""}function u(o){var t,e,n,c,s,u,d;const{backgroundColor:f,textColor:p,gradient:k,style:v}=o,m=a("background-color",f),y=a("color",p),b=function(o){if(o)return`has-${o}-gradient-background`}(k),g=b||(null==v||null===(t=v.color)||void 0===t?void 0:t.gradient);return{className:r()(y,b,{[m]:!g&&!!m,"has-text-color":p||(null==v||null===(e=v.color)||void 0===e?void 0:e.text),"has-background":f||(null==v||null===(n=v.color)||void 0===n?void 0:n.background)||k||(null==v||null===(c=v.color)||void 0===c?void 0:c.gradient),"has-link-color":(0,l.Kn)(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:i({color:(null==v?void 0:v.color)||{}})}}function d(o){var t;const e=(null===(t=o.style)||void 0===t?void 0:t.border)||{};return{className:function(o){var t;const{borderColor:e,style:n}=o,c=e?a("border-color",e):"";return r()({"has-border-color":!!e||!(null==n||null===(t=n.border)||void 0===t||!t.color),[c]:!!c})}(o),style:i({border:e})}}function f(o){var t;return{className:void 0,style:i({spacing:(null===(t=o.style)||void 0===t?void 0:t.spacing)||{}})}}},2893:(o,t,e)=>{"use strict";e.d(t,{F:()=>n});const n=o=>null===o},7998:(o,t,e)=>{"use strict";e.d(t,{$n:()=>c,Kn:()=>r});var n=e(2893);const r=o=>!(0,n.F)(o)&&o instanceof Object&&o.constructor===Object;function c(o,t){return r(o)&&t in o}},3243:(o,t,e)=>{"use strict";e.d(t,{H:()=>n});const n=o=>"string"==typeof o},112:(o,t,e)=>{"use strict";e.d(t,{$:()=>c});var n=e(3112),r=e(7090);function c(o,t){return void 0===t&&(t={}),(0,r.B)(o,(0,n.pi)({delimiter:"."},t))}},8094:()=>{},3569:(o,t,e)=>{"use strict";function n(o){return o.toLowerCase()}e.d(t,{U:()=>n})},7090:(o,t,e)=>{"use strict";e.d(t,{B:()=>s});var n=e(3569),r=[/([a-z0-9])([A-Z])/g,/([A-Z])([A-Z][a-z])/g],c=/[^A-Z0-9]+/gi;function s(o,t){void 0===t&&(t={});for(var e=t.splitRegexp,s=void 0===e?r:e,i=t.stripRegexp,a=void 0===i?c:i,u=t.transform,d=void 0===u?n.U:u,f=t.delimiter,p=void 0===f?" ":f,k=l(l(o,s,"$1\0$2"),a,"\0"),v=0,m=k.length;"\0"===k.charAt(v);)v++;for(;"\0"===k.charAt(m-1);)m--;return k.slice(v,m).split("\0").map(d).join(p)}function l(o,t,e){return t instanceof RegExp?o.replace(t,e):t.reduce((function(o,t){return o.replace(t,e)}),o)}},7427:(o,t,e)=>{"use strict";e.d(t,{o:()=>c});var n=e(3112),r=e(112);function c(o,t){return void 0===t&&(t={}),(0,r.$)(o,(0,n.pi)({delimiter:"-"},t))}},3112:(o,t,e)=>{"use strict";e.d(t,{pi:()=>n});var n=function(){return n=Object.assign||function(o){for(var t,e=1,n=arguments.length;e<n;e++)for(var r in t=arguments[e])Object.prototype.hasOwnProperty.call(t,r)&&(o[r]=t[r]);return o},n.apply(this,arguments)};Object.create,Object.create,"function"==typeof SuppressedError&&SuppressedError}}]);