<?php
if ( ! class_exists( 'WP_Customize_Control' ) ) {
    return;
}
function top_store_customizer_scripts() {
    wp_enqueue_script('top-store-customizer', get_template_directory_uri() . '/lib/notification/customizer-notification/customizer.js', array('jquery'), '1.0', true);

    wp_localize_script('top-store-customizer', 'theme_data_customizer', array(
        'ajax_url' => admin_url('admin-ajax.php'),
        'security' => wp_create_nonce('thactivatenonce'),
        'redirectUrl' => esc_url(admin_url('themes.php?page=themehunk-site-library&template=step'))
    ));
}
add_action('customize_controls_enqueue_scripts', 'top_store_customizer_scripts');

// style
function top_store_customizer_notify_css(){
    
  wp_enqueue_style('top-store-customizer-notify-styles', TOP_STORE_THEME_URI .'lib/notification/customizer-notification/customizer-notify.css');
}
add_action('customize_controls_print_styles', 'top_store_customizer_notify_css');