📁 File Manager Pro
v10.0.2 | PHP: 8.1.34
Server: LiteSpeed
2026-06-26 12:00:54
📂
/
/
home
/
pallabnv
/
public_html
/
wp-content__3bb9dea
/
plugins
/
woocommerce
/
assets
/
client
/
blocks
✏️
Editing: wc-payment-method-cod.js
(()=>{"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)})();
💾 Save Changes
❌ Cancel