| Server IP : 38.190.208.107 / Your IP : 216.73.216.84 Web Server : nginx/1.28.1 System : Linux ht2026040333114 6.1.0-10-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.1.37-1 (2023-07-03) x86_64 User : root ( 0) PHP Version : 8.2.28 Disable Function : passthru,exec,system,putenv,chroot,chgrp,chown,shell_exec,popen,proc_open,pcntl_exec,ini_alter,ini_restore,dl,openlog,syslog,readlink,symlink,popepassthru,pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,imap_open,apache_setenv,eval,assert,passthru,system,exec,shell_exec,popen,proc_open MySQL : OFF | cURL : ON | WGET : OFF | Perl : OFF | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : /www/wwwroot/wp.3/wp-content/plugins/woocommerce/assets/client/blocks/ |
Upload File : |
(globalThis.webpackChunkwebpackWcBlocksFrontendJsonp=globalThis.webpackChunkwebpackWcBlocksFrontendJsonp||[]).push([[388],{4023:(e,r,c)=>{"use strict";c.r(r),c.d(r,{Block:()=>x,convertAdminPriceToStoreApiFormat:()=>_,default:()=>N});var t=c(4921),o=c(7723),s=c(4656),a=c(910),n=c(6087),l=(c(8501),c(790));const i=({currency:e,maxPrice:r,minPrice:c,priceClassName:n,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,a.formatPrice)(c),(0,a.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",n),currency:e,value:c,style:i})," — ",(0,l.jsx)(s.FormattedMonetaryAmount,{className:(0,t.A)("wc-block-components-product-price__value",n),currency:e,value:r,style:i})]})]}),p=({currency:e,regularPriceClassName:r,regularPriceStyle:c,regularPrice:a,priceClassName:n,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:a}),(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",n),style:i,children:e}),value:p})]}),u=({align:e,className:r,currency:c,format:o="<price/>",maxPrice:a,minPrice:u,price:m,priceClassName:d,priceStyle:y,regularPrice:g,regularPriceClassName:_,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=void 0!==g&&void 0!==m&&m<g;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:g,regularPriceClassName:_,regularPriceStyle:x}):void 0!==u&&void 0!==a?h=(0,l.jsx)(i,{currency:c,maxPrice:a,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,n.createInterpolateElement)(o,{price:h})})};var m=c(2796),d=c(41),y=c(1616),g=c(5703);const _=(e,r,c="0")=>{const t=10**r.minorUnit;return Math.round(Number.parseFloat(e??c)*t).toString()},x=e=>{const{className:r,textAlign:c,isDescendentOfSingleProductTemplate:o,isAdmin:s,product:n,isExperimentalWcRestApiV4Enabled:i}=e,{parentName:p,parentClassName:y}=(0,m.useInnerBlockLayoutContext)(),{product:x}=(0,m.useProductDataContext)(i?{isAdmin:s,product:n}:void 0),N="woocommerce/all-products"===p,b="woocommerce/add-to-cart-with-options-grouped-product-item"===p,f=(0,d.p)(e);let h={className:"",style:{}};N&&(h=f);const P=o&&!b||!x,k=(0,t.A)("wc-block-components-product-price",r,h.className,{[`${y}__product-price`]:y});if(!x?.id&&!o){const e=(0,l.jsx)(u,{align:c,className:k});return N?(0,l.jsx)("div",{className:"wp-block-woocommerce-product-price",children:e}):e}let v=x?.prices??{};const S=P?(0,a.getCurrencyFromPriceResponse)():(0,a.getCurrencyFromPriceResponse)(v);i&&(v={price:_(x?.price,S),...x?.sale_price?{sale_price:_(x?.sale_price,S)}:{},...x?.regular_price?{regular_price:_(x?.regular_price,S)}:{},currency_minor_unit:g.SITE_CURRENCY.minorUnit,price_range:x?.max_price&&x?.min_price?{min_amount:_(x.min_price,S),max_amount:_(x.max_price,S)}:null});const j="5000",w=v.price!==v.regular_price,A=(0,t.A)({[`${y}__product-price__value`]:y,[`${y}__product-price__value--on-sale`]:w}),C=(0,l.jsx)(u,{align:c,className:k,style:h.style,regularPriceStyle:h.style,priceStyle:h.style,priceClassName:A,currency:S,price:P?j:v.price,minPrice:v?.price_range?.min_amount,maxPrice:v?.price_range?.max_amount,regularPrice:P?j:v.regular_price,regularPriceClassName:(0,t.A)({[`${y}__product-price__regular`]:y})});return N?(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),a=c(9786);function n(e={}){const r={};return(0,a.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:a}=e,i=l("background-color",r),p=l("color",c),u=function(e){if(e)return`has-${e}-gradient-background`}(s),m=u||a?.color?.gradient;return{className:(0,t.A)(p,u,{[i]:!m&&!!i,"has-text-color":c||a?.color?.text,"has-background":r||a?.color?.background||s||a?.color?.gradient,"has-link-color":(0,o.isObject)(a?.elements?.link)?a?.elements?.link?.color:void 0}),style:n({color:a?.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:n({border:r})}}(r),a=function(e){return{className:void 0,style:n({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,a.className),style:{...i.style,...c.style,...s.style,...a.style}}}},8501:()=>{}}]);