1 2/** 3 * External dependencies 4 */ 5import apiFetch from '@wordpress/api-fetch'; 6import { useEffect, useState } from '@wordpress/element'; 7 8 9 10export const Block = ({ checkoutExtensionData, extensions }) => { 11 var address_html = kgr_php_vars.address_html; 12 var address_cart = kgr_php_vars.address_cart; 13 var address_info = kgr_php_vars.address_info; 14 var address_billinginfo = kgr_php_vars.address_billinginfo; 15 jQuery('.forth-form').insertBefore('.wp-block-woocommerce-checkout-billing-address-block'); 16 17 // console.log(address_billinginfo); 18// console.log(address_html); 19// console.log(address_info); 20setTimeout(function () { 21 jQuery('.first-form').html(address_html); 22 jQuery('.second-form').html(address_cart); 23 jQuery('.third-form').html(address_info); 24 jQuery('.forth-form').html(address_billinginfo); 25 26}, 1000); 27 28 29 return ( 30 <div className="kl-ga-main-wrap"> 31 <div className="first-form"></div> 32 <div className="second-form"></div> 33 <div className="third-form"></div> 34 <div className="forth-form"></div> 35 </div> 36 ); 37}
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.