<?php
/*
* Plugin-Name: Product Designer App
* Plugin-URI: https://productdesignerapp.com
* Author: productdesignerapp
* Page: Products
*/

if (!defined('ABSPATH'))
{
    exit;
}

wp_enqueue_script('pdapp-script', PDAPP_PLUGIN_URL . 'assets/js/pdapp-inline.js', ['jquery'], PDAPP_VERSION.'-'. time(), true);
wp_add_inline_script('pdapp-script', 'var pdappPurchasedCode = "'. esc_html(pdapp_get_user_key()) .'";', 'before');

$pdappDevScript = PDAPP_DEV_MODE ? '' : 'min.';
$pdappDevStr = PDAPP_DEV_MODE ? '' : '-min';
wp_enqueue_script('pdapp-vue-script', PDAPP_PLUGIN_URL . 'assets/plugins/vue/js/vue.min.js', ['jquery'], PDAPP_VERSION, true);
wp_enqueue_script('pdapp-selecto-script', PDAPP_PLUGIN_URL . 'assets/plugins/selecto/js/selecto.min.js', ['jquery'], PDAPP_VERSION, true);
wp_enqueue_script('pdapp-moveable-script', PDAPP_PLUGIN_URL . 'assets/plugins/moveable/js/moveable.min.js', ['jquery'], PDAPP_VERSION, true);
wp_enqueue_script('pdapp-spectrum-script', PDAPP_PLUGIN_URL . 'assets/plugins/spectrum/js/spectrum.min.js', ['jquery'], PDAPP_VERSION, true);
wp_enqueue_script('pdapp-hotkey-script', PDAPP_PLUGIN_URL. 'assets/plugins/hotkeys/js/hotkeys.min.js', ['jquery'], PDAPP_VERSION, true);
wp_enqueue_script('pdapp-api-script'. $pdappDevStr, PDAPP_PLUGIN_URL . 'admin/assets/js/products/pdapp-api.'. $pdappDevScript. 'js', ['jquery'], PDAPP_VERSION, true);
wp_enqueue_script('pdapp-main-script'. $pdappDevStr, PDAPP_PLUGIN_URL . 'admin/assets/js/products/pdapp-main.'. $pdappDevScript. 'js', ['jquery'], PDAPP_VERSION, true);
?>