uawdijnntqw1x1x1
IP : 216.73.216.109
Hostname : premium160.web-hosting.com
Kernel : Linux premium160.web-hosting.com 4.18.0-553.54.1.lve.el8.x86_64 #1 SMP Wed Jun 4 13:01:13 UTC 2025 x86_64
Disable Function : None :)
OS : Linux
PATH:
/
home
/
batcwwjx
/
www
/
wp-content
/
plugins
/
woocommerce
/
assets
/
client
/
blocks
/
product-price-frontend.js
/
/
(globalThis.webpackChunkwebpackWcBlocksFrontendJsonp=globalThis.webpackChunkwebpackWcBlocksFrontendJsonp||[]).push([[388],{4023:(e,r,c)=>{"use strict";c.r(r),c.d(r,{Block:()=>x,default:()=>N});var t=c(4921),o=c(7723),s=c(4656),n=c(910),a=c(6087),l=(c(8501),c(790));const i=({currency:e,maxPrice:r,minPrice:c,priceClassName:a,priceStyle:i={}})=>(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)("span",{className:"screen-reader-text",children:(0,o.sprintf)(/* translators: %1$s min price, %2$s max price */ /* translators: %1$s min price, %2$s max price */ (0,o.__)("Price between %1$s and %2$s","woocommerce"),(0,n.formatPrice)(c),(0,n.formatPrice)(r))}),(0,l.jsxs)("span",{"aria-hidden":!0,children:[(0,l.jsx)(s.FormattedMonetaryAmount,{className:(0,t.A)("wc-block-components-product-price__value",a),currency:e,value:c,style:i})," — ",(0,l.jsx)(s.FormattedMonetaryAmount,{className:(0,t.A)("wc-block-components-product-price__value",a),currency:e,value:r,style:i})]})]}),p=({currency:e,regularPriceClassName:r,regularPriceStyle:c,regularPrice:n,priceClassName:a,priceStyle:i,price:p})=>(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)("span",{className:"screen-reader-text",children:(0,o.__)("Previous price:","woocommerce")}),(0,l.jsx)(s.FormattedMonetaryAmount,{currency:e,renderText:e=>(0,l.jsx)("del",{className:(0,t.A)("wc-block-components-product-price__regular",r),style:c,children:e}),value:n}),(0,l.jsx)("span",{className:"screen-reader-text",children:(0,o.__)("Discounted price:","woocommerce")}),(0,l.jsx)(s.FormattedMonetaryAmount,{currency:e,renderText:e=>(0,l.jsx)("ins",{className:(0,t.A)("wc-block-components-product-price__value","is-discounted",a),style:i,children:e}),value:p})]}),u=({align:e,className:r,currency:c,format:o="<price/>",maxPrice:n,minPrice:u,price:m,priceClassName:d,priceStyle:y,regularPrice:_,regularPriceClassName:g,regularPriceStyle:x,style:N})=>{const b=(0,t.A)(r,"price","wc-block-components-product-price",{[`wc-block-components-product-price--align-${e}`]:e});o.includes("<price/>")||(o="<price/>",console.error("Price formats need to include the `<price/>` tag."));const f=_&&m&&m<_;let h=(0,l.jsx)("span",{className:(0,t.A)("wc-block-components-product-price__value",d)});return f?h=(0,l.jsx)(p,{currency:c,price:m,priceClassName:d,priceStyle:y,regularPrice:_,regularPriceClassName:g,regularPriceStyle:x}):void 0!==u&&void 0!==n?h=(0,l.jsx)(i,{currency:c,maxPrice:n,minPrice:u,priceClassName:d,priceStyle:y}):(m||0===m)&&(h=(0,l.jsx)(s.FormattedMonetaryAmount,{className:(0,t.A)("wc-block-components-product-price__value",d),currency:c,value:m,style:y})),(0,l.jsx)("span",{className:b,style:N,children:(0,a.createInterpolateElement)(o,{price:h})})};var m=c(2796),d=c(41),y=c(1616),_=c(5703);const g=(e,r,c="0")=>{const t=10**r.minorUnit;return(Number.parseFloat(null!=e?e:c)*t).toString()},x=e=>{var r;const{className:c,textAlign:o,isDescendentOfSingleProductTemplate:s,isAdmin:a,product:i,isExperimentalWcRestApiEnabled:p}=e,y=(0,d.p)(e),{parentName:x,parentClassName:N}=(0,m.useInnerBlockLayoutContext)(),{product:b}=(0,m.useProductDataContext)(p?{isAdmin:a,product:i}:void 0),f="woocommerce/all-products"===x,h=s&&!("woocommerce/add-to-cart-with-options-grouped-product-item"===x),P=(0,t.A)("wc-block-components-product-price",c,y.className,{[`${N}__product-price`]:N});if(!b?.id&&!s){const e=(0,l.jsx)(u,{align:o,className:P});return f?(0,l.jsx)("div",{className:"wp-block-woocommerce-product-price",children:e}):e}let k=null!==(r=b?.prices)&&void 0!==r?r:{};const v=h?(0,n.getCurrencyFromPriceResponse)():(0,n.getCurrencyFromPriceResponse)(k);p&&(k={price:g(b?.price,v),...b?.sale_price?{sale_price:g(b?.sale_price,v)}:{},...b?.regular_price?{regular_price:g(b?.regular_price,v)}:{},currency_minor_unit:_.SITE_CURRENCY.minorUnit,price_range:b?.__experimental_max_price&&b?.__experimental_min_price?{min_amount:g(b.__experimental_min_price,v),max_amount:g(b.__experimental_max_price,v)}:null});const S="5000",j=k.price!==k.regular_price,w=(0,t.A)({[`${N}__product-price__value`]:N,[`${N}__product-price__value--on-sale`]:j}),C=(0,l.jsx)(u,{align:o,className:P,style:y.style,regularPriceStyle:y.style,priceStyle:y.style,priceClassName:w,currency:v,price:h?S:k.price,minPrice:k?.price_range?.min_amount,maxPrice:k?.price_range?.max_amount,regularPrice:h?S:k.regular_price,regularPriceClassName:(0,t.A)({[`${N}__product-price__regular`]:N})});return f?(0,l.jsx)("div",{className:"wp-block-woocommerce-product-price",children:C}):C},N=e=>e.isDescendentOfSingleProductTemplate?(0,l.jsx)(x,{...e}):(0,y.withProductDataContext)(x)(e)},41:(e,r,c)=>{"use strict";c.d(r,{p:()=>i});var t=c(4921),o=c(3993),s=c(7356),n=c(9786);function a(e={}){const r={};return(0,n.getCSSRules)(e,{selector:""}).forEach((e=>{r[e.key]=e.value})),r}function l(e,r){return e&&r?`has-${(0,s.c)(r)}-${e}`:""}const i=e=>{const r=(e=>{const r=(0,o.isObject)(e)?e:{style:{}};let c=r.style;return(0,o.isString)(c)&&(c=JSON.parse(c)||{}),(0,o.isObject)(c)||(c={}),{...r,style:c}})(e),c=function(e){const{backgroundColor:r,textColor:c,gradient:s,style:n}=e,i=l("background-color",r),p=l("color",c),u=function(e){if(e)return`has-${e}-gradient-background`}(s),m=u||n?.color?.gradient;return{className:(0,t.A)(p,u,{[i]:!m&&!!i,"has-text-color":c||n?.color?.text,"has-background":r||n?.color?.background||s||n?.color?.gradient,"has-link-color":(0,o.isObject)(n?.elements?.link)?n?.elements?.link?.color:void 0}),style:a({color:n?.color||{}})}}(r),s=function(e){const r=e.style?.border||{};return{className:function(e){const{borderColor:r,style:c}=e,o=r?l("border-color",r):"";return(0,t.A)({"has-border-color":!!r||!!c?.border?.color,[o]:!!o})}(e),style:a({border:r})}}(r),n=function(e){return{className:void 0,style:a({spacing:e.style?.spacing||{}})}}(r),i=(e=>{const r=(0,o.isObject)(e.style.typography)?e.style.typography:{},c=(0,o.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}}})(r);return{className:(0,t.A)(i.className,c.className,s.className,n.className),style:{...i.style,...c.style,...s.style,...n.style}}}},8501:()=>{}}]);
/home/batcwwjx/www/wp-content/plugins/woocommerce/assets/client/blocks/product-price-frontend.js