<script type="text/javascript">
    // Inject GetAddress.io configuration directly into checkoutConfig
    require(['jquery'], function($) {
        'use strict';

        // Ensure window.checkoutConfig exists
        if (typeof window.checkoutConfig === 'undefined') {
            window.checkoutConfig = {};
        }

        // Merge the getaddress_autocomplete config
        var configData = <?php echo $block->getAddressAutocompleteConfig(); ?>;
        window.checkoutConfig = $.extend(true, window.checkoutConfig, configData);

        console.log('GetAddress.io Config Injected:', window.checkoutConfig.getaddress_autocomplete);
    });
</script>
