(self.webpackChunkwebpackWcBlocksJsonp=self.webpackChunkwebpackWcBlocksJsonp||[]).push([[5579],{7461:(e,r,t)=>{"use strict";t.r(r),t.d(r,{Block:()=>m,default:()=>p});var c=t(9196),l=t(3849),n=t.n(l),o=t(3088),a=t(4293),s=t(2864),i=t(947),u=t(721);const m=e=>{var r,t;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,c.createElement)(o.Z,{align:u,className:f});return g?(0,c.createElement)("div",{className:"wp-block-woocommerce-product-price"},e):e}const N=v.prices,_=m?(0,a.getCurrencyFromPriceResponse)():(0,a.getCurrencyFromPriceResponse)(N),k="5000",P=N.price!==N.regular_price,b=n()({[`${y}__product-price__value`]:y,[`${y}__product-price__value--on-sale`]:P}),w=(0,c.createElement)(o.Z,{align:u,className:f,style:p.style,regularPriceStyle:p.style,priceStyle:p.style,priceClassName:b,currency:_,price:m?k:N.price,minPrice:null==N||null===(r=N.price_range)||void 0===r?void 0:r.min_amount,maxPrice:null==N||null===(t=N.price_range)||void 0===t?void 0:t.max_amount,regularPrice:m?k:N.regular_price,regularPriceClassName:n()({[`${y}__product-price__regular`]:y})});return g?(0,c.createElement)("div",{className:"wp-block-woocommerce-product-price"},w):w},p=e=>e.isDescendentOfSingleProductTemplate?(0,c.createElement)(m,{...e}):(0,u.withProductDataContext)(m)(e)},3088:(e,r,t)=>{"use strict";t.d(r,{Z:()=>p});var c=t(9196),l=t(5736),n=t(711),o=t(3849),a=t.n(o),s=t(4293),i=t(9307);t(6645);const u=({currency:e,maxPrice:r,minPrice:t,priceClassName:o,priceStyle:i={}})=>(0,c.createElement)(c.Fragment,null,(0,c.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)(t),(0,s.formatPrice)(r))),(0,c.createElement)("span",{"aria-hidden":!0},(0,c.createElement)(n.FormattedMonetaryAmount,{className:a()("wc-block-components-product-price__value",o),currency:e,value:t,style:i})," — ",(0,c.createElement)(n.FormattedMonetaryAmount,{className:a()("wc-block-components-product-price__value",o),currency:e,value:r,style:i}))),m=({currency:e,regularPriceClassName:r,regularPriceStyle:t,regularPrice:o,priceClassName:s,priceStyle:i,price:u})=>(0,c.createElement)(c.Fragment,null,(0,c.createElement)("span",{className:"screen-reader-text"},(0,l.__)("Previous price:","woocommerce")),(0,c.createElement)(n.FormattedMonetaryAmount,{currency:e,renderText:e=>(0,c.createElement)("del",{className:a()("wc-block-components-product-price__regular",r),style:t},e),value:o}),(0,c.createElement)("span",{className:"screen-reader-text"},(0,l.__)("Discounted price:","woocommerce")),(0,c.createElement)(n.FormattedMonetaryAmount,{currency:e,renderText:e=>(0,c.createElement)("ins",{className:a()("wc-block-components-product-price__value","is-discounted",s),style:i},e),value:u})),p=({align:e,className:r,currency:t,format:l="<price/>",maxPrice:o,minPrice:s,price:p,priceClassName:d,priceStyle:y,regularPrice:v,regularPriceClassName:g,regularPriceStyle:f,style:N})=>{const _=a()(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 k=v&&p&&p<v;let P=(0,c.createElement)("span",{className:a()("wc-block-components-product-price__value",d)});return k?P=(0,c.createElement)(m,{currency:t,price:p,priceClassName:d,priceStyle:y,regularPrice:v,regularPriceClassName:g,regularPriceStyle:f}):void 0!==s&&void 0!==o?P=(0,c.createElement)(u,{currency:t,maxPrice:o,minPrice:s,priceClassName:d,priceStyle:y}):p&&(P=(0,c.createElement)(n.FormattedMonetaryAmount,{className:a()("wc-block-components-product-price__value",d),currency:t,value:p,style:y})),(0,c.createElement)("span",{className:_,style:N},(0,i.createInterpolateElement)(l,{price:P}))}},947:(e,r,t)=>{"use strict";t.d(r,{F:()=>i});var c=t(3849),l=t.n(c),n=t(7998),o=t(3243),a=t(3392),s=t(172);const i=e=>{const r=(e=>{const r=(0,n.Kn)(e)?e:{style:{}};let t=r.style;return(0,o.H)(t)&&(t=JSON.parse(t)||{}),(0,n.Kn)(t)||(t={}),{...r,style:t}})(e),t=(0,s.vc)(r),c=(0,s.l8)(r),i=(0,s.su)(r),u=(0,a.f)(r);return{className:l()(u.className,t.className,c.className,i.className),style:{...u.style,...t.style,...c.style,...i.style}}}},3392:(e,r,t)=>{"use strict";t.d(r,{f:()=>n});var c=t(7998),l=t(3243);const n=e=>{const r=(0,c.Kn)(e.style.typography)?e.style.typography:{},t=(0,l.H)(r.fontFamily)?r.fontFamily:"";return{className:e.fontFamily?`has-${e.fontFamily}-font-family`:t,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,t)=>{"use strict";t.d(r,{l8:()=>m,su:()=>p,vc:()=>u});var c=t(3849),l=t.n(c),n=t(7427),o=t(2289),a=t(7998);function s(e={}){const r={};return(0,o.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,t,c,n,o,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===(t=v.color)||void 0===t?void 0:t.text),"has-background":p||(null==v||null===(c=v.color)||void 0===c?void 0:c.background)||y||(null==v||null===(n=v.color)||void 0===n?void 0:n.gradient),"has-link-color":(0,a.Kn)(null==v||null===(o=v.elements)||void 0===o?void 0:o.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 t=(null===(r=e.style)||void 0===r?void 0:r.border)||{};return{className:function(e){var r;const{borderColor:t,style:c}=e,n=t?i("border-color",t):"";return l()({"has-border-color":!!t||!(null==c||null===(r=c.border)||void 0===r||!r.color),[n]:!!n})}(e),style:s({border:t})}}function p(e){var r;return{className:void 0,style:s({spacing:(null===(r=e.style)||void 0===r?void 0:r.spacing)||{}})}}},2893:(e,r,t)=>{"use strict";t.d(r,{F:()=>c});const c=e=>null===e},7998:(e,r,t)=>{"use strict";t.d(r,{$n:()=>n,Kn:()=>l,Qr:()=>o});var c=t(2893);const l=e=>!(0,c.F)(e)&&e instanceof Object&&e.constructor===Object;function n(e,r){return l(e)&&r in e}const o=e=>0===Object.keys(e).length},3243:(e,r,t)=>{"use strict";t.d(r,{H:()=>c});const c=e=>"string"==typeof e},6645:()=>{}}]);