var ubermenu_data = {"remove_conflicts":"on","reposition_on_load":"off","intent_delay":"300","intent_interval":"100","intent_threshold":"7","scrollto_offset":"50","scrollto_duration":"1000","responsive_breakpoint":990,"accessible":"on","retractor_display_strategy":"responsive","touch_off_close":"on","collapse_after_scroll":"on","v":"3.3.1.1","configurations":["secondary-nav","loyalty-badges","explore-and-discover","mobile","main"],"ajax_url":"https:\/\/www.sprouts.com\/wp-admin\/admin-ajax.php","plugin_url":"https:\/\/www.sprouts.com\/wp-content\/plugins\/ubermenu\/","disable_mobile":"off","prefix_boost":"","aria_role_navigation":"on","aria_expanded":"off","aria_hidden":"off","aria_controls":"","aria_responsive_toggle":"off","theme_locations":{"top-bar-r":"Right Top Bar","mobile-nav":"Mobile"}}; var cms_url = "https://www.sprouts.com"; // The library file that contains all fucntionality for both the CMS and Shop sides (formerly header-sync.js) var cms_shop_bridge_script = cms_url + '/wp-content/themes/sfm-theme-childtheme/sfm-cms-shop-bridge.min.js'; var SFM_MOBILE_APP_DOMAIN = cms_url; // Function to load scripts and then execute the necessary call backs // once the script is loaded function sfmLoadScript( url, callback ) { var script = document.createElement( 'script' ) script.type = 'text/javascript'; if(script.readyState) { script.onreadystatechange = function() { if ( script.readyState === 'loaded' || script.readyState === 'complete' ) { script.onreadystatechange = null; callback(); } }; } else { script.onload = function() { callback(); }; } script.src = url; document.getElementsByTagName( 'head' )[0].appendChild( script ); } // Get the CMS/Shop bridge script and once loaded then execute the necessary // functions to load the environment settings and load the window sfmLoadScript( cms_shop_bridge_script , function(){ (async function(){ SFMH_CONFIG = await sfmGetSettingsViaPromise(); _sfmInit(); })(); });