(self.webpackChunkwebpackWcBlocksMainJsonp=self.webpackChunkwebpackWcBlocksMainJsonp||[]).push([[2388],{2519:(e,r,c)=>{"use strict";c.r(r),c.d(r,{Block:()=>u,default:()=>m});var t=c(1609),l=c(851),a=c(6042),o=c(8529),n=c(2796),s=c(3566),i=c(1616);const u=e=>{var r,c;const{className:i,textAlign:u,isDescendentOfSingleProductTemplate:m}=e,p=(0,s.p)(e),{parentName:d,parentClassName:y}=(0,n.useInnerBlockLayoutContext)(),{product:v}=(0,n.useProductDataContext)(),g="woocommerce/all-products"===d,f=(0,l.A)("wc-block-components-product-price",i,p.className,{[`${y}__product-price`]:y});if(!v.id&&!m){const e=(0,t.createElement)(a.A,{align:u,className:f});return g?(0,t.createElement)("div",{className:"wp-block-woocommerce-product-price"},e):e}const N=v.prices,_=m?(0,o.getCurrencyFromPriceResponse)():(0,o.getCurrencyFromPriceResponse)(N),b="5000",P=N.price!==N.regular_price,k=(0,l.A)({[`${y}__product-price__value`]:y,[`${y}__product-price__value--on-sale`]:P}),S=(0,t.createElement)(a.A,{align:u,className:f,style:p.style,regularPriceStyle:p.style,priceStyle:p.style,priceClassName:k,currency:_,price:m?b:N.price,minPrice:null==N||null===(r=N.price_range)||void 0===r?void 0:r.min_amount,maxPrice:null==N||null===(c=N.price_range)||void 0===c?void 0:c.max_amount,regularPrice:m?b:N.regular_price,regularPriceClassName:(0,l.A)({[`${y}__product-price__regular`]:y})});return g?(0,t.createElement)("div",{className:"wp-block-woocommerce-product-price"},S):S},m=e=>e.isDescendentOfSingleProductTemplate?(0,t.createElement)(u,{...e}):(0,i.withProductDataContext)(u)(e)},6042:(e,r,c)=>{"use strict";c.d(r,{A:()=>m});var t=c(1609),l=c(7723),a=c(4656),o=c(851),n=c(8529),s=c(6087);c(4567);const i=({currency:e,maxPrice:r,minPrice:c,priceClassName:s,priceStyle:i={}})=>(0,t.createElement)(t.Fragment,null,(0,t.createElement)("span",{className:"screen-reader-text"},(0,l.sprintf)(/* translators: %1$s min price, %2$s max price */ /* translators: %1$s min price, %2$s max price */
(0,l.__)("Price between %1$s and %2$s","woocommerce"),(0,n.formatPrice)(c),(0,n.formatPrice)(r))),(0,t.createElement)("span",{"aria-hidden":!0},(0,t.createElement)(a.FormattedMonetaryAmount,{className:(0,o.A)("wc-block-components-product-price__value",s),currency:e,value:c,style:i})," — ",(0,t.createElement)(a.FormattedMonetaryAmount,{className:(0,o.A)("wc-block-components-product-price__value",s),currency:e,value:r,style:i}))),u=({currency:e,regularPriceClassName:r,regularPriceStyle:c,regularPrice:n,priceClassName:s,priceStyle:i,price:u})=>(0,t.createElement)(t.Fragment,null,(0,t.createElement)("span",{className:"screen-reader-text"},(0,l.__)("Previous price:","woocommerce")),(0,t.createElement)(a.FormattedMonetaryAmount,{currency:e,renderText:e=>(0,t.createElement)("del",{className:(0,o.A)("wc-block-components-product-price__regular",r),style:c},e),value:n}),(0,t.createElement)("span",{className:"screen-reader-text"},(0,l.__)("Discounted price:","woocommerce")),(0,t.createElement)(a.FormattedMonetaryAmount,{currency:e,renderText:e=>(0,t.createElement)("ins",{className:(0,o.A)("wc-block-components-product-price__value","is-discounted",s),style:i},e),value:u})),m=({align:e,className:r,currency:c,format:l="