woocommerce-paypal-payments/assets/ppcp-local-alternative-payment-methods-js-pwc-payment-method.js

1 line
No EOL
693 B
JavaScript

(()=>{"use strict";const e=window.wc.wcBlocksRegistry;var t=wc.wcSettings.getSetting("ppcp-pwc_data");(0,e.registerPaymentMethod)({name:t.id,label:React.createElement(React.Fragment,null,React.createElement("div",{dangerouslySetInnerHTML:{__html:t.title}}),t.icon&&React.createElement("img",{className:"wc-block-components-payment-method-icon wc-block-components-payment-method-icon--".concat(t.id),src:t.icon,alt:t.title})),content:React.createElement(React.Fragment,null,t.description&&React.createElement("div",{dangerouslySetInnerHTML:{__html:t.description}})),edit:React.createElement("div",null),ariaLabel:t.title,canMakePayment:function(){return!0},supports:{features:t.supports}})})();