(self.webpackChunkwebpackWcBlocksMainJsonp=self.webpackChunkwebpackWcBlocksMainJsonp||[]).push([[5579],{7461:(e,r,c)=>{"use strict";c.r(r),c.d(r,{Block:()=>m,default:()=>p});var t=c(9196),l=c(7608),n=c.n(l),a=c(3088),o=c(4293),s=c(2864),i=c(947),u=c(721);const m=e=>{var r,c;const{className:l,textAlign:u,isDescendentOfSingleProductTemplate:m}=e,p=(0,i.F)(e),{parentName:d,parentClassName:y}=(0,s.useInnerBlockLayoutContext)(),{product:v}=(0,s.useProductDataContext)(),g="woocommerce/all-products"===d,f=n()("wc-block-components-product-price",l,p.className,{[`${y}__product-price`]:y});if(!v.id&&!m){const e=(0,t.createElement)(a.Z,{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=n()({[`${y}__product-price__value`]:y,[`${y}__product-price__value--on-sale`]:P}),S=(0,t.createElement)(a.Z,{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:n()({[`${y}__product-price__regular`]:y})});return g?(0,t.createElement)("div",{className:"wp-block-woocommerce-product-price"},S):S},p=e=>e.isDescendentOfSingleProductTemplate?(0,t.createElement)(m,{...e}):(0,u.withProductDataContext)(m)(e)},3088:(e,r,c)=>{"use strict";c.d(r,{Z:()=>p});var t=c(9196),l=c(5736),n=c(711),a=c(7608),o=c.n(a),s=c(4293),i=c(9307);c(6645);const u=({currency:e,maxPrice:r,minPrice:c,priceClassName:a,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,s.formatPrice)(c),(0,s.formatPrice)(r))),(0,t.createElement)("span",{"aria-hidden":!0},(0,t.createElement)(n.FormattedMonetaryAmount,{className:o()("wc-block-components-product-price__value",a),currency:e,value:c,style:i})," — ",(0,t.createElement)(n.FormattedMonetaryAmount,{className:o()("wc-block-components-product-price__value",a),currency:e,value:r,style:i}))),m=({currency:e,regularPriceClassName:r,regularPriceStyle:c,regularPrice:a,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)(n.FormattedMonetaryAmount,{currency:e,renderText:e=>(0,t.createElement)("del",{className:o()("wc-block-components-product-price__regular",r),style:c},e),value:a}),(0,t.createElement)("span",{className:"screen-reader-text"},(0,l.__)("Discounted price:","woocommerce")),(0,t.createElement)(n.FormattedMonetaryAmount,{currency:e,renderText:e=>(0,t.createElement)("ins",{className:o()("wc-block-components-product-price__value","is-discounted",s),style:i},e),value:u})),p=({align:e,className:r,currency:c,format:l="<price/>",maxPrice:a,minPrice:s,price:p,priceClassName:d,priceStyle:y,regularPrice:v,regularPriceClassName:g,regularPriceStyle:f,style:N})=>{const _=o()(r,"price","wc-block-components-product-price",{[`wc-block-components-product-price--align-${e}`]:e});l.includes("<price/>")||(l="<price/>",console.error("Price formats need to include the `<price/>` tag."));const b=v&&p&&p<v;let P=(0,t.createElement)("span",{className:o()("wc-block-components-product-price__value",d)});return b?P=(0,t.createElement)(m,{currency:c,price:p,priceClassName:d,priceStyle:y,regularPrice:v,regularPriceClassName:g,regularPriceStyle:f}):void 0!==s&&void 0!==a?P=(0,t.createElement)(u,{currency:c,maxPrice:a,minPrice:s,priceClassName:d,priceStyle:y}):p&&(P=(0,t.createElement)(n.FormattedMonetaryAmount,{className:o()("wc-block-components-product-price__value",d),currency:c,value:p,style:y})),(0,t.createElement)("span",{className:_,style:N},(0,i.createInterpolateElement)(l,{price:P}))}},947:(e,r,c)=>{"use strict";c.d(r,{F:()=>s});var t=c(7608),l=c.n(t),n=c(6946),a=c(3392),o=c(172);const s=e=>{const r=(e=>{const r=(0,n.isObject)(e)?e:{style:{}};let c=r.style;return(0,n.isString)(c)&&(c=JSON.parse(c)||{}),(0,n.isObject)(c)||(c={}),{...r,style:c}})(e),c=(0,o.vc)(r),t=(0,o.l8)(r),s=(0,o.su)(r),i=(0,a.f)(r);return{className:l()(i.className,c.className,t.className,s.className),style:{...i.style,...c.style,...t.style,...s.style}}}},3392:(e,r,c)=>{"use strict";c.d(r,{f:()=>l});var t=c(6946);const l=e=>{const r=(0,t.isObject)(e.style.typography)?e.style.typography:{},c=(0,t.isString)(r.fontFamily)?r.fontFamily:"";return{className:e.fontFamily?`has-${e.fontFamily}-font-family`:c,style:{fontSize:e.fontSize?`var(--wp--preset--font-size--${e.fontSize})`:r.fontSize,fontStyle:r.fontStyle,fontWeight:r.fontWeight,letterSpacing:r.letterSpacing,lineHeight:r.lineHeight,textDecoration:r.textDecoration,textTransform:r.textTransform}}}},172:(e,r,c)=>{"use strict";c.d(r,{l8:()=>m,su:()=>p,vc:()=>u});var t=c(7608),l=c.n(t),n=c(7427),a=c(2289),o=c(6946);function s(e={}){const r={};return(0,a.getCSSRules)(e,{selector:""}).forEach((e=>{r[e.key]=e.value})),r}function i(e,r){return e&&r?`has-${(0,n.o)(r)}-${e}`:""}function u(e){var r,c,t,n,a,u,m;const{backgroundColor:p,textColor:d,gradient:y,style:v}=e,g=i("background-color",p),f=i("color",d),N=function(e){if(e)return`has-${e}-gradient-background`}(y),_=N||(null==v||null===(r=v.color)||void 0===r?void 0:r.gradient);return{className:l()(f,N,{[g]:!_&&!!g,"has-text-color":d||(null==v||null===(c=v.color)||void 0===c?void 0:c.text),"has-background":p||(null==v||null===(t=v.color)||void 0===t?void 0:t.background)||y||(null==v||null===(n=v.color)||void 0===n?void 0:n.gradient),"has-link-color":(0,o.isObject)(null==v||null===(a=v.elements)||void 0===a?void 0:a.link)?null==v||null===(u=v.elements)||void 0===u||null===(m=u.link)||void 0===m?void 0:m.color:void 0}),style:s({color:(null==v?void 0:v.color)||{}})}}function m(e){var r;const c=(null===(r=e.style)||void 0===r?void 0:r.border)||{};return{className:function(e){var r;const{borderColor:c,style:t}=e,n=c?i("border-color",c):"";return l()({"has-border-color":!!c||!(null==t||null===(r=t.border)||void 0===r||!r.color),[n]:!!n})}(e),style:s({border:c})}}function p(e){var r;return{className:void 0,style:s({spacing:(null===(r=e.style)||void 0===r?void 0:r.spacing)||{}})}}},6645:()=>{}}]);