1const settings = window.wc.wcSettings.getSetting('razorpay_data', {}); 2const label = window.wp.htmlEntities.decodeEntities(settings.title) || window.wp.i18n.__('Razorpay for woocommerce', 'razorpay'); 3const Content = () => { 4 return window.wp.htmlEntities.decodeEntities(settings.description || ''); 5}; 6const Block_Gateway = { 7 name: 'razorpay', 8 label: label, 9 content: Object(window.wp.element.createElement)(Content, null ), 10 edit: Object(window.wp.element.createElement)(Content, null ), 11 canMakePayment: () => true, 12 ariaLabel: label, 13 supports: { 14 features: settings.supports, 15 }, 16}; 17window.wc.wcBlocksRegistry.registerPaymentMethod( Block_Gateway ); 18
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.