1( function( blocks, i18n, element, components, editor ) { 2 const { registerPaymentMethod } = wc.wcBlocksRegistry; 3 // Use the localized data from PHP 4 const paygatedottocryptogateways = paygatedottocryptogatewayData || []; 5 paygatedottocryptogateways.forEach( ( paygatedottocryptogateway ) => { 6 registerPaymentMethod({ 7 name: paygatedottocryptogateway.id, 8 label: paygatedottocryptogateway.label, 9 ariaLabel: paygatedottocryptogateway.label, 10 content: element.createElement( 11 'div', 12 { className: 'paygatedottocryptogateway-method-wrapper' }, 13 element.createElement( 14 'div', 15 { className: 'paygatedottocryptogateway-method-label' }, 16 '' + paygatedottocryptogateway.description 17 ), 18 paygatedottocryptogateway.icon_url ? element.createElement( 19 'img', 20 { 21 src: paygatedottocryptogateway.icon_url, 22 alt: paygatedottocryptogateway.label, 23 className: 'paygatedottocryptogateway-method-icon' 24 } 25 ) : null 26 ), 27 edit: element.createElement( 28 'div', 29 { className: 'paygatedottocryptogateway-method-wrapper' }, 30 element.createElement( 31 'div', 32 { className: 'paygatedottocryptogateway-method-label' }, 33 '' + paygatedottocryptogateway.description 34 ), 35 paygatedottocryptogateway.icon_url ? element.createElement( 36 'img', 37 { 38 src: paygatedottocryptogateway.icon_url, 39 alt: paygatedottocryptogateway.label, 40 className: 'paygatedottocryptogateway-method-icon' 41 } 42 ) : null 43 ), 44 canMakePayment: () => true, 45 }); 46 }); 47} )( 48 window.wp.blocks, 49 window.wp.i18n, 50 window.wp.element, 51 window.wp.components, 52 window.wp.blockEditor 53);
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.