1wp.hooks.addAction( 2 'experimental__woocommerce_blocks-checkout-set-active-payment-method', 3 "es-woocommerce-extension-namespace", function (payment_method) { 4 // const paymentMethodOptionsDiv = jQuery('#payment-method .wc-block-components-radio-control'); 5 const checkout = jQuery('#payment-method'); 6 setTimeout(() => { 7 checkout.block({message: null, overlayCSS: {background: '#fff', opacity: 0.6}}) 8 }, 20); 9 10 window.wc.blocksCheckout.extensionCartUpdate({ 11 namespace: "es-woocommerce-extension-namespace", 12 data: { 13 payment_method: payment_method.paymentMethodSlug 14 } 15 }).finally(() => { 16 checkout.unblock(); 17 }); 18 } 19);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.