<?php
/* Smarty version 5.4.2, created on 2024-12-19 19:16:34
  from 'file:/Users/razib/Herd/suite/apps/wcsuite/views/../../../apps/wcsuite/views/includes/base_js.tpl' */

/* @var \Smarty\Template $_smarty_tpl */
if ($_smarty_tpl->getCompiled()->isFresh($_smarty_tpl, array (
  'version' => '5.4.2',
  'unifunc' => 'content_6764b7628a1947_04724603',
  'has_nocache_code' => false,
  'file_dependency' => 
  array (
    'abed6f130996b409a20cf1ce9bbb32433f0440f9' => 
    array (
      0 => '/Users/razib/Herd/suite/apps/wcsuite/views/../../../apps/wcsuite/views/includes/base_js.tpl',
      1 => 1730635716,
      2 => 'file',
    ),
  ),
  'includes' => 
  array (
  ),
))) {
function content_6764b7628a1947_04724603 (\Smarty\Template $_smarty_tpl) {
$_smarty_current_dir = '/Users/razib/Herd/suite/apps/wcsuite/views/includes';
echo '<script'; ?>
>
    $(function () {
        let $switch_store = $('#switch_store');
        $switch_store.on('change',function () {
            if($switch_store.val())
                {
                    if($switch_store.val() === '---AddNewStore---')
                        {
                            window.location = base_url + 'wcsuite/app/store/'
                        }
                    else{
                        window.location = base_url + 'wcsuite/app/make-default-integration/' + $switch_store.val();
                    }
                }
        });
    });
<?php echo '</script'; ?>
>
<?php }
}
