(window.webpackWcBlocksJsonp=window.webpackWcBlocksJsonp||[]).push([[31],{139:function(e,c){},158:function(e,c){},204:function(e,c,r){"use strict";r.r(c),r.d(c,"Block",(function(){return d}));var t=r(0),a=r(4),n=r.n(a),l=r(78),i=r(24),o=r(22),s=r(99),u=r(112),p=r(88),m=r(45);r(254);const d=e=>{var c,r;const{className:a,textAlign:m}=e,{parentClassName:d}=Object(o.useInnerBlockLayoutContext)(),{product:b}=Object(o.useProductDataContext)(),y=Object(s.a)(e),g=Object(u.a)(e),_=Object(p.a)(e),v=n()("wc-block-components-product-price",a,y.className,{[d+"__product-price"]:d});if(!b.id)return Object(t.createElement)(l.a,{align:m,className:v});const j={...y.style,..._.style},O={...g.style},N=b.prices,P=Object(i.getCurrencyFromPriceResponse)(N),f=N.price!==N.regular_price,w=n()({[d+"__product-price__value"]:d,[d+"__product-price__value--on-sale"]:f});return Object(t.createElement)(l.a,{align:m,className:v,regularPriceStyle:j,priceStyle:j,priceClassName:w,currency:P,price:N.price,minPrice:null==N||null===(c=N.price_range)||void 0===c?void 0:c.min_amount,maxPrice:null==N||null===(r=N.price_range)||void 0===r?void 0:r.max_amount,regularPrice:N.regular_price,regularPriceClassName:n()({[d+"__product-price__regular"]:d}),spacingStyle:O})};c.default=Object(m.withProductDataContext)(d)},254:function(e,c){},37:function(e,c,r){"use strict";var t=r(6),a=r.n(t),n=r(0),l=r(133),i=r(4),o=r.n(i);r(139);const s=e=>({thousandSeparator:null==e?void 0:e.thousandSeparator,decimalSeparator:null==e?void 0:e.decimalSeparator,decimalScale:null==e?void 0:e.minorUnit,fixedDecimalScale:!0,prefix:null==e?void 0:e.prefix,suffix:null==e?void 0:e.suffix,isNumericString:!0});c.a=e=>{let{className:c,value:r,currency:t,onValueChange:i,displayType:u="text",...p}=e;const m="string"==typeof r?parseInt(r,10):r;if(!Number.isFinite(m))return null;const d=m/10**t.minorUnit;if(!Number.isFinite(d))return null;const b=o()("wc-block-formatted-money-amount","wc-block-components-formatted-money-amount",c),y={...p,...s(t),value:void 0,currency:void 0,onValueChange:void 0},g=i?e=>{const c=+e.value*10**t.minorUnit;i(c)}:()=>{};return Object(n.createElement)(l.a,a()({className:b,displayType:u},y,{value:d,onValueChange:g}))}},78:function(e,c,r){"use strict";var t=r(0),a=r(1),n=r(37),l=r(4),i=r.n(l),o=r(24);r(158);const s=e=>{let{currency:c,maxPrice:r,minPrice:l,priceClassName:s,priceStyle:u={}}=e;return Object(t.createElement)(t.Fragment,null,Object(t.createElement)("span",{className:"screen-reader-text"},Object(a.sprintf)(
/* translators: %1$s min price, %2$s max price */
Object(a.__)("Price between %1$s and %2$s","woocommerce"),Object(o.formatPrice)(l),Object(o.formatPrice)(r))),Object(t.createElement)("span",{"aria-hidden":!0},Object(t.createElement)(n.a,{className:i()("wc-block-components-product-price__value",s),currency:c,value:l,style:u})," — ",Object(t.createElement)(n.a,{className:i()("wc-block-components-product-price__value",s),currency:c,value:r,style:u})))},u=e=>{let{currency:c,regularPriceClassName:r,regularPriceStyle:l,regularPrice:o,priceClassName:s,priceStyle:u,price:p}=e;return Object(t.createElement)(t.Fragment,null,Object(t.createElement)("span",{className:"screen-reader-text"},Object(a.__)("Previous price:","woocommerce")),Object(t.createElement)(n.a,{currency:c,renderText:e=>Object(t.createElement)("del",{className:i()("wc-block-components-product-price__regular",r),style:l},e),value:o}),Object(t.createElement)("span",{className:"screen-reader-text"},Object(a.__)("Discounted price:","woocommerce")),Object(t.createElement)(n.a,{currency:c,renderText:e=>Object(t.createElement)("ins",{className:i()("wc-block-components-product-price__value","is-discounted",s),style:u},e),value:p}))};c.a=e=>{let{align:c,className:r,currency:a,format:l="<price/>",maxPrice:o,minPrice:p,price:m,priceClassName:d,priceStyle:b,regularPrice:y,regularPriceClassName:g,regularPriceStyle:_,spacingStyle:v}=e;const j=i()(r,"price","wc-block-components-product-price",{["wc-block-components-product-price--align-"+c]:c});l.includes("<price/>")||(l="<price/>",console.error("Price formats need to include the `<price/>` tag."));const O=y&&m!==y;let N=Object(t.createElement)("span",{className:i()("wc-block-components-product-price__value",d)});return O?N=Object(t.createElement)(u,{currency:a,price:m,priceClassName:d,priceStyle:b,regularPrice:y,regularPriceClassName:g,regularPriceStyle:_}):void 0!==p&&void 0!==o?N=Object(t.createElement)(s,{currency:a,maxPrice:o,minPrice:p,priceClassName:d,priceStyle:b}):m&&(N=Object(t.createElement)(n.a,{className:i()("wc-block-components-product-price__value",d),currency:a,value:m,style:b})),Object(t.createElement)("span",{className:j,style:v},Object(t.createInterpolateElement)(l,{price:N}))}}}]);