| Server IP : 5.129.245.98 / Your IP : 216.73.216.246 Web Server : Apache/2.4.66 (Debian) System : Linux 1b8c17c336b9 6.8.0-111-generic #111-Ubuntu SMP PREEMPT_DYNAMIC Sat Apr 11 23:16:02 UTC 2026 x86_64 User : www-data ( 33) PHP Version : 8.3.30 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : OFF | Perl : ON | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : /var/www/html/wp-content/plugins/woocommerce/assets/client/blocks/ |
Upload File : |
(()=>{"use strict";const e=window.wc.wcBlocksRegistry,t=window.wp.i18n,n=window.wc.wcSettings,i=window.wp.htmlEntities,o=window.wc.sanitize,s=window.wp.element,a=window.ReactJSXRuntime,c=(0,n.getPaymentMethodData)("cod",{}),r=(0,t.__)("Cash on delivery","woocommerce"),d=(0,i.decodeEntities)(c?.title||"")||r,w=()=>(0,a.jsx)(s.RawHTML,{children:(0,o.sanitizeHTML)(c.description||"")}),l=e=>{const{PaymentMethodLabel:t}=e.components;return(0,a.jsx)(t,{text:d})},p={name:"cod",label:(0,a.jsx)(l,{}),content:(0,a.jsx)(w,{}),edit:(0,a.jsx)(w,{}),canMakePayment:({cartNeedsShipping:e,selectedShippingMethods:t})=>{if(c.enableForVirtual&&!e)return!0;if(!c.enableForShippingMethods.length)return!0;const n=Object.values(t);return 0===n.length||c.enableForShippingMethods.some((e=>n.some((t=>t.includes(e)))))},ariaLabel:d,supports:{features:c?.supports??[]}};(0,e.registerPaymentMethod)(p)})();