commit 6210e33a3b3ac7785d0ee59696e9eee531618f65 Author: Daeng Deni Mardaeni Date: Mon Jul 3 14:33:24 2023 +0700 Initial commit diff --git a/.editorconfig b/.editorconfig new file mode 100644 index 0000000..1671c9b --- /dev/null +++ b/.editorconfig @@ -0,0 +1,18 @@ +root = true + +[*] +charset = utf-8 +end_of_line = lf +insert_final_newline = true +indent_style = space +indent_size = 4 +trim_trailing_whitespace = true + +[*.md] +trim_trailing_whitespace = false + +[*.{yml,yaml}] +indent_size = 2 + +[docker-compose.yml] +indent_size = 4 diff --git a/.env.example b/.env.example new file mode 100644 index 0000000..a92bb6b --- /dev/null +++ b/.env.example @@ -0,0 +1,60 @@ +APP_NAME=Clara +APP_ENV=local +APP_KEY= +APP_DEBUG=true +APP_URL=http://localhost:8000 + +METHOD_AUTH= +IP_USER_MANAGER= +PORT_USER_MANAGER= +APP_ID= + +LOG_CHANNEL=stack +LOG_DEPRECATIONS_CHANNEL=null +LOG_LEVEL=debug + +DB_CONNECTION=mysql +DB_HOST=127.0.0.1 +DB_PORT=3306 +DB_DATABASE=clara +DB_USERNAME=root +DB_PASSWORD= + +BROADCAST_DRIVER=log +CACHE_DRIVER=file +FILESYSTEM_DISK=local +QUEUE_CONNECTION=sync +SESSION_DRIVER=file +SESSION_LIFETIME=120 + +MEMCACHED_HOST=127.0.0.1 + +REDIS_HOST=127.0.0.1 +REDIS_PASSWORD=null +REDIS_PORT=6379 + +MAIL_MAILER=smtp +MAIL_HOST=mailhog +MAIL_PORT=1025 +MAIL_USERNAME=null +MAIL_PASSWORD=null +MAIL_ENCRYPTION=null +MAIL_FROM_ADDRESS="hello@example.com" +MAIL_FROM_NAME="${APP_NAME}" + +AWS_ACCESS_KEY_ID= +AWS_SECRET_ACCESS_KEY= +AWS_DEFAULT_REGION=us-east-1 +AWS_BUCKET= +AWS_USE_PATH_STYLE_ENDPOINT=false + +PUSHER_APP_ID= +PUSHER_APP_KEY= +PUSHER_APP_SECRET= +PUSHER_HOST= +PUSHER_PORT=443 +PUSHER_SCHEME=https +PUSHER_APP_CLUSTER=mt1 + +MIX_PUSHER_APP_KEY="${PUSHER_APP_KEY}" +MIX_PUSHER_APP_CLUSTER="${PUSHER_APP_CLUSTER}" diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..7dbbf41 --- /dev/null +++ b/.gitattributes @@ -0,0 +1,11 @@ +* text=auto + +*.blade.php diff=html +*.css diff=css +*.html diff=html +*.md diff=markdown +*.php diff=php + +/.github export-ignore +CHANGELOG.md export-ignore +.styleci.yml export-ignore diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..73b644c --- /dev/null +++ b/.gitignore @@ -0,0 +1,20 @@ +/node_modules +/public/build +/public/hot +/public/storage +/public/assets +/public/mix-manifest.json +/storage/*.key +/vendor +/Modules/* +.env +.env.backup +.phpunit.result.cache +Homestead.json +Homestead.yaml +auth.json +npm-debug.log +yarn-error.log +/.idea +/.vscode +composer.lock diff --git a/README.md b/README.md new file mode 100644 index 0000000..bf0ddd9 --- /dev/null +++ b/README.md @@ -0,0 +1,66 @@ +

Laravel Logo

+ +

+Build Status +Total Downloads +Latest Stable Version +License +

+ +## About Laravel + +Laravel is a web application framework with expressive, elegant syntax. We believe development must be an enjoyable and creative experience to be truly fulfilling. Laravel takes the pain out of development by easing common tasks used in many web projects, such as: + +- [Simple, fast routing engine](https://laravel.com/docs/routing). +- [Powerful dependency injection container](https://laravel.com/docs/container). +- Multiple back-ends for [session](https://laravel.com/docs/session) and [cache](https://laravel.com/docs/cache) storage. +- Expressive, intuitive [database ORM](https://laravel.com/docs/eloquent). +- Database agnostic [schema migrations](https://laravel.com/docs/migrations). +- [Robust background job processing](https://laravel.com/docs/queues). +- [Real-time event broadcasting](https://laravel.com/docs/broadcasting). + +Laravel is accessible, powerful, and provides tools required for large, robust applications. + +## Learning Laravel + +Laravel has the most extensive and thorough [documentation](https://laravel.com/docs) and video tutorial library of all modern web application frameworks, making it a breeze to get started with the framework. + +You may also try the [Laravel Bootcamp](https://bootcamp.laravel.com), where you will be guided through building a modern Laravel application from scratch. + +If you don't feel like reading, [Laracasts](https://laracasts.com) can help. Laracasts contains over 2000 video tutorials on a range of topics including Laravel, modern PHP, unit testing, and JavaScript. Boost your skills by digging into our comprehensive video library. + +## Laravel Sponsors + +We would like to extend our thanks to the following sponsors for funding Laravel development. If you are interested in becoming a sponsor, please visit the Laravel [Patreon page](https://patreon.com/taylorotwell). + +### Premium Partners + +- **[Vehikl](https://vehikl.com/)** +- **[Tighten Co.](https://tighten.co)** +- **[Kirschbaum Development Group](https://kirschbaumdevelopment.com)** +- **[64 Robots](https://64robots.com)** +- **[Cubet Techno Labs](https://cubettech.com)** +- **[Cyber-Duck](https://cyber-duck.co.uk)** +- **[Many](https://www.many.co.uk)** +- **[Webdock, Fast VPS Hosting](https://www.webdock.io/en)** +- **[DevSquad](https://devsquad.com)** +- **[Curotec](https://www.curotec.com/services/technologies/laravel/)** +- **[OP.GG](https://op.gg)** +- **[WebReinvent](https://webreinvent.com/?utm_source=laravel&utm_medium=github&utm_campaign=patreon-sponsors)** +- **[Lendio](https://lendio.com)** + +## Contributing + +Thank you for considering contributing to the Laravel framework! The contribution guide can be found in the [Laravel documentation](https://laravel.com/docs/contributions). + +## Code of Conduct + +In order to ensure that the Laravel community is welcoming to all, please review and abide by the [Code of Conduct](https://laravel.com/docs/contributions#code-of-conduct). + +## Security Vulnerabilities + +If you discover a security vulnerability within Laravel, please send an e-mail to Taylor Otwell via [taylor@laravel.com](mailto:taylor@laravel.com). All security vulnerabilities will be promptly addressed. + +## License + +The Laravel framework is open-sourced software licensed under the [MIT license](https://opensource.org/licenses/MIT). diff --git a/app/Console/Kernel.php b/app/Console/Kernel.php new file mode 100644 index 0000000..d8bc1d2 --- /dev/null +++ b/app/Console/Kernel.php @@ -0,0 +1,32 @@ +command('inspire')->hourly(); + } + + /** + * Register the commands for the application. + * + * @return void + */ + protected function commands() + { + $this->load(__DIR__.'/Commands'); + + require base_path('routes/console.php'); + } +} diff --git a/app/Core/Bootstrap/BootstrapAuth.php b/app/Core/Bootstrap/BootstrapAuth.php new file mode 100644 index 0000000..448786b --- /dev/null +++ b/app/Core/Bootstrap/BootstrapAuth.php @@ -0,0 +1,13 @@ +initLightSidebarLayout(); + + // 2) Dark sidebar layout (default.html) + $this->initDarkSidebarLayout(); + + // 3) Dark header layout (default_header_layout.html) + // $this->initDarkHeaderLayout(); + + // 4) Light header layout (default_header_layout.html) + // $this->initLightHeaderLayout(); + + # Init global assets for default layout + $this->initAssets(); + } + + public function initAssets() + { + # Include global vendors + addVendors(['datatables', 'fullcalendar']); + + # Include global javascript files + addJavascriptFile('assets/js/custom/widgets.js'); + addJavascriptFile('assets/js/custom/apps/chat/chat.js'); + addJavascriptFile('assets/js/custom/utilities/modals/upgrade-plan.js'); + addJavascriptFile('assets/js/custom/utilities/modals/create-app.js'); + addJavascriptFile('assets/js/custom/utilities/modals/users-search.js'); + addJavascriptFile('assets/js/custom/utilities/modals/new-target.js'); + } + + public function initDarkSidebarLayout() + { + addHtmlAttribute('body', 'data-kt-app-layout', 'dark-sidebar'); + addHtmlAttribute('body', 'data-kt-app-header-fixed', 'true'); + addHtmlAttribute('body', 'data-kt-app-sidebar-enabled', 'true'); + addHtmlAttribute('body', 'data-kt-app-sidebar-fixed', 'true'); + addHtmlAttribute('body', 'data-kt-app-sidebar-hoverable', 'true'); + addHtmlAttribute('body', 'data-kt-app-sidebar-push-header', 'true'); + addHtmlAttribute('body', 'data-kt-app-sidebar-push-toolbar', 'true'); + addHtmlAttribute('body', 'data-kt-app-sidebar-push-footer', 'true'); + addHtmlAttribute('body', 'data-kt-app-toolbar-enabled', 'true'); + + addHtmlClass('body', 'app-default'); + } + + public function initLightSidebarLayout() + { + addHtmlAttribute('body', 'data-kt-app-layout', 'light-sidebar'); + addHtmlAttribute('body', 'data-kt-app-header-fixed', 'false'); + addHtmlAttribute('body', 'data-kt-app-sidebar-enabled', 'true'); + addHtmlAttribute('body', 'data-kt-app-sidebar-fixed', 'true'); + addHtmlAttribute('body', 'data-kt-app-sidebar-hoverable', 'true'); + addHtmlAttribute('body', 'data-kt-app-sidebar-push-header', 'true'); + addHtmlAttribute('body', 'data-kt-app-sidebar-push-toolbar', 'true'); + addHtmlAttribute('body', 'data-kt-app-sidebar-push-footer', 'true'); + addHtmlAttribute('body', 'data-kt-app-toolbar-enabled', 'true'); + + addHtmlClass('body', 'app-default'); + } + + public function initDarkHeaderLayout() + { + addHtmlAttribute('body', 'data-kt-app-layout', 'dark-header'); + addHtmlAttribute('body', 'data-kt-app-header-fixed', 'true'); + addHtmlAttribute('body', 'data-kt-app-toolbar-enabled', 'true'); + + addHtmlClass('body', 'app-default'); + } + + public function initLightHeaderLayout() + { + addHtmlAttribute('body', 'data-kt-app-layout', 'light-header'); + addHtmlAttribute('body', 'data-kt-app-header-fixed', 'true'); + addHtmlAttribute('body', 'data-kt-app-toolbar-enabled', 'true'); + + addHtmlClass('body', 'app-default'); + } + +} diff --git a/app/Core/Bootstrap/BootstrapSystem.php b/app/Core/Bootstrap/BootstrapSystem.php new file mode 100644 index 0000000..54d3a65 --- /dev/null +++ b/app/Core/Bootstrap/BootstrapSystem.php @@ -0,0 +1,13 @@ + $value) { + self::$htmlAttributes[$scope][$key] = $value; + } + } + + /** + * Add HTML class by scope + * + * @param $scope + * @param $value + * + * @return void + */ + function addHtmlClass($scope, $value) + { + self::$htmlClasses[$scope][] = $value; + } + + /** + * Remove HTML class by scope + * + * @param $scope + * @param $value + * + * @return void + */ + function removeHtmlClass($scope, $value) + { + $key = array_search($value, self::$htmlClasses[$scope]); + unset(self::$htmlClasses[$scope][$key]); + } + + /** + * Print HTML attributes for the HTML template + * + * @param $scope + * + * @return string + */ + function printHtmlAttributes($scope) + { + $attributes = []; + if (isset(self::$htmlAttributes[$scope])) { + foreach (self::$htmlAttributes[$scope] as $key => $value) { + $attributes[] = sprintf('%s="%s"', $key, $value); + } + } + + return join(' ', $attributes); + } + + /** + * Print HTML classes for the HTML template + * + * @param $scope + * @param $full + * + * @return string + */ + function printHtmlClasses($scope, $full = true) + { + if (empty(self::$htmlClasses)) { + return ''; + } + + $classes = []; + if (isset(self::$htmlClasses[$scope])) { + $classes = self::$htmlClasses[$scope]; + } + + if ($full) { + return sprintf('class="%s"', implode(' ', (array) $classes)); + } + + return $classes; + } + + /** + * Get SVG icon content + * + * @param $path + * @param $classNames + * @param $folder + * + * @return string + */ + function getSvgIcon($path, $classNames = 'svg-icon') + { + if (file_exists(public_path('assets/media/icons/'.$path))) { + return sprintf('%s', $classNames, file_get_contents(public_path('assets/media/icons/'.$path))); + } + + return ''; + } + + /** + * Set dark mode enabled status + * + * @param $flag + * + * @return void + */ + function setModeSwitch($flag) + { + self::$modeSwitchEnabled = $flag; + } + + /** + * Check dark mode status + * + * @return bool + */ + function isModeSwitchEnabled() + { + return self::$modeSwitchEnabled; + } + + /** + * Set the mode to dark or light + * + * @param $mode + * + * @return void + */ + function setModeDefault($mode) + { + self::$modeDefault = $mode; + } + + /** + * Get current mode + * + * @return string + */ + function getModeDefault() + { + return self::$modeDefault; + } + + /** + * Set style direction + * + * @param $direction + * + * @return void + */ + function setDirection($direction) + { + self::$direction = $direction; + } + + /** + * Get style direction + * + * @return string + */ + function getDirection() + { + return self::$direction; + } + + /** + * Extend CSS file name with RTL or dark mode + * + * @param $path + * + * @return string + */ + function extendCssFilename($path) + { + if ($this->isRtlDirection()) { + $path = str_replace('.css', '.rtl.css'); + } + + return $path; + } + + /** + * Check if style direction is RTL + * + * @return bool + */ + function isRtlDirection() + { + return self::$direction === 'rtl'; + } + + /** + * Include favicon from settings + * + * @return string + */ + function includeFavicon() + { + return sprintf('', asset(config('settings.KT_THEME_ASSETS.favicon'))); + } + + /** + * Include the fonts from settings + * + * @return string + */ + function includeFonts() + { + $content = ''; + + foreach (config('settings.KT_THEME_ASSETS.fonts') as $url) { + $content .= sprintf('', asset($url)); + } + + return $content; + } + + /** + * Get the global assets + * + * @return array + */ + function getGlobalAssets($type = 'js') + { + // $this->extendCssFilename() + return config('settings.KT_THEME_ASSETS.global.'.$type); + } + + /** + * Add multiple vendors to the page by name. Refer to settings KT_THEME_VENDORS + * + * @param $vendors + * + * @return array + */ + function addVendors($vendors) + { + foreach ($vendors as $value) { + self::$vendorFiles[] = $value; + } + + return array_unique(self::$vendorFiles); + } + + /** + * Add single vendor to the page by name. Refer to settings KT_THEME_VENDORS + * + * @param $vendor + * + * @return void + */ + function addVendor($vendor) + { + self::$vendorFiles[] = $vendor; + } + + /** + * Add custom javascript file to the page + * + * @param $file + * + * @return void + */ + function addJavascriptFile($file) + { + self::$javascriptFiles[] = $file; + } + + /** + * Add custom CSS file to the page + * + * @param $file + * + * @return void + */ + function addCssFile($file) + { + self::$cssFiles[] = $file; + } + + /** + * Get vendor files from settings. Refer to settings KT_THEME_VENDORS + * + * @param $type + * + * @return array + */ + function getVendors($type) + { + $files = []; + foreach (self::$vendorFiles as $vendor) { + $vendors = config('settings.KT_THEME_VENDORS.'.$vendor); + if (isset($vendors[$type])) { + foreach ($vendors[$type] as $path) { + $files[] = $path; + } + } + } + + return array_unique($files); + } + + /** + * Get custom js files from the settings + * + * @return array + */ + function getCustomJs() + { + return self::$javascriptFiles; + } + + /** + * Get custom css files from the settings + * + * @return array + */ + function getCustomCss() + { + return self::$cssFiles; + } + + /** + * Get HTML attribute based on the scope + * + * @param $scope + * @param $attribute + * + * @return array + */ + function getHtmlAttribute($scope, $attribute) + { + return self::$htmlAttributes[$scope][$attribute] ?? []; + } + + function getIcon($name, $class = '', $type = '') + { + $type = config('settings.KT_THEME_ICONS', 'duotone'); + + $tag = 'span'; + + if ($type === 'duotone') { + $icons = cache()->remember('duotone-icons', 3600, function () { + return json_decode(file_get_contents(public_path('icons.json')), true); + }); + + $pathsNumber = data_get($icons, 'duotone-paths.'.$name, 0); + + $output = '<'.$tag.' class="ki-'.$type.' ki-'.$name.(!empty($class) ? " ".$class : '').'">'; + + for ($i = 0; $i < $pathsNumber; $i++) { + $output .= '<'.$tag.' class="path'.($i + 1).'">'; + } + + $output .= ''; + } else { + $output = '<'.$tag.' class="ki-'.$type.' ki-'.$name.(!empty($class) ? " ".$class : '').'">'; + } + + return $output; + } +} diff --git a/app/Exceptions/Handler.php b/app/Exceptions/Handler.php new file mode 100644 index 0000000..b1eac09 --- /dev/null +++ b/app/Exceptions/Handler.php @@ -0,0 +1,60 @@ +, \Psr\Log\LogLevel::*> + */ + protected $levels = [ + // + ]; + + /** + * A list of the exception types that are not reported. + * + * @var array> + */ + protected $dontReport = [ + // + ]; + + /** + * A list of the inputs that are never flashed to the session on validation exceptions. + * + * @var array + */ + protected $dontFlash = [ + 'current_password', + 'password', + 'password_confirmation', + ]; + + /** + * Register the exception handling callbacks for the application. + * + * @return void + */ + public function register() + { + $this->reportable(function (Throwable $e) { + // + }); + + $this->renderable(function (NotFoundHttpException $e, $request) { + if ($request->is('api/*')) { + return response()->json([ + 'message' => 'Not found.' + ], 404); + } + }); + } + +} diff --git a/app/Helpers/Helpers.php b/app/Helpers/Helpers.php new file mode 100644 index 0000000..962b3c5 --- /dev/null +++ b/app/Helpers/Helpers.php @@ -0,0 +1,545 @@ +addHtmlAttribute($scope, $name, $value); + } + } + + + if (!function_exists('addHtmlAttributes')) { + /** + * Add multiple HTML attributes by scope + * + * @param $scope + * @param $attributes + * + * @return void + */ + function addHtmlAttributes($scope, $attributes) + { + theme()->addHtmlAttributes($scope, $attributes); + } + } + + + if (!function_exists('addHtmlClass')) { + /** + * Add HTML class by scope + * + * @param $scope + * @param $value + * + * @return void + */ + function addHtmlClass($scope, $value) + { + theme()->addHtmlClass($scope, $value); + } + } + + + if (!function_exists('printHtmlAttributes')) { + /** + * Print HTML attributes for the HTML template + * + * @param $scope + * + * @return string + */ + function printHtmlAttributes($scope) + { + return theme()->printHtmlAttributes($scope); + } + } + + + if (!function_exists('printHtmlClasses')) { + /** + * Print HTML classes for the HTML template + * + * @param $scope + * @param $full + * + * @return string + */ + function printHtmlClasses($scope, $full = true) + { + return theme()->printHtmlClasses($scope, $full); + } + } + + + if (!function_exists('getSvgIcon')) { + /** + * Get SVG icon content + * + * @param $path + * @param $classNames + * @param $folder + * + * @return string + */ + function getSvgIcon($path, $classNames = 'svg-icon', $folder = 'assets/media/icons/') + { + return theme()->getSvgIcon($path, $classNames, $folder); + } + } + + + if (!function_exists('setModeSwitch')) { + /** + * Set dark mode enabled status + * + * @param $flag + * + * @return void + */ + function setModeSwitch($flag) + { + } + } + + + if (!function_exists('isModeSwitchEnabled')) { + /** + * Check dark mode status + * + * @return void + */ + function isModeSwitchEnabled() + { + } + } + + + if (!function_exists('setModeDefault')) { + /** + * Set the mode to dark or light + * + * @param $mode + * + * @return void + */ + function setModeDefault($mode) + { + } + } + + + if (!function_exists('getModeDefault')) { + /** + * Get current mode + * + * @return void + */ + function getModeDefault() + { + } + } + + + if (!function_exists('setDirection')) { + /** + * Set style direction + * + * @param $direction + * + * @return void + */ + function setDirection($direction) + { + } + } + + + if (!function_exists('getDirection')) { + /** + * Get style direction + * + * @return void + */ + function getDirection() + { + } + } + + + if (!function_exists('isRtlDirection')) { + /** + * Check if style direction is RTL + * + * @return void + */ + function isRtlDirection() + { + } + } + + + if (!function_exists('extendCssFilename')) { + /** + * Extend CSS file name with RTL or dark mode + * + * @param $path + * + * @return void + */ + function extendCssFilename($path) + { + } + } + + + if (!function_exists('includeFavicon')) { + /** + * Include favicon from settings + * + * @return string + */ + function includeFavicon() + { + return theme()->includeFavicon(); + } + } + + + if (!function_exists('includeFonts')) { + /** + * Include the fonts from settings + * + * @return string + */ + function includeFonts() + { + return theme()->includeFonts(); + } + } + + + if (!function_exists('getGlobalAssets')) { + /** + * Get the global assets + * + * @param $type + * + * @return array + */ + function getGlobalAssets($type = 'js') + { + return theme()->getGlobalAssets($type); + } + } + + + if (!function_exists('addVendors')) { + /** + * Add multiple vendors to the page by name. Refer to settings KT_THEME_VENDORS + * + * @param $vendors + * + * @return void + */ + function addVendors($vendors) + { + theme()->addVendors($vendors); + } + } + + + if (!function_exists('addVendor')) { + /** + * Add single vendor to the page by name. Refer to settings KT_THEME_VENDORS + * + * @param $vendor + * + * @return void + */ + function addVendor($vendor) + { + theme()->addVendor($vendor); + } + } + + + if (!function_exists('addJavascriptFile')) { + /** + * Add custom javascript file to the page + * + * @param $file + * + * @return void + */ + function addJavascriptFile($file) + { + theme()->addJavascriptFile($file); + } + } + + + if (!function_exists('addCssFile')) { + /** + * Add custom CSS file to the page + * + * @param $file + * + * @return void + */ + function addCssFile($file) + { + theme()->addCssFile($file); + } + } + + + if (!function_exists('getVendors')) { + /** + * Get vendor files from settings. Refer to settings KT_THEME_VENDORS + * + * @param $type + * + * @return array + */ + function getVendors($type) + { + return theme()->getVendors($type); + } + } + + + if (!function_exists('getCustomJs')) { + /** + * Get custom js files from the settings + * + * @return array + */ + function getCustomJs() + { + return theme()->getCustomJs(); + } + } + + + if (!function_exists('getCustomCss')) { + /** + * Get custom css files from the settings + * + * @return array + */ + function getCustomCss() + { + return theme()->getCustomCss(); + } + } + + + if (!function_exists('getHtmlAttribute')) { + /** + * Get HTML attribute based on the scope + * + * @param $scope + * @param $attribute + * + * @return array + */ + function getHtmlAttribute($scope, $attribute) + { + return theme()->getHtmlAttribute($scope, $attribute); + } + } + + + if (!function_exists('isUrl')) { + /** + * Get HTML attribute based on the scope + * + * @param $url + * + * @return mixed + */ + function isUrl($url) + { + return filter_var($url, FILTER_VALIDATE_URL); + } + } + + + if (!function_exists('image')) { + /** + * Get image url by path + * + * @param $path + * + * @return string + */ + function image($path) + { + return asset('assets/media/' . $path); + } + } + + + if (!function_exists('getIcon')) { + /** + * Get icon + * + * @param $path + * + * @return string + */ + function getIcon($name, $class = '', $type = '') + { + return theme()->getIcon($name, $class, $type); + } + } + + + function verify_user($id, $passwd, $SERVER_ADDR, $IPUserManager, $portUserManager, $appId) + { + + $USERMANPROG = "user_verification.php"; + $sock = fsockopen("tcp://" . $IPUserManager, $portUserManager, $errno, $errstr, 30); + + + if (!$sock) die("$errstr ($errno)\n"); + + $data = "appsid=" . urlencode($appId) . "&loginid=" . urlencode($id) . "&passwd=" . urlencode($passwd) . "&addr=" . $SERVER_ADDR . "&version=2"; + + //echo "data: $data
"; + + fwrite($sock, "POST /user_verification_dev.php HTTP/1.0\r\n"); + fwrite($sock, "Host: $IPUserManager\r\n"); + fwrite($sock, "Content-type: application/x-www-form-urlencoded\r\n"); + fwrite($sock, "Content-length: " . strlen($data) . "\r\n"); + fwrite($sock, "Accept: */*\r\n"); + fwrite($sock, "\r\n"); + fwrite($sock, "$data\r\n"); + fwrite($sock, "\r\n"); + + $headers = ""; + while ($str = trim(fgets($sock, 4096))) $headers .= "$str\n"; + + $body = ""; + while (!feof($sock)) $body .= fgets($sock, 4096); + + + fclose($sock); + + return decompress($body); + } + + + function getAllowableScript($sessionMenu) + { + //$sessionMenu = $_SESSION['MENU']; + + if (!empty($sessionMenu)) { + $tempMenuArrayLine = explode('-', $sessionMenu); + //print_r($tempMenuArrayLine); + if (count($tempMenuArrayLine) > 0) { + foreach ($tempMenuArrayLine as $tkey => $tval) { + $tempMenuArray = explode('|', $tval); + if (count($tempMenuArray) > 0) { + foreach ($tempMenuArray as $mkey => $mval) { + [$menukey, $menuval] = explode('>', $mval); + if ($menukey === 'LINK') { + $SCRIPT_ALLOW[$menuval] = 1; + } + //$menu[$menuCounter][$menukey] = $menuval; + } + //$menuCounter++; + } + } + } + } + return $SCRIPT_ALLOW; + } + + function decompress($data) + { + $text = ''; + $total = strlen($data); + for ($j = 0; $j < $total; $j = $j + 2) { + $text .= chr(hexdec(substr($data, $j, 2))); + } + + return $text; + } + + function compress($data) + { + $text = ''; + $total = strlen($data); + for ($i = 0; $i < $total; $i++) { + $temp = dechex(ord(substr($data, $i, 1))); + if (strlen($temp) < 2) { + $temp = '0' . $temp; + } + $text .= $temp; + } + + + return $text; + } + + function jsonToView($jsonText = '') + { + $arr = json_decode($jsonText, true); + $html = ""; + if ($arr && is_array($arr)) { + $html .= _arrayToHtmlTableRecursive($arr); + } + return $html; + } + + function _arrayToHtmlTableRecursive($arr) + { + $str = ""; + foreach ($arr as $key => $val) { + $str .= ""; + $str .= ""; + $str .= ""; + } + $str .= "
$key"; + if (is_array($val)) { + if (!empty($val)) { + $str .= _arrayToHtmlTableRecursive($val); + } + } else { + $str .= "$val"; + } + $str .= "
"; + + return $str; + } diff --git a/app/Http/Controllers/ApiController.php b/app/Http/Controllers/ApiController.php new file mode 100644 index 0000000..b52db91 --- /dev/null +++ b/app/Http/Controllers/ApiController.php @@ -0,0 +1,43 @@ + true, + 'data' => $result, + 'message' => $message, + ]; + + return response()->json($response, $code); + } + + + /** + * return error response. + * + * @return \Illuminate\Http\Response + */ + public function sendError($error, $errorMessages = [], $code = 404) + { + $response = [ + 'success' => false, + 'message' => $error, + ]; + + if (!empty($errorMessages)) { + $response['data'] = $errorMessages; + } + + return response()->json($response, $code); + } + } diff --git a/app/Http/Controllers/Controller.php b/app/Http/Controllers/Controller.php new file mode 100644 index 0000000..a0a2a8a --- /dev/null +++ b/app/Http/Controllers/Controller.php @@ -0,0 +1,13 @@ + + */ + protected $middleware = [ + // \App\Http\Middleware\TrustHosts::class, + \App\Http\Middleware\TrustProxies::class, + \Illuminate\Http\Middleware\HandleCors::class, + \App\Http\Middleware\PreventRequestsDuringMaintenance::class, + \Illuminate\Foundation\Http\Middleware\ValidatePostSize::class, + \App\Http\Middleware\TrimStrings::class, + \Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull::class, + ]; + + /** + * The application's route middleware groups. + * + * @var array> + */ + protected $middlewareGroups = [ + 'web' => [ + \App\Http\Middleware\EncryptCookies::class, + \Illuminate\Cookie\Middleware\AddQueuedCookiesToResponse::class, + \Illuminate\Session\Middleware\StartSession::class, + \Illuminate\View\Middleware\ShareErrorsFromSession::class, + \App\Http\Middleware\VerifyCsrfToken::class, + \Illuminate\Routing\Middleware\SubstituteBindings::class, + ], + + 'api' => [ + \Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful::class, + 'throttle:api', + \Illuminate\Routing\Middleware\SubstituteBindings::class, + ], + ]; + + /** + * The application's route middleware. + * + * These middleware may be assigned to groups or used individually. + * + * @var array + */ + protected $routeMiddleware = [ + 'auth' => \App\Http\Middleware\Authenticate::class, + 'auth.basic' => \Illuminate\Auth\Middleware\AuthenticateWithBasicAuth::class, + 'auth.session' => \Illuminate\Session\Middleware\AuthenticateSession::class, + 'cache.headers' => \Illuminate\Http\Middleware\SetCacheHeaders::class, + 'can' => \Illuminate\Auth\Middleware\Authorize::class, + 'guest' => \App\Http\Middleware\RedirectIfAuthenticated::class, + 'password.confirm' => \Illuminate\Auth\Middleware\RequirePassword::class, + 'signed' => \App\Http\Middleware\ValidateSignature::class, + 'throttle' => \Illuminate\Routing\Middleware\ThrottleRequests::class, + 'verified' => \Illuminate\Auth\Middleware\EnsureEmailIsVerified::class, + ]; +} diff --git a/app/Http/Middleware/Authenticate.php b/app/Http/Middleware/Authenticate.php new file mode 100644 index 0000000..704089a --- /dev/null +++ b/app/Http/Middleware/Authenticate.php @@ -0,0 +1,21 @@ +expectsJson()) { + return route('login'); + } + } +} diff --git a/app/Http/Middleware/EncryptCookies.php b/app/Http/Middleware/EncryptCookies.php new file mode 100644 index 0000000..0f1506b --- /dev/null +++ b/app/Http/Middleware/EncryptCookies.php @@ -0,0 +1,20 @@ + + */ + protected $except = [ + "sidebar_minimize_state", + "kt_aside_toggle_state", + "kt_aside_menu", + "data-kt-app-sidebar-minimize", + ]; +} diff --git a/app/Http/Middleware/PreventRequestsDuringMaintenance.php b/app/Http/Middleware/PreventRequestsDuringMaintenance.php new file mode 100644 index 0000000..74cbd9a --- /dev/null +++ b/app/Http/Middleware/PreventRequestsDuringMaintenance.php @@ -0,0 +1,17 @@ + + */ + protected $except = [ + // + ]; +} diff --git a/app/Http/Middleware/RedirectIfAuthenticated.php b/app/Http/Middleware/RedirectIfAuthenticated.php new file mode 100644 index 0000000..a2813a0 --- /dev/null +++ b/app/Http/Middleware/RedirectIfAuthenticated.php @@ -0,0 +1,32 @@ +check()) { + return redirect(RouteServiceProvider::HOME); + } + } + + return $next($request); + } +} diff --git a/app/Http/Middleware/TrimStrings.php b/app/Http/Middleware/TrimStrings.php new file mode 100644 index 0000000..88cadca --- /dev/null +++ b/app/Http/Middleware/TrimStrings.php @@ -0,0 +1,19 @@ + + */ + protected $except = [ + 'current_password', + 'password', + 'password_confirmation', + ]; +} diff --git a/app/Http/Middleware/TrustHosts.php b/app/Http/Middleware/TrustHosts.php new file mode 100644 index 0000000..7186414 --- /dev/null +++ b/app/Http/Middleware/TrustHosts.php @@ -0,0 +1,20 @@ + + */ + public function hosts() + { + return [ + $this->allSubdomainsOfApplicationUrl(), + ]; + } +} diff --git a/app/Http/Middleware/TrustProxies.php b/app/Http/Middleware/TrustProxies.php new file mode 100644 index 0000000..3391630 --- /dev/null +++ b/app/Http/Middleware/TrustProxies.php @@ -0,0 +1,28 @@ +|string|null + */ + protected $proxies; + + /** + * The headers that should be used to detect proxies. + * + * @var int + */ + protected $headers = + Request::HEADER_X_FORWARDED_FOR | + Request::HEADER_X_FORWARDED_HOST | + Request::HEADER_X_FORWARDED_PORT | + Request::HEADER_X_FORWARDED_PROTO | + Request::HEADER_X_FORWARDED_AWS_ELB; +} diff --git a/app/Http/Middleware/ValidateSignature.php b/app/Http/Middleware/ValidateSignature.php new file mode 100644 index 0000000..093bf64 --- /dev/null +++ b/app/Http/Middleware/ValidateSignature.php @@ -0,0 +1,22 @@ + + */ + protected $except = [ + // 'fbclid', + // 'utm_campaign', + // 'utm_content', + // 'utm_medium', + // 'utm_source', + // 'utm_term', + ]; +} diff --git a/app/Http/Middleware/VerifyCsrfToken.php b/app/Http/Middleware/VerifyCsrfToken.php new file mode 100644 index 0000000..9e86521 --- /dev/null +++ b/app/Http/Middleware/VerifyCsrfToken.php @@ -0,0 +1,17 @@ + + */ + protected $except = [ + // + ]; +} diff --git a/app/Providers/AppServiceProvider.php b/app/Providers/AppServiceProvider.php new file mode 100644 index 0000000..d6e082e --- /dev/null +++ b/app/Providers/AppServiceProvider.php @@ -0,0 +1,30 @@ + + */ + protected $policies = [// 'App\Models\Model' => 'App\Policies\ModelPolicy', + ]; + + /** + * Register any authentication / authorization services. + * + * @return void + */ + public function boot() + { + // + } + } diff --git a/app/Providers/BroadcastServiceProvider.php b/app/Providers/BroadcastServiceProvider.php new file mode 100644 index 0000000..395c518 --- /dev/null +++ b/app/Providers/BroadcastServiceProvider.php @@ -0,0 +1,21 @@ +> + */ + protected $listen = [ + Registered::class => [ + SendEmailVerificationNotification::class, + ], + ]; + + /** + * Register any events for your application. + * + * @return void + */ + public function boot() + { + // + } + + /** + * Determine if events and listeners should be automatically discovered. + * + * @return bool + */ + public function shouldDiscoverEvents() + { + return false; + } +} diff --git a/app/Providers/HelperServiceProvider.php b/app/Providers/HelperServiceProvider.php new file mode 100644 index 0000000..cf5cb50 --- /dev/null +++ b/app/Providers/HelperServiceProvider.php @@ -0,0 +1,31 @@ +configureRateLimiting(); + + $this->routes(function () { + Route::middleware('api') + ->prefix('api') + ->group(base_path('routes/api.php')); + + Route::middleware('web') + ->group(base_path('routes/web.php')); + }); + } + + /** + * Configure the rate limiters for the application. + * + * @return void + */ + protected function configureRateLimiting() + { + RateLimiter::for('api', function (Request $request) { + return Limit::perMinute(60)->by($request->user()?->id ?: $request->ip()); + }); + } +} diff --git a/app/View/Components/AuthLayout.php b/app/View/Components/AuthLayout.php new file mode 100644 index 0000000..ba921ce --- /dev/null +++ b/app/View/Components/AuthLayout.php @@ -0,0 +1,29 @@ +init(); + } + + /** + * Get the view / contents that represents the component. + * + * @return \Illuminate\Contracts\Foundation\Application|\Illuminate\Contracts\View\Factory|\Illuminate\Contracts\View\View + */ + public function render() + { + return view(config('settings.KT_THEME_LAYOUT_DIR').'._auth'); + } +} diff --git a/app/View/Components/DefaultLayout.php b/app/View/Components/DefaultLayout.php new file mode 100644 index 0000000..39948ea --- /dev/null +++ b/app/View/Components/DefaultLayout.php @@ -0,0 +1,30 @@ +init(); + } + + /** + * Get the view / contents that represent the component. + * + * @return \Illuminate\Contracts\View\View|\Closure|string + */ + public function render() + { + // See also starterkit/app/Core/Bootstrap/BootstrapDefault.php + return view(config('settings.KT_THEME_LAYOUT_DIR').'._default'); + } +} diff --git a/app/View/Components/SystemLayout.php b/app/View/Components/SystemLayout.php new file mode 100644 index 0000000..0e857d0 --- /dev/null +++ b/app/View/Components/SystemLayout.php @@ -0,0 +1,30 @@ +init(); + } + + /** + * Get the view / contents that represents the component. + * + * @return \Illuminate\Contracts\Foundation\Application|\Illuminate\Contracts\View\Factory|\Illuminate\Contracts\View\View + */ + public function render() + { + return view(config('settings.KT_THEME_LAYOUT_DIR').'._system'); + } +} diff --git a/artisan b/artisan new file mode 100644 index 0000000..67a3329 --- /dev/null +++ b/artisan @@ -0,0 +1,53 @@ +#!/usr/bin/env php +make(Illuminate\Contracts\Console\Kernel::class); + +$status = $kernel->handle( + $input = new Symfony\Component\Console\Input\ArgvInput, + new Symfony\Component\Console\Output\ConsoleOutput +); + +/* +|-------------------------------------------------------------------------- +| Shutdown The Application +|-------------------------------------------------------------------------- +| +| Once Artisan has finished running, we will fire off the shutdown events +| so that any final work may be done by the application before we shut +| down the process. This is the last thing to happen to the request. +| +*/ + +$kernel->terminate($input, $status); + +exit($status); diff --git a/bootstrap/app.php b/bootstrap/app.php new file mode 100644 index 0000000..037e17d --- /dev/null +++ b/bootstrap/app.php @@ -0,0 +1,55 @@ +singleton( + Illuminate\Contracts\Http\Kernel::class, + App\Http\Kernel::class +); + +$app->singleton( + Illuminate\Contracts\Console\Kernel::class, + App\Console\Kernel::class +); + +$app->singleton( + Illuminate\Contracts\Debug\ExceptionHandler::class, + App\Exceptions\Handler::class +); + +/* +|-------------------------------------------------------------------------- +| Return The Application +|-------------------------------------------------------------------------- +| +| This script returns the application instance. The instance is given to +| the calling script so we can separate the building of the instances +| from the actual running of the application and sending responses. +| +*/ + +return $app; diff --git a/bootstrap/cache/.gitignore b/bootstrap/cache/.gitignore new file mode 100644 index 0000000..d6b7ef3 --- /dev/null +++ b/bootstrap/cache/.gitignore @@ -0,0 +1,2 @@ +* +!.gitignore diff --git a/composer.json b/composer.json new file mode 100644 index 0000000..e6b6743 --- /dev/null +++ b/composer.json @@ -0,0 +1,106 @@ +{ + "name": "iat/clara", + "type": "project", + "description": "Core Laravel Modular", + "keywords": [ + "framework", + "laravel" + ], + "license": "MIT", + "require": { + "php": "^8.0.2", + "anlutro/l4-settings": "^1.3", + "dompdf/dompdf": "^2.0", + "guzzlehttp/guzzle": "^7.2", + "haruncpi/laravel-id-generator": "^1.1", + "jackiedo/log-reader": "2.*", + "joshbrw/laravel-module-installer": "^2.0", + "laracasts/flash": "^3.2", + "laravel/framework": "^10.0", + "laravel/octane": "^1.5", + "laravel/sanctum": "^3.2", + "laravel/tinker": "^2.7", + "laravelcollective/html": "^6.4", + "nwidart/laravel-modules": "^10.0", + "putrakuningan/logs-module": "dev-master", + "putrakuningan/usermanager-module": "dev-master", + "putrakuningan/master-module": "dev-master", + "simplesoftwareio/simple-qrcode": "^4.2", + "spatie/laravel-activitylog": "^4.7", + "spatie/laravel-permission": "^5.10", + "wildside/userstamps": "^2.3", + "yajra/laravel-datatables": "^10.0", + "yajra/laravel-datatables-oracle": "^10.3.1" + }, + "require-dev": { + "fakerphp/faker": "^1.9.1", + "laravel/breeze": "^1.14", + "laravel/pint": "^1.0", + "laravel/sail": "^1.0.1", + "mockery/mockery": "^1.4.4", + "nunomaduro/collision": "^7.0", + "phpunit/phpunit": "^10.0", + "spatie/laravel-ignition": "^2.0" + }, + "autoload": { + "psr-4": { + "App\\": "app/", + "Database\\Factories\\": "database/factories/", + "Database\\Seeders\\": "database/seeders/" + } + }, + "autoload-dev": { + "psr-4": { + "Tests\\": "tests/", + "Modules\\": "Modules/" + } + }, + "scripts": { + "post-autoload-dump": [ + "Illuminate\\Foundation\\ComposerScripts::postAutoloadDump", + "@php artisan package:discover --ansi" + ], + "post-update-cmd": [ + "@php artisan vendor:publish --tag=laravel-assets --ansi --force" + ], + "post-root-package-install": [ + "@php -r \"file_exists('.env') || copy('.env.example', '.env');\"" + ], + "post-create-project-cmd": [ + "@php artisan key:generate --ansi" + ] + }, + "extra": { + "laravel": { + "dont-discover": [] + } + }, + "config": { + "optimize-autoloader": true, + "preferred-install": "dist", + "sort-packages": true, + "allow-plugins": { + "pestphp/pest-plugin": true, + "joshbrw/laravel-module-installer": true + } + }, + "minimum-stability": "dev", + "prefer-stable": true, + "repositories": [ + { + "name": "putrakuningan/logs-module", + "type": "vcs", + "url": "https://git.putrakuningan.com/putrakuningan/Logs" + }, + { + "name": "putrakuningan/usermanager-module", + "type": "vcs", + "url": "https://git.putrakuningan.com/putrakuningan/Usermanager" + }, + { + "name": "putrakuningan/master-module", + "type": "vcs", + "url": "https://git.putrakuningan.com/putrakuningan/Master" + } + ] +} diff --git a/config/activitylog.php b/config/activitylog.php new file mode 100644 index 0000000..5f6afcf --- /dev/null +++ b/config/activitylog.php @@ -0,0 +1,52 @@ + env('ACTIVITY_LOGGER_ENABLED', true), + + /* + * When the clean-command is executed, all recording activities older than + * the number of days specified here will be deleted. + */ + 'delete_records_older_than_days' => 365, + + /* + * If no log name is passed to the activity() helper + * we use this default log name. + */ + 'default_log_name' => 'default', + + /* + * You can specify an auth driver here that gets user models. + * If this is null we'll use the current Laravel auth driver. + */ + 'default_auth_driver' => null, + + /* + * If set to true, the subject returns soft deleted models. + */ + 'subject_returns_soft_deleted_models' => false, + + /* + * This model will be used to log activity. + * It should implement the Spatie\Activitylog\Contracts\Activity interface + * and extend Illuminate\Database\Eloquent\Model. + */ + 'activity_model' => \Spatie\Activitylog\Models\Activity::class, + + /* + * This is the name of the table that will be created by the migration and + * used by the Activity model shipped with this package. + */ + 'table_name' => 'activity_log', + + /* + * This is the database connection that will be used by the migration and + * the Activity model shipped with this package. In case it's not set + * Laravel's database.default will be used instead. + */ + 'database_connection' => env('ACTIVITY_LOGGER_DB_CONNECTION'), +]; diff --git a/config/app.php b/config/app.php new file mode 100644 index 0000000..63a73f3 --- /dev/null +++ b/config/app.php @@ -0,0 +1,221 @@ + env('APP_NAME', 'Laravel'), + + /* + |-------------------------------------------------------------------------- + | Application Environment + |-------------------------------------------------------------------------- + | + | This value determines the "environment" your application is currently + | running in. This may determine how you prefer to configure various + | services the application utilizes. Set this in your ".env" file. + | + */ + + 'env' => env('APP_ENV', 'production'), + + /* + |-------------------------------------------------------------------------- + | Application Debug Mode + |-------------------------------------------------------------------------- + | + | When your application is in debug mode, detailed error messages with + | stack traces will be shown on every error that occurs within your + | application. If disabled, a simple generic error page is shown. + | + */ + + 'debug' => (bool) env('APP_DEBUG', false), + + /* + |-------------------------------------------------------------------------- + | Application URL + |-------------------------------------------------------------------------- + | + | This URL is used by the console to properly generate URLs when using + | the Artisan command line tool. You should set this to the root of + | your application so that it is used when running Artisan tasks. + | + */ + + 'url' => env('APP_URL', 'http://localhost'), + + 'asset_url' => env('ASSET_URL'), + + /* + |-------------------------------------------------------------------------- + | Application Timezone + |-------------------------------------------------------------------------- + | + | Here you may specify the default timezone for your application, which + | will be used by the PHP date and date-time functions. We have gone + | ahead and set this to a sensible default for you out of the box. + | + */ + + 'timezone' => 'UTC', + + /* + |-------------------------------------------------------------------------- + | Application Locale Configuration + |-------------------------------------------------------------------------- + | + | The application locale determines the default locale that will be used + | by the translation service provider. You are free to set this value + | to any of the locales which will be supported by the application. + | + */ + + 'locale' => 'id', + + /* + |-------------------------------------------------------------------------- + | Application Fallback Locale + |-------------------------------------------------------------------------- + | + | The fallback locale determines the locale to use when the current one + | is not available. You may change the value to correspond to any of + | the language folders that are provided through your application. + | + */ + + 'fallback_locale' => 'en', + + /* + |-------------------------------------------------------------------------- + | Faker Locale + |-------------------------------------------------------------------------- + | + | This locale will be used by the Faker PHP library when generating fake + | data for your database seeds. For example, this will be used to get + | localized telephone numbers, street address information and more. + | + */ + + 'faker_locale' => 'en_US', + + /* + |-------------------------------------------------------------------------- + | Encryption Key + |-------------------------------------------------------------------------- + | + | This key is used by the Illuminate encrypter service and should be set + | to a random, 32 character string, otherwise these encrypted strings + | will not be safe. Please do this before deploying an application! + | + */ + + 'key' => env('APP_KEY'), + + 'cipher' => 'AES-256-CBC', + + /* + |-------------------------------------------------------------------------- + | Maintenance Mode Driver + |-------------------------------------------------------------------------- + | + | These configuration options determine the driver used to determine and + | manage Laravel's "maintenance mode" status. The "cache" driver will + | allow maintenance mode to be controlled across multiple machines. + | + | Supported drivers: "file", "cache" + | + */ + + 'maintenance' => [ + 'driver' => 'file', + // 'store' => 'redis', + ], + + /* + |-------------------------------------------------------------------------- + | Autoloaded Service Providers + |-------------------------------------------------------------------------- + | + | The service providers listed here will be automatically loaded on the + | request to your application. Feel free to add your own services to + | this array to grant expanded functionality to your applications. + | + */ + + 'providers' => [ + + /* + * Laravel Framework Service Providers... + */ + Illuminate\Auth\AuthServiceProvider::class, + Illuminate\Broadcasting\BroadcastServiceProvider::class, + Illuminate\Bus\BusServiceProvider::class, + Illuminate\Cache\CacheServiceProvider::class, + Illuminate\Foundation\Providers\ConsoleSupportServiceProvider::class, + Illuminate\Cookie\CookieServiceProvider::class, + Illuminate\Database\DatabaseServiceProvider::class, + Illuminate\Encryption\EncryptionServiceProvider::class, + Illuminate\Filesystem\FilesystemServiceProvider::class, + Illuminate\Foundation\Providers\FoundationServiceProvider::class, + Illuminate\Hashing\HashServiceProvider::class, + Illuminate\Mail\MailServiceProvider::class, + Illuminate\Notifications\NotificationServiceProvider::class, + Illuminate\Pagination\PaginationServiceProvider::class, + Illuminate\Pipeline\PipelineServiceProvider::class, + Illuminate\Queue\QueueServiceProvider::class, + Illuminate\Redis\RedisServiceProvider::class, + Illuminate\Auth\Passwords\PasswordResetServiceProvider::class, + Illuminate\Session\SessionServiceProvider::class, + Illuminate\Translation\TranslationServiceProvider::class, + Illuminate\Validation\ValidationServiceProvider::class, + Illuminate\View\ViewServiceProvider::class, + /* + * Package Service Providers... + */ + + /* + * Application Service Providers... + */ + App\Providers\HelperServiceProvider::class, + App\Providers\AppServiceProvider::class, + \App\Providers\AuthServiceProvider::class, + // App\Providers\BroadcastServiceProvider::class, + App\Providers\EventServiceProvider::class, + App\Providers\RouteServiceProvider::class, + + Yajra\DataTables\DataTablesServiceProvider::class, + Jackiedo\LogReader\LogReaderServiceProvider::class, + + Spatie\Permission\PermissionServiceProvider::class, + + ], + + /* + |-------------------------------------------------------------------------- + | Class Aliases + |-------------------------------------------------------------------------- + | + | This array of class aliases will be registered when this application + | is started. However, feel free to register as many as you wish as + | the aliases are "lazy" loaded so they don't hinder performance. + | + */ + + 'aliases' => Facade::defaultAliases()->merge([ + // 'ExampleClass' => App\Example\ExampleClass::class, + 'LogReader' => Jackiedo\LogReader\Facades\LogReader::class, + ])->toArray(), + +]; diff --git a/config/auth.php b/config/auth.php new file mode 100644 index 0000000..e114b36 --- /dev/null +++ b/config/auth.php @@ -0,0 +1,111 @@ + [ + 'guard' => 'web', + 'passwords' => 'users', + ], + + /* + |-------------------------------------------------------------------------- + | Authentication Guards + |-------------------------------------------------------------------------- + | + | Next, you may define every authentication guard for your application. + | Of course, a great default configuration has been defined for you + | here which uses session storage and the Eloquent user provider. + | + | All authentication drivers have a user provider. This defines how the + | users are actually retrieved out of your database or other storage + | mechanisms used by this application to persist your user's data. + | + | Supported: "session" + | + */ + + 'guards' => [ + 'web' => [ + 'driver' => 'session', + 'provider' => 'users', + ], + ], + + /* + |-------------------------------------------------------------------------- + | User Providers + |-------------------------------------------------------------------------- + | + | All authentication drivers have a user provider. This defines how the + | users are actually retrieved out of your database or other storage + | mechanisms used by this application to persist your user's data. + | + | If you have multiple user tables or models you may configure multiple + | sources which represent each model / table. These sources may then + | be assigned to any extra authentication guards you have defined. + | + | Supported: "database", "eloquent" + | + */ + + 'providers' => [ + 'users' => [ + 'driver' => 'eloquent', + 'model' => \Modules\Usermanager\Entities\User::class, + ], + + // 'users' => [ + // 'driver' => 'database', + // 'table' => 'users', + // ], + ], + + /* + |-------------------------------------------------------------------------- + | Resetting Passwords + |-------------------------------------------------------------------------- + | + | You may specify multiple password reset configurations if you have more + | than one user table or model in the application and you want to have + | separate password reset settings based on the specific user types. + | + | The expire time is the number of minutes that each reset token will be + | considered valid. This security feature keeps tokens short-lived so + | they have less time to be guessed. You may change this as needed. + | + */ + + 'passwords' => [ + 'users' => [ + 'provider' => 'users', + 'table' => 'password_resets', + 'expire' => 60, + 'throttle' => 60, + ], + ], + + /* + |-------------------------------------------------------------------------- + | Password Confirmation Timeout + |-------------------------------------------------------------------------- + | + | Here you may define the amount of seconds before a password confirmation + | times out and the user is prompted to re-enter their password via the + | confirmation screen. By default, the timeout lasts for three hours. + | + */ + + 'password_timeout' => 10800, + +]; diff --git a/config/broadcasting.php b/config/broadcasting.php new file mode 100644 index 0000000..1688242 --- /dev/null +++ b/config/broadcasting.php @@ -0,0 +1,70 @@ + env('BROADCAST_DRIVER', 'null'), + + /* + |-------------------------------------------------------------------------- + | Broadcast Connections + |-------------------------------------------------------------------------- + | + | Here you may define all of the broadcast connections that will be used + | to broadcast events to other systems or over websockets. Samples of + | each available type of connection are provided inside this array. + | + */ + + 'connections' => [ + + 'pusher' => [ + 'driver' => 'pusher', + 'key' => env('PUSHER_APP_KEY'), + 'secret' => env('PUSHER_APP_SECRET'), + 'app_id' => env('PUSHER_APP_ID'), + 'options' => [ + 'host' => env('PUSHER_HOST', 'api-'.env('PUSHER_APP_CLUSTER', 'mt1').'.pusher.com') ?: 'api-'.env('PUSHER_APP_CLUSTER', 'mt1').'.pusher.com', + 'port' => env('PUSHER_PORT', 443), + 'scheme' => env('PUSHER_SCHEME', 'https'), + 'encrypted' => true, + 'useTLS' => env('PUSHER_SCHEME', 'https') === 'https', + ], + 'client_options' => [ + // Guzzle client options: https://docs.guzzlephp.org/en/stable/request-options.html + ], + ], + + 'ably' => [ + 'driver' => 'ably', + 'key' => env('ABLY_KEY'), + ], + + 'redis' => [ + 'driver' => 'redis', + 'connection' => 'default', + ], + + 'log' => [ + 'driver' => 'log', + ], + + 'null' => [ + 'driver' => 'null', + ], + + ], + +]; diff --git a/config/cache.php b/config/cache.php new file mode 100644 index 0000000..33bb295 --- /dev/null +++ b/config/cache.php @@ -0,0 +1,110 @@ + env('CACHE_DRIVER', 'file'), + + /* + |-------------------------------------------------------------------------- + | Cache Stores + |-------------------------------------------------------------------------- + | + | Here you may define all of the cache "stores" for your application as + | well as their drivers. You may even define multiple stores for the + | same cache driver to group types of items stored in your caches. + | + | Supported drivers: "apc", "array", "database", "file", + | "memcached", "redis", "dynamodb", "octane", "null" + | + */ + + 'stores' => [ + + 'apc' => [ + 'driver' => 'apc', + ], + + 'array' => [ + 'driver' => 'array', + 'serialize' => false, + ], + + 'database' => [ + 'driver' => 'database', + 'table' => 'cache', + 'connection' => null, + 'lock_connection' => null, + ], + + 'file' => [ + 'driver' => 'file', + 'path' => storage_path('framework/cache/data'), + ], + + 'memcached' => [ + 'driver' => 'memcached', + 'persistent_id' => env('MEMCACHED_PERSISTENT_ID'), + 'sasl' => [ + env('MEMCACHED_USERNAME'), + env('MEMCACHED_PASSWORD'), + ], + 'options' => [ + // Memcached::OPT_CONNECT_TIMEOUT => 2000, + ], + 'servers' => [ + [ + 'host' => env('MEMCACHED_HOST', '127.0.0.1'), + 'port' => env('MEMCACHED_PORT', 11211), + 'weight' => 100, + ], + ], + ], + + 'redis' => [ + 'driver' => 'redis', + 'connection' => 'cache', + 'lock_connection' => 'default', + ], + + 'dynamodb' => [ + 'driver' => 'dynamodb', + 'key' => env('AWS_ACCESS_KEY_ID'), + 'secret' => env('AWS_SECRET_ACCESS_KEY'), + 'region' => env('AWS_DEFAULT_REGION', 'us-east-1'), + 'table' => env('DYNAMODB_CACHE_TABLE', 'cache'), + 'endpoint' => env('DYNAMODB_ENDPOINT'), + ], + + 'octane' => [ + 'driver' => 'octane', + ], + + ], + + /* + |-------------------------------------------------------------------------- + | Cache Key Prefix + |-------------------------------------------------------------------------- + | + | When utilizing the APC, database, memcached, Redis, or DynamoDB cache + | stores there might be other applications using the same cache. For + | that reason, you may prefix every cache key to avoid collisions. + | + */ + + 'prefix' => env('CACHE_PREFIX', Str::slug(env('APP_NAME', 'laravel'), '_').'_cache_'), + +]; diff --git a/config/cors.php b/config/cors.php new file mode 100644 index 0000000..8a39e6d --- /dev/null +++ b/config/cors.php @@ -0,0 +1,34 @@ + ['api/*', 'sanctum/csrf-cookie'], + + 'allowed_methods' => ['*'], + + 'allowed_origins' => ['*'], + + 'allowed_origins_patterns' => [], + + 'allowed_headers' => ['*'], + + 'exposed_headers' => [], + + 'max_age' => 0, + + 'supports_credentials' => false, + +]; diff --git a/config/database.php b/config/database.php new file mode 100644 index 0000000..137ad18 --- /dev/null +++ b/config/database.php @@ -0,0 +1,151 @@ + env('DB_CONNECTION', 'mysql'), + + /* + |-------------------------------------------------------------------------- + | Database Connections + |-------------------------------------------------------------------------- + | + | Here are each of the database connections setup for your application. + | Of course, examples of configuring each database platform that is + | supported by Laravel is shown below to make development simple. + | + | + | All database work in Laravel is done through the PHP PDO facilities + | so make sure you have the driver for your particular database of + | choice installed on your machine before you begin development. + | + */ + + 'connections' => [ + + 'sqlite' => [ + 'driver' => 'sqlite', + 'url' => env('DATABASE_URL'), + 'database' => env('DB_DATABASE', database_path('database.sqlite')), + 'prefix' => '', + 'foreign_key_constraints' => env('DB_FOREIGN_KEYS', true), + ], + + 'mysql' => [ + 'driver' => 'mysql', + 'url' => env('DATABASE_URL'), + 'host' => env('DB_HOST', '127.0.0.1'), + 'port' => env('DB_PORT', '3306'), + 'database' => env('DB_DATABASE', 'forge'), + 'username' => env('DB_USERNAME', 'forge'), + 'password' => env('DB_PASSWORD', ''), + 'unix_socket' => env('DB_SOCKET', ''), + 'charset' => 'utf8mb4', + 'collation' => 'utf8mb4_unicode_ci', + 'prefix' => '', + 'prefix_indexes' => true, + 'strict' => true, + 'engine' => null, + 'options' => extension_loaded('pdo_mysql') ? array_filter([ + PDO::MYSQL_ATTR_SSL_CA => env('MYSQL_ATTR_SSL_CA'), + ]) : [], + ], + + 'pgsql' => [ + 'driver' => 'pgsql', + 'url' => env('DATABASE_URL'), + 'host' => env('DB_HOST', '127.0.0.1'), + 'port' => env('DB_PORT', '5432'), + 'database' => env('DB_DATABASE', 'forge'), + 'username' => env('DB_USERNAME', 'forge'), + 'password' => env('DB_PASSWORD', ''), + 'charset' => 'utf8', + 'prefix' => '', + 'prefix_indexes' => true, + 'search_path' => 'public', + 'sslmode' => 'prefer', + ], + + 'sqlsrv' => [ + 'driver' => 'sqlsrv', + 'url' => env('DATABASE_URL'), + 'host' => env('DB_HOST', 'localhost'), + 'port' => env('DB_PORT', '1433'), + 'database' => env('DB_DATABASE', 'forge'), + 'username' => env('DB_USERNAME', 'forge'), + 'password' => env('DB_PASSWORD', ''), + 'charset' => 'utf8', + 'prefix' => '', + 'prefix_indexes' => true, + // 'encrypt' => env('DB_ENCRYPT', 'yes'), + // 'trust_server_certificate' => env('DB_TRUST_SERVER_CERTIFICATE', 'false'), + ], + + ], + + /* + |-------------------------------------------------------------------------- + | Migration Repository Table + |-------------------------------------------------------------------------- + | + | This table keeps track of all the migrations that have already run for + | your application. Using this information, we can determine which of + | the migrations on disk haven't actually been run in the database. + | + */ + + 'migrations' => 'migrations', + + /* + |-------------------------------------------------------------------------- + | Redis Databases + |-------------------------------------------------------------------------- + | + | Redis is an open source, fast, and advanced key-value store that also + | provides a richer body of commands than a typical key-value system + | such as APC or Memcached. Laravel makes it easy to dig right in. + | + */ + + 'redis' => [ + + 'client' => env('REDIS_CLIENT', 'phpredis'), + + 'options' => [ + 'cluster' => env('REDIS_CLUSTER', 'redis'), + 'prefix' => env('REDIS_PREFIX', Str::slug(env('APP_NAME', 'laravel'), '_').'_database_'), + ], + + 'default' => [ + 'url' => env('REDIS_URL'), + 'host' => env('REDIS_HOST', '127.0.0.1'), + 'username' => env('REDIS_USERNAME'), + 'password' => env('REDIS_PASSWORD'), + 'port' => env('REDIS_PORT', '6379'), + 'database' => env('REDIS_DB', '0'), + ], + + 'cache' => [ + 'url' => env('REDIS_URL'), + 'host' => env('REDIS_HOST', '127.0.0.1'), + 'username' => env('REDIS_USERNAME'), + 'password' => env('REDIS_PASSWORD'), + 'port' => env('REDIS_PORT', '6379'), + 'database' => env('REDIS_CACHE_DB', '1'), + ], + + ], + +]; diff --git a/config/datatables.php b/config/datatables.php new file mode 100644 index 0000000..b6ed653 --- /dev/null +++ b/config/datatables.php @@ -0,0 +1,127 @@ + [ + /* + * Smart search will enclose search keyword with wildcard string "%keyword%". + * SQL: column LIKE "%keyword%" + */ + 'smart' => true, + + /* + * Multi-term search will explode search keyword using spaces resulting into multiple term search. + */ + 'multi_term' => true, + + /* + * Case insensitive will search the keyword in lower case format. + * SQL: LOWER(column) LIKE LOWER(keyword) + */ + 'case_insensitive' => true, + + /* + * Wild card will add "%" in between every characters of the keyword. + * SQL: column LIKE "%k%e%y%w%o%r%d%" + */ + 'use_wildcards' => false, + + /* + * Perform a search which starts with the given keyword. + * SQL: column LIKE "keyword%" + */ + 'starts_with' => false, + ], + + /* + * DataTables internal index id response column name. + */ + 'index_column' => 'DT_RowIndex', + + /* + * List of available builders for DataTables. + * This is where you can register your custom dataTables builder. + */ + 'engines' => [ + 'eloquent' => Yajra\DataTables\EloquentDataTable::class, + 'query' => Yajra\DataTables\QueryDataTable::class, + 'collection' => Yajra\DataTables\CollectionDataTable::class, + 'resource' => Yajra\DataTables\ApiResourceDataTable::class, + ], + + /* + * DataTables accepted builder to engine mapping. + * This is where you can override which engine a builder should use + * Note, only change this if you know what you are doing! + */ + 'builders' => [ + //Illuminate\Database\Eloquent\Relations\Relation::class => 'eloquent', + //Illuminate\Database\Eloquent\Builder::class => 'eloquent', + //Illuminate\Database\Query\Builder::class => 'query', + //Illuminate\Support\Collection::class => 'collection', + ], + + /* + * Nulls last sql pattern for PostgreSQL & Oracle. + * For MySQL, use 'CASE WHEN :column IS NULL THEN 1 ELSE 0 END, :column :direction' + */ + 'nulls_last_sql' => ':column :direction NULLS LAST', + + /* + * User friendly message to be displayed on user if error occurs. + * Possible values: + * null - The exception message will be used on error response. + * 'throw' - Throws a \Yajra\DataTables\Exceptions\Exception. Use your custom error handler if needed. + * 'custom message' - Any friendly message to be displayed to the user. You can also use translation key. + */ + 'error' => env('DATATABLES_ERROR', null), + + /* + * Default columns definition of dataTable utility functions. + */ + 'columns' => [ + /* + * List of columns hidden/removed on json response. + */ + 'excess' => ['rn', 'row_num'], + + /* + * List of columns to be escaped. If set to *, all columns are escape. + * Note: You can set the value to empty array to disable XSS protection. + */ + 'escape' => '*', + + /* + * List of columns that are allowed to display html content. + * Note: Adding columns to list will make us available to XSS attacks. + */ + 'raw' => ['action'], + + /* + * List of columns are forbidden from being searched/sorted. + */ + 'blacklist' => ['password', 'remember_token'], + + /* + * List of columns that are only allowed fo search/sort. + * If set to *, all columns are allowed. + */ + 'whitelist' => '*', + ], + + /* + * JsonResponse header and options config. + */ + 'json' => [ + 'header' => [], + 'options' => 0, + ], + + /* + * Default condition to determine if a parameter is a callback or not. + * Callbacks needs to start by those terms, or they will be cast to string. + */ + 'callback' => ['$', '$.', 'function'], +]; diff --git a/config/filesystems.php b/config/filesystems.php new file mode 100644 index 0000000..e9d9dbd --- /dev/null +++ b/config/filesystems.php @@ -0,0 +1,76 @@ + env('FILESYSTEM_DISK', 'local'), + + /* + |-------------------------------------------------------------------------- + | Filesystem Disks + |-------------------------------------------------------------------------- + | + | Here you may configure as many filesystem "disks" as you wish, and you + | may even configure multiple disks of the same driver. Defaults have + | been set up for each driver as an example of the required values. + | + | Supported Drivers: "local", "ftp", "sftp", "s3" + | + */ + + 'disks' => [ + + 'local' => [ + 'driver' => 'local', + 'root' => storage_path('app'), + 'throw' => false, + ], + + 'public' => [ + 'driver' => 'local', + 'root' => storage_path('app/public'), + 'url' => env('APP_URL').'/storage', + 'visibility' => 'public', + 'throw' => false, + ], + + 's3' => [ + 'driver' => 's3', + 'key' => env('AWS_ACCESS_KEY_ID'), + 'secret' => env('AWS_SECRET_ACCESS_KEY'), + 'region' => env('AWS_DEFAULT_REGION'), + 'bucket' => env('AWS_BUCKET'), + 'url' => env('AWS_URL'), + 'endpoint' => env('AWS_ENDPOINT'), + 'use_path_style_endpoint' => env('AWS_USE_PATH_STYLE_ENDPOINT', false), + 'throw' => false, + ], + + ], + + /* + |-------------------------------------------------------------------------- + | Symbolic Links + |-------------------------------------------------------------------------- + | + | Here you may configure the symbolic links that will be created when the + | `storage:link` Artisan command is executed. The array keys should be + | the locations of the links and the values should be their targets. + | + */ + + 'links' => [ + public_path('storage') => storage_path('app/public'), + ], + +]; diff --git a/config/hashing.php b/config/hashing.php new file mode 100644 index 0000000..bcd3be4 --- /dev/null +++ b/config/hashing.php @@ -0,0 +1,52 @@ + 'bcrypt', + + /* + |-------------------------------------------------------------------------- + | Bcrypt Options + |-------------------------------------------------------------------------- + | + | Here you may specify the configuration options that should be used when + | passwords are hashed using the Bcrypt algorithm. This will allow you + | to control the amount of time it takes to hash the given password. + | + */ + + 'bcrypt' => [ + 'rounds' => env('BCRYPT_ROUNDS', 10), + ], + + /* + |-------------------------------------------------------------------------- + | Argon Options + |-------------------------------------------------------------------------- + | + | Here you may specify the configuration options that should be used when + | passwords are hashed using the Argon algorithm. These will allow you + | to control the amount of time it takes to hash the given password. + | + */ + + 'argon' => [ + 'memory' => 65536, + 'threads' => 1, + 'time' => 4, + ], + +]; diff --git a/config/log-reader.php b/config/log-reader.php new file mode 100644 index 0000000..b6694a6 --- /dev/null +++ b/config/log-reader.php @@ -0,0 +1,91 @@ + storage_path('logs'), + + /* + |-------------------------------------------------------------------------- + | Default log filename + |-------------------------------------------------------------------------- + | + | This is default log filename that you want read from + | automatically. In Laravel, normally this name is 'laravel.log'. + | This string is compatible with format string in sprintf() + | function in PHP, it's mean you can set '*.*' to read all log + | files + | + */ + + 'filename' => null, + + /* + |-------------------------------------------------------------------------- + | Environment's log to read + |-------------------------------------------------------------------------- + | + | This is information to limit reading logs entry on specify + | environment. Example: local, product... You can set null if want + | read from all environment + | + */ + + 'environment' => null, + + /* + |-------------------------------------------------------------------------- + | Level's log to read + |-------------------------------------------------------------------------- + | + | This array is information to limit reading logs entry from + | specify levels. Example: ['error', 'warning']. You can set null + | if want read from all levels. + | + */ + + 'level' => null, + + /* + |-------------------------------------------------------------------------- + | Default sort field + |-------------------------------------------------------------------------- + | + | This is default field to sort by when reading + | + */ + + 'order_by_field' => 'date', + + /* + |-------------------------------------------------------------------------- + | Default sort direction + |-------------------------------------------------------------------------- + | + | This is default direction to sort by when reading + | + */ + + 'order_by_direction' => 'asc', + + /* + |-------------------------------------------------------------------------- + | Default log parser + |-------------------------------------------------------------------------- + | + | This is the default class used to parse log entries. + | + | If this setting is not set, the 'Jackiedo\LogReader\LogParser' class will + | be used. + | + */ + + 'default_log_parser' => null, +]; diff --git a/config/logging.php b/config/logging.php new file mode 100644 index 0000000..5aa1dbb --- /dev/null +++ b/config/logging.php @@ -0,0 +1,122 @@ + env('LOG_CHANNEL', 'stack'), + + /* + |-------------------------------------------------------------------------- + | Deprecations Log Channel + |-------------------------------------------------------------------------- + | + | This option controls the log channel that should be used to log warnings + | regarding deprecated PHP and library features. This allows you to get + | your application ready for upcoming major versions of dependencies. + | + */ + + 'deprecations' => [ + 'channel' => env('LOG_DEPRECATIONS_CHANNEL', 'null'), + 'trace' => false, + ], + + /* + |-------------------------------------------------------------------------- + | Log Channels + |-------------------------------------------------------------------------- + | + | Here you may configure the log channels for your application. Out of + | the box, Laravel uses the Monolog PHP logging library. This gives + | you a variety of powerful log handlers / formatters to utilize. + | + | Available Drivers: "single", "daily", "slack", "syslog", + | "errorlog", "monolog", + | "custom", "stack" + | + */ + + 'channels' => [ + 'stack' => [ + 'driver' => 'stack', + 'channels' => ['single'], + 'ignore_exceptions' => false, + ], + + 'single' => [ + 'driver' => 'single', + 'path' => storage_path('logs/laravel.log'), + 'level' => env('LOG_LEVEL', 'debug'), + ], + + 'daily' => [ + 'driver' => 'daily', + 'path' => storage_path('logs/laravel.log'), + 'level' => env('LOG_LEVEL', 'debug'), + 'days' => 14, + ], + + 'slack' => [ + 'driver' => 'slack', + 'url' => env('LOG_SLACK_WEBHOOK_URL'), + 'username' => 'Laravel Log', + 'emoji' => ':boom:', + 'level' => env('LOG_LEVEL', 'critical'), + ], + + 'papertrail' => [ + 'driver' => 'monolog', + 'level' => env('LOG_LEVEL', 'debug'), + 'handler' => env('LOG_PAPERTRAIL_HANDLER', SyslogUdpHandler::class), + 'handler_with' => [ + 'host' => env('PAPERTRAIL_URL'), + 'port' => env('PAPERTRAIL_PORT'), + 'connectionString' => 'tls://'.env('PAPERTRAIL_URL').':'.env('PAPERTRAIL_PORT'), + ], + ], + + 'stderr' => [ + 'driver' => 'monolog', + 'level' => env('LOG_LEVEL', 'debug'), + 'handler' => StreamHandler::class, + 'formatter' => env('LOG_STDERR_FORMATTER'), + 'with' => [ + 'stream' => 'php://stderr', + ], + ], + + 'syslog' => [ + 'driver' => 'syslog', + 'level' => env('LOG_LEVEL', 'debug'), + ], + + 'errorlog' => [ + 'driver' => 'errorlog', + 'level' => env('LOG_LEVEL', 'debug'), + ], + + 'null' => [ + 'driver' => 'monolog', + 'handler' => NullHandler::class, + ], + + 'emergency' => [ + 'path' => storage_path('logs/laravel.log'), + ], + ], + +]; diff --git a/config/mail.php b/config/mail.php new file mode 100644 index 0000000..534395a --- /dev/null +++ b/config/mail.php @@ -0,0 +1,118 @@ + env('MAIL_MAILER', 'smtp'), + + /* + |-------------------------------------------------------------------------- + | Mailer Configurations + |-------------------------------------------------------------------------- + | + | Here you may configure all of the mailers used by your application plus + | their respective settings. Several examples have been configured for + | you and you are free to add your own as your application requires. + | + | Laravel supports a variety of mail "transport" drivers to be used while + | sending an e-mail. You will specify which one you are using for your + | mailers below. You are free to add additional mailers as required. + | + | Supported: "smtp", "sendmail", "mailgun", "ses", + | "postmark", "log", "array", "failover" + | + */ + + 'mailers' => [ + 'smtp' => [ + 'transport' => 'smtp', + 'host' => env('MAIL_HOST', 'smtp.mailgun.org'), + 'port' => env('MAIL_PORT', 587), + 'encryption' => env('MAIL_ENCRYPTION', 'tls'), + 'username' => env('MAIL_USERNAME'), + 'password' => env('MAIL_PASSWORD'), + 'timeout' => null, + 'local_domain' => env('MAIL_EHLO_DOMAIN'), + ], + + 'ses' => [ + 'transport' => 'ses', + ], + + 'mailgun' => [ + 'transport' => 'mailgun', + ], + + 'postmark' => [ + 'transport' => 'postmark', + ], + + 'sendmail' => [ + 'transport' => 'sendmail', + 'path' => env('MAIL_SENDMAIL_PATH', '/usr/sbin/sendmail -bs -i'), + ], + + 'log' => [ + 'transport' => 'log', + 'channel' => env('MAIL_LOG_CHANNEL'), + ], + + 'array' => [ + 'transport' => 'array', + ], + + 'failover' => [ + 'transport' => 'failover', + 'mailers' => [ + 'smtp', + 'log', + ], + ], + ], + + /* + |-------------------------------------------------------------------------- + | Global "From" Address + |-------------------------------------------------------------------------- + | + | You may wish for all e-mails sent by your application to be sent from + | the same address. Here, you may specify a name and address that is + | used globally for all e-mails that are sent by your application. + | + */ + + 'from' => [ + 'address' => env('MAIL_FROM_ADDRESS', 'hello@example.com'), + 'name' => env('MAIL_FROM_NAME', 'Example'), + ], + + /* + |-------------------------------------------------------------------------- + | Markdown Mail Settings + |-------------------------------------------------------------------------- + | + | If you are using Markdown based email rendering, you may configure your + | theme and component paths here, allowing you to customize the design + | of the emails. Or, you may simply stick with the Laravel defaults! + | + */ + + 'markdown' => [ + 'theme' => 'default', + + 'paths' => [ + resource_path('views/vendor/mail'), + ], + ], + +]; diff --git a/config/modules.php b/config/modules.php new file mode 100644 index 0000000..cf9661d --- /dev/null +++ b/config/modules.php @@ -0,0 +1,277 @@ + 'Modules', + + /* + |-------------------------------------------------------------------------- + | Module Stubs + |-------------------------------------------------------------------------- + | + | Default module stubs. + | + */ + + 'stubs' => [ + 'enabled' => false, + 'path' => base_path('vendor/nwidart/laravel-modules/src/Commands/stubs'), + 'files' => [ + 'routes/web' => 'Routes/web.php', + 'routes/api' => 'Routes/api.php', + 'views/index' => 'Resources/views/index.blade.php', + 'views/master' => 'Resources/views/layouts/master.blade.php', + 'scaffold/config' => 'Config/config.php', + 'composer' => 'composer.json', + 'assets/js/app' => 'Resources/assets/js/app.js', + 'assets/sass/app' => 'Resources/assets/sass/app.scss', + 'vite' => 'vite.config.js', + 'package' => 'package.json', + ], + 'replacements' => [ + 'routes/web' => ['LOWER_NAME', 'STUDLY_NAME'], + 'routes/api' => ['LOWER_NAME'], + 'vite' => ['LOWER_NAME'], + 'json' => ['LOWER_NAME', 'STUDLY_NAME', 'MODULE_NAMESPACE', 'PROVIDER_NAMESPACE'], + 'views/index' => ['LOWER_NAME'], + 'views/master' => ['LOWER_NAME', 'STUDLY_NAME'], + 'scaffold/config' => ['STUDLY_NAME'], + 'composer' => [ + 'LOWER_NAME', + 'STUDLY_NAME', + 'VENDOR', + 'AUTHOR_NAME', + 'AUTHOR_EMAIL', + 'MODULE_NAMESPACE', + 'PROVIDER_NAMESPACE', + ], + ], + 'gitkeep' => true, + ], + 'paths' => [ + /* + |-------------------------------------------------------------------------- + | Modules path + |-------------------------------------------------------------------------- + | + | This path used for save the generated module. This path also will be added + | automatically to list of scanned folders. + | + */ + + 'modules' => base_path('Modules'), + /* + |-------------------------------------------------------------------------- + | Modules assets path + |-------------------------------------------------------------------------- + | + | Here you may update the modules assets path. + | + */ + + 'assets' => public_path('modules'), + /* + |-------------------------------------------------------------------------- + | The migrations path + |-------------------------------------------------------------------------- + | + | Where you run 'module:publish-migration' command, where do you publish the + | the migration files? + | + */ + + 'migration' => base_path('database/migrations'), + /* + |-------------------------------------------------------------------------- + | Generator path + |-------------------------------------------------------------------------- + | Customise the paths where the folders will be generated. + | Set the generate key to false to not generate that folder + */ + 'generator' => [ + 'config' => ['path' => 'Config', 'generate' => true], + 'command' => ['path' => 'Console', 'generate' => true], + 'migration' => ['path' => 'Database/Migrations', 'generate' => true], + 'seeder' => ['path' => 'Database/Seeders', 'generate' => true], + 'factory' => ['path' => 'Database/factories', 'generate' => true], + 'model' => ['path' => 'Entities', 'generate' => true], + 'routes' => ['path' => 'Routes', 'generate' => true], + 'controller' => ['path' => 'Http/Controllers', 'generate' => true], + 'filter' => ['path' => 'Http/Middleware', 'generate' => true], + 'request' => ['path' => 'Http/Requests', 'generate' => true], + 'provider' => ['path' => 'Providers', 'generate' => true], + 'assets' => ['path' => 'Resources/assets', 'generate' => true], + 'lang' => ['path' => 'Resources/lang', 'generate' => true], + 'views' => ['path' => 'Resources/views', 'generate' => true], + 'test' => ['path' => 'Tests/Unit', 'generate' => true], + 'test-feature' => ['path' => 'Tests/Feature', 'generate' => true], + 'repository' => ['path' => 'Repositories', 'generate' => false], + 'event' => ['path' => 'Events', 'generate' => false], + 'listener' => ['path' => 'Listeners', 'generate' => false], + 'policies' => ['path' => 'Policies', 'generate' => false], + 'rules' => ['path' => 'Rules', 'generate' => false], + 'jobs' => ['path' => 'Jobs', 'generate' => false], + 'emails' => ['path' => 'Emails', 'generate' => false], + 'notifications' => ['path' => 'Notifications', 'generate' => false], + 'resource' => ['path' => 'Transformers', 'generate' => false], + 'component-view' => ['path' => 'Resources/views/components', 'generate' => false], + 'component-class' => ['path' => 'View/Components', 'generate' => false], + ], + ], + + /* + |-------------------------------------------------------------------------- + | Package commands + |-------------------------------------------------------------------------- + | + | Here you can define which commands will be visible and used in your + | application. If for example you don't use some of the commands provided + | you can simply comment them out. + | + */ + 'commands' => [ + Commands\CommandMakeCommand::class, + Commands\ComponentClassMakeCommand::class, + Commands\ComponentViewMakeCommand::class, + Commands\ControllerMakeCommand::class, + Commands\DisableCommand::class, + Commands\DumpCommand::class, + Commands\EnableCommand::class, + Commands\EventMakeCommand::class, + Commands\JobMakeCommand::class, + Commands\ListenerMakeCommand::class, + Commands\MailMakeCommand::class, + Commands\MiddlewareMakeCommand::class, + Commands\NotificationMakeCommand::class, + Commands\ProviderMakeCommand::class, + Commands\RouteProviderMakeCommand::class, + Commands\InstallCommand::class, + Commands\ListCommand::class, + Commands\ModuleDeleteCommand::class, + Commands\ModuleMakeCommand::class, + Commands\FactoryMakeCommand::class, + Commands\PolicyMakeCommand::class, + Commands\RequestMakeCommand::class, + Commands\RuleMakeCommand::class, + Commands\MigrateCommand::class, + Commands\MigrateFreshCommand::class, + Commands\MigrateRefreshCommand::class, + Commands\MigrateResetCommand::class, + Commands\MigrateRollbackCommand::class, + Commands\MigrateStatusCommand::class, + Commands\MigrationMakeCommand::class, + Commands\ModelMakeCommand::class, + Commands\PublishCommand::class, + Commands\PublishConfigurationCommand::class, + Commands\PublishMigrationCommand::class, + Commands\PublishTranslationCommand::class, + Commands\SeedCommand::class, + Commands\SeedMakeCommand::class, + Commands\SetupCommand::class, + Commands\UnUseCommand::class, + Commands\UpdateCommand::class, + Commands\UseCommand::class, + Commands\ResourceMakeCommand::class, + Commands\TestMakeCommand::class, + Commands\LaravelModulesV6Migrator::class, + ], + + /* + |-------------------------------------------------------------------------- + | Scan Path + |-------------------------------------------------------------------------- + | + | Here you define which folder will be scanned. By default will scan vendor + | directory. This is useful if you host the package in packagist website. + | + */ + + 'scan' => [ + 'enabled' => false, + 'paths' => [ + base_path('vendor/*/*'), + ], + ], + /* + |-------------------------------------------------------------------------- + | Composer File Template + |-------------------------------------------------------------------------- + | + | Here is the config for composer.json file, generated by this package + | + */ + + 'composer' => [ + 'vendor' => 'putrakuningan', + 'author' => [ + 'name' => 'Daeng Deni Mardaeni', + 'email' => 'ddeni05@gmail.com', + ], + 'composer-output' => false, + ], + + /* + |-------------------------------------------------------------------------- + | Caching + |-------------------------------------------------------------------------- + | + | Here is the config for setting up caching feature. + | + */ + 'cache' => [ + 'enabled' => false, + 'driver' => 'file', + 'key' => 'laravel-modules', + 'lifetime' => 60, + ], + /* + |-------------------------------------------------------------------------- + | Choose what laravel-modules will register as custom namespaces. + | Setting one to false will require you to register that part + | in your own Service Provider class. + |-------------------------------------------------------------------------- + */ + 'register' => [ + 'translations' => true, + /** + * load files on boot or register method + * + * Note: boot not compatible with asgardcms + * + * @example boot|register + */ + 'files' => 'register', + ], + + /* + |-------------------------------------------------------------------------- + | Activators + |-------------------------------------------------------------------------- + | + | You can define new types of activators here, file, database etc. The only + | required parameter is 'class'. + | The file activator will store the activation status in storage/installed_modules + */ + 'activators' => [ + 'file' => [ + 'class' => FileActivator::class, + 'statuses-file' => base_path('modules_statuses.json'), + 'cache-key' => 'activator.installed', + 'cache-lifetime' => 604800, + ], + ], + + 'activator' => 'file', +]; diff --git a/config/octane.php b/config/octane.php new file mode 100644 index 0000000..eb6fc91 --- /dev/null +++ b/config/octane.php @@ -0,0 +1,228 @@ + env('OCTANE_SERVER', 'roadrunner'), + + /* + |-------------------------------------------------------------------------- + | Force HTTPS + |-------------------------------------------------------------------------- + | + | When this configuration value is set to "true", Octane will inform the + | framework that all absolute links must be generated using the HTTPS + | protocol. Otherwise your links may be generated using plain HTTP. + | + */ + + 'https' => env('OCTANE_HTTPS', false), + + /* + |-------------------------------------------------------------------------- + | Octane Listeners + |-------------------------------------------------------------------------- + | + | All of the event listeners for Octane's events are defined below. These + | listeners are responsible for resetting your application's state for + | the next request. You may even add your own listeners to the list. + | + */ + + 'listeners' => [ + WorkerStarting::class => [ + EnsureUploadedFilesAreValid::class, + EnsureUploadedFilesCanBeMoved::class, + ], + + RequestReceived::class => [ + ...Octane::prepareApplicationForNextOperation(), + ...Octane::prepareApplicationForNextRequest(), + // + ], + + RequestHandled::class => [ + // + ], + + RequestTerminated::class => [ + // FlushUploadedFiles::class, + ], + + TaskReceived::class => [ + ...Octane::prepareApplicationForNextOperation(), + // + ], + + TaskTerminated::class => [ + // + ], + + TickReceived::class => [ + ...Octane::prepareApplicationForNextOperation(), + // + ], + + TickTerminated::class => [ + // + ], + + OperationTerminated::class => [ + FlushTemporaryContainerInstances::class, + // DisconnectFromDatabases::class, + // CollectGarbage::class, + ], + + WorkerErrorOccurred::class => [ + ReportException::class, + StopWorkerIfNecessary::class, + ], + + WorkerStopping::class => [ + // + ], + ], + + /* + |-------------------------------------------------------------------------- + | Warm / Flush Bindings + |-------------------------------------------------------------------------- + | + | The bindings listed below will either be pre-warmed when a worker boots + | or they will be flushed before every new request. Flushing a binding + | will force the container to resolve that binding again when asked. + | + */ + + 'warm' => [ + ...Octane::defaultServicesToWarm(), + ], + + 'flush' => [ + // + ], + + /* + |-------------------------------------------------------------------------- + | Octane Cache Table + |-------------------------------------------------------------------------- + | + | While using Swoole, you may leverage the Octane cache, which is powered + | by a Swoole table. You may set the maximum number of rows as well as + | the number of bytes per row using the configuration options below. + | + */ + + 'cache' => [ + 'rows' => 1000, + 'bytes' => 10000, + ], + + /* + |-------------------------------------------------------------------------- + | Octane Swoole Tables + |-------------------------------------------------------------------------- + | + | While using Swoole, you may define additional tables as required by the + | application. These tables can be used to store data that needs to be + | quickly accessed by other workers on the particular Swoole server. + | + */ + + 'tables' => [ + 'example:1000' => [ + 'name' => 'string:1000', + 'votes' => 'int', + ], + ], + + /* + |-------------------------------------------------------------------------- + | File Watching + |-------------------------------------------------------------------------- + | + | The following list of files and directories will be watched when using + | the --watch option offered by Octane. If any of the directories and + | files are changed, Octane will automatically reload your workers. + | + */ + + 'watch' => [ + 'app', + 'bootstrap', + 'config', + 'database', + 'public/**/*.php', + 'resources/**/*.php', + 'routes', + 'composer.lock', + '.env', + ], + + /* + |-------------------------------------------------------------------------- + | Garbage Collection Threshold + |-------------------------------------------------------------------------- + | + | When executing long-lived PHP scripts such as Octane, memory can build + | up before being cleared by PHP. You can force Octane to run garbage + | collection if your application consumes this amount of megabytes. + | + */ + + 'garbage' => 50, + + /* + |-------------------------------------------------------------------------- + | Maximum Execution Time + |-------------------------------------------------------------------------- + | + | The following setting configures the maximum execution time for requests + | being handled by Octane. You may set this value to 0 to indicate that + | there isn't a specific time limit on Octane request execution time. + | + */ + + 'max_execution_time' => 30, + + 'swoole' => [ + 'options' => [ + 'log_file' => storage_path('logs/swoole_http.log'), + 'package_max_length' => 10 * 1024 * 1024, + ], + ], + +]; diff --git a/config/permission.php b/config/permission.php new file mode 100644 index 0000000..5b6e184 --- /dev/null +++ b/config/permission.php @@ -0,0 +1,161 @@ + [ + + /* + * When using the "HasPermissions" trait from this package, we need to know which + * Eloquent model should be used to retrieve your permissions. Of course, it + * is often just the "Permission" model but you may use whatever you like. + * + * The model you want to use as a Permission model needs to implement the + * `Spatie\Permission\Contracts\Permission` contract. + */ + + 'permission' => Spatie\Permission\Models\Permission::class, + + /* + * When using the "HasRoles" trait from this package, we need to know which + * Eloquent model should be used to retrieve your roles. Of course, it + * is often just the "Role" model but you may use whatever you like. + * + * The model you want to use as a Role model needs to implement the + * `Spatie\Permission\Contracts\Role` contract. + */ + + 'role' => Spatie\Permission\Models\Role::class, + + ], + + 'table_names' => [ + + /* + * When using the "HasRoles" trait from this package, we need to know which + * table should be used to retrieve your roles. We have chosen a basic + * default value but you may easily change it to any table you like. + */ + + 'roles' => 'roles', + + /* + * When using the "HasPermissions" trait from this package, we need to know which + * table should be used to retrieve your permissions. We have chosen a basic + * default value but you may easily change it to any table you like. + */ + + 'permissions' => 'permissions', + + /* + * When using the "HasPermissions" trait from this package, we need to know which + * table should be used to retrieve your models permissions. We have chosen a + * basic default value but you may easily change it to any table you like. + */ + + 'model_has_permissions' => 'model_has_permissions', + + /* + * When using the "HasRoles" trait from this package, we need to know which + * table should be used to retrieve your models roles. We have chosen a + * basic default value but you may easily change it to any table you like. + */ + + 'model_has_roles' => 'model_has_roles', + + /* + * When using the "HasRoles" trait from this package, we need to know which + * table should be used to retrieve your roles permissions. We have chosen a + * basic default value but you may easily change it to any table you like. + */ + + 'role_has_permissions' => 'role_has_permissions', + ], + + 'column_names' => [ + /* + * Change this if you want to name the related pivots other than defaults + */ + 'role_pivot_key' => null, //default 'role_id', + 'permission_pivot_key' => null, //default 'permission_id', + + /* + * Change this if you want to name the related model primary key other than + * `model_id`. + * + * For example, this would be nice if your primary keys are all UUIDs. In + * that case, name this `model_uuid`. + */ + + 'model_morph_key' => 'model_id', + + /* + * Change this if you want to use the teams feature and your related model's + * foreign key is other than `team_id`. + */ + + 'team_foreign_key' => 'team_id', + ], + + /* + * When set to true, the method for checking permissions will be registered on the gate. + * Set this to false, if you want to implement custom logic for checking permissions. + */ + + 'register_permission_check_method' => true, + + /* + * When set to true the package implements teams using the 'team_foreign_key'. If you want + * the migrations to register the 'team_foreign_key', you must set this to true + * before doing the migration. If you already did the migration then you must make a new + * migration to also add 'team_foreign_key' to 'roles', 'model_has_roles', and + * 'model_has_permissions'(view the latest version of package's migration file) + */ + + 'teams' => false, + + /* + * When set to true, the required permission names are added to the exception + * message. This could be considered an information leak in some contexts, so + * the default setting is false here for optimum safety. + */ + + 'display_permission_in_exception' => false, + + /* + * When set to true, the required role names are added to the exception + * message. This could be considered an information leak in some contexts, so + * the default setting is false here for optimum safety. + */ + + 'display_role_in_exception' => false, + + /* + * By default wildcard permission lookups are disabled. + */ + + 'enable_wildcard_permission' => false, + + 'cache' => [ + + /* + * By default all permissions are cached for 24 hours to speed up performance. + * When permissions or roles are updated the cache is flushed automatically. + */ + + 'expiration_time' => \DateInterval::createFromDateString('24 hours'), + + /* + * The cache key used to store all permissions. + */ + + 'key' => 'spatie.permission.cache', + + /* + * You may optionally indicate a specific cache driver to use for permission and + * role caching using any of the `store` drivers listed in the cache.php config + * file. Using 'default' here means to use the `default` set in cache.php. + */ + + 'store' => 'default', + ], +]; diff --git a/config/queue.php b/config/queue.php new file mode 100644 index 0000000..25ea5a8 --- /dev/null +++ b/config/queue.php @@ -0,0 +1,93 @@ + env('QUEUE_CONNECTION', 'sync'), + + /* + |-------------------------------------------------------------------------- + | Queue Connections + |-------------------------------------------------------------------------- + | + | Here you may configure the connection information for each server that + | is used by your application. A default configuration has been added + | for each back-end shipped with Laravel. You are free to add more. + | + | Drivers: "sync", "database", "beanstalkd", "sqs", "redis", "null" + | + */ + + 'connections' => [ + + 'sync' => [ + 'driver' => 'sync', + ], + + 'database' => [ + 'driver' => 'database', + 'table' => 'jobs', + 'queue' => 'default', + 'retry_after' => 90, + 'after_commit' => false, + ], + + 'beanstalkd' => [ + 'driver' => 'beanstalkd', + 'host' => 'localhost', + 'queue' => 'default', + 'retry_after' => 90, + 'block_for' => 0, + 'after_commit' => false, + ], + + 'sqs' => [ + 'driver' => 'sqs', + 'key' => env('AWS_ACCESS_KEY_ID'), + 'secret' => env('AWS_SECRET_ACCESS_KEY'), + 'prefix' => env('SQS_PREFIX', 'https://sqs.us-east-1.amazonaws.com/your-account-id'), + 'queue' => env('SQS_QUEUE', 'default'), + 'suffix' => env('SQS_SUFFIX'), + 'region' => env('AWS_DEFAULT_REGION', 'us-east-1'), + 'after_commit' => false, + ], + + 'redis' => [ + 'driver' => 'redis', + 'connection' => 'default', + 'queue' => env('REDIS_QUEUE', 'default'), + 'retry_after' => 90, + 'block_for' => null, + 'after_commit' => false, + ], + + ], + + /* + |-------------------------------------------------------------------------- + | Failed Queue Jobs + |-------------------------------------------------------------------------- + | + | These options configure the behavior of failed queue job logging so you + | can control which database and table are used to store the jobs that + | have failed. You may change them to any database / table you wish. + | + */ + + 'failed' => [ + 'driver' => env('QUEUE_FAILED_DRIVER', 'database-uuids'), + 'database' => env('DB_CONNECTION', 'mysql'), + 'table' => 'failed_jobs', + ], + +]; diff --git a/config/sanctum.php b/config/sanctum.php new file mode 100644 index 0000000..529cfdc --- /dev/null +++ b/config/sanctum.php @@ -0,0 +1,67 @@ + explode(',', env('SANCTUM_STATEFUL_DOMAINS', sprintf( + '%s%s', + 'localhost,localhost:3000,127.0.0.1,127.0.0.1:8000,::1', + Sanctum::currentApplicationUrlWithPort() + ))), + + /* + |-------------------------------------------------------------------------- + | Sanctum Guards + |-------------------------------------------------------------------------- + | + | This array contains the authentication guards that will be checked when + | Sanctum is trying to authenticate a request. If none of these guards + | are able to authenticate the request, Sanctum will use the bearer + | token that's present on an incoming request for authentication. + | + */ + + 'guard' => ['web'], + + /* + |-------------------------------------------------------------------------- + | Expiration Minutes + |-------------------------------------------------------------------------- + | + | This value controls the number of minutes until an issued token will be + | considered expired. If this value is null, personal access tokens do + | not expire. This won't tweak the lifetime of first-party sessions. + | + */ + + 'expiration' => null, + + /* + |-------------------------------------------------------------------------- + | Sanctum Middleware + |-------------------------------------------------------------------------- + | + | When authenticating your first-party SPA with Sanctum you may need to + | customize some of the middleware Sanctum uses while processing the + | request. You may change the middleware listed below as required. + | + */ + + 'middleware' => [ + 'verify_csrf_token' => App\Http\Middleware\VerifyCsrfToken::class, + 'encrypt_cookies' => App\Http\Middleware\EncryptCookies::class, + ], + +]; diff --git a/config/services.php b/config/services.php new file mode 100644 index 0000000..0ace530 --- /dev/null +++ b/config/services.php @@ -0,0 +1,34 @@ + [ + 'domain' => env('MAILGUN_DOMAIN'), + 'secret' => env('MAILGUN_SECRET'), + 'endpoint' => env('MAILGUN_ENDPOINT', 'api.mailgun.net'), + 'scheme' => 'https', + ], + + 'postmark' => [ + 'token' => env('POSTMARK_TOKEN'), + ], + + 'ses' => [ + 'key' => env('AWS_ACCESS_KEY_ID'), + 'secret' => env('AWS_SECRET_ACCESS_KEY'), + 'region' => env('AWS_DEFAULT_REGION', 'us-east-1'), + ], + +]; diff --git a/config/session.php b/config/session.php new file mode 100644 index 0000000..8fed97c --- /dev/null +++ b/config/session.php @@ -0,0 +1,201 @@ + env('SESSION_DRIVER', 'file'), + + /* + |-------------------------------------------------------------------------- + | Session Lifetime + |-------------------------------------------------------------------------- + | + | Here you may specify the number of minutes that you wish the session + | to be allowed to remain idle before it expires. If you want them + | to immediately expire on the browser closing, set that option. + | + */ + + 'lifetime' => env('SESSION_LIFETIME', 120), + + 'expire_on_close' => false, + + /* + |-------------------------------------------------------------------------- + | Session Encryption + |-------------------------------------------------------------------------- + | + | This option allows you to easily specify that all of your session data + | should be encrypted before it is stored. All encryption will be run + | automatically by Laravel and you can use the Session like normal. + | + */ + + 'encrypt' => false, + + /* + |-------------------------------------------------------------------------- + | Session File Location + |-------------------------------------------------------------------------- + | + | When using the native session driver, we need a location where session + | files may be stored. A default has been set for you but a different + | location may be specified. This is only needed for file sessions. + | + */ + + 'files' => storage_path('framework/sessions'), + + /* + |-------------------------------------------------------------------------- + | Session Database Connection + |-------------------------------------------------------------------------- + | + | When using the "database" or "redis" session drivers, you may specify a + | connection that should be used to manage these sessions. This should + | correspond to a connection in your database configuration options. + | + */ + + 'connection' => env('SESSION_CONNECTION'), + + /* + |-------------------------------------------------------------------------- + | Session Database Table + |-------------------------------------------------------------------------- + | + | When using the "database" session driver, you may specify the table we + | should use to manage the sessions. Of course, a sensible default is + | provided for you; however, you are free to change this as needed. + | + */ + + 'table' => 'sessions', + + /* + |-------------------------------------------------------------------------- + | Session Cache Store + |-------------------------------------------------------------------------- + | + | While using one of the framework's cache driven session backends you may + | list a cache store that should be used for these sessions. This value + | must match with one of the application's configured cache "stores". + | + | Affects: "apc", "dynamodb", "memcached", "redis" + | + */ + + 'store' => env('SESSION_STORE'), + + /* + |-------------------------------------------------------------------------- + | Session Sweeping Lottery + |-------------------------------------------------------------------------- + | + | Some session drivers must manually sweep their storage location to get + | rid of old sessions from storage. Here are the chances that it will + | happen on a given request. By default, the odds are 2 out of 100. + | + */ + + 'lottery' => [2, 100], + + /* + |-------------------------------------------------------------------------- + | Session Cookie Name + |-------------------------------------------------------------------------- + | + | Here you may change the name of the cookie used to identify a session + | instance by ID. The name specified here will get used every time a + | new session cookie is created by the framework for every driver. + | + */ + + 'cookie' => env( + 'SESSION_COOKIE', + Str::slug(env('APP_NAME', 'laravel'), '_').'_session' + ), + + /* + |-------------------------------------------------------------------------- + | Session Cookie Path + |-------------------------------------------------------------------------- + | + | The session cookie path determines the path for which the cookie will + | be regarded as available. Typically, this will be the root path of + | your application but you are free to change this when necessary. + | + */ + + 'path' => '/', + + /* + |-------------------------------------------------------------------------- + | Session Cookie Domain + |-------------------------------------------------------------------------- + | + | Here you may change the domain of the cookie used to identify a session + | in your application. This will determine which domains the cookie is + | available to in your application. A sensible default has been set. + | + */ + + 'domain' => env('SESSION_DOMAIN'), + + /* + |-------------------------------------------------------------------------- + | HTTPS Only Cookies + |-------------------------------------------------------------------------- + | + | By setting this option to true, session cookies will only be sent back + | to the server if the browser has a HTTPS connection. This will keep + | the cookie from being sent to you when it can't be done securely. + | + */ + + 'secure' => env('SESSION_SECURE_COOKIE'), + + /* + |-------------------------------------------------------------------------- + | HTTP Access Only + |-------------------------------------------------------------------------- + | + | Setting this value to true will prevent JavaScript from accessing the + | value of the cookie and the cookie will only be accessible through + | the HTTP protocol. You are free to modify this option if needed. + | + */ + + 'http_only' => true, + + /* + |-------------------------------------------------------------------------- + | Same-Site Cookies + |-------------------------------------------------------------------------- + | + | This option determines how your cookies behave when cross-site requests + | take place, and can be used to mitigate CSRF attacks. By default, we + | will set this value to "lax" since this is a secure default value. + | + | Supported: "lax", "strict", "none", null + | + */ + + 'same_site' => 'lax', + +]; diff --git a/config/settings.php b/config/settings.php new file mode 100644 index 0000000..b8e089e --- /dev/null +++ b/config/settings.php @@ -0,0 +1,310 @@ + [ + 'default' => BootstrapDefault::class, + 'auth' => BootstrapAuth::class, + 'system' => BootstrapSystem::class, + ], + + 'KT_THEME' => 'metronic', + + # Theme layout templates directory + + 'KT_THEME_LAYOUT_DIR' => 'layout', + + + # Theme Mode + # Value: light | dark | system + + 'KT_THEME_MODE_DEFAULT' => 'light', + 'KT_THEME_MODE_SWITCH_ENABLED' => true, + + + # Theme Direction + # Value: ltr | rtl + + 'KT_THEME_DIRECTION' => 'ltr', + + + # Keenicons + # Value: duotone | outline | bold + + 'KT_THEME_ICONS' => 'duotone', + + + # Theme Assets + + 'KT_THEME_ASSETS' => [ + 'favicon' => 'assets/media/logos/favicon.ico', + 'fonts' => [ + 'https://fonts.googleapis.com/css?family=Inter:300,400,500,600,700', + ], + 'global' => [ + 'css' => [ + 'assets/plugins/global/plugins.bundle.css', + 'assets/css/style.bundle.css', + ], + 'js' => [ + 'assets/plugins/global/plugins.bundle.js', + 'assets/js/scripts.bundle.js', + 'assets/js/widgets.bundle.js', + ], + ], + ], + + + # Theme Vendors + + 'KT_THEME_VENDORS' => [ + 'datatables' => [ + 'css' => [ + 'assets/plugins/custom/datatables/datatables.bundle.css', + ], + 'js' => [ + 'assets/plugins/custom/datatables/datatables.bundle.js', + ], + ], + 'formrepeater' => [ + 'js' => [ + 'assets/plugins/custom/formrepeater/formrepeater.bundle.js', + ], + ], + 'fullcalendar' => [ + 'css' => [ + 'assets/plugins/custom/fullcalendar/fullcalendar.bundle.css', + ], + 'js' => [ + 'assets/plugins/custom/fullcalendar/fullcalendar.bundle.js', + ], + ], + 'flotcharts' => [ + 'js' => [ + 'assets/plugins/custom/flotcharts/flotcharts.bundle.js', + ], + ], + 'google-jsapi' => [ + 'js' => [ + '//www.google.com/jsapi', + ], + ], + 'tinymce' => [ + 'js' => [ + 'assets/plugins/custom/tinymce/tinymce.bundle.js', + ], + ], + 'ckeditor-classic' => [ + 'js' => [ + 'assets/plugins/custom/ckeditor/ckeditor-classic.bundle.js', + ], + ], + 'ckeditor-inline' => [ + 'js' => [ + 'assets/plugins/custom/ckeditor/ckeditor-inline.bundle.js', + ], + ], + 'ckeditor-balloon' => [ + 'js' => [ + 'assets/plugins/custom/ckeditor/ckeditor-balloon.bundle.js', + ], + ], + 'ckeditor-balloon-block' => [ + 'js' => [ + 'assets/plugins/custom/ckeditor/ckeditor-balloon-block.bundle.js', + ], + ], + 'ckeditor-document' => [ + 'js' => [ + 'assets/plugins/custom/ckeditor/ckeditor-document.bundle.js', + ], + ], + 'draggable' => [ + 'js' => [ + 'assets/plugins/custom/draggable/draggable.bundle.js', + ], + ], + 'fslightbox' => [ + 'js' => [ + 'assets/plugins/custom/fslightbox/fslightbox.bundle.js', + ], + ], + 'jkanban' => [ + 'css' => [ + 'assets/plugins/custom/jkanban/jkanban.bundle.css', + ], + 'js' => [ + 'assets/plugins/custom/jkanban/jkanban.bundle.js', + ], + ], + 'typedjs' => [ + 'js' => [ + 'assets/plugins/custom/typedjs/typedjs.bundle.js', + ], + ], + 'cookiealert' => [ + 'css' => [ + 'assets/plugins/custom/cookiealert/cookiealert.bundle.css', + ], + 'js' => [ + 'assets/plugins/custom/cookiealert/cookiealert.bundle.js', + ], + ], + 'cropper' => [ + 'css' => [ + 'assets/plugins/custom/cropper/cropper.bundle.css', + ], + 'js' => [ + 'assets/plugins/custom/cropper/cropper.bundle.js', + ], + ], + 'vis-timeline' => [ + 'css' => [ + 'assets/plugins/custom/vis-timeline/vis-timeline.bundle.css', + ], + 'js' => [ + 'assets/plugins/custom/vis-timeline/vis-timeline.bundle.js', + ], + ], + 'jstree' => [ + 'css' => [ + 'assets/plugins/custom/jstree/jstree.bundle.css', + ], + 'js' => [ + 'assets/plugins/custom/jstree/jstree.bundle.js', + ], + ], + 'prismjs' => [ + 'css' => [ + 'assets/plugins/custom/prismjs/prismjs.bundle.css', + ], + 'js' => [ + 'assets/plugins/custom/prismjs/prismjs.bundle.js', + ], + ], + 'leaflet' => [ + 'css' => [ + 'assets/plugins/custom/leaflet/leaflet.bundle.css', + ], + 'js' => [ + 'assets/plugins/custom/leaflet/leaflet.bundle.js', + ], + ], + 'amcharts' => [ + 'js' => [ + 'https://cdn.amcharts.com/lib/5/index.js', + 'https://cdn.amcharts.com/lib/5/xy.js', + 'https://cdn.amcharts.com/lib/5/percent.js', + 'https://cdn.amcharts.com/lib/5/radar.js', + 'https://cdn.amcharts.com/lib/5/themes/Animated.js', + ], + ], + 'amcharts-maps' => [ + 'js' => [ + 'https://cdn.amcharts.com/lib/5/index.js', + 'https://cdn.amcharts.com/lib/5/map.js', + 'https://cdn.amcharts.com/lib/5/geodata/worldLow.js', + 'https://cdn.amcharts.com/lib/5/geodata/continentsLow.js', + 'https://cdn.amcharts.com/lib/5/geodata/usaLow.js', + 'https://cdn.amcharts.com/lib/5/geodata/worldTimeZonesLow.js', + 'https://cdn.amcharts.com/lib/5/geodata/worldTimeZoneAreasLow.js', + 'https://cdn.amcharts.com/lib/5/themes/Animated.js', + ], + ], + 'amcharts-stock' => [ + 'js' => [ + 'https://cdn.amcharts.com/lib/5/index.js', + 'https://cdn.amcharts.com/lib/5/xy.js', + 'https://cdn.amcharts.com/lib/5/themes/Animated.js', + ], + ], + 'bootstrap-select' => [ + 'css' => [ + 'assets/plugins/custom/bootstrap-select/bootstrap-select.bundle.css', + ], + 'js' => [ + 'assets/plugins/custom/bootstrap-select/bootstrap-select.bundle.js', + ], + ], + 'chained-select' => [ + 'js' => [ + 'assets/plugins/custom/jquery-chained/jquery.chained.js', + 'assets/plugins/custom/jquery-chained/jquery.chained.remote.js', + ], + ], + ], + /* + |-------------------------------------------------------------------------- + | Default Settings Store + |-------------------------------------------------------------------------- + | + | This option controls the default settings store that gets used while + | using this settings library. + | + | Supported: "json", "database" + | + */ + 'store' => 'database', + + /* + |-------------------------------------------------------------------------- + | JSON Store + |-------------------------------------------------------------------------- + | + | If the store is set to "json", settings are stored in the defined + | file path in JSON format. Use full path to file. + | + */ + 'path' => storage_path() . '/settings.json', + + /* + |-------------------------------------------------------------------------- + | Database Store + |-------------------------------------------------------------------------- + | + | The settings are stored in the defined file path in JSON format. + | Use full path to JSON file. + | + */ + // If set to null, the default connection will be used. + 'connection' => null, + // Name of the table used. + 'table' => 'settings', + // If you want to use custom column names in database store you could + // set them in this configuration + 'keyColumn' => 'key', + 'valueColumn' => 'value', + + /* + |-------------------------------------------------------------------------- + | Cache settings + |-------------------------------------------------------------------------- + | + | If you want all setting calls to go through Laravel's cache system. + | + */ + 'enableCache' => false, + // Whether to reset the cache when changing a setting. + 'forgetCacheByWrite' => true, + // TTL in seconds. + 'cacheTtl' => 15, + + /* + |-------------------------------------------------------------------------- + | Default Settings + |-------------------------------------------------------------------------- + | + | Define all default settings that will be used before any settings are set, + | this avoids all settings being set to false to begin with and avoids + | hardcoding the same defaults in all 'Settings::get()' calls + | + */ + 'defaults' => [ + 'foo' => 'bar', + ] + + ]; diff --git a/config/view.php b/config/view.php new file mode 100644 index 0000000..22b8a18 --- /dev/null +++ b/config/view.php @@ -0,0 +1,36 @@ + [ + resource_path('views'), + ], + + /* + |-------------------------------------------------------------------------- + | Compiled View Path + |-------------------------------------------------------------------------- + | + | This option determines where all the compiled Blade templates will be + | stored for your application. Typically, this is within the storage + | directory. However, as usual, you are free to change this value. + | + */ + + 'compiled' => env( + 'VIEW_COMPILED_PATH', + realpath(storage_path('framework/views')) + ), + +]; diff --git a/database/.gitignore b/database/.gitignore new file mode 100644 index 0000000..9b19b93 --- /dev/null +++ b/database/.gitignore @@ -0,0 +1 @@ +*.sqlite* diff --git a/database/migrations/2023_05_25_032718_create_settings_table.php b/database/migrations/2023_05_25_032718_create_settings_table.php new file mode 100644 index 0000000..8e913e8 --- /dev/null +++ b/database/migrations/2023_05_25_032718_create_settings_table.php @@ -0,0 +1,47 @@ +=')) { + $this->tablename = Config::get('settings.table'); + $this->keyColumn = Config::get('settings.keyColumn'); + $this->valueColumn = Config::get('settings.valueColumn'); + } else { + $this->tablename = Config::get('anlutro/l4-settings::table'); + $this->keyColumn = Config::get('anlutro/l4-settings::keyColumn'); + $this->valueColumn = Config::get('anlutro/l4-settings::valueColumn'); + } + } + + /** + * Run the migrations. + * + * @return void + */ + public function up() + { + Schema::create($this->tablename, function(Blueprint $table) + { + $table->increments('id'); + $table->string($this->keyColumn)->index(); + $table->text($this->valueColumn); + }); + } + + /** + * Reverse the migrations. + * + * @return void + */ + public function down() + { + Schema::drop($this->tablename); + } +} diff --git a/database/seeders/DatabaseSeeder.php b/database/seeders/DatabaseSeeder.php new file mode 100644 index 0000000..dbd9203 --- /dev/null +++ b/database/seeders/DatabaseSeeder.php @@ -0,0 +1,20 @@ + 'These credentials do not match our records.', + 'password' => 'The provided password is incorrect.', + 'throttle' => 'Too many login attempts. Please try again in :seconds seconds.', + +]; diff --git a/lang/en/pagination.php b/lang/en/pagination.php new file mode 100644 index 0000000..d481411 --- /dev/null +++ b/lang/en/pagination.php @@ -0,0 +1,19 @@ + '« Previous', + 'next' => 'Next »', + +]; diff --git a/lang/en/passwords.php b/lang/en/passwords.php new file mode 100644 index 0000000..2345a56 --- /dev/null +++ b/lang/en/passwords.php @@ -0,0 +1,22 @@ + 'Your password has been reset!', + 'sent' => 'We have emailed your password reset link!', + 'throttled' => 'Please wait before retrying.', + 'token' => 'This password reset token is invalid.', + 'user' => "We can't find a user with that email address.", + +]; diff --git a/lang/en/validation.php b/lang/en/validation.php new file mode 100644 index 0000000..5ea01fa --- /dev/null +++ b/lang/en/validation.php @@ -0,0 +1,174 @@ + 'The :attribute must be accepted.', + 'accepted_if' => 'The :attribute must be accepted when :other is :value.', + 'active_url' => 'The :attribute is not a valid URL.', + 'after' => 'The :attribute must be a date after :date.', + 'after_or_equal' => 'The :attribute must be a date after or equal to :date.', + 'alpha' => 'The :attribute must only contain letters.', + 'alpha_dash' => 'The :attribute must only contain letters, numbers, dashes and underscores.', + 'alpha_num' => 'The :attribute must only contain letters and numbers.', + 'array' => 'The :attribute must be an array.', + 'before' => 'The :attribute must be a date before :date.', + 'before_or_equal' => 'The :attribute must be a date before or equal to :date.', + 'between' => [ + 'array' => 'The :attribute must have between :min and :max items.', + 'file' => 'The :attribute must be between :min and :max kilobytes.', + 'numeric' => 'The :attribute must be between :min and :max.', + 'string' => 'The :attribute must be between :min and :max characters.', + ], + 'boolean' => 'The :attribute field must be true or false.', + 'confirmed' => 'The :attribute confirmation does not match.', + 'current_password' => 'The password is incorrect.', + 'date' => 'The :attribute is not a valid date.', + 'date_equals' => 'The :attribute must be a date equal to :date.', + 'date_format' => 'The :attribute does not match the format :format.', + 'declined' => 'The :attribute must be declined.', + 'declined_if' => 'The :attribute must be declined when :other is :value.', + 'different' => 'The :attribute and :other must be different.', + 'digits' => 'The :attribute must be :digits digits.', + 'digits_between' => 'The :attribute must be between :min and :max digits.', + 'dimensions' => 'The :attribute has invalid image dimensions.', + 'distinct' => 'The :attribute field has a duplicate value.', + 'doesnt_end_with' => 'The :attribute may not end with one of the following: :values.', + 'doesnt_start_with' => 'The :attribute may not start with one of the following: :values.', + 'email' => 'The :attribute must be a valid email address.', + 'ends_with' => 'The :attribute must end with one of the following: :values.', + 'enum' => 'The selected :attribute is invalid.', + 'exists' => 'The selected :attribute is invalid.', + 'file' => 'The :attribute must be a file.', + 'filled' => 'The :attribute field must have a value.', + 'gt' => [ + 'array' => 'The :attribute must have more than :value items.', + 'file' => 'The :attribute must be greater than :value kilobytes.', + 'numeric' => 'The :attribute must be greater than :value.', + 'string' => 'The :attribute must be greater than :value characters.', + ], + 'gte' => [ + 'array' => 'The :attribute must have :value items or more.', + 'file' => 'The :attribute must be greater than or equal to :value kilobytes.', + 'numeric' => 'The :attribute must be greater than or equal to :value.', + 'string' => 'The :attribute must be greater than or equal to :value characters.', + ], + 'image' => 'The :attribute must be an image.', + 'in' => 'The selected :attribute is invalid.', + 'in_array' => 'The :attribute field does not exist in :other.', + 'integer' => 'The :attribute must be an integer.', + 'ip' => 'The :attribute must be a valid IP address.', + 'ipv4' => 'The :attribute must be a valid IPv4 address.', + 'ipv6' => 'The :attribute must be a valid IPv6 address.', + 'json' => 'The :attribute must be a valid JSON string.', + 'lt' => [ + 'array' => 'The :attribute must have less than :value items.', + 'file' => 'The :attribute must be less than :value kilobytes.', + 'numeric' => 'The :attribute must be less than :value.', + 'string' => 'The :attribute must be less than :value characters.', + ], + 'lte' => [ + 'array' => 'The :attribute must not have more than :value items.', + 'file' => 'The :attribute must be less than or equal to :value kilobytes.', + 'numeric' => 'The :attribute must be less than or equal to :value.', + 'string' => 'The :attribute must be less than or equal to :value characters.', + ], + 'mac_address' => 'The :attribute must be a valid MAC address.', + 'max' => [ + 'array' => 'The :attribute must not have more than :max items.', + 'file' => 'The :attribute must not be greater than :max kilobytes.', + 'numeric' => 'The :attribute must not be greater than :max.', + 'string' => 'The :attribute must not be greater than :max characters.', + ], + 'max_digits' => 'The :attribute must not have more than :max digits.', + 'mimes' => 'The :attribute must be a file of type: :values.', + 'mimetypes' => 'The :attribute must be a file of type: :values.', + 'min' => [ + 'array' => 'The :attribute must have at least :min items.', + 'file' => 'The :attribute must be at least :min kilobytes.', + 'numeric' => 'The :attribute must be at least :min.', + 'string' => 'The :attribute must be at least :min characters.', + ], + 'min_digits' => 'The :attribute must have at least :min digits.', + 'multiple_of' => 'The :attribute must be a multiple of :value.', + 'not_in' => 'The selected :attribute is invalid.', + 'not_regex' => 'The :attribute format is invalid.', + 'numeric' => 'The :attribute must be a number.', + 'password' => [ + 'letters' => 'The :attribute must contain at least one letter.', + 'mixed' => 'The :attribute must contain at least one uppercase and one lowercase letter.', + 'numbers' => 'The :attribute must contain at least one number.', + 'symbols' => 'The :attribute must contain at least one symbol.', + 'uncompromised' => 'The given :attribute has appeared in a data leak. Please choose a different :attribute.', + ], + 'present' => 'The :attribute field must be present.', + 'prohibited' => 'The :attribute field is prohibited.', + 'prohibited_if' => 'The :attribute field is prohibited when :other is :value.', + 'prohibited_unless' => 'The :attribute field is prohibited unless :other is in :values.', + 'prohibits' => 'The :attribute field prohibits :other from being present.', + 'regex' => 'The :attribute format is invalid.', + 'required' => 'The :attribute field is required.', + 'required_array_keys' => 'The :attribute field must contain entries for: :values.', + 'required_if' => 'The :attribute field is required when :other is :value.', + 'required_if_accepted' => 'The :attribute field is required when :other is accepted.', + 'required_unless' => 'The :attribute field is required unless :other is in :values.', + 'required_with' => 'The :attribute field is required when :values is present.', + 'required_with_all' => 'The :attribute field is required when :values are present.', + 'required_without' => 'The :attribute field is required when :values is not present.', + 'required_without_all' => 'The :attribute field is required when none of :values are present.', + 'same' => 'The :attribute and :other must match.', + 'size' => [ + 'array' => 'The :attribute must contain :size items.', + 'file' => 'The :attribute must be :size kilobytes.', + 'numeric' => 'The :attribute must be :size.', + 'string' => 'The :attribute must be :size characters.', + ], + 'starts_with' => 'The :attribute must start with one of the following: :values.', + 'string' => 'The :attribute must be a string.', + 'timezone' => 'The :attribute must be a valid timezone.', + 'unique' => 'The :attribute has already been taken.', + 'uploaded' => 'The :attribute failed to upload.', + 'url' => 'The :attribute must be a valid URL.', + 'uuid' => 'The :attribute must be a valid UUID.', + + /* + |-------------------------------------------------------------------------- + | Custom Validation Language Lines + |-------------------------------------------------------------------------- + | + | Here you may specify custom validation messages for attributes using the + | convention "attribute.rule" to name the lines. This makes it quick to + | specify a specific custom language line for a given attribute rule. + | + */ + + 'custom' => [ + 'attribute-name' => [ + 'rule-name' => 'custom-message', + ], + ], + + /* + |-------------------------------------------------------------------------- + | Custom Validation Attributes + |-------------------------------------------------------------------------- + | + | The following language lines are used to swap our attribute placeholder + | with something more reader friendly such as "E-Mail Address" instead + | of "email". This simply helps us make our message more expressive. + | + */ + + 'attributes' => [], + +]; diff --git a/modules_statuses.json b/modules_statuses.json new file mode 100644 index 0000000..9583653 --- /dev/null +++ b/modules_statuses.json @@ -0,0 +1,6 @@ +{ + "Usermanager": true, + "Master": true, + "Logs": true + +} diff --git a/package-lock.json b/package-lock.json new file mode 100644 index 0000000..94531f8 --- /dev/null +++ b/package-lock.json @@ -0,0 +1,18257 @@ +{ + "name": "core", + "lockfileVersion": 3, + "requires": true, + "packages": { + "": { + "dependencies": { + "@ckeditor/ckeditor5-alignment": "^35.2.1", + "@ckeditor/ckeditor5-build-balloon": "^35.2.1", + "@ckeditor/ckeditor5-build-balloon-block": "^35.2.1", + "@ckeditor/ckeditor5-build-classic": "^35.2.1", + "@ckeditor/ckeditor5-build-decoupled-document": "^35.2.1", + "@ckeditor/ckeditor5-build-inline": "^35.2.1", + "@eonasdan/tempus-dominus": "^6.2.10", + "@fortawesome/fontawesome-free": "^6.1.1", + "@popperjs/core": "2.11.6", + "@shopify/draggable": "^1.0.0-beta.12", + "@yaireo/tagify": "^4.9.2", + "acorn": "^8.0.4", + "apexcharts": "^3.36.3", + "autosize": "^5.0.1", + "axios": "^0.21.1", + "bootstrap": "5.3.0-alpha1", + "bootstrap-cookie-alert": "^1.2.1", + "bootstrap-daterangepicker": "^3.1.0", + "bootstrap-icons": "^1.5.0", + "bootstrap-maxlength": "^1.10.1", + "bootstrap-multiselectsplitter": "^1.0.4", + "chalk": "^4.1.0", + "chart.js": "^3.6.0", + "clipboard": "^2.0.8", + "countup.js": "^2.0.7", + "cropperjs": "^1.5.12", + "datatables.net": "^1.12.1", + "datatables.net-bs5": "^1.12.1", + "datatables.net-buttons": "^2.2.3", + "datatables.net-buttons-bs5": "^2.2.3", + "datatables.net-colreorder": "^1.5.6", + "datatables.net-colreorder-bs5": "^1.5.6", + "datatables.net-datetime": "^1.1.2", + "datatables.net-fixedcolumns": "^4.1.0", + "datatables.net-fixedcolumns-bs5": "^4.1.0", + "datatables.net-fixedheader": "^3.2.3", + "datatables.net-fixedheader-bs5": "^3.2.3", + "datatables.net-plugins": "^1.11.5", + "datatables.net-responsive": "^2.3.0", + "datatables.net-responsive-bs5": "^2.3.0", + "datatables.net-rowgroup": "^1.2.0", + "datatables.net-rowgroup-bs5": "^1.2.0", + "datatables.net-rowreorder": "^1.2.8", + "datatables.net-rowreorder-bs5": "^1.2.8", + "datatables.net-scroller": "^2.0.6", + "datatables.net-scroller-bs5": "^2.0.6", + "datatables.net-select": "^1.4.0", + "datatables.net-select-bs5": "^1.4.0", + "dropzone": "^5.9.2", + "es6-promise": "^4.2.8", + "es6-promise-polyfill": "^1.2.0", + "es6-shim": "^0.35.5", + "esri-leaflet": "^3.0.2", + "esri-leaflet-geocoder": "^3.0.0", + "flatpickr": "^4.6.9", + "flot": "^4.2.2", + "fslightbox": "^3.3.0-2", + "fullcalendar": "^5.8.0", + "handlebars": "^4.7.7", + "inputmask": "^5.0.6", + "jkanban": "^1.3.1", + "jquery": "3.6.0", + "jquery-chained": "^2.0.0-beta.2", + "jquery.repeater": "^1.2.1", + "jstree": "^3.3.11", + "jszip": "^3.6.0", + "leaflet": "^1.7.1", + "line-awesome": "^1.3.0", + "lozad": "^1.16.0", + "moment": "^2.29.1", + "nouislider": "^15.2.0", + "npm": "^7.19.1", + "pdfmake": "^0.2.0", + "prism-themes": "^1.7.0", + "prismjs": "^1.24.1", + "quill": "^1.3.7", + "select2": "^4.1.0-rc.0", + "smooth-scroll": "^16.1.3", + "sweetalert2": "11.4.8", + "tiny-slider": "^2.9.3", + "tinymce": "^5.8.2", + "toastr": "^2.1.4", + "typed.js": "2.0.12", + "vis-timeline": "^7.4.9", + "wnumb": "^1.2.0" + }, + "devDependencies": { + "alpinejs": "^3.7.1", + "autoprefixer": "^10.4.2", + "axios": "^1.1.3", + "del": "^6.0.0", + "laravel-mix": "^6.0.39", + "laravel-mix-purgecss": "^6.0.0", + "lodash": "^4.17.19", + "postcss": "^8.4.5", + "postcss-import": "^14.0.2", + "replace-in-file-webpack-plugin": "^1.0.6", + "resolve-url-loader": "^4.0.0", + "rtlcss": "^3.5.0", + "sass": "1.55.0", + "sass-loader": "13.2.0", + "webpack-rtl-plugin": "^2.0.0" + } + }, + "node_modules/@ampproject/remapping": { + "version": "2.2.1", + "resolved": "https://registry.npmjs.org/@ampproject/remapping/-/remapping-2.2.1.tgz", + "integrity": "sha512-lFMjJTrFL3j7L9yBxwYfCq2k6qqwHyzuUl/XBnif78PWTJYyL/dfowQHWE3sp6U6ZzqWiiIZnpTMO96zhkjwtg==", + "dev": true, + "dependencies": { + "@jridgewell/gen-mapping": "^0.3.0", + "@jridgewell/trace-mapping": "^0.3.9" + }, + "engines": { + "node": ">=6.0.0" + } + }, + "node_modules/@babel/code-frame": { + "version": "7.21.4", + "resolved": "https://registry.npmjs.org/@babel/code-frame/-/code-frame-7.21.4.tgz", + "integrity": "sha512-LYvhNKfwWSPpocw8GI7gpK2nq3HSDuEPC/uSYaALSJu9xjsalaaYFOq0Pwt5KmVqwEbZlDu81aLXwBOmD/Fv9g==", + "dependencies": { + "@babel/highlight": "^7.18.6" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/compat-data": { + "version": "7.21.4", + "resolved": "https://registry.npmjs.org/@babel/compat-data/-/compat-data-7.21.4.tgz", + "integrity": "sha512-/DYyDpeCfaVinT40FPGdkkb+lYSKvsVuMjDAG7jPOWWiM1ibOaB9CXJAlc4d1QpP/U2q2P9jbrSlClKSErd55g==", + "dev": true, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/core": { + "version": "7.21.4", + "resolved": "https://registry.npmjs.org/@babel/core/-/core-7.21.4.tgz", + "integrity": "sha512-qt/YV149Jman/6AfmlxJ04LMIu8bMoyl3RB91yTFrxQmgbrSvQMy7cI8Q62FHx1t8wJ8B5fu0UDoLwHAhUo1QA==", + "dev": true, + "dependencies": { + "@ampproject/remapping": "^2.2.0", + "@babel/code-frame": "^7.21.4", + "@babel/generator": "^7.21.4", + "@babel/helper-compilation-targets": "^7.21.4", + "@babel/helper-module-transforms": "^7.21.2", + "@babel/helpers": "^7.21.0", + "@babel/parser": "^7.21.4", + "@babel/template": "^7.20.7", + "@babel/traverse": "^7.21.4", + "@babel/types": "^7.21.4", + "convert-source-map": "^1.7.0", + "debug": "^4.1.0", + "gensync": "^1.0.0-beta.2", + "json5": "^2.2.2", + "semver": "^6.3.0" + }, + "engines": { + "node": ">=6.9.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/babel" + } + }, + "node_modules/@babel/core/node_modules/semver": { + "version": "6.3.0", + "resolved": "https://registry.npmjs.org/semver/-/semver-6.3.0.tgz", + "integrity": "sha512-b39TBaTSfV6yBrapU89p5fKekE2m/NwnDocOVruQFS1/veMgdzuPcnOM34M6CwxW8jH/lxEa5rBoDeUwu5HHTw==", + "dev": true, + "bin": { + "semver": "bin/semver.js" + } + }, + "node_modules/@babel/generator": { + "version": "7.21.4", + "resolved": "https://registry.npmjs.org/@babel/generator/-/generator-7.21.4.tgz", + "integrity": "sha512-NieM3pVIYW2SwGzKoqfPrQsf4xGs9M9AIG3ThppsSRmO+m7eQhmI6amajKMUeIO37wFfsvnvcxQFx6x6iqxDnA==", + "dev": true, + "dependencies": { + "@babel/types": "^7.21.4", + "@jridgewell/gen-mapping": "^0.3.2", + "@jridgewell/trace-mapping": "^0.3.17", + "jsesc": "^2.5.1" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/helper-annotate-as-pure": { + "version": "7.18.6", + "resolved": "https://registry.npmjs.org/@babel/helper-annotate-as-pure/-/helper-annotate-as-pure-7.18.6.tgz", + "integrity": "sha512-duORpUiYrEpzKIop6iNbjnwKLAKnJ47csTyRACyEmWj0QdUrm5aqNJGHSSEQSUAvNW0ojX0dOmK9dZduvkfeXA==", + "dev": true, + "dependencies": { + "@babel/types": "^7.18.6" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/helper-builder-binary-assignment-operator-visitor": { + "version": "7.18.9", + "resolved": "https://registry.npmjs.org/@babel/helper-builder-binary-assignment-operator-visitor/-/helper-builder-binary-assignment-operator-visitor-7.18.9.tgz", + "integrity": "sha512-yFQ0YCHoIqarl8BCRwBL8ulYUaZpz3bNsA7oFepAzee+8/+ImtADXNOmO5vJvsPff3qi+hvpkY/NYBTrBQgdNw==", + "dev": true, + "dependencies": { + "@babel/helper-explode-assignable-expression": "^7.18.6", + "@babel/types": "^7.18.9" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/helper-compilation-targets": { + "version": "7.21.4", + "resolved": "https://registry.npmjs.org/@babel/helper-compilation-targets/-/helper-compilation-targets-7.21.4.tgz", + "integrity": "sha512-Fa0tTuOXZ1iL8IeDFUWCzjZcn+sJGd9RZdH9esYVjEejGmzf+FFYQpMi/kZUk2kPy/q1H3/GPw7np8qar/stfg==", + "dev": true, + "dependencies": { + "@babel/compat-data": "^7.21.4", + "@babel/helper-validator-option": "^7.21.0", + "browserslist": "^4.21.3", + "lru-cache": "^5.1.1", + "semver": "^6.3.0" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0" + } + }, + "node_modules/@babel/helper-compilation-targets/node_modules/semver": { + "version": "6.3.0", + "resolved": "https://registry.npmjs.org/semver/-/semver-6.3.0.tgz", + "integrity": "sha512-b39TBaTSfV6yBrapU89p5fKekE2m/NwnDocOVruQFS1/veMgdzuPcnOM34M6CwxW8jH/lxEa5rBoDeUwu5HHTw==", + "dev": true, + "bin": { + "semver": "bin/semver.js" + } + }, + "node_modules/@babel/helper-create-class-features-plugin": { + "version": "7.21.4", + "resolved": "https://registry.npmjs.org/@babel/helper-create-class-features-plugin/-/helper-create-class-features-plugin-7.21.4.tgz", + "integrity": "sha512-46QrX2CQlaFRF4TkwfTt6nJD7IHq8539cCL7SDpqWSDeJKY1xylKKY5F/33mJhLZ3mFvKv2gGrVS6NkyF6qs+Q==", + "dev": true, + "dependencies": { + "@babel/helper-annotate-as-pure": "^7.18.6", + "@babel/helper-environment-visitor": "^7.18.9", + "@babel/helper-function-name": "^7.21.0", + "@babel/helper-member-expression-to-functions": "^7.21.0", + "@babel/helper-optimise-call-expression": "^7.18.6", + "@babel/helper-replace-supers": "^7.20.7", + "@babel/helper-skip-transparent-expression-wrappers": "^7.20.0", + "@babel/helper-split-export-declaration": "^7.18.6" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0" + } + }, + "node_modules/@babel/helper-create-regexp-features-plugin": { + "version": "7.21.4", + "resolved": "https://registry.npmjs.org/@babel/helper-create-regexp-features-plugin/-/helper-create-regexp-features-plugin-7.21.4.tgz", + "integrity": "sha512-M00OuhU+0GyZ5iBBN9czjugzWrEq2vDpf/zCYHxxf93ul/Q5rv+a5h+/+0WnI1AebHNVtl5bFV0qsJoH23DbfA==", + "dev": true, + "dependencies": { + "@babel/helper-annotate-as-pure": "^7.18.6", + "regexpu-core": "^5.3.1" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0" + } + }, + "node_modules/@babel/helper-define-polyfill-provider": { + "version": "0.3.3", + "resolved": "https://registry.npmjs.org/@babel/helper-define-polyfill-provider/-/helper-define-polyfill-provider-0.3.3.tgz", + "integrity": "sha512-z5aQKU4IzbqCC1XH0nAqfsFLMVSo22SBKUc0BxGrLkolTdPTructy0ToNnlO2zA4j9Q/7pjMZf0DSY+DSTYzww==", + "dev": true, + "dependencies": { + "@babel/helper-compilation-targets": "^7.17.7", + "@babel/helper-plugin-utils": "^7.16.7", + "debug": "^4.1.1", + "lodash.debounce": "^4.0.8", + "resolve": "^1.14.2", + "semver": "^6.1.2" + }, + "peerDependencies": { + "@babel/core": "^7.4.0-0" + } + }, + "node_modules/@babel/helper-define-polyfill-provider/node_modules/semver": { + "version": "6.3.0", + "resolved": "https://registry.npmjs.org/semver/-/semver-6.3.0.tgz", + "integrity": "sha512-b39TBaTSfV6yBrapU89p5fKekE2m/NwnDocOVruQFS1/veMgdzuPcnOM34M6CwxW8jH/lxEa5rBoDeUwu5HHTw==", + "dev": true, + "bin": { + "semver": "bin/semver.js" + } + }, + "node_modules/@babel/helper-environment-visitor": { + "version": "7.18.9", + "resolved": "https://registry.npmjs.org/@babel/helper-environment-visitor/-/helper-environment-visitor-7.18.9.tgz", + "integrity": "sha512-3r/aACDJ3fhQ/EVgFy0hpj8oHyHpQc+LPtJoY9SzTThAsStm4Ptegq92vqKoE3vD706ZVFWITnMnxucw+S9Ipg==", + "dev": true, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/helper-explode-assignable-expression": { + "version": "7.18.6", + "resolved": "https://registry.npmjs.org/@babel/helper-explode-assignable-expression/-/helper-explode-assignable-expression-7.18.6.tgz", + "integrity": "sha512-eyAYAsQmB80jNfg4baAtLeWAQHfHFiR483rzFK+BhETlGZaQC9bsfrugfXDCbRHLQbIA7U5NxhhOxN7p/dWIcg==", + "dev": true, + "dependencies": { + "@babel/types": "^7.18.6" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/helper-function-name": { + "version": "7.21.0", + "resolved": "https://registry.npmjs.org/@babel/helper-function-name/-/helper-function-name-7.21.0.tgz", + "integrity": "sha512-HfK1aMRanKHpxemaY2gqBmL04iAPOPRj7DxtNbiDOrJK+gdwkiNRVpCpUJYbUT+aZyemKN8brqTOxzCaG6ExRg==", + "dev": true, + "dependencies": { + "@babel/template": "^7.20.7", + "@babel/types": "^7.21.0" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/helper-hoist-variables": { + "version": "7.18.6", + "resolved": "https://registry.npmjs.org/@babel/helper-hoist-variables/-/helper-hoist-variables-7.18.6.tgz", + "integrity": "sha512-UlJQPkFqFULIcyW5sbzgbkxn2FKRgwWiRexcuaR8RNJRy8+LLveqPjwZV/bwrLZCN0eUHD/x8D0heK1ozuoo6Q==", + "dev": true, + "dependencies": { + "@babel/types": "^7.18.6" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/helper-member-expression-to-functions": { + "version": "7.21.0", + "resolved": "https://registry.npmjs.org/@babel/helper-member-expression-to-functions/-/helper-member-expression-to-functions-7.21.0.tgz", + "integrity": "sha512-Muu8cdZwNN6mRRNG6lAYErJ5X3bRevgYR2O8wN0yn7jJSnGDu6eG59RfT29JHxGUovyfrh6Pj0XzmR7drNVL3Q==", + "dev": true, + "dependencies": { + "@babel/types": "^7.21.0" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/helper-module-imports": { + "version": "7.21.4", + "resolved": "https://registry.npmjs.org/@babel/helper-module-imports/-/helper-module-imports-7.21.4.tgz", + "integrity": "sha512-orajc5T2PsRYUN3ZryCEFeMDYwyw09c/pZeaQEZPH0MpKzSvn3e0uXsDBu3k03VI+9DBiRo+l22BfKTpKwa/Wg==", + "dev": true, + "dependencies": { + "@babel/types": "^7.21.4" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/helper-module-transforms": { + "version": "7.21.2", + "resolved": "https://registry.npmjs.org/@babel/helper-module-transforms/-/helper-module-transforms-7.21.2.tgz", + "integrity": "sha512-79yj2AR4U/Oqq/WOV7Lx6hUjau1Zfo4cI+JLAVYeMV5XIlbOhmjEk5ulbTc9fMpmlojzZHkUUxAiK+UKn+hNQQ==", + "dev": true, + "dependencies": { + "@babel/helper-environment-visitor": "^7.18.9", + "@babel/helper-module-imports": "^7.18.6", + "@babel/helper-simple-access": "^7.20.2", + "@babel/helper-split-export-declaration": "^7.18.6", + "@babel/helper-validator-identifier": "^7.19.1", + "@babel/template": "^7.20.7", + "@babel/traverse": "^7.21.2", + "@babel/types": "^7.21.2" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/helper-optimise-call-expression": { + "version": "7.18.6", + "resolved": "https://registry.npmjs.org/@babel/helper-optimise-call-expression/-/helper-optimise-call-expression-7.18.6.tgz", + "integrity": "sha512-HP59oD9/fEHQkdcbgFCnbmgH5vIQTJbxh2yf+CdM89/glUNnuzr87Q8GIjGEnOktTROemO0Pe0iPAYbqZuOUiA==", + "dev": true, + "dependencies": { + "@babel/types": "^7.18.6" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/helper-plugin-utils": { + "version": "7.20.2", + "resolved": "https://registry.npmjs.org/@babel/helper-plugin-utils/-/helper-plugin-utils-7.20.2.tgz", + "integrity": "sha512-8RvlJG2mj4huQ4pZ+rU9lqKi9ZKiRmuvGuM2HlWmkmgOhbs6zEAw6IEiJ5cQqGbDzGZOhwuOQNtZMi/ENLjZoQ==", + "dev": true, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/helper-remap-async-to-generator": { + "version": "7.18.9", + "resolved": "https://registry.npmjs.org/@babel/helper-remap-async-to-generator/-/helper-remap-async-to-generator-7.18.9.tgz", + "integrity": "sha512-dI7q50YKd8BAv3VEfgg7PS7yD3Rtbi2J1XMXaalXO0W0164hYLnh8zpjRS0mte9MfVp/tltvr/cfdXPvJr1opA==", + "dev": true, + "dependencies": { + "@babel/helper-annotate-as-pure": "^7.18.6", + "@babel/helper-environment-visitor": "^7.18.9", + "@babel/helper-wrap-function": "^7.18.9", + "@babel/types": "^7.18.9" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0" + } + }, + "node_modules/@babel/helper-replace-supers": { + "version": "7.20.7", + "resolved": "https://registry.npmjs.org/@babel/helper-replace-supers/-/helper-replace-supers-7.20.7.tgz", + "integrity": "sha512-vujDMtB6LVfNW13jhlCrp48QNslK6JXi7lQG736HVbHz/mbf4Dc7tIRh1Xf5C0rF7BP8iiSxGMCmY6Ci1ven3A==", + "dev": true, + "dependencies": { + "@babel/helper-environment-visitor": "^7.18.9", + "@babel/helper-member-expression-to-functions": "^7.20.7", + "@babel/helper-optimise-call-expression": "^7.18.6", + "@babel/template": "^7.20.7", + "@babel/traverse": "^7.20.7", + "@babel/types": "^7.20.7" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/helper-simple-access": { + "version": "7.20.2", + "resolved": "https://registry.npmjs.org/@babel/helper-simple-access/-/helper-simple-access-7.20.2.tgz", + "integrity": "sha512-+0woI/WPq59IrqDYbVGfshjT5Dmk/nnbdpcF8SnMhhXObpTq2KNBdLFRFrkVdbDOyUmHBCxzm5FHV1rACIkIbA==", + "dev": true, + "dependencies": { + "@babel/types": "^7.20.2" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/helper-skip-transparent-expression-wrappers": { + "version": "7.20.0", + "resolved": "https://registry.npmjs.org/@babel/helper-skip-transparent-expression-wrappers/-/helper-skip-transparent-expression-wrappers-7.20.0.tgz", + "integrity": "sha512-5y1JYeNKfvnT8sZcK9DVRtpTbGiomYIHviSP3OQWmDPU3DeH4a1ZlT/N2lyQ5P8egjcRaT/Y9aNqUxK0WsnIIg==", + "dev": true, + "dependencies": { + "@babel/types": "^7.20.0" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/helper-split-export-declaration": { + "version": "7.18.6", + "resolved": "https://registry.npmjs.org/@babel/helper-split-export-declaration/-/helper-split-export-declaration-7.18.6.tgz", + "integrity": "sha512-bde1etTx6ZyTmobl9LLMMQsaizFVZrquTEHOqKeQESMKo4PlObf+8+JA25ZsIpZhT/WEd39+vOdLXAFG/nELpA==", + "dev": true, + "dependencies": { + "@babel/types": "^7.18.6" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/helper-string-parser": { + "version": "7.19.4", + "resolved": "https://registry.npmjs.org/@babel/helper-string-parser/-/helper-string-parser-7.19.4.tgz", + "integrity": "sha512-nHtDoQcuqFmwYNYPz3Rah5ph2p8PFeFCsZk9A/48dPc/rGocJ5J3hAAZ7pb76VWX3fZKu+uEr/FhH5jLx7umrw==", + "dev": true, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/helper-validator-identifier": { + "version": "7.19.1", + "resolved": "https://registry.npmjs.org/@babel/helper-validator-identifier/-/helper-validator-identifier-7.19.1.tgz", + "integrity": "sha512-awrNfaMtnHUr653GgGEs++LlAvW6w+DcPrOliSMXWCKo597CwL5Acf/wWdNkf/tfEQE3mjkeD1YOVZOUV/od1w==", + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/helper-validator-option": { + "version": "7.21.0", + "resolved": "https://registry.npmjs.org/@babel/helper-validator-option/-/helper-validator-option-7.21.0.tgz", + "integrity": "sha512-rmL/B8/f0mKS2baE9ZpyTcTavvEuWhTTW8amjzXNvYG4AwBsqTLikfXsEofsJEfKHf+HQVQbFOHy6o+4cnC/fQ==", + "dev": true, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/helper-wrap-function": { + "version": "7.20.5", + "resolved": "https://registry.npmjs.org/@babel/helper-wrap-function/-/helper-wrap-function-7.20.5.tgz", + "integrity": "sha512-bYMxIWK5mh+TgXGVqAtnu5Yn1un+v8DDZtqyzKRLUzrh70Eal2O3aZ7aPYiMADO4uKlkzOiRiZ6GX5q3qxvW9Q==", + "dev": true, + "dependencies": { + "@babel/helper-function-name": "^7.19.0", + "@babel/template": "^7.18.10", + "@babel/traverse": "^7.20.5", + "@babel/types": "^7.20.5" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/helpers": { + "version": "7.21.0", + "resolved": "https://registry.npmjs.org/@babel/helpers/-/helpers-7.21.0.tgz", + "integrity": "sha512-XXve0CBtOW0pd7MRzzmoyuSj0e3SEzj8pgyFxnTT1NJZL38BD1MK7yYrm8yefRPIDvNNe14xR4FdbHwpInD4rA==", + "dev": true, + "dependencies": { + "@babel/template": "^7.20.7", + "@babel/traverse": "^7.21.0", + "@babel/types": "^7.21.0" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/highlight": { + "version": "7.18.6", + "resolved": "https://registry.npmjs.org/@babel/highlight/-/highlight-7.18.6.tgz", + "integrity": "sha512-u7stbOuYjaPezCuLj29hNW1v64M2Md2qupEKP1fHc7WdOA3DgLh37suiSrZYY7haUB7iBeQZ9P1uiRF359do3g==", + "dependencies": { + "@babel/helper-validator-identifier": "^7.18.6", + "chalk": "^2.0.0", + "js-tokens": "^4.0.0" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/highlight/node_modules/ansi-styles": { + "version": "3.2.1", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-3.2.1.tgz", + "integrity": "sha512-VT0ZI6kZRdTh8YyJw3SMbYm/u+NqfsAxEpWO0Pf9sq8/e94WxxOpPKx9FR1FlyCtOVDNOQ+8ntlqFxiRc+r5qA==", + "dependencies": { + "color-convert": "^1.9.0" + }, + "engines": { + "node": ">=4" + } + }, + "node_modules/@babel/highlight/node_modules/chalk": { + "version": "2.4.2", + "resolved": "https://registry.npmjs.org/chalk/-/chalk-2.4.2.tgz", + "integrity": "sha512-Mti+f9lpJNcwF4tWV8/OrTTtF1gZi+f8FqlyAdouralcFWFQWF2+NgCHShjkCb+IFBLq9buZwE1xckQU4peSuQ==", + "dependencies": { + "ansi-styles": "^3.2.1", + "escape-string-regexp": "^1.0.5", + "supports-color": "^5.3.0" + }, + "engines": { + "node": ">=4" + } + }, + "node_modules/@babel/highlight/node_modules/color-convert": { + "version": "1.9.3", + "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-1.9.3.tgz", + "integrity": "sha512-QfAUtd+vFdAtFQcC8CCyYt1fYWxSqAiK2cSD6zDB8N3cpsEBAvRxp9zOGg6G/SHHJYAT88/az/IuDGALsNVbGg==", + "dependencies": { + "color-name": "1.1.3" + } + }, + "node_modules/@babel/highlight/node_modules/color-name": { + "version": "1.1.3", + "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.3.tgz", + "integrity": "sha512-72fSenhMw2HZMTVHeCA9KCmpEIbzWiQsjN+BHcBbS9vr1mtt+vJjPdksIBNUmKAW8TFUDPJK5SUU3QhE9NEXDw==" + }, + "node_modules/@babel/highlight/node_modules/escape-string-regexp": { + "version": "1.0.5", + "resolved": "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-1.0.5.tgz", + "integrity": "sha512-vbRorB5FUQWvla16U8R/qgaFIya2qGzwDrNmCZuYKrbdSUMG6I1ZCGQRefkRVhuOkIGVne7BQ35DSfo1qvJqFg==", + "engines": { + "node": ">=0.8.0" + } + }, + "node_modules/@babel/highlight/node_modules/has-flag": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-3.0.0.tgz", + "integrity": "sha512-sKJf1+ceQBr4SMkvQnBDNDtf4TXpVhVGateu0t918bl30FnbE2m4vNLX+VWe/dpjlb+HugGYzW7uQXH98HPEYw==", + "engines": { + "node": ">=4" + } + }, + "node_modules/@babel/highlight/node_modules/supports-color": { + "version": "5.5.0", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-5.5.0.tgz", + "integrity": "sha512-QjVjwdXIt408MIiAqCX4oUKsgU2EqAGzs2Ppkm4aQYbjm+ZEWEcW4SfFNTr4uMNZma0ey4f5lgLrkB0aX0QMow==", + "dependencies": { + "has-flag": "^3.0.0" + }, + "engines": { + "node": ">=4" + } + }, + "node_modules/@babel/parser": { + "version": "7.21.4", + "resolved": "https://registry.npmjs.org/@babel/parser/-/parser-7.21.4.tgz", + "integrity": "sha512-alVJj7k7zIxqBZ7BTRhz0IqJFxW1VJbm6N8JbcYhQ186df9ZBPbZBmWSqAMXwHGsCJdYks7z/voa3ibiS5bCIw==", + "dev": true, + "bin": { + "parser": "bin/babel-parser.js" + }, + "engines": { + "node": ">=6.0.0" + } + }, + "node_modules/@babel/plugin-bugfix-safari-id-destructuring-collision-in-function-expression": { + "version": "7.18.6", + "resolved": "https://registry.npmjs.org/@babel/plugin-bugfix-safari-id-destructuring-collision-in-function-expression/-/plugin-bugfix-safari-id-destructuring-collision-in-function-expression-7.18.6.tgz", + "integrity": "sha512-Dgxsyg54Fx1d4Nge8UnvTrED63vrwOdPmyvPzlNN/boaliRP54pm3pGzZD1SJUwrBA+Cs/xdG8kXX6Mn/RfISQ==", + "dev": true, + "dependencies": { + "@babel/helper-plugin-utils": "^7.18.6" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0" + } + }, + "node_modules/@babel/plugin-bugfix-v8-spread-parameters-in-optional-chaining": { + "version": "7.20.7", + "resolved": "https://registry.npmjs.org/@babel/plugin-bugfix-v8-spread-parameters-in-optional-chaining/-/plugin-bugfix-v8-spread-parameters-in-optional-chaining-7.20.7.tgz", + "integrity": "sha512-sbr9+wNE5aXMBBFBICk01tt7sBf2Oc9ikRFEcem/ZORup9IMUdNhW7/wVLEbbtlWOsEubJet46mHAL2C8+2jKQ==", + "dev": true, + "dependencies": { + "@babel/helper-plugin-utils": "^7.20.2", + "@babel/helper-skip-transparent-expression-wrappers": "^7.20.0", + "@babel/plugin-proposal-optional-chaining": "^7.20.7" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.13.0" + } + }, + "node_modules/@babel/plugin-proposal-async-generator-functions": { + "version": "7.20.7", + "resolved": "https://registry.npmjs.org/@babel/plugin-proposal-async-generator-functions/-/plugin-proposal-async-generator-functions-7.20.7.tgz", + "integrity": "sha512-xMbiLsn/8RK7Wq7VeVytytS2L6qE69bXPB10YCmMdDZbKF4okCqY74pI/jJQ/8U0b/F6NrT2+14b8/P9/3AMGA==", + "dev": true, + "dependencies": { + "@babel/helper-environment-visitor": "^7.18.9", + "@babel/helper-plugin-utils": "^7.20.2", + "@babel/helper-remap-async-to-generator": "^7.18.9", + "@babel/plugin-syntax-async-generators": "^7.8.4" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-proposal-class-properties": { + "version": "7.18.6", + "resolved": "https://registry.npmjs.org/@babel/plugin-proposal-class-properties/-/plugin-proposal-class-properties-7.18.6.tgz", + "integrity": "sha512-cumfXOF0+nzZrrN8Rf0t7M+tF6sZc7vhQwYQck9q1/5w2OExlD+b4v4RpMJFaV1Z7WcDRgO6FqvxqxGlwo+RHQ==", + "dev": true, + "dependencies": { + "@babel/helper-create-class-features-plugin": "^7.18.6", + "@babel/helper-plugin-utils": "^7.18.6" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-proposal-class-static-block": { + "version": "7.21.0", + "resolved": "https://registry.npmjs.org/@babel/plugin-proposal-class-static-block/-/plugin-proposal-class-static-block-7.21.0.tgz", + "integrity": "sha512-XP5G9MWNUskFuP30IfFSEFB0Z6HzLIUcjYM4bYOPHXl7eiJ9HFv8tWj6TXTN5QODiEhDZAeI4hLok2iHFFV4hw==", + "dev": true, + "dependencies": { + "@babel/helper-create-class-features-plugin": "^7.21.0", + "@babel/helper-plugin-utils": "^7.20.2", + "@babel/plugin-syntax-class-static-block": "^7.14.5" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.12.0" + } + }, + "node_modules/@babel/plugin-proposal-dynamic-import": { + "version": "7.18.6", + "resolved": "https://registry.npmjs.org/@babel/plugin-proposal-dynamic-import/-/plugin-proposal-dynamic-import-7.18.6.tgz", + "integrity": "sha512-1auuwmK+Rz13SJj36R+jqFPMJWyKEDd7lLSdOj4oJK0UTgGueSAtkrCvz9ewmgyU/P941Rv2fQwZJN8s6QruXw==", + "dev": true, + "dependencies": { + "@babel/helper-plugin-utils": "^7.18.6", + "@babel/plugin-syntax-dynamic-import": "^7.8.3" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-proposal-export-namespace-from": { + "version": "7.18.9", + "resolved": "https://registry.npmjs.org/@babel/plugin-proposal-export-namespace-from/-/plugin-proposal-export-namespace-from-7.18.9.tgz", + "integrity": "sha512-k1NtHyOMvlDDFeb9G5PhUXuGj8m/wiwojgQVEhJ/fsVsMCpLyOP4h0uGEjYJKrRI+EVPlb5Jk+Gt9P97lOGwtA==", + "dev": true, + "dependencies": { + "@babel/helper-plugin-utils": "^7.18.9", + "@babel/plugin-syntax-export-namespace-from": "^7.8.3" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-proposal-json-strings": { + "version": "7.18.6", + "resolved": "https://registry.npmjs.org/@babel/plugin-proposal-json-strings/-/plugin-proposal-json-strings-7.18.6.tgz", + "integrity": "sha512-lr1peyn9kOdbYc0xr0OdHTZ5FMqS6Di+H0Fz2I/JwMzGmzJETNeOFq2pBySw6X/KFL5EWDjlJuMsUGRFb8fQgQ==", + "dev": true, + "dependencies": { + "@babel/helper-plugin-utils": "^7.18.6", + "@babel/plugin-syntax-json-strings": "^7.8.3" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-proposal-logical-assignment-operators": { + "version": "7.20.7", + "resolved": "https://registry.npmjs.org/@babel/plugin-proposal-logical-assignment-operators/-/plugin-proposal-logical-assignment-operators-7.20.7.tgz", + "integrity": "sha512-y7C7cZgpMIjWlKE5T7eJwp+tnRYM89HmRvWM5EQuB5BoHEONjmQ8lSNmBUwOyy/GFRsohJED51YBF79hE1djug==", + "dev": true, + "dependencies": { + "@babel/helper-plugin-utils": "^7.20.2", + "@babel/plugin-syntax-logical-assignment-operators": "^7.10.4" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-proposal-nullish-coalescing-operator": { + "version": "7.18.6", + "resolved": "https://registry.npmjs.org/@babel/plugin-proposal-nullish-coalescing-operator/-/plugin-proposal-nullish-coalescing-operator-7.18.6.tgz", + "integrity": "sha512-wQxQzxYeJqHcfppzBDnm1yAY0jSRkUXR2z8RePZYrKwMKgMlE8+Z6LUno+bd6LvbGh8Gltvy74+9pIYkr+XkKA==", + "dev": true, + "dependencies": { + "@babel/helper-plugin-utils": "^7.18.6", + "@babel/plugin-syntax-nullish-coalescing-operator": "^7.8.3" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-proposal-numeric-separator": { + "version": "7.18.6", + "resolved": "https://registry.npmjs.org/@babel/plugin-proposal-numeric-separator/-/plugin-proposal-numeric-separator-7.18.6.tgz", + "integrity": "sha512-ozlZFogPqoLm8WBr5Z8UckIoE4YQ5KESVcNudyXOR8uqIkliTEgJ3RoketfG6pmzLdeZF0H/wjE9/cCEitBl7Q==", + "dev": true, + "dependencies": { + "@babel/helper-plugin-utils": "^7.18.6", + "@babel/plugin-syntax-numeric-separator": "^7.10.4" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-proposal-object-rest-spread": { + "version": "7.20.7", + "resolved": "https://registry.npmjs.org/@babel/plugin-proposal-object-rest-spread/-/plugin-proposal-object-rest-spread-7.20.7.tgz", + "integrity": "sha512-d2S98yCiLxDVmBmE8UjGcfPvNEUbA1U5q5WxaWFUGRzJSVAZqm5W6MbPct0jxnegUZ0niLeNX+IOzEs7wYg9Dg==", + "dev": true, + "dependencies": { + "@babel/compat-data": "^7.20.5", + "@babel/helper-compilation-targets": "^7.20.7", + "@babel/helper-plugin-utils": "^7.20.2", + "@babel/plugin-syntax-object-rest-spread": "^7.8.3", + "@babel/plugin-transform-parameters": "^7.20.7" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-proposal-optional-catch-binding": { + "version": "7.18.6", + "resolved": "https://registry.npmjs.org/@babel/plugin-proposal-optional-catch-binding/-/plugin-proposal-optional-catch-binding-7.18.6.tgz", + "integrity": "sha512-Q40HEhs9DJQyaZfUjjn6vE8Cv4GmMHCYuMGIWUnlxH6400VGxOuwWsPt4FxXxJkC/5eOzgn0z21M9gMT4MOhbw==", + "dev": true, + "dependencies": { + "@babel/helper-plugin-utils": "^7.18.6", + "@babel/plugin-syntax-optional-catch-binding": "^7.8.3" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-proposal-optional-chaining": { + "version": "7.21.0", + "resolved": "https://registry.npmjs.org/@babel/plugin-proposal-optional-chaining/-/plugin-proposal-optional-chaining-7.21.0.tgz", + "integrity": "sha512-p4zeefM72gpmEe2fkUr/OnOXpWEf8nAgk7ZYVqqfFiyIG7oFfVZcCrU64hWn5xp4tQ9LkV4bTIa5rD0KANpKNA==", + "dev": true, + "dependencies": { + "@babel/helper-plugin-utils": "^7.20.2", + "@babel/helper-skip-transparent-expression-wrappers": "^7.20.0", + "@babel/plugin-syntax-optional-chaining": "^7.8.3" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-proposal-private-methods": { + "version": "7.18.6", + "resolved": "https://registry.npmjs.org/@babel/plugin-proposal-private-methods/-/plugin-proposal-private-methods-7.18.6.tgz", + "integrity": "sha512-nutsvktDItsNn4rpGItSNV2sz1XwS+nfU0Rg8aCx3W3NOKVzdMjJRu0O5OkgDp3ZGICSTbgRpxZoWsxoKRvbeA==", + "dev": true, + "dependencies": { + "@babel/helper-create-class-features-plugin": "^7.18.6", + "@babel/helper-plugin-utils": "^7.18.6" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-proposal-private-property-in-object": { + "version": "7.21.0", + "resolved": "https://registry.npmjs.org/@babel/plugin-proposal-private-property-in-object/-/plugin-proposal-private-property-in-object-7.21.0.tgz", + "integrity": "sha512-ha4zfehbJjc5MmXBlHec1igel5TJXXLDDRbuJ4+XT2TJcyD9/V1919BA8gMvsdHcNMBy4WBUBiRb3nw/EQUtBw==", + "dev": true, + "dependencies": { + "@babel/helper-annotate-as-pure": "^7.18.6", + "@babel/helper-create-class-features-plugin": "^7.21.0", + "@babel/helper-plugin-utils": "^7.20.2", + "@babel/plugin-syntax-private-property-in-object": "^7.14.5" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-proposal-unicode-property-regex": { + "version": "7.18.6", + "resolved": "https://registry.npmjs.org/@babel/plugin-proposal-unicode-property-regex/-/plugin-proposal-unicode-property-regex-7.18.6.tgz", + "integrity": "sha512-2BShG/d5yoZyXZfVePH91urL5wTG6ASZU9M4o03lKK8u8UW1y08OMttBSOADTcJrnPMpvDXRG3G8fyLh4ovs8w==", + "dev": true, + "dependencies": { + "@babel/helper-create-regexp-features-plugin": "^7.18.6", + "@babel/helper-plugin-utils": "^7.18.6" + }, + "engines": { + "node": ">=4" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-syntax-async-generators": { + "version": "7.8.4", + "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-async-generators/-/plugin-syntax-async-generators-7.8.4.tgz", + "integrity": "sha512-tycmZxkGfZaxhMRbXlPXuVFpdWlXpir2W4AMhSJgRKzk/eDlIXOhb2LHWoLpDF7TEHylV5zNhykX6KAgHJmTNw==", + "dev": true, + "dependencies": { + "@babel/helper-plugin-utils": "^7.8.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-syntax-class-properties": { + "version": "7.12.13", + "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-class-properties/-/plugin-syntax-class-properties-7.12.13.tgz", + "integrity": "sha512-fm4idjKla0YahUNgFNLCB0qySdsoPiZP3iQE3rky0mBUtMZ23yDJ9SJdg6dXTSDnulOVqiF3Hgr9nbXvXTQZYA==", + "dev": true, + "dependencies": { + "@babel/helper-plugin-utils": "^7.12.13" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-syntax-class-static-block": { + "version": "7.14.5", + "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-class-static-block/-/plugin-syntax-class-static-block-7.14.5.tgz", + "integrity": "sha512-b+YyPmr6ldyNnM6sqYeMWE+bgJcJpO6yS4QD7ymxgH34GBPNDM/THBh8iunyvKIZztiwLH4CJZ0RxTk9emgpjw==", + "dev": true, + "dependencies": { + "@babel/helper-plugin-utils": "^7.14.5" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-syntax-dynamic-import": { + "version": "7.8.3", + "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-dynamic-import/-/plugin-syntax-dynamic-import-7.8.3.tgz", + "integrity": "sha512-5gdGbFon+PszYzqs83S3E5mpi7/y/8M9eC90MRTZfduQOYW76ig6SOSPNe41IG5LoP3FGBn2N0RjVDSQiS94kQ==", + "dev": true, + "dependencies": { + "@babel/helper-plugin-utils": "^7.8.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-syntax-export-namespace-from": { + "version": "7.8.3", + "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-export-namespace-from/-/plugin-syntax-export-namespace-from-7.8.3.tgz", + "integrity": "sha512-MXf5laXo6c1IbEbegDmzGPwGNTsHZmEy6QGznu5Sh2UCWvueywb2ee+CCE4zQiZstxU9BMoQO9i6zUFSY0Kj0Q==", + "dev": true, + "dependencies": { + "@babel/helper-plugin-utils": "^7.8.3" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-syntax-import-assertions": { + "version": "7.20.0", + "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-import-assertions/-/plugin-syntax-import-assertions-7.20.0.tgz", + "integrity": "sha512-IUh1vakzNoWalR8ch/areW7qFopR2AEw03JlG7BbrDqmQ4X3q9uuipQwSGrUn7oGiemKjtSLDhNtQHzMHr1JdQ==", + "dev": true, + "dependencies": { + "@babel/helper-plugin-utils": "^7.19.0" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-syntax-json-strings": { + "version": "7.8.3", + "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-json-strings/-/plugin-syntax-json-strings-7.8.3.tgz", + "integrity": "sha512-lY6kdGpWHvjoe2vk4WrAapEuBR69EMxZl+RoGRhrFGNYVK8mOPAW8VfbT/ZgrFbXlDNiiaxQnAtgVCZ6jv30EA==", + "dev": true, + "dependencies": { + "@babel/helper-plugin-utils": "^7.8.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-syntax-logical-assignment-operators": { + "version": "7.10.4", + "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-logical-assignment-operators/-/plugin-syntax-logical-assignment-operators-7.10.4.tgz", + "integrity": "sha512-d8waShlpFDinQ5MtvGU9xDAOzKH47+FFoney2baFIoMr952hKOLp1HR7VszoZvOsV/4+RRszNY7D17ba0te0ig==", + "dev": true, + "dependencies": { + "@babel/helper-plugin-utils": "^7.10.4" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-syntax-nullish-coalescing-operator": { + "version": "7.8.3", + "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-nullish-coalescing-operator/-/plugin-syntax-nullish-coalescing-operator-7.8.3.tgz", + "integrity": "sha512-aSff4zPII1u2QD7y+F8oDsz19ew4IGEJg9SVW+bqwpwtfFleiQDMdzA/R+UlWDzfnHFCxxleFT0PMIrR36XLNQ==", + "dev": true, + "dependencies": { + "@babel/helper-plugin-utils": "^7.8.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-syntax-numeric-separator": { + "version": "7.10.4", + "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-numeric-separator/-/plugin-syntax-numeric-separator-7.10.4.tgz", + "integrity": "sha512-9H6YdfkcK/uOnY/K7/aA2xpzaAgkQn37yzWUMRK7OaPOqOpGS1+n0H5hxT9AUw9EsSjPW8SVyMJwYRtWs3X3ug==", + "dev": true, + "dependencies": { + "@babel/helper-plugin-utils": "^7.10.4" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-syntax-object-rest-spread": { + "version": "7.8.3", + "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-object-rest-spread/-/plugin-syntax-object-rest-spread-7.8.3.tgz", + "integrity": "sha512-XoqMijGZb9y3y2XskN+P1wUGiVwWZ5JmoDRwx5+3GmEplNyVM2s2Dg8ILFQm8rWM48orGy5YpI5Bl8U1y7ydlA==", + "dev": true, + "dependencies": { + "@babel/helper-plugin-utils": "^7.8.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-syntax-optional-catch-binding": { + "version": "7.8.3", + "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-optional-catch-binding/-/plugin-syntax-optional-catch-binding-7.8.3.tgz", + "integrity": "sha512-6VPD0Pc1lpTqw0aKoeRTMiB+kWhAoT24PA+ksWSBrFtl5SIRVpZlwN3NNPQjehA2E/91FV3RjLWoVTglWcSV3Q==", + "dev": true, + "dependencies": { + "@babel/helper-plugin-utils": "^7.8.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-syntax-optional-chaining": { + "version": "7.8.3", + "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-optional-chaining/-/plugin-syntax-optional-chaining-7.8.3.tgz", + "integrity": "sha512-KoK9ErH1MBlCPxV0VANkXW2/dw4vlbGDrFgz8bmUsBGYkFRcbRwMh6cIJubdPrkxRwuGdtCk0v/wPTKbQgBjkg==", + "dev": true, + "dependencies": { + "@babel/helper-plugin-utils": "^7.8.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-syntax-private-property-in-object": { + "version": "7.14.5", + "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-private-property-in-object/-/plugin-syntax-private-property-in-object-7.14.5.tgz", + "integrity": "sha512-0wVnp9dxJ72ZUJDV27ZfbSj6iHLoytYZmh3rFcxNnvsJF3ktkzLDZPy/mA17HGsaQT3/DQsWYX1f1QGWkCoVUg==", + "dev": true, + "dependencies": { + "@babel/helper-plugin-utils": "^7.14.5" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-syntax-top-level-await": { + "version": "7.14.5", + "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-top-level-await/-/plugin-syntax-top-level-await-7.14.5.tgz", + "integrity": "sha512-hx++upLv5U1rgYfwe1xBQUhRmU41NEvpUvrp8jkrSCdvGSnM5/qdRMtylJ6PG5OFkBaHkbTAKTnd3/YyESRHFw==", + "dev": true, + "dependencies": { + "@babel/helper-plugin-utils": "^7.14.5" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-transform-arrow-functions": { + "version": "7.20.7", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-arrow-functions/-/plugin-transform-arrow-functions-7.20.7.tgz", + "integrity": "sha512-3poA5E7dzDomxj9WXWwuD6A5F3kc7VXwIJO+E+J8qtDtS+pXPAhrgEyh+9GBwBgPq1Z+bB+/JD60lp5jsN7JPQ==", + "dev": true, + "dependencies": { + "@babel/helper-plugin-utils": "^7.20.2" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-transform-async-to-generator": { + "version": "7.20.7", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-async-to-generator/-/plugin-transform-async-to-generator-7.20.7.tgz", + "integrity": "sha512-Uo5gwHPT9vgnSXQxqGtpdufUiWp96gk7yiP4Mp5bm1QMkEmLXBO7PAGYbKoJ6DhAwiNkcHFBol/x5zZZkL/t0Q==", + "dev": true, + "dependencies": { + "@babel/helper-module-imports": "^7.18.6", + "@babel/helper-plugin-utils": "^7.20.2", + "@babel/helper-remap-async-to-generator": "^7.18.9" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-transform-block-scoped-functions": { + "version": "7.18.6", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-block-scoped-functions/-/plugin-transform-block-scoped-functions-7.18.6.tgz", + "integrity": "sha512-ExUcOqpPWnliRcPqves5HJcJOvHvIIWfuS4sroBUenPuMdmW+SMHDakmtS7qOo13sVppmUijqeTv7qqGsvURpQ==", + "dev": true, + "dependencies": { + "@babel/helper-plugin-utils": "^7.18.6" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-transform-block-scoping": { + "version": "7.21.0", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-block-scoping/-/plugin-transform-block-scoping-7.21.0.tgz", + "integrity": "sha512-Mdrbunoh9SxwFZapeHVrwFmri16+oYotcZysSzhNIVDwIAb1UV+kvnxULSYq9J3/q5MDG+4X6w8QVgD1zhBXNQ==", + "dev": true, + "dependencies": { + "@babel/helper-plugin-utils": "^7.20.2" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-transform-classes": { + "version": "7.21.0", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-classes/-/plugin-transform-classes-7.21.0.tgz", + "integrity": "sha512-RZhbYTCEUAe6ntPehC4hlslPWosNHDox+vAs4On/mCLRLfoDVHf6hVEd7kuxr1RnHwJmxFfUM3cZiZRmPxJPXQ==", + "dev": true, + "dependencies": { + "@babel/helper-annotate-as-pure": "^7.18.6", + "@babel/helper-compilation-targets": "^7.20.7", + "@babel/helper-environment-visitor": "^7.18.9", + "@babel/helper-function-name": "^7.21.0", + "@babel/helper-optimise-call-expression": "^7.18.6", + "@babel/helper-plugin-utils": "^7.20.2", + "@babel/helper-replace-supers": "^7.20.7", + "@babel/helper-split-export-declaration": "^7.18.6", + "globals": "^11.1.0" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-transform-computed-properties": { + "version": "7.20.7", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-computed-properties/-/plugin-transform-computed-properties-7.20.7.tgz", + "integrity": "sha512-Lz7MvBK6DTjElHAmfu6bfANzKcxpyNPeYBGEafyA6E5HtRpjpZwU+u7Qrgz/2OR0z+5TvKYbPdphfSaAcZBrYQ==", + "dev": true, + "dependencies": { + "@babel/helper-plugin-utils": "^7.20.2", + "@babel/template": "^7.20.7" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-transform-destructuring": { + "version": "7.21.3", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-destructuring/-/plugin-transform-destructuring-7.21.3.tgz", + "integrity": "sha512-bp6hwMFzuiE4HqYEyoGJ/V2LeIWn+hLVKc4pnj++E5XQptwhtcGmSayM029d/j2X1bPKGTlsyPwAubuU22KhMA==", + "dev": true, + "dependencies": { + "@babel/helper-plugin-utils": "^7.20.2" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-transform-dotall-regex": { + "version": "7.18.6", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-dotall-regex/-/plugin-transform-dotall-regex-7.18.6.tgz", + "integrity": "sha512-6S3jpun1eEbAxq7TdjLotAsl4WpQI9DxfkycRcKrjhQYzU87qpXdknpBg/e+TdcMehqGnLFi7tnFUBR02Vq6wg==", + "dev": true, + "dependencies": { + "@babel/helper-create-regexp-features-plugin": "^7.18.6", + "@babel/helper-plugin-utils": "^7.18.6" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-transform-duplicate-keys": { + "version": "7.18.9", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-duplicate-keys/-/plugin-transform-duplicate-keys-7.18.9.tgz", + "integrity": "sha512-d2bmXCtZXYc59/0SanQKbiWINadaJXqtvIQIzd4+hNwkWBgyCd5F/2t1kXoUdvPMrxzPvhK6EMQRROxsue+mfw==", + "dev": true, + "dependencies": { + "@babel/helper-plugin-utils": "^7.18.9" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-transform-exponentiation-operator": { + "version": "7.18.6", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-exponentiation-operator/-/plugin-transform-exponentiation-operator-7.18.6.tgz", + "integrity": "sha512-wzEtc0+2c88FVR34aQmiz56dxEkxr2g8DQb/KfaFa1JYXOFVsbhvAonFN6PwVWj++fKmku8NP80plJ5Et4wqHw==", + "dev": true, + "dependencies": { + "@babel/helper-builder-binary-assignment-operator-visitor": "^7.18.6", + "@babel/helper-plugin-utils": "^7.18.6" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-transform-for-of": { + "version": "7.21.0", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-for-of/-/plugin-transform-for-of-7.21.0.tgz", + "integrity": "sha512-LlUYlydgDkKpIY7mcBWvyPPmMcOphEyYA27Ef4xpbh1IiDNLr0kZsos2nf92vz3IccvJI25QUwp86Eo5s6HmBQ==", + "dev": true, + "dependencies": { + "@babel/helper-plugin-utils": "^7.20.2" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-transform-function-name": { + "version": "7.18.9", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-function-name/-/plugin-transform-function-name-7.18.9.tgz", + "integrity": "sha512-WvIBoRPaJQ5yVHzcnJFor7oS5Ls0PYixlTYE63lCj2RtdQEl15M68FXQlxnG6wdraJIXRdR7KI+hQ7q/9QjrCQ==", + "dev": true, + "dependencies": { + "@babel/helper-compilation-targets": "^7.18.9", + "@babel/helper-function-name": "^7.18.9", + "@babel/helper-plugin-utils": "^7.18.9" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-transform-literals": { + "version": "7.18.9", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-literals/-/plugin-transform-literals-7.18.9.tgz", + "integrity": "sha512-IFQDSRoTPnrAIrI5zoZv73IFeZu2dhu6irxQjY9rNjTT53VmKg9fenjvoiOWOkJ6mm4jKVPtdMzBY98Fp4Z4cg==", + "dev": true, + "dependencies": { + "@babel/helper-plugin-utils": "^7.18.9" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-transform-member-expression-literals": { + "version": "7.18.6", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-member-expression-literals/-/plugin-transform-member-expression-literals-7.18.6.tgz", + "integrity": "sha512-qSF1ihLGO3q+/g48k85tUjD033C29TNTVB2paCwZPVmOsjn9pClvYYrM2VeJpBY2bcNkuny0YUyTNRyRxJ54KA==", + "dev": true, + "dependencies": { + "@babel/helper-plugin-utils": "^7.18.6" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-transform-modules-amd": { + "version": "7.20.11", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-modules-amd/-/plugin-transform-modules-amd-7.20.11.tgz", + "integrity": "sha512-NuzCt5IIYOW0O30UvqktzHYR2ud5bOWbY0yaxWZ6G+aFzOMJvrs5YHNikrbdaT15+KNO31nPOy5Fim3ku6Zb5g==", + "dev": true, + "dependencies": { + "@babel/helper-module-transforms": "^7.20.11", + "@babel/helper-plugin-utils": "^7.20.2" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-transform-modules-commonjs": { + "version": "7.21.2", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-modules-commonjs/-/plugin-transform-modules-commonjs-7.21.2.tgz", + "integrity": "sha512-Cln+Yy04Gxua7iPdj6nOV96smLGjpElir5YwzF0LBPKoPlLDNJePNlrGGaybAJkd0zKRnOVXOgizSqPYMNYkzA==", + "dev": true, + "dependencies": { + "@babel/helper-module-transforms": "^7.21.2", + "@babel/helper-plugin-utils": "^7.20.2", + "@babel/helper-simple-access": "^7.20.2" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-transform-modules-systemjs": { + "version": "7.20.11", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-modules-systemjs/-/plugin-transform-modules-systemjs-7.20.11.tgz", + "integrity": "sha512-vVu5g9BPQKSFEmvt2TA4Da5N+QVS66EX21d8uoOihC+OCpUoGvzVsXeqFdtAEfVa5BILAeFt+U7yVmLbQnAJmw==", + "dev": true, + "dependencies": { + "@babel/helper-hoist-variables": "^7.18.6", + "@babel/helper-module-transforms": "^7.20.11", + "@babel/helper-plugin-utils": "^7.20.2", + "@babel/helper-validator-identifier": "^7.19.1" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-transform-modules-umd": { + "version": "7.18.6", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-modules-umd/-/plugin-transform-modules-umd-7.18.6.tgz", + "integrity": "sha512-dcegErExVeXcRqNtkRU/z8WlBLnvD4MRnHgNs3MytRO1Mn1sHRyhbcpYbVMGclAqOjdW+9cfkdZno9dFdfKLfQ==", + "dev": true, + "dependencies": { + "@babel/helper-module-transforms": "^7.18.6", + "@babel/helper-plugin-utils": "^7.18.6" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-transform-named-capturing-groups-regex": { + "version": "7.20.5", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-named-capturing-groups-regex/-/plugin-transform-named-capturing-groups-regex-7.20.5.tgz", + "integrity": "sha512-mOW4tTzi5iTLnw+78iEq3gr8Aoq4WNRGpmSlrogqaiCBoR1HFhpU4JkpQFOHfeYx3ReVIFWOQJS4aZBRvuZ6mA==", + "dev": true, + "dependencies": { + "@babel/helper-create-regexp-features-plugin": "^7.20.5", + "@babel/helper-plugin-utils": "^7.20.2" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0" + } + }, + "node_modules/@babel/plugin-transform-new-target": { + "version": "7.18.6", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-new-target/-/plugin-transform-new-target-7.18.6.tgz", + "integrity": "sha512-DjwFA/9Iu3Z+vrAn+8pBUGcjhxKguSMlsFqeCKbhb9BAV756v0krzVK04CRDi/4aqmk8BsHb4a/gFcaA5joXRw==", + "dev": true, + "dependencies": { + "@babel/helper-plugin-utils": "^7.18.6" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-transform-object-super": { + "version": "7.18.6", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-object-super/-/plugin-transform-object-super-7.18.6.tgz", + "integrity": "sha512-uvGz6zk+pZoS1aTZrOvrbj6Pp/kK2mp45t2B+bTDre2UgsZZ8EZLSJtUg7m/no0zOJUWgFONpB7Zv9W2tSaFlA==", + "dev": true, + "dependencies": { + "@babel/helper-plugin-utils": "^7.18.6", + "@babel/helper-replace-supers": "^7.18.6" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-transform-parameters": { + "version": "7.21.3", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-parameters/-/plugin-transform-parameters-7.21.3.tgz", + "integrity": "sha512-Wxc+TvppQG9xWFYatvCGPvZ6+SIUxQ2ZdiBP+PHYMIjnPXD+uThCshaz4NZOnODAtBjjcVQQ/3OKs9LW28purQ==", + "dev": true, + "dependencies": { + "@babel/helper-plugin-utils": "^7.20.2" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-transform-property-literals": { + "version": "7.18.6", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-property-literals/-/plugin-transform-property-literals-7.18.6.tgz", + "integrity": "sha512-cYcs6qlgafTud3PAzrrRNbQtfpQ8+y/+M5tKmksS9+M1ckbH6kzY8MrexEM9mcA6JDsukE19iIRvAyYl463sMg==", + "dev": true, + "dependencies": { + "@babel/helper-plugin-utils": "^7.18.6" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-transform-regenerator": { + "version": "7.20.5", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-regenerator/-/plugin-transform-regenerator-7.20.5.tgz", + "integrity": "sha512-kW/oO7HPBtntbsahzQ0qSE3tFvkFwnbozz3NWFhLGqH75vLEg+sCGngLlhVkePlCs3Jv0dBBHDzCHxNiFAQKCQ==", + "dev": true, + "dependencies": { + "@babel/helper-plugin-utils": "^7.20.2", + "regenerator-transform": "^0.15.1" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-transform-reserved-words": { + "version": "7.18.6", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-reserved-words/-/plugin-transform-reserved-words-7.18.6.tgz", + "integrity": "sha512-oX/4MyMoypzHjFrT1CdivfKZ+XvIPMFXwwxHp/r0Ddy2Vuomt4HDFGmft1TAY2yiTKiNSsh3kjBAzcM8kSdsjA==", + "dev": true, + "dependencies": { + "@babel/helper-plugin-utils": "^7.18.6" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-transform-runtime": { + "version": "7.21.4", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-runtime/-/plugin-transform-runtime-7.21.4.tgz", + "integrity": "sha512-1J4dhrw1h1PqnNNpzwxQ2UBymJUF8KuPjAAnlLwZcGhHAIqUigFW7cdK6GHoB64ubY4qXQNYknoUeks4Wz7CUA==", + "dev": true, + "dependencies": { + "@babel/helper-module-imports": "^7.21.4", + "@babel/helper-plugin-utils": "^7.20.2", + "babel-plugin-polyfill-corejs2": "^0.3.3", + "babel-plugin-polyfill-corejs3": "^0.6.0", + "babel-plugin-polyfill-regenerator": "^0.4.1", + "semver": "^6.3.0" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-transform-runtime/node_modules/semver": { + "version": "6.3.0", + "resolved": "https://registry.npmjs.org/semver/-/semver-6.3.0.tgz", + "integrity": "sha512-b39TBaTSfV6yBrapU89p5fKekE2m/NwnDocOVruQFS1/veMgdzuPcnOM34M6CwxW8jH/lxEa5rBoDeUwu5HHTw==", + "dev": true, + "bin": { + "semver": "bin/semver.js" + } + }, + "node_modules/@babel/plugin-transform-shorthand-properties": { + "version": "7.18.6", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-shorthand-properties/-/plugin-transform-shorthand-properties-7.18.6.tgz", + "integrity": "sha512-eCLXXJqv8okzg86ywZJbRn19YJHU4XUa55oz2wbHhaQVn/MM+XhukiT7SYqp/7o00dg52Rj51Ny+Ecw4oyoygw==", + "dev": true, + "dependencies": { + "@babel/helper-plugin-utils": "^7.18.6" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-transform-spread": { + "version": "7.20.7", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-spread/-/plugin-transform-spread-7.20.7.tgz", + "integrity": "sha512-ewBbHQ+1U/VnH1fxltbJqDeWBU1oNLG8Dj11uIv3xVf7nrQu0bPGe5Rf716r7K5Qz+SqtAOVswoVunoiBtGhxw==", + "dev": true, + "dependencies": { + "@babel/helper-plugin-utils": "^7.20.2", + "@babel/helper-skip-transparent-expression-wrappers": "^7.20.0" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-transform-sticky-regex": { + "version": "7.18.6", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-sticky-regex/-/plugin-transform-sticky-regex-7.18.6.tgz", + "integrity": "sha512-kfiDrDQ+PBsQDO85yj1icueWMfGfJFKN1KCkndygtu/C9+XUfydLC8Iv5UYJqRwy4zk8EcplRxEOeLyjq1gm6Q==", + "dev": true, + "dependencies": { + "@babel/helper-plugin-utils": "^7.18.6" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-transform-template-literals": { + "version": "7.18.9", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-template-literals/-/plugin-transform-template-literals-7.18.9.tgz", + "integrity": "sha512-S8cOWfT82gTezpYOiVaGHrCbhlHgKhQt8XH5ES46P2XWmX92yisoZywf5km75wv5sYcXDUCLMmMxOLCtthDgMA==", + "dev": true, + "dependencies": { + "@babel/helper-plugin-utils": "^7.18.9" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-transform-typeof-symbol": { + "version": "7.18.9", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-typeof-symbol/-/plugin-transform-typeof-symbol-7.18.9.tgz", + "integrity": "sha512-SRfwTtF11G2aemAZWivL7PD+C9z52v9EvMqH9BuYbabyPuKUvSWks3oCg6041pT925L4zVFqaVBeECwsmlguEw==", + "dev": true, + "dependencies": { + "@babel/helper-plugin-utils": "^7.18.9" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-transform-unicode-escapes": { + "version": "7.18.10", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-unicode-escapes/-/plugin-transform-unicode-escapes-7.18.10.tgz", + "integrity": "sha512-kKAdAI+YzPgGY/ftStBFXTI1LZFju38rYThnfMykS+IXy8BVx+res7s2fxf1l8I35DV2T97ezo6+SGrXz6B3iQ==", + "dev": true, + "dependencies": { + "@babel/helper-plugin-utils": "^7.18.9" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-transform-unicode-regex": { + "version": "7.18.6", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-unicode-regex/-/plugin-transform-unicode-regex-7.18.6.tgz", + "integrity": "sha512-gE7A6Lt7YLnNOL3Pb9BNeZvi+d8l7tcRrG4+pwJjK9hD2xX4mEvjlQW60G9EEmfXVYRPv9VRQcyegIVHCql/AA==", + "dev": true, + "dependencies": { + "@babel/helper-create-regexp-features-plugin": "^7.18.6", + "@babel/helper-plugin-utils": "^7.18.6" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/preset-env": { + "version": "7.21.4", + "resolved": "https://registry.npmjs.org/@babel/preset-env/-/preset-env-7.21.4.tgz", + "integrity": "sha512-2W57zHs2yDLm6GD5ZpvNn71lZ0B/iypSdIeq25OurDKji6AdzV07qp4s3n1/x5BqtiGaTrPN3nerlSCaC5qNTw==", + "dev": true, + "dependencies": { + "@babel/compat-data": "^7.21.4", + "@babel/helper-compilation-targets": "^7.21.4", + "@babel/helper-plugin-utils": "^7.20.2", + "@babel/helper-validator-option": "^7.21.0", + "@babel/plugin-bugfix-safari-id-destructuring-collision-in-function-expression": "^7.18.6", + "@babel/plugin-bugfix-v8-spread-parameters-in-optional-chaining": "^7.20.7", + "@babel/plugin-proposal-async-generator-functions": "^7.20.7", + "@babel/plugin-proposal-class-properties": "^7.18.6", + "@babel/plugin-proposal-class-static-block": "^7.21.0", + "@babel/plugin-proposal-dynamic-import": "^7.18.6", + "@babel/plugin-proposal-export-namespace-from": "^7.18.9", + "@babel/plugin-proposal-json-strings": "^7.18.6", + "@babel/plugin-proposal-logical-assignment-operators": "^7.20.7", + "@babel/plugin-proposal-nullish-coalescing-operator": "^7.18.6", + "@babel/plugin-proposal-numeric-separator": "^7.18.6", + "@babel/plugin-proposal-object-rest-spread": "^7.20.7", + "@babel/plugin-proposal-optional-catch-binding": "^7.18.6", + "@babel/plugin-proposal-optional-chaining": "^7.21.0", + "@babel/plugin-proposal-private-methods": "^7.18.6", + "@babel/plugin-proposal-private-property-in-object": "^7.21.0", + "@babel/plugin-proposal-unicode-property-regex": "^7.18.6", + "@babel/plugin-syntax-async-generators": "^7.8.4", + "@babel/plugin-syntax-class-properties": "^7.12.13", + "@babel/plugin-syntax-class-static-block": "^7.14.5", + "@babel/plugin-syntax-dynamic-import": "^7.8.3", + "@babel/plugin-syntax-export-namespace-from": "^7.8.3", + "@babel/plugin-syntax-import-assertions": "^7.20.0", + "@babel/plugin-syntax-json-strings": "^7.8.3", + "@babel/plugin-syntax-logical-assignment-operators": "^7.10.4", + "@babel/plugin-syntax-nullish-coalescing-operator": "^7.8.3", + "@babel/plugin-syntax-numeric-separator": "^7.10.4", + "@babel/plugin-syntax-object-rest-spread": "^7.8.3", + "@babel/plugin-syntax-optional-catch-binding": "^7.8.3", + "@babel/plugin-syntax-optional-chaining": "^7.8.3", + "@babel/plugin-syntax-private-property-in-object": "^7.14.5", + "@babel/plugin-syntax-top-level-await": "^7.14.5", + "@babel/plugin-transform-arrow-functions": "^7.20.7", + "@babel/plugin-transform-async-to-generator": "^7.20.7", + "@babel/plugin-transform-block-scoped-functions": "^7.18.6", + "@babel/plugin-transform-block-scoping": "^7.21.0", + "@babel/plugin-transform-classes": "^7.21.0", + "@babel/plugin-transform-computed-properties": "^7.20.7", + "@babel/plugin-transform-destructuring": "^7.21.3", + "@babel/plugin-transform-dotall-regex": "^7.18.6", + "@babel/plugin-transform-duplicate-keys": "^7.18.9", + "@babel/plugin-transform-exponentiation-operator": "^7.18.6", + "@babel/plugin-transform-for-of": "^7.21.0", + "@babel/plugin-transform-function-name": "^7.18.9", + "@babel/plugin-transform-literals": "^7.18.9", + "@babel/plugin-transform-member-expression-literals": "^7.18.6", + "@babel/plugin-transform-modules-amd": "^7.20.11", + "@babel/plugin-transform-modules-commonjs": "^7.21.2", + "@babel/plugin-transform-modules-systemjs": "^7.20.11", + "@babel/plugin-transform-modules-umd": "^7.18.6", + "@babel/plugin-transform-named-capturing-groups-regex": "^7.20.5", + "@babel/plugin-transform-new-target": "^7.18.6", + "@babel/plugin-transform-object-super": "^7.18.6", + "@babel/plugin-transform-parameters": "^7.21.3", + "@babel/plugin-transform-property-literals": "^7.18.6", + "@babel/plugin-transform-regenerator": "^7.20.5", + "@babel/plugin-transform-reserved-words": "^7.18.6", + "@babel/plugin-transform-shorthand-properties": "^7.18.6", + "@babel/plugin-transform-spread": "^7.20.7", + "@babel/plugin-transform-sticky-regex": "^7.18.6", + "@babel/plugin-transform-template-literals": "^7.18.9", + "@babel/plugin-transform-typeof-symbol": "^7.18.9", + "@babel/plugin-transform-unicode-escapes": "^7.18.10", + "@babel/plugin-transform-unicode-regex": "^7.18.6", + "@babel/preset-modules": "^0.1.5", + "@babel/types": "^7.21.4", + "babel-plugin-polyfill-corejs2": "^0.3.3", + "babel-plugin-polyfill-corejs3": "^0.6.0", + "babel-plugin-polyfill-regenerator": "^0.4.1", + "core-js-compat": "^3.25.1", + "semver": "^6.3.0" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/preset-env/node_modules/semver": { + "version": "6.3.0", + "resolved": "https://registry.npmjs.org/semver/-/semver-6.3.0.tgz", + "integrity": "sha512-b39TBaTSfV6yBrapU89p5fKekE2m/NwnDocOVruQFS1/veMgdzuPcnOM34M6CwxW8jH/lxEa5rBoDeUwu5HHTw==", + "dev": true, + "bin": { + "semver": "bin/semver.js" + } + }, + "node_modules/@babel/preset-modules": { + "version": "0.1.5", + "resolved": "https://registry.npmjs.org/@babel/preset-modules/-/preset-modules-0.1.5.tgz", + "integrity": "sha512-A57th6YRG7oR3cq/yt/Y84MvGgE0eJG2F1JLhKuyG+jFxEgrd/HAMJatiFtmOiZurz+0DkrvbheCLaV5f2JfjA==", + "dev": true, + "dependencies": { + "@babel/helper-plugin-utils": "^7.0.0", + "@babel/plugin-proposal-unicode-property-regex": "^7.4.4", + "@babel/plugin-transform-dotall-regex": "^7.4.4", + "@babel/types": "^7.4.4", + "esutils": "^2.0.2" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/regjsgen": { + "version": "0.8.0", + "resolved": "https://registry.npmjs.org/@babel/regjsgen/-/regjsgen-0.8.0.tgz", + "integrity": "sha512-x/rqGMdzj+fWZvCOYForTghzbtqPDZ5gPwaoNGHdgDfF2QA/XZbCBp4Moo5scrkAMPhB7z26XM/AaHuIJdgauA==", + "dev": true + }, + "node_modules/@babel/runtime": { + "version": "7.21.0", + "resolved": "https://registry.npmjs.org/@babel/runtime/-/runtime-7.21.0.tgz", + "integrity": "sha512-xwII0//EObnq89Ji5AKYQaRYiW/nZ3llSv29d49IuxPhKbtJoLP+9QUUZ4nVragQVtaVGeZrpB+ZtG/Pdy/POw==", + "dev": true, + "dependencies": { + "regenerator-runtime": "^0.13.11" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/template": { + "version": "7.20.7", + "resolved": "https://registry.npmjs.org/@babel/template/-/template-7.20.7.tgz", + "integrity": "sha512-8SegXApWe6VoNw0r9JHpSteLKTpTiLZ4rMlGIm9JQ18KiCtyQiAMEazujAHrUS5flrcqYZa75ukev3P6QmUwUw==", + "dev": true, + "dependencies": { + "@babel/code-frame": "^7.18.6", + "@babel/parser": "^7.20.7", + "@babel/types": "^7.20.7" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/traverse": { + "version": "7.21.4", + "resolved": "https://registry.npmjs.org/@babel/traverse/-/traverse-7.21.4.tgz", + "integrity": "sha512-eyKrRHKdyZxqDm+fV1iqL9UAHMoIg0nDaGqfIOd8rKH17m5snv7Gn4qgjBoFfLz9APvjFU/ICT00NVCv1Epp8Q==", + "dev": true, + "dependencies": { + "@babel/code-frame": "^7.21.4", + "@babel/generator": "^7.21.4", + "@babel/helper-environment-visitor": "^7.18.9", + "@babel/helper-function-name": "^7.21.0", + "@babel/helper-hoist-variables": "^7.18.6", + "@babel/helper-split-export-declaration": "^7.18.6", + "@babel/parser": "^7.21.4", + "@babel/types": "^7.21.4", + "debug": "^4.1.0", + "globals": "^11.1.0" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/types": { + "version": "7.21.4", + "resolved": "https://registry.npmjs.org/@babel/types/-/types-7.21.4.tgz", + "integrity": "sha512-rU2oY501qDxE8Pyo7i/Orqma4ziCOrby0/9mvbDUGEfvZjb279Nk9k19e2fiCxHbRRpY2ZyrgW1eq22mvmOIzA==", + "dev": true, + "dependencies": { + "@babel/helper-string-parser": "^7.19.4", + "@babel/helper-validator-identifier": "^7.19.1", + "to-fast-properties": "^2.0.0" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@brodybits/remark-parse": { + "version": "5.0.1", + "resolved": "https://registry.npmjs.org/@brodybits/remark-parse/-/remark-parse-5.0.1.tgz", + "integrity": "sha512-z4BjfcxegoajMQwIWBewRXVzrEvSQY1rILm7+O57qX9UI4ofCNr+biteNCVMNDv7POleymz6inEIzbCKYX7MVA==", + "dependencies": { + "collapse-white-space": "^1.0.2", + "is-alphabetical": "^1.0.0", + "is-decimal": "^1.0.0", + "is-whitespace-character": "^1.0.0", + "is-word-character": "^1.0.0", + "markdown-escapes": "^1.0.0", + "parse-entities": "^1.1.0", + "repeat-string": "^1.5.4", + "state-toggle": "^1.0.0", + "trim": "0.0.3", + "trim-trailing-lines": "^1.0.0", + "unherit": "^1.0.4", + "unist-util-remove-position": "^1.0.0", + "vfile-location": "^2.0.0", + "xtend": "^4.0.1" + } + }, + "node_modules/@ckeditor/ckeditor5-adapter-ckfinder": { + "version": "35.4.0", + "resolved": "https://registry.npmjs.org/@ckeditor/ckeditor5-adapter-ckfinder/-/ckeditor5-adapter-ckfinder-35.4.0.tgz", + "integrity": "sha512-0o0nkggKYwjx60Ge7GGuJp2jJGwGW9LlAOZEVPTMRG8b/uSzMNLHyCChKeakRO4z7tiopJM6o9Y8sfbDM/nKpA==", + "dependencies": { + "ckeditor5": "^35.4.0" + }, + "engines": { + "node": ">=14.0.0", + "npm": ">=5.7.1" + } + }, + "node_modules/@ckeditor/ckeditor5-alignment": { + "version": "35.4.0", + "resolved": "https://registry.npmjs.org/@ckeditor/ckeditor5-alignment/-/ckeditor5-alignment-35.4.0.tgz", + "integrity": "sha512-hRrP7b5VBsndwxzyNvUpGqTtUsCPDFRWSJq8vk9hk3f0AjioJZE0/rQA9U41dYKZdOKpTXBVrt+3DBMjObV6cQ==", + "dependencies": { + "ckeditor5": "^35.4.0" + }, + "engines": { + "node": ">=14.0.0", + "npm": ">=5.7.1" + } + }, + "node_modules/@ckeditor/ckeditor5-autoformat": { + "version": "35.4.0", + "resolved": "https://registry.npmjs.org/@ckeditor/ckeditor5-autoformat/-/ckeditor5-autoformat-35.4.0.tgz", + "integrity": "sha512-4vAOaoiziR2XN8KmismiBiknCeOYKtskW8yQnSrFWUX3Fkok3KrHaRFr48AbIN4pHI2xTMKPLeMLeRtZd8tTVw==", + "dependencies": { + "ckeditor5": "^35.4.0" + }, + "engines": { + "node": ">=14.0.0", + "npm": ">=5.7.1" + } + }, + "node_modules/@ckeditor/ckeditor5-basic-styles": { + "version": "35.4.0", + "resolved": "https://registry.npmjs.org/@ckeditor/ckeditor5-basic-styles/-/ckeditor5-basic-styles-35.4.0.tgz", + "integrity": "sha512-6JkoplYMwIHN1E/w3DoY0i95B41sbGwsNAtlvx6qaBvNKkLu4rRCtiBUJDnx8qZxxQXHih5ZOw8bUQHl4mt8hw==", + "dependencies": { + "ckeditor5": "^35.4.0" + }, + "engines": { + "node": ">=14.0.0", + "npm": ">=5.7.1" + } + }, + "node_modules/@ckeditor/ckeditor5-block-quote": { + "version": "35.4.0", + "resolved": "https://registry.npmjs.org/@ckeditor/ckeditor5-block-quote/-/ckeditor5-block-quote-35.4.0.tgz", + "integrity": "sha512-AXoJhSVwl/RSelmxqxMcLq0VUXubjEvMc32xvF6CyUkc/vlSkZec6noznXyVo0P5TXOxsFbzwFAdBOSFTFjD+A==", + "dependencies": { + "ckeditor5": "^35.4.0" + }, + "engines": { + "node": ">=14.0.0", + "npm": ">=5.7.1" + } + }, + "node_modules/@ckeditor/ckeditor5-build-balloon": { + "version": "35.4.0", + "resolved": "https://registry.npmjs.org/@ckeditor/ckeditor5-build-balloon/-/ckeditor5-build-balloon-35.4.0.tgz", + "integrity": "sha512-32lyoZvNM9fxq8XzLeE+O18HAfruOFtaEdK/p69Ik3rOzRpsvcK4ne4W8dye3hzUaBfF7qLXUbIr9st7c/UugQ==", + "dependencies": { + "@ckeditor/ckeditor5-adapter-ckfinder": "^35.4.0", + "@ckeditor/ckeditor5-autoformat": "^35.4.0", + "@ckeditor/ckeditor5-basic-styles": "^35.4.0", + "@ckeditor/ckeditor5-block-quote": "^35.4.0", + "@ckeditor/ckeditor5-ckbox": "^35.4.0", + "@ckeditor/ckeditor5-ckfinder": "^35.4.0", + "@ckeditor/ckeditor5-cloud-services": "^35.4.0", + "@ckeditor/ckeditor5-easy-image": "^35.4.0", + "@ckeditor/ckeditor5-editor-balloon": "^35.4.0", + "@ckeditor/ckeditor5-essentials": "^35.4.0", + "@ckeditor/ckeditor5-heading": "^35.4.0", + "@ckeditor/ckeditor5-image": "^35.4.0", + "@ckeditor/ckeditor5-indent": "^35.4.0", + "@ckeditor/ckeditor5-link": "^35.4.0", + "@ckeditor/ckeditor5-list": "^35.4.0", + "@ckeditor/ckeditor5-media-embed": "^35.4.0", + "@ckeditor/ckeditor5-paragraph": "^35.4.0", + "@ckeditor/ckeditor5-paste-from-office": "^35.4.0", + "@ckeditor/ckeditor5-table": "^35.4.0", + "@ckeditor/ckeditor5-typing": "^35.4.0" + }, + "engines": { + "node": ">=14.0.0", + "npm": ">=5.7.1" + } + }, + "node_modules/@ckeditor/ckeditor5-build-balloon-block": { + "version": "35.4.0", + "resolved": "https://registry.npmjs.org/@ckeditor/ckeditor5-build-balloon-block/-/ckeditor5-build-balloon-block-35.4.0.tgz", + "integrity": "sha512-VVq7Jdpum+398Sp8MaAmpjMfFhZvJ9DHRgtz4h4JwnSxgrQ5Mk0+BLZPKCOyQw3cnDeJqgEeSwR2vwg2+5UYyw==", + "dependencies": { + "@ckeditor/ckeditor5-adapter-ckfinder": "^35.4.0", + "@ckeditor/ckeditor5-autoformat": "^35.4.0", + "@ckeditor/ckeditor5-basic-styles": "^35.4.0", + "@ckeditor/ckeditor5-block-quote": "^35.4.0", + "@ckeditor/ckeditor5-ckbox": "^35.4.0", + "@ckeditor/ckeditor5-ckfinder": "^35.4.0", + "@ckeditor/ckeditor5-cloud-services": "^35.4.0", + "@ckeditor/ckeditor5-easy-image": "^35.4.0", + "@ckeditor/ckeditor5-editor-balloon": "^35.4.0", + "@ckeditor/ckeditor5-essentials": "^35.4.0", + "@ckeditor/ckeditor5-heading": "^35.4.0", + "@ckeditor/ckeditor5-image": "^35.4.0", + "@ckeditor/ckeditor5-indent": "^35.4.0", + "@ckeditor/ckeditor5-link": "^35.4.0", + "@ckeditor/ckeditor5-list": "^35.4.0", + "@ckeditor/ckeditor5-media-embed": "^35.4.0", + "@ckeditor/ckeditor5-paragraph": "^35.4.0", + "@ckeditor/ckeditor5-paste-from-office": "^35.4.0", + "@ckeditor/ckeditor5-table": "^35.4.0", + "@ckeditor/ckeditor5-typing": "^35.4.0", + "@ckeditor/ckeditor5-ui": "^35.4.0" + }, + "engines": { + "node": ">=14.0.0", + "npm": ">=5.7.1" + } + }, + "node_modules/@ckeditor/ckeditor5-build-classic": { + "version": "35.4.0", + "resolved": "https://registry.npmjs.org/@ckeditor/ckeditor5-build-classic/-/ckeditor5-build-classic-35.4.0.tgz", + "integrity": "sha512-DDvhtoOggo2B7/M+XPReIkFOvkXzzjTP3d4dzakODIFhZ5Y633U0NlIwTeMP/KVvTfzmesW9FJzER0fbVosQgA==", + "dependencies": { + "@ckeditor/ckeditor5-adapter-ckfinder": "^35.4.0", + "@ckeditor/ckeditor5-autoformat": "^35.4.0", + "@ckeditor/ckeditor5-basic-styles": "^35.4.0", + "@ckeditor/ckeditor5-block-quote": "^35.4.0", + "@ckeditor/ckeditor5-ckbox": "^35.4.0", + "@ckeditor/ckeditor5-ckfinder": "^35.4.0", + "@ckeditor/ckeditor5-cloud-services": "^35.4.0", + "@ckeditor/ckeditor5-easy-image": "^35.4.0", + "@ckeditor/ckeditor5-editor-classic": "^35.4.0", + "@ckeditor/ckeditor5-essentials": "^35.4.0", + "@ckeditor/ckeditor5-heading": "^35.4.0", + "@ckeditor/ckeditor5-image": "^35.4.0", + "@ckeditor/ckeditor5-indent": "^35.4.0", + "@ckeditor/ckeditor5-link": "^35.4.0", + "@ckeditor/ckeditor5-list": "^35.4.0", + "@ckeditor/ckeditor5-media-embed": "^35.4.0", + "@ckeditor/ckeditor5-paragraph": "^35.4.0", + "@ckeditor/ckeditor5-paste-from-office": "^35.4.0", + "@ckeditor/ckeditor5-table": "^35.4.0", + "@ckeditor/ckeditor5-typing": "^35.4.0" + }, + "engines": { + "node": ">=14.0.0", + "npm": ">=5.7.1" + } + }, + "node_modules/@ckeditor/ckeditor5-build-decoupled-document": { + "version": "35.4.0", + "resolved": "https://registry.npmjs.org/@ckeditor/ckeditor5-build-decoupled-document/-/ckeditor5-build-decoupled-document-35.4.0.tgz", + "integrity": "sha512-quVwstkfMuKdO/i3+RcfKoo6N4V8HNmg1tSiSIdYc2GIlb6Vc0Yk9IMdu7tUne4hOAW8fDAcEVPZv7yDxvLh1Q==", + "dependencies": { + "@ckeditor/ckeditor5-adapter-ckfinder": "^35.4.0", + "@ckeditor/ckeditor5-alignment": "^35.4.0", + "@ckeditor/ckeditor5-autoformat": "^35.4.0", + "@ckeditor/ckeditor5-basic-styles": "^35.4.0", + "@ckeditor/ckeditor5-block-quote": "^35.4.0", + "@ckeditor/ckeditor5-ckbox": "^35.4.0", + "@ckeditor/ckeditor5-ckfinder": "^35.4.0", + "@ckeditor/ckeditor5-cloud-services": "^35.4.0", + "@ckeditor/ckeditor5-easy-image": "^35.4.0", + "@ckeditor/ckeditor5-editor-decoupled": "^35.4.0", + "@ckeditor/ckeditor5-essentials": "^35.4.0", + "@ckeditor/ckeditor5-font": "^35.4.0", + "@ckeditor/ckeditor5-heading": "^35.4.0", + "@ckeditor/ckeditor5-image": "^35.4.0", + "@ckeditor/ckeditor5-indent": "^35.4.0", + "@ckeditor/ckeditor5-link": "^35.4.0", + "@ckeditor/ckeditor5-list": "^35.4.0", + "@ckeditor/ckeditor5-media-embed": "^35.4.0", + "@ckeditor/ckeditor5-paragraph": "^35.4.0", + "@ckeditor/ckeditor5-paste-from-office": "^35.4.0", + "@ckeditor/ckeditor5-table": "^35.4.0", + "@ckeditor/ckeditor5-typing": "^35.4.0" + }, + "engines": { + "node": ">=14.0.0", + "npm": ">=5.7.1" + } + }, + "node_modules/@ckeditor/ckeditor5-build-inline": { + "version": "35.4.0", + "resolved": "https://registry.npmjs.org/@ckeditor/ckeditor5-build-inline/-/ckeditor5-build-inline-35.4.0.tgz", + "integrity": "sha512-TdULLd/P9huGlDByFSahxZYByoFxThTAaZgQ6PiW310FlokyM4SOPS8AdhMBEzSqTN9SXrYPZvVAmP/TBxOK/w==", + "dependencies": { + "@ckeditor/ckeditor5-adapter-ckfinder": "^35.4.0", + "@ckeditor/ckeditor5-autoformat": "^35.4.0", + "@ckeditor/ckeditor5-basic-styles": "^35.4.0", + "@ckeditor/ckeditor5-block-quote": "^35.4.0", + "@ckeditor/ckeditor5-ckbox": "^35.4.0", + "@ckeditor/ckeditor5-ckfinder": "^35.4.0", + "@ckeditor/ckeditor5-cloud-services": "^35.4.0", + "@ckeditor/ckeditor5-easy-image": "^35.4.0", + "@ckeditor/ckeditor5-editor-inline": "^35.4.0", + "@ckeditor/ckeditor5-essentials": "^35.4.0", + "@ckeditor/ckeditor5-heading": "^35.4.0", + "@ckeditor/ckeditor5-image": "^35.4.0", + "@ckeditor/ckeditor5-indent": "^35.4.0", + "@ckeditor/ckeditor5-link": "^35.4.0", + "@ckeditor/ckeditor5-list": "^35.4.0", + "@ckeditor/ckeditor5-media-embed": "^35.4.0", + "@ckeditor/ckeditor5-paragraph": "^35.4.0", + "@ckeditor/ckeditor5-paste-from-office": "^35.4.0", + "@ckeditor/ckeditor5-table": "^35.4.0", + "@ckeditor/ckeditor5-typing": "^35.4.0" + }, + "engines": { + "node": ">=14.0.0", + "npm": ">=5.7.1" + } + }, + "node_modules/@ckeditor/ckeditor5-ckbox": { + "version": "35.4.0", + "resolved": "https://registry.npmjs.org/@ckeditor/ckeditor5-ckbox/-/ckeditor5-ckbox-35.4.0.tgz", + "integrity": "sha512-kpEleQLsu3/nyvc46zkWBp3EvvxinnQfmwvi52h+FLbbI0TE0dxadRppQHZjHXd4yw29N6B1ePeMAVFRX1iYjQ==", + "dependencies": { + "ckeditor5": "^35.4.0" + }, + "engines": { + "node": ">=14.0.0", + "npm": ">=5.7.1" + } + }, + "node_modules/@ckeditor/ckeditor5-ckfinder": { + "version": "35.4.0", + "resolved": "https://registry.npmjs.org/@ckeditor/ckeditor5-ckfinder/-/ckeditor5-ckfinder-35.4.0.tgz", + "integrity": "sha512-PeA3PA1c1JGn9f+rZlnWHSuXUU4DjWU4oUp5tMWAtS8OV1srJ2DbU/+Z/WZHO4jmDMfQX9XmN5B/sdLvTQ7ZjQ==", + "dependencies": { + "ckeditor5": "^35.4.0" + }, + "engines": { + "node": ">=14.0.0", + "npm": ">=5.7.1" + } + }, + "node_modules/@ckeditor/ckeditor5-clipboard": { + "version": "35.4.0", + "resolved": "https://registry.npmjs.org/@ckeditor/ckeditor5-clipboard/-/ckeditor5-clipboard-35.4.0.tgz", + "integrity": "sha512-B6rIQxvOrHvO9TZRC8JA0wKk+IfN880UJkYIg1qlhf9HFNVjdVbtHaiCsPD+TzGmQN3XHXfNjgjabGRIn0iZmw==", + "dependencies": { + "@ckeditor/ckeditor5-core": "^35.4.0", + "@ckeditor/ckeditor5-engine": "^35.4.0", + "@ckeditor/ckeditor5-utils": "^35.4.0", + "@ckeditor/ckeditor5-widget": "^35.4.0", + "lodash-es": "^4.17.11" + }, + "engines": { + "node": ">=14.0.0", + "npm": ">=5.7.1" + } + }, + "node_modules/@ckeditor/ckeditor5-cloud-services": { + "version": "35.4.0", + "resolved": "https://registry.npmjs.org/@ckeditor/ckeditor5-cloud-services/-/ckeditor5-cloud-services-35.4.0.tgz", + "integrity": "sha512-iavLfEKx0GVPMIyPnnOlD9TCVVLIrwp1dCQAfO3A7WUySiLBcC7ShJ+6Bm00CVQQE6VtrYOevrKN/RcRzImzHw==", + "dependencies": { + "ckeditor5": "^35.4.0" + }, + "engines": { + "node": ">=14.0.0", + "npm": ">=5.7.1" + } + }, + "node_modules/@ckeditor/ckeditor5-core": { + "version": "35.4.0", + "resolved": "https://registry.npmjs.org/@ckeditor/ckeditor5-core/-/ckeditor5-core-35.4.0.tgz", + "integrity": "sha512-Rf0H7C4inCj/YC8aii0cT7TC/IuBIQ+tXmu9qd8/1BJ/rz1MCHXtBPApjTbFp33OE3aOFB5+NUaKt05k/dL3OA==", + "dependencies": { + "@ckeditor/ckeditor5-engine": "^35.4.0", + "@ckeditor/ckeditor5-ui": "^35.4.0", + "@ckeditor/ckeditor5-utils": "^35.4.0", + "lodash-es": "^4.17.15" + }, + "engines": { + "node": ">=14.0.0", + "npm": ">=5.7.1" + } + }, + "node_modules/@ckeditor/ckeditor5-easy-image": { + "version": "35.4.0", + "resolved": "https://registry.npmjs.org/@ckeditor/ckeditor5-easy-image/-/ckeditor5-easy-image-35.4.0.tgz", + "integrity": "sha512-DRCQ/zh2Ul0f7RrSBG3WYKnZbrU2jj1RazX4qZM1b1WlM81y7+i+Rnp209JIT9TnlrTdYJy2EUY17YHughuyzA==", + "dependencies": { + "ckeditor5": "^35.4.0" + }, + "engines": { + "node": ">=14.0.0", + "npm": ">=5.7.1" + } + }, + "node_modules/@ckeditor/ckeditor5-editor-balloon": { + "version": "35.4.0", + "resolved": "https://registry.npmjs.org/@ckeditor/ckeditor5-editor-balloon/-/ckeditor5-editor-balloon-35.4.0.tgz", + "integrity": "sha512-xKnqB6vl5DXDS25AOWxBTsAeOqtIeW1m4iOn+ZFqCNBsoVcw1Z7B4mnryYgioVhyf0JHnMm+AigsH/uUPOLbNQ==", + "dependencies": { + "ckeditor5": "^35.4.0", + "lodash-es": "^4.17.15" + }, + "engines": { + "node": ">=14.0.0", + "npm": ">=5.7.1" + } + }, + "node_modules/@ckeditor/ckeditor5-editor-classic": { + "version": "35.4.0", + "resolved": "https://registry.npmjs.org/@ckeditor/ckeditor5-editor-classic/-/ckeditor5-editor-classic-35.4.0.tgz", + "integrity": "sha512-EqAqFD/5oPtDMU2AoH3eJaDplcS8MxfkiRQ5hzeC1JeIPT94w5FCHnB4SAkjLPDnlyZnBWOOYdZSuln2TRIbEw==", + "dependencies": { + "ckeditor5": "^35.4.0", + "lodash-es": "^4.17.15" + }, + "engines": { + "node": ">=14.0.0", + "npm": ">=5.7.1" + } + }, + "node_modules/@ckeditor/ckeditor5-editor-decoupled": { + "version": "35.4.0", + "resolved": "https://registry.npmjs.org/@ckeditor/ckeditor5-editor-decoupled/-/ckeditor5-editor-decoupled-35.4.0.tgz", + "integrity": "sha512-+edFHimxt60u9XnD4AitZGU8+dshthvlftbpD8Qi3aXwZ9SuIoYdi3fe4ufRgtdkcJT2qLKWghyKPLatCqM1tg==", + "dependencies": { + "ckeditor5": "^35.4.0", + "lodash-es": "^4.17.15" + }, + "engines": { + "node": ">=14.0.0", + "npm": ">=5.7.1" + } + }, + "node_modules/@ckeditor/ckeditor5-editor-inline": { + "version": "35.4.0", + "resolved": "https://registry.npmjs.org/@ckeditor/ckeditor5-editor-inline/-/ckeditor5-editor-inline-35.4.0.tgz", + "integrity": "sha512-BMgoALCBBvqiT8Y2STK17aS5oaxsRo2QmGW7vnW07DriFXDJUGusZDA49jr+bgHod/LAcmsNtzmtr//fzOPMYw==", + "dependencies": { + "ckeditor5": "^35.4.0", + "lodash-es": "^4.17.15" + }, + "engines": { + "node": ">=14.0.0", + "npm": ">=5.7.1" + } + }, + "node_modules/@ckeditor/ckeditor5-engine": { + "version": "35.4.0", + "resolved": "https://registry.npmjs.org/@ckeditor/ckeditor5-engine/-/ckeditor5-engine-35.4.0.tgz", + "integrity": "sha512-67QKtUGJeLM072h9qURvzczYGU3ecuxR9LLmM4dffnV+PBNQ9e8RDCY7PuuEP0pplmAUI6/XqoZJIbk6h7ZV3Q==", + "dependencies": { + "@ckeditor/ckeditor5-utils": "^35.4.0", + "lodash-es": "^4.17.15" + }, + "engines": { + "node": ">=14.0.0", + "npm": ">=5.7.1" + } + }, + "node_modules/@ckeditor/ckeditor5-enter": { + "version": "35.4.0", + "resolved": "https://registry.npmjs.org/@ckeditor/ckeditor5-enter/-/ckeditor5-enter-35.4.0.tgz", + "integrity": "sha512-y95RnA/Gw72e220PJKVwNbwPzX4SRs82/rXu1jVyJXty7CcEZqqfyRtW6odICAXr5eKI5XKgzFgpFYULL3D9Nw==", + "dependencies": { + "@ckeditor/ckeditor5-core": "^35.4.0", + "@ckeditor/ckeditor5-engine": "^35.4.0" + }, + "engines": { + "node": ">=14.0.0", + "npm": ">=5.7.1" + } + }, + "node_modules/@ckeditor/ckeditor5-essentials": { + "version": "35.4.0", + "resolved": "https://registry.npmjs.org/@ckeditor/ckeditor5-essentials/-/ckeditor5-essentials-35.4.0.tgz", + "integrity": "sha512-tTtTb4NYSQi99LPDzAVUnFhW6iTqSuaylkg0XnDvO2lVR3tAA27gOOjGqc8Ri9NMGGeZkFTvXpnVkXkFnDP2nQ==", + "dependencies": { + "ckeditor5": "^35.4.0" + }, + "engines": { + "node": ">=14.0.0", + "npm": ">=5.7.1" + } + }, + "node_modules/@ckeditor/ckeditor5-font": { + "version": "35.4.0", + "resolved": "https://registry.npmjs.org/@ckeditor/ckeditor5-font/-/ckeditor5-font-35.4.0.tgz", + "integrity": "sha512-eCXrssQKy+1kUM6LaRk7lGCam99sruJKnIofu3/mCfYaoIJUCHX0Zzk+uDijH0AOSCH0+EwaLTajQwXrbBZrhg==", + "dependencies": { + "ckeditor5": "^35.4.0" + }, + "engines": { + "node": ">=14.0.0", + "npm": ">=5.7.1" + } + }, + "node_modules/@ckeditor/ckeditor5-heading": { + "version": "35.4.0", + "resolved": "https://registry.npmjs.org/@ckeditor/ckeditor5-heading/-/ckeditor5-heading-35.4.0.tgz", + "integrity": "sha512-cZwKzAg0USxaDZstQXKMkzrE+fOEr+6YFtXpHGrKgsaisI9xkuOWD40dZvLovTmENLGPopDkdfGewj8jscB9Kg==", + "dependencies": { + "ckeditor5": "^35.4.0" + }, + "engines": { + "node": ">=14.0.0", + "npm": ">=5.7.1" + } + }, + "node_modules/@ckeditor/ckeditor5-image": { + "version": "35.4.0", + "resolved": "https://registry.npmjs.org/@ckeditor/ckeditor5-image/-/ckeditor5-image-35.4.0.tgz", + "integrity": "sha512-SQ+IiIB6SLhdhVy3gRKxxfBXpLikInvaP3ILOvPQlaC0Bt5ciJ3t/180zCBlbCvvRwIQNo4bYbZc5cI8UBIAaA==", + "dependencies": { + "@ckeditor/ckeditor5-ui": "^35.4.0", + "ckeditor5": "^35.4.0", + "lodash-es": "^4.17.15" + }, + "engines": { + "node": ">=14.0.0", + "npm": ">=5.7.1" + } + }, + "node_modules/@ckeditor/ckeditor5-indent": { + "version": "35.4.0", + "resolved": "https://registry.npmjs.org/@ckeditor/ckeditor5-indent/-/ckeditor5-indent-35.4.0.tgz", + "integrity": "sha512-FNp5S6t/RlY4eARR4E/jzxqjAbsGMa+30ZKS9maTOCx0TDmvmjD0jvZc9+1fe/KzSBk9wtmHYOil1J+W66rKvw==", + "dependencies": { + "ckeditor5": "^35.4.0" + }, + "engines": { + "node": ">=14.0.0", + "npm": ">=5.7.1" + } + }, + "node_modules/@ckeditor/ckeditor5-link": { + "version": "35.4.0", + "resolved": "https://registry.npmjs.org/@ckeditor/ckeditor5-link/-/ckeditor5-link-35.4.0.tgz", + "integrity": "sha512-aqHFwlnGyjW/fp/fklD1VupYLsfbvSwsh9RFGIdgJL4TuWnlhxR5JXCOAKyZtvCWpdyuKyqzEB8EV0NQAa+OMg==", + "dependencies": { + "@ckeditor/ckeditor5-ui": "^35.4.0", + "ckeditor5": "^35.4.0", + "lodash-es": "^4.17.15" + }, + "engines": { + "node": ">=14.0.0", + "npm": ">=5.7.1" + } + }, + "node_modules/@ckeditor/ckeditor5-list": { + "version": "35.4.0", + "resolved": "https://registry.npmjs.org/@ckeditor/ckeditor5-list/-/ckeditor5-list-35.4.0.tgz", + "integrity": "sha512-fPENWzEicpoXZsDmGR6EiR/j3Z4Q3KYAsBMsmWf8YwUlbM/hERt+V3yIB+LKdGQKbFrL6CWOA1JBB4tmmwd50A==", + "dependencies": { + "@ckeditor/ckeditor5-ui": "^35.4.0", + "ckeditor5": "^35.4.0" + }, + "engines": { + "node": ">=14.0.0", + "npm": ">=5.7.1" + } + }, + "node_modules/@ckeditor/ckeditor5-media-embed": { + "version": "35.4.0", + "resolved": "https://registry.npmjs.org/@ckeditor/ckeditor5-media-embed/-/ckeditor5-media-embed-35.4.0.tgz", + "integrity": "sha512-So+BYkI82pdIGP2VQ+b+gstEOnHLHA9yBX94pTJM9eW1O+ZTPMR1t2wJFFmEbCjQUYDVC8SdGUGaOb1gaeVXiw==", + "dependencies": { + "@ckeditor/ckeditor5-ui": "^35.4.0", + "ckeditor5": "^35.4.0" + }, + "engines": { + "node": ">=14.0.0", + "npm": ">=5.7.1" + } + }, + "node_modules/@ckeditor/ckeditor5-paragraph": { + "version": "35.4.0", + "resolved": "https://registry.npmjs.org/@ckeditor/ckeditor5-paragraph/-/ckeditor5-paragraph-35.4.0.tgz", + "integrity": "sha512-8nhkEEFv1WClhH6q/HW8P596d+dlatSVc46kQ2+jGlYirL8P66tV/nK+OiE8z1d897oVr4QPGsqk2qGkRFUChw==", + "dependencies": { + "@ckeditor/ckeditor5-core": "^35.4.0", + "@ckeditor/ckeditor5-ui": "^35.4.0", + "@ckeditor/ckeditor5-utils": "^35.4.0" + }, + "engines": { + "node": ">=14.0.0", + "npm": ">=5.7.1" + } + }, + "node_modules/@ckeditor/ckeditor5-paste-from-office": { + "version": "35.4.0", + "resolved": "https://registry.npmjs.org/@ckeditor/ckeditor5-paste-from-office/-/ckeditor5-paste-from-office-35.4.0.tgz", + "integrity": "sha512-Uav1z9t52+qcu1axykcZ/NeH7JnURuZF9l0o+Pq/sNg3zjzVqB92V5cvFXg9hXeod8LzxlNLHy1BR8ZWTHeKHQ==", + "dependencies": { + "ckeditor5": "^35.4.0" + }, + "engines": { + "node": ">=14.0.0", + "npm": ">=5.7.1" + } + }, + "node_modules/@ckeditor/ckeditor5-select-all": { + "version": "35.4.0", + "resolved": "https://registry.npmjs.org/@ckeditor/ckeditor5-select-all/-/ckeditor5-select-all-35.4.0.tgz", + "integrity": "sha512-c+pIIY77SP6ux4/cyD7cCrllQAqtFVSnzNYdy7ygNPqljCGngCnpSV9xfCO/blFo6/zx2vsmzVGdRq3ArzGoMg==", + "dependencies": { + "@ckeditor/ckeditor5-core": "^35.4.0", + "@ckeditor/ckeditor5-ui": "^35.4.0", + "@ckeditor/ckeditor5-utils": "^35.4.0" + }, + "engines": { + "node": ">=14.0.0", + "npm": ">=5.7.1" + } + }, + "node_modules/@ckeditor/ckeditor5-table": { + "version": "35.4.0", + "resolved": "https://registry.npmjs.org/@ckeditor/ckeditor5-table/-/ckeditor5-table-35.4.0.tgz", + "integrity": "sha512-u2g3CIqXO7ByrfFVqlHagPssta8hd/zSE37CjFuylc5KYVmMxcuh3TiFirKaladH92/3gjfnf+GWEC5X14mA8w==", + "dependencies": { + "ckeditor5": "^35.4.0", + "lodash-es": "^4.17.15" + }, + "engines": { + "node": ">=14.0.0", + "npm": ">=5.7.1" + } + }, + "node_modules/@ckeditor/ckeditor5-typing": { + "version": "35.4.0", + "resolved": "https://registry.npmjs.org/@ckeditor/ckeditor5-typing/-/ckeditor5-typing-35.4.0.tgz", + "integrity": "sha512-Ad/PHWbVWcnAj9oevkkfLqf6CmvCFOti466uhvfOCKRNVf2+/xuGwleOGr8W6Lir/x/qav7ojFjKPKDxqbPXhA==", + "dependencies": { + "@ckeditor/ckeditor5-core": "^35.4.0", + "@ckeditor/ckeditor5-engine": "^35.4.0", + "@ckeditor/ckeditor5-utils": "^35.4.0", + "lodash-es": "^4.17.15" + }, + "engines": { + "node": ">=14.0.0", + "npm": ">=5.7.1" + } + }, + "node_modules/@ckeditor/ckeditor5-ui": { + "version": "35.4.0", + "resolved": "https://registry.npmjs.org/@ckeditor/ckeditor5-ui/-/ckeditor5-ui-35.4.0.tgz", + "integrity": "sha512-0SmYE+k1cYQPqyw2rQsPDV/RpudneBh1bNfiaTOz+rqViJIMe+TxiuK6Fz+znNZ05s0exr+ZHWvMttGqlVoQNw==", + "dependencies": { + "@ckeditor/ckeditor5-core": "^35.4.0", + "@ckeditor/ckeditor5-utils": "^35.4.0", + "lodash-es": "^4.17.15" + }, + "engines": { + "node": ">=14.0.0", + "npm": ">=5.7.1" + } + }, + "node_modules/@ckeditor/ckeditor5-undo": { + "version": "35.4.0", + "resolved": "https://registry.npmjs.org/@ckeditor/ckeditor5-undo/-/ckeditor5-undo-35.4.0.tgz", + "integrity": "sha512-0RhsK0f/pX/7KB/JXYTLiDOswmUTQ9EKIIuewAwr7LTsBf4Q309FZSFdbeTmc0wIyX33212Xh5xsi3LyG1VJRg==", + "dependencies": { + "@ckeditor/ckeditor5-core": "^35.4.0", + "@ckeditor/ckeditor5-engine": "^35.4.0", + "@ckeditor/ckeditor5-ui": "^35.4.0" + }, + "engines": { + "node": ">=14.0.0", + "npm": ">=5.7.1" + } + }, + "node_modules/@ckeditor/ckeditor5-upload": { + "version": "35.4.0", + "resolved": "https://registry.npmjs.org/@ckeditor/ckeditor5-upload/-/ckeditor5-upload-35.4.0.tgz", + "integrity": "sha512-+eJAluAc4mAFmx5FNuSGjkCYmbm0V9NpSleubAXEx2e+KNiLarPAnsolwRaAcYXcloNp4C9/l0D+lPEx7VRYtg==", + "dependencies": { + "@ckeditor/ckeditor5-core": "^35.4.0", + "@ckeditor/ckeditor5-ui": "^35.4.0", + "@ckeditor/ckeditor5-utils": "^35.4.0" + }, + "engines": { + "node": ">=14.0.0", + "npm": ">=5.7.1" + } + }, + "node_modules/@ckeditor/ckeditor5-utils": { + "version": "35.4.0", + "resolved": "https://registry.npmjs.org/@ckeditor/ckeditor5-utils/-/ckeditor5-utils-35.4.0.tgz", + "integrity": "sha512-sFjbb+1VYdLbELDLWVYk86WzVN7Lo3sXHbVhdr8+kc0Ufxdr3mTFHDAkiymFt2fs1FOB5gZyWJlJU+EeJnhKUw==", + "dependencies": { + "lodash-es": "^4.17.15" + }, + "engines": { + "node": ">=14.0.0", + "npm": ">=5.7.1" + } + }, + "node_modules/@ckeditor/ckeditor5-widget": { + "version": "35.4.0", + "resolved": "https://registry.npmjs.org/@ckeditor/ckeditor5-widget/-/ckeditor5-widget-35.4.0.tgz", + "integrity": "sha512-SNYOXXWu7XV1BZET+ar0Cea25836vzNtUqXlDPwBx/jrmK86b8GMbFR99P2bUG0NvtIsH5cSk7XCmnxb4ZQ6wA==", + "dependencies": { + "@ckeditor/ckeditor5-core": "^35.4.0", + "@ckeditor/ckeditor5-engine": "^35.4.0", + "@ckeditor/ckeditor5-enter": "^35.4.0", + "@ckeditor/ckeditor5-typing": "^35.4.0", + "@ckeditor/ckeditor5-ui": "^35.4.0", + "@ckeditor/ckeditor5-utils": "^35.4.0", + "lodash-es": "^4.17.15" + }, + "engines": { + "node": ">=14.0.0", + "npm": ">=5.7.1" + } + }, + "node_modules/@colors/colors": { + "version": "1.5.0", + "resolved": "https://registry.npmjs.org/@colors/colors/-/colors-1.5.0.tgz", + "integrity": "sha512-ooWCrlZP11i8GImSjTHYHLkvFDP48nS4+204nGb1RiX/WXYHmJA2III9/e2DWVabCESdW7hBAEzHRqUn9OUVvQ==", + "optional": true, + "engines": { + "node": ">=0.1.90" + } + }, + "node_modules/@discoveryjs/json-ext": { + "version": "0.5.7", + "resolved": "https://registry.npmjs.org/@discoveryjs/json-ext/-/json-ext-0.5.7.tgz", + "integrity": "sha512-dBVuXR082gk3jsFp7Rd/JI4kytwGHecnCoTtXFb7DB6CNHp4rg5k1bhg0nWdLGLnOV71lmDzGQaLMy8iPLY0pw==", + "dev": true, + "engines": { + "node": ">=10.0.0" + } + }, + "node_modules/@egjs/hammerjs": { + "version": "2.0.17", + "resolved": "https://registry.npmjs.org/@egjs/hammerjs/-/hammerjs-2.0.17.tgz", + "integrity": "sha512-XQsZgjm2EcVUiZQf11UBJQfmZeEmOW8DpI1gsFeln6w0ae0ii4dMQEQ0kjl6DspdWX1aGY1/loyXnP0JS06e/A==", + "peer": true, + "dependencies": { + "@types/hammerjs": "^2.0.36" + }, + "engines": { + "node": ">=0.8.0" + } + }, + "node_modules/@eonasdan/tempus-dominus": { + "version": "6.4.4", + "resolved": "https://registry.npmjs.org/@eonasdan/tempus-dominus/-/tempus-dominus-6.4.4.tgz", + "integrity": "sha512-QPxUlu+ZaJR0sERiKx1dRDxuq1NJh1jSZqf+IB7ZNG8CXBL7wOBsYAYEwSu6web3KGdzWlxfRmpgzwtR3EFgSg==", + "funding": { + "url": "https://ko-fi.com/eonasdan" + }, + "peerDependencies": { + "@popperjs/core": "^2.11.6" + }, + "peerDependenciesMeta": { + "@popperjs/core\"": { + "optional": true + } + } + }, + "node_modules/@foliojs-fork/fontkit": { + "version": "1.9.1", + "resolved": "https://registry.npmjs.org/@foliojs-fork/fontkit/-/fontkit-1.9.1.tgz", + "integrity": "sha512-U589voc2/ROnvx1CyH9aNzOQWJp127JGU1QAylXGQ7LoEAF6hMmahZLQ4eqAcgHUw+uyW4PjtCItq9qudPkK3A==", + "dependencies": { + "@foliojs-fork/restructure": "^2.0.2", + "brfs": "^2.0.0", + "brotli": "^1.2.0", + "browserify-optional": "^1.0.1", + "clone": "^1.0.4", + "deep-equal": "^1.0.0", + "dfa": "^1.2.0", + "tiny-inflate": "^1.0.2", + "unicode-properties": "^1.2.2", + "unicode-trie": "^2.0.0" + } + }, + "node_modules/@foliojs-fork/linebreak": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/@foliojs-fork/linebreak/-/linebreak-1.1.1.tgz", + "integrity": "sha512-pgY/+53GqGQI+mvDiyprvPWgkTlVBS8cxqee03ejm6gKAQNsR1tCYCIvN9FHy7otZajzMqCgPOgC4cHdt4JPig==", + "dependencies": { + "base64-js": "1.3.1", + "brfs": "^2.0.2", + "unicode-trie": "^2.0.0" + } + }, + "node_modules/@foliojs-fork/linebreak/node_modules/base64-js": { + "version": "1.3.1", + "resolved": "https://registry.npmjs.org/base64-js/-/base64-js-1.3.1.tgz", + "integrity": "sha512-mLQ4i2QO1ytvGWFWmcngKO//JXAQueZvwEKtjgQFM4jIK0kU+ytMfplL8j+n5mspOfjHwoAg+9yhb7BwAHm36g==" + }, + "node_modules/@foliojs-fork/pdfkit": { + "version": "0.13.0", + "resolved": "https://registry.npmjs.org/@foliojs-fork/pdfkit/-/pdfkit-0.13.0.tgz", + "integrity": "sha512-YXeG1fml9k97YNC9K8e292Pj2JzGt9uOIiBFuQFxHsdQ45BlxW+JU3RQK6JAvXU7kjhjP8rCcYvpk36JLD33sQ==", + "dependencies": { + "@foliojs-fork/fontkit": "^1.9.1", + "@foliojs-fork/linebreak": "^1.1.1", + "crypto-js": "^4.0.0", + "png-js": "^1.0.0" + } + }, + "node_modules/@foliojs-fork/restructure": { + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/@foliojs-fork/restructure/-/restructure-2.0.2.tgz", + "integrity": "sha512-59SgoZ3EXbkfSX7b63tsou/SDGzwUEK6MuB5sKqgVK1/XE0fxmpsOb9DQI8LXW3KfGnAjImCGhhEb7uPPAUVNA==" + }, + "node_modules/@fortawesome/fontawesome-free": { + "version": "6.4.0", + "resolved": "https://registry.npmjs.org/@fortawesome/fontawesome-free/-/fontawesome-free-6.4.0.tgz", + "integrity": "sha512-0NyytTlPJwB/BF5LtRV8rrABDbe3TdTXqNB3PdZ+UUUZAEIrdOJdmABqKjt4AXwIoJNaRVVZEXxpNrqvE1GAYQ==", + "hasInstallScript": true, + "engines": { + "node": ">=6" + } + }, + "node_modules/@fullhuman/postcss-purgecss": { + "version": "3.1.3", + "resolved": "https://registry.npmjs.org/@fullhuman/postcss-purgecss/-/postcss-purgecss-3.1.3.tgz", + "integrity": "sha512-kwOXw8fZ0Lt1QmeOOrd+o4Ibvp4UTEBFQbzvWldjlKv5n+G9sXfIPn1hh63IQIL8K8vbvv1oYMJiIUbuy9bGaA==", + "dev": true, + "dependencies": { + "purgecss": "^3.1.3" + } + }, + "node_modules/@glimmer/env": { + "version": "0.1.7", + "resolved": "https://registry.npmjs.org/@glimmer/env/-/env-0.1.7.tgz", + "integrity": "sha512-JKF/a9I9jw6fGoz8kA7LEQslrwJ5jms5CXhu/aqkBWk+PmZ6pTl8mlb/eJ/5ujBGTiQzBhy5AIWF712iA+4/mw==" + }, + "node_modules/@glimmer/interfaces": { + "version": "0.56.2", + "resolved": "https://registry.npmjs.org/@glimmer/interfaces/-/interfaces-0.56.2.tgz", + "integrity": "sha512-nRgcsTuyZ90aEoCuYVHKGDs3LpAv9n/JKiJ6iecpEYtyGgcPqSI3GjrJRl6k+1s5wnldEH1kjWq+ccCiXmA99w==", + "dependencies": { + "@simple-dom/interface": "^1.4.0" + } + }, + "node_modules/@glimmer/syntax": { + "version": "0.56.2", + "resolved": "https://registry.npmjs.org/@glimmer/syntax/-/syntax-0.56.2.tgz", + "integrity": "sha512-saoBoLKYEFtcCdBes/eO4QNE/XXJBfEHo2TEVOzKjpc9kIhRKtBZ6Vn9Z1iZBGi+7Mxti83JxvRWKz2ptZd+jQ==", + "dependencies": { + "@glimmer/interfaces": "^0.56.2", + "@glimmer/util": "^0.56.2", + "handlebars": "^4.7.4", + "simple-html-tokenizer": "^0.5.9" + } + }, + "node_modules/@glimmer/util": { + "version": "0.56.2", + "resolved": "https://registry.npmjs.org/@glimmer/util/-/util-0.56.2.tgz", + "integrity": "sha512-AljXCX5HBjJkmNt4DNYmJmVvwqKjFF4lU6e0SBftwhzK85RbETYwpb3YWrghcjSCxoodwIu1zNFiKOA+xD6txw==", + "dependencies": { + "@glimmer/env": "0.1.7", + "@glimmer/interfaces": "^0.56.2", + "@simple-dom/interface": "^1.4.0" + } + }, + "node_modules/@iarna/toml": { + "version": "2.2.5", + "resolved": "https://registry.npmjs.org/@iarna/toml/-/toml-2.2.5.tgz", + "integrity": "sha512-trnsAYxU3xnS1gPHPyU961coFyLkh4gAD/0zQ5mymY4yOZ+CYvsPqUbOFSw0aDM4y0tV7tiFxL/1XfXPNC6IPg==" + }, + "node_modules/@jridgewell/gen-mapping": { + "version": "0.3.3", + "resolved": "https://registry.npmjs.org/@jridgewell/gen-mapping/-/gen-mapping-0.3.3.tgz", + "integrity": "sha512-HLhSWOLRi875zjjMG/r+Nv0oCW8umGb0BgEhyX3dDX3egwZtB8PqLnjz3yedt8R5StBrzcg4aBpnh8UA9D1BoQ==", + "dev": true, + "dependencies": { + "@jridgewell/set-array": "^1.0.1", + "@jridgewell/sourcemap-codec": "^1.4.10", + "@jridgewell/trace-mapping": "^0.3.9" + }, + "engines": { + "node": ">=6.0.0" + } + }, + "node_modules/@jridgewell/resolve-uri": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/@jridgewell/resolve-uri/-/resolve-uri-3.1.0.tgz", + "integrity": "sha512-F2msla3tad+Mfht5cJq7LSXcdudKTWCVYUgw6pLFOOHSTtZlj6SWNYAp+AhuqLmWdBO2X5hPrLcu8cVP8fy28w==", + "dev": true, + "engines": { + "node": ">=6.0.0" + } + }, + "node_modules/@jridgewell/set-array": { + "version": "1.1.2", + "resolved": "https://registry.npmjs.org/@jridgewell/set-array/-/set-array-1.1.2.tgz", + "integrity": "sha512-xnkseuNADM0gt2bs+BvhO0p78Mk762YnZdsuzFV018NoG1Sj1SCQvpSqa7XUaTam5vAGasABV9qXASMKnFMwMw==", + "dev": true, + "engines": { + "node": ">=6.0.0" + } + }, + "node_modules/@jridgewell/source-map": { + "version": "0.3.3", + "resolved": "https://registry.npmjs.org/@jridgewell/source-map/-/source-map-0.3.3.tgz", + "integrity": "sha512-b+fsZXeLYi9fEULmfBrhxn4IrPlINf8fiNarzTof004v3lFdntdwa9PF7vFJqm3mg7s+ScJMxXaE3Acp1irZcg==", + "dev": true, + "dependencies": { + "@jridgewell/gen-mapping": "^0.3.0", + "@jridgewell/trace-mapping": "^0.3.9" + } + }, + "node_modules/@jridgewell/sourcemap-codec": { + "version": "1.4.15", + "resolved": "https://registry.npmjs.org/@jridgewell/sourcemap-codec/-/sourcemap-codec-1.4.15.tgz", + "integrity": "sha512-eF2rxCRulEKXHTRiDrDy6erMYWqNw4LPdQ8UQA4huuxaQsVeRPFl2oM8oDGxMFhJUWZf9McpLtJasDDZb/Bpeg==", + "dev": true + }, + "node_modules/@jridgewell/trace-mapping": { + "version": "0.3.18", + "resolved": "https://registry.npmjs.org/@jridgewell/trace-mapping/-/trace-mapping-0.3.18.tgz", + "integrity": "sha512-w+niJYzMHdd7USdiH2U6869nqhD2nbfZXND5Yp93qIbEmnDNk7PD48o+YchRVpzMU7M6jVCbenTR7PA1FLQ9pA==", + "dev": true, + "dependencies": { + "@jridgewell/resolve-uri": "3.1.0", + "@jridgewell/sourcemap-codec": "1.4.14" + } + }, + "node_modules/@jridgewell/trace-mapping/node_modules/@jridgewell/sourcemap-codec": { + "version": "1.4.14", + "resolved": "https://registry.npmjs.org/@jridgewell/sourcemap-codec/-/sourcemap-codec-1.4.14.tgz", + "integrity": "sha512-XPSJHWmi394fuUuzDnGz1wiKqWfo1yXecHQMRf2l6hztTO+nPru658AyDngaBe7isIxEkRsPR3FZh+s7iVa4Uw==", + "dev": true + }, + "node_modules/@leichtgewicht/ip-codec": { + "version": "2.0.4", + "resolved": "https://registry.npmjs.org/@leichtgewicht/ip-codec/-/ip-codec-2.0.4.tgz", + "integrity": "sha512-Hcv+nVC0kZnQ3tD9GVu5xSMR4VVYOteQIr/hwFPVEvPdlXqgGEuRjiheChHgdM+JyqdgNcmzZOX/tnl0JOiI7A==", + "dev": true + }, + "node_modules/@nodelib/fs.scandir": { + "version": "2.1.5", + "resolved": "https://registry.npmjs.org/@nodelib/fs.scandir/-/fs.scandir-2.1.5.tgz", + "integrity": "sha512-vq24Bq3ym5HEQm2NKCr3yXDwjc7vTsEThRDnkp2DK9p1uqLR+DHurm/NOTo0KG7HYHU7eppKZj3MyqYuMBf62g==", + "dependencies": { + "@nodelib/fs.stat": "2.0.5", + "run-parallel": "^1.1.9" + }, + "engines": { + "node": ">= 8" + } + }, + "node_modules/@nodelib/fs.stat": { + "version": "2.0.5", + "resolved": "https://registry.npmjs.org/@nodelib/fs.stat/-/fs.stat-2.0.5.tgz", + "integrity": "sha512-RkhPPp2zrqDAQA/2jNhnztcPAlv64XdhIp7a7454A5ovI7Bukxgt7MX7udwAu3zg1DcpPU0rz3VV1SeaqvY4+A==", + "engines": { + "node": ">= 8" + } + }, + "node_modules/@nodelib/fs.walk": { + "version": "1.2.8", + "resolved": "https://registry.npmjs.org/@nodelib/fs.walk/-/fs.walk-1.2.8.tgz", + "integrity": "sha512-oGB+UxlgWcgQkgwo8GcEGwemoTFt3FIO9ababBmaGwXIoBKZ+GTy0pP185beGg7Llih/NSHSV2XAs1lnznocSg==", + "dependencies": { + "@nodelib/fs.scandir": "2.1.5", + "fastq": "^1.6.0" + }, + "engines": { + "node": ">= 8" + } + }, + "node_modules/@popperjs/core": { + "version": "2.11.6", + "resolved": "https://registry.npmjs.org/@popperjs/core/-/core-2.11.6.tgz", + "integrity": "sha512-50/17A98tWUfQ176raKiOGXuYpLyyVMkxxG6oylzL3BPOlA6ADGdK7EYunSa4I064xerltq9TGXs8HmOk5E+vw==", + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/popperjs" + } + }, + "node_modules/@prettier-x/formatter-2021-01": { + "version": "0.0.1-rc01", + "resolved": "https://registry.npmjs.org/@prettier-x/formatter-2021-01/-/formatter-2021-01-0.0.1-rc01.tgz", + "integrity": "sha512-7XaAOF/IYCo+j0Fgr1Y27xIqQzNspqZphW0lG+D1BSiCc1Fbc1t+b6DbHK880oRBwUm+H6xNelwvFfjwQPtzWQ==", + "dependencies": { + "@angular/compiler": "9.0.5", + "@babel/code-frame": "7.12.13", + "@babel/parser": "7.12.11", + "@brodybits/remark-parse": "5.0.1", + "@glimmer/syntax": "0.56.2", + "@iarna/toml": "2.2.5", + "@typescript-eslint/typescript-estree": "2.34.0", + "angular-estree-parser": "1.3.1", + "angular-html-parser": "1.7.0", + "camelcase": "6.2.0", + "chalk": "4.1.1", + "ci-info": "3.2.0", + "cjk-regex": "2.0.1", + "cosmiconfig": "7.0.0", + "dashify": "2.0.0", + "dedent": "0.7.0", + "diff": "5.0.0", + "editorconfig": "0.15.3", + "editorconfig-to-prettier": "0.1.1", + "escape-string-regexp": "4.0.0", + "esutils": "2.0.3", + "fast-glob": "3.2.5", + "find-parent-dir": "0.3.1", + "find-project-root": "1.1.1", + "get-stream": "6.0.1", + "globby": "11.0.4", + "graphql": "15.5.1", + "html-element-attributes": "2.3.0", + "html-styles": "1.0.0", + "html-tag-names": "1.1.5", + "html-void-elements": "1.0.5", + "ignore": "4.0.6", + "jest-docblock": "27.0.1", + "json-stable-stringify": "1.0.1", + "leven": "3.1.0", + "lines-and-columns": "1.1.6", + "linguist-languages": "7.10.0", + "lodash": "4.17.21", + "mem": "8.1.1", + "minimatch": "3.0.4", + "minimist": "1.2.5", + "n-readlines": "1.0.1", + "please-upgrade-node": "3.2.0", + "postcss-less": "4.0.1", + "postcss-media-query-parser": "0.2.3", + "postcss-scss": "2.1.1", + "postcss-selector-parser": "2.2.3", + "postcss-values-parser": "2.0.1", + "regexp-util": "1.2.2", + "remark-math": "1.0.6", + "resolve": "1.20.0", + "semver": "7.3.5", + "srcset": "3.0.0", + "string-width": "4.2.2", + "tslib": "1.14.1", + "unicode-regex": "3.0.0", + "unified": "9.2.1", + "vnopts": "1.0.2", + "yaml-unist-parser": "1.3.1" + }, + "engines": { + "node": ">=10.13.0" + }, + "peerDependenciesMeta": { + "flow-parser": { + "optional": true + }, + "typescript": { + "optional": true + } + } + }, + "node_modules/@prettier-x/formatter-2021-01/node_modules/@angular/compiler": { + "version": "9.0.5", + "resolved": "https://registry.npmjs.org/@angular/compiler/-/compiler-9.0.5.tgz", + "integrity": "sha512-TeyhRGefTOtA9N3udMrvheafoXcz/dvTTdZLcieeZQxm1SSeaQDUQ/rUH6QTOiHVNMtjOCrZ9J5rk1A4mPYuag==", + "peerDependencies": { + "tslib": "^1.10.0" + } + }, + "node_modules/@prettier-x/formatter-2021-01/node_modules/@babel/code-frame": { + "version": "7.12.13", + "resolved": "https://registry.npmjs.org/@babel/code-frame/-/code-frame-7.12.13.tgz", + "integrity": "sha512-HV1Cm0Q3ZrpCR93tkWOYiuYIgLxZXZFVG2VgK+MBWjUqZTundupbfx2aXarXuw5Ko5aMcjtJgbSs4vUGBS5v6g==", + "dependencies": { + "@babel/highlight": "^7.12.13" + } + }, + "node_modules/@prettier-x/formatter-2021-01/node_modules/@babel/parser": { + "version": "7.12.11", + "resolved": "https://registry.npmjs.org/@babel/parser/-/parser-7.12.11.tgz", + "integrity": "sha512-N3UxG+uuF4CMYoNj8AhnbAcJF0PiuJ9KHuy1lQmkYsxTer/MAH9UBNHsBoAX/4s6NvlDD047No8mYVGGzLL4hg==", + "bin": { + "parser": "bin/babel-parser.js" + }, + "engines": { + "node": ">=6.0.0" + } + }, + "node_modules/@prettier-x/formatter-2021-01/node_modules/angular-estree-parser": { + "version": "1.3.1", + "resolved": "https://registry.npmjs.org/angular-estree-parser/-/angular-estree-parser-1.3.1.tgz", + "integrity": "sha512-jvlnNk4aoEmA6EKK12OnsOkCSdsWleBsYB+aWyH8kpfTB6Li1kxWVbHKVldH9zDCwVVi1hXfqPi/gbSv49tkbQ==", + "dependencies": { + "lines-and-columns": "^1.1.6", + "tslib": "^1.9.3" + }, + "engines": { + "node": ">= 6" + }, + "peerDependencies": { + "@angular/compiler": ">= 6.0.0 < 9.0.6" + } + }, + "node_modules/@prettier-x/formatter-2021-01/node_modules/chalk": { + "version": "4.1.1", + "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.1.tgz", + "integrity": "sha512-diHzdDKxcU+bAsUboHLPEDQiw0qEe0qd7SYUn3HgcFlWgbDcfLGswOHYeGrHKzG9z6UYf01d9VFMfZxPM1xZSg==", + "dependencies": { + "ansi-styles": "^4.1.0", + "supports-color": "^7.1.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/chalk/chalk?sponsor=1" + } + }, + "node_modules/@prettier-x/formatter-2021-01/node_modules/cosmiconfig": { + "version": "7.0.0", + "resolved": "https://registry.npmjs.org/cosmiconfig/-/cosmiconfig-7.0.0.tgz", + "integrity": "sha512-pondGvTuVYDk++upghXJabWzL6Kxu6f26ljFw64Swq9v6sQPUL3EUlVDV56diOjpCayKihL6hVe8exIACU4XcA==", + "dependencies": { + "@types/parse-json": "^4.0.0", + "import-fresh": "^3.2.1", + "parse-json": "^5.0.0", + "path-type": "^4.0.0", + "yaml": "^1.10.0" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/@prettier-x/formatter-2021-01/node_modules/fast-glob": { + "version": "3.2.5", + "resolved": "https://registry.npmjs.org/fast-glob/-/fast-glob-3.2.5.tgz", + "integrity": "sha512-2DtFcgT68wiTTiwZ2hNdJfcHNke9XOfnwmBRWXhmeKM8rF0TGwmC/Qto3S7RoZKp5cilZbxzO5iTNTQsJ+EeDg==", + "dependencies": { + "@nodelib/fs.stat": "^2.0.2", + "@nodelib/fs.walk": "^1.2.3", + "glob-parent": "^5.1.0", + "merge2": "^1.3.0", + "micromatch": "^4.0.2", + "picomatch": "^2.2.1" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/@prettier-x/formatter-2021-01/node_modules/globby": { + "version": "11.0.4", + "resolved": "https://registry.npmjs.org/globby/-/globby-11.0.4.tgz", + "integrity": "sha512-9O4MVG9ioZJ08ffbcyVYyLOJLk5JQ688pJ4eMGLpdWLHq/Wr1D9BlriLQyL0E+jbkuePVZXYFj47QM/v093wHg==", + "dependencies": { + "array-union": "^2.1.0", + "dir-glob": "^3.0.1", + "fast-glob": "^3.1.1", + "ignore": "^5.1.4", + "merge2": "^1.3.0", + "slash": "^3.0.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/@prettier-x/formatter-2021-01/node_modules/globby/node_modules/ignore": { + "version": "5.2.4", + "resolved": "https://registry.npmjs.org/ignore/-/ignore-5.2.4.tgz", + "integrity": "sha512-MAb38BcSbH0eHNBxn7ql2NH/kX33OkB3lZ1BNdh7ENeRChHTYsTvWrMubiIAMNS2llXEEgZ1MUOBtXChP3kaFQ==", + "engines": { + "node": ">= 4" + } + }, + "node_modules/@prettier-x/formatter-2021-01/node_modules/ignore": { + "version": "4.0.6", + "resolved": "https://registry.npmjs.org/ignore/-/ignore-4.0.6.tgz", + "integrity": "sha512-cyFDKrqc/YdcWFniJhzI42+AzS+gNwmUzOSFcRCQYwySuBBBy/KjuxWLZ/FHEH6Moq1NizMOBWyTcv8O4OZIMg==", + "engines": { + "node": ">= 4" + } + }, + "node_modules/@prettier-x/formatter-2021-01/node_modules/lines-and-columns": { + "version": "1.1.6", + "resolved": "https://registry.npmjs.org/lines-and-columns/-/lines-and-columns-1.1.6.tgz", + "integrity": "sha512-8ZmlJFVK9iCmtLz19HpSsR8HaAMWBT284VMNednLwlIMDP2hJDCIhUp0IZ2xUcZ+Ob6BM0VvCSJwzASDM45NLQ==" + }, + "node_modules/@prettier-x/formatter-2021-01/node_modules/lru-cache": { + "version": "6.0.0", + "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-6.0.0.tgz", + "integrity": "sha512-Jo6dJ04CmSjuznwJSS3pUeWmd/H0ffTlkXXgwZi+eq1UCmqQwCh+eLsYOYCwY991i2Fah4h1BEMCx4qThGbsiA==", + "dependencies": { + "yallist": "^4.0.0" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/@prettier-x/formatter-2021-01/node_modules/minimatch": { + "version": "3.0.4", + "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-3.0.4.tgz", + "integrity": "sha512-yJHVQEhyqPLUTgt9B83PXu6W3rx4MvvHvSUvToogpwoGDOUQ+yDrR0HRot+yOCdCO7u4hX3pWft6kWBBcqh0UA==", + "dependencies": { + "brace-expansion": "^1.1.7" + }, + "engines": { + "node": "*" + } + }, + "node_modules/@prettier-x/formatter-2021-01/node_modules/minimist": { + "version": "1.2.5", + "resolved": "https://registry.npmjs.org/minimist/-/minimist-1.2.5.tgz", + "integrity": "sha512-FM9nNUYrRBAELZQT3xeZQ7fmMOBg6nWNmJKTcgsJeaLstP/UODVpGsr5OhXhhXg6f+qtJ8uiZ+PUxkDWcgIXLw==" + }, + "node_modules/@prettier-x/formatter-2021-01/node_modules/postcss-selector-parser": { + "version": "2.2.3", + "resolved": "https://registry.npmjs.org/postcss-selector-parser/-/postcss-selector-parser-2.2.3.tgz", + "integrity": "sha512-3pqyakeGhrO0BQ5+/tGTfvi5IAUAhHRayGK8WFSu06aEv2BmHoXw/Mhb+w7VY5HERIuC+QoUI7wgrCcq2hqCVA==", + "dependencies": { + "flatten": "^1.0.2", + "indexes-of": "^1.0.1", + "uniq": "^1.0.1" + } + }, + "node_modules/@prettier-x/formatter-2021-01/node_modules/resolve": { + "version": "1.20.0", + "resolved": "https://registry.npmjs.org/resolve/-/resolve-1.20.0.tgz", + "integrity": "sha512-wENBPt4ySzg4ybFQW2TT1zMQucPK95HSh/nq2CFTZVOGut2+pQvSsgtda4d26YrYcr067wjbmzOG8byDPBX63A==", + "dependencies": { + "is-core-module": "^2.2.0", + "path-parse": "^1.0.6" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/@prettier-x/formatter-2021-01/node_modules/semver": { + "version": "7.3.5", + "resolved": "https://registry.npmjs.org/semver/-/semver-7.3.5.tgz", + "integrity": "sha512-PoeGJYh8HK4BTO/a9Tf6ZG3veo/A7ZVsYrSA6J8ny9nb3B1VrpkuN+z9OE5wfE5p6H4LchYZsegiQgbJD94ZFQ==", + "dependencies": { + "lru-cache": "^6.0.0" + }, + "bin": { + "semver": "bin/semver.js" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/@prettier-x/formatter-2021-01/node_modules/string-width": { + "version": "4.2.2", + "resolved": "https://registry.npmjs.org/string-width/-/string-width-4.2.2.tgz", + "integrity": "sha512-XBJbT3N4JhVumXE0eoLU9DCjcaF92KLNqTmFCnG1pf8duUxFGwtP6AD6nkjw9a3IdiRtL3E2w3JDiE/xi3vOeA==", + "dependencies": { + "emoji-regex": "^8.0.0", + "is-fullwidth-code-point": "^3.0.0", + "strip-ansi": "^6.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/@prettier-x/formatter-2021-01/node_modules/tslib": { + "version": "1.14.1", + "resolved": "https://registry.npmjs.org/tslib/-/tslib-1.14.1.tgz", + "integrity": "sha512-Xni35NKzjgMrwevysHTCArtLDpPvye8zV/0E4EyYn43P7/7qvQwPh9BGkHewbMulVntbigmcT7rdX3BNo9wRJg==" + }, + "node_modules/@prettier-x/formatter-2021-01/node_modules/yallist": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/yallist/-/yallist-4.0.0.tgz", + "integrity": "sha512-3wdGidZyq5PB084XLES5TpOSRA3wjXAlIWMhum2kRcv/41Sn2emQ0dycQW4uZXLejwKvg6EsvbdlVL+FYEct7A==" + }, + "node_modules/@romainberger/css-diff": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/@romainberger/css-diff/-/css-diff-1.0.3.tgz", + "integrity": "sha512-zR2EvxtJvQXRxFtTnqazMsJADngyVIulzYQ+wVYWRC1Hw3e4gfEIbigX46wTsPUyjAI+lRXFrBSoCWcgZ6ZSlQ==", + "dev": true, + "dependencies": { + "lodash.merge": "^4.4.0", + "postcss": "^5.0.21" + } + }, + "node_modules/@romainberger/css-diff/node_modules/ansi-regex": { + "version": "2.1.1", + "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-2.1.1.tgz", + "integrity": "sha512-TIGnTpdo+E3+pCyAluZvtED5p5wCqLdezCyhPZzKPcxvFplEt4i+W7OONCKgeZFT3+y5NZZfOOS/Bdcanm1MYA==", + "dev": true, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/@romainberger/css-diff/node_modules/ansi-styles": { + "version": "2.2.1", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-2.2.1.tgz", + "integrity": "sha512-kmCevFghRiWM7HB5zTPULl4r9bVFSWjz62MhqizDGUrq2NWuNMQyuv4tHHoKJHs69M/MF64lEcHdYIocrdWQYA==", + "dev": true, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/@romainberger/css-diff/node_modules/chalk": { + "version": "1.1.3", + "resolved": "https://registry.npmjs.org/chalk/-/chalk-1.1.3.tgz", + "integrity": "sha512-U3lRVLMSlsCfjqYPbLyVv11M9CPW4I728d6TCKMAOJueEeB9/8o+eSsMnxPJD+Q+K909sdESg7C+tIkoH6on1A==", + "dev": true, + "dependencies": { + "ansi-styles": "^2.2.1", + "escape-string-regexp": "^1.0.2", + "has-ansi": "^2.0.0", + "strip-ansi": "^3.0.0", + "supports-color": "^2.0.0" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/@romainberger/css-diff/node_modules/chalk/node_modules/supports-color": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-2.0.0.tgz", + "integrity": "sha512-KKNVtd6pCYgPIKU4cp2733HWYCpplQhddZLBUryaAHou723x+FRzQ5Df824Fj+IyyuiQTRoub4SnIFfIcrp70g==", + "dev": true, + "engines": { + "node": ">=0.8.0" + } + }, + "node_modules/@romainberger/css-diff/node_modules/escape-string-regexp": { + "version": "1.0.5", + "resolved": "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-1.0.5.tgz", + "integrity": "sha512-vbRorB5FUQWvla16U8R/qgaFIya2qGzwDrNmCZuYKrbdSUMG6I1ZCGQRefkRVhuOkIGVne7BQ35DSfo1qvJqFg==", + "dev": true, + "engines": { + "node": ">=0.8.0" + } + }, + "node_modules/@romainberger/css-diff/node_modules/has-flag": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-1.0.0.tgz", + "integrity": "sha512-DyYHfIYwAJmjAjSSPKANxI8bFY9YtFrgkAfinBojQ8YJTOuOuav64tMUJv584SES4xl74PmuaevIyaLESHdTAA==", + "dev": true, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/@romainberger/css-diff/node_modules/postcss": { + "version": "5.2.18", + "resolved": "https://registry.npmjs.org/postcss/-/postcss-5.2.18.tgz", + "integrity": "sha512-zrUjRRe1bpXKsX1qAJNJjqZViErVuyEkMTRrwu4ud4sbTtIBRmtaYDrHmcGgmrbsW3MHfmtIf+vJumgQn+PrXg==", + "dev": true, + "dependencies": { + "chalk": "^1.1.3", + "js-base64": "^2.1.9", + "source-map": "^0.5.6", + "supports-color": "^3.2.3" + }, + "engines": { + "node": ">=0.12" + } + }, + "node_modules/@romainberger/css-diff/node_modules/source-map": { + "version": "0.5.7", + "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.5.7.tgz", + "integrity": "sha512-LbrmJOMUSdEVxIKvdcJzQC+nQhe8FUZQTXQy6+I75skNgn3OoQ0DZA8YnFa7gp8tqtL3KPf1kmo0R5DoApeSGQ==", + "dev": true, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/@romainberger/css-diff/node_modules/strip-ansi": { + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-3.0.1.tgz", + "integrity": "sha512-VhumSSbBqDTP8p2ZLKj40UjBCV4+v8bUSEpUb4KjRgWk9pbqGF4REFj6KEagidb2f/M6AzC0EmFyDNGaw9OCzg==", + "dev": true, + "dependencies": { + "ansi-regex": "^2.0.0" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/@romainberger/css-diff/node_modules/supports-color": { + "version": "3.2.3", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-3.2.3.tgz", + "integrity": "sha512-Jds2VIYDrlp5ui7t8abHN2bjAu4LV/q4N2KivFPpGH0lrka0BMq/33AmECUXlKPcHigkNaqfXRENFju+rlcy+A==", + "dev": true, + "dependencies": { + "has-flag": "^1.0.0" + }, + "engines": { + "node": ">=0.8.0" + } + }, + "node_modules/@shopify/draggable": { + "version": "1.0.0-beta.12", + "resolved": "https://registry.npmjs.org/@shopify/draggable/-/draggable-1.0.0-beta.12.tgz", + "integrity": "sha512-Un/Dn61sv2er9yjDXLGWMauCOWBb0BMbm0yzmmrD+oUX2/x50yhNJASTsCRdndUCpWlqYfZH8jEfaOgTPsKc/g==" + }, + "node_modules/@simple-dom/interface": { + "version": "1.4.0", + "resolved": "https://registry.npmjs.org/@simple-dom/interface/-/interface-1.4.0.tgz", + "integrity": "sha512-l5qumKFWU0S+4ZzMaLXFU8tQZsicHEMEyAxI5kDFGhJsRqDwe0a7/iPA/GdxlGyDKseQQAgIz5kzU7eXTrlSpA==" + }, + "node_modules/@terraformer/arcgis": { + "version": "2.1.2", + "resolved": "https://registry.npmjs.org/@terraformer/arcgis/-/arcgis-2.1.2.tgz", + "integrity": "sha512-IvdfqehcNAUtKU1OFMKwPT8EvdKlVFZ7q7ZKzkIF8XzYZIVsZLuXuOS1UBdRh5u/o+X5Gax7jiZhD8U/4TV+Jw==", + "dependencies": { + "@terraformer/common": "^2.1.2" + } + }, + "node_modules/@terraformer/common": { + "version": "2.1.2", + "resolved": "https://registry.npmjs.org/@terraformer/common/-/common-2.1.2.tgz", + "integrity": "sha512-cwPdTFzIpekZhZRrgDEkqLKNPoqbyCBQHiemaovnGIeUx0Pl336MY/eCxzJ5zXkrQLVo9zPalq/vYW5HnyKevQ==" + }, + "node_modules/@trysound/sax": { + "version": "0.2.0", + "resolved": "https://registry.npmjs.org/@trysound/sax/-/sax-0.2.0.tgz", + "integrity": "sha512-L7z9BgrNEcYyUYtF+HaEfiS5ebkh9jXqbszz7pC0hRBPaatV0XjSD3+eHrpqFemQfgwiFF0QPIarnIihIDn7OA==", + "dev": true, + "engines": { + "node": ">=10.13.0" + } + }, + "node_modules/@types/babel__core": { + "version": "7.20.0", + "resolved": "https://registry.npmjs.org/@types/babel__core/-/babel__core-7.20.0.tgz", + "integrity": "sha512-+n8dL/9GWblDO0iU6eZAwEIJVr5DWigtle+Q6HLOrh/pdbXOhOtqzq8VPPE2zvNJzSKY4vH/z3iT3tn0A3ypiQ==", + "dev": true, + "dependencies": { + "@babel/parser": "^7.20.7", + "@babel/types": "^7.20.7", + "@types/babel__generator": "*", + "@types/babel__template": "*", + "@types/babel__traverse": "*" + } + }, + "node_modules/@types/babel__generator": { + "version": "7.6.4", + "resolved": "https://registry.npmjs.org/@types/babel__generator/-/babel__generator-7.6.4.tgz", + "integrity": "sha512-tFkciB9j2K755yrTALxD44McOrk+gfpIpvC3sxHjRawj6PfnQxrse4Clq5y/Rq+G3mrBurMax/lG8Qn2t9mSsg==", + "dev": true, + "dependencies": { + "@babel/types": "^7.0.0" + } + }, + "node_modules/@types/babel__template": { + "version": "7.4.1", + "resolved": "https://registry.npmjs.org/@types/babel__template/-/babel__template-7.4.1.tgz", + "integrity": "sha512-azBFKemX6kMg5Io+/rdGT0dkGreboUVR0Cdm3fz9QJWpaQGJRQXl7C+6hOTCZcMll7KFyEQpgbYI2lHdsS4U7g==", + "dev": true, + "dependencies": { + "@babel/parser": "^7.1.0", + "@babel/types": "^7.0.0" + } + }, + "node_modules/@types/babel__traverse": { + "version": "7.18.3", + "resolved": "https://registry.npmjs.org/@types/babel__traverse/-/babel__traverse-7.18.3.tgz", + "integrity": "sha512-1kbcJ40lLB7MHsj39U4Sh1uTd2E7rLEa79kmDpI6cy+XiXsteB3POdQomoq4FxszMrO3ZYchkhYJw7A2862b3w==", + "dev": true, + "dependencies": { + "@babel/types": "^7.3.0" + } + }, + "node_modules/@types/body-parser": { + "version": "1.19.2", + "resolved": "https://registry.npmjs.org/@types/body-parser/-/body-parser-1.19.2.tgz", + "integrity": "sha512-ALYone6pm6QmwZoAgeyNksccT9Q4AWZQ6PvfwR37GT6r6FWUPguq6sUmNGSMV2Wr761oQoBxwGGa6DR5o1DC9g==", + "dev": true, + "dependencies": { + "@types/connect": "*", + "@types/node": "*" + } + }, + "node_modules/@types/bonjour": { + "version": "3.5.10", + "resolved": "https://registry.npmjs.org/@types/bonjour/-/bonjour-3.5.10.tgz", + "integrity": "sha512-p7ienRMiS41Nu2/igbJxxLDWrSZ0WxM8UQgCeO9KhoVF7cOVFkrKsiDr1EsJIla8vV3oEEjGcz11jc5yimhzZw==", + "dev": true, + "dependencies": { + "@types/node": "*" + } + }, + "node_modules/@types/clean-css": { + "version": "4.2.6", + "resolved": "https://registry.npmjs.org/@types/clean-css/-/clean-css-4.2.6.tgz", + "integrity": "sha512-Ze1tf+LnGPmG6hBFMi0B4TEB0mhF7EiMM5oyjLDNPE9hxrPU0W+5+bHvO+eFPA+bt0iC1zkQMoU/iGdRVjcRbw==", + "dev": true, + "dependencies": { + "@types/node": "*", + "source-map": "^0.6.0" + } + }, + "node_modules/@types/connect": { + "version": "3.4.35", + "resolved": "https://registry.npmjs.org/@types/connect/-/connect-3.4.35.tgz", + "integrity": "sha512-cdeYyv4KWoEgpBISTxWvqYsVy444DOqehiF3fM3ne10AmJ62RSyNkUnxMJXHQWRQQX2eR94m5y1IZyDwBjV9FQ==", + "dev": true, + "dependencies": { + "@types/node": "*" + } + }, + "node_modules/@types/connect-history-api-fallback": { + "version": "1.3.5", + "resolved": "https://registry.npmjs.org/@types/connect-history-api-fallback/-/connect-history-api-fallback-1.3.5.tgz", + "integrity": "sha512-h8QJa8xSb1WD4fpKBDcATDNGXghFj6/3GRWG6dhmRcu0RX1Ubasur2Uvx5aeEwlf0MwblEC2bMzzMQntxnw/Cw==", + "dev": true, + "dependencies": { + "@types/express-serve-static-core": "*", + "@types/node": "*" + } + }, + "node_modules/@types/eslint": { + "version": "8.37.0", + "resolved": "https://registry.npmjs.org/@types/eslint/-/eslint-8.37.0.tgz", + "integrity": "sha512-Piet7dG2JBuDIfohBngQ3rCt7MgO9xCO4xIMKxBThCq5PNRB91IjlJ10eJVwfoNtvTErmxLzwBZ7rHZtbOMmFQ==", + "dev": true, + "dependencies": { + "@types/estree": "*", + "@types/json-schema": "*" + } + }, + "node_modules/@types/eslint-scope": { + "version": "3.7.4", + "resolved": "https://registry.npmjs.org/@types/eslint-scope/-/eslint-scope-3.7.4.tgz", + "integrity": "sha512-9K4zoImiZc3HlIp6AVUDE4CWYx22a+lhSZMYNpbjW04+YF0KWj4pJXnEMjdnFTiQibFFmElcsasJXDbdI/EPhA==", + "dev": true, + "dependencies": { + "@types/eslint": "*", + "@types/estree": "*" + } + }, + "node_modules/@types/estree": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/@types/estree/-/estree-1.0.0.tgz", + "integrity": "sha512-WulqXMDUTYAXCjZnk6JtIHPigp55cVtDgDrO2gHRwhyJto21+1zbVCtOYB2L1F9w4qCQ0rOGWBnBe0FNTiEJIQ==", + "dev": true + }, + "node_modules/@types/express": { + "version": "4.17.17", + "resolved": "https://registry.npmjs.org/@types/express/-/express-4.17.17.tgz", + "integrity": "sha512-Q4FmmuLGBG58btUnfS1c1r/NQdlp3DMfGDGig8WhfpA2YRUtEkxAjkZb0yvplJGYdF1fsQ81iMDcH24sSCNC/Q==", + "dev": true, + "dependencies": { + "@types/body-parser": "*", + "@types/express-serve-static-core": "^4.17.33", + "@types/qs": "*", + "@types/serve-static": "*" + } + }, + "node_modules/@types/express-serve-static-core": { + "version": "4.17.33", + "resolved": "https://registry.npmjs.org/@types/express-serve-static-core/-/express-serve-static-core-4.17.33.tgz", + "integrity": "sha512-TPBqmR/HRYI3eC2E5hmiivIzv+bidAfXofM+sbonAGvyDhySGw9/PQZFt2BLOrjUUR++4eJVpx6KnLQK1Fk9tA==", + "dev": true, + "dependencies": { + "@types/node": "*", + "@types/qs": "*", + "@types/range-parser": "*" + } + }, + "node_modules/@types/glob": { + "version": "7.2.0", + "resolved": "https://registry.npmjs.org/@types/glob/-/glob-7.2.0.tgz", + "integrity": "sha512-ZUxbzKl0IfJILTS6t7ip5fQQM/J3TJYubDm3nMbgubNNYS62eXeUpoLUC8/7fJNiFYHTrGPQn7hspDUzIHX3UA==", + "dev": true, + "dependencies": { + "@types/minimatch": "*", + "@types/node": "*" + } + }, + "node_modules/@types/hammerjs": { + "version": "2.0.41", + "resolved": "https://registry.npmjs.org/@types/hammerjs/-/hammerjs-2.0.41.tgz", + "integrity": "sha512-ewXv/ceBaJprikMcxCmWU1FKyMAQ2X7a9Gtmzw8fcg2kIePI1crERDM818W+XYrxqdBBOdlf2rm137bU+BltCA==", + "peer": true + }, + "node_modules/@types/http-proxy": { + "version": "1.17.10", + "resolved": "https://registry.npmjs.org/@types/http-proxy/-/http-proxy-1.17.10.tgz", + "integrity": "sha512-Qs5aULi+zV1bwKAg5z1PWnDXWmsn+LxIvUGv6E2+OOMYhclZMO+OXd9pYVf2gLykf2I7IV2u7oTHwChPNsvJ7g==", + "dev": true, + "dependencies": { + "@types/node": "*" + } + }, + "node_modules/@types/imagemin": { + "version": "8.0.1", + "resolved": "https://registry.npmjs.org/@types/imagemin/-/imagemin-8.0.1.tgz", + "integrity": "sha512-DSpM//dRPzme7doePGkmR1uoquHi0h0ElaA5qFnxHECfFcB8z/jhMI8eqmxWNpHn9ZG18p4PC918sZLhR0cr5A==", + "dev": true, + "dependencies": { + "@types/node": "*" + } + }, + "node_modules/@types/imagemin-gifsicle": { + "version": "7.0.1", + "resolved": "https://registry.npmjs.org/@types/imagemin-gifsicle/-/imagemin-gifsicle-7.0.1.tgz", + "integrity": "sha512-kUz6sUh0P95JOS0RGEaaemWUrASuw+dLsWIveK2UZJx74id/B9epgblMkCk/r5MjUWbZ83wFvacG5Rb/f97gyA==", + "dev": true, + "dependencies": { + "@types/imagemin": "*" + } + }, + "node_modules/@types/imagemin-mozjpeg": { + "version": "8.0.1", + "resolved": "https://registry.npmjs.org/@types/imagemin-mozjpeg/-/imagemin-mozjpeg-8.0.1.tgz", + "integrity": "sha512-kMQWEoKxxhlnH4POI3qfW9DjXlQfi80ux3l2b3j5R3eudSCoUIzKQLkfMjNJ6eMYnMWBcB+rfQOWqIzdIwFGKw==", + "dev": true, + "dependencies": { + "@types/imagemin": "*" + } + }, + "node_modules/@types/imagemin-optipng": { + "version": "5.2.1", + "resolved": "https://registry.npmjs.org/@types/imagemin-optipng/-/imagemin-optipng-5.2.1.tgz", + "integrity": "sha512-XCM/3q+HUL7v4zOqMI+dJ5dTxT+MUukY9KU49DSnYb/4yWtSMHJyADP+WHSMVzTR63J2ZvfUOzSilzBNEQW78g==", + "dev": true, + "dependencies": { + "@types/imagemin": "*" + } + }, + "node_modules/@types/imagemin-svgo": { + "version": "8.0.1", + "resolved": "https://registry.npmjs.org/@types/imagemin-svgo/-/imagemin-svgo-8.0.1.tgz", + "integrity": "sha512-YafkdrVAcr38U0Ln1C+L1n4SIZqC47VBHTyxCq7gTUSd1R9MdIvMcrljWlgU1M9O68WZDeQWUrKipKYfEOCOvQ==", + "dev": true, + "dependencies": { + "@types/imagemin": "*", + "@types/svgo": "^1" + } + }, + "node_modules/@types/jquery": { + "version": "3.5.16", + "resolved": "https://registry.npmjs.org/@types/jquery/-/jquery-3.5.16.tgz", + "integrity": "sha512-bsI7y4ZgeMkmpG9OM710RRzDFp+w4P1RGiIt30C1mSBT+ExCleeh4HObwgArnDFELmRrOpXgSYN9VF1hj+f1lw==", + "dependencies": { + "@types/sizzle": "*" + } + }, + "node_modules/@types/json-schema": { + "version": "7.0.11", + "resolved": "https://registry.npmjs.org/@types/json-schema/-/json-schema-7.0.11.tgz", + "integrity": "sha512-wOuvG1SN4Us4rez+tylwwwCV1psiNVOkJeM3AUWUNWg/jDQY2+HE/444y5gc+jBmRqASOm2Oeh5c1axHobwRKQ==", + "dev": true + }, + "node_modules/@types/mime": { + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/@types/mime/-/mime-3.0.1.tgz", + "integrity": "sha512-Y4XFY5VJAuw0FgAqPNd6NNoV44jbq9Bz2L7Rh/J6jLTiHBSBJa9fxqQIvkIld4GsoDOcCbvzOUAbLPsSKKg+uA==", + "dev": true + }, + "node_modules/@types/minimatch": { + "version": "5.1.2", + "resolved": "https://registry.npmjs.org/@types/minimatch/-/minimatch-5.1.2.tgz", + "integrity": "sha512-K0VQKziLUWkVKiRVrx4a40iPaxTUefQmjtkQofBkYRcoaaL/8rhwDWww9qWbrgicNOgnpIsMxyNIUM4+n6dUIA==", + "dev": true + }, + "node_modules/@types/node": { + "version": "18.15.11", + "resolved": "https://registry.npmjs.org/@types/node/-/node-18.15.11.tgz", + "integrity": "sha512-E5Kwq2n4SbMzQOn6wnmBjuK9ouqlURrcZDVfbo9ftDDTFt3nk7ZKK4GMOzoYgnpQJKcxwQw+lGaBvvlMo0qN/Q==", + "dev": true + }, + "node_modules/@types/parse-json": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/@types/parse-json/-/parse-json-4.0.0.tgz", + "integrity": "sha512-//oorEZjL6sbPcKUaCdIGlIUeH26mgzimjBB77G6XRgnDl/L5wOnpyBGRe/Mmf5CVW3PwEBE1NjiMZ/ssFh4wA==" + }, + "node_modules/@types/q": { + "version": "1.5.5", + "resolved": "https://registry.npmjs.org/@types/q/-/q-1.5.5.tgz", + "integrity": "sha512-L28j2FcJfSZOnL1WBjDYp2vUHCeIFlyYI/53EwD/rKUBQ7MtUUfbQWiyKJGpcnv4/WgrhWsFKrcPstcAt/J0tQ==", + "dev": true + }, + "node_modules/@types/qs": { + "version": "6.9.7", + "resolved": "https://registry.npmjs.org/@types/qs/-/qs-6.9.7.tgz", + "integrity": "sha512-FGa1F62FT09qcrueBA6qYTrJPVDzah9a+493+o2PCXsesWHIn27G98TsSMs3WPNbZIEj4+VJf6saSFpvD+3Zsw==", + "dev": true + }, + "node_modules/@types/range-parser": { + "version": "1.2.4", + "resolved": "https://registry.npmjs.org/@types/range-parser/-/range-parser-1.2.4.tgz", + "integrity": "sha512-EEhsLsD6UsDM1yFhAvy0Cjr6VwmpMWqFBCb9w07wVugF7w9nfajxLuVmngTIpgS6svCnm6Vaw+MZhoDCKnOfsw==", + "dev": true + }, + "node_modules/@types/retry": { + "version": "0.12.0", + "resolved": "https://registry.npmjs.org/@types/retry/-/retry-0.12.0.tgz", + "integrity": "sha512-wWKOClTTiizcZhXnPY4wikVAwmdYHp8q6DmC+EJUzAMsycb7HB32Kh9RN4+0gExjmPmZSAQjgURXIGATPegAvA==", + "dev": true + }, + "node_modules/@types/serve-index": { + "version": "1.9.1", + "resolved": "https://registry.npmjs.org/@types/serve-index/-/serve-index-1.9.1.tgz", + "integrity": "sha512-d/Hs3nWDxNL2xAczmOVZNj92YZCS6RGxfBPjKzuu/XirCgXdpKEb88dYNbrYGint6IVWLNP+yonwVAuRC0T2Dg==", + "dev": true, + "dependencies": { + "@types/express": "*" + } + }, + "node_modules/@types/serve-static": { + "version": "1.15.1", + "resolved": "https://registry.npmjs.org/@types/serve-static/-/serve-static-1.15.1.tgz", + "integrity": "sha512-NUo5XNiAdULrJENtJXZZ3fHtfMolzZwczzBbnAeBbqBwG+LaG6YaJtuwzwGSQZ2wsCrxjEhNNjAkKigy3n8teQ==", + "dev": true, + "dependencies": { + "@types/mime": "*", + "@types/node": "*" + } + }, + "node_modules/@types/sizzle": { + "version": "2.3.3", + "resolved": "https://registry.npmjs.org/@types/sizzle/-/sizzle-2.3.3.tgz", + "integrity": "sha512-JYM8x9EGF163bEyhdJBpR2QX1R5naCJHC8ucJylJ3w9/CVBaskdQ8WqBf8MmQrd1kRvp/a4TS8HJ+bxzR7ZJYQ==" + }, + "node_modules/@types/sockjs": { + "version": "0.3.33", + "resolved": "https://registry.npmjs.org/@types/sockjs/-/sockjs-0.3.33.tgz", + "integrity": "sha512-f0KEEe05NvUnat+boPTZ0dgaLZ4SfSouXUgv5noUiefG2ajgKjmETo9ZJyuqsl7dfl2aHlLJUiki6B4ZYldiiw==", + "dev": true, + "dependencies": { + "@types/node": "*" + } + }, + "node_modules/@types/svgo": { + "version": "1.3.6", + "resolved": "https://registry.npmjs.org/@types/svgo/-/svgo-1.3.6.tgz", + "integrity": "sha512-AZU7vQcy/4WFEuwnwsNsJnFwupIpbllH1++LXScN6uxT1Z4zPzdrWG97w4/I7eFKFTvfy/bHFStWjdBAg2Vjug==", + "dev": true + }, + "node_modules/@types/unist": { + "version": "2.0.6", + "resolved": "https://registry.npmjs.org/@types/unist/-/unist-2.0.6.tgz", + "integrity": "sha512-PBjIUxZHOuj0R15/xuwJYjFi+KZdNFrehocChv4g5hu6aFroHue8m0lBP0POdK2nKzbw0cgV1mws8+V/JAcEkQ==" + }, + "node_modules/@types/ws": { + "version": "8.5.4", + "resolved": "https://registry.npmjs.org/@types/ws/-/ws-8.5.4.tgz", + "integrity": "sha512-zdQDHKUgcX/zBc4GrwsE/7dVdAD8JR4EuiAXiiUhhfyIJXXb2+PrGshFyeXWQPMmmZ2XxgaqclgpIC7eTXc1mg==", + "dev": true, + "dependencies": { + "@types/node": "*" + } + }, + "node_modules/@typescript-eslint/typescript-estree": { + "version": "2.34.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/typescript-estree/-/typescript-estree-2.34.0.tgz", + "integrity": "sha512-OMAr+nJWKdlVM9LOqCqh3pQQPwxHAN7Du8DR6dmwCrAmxtiXQnhHJ6tBNtf+cggqfo51SG/FCwnKhXCIM7hnVg==", + "dependencies": { + "debug": "^4.1.1", + "eslint-visitor-keys": "^1.1.0", + "glob": "^7.1.6", + "is-glob": "^4.0.1", + "lodash": "^4.17.15", + "semver": "^7.3.2", + "tsutils": "^3.17.1" + }, + "engines": { + "node": "^8.10.0 || ^10.13.0 || >=11.10.1" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/typescript-eslint" + }, + "peerDependenciesMeta": { + "typescript": { + "optional": true + } + } + }, + "node_modules/@vue/reactivity": { + "version": "3.1.5", + "resolved": "https://registry.npmjs.org/@vue/reactivity/-/reactivity-3.1.5.tgz", + "integrity": "sha512-1tdfLmNjWG6t/CsPldh+foumYFo3cpyCHgBYQ34ylaMsJ+SNHQ1kApMIa8jN+i593zQuaw3AdWH0nJTARzCFhg==", + "dev": true, + "dependencies": { + "@vue/shared": "3.1.5" + } + }, + "node_modules/@vue/shared": { + "version": "3.1.5", + "resolved": "https://registry.npmjs.org/@vue/shared/-/shared-3.1.5.tgz", + "integrity": "sha512-oJ4F3TnvpXaQwZJNF3ZK+kLPHKarDmJjJ6jyzVNDKH9md1dptjC7lWR//jrGuLdek/U6iltWxqAnYOu8gCiOvA==", + "dev": true + }, + "node_modules/@webassemblyjs/ast": { + "version": "1.11.1", + "resolved": "https://registry.npmjs.org/@webassemblyjs/ast/-/ast-1.11.1.tgz", + "integrity": "sha512-ukBh14qFLjxTQNTXocdyksN5QdM28S1CxHt2rdskFyL+xFV7VremuBLVbmCePj+URalXBENx/9Lm7lnhihtCSw==", + "dev": true, + "dependencies": { + "@webassemblyjs/helper-numbers": "1.11.1", + "@webassemblyjs/helper-wasm-bytecode": "1.11.1" + } + }, + "node_modules/@webassemblyjs/floating-point-hex-parser": { + "version": "1.11.1", + "resolved": "https://registry.npmjs.org/@webassemblyjs/floating-point-hex-parser/-/floating-point-hex-parser-1.11.1.tgz", + "integrity": "sha512-iGRfyc5Bq+NnNuX8b5hwBrRjzf0ocrJPI6GWFodBFzmFnyvrQ83SHKhmilCU/8Jv67i4GJZBMhEzltxzcNagtQ==", + "dev": true + }, + "node_modules/@webassemblyjs/helper-api-error": { + "version": "1.11.1", + "resolved": "https://registry.npmjs.org/@webassemblyjs/helper-api-error/-/helper-api-error-1.11.1.tgz", + "integrity": "sha512-RlhS8CBCXfRUR/cwo2ho9bkheSXG0+NwooXcc3PAILALf2QLdFyj7KGsKRbVc95hZnhnERon4kW/D3SZpp6Tcg==", + "dev": true + }, + "node_modules/@webassemblyjs/helper-buffer": { + "version": "1.11.1", + "resolved": "https://registry.npmjs.org/@webassemblyjs/helper-buffer/-/helper-buffer-1.11.1.tgz", + "integrity": "sha512-gwikF65aDNeeXa8JxXa2BAk+REjSyhrNC9ZwdT0f8jc4dQQeDQ7G4m0f2QCLPJiMTTO6wfDmRmj/pW0PsUvIcA==", + "dev": true + }, + "node_modules/@webassemblyjs/helper-numbers": { + "version": "1.11.1", + "resolved": "https://registry.npmjs.org/@webassemblyjs/helper-numbers/-/helper-numbers-1.11.1.tgz", + "integrity": "sha512-vDkbxiB8zfnPdNK9Rajcey5C0w+QJugEglN0of+kmO8l7lDb77AnlKYQF7aarZuCrv+l0UvqL+68gSDr3k9LPQ==", + "dev": true, + "dependencies": { + "@webassemblyjs/floating-point-hex-parser": "1.11.1", + "@webassemblyjs/helper-api-error": "1.11.1", + "@xtuc/long": "4.2.2" + } + }, + "node_modules/@webassemblyjs/helper-wasm-bytecode": { + "version": "1.11.1", + "resolved": "https://registry.npmjs.org/@webassemblyjs/helper-wasm-bytecode/-/helper-wasm-bytecode-1.11.1.tgz", + "integrity": "sha512-PvpoOGiJwXeTrSf/qfudJhwlvDQxFgelbMqtq52WWiXC6Xgg1IREdngmPN3bs4RoO83PnL/nFrxucXj1+BX62Q==", + "dev": true + }, + "node_modules/@webassemblyjs/helper-wasm-section": { + "version": "1.11.1", + "resolved": "https://registry.npmjs.org/@webassemblyjs/helper-wasm-section/-/helper-wasm-section-1.11.1.tgz", + "integrity": "sha512-10P9No29rYX1j7F3EVPX3JvGPQPae+AomuSTPiF9eBQeChHI6iqjMIwR9JmOJXwpnn/oVGDk7I5IlskuMwU/pg==", + "dev": true, + "dependencies": { + "@webassemblyjs/ast": "1.11.1", + "@webassemblyjs/helper-buffer": "1.11.1", + "@webassemblyjs/helper-wasm-bytecode": "1.11.1", + "@webassemblyjs/wasm-gen": "1.11.1" + } + }, + "node_modules/@webassemblyjs/ieee754": { + "version": "1.11.1", + "resolved": "https://registry.npmjs.org/@webassemblyjs/ieee754/-/ieee754-1.11.1.tgz", + "integrity": "sha512-hJ87QIPtAMKbFq6CGTkZYJivEwZDbQUgYd3qKSadTNOhVY7p+gfP6Sr0lLRVTaG1JjFj+r3YchoqRYxNH3M0GQ==", + "dev": true, + "dependencies": { + "@xtuc/ieee754": "^1.2.0" + } + }, + "node_modules/@webassemblyjs/leb128": { + "version": "1.11.1", + "resolved": "https://registry.npmjs.org/@webassemblyjs/leb128/-/leb128-1.11.1.tgz", + "integrity": "sha512-BJ2P0hNZ0u+Th1YZXJpzW6miwqQUGcIHT1G/sf72gLVD9DZ5AdYTqPNbHZh6K1M5VmKvFXwGSWZADz+qBWxeRw==", + "dev": true, + "dependencies": { + "@xtuc/long": "4.2.2" + } + }, + "node_modules/@webassemblyjs/utf8": { + "version": "1.11.1", + "resolved": "https://registry.npmjs.org/@webassemblyjs/utf8/-/utf8-1.11.1.tgz", + "integrity": "sha512-9kqcxAEdMhiwQkHpkNiorZzqpGrodQQ2IGrHHxCy+Ozng0ofyMA0lTqiLkVs1uzTRejX+/O0EOT7KxqVPuXosQ==", + "dev": true + }, + "node_modules/@webassemblyjs/wasm-edit": { + "version": "1.11.1", + "resolved": "https://registry.npmjs.org/@webassemblyjs/wasm-edit/-/wasm-edit-1.11.1.tgz", + "integrity": "sha512-g+RsupUC1aTHfR8CDgnsVRVZFJqdkFHpsHMfJuWQzWU3tvnLC07UqHICfP+4XyL2tnr1amvl1Sdp06TnYCmVkA==", + "dev": true, + "dependencies": { + "@webassemblyjs/ast": "1.11.1", + "@webassemblyjs/helper-buffer": "1.11.1", + "@webassemblyjs/helper-wasm-bytecode": "1.11.1", + "@webassemblyjs/helper-wasm-section": "1.11.1", + "@webassemblyjs/wasm-gen": "1.11.1", + "@webassemblyjs/wasm-opt": "1.11.1", + "@webassemblyjs/wasm-parser": "1.11.1", + "@webassemblyjs/wast-printer": "1.11.1" + } + }, + "node_modules/@webassemblyjs/wasm-gen": { + "version": "1.11.1", + "resolved": "https://registry.npmjs.org/@webassemblyjs/wasm-gen/-/wasm-gen-1.11.1.tgz", + "integrity": "sha512-F7QqKXwwNlMmsulj6+O7r4mmtAlCWfO/0HdgOxSklZfQcDu0TpLiD1mRt/zF25Bk59FIjEuGAIyn5ei4yMfLhA==", + "dev": true, + "dependencies": { + "@webassemblyjs/ast": "1.11.1", + "@webassemblyjs/helper-wasm-bytecode": "1.11.1", + "@webassemblyjs/ieee754": "1.11.1", + "@webassemblyjs/leb128": "1.11.1", + "@webassemblyjs/utf8": "1.11.1" + } + }, + "node_modules/@webassemblyjs/wasm-opt": { + "version": "1.11.1", + "resolved": "https://registry.npmjs.org/@webassemblyjs/wasm-opt/-/wasm-opt-1.11.1.tgz", + "integrity": "sha512-VqnkNqnZlU5EB64pp1l7hdm3hmQw7Vgqa0KF/KCNO9sIpI6Fk6brDEiX+iCOYrvMuBWDws0NkTOxYEb85XQHHw==", + "dev": true, + "dependencies": { + "@webassemblyjs/ast": "1.11.1", + "@webassemblyjs/helper-buffer": "1.11.1", + "@webassemblyjs/wasm-gen": "1.11.1", + "@webassemblyjs/wasm-parser": "1.11.1" + } + }, + "node_modules/@webassemblyjs/wasm-parser": { + "version": "1.11.1", + "resolved": "https://registry.npmjs.org/@webassemblyjs/wasm-parser/-/wasm-parser-1.11.1.tgz", + "integrity": "sha512-rrBujw+dJu32gYB7/Lup6UhdkPx9S9SnobZzRVL7VcBH9Bt9bCBLEuX/YXOOtBsOZ4NQrRykKhffRWHvigQvOA==", + "dev": true, + "dependencies": { + "@webassemblyjs/ast": "1.11.1", + "@webassemblyjs/helper-api-error": "1.11.1", + "@webassemblyjs/helper-wasm-bytecode": "1.11.1", + "@webassemblyjs/ieee754": "1.11.1", + "@webassemblyjs/leb128": "1.11.1", + "@webassemblyjs/utf8": "1.11.1" + } + }, + "node_modules/@webassemblyjs/wast-printer": { + "version": "1.11.1", + "resolved": "https://registry.npmjs.org/@webassemblyjs/wast-printer/-/wast-printer-1.11.1.tgz", + "integrity": "sha512-IQboUWM4eKzWW+N/jij2sRatKMh99QEelo3Eb2q0qXkvPRISAj8Qxtmw5itwqK+TTkBuUIE45AxYPToqPtL5gg==", + "dev": true, + "dependencies": { + "@webassemblyjs/ast": "1.11.1", + "@xtuc/long": "4.2.2" + } + }, + "node_modules/@webpack-cli/configtest": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/@webpack-cli/configtest/-/configtest-1.2.0.tgz", + "integrity": "sha512-4FB8Tj6xyVkyqjj1OaTqCjXYULB9FMkqQ8yGrZjRDrYh0nOE+7Lhs45WioWQQMV+ceFlE368Ukhe6xdvJM9Egg==", + "dev": true, + "peerDependencies": { + "webpack": "4.x.x || 5.x.x", + "webpack-cli": "4.x.x" + } + }, + "node_modules/@webpack-cli/info": { + "version": "1.5.0", + "resolved": "https://registry.npmjs.org/@webpack-cli/info/-/info-1.5.0.tgz", + "integrity": "sha512-e8tSXZpw2hPl2uMJY6fsMswaok5FdlGNRTktvFk2sD8RjH0hE2+XistawJx1vmKteh4NmGmNUrp+Tb2w+udPcQ==", + "dev": true, + "dependencies": { + "envinfo": "^7.7.3" + }, + "peerDependencies": { + "webpack-cli": "4.x.x" + } + }, + "node_modules/@webpack-cli/serve": { + "version": "1.7.0", + "resolved": "https://registry.npmjs.org/@webpack-cli/serve/-/serve-1.7.0.tgz", + "integrity": "sha512-oxnCNGj88fL+xzV+dacXs44HcDwf1ovs3AuEzvP7mqXw7fQntqIhQ1BRmynh4qEKQSSSRSWVyXRjmTbZIX9V2Q==", + "dev": true, + "peerDependencies": { + "webpack-cli": "4.x.x" + }, + "peerDependenciesMeta": { + "webpack-dev-server": { + "optional": true + } + } + }, + "node_modules/@xtuc/ieee754": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/@xtuc/ieee754/-/ieee754-1.2.0.tgz", + "integrity": "sha512-DX8nKgqcGwsc0eJSqYt5lwP4DH5FlHnmuWWBRy7X0NcaGR0ZtuyeESgMwTYVEtxmsNGY+qit4QYT/MIYTOTPeA==", + "dev": true + }, + "node_modules/@xtuc/long": { + "version": "4.2.2", + "resolved": "https://registry.npmjs.org/@xtuc/long/-/long-4.2.2.tgz", + "integrity": "sha512-NuHqBY1PB/D8xU6s/thBgOAiAP7HOYDQ32+BFZILJ8ivkUkAHQnWfn6WhL79Owj1qmUnoN/YPhktdIoucipkAQ==", + "dev": true + }, + "node_modules/@yaireo/tagify": { + "version": "4.17.8", + "resolved": "https://registry.npmjs.org/@yaireo/tagify/-/tagify-4.17.8.tgz", + "integrity": "sha512-MqU3JhE/35r8qZPgfLshXfOkTkgtFEXh2Ja8J3Nn1rPuut28yorJLtxH67jbrbanE1gFH2vCvxe6meqM6oZ8rA==", + "peerDependencies": { + "prop-types": "^15.7.2" + } + }, + "node_modules/abbrev": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/abbrev/-/abbrev-1.1.1.tgz", + "integrity": "sha512-nne9/IiQ/hzIhY6pdDnbBtz7DjPTKrY00P/zvPSm5pOFkl6xuGrGnXn/VtTNNfNtAfZ9/1RtehkszU9qcTii0Q==" + }, + "node_modules/accepts": { + "version": "1.3.8", + "resolved": "https://registry.npmjs.org/accepts/-/accepts-1.3.8.tgz", + "integrity": "sha512-PYAthTa2m2VKxuvSD3DPC/Gy+U+sOA1LAuT8mkmRuvw+NACSaeXEQ+NHcVF7rONl6qcaxV3Uuemwawk+7+SJLw==", + "dev": true, + "dependencies": { + "mime-types": "~2.1.34", + "negotiator": "0.6.3" + }, + "engines": { + "node": ">= 0.6" + } + }, + "node_modules/acorn": { + "version": "8.8.2", + "resolved": "https://registry.npmjs.org/acorn/-/acorn-8.8.2.tgz", + "integrity": "sha512-xjIYgE8HBrkpd/sJqOGNspf8uHG+NOHGOw6a/Urj8taM2EXfdNAH2oFcPeIFfsv3+kz/mJrS5VuMqbNLjCa2vw==", + "bin": { + "acorn": "bin/acorn" + }, + "engines": { + "node": ">=0.4.0" + } + }, + "node_modules/acorn-import-assertions": { + "version": "1.8.0", + "resolved": "https://registry.npmjs.org/acorn-import-assertions/-/acorn-import-assertions-1.8.0.tgz", + "integrity": "sha512-m7VZ3jwz4eK6A4Vtt8Ew1/mNbP24u0FhdyfA7fSvnJR6LMdfOYnmuIrrJAgrYfYJ10F/otaHTtrtrtmHdMNzEw==", + "dev": true, + "peerDependencies": { + "acorn": "^8" + } + }, + "node_modules/acorn-node": { + "version": "1.8.2", + "resolved": "https://registry.npmjs.org/acorn-node/-/acorn-node-1.8.2.tgz", + "integrity": "sha512-8mt+fslDufLYntIoPAaIMUe/lrbrehIiwmR3t2k9LljIzoigEPF27eLk2hy8zSGzmR/ogr7zbRKINMo1u0yh5A==", + "dependencies": { + "acorn": "^7.0.0", + "acorn-walk": "^7.0.0", + "xtend": "^4.0.2" + } + }, + "node_modules/acorn-node/node_modules/acorn": { + "version": "7.4.1", + "resolved": "https://registry.npmjs.org/acorn/-/acorn-7.4.1.tgz", + "integrity": "sha512-nQyp0o1/mNdbTO1PO6kHkwSrmgZ0MT/jCCpNiwbUjGoRN4dlBhqJtoQuCnEOKzgTVwg0ZWiCoQy6SxMebQVh8A==", + "bin": { + "acorn": "bin/acorn" + }, + "engines": { + "node": ">=0.4.0" + } + }, + "node_modules/acorn-walk": { + "version": "7.2.0", + "resolved": "https://registry.npmjs.org/acorn-walk/-/acorn-walk-7.2.0.tgz", + "integrity": "sha512-OPdCF6GsMIP+Az+aWfAAOEt2/+iVDKE7oy6lJ098aoe59oAmK76qV6Gw60SbZ8jHuG2wH058GF4pLFbYamYrVA==", + "engines": { + "node": ">=0.4.0" + } + }, + "node_modules/adjust-sourcemap-loader": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/adjust-sourcemap-loader/-/adjust-sourcemap-loader-4.0.0.tgz", + "integrity": "sha512-OXwN5b9pCUXNQHJpwwD2qP40byEmSgzj8B4ydSN0uMNYWiFmJ6x6KwUllMmfk8Rwu/HJDFR7U8ubsWBoN0Xp0A==", + "dev": true, + "dependencies": { + "loader-utils": "^2.0.0", + "regex-parser": "^2.2.11" + }, + "engines": { + "node": ">=8.9" + } + }, + "node_modules/aggregate-error": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/aggregate-error/-/aggregate-error-3.1.0.tgz", + "integrity": "sha512-4I7Td01quW/RpocfNayFdFVk1qSuoh0E7JrbRJ16nH01HhKFQ88INq9Sd+nd72zqRySlr9BmDA8xlEJ6vJMrYA==", + "dev": true, + "dependencies": { + "clean-stack": "^2.0.0", + "indent-string": "^4.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/ajv": { + "version": "6.12.6", + "resolved": "https://registry.npmjs.org/ajv/-/ajv-6.12.6.tgz", + "integrity": "sha512-j3fVLgvTo527anyYyJOGTYJbG+vnnQYvE0m5mmkc1TK+nxAppkCLMIL0aZ4dblVCNoGShhm+kzE4ZUykBoMg4g==", + "dev": true, + "dependencies": { + "fast-deep-equal": "^3.1.1", + "fast-json-stable-stringify": "^2.0.0", + "json-schema-traverse": "^0.4.1", + "uri-js": "^4.2.2" + }, + "funding": { + "type": "github", + "url": "https://github.com/sponsors/epoberezkin" + } + }, + "node_modules/ajv-formats": { + "version": "2.1.1", + "resolved": "https://registry.npmjs.org/ajv-formats/-/ajv-formats-2.1.1.tgz", + "integrity": "sha512-Wx0Kx52hxE7C18hkMEggYlEifqWZtYaRgouJor+WMdPnQyEK13vgEWyVNup7SoeeoLMsr4kf5h6dOW11I15MUA==", + "dev": true, + "dependencies": { + "ajv": "^8.0.0" + }, + "peerDependencies": { + "ajv": "^8.0.0" + }, + "peerDependenciesMeta": { + "ajv": { + "optional": true + } + } + }, + "node_modules/ajv-formats/node_modules/ajv": { + "version": "8.12.0", + "resolved": "https://registry.npmjs.org/ajv/-/ajv-8.12.0.tgz", + "integrity": "sha512-sRu1kpcO9yLtYxBKvqfTeh9KzZEwO3STyX1HT+4CaDzC6HpTGYhIhPIzj9XuKU7KYDwnaeh5hcOwjy1QuJzBPA==", + "dev": true, + "dependencies": { + "fast-deep-equal": "^3.1.1", + "json-schema-traverse": "^1.0.0", + "require-from-string": "^2.0.2", + "uri-js": "^4.2.2" + }, + "funding": { + "type": "github", + "url": "https://github.com/sponsors/epoberezkin" + } + }, + "node_modules/ajv-formats/node_modules/json-schema-traverse": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/json-schema-traverse/-/json-schema-traverse-1.0.0.tgz", + "integrity": "sha512-NM8/P9n3XjXhIZn1lLhkFaACTOURQXjWhV4BA/RnOv8xvgqtqpAX9IO4mRQxSx1Rlo4tqzeqb0sOlruaOy3dug==", + "dev": true + }, + "node_modules/ajv-keywords": { + "version": "3.5.2", + "resolved": "https://registry.npmjs.org/ajv-keywords/-/ajv-keywords-3.5.2.tgz", + "integrity": "sha512-5p6WTN0DdTGVQk6VjcEju19IgaHudalcfabD7yhDGeA6bcQnmL+CpveLJq/3hvfwd1aof6L386Ougkx6RfyMIQ==", + "dev": true, + "peerDependencies": { + "ajv": "^6.9.1" + } + }, + "node_modules/alphanum-sort": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/alphanum-sort/-/alphanum-sort-1.0.2.tgz", + "integrity": "sha512-0FcBfdcmaumGPQ0qPn7Q5qTgz/ooXgIyp1rf8ik5bGX8mpE2YHjC0P/eyQvxu1GURYQgq9ozf2mteQ5ZD9YiyQ==", + "dev": true + }, + "node_modules/alpinejs": { + "version": "3.12.0", + "resolved": "https://registry.npmjs.org/alpinejs/-/alpinejs-3.12.0.tgz", + "integrity": "sha512-YENcRBA9dlwR8PsZNFMTHbmdlTNwd1BkCeivPvOzzCKHas6AfwNRsDK9UEFmE5dXTMEZjnnpCTxV8vkdpWiOCw==", + "dev": true, + "dependencies": { + "@vue/reactivity": "~3.1.1" + } + }, + "node_modules/amdefine": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/amdefine/-/amdefine-1.0.1.tgz", + "integrity": "sha512-S2Hw0TtNkMJhIabBwIojKL9YHO5T0n5eNqWJ7Lrlel/zDbftQpxpapi8tZs3X1HWa+u+QeydGmzzNU0m09+Rcg==", + "optional": true, + "engines": { + "node": ">=0.4.2" + } + }, + "node_modules/angular-html-parser": { + "version": "1.7.0", + "resolved": "https://registry.npmjs.org/angular-html-parser/-/angular-html-parser-1.7.0.tgz", + "integrity": "sha512-/yjeqDQXGblZuFMI6vpDgiIDuv816QpIqa/mCotc0I4R0F5t5sfX1ntZ8VsBVQOUYRjPw8ggYlPZto76gHtf7Q==", + "dependencies": { + "tslib": "^1.9.3" + }, + "engines": { + "node": ">= 6" + } + }, + "node_modules/angular-html-parser/node_modules/tslib": { + "version": "1.14.1", + "resolved": "https://registry.npmjs.org/tslib/-/tslib-1.14.1.tgz", + "integrity": "sha512-Xni35NKzjgMrwevysHTCArtLDpPvye8zV/0E4EyYn43P7/7qvQwPh9BGkHewbMulVntbigmcT7rdX3BNo9wRJg==" + }, + "node_modules/ansi-html-community": { + "version": "0.0.8", + "resolved": "https://registry.npmjs.org/ansi-html-community/-/ansi-html-community-0.0.8.tgz", + "integrity": "sha512-1APHAyr3+PCamwNw3bXCPp4HFLONZt/yIH0sZp0/469KWNTEy+qN5jQ3GVX6DMZ1UXAi34yVwtTeaG/HpBuuzw==", + "dev": true, + "engines": [ + "node >= 0.8.0" + ], + "bin": { + "ansi-html": "bin/ansi-html" + } + }, + "node_modules/ansi-regex": { + "version": "5.0.1", + "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-5.0.1.tgz", + "integrity": "sha512-quJQXlTSUGL2LH9SUXo8VwsY4soanhgo6LNSm84E1LBcE8s3O0wpdiRzyR9z/ZZJMlMWv37qOOb9pdJlMUEKFQ==", + "engines": { + "node": ">=8" + } + }, + "node_modules/ansi-styles": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", + "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", + "dependencies": { + "color-convert": "^2.0.1" + }, + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/chalk/ansi-styles?sponsor=1" + } + }, + "node_modules/anymatch": { + "version": "3.1.3", + "resolved": "https://registry.npmjs.org/anymatch/-/anymatch-3.1.3.tgz", + "integrity": "sha512-KMReFUr0B4t+D+OBkjR3KYqvocp2XaSzO55UcB6mgQMd3KbcE+mWTyvVV7D/zsdEbNnV6acZUutkiHQXvTr1Rw==", + "dependencies": { + "normalize-path": "^3.0.0", + "picomatch": "^2.0.4" + }, + "engines": { + "node": ">= 8" + } + }, + "node_modules/apexcharts": { + "version": "3.37.3", + "resolved": "https://registry.npmjs.org/apexcharts/-/apexcharts-3.37.3.tgz", + "integrity": "sha512-+rnUui9uC3Mvh9qbQxUfqBnuJ0nAJOYTp+yKnA5bVmmndKXj5X/Q+OVIxkq0Jr5ysiK200Dsg1Tuz/OUG+DEpw==", + "dependencies": { + "svg.draggable.js": "^2.2.2", + "svg.easing.js": "^2.0.0", + "svg.filter.js": "^2.0.2", + "svg.pathmorphing.js": "^0.1.3", + "svg.resize.js": "^1.4.3", + "svg.select.js": "^3.0.1" + } + }, + "node_modules/argparse": { + "version": "1.0.10", + "resolved": "https://registry.npmjs.org/argparse/-/argparse-1.0.10.tgz", + "integrity": "sha512-o5Roy6tNG4SL/FOkCAN6RzjiakZS25RLYFrcMttJqbdd8BWrnA+fGz57iN5Pb06pvBGvl5gQ0B48dJlslXvoTg==", + "dev": true, + "dependencies": { + "sprintf-js": "~1.0.2" + } + }, + "node_modules/array-buffer-byte-length": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/array-buffer-byte-length/-/array-buffer-byte-length-1.0.0.tgz", + "integrity": "sha512-LPuwb2P+NrQw3XhxGc36+XSvuBPopovXYTR9Ew++Du9Yb/bx5AzBfrIsBoj0EZUifjQU+sHL21sseZ3jerWO/A==", + "dev": true, + "dependencies": { + "call-bind": "^1.0.2", + "is-array-buffer": "^3.0.1" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/array-flatten": { + "version": "2.1.2", + "resolved": "https://registry.npmjs.org/array-flatten/-/array-flatten-2.1.2.tgz", + "integrity": "sha512-hNfzcOV8W4NdualtqBFPyVO+54DSJuZGY9qT4pRroB6S9e3iiido2ISIC5h9R2sPJ8H3FHCIiEnsv1lPXO3KtQ==", + "dev": true + }, + "node_modules/array-from": { + "version": "2.1.1", + "resolved": "https://registry.npmjs.org/array-from/-/array-from-2.1.1.tgz", + "integrity": "sha512-GQTc6Uupx1FCavi5mPzBvVT7nEOeWMmUA9P95wpfpW1XwMSKs+KaymD5C2Up7KAUKg/mYwbsUYzdZWcoajlNZg==" + }, + "node_modules/array-union": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/array-union/-/array-union-2.1.0.tgz", + "integrity": "sha512-HGyxoOTYUyCM6stUe6EJgnd4EoewAI7zMdfqO+kGjnlZmBDz/cR5pf8r/cR4Wq60sL/p0IkcjUEEPwS3GFrIyw==", + "engines": { + "node": ">=8" + } + }, + "node_modules/array.prototype.reduce": { + "version": "1.0.5", + "resolved": "https://registry.npmjs.org/array.prototype.reduce/-/array.prototype.reduce-1.0.5.tgz", + "integrity": "sha512-kDdugMl7id9COE8R7MHF5jWk7Dqt/fs4Pv+JXoICnYwqpjjjbUurz6w5fT5IG6brLdJhv6/VoHB0H7oyIBXd+Q==", + "dev": true, + "dependencies": { + "call-bind": "^1.0.2", + "define-properties": "^1.1.4", + "es-abstract": "^1.20.4", + "es-array-method-boxes-properly": "^1.0.0", + "is-string": "^1.0.7" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/asn1.js": { + "version": "5.4.1", + "resolved": "https://registry.npmjs.org/asn1.js/-/asn1.js-5.4.1.tgz", + "integrity": "sha512-+I//4cYPccV8LdmBLiX8CYvf9Sp3vQsrqu2QNXRcrbiWvcx/UdlFiqUJJzxRQxgsZmvhXhn4cSKeSmoFjVdupA==", + "dev": true, + "dependencies": { + "bn.js": "^4.0.0", + "inherits": "^2.0.1", + "minimalistic-assert": "^1.0.0", + "safer-buffer": "^2.1.0" + } + }, + "node_modules/asn1.js/node_modules/bn.js": { + "version": "4.12.0", + "resolved": "https://registry.npmjs.org/bn.js/-/bn.js-4.12.0.tgz", + "integrity": "sha512-c98Bf3tPniI+scsdk237ku1Dc3ujXQTSgyiPUDEOe7tRkhrqridvh8klBv0HCEso1OLOYcHuCv/cS6DNxKH+ZA==", + "dev": true + }, + "node_modules/assert": { + "version": "1.5.0", + "resolved": "https://registry.npmjs.org/assert/-/assert-1.5.0.tgz", + "integrity": "sha512-EDsgawzwoun2CZkCgtxJbv392v4nbk9XDD06zI+kQYoBM/3RBWLlEyJARDOmhAAosBjWACEkKL6S+lIZtcAubA==", + "dev": true, + "dependencies": { + "object-assign": "^4.1.1", + "util": "0.10.3" + } + }, + "node_modules/assert/node_modules/inherits": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/inherits/-/inherits-2.0.1.tgz", + "integrity": "sha512-8nWq2nLTAwd02jTqJExUYFSD/fKq6VH9Y/oG2accc/kdI0V98Bag8d5a4gi3XHz73rDWa2PvTtvcWYquKqSENA==", + "dev": true + }, + "node_modules/assert/node_modules/util": { + "version": "0.10.3", + "resolved": "https://registry.npmjs.org/util/-/util-0.10.3.tgz", + "integrity": "sha512-5KiHfsmkqacuKjkRkdV7SsfDJ2EGiPsK92s2MhNSY0craxjTdKTtqKsJaCWp4LW33ZZ0OPUv1WO/TFvNQRiQxQ==", + "dev": true, + "dependencies": { + "inherits": "2.0.1" + } + }, + "node_modules/ast-transform": { + "version": "0.0.0", + "resolved": "https://registry.npmjs.org/ast-transform/-/ast-transform-0.0.0.tgz", + "integrity": "sha512-e/JfLiSoakfmL4wmTGPjv0HpTICVmxwXgYOB8x+mzozHL8v+dSfCbrJ8J8hJ0YBP0XcYu1aLZ6b/3TnxNK3P2A==", + "dependencies": { + "escodegen": "~1.2.0", + "esprima": "~1.0.4", + "through": "~2.3.4" + } + }, + "node_modules/ast-types": { + "version": "0.7.8", + "resolved": "https://registry.npmjs.org/ast-types/-/ast-types-0.7.8.tgz", + "integrity": "sha512-RIOpVnVlltB6PcBJ5BMLx+H+6JJ/zjDGU0t7f0L6c2M1dqcK92VQopLBlPQ9R80AVXelfqYgjcPLtHtDbNFg0Q==", + "engines": { + "node": ">= 0.6" + } + }, + "node_modules/async": { + "version": "2.6.4", + "resolved": "https://registry.npmjs.org/async/-/async-2.6.4.tgz", + "integrity": "sha512-mzo5dfJYwAn29PeiJ0zvwTo04zj8HDJj0Mn8TD7sno7q12prdbnasKJHhkm2c1LgrhlJ0teaea8860oxi51mGA==", + "dev": true, + "dependencies": { + "lodash": "^4.17.14" + } + }, + "node_modules/asynckit": { + "version": "0.4.0", + "resolved": "https://registry.npmjs.org/asynckit/-/asynckit-0.4.0.tgz", + "integrity": "sha512-Oei9OH4tRh0YqU3GxhX79dM/mwVgvbZJaSNaRk+bshkj0S5cfHcgYakreBjrHwatXKbz+IoIdYLxrKim2MjW0Q==", + "dev": true + }, + "node_modules/atoa": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/atoa/-/atoa-1.0.0.tgz", + "integrity": "sha512-VVE1H6cc4ai+ZXo/CRWoJiHXrA1qfA31DPnx6D20+kSI547hQN5Greh51LQ1baMRMfxO5K5M4ImMtZbZt2DODQ==" + }, + "node_modules/autoprefixer": { + "version": "10.4.14", + "resolved": "https://registry.npmjs.org/autoprefixer/-/autoprefixer-10.4.14.tgz", + "integrity": "sha512-FQzyfOsTlwVzjHxKEqRIAdJx9niO6VCBCoEwax/VLSoQF29ggECcPuBqUMZ+u8jCZOPSy8b8/8KnuFbp0SaFZQ==", + "dev": true, + "funding": [ + { + "type": "opencollective", + "url": "https://opencollective.com/postcss/" + }, + { + "type": "tidelift", + "url": "https://tidelift.com/funding/github/npm/autoprefixer" + } + ], + "dependencies": { + "browserslist": "^4.21.5", + "caniuse-lite": "^1.0.30001464", + "fraction.js": "^4.2.0", + "normalize-range": "^0.1.2", + "picocolors": "^1.0.0", + "postcss-value-parser": "^4.2.0" + }, + "bin": { + "autoprefixer": "bin/autoprefixer" + }, + "engines": { + "node": "^10 || ^12 || >=14" + }, + "peerDependencies": { + "postcss": "^8.1.0" + } + }, + "node_modules/autosize": { + "version": "5.0.2", + "resolved": "https://registry.npmjs.org/autosize/-/autosize-5.0.2.tgz", + "integrity": "sha512-FPVt5ynkqUAA9gcMZnJHka1XfQgr1WNd/yRfIjmj5WGmjua+u5Hl9hn8M2nU5CNy2bEIcj1ZUwXq7IOHsfZG9w==" + }, + "node_modules/available-typed-arrays": { + "version": "1.0.5", + "resolved": "https://registry.npmjs.org/available-typed-arrays/-/available-typed-arrays-1.0.5.tgz", + "integrity": "sha512-DMD0KiN46eipeziST1LPP/STfDU0sufISXmjSgvVsoU2tqxctQeASejWcfNtxYKqETM1UxQ8sp2OrSBWpHY6sw==", + "dev": true, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/axios": { + "version": "1.3.5", + "resolved": "https://registry.npmjs.org/axios/-/axios-1.3.5.tgz", + "integrity": "sha512-glL/PvG/E+xCWwV8S6nCHcrfg1exGx7vxyUIivIA1iL7BIh6bePylCfVHwp6k13ao7SATxB6imau2kqY+I67kw==", + "dev": true, + "dependencies": { + "follow-redirects": "^1.15.0", + "form-data": "^4.0.0", + "proxy-from-env": "^1.1.0" + } + }, + "node_modules/babel-loader": { + "version": "8.3.0", + "resolved": "https://registry.npmjs.org/babel-loader/-/babel-loader-8.3.0.tgz", + "integrity": "sha512-H8SvsMF+m9t15HNLMipppzkC+Y2Yq+v3SonZyU70RBL/h1gxPkH08Ot8pEE9Z4Kd+czyWJClmFS8qzIP9OZ04Q==", + "dev": true, + "dependencies": { + "find-cache-dir": "^3.3.1", + "loader-utils": "^2.0.0", + "make-dir": "^3.1.0", + "schema-utils": "^2.6.5" + }, + "engines": { + "node": ">= 8.9" + }, + "peerDependencies": { + "@babel/core": "^7.0.0", + "webpack": ">=2" + } + }, + "node_modules/babel-plugin-polyfill-corejs2": { + "version": "0.3.3", + "resolved": "https://registry.npmjs.org/babel-plugin-polyfill-corejs2/-/babel-plugin-polyfill-corejs2-0.3.3.tgz", + "integrity": "sha512-8hOdmFYFSZhqg2C/JgLUQ+t52o5nirNwaWM2B9LWteozwIvM14VSwdsCAUET10qT+kmySAlseadmfeeSWFCy+Q==", + "dev": true, + "dependencies": { + "@babel/compat-data": "^7.17.7", + "@babel/helper-define-polyfill-provider": "^0.3.3", + "semver": "^6.1.1" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/babel-plugin-polyfill-corejs2/node_modules/semver": { + "version": "6.3.0", + "resolved": "https://registry.npmjs.org/semver/-/semver-6.3.0.tgz", + "integrity": "sha512-b39TBaTSfV6yBrapU89p5fKekE2m/NwnDocOVruQFS1/veMgdzuPcnOM34M6CwxW8jH/lxEa5rBoDeUwu5HHTw==", + "dev": true, + "bin": { + "semver": "bin/semver.js" + } + }, + "node_modules/babel-plugin-polyfill-corejs3": { + "version": "0.6.0", + "resolved": "https://registry.npmjs.org/babel-plugin-polyfill-corejs3/-/babel-plugin-polyfill-corejs3-0.6.0.tgz", + "integrity": "sha512-+eHqR6OPcBhJOGgsIar7xoAB1GcSwVUA3XjAd7HJNzOXT4wv6/H7KIdA/Nc60cvUlDbKApmqNvD1B1bzOt4nyA==", + "dev": true, + "dependencies": { + "@babel/helper-define-polyfill-provider": "^0.3.3", + "core-js-compat": "^3.25.1" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/babel-plugin-polyfill-regenerator": { + "version": "0.4.1", + "resolved": "https://registry.npmjs.org/babel-plugin-polyfill-regenerator/-/babel-plugin-polyfill-regenerator-0.4.1.tgz", + "integrity": "sha512-NtQGmyQDXjQqQ+IzRkBVwEOz9lQ4zxAQZgoAYEtU9dJjnl1Oc98qnN7jcp+bE7O7aYzVpavXE3/VKXNzUbh7aw==", + "dev": true, + "dependencies": { + "@babel/helper-define-polyfill-provider": "^0.3.3" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/bail": { + "version": "1.0.5", + "resolved": "https://registry.npmjs.org/bail/-/bail-1.0.5.tgz", + "integrity": "sha512-xFbRxM1tahm08yHBP16MMjVUAvDaBMD38zsM9EMAUN61omwLmKlOpB/Zku5QkjZ8TZ4vn53pj+t518cH0S03RQ==", + "funding": { + "type": "github", + "url": "https://github.com/sponsors/wooorm" + } + }, + "node_modules/balanced-match": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/balanced-match/-/balanced-match-1.0.2.tgz", + "integrity": "sha512-3oSeUO0TMV67hN1AmbXsK4yaqU7tjiHlbxRDZOpH0KW9+CeX4bRAaX0Anxt0tx2MrpRpWwQaPwIlISEJhYU5Pw==" + }, + "node_modules/base64-js": { + "version": "1.5.1", + "resolved": "https://registry.npmjs.org/base64-js/-/base64-js-1.5.1.tgz", + "integrity": "sha512-AKpaYlHn8t4SVbOHCy+b5+KKgvR4vrsD8vbvrbiQJps7fKDTkjkDry6ji0rUJjC0kzbNePLwzxq8iypo41qeWA==", + "funding": [ + { + "type": "github", + "url": "https://github.com/sponsors/feross" + }, + { + "type": "patreon", + "url": "https://www.patreon.com/feross" + }, + { + "type": "consulting", + "url": "https://feross.org/support" + } + ] + }, + "node_modules/batch": { + "version": "0.6.1", + "resolved": "https://registry.npmjs.org/batch/-/batch-0.6.1.tgz", + "integrity": "sha512-x+VAiMRL6UPkx+kudNvxTl6hB2XNNCG2r+7wixVfIYwu/2HKRXimwQyaumLjMveWvT2Hkd/cAJw+QBMfJ/EKVw==", + "dev": true + }, + "node_modules/big.js": { + "version": "5.2.2", + "resolved": "https://registry.npmjs.org/big.js/-/big.js-5.2.2.tgz", + "integrity": "sha512-vyL2OymJxmarO8gxMr0mhChsO9QGwhynfuu4+MHTAW6czfq9humCB7rKpUjDd9YUiDPU4mzpyupFSvOClAwbmQ==", + "dev": true, + "engines": { + "node": "*" + } + }, + "node_modules/binary-extensions": { + "version": "2.2.0", + "resolved": "https://registry.npmjs.org/binary-extensions/-/binary-extensions-2.2.0.tgz", + "integrity": "sha512-jDctJ/IVQbZoJykoeHbhXpOlNBqGNcwXJKJog42E5HDPUwQTSdjCHdihjj0DlnheQ7blbT6dHOafNAiS8ooQKA==", + "engines": { + "node": ">=8" + } + }, + "node_modules/bn.js": { + "version": "5.2.1", + "resolved": "https://registry.npmjs.org/bn.js/-/bn.js-5.2.1.tgz", + "integrity": "sha512-eXRvHzWyYPBuB4NBy0cmYQjGitUrtqwbvlzP3G6VFnNRbsZQIxQ10PbKKHt8gZ/HW/D/747aDl+QkDqg3KQLMQ==", + "dev": true + }, + "node_modules/body-parser": { + "version": "1.20.1", + "resolved": "https://registry.npmjs.org/body-parser/-/body-parser-1.20.1.tgz", + "integrity": "sha512-jWi7abTbYwajOytWCQc37VulmWiRae5RyTpaCyDcS5/lMdtwSz5lOpDE67srw/HYe35f1z3fDQw+3txg7gNtWw==", + "dev": true, + "dependencies": { + "bytes": "3.1.2", + "content-type": "~1.0.4", + "debug": "2.6.9", + "depd": "2.0.0", + "destroy": "1.2.0", + "http-errors": "2.0.0", + "iconv-lite": "0.4.24", + "on-finished": "2.4.1", + "qs": "6.11.0", + "raw-body": "2.5.1", + "type-is": "~1.6.18", + "unpipe": "1.0.0" + }, + "engines": { + "node": ">= 0.8", + "npm": "1.2.8000 || >= 1.4.16" + } + }, + "node_modules/body-parser/node_modules/bytes": { + "version": "3.1.2", + "resolved": "https://registry.npmjs.org/bytes/-/bytes-3.1.2.tgz", + "integrity": "sha512-/Nf7TyzTx6S3yRJObOAV7956r8cr2+Oj8AC5dt8wSP3BQAoeX58NoHyCU8P8zGkNXStjTSi6fzO6F0pBdcYbEg==", + "dev": true, + "engines": { + "node": ">= 0.8" + } + }, + "node_modules/body-parser/node_modules/debug": { + "version": "2.6.9", + "resolved": "https://registry.npmjs.org/debug/-/debug-2.6.9.tgz", + "integrity": "sha512-bC7ElrdJaJnPbAP+1EotYvqZsb3ecl5wi6Bfi6BJTUcNowp6cvspg0jXznRTKDjm/E7AdgFBVeAPVMNcKGsHMA==", + "dev": true, + "dependencies": { + "ms": "2.0.0" + } + }, + "node_modules/body-parser/node_modules/iconv-lite": { + "version": "0.4.24", + "resolved": "https://registry.npmjs.org/iconv-lite/-/iconv-lite-0.4.24.tgz", + "integrity": "sha512-v3MXnZAcvnywkTUEZomIActle7RXXeedOR31wwl7VlyoXO4Qi9arvSenNQWne1TcRwhCL1HwLI21bEqdpj8/rA==", + "dev": true, + "dependencies": { + "safer-buffer": ">= 2.1.2 < 3" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/body-parser/node_modules/ms": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/ms/-/ms-2.0.0.tgz", + "integrity": "sha512-Tpp60P6IUJDTuOq/5Z8cdskzJujfwqfOTkrwIwj7IRISpnkJnT6SyJ4PCPnGMoFjC9ddhal5KVIYtAt97ix05A==", + "dev": true + }, + "node_modules/bonjour-service": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/bonjour-service/-/bonjour-service-1.1.1.tgz", + "integrity": "sha512-Z/5lQRMOG9k7W+FkeGTNjh7htqn/2LMnfOvBZ8pynNZCM9MwkQkI3zeI4oz09uWdcgmgHugVvBqxGg4VQJ5PCg==", + "dev": true, + "dependencies": { + "array-flatten": "^2.1.2", + "dns-equal": "^1.0.0", + "fast-deep-equal": "^3.1.3", + "multicast-dns": "^7.2.5" + } + }, + "node_modules/boolbase": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/boolbase/-/boolbase-1.0.0.tgz", + "integrity": "sha512-JZOSA7Mo9sNGB8+UjSgzdLtokWAky1zbztM3WRLCbZ70/3cTANmQmOdR7y2g+J0e2WXywy1yS468tY+IruqEww==", + "dev": true + }, + "node_modules/bootstrap": { + "version": "5.3.0-alpha1", + "resolved": "https://registry.npmjs.org/bootstrap/-/bootstrap-5.3.0-alpha1.tgz", + "integrity": "sha512-ABZpKK4ObS3kKlIqH+ZVDqoy5t/bhFG0oHTAzByUdon7YIom0lpCeTqRniDzJmbtcWkNe800VVPBiJgxSYTYew==", + "funding": [ + { + "type": "github", + "url": "https://github.com/sponsors/twbs" + }, + { + "type": "opencollective", + "url": "https://opencollective.com/bootstrap" + } + ], + "peerDependencies": { + "@popperjs/core": "^2.11.6" + } + }, + "node_modules/bootstrap-cookie-alert": { + "version": "1.2.1", + "resolved": "https://registry.npmjs.org/bootstrap-cookie-alert/-/bootstrap-cookie-alert-1.2.1.tgz", + "integrity": "sha512-T4nzcJkrCJCfxbw9eRM93EwO3/seSL/wbjsDLLOdLIhhksb07zhj4NOgNJUwtLc7dkI28ef1KZU9yYzHZMUXvQ==" + }, + "node_modules/bootstrap-daterangepicker": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/bootstrap-daterangepicker/-/bootstrap-daterangepicker-3.1.0.tgz", + "integrity": "sha512-oaQZx6ZBDo/dZNyXGVi2rx5GmFXThyQLAxdtIqjtLlYVaQUfQALl5JZMJJZzyDIX7blfy4ppZPAJ10g8Ma4d/g==", + "dependencies": { + "jquery": ">=1.10", + "moment": "^2.9.0" + } + }, + "node_modules/bootstrap-icons": { + "version": "1.10.4", + "resolved": "https://registry.npmjs.org/bootstrap-icons/-/bootstrap-icons-1.10.4.tgz", + "integrity": "sha512-eI3HyIUmpGKRiRv15FCZccV+2sreGE2NnmH8mtxV/nPOzQVu0sPEj8HhF1MwjJ31IhjF0rgMvtYOX5VqIzcb/A==" + }, + "node_modules/bootstrap-maxlength": { + "version": "1.10.1", + "resolved": "https://registry.npmjs.org/bootstrap-maxlength/-/bootstrap-maxlength-1.10.1.tgz", + "integrity": "sha512-VYQosg0ojUNq05PlZcTwETm0E0Aoe/cclRmCC27QrHk/sY0Q75PUvgHYujN0gb2CD3n2olJfPeqx3EGAqpKjww==", + "dependencies": { + "bootstrap": "^4.4.1", + "jquery": "^3.5.1", + "qunit": "^2.10.0" + } + }, + "node_modules/bootstrap-maxlength/node_modules/bootstrap": { + "version": "4.6.2", + "resolved": "https://registry.npmjs.org/bootstrap/-/bootstrap-4.6.2.tgz", + "integrity": "sha512-51Bbp/Uxr9aTuy6ca/8FbFloBUJZLHwnhTcnjIeRn2suQWsWzcuJhGjKDB5eppVte/8oCdOL3VuwxvZDUggwGQ==", + "funding": [ + { + "type": "github", + "url": "https://github.com/sponsors/twbs" + }, + { + "type": "opencollective", + "url": "https://opencollective.com/bootstrap" + } + ], + "peerDependencies": { + "jquery": "1.9.1 - 3", + "popper.js": "^1.16.1" + } + }, + "node_modules/bootstrap-multiselectsplitter": { + "version": "1.0.4", + "resolved": "https://registry.npmjs.org/bootstrap-multiselectsplitter/-/bootstrap-multiselectsplitter-1.0.4.tgz", + "integrity": "sha512-G1TyuzRUOdcf9iuSoTcYPKVr1waMm6rwoBbDi8/nXM7GX5eF3qZGZXLMeT8tGoaYwuQIsZXGerMtq5VTFQgcHQ==" + }, + "node_modules/brace-expansion": { + "version": "1.1.11", + "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-1.1.11.tgz", + "integrity": "sha512-iCuPHDFgrHX7H2vEI/5xpz07zSHB00TpugqhmYtVmMO6518mCuRMoOYFldEBl0g187ufozdaHgWKcYFb61qGiA==", + "dependencies": { + "balanced-match": "^1.0.0", + "concat-map": "0.0.1" + } + }, + "node_modules/braces": { + "version": "3.0.2", + "resolved": "https://registry.npmjs.org/braces/-/braces-3.0.2.tgz", + "integrity": "sha512-b8um+L1RzM3WDSzvhm6gIz1yfTbBt6YTlcEKAvsmqCZZFw46z626lVj9j1yEPW33H5H+lBQpZMP1k8l+78Ha0A==", + "dependencies": { + "fill-range": "^7.0.1" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/brfs": { + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/brfs/-/brfs-2.0.2.tgz", + "integrity": "sha512-IrFjVtwu4eTJZyu8w/V2gxU7iLTtcHih67sgEdzrhjLBMHp2uYefUBfdM4k2UvcuWMgV7PQDZHSLeNWnLFKWVQ==", + "dependencies": { + "quote-stream": "^1.0.1", + "resolve": "^1.1.5", + "static-module": "^3.0.2", + "through2": "^2.0.0" + }, + "bin": { + "brfs": "bin/cmd.js" + } + }, + "node_modules/brorand": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/brorand/-/brorand-1.1.0.tgz", + "integrity": "sha512-cKV8tMCEpQs4hK/ik71d6LrPOnpkpGBR0wzxqr68g2m/LB2GxVYQroAjMJZRVM1Y4BCjCKc3vAamxSzOY2RP+w==", + "dev": true + }, + "node_modules/brotli": { + "version": "1.3.3", + "resolved": "https://registry.npmjs.org/brotli/-/brotli-1.3.3.tgz", + "integrity": "sha512-oTKjJdShmDuGW94SyyaoQvAjf30dZaHnjJ8uAF+u2/vGJkJbJPJAT1gDiOJP5v1Zb6f9KEyW/1HpuaWIXtGHPg==", + "dependencies": { + "base64-js": "^1.1.2" + } + }, + "node_modules/browser-resolve": { + "version": "1.11.3", + "resolved": "https://registry.npmjs.org/browser-resolve/-/browser-resolve-1.11.3.tgz", + "integrity": "sha512-exDi1BYWB/6raKHmDTCicQfTkqwN5fioMFV4j8BsfMU4R2DK/QfZfK7kOVkmWCNANf0snkBzqGqAJBao9gZMdQ==", + "dependencies": { + "resolve": "1.1.7" + } + }, + "node_modules/browser-resolve/node_modules/resolve": { + "version": "1.1.7", + "resolved": "https://registry.npmjs.org/resolve/-/resolve-1.1.7.tgz", + "integrity": "sha512-9znBF0vBcaSN3W2j7wKvdERPwqTxSpCq+if5C0WoTCyV9n24rua28jeuQ2pL/HOf+yUe/Mef+H/5p60K0Id3bg==" + }, + "node_modules/browserify-aes": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/browserify-aes/-/browserify-aes-1.2.0.tgz", + "integrity": "sha512-+7CHXqGuspUn/Sl5aO7Ea0xWGAtETPXNSAjHo48JfLdPWcMng33Xe4znFvQweqc/uzk5zSOI3H52CYnjCfb5hA==", + "dev": true, + "dependencies": { + "buffer-xor": "^1.0.3", + "cipher-base": "^1.0.0", + "create-hash": "^1.1.0", + "evp_bytestokey": "^1.0.3", + "inherits": "^2.0.1", + "safe-buffer": "^5.0.1" + } + }, + "node_modules/browserify-cipher": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/browserify-cipher/-/browserify-cipher-1.0.1.tgz", + "integrity": "sha512-sPhkz0ARKbf4rRQt2hTpAHqn47X3llLkUGn+xEJzLjwY8LRs2p0v7ljvI5EyoRO/mexrNunNECisZs+gw2zz1w==", + "dev": true, + "dependencies": { + "browserify-aes": "^1.0.4", + "browserify-des": "^1.0.0", + "evp_bytestokey": "^1.0.0" + } + }, + "node_modules/browserify-des": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/browserify-des/-/browserify-des-1.0.2.tgz", + "integrity": "sha512-BioO1xf3hFwz4kc6iBhI3ieDFompMhrMlnDFC4/0/vd5MokpuAc3R+LYbwTA9A5Yc9pq9UYPqffKpW2ObuwX5A==", + "dev": true, + "dependencies": { + "cipher-base": "^1.0.1", + "des.js": "^1.0.0", + "inherits": "^2.0.1", + "safe-buffer": "^5.1.2" + } + }, + "node_modules/browserify-optional": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/browserify-optional/-/browserify-optional-1.0.1.tgz", + "integrity": "sha512-VrhjbZ+Ba5mDiSYEuPelekQMfTbhcA2DhLk2VQWqdcCROWeFqlTcXZ7yfRkXCIl8E+g4gINJYJiRB7WEtfomAQ==", + "dependencies": { + "ast-transform": "0.0.0", + "ast-types": "^0.7.0", + "browser-resolve": "^1.8.1" + } + }, + "node_modules/browserify-rsa": { + "version": "4.1.0", + "resolved": "https://registry.npmjs.org/browserify-rsa/-/browserify-rsa-4.1.0.tgz", + "integrity": "sha512-AdEER0Hkspgno2aR97SAf6vi0y0k8NuOpGnVH3O99rcA5Q6sh8QxcngtHuJ6uXwnfAXNM4Gn1Gb7/MV1+Ymbog==", + "dev": true, + "dependencies": { + "bn.js": "^5.0.0", + "randombytes": "^2.0.1" + } + }, + "node_modules/browserify-sign": { + "version": "4.2.1", + "resolved": "https://registry.npmjs.org/browserify-sign/-/browserify-sign-4.2.1.tgz", + "integrity": "sha512-/vrA5fguVAKKAVTNJjgSm1tRQDHUU6DbwO9IROu/0WAzC8PKhucDSh18J0RMvVeHAn5puMd+QHC2erPRNf8lmg==", + "dev": true, + "dependencies": { + "bn.js": "^5.1.1", + "browserify-rsa": "^4.0.1", + "create-hash": "^1.2.0", + "create-hmac": "^1.1.7", + "elliptic": "^6.5.3", + "inherits": "^2.0.4", + "parse-asn1": "^5.1.5", + "readable-stream": "^3.6.0", + "safe-buffer": "^5.2.0" + } + }, + "node_modules/browserify-sign/node_modules/readable-stream": { + "version": "3.6.2", + "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-3.6.2.tgz", + "integrity": "sha512-9u/sniCrY3D5WdsERHzHE4G2YCXqoG5FTHUiCC4SIbr6XcLZBY05ya9EKjYek9O5xOAwjGq+1JdGBAS7Q9ScoA==", + "dev": true, + "dependencies": { + "inherits": "^2.0.3", + "string_decoder": "^1.1.1", + "util-deprecate": "^1.0.1" + }, + "engines": { + "node": ">= 6" + } + }, + "node_modules/browserify-zlib": { + "version": "0.2.0", + "resolved": "https://registry.npmjs.org/browserify-zlib/-/browserify-zlib-0.2.0.tgz", + "integrity": "sha512-Z942RysHXmJrhqk88FmKBVq/v5tqmSkDz7p54G/MGyjMnCFFnC79XWNbg+Vta8W6Wb2qtSZTSxIGkJrRpCFEiA==", + "dev": true, + "dependencies": { + "pako": "~1.0.5" + } + }, + "node_modules/browserslist": { + "version": "4.21.5", + "resolved": "https://registry.npmjs.org/browserslist/-/browserslist-4.21.5.tgz", + "integrity": "sha512-tUkiguQGW7S3IhB7N+c2MV/HZPSCPAAiYBZXLsBhFB/PCy6ZKKsZrmBayHV9fdGV/ARIfJ14NkxKzRDjvp7L6w==", + "dev": true, + "funding": [ + { + "type": "opencollective", + "url": "https://opencollective.com/browserslist" + }, + { + "type": "tidelift", + "url": "https://tidelift.com/funding/github/npm/browserslist" + } + ], + "dependencies": { + "caniuse-lite": "^1.0.30001449", + "electron-to-chromium": "^1.4.284", + "node-releases": "^2.0.8", + "update-browserslist-db": "^1.0.10" + }, + "bin": { + "browserslist": "cli.js" + }, + "engines": { + "node": "^6 || ^7 || ^8 || ^9 || ^10 || ^11 || ^12 || >=13.7" + } + }, + "node_modules/buffer": { + "version": "4.9.2", + "resolved": "https://registry.npmjs.org/buffer/-/buffer-4.9.2.tgz", + "integrity": "sha512-xq+q3SRMOxGivLhBNaUdC64hDTQwejJ+H0T/NB1XMtTVEwNTrfFF3gAxiyW0Bu/xWEGhjVKgUcMhCrUy2+uCWg==", + "dev": true, + "dependencies": { + "base64-js": "^1.0.2", + "ieee754": "^1.1.4", + "isarray": "^1.0.0" + } + }, + "node_modules/buffer-equal": { + "version": "0.0.1", + "resolved": "https://registry.npmjs.org/buffer-equal/-/buffer-equal-0.0.1.tgz", + "integrity": "sha512-RgSV6InVQ9ODPdLWJ5UAqBqJBOg370Nz6ZQtRzpt6nUjc8v0St97uJ4PYC6NztqIScrAXafKM3mZPMygSe1ggA==", + "engines": { + "node": ">=0.4.0" + } + }, + "node_modules/buffer-from": { + "version": "1.1.2", + "resolved": "https://registry.npmjs.org/buffer-from/-/buffer-from-1.1.2.tgz", + "integrity": "sha512-E+XQCRwSbaaiChtv6k6Dwgc+bx+Bs6vuKJHHl5kox/BaKbhiXzqQOwK4cO22yElGp2OCmjwVhT3HmxgyPGnJfQ==" + }, + "node_modules/buffer-xor": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/buffer-xor/-/buffer-xor-1.0.3.tgz", + "integrity": "sha512-571s0T7nZWK6vB67HI5dyUF7wXiNcfaPPPTl6zYCNApANjIvYJTg7hlud/+cJpdAhS7dVzqMLmfhfHR3rAcOjQ==", + "dev": true + }, + "node_modules/builtin-status-codes": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/builtin-status-codes/-/builtin-status-codes-3.0.0.tgz", + "integrity": "sha512-HpGFw18DgFWlncDfjTa2rcQ4W88O1mC8e8yZ2AvQY5KDaktSTwo+KRf6nHK6FRI5FyRyb/5T6+TSxfP7QyGsmQ==", + "dev": true + }, + "node_modules/bytes": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/bytes/-/bytes-3.0.0.tgz", + "integrity": "sha512-pMhOfFDPiv9t5jjIXkHosWmkSyQbvsgEVNkz0ERHbuLh2T/7j4Mqqpz523Fe8MVY89KC6Sh/QfS2sM+SjgFDcw==", + "dev": true, + "engines": { + "node": ">= 0.8" + } + }, + "node_modules/call-bind": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/call-bind/-/call-bind-1.0.2.tgz", + "integrity": "sha512-7O+FbCihrB5WGbFYesctwmTKae6rOiIzmz1icreWJ+0aA7LJfuqhEso2T9ncpcFtzMQtzXf2QGGueWJGTYsqrA==", + "dependencies": { + "function-bind": "^1.1.1", + "get-intrinsic": "^1.0.2" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/caller-callsite": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/caller-callsite/-/caller-callsite-2.0.0.tgz", + "integrity": "sha512-JuG3qI4QOftFsZyOn1qq87fq5grLIyk1JYd5lJmdA+fG7aQ9pA/i3JIJGcO3q0MrRcHlOt1U+ZeHW8Dq9axALQ==", + "dev": true, + "dependencies": { + "callsites": "^2.0.0" + }, + "engines": { + "node": ">=4" + } + }, + "node_modules/caller-callsite/node_modules/callsites": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/callsites/-/callsites-2.0.0.tgz", + "integrity": "sha512-ksWePWBloaWPxJYQ8TL0JHvtci6G5QTKwQ95RcWAa/lzoAKuAOflGdAK92hpHXjkwb8zLxoLNUoNYZgVsaJzvQ==", + "dev": true, + "engines": { + "node": ">=4" + } + }, + "node_modules/caller-path": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/caller-path/-/caller-path-2.0.0.tgz", + "integrity": "sha512-MCL3sf6nCSXOwCTzvPKhN18TU7AHTvdtam8DAogxcrJ8Rjfbbg7Lgng64H9Iy+vUV6VGFClN/TyxBkAebLRR4A==", + "dev": true, + "dependencies": { + "caller-callsite": "^2.0.0" + }, + "engines": { + "node": ">=4" + } + }, + "node_modules/callsites": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/callsites/-/callsites-3.1.0.tgz", + "integrity": "sha512-P8BjAsXvZS+VIDUI11hHCQEv74YT67YUi5JJFNWIqL235sBmjX4+qx9Muvls5ivyNENctx46xQLQ3aTuE7ssaQ==", + "engines": { + "node": ">=6" + } + }, + "node_modules/camel-case": { + "version": "4.1.2", + "resolved": "https://registry.npmjs.org/camel-case/-/camel-case-4.1.2.tgz", + "integrity": "sha512-gxGWBrTT1JuMx6R+o5PTXMmUnhnVzLQ9SNutD4YqKtI6ap897t3tKECYla6gCWEkplXnlNybEkZg9GEGxKFCgw==", + "dev": true, + "dependencies": { + "pascal-case": "^3.1.2", + "tslib": "^2.0.3" + } + }, + "node_modules/camelcase": { + "version": "6.2.0", + "resolved": "https://registry.npmjs.org/camelcase/-/camelcase-6.2.0.tgz", + "integrity": "sha512-c7wVvbw3f37nuobQNtgsgG9POC9qMbNuMQmTCqZv23b6MIz0fcYpBiOlv9gEN/hdLdnZTDQhg6e9Dq5M1vKvfg==", + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/caniuse-api": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/caniuse-api/-/caniuse-api-3.0.0.tgz", + "integrity": "sha512-bsTwuIg/BZZK/vreVTYYbSWoe2F+71P7K5QGEX+pT250DZbfU1MQ5prOKpPR+LL6uWKK3KMwMCAS74QB3Um1uw==", + "dev": true, + "dependencies": { + "browserslist": "^4.0.0", + "caniuse-lite": "^1.0.0", + "lodash.memoize": "^4.1.2", + "lodash.uniq": "^4.5.0" + } + }, + "node_modules/caniuse-lite": { + "version": "1.0.30001478", + "resolved": "https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.30001478.tgz", + "integrity": "sha512-gMhDyXGItTHipJj2ApIvR+iVB5hd0KP3svMWWXDvZOmjzJJassGLMfxRkQCSYgGd2gtdL/ReeiyvMSFD1Ss6Mw==", + "dev": true, + "funding": [ + { + "type": "opencollective", + "url": "https://opencollective.com/browserslist" + }, + { + "type": "tidelift", + "url": "https://tidelift.com/funding/github/npm/caniuse-lite" + }, + { + "type": "github", + "url": "https://github.com/sponsors/ai" + } + ] + }, + "node_modules/chalk": { + "version": "4.1.2", + "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", + "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", + "dependencies": { + "ansi-styles": "^4.1.0", + "supports-color": "^7.1.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/chalk/chalk?sponsor=1" + } + }, + "node_modules/character-entities": { + "version": "1.2.4", + "resolved": "https://registry.npmjs.org/character-entities/-/character-entities-1.2.4.tgz", + "integrity": "sha512-iBMyeEHxfVnIakwOuDXpVkc54HijNgCyQB2w0VfGQThle6NXn50zU6V/u+LDhxHcDUPojn6Kpga3PTAD8W1bQw==", + "funding": { + "type": "github", + "url": "https://github.com/sponsors/wooorm" + } + }, + "node_modules/character-entities-legacy": { + "version": "1.1.4", + "resolved": "https://registry.npmjs.org/character-entities-legacy/-/character-entities-legacy-1.1.4.tgz", + "integrity": "sha512-3Xnr+7ZFS1uxeiUDvV02wQ+QDbc55o97tIV5zHScSPJpcLm/r0DFPcoY3tYRp+VZukxuMeKgXYmsXQHO05zQeA==", + "funding": { + "type": "github", + "url": "https://github.com/sponsors/wooorm" + } + }, + "node_modules/character-reference-invalid": { + "version": "1.1.4", + "resolved": "https://registry.npmjs.org/character-reference-invalid/-/character-reference-invalid-1.1.4.tgz", + "integrity": "sha512-mKKUkUbhPpQlCOfIuZkvSEgktjPFIsZKRRbC6KWVEMvlzblj3i3asQv5ODsrwt0N3pHAEvjP8KTQPHkp0+6jOg==", + "funding": { + "type": "github", + "url": "https://github.com/sponsors/wooorm" + } + }, + "node_modules/charenc": { + "version": "0.0.2", + "resolved": "https://registry.npmjs.org/charenc/-/charenc-0.0.2.tgz", + "integrity": "sha512-yrLQ/yVUFXkzg7EDQsPieE/53+0RlaWTs+wBrvW36cyilJ2SaDWfl4Yj7MtLTXleV9uEKefbAGUPv2/iWSooRA==", + "dev": true, + "engines": { + "node": "*" + } + }, + "node_modules/chart.js": { + "version": "3.9.1", + "resolved": "https://registry.npmjs.org/chart.js/-/chart.js-3.9.1.tgz", + "integrity": "sha512-Ro2JbLmvg83gXF5F4sniaQ+lTbSv18E+TIf2cOeiH1Iqd2PGFOtem+DUufMZsCJwFE7ywPOpfXFBwRTGq7dh6w==" + }, + "node_modules/chokidar": { + "version": "3.5.3", + "resolved": "https://registry.npmjs.org/chokidar/-/chokidar-3.5.3.tgz", + "integrity": "sha512-Dr3sfKRP6oTcjf2JmUmFJfeVMvXBdegxB0iVQ5eb2V10uFJUCAS8OByZdVAyVb8xXNz3GjjTgj9kLWsZTqE6kw==", + "funding": [ + { + "type": "individual", + "url": "https://paulmillr.com/funding/" + } + ], + "dependencies": { + "anymatch": "~3.1.2", + "braces": "~3.0.2", + "glob-parent": "~5.1.2", + "is-binary-path": "~2.1.0", + "is-glob": "~4.0.1", + "normalize-path": "~3.0.0", + "readdirp": "~3.6.0" + }, + "engines": { + "node": ">= 8.10.0" + }, + "optionalDependencies": { + "fsevents": "~2.3.2" + } + }, + "node_modules/chrome-trace-event": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/chrome-trace-event/-/chrome-trace-event-1.0.3.tgz", + "integrity": "sha512-p3KULyQg4S7NIHixdwbGX+nFHkoBiA4YQmyWtjb8XngSKV124nJmRysgAeujbUVb15vh+RvFUfCPqU7rXk+hZg==", + "dev": true, + "engines": { + "node": ">=6.0" + } + }, + "node_modules/ci-info": { + "version": "3.2.0", + "resolved": "https://registry.npmjs.org/ci-info/-/ci-info-3.2.0.tgz", + "integrity": "sha512-dVqRX7fLUm8J6FgHJ418XuIgDLZDkYcDFTeL6TA2gt5WlIZUQrrH6EZrNClwT/H0FateUsZkGIOPRrLbP+PR9A==" + }, + "node_modules/cipher-base": { + "version": "1.0.4", + "resolved": "https://registry.npmjs.org/cipher-base/-/cipher-base-1.0.4.tgz", + "integrity": "sha512-Kkht5ye6ZGmwv40uUDZztayT2ThLQGfnj/T71N/XzeZeo3nf8foyW7zGTsPYkEya3m5f3cAypH+qe7YOrM1U2Q==", + "dev": true, + "dependencies": { + "inherits": "^2.0.1", + "safe-buffer": "^5.0.1" + } + }, + "node_modules/cjk-regex": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/cjk-regex/-/cjk-regex-2.0.1.tgz", + "integrity": "sha512-4YTL4Zxzy33EhD2YMBQg6qavT+3OrYYu45RHcLANXhbVTXmVcwNQIv0vL1TUWjOS7bH0n0dVcGAdJAGzWSAa3A==", + "dependencies": { + "regexp-util": "^1.2.1", + "unicode-regex": "^2.0.0" + }, + "engines": { + "node": ">= 4" + } + }, + "node_modules/cjk-regex/node_modules/unicode-regex": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/unicode-regex/-/unicode-regex-2.0.0.tgz", + "integrity": "sha512-5nbEG2YU7loyTvPABaKb+8B0u8L7vWCsVmCSsiaO249ZdMKlvrXlxR2ex4TUVAdzv/Cne/TdoXSSaJArGXaleQ==", + "dependencies": { + "regexp-util": "^1.2.0" + }, + "engines": { + "node": ">= 4" + } + }, + "node_modules/ckeditor5": { + "version": "35.4.0", + "resolved": "https://registry.npmjs.org/ckeditor5/-/ckeditor5-35.4.0.tgz", + "integrity": "sha512-vBEQVkFCbjYmEPVkyWsOqU44DOovUio6xBuCwroe4TuJLplqeRasCjFwB0DPknXQU8U0iM3Lh/QSKRyN92pw3Q==", + "dependencies": { + "@ckeditor/ckeditor5-clipboard": "^35.4.0", + "@ckeditor/ckeditor5-core": "^35.4.0", + "@ckeditor/ckeditor5-engine": "^35.4.0", + "@ckeditor/ckeditor5-enter": "^35.4.0", + "@ckeditor/ckeditor5-paragraph": "^35.4.0", + "@ckeditor/ckeditor5-select-all": "^35.4.0", + "@ckeditor/ckeditor5-typing": "^35.4.0", + "@ckeditor/ckeditor5-ui": "^35.4.0", + "@ckeditor/ckeditor5-undo": "^35.4.0", + "@ckeditor/ckeditor5-upload": "^35.4.0", + "@ckeditor/ckeditor5-utils": "^35.4.0", + "@ckeditor/ckeditor5-widget": "^35.4.0" + }, + "engines": { + "node": ">=14.0.0", + "npm": ">=5.7.1" + } + }, + "node_modules/clean-css": { + "version": "5.3.2", + "resolved": "https://registry.npmjs.org/clean-css/-/clean-css-5.3.2.tgz", + "integrity": "sha512-JVJbM+f3d3Q704rF4bqQ5UUyTtuJ0JRKNbTKVEeujCCBoMdkEi+V+e8oktO9qGQNSvHrFTM6JZRXrUvGR1czww==", + "dev": true, + "dependencies": { + "source-map": "~0.6.0" + }, + "engines": { + "node": ">= 10.0" + } + }, + "node_modules/clean-stack": { + "version": "2.2.0", + "resolved": "https://registry.npmjs.org/clean-stack/-/clean-stack-2.2.0.tgz", + "integrity": "sha512-4diC9HaTE+KRAMWhDhrGOECgWZxoevMc5TlkObMqNSsVU62PYzXZ/SMTjzyGAFF1YusgxGcSWTEXBhp0CPwQ1A==", + "dev": true, + "engines": { + "node": ">=6" + } + }, + "node_modules/cli-table3": { + "version": "0.6.3", + "resolved": "https://registry.npmjs.org/cli-table3/-/cli-table3-0.6.3.tgz", + "integrity": "sha512-w5Jac5SykAeZJKntOxJCrm63Eg5/4dhMWIcuTbo9rpE+brgaSZo0RuNJZeOyMgsUdhDeojvgyQLmjI+K50ZGyg==", + "dependencies": { + "string-width": "^4.2.0" + }, + "engines": { + "node": "10.* || >= 12.*" + }, + "optionalDependencies": { + "@colors/colors": "1.5.0" + } + }, + "node_modules/clipboard": { + "version": "2.0.11", + "resolved": "https://registry.npmjs.org/clipboard/-/clipboard-2.0.11.tgz", + "integrity": "sha512-C+0bbOqkezLIsmWSvlsXS0Q0bmkugu7jcfMIACB+RDEntIzQIkdr148we28AfSloQLRdZlYL/QYyrq05j/3Faw==", + "dependencies": { + "good-listener": "^1.2.2", + "select": "^1.1.2", + "tiny-emitter": "^2.0.0" + } + }, + "node_modules/cliui": { + "version": "8.0.1", + "resolved": "https://registry.npmjs.org/cliui/-/cliui-8.0.1.tgz", + "integrity": "sha512-BSeNnyus75C4//NQ9gQt1/csTXyo/8Sb+afLAkzAptFuMsod9HFokGNudZpi/oQV73hnVK+sR+5PVRMd+Dr7YQ==", + "dev": true, + "dependencies": { + "string-width": "^4.2.0", + "strip-ansi": "^6.0.1", + "wrap-ansi": "^7.0.0" + }, + "engines": { + "node": ">=12" + } + }, + "node_modules/clone": { + "version": "1.0.4", + "resolved": "https://registry.npmjs.org/clone/-/clone-1.0.4.tgz", + "integrity": "sha512-JQHZ2QMW6l3aH/j6xCqQThY/9OH4D/9ls34cgkUBiEeocRTU04tHfKPBsUK1PqZCUQM7GiA0IIXJSuXHI64Kbg==", + "engines": { + "node": ">=0.8" + } + }, + "node_modules/clone-deep": { + "version": "4.0.1", + "resolved": "https://registry.npmjs.org/clone-deep/-/clone-deep-4.0.1.tgz", + "integrity": "sha512-neHB9xuzh/wk0dIHweyAXv2aPGZIVk3pLMe+/RNzINf17fe0OG96QroktYAUm7SM1PBnzTabaLboqqxDyMU+SQ==", + "dev": true, + "dependencies": { + "is-plain-object": "^2.0.4", + "kind-of": "^6.0.2", + "shallow-clone": "^3.0.0" + }, + "engines": { + "node": ">=6" + } + }, + "node_modules/coa": { + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/coa/-/coa-2.0.2.tgz", + "integrity": "sha512-q5/jG+YQnSy4nRTV4F7lPepBJZ8qBNJJDBuJdoejDyLXgmL7IEo+Le2JDZudFTFt7mrCqIRaSjws4ygRCTCAXA==", + "dev": true, + "dependencies": { + "@types/q": "^1.5.1", + "chalk": "^2.4.1", + "q": "^1.1.2" + }, + "engines": { + "node": ">= 4.0" + } + }, + "node_modules/coa/node_modules/ansi-styles": { + "version": "3.2.1", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-3.2.1.tgz", + "integrity": "sha512-VT0ZI6kZRdTh8YyJw3SMbYm/u+NqfsAxEpWO0Pf9sq8/e94WxxOpPKx9FR1FlyCtOVDNOQ+8ntlqFxiRc+r5qA==", + "dev": true, + "dependencies": { + "color-convert": "^1.9.0" + }, + "engines": { + "node": ">=4" + } + }, + "node_modules/coa/node_modules/chalk": { + "version": "2.4.2", + "resolved": "https://registry.npmjs.org/chalk/-/chalk-2.4.2.tgz", + "integrity": "sha512-Mti+f9lpJNcwF4tWV8/OrTTtF1gZi+f8FqlyAdouralcFWFQWF2+NgCHShjkCb+IFBLq9buZwE1xckQU4peSuQ==", + "dev": true, + "dependencies": { + "ansi-styles": "^3.2.1", + "escape-string-regexp": "^1.0.5", + "supports-color": "^5.3.0" + }, + "engines": { + "node": ">=4" + } + }, + "node_modules/coa/node_modules/color-convert": { + "version": "1.9.3", + "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-1.9.3.tgz", + "integrity": "sha512-QfAUtd+vFdAtFQcC8CCyYt1fYWxSqAiK2cSD6zDB8N3cpsEBAvRxp9zOGg6G/SHHJYAT88/az/IuDGALsNVbGg==", + "dev": true, + "dependencies": { + "color-name": "1.1.3" + } + }, + "node_modules/coa/node_modules/color-name": { + "version": "1.1.3", + "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.3.tgz", + "integrity": "sha512-72fSenhMw2HZMTVHeCA9KCmpEIbzWiQsjN+BHcBbS9vr1mtt+vJjPdksIBNUmKAW8TFUDPJK5SUU3QhE9NEXDw==", + "dev": true + }, + "node_modules/coa/node_modules/escape-string-regexp": { + "version": "1.0.5", + "resolved": "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-1.0.5.tgz", + "integrity": "sha512-vbRorB5FUQWvla16U8R/qgaFIya2qGzwDrNmCZuYKrbdSUMG6I1ZCGQRefkRVhuOkIGVne7BQ35DSfo1qvJqFg==", + "dev": true, + "engines": { + "node": ">=0.8.0" + } + }, + "node_modules/coa/node_modules/has-flag": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-3.0.0.tgz", + "integrity": "sha512-sKJf1+ceQBr4SMkvQnBDNDtf4TXpVhVGateu0t918bl30FnbE2m4vNLX+VWe/dpjlb+HugGYzW7uQXH98HPEYw==", + "dev": true, + "engines": { + "node": ">=4" + } + }, + "node_modules/coa/node_modules/supports-color": { + "version": "5.5.0", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-5.5.0.tgz", + "integrity": "sha512-QjVjwdXIt408MIiAqCX4oUKsgU2EqAGzs2Ppkm4aQYbjm+ZEWEcW4SfFNTr4uMNZma0ey4f5lgLrkB0aX0QMow==", + "dev": true, + "dependencies": { + "has-flag": "^3.0.0" + }, + "engines": { + "node": ">=4" + } + }, + "node_modules/collapse-white-space": { + "version": "1.0.6", + "resolved": "https://registry.npmjs.org/collapse-white-space/-/collapse-white-space-1.0.6.tgz", + "integrity": "sha512-jEovNnrhMuqyCcjfEJA56v0Xq8SkIoPKDyaHahwo3POf4qcSXqMYuwNcOTzp74vTsR9Tn08z4MxWqAhcekogkQ==", + "funding": { + "type": "github", + "url": "https://github.com/sponsors/wooorm" + } + }, + "node_modules/collect.js": { + "version": "4.36.1", + "resolved": "https://registry.npmjs.org/collect.js/-/collect.js-4.36.1.tgz", + "integrity": "sha512-jd97xWPKgHn6uvK31V6zcyPd40lUJd7gpYxbN2VOVxGWO4tyvS9Li4EpsFjXepGTo2tYcOTC4a8YsbQXMJ4XUw==", + "dev": true + }, + "node_modules/color": { + "version": "3.2.1", + "resolved": "https://registry.npmjs.org/color/-/color-3.2.1.tgz", + "integrity": "sha512-aBl7dZI9ENN6fUGC7mWpMTPNHmWUSNan9tuWN6ahh5ZLNk9baLJOnSMlrQkHcrfFgz2/RigjUVAjdx36VcemKA==", + "dev": true, + "dependencies": { + "color-convert": "^1.9.3", + "color-string": "^1.6.0" + } + }, + "node_modules/color-convert": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", + "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", + "dependencies": { + "color-name": "~1.1.4" + }, + "engines": { + "node": ">=7.0.0" + } + }, + "node_modules/color-name": { + "version": "1.1.4", + "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", + "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==" + }, + "node_modules/color-string": { + "version": "1.9.1", + "resolved": "https://registry.npmjs.org/color-string/-/color-string-1.9.1.tgz", + "integrity": "sha512-shrVawQFojnZv6xM40anx4CkoDP+fZsw/ZerEMsW/pyzsRbElpsL/DBVW7q3ExxwusdNXI3lXpuhEZkzs8p5Eg==", + "dev": true, + "dependencies": { + "color-name": "^1.0.0", + "simple-swizzle": "^0.2.2" + } + }, + "node_modules/color/node_modules/color-convert": { + "version": "1.9.3", + "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-1.9.3.tgz", + "integrity": "sha512-QfAUtd+vFdAtFQcC8CCyYt1fYWxSqAiK2cSD6zDB8N3cpsEBAvRxp9zOGg6G/SHHJYAT88/az/IuDGALsNVbGg==", + "dev": true, + "dependencies": { + "color-name": "1.1.3" + } + }, + "node_modules/color/node_modules/color-name": { + "version": "1.1.3", + "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.3.tgz", + "integrity": "sha512-72fSenhMw2HZMTVHeCA9KCmpEIbzWiQsjN+BHcBbS9vr1mtt+vJjPdksIBNUmKAW8TFUDPJK5SUU3QhE9NEXDw==", + "dev": true + }, + "node_modules/colord": { + "version": "2.9.3", + "resolved": "https://registry.npmjs.org/colord/-/colord-2.9.3.tgz", + "integrity": "sha512-jeC1axXpnb0/2nn/Y1LPuLdgXBLH7aDcHu4KEKfqw3CUhX7ZpfBSlPKyqXE6btIgEzfWtrX3/tyBCaCvXvMkOw==", + "dev": true + }, + "node_modules/colorette": { + "version": "2.0.19", + "resolved": "https://registry.npmjs.org/colorette/-/colorette-2.0.19.tgz", + "integrity": "sha512-3tlv/dIP7FWvj3BsbHrGLJ6l/oKh1O3TcgBqMn+yyCagOxc23fyzDS6HypQbgxWbkpDnf52p1LuR4eWDQ/K9WQ==", + "dev": true + }, + "node_modules/colors": { + "version": "0.6.2", + "resolved": "https://registry.npmjs.org/colors/-/colors-0.6.2.tgz", + "integrity": "sha512-OsSVtHK8Ir8r3+Fxw/b4jS1ZLPXkV6ZxDRJQzeD7qo0SqMXWrHDM71DgYzPMHY8SFJ0Ao+nNU2p1MmwdzKqPrw==", + "dev": true, + "engines": { + "node": ">=0.1.90" + } + }, + "node_modules/combined-stream": { + "version": "1.0.8", + "resolved": "https://registry.npmjs.org/combined-stream/-/combined-stream-1.0.8.tgz", + "integrity": "sha512-FQN4MRfuJeHf7cBbBMJFXhKSDq+2kAArBlmRBvcvFE5BB1HZKXtSFASDhdlz9zOYwxh8lDdnvmMOe/+5cdoEdg==", + "dev": true, + "dependencies": { + "delayed-stream": "~1.0.0" + }, + "engines": { + "node": ">= 0.8" + } + }, + "node_modules/commander": { + "version": "7.2.0", + "resolved": "https://registry.npmjs.org/commander/-/commander-7.2.0.tgz", + "integrity": "sha512-QrWXB+ZQSVPmIWIhtEO9H+gwHaMGYiF5ChvoJ+K9ZGHG/sVsa6yiesAD1GC/x46sET00Xlwo1u49RVVVzvcSkw==", + "engines": { + "node": ">= 10" + } + }, + "node_modules/commondir": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/commondir/-/commondir-1.0.1.tgz", + "integrity": "sha512-W9pAhw0ja1Edb5GVdIF1mjZw/ASI0AlShXM83UUGe2DVr5TdAPEA1OA8m/g8zWp9x6On7gqufY+FatDbC3MDQg==", + "dev": true + }, + "node_modules/component-emitter": { + "version": "1.3.0", + "resolved": "https://registry.npmjs.org/component-emitter/-/component-emitter-1.3.0.tgz", + "integrity": "sha512-Rd3se6QB+sO1TwqZjscQrurpEPIfO0/yYnSin6Q/rD3mOutHvUrCAhJub3r90uNb+SESBuE0QYoB90YdfatsRg==", + "peer": true + }, + "node_modules/compressible": { + "version": "2.0.18", + "resolved": "https://registry.npmjs.org/compressible/-/compressible-2.0.18.tgz", + "integrity": "sha512-AF3r7P5dWxL8MxyITRMlORQNaOA2IkAFaTr4k7BUumjPtRpGDTZpl0Pb1XCO6JeDCBdp126Cgs9sMxqSjgYyRg==", + "dev": true, + "dependencies": { + "mime-db": ">= 1.43.0 < 2" + }, + "engines": { + "node": ">= 0.6" + } + }, + "node_modules/compression": { + "version": "1.7.4", + "resolved": "https://registry.npmjs.org/compression/-/compression-1.7.4.tgz", + "integrity": "sha512-jaSIDzP9pZVS4ZfQ+TzvtiWhdpFhE2RDHz8QJkpX9SIpLq88VueF5jJw6t+6CUQcAoA6t+x89MLrWAqpfDE8iQ==", + "dev": true, + "dependencies": { + "accepts": "~1.3.5", + "bytes": "3.0.0", + "compressible": "~2.0.16", + "debug": "2.6.9", + "on-headers": "~1.0.2", + "safe-buffer": "5.1.2", + "vary": "~1.1.2" + }, + "engines": { + "node": ">= 0.8.0" + } + }, + "node_modules/compression/node_modules/debug": { + "version": "2.6.9", + "resolved": "https://registry.npmjs.org/debug/-/debug-2.6.9.tgz", + "integrity": "sha512-bC7ElrdJaJnPbAP+1EotYvqZsb3ecl5wi6Bfi6BJTUcNowp6cvspg0jXznRTKDjm/E7AdgFBVeAPVMNcKGsHMA==", + "dev": true, + "dependencies": { + "ms": "2.0.0" + } + }, + "node_modules/compression/node_modules/ms": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/ms/-/ms-2.0.0.tgz", + "integrity": "sha512-Tpp60P6IUJDTuOq/5Z8cdskzJujfwqfOTkrwIwj7IRISpnkJnT6SyJ4PCPnGMoFjC9ddhal5KVIYtAt97ix05A==", + "dev": true + }, + "node_modules/compression/node_modules/safe-buffer": { + "version": "5.1.2", + "resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.1.2.tgz", + "integrity": "sha512-Gd2UZBJDkXlY7GbJxfsE8/nvKkUEU1G38c1siN6QP6a9PT9MmHB8GnpscSmMJSoF8LOIrt8ud/wPtojys4G6+g==", + "dev": true + }, + "node_modules/concat": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/concat/-/concat-1.0.3.tgz", + "integrity": "sha512-f/ZaH1aLe64qHgTILdldbvyfGiGF4uzeo9IuXUloIOLQzFmIPloy9QbZadNsuVv0j5qbKQvQb/H/UYf2UsKTpw==", + "dev": true, + "dependencies": { + "commander": "^2.9.0" + }, + "bin": { + "concat": "bin/concat" + }, + "engines": { + "node": ">=6" + } + }, + "node_modules/concat-map": { + "version": "0.0.1", + "resolved": "https://registry.npmjs.org/concat-map/-/concat-map-0.0.1.tgz", + "integrity": "sha512-/Srv4dswyQNBfohGpz9o6Yb3Gz3SrUDqBH5rTuhGR7ahtlbYKnVxw2bCFMRljaA7EXHaXZ8wsHdodFvbkhKmqg==" + }, + "node_modules/concat-stream": { + "version": "1.6.2", + "resolved": "https://registry.npmjs.org/concat-stream/-/concat-stream-1.6.2.tgz", + "integrity": "sha512-27HBghJxjiZtIk3Ycvn/4kbJk/1uZuJFfuPEns6LaEvpvG1f0hTea8lilrouyo9mVc2GWdcEZ8OLoGmSADlrCw==", + "engines": [ + "node >= 0.8" + ], + "dependencies": { + "buffer-from": "^1.0.0", + "inherits": "^2.0.3", + "readable-stream": "^2.2.2", + "typedarray": "^0.0.6" + } + }, + "node_modules/concat/node_modules/commander": { + "version": "2.20.3", + "resolved": "https://registry.npmjs.org/commander/-/commander-2.20.3.tgz", + "integrity": "sha512-GpVkmM8vF2vQUkj2LvZmD35JxeJOLCwJ9cUkugyk2nuhbv3+mJvpLYYt+0+USMxE+oj+ey/lJEnhZw75x/OMcQ==", + "dev": true + }, + "node_modules/connect-history-api-fallback": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/connect-history-api-fallback/-/connect-history-api-fallback-2.0.0.tgz", + "integrity": "sha512-U73+6lQFmfiNPrYbXqr6kZ1i1wiRqXnp2nhMsINseWXO8lDau0LGEffJ8kQi4EjLZympVgRdvqjAgiZ1tgzDDA==", + "dev": true, + "engines": { + "node": ">=0.8" + } + }, + "node_modules/consola": { + "version": "2.15.3", + "resolved": "https://registry.npmjs.org/consola/-/consola-2.15.3.tgz", + "integrity": "sha512-9vAdYbHj6x2fLKC4+oPH0kFzY/orMZyG2Aj+kNylHxKGJ/Ed4dpNyAQYwJOdqO4zdM7XpVHmyejQDcQHrnuXbw==", + "dev": true + }, + "node_modules/console-browserify": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/console-browserify/-/console-browserify-1.2.0.tgz", + "integrity": "sha512-ZMkYO/LkF17QvCPqM0gxw8yUzigAOZOSWSHg91FH6orS7vcEj5dVZTidN2fQ14yBSdg97RqhSNwLUXInd52OTA==", + "dev": true + }, + "node_modules/constants-browserify": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/constants-browserify/-/constants-browserify-1.0.0.tgz", + "integrity": "sha512-xFxOwqIzR/e1k1gLiWEophSCMqXcwVHIH7akf7b/vxcUeGunlj3hvZaaqxwHsTgn+IndtkQJgSztIDWeumWJDQ==", + "dev": true + }, + "node_modules/content-disposition": { + "version": "0.5.4", + "resolved": "https://registry.npmjs.org/content-disposition/-/content-disposition-0.5.4.tgz", + "integrity": "sha512-FveZTNuGw04cxlAiWbzi6zTAL/lhehaWbTtgluJh4/E95DqMwTmha3KZN1aAWA8cFIhHzMZUvLevkw5Rqk+tSQ==", + "dev": true, + "dependencies": { + "safe-buffer": "5.2.1" + }, + "engines": { + "node": ">= 0.6" + } + }, + "node_modules/content-type": { + "version": "1.0.5", + "resolved": "https://registry.npmjs.org/content-type/-/content-type-1.0.5.tgz", + "integrity": "sha512-nTjqfcBFEipKdXCv4YDQWCfmcLZKm81ldF0pAopTvyrFGVbcR6P/VAAd5G7N+0tTr8QqiU0tFadD6FK4NtJwOA==", + "dev": true, + "engines": { + "node": ">= 0.6" + } + }, + "node_modules/contra": { + "version": "1.9.4", + "resolved": "https://registry.npmjs.org/contra/-/contra-1.9.4.tgz", + "integrity": "sha512-N9ArHAqwR/lhPq4OdIAwH4e1btn6EIZMAz4TazjnzCiVECcWUPTma+dRAM38ERImEJBh8NiCCpjoQruSZ+agYg==", + "dependencies": { + "atoa": "1.0.0", + "ticky": "1.0.1" + } + }, + "node_modules/convert-source-map": { + "version": "1.9.0", + "resolved": "https://registry.npmjs.org/convert-source-map/-/convert-source-map-1.9.0.tgz", + "integrity": "sha512-ASFBup0Mz1uyiIjANan1jzLQami9z1PoYSZCiiYW2FczPbenXc45FZdBZLzOT+r6+iciuEModtmCti+hjaAk0A==" + }, + "node_modules/cookie": { + "version": "0.5.0", + "resolved": "https://registry.npmjs.org/cookie/-/cookie-0.5.0.tgz", + "integrity": "sha512-YZ3GUyn/o8gfKJlnlX7g7xq4gyO6OSuhGPKaaGssGB2qgDUS0gPgtTvoyZLTt9Ab6dC4hfc9dV5arkvc/OCmrw==", + "dev": true, + "engines": { + "node": ">= 0.6" + } + }, + "node_modules/cookie-signature": { + "version": "1.0.6", + "resolved": "https://registry.npmjs.org/cookie-signature/-/cookie-signature-1.0.6.tgz", + "integrity": "sha512-QADzlaHc8icV8I7vbaJXJwod9HWYp8uCqf1xa4OfNu1T7JVxQIrUgOWtHdNDtPiywmFbiS12VjotIXLrKM3orQ==", + "dev": true + }, + "node_modules/core-js-compat": { + "version": "3.30.1", + "resolved": "https://registry.npmjs.org/core-js-compat/-/core-js-compat-3.30.1.tgz", + "integrity": "sha512-d690npR7MC6P0gq4npTl5n2VQeNAmUrJ90n+MHiKS7W2+xno4o3F5GDEuylSdi6EJ3VssibSGXOa1r3YXD3Mhw==", + "dev": true, + "dependencies": { + "browserslist": "^4.21.5" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/core-js" + } + }, + "node_modules/core-util-is": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/core-util-is/-/core-util-is-1.0.3.tgz", + "integrity": "sha512-ZQBvi1DcpJ4GDqanjucZ2Hj3wEO5pZDS89BWbkcrvdxksJorwUDDZamX9ldFkp9aw2lmBDLgkObEA4DWNJ9FYQ==" + }, + "node_modules/cosmiconfig": { + "version": "7.1.0", + "resolved": "https://registry.npmjs.org/cosmiconfig/-/cosmiconfig-7.1.0.tgz", + "integrity": "sha512-AdmX6xUzdNASswsFtmwSt7Vj8po9IuqXm0UXz7QKPuEUmPB4XyjGfaAr2PSuELMwkRMVH1EpIkX5bTZGRB3eCA==", + "dev": true, + "dependencies": { + "@types/parse-json": "^4.0.0", + "import-fresh": "^3.2.1", + "parse-json": "^5.0.0", + "path-type": "^4.0.0", + "yaml": "^1.10.0" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/countup.js": { + "version": "2.6.0", + "resolved": "https://registry.npmjs.org/countup.js/-/countup.js-2.6.0.tgz", + "integrity": "sha512-GeORCrCcaFUHP3RNf0/dWK+XQX+fsdtrMO31mNvsbKXNNG+DMTcgZ4dWpIG9BnOS8t5+iJbaRXgaaG9oLs0N4g==" + }, + "node_modules/create-ecdh": { + "version": "4.0.4", + "resolved": "https://registry.npmjs.org/create-ecdh/-/create-ecdh-4.0.4.tgz", + "integrity": "sha512-mf+TCx8wWc9VpuxfP2ht0iSISLZnt0JgWlrOKZiNqyUZWnjIaCIVNQArMHnCZKfEYRg6IM7A+NeJoN8gf/Ws0A==", + "dev": true, + "dependencies": { + "bn.js": "^4.1.0", + "elliptic": "^6.5.3" + } + }, + "node_modules/create-ecdh/node_modules/bn.js": { + "version": "4.12.0", + "resolved": "https://registry.npmjs.org/bn.js/-/bn.js-4.12.0.tgz", + "integrity": "sha512-c98Bf3tPniI+scsdk237ku1Dc3ujXQTSgyiPUDEOe7tRkhrqridvh8klBv0HCEso1OLOYcHuCv/cS6DNxKH+ZA==", + "dev": true + }, + "node_modules/create-hash": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/create-hash/-/create-hash-1.2.0.tgz", + "integrity": "sha512-z00bCGNHDG8mHAkP7CtT1qVu+bFQUPjYq/4Iv3C3kWjTFV10zIjfSoeqXo9Asws8gwSHDGj/hl2u4OGIjapeCg==", + "dev": true, + "dependencies": { + "cipher-base": "^1.0.1", + "inherits": "^2.0.1", + "md5.js": "^1.3.4", + "ripemd160": "^2.0.1", + "sha.js": "^2.4.0" + } + }, + "node_modules/create-hmac": { + "version": "1.1.7", + "resolved": "https://registry.npmjs.org/create-hmac/-/create-hmac-1.1.7.tgz", + "integrity": "sha512-MJG9liiZ+ogc4TzUwuvbER1JRdgvUFSB5+VR/g5h82fGaIRWMWddtKBHi7/sVhfjQZ6SehlyhvQYrcYkaUIpLg==", + "dev": true, + "dependencies": { + "cipher-base": "^1.0.3", + "create-hash": "^1.1.0", + "inherits": "^2.0.1", + "ripemd160": "^2.0.0", + "safe-buffer": "^5.0.1", + "sha.js": "^2.4.8" + } + }, + "node_modules/cropperjs": { + "version": "1.5.13", + "resolved": "https://registry.npmjs.org/cropperjs/-/cropperjs-1.5.13.tgz", + "integrity": "sha512-by7jKAo73y5/Do0K6sxdTKHgndY0NMjG2bEdgeJxycbcmHuCiMXqw8sxy5C5Y5WTOTcDGmbT7Sr5CgKOXR06OA==" + }, + "node_modules/cross-spawn": { + "version": "7.0.3", + "resolved": "https://registry.npmjs.org/cross-spawn/-/cross-spawn-7.0.3.tgz", + "integrity": "sha512-iRDPJKUPVEND7dHPO8rkbOnPpyDygcDFtWjpeWNCgy8WP2rXcxXL8TskReQl6OrB2G7+UJrags1q15Fudc7G6w==", + "dev": true, + "dependencies": { + "path-key": "^3.1.0", + "shebang-command": "^2.0.0", + "which": "^2.0.1" + }, + "engines": { + "node": ">= 8" + } + }, + "node_modules/crossvent": { + "version": "1.5.5", + "resolved": "https://registry.npmjs.org/crossvent/-/crossvent-1.5.5.tgz", + "integrity": "sha512-MY4xhBYEnVi+pmTpHCOCsCLYczc0PVtGdPBz6NXNXxikLaUZo4HdAeUb1UqAo3t3yXAloSelTmfxJ+/oUqkW5w==", + "dependencies": { + "custom-event": "^1.0.0" + } + }, + "node_modules/crypt": { + "version": "0.0.2", + "resolved": "https://registry.npmjs.org/crypt/-/crypt-0.0.2.tgz", + "integrity": "sha512-mCxBlsHFYh9C+HVpiEacem8FEBnMXgU9gy4zmNC+SXAZNB/1idgp/aulFJ4FgCi7GPEVbfyng092GqL2k2rmow==", + "dev": true, + "engines": { + "node": "*" + } + }, + "node_modules/crypto-browserify": { + "version": "3.12.0", + "resolved": "https://registry.npmjs.org/crypto-browserify/-/crypto-browserify-3.12.0.tgz", + "integrity": "sha512-fz4spIh+znjO2VjL+IdhEpRJ3YN6sMzITSBijk6FK2UvTqruSQW+/cCZTSNsMiZNvUeq0CqurF+dAbyiGOY6Wg==", + "dev": true, + "dependencies": { + "browserify-cipher": "^1.0.0", + "browserify-sign": "^4.0.0", + "create-ecdh": "^4.0.0", + "create-hash": "^1.1.0", + "create-hmac": "^1.1.0", + "diffie-hellman": "^5.0.0", + "inherits": "^2.0.1", + "pbkdf2": "^3.0.3", + "public-encrypt": "^4.0.0", + "randombytes": "^2.0.0", + "randomfill": "^1.0.3" + }, + "engines": { + "node": "*" + } + }, + "node_modules/crypto-js": { + "version": "4.1.1", + "resolved": "https://registry.npmjs.org/crypto-js/-/crypto-js-4.1.1.tgz", + "integrity": "sha512-o2JlM7ydqd3Qk9CA0L4NL6mTzU2sdx96a+oOfPu8Mkl/PK51vSyoi8/rQ8NknZtk44vq15lmhAj9CIAGwgeWKw==" + }, + "node_modules/css-color-names": { + "version": "0.0.4", + "resolved": "https://registry.npmjs.org/css-color-names/-/css-color-names-0.0.4.tgz", + "integrity": "sha512-zj5D7X1U2h2zsXOAM8EyUREBnnts6H+Jm+d1M2DbiQQcUtnqgQsMrdo8JW9R80YFUmIdBZeMu5wvYM7hcgWP/Q==", + "dev": true, + "engines": { + "node": "*" + } + }, + "node_modules/css-declaration-sorter": { + "version": "6.4.0", + "resolved": "https://registry.npmjs.org/css-declaration-sorter/-/css-declaration-sorter-6.4.0.tgz", + "integrity": "sha512-jDfsatwWMWN0MODAFuHszfjphEXfNw9JUAhmY4pLu3TyTU+ohUpsbVtbU+1MZn4a47D9kqh03i4eyOm+74+zew==", + "dev": true, + "engines": { + "node": "^10 || ^12 || >=14" + }, + "peerDependencies": { + "postcss": "^8.0.9" + } + }, + "node_modules/css-loader": { + "version": "5.2.7", + "resolved": "https://registry.npmjs.org/css-loader/-/css-loader-5.2.7.tgz", + "integrity": "sha512-Q7mOvpBNBG7YrVGMxRxcBJZFL75o+cH2abNASdibkj/fffYD8qWbInZrD0S9ccI6vZclF3DsHE7njGlLtaHbhg==", + "dev": true, + "dependencies": { + "icss-utils": "^5.1.0", + "loader-utils": "^2.0.0", + "postcss": "^8.2.15", + "postcss-modules-extract-imports": "^3.0.0", + "postcss-modules-local-by-default": "^4.0.0", + "postcss-modules-scope": "^3.0.0", + "postcss-modules-values": "^4.0.0", + "postcss-value-parser": "^4.1.0", + "schema-utils": "^3.0.0", + "semver": "^7.3.5" + }, + "engines": { + "node": ">= 10.13.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/webpack" + }, + "peerDependencies": { + "webpack": "^4.27.0 || ^5.0.0" + } + }, + "node_modules/css-loader/node_modules/schema-utils": { + "version": "3.1.1", + "resolved": "https://registry.npmjs.org/schema-utils/-/schema-utils-3.1.1.tgz", + "integrity": "sha512-Y5PQxS4ITlC+EahLuXaY86TXfR7Dc5lw294alXOq86JAHCihAIZfqv8nNCWvaEJvaC51uN9hbLGeV0cFBdH+Fw==", + "dev": true, + "dependencies": { + "@types/json-schema": "^7.0.8", + "ajv": "^6.12.5", + "ajv-keywords": "^3.5.2" + }, + "engines": { + "node": ">= 10.13.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/webpack" + } + }, + "node_modules/css-select": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/css-select/-/css-select-4.3.0.tgz", + "integrity": "sha512-wPpOYtnsVontu2mODhA19JrqWxNsfdatRKd64kmpRbQgh1KtItko5sTnEpPdpSaJszTOhEMlF/RPz28qj4HqhQ==", + "dev": true, + "dependencies": { + "boolbase": "^1.0.0", + "css-what": "^6.0.1", + "domhandler": "^4.3.1", + "domutils": "^2.8.0", + "nth-check": "^2.0.1" + }, + "funding": { + "url": "https://github.com/sponsors/fb55" + } + }, + "node_modules/css-select-base-adapter": { + "version": "0.1.1", + "resolved": "https://registry.npmjs.org/css-select-base-adapter/-/css-select-base-adapter-0.1.1.tgz", + "integrity": "sha512-jQVeeRG70QI08vSTwf1jHxp74JoZsr2XSgETae8/xC8ovSnL2WF87GTLO86Sbwdt2lK4Umg4HnnwMO4YF3Ce7w==", + "dev": true + }, + "node_modules/css-select/node_modules/domhandler": { + "version": "4.3.1", + "resolved": "https://registry.npmjs.org/domhandler/-/domhandler-4.3.1.tgz", + "integrity": "sha512-GrwoxYN+uWlzO8uhUXRl0P+kHE4GtVPfYzVLcUxPL7KNdHKj66vvlhiweIHqYYXWlw+T8iLMp42Lm67ghw4WMQ==", + "dev": true, + "dependencies": { + "domelementtype": "^2.2.0" + }, + "engines": { + "node": ">= 4" + }, + "funding": { + "url": "https://github.com/fb55/domhandler?sponsor=1" + } + }, + "node_modules/css-tree": { + "version": "1.1.3", + "resolved": "https://registry.npmjs.org/css-tree/-/css-tree-1.1.3.tgz", + "integrity": "sha512-tRpdppF7TRazZrjJ6v3stzv93qxRcSsFmW6cX0Zm2NVKpxE1WV1HblnghVv9TreireHkqI/VDEsfolRF1p6y7Q==", + "dev": true, + "dependencies": { + "mdn-data": "2.0.14", + "source-map": "^0.6.1" + }, + "engines": { + "node": ">=8.0.0" + } + }, + "node_modules/css-what": { + "version": "6.1.0", + "resolved": "https://registry.npmjs.org/css-what/-/css-what-6.1.0.tgz", + "integrity": "sha512-HTUrgRJ7r4dsZKU6GjmpfRK1O76h97Z8MfS1G0FozR+oF2kG6Vfe8JE6zwrkbxigziPHinCJ+gCPjA9EaBDtRw==", + "dev": true, + "engines": { + "node": ">= 6" + }, + "funding": { + "url": "https://github.com/sponsors/fb55" + } + }, + "node_modules/cssesc": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/cssesc/-/cssesc-3.0.0.tgz", + "integrity": "sha512-/Tb/JcjK111nNScGob5MNtsntNM1aCNUDipB/TkwZFhyDrrE47SOx/18wF2bbjgc3ZzCSKW1T5nt5EbFoAz/Vg==", + "dev": true, + "bin": { + "cssesc": "bin/cssesc" + }, + "engines": { + "node": ">=4" + } + }, + "node_modules/cssfilter": { + "version": "0.0.10", + "resolved": "https://registry.npmjs.org/cssfilter/-/cssfilter-0.0.10.tgz", + "integrity": "sha512-FAaLDaplstoRsDR8XGYH51znUN0UY7nMc6Z9/fvE8EXGwvJE9hu7W2vHwx1+bd6gCYnln9nLbzxFTrcO9YQDZw==", + "peer": true + }, + "node_modules/cssnano": { + "version": "5.1.15", + "resolved": "https://registry.npmjs.org/cssnano/-/cssnano-5.1.15.tgz", + "integrity": "sha512-j+BKgDcLDQA+eDifLx0EO4XSA56b7uut3BQFH+wbSaSTuGLuiyTa/wbRYthUXX8LC9mLg+WWKe8h+qJuwTAbHw==", + "dev": true, + "dependencies": { + "cssnano-preset-default": "^5.2.14", + "lilconfig": "^2.0.3", + "yaml": "^1.10.2" + }, + "engines": { + "node": "^10 || ^12 || >=14.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/cssnano" + }, + "peerDependencies": { + "postcss": "^8.2.15" + } + }, + "node_modules/cssnano-preset-default": { + "version": "5.2.14", + "resolved": "https://registry.npmjs.org/cssnano-preset-default/-/cssnano-preset-default-5.2.14.tgz", + "integrity": "sha512-t0SFesj/ZV2OTylqQVOrFgEh5uanxbO6ZAdeCrNsUQ6fVuXwYTxJPNAGvGTxHbD68ldIJNec7PyYZDBrfDQ+6A==", + "dev": true, + "dependencies": { + "css-declaration-sorter": "^6.3.1", + "cssnano-utils": "^3.1.0", + "postcss-calc": "^8.2.3", + "postcss-colormin": "^5.3.1", + "postcss-convert-values": "^5.1.3", + "postcss-discard-comments": "^5.1.2", + "postcss-discard-duplicates": "^5.1.0", + "postcss-discard-empty": "^5.1.1", + "postcss-discard-overridden": "^5.1.0", + "postcss-merge-longhand": "^5.1.7", + "postcss-merge-rules": "^5.1.4", + "postcss-minify-font-values": "^5.1.0", + "postcss-minify-gradients": "^5.1.1", + "postcss-minify-params": "^5.1.4", + "postcss-minify-selectors": "^5.2.1", + "postcss-normalize-charset": "^5.1.0", + "postcss-normalize-display-values": "^5.1.0", + "postcss-normalize-positions": "^5.1.1", + "postcss-normalize-repeat-style": "^5.1.1", + "postcss-normalize-string": "^5.1.0", + "postcss-normalize-timing-functions": "^5.1.0", + "postcss-normalize-unicode": "^5.1.1", + "postcss-normalize-url": "^5.1.0", + "postcss-normalize-whitespace": "^5.1.1", + "postcss-ordered-values": "^5.1.3", + "postcss-reduce-initial": "^5.1.2", + "postcss-reduce-transforms": "^5.1.0", + "postcss-svgo": "^5.1.0", + "postcss-unique-selectors": "^5.1.1" + }, + "engines": { + "node": "^10 || ^12 || >=14.0" + }, + "peerDependencies": { + "postcss": "^8.2.15" + } + }, + "node_modules/cssnano-util-get-arguments": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/cssnano-util-get-arguments/-/cssnano-util-get-arguments-4.0.0.tgz", + "integrity": "sha512-6RIcwmV3/cBMG8Aj5gucQRsJb4vv4I4rn6YjPbVWd5+Pn/fuG+YseGvXGk00XLkoZkaj31QOD7vMUpNPC4FIuw==", + "dev": true, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/cssnano-util-get-match": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/cssnano-util-get-match/-/cssnano-util-get-match-4.0.0.tgz", + "integrity": "sha512-JPMZ1TSMRUPVIqEalIBNoBtAYbi8okvcFns4O0YIhcdGebeYZK7dMyHJiQ6GqNBA9kE0Hym4Aqym5rPdsV/4Cw==", + "dev": true, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/cssnano-util-raw-cache": { + "version": "4.0.1", + "resolved": "https://registry.npmjs.org/cssnano-util-raw-cache/-/cssnano-util-raw-cache-4.0.1.tgz", + "integrity": "sha512-qLuYtWK2b2Dy55I8ZX3ky1Z16WYsx544Q0UWViebptpwn/xDBmog2TLg4f+DBMg1rJ6JDWtn96WHbOKDWt1WQA==", + "dev": true, + "dependencies": { + "postcss": "^7.0.0" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/cssnano-util-raw-cache/node_modules/picocolors": { + "version": "0.2.1", + "resolved": "https://registry.npmjs.org/picocolors/-/picocolors-0.2.1.tgz", + "integrity": "sha512-cMlDqaLEqfSaW8Z7N5Jw+lyIW869EzT73/F5lhtY9cLGoVxSXznfgfXMO0Z5K0o0Q2TkTXq+0KFsdnSe3jDViA==", + "dev": true + }, + "node_modules/cssnano-util-raw-cache/node_modules/postcss": { + "version": "7.0.39", + "resolved": "https://registry.npmjs.org/postcss/-/postcss-7.0.39.tgz", + "integrity": "sha512-yioayjNbHn6z1/Bywyb2Y4s3yvDAeXGOyxqD+LnVOinq6Mdmd++SW2wUNVzavyyHxd6+DxzWGIuosg6P1Rj8uA==", + "dev": true, + "dependencies": { + "picocolors": "^0.2.1", + "source-map": "^0.6.1" + }, + "engines": { + "node": ">=6.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/postcss/" + } + }, + "node_modules/cssnano-util-same-parent": { + "version": "4.0.1", + "resolved": "https://registry.npmjs.org/cssnano-util-same-parent/-/cssnano-util-same-parent-4.0.1.tgz", + "integrity": "sha512-WcKx5OY+KoSIAxBW6UBBRay1U6vkYheCdjyVNDm85zt5K9mHoGOfsOsqIszfAqrQQFIIKgjh2+FDgIj/zsl21Q==", + "dev": true, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/cssnano-utils": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/cssnano-utils/-/cssnano-utils-3.1.0.tgz", + "integrity": "sha512-JQNR19/YZhz4psLX/rQ9M83e3z2Wf/HdJbryzte4a3NSuafyp9w/I4U+hx5C2S9g41qlstH7DEWnZaaj83OuEA==", + "dev": true, + "engines": { + "node": "^10 || ^12 || >=14.0" + }, + "peerDependencies": { + "postcss": "^8.2.15" + } + }, + "node_modules/csso": { + "version": "4.2.0", + "resolved": "https://registry.npmjs.org/csso/-/csso-4.2.0.tgz", + "integrity": "sha512-wvlcdIbf6pwKEk7vHj8/Bkc0B4ylXZruLvOgs9doS5eOsOpuodOV2zJChSpkp+pRpYQLQMeF04nr3Z68Sta9jA==", + "dev": true, + "dependencies": { + "css-tree": "^1.1.2" + }, + "engines": { + "node": ">=8.0.0" + } + }, + "node_modules/custom-event": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/custom-event/-/custom-event-1.0.1.tgz", + "integrity": "sha512-GAj5FOq0Hd+RsCGVJxZuKaIDXDf3h6GQoNEjFgbLLI/trgtavwUbSnZ5pVfg27DVCaWjIohryS0JFwIJyT2cMg==" + }, + "node_modules/d": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/d/-/d-1.0.1.tgz", + "integrity": "sha512-m62ShEObQ39CfralilEQRjH6oAMtNCV1xJyEx5LpRYUVN+EviphDgUc/F3hnYbADmkiNs67Y+3ylmlG7Lnu+FA==", + "dependencies": { + "es5-ext": "^0.10.50", + "type": "^1.0.1" + } + }, + "node_modules/dash-ast": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/dash-ast/-/dash-ast-2.0.1.tgz", + "integrity": "sha512-5TXltWJGc+RdnabUGzhRae1TRq6m4gr+3K2wQX0is5/F2yS6MJXJvLyI3ErAnsAXuJoGqvfVD5icRgim07DrxQ==" + }, + "node_modules/dashify": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/dashify/-/dashify-2.0.0.tgz", + "integrity": "sha512-hpA5C/YrPjucXypHPPc0oJ1l9Hf6wWbiOL7Ik42cxnsUOhWiCB/fylKbKqqJalW9FgkNQCw16YO8uW9Hs0Iy1A==", + "engines": { + "node": ">=4" + } + }, + "node_modules/datatables.net": { + "version": "1.13.4", + "resolved": "https://registry.npmjs.org/datatables.net/-/datatables.net-1.13.4.tgz", + "integrity": "sha512-yzhArTOB6tPO2QFKm1z3hA4vabtt2hRvgw8XLsT1xqEirinfGYqWDiWXlkTPTaJv2e7gG+Kf985sXkzBFlGrGQ==", + "dependencies": { + "jquery": ">=1.7" + } + }, + "node_modules/datatables.net-bs5": { + "version": "1.13.4", + "resolved": "https://registry.npmjs.org/datatables.net-bs5/-/datatables.net-bs5-1.13.4.tgz", + "integrity": "sha512-+gtaiau4vJeuGvnsYWmQy9gqa5XQ15XmkdwpK5EjwYCMzZZEXMQ3wfu2FddBcX5tX9Ual8C+Tf1s2gmqLGNbKQ==", + "dependencies": { + "datatables.net": ">=1.12.1", + "jquery": ">=1.7" + } + }, + "node_modules/datatables.net-buttons": { + "version": "2.3.6", + "resolved": "https://registry.npmjs.org/datatables.net-buttons/-/datatables.net-buttons-2.3.6.tgz", + "integrity": "sha512-9eid5D2kbTNfGCOiEx5WBHlwfK38W1LMz0AiNZHoSqKAiO0aXGfzrH7L2eY6reHgVMaPvHPAnqeRAjvOul2V/Q==", + "dependencies": { + "datatables.net": ">=1.12.1", + "jquery": ">=1.7" + } + }, + "node_modules/datatables.net-buttons-bs5": { + "version": "2.3.6", + "resolved": "https://registry.npmjs.org/datatables.net-buttons-bs5/-/datatables.net-buttons-bs5-2.3.6.tgz", + "integrity": "sha512-rAeK04RvvtfV9Wm893t7jsIcqT/ew1uwLus37uCg2CL2gcXZcb4qR7/mLcL1I80Rz5g+8LeO5ANPAWUnfzaUqg==", + "dependencies": { + "datatables.net-bs5": ">=1.12.1", + "datatables.net-buttons": ">=2.2.3", + "jquery": ">=1.7" + } + }, + "node_modules/datatables.net-colreorder": { + "version": "1.6.2", + "resolved": "https://registry.npmjs.org/datatables.net-colreorder/-/datatables.net-colreorder-1.6.2.tgz", + "integrity": "sha512-PrBzZA2mzBsI6NAMbgUykSdmZ3VJsf46chkeBy/1oiyArGc1e1/a5PLyb0HybkbZaFPWxeGxDAEJDVesC7j9pA==", + "dependencies": { + "datatables.net": ">=1.12.1", + "jquery": ">=1.7" + } + }, + "node_modules/datatables.net-colreorder-bs5": { + "version": "1.6.2", + "resolved": "https://registry.npmjs.org/datatables.net-colreorder-bs5/-/datatables.net-colreorder-bs5-1.6.2.tgz", + "integrity": "sha512-NDNWmI/Wq0Jo6ZHZKynnmXeAoN4jAbjcEstOz3m5JFO7BsJoC+XdpfO3aPGuYVpwHfnVZJFb0ZG/mBBwr604Zg==", + "dependencies": { + "datatables.net-bs5": ">=1.12.1", + "datatables.net-colreorder": ">=1.5.6", + "jquery": ">=1.7" + } + }, + "node_modules/datatables.net-datetime": { + "version": "1.4.0", + "resolved": "https://registry.npmjs.org/datatables.net-datetime/-/datatables.net-datetime-1.4.0.tgz", + "integrity": "sha512-mPyq8QEDyXAG3JUCS4ch9OeafvkubVqO+066x3/Y7ZWwp5kA4Dhv00Z1+U6/N9RZScdrxbd53LKW+qgg0Los1w==" + }, + "node_modules/datatables.net-fixedcolumns": { + "version": "4.2.2", + "resolved": "https://registry.npmjs.org/datatables.net-fixedcolumns/-/datatables.net-fixedcolumns-4.2.2.tgz", + "integrity": "sha512-Ml4aaBd3BjT2tho2oWREH1utFGklosckjunQwmvppRv5EwKpDWuGBzRsV1+tpdl+CJsldYRyw55C/lN2avBtew==", + "dependencies": { + "datatables.net": ">=1.12.1", + "jquery": ">=1.7" + } + }, + "node_modules/datatables.net-fixedcolumns-bs5": { + "version": "4.2.2", + "resolved": "https://registry.npmjs.org/datatables.net-fixedcolumns-bs5/-/datatables.net-fixedcolumns-bs5-4.2.2.tgz", + "integrity": "sha512-P9xxsZNhMkpFq5N4zb0XCdujT4WmDOOq92j5RTZ8lGBKonQ+8qFNinIaWwwCMC8eyIWF2kNNOsD9G/yjeX4Rzg==", + "dependencies": { + "datatables.net-bs5": ">=1.12.1", + "datatables.net-fixedcolumns": ">=4.1.0", + "jquery": ">=1.7" + } + }, + "node_modules/datatables.net-fixedheader": { + "version": "3.3.2", + "resolved": "https://registry.npmjs.org/datatables.net-fixedheader/-/datatables.net-fixedheader-3.3.2.tgz", + "integrity": "sha512-jhXC3Ce/hj34zZWCLXLtHUcnTqzV3LYq97xdpIBzvIbKTA/dPwVNP+vvrr2vNh6iWkohljuq8Jvf/IR2BmGn5Q==", + "dependencies": { + "datatables.net": ">=1.12.1", + "jquery": ">=1.7" + } + }, + "node_modules/datatables.net-fixedheader-bs5": { + "version": "3.3.2", + "resolved": "https://registry.npmjs.org/datatables.net-fixedheader-bs5/-/datatables.net-fixedheader-bs5-3.3.2.tgz", + "integrity": "sha512-OlZf2fCPFiv3c/u37zRLUMvalpbDtqunh/y3GQp2uQ282jQ+lcIB1JD3dWJO//x2jnOfxWUlUWRGc/PMZJHVTw==", + "dependencies": { + "datatables.net-bs5": ">=1.12.1", + "datatables.net-fixedheader": ">=3.2.4", + "jquery": ">=1.7" + } + }, + "node_modules/datatables.net-plugins": { + "version": "1.13.4", + "resolved": "https://registry.npmjs.org/datatables.net-plugins/-/datatables.net-plugins-1.13.4.tgz", + "integrity": "sha512-EhFWMvBxbVAX3IMZbc/jxoxT9mhvlxkGRvwIKqJ+6zTznACNncvBRhI04ztthkDgKro8txEVZn2BDTyTui2n4Q==", + "dependencies": { + "@types/jquery": "^3.5.16", + "datatables.net": "^1.13.2", + "prettier-plugin-x": "^0.0.10", + "typescript": "^4.9.5" + } + }, + "node_modules/datatables.net-responsive": { + "version": "2.4.1", + "resolved": "https://registry.npmjs.org/datatables.net-responsive/-/datatables.net-responsive-2.4.1.tgz", + "integrity": "sha512-6aGZybNb65lRPtd+hPHRyaBgs7D3R2Hw+RQP7he3qH5BTpMH9BG4FxVvyAud0Q4gyopO9I52uf60p2GT++4qOA==", + "dependencies": { + "datatables.net": ">=1.12.1", + "jquery": ">=1.7" + } + }, + "node_modules/datatables.net-responsive-bs5": { + "version": "2.4.1", + "resolved": "https://registry.npmjs.org/datatables.net-responsive-bs5/-/datatables.net-responsive-bs5-2.4.1.tgz", + "integrity": "sha512-gtW0IjNMWCWQ+KHpIPcgXiQrq2Dhxz8yKql4sS2WfuYz+Z7645mk7xmqEhy4aqpWEGXdv4rcaZhr4tt49NLOpQ==", + "dependencies": { + "datatables.net-bs5": ">=1.12.1", + "datatables.net-responsive": ">=2.3.0", + "jquery": ">=1.7" + } + }, + "node_modules/datatables.net-rowgroup": { + "version": "1.3.1", + "resolved": "https://registry.npmjs.org/datatables.net-rowgroup/-/datatables.net-rowgroup-1.3.1.tgz", + "integrity": "sha512-jMo5kD8SsyLV+tCqIlFVijUKhqHXRddfIN5N9ozU3VHxeDPuwvz0cJdNoUcdp0JJbBzLDh/9tu7yZvgGIf2b+Q==", + "dependencies": { + "datatables.net": ">=1.12.1", + "jquery": ">=1.7" + } + }, + "node_modules/datatables.net-rowgroup-bs5": { + "version": "1.3.1", + "resolved": "https://registry.npmjs.org/datatables.net-rowgroup-bs5/-/datatables.net-rowgroup-bs5-1.3.1.tgz", + "integrity": "sha512-bQ3RACLA4SZx35qkOteIo84xkGv9OrTYHtL1GbJclXoF9AdklwUYo/aQGb3m6/AChNC038PPAEgnJYthMPDiLA==", + "dependencies": { + "datatables.net-bs5": ">=1.12.1", + "datatables.net-rowgroup": ">=1.2.0", + "jquery": ">=1.7" + } + }, + "node_modules/datatables.net-rowreorder": { + "version": "1.3.3", + "resolved": "https://registry.npmjs.org/datatables.net-rowreorder/-/datatables.net-rowreorder-1.3.3.tgz", + "integrity": "sha512-QzRzYw2NGIP2snlf4tN6BsyvVvngmstj7Uk5KX412IZG3FOyyXCbBaNKl9+zKiVXIZtXJCeeRpOrApoGdwWKXA==", + "dependencies": { + "datatables.net": ">=1.12.1", + "jquery": ">=1.7" + } + }, + "node_modules/datatables.net-rowreorder-bs5": { + "version": "1.3.3", + "resolved": "https://registry.npmjs.org/datatables.net-rowreorder-bs5/-/datatables.net-rowreorder-bs5-1.3.3.tgz", + "integrity": "sha512-gu5HnGopmeS+eJf4K4AaS0H4jH9/P78dZfJr0cpJFz7PPzGAMPsj6OWP4nOiGPH5xGpIp/2napYtG2LJoibkZQ==", + "dependencies": { + "datatables.net-bs5": ">=1.12.1", + "datatables.net-rowreorder": ">=1.2.8", + "jquery": ">=1.7" + } + }, + "node_modules/datatables.net-scroller": { + "version": "2.1.1", + "resolved": "https://registry.npmjs.org/datatables.net-scroller/-/datatables.net-scroller-2.1.1.tgz", + "integrity": "sha512-TO3SYGR4DFkWIvM59Ymm2Eb7QcIBFQjdD+6N8+XYd25skfWme0q/NBa3YGoCpKjbhBgssNk8lsHqqjj8L4JPww==", + "dependencies": { + "datatables.net": ">=1.12.1", + "jquery": ">=1.7" + } + }, + "node_modules/datatables.net-scroller-bs5": { + "version": "2.1.1", + "resolved": "https://registry.npmjs.org/datatables.net-scroller-bs5/-/datatables.net-scroller-bs5-2.1.1.tgz", + "integrity": "sha512-crUK5LM0fxg19sD8FSHu5WwPO9hf6LpDCg2ZL6xhMUZHx6il/ejvpZAF4cG28wOisz1hKzLEnfxg4lp26otyJA==", + "dependencies": { + "datatables.net-bs5": ">=1.12.1", + "datatables.net-scroller": ">=2.0.7", + "jquery": ">=1.7" + } + }, + "node_modules/datatables.net-select": { + "version": "1.6.2", + "resolved": "https://registry.npmjs.org/datatables.net-select/-/datatables.net-select-1.6.2.tgz", + "integrity": "sha512-mGkWFGEN8vLJGp9POHA+CHDBIcWGOpos6mtuZ/S3hKF+niTZivqRuXybd79iDG8OHw3yRbafBIsHtcXcZxoG/g==", + "dependencies": { + "datatables.net": ">=1.12.1", + "jquery": ">=1.7" + } + }, + "node_modules/datatables.net-select-bs5": { + "version": "1.6.2", + "resolved": "https://registry.npmjs.org/datatables.net-select-bs5/-/datatables.net-select-bs5-1.6.2.tgz", + "integrity": "sha512-lq1LyZRZzp4pNIm548m2B7zVPG/OKzq3nWAddAWkqEz1MJuOu5I4d58TwN0YmWuOOYyj1gADbM4qM9bzqfS+5A==", + "dependencies": { + "datatables.net-bs5": ">=1.12.1", + "datatables.net-select": ">=1.4.0", + "jquery": ">=1.7" + } + }, + "node_modules/debug": { + "version": "4.3.4", + "resolved": "https://registry.npmjs.org/debug/-/debug-4.3.4.tgz", + "integrity": "sha512-PRWFHuSU3eDtQJPvnNY7Jcket1j0t5OuOsFzPPzsekD52Zl8qUfFIPEiswXqIvHWGVHOgX+7G/vCNNhehwxfkQ==", + "dependencies": { + "ms": "2.1.2" + }, + "engines": { + "node": ">=6.0" + }, + "peerDependenciesMeta": { + "supports-color": { + "optional": true + } + } + }, + "node_modules/dedent": { + "version": "0.7.0", + "resolved": "https://registry.npmjs.org/dedent/-/dedent-0.7.0.tgz", + "integrity": "sha512-Q6fKUPqnAHAyhiUgFU7BUzLiv0kd8saH9al7tnu5Q/okj6dnupxyTgFIBjVzJATdfIAm9NAsvXNzjaKa+bxVyA==" + }, + "node_modules/deep-equal": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/deep-equal/-/deep-equal-1.1.1.tgz", + "integrity": "sha512-yd9c5AdiqVcR+JjcwUQb9DkhJc8ngNr0MahEBGvDiJw8puWab2yZlh+nkasOnZP+EGTAP6rRp2JzJhJZzvNF8g==", + "dependencies": { + "is-arguments": "^1.0.4", + "is-date-object": "^1.0.1", + "is-regex": "^1.0.4", + "object-is": "^1.0.1", + "object-keys": "^1.1.1", + "regexp.prototype.flags": "^1.2.0" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/deep-is": { + "version": "0.1.4", + "resolved": "https://registry.npmjs.org/deep-is/-/deep-is-0.1.4.tgz", + "integrity": "sha512-oIPzksmTg4/MriiaYGO+okXDT7ztn/w3Eptv/+gSIdMdKsJo0u4CfYNFJPy+4SKMuCqGw2wxnA+URMg3t8a/bQ==" + }, + "node_modules/default-gateway": { + "version": "6.0.3", + "resolved": "https://registry.npmjs.org/default-gateway/-/default-gateway-6.0.3.tgz", + "integrity": "sha512-fwSOJsbbNzZ/CUFpqFBqYfYNLj1NbMPm8MMCIzHjC83iSJRBEGmDUxU+WP661BaBQImeC2yHwXtz+P/O9o+XEg==", + "dev": true, + "dependencies": { + "execa": "^5.0.0" + }, + "engines": { + "node": ">= 10" + } + }, + "node_modules/define-lazy-prop": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/define-lazy-prop/-/define-lazy-prop-2.0.0.tgz", + "integrity": "sha512-Ds09qNh8yw3khSjiJjiUInaGX9xlqZDY7JVryGxdxV7NPeuqQfplOpQ66yJFZut3jLa5zOwkXw1g9EI2uKh4Og==", + "dev": true, + "engines": { + "node": ">=8" + } + }, + "node_modules/define-properties": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/define-properties/-/define-properties-1.2.0.tgz", + "integrity": "sha512-xvqAVKGfT1+UAvPwKTVw/njhdQ8ZhXK4lI0bCIuCMrp2up9nPnaDftrLtmpTazqd1o+UY4zgzU+avtMbDP+ldA==", + "dependencies": { + "has-property-descriptors": "^1.0.0", + "object-keys": "^1.1.1" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/del": { + "version": "6.1.1", + "resolved": "https://registry.npmjs.org/del/-/del-6.1.1.tgz", + "integrity": "sha512-ua8BhapfP0JUJKC/zV9yHHDW/rDoDxP4Zhn3AkA6/xT6gY7jYXJiaeyBZznYVujhZZET+UgcbZiQ7sN3WqcImg==", + "dev": true, + "dependencies": { + "globby": "^11.0.1", + "graceful-fs": "^4.2.4", + "is-glob": "^4.0.1", + "is-path-cwd": "^2.2.0", + "is-path-inside": "^3.0.2", + "p-map": "^4.0.0", + "rimraf": "^3.0.2", + "slash": "^3.0.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/delayed-stream": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/delayed-stream/-/delayed-stream-1.0.0.tgz", + "integrity": "sha512-ZySD7Nf91aLB0RxL4KGrKHBXl7Eds1DAmEdcoVawXnLD7SDhpNgtuII2aAkg7a7QS41jxPSZ17p4VdGnMHk3MQ==", + "dev": true, + "engines": { + "node": ">=0.4.0" + } + }, + "node_modules/delegate": { + "version": "3.2.0", + "resolved": "https://registry.npmjs.org/delegate/-/delegate-3.2.0.tgz", + "integrity": "sha512-IofjkYBZaZivn0V8nnsMJGBr4jVLxHDheKSW88PyxS5QC4Vo9ZbZVvhzlSxY87fVq3STR6r+4cGepyHkcWOQSw==" + }, + "node_modules/depd": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/depd/-/depd-2.0.0.tgz", + "integrity": "sha512-g7nH6P6dyDioJogAAGprGpCtVImJhpPk/roCzdb3fIh61/s/nPsfR6onyMwkCAR/OlC3yBC0lESvUoQEAssIrw==", + "dev": true, + "engines": { + "node": ">= 0.8" + } + }, + "node_modules/des.js": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/des.js/-/des.js-1.0.1.tgz", + "integrity": "sha512-Q0I4pfFrv2VPd34/vfLrFOoRmlYj3OV50i7fskps1jZWK1kApMWWT9G6RRUeYedLcBDIhnSDaUvJMb3AhUlaEA==", + "dev": true, + "dependencies": { + "inherits": "^2.0.1", + "minimalistic-assert": "^1.0.0" + } + }, + "node_modules/destroy": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/destroy/-/destroy-1.2.0.tgz", + "integrity": "sha512-2sJGJTaXIIaR1w4iJSNoN0hnMY7Gpc/n8D4qSCJw8QqFWXf7cuAgnEHxBpweaVcPevC2l3KpjYCx3NypQQgaJg==", + "dev": true, + "engines": { + "node": ">= 0.8", + "npm": "1.2.8000 || >= 1.4.16" + } + }, + "node_modules/detect-newline": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/detect-newline/-/detect-newline-3.1.0.tgz", + "integrity": "sha512-TLz+x/vEXm/Y7P7wn1EJFNLxYpUD4TgMosxY6fAVJUnJMbupHBOncxyWUG9OpTaH9EBD7uFI5LfEgmMOc54DsA==", + "engines": { + "node": ">=8" + } + }, + "node_modules/detect-node": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/detect-node/-/detect-node-2.1.0.tgz", + "integrity": "sha512-T0NIuQpnTvFDATNuHN5roPwSBG83rFsuO+MXXH9/3N1eFbn4wcPjttvjMLEPWJ0RGUYgQE7cGgS3tNxbqCGM7g==", + "dev": true + }, + "node_modules/dfa": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/dfa/-/dfa-1.2.0.tgz", + "integrity": "sha512-ED3jP8saaweFTjeGX8HQPjeC1YYyZs98jGNZx6IiBvxW7JG5v492kamAQB3m2wop07CvU/RQmzcKr6bgcC5D/Q==" + }, + "node_modules/diff": { + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/diff/-/diff-5.0.0.tgz", + "integrity": "sha512-/VTCrvm5Z0JGty/BWHljh+BAiw3IK+2j87NGMu8Nwc/f48WoDAC395uomO9ZD117ZOBaHmkX1oyLvkVM/aIT3w==", + "engines": { + "node": ">=0.3.1" + } + }, + "node_modules/diffie-hellman": { + "version": "5.0.3", + "resolved": "https://registry.npmjs.org/diffie-hellman/-/diffie-hellman-5.0.3.tgz", + "integrity": "sha512-kqag/Nl+f3GwyK25fhUMYj81BUOrZ9IuJsjIcDE5icNM9FJHAVm3VcUDxdLPoQtTuUylWm6ZIknYJwwaPxsUzg==", + "dev": true, + "dependencies": { + "bn.js": "^4.1.0", + "miller-rabin": "^4.0.0", + "randombytes": "^2.0.0" + } + }, + "node_modules/diffie-hellman/node_modules/bn.js": { + "version": "4.12.0", + "resolved": "https://registry.npmjs.org/bn.js/-/bn.js-4.12.0.tgz", + "integrity": "sha512-c98Bf3tPniI+scsdk237ku1Dc3ujXQTSgyiPUDEOe7tRkhrqridvh8klBv0HCEso1OLOYcHuCv/cS6DNxKH+ZA==", + "dev": true + }, + "node_modules/dir-glob": { + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/dir-glob/-/dir-glob-3.0.1.tgz", + "integrity": "sha512-WkrWp9GR4KXfKGYzOLmTuGVi1UWFfws377n9cc55/tb6DuqyF6pcQ5AbiHEshaDpY9v6oaSr2XCDidGmMwdzIA==", + "dependencies": { + "path-type": "^4.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/dns-equal": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/dns-equal/-/dns-equal-1.0.0.tgz", + "integrity": "sha512-z+paD6YUQsk+AbGCEM4PrOXSss5gd66QfcVBFTKR/HpFL9jCqikS94HYwKww6fQyO7IxrIIyUu+g0Ka9tUS2Cg==", + "dev": true + }, + "node_modules/dns-packet": { + "version": "5.5.0", + "resolved": "https://registry.npmjs.org/dns-packet/-/dns-packet-5.5.0.tgz", + "integrity": "sha512-USawdAUzRkV6xrqTjiAEp6M9YagZEzWcSUaZTcIFAiyQWW1SoI6KyId8y2+/71wbgHKQAKd+iupLv4YvEwYWvA==", + "dev": true, + "dependencies": { + "@leichtgewicht/ip-codec": "^2.0.1" + }, + "engines": { + "node": ">=6" + } + }, + "node_modules/dom-serializer": { + "version": "1.4.1", + "resolved": "https://registry.npmjs.org/dom-serializer/-/dom-serializer-1.4.1.tgz", + "integrity": "sha512-VHwB3KfrcOOkelEG2ZOfxqLZdfkil8PtJi4P8N2MMXucZq2yLp75ClViUlOVwyoHEDjYU433Aq+5zWP61+RGag==", + "dev": true, + "dependencies": { + "domelementtype": "^2.0.1", + "domhandler": "^4.2.0", + "entities": "^2.0.0" + }, + "funding": { + "url": "https://github.com/cheeriojs/dom-serializer?sponsor=1" + } + }, + "node_modules/dom-serializer/node_modules/domhandler": { + "version": "4.3.1", + "resolved": "https://registry.npmjs.org/domhandler/-/domhandler-4.3.1.tgz", + "integrity": "sha512-GrwoxYN+uWlzO8uhUXRl0P+kHE4GtVPfYzVLcUxPL7KNdHKj66vvlhiweIHqYYXWlw+T8iLMp42Lm67ghw4WMQ==", + "dev": true, + "dependencies": { + "domelementtype": "^2.2.0" + }, + "engines": { + "node": ">= 4" + }, + "funding": { + "url": "https://github.com/fb55/domhandler?sponsor=1" + } + }, + "node_modules/domain-browser": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/domain-browser/-/domain-browser-1.2.0.tgz", + "integrity": "sha512-jnjyiM6eRyZl2H+W8Q/zLMA481hzi0eszAaBUzIVnmYVDBbnLxVNnfu1HgEBvCbL+71FrxMl3E6lpKH7Ge3OXA==", + "dev": true, + "engines": { + "node": ">=0.4", + "npm": ">=1.2" + } + }, + "node_modules/domelementtype": { + "version": "2.3.0", + "resolved": "https://registry.npmjs.org/domelementtype/-/domelementtype-2.3.0.tgz", + "integrity": "sha512-OLETBj6w0OsagBwdXnPdN0cnMfF9opN69co+7ZrbfPGrdpPVNBUj02spi6B1N7wChLQiPn4CSH/zJvXw56gmHw==", + "dev": true, + "funding": [ + { + "type": "github", + "url": "https://github.com/sponsors/fb55" + } + ] + }, + "node_modules/domhandler": { + "version": "3.3.0", + "resolved": "https://registry.npmjs.org/domhandler/-/domhandler-3.3.0.tgz", + "integrity": "sha512-J1C5rIANUbuYK+FuFL98650rihynUOEzRLxW+90bKZRWB6A1X1Tf82GxR1qAWLyfNPRvjqfip3Q5tdYlmAa9lA==", + "dev": true, + "dependencies": { + "domelementtype": "^2.0.1" + }, + "engines": { + "node": ">= 4" + }, + "funding": { + "url": "https://github.com/fb55/domhandler?sponsor=1" + } + }, + "node_modules/domutils": { + "version": "2.8.0", + "resolved": "https://registry.npmjs.org/domutils/-/domutils-2.8.0.tgz", + "integrity": "sha512-w96Cjofp72M5IIhpjgobBimYEfoPjx1Vx0BSX9P30WBdZW2WIKU0T1Bd0kz2eNZ9ikjKgHbEyKx8BB6H1L3h3A==", + "dev": true, + "dependencies": { + "dom-serializer": "^1.0.1", + "domelementtype": "^2.2.0", + "domhandler": "^4.2.0" + }, + "funding": { + "url": "https://github.com/fb55/domutils?sponsor=1" + } + }, + "node_modules/domutils/node_modules/domhandler": { + "version": "4.3.1", + "resolved": "https://registry.npmjs.org/domhandler/-/domhandler-4.3.1.tgz", + "integrity": "sha512-GrwoxYN+uWlzO8uhUXRl0P+kHE4GtVPfYzVLcUxPL7KNdHKj66vvlhiweIHqYYXWlw+T8iLMp42Lm67ghw4WMQ==", + "dev": true, + "dependencies": { + "domelementtype": "^2.2.0" + }, + "engines": { + "node": ">= 4" + }, + "funding": { + "url": "https://github.com/fb55/domhandler?sponsor=1" + } + }, + "node_modules/dot-case": { + "version": "3.0.4", + "resolved": "https://registry.npmjs.org/dot-case/-/dot-case-3.0.4.tgz", + "integrity": "sha512-Kv5nKlh6yRrdrGvxeJ2e5y2eRUpkUosIW4A2AS38zwSz27zu7ufDwQPi5Jhs3XAlGNetl3bmnGhQsMtkKJnj3w==", + "dev": true, + "dependencies": { + "no-case": "^3.0.4", + "tslib": "^2.0.3" + } + }, + "node_modules/dot-prop": { + "version": "5.3.0", + "resolved": "https://registry.npmjs.org/dot-prop/-/dot-prop-5.3.0.tgz", + "integrity": "sha512-QM8q3zDe58hqUqjraQOmzZ1LIH9SWQJTlEKCH4kJ2oQvLZk7RbQXvtDM2XEq3fwkV9CCvvH4LA0AV+ogFsBM2Q==", + "dev": true, + "dependencies": { + "is-obj": "^2.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/dotenv": { + "version": "10.0.0", + "resolved": "https://registry.npmjs.org/dotenv/-/dotenv-10.0.0.tgz", + "integrity": "sha512-rlBi9d8jpv9Sf1klPjNfFAuWDjKLwTIJJ/VxtoTwIR6hnZxcEOQCZg2oIL3MWBYw5GpUDKOEnND7LXTbIpQ03Q==", + "dev": true, + "engines": { + "node": ">=10" + } + }, + "node_modules/dotenv-expand": { + "version": "5.1.0", + "resolved": "https://registry.npmjs.org/dotenv-expand/-/dotenv-expand-5.1.0.tgz", + "integrity": "sha512-YXQl1DSa4/PQyRfgrv6aoNjhasp/p4qs9FjJ4q4cQk+8m4r6k4ZSiEyytKG8f8W9gi8WsQtIObNmKd+tMzNTmA==", + "dev": true + }, + "node_modules/dragula": { + "version": "3.7.3", + "resolved": "https://registry.npmjs.org/dragula/-/dragula-3.7.3.tgz", + "integrity": "sha512-/rRg4zRhcpf81TyDhaHLtXt6sEywdfpv1cRUMeFFy7DuypH2U0WUL0GTdyAQvXegviT4PJK4KuMmOaIDpICseQ==", + "dependencies": { + "contra": "1.9.4", + "crossvent": "1.5.5" + } + }, + "node_modules/dropzone": { + "version": "5.9.3", + "resolved": "https://registry.npmjs.org/dropzone/-/dropzone-5.9.3.tgz", + "integrity": "sha512-Azk8kD/2/nJIuVPK+zQ9sjKMRIpRvNyqn9XwbBHNq+iNuSccbJS6hwm1Woy0pMST0erSo0u4j+KJaodndDk4vA==" + }, + "node_modules/duplexer2": { + "version": "0.1.4", + "resolved": "https://registry.npmjs.org/duplexer2/-/duplexer2-0.1.4.tgz", + "integrity": "sha512-asLFVfWWtJ90ZyOUHMqk7/S2w2guQKxUI2itj3d92ADHhxUSbCMGi1f1cBcJ7xM1To+pE/Khbwo1yuNbMEPKeA==", + "dependencies": { + "readable-stream": "^2.0.2" + } + }, + "node_modules/editorconfig": { + "version": "0.15.3", + "resolved": "https://registry.npmjs.org/editorconfig/-/editorconfig-0.15.3.tgz", + "integrity": "sha512-M9wIMFx96vq0R4F+gRpY3o2exzb8hEj/n9S8unZtHSvYjibBp/iMufSzvmOcV/laG0ZtuTVGtiJggPOSW2r93g==", + "dependencies": { + "commander": "^2.19.0", + "lru-cache": "^4.1.5", + "semver": "^5.6.0", + "sigmund": "^1.0.1" + }, + "bin": { + "editorconfig": "bin/editorconfig" + } + }, + "node_modules/editorconfig-to-prettier": { + "version": "0.1.1", + "resolved": "https://registry.npmjs.org/editorconfig-to-prettier/-/editorconfig-to-prettier-0.1.1.tgz", + "integrity": "sha512-MMadSSVRDb4uKdxV6bCXXN4cTsxIsXYtV4XdPu6FOCSAw6zsCIDA+QEktEU+u6h+c/mTrul5NR+pwFpPxwetiQ==" + }, + "node_modules/editorconfig/node_modules/commander": { + "version": "2.20.3", + "resolved": "https://registry.npmjs.org/commander/-/commander-2.20.3.tgz", + "integrity": "sha512-GpVkmM8vF2vQUkj2LvZmD35JxeJOLCwJ9cUkugyk2nuhbv3+mJvpLYYt+0+USMxE+oj+ey/lJEnhZw75x/OMcQ==" + }, + "node_modules/editorconfig/node_modules/lru-cache": { + "version": "4.1.5", + "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-4.1.5.tgz", + "integrity": "sha512-sWZlbEP2OsHNkXrMl5GYk/jKk70MBng6UU4YI/qGDYbgf6YbP4EvmqISbXCoJiRKs+1bSpFHVgQxvJ17F2li5g==", + "dependencies": { + "pseudomap": "^1.0.2", + "yallist": "^2.1.2" + } + }, + "node_modules/editorconfig/node_modules/semver": { + "version": "5.7.1", + "resolved": "https://registry.npmjs.org/semver/-/semver-5.7.1.tgz", + "integrity": "sha512-sauaDf/PZdVgrLTNYHRtpXa1iRiKcaebiKQ1BJdpQlWH2lCvexQdX55snPFyK7QzpudqbCI0qXFfOasHdyNDGQ==", + "bin": { + "semver": "bin/semver" + } + }, + "node_modules/editorconfig/node_modules/yallist": { + "version": "2.1.2", + "resolved": "https://registry.npmjs.org/yallist/-/yallist-2.1.2.tgz", + "integrity": "sha512-ncTzHV7NvsQZkYe1DW7cbDLm0YpzHmZF5r/iyP3ZnQtMiJ+pjzisCiMNI+Sj+xQF5pXhSHxSB3uDbsBTzY/c2A==" + }, + "node_modules/ee-first": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/ee-first/-/ee-first-1.1.1.tgz", + "integrity": "sha512-WMwm9LhRUo+WUaRN+vRuETqG89IgZphVSNkdFgeb6sS/E4OrDIN7t48CAewSHXc6C8lefD8KKfr5vY61brQlow==", + "dev": true + }, + "node_modules/electron-to-chromium": { + "version": "1.4.363", + "resolved": "https://registry.npmjs.org/electron-to-chromium/-/electron-to-chromium-1.4.363.tgz", + "integrity": "sha512-ReX5qgmSU7ybhzMuMdlJAdYnRhT90UB3k9M05O5nF5WH3wR5wgdJjXw0uDeFyKNhmglmQiOxkAbzrP0hMKM59g==", + "dev": true + }, + "node_modules/elliptic": { + "version": "6.5.4", + "resolved": "https://registry.npmjs.org/elliptic/-/elliptic-6.5.4.tgz", + "integrity": "sha512-iLhC6ULemrljPZb+QutR5TQGB+pdW6KGD5RSegS+8sorOZT+rdQFbsQFJgvN3eRqNALqJer4oQ16YvJHlU8hzQ==", + "dev": true, + "dependencies": { + "bn.js": "^4.11.9", + "brorand": "^1.1.0", + "hash.js": "^1.0.0", + "hmac-drbg": "^1.0.1", + "inherits": "^2.0.4", + "minimalistic-assert": "^1.0.1", + "minimalistic-crypto-utils": "^1.0.1" + } + }, + "node_modules/elliptic/node_modules/bn.js": { + "version": "4.12.0", + "resolved": "https://registry.npmjs.org/bn.js/-/bn.js-4.12.0.tgz", + "integrity": "sha512-c98Bf3tPniI+scsdk237ku1Dc3ujXQTSgyiPUDEOe7tRkhrqridvh8klBv0HCEso1OLOYcHuCv/cS6DNxKH+ZA==", + "dev": true + }, + "node_modules/emoji-regex": { + "version": "8.0.0", + "resolved": "https://registry.npmjs.org/emoji-regex/-/emoji-regex-8.0.0.tgz", + "integrity": "sha512-MSjYzcWNOA0ewAHpz0MxpYFvwg6yjy1NG3xteoqz644VCo/RPgnr1/GGt+ic3iJTzQ8Eu3TdM14SawnVUmGE6A==" + }, + "node_modules/emojis-list": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/emojis-list/-/emojis-list-3.0.0.tgz", + "integrity": "sha512-/kyM18EfinwXZbno9FyUGeFh87KC8HRQBQGildHZbEuRyWFOmv1U10o9BBp8XVZDVNNuQKyIGIu5ZYAAXJ0V2Q==", + "dev": true, + "engines": { + "node": ">= 4" + } + }, + "node_modules/encodeurl": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/encodeurl/-/encodeurl-1.0.2.tgz", + "integrity": "sha512-TPJXq8JqFaVYm2CWmPvnP2Iyo4ZSM7/QKcSmuMLDObfpH5fi7RUGmd/rTDf+rut/saiDiQEeVTNgAmJEdAOx0w==", + "dev": true, + "engines": { + "node": ">= 0.8" + } + }, + "node_modules/enhanced-resolve": { + "version": "5.12.0", + "resolved": "https://registry.npmjs.org/enhanced-resolve/-/enhanced-resolve-5.12.0.tgz", + "integrity": "sha512-QHTXI/sZQmko1cbDoNAa3mJ5qhWUUNAq3vR0/YiD379fWQrcfuoX1+HW2S0MTt7XmoPLapdaDKUtelUSPic7hQ==", + "dev": true, + "dependencies": { + "graceful-fs": "^4.2.4", + "tapable": "^2.2.0" + }, + "engines": { + "node": ">=10.13.0" + } + }, + "node_modules/entities": { + "version": "2.2.0", + "resolved": "https://registry.npmjs.org/entities/-/entities-2.2.0.tgz", + "integrity": "sha512-p92if5Nz619I0w+akJrLZH0MX0Pb5DX39XOwQTtXSdQQOaYH03S1uIQp4mhOZtAXrxq4ViO67YTiLBo2638o9A==", + "dev": true, + "funding": { + "url": "https://github.com/fb55/entities?sponsor=1" + } + }, + "node_modules/envinfo": { + "version": "7.8.1", + "resolved": "https://registry.npmjs.org/envinfo/-/envinfo-7.8.1.tgz", + "integrity": "sha512-/o+BXHmB7ocbHEAs6F2EnG0ogybVVUdkRunTT2glZU9XAaGmhqskrvKwqXuDfNjEO0LZKWdejEEpnq8aM0tOaw==", + "dev": true, + "bin": { + "envinfo": "dist/cli.js" + }, + "engines": { + "node": ">=4" + } + }, + "node_modules/error-ex": { + "version": "1.3.2", + "resolved": "https://registry.npmjs.org/error-ex/-/error-ex-1.3.2.tgz", + "integrity": "sha512-7dFHNmqeFSEt2ZBsCriorKnn3Z2pj+fd9kmI6QoWw4//DL+icEBfc0U7qJCisqrTsKTjw4fNFy2pW9OqStD84g==", + "dependencies": { + "is-arrayish": "^0.2.1" + } + }, + "node_modules/es-abstract": { + "version": "1.21.2", + "resolved": "https://registry.npmjs.org/es-abstract/-/es-abstract-1.21.2.tgz", + "integrity": "sha512-y/B5POM2iBnIxCiernH1G7rC9qQoM77lLIMQLuob0zhp8C56Po81+2Nj0WFKnd0pNReDTnkYryc+zhOzpEIROg==", + "dev": true, + "dependencies": { + "array-buffer-byte-length": "^1.0.0", + "available-typed-arrays": "^1.0.5", + "call-bind": "^1.0.2", + "es-set-tostringtag": "^2.0.1", + "es-to-primitive": "^1.2.1", + "function.prototype.name": "^1.1.5", + "get-intrinsic": "^1.2.0", + "get-symbol-description": "^1.0.0", + "globalthis": "^1.0.3", + "gopd": "^1.0.1", + "has": "^1.0.3", + "has-property-descriptors": "^1.0.0", + "has-proto": "^1.0.1", + "has-symbols": "^1.0.3", + "internal-slot": "^1.0.5", + "is-array-buffer": "^3.0.2", + "is-callable": "^1.2.7", + "is-negative-zero": "^2.0.2", + "is-regex": "^1.1.4", + "is-shared-array-buffer": "^1.0.2", + "is-string": "^1.0.7", + "is-typed-array": "^1.1.10", + "is-weakref": "^1.0.2", + "object-inspect": "^1.12.3", + "object-keys": "^1.1.1", + "object.assign": "^4.1.4", + "regexp.prototype.flags": "^1.4.3", + "safe-regex-test": "^1.0.0", + "string.prototype.trim": "^1.2.7", + "string.prototype.trimend": "^1.0.6", + "string.prototype.trimstart": "^1.0.6", + "typed-array-length": "^1.0.4", + "unbox-primitive": "^1.0.2", + "which-typed-array": "^1.1.9" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/es-array-method-boxes-properly": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/es-array-method-boxes-properly/-/es-array-method-boxes-properly-1.0.0.tgz", + "integrity": "sha512-wd6JXUmyHmt8T5a2xreUwKcGPq6f1f+WwIJkijUqiGcJz1qqnZgP6XIK+QyIWU5lT7imeNxUll48bziG+TSYcA==", + "dev": true + }, + "node_modules/es-module-lexer": { + "version": "1.2.1", + "resolved": "https://registry.npmjs.org/es-module-lexer/-/es-module-lexer-1.2.1.tgz", + "integrity": "sha512-9978wrXM50Y4rTMmW5kXIC09ZdXQZqkE4mxhwkd8VbzsGkXGPgV4zWuqQJgCEzYngdo2dYDa0l8xhX4fkSwJSg==", + "dev": true + }, + "node_modules/es-set-tostringtag": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/es-set-tostringtag/-/es-set-tostringtag-2.0.1.tgz", + "integrity": "sha512-g3OMbtlwY3QewlqAiMLI47KywjWZoEytKr8pf6iTC8uJq5bIAH52Z9pnQ8pVL6whrCto53JZDuUIsifGeLorTg==", + "dev": true, + "dependencies": { + "get-intrinsic": "^1.1.3", + "has": "^1.0.3", + "has-tostringtag": "^1.0.0" + }, + "engines": { + "node": ">= 0.4" + } + }, + "node_modules/es-to-primitive": { + "version": "1.2.1", + "resolved": "https://registry.npmjs.org/es-to-primitive/-/es-to-primitive-1.2.1.tgz", + "integrity": "sha512-QCOllgZJtaUo9miYBcLChTUaHNjJF3PYs1VidD7AwiEj1kYxKeQTctLAezAOH5ZKRH0g2IgPn6KwB4IT8iRpvA==", + "dev": true, + "dependencies": { + "is-callable": "^1.1.4", + "is-date-object": "^1.0.1", + "is-symbol": "^1.0.2" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/es5-ext": { + "version": "0.10.62", + "resolved": "https://registry.npmjs.org/es5-ext/-/es5-ext-0.10.62.tgz", + "integrity": "sha512-BHLqn0klhEpnOKSrzn/Xsz2UIW8j+cGmo9JLzr8BiUapV8hPL9+FliFqjwr9ngW7jWdnxv6eO+/LqyhJVqgrjA==", + "hasInstallScript": true, + "dependencies": { + "es6-iterator": "^2.0.3", + "es6-symbol": "^3.1.3", + "next-tick": "^1.1.0" + }, + "engines": { + "node": ">=0.10" + } + }, + "node_modules/es6-iterator": { + "version": "2.0.3", + "resolved": "https://registry.npmjs.org/es6-iterator/-/es6-iterator-2.0.3.tgz", + "integrity": "sha512-zw4SRzoUkd+cl+ZoE15A9o1oQd920Bb0iOJMQkQhl3jNc03YqVjAhG7scf9C5KWRU/R13Orf588uCC6525o02g==", + "dependencies": { + "d": "1", + "es5-ext": "^0.10.35", + "es6-symbol": "^3.1.1" + } + }, + "node_modules/es6-map": { + "version": "0.1.5", + "resolved": "https://registry.npmjs.org/es6-map/-/es6-map-0.1.5.tgz", + "integrity": "sha512-mz3UqCh0uPCIqsw1SSAkB/p0rOzF/M0V++vyN7JqlPtSW/VsYgQBvVvqMLmfBuyMzTpLnNqi6JmcSizs4jy19A==", + "dependencies": { + "d": "1", + "es5-ext": "~0.10.14", + "es6-iterator": "~2.0.1", + "es6-set": "~0.1.5", + "es6-symbol": "~3.1.1", + "event-emitter": "~0.3.5" + } + }, + "node_modules/es6-promise": { + "version": "4.2.8", + "resolved": "https://registry.npmjs.org/es6-promise/-/es6-promise-4.2.8.tgz", + "integrity": "sha512-HJDGx5daxeIvxdBxvG2cb9g4tEvwIk3i8+nhX0yGrYmZUzbkdg8QbDevheDB8gd0//uPj4c1EQua8Q+MViT0/w==" + }, + "node_modules/es6-promise-polyfill": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/es6-promise-polyfill/-/es6-promise-polyfill-1.2.0.tgz", + "integrity": "sha512-HHb0vydCpoclpd0ySPkRXMmBw80MRt1wM4RBJBlXkux97K7gleabZdsR0gvE1nNPM9mgOZIBTzjjXiPxf4lIqQ==" + }, + "node_modules/es6-set": { + "version": "0.1.6", + "resolved": "https://registry.npmjs.org/es6-set/-/es6-set-0.1.6.tgz", + "integrity": "sha512-TE3LgGLDIBX332jq3ypv6bcOpkLO0AslAQo7p2VqX/1N46YNsvIWgvjojjSEnWEGWMhr1qUbYeTSir5J6mFHOw==", + "dependencies": { + "d": "^1.0.1", + "es5-ext": "^0.10.62", + "es6-iterator": "~2.0.3", + "es6-symbol": "^3.1.3", + "event-emitter": "^0.3.5", + "type": "^2.7.2" + }, + "engines": { + "node": ">=0.12" + } + }, + "node_modules/es6-set/node_modules/type": { + "version": "2.7.2", + "resolved": "https://registry.npmjs.org/type/-/type-2.7.2.tgz", + "integrity": "sha512-dzlvlNlt6AXU7EBSfpAscydQ7gXB+pPGsPnfJnZpiNJBDj7IaJzQlBZYGdEi4R9HmPdBv2XmWJ6YUtoTa7lmCw==" + }, + "node_modules/es6-shim": { + "version": "0.35.8", + "resolved": "https://registry.npmjs.org/es6-shim/-/es6-shim-0.35.8.tgz", + "integrity": "sha512-Twf7I2v4/1tLoIXMT8HlqaBSS5H2wQTs2wx3MNYCI8K1R1/clXyCazrcVCPm/FuO9cyV8+leEaZOWD5C253NDg==" + }, + "node_modules/es6-symbol": { + "version": "3.1.3", + "resolved": "https://registry.npmjs.org/es6-symbol/-/es6-symbol-3.1.3.tgz", + "integrity": "sha512-NJ6Yn3FuDinBaBRWl/q5X/s4koRHBrgKAu+yGI6JCBeiu3qrcbJhwT2GeR/EXVfylRk8dpQVJoLEFhK+Mu31NA==", + "dependencies": { + "d": "^1.0.1", + "ext": "^1.1.2" + } + }, + "node_modules/escalade": { + "version": "3.1.1", + "resolved": "https://registry.npmjs.org/escalade/-/escalade-3.1.1.tgz", + "integrity": "sha512-k0er2gUkLf8O0zKJiAhmkTnJlTvINGv7ygDNPbeIsX/TJjGJZHuh9B2UxbsaEkmlEo9MfhrSzmhIlhRlI2GXnw==", + "dev": true, + "engines": { + "node": ">=6" + } + }, + "node_modules/escape-html": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/escape-html/-/escape-html-1.0.3.tgz", + "integrity": "sha512-NiSupZ4OeuGwr68lGIeym/ksIZMJodUGOSCZ/FSnTxcrekbvqrgdUxlJOMpijaKZVjAJrWrGs/6Jy8OMuyj9ow==", + "dev": true + }, + "node_modules/escape-string-regexp": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-4.0.0.tgz", + "integrity": "sha512-TtpcNJ3XAzx3Gq8sWRzJaVajRs0uVxA2YAkdb1jm2YkPz4G6egUFAyA3n5vtEIZefPk5Wa4UXbKuS5fKkJWdgA==", + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/escodegen": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/escodegen/-/escodegen-1.2.0.tgz", + "integrity": "sha512-yLy3Cc+zAC0WSmoT2fig3J87TpQ8UaZGx8ahCAs9FL8qNbyV7CVyPKS74DG4bsHiL5ew9sxdYx131OkBQMFnvA==", + "dependencies": { + "esprima": "~1.0.4", + "estraverse": "~1.5.0", + "esutils": "~1.0.0" + }, + "bin": { + "escodegen": "bin/escodegen.js", + "esgenerate": "bin/esgenerate.js" + }, + "engines": { + "node": ">=0.4.0" + }, + "optionalDependencies": { + "source-map": "~0.1.30" + } + }, + "node_modules/escodegen/node_modules/esutils": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/esutils/-/esutils-1.0.0.tgz", + "integrity": "sha512-x/iYH53X3quDwfHRz4y8rn4XcEwwCJeWsul9pF1zldMbGtgOtMNBEOuYWwB1EQlK2LRa1fev3YAgym/RElp5Cg==", + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/escodegen/node_modules/source-map": { + "version": "0.1.43", + "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.1.43.tgz", + "integrity": "sha512-VtCvB9SIQhk3aF6h+N85EaqIaBFIAfZ9Cu+NJHHVvc8BbEcnvDcFw6sqQ2dQrT6SlOrZq3tIvyD9+EGq/lJryQ==", + "optional": true, + "dependencies": { + "amdefine": ">=0.0.4" + }, + "engines": { + "node": ">=0.8.0" + } + }, + "node_modules/eslint-scope": { + "version": "5.1.1", + "resolved": "https://registry.npmjs.org/eslint-scope/-/eslint-scope-5.1.1.tgz", + "integrity": "sha512-2NxwbF/hZ0KpepYN0cNbo+FN6XoK7GaHlQhgx/hIZl6Va0bF45RQOOwhLIy8lQDbuCiadSLCBnH2CFYquit5bw==", + "dev": true, + "dependencies": { + "esrecurse": "^4.3.0", + "estraverse": "^4.1.1" + }, + "engines": { + "node": ">=8.0.0" + } + }, + "node_modules/eslint-scope/node_modules/estraverse": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/estraverse/-/estraverse-4.3.0.tgz", + "integrity": "sha512-39nnKffWz8xN1BU/2c79n9nB9HDzo0niYUqx6xyqUnyoAnQyyWpOTdZEeiCch8BBu515t4wp9ZmgVfVhn9EBpw==", + "dev": true, + "engines": { + "node": ">=4.0" + } + }, + "node_modules/eslint-visitor-keys": { + "version": "1.3.0", + "resolved": "https://registry.npmjs.org/eslint-visitor-keys/-/eslint-visitor-keys-1.3.0.tgz", + "integrity": "sha512-6J72N8UNa462wa/KFODt/PJ3IU60SDpC3QXC1Hjc1BXXpfL2C9R5+AU7jhe0F6GREqVMh4Juu+NY7xn+6dipUQ==", + "engines": { + "node": ">=4" + } + }, + "node_modules/esprima": { + "version": "1.0.4", + "resolved": "https://registry.npmjs.org/esprima/-/esprima-1.0.4.tgz", + "integrity": "sha512-rp5dMKN8zEs9dfi9g0X1ClLmV//WRyk/R15mppFNICIFRG5P92VP7Z04p8pk++gABo9W2tY+kHyu6P1mEHgmTA==", + "bin": { + "esparse": "bin/esparse.js", + "esvalidate": "bin/esvalidate.js" + }, + "engines": { + "node": ">=0.4.0" + } + }, + "node_modules/esrecurse": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/esrecurse/-/esrecurse-4.3.0.tgz", + "integrity": "sha512-KmfKL3b6G+RXvP8N1vr3Tq1kL/oCFgn2NYXEtqP8/L3pKapUA4G8cFVaoF3SU323CD4XypR/ffioHmkti6/Tag==", + "dev": true, + "dependencies": { + "estraverse": "^5.2.0" + }, + "engines": { + "node": ">=4.0" + } + }, + "node_modules/esrecurse/node_modules/estraverse": { + "version": "5.3.0", + "resolved": "https://registry.npmjs.org/estraverse/-/estraverse-5.3.0.tgz", + "integrity": "sha512-MMdARuVEQziNTeJD8DgMqmhwR11BRQ/cBP+pLtYdSTnf3MIO8fFeiINEbX36ZdNlfU/7A9f3gUw49B3oQsvwBA==", + "dev": true, + "engines": { + "node": ">=4.0" + } + }, + "node_modules/esri-leaflet": { + "version": "3.0.10", + "resolved": "https://registry.npmjs.org/esri-leaflet/-/esri-leaflet-3.0.10.tgz", + "integrity": "sha512-2ma+mMHrJA7oqJFHZDLZrCAMkaXTdFFJRsJqlsh3Z2G+nXKj2SrlzJ2YmN5qgnI9y/X5AkcSfxViBoQTX9rcSw==", + "dependencies": { + "@terraformer/arcgis": "^2.1.0", + "tiny-binary-search": "^1.0.3" + }, + "peerDependencies": { + "leaflet": "^1.0.0" + } + }, + "node_modules/esri-leaflet-geocoder": { + "version": "3.1.4", + "resolved": "https://registry.npmjs.org/esri-leaflet-geocoder/-/esri-leaflet-geocoder-3.1.4.tgz", + "integrity": "sha512-VMqWgbB7/3X8GuIaUemn/NGlLr3BB51ZpBWBfj/Q71HDXBKIPnGExUuXU9wqblYlj1j3w8uhwVKSGEHPpX+QiA==", + "dependencies": { + "esri-leaflet": "^3.0.2", + "leaflet": "^1.0.0" + } + }, + "node_modules/estraverse": { + "version": "1.5.1", + "resolved": "https://registry.npmjs.org/estraverse/-/estraverse-1.5.1.tgz", + "integrity": "sha512-FpCjJDfmo3vsc/1zKSeqR5k42tcIhxFIlvq+h9j0fO2q/h2uLKyweq7rYJ+0CoVvrGQOxIS5wyBrW/+vF58BUQ==", + "engines": { + "node": ">=0.4.0" + } + }, + "node_modules/estree-is-function": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/estree-is-function/-/estree-is-function-1.0.0.tgz", + "integrity": "sha512-nSCWn1jkSq2QAtkaVLJZY2ezwcFO161HVc174zL1KPW3RJ+O6C3eJb8Nx7OXzvhoEv+nLgSR1g71oWUHUDTrJA==" + }, + "node_modules/esutils": { + "version": "2.0.3", + "resolved": "https://registry.npmjs.org/esutils/-/esutils-2.0.3.tgz", + "integrity": "sha512-kVscqXk4OCp68SZ0dkgEKVi6/8ij300KBWTJq32P/dYeWTSwK41WyTxalN1eRmA5Z9UU/LX9D7FWSmV9SAYx6g==", + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/etag": { + "version": "1.8.1", + "resolved": "https://registry.npmjs.org/etag/-/etag-1.8.1.tgz", + "integrity": "sha512-aIL5Fx7mawVa300al2BnEE4iNvo1qETxLrPI/o05L7z6go7fCw1J6EQmbK4FmJ2AS7kgVF/KEZWufBfdClMcPg==", + "dev": true, + "engines": { + "node": ">= 0.6" + } + }, + "node_modules/event-emitter": { + "version": "0.3.5", + "resolved": "https://registry.npmjs.org/event-emitter/-/event-emitter-0.3.5.tgz", + "integrity": "sha512-D9rRn9y7kLPnJ+hMq7S/nhvoKwwvVJahBi2BPmx3bvbsEdK3W9ii8cBSGjP+72/LnM4n6fo3+dkCX5FeTQruXA==", + "dependencies": { + "d": "1", + "es5-ext": "~0.10.14" + } + }, + "node_modules/eventemitter3": { + "version": "2.0.3", + "resolved": "https://registry.npmjs.org/eventemitter3/-/eventemitter3-2.0.3.tgz", + "integrity": "sha512-jLN68Dx5kyFHaePoXWPsCGW5qdyZQtLYHkxkg02/Mz6g0kYpDx4FyP6XfArhQdlOC4b8Mv+EMxPo/8La7Tzghg==" + }, + "node_modules/events": { + "version": "3.3.0", + "resolved": "https://registry.npmjs.org/events/-/events-3.3.0.tgz", + "integrity": "sha512-mQw+2fkQbALzQ7V0MY0IqdnXNOeTtP4r0lN9z7AAawCXgqea7bDii20AYrIBrFd/Hx0M2Ocz6S111CaFkUcb0Q==", + "dev": true, + "engines": { + "node": ">=0.8.x" + } + }, + "node_modules/evp_bytestokey": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/evp_bytestokey/-/evp_bytestokey-1.0.3.tgz", + "integrity": "sha512-/f2Go4TognH/KvCISP7OUsHn85hT9nUkxxA9BEWxFn+Oj9o8ZNLm/40hdlgSLyuOimsrTKLUMEorQexp/aPQeA==", + "dev": true, + "dependencies": { + "md5.js": "^1.3.4", + "safe-buffer": "^5.1.1" + } + }, + "node_modules/execa": { + "version": "5.1.1", + "resolved": "https://registry.npmjs.org/execa/-/execa-5.1.1.tgz", + "integrity": "sha512-8uSpZZocAZRBAPIEINJj3Lo9HyGitllczc27Eh5YYojjMFMn8yHMDMaUHE2Jqfq05D/wucwI4JGURyXt1vchyg==", + "dev": true, + "dependencies": { + "cross-spawn": "^7.0.3", + "get-stream": "^6.0.0", + "human-signals": "^2.1.0", + "is-stream": "^2.0.0", + "merge-stream": "^2.0.0", + "npm-run-path": "^4.0.1", + "onetime": "^5.1.2", + "signal-exit": "^3.0.3", + "strip-final-newline": "^2.0.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sindresorhus/execa?sponsor=1" + } + }, + "node_modules/express": { + "version": "4.18.2", + "resolved": "https://registry.npmjs.org/express/-/express-4.18.2.tgz", + "integrity": "sha512-5/PsL6iGPdfQ/lKM1UuielYgv3BUoJfz1aUwU9vHZ+J7gyvwdQXFEBIEIaxeGf0GIcreATNyBExtalisDbuMqQ==", + "dev": true, + "dependencies": { + "accepts": "~1.3.8", + "array-flatten": "1.1.1", + "body-parser": "1.20.1", + "content-disposition": "0.5.4", + "content-type": "~1.0.4", + "cookie": "0.5.0", + "cookie-signature": "1.0.6", + "debug": "2.6.9", + "depd": "2.0.0", + "encodeurl": "~1.0.2", + "escape-html": "~1.0.3", + "etag": "~1.8.1", + "finalhandler": "1.2.0", + "fresh": "0.5.2", + "http-errors": "2.0.0", + "merge-descriptors": "1.0.1", + "methods": "~1.1.2", + "on-finished": "2.4.1", + "parseurl": "~1.3.3", + "path-to-regexp": "0.1.7", + "proxy-addr": "~2.0.7", + "qs": "6.11.0", + "range-parser": "~1.2.1", + "safe-buffer": "5.2.1", + "send": "0.18.0", + "serve-static": "1.15.0", + "setprototypeof": "1.2.0", + "statuses": "2.0.1", + "type-is": "~1.6.18", + "utils-merge": "1.0.1", + "vary": "~1.1.2" + }, + "engines": { + "node": ">= 0.10.0" + } + }, + "node_modules/express/node_modules/array-flatten": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/array-flatten/-/array-flatten-1.1.1.tgz", + "integrity": "sha512-PCVAQswWemu6UdxsDFFX/+gVeYqKAod3D3UVm91jHwynguOwAvYPhx8nNlM++NqRcK6CxxpUafjmhIdKiHibqg==", + "dev": true + }, + "node_modules/express/node_modules/debug": { + "version": "2.6.9", + "resolved": "https://registry.npmjs.org/debug/-/debug-2.6.9.tgz", + "integrity": "sha512-bC7ElrdJaJnPbAP+1EotYvqZsb3ecl5wi6Bfi6BJTUcNowp6cvspg0jXznRTKDjm/E7AdgFBVeAPVMNcKGsHMA==", + "dev": true, + "dependencies": { + "ms": "2.0.0" + } + }, + "node_modules/express/node_modules/ms": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/ms/-/ms-2.0.0.tgz", + "integrity": "sha512-Tpp60P6IUJDTuOq/5Z8cdskzJujfwqfOTkrwIwj7IRISpnkJnT6SyJ4PCPnGMoFjC9ddhal5KVIYtAt97ix05A==", + "dev": true + }, + "node_modules/ext": { + "version": "1.7.0", + "resolved": "https://registry.npmjs.org/ext/-/ext-1.7.0.tgz", + "integrity": "sha512-6hxeJYaL110a9b5TEJSj0gojyHQAmA2ch5Os+ySCiA1QGdS697XWY1pzsrSjqA9LDEEgdB/KypIlR59RcLuHYw==", + "dependencies": { + "type": "^2.7.2" + } + }, + "node_modules/ext/node_modules/type": { + "version": "2.7.2", + "resolved": "https://registry.npmjs.org/type/-/type-2.7.2.tgz", + "integrity": "sha512-dzlvlNlt6AXU7EBSfpAscydQ7gXB+pPGsPnfJnZpiNJBDj7IaJzQlBZYGdEi4R9HmPdBv2XmWJ6YUtoTa7lmCw==" + }, + "node_modules/extend": { + "version": "3.0.2", + "resolved": "https://registry.npmjs.org/extend/-/extend-3.0.2.tgz", + "integrity": "sha512-fjquC59cD7CyW6urNXK0FBufkZcoiGG80wTuPujX590cB5Ttln20E2UB4S/WARVqhXffZl2LNgS+gQdPIIim/g==" + }, + "node_modules/fast-deep-equal": { + "version": "3.1.3", + "resolved": "https://registry.npmjs.org/fast-deep-equal/-/fast-deep-equal-3.1.3.tgz", + "integrity": "sha512-f3qQ9oQy9j2AhBe/H9VC91wLmKBCCU/gDOnKNAYG5hswO7BLKj09Hc5HYNz9cGI++xlpDCIgDaitVs03ATR84Q==", + "dev": true + }, + "node_modules/fast-diff": { + "version": "1.1.2", + "resolved": "https://registry.npmjs.org/fast-diff/-/fast-diff-1.1.2.tgz", + "integrity": "sha512-KaJUt+M9t1qaIteSvjc6P3RbMdXsNhK61GRftR6SNxqmhthcd9MGIi4T+o0jD8LUSpSnSKXE20nLtJ3fOHxQig==" + }, + "node_modules/fast-glob": { + "version": "3.2.12", + "resolved": "https://registry.npmjs.org/fast-glob/-/fast-glob-3.2.12.tgz", + "integrity": "sha512-DVj4CQIYYow0BlaelwK1pHl5n5cRSJfM60UA0zK891sVInoPri2Ekj7+e1CT3/3qxXenpI+nBBmQAcJPJgaj4w==", + "dev": true, + "dependencies": { + "@nodelib/fs.stat": "^2.0.2", + "@nodelib/fs.walk": "^1.2.3", + "glob-parent": "^5.1.2", + "merge2": "^1.3.0", + "micromatch": "^4.0.4" + }, + "engines": { + "node": ">=8.6.0" + } + }, + "node_modules/fast-json-stable-stringify": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/fast-json-stable-stringify/-/fast-json-stable-stringify-2.1.0.tgz", + "integrity": "sha512-lhd/wF+Lk98HZoTCtlVraHtfh5XYijIjalXck7saUtuanSDyLMxnHhSXEDJqHxD7msR8D0uCmqlkwjCV8xvwHw==", + "dev": true + }, + "node_modules/fast-levenshtein": { + "version": "2.0.6", + "resolved": "https://registry.npmjs.org/fast-levenshtein/-/fast-levenshtein-2.0.6.tgz", + "integrity": "sha512-DCXu6Ifhqcks7TZKY3Hxp3y6qphY5SJZmrWMDrKcERSOXWQdMhU9Ig/PYrzyw/ul9jOIyh0N4M0tbC5hodg8dw==" + }, + "node_modules/fastest-levenshtein": { + "version": "1.0.16", + "resolved": "https://registry.npmjs.org/fastest-levenshtein/-/fastest-levenshtein-1.0.16.tgz", + "integrity": "sha512-eRnCtTTtGZFpQCwhJiUOuxPQWRXVKYDn0b2PeHfXL6/Zi53SLAzAHfVhVWK2AryC/WH05kGfxhFIPvTF0SXQzg==", + "engines": { + "node": ">= 4.9.1" + } + }, + "node_modules/fastq": { + "version": "1.15.0", + "resolved": "https://registry.npmjs.org/fastq/-/fastq-1.15.0.tgz", + "integrity": "sha512-wBrocU2LCXXa+lWBt8RoIRD89Fi8OdABODa/kEnyeyjS5aZO5/GNvI5sEINADqP/h8M29UHTHUb53sUu5Ihqdw==", + "dependencies": { + "reusify": "^1.0.4" + } + }, + "node_modules/faye-websocket": { + "version": "0.11.4", + "resolved": "https://registry.npmjs.org/faye-websocket/-/faye-websocket-0.11.4.tgz", + "integrity": "sha512-CzbClwlXAuiRQAlUyfqPgvPoNKTckTPGfwZV4ZdAhVcP2lh9KUxJg2b5GkE7XbjKQ3YJnQ9z6D9ntLAlB+tP8g==", + "dev": true, + "dependencies": { + "websocket-driver": ">=0.5.1" + }, + "engines": { + "node": ">=0.8.0" + } + }, + "node_modules/file-loader": { + "version": "6.2.0", + "resolved": "https://registry.npmjs.org/file-loader/-/file-loader-6.2.0.tgz", + "integrity": "sha512-qo3glqyTa61Ytg4u73GultjHGjdRyig3tG6lPtyX/jOEJvHif9uB0/OCI2Kif6ctF3caQTW2G5gym21oAsI4pw==", + "dev": true, + "dependencies": { + "loader-utils": "^2.0.0", + "schema-utils": "^3.0.0" + }, + "engines": { + "node": ">= 10.13.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/webpack" + }, + "peerDependencies": { + "webpack": "^4.0.0 || ^5.0.0" + } + }, + "node_modules/file-loader/node_modules/schema-utils": { + "version": "3.1.1", + "resolved": "https://registry.npmjs.org/schema-utils/-/schema-utils-3.1.1.tgz", + "integrity": "sha512-Y5PQxS4ITlC+EahLuXaY86TXfR7Dc5lw294alXOq86JAHCihAIZfqv8nNCWvaEJvaC51uN9hbLGeV0cFBdH+Fw==", + "dev": true, + "dependencies": { + "@types/json-schema": "^7.0.8", + "ajv": "^6.12.5", + "ajv-keywords": "^3.5.2" + }, + "engines": { + "node": ">= 10.13.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/webpack" + } + }, + "node_modules/file-type": { + "version": "12.4.2", + "resolved": "https://registry.npmjs.org/file-type/-/file-type-12.4.2.tgz", + "integrity": "sha512-UssQP5ZgIOKelfsaB5CuGAL+Y+q7EmONuiwF3N5HAH0t27rvrttgi6Ra9k/+DVaY9UF6+ybxu5pOXLUdA8N7Vg==", + "dev": true, + "engines": { + "node": ">=8" + } + }, + "node_modules/fill-range": { + "version": "7.0.1", + "resolved": "https://registry.npmjs.org/fill-range/-/fill-range-7.0.1.tgz", + "integrity": "sha512-qOo9F+dMUmC2Lcb4BbVvnKJxTPjCm+RRpe4gDuGrzkL7mEVl/djYSu2OdQ2Pa302N4oqkSg9ir6jaLWJ2USVpQ==", + "dependencies": { + "to-regex-range": "^5.0.1" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/finalhandler": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/finalhandler/-/finalhandler-1.2.0.tgz", + "integrity": "sha512-5uXcUVftlQMFnWC9qu/svkWv3GTd2PfUhK/3PLkYNAe7FbqJMt3515HaxE6eRL74GdsriiwujiawdaB1BpEISg==", + "dev": true, + "dependencies": { + "debug": "2.6.9", + "encodeurl": "~1.0.2", + "escape-html": "~1.0.3", + "on-finished": "2.4.1", + "parseurl": "~1.3.3", + "statuses": "2.0.1", + "unpipe": "~1.0.0" + }, + "engines": { + "node": ">= 0.8" + } + }, + "node_modules/finalhandler/node_modules/debug": { + "version": "2.6.9", + "resolved": "https://registry.npmjs.org/debug/-/debug-2.6.9.tgz", + "integrity": "sha512-bC7ElrdJaJnPbAP+1EotYvqZsb3ecl5wi6Bfi6BJTUcNowp6cvspg0jXznRTKDjm/E7AdgFBVeAPVMNcKGsHMA==", + "dev": true, + "dependencies": { + "ms": "2.0.0" + } + }, + "node_modules/finalhandler/node_modules/ms": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/ms/-/ms-2.0.0.tgz", + "integrity": "sha512-Tpp60P6IUJDTuOq/5Z8cdskzJujfwqfOTkrwIwj7IRISpnkJnT6SyJ4PCPnGMoFjC9ddhal5KVIYtAt97ix05A==", + "dev": true + }, + "node_modules/find-cache-dir": { + "version": "3.3.2", + "resolved": "https://registry.npmjs.org/find-cache-dir/-/find-cache-dir-3.3.2.tgz", + "integrity": "sha512-wXZV5emFEjrridIgED11OoUKLxiYjAcqot/NJdAkOhlJ+vGzwhOAfcG5OX1jP+S0PcjEn8bdMJv+g2jwQ3Onig==", + "dev": true, + "dependencies": { + "commondir": "^1.0.1", + "make-dir": "^3.0.2", + "pkg-dir": "^4.1.0" + }, + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/avajs/find-cache-dir?sponsor=1" + } + }, + "node_modules/find-parent-dir": { + "version": "0.3.1", + "resolved": "https://registry.npmjs.org/find-parent-dir/-/find-parent-dir-0.3.1.tgz", + "integrity": "sha512-o4UcykWV/XN9wm+jMEtWLPlV8RXCZnMhQI6F6OdHeSez7iiJWePw8ijOlskJZMsaQoGR/b7dH6lO02HhaTN7+A==" + }, + "node_modules/find-project-root": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/find-project-root/-/find-project-root-1.1.1.tgz", + "integrity": "sha512-4+yZ013W+EZc+hvdgA2RlzlgNfP1eGdMNxU6xzw1yt518cF6/xZD3kLV+bprYX5+AD0IL76xcN28TPqYJHxrHw==", + "bin": { + "find-project-root": "bin/find-project-root.js" + } + }, + "node_modules/find-up": { + "version": "4.1.0", + "resolved": "https://registry.npmjs.org/find-up/-/find-up-4.1.0.tgz", + "integrity": "sha512-PpOwAdQ/YlXQ2vj8a3h8IipDuYRi3wceVQQGYWxNINccq40Anw7BlsEXCMbt1Zt+OLA6Fq9suIpIWD0OsnISlw==", + "dev": true, + "dependencies": { + "locate-path": "^5.0.0", + "path-exists": "^4.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/findup": { + "version": "0.1.5", + "resolved": "https://registry.npmjs.org/findup/-/findup-0.1.5.tgz", + "integrity": "sha512-Udxo3C9A6alt2GZ2MNsgnIvX7De0V3VGxeP/x98NSVgSlizcDHdmJza61LI7zJy4OEtSiJyE72s0/+tBl5/ZxA==", + "dev": true, + "dependencies": { + "colors": "~0.6.0-1", + "commander": "~2.1.0" + }, + "bin": { + "findup": "bin/findup.js" + }, + "engines": { + "node": ">=0.6" + } + }, + "node_modules/findup/node_modules/commander": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/commander/-/commander-2.1.0.tgz", + "integrity": "sha512-J2wnb6TKniXNOtoHS8TSrG9IOQluPrsmyAJ8oCUJOBmv+uLBCyPYAZkD2jFvw2DCzIXNnISIM01NIvr35TkBMQ==", + "dev": true, + "engines": { + "node": ">= 0.6.x" + } + }, + "node_modules/flatpickr": { + "version": "4.6.13", + "resolved": "https://registry.npmjs.org/flatpickr/-/flatpickr-4.6.13.tgz", + "integrity": "sha512-97PMG/aywoYpB4IvbvUJi0RQi8vearvU0oov1WW3k0WZPBMrTQVqekSX5CjSG/M4Q3i6A/0FKXC7RyAoAUUSPw==" + }, + "node_modules/flatten": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/flatten/-/flatten-1.0.3.tgz", + "integrity": "sha512-dVsPA/UwQ8+2uoFe5GHtiBMu48dWLTdsuEd7CKGlZlD78r1TTWBvDuFaFGKCo/ZfEr95Uk56vZoX86OsHkUeIg==", + "deprecated": "flatten is deprecated in favor of utility frameworks such as lodash." + }, + "node_modules/flot": { + "version": "4.2.3", + "resolved": "https://registry.npmjs.org/flot/-/flot-4.2.3.tgz", + "integrity": "sha512-r1t2gfhILE6dt7cnYDHX/D2VHERyD0YoV0UdFJg5dWbjkcu05MugfhNY7VspfBFTa+hjVNYVZw6/t9ZyYNen+w==" + }, + "node_modules/follow-redirects": { + "version": "1.15.2", + "resolved": "https://registry.npmjs.org/follow-redirects/-/follow-redirects-1.15.2.tgz", + "integrity": "sha512-VQLG33o04KaQ8uYi2tVNbdrWp1QWxNNea+nmIB4EVM28v0hmP17z7aG1+wAkNzVq4KeXTq3221ye5qTJP91JwA==", + "dev": true, + "funding": [ + { + "type": "individual", + "url": "https://github.com/sponsors/RubenVerborgh" + } + ], + "engines": { + "node": ">=4.0" + }, + "peerDependenciesMeta": { + "debug": { + "optional": true + } + } + }, + "node_modules/for-each": { + "version": "0.3.3", + "resolved": "https://registry.npmjs.org/for-each/-/for-each-0.3.3.tgz", + "integrity": "sha512-jqYfLp7mo9vIyQf8ykW2v7A+2N4QjeCeI5+Dz9XraiO1ign81wjiH7Fb9vSOWvQfNtmSa4H2RoQTrrXivdUZmw==", + "dev": true, + "dependencies": { + "is-callable": "^1.1.3" + } + }, + "node_modules/form-data": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/form-data/-/form-data-4.0.0.tgz", + "integrity": "sha512-ETEklSGi5t0QMZuiXoA/Q6vcnxcLQP5vdugSpuAyi6SVGi2clPPp+xgEhuMaHC+zGgn31Kd235W35f7Hykkaww==", + "dev": true, + "dependencies": { + "asynckit": "^0.4.0", + "combined-stream": "^1.0.8", + "mime-types": "^2.1.12" + }, + "engines": { + "node": ">= 6" + } + }, + "node_modules/forwarded": { + "version": "0.2.0", + "resolved": "https://registry.npmjs.org/forwarded/-/forwarded-0.2.0.tgz", + "integrity": "sha512-buRG0fpBtRHSTCOASe6hD258tEubFoRLb4ZNA6NxMVHNw2gOcwHo9wyablzMzOA5z9xA9L1KNjk/Nt6MT9aYow==", + "dev": true, + "engines": { + "node": ">= 0.6" + } + }, + "node_modules/fraction.js": { + "version": "4.2.0", + "resolved": "https://registry.npmjs.org/fraction.js/-/fraction.js-4.2.0.tgz", + "integrity": "sha512-MhLuK+2gUcnZe8ZHlaaINnQLl0xRIGRfcGk2yl8xoQAfHrSsL3rYu6FCmBdkdbhc9EPlwyGHewaRsvwRMJtAlA==", + "dev": true, + "engines": { + "node": "*" + }, + "funding": { + "type": "patreon", + "url": "https://www.patreon.com/infusion" + } + }, + "node_modules/fresh": { + "version": "0.5.2", + "resolved": "https://registry.npmjs.org/fresh/-/fresh-0.5.2.tgz", + "integrity": "sha512-zJ2mQYM18rEFOudeV4GShTGIQ7RbzA7ozbU9I/XBpm7kqgMywgmylMwXHxZJmkVoYkna9d2pVXVXPdYTP9ej8Q==", + "dev": true, + "engines": { + "node": ">= 0.6" + } + }, + "node_modules/fs-extra": { + "version": "10.1.0", + "resolved": "https://registry.npmjs.org/fs-extra/-/fs-extra-10.1.0.tgz", + "integrity": "sha512-oRXApq54ETRj4eMiFzGnHWGy+zo5raudjuxN0b8H7s/RU2oW0Wvsx9O0ACRN/kRq9E8Vu/ReskGB5o3ji+FzHQ==", + "dev": true, + "dependencies": { + "graceful-fs": "^4.2.0", + "jsonfile": "^6.0.1", + "universalify": "^2.0.0" + }, + "engines": { + "node": ">=12" + } + }, + "node_modules/fs-monkey": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/fs-monkey/-/fs-monkey-1.0.3.tgz", + "integrity": "sha512-cybjIfiiE+pTWicSCLFHSrXZ6EilF30oh91FDP9S2B051prEa7QWfrVTQm10/dDpswBDXZugPa1Ogu8Yh+HV0Q==", + "dev": true + }, + "node_modules/fs.realpath": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/fs.realpath/-/fs.realpath-1.0.0.tgz", + "integrity": "sha512-OO0pH2lK6a0hZnAdau5ItzHPI6pUlvI7jMVnxUQRtw4owF2wk8lOSabtGDCTP4Ggrg2MbGnWO9X8K1t4+fGMDw==" + }, + "node_modules/fsevents": { + "version": "2.3.2", + "resolved": "https://registry.npmjs.org/fsevents/-/fsevents-2.3.2.tgz", + "integrity": "sha512-xiqMQR4xAeHTuB9uWm+fFRcIOgKBMiOBP+eXiyT7jsgVCq1bkVygt00oASowB7EdtpOHaaPgKt812P9ab+DDKA==", + "hasInstallScript": true, + "optional": true, + "os": [ + "darwin" + ], + "engines": { + "node": "^8.16.0 || ^10.6.0 || >=11.0.0" + } + }, + "node_modules/fslightbox": { + "version": "3.4.1", + "resolved": "https://registry.npmjs.org/fslightbox/-/fslightbox-3.4.1.tgz", + "integrity": "sha512-/YkPP9jCnZMIlPuJPUo10JTCOCntU0vHeIKe0cB5ruR0ss2QCLhzxY5h24grZ2gUsF//0NXik7iGMU05RV/jcg==" + }, + "node_modules/fullcalendar": { + "version": "5.11.4", + "resolved": "https://registry.npmjs.org/fullcalendar/-/fullcalendar-5.11.4.tgz", + "integrity": "sha512-1TH40KkWFVlZBpqJ/eB69E7nPABleA0skoc7pTIXJNNNYyUuKPjiJg+TSMunjJ9faPLzvbvfCdgttGZnynPA3Q==" + }, + "node_modules/function-bind": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/function-bind/-/function-bind-1.1.1.tgz", + "integrity": "sha512-yIovAzMX49sF8Yl58fSCWJ5svSLuaibPxXQJFLmBObTuCr0Mf1KiPopGM9NiFjiYBCbfaa2Fh6breQ6ANVTI0A==" + }, + "node_modules/function.prototype.name": { + "version": "1.1.5", + "resolved": "https://registry.npmjs.org/function.prototype.name/-/function.prototype.name-1.1.5.tgz", + "integrity": "sha512-uN7m/BzVKQnCUF/iW8jYea67v++2u7m5UgENbHRtdDVclOUP+FMPlCNdmk0h/ysGyo2tavMJEDqJAkJdRa1vMA==", + "dev": true, + "dependencies": { + "call-bind": "^1.0.2", + "define-properties": "^1.1.3", + "es-abstract": "^1.19.0", + "functions-have-names": "^1.2.2" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/functions-have-names": { + "version": "1.2.3", + "resolved": "https://registry.npmjs.org/functions-have-names/-/functions-have-names-1.2.3.tgz", + "integrity": "sha512-xckBUXyTIqT97tq2x2AMb+g163b5JFysYk0x4qxNFwbfQkmNZoiRHb6sPzI9/QV33WeuvVYBUIiD4NzNIyqaRQ==", + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/gensync": { + "version": "1.0.0-beta.2", + "resolved": "https://registry.npmjs.org/gensync/-/gensync-1.0.0-beta.2.tgz", + "integrity": "sha512-3hN7NaskYvMDLQY55gnW3NQ+mesEAepTqlg+VEbj7zzqEMBVNhzcGYYeqFo/TlYz6eQiFcp1HcsCZO+nGgS8zg==", + "dev": true, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/get-assigned-identifiers": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/get-assigned-identifiers/-/get-assigned-identifiers-1.2.0.tgz", + "integrity": "sha512-mBBwmeGTrxEMO4pMaaf/uUEFHnYtwr8FTe8Y/mer4rcV/bye0qGm6pw1bGZFGStxC5O76c5ZAVBGnqHmOaJpdQ==" + }, + "node_modules/get-caller-file": { + "version": "2.0.5", + "resolved": "https://registry.npmjs.org/get-caller-file/-/get-caller-file-2.0.5.tgz", + "integrity": "sha512-DyFP3BM/3YHTQOCUL/w0OZHR0lpKeGrxotcHWcqNEdnltqFwXVfhEBQ94eIo34AfQpo0rGki4cyIiftY06h2Fg==", + "dev": true, + "engines": { + "node": "6.* || 8.* || >= 10.*" + } + }, + "node_modules/get-intrinsic": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/get-intrinsic/-/get-intrinsic-1.2.0.tgz", + "integrity": "sha512-L049y6nFOuom5wGyRc3/gdTLO94dySVKRACj1RmJZBQXlbTMhtNIgkWkUHq+jYmZvKf14EW1EoJnnjbmoHij0Q==", + "dependencies": { + "function-bind": "^1.1.1", + "has": "^1.0.3", + "has-symbols": "^1.0.3" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/get-stream": { + "version": "6.0.1", + "resolved": "https://registry.npmjs.org/get-stream/-/get-stream-6.0.1.tgz", + "integrity": "sha512-ts6Wi+2j3jQjqi70w5AlN8DFnkSwC+MqmxEzdEALB2qXZYV3X/b1CTfgPLGJNMeAWxdPfU8FO1ms3NUfaHCPYg==", + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/get-symbol-description": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/get-symbol-description/-/get-symbol-description-1.0.0.tgz", + "integrity": "sha512-2EmdH1YvIQiZpltCNgkuiUnyukzxM/R6NDJX31Ke3BG1Nq5b0S2PhX59UKi9vZpPDQVdqn+1IcaAwnzTT5vCjw==", + "dev": true, + "dependencies": { + "call-bind": "^1.0.2", + "get-intrinsic": "^1.1.1" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/glob": { + "version": "7.2.3", + "resolved": "https://registry.npmjs.org/glob/-/glob-7.2.3.tgz", + "integrity": "sha512-nFR0zLpU2YCaRxwoCJvL6UvCH2JFyFVIvwTLsIf21AuHlMskA1hhTdk+LlYJtOlYt9v6dvszD2BGRqBL+iQK9Q==", + "dependencies": { + "fs.realpath": "^1.0.0", + "inflight": "^1.0.4", + "inherits": "2", + "minimatch": "^3.1.1", + "once": "^1.3.0", + "path-is-absolute": "^1.0.0" + }, + "engines": { + "node": "*" + }, + "funding": { + "url": "https://github.com/sponsors/isaacs" + } + }, + "node_modules/glob-parent": { + "version": "5.1.2", + "resolved": "https://registry.npmjs.org/glob-parent/-/glob-parent-5.1.2.tgz", + "integrity": "sha512-AOIgSQCepiJYwP3ARnGx+5VnTu2HBYdzbGP45eLw1vr3zB3vZLeyed1sC9hnbcOc9/SrMyM5RPQrkGz4aS9Zow==", + "dependencies": { + "is-glob": "^4.0.1" + }, + "engines": { + "node": ">= 6" + } + }, + "node_modules/glob-to-regexp": { + "version": "0.4.1", + "resolved": "https://registry.npmjs.org/glob-to-regexp/-/glob-to-regexp-0.4.1.tgz", + "integrity": "sha512-lkX1HJXwyMcprw/5YUZc2s7DrpAiHB21/V+E1rHUrVNokkvB6bqMzT0VfV6/86ZNabt1k14YOIaT7nDvOX3Iiw==", + "dev": true + }, + "node_modules/globals": { + "version": "11.12.0", + "resolved": "https://registry.npmjs.org/globals/-/globals-11.12.0.tgz", + "integrity": "sha512-WOBp/EEGUiIsJSp7wcv/y6MO+lV9UoncWqxuFfm8eBwzWNgyfBd6Gz+IeKQ9jCmyhoH99g15M3T+QaVHFjizVA==", + "dev": true, + "engines": { + "node": ">=4" + } + }, + "node_modules/globalthis": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/globalthis/-/globalthis-1.0.3.tgz", + "integrity": "sha512-sFdI5LyBiNTHjRd7cGPWapiHWMOXKyuBNX/cWJ3NfzrZQVa8GI/8cofCl74AOVqq9W5kNmguTIzJ/1s2gyI9wA==", + "dev": true, + "dependencies": { + "define-properties": "^1.1.3" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/globalyzer": { + "version": "0.1.0", + "resolved": "https://registry.npmjs.org/globalyzer/-/globalyzer-0.1.0.tgz", + "integrity": "sha512-40oNTM9UfG6aBmuKxk/giHn5nQ8RVz/SS4Ir6zgzOv9/qC3kKZ9v4etGTcJbEl/NyVQH7FGU7d+X1egr57Md2Q==" + }, + "node_modules/globby": { + "version": "11.1.0", + "resolved": "https://registry.npmjs.org/globby/-/globby-11.1.0.tgz", + "integrity": "sha512-jhIXaOzy1sb8IyocaruWSn1TjmnBVs8Ayhcy83rmxNJ8q2uWKCAj3CnJY+KpGSXCueAPc0i05kVvVKtP1t9S3g==", + "dev": true, + "dependencies": { + "array-union": "^2.1.0", + "dir-glob": "^3.0.1", + "fast-glob": "^3.2.9", + "ignore": "^5.2.0", + "merge2": "^1.4.1", + "slash": "^3.0.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/globrex": { + "version": "0.1.2", + "resolved": "https://registry.npmjs.org/globrex/-/globrex-0.1.2.tgz", + "integrity": "sha512-uHJgbwAMwNFf5mLst7IWLNg14x1CkeqglJb/K3doi4dw6q2IvAAmM/Y81kevy83wP+Sst+nutFTYOGg3d1lsxg==" + }, + "node_modules/good-listener": { + "version": "1.2.2", + "resolved": "https://registry.npmjs.org/good-listener/-/good-listener-1.2.2.tgz", + "integrity": "sha512-goW1b+d9q/HIwbVYZzZ6SsTr4IgE+WA44A0GmPIQstuOrgsFcT7VEJ48nmr9GaRtNu0XTKacFLGnBPAM6Afouw==", + "dependencies": { + "delegate": "^3.1.2" + } + }, + "node_modules/gopd": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/gopd/-/gopd-1.0.1.tgz", + "integrity": "sha512-d65bNlIadxvpb/A2abVdlqKqV563juRnZ1Wtk6s1sIR8uNsXR70xqIzVqxVf1eTqDunwT2MkczEeaezCKTZhwA==", + "dev": true, + "dependencies": { + "get-intrinsic": "^1.1.3" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/graceful-fs": { + "version": "4.2.11", + "resolved": "https://registry.npmjs.org/graceful-fs/-/graceful-fs-4.2.11.tgz", + "integrity": "sha512-RbJ5/jmFcNNCcDV5o9eTnBLJ/HszWV0P73bc+Ff4nS/rJj+YaS6IGyiOL0VoBYX+l1Wrl3k63h/KrH+nhJ0XvQ==" + }, + "node_modules/graphql": { + "version": "15.5.1", + "resolved": "https://registry.npmjs.org/graphql/-/graphql-15.5.1.tgz", + "integrity": "sha512-FeTRX67T3LoE3LWAxxOlW2K3Bz+rMYAC18rRguK4wgXaTZMiJwSUwDmPFo3UadAKbzirKIg5Qy+sNJXbpPRnQw==", + "engines": { + "node": ">= 10.x" + } + }, + "node_modules/growly": { + "version": "1.3.0", + "resolved": "https://registry.npmjs.org/growly/-/growly-1.3.0.tgz", + "integrity": "sha512-+xGQY0YyAWCnqy7Cd++hc2JqMYzlm0dG30Jd0beaA64sROr8C4nt8Yc9V5Ro3avlSUDTN0ulqP/VBKi1/lLygw==", + "dev": true + }, + "node_modules/handle-thing": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/handle-thing/-/handle-thing-2.0.1.tgz", + "integrity": "sha512-9Qn4yBxelxoh2Ow62nP+Ka/kMnOXRi8BXnRaUwezLNhqelnN49xKz4F/dPP8OYLxLxq6JDtZb2i9XznUQbNPTg==", + "dev": true + }, + "node_modules/handlebars": { + "version": "4.7.7", + "resolved": "https://registry.npmjs.org/handlebars/-/handlebars-4.7.7.tgz", + "integrity": "sha512-aAcXm5OAfE/8IXkcZvCepKU3VzW1/39Fb5ZuqMtgI/hT8X2YgoMvBY5dLhq/cpOvw7Lk1nK/UF71aLG/ZnVYRA==", + "dependencies": { + "minimist": "^1.2.5", + "neo-async": "^2.6.0", + "source-map": "^0.6.1", + "wordwrap": "^1.0.0" + }, + "bin": { + "handlebars": "bin/handlebars" + }, + "engines": { + "node": ">=0.4.7" + }, + "optionalDependencies": { + "uglify-js": "^3.1.4" + } + }, + "node_modules/has": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/has/-/has-1.0.3.tgz", + "integrity": "sha512-f2dvO0VU6Oej7RkWJGrehjbzMAjFp5/VKPp5tTpWIV4JHHZK1/BxbFRtf/siA2SWTe09caDmVtYYzWEIbBS4zw==", + "dependencies": { + "function-bind": "^1.1.1" + }, + "engines": { + "node": ">= 0.4.0" + } + }, + "node_modules/has-ansi": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/has-ansi/-/has-ansi-2.0.0.tgz", + "integrity": "sha512-C8vBJ8DwUCx19vhm7urhTuUsr4/IyP6l4VzNQDv+ryHQObW3TTTp9yB68WpYgRe2bbaGuZ/se74IqFeVnMnLZg==", + "dev": true, + "dependencies": { + "ansi-regex": "^2.0.0" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/has-ansi/node_modules/ansi-regex": { + "version": "2.1.1", + "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-2.1.1.tgz", + "integrity": "sha512-TIGnTpdo+E3+pCyAluZvtED5p5wCqLdezCyhPZzKPcxvFplEt4i+W7OONCKgeZFT3+y5NZZfOOS/Bdcanm1MYA==", + "dev": true, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/has-bigints": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/has-bigints/-/has-bigints-1.0.2.tgz", + "integrity": "sha512-tSvCKtBr9lkF0Ex0aQiP9N+OpV4zi2r/Nee5VkRDbaqv35RLYMzbwQfFSZZH0kR+Rd6302UJZ2p/bJCEoR3VoQ==", + "dev": true, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/has-flag": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", + "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", + "engines": { + "node": ">=8" + } + }, + "node_modules/has-property-descriptors": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/has-property-descriptors/-/has-property-descriptors-1.0.0.tgz", + "integrity": "sha512-62DVLZGoiEBDHQyqG4w9xCuZ7eJEwNmJRWw2VY84Oedb7WFcA27fiEVe8oUQx9hAUJ4ekurquucTGwsyO1XGdQ==", + "dependencies": { + "get-intrinsic": "^1.1.1" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/has-proto": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/has-proto/-/has-proto-1.0.1.tgz", + "integrity": "sha512-7qE+iP+O+bgF9clE5+UoBFzE65mlBiVj3tKCrlNQ0Ogwm0BjpT/gK4SlLYDMybDh5I3TCTKnPPa0oMG7JDYrhg==", + "dev": true, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/has-symbols": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/has-symbols/-/has-symbols-1.0.3.tgz", + "integrity": "sha512-l3LCuF6MgDNwTDKkdYGEihYjt5pRPbEg46rtlmnSPlUbgmB8LOIrKJbYYFBSbnPaJexMKtiPO8hmeRjRz2Td+A==", + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/has-tostringtag": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/has-tostringtag/-/has-tostringtag-1.0.0.tgz", + "integrity": "sha512-kFjcSNhnlGV1kyoGk7OXKSawH5JOb/LzUc5w9B02hOTO0dfFRjbHQKvg1d6cf3HbeUmtU9VbbV3qzZ2Teh97WQ==", + "dependencies": { + "has-symbols": "^1.0.2" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/hash-base": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/hash-base/-/hash-base-3.1.0.tgz", + "integrity": "sha512-1nmYp/rhMDiE7AYkDw+lLwlAzz0AntGIe51F3RfFfEqyQ3feY2eI/NcwC6umIQVOASPMsWJLJScWKSSvzL9IVA==", + "dev": true, + "dependencies": { + "inherits": "^2.0.4", + "readable-stream": "^3.6.0", + "safe-buffer": "^5.2.0" + }, + "engines": { + "node": ">=4" + } + }, + "node_modules/hash-base/node_modules/readable-stream": { + "version": "3.6.2", + "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-3.6.2.tgz", + "integrity": "sha512-9u/sniCrY3D5WdsERHzHE4G2YCXqoG5FTHUiCC4SIbr6XcLZBY05ya9EKjYek9O5xOAwjGq+1JdGBAS7Q9ScoA==", + "dev": true, + "dependencies": { + "inherits": "^2.0.3", + "string_decoder": "^1.1.1", + "util-deprecate": "^1.0.1" + }, + "engines": { + "node": ">= 6" + } + }, + "node_modules/hash-sum": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/hash-sum/-/hash-sum-1.0.2.tgz", + "integrity": "sha512-fUs4B4L+mlt8/XAtSOGMUO1TXmAelItBPtJG7CyHJfYTdDjwisntGO2JQz7oUsatOY9o68+57eziUVNw/mRHmA==", + "dev": true + }, + "node_modules/hash.js": { + "version": "1.1.7", + "resolved": "https://registry.npmjs.org/hash.js/-/hash.js-1.1.7.tgz", + "integrity": "sha512-taOaskGt4z4SOANNseOviYDvjEJinIkRgmp7LbKP2YTTmVxWBl87s/uzK9r+44BclBSp2X7K1hqeNfz9JbBeXA==", + "dev": true, + "dependencies": { + "inherits": "^2.0.3", + "minimalistic-assert": "^1.0.1" + } + }, + "node_modules/he": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/he/-/he-1.2.0.tgz", + "integrity": "sha512-F/1DnUGPopORZi0ni+CvrCgHQ5FyEAHRLSApuYWMmrbSwoN2Mn/7k+Gl38gJnR7yyDZk6WLXwiGod1JOWNDKGw==", + "dev": true, + "bin": { + "he": "bin/he" + } + }, + "node_modules/hex-color-regex": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/hex-color-regex/-/hex-color-regex-1.1.0.tgz", + "integrity": "sha512-l9sfDFsuqtOqKDsQdqrMRk0U85RZc0RtOR9yPI7mRVOa4FsR/BVnZ0shmQRM96Ji99kYZP/7hn1cedc1+ApsTQ==", + "dev": true + }, + "node_modules/hmac-drbg": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/hmac-drbg/-/hmac-drbg-1.0.1.tgz", + "integrity": "sha512-Tti3gMqLdZfhOQY1Mzf/AanLiqh1WTiJgEj26ZuYQ9fbkLomzGchCws4FyrSd4VkpBfiNhaE1On+lOz894jvXg==", + "dev": true, + "dependencies": { + "hash.js": "^1.0.3", + "minimalistic-assert": "^1.0.0", + "minimalistic-crypto-utils": "^1.0.1" + } + }, + "node_modules/hpack.js": { + "version": "2.1.6", + "resolved": "https://registry.npmjs.org/hpack.js/-/hpack.js-2.1.6.tgz", + "integrity": "sha512-zJxVehUdMGIKsRaNt7apO2Gqp0BdqW5yaiGHXXmbpvxgBYVZnAql+BJb4RO5ad2MgpbZKn5G6nMnegrH1FcNYQ==", + "dev": true, + "dependencies": { + "inherits": "^2.0.1", + "obuf": "^1.0.0", + "readable-stream": "^2.0.1", + "wbuf": "^1.1.0" + } + }, + "node_modules/hsl-regex": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/hsl-regex/-/hsl-regex-1.0.0.tgz", + "integrity": "sha512-M5ezZw4LzXbBKMruP+BNANf0k+19hDQMgpzBIYnya//Al+fjNct9Wf3b1WedLqdEs2hKBvxq/jh+DsHJLj0F9A==", + "dev": true + }, + "node_modules/hsla-regex": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/hsla-regex/-/hsla-regex-1.0.0.tgz", + "integrity": "sha512-7Wn5GMLuHBjZCb2bTmnDOycho0p/7UVaAeqXZGbHrBCl6Yd/xDhQJAXe6Ga9AXJH2I5zY1dEdYw2u1UptnSBJA==", + "dev": true + }, + "node_modules/html-element-attributes": { + "version": "2.3.0", + "resolved": "https://registry.npmjs.org/html-element-attributes/-/html-element-attributes-2.3.0.tgz", + "integrity": "sha512-RJv2v3BBaYSc0ODHwT0sqWI+2lFs6DATBvCRnW20BDmULxoAWvfT6r28uL8LcW1a9/eqUl+1DccUOJzw00qVXQ==", + "funding": { + "type": "github", + "url": "https://github.com/sponsors/wooorm" + } + }, + "node_modules/html-entities": { + "version": "2.3.3", + "resolved": "https://registry.npmjs.org/html-entities/-/html-entities-2.3.3.tgz", + "integrity": "sha512-DV5Ln36z34NNTDgnz0EWGBLZENelNAtkiFA4kyNOG2tDI6Mz1uSWiq1wAKdyjnJwyDiDO7Fa2SO1CTxPXL8VxA==", + "dev": true + }, + "node_modules/html-loader": { + "version": "1.3.2", + "resolved": "https://registry.npmjs.org/html-loader/-/html-loader-1.3.2.tgz", + "integrity": "sha512-DEkUwSd0sijK5PF3kRWspYi56XP7bTNkyg5YWSzBdjaSDmvCufep5c4Vpb3PBf6lUL0YPtLwBfy9fL0t5hBAGA==", + "dev": true, + "dependencies": { + "html-minifier-terser": "^5.1.1", + "htmlparser2": "^4.1.0", + "loader-utils": "^2.0.0", + "schema-utils": "^3.0.0" + }, + "engines": { + "node": ">= 10.13.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/webpack" + }, + "peerDependencies": { + "webpack": "^4.0.0 || ^5.0.0" + } + }, + "node_modules/html-loader/node_modules/schema-utils": { + "version": "3.1.1", + "resolved": "https://registry.npmjs.org/schema-utils/-/schema-utils-3.1.1.tgz", + "integrity": "sha512-Y5PQxS4ITlC+EahLuXaY86TXfR7Dc5lw294alXOq86JAHCihAIZfqv8nNCWvaEJvaC51uN9hbLGeV0cFBdH+Fw==", + "dev": true, + "dependencies": { + "@types/json-schema": "^7.0.8", + "ajv": "^6.12.5", + "ajv-keywords": "^3.5.2" + }, + "engines": { + "node": ">= 10.13.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/webpack" + } + }, + "node_modules/html-minifier-terser": { + "version": "5.1.1", + "resolved": "https://registry.npmjs.org/html-minifier-terser/-/html-minifier-terser-5.1.1.tgz", + "integrity": "sha512-ZPr5MNObqnV/T9akshPKbVgyOqLmy+Bxo7juKCfTfnjNniTAMdy4hz21YQqoofMBJD2kdREaqPPdThoR78Tgxg==", + "dev": true, + "dependencies": { + "camel-case": "^4.1.1", + "clean-css": "^4.2.3", + "commander": "^4.1.1", + "he": "^1.2.0", + "param-case": "^3.0.3", + "relateurl": "^0.2.7", + "terser": "^4.6.3" + }, + "bin": { + "html-minifier-terser": "cli.js" + }, + "engines": { + "node": ">=6" + } + }, + "node_modules/html-minifier-terser/node_modules/clean-css": { + "version": "4.2.4", + "resolved": "https://registry.npmjs.org/clean-css/-/clean-css-4.2.4.tgz", + "integrity": "sha512-EJUDT7nDVFDvaQgAo2G/PJvxmp1o/c6iXLbswsBbUFXi1Nr+AjA2cKmfbKDMjMvzEe75g3P6JkaDDAKk96A85A==", + "dev": true, + "dependencies": { + "source-map": "~0.6.0" + }, + "engines": { + "node": ">= 4.0" + } + }, + "node_modules/html-minifier-terser/node_modules/commander": { + "version": "4.1.1", + "resolved": "https://registry.npmjs.org/commander/-/commander-4.1.1.tgz", + "integrity": "sha512-NOKm8xhkzAjzFx8B2v5OAHT+u5pRQc2UCa2Vq9jYL/31o2wi9mxBA7LIFs3sV5VSC49z6pEhfbMULvShKj26WA==", + "dev": true, + "engines": { + "node": ">= 6" + } + }, + "node_modules/html-minifier-terser/node_modules/terser": { + "version": "4.8.1", + "resolved": "https://registry.npmjs.org/terser/-/terser-4.8.1.tgz", + "integrity": "sha512-4GnLC0x667eJG0ewJTa6z/yXrbLGv80D9Ru6HIpCQmO+Q4PfEtBFi0ObSckqwL6VyQv/7ENJieXHo2ANmdQwgw==", + "dev": true, + "dependencies": { + "commander": "^2.20.0", + "source-map": "~0.6.1", + "source-map-support": "~0.5.12" + }, + "bin": { + "terser": "bin/terser" + }, + "engines": { + "node": ">=6.0.0" + } + }, + "node_modules/html-minifier-terser/node_modules/terser/node_modules/commander": { + "version": "2.20.3", + "resolved": "https://registry.npmjs.org/commander/-/commander-2.20.3.tgz", + "integrity": "sha512-GpVkmM8vF2vQUkj2LvZmD35JxeJOLCwJ9cUkugyk2nuhbv3+mJvpLYYt+0+USMxE+oj+ey/lJEnhZw75x/OMcQ==", + "dev": true + }, + "node_modules/html-styles": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/html-styles/-/html-styles-1.0.0.tgz", + "integrity": "sha512-cDl5dcj73oI4Hy0DSUNh54CAwslNLJRCCoO+RNkVo+sBrjA/0+7E/xzvj3zH/GxbbBLGJhE0hBe1eg+0FINC6w==" + }, + "node_modules/html-tag-names": { + "version": "1.1.5", + "resolved": "https://registry.npmjs.org/html-tag-names/-/html-tag-names-1.1.5.tgz", + "integrity": "sha512-aI5tKwNTBzOZApHIynaAwecLBv8TlZTEy/P4Sj2SzzAhBrGuI8yGZ0UIXVPQzOHGS+to2mjb04iy6VWt/8+d8A==", + "funding": { + "type": "github", + "url": "https://github.com/sponsors/wooorm" + } + }, + "node_modules/html-void-elements": { + "version": "1.0.5", + "resolved": "https://registry.npmjs.org/html-void-elements/-/html-void-elements-1.0.5.tgz", + "integrity": "sha512-uE/TxKuyNIcx44cIWnjr/rfIATDH7ZaOMmstu0CwhFG1Dunhlp4OC6/NMbhiwoq5BpW0ubi303qnEk/PZj614w==", + "funding": { + "type": "github", + "url": "https://github.com/sponsors/wooorm" + } + }, + "node_modules/htmlparser2": { + "version": "4.1.0", + "resolved": "https://registry.npmjs.org/htmlparser2/-/htmlparser2-4.1.0.tgz", + "integrity": "sha512-4zDq1a1zhE4gQso/c5LP1OtrhYTncXNSpvJYtWJBtXAETPlMfi3IFNjGuQbYLuVY4ZR0QMqRVvo4Pdy9KLyP8Q==", + "dev": true, + "dependencies": { + "domelementtype": "^2.0.1", + "domhandler": "^3.0.0", + "domutils": "^2.0.0", + "entities": "^2.0.0" + } + }, + "node_modules/http-deceiver": { + "version": "1.2.7", + "resolved": "https://registry.npmjs.org/http-deceiver/-/http-deceiver-1.2.7.tgz", + "integrity": "sha512-LmpOGxTfbpgtGVxJrj5k7asXHCgNZp5nLfp+hWc8QQRqtb7fUy6kRY3BO1h9ddF6yIPYUARgxGOwB42DnxIaNw==", + "dev": true + }, + "node_modules/http-errors": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/http-errors/-/http-errors-2.0.0.tgz", + "integrity": "sha512-FtwrG/euBzaEjYeRqOgly7G0qviiXoJWnvEH2Z1plBdXgbyjv34pHTSb9zoeHMyDy33+DWy5Wt9Wo+TURtOYSQ==", + "dev": true, + "dependencies": { + "depd": "2.0.0", + "inherits": "2.0.4", + "setprototypeof": "1.2.0", + "statuses": "2.0.1", + "toidentifier": "1.0.1" + }, + "engines": { + "node": ">= 0.8" + } + }, + "node_modules/http-parser-js": { + "version": "0.5.8", + "resolved": "https://registry.npmjs.org/http-parser-js/-/http-parser-js-0.5.8.tgz", + "integrity": "sha512-SGeBX54F94Wgu5RH3X5jsDtf4eHyRogWX1XGT3b4HuW3tQPM4AaBzoUji/4AAJNXCEOWZ5O0DgZmJw1947gD5Q==", + "dev": true + }, + "node_modules/http-proxy": { + "version": "1.18.1", + "resolved": "https://registry.npmjs.org/http-proxy/-/http-proxy-1.18.1.tgz", + "integrity": "sha512-7mz/721AbnJwIVbnaSv1Cz3Am0ZLT/UBwkC92VlxhXv/k/BBQfM2fXElQNC27BVGr0uwUpplYPQM9LnaBMR5NQ==", + "dev": true, + "dependencies": { + "eventemitter3": "^4.0.0", + "follow-redirects": "^1.0.0", + "requires-port": "^1.0.0" + }, + "engines": { + "node": ">=8.0.0" + } + }, + "node_modules/http-proxy-middleware": { + "version": "2.0.6", + "resolved": "https://registry.npmjs.org/http-proxy-middleware/-/http-proxy-middleware-2.0.6.tgz", + "integrity": "sha512-ya/UeJ6HVBYxrgYotAZo1KvPWlgB48kUJLDePFeneHsVujFaW5WNj2NgWCAE//B1Dl02BIfYlpNgBy8Kf8Rjmw==", + "dev": true, + "dependencies": { + "@types/http-proxy": "^1.17.8", + "http-proxy": "^1.18.1", + "is-glob": "^4.0.1", + "is-plain-obj": "^3.0.0", + "micromatch": "^4.0.2" + }, + "engines": { + "node": ">=12.0.0" + }, + "peerDependencies": { + "@types/express": "^4.17.13" + }, + "peerDependenciesMeta": { + "@types/express": { + "optional": true + } + } + }, + "node_modules/http-proxy/node_modules/eventemitter3": { + "version": "4.0.7", + "resolved": "https://registry.npmjs.org/eventemitter3/-/eventemitter3-4.0.7.tgz", + "integrity": "sha512-8guHBZCwKnFhYdHr2ysuRWErTwhoN2X8XELRlrRwpmfeY2jjuUN4taQMsULKUVo1K4DvZl+0pgfyoysHxvmvEw==", + "dev": true + }, + "node_modules/https-browserify": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/https-browserify/-/https-browserify-1.0.0.tgz", + "integrity": "sha512-J+FkSdyD+0mA0N+81tMotaRMfSL9SGi+xpD3T6YApKsc3bGSXJlfXri3VyFOeYkfLRQisDk1W+jIFFKBeUBbBg==", + "dev": true + }, + "node_modules/human-signals": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/human-signals/-/human-signals-2.1.0.tgz", + "integrity": "sha512-B4FFZ6q/T2jhhksgkbEW3HBvWIfDW85snkQgawt07S7J5QXTk6BkNV+0yAeZrM5QpMAdYlocGoljn0sJ/WQkFw==", + "dev": true, + "engines": { + "node": ">=10.17.0" + } + }, + "node_modules/iconv-lite": { + "version": "0.6.3", + "resolved": "https://registry.npmjs.org/iconv-lite/-/iconv-lite-0.6.3.tgz", + "integrity": "sha512-4fCk79wshMdzMp2rH06qWrJE4iolqLhCUH+OiuIgU++RB0+94NlDL81atO7GX55uUKueo0txHNtvEyI6D7WdMw==", + "dependencies": { + "safer-buffer": ">= 2.1.2 < 3.0.0" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/icss-utils": { + "version": "5.1.0", + "resolved": "https://registry.npmjs.org/icss-utils/-/icss-utils-5.1.0.tgz", + "integrity": "sha512-soFhflCVWLfRNOPU3iv5Z9VUdT44xFRbzjLsEzSr5AQmgqPMTHdU3PMT1Cf1ssx8fLNJDA1juftYl+PUcv3MqA==", + "dev": true, + "engines": { + "node": "^10 || ^12 || >= 14" + }, + "peerDependencies": { + "postcss": "^8.1.0" + } + }, + "node_modules/ieee754": { + "version": "1.2.1", + "resolved": "https://registry.npmjs.org/ieee754/-/ieee754-1.2.1.tgz", + "integrity": "sha512-dcyqhDvX1C46lXZcVqCpK+FtMRQVdIMN6/Df5js2zouUsqG7I6sFxitIC+7KYK29KdXOLHdu9zL4sFnoVQnqaA==", + "dev": true, + "funding": [ + { + "type": "github", + "url": "https://github.com/sponsors/feross" + }, + { + "type": "patreon", + "url": "https://www.patreon.com/feross" + }, + { + "type": "consulting", + "url": "https://feross.org/support" + } + ] + }, + "node_modules/ignore": { + "version": "5.2.4", + "resolved": "https://registry.npmjs.org/ignore/-/ignore-5.2.4.tgz", + "integrity": "sha512-MAb38BcSbH0eHNBxn7ql2NH/kX33OkB3lZ1BNdh7ENeRChHTYsTvWrMubiIAMNS2llXEEgZ1MUOBtXChP3kaFQ==", + "dev": true, + "engines": { + "node": ">= 4" + } + }, + "node_modules/ignore-by-default": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/ignore-by-default/-/ignore-by-default-1.0.1.tgz", + "integrity": "sha512-Ius2VYcGNk7T90CppJqcIkS5ooHUZyIQK+ClZfMfMNFEF9VSE73Fq+906u/CWu92x4gzZMWOwfFYckPObzdEbA==" + }, + "node_modules/imagemin": { + "version": "7.0.1", + "resolved": "https://registry.npmjs.org/imagemin/-/imagemin-7.0.1.tgz", + "integrity": "sha512-33AmZ+xjZhg2JMCe+vDf6a9mzWukE7l+wAtesjE7KyteqqKjzxv7aVQeWnul1Ve26mWvEQqyPwl0OctNBfSR9w==", + "dev": true, + "dependencies": { + "file-type": "^12.0.0", + "globby": "^10.0.0", + "graceful-fs": "^4.2.2", + "junk": "^3.1.0", + "make-dir": "^3.0.0", + "p-pipe": "^3.0.0", + "replace-ext": "^1.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/imagemin/node_modules/globby": { + "version": "10.0.2", + "resolved": "https://registry.npmjs.org/globby/-/globby-10.0.2.tgz", + "integrity": "sha512-7dUi7RvCoT/xast/o/dLN53oqND4yk0nsHkhRgn9w65C4PofCLOoJ39iSOg+qVDdWQPIEj+eszMHQ+aLVwwQSg==", + "dev": true, + "dependencies": { + "@types/glob": "^7.1.1", + "array-union": "^2.1.0", + "dir-glob": "^3.0.1", + "fast-glob": "^3.0.3", + "glob": "^7.1.3", + "ignore": "^5.1.1", + "merge2": "^1.2.3", + "slash": "^3.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/img-loader": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/img-loader/-/img-loader-4.0.0.tgz", + "integrity": "sha512-UwRcPQdwdOyEHyCxe1V9s9YFwInwEWCpoO+kJGfIqDrBDqA8jZUsEZTxQ0JteNPGw/Gupmwesk2OhLTcnw6tnQ==", + "dev": true, + "dependencies": { + "loader-utils": "^1.1.0" + }, + "engines": { + "node": ">=12" + }, + "peerDependencies": { + "imagemin": "^5.0.0 || ^6.0.0 || ^7.0.0 || ^8.0.0" + } + }, + "node_modules/img-loader/node_modules/json5": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/json5/-/json5-1.0.2.tgz", + "integrity": "sha512-g1MWMLBiz8FKi1e4w0UyVL3w+iJceWAFBAaBnnGKOpNa5f8TLktkbre1+s6oICydWAm+HRUGTmI+//xv2hvXYA==", + "dev": true, + "dependencies": { + "minimist": "^1.2.0" + }, + "bin": { + "json5": "lib/cli.js" + } + }, + "node_modules/img-loader/node_modules/loader-utils": { + "version": "1.4.2", + "resolved": "https://registry.npmjs.org/loader-utils/-/loader-utils-1.4.2.tgz", + "integrity": "sha512-I5d00Pd/jwMD2QCduo657+YM/6L3KZu++pmX9VFncxaxvHcru9jx1lBaFft+r4Mt2jK0Yhp41XlRAihzPxHNCg==", + "dev": true, + "dependencies": { + "big.js": "^5.2.2", + "emojis-list": "^3.0.0", + "json5": "^1.0.1" + }, + "engines": { + "node": ">=4.0.0" + } + }, + "node_modules/immediate": { + "version": "3.0.6", + "resolved": "https://registry.npmjs.org/immediate/-/immediate-3.0.6.tgz", + "integrity": "sha512-XXOFtyqDjNDAQxVfYxuF7g9Il/IbWmmlQg2MYKOH8ExIT1qg6xc4zyS3HaEEATgs1btfzxq15ciUiY7gjSXRGQ==" + }, + "node_modules/immutable": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/immutable/-/immutable-4.3.0.tgz", + "integrity": "sha512-0AOCmOip+xgJwEVTQj1EfiDDOkPmuyllDuTuEX+DDXUgapLAsBIfkg3sxCYyCEA8mQqZrrxPUGjcOQ2JS3WLkg==", + "dev": true + }, + "node_modules/import-fresh": { + "version": "3.3.0", + "resolved": "https://registry.npmjs.org/import-fresh/-/import-fresh-3.3.0.tgz", + "integrity": "sha512-veYYhQa+D1QBKznvhUHxb8faxlrwUnxseDAbAp457E0wLNio2bOSKnjYDhMj+YiAq61xrMGhQk9iXVk5FzgQMw==", + "dependencies": { + "parent-module": "^1.0.0", + "resolve-from": "^4.0.0" + }, + "engines": { + "node": ">=6" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/import-local": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/import-local/-/import-local-3.1.0.tgz", + "integrity": "sha512-ASB07uLtnDs1o6EHjKpX34BKYDSqnFerfTOJL2HvMqF70LnxpjkzDB8J44oT9pu4AMPkQwf8jl6szgvNd2tRIg==", + "dev": true, + "dependencies": { + "pkg-dir": "^4.2.0", + "resolve-cwd": "^3.0.0" + }, + "bin": { + "import-local-fixture": "fixtures/cli.js" + }, + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/indent-string": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/indent-string/-/indent-string-4.0.0.tgz", + "integrity": "sha512-EdDDZu4A2OyIK7Lr/2zG+w5jmbuk1DVBnEwREQvBzspBJkCEbRa8GxU1lghYcaGJCnRWibjDXlq779X1/y5xwg==", + "dev": true, + "engines": { + "node": ">=8" + } + }, + "node_modules/indexes-of": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/indexes-of/-/indexes-of-1.0.1.tgz", + "integrity": "sha512-bup+4tap3Hympa+JBJUG7XuOsdNQ6fxt0MHyXMKuLBKn0OqsTfvUxkUrroEX1+B2VsSHvCjiIcZVxRtYa4nllA==" + }, + "node_modules/inflight": { + "version": "1.0.6", + "resolved": "https://registry.npmjs.org/inflight/-/inflight-1.0.6.tgz", + "integrity": "sha512-k92I/b08q4wvFscXCLvqfsHCrjrF7yiXsQuIVvVE7N82W3+aqpzuUdBbfhWcy/FZR3/4IgflMgKLOsvPDrGCJA==", + "dependencies": { + "once": "^1.3.0", + "wrappy": "1" + } + }, + "node_modules/inherits": { + "version": "2.0.4", + "resolved": "https://registry.npmjs.org/inherits/-/inherits-2.0.4.tgz", + "integrity": "sha512-k/vGaX4/Yla3WzyMCvTQOXYeIHvqOKtnqBduzTHpzpQZzAskKMhZ2K+EnBiSM9zGSoIFeMpXKxa4dYeZIQqewQ==" + }, + "node_modules/inputmask": { + "version": "5.0.8", + "resolved": "https://registry.npmjs.org/inputmask/-/inputmask-5.0.8.tgz", + "integrity": "sha512-1WcbyudPTXP1B28ozWWyFa6QRIUG4KiLoyR6LFHlpT4OfTzRqFfWgHFadNvRuMN1S9XNVz9CdNvCGjJi+uAMqQ==" + }, + "node_modules/internal-slot": { + "version": "1.0.5", + "resolved": "https://registry.npmjs.org/internal-slot/-/internal-slot-1.0.5.tgz", + "integrity": "sha512-Y+R5hJrzs52QCG2laLn4udYVnxsfny9CpOhNhUvk/SSSVyF6T27FzRbF0sroPidSu3X8oEAkOn2K804mjpt6UQ==", + "dev": true, + "dependencies": { + "get-intrinsic": "^1.2.0", + "has": "^1.0.3", + "side-channel": "^1.0.4" + }, + "engines": { + "node": ">= 0.4" + } + }, + "node_modules/interpret": { + "version": "2.2.0", + "resolved": "https://registry.npmjs.org/interpret/-/interpret-2.2.0.tgz", + "integrity": "sha512-Ju0Bz/cEia55xDwUWEa8+olFpCiQoypjnQySseKtmjNrnps3P+xfpUmGr90T7yjlVJmOtybRvPXhKMbHr+fWnw==", + "dev": true, + "engines": { + "node": ">= 0.10" + } + }, + "node_modules/ipaddr.js": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/ipaddr.js/-/ipaddr.js-2.0.1.tgz", + "integrity": "sha512-1qTgH9NG+IIJ4yfKs2e6Pp1bZg8wbDbKHT21HrLIeYBTRLgMYKnMTPAuI3Lcs61nfx5h1xlXnbJtH1kX5/d/ng==", + "dev": true, + "engines": { + "node": ">= 10" + } + }, + "node_modules/is-absolute-url": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/is-absolute-url/-/is-absolute-url-2.1.0.tgz", + "integrity": "sha512-vOx7VprsKyllwjSkLV79NIhpyLfr3jAp7VaTCMXOJHu4m0Ew1CZ2fcjASwmV1jI3BWuWHB013M48eyeldk9gYg==", + "dev": true, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/is-alphabetical": { + "version": "1.0.4", + "resolved": "https://registry.npmjs.org/is-alphabetical/-/is-alphabetical-1.0.4.tgz", + "integrity": "sha512-DwzsA04LQ10FHTZuL0/grVDk4rFoVH1pjAToYwBrHSxcrBIGQuXrQMtD5U1b0U2XVgKZCTLLP8u2Qxqhy3l2Vg==", + "funding": { + "type": "github", + "url": "https://github.com/sponsors/wooorm" + } + }, + "node_modules/is-alphanumerical": { + "version": "1.0.4", + "resolved": "https://registry.npmjs.org/is-alphanumerical/-/is-alphanumerical-1.0.4.tgz", + "integrity": "sha512-UzoZUr+XfVz3t3v4KyGEniVL9BDRoQtY7tOyrRybkVNjDFWyo1yhXNGrrBTQxp3ib9BLAWs7k2YKBQsFRkZG9A==", + "dependencies": { + "is-alphabetical": "^1.0.0", + "is-decimal": "^1.0.0" + }, + "funding": { + "type": "github", + "url": "https://github.com/sponsors/wooorm" + } + }, + "node_modules/is-arguments": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/is-arguments/-/is-arguments-1.1.1.tgz", + "integrity": "sha512-8Q7EARjzEnKpt/PCD7e1cgUS0a6X8u5tdSiMqXhojOdoV9TsMsiO+9VLC5vAmO8N7/GmXn7yjR8qnA6bVAEzfA==", + "dependencies": { + "call-bind": "^1.0.2", + "has-tostringtag": "^1.0.0" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/is-array-buffer": { + "version": "3.0.2", + "resolved": "https://registry.npmjs.org/is-array-buffer/-/is-array-buffer-3.0.2.tgz", + "integrity": "sha512-y+FyyR/w8vfIRq4eQcM1EYgSTnmHXPqaF+IgzgraytCFq5Xh8lllDVmAZolPJiZttZLeFSINPYMaEJ7/vWUa1w==", + "dev": true, + "dependencies": { + "call-bind": "^1.0.2", + "get-intrinsic": "^1.2.0", + "is-typed-array": "^1.1.10" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/is-arrayish": { + "version": "0.2.1", + "resolved": "https://registry.npmjs.org/is-arrayish/-/is-arrayish-0.2.1.tgz", + "integrity": "sha512-zz06S8t0ozoDXMG+ube26zeCTNXcKIPJZJi8hBrF4idCLms4CG9QtK7qBl1boi5ODzFpjswb5JPmHCbMpjaYzg==" + }, + "node_modules/is-bigint": { + "version": "1.0.4", + "resolved": "https://registry.npmjs.org/is-bigint/-/is-bigint-1.0.4.tgz", + "integrity": "sha512-zB9CruMamjym81i2JZ3UMn54PKGsQzsJeo6xvN3HJJ4CAsQNB6iRutp2To77OfCNuoxspsIhzaPoO1zyCEhFOg==", + "dev": true, + "dependencies": { + "has-bigints": "^1.0.1" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/is-binary-path": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/is-binary-path/-/is-binary-path-2.1.0.tgz", + "integrity": "sha512-ZMERYes6pDydyuGidse7OsHxtbI7WVeUEozgR/g7rd0xUimYNlvZRE/K2MgZTjWy725IfelLeVcEM97mmtRGXw==", + "dependencies": { + "binary-extensions": "^2.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/is-boolean-object": { + "version": "1.1.2", + "resolved": "https://registry.npmjs.org/is-boolean-object/-/is-boolean-object-1.1.2.tgz", + "integrity": "sha512-gDYaKHJmnj4aWxyj6YHyXVpdQawtVLHU5cb+eztPGczf6cjuTdwve5ZIEfgXqH4e57An1D1AKf8CZ3kYrQRqYA==", + "dev": true, + "dependencies": { + "call-bind": "^1.0.2", + "has-tostringtag": "^1.0.0" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/is-buffer": { + "version": "1.1.6", + "resolved": "https://registry.npmjs.org/is-buffer/-/is-buffer-1.1.6.tgz", + "integrity": "sha512-NcdALwpXkTm5Zvvbk7owOUSvVvBKDgKP5/ewfXEznmQFfs4ZRmanOeKBTjRVjka3QFoN6XJ+9F3USqfHqTaU5w==", + "dev": true + }, + "node_modules/is-callable": { + "version": "1.2.7", + "resolved": "https://registry.npmjs.org/is-callable/-/is-callable-1.2.7.tgz", + "integrity": "sha512-1BC0BVFhS/p0qtw6enp8e+8OD0UrK0oFLztSjNzhcKA3WDuJxxAPXzPuPtKkjEY9UUoEWlX/8fgKeu2S8i9JTA==", + "dev": true, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/is-color-stop": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/is-color-stop/-/is-color-stop-1.1.0.tgz", + "integrity": "sha512-H1U8Vz0cfXNujrJzEcvvwMDW9Ra+biSYA3ThdQvAnMLJkEHQXn6bWzLkxHtVYJ+Sdbx0b6finn3jZiaVe7MAHA==", + "dev": true, + "dependencies": { + "css-color-names": "^0.0.4", + "hex-color-regex": "^1.1.0", + "hsl-regex": "^1.0.0", + "hsla-regex": "^1.0.0", + "rgb-regex": "^1.0.1", + "rgba-regex": "^1.0.0" + } + }, + "node_modules/is-core-module": { + "version": "2.12.0", + "resolved": "https://registry.npmjs.org/is-core-module/-/is-core-module-2.12.0.tgz", + "integrity": "sha512-RECHCBCd/viahWmwj6enj19sKbHfJrddi/6cBDsNTKbNq0f7VeaUkBo60BqzvPqo/W54ChS62Z5qyun7cfOMqQ==", + "dependencies": { + "has": "^1.0.3" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/is-date-object": { + "version": "1.0.5", + "resolved": "https://registry.npmjs.org/is-date-object/-/is-date-object-1.0.5.tgz", + "integrity": "sha512-9YQaSxsAiSwcvS33MBk3wTCVnWK+HhF8VZR2jRxehM16QcVOdHqPn4VPHmRK4lSr38n9JriurInLcP90xsYNfQ==", + "dependencies": { + "has-tostringtag": "^1.0.0" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/is-decimal": { + "version": "1.0.4", + "resolved": "https://registry.npmjs.org/is-decimal/-/is-decimal-1.0.4.tgz", + "integrity": "sha512-RGdriMmQQvZ2aqaQq3awNA6dCGtKpiDFcOzrTWrDAT2MiWrKQVPmxLGHl7Y2nNu6led0kEyoX0enY0qXYsv9zw==", + "funding": { + "type": "github", + "url": "https://github.com/sponsors/wooorm" + } + }, + "node_modules/is-directory": { + "version": "0.3.1", + "resolved": "https://registry.npmjs.org/is-directory/-/is-directory-0.3.1.tgz", + "integrity": "sha512-yVChGzahRFvbkscn2MlwGismPO12i9+znNruC5gVEntG3qu0xQMzsGg/JFbrsqDOHtHFPci+V5aP5T9I+yeKqw==", + "dev": true, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/is-docker": { + "version": "2.2.1", + "resolved": "https://registry.npmjs.org/is-docker/-/is-docker-2.2.1.tgz", + "integrity": "sha512-F+i2BKsFrH66iaUFc0woD8sLy8getkwTwtOBjvs56Cx4CgJDeKQeqfz8wAYiSb8JOprWhHH5p77PbmYCvvUuXQ==", + "dev": true, + "bin": { + "is-docker": "cli.js" + }, + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/is-extglob": { + "version": "2.1.1", + "resolved": "https://registry.npmjs.org/is-extglob/-/is-extglob-2.1.1.tgz", + "integrity": "sha512-SbKbANkN603Vi4jEZv49LeVJMn4yGwsbzZworEoyEiutsN3nJYdbO36zfhGJ6QEDpOZIFkDtnq5JRxmvl3jsoQ==", + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/is-fullwidth-code-point": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/is-fullwidth-code-point/-/is-fullwidth-code-point-3.0.0.tgz", + "integrity": "sha512-zymm5+u+sCsSWyD9qNaejV3DFvhCKclKdizYaJUuHA83RLjb7nSuGnddCHGv0hk+KY7BMAlsWeK4Ueg6EV6XQg==", + "engines": { + "node": ">=8" + } + }, + "node_modules/is-glob": { + "version": "4.0.3", + "resolved": "https://registry.npmjs.org/is-glob/-/is-glob-4.0.3.tgz", + "integrity": "sha512-xelSayHH36ZgE7ZWhli7pW34hNbNl8Ojv5KVmkJD4hBdD3th8Tfk9vYasLM+mXWOZhFkgZfxhLSnrwRr4elSSg==", + "dependencies": { + "is-extglob": "^2.1.1" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/is-hexadecimal": { + "version": "1.0.4", + "resolved": "https://registry.npmjs.org/is-hexadecimal/-/is-hexadecimal-1.0.4.tgz", + "integrity": "sha512-gyPJuv83bHMpocVYoqof5VDiZveEoGoFL8m3BXNb2VW8Xs+rz9kqO8LOQ5DH6EsuvilT1ApazU0pyl+ytbPtlw==", + "funding": { + "type": "github", + "url": "https://github.com/sponsors/wooorm" + } + }, + "node_modules/is-negative-zero": { + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/is-negative-zero/-/is-negative-zero-2.0.2.tgz", + "integrity": "sha512-dqJvarLawXsFbNDeJW7zAz8ItJ9cd28YufuuFzh0G8pNHjJMnY08Dv7sYX2uF5UpQOwieAeOExEYAWWfu7ZZUA==", + "dev": true, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/is-number": { + "version": "7.0.0", + "resolved": "https://registry.npmjs.org/is-number/-/is-number-7.0.0.tgz", + "integrity": "sha512-41Cifkg6e8TylSpdtTpeLVMqvSBEVzTttHvERD741+pnZ8ANv0004MRL43QKPDlK9cGvNp6NZWZUBlbGXYxxng==", + "engines": { + "node": ">=0.12.0" + } + }, + "node_modules/is-number-object": { + "version": "1.0.7", + "resolved": "https://registry.npmjs.org/is-number-object/-/is-number-object-1.0.7.tgz", + "integrity": "sha512-k1U0IRzLMo7ZlYIfzRu23Oh6MiIFasgpb9X76eqfFZAqwH44UI4KTBvBYIZ1dSL9ZzChTB9ShHfLkR4pdW5krQ==", + "dev": true, + "dependencies": { + "has-tostringtag": "^1.0.0" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/is-obj": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/is-obj/-/is-obj-2.0.0.tgz", + "integrity": "sha512-drqDG3cbczxxEJRoOXcOjtdp1J/lyp1mNn0xaznRs8+muBhgQcrnbspox5X5fOw0HnMnbfDzvnEMEtqDEJEo8w==", + "dev": true, + "engines": { + "node": ">=8" + } + }, + "node_modules/is-path-cwd": { + "version": "2.2.0", + "resolved": "https://registry.npmjs.org/is-path-cwd/-/is-path-cwd-2.2.0.tgz", + "integrity": "sha512-w942bTcih8fdJPJmQHFzkS76NEP8Kzzvmw92cXsazb8intwLqPibPPdXf4ANdKV3rYMuuQYGIWtvz9JilB3NFQ==", + "dev": true, + "engines": { + "node": ">=6" + } + }, + "node_modules/is-path-inside": { + "version": "3.0.3", + "resolved": "https://registry.npmjs.org/is-path-inside/-/is-path-inside-3.0.3.tgz", + "integrity": "sha512-Fd4gABb+ycGAmKou8eMftCupSir5lRxqf4aD/vd0cD2qc4HL07OjCeuHMr8Ro4CoMaeCKDB0/ECBOVWjTwUvPQ==", + "dev": true, + "engines": { + "node": ">=8" + } + }, + "node_modules/is-plain-obj": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/is-plain-obj/-/is-plain-obj-3.0.0.tgz", + "integrity": "sha512-gwsOE28k+23GP1B6vFl1oVh/WOzmawBrKwo5Ev6wMKzPkaXaCDIQKzLnvsA42DRlbVTWorkgTKIviAKCWkfUwA==", + "dev": true, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/is-plain-object": { + "version": "2.0.4", + "resolved": "https://registry.npmjs.org/is-plain-object/-/is-plain-object-2.0.4.tgz", + "integrity": "sha512-h5PpgXkWitc38BBMYawTYMWJHFZJVnBquFE57xFpjB8pJFiF6gZ+bU+WyI/yqXiFR5mdLsgYNaPe8uao6Uv9Og==", + "dev": true, + "dependencies": { + "isobject": "^3.0.1" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/is-regex": { + "version": "1.1.4", + "resolved": "https://registry.npmjs.org/is-regex/-/is-regex-1.1.4.tgz", + "integrity": "sha512-kvRdxDsxZjhzUX07ZnLydzS1TU/TJlTUHHY4YLL87e37oUA49DfkLqgy+VjFocowy29cKvcSiu+kIv728jTTVg==", + "dependencies": { + "call-bind": "^1.0.2", + "has-tostringtag": "^1.0.0" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/is-resolvable": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/is-resolvable/-/is-resolvable-1.1.0.tgz", + "integrity": "sha512-qgDYXFSR5WvEfuS5dMj6oTMEbrrSaM0CrFk2Yiq/gXnBvD9pMa2jGXxyhGLfvhZpuMZe18CJpFxAt3CRs42NMg==", + "dev": true + }, + "node_modules/is-shared-array-buffer": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/is-shared-array-buffer/-/is-shared-array-buffer-1.0.2.tgz", + "integrity": "sha512-sqN2UDu1/0y6uvXyStCOzyhAjCSlHceFoMKJW8W9EU9cvic/QdsZ0kEU93HEy3IUEFZIiH/3w+AH/UQbPHNdhA==", + "dev": true, + "dependencies": { + "call-bind": "^1.0.2" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/is-stream": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/is-stream/-/is-stream-2.0.1.tgz", + "integrity": "sha512-hFoiJiTl63nn+kstHGBtewWSKnQLpyb155KHheA1l39uvtO9nWIop1p3udqPcUd/xbF1VLMO4n7OI6p7RbngDg==", + "dev": true, + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/is-string": { + "version": "1.0.7", + "resolved": "https://registry.npmjs.org/is-string/-/is-string-1.0.7.tgz", + "integrity": "sha512-tE2UXzivje6ofPW7l23cjDOMa09gb7xlAqG6jG5ej6uPV32TlWP3NKPigtaGeHNu9fohccRYvIiZMfOOnOYUtg==", + "dev": true, + "dependencies": { + "has-tostringtag": "^1.0.0" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/is-symbol": { + "version": "1.0.4", + "resolved": "https://registry.npmjs.org/is-symbol/-/is-symbol-1.0.4.tgz", + "integrity": "sha512-C/CPBqKWnvdcxqIARxyOh4v1UUEOCHpgDa0WYgpKDFMszcrPcffg5uhwSgPCLD2WWxmq6isisz87tzT01tuGhg==", + "dev": true, + "dependencies": { + "has-symbols": "^1.0.2" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/is-typed-array": { + "version": "1.1.10", + "resolved": "https://registry.npmjs.org/is-typed-array/-/is-typed-array-1.1.10.tgz", + "integrity": "sha512-PJqgEHiWZvMpaFZ3uTc8kHPM4+4ADTlDniuQL7cU/UDA0Ql7F70yGfHph3cLNe+c9toaigv+DFzTJKhc2CtO6A==", + "dev": true, + "dependencies": { + "available-typed-arrays": "^1.0.5", + "call-bind": "^1.0.2", + "for-each": "^0.3.3", + "gopd": "^1.0.1", + "has-tostringtag": "^1.0.0" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/is-weakref": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/is-weakref/-/is-weakref-1.0.2.tgz", + "integrity": "sha512-qctsuLZmIQ0+vSSMfoVvyFe2+GSEvnmZ2ezTup1SBse9+twCCeial6EEi3Nc2KFcf6+qz2FBPnjXsk8xhKSaPQ==", + "dev": true, + "dependencies": { + "call-bind": "^1.0.2" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/is-whitespace-character": { + "version": "1.0.4", + "resolved": "https://registry.npmjs.org/is-whitespace-character/-/is-whitespace-character-1.0.4.tgz", + "integrity": "sha512-SDweEzfIZM0SJV0EUga669UTKlmL0Pq8Lno0QDQsPnvECB3IM2aP0gdx5TrU0A01MAPfViaZiI2V1QMZLaKK5w==", + "funding": { + "type": "github", + "url": "https://github.com/sponsors/wooorm" + } + }, + "node_modules/is-word-character": { + "version": "1.0.4", + "resolved": "https://registry.npmjs.org/is-word-character/-/is-word-character-1.0.4.tgz", + "integrity": "sha512-5SMO8RVennx3nZrqtKwCGyyetPE9VDba5ugvKLaD4KopPG5kR4mQ7tNt/r7feL5yt5h3lpuBbIUmCOG2eSzXHA==", + "funding": { + "type": "github", + "url": "https://github.com/sponsors/wooorm" + } + }, + "node_modules/is-wsl": { + "version": "2.2.0", + "resolved": "https://registry.npmjs.org/is-wsl/-/is-wsl-2.2.0.tgz", + "integrity": "sha512-fKzAra0rGJUUBwGBgNkHZuToZcn+TtXHpeCgmkMJMMYx1sQDYaCSyjJBSCa2nH1DGm7s3n1oBnohoVTBaN7Lww==", + "dev": true, + "dependencies": { + "is-docker": "^2.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/isarray": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/isarray/-/isarray-1.0.0.tgz", + "integrity": "sha512-VLghIWNM6ELQzo7zwmcg0NmTVyWKYjvIeM83yjp0wRDTmUnrM678fQbcKBo6n2CJEF0szoG//ytg+TKla89ALQ==" + }, + "node_modules/isexe": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/isexe/-/isexe-2.0.0.tgz", + "integrity": "sha512-RHxMLp9lnKHGHRng9QFhRCMbYAcVpn69smSGcq3f36xjgVVWThj4qqLbTLlq7Ssj8B+fIQ1EuCEGI2lKsyQeIw==" + }, + "node_modules/isobject": { + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/isobject/-/isobject-3.0.1.tgz", + "integrity": "sha512-WhB9zCku7EGTj/HQQRz5aUQEUeoQZH2bWcltRErOpymJ4boYE6wL9Tbr23krRPSZ+C5zqNSrSw+Cc7sZZ4b7vg==", + "dev": true, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/jest-docblock": { + "version": "27.0.1", + "resolved": "https://registry.npmjs.org/jest-docblock/-/jest-docblock-27.0.1.tgz", + "integrity": "sha512-TA4+21s3oebURc7VgFV4r7ltdIJ5rtBH1E3Tbovcg7AV+oLfD5DcJ2V2vJ5zFA9sL5CFd/d2D6IpsAeSheEdrA==", + "dependencies": { + "detect-newline": "^3.0.0" + }, + "engines": { + "node": "^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0" + } + }, + "node_modules/jest-worker": { + "version": "27.5.1", + "resolved": "https://registry.npmjs.org/jest-worker/-/jest-worker-27.5.1.tgz", + "integrity": "sha512-7vuh85V5cdDofPyxn58nrPjBktZo0u9x1g8WtjQol+jZDaE+fhN+cIvTj11GndBnMnyfrUOG1sZQxCdjKh+DKg==", + "dev": true, + "dependencies": { + "@types/node": "*", + "merge-stream": "^2.0.0", + "supports-color": "^8.0.0" + }, + "engines": { + "node": ">= 10.13.0" + } + }, + "node_modules/jest-worker/node_modules/supports-color": { + "version": "8.1.1", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-8.1.1.tgz", + "integrity": "sha512-MpUEN2OodtUzxvKQl72cUF7RQ5EiHsGvSsVG0ia9c5RbWGL2CI4C7EpPS8UTBIplnlzZiNuV56w+FuNxy3ty2Q==", + "dev": true, + "dependencies": { + "has-flag": "^4.0.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/chalk/supports-color?sponsor=1" + } + }, + "node_modules/jkanban": { + "version": "1.3.1", + "resolved": "https://registry.npmjs.org/jkanban/-/jkanban-1.3.1.tgz", + "integrity": "sha512-5M2nQuLnYTW8ZWAj0Gzes0BVYKE2BmpvJ+wc4Kv5/WZ4A+NYH/Njw3UJbW8hnClgrRVyHbeVNe3Q4gvZzoNjaw==", + "dependencies": { + "dragula": "^3.7.3", + "npm-watch": "^0.7.0" + } + }, + "node_modules/jquery": { + "version": "3.6.0", + "resolved": "https://registry.npmjs.org/jquery/-/jquery-3.6.0.tgz", + "integrity": "sha512-JVzAR/AjBvVt2BmYhxRCSYysDsPcssdmTFnzyLEts9qNwmjmu4JTAMYubEfwVOSwpQ1I1sKKFcxhZCI2buerfw==" + }, + "node_modules/jquery-chained": { + "version": "2.0.0-beta.2", + "resolved": "https://registry.npmjs.org/jquery-chained/-/jquery-chained-2.0.0-beta.2.tgz", + "integrity": "sha512-3/M0J5RCz1b6nqt8+JumCA/x5LgcBrKka3Zv+rimjkbhFzzWD6prCKQrGQXHSXqJdW2yfQv+MxVAQFUfyu3Q5w==" + }, + "node_modules/jquery.repeater": { + "version": "1.2.1", + "resolved": "https://registry.npmjs.org/jquery.repeater/-/jquery.repeater-1.2.1.tgz", + "integrity": "sha512-OltR1Z1AwaOsCQFBbfe1h+RnxjAwLrBa9uYkOjuj6DvyEJx0alr0ToCvfbCX1CJqq4vOMfoZUSjjKXBVog0srw==" + }, + "node_modules/js-base64": { + "version": "2.6.4", + "resolved": "https://registry.npmjs.org/js-base64/-/js-base64-2.6.4.tgz", + "integrity": "sha512-pZe//GGmwJndub7ZghVHz7vjb2LgC1m8B07Au3eYqeqv9emhESByMXxaEgkUkEqJe87oBbSniGYoQNIBklc7IQ==", + "dev": true + }, + "node_modules/js-tokens": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/js-tokens/-/js-tokens-4.0.0.tgz", + "integrity": "sha512-RdJUflcE3cUzKiMqQgsCu06FPu9UdIJO0beYbPhHN4k6apgJtifcoCtT9bcxOpYBtpD2kCM6Sbzg4CausW/PKQ==" + }, + "node_modules/js-yaml": { + "version": "3.14.1", + "resolved": "https://registry.npmjs.org/js-yaml/-/js-yaml-3.14.1.tgz", + "integrity": "sha512-okMH7OXXJ7YrN9Ok3/SXrnu4iX9yOk+25nqX4imS2npuvTYDmo/QEZoqwZkYaIDk3jVvBOTOIEgEhaLOynBS9g==", + "dev": true, + "dependencies": { + "argparse": "^1.0.7", + "esprima": "^4.0.0" + }, + "bin": { + "js-yaml": "bin/js-yaml.js" + } + }, + "node_modules/js-yaml/node_modules/esprima": { + "version": "4.0.1", + "resolved": "https://registry.npmjs.org/esprima/-/esprima-4.0.1.tgz", + "integrity": "sha512-eGuFFw7Upda+g4p+QHvnW0RyTX/SVeJBDM/gCtMARO0cLuT2HcEKnTPvhjV6aGeqrCB/sbNop0Kszm0jsaWU4A==", + "dev": true, + "bin": { + "esparse": "bin/esparse.js", + "esvalidate": "bin/esvalidate.js" + }, + "engines": { + "node": ">=4" + } + }, + "node_modules/jsesc": { + "version": "2.5.2", + "resolved": "https://registry.npmjs.org/jsesc/-/jsesc-2.5.2.tgz", + "integrity": "sha512-OYu7XEzjkCQ3C5Ps3QIZsQfNpqoJyZZA99wd9aWd05NCtC5pWOkShK2mkL6HXQR6/Cy2lbNdPlZBpuQHXE63gA==", + "dev": true, + "bin": { + "jsesc": "bin/jsesc" + }, + "engines": { + "node": ">=4" + } + }, + "node_modules/json-parse-better-errors": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/json-parse-better-errors/-/json-parse-better-errors-1.0.2.tgz", + "integrity": "sha512-mrqyZKfX5EhL7hvqcV6WG1yYjnjeuYDzDhhcAAUrq8Po85NBQBJP+ZDUT75qZQ98IkUoBqdkExkukOU7Ts2wrw==", + "dev": true + }, + "node_modules/json-parse-even-better-errors": { + "version": "2.3.1", + "resolved": "https://registry.npmjs.org/json-parse-even-better-errors/-/json-parse-even-better-errors-2.3.1.tgz", + "integrity": "sha512-xyFwyhro/JEof6Ghe2iz2NcXoj2sloNsWr/XsERDK/oiPCfaNhl5ONfp+jQdAZRQQ0IJWNzH9zIZF7li91kh2w==" + }, + "node_modules/json-schema-traverse": { + "version": "0.4.1", + "resolved": "https://registry.npmjs.org/json-schema-traverse/-/json-schema-traverse-0.4.1.tgz", + "integrity": "sha512-xbbCH5dCYU5T8LcEhhuh7HJ88HXuW3qsI3Y0zOZFKfZEHcpWiHU/Jxzk629Brsab/mMiHQti9wMP+845RPe3Vg==", + "dev": true + }, + "node_modules/json-stable-stringify": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/json-stable-stringify/-/json-stable-stringify-1.0.1.tgz", + "integrity": "sha512-i/J297TW6xyj7sDFa7AmBPkQvLIxWr2kKPWI26tXydnZrzVAocNqn5DMNT1Mzk0vit1V5UkRM7C1KdVNp7Lmcg==", + "dependencies": { + "jsonify": "~0.0.0" + } + }, + "node_modules/json5": { + "version": "2.2.3", + "resolved": "https://registry.npmjs.org/json5/-/json5-2.2.3.tgz", + "integrity": "sha512-XmOWe7eyHYH14cLdVPoyg+GOH3rYX++KpzrylJwSW98t3Nk+U8XOl8FWKOgwtzdb8lXGf6zYwDUzeHMWfxasyg==", + "dev": true, + "bin": { + "json5": "lib/cli.js" + }, + "engines": { + "node": ">=6" + } + }, + "node_modules/jsonfile": { + "version": "6.1.0", + "resolved": "https://registry.npmjs.org/jsonfile/-/jsonfile-6.1.0.tgz", + "integrity": "sha512-5dgndWOriYSm5cnYaJNhalLNDKOqFwyDB/rr1E9ZsGciGvKPs8R2xYGCacuf3z6K1YKDz182fd+fY3cn3pMqXQ==", + "dev": true, + "dependencies": { + "universalify": "^2.0.0" + }, + "optionalDependencies": { + "graceful-fs": "^4.1.6" + } + }, + "node_modules/jsonify": { + "version": "0.0.1", + "resolved": "https://registry.npmjs.org/jsonify/-/jsonify-0.0.1.tgz", + "integrity": "sha512-2/Ki0GcmuqSrgFyelQq9M05y7PS0mEwuIzrf3f1fPqkVDVRvZrPZtVSMHxdgo8Aq0sxAOb/cr2aqqA3LeWHVPg==", + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/jstree": { + "version": "3.3.15", + "resolved": "https://registry.npmjs.org/jstree/-/jstree-3.3.15.tgz", + "integrity": "sha512-fNK2EBgGjaJQ3cJuINX/80vDeAufYWtM0csudgYl3eJG+eRAH/1r1IJVUOvAlJIa+uSgg+Fi8uGrt+Xbs92eKg==", + "dependencies": { + "jquery": "^3.5.0" + } + }, + "node_modules/jszip": { + "version": "3.10.1", + "resolved": "https://registry.npmjs.org/jszip/-/jszip-3.10.1.tgz", + "integrity": "sha512-xXDvecyTpGLrqFrvkrUSoxxfJI5AH7U8zxxtVclpsUtMCq4JQ290LY8AW5c7Ggnr/Y/oK+bQMbqK2qmtk3pN4g==", + "dependencies": { + "lie": "~3.3.0", + "pako": "~1.0.2", + "readable-stream": "~2.3.6", + "setimmediate": "^1.0.5" + } + }, + "node_modules/junk": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/junk/-/junk-3.1.0.tgz", + "integrity": "sha512-pBxcB3LFc8QVgdggvZWyeys+hnrNWg4OcZIU/1X59k5jQdLBlCsYGRQaz234SqoRLTCgMH00fY0xRJH+F9METQ==", + "dev": true, + "engines": { + "node": ">=8" + } + }, + "node_modules/keycharm": { + "version": "0.4.0", + "resolved": "https://registry.npmjs.org/keycharm/-/keycharm-0.4.0.tgz", + "integrity": "sha512-TyQTtsabOVv3MeOpR92sIKk/br9wxS+zGj4BG7CR8YbK4jM3tyIBaF0zhzeBUMx36/Q/iQLOKKOT+3jOQtemRQ==", + "peer": true + }, + "node_modules/kind-of": { + "version": "6.0.3", + "resolved": "https://registry.npmjs.org/kind-of/-/kind-of-6.0.3.tgz", + "integrity": "sha512-dcS1ul+9tmeD95T+x28/ehLgd9mENa3LsvDTtzm3vyBEO7RPptvAD+t44WVXaUjTBRcrpFeFlC8WCruUR456hw==", + "dev": true, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/klona": { + "version": "2.0.6", + "resolved": "https://registry.npmjs.org/klona/-/klona-2.0.6.tgz", + "integrity": "sha512-dhG34DXATL5hSxJbIexCft8FChFXtmskoZYnoPWjXQuebWYCNkVeV3KkGegCK9CP1oswI/vQibS2GY7Em/sJJA==", + "dev": true, + "engines": { + "node": ">= 8" + } + }, + "node_modules/laravel-mix": { + "version": "6.0.49", + "resolved": "https://registry.npmjs.org/laravel-mix/-/laravel-mix-6.0.49.tgz", + "integrity": "sha512-bBMFpFjp26XfijPvY5y9zGKud7VqlyOE0OWUcPo3vTBY5asw8LTjafAbee1dhfLz6PWNqDziz69CP78ELSpfKw==", + "dev": true, + "dependencies": { + "@babel/core": "^7.15.8", + "@babel/plugin-proposal-object-rest-spread": "^7.15.6", + "@babel/plugin-syntax-dynamic-import": "^7.8.3", + "@babel/plugin-transform-runtime": "^7.15.8", + "@babel/preset-env": "^7.15.8", + "@babel/runtime": "^7.15.4", + "@types/babel__core": "^7.1.16", + "@types/clean-css": "^4.2.5", + "@types/imagemin-gifsicle": "^7.0.1", + "@types/imagemin-mozjpeg": "^8.0.1", + "@types/imagemin-optipng": "^5.2.1", + "@types/imagemin-svgo": "^8.0.0", + "autoprefixer": "^10.4.0", + "babel-loader": "^8.2.3", + "chalk": "^4.1.2", + "chokidar": "^3.5.2", + "clean-css": "^5.2.4", + "cli-table3": "^0.6.0", + "collect.js": "^4.28.5", + "commander": "^7.2.0", + "concat": "^1.0.3", + "css-loader": "^5.2.6", + "cssnano": "^5.0.8", + "dotenv": "^10.0.0", + "dotenv-expand": "^5.1.0", + "file-loader": "^6.2.0", + "fs-extra": "^10.0.0", + "glob": "^7.2.0", + "html-loader": "^1.3.2", + "imagemin": "^7.0.1", + "img-loader": "^4.0.0", + "lodash": "^4.17.21", + "md5": "^2.3.0", + "mini-css-extract-plugin": "^1.6.2", + "node-libs-browser": "^2.2.1", + "postcss-load-config": "^3.1.0", + "postcss-loader": "^6.2.0", + "semver": "^7.3.5", + "strip-ansi": "^6.0.0", + "style-loader": "^2.0.0", + "terser": "^5.9.0", + "terser-webpack-plugin": "^5.2.4", + "vue-style-loader": "^4.1.3", + "webpack": "^5.60.0", + "webpack-cli": "^4.9.1", + "webpack-dev-server": "^4.7.3", + "webpack-merge": "^5.8.0", + "webpack-notifier": "^1.14.1", + "webpackbar": "^5.0.0-3", + "yargs": "^17.2.1" + }, + "bin": { + "laravel-mix": "bin/cli.js", + "mix": "bin/cli.js" + }, + "engines": { + "node": ">=12.14.0" + }, + "peerDependencies": { + "@babel/core": "^7.15.8", + "@babel/plugin-proposal-object-rest-spread": "^7.15.6", + "@babel/plugin-syntax-dynamic-import": "^7.8.3", + "@babel/plugin-transform-runtime": "^7.15.8", + "@babel/preset-env": "^7.15.8", + "postcss": "^8.3.11", + "webpack": "^5.60.0", + "webpack-cli": "^4.9.1" + } + }, + "node_modules/laravel-mix-purgecss": { + "version": "6.0.0", + "resolved": "https://registry.npmjs.org/laravel-mix-purgecss/-/laravel-mix-purgecss-6.0.0.tgz", + "integrity": "sha512-1OVy3xVVqvWrBTI+vQrr9qlrNKKqq3lFlWQpdJxKO2IeK8bMERkNab3fLtldyyOd5ApBuoMd81EqF4ew2N/NdA==", + "dev": true, + "dependencies": { + "postcss-purgecss-laravel": "^2.0.0" + }, + "engines": { + "node": ">=12.0.0" + }, + "peerDependencies": { + "laravel-mix": "^6.0.0" + } + }, + "node_modules/launch-editor": { + "version": "2.6.0", + "resolved": "https://registry.npmjs.org/launch-editor/-/launch-editor-2.6.0.tgz", + "integrity": "sha512-JpDCcQnyAAzZZaZ7vEiSqL690w7dAEyLao+KC96zBplnYbJS7TYNjvM3M7y3dGz+v7aIsJk3hllWuc0kWAjyRQ==", + "dev": true, + "dependencies": { + "picocolors": "^1.0.0", + "shell-quote": "^1.7.3" + } + }, + "node_modules/leaflet": { + "version": "1.9.3", + "resolved": "https://registry.npmjs.org/leaflet/-/leaflet-1.9.3.tgz", + "integrity": "sha512-iB2cR9vAkDOu5l3HAay2obcUHZ7xwUBBjph8+PGtmW/2lYhbLizWtG7nTeYht36WfOslixQF9D/uSIzhZgGMfQ==" + }, + "node_modules/leven": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/leven/-/leven-3.1.0.tgz", + "integrity": "sha512-qsda+H8jTaUaN/x5vzW2rzc+8Rw4TAQ/4KjB46IwK5VH+IlVeeeje/EoZRpiXvIqjFgK84QffqPztGI3VBLG1A==", + "engines": { + "node": ">=6" + } + }, + "node_modules/levn": { + "version": "0.3.0", + "resolved": "https://registry.npmjs.org/levn/-/levn-0.3.0.tgz", + "integrity": "sha512-0OO4y2iOHix2W6ujICbKIaEQXvFQHue65vUG3pb5EUomzPI90z9hsA1VsO/dbIIpC53J8gxM9Q4Oho0jrCM/yA==", + "dependencies": { + "prelude-ls": "~1.1.2", + "type-check": "~0.3.2" + }, + "engines": { + "node": ">= 0.8.0" + } + }, + "node_modules/lie": { + "version": "3.3.0", + "resolved": "https://registry.npmjs.org/lie/-/lie-3.3.0.tgz", + "integrity": "sha512-UaiMJzeWRlEujzAuw5LokY1L5ecNQYZKfmyZ9L7wDHb/p5etKaxXhohBcrw0EYby+G/NA52vRSN4N39dxHAIwQ==", + "dependencies": { + "immediate": "~3.0.5" + } + }, + "node_modules/lilconfig": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/lilconfig/-/lilconfig-2.1.0.tgz", + "integrity": "sha512-utWOt/GHzuUxnLKxB6dk81RoOeoNeHgbrXiuGk4yyF5qlRz+iIVWu56E2fqGHFrXz0QNUhLB/8nKqvRH66JKGQ==", + "dev": true, + "engines": { + "node": ">=10" + } + }, + "node_modules/line-awesome": { + "version": "1.3.0", + "resolved": "https://registry.npmjs.org/line-awesome/-/line-awesome-1.3.0.tgz", + "integrity": "sha512-Y0YHksL37ixDsHz+ihCwOtF5jwJgCDxQ3q+zOVgaSW8VugHGTsZZXMacPYZB1/JULBi6BAuTCTek+4ZY/UIwcw==" + }, + "node_modules/lines-and-columns": { + "version": "1.2.4", + "resolved": "https://registry.npmjs.org/lines-and-columns/-/lines-and-columns-1.2.4.tgz", + "integrity": "sha512-7ylylesZQ/PV29jhEDl3Ufjo6ZX7gCqJr5F7PKrqc93v7fzSymt1BpwEU8nAUXs8qzzvqhbjhK5QZg6Mt/HkBg==" + }, + "node_modules/linguist-languages": { + "version": "7.10.0", + "resolved": "https://registry.npmjs.org/linguist-languages/-/linguist-languages-7.10.0.tgz", + "integrity": "sha512-Uqt94P4iAznscZtccnNE1IBi105U+fmQKEUlDJv54JDdFZDInomkepEIRpZLOQcPyGdcNu3JO9Tvo5wpQVbfKw==" + }, + "node_modules/loader-runner": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/loader-runner/-/loader-runner-4.3.0.tgz", + "integrity": "sha512-3R/1M+yS3j5ou80Me59j7F9IMs4PXs3VqRrm0TU3AbKPxlmpoY1TNscJV/oGJXo8qCatFGTfDbY6W6ipGOYXfg==", + "dev": true, + "engines": { + "node": ">=6.11.5" + } + }, + "node_modules/loader-utils": { + "version": "2.0.4", + "resolved": "https://registry.npmjs.org/loader-utils/-/loader-utils-2.0.4.tgz", + "integrity": "sha512-xXqpXoINfFhgua9xiqD8fPFHgkoq1mmmpE92WlDbm9rNRd/EbRb+Gqf908T2DMfuHjjJlksiK2RbHVOdD/MqSw==", + "dev": true, + "dependencies": { + "big.js": "^5.2.2", + "emojis-list": "^3.0.0", + "json5": "^2.1.2" + }, + "engines": { + "node": ">=8.9.0" + } + }, + "node_modules/locate-path": { + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/locate-path/-/locate-path-5.0.0.tgz", + "integrity": "sha512-t7hw9pI+WvuwNJXwk5zVHpyhIqzg2qTlklJOf0mVxGSbe3Fp2VieZcduNYjaLDoy6p9uGpQEGWG87WpMKlNq8g==", + "dev": true, + "dependencies": { + "p-locate": "^4.1.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/lodash": { + "version": "4.17.21", + "resolved": "https://registry.npmjs.org/lodash/-/lodash-4.17.21.tgz", + "integrity": "sha512-v2kDEe57lecTulaDIuNTPy3Ry4gLGJ6Z1O3vE1krgXZNrsQ+LFTGHVxVjcXPs17LhbZVGedAJv8XZ1tvj5FvSg==" + }, + "node_modules/lodash-es": { + "version": "4.17.21", + "resolved": "https://registry.npmjs.org/lodash-es/-/lodash-es-4.17.21.tgz", + "integrity": "sha512-mKnC+QJ9pWVzv+C4/U3rRsHapFfHvQFoFB92e52xeyGMcX6/OlIl78je1u8vePzYZSkkogMPJ2yjxxsb89cxyw==" + }, + "node_modules/lodash.debounce": { + "version": "4.0.8", + "resolved": "https://registry.npmjs.org/lodash.debounce/-/lodash.debounce-4.0.8.tgz", + "integrity": "sha512-FT1yDzDYEoYWhnSGnpE/4Kj1fLZkDFyqRb7fNt6FdYOSxlUWAtp42Eh6Wb0rGIv/m9Bgo7x4GhQbm5Ys4SG5ow==", + "dev": true + }, + "node_modules/lodash.memoize": { + "version": "4.1.2", + "resolved": "https://registry.npmjs.org/lodash.memoize/-/lodash.memoize-4.1.2.tgz", + "integrity": "sha512-t7j+NzmgnQzTAYXcsHYLgimltOV1MXHtlOWf6GjL9Kj8GK5FInw5JotxvbOs+IvV1/Dzo04/fCGfLVs7aXb4Ag==", + "dev": true + }, + "node_modules/lodash.merge": { + "version": "4.6.2", + "resolved": "https://registry.npmjs.org/lodash.merge/-/lodash.merge-4.6.2.tgz", + "integrity": "sha512-0KpjqXRVvrYyCsX1swR/XTK0va6VQkQM6MNo7PqW77ByjAhoARA8EfrP1N4+KlKj8YS0ZUCtRT/YUuhyYDujIQ==", + "dev": true + }, + "node_modules/lodash.uniq": { + "version": "4.5.0", + "resolved": "https://registry.npmjs.org/lodash.uniq/-/lodash.uniq-4.5.0.tgz", + "integrity": "sha512-xfBaXQd9ryd9dlSDvnvI0lvxfLJlYAZzXomUYzLKtUeOQvOP5piqAWuGtrhWeqaXK9hhoM/iyJc5AV+XfsX3HQ==", + "dev": true + }, + "node_modules/loose-envify": { + "version": "1.4.0", + "resolved": "https://registry.npmjs.org/loose-envify/-/loose-envify-1.4.0.tgz", + "integrity": "sha512-lyuxPGr/Wfhrlem2CL/UcnUc1zcqKAImBDzukY7Y5F/yQiNdko6+fRLevlw1HgMySw7f611UIY408EtxRSoK3Q==", + "peer": true, + "dependencies": { + "js-tokens": "^3.0.0 || ^4.0.0" + }, + "bin": { + "loose-envify": "cli.js" + } + }, + "node_modules/lower-case": { + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/lower-case/-/lower-case-2.0.2.tgz", + "integrity": "sha512-7fm3l3NAF9WfN6W3JOmf5drwpVqX78JtoGJ3A6W0a6ZnldM41w2fV5D490psKFTpMds8TJse/eHLFFsNHHjHgg==", + "dev": true, + "dependencies": { + "tslib": "^2.0.3" + } + }, + "node_modules/lozad": { + "version": "1.16.0", + "resolved": "https://registry.npmjs.org/lozad/-/lozad-1.16.0.tgz", + "integrity": "sha512-JBr9WjvEFeKoyim3svo/gsQPTkgG/mOHJmDctZ/+U9H3ymUuvEkqpn8bdQMFsvTMcyRJrdJkLv0bXqGm0sP72w==" + }, + "node_modules/lru-cache": { + "version": "5.1.1", + "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-5.1.1.tgz", + "integrity": "sha512-KpNARQA3Iwv+jTA0utUVVbrh+Jlrr1Fv0e56GGzAFOXN7dk/FviaDW8LHmK52DlcH4WP2n6gI8vN1aesBFgo9w==", + "dev": true, + "dependencies": { + "yallist": "^3.0.2" + } + }, + "node_modules/magic-string": { + "version": "0.25.1", + "resolved": "https://registry.npmjs.org/magic-string/-/magic-string-0.25.1.tgz", + "integrity": "sha512-sCuTz6pYom8Rlt4ISPFn6wuFodbKMIHUMv4Qko9P17dpxb7s52KJTmRuZZqHdGmLCK9AOcDare039nRIcfdkEg==", + "dependencies": { + "sourcemap-codec": "^1.4.1" + } + }, + "node_modules/make-dir": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/make-dir/-/make-dir-3.1.0.tgz", + "integrity": "sha512-g3FeP20LNwhALb/6Cz6Dd4F2ngze0jz7tbzrD2wAV+o9FeNHe4rL+yK2md0J/fiSf1sa1ADhXqi5+oVwOM/eGw==", + "dev": true, + "dependencies": { + "semver": "^6.0.0" + }, + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/make-dir/node_modules/semver": { + "version": "6.3.0", + "resolved": "https://registry.npmjs.org/semver/-/semver-6.3.0.tgz", + "integrity": "sha512-b39TBaTSfV6yBrapU89p5fKekE2m/NwnDocOVruQFS1/veMgdzuPcnOM34M6CwxW8jH/lxEa5rBoDeUwu5HHTw==", + "dev": true, + "bin": { + "semver": "bin/semver.js" + } + }, + "node_modules/map-age-cleaner": { + "version": "0.1.3", + "resolved": "https://registry.npmjs.org/map-age-cleaner/-/map-age-cleaner-0.1.3.tgz", + "integrity": "sha512-bJzx6nMoP6PDLPBFmg7+xRKeFZvFboMrGlxmNj9ClvX53KrmvM5bXFXEWjbz4cz1AFn+jWJ9z/DJSz7hrs0w3w==", + "dependencies": { + "p-defer": "^1.0.0" + }, + "engines": { + "node": ">=6" + } + }, + "node_modules/markdown-escapes": { + "version": "1.0.4", + "resolved": "https://registry.npmjs.org/markdown-escapes/-/markdown-escapes-1.0.4.tgz", + "integrity": "sha512-8z4efJYk43E0upd0NbVXwgSTQs6cT3T06etieCMEg7dRbzCbxUCK/GHlX8mhHRDcp+OLlHkPKsvqQTCvsRl2cg==", + "funding": { + "type": "github", + "url": "https://github.com/sponsors/wooorm" + } + }, + "node_modules/md5": { + "version": "2.3.0", + "resolved": "https://registry.npmjs.org/md5/-/md5-2.3.0.tgz", + "integrity": "sha512-T1GITYmFaKuO91vxyoQMFETst+O71VUPEU3ze5GNzDm0OWdP8v1ziTaAEPUr/3kLsY3Sftgz242A1SetQiDL7g==", + "dev": true, + "dependencies": { + "charenc": "0.0.2", + "crypt": "0.0.2", + "is-buffer": "~1.1.6" + } + }, + "node_modules/md5.js": { + "version": "1.3.5", + "resolved": "https://registry.npmjs.org/md5.js/-/md5.js-1.3.5.tgz", + "integrity": "sha512-xitP+WxNPcTTOgnTJcrhM0xvdPepipPSf3I8EIpGKeFLjt3PlJLIDG3u8EX53ZIubkb+5U2+3rELYpEhHhzdkg==", + "dev": true, + "dependencies": { + "hash-base": "^3.0.0", + "inherits": "^2.0.1", + "safe-buffer": "^5.1.2" + } + }, + "node_modules/mdn-data": { + "version": "2.0.14", + "resolved": "https://registry.npmjs.org/mdn-data/-/mdn-data-2.0.14.tgz", + "integrity": "sha512-dn6wd0uw5GsdswPFfsgMp5NSB0/aDe6fK94YJV/AJDYXL6HVLWBsxeq7js7Ad+mU2K9LAlwpk6kN2D5mwCPVow==", + "dev": true + }, + "node_modules/media-typer": { + "version": "0.3.0", + "resolved": "https://registry.npmjs.org/media-typer/-/media-typer-0.3.0.tgz", + "integrity": "sha512-dq+qelQ9akHpcOl/gUVRTxVIOkAJ1wR3QAvb4RsVjS8oVoFjDGTc679wJYmUmknUF5HwMLOgb5O+a3KxfWapPQ==", + "dev": true, + "engines": { + "node": ">= 0.6" + } + }, + "node_modules/mem": { + "version": "8.1.1", + "resolved": "https://registry.npmjs.org/mem/-/mem-8.1.1.tgz", + "integrity": "sha512-qFCFUDs7U3b8mBDPyz5EToEKoAkgCzqquIgi9nkkR9bixxOVOre+09lbuH7+9Kn2NFpm56M3GUWVbU2hQgdACA==", + "dependencies": { + "map-age-cleaner": "^0.1.3", + "mimic-fn": "^3.1.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sindresorhus/mem?sponsor=1" + } + }, + "node_modules/mem/node_modules/mimic-fn": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/mimic-fn/-/mimic-fn-3.1.0.tgz", + "integrity": "sha512-Ysbi9uYW9hFyfrThdDEQuykN4Ey6BuwPD2kpI5ES/nFTDn/98yxYNLZJcgUAKPT/mcrLLKaGzJR9YVxJrIdASQ==", + "engines": { + "node": ">=8" + } + }, + "node_modules/memfs": { + "version": "3.5.0", + "resolved": "https://registry.npmjs.org/memfs/-/memfs-3.5.0.tgz", + "integrity": "sha512-yK6o8xVJlQerz57kvPROwTMgx5WtGwC2ZxDtOUsnGl49rHjYkfQoPNZPCKH73VdLE1BwBu/+Fx/NL8NYMUw2aA==", + "dev": true, + "dependencies": { + "fs-monkey": "^1.0.3" + }, + "engines": { + "node": ">= 4.0.0" + } + }, + "node_modules/merge-descriptors": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/merge-descriptors/-/merge-descriptors-1.0.1.tgz", + "integrity": "sha512-cCi6g3/Zr1iqQi6ySbseM1Xvooa98N0w31jzUYrXPX2xqObmFGHJ0tQ5u74H3mVh7wLouTseZyYIq39g8cNp1w==", + "dev": true + }, + "node_modules/merge-source-map": { + "version": "1.0.4", + "resolved": "https://registry.npmjs.org/merge-source-map/-/merge-source-map-1.0.4.tgz", + "integrity": "sha512-PGSmS0kfnTnMJCzJ16BLLCEe6oeYCamKFFdQKshi4BmM6FUwipjVOcBFGxqtQtirtAG4iZvHlqST9CpZKqlRjA==", + "dependencies": { + "source-map": "^0.5.6" + } + }, + "node_modules/merge-source-map/node_modules/source-map": { + "version": "0.5.7", + "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.5.7.tgz", + "integrity": "sha512-LbrmJOMUSdEVxIKvdcJzQC+nQhe8FUZQTXQy6+I75skNgn3OoQ0DZA8YnFa7gp8tqtL3KPf1kmo0R5DoApeSGQ==", + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/merge-stream": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/merge-stream/-/merge-stream-2.0.0.tgz", + "integrity": "sha512-abv/qOcuPfk3URPfDzmZU1LKmuw8kT+0nIHvKrKgFrwifol/doWcdA4ZqsWQ8ENrFKkd67Mfpo/LovbIUsbt3w==", + "dev": true + }, + "node_modules/merge2": { + "version": "1.4.1", + "resolved": "https://registry.npmjs.org/merge2/-/merge2-1.4.1.tgz", + "integrity": "sha512-8q7VEgMJW4J8tcfVPy8g09NcQwZdbwFEqhe/WZkoIzjn/3TGDwtOCYtXGxA3O8tPzpczCCDgv+P2P5y00ZJOOg==", + "engines": { + "node": ">= 8" + } + }, + "node_modules/methods": { + "version": "1.1.2", + "resolved": "https://registry.npmjs.org/methods/-/methods-1.1.2.tgz", + "integrity": "sha512-iclAHeNqNm68zFtnZ0e+1L2yUIdvzNoauKU4WBA3VvH/vPFieF7qfRlwUZU+DA9P9bPXIS90ulxoUoCH23sV2w==", + "dev": true, + "engines": { + "node": ">= 0.6" + } + }, + "node_modules/micromatch": { + "version": "4.0.5", + "resolved": "https://registry.npmjs.org/micromatch/-/micromatch-4.0.5.tgz", + "integrity": "sha512-DMy+ERcEW2q8Z2Po+WNXuw3c5YaUSFjAO5GsJqfEl7UjvtIuFKO6ZrKvcItdy98dwFI2N1tg3zNIdKaQT+aNdA==", + "dependencies": { + "braces": "^3.0.2", + "picomatch": "^2.3.1" + }, + "engines": { + "node": ">=8.6" + } + }, + "node_modules/miller-rabin": { + "version": "4.0.1", + "resolved": "https://registry.npmjs.org/miller-rabin/-/miller-rabin-4.0.1.tgz", + "integrity": "sha512-115fLhvZVqWwHPbClyntxEVfVDfl9DLLTuJvq3g2O/Oxi8AiNouAHvDSzHS0viUJc+V5vm3eq91Xwqn9dp4jRA==", + "dev": true, + "dependencies": { + "bn.js": "^4.0.0", + "brorand": "^1.0.1" + }, + "bin": { + "miller-rabin": "bin/miller-rabin" + } + }, + "node_modules/miller-rabin/node_modules/bn.js": { + "version": "4.12.0", + "resolved": "https://registry.npmjs.org/bn.js/-/bn.js-4.12.0.tgz", + "integrity": "sha512-c98Bf3tPniI+scsdk237ku1Dc3ujXQTSgyiPUDEOe7tRkhrqridvh8klBv0HCEso1OLOYcHuCv/cS6DNxKH+ZA==", + "dev": true + }, + "node_modules/mime": { + "version": "1.6.0", + "resolved": "https://registry.npmjs.org/mime/-/mime-1.6.0.tgz", + "integrity": "sha512-x0Vn8spI+wuJ1O6S7gnbaQg8Pxh4NNHb7KSINmEWKiPE4RKOplvijn+NkmYmmRgP68mc70j2EbeTFRsrswaQeg==", + "dev": true, + "bin": { + "mime": "cli.js" + }, + "engines": { + "node": ">=4" + } + }, + "node_modules/mime-db": { + "version": "1.52.0", + "resolved": "https://registry.npmjs.org/mime-db/-/mime-db-1.52.0.tgz", + "integrity": "sha512-sPU4uV7dYlvtWJxwwxHD0PuihVNiE7TyAbQ5SWxDCB9mUYvOgroQOwYQQOKPJ8CIbE+1ETVlOoK1UC2nU3gYvg==", + "dev": true, + "engines": { + "node": ">= 0.6" + } + }, + "node_modules/mime-types": { + "version": "2.1.35", + "resolved": "https://registry.npmjs.org/mime-types/-/mime-types-2.1.35.tgz", + "integrity": "sha512-ZDY+bPm5zTTF+YpCrAU9nK0UgICYPT0QtT1NZWFv4s++TNkcgVaT0g6+4R2uI4MjQjzysHB1zxuWL50hzaeXiw==", + "dev": true, + "dependencies": { + "mime-db": "1.52.0" + }, + "engines": { + "node": ">= 0.6" + } + }, + "node_modules/mimic-fn": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/mimic-fn/-/mimic-fn-2.1.0.tgz", + "integrity": "sha512-OqbOk5oEQeAZ8WXWydlu9HJjz9WVdEIvamMCcXmuqUYjTknH/sqsWvhQ3vgwKFRR1HpjvNBKQ37nbJgYzGqGcg==", + "dev": true, + "engines": { + "node": ">=6" + } + }, + "node_modules/mini-css-extract-plugin": { + "version": "1.6.2", + "resolved": "https://registry.npmjs.org/mini-css-extract-plugin/-/mini-css-extract-plugin-1.6.2.tgz", + "integrity": "sha512-WhDvO3SjGm40oV5y26GjMJYjd2UMqrLAGKy5YS2/3QKJy2F7jgynuHTir/tgUUOiNQu5saXHdc8reo7YuhhT4Q==", + "dev": true, + "dependencies": { + "loader-utils": "^2.0.0", + "schema-utils": "^3.0.0", + "webpack-sources": "^1.1.0" + }, + "engines": { + "node": ">= 10.13.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/webpack" + }, + "peerDependencies": { + "webpack": "^4.4.0 || ^5.0.0" + } + }, + "node_modules/mini-css-extract-plugin/node_modules/schema-utils": { + "version": "3.1.1", + "resolved": "https://registry.npmjs.org/schema-utils/-/schema-utils-3.1.1.tgz", + "integrity": "sha512-Y5PQxS4ITlC+EahLuXaY86TXfR7Dc5lw294alXOq86JAHCihAIZfqv8nNCWvaEJvaC51uN9hbLGeV0cFBdH+Fw==", + "dev": true, + "dependencies": { + "@types/json-schema": "^7.0.8", + "ajv": "^6.12.5", + "ajv-keywords": "^3.5.2" + }, + "engines": { + "node": ">= 10.13.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/webpack" + } + }, + "node_modules/minimalistic-assert": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/minimalistic-assert/-/minimalistic-assert-1.0.1.tgz", + "integrity": "sha512-UtJcAD4yEaGtjPezWuO9wC4nwUnVH/8/Im3yEHQP4b67cXlD/Qr9hdITCU1xDbSEXg2XKNaP8jsReV7vQd00/A==", + "dev": true + }, + "node_modules/minimalistic-crypto-utils": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/minimalistic-crypto-utils/-/minimalistic-crypto-utils-1.0.1.tgz", + "integrity": "sha512-JIYlbt6g8i5jKfJ3xz7rF0LXmv2TkDxBLUkiBeZ7bAx4GnnNMr8xFpGnOxn6GhTEHx3SjRrZEoU+j04prX1ktg==", + "dev": true + }, + "node_modules/minimatch": { + "version": "3.1.2", + "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-3.1.2.tgz", + "integrity": "sha512-J7p63hRiAjw1NDEww1W7i37+ByIrOWO5XQQAzZ3VOcL0PNybwpfmV/N05zFAzwQ9USyEcX6t3UO+K5aqBQOIHw==", + "dependencies": { + "brace-expansion": "^1.1.7" + }, + "engines": { + "node": "*" + } + }, + "node_modules/minimist": { + "version": "1.2.8", + "resolved": "https://registry.npmjs.org/minimist/-/minimist-1.2.8.tgz", + "integrity": "sha512-2yyAR8qBkN3YuheJanUpWC5U3bb5osDywNB8RzDVlDwDHbocAJveqqj1u8+SVD7jkWT4yvsHCpWqqWqAxb0zCA==", + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/mkdirp": { + "version": "0.5.6", + "resolved": "https://registry.npmjs.org/mkdirp/-/mkdirp-0.5.6.tgz", + "integrity": "sha512-FP+p8RB8OWpF3YZBCrP5gtADmtXApB5AMLn+vdyA+PyxCjrCs00mjyUozssO33cwDeT3wNGdLxJ5M//YqtHAJw==", + "dependencies": { + "minimist": "^1.2.6" + }, + "bin": { + "mkdirp": "bin/cmd.js" + } + }, + "node_modules/moment": { + "version": "2.29.4", + "resolved": "https://registry.npmjs.org/moment/-/moment-2.29.4.tgz", + "integrity": "sha512-5LC9SOxjSc2HF6vO2CyuTDNivEdoz2IvyJJGj6X8DJ0eFyfszE0QiEd+iXmBvUP3WHxSjFH/vIsA0EN00cgr8w==", + "engines": { + "node": "*" + } + }, + "node_modules/ms": { + "version": "2.1.2", + "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.2.tgz", + "integrity": "sha512-sGkPx+VjMtmA6MX27oA4FBFELFCZZ4S4XqeGOXCv68tT+jb3vk/RyaKWP0PTKyWtmLSM0b+adUTEvbs1PEaH2w==" + }, + "node_modules/multicast-dns": { + "version": "7.2.5", + "resolved": "https://registry.npmjs.org/multicast-dns/-/multicast-dns-7.2.5.tgz", + "integrity": "sha512-2eznPJP8z2BFLX50tf0LuODrpINqP1RVIm/CObbTcBRITQgmC/TjcREF1NeTBzIcR5XO/ukWo+YHOjBbFwIupg==", + "dev": true, + "dependencies": { + "dns-packet": "^5.2.2", + "thunky": "^1.0.2" + }, + "bin": { + "multicast-dns": "cli.js" + } + }, + "node_modules/n-readlines": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/n-readlines/-/n-readlines-1.0.1.tgz", + "integrity": "sha512-z4SyAIVgMy7CkgsoNw7YVz40v0g4+WWvvqy8+ZdHrCtgevcEO758WQyrYcw3XPxcLxF+//RszTz/rO48nzD0wQ==", + "engines": { + "node": ">=6.x.x" + } + }, + "node_modules/nanoid": { + "version": "3.3.6", + "resolved": "https://registry.npmjs.org/nanoid/-/nanoid-3.3.6.tgz", + "integrity": "sha512-BGcqMMJuToF7i1rt+2PWSNVnWIkGCU78jBG3RxO/bZlnZPK2Cmi2QaffxGO/2RvWi9sL+FAiRiXMgsyxQ1DIDA==", + "funding": [ + { + "type": "github", + "url": "https://github.com/sponsors/ai" + } + ], + "bin": { + "nanoid": "bin/nanoid.cjs" + }, + "engines": { + "node": "^10 || ^12 || ^13.7 || ^14 || >=15.0.1" + } + }, + "node_modules/negotiator": { + "version": "0.6.3", + "resolved": "https://registry.npmjs.org/negotiator/-/negotiator-0.6.3.tgz", + "integrity": "sha512-+EUsqGPLsM+j/zdChZjsnX51g4XrHFOIXwfnCVPGlQk/k5giakcKsuxCObBRu6DSm9opw/O6slWbJdghQM4bBg==", + "dev": true, + "engines": { + "node": ">= 0.6" + } + }, + "node_modules/neo-async": { + "version": "2.6.2", + "resolved": "https://registry.npmjs.org/neo-async/-/neo-async-2.6.2.tgz", + "integrity": "sha512-Yd3UES5mWCSqR+qNT93S3UoYUkqAZ9lLg8a7g9rimsWmYGK8cVToA4/sF3RrshdyV3sAGMXVUmpMYOw+dLpOuw==" + }, + "node_modules/next-tick": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/next-tick/-/next-tick-1.1.0.tgz", + "integrity": "sha512-CXdUiJembsNjuToQvxayPZF9Vqht7hewsvy2sOWafLvi2awflj9mOC6bHIg50orX8IJvWKY9wYQ/zB2kogPslQ==" + }, + "node_modules/no-case": { + "version": "3.0.4", + "resolved": "https://registry.npmjs.org/no-case/-/no-case-3.0.4.tgz", + "integrity": "sha512-fgAN3jGAh+RoxUGZHTSOLJIqUc2wmoBwGR4tbpNAKmmovFoWq0OdRkb0VkldReO2a2iBT/OEulG9XSUc10r3zg==", + "dev": true, + "dependencies": { + "lower-case": "^2.0.2", + "tslib": "^2.0.3" + } + }, + "node_modules/node-forge": { + "version": "1.3.1", + "resolved": "https://registry.npmjs.org/node-forge/-/node-forge-1.3.1.tgz", + "integrity": "sha512-dPEtOeMvF9VMcYV/1Wb8CPoVAXtp6MKMlcbAt4ddqmGqUJ6fQZFXkNZNkNlfevtNkGtaSoXf/vNNNSvgrdXwtA==", + "dev": true, + "engines": { + "node": ">= 6.13.0" + } + }, + "node_modules/node-libs-browser": { + "version": "2.2.1", + "resolved": "https://registry.npmjs.org/node-libs-browser/-/node-libs-browser-2.2.1.tgz", + "integrity": "sha512-h/zcD8H9kaDZ9ALUWwlBUDo6TKF8a7qBSCSEGfjTVIYeqsioSKaAX+BN7NgiMGp6iSIXZ3PxgCu8KS3b71YK5Q==", + "dev": true, + "dependencies": { + "assert": "^1.1.1", + "browserify-zlib": "^0.2.0", + "buffer": "^4.3.0", + "console-browserify": "^1.1.0", + "constants-browserify": "^1.0.0", + "crypto-browserify": "^3.11.0", + "domain-browser": "^1.1.1", + "events": "^3.0.0", + "https-browserify": "^1.0.0", + "os-browserify": "^0.3.0", + "path-browserify": "0.0.1", + "process": "^0.11.10", + "punycode": "^1.2.4", + "querystring-es3": "^0.2.0", + "readable-stream": "^2.3.3", + "stream-browserify": "^2.0.1", + "stream-http": "^2.7.2", + "string_decoder": "^1.0.0", + "timers-browserify": "^2.0.4", + "tty-browserify": "0.0.0", + "url": "^0.11.0", + "util": "^0.11.0", + "vm-browserify": "^1.0.1" + } + }, + "node_modules/node-notifier": { + "version": "9.0.1", + "resolved": "https://registry.npmjs.org/node-notifier/-/node-notifier-9.0.1.tgz", + "integrity": "sha512-fPNFIp2hF/Dq7qLDzSg4vZ0J4e9v60gJR+Qx7RbjbWqzPDdEqeVpEx5CFeDAELIl+A/woaaNn1fQ5nEVerMxJg==", + "dev": true, + "dependencies": { + "growly": "^1.3.0", + "is-wsl": "^2.2.0", + "semver": "^7.3.2", + "shellwords": "^0.1.1", + "uuid": "^8.3.0", + "which": "^2.0.2" + } + }, + "node_modules/node-notifier/node_modules/uuid": { + "version": "8.3.2", + "resolved": "https://registry.npmjs.org/uuid/-/uuid-8.3.2.tgz", + "integrity": "sha512-+NYs2QeMWy+GWFOEm9xnn6HCDp0l7QBD7ml8zLUmJ+93Q5NF0NocErnwkTkXVFNiX3/fpC6afS8Dhb/gz7R7eg==", + "dev": true, + "bin": { + "uuid": "dist/bin/uuid" + } + }, + "node_modules/node-releases": { + "version": "2.0.10", + "resolved": "https://registry.npmjs.org/node-releases/-/node-releases-2.0.10.tgz", + "integrity": "sha512-5GFldHPXVG/YZmFzJvKK2zDSzPKhEp0+ZR5SVaoSag9fsL5YgHbUHDfnG5494ISANDcK4KwPXAx2xqVEydmd7w==", + "dev": true + }, + "node_modules/node-watch": { + "version": "0.7.3", + "resolved": "https://registry.npmjs.org/node-watch/-/node-watch-0.7.3.tgz", + "integrity": "sha512-3l4E8uMPY1HdMMryPRUAl+oIHtXtyiTlIiESNSVSNxcPfzAFzeTbXFQkZfAwBbo0B1qMSG8nUABx+Gd+YrbKrQ==", + "engines": { + "node": ">=6" + } + }, + "node_modules/nodemon": { + "version": "2.0.22", + "resolved": "https://registry.npmjs.org/nodemon/-/nodemon-2.0.22.tgz", + "integrity": "sha512-B8YqaKMmyuCO7BowF1Z1/mkPqLk6cs/l63Ojtd6otKjMx47Dq1utxfRxcavH1I7VSaL8n5BUaoutadnsX3AAVQ==", + "dependencies": { + "chokidar": "^3.5.2", + "debug": "^3.2.7", + "ignore-by-default": "^1.0.1", + "minimatch": "^3.1.2", + "pstree.remy": "^1.1.8", + "semver": "^5.7.1", + "simple-update-notifier": "^1.0.7", + "supports-color": "^5.5.0", + "touch": "^3.1.0", + "undefsafe": "^2.0.5" + }, + "bin": { + "nodemon": "bin/nodemon.js" + }, + "engines": { + "node": ">=8.10.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/nodemon" + } + }, + "node_modules/nodemon/node_modules/debug": { + "version": "3.2.7", + "resolved": "https://registry.npmjs.org/debug/-/debug-3.2.7.tgz", + "integrity": "sha512-CFjzYYAi4ThfiQvizrFQevTTXHtnCqWfe7x1AhgEscTz6ZbLbfoLRLPugTQyBth6f8ZERVUSyWHFD/7Wu4t1XQ==", + "dependencies": { + "ms": "^2.1.1" + } + }, + "node_modules/nodemon/node_modules/has-flag": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-3.0.0.tgz", + "integrity": "sha512-sKJf1+ceQBr4SMkvQnBDNDtf4TXpVhVGateu0t918bl30FnbE2m4vNLX+VWe/dpjlb+HugGYzW7uQXH98HPEYw==", + "engines": { + "node": ">=4" + } + }, + "node_modules/nodemon/node_modules/semver": { + "version": "5.7.1", + "resolved": "https://registry.npmjs.org/semver/-/semver-5.7.1.tgz", + "integrity": "sha512-sauaDf/PZdVgrLTNYHRtpXa1iRiKcaebiKQ1BJdpQlWH2lCvexQdX55snPFyK7QzpudqbCI0qXFfOasHdyNDGQ==", + "bin": { + "semver": "bin/semver" + } + }, + "node_modules/nodemon/node_modules/supports-color": { + "version": "5.5.0", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-5.5.0.tgz", + "integrity": "sha512-QjVjwdXIt408MIiAqCX4oUKsgU2EqAGzs2Ppkm4aQYbjm+ZEWEcW4SfFNTr4uMNZma0ey4f5lgLrkB0aX0QMow==", + "dependencies": { + "has-flag": "^3.0.0" + }, + "engines": { + "node": ">=4" + } + }, + "node_modules/nopt": { + "version": "1.0.10", + "resolved": "https://registry.npmjs.org/nopt/-/nopt-1.0.10.tgz", + "integrity": "sha512-NWmpvLSqUrgrAC9HCuxEvb+PSloHpqVu+FqcO4eeF2h5qYRhA7ev6KvelyQAKtegUbC6RypJnlEOhd8vloNKYg==", + "dependencies": { + "abbrev": "1" + }, + "bin": { + "nopt": "bin/nopt.js" + }, + "engines": { + "node": "*" + } + }, + "node_modules/normalize-path": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/normalize-path/-/normalize-path-3.0.0.tgz", + "integrity": "sha512-6eZs5Ls3WtCisHWp9S2GUy8dqkpGi4BVSz3GaqiE6ezub0512ESztXUwUB6C6IKbQkY2Pnb/mD4WYojCRwcwLA==", + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/normalize-range": { + "version": "0.1.2", + "resolved": "https://registry.npmjs.org/normalize-range/-/normalize-range-0.1.2.tgz", + "integrity": "sha512-bdok/XvKII3nUpklnV6P2hxtMNrCboOjAcyBuQnWEhO665FwrSNRxU+AqpsyvO6LgGYPspN+lu5CLtw4jPRKNA==", + "dev": true, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/normalize-url": { + "version": "6.1.0", + "resolved": "https://registry.npmjs.org/normalize-url/-/normalize-url-6.1.0.tgz", + "integrity": "sha512-DlL+XwOy3NxAQ8xuC0okPgK46iuVNAK01YN7RueYBqqFeGsBjV9XmCAzAdgt+667bCl5kPh9EqKKDwnaPG1I7A==", + "dev": true, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/nouislider": { + "version": "15.7.0", + "resolved": "https://registry.npmjs.org/nouislider/-/nouislider-15.7.0.tgz", + "integrity": "sha512-aJVEULBPOUwq32/s7xnLNyLvo4kuzYJJsNp2PNGW932AQ0uuDAbLShAqswtxRzJc5n/dLJXNlYSLOZ57bcUg1w==" + }, + "node_modules/npm": { + "version": "7.24.2", + "resolved": "https://registry.npmjs.org/npm/-/npm-7.24.2.tgz", + "integrity": "sha512-120p116CE8VMMZ+hk8IAb1inCPk4Dj3VZw29/n2g6UI77urJKVYb7FZUDW8hY+EBnfsjI/2yrobBgFyzo7YpVQ==", + "bundleDependencies": [ + "@isaacs/string-locale-compare", + "@npmcli/arborist", + "@npmcli/ci-detect", + "@npmcli/config", + "@npmcli/map-workspaces", + "@npmcli/package-json", + "@npmcli/run-script", + "abbrev", + "ansicolors", + "ansistyles", + "archy", + "cacache", + "chalk", + "chownr", + "cli-columns", + "cli-table3", + "columnify", + "fastest-levenshtein", + "glob", + "graceful-fs", + "hosted-git-info", + "ini", + "init-package-json", + "is-cidr", + "json-parse-even-better-errors", + "libnpmaccess", + "libnpmdiff", + "libnpmexec", + "libnpmfund", + "libnpmhook", + "libnpmorg", + "libnpmpack", + "libnpmpublish", + "libnpmsearch", + "libnpmteam", + "libnpmversion", + "make-fetch-happen", + "minipass", + "minipass-pipeline", + "mkdirp", + "mkdirp-infer-owner", + "ms", + "node-gyp", + "nopt", + "npm-audit-report", + "npm-install-checks", + "npm-package-arg", + "npm-pick-manifest", + "npm-profile", + "npm-registry-fetch", + "npm-user-validate", + "npmlog", + "opener", + "pacote", + "parse-conflict-json", + "qrcode-terminal", + "read", + "read-package-json", + "read-package-json-fast", + "readdir-scoped-modules", + "rimraf", + "semver", + "ssri", + "tar", + "text-table", + "tiny-relative-date", + "treeverse", + "validate-npm-package-name", + "which", + "write-file-atomic" + ], + "dependencies": { + "@isaacs/string-locale-compare": "*", + "@npmcli/arborist": "*", + "@npmcli/ci-detect": "*", + "@npmcli/config": "*", + "@npmcli/map-workspaces": "*", + "@npmcli/package-json": "*", + "@npmcli/run-script": "*", + "abbrev": "*", + "ansicolors": "*", + "ansistyles": "*", + "archy": "*", + "cacache": "*", + "chalk": "*", + "chownr": "*", + "cli-columns": "*", + "cli-table3": "*", + "columnify": "*", + "fastest-levenshtein": "*", + "glob": "*", + "graceful-fs": "*", + "hosted-git-info": "*", + "ini": "*", + "init-package-json": "*", + "is-cidr": "*", + "json-parse-even-better-errors": "*", + "libnpmaccess": "*", + "libnpmdiff": "*", + "libnpmexec": "*", + "libnpmfund": "*", + "libnpmhook": "*", + "libnpmorg": "*", + "libnpmpack": "*", + "libnpmpublish": "*", + "libnpmsearch": "*", + "libnpmteam": "*", + "libnpmversion": "*", + "make-fetch-happen": "*", + "minipass": "*", + "minipass-pipeline": "*", + "mkdirp": "*", + "mkdirp-infer-owner": "*", + "ms": "*", + "node-gyp": "*", + "nopt": "*", + "npm-audit-report": "*", + "npm-install-checks": "*", + "npm-package-arg": "*", + "npm-pick-manifest": "*", + "npm-profile": "*", + "npm-registry-fetch": "*", + "npm-user-validate": "*", + "npmlog": "*", + "opener": "*", + "pacote": "*", + "parse-conflict-json": "*", + "qrcode-terminal": "*", + "read": "*", + "read-package-json": "*", + "read-package-json-fast": "*", + "readdir-scoped-modules": "*", + "rimraf": "*", + "semver": "*", + "ssri": "*", + "tar": "*", + "text-table": "*", + "tiny-relative-date": "*", + "treeverse": "*", + "validate-npm-package-name": "*", + "which": "*", + "write-file-atomic": "*" + }, + "bin": { + "npm": "bin/npm-cli.js", + "npx": "bin/npx-cli.js" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/npm-run-path": { + "version": "4.0.1", + "resolved": "https://registry.npmjs.org/npm-run-path/-/npm-run-path-4.0.1.tgz", + "integrity": "sha512-S48WzZW777zhNIrn7gxOlISNAqi9ZC/uQFnRdbeIHhZhCA6UqpkOT8T1G7BvfdgP4Er8gF4sUbaS0i7QvIfCWw==", + "dev": true, + "dependencies": { + "path-key": "^3.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/npm-watch": { + "version": "0.7.0", + "resolved": "https://registry.npmjs.org/npm-watch/-/npm-watch-0.7.0.tgz", + "integrity": "sha512-AN2scNyMljMGkn0mIkaRRk19I7Vx0qTK6GmsIcDblX5YRbSsoJORTAtrceICSx7Om9q48NWcwm/R0t6E7F4Ocg==", + "dependencies": { + "nodemon": "^2.0.3", + "through2": "^2.0.0" + }, + "bin": { + "npm-watch": "cli.js" + } + }, + "node_modules/npm/node_modules/@gar/promisify": { + "version": "1.1.2", + "inBundle": true, + "license": "MIT" + }, + "node_modules/npm/node_modules/@isaacs/string-locale-compare": { + "version": "1.1.0", + "inBundle": true, + "license": "ISC" + }, + "node_modules/npm/node_modules/@npmcli/arborist": { + "version": "2.9.0", + "inBundle": true, + "license": "ISC", + "dependencies": { + "@isaacs/string-locale-compare": "^1.0.1", + "@npmcli/installed-package-contents": "^1.0.7", + "@npmcli/map-workspaces": "^1.0.2", + "@npmcli/metavuln-calculator": "^1.1.0", + "@npmcli/move-file": "^1.1.0", + "@npmcli/name-from-folder": "^1.0.1", + "@npmcli/node-gyp": "^1.0.1", + "@npmcli/package-json": "^1.0.1", + "@npmcli/run-script": "^1.8.2", + "bin-links": "^2.2.1", + "cacache": "^15.0.3", + "common-ancestor-path": "^1.0.1", + "json-parse-even-better-errors": "^2.3.1", + "json-stringify-nice": "^1.1.4", + "mkdirp": "^1.0.4", + "mkdirp-infer-owner": "^2.0.0", + "npm-install-checks": "^4.0.0", + "npm-package-arg": "^8.1.5", + "npm-pick-manifest": "^6.1.0", + "npm-registry-fetch": "^11.0.0", + "pacote": "^11.3.5", + "parse-conflict-json": "^1.1.1", + "proc-log": "^1.0.0", + "promise-all-reject-late": "^1.0.0", + "promise-call-limit": "^1.0.1", + "read-package-json-fast": "^2.0.2", + "readdir-scoped-modules": "^1.1.0", + "rimraf": "^3.0.2", + "semver": "^7.3.5", + "ssri": "^8.0.1", + "treeverse": "^1.0.4", + "walk-up-path": "^1.0.0" + }, + "bin": { + "arborist": "bin/index.js" + }, + "engines": { + "node": ">= 10" + } + }, + "node_modules/npm/node_modules/@npmcli/ci-detect": { + "version": "1.3.0", + "inBundle": true, + "license": "ISC" + }, + "node_modules/npm/node_modules/@npmcli/config": { + "version": "2.3.0", + "inBundle": true, + "license": "ISC", + "dependencies": { + "ini": "^2.0.0", + "mkdirp-infer-owner": "^2.0.0", + "nopt": "^5.0.0", + "semver": "^7.3.4", + "walk-up-path": "^1.0.0" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/npm/node_modules/@npmcli/disparity-colors": { + "version": "1.0.1", + "inBundle": true, + "license": "ISC", + "dependencies": { + "ansi-styles": "^4.3.0" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/npm/node_modules/@npmcli/fs": { + "version": "1.0.0", + "inBundle": true, + "license": "ISC", + "dependencies": { + "@gar/promisify": "^1.0.1", + "semver": "^7.3.5" + } + }, + "node_modules/npm/node_modules/@npmcli/git": { + "version": "2.1.0", + "inBundle": true, + "license": "ISC", + "dependencies": { + "@npmcli/promise-spawn": "^1.3.2", + "lru-cache": "^6.0.0", + "mkdirp": "^1.0.4", + "npm-pick-manifest": "^6.1.1", + "promise-inflight": "^1.0.1", + "promise-retry": "^2.0.1", + "semver": "^7.3.5", + "which": "^2.0.2" + } + }, + "node_modules/npm/node_modules/@npmcli/installed-package-contents": { + "version": "1.0.7", + "inBundle": true, + "license": "ISC", + "dependencies": { + "npm-bundled": "^1.1.1", + "npm-normalize-package-bin": "^1.0.1" + }, + "bin": { + "installed-package-contents": "index.js" + }, + "engines": { + "node": ">= 10" + } + }, + "node_modules/npm/node_modules/@npmcli/map-workspaces": { + "version": "1.0.4", + "inBundle": true, + "license": "ISC", + "dependencies": { + "@npmcli/name-from-folder": "^1.0.1", + "glob": "^7.1.6", + "minimatch": "^3.0.4", + "read-package-json-fast": "^2.0.1" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/npm/node_modules/@npmcli/metavuln-calculator": { + "version": "1.1.1", + "inBundle": true, + "license": "ISC", + "dependencies": { + "cacache": "^15.0.5", + "pacote": "^11.1.11", + "semver": "^7.3.2" + } + }, + "node_modules/npm/node_modules/@npmcli/move-file": { + "version": "1.1.2", + "inBundle": true, + "license": "MIT", + "dependencies": { + "mkdirp": "^1.0.4", + "rimraf": "^3.0.2" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/npm/node_modules/@npmcli/name-from-folder": { + "version": "1.0.1", + "inBundle": true, + "license": "ISC" + }, + "node_modules/npm/node_modules/@npmcli/node-gyp": { + "version": "1.0.2", + "inBundle": true, + "license": "ISC" + }, + "node_modules/npm/node_modules/@npmcli/package-json": { + "version": "1.0.1", + "inBundle": true, + "license": "ISC", + "dependencies": { + "json-parse-even-better-errors": "^2.3.1" + } + }, + "node_modules/npm/node_modules/@npmcli/promise-spawn": { + "version": "1.3.2", + "inBundle": true, + "license": "ISC", + "dependencies": { + "infer-owner": "^1.0.4" + } + }, + "node_modules/npm/node_modules/@npmcli/run-script": { + "version": "1.8.6", + "inBundle": true, + "license": "ISC", + "dependencies": { + "@npmcli/node-gyp": "^1.0.2", + "@npmcli/promise-spawn": "^1.3.2", + "node-gyp": "^7.1.0", + "read-package-json-fast": "^2.0.1" + } + }, + "node_modules/npm/node_modules/@tootallnate/once": { + "version": "1.1.2", + "inBundle": true, + "license": "MIT", + "engines": { + "node": ">= 6" + } + }, + "node_modules/npm/node_modules/abbrev": { + "version": "1.1.1", + "inBundle": true, + "license": "ISC" + }, + "node_modules/npm/node_modules/agent-base": { + "version": "6.0.2", + "inBundle": true, + "license": "MIT", + "dependencies": { + "debug": "4" + }, + "engines": { + "node": ">= 6.0.0" + } + }, + "node_modules/npm/node_modules/agentkeepalive": { + "version": "4.1.4", + "inBundle": true, + "license": "MIT", + "dependencies": { + "debug": "^4.1.0", + "depd": "^1.1.2", + "humanize-ms": "^1.2.1" + }, + "engines": { + "node": ">= 8.0.0" + } + }, + "node_modules/npm/node_modules/aggregate-error": { + "version": "3.1.0", + "inBundle": true, + "license": "MIT", + "dependencies": { + "clean-stack": "^2.0.0", + "indent-string": "^4.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/npm/node_modules/ajv": { + "version": "6.12.6", + "inBundle": true, + "license": "MIT", + "dependencies": { + "fast-deep-equal": "^3.1.1", + "fast-json-stable-stringify": "^2.0.0", + "json-schema-traverse": "^0.4.1", + "uri-js": "^4.2.2" + }, + "funding": { + "type": "github", + "url": "https://github.com/sponsors/epoberezkin" + } + }, + "node_modules/npm/node_modules/ansi-regex": { + "version": "2.1.1", + "inBundle": true, + "license": "MIT", + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/npm/node_modules/ansi-styles": { + "version": "4.3.0", + "inBundle": true, + "license": "MIT", + "dependencies": { + "color-convert": "^2.0.1" + }, + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/chalk/ansi-styles?sponsor=1" + } + }, + "node_modules/npm/node_modules/ansicolors": { + "version": "0.3.2", + "inBundle": true, + "license": "MIT" + }, + "node_modules/npm/node_modules/ansistyles": { + "version": "0.1.3", + "inBundle": true, + "license": "MIT" + }, + "node_modules/npm/node_modules/aproba": { + "version": "2.0.0", + "inBundle": true, + "license": "ISC" + }, + "node_modules/npm/node_modules/archy": { + "version": "1.0.0", + "inBundle": true, + "license": "MIT" + }, + "node_modules/npm/node_modules/are-we-there-yet": { + "version": "1.1.6", + "inBundle": true, + "license": "ISC", + "dependencies": { + "delegates": "^1.0.0", + "readable-stream": "^3.6.0" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/npm/node_modules/asap": { + "version": "2.0.6", + "inBundle": true, + "license": "MIT" + }, + "node_modules/npm/node_modules/asn1": { + "version": "0.2.4", + "inBundle": true, + "license": "MIT", + "dependencies": { + "safer-buffer": "~2.1.0" + } + }, + "node_modules/npm/node_modules/assert-plus": { + "version": "1.0.0", + "inBundle": true, + "license": "MIT", + "engines": { + "node": ">=0.8" + } + }, + "node_modules/npm/node_modules/asynckit": { + "version": "0.4.0", + "inBundle": true, + "license": "MIT" + }, + "node_modules/npm/node_modules/aws-sign2": { + "version": "0.7.0", + "inBundle": true, + "license": "Apache-2.0", + "engines": { + "node": "*" + } + }, + "node_modules/npm/node_modules/aws4": { + "version": "1.11.0", + "inBundle": true, + "license": "MIT" + }, + "node_modules/npm/node_modules/balanced-match": { + "version": "1.0.2", + "inBundle": true, + "license": "MIT" + }, + "node_modules/npm/node_modules/bcrypt-pbkdf": { + "version": "1.0.2", + "inBundle": true, + "license": "BSD-3-Clause", + "dependencies": { + "tweetnacl": "^0.14.3" + } + }, + "node_modules/npm/node_modules/bin-links": { + "version": "2.2.1", + "inBundle": true, + "license": "ISC", + "dependencies": { + "cmd-shim": "^4.0.1", + "mkdirp": "^1.0.3", + "npm-normalize-package-bin": "^1.0.0", + "read-cmd-shim": "^2.0.0", + "rimraf": "^3.0.0", + "write-file-atomic": "^3.0.3" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/npm/node_modules/binary-extensions": { + "version": "2.2.0", + "inBundle": true, + "license": "MIT", + "engines": { + "node": ">=8" + } + }, + "node_modules/npm/node_modules/brace-expansion": { + "version": "1.1.11", + "inBundle": true, + "license": "MIT", + "dependencies": { + "balanced-match": "^1.0.0", + "concat-map": "0.0.1" + } + }, + "node_modules/npm/node_modules/builtins": { + "version": "1.0.3", + "inBundle": true, + "license": "MIT" + }, + "node_modules/npm/node_modules/cacache": { + "version": "15.3.0", + "inBundle": true, + "license": "ISC", + "dependencies": { + "@npmcli/fs": "^1.0.0", + "@npmcli/move-file": "^1.0.1", + "chownr": "^2.0.0", + "fs-minipass": "^2.0.0", + "glob": "^7.1.4", + "infer-owner": "^1.0.4", + "lru-cache": "^6.0.0", + "minipass": "^3.1.1", + "minipass-collect": "^1.0.2", + "minipass-flush": "^1.0.5", + "minipass-pipeline": "^1.2.2", + "mkdirp": "^1.0.3", + "p-map": "^4.0.0", + "promise-inflight": "^1.0.1", + "rimraf": "^3.0.2", + "ssri": "^8.0.1", + "tar": "^6.0.2", + "unique-filename": "^1.1.1" + }, + "engines": { + "node": ">= 10" + } + }, + "node_modules/npm/node_modules/caseless": { + "version": "0.12.0", + "inBundle": true, + "license": "Apache-2.0" + }, + "node_modules/npm/node_modules/chalk": { + "version": "4.1.2", + "inBundle": true, + "license": "MIT", + "dependencies": { + "ansi-styles": "^4.1.0", + "supports-color": "^7.1.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/chalk/chalk?sponsor=1" + } + }, + "node_modules/npm/node_modules/chownr": { + "version": "2.0.0", + "inBundle": true, + "license": "ISC", + "engines": { + "node": ">=10" + } + }, + "node_modules/npm/node_modules/cidr-regex": { + "version": "3.1.1", + "inBundle": true, + "license": "BSD-2-Clause", + "dependencies": { + "ip-regex": "^4.1.0" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/npm/node_modules/clean-stack": { + "version": "2.2.0", + "inBundle": true, + "license": "MIT", + "engines": { + "node": ">=6" + } + }, + "node_modules/npm/node_modules/cli-columns": { + "version": "3.1.2", + "inBundle": true, + "license": "MIT", + "dependencies": { + "string-width": "^2.0.0", + "strip-ansi": "^3.0.1" + }, + "engines": { + "node": ">= 4" + } + }, + "node_modules/npm/node_modules/cli-table3": { + "version": "0.6.0", + "inBundle": true, + "license": "MIT", + "dependencies": { + "object-assign": "^4.1.0", + "string-width": "^4.2.0" + }, + "engines": { + "node": "10.* || >= 12.*" + }, + "optionalDependencies": { + "colors": "^1.1.2" + } + }, + "node_modules/npm/node_modules/cli-table3/node_modules/ansi-regex": { + "version": "5.0.0", + "inBundle": true, + "license": "MIT", + "engines": { + "node": ">=8" + } + }, + "node_modules/npm/node_modules/cli-table3/node_modules/is-fullwidth-code-point": { + "version": "3.0.0", + "inBundle": true, + "license": "MIT", + "engines": { + "node": ">=8" + } + }, + "node_modules/npm/node_modules/cli-table3/node_modules/string-width": { + "version": "4.2.2", + "inBundle": true, + "license": "MIT", + "dependencies": { + "emoji-regex": "^8.0.0", + "is-fullwidth-code-point": "^3.0.0", + "strip-ansi": "^6.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/npm/node_modules/cli-table3/node_modules/strip-ansi": { + "version": "6.0.0", + "inBundle": true, + "license": "MIT", + "dependencies": { + "ansi-regex": "^5.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/npm/node_modules/clone": { + "version": "1.0.4", + "inBundle": true, + "license": "MIT", + "engines": { + "node": ">=0.8" + } + }, + "node_modules/npm/node_modules/cmd-shim": { + "version": "4.1.0", + "inBundle": true, + "license": "ISC", + "dependencies": { + "mkdirp-infer-owner": "^2.0.0" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/npm/node_modules/code-point-at": { + "version": "1.1.0", + "inBundle": true, + "license": "MIT", + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/npm/node_modules/color-convert": { + "version": "2.0.1", + "inBundle": true, + "license": "MIT", + "dependencies": { + "color-name": "~1.1.4" + }, + "engines": { + "node": ">=7.0.0" + } + }, + "node_modules/npm/node_modules/color-name": { + "version": "1.1.4", + "inBundle": true, + "license": "MIT" + }, + "node_modules/npm/node_modules/color-support": { + "version": "1.1.3", + "inBundle": true, + "license": "ISC", + "bin": { + "color-support": "bin.js" + } + }, + "node_modules/npm/node_modules/colors": { + "version": "1.4.0", + "inBundle": true, + "license": "MIT", + "optional": true, + "engines": { + "node": ">=0.1.90" + } + }, + "node_modules/npm/node_modules/columnify": { + "version": "1.5.4", + "inBundle": true, + "license": "MIT", + "dependencies": { + "strip-ansi": "^3.0.0", + "wcwidth": "^1.0.0" + } + }, + "node_modules/npm/node_modules/combined-stream": { + "version": "1.0.8", + "inBundle": true, + "license": "MIT", + "dependencies": { + "delayed-stream": "~1.0.0" + }, + "engines": { + "node": ">= 0.8" + } + }, + "node_modules/npm/node_modules/common-ancestor-path": { + "version": "1.0.1", + "inBundle": true, + "license": "ISC" + }, + "node_modules/npm/node_modules/concat-map": { + "version": "0.0.1", + "inBundle": true, + "license": "MIT" + }, + "node_modules/npm/node_modules/console-control-strings": { + "version": "1.1.0", + "inBundle": true, + "license": "ISC" + }, + "node_modules/npm/node_modules/core-util-is": { + "version": "1.0.2", + "inBundle": true, + "license": "MIT" + }, + "node_modules/npm/node_modules/dashdash": { + "version": "1.14.1", + "inBundle": true, + "license": "MIT", + "dependencies": { + "assert-plus": "^1.0.0" + }, + "engines": { + "node": ">=0.10" + } + }, + "node_modules/npm/node_modules/debug": { + "version": "4.3.2", + "inBundle": true, + "license": "MIT", + "dependencies": { + "ms": "2.1.2" + }, + "engines": { + "node": ">=6.0" + }, + "peerDependenciesMeta": { + "supports-color": { + "optional": true + } + } + }, + "node_modules/npm/node_modules/debug/node_modules/ms": { + "version": "2.1.2", + "inBundle": true, + "license": "MIT" + }, + "node_modules/npm/node_modules/debuglog": { + "version": "1.0.1", + "inBundle": true, + "license": "MIT", + "engines": { + "node": "*" + } + }, + "node_modules/npm/node_modules/defaults": { + "version": "1.0.3", + "inBundle": true, + "license": "MIT", + "dependencies": { + "clone": "^1.0.2" + } + }, + "node_modules/npm/node_modules/delayed-stream": { + "version": "1.0.0", + "inBundle": true, + "license": "MIT", + "engines": { + "node": ">=0.4.0" + } + }, + "node_modules/npm/node_modules/delegates": { + "version": "1.0.0", + "inBundle": true, + "license": "MIT" + }, + "node_modules/npm/node_modules/depd": { + "version": "1.1.2", + "inBundle": true, + "license": "MIT", + "engines": { + "node": ">= 0.6" + } + }, + "node_modules/npm/node_modules/dezalgo": { + "version": "1.0.3", + "inBundle": true, + "license": "ISC", + "dependencies": { + "asap": "^2.0.0", + "wrappy": "1" + } + }, + "node_modules/npm/node_modules/diff": { + "version": "5.0.0", + "inBundle": true, + "license": "BSD-3-Clause", + "engines": { + "node": ">=0.3.1" + } + }, + "node_modules/npm/node_modules/ecc-jsbn": { + "version": "0.1.2", + "inBundle": true, + "license": "MIT", + "dependencies": { + "jsbn": "~0.1.0", + "safer-buffer": "^2.1.0" + } + }, + "node_modules/npm/node_modules/emoji-regex": { + "version": "8.0.0", + "inBundle": true, + "license": "MIT" + }, + "node_modules/npm/node_modules/encoding": { + "version": "0.1.13", + "inBundle": true, + "license": "MIT", + "optional": true, + "dependencies": { + "iconv-lite": "^0.6.2" + } + }, + "node_modules/npm/node_modules/env-paths": { + "version": "2.2.1", + "inBundle": true, + "license": "MIT", + "engines": { + "node": ">=6" + } + }, + "node_modules/npm/node_modules/err-code": { + "version": "2.0.3", + "inBundle": true, + "license": "MIT" + }, + "node_modules/npm/node_modules/extend": { + "version": "3.0.2", + "inBundle": true, + "license": "MIT" + }, + "node_modules/npm/node_modules/extsprintf": { + "version": "1.3.0", + "engines": [ + "node >=0.6.0" + ], + "inBundle": true, + "license": "MIT" + }, + "node_modules/npm/node_modules/fast-deep-equal": { + "version": "3.1.3", + "inBundle": true, + "license": "MIT" + }, + "node_modules/npm/node_modules/fast-json-stable-stringify": { + "version": "2.1.0", + "inBundle": true, + "license": "MIT" + }, + "node_modules/npm/node_modules/fastest-levenshtein": { + "version": "1.0.12", + "inBundle": true, + "license": "MIT" + }, + "node_modules/npm/node_modules/forever-agent": { + "version": "0.6.1", + "inBundle": true, + "license": "Apache-2.0", + "engines": { + "node": "*" + } + }, + "node_modules/npm/node_modules/fs-minipass": { + "version": "2.1.0", + "inBundle": true, + "license": "ISC", + "dependencies": { + "minipass": "^3.0.0" + }, + "engines": { + "node": ">= 8" + } + }, + "node_modules/npm/node_modules/fs.realpath": { + "version": "1.0.0", + "inBundle": true, + "license": "ISC" + }, + "node_modules/npm/node_modules/function-bind": { + "version": "1.1.1", + "inBundle": true, + "license": "MIT" + }, + "node_modules/npm/node_modules/gauge": { + "version": "3.0.1", + "inBundle": true, + "license": "ISC", + "dependencies": { + "aproba": "^1.0.3 || ^2.0.0", + "color-support": "^1.1.2", + "console-control-strings": "^1.0.0", + "has-unicode": "^2.0.1", + "object-assign": "^4.1.1", + "signal-exit": "^3.0.0", + "string-width": "^1.0.1 || ^2.0.0", + "strip-ansi": "^3.0.1 || ^4.0.0", + "wide-align": "^1.1.2" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/npm/node_modules/getpass": { + "version": "0.1.7", + "inBundle": true, + "license": "MIT", + "dependencies": { + "assert-plus": "^1.0.0" + } + }, + "node_modules/npm/node_modules/glob": { + "version": "7.2.0", + "inBundle": true, + "license": "ISC", + "dependencies": { + "fs.realpath": "^1.0.0", + "inflight": "^1.0.4", + "inherits": "2", + "minimatch": "^3.0.4", + "once": "^1.3.0", + "path-is-absolute": "^1.0.0" + }, + "engines": { + "node": "*" + }, + "funding": { + "url": "https://github.com/sponsors/isaacs" + } + }, + "node_modules/npm/node_modules/graceful-fs": { + "version": "4.2.8", + "inBundle": true, + "license": "ISC" + }, + "node_modules/npm/node_modules/har-schema": { + "version": "2.0.0", + "inBundle": true, + "license": "ISC", + "engines": { + "node": ">=4" + } + }, + "node_modules/npm/node_modules/har-validator": { + "version": "5.1.5", + "inBundle": true, + "license": "MIT", + "dependencies": { + "ajv": "^6.12.3", + "har-schema": "^2.0.0" + }, + "engines": { + "node": ">=6" + } + }, + "node_modules/npm/node_modules/has": { + "version": "1.0.3", + "inBundle": true, + "license": "MIT", + "dependencies": { + "function-bind": "^1.1.1" + }, + "engines": { + "node": ">= 0.4.0" + } + }, + "node_modules/npm/node_modules/has-flag": { + "version": "4.0.0", + "inBundle": true, + "license": "MIT", + "engines": { + "node": ">=8" + } + }, + "node_modules/npm/node_modules/has-unicode": { + "version": "2.0.1", + "inBundle": true, + "license": "ISC" + }, + "node_modules/npm/node_modules/hosted-git-info": { + "version": "4.0.2", + "inBundle": true, + "license": "ISC", + "dependencies": { + "lru-cache": "^6.0.0" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/npm/node_modules/http-cache-semantics": { + "version": "4.1.0", + "inBundle": true, + "license": "BSD-2-Clause" + }, + "node_modules/npm/node_modules/http-proxy-agent": { + "version": "4.0.1", + "inBundle": true, + "license": "MIT", + "dependencies": { + "@tootallnate/once": "1", + "agent-base": "6", + "debug": "4" + }, + "engines": { + "node": ">= 6" + } + }, + "node_modules/npm/node_modules/http-signature": { + "version": "1.2.0", + "inBundle": true, + "license": "MIT", + "dependencies": { + "assert-plus": "^1.0.0", + "jsprim": "^1.2.2", + "sshpk": "^1.7.0" + }, + "engines": { + "node": ">=0.8", + "npm": ">=1.3.7" + } + }, + "node_modules/npm/node_modules/https-proxy-agent": { + "version": "5.0.0", + "inBundle": true, + "license": "MIT", + "dependencies": { + "agent-base": "6", + "debug": "4" + }, + "engines": { + "node": ">= 6" + } + }, + "node_modules/npm/node_modules/humanize-ms": { + "version": "1.2.1", + "inBundle": true, + "license": "MIT", + "dependencies": { + "ms": "^2.0.0" + } + }, + "node_modules/npm/node_modules/iconv-lite": { + "version": "0.6.3", + "inBundle": true, + "license": "MIT", + "optional": true, + "dependencies": { + "safer-buffer": ">= 2.1.2 < 3.0.0" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/npm/node_modules/ignore-walk": { + "version": "3.0.4", + "inBundle": true, + "license": "ISC", + "dependencies": { + "minimatch": "^3.0.4" + } + }, + "node_modules/npm/node_modules/imurmurhash": { + "version": "0.1.4", + "inBundle": true, + "license": "MIT", + "engines": { + "node": ">=0.8.19" + } + }, + "node_modules/npm/node_modules/indent-string": { + "version": "4.0.0", + "inBundle": true, + "license": "MIT", + "engines": { + "node": ">=8" + } + }, + "node_modules/npm/node_modules/infer-owner": { + "version": "1.0.4", + "inBundle": true, + "license": "ISC" + }, + "node_modules/npm/node_modules/inflight": { + "version": "1.0.6", + "inBundle": true, + "license": "ISC", + "dependencies": { + "once": "^1.3.0", + "wrappy": "1" + } + }, + "node_modules/npm/node_modules/inherits": { + "version": "2.0.4", + "inBundle": true, + "license": "ISC" + }, + "node_modules/npm/node_modules/ini": { + "version": "2.0.0", + "inBundle": true, + "license": "ISC", + "engines": { + "node": ">=10" + } + }, + "node_modules/npm/node_modules/init-package-json": { + "version": "2.0.5", + "inBundle": true, + "license": "ISC", + "dependencies": { + "npm-package-arg": "^8.1.5", + "promzard": "^0.3.0", + "read": "~1.0.1", + "read-package-json": "^4.1.1", + "semver": "^7.3.5", + "validate-npm-package-license": "^3.0.4", + "validate-npm-package-name": "^3.0.0" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/npm/node_modules/ip": { + "version": "1.1.5", + "inBundle": true, + "license": "MIT" + }, + "node_modules/npm/node_modules/ip-regex": { + "version": "4.3.0", + "inBundle": true, + "license": "MIT", + "engines": { + "node": ">=8" + } + }, + "node_modules/npm/node_modules/is-cidr": { + "version": "4.0.2", + "inBundle": true, + "license": "BSD-2-Clause", + "dependencies": { + "cidr-regex": "^3.1.1" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/npm/node_modules/is-core-module": { + "version": "2.7.0", + "inBundle": true, + "license": "MIT", + "dependencies": { + "has": "^1.0.3" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/npm/node_modules/is-fullwidth-code-point": { + "version": "2.0.0", + "inBundle": true, + "license": "MIT", + "engines": { + "node": ">=4" + } + }, + "node_modules/npm/node_modules/is-lambda": { + "version": "1.0.1", + "inBundle": true, + "license": "MIT" + }, + "node_modules/npm/node_modules/is-typedarray": { + "version": "1.0.0", + "inBundle": true, + "license": "MIT" + }, + "node_modules/npm/node_modules/isexe": { + "version": "2.0.0", + "inBundle": true, + "license": "ISC" + }, + "node_modules/npm/node_modules/isstream": { + "version": "0.1.2", + "inBundle": true, + "license": "MIT" + }, + "node_modules/npm/node_modules/jsbn": { + "version": "0.1.1", + "inBundle": true, + "license": "MIT" + }, + "node_modules/npm/node_modules/json-parse-even-better-errors": { + "version": "2.3.1", + "inBundle": true, + "license": "MIT" + }, + "node_modules/npm/node_modules/json-schema": { + "version": "0.2.3", + "inBundle": true + }, + "node_modules/npm/node_modules/json-schema-traverse": { + "version": "0.4.1", + "inBundle": true, + "license": "MIT" + }, + "node_modules/npm/node_modules/json-stringify-nice": { + "version": "1.1.4", + "inBundle": true, + "license": "ISC", + "funding": { + "url": "https://github.com/sponsors/isaacs" + } + }, + "node_modules/npm/node_modules/json-stringify-safe": { + "version": "5.0.1", + "inBundle": true, + "license": "ISC" + }, + "node_modules/npm/node_modules/jsonparse": { + "version": "1.3.1", + "engines": [ + "node >= 0.2.0" + ], + "inBundle": true, + "license": "MIT" + }, + "node_modules/npm/node_modules/jsprim": { + "version": "1.4.1", + "engines": [ + "node >=0.6.0" + ], + "inBundle": true, + "license": "MIT", + "dependencies": { + "assert-plus": "1.0.0", + "extsprintf": "1.3.0", + "json-schema": "0.2.3", + "verror": "1.10.0" + } + }, + "node_modules/npm/node_modules/just-diff": { + "version": "3.1.1", + "inBundle": true, + "license": "MIT" + }, + "node_modules/npm/node_modules/just-diff-apply": { + "version": "3.0.0", + "inBundle": true, + "license": "MIT" + }, + "node_modules/npm/node_modules/libnpmaccess": { + "version": "4.0.3", + "inBundle": true, + "license": "ISC", + "dependencies": { + "aproba": "^2.0.0", + "minipass": "^3.1.1", + "npm-package-arg": "^8.1.2", + "npm-registry-fetch": "^11.0.0" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/npm/node_modules/libnpmdiff": { + "version": "2.0.4", + "inBundle": true, + "license": "ISC", + "dependencies": { + "@npmcli/disparity-colors": "^1.0.1", + "@npmcli/installed-package-contents": "^1.0.7", + "binary-extensions": "^2.2.0", + "diff": "^5.0.0", + "minimatch": "^3.0.4", + "npm-package-arg": "^8.1.4", + "pacote": "^11.3.4", + "tar": "^6.1.0" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/npm/node_modules/libnpmexec": { + "version": "2.0.1", + "inBundle": true, + "license": "ISC", + "dependencies": { + "@npmcli/arborist": "^2.3.0", + "@npmcli/ci-detect": "^1.3.0", + "@npmcli/run-script": "^1.8.4", + "chalk": "^4.1.0", + "mkdirp-infer-owner": "^2.0.0", + "npm-package-arg": "^8.1.2", + "pacote": "^11.3.1", + "proc-log": "^1.0.0", + "read": "^1.0.7", + "read-package-json-fast": "^2.0.2", + "walk-up-path": "^1.0.0" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/npm/node_modules/libnpmfund": { + "version": "1.1.0", + "inBundle": true, + "license": "ISC", + "dependencies": { + "@npmcli/arborist": "^2.5.0" + } + }, + "node_modules/npm/node_modules/libnpmhook": { + "version": "6.0.3", + "inBundle": true, + "license": "ISC", + "dependencies": { + "aproba": "^2.0.0", + "npm-registry-fetch": "^11.0.0" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/npm/node_modules/libnpmorg": { + "version": "2.0.3", + "inBundle": true, + "license": "ISC", + "dependencies": { + "aproba": "^2.0.0", + "npm-registry-fetch": "^11.0.0" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/npm/node_modules/libnpmpack": { + "version": "2.0.1", + "inBundle": true, + "license": "ISC", + "dependencies": { + "@npmcli/run-script": "^1.8.3", + "npm-package-arg": "^8.1.0", + "pacote": "^11.2.6" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/npm/node_modules/libnpmpublish": { + "version": "4.0.2", + "inBundle": true, + "license": "ISC", + "dependencies": { + "normalize-package-data": "^3.0.2", + "npm-package-arg": "^8.1.2", + "npm-registry-fetch": "^11.0.0", + "semver": "^7.1.3", + "ssri": "^8.0.1" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/npm/node_modules/libnpmsearch": { + "version": "3.1.2", + "inBundle": true, + "license": "ISC", + "dependencies": { + "npm-registry-fetch": "^11.0.0" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/npm/node_modules/libnpmteam": { + "version": "2.0.4", + "inBundle": true, + "license": "ISC", + "dependencies": { + "aproba": "^2.0.0", + "npm-registry-fetch": "^11.0.0" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/npm/node_modules/libnpmversion": { + "version": "1.2.1", + "inBundle": true, + "license": "ISC", + "dependencies": { + "@npmcli/git": "^2.0.7", + "@npmcli/run-script": "^1.8.4", + "json-parse-even-better-errors": "^2.3.1", + "semver": "^7.3.5", + "stringify-package": "^1.0.1" + } + }, + "node_modules/npm/node_modules/lru-cache": { + "version": "6.0.0", + "inBundle": true, + "license": "ISC", + "dependencies": { + "yallist": "^4.0.0" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/npm/node_modules/make-fetch-happen": { + "version": "9.1.0", + "inBundle": true, + "license": "ISC", + "dependencies": { + "agentkeepalive": "^4.1.3", + "cacache": "^15.2.0", + "http-cache-semantics": "^4.1.0", + "http-proxy-agent": "^4.0.1", + "https-proxy-agent": "^5.0.0", + "is-lambda": "^1.0.1", + "lru-cache": "^6.0.0", + "minipass": "^3.1.3", + "minipass-collect": "^1.0.2", + "minipass-fetch": "^1.3.2", + "minipass-flush": "^1.0.5", + "minipass-pipeline": "^1.2.4", + "negotiator": "^0.6.2", + "promise-retry": "^2.0.1", + "socks-proxy-agent": "^6.0.0", + "ssri": "^8.0.0" + }, + "engines": { + "node": ">= 10" + } + }, + "node_modules/npm/node_modules/mime-db": { + "version": "1.49.0", + "inBundle": true, + "license": "MIT", + "engines": { + "node": ">= 0.6" + } + }, + "node_modules/npm/node_modules/mime-types": { + "version": "2.1.32", + "inBundle": true, + "license": "MIT", + "dependencies": { + "mime-db": "1.49.0" + }, + "engines": { + "node": ">= 0.6" + } + }, + "node_modules/npm/node_modules/minimatch": { + "version": "3.0.4", + "inBundle": true, + "license": "ISC", + "dependencies": { + "brace-expansion": "^1.1.7" + }, + "engines": { + "node": "*" + } + }, + "node_modules/npm/node_modules/minipass": { + "version": "3.1.5", + "inBundle": true, + "license": "ISC", + "dependencies": { + "yallist": "^4.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/npm/node_modules/minipass-collect": { + "version": "1.0.2", + "inBundle": true, + "license": "ISC", + "dependencies": { + "minipass": "^3.0.0" + }, + "engines": { + "node": ">= 8" + } + }, + "node_modules/npm/node_modules/minipass-fetch": { + "version": "1.4.1", + "inBundle": true, + "license": "MIT", + "dependencies": { + "minipass": "^3.1.0", + "minipass-sized": "^1.0.3", + "minizlib": "^2.0.0" + }, + "engines": { + "node": ">=8" + }, + "optionalDependencies": { + "encoding": "^0.1.12" + } + }, + "node_modules/npm/node_modules/minipass-flush": { + "version": "1.0.5", + "inBundle": true, + "license": "ISC", + "dependencies": { + "minipass": "^3.0.0" + }, + "engines": { + "node": ">= 8" + } + }, + "node_modules/npm/node_modules/minipass-json-stream": { + "version": "1.0.1", + "inBundle": true, + "license": "MIT", + "dependencies": { + "jsonparse": "^1.3.1", + "minipass": "^3.0.0" + } + }, + "node_modules/npm/node_modules/minipass-pipeline": { + "version": "1.2.4", + "inBundle": true, + "license": "ISC", + "dependencies": { + "minipass": "^3.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/npm/node_modules/minipass-sized": { + "version": "1.0.3", + "inBundle": true, + "license": "ISC", + "dependencies": { + "minipass": "^3.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/npm/node_modules/minizlib": { + "version": "2.1.2", + "inBundle": true, + "license": "MIT", + "dependencies": { + "minipass": "^3.0.0", + "yallist": "^4.0.0" + }, + "engines": { + "node": ">= 8" + } + }, + "node_modules/npm/node_modules/mkdirp": { + "version": "1.0.4", + "inBundle": true, + "license": "MIT", + "bin": { + "mkdirp": "bin/cmd.js" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/npm/node_modules/mkdirp-infer-owner": { + "version": "2.0.0", + "inBundle": true, + "license": "ISC", + "dependencies": { + "chownr": "^2.0.0", + "infer-owner": "^1.0.4", + "mkdirp": "^1.0.3" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/npm/node_modules/ms": { + "version": "2.1.3", + "inBundle": true, + "license": "MIT" + }, + "node_modules/npm/node_modules/mute-stream": { + "version": "0.0.8", + "inBundle": true, + "license": "ISC" + }, + "node_modules/npm/node_modules/negotiator": { + "version": "0.6.2", + "inBundle": true, + "license": "MIT", + "engines": { + "node": ">= 0.6" + } + }, + "node_modules/npm/node_modules/node-gyp": { + "version": "7.1.2", + "inBundle": true, + "license": "MIT", + "dependencies": { + "env-paths": "^2.2.0", + "glob": "^7.1.4", + "graceful-fs": "^4.2.3", + "nopt": "^5.0.0", + "npmlog": "^4.1.2", + "request": "^2.88.2", + "rimraf": "^3.0.2", + "semver": "^7.3.2", + "tar": "^6.0.2", + "which": "^2.0.2" + }, + "bin": { + "node-gyp": "bin/node-gyp.js" + }, + "engines": { + "node": ">= 10.12.0" + } + }, + "node_modules/npm/node_modules/node-gyp/node_modules/aproba": { + "version": "1.2.0", + "inBundle": true, + "license": "ISC" + }, + "node_modules/npm/node_modules/node-gyp/node_modules/gauge": { + "version": "2.7.4", + "inBundle": true, + "license": "ISC", + "dependencies": { + "aproba": "^1.0.3", + "console-control-strings": "^1.0.0", + "has-unicode": "^2.0.0", + "object-assign": "^4.1.0", + "signal-exit": "^3.0.0", + "string-width": "^1.0.1", + "strip-ansi": "^3.0.1", + "wide-align": "^1.1.0" + } + }, + "node_modules/npm/node_modules/node-gyp/node_modules/is-fullwidth-code-point": { + "version": "1.0.0", + "inBundle": true, + "license": "MIT", + "dependencies": { + "number-is-nan": "^1.0.0" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/npm/node_modules/node-gyp/node_modules/npmlog": { + "version": "4.1.2", + "inBundle": true, + "license": "ISC", + "dependencies": { + "are-we-there-yet": "~1.1.2", + "console-control-strings": "~1.1.0", + "gauge": "~2.7.3", + "set-blocking": "~2.0.0" + } + }, + "node_modules/npm/node_modules/node-gyp/node_modules/string-width": { + "version": "1.0.2", + "inBundle": true, + "license": "MIT", + "dependencies": { + "code-point-at": "^1.0.0", + "is-fullwidth-code-point": "^1.0.0", + "strip-ansi": "^3.0.0" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/npm/node_modules/nopt": { + "version": "5.0.0", + "inBundle": true, + "license": "ISC", + "dependencies": { + "abbrev": "1" + }, + "bin": { + "nopt": "bin/nopt.js" + }, + "engines": { + "node": ">=6" + } + }, + "node_modules/npm/node_modules/normalize-package-data": { + "version": "3.0.3", + "inBundle": true, + "license": "BSD-2-Clause", + "dependencies": { + "hosted-git-info": "^4.0.1", + "is-core-module": "^2.5.0", + "semver": "^7.3.4", + "validate-npm-package-license": "^3.0.1" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/npm/node_modules/npm-audit-report": { + "version": "2.1.5", + "inBundle": true, + "license": "ISC", + "dependencies": { + "chalk": "^4.0.0" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/npm/node_modules/npm-bundled": { + "version": "1.1.2", + "inBundle": true, + "license": "ISC", + "dependencies": { + "npm-normalize-package-bin": "^1.0.1" + } + }, + "node_modules/npm/node_modules/npm-install-checks": { + "version": "4.0.0", + "inBundle": true, + "license": "BSD-2-Clause", + "dependencies": { + "semver": "^7.1.1" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/npm/node_modules/npm-normalize-package-bin": { + "version": "1.0.1", + "inBundle": true, + "license": "ISC" + }, + "node_modules/npm/node_modules/npm-package-arg": { + "version": "8.1.5", + "inBundle": true, + "license": "ISC", + "dependencies": { + "hosted-git-info": "^4.0.1", + "semver": "^7.3.4", + "validate-npm-package-name": "^3.0.0" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/npm/node_modules/npm-packlist": { + "version": "2.2.2", + "inBundle": true, + "license": "ISC", + "dependencies": { + "glob": "^7.1.6", + "ignore-walk": "^3.0.3", + "npm-bundled": "^1.1.1", + "npm-normalize-package-bin": "^1.0.1" + }, + "bin": { + "npm-packlist": "bin/index.js" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/npm/node_modules/npm-pick-manifest": { + "version": "6.1.1", + "inBundle": true, + "license": "ISC", + "dependencies": { + "npm-install-checks": "^4.0.0", + "npm-normalize-package-bin": "^1.0.1", + "npm-package-arg": "^8.1.2", + "semver": "^7.3.4" + } + }, + "node_modules/npm/node_modules/npm-profile": { + "version": "5.0.4", + "inBundle": true, + "license": "ISC", + "dependencies": { + "npm-registry-fetch": "^11.0.0" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/npm/node_modules/npm-registry-fetch": { + "version": "11.0.0", + "inBundle": true, + "license": "ISC", + "dependencies": { + "make-fetch-happen": "^9.0.1", + "minipass": "^3.1.3", + "minipass-fetch": "^1.3.0", + "minipass-json-stream": "^1.0.1", + "minizlib": "^2.0.0", + "npm-package-arg": "^8.0.0" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/npm/node_modules/npm-user-validate": { + "version": "1.0.1", + "inBundle": true, + "license": "BSD-2-Clause" + }, + "node_modules/npm/node_modules/npmlog": { + "version": "5.0.1", + "inBundle": true, + "license": "ISC", + "dependencies": { + "are-we-there-yet": "^2.0.0", + "console-control-strings": "^1.1.0", + "gauge": "^3.0.0", + "set-blocking": "^2.0.0" + } + }, + "node_modules/npm/node_modules/npmlog/node_modules/are-we-there-yet": { + "version": "2.0.0", + "inBundle": true, + "license": "ISC", + "dependencies": { + "delegates": "^1.0.0", + "readable-stream": "^3.6.0" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/npm/node_modules/number-is-nan": { + "version": "1.0.1", + "inBundle": true, + "license": "MIT", + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/npm/node_modules/oauth-sign": { + "version": "0.9.0", + "inBundle": true, + "license": "Apache-2.0", + "engines": { + "node": "*" + } + }, + "node_modules/npm/node_modules/object-assign": { + "version": "4.1.1", + "inBundle": true, + "license": "MIT", + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/npm/node_modules/once": { + "version": "1.4.0", + "inBundle": true, + "license": "ISC", + "dependencies": { + "wrappy": "1" + } + }, + "node_modules/npm/node_modules/opener": { + "version": "1.5.2", + "inBundle": true, + "license": "(WTFPL OR MIT)", + "bin": { + "opener": "bin/opener-bin.js" + } + }, + "node_modules/npm/node_modules/p-map": { + "version": "4.0.0", + "inBundle": true, + "license": "MIT", + "dependencies": { + "aggregate-error": "^3.0.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/npm/node_modules/pacote": { + "version": "11.3.5", + "inBundle": true, + "license": "ISC", + "dependencies": { + "@npmcli/git": "^2.1.0", + "@npmcli/installed-package-contents": "^1.0.6", + "@npmcli/promise-spawn": "^1.2.0", + "@npmcli/run-script": "^1.8.2", + "cacache": "^15.0.5", + "chownr": "^2.0.0", + "fs-minipass": "^2.1.0", + "infer-owner": "^1.0.4", + "minipass": "^3.1.3", + "mkdirp": "^1.0.3", + "npm-package-arg": "^8.0.1", + "npm-packlist": "^2.1.4", + "npm-pick-manifest": "^6.0.0", + "npm-registry-fetch": "^11.0.0", + "promise-retry": "^2.0.1", + "read-package-json-fast": "^2.0.1", + "rimraf": "^3.0.2", + "ssri": "^8.0.1", + "tar": "^6.1.0" + }, + "bin": { + "pacote": "lib/bin.js" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/npm/node_modules/parse-conflict-json": { + "version": "1.1.1", + "inBundle": true, + "license": "ISC", + "dependencies": { + "json-parse-even-better-errors": "^2.3.0", + "just-diff": "^3.0.1", + "just-diff-apply": "^3.0.0" + } + }, + "node_modules/npm/node_modules/path-is-absolute": { + "version": "1.0.1", + "inBundle": true, + "license": "MIT", + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/npm/node_modules/performance-now": { + "version": "2.1.0", + "inBundle": true, + "license": "MIT" + }, + "node_modules/npm/node_modules/proc-log": { + "version": "1.0.0", + "inBundle": true, + "license": "ISC" + }, + "node_modules/npm/node_modules/promise-all-reject-late": { + "version": "1.0.1", + "inBundle": true, + "license": "ISC", + "funding": { + "url": "https://github.com/sponsors/isaacs" + } + }, + "node_modules/npm/node_modules/promise-call-limit": { + "version": "1.0.1", + "inBundle": true, + "license": "ISC", + "funding": { + "url": "https://github.com/sponsors/isaacs" + } + }, + "node_modules/npm/node_modules/promise-inflight": { + "version": "1.0.1", + "inBundle": true, + "license": "ISC" + }, + "node_modules/npm/node_modules/promise-retry": { + "version": "2.0.1", + "inBundle": true, + "license": "MIT", + "dependencies": { + "err-code": "^2.0.2", + "retry": "^0.12.0" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/npm/node_modules/promzard": { + "version": "0.3.0", + "inBundle": true, + "license": "ISC", + "dependencies": { + "read": "1" + } + }, + "node_modules/npm/node_modules/psl": { + "version": "1.8.0", + "inBundle": true, + "license": "MIT" + }, + "node_modules/npm/node_modules/punycode": { + "version": "2.1.1", + "inBundle": true, + "license": "MIT", + "engines": { + "node": ">=6" + } + }, + "node_modules/npm/node_modules/qrcode-terminal": { + "version": "0.12.0", + "inBundle": true, + "bin": { + "qrcode-terminal": "bin/qrcode-terminal.js" + } + }, + "node_modules/npm/node_modules/qs": { + "version": "6.5.2", + "inBundle": true, + "license": "BSD-3-Clause", + "engines": { + "node": ">=0.6" + } + }, + "node_modules/npm/node_modules/read": { + "version": "1.0.7", + "inBundle": true, + "license": "ISC", + "dependencies": { + "mute-stream": "~0.0.4" + }, + "engines": { + "node": ">=0.8" + } + }, + "node_modules/npm/node_modules/read-cmd-shim": { + "version": "2.0.0", + "inBundle": true, + "license": "ISC" + }, + "node_modules/npm/node_modules/read-package-json": { + "version": "4.1.1", + "inBundle": true, + "license": "ISC", + "dependencies": { + "glob": "^7.1.1", + "json-parse-even-better-errors": "^2.3.0", + "normalize-package-data": "^3.0.0", + "npm-normalize-package-bin": "^1.0.0" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/npm/node_modules/read-package-json-fast": { + "version": "2.0.3", + "inBundle": true, + "license": "ISC", + "dependencies": { + "json-parse-even-better-errors": "^2.3.0", + "npm-normalize-package-bin": "^1.0.1" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/npm/node_modules/readable-stream": { + "version": "3.6.0", + "inBundle": true, + "license": "MIT", + "dependencies": { + "inherits": "^2.0.3", + "string_decoder": "^1.1.1", + "util-deprecate": "^1.0.1" + }, + "engines": { + "node": ">= 6" + } + }, + "node_modules/npm/node_modules/readdir-scoped-modules": { + "version": "1.1.0", + "inBundle": true, + "license": "ISC", + "dependencies": { + "debuglog": "^1.0.1", + "dezalgo": "^1.0.0", + "graceful-fs": "^4.1.2", + "once": "^1.3.0" + } + }, + "node_modules/npm/node_modules/request": { + "version": "2.88.2", + "inBundle": true, + "license": "Apache-2.0", + "dependencies": { + "aws-sign2": "~0.7.0", + "aws4": "^1.8.0", + "caseless": "~0.12.0", + "combined-stream": "~1.0.6", + "extend": "~3.0.2", + "forever-agent": "~0.6.1", + "form-data": "~2.3.2", + "har-validator": "~5.1.3", + "http-signature": "~1.2.0", + "is-typedarray": "~1.0.0", + "isstream": "~0.1.2", + "json-stringify-safe": "~5.0.1", + "mime-types": "~2.1.19", + "oauth-sign": "~0.9.0", + "performance-now": "^2.1.0", + "qs": "~6.5.2", + "safe-buffer": "^5.1.2", + "tough-cookie": "~2.5.0", + "tunnel-agent": "^0.6.0", + "uuid": "^3.3.2" + }, + "engines": { + "node": ">= 6" + } + }, + "node_modules/npm/node_modules/request/node_modules/form-data": { + "version": "2.3.3", + "inBundle": true, + "license": "MIT", + "dependencies": { + "asynckit": "^0.4.0", + "combined-stream": "^1.0.6", + "mime-types": "^2.1.12" + }, + "engines": { + "node": ">= 0.12" + } + }, + "node_modules/npm/node_modules/request/node_modules/tough-cookie": { + "version": "2.5.0", + "inBundle": true, + "license": "BSD-3-Clause", + "dependencies": { + "psl": "^1.1.28", + "punycode": "^2.1.1" + }, + "engines": { + "node": ">=0.8" + } + }, + "node_modules/npm/node_modules/retry": { + "version": "0.12.0", + "inBundle": true, + "license": "MIT", + "engines": { + "node": ">= 4" + } + }, + "node_modules/npm/node_modules/rimraf": { + "version": "3.0.2", + "inBundle": true, + "license": "ISC", + "dependencies": { + "glob": "^7.1.3" + }, + "bin": { + "rimraf": "bin.js" + }, + "funding": { + "url": "https://github.com/sponsors/isaacs" + } + }, + "node_modules/npm/node_modules/safe-buffer": { + "version": "5.2.1", + "funding": [ + { + "type": "github", + "url": "https://github.com/sponsors/feross" + }, + { + "type": "patreon", + "url": "https://www.patreon.com/feross" + }, + { + "type": "consulting", + "url": "https://feross.org/support" + } + ], + "inBundle": true, + "license": "MIT" + }, + "node_modules/npm/node_modules/safer-buffer": { + "version": "2.1.2", + "inBundle": true, + "license": "MIT" + }, + "node_modules/npm/node_modules/semver": { + "version": "7.3.5", + "inBundle": true, + "license": "ISC", + "dependencies": { + "lru-cache": "^6.0.0" + }, + "bin": { + "semver": "bin/semver.js" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/npm/node_modules/set-blocking": { + "version": "2.0.0", + "inBundle": true, + "license": "ISC" + }, + "node_modules/npm/node_modules/signal-exit": { + "version": "3.0.3", + "inBundle": true, + "license": "ISC" + }, + "node_modules/npm/node_modules/smart-buffer": { + "version": "4.2.0", + "inBundle": true, + "license": "MIT", + "engines": { + "node": ">= 6.0.0", + "npm": ">= 3.0.0" + } + }, + "node_modules/npm/node_modules/socks": { + "version": "2.6.1", + "inBundle": true, + "license": "MIT", + "dependencies": { + "ip": "^1.1.5", + "smart-buffer": "^4.1.0" + }, + "engines": { + "node": ">= 10.13.0", + "npm": ">= 3.0.0" + } + }, + "node_modules/npm/node_modules/socks-proxy-agent": { + "version": "6.1.0", + "inBundle": true, + "license": "MIT", + "dependencies": { + "agent-base": "^6.0.2", + "debug": "^4.3.1", + "socks": "^2.6.1" + }, + "engines": { + "node": ">= 10" + } + }, + "node_modules/npm/node_modules/spdx-correct": { + "version": "3.1.1", + "inBundle": true, + "license": "Apache-2.0", + "dependencies": { + "spdx-expression-parse": "^3.0.0", + "spdx-license-ids": "^3.0.0" + } + }, + "node_modules/npm/node_modules/spdx-exceptions": { + "version": "2.3.0", + "inBundle": true, + "license": "CC-BY-3.0" + }, + "node_modules/npm/node_modules/spdx-expression-parse": { + "version": "3.0.1", + "inBundle": true, + "license": "MIT", + "dependencies": { + "spdx-exceptions": "^2.1.0", + "spdx-license-ids": "^3.0.0" + } + }, + "node_modules/npm/node_modules/spdx-license-ids": { + "version": "3.0.10", + "inBundle": true, + "license": "CC0-1.0" + }, + "node_modules/npm/node_modules/sshpk": { + "version": "1.16.1", + "inBundle": true, + "license": "MIT", + "dependencies": { + "asn1": "~0.2.3", + "assert-plus": "^1.0.0", + "bcrypt-pbkdf": "^1.0.0", + "dashdash": "^1.12.0", + "ecc-jsbn": "~0.1.1", + "getpass": "^0.1.1", + "jsbn": "~0.1.0", + "safer-buffer": "^2.0.2", + "tweetnacl": "~0.14.0" + }, + "bin": { + "sshpk-conv": "bin/sshpk-conv", + "sshpk-sign": "bin/sshpk-sign", + "sshpk-verify": "bin/sshpk-verify" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/npm/node_modules/ssri": { + "version": "8.0.1", + "inBundle": true, + "license": "ISC", + "dependencies": { + "minipass": "^3.1.1" + }, + "engines": { + "node": ">= 8" + } + }, + "node_modules/npm/node_modules/string_decoder": { + "version": "1.3.0", + "inBundle": true, + "license": "MIT", + "dependencies": { + "safe-buffer": "~5.2.0" + } + }, + "node_modules/npm/node_modules/string-width": { + "version": "2.1.1", + "inBundle": true, + "license": "MIT", + "dependencies": { + "is-fullwidth-code-point": "^2.0.0", + "strip-ansi": "^4.0.0" + }, + "engines": { + "node": ">=4" + } + }, + "node_modules/npm/node_modules/string-width/node_modules/ansi-regex": { + "version": "3.0.0", + "inBundle": true, + "license": "MIT", + "engines": { + "node": ">=4" + } + }, + "node_modules/npm/node_modules/string-width/node_modules/strip-ansi": { + "version": "4.0.0", + "inBundle": true, + "license": "MIT", + "dependencies": { + "ansi-regex": "^3.0.0" + }, + "engines": { + "node": ">=4" + } + }, + "node_modules/npm/node_modules/stringify-package": { + "version": "1.0.1", + "inBundle": true, + "license": "ISC" + }, + "node_modules/npm/node_modules/strip-ansi": { + "version": "3.0.1", + "inBundle": true, + "license": "MIT", + "dependencies": { + "ansi-regex": "^2.0.0" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/npm/node_modules/supports-color": { + "version": "7.2.0", + "inBundle": true, + "license": "MIT", + "dependencies": { + "has-flag": "^4.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/npm/node_modules/tar": { + "version": "6.1.11", + "inBundle": true, + "license": "ISC", + "dependencies": { + "chownr": "^2.0.0", + "fs-minipass": "^2.0.0", + "minipass": "^3.0.0", + "minizlib": "^2.1.1", + "mkdirp": "^1.0.3", + "yallist": "^4.0.0" + }, + "engines": { + "node": ">= 10" + } + }, + "node_modules/npm/node_modules/text-table": { + "version": "0.2.0", + "inBundle": true, + "license": "MIT" + }, + "node_modules/npm/node_modules/tiny-relative-date": { + "version": "1.3.0", + "inBundle": true, + "license": "MIT" + }, + "node_modules/npm/node_modules/treeverse": { + "version": "1.0.4", + "inBundle": true, + "license": "ISC" + }, + "node_modules/npm/node_modules/tunnel-agent": { + "version": "0.6.0", + "inBundle": true, + "license": "Apache-2.0", + "dependencies": { + "safe-buffer": "^5.0.1" + }, + "engines": { + "node": "*" + } + }, + "node_modules/npm/node_modules/tweetnacl": { + "version": "0.14.5", + "inBundle": true, + "license": "Unlicense" + }, + "node_modules/npm/node_modules/typedarray-to-buffer": { + "version": "3.1.5", + "inBundle": true, + "license": "MIT", + "dependencies": { + "is-typedarray": "^1.0.0" + } + }, + "node_modules/npm/node_modules/unique-filename": { + "version": "1.1.1", + "inBundle": true, + "license": "ISC", + "dependencies": { + "unique-slug": "^2.0.0" + } + }, + "node_modules/npm/node_modules/unique-slug": { + "version": "2.0.2", + "inBundle": true, + "license": "ISC", + "dependencies": { + "imurmurhash": "^0.1.4" + } + }, + "node_modules/npm/node_modules/uri-js": { + "version": "4.4.1", + "inBundle": true, + "license": "BSD-2-Clause", + "dependencies": { + "punycode": "^2.1.0" + } + }, + "node_modules/npm/node_modules/util-deprecate": { + "version": "1.0.2", + "inBundle": true, + "license": "MIT" + }, + "node_modules/npm/node_modules/uuid": { + "version": "3.4.0", + "inBundle": true, + "license": "MIT", + "bin": { + "uuid": "bin/uuid" + } + }, + "node_modules/npm/node_modules/validate-npm-package-license": { + "version": "3.0.4", + "inBundle": true, + "license": "Apache-2.0", + "dependencies": { + "spdx-correct": "^3.0.0", + "spdx-expression-parse": "^3.0.0" + } + }, + "node_modules/npm/node_modules/validate-npm-package-name": { + "version": "3.0.0", + "inBundle": true, + "license": "ISC", + "dependencies": { + "builtins": "^1.0.3" + } + }, + "node_modules/npm/node_modules/verror": { + "version": "1.10.0", + "engines": [ + "node >=0.6.0" + ], + "inBundle": true, + "license": "MIT", + "dependencies": { + "assert-plus": "^1.0.0", + "core-util-is": "1.0.2", + "extsprintf": "^1.2.0" + } + }, + "node_modules/npm/node_modules/walk-up-path": { + "version": "1.0.0", + "inBundle": true, + "license": "ISC" + }, + "node_modules/npm/node_modules/wcwidth": { + "version": "1.0.1", + "inBundle": true, + "license": "MIT", + "dependencies": { + "defaults": "^1.0.3" + } + }, + "node_modules/npm/node_modules/which": { + "version": "2.0.2", + "inBundle": true, + "license": "ISC", + "dependencies": { + "isexe": "^2.0.0" + }, + "bin": { + "node-which": "bin/node-which" + }, + "engines": { + "node": ">= 8" + } + }, + "node_modules/npm/node_modules/wide-align": { + "version": "1.1.3", + "inBundle": true, + "license": "ISC", + "dependencies": { + "string-width": "^1.0.2 || 2" + } + }, + "node_modules/npm/node_modules/wrappy": { + "version": "1.0.2", + "inBundle": true, + "license": "ISC" + }, + "node_modules/npm/node_modules/write-file-atomic": { + "version": "3.0.3", + "inBundle": true, + "license": "ISC", + "dependencies": { + "imurmurhash": "^0.1.4", + "is-typedarray": "^1.0.0", + "signal-exit": "^3.0.2", + "typedarray-to-buffer": "^3.1.5" + } + }, + "node_modules/npm/node_modules/yallist": { + "version": "4.0.0", + "inBundle": true, + "license": "ISC" + }, + "node_modules/nth-check": { + "version": "2.1.1", + "resolved": "https://registry.npmjs.org/nth-check/-/nth-check-2.1.1.tgz", + "integrity": "sha512-lqjrjmaOoAnWfMmBPL+XNnynZh2+swxiX3WUE0s4yEHI6m+AwrK2UZOimIRl3X/4QctVqS8AiZjFqyOGrMXb/w==", + "dev": true, + "dependencies": { + "boolbase": "^1.0.0" + }, + "funding": { + "url": "https://github.com/fb55/nth-check?sponsor=1" + } + }, + "node_modules/object-assign": { + "version": "4.1.1", + "resolved": "https://registry.npmjs.org/object-assign/-/object-assign-4.1.1.tgz", + "integrity": "sha512-rJgTQnkUnH1sFw8yT6VSU3zD3sWmu6sZhIseY8VX+GRu3P6F7Fu+JNDoXfklElbLJSnc3FUQHVe4cU5hj+BcUg==", + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/object-inspect": { + "version": "1.12.3", + "resolved": "https://registry.npmjs.org/object-inspect/-/object-inspect-1.12.3.tgz", + "integrity": "sha512-geUvdk7c+eizMNUDkRpW1wJwgfOiOeHbxBR/hLXK1aT6zmVSO0jsQcs7fj6MGw89jC/cjGfLcNOrtMYtGqm81g==", + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/object-is": { + "version": "1.1.5", + "resolved": "https://registry.npmjs.org/object-is/-/object-is-1.1.5.tgz", + "integrity": "sha512-3cyDsyHgtmi7I7DfSSI2LDp6SK2lwvtbg0p0R1e0RvTqF5ceGx+K2dfSjm1bKDMVCFEDAQvy+o8c6a7VujOddw==", + "dependencies": { + "call-bind": "^1.0.2", + "define-properties": "^1.1.3" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/object-keys": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/object-keys/-/object-keys-1.1.1.tgz", + "integrity": "sha512-NuAESUOUMrlIXOfHKzD6bpPu3tYt3xvjNdRIQ+FeT0lNb4K8WR70CaDxhuNguS2XG+GjkyMwOzsN5ZktImfhLA==", + "engines": { + "node": ">= 0.4" + } + }, + "node_modules/object.assign": { + "version": "4.1.4", + "resolved": "https://registry.npmjs.org/object.assign/-/object.assign-4.1.4.tgz", + "integrity": "sha512-1mxKf0e58bvyjSCtKYY4sRe9itRk3PJpquJOjeIkz885CczcI4IvJJDLPS72oowuSh+pBxUFROpX+TU++hxhZQ==", + "dev": true, + "dependencies": { + "call-bind": "^1.0.2", + "define-properties": "^1.1.4", + "has-symbols": "^1.0.3", + "object-keys": "^1.1.1" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/object.getownpropertydescriptors": { + "version": "2.1.5", + "resolved": "https://registry.npmjs.org/object.getownpropertydescriptors/-/object.getownpropertydescriptors-2.1.5.tgz", + "integrity": "sha512-yDNzckpM6ntyQiGTik1fKV1DcVDRS+w8bvpWNCBanvH5LfRX9O8WTHqQzG4RZwRAM4I0oU7TV11Lj5v0g20ibw==", + "dev": true, + "dependencies": { + "array.prototype.reduce": "^1.0.5", + "call-bind": "^1.0.2", + "define-properties": "^1.1.4", + "es-abstract": "^1.20.4" + }, + "engines": { + "node": ">= 0.8" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/object.values": { + "version": "1.1.6", + "resolved": "https://registry.npmjs.org/object.values/-/object.values-1.1.6.tgz", + "integrity": "sha512-FVVTkD1vENCsAcwNs9k6jea2uHC/X0+JcjG8YA60FN5CMaJmG95wT9jek/xX9nornqGRrBkKtzuAu2wuHpKqvw==", + "dev": true, + "dependencies": { + "call-bind": "^1.0.2", + "define-properties": "^1.1.4", + "es-abstract": "^1.20.4" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/obuf": { + "version": "1.1.2", + "resolved": "https://registry.npmjs.org/obuf/-/obuf-1.1.2.tgz", + "integrity": "sha512-PX1wu0AmAdPqOL1mWhqmlOd8kOIZQwGZw6rh7uby9fTc5lhaOWFLX3I6R1hrF9k3zUY40e6igsLGkDXK92LJNg==", + "dev": true + }, + "node_modules/on-finished": { + "version": "2.4.1", + "resolved": "https://registry.npmjs.org/on-finished/-/on-finished-2.4.1.tgz", + "integrity": "sha512-oVlzkg3ENAhCk2zdv7IJwd/QUD4z2RxRwpkcGY8psCVcCYZNq4wYnVWALHM+brtuJjePWiYF/ClmuDr8Ch5+kg==", + "dev": true, + "dependencies": { + "ee-first": "1.1.1" + }, + "engines": { + "node": ">= 0.8" + } + }, + "node_modules/on-headers": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/on-headers/-/on-headers-1.0.2.tgz", + "integrity": "sha512-pZAE+FJLoyITytdqK0U5s+FIpjN0JP3OzFi/u8Rx+EV5/W+JTWGXG8xFzevE7AjBfDqHv/8vL8qQsIhHnqRkrA==", + "dev": true, + "engines": { + "node": ">= 0.8" + } + }, + "node_modules/once": { + "version": "1.4.0", + "resolved": "https://registry.npmjs.org/once/-/once-1.4.0.tgz", + "integrity": "sha512-lNaJgI+2Q5URQBkccEKHTQOPaXdUxnZZElQTZY0MFUAuaEqe1E+Nyvgdz/aIyNi6Z9MzO5dv1H8n58/GELp3+w==", + "dependencies": { + "wrappy": "1" + } + }, + "node_modules/onetime": { + "version": "5.1.2", + "resolved": "https://registry.npmjs.org/onetime/-/onetime-5.1.2.tgz", + "integrity": "sha512-kbpaSSGJTWdAY5KPVeMOKXSrPtr8C8C7wodJbcsd51jRnmD+GZu8Y0VoU6Dm5Z4vWr0Ig/1NKuWRKf7j5aaYSg==", + "dev": true, + "dependencies": { + "mimic-fn": "^2.1.0" + }, + "engines": { + "node": ">=6" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/open": { + "version": "8.4.2", + "resolved": "https://registry.npmjs.org/open/-/open-8.4.2.tgz", + "integrity": "sha512-7x81NCL719oNbsq/3mh+hVrAWmFuEYUqrq/Iw3kUzH8ReypT9QQ0BLoJS7/G9k6N81XjW4qHWtjWwe/9eLy1EQ==", + "dev": true, + "dependencies": { + "define-lazy-prop": "^2.0.0", + "is-docker": "^2.1.1", + "is-wsl": "^2.2.0" + }, + "engines": { + "node": ">=12" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/optionator": { + "version": "0.8.3", + "resolved": "https://registry.npmjs.org/optionator/-/optionator-0.8.3.tgz", + "integrity": "sha512-+IW9pACdk3XWmmTXG8m3upGUJst5XRGzxMRjXzAuJ1XnIFNvfhjjIuYkDvysnPQ7qzqVzLt78BCruntqRhWQbA==", + "dependencies": { + "deep-is": "~0.1.3", + "fast-levenshtein": "~2.0.6", + "levn": "~0.3.0", + "prelude-ls": "~1.1.2", + "type-check": "~0.3.2", + "word-wrap": "~1.2.3" + }, + "engines": { + "node": ">= 0.8.0" + } + }, + "node_modules/os-browserify": { + "version": "0.3.0", + "resolved": "https://registry.npmjs.org/os-browserify/-/os-browserify-0.3.0.tgz", + "integrity": "sha512-gjcpUc3clBf9+210TRaDWbf+rZZZEshZ+DlXMRCeAjp0xhTrnQsKHypIy1J3d5hKdUzj69t708EHtU8P6bUn0A==", + "dev": true + }, + "node_modules/p-defer": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/p-defer/-/p-defer-1.0.0.tgz", + "integrity": "sha512-wB3wfAxZpk2AzOfUMJNL+d36xothRSyj8EXOa4f6GMqYDN9BJaaSISbsk+wS9abmnebVw95C2Kb5t85UmpCxuw==", + "engines": { + "node": ">=4" + } + }, + "node_modules/p-limit": { + "version": "2.3.0", + "resolved": "https://registry.npmjs.org/p-limit/-/p-limit-2.3.0.tgz", + "integrity": "sha512-//88mFWSJx8lxCzwdAABTJL2MyWB12+eIY7MDL2SqLmAkeKU9qxRvWuSyTjm3FUmpBEMuFfckAIqEaVGUDxb6w==", + "dev": true, + "dependencies": { + "p-try": "^2.0.0" + }, + "engines": { + "node": ">=6" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/p-locate": { + "version": "4.1.0", + "resolved": "https://registry.npmjs.org/p-locate/-/p-locate-4.1.0.tgz", + "integrity": "sha512-R79ZZ/0wAxKGu3oYMlz8jy/kbhsNrS7SKZ7PxEHBgJ5+F2mtFW2fK2cOtBh1cHYkQsbzFV7I+EoRKe6Yt0oK7A==", + "dev": true, + "dependencies": { + "p-limit": "^2.2.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/p-map": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/p-map/-/p-map-4.0.0.tgz", + "integrity": "sha512-/bjOqmgETBYB5BoEeGVea8dmvHb2m9GLy1E9W43yeyfP6QQCZGFNa+XRceJEuDB6zqr+gKpIAmlLebMpykw/MQ==", + "dev": true, + "dependencies": { + "aggregate-error": "^3.0.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/p-pipe": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/p-pipe/-/p-pipe-3.1.0.tgz", + "integrity": "sha512-08pj8ATpzMR0Y80x50yJHn37NF6vjrqHutASaX5LiH5npS9XPvrUmscd9MF5R4fuYRHOxQR1FfMIlF7AzwoPqw==", + "dev": true, + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/p-retry": { + "version": "4.6.2", + "resolved": "https://registry.npmjs.org/p-retry/-/p-retry-4.6.2.tgz", + "integrity": "sha512-312Id396EbJdvRONlngUx0NydfrIQ5lsYu0znKVUzVvArzEIt08V1qhtyESbGVd1FGX7UKtiFp5uwKZdM8wIuQ==", + "dev": true, + "dependencies": { + "@types/retry": "0.12.0", + "retry": "^0.13.1" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/p-try": { + "version": "2.2.0", + "resolved": "https://registry.npmjs.org/p-try/-/p-try-2.2.0.tgz", + "integrity": "sha512-R4nPAVTAU0B9D35/Gk3uJf/7XYbQcyohSKdvAxIRSNghFl4e71hVoGnBNQz9cWaXxO2I10KTC+3jMdvvoKw6dQ==", + "dev": true, + "engines": { + "node": ">=6" + } + }, + "node_modules/pako": { + "version": "1.0.11", + "resolved": "https://registry.npmjs.org/pako/-/pako-1.0.11.tgz", + "integrity": "sha512-4hLB8Py4zZce5s4yd9XzopqwVv/yGNhV1Bl8NTmCq1763HeK2+EwVTv+leGeL13Dnh2wfbqowVPXCIO0z4taYw==" + }, + "node_modules/param-case": { + "version": "3.0.4", + "resolved": "https://registry.npmjs.org/param-case/-/param-case-3.0.4.tgz", + "integrity": "sha512-RXlj7zCYokReqWpOPH9oYivUzLYZ5vAPIfEmCTNViosC78F8F0H9y7T7gG2M39ymgutxF5gcFEsyZQSph9Bp3A==", + "dev": true, + "dependencies": { + "dot-case": "^3.0.4", + "tslib": "^2.0.3" + } + }, + "node_modules/parchment": { + "version": "1.1.4", + "resolved": "https://registry.npmjs.org/parchment/-/parchment-1.1.4.tgz", + "integrity": "sha512-J5FBQt/pM2inLzg4hEWmzQx/8h8D0CiDxaG3vyp9rKrQRSDgBlhjdP5jQGgosEajXPSQouXGHOmVdgo7QmJuOg==" + }, + "node_modules/parent-module": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/parent-module/-/parent-module-1.0.1.tgz", + "integrity": "sha512-GQ2EWRpQV8/o+Aw8YqtfZZPfNRWZYkbidE9k5rpl/hC3vtHHBfGm2Ifi6qWV+coDGkrUKZAxE3Lot5kcsRlh+g==", + "dependencies": { + "callsites": "^3.0.0" + }, + "engines": { + "node": ">=6" + } + }, + "node_modules/parse-asn1": { + "version": "5.1.6", + "resolved": "https://registry.npmjs.org/parse-asn1/-/parse-asn1-5.1.6.tgz", + "integrity": "sha512-RnZRo1EPU6JBnra2vGHj0yhp6ebyjBZpmUCLHWiFhxlzvBCCpAuZ7elsBp1PVAbQN0/04VD/19rfzlBSwLstMw==", + "dev": true, + "dependencies": { + "asn1.js": "^5.2.0", + "browserify-aes": "^1.0.0", + "evp_bytestokey": "^1.0.0", + "pbkdf2": "^3.0.3", + "safe-buffer": "^5.1.1" + } + }, + "node_modules/parse-entities": { + "version": "1.2.2", + "resolved": "https://registry.npmjs.org/parse-entities/-/parse-entities-1.2.2.tgz", + "integrity": "sha512-NzfpbxW/NPrzZ/yYSoQxyqUZMZXIdCfE0OIN4ESsnptHJECoUk3FZktxNuzQf4tjt5UEopnxpYJbvYuxIFDdsg==", + "dependencies": { + "character-entities": "^1.0.0", + "character-entities-legacy": "^1.0.0", + "character-reference-invalid": "^1.0.0", + "is-alphanumerical": "^1.0.0", + "is-decimal": "^1.0.0", + "is-hexadecimal": "^1.0.0" + } + }, + "node_modules/parse-json": { + "version": "5.2.0", + "resolved": "https://registry.npmjs.org/parse-json/-/parse-json-5.2.0.tgz", + "integrity": "sha512-ayCKvm/phCGxOkYRSCM82iDwct8/EonSEgCSxWxD7ve6jHggsFl4fZVQBPRNgQoKiuV/odhFrGzQXZwbifC8Rg==", + "dependencies": { + "@babel/code-frame": "^7.0.0", + "error-ex": "^1.3.1", + "json-parse-even-better-errors": "^2.3.0", + "lines-and-columns": "^1.1.6" + }, + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/parseurl": { + "version": "1.3.3", + "resolved": "https://registry.npmjs.org/parseurl/-/parseurl-1.3.3.tgz", + "integrity": "sha512-CiyeOxFT/JZyN5m0z9PfXw4SCBJ6Sygz1Dpl0wqjlhDEGGBP1GnsUVEL0p63hoG1fcj3fHynXi9NYO4nWOL+qQ==", + "dev": true, + "engines": { + "node": ">= 0.8" + } + }, + "node_modules/pascal-case": { + "version": "3.1.2", + "resolved": "https://registry.npmjs.org/pascal-case/-/pascal-case-3.1.2.tgz", + "integrity": "sha512-uWlGT3YSnK9x3BQJaOdcZwrnV6hPpd8jFH1/ucpiLRPh/2zCVJKS19E4GvYHvaCcACn3foXZ0cLB9Wrx1KGe5g==", + "dev": true, + "dependencies": { + "no-case": "^3.0.4", + "tslib": "^2.0.3" + } + }, + "node_modules/path-browserify": { + "version": "0.0.1", + "resolved": "https://registry.npmjs.org/path-browserify/-/path-browserify-0.0.1.tgz", + "integrity": "sha512-BapA40NHICOS+USX9SN4tyhq+A2RrN/Ws5F0Z5aMHDp98Fl86lX8Oti8B7uN93L4Ifv4fHOEA+pQw87gmMO/lQ==", + "dev": true + }, + "node_modules/path-exists": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/path-exists/-/path-exists-4.0.0.tgz", + "integrity": "sha512-ak9Qy5Q7jYb2Wwcey5Fpvg2KoAc/ZIhLSLOSBmRmygPsGwkVVt0fZa0qrtMz+m6tJTAHfZQ8FnmB4MG4LWy7/w==", + "dev": true, + "engines": { + "node": ">=8" + } + }, + "node_modules/path-is-absolute": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/path-is-absolute/-/path-is-absolute-1.0.1.tgz", + "integrity": "sha512-AVbw3UJ2e9bq64vSaS9Am0fje1Pa8pbGqTTsmXfaIiMpnr5DlDhfJOuLj9Sf95ZPVDAUerDfEk88MPmPe7UCQg==", + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/path-key": { + "version": "3.1.1", + "resolved": "https://registry.npmjs.org/path-key/-/path-key-3.1.1.tgz", + "integrity": "sha512-ojmeN0qd+y0jszEtoY48r0Peq5dwMEkIlCOu6Q5f41lfkswXuKtYrhgoTpLnyIcHm24Uhqx+5Tqm2InSwLhE6Q==", + "dev": true, + "engines": { + "node": ">=8" + } + }, + "node_modules/path-parse": { + "version": "1.0.7", + "resolved": "https://registry.npmjs.org/path-parse/-/path-parse-1.0.7.tgz", + "integrity": "sha512-LDJzPVEEEPR+y48z93A0Ed0yXb8pAByGWo/k5YYdYgpY2/2EsOsksJrq7lOHxryrVOn1ejG6oAp8ahvOIQD8sw==" + }, + "node_modules/path-to-regexp": { + "version": "0.1.7", + "resolved": "https://registry.npmjs.org/path-to-regexp/-/path-to-regexp-0.1.7.tgz", + "integrity": "sha512-5DFkuoqlv1uYQKxy8omFBeJPQcdoE07Kv2sferDCrAq1ohOU+MSDswDIbnx3YAM60qIOnYa53wBhXW0EbMonrQ==", + "dev": true + }, + "node_modules/path-type": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/path-type/-/path-type-4.0.0.tgz", + "integrity": "sha512-gDKb8aZMDeD/tZWs9P6+q0J9Mwkdl6xMV8TjnGP3qJVJ06bdMgkbBlLU8IdfOsIsFz2BW1rNVT3XuNEl8zPAvw==", + "engines": { + "node": ">=8" + } + }, + "node_modules/pbkdf2": { + "version": "3.1.2", + "resolved": "https://registry.npmjs.org/pbkdf2/-/pbkdf2-3.1.2.tgz", + "integrity": "sha512-iuh7L6jA7JEGu2WxDwtQP1ddOpaJNC4KlDEFfdQajSGgGPNi4OyDc2R7QnbY2bR9QjBVGwgvTdNJZoE7RaxUMA==", + "dev": true, + "dependencies": { + "create-hash": "^1.1.2", + "create-hmac": "^1.1.4", + "ripemd160": "^2.0.1", + "safe-buffer": "^5.0.1", + "sha.js": "^2.4.8" + }, + "engines": { + "node": ">=0.12" + } + }, + "node_modules/pdfmake": { + "version": "0.2.7", + "resolved": "https://registry.npmjs.org/pdfmake/-/pdfmake-0.2.7.tgz", + "integrity": "sha512-ClLpgx30H5G3EDvRW1MrA1Xih6YxEaSgIVFrOyBMgAAt62V+hxsyWAi6JNP7u1Fc5JKYAbpb4RRVw8Rhvmz5cQ==", + "dependencies": { + "@foliojs-fork/linebreak": "^1.1.1", + "@foliojs-fork/pdfkit": "^0.13.0", + "iconv-lite": "^0.6.3", + "xmldoc": "^1.1.2" + }, + "engines": { + "node": ">=12" + } + }, + "node_modules/picocolors": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/picocolors/-/picocolors-1.0.0.tgz", + "integrity": "sha512-1fygroTLlHu66zi26VoTDv8yRgm0Fccecssto+MhsZ0D/DGW2sm8E8AjW7NU5VVTRt5GxbeZ5qBuJr+HyLYkjQ==" + }, + "node_modules/picomatch": { + "version": "2.3.1", + "resolved": "https://registry.npmjs.org/picomatch/-/picomatch-2.3.1.tgz", + "integrity": "sha512-JU3teHTNjmE2VCGFzuY8EXzCDVwEqB2a8fsIvwaStHhAWJEeVd1o1QD80CU6+ZdEXXSLbSsuLwJjkCBWqRQUVA==", + "engines": { + "node": ">=8.6" + }, + "funding": { + "url": "https://github.com/sponsors/jonschlinkert" + } + }, + "node_modules/pify": { + "version": "2.3.0", + "resolved": "https://registry.npmjs.org/pify/-/pify-2.3.0.tgz", + "integrity": "sha512-udgsAY+fTnvv7kI7aaxbqwWNb0AHiB0qBO89PZKPkoTmGOgdbrHDKD+0B2X4uTfJ/FT1R09r9gTsjUjNJotuog==", + "dev": true, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/pkg-dir": { + "version": "4.2.0", + "resolved": "https://registry.npmjs.org/pkg-dir/-/pkg-dir-4.2.0.tgz", + "integrity": "sha512-HRDzbaKjC+AOWVXxAU/x54COGeIv9eb+6CkDSQoNTt4XyWoIJvuPsXizxu/Fr23EiekbtZwmh1IcIG/l/a10GQ==", + "dev": true, + "dependencies": { + "find-up": "^4.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/please-upgrade-node": { + "version": "3.2.0", + "resolved": "https://registry.npmjs.org/please-upgrade-node/-/please-upgrade-node-3.2.0.tgz", + "integrity": "sha512-gQR3WpIgNIKwBMVLkpMUeR3e1/E1y42bqDQZfql+kDeXd8COYfM8PQA4X6y7a8u9Ua9FHmsrrmirW2vHs45hWg==", + "dependencies": { + "semver-compare": "^1.0.0" + } + }, + "node_modules/png-js": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/png-js/-/png-js-1.0.0.tgz", + "integrity": "sha512-k+YsbhpA9e+EFfKjTCH3VW6aoKlyNYI6NYdTfDL4CIvFnvsuO84ttonmZE7rc+v23SLTH8XX+5w/Ak9v0xGY4g==" + }, + "node_modules/popper.js": { + "version": "1.16.1", + "resolved": "https://registry.npmjs.org/popper.js/-/popper.js-1.16.1.tgz", + "integrity": "sha512-Wb4p1J4zyFTbM+u6WuO4XstYx4Ky9Cewe4DWrel7B0w6VVICvPwdOpotjzcf6eD8TsckVnIMNONQyPIUFOUbCQ==", + "deprecated": "You can find the new Popper v2 at @popperjs/core, this package is dedicated to the legacy v1", + "peer": true, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/popperjs" + } + }, + "node_modules/postcss": { + "version": "8.4.21", + "resolved": "https://registry.npmjs.org/postcss/-/postcss-8.4.21.tgz", + "integrity": "sha512-tP7u/Sn/dVxK2NnruI4H9BG+x+Wxz6oeZ1cJ8P6G/PZY0IKk4k/63TDsQf2kQq3+qoJeLm2kIBUNlZe3zgb4Zg==", + "funding": [ + { + "type": "opencollective", + "url": "https://opencollective.com/postcss/" + }, + { + "type": "tidelift", + "url": "https://tidelift.com/funding/github/npm/postcss" + } + ], + "dependencies": { + "nanoid": "^3.3.4", + "picocolors": "^1.0.0", + "source-map-js": "^1.0.2" + }, + "engines": { + "node": "^10 || ^12 || >=14" + } + }, + "node_modules/postcss-calc": { + "version": "8.2.4", + "resolved": "https://registry.npmjs.org/postcss-calc/-/postcss-calc-8.2.4.tgz", + "integrity": "sha512-SmWMSJmB8MRnnULldx0lQIyhSNvuDl9HfrZkaqqE/WHAhToYsAvDq+yAsA/kIyINDszOp3Rh0GFoNuH5Ypsm3Q==", + "dev": true, + "dependencies": { + "postcss-selector-parser": "^6.0.9", + "postcss-value-parser": "^4.2.0" + }, + "peerDependencies": { + "postcss": "^8.2.2" + } + }, + "node_modules/postcss-colormin": { + "version": "5.3.1", + "resolved": "https://registry.npmjs.org/postcss-colormin/-/postcss-colormin-5.3.1.tgz", + "integrity": "sha512-UsWQG0AqTFQmpBegeLLc1+c3jIqBNB0zlDGRWR+dQ3pRKJL1oeMzyqmH3o2PIfn9MBdNrVPWhDbT769LxCTLJQ==", + "dev": true, + "dependencies": { + "browserslist": "^4.21.4", + "caniuse-api": "^3.0.0", + "colord": "^2.9.1", + "postcss-value-parser": "^4.2.0" + }, + "engines": { + "node": "^10 || ^12 || >=14.0" + }, + "peerDependencies": { + "postcss": "^8.2.15" + } + }, + "node_modules/postcss-convert-values": { + "version": "5.1.3", + "resolved": "https://registry.npmjs.org/postcss-convert-values/-/postcss-convert-values-5.1.3.tgz", + "integrity": "sha512-82pC1xkJZtcJEfiLw6UXnXVXScgtBrjlO5CBmuDQc+dlb88ZYheFsjTn40+zBVi3DkfF7iezO0nJUPLcJK3pvA==", + "dev": true, + "dependencies": { + "browserslist": "^4.21.4", + "postcss-value-parser": "^4.2.0" + }, + "engines": { + "node": "^10 || ^12 || >=14.0" + }, + "peerDependencies": { + "postcss": "^8.2.15" + } + }, + "node_modules/postcss-discard-comments": { + "version": "5.1.2", + "resolved": "https://registry.npmjs.org/postcss-discard-comments/-/postcss-discard-comments-5.1.2.tgz", + "integrity": "sha512-+L8208OVbHVF2UQf1iDmRcbdjJkuBF6IS29yBDSiWUIzpYaAhtNl6JYnYm12FnkeCwQqF5LeklOu6rAqgfBZqQ==", + "dev": true, + "engines": { + "node": "^10 || ^12 || >=14.0" + }, + "peerDependencies": { + "postcss": "^8.2.15" + } + }, + "node_modules/postcss-discard-duplicates": { + "version": "5.1.0", + "resolved": "https://registry.npmjs.org/postcss-discard-duplicates/-/postcss-discard-duplicates-5.1.0.tgz", + "integrity": "sha512-zmX3IoSI2aoenxHV6C7plngHWWhUOV3sP1T8y2ifzxzbtnuhk1EdPwm0S1bIUNaJ2eNbWeGLEwzw8huPD67aQw==", + "dev": true, + "engines": { + "node": "^10 || ^12 || >=14.0" + }, + "peerDependencies": { + "postcss": "^8.2.15" + } + }, + "node_modules/postcss-discard-empty": { + "version": "5.1.1", + "resolved": "https://registry.npmjs.org/postcss-discard-empty/-/postcss-discard-empty-5.1.1.tgz", + "integrity": "sha512-zPz4WljiSuLWsI0ir4Mcnr4qQQ5e1Ukc3i7UfE2XcrwKK2LIPIqE5jxMRxO6GbI3cv//ztXDsXwEWT3BHOGh3A==", + "dev": true, + "engines": { + "node": "^10 || ^12 || >=14.0" + }, + "peerDependencies": { + "postcss": "^8.2.15" + } + }, + "node_modules/postcss-discard-overridden": { + "version": "5.1.0", + "resolved": "https://registry.npmjs.org/postcss-discard-overridden/-/postcss-discard-overridden-5.1.0.tgz", + "integrity": "sha512-21nOL7RqWR1kasIVdKs8HNqQJhFxLsyRfAnUDm4Fe4t4mCWL9OJiHvlHPjcd8zc5Myu89b/7wZDnOSjFgeWRtw==", + "dev": true, + "engines": { + "node": "^10 || ^12 || >=14.0" + }, + "peerDependencies": { + "postcss": "^8.2.15" + } + }, + "node_modules/postcss-import": { + "version": "14.1.0", + "resolved": "https://registry.npmjs.org/postcss-import/-/postcss-import-14.1.0.tgz", + "integrity": "sha512-flwI+Vgm4SElObFVPpTIT7SU7R3qk2L7PyduMcokiaVKuWv9d/U+Gm/QAd8NDLuykTWTkcrjOeD2Pp1rMeBTGw==", + "dev": true, + "dependencies": { + "postcss-value-parser": "^4.0.0", + "read-cache": "^1.0.0", + "resolve": "^1.1.7" + }, + "engines": { + "node": ">=10.0.0" + }, + "peerDependencies": { + "postcss": "^8.0.0" + } + }, + "node_modules/postcss-less": { + "version": "4.0.1", + "resolved": "https://registry.npmjs.org/postcss-less/-/postcss-less-4.0.1.tgz", + "integrity": "sha512-C92S4sHlbDpefJ2QQJjrucCcypq3+KZPstjfuvgOCNnGx0tF9h8hXgAlOIATGAxMXZXaF+nVp+/Mi8pCAWdSmw==", + "dependencies": { + "postcss": "^8.1.2" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/postcss-load-config": { + "version": "3.1.4", + "resolved": "https://registry.npmjs.org/postcss-load-config/-/postcss-load-config-3.1.4.tgz", + "integrity": "sha512-6DiM4E7v4coTE4uzA8U//WhtPwyhiim3eyjEMFCnUpzbrkK9wJHgKDT2mR+HbtSrd/NubVaYTOpSpjUl8NQeRg==", + "dev": true, + "dependencies": { + "lilconfig": "^2.0.5", + "yaml": "^1.10.2" + }, + "engines": { + "node": ">= 10" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/postcss/" + }, + "peerDependencies": { + "postcss": ">=8.0.9", + "ts-node": ">=9.0.0" + }, + "peerDependenciesMeta": { + "postcss": { + "optional": true + }, + "ts-node": { + "optional": true + } + } + }, + "node_modules/postcss-loader": { + "version": "6.2.1", + "resolved": "https://registry.npmjs.org/postcss-loader/-/postcss-loader-6.2.1.tgz", + "integrity": "sha512-WbbYpmAaKcux/P66bZ40bpWsBucjx/TTgVVzRZ9yUO8yQfVBlameJ0ZGVaPfH64hNSBh63a+ICP5nqOpBA0w+Q==", + "dev": true, + "dependencies": { + "cosmiconfig": "^7.0.0", + "klona": "^2.0.5", + "semver": "^7.3.5" + }, + "engines": { + "node": ">= 12.13.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/webpack" + }, + "peerDependencies": { + "postcss": "^7.0.0 || ^8.0.1", + "webpack": "^5.0.0" + } + }, + "node_modules/postcss-media-query-parser": { + "version": "0.2.3", + "resolved": "https://registry.npmjs.org/postcss-media-query-parser/-/postcss-media-query-parser-0.2.3.tgz", + "integrity": "sha512-3sOlxmbKcSHMjlUXQZKQ06jOswE7oVkXPxmZdoB1r5l0q6gTFTQSHxNxOrCccElbW7dxNytifNEo8qidX2Vsig==" + }, + "node_modules/postcss-merge-longhand": { + "version": "5.1.7", + "resolved": "https://registry.npmjs.org/postcss-merge-longhand/-/postcss-merge-longhand-5.1.7.tgz", + "integrity": "sha512-YCI9gZB+PLNskrK0BB3/2OzPnGhPkBEwmwhfYk1ilBHYVAZB7/tkTHFBAnCrvBBOmeYyMYw3DMjT55SyxMBzjQ==", + "dev": true, + "dependencies": { + "postcss-value-parser": "^4.2.0", + "stylehacks": "^5.1.1" + }, + "engines": { + "node": "^10 || ^12 || >=14.0" + }, + "peerDependencies": { + "postcss": "^8.2.15" + } + }, + "node_modules/postcss-merge-rules": { + "version": "5.1.4", + "resolved": "https://registry.npmjs.org/postcss-merge-rules/-/postcss-merge-rules-5.1.4.tgz", + "integrity": "sha512-0R2IuYpgU93y9lhVbO/OylTtKMVcHb67zjWIfCiKR9rWL3GUk1677LAqD/BcHizukdZEjT8Ru3oHRoAYoJy44g==", + "dev": true, + "dependencies": { + "browserslist": "^4.21.4", + "caniuse-api": "^3.0.0", + "cssnano-utils": "^3.1.0", + "postcss-selector-parser": "^6.0.5" + }, + "engines": { + "node": "^10 || ^12 || >=14.0" + }, + "peerDependencies": { + "postcss": "^8.2.15" + } + }, + "node_modules/postcss-minify-font-values": { + "version": "5.1.0", + "resolved": "https://registry.npmjs.org/postcss-minify-font-values/-/postcss-minify-font-values-5.1.0.tgz", + "integrity": "sha512-el3mYTgx13ZAPPirSVsHqFzl+BBBDrXvbySvPGFnQcTI4iNslrPaFq4muTkLZmKlGk4gyFAYUBMH30+HurREyA==", + "dev": true, + "dependencies": { + "postcss-value-parser": "^4.2.0" + }, + "engines": { + "node": "^10 || ^12 || >=14.0" + }, + "peerDependencies": { + "postcss": "^8.2.15" + } + }, + "node_modules/postcss-minify-gradients": { + "version": "5.1.1", + "resolved": "https://registry.npmjs.org/postcss-minify-gradients/-/postcss-minify-gradients-5.1.1.tgz", + "integrity": "sha512-VGvXMTpCEo4qHTNSa9A0a3D+dxGFZCYwR6Jokk+/3oB6flu2/PnPXAh2x7x52EkY5xlIHLm+Le8tJxe/7TNhzw==", + "dev": true, + "dependencies": { + "colord": "^2.9.1", + "cssnano-utils": "^3.1.0", + "postcss-value-parser": "^4.2.0" + }, + "engines": { + "node": "^10 || ^12 || >=14.0" + }, + "peerDependencies": { + "postcss": "^8.2.15" + } + }, + "node_modules/postcss-minify-params": { + "version": "5.1.4", + "resolved": "https://registry.npmjs.org/postcss-minify-params/-/postcss-minify-params-5.1.4.tgz", + "integrity": "sha512-+mePA3MgdmVmv6g+30rn57USjOGSAyuxUmkfiWpzalZ8aiBkdPYjXWtHuwJGm1v5Ojy0Z0LaSYhHaLJQB0P8Jw==", + "dev": true, + "dependencies": { + "browserslist": "^4.21.4", + "cssnano-utils": "^3.1.0", + "postcss-value-parser": "^4.2.0" + }, + "engines": { + "node": "^10 || ^12 || >=14.0" + }, + "peerDependencies": { + "postcss": "^8.2.15" + } + }, + "node_modules/postcss-minify-selectors": { + "version": "5.2.1", + "resolved": "https://registry.npmjs.org/postcss-minify-selectors/-/postcss-minify-selectors-5.2.1.tgz", + "integrity": "sha512-nPJu7OjZJTsVUmPdm2TcaiohIwxP+v8ha9NehQ2ye9szv4orirRU3SDdtUmKH+10nzn0bAyOXZ0UEr7OpvLehg==", + "dev": true, + "dependencies": { + "postcss-selector-parser": "^6.0.5" + }, + "engines": { + "node": "^10 || ^12 || >=14.0" + }, + "peerDependencies": { + "postcss": "^8.2.15" + } + }, + "node_modules/postcss-modules-extract-imports": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/postcss-modules-extract-imports/-/postcss-modules-extract-imports-3.0.0.tgz", + "integrity": "sha512-bdHleFnP3kZ4NYDhuGlVK+CMrQ/pqUm8bx/oGL93K6gVwiclvX5x0n76fYMKuIGKzlABOy13zsvqjb0f92TEXw==", + "dev": true, + "engines": { + "node": "^10 || ^12 || >= 14" + }, + "peerDependencies": { + "postcss": "^8.1.0" + } + }, + "node_modules/postcss-modules-local-by-default": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/postcss-modules-local-by-default/-/postcss-modules-local-by-default-4.0.0.tgz", + "integrity": "sha512-sT7ihtmGSF9yhm6ggikHdV0hlziDTX7oFoXtuVWeDd3hHObNkcHRo9V3yg7vCAY7cONyxJC/XXCmmiHHcvX7bQ==", + "dev": true, + "dependencies": { + "icss-utils": "^5.0.0", + "postcss-selector-parser": "^6.0.2", + "postcss-value-parser": "^4.1.0" + }, + "engines": { + "node": "^10 || ^12 || >= 14" + }, + "peerDependencies": { + "postcss": "^8.1.0" + } + }, + "node_modules/postcss-modules-scope": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/postcss-modules-scope/-/postcss-modules-scope-3.0.0.tgz", + "integrity": "sha512-hncihwFA2yPath8oZ15PZqvWGkWf+XUfQgUGamS4LqoP1anQLOsOJw0vr7J7IwLpoY9fatA2qiGUGmuZL0Iqlg==", + "dev": true, + "dependencies": { + "postcss-selector-parser": "^6.0.4" + }, + "engines": { + "node": "^10 || ^12 || >= 14" + }, + "peerDependencies": { + "postcss": "^8.1.0" + } + }, + "node_modules/postcss-modules-values": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/postcss-modules-values/-/postcss-modules-values-4.0.0.tgz", + "integrity": "sha512-RDxHkAiEGI78gS2ofyvCsu7iycRv7oqw5xMWn9iMoR0N/7mf9D50ecQqUo5BZ9Zh2vH4bCUR/ktCqbB9m8vJjQ==", + "dev": true, + "dependencies": { + "icss-utils": "^5.0.0" + }, + "engines": { + "node": "^10 || ^12 || >= 14" + }, + "peerDependencies": { + "postcss": "^8.1.0" + } + }, + "node_modules/postcss-normalize-charset": { + "version": "5.1.0", + "resolved": "https://registry.npmjs.org/postcss-normalize-charset/-/postcss-normalize-charset-5.1.0.tgz", + "integrity": "sha512-mSgUJ+pd/ldRGVx26p2wz9dNZ7ji6Pn8VWBajMXFf8jk7vUoSrZ2lt/wZR7DtlZYKesmZI680qjr2CeFF2fbUg==", + "dev": true, + "engines": { + "node": "^10 || ^12 || >=14.0" + }, + "peerDependencies": { + "postcss": "^8.2.15" + } + }, + "node_modules/postcss-normalize-display-values": { + "version": "5.1.0", + "resolved": "https://registry.npmjs.org/postcss-normalize-display-values/-/postcss-normalize-display-values-5.1.0.tgz", + "integrity": "sha512-WP4KIM4o2dazQXWmFaqMmcvsKmhdINFblgSeRgn8BJ6vxaMyaJkwAzpPpuvSIoG/rmX3M+IrRZEz2H0glrQNEA==", + "dev": true, + "dependencies": { + "postcss-value-parser": "^4.2.0" + }, + "engines": { + "node": "^10 || ^12 || >=14.0" + }, + "peerDependencies": { + "postcss": "^8.2.15" + } + }, + "node_modules/postcss-normalize-positions": { + "version": "5.1.1", + "resolved": "https://registry.npmjs.org/postcss-normalize-positions/-/postcss-normalize-positions-5.1.1.tgz", + "integrity": "sha512-6UpCb0G4eofTCQLFVuI3EVNZzBNPiIKcA1AKVka+31fTVySphr3VUgAIULBhxZkKgwLImhzMR2Bw1ORK+37INg==", + "dev": true, + "dependencies": { + "postcss-value-parser": "^4.2.0" + }, + "engines": { + "node": "^10 || ^12 || >=14.0" + }, + "peerDependencies": { + "postcss": "^8.2.15" + } + }, + "node_modules/postcss-normalize-repeat-style": { + "version": "5.1.1", + "resolved": "https://registry.npmjs.org/postcss-normalize-repeat-style/-/postcss-normalize-repeat-style-5.1.1.tgz", + "integrity": "sha512-mFpLspGWkQtBcWIRFLmewo8aC3ImN2i/J3v8YCFUwDnPu3Xz4rLohDO26lGjwNsQxB3YF0KKRwspGzE2JEuS0g==", + "dev": true, + "dependencies": { + "postcss-value-parser": "^4.2.0" + }, + "engines": { + "node": "^10 || ^12 || >=14.0" + }, + "peerDependencies": { + "postcss": "^8.2.15" + } + }, + "node_modules/postcss-normalize-string": { + "version": "5.1.0", + "resolved": "https://registry.npmjs.org/postcss-normalize-string/-/postcss-normalize-string-5.1.0.tgz", + "integrity": "sha512-oYiIJOf4T9T1N4i+abeIc7Vgm/xPCGih4bZz5Nm0/ARVJ7K6xrDlLwvwqOydvyL3RHNf8qZk6vo3aatiw/go3w==", + "dev": true, + "dependencies": { + "postcss-value-parser": "^4.2.0" + }, + "engines": { + "node": "^10 || ^12 || >=14.0" + }, + "peerDependencies": { + "postcss": "^8.2.15" + } + }, + "node_modules/postcss-normalize-timing-functions": { + "version": "5.1.0", + "resolved": "https://registry.npmjs.org/postcss-normalize-timing-functions/-/postcss-normalize-timing-functions-5.1.0.tgz", + "integrity": "sha512-DOEkzJ4SAXv5xkHl0Wa9cZLF3WCBhF3o1SKVxKQAa+0pYKlueTpCgvkFAHfk+Y64ezX9+nITGrDZeVGgITJXjg==", + "dev": true, + "dependencies": { + "postcss-value-parser": "^4.2.0" + }, + "engines": { + "node": "^10 || ^12 || >=14.0" + }, + "peerDependencies": { + "postcss": "^8.2.15" + } + }, + "node_modules/postcss-normalize-unicode": { + "version": "5.1.1", + "resolved": "https://registry.npmjs.org/postcss-normalize-unicode/-/postcss-normalize-unicode-5.1.1.tgz", + "integrity": "sha512-qnCL5jzkNUmKVhZoENp1mJiGNPcsJCs1aaRmURmeJGES23Z/ajaln+EPTD+rBeNkSryI+2WTdW+lwcVdOikrpA==", + "dev": true, + "dependencies": { + "browserslist": "^4.21.4", + "postcss-value-parser": "^4.2.0" + }, + "engines": { + "node": "^10 || ^12 || >=14.0" + }, + "peerDependencies": { + "postcss": "^8.2.15" + } + }, + "node_modules/postcss-normalize-url": { + "version": "5.1.0", + "resolved": "https://registry.npmjs.org/postcss-normalize-url/-/postcss-normalize-url-5.1.0.tgz", + "integrity": "sha512-5upGeDO+PVthOxSmds43ZeMeZfKH+/DKgGRD7TElkkyS46JXAUhMzIKiCa7BabPeIy3AQcTkXwVVN7DbqsiCew==", + "dev": true, + "dependencies": { + "normalize-url": "^6.0.1", + "postcss-value-parser": "^4.2.0" + }, + "engines": { + "node": "^10 || ^12 || >=14.0" + }, + "peerDependencies": { + "postcss": "^8.2.15" + } + }, + "node_modules/postcss-normalize-whitespace": { + "version": "5.1.1", + "resolved": "https://registry.npmjs.org/postcss-normalize-whitespace/-/postcss-normalize-whitespace-5.1.1.tgz", + "integrity": "sha512-83ZJ4t3NUDETIHTa3uEg6asWjSBYL5EdkVB0sDncx9ERzOKBVJIUeDO9RyA9Zwtig8El1d79HBp0JEi8wvGQnA==", + "dev": true, + "dependencies": { + "postcss-value-parser": "^4.2.0" + }, + "engines": { + "node": "^10 || ^12 || >=14.0" + }, + "peerDependencies": { + "postcss": "^8.2.15" + } + }, + "node_modules/postcss-ordered-values": { + "version": "5.1.3", + "resolved": "https://registry.npmjs.org/postcss-ordered-values/-/postcss-ordered-values-5.1.3.tgz", + "integrity": "sha512-9UO79VUhPwEkzbb3RNpqqghc6lcYej1aveQteWY+4POIwlqkYE21HKWaLDF6lWNuqCobEAyTovVhtI32Rbv2RQ==", + "dev": true, + "dependencies": { + "cssnano-utils": "^3.1.0", + "postcss-value-parser": "^4.2.0" + }, + "engines": { + "node": "^10 || ^12 || >=14.0" + }, + "peerDependencies": { + "postcss": "^8.2.15" + } + }, + "node_modules/postcss-purgecss-laravel": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/postcss-purgecss-laravel/-/postcss-purgecss-laravel-2.0.0.tgz", + "integrity": "sha512-vWObgEC5f0isOdumiLwzJPuZFyp7i1Go9i2Obce5qrVJWciBtCG1rrNiPEb7xp5bU3u/uk30M2P891tLL8tcQQ==", + "dev": true, + "dependencies": { + "@fullhuman/postcss-purgecss": "^3.0.0" + }, + "engines": { + "node": ">=12.0.0" + } + }, + "node_modules/postcss-reduce-initial": { + "version": "5.1.2", + "resolved": "https://registry.npmjs.org/postcss-reduce-initial/-/postcss-reduce-initial-5.1.2.tgz", + "integrity": "sha512-dE/y2XRaqAi6OvjzD22pjTUQ8eOfc6m/natGHgKFBK9DxFmIm69YmaRVQrGgFlEfc1HePIurY0TmDeROK05rIg==", + "dev": true, + "dependencies": { + "browserslist": "^4.21.4", + "caniuse-api": "^3.0.0" + }, + "engines": { + "node": "^10 || ^12 || >=14.0" + }, + "peerDependencies": { + "postcss": "^8.2.15" + } + }, + "node_modules/postcss-reduce-transforms": { + "version": "5.1.0", + "resolved": "https://registry.npmjs.org/postcss-reduce-transforms/-/postcss-reduce-transforms-5.1.0.tgz", + "integrity": "sha512-2fbdbmgir5AvpW9RLtdONx1QoYG2/EtqpNQbFASDlixBbAYuTcJ0dECwlqNqH7VbaUnEnh8SrxOe2sRIn24XyQ==", + "dev": true, + "dependencies": { + "postcss-value-parser": "^4.2.0" + }, + "engines": { + "node": "^10 || ^12 || >=14.0" + }, + "peerDependencies": { + "postcss": "^8.2.15" + } + }, + "node_modules/postcss-scss": { + "version": "2.1.1", + "resolved": "https://registry.npmjs.org/postcss-scss/-/postcss-scss-2.1.1.tgz", + "integrity": "sha512-jQmGnj0hSGLd9RscFw9LyuSVAa5Bl1/KBPqG1NQw9w8ND55nY4ZEsdlVuYJvLPpV+y0nwTV5v/4rHPzZRihQbA==", + "dependencies": { + "postcss": "^7.0.6" + }, + "engines": { + "node": ">=6.0.0" + } + }, + "node_modules/postcss-scss/node_modules/picocolors": { + "version": "0.2.1", + "resolved": "https://registry.npmjs.org/picocolors/-/picocolors-0.2.1.tgz", + "integrity": "sha512-cMlDqaLEqfSaW8Z7N5Jw+lyIW869EzT73/F5lhtY9cLGoVxSXznfgfXMO0Z5K0o0Q2TkTXq+0KFsdnSe3jDViA==" + }, + "node_modules/postcss-scss/node_modules/postcss": { + "version": "7.0.39", + "resolved": "https://registry.npmjs.org/postcss/-/postcss-7.0.39.tgz", + "integrity": "sha512-yioayjNbHn6z1/Bywyb2Y4s3yvDAeXGOyxqD+LnVOinq6Mdmd++SW2wUNVzavyyHxd6+DxzWGIuosg6P1Rj8uA==", + "dependencies": { + "picocolors": "^0.2.1", + "source-map": "^0.6.1" + }, + "engines": { + "node": ">=6.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/postcss/" + } + }, + "node_modules/postcss-selector-parser": { + "version": "6.0.11", + "resolved": "https://registry.npmjs.org/postcss-selector-parser/-/postcss-selector-parser-6.0.11.tgz", + "integrity": "sha512-zbARubNdogI9j7WY4nQJBiNqQf3sLS3wCP4WfOidu+p28LofJqDH1tcXypGrcmMHhDk2t9wGhCsYe/+szLTy1g==", + "dev": true, + "dependencies": { + "cssesc": "^3.0.0", + "util-deprecate": "^1.0.2" + }, + "engines": { + "node": ">=4" + } + }, + "node_modules/postcss-svgo": { + "version": "5.1.0", + "resolved": "https://registry.npmjs.org/postcss-svgo/-/postcss-svgo-5.1.0.tgz", + "integrity": "sha512-D75KsH1zm5ZrHyxPakAxJWtkyXew5qwS70v56exwvw542d9CRtTo78K0WeFxZB4G7JXKKMbEZtZayTGdIky/eA==", + "dev": true, + "dependencies": { + "postcss-value-parser": "^4.2.0", + "svgo": "^2.7.0" + }, + "engines": { + "node": "^10 || ^12 || >=14.0" + }, + "peerDependencies": { + "postcss": "^8.2.15" + } + }, + "node_modules/postcss-unique-selectors": { + "version": "5.1.1", + "resolved": "https://registry.npmjs.org/postcss-unique-selectors/-/postcss-unique-selectors-5.1.1.tgz", + "integrity": "sha512-5JiODlELrz8L2HwxfPnhOWZYWDxVHWL83ufOv84NrcgipI7TaeRsatAhK4Tr2/ZiYldpK/wBvw5BD3qfaK96GA==", + "dev": true, + "dependencies": { + "postcss-selector-parser": "^6.0.5" + }, + "engines": { + "node": "^10 || ^12 || >=14.0" + }, + "peerDependencies": { + "postcss": "^8.2.15" + } + }, + "node_modules/postcss-value-parser": { + "version": "4.2.0", + "resolved": "https://registry.npmjs.org/postcss-value-parser/-/postcss-value-parser-4.2.0.tgz", + "integrity": "sha512-1NNCs6uurfkVbeXG4S8JFT9t19m45ICnif8zWLd5oPSZ50QnwMfK+H3jv408d4jw/7Bttv5axS5IiHoLaVNHeQ==", + "dev": true + }, + "node_modules/postcss-values-parser": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/postcss-values-parser/-/postcss-values-parser-2.0.1.tgz", + "integrity": "sha512-2tLuBsA6P4rYTNKCXYG/71C7j1pU6pK503suYOmn4xYrQIzW+opD+7FAFNuGSdZC/3Qfy334QbeMu7MEb8gOxg==", + "dependencies": { + "flatten": "^1.0.2", + "indexes-of": "^1.0.1", + "uniq": "^1.0.1" + }, + "engines": { + "node": ">=6.14.4" + } + }, + "node_modules/prelude-ls": { + "version": "1.1.2", + "resolved": "https://registry.npmjs.org/prelude-ls/-/prelude-ls-1.1.2.tgz", + "integrity": "sha512-ESF23V4SKG6lVSGZgYNpbsiaAkdab6ZgOxe52p7+Kid3W3u3bxR4Vfd/o21dmN7jSt0IwgZ4v5MUd26FEtXE9w==", + "engines": { + "node": ">= 0.8.0" + } + }, + "node_modules/prettier": { + "version": "2.8.7", + "resolved": "https://registry.npmjs.org/prettier/-/prettier-2.8.7.tgz", + "integrity": "sha512-yPngTo3aXUUmyuTjeTUT75txrf+aMh9FiD7q9ZE/i6r0bPb22g4FsE6Y338PQX1bmfy08i9QQCB7/rcUAVntfw==", + "peer": true, + "bin": { + "prettier": "bin-prettier.js" + }, + "engines": { + "node": ">=10.13.0" + }, + "funding": { + "url": "https://github.com/prettier/prettier?sponsor=1" + } + }, + "node_modules/prettier-plugin-x": { + "version": "0.0.10", + "resolved": "https://registry.npmjs.org/prettier-plugin-x/-/prettier-plugin-x-0.0.10.tgz", + "integrity": "sha512-uxYOYXNyMvkWs3ZkfXSP6yT4R45Gg2lZxAqeTj5hoIjdLPzMEyTqOMU8lh7wb1hLYDvxGjK37yYKotSDD22H8g==", + "dependencies": { + "x-formatter": "^0.0.2" + }, + "peerDependencies": { + "prettier": "^2.0.0" + } + }, + "node_modules/pretty-time": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/pretty-time/-/pretty-time-1.1.0.tgz", + "integrity": "sha512-28iF6xPQrP8Oa6uxE6a1biz+lWeTOAPKggvjB8HAs6nVMKZwf5bG++632Dx614hIWgUPkgivRfG+a8uAXGTIbA==", + "dev": true, + "engines": { + "node": ">=4" + } + }, + "node_modules/prism-themes": { + "version": "1.9.0", + "resolved": "https://registry.npmjs.org/prism-themes/-/prism-themes-1.9.0.tgz", + "integrity": "sha512-tX2AYsehKDw1EORwBps+WhBFKc2kxfoFpQAjxBndbZKr4fRmMkv47XN0BghC/K1qwodB1otbe4oF23vUTFDokw==" + }, + "node_modules/prismjs": { + "version": "1.29.0", + "resolved": "https://registry.npmjs.org/prismjs/-/prismjs-1.29.0.tgz", + "integrity": "sha512-Kx/1w86q/epKcmte75LNrEoT+lX8pBpavuAbvJWRXar7Hz8jrtF+e3vY751p0R8H9HdArwaCTNDDzHg/ScJK1Q==", + "engines": { + "node": ">=6" + } + }, + "node_modules/process": { + "version": "0.11.10", + "resolved": "https://registry.npmjs.org/process/-/process-0.11.10.tgz", + "integrity": "sha512-cdGef/drWFoydD1JsMzuFf8100nZl+GT+yacc2bEced5f9Rjk4z+WtFUTBu9PhOi9j/jfmBPu0mMEY4wIdAF8A==", + "dev": true, + "engines": { + "node": ">= 0.6.0" + } + }, + "node_modules/process-nextick-args": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/process-nextick-args/-/process-nextick-args-2.0.1.tgz", + "integrity": "sha512-3ouUOpQhtgrbOa17J7+uxOTpITYWaGP7/AhoR3+A+/1e9skrzelGi/dXzEYyvbxubEF6Wn2ypscTKiKJFFn1ag==" + }, + "node_modules/prop-types": { + "version": "15.8.1", + "resolved": "https://registry.npmjs.org/prop-types/-/prop-types-15.8.1.tgz", + "integrity": "sha512-oj87CgZICdulUohogVAR7AjlC0327U4el4L6eAvOqCeudMDVU0NThNaV+b9Df4dXgSP1gXMTnPdhfe/2qDH5cg==", + "peer": true, + "dependencies": { + "loose-envify": "^1.4.0", + "object-assign": "^4.1.1", + "react-is": "^16.13.1" + } + }, + "node_modules/propagating-hammerjs": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/propagating-hammerjs/-/propagating-hammerjs-2.0.1.tgz", + "integrity": "sha512-PH3zG5whbSxMocphXJzVtvKr+vWAgfkqVvtuwjSJ/apmEACUoiw6auBAT5HYXpZOR0eGcTAfYG5Yl8h91O5Elg==", + "peer": true, + "peerDependencies": { + "@egjs/hammerjs": "^2.0.17" + } + }, + "node_modules/proxy-addr": { + "version": "2.0.7", + "resolved": "https://registry.npmjs.org/proxy-addr/-/proxy-addr-2.0.7.tgz", + "integrity": "sha512-llQsMLSUDUPT44jdrU/O37qlnifitDP+ZwrmmZcoSKyLKvtZxpyV0n2/bD/N4tBAAZ/gJEdZU7KMraoK1+XYAg==", + "dev": true, + "dependencies": { + "forwarded": "0.2.0", + "ipaddr.js": "1.9.1" + }, + "engines": { + "node": ">= 0.10" + } + }, + "node_modules/proxy-addr/node_modules/ipaddr.js": { + "version": "1.9.1", + "resolved": "https://registry.npmjs.org/ipaddr.js/-/ipaddr.js-1.9.1.tgz", + "integrity": "sha512-0KI/607xoxSToH7GjN1FfSbLoU0+btTicjsQSWQlh/hZykN8KpmMf7uYwPW3R+akZ6R/w18ZlXSHBYXiYUPO3g==", + "dev": true, + "engines": { + "node": ">= 0.10" + } + }, + "node_modules/proxy-from-env": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/proxy-from-env/-/proxy-from-env-1.1.0.tgz", + "integrity": "sha512-D+zkORCbA9f1tdWRK0RaCR3GPv50cMxcrz4X8k5LTSUD1Dkw47mKJEZQNunItRTkWwgtaUSo1RVFRIG9ZXiFYg==", + "dev": true + }, + "node_modules/pseudomap": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/pseudomap/-/pseudomap-1.0.2.tgz", + "integrity": "sha512-b/YwNhb8lk1Zz2+bXXpS/LK9OisiZZ1SNsSLxN1x2OXVEhW2Ckr/7mWE5vrC1ZTiJlD9g19jWszTmJsB+oEpFQ==" + }, + "node_modules/pstree.remy": { + "version": "1.1.8", + "resolved": "https://registry.npmjs.org/pstree.remy/-/pstree.remy-1.1.8.tgz", + "integrity": "sha512-77DZwxQmxKnu3aR542U+X8FypNzbfJ+C5XQDk3uWjWxn6151aIMGthWYRXTqT1E5oJvg+ljaa2OJi+VfvCOQ8w==" + }, + "node_modules/public-encrypt": { + "version": "4.0.3", + "resolved": "https://registry.npmjs.org/public-encrypt/-/public-encrypt-4.0.3.tgz", + "integrity": "sha512-zVpa8oKZSz5bTMTFClc1fQOnyyEzpl5ozpi1B5YcvBrdohMjH2rfsBtyXcuNuwjsDIXmBYlF2N5FlJYhR29t8Q==", + "dev": true, + "dependencies": { + "bn.js": "^4.1.0", + "browserify-rsa": "^4.0.0", + "create-hash": "^1.1.0", + "parse-asn1": "^5.0.0", + "randombytes": "^2.0.1", + "safe-buffer": "^5.1.2" + } + }, + "node_modules/public-encrypt/node_modules/bn.js": { + "version": "4.12.0", + "resolved": "https://registry.npmjs.org/bn.js/-/bn.js-4.12.0.tgz", + "integrity": "sha512-c98Bf3tPniI+scsdk237ku1Dc3ujXQTSgyiPUDEOe7tRkhrqridvh8klBv0HCEso1OLOYcHuCv/cS6DNxKH+ZA==", + "dev": true + }, + "node_modules/punycode": { + "version": "1.4.1", + "resolved": "https://registry.npmjs.org/punycode/-/punycode-1.4.1.tgz", + "integrity": "sha512-jmYNElW7yvO7TV33CjSmvSiE2yco3bV2czu/OzDKdMNVZQWfxCblURLhf+47syQRBntjfLdd/H0egrzIG+oaFQ==", + "dev": true + }, + "node_modules/purgecss": { + "version": "3.1.3", + "resolved": "https://registry.npmjs.org/purgecss/-/purgecss-3.1.3.tgz", + "integrity": "sha512-hRSLN9mguJ2lzlIQtW4qmPS2kh6oMnA9RxdIYK8sz18QYqd6ePp4GNDl18oWHA1f2v2NEQIh51CO8s/E3YGckQ==", + "dev": true, + "dependencies": { + "commander": "^6.0.0", + "glob": "^7.0.0", + "postcss": "^8.2.1", + "postcss-selector-parser": "^6.0.2" + }, + "bin": { + "purgecss": "bin/purgecss.js" + } + }, + "node_modules/purgecss/node_modules/commander": { + "version": "6.2.1", + "resolved": "https://registry.npmjs.org/commander/-/commander-6.2.1.tgz", + "integrity": "sha512-U7VdrJFnJgo4xjrHpTzu0yrHPGImdsmD95ZlgYSEajAn2JKzDhDTPG9kBTefmObL2w/ngeZnilk+OV9CG3d7UA==", + "dev": true, + "engines": { + "node": ">= 6" + } + }, + "node_modules/q": { + "version": "1.5.1", + "resolved": "https://registry.npmjs.org/q/-/q-1.5.1.tgz", + "integrity": "sha512-kV/CThkXo6xyFEZUugw/+pIOywXcDbFYgSct5cT3gqlbkBE1SJdwy6UQoZvodiWF/ckQLZyDE/Bu1M6gVu5lVw==", + "dev": true, + "engines": { + "node": ">=0.6.0", + "teleport": ">=0.2.0" + } + }, + "node_modules/qs": { + "version": "6.11.0", + "resolved": "https://registry.npmjs.org/qs/-/qs-6.11.0.tgz", + "integrity": "sha512-MvjoMCJwEarSbUYk5O+nmoSzSutSsTwF85zcHPQ9OrlFoZOYIjaqBAJIqIXjptyD5vThxGq52Xu/MaJzRkIk4Q==", + "dev": true, + "dependencies": { + "side-channel": "^1.0.4" + }, + "engines": { + "node": ">=0.6" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/querystring": { + "version": "0.2.0", + "resolved": "https://registry.npmjs.org/querystring/-/querystring-0.2.0.tgz", + "integrity": "sha512-X/xY82scca2tau62i9mDyU9K+I+djTMUsvwf7xnUX5GLvVzgJybOJf4Y6o9Zx3oJK/LSXg5tTZBjwzqVPaPO2g==", + "deprecated": "The querystring API is considered Legacy. new code should use the URLSearchParams API instead.", + "dev": true, + "engines": { + "node": ">=0.4.x" + } + }, + "node_modules/querystring-es3": { + "version": "0.2.1", + "resolved": "https://registry.npmjs.org/querystring-es3/-/querystring-es3-0.2.1.tgz", + "integrity": "sha512-773xhDQnZBMFobEiztv8LIl70ch5MSF/jUQVlhwFyBILqq96anmoctVIYz+ZRp0qbCKATTn6ev02M3r7Ga5vqA==", + "dev": true, + "engines": { + "node": ">=0.4.x" + } + }, + "node_modules/queue-microtask": { + "version": "1.2.3", + "resolved": "https://registry.npmjs.org/queue-microtask/-/queue-microtask-1.2.3.tgz", + "integrity": "sha512-NuaNSa6flKT5JaSYQzJok04JzTL1CA6aGhv5rfLW3PgqA+M2ChpZQnAC8h8i4ZFkBS8X5RqkDBHA7r4hej3K9A==", + "funding": [ + { + "type": "github", + "url": "https://github.com/sponsors/feross" + }, + { + "type": "patreon", + "url": "https://www.patreon.com/feross" + }, + { + "type": "consulting", + "url": "https://feross.org/support" + } + ] + }, + "node_modules/quill": { + "version": "1.3.7", + "resolved": "https://registry.npmjs.org/quill/-/quill-1.3.7.tgz", + "integrity": "sha512-hG/DVzh/TiknWtE6QmWAF/pxoZKYxfe3J/d/+ShUWkDvvkZQVTPeVmUJVu1uE6DDooC4fWTiCLh84ul89oNz5g==", + "dependencies": { + "clone": "^2.1.1", + "deep-equal": "^1.0.1", + "eventemitter3": "^2.0.3", + "extend": "^3.0.2", + "parchment": "^1.1.4", + "quill-delta": "^3.6.2" + } + }, + "node_modules/quill-delta": { + "version": "3.6.3", + "resolved": "https://registry.npmjs.org/quill-delta/-/quill-delta-3.6.3.tgz", + "integrity": "sha512-wdIGBlcX13tCHOXGMVnnTVFtGRLoP0imqxM696fIPwIf5ODIYUHIvHbZcyvGlZFiFhK5XzDC2lpjbxRhnM05Tg==", + "dependencies": { + "deep-equal": "^1.0.1", + "extend": "^3.0.2", + "fast-diff": "1.1.2" + }, + "engines": { + "node": ">=0.10" + } + }, + "node_modules/quill/node_modules/clone": { + "version": "2.1.2", + "resolved": "https://registry.npmjs.org/clone/-/clone-2.1.2.tgz", + "integrity": "sha512-3Pe/CF1Nn94hyhIYpjtiLhdCoEoz0DqQ+988E9gmeEdQZlojxnOb74wctFyuwWQHzqyf9X7C7MG8juUpqBJT8w==", + "engines": { + "node": ">=0.8" + } + }, + "node_modules/qunit": { + "version": "2.19.4", + "resolved": "https://registry.npmjs.org/qunit/-/qunit-2.19.4.tgz", + "integrity": "sha512-aqUzzUeCqlleWYKlpgfdHHw9C6KxkB9H3wNfiBg5yHqQMzy0xw/pbCRHYFkjl8MsP/t8qkTQE+JTYL71azgiew==", + "dependencies": { + "commander": "7.2.0", + "node-watch": "0.7.3", + "tiny-glob": "0.2.9" + }, + "bin": { + "qunit": "bin/qunit.js" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/quote-stream": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/quote-stream/-/quote-stream-1.0.2.tgz", + "integrity": "sha512-kKr2uQ2AokadPjvTyKJQad9xELbZwYzWlNfI3Uz2j/ib5u6H9lDP7fUUR//rMycd0gv4Z5P1qXMfXR8YpIxrjQ==", + "dependencies": { + "buffer-equal": "0.0.1", + "minimist": "^1.1.3", + "through2": "^2.0.0" + }, + "bin": { + "quote-stream": "bin/cmd.js" + } + }, + "node_modules/randombytes": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/randombytes/-/randombytes-2.1.0.tgz", + "integrity": "sha512-vYl3iOX+4CKUWuxGi9Ukhie6fsqXqS9FE2Zaic4tNFD2N2QQaXOMFbuKK4QmDHC0JO6B1Zp41J0LpT0oR68amQ==", + "dev": true, + "dependencies": { + "safe-buffer": "^5.1.0" + } + }, + "node_modules/randomfill": { + "version": "1.0.4", + "resolved": "https://registry.npmjs.org/randomfill/-/randomfill-1.0.4.tgz", + "integrity": "sha512-87lcbR8+MhcWcUiQ+9e+Rwx8MyR2P7qnt15ynUlbm3TU/fjbgz4GsvfSUDTemtCCtVCqb4ZcEFlyPNTh9bBTLw==", + "dev": true, + "dependencies": { + "randombytes": "^2.0.5", + "safe-buffer": "^5.1.0" + } + }, + "node_modules/range-parser": { + "version": "1.2.1", + "resolved": "https://registry.npmjs.org/range-parser/-/range-parser-1.2.1.tgz", + "integrity": "sha512-Hrgsx+orqoygnmhFbKaHE6c296J+HTAQXoxEF6gNupROmmGJRoyzfG3ccAveqCBrwr/2yxQ5BVd/GTl5agOwSg==", + "dev": true, + "engines": { + "node": ">= 0.6" + } + }, + "node_modules/raw-body": { + "version": "2.5.1", + "resolved": "https://registry.npmjs.org/raw-body/-/raw-body-2.5.1.tgz", + "integrity": "sha512-qqJBtEyVgS0ZmPGdCFPWJ3FreoqvG4MVQln/kCgF7Olq95IbOp0/BWyMwbdtn4VTvkM8Y7khCQ2Xgk/tcrCXig==", + "dev": true, + "dependencies": { + "bytes": "3.1.2", + "http-errors": "2.0.0", + "iconv-lite": "0.4.24", + "unpipe": "1.0.0" + }, + "engines": { + "node": ">= 0.8" + } + }, + "node_modules/raw-body/node_modules/bytes": { + "version": "3.1.2", + "resolved": "https://registry.npmjs.org/bytes/-/bytes-3.1.2.tgz", + "integrity": "sha512-/Nf7TyzTx6S3yRJObOAV7956r8cr2+Oj8AC5dt8wSP3BQAoeX58NoHyCU8P8zGkNXStjTSi6fzO6F0pBdcYbEg==", + "dev": true, + "engines": { + "node": ">= 0.8" + } + }, + "node_modules/raw-body/node_modules/iconv-lite": { + "version": "0.4.24", + "resolved": "https://registry.npmjs.org/iconv-lite/-/iconv-lite-0.4.24.tgz", + "integrity": "sha512-v3MXnZAcvnywkTUEZomIActle7RXXeedOR31wwl7VlyoXO4Qi9arvSenNQWne1TcRwhCL1HwLI21bEqdpj8/rA==", + "dev": true, + "dependencies": { + "safer-buffer": ">= 2.1.2 < 3" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/react-is": { + "version": "16.13.1", + "resolved": "https://registry.npmjs.org/react-is/-/react-is-16.13.1.tgz", + "integrity": "sha512-24e6ynE2H+OKt4kqsOvNd8kBpV65zoxbA4BVsEOB3ARVWQki/DHzaUoC5KuON/BiccDaCCTZBuOcfZs70kR8bQ==", + "peer": true + }, + "node_modules/read-cache": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/read-cache/-/read-cache-1.0.0.tgz", + "integrity": "sha512-Owdv/Ft7IjOgm/i0xvNDZ1LrRANRfew4b2prF3OWMQLxLfu3bS8FVhCsrSCMK4lR56Y9ya+AThoTpDCTxCmpRA==", + "dev": true, + "dependencies": { + "pify": "^2.3.0" + } + }, + "node_modules/readable-stream": { + "version": "2.3.8", + "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-2.3.8.tgz", + "integrity": "sha512-8p0AUk4XODgIewSi0l8Epjs+EVnWiK7NoDIEGU0HhE7+ZyY8D1IMY7odu5lRrFXGg71L15KG8QrPmum45RTtdA==", + "dependencies": { + "core-util-is": "~1.0.0", + "inherits": "~2.0.3", + "isarray": "~1.0.0", + "process-nextick-args": "~2.0.0", + "safe-buffer": "~5.1.1", + "string_decoder": "~1.1.1", + "util-deprecate": "~1.0.1" + } + }, + "node_modules/readable-stream/node_modules/safe-buffer": { + "version": "5.1.2", + "resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.1.2.tgz", + "integrity": "sha512-Gd2UZBJDkXlY7GbJxfsE8/nvKkUEU1G38c1siN6QP6a9PT9MmHB8GnpscSmMJSoF8LOIrt8ud/wPtojys4G6+g==" + }, + "node_modules/readable-stream/node_modules/string_decoder": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/string_decoder/-/string_decoder-1.1.1.tgz", + "integrity": "sha512-n/ShnvDi6FHbbVfviro+WojiFzv+s8MPMHBczVePfUpDJLwoLT0ht1l4YwBCbi8pJAveEEdnkHyPyTP/mzRfwg==", + "dependencies": { + "safe-buffer": "~5.1.0" + } + }, + "node_modules/readdirp": { + "version": "3.6.0", + "resolved": "https://registry.npmjs.org/readdirp/-/readdirp-3.6.0.tgz", + "integrity": "sha512-hOS089on8RduqdbhvQ5Z37A0ESjsqz6qnRcffsMU3495FuTdqSm+7bhJ29JvIOsBDEEnan5DPu9t3To9VRlMzA==", + "dependencies": { + "picomatch": "^2.2.1" + }, + "engines": { + "node": ">=8.10.0" + } + }, + "node_modules/rechoir": { + "version": "0.7.1", + "resolved": "https://registry.npmjs.org/rechoir/-/rechoir-0.7.1.tgz", + "integrity": "sha512-/njmZ8s1wVeR6pjTZ+0nCnv8SpZNRMT2D1RLOJQESlYFDBvwpTA4KWJpZ+sBJ4+vhjILRcK7JIFdGCdxEAAitg==", + "dev": true, + "dependencies": { + "resolve": "^1.9.0" + }, + "engines": { + "node": ">= 0.10" + } + }, + "node_modules/regenerate": { + "version": "1.4.2", + "resolved": "https://registry.npmjs.org/regenerate/-/regenerate-1.4.2.tgz", + "integrity": "sha512-zrceR/XhGYU/d/opr2EKO7aRHUeiBI8qjtfHqADTwZd6Szfy16la6kqD0MIUs5z5hx6AaKa+PixpPrR289+I0A==", + "dev": true + }, + "node_modules/regenerate-unicode-properties": { + "version": "10.1.0", + "resolved": "https://registry.npmjs.org/regenerate-unicode-properties/-/regenerate-unicode-properties-10.1.0.tgz", + "integrity": "sha512-d1VudCLoIGitcU/hEg2QqvyGZQmdC0Lf8BqdOMXGFSvJP4bNV1+XqbPQeHHLD51Jh4QJJ225dlIFvY4Ly6MXmQ==", + "dev": true, + "dependencies": { + "regenerate": "^1.4.2" + }, + "engines": { + "node": ">=4" + } + }, + "node_modules/regenerator-runtime": { + "version": "0.13.11", + "resolved": "https://registry.npmjs.org/regenerator-runtime/-/regenerator-runtime-0.13.11.tgz", + "integrity": "sha512-kY1AZVr2Ra+t+piVaJ4gxaFaReZVH40AKNo7UCX6W+dEwBo/2oZJzqfuN1qLq1oL45o56cPaTXELwrTh8Fpggg==", + "dev": true + }, + "node_modules/regenerator-transform": { + "version": "0.15.1", + "resolved": "https://registry.npmjs.org/regenerator-transform/-/regenerator-transform-0.15.1.tgz", + "integrity": "sha512-knzmNAcuyxV+gQCufkYcvOqX/qIIfHLv0u5x79kRxuGojfYVky1f15TzZEu2Avte8QGepvUNTnLskf8E6X6Vyg==", + "dev": true, + "dependencies": { + "@babel/runtime": "^7.8.4" + } + }, + "node_modules/regex-parser": { + "version": "2.2.11", + "resolved": "https://registry.npmjs.org/regex-parser/-/regex-parser-2.2.11.tgz", + "integrity": "sha512-jbD/FT0+9MBU2XAZluI7w2OBs1RBi6p9M83nkoZayQXXU9e8Robt69FcZc7wU4eJD/YFTjn1JdCk3rbMJajz8Q==", + "dev": true + }, + "node_modules/regexp-util": { + "version": "1.2.2", + "resolved": "https://registry.npmjs.org/regexp-util/-/regexp-util-1.2.2.tgz", + "integrity": "sha512-5/rl2UD18oAlLQEIuKBeiSIOp1hb5wCXcakl5yvHxlY1wyWI4D5cUKKzCibBeu741PA9JKvZhMqbkDQqPusX3w==", + "dependencies": { + "tslib": "^1.9.0" + }, + "engines": { + "node": ">= 4" + } + }, + "node_modules/regexp-util/node_modules/tslib": { + "version": "1.14.1", + "resolved": "https://registry.npmjs.org/tslib/-/tslib-1.14.1.tgz", + "integrity": "sha512-Xni35NKzjgMrwevysHTCArtLDpPvye8zV/0E4EyYn43P7/7qvQwPh9BGkHewbMulVntbigmcT7rdX3BNo9wRJg==" + }, + "node_modules/regexp.prototype.flags": { + "version": "1.4.3", + "resolved": "https://registry.npmjs.org/regexp.prototype.flags/-/regexp.prototype.flags-1.4.3.tgz", + "integrity": "sha512-fjggEOO3slI6Wvgjwflkc4NFRCTZAu5CnNfBd5qOMYhWdn67nJBBu34/TkD++eeFmd8C9r9jfXJ27+nSiRkSUA==", + "dependencies": { + "call-bind": "^1.0.2", + "define-properties": "^1.1.3", + "functions-have-names": "^1.2.2" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/regexpu-core": { + "version": "5.3.2", + "resolved": "https://registry.npmjs.org/regexpu-core/-/regexpu-core-5.3.2.tgz", + "integrity": "sha512-RAM5FlZz+Lhmo7db9L298p2vHP5ZywrVXmVXpmAD9GuL5MPH6t9ROw1iA/wfHkQ76Qe7AaPF0nGuim96/IrQMQ==", + "dev": true, + "dependencies": { + "@babel/regjsgen": "^0.8.0", + "regenerate": "^1.4.2", + "regenerate-unicode-properties": "^10.1.0", + "regjsparser": "^0.9.1", + "unicode-match-property-ecmascript": "^2.0.0", + "unicode-match-property-value-ecmascript": "^2.1.0" + }, + "engines": { + "node": ">=4" + } + }, + "node_modules/regjsparser": { + "version": "0.9.1", + "resolved": "https://registry.npmjs.org/regjsparser/-/regjsparser-0.9.1.tgz", + "integrity": "sha512-dQUtn90WanSNl+7mQKcXAgZxvUe7Z0SqXlgzv0za4LwiUhyzBC58yQO3liFoUgu8GiJVInAhJjkj1N0EtQ5nkQ==", + "dev": true, + "dependencies": { + "jsesc": "~0.5.0" + }, + "bin": { + "regjsparser": "bin/parser" + } + }, + "node_modules/regjsparser/node_modules/jsesc": { + "version": "0.5.0", + "resolved": "https://registry.npmjs.org/jsesc/-/jsesc-0.5.0.tgz", + "integrity": "sha512-uZz5UnB7u4T9LvwmFqXii7pZSouaRPorGs5who1Ip7VO0wxanFvBL7GkM6dTHlgX+jhBApRetaWpnDabOeTcnA==", + "dev": true, + "bin": { + "jsesc": "bin/jsesc" + } + }, + "node_modules/relateurl": { + "version": "0.2.7", + "resolved": "https://registry.npmjs.org/relateurl/-/relateurl-0.2.7.tgz", + "integrity": "sha512-G08Dxvm4iDN3MLM0EsP62EDV9IuhXPR6blNz6Utcp7zyV3tr4HVNINt6MpaRWbxoOHT3Q7YN2P+jaHX8vUbgog==", + "dev": true, + "engines": { + "node": ">= 0.10" + } + }, + "node_modules/remark-math": { + "version": "1.0.6", + "resolved": "https://registry.npmjs.org/remark-math/-/remark-math-1.0.6.tgz", + "integrity": "sha512-I43wU/QOQpXvVFXKjA4FHp5xptK65+5F6yolm8+69/JV0EqSOB64wURUZ3JK50JtnTL8FvwLiH2PZ+fvsBxviA==", + "dependencies": { + "trim-trailing-lines": "^1.1.0" + }, + "peerDependencies": { + "remark-parse": "^3.0.0 || ^4.0.0 || ^5.0.0 || ^6.0.0" + } + }, + "node_modules/remark-parse": { + "version": "6.0.3", + "resolved": "https://registry.npmjs.org/remark-parse/-/remark-parse-6.0.3.tgz", + "integrity": "sha512-QbDXWN4HfKTUC0hHa4teU463KclLAnwpn/FBn87j9cKYJWWawbiLgMfP2Q4XwhxxuuuOxHlw+pSN0OKuJwyVvg==", + "peer": true, + "dependencies": { + "collapse-white-space": "^1.0.2", + "is-alphabetical": "^1.0.0", + "is-decimal": "^1.0.0", + "is-whitespace-character": "^1.0.0", + "is-word-character": "^1.0.0", + "markdown-escapes": "^1.0.0", + "parse-entities": "^1.1.0", + "repeat-string": "^1.5.4", + "state-toggle": "^1.0.0", + "trim": "0.0.1", + "trim-trailing-lines": "^1.0.0", + "unherit": "^1.0.4", + "unist-util-remove-position": "^1.0.0", + "vfile-location": "^2.0.0", + "xtend": "^4.0.1" + } + }, + "node_modules/remark-parse/node_modules/trim": { + "version": "0.0.1", + "resolved": "https://registry.npmjs.org/trim/-/trim-0.0.1.tgz", + "integrity": "sha512-YzQV+TZg4AxpKxaTHK3c3D+kRDCGVEE7LemdlQZoQXn0iennk10RsIoY6ikzAqJTc9Xjl9C1/waHom/J86ziAQ==", + "deprecated": "Use String.prototype.trim() instead", + "peer": true + }, + "node_modules/repeat-string": { + "version": "1.6.1", + "resolved": "https://registry.npmjs.org/repeat-string/-/repeat-string-1.6.1.tgz", + "integrity": "sha512-PV0dzCYDNfRi1jCDbJzpW7jNNDRuCOG/jI5ctQcGKt/clZD+YcPS3yIlWuTJMmESC8aevCFmWJy5wjAFgNqN6w==", + "engines": { + "node": ">=0.10" + } + }, + "node_modules/replace-ext": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/replace-ext/-/replace-ext-1.0.1.tgz", + "integrity": "sha512-yD5BHCe7quCgBph4rMQ+0KkIRKwWCrHDOX1p1Gp6HwjPM5kVoCdKGNhN7ydqqsX6lJEnQDKZ/tFMiEdQ1dvPEw==", + "dev": true, + "engines": { + "node": ">= 0.10" + } + }, + "node_modules/replace-in-file-webpack-plugin": { + "version": "1.0.6", + "resolved": "https://registry.npmjs.org/replace-in-file-webpack-plugin/-/replace-in-file-webpack-plugin-1.0.6.tgz", + "integrity": "sha512-+KRgNYL2nbc6nza6SeF+wTBNkovuHFTfJF8QIEqZg5MbwkYpU9no0kH2YU354wvY/BK8mAC2UKoJ7q+sJTvciw==", + "dev": true + }, + "node_modules/require-directory": { + "version": "2.1.1", + "resolved": "https://registry.npmjs.org/require-directory/-/require-directory-2.1.1.tgz", + "integrity": "sha512-fGxEI7+wsG9xrvdjsrlmL22OMTTiHRwAMroiEeMgq8gzoLC/PQr7RsRDSTLUg/bZAZtF+TVIkHc6/4RIKrui+Q==", + "dev": true, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/require-from-string": { + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/require-from-string/-/require-from-string-2.0.2.tgz", + "integrity": "sha512-Xf0nWe6RseziFMu+Ap9biiUbmplq6S9/p+7w7YXP/JBHhrUDDUhwa+vANyubuqfZWTveU//DYVGsDG7RKL/vEw==", + "dev": true, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/requires-port": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/requires-port/-/requires-port-1.0.0.tgz", + "integrity": "sha512-KigOCHcocU3XODJxsu8i/j8T9tzT4adHiecwORRQ0ZZFcp7ahwXuRU1m+yuO90C5ZUyGeGfocHDI14M3L3yDAQ==", + "dev": true + }, + "node_modules/resolve": { + "version": "1.22.2", + "resolved": "https://registry.npmjs.org/resolve/-/resolve-1.22.2.tgz", + "integrity": "sha512-Sb+mjNHOULsBv818T40qSPeRiuWLyaGMa5ewydRLFimneixmVy2zdivRl+AF6jaYPC8ERxGDmFSiqui6SfPd+g==", + "dependencies": { + "is-core-module": "^2.11.0", + "path-parse": "^1.0.7", + "supports-preserve-symlinks-flag": "^1.0.0" + }, + "bin": { + "resolve": "bin/resolve" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/resolve-cwd": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/resolve-cwd/-/resolve-cwd-3.0.0.tgz", + "integrity": "sha512-OrZaX2Mb+rJCpH/6CpSqt9xFVpN++x01XnN2ie9g6P5/3xelLAkXWVADpdz1IHD/KFfEXyE6V0U01OQ3UO2rEg==", + "dev": true, + "dependencies": { + "resolve-from": "^5.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/resolve-cwd/node_modules/resolve-from": { + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/resolve-from/-/resolve-from-5.0.0.tgz", + "integrity": "sha512-qYg9KP24dD5qka9J47d0aVky0N+b4fTU89LN9iDnjB5waksiC49rvMB0PrUJQGoTmH50XPiqOvAjDfaijGxYZw==", + "dev": true, + "engines": { + "node": ">=8" + } + }, + "node_modules/resolve-from": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/resolve-from/-/resolve-from-4.0.0.tgz", + "integrity": "sha512-pb/MYmXstAkysRFx8piNI1tGFNQIFA3vkE3Gq4EuA1dF6gHp/+vgZqsCGJapvy8N3Q+4o7FwvquPJcnZ7RYy4g==", + "engines": { + "node": ">=4" + } + }, + "node_modules/resolve-url-loader": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/resolve-url-loader/-/resolve-url-loader-4.0.0.tgz", + "integrity": "sha512-05VEMczVREcbtT7Bz+C+96eUO5HDNvdthIiMB34t7FcF8ehcu4wC0sSgPUubs3XW2Q3CNLJk/BJrCU9wVRymiA==", + "dev": true, + "dependencies": { + "adjust-sourcemap-loader": "^4.0.0", + "convert-source-map": "^1.7.0", + "loader-utils": "^2.0.0", + "postcss": "^7.0.35", + "source-map": "0.6.1" + }, + "engines": { + "node": ">=8.9" + }, + "peerDependencies": { + "rework": "1.0.1", + "rework-visit": "1.0.0" + }, + "peerDependenciesMeta": { + "rework": { + "optional": true + }, + "rework-visit": { + "optional": true + } + } + }, + "node_modules/resolve-url-loader/node_modules/picocolors": { + "version": "0.2.1", + "resolved": "https://registry.npmjs.org/picocolors/-/picocolors-0.2.1.tgz", + "integrity": "sha512-cMlDqaLEqfSaW8Z7N5Jw+lyIW869EzT73/F5lhtY9cLGoVxSXznfgfXMO0Z5K0o0Q2TkTXq+0KFsdnSe3jDViA==", + "dev": true + }, + "node_modules/resolve-url-loader/node_modules/postcss": { + "version": "7.0.39", + "resolved": "https://registry.npmjs.org/postcss/-/postcss-7.0.39.tgz", + "integrity": "sha512-yioayjNbHn6z1/Bywyb2Y4s3yvDAeXGOyxqD+LnVOinq6Mdmd++SW2wUNVzavyyHxd6+DxzWGIuosg6P1Rj8uA==", + "dev": true, + "dependencies": { + "picocolors": "^0.2.1", + "source-map": "^0.6.1" + }, + "engines": { + "node": ">=6.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/postcss/" + } + }, + "node_modules/retry": { + "version": "0.13.1", + "resolved": "https://registry.npmjs.org/retry/-/retry-0.13.1.tgz", + "integrity": "sha512-XQBQ3I8W1Cge0Seh+6gjj03LbmRFWuoszgK9ooCpwYIrhhoO80pfq4cUkU5DkknwfOfFteRwlZ56PYOGYyFWdg==", + "dev": true, + "engines": { + "node": ">= 4" + } + }, + "node_modules/reusify": { + "version": "1.0.4", + "resolved": "https://registry.npmjs.org/reusify/-/reusify-1.0.4.tgz", + "integrity": "sha512-U9nH88a3fc/ekCF1l0/UP1IosiuIjyTh7hBvXVMHYgVcfGvt897Xguj2UOLDeI5BG2m7/uwyaLVT6fbtCwTyzw==", + "engines": { + "iojs": ">=1.0.0", + "node": ">=0.10.0" + } + }, + "node_modules/rgb-regex": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/rgb-regex/-/rgb-regex-1.0.1.tgz", + "integrity": "sha512-gDK5mkALDFER2YLqH6imYvK6g02gpNGM4ILDZ472EwWfXZnC2ZEpoB2ECXTyOVUKuk/bPJZMzwQPBYICzP+D3w==", + "dev": true + }, + "node_modules/rgba-regex": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/rgba-regex/-/rgba-regex-1.0.0.tgz", + "integrity": "sha512-zgn5OjNQXLUTdq8m17KdaicF6w89TZs8ZU8y0AYENIU6wG8GG6LLm0yLSiPY8DmaYmHdgRW8rnApjoT0fQRfMg==", + "dev": true + }, + "node_modules/rimraf": { + "version": "3.0.2", + "resolved": "https://registry.npmjs.org/rimraf/-/rimraf-3.0.2.tgz", + "integrity": "sha512-JZkJMZkAGFFPP2YqXZXPbMlMBgsxzE8ILs4lMIX/2o0L9UBw9O/Y3o6wFw/i9YLapcUJWwqbi3kdxIPdC62TIA==", + "dependencies": { + "glob": "^7.1.3" + }, + "bin": { + "rimraf": "bin.js" + }, + "funding": { + "url": "https://github.com/sponsors/isaacs" + } + }, + "node_modules/ripemd160": { + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/ripemd160/-/ripemd160-2.0.2.tgz", + "integrity": "sha512-ii4iagi25WusVoiC4B4lq7pbXfAp3D9v5CwfkY33vffw2+pkDjY1D8GaN7spsxvCSx8dkPqOZCEZyfxcmJG2IA==", + "dev": true, + "dependencies": { + "hash-base": "^3.0.0", + "inherits": "^2.0.1" + } + }, + "node_modules/rtlcss": { + "version": "3.5.0", + "resolved": "https://registry.npmjs.org/rtlcss/-/rtlcss-3.5.0.tgz", + "integrity": "sha512-wzgMaMFHQTnyi9YOwsx9LjOxYXJPzS8sYnFaKm6R5ysvTkwzHiB0vxnbHwchHQT65PTdBjDG21/kQBWI7q9O7A==", + "dev": true, + "dependencies": { + "find-up": "^5.0.0", + "picocolors": "^1.0.0", + "postcss": "^8.3.11", + "strip-json-comments": "^3.1.1" + }, + "bin": { + "rtlcss": "bin/rtlcss.js" + } + }, + "node_modules/rtlcss/node_modules/find-up": { + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/find-up/-/find-up-5.0.0.tgz", + "integrity": "sha512-78/PXT1wlLLDgTzDs7sjq9hzz0vXD+zn+7wypEe4fXQxCmdmqfGsEPQxmiCSQI3ajFV91bVSsvNtrJRiW6nGng==", + "dev": true, + "dependencies": { + "locate-path": "^6.0.0", + "path-exists": "^4.0.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/rtlcss/node_modules/locate-path": { + "version": "6.0.0", + "resolved": "https://registry.npmjs.org/locate-path/-/locate-path-6.0.0.tgz", + "integrity": "sha512-iPZK6eYjbxRu3uB4/WZ3EsEIMJFMqAoopl3R+zuq0UjcAm/MO6KCweDgPfP3elTztoKP3KtnVHxTn2NHBSDVUw==", + "dev": true, + "dependencies": { + "p-locate": "^5.0.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/rtlcss/node_modules/p-limit": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/p-limit/-/p-limit-3.1.0.tgz", + "integrity": "sha512-TYOanM3wGwNGsZN2cVTYPArw454xnXj5qmWF1bEoAc4+cU/ol7GVh7odevjp1FNHduHc3KZMcFduxU5Xc6uJRQ==", + "dev": true, + "dependencies": { + "yocto-queue": "^0.1.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/rtlcss/node_modules/p-locate": { + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/p-locate/-/p-locate-5.0.0.tgz", + "integrity": "sha512-LaNjtRWUBY++zB5nE/NwcaoMylSPk+S+ZHNB1TzdbMJMny6dynpAGt7X/tl/QYq3TIeE6nxHppbo2LGymrG5Pw==", + "dev": true, + "dependencies": { + "p-limit": "^3.0.2" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/run-parallel": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/run-parallel/-/run-parallel-1.2.0.tgz", + "integrity": "sha512-5l4VyZR86LZ/lDxZTR6jqL8AFE2S0IFLMP26AbjsLVADxHdhB/c0GUsH+y39UfCi3dzz8OlQuPmnaJOMoDHQBA==", + "funding": [ + { + "type": "github", + "url": "https://github.com/sponsors/feross" + }, + { + "type": "patreon", + "url": "https://www.patreon.com/feross" + }, + { + "type": "consulting", + "url": "https://feross.org/support" + } + ], + "dependencies": { + "queue-microtask": "^1.2.2" + } + }, + "node_modules/safe-buffer": { + "version": "5.2.1", + "resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.2.1.tgz", + "integrity": "sha512-rp3So07KcdmmKbGvgaNxQSJr7bGVSVk5S9Eq1F+ppbRo70+YeaDxkw5Dd8NPN+GD6bjnYm2VuPuCXmpuYvmCXQ==", + "dev": true, + "funding": [ + { + "type": "github", + "url": "https://github.com/sponsors/feross" + }, + { + "type": "patreon", + "url": "https://www.patreon.com/feross" + }, + { + "type": "consulting", + "url": "https://feross.org/support" + } + ] + }, + "node_modules/safe-regex-test": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/safe-regex-test/-/safe-regex-test-1.0.0.tgz", + "integrity": "sha512-JBUUzyOgEwXQY1NuPtvcj/qcBDbDmEvWufhlnXZIm75DEHp+afM1r1ujJpJsV/gSM4t59tpDyPi1sd6ZaPFfsA==", + "dev": true, + "dependencies": { + "call-bind": "^1.0.2", + "get-intrinsic": "^1.1.3", + "is-regex": "^1.1.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/safer-buffer": { + "version": "2.1.2", + "resolved": "https://registry.npmjs.org/safer-buffer/-/safer-buffer-2.1.2.tgz", + "integrity": "sha512-YZo3K82SD7Riyi0E1EQPojLz7kpepnSQI9IyPbHHg1XXXevb5dJI7tpyN2ADxGcQbHG7vcyRHk0cbwqcQriUtg==" + }, + "node_modules/sass": { + "version": "1.55.0", + "resolved": "https://registry.npmjs.org/sass/-/sass-1.55.0.tgz", + "integrity": "sha512-Pk+PMy7OGLs9WaxZGJMn7S96dvlyVBwwtToX895WmCpAOr5YiJYEUJfiJidMuKb613z2xNWcXCHEuOvjZbqC6A==", + "dev": true, + "dependencies": { + "chokidar": ">=3.0.0 <4.0.0", + "immutable": "^4.0.0", + "source-map-js": ">=0.6.2 <2.0.0" + }, + "bin": { + "sass": "sass.js" + }, + "engines": { + "node": ">=12.0.0" + } + }, + "node_modules/sass-loader": { + "version": "13.2.0", + "resolved": "https://registry.npmjs.org/sass-loader/-/sass-loader-13.2.0.tgz", + "integrity": "sha512-JWEp48djQA4nbZxmgC02/Wh0eroSUutulROUusYJO9P9zltRbNN80JCBHqRGzjd4cmZCa/r88xgfkjGD0TXsHg==", + "dev": true, + "dependencies": { + "klona": "^2.0.4", + "neo-async": "^2.6.2" + }, + "engines": { + "node": ">= 14.15.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/webpack" + }, + "peerDependencies": { + "fibers": ">= 3.1.0", + "node-sass": "^4.0.0 || ^5.0.0 || ^6.0.0 || ^7.0.0 || ^8.0.0", + "sass": "^1.3.0", + "sass-embedded": "*", + "webpack": "^5.0.0" + }, + "peerDependenciesMeta": { + "fibers": { + "optional": true + }, + "node-sass": { + "optional": true + }, + "sass": { + "optional": true + }, + "sass-embedded": { + "optional": true + } + } + }, + "node_modules/sax": { + "version": "1.2.4", + "resolved": "https://registry.npmjs.org/sax/-/sax-1.2.4.tgz", + "integrity": "sha512-NqVDv9TpANUjFm0N8uM5GxL36UgKi9/atZw+x7YFnQ8ckwFGKrl4xX4yWtrey3UJm5nP1kUbnYgLopqWNSRhWw==" + }, + "node_modules/schema-utils": { + "version": "2.7.1", + "resolved": "https://registry.npmjs.org/schema-utils/-/schema-utils-2.7.1.tgz", + "integrity": "sha512-SHiNtMOUGWBQJwzISiVYKu82GiV4QYGePp3odlY1tuKO7gPtphAT5R/py0fA6xtbgLL/RvtJZnU9b8s0F1q0Xg==", + "dev": true, + "dependencies": { + "@types/json-schema": "^7.0.5", + "ajv": "^6.12.4", + "ajv-keywords": "^3.5.2" + }, + "engines": { + "node": ">= 8.9.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/webpack" + } + }, + "node_modules/scope-analyzer": { + "version": "2.1.2", + "resolved": "https://registry.npmjs.org/scope-analyzer/-/scope-analyzer-2.1.2.tgz", + "integrity": "sha512-5cfCmsTYV/wPaRIItNxatw02ua/MThdIUNnUOCYp+3LSEJvnG804ANw2VLaavNILIfWXF1D1G2KNANkBBvInwQ==", + "dependencies": { + "array-from": "^2.1.1", + "dash-ast": "^2.0.1", + "es6-map": "^0.1.5", + "es6-set": "^0.1.5", + "es6-symbol": "^3.1.1", + "estree-is-function": "^1.0.0", + "get-assigned-identifiers": "^1.1.0" + } + }, + "node_modules/select": { + "version": "1.1.2", + "resolved": "https://registry.npmjs.org/select/-/select-1.1.2.tgz", + "integrity": "sha512-OwpTSOfy6xSs1+pwcNrv0RBMOzI39Lp3qQKUTPVVPRjCdNa5JH/oPRiqsesIskK8TVgmRiHwO4KXlV2Li9dANA==" + }, + "node_modules/select-hose": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/select-hose/-/select-hose-2.0.0.tgz", + "integrity": "sha512-mEugaLK+YfkijB4fx0e6kImuJdCIt2LxCRcbEYPqRGCs4F2ogyfZU5IAZRdjCP8JPq2AtdNoC/Dux63d9Kiryg==", + "dev": true + }, + "node_modules/select2": { + "version": "4.1.0-rc.0", + "resolved": "https://registry.npmjs.org/select2/-/select2-4.1.0-rc.0.tgz", + "integrity": "sha512-Hr9TdhyHCZUtwznEH2CBf7967mEM0idtJ5nMtjvk3Up5tPukOLXbHUNmh10oRfeNIhj+3GD3niu+g6sVK+gK0A==" + }, + "node_modules/selfsigned": { + "version": "2.1.1", + "resolved": "https://registry.npmjs.org/selfsigned/-/selfsigned-2.1.1.tgz", + "integrity": "sha512-GSL3aowiF7wa/WtSFwnUrludWFoNhftq8bUkH9pkzjpN2XSPOAYEgg6e0sS9s0rZwgJzJiQRPU18A6clnoW5wQ==", + "dev": true, + "dependencies": { + "node-forge": "^1" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/semver": { + "version": "7.4.0", + "resolved": "https://registry.npmjs.org/semver/-/semver-7.4.0.tgz", + "integrity": "sha512-RgOxM8Mw+7Zus0+zcLEUn8+JfoLpj/huFTItQy2hsM4khuC1HYRDp0cU482Ewn/Fcy6bCjufD8vAj7voC66KQw==", + "dependencies": { + "lru-cache": "^6.0.0" + }, + "bin": { + "semver": "bin/semver.js" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/semver-compare": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/semver-compare/-/semver-compare-1.0.0.tgz", + "integrity": "sha512-YM3/ITh2MJ5MtzaM429anh+x2jiLVjqILF4m4oyQB18W7Ggea7BfqdH/wGMK7dDiMghv/6WG7znWMwUDzJiXow==" + }, + "node_modules/semver/node_modules/lru-cache": { + "version": "6.0.0", + "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-6.0.0.tgz", + "integrity": "sha512-Jo6dJ04CmSjuznwJSS3pUeWmd/H0ffTlkXXgwZi+eq1UCmqQwCh+eLsYOYCwY991i2Fah4h1BEMCx4qThGbsiA==", + "dependencies": { + "yallist": "^4.0.0" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/semver/node_modules/yallist": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/yallist/-/yallist-4.0.0.tgz", + "integrity": "sha512-3wdGidZyq5PB084XLES5TpOSRA3wjXAlIWMhum2kRcv/41Sn2emQ0dycQW4uZXLejwKvg6EsvbdlVL+FYEct7A==" + }, + "node_modules/send": { + "version": "0.18.0", + "resolved": "https://registry.npmjs.org/send/-/send-0.18.0.tgz", + "integrity": "sha512-qqWzuOjSFOuqPjFe4NOsMLafToQQwBSOEpS+FwEt3A2V3vKubTquT3vmLTQpFgMXp8AlFWFuP1qKaJZOtPpVXg==", + "dev": true, + "dependencies": { + "debug": "2.6.9", + "depd": "2.0.0", + "destroy": "1.2.0", + "encodeurl": "~1.0.2", + "escape-html": "~1.0.3", + "etag": "~1.8.1", + "fresh": "0.5.2", + "http-errors": "2.0.0", + "mime": "1.6.0", + "ms": "2.1.3", + "on-finished": "2.4.1", + "range-parser": "~1.2.1", + "statuses": "2.0.1" + }, + "engines": { + "node": ">= 0.8.0" + } + }, + "node_modules/send/node_modules/debug": { + "version": "2.6.9", + "resolved": "https://registry.npmjs.org/debug/-/debug-2.6.9.tgz", + "integrity": "sha512-bC7ElrdJaJnPbAP+1EotYvqZsb3ecl5wi6Bfi6BJTUcNowp6cvspg0jXznRTKDjm/E7AdgFBVeAPVMNcKGsHMA==", + "dev": true, + "dependencies": { + "ms": "2.0.0" + } + }, + "node_modules/send/node_modules/debug/node_modules/ms": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/ms/-/ms-2.0.0.tgz", + "integrity": "sha512-Tpp60P6IUJDTuOq/5Z8cdskzJujfwqfOTkrwIwj7IRISpnkJnT6SyJ4PCPnGMoFjC9ddhal5KVIYtAt97ix05A==", + "dev": true + }, + "node_modules/send/node_modules/ms": { + "version": "2.1.3", + "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.3.tgz", + "integrity": "sha512-6FlzubTLZG3J2a/NVCAleEhjzq5oxgHyaCU9yYXvcLsvoVaHJq/s5xXI6/XXP6tz7R9xAOtHnSO/tXtF3WRTlA==", + "dev": true + }, + "node_modules/serialize-javascript": { + "version": "6.0.1", + "resolved": "https://registry.npmjs.org/serialize-javascript/-/serialize-javascript-6.0.1.tgz", + "integrity": "sha512-owoXEFjWRllis8/M1Q+Cw5k8ZH40e3zhp/ovX+Xr/vi1qj6QesbyXXViFbpNvWvPNAD62SutwEXavefrLJWj7w==", + "dev": true, + "dependencies": { + "randombytes": "^2.1.0" + } + }, + "node_modules/serve-index": { + "version": "1.9.1", + "resolved": "https://registry.npmjs.org/serve-index/-/serve-index-1.9.1.tgz", + "integrity": "sha512-pXHfKNP4qujrtteMrSBb0rc8HJ9Ms/GrXwcUtUtD5s4ewDJI8bT3Cz2zTVRMKtri49pLx2e0Ya8ziP5Ya2pZZw==", + "dev": true, + "dependencies": { + "accepts": "~1.3.4", + "batch": "0.6.1", + "debug": "2.6.9", + "escape-html": "~1.0.3", + "http-errors": "~1.6.2", + "mime-types": "~2.1.17", + "parseurl": "~1.3.2" + }, + "engines": { + "node": ">= 0.8.0" + } + }, + "node_modules/serve-index/node_modules/debug": { + "version": "2.6.9", + "resolved": "https://registry.npmjs.org/debug/-/debug-2.6.9.tgz", + "integrity": "sha512-bC7ElrdJaJnPbAP+1EotYvqZsb3ecl5wi6Bfi6BJTUcNowp6cvspg0jXznRTKDjm/E7AdgFBVeAPVMNcKGsHMA==", + "dev": true, + "dependencies": { + "ms": "2.0.0" + } + }, + "node_modules/serve-index/node_modules/depd": { + "version": "1.1.2", + "resolved": "https://registry.npmjs.org/depd/-/depd-1.1.2.tgz", + "integrity": "sha512-7emPTl6Dpo6JRXOXjLRxck+FlLRX5847cLKEn00PLAgc3g2hTZZgr+e4c2v6QpSmLeFP3n5yUo7ft6avBK/5jQ==", + "dev": true, + "engines": { + "node": ">= 0.6" + } + }, + "node_modules/serve-index/node_modules/http-errors": { + "version": "1.6.3", + "resolved": "https://registry.npmjs.org/http-errors/-/http-errors-1.6.3.tgz", + "integrity": "sha512-lks+lVC8dgGyh97jxvxeYTWQFvh4uw4yC12gVl63Cg30sjPX4wuGcdkICVXDAESr6OJGjqGA8Iz5mkeN6zlD7A==", + "dev": true, + "dependencies": { + "depd": "~1.1.2", + "inherits": "2.0.3", + "setprototypeof": "1.1.0", + "statuses": ">= 1.4.0 < 2" + }, + "engines": { + "node": ">= 0.6" + } + }, + "node_modules/serve-index/node_modules/inherits": { + "version": "2.0.3", + "resolved": "https://registry.npmjs.org/inherits/-/inherits-2.0.3.tgz", + "integrity": "sha512-x00IRNXNy63jwGkJmzPigoySHbaqpNuzKbBOmzK+g2OdZpQ9w+sxCN+VSB3ja7IAge2OP2qpfxTjeNcyjmW1uw==", + "dev": true + }, + "node_modules/serve-index/node_modules/ms": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/ms/-/ms-2.0.0.tgz", + "integrity": "sha512-Tpp60P6IUJDTuOq/5Z8cdskzJujfwqfOTkrwIwj7IRISpnkJnT6SyJ4PCPnGMoFjC9ddhal5KVIYtAt97ix05A==", + "dev": true + }, + "node_modules/serve-index/node_modules/setprototypeof": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/setprototypeof/-/setprototypeof-1.1.0.tgz", + "integrity": "sha512-BvE/TwpZX4FXExxOxZyRGQQv651MSwmWKZGqvmPcRIjDqWub67kTKuIMx43cZZrS/cBBzwBcNDWoFxt2XEFIpQ==", + "dev": true + }, + "node_modules/serve-index/node_modules/statuses": { + "version": "1.5.0", + "resolved": "https://registry.npmjs.org/statuses/-/statuses-1.5.0.tgz", + "integrity": "sha512-OpZ3zP+jT1PI7I8nemJX4AKmAX070ZkYPVWV/AaKTJl+tXCTGyVdC1a4SL8RUQYEwk/f34ZX8UTykN68FwrqAA==", + "dev": true, + "engines": { + "node": ">= 0.6" + } + }, + "node_modules/serve-static": { + "version": "1.15.0", + "resolved": "https://registry.npmjs.org/serve-static/-/serve-static-1.15.0.tgz", + "integrity": "sha512-XGuRDNjXUijsUL0vl6nSD7cwURuzEgglbOaFuZM9g3kwDXOWVTck0jLzjPzGD+TazWbboZYu52/9/XPdUgne9g==", + "dev": true, + "dependencies": { + "encodeurl": "~1.0.2", + "escape-html": "~1.0.3", + "parseurl": "~1.3.3", + "send": "0.18.0" + }, + "engines": { + "node": ">= 0.8.0" + } + }, + "node_modules/setimmediate": { + "version": "1.0.5", + "resolved": "https://registry.npmjs.org/setimmediate/-/setimmediate-1.0.5.tgz", + "integrity": "sha512-MATJdZp8sLqDl/68LfQmbP8zKPLQNV6BIZoIgrscFDQ+RsvK/BxeDQOgyxKKoh0y/8h3BqVFnCqQ/gd+reiIXA==" + }, + "node_modules/setprototypeof": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/setprototypeof/-/setprototypeof-1.2.0.tgz", + "integrity": "sha512-E5LDX7Wrp85Kil5bhZv46j8jOeboKq5JMmYM3gVGdGH8xFpPWXUMsNrlODCrkoxMEeNi/XZIwuRvY4XNwYMJpw==", + "dev": true + }, + "node_modules/sha.js": { + "version": "2.4.11", + "resolved": "https://registry.npmjs.org/sha.js/-/sha.js-2.4.11.tgz", + "integrity": "sha512-QMEp5B7cftE7APOjk5Y6xgrbWu+WkLVQwk8JNjZ8nKRciZaByEW6MubieAiToS7+dwvrjGhH8jRXz3MVd0AYqQ==", + "dev": true, + "dependencies": { + "inherits": "^2.0.1", + "safe-buffer": "^5.0.1" + }, + "bin": { + "sha.js": "bin.js" + } + }, + "node_modules/shallow-clone": { + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/shallow-clone/-/shallow-clone-3.0.1.tgz", + "integrity": "sha512-/6KqX+GVUdqPuPPd2LxDDxzX6CAbjJehAAOKlNpqqUpAqPM6HeL8f+o3a+JsyGjn2lv0WY8UsTgUJjU9Ok55NA==", + "dev": true, + "dependencies": { + "kind-of": "^6.0.2" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/shallow-copy": { + "version": "0.0.1", + "resolved": "https://registry.npmjs.org/shallow-copy/-/shallow-copy-0.0.1.tgz", + "integrity": "sha512-b6i4ZpVuUxB9h5gfCxPiusKYkqTMOjEbBs4wMaFbkfia4yFv92UKZ6Df8WXcKbn08JNL/abvg3FnMAOfakDvUw==" + }, + "node_modules/shebang-command": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/shebang-command/-/shebang-command-2.0.0.tgz", + "integrity": "sha512-kHxr2zZpYtdmrN1qDjrrX/Z1rR1kG8Dx+gkpK1G4eXmvXswmcE1hTWBWYUzlraYw1/yZp6YuDY77YtvbN0dmDA==", + "dev": true, + "dependencies": { + "shebang-regex": "^3.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/shebang-regex": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/shebang-regex/-/shebang-regex-3.0.0.tgz", + "integrity": "sha512-7++dFhtcx3353uBaq8DDR4NuxBetBzC7ZQOhmTQInHEd6bSrXdiEyzCvG07Z44UYdLShWUyXt5M/yhz8ekcb1A==", + "dev": true, + "engines": { + "node": ">=8" + } + }, + "node_modules/shell-quote": { + "version": "1.8.1", + "resolved": "https://registry.npmjs.org/shell-quote/-/shell-quote-1.8.1.tgz", + "integrity": "sha512-6j1W9l1iAs/4xYBI1SYOVZyFcCis9b4KCLQ8fgAGG07QvzaRLVVRQvAy85yNmmZSjYjg4MWh4gNvlPujU/5LpA==", + "dev": true, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/shellwords": { + "version": "0.1.1", + "resolved": "https://registry.npmjs.org/shellwords/-/shellwords-0.1.1.tgz", + "integrity": "sha512-vFwSUfQvqybiICwZY5+DAWIPLKsWO31Q91JSKl3UYv+K5c2QRPzn0qzec6QPu1Qc9eHYItiP3NdJqNVqetYAww==", + "dev": true + }, + "node_modules/side-channel": { + "version": "1.0.4", + "resolved": "https://registry.npmjs.org/side-channel/-/side-channel-1.0.4.tgz", + "integrity": "sha512-q5XPytqFEIKHkGdiMIrY10mvLRvnQh42/+GoBlFW3b2LXLE2xxJpZFdm94we0BaoV3RwJyGqg5wS7epxTv0Zvw==", + "dev": true, + "dependencies": { + "call-bind": "^1.0.0", + "get-intrinsic": "^1.0.2", + "object-inspect": "^1.9.0" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/sigmund": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/sigmund/-/sigmund-1.0.1.tgz", + "integrity": "sha512-fCvEXfh6NWpm+YSuY2bpXb/VIihqWA6hLsgboC+0nl71Q7N7o2eaCW8mJa/NLvQhs6jpd3VZV4UiUQlV6+lc8g==" + }, + "node_modules/signal-exit": { + "version": "3.0.7", + "resolved": "https://registry.npmjs.org/signal-exit/-/signal-exit-3.0.7.tgz", + "integrity": "sha512-wnD2ZE+l+SPC/uoS0vXeE9L1+0wuaMqKlfz9AMUo38JsyLSBWSFcHR1Rri62LZc12vLr1gb3jl7iwQhgwpAbGQ==", + "dev": true + }, + "node_modules/simple-html-tokenizer": { + "version": "0.5.11", + "resolved": "https://registry.npmjs.org/simple-html-tokenizer/-/simple-html-tokenizer-0.5.11.tgz", + "integrity": "sha512-C2WEK/Z3HoSFbYq8tI7ni3eOo/NneSPRoPpcM7WdLjFOArFuyXEjAoCdOC3DgMfRyziZQ1hCNR4mrNdWEvD0og==" + }, + "node_modules/simple-swizzle": { + "version": "0.2.2", + "resolved": "https://registry.npmjs.org/simple-swizzle/-/simple-swizzle-0.2.2.tgz", + "integrity": "sha512-JA//kQgZtbuY83m+xT+tXJkmJncGMTFT+C+g2h2R9uxkYIrE2yy9sgmcLhCnw57/WSD+Eh3J97FPEDFnbXnDUg==", + "dev": true, + "dependencies": { + "is-arrayish": "^0.3.1" + } + }, + "node_modules/simple-swizzle/node_modules/is-arrayish": { + "version": "0.3.2", + "resolved": "https://registry.npmjs.org/is-arrayish/-/is-arrayish-0.3.2.tgz", + "integrity": "sha512-eVRqCvVlZbuw3GrM63ovNSNAeA1K16kaR/LRY/92w0zxQ5/1YzwblUX652i4Xs9RwAGjW9d9y6X88t8OaAJfWQ==", + "dev": true + }, + "node_modules/simple-update-notifier": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/simple-update-notifier/-/simple-update-notifier-1.1.0.tgz", + "integrity": "sha512-VpsrsJSUcJEseSbMHkrsrAVSdvVS5I96Qo1QAQ4FxQ9wXFcB+pjj7FB7/us9+GcgfW4ziHtYMc1J0PLczb55mg==", + "dependencies": { + "semver": "~7.0.0" + }, + "engines": { + "node": ">=8.10.0" + } + }, + "node_modules/simple-update-notifier/node_modules/semver": { + "version": "7.0.0", + "resolved": "https://registry.npmjs.org/semver/-/semver-7.0.0.tgz", + "integrity": "sha512-+GB6zVA9LWh6zovYQLALHwv5rb2PHGlJi3lfiqIHxR0uuwCgefcOJc59v9fv1w8GbStwxuuqqAjI9NMAOOgq1A==", + "bin": { + "semver": "bin/semver.js" + } + }, + "node_modules/slash": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/slash/-/slash-3.0.0.tgz", + "integrity": "sha512-g9Q1haeby36OSStwb4ntCGGGaKsaVSjQ68fBxoQcutl5fS1vuY18H3wSt3jFyFtrkx+Kz0V1G85A4MyAdDMi2Q==", + "engines": { + "node": ">=8" + } + }, + "node_modules/smooth-scroll": { + "version": "16.1.3", + "resolved": "https://registry.npmjs.org/smooth-scroll/-/smooth-scroll-16.1.3.tgz", + "integrity": "sha512-ca9U+neJS/cbdScTBuUTCZvUWNF2EuMCk7oAx3ImdeRK5FPm+xRo9XsVHIkeEVkn7MBRx+ufVEhyveM4ZhaTGA==" + }, + "node_modules/sockjs": { + "version": "0.3.24", + "resolved": "https://registry.npmjs.org/sockjs/-/sockjs-0.3.24.tgz", + "integrity": "sha512-GJgLTZ7vYb/JtPSSZ10hsOYIvEYsjbNU+zPdIHcUaWVNUEPivzxku31865sSSud0Da0W4lEeOPlmw93zLQchuQ==", + "dev": true, + "dependencies": { + "faye-websocket": "^0.11.3", + "uuid": "^8.3.2", + "websocket-driver": "^0.7.4" + } + }, + "node_modules/sockjs/node_modules/uuid": { + "version": "8.3.2", + "resolved": "https://registry.npmjs.org/uuid/-/uuid-8.3.2.tgz", + "integrity": "sha512-+NYs2QeMWy+GWFOEm9xnn6HCDp0l7QBD7ml8zLUmJ+93Q5NF0NocErnwkTkXVFNiX3/fpC6afS8Dhb/gz7R7eg==", + "dev": true, + "bin": { + "uuid": "dist/bin/uuid" + } + }, + "node_modules/source-list-map": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/source-list-map/-/source-list-map-2.0.1.tgz", + "integrity": "sha512-qnQ7gVMxGNxsiL4lEuJwe/To8UnK7fAnmbGEEH8RpLouuKbeEm0lhbQVFIrNSuB+G7tVrAlVsZgETT5nljf+Iw==", + "dev": true + }, + "node_modules/source-map": { + "version": "0.6.1", + "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz", + "integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==", + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/source-map-js": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/source-map-js/-/source-map-js-1.0.2.tgz", + "integrity": "sha512-R0XvVJ9WusLiqTCEiGCmICCMplcCkIwwR11mOSD9CR5u+IXYdiseeEuXCVAjS54zqwkLcPNnmU4OeJ6tUrWhDw==", + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/source-map-support": { + "version": "0.5.21", + "resolved": "https://registry.npmjs.org/source-map-support/-/source-map-support-0.5.21.tgz", + "integrity": "sha512-uBHU3L3czsIyYXKX88fdrGovxdSCoTGDRZ6SYXtSRxLZUzHg5P/66Ht6uoUlHu9EZod+inXhKo3qQgwXUT/y1w==", + "dev": true, + "dependencies": { + "buffer-from": "^1.0.0", + "source-map": "^0.6.0" + } + }, + "node_modules/sourcemap-codec": { + "version": "1.4.8", + "resolved": "https://registry.npmjs.org/sourcemap-codec/-/sourcemap-codec-1.4.8.tgz", + "integrity": "sha512-9NykojV5Uih4lgo5So5dtw+f0JgJX30KCNI8gwhz2J9A15wD0Ml6tjHKwf6fTSa6fAdVBdZeNOs9eJ71qCk8vA==", + "deprecated": "Please use @jridgewell/sourcemap-codec instead" + }, + "node_modules/spdy": { + "version": "4.0.2", + "resolved": "https://registry.npmjs.org/spdy/-/spdy-4.0.2.tgz", + "integrity": "sha512-r46gZQZQV+Kl9oItvl1JZZqJKGr+oEkB08A6BzkiR7593/7IbtuncXHd2YoYeTsG4157ZssMu9KYvUHLcjcDoA==", + "dev": true, + "dependencies": { + "debug": "^4.1.0", + "handle-thing": "^2.0.0", + "http-deceiver": "^1.2.7", + "select-hose": "^2.0.0", + "spdy-transport": "^3.0.0" + }, + "engines": { + "node": ">=6.0.0" + } + }, + "node_modules/spdy-transport": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/spdy-transport/-/spdy-transport-3.0.0.tgz", + "integrity": "sha512-hsLVFE5SjA6TCisWeJXFKniGGOpBgMLmerfO2aCyCU5s7nJ/rpAepqmFifv/GCbSbueEeAJJnmSQ2rKC/g8Fcw==", + "dev": true, + "dependencies": { + "debug": "^4.1.0", + "detect-node": "^2.0.4", + "hpack.js": "^2.1.6", + "obuf": "^1.1.2", + "readable-stream": "^3.0.6", + "wbuf": "^1.7.3" + } + }, + "node_modules/spdy-transport/node_modules/readable-stream": { + "version": "3.6.2", + "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-3.6.2.tgz", + "integrity": "sha512-9u/sniCrY3D5WdsERHzHE4G2YCXqoG5FTHUiCC4SIbr6XcLZBY05ya9EKjYek9O5xOAwjGq+1JdGBAS7Q9ScoA==", + "dev": true, + "dependencies": { + "inherits": "^2.0.3", + "string_decoder": "^1.1.1", + "util-deprecate": "^1.0.1" + }, + "engines": { + "node": ">= 6" + } + }, + "node_modules/sprintf-js": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/sprintf-js/-/sprintf-js-1.0.3.tgz", + "integrity": "sha512-D9cPgkvLlV3t3IzL0D0YLvGA9Ahk4PcvVwUbN0dSGr1aP0Nrt4AEnTUbuGvquEC0mA64Gqt1fzirlRs5ibXx8g==", + "dev": true + }, + "node_modules/srcset": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/srcset/-/srcset-3.0.0.tgz", + "integrity": "sha512-D59vF08Qzu/C4GAOXVgMTLfgryt5fyWo93FZyhEWANo0PokFz/iWdDe13mX3O5TRf6l8vMTqckAfR4zPiaH0yQ==", + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/stable": { + "version": "0.1.8", + "resolved": "https://registry.npmjs.org/stable/-/stable-0.1.8.tgz", + "integrity": "sha512-ji9qxRnOVfcuLDySj9qzhGSEFVobyt1kIOSkj1qZzYLzq7Tos/oUUWvotUPQLlrsidqsK6tBH89Bc9kL5zHA6w==", + "deprecated": "Modern JS already guarantees Array#sort() is a stable sort, so this library is deprecated. See the compatibility table on MDN: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/sort#browser_compatibility", + "dev": true + }, + "node_modules/state-toggle": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/state-toggle/-/state-toggle-1.0.3.tgz", + "integrity": "sha512-d/5Z4/2iiCnHw6Xzghyhb+GcmF89bxwgXG60wjIiZaxnymbyOmI8Hk4VqHXiVVp6u2ysaskFfXg3ekCj4WNftQ==", + "funding": { + "type": "github", + "url": "https://github.com/sponsors/wooorm" + } + }, + "node_modules/static-eval": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/static-eval/-/static-eval-2.1.0.tgz", + "integrity": "sha512-agtxZ/kWSsCkI5E4QifRwsaPs0P0JmZV6dkLz6ILYfFYQGn+5plctanRN+IC8dJRiFkyXHrwEE3W9Wmx67uDbw==", + "dependencies": { + "escodegen": "^1.11.1" + } + }, + "node_modules/static-eval/node_modules/escodegen": { + "version": "1.14.3", + "resolved": "https://registry.npmjs.org/escodegen/-/escodegen-1.14.3.tgz", + "integrity": "sha512-qFcX0XJkdg+PB3xjZZG/wKSuT1PnQWx57+TVSjIMmILd2yC/6ByYElPwJnslDsuWuSAp4AwJGumarAAmJch5Kw==", + "dependencies": { + "esprima": "^4.0.1", + "estraverse": "^4.2.0", + "esutils": "^2.0.2", + "optionator": "^0.8.1" + }, + "bin": { + "escodegen": "bin/escodegen.js", + "esgenerate": "bin/esgenerate.js" + }, + "engines": { + "node": ">=4.0" + }, + "optionalDependencies": { + "source-map": "~0.6.1" + } + }, + "node_modules/static-eval/node_modules/esprima": { + "version": "4.0.1", + "resolved": "https://registry.npmjs.org/esprima/-/esprima-4.0.1.tgz", + "integrity": "sha512-eGuFFw7Upda+g4p+QHvnW0RyTX/SVeJBDM/gCtMARO0cLuT2HcEKnTPvhjV6aGeqrCB/sbNop0Kszm0jsaWU4A==", + "bin": { + "esparse": "bin/esparse.js", + "esvalidate": "bin/esvalidate.js" + }, + "engines": { + "node": ">=4" + } + }, + "node_modules/static-eval/node_modules/estraverse": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/estraverse/-/estraverse-4.3.0.tgz", + "integrity": "sha512-39nnKffWz8xN1BU/2c79n9nB9HDzo0niYUqx6xyqUnyoAnQyyWpOTdZEeiCch8BBu515t4wp9ZmgVfVhn9EBpw==", + "engines": { + "node": ">=4.0" + } + }, + "node_modules/static-module": { + "version": "3.0.4", + "resolved": "https://registry.npmjs.org/static-module/-/static-module-3.0.4.tgz", + "integrity": "sha512-gb0v0rrgpBkifXCa3yZXxqVmXDVE+ETXj6YlC/jt5VzOnGXR2C15+++eXuMDUYsePnbhf+lwW0pE1UXyOLtGCw==", + "dependencies": { + "acorn-node": "^1.3.0", + "concat-stream": "~1.6.0", + "convert-source-map": "^1.5.1", + "duplexer2": "~0.1.4", + "escodegen": "^1.11.1", + "has": "^1.0.1", + "magic-string": "0.25.1", + "merge-source-map": "1.0.4", + "object-inspect": "^1.6.0", + "readable-stream": "~2.3.3", + "scope-analyzer": "^2.0.1", + "shallow-copy": "~0.0.1", + "static-eval": "^2.0.5", + "through2": "~2.0.3" + } + }, + "node_modules/static-module/node_modules/escodegen": { + "version": "1.14.3", + "resolved": "https://registry.npmjs.org/escodegen/-/escodegen-1.14.3.tgz", + "integrity": "sha512-qFcX0XJkdg+PB3xjZZG/wKSuT1PnQWx57+TVSjIMmILd2yC/6ByYElPwJnslDsuWuSAp4AwJGumarAAmJch5Kw==", + "dependencies": { + "esprima": "^4.0.1", + "estraverse": "^4.2.0", + "esutils": "^2.0.2", + "optionator": "^0.8.1" + }, + "bin": { + "escodegen": "bin/escodegen.js", + "esgenerate": "bin/esgenerate.js" + }, + "engines": { + "node": ">=4.0" + }, + "optionalDependencies": { + "source-map": "~0.6.1" + } + }, + "node_modules/static-module/node_modules/esprima": { + "version": "4.0.1", + "resolved": "https://registry.npmjs.org/esprima/-/esprima-4.0.1.tgz", + "integrity": "sha512-eGuFFw7Upda+g4p+QHvnW0RyTX/SVeJBDM/gCtMARO0cLuT2HcEKnTPvhjV6aGeqrCB/sbNop0Kszm0jsaWU4A==", + "bin": { + "esparse": "bin/esparse.js", + "esvalidate": "bin/esvalidate.js" + }, + "engines": { + "node": ">=4" + } + }, + "node_modules/static-module/node_modules/estraverse": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/estraverse/-/estraverse-4.3.0.tgz", + "integrity": "sha512-39nnKffWz8xN1BU/2c79n9nB9HDzo0niYUqx6xyqUnyoAnQyyWpOTdZEeiCch8BBu515t4wp9ZmgVfVhn9EBpw==", + "engines": { + "node": ">=4.0" + } + }, + "node_modules/statuses": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/statuses/-/statuses-2.0.1.tgz", + "integrity": "sha512-RwNA9Z/7PrK06rYLIzFMlaF+l73iwpzsqRIFgbMLbTcLD6cOao82TaWefPXQvB2fOC4AjuYSEndS7N/mTCbkdQ==", + "dev": true, + "engines": { + "node": ">= 0.8" + } + }, + "node_modules/std-env": { + "version": "3.3.2", + "resolved": "https://registry.npmjs.org/std-env/-/std-env-3.3.2.tgz", + "integrity": "sha512-uUZI65yrV2Qva5gqE0+A7uVAvO40iPo6jGhs7s8keRfHCmtg+uB2X6EiLGCI9IgL1J17xGhvoOqSz79lzICPTA==", + "dev": true + }, + "node_modules/stream-browserify": { + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/stream-browserify/-/stream-browserify-2.0.2.tgz", + "integrity": "sha512-nX6hmklHs/gr2FuxYDltq8fJA1GDlxKQCz8O/IM4atRqBH8OORmBNgfvW5gG10GT/qQ9u0CzIvr2X5Pkt6ntqg==", + "dev": true, + "dependencies": { + "inherits": "~2.0.1", + "readable-stream": "^2.0.2" + } + }, + "node_modules/stream-http": { + "version": "2.8.3", + "resolved": "https://registry.npmjs.org/stream-http/-/stream-http-2.8.3.tgz", + "integrity": "sha512-+TSkfINHDo4J+ZobQLWiMouQYB+UVYFttRA94FpEzzJ7ZdqcL4uUUQ7WkdkI4DSozGmgBUE/a47L+38PenXhUw==", + "dev": true, + "dependencies": { + "builtin-status-codes": "^3.0.0", + "inherits": "^2.0.1", + "readable-stream": "^2.3.6", + "to-arraybuffer": "^1.0.0", + "xtend": "^4.0.0" + } + }, + "node_modules/string_decoder": { + "version": "1.3.0", + "resolved": "https://registry.npmjs.org/string_decoder/-/string_decoder-1.3.0.tgz", + "integrity": "sha512-hkRX8U1WjJFd8LsDJ2yQ/wWWxaopEsABU1XfkM8A+j0+85JAGppt16cr1Whg6KIbb4okU6Mql6BOj+uup/wKeA==", + "dev": true, + "dependencies": { + "safe-buffer": "~5.2.0" + } + }, + "node_modules/string-width": { + "version": "4.2.3", + "resolved": "https://registry.npmjs.org/string-width/-/string-width-4.2.3.tgz", + "integrity": "sha512-wKyQRQpjJ0sIp62ErSZdGsjMJWsap5oRNihHhu6G7JVO/9jIB6UyevL+tXuOqrng8j/cxKTWyWUwvSTriiZz/g==", + "dependencies": { + "emoji-regex": "^8.0.0", + "is-fullwidth-code-point": "^3.0.0", + "strip-ansi": "^6.0.1" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/string.prototype.trim": { + "version": "1.2.7", + "resolved": "https://registry.npmjs.org/string.prototype.trim/-/string.prototype.trim-1.2.7.tgz", + "integrity": "sha512-p6TmeT1T3411M8Cgg9wBTMRtY2q9+PNy9EV1i2lIXUN/btt763oIfxwN3RR8VU6wHX8j/1CFy0L+YuThm6bgOg==", + "dev": true, + "dependencies": { + "call-bind": "^1.0.2", + "define-properties": "^1.1.4", + "es-abstract": "^1.20.4" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/string.prototype.trimend": { + "version": "1.0.6", + "resolved": "https://registry.npmjs.org/string.prototype.trimend/-/string.prototype.trimend-1.0.6.tgz", + "integrity": "sha512-JySq+4mrPf9EsDBEDYMOb/lM7XQLulwg5R/m1r0PXEFqrV0qHvl58sdTilSXtKOflCsK2E8jxf+GKC0T07RWwQ==", + "dev": true, + "dependencies": { + "call-bind": "^1.0.2", + "define-properties": "^1.1.4", + "es-abstract": "^1.20.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/string.prototype.trimstart": { + "version": "1.0.6", + "resolved": "https://registry.npmjs.org/string.prototype.trimstart/-/string.prototype.trimstart-1.0.6.tgz", + "integrity": "sha512-omqjMDaY92pbn5HOX7f9IccLA+U1tA9GvtU4JrodiXFfYB7jPzzHpRzpglLAjtUV6bB557zwClJezTqnAiYnQA==", + "dev": true, + "dependencies": { + "call-bind": "^1.0.2", + "define-properties": "^1.1.4", + "es-abstract": "^1.20.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/strip-ansi": { + "version": "6.0.1", + "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-6.0.1.tgz", + "integrity": "sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A==", + "dependencies": { + "ansi-regex": "^5.0.1" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/strip-final-newline": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/strip-final-newline/-/strip-final-newline-2.0.0.tgz", + "integrity": "sha512-BrpvfNAE3dcvq7ll3xVumzjKjZQ5tI1sEUIKr3Uoks0XUl45St3FlatVqef9prk4jRDzhW6WZg+3bk93y6pLjA==", + "dev": true, + "engines": { + "node": ">=6" + } + }, + "node_modules/strip-json-comments": { + "version": "3.1.1", + "resolved": "https://registry.npmjs.org/strip-json-comments/-/strip-json-comments-3.1.1.tgz", + "integrity": "sha512-6fPc+R4ihwqP6N/aIv2f1gMH8lOVtWQHoqC4yK6oSDVVocumAsfCqjkXnqiYMhmMwS/mEHLp7Vehlt3ql6lEig==", + "dev": true, + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/style-loader": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/style-loader/-/style-loader-2.0.0.tgz", + "integrity": "sha512-Z0gYUJmzZ6ZdRUqpg1r8GsaFKypE+3xAzuFeMuoHgjc9KZv3wMyCRjQIWEbhoFSq7+7yoHXySDJyyWQaPajeiQ==", + "dev": true, + "dependencies": { + "loader-utils": "^2.0.0", + "schema-utils": "^3.0.0" + }, + "engines": { + "node": ">= 10.13.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/webpack" + }, + "peerDependencies": { + "webpack": "^4.0.0 || ^5.0.0" + } + }, + "node_modules/style-loader/node_modules/schema-utils": { + "version": "3.1.1", + "resolved": "https://registry.npmjs.org/schema-utils/-/schema-utils-3.1.1.tgz", + "integrity": "sha512-Y5PQxS4ITlC+EahLuXaY86TXfR7Dc5lw294alXOq86JAHCihAIZfqv8nNCWvaEJvaC51uN9hbLGeV0cFBdH+Fw==", + "dev": true, + "dependencies": { + "@types/json-schema": "^7.0.8", + "ajv": "^6.12.5", + "ajv-keywords": "^3.5.2" + }, + "engines": { + "node": ">= 10.13.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/webpack" + } + }, + "node_modules/stylehacks": { + "version": "5.1.1", + "resolved": "https://registry.npmjs.org/stylehacks/-/stylehacks-5.1.1.tgz", + "integrity": "sha512-sBpcd5Hx7G6seo7b1LkpttvTz7ikD0LlH5RmdcBNb6fFR0Fl7LQwHDFr300q4cwUqi+IYrFGmsIHieMBfnN/Bw==", + "dev": true, + "dependencies": { + "browserslist": "^4.21.4", + "postcss-selector-parser": "^6.0.4" + }, + "engines": { + "node": "^10 || ^12 || >=14.0" + }, + "peerDependencies": { + "postcss": "^8.2.15" + } + }, + "node_modules/supports-color": { + "version": "7.2.0", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", + "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", + "dependencies": { + "has-flag": "^4.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/supports-preserve-symlinks-flag": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/supports-preserve-symlinks-flag/-/supports-preserve-symlinks-flag-1.0.0.tgz", + "integrity": "sha512-ot0WnXS9fgdkgIcePe6RHNk1WA8+muPa6cSjeR3V8K27q9BB1rTE3R1p7Hv0z1ZyAc8s6Vvv8DIyWf681MAt0w==", + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/svg.draggable.js": { + "version": "2.2.2", + "resolved": "https://registry.npmjs.org/svg.draggable.js/-/svg.draggable.js-2.2.2.tgz", + "integrity": "sha512-JzNHBc2fLQMzYCZ90KZHN2ohXL0BQJGQimK1kGk6AvSeibuKcIdDX9Kr0dT9+UJ5O8nYA0RB839Lhvk4CY4MZw==", + "dependencies": { + "svg.js": "^2.0.1" + }, + "engines": { + "node": ">= 0.8.0" + } + }, + "node_modules/svg.easing.js": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/svg.easing.js/-/svg.easing.js-2.0.0.tgz", + "integrity": "sha512-//ctPdJMGy22YoYGV+3HEfHbm6/69LJUTAqI2/5qBvaNHZ9uUFVC82B0Pl299HzgH13rKrBgi4+XyXXyVWWthA==", + "dependencies": { + "svg.js": ">=2.3.x" + }, + "engines": { + "node": ">= 0.8.0" + } + }, + "node_modules/svg.filter.js": { + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/svg.filter.js/-/svg.filter.js-2.0.2.tgz", + "integrity": "sha512-xkGBwU+dKBzqg5PtilaTb0EYPqPfJ9Q6saVldX+5vCRy31P6TlRCP3U9NxH3HEufkKkpNgdTLBJnmhDHeTqAkw==", + "dependencies": { + "svg.js": "^2.2.5" + }, + "engines": { + "node": ">= 0.8.0" + } + }, + "node_modules/svg.js": { + "version": "2.7.1", + "resolved": "https://registry.npmjs.org/svg.js/-/svg.js-2.7.1.tgz", + "integrity": "sha512-ycbxpizEQktk3FYvn/8BH+6/EuWXg7ZpQREJvgacqn46gIddG24tNNe4Son6omdXCnSOaApnpZw6MPCBA1dODA==" + }, + "node_modules/svg.pathmorphing.js": { + "version": "0.1.3", + "resolved": "https://registry.npmjs.org/svg.pathmorphing.js/-/svg.pathmorphing.js-0.1.3.tgz", + "integrity": "sha512-49HWI9X4XQR/JG1qXkSDV8xViuTLIWm/B/7YuQELV5KMOPtXjiwH4XPJvr/ghEDibmLQ9Oc22dpWpG0vUDDNww==", + "dependencies": { + "svg.js": "^2.4.0" + }, + "engines": { + "node": ">= 0.8.0" + } + }, + "node_modules/svg.resize.js": { + "version": "1.4.3", + "resolved": "https://registry.npmjs.org/svg.resize.js/-/svg.resize.js-1.4.3.tgz", + "integrity": "sha512-9k5sXJuPKp+mVzXNvxz7U0uC9oVMQrrf7cFsETznzUDDm0x8+77dtZkWdMfRlmbkEEYvUn9btKuZ3n41oNA+uw==", + "dependencies": { + "svg.js": "^2.6.5", + "svg.select.js": "^2.1.2" + }, + "engines": { + "node": ">= 0.8.0" + } + }, + "node_modules/svg.resize.js/node_modules/svg.select.js": { + "version": "2.1.2", + "resolved": "https://registry.npmjs.org/svg.select.js/-/svg.select.js-2.1.2.tgz", + "integrity": "sha512-tH6ABEyJsAOVAhwcCjF8mw4crjXSI1aa7j2VQR8ZuJ37H2MBUbyeqYr5nEO7sSN3cy9AR9DUwNg0t/962HlDbQ==", + "dependencies": { + "svg.js": "^2.2.5" + }, + "engines": { + "node": ">= 0.8.0" + } + }, + "node_modules/svg.select.js": { + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/svg.select.js/-/svg.select.js-3.0.1.tgz", + "integrity": "sha512-h5IS/hKkuVCbKSieR9uQCj9w+zLHoPh+ce19bBYyqF53g6mnPB8sAtIbe1s9dh2S2fCmYX2xel1Ln3PJBbK4kw==", + "dependencies": { + "svg.js": "^2.6.5" + }, + "engines": { + "node": ">= 0.8.0" + } + }, + "node_modules/svgo": { + "version": "2.8.0", + "resolved": "https://registry.npmjs.org/svgo/-/svgo-2.8.0.tgz", + "integrity": "sha512-+N/Q9kV1+F+UeWYoSiULYo4xYSDQlTgb+ayMobAXPwMnLvop7oxKMo9OzIrX5x3eS4L4f2UHhc9axXwY8DpChg==", + "dev": true, + "dependencies": { + "@trysound/sax": "0.2.0", + "commander": "^7.2.0", + "css-select": "^4.1.3", + "css-tree": "^1.1.3", + "csso": "^4.2.0", + "picocolors": "^1.0.0", + "stable": "^0.1.8" + }, + "bin": { + "svgo": "bin/svgo" + }, + "engines": { + "node": ">=10.13.0" + } + }, + "node_modules/sweetalert2": { + "version": "11.4.8", + "resolved": "https://registry.npmjs.org/sweetalert2/-/sweetalert2-11.4.8.tgz", + "integrity": "sha512-BDS/+E8RwaekGSxCPUbPnsRAyQ439gtXkTF/s98vY2l9DaVEOMjGj1FaQSorfGREKsbbxGSP7UXboibL5vgTMA==", + "funding": { + "type": "individual", + "url": "https://sweetalert2.github.io/#donations" + } + }, + "node_modules/tapable": { + "version": "2.2.1", + "resolved": "https://registry.npmjs.org/tapable/-/tapable-2.2.1.tgz", + "integrity": "sha512-GNzQvQTOIP6RyTfE2Qxb8ZVlNmw0n88vp1szwWRimP02mnTsx3Wtn5qRdqY9w2XduFNUgvOwhNnQsjwCp+kqaQ==", + "dev": true, + "engines": { + "node": ">=6" + } + }, + "node_modules/terser": { + "version": "5.16.9", + "resolved": "https://registry.npmjs.org/terser/-/terser-5.16.9.tgz", + "integrity": "sha512-HPa/FdTB9XGI2H1/keLFZHxl6WNvAI4YalHGtDQTlMnJcoqSab1UwL4l1hGEhs6/GmLHBZIg/YgB++jcbzoOEg==", + "dev": true, + "dependencies": { + "@jridgewell/source-map": "^0.3.2", + "acorn": "^8.5.0", + "commander": "^2.20.0", + "source-map-support": "~0.5.20" + }, + "bin": { + "terser": "bin/terser" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/terser-webpack-plugin": { + "version": "5.3.7", + "resolved": "https://registry.npmjs.org/terser-webpack-plugin/-/terser-webpack-plugin-5.3.7.tgz", + "integrity": "sha512-AfKwIktyP7Cu50xNjXF/6Qb5lBNzYaWpU6YfoX3uZicTx0zTy0stDDCsvjDapKsSDvOeWo5MEq4TmdBy2cNoHw==", + "dev": true, + "dependencies": { + "@jridgewell/trace-mapping": "^0.3.17", + "jest-worker": "^27.4.5", + "schema-utils": "^3.1.1", + "serialize-javascript": "^6.0.1", + "terser": "^5.16.5" + }, + "engines": { + "node": ">= 10.13.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/webpack" + }, + "peerDependencies": { + "webpack": "^5.1.0" + }, + "peerDependenciesMeta": { + "@swc/core": { + "optional": true + }, + "esbuild": { + "optional": true + }, + "uglify-js": { + "optional": true + } + } + }, + "node_modules/terser-webpack-plugin/node_modules/schema-utils": { + "version": "3.1.1", + "resolved": "https://registry.npmjs.org/schema-utils/-/schema-utils-3.1.1.tgz", + "integrity": "sha512-Y5PQxS4ITlC+EahLuXaY86TXfR7Dc5lw294alXOq86JAHCihAIZfqv8nNCWvaEJvaC51uN9hbLGeV0cFBdH+Fw==", + "dev": true, + "dependencies": { + "@types/json-schema": "^7.0.8", + "ajv": "^6.12.5", + "ajv-keywords": "^3.5.2" + }, + "engines": { + "node": ">= 10.13.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/webpack" + } + }, + "node_modules/terser/node_modules/commander": { + "version": "2.20.3", + "resolved": "https://registry.npmjs.org/commander/-/commander-2.20.3.tgz", + "integrity": "sha512-GpVkmM8vF2vQUkj2LvZmD35JxeJOLCwJ9cUkugyk2nuhbv3+mJvpLYYt+0+USMxE+oj+ey/lJEnhZw75x/OMcQ==", + "dev": true + }, + "node_modules/through": { + "version": "2.3.8", + "resolved": "https://registry.npmjs.org/through/-/through-2.3.8.tgz", + "integrity": "sha512-w89qg7PI8wAdvX60bMDP+bFoD5Dvhm9oLheFp5O4a2QF0cSBGsBX4qZmadPMvVqlLJBBci+WqGGOAPvcDeNSVg==" + }, + "node_modules/through2": { + "version": "2.0.5", + "resolved": "https://registry.npmjs.org/through2/-/through2-2.0.5.tgz", + "integrity": "sha512-/mrRod8xqpA+IHSLyGCQ2s8SPHiCDEeQJSep1jqLYeEUClOFG2Qsh+4FU6G9VeqpZnGW/Su8LQGc4YKni5rYSQ==", + "dependencies": { + "readable-stream": "~2.3.6", + "xtend": "~4.0.1" + } + }, + "node_modules/thunky": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/thunky/-/thunky-1.1.0.tgz", + "integrity": "sha512-eHY7nBftgThBqOyHGVN+l8gF0BucP09fMo0oO/Lb0w1OF80dJv+lDVpXG60WMQvkcxAkNybKsrEIE3ZtKGmPrA==", + "dev": true + }, + "node_modules/ticky": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/ticky/-/ticky-1.0.1.tgz", + "integrity": "sha512-RX35iq/D+lrsqhcPWIazM9ELkjOe30MSeoBHQHSsRwd1YuhJO5ui1K1/R0r7N3mFvbLBs33idw+eR6j+w6i/DA==" + }, + "node_modules/timers-browserify": { + "version": "2.0.12", + "resolved": "https://registry.npmjs.org/timers-browserify/-/timers-browserify-2.0.12.tgz", + "integrity": "sha512-9phl76Cqm6FhSX9Xe1ZUAMLtm1BLkKj2Qd5ApyWkXzsMRaA7dgr81kf4wJmQf/hAvg8EEyJxDo3du/0KlhPiKQ==", + "dev": true, + "dependencies": { + "setimmediate": "^1.0.4" + }, + "engines": { + "node": ">=0.6.0" + } + }, + "node_modules/timsort": { + "version": "0.3.0", + "resolved": "https://registry.npmjs.org/timsort/-/timsort-0.3.0.tgz", + "integrity": "sha512-qsdtZH+vMoCARQtyod4imc2nIJwg9Cc7lPRrw9CzF8ZKR0khdr8+2nX80PBhET3tcyTtJDxAffGh2rXH4tyU8A==", + "dev": true + }, + "node_modules/tiny-binary-search": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/tiny-binary-search/-/tiny-binary-search-1.0.3.tgz", + "integrity": "sha512-STSHX/L5nI9WTLv6wrzJbAPbO7OIISX83KFBh2GVbX1Uz/vgZOU/ANn/8iV6t35yMTpoPzzO+3OQid3mifE0CA==" + }, + "node_modules/tiny-emitter": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/tiny-emitter/-/tiny-emitter-2.1.0.tgz", + "integrity": "sha512-NB6Dk1A9xgQPMoGqC5CVXn123gWyte215ONT5Pp5a0yt4nlEoO1ZWeCwpncaekPHXO60i47ihFnZPiRPjRMq4Q==" + }, + "node_modules/tiny-glob": { + "version": "0.2.9", + "resolved": "https://registry.npmjs.org/tiny-glob/-/tiny-glob-0.2.9.tgz", + "integrity": "sha512-g/55ssRPUjShh+xkfx9UPDXqhckHEsHr4Vd9zX55oSdGZc/MD0m3sferOkwWtp98bv+kcVfEHtRJgBVJzelrzg==", + "dependencies": { + "globalyzer": "0.1.0", + "globrex": "^0.1.2" + } + }, + "node_modules/tiny-inflate": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/tiny-inflate/-/tiny-inflate-1.0.3.tgz", + "integrity": "sha512-pkY1fj1cKHb2seWDy0B16HeWyczlJA9/WW3u3c4z/NiWDsO3DOU5D7nhTLE9CF0yXv/QZFY7sEJmj24dK+Rrqw==" + }, + "node_modules/tiny-slider": { + "version": "2.9.4", + "resolved": "https://registry.npmjs.org/tiny-slider/-/tiny-slider-2.9.4.tgz", + "integrity": "sha512-LAs2kldWcY+BqCKw4kxd4CMx2RhWrHyEePEsymlOIISTlOVkjfK40sSD7ay73eKXBLg/UkluAZpcfCstimHXew==" + }, + "node_modules/tinymce": { + "version": "5.10.7", + "resolved": "https://registry.npmjs.org/tinymce/-/tinymce-5.10.7.tgz", + "integrity": "sha512-9UUjaO0R7FxcFo0oxnd1lMs7H+D0Eh+dDVo5hKbVe1a+VB0nit97vOqlinj+YwgoBDt6/DSCUoWqAYlLI8BLYA==" + }, + "node_modules/to-arraybuffer": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/to-arraybuffer/-/to-arraybuffer-1.0.1.tgz", + "integrity": "sha512-okFlQcoGTi4LQBG/PgSYblw9VOyptsz2KJZqc6qtgGdes8VktzUQkj4BI2blit072iS8VODNcMA+tvnS9dnuMA==", + "dev": true + }, + "node_modules/to-fast-properties": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/to-fast-properties/-/to-fast-properties-2.0.0.tgz", + "integrity": "sha512-/OaKK0xYrs3DmxRYqL/yDc+FxFUVYhDlXMhRmv3z915w2HF1tnN1omB354j8VUGO/hbRzyD6Y3sA7v7GS/ceog==", + "dev": true, + "engines": { + "node": ">=4" + } + }, + "node_modules/to-regex-range": { + "version": "5.0.1", + "resolved": "https://registry.npmjs.org/to-regex-range/-/to-regex-range-5.0.1.tgz", + "integrity": "sha512-65P7iz6X5yEr1cwcgvQxbbIw7Uk3gOy5dIdtZ4rDveLqhrdJP+Li/Hx6tyK0NEb+2GCyneCMJiGqrADCSNk8sQ==", + "dependencies": { + "is-number": "^7.0.0" + }, + "engines": { + "node": ">=8.0" + } + }, + "node_modules/toastr": { + "version": "2.1.4", + "resolved": "https://registry.npmjs.org/toastr/-/toastr-2.1.4.tgz", + "integrity": "sha512-LIy77F5n+sz4tefMmFOntcJ6HL0Fv3k1TDnNmFZ0bU/GcvIIfy6eG2v7zQmMiYgaalAiUv75ttFrPn5s0gyqlA==", + "dependencies": { + "jquery": ">=1.12.0" + } + }, + "node_modules/toidentifier": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/toidentifier/-/toidentifier-1.0.1.tgz", + "integrity": "sha512-o5sSPKEkg/DIQNmH43V0/uerLrpzVedkUh8tGNvaeXpfpuwjKenlSox/2O/BTlZUtEe+JG7s5YhEz608PlAHRA==", + "dev": true, + "engines": { + "node": ">=0.6" + } + }, + "node_modules/touch": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/touch/-/touch-3.1.0.tgz", + "integrity": "sha512-WBx8Uy5TLtOSRtIq+M03/sKDrXCLHxwDcquSP2c43Le03/9serjQBIztjRz6FkJez9D/hleyAXTBGLwwZUw9lA==", + "dependencies": { + "nopt": "~1.0.10" + }, + "bin": { + "nodetouch": "bin/nodetouch.js" + } + }, + "node_modules/trim": { + "version": "0.0.3", + "resolved": "https://registry.npmjs.org/trim/-/trim-0.0.3.tgz", + "integrity": "sha512-h82ywcYhHK7veeelXrCScdH7HkWfbIT1D/CgYO+nmDarz3SGNssVBMws6jU16Ga60AJCRAvPV6w6RLuNerQqjg==", + "deprecated": "Use String.prototype.trim() instead" + }, + "node_modules/trim-trailing-lines": { + "version": "1.1.4", + "resolved": "https://registry.npmjs.org/trim-trailing-lines/-/trim-trailing-lines-1.1.4.tgz", + "integrity": "sha512-rjUWSqnfTNrjbB9NQWfPMH/xRK1deHeGsHoVfpxJ++XeYXE0d6B1En37AHfw3jtfTU7dzMzZL2jjpe8Qb5gLIQ==", + "funding": { + "type": "github", + "url": "https://github.com/sponsors/wooorm" + } + }, + "node_modules/trough": { + "version": "1.0.5", + "resolved": "https://registry.npmjs.org/trough/-/trough-1.0.5.tgz", + "integrity": "sha512-rvuRbTarPXmMb79SmzEp8aqXNKcK+y0XaB298IXueQ8I2PsrATcPBCSPyK/dDNa2iWOhKlfNnOjdAOTBU/nkFA==", + "funding": { + "type": "github", + "url": "https://github.com/sponsors/wooorm" + } + }, + "node_modules/tslib": { + "version": "2.5.0", + "resolved": "https://registry.npmjs.org/tslib/-/tslib-2.5.0.tgz", + "integrity": "sha512-336iVw3rtn2BUK7ORdIAHTyxHGRIHVReokCR3XjbckJMK7ms8FysBfhLR8IXnAgy7T0PTPNBWKiH514FOW/WSg==", + "dev": true + }, + "node_modules/tsutils": { + "version": "3.21.0", + "resolved": "https://registry.npmjs.org/tsutils/-/tsutils-3.21.0.tgz", + "integrity": "sha512-mHKK3iUXL+3UF6xL5k0PEhKRUBKPBCv/+RkEOpjRWxxx27KKRBmmA60A9pgOUvMi8GKhRMPEmjBRPzs2W7O1OA==", + "dependencies": { + "tslib": "^1.8.1" + }, + "engines": { + "node": ">= 6" + }, + "peerDependencies": { + "typescript": ">=2.8.0 || >= 3.2.0-dev || >= 3.3.0-dev || >= 3.4.0-dev || >= 3.5.0-dev || >= 3.6.0-dev || >= 3.6.0-beta || >= 3.7.0-dev || >= 3.7.0-beta" + } + }, + "node_modules/tsutils/node_modules/tslib": { + "version": "1.14.1", + "resolved": "https://registry.npmjs.org/tslib/-/tslib-1.14.1.tgz", + "integrity": "sha512-Xni35NKzjgMrwevysHTCArtLDpPvye8zV/0E4EyYn43P7/7qvQwPh9BGkHewbMulVntbigmcT7rdX3BNo9wRJg==" + }, + "node_modules/tty-browserify": { + "version": "0.0.0", + "resolved": "https://registry.npmjs.org/tty-browserify/-/tty-browserify-0.0.0.tgz", + "integrity": "sha512-JVa5ijo+j/sOoHGjw0sxw734b1LhBkQ3bvUGNdxnVXDCX81Yx7TFgnZygxrIIWn23hbfTaMYLwRmAxFyDuFmIw==", + "dev": true + }, + "node_modules/type": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/type/-/type-1.2.0.tgz", + "integrity": "sha512-+5nt5AAniqsCnu2cEQQdpzCAh33kVx8n0VoFidKpB1dVVLAN/F+bgVOqOJqOnEnrhp222clB5p3vUlD+1QAnfg==" + }, + "node_modules/type-check": { + "version": "0.3.2", + "resolved": "https://registry.npmjs.org/type-check/-/type-check-0.3.2.tgz", + "integrity": "sha512-ZCmOJdvOWDBYJlzAoFkC+Q0+bUyEOS1ltgp1MGU03fqHG+dbi9tBFU2Rd9QKiDZFAYrhPh2JUf7rZRIuHRKtOg==", + "dependencies": { + "prelude-ls": "~1.1.2" + }, + "engines": { + "node": ">= 0.8.0" + } + }, + "node_modules/type-is": { + "version": "1.6.18", + "resolved": "https://registry.npmjs.org/type-is/-/type-is-1.6.18.tgz", + "integrity": "sha512-TkRKr9sUTxEH8MdfuCSP7VizJyzRNMjj2J2do2Jr3Kym598JVdEksuzPQCnlFPW4ky9Q+iA+ma9BGm06XQBy8g==", + "dev": true, + "dependencies": { + "media-typer": "0.3.0", + "mime-types": "~2.1.24" + }, + "engines": { + "node": ">= 0.6" + } + }, + "node_modules/typed-array-length": { + "version": "1.0.4", + "resolved": "https://registry.npmjs.org/typed-array-length/-/typed-array-length-1.0.4.tgz", + "integrity": "sha512-KjZypGq+I/H7HI5HlOoGHkWUUGq+Q0TPhQurLbyrVrvnKTBgzLhIJ7j6J/XTQOi0d1RjyZ0wdas8bKs2p0x3Ng==", + "dev": true, + "dependencies": { + "call-bind": "^1.0.2", + "for-each": "^0.3.3", + "is-typed-array": "^1.1.9" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/typed.js": { + "version": "2.0.12", + "resolved": "https://registry.npmjs.org/typed.js/-/typed.js-2.0.12.tgz", + "integrity": "sha512-lyACZh1cu+vpfYY3DG/bvsGLXXbdoDDpWxmqta10IQUdMXisMXOEyl+jos+YT9uBbzK4QaKYBjT3R0kTJO0Slw==" + }, + "node_modules/typedarray": { + "version": "0.0.6", + "resolved": "https://registry.npmjs.org/typedarray/-/typedarray-0.0.6.tgz", + "integrity": "sha512-/aCDEGatGvZ2BIk+HmLf4ifCJFwvKFNb9/JeZPMulfgFracn9QFcAf5GO8B/mweUjSoblS5In0cWhqpfs/5PQA==" + }, + "node_modules/typescript": { + "version": "4.9.5", + "resolved": "https://registry.npmjs.org/typescript/-/typescript-4.9.5.tgz", + "integrity": "sha512-1FXk9E2Hm+QzZQ7z+McJiHL4NW1F2EzMu9Nq9i3zAaGqibafqYwCVU6WyWAuyQRRzOlxou8xZSyXLEN8oKj24g==", + "bin": { + "tsc": "bin/tsc", + "tsserver": "bin/tsserver" + }, + "engines": { + "node": ">=4.2.0" + } + }, + "node_modules/uglify-js": { + "version": "3.17.4", + "resolved": "https://registry.npmjs.org/uglify-js/-/uglify-js-3.17.4.tgz", + "integrity": "sha512-T9q82TJI9e/C1TAxYvfb16xO120tMVFZrGA3f9/P4424DNu6ypK103y0GPFVa17yotwSyZW5iYXgjYHkGrJW/g==", + "optional": true, + "bin": { + "uglifyjs": "bin/uglifyjs" + }, + "engines": { + "node": ">=0.8.0" + } + }, + "node_modules/unbox-primitive": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/unbox-primitive/-/unbox-primitive-1.0.2.tgz", + "integrity": "sha512-61pPlCD9h51VoreyJ0BReideM3MDKMKnh6+V9L08331ipq6Q8OFXZYiqP6n/tbHx4s5I9uRhcye6BrbkizkBDw==", + "dev": true, + "dependencies": { + "call-bind": "^1.0.2", + "has-bigints": "^1.0.2", + "has-symbols": "^1.0.3", + "which-boxed-primitive": "^1.0.2" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/undefsafe": { + "version": "2.0.5", + "resolved": "https://registry.npmjs.org/undefsafe/-/undefsafe-2.0.5.tgz", + "integrity": "sha512-WxONCrssBM8TSPRqN5EmsjVrsv4A8X12J4ArBiiayv3DyyG3ZlIg6yysuuSYdZsVz3TKcTg2fd//Ujd4CHV1iA==" + }, + "node_modules/unherit": { + "version": "1.1.3", + "resolved": "https://registry.npmjs.org/unherit/-/unherit-1.1.3.tgz", + "integrity": "sha512-Ft16BJcnapDKp0+J/rqFC3Rrk6Y/Ng4nzsC028k2jdDII/rdZ7Wd3pPT/6+vIIxRagwRc9K0IUX0Ra4fKvw+WQ==", + "dependencies": { + "inherits": "^2.0.0", + "xtend": "^4.0.0" + }, + "funding": { + "type": "github", + "url": "https://github.com/sponsors/wooorm" + } + }, + "node_modules/unicode-canonical-property-names-ecmascript": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/unicode-canonical-property-names-ecmascript/-/unicode-canonical-property-names-ecmascript-2.0.0.tgz", + "integrity": "sha512-yY5PpDlfVIU5+y/BSCxAJRBIS1Zc2dDG3Ujq+sR0U+JjUevW2JhocOF+soROYDSaAezOzOKuyyixhD6mBknSmQ==", + "dev": true, + "engines": { + "node": ">=4" + } + }, + "node_modules/unicode-match-property-ecmascript": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/unicode-match-property-ecmascript/-/unicode-match-property-ecmascript-2.0.0.tgz", + "integrity": "sha512-5kaZCrbp5mmbz5ulBkDkbY0SsPOjKqVS35VpL9ulMPfSl0J0Xsm+9Evphv9CoIZFwre7aJoa94AY6seMKGVN5Q==", + "dev": true, + "dependencies": { + "unicode-canonical-property-names-ecmascript": "^2.0.0", + "unicode-property-aliases-ecmascript": "^2.0.0" + }, + "engines": { + "node": ">=4" + } + }, + "node_modules/unicode-match-property-value-ecmascript": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/unicode-match-property-value-ecmascript/-/unicode-match-property-value-ecmascript-2.1.0.tgz", + "integrity": "sha512-qxkjQt6qjg/mYscYMC0XKRn3Rh0wFPlfxB0xkt9CfyTvpX1Ra0+rAmdX2QyAobptSEvuy4RtpPRui6XkV+8wjA==", + "dev": true, + "engines": { + "node": ">=4" + } + }, + "node_modules/unicode-properties": { + "version": "1.4.1", + "resolved": "https://registry.npmjs.org/unicode-properties/-/unicode-properties-1.4.1.tgz", + "integrity": "sha512-CLjCCLQ6UuMxWnbIylkisbRj31qxHPAurvena/0iwSVbQ2G1VY5/HjV0IRabOEbDHlzZlRdCrD4NhB0JtU40Pg==", + "dependencies": { + "base64-js": "^1.3.0", + "unicode-trie": "^2.0.0" + } + }, + "node_modules/unicode-property-aliases-ecmascript": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/unicode-property-aliases-ecmascript/-/unicode-property-aliases-ecmascript-2.1.0.tgz", + "integrity": "sha512-6t3foTQI9qne+OZoVQB/8x8rk2k1eVy1gRXhV3oFQ5T6R1dqQ1xtin3XqSlx3+ATBkliTaR/hHyJBm+LVPNM8w==", + "dev": true, + "engines": { + "node": ">=4" + } + }, + "node_modules/unicode-regex": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/unicode-regex/-/unicode-regex-3.0.0.tgz", + "integrity": "sha512-WiDJdORsqgxkZrjC8WsIP573130HNn7KsB0IDnUccW2BG2b19QQNloNhVe6DKk3Aef0UcoIHhNVj7IkkcYWrNw==", + "dependencies": { + "regexp-util": "^1.2.0" + }, + "engines": { + "node": ">= 4" + } + }, + "node_modules/unicode-trie": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/unicode-trie/-/unicode-trie-2.0.0.tgz", + "integrity": "sha512-x7bc76x0bm4prf1VLg79uhAzKw8DVboClSN5VxJuQ+LKDOVEW9CdH+VY7SP+vX7xCYQqzzgQpFqz15zeLvAtZQ==", + "dependencies": { + "pako": "^0.2.5", + "tiny-inflate": "^1.0.0" + } + }, + "node_modules/unicode-trie/node_modules/pako": { + "version": "0.2.9", + "resolved": "https://registry.npmjs.org/pako/-/pako-0.2.9.tgz", + "integrity": "sha512-NUcwaKxUxWrZLpDG+z/xZaCgQITkA/Dv4V/T6bw7VON6l1Xz/VnrBqrYjZQ12TamKHzITTfOEIYUj48y2KXImA==" + }, + "node_modules/unified": { + "version": "9.2.1", + "resolved": "https://registry.npmjs.org/unified/-/unified-9.2.1.tgz", + "integrity": "sha512-juWjuI8Z4xFg8pJbnEZ41b5xjGUWGHqXALmBZ3FC3WX0PIx1CZBIIJ6mXbYMcf6Yw4Fi0rFUTA1cdz/BglbOhA==", + "dependencies": { + "bail": "^1.0.0", + "extend": "^3.0.0", + "is-buffer": "^2.0.0", + "is-plain-obj": "^2.0.0", + "trough": "^1.0.0", + "vfile": "^4.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/unified" + } + }, + "node_modules/unified/node_modules/is-buffer": { + "version": "2.0.5", + "resolved": "https://registry.npmjs.org/is-buffer/-/is-buffer-2.0.5.tgz", + "integrity": "sha512-i2R6zNFDwgEHJyQUtJEk0XFi1i0dPFn/oqjK3/vPCcDeJvW5NQ83V8QbicfF1SupOaB0h8ntgBC2YiE7dfyctQ==", + "funding": [ + { + "type": "github", + "url": "https://github.com/sponsors/feross" + }, + { + "type": "patreon", + "url": "https://www.patreon.com/feross" + }, + { + "type": "consulting", + "url": "https://feross.org/support" + } + ], + "engines": { + "node": ">=4" + } + }, + "node_modules/unified/node_modules/is-plain-obj": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/is-plain-obj/-/is-plain-obj-2.1.0.tgz", + "integrity": "sha512-YWnfyRwxL/+SsrWYfOpUtz5b3YD+nyfkHvjbcanzk8zgyO4ASD67uVMRt8k5bM4lLMDnXfriRhOpemw+NfT1eA==", + "engines": { + "node": ">=8" + } + }, + "node_modules/uniq": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/uniq/-/uniq-1.0.1.tgz", + "integrity": "sha512-Gw+zz50YNKPDKXs+9d+aKAjVwpjNwqzvNpLigIruT4HA9lMZNdMqs9x07kKHB/L9WRzqp4+DlTU5s4wG2esdoA==" + }, + "node_modules/uniqs": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/uniqs/-/uniqs-2.0.0.tgz", + "integrity": "sha512-mZdDpf3vBV5Efh29kMw5tXoup/buMgxLzOt/XKFKcVmi+15ManNQWr6HfZ2aiZTYlYixbdNJ0KFmIZIv52tHSQ==", + "dev": true + }, + "node_modules/unist-util-is": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/unist-util-is/-/unist-util-is-3.0.0.tgz", + "integrity": "sha512-sVZZX3+kspVNmLWBPAB6r+7D9ZgAFPNWm66f7YNb420RlQSbn+n8rG8dGZSkrER7ZIXGQYNm5pqC3v3HopH24A==" + }, + "node_modules/unist-util-remove-position": { + "version": "1.1.4", + "resolved": "https://registry.npmjs.org/unist-util-remove-position/-/unist-util-remove-position-1.1.4.tgz", + "integrity": "sha512-tLqd653ArxJIPnKII6LMZwH+mb5q+n/GtXQZo6S6csPRs5zB0u79Yw8ouR3wTw8wxvdJFhpP6Y7jorWdCgLO0A==", + "dependencies": { + "unist-util-visit": "^1.1.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/unified" + } + }, + "node_modules/unist-util-stringify-position": { + "version": "2.0.3", + "resolved": "https://registry.npmjs.org/unist-util-stringify-position/-/unist-util-stringify-position-2.0.3.tgz", + "integrity": "sha512-3faScn5I+hy9VleOq/qNbAd6pAx7iH5jYBMS9I1HgQVijz/4mv5Bvw5iw1sC/90CODiKo81G/ps8AJrISn687g==", + "dependencies": { + "@types/unist": "^2.0.2" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/unified" + } + }, + "node_modules/unist-util-visit": { + "version": "1.4.1", + "resolved": "https://registry.npmjs.org/unist-util-visit/-/unist-util-visit-1.4.1.tgz", + "integrity": "sha512-AvGNk7Bb//EmJZyhtRUnNMEpId/AZ5Ph/KUpTI09WHQuDZHKovQ1oEv3mfmKpWKtoMzyMC4GLBm1Zy5k12fjIw==", + "dependencies": { + "unist-util-visit-parents": "^2.0.0" + } + }, + "node_modules/unist-util-visit-parents": { + "version": "2.1.2", + "resolved": "https://registry.npmjs.org/unist-util-visit-parents/-/unist-util-visit-parents-2.1.2.tgz", + "integrity": "sha512-DyN5vD4NE3aSeB+PXYNKxzGsfocxp6asDc2XXE3b0ekO2BaRUpBicbbUygfSvYfUz1IkmjFR1YF7dPklraMZ2g==", + "dependencies": { + "unist-util-is": "^3.0.0" + } + }, + "node_modules/universalify": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/universalify/-/universalify-2.0.0.tgz", + "integrity": "sha512-hAZsKq7Yy11Zu1DE0OzWjw7nnLZmJZYTDZZyEFHZdUhV8FkH5MCfoU1XMaxXovpyW5nq5scPqq0ZDP9Zyl04oQ==", + "dev": true, + "engines": { + "node": ">= 10.0.0" + } + }, + "node_modules/unpipe": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/unpipe/-/unpipe-1.0.0.tgz", + "integrity": "sha512-pjy2bYhSsufwWlKwPc+l3cN7+wuJlK6uz0YdJEOlQDbl6jo/YlPi4mb8agUkVC8BF7V8NuzeyPNqRksA3hztKQ==", + "dev": true, + "engines": { + "node": ">= 0.8" + } + }, + "node_modules/unquote": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/unquote/-/unquote-1.1.1.tgz", + "integrity": "sha512-vRCqFv6UhXpWxZPyGDh/F3ZpNv8/qo7w6iufLpQg9aKnQ71qM4B5KiI7Mia9COcjEhrO9LueHpMYjYzsWH3OIg==", + "dev": true + }, + "node_modules/update-browserslist-db": { + "version": "1.0.10", + "resolved": "https://registry.npmjs.org/update-browserslist-db/-/update-browserslist-db-1.0.10.tgz", + "integrity": "sha512-OztqDenkfFkbSG+tRxBeAnCVPckDBcvibKd35yDONx6OU8N7sqgwc7rCbkJ/WcYtVRZ4ba68d6byhC21GFh7sQ==", + "dev": true, + "funding": [ + { + "type": "opencollective", + "url": "https://opencollective.com/browserslist" + }, + { + "type": "tidelift", + "url": "https://tidelift.com/funding/github/npm/browserslist" + } + ], + "dependencies": { + "escalade": "^3.1.1", + "picocolors": "^1.0.0" + }, + "bin": { + "browserslist-lint": "cli.js" + }, + "peerDependencies": { + "browserslist": ">= 4.21.0" + } + }, + "node_modules/uri-js": { + "version": "4.4.1", + "resolved": "https://registry.npmjs.org/uri-js/-/uri-js-4.4.1.tgz", + "integrity": "sha512-7rKUyy33Q1yc98pQ1DAmLtwX109F7TIfWlW1Ydo8Wl1ii1SeHieeh0HHfPeL2fMXK6z0s8ecKs9frCuLJvndBg==", + "dev": true, + "dependencies": { + "punycode": "^2.1.0" + } + }, + "node_modules/uri-js/node_modules/punycode": { + "version": "2.3.0", + "resolved": "https://registry.npmjs.org/punycode/-/punycode-2.3.0.tgz", + "integrity": "sha512-rRV+zQD8tVFys26lAGR9WUuS4iUAngJScM+ZRSKtvl5tKeZ2t5bvdNFdNHBW9FWR4guGHlgmsZ1G7BSm2wTbuA==", + "dev": true, + "engines": { + "node": ">=6" + } + }, + "node_modules/url": { + "version": "0.11.0", + "resolved": "https://registry.npmjs.org/url/-/url-0.11.0.tgz", + "integrity": "sha512-kbailJa29QrtXnxgq+DdCEGlbTeYM2eJUxsz6vjZavrCYPMIFHMKQmSKYAIuUK2i7hgPm28a8piX5NTUtM/LKQ==", + "dev": true, + "dependencies": { + "punycode": "1.3.2", + "querystring": "0.2.0" + } + }, + "node_modules/url/node_modules/punycode": { + "version": "1.3.2", + "resolved": "https://registry.npmjs.org/punycode/-/punycode-1.3.2.tgz", + "integrity": "sha512-RofWgt/7fL5wP1Y7fxE7/EmTLzQVnB0ycyibJ0OOHIlJqTNzglYFxVwETOcIoJqJmpDXJ9xImDv+Fq34F/d4Dw==", + "dev": true + }, + "node_modules/util": { + "version": "0.11.1", + "resolved": "https://registry.npmjs.org/util/-/util-0.11.1.tgz", + "integrity": "sha512-HShAsny+zS2TZfaXxD9tYj4HQGlBezXZMZuM/S5PKLLoZkShZiGk9o5CzukI1LVHZvjdvZ2Sj1aW/Ndn2NB/HQ==", + "dev": true, + "dependencies": { + "inherits": "2.0.3" + } + }, + "node_modules/util-deprecate": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/util-deprecate/-/util-deprecate-1.0.2.tgz", + "integrity": "sha512-EPD5q1uXyFxJpCrLnCc1nHnq3gOa6DZBocAIiI2TaSCA7VCJ1UJDMagCzIkXNsUYfD1daK//LTEQ8xiIbrHtcw==" + }, + "node_modules/util.promisify": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/util.promisify/-/util.promisify-1.0.1.tgz", + "integrity": "sha512-g9JpC/3He3bm38zsLupWryXHoEcS22YHthuPQSJdMy6KNrzIRzWqcsHzD/WUnqe45whVou4VIsPew37DoXWNrA==", + "dev": true, + "dependencies": { + "define-properties": "^1.1.3", + "es-abstract": "^1.17.2", + "has-symbols": "^1.0.1", + "object.getownpropertydescriptors": "^2.1.0" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/util/node_modules/inherits": { + "version": "2.0.3", + "resolved": "https://registry.npmjs.org/inherits/-/inherits-2.0.3.tgz", + "integrity": "sha512-x00IRNXNy63jwGkJmzPigoySHbaqpNuzKbBOmzK+g2OdZpQ9w+sxCN+VSB3ja7IAge2OP2qpfxTjeNcyjmW1uw==", + "dev": true + }, + "node_modules/utils-merge": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/utils-merge/-/utils-merge-1.0.1.tgz", + "integrity": "sha512-pMZTvIkT1d+TFGvDOqodOclx0QWkkgi6Tdoa8gC8ffGAAqz9pzPTZWAybbsHHoED/ztMtkv/VoYTYyShUn81hA==", + "dev": true, + "engines": { + "node": ">= 0.4.0" + } + }, + "node_modules/uuid": { + "version": "9.0.0", + "resolved": "https://registry.npmjs.org/uuid/-/uuid-9.0.0.tgz", + "integrity": "sha512-MXcSTerfPa4uqyzStbRoTgt5XIe3x5+42+q1sDuy3R5MDk66URdLMOZe5aPX/SQd+kuYAh0FdP/pO28IkQyTeg==", + "peer": true, + "bin": { + "uuid": "dist/bin/uuid" + } + }, + "node_modules/vary": { + "version": "1.1.2", + "resolved": "https://registry.npmjs.org/vary/-/vary-1.1.2.tgz", + "integrity": "sha512-BNGbWLfd0eUPabhkXUVm0j8uuvREyTh5ovRa/dyow/BqAbZJyC+5fU+IzQOzmAKzYqYRAISoRhdQr3eIZ/PXqg==", + "dev": true, + "engines": { + "node": ">= 0.8" + } + }, + "node_modules/vendors": { + "version": "1.0.4", + "resolved": "https://registry.npmjs.org/vendors/-/vendors-1.0.4.tgz", + "integrity": "sha512-/juG65kTL4Cy2su4P8HjtkTxk6VmJDiOPBufWniqQ6wknac6jNiXS9vU+hO3wgusiyqWlzTbVHi0dyJqRONg3w==", + "dev": true, + "funding": { + "type": "github", + "url": "https://github.com/sponsors/wooorm" + } + }, + "node_modules/vfile": { + "version": "4.2.1", + "resolved": "https://registry.npmjs.org/vfile/-/vfile-4.2.1.tgz", + "integrity": "sha512-O6AE4OskCG5S1emQ/4gl8zK586RqA3srz3nfK/Viy0UPToBc5Trp9BVFb1u0CjsKrAWwnpr4ifM/KBXPWwJbCA==", + "dependencies": { + "@types/unist": "^2.0.0", + "is-buffer": "^2.0.0", + "unist-util-stringify-position": "^2.0.0", + "vfile-message": "^2.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/unified" + } + }, + "node_modules/vfile-location": { + "version": "2.0.6", + "resolved": "https://registry.npmjs.org/vfile-location/-/vfile-location-2.0.6.tgz", + "integrity": "sha512-sSFdyCP3G6Ka0CEmN83A2YCMKIieHx0EDaj5IDP4g1pa5ZJ4FJDvpO0WODLxo4LUX4oe52gmSCK7Jw4SBghqxA==", + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/unified" + } + }, + "node_modules/vfile-message": { + "version": "2.0.4", + "resolved": "https://registry.npmjs.org/vfile-message/-/vfile-message-2.0.4.tgz", + "integrity": "sha512-DjssxRGkMvifUOJre00juHoP9DPWuzjxKuMDrhNbk2TdaYYBNMStsNhEOt3idrtI12VQYM/1+iM0KOzXi4pxwQ==", + "dependencies": { + "@types/unist": "^2.0.0", + "unist-util-stringify-position": "^2.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/unified" + } + }, + "node_modules/vfile/node_modules/is-buffer": { + "version": "2.0.5", + "resolved": "https://registry.npmjs.org/is-buffer/-/is-buffer-2.0.5.tgz", + "integrity": "sha512-i2R6zNFDwgEHJyQUtJEk0XFi1i0dPFn/oqjK3/vPCcDeJvW5NQ83V8QbicfF1SupOaB0h8ntgBC2YiE7dfyctQ==", + "funding": [ + { + "type": "github", + "url": "https://github.com/sponsors/feross" + }, + { + "type": "patreon", + "url": "https://www.patreon.com/feross" + }, + { + "type": "consulting", + "url": "https://feross.org/support" + } + ], + "engines": { + "node": ">=4" + } + }, + "node_modules/vis-data": { + "version": "7.1.6", + "resolved": "https://registry.npmjs.org/vis-data/-/vis-data-7.1.6.tgz", + "integrity": "sha512-lG7LJdkawlKSXsdcEkxe/zRDyW29a4r7N7PMwxCPxK12/QIdqxJwcMxwjVj9ozdisRhP5TyWDHZwsgjmj0g6Dg==", + "hasInstallScript": true, + "peer": true, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/visjs" + }, + "peerDependencies": { + "uuid": "^3.4.0 || ^7.0.0 || ^8.0.0 || ^9.0.0", + "vis-util": "^5.0.1" + } + }, + "node_modules/vis-timeline": { + "version": "7.7.2", + "resolved": "https://registry.npmjs.org/vis-timeline/-/vis-timeline-7.7.2.tgz", + "integrity": "sha512-l7hDBFJ0FI6gX4kzsxAONnAacowK3sHWx3uc5jR1DYs/FAsOEZsHDclVNW3+QAwmV3Xvg61U8//ha6hZNw7G1Q==", + "hasInstallScript": true, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/visjs" + }, + "peerDependencies": { + "@egjs/hammerjs": "^2.0.0", + "component-emitter": "^1.3.0", + "keycharm": "^0.2.0 || ^0.3.0 || ^0.4.0", + "moment": "^2.24.0", + "propagating-hammerjs": "^1.4.0 || ^2.0.0", + "uuid": "^3.4.0 || ^7.0.0 || ^8.0.0 || ^9.0.0", + "vis-data": "^6.3.0 || ^7.0.0", + "vis-util": "^5.0.1", + "xss": "^1.0.0" + } + }, + "node_modules/vis-util": { + "version": "5.0.3", + "resolved": "https://registry.npmjs.org/vis-util/-/vis-util-5.0.3.tgz", + "integrity": "sha512-Wf9STUcFrDzK4/Zr7B6epW2Kvm3ORNWF+WiwEz2dpf5RdWkLUXFSbLcuB88n1W6tCdFwVN+v3V4/Xmn9PeL39g==", + "peer": true, + "engines": { + "node": ">=8" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/visjs" + }, + "peerDependencies": { + "@egjs/hammerjs": "^2.0.0", + "component-emitter": "^1.3.0" + } + }, + "node_modules/vm-browserify": { + "version": "1.1.2", + "resolved": "https://registry.npmjs.org/vm-browserify/-/vm-browserify-1.1.2.tgz", + "integrity": "sha512-2ham8XPWTONajOR0ohOKOHXkm3+gaBmGut3SRuu75xLd/RRaY6vqgh8NBYYk7+RW3u5AtzPQZG8F10LHkl0lAQ==", + "dev": true + }, + "node_modules/vnopts": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/vnopts/-/vnopts-1.0.2.tgz", + "integrity": "sha512-d2rr2EFhAGHnTlURu49G7GWmiJV80HbAnkYdD9IFAtfhmxC+kSWEaZ6ZF064DJFTv9lQZQV1vuLTntyQpoanGQ==", + "dependencies": { + "chalk": "^2.4.1", + "leven": "^2.1.0", + "tslib": "^1.9.3" + }, + "engines": { + "node": ">= 6" + } + }, + "node_modules/vnopts/node_modules/ansi-styles": { + "version": "3.2.1", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-3.2.1.tgz", + "integrity": "sha512-VT0ZI6kZRdTh8YyJw3SMbYm/u+NqfsAxEpWO0Pf9sq8/e94WxxOpPKx9FR1FlyCtOVDNOQ+8ntlqFxiRc+r5qA==", + "dependencies": { + "color-convert": "^1.9.0" + }, + "engines": { + "node": ">=4" + } + }, + "node_modules/vnopts/node_modules/chalk": { + "version": "2.4.2", + "resolved": "https://registry.npmjs.org/chalk/-/chalk-2.4.2.tgz", + "integrity": "sha512-Mti+f9lpJNcwF4tWV8/OrTTtF1gZi+f8FqlyAdouralcFWFQWF2+NgCHShjkCb+IFBLq9buZwE1xckQU4peSuQ==", + "dependencies": { + "ansi-styles": "^3.2.1", + "escape-string-regexp": "^1.0.5", + "supports-color": "^5.3.0" + }, + "engines": { + "node": ">=4" + } + }, + "node_modules/vnopts/node_modules/color-convert": { + "version": "1.9.3", + "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-1.9.3.tgz", + "integrity": "sha512-QfAUtd+vFdAtFQcC8CCyYt1fYWxSqAiK2cSD6zDB8N3cpsEBAvRxp9zOGg6G/SHHJYAT88/az/IuDGALsNVbGg==", + "dependencies": { + "color-name": "1.1.3" + } + }, + "node_modules/vnopts/node_modules/color-name": { + "version": "1.1.3", + "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.3.tgz", + "integrity": "sha512-72fSenhMw2HZMTVHeCA9KCmpEIbzWiQsjN+BHcBbS9vr1mtt+vJjPdksIBNUmKAW8TFUDPJK5SUU3QhE9NEXDw==" + }, + "node_modules/vnopts/node_modules/escape-string-regexp": { + "version": "1.0.5", + "resolved": "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-1.0.5.tgz", + "integrity": "sha512-vbRorB5FUQWvla16U8R/qgaFIya2qGzwDrNmCZuYKrbdSUMG6I1ZCGQRefkRVhuOkIGVne7BQ35DSfo1qvJqFg==", + "engines": { + "node": ">=0.8.0" + } + }, + "node_modules/vnopts/node_modules/has-flag": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-3.0.0.tgz", + "integrity": "sha512-sKJf1+ceQBr4SMkvQnBDNDtf4TXpVhVGateu0t918bl30FnbE2m4vNLX+VWe/dpjlb+HugGYzW7uQXH98HPEYw==", + "engines": { + "node": ">=4" + } + }, + "node_modules/vnopts/node_modules/leven": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/leven/-/leven-2.1.0.tgz", + "integrity": "sha512-nvVPLpIHUxCUoRLrFqTgSxXJ614d8AgQoWl7zPe/2VadE8+1dpU3LBhowRuBAcuwruWtOdD8oYC9jDNJjXDPyA==", + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/vnopts/node_modules/supports-color": { + "version": "5.5.0", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-5.5.0.tgz", + "integrity": "sha512-QjVjwdXIt408MIiAqCX4oUKsgU2EqAGzs2Ppkm4aQYbjm+ZEWEcW4SfFNTr4uMNZma0ey4f5lgLrkB0aX0QMow==", + "dependencies": { + "has-flag": "^3.0.0" + }, + "engines": { + "node": ">=4" + } + }, + "node_modules/vnopts/node_modules/tslib": { + "version": "1.14.1", + "resolved": "https://registry.npmjs.org/tslib/-/tslib-1.14.1.tgz", + "integrity": "sha512-Xni35NKzjgMrwevysHTCArtLDpPvye8zV/0E4EyYn43P7/7qvQwPh9BGkHewbMulVntbigmcT7rdX3BNo9wRJg==" + }, + "node_modules/vue-style-loader": { + "version": "4.1.3", + "resolved": "https://registry.npmjs.org/vue-style-loader/-/vue-style-loader-4.1.3.tgz", + "integrity": "sha512-sFuh0xfbtpRlKfm39ss/ikqs9AbKCoXZBpHeVZ8Tx650o0k0q/YCM7FRvigtxpACezfq6af+a7JeqVTWvncqDg==", + "dev": true, + "dependencies": { + "hash-sum": "^1.0.2", + "loader-utils": "^1.0.2" + } + }, + "node_modules/vue-style-loader/node_modules/json5": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/json5/-/json5-1.0.2.tgz", + "integrity": "sha512-g1MWMLBiz8FKi1e4w0UyVL3w+iJceWAFBAaBnnGKOpNa5f8TLktkbre1+s6oICydWAm+HRUGTmI+//xv2hvXYA==", + "dev": true, + "dependencies": { + "minimist": "^1.2.0" + }, + "bin": { + "json5": "lib/cli.js" + } + }, + "node_modules/vue-style-loader/node_modules/loader-utils": { + "version": "1.4.2", + "resolved": "https://registry.npmjs.org/loader-utils/-/loader-utils-1.4.2.tgz", + "integrity": "sha512-I5d00Pd/jwMD2QCduo657+YM/6L3KZu++pmX9VFncxaxvHcru9jx1lBaFft+r4Mt2jK0Yhp41XlRAihzPxHNCg==", + "dev": true, + "dependencies": { + "big.js": "^5.2.2", + "emojis-list": "^3.0.0", + "json5": "^1.0.1" + }, + "engines": { + "node": ">=4.0.0" + } + }, + "node_modules/watchpack": { + "version": "2.4.0", + "resolved": "https://registry.npmjs.org/watchpack/-/watchpack-2.4.0.tgz", + "integrity": "sha512-Lcvm7MGST/4fup+ifyKi2hjyIAwcdI4HRgtvTpIUxBRhB+RFtUh8XtDOxUfctVCnhVi+QQj49i91OyvzkJl6cg==", + "dev": true, + "dependencies": { + "glob-to-regexp": "^0.4.1", + "graceful-fs": "^4.1.2" + }, + "engines": { + "node": ">=10.13.0" + } + }, + "node_modules/wbuf": { + "version": "1.7.3", + "resolved": "https://registry.npmjs.org/wbuf/-/wbuf-1.7.3.tgz", + "integrity": "sha512-O84QOnr0icsbFGLS0O3bI5FswxzRr8/gHwWkDlQFskhSPryQXvrTMxjxGP4+iWYoauLoBvfDpkrOauZ+0iZpDA==", + "dev": true, + "dependencies": { + "minimalistic-assert": "^1.0.0" + } + }, + "node_modules/webpack": { + "version": "5.79.0", + "resolved": "https://registry.npmjs.org/webpack/-/webpack-5.79.0.tgz", + "integrity": "sha512-3mN4rR2Xq+INd6NnYuL9RC9GAmc1ROPKJoHhrZ4pAjdMFEkJJWrsPw8o2JjCIyQyTu7rTXYn4VG6OpyB3CobZg==", + "dev": true, + "dependencies": { + "@types/eslint-scope": "^3.7.3", + "@types/estree": "^1.0.0", + "@webassemblyjs/ast": "1.11.1", + "@webassemblyjs/wasm-edit": "1.11.1", + "@webassemblyjs/wasm-parser": "1.11.1", + "acorn": "^8.7.1", + "acorn-import-assertions": "^1.7.6", + "browserslist": "^4.14.5", + "chrome-trace-event": "^1.0.2", + "enhanced-resolve": "^5.10.0", + "es-module-lexer": "^1.2.1", + "eslint-scope": "5.1.1", + "events": "^3.2.0", + "glob-to-regexp": "^0.4.1", + "graceful-fs": "^4.2.9", + "json-parse-even-better-errors": "^2.3.1", + "loader-runner": "^4.2.0", + "mime-types": "^2.1.27", + "neo-async": "^2.6.2", + "schema-utils": "^3.1.0", + "tapable": "^2.1.1", + "terser-webpack-plugin": "^5.3.7", + "watchpack": "^2.4.0", + "webpack-sources": "^3.2.3" + }, + "bin": { + "webpack": "bin/webpack.js" + }, + "engines": { + "node": ">=10.13.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/webpack" + }, + "peerDependenciesMeta": { + "webpack-cli": { + "optional": true + } + } + }, + "node_modules/webpack-cli": { + "version": "4.10.0", + "resolved": "https://registry.npmjs.org/webpack-cli/-/webpack-cli-4.10.0.tgz", + "integrity": "sha512-NLhDfH/h4O6UOy+0LSso42xvYypClINuMNBVVzX4vX98TmTaTUxwRbXdhucbFMd2qLaCTcLq/PdYrvi8onw90w==", + "dev": true, + "dependencies": { + "@discoveryjs/json-ext": "^0.5.0", + "@webpack-cli/configtest": "^1.2.0", + "@webpack-cli/info": "^1.5.0", + "@webpack-cli/serve": "^1.7.0", + "colorette": "^2.0.14", + "commander": "^7.0.0", + "cross-spawn": "^7.0.3", + "fastest-levenshtein": "^1.0.12", + "import-local": "^3.0.2", + "interpret": "^2.2.0", + "rechoir": "^0.7.0", + "webpack-merge": "^5.7.3" + }, + "bin": { + "webpack-cli": "bin/cli.js" + }, + "engines": { + "node": ">=10.13.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/webpack" + }, + "peerDependencies": { + "webpack": "4.x.x || 5.x.x" + }, + "peerDependenciesMeta": { + "@webpack-cli/generators": { + "optional": true + }, + "@webpack-cli/migrate": { + "optional": true + }, + "webpack-bundle-analyzer": { + "optional": true + }, + "webpack-dev-server": { + "optional": true + } + } + }, + "node_modules/webpack-dev-middleware": { + "version": "5.3.3", + "resolved": "https://registry.npmjs.org/webpack-dev-middleware/-/webpack-dev-middleware-5.3.3.tgz", + "integrity": "sha512-hj5CYrY0bZLB+eTO+x/j67Pkrquiy7kWepMHmUMoPsmcUaeEnQJqFzHJOyxgWlq746/wUuA64p9ta34Kyb01pA==", + "dev": true, + "dependencies": { + "colorette": "^2.0.10", + "memfs": "^3.4.3", + "mime-types": "^2.1.31", + "range-parser": "^1.2.1", + "schema-utils": "^4.0.0" + }, + "engines": { + "node": ">= 12.13.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/webpack" + }, + "peerDependencies": { + "webpack": "^4.0.0 || ^5.0.0" + } + }, + "node_modules/webpack-dev-middleware/node_modules/ajv": { + "version": "8.12.0", + "resolved": "https://registry.npmjs.org/ajv/-/ajv-8.12.0.tgz", + "integrity": "sha512-sRu1kpcO9yLtYxBKvqfTeh9KzZEwO3STyX1HT+4CaDzC6HpTGYhIhPIzj9XuKU7KYDwnaeh5hcOwjy1QuJzBPA==", + "dev": true, + "dependencies": { + "fast-deep-equal": "^3.1.1", + "json-schema-traverse": "^1.0.0", + "require-from-string": "^2.0.2", + "uri-js": "^4.2.2" + }, + "funding": { + "type": "github", + "url": "https://github.com/sponsors/epoberezkin" + } + }, + "node_modules/webpack-dev-middleware/node_modules/ajv-keywords": { + "version": "5.1.0", + "resolved": "https://registry.npmjs.org/ajv-keywords/-/ajv-keywords-5.1.0.tgz", + "integrity": "sha512-YCS/JNFAUyr5vAuhk1DWm1CBxRHW9LbJ2ozWeemrIqpbsqKjHVxYPyi5GC0rjZIT5JxJ3virVTS8wk4i/Z+krw==", + "dev": true, + "dependencies": { + "fast-deep-equal": "^3.1.3" + }, + "peerDependencies": { + "ajv": "^8.8.2" + } + }, + "node_modules/webpack-dev-middleware/node_modules/json-schema-traverse": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/json-schema-traverse/-/json-schema-traverse-1.0.0.tgz", + "integrity": "sha512-NM8/P9n3XjXhIZn1lLhkFaACTOURQXjWhV4BA/RnOv8xvgqtqpAX9IO4mRQxSx1Rlo4tqzeqb0sOlruaOy3dug==", + "dev": true + }, + "node_modules/webpack-dev-middleware/node_modules/schema-utils": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/schema-utils/-/schema-utils-4.0.0.tgz", + "integrity": "sha512-1edyXKgh6XnJsJSQ8mKWXnN/BVaIbFMLpouRUrXgVq7WYne5kw3MW7UPhO44uRXQSIpTSXoJbmrR2X0w9kUTyg==", + "dev": true, + "dependencies": { + "@types/json-schema": "^7.0.9", + "ajv": "^8.8.0", + "ajv-formats": "^2.1.1", + "ajv-keywords": "^5.0.0" + }, + "engines": { + "node": ">= 12.13.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/webpack" + } + }, + "node_modules/webpack-dev-server": { + "version": "4.13.2", + "resolved": "https://registry.npmjs.org/webpack-dev-server/-/webpack-dev-server-4.13.2.tgz", + "integrity": "sha512-5i6TrGBRxG4vnfDpB6qSQGfnB6skGBXNL5/542w2uRGLimX6qeE5BQMLrzIC3JYV/xlGOv+s+hTleI9AZKUQNw==", + "dev": true, + "dependencies": { + "@types/bonjour": "^3.5.9", + "@types/connect-history-api-fallback": "^1.3.5", + "@types/express": "^4.17.13", + "@types/serve-index": "^1.9.1", + "@types/serve-static": "^1.13.10", + "@types/sockjs": "^0.3.33", + "@types/ws": "^8.5.1", + "ansi-html-community": "^0.0.8", + "bonjour-service": "^1.0.11", + "chokidar": "^3.5.3", + "colorette": "^2.0.10", + "compression": "^1.7.4", + "connect-history-api-fallback": "^2.0.0", + "default-gateway": "^6.0.3", + "express": "^4.17.3", + "graceful-fs": "^4.2.6", + "html-entities": "^2.3.2", + "http-proxy-middleware": "^2.0.3", + "ipaddr.js": "^2.0.1", + "launch-editor": "^2.6.0", + "open": "^8.0.9", + "p-retry": "^4.5.0", + "rimraf": "^3.0.2", + "schema-utils": "^4.0.0", + "selfsigned": "^2.1.1", + "serve-index": "^1.9.1", + "sockjs": "^0.3.24", + "spdy": "^4.0.2", + "webpack-dev-middleware": "^5.3.1", + "ws": "^8.13.0" + }, + "bin": { + "webpack-dev-server": "bin/webpack-dev-server.js" + }, + "engines": { + "node": ">= 12.13.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/webpack" + }, + "peerDependencies": { + "webpack": "^4.37.0 || ^5.0.0" + }, + "peerDependenciesMeta": { + "webpack": { + "optional": true + }, + "webpack-cli": { + "optional": true + } + } + }, + "node_modules/webpack-dev-server/node_modules/ajv": { + "version": "8.12.0", + "resolved": "https://registry.npmjs.org/ajv/-/ajv-8.12.0.tgz", + "integrity": "sha512-sRu1kpcO9yLtYxBKvqfTeh9KzZEwO3STyX1HT+4CaDzC6HpTGYhIhPIzj9XuKU7KYDwnaeh5hcOwjy1QuJzBPA==", + "dev": true, + "dependencies": { + "fast-deep-equal": "^3.1.1", + "json-schema-traverse": "^1.0.0", + "require-from-string": "^2.0.2", + "uri-js": "^4.2.2" + }, + "funding": { + "type": "github", + "url": "https://github.com/sponsors/epoberezkin" + } + }, + "node_modules/webpack-dev-server/node_modules/ajv-keywords": { + "version": "5.1.0", + "resolved": "https://registry.npmjs.org/ajv-keywords/-/ajv-keywords-5.1.0.tgz", + "integrity": "sha512-YCS/JNFAUyr5vAuhk1DWm1CBxRHW9LbJ2ozWeemrIqpbsqKjHVxYPyi5GC0rjZIT5JxJ3virVTS8wk4i/Z+krw==", + "dev": true, + "dependencies": { + "fast-deep-equal": "^3.1.3" + }, + "peerDependencies": { + "ajv": "^8.8.2" + } + }, + "node_modules/webpack-dev-server/node_modules/json-schema-traverse": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/json-schema-traverse/-/json-schema-traverse-1.0.0.tgz", + "integrity": "sha512-NM8/P9n3XjXhIZn1lLhkFaACTOURQXjWhV4BA/RnOv8xvgqtqpAX9IO4mRQxSx1Rlo4tqzeqb0sOlruaOy3dug==", + "dev": true + }, + "node_modules/webpack-dev-server/node_modules/schema-utils": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/schema-utils/-/schema-utils-4.0.0.tgz", + "integrity": "sha512-1edyXKgh6XnJsJSQ8mKWXnN/BVaIbFMLpouRUrXgVq7WYne5kw3MW7UPhO44uRXQSIpTSXoJbmrR2X0w9kUTyg==", + "dev": true, + "dependencies": { + "@types/json-schema": "^7.0.9", + "ajv": "^8.8.0", + "ajv-formats": "^2.1.1", + "ajv-keywords": "^5.0.0" + }, + "engines": { + "node": ">= 12.13.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/webpack" + } + }, + "node_modules/webpack-merge": { + "version": "5.8.0", + "resolved": "https://registry.npmjs.org/webpack-merge/-/webpack-merge-5.8.0.tgz", + "integrity": "sha512-/SaI7xY0831XwP6kzuwhKWVKDP9t1QY1h65lAFLbZqMPIuYcD9QAW4u9STIbU9kaJbPBB/geU/gLr1wDjOhQ+Q==", + "dev": true, + "dependencies": { + "clone-deep": "^4.0.1", + "wildcard": "^2.0.0" + }, + "engines": { + "node": ">=10.0.0" + } + }, + "node_modules/webpack-notifier": { + "version": "1.15.0", + "resolved": "https://registry.npmjs.org/webpack-notifier/-/webpack-notifier-1.15.0.tgz", + "integrity": "sha512-N2V8UMgRB5komdXQRavBsRpw0hPhJq2/SWNOGuhrXpIgRhcMexzkGQysUyGStHLV5hkUlgpRiF7IUXoBqyMmzQ==", + "dev": true, + "dependencies": { + "node-notifier": "^9.0.0", + "strip-ansi": "^6.0.0" + }, + "peerDependencies": { + "@types/webpack": ">4.41.31" + }, + "peerDependenciesMeta": { + "@types/webpack": { + "optional": true + } + } + }, + "node_modules/webpack-rtl-plugin": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/webpack-rtl-plugin/-/webpack-rtl-plugin-2.0.0.tgz", + "integrity": "sha512-lROgFkiPjapg9tcZ8FiLWeP5pJoG00018aEjLTxSrVldPD1ON+LPlhKPHjb7eE8Bc0+KL23pxcAjWDGOv9+UAw==", + "dev": true, + "dependencies": { + "@romainberger/css-diff": "^1.0.3", + "async": "^2.0.0", + "cssnano": "4.1.10", + "rtlcss": "2.4.0", + "webpack-sources": "1.3.0" + } + }, + "node_modules/webpack-rtl-plugin/node_modules/ansi-styles": { + "version": "3.2.1", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-3.2.1.tgz", + "integrity": "sha512-VT0ZI6kZRdTh8YyJw3SMbYm/u+NqfsAxEpWO0Pf9sq8/e94WxxOpPKx9FR1FlyCtOVDNOQ+8ntlqFxiRc+r5qA==", + "dev": true, + "dependencies": { + "color-convert": "^1.9.0" + }, + "engines": { + "node": ">=4" + } + }, + "node_modules/webpack-rtl-plugin/node_modules/chalk": { + "version": "2.4.2", + "resolved": "https://registry.npmjs.org/chalk/-/chalk-2.4.2.tgz", + "integrity": "sha512-Mti+f9lpJNcwF4tWV8/OrTTtF1gZi+f8FqlyAdouralcFWFQWF2+NgCHShjkCb+IFBLq9buZwE1xckQU4peSuQ==", + "dev": true, + "dependencies": { + "ansi-styles": "^3.2.1", + "escape-string-regexp": "^1.0.5", + "supports-color": "^5.3.0" + }, + "engines": { + "node": ">=4" + } + }, + "node_modules/webpack-rtl-plugin/node_modules/color-convert": { + "version": "1.9.3", + "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-1.9.3.tgz", + "integrity": "sha512-QfAUtd+vFdAtFQcC8CCyYt1fYWxSqAiK2cSD6zDB8N3cpsEBAvRxp9zOGg6G/SHHJYAT88/az/IuDGALsNVbGg==", + "dev": true, + "dependencies": { + "color-name": "1.1.3" + } + }, + "node_modules/webpack-rtl-plugin/node_modules/color-name": { + "version": "1.1.3", + "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.3.tgz", + "integrity": "sha512-72fSenhMw2HZMTVHeCA9KCmpEIbzWiQsjN+BHcBbS9vr1mtt+vJjPdksIBNUmKAW8TFUDPJK5SUU3QhE9NEXDw==", + "dev": true + }, + "node_modules/webpack-rtl-plugin/node_modules/cosmiconfig": { + "version": "5.2.1", + "resolved": "https://registry.npmjs.org/cosmiconfig/-/cosmiconfig-5.2.1.tgz", + "integrity": "sha512-H65gsXo1SKjf8zmrJ67eJk8aIRKV5ff2D4uKZIBZShbhGSpEmsQOPW/SKMKYhSTrqR7ufy6RP69rPogdaPh/kA==", + "dev": true, + "dependencies": { + "import-fresh": "^2.0.0", + "is-directory": "^0.3.1", + "js-yaml": "^3.13.1", + "parse-json": "^4.0.0" + }, + "engines": { + "node": ">=4" + } + }, + "node_modules/webpack-rtl-plugin/node_modules/css-declaration-sorter": { + "version": "4.0.1", + "resolved": "https://registry.npmjs.org/css-declaration-sorter/-/css-declaration-sorter-4.0.1.tgz", + "integrity": "sha512-BcxQSKTSEEQUftYpBVnsH4SF05NTuBokb19/sBt6asXGKZ/6VP7PLG1CBCkFDYOnhXhPh0jMhO6xZ71oYHXHBA==", + "dev": true, + "dependencies": { + "postcss": "^7.0.1", + "timsort": "^0.3.0" + }, + "engines": { + "node": ">4" + } + }, + "node_modules/webpack-rtl-plugin/node_modules/css-select": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/css-select/-/css-select-2.1.0.tgz", + "integrity": "sha512-Dqk7LQKpwLoH3VovzZnkzegqNSuAziQyNZUcrdDM401iY+R5NkGBXGmtO05/yaXQziALuPogeG0b7UAgjnTJTQ==", + "dev": true, + "dependencies": { + "boolbase": "^1.0.0", + "css-what": "^3.2.1", + "domutils": "^1.7.0", + "nth-check": "^1.0.2" + } + }, + "node_modules/webpack-rtl-plugin/node_modules/css-tree": { + "version": "1.0.0-alpha.37", + "resolved": "https://registry.npmjs.org/css-tree/-/css-tree-1.0.0-alpha.37.tgz", + "integrity": "sha512-DMxWJg0rnz7UgxKT0Q1HU/L9BeJI0M6ksor0OgqOnF+aRCDWg/N2641HmVyU9KVIu0OVVWOb2IpC9A+BJRnejg==", + "dev": true, + "dependencies": { + "mdn-data": "2.0.4", + "source-map": "^0.6.1" + }, + "engines": { + "node": ">=8.0.0" + } + }, + "node_modules/webpack-rtl-plugin/node_modules/css-what": { + "version": "3.4.2", + "resolved": "https://registry.npmjs.org/css-what/-/css-what-3.4.2.tgz", + "integrity": "sha512-ACUm3L0/jiZTqfzRM3Hi9Q8eZqd6IK37mMWPLz9PJxkLWllYeRf+EHUSHYEtFop2Eqytaq1FizFVh7XfBnXCDQ==", + "dev": true, + "engines": { + "node": ">= 6" + }, + "funding": { + "url": "https://github.com/sponsors/fb55" + } + }, + "node_modules/webpack-rtl-plugin/node_modules/cssnano": { + "version": "4.1.10", + "resolved": "https://registry.npmjs.org/cssnano/-/cssnano-4.1.10.tgz", + "integrity": "sha512-5wny+F6H4/8RgNlaqab4ktc3e0/blKutmq8yNlBFXA//nSFFAqAngjNVRzUvCgYROULmZZUoosL/KSoZo5aUaQ==", + "dev": true, + "dependencies": { + "cosmiconfig": "^5.0.0", + "cssnano-preset-default": "^4.0.7", + "is-resolvable": "^1.0.0", + "postcss": "^7.0.0" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/webpack-rtl-plugin/node_modules/cssnano-preset-default": { + "version": "4.0.8", + "resolved": "https://registry.npmjs.org/cssnano-preset-default/-/cssnano-preset-default-4.0.8.tgz", + "integrity": "sha512-LdAyHuq+VRyeVREFmuxUZR1TXjQm8QQU/ktoo/x7bz+SdOge1YKc5eMN6pRW7YWBmyq59CqYba1dJ5cUukEjLQ==", + "dev": true, + "dependencies": { + "css-declaration-sorter": "^4.0.1", + "cssnano-util-raw-cache": "^4.0.1", + "postcss": "^7.0.0", + "postcss-calc": "^7.0.1", + "postcss-colormin": "^4.0.3", + "postcss-convert-values": "^4.0.1", + "postcss-discard-comments": "^4.0.2", + "postcss-discard-duplicates": "^4.0.2", + "postcss-discard-empty": "^4.0.1", + "postcss-discard-overridden": "^4.0.1", + "postcss-merge-longhand": "^4.0.11", + "postcss-merge-rules": "^4.0.3", + "postcss-minify-font-values": "^4.0.2", + "postcss-minify-gradients": "^4.0.2", + "postcss-minify-params": "^4.0.2", + "postcss-minify-selectors": "^4.0.2", + "postcss-normalize-charset": "^4.0.1", + "postcss-normalize-display-values": "^4.0.2", + "postcss-normalize-positions": "^4.0.2", + "postcss-normalize-repeat-style": "^4.0.2", + "postcss-normalize-string": "^4.0.2", + "postcss-normalize-timing-functions": "^4.0.2", + "postcss-normalize-unicode": "^4.0.1", + "postcss-normalize-url": "^4.0.1", + "postcss-normalize-whitespace": "^4.0.2", + "postcss-ordered-values": "^4.1.2", + "postcss-reduce-initial": "^4.0.3", + "postcss-reduce-transforms": "^4.0.2", + "postcss-svgo": "^4.0.3", + "postcss-unique-selectors": "^4.0.1" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/webpack-rtl-plugin/node_modules/dom-serializer": { + "version": "0.2.2", + "resolved": "https://registry.npmjs.org/dom-serializer/-/dom-serializer-0.2.2.tgz", + "integrity": "sha512-2/xPb3ORsQ42nHYiSunXkDjPLBaEj/xTwUO4B7XCZQTRk7EBtTOPaygh10YAAh2OI1Qrp6NWfpAhzswj0ydt9g==", + "dev": true, + "dependencies": { + "domelementtype": "^2.0.1", + "entities": "^2.0.0" + } + }, + "node_modules/webpack-rtl-plugin/node_modules/domutils": { + "version": "1.7.0", + "resolved": "https://registry.npmjs.org/domutils/-/domutils-1.7.0.tgz", + "integrity": "sha512-Lgd2XcJ/NjEw+7tFvfKxOzCYKZsdct5lczQ2ZaQY8Djz7pfAD3Gbp8ySJWtreII/vDlMVmxwa6pHmdxIYgttDg==", + "dev": true, + "dependencies": { + "dom-serializer": "0", + "domelementtype": "1" + } + }, + "node_modules/webpack-rtl-plugin/node_modules/domutils/node_modules/domelementtype": { + "version": "1.3.1", + "resolved": "https://registry.npmjs.org/domelementtype/-/domelementtype-1.3.1.tgz", + "integrity": "sha512-BSKB+TSpMpFI/HOxCNr1O8aMOTZ8hT3pM3GQ0w/mWRmkhEDSFJkkyzz4XQsBV44BChwGkrDfMyjVD0eA2aFV3w==", + "dev": true + }, + "node_modules/webpack-rtl-plugin/node_modules/escape-string-regexp": { + "version": "1.0.5", + "resolved": "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-1.0.5.tgz", + "integrity": "sha512-vbRorB5FUQWvla16U8R/qgaFIya2qGzwDrNmCZuYKrbdSUMG6I1ZCGQRefkRVhuOkIGVne7BQ35DSfo1qvJqFg==", + "dev": true, + "engines": { + "node": ">=0.8.0" + } + }, + "node_modules/webpack-rtl-plugin/node_modules/has-flag": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-3.0.0.tgz", + "integrity": "sha512-sKJf1+ceQBr4SMkvQnBDNDtf4TXpVhVGateu0t918bl30FnbE2m4vNLX+VWe/dpjlb+HugGYzW7uQXH98HPEYw==", + "dev": true, + "engines": { + "node": ">=4" + } + }, + "node_modules/webpack-rtl-plugin/node_modules/import-fresh": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/import-fresh/-/import-fresh-2.0.0.tgz", + "integrity": "sha512-eZ5H8rcgYazHbKC3PG4ClHNykCSxtAhxSSEM+2mb+7evD2CKF5V7c0dNum7AdpDh0ZdICwZY9sRSn8f+KH96sg==", + "dev": true, + "dependencies": { + "caller-path": "^2.0.0", + "resolve-from": "^3.0.0" + }, + "engines": { + "node": ">=4" + } + }, + "node_modules/webpack-rtl-plugin/node_modules/mdn-data": { + "version": "2.0.4", + "resolved": "https://registry.npmjs.org/mdn-data/-/mdn-data-2.0.4.tgz", + "integrity": "sha512-iV3XNKw06j5Q7mi6h+9vbx23Tv7JkjEVgKHW4pimwyDGWm0OIQntJJ+u1C6mg6mK1EaTv42XQ7w76yuzH7M2cA==", + "dev": true + }, + "node_modules/webpack-rtl-plugin/node_modules/normalize-url": { + "version": "3.3.0", + "resolved": "https://registry.npmjs.org/normalize-url/-/normalize-url-3.3.0.tgz", + "integrity": "sha512-U+JJi7duF1o+u2pynbp2zXDW2/PADgC30f0GsHZtRh+HOcXHnw137TrNlyxxRvWW5fjKd3bcLHPxofWuCjaeZg==", + "dev": true, + "engines": { + "node": ">=6" + } + }, + "node_modules/webpack-rtl-plugin/node_modules/nth-check": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/nth-check/-/nth-check-1.0.2.tgz", + "integrity": "sha512-WeBOdju8SnzPN5vTUJYxYUxLeXpCaVP5i5e0LF8fg7WORF2Wd7wFX/pk0tYZk7s8T+J7VLy0Da6J1+wCT0AtHg==", + "dev": true, + "dependencies": { + "boolbase": "~1.0.0" + } + }, + "node_modules/webpack-rtl-plugin/node_modules/parse-json": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/parse-json/-/parse-json-4.0.0.tgz", + "integrity": "sha512-aOIos8bujGN93/8Ox/jPLh7RwVnPEysynVFE+fQZyg6jKELEHwzgKdLRFHUgXJL6kylijVSBC4BvN9OmsB48Rw==", + "dev": true, + "dependencies": { + "error-ex": "^1.3.1", + "json-parse-better-errors": "^1.0.1" + }, + "engines": { + "node": ">=4" + } + }, + "node_modules/webpack-rtl-plugin/node_modules/picocolors": { + "version": "0.2.1", + "resolved": "https://registry.npmjs.org/picocolors/-/picocolors-0.2.1.tgz", + "integrity": "sha512-cMlDqaLEqfSaW8Z7N5Jw+lyIW869EzT73/F5lhtY9cLGoVxSXznfgfXMO0Z5K0o0Q2TkTXq+0KFsdnSe3jDViA==", + "dev": true + }, + "node_modules/webpack-rtl-plugin/node_modules/postcss": { + "version": "7.0.39", + "resolved": "https://registry.npmjs.org/postcss/-/postcss-7.0.39.tgz", + "integrity": "sha512-yioayjNbHn6z1/Bywyb2Y4s3yvDAeXGOyxqD+LnVOinq6Mdmd++SW2wUNVzavyyHxd6+DxzWGIuosg6P1Rj8uA==", + "dev": true, + "dependencies": { + "picocolors": "^0.2.1", + "source-map": "^0.6.1" + }, + "engines": { + "node": ">=6.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/postcss/" + } + }, + "node_modules/webpack-rtl-plugin/node_modules/postcss-calc": { + "version": "7.0.5", + "resolved": "https://registry.npmjs.org/postcss-calc/-/postcss-calc-7.0.5.tgz", + "integrity": "sha512-1tKHutbGtLtEZF6PT4JSihCHfIVldU72mZ8SdZHIYriIZ9fh9k9aWSppaT8rHsyI3dX+KSR+W+Ix9BMY3AODrg==", + "dev": true, + "dependencies": { + "postcss": "^7.0.27", + "postcss-selector-parser": "^6.0.2", + "postcss-value-parser": "^4.0.2" + } + }, + "node_modules/webpack-rtl-plugin/node_modules/postcss-colormin": { + "version": "4.0.3", + "resolved": "https://registry.npmjs.org/postcss-colormin/-/postcss-colormin-4.0.3.tgz", + "integrity": "sha512-WyQFAdDZpExQh32j0U0feWisZ0dmOtPl44qYmJKkq9xFWY3p+4qnRzCHeNrkeRhwPHz9bQ3mo0/yVkaply0MNw==", + "dev": true, + "dependencies": { + "browserslist": "^4.0.0", + "color": "^3.0.0", + "has": "^1.0.0", + "postcss": "^7.0.0", + "postcss-value-parser": "^3.0.0" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/webpack-rtl-plugin/node_modules/postcss-colormin/node_modules/postcss-value-parser": { + "version": "3.3.1", + "resolved": "https://registry.npmjs.org/postcss-value-parser/-/postcss-value-parser-3.3.1.tgz", + "integrity": "sha512-pISE66AbVkp4fDQ7VHBwRNXzAAKJjw4Vw7nWI/+Q3vuly7SNfgYXvm6i5IgFylHGK5sP/xHAbB7N49OS4gWNyQ==", + "dev": true + }, + "node_modules/webpack-rtl-plugin/node_modules/postcss-convert-values": { + "version": "4.0.1", + "resolved": "https://registry.npmjs.org/postcss-convert-values/-/postcss-convert-values-4.0.1.tgz", + "integrity": "sha512-Kisdo1y77KUC0Jmn0OXU/COOJbzM8cImvw1ZFsBgBgMgb1iL23Zs/LXRe3r+EZqM3vGYKdQ2YJVQ5VkJI+zEJQ==", + "dev": true, + "dependencies": { + "postcss": "^7.0.0", + "postcss-value-parser": "^3.0.0" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/webpack-rtl-plugin/node_modules/postcss-convert-values/node_modules/postcss-value-parser": { + "version": "3.3.1", + "resolved": "https://registry.npmjs.org/postcss-value-parser/-/postcss-value-parser-3.3.1.tgz", + "integrity": "sha512-pISE66AbVkp4fDQ7VHBwRNXzAAKJjw4Vw7nWI/+Q3vuly7SNfgYXvm6i5IgFylHGK5sP/xHAbB7N49OS4gWNyQ==", + "dev": true + }, + "node_modules/webpack-rtl-plugin/node_modules/postcss-discard-comments": { + "version": "4.0.2", + "resolved": "https://registry.npmjs.org/postcss-discard-comments/-/postcss-discard-comments-4.0.2.tgz", + "integrity": "sha512-RJutN259iuRf3IW7GZyLM5Sw4GLTOH8FmsXBnv8Ab/Tc2k4SR4qbV4DNbyyY4+Sjo362SyDmW2DQ7lBSChrpkg==", + "dev": true, + "dependencies": { + "postcss": "^7.0.0" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/webpack-rtl-plugin/node_modules/postcss-discard-duplicates": { + "version": "4.0.2", + "resolved": "https://registry.npmjs.org/postcss-discard-duplicates/-/postcss-discard-duplicates-4.0.2.tgz", + "integrity": "sha512-ZNQfR1gPNAiXZhgENFfEglF93pciw0WxMkJeVmw8eF+JZBbMD7jp6C67GqJAXVZP2BWbOztKfbsdmMp/k8c6oQ==", + "dev": true, + "dependencies": { + "postcss": "^7.0.0" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/webpack-rtl-plugin/node_modules/postcss-discard-empty": { + "version": "4.0.1", + "resolved": "https://registry.npmjs.org/postcss-discard-empty/-/postcss-discard-empty-4.0.1.tgz", + "integrity": "sha512-B9miTzbznhDjTfjvipfHoqbWKwd0Mj+/fL5s1QOz06wufguil+Xheo4XpOnc4NqKYBCNqqEzgPv2aPBIJLox0w==", + "dev": true, + "dependencies": { + "postcss": "^7.0.0" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/webpack-rtl-plugin/node_modules/postcss-discard-overridden": { + "version": "4.0.1", + "resolved": "https://registry.npmjs.org/postcss-discard-overridden/-/postcss-discard-overridden-4.0.1.tgz", + "integrity": "sha512-IYY2bEDD7g1XM1IDEsUT4//iEYCxAmP5oDSFMVU/JVvT7gh+l4fmjciLqGgwjdWpQIdb0Che2VX00QObS5+cTg==", + "dev": true, + "dependencies": { + "postcss": "^7.0.0" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/webpack-rtl-plugin/node_modules/postcss-merge-longhand": { + "version": "4.0.11", + "resolved": "https://registry.npmjs.org/postcss-merge-longhand/-/postcss-merge-longhand-4.0.11.tgz", + "integrity": "sha512-alx/zmoeXvJjp7L4mxEMjh8lxVlDFX1gqWHzaaQewwMZiVhLo42TEClKaeHbRf6J7j82ZOdTJ808RtN0ZOZwvw==", + "dev": true, + "dependencies": { + "css-color-names": "0.0.4", + "postcss": "^7.0.0", + "postcss-value-parser": "^3.0.0", + "stylehacks": "^4.0.0" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/webpack-rtl-plugin/node_modules/postcss-merge-longhand/node_modules/postcss-value-parser": { + "version": "3.3.1", + "resolved": "https://registry.npmjs.org/postcss-value-parser/-/postcss-value-parser-3.3.1.tgz", + "integrity": "sha512-pISE66AbVkp4fDQ7VHBwRNXzAAKJjw4Vw7nWI/+Q3vuly7SNfgYXvm6i5IgFylHGK5sP/xHAbB7N49OS4gWNyQ==", + "dev": true + }, + "node_modules/webpack-rtl-plugin/node_modules/postcss-merge-rules": { + "version": "4.0.3", + "resolved": "https://registry.npmjs.org/postcss-merge-rules/-/postcss-merge-rules-4.0.3.tgz", + "integrity": "sha512-U7e3r1SbvYzO0Jr3UT/zKBVgYYyhAz0aitvGIYOYK5CPmkNih+WDSsS5tvPrJ8YMQYlEMvsZIiqmn7HdFUaeEQ==", + "dev": true, + "dependencies": { + "browserslist": "^4.0.0", + "caniuse-api": "^3.0.0", + "cssnano-util-same-parent": "^4.0.0", + "postcss": "^7.0.0", + "postcss-selector-parser": "^3.0.0", + "vendors": "^1.0.0" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/webpack-rtl-plugin/node_modules/postcss-merge-rules/node_modules/postcss-selector-parser": { + "version": "3.1.2", + "resolved": "https://registry.npmjs.org/postcss-selector-parser/-/postcss-selector-parser-3.1.2.tgz", + "integrity": "sha512-h7fJ/5uWuRVyOtkO45pnt1Ih40CEleeyCHzipqAZO2e5H20g25Y48uYnFUiShvY4rZWNJ/Bib/KVPmanaCtOhA==", + "dev": true, + "dependencies": { + "dot-prop": "^5.2.0", + "indexes-of": "^1.0.1", + "uniq": "^1.0.1" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/webpack-rtl-plugin/node_modules/postcss-minify-font-values": { + "version": "4.0.2", + "resolved": "https://registry.npmjs.org/postcss-minify-font-values/-/postcss-minify-font-values-4.0.2.tgz", + "integrity": "sha512-j85oO6OnRU9zPf04+PZv1LYIYOprWm6IA6zkXkrJXyRveDEuQggG6tvoy8ir8ZwjLxLuGfNkCZEQG7zan+Hbtg==", + "dev": true, + "dependencies": { + "postcss": "^7.0.0", + "postcss-value-parser": "^3.0.0" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/webpack-rtl-plugin/node_modules/postcss-minify-font-values/node_modules/postcss-value-parser": { + "version": "3.3.1", + "resolved": "https://registry.npmjs.org/postcss-value-parser/-/postcss-value-parser-3.3.1.tgz", + "integrity": "sha512-pISE66AbVkp4fDQ7VHBwRNXzAAKJjw4Vw7nWI/+Q3vuly7SNfgYXvm6i5IgFylHGK5sP/xHAbB7N49OS4gWNyQ==", + "dev": true + }, + "node_modules/webpack-rtl-plugin/node_modules/postcss-minify-gradients": { + "version": "4.0.2", + "resolved": "https://registry.npmjs.org/postcss-minify-gradients/-/postcss-minify-gradients-4.0.2.tgz", + "integrity": "sha512-qKPfwlONdcf/AndP1U8SJ/uzIJtowHlMaSioKzebAXSG4iJthlWC9iSWznQcX4f66gIWX44RSA841HTHj3wK+Q==", + "dev": true, + "dependencies": { + "cssnano-util-get-arguments": "^4.0.0", + "is-color-stop": "^1.0.0", + "postcss": "^7.0.0", + "postcss-value-parser": "^3.0.0" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/webpack-rtl-plugin/node_modules/postcss-minify-gradients/node_modules/postcss-value-parser": { + "version": "3.3.1", + "resolved": "https://registry.npmjs.org/postcss-value-parser/-/postcss-value-parser-3.3.1.tgz", + "integrity": "sha512-pISE66AbVkp4fDQ7VHBwRNXzAAKJjw4Vw7nWI/+Q3vuly7SNfgYXvm6i5IgFylHGK5sP/xHAbB7N49OS4gWNyQ==", + "dev": true + }, + "node_modules/webpack-rtl-plugin/node_modules/postcss-minify-params": { + "version": "4.0.2", + "resolved": "https://registry.npmjs.org/postcss-minify-params/-/postcss-minify-params-4.0.2.tgz", + "integrity": "sha512-G7eWyzEx0xL4/wiBBJxJOz48zAKV2WG3iZOqVhPet/9geefm/Px5uo1fzlHu+DOjT+m0Mmiz3jkQzVHe6wxAWg==", + "dev": true, + "dependencies": { + "alphanum-sort": "^1.0.0", + "browserslist": "^4.0.0", + "cssnano-util-get-arguments": "^4.0.0", + "postcss": "^7.0.0", + "postcss-value-parser": "^3.0.0", + "uniqs": "^2.0.0" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/webpack-rtl-plugin/node_modules/postcss-minify-params/node_modules/postcss-value-parser": { + "version": "3.3.1", + "resolved": "https://registry.npmjs.org/postcss-value-parser/-/postcss-value-parser-3.3.1.tgz", + "integrity": "sha512-pISE66AbVkp4fDQ7VHBwRNXzAAKJjw4Vw7nWI/+Q3vuly7SNfgYXvm6i5IgFylHGK5sP/xHAbB7N49OS4gWNyQ==", + "dev": true + }, + "node_modules/webpack-rtl-plugin/node_modules/postcss-minify-selectors": { + "version": "4.0.2", + "resolved": "https://registry.npmjs.org/postcss-minify-selectors/-/postcss-minify-selectors-4.0.2.tgz", + "integrity": "sha512-D5S1iViljXBj9kflQo4YutWnJmwm8VvIsU1GeXJGiG9j8CIg9zs4voPMdQDUmIxetUOh60VilsNzCiAFTOqu3g==", + "dev": true, + "dependencies": { + "alphanum-sort": "^1.0.0", + "has": "^1.0.0", + "postcss": "^7.0.0", + "postcss-selector-parser": "^3.0.0" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/webpack-rtl-plugin/node_modules/postcss-minify-selectors/node_modules/postcss-selector-parser": { + "version": "3.1.2", + "resolved": "https://registry.npmjs.org/postcss-selector-parser/-/postcss-selector-parser-3.1.2.tgz", + "integrity": "sha512-h7fJ/5uWuRVyOtkO45pnt1Ih40CEleeyCHzipqAZO2e5H20g25Y48uYnFUiShvY4rZWNJ/Bib/KVPmanaCtOhA==", + "dev": true, + "dependencies": { + "dot-prop": "^5.2.0", + "indexes-of": "^1.0.1", + "uniq": "^1.0.1" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/webpack-rtl-plugin/node_modules/postcss-normalize-charset": { + "version": "4.0.1", + "resolved": "https://registry.npmjs.org/postcss-normalize-charset/-/postcss-normalize-charset-4.0.1.tgz", + "integrity": "sha512-gMXCrrlWh6G27U0hF3vNvR3w8I1s2wOBILvA87iNXaPvSNo5uZAMYsZG7XjCUf1eVxuPfyL4TJ7++SGZLc9A3g==", + "dev": true, + "dependencies": { + "postcss": "^7.0.0" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/webpack-rtl-plugin/node_modules/postcss-normalize-display-values": { + "version": "4.0.2", + "resolved": "https://registry.npmjs.org/postcss-normalize-display-values/-/postcss-normalize-display-values-4.0.2.tgz", + "integrity": "sha512-3F2jcsaMW7+VtRMAqf/3m4cPFhPD3EFRgNs18u+k3lTJJlVe7d0YPO+bnwqo2xg8YiRpDXJI2u8A0wqJxMsQuQ==", + "dev": true, + "dependencies": { + "cssnano-util-get-match": "^4.0.0", + "postcss": "^7.0.0", + "postcss-value-parser": "^3.0.0" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/webpack-rtl-plugin/node_modules/postcss-normalize-display-values/node_modules/postcss-value-parser": { + "version": "3.3.1", + "resolved": "https://registry.npmjs.org/postcss-value-parser/-/postcss-value-parser-3.3.1.tgz", + "integrity": "sha512-pISE66AbVkp4fDQ7VHBwRNXzAAKJjw4Vw7nWI/+Q3vuly7SNfgYXvm6i5IgFylHGK5sP/xHAbB7N49OS4gWNyQ==", + "dev": true + }, + "node_modules/webpack-rtl-plugin/node_modules/postcss-normalize-positions": { + "version": "4.0.2", + "resolved": "https://registry.npmjs.org/postcss-normalize-positions/-/postcss-normalize-positions-4.0.2.tgz", + "integrity": "sha512-Dlf3/9AxpxE+NF1fJxYDeggi5WwV35MXGFnnoccP/9qDtFrTArZ0D0R+iKcg5WsUd8nUYMIl8yXDCtcrT8JrdA==", + "dev": true, + "dependencies": { + "cssnano-util-get-arguments": "^4.0.0", + "has": "^1.0.0", + "postcss": "^7.0.0", + "postcss-value-parser": "^3.0.0" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/webpack-rtl-plugin/node_modules/postcss-normalize-positions/node_modules/postcss-value-parser": { + "version": "3.3.1", + "resolved": "https://registry.npmjs.org/postcss-value-parser/-/postcss-value-parser-3.3.1.tgz", + "integrity": "sha512-pISE66AbVkp4fDQ7VHBwRNXzAAKJjw4Vw7nWI/+Q3vuly7SNfgYXvm6i5IgFylHGK5sP/xHAbB7N49OS4gWNyQ==", + "dev": true + }, + "node_modules/webpack-rtl-plugin/node_modules/postcss-normalize-repeat-style": { + "version": "4.0.2", + "resolved": "https://registry.npmjs.org/postcss-normalize-repeat-style/-/postcss-normalize-repeat-style-4.0.2.tgz", + "integrity": "sha512-qvigdYYMpSuoFs3Is/f5nHdRLJN/ITA7huIoCyqqENJe9PvPmLhNLMu7QTjPdtnVf6OcYYO5SHonx4+fbJE1+Q==", + "dev": true, + "dependencies": { + "cssnano-util-get-arguments": "^4.0.0", + "cssnano-util-get-match": "^4.0.0", + "postcss": "^7.0.0", + "postcss-value-parser": "^3.0.0" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/webpack-rtl-plugin/node_modules/postcss-normalize-repeat-style/node_modules/postcss-value-parser": { + "version": "3.3.1", + "resolved": "https://registry.npmjs.org/postcss-value-parser/-/postcss-value-parser-3.3.1.tgz", + "integrity": "sha512-pISE66AbVkp4fDQ7VHBwRNXzAAKJjw4Vw7nWI/+Q3vuly7SNfgYXvm6i5IgFylHGK5sP/xHAbB7N49OS4gWNyQ==", + "dev": true + }, + "node_modules/webpack-rtl-plugin/node_modules/postcss-normalize-string": { + "version": "4.0.2", + "resolved": "https://registry.npmjs.org/postcss-normalize-string/-/postcss-normalize-string-4.0.2.tgz", + "integrity": "sha512-RrERod97Dnwqq49WNz8qo66ps0swYZDSb6rM57kN2J+aoyEAJfZ6bMx0sx/F9TIEX0xthPGCmeyiam/jXif0eA==", + "dev": true, + "dependencies": { + "has": "^1.0.0", + "postcss": "^7.0.0", + "postcss-value-parser": "^3.0.0" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/webpack-rtl-plugin/node_modules/postcss-normalize-string/node_modules/postcss-value-parser": { + "version": "3.3.1", + "resolved": "https://registry.npmjs.org/postcss-value-parser/-/postcss-value-parser-3.3.1.tgz", + "integrity": "sha512-pISE66AbVkp4fDQ7VHBwRNXzAAKJjw4Vw7nWI/+Q3vuly7SNfgYXvm6i5IgFylHGK5sP/xHAbB7N49OS4gWNyQ==", + "dev": true + }, + "node_modules/webpack-rtl-plugin/node_modules/postcss-normalize-timing-functions": { + "version": "4.0.2", + "resolved": "https://registry.npmjs.org/postcss-normalize-timing-functions/-/postcss-normalize-timing-functions-4.0.2.tgz", + "integrity": "sha512-acwJY95edP762e++00Ehq9L4sZCEcOPyaHwoaFOhIwWCDfik6YvqsYNxckee65JHLKzuNSSmAdxwD2Cud1Z54A==", + "dev": true, + "dependencies": { + "cssnano-util-get-match": "^4.0.0", + "postcss": "^7.0.0", + "postcss-value-parser": "^3.0.0" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/webpack-rtl-plugin/node_modules/postcss-normalize-timing-functions/node_modules/postcss-value-parser": { + "version": "3.3.1", + "resolved": "https://registry.npmjs.org/postcss-value-parser/-/postcss-value-parser-3.3.1.tgz", + "integrity": "sha512-pISE66AbVkp4fDQ7VHBwRNXzAAKJjw4Vw7nWI/+Q3vuly7SNfgYXvm6i5IgFylHGK5sP/xHAbB7N49OS4gWNyQ==", + "dev": true + }, + "node_modules/webpack-rtl-plugin/node_modules/postcss-normalize-unicode": { + "version": "4.0.1", + "resolved": "https://registry.npmjs.org/postcss-normalize-unicode/-/postcss-normalize-unicode-4.0.1.tgz", + "integrity": "sha512-od18Uq2wCYn+vZ/qCOeutvHjB5jm57ToxRaMeNuf0nWVHaP9Hua56QyMF6fs/4FSUnVIw0CBPsU0K4LnBPwYwg==", + "dev": true, + "dependencies": { + "browserslist": "^4.0.0", + "postcss": "^7.0.0", + "postcss-value-parser": "^3.0.0" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/webpack-rtl-plugin/node_modules/postcss-normalize-unicode/node_modules/postcss-value-parser": { + "version": "3.3.1", + "resolved": "https://registry.npmjs.org/postcss-value-parser/-/postcss-value-parser-3.3.1.tgz", + "integrity": "sha512-pISE66AbVkp4fDQ7VHBwRNXzAAKJjw4Vw7nWI/+Q3vuly7SNfgYXvm6i5IgFylHGK5sP/xHAbB7N49OS4gWNyQ==", + "dev": true + }, + "node_modules/webpack-rtl-plugin/node_modules/postcss-normalize-url": { + "version": "4.0.1", + "resolved": "https://registry.npmjs.org/postcss-normalize-url/-/postcss-normalize-url-4.0.1.tgz", + "integrity": "sha512-p5oVaF4+IHwu7VpMan/SSpmpYxcJMtkGppYf0VbdH5B6hN8YNmVyJLuY9FmLQTzY3fag5ESUUHDqM+heid0UVA==", + "dev": true, + "dependencies": { + "is-absolute-url": "^2.0.0", + "normalize-url": "^3.0.0", + "postcss": "^7.0.0", + "postcss-value-parser": "^3.0.0" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/webpack-rtl-plugin/node_modules/postcss-normalize-url/node_modules/postcss-value-parser": { + "version": "3.3.1", + "resolved": "https://registry.npmjs.org/postcss-value-parser/-/postcss-value-parser-3.3.1.tgz", + "integrity": "sha512-pISE66AbVkp4fDQ7VHBwRNXzAAKJjw4Vw7nWI/+Q3vuly7SNfgYXvm6i5IgFylHGK5sP/xHAbB7N49OS4gWNyQ==", + "dev": true + }, + "node_modules/webpack-rtl-plugin/node_modules/postcss-normalize-whitespace": { + "version": "4.0.2", + "resolved": "https://registry.npmjs.org/postcss-normalize-whitespace/-/postcss-normalize-whitespace-4.0.2.tgz", + "integrity": "sha512-tO8QIgrsI3p95r8fyqKV+ufKlSHh9hMJqACqbv2XknufqEDhDvbguXGBBqxw9nsQoXWf0qOqppziKJKHMD4GtA==", + "dev": true, + "dependencies": { + "postcss": "^7.0.0", + "postcss-value-parser": "^3.0.0" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/webpack-rtl-plugin/node_modules/postcss-normalize-whitespace/node_modules/postcss-value-parser": { + "version": "3.3.1", + "resolved": "https://registry.npmjs.org/postcss-value-parser/-/postcss-value-parser-3.3.1.tgz", + "integrity": "sha512-pISE66AbVkp4fDQ7VHBwRNXzAAKJjw4Vw7nWI/+Q3vuly7SNfgYXvm6i5IgFylHGK5sP/xHAbB7N49OS4gWNyQ==", + "dev": true + }, + "node_modules/webpack-rtl-plugin/node_modules/postcss-ordered-values": { + "version": "4.1.2", + "resolved": "https://registry.npmjs.org/postcss-ordered-values/-/postcss-ordered-values-4.1.2.tgz", + "integrity": "sha512-2fCObh5UanxvSxeXrtLtlwVThBvHn6MQcu4ksNT2tsaV2Fg76R2CV98W7wNSlX+5/pFwEyaDwKLLoEV7uRybAw==", + "dev": true, + "dependencies": { + "cssnano-util-get-arguments": "^4.0.0", + "postcss": "^7.0.0", + "postcss-value-parser": "^3.0.0" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/webpack-rtl-plugin/node_modules/postcss-ordered-values/node_modules/postcss-value-parser": { + "version": "3.3.1", + "resolved": "https://registry.npmjs.org/postcss-value-parser/-/postcss-value-parser-3.3.1.tgz", + "integrity": "sha512-pISE66AbVkp4fDQ7VHBwRNXzAAKJjw4Vw7nWI/+Q3vuly7SNfgYXvm6i5IgFylHGK5sP/xHAbB7N49OS4gWNyQ==", + "dev": true + }, + "node_modules/webpack-rtl-plugin/node_modules/postcss-reduce-initial": { + "version": "4.0.3", + "resolved": "https://registry.npmjs.org/postcss-reduce-initial/-/postcss-reduce-initial-4.0.3.tgz", + "integrity": "sha512-gKWmR5aUulSjbzOfD9AlJiHCGH6AEVLaM0AV+aSioxUDd16qXP1PCh8d1/BGVvpdWn8k/HiK7n6TjeoXN1F7DA==", + "dev": true, + "dependencies": { + "browserslist": "^4.0.0", + "caniuse-api": "^3.0.0", + "has": "^1.0.0", + "postcss": "^7.0.0" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/webpack-rtl-plugin/node_modules/postcss-reduce-transforms": { + "version": "4.0.2", + "resolved": "https://registry.npmjs.org/postcss-reduce-transforms/-/postcss-reduce-transforms-4.0.2.tgz", + "integrity": "sha512-EEVig1Q2QJ4ELpJXMZR8Vt5DQx8/mo+dGWSR7vWXqcob2gQLyQGsionYcGKATXvQzMPn6DSN1vTN7yFximdIAg==", + "dev": true, + "dependencies": { + "cssnano-util-get-match": "^4.0.0", + "has": "^1.0.0", + "postcss": "^7.0.0", + "postcss-value-parser": "^3.0.0" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/webpack-rtl-plugin/node_modules/postcss-reduce-transforms/node_modules/postcss-value-parser": { + "version": "3.3.1", + "resolved": "https://registry.npmjs.org/postcss-value-parser/-/postcss-value-parser-3.3.1.tgz", + "integrity": "sha512-pISE66AbVkp4fDQ7VHBwRNXzAAKJjw4Vw7nWI/+Q3vuly7SNfgYXvm6i5IgFylHGK5sP/xHAbB7N49OS4gWNyQ==", + "dev": true + }, + "node_modules/webpack-rtl-plugin/node_modules/postcss-svgo": { + "version": "4.0.3", + "resolved": "https://registry.npmjs.org/postcss-svgo/-/postcss-svgo-4.0.3.tgz", + "integrity": "sha512-NoRbrcMWTtUghzuKSoIm6XV+sJdvZ7GZSc3wdBN0W19FTtp2ko8NqLsgoh/m9CzNhU3KLPvQmjIwtaNFkaFTvw==", + "dev": true, + "dependencies": { + "postcss": "^7.0.0", + "postcss-value-parser": "^3.0.0", + "svgo": "^1.0.0" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/webpack-rtl-plugin/node_modules/postcss-svgo/node_modules/postcss-value-parser": { + "version": "3.3.1", + "resolved": "https://registry.npmjs.org/postcss-value-parser/-/postcss-value-parser-3.3.1.tgz", + "integrity": "sha512-pISE66AbVkp4fDQ7VHBwRNXzAAKJjw4Vw7nWI/+Q3vuly7SNfgYXvm6i5IgFylHGK5sP/xHAbB7N49OS4gWNyQ==", + "dev": true + }, + "node_modules/webpack-rtl-plugin/node_modules/postcss-unique-selectors": { + "version": "4.0.1", + "resolved": "https://registry.npmjs.org/postcss-unique-selectors/-/postcss-unique-selectors-4.0.1.tgz", + "integrity": "sha512-+JanVaryLo9QwZjKrmJgkI4Fn8SBgRO6WXQBJi7KiAVPlmxikB5Jzc4EvXMT2H0/m0RjrVVm9rGNhZddm/8Spg==", + "dev": true, + "dependencies": { + "alphanum-sort": "^1.0.0", + "postcss": "^7.0.0", + "uniqs": "^2.0.0" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/webpack-rtl-plugin/node_modules/resolve-from": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/resolve-from/-/resolve-from-3.0.0.tgz", + "integrity": "sha512-GnlH6vxLymXJNMBo7XP1fJIzBFbdYt49CuTwmB/6N53t+kMPRMFKz783LlQ4tv28XoQfMWinAJX6WCGf2IlaIw==", + "dev": true, + "engines": { + "node": ">=4" + } + }, + "node_modules/webpack-rtl-plugin/node_modules/rtlcss": { + "version": "2.4.0", + "resolved": "https://registry.npmjs.org/rtlcss/-/rtlcss-2.4.0.tgz", + "integrity": "sha512-hdjFhZ5FCI0ABOfyXOMOhBtwPWtANLCG7rOiOcRf+yi5eDdxmDjqBruWouEnwVdzfh/TWF6NNncIEsigOCFZOA==", + "dev": true, + "dependencies": { + "chalk": "^2.3.0", + "findup": "^0.1.5", + "mkdirp": "^0.5.1", + "postcss": "^6.0.14", + "strip-json-comments": "^2.0.0" + }, + "bin": { + "rtlcss": "bin/rtlcss.js" + } + }, + "node_modules/webpack-rtl-plugin/node_modules/rtlcss/node_modules/postcss": { + "version": "6.0.23", + "resolved": "https://registry.npmjs.org/postcss/-/postcss-6.0.23.tgz", + "integrity": "sha512-soOk1h6J3VMTZtVeVpv15/Hpdl2cBLX3CAw4TAbkpTJiNPk9YP/zWcD1ND+xEtvyuuvKzbxliTOIyvkSeSJ6ag==", + "dev": true, + "dependencies": { + "chalk": "^2.4.1", + "source-map": "^0.6.1", + "supports-color": "^5.4.0" + }, + "engines": { + "node": ">=4.0.0" + } + }, + "node_modules/webpack-rtl-plugin/node_modules/strip-json-comments": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/strip-json-comments/-/strip-json-comments-2.0.1.tgz", + "integrity": "sha512-4gB8na07fecVVkOI6Rs4e7T6NOTki5EmL7TUduTs6bu3EdnSycntVJ4re8kgZA+wx9IueI2Y11bfbgwtzuE0KQ==", + "dev": true, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/webpack-rtl-plugin/node_modules/stylehacks": { + "version": "4.0.3", + "resolved": "https://registry.npmjs.org/stylehacks/-/stylehacks-4.0.3.tgz", + "integrity": "sha512-7GlLk9JwlElY4Y6a/rmbH2MhVlTyVmiJd1PfTCqFaIBEGMYNsrO/v3SeGTdhBThLg4Z+NbOk/qFMwCa+J+3p/g==", + "dev": true, + "dependencies": { + "browserslist": "^4.0.0", + "postcss": "^7.0.0", + "postcss-selector-parser": "^3.0.0" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/webpack-rtl-plugin/node_modules/stylehacks/node_modules/postcss-selector-parser": { + "version": "3.1.2", + "resolved": "https://registry.npmjs.org/postcss-selector-parser/-/postcss-selector-parser-3.1.2.tgz", + "integrity": "sha512-h7fJ/5uWuRVyOtkO45pnt1Ih40CEleeyCHzipqAZO2e5H20g25Y48uYnFUiShvY4rZWNJ/Bib/KVPmanaCtOhA==", + "dev": true, + "dependencies": { + "dot-prop": "^5.2.0", + "indexes-of": "^1.0.1", + "uniq": "^1.0.1" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/webpack-rtl-plugin/node_modules/supports-color": { + "version": "5.5.0", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-5.5.0.tgz", + "integrity": "sha512-QjVjwdXIt408MIiAqCX4oUKsgU2EqAGzs2Ppkm4aQYbjm+ZEWEcW4SfFNTr4uMNZma0ey4f5lgLrkB0aX0QMow==", + "dev": true, + "dependencies": { + "has-flag": "^3.0.0" + }, + "engines": { + "node": ">=4" + } + }, + "node_modules/webpack-rtl-plugin/node_modules/svgo": { + "version": "1.3.2", + "resolved": "https://registry.npmjs.org/svgo/-/svgo-1.3.2.tgz", + "integrity": "sha512-yhy/sQYxR5BkC98CY7o31VGsg014AKLEPxdfhora76l36hD9Rdy5NZA/Ocn6yayNPgSamYdtX2rFJdcv07AYVw==", + "deprecated": "This SVGO version is no longer supported. Upgrade to v2.x.x.", + "dev": true, + "dependencies": { + "chalk": "^2.4.1", + "coa": "^2.0.2", + "css-select": "^2.0.0", + "css-select-base-adapter": "^0.1.1", + "css-tree": "1.0.0-alpha.37", + "csso": "^4.0.2", + "js-yaml": "^3.13.1", + "mkdirp": "~0.5.1", + "object.values": "^1.1.0", + "sax": "~1.2.4", + "stable": "^0.1.8", + "unquote": "~1.1.1", + "util.promisify": "~1.0.0" + }, + "bin": { + "svgo": "bin/svgo" + }, + "engines": { + "node": ">=4.0.0" + } + }, + "node_modules/webpack-rtl-plugin/node_modules/webpack-sources": { + "version": "1.3.0", + "resolved": "https://registry.npmjs.org/webpack-sources/-/webpack-sources-1.3.0.tgz", + "integrity": "sha512-OiVgSrbGu7NEnEvQJJgdSFPl2qWKkWq5lHMhgiToIiN9w34EBnjYzSYs+VbL5KoYiLNtFFa7BZIKxRED3I32pA==", + "dev": true, + "dependencies": { + "source-list-map": "^2.0.0", + "source-map": "~0.6.1" + } + }, + "node_modules/webpack-sources": { + "version": "1.4.3", + "resolved": "https://registry.npmjs.org/webpack-sources/-/webpack-sources-1.4.3.tgz", + "integrity": "sha512-lgTS3Xhv1lCOKo7SA5TjKXMjpSM4sBjNV5+q2bqesbSPs5FjGmU6jjtBSkX9b4qW87vDIsCIlUPOEhbZrMdjeQ==", + "dev": true, + "dependencies": { + "source-list-map": "^2.0.0", + "source-map": "~0.6.1" + } + }, + "node_modules/webpack/node_modules/schema-utils": { + "version": "3.1.1", + "resolved": "https://registry.npmjs.org/schema-utils/-/schema-utils-3.1.1.tgz", + "integrity": "sha512-Y5PQxS4ITlC+EahLuXaY86TXfR7Dc5lw294alXOq86JAHCihAIZfqv8nNCWvaEJvaC51uN9hbLGeV0cFBdH+Fw==", + "dev": true, + "dependencies": { + "@types/json-schema": "^7.0.8", + "ajv": "^6.12.5", + "ajv-keywords": "^3.5.2" + }, + "engines": { + "node": ">= 10.13.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/webpack" + } + }, + "node_modules/webpack/node_modules/webpack-sources": { + "version": "3.2.3", + "resolved": "https://registry.npmjs.org/webpack-sources/-/webpack-sources-3.2.3.tgz", + "integrity": "sha512-/DyMEOrDgLKKIG0fmvtz+4dUX/3Ghozwgm6iPp8KRhvn+eQf9+Q7GWxVNMk3+uCPWfdXYC4ExGBckIXdFEfH1w==", + "dev": true, + "engines": { + "node": ">=10.13.0" + } + }, + "node_modules/webpackbar": { + "version": "5.0.2", + "resolved": "https://registry.npmjs.org/webpackbar/-/webpackbar-5.0.2.tgz", + "integrity": "sha512-BmFJo7veBDgQzfWXl/wwYXr/VFus0614qZ8i9znqcl9fnEdiVkdbi0TedLQ6xAK92HZHDJ0QmyQ0fmuZPAgCYQ==", + "dev": true, + "dependencies": { + "chalk": "^4.1.0", + "consola": "^2.15.3", + "pretty-time": "^1.1.0", + "std-env": "^3.0.1" + }, + "engines": { + "node": ">=12" + }, + "peerDependencies": { + "webpack": "3 || 4 || 5" + } + }, + "node_modules/websocket-driver": { + "version": "0.7.4", + "resolved": "https://registry.npmjs.org/websocket-driver/-/websocket-driver-0.7.4.tgz", + "integrity": "sha512-b17KeDIQVjvb0ssuSDF2cYXSg2iztliJ4B9WdsuB6J952qCPKmnVq4DyW5motImXHDC1cBT/1UezrJVsKw5zjg==", + "dev": true, + "dependencies": { + "http-parser-js": ">=0.5.1", + "safe-buffer": ">=5.1.0", + "websocket-extensions": ">=0.1.1" + }, + "engines": { + "node": ">=0.8.0" + } + }, + "node_modules/websocket-extensions": { + "version": "0.1.4", + "resolved": "https://registry.npmjs.org/websocket-extensions/-/websocket-extensions-0.1.4.tgz", + "integrity": "sha512-OqedPIGOfsDlo31UNwYbCFMSaO9m9G/0faIHj5/dZFDMFqPTcx6UwqyOy3COEaEOg/9VsGIpdqn62W5KhoKSpg==", + "dev": true, + "engines": { + "node": ">=0.8.0" + } + }, + "node_modules/which": { + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/which/-/which-2.0.2.tgz", + "integrity": "sha512-BLI3Tl1TW3Pvl70l3yq3Y64i+awpwXqsGBYWkkqMtnbXgrMD+yj7rhW0kuEDxzJaYXGjEW5ogapKNMEKNMjibA==", + "dependencies": { + "isexe": "^2.0.0" + }, + "bin": { + "node-which": "bin/node-which" + }, + "engines": { + "node": ">= 8" + } + }, + "node_modules/which-boxed-primitive": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/which-boxed-primitive/-/which-boxed-primitive-1.0.2.tgz", + "integrity": "sha512-bwZdv0AKLpplFY2KZRX6TvyuN7ojjr7lwkg6ml0roIy9YeuSr7JS372qlNW18UQYzgYK9ziGcerWqZOmEn9VNg==", + "dev": true, + "dependencies": { + "is-bigint": "^1.0.1", + "is-boolean-object": "^1.1.0", + "is-number-object": "^1.0.4", + "is-string": "^1.0.5", + "is-symbol": "^1.0.3" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/which-typed-array": { + "version": "1.1.9", + "resolved": "https://registry.npmjs.org/which-typed-array/-/which-typed-array-1.1.9.tgz", + "integrity": "sha512-w9c4xkx6mPidwp7180ckYWfMmvxpjlZuIudNtDf4N/tTAUB8VJbX25qZoAsrtGuYNnGw3pa0AXgbGKRB8/EceA==", + "dev": true, + "dependencies": { + "available-typed-arrays": "^1.0.5", + "call-bind": "^1.0.2", + "for-each": "^0.3.3", + "gopd": "^1.0.1", + "has-tostringtag": "^1.0.0", + "is-typed-array": "^1.1.10" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/wildcard": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/wildcard/-/wildcard-2.0.0.tgz", + "integrity": "sha512-JcKqAHLPxcdb9KM49dufGXn2x3ssnfjbcaQdLlfZsL9rH9wgDQjUtDxbo8NE0F6SFvydeu1VhZe7hZuHsB2/pw==", + "dev": true + }, + "node_modules/wnumb": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/wnumb/-/wnumb-1.2.0.tgz", + "integrity": "sha512-eYut5K/dW7usfk/Mwm6nxBNoTPp/uP7PlXld+hhg7lDtHLdHFnNclywGYM9BRC7Ohd4JhwuHg+vmOUGfd3NhVA==" + }, + "node_modules/word-wrap": { + "version": "1.2.3", + "resolved": "https://registry.npmjs.org/word-wrap/-/word-wrap-1.2.3.tgz", + "integrity": "sha512-Hz/mrNwitNRh/HUAtM/VT/5VH+ygD6DV7mYKZAtHOrbs8U7lvPS6xf7EJKMF0uW1KJCl0H701g3ZGus+muE5vQ==", + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/wordwrap": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/wordwrap/-/wordwrap-1.0.0.tgz", + "integrity": "sha512-gvVzJFlPycKc5dZN4yPkP8w7Dc37BtP1yczEneOb4uq34pXZcvrtRTmWV8W+Ume+XCxKgbjM+nevkyFPMybd4Q==" + }, + "node_modules/wrap-ansi": { + "version": "7.0.0", + "resolved": "https://registry.npmjs.org/wrap-ansi/-/wrap-ansi-7.0.0.tgz", + "integrity": "sha512-YVGIj2kamLSTxw6NsZjoBxfSwsn0ycdesmc4p+Q21c5zPuZ1pl+NfxVdxPtdHvmNVOQ6XSYG4AUtyt/Fi7D16Q==", + "dev": true, + "dependencies": { + "ansi-styles": "^4.0.0", + "string-width": "^4.1.0", + "strip-ansi": "^6.0.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/chalk/wrap-ansi?sponsor=1" + } + }, + "node_modules/wrappy": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/wrappy/-/wrappy-1.0.2.tgz", + "integrity": "sha512-l4Sp/DRseor9wL6EvV2+TuQn63dMkPjZ/sp9XkghTEbV9KlPS1xUsZ3u7/IQO4wxtcFB4bgpQPRcR3QCvezPcQ==" + }, + "node_modules/ws": { + "version": "8.13.0", + "resolved": "https://registry.npmjs.org/ws/-/ws-8.13.0.tgz", + "integrity": "sha512-x9vcZYTrFPC7aSIbj7sRCYo7L/Xb8Iy+pW0ng0wt2vCJv7M9HOMy0UoN3rr+IFC7hb7vXoqS+P9ktyLLLhO+LA==", + "dev": true, + "engines": { + "node": ">=10.0.0" + }, + "peerDependencies": { + "bufferutil": "^4.0.1", + "utf-8-validate": ">=5.0.2" + }, + "peerDependenciesMeta": { + "bufferutil": { + "optional": true + }, + "utf-8-validate": { + "optional": true + } + } + }, + "node_modules/x-formatter": { + "version": "0.0.2", + "resolved": "https://registry.npmjs.org/x-formatter/-/x-formatter-0.0.2.tgz", + "integrity": "sha512-JO3XWRfc2cpmUZHyOgerDXx/d4TzSz+mtsmUXZdw9LQSiPiLmyCvNad4a8N7cNS1Zgbq2IDW0xw47exvy0B8ZA==", + "dependencies": { + "@prettier-x/formatter-2021-01": "^0.0.1-rc01" + } + }, + "node_modules/xmldoc": { + "version": "1.3.0", + "resolved": "https://registry.npmjs.org/xmldoc/-/xmldoc-1.3.0.tgz", + "integrity": "sha512-y7IRWW6PvEnYQZNZFMRLNJw+p3pezM4nKYPfr15g4OOW9i8VpeydycFuipE2297OvZnh3jSb2pxOt9QpkZUVng==", + "dependencies": { + "sax": "^1.2.4" + } + }, + "node_modules/xss": { + "version": "1.0.14", + "resolved": "https://registry.npmjs.org/xss/-/xss-1.0.14.tgz", + "integrity": "sha512-og7TEJhXvn1a7kzZGQ7ETjdQVS2UfZyTlsEdDOqvQF7GoxNfY+0YLCzBy1kPdsDDx4QuNAonQPddpsn6Xl/7sw==", + "peer": true, + "dependencies": { + "commander": "^2.20.3", + "cssfilter": "0.0.10" + }, + "bin": { + "xss": "bin/xss" + }, + "engines": { + "node": ">= 0.10.0" + } + }, + "node_modules/xss/node_modules/commander": { + "version": "2.20.3", + "resolved": "https://registry.npmjs.org/commander/-/commander-2.20.3.tgz", + "integrity": "sha512-GpVkmM8vF2vQUkj2LvZmD35JxeJOLCwJ9cUkugyk2nuhbv3+mJvpLYYt+0+USMxE+oj+ey/lJEnhZw75x/OMcQ==", + "peer": true + }, + "node_modules/xtend": { + "version": "4.0.2", + "resolved": "https://registry.npmjs.org/xtend/-/xtend-4.0.2.tgz", + "integrity": "sha512-LKYU1iAXJXUgAXn9URjiu+MWhyUXHsvfp7mcuYm9dSUKK0/CjtrUwFAxD82/mCWbtLsGjFIad0wIsod4zrTAEQ==", + "engines": { + "node": ">=0.4" + } + }, + "node_modules/y18n": { + "version": "5.0.8", + "resolved": "https://registry.npmjs.org/y18n/-/y18n-5.0.8.tgz", + "integrity": "sha512-0pfFzegeDWJHJIAmTLRP2DwHjdF5s7jo9tuztdQxAhINCdvS+3nGINqPd00AphqJR/0LhANUS6/+7SCb98YOfA==", + "dev": true, + "engines": { + "node": ">=10" + } + }, + "node_modules/yallist": { + "version": "3.1.1", + "resolved": "https://registry.npmjs.org/yallist/-/yallist-3.1.1.tgz", + "integrity": "sha512-a4UGQaWPH59mOXUYnAG2ewncQS4i4F43Tv3JoAM+s2VDAmS9NsK8GpDMLrCHPksFT7h3K6TOoUNn2pb7RoXx4g==", + "dev": true + }, + "node_modules/yaml": { + "version": "1.10.2", + "resolved": "https://registry.npmjs.org/yaml/-/yaml-1.10.2.tgz", + "integrity": "sha512-r3vXyErRCYJ7wg28yvBY5VSoAF8ZvlcW9/BwUzEtUsjvX/DKs24dIkuwjtuprwJJHsbyUbLApepYTR1BN4uHrg==", + "engines": { + "node": ">= 6" + } + }, + "node_modules/yaml-unist-parser": { + "version": "1.3.1", + "resolved": "https://registry.npmjs.org/yaml-unist-parser/-/yaml-unist-parser-1.3.1.tgz", + "integrity": "sha512-4aHBMpYcnByF8l2OKj5hlBJlxSYIMON8Z1Hm57ymbBL4omXMlGgY+pEf4Di6h2qNT8ZG8seTVvAQYNOa7CZ9eA==", + "dependencies": { + "lines-and-columns": "^1.1.6", + "tslib": "^1.10.0", + "yaml": "^1.10.0" + }, + "engines": { + "node": ">= 6" + } + }, + "node_modules/yaml-unist-parser/node_modules/tslib": { + "version": "1.14.1", + "resolved": "https://registry.npmjs.org/tslib/-/tslib-1.14.1.tgz", + "integrity": "sha512-Xni35NKzjgMrwevysHTCArtLDpPvye8zV/0E4EyYn43P7/7qvQwPh9BGkHewbMulVntbigmcT7rdX3BNo9wRJg==" + }, + "node_modules/yargs": { + "version": "17.7.1", + "resolved": "https://registry.npmjs.org/yargs/-/yargs-17.7.1.tgz", + "integrity": "sha512-cwiTb08Xuv5fqF4AovYacTFNxk62th7LKJ6BL9IGUpTJrWoU7/7WdQGTP2SjKf1dUNBGzDd28p/Yfs/GI6JrLw==", + "dev": true, + "dependencies": { + "cliui": "^8.0.1", + "escalade": "^3.1.1", + "get-caller-file": "^2.0.5", + "require-directory": "^2.1.1", + "string-width": "^4.2.3", + "y18n": "^5.0.5", + "yargs-parser": "^21.1.1" + }, + "engines": { + "node": ">=12" + } + }, + "node_modules/yargs-parser": { + "version": "21.1.1", + "resolved": "https://registry.npmjs.org/yargs-parser/-/yargs-parser-21.1.1.tgz", + "integrity": "sha512-tVpsJW7DdjecAiFpbIB1e3qxIQsE6NoPc5/eTdrbbIC4h0LVsWhnoa3g+m2HclBIujHzsxZ4VJVA+GUuc2/LBw==", + "dev": true, + "engines": { + "node": ">=12" + } + }, + "node_modules/yocto-queue": { + "version": "0.1.0", + "resolved": "https://registry.npmjs.org/yocto-queue/-/yocto-queue-0.1.0.tgz", + "integrity": "sha512-rVksvsnNCdJ/ohGc6xgPwyN8eheCxsiLM8mxuE/t/mOVqJewPuO1miLpTHQiRgTKCLexL4MeAFVagts7HmNZ2Q==", + "dev": true, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + } + } +} diff --git a/package.json b/package.json new file mode 100644 index 0000000..f07f066 --- /dev/null +++ b/package.json @@ -0,0 +1,116 @@ +{ + "private": true, + "scripts": { + "dev": "npm run development", + "development": "mix", + "watch": "mix watch", + "watch-poll": "mix watch -- --watch-options-poll=1000", + "hot": "mix watch --hot", + "prod": "npm run production", + "production": "mix --production" + }, + "dependencies": { + "@ckeditor/ckeditor5-alignment": "^35.2.1", + "@ckeditor/ckeditor5-build-balloon": "^35.2.1", + "@ckeditor/ckeditor5-build-balloon-block": "^35.2.1", + "@ckeditor/ckeditor5-build-classic": "^35.2.1", + "@ckeditor/ckeditor5-build-decoupled-document": "^35.2.1", + "@ckeditor/ckeditor5-build-inline": "^35.2.1", + "@eonasdan/tempus-dominus": "^6.2.10", + "@fortawesome/fontawesome-free": "^6.1.1", + "@popperjs/core": "2.11.6", + "@shopify/draggable": "^1.0.0-beta.12", + "@yaireo/tagify": "^4.9.2", + "acorn": "^8.0.4", + "apexcharts": "^3.36.3", + "autosize": "^5.0.1", + "axios": "^0.21.1", + "bootstrap": "5.3.0-alpha1", + "bootstrap-cookie-alert": "^1.2.1", + "bootstrap-daterangepicker": "^3.1.0", + "bootstrap-icons": "^1.5.0", + "bootstrap-maxlength": "^1.10.1", + "bootstrap-multiselectsplitter": "^1.0.4", + "chalk": "^4.1.0", + "chart.js": "^3.6.0", + "clipboard": "^2.0.8", + "countup.js": "^2.0.7", + "cropperjs": "^1.5.12", + "datatables.net": "^1.12.1", + "datatables.net-bs5": "^1.12.1", + "datatables.net-buttons": "^2.2.3", + "datatables.net-buttons-bs5": "^2.2.3", + "datatables.net-colreorder": "^1.5.6", + "datatables.net-colreorder-bs5": "^1.5.6", + "datatables.net-datetime": "^1.1.2", + "datatables.net-fixedcolumns": "^4.1.0", + "datatables.net-fixedcolumns-bs5": "^4.1.0", + "datatables.net-fixedheader": "^3.2.3", + "datatables.net-fixedheader-bs5": "^3.2.3", + "datatables.net-plugins": "^1.11.5", + "datatables.net-responsive": "^2.3.0", + "datatables.net-responsive-bs5": "^2.3.0", + "datatables.net-rowgroup": "^1.2.0", + "datatables.net-rowgroup-bs5": "^1.2.0", + "datatables.net-rowreorder": "^1.2.8", + "datatables.net-rowreorder-bs5": "^1.2.8", + "datatables.net-scroller": "^2.0.6", + "datatables.net-scroller-bs5": "^2.0.6", + "datatables.net-select": "^1.4.0", + "datatables.net-select-bs5": "^1.4.0", + "dropzone": "^5.9.2", + "es6-promise": "^4.2.8", + "es6-promise-polyfill": "^1.2.0", + "es6-shim": "^0.35.5", + "esri-leaflet": "^3.0.2", + "esri-leaflet-geocoder": "^3.0.0", + "flatpickr": "^4.6.9", + "flot": "^4.2.2", + "fslightbox": "^3.3.0-2", + "fullcalendar": "^5.8.0", + "handlebars": "^4.7.7", + "inputmask": "^5.0.6", + "jkanban": "^1.3.1", + "jquery": "3.6.0", + "jquery-chained": "^2.0.0-beta.2", + "jquery.repeater": "^1.2.1", + "jstree": "^3.3.11", + "jszip": "^3.6.0", + "leaflet": "^1.7.1", + "line-awesome": "^1.3.0", + "lozad": "^1.16.0", + "moment": "^2.29.1", + "nouislider": "^15.2.0", + "npm": "^7.19.1", + "pdfmake": "^0.2.0", + "prism-themes": "^1.7.0", + "prismjs": "^1.24.1", + "quill": "^1.3.7", + "select2": "^4.1.0-rc.0", + "smooth-scroll": "^16.1.3", + "sweetalert2": "11.4.8", + "tiny-slider": "^2.9.3", + "tinymce": "^5.8.2", + "toastr": "^2.1.4", + "typed.js": "2.0.12", + "vis-timeline": "^7.4.9", + "wnumb": "^1.2.0" + }, + "devDependencies": { + "alpinejs": "^3.7.1", + "autoprefixer": "^10.4.2", + "axios": "^1.1.3", + "del": "^6.0.0", + "laravel-mix": "^6.0.39", + "laravel-mix-purgecss": "^6.0.0", + "lodash": "^4.17.19", + "postcss": "^8.4.5", + "postcss-import": "^14.0.2", + "replace-in-file-webpack-plugin": "^1.0.6", + "resolve-url-loader": "^4.0.0", + "rtlcss": "^3.5.0", + "sass": "1.55.0", + "sass-loader": "13.2.0", + "webpack-rtl-plugin": "^2.0.0" + } +} diff --git a/phpunit.xml b/phpunit.xml new file mode 100644 index 0000000..4009bdd --- /dev/null +++ b/phpunit.xml @@ -0,0 +1,26 @@ + + + + + ./tests/Unit + + + ./tests/Feature + + + + + + + + + + + + + + diff --git a/public/.htaccess b/public/.htaccess new file mode 100644 index 0000000..3aec5e2 --- /dev/null +++ b/public/.htaccess @@ -0,0 +1,21 @@ + + + Options -MultiViews -Indexes + + + RewriteEngine On + + # Handle Authorization Header + RewriteCond %{HTTP:Authorization} . + RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}] + + # Redirect Trailing Slashes If Not A Folder... + RewriteCond %{REQUEST_FILENAME} !-d + RewriteCond %{REQUEST_URI} (.+)/$ + RewriteRule ^ %1 [L,R=301] + + # Send Requests To Front Controller... + RewriteCond %{REQUEST_FILENAME} !-d + RewriteCond %{REQUEST_FILENAME} !-f + RewriteRule ^ index.php [L] + diff --git a/public/favicon.ico b/public/favicon.ico new file mode 100644 index 0000000..e69de29 diff --git a/public/icons.json b/public/icons.json new file mode 100644 index 0000000..f4e96ab --- /dev/null +++ b/public/icons.json @@ -0,0 +1 @@ +{"free-version-categories":["general","abstract","devices","location","users","it-newtwork","design","archive","typography","technologies","social-media","weather"],"categories":{"abstract":["abstract-33","abstract-27","abstract-26","abstract-32","abstract-18","abstract-24","abstract-30","abstract-8","abstract-9","abstract-31","abstract-25","abstract-19","abstract-21","abstract-35","abstract-34","abstract-20","abstract-36","abstract-22","abstract-23","abstract-37","abstract-44","abstract","abstract-45","abstract-47","abstract-46","abstract-42","abstract-43","abstract-41","abstract-40","abstract-48","abstract-49","abstract-12","abstract-2","abstract-3","abstract-13","abstract-39","abstract-11","abstract-1","abstract-10","abstract-38","abstract-14","abstract-28","abstract-4","abstract-5","abstract-29","abstract-15","abstract-17","abstract-7","abstract-6","abstract-16"],"settings":["toggle-on","toggle-on-circle","toggle-off","category","setting","toggle-off-circle","more-2","setting-4","setting-2","setting-3"],"design":["eraser","paintbucket","add-item","design-2","brush","size","design","copy","text","design-frame","bucket","glass","feather","pencil","colors-square","design-mask","bucket-square","copy-success","color-swatch"],"social-media":["instagram","snapchat","classmates","facebook","whatsapp","social-media","youtube","dribbble","twitter","tiktok","behance"],"it-network":["underlining","disconnect","code","gear","loading","scroll","wrench","square-brackets","frame","message-programming","data","fasten","click"],"technologies":["tech-wifi","joystick","faceid","technology-3","technology-2","electricity","fingerprint-scanning","technology-4","artificial-intelligence","technology"],"ecommerce":["basket-ok","cheque","handcart","shop","tag","purchase","discount","package","percentage","barcode","lots-shopping","basket"],"archive":["book-square","receipt-square","save-2","archive-tick"],"security":["shield-search","password-check","shield-tick","lock","key","shield","shield-cross","key-square","eye-slash","security-check","lock-3","scan-barcode","lock-2","eye","shield-slash","security-user"],"general":["triangle","subtitle","ghost","information","milk","home","happy-emoji","mouse-square","filter-tick","filter-search","wifi-home","trash-square","paper-clip","archive","pin","wifi-square","auto-brightness","coffee","icon","emoji-happy","general-mouse","ranking","slider","crown-2","rescue","flash-circle","safe-home","cloud-change","crown","filter-edit","picture","verify","send","tag-cross","cloud-add","home-3","disk","trash","star","cd","home-2","mouse-circle","home-1","call","gift","share","sort","magnifier","filter-square","tree","filter","switch","cloud","cup","diamonds","status","rocket","cloud-download","menu","chrome"],"location":["geolocation-home","map","telephone-geolocation","satellite","flag","focus","pointers","compass","route","geolocation"],"education":["brifecase-timer","briefcase","clipboard","bookmark-2","note","note-2","book-open","book","teacher","award","brifecase-tick","brifecase-cros","bookmark"],"business":["chart-line","chart","graph-3","chart-pie-3","graph-2","chart-line-down","chart-pie-too","chart-pie-4","chart-line-down-2","graph-4","chart-line-up-2","badge","chart-line-up","chart-simple-3","chart-pie-simple","chart-simple-2","graph-up","chart-line-star","graph","chart-simple"],"files-folders":["tablet-delete","file-added","file-up","minus-folder","file","delete-files","add-folder","file-left","file-deleted","some-files","file-right","notepad","notepad-bookmark","document","like-folder","folder-up","folder-added","file-down","filter-tablet","tablet-book","update-file","add-notepad","questionnaire-tablet","tablet-up","tablet-ok","update-folder","files-tablet","folder-down","notepad-edit","tablet-text-up","search-list","tablet-text-down","add-files","tablet-down","delete-folder","folder","file-sheet"],"software":["bootstrap","figma","dropbox","xaomi","microsoft","android","vue","js","spring-framework","github","dj","google-play","angular","soft-3","python","soft-2","ts","xd","spotify","js-2","laravel","css","google","photoshop","twitch","illustrator","pails","react","html","slack","soft","yii","apple","vuesax"],"time":["calendar-add","calendar-search","calendar-2","calendar-tick","time","watch","calendar-edit","calendar","calendar-8","timer","calendar-remove"],"support":["heart-circle","like","information-4","information-5","information-2","information-3","question","dislike","message-question","medal-star","like-tag","like-2","support-24","question-2","lovely","like-shapes","heart"],"users":["user","user-square","user-tick","people","user-edit","profile-user","profile-circle"],"medicine":["capsule","virus","bandage","thermometer","flask","test-tubes","syringe","mask","pill","pulse"],"burger-menu":["burger-menu","burger-menu-6","burger-menu-5","burger-menu-4","burger-menu-1","burger-menu-3","burger-menu-2"],"typography":["text-align-center","text-italic","text-bold","text-strikethrough","text-underline","text-number","text-align-left","text-align-right","text-circle","text-align-justify-center"],"finance":["theta","dollar","binance","nexo","euro","avalanche","bitcoin","wallet","price-tag","finance-calculator","dash","lts","vibe","credit-cart","paypal","bill","ocean","celsius","educare","enjin-coin","two-credit-cart","bank","binance-usd","wanchain","trello","save-deposit","xmr","financial-schedule","office-bag"],"weather":["night-day","sun","drop","moon"],"arrows":["exit-right-corner","dots-circle-vertical","check-square","right-left","arrow-down","dots-horizontal","arrow-right-left","up-down","double-check","arrow-up-left","down","exit-up","up-square","down-square","plus-square","dots-circle","arrow-down-left","double-check-circle","up","entrance-right","arrow-right","arrow-two-diagonals","minus-square","arrow-diagonal","black-left","arrow-down-refraction","black-right","double-left","arrow-circle-left","arrow-zigzag","plus","check","exit-left","arrow-circle-right","cross-square","entrance-left","left-square","arrows-loop","black-left-line","double-left-arrow","check-circle","right","dots-square-vertical","arrow-up-right","exit-down","dots-square","to-left","double-down","plus-circle","black-down","double-up","black-up","double-right-arrow","arrow-up","black-right-line","arrow-up-refraction","arrow-left","cross","minus-circle","arrow-down-right","exit-right","to-right","double-right","arrow-mix","right-square","arrows-circle","cross-circle","left","minus","dots-vertical","arrow-up-down"],"communication":["message-text-2","message-notif","message-add","sms","directbox-default","message-text","messages","address-book","message-edit","message-minus"],"notifications":["notification-circle","notification-favorite","notification-2","notification","notification-bing","notification-status","notification-on"],"delivery-and-logistics":["scooter-2","parcel","delivery-time","delivery","delivery-24","ship","courier","logistic","trailer","car-2","car-3","airplane-square","scooter","truck","cube-3","bus","cube-2","delivery-door","delivery-3","delivery-2","car","courier-express","airplane","delivery-geolocation","parcel-tracking"],"devices":["monitor-mobile","devices","keyboard","devices-2","bluetooth","wifi","airpod","simcard-2","speaker","printer","simcard","router","phone","electronic-clock","external-drive","laptop","tablet","screen","calculator","mouse"],"grid":["grid","slider-vertical-2","maximize","slider-vertical","row-horizontal","kanban","row-vertical","fat-rows","grid-2","element-8","element-9","element-12","element-4","element-5","grid-frame","element-11","element-7","element-6","element-10","element-2","element-3","element-equal","element-1","slider-horizontal-2","slider-horizontal","element-plus"]},"duotone-paths":{"abstract-33":2,"abstract-27":2,"abstract-26":2,"abstract-32":2,"abstract-18":2,"abstract-24":2,"abstract-30":2,"abstract-8":2,"abstract-9":2,"abstract-31":2,"abstract-25":2,"abstract-19":2,"abstract-21":2,"abstract-35":2,"abstract-34":2,"abstract-20":2,"abstract-36":2,"abstract-22":2,"abstract-23":2,"abstract-37":2,"abstract-44":2,"abstract":2,"abstract-45":2,"abstract-47":2,"abstract-46":2,"abstract-42":2,"abstract-43":2,"abstract-41":2,"abstract-40":2,"abstract-48":3,"abstract-49":3,"abstract-12":2,"abstract-2":2,"abstract-3":2,"abstract-13":2,"abstract-39":2,"abstract-11":2,"abstract-1":2,"abstract-10":2,"abstract-38":2,"abstract-14":2,"abstract-28":2,"abstract-4":2,"abstract-5":2,"abstract-29":2,"abstract-15":2,"abstract-17":2,"abstract-7":2,"abstract-6":0,"abstract-16":2,"toggle-on":2,"toggle-on-circle":2,"toggle-off":2,"category":4,"setting":2,"toggle-off-circle":2,"more-2":4,"setting-4":0,"setting-2":2,"setting-3":5,"eraser":3,"paintbucket":3,"add-item":3,"design-2":2,"brush":2,"size":2,"design":2,"copy":0,"text":0,"design-frame":2,"bucket":4,"glass":3,"feather":2,"pencil":2,"colors-square":4,"design-mask":2,"bucket-square":3,"copy-success":2,"color-swatch":21,"instagram":2,"snapchat":2,"classmates":2,"facebook":2,"whatsapp":2,"social-media":2,"youtube":2,"dribbble":6,"twitter":2,"tiktok":2,"behance":2,"underlining":3,"disconnect":5,"code":4,"gear":2,"loading":2,"scroll":3,"wrench":2,"square-brackets":4,"frame":4,"message-programming":4,"data":5,"fasten":2,"click":5,"tech-wifi":2,"joystick":4,"faceid":6,"technology-3":4,"technology-2":2,"electricity":10,"fingerprint-scanning":5,"technology-4":7,"artificial-intelligence":8,"technology":9,"basket-ok":4,"cheque":7,"handcart":0,"shop":5,"tag":3,"purchase":2,"discount":2,"package":3,"percentage":2,"barcode":8,"lots-shopping":8,"basket":4,"book-square":3,"receipt-square":2,"save-2":2,"archive-tick":2,"shield-search":3,"password-check":5,"shield-tick":2,"lock":3,"key":2,"shield":2,"shield-cross":3,"key-square":2,"eye-slash":4,"security-check":4,"lock-3":3,"scan-barcode":8,"lock-2":5,"eye":3,"shield-slash":3,"security-user":2,"triangle":3,"subtitle":5,"ghost":3,"information":3,"milk":3,"home":0,"happy-emoji":2,"mouse-square":2,"filter-tick":2,"filter-search":3,"wifi-home":4,"trash-square":4,"paper-clip":0,"archive":3,"pin":2,"wifi-square":4,"auto-brightness":3,"coffee":6,"icon":3,"emoji-happy":4,"general-mouse":2,"ranking":4,"slider":4,"crown-2":3,"rescue":2,"flash-circle":2,"safe-home":2,"cloud-change":3,"crown":2,"filter-edit":2,"picture":2,"verify":2,"send":2,"tag-cross":3,"cloud-add":2,"home-3":2,"disk":2,"trash":5,"star":0,"cd":2,"home-2":2,"mouse-circle":2,"home-1":2,"call":8,"gift":4,"share":6,"sort":4,"magnifier":2,"filter-square":2,"tree":3,"filter":2,"switch":2,"cloud":0,"cup":2,"diamonds":2,"status":3,"rocket":2,"cloud-download":2,"menu":4,"chrome":2,"geolocation-home":2,"map":3,"telephone-geolocation":3,"satellite":6,"flag":2,"focus":2,"pointers":3,"compass":2,"route":4,"geolocation":2,"brifecase-timer":3,"briefcase":2,"clipboard":3,"bookmark-2":2,"note":2,"note-2":4,"book-open":4,"book":4,"teacher":2,"award":3,"brifecase-tick":3,"brifecase-cros":3,"bookmark":2,"chart-line":2,"chart":2,"graph-3":2,"chart-pie-3":3,"graph-2":3,"chart-line-down":2,"chart-pie-too":2,"chart-pie-4":3,"chart-line-down-2":3,"graph-4":2,"chart-line-up-2":2,"badge":5,"chart-line-up":2,"chart-simple-3":4,"chart-pie-simple":2,"chart-simple-2":4,"graph-up":6,"chart-line-star":3,"graph":4,"chart-simple":4,"tablet-delete":3,"file-added":2,"file-up":2,"minus-folder":2,"file":2,"delete-files":2,"add-folder":2,"file-left":2,"file-deleted":2,"some-files":2,"file-right":2,"notepad":5,"notepad-bookmark":6,"document":2,"like-folder":2,"folder-up":2,"folder-added":2,"file-down":2,"filter-tablet":2,"tablet-book":2,"update-file":4,"add-notepad":4,"questionnaire-tablet":2,"tablet-up":3,"tablet-ok":3,"update-folder":2,"files-tablet":2,"folder-down":2,"notepad-edit":2,"tablet-text-up":2,"search-list":3,"tablet-text-down":4,"add-files":3,"tablet-down":3,"delete-folder":2,"folder":2,"file-sheet":2,"bootstrap":3,"figma":5,"dropbox":5,"xaomi":2,"microsoft":4,"android":6,"vue":2,"js":2,"spring-framework":0,"github":2,"dj":0,"google-play":2,"angular":3,"soft-3":2,"python":2,"soft-2":2,"ts":3,"xd":3,"spotify":2,"js-2":2,"laravel":7,"css":2,"google":2,"photoshop":2,"twitch":3,"illustrator":4,"pails":9,"react":2,"html":2,"slack":8,"soft":6,"yii":3,"apple":2,"vuesax":3,"calendar-add":6,"calendar-search":4,"calendar-2":5,"calendar-tick":6,"time":2,"watch":2,"calendar-edit":3,"calendar":2,"calendar-8":6,"timer":3,"calendar-remove":6,"heart-circle":2,"like":2,"information-4":3,"information-5":3,"information-2":3,"information-3":3,"question":3,"dislike":2,"message-question":3,"medal-star":4,"like-tag":2,"like-2":2,"support-24":3,"question-2":3,"lovely":2,"like-shapes":2,"heart":2,"user":2,"user-square":3,"user-tick":3,"people":5,"user-edit":3,"profile-user":4,"profile-circle":3,"capsule":2,"virus":3,"bandage":2,"thermometer":2,"flask":2,"test-tubes":2,"syringe":3,"mask":3,"pill":0,"pulse":2,"burger-menu":4,"burger-menu-6":0,"burger-menu-5":0,"burger-menu-4":0,"burger-menu-1":4,"burger-menu-3":9,"burger-menu-2":10,"text-align-center":4,"text-italic":4,"text-bold":3,"text-strikethrough":3,"text-underline":3,"text-number":6,"text-align-left":4,"text-align-right":4,"text-circle":6,"text-align-justify-center":4,"theta":2,"dollar":3,"binance":5,"nexo":2,"euro":3,"avalanche":2,"bitcoin":2,"wallet":4,"price-tag":3,"finance-calculator":7,"dash":2,"lts":2,"vibe":2,"credit-cart":2,"paypal":2,"bill":6,"ocean":19,"celsius":2,"educare":4,"enjin-coin":2,"two-credit-cart":5,"bank":2,"binance-usd":4,"wanchain":2,"trello":3,"save-deposit":4,"xmr":2,"financial-schedule":4,"office-bag":4,"night-day":10,"sun":9,"drop":2,"moon":2,"exit-right-corner":2,"dots-circle-vertical":4,"check-square":2,"right-left":3,"arrow-down":2,"dots-horizontal":3,"arrow-right-left":2,"up-down":3,"double-check":2,"arrow-up-left":2,"down":0,"exit-up":2,"up-square":2,"down-square":2,"plus-square":3,"dots-circle":4,"arrow-down-left":2,"double-check-circle":3,"up":0,"entrance-right":2,"arrow-right":2,"arrow-two-diagonals":5,"minus-square":2,"arrow-diagonal":3,"black-left":0,"arrow-down-refraction":2,"black-right":0,"double-left":2,"arrow-circle-left":2,"arrow-zigzag":2,"plus":0,"check":0,"exit-left":2,"arrow-circle-right":2,"cross-square":2,"entrance-left":2,"left-square":2,"arrows-loop":2,"black-left-line":2,"double-left-arrow":2,"check-circle":2,"right":0,"dots-square-vertical":4,"arrow-up-right":2,"exit-down":2,"dots-square":4,"to-left":0,"double-down":3,"plus-circle":2,"black-down":0,"double-up":3,"black-up":0,"double-right-arrow":2,"arrow-up":2,"black-right-line":2,"arrow-up-refraction":2,"arrow-left":2,"cross":2,"minus-circle":2,"arrow-down-right":2,"exit-right":2,"to-right":0,"double-right":2,"arrow-mix":2,"right-square":2,"arrows-circle":2,"cross-circle":2,"left":0,"minus":0,"dots-vertical":3,"arrow-up-down":2,"message-text-2":3,"message-notif":5,"message-add":3,"sms":2,"directbox-default":4,"message-text":3,"messages":5,"address-book":3,"message-edit":2,"message-minus":2,"notification-circle":2,"notification-favorite":3,"notification-2":2,"notification":3,"notification-bing":3,"notification-status":4,"notification-on":5,"scooter-2":0,"parcel":5,"delivery-time":5,"delivery":5,"delivery-24":4,"ship":3,"courier":3,"logistic":7,"trailer":5,"car-2":6,"car-3":3,"airplane-square":2,"scooter":7,"truck":5,"cube-3":2,"bus":5,"cube-2":3,"delivery-door":4,"delivery-3":3,"delivery-2":9,"car":5,"courier-express":7,"airplane":2,"delivery-geolocation":5,"parcel-tracking":3,"monitor-mobile":2,"devices":5,"keyboard":2,"devices-2":3,"bluetooth":2,"wifi":4,"airpod":3,"simcard-2":2,"speaker":3,"printer":5,"simcard":5,"router":2,"phone":2,"electronic-clock":4,"external-drive":5,"laptop":2,"tablet":3,"screen":4,"calculator":6,"mouse":2,"grid":2,"slider-vertical-2":3,"maximize":5,"slider-vertical":3,"row-horizontal":2,"kanban":2,"row-vertical":2,"fat-rows":2,"grid-2":2,"element-8":2,"element-9":2,"element-12":3,"element-4":2,"element-5":2,"grid-frame":3,"element-11":4,"element-7":2,"element-6":2,"element-10":3,"element-2":2,"element-3":2,"element-equal":5,"element-1":4,"slider-horizontal-2":3,"slider-horizontal":3,"element-plus":5},"number":573} \ No newline at end of file diff --git a/public/index.php b/public/index.php new file mode 100644 index 0000000..1d69f3a --- /dev/null +++ b/public/index.php @@ -0,0 +1,55 @@ +make(Kernel::class); + +$response = $kernel->handle( + $request = Request::capture() +)->send(); + +$kernel->terminate($request, $response); diff --git a/public/robots.txt b/public/robots.txt new file mode 100644 index 0000000..eb05362 --- /dev/null +++ b/public/robots.txt @@ -0,0 +1,2 @@ +User-agent: * +Disallow: diff --git a/resources/_keenthemes/src/js/components/_init.js b/resources/_keenthemes/src/js/components/_init.js new file mode 100644 index 0000000..a1a2841 --- /dev/null +++ b/resources/_keenthemes/src/js/components/_init.js @@ -0,0 +1,42 @@ +// +// Global init of core components +// + +// Init components +var KTComponents = function () { + // Public methods + return { + init: function () { + KTApp.init(); + KTDrawer.init(); + KTMenu.init(); + KTScroll.init(); + KTSticky.init(); + KTSwapper.init(); + KTToggle.init(); + KTScrolltop.init(); + KTDialer.init(); + KTImageInput.init(); + KTPasswordMeter.init(); + } + } +}(); + +// On document ready +if (document.readyState === "loading") { + document.addEventListener("DOMContentLoaded", function() { + KTComponents.init(); + }); + } else { + KTComponents.init(); + } + + // Init page loader +window.addEventListener("load", function() { + KTApp.hidePageLoading(); +}); + +// Declare KTApp for Webpack support +if (typeof module !== 'undefined' && typeof module.exports !== 'undefined') { + window.KTComponents = module.exports = KTComponents; +} \ No newline at end of file diff --git a/resources/_keenthemes/src/js/components/app.js b/resources/_keenthemes/src/js/components/app.js new file mode 100644 index 0000000..52f1138 --- /dev/null +++ b/resources/_keenthemes/src/js/components/app.js @@ -0,0 +1,684 @@ +"use strict"; + +// Class definition +var KTApp = function () { + var initialized = false; + var select2FocusFixInitialized = false; + var countUpInitialized = false; + + var createBootstrapTooltip = function (el, options) { + if (el.getAttribute("data-kt-initialized") === "1") { + return; + } + + var delay = {}; + + // Handle delay options + if (el.hasAttribute('data-bs-delay-hide')) { + delay['hide'] = el.getAttribute('data-bs-delay-hide'); + } + + if (el.hasAttribute('data-bs-delay-show')) { + delay['show'] = el.getAttribute('data-bs-delay-show'); + } + + if (delay) { + options['delay'] = delay; + } + + // Check dismiss options + if (el.hasAttribute('data-bs-dismiss') && el.getAttribute('data-bs-dismiss') == 'click') { + options['dismiss'] = 'click'; + } + + // Initialize popover + var tp = new bootstrap.Tooltip(el, options); + + // Handle dismiss + if (options['dismiss'] && options['dismiss'] === 'click') { + // Hide popover on element click + el.addEventListener("click", function (e) { + tp.hide(); + }); + } + + el.setAttribute("data-kt-initialized", "1"); + + return tp; + } + + var createBootstrapTooltips = function () { + var tooltipTriggerList = [].slice.call(document.querySelectorAll('[data-bs-toggle="tooltip"]')); + + var tooltipList = tooltipTriggerList.map(function (tooltipTriggerEl) { + createBootstrapTooltip(tooltipTriggerEl, {}); + }); + } + + var createBootstrapPopover = function (el, options) { + if (el.getAttribute("data-kt-initialized") === "1") { + return; + } + + var delay = {}; + + // Handle delay options + if (el.hasAttribute('data-bs-delay-hide')) { + delay['hide'] = el.getAttribute('data-bs-delay-hide'); + } + + if (el.hasAttribute('data-bs-delay-show')) { + delay['show'] = el.getAttribute('data-bs-delay-show'); + } + + if (delay) { + options['delay'] = delay; + } + + // Handle dismiss option + if (el.getAttribute('data-bs-dismiss') == 'true') { + options['dismiss'] = true; + } + + if (options['dismiss'] === true) { + options['template'] = '' + } + + // Initialize popover + var popover = new bootstrap.Popover(el, options); + + // Handle dismiss click + if (options['dismiss'] === true) { + var dismissHandler = function (e) { + popover.hide(); + } + + el.addEventListener('shown.bs.popover', function () { + var dismissEl = document.getElementById(el.getAttribute('aria-describedby')); + dismissEl.addEventListener('click', dismissHandler); + }); + + el.addEventListener('hide.bs.popover', function () { + var dismissEl = document.getElementById(el.getAttribute('aria-describedby')); + dismissEl.removeEventListener('click', dismissHandler); + }); + } + + el.setAttribute("data-kt-initialized", "1"); + + return popover; + } + + var createBootstrapPopovers = function () { + var popoverTriggerList = [].slice.call(document.querySelectorAll('[data-bs-toggle="popover"]')); + + var popoverList = popoverTriggerList.map(function (popoverTriggerEl) { + createBootstrapPopover(popoverTriggerEl, {}); + }); + } + + var createBootstrapToasts = function () { + var toastElList = [].slice.call(document.querySelectorAll('.toast')); + var toastList = toastElList.map(function (toastEl) { + if (toastEl.getAttribute("data-kt-initialized") === "1") { + return; + } + + toastEl.setAttribute("data-kt-initialized", "1"); + + return new bootstrap.Toast(toastEl, {}) + }); + } + + var createButtons = function () { + var buttonsGroup = [].slice.call(document.querySelectorAll('[data-kt-buttons="true"]')); + + buttonsGroup.map(function (group) { + if (group.getAttribute("data-kt-initialized") === "1") { + return; + } + + var selector = group.hasAttribute('data-kt-buttons-target') ? group.getAttribute('data-kt-buttons-target') : '.btn'; + var activeButtons = [].slice.call(group.querySelectorAll(selector)); + + // Toggle Handler + KTUtil.on(group, selector, 'click', function (e) { + activeButtons.map(function (button) { + button.classList.remove('active'); + }); + + this.classList.add('active'); + }); + + group.setAttribute("data-kt-initialized", "1"); + }); + } + + var createDateRangePickers = function() { + // Check if jQuery included + if (typeof jQuery == 'undefined') { + return; + } + + // Check if daterangepicker included + if (typeof $.fn.daterangepicker === 'undefined') { + return; + } + + var elements = [].slice.call(document.querySelectorAll('[data-kt-daterangepicker="true"]')); + var start = moment().subtract(29, 'days'); + var end = moment(); + + elements.map(function (element) { + if (element.getAttribute("data-kt-initialized") === "1") { + return; + } + + var display = element.querySelector('div'); + var attrOpens = element.hasAttribute('data-kt-daterangepicker-opens') ? element.getAttribute('data-kt-daterangepicker-opens') : 'left'; + var range = element.getAttribute('data-kt-daterangepicker-range'); + + var cb = function(start, end) { + var current = moment(); + + if (display) { + if ( current.isSame(start, "day") && current.isSame(end, "day") ) { + display.innerHTML = start.format('D MMM YYYY'); + } else { + display.innerHTML = start.format('D MMM YYYY') + ' - ' + end.format('D MMM YYYY'); + } + } + } + + if ( range === "today" ) { + start = moment(); + end = moment(); + } + + $(element).daterangepicker({ + startDate: start, + endDate: end, + opens: attrOpens, + ranges: { + 'Today': [moment(), moment()], + 'Yesterday': [moment().subtract(1, 'days'), moment().subtract(1, 'days')], + 'Last 7 Days': [moment().subtract(6, 'days'), moment()], + 'Last 30 Days': [moment().subtract(29, 'days'), moment()], + 'This Month': [moment().startOf('month'), moment().endOf('month')], + 'Last Month': [moment().subtract(1, 'month').startOf('month'), moment().subtract(1, 'month').endOf('month')] + } + }, cb); + + cb(start, end); + + element.setAttribute("data-kt-initialized", "1"); + }); + } + + var createSelect2 = function () { + // Check if jQuery included + if (typeof jQuery == 'undefined') { + return; + } + + // Check if select2 included + if (typeof $.fn.select2 === 'undefined') { + return; + } + + var elements = [].slice.call(document.querySelectorAll('[data-control="select2"], [data-kt-select2="true"]')); + + elements.map(function (element) { + if (element.getAttribute("data-kt-initialized") === "1") { + return; + } + + var options = { + dir: document.body.getAttribute('direction') + }; + + if (element.getAttribute('data-hide-search') == 'true') { + options.minimumResultsForSearch = Infinity; + } + + $(element).select2(options); + + element.setAttribute("data-kt-initialized", "1"); + }); + + /* + * Hacky fix for a bug in select2 with jQuery 3.6.0's new nested-focus "protection" + * see: https://github.com/select2/select2/issues/5993 + * see: https://github.com/jquery/jquery/issues/4382 + * + * TODO: Recheck with the select2 GH issue and remove once this is fixed on their side + */ + + if (select2FocusFixInitialized === false) { + select2FocusFixInitialized = true; + + $(document).on('select2:open', function(e) { + var elements = document.querySelectorAll('.select2-container--open .select2-search__field'); + if (elements.length > 0) { + elements[elements.length - 1].focus(); + } + }); + } + } + + var createAutosize = function () { + if (typeof autosize === 'undefined') { + return; + } + + var inputs = [].slice.call(document.querySelectorAll('[data-kt-autosize="true"]')); + + inputs.map(function (input) { + if (input.getAttribute("data-kt-initialized") === "1") { + return; + } + + autosize(input); + + input.setAttribute("data-kt-initialized", "1"); + }); + } + + var createCountUp = function () { + if (typeof countUp === 'undefined') { + return; + } + + var elements = [].slice.call(document.querySelectorAll('[data-kt-countup="true"]:not(.counted)')); + + elements.map(function (element) { + if (KTUtil.isInViewport(element) && KTUtil.visible(element)) { + if (element.getAttribute("data-kt-initialized") === "1") { + return; + } + + var options = {}; + + var value = element.getAttribute('data-kt-countup-value'); + value = parseFloat(value.replace(/,/g, "")); + + if (element.hasAttribute('data-kt-countup-start-val')) { + options.startVal = parseFloat(element.getAttribute('data-kt-countup-start-val')); + } + + if (element.hasAttribute('data-kt-countup-duration')) { + options.duration = parseInt(element.getAttribute('data-kt-countup-duration')); + } + + if (element.hasAttribute('data-kt-countup-decimal-places')) { + options.decimalPlaces = parseInt(element.getAttribute('data-kt-countup-decimal-places')); + } + + if (element.hasAttribute('data-kt-countup-prefix')) { + options.prefix = element.getAttribute('data-kt-countup-prefix'); + } + + if (element.hasAttribute('data-kt-countup-separator')) { + options.separator = element.getAttribute('data-kt-countup-separator'); + } + + if (element.hasAttribute('data-kt-countup-suffix')) { + options.suffix = element.getAttribute('data-kt-countup-suffix'); + } + + var count = new countUp.CountUp(element, value, options); + + count.start(); + + element.classList.add('counted'); + + element.setAttribute("data-kt-initialized", "1"); + } + }); + } + + var createCountUpTabs = function () { + if (typeof countUp === 'undefined') { + return; + } + + if (countUpInitialized === false) { + // Initial call + createCountUp(); + + // Window scroll event handler + window.addEventListener('scroll', createCountUp); + } + + // Tabs shown event handler + var tabs = [].slice.call(document.querySelectorAll('[data-kt-countup-tabs="true"][data-bs-toggle="tab"]')); + tabs.map(function (tab) { + if (tab.getAttribute("data-kt-initialized") === "1") { + return; + } + + tab.addEventListener('shown.bs.tab', createCountUp); + + tab.setAttribute("data-kt-initialized", "1"); + }); + + countUpInitialized = true; + } + + var createTinySliders = function () { + if (typeof tns === 'undefined') { + return; + } + + // Sliders + const elements = Array.prototype.slice.call(document.querySelectorAll('[data-tns="true"]'), 0); + + if (!elements && elements.length === 0) { + return; + } + + elements.forEach(function (el) { + if (el.getAttribute("data-kt-initialized") === "1") { + return; + } + + initTinySlider(el); + + el.setAttribute("data-kt-initialized", "1"); + }); + } + + var initTinySlider = function (el) { + if (!el) { + return; + } + + const tnsOptions = {}; + + // Convert string boolean + const checkBool = function (val) { + if (val === 'true') { + return true; + } + if (val === 'false') { + return false; + } + return val; + }; + + // get extra options via data attributes + el.getAttributeNames().forEach(function (attrName) { + // more options; https://github.com/ganlanyuan/tiny-slider#options + if ((/^data-tns-.*/g).test(attrName)) { + let optionName = attrName.replace('data-tns-', '').toLowerCase().replace(/(?:[\s-])\w/g, function (match) { + return match.replace('-', '').toUpperCase(); + }); + + if (attrName === 'data-tns-responsive') { + // fix string with a valid json + const jsonStr = el.getAttribute(attrName).replace(/(\w+:)|(\w+ :)/g, function (matched) { + return '"' + matched.substring(0, matched.length - 1) + '":'; + }); + try { + // convert json string to object + tnsOptions[optionName] = JSON.parse(jsonStr); + } + catch (e) { + } + } + else { + tnsOptions[optionName] = checkBool(el.getAttribute(attrName)); + } + } + }); + + const opt = Object.assign({}, { + container: el, + slideBy: 'page', + autoplay: true, + center: true, + autoplayButtonOutput: false, + }, tnsOptions); + + if (el.closest('.tns')) { + KTUtil.addClass(el.closest('.tns'), 'tns-initiazlied'); + } + + return tns(opt); + } + + var initSmoothScroll = function () { + if (initialized === true) { + return; + } + + if (typeof SmoothScroll === 'undefined') { + return; + } + + new SmoothScroll('a[data-kt-scroll-toggle][href*="#"]', { + speed: 1000, + speedAsDuration: true, + offset: function (anchor, toggle) { + // Integer or Function returning an integer. How far to offset the scrolling anchor location in pixels + // This example is a function, but you could do something as simple as `offset: 25` + + // An example returning different values based on whether the clicked link was in the header nav or not + if (anchor.hasAttribute('data-kt-scroll-offset')) { + var val = KTUtil.getResponsiveValue(anchor.getAttribute('data-kt-scroll-offset')); + + return val; + } else { + return 0; + } + } + }); + } + + var initCard = function() { + // Toggle Handler + KTUtil.on(document.body, '[data-kt-card-action="remove"]', 'click', function (e) { + e.preventDefault(); + + const card = this.closest('.card'); + + if (!card) { + return; + } + + const confirmMessage = this.getAttribute("data-kt-card-confirm-message"); + const confirm = this.getAttribute("data-kt-card-confirm") === "true"; + + if (confirm) { + // Show message popup. For more info check the plugin's official documentation: https://sweetalert2.github.io/ + Swal.fire({ + text: confirmMessage ? confirmMessage : "Are you sure to remove ?", + icon: "warning", + buttonsStyling: false, + confirmButtonText: "Confirm", + denyButtonText: "Cancel", + customClass: { + confirmButton: "btn btn-primary", + denyButton: "btn btn-danger" + } + }).then(function (result) { + if (result.isConfirmed) { + card.remove(); + } + }); + } else { + card.remove(); + } + }); + } + + var initModal = function() { + var elements = Array.prototype.slice.call(document.querySelectorAll("[data-bs-stacked-modal]")); + + if (elements && elements.length > 0) { + elements.forEach((element) => { + if (element.getAttribute("data-kt-initialized") === "1") { + return; + } + + element.setAttribute("data-kt-initialized", "1"); + + element.addEventListener("click", function(e) { + e.preventDefault(); + + const modalEl = document.querySelector(this.getAttribute("data-bs-stacked-modal")); + + if (modalEl) { + const modal = new bootstrap.Modal(modalEl); + modal.show(); + } + }); + }); + } + } + + var initCheck = function () { + if (initialized === true) { + return; + } + + // Toggle Handler + KTUtil.on(document.body, '[data-kt-check="true"]', 'change', function (e) { + var check = this; + var targets = document.querySelectorAll(check.getAttribute('data-kt-check-target')); + + KTUtil.each(targets, function (target) { + if (target.type == 'checkbox') { + target.checked = check.checked; + } else { + target.classList.toggle('active'); + } + }); + }); + } + + var initBootstrapCollapse = function() { + if (initialized === true) { + return; + } + + KTUtil.on(document.body, '.collapsible[data-bs-toggle="collapse"]', 'click', function(e) { + if (this.classList.contains('collapsed')) { + this.classList.remove('active'); + this.blur(); + } else { + this.classList.add('active'); + } + + if (this.hasAttribute('data-kt-toggle-text')) { + var text = this.getAttribute('data-kt-toggle-text'); + var target = this.querySelector('[data-kt-toggle-text-target="true"]'); + var target = target ? target : this; + + this.setAttribute('data-kt-toggle-text', target.innerText); + target.innerText = text; + } + }); + } + + var initBootstrapRotate = function() { + if (initialized === true) { + return; + } + + KTUtil.on(document.body, '[data-kt-rotate="true"]', 'click', function(e) { + if (this.classList.contains('active')) { + this.classList.remove('active'); + this.blur(); + } else { + this.classList.add('active'); + } + }); + } + + var initLozad = function() { + // Check if lozad included + if (typeof lozad === 'undefined') { + return; + } + + const observer = lozad(); // lazy loads elements with default selector as '.lozad' + observer.observe(); + } + + var showPageLoading = function() { + document.body.classList.add('page-loading'); + document.body.setAttribute('data-kt-app-page-loading', "on"); + } + + var hidePageLoading = function() { + // CSS3 Transitions only after page load(.page-loading or .app-page-loading class added to body tag and remove with JS on page load) + document.body.classList.remove('page-loading'); + document.body.removeAttribute('data-kt-app-page-loading'); + } + + return { + init: function () { + initLozad(); + + initSmoothScroll(); + + initCard(); + + initModal(); + + initCheck(); + + initBootstrapCollapse(); + + initBootstrapRotate(); + + createBootstrapTooltips(); + + createBootstrapPopovers(); + + createBootstrapToasts(); + + createDateRangePickers(); + + createButtons(); + + createSelect2(); + + createCountUp(); + + createCountUpTabs(); + + createAutosize(); + + createTinySliders(); + + initialized = true; + }, + + initTinySlider: function(el) { + initTinySlider(el); + }, + + showPageLoading: function () { + showPageLoading(); + }, + + hidePageLoading: function () { + hidePageLoading(); + }, + + createBootstrapPopover: function(el, options) { + return createBootstrapPopover(el, options); + }, + + createBootstrapTooltip: function(el, options) { + return createBootstrapTooltip(el, options); + } + }; +}(); + +// Declare KTApp for Webpack support +if (typeof module !== 'undefined' && typeof module.exports !== 'undefined') { + module.exports = KTApp; +} \ No newline at end of file diff --git a/resources/_keenthemes/src/js/components/blockui.js b/resources/_keenthemes/src/js/components/blockui.js new file mode 100644 index 0000000..7ac1946 --- /dev/null +++ b/resources/_keenthemes/src/js/components/blockui.js @@ -0,0 +1,177 @@ +"use strict"; + +// Class definition +var KTBlockUI = function(element, options) { + ////////////////////////////// + // ** Private variables ** // + ////////////////////////////// + var the = this; + + if ( typeof element === "undefined" || element === null ) { + return; + } + + // Default options + var defaultOptions = { + zIndex: false, + overlayClass: '', + overflow: 'hidden', + message: '' + }; + + //////////////////////////// + // ** Private methods ** // + //////////////////////////// + + var _construct = function() { + if ( KTUtil.data(element).has('blockui') ) { + the = KTUtil.data(element).get('blockui'); + } else { + _init(); + } + } + + var _init = function() { + // Variables + the.options = KTUtil.deepExtend({}, defaultOptions, options); + the.element = element; + the.overlayElement = null; + the.blocked = false; + the.positionChanged = false; + the.overflowChanged = false; + + // Bind Instance + KTUtil.data(the.element).set('blockui', the); + } + + var _block = function() { + if ( KTEventHandler.trigger(the.element, 'kt.blockui.block', the) === false ) { + return; + } + + var isPage = (the.element.tagName === 'BODY'); + + var position = KTUtil.css(the.element, 'position'); + var overflow = KTUtil.css(the.element, 'overflow'); + var zIndex = isPage ? 10000 : 1; + + if (the.options.zIndex > 0) { + zIndex = the.options.zIndex; + } else { + if (KTUtil.css(the.element, 'z-index') != 'auto') { + zIndex = KTUtil.css(the.element, 'z-index'); + } + } + + the.element.classList.add('blockui'); + + if (position === "absolute" || position === "relative" || position === "fixed") { + KTUtil.css(the.element, 'position', 'relative'); + the.positionChanged = true; + } + + if (the.options.overflow === 'hidden' && overflow === 'visible') { + KTUtil.css(the.element, 'overflow', 'hidden'); + the.overflowChanged = true; + } + + the.overlayElement = document.createElement('DIV'); + the.overlayElement.setAttribute('class', 'blockui-overlay ' + the.options.overlayClass); + + the.overlayElement.innerHTML = the.options.message; + + KTUtil.css(the.overlayElement, 'z-index', zIndex); + + the.element.append(the.overlayElement); + the.blocked = true; + + KTEventHandler.trigger(the.element, 'kt.blockui.after.blocked', the) + } + + var _release = function() { + if ( KTEventHandler.trigger(the.element, 'kt.blockui.release', the) === false ) { + return; + } + + the.element.classList.add('blockui'); + + if (the.positionChanged) { + KTUtil.css(the.element, 'position', ''); + } + + if (the.overflowChanged) { + KTUtil.css(the.element, 'overflow', ''); + } + + if (the.overlayElement) { + KTUtil.remove(the.overlayElement); + } + + the.blocked = false; + + KTEventHandler.trigger(the.element, 'kt.blockui.released', the); + } + + var _isBlocked = function() { + return the.blocked; + } + + var _destroy = function() { + KTUtil.data(the.element).remove('blockui'); + } + + // Construct class + _construct(); + + /////////////////////// + // ** Public API ** // + /////////////////////// + + // Plugin API + the.block = function() { + _block(); + } + + the.release = function() { + _release(); + } + + the.isBlocked = function() { + return _isBlocked(); + } + + the.destroy = function() { + return _destroy(); + } + + // Event API + the.on = function(name, handler) { + return KTEventHandler.on(the.element, name, handler); + } + + the.one = function(name, handler) { + return KTEventHandler.one(the.element, name, handler); + } + + the.off = function(name, handlerId) { + return KTEventHandler.off(the.element, name, handlerId); + } + + the.trigger = function(name, event) { + return KTEventHandler.trigger(the.element, name, event, the, event); + } +}; + +// Static methods +KTBlockUI.getInstance = function(element) { + if (element !== null && KTUtil.data(element).has('blockui')) { + return KTUtil.data(element).get('blockui'); + } else { + return null; + } +} + +// Webpack support +if (typeof module !== 'undefined' && typeof module.exports !== 'undefined') { + module.exports = KTBlockUI; +} \ No newline at end of file diff --git a/resources/_keenthemes/src/js/components/cookie.js b/resources/_keenthemes/src/js/components/cookie.js new file mode 100644 index 0000000..6c62577 --- /dev/null +++ b/resources/_keenthemes/src/js/components/cookie.js @@ -0,0 +1,62 @@ +"use strict"; +// DOCS: https://javascript.info/cookie + +// Class definition +var KTCookie = function() { + return { + // returns the cookie with the given name, + // or undefined if not found + get: function(name) { + var matches = document.cookie.match(new RegExp( + "(?:^|; )" + name.replace(/([\.$?*|{}\(\)\[\]\\\/\+^])/g, '\\$1') + "=([^;]*)" + )); + + return matches ? decodeURIComponent(matches[1]) : null; + }, + + // Please note that a cookie value is encoded, + // so getCookie uses a built-in decodeURIComponent function to decode it. + set: function(name, value, options) { + if ( typeof options === "undefined" || options === null ) { + options = {}; + } + + options = Object.assign({}, { + path: '/' + }, options); + + if ( options.expires instanceof Date ) { + options.expires = options.expires.toUTCString(); + } + + var updatedCookie = encodeURIComponent(name) + "=" + encodeURIComponent(value); + + for ( var optionKey in options ) { + if ( options.hasOwnProperty(optionKey) === false ) { + continue; + } + + updatedCookie += "; " + optionKey; + var optionValue = options[optionKey]; + + if ( optionValue !== true ) { + updatedCookie += "=" + optionValue; + } + } + + document.cookie = updatedCookie; + }, + + // To remove a cookie, we can call it with a negative expiration date: + remove: function(name) { + this.set(name, "", { + 'max-age': -1 + }); + } + } +}(); + +// Webpack support +if (typeof module !== 'undefined' && typeof module.exports !== 'undefined') { + module.exports = KTCookie; +} diff --git a/resources/_keenthemes/src/js/components/dialer.js b/resources/_keenthemes/src/js/components/dialer.js new file mode 100644 index 0000000..e9620b1 --- /dev/null +++ b/resources/_keenthemes/src/js/components/dialer.js @@ -0,0 +1,289 @@ +"use strict"; + +// Class definition +var KTDialer = function(element, options) { + //////////////////////////// + // ** Private variables ** // + //////////////////////////// + var the = this; + + if (!element) { + return; + } + + // Default options + var defaultOptions = { + min: null, + max: null, + step: 1, + decimals: 0, + prefix: "", + suffix: "" + }; + + //////////////////////////// + // ** Private methods ** // + //////////////////////////// + + // Constructor + var _construct = function() { + if ( KTUtil.data(element).has('dialer') === true ) { + the = KTUtil.data(element).get('dialer'); + } else { + _init(); + } + } + + // Initialize + var _init = function() { + // Variables + the.options = KTUtil.deepExtend({}, defaultOptions, options); + + // Elements + the.element = element; + the.incElement = the.element.querySelector('[data-kt-dialer-control="increase"]'); + the.decElement = the.element.querySelector('[data-kt-dialer-control="decrease"]'); + the.inputElement = the.element.querySelector('input[type]'); + + // Set Values + if (_getOption('decimals')) { + the.options.decimals = parseInt(_getOption('decimals')); + } + + if (_getOption('prefix')) { + the.options.prefix = _getOption('prefix'); + } + + if (_getOption('suffix')) { + the.options.suffix = _getOption('suffix'); + } + + if (_getOption('step')) { + the.options.step = parseFloat(_getOption('step')); + } + + if (_getOption('min')) { + the.options.min = parseFloat(_getOption('min')); + } + + if (_getOption('max')) { + the.options.max = parseFloat(_getOption('max')); + } + + the.value = parseFloat(the.inputElement.value.replace(/[^\d.]/g, '')); + + _setValue(); + + // Event Handlers + _handlers(); + + // Bind Instance + KTUtil.data(the.element).set('dialer', the); + } + + // Handlers + var _handlers = function() { + KTUtil.addEvent(the.incElement, 'click', function(e) { + e.preventDefault(); + + _increase(); + }); + + KTUtil.addEvent(the.decElement, 'click', function(e) { + e.preventDefault(); + + _decrease(); + }); + + KTUtil.addEvent(the.inputElement, 'input', function(e) { + e.preventDefault(); + + _setValue(); + }); + } + + // Event handlers + var _increase = function() { + // Trigger "after.dialer" event + KTEventHandler.trigger(the.element, 'kt.dialer.increase', the); + + the.inputElement.value = the.value + the.options.step; + _setValue(); + + // Trigger "before.dialer" event + KTEventHandler.trigger(the.element, 'kt.dialer.increased', the); + + return the; + } + + var _decrease = function() { + // Trigger "after.dialer" event + KTEventHandler.trigger(the.element, 'kt.dialer.decrease', the); + + the.inputElement.value = the.value - the.options.step; + + _setValue(); + + // Trigger "before.dialer" event + KTEventHandler.trigger(the.element, 'kt.dialer.decreased', the); + + return the; + } + + // Set Input Value + var _setValue = function(value) { + // Trigger "after.dialer" event + KTEventHandler.trigger(the.element, 'kt.dialer.change', the); + + if (value !== undefined) { + the.value = value; + } else { + the.value = _parse(the.inputElement.value); + } + + if (the.options.min !== null && the.value < the.options.min) { + the.value = the.options.min; + } + + if (the.options.max !== null && the.value > the.options.max) { + the.value = the.options.max; + } + + the.inputElement.value = _format(the.value); + + // Trigger input change event + the.inputElement.dispatchEvent(new Event('change')); + + // Trigger "after.dialer" event + KTEventHandler.trigger(the.element, 'kt.dialer.changed', the); + } + + var _parse = function(val) { + val = val + .replace(/[^0-9.-]/g, '') // remove chars except number, hyphen, point. + .replace(/(\..*)\./g, '$1') // remove multiple points. + .replace(/(?!^)-/g, '') // remove middle hyphen. + .replace(/^0+(\d)/gm, '$1'); // remove multiple leading zeros. <-- I added this. + + val = parseFloat(val); + + if (isNaN(val)) { + val = 0; + } + + return val; + } + + // Format + var _format = function(val){ + return the.options.prefix + parseFloat(val).toFixed(the.options.decimals) + the.options.suffix; + } + + // Get option + var _getOption = function(name) { + if ( the.element.hasAttribute('data-kt-dialer-' + name) === true ) { + var attr = the.element.getAttribute('data-kt-dialer-' + name); + var value = attr; + + return value; + } else { + return null; + } + } + + var _destroy = function() { + KTUtil.data(the.element).remove('dialer'); + } + + // Construct class + _construct(); + + /////////////////////// + // ** Public API ** // + /////////////////////// + + // Plugin API + the.setMinValue = function(value) { + the.options.min = value; + } + + the.setMaxValue = function(value) { + the.options.max = value; + } + + the.setValue = function(value) { + _setValue(value); + } + + the.getValue = function() { + return the.inputElement.value; + } + + the.update = function() { + _setValue(); + } + + the.increase = function() { + return _increase(); + } + + the.decrease = function() { + return _decrease(); + } + + the.getElement = function() { + return the.element; + } + + the.destroy = function() { + return _destroy(); + } + + // Event API + the.on = function(name, handler) { + return KTEventHandler.on(the.element, name, handler); + } + + the.one = function(name, handler) { + return KTEventHandler.one(the.element, name, handler); + } + + the.off = function(name, handlerId) { + return KTEventHandler.off(the.element, name, handlerId); + } + + the.trigger = function(name, event) { + return KTEventHandler.trigger(the.element, name, event, the, event); + } +}; + +// Static methods +KTDialer.getInstance = function(element) { + if ( element !== null && KTUtil.data(element).has('dialer') ) { + return KTUtil.data(element).get('dialer'); + } else { + return null; + } +} + +// Create instances +KTDialer.createInstances = function(selector = '[data-kt-dialer="true"]') { + // Get instances + var elements = document.querySelectorAll(selector); + + if ( elements && elements.length > 0 ) { + for (var i = 0, len = elements.length; i < len; i++) { + new KTDialer(elements[i]); + } + } +} + +// Global initialization +KTDialer.init = function() { + KTDialer.createInstances(); +}; + +// Webpack support +if (typeof module !== 'undefined' && typeof module.exports !== 'undefined') { + module.exports = KTDialer; +} \ No newline at end of file diff --git a/resources/_keenthemes/src/js/components/drawer.js b/resources/_keenthemes/src/js/components/drawer.js new file mode 100644 index 0000000..860ce8b --- /dev/null +++ b/resources/_keenthemes/src/js/components/drawer.js @@ -0,0 +1,463 @@ +"use strict"; + +var KTDrawerHandlersInitialized = false; + +// Class definition +var KTDrawer = function(element, options) { + ////////////////////////////// + // ** Private variables ** // + ////////////////////////////// + var the = this; + + if ( typeof element === "undefined" || element === null ) { + return; + } + + // Default options + var defaultOptions = { + overlay: true, + direction: 'end', + baseClass: 'drawer', + overlayClass: 'drawer-overlay' + }; + + //////////////////////////// + // ** Private methods ** // + //////////////////////////// + + var _construct = function() { + if ( KTUtil.data(element).has('drawer') ) { + the = KTUtil.data(element).get('drawer'); + } else { + _init(); + } + } + + var _init = function() { + // Variables + the.options = KTUtil.deepExtend({}, defaultOptions, options); + the.uid = KTUtil.getUniqueId('drawer'); + the.element = element; + the.overlayElement = null; + the.name = the.element.getAttribute('data-kt-drawer-name'); + the.shown = false; + the.lastWidth; + the.toggleElement = null; + + // Set initialized + the.element.setAttribute('data-kt-drawer', 'true'); + + // Event Handlers + _handlers(); + + // Update Instance + _update(); + + // Bind Instance + KTUtil.data(the.element).set('drawer', the); + } + + var _handlers = function() { + var togglers = _getOption('toggle'); + var closers = _getOption('close'); + + if ( togglers !== null && togglers.length > 0 ) { + KTUtil.on(document.body, togglers, 'click', function(e) { + e.preventDefault(); + + the.toggleElement = this; + _toggle(); + }); + } + + if ( closers !== null && closers.length > 0 ) { + KTUtil.on(document.body, closers, 'click', function(e) { + e.preventDefault(); + + the.closeElement = this; + _hide(); + }); + } + } + + var _toggle = function() { + if ( KTEventHandler.trigger(the.element, 'kt.drawer.toggle', the) === false ) { + return; + } + + if ( the.shown === true ) { + _hide(); + } else { + _show(); + } + + KTEventHandler.trigger(the.element, 'kt.drawer.toggled', the); + } + + var _hide = function() { + if ( KTEventHandler.trigger(the.element, 'kt.drawer.hide', the) === false ) { + return; + } + + the.shown = false; + + _deleteOverlay(); + + document.body.removeAttribute('data-kt-drawer-' + the.name, 'on'); + document.body.removeAttribute('data-kt-drawer'); + + KTUtil.removeClass(the.element, the.options.baseClass + '-on'); + + if ( the.toggleElement !== null ) { + KTUtil.removeClass(the.toggleElement, 'active'); + } + + KTEventHandler.trigger(the.element, 'kt.drawer.after.hidden', the) === false + } + + var _show = function() { + if ( KTEventHandler.trigger(the.element, 'kt.drawer.show', the) === false ) { + return; + } + + the.shown = true; + + _createOverlay(); + document.body.setAttribute('data-kt-drawer-' + the.name, 'on'); + document.body.setAttribute('data-kt-drawer', 'on'); + + KTUtil.addClass(the.element, the.options.baseClass + '-on'); + + if ( the.toggleElement !== null ) { + KTUtil.addClass(the.toggleElement, 'active'); + } + + KTEventHandler.trigger(the.element, 'kt.drawer.shown', the); + } + + var _update = function() { + var width = _getWidth(); + var direction = _getOption('direction'); + + var top = _getOption('top'); + var bottom = _getOption('bottom'); + var start = _getOption('start'); + var end = _getOption('end'); + + // Reset state + if ( KTUtil.hasClass(the.element, the.options.baseClass + '-on') === true && String(document.body.getAttribute('data-kt-drawer-' + the.name + '-')) === 'on' ) { + the.shown = true; + } else { + the.shown = false; + } + + // Activate/deactivate + if ( _getOption('activate') === true ) { + KTUtil.addClass(the.element, the.options.baseClass); + KTUtil.addClass(the.element, the.options.baseClass + '-' + direction); + + KTUtil.css(the.element, 'width', width, true); + the.lastWidth = width; + + if (top) { + KTUtil.css(the.element, 'top', top); + } + + if (bottom) { + KTUtil.css(the.element, 'bottom', bottom); + } + + if (start) { + if (KTUtil.isRTL()) { + KTUtil.css(the.element, 'right', start); + } else { + KTUtil.css(the.element, 'left', start); + } + } + + if (end) { + if (KTUtil.isRTL()) { + KTUtil.css(the.element, 'left', end); + } else { + KTUtil.css(the.element, 'right', end); + } + } + } else { + KTUtil.removeClass(the.element, the.options.baseClass); + KTUtil.removeClass(the.element, the.options.baseClass + '-' + direction); + + KTUtil.css(the.element, 'width', ''); + + if (top) { + KTUtil.css(the.element, 'top', ''); + } + + if (bottom) { + KTUtil.css(the.element, 'bottom', ''); + } + + if (start) { + if (KTUtil.isRTL()) { + KTUtil.css(the.element, 'right', ''); + } else { + KTUtil.css(the.element, 'left', ''); + } + } + + if (end) { + if (KTUtil.isRTL()) { + KTUtil.css(the.element, 'left', ''); + } else { + KTUtil.css(the.element, 'right', ''); + } + } + + _hide(); + } + } + + var _createOverlay = function() { + if ( _getOption('overlay') === true ) { + the.overlayElement = document.createElement('DIV'); + + KTUtil.css(the.overlayElement, 'z-index', KTUtil.css(the.element, 'z-index') - 1); // update + + document.body.append(the.overlayElement); + + KTUtil.addClass(the.overlayElement, _getOption('overlay-class')); + + KTUtil.addEvent(the.overlayElement, 'click', function(e) { + e.preventDefault(); + + if ( _getOption('permanent') !== true ) { + _hide(); + } + }); + } + } + + var _deleteOverlay = function() { + if ( the.overlayElement !== null ) { + KTUtil.remove(the.overlayElement); + } + } + + var _getOption = function(name) { + if ( the.element.hasAttribute('data-kt-drawer-' + name) === true ) { + var attr = the.element.getAttribute('data-kt-drawer-' + name); + var value = KTUtil.getResponsiveValue(attr); + + if ( value !== null && String(value) === 'true' ) { + value = true; + } else if ( value !== null && String(value) === 'false' ) { + value = false; + } + + return value; + } else { + var optionName = KTUtil.snakeToCamel(name); + + if ( the.options[optionName] ) { + return KTUtil.getResponsiveValue(the.options[optionName]); + } else { + return null; + } + } + } + + var _getWidth = function() { + var width = _getOption('width'); + + if ( width === 'auto') { + width = KTUtil.css(the.element, 'width'); + } + + return width; + } + + var _destroy = function() { + KTUtil.data(the.element).remove('drawer'); + } + + // Construct class + _construct(); + + /////////////////////// + // ** Public API ** // + /////////////////////// + + // Plugin API + the.toggle = function() { + return _toggle(); + } + + the.show = function() { + return _show(); + } + + the.hide = function() { + return _hide(); + } + + the.isShown = function() { + return the.shown; + } + + the.update = function() { + _update(); + } + + the.goElement = function() { + return the.element; + } + + the.destroy = function() { + return _destroy(); + } + + // Event API + the.on = function(name, handler) { + return KTEventHandler.on(the.element, name, handler); + } + + the.one = function(name, handler) { + return KTEventHandler.one(the.element, name, handler); + } + + the.off = function(name, handlerId) { + return KTEventHandler.off(the.element, name, handlerId); + } + + the.trigger = function(name, event) { + return KTEventHandler.trigger(the.element, name, event, the, event); + } +}; + +// Static methods +KTDrawer.getInstance = function(element) { + if (element !== null && KTUtil.data(element).has('drawer')) { + return KTUtil.data(element).get('drawer'); + } else { + return null; + } +} + +// Hide all drawers and skip one if provided +KTDrawer.hideAll = function(skip = null, selector = '[data-kt-drawer="true"]') { + var items = document.querySelectorAll(selector); + + if (items && items.length > 0) { + for (var i = 0, len = items.length; i < len; i++) { + var item = items[i]; + var drawer = KTDrawer.getInstance(item); + + if (!drawer) { + continue; + } + + if ( skip ) { + if ( item !== skip ) { + drawer.hide(); + } + } else { + drawer.hide(); + } + } + } +} + +// Update all drawers +KTDrawer.updateAll = function(selector = '[data-kt-drawer="true"]') { + var items = document.querySelectorAll(selector); + + if (items && items.length > 0) { + for (var i = 0, len = items.length; i < len; i++) { + var drawer = KTDrawer.getInstance(items[i]); + + if (drawer) { + drawer.update(); + } + } + } +} + +// Create instances +KTDrawer.createInstances = function(selector = '[data-kt-drawer="true"]') { + // Initialize Menus + var elements = document.querySelectorAll(selector); + + if ( elements && elements.length > 0 ) { + for (var i = 0, len = elements.length; i < len; i++) { + new KTDrawer(elements[i]); + } + } +} + +// Toggle instances +KTDrawer.handleShow = function() { + // External drawer toggle handler + KTUtil.on(document.body, '[data-kt-drawer-show="true"][data-kt-drawer-target]', 'click', function(e) { + e.preventDefault(); + + var element = document.querySelector(this.getAttribute('data-kt-drawer-target')); + + if (element) { + KTDrawer.getInstance(element).show(); + } + }); +} + +// Dismiss instances +KTDrawer.handleDismiss = function() { + // External drawer toggle handler + KTUtil.on(document.body, '[data-kt-drawer-dismiss="true"]', 'click', function(e) { + var element = this.closest('[data-kt-drawer="true"]'); + + if (element) { + var drawer = KTDrawer.getInstance(element); + if (drawer.isShown()) { + drawer.hide(); + } + } + }); +} + +// Handle resize +KTDrawer.handleResize = function() { + // Window resize Handling + window.addEventListener('resize', function() { + var timer; + + KTUtil.throttle(timer, function() { + // Locate and update drawer instances on window resize + var elements = document.querySelectorAll('[data-kt-drawer="true"]'); + + if ( elements && elements.length > 0 ) { + for (var i = 0, len = elements.length; i < len; i++) { + var drawer = KTDrawer.getInstance(elements[i]); + if (drawer) { + drawer.update(); + } + } + } + }, 200); + }); +} + +// Global initialization +KTDrawer.init = function() { + KTDrawer.createInstances(); + + if (KTDrawerHandlersInitialized === false) { + KTDrawer.handleResize(); + KTDrawer.handleShow(); + KTDrawer.handleDismiss(); + + KTDrawerHandlersInitialized = true; + } +}; + +// Webpack support +if (typeof module !== 'undefined' && typeof module.exports !== 'undefined') { + module.exports = KTDrawer; +} \ No newline at end of file diff --git a/resources/_keenthemes/src/js/components/event-handler.js b/resources/_keenthemes/src/js/components/event-handler.js new file mode 100644 index 0000000..f827b38 --- /dev/null +++ b/resources/_keenthemes/src/js/components/event-handler.js @@ -0,0 +1,121 @@ +"use strict"; + +// Class definition +var KTEventHandler = function() { + //////////////////////////// + // ** Private Variables ** // + //////////////////////////// + var _handlers = {}; + + //////////////////////////// + // ** Private Methods ** // + //////////////////////////// + var _triggerEvent = function(element, name, target) { + var returnValue = true; + var eventValue; + + if ( KTUtil.data(element).has(name) === true ) { + var handlerIds = KTUtil.data(element).get(name); + var handlerId; + + for (var i = 0; i < handlerIds.length; i++) { + handlerId = handlerIds[i]; + + if ( _handlers[name] && _handlers[name][handlerId] ) { + var handler = _handlers[name][handlerId]; + var value; + + if ( handler.name === name ) { + if ( handler.one == true ) { + if ( handler.fired == false ) { + _handlers[name][handlerId].fired = true; + + eventValue = handler.callback.call(this, target); + } + } else { + eventValue = handler.callback.call(this, target); + } + + if ( eventValue === false ) { + returnValue = false; + } + } + } + } + } + + return returnValue; + } + + var _addEvent = function(element, name, callback, one) { + var handlerId = KTUtil.getUniqueId('event'); + var handlerIds = KTUtil.data(element).get(name); + + if ( !handlerIds ) { + handlerIds = []; + } + + handlerIds.push(handlerId); + + KTUtil.data(element).set(name, handlerIds); + + if ( !_handlers[name] ) { + _handlers[name] = {}; + } + + _handlers[name][handlerId] = { + name: name, + callback: callback, + one: one, + fired: false + }; + + return handlerId; + } + + var _removeEvent = function(element, name, handlerId) { + var handlerIds = KTUtil.data(element).get(name); + var index = handlerIds && handlerIds.indexOf(handlerId); + + if (index !== -1) { + handlerIds.splice(index, 1); + KTUtil.data(element).set(name, handlerIds); + } + + if (_handlers[name] && _handlers[name][handlerId]) { + delete _handlers[name][handlerId]; + } + } + + //////////////////////////// + // ** Public Methods ** // + //////////////////////////// + return { + trigger: function(element, name, target) { + return _triggerEvent(element, name, target); + }, + + on: function(element, name, handler) { + return _addEvent(element, name, handler); + }, + + one: function(element, name, handler) { + return _addEvent(element, name, handler, true); + }, + + off: function(element, name, handlerId) { + return _removeEvent(element, name, handlerId); + }, + + debug: function() { + for (var b in _handlers) { + if ( _handlers.hasOwnProperty(b) ) console.log(b); + } + } + } +}(); + +// Webpack support +if (typeof module !== 'undefined' && typeof module.exports !== 'undefined') { + module.exports = KTEventHandler; +} diff --git a/resources/_keenthemes/src/js/components/feedback.js b/resources/_keenthemes/src/js/components/feedback.js new file mode 100644 index 0000000..00b7924 --- /dev/null +++ b/resources/_keenthemes/src/js/components/feedback.js @@ -0,0 +1,163 @@ +"use strict"; + +// Class definition +var KTFeedback = function(options) { + //////////////////////////// + // ** Private Variables ** // + //////////////////////////// + var the = this; + + // Default options + var defaultOptions = { + 'width' : 100, + 'placement' : 'top-center', + 'content' : '', + 'type': 'popup' + }; + + //////////////////////////// + // ** Private methods ** // + //////////////////////////// + + var _construct = function() { + _init(); + } + + var _init = function() { + // Variables + the.options = KTUtil.deepExtend({}, defaultOptions, options); + the.uid = KTUtil.getUniqueId('feedback'); + the.element; + the.shown = false; + + // Event Handlers + _handlers(); + + // Bind Instance + KTUtil.data(the.element).set('feedback', the); + } + + var _handlers = function() { + KTUtil.addEvent(the.element, 'click', function(e) { + e.preventDefault(); + + _go(); + }); + } + + var _show = function() { + if ( KTEventHandler.trigger(the.element, 'kt.feedback.show', the) === false ) { + return; + } + + if ( the.options.type === 'popup') { + _showPopup(); + } + + KTEventHandler.trigger(the.element, 'kt.feedback.shown', the); + + return the; + } + + var _hide = function() { + if ( KTEventHandler.trigger(the.element, 'kt.feedback.hide', the) === false ) { + return; + } + + if ( the.options.type === 'popup') { + _hidePopup(); + } + + the.shown = false; + + KTEventHandler.trigger(the.element, 'kt.feedback.hidden', the); + + return the; + } + + var _showPopup = function() { + the.element = document.createElement("DIV"); + + KTUtil.addClass(the.element, 'feedback feedback-popup'); + KTUtil.setHTML(the.element, the.options.content); + + if (the.options.placement == 'top-center') { + _setPopupTopCenterPosition(); + } + + document.body.appendChild(the.element); + + KTUtil.addClass(the.element, 'feedback-shown'); + + the.shown = true; + } + + var _setPopupTopCenterPosition = function() { + var width = KTUtil.getResponsiveValue(the.options.width); + var height = KTUtil.css(the.element, 'height'); + + KTUtil.addClass(the.element, 'feedback-top-center'); + + KTUtil.css(the.element, 'width', width); + KTUtil.css(the.element, 'left', '50%'); + KTUtil.css(the.element, 'top', '-' + height); + } + + var _hidePopup = function() { + the.element.remove(); + } + + var _destroy = function() { + KTUtil.data(the.element).remove('feedback'); + } + + // Construct class + _construct(); + + /////////////////////// + // ** Public API ** // + /////////////////////// + + // Plugin API + the.show = function() { + return _show(); + } + + the.hide = function() { + return _hide(); + } + + the.isShown = function() { + return the.shown; + } + + the.getElement = function() { + return the.element; + } + + the.destroy = function() { + return _destroy(); + } + + // Event API + the.on = function(name, handler) { + return KTEventHandler.on(the.element, name, handler); + } + + the.one = function(name, handler) { + return KTEventHandler.one(the.element, name, handler); + } + + the.off = function(name, handlerId) { + return KTEventHandler.off(the.element, name, handlerId); + } + + the.trigger = function(name, event) { + return KTEventHandler.trigger(the.element, name, event, the, event); + } +}; + +// Webpack support +if (typeof module !== 'undefined' && typeof module.exports !== 'undefined') { + module.exports = KTFeedback; +} diff --git a/resources/_keenthemes/src/js/components/image-input.js b/resources/_keenthemes/src/js/components/image-input.js new file mode 100644 index 0000000..99667a8 --- /dev/null +++ b/resources/_keenthemes/src/js/components/image-input.js @@ -0,0 +1,209 @@ +"use strict"; + +// Class definition +var KTImageInput = function(element, options) { + //////////////////////////// + // ** Private Variables ** // + //////////////////////////// + var the = this; + + if ( typeof element === "undefined" || element === null ) { + return; + } + + // Default Options + var defaultOptions = { + + }; + + //////////////////////////// + // ** Private Methods ** // + //////////////////////////// + + var _construct = function() { + if ( KTUtil.data(element).has('image-input') === true ) { + the = KTUtil.data(element).get('image-input'); + } else { + _init(); + } + } + + var _init = function() { + // Variables + the.options = KTUtil.deepExtend({}, defaultOptions, options); + the.uid = KTUtil.getUniqueId('image-input'); + + // Elements + the.element = element; + the.inputElement = KTUtil.find(element, 'input[type="file"]'); + the.wrapperElement = KTUtil.find(element, '.image-input-wrapper'); + the.cancelElement = KTUtil.find(element, '[data-kt-image-input-action="cancel"]'); + the.removeElement = KTUtil.find(element, '[data-kt-image-input-action="remove"]'); + the.hiddenElement = KTUtil.find(element, 'input[type="hidden"]'); + the.src = KTUtil.css(the.wrapperElement, 'backgroundImage'); + + // Set initialized + the.element.setAttribute('data-kt-image-input', 'true'); + + // Event Handlers + _handlers(); + + // Bind Instance + KTUtil.data(the.element).set('image-input', the); + } + + // Init Event Handlers + var _handlers = function() { + KTUtil.addEvent(the.inputElement, 'change', _change); + KTUtil.addEvent(the.cancelElement, 'click', _cancel); + KTUtil.addEvent(the.removeElement, 'click', _remove); + } + + // Event Handlers + var _change = function(e) { + e.preventDefault(); + + if ( the.inputElement !== null && the.inputElement.files && the.inputElement.files[0] ) { + // Fire change event + if ( KTEventHandler.trigger(the.element, 'kt.imageinput.change', the) === false ) { + return; + } + + var reader = new FileReader(); + + reader.onload = function(e) { + KTUtil.css(the.wrapperElement, 'background-image', 'url('+ e.target.result +')'); + } + + reader.readAsDataURL(the.inputElement.files[0]); + + the.element.classList.add('image-input-changed'); + the.element.classList.remove('image-input-empty'); + + // Fire removed event + KTEventHandler.trigger(the.element, 'kt.imageinput.changed', the); + } + } + + var _cancel = function(e) { + e.preventDefault(); + + // Fire cancel event + if ( KTEventHandler.trigger(the.element, 'kt.imageinput.cancel', the) === false ) { + return; + } + + the.element.classList.remove('image-input-changed'); + the.element.classList.remove('image-input-empty'); + + if (the.src === 'none') { + KTUtil.css(the.wrapperElement, 'background-image', ''); + the.element.classList.add('image-input-empty'); + } else { + KTUtil.css(the.wrapperElement, 'background-image', the.src); + } + + the.inputElement.value = ""; + + if ( the.hiddenElement !== null ) { + the.hiddenElement.value = "0"; + } + + // Fire canceled event + KTEventHandler.trigger(the.element, 'kt.imageinput.canceled', the); + } + + var _remove = function(e) { + e.preventDefault(); + + // Fire remove event + if ( KTEventHandler.trigger(the.element, 'kt.imageinput.remove', the) === false ) { + return; + } + + the.element.classList.remove('image-input-changed'); + the.element.classList.add('image-input-empty'); + + KTUtil.css(the.wrapperElement, 'background-image', "none"); + the.inputElement.value = ""; + + if ( the.hiddenElement !== null ) { + the.hiddenElement.value = "1"; + } + + // Fire removed event + KTEventHandler.trigger(the.element, 'kt.imageinput.removed', the); + } + + var _destroy = function() { + KTUtil.data(the.element).remove('image-input'); + } + + // Construct Class + _construct(); + + /////////////////////// + // ** Public API ** // + /////////////////////// + + // Plugin API + the.getInputElement = function() { + return the.inputElement; + } + + the.getElement = function() { + return the.element; + } + + the.destroy = function() { + return _destroy(); + } + + // Event API + the.on = function(name, handler) { + return KTEventHandler.on(the.element, name, handler); + } + + the.one = function(name, handler) { + return KTEventHandler.one(the.element, name, handler); + } + + the.off = function(name, handlerId) { + return KTEventHandler.off(the.element, name, handlerId); + } + + the.trigger = function(name, event) { + return KTEventHandler.trigger(the.element, name, event, the, event); + } +}; + +// Static methods +KTImageInput.getInstance = function(element) { + if ( element !== null && KTUtil.data(element).has('image-input') ) { + return KTUtil.data(element).get('image-input'); + } else { + return null; + } +} + +// Create instances +KTImageInput.createInstances = function(selector = '[data-kt-image-input]') { + // Initialize Menus + var elements = document.querySelectorAll(selector); + + if ( elements && elements.length > 0 ) { + for (var i = 0, len = elements.length; i < len; i++) { + new KTImageInput(elements[i]); + } + } +} + +// Global initialization +KTImageInput.init = function() { + KTImageInput.createInstances(); +}; + +// Webpack Support +if (typeof module !== 'undefined' && typeof module.exports !== 'undefined') { + module.exports = KTImageInput; +} diff --git a/resources/_keenthemes/src/js/components/menu.js b/resources/_keenthemes/src/js/components/menu.js new file mode 100644 index 0000000..69a5e19 --- /dev/null +++ b/resources/_keenthemes/src/js/components/menu.js @@ -0,0 +1,1134 @@ +"use strict"; + +var KTMenuHandlersInitialized = false; + +// Class definition +var KTMenu = function(element, options) { + //////////////////////////// + // ** Private Variables ** // + //////////////////////////// + var the = this; + + if ( typeof element === "undefined" || element === null ) { + return; + } + + // Default Options + var defaultOptions = { + dropdown: { + hoverTimeout: 200, + zindex: 107 + }, + + accordion: { + slideSpeed: 250, + expand: false + } + }; + + //////////////////////////// + // ** Private Methods ** // + //////////////////////////// + + var _construct = function() { + if ( KTUtil.data(element).has('menu') === true ) { + the = KTUtil.data(element).get('menu'); + } else { + _init(); + } + } + + var _init = function() { + the.options = KTUtil.deepExtend({}, defaultOptions, options); + the.uid = KTUtil.getUniqueId('menu'); + the.element = element; + the.triggerElement; + the.disabled = false; + + // Set initialized + the.element.setAttribute('data-kt-menu', 'true'); + + _setTriggerElement(); + _update(); + + KTUtil.data(the.element).set('menu', the); + } + + var _destroy = function() { // todo + + } + + // Event Handlers + // Toggle handler + var _click = function(element, e) { + e.preventDefault(); + + if (the.disabled === true) { + return; + } + + var item = _getItemElement(element); + + if ( _getOptionFromElementAttribute(item, 'trigger') !== 'click' ) { + return; + } + + if ( _getOptionFromElementAttribute(item, 'toggle') === false ) { + _show(item); + } else { + _toggle(item); + } + } + + // Link handler + var _link = function(element, e) { + if (the.disabled === true) { + return; + } + + if ( KTEventHandler.trigger(the.element, 'kt.menu.link.click', element) === false ) { + return; + } + + // Dismiss all shown dropdowns + KTMenu.hideDropdowns(); + + KTEventHandler.trigger(the.element, 'kt.menu.link.clicked', element); + } + + // Dismiss handler + var _dismiss = function(element, e) { + var item = _getItemElement(element); + var items = _getItemChildElements(item); + + if ( item !== null && _getItemSubType(item) === 'dropdown') { + _hide(item); // hide items dropdown + // Hide all child elements as well + + if ( items.length > 0 ) { + for (var i = 0, len = items.length; i < len; i++) { + if ( items[i] !== null && _getItemSubType(items[i]) === 'dropdown') { + _hide(tems[i]); + } + } + } + } + } + + // Mouseover handle + var _mouseover = function(element, e) { + var item = _getItemElement(element); + + if (the.disabled === true) { + return; + } + + if ( item === null ) { + return; + } + + if ( _getOptionFromElementAttribute(item, 'trigger') !== 'hover' ) { + return; + } + + if ( KTUtil.data(item).get('hover') === '1' ) { + clearTimeout(KTUtil.data(item).get('timeout')); + KTUtil.data(item).remove('hover'); + KTUtil.data(item).remove('timeout'); + } + + _show(item); + } + + // Mouseout handle + var _mouseout = function(element, e) { + var item = _getItemElement(element); + + if (the.disabled === true) { + return; + } + + if ( item === null ) { + return; + } + + if ( _getOptionFromElementAttribute(item, 'trigger') !== 'hover' ) { + return; + } + + var timeout = setTimeout(function() { + if ( KTUtil.data(item).get('hover') === '1' ) { + _hide(item); + } + }, the.options.dropdown.hoverTimeout); + + KTUtil.data(item).set('hover', '1'); + KTUtil.data(item).set('timeout', timeout); + } + + // Toggle item sub + var _toggle = function(item) { + if ( !item ) { + item = the.triggerElement; + } + + if ( _isItemSubShown(item) === true ) { + _hide(item); + } else { + _show(item); + } + } + + // Show item sub + var _show = function(item) { + if ( !item ) { + item = the.triggerElement; + } + + if ( _isItemSubShown(item) === true ) { + return; + } + + if ( _getItemSubType(item) === 'dropdown' ) { + _showDropdown(item); // // show current dropdown + } else if ( _getItemSubType(item) === 'accordion' ) { + _showAccordion(item); + } + + // Remember last submenu type + KTUtil.data(item).set('type', _getItemSubType(item)); // updated + } + + // Hide item sub + var _hide = function(item) { + if ( !item ) { + item = the.triggerElement; + } + + if ( _isItemSubShown(item) === false ) { + return; + } + + if ( _getItemSubType(item) === 'dropdown' ) { + _hideDropdown(item); + } else if ( _getItemSubType(item) === 'accordion' ) { + _hideAccordion(item); + } + } + + // Reset item state classes if item sub type changed + var _reset = function(item) { + if ( _hasItemSub(item) === false ) { + return; + } + + var sub = _getItemSubElement(item); + + // Reset sub state if sub type is changed during the window resize + if ( KTUtil.data(item).has('type') && KTUtil.data(item).get('type') !== _getItemSubType(item) ) { // updated + KTUtil.removeClass(item, 'hover'); + KTUtil.removeClass(item, 'show'); + KTUtil.removeClass(sub, 'show'); + } // updated + } + + // Update all item state classes if item sub type changed + var _update = function() { + var items = the.element.querySelectorAll('.menu-item[data-kt-menu-trigger]'); + + if ( items && items.length > 0 ) { + for (var i = 0, len = items.length; i < len; i++) { + _reset(items[i]); + } + } + } + + // Set external trigger element + var _setTriggerElement = function() { + var target = document.querySelector('[data-kt-menu-target="#' + the.element.getAttribute('id') + '"]'); + + if ( target !== null ) { + the.triggerElement = target; + } else if ( the.element.closest('[data-kt-menu-trigger]') ) { + the.triggerElement = the.element.closest('[data-kt-menu-trigger]'); + } else if ( the.element.parentNode && KTUtil.child(the.element.parentNode, '[data-kt-menu-trigger]')) { + the.triggerElement = KTUtil.child(the.element.parentNode, '[data-kt-menu-trigger]'); + } + + if ( the.triggerElement ) { + KTUtil.data(the.triggerElement).set('menu', the); + } + } + + // Test if menu has external trigger element + var _isTriggerElement = function(item) { + return ( the.triggerElement === item ) ? true : false; + } + + // Test if item's sub is shown + var _isItemSubShown = function(item) { + var sub = _getItemSubElement(item); + + if ( sub !== null ) { + if ( _getItemSubType(item) === 'dropdown' ) { + if ( KTUtil.hasClass(sub, 'show') === true && sub.hasAttribute('data-popper-placement') === true ) { + return true; + } else { + return false; + } + } else { + return KTUtil.hasClass(item, 'show'); + } + } else { + return false; + } + } + + // Test if item dropdown is permanent + var _isItemDropdownPermanent = function(item) { + return _getOptionFromElementAttribute(item, 'permanent') === true ? true : false; + } + + // Test if item's parent is shown + var _isItemParentShown = function(item) { + return KTUtil.parents(item, '.menu-item.show').length > 0; + } + + // Test of it is item sub element + var _isItemSubElement = function(item) { + return KTUtil.hasClass(item, 'menu-sub'); + } + + // Test if item has sub + var _hasItemSub = function(item) { + return (KTUtil.hasClass(item, 'menu-item') && item.hasAttribute('data-kt-menu-trigger')); + } + + // Get link element + var _getItemLinkElement = function(item) { + return KTUtil.child(item, '.menu-link'); + } + + // Get toggle element + var _getItemToggleElement = function(item) { + if ( the.triggerElement ) { + return the.triggerElement; + } else { + return _getItemLinkElement(item); + } + } + + // Get item sub element + var _getItemSubElement = function(item) { + if ( _isTriggerElement(item) === true ) { + return the.element; + } if ( item.classList.contains('menu-sub') === true ) { + return item; + } else if ( KTUtil.data(item).has('sub') ) { + return KTUtil.data(item).get('sub'); + } else { + return KTUtil.child(item, '.menu-sub'); + } + } + + // Get item sub type + var _getItemSubType = function(element) { + var sub = _getItemSubElement(element); + + if ( sub && parseInt(KTUtil.css(sub, 'z-index')) > 0 ) { + return "dropdown"; + } else { + return "accordion"; + } + } + + // Get item element + var _getItemElement = function(element) { + var item, sub; + + // Element is the external trigger element + if (_isTriggerElement(element) ) { + return element; + } + + // Element has item toggler attribute + if ( element.hasAttribute('data-kt-menu-trigger') ) { + return element; + } + + // Element has item DOM reference in it's data storage + if ( KTUtil.data(element).has('item') ) { + return KTUtil.data(element).get('item'); + } + + // Item is parent of element + if ( (item = element.closest('.menu-item[data-kt-menu-trigger]')) ) { + return item; + } + + // Element's parent has item DOM reference in it's data storage + if ( (sub = element.closest('.menu-sub')) ) { + if ( KTUtil.data(sub).has('item') === true ) { + return KTUtil.data(sub).get('item') + } + } + } + + // Get item parent element + var _getItemParentElement = function(item) { + var sub = item.closest('.menu-sub'); + var parentItem; + + if ( sub && KTUtil.data(sub).has('item') ) { + return KTUtil.data(sub).get('item'); + } + + if ( sub && (parentItem = sub.closest('.menu-item[data-kt-menu-trigger]')) ) { + return parentItem; + } + + return null; + } + + // Get item parent elements + var _getItemParentElements = function(item) { + var parents = []; + var parent; + var i = 0; + + do { + parent = _getItemParentElement(item); + + if ( parent ) { + parents.push(parent); + item = parent; + } + + i++; + } while (parent !== null && i < 20); + + if ( the.triggerElement ) { + parents.unshift(the.triggerElement); + } + + return parents; + } + + // Get item child element + var _getItemChildElement = function(item) { + var selector = item; + var element; + + if ( KTUtil.data(item).get('sub') ) { + selector = KTUtil.data(item).get('sub'); + } + + if ( selector !== null ) { + //element = selector.querySelector('.show.menu-item[data-kt-menu-trigger]'); + element = selector.querySelector('.menu-item[data-kt-menu-trigger]'); + + if ( element ) { + return element; + } else { + return null; + } + } else { + return null; + } + } + + // Get item child elements + var _getItemChildElements = function(item) { + var children = []; + var child; + var i = 0; + + do { + child = _getItemChildElement(item); + + if ( child ) { + children.push(child); + item = child; + } + + i++; + } while (child !== null && i < 20); + + return children; + } + + // Show item dropdown + var _showDropdown = function(item) { + // Handle dropdown show event + if ( KTEventHandler.trigger(the.element, 'kt.menu.dropdown.show', item) === false ) { + return; + } + + // Hide all currently shown dropdowns except current one + KTMenu.hideDropdowns(item); + + var toggle = _isTriggerElement(item) ? item : _getItemLinkElement(item); + var sub = _getItemSubElement(item); + + var width = _getOptionFromElementAttribute(item, 'width'); + var height = _getOptionFromElementAttribute(item, 'height'); + + var zindex = the.options.dropdown.zindex; // update + var parentZindex = KTUtil.getHighestZindex(item); // update + + // Apply a new z-index if dropdown's toggle element or it's parent has greater z-index // update + if ( parentZindex !== null && parentZindex >= zindex ) { + zindex = parentZindex + 1; + } + + if ( zindex > 0 ) { + KTUtil.css(sub, 'z-index', zindex); + } + + if ( width !== null ) { + KTUtil.css(sub, 'width', width); + } + + if ( height !== null ) { + KTUtil.css(sub, 'height', height); + } + + KTUtil.css(sub, 'display', ''); + KTUtil.css(sub, 'overflow', ''); + + // Init popper(new) + _initDropdownPopper(item, sub); + + KTUtil.addClass(item, 'show'); + KTUtil.addClass(item, 'menu-dropdown'); + KTUtil.addClass(sub, 'show'); + + // Append the sub the the root of the menu + if ( _getOptionFromElementAttribute(item, 'overflow') === true ) { + document.body.appendChild(sub); + KTUtil.data(item).set('sub', sub); + KTUtil.data(sub).set('item', item); + KTUtil.data(sub).set('menu', the); + } else { + KTUtil.data(sub).set('item', item); + } + + // Handle dropdown shown event + KTEventHandler.trigger(the.element, 'kt.menu.dropdown.shown', item); + } + + // Hide item dropdown + var _hideDropdown = function(item) { + // Handle dropdown hide event + if ( KTEventHandler.trigger(the.element, 'kt.menu.dropdown.hide', item) === false ) { + return; + } + + var sub = _getItemSubElement(item); + + KTUtil.css(sub, 'z-index', ''); + KTUtil.css(sub, 'width', ''); + KTUtil.css(sub, 'height', ''); + + KTUtil.removeClass(item, 'show'); + KTUtil.removeClass(item, 'menu-dropdown'); + KTUtil.removeClass(sub, 'show'); + + // Append the sub back to it's parent + if ( _getOptionFromElementAttribute(item, 'overflow') === true ) { + if (item.classList.contains('menu-item')) { + item.appendChild(sub); + } else { + KTUtil.insertAfter(the.element, item); + } + + KTUtil.data(item).remove('sub'); + KTUtil.data(sub).remove('item'); + KTUtil.data(sub).remove('menu'); + } + + // Destroy popper(new) + _destroyDropdownPopper(item); + + // Handle dropdown hidden event + KTEventHandler.trigger(the.element, 'kt.menu.dropdown.hidden', item); + } + + // Init dropdown popper(new) + var _initDropdownPopper = function(item, sub) { + // Setup popper instance + var reference; + var attach = _getOptionFromElementAttribute(item, 'attach'); + + if ( attach ) { + if ( attach === 'parent') { + reference = item.parentNode; + } else { + reference = document.querySelector(attach); + } + } else { + reference = item; + } + + var popper = Popper.createPopper(reference, sub, _getDropdownPopperConfig(item)); + KTUtil.data(item).set('popper', popper); + } + + // Destroy dropdown popper(new) + var _destroyDropdownPopper = function(item) { + if ( KTUtil.data(item).has('popper') === true ) { + KTUtil.data(item).get('popper').destroy(); + KTUtil.data(item).remove('popper'); + } + } + + // Prepare popper config for dropdown(see: https://popper.js.org/docs/v2/) + var _getDropdownPopperConfig = function(item) { + // Placement + var placement = _getOptionFromElementAttribute(item, 'placement'); + if (!placement) { + placement = 'right'; + } + + // Offset + var offsetValue = _getOptionFromElementAttribute(item, 'offset'); + var offset = offsetValue ? offsetValue.split(",") : []; + + if (offset.length === 2) { + offset[0] = parseInt(offset[0]); + offset[1] = parseInt(offset[1]); + } + + // Strategy + var strategy = _getOptionFromElementAttribute(item, 'overflow') === true ? 'absolute' : 'fixed'; + + var altAxis = _getOptionFromElementAttribute(item, 'flip') !== false ? true : false; + + var popperConfig = { + placement: placement, + strategy: strategy, + modifiers: [{ + name: 'offset', + options: { + offset: offset + } + }, { + name: 'preventOverflow', + options: { + altAxis: altAxis + } + }, { + name: 'flip', + options: { + flipVariations: false + } + }] + }; + + return popperConfig; + } + + // Show item accordion + var _showAccordion = function(item) { + if ( KTEventHandler.trigger(the.element, 'kt.menu.accordion.show', item) === false ) { + return; + } + + var sub = _getItemSubElement(item); + var expand = the.options.accordion.expand; + + if (_getOptionFromElementAttribute(item, 'expand') === true) { + expand = true; + } else if (_getOptionFromElementAttribute(item, 'expand') === false) { + expand = false; + } else if (_getOptionFromElementAttribute(the.element, 'expand') === true) { + expand = true; + } + + if ( expand === false ) { + _hideAccordions(item); + } + + if ( KTUtil.data(item).has('popper') === true ) { + _hideDropdown(item); + } + + KTUtil.addClass(item, 'hover'); + + KTUtil.addClass(item, 'showing'); + + KTUtil.slideDown(sub, the.options.accordion.slideSpeed, function() { + KTUtil.removeClass(item, 'showing'); + KTUtil.addClass(item, 'show'); + KTUtil.addClass(sub, 'show'); + + KTEventHandler.trigger(the.element, 'kt.menu.accordion.shown', item); + }); + } + + // Hide item accordion + var _hideAccordion = function(item) { + if ( KTEventHandler.trigger(the.element, 'kt.menu.accordion.hide', item) === false ) { + return; + } + + var sub = _getItemSubElement(item); + + KTUtil.addClass(item, 'hiding'); + + KTUtil.slideUp(sub, the.options.accordion.slideSpeed, function() { + KTUtil.removeClass(item, 'hiding'); + KTUtil.removeClass(item, 'show'); + KTUtil.removeClass(sub, 'show'); + + KTUtil.removeClass(item, 'hover'); // update + + KTEventHandler.trigger(the.element, 'kt.menu.accordion.hidden', item); + }); + } + + var _setActiveLink = function(link) { + var item = _getItemElement(link); + var parentItems = _getItemParentElements(item); + var parentTabPane = link.closest('.tab-pane'); + + var activeLinks = [].slice.call(the.element.querySelectorAll('.menu-link.active')); + var activeParentItems = [].slice.call(the.element.querySelectorAll('.menu-item.here, .menu-item.show')); + + if (_getItemSubType(item) === "accordion") { + _showAccordion(item); + } else { + item.classList.add("here"); + } + + if ( parentItems && parentItems.length > 0 ) { + for (var i = 0, len = parentItems.length; i < len; i++) { + var parentItem = parentItems[i]; + + if (_getItemSubType(parentItem) === "accordion") { + _showAccordion(parentItem); + } else { + parentItem.classList.add("here"); + } + } + } + + activeLinks.map(function (activeLink) { + activeLink.classList.remove("active"); + }); + + activeParentItems.map(function (activeParentItem) { + if (activeParentItem.contains(item) === false) { + activeParentItem.classList.remove("here"); + activeParentItem.classList.remove("show"); + } + }); + + // Handle tab + if (parentTabPane && bootstrap.Tab) { + var tabEl = the.element.querySelector('[data-bs-target="#' + parentTabPane.getAttribute("id") + '"]'); + var tab = new bootstrap.Tab(tabEl); + + if (tab) { + tab.show(); + } + } + + link.classList.add("active"); + } + + var _getLinkByAttribute = function(value, name = "href") { + var link = the.element.querySelector('a[' + name + '="' + value + '"]'); + + if (link) { + return link; + } else { + null; + } + } + + // Hide all shown accordions of item + var _hideAccordions = function(item) { + var itemsToHide = KTUtil.findAll(the.element, '.show[data-kt-menu-trigger]'); + var itemToHide; + + if (itemsToHide && itemsToHide.length > 0) { + for (var i = 0, len = itemsToHide.length; i < len; i++) { + itemToHide = itemsToHide[i]; + + if ( _getItemSubType(itemToHide) === 'accordion' && itemToHide !== item && item.contains(itemToHide) === false && itemToHide.contains(item) === false ) { + _hideAccordion(itemToHide); + } + } + } + } + + // Get item option(through html attributes) + var _getOptionFromElementAttribute = function(item, name) { + var attr; + var value = null; + + if ( item && item.hasAttribute('data-kt-menu-' + name) ) { + attr = item.getAttribute('data-kt-menu-' + name); + value = KTUtil.getResponsiveValue(attr); + + if ( value !== null && String(value) === 'true' ) { + value = true; + } else if ( value !== null && String(value) === 'false' ) { + value = false; + } + } + + return value; + } + + var _destroy = function() { + KTUtil.data(the.element).remove('menu'); + } + + // Construct Class + _construct(); + + /////////////////////// + // ** Public API ** // + /////////////////////// + + // Event Handlers + the.click = function(element, e) { + return _click(element, e); + } + + the.link = function(element, e) { + return _link(element, e); + } + + the.dismiss = function(element, e) { + return _dismiss(element, e); + } + + the.mouseover = function(element, e) { + return _mouseover(element, e); + } + + the.mouseout = function(element, e) { + return _mouseout(element, e); + } + + // General Methods + the.getItemTriggerType = function(item) { + return _getOptionFromElementAttribute(item, 'trigger'); + } + + the.getItemSubType = function(element) { + return _getItemSubType(element); + } + + the.show = function(item) { + return _show(item); + } + + the.hide = function(item) { + return _hide(item); + } + + the.toggle = function(item) { + return _toggle(item); + } + + the.reset = function(item) { + return _reset(item); + } + + the.update = function() { + return _update(); + } + + the.getElement = function() { + return the.element; + } + + the.setActiveLink = function(link) { + return _setActiveLink(link); + } + + the.getLinkByAttribute = function(value, name = "href") { + return _getLinkByAttribute(value, name); + } + + the.getItemLinkElement = function(item) { + return _getItemLinkElement(item); + } + + the.getItemToggleElement = function(item) { + return _getItemToggleElement(item); + } + + the.getItemSubElement = function(item) { + return _getItemSubElement(item); + } + + the.getItemParentElements = function(item) { + return _getItemParentElements(item); + } + + the.isItemSubShown = function(item) { + return _isItemSubShown(item); + } + + the.isItemParentShown = function(item) { + return _isItemParentShown(item); + } + + the.getTriggerElement = function() { + return the.triggerElement; + } + + the.isItemDropdownPermanent = function(item) { + return _isItemDropdownPermanent(item); + } + + the.destroy = function() { + return _destroy(); + } + + the.disable = function() { + the.disabled = true; + } + + the.enable = function() { + the.disabled = false; + } + + // Accordion Mode Methods + the.hideAccordions = function(item) { + return _hideAccordions(item); + } + + // Event API + the.on = function(name, handler) { + return KTEventHandler.on(the.element, name, handler); + } + + the.one = function(name, handler) { + return KTEventHandler.one(the.element, name, handler); + } + + the.off = function(name, handlerId) { + return KTEventHandler.off(the.element, name, handlerId); + } +}; + +// Get KTMenu instance by element +KTMenu.getInstance = function(element) { + var menu; + var item; + + if (!element) { + return null; + } + + // Element has menu DOM reference in it's DATA storage + if ( KTUtil.data(element).has('menu') ) { + return KTUtil.data(element).get('menu'); + } + + // Element has .menu parent + if ( menu = element.closest('.menu') ) { + if ( KTUtil.data(menu).has('menu') ) { + return KTUtil.data(menu).get('menu'); + } + } + + // Element has a parent with DOM reference to .menu in it's DATA storage + if ( KTUtil.hasClass(element, 'menu-link') ) { + var sub = element.closest('.menu-sub'); + + if ( KTUtil.data(sub).has('menu') ) { + return KTUtil.data(sub).get('menu'); + } + } + + return null; +} + +// Hide all dropdowns and skip one if provided +KTMenu.hideDropdowns = function(skip) { + var items = document.querySelectorAll('.show.menu-dropdown[data-kt-menu-trigger]'); + + if (items && items.length > 0) { + for (var i = 0, len = items.length; i < len; i++) { + var item = items[i]; + var menu = KTMenu.getInstance(item); + + if ( menu && menu.getItemSubType(item) === 'dropdown' ) { + if ( skip ) { + if ( menu.getItemSubElement(item).contains(skip) === false && item.contains(skip) === false && item !== skip ) { + menu.hide(item); + } + } else { + menu.hide(item); + } + } + } + } +} + +// Update all dropdowns popover instances +KTMenu.updateDropdowns = function() { + var items = document.querySelectorAll('.show.menu-dropdown[data-kt-menu-trigger]'); + + if (items && items.length > 0) { + for (var i = 0, len = items.length; i < len; i++) { + var item = items[i]; + + if ( KTUtil.data(item).has('popper') ) { + KTUtil.data(item).get('popper').forceUpdate(); + } + } + } +} + +// Global handlers +KTMenu.initHandlers = function() { + // Dropdown handler + document.addEventListener("click", function(e) { + var items = document.querySelectorAll('.show.menu-dropdown[data-kt-menu-trigger]:not([data-kt-menu-static="true"])'); + var menu; + var item; + var sub; + var menuObj; + + if ( items && items.length > 0 ) { + for ( var i = 0, len = items.length; i < len; i++ ) { + item = items[i]; + menuObj = KTMenu.getInstance(item); + + if (menuObj && menuObj.getItemSubType(item) === 'dropdown') { + menu = menuObj.getElement(); + sub = menuObj.getItemSubElement(item); + + if ( item === e.target || item.contains(e.target) ) { + continue; + } + + if ( sub === e.target || sub.contains(e.target) ) { + continue; + } + + menuObj.hide(item); + } + } + } + }); + + // Sub toggle handler(updated) + KTUtil.on(document.body, '.menu-item[data-kt-menu-trigger] > .menu-link, [data-kt-menu-trigger]:not(.menu-item):not([data-kt-menu-trigger="auto"])', 'click', function(e) { + var menu = KTMenu.getInstance(this); + + if ( menu !== null ) { + return menu.click(this, e); + } + }); + + // Link handler + KTUtil.on(document.body, '.menu-item:not([data-kt-menu-trigger]) > .menu-link', 'click', function(e) { + var menu = KTMenu.getInstance(this); + + if ( menu !== null ) { + return menu.link(this, e); + } + }); + + // Dismiss handler + KTUtil.on(document.body, '[data-kt-menu-dismiss="true"]', 'click', function(e) { + var menu = KTMenu.getInstance(this); + + if ( menu !== null ) { + return menu.dismiss(this, e); + } + }); + + // Mouseover handler + KTUtil.on(document.body, '[data-kt-menu-trigger], .menu-sub', 'mouseover', function(e) { + var menu = KTMenu.getInstance(this); + + if ( menu !== null && menu.getItemSubType(this) === 'dropdown' ) { + return menu.mouseover(this, e); + } + }); + + // Mouseout handler + KTUtil.on(document.body, '[data-kt-menu-trigger], .menu-sub', 'mouseout', function(e) { + var menu = KTMenu.getInstance(this); + + if ( menu !== null && menu.getItemSubType(this) === 'dropdown' ) { + return menu.mouseout(this, e); + } + }); + + // Resize handler + window.addEventListener('resize', function() { + var menu; + var timer; + + KTUtil.throttle(timer, function() { + // Locate and update Offcanvas instances on window resize + var elements = document.querySelectorAll('[data-kt-menu="true"]'); + + if ( elements && elements.length > 0 ) { + for (var i = 0, len = elements.length; i < len; i++) { + menu = KTMenu.getInstance(elements[i]); + if (menu) { + menu.update(); + } + } + } + }, 200); + }); +} + +// Render menus by url +KTMenu.updateByLinkAttribute = function(value, name = "href") { + // Set menu link active state by attribute value + var elements = document.querySelectorAll('[data-kt-menu="true"]'); + + if ( elements && elements.length > 0 ) { + for (var i = 0, len = elements.length; i < len; i++) { + var menu = KTMenu.getInstance(elements[i]); + + if (menu) { + var link = menu.getLinkByAttribute(value, name); + if (link) { + menu.setActiveLink(link); + } + } + } + } +} + +// Global instances +KTMenu.createInstances = function(selector = '[data-kt-menu="true"]') { + // Initialize menus + var elements = document.querySelectorAll(selector); + if ( elements && elements.length > 0 ) { + for (var i = 0, len = elements.length; i < len; i++) { + new KTMenu(elements[i]); + } + } +} + +// Global initialization +KTMenu.init = function() { + KTMenu.createInstances(); + + if (KTMenuHandlersInitialized === false) { + KTMenu.initHandlers(); + + KTMenuHandlersInitialized = true; + } +}; + +// Webpack support +if (typeof module !== 'undefined' && typeof module.exports !== 'undefined') { + module.exports = KTMenu; +} diff --git a/resources/_keenthemes/src/js/components/password-meter.js b/resources/_keenthemes/src/js/components/password-meter.js new file mode 100644 index 0000000..87aafd6 --- /dev/null +++ b/resources/_keenthemes/src/js/components/password-meter.js @@ -0,0 +1,253 @@ +"use strict"; + +// Class definition +var KTPasswordMeter = function(element, options) { + //////////////////////////// + // ** Private variables ** // + //////////////////////////// + var the = this; + + if (!element) { + return; + } + + // Default Options + var defaultOptions = { + minLength: 8, + checkUppercase: true, + checkLowercase: true, + checkDigit: true, + checkChar: true, + scoreHighlightClass: 'active' + }; + + //////////////////////////// + // ** Private methods ** // + //////////////////////////// + + // Constructor + var _construct = function() { + if ( KTUtil.data(element).has('password-meter') === true ) { + the = KTUtil.data(element).get('password-meter'); + } else { + _init(); + } + } + + // Initialize + var _init = function() { + // Variables + the.options = KTUtil.deepExtend({}, defaultOptions, options); + the.score = 0; + the.checkSteps = 5; + + // Elements + the.element = element; + the.inputElement = the.element.querySelector('input[type]'); + the.visibilityElement = the.element.querySelector('[data-kt-password-meter-control="visibility"]'); + the.highlightElement = the.element.querySelector('[data-kt-password-meter-control="highlight"]'); + + // Set initialized + the.element.setAttribute('data-kt-password-meter', 'true'); + + // Event Handlers + _handlers(); + + // Bind Instance + KTUtil.data(the.element).set('password-meter', the); + } + + // Handlers + var _handlers = function() { + if (the.highlightElement) { + the.inputElement.addEventListener('input', function() { + _check(); + }); + } + + if (the.visibilityElement) { + the.visibilityElement.addEventListener('click', function() { + _visibility(); + }); + } + } + + // Event handlers + var _check = function() { + var score = 0; + var checkScore = _getCheckScore(); + + if (_checkLength() === true) { + score = score + checkScore; + } + + if (the.options.checkUppercase === true && _checkLowercase() === true) { + score = score + checkScore; + } + + if (the.options.checkLowercase === true && _checkUppercase() === true ) { + score = score + checkScore; + } + + if (the.options.checkDigit === true && _checkDigit() === true ) { + score = score + checkScore; + } + + if (the.options.checkChar === true && _checkChar() === true ) { + score = score + checkScore; + } + + the.score = score; + + _highlight(); + } + + var _checkLength = function() { + return the.inputElement.value.length >= the.options.minLength; // 20 score + } + + var _checkLowercase = function() { + return /[a-z]/.test(the.inputElement.value); // 20 score + } + + var _checkUppercase = function() { + return /[A-Z]/.test(the.inputElement.value); // 20 score + } + + var _checkDigit = function() { + return /[0-9]/.test(the.inputElement.value); // 20 score + } + + var _checkChar = function() { + return /[~`!#@$%\^&*+=\-\[\]\\';,/{}|\\":<>\?]/g.test(the.inputElement.value); // 20 score + } + + var _getCheckScore = function() { + var count = 1; + + if (the.options.checkUppercase === true) { + count++; + } + + if (the.options.checkLowercase === true) { + count++; + } + + if (the.options.checkDigit === true) { + count++; + } + + if (the.options.checkChar === true) { + count++; + } + + the.checkSteps = count; + + return 100 / the.checkSteps; + } + + var _highlight = function() { + var items = [].slice.call(the.highlightElement.querySelectorAll('div')); + var total = items.length; + var index = 0; + var checkScore = _getCheckScore(); + var score = _getScore(); + + items.map(function (item) { + index++; + + if ( (checkScore * index * (the.checkSteps / total)) <= score ) { + item.classList.add('active'); + } else { + item.classList.remove('active'); + } + }); + } + + var _visibility = function() { + var visibleIcon = the.visibilityElement.querySelector(':scope > i:not(.d-none)'); + var hiddenIcon = the.visibilityElement.querySelector(':scope > i.d-none'); + + if (the.inputElement.getAttribute('type').toLowerCase() === 'password' ) { + the.inputElement.setAttribute('type', 'text'); + } else { + the.inputElement.setAttribute('type', 'password'); + } + + visibleIcon.classList.add('d-none'); + hiddenIcon.classList.remove('d-none'); + + the.inputElement.focus(); + } + + var _reset = function() { + the.score = 0; + + _highlight(); + } + + // Gets current password score + var _getScore = function() { + return the.score; + } + + var _destroy = function() { + KTUtil.data(the.element).remove('password-meter'); + } + + // Construct class + _construct(); + + /////////////////////// + // ** Public API ** // + /////////////////////// + + // Plugin API + the.check = function() { + return _check(); + } + + the.getScore = function() { + return _getScore(); + } + + the.reset = function() { + return _reset(); + } + + the.destroy = function() { + return _destroy(); + } +}; + +// Static methods +KTPasswordMeter.getInstance = function(element) { + if ( element !== null && KTUtil.data(element).has('password-meter') ) { + return KTUtil.data(element).get('password-meter'); + } else { + return null; + } +} + +// Create instances +KTPasswordMeter.createInstances = function(selector = '[data-kt-password-meter]') { + // Get instances + var elements = document.body.querySelectorAll(selector); + + if ( elements && elements.length > 0 ) { + for (var i = 0, len = elements.length; i < len; i++) { + // Initialize instances + new KTPasswordMeter(elements[i]); + } + } +} + +// Global initialization +KTPasswordMeter.init = function() { + KTPasswordMeter.createInstances(); +}; + +// Webpack support +if (typeof module !== 'undefined' && typeof module.exports !== 'undefined') { + module.exports = KTPasswordMeter; +} \ No newline at end of file diff --git a/resources/_keenthemes/src/js/components/scroll.js b/resources/_keenthemes/src/js/components/scroll.js new file mode 100644 index 0000000..1b40d74 --- /dev/null +++ b/resources/_keenthemes/src/js/components/scroll.js @@ -0,0 +1,358 @@ +"use strict"; + +var KTScrollHandlersInitialized = false; + +// Class definition +var KTScroll = function(element, options) { + //////////////////////////// + // ** Private Variables ** // + //////////////////////////// + var the = this; + + if (!element) { + return; + } + + // Default options + var defaultOptions = { + saveState: true + }; + + //////////////////////////// + // ** Private Methods ** // + //////////////////////////// + + var _construct = function() { + if ( KTUtil.data(element).has('scroll') ) { + the = KTUtil.data(element).get('scroll'); + } else { + _init(); + } + } + + var _init = function() { + // Variables + the.options = KTUtil.deepExtend({}, defaultOptions, options); + + // Elements + the.element = element; + the.id = the.element.getAttribute('id'); + + // Set initialized + the.element.setAttribute('data-kt-scroll', 'true'); + + // Update + _update(); + + // Bind Instance + KTUtil.data(the.element).set('scroll', the); + } + + var _setupHeight = function() { + var heightType = _getHeightType(); + var height = _getHeight(); + + // Set height + if ( height !== null && height.length > 0 ) { + KTUtil.css(the.element, heightType, height); + } else { + KTUtil.css(the.element, heightType, ''); + } + } + + var _setupState = function () { + var namespace = _getStorageNamespace(); + + if ( _getOption('save-state') === true && the.id ) { + if ( localStorage.getItem(namespace + the.id + 'st') ) { + var pos = parseInt(localStorage.getItem(namespace + the.id + 'st')); + + if ( pos > 0 ) { + the.element.scroll({ + top: pos, + behavior: 'instant' + }); + } + } + } + } + + var _getStorageNamespace = function(postfix) { + return document.body.hasAttribute("data-kt-name") ? document.body.getAttribute("data-kt-name") + "_" : ""; + } + + var _setupScrollHandler = function() { + if ( _getOption('save-state') === true && the.id ) { + the.element.addEventListener('scroll', _scrollHandler); + } else { + the.element.removeEventListener('scroll', _scrollHandler); + } + } + + var _destroyScrollHandler = function() { + the.element.removeEventListener('scroll', _scrollHandler); + } + + var _resetHeight = function() { + KTUtil.css(the.element, _getHeightType(), ''); + } + + var _scrollHandler = function () { + var namespace = _getStorageNamespace(); + localStorage.setItem(namespace + the.id + 'st', the.element.scrollTop); + } + + var _update = function() { + // Activate/deactivate + if ( _getOption('activate') === true || the.element.hasAttribute('data-kt-scroll-activate') === false ) { + _setupHeight(); + _setupStretchHeight(); + _setupScrollHandler(); + _setupState(); + } else { + _resetHeight() + _destroyScrollHandler(); + } + } + + var _setupStretchHeight = function() { + var stretch = _getOption('stretch'); + + // Stretch + if ( stretch !== null ) { + var elements = document.querySelectorAll(stretch); + + if ( elements && elements.length == 2 ) { + var element1 = elements[0]; + var element2 = elements[1]; + var diff = _getElementHeight(element2) - _getElementHeight(element1); + + if (diff > 0) { + var height = parseInt(KTUtil.css(the.element, _getHeightType())) + diff; + + KTUtil.css(the.element, _getHeightType(), String(height) + 'px'); + } + } + } + } + + var _getHeight = function() { + var height = _getOption(_getHeightType()); + + if ( height instanceof Function ) { + return height.call(); + } else if ( height !== null && typeof height === 'string' && height.toLowerCase() === 'auto' ) { + return _getAutoHeight(); + } else { + return height; + } + } + + var _getAutoHeight = function() { + var height = KTUtil.getViewPort().height; + var dependencies = _getOption('dependencies'); + var wrappers = _getOption('wrappers'); + var offset = _getOption('offset'); + + // Spacings + height = height - _getElementSpacing(the.element); + + // Height dependencies + //console.log('Q:' + JSON.stringify(dependencies)); + + if ( dependencies !== null ) { + var elements = document.querySelectorAll(dependencies); + + if ( elements && elements.length > 0 ) { + for ( var i = 0, len = elements.length; i < len; i++ ) { + if ( KTUtil.visible(elements[i]) === false ) { + continue; + } + + height = height - _getElementHeight(elements[i]); + } + } + } + + // Wrappers + if ( wrappers !== null ) { + var elements = document.querySelectorAll(wrappers); + if ( elements && elements.length > 0 ) { + for ( var i = 0, len = elements.length; i < len; i++ ) { + if ( KTUtil.visible(elements[i]) === false ) { + continue; + } + + height = height - _getElementSpacing(elements[i]); + } + } + } + + // Custom offset + if ( offset !== null && typeof offset !== 'object') { + height = height - parseInt(offset); + } + + return String(height) + 'px'; + } + + var _getElementHeight = function(element) { + var height = 0; + + if (element !== null) { + height = height + parseInt(KTUtil.css(element, 'height')); + height = height + parseInt(KTUtil.css(element, 'margin-top')); + height = height + parseInt(KTUtil.css(element, 'margin-bottom')); + + if (KTUtil.css(element, 'border-top')) { + height = height + parseInt(KTUtil.css(element, 'border-top')); + } + + if (KTUtil.css(element, 'border-bottom')) { + height = height + parseInt(KTUtil.css(element, 'border-bottom')); + } + } + + return height; + } + + var _getElementSpacing = function(element) { + var spacing = 0; + + if (element !== null) { + spacing = spacing + parseInt(KTUtil.css(element, 'margin-top')); + spacing = spacing + parseInt(KTUtil.css(element, 'margin-bottom')); + spacing = spacing + parseInt(KTUtil.css(element, 'padding-top')); + spacing = spacing + parseInt(KTUtil.css(element, 'padding-bottom')); + + if (KTUtil.css(element, 'border-top')) { + spacing = spacing + parseInt(KTUtil.css(element, 'border-top')); + } + + if (KTUtil.css(element, 'border-bottom')) { + spacing = spacing + parseInt(KTUtil.css(element, 'border-bottom')); + } + } + + return spacing; + } + + var _getOption = function(name) { + if ( the.element.hasAttribute('data-kt-scroll-' + name) === true ) { + var attr = the.element.getAttribute('data-kt-scroll-' + name); + + var value = KTUtil.getResponsiveValue(attr); + + if ( value !== null && String(value) === 'true' ) { + value = true; + } else if ( value !== null && String(value) === 'false' ) { + value = false; + } + + return value; + } else { + var optionName = KTUtil.snakeToCamel(name); + + if ( the.options[optionName] ) { + return KTUtil.getResponsiveValue(the.options[optionName]); + } else { + return null; + } + } + } + + var _getHeightType = function() { + if (_getOption('height')) { + return 'height'; + } if (_getOption('min-height')) { + return 'min-height'; + } if (_getOption('max-height')) { + return 'max-height'; + } + } + + var _destroy = function() { + KTUtil.data(the.element).remove('scroll'); + } + + // Construct Class + _construct(); + + /////////////////////// + // ** Public API ** // + /////////////////////// + + the.update = function() { + return _update(); + } + + the.getHeight = function() { + return _getHeight(); + } + + the.getElement = function() { + return the.element; + } + + the.destroy = function() { + return _destroy(); + } +}; + +// Static methods +KTScroll.getInstance = function(element) { + if ( element !== null && KTUtil.data(element).has('scroll') ) { + return KTUtil.data(element).get('scroll'); + } else { + return null; + } +} + +// Create instances +KTScroll.createInstances = function(selector = '[data-kt-scroll="true"]') { + // Initialize Menus + var elements = document.body.querySelectorAll(selector); + + if ( elements && elements.length > 0 ) { + for (var i = 0, len = elements.length; i < len; i++) { + new KTScroll(elements[i]); + } + } +} + +// Window resize handling +KTScroll.handleResize = function() { + window.addEventListener('resize', function() { + var timer; + + KTUtil.throttle(timer, function() { + // Locate and update Offcanvas instances on window resize + var elements = document.body.querySelectorAll('[data-kt-scroll="true"]'); + + if ( elements && elements.length > 0 ) { + for (var i = 0, len = elements.length; i < len; i++) { + var scroll = KTScroll.getInstance(elements[i]); + if (scroll) { + scroll.update(); + } + } + } + }, 200); + }); +} + +// Global initialization +KTScroll.init = function() { + KTScroll.createInstances(); + + if (KTScrollHandlersInitialized === false) { + KTScroll.handleResize(); + + KTScrollHandlersInitialized = true; + } +}; + +// Webpack Support +if (typeof module !== 'undefined' && typeof module.exports !== 'undefined') { + module.exports = KTScroll; +} diff --git a/resources/_keenthemes/src/js/components/scrolltop.js b/resources/_keenthemes/src/js/components/scrolltop.js new file mode 100644 index 0000000..d66d10e --- /dev/null +++ b/resources/_keenthemes/src/js/components/scrolltop.js @@ -0,0 +1,164 @@ +"use strict"; + +// Class definition +var KTScrolltop = function(element, options) { + //////////////////////////// + // ** Private variables ** // + //////////////////////////// + var the = this; + + if ( typeof element === "undefined" || element === null ) { + return; + } + + // Default options + var defaultOptions = { + offset: 300, + speed: 600 + }; + + //////////////////////////// + // ** Private methods ** // + //////////////////////////// + + var _construct = function() { + if (KTUtil.data(element).has('scrolltop')) { + the = KTUtil.data(element).get('scrolltop'); + } else { + _init(); + } + } + + var _init = function() { + // Variables + the.options = KTUtil.deepExtend({}, defaultOptions, options); + the.uid = KTUtil.getUniqueId('scrolltop'); + the.element = element; + + // Set initialized + the.element.setAttribute('data-kt-scrolltop', 'true'); + + // Event Handlers + _handlers(); + + // Bind Instance + KTUtil.data(the.element).set('scrolltop', the); + } + + var _handlers = function() { + var timer; + + window.addEventListener('scroll', function() { + KTUtil.throttle(timer, function() { + _scroll(); + }, 200); + }); + + KTUtil.addEvent(the.element, 'click', function(e) { + e.preventDefault(); + + _go(); + }); + } + + var _scroll = function() { + var offset = parseInt(_getOption('offset')); + + var pos = KTUtil.getScrollTop(); // current vertical position + + if ( pos > offset ) { + if ( document.body.hasAttribute('data-kt-scrolltop') === false ) { + document.body.setAttribute('data-kt-scrolltop', 'on'); + } + } else { + if ( document.body.hasAttribute('data-kt-scrolltop') === true ) { + document.body.removeAttribute('data-kt-scrolltop'); + } + } + } + + var _go = function() { + var speed = parseInt(_getOption('speed')); + + window.scrollTo({top: 0, behavior: 'smooth'}); + //KTUtil.scrollTop(0, speed); + } + + var _getOption = function(name) { + if ( the.element.hasAttribute('data-kt-scrolltop-' + name) === true ) { + var attr = the.element.getAttribute('data-kt-scrolltop-' + name); + var value = KTUtil.getResponsiveValue(attr); + + if ( value !== null && String(value) === 'true' ) { + value = true; + } else if ( value !== null && String(value) === 'false' ) { + value = false; + } + + return value; + } else { + var optionName = KTUtil.snakeToCamel(name); + + if ( the.options[optionName] ) { + return KTUtil.getResponsiveValue(the.options[optionName]); + } else { + return null; + } + } + } + + var _destroy = function() { + KTUtil.data(the.element).remove('scrolltop'); + } + + // Construct class + _construct(); + + /////////////////////// + // ** Public API ** // + /////////////////////// + + // Plugin API + the.go = function() { + return _go(); + } + + the.getElement = function() { + return the.element; + } + + the.destroy = function() { + return _destroy(); + } +}; + +// Static methods +KTScrolltop.getInstance = function(element) { + if (element && KTUtil.data(element).has('scrolltop')) { + return KTUtil.data(element).get('scrolltop'); + } else { + return null; + } +} + +// Create instances +KTScrolltop.createInstances = function(selector = '[data-kt-scrolltop="true"]') { + // Initialize Menus + var elements = document.body.querySelectorAll(selector); + + if ( elements && elements.length > 0 ) { + for (var i = 0, len = elements.length; i < len; i++) { + new KTScrolltop(elements[i]); + } + } +} + +// Global initialization +KTScrolltop.init = function() { + KTScrolltop.createInstances(); +}; + +// Webpack support +if (typeof module !== 'undefined' && typeof module.exports !== 'undefined') { + module.exports = KTScrolltop; +} diff --git a/resources/_keenthemes/src/js/components/search.js b/resources/_keenthemes/src/js/components/search.js new file mode 100644 index 0000000..97a91ea --- /dev/null +++ b/resources/_keenthemes/src/js/components/search.js @@ -0,0 +1,439 @@ +"use strict"; + +// Class definition +var KTSearch = function(element, options) { + //////////////////////////// + // ** Private variables ** // + //////////////////////////// + var the = this; + + if (!element) { + return; + } + + // Default Options + var defaultOptions = { + minLength: 2, // Miniam text lenght to query search + keypress: true, // Enable search on keypress + enter: true, // Enable search on enter key press + layout: 'menu', // Use 'menu' or 'inline' layout options to display search results + responsive: null, // Pass integer value or bootstrap compatible breakpoint key(sm,md,lg,xl,xxl) to enable reponsive form mode for device width below the breakpoint value + showOnFocus: true // Always show menu on input focus + }; + + //////////////////////////// + // ** Private methods ** // + //////////////////////////// + + // Construct + var _construct = function() { + if ( KTUtil.data(element).has('search') === true ) { + the = KTUtil.data(element).get('search'); + } else { + _init(); + } + } + + // Init + var _init = function() { + // Variables + the.options = KTUtil.deepExtend({}, defaultOptions, options); + the.processing = false; + + // Elements + the.element = element; + the.contentElement = _getElement('content'); + the.formElement = _getElement('form'); + the.inputElement = _getElement('input'); + the.spinnerElement = _getElement('spinner'); + the.clearElement = _getElement('clear'); + the.toggleElement = _getElement('toggle'); + the.submitElement = _getElement('submit'); + the.toolbarElement = _getElement('toolbar'); + + the.resultsElement = _getElement('results'); + the.suggestionElement = _getElement('suggestion'); + the.emptyElement = _getElement('empty'); + + // Set initialized + the.element.setAttribute('data-kt-search', 'true'); + + // Layout + the.layout = _getOption('layout'); + + // Menu + if ( the.layout === 'menu' ) { + the.menuObject = new KTMenu(the.contentElement); + } else { + the.menuObject = null; + } + + // Update + _update(); + + // Event Handlers + _handlers(); + + // Bind Instance + KTUtil.data(the.element).set('search', the); + } + + // Handlera + var _handlers = function() { + // Focus + the.inputElement.addEventListener('focus', _focus); + + // Blur + the.inputElement.addEventListener('blur', _blur); + + // Keypress + if ( _getOption('keypress') === true ) { + the.inputElement.addEventListener('input', _input); + } + + // Submit + if ( the.submitElement ) { + the.submitElement.addEventListener('click', _search); + } + + // Enter + if ( _getOption('enter') === true ) { + the.inputElement.addEventListener('keypress', _enter); + } + + // Clear + if ( the.clearElement ) { + the.clearElement.addEventListener('click', _clear); + } + + // Menu + if ( the.menuObject ) { + // Toggle menu + if ( the.toggleElement ) { + the.toggleElement.addEventListener('click', _show); + + the.menuObject.on('kt.menu.dropdown.show', function(item) { + if (KTUtil.visible(the.toggleElement)) { + the.toggleElement.classList.add('active'); + the.toggleElement.classList.add('show'); + } + }); + + the.menuObject.on('kt.menu.dropdown.hide', function(item) { + if (KTUtil.visible(the.toggleElement)) { + the.toggleElement.classList.remove('active'); + the.toggleElement.classList.remove('show'); + } + }); + } + + the.menuObject.on('kt.menu.dropdown.shown', function() { + the.inputElement.focus(); + }); + } + + // Window resize handling + window.addEventListener('resize', function() { + var timer; + + KTUtil.throttle(timer, function() { + _update(); + }, 200); + }); + } + + // Focus + var _focus = function() { + the.element.classList.add('focus'); + + if ( _getOption('show-on-focus') === true || the.inputElement.value.length >= minLength ) { + _show(); + } + } + + // Blur + var _blur = function() { + the.element.classList.remove('focus'); + } + + // Enter + var _enter = function(e) { + var key = e.charCode || e.keyCode || 0; + + if (key == 13) { + e.preventDefault(); + + _search(); + } + } + + // Input + var _input = function() { + if ( _getOption('min-length') ) { + var minLength = parseInt(_getOption('min-length')); + + if ( the.inputElement.value.length >= minLength ) { + _search(); + } else if ( the.inputElement.value.length === 0 ) { + _clear(); + } + } + } + + // Search + var _search = function() { + if (the.processing === false) { + // Show search spinner + if (the.spinnerElement) { + the.spinnerElement.classList.remove("d-none"); + } + + // Hide search clear button + if (the.clearElement) { + the.clearElement.classList.add("d-none"); + } + + // Hide search toolbar + if (the.toolbarElement && the.formElement.contains(the.toolbarElement)) { + the.toolbarElement.classList.add("d-none"); + } + + // Focus input + the.inputElement.focus(); + + the.processing = true; + KTEventHandler.trigger(the.element, 'kt.search.process', the); + } + } + + // Complete + var _complete = function() { + if (the.spinnerElement) { + the.spinnerElement.classList.add("d-none"); + } + + // Show search toolbar + if (the.clearElement) { + the.clearElement.classList.remove("d-none"); + } + + if ( the.inputElement.value.length === 0 ) { + _clear(); + } + + // Focus input + the.inputElement.focus(); + + _show(); + + the.processing = false; + } + + // Clear + var _clear = function() { + if ( KTEventHandler.trigger(the.element, 'kt.search.clear', the) === false ) { + return; + } + + // Clear and focus input + the.inputElement.value = ""; + the.inputElement.focus(); + + // Hide clear icon + if (the.clearElement) { + the.clearElement.classList.add("d-none"); + } + + // Show search toolbar + if (the.toolbarElement && the.formElement.contains(the.toolbarElement)) { + the.toolbarElement.classList.remove("d-none"); + } + + // Hide menu + if ( _getOption('show-on-focus') === false ) { + _hide(); + } + + KTEventHandler.trigger(the.element, 'kt.search.cleared', the); + } + + // Update + var _update = function() { + // Handle responsive form + if (the.layout === 'menu') { + var responsiveFormMode = _getResponsiveFormMode(); + + if ( responsiveFormMode === 'on' && the.contentElement.contains(the.formElement) === false ) { + the.contentElement.prepend(the.formElement); + the.formElement.classList.remove('d-none'); + } else if ( responsiveFormMode === 'off' && the.contentElement.contains(the.formElement) === true ) { + the.element.prepend(the.formElement); + the.formElement.classList.add('d-none'); + } + } + } + + // Show menu + var _show = function() { + if ( the.menuObject ) { + _update(); + + the.menuObject.show(the.element); + } + } + + // Hide menu + var _hide = function() { + if ( the.menuObject ) { + _update(); + + the.menuObject.hide(the.element); + } + } + + // Get option + var _getOption = function(name) { + if ( the.element.hasAttribute('data-kt-search-' + name) === true ) { + var attr = the.element.getAttribute('data-kt-search-' + name); + var value = KTUtil.getResponsiveValue(attr); + + if ( value !== null && String(value) === 'true' ) { + value = true; + } else if ( value !== null && String(value) === 'false' ) { + value = false; + } + + return value; + } else { + var optionName = KTUtil.snakeToCamel(name); + + if ( the.options[optionName] ) { + return KTUtil.getResponsiveValue(the.options[optionName]); + } else { + return null; + } + } + } + + // Get element + var _getElement = function(name) { + return the.element.querySelector('[data-kt-search-element="' + name + '"]'); + } + + // Check if responsive form mode is enabled + var _getResponsiveFormMode = function() { + var responsive = _getOption('responsive'); + var width = KTUtil.getViewPort().width; + + if (!responsive) { + return null; + } + + var breakpoint = KTUtil.getBreakpoint(responsive); + + if (!breakpoint ) { + breakpoint = parseInt(responsive); + } + + if (width < breakpoint) { + return "on"; + } else { + return "off"; + } + } + + var _destroy = function() { + KTUtil.data(the.element).remove('search'); + } + + // Construct class + _construct(); + + /////////////////////// + // ** Public API ** // + /////////////////////// + + // Plugin API + the.show = function() { + return _show(); + } + + the.hide = function() { + return _hide(); + } + + the.update = function() { + return _update(); + } + + the.search = function() { + return _search(); + } + + the.complete = function() { + return _complete(); + } + + the.clear = function() { + return _clear(); + } + + the.isProcessing = function() { + return the.processing; + } + + the.getQuery = function() { + return the.inputElement.value; + } + + the.getMenu = function() { + return the.menuObject; + } + + the.getFormElement = function() { + return the.formElement; + } + + the.getInputElement = function() { + return the.inputElement; + } + + the.getContentElement = function() { + return the.contentElement; + } + + the.getElement = function() { + return the.element; + } + + the.destroy = function() { + return _destroy(); + } + + // Event API + the.on = function(name, handler) { + return KTEventHandler.on(the.element, name, handler); + } + + the.one = function(name, handler) { + return KTEventHandler.one(the.element, name, handler); + } + + the.off = function(name, handlerId) { + return KTEventHandler.off(the.element, name, handlerId); + } +}; + +// Static methods +KTSearch.getInstance = function(element) { + if ( element !== null && KTUtil.data(element).has('search') ) { + return KTUtil.data(element).get('search'); + } else { + return null; + } +} + +// Webpack support +if (typeof module !== 'undefined' && typeof module.exports !== 'undefined') { + module.exports = KTSearch; +} diff --git a/resources/_keenthemes/src/js/components/stepper.js b/resources/_keenthemes/src/js/components/stepper.js new file mode 100644 index 0000000..edd7573 --- /dev/null +++ b/resources/_keenthemes/src/js/components/stepper.js @@ -0,0 +1,347 @@ +"use strict"; + +// Class definition +var KTStepper = function(element, options) { + ////////////////////////////// + // ** Private variables ** // + ////////////////////////////// + var the = this; + + if ( typeof element === "undefined" || element === null ) { + return; + } + + // Default Options + var defaultOptions = { + startIndex: 1, + animation: false, + animationSpeed: '0.3s', + animationNextClass: 'animate__animated animate__slideInRight animate__fast', + animationPreviousClass: 'animate__animated animate__slideInLeft animate__fast' + }; + + //////////////////////////// + // ** Private methods ** // + //////////////////////////// + + var _construct = function() { + if ( KTUtil.data(element).has('stepper') === true ) { + the = KTUtil.data(element).get('stepper'); + } else { + _init(); + } + } + + var _init = function() { + the.options = KTUtil.deepExtend({}, defaultOptions, options); + the.uid = KTUtil.getUniqueId('stepper'); + + the.element = element; + + // Set initialized + the.element.setAttribute('data-kt-stepper', 'true'); + + // Elements + the.steps = KTUtil.findAll(the.element, '[data-kt-stepper-element="nav"]'); + the.btnNext = KTUtil.find(the.element, '[data-kt-stepper-action="next"]'); + the.btnPrevious = KTUtil.find(the.element, '[data-kt-stepper-action="previous"]'); + the.btnSubmit = KTUtil.find(the.element, '[data-kt-stepper-action="submit"]'); + + // Variables + the.totalStepsNumber = the.steps.length; + the.passedStepIndex = 0; + the.currentStepIndex = 1; + the.clickedStepIndex = 0; + + // Set Current Step + if ( the.options.startIndex > 1 ) { + _goTo(the.options.startIndex); + } + + // Event listeners + the.nextListener = function(e) { + e.preventDefault(); + + KTEventHandler.trigger(the.element, 'kt.stepper.next', the); + }; + + the.previousListener = function(e) { + e.preventDefault(); + + KTEventHandler.trigger(the.element, 'kt.stepper.previous', the); + }; + + the.stepListener = function(e) { + e.preventDefault(); + + if ( the.steps && the.steps.length > 0 ) { + for (var i = 0, len = the.steps.length; i < len; i++) { + if ( the.steps[i] === this ) { + the.clickedStepIndex = i + 1; + + KTEventHandler.trigger(the.element, 'kt.stepper.click', the); + + return; + } + } + } + }; + + // Event Handlers + KTUtil.addEvent(the.btnNext, 'click', the.nextListener); + + KTUtil.addEvent(the.btnPrevious, 'click', the.previousListener); + + the.stepListenerId = KTUtil.on(the.element, '[data-kt-stepper-action="step"]', 'click', the.stepListener); + + // Bind Instance + KTUtil.data(the.element).set('stepper', the); + } + + var _goTo = function(index) { + // Trigger "change" event + KTEventHandler.trigger(the.element, 'kt.stepper.change', the); + + // Skip if this step is already shown + if ( index === the.currentStepIndex || index > the.totalStepsNumber || index < 0 ) { + return; + } + + // Validate step number + index = parseInt(index); + + // Set current step + the.passedStepIndex = the.currentStepIndex; + the.currentStepIndex = index; + + // Refresh elements + _refreshUI(); + + // Trigger "changed" event + KTEventHandler.trigger(the.element, 'kt.stepper.changed', the); + + return the; + } + + var _goNext = function() { + return _goTo( _getNextStepIndex() ); + } + + var _goPrevious = function() { + return _goTo( _getPreviousStepIndex() ); + } + + var _goLast = function() { + return _goTo( _getLastStepIndex() ); + } + + var _goFirst = function() { + return _goTo( _getFirstStepIndex() ); + } + + var _refreshUI = function() { + var state = ''; + + if ( _isLastStep() ) { + state = 'last'; + } else if ( _isFirstStep() ) { + state = 'first'; + } else { + state = 'between'; + } + + // Set state class + KTUtil.removeClass(the.element, 'last'); + KTUtil.removeClass(the.element, 'first'); + KTUtil.removeClass(the.element, 'between'); + + KTUtil.addClass(the.element, state); + + // Step Items + var elements = KTUtil.findAll(the.element, '[data-kt-stepper-element="nav"], [data-kt-stepper-element="content"], [data-kt-stepper-element="info"]'); + + if ( elements && elements.length > 0 ) { + for (var i = 0, len = elements.length; i < len; i++) { + var element = elements[i]; + var index = KTUtil.index(element) + 1; + + KTUtil.removeClass(element, 'current'); + KTUtil.removeClass(element, 'completed'); + KTUtil.removeClass(element, 'pending'); + + if ( index == the.currentStepIndex ) { + KTUtil.addClass(element, 'current'); + + if ( the.options.animation !== false && element.getAttribute('data-kt-stepper-element') == 'content' ) { + KTUtil.css(element, 'animationDuration', the.options.animationSpeed); + + var animation = _getStepDirection(the.passedStepIndex) === 'previous' ? the.options.animationPreviousClass : the.options.animationNextClass; + KTUtil.animateClass(element, animation); + } + } else { + if ( index < the.currentStepIndex ) { + KTUtil.addClass(element, 'completed'); + } else { + KTUtil.addClass(element, 'pending'); + } + } + } + } + } + + var _isLastStep = function() { + return the.currentStepIndex === the.totalStepsNumber; + } + + var _isFirstStep = function() { + return the.currentStepIndex === 1; + } + + var _isBetweenStep = function() { + return _isLastStep() === false && _isFirstStep() === false; + } + + var _getNextStepIndex = function() { + if ( the.totalStepsNumber >= ( the.currentStepIndex + 1 ) ) { + return the.currentStepIndex + 1; + } else { + return the.totalStepsNumber; + } + } + + var _getPreviousStepIndex = function() { + if ( ( the.currentStepIndex - 1 ) > 1 ) { + return the.currentStepIndex - 1; + } else { + return 1; + } + } + + var _getFirstStepIndex = function(){ + return 1; + } + + var _getLastStepIndex = function() { + return the.totalStepsNumber; + } + + var _getTotalStepsNumber = function() { + return the.totalStepsNumber; + } + + var _getStepDirection = function(index) { + if ( index > the.currentStepIndex ) { + return 'next'; + } else { + return 'previous'; + } + } + + var _getStepContent = function(index) { + var content = KTUtil.findAll(the.element, '[data-kt-stepper-element="content"]'); + + if ( content[index-1] ) { + return content[index-1]; + } else { + return false; + } + } + + var _destroy = function() { + // Event Handlers + KTUtil.removeEvent(the.btnNext, 'click', the.nextListener); + + KTUtil.removeEvent(the.btnPrevious, 'click', the.previousListener); + + KTUtil.off(the.element, 'click', the.stepListenerId); + + KTUtil.data(the.element).remove('stepper'); + } + + // Construct Class + _construct(); + + /////////////////////// + // ** Public API ** // + /////////////////////// + + // Plugin API + the.getElement = function(index) { + return the.element; + } + + the.goTo = function(index) { + return _goTo(index); + } + + the.goPrevious = function() { + return _goPrevious(); + } + + the.goNext = function() { + return _goNext(); + } + + the.goFirst = function() { + return _goFirst(); + } + + the.goLast = function() { + return _goLast(); + } + + the.getCurrentStepIndex = function() { + return the.currentStepIndex; + } + + the.getNextStepIndex = function() { + return _getNextStepIndex(); + } + + the.getPassedStepIndex = function() { + return the.passedStepIndex; + } + + the.getClickedStepIndex = function() { + return the.clickedStepIndex; + } + + the.getPreviousStepIndex = function() { + return _getPreviousStepIndex(); + } + + the.destroy = function() { + return _destroy(); + } + + // Event API + the.on = function(name, handler) { + return KTEventHandler.on(the.element, name, handler); + } + + the.one = function(name, handler) { + return KTEventHandler.one(the.element, name, handler); + } + + the.off = function(name, handlerId) { + return KTEventHandler.off(the.element, name, handlerId); + } + + the.trigger = function(name, event) { + return KTEventHandler.trigger(the.element, name, event, the, event); + } +}; + +// Static methods +KTStepper.getInstance = function(element) { + if ( element !== null && KTUtil.data(element).has('stepper') ) { + return KTUtil.data(element).get('stepper'); + } else { + return null; + } +} + +// Webpack support +if (typeof module !== 'undefined' && typeof module.exports !== 'undefined') { + module.exports = KTStepper; +} diff --git a/resources/_keenthemes/src/js/components/sticky.js b/resources/_keenthemes/src/js/components/sticky.js new file mode 100644 index 0000000..eb0c892 --- /dev/null +++ b/resources/_keenthemes/src/js/components/sticky.js @@ -0,0 +1,409 @@ +"use strict"; + +var KTStickyHandlersInitialized = false; + +// Class definition +var KTSticky = function(element, options) { + //////////////////////////// + // ** Private Variables ** // + //////////////////////////// + var the = this; + + if ( typeof element === "undefined" || element === null ) { + return; + } + + // Default Options + var defaultOptions = { + offset: 200, + reverse: false, + release: null, + animation: true, + animationSpeed: '0.3s', + animationClass: 'animation-slide-in-down' + }; + //////////////////////////// + // ** Private Methods ** // + //////////////////////////// + + var _construct = function() { + if ( KTUtil.data(element).has('sticky') === true ) { + the = KTUtil.data(element).get('sticky'); + } else { + _init(); + } + } + + var _init = function() { + the.element = element; + the.options = KTUtil.deepExtend({}, defaultOptions, options); + the.uid = KTUtil.getUniqueId('sticky'); + the.name = the.element.getAttribute('data-kt-sticky-name'); + the.attributeName = 'data-kt-sticky-' + the.name; + the.attributeName2 = 'data-kt-' + the.name; + the.eventTriggerState = true; + the.lastScrollTop = 0; + the.scrollHandler; + + // Set initialized + the.element.setAttribute('data-kt-sticky', 'true'); + + // Event Handlers + window.addEventListener('scroll', _scroll); + + // Initial Launch + _scroll(); + + // Bind Instance + KTUtil.data(the.element).set('sticky', the); + } + + var _scroll = function(e) { + var offset = _getOption('offset'); + var release = _getOption('release'); + var reverse = _getOption('reverse'); + var st; + var attrName; + var diff; + + // Exit if false + if ( offset === false ) { + return; + } + + offset = parseInt(offset); + release = release ? document.querySelector(release) : null; + + st = KTUtil.getScrollTop(); + diff = document.documentElement.scrollHeight - window.innerHeight - KTUtil.getScrollTop(); + + var proceed = (!release || (release.offsetTop - release.clientHeight) > st); + + if ( reverse === true ) { // Release on reverse scroll mode + if ( st > offset && proceed ) { + if ( document.body.hasAttribute(the.attributeName) === false) { + + if (_enable() === false) { + return; + } + + document.body.setAttribute(the.attributeName, 'on'); + document.body.setAttribute(the.attributeName2, 'on'); + the.element.setAttribute("data-kt-sticky-enabled", "true"); + } + + if ( the.eventTriggerState === true ) { + KTEventHandler.trigger(the.element, 'kt.sticky.on', the); + KTEventHandler.trigger(the.element, 'kt.sticky.change', the); + + the.eventTriggerState = false; + } + } else { // Back scroll mode + if ( document.body.hasAttribute(the.attributeName) === true) { + _disable(); + document.body.removeAttribute(the.attributeName); + document.body.removeAttribute(the.attributeName2); + the.element.removeAttribute("data-kt-sticky-enabled"); + } + + if ( the.eventTriggerState === false ) { + KTEventHandler.trigger(the.element, 'kt.sticky.off', the); + KTEventHandler.trigger(the.element, 'kt.sticky.change', the); + the.eventTriggerState = true; + } + } + + the.lastScrollTop = st; + } else { // Classic scroll mode + if ( st > offset && proceed ) { + if ( document.body.hasAttribute(the.attributeName) === false) { + + if (_enable() === false) { + return; + } + + document.body.setAttribute(the.attributeName, 'on'); + document.body.setAttribute(the.attributeName2, 'on'); + the.element.setAttribute("data-kt-sticky-enabled", "true"); + } + + if ( the.eventTriggerState === true ) { + KTEventHandler.trigger(the.element, 'kt.sticky.on', the); + KTEventHandler.trigger(the.element, 'kt.sticky.change', the); + the.eventTriggerState = false; + } + } else { // back scroll mode + if ( document.body.hasAttribute(the.attributeName) === true ) { + _disable(); + document.body.removeAttribute(the.attributeName); + document.body.removeAttribute(the.attributeName2); + the.element.removeAttribute("data-kt-sticky-enabled"); + } + + if ( the.eventTriggerState === false ) { + KTEventHandler.trigger(the.element, 'kt.sticky.off', the); + KTEventHandler.trigger(the.element, 'kt.sticky.change', the); + the.eventTriggerState = true; + } + } + } + + if (release) { + if ( release.offsetTop - release.clientHeight > st ) { + the.element.setAttribute('data-kt-sticky-released', 'true'); + } else { + the.element.removeAttribute('data-kt-sticky-released'); + } + } + } + + var _enable = function(update) { + var top = _getOption('top'); + top = top ? parseInt(top) : 0; + + var left = _getOption('left'); + var right = _getOption('right'); + var width = _getOption('width'); + var zindex = _getOption('zindex'); + var dependencies = _getOption('dependencies'); + var classes = _getOption('class'); + + var height = _calculateHeight(); + var heightOffset = _getOption('height-offset'); + heightOffset = heightOffset ? parseInt(heightOffset) : 0; + + if (height + heightOffset + top > KTUtil.getViewPort().height) { + return false; + } + + if ( update !== true && _getOption('animation') === true ) { + KTUtil.css(the.element, 'animationDuration', _getOption('animationSpeed')); + KTUtil.animateClass(the.element, 'animation ' + _getOption('animationClass')); + } + + if ( classes !== null ) { + KTUtil.addClass(the.element, classes); + } + + if ( zindex !== null ) { + KTUtil.css(the.element, 'z-index', zindex); + KTUtil.css(the.element, 'position', 'fixed'); + } + + if ( top >= 0 ) { + KTUtil.css(the.element, 'top', String(top) + 'px'); + } + + if ( width !== null ) { + if (width['target']) { + var targetElement = document.querySelector(width['target']); + if (targetElement) { + width = KTUtil.css(targetElement, 'width'); + } + } + + KTUtil.css(the.element, 'width', width); + } + + if ( left !== null ) { + if ( String(left).toLowerCase() === 'auto' ) { + var offsetLeft = KTUtil.offset(the.element).left; + + if ( offsetLeft >= 0 ) { + KTUtil.css(the.element, 'left', String(offsetLeft) + 'px'); + } + } else { + KTUtil.css(the.element, 'left', left); + } + } + + if ( right !== null ) { + KTUtil.css(the.element, 'right', right); + } + + // Height dependencies + if ( dependencies !== null ) { + var dependencyElements = document.querySelectorAll(dependencies); + + if ( dependencyElements && dependencyElements.length > 0 ) { + for ( var i = 0, len = dependencyElements.length; i < len; i++ ) { + KTUtil.css(dependencyElements[i], 'padding-top', String(height) + 'px'); + } + } + } + } + + var _disable = function() { + KTUtil.css(the.element, 'top', ''); + KTUtil.css(the.element, 'width', ''); + KTUtil.css(the.element, 'left', ''); + KTUtil.css(the.element, 'right', ''); + KTUtil.css(the.element, 'z-index', ''); + KTUtil.css(the.element, 'position', ''); + + var dependencies = _getOption('dependencies'); + var classes = _getOption('class'); + + if ( classes !== null ) { + KTUtil.removeClass(the.element, classes); + } + + // Height dependencies + if ( dependencies !== null ) { + var dependencyElements = document.querySelectorAll(dependencies); + + if ( dependencyElements && dependencyElements.length > 0 ) { + for ( var i = 0, len = dependencyElements.length; i < len; i++ ) { + KTUtil.css(dependencyElements[i], 'padding-top', ''); + } + } + } + } + + var _check = function() { + + } + + var _calculateHeight = function() { + var height = parseFloat(KTUtil.css(the.element, 'height')); + + height = height + parseFloat(KTUtil.css(the.element, 'margin-top')); + height = height + parseFloat(KTUtil.css(the.element, 'margin-bottom')); + + if (KTUtil.css(element, 'border-top')) { + height = height + parseFloat(KTUtil.css(the.element, 'border-top')); + } + + if (KTUtil.css(element, 'border-bottom')) { + height = height + parseFloat(KTUtil.css(the.element, 'border-bottom')); + } + + return height; + } + + var _getOption = function(name) { + if ( the.element.hasAttribute('data-kt-sticky-' + name) === true ) { + var attr = the.element.getAttribute('data-kt-sticky-' + name); + var value = KTUtil.getResponsiveValue(attr); + + if ( value !== null && String(value) === 'true' ) { + value = true; + } else if ( value !== null && String(value) === 'false' ) { + value = false; + } + + return value; + } else { + var optionName = KTUtil.snakeToCamel(name); + + if ( the.options[optionName] ) { + return KTUtil.getResponsiveValue(the.options[optionName]); + } else { + return null; + } + } + } + + var _destroy = function() { + window.removeEventListener('scroll', _scroll); + KTUtil.data(the.element).remove('sticky'); + } + + // Construct Class + _construct(); + + /////////////////////// + // ** Public API ** // + /////////////////////// + + // Methods + the.update = function() { + if ( document.body.hasAttribute(the.attributeName) === true ) { + _disable(); + document.body.removeAttribute(the.attributeName); + document.body.removeAttribute(the.attributeName2); + _enable(true); + document.body.setAttribute(the.attributeName, 'on'); + document.body.setAttribute(the.attributeName2, 'on'); + } + } + + the.destroy = function() { + return _destroy(); + } + + // Event API + the.on = function(name, handler) { + return KTEventHandler.on(the.element, name, handler); + } + + the.one = function(name, handler) { + return KTEventHandler.one(the.element, name, handler); + } + + the.off = function(name, handlerId) { + return KTEventHandler.off(the.element, name, handlerId); + } + + the.trigger = function(name, event) { + return KTEventHandler.trigger(the.element, name, event, the, event); + } +}; + +// Static methods +KTSticky.getInstance = function(element) { + if ( element !== null && KTUtil.data(element).has('sticky') ) { + return KTUtil.data(element).get('sticky'); + } else { + return null; + } +} + +// Create instances +KTSticky.createInstances = function(selector = '[data-kt-sticky="true"]') { + // Initialize Menus + var elements = document.body.querySelectorAll(selector); + var sticky; + + if ( elements && elements.length > 0 ) { + for (var i = 0, len = elements.length; i < len; i++) { + sticky = new KTSticky(elements[i]); + } + } +} + +// Window resize handler +KTSticky.handleResize = function() { + window.addEventListener('resize', function() { + var timer; + + KTUtil.throttle(timer, function() { + // Locate and update Offcanvas instances on window resize + var elements = document.body.querySelectorAll('[data-kt-sticky="true"]'); + + if ( elements && elements.length > 0 ) { + for (var i = 0, len = elements.length; i < len; i++) { + var sticky = KTSticky.getInstance(elements[i]); + if (sticky) { + sticky.update(); + } + } + } + }, 200); + }); +} + +// Global initialization +KTSticky.init = function() { + KTSticky.createInstances(); + + if (KTStickyHandlersInitialized === false) { + KTSticky.handleResize(); + KTStickyHandlersInitialized = true; + } +}; + +// Webpack support +if (typeof module !== 'undefined' && typeof module.exports !== 'undefined') { + module.exports = KTSticky; +} diff --git a/resources/_keenthemes/src/js/components/swapper.js b/resources/_keenthemes/src/js/components/swapper.js new file mode 100644 index 0000000..d00a89b --- /dev/null +++ b/resources/_keenthemes/src/js/components/swapper.js @@ -0,0 +1,180 @@ +"use strict"; + +var KTSwapperHandlersInitialized = false; + +// Class definition +var KTSwapper = function(element, options) { + //////////////////////////// + // ** Private Variables ** // + //////////////////////////// + var the = this; + + if ( typeof element === "undefined" || element === null ) { + return; + } + + // Default Options + var defaultOptions = { + mode: 'append' + }; + + //////////////////////////// + // ** Private Methods ** // + //////////////////////////// + + var _construct = function() { + if ( KTUtil.data(element).has('swapper') === true ) { + the = KTUtil.data(element).get('swapper'); + } else { + _init(); + } + } + + var _init = function() { + the.element = element; + the.options = KTUtil.deepExtend({}, defaultOptions, options); + + // Set initialized + the.element.setAttribute('data-kt-swapper', 'true'); + + // Initial update + _update(); + + // Bind Instance + KTUtil.data(the.element).set('swapper', the); + } + + var _update = function(e) { + var parentSelector = _getOption('parent'); + + var mode = _getOption('mode'); + var parentElement = parentSelector ? document.querySelector(parentSelector) : null; + + + if (parentElement && element.parentNode !== parentElement) { + if (mode === 'prepend') { + parentElement.prepend(element); + } else if (mode === 'append') { + parentElement.append(element); + } + } + } + + var _getOption = function(name) { + if ( the.element.hasAttribute('data-kt-swapper-' + name) === true ) { + var attr = the.element.getAttribute('data-kt-swapper-' + name); + var value = KTUtil.getResponsiveValue(attr); + + if ( value !== null && String(value) === 'true' ) { + value = true; + } else if ( value !== null && String(value) === 'false' ) { + value = false; + } + + return value; + } else { + var optionName = KTUtil.snakeToCamel(name); + + if ( the.options[optionName] ) { + return KTUtil.getResponsiveValue(the.options[optionName]); + } else { + return null; + } + } + } + + var _destroy = function() { + KTUtil.data(the.element).remove('swapper'); + } + + // Construct Class + _construct(); + + /////////////////////// + // ** Public API ** // + /////////////////////// + + // Methods + the.update = function() { + _update(); + } + + the.destroy = function() { + return _destroy(); + } + + // Event API + the.on = function(name, handler) { + return KTEventHandler.on(the.element, name, handler); + } + + the.one = function(name, handler) { + return KTEventHandler.one(the.element, name, handler); + } + + the.off = function(name, handlerId) { + return KTEventHandler.off(the.element, name, handlerId); + } + + the.trigger = function(name, event) { + return KTEventHandler.trigger(the.element, name, event, the, event); + } +}; + +// Static methods +KTSwapper.getInstance = function(element) { + if ( element !== null && KTUtil.data(element).has('swapper') ) { + return KTUtil.data(element).get('swapper'); + } else { + return null; + } +} + +// Create instances +KTSwapper.createInstances = function(selector = '[data-kt-swapper="true"]') { + // Initialize Menus + var elements = document.querySelectorAll(selector); + var swapper; + + if ( elements && elements.length > 0 ) { + for (var i = 0, len = elements.length; i < len; i++) { + swapper = new KTSwapper(elements[i]); + } + } +} + +// Window resize handler +KTSwapper.handleResize = function() { + window.addEventListener('resize', function() { + var timer; + + KTUtil.throttle(timer, function() { + // Locate and update Offcanvas instances on window resize + var elements = document.querySelectorAll('[data-kt-swapper="true"]'); + + if ( elements && elements.length > 0 ) { + for (var i = 0, len = elements.length; i < len; i++) { + var swapper = KTSwapper.getInstance(elements[i]); + if (swapper) { + swapper.update(); + } + } + } + }, 200); + }); +}; + +// Global initialization +KTSwapper.init = function() { + KTSwapper.createInstances(); + + if (KTSwapperHandlersInitialized === false) { + KTSwapper.handleResize(); + KTSwapperHandlersInitialized = true; + } +}; + +// Webpack support +if (typeof module !== 'undefined' && typeof module.exports !== 'undefined') { + module.exports = KTSwapper; +} diff --git a/resources/_keenthemes/src/js/components/toggle.js b/resources/_keenthemes/src/js/components/toggle.js new file mode 100644 index 0000000..e8b5a7c --- /dev/null +++ b/resources/_keenthemes/src/js/components/toggle.js @@ -0,0 +1,216 @@ +"use strict"; + +// Class definition +var KTToggle = function(element, options) { + //////////////////////////// + // ** Private variables ** // + //////////////////////////// + var the = this; + + if (!element) { + return; + } + + // Default Options + var defaultOptions = { + saveState: true + }; + + //////////////////////////// + // ** Private methods ** // + //////////////////////////// + + var _construct = function() { + if ( KTUtil.data(element).has('toggle') === true ) { + the = KTUtil.data(element).get('toggle'); + } else { + _init(); + } + } + + var _init = function() { + // Variables + the.options = KTUtil.deepExtend({}, defaultOptions, options); + the.uid = KTUtil.getUniqueId('toggle'); + + // Elements + the.element = element; + + the.target = document.querySelector(the.element.getAttribute('data-kt-toggle-target')) ? document.querySelector(the.element.getAttribute('data-kt-toggle-target')) : the.element; + the.state = the.element.hasAttribute('data-kt-toggle-state') ? the.element.getAttribute('data-kt-toggle-state') : ''; + the.mode = the.element.hasAttribute('data-kt-toggle-mode') ? the.element.getAttribute('data-kt-toggle-mode') : ''; + the.attribute = 'data-kt-' + the.element.getAttribute('data-kt-toggle-name'); + + // Event Handlers + _handlers(); + + // Bind Instance + KTUtil.data(the.element).set('toggle', the); + } + + var _handlers = function() { + KTUtil.addEvent(the.element, 'click', function(e) { + e.preventDefault(); + + if ( the.mode !== '' ) { + if ( the.mode === 'off' && _isEnabled() === false ) { + _toggle(); + } else if ( the.mode === 'on' && _isEnabled() === true ) { + _toggle(); + } + } else { + _toggle(); + } + }); + } + + // Event handlers + var _toggle = function() { + // Trigger "after.toggle" event + KTEventHandler.trigger(the.element, 'kt.toggle.change', the); + + if ( _isEnabled() ) { + _disable(); + } else { + _enable(); + } + + // Trigger "before.toggle" event + KTEventHandler.trigger(the.element, 'kt.toggle.changed', the); + + return the; + } + + var _enable = function() { + if ( _isEnabled() === true ) { + return; + } + + KTEventHandler.trigger(the.element, 'kt.toggle.enable', the); + + the.target.setAttribute(the.attribute, 'on'); + + if (the.state.length > 0) { + the.element.classList.add(the.state); + } + + if ( typeof KTCookie !== 'undefined' && the.options.saveState === true ) { + KTCookie.set(the.attribute, 'on'); + } + + KTEventHandler.trigger(the.element, 'kt.toggle.enabled', the); + + return the; + } + + var _disable = function() { + if ( _isEnabled() === false ) { + return; + } + + KTEventHandler.trigger(the.element, 'kt.toggle.disable', the); + + the.target.removeAttribute(the.attribute); + + if (the.state.length > 0) { + the.element.classList.remove(the.state); + } + + if ( typeof KTCookie !== 'undefined' && the.options.saveState === true ) { + KTCookie.remove(the.attribute); + } + + KTEventHandler.trigger(the.element, 'kt.toggle.disabled', the); + + return the; + } + + var _isEnabled = function() { + return (String(the.target.getAttribute(the.attribute)).toLowerCase() === 'on'); + } + + var _destroy = function() { + KTUtil.data(the.element).remove('toggle'); + } + + // Construct class + _construct(); + + /////////////////////// + // ** Public API ** // + /////////////////////// + + // Plugin API + the.toggle = function() { + return _toggle(); + } + + the.enable = function() { + return _enable(); + } + + the.disable = function() { + return _disable(); + } + + the.isEnabled = function() { + return _isEnabled(); + } + + the.goElement = function() { + return the.element; + } + + the.destroy = function() { + return _destroy(); + } + + // Event API + the.on = function(name, handler) { + return KTEventHandler.on(the.element, name, handler); + } + + the.one = function(name, handler) { + return KTEventHandler.one(the.element, name, handler); + } + + the.off = function(name, handlerId) { + return KTEventHandler.off(the.element, name, handlerId); + } + + the.trigger = function(name, event) { + return KTEventHandler.trigger(the.element, name, event, the, event); + } +}; + +// Static methods +KTToggle.getInstance = function(element) { + if ( element !== null && KTUtil.data(element).has('toggle') ) { + return KTUtil.data(element).get('toggle'); + } else { + return null; + } +} + +// Create instances +KTToggle.createInstances = function(selector = '[data-kt-toggle]') { + // Get instances + var elements = document.body.querySelectorAll(selector); + + if ( elements && elements.length > 0 ) { + for (var i = 0, len = elements.length; i < len; i++) { + // Initialize instances + new KTToggle(elements[i]); + } + } +} + +// Global initialization +KTToggle.init = function() { + KTToggle.createInstances(); +}; + +// Webpack support +if (typeof module !== 'undefined' && typeof module.exports !== 'undefined') { + module.exports = KTToggle; +} \ No newline at end of file diff --git a/resources/_keenthemes/src/js/components/util.js b/resources/_keenthemes/src/js/components/util.js new file mode 100644 index 0000000..8d4f8cb --- /dev/null +++ b/resources/_keenthemes/src/js/components/util.js @@ -0,0 +1,1602 @@ +"use strict"; + +/** + * @class KTUtil base utilize class that privides helper functions + */ + +// Polyfills + +// Element.matches() polyfill +if (!Element.prototype.matches) { + Element.prototype.matches = function(s) { + var matches = (this.document || this.ownerDocument).querySelectorAll(s), + i = matches.length; + while (--i >= 0 && matches.item(i) !== this) {} + return i > -1; + }; +} + +/** + * Element.closest() polyfill + * https://developer.mozilla.org/en-US/docs/Web/API/Element/closest#Polyfill + */ +if (!Element.prototype.closest) { + Element.prototype.closest = function (s) { + var el = this; + var ancestor = this; + if (!document.documentElement.contains(el)) return null; + do { + if (ancestor.matches(s)) return ancestor; + ancestor = ancestor.parentElement; + } while (ancestor !== null); + return null; + }; +} + +/** + * ChildNode.remove() polyfill + * https://gomakethings.com/removing-an-element-from-the-dom-the-es6-way/ + * @author Chris Ferdinandi + * @license MIT + */ +(function (elem) { + for (var i = 0; i < elem.length; i++) { + if (!window[elem[i]] || 'remove' in window[elem[i]].prototype) continue; + window[elem[i]].prototype.remove = function () { + this.parentNode.removeChild(this); + }; + } +})(['Element', 'CharacterData', 'DocumentType']); + + +// +// requestAnimationFrame polyfill by Erik Möller. +// With fixes from Paul Irish and Tino Zijdel +// +// http://paulirish.com/2011/requestanimationframe-for-smart-animating/ +// http://my.opera.com/emoller/blog/2011/12/20/requestanimationframe-for-smart-er-animating +// +// MIT license +// +(function() { + var lastTime = 0; + var vendors = ['webkit', 'moz']; + for (var x = 0; x < vendors.length && !window.requestAnimationFrame; ++x) { + window.requestAnimationFrame = window[vendors[x] + 'RequestAnimationFrame']; + window.cancelAnimationFrame = + window[vendors[x] + 'CancelAnimationFrame'] || window[vendors[x] + 'CancelRequestAnimationFrame']; + } + + if (!window.requestAnimationFrame) + window.requestAnimationFrame = function(callback) { + var currTime = new Date().getTime(); + var timeToCall = Math.max(0, 16 - (currTime - lastTime)); + var id = window.setTimeout(function() { + callback(currTime + timeToCall); + }, timeToCall); + lastTime = currTime + timeToCall; + return id; + }; + + if (!window.cancelAnimationFrame) + window.cancelAnimationFrame = function(id) { + clearTimeout(id); + }; +}()); + +// Source: https://github.com/jserz/js_piece/blob/master/DOM/ParentNode/prepend()/prepend().md +(function(arr) { + arr.forEach(function(item) { + if (item.hasOwnProperty('prepend')) { + return; + } + Object.defineProperty(item, 'prepend', { + configurable: true, + enumerable: true, + writable: true, + value: function prepend() { + var argArr = Array.prototype.slice.call(arguments), + docFrag = document.createDocumentFragment(); + + argArr.forEach(function(argItem) { + var isNode = argItem instanceof Node; + docFrag.appendChild(isNode ? argItem : document.createTextNode(String(argItem))); + }); + + this.insertBefore(docFrag, this.firstChild); + } + }); + }); +})([Element.prototype, Document.prototype, DocumentFragment.prototype]); + +// getAttributeNames +if (Element.prototype.getAttributeNames == undefined) { + Element.prototype.getAttributeNames = function () { + var attributes = this.attributes; + var length = attributes.length; + var result = new Array(length); + for (var i = 0; i < length; i++) { + result[i] = attributes[i].name; + } + return result; + }; +} + +// Global variables +window.KTUtilElementDataStore = {}; +window.KTUtilElementDataStoreID = 0; +window.KTUtilDelegatedEventHandlers = {}; + +var KTUtil = function() { + var resizeHandlers = []; + + /** + * Handle window resize event with some + * delay to attach event handlers upon resize complete + */ + var _windowResizeHandler = function() { + var _runResizeHandlers = function() { + // reinitialize other subscribed elements + for (var i = 0; i < resizeHandlers.length; i++) { + var each = resizeHandlers[i]; + each.call(); + } + }; + + var timer; + + window.addEventListener('resize', function() { + KTUtil.throttle(timer, function() { + _runResizeHandlers(); + }, 200); + }); + }; + + return { + /** + * Class main initializer. + * @param {object} settings. + * @returns null + */ + //main function to initiate the theme + init: function(settings) { + _windowResizeHandler(); + }, + + /** + * Adds window resize event handler. + * @param {function} callback function. + */ + addResizeHandler: function(callback) { + resizeHandlers.push(callback); + }, + + /** + * Removes window resize event handler. + * @param {function} callback function. + */ + removeResizeHandler: function(callback) { + for (var i = 0; i < resizeHandlers.length; i++) { + if (callback === resizeHandlers[i]) { + delete resizeHandlers[i]; + } + } + }, + + /** + * Trigger window resize handlers. + */ + runResizeHandlers: function() { + _runResizeHandlers(); + }, + + resize: function() { + if (typeof(Event) === 'function') { + // modern browsers + window.dispatchEvent(new Event('resize')); + } else { + // for IE and other old browsers + // causes deprecation warning on modern browsers + var evt = window.document.createEvent('UIEvents'); + evt.initUIEvent('resize', true, false, window, 0); + window.dispatchEvent(evt); + } + }, + + /** + * Get GET parameter value from URL. + * @param {string} paramName Parameter name. + * @returns {string} + */ + getURLParam: function(paramName) { + var searchString = window.location.search.substring(1), + i, val, params = searchString.split("&"); + + for (i = 0; i < params.length; i++) { + val = params[i].split("="); + if (val[0] == paramName) { + return unescape(val[1]); + } + } + + return null; + }, + + /** + * Checks whether current device is mobile touch. + * @returns {boolean} + */ + isMobileDevice: function() { + var test = (this.getViewPort().width < this.getBreakpoint('lg') ? true : false); + + if (test === false) { + // For use within normal web clients + test = navigator.userAgent.match(/iPad/i) != null; + } + + return test; + }, + + /** + * Checks whether current device is desktop. + * @returns {boolean} + */ + isDesktopDevice: function() { + return KTUtil.isMobileDevice() ? false : true; + }, + + /** + * Gets browser window viewport size. Ref: + * http://andylangton.co.uk/articles/javascript/get-viewport-size-javascript/ + * @returns {object} + */ + getViewPort: function() { + var e = window, + a = 'inner'; + if (!('innerWidth' in window)) { + a = 'client'; + e = document.documentElement || document.body; + } + + return { + width: e[a + 'Width'], + height: e[a + 'Height'] + }; + }, + + /** + * Checks whether given device mode is currently activated. + * @param {string} mode Responsive mode name(e.g: desktop, + * desktop-and-tablet, tablet, tablet-and-mobile, mobile) + * @returns {boolean} + */ + isBreakpointUp: function(mode) { + var width = this.getViewPort().width; + var breakpoint = this.getBreakpoint(mode); + + return (width >= breakpoint); + }, + + isBreakpointDown: function(mode) { + var width = this.getViewPort().width; + var breakpoint = this.getBreakpoint(mode); + + return (width < breakpoint); + }, + + getViewportWidth: function() { + return this.getViewPort().width; + }, + + /** + * Generates unique ID for give prefix. + * @param {string} prefix Prefix for generated ID + * @returns {boolean} + */ + getUniqueId: function(prefix) { + return prefix + Math.floor(Math.random() * (new Date()).getTime()); + }, + + /** + * Gets window width for give breakpoint mode. + * @param {string} mode Responsive mode name(e.g: xl, lg, md, sm) + * @returns {number} + */ + getBreakpoint: function(breakpoint) { + var value = this.getCssVariableValue('--bs-' + breakpoint); + + if ( value ) { + value = parseInt(value.trim()); + } + + return value; + }, + + /** + * Checks whether object has property matchs given key path. + * @param {object} obj Object contains values paired with given key path + * @param {string} keys Keys path seperated with dots + * @returns {object} + */ + isset: function(obj, keys) { + var stone; + + keys = keys || ''; + + if (keys.indexOf('[') !== -1) { + throw new Error('Unsupported object path notation.'); + } + + keys = keys.split('.'); + + do { + if (obj === undefined) { + return false; + } + + stone = keys.shift(); + + if (!obj.hasOwnProperty(stone)) { + return false; + } + + obj = obj[stone]; + + } while (keys.length); + + return true; + }, + + /** + * Gets highest z-index of the given element parents + * @param {object} el jQuery element object + * @returns {number} + */ + getHighestZindex: function(el) { + var position, value; + + while (el && el !== document) { + // Ignore z-index if position is set to a value where z-index is ignored by the browser + // This makes behavior of this function consistent across browsers + // WebKit always returns auto if the element is positioned + position = KTUtil.css(el, 'position'); + + if (position === "absolute" || position === "relative" || position === "fixed") { + // IE returns 0 when zIndex is not specified + // other browsers return a string + // we ignore the case of nested elements with an explicit value of 0 + //
+ value = parseInt(KTUtil.css(el, 'z-index')); + + if (!isNaN(value) && value !== 0) { + return value; + } + } + + el = el.parentNode; + } + + return 1; + }, + + /** + * Checks whether the element has any parent with fixed positionfreg + * @param {object} el jQuery element object + * @returns {boolean} + */ + hasFixedPositionedParent: function(el) { + var position; + + while (el && el !== document) { + position = KTUtil.css(el, 'position'); + + if (position === "fixed") { + return true; + } + + el = el.parentNode; + } + + return false; + }, + + /** + * Simulates delay + */ + sleep: function(milliseconds) { + var start = new Date().getTime(); + for (var i = 0; i < 1e7; i++) { + if ((new Date().getTime() - start) > milliseconds) { + break; + } + } + }, + + /** + * Gets randomly generated integer value within given min and max range + * @param {number} min Range start value + * @param {number} max Range end value + * @returns {number} + */ + getRandomInt: function(min, max) { + return Math.floor(Math.random() * (max - min + 1)) + min; + }, + + /** + * Checks whether Angular library is included + * @returns {boolean} + */ + isAngularVersion: function() { + return window.Zone !== undefined ? true : false; + }, + + // Deep extend: $.extend(true, {}, objA, objB); + deepExtend: function(out) { + out = out || {}; + + for (var i = 1; i < arguments.length; i++) { + var obj = arguments[i]; + if (!obj) continue; + + for (var key in obj) { + if (!obj.hasOwnProperty(key)) { + continue; + } + + // based on https://javascriptweblog.wordpress.com/2011/08/08/fixing-the-javascript-typeof-operator/ + if ( Object.prototype.toString.call(obj[key]) === '[object Object]' ) { + out[key] = KTUtil.deepExtend(out[key], obj[key]); + continue; + } + + out[key] = obj[key]; + } + } + + return out; + }, + + // extend: $.extend({}, objA, objB); + extend: function(out) { + out = out || {}; + + for (var i = 1; i < arguments.length; i++) { + if (!arguments[i]) + continue; + + for (var key in arguments[i]) { + if (arguments[i].hasOwnProperty(key)) + out[key] = arguments[i][key]; + } + } + + return out; + }, + + getBody: function() { + return document.getElementsByTagName('body')[0]; + }, + + /** + * Checks whether the element has given classes + * @param {object} el jQuery element object + * @param {string} Classes string + * @returns {boolean} + */ + hasClasses: function(el, classes) { + if (!el) { + return; + } + + var classesArr = classes.split(" "); + + for (var i = 0; i < classesArr.length; i++) { + if (KTUtil.hasClass(el, KTUtil.trim(classesArr[i])) == false) { + return false; + } + } + + return true; + }, + + hasClass: function(el, className) { + if (!el) { + return; + } + + return el.classList ? el.classList.contains(className) : new RegExp('\\b' + className + '\\b').test(el.className); + }, + + addClass: function(el, className) { + if (!el || typeof className === 'undefined') { + return; + } + + var classNames = className.split(' '); + + if (el.classList) { + for (var i = 0; i < classNames.length; i++) { + if (classNames[i] && classNames[i].length > 0) { + el.classList.add(KTUtil.trim(classNames[i])); + } + } + } else if (!KTUtil.hasClass(el, className)) { + for (var x = 0; x < classNames.length; x++) { + el.className += ' ' + KTUtil.trim(classNames[x]); + } + } + }, + + removeClass: function(el, className) { + if (!el || typeof className === 'undefined') { + return; + } + + var classNames = className.split(' '); + + if (el.classList) { + for (var i = 0; i < classNames.length; i++) { + el.classList.remove(KTUtil.trim(classNames[i])); + } + } else if (KTUtil.hasClass(el, className)) { + for (var x = 0; x < classNames.length; x++) { + el.className = el.className.replace(new RegExp('\\b' + KTUtil.trim(classNames[x]) + '\\b', 'g'), ''); + } + } + }, + + triggerCustomEvent: function(el, eventName, data) { + var event; + if (window.CustomEvent) { + event = new CustomEvent(eventName, { + detail: data + }); + } else { + event = document.createEvent('CustomEvent'); + event.initCustomEvent(eventName, true, true, data); + } + + el.dispatchEvent(event); + }, + + triggerEvent: function(node, eventName) { + // Make sure we use the ownerDocument from the provided node to avoid cross-window problems + var doc; + + if (node.ownerDocument) { + doc = node.ownerDocument; + } else if (node.nodeType == 9) { + // the node may be the document itself, nodeType 9 = DOCUMENT_NODE + doc = node; + } else { + throw new Error("Invalid node passed to fireEvent: " + node.id); + } + + if (node.dispatchEvent) { + // Gecko-style approach (now the standard) takes more work + var eventClass = ""; + + // Different events have different event classes. + // If this switch statement can't map an eventName to an eventClass, + // the event firing is going to fail. + switch (eventName) { + case "click": // Dispatching of 'click' appears to not work correctly in Safari. Use 'mousedown' or 'mouseup' instead. + case "mouseenter": + case "mouseleave": + case "mousedown": + case "mouseup": + eventClass = "MouseEvents"; + break; + + case "focus": + case "change": + case "blur": + case "select": + eventClass = "HTMLEvents"; + break; + + default: + throw "fireEvent: Couldn't find an event class for event '" + eventName + "'."; + break; + } + var event = doc.createEvent(eventClass); + + var bubbles = eventName == "change" ? false : true; + event.initEvent(eventName, bubbles, true); // All events created as bubbling and cancelable. + + event.synthetic = true; // allow detection of synthetic events + // The second parameter says go ahead with the default action + node.dispatchEvent(event, true); + } else if (node.fireEvent) { + // IE-old school style + var event = doc.createEventObject(); + event.synthetic = true; // allow detection of synthetic events + node.fireEvent("on" + eventName, event); + } + }, + + index: function( el ){ + var c = el.parentNode.children, i = 0; + for(; i < c.length; i++ ) + if( c[i] == el ) return i; + }, + + trim: function(string) { + return string.trim(); + }, + + eventTriggered: function(e) { + if (e.currentTarget.dataset.triggered) { + return true; + } else { + e.currentTarget.dataset.triggered = true; + + return false; + } + }, + + remove: function(el) { + if (el && el.parentNode) { + el.parentNode.removeChild(el); + } + }, + + find: function(parent, query) { + if ( parent !== null) { + return parent.querySelector(query); + } else { + return null; + } + }, + + findAll: function(parent, query) { + if ( parent !== null ) { + return parent.querySelectorAll(query); + } else { + return null; + } + }, + + insertAfter: function(el, referenceNode) { + return referenceNode.parentNode.insertBefore(el, referenceNode.nextSibling); + }, + + parents: function(elem, selector) { + // Set up a parent array + var parents = []; + + // Push each parent element to the array + for ( ; elem && elem !== document; elem = elem.parentNode ) { + if (selector) { + if (elem.matches(selector)) { + parents.push(elem); + } + continue; + } + parents.push(elem); + } + + // Return our parent array + return parents; + }, + + children: function(el, selector, log) { + if (!el || !el.childNodes) { + return null; + } + + var result = [], + i = 0, + l = el.childNodes.length; + + for (var i; i < l; ++i) { + if (el.childNodes[i].nodeType == 1 && KTUtil.matches(el.childNodes[i], selector, log)) { + result.push(el.childNodes[i]); + } + } + + return result; + }, + + child: function(el, selector, log) { + var children = KTUtil.children(el, selector, log); + + return children ? children[0] : null; + }, + + matches: function(el, selector, log) { + var p = Element.prototype; + var f = p.matches || p.webkitMatchesSelector || p.mozMatchesSelector || p.msMatchesSelector || function(s) { + return [].indexOf.call(document.querySelectorAll(s), this) !== -1; + }; + + if (el && el.tagName) { + return f.call(el, selector); + } else { + return false; + } + }, + + data: function(el) { + return { + set: function(name, data) { + if (!el) { + return; + } + + if (el.customDataTag === undefined) { + window.KTUtilElementDataStoreID++; + el.customDataTag = window.KTUtilElementDataStoreID; + } + + if (window.KTUtilElementDataStore[el.customDataTag] === undefined) { + window.KTUtilElementDataStore[el.customDataTag] = {}; + } + + window.KTUtilElementDataStore[el.customDataTag][name] = data; + }, + + get: function(name) { + if (!el) { + return; + } + + if (el.customDataTag === undefined) { + return null; + } + + return this.has(name) ? window.KTUtilElementDataStore[el.customDataTag][name] : null; + }, + + has: function(name) { + if (!el) { + return false; + } + + if (el.customDataTag === undefined) { + return false; + } + + return (window.KTUtilElementDataStore[el.customDataTag] && window.KTUtilElementDataStore[el.customDataTag][name]) ? true : false; + }, + + remove: function(name) { + if (el && this.has(name)) { + delete window.KTUtilElementDataStore[el.customDataTag][name]; + } + } + }; + }, + + outerWidth: function(el, margin) { + var width; + + if (margin === true) { + width = parseFloat(el.offsetWidth); + width += parseFloat(KTUtil.css(el, 'margin-left')) + parseFloat(KTUtil.css(el, 'margin-right')); + + return parseFloat(width); + } else { + width = parseFloat(el.offsetWidth); + + return width; + } + }, + + offset: function(el) { + var rect, win; + + if ( !el ) { + return; + } + + // Return zeros for disconnected and hidden (display: none) elements (gh-2310) + // Support: IE <=11 only + // Running getBoundingClientRect on a + // disconnected node in IE throws an error + + if ( !el.getClientRects().length ) { + return { top: 0, left: 0 }; + } + + // Get document-relative position by adding viewport scroll to viewport-relative gBCR + rect = el.getBoundingClientRect(); + win = el.ownerDocument.defaultView; + + return { + top: rect.top + win.pageYOffset, + left: rect.left + win.pageXOffset, + right: window.innerWidth - (el.offsetLeft + el.offsetWidth) + }; + }, + + height: function(el) { + return KTUtil.css(el, 'height'); + }, + + outerHeight: function(el, withMargin) { + var height = el.offsetHeight; + var style; + + if (typeof withMargin !== 'undefined' && withMargin === true) { + style = getComputedStyle(el); + height += parseInt(style.marginTop) + parseInt(style.marginBottom); + + return height; + } else { + return height; + } + }, + + visible: function(el) { + return !(el.offsetWidth === 0 && el.offsetHeight === 0); + }, + + isVisibleInContainer: function (el, container, offset = 0) { + const eleTop = el.offsetTop; + const eleBottom = eleTop + el.clientHeight + offset; + const containerTop = container.scrollTop; + const containerBottom = containerTop + container.clientHeight; + + // The element is fully visible in the container + return ( + (eleTop >= containerTop && eleBottom <= containerBottom) + ); + }, + + getRelativeTopPosition: function (el, container) { + return el.offsetTop - container.offsetTop; + }, + + attr: function(el, name, value) { + if (el == undefined) { + return; + } + + if (value !== undefined) { + el.setAttribute(name, value); + } else { + return el.getAttribute(name); + } + }, + + hasAttr: function(el, name) { + if (el == undefined) { + return; + } + + return el.getAttribute(name) ? true : false; + }, + + removeAttr: function(el, name) { + if (el == undefined) { + return; + } + + el.removeAttribute(name); + }, + + animate: function(from, to, duration, update, easing, done) { + /** + * TinyAnimate.easings + * Adapted from jQuery Easing + */ + var easings = {}; + var easing; + + easings.linear = function(t, b, c, d) { + return c * t / d + b; + }; + + easing = easings.linear; + + // Early bail out if called incorrectly + if (typeof from !== 'number' || + typeof to !== 'number' || + typeof duration !== 'number' || + typeof update !== 'function') { + return; + } + + // Create mock done() function if necessary + if (typeof done !== 'function') { + done = function() {}; + } + + // Pick implementation (requestAnimationFrame | setTimeout) + var rAF = window.requestAnimationFrame || function(callback) { + window.setTimeout(callback, 1000 / 50); + }; + + // Animation loop + var canceled = false; + var change = to - from; + + function loop(timestamp) { + var time = (timestamp || +new Date()) - start; + + if (time >= 0) { + update(easing(time, from, change, duration)); + } + if (time >= 0 && time >= duration) { + update(to); + done(); + } else { + rAF(loop); + } + } + + update(from); + + // Start animation loop + var start = window.performance && window.performance.now ? window.performance.now() : +new Date(); + + rAF(loop); + }, + + actualCss: function(el, prop, cache) { + var css = ''; + + if (el instanceof HTMLElement === false) { + return; + } + + if (!el.getAttribute('kt-hidden-' + prop) || cache === false) { + var value; + + // the element is hidden so: + // making the el block so we can meassure its height but still be hidden + css = el.style.cssText; + el.style.cssText = 'position: absolute; visibility: hidden; display: block;'; + + if (prop == 'width') { + value = el.offsetWidth; + } else if (prop == 'height') { + value = el.offsetHeight; + } + + el.style.cssText = css; + + // store it in cache + el.setAttribute('kt-hidden-' + prop, value); + + return parseFloat(value); + } else { + // store it in cache + return parseFloat(el.getAttribute('kt-hidden-' + prop)); + } + }, + + actualHeight: function(el, cache) { + return KTUtil.actualCss(el, 'height', cache); + }, + + actualWidth: function(el, cache) { + return KTUtil.actualCss(el, 'width', cache); + }, + + getScroll: function(element, method) { + // The passed in `method` value should be 'Top' or 'Left' + method = 'scroll' + method; + return (element == window || element == document) ? ( + self[(method == 'scrollTop') ? 'pageYOffset' : 'pageXOffset'] || + (browserSupportsBoxModel && document.documentElement[method]) || + document.body[method] + ) : element[method]; + }, + + css: function(el, styleProp, value, important) { + if (!el) { + return; + } + + if (value !== undefined) { + if ( important === true ) { + el.style.setProperty(styleProp, value, 'important'); + } else { + el.style[styleProp] = value; + } + } else { + var defaultView = (el.ownerDocument || document).defaultView; + + // W3C standard way: + if (defaultView && defaultView.getComputedStyle) { + // sanitize property name to css notation + // (hyphen separated words eg. font-Size) + styleProp = styleProp.replace(/([A-Z])/g, "-$1").toLowerCase(); + + return defaultView.getComputedStyle(el, null).getPropertyValue(styleProp); + } else if (el.currentStyle) { // IE + // sanitize property name to camelCase + styleProp = styleProp.replace(/\-(\w)/g, function(str, letter) { + return letter.toUpperCase(); + }); + + value = el.currentStyle[styleProp]; + + // convert other units to pixels on IE + if (/^\d+(em|pt|%|ex)?$/i.test(value)) { + return (function(value) { + var oldLeft = el.style.left, oldRsLeft = el.runtimeStyle.left; + + el.runtimeStyle.left = el.currentStyle.left; + el.style.left = value || 0; + value = el.style.pixelLeft + "px"; + el.style.left = oldLeft; + el.runtimeStyle.left = oldRsLeft; + + return value; + })(value); + } + + return value; + } + } + }, + + slide: function(el, dir, speed, callback, recalcMaxHeight) { + if (!el || (dir == 'up' && KTUtil.visible(el) === false) || (dir == 'down' && KTUtil.visible(el) === true)) { + return; + } + + speed = (speed ? speed : 600); + var calcHeight = KTUtil.actualHeight(el); + var calcPaddingTop = false; + var calcPaddingBottom = false; + + if (KTUtil.css(el, 'padding-top') && KTUtil.data(el).has('slide-padding-top') !== true) { + KTUtil.data(el).set('slide-padding-top', KTUtil.css(el, 'padding-top')); + } + + if (KTUtil.css(el, 'padding-bottom') && KTUtil.data(el).has('slide-padding-bottom') !== true) { + KTUtil.data(el).set('slide-padding-bottom', KTUtil.css(el, 'padding-bottom')); + } + + if (KTUtil.data(el).has('slide-padding-top')) { + calcPaddingTop = parseInt(KTUtil.data(el).get('slide-padding-top')); + } + + if (KTUtil.data(el).has('slide-padding-bottom')) { + calcPaddingBottom = parseInt(KTUtil.data(el).get('slide-padding-bottom')); + } + + if (dir == 'up') { // up + el.style.cssText = 'display: block; overflow: hidden;'; + + if (calcPaddingTop) { + KTUtil.animate(0, calcPaddingTop, speed, function(value) { + el.style.paddingTop = (calcPaddingTop - value) + 'px'; + }, 'linear'); + } + + if (calcPaddingBottom) { + KTUtil.animate(0, calcPaddingBottom, speed, function(value) { + el.style.paddingBottom = (calcPaddingBottom - value) + 'px'; + }, 'linear'); + } + + KTUtil.animate(0, calcHeight, speed, function(value) { + el.style.height = (calcHeight - value) + 'px'; + }, 'linear', function() { + el.style.height = ''; + el.style.display = 'none'; + + if (typeof callback === 'function') { + callback(); + } + }); + + + } else if (dir == 'down') { // down + el.style.cssText = 'display: block; overflow: hidden;'; + + if (calcPaddingTop) { + KTUtil.animate(0, calcPaddingTop, speed, function(value) {// + el.style.paddingTop = value + 'px'; + }, 'linear', function() { + el.style.paddingTop = ''; + }); + } + + if (calcPaddingBottom) { + KTUtil.animate(0, calcPaddingBottom, speed, function(value) { + el.style.paddingBottom = value + 'px'; + }, 'linear', function() { + el.style.paddingBottom = ''; + }); + } + + KTUtil.animate(0, calcHeight, speed, function(value) { + el.style.height = value + 'px'; + }, 'linear', function() { + el.style.height = ''; + el.style.display = ''; + el.style.overflow = ''; + + if (typeof callback === 'function') { + callback(); + } + }); + } + }, + + slideUp: function(el, speed, callback) { + KTUtil.slide(el, 'up', speed, callback); + }, + + slideDown: function(el, speed, callback) { + KTUtil.slide(el, 'down', speed, callback); + }, + + show: function(el, display) { + if (typeof el !== 'undefined') { + el.style.display = (display ? display : 'block'); + } + }, + + hide: function(el) { + if (typeof el !== 'undefined') { + el.style.display = 'none'; + } + }, + + addEvent: function(el, type, handler, one) { + if (typeof el !== 'undefined' && el !== null) { + el.addEventListener(type, handler); + } + }, + + removeEvent: function(el, type, handler) { + if (el !== null) { + el.removeEventListener(type, handler); + } + }, + + on: function(element, selector, event, handler) { + if ( element === null ) { + return; + } + + var eventId = KTUtil.getUniqueId('event'); + + window.KTUtilDelegatedEventHandlers[eventId] = function(e) { + var targets = element.querySelectorAll(selector); + var target = e.target; + + while ( target && target !== element ) { + for ( var i = 0, j = targets.length; i < j; i++ ) { + if ( target === targets[i] ) { + handler.call(target, e); + } + } + + target = target.parentNode; + } + } + + KTUtil.addEvent(element, event, window.KTUtilDelegatedEventHandlers[eventId]); + + return eventId; + }, + + off: function(element, event, eventId) { + if (!element || !window.KTUtilDelegatedEventHandlers[eventId]) { + return; + } + + KTUtil.removeEvent(element, event, window.KTUtilDelegatedEventHandlers[eventId]); + + delete window.KTUtilDelegatedEventHandlers[eventId]; + }, + + one: function onetime(el, type, callback) { + el.addEventListener(type, function callee(e) { + // remove event + if (e.target && e.target.removeEventListener) { + e.target.removeEventListener(e.type, callee); + } + + // need to verify from https://themeforest.net/author_dashboard#comment_23615588 + if (el && el.removeEventListener) { + e.currentTarget.removeEventListener(e.type, callee); + } + + // call handler + return callback(e); + }); + }, + + hash: function(str) { + var hash = 0, + i, chr; + + if (str.length === 0) return hash; + for (i = 0; i < str.length; i++) { + chr = str.charCodeAt(i); + hash = ((hash << 5) - hash) + chr; + hash |= 0; // Convert to 32bit integer + } + + return hash; + }, + + animateClass: function(el, animationName, callback) { + var animation; + var animations = { + animation: 'animationend', + OAnimation: 'oAnimationEnd', + MozAnimation: 'mozAnimationEnd', + WebkitAnimation: 'webkitAnimationEnd', + msAnimation: 'msAnimationEnd', + }; + + for (var t in animations) { + if (el.style[t] !== undefined) { + animation = animations[t]; + } + } + + KTUtil.addClass(el, animationName); + + KTUtil.one(el, animation, function() { + KTUtil.removeClass(el, animationName); + }); + + if (callback) { + KTUtil.one(el, animation, callback); + } + }, + + transitionEnd: function(el, callback) { + var transition; + var transitions = { + transition: 'transitionend', + OTransition: 'oTransitionEnd', + MozTransition: 'mozTransitionEnd', + WebkitTransition: 'webkitTransitionEnd', + msTransition: 'msTransitionEnd' + }; + + for (var t in transitions) { + if (el.style[t] !== undefined) { + transition = transitions[t]; + } + } + + KTUtil.one(el, transition, callback); + }, + + animationEnd: function(el, callback) { + var animation; + var animations = { + animation: 'animationend', + OAnimation: 'oAnimationEnd', + MozAnimation: 'mozAnimationEnd', + WebkitAnimation: 'webkitAnimationEnd', + msAnimation: 'msAnimationEnd' + }; + + for (var t in animations) { + if (el.style[t] !== undefined) { + animation = animations[t]; + } + } + + KTUtil.one(el, animation, callback); + }, + + animateDelay: function(el, value) { + var vendors = ['webkit-', 'moz-', 'ms-', 'o-', '']; + for (var i = 0; i < vendors.length; i++) { + KTUtil.css(el, vendors[i] + 'animation-delay', value); + } + }, + + animateDuration: function(el, value) { + var vendors = ['webkit-', 'moz-', 'ms-', 'o-', '']; + for (var i = 0; i < vendors.length; i++) { + KTUtil.css(el, vendors[i] + 'animation-duration', value); + } + }, + + scrollTo: function(target, offset, duration) { + var duration = duration ? duration : 500; + var targetPos = target ? KTUtil.offset(target).top : 0; + var scrollPos = window.pageYOffset || document.documentElement.scrollTop || document.body.scrollTop || 0; + var from, to; + + if (offset) { + targetPos = targetPos - offset; + } + + from = scrollPos; + to = targetPos; + + KTUtil.animate(from, to, duration, function(value) { + document.documentElement.scrollTop = value; + document.body.parentNode.scrollTop = value; + document.body.scrollTop = value; + }); //, easing, done + }, + + scrollTop: function(offset, duration) { + KTUtil.scrollTo(null, offset, duration); + }, + + isArray: function(obj) { + return obj && Array.isArray(obj); + }, + + isEmpty: function(obj) { + for (var prop in obj) { + if (obj.hasOwnProperty(prop)) { + return false; + } + } + + return true; + }, + + numberString: function(nStr) { + nStr += ''; + var x = nStr.split('.'); + var x1 = x[0]; + var x2 = x.length > 1 ? '.' + x[1] : ''; + var rgx = /(\d+)(\d{3})/; + while (rgx.test(x1)) { + x1 = x1.replace(rgx, '$1' + ',' + '$2'); + } + return x1 + x2; + }, + + isRTL: function() { + return (document.querySelector('html').getAttribute("direction") === 'rtl'); + }, + + snakeToCamel: function(s){ + return s.replace(/(\-\w)/g, function(m){return m[1].toUpperCase();}); + }, + + filterBoolean: function(val) { + // Convert string boolean + if (val === true || val === 'true') { + return true; + } + + if (val === false || val === 'false') { + return false; + } + + return val; + }, + + setHTML: function(el, html) { + el.innerHTML = html; + }, + + getHTML: function(el) { + if (el) { + return el.innerHTML; + } + }, + + getDocumentHeight: function() { + var body = document.body; + var html = document.documentElement; + + return Math.max( body.scrollHeight, body.offsetHeight, html.clientHeight, html.scrollHeight, html.offsetHeight ); + }, + + getScrollTop: function() { + return (document.scrollingElement || document.documentElement).scrollTop; + }, + + colorLighten: function(color, amount) { + const addLight = function(color, amount){ + let cc = parseInt(color,16) + amount; + let c = (cc > 255) ? 255 : (cc); + c = (c.toString(16).length > 1 ) ? c.toString(16) : `0${c.toString(16)}`; + return c; + } + + color = (color.indexOf("#")>=0) ? color.substring(1,color.length) : color; + amount = parseInt((255*amount)/100); + + return color = `#${addLight(color.substring(0,2), amount)}${addLight(color.substring(2,4), amount)}${addLight(color.substring(4,6), amount)}`; + }, + + colorDarken: function(color, amount) { + const subtractLight = function(color, amount){ + let cc = parseInt(color,16) - amount; + let c = (cc < 0) ? 0 : (cc); + c = (c.toString(16).length > 1 ) ? c.toString(16) : `0${c.toString(16)}`; + + return c; + } + + color = (color.indexOf("#")>=0) ? color.substring(1,color.length) : color; + amount = parseInt((255*amount)/100); + + return color = `#${subtractLight(color.substring(0,2), amount)}${subtractLight(color.substring(2,4), amount)}${subtractLight(color.substring(4,6), amount)}`; + }, + + // Throttle function: Input as function which needs to be throttled and delay is the time interval in milliseconds + throttle: function (timer, func, delay) { + // If setTimeout is already scheduled, no need to do anything + if (timer) { + return; + } + + // Schedule a setTimeout after delay seconds + timer = setTimeout(function () { + func(); + + // Once setTimeout function execution is finished, timerId = undefined so that in
+ // the next scroll event function execution can be scheduled by the setTimeout + timer = undefined; + }, delay); + }, + + // Debounce function: Input as function which needs to be debounced and delay is the debounced time in milliseconds + debounce: function (timer, func, delay) { + // Cancels the setTimeout method execution + clearTimeout(timer) + + // Executes the func after delay time. + timer = setTimeout(func, delay); + }, + + parseJson: function(value) { + if (typeof value === 'string') { + value = value.replace(/'/g, "\""); + + var jsonStr = value.replace(/(\w+:)|(\w+ :)/g, function(matched) { + return '"' + matched.substring(0, matched.length - 1) + '":'; + }); + + try { + value = JSON.parse(jsonStr); + } catch(e) { } + } + + return value; + }, + + getResponsiveValue: function(value, defaultValue) { + var width = this.getViewPort().width; + var result = null; + + value = KTUtil.parseJson(value); + + if (typeof value === 'object') { + var resultKey; + var resultBreakpoint = -1; + var breakpoint; + + for (var key in value) { + if (key === 'default') { + breakpoint = 0; + } else { + breakpoint = this.getBreakpoint(key) ? this.getBreakpoint(key) : parseInt(key); + } + + if (breakpoint <= width && breakpoint > resultBreakpoint) { + resultKey = key; + resultBreakpoint = breakpoint; + } + } + + if (resultKey) { + result = value[resultKey]; + } else { + result = value; + } + } else { + result = value; + } + + return result; + }, + + each: function(array, callback) { + return [].slice.call(array).map(callback); + }, + + getSelectorMatchValue: function(value) { + var result = null; + value = KTUtil.parseJson(value); + + if ( typeof value === 'object' ) { + // Match condition + if ( value['match'] !== undefined ) { + var selector = Object.keys(value['match'])[0]; + value = Object.values(value['match'])[0]; + + if ( document.querySelector(selector) !== null ) { + result = value; + } + } + } else { + result = value; + } + + return result; + }, + + getConditionalValue: function(value) { + var value = KTUtil.parseJson(value); + var result = KTUtil.getResponsiveValue(value); + + if ( result !== null && result['match'] !== undefined ) { + result = KTUtil.getSelectorMatchValue(result); + } + + if ( result === null && value !== null && value['default'] !== undefined ) { + result = value['default']; + } + + return result; + }, + + getCssVariableValue: function(variableName) { + var hex = getComputedStyle(document.documentElement).getPropertyValue(variableName); + if ( hex && hex.length > 0 ) { + hex = hex.trim(); + } + + return hex; + }, + + isInViewport: function(element) { + var rect = element.getBoundingClientRect(); + + return ( + rect.top >= 0 && + rect.left >= 0 && + rect.bottom <= (window.innerHeight || document.documentElement.clientHeight) && + rect.right <= (window.innerWidth || document.documentElement.clientWidth) + ); + }, + + isPartiallyInViewport: function(element) { + let x = element.getBoundingClientRect().left; + let y = element.getBoundingClientRect().top; + let ww = Math.max(document.documentElement.clientWidth, window.innerWidth || 0); + let hw = Math.max(document.documentElement.clientHeight, window.innerHeight || 0); + let w = element.clientWidth; + let h = element.clientHeight; + + return ( + (y < hw && + y + h > 0) && + (x < ww && + x + w > 0) + ); + }, + + onDOMContentLoaded: function(callback) { + if (document.readyState === 'loading') { + document.addEventListener('DOMContentLoaded', callback); + } else { + callback(); + } + }, + + inIframe: function() { + try { + return window.self !== window.top; + } catch (e) { + return true; + } + }, + + isHexColor(code) { + return /^#[0-9A-F]{6}$/i.test(code); + } + } +}(); + +// Webpack support +if (typeof module !== 'undefined' && typeof module.exports !== 'undefined') { + module.exports = KTUtil; +} \ No newline at end of file diff --git a/resources/_keenthemes/src/js/custom/account/api-keys/api-keys.js b/resources/_keenthemes/src/js/custom/account/api-keys/api-keys.js new file mode 100644 index 0000000..02e2f86 --- /dev/null +++ b/resources/_keenthemes/src/js/custom/account/api-keys/api-keys.js @@ -0,0 +1,68 @@ +"use strict"; + +// Class definition +var KTAccountAPIKeys = function () { + // Private functions + var initLicenceCopy = function() { + KTUtil.each(document.querySelectorAll('#kt_api_keys_table [data-action="copy"]'), function(button) { + var tr = button.closest('tr'); + var license = KTUtil.find(tr, '[data-bs-target="license"]'); + + var clipboard = new ClipboardJS(button, { + target: license, + text: function() { + return license.innerHTML; + } + }); + + clipboard.on('success', function(e) { + // Icons + var copyIcon = button.querySelector('.ki-copy'); + var checkIcon = button.querySelector('.ki-check'); + + // exit if check icon is already shown + if (checkIcon) { + return; + } + + // Create check icon + checkIcon = document.createElement('i'); + checkIcon.classList.add('ki-solid'); + checkIcon.classList.add('ki-check'); + checkIcon.classList.add('fs-2'); + + // Append check icon + button.appendChild(checkIcon); + + // Highlight target + license.classList.add('text-success'); + + // Hide copy icon + copyIcon.classList.add('d-none'); + + // Set 3 seconds timeout to hide the check icon and show copy icon back + setTimeout(function() { + // Remove check icon + copyIcon.classList.remove('d-none'); + // Show check icon back + button.removeChild(checkIcon); + + // Remove highlight + license.classList.remove('text-success'); + }, 3000); + }); + }); + } + + // Public methods + return { + init: function () { + initLicenceCopy(); + } + } +}(); + +// On document ready +KTUtil.onDOMContentLoaded(function() { + KTAccountAPIKeys.init(); +}); diff --git a/resources/_keenthemes/src/js/custom/account/billing/general.js b/resources/_keenthemes/src/js/custom/account/billing/general.js new file mode 100644 index 0000000..f8265fe --- /dev/null +++ b/resources/_keenthemes/src/js/custom/account/billing/general.js @@ -0,0 +1,138 @@ +"use strict"; + +// Class definition +var KTAccountBillingGeneral = function () { + // Private variables + var cancelSubscriptionButton; + + // Private functions + var handlePlan = function () { + cancelSubscriptionButton.addEventListener('click', function (e) { + e.preventDefault(); + + swal.fire({ + text: "Are you sure you would like to cancel your subscription ?", + icon: "warning", + buttonsStyling: false, + showDenyButton: true, + confirmButtonText: "Yes", + denyButtonText: 'No', + customClass: { + confirmButton: "btn btn-primary", + denyButton: "btn btn-light-danger" + } + }).then((result) => { + if (result.isConfirmed) { + Swal.fire({ + text: 'Your subscription has been canceled.', + icon: 'success', + confirmButtonText: "Ok", + buttonsStyling: false, + customClass: { + confirmButton: "btn btn-light-primary" + } + }) + } + }); + }); + } + + var handleCardDelete = function() { + KTUtil.on(document.body, '[data-kt-billing-action="card-delete"]', 'click', function(e) { + e.preventDefault(); + + var el = this; + + swal.fire({ + text: "Are you sure you would like to delete selected card ?", + icon: "warning", + buttonsStyling: false, + showDenyButton: true, + confirmButtonText: "Yes", + denyButtonText: 'No', + customClass: { + confirmButton: "btn btn-primary", + denyButton: "btn btn-light-danger" + } + }).then((result) => { + if (result.isConfirmed) { + el.setAttribute('data-kt-indicator', 'on'); + el.disabled = true; + + setTimeout(function() { + Swal.fire({ + text: 'Your selected card has been successfully deleted', + icon: 'success', + confirmButtonText: "Ok", + buttonsStyling: false, + customClass: { + confirmButton: "btn btn-light-primary" + } + }).then((result) => { + el.closest('[data-kt-billing-element="card"]').remove(); + }); + }, 2000); + } + }); + }); + } + + var handleAddressDelete = function() { + KTUtil.on(document.body, '[data-kt-billing-action="address-delete"]', 'click', function(e) { + e.preventDefault(); + + var el = this; + + swal.fire({ + text: "Are you sure you would like to delete selected address ?", + icon: "warning", + buttonsStyling: false, + showDenyButton: true, + confirmButtonText: "Yes", + denyButtonText: 'No', + customClass: { + confirmButton: "btn btn-primary", + denyButton: "btn btn-light-danger" + } + }).then((result) => { + if (result.isConfirmed) { + el.setAttribute('data-kt-indicator', 'on'); + el.disabled = true; + + setTimeout(function() { + Swal.fire({ + text: 'Your selected address has been successfully deleted', + icon: 'success', + confirmButtonText: "Ok", + buttonsStyling: false, + customClass: { + confirmButton: "btn btn-light-primary" + } + }).then((result) => { + el.closest('[data-kt-billing-element="address"]').remove(); + }); + }, 2000); + } + }); + }); + } + + // Public methods + return { + init: function () { + cancelSubscriptionButton = document.querySelector('#kt_account_billing_cancel_subscription_btn'); + + if ( cancelSubscriptionButton ) { + handlePlan(); + } + + handleCardDelete(); + handleAddressDelete(); + } + } +}(); + +// On document ready +KTUtil.onDOMContentLoaded(function() { + KTAccountBillingGeneral.init(); +}); diff --git a/resources/_keenthemes/src/js/custom/account/orders/classic.js b/resources/_keenthemes/src/js/custom/account/orders/classic.js new file mode 100644 index 0000000..143e2e6 --- /dev/null +++ b/resources/_keenthemes/src/js/custom/account/orders/classic.js @@ -0,0 +1,108 @@ +"use strict"; + +// Class definition +var KTDatatablesClassic = function () { + // Private functions + + var initClassic = function () { + + // Set date data order + const table = document.getElementById('kt_orders_classic'); + const tableRows = table.querySelectorAll('tbody tr'); + + tableRows.forEach(row => { + const dateRow = row.querySelectorAll('td'); + const realDate = moment(dateRow[1].innerHTML, "MMM D, YYYY").format('x'); + dateRow[1].setAttribute('data-order', realDate); + }); + + // Init datatable --- more info on datatables: https://datatables.net/manual/ + const datatable = $(table).DataTable({ + "info": false, + 'order': [] + }); + + // Filter dropdown elements + const filterOrders = document.getElementById('kt_filter_orders'); + const filterYear = document.getElementById('kt_filter_year'); + + // Filter by order status --- official docs reference: https://datatables.net/reference/api/search() + filterOrders.addEventListener('change', function (e) { + datatable.column(3).search(e.target.value).draw(); + }); + + // Filter by date --- official docs reference: https://momentjs.com/docs/ + var minDate; + var maxDate; + filterYear.addEventListener('change', function (e) { + const value = e.target.value; + switch (value) { + case 'thisyear': { + minDate = moment().startOf('year').format('x'); + maxDate = moment().endOf('year').format('x'); + datatable.draw(); + break; + } + case 'thismonth': { + minDate = moment().startOf('month').format('x'); + maxDate = moment().endOf('month').format('x'); + datatable.draw(); + break; + } + case 'lastmonth': { + minDate = moment().subtract(1, 'months').startOf('month').format('x'); + maxDate = moment().subtract(1, 'months').endOf('month').format('x'); + datatable.draw(); + break; + } + case 'last90days': { + minDate = moment().subtract(30, 'days').format('x'); + maxDate = moment().format('x'); + datatable.draw(); + break; + } + default: { + minDate = moment().subtract(100, 'years').startOf('month').format('x'); + maxDate = moment().add(1, 'months').endOf('month').format('x'); + datatable.draw(); + break; + } + } + }); + + // Date range filter --- offical docs reference: https://datatables.net/examples/plug-ins/range_filtering.html + $.fn.dataTable.ext.search.push( + function (settings, data, dataIndex) { + var min = minDate; + var max = maxDate; + var date = parseFloat(moment(data[1]).format('x')) || 0; // use data for the age column + + if ((isNaN(min) && isNaN(max)) || + (isNaN(min) && date <= max) || + (min <= date && isNaN(max)) || + (min <= date && date <= max)) { + return true; + } + return false; + } + ); + + // Search --- official docs reference: https://datatables.net/reference/api/search() + var filterSearch = document.getElementById('kt_filter_search'); + filterSearch.addEventListener('keyup', function (e) { + datatable.search(e.target.value).draw(); + }); + } + + // Public methods + return { + init: function () { + initClassic(); + } + } +}(); + +// On document ready +KTUtil.onDOMContentLoaded(function() { + KTDatatablesClassic.init(); +}); \ No newline at end of file diff --git a/resources/_keenthemes/src/js/custom/account/referrals/referral-program.js b/resources/_keenthemes/src/js/custom/account/referrals/referral-program.js new file mode 100644 index 0000000..94d09e8 --- /dev/null +++ b/resources/_keenthemes/src/js/custom/account/referrals/referral-program.js @@ -0,0 +1,43 @@ +"use strict"; + +// Class definition +var KTAccountReferralsReferralProgram = function () { + // Private functions + + var initReferralProgrammClipboard = function() { + var button = document.querySelector('#kt_referral_program_link_copy_btn'); + var input = document.querySelector('#kt_referral_link_input'); + var clipboard = new ClipboardJS(button); + + clipboard.on('success', function(e) { + var buttonCaption = button.innerHTML; + //Add bgcolor + input.classList.add('bg-success'); + input.classList.add('text-inverse-success'); + + button.innerHTML = 'Copied!'; + + setTimeout(function() { + button.innerHTML = buttonCaption; + + // Remove bgcolor + input.classList.remove('bg-success'); + input.classList.remove('text-inverse-success'); + }, 3000); // 3seconds + + e.clearSelection(); + }); + } + + // Public methods + return { + init: function () { + initReferralProgrammClipboard(); + } + } +}(); + +// On document ready +KTUtil.onDOMContentLoaded(function() { + KTAccountReferralsReferralProgram.init(); +}); diff --git a/resources/_keenthemes/src/js/custom/account/security/license-usage.js b/resources/_keenthemes/src/js/custom/account/security/license-usage.js new file mode 100644 index 0000000..1a9931e --- /dev/null +++ b/resources/_keenthemes/src/js/custom/account/security/license-usage.js @@ -0,0 +1,68 @@ +"use strict"; + +// Class definition +var KTAccountSecurityLicenseUsage = function () { + // Private functions + var initLicenceCopy = function() { + KTUtil.each(document.querySelectorAll('#kt_security_license_usage_table [data-action="copy"]'), function(button) { + var tr = button.closest('tr'); + var license = KTUtil.find(tr, '[data-bs-target="license"]'); + + var clipboard = new ClipboardJS(button, { + target: license, + text: function() { + return license.innerHTML; + } + }); + + clipboard.on('success', function(e) { + // Icons + var copyIcon = button.querySelector('.ki-copy'); + var checkIcon = button.querySelector('.ki-check'); + + // exit if check icon is already shown + if (checkIcon) { + return; + } + + // Create check icon + checkIcon = document.createElement('i'); + checkIcon.classList.add('ki-solid'); + checkIcon.classList.add('ki-check'); + checkIcon.classList.add('fs-2'); + + // Append check icon + button.appendChild(checkIcon); + + // Highlight target + license.classList.add('text-success'); + + // Hide copy icon + copyIcon.classList.add('d-none'); + + // Set 3 seconds timeout to hide the check icon and show copy icon back + setTimeout(function() { + // Remove check icon + copyIcon.classList.remove('d-none'); + // Show check icon back + button.removeChild(checkIcon); + + // Remove highlight + license.classList.remove('text-success'); + }, 3000); + }); + }); + } + + // Public methods + return { + init: function () { + initLicenceCopy(); + } + } +}(); + +// On document ready +KTUtil.onDOMContentLoaded(function() { + KTAccountSecurityLicenseUsage.init(); +}); diff --git a/resources/_keenthemes/src/js/custom/account/security/security-summary.js b/resources/_keenthemes/src/js/custom/account/security/security-summary.js new file mode 100644 index 0000000..3a0f586 --- /dev/null +++ b/resources/_keenthemes/src/js/custom/account/security/security-summary.js @@ -0,0 +1,155 @@ +"use strict"; + +// Class definition +var KTAccountSecuritySummary = function () { + // Private functions + var initChart = function(tabSelector, chartSelector, data1, data2, initByDefault) { + var element = document.querySelector(chartSelector); + var height = parseInt(KTUtil.css(element, 'height')); + + if (!element) { + return; + } + + var options = { + series: [{ + name: 'Net Profit', + data: data1 + }, { + name: 'Revenue', + data: data2 + }], + chart: { + fontFamily: 'inherit', + type: 'bar', + height: height, + toolbar: { + show: false + } + }, + plotOptions: { + bar: { + horizontal: false, + columnWidth: ['35%'], + borderRadius: 6 + } + }, + legend: { + show: false + }, + dataLabels: { + enabled: false + }, + stroke: { + show: true, + width: 2, + colors: ['transparent'] + }, + xaxis: { + categories: ['Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec'], + axisBorder: { + show: false, + }, + axisTicks: { + show: false + }, + labels: { + style: { + colors: KTUtil.getCssVariableValue('--bs-gray-400'), + fontSize: '12px' + } + } + }, + yaxis: { + labels: { + style: { + colors: KTUtil.getCssVariableValue('--bs-gray-400'), + fontSize: '12px' + } + } + }, + fill: { + opacity: 1 + }, + states: { + normal: { + filter: { + type: 'none', + value: 0 + } + }, + hover: { + filter: { + type: 'none', + value: 0 + } + }, + active: { + allowMultipleDataPointsSelection: false, + filter: { + type: 'none', + value: 0 + } + } + }, + tooltip: { + style: { + fontSize: '12px' + }, + y: { + formatter: function (val) { + return "$" + val + " thousands" + } + } + }, + colors: [KTUtil.getCssVariableValue('--bs-primary'), KTUtil.getCssVariableValue('--bs-gray-200')], + grid: { + borderColor: KTUtil.getCssVariableValue('--bs-gray-200'), + strokeDashArray: 4, + yaxis: { + lines: { + show: true + } + } + } + }; + + var chart = new ApexCharts(element, options); + + var init = false; + var tab = document.querySelector(tabSelector); + + if (initByDefault === true) { + setTimeout(function() { + chart.render(); + init = true; + }, 500); + } + + tab.addEventListener('shown.bs.tab', function (event) { + if (init == false) { + chart.render(); + init = true; + } + }) + } + + // Public methods + return { + init: function () { + initChart('#kt_security_summary_tab_hours_agents', '#kt_security_summary_chart_hours_agents', [50, 70, 90, 117, 80, 65, 80, 90, 115, 95, 70, 84], [50, 70, 90, 117, 80, 65, 70, 90, 115, 95, 70, 84], true); + initChart('#kt_security_summary_tab_hours_clients', '#kt_security_summary_chart_hours_clients', [50, 70, 90, 117, 80, 65, 80, 90, 115, 95, 70, 84], [50, 70, 90, 117, 80, 65, 80, 90, 115, 95, 70, 84], false); + + initChart('#kt_security_summary_tab_day', '#kt_security_summary_chart_day_agents', [50, 70, 80, 100, 90, 65, 80, 90, 115, 95, 70, 84], [50, 70, 90, 117, 60, 65, 80, 90, 100, 95, 70, 84], false); + initChart('#kt_security_summary_tab_day_clients', '#kt_security_summary_chart_day_clients', [50, 70, 100, 90, 80, 65, 80, 90, 115, 95, 70, 84], [50, 70, 90, 115, 80, 65, 80, 90, 115, 95, 70, 84], false); + + initChart('#kt_security_summary_tab_week', '#kt_security_summary_chart_week_agents', [50, 70, 75, 117, 80, 65, 80, 90, 115, 95, 50, 84], [50, 60, 90, 117, 80, 65, 80, 90, 115, 95, 70, 84], false); + initChart('#kt_security_summary_tab_week_clients', '#kt_security_summary_chart_week_clients', [50, 70, 90, 117, 80, 65, 80, 90, 100, 80, 70, 84], [50, 70, 90, 117, 80, 65, 80, 90, 100, 95, 70, 84], false); + } + } +}(); + +// On document ready +KTUtil.onDOMContentLoaded(function() { + KTAccountSecuritySummary.init(); +}); diff --git a/resources/_keenthemes/src/js/custom/account/settings/deactivate-account.js b/resources/_keenthemes/src/js/custom/account/settings/deactivate-account.js new file mode 100644 index 0000000..08a50ce --- /dev/null +++ b/resources/_keenthemes/src/js/custom/account/settings/deactivate-account.js @@ -0,0 +1,116 @@ +"use strict"; + +// Class definition +var KTAccountSettingsDeactivateAccount = function () { + // Private variables + var form; + var validation; + var submitButton; + + // Private functions + var initValidation = function () { + // Init form validation rules. For more info check the FormValidation plugin's official documentation:https://formvalidation.io/ + validation = FormValidation.formValidation( + form, + { + fields: { + deactivate: { + validators: { + notEmpty: { + message: 'Please check the box to deactivate your account' + } + } + } + }, + plugins: { + trigger: new FormValidation.plugins.Trigger(), + submitButton: new FormValidation.plugins.SubmitButton(), + //defaultSubmit: new FormValidation.plugins.DefaultSubmit(), // Uncomment this line to enable normal button submit after form validation + bootstrap: new FormValidation.plugins.Bootstrap5({ + rowSelector: '.fv-row', + eleInvalidClass: '', + eleValidClass: '' + }) + } + } + ); + } + + var handleForm = function () { + submitButton.addEventListener('click', function (e) { + e.preventDefault(); + + validation.validate().then(function (status) { + if (status == 'Valid') { + + swal.fire({ + text: "Are you sure you would like to deactivate your account?", + icon: "warning", + buttonsStyling: false, + showDenyButton: true, + confirmButtonText: "Yes", + denyButtonText: 'No', + customClass: { + confirmButton: "btn btn-light-primary", + denyButton: "btn btn-danger" + } + }).then((result) => { + if (result.isConfirmed) { + Swal.fire({ + text: 'Your account has been deactivated.', + icon: 'success', + confirmButtonText: "Ok", + buttonsStyling: false, + customClass: { + confirmButton: "btn btn-light-primary" + } + }) + } else if (result.isDenied) { + Swal.fire({ + text: 'Account not deactivated.', + icon: 'info', + confirmButtonText: "Ok", + buttonsStyling: false, + customClass: { + confirmButton: "btn btn-light-primary" + } + }) + } + }); + + } else { + swal.fire({ + text: "Sorry, looks like there are some errors detected, please try again.", + icon: "error", + buttonsStyling: false, + confirmButtonText: "Ok, got it!", + customClass: { + confirmButton: "btn btn-light-primary" + } + }); + } + }); + }); + } + + // Public methods + return { + init: function () { + form = document.querySelector('#kt_account_deactivate_form'); + + if (!form) { + return; + } + + submitButton = document.querySelector('#kt_account_deactivate_account_submit'); + + initValidation(); + handleForm(); + } + } +}(); + +// On document ready +KTUtil.onDOMContentLoaded(function() { + KTAccountSettingsDeactivateAccount.init(); +}); diff --git a/resources/_keenthemes/src/js/custom/account/settings/overview.js b/resources/_keenthemes/src/js/custom/account/settings/overview.js new file mode 100644 index 0000000..9c47829 --- /dev/null +++ b/resources/_keenthemes/src/js/custom/account/settings/overview.js @@ -0,0 +1,21 @@ +"use strict"; + +// Class definition +var KTAccountSettingsOverview = function () { + // Private functions + var initSettings = function() { + + } + + // Public methods + return { + init: function () { + initSettings(); + } + } +}(); + +// On document ready +KTUtil.onDOMContentLoaded(function() { + KTAccountSettingsOverview.init(); +}); diff --git a/resources/_keenthemes/src/js/custom/account/settings/profile-details.js b/resources/_keenthemes/src/js/custom/account/settings/profile-details.js new file mode 100644 index 0000000..d70ab38 --- /dev/null +++ b/resources/_keenthemes/src/js/custom/account/settings/profile-details.js @@ -0,0 +1,155 @@ +"use strict"; + +// Class definition +var KTAccountSettingsProfileDetails = function () { + // Private variables + var form; + var submitButton; + var validation; + + // Private functions + var initValidation = function () { + // Init form validation rules. For more info check the FormValidation plugin's official documentation:https://formvalidation.io/ + validation = FormValidation.formValidation( + form, + { + fields: { + fname: { + validators: { + notEmpty: { + message: 'First name is required' + } + } + }, + lname: { + validators: { + notEmpty: { + message: 'Last name is required' + } + } + }, + company: { + validators: { + notEmpty: { + message: 'Company name is required' + } + } + }, + phone: { + validators: { + notEmpty: { + message: 'Contact phone number is required' + } + } + }, + country: { + validators: { + notEmpty: { + message: 'Please select a country' + } + } + }, + timezone: { + validators: { + notEmpty: { + message: 'Please select a timezone' + } + } + }, + 'communication[]': { + validators: { + notEmpty: { + message: 'Please select at least one communication method' + } + } + }, + language: { + validators: { + notEmpty: { + message: 'Please select a language' + } + } + }, + }, + plugins: { + trigger: new FormValidation.plugins.Trigger(), + submitButton: new FormValidation.plugins.SubmitButton(), + //defaultSubmit: new FormValidation.plugins.DefaultSubmit(), // Uncomment this line to enable normal button submit after form validation + bootstrap: new FormValidation.plugins.Bootstrap5({ + rowSelector: '.fv-row', + eleInvalidClass: '', + eleValidClass: '' + }) + } + } + ); + + // Select2 validation integration + $(form.querySelector('[name="country"]')).on('change', function() { + // Revalidate the color field when an option is chosen + validation.revalidateField('country'); + }); + + $(form.querySelector('[name="language"]')).on('change', function() { + // Revalidate the color field when an option is chosen + validation.revalidateField('language'); + }); + + $(form.querySelector('[name="timezone"]')).on('change', function() { + // Revalidate the color field when an option is chosen + validation.revalidateField('timezone'); + }); + } + + var handleForm = function () { + submitButton.addEventListener('click', function (e) { + e.preventDefault(); + + validation.validate().then(function (status) { + if (status == 'Valid') { + + swal.fire({ + text: "Thank you! You've updated your basic info", + icon: "success", + buttonsStyling: false, + confirmButtonText: "Ok, got it!", + customClass: { + confirmButton: "btn fw-bold btn-light-primary" + } + }); + + } else { + swal.fire({ + text: "Sorry, looks like there are some errors detected, please try again.", + icon: "error", + buttonsStyling: false, + confirmButtonText: "Ok, got it!", + customClass: { + confirmButton: "btn fw-bold btn-light-primary" + } + }); + } + }); + }); + } + + // Public methods + return { + init: function () { + form = document.getElementById('kt_account_profile_details_form'); + + if (!form) { + return; + } + + submitButton = form.querySelector('#kt_account_profile_details_submit'); + + initValidation(); + } + } +}(); + +// On document ready +KTUtil.onDOMContentLoaded(function() { + KTAccountSettingsProfileDetails.init(); +}); diff --git a/resources/_keenthemes/src/js/custom/account/settings/signin-methods.js b/resources/_keenthemes/src/js/custom/account/settings/signin-methods.js new file mode 100644 index 0000000..39fc01e --- /dev/null +++ b/resources/_keenthemes/src/js/custom/account/settings/signin-methods.js @@ -0,0 +1,236 @@ +"use strict"; + +// Class definition +var KTAccountSettingsSigninMethods = function () { + var signInForm; + var signInMainEl; + var signInEditEl; + var passwordMainEl; + var passwordEditEl; + var signInChangeEmail; + var signInCancelEmail; + var passwordChange; + var passwordCancel; + + var toggleChangeEmail = function () { + signInMainEl.classList.toggle('d-none'); + signInChangeEmail.classList.toggle('d-none'); + signInEditEl.classList.toggle('d-none'); + } + + var toggleChangePassword = function () { + passwordMainEl.classList.toggle('d-none'); + passwordChange.classList.toggle('d-none'); + passwordEditEl.classList.toggle('d-none'); + } + + // Private functions + var initSettings = function () { + if (!signInMainEl) { + return; + } + + // toggle UI + signInChangeEmail.querySelector('button').addEventListener('click', function () { + toggleChangeEmail(); + }); + + signInCancelEmail.addEventListener('click', function () { + toggleChangeEmail(); + }); + + passwordChange.querySelector('button').addEventListener('click', function () { + toggleChangePassword(); + }); + + passwordCancel.addEventListener('click', function () { + toggleChangePassword(); + }); + } + + var handleChangeEmail = function (e) { + var validation; + + if (!signInForm) { + return; + } + + validation = FormValidation.formValidation( + signInForm, + { + fields: { + emailaddress: { + validators: { + notEmpty: { + message: 'Email is required' + }, + emailAddress: { + message: 'The value is not a valid email address' + } + } + }, + + confirmemailpassword: { + validators: { + notEmpty: { + message: 'Password is required' + } + } + } + }, + + plugins: { //Learn more: https://formvalidation.io/guide/plugins + trigger: new FormValidation.plugins.Trigger(), + bootstrap: new FormValidation.plugins.Bootstrap5({ + rowSelector: '.fv-row' + }) + } + } + ); + + signInForm.querySelector('#kt_signin_submit').addEventListener('click', function (e) { + e.preventDefault(); + console.log('click'); + + validation.validate().then(function (status) { + if (status == 'Valid') { + swal.fire({ + text: "Sent password reset. Please check your email", + icon: "success", + buttonsStyling: false, + confirmButtonText: "Ok, got it!", + customClass: { + confirmButton: "btn font-weight-bold btn-light-primary" + } + }).then(function(){ + signInForm.reset(); + validation.resetForm(); // Reset formvalidation --- more info: https://formvalidation.io/guide/api/reset-form/ + toggleChangeEmail(); + }); + } else { + swal.fire({ + text: "Sorry, looks like there are some errors detected, please try again.", + icon: "error", + buttonsStyling: false, + confirmButtonText: "Ok, got it!", + customClass: { + confirmButton: "btn font-weight-bold btn-light-primary" + } + }); + } + }); + }); + } + + var handleChangePassword = function (e) { + var validation; + + // form elements + var passwordForm = document.getElementById('kt_signin_change_password'); + + if (!passwordForm) { + return; + } + + validation = FormValidation.formValidation( + passwordForm, + { + fields: { + currentpassword: { + validators: { + notEmpty: { + message: 'Current Password is required' + } + } + }, + + newpassword: { + validators: { + notEmpty: { + message: 'New Password is required' + } + } + }, + + confirmpassword: { + validators: { + notEmpty: { + message: 'Confirm Password is required' + }, + identical: { + compare: function() { + return passwordForm.querySelector('[name="newpassword"]').value; + }, + message: 'The password and its confirm are not the same' + } + } + }, + }, + + plugins: { //Learn more: https://formvalidation.io/guide/plugins + trigger: new FormValidation.plugins.Trigger(), + bootstrap: new FormValidation.plugins.Bootstrap5({ + rowSelector: '.fv-row' + }) + } + } + ); + + passwordForm.querySelector('#kt_password_submit').addEventListener('click', function (e) { + e.preventDefault(); + console.log('click'); + + validation.validate().then(function (status) { + if (status == 'Valid') { + swal.fire({ + text: "Sent password reset. Please check your email", + icon: "success", + buttonsStyling: false, + confirmButtonText: "Ok, got it!", + customClass: { + confirmButton: "btn font-weight-bold btn-light-primary" + } + }).then(function(){ + passwordForm.reset(); + validation.resetForm(); // Reset formvalidation --- more info: https://formvalidation.io/guide/api/reset-form/ + toggleChangePassword(); + }); + } else { + swal.fire({ + text: "Sorry, looks like there are some errors detected, please try again.", + icon: "error", + buttonsStyling: false, + confirmButtonText: "Ok, got it!", + customClass: { + confirmButton: "btn font-weight-bold btn-light-primary" + } + }); + } + }); + }); + } + + // Public methods + return { + init: function () { + signInForm = document.getElementById('kt_signin_change_email'); + signInMainEl = document.getElementById('kt_signin_email'); + signInEditEl = document.getElementById('kt_signin_email_edit'); + passwordMainEl = document.getElementById('kt_signin_password'); + passwordEditEl = document.getElementById('kt_signin_password_edit'); + signInChangeEmail = document.getElementById('kt_signin_email_button'); + signInCancelEmail = document.getElementById('kt_signin_cancel'); + passwordChange = document.getElementById('kt_signin_password_button'); + passwordCancel = document.getElementById('kt_password_cancel'); + + initSettings(); + handleChangeEmail(); + handleChangePassword(); + } + } +}(); + +// On document ready +KTUtil.onDOMContentLoaded(function() { + KTAccountSettingsSigninMethods.init(); +}); diff --git a/resources/_keenthemes/src/js/custom/apps/calendar/calendar.js b/resources/_keenthemes/src/js/custom/apps/calendar/calendar.js new file mode 100644 index 0000000..7faaf52 --- /dev/null +++ b/resources/_keenthemes/src/js/custom/apps/calendar/calendar.js @@ -0,0 +1,831 @@ +"use strict"; + +// Class definition +var KTAppCalendar = function () { + // Shared variables + // Calendar variables + var calendar; + var data = { + id: '', + eventName: '', + eventDescription: '', + eventLocation: '', + startDate: '', + endDate: '', + allDay: false + }; + + // Add event variables + var eventName; + var eventDescription; + var eventLocation; + var startDatepicker; + var startFlatpickr; + var endDatepicker; + var endFlatpickr; + var startTimepicker; + var startTimeFlatpickr; + var endTimepicker + var endTimeFlatpickr; + var modal; + var modalTitle; + var form; + var validator; + var addButton; + var submitButton; + var cancelButton; + var closeButton; + + // View event variables + var viewEventName; + var viewAllDay; + var viewEventDescription; + var viewEventLocation; + var viewStartDate; + var viewEndDate; + var viewModal; + var viewEditButton; + var viewDeleteButton; + + + // Private functions + var initCalendarApp = function () { + // Define variables + var calendarEl = document.getElementById('kt_calendar_app'); + var todayDate = moment().startOf('day'); + var YM = todayDate.format('YYYY-MM'); + var YESTERDAY = todayDate.clone().subtract(1, 'day').format('YYYY-MM-DD'); + var TODAY = todayDate.format('YYYY-MM-DD'); + var TOMORROW = todayDate.clone().add(1, 'day').format('YYYY-MM-DD'); + + // Init calendar --- more info: https://fullcalendar.io/docs/initialize-globals + calendar = new FullCalendar.Calendar(calendarEl, { + //locale: 'es', // Set local --- more info: https://fullcalendar.io/docs/locale + headerToolbar: { + left: 'prev,next today', + center: 'title', + right: 'dayGridMonth,timeGridWeek,timeGridDay' + }, + initialDate: TODAY, + navLinks: true, // can click day/week names to navigate views + selectable: true, + selectMirror: true, + + // Select dates action --- more info: https://fullcalendar.io/docs/select-callback + select: function (arg) { + formatArgs(arg); + handleNewEvent(); + }, + + // Click event --- more info: https://fullcalendar.io/docs/eventClick + eventClick: function (arg) { + formatArgs({ + id: arg.event.id, + title: arg.event.title, + description: arg.event.extendedProps.description, + location: arg.event.extendedProps.location, + startStr: arg.event.startStr, + endStr: arg.event.endStr, + allDay: arg.event.allDay + }); + + handleViewEvent(); + }, + + editable: true, + dayMaxEvents: true, // allow "more" link when too many events + events: [ + { + id: uid(), + title: 'All Day Event', + start: YM + '-01', + end: YM + '-02', + description: 'Toto lorem ipsum dolor sit incid idunt ut', + className: "fc-event-danger fc-event-solid-warning", + location: 'Federation Square' + }, + { + id: uid(), + title: 'Reporting', + start: YM + '-14T13:30:00', + description: 'Lorem ipsum dolor incid idunt ut labore', + end: YM + '-14T14:30:00', + className: "fc-event-success", + location: 'Meeting Room 7.03' + }, + { + id: uid(), + title: 'Company Trip', + start: YM + '-02', + description: 'Lorem ipsum dolor sit tempor incid', + end: YM + '-03', + className: "fc-event-primary", + location: 'Seoul, Korea' + + }, + { + id: uid(), + title: 'ICT Expo 2021 - Product Release', + start: YM + '-03', + description: 'Lorem ipsum dolor sit tempor inci', + end: YM + '-05', + className: "fc-event-light fc-event-solid-primary", + location: 'Melbourne Exhibition Hall' + }, + { + id: uid(), + title: 'Dinner', + start: YM + '-12', + description: 'Lorem ipsum dolor sit amet, conse ctetur', + end: YM + '-13', + location: 'Squire\'s Loft' + }, + { + id: uid(), + title: 'Repeating Event', + start: YM + '-09T16:00:00', + end: YM + '-09T17:00:00', + description: 'Lorem ipsum dolor sit ncididunt ut labore', + className: "fc-event-danger", + location: 'General Area' + }, + { + id: uid(), + title: 'Repeating Event', + description: 'Lorem ipsum dolor sit amet, labore', + start: YM + '-16T16:00:00', + end: YM + '-16T17:00:00', + location: 'General Area' + }, + { + id: uid(), + title: 'Conference', + start: YESTERDAY, + end: TOMORROW, + description: 'Lorem ipsum dolor eius mod tempor labore', + className: "fc-event-primary", + location: 'Conference Hall A' + }, + { + id: uid(), + title: 'Meeting', + start: TODAY + 'T10:30:00', + end: TODAY + 'T12:30:00', + description: 'Lorem ipsum dolor eiu idunt ut labore', + location: 'Meeting Room 11.06' + }, + { + id: uid(), + title: 'Lunch', + start: TODAY + 'T12:00:00', + end: TODAY + 'T14:00:00', + className: "fc-event-info", + description: 'Lorem ipsum dolor sit amet, ut labore', + location: 'Cafeteria' + }, + { + id: uid(), + title: 'Meeting', + start: TODAY + 'T14:30:00', + end: TODAY + 'T15:30:00', + className: "fc-event-warning", + description: 'Lorem ipsum conse ctetur adipi scing', + location: 'Meeting Room 11.10' + }, + { + id: uid(), + title: 'Happy Hour', + start: TODAY + 'T17:30:00', + end: TODAY + 'T21:30:00', + className: "fc-event-info", + description: 'Lorem ipsum dolor sit amet, conse ctetur', + location: 'The English Pub' + }, + { + id: uid(), + title: 'Dinner', + start: TOMORROW + 'T18:00:00', + end: TOMORROW + 'T21:00:00', + className: "fc-event-solid-danger fc-event-light", + description: 'Lorem ipsum dolor sit ctetur adipi scing', + location: 'New York Steakhouse' + }, + { + id: uid(), + title: 'Birthday Party', + start: TOMORROW + 'T12:00:00', + end: TOMORROW + 'T14:00:00', + className: "fc-event-primary", + description: 'Lorem ipsum dolor sit amet, scing', + location: 'The English Pub' + }, + { + id: uid(), + title: 'Site visit', + start: YM + '-28', + end: YM + '-29', + className: "fc-event-solid-info fc-event-light", + description: 'Lorem ipsum dolor sit amet, labore', + location: '271, Spring Street' + } + ], + + // Handle changing calendar views --- more info: https://fullcalendar.io/docs/datesSet + datesSet: function(){ + // do some stuff + } + }); + + calendar.render(); + } + + // Init validator + const initValidator = () => { + // Init form validation rules. For more info check the FormValidation plugin's official documentation:https://formvalidation.io/ + validator = FormValidation.formValidation( + form, + { + fields: { + 'calendar_event_name': { + validators: { + notEmpty: { + message: 'Event name is required' + } + } + }, + 'calendar_event_start_date': { + validators: { + notEmpty: { + message: 'Start date is required' + } + } + }, + 'calendar_event_end_date': { + validators: { + notEmpty: { + message: 'End date is required' + } + } + } + }, + + plugins: { + trigger: new FormValidation.plugins.Trigger(), + bootstrap: new FormValidation.plugins.Bootstrap5({ + rowSelector: '.fv-row', + eleInvalidClass: '', + eleValidClass: '' + }) + } + } + ); + } + + // Initialize datepickers --- more info: https://flatpickr.js.org/ + const initDatepickers = () => { + startFlatpickr = flatpickr(startDatepicker, { + enableTime: false, + dateFormat: "Y-m-d", + }); + + endFlatpickr = flatpickr(endDatepicker, { + enableTime: false, + dateFormat: "Y-m-d", + }); + + startTimeFlatpickr = flatpickr(startTimepicker, { + enableTime: true, + noCalendar: true, + dateFormat: "H:i", + }); + + endTimeFlatpickr = flatpickr(endTimepicker, { + enableTime: true, + noCalendar: true, + dateFormat: "H:i", + }); + } + + // Handle add button + const handleAddButton = () => { + addButton.addEventListener('click', e => { + // Reset form data + data = { + id: '', + eventName: '', + eventDescription: '', + startDate: new Date(), + endDate: new Date(), + allDay: false + }; + handleNewEvent(); + }); + } + + // Handle add new event + const handleNewEvent = () => { + // Update modal title + modalTitle.innerText = "Add a New Event"; + + modal.show(); + + // Select datepicker wrapper elements + const datepickerWrappers = form.querySelectorAll('[data-kt-calendar="datepicker"]'); + + // Handle all day toggle + const allDayToggle = form.querySelector('#kt_calendar_datepicker_allday'); + allDayToggle.addEventListener('click', e => { + if (e.target.checked) { + datepickerWrappers.forEach(dw => { + dw.classList.add('d-none'); + }); + } else { + endFlatpickr.setDate(data.startDate, true, 'Y-m-d'); + datepickerWrappers.forEach(dw => { + dw.classList.remove('d-none'); + }); + } + }); + + populateForm(data); + + // Handle submit form + submitButton.addEventListener('click', function (e) { + // Prevent default button action + e.preventDefault(); + + // Validate form before submit + if (validator) { + validator.validate().then(function (status) { + console.log('validated!'); + + if (status == 'Valid') { + // Show loading indication + submitButton.setAttribute('data-kt-indicator', 'on'); + + // Disable submit button whilst loading + submitButton.disabled = true; + + // Simulate form submission + setTimeout(function () { + // Simulate form submission + submitButton.removeAttribute('data-kt-indicator'); + + // Show popup confirmation + Swal.fire({ + text: "New event added to calendar!", + icon: "success", + buttonsStyling: false, + confirmButtonText: "Ok, got it!", + customClass: { + confirmButton: "btn btn-primary" + } + }).then(function (result) { + if (result.isConfirmed) { + modal.hide(); + + // Enable submit button after loading + submitButton.disabled = false; + + // Detect if is all day event + let allDayEvent = false; + if (allDayToggle.checked) { allDayEvent = true; } + if (startTimeFlatpickr.selectedDates.length === 0) { allDayEvent = true; } + + // Merge date & time + var startDateTime = moment(startFlatpickr.selectedDates[0]).format(); + var endDateTime = moment(endFlatpickr.selectedDates[endFlatpickr.selectedDates.length - 1]).format(); + if (!allDayEvent) { + const startDate = moment(startFlatpickr.selectedDates[0]).format('YYYY-MM-DD'); + const endDate = startDate; + const startTime = moment(startTimeFlatpickr.selectedDates[0]).format('HH:mm:ss'); + const endTime = moment(endTimeFlatpickr.selectedDates[0]).format('HH:mm:ss'); + + startDateTime = startDate + 'T' + startTime; + endDateTime = endDate + 'T' + endTime; + } + + // Add new event to calendar + calendar.addEvent({ + id: uid(), + title: eventName.value, + description: eventDescription.value, + location: eventLocation.value, + start: startDateTime, + end: endDateTime, + allDay: allDayEvent + }); + calendar.render(); + + // Reset form for demo purposes only + form.reset(); + } + }); + + //form.submit(); // Submit form + }, 2000); + } else { + // Show popup warning + Swal.fire({ + text: "Sorry, looks like there are some errors detected, please try again.", + icon: "error", + buttonsStyling: false, + confirmButtonText: "Ok, got it!", + customClass: { + confirmButton: "btn btn-primary" + } + }); + } + }); + } + }); + } + + // Handle edit event + const handleEditEvent = () => { + // Update modal title + modalTitle.innerText = "Edit an Event"; + + modal.show(); + + // Select datepicker wrapper elements + const datepickerWrappers = form.querySelectorAll('[data-kt-calendar="datepicker"]'); + + // Handle all day toggle + const allDayToggle = form.querySelector('#kt_calendar_datepicker_allday'); + allDayToggle.addEventListener('click', e => { + if (e.target.checked) { + datepickerWrappers.forEach(dw => { + dw.classList.add('d-none'); + }); + } else { + endFlatpickr.setDate(data.startDate, true, 'Y-m-d'); + datepickerWrappers.forEach(dw => { + dw.classList.remove('d-none'); + }); + } + }); + + populateForm(data); + + // Handle submit form + submitButton.addEventListener('click', function (e) { + // Prevent default button action + e.preventDefault(); + + // Validate form before submit + if (validator) { + validator.validate().then(function (status) { + console.log('validated!'); + + if (status == 'Valid') { + // Show loading indication + submitButton.setAttribute('data-kt-indicator', 'on'); + + // Disable submit button whilst loading + submitButton.disabled = true; + + // Simulate form submission + setTimeout(function () { + // Simulate form submission + submitButton.removeAttribute('data-kt-indicator'); + + // Show popup confirmation + Swal.fire({ + text: "New event added to calendar!", + icon: "success", + buttonsStyling: false, + confirmButtonText: "Ok, got it!", + customClass: { + confirmButton: "btn btn-primary" + } + }).then(function (result) { + if (result.isConfirmed) { + modal.hide(); + + // Enable submit button after loading + submitButton.disabled = false; + + // Remove old event + calendar.getEventById(data.id).remove(); + + // Detect if is all day event + let allDayEvent = false; + if (allDayToggle.checked) { allDayEvent = true; } + if (startTimeFlatpickr.selectedDates.length === 0) { allDayEvent = true; } + + // Merge date & time + var startDateTime = moment(startFlatpickr.selectedDates[0]).format(); + var endDateTime = moment(endFlatpickr.selectedDates[endFlatpickr.selectedDates.length - 1]).format(); + if (!allDayEvent) { + const startDate = moment(startFlatpickr.selectedDates[0]).format('YYYY-MM-DD'); + const endDate = startDate; + const startTime = moment(startTimeFlatpickr.selectedDates[0]).format('HH:mm:ss'); + const endTime = moment(endTimeFlatpickr.selectedDates[0]).format('HH:mm:ss'); + + startDateTime = startDate + 'T' + startTime; + endDateTime = endDate + 'T' + endTime; + } + + // Add new event to calendar + calendar.addEvent({ + id: uid(), + title: eventName.value, + description: eventDescription.value, + location: eventLocation.value, + start: startDateTime, + end: endDateTime, + allDay: allDayEvent + }); + calendar.render(); + + // Reset form for demo purposes only + form.reset(); + } + }); + + //form.submit(); // Submit form + }, 2000); + } else { + // Show popup warning + Swal.fire({ + text: "Sorry, looks like there are some errors detected, please try again.", + icon: "error", + buttonsStyling: false, + confirmButtonText: "Ok, got it!", + customClass: { + confirmButton: "btn btn-primary" + } + }); + } + }); + } + }); + } + + // Handle view event + const handleViewEvent = () => { + viewModal.show(); + + // Detect all day event + var eventNameMod; + var startDateMod; + var endDateMod; + + // Generate labels + if (data.allDay) { + eventNameMod = 'All Day'; + startDateMod = moment(data.startDate).format('Do MMM, YYYY'); + endDateMod = moment(data.endDate).format('Do MMM, YYYY'); + } else { + eventNameMod = ''; + startDateMod = moment(data.startDate).format('Do MMM, YYYY - h:mm a'); + endDateMod = moment(data.endDate).format('Do MMM, YYYY - h:mm a'); + } + + // Populate view data + viewEventName.innerText = data.eventName; + viewAllDay.innerText = eventNameMod; + viewEventDescription.innerText = data.eventDescription ? data.eventDescription : '--'; + viewEventLocation.innerText = data.eventLocation ? data.eventLocation : '--'; + viewStartDate.innerText = startDateMod; + viewEndDate.innerText = endDateMod; + } + + // Handle delete event + const handleDeleteEvent = () => { + viewDeleteButton.addEventListener('click', e => { + e.preventDefault(); + + Swal.fire({ + text: "Are you sure you would like to delete this event?", + icon: "warning", + showCancelButton: true, + buttonsStyling: false, + confirmButtonText: "Yes, delete it!", + cancelButtonText: "No, return", + customClass: { + confirmButton: "btn btn-primary", + cancelButton: "btn btn-active-light" + } + }).then(function (result) { + if (result.value) { + calendar.getEventById(data.id).remove(); + + viewModal.hide(); // Hide modal + } else if (result.dismiss === 'cancel') { + Swal.fire({ + text: "Your event was not deleted!.", + icon: "error", + buttonsStyling: false, + confirmButtonText: "Ok, got it!", + customClass: { + confirmButton: "btn btn-primary", + } + }); + } + }); + }); + } + + // Handle edit button + const handleEditButton = () => { + viewEditButton.addEventListener('click', e => { + e.preventDefault(); + + viewModal.hide(); + handleEditEvent(); + }); + } + + // Handle cancel button + const handleCancelButton = () => { + // Edit event modal cancel button + cancelButton.addEventListener('click', function (e) { + e.preventDefault(); + + Swal.fire({ + text: "Are you sure you would like to cancel?", + icon: "warning", + showCancelButton: true, + buttonsStyling: false, + confirmButtonText: "Yes, cancel it!", + cancelButtonText: "No, return", + customClass: { + confirmButton: "btn btn-primary", + cancelButton: "btn btn-active-light" + } + }).then(function (result) { + if (result.value) { + form.reset(); // Reset form + modal.hide(); // Hide modal + } else if (result.dismiss === 'cancel') { + Swal.fire({ + text: "Your form has not been cancelled!.", + icon: "error", + buttonsStyling: false, + confirmButtonText: "Ok, got it!", + customClass: { + confirmButton: "btn btn-primary", + } + }); + } + }); + }); + } + + // Handle close button + const handleCloseButton = () => { + // Edit event modal close button + closeButton.addEventListener('click', function (e) { + e.preventDefault(); + + Swal.fire({ + text: "Are you sure you would like to cancel?", + icon: "warning", + showCancelButton: true, + buttonsStyling: false, + confirmButtonText: "Yes, cancel it!", + cancelButtonText: "No, return", + customClass: { + confirmButton: "btn btn-primary", + cancelButton: "btn btn-active-light" + } + }).then(function (result) { + if (result.value) { + form.reset(); // Reset form + modal.hide(); // Hide modal + } else if (result.dismiss === 'cancel') { + Swal.fire({ + text: "Your form has not been cancelled!.", + icon: "error", + buttonsStyling: false, + confirmButtonText: "Ok, got it!", + customClass: { + confirmButton: "btn btn-primary", + } + }); + } + }); + }); + } + + // Handle view button + const handleViewButton = () => { + const viewButton = document.querySelector('#kt_calendar_event_view_button'); + viewButton.addEventListener('click', e => { + e.preventDefault(); + + hidePopovers(); + handleViewEvent(); + }); + } + + // Helper functions + + // Reset form validator on modal close + const resetFormValidator = (element) => { + // Target modal hidden event --- For more info: https://getbootstrap.com/docs/5.0/components/modal/#events + element.addEventListener('hidden.bs.modal', e => { + if (validator) { + // Reset form validator. For more info: https://formvalidation.io/guide/api/reset-form + validator.resetForm(true); + } + }); + } + + // Populate form + const populateForm = () => { + eventName.value = data.eventName ? data.eventName : ''; + eventDescription.value = data.eventDescription ? data.eventDescription : ''; + eventLocation.value = data.eventLocation ? data.eventLocation : ''; + startFlatpickr.setDate(data.startDate, true, 'Y-m-d'); + + // Handle null end dates + const endDate = data.endDate ? data.endDate : moment(data.startDate).format(); + endFlatpickr.setDate(endDate, true, 'Y-m-d'); + + const allDayToggle = form.querySelector('#kt_calendar_datepicker_allday'); + const datepickerWrappers = form.querySelectorAll('[data-kt-calendar="datepicker"]'); + if (data.allDay) { + allDayToggle.checked = true; + datepickerWrappers.forEach(dw => { + dw.classList.add('d-none'); + }); + } else { + startTimeFlatpickr.setDate(data.startDate, true, 'Y-m-d H:i'); + endTimeFlatpickr.setDate(data.endDate, true, 'Y-m-d H:i'); + endFlatpickr.setDate(data.startDate, true, 'Y-m-d'); + allDayToggle.checked = false; + datepickerWrappers.forEach(dw => { + dw.classList.remove('d-none'); + }); + } + } + + // Format FullCalendar reponses + const formatArgs = (res) => { + data.id = res.id; + data.eventName = res.title; + data.eventDescription = res.description; + data.eventLocation = res.location; + data.startDate = res.startStr; + data.endDate = res.endStr; + data.allDay = res.allDay; + } + + // Generate unique IDs for events + const uid = () => { + return Date.now().toString() + Math.floor(Math.random() * 1000).toString(); + } + + return { + // Public Functions + init: function () { + // Define variables + // Add event modal + const element = document.getElementById('kt_modal_add_event'); + form = element.querySelector('#kt_modal_add_event_form'); + eventName = form.querySelector('[name="calendar_event_name"]'); + eventDescription = form.querySelector('[name="calendar_event_description"]'); + eventLocation = form.querySelector('[name="calendar_event_location"]'); + startDatepicker = form.querySelector('#kt_calendar_datepicker_start_date'); + endDatepicker = form.querySelector('#kt_calendar_datepicker_end_date'); + startTimepicker = form.querySelector('#kt_calendar_datepicker_start_time'); + endTimepicker = form.querySelector('#kt_calendar_datepicker_end_time'); + addButton = document.querySelector('[data-kt-calendar="add"]'); + submitButton = form.querySelector('#kt_modal_add_event_submit'); + cancelButton = form.querySelector('#kt_modal_add_event_cancel'); + closeButton = element.querySelector('#kt_modal_add_event_close'); + modalTitle = form.querySelector('[data-kt-calendar="title"]'); + modal = new bootstrap.Modal(element); + + // View event modal + const viewElement = document.getElementById('kt_modal_view_event'); + viewModal = new bootstrap.Modal(viewElement); + viewEventName = viewElement.querySelector('[data-kt-calendar="event_name"]'); + viewAllDay = viewElement.querySelector('[data-kt-calendar="all_day"]'); + viewEventDescription = viewElement.querySelector('[data-kt-calendar="event_description"]'); + viewEventLocation = viewElement.querySelector('[data-kt-calendar="event_location"]'); + viewStartDate = viewElement.querySelector('[data-kt-calendar="event_start_date"]'); + viewEndDate = viewElement.querySelector('[data-kt-calendar="event_end_date"]'); + viewEditButton = viewElement.querySelector('#kt_modal_view_event_edit'); + viewDeleteButton = viewElement.querySelector('#kt_modal_view_event_delete'); + + initCalendarApp(); + initValidator(); + initDatepickers(); + handleEditButton(); + handleAddButton(); + handleDeleteEvent(); + handleCancelButton(); + handleCloseButton(); + resetFormValidator(element); + } + }; +}(); + +// On document ready +KTUtil.onDOMContentLoaded(function () { + KTAppCalendar.init(); +}); diff --git a/resources/_keenthemes/src/js/custom/apps/chat/chat.js b/resources/_keenthemes/src/js/custom/apps/chat/chat.js new file mode 100644 index 0000000..f591103 --- /dev/null +++ b/resources/_keenthemes/src/js/custom/apps/chat/chat.js @@ -0,0 +1,72 @@ +"use strict"; + +// Class definition +var KTAppChat = function () { + // Private functions + var handeSend = function (element) { + if (!element) { + return; + } + + // Handle send + KTUtil.on(element, '[data-kt-element="input"]', 'keydown', function(e) { + if (e.keyCode == 13) { + handeMessaging(element); + e.preventDefault(); + + return false; + } + }); + + KTUtil.on(element, '[data-kt-element="send"]', 'click', function(e) { + handeMessaging(element); + }); + } + + var handeMessaging = function(element) { + var messages = element.querySelector('[data-kt-element="messages"]'); + var input = element.querySelector('[data-kt-element="input"]'); + + if (input.value.length === 0 ) { + return; + } + + var messageOutTemplate = messages.querySelector('[data-kt-element="template-out"]'); + var messageInTemplate = messages.querySelector('[data-kt-element="template-in"]'); + var message; + + // Show example outgoing message + message = messageOutTemplate.cloneNode(true); + message.classList.remove('d-none'); + message.querySelector('[data-kt-element="message-text"]').innerText = input.value; + input.value = ''; + messages.appendChild(message); + messages.scrollTop = messages.scrollHeight; + + + setTimeout(function() { + // Show example incoming message + message = messageInTemplate.cloneNode(true); + message.classList.remove('d-none'); + message.querySelector('[data-kt-element="message-text"]').innerText = 'Thank you for your awesome support!'; + messages.appendChild(message); + messages.scrollTop = messages.scrollHeight; + }, 2000); + } + + // Public methods + return { + init: function(element) { + handeSend(element); + } + }; +}(); + +// On document ready +KTUtil.onDOMContentLoaded(function () { + // Init inline chat messenger + KTAppChat.init(document.querySelector('#kt_chat_messenger')); + + // Init drawer chat messenger + KTAppChat.init(document.querySelector('#kt_drawer_chat_messenger')); +}); diff --git a/resources/_keenthemes/src/js/custom/apps/contacts/edit-contact.js b/resources/_keenthemes/src/js/custom/apps/contacts/edit-contact.js new file mode 100644 index 0000000..0ca663c --- /dev/null +++ b/resources/_keenthemes/src/js/custom/apps/contacts/edit-contact.js @@ -0,0 +1,160 @@ +"use strict"; + +// Class definition +var KTAppContactEdit = function () { + // Shared variables + + + // Private functions + const initForm = () => { + // Select form + const form = document.getElementById('kt_ecommerce_settings_general_form'); + + if (!form) { + return; + } + + // Dynamically create validation non-empty rule + const requiredFields = form.querySelectorAll('.required'); + var detectedField; + var validationFields = { + fields: {}, + + plugins: { + trigger: new FormValidation.plugins.Trigger(), + bootstrap: new FormValidation.plugins.Bootstrap5({ + rowSelector: '.fv-row', + eleInvalidClass: '', + eleValidClass: '' + }) + } + } + + // Detect required fields + requiredFields.forEach(el => { + const input = el.closest('.fv-row').querySelector('input'); + if (input) { + detectedField = input; + } + + const select = el.closest('.fv-row').querySelector('select'); + if (select) { + detectedField = select; + } + + // Add validation rule + const name = detectedField.getAttribute('name'); + validationFields.fields[name] = { + validators: { + notEmpty: { + message: el.innerText + ' is required' + } + } + } + }); + + // Init form validation rules. For more info check the FormValidation plugin's official documentation:https://formvalidation.io/ + var validator = FormValidation.formValidation( + form, + validationFields + ); + + // Submit button handler + const submitButton = form.querySelector('[data-kt-contacts-type="submit"]'); + submitButton.addEventListener('click', function (e) { + // Prevent default button action + e.preventDefault(); + + // Validate form before submit + if (validator) { + validator.validate().then(function (status) { + console.log('validated!'); + + if (status == 'Valid') { + // Show loading indication + submitButton.setAttribute('data-kt-indicator', 'on'); + + // Disable button to avoid multiple click + submitButton.disabled = true; + + // Simulate form submission. For more info check the plugin's official documentation: https://sweetalert2.github.io/ + setTimeout(function () { + // Remove loading indication + submitButton.removeAttribute('data-kt-indicator'); + + // Enable button + submitButton.disabled = false; + + // Show popup confirmation + Swal.fire({ + text: "Form has been successfully submitted!", + icon: "success", + buttonsStyling: false, + confirmButtonText: "Ok, got it!", + customClass: { + confirmButton: "btn btn-primary" + } + }); + + //form.submit(); // Submit form + }, 2000); + } else { + // Show popup error + Swal.fire({ + text: "Oops! There are some error(s) detected.", + icon: "error", + buttonsStyling: false, + confirmButtonText: "Ok, got it!", + customClass: { + confirmButton: "btn btn-primary" + } + }); + } + }); + } + }); + } + + // Init Select2 with flags + const initSelect2Flags = () => { + // Format options + var optionFormat = function(item) { + if ( !item.id ) { + return item.text; + } + + var span = document.createElement('span'); + var template = ''; + + template += 'image'; + template += item.text; + + span.innerHTML = template; + + return $(span); + } + + // Init Select2 --- more info: https://select2.org/ + $('[data-kt-ecommerce-settings-type="select2_flags"]').select2({ + placeholder: "Select a country", + minimumResultsForSearch: Infinity, + templateSelection: optionFormat, + templateResult: optionFormat + }); + } + + // Public methods + return { + init: function () { + + initForm(); + initSelect2Flags(); + + } + }; +}(); + +// On document ready +KTUtil.onDOMContentLoaded(function () { + KTAppContactEdit.init(); +}); diff --git a/resources/_keenthemes/src/js/custom/apps/contacts/view-contact.js b/resources/_keenthemes/src/js/custom/apps/contacts/view-contact.js new file mode 100644 index 0000000..325b61f --- /dev/null +++ b/resources/_keenthemes/src/js/custom/apps/contacts/view-contact.js @@ -0,0 +1,74 @@ +"use strict"; + +// Class definition +var KTAppContactView = function () { + // Private functions + const handleDeleteButton = () => { + // Select form + const deleteButton = document.getElementById('kt_contact_delete'); + + if (!deleteButton) { + return; + } + + deleteButton.addEventListener('click', e => { + // Prevent default button action + e.preventDefault(); + + // Show popup confirmation + Swal.fire({ + text: "Delete contact confirmation", + icon: "warning", + buttonsStyling: false, + showCancelButton: true, + confirmButtonText: "Yes, delete it!", + cancelButtonText: "No, return", + customClass: { + confirmButton: "btn btn-danger", + cancelButton: "btn btn-active-light" + } + }).then(function (result) { + if (result.value) { + Swal.fire({ + text: "Contact has been deleted!", + icon: "success", + buttonsStyling: false, + confirmButtonText: "Ok, got it!", + customClass: { + confirmButton: "btn btn-primary" + } + }).then(function (result) { + if (result.value) { + // Redirect to customers list page + window.location = deleteButton.getAttribute("data-kt-redirect"); + } + }); + } else if (result.dismiss === 'cancel') { + Swal.fire({ + text: "Contact has not been deleted!.", + icon: "error", + buttonsStyling: false, + confirmButtonText: "Ok, got it!", + customClass: { + confirmButton: "btn btn-primary", + } + }); + } + }); + }); + } + + // Public methods + return { + init: function () { + + handleDeleteButton(); + + } + }; +}(); + +// On document ready +KTUtil.onDOMContentLoaded(function () { + KTAppContactView.init(); +}); diff --git a/resources/_keenthemes/src/js/custom/apps/customers/add.js b/resources/_keenthemes/src/js/custom/apps/customers/add.js new file mode 100644 index 0000000..df35986 --- /dev/null +++ b/resources/_keenthemes/src/js/custom/apps/customers/add.js @@ -0,0 +1,238 @@ +"use strict"; + +// Class definition +var KTModalCustomersAdd = function () { + var submitButton; + var cancelButton; + var closeButton; + var validator; + var form; + var modal; + + // Init form inputs + var handleForm = function () { + // Init form validation rules. For more info check the FormValidation plugin's official documentation:https://formvalidation.io/ + validator = FormValidation.formValidation( + form, + { + fields: { + 'name': { + validators: { + notEmpty: { + message: 'Customer name is required' + } + } + }, + 'email': { + validators: { + notEmpty: { + message: 'Customer email is required' + } + } + }, + 'first-name': { + validators: { + notEmpty: { + message: 'First name is required' + } + } + }, + 'last-name': { + validators: { + notEmpty: { + message: 'Last name is required' + } + } + }, + 'country': { + validators: { + notEmpty: { + message: 'Country is required' + } + } + }, + 'address1': { + validators: { + notEmpty: { + message: 'Address 1 is required' + } + } + }, + 'city': { + validators: { + notEmpty: { + message: 'City is required' + } + } + }, + 'state': { + validators: { + notEmpty: { + message: 'State is required' + } + } + }, + 'postcode': { + validators: { + notEmpty: { + message: 'Postcode is required' + } + } + } + }, + plugins: { + trigger: new FormValidation.plugins.Trigger(), + bootstrap: new FormValidation.plugins.Bootstrap5({ + rowSelector: '.fv-row', + eleInvalidClass: '', + eleValidClass: '' + }) + } + } + ); + + // Revalidate country field. For more info, plase visit the official plugin site: https://select2.org/ + $(form.querySelector('[name="country"]')).on('change', function() { + // Revalidate the field when an option is chosen + validator.revalidateField('country'); + }); + + // Action buttons + submitButton.addEventListener('click', function (e) { + e.preventDefault(); + + // Validate form before submit + if (validator) { + validator.validate().then(function (status) { + console.log('validated!'); + + if (status == 'Valid') { + submitButton.setAttribute('data-kt-indicator', 'on'); + + // Disable submit button whilst loading + submitButton.disabled = true; + + setTimeout(function() { + submitButton.removeAttribute('data-kt-indicator'); + + Swal.fire({ + text: "Form has been successfully submitted!", + icon: "success", + buttonsStyling: false, + confirmButtonText: "Ok, got it!", + customClass: { + confirmButton: "btn btn-primary" + } + }).then(function (result) { + if (result.isConfirmed) { + // Hide modal + modal.hide(); + + // Enable submit button after loading + submitButton.disabled = false; + + // Redirect to customers list page + window.location = form.getAttribute("data-kt-redirect"); + } + }); + }, 2000); + } else { + Swal.fire({ + text: "Sorry, looks like there are some errors detected, please try again.", + icon: "error", + buttonsStyling: false, + confirmButtonText: "Ok, got it!", + customClass: { + confirmButton: "btn btn-primary" + } + }); + } + }); + } + }); + + cancelButton.addEventListener('click', function (e) { + e.preventDefault(); + + Swal.fire({ + text: "Are you sure you would like to cancel?", + icon: "warning", + showCancelButton: true, + buttonsStyling: false, + confirmButtonText: "Yes, cancel it!", + cancelButtonText: "No, return", + customClass: { + confirmButton: "btn btn-primary", + cancelButton: "btn btn-active-light" + } + }).then(function (result) { + if (result.value) { + form.reset(); // Reset form + modal.hide(); // Hide modal + } else if (result.dismiss === 'cancel') { + Swal.fire({ + text: "Your form has not been cancelled!.", + icon: "error", + buttonsStyling: false, + confirmButtonText: "Ok, got it!", + customClass: { + confirmButton: "btn btn-primary", + } + }); + } + }); + }); + + closeButton.addEventListener('click', function(e){ + e.preventDefault(); + + Swal.fire({ + text: "Are you sure you would like to cancel?", + icon: "warning", + showCancelButton: true, + buttonsStyling: false, + confirmButtonText: "Yes, cancel it!", + cancelButtonText: "No, return", + customClass: { + confirmButton: "btn btn-primary", + cancelButton: "btn btn-active-light" + } + }).then(function (result) { + if (result.value) { + form.reset(); // Reset form + modal.hide(); // Hide modal + } else if (result.dismiss === 'cancel') { + Swal.fire({ + text: "Your form has not been cancelled!.", + icon: "error", + buttonsStyling: false, + confirmButtonText: "Ok, got it!", + customClass: { + confirmButton: "btn btn-primary", + } + }); + } + }); + }) + } + + return { + // Public functions + init: function () { + // Elements + modal = new bootstrap.Modal(document.querySelector('#kt_modal_add_customer')); + + form = document.querySelector('#kt_modal_add_customer_form'); + submitButton = form.querySelector('#kt_modal_add_customer_submit'); + cancelButton = form.querySelector('#kt_modal_add_customer_cancel'); + closeButton = form.querySelector('#kt_modal_add_customer_close'); + + handleForm(); + } + }; +}(); + +// On document ready +KTUtil.onDOMContentLoaded(function () { + KTModalCustomersAdd.init(); +}); \ No newline at end of file diff --git a/resources/_keenthemes/src/js/custom/apps/customers/list/export.js b/resources/_keenthemes/src/js/custom/apps/customers/list/export.js new file mode 100644 index 0000000..257159e --- /dev/null +++ b/resources/_keenthemes/src/js/custom/apps/customers/list/export.js @@ -0,0 +1,189 @@ +"use strict"; + +// Class definition +var KTCustomersExport = function () { + var element; + var submitButton; + var cancelButton; + var closeButton; + var validator; + var form; + var modal; + + // Init form inputs + var handleForm = function () { + // Init form validation rules. For more info check the FormValidation plugin's official documentation:https://formvalidation.io/ + validator = FormValidation.formValidation( + form, + { + fields: { + 'date': { + validators: { + notEmpty: { + message: 'Date range is required' + } + } + }, + }, + plugins: { + trigger: new FormValidation.plugins.Trigger(), + bootstrap: new FormValidation.plugins.Bootstrap5({ + rowSelector: '.fv-row', + eleInvalidClass: '', + eleValidClass: '' + }) + } + } + ); + + // Action buttons + submitButton.addEventListener('click', function (e) { + e.preventDefault(); + + // Validate form before submit + if (validator) { + validator.validate().then(function (status) { + console.log('validated!'); + + if (status == 'Valid') { + submitButton.setAttribute('data-kt-indicator', 'on'); + + // Disable submit button whilst loading + submitButton.disabled = true; + + setTimeout(function() { + submitButton.removeAttribute('data-kt-indicator'); + + Swal.fire({ + text: "Customer list has been successfully exported!", + icon: "success", + buttonsStyling: false, + confirmButtonText: "Ok, got it!", + customClass: { + confirmButton: "btn btn-primary" + } + }).then(function (result) { + if (result.isConfirmed) { + modal.hide(); + + // Enable submit button after loading + submitButton.disabled = false; + } + }); + + //form.submit(); // Submit form + }, 2000); + } else { + Swal.fire({ + text: "Sorry, looks like there are some errors detected, please try again.", + icon: "error", + buttonsStyling: false, + confirmButtonText: "Ok, got it!", + customClass: { + confirmButton: "btn btn-primary" + } + }); + } + }); + } + }); + + cancelButton.addEventListener('click', function (e) { + e.preventDefault(); + + Swal.fire({ + text: "Are you sure you would like to cancel?", + icon: "warning", + showCancelButton: true, + buttonsStyling: false, + confirmButtonText: "Yes, cancel it!", + cancelButtonText: "No, return", + customClass: { + confirmButton: "btn btn-primary", + cancelButton: "btn btn-active-light" + } + }).then(function (result) { + if (result.value) { + form.reset(); // Reset form + modal.hide(); // Hide modal + } else if (result.dismiss === 'cancel') { + Swal.fire({ + text: "Your form has not been cancelled!.", + icon: "error", + buttonsStyling: false, + confirmButtonText: "Ok, got it!", + customClass: { + confirmButton: "btn btn-primary", + } + }); + } + }); + }); + + closeButton.addEventListener('click', function(e){ + e.preventDefault(); + + Swal.fire({ + text: "Are you sure you would like to cancel?", + icon: "warning", + showCancelButton: true, + buttonsStyling: false, + confirmButtonText: "Yes, cancel it!", + cancelButtonText: "No, return", + customClass: { + confirmButton: "btn btn-primary", + cancelButton: "btn btn-active-light" + } + }).then(function (result) { + if (result.value) { + form.reset(); // Reset form + modal.hide(); // Hide modal + } else if (result.dismiss === 'cancel') { + Swal.fire({ + text: "Your form has not been cancelled!.", + icon: "error", + buttonsStyling: false, + confirmButtonText: "Ok, got it!", + customClass: { + confirmButton: "btn btn-primary", + } + }); + } + }); + }); + } + + var initForm = function () { + const datepicker = form.querySelector("[name=date]"); + + // Handle datepicker range -- For more info on flatpickr plugin, please visit: https://flatpickr.js.org/ + $(datepicker).flatpickr({ + altInput: true, + altFormat: "F j, Y", + dateFormat: "Y-m-d", + mode: "range" + }); + } + + return { + // Public functions + init: function () { + // Elements + element = document.querySelector('#kt_customers_export_modal'); + modal = new bootstrap.Modal(element); + + form = document.querySelector('#kt_customers_export_form'); + submitButton = form.querySelector('#kt_customers_export_submit'); + cancelButton = form.querySelector('#kt_customers_export_cancel'); + closeButton = element.querySelector('#kt_customers_export_close'); + + handleForm(); + initForm(); + } + }; +}(); + +// On document ready +KTUtil.onDOMContentLoaded(function () { + KTCustomersExport.init(); +}); \ No newline at end of file diff --git a/resources/_keenthemes/src/js/custom/apps/customers/list/list.js b/resources/_keenthemes/src/js/custom/apps/customers/list/list.js new file mode 100644 index 0000000..23a8b92 --- /dev/null +++ b/resources/_keenthemes/src/js/custom/apps/customers/list/list.js @@ -0,0 +1,283 @@ +"use strict"; + +// Class definition +var KTCustomersList = function () { + // Define shared variables + var datatable; + var filterMonth; + var filterPayment; + var table + + // Private functions + var initCustomerList = function () { + // Set date data order + const tableRows = table.querySelectorAll('tbody tr'); + + tableRows.forEach(row => { + const dateRow = row.querySelectorAll('td'); + const realDate = moment(dateRow[5].innerHTML, "DD MMM YYYY, LT").format(); // select date from 5th column in table + dateRow[5].setAttribute('data-order', realDate); + }); + + // Init datatable --- more info on datatables: https://datatables.net/manual/ + datatable = $(table).DataTable({ + "info": false, + 'order': [], + 'columnDefs': [ + { orderable: false, targets: 0 }, // Disable ordering on column 0 (checkbox) + { orderable: false, targets: 6 }, // Disable ordering on column 6 (actions) + ] + }); + + // Re-init functions on every table re-draw -- more info: https://datatables.net/reference/event/draw + datatable.on('draw', function () { + initToggleToolbar(); + handleDeleteRows(); + toggleToolbars(); + KTMenu.init(); // reinit KTMenu instances + }); + } + + // Search Datatable --- official docs reference: https://datatables.net/reference/api/search() + var handleSearchDatatable = () => { + const filterSearch = document.querySelector('[data-kt-customer-table-filter="search"]'); + filterSearch.addEventListener('keyup', function (e) { + datatable.search(e.target.value).draw(); + }); + } + + // Filter Datatable + var handleFilterDatatable = () => { + // Select filter options + filterMonth = $('[data-kt-customer-table-filter="month"]'); + filterPayment = document.querySelectorAll('[data-kt-customer-table-filter="payment_type"] [name="payment_type"]'); + const filterButton = document.querySelector('[data-kt-customer-table-filter="filter"]'); + + // Filter datatable on submit + filterButton.addEventListener('click', function () { + // Get filter values + const monthValue = filterMonth.val(); + let paymentValue = ''; + + // Get payment value + filterPayment.forEach(r => { + if (r.checked) { + paymentValue = r.value; + } + + // Reset payment value if "All" is selected + if (paymentValue === 'all') { + paymentValue = ''; + } + }); + + // Build filter string from filter options + const filterString = monthValue + ' ' + paymentValue; + + // Filter datatable --- official docs reference: https://datatables.net/reference/api/search() + datatable.search(filterString).draw(); + }); + } + + // Delete customer + var handleDeleteRows = () => { + // Select all delete buttons + const deleteButtons = table.querySelectorAll('[data-kt-customer-table-filter="delete_row"]'); + + deleteButtons.forEach(d => { + // Delete button on click + d.addEventListener('click', function (e) { + e.preventDefault(); + + // Select parent row + const parent = e.target.closest('tr'); + + // Get customer name + const customerName = parent.querySelectorAll('td')[1].innerText; + + // SweetAlert2 pop up --- official docs reference: https://sweetalert2.github.io/ + Swal.fire({ + text: "Are you sure you want to delete " + customerName + "?", + icon: "warning", + showCancelButton: true, + buttonsStyling: false, + confirmButtonText: "Yes, delete!", + cancelButtonText: "No, cancel", + customClass: { + confirmButton: "btn fw-bold btn-danger", + cancelButton: "btn fw-bold btn-active-light-primary" + } + }).then(function (result) { + if (result.value) { + Swal.fire({ + text: "You have deleted " + customerName + "!.", + icon: "success", + buttonsStyling: false, + confirmButtonText: "Ok, got it!", + customClass: { + confirmButton: "btn fw-bold btn-primary", + } + }).then(function () { + // Remove current row + datatable.row($(parent)).remove().draw(); + }); + } else if (result.dismiss === 'cancel') { + Swal.fire({ + text: customerName + " was not deleted.", + icon: "error", + buttonsStyling: false, + confirmButtonText: "Ok, got it!", + customClass: { + confirmButton: "btn fw-bold btn-primary", + } + }); + } + }); + }) + }); + } + + // Reset Filter + var handleResetForm = () => { + // Select reset button + const resetButton = document.querySelector('[data-kt-customer-table-filter="reset"]'); + + // Reset datatable + resetButton.addEventListener('click', function () { + // Reset month + filterMonth.val(null).trigger('change'); + + // Reset payment type + filterPayment[0].checked = true; + + // Reset datatable --- official docs reference: https://datatables.net/reference/api/search() + datatable.search('').draw(); + }); + } + + // Init toggle toolbar + var initToggleToolbar = () => { + // Toggle selected action toolbar + // Select all checkboxes + const checkboxes = table.querySelectorAll('[type="checkbox"]'); + + // Select elements + const deleteSelected = document.querySelector('[data-kt-customer-table-select="delete_selected"]'); + + // Toggle delete selected toolbar + checkboxes.forEach(c => { + // Checkbox on click event + c.addEventListener('click', function () { + setTimeout(function () { + toggleToolbars(); + }, 50); + }); + }); + + // Deleted selected rows + deleteSelected.addEventListener('click', function () { + // SweetAlert2 pop up --- official docs reference: https://sweetalert2.github.io/ + Swal.fire({ + text: "Are you sure you want to delete selected customers?", + icon: "warning", + showCancelButton: true, + buttonsStyling: false, + confirmButtonText: "Yes, delete!", + cancelButtonText: "No, cancel", + customClass: { + confirmButton: "btn fw-bold btn-danger", + cancelButton: "btn fw-bold btn-active-light-primary" + } + }).then(function (result) { + if (result.value) { + Swal.fire({ + text: "You have deleted all selected customers!.", + icon: "success", + buttonsStyling: false, + confirmButtonText: "Ok, got it!", + customClass: { + confirmButton: "btn fw-bold btn-primary", + } + }).then(function () { + // Remove all selected customers + checkboxes.forEach(c => { + if (c.checked) { + datatable.row($(c.closest('tbody tr'))).remove().draw(); + } + }); + + // Remove header checked box + const headerCheckbox = table.querySelectorAll('[type="checkbox"]')[0]; + headerCheckbox.checked = false; + }); + } else if (result.dismiss === 'cancel') { + Swal.fire({ + text: "Selected customers was not deleted.", + icon: "error", + buttonsStyling: false, + confirmButtonText: "Ok, got it!", + customClass: { + confirmButton: "btn fw-bold btn-primary", + } + }); + } + }); + }); + } + + // Toggle toolbars + const toggleToolbars = () => { + // Define variables + const toolbarBase = document.querySelector('[data-kt-customer-table-toolbar="base"]'); + const toolbarSelected = document.querySelector('[data-kt-customer-table-toolbar="selected"]'); + const selectedCount = document.querySelector('[data-kt-customer-table-select="selected_count"]'); + + // Select refreshed checkbox DOM elements + const allCheckboxes = table.querySelectorAll('tbody [type="checkbox"]'); + + // Detect checkboxes state & count + let checkedState = false; + let count = 0; + + // Count checked boxes + allCheckboxes.forEach(c => { + if (c.checked) { + checkedState = true; + count++; + } + }); + + // Toggle toolbars + if (checkedState) { + selectedCount.innerHTML = count; + toolbarBase.classList.add('d-none'); + toolbarSelected.classList.remove('d-none'); + } else { + toolbarBase.classList.remove('d-none'); + toolbarSelected.classList.add('d-none'); + } + } + + // Public methods + return { + init: function () { + table = document.querySelector('#kt_customers_table'); + + if (!table) { + return; + } + + initCustomerList(); + initToggleToolbar(); + handleSearchDatatable(); + handleFilterDatatable(); + handleDeleteRows(); + handleResetForm(); + } + } +}(); + +// On document ready +KTUtil.onDOMContentLoaded(function () { + KTCustomersList.init(); +}); \ No newline at end of file diff --git a/resources/_keenthemes/src/js/custom/apps/customers/update.js b/resources/_keenthemes/src/js/custom/apps/customers/update.js new file mode 100644 index 0000000..64613b1 --- /dev/null +++ b/resources/_keenthemes/src/js/custom/apps/customers/update.js @@ -0,0 +1,131 @@ +"use strict"; + +// Class definition +var KTModalUpdateCustomer = function () { + var element; + var submitButton; + var cancelButton; + var closeButton; + var form; + var modal; + + // Init form inputs + var initForm = function () { + // Action buttons + submitButton.addEventListener('click', function (e) { + // Prevent default button action + e.preventDefault(); + + // Show loading indication + submitButton.setAttribute('data-kt-indicator', 'on'); + + // Simulate form submission + setTimeout(function () { + // Simulate form submission + submitButton.removeAttribute('data-kt-indicator'); + + // Show popup confirmation + Swal.fire({ + text: "Form has been successfully submitted!", + icon: "success", + buttonsStyling: false, + confirmButtonText: "Ok, got it!", + customClass: { + confirmButton: "btn btn-primary" + } + }).then(function (result) { + if (result.isConfirmed) { + modal.hide(); + } + }); + + //form.submit(); // Submit form + }, 2000); + }); + + cancelButton.addEventListener('click', function (e) { + e.preventDefault(); + + Swal.fire({ + text: "Are you sure you would like to cancel?", + icon: "warning", + showCancelButton: true, + buttonsStyling: false, + confirmButtonText: "Yes, cancel it!", + cancelButtonText: "No, return", + customClass: { + confirmButton: "btn btn-primary", + cancelButton: "btn btn-active-light" + } + }).then(function (result) { + if (result.value) { + form.reset(); // Reset form + modal.hide(); // Hide modal + } else if (result.dismiss === 'cancel') { + Swal.fire({ + text: "Your form has not been cancelled!.", + icon: "error", + buttonsStyling: false, + confirmButtonText: "Ok, got it!", + customClass: { + confirmButton: "btn btn-primary", + } + }); + } + }); + }); + + closeButton.addEventListener('click', function (e) { + e.preventDefault(); + + Swal.fire({ + text: "Are you sure you would like to cancel?", + icon: "warning", + showCancelButton: true, + buttonsStyling: false, + confirmButtonText: "Yes, cancel it!", + cancelButtonText: "No, return", + customClass: { + confirmButton: "btn btn-primary", + cancelButton: "btn btn-active-light" + } + }).then(function (result) { + if (result.value) { + form.reset(); // Reset form + modal.hide(); // Hide modal + } else if (result.dismiss === 'cancel') { + Swal.fire({ + text: "Your form has not been cancelled!.", + icon: "error", + buttonsStyling: false, + confirmButtonText: "Ok, got it!", + customClass: { + confirmButton: "btn btn-primary", + } + }); + } + }); + }); + } + + return { + // Public functions + init: function () { + // Elements + element = document.querySelector('#kt_modal_update_customer'); + modal = new bootstrap.Modal(element); + + form = element.querySelector('#kt_modal_update_customer_form'); + submitButton = form.querySelector('#kt_modal_update_customer_submit'); + cancelButton = form.querySelector('#kt_modal_update_customer_cancel'); + closeButton = element.querySelector('#kt_modal_update_customer_close'); + + initForm(); + } + }; +}(); + +// On document ready +KTUtil.onDOMContentLoaded(function () { + KTModalUpdateCustomer.init(); +}); \ No newline at end of file diff --git a/resources/_keenthemes/src/js/custom/apps/customers/view/add-payment.js b/resources/_keenthemes/src/js/custom/apps/customers/view/add-payment.js new file mode 100644 index 0000000..89a6ecd --- /dev/null +++ b/resources/_keenthemes/src/js/custom/apps/customers/view/add-payment.js @@ -0,0 +1,207 @@ +"use strict"; + +// Class definition +var KTModalAddPayment = function () { + var element; + var submitButton; + var cancelButton; + var closeButton; + var validator; + var newBalance; + var form; + var modal; + + // Init form inputs + var initForm = function () { + // Init form validation rules. For more info check the FormValidation plugin's official documentation:https://formvalidation.io/ + validator = FormValidation.formValidation( + form, + { + fields: { + 'invoice': { + validators: { + notEmpty: { + message: 'Invoice number is required' + } + } + }, + 'status': { + validators: { + notEmpty: { + message: 'Invoice status is required' + } + } + }, + 'amount': { + validators: { + notEmpty: { + message: 'Invoice amount is required' + } + } + } + }, + + plugins: { + trigger: new FormValidation.plugins.Trigger(), + bootstrap: new FormValidation.plugins.Bootstrap5({ + rowSelector: '.fv-row', + eleInvalidClass: '', + eleValidClass: '' + }) + } + } + ); + + // Revalidate country field. For more info, plase visit the official plugin site: https://select2.org/ + $(form.querySelector('[name="status"]')).on('change', function () { + // Revalidate the field when an option is chosen + validator.revalidateField('status'); + }); + + // Action buttons + submitButton.addEventListener('click', function (e) { + // Prevent default button action + e.preventDefault(); + + // Validate form before submit + if (validator) { + validator.validate().then(function (status) { + console.log('validated!'); + + if (status == 'Valid') { + // Show loading indication + submitButton.setAttribute('data-kt-indicator', 'on'); + + // Disable submit button whilst loading + submitButton.disabled = true; + + // Simulate form submission + setTimeout(function () { + // Simulate form submission + submitButton.removeAttribute('data-kt-indicator'); + + // Show popup confirmation + Swal.fire({ + text: "Form has been successfully submitted!", + icon: "success", + buttonsStyling: false, + confirmButtonText: "Ok, got it!", + customClass: { + confirmButton: "btn btn-primary" + } + }).then(function (result) { + if (result.isConfirmed) { + modal.hide(); + + // Enable submit button after loading + submitButton.disabled = false; + + // Reset form for demo purposes only + form.reset(); + } + }); + + //form.submit(); // Submit form + }, 2000); + } else { + // Show popup warning + Swal.fire({ + text: "Sorry, looks like there are some errors detected, please try again.", + icon: "error", + buttonsStyling: false, + confirmButtonText: "Ok, got it!", + customClass: { + confirmButton: "btn btn-primary" + } + }); + } + }); + } + }); + + cancelButton.addEventListener('click', function (e) { + e.preventDefault(); + + Swal.fire({ + text: "Are you sure you would like to cancel?", + icon: "warning", + showCancelButton: true, + buttonsStyling: false, + confirmButtonText: "Yes, cancel it!", + cancelButtonText: "No, return", + customClass: { + confirmButton: "btn btn-primary", + cancelButton: "btn btn-active-light" + } + }).then(function (result) { + if (result.value) { + form.reset(); // Reset form + modal.hide(); // Hide modal + } else if (result.dismiss === 'cancel') { + Swal.fire({ + text: "Your form has not been cancelled!.", + icon: "error", + buttonsStyling: false, + confirmButtonText: "Ok, got it!", + customClass: { + confirmButton: "btn btn-primary", + } + }); + } + }); + }); + + closeButton.addEventListener('click', function (e) { + e.preventDefault(); + + Swal.fire({ + text: "Are you sure you would like to cancel?", + icon: "warning", + showCancelButton: true, + buttonsStyling: false, + confirmButtonText: "Yes, cancel it!", + cancelButtonText: "No, return", + customClass: { + confirmButton: "btn btn-primary", + cancelButton: "btn btn-active-light" + } + }).then(function (result) { + if (result.value) { + form.reset(); // Reset form + modal.hide(); // Hide modal + } else if (result.dismiss === 'cancel') { + Swal.fire({ + text: "Your form has not been cancelled!.", + icon: "error", + buttonsStyling: false, + confirmButtonText: "Ok, got it!", + customClass: { + confirmButton: "btn btn-primary", + } + }); + } + }); + }); + } + + return { + // Public functions + init: function () { + // Elements + element = document.querySelector('#kt_modal_add_payment'); + modal = new bootstrap.Modal(element); + + form = element.querySelector('#kt_modal_add_payment_form'); + submitButton = form.querySelector('#kt_modal_add_payment_submit'); + cancelButton = form.querySelector('#kt_modal_add_payment_cancel'); + closeButton = element.querySelector('#kt_modal_add_payment_close'); + + initForm(); + } + }; +}(); + +// On document ready +KTUtil.onDOMContentLoaded(function () { + KTModalAddPayment.init(); +}); \ No newline at end of file diff --git a/resources/_keenthemes/src/js/custom/apps/customers/view/adjust-balance.js b/resources/_keenthemes/src/js/custom/apps/customers/view/adjust-balance.js new file mode 100644 index 0000000..10af46d --- /dev/null +++ b/resources/_keenthemes/src/js/custom/apps/customers/view/adjust-balance.js @@ -0,0 +1,241 @@ +"use strict"; + +// Class definition +var KTModalAdjustBalance = function () { + var element; + var submitButton; + var cancelButton; + var closeButton; + var validator; + var maskInput; + var newBalance; + var form; + var modal; + + // Init form inputs + var initForm = function () { + // Init inputmask plugin --- For more info please refer to the official documentation here: https://github.com/RobinHerbots/Inputmask + Inputmask("US$ 9,999,999.99", { + "numericInput": true + }).mask("#kt_modal_inputmask"); + } + + var handleBalanceCalculator = function () { + // Select elements + const currentBalance = element.querySelector('[kt-modal-adjust-balance="current_balance"]'); + newBalance = element.querySelector('[kt-modal-adjust-balance="new_balance"]'); + maskInput = document.getElementById('kt_modal_inputmask'); + + // Get current balance value + const isNegative = currentBalance.innerHTML.includes('-'); + let currentValue = parseFloat(currentBalance.innerHTML.replace(/[^0-9.]/g, '').replace(',', '')); + currentValue = isNegative ? currentValue * -1 : currentValue; + + // On change event for inputmask + let maskValue; + maskInput.addEventListener('focusout', function (e) { + // Get inputmask value on change + maskValue = parseFloat(e.target.value.replace(/[^0-9.]/g, '').replace(',', '')); + + // Set mask value as 0 when NaN detected + if(isNaN(maskValue)){ + maskValue = 0; + } + + // Calculate & set new balance value + newBalance.innerHTML = 'US$ ' + (maskValue + currentValue).toFixed(2).replace(/\d(?=(\d{3})+\.)/g, '$&,'); + }); + } + + // Handle form validation and submittion + var handleForm = function () { + // Stepper custom navigation + + // Init form validation rules. For more info check the FormValidation plugin's official documentation:https://formvalidation.io/ + validator = FormValidation.formValidation( + form, + { + fields: { + 'adjustment': { + validators: { + notEmpty: { + message: 'Adjustment type is required' + } + } + }, + 'amount': { + validators: { + notEmpty: { + message: 'Amount is required' + } + } + } + }, + + plugins: { + trigger: new FormValidation.plugins.Trigger(), + bootstrap: new FormValidation.plugins.Bootstrap5({ + rowSelector: '.fv-row', + eleInvalidClass: '', + eleValidClass: '' + }) + } + } + ); + + // Revalidate country field. For more info, plase visit the official plugin site: https://select2.org/ + $(form.querySelector('[name="adjustment"]')).on('change', function () { + // Revalidate the field when an option is chosen + validator.revalidateField('adjustment'); + }); + + // Action buttons + submitButton.addEventListener('click', function (e) { + // Prevent default button action + e.preventDefault(); + + // Validate form before submit + if (validator) { + validator.validate().then(function (status) { + console.log('validated!'); + + if (status == 'Valid') { + // Show loading indication + submitButton.setAttribute('data-kt-indicator', 'on'); + + // Disable submit button whilst loading + submitButton.disabled = true; + + // Simulate form submission + setTimeout(function () { + // Simulate form submission + submitButton.removeAttribute('data-kt-indicator'); + + // Show popup confirmation + Swal.fire({ + text: "Form has been successfully submitted!", + icon: "success", + buttonsStyling: false, + confirmButtonText: "Ok, got it!", + customClass: { + confirmButton: "btn btn-primary" + } + }).then(function (result) { + if (result.isConfirmed) { + modal.hide(); + + // Enable submit button after loading + submitButton.disabled = false; + + // Reset form for demo purposes only + form.reset(); + newBalance.innerHTML = "--"; + } + }); + + //form.submit(); // Submit form + }, 2000); + } else { + // Show popup warning + Swal.fire({ + text: "Sorry, looks like there are some errors detected, please try again.", + icon: "error", + buttonsStyling: false, + confirmButtonText: "Ok, got it!", + customClass: { + confirmButton: "btn btn-primary" + } + }); + } + }); + } + }); + + cancelButton.addEventListener('click', function (e) { + e.preventDefault(); + + Swal.fire({ + text: "Are you sure you would like to cancel?", + icon: "warning", + showCancelButton: true, + buttonsStyling: false, + confirmButtonText: "Yes, cancel it!", + cancelButtonText: "No, return", + customClass: { + confirmButton: "btn btn-primary", + cancelButton: "btn btn-active-light" + } + }).then(function (result) { + if (result.value) { + form.reset(); // Reset form + modal.hide(); // Hide modal + } else if (result.dismiss === 'cancel') { + Swal.fire({ + text: "Your form has not been cancelled!.", + icon: "error", + buttonsStyling: false, + confirmButtonText: "Ok, got it!", + customClass: { + confirmButton: "btn btn-primary", + } + }); + } + }); + }); + + closeButton.addEventListener('click', function (e) { + e.preventDefault(); + + Swal.fire({ + text: "Are you sure you would like to cancel?", + icon: "warning", + showCancelButton: true, + buttonsStyling: false, + confirmButtonText: "Yes, cancel it!", + cancelButtonText: "No, return", + customClass: { + confirmButton: "btn btn-primary", + cancelButton: "btn btn-active-light" + } + }).then(function (result) { + if (result.value) { + form.reset(); // Reset form + modal.hide(); // Hide modal + } else if (result.dismiss === 'cancel') { + Swal.fire({ + text: "Your form has not been cancelled!.", + icon: "error", + buttonsStyling: false, + confirmButtonText: "Ok, got it!", + customClass: { + confirmButton: "btn btn-primary", + } + }); + } + }); + }); + } + + return { + // Public functions + init: function () { + // Elements + element = document.querySelector('#kt_modal_adjust_balance'); + modal = new bootstrap.Modal(element); + + form = element.querySelector('#kt_modal_adjust_balance_form'); + submitButton = form.querySelector('#kt_modal_adjust_balance_submit'); + cancelButton = form.querySelector('#kt_modal_adjust_balance_cancel'); + closeButton = element.querySelector('#kt_modal_adjust_balance_close'); + + initForm(); + handleBalanceCalculator(); + handleForm(); + } + }; +}(); + +// On document ready +KTUtil.onDOMContentLoaded(function () { + KTModalAdjustBalance.init(); +}); \ No newline at end of file diff --git a/resources/_keenthemes/src/js/custom/apps/customers/view/invoices.js b/resources/_keenthemes/src/js/custom/apps/customers/view/invoices.js new file mode 100644 index 0000000..ab22f20 --- /dev/null +++ b/resources/_keenthemes/src/js/custom/apps/customers/view/invoices.js @@ -0,0 +1,129 @@ +"use strict"; + +// Class definition +var KTCustomerViewInvoices = function () { + + // Private functions + // Init current year datatable + var initInvoiceYearCurrent = function () { + // Define table element + const id = '#kt_customer_details_invoices_table_1'; + var table = document.querySelector(id); + + // Set date data order + const tableRows = table.querySelectorAll('tbody tr'); + + tableRows.forEach(row => { + const dateRow = row.querySelectorAll('td'); + const realDate = moment(dateRow[0].innerHTML, "DD MMM YYYY, LT").format(); // select date from 1st column in table + dateRow[0].setAttribute('data-order', realDate); + }); + + // Init datatable --- more info on datatables: https://datatables.net/manual/ + var datatable = $(id).DataTable({ + "info": false, + 'order': [], + "pageLength": 5, + "lengthChange": false, + 'columnDefs': [ + { orderable: false, targets: 4 }, // Disable ordering on column 0 (download) + ] + }); + } + + // Init year 2020 datatable + var initInvoiceYear2020 = function () { + // Define table element + const id = '#kt_customer_details_invoices_table_2'; + var table = document.querySelector(id); + + // Set date data order + const tableRows = table.querySelectorAll('tbody tr'); + + tableRows.forEach(row => { + const dateRow = row.querySelectorAll('td'); + const realDate = moment(dateRow[0].innerHTML, "DD MMM YYYY, LT").format(); // select date from 1st column in table + dateRow[0].setAttribute('data-order', realDate); + }); + + // Init datatable --- more info on datatables: https://datatables.net/manual/ + var datatable = $(id).DataTable({ + "info": false, + 'order': [], + "pageLength": 5, + "lengthChange": false, + 'columnDefs': [ + { orderable: false, targets: 4 }, // Disable ordering on column 0 (download) + ] + }); + } + + // Init year 2019 datatable + var initInvoiceYear2019 = function () { + // Define table element + const id = '#kt_customer_details_invoices_table_3'; + var table = document.querySelector(id); + + // Set date data order + const tableRows = table.querySelectorAll('tbody tr'); + + tableRows.forEach(row => { + const dateRow = row.querySelectorAll('td'); + const realDate = moment(dateRow[0].innerHTML, "DD MMM YYYY, LT").format(); // select date from 1st column in table + dateRow[0].setAttribute('data-order', realDate); + }); + + // Init datatable --- more info on datatables: https://datatables.net/manual/ + var datatable = $(id).DataTable({ + "info": false, + 'order': [], + "pageLength": 5, + "lengthChange": false, + 'columnDefs': [ + { orderable: false, targets: 4 }, // Disable ordering on column 0 (download) + ] + }); + } + + // Init year 2018 datatable + var initInvoiceYear2018 = function () { + // Define table element + const id = '#kt_customer_details_invoices_table_4'; + var table = document.querySelector(id); + + // Set date data order + const tableRows = table.querySelectorAll('tbody tr'); + + tableRows.forEach(row => { + const dateRow = row.querySelectorAll('td'); + const realDate = moment(dateRow[0].innerHTML, "DD MMM YYYY, LT").format(); // select date from 1st column in table + dateRow[0].setAttribute('data-order', realDate); + }); + + // Init datatable --- more info on datatables: https://datatables.net/manual/ + var datatable = $(id).DataTable({ + "info": false, + 'order': [], + "pageLength": 5, + "lengthChange": false, + 'columnDefs': [ + { orderable: false, targets: 4 }, // Disable ordering on column 0 (download) + ] + }); + } + + // Public methods + return { + init: function () { + initInvoiceYearCurrent(); + initInvoiceYear2020(); + initInvoiceYear2019(); + initInvoiceYear2018(); + } + } +}(); + +// On document ready +KTUtil.onDOMContentLoaded(function () { + KTCustomerViewInvoices.init(); +}); \ No newline at end of file diff --git a/resources/_keenthemes/src/js/custom/apps/customers/view/payment-method.js b/resources/_keenthemes/src/js/custom/apps/customers/view/payment-method.js new file mode 100644 index 0000000..f63d912 --- /dev/null +++ b/resources/_keenthemes/src/js/custom/apps/customers/view/payment-method.js @@ -0,0 +1,110 @@ +"use strict"; + +// Class definition +var KTCustomerViewPaymentMethod = function () { + + // Private functions + var initPaymentMethod = function () { + // Define variables + const table = document.getElementById('kt_customer_view_payment_method'); + const tableRows = table.querySelectorAll('[ data-kt-customer-payment-method="row"]'); + + tableRows.forEach(row => { + // Select delete button + const deleteButton = row.querySelector('[data-kt-customer-payment-method="delete"]'); + + // Delete button action + deleteButton.addEventListener('click', e => { + e.preventDefault(); + + // Popup confirmation + Swal.fire({ + text: "Are you sure you would like to delete this card?", + icon: "warning", + showCancelButton: true, + buttonsStyling: false, + confirmButtonText: "Yes, delete it!", + cancelButtonText: "No, return", + customClass: { + confirmButton: "btn btn-primary", + cancelButton: "btn btn-active-light" + } + }).then(function (result) { + if (result.value) { + row.remove(); + modal.hide(); // Hide modal + } else if (result.dismiss === 'cancel') { + Swal.fire({ + text: "Your card was not deleted!.", + icon: "error", + buttonsStyling: false, + confirmButtonText: "Ok, got it!", + customClass: { + confirmButton: "btn btn-primary", + } + }); + } + }); + }); + }); + } + + // Handle set as primary button + const handlePrimaryButton = () => { + // Define variable + const button = document.querySelector('[data-kt-payment-mehtod-action="set_as_primary"]'); + + button.addEventListener('click', e => { + e.preventDefault(); + + // Popup confirmation + Swal.fire({ + text: "Are you sure you would like to set this card as primary?", + icon: "warning", + showCancelButton: true, + buttonsStyling: false, + confirmButtonText: "Yes, set it!", + cancelButtonText: "No, return", + customClass: { + confirmButton: "btn btn-primary", + cancelButton: "btn btn-active-light" + } + }).then(function (result) { + if (result.value) { + Swal.fire({ + text: "Your card was set to primary!.", + icon: "success", + buttonsStyling: false, + confirmButtonText: "Ok, got it!", + customClass: { + confirmButton: "btn btn-primary", + } + }); + } else if (result.dismiss === 'cancel') { + Swal.fire({ + text: "Your card was not set to primary!.", + icon: "error", + buttonsStyling: false, + confirmButtonText: "Ok, got it!", + customClass: { + confirmButton: "btn btn-primary", + } + }); + } + }); + }); + }; + + // Public methods + return { + init: function () { + initPaymentMethod(); + handlePrimaryButton(); + } + } +}(); + +// On document ready +KTUtil.onDOMContentLoaded(function () { + KTCustomerViewPaymentMethod.init(); +}); \ No newline at end of file diff --git a/resources/_keenthemes/src/js/custom/apps/customers/view/payment-table.js b/resources/_keenthemes/src/js/custom/apps/customers/view/payment-table.js new file mode 100644 index 0000000..30fba5d --- /dev/null +++ b/resources/_keenthemes/src/js/custom/apps/customers/view/payment-table.js @@ -0,0 +1,110 @@ +"use strict"; + +// Class definition +var KTCustomerViewPaymentTable = function () { + + // Define shared variables + var datatable; + var table = document.querySelector('#kt_table_customers_payment'); + + // Private functions + var initCustomerView = function () { + // Set date data order + const tableRows = table.querySelectorAll('tbody tr'); + + tableRows.forEach(row => { + const dateRow = row.querySelectorAll('td'); + const realDate = moment(dateRow[3].innerHTML, "DD MMM YYYY, LT").format(); // select date from 4th column in table + dateRow[3].setAttribute('data-order', realDate); + }); + + // Init datatable --- more info on datatables: https://datatables.net/manual/ + datatable = $(table).DataTable({ + "info": false, + 'order': [], + "pageLength": 5, + "lengthChange": false, + 'columnDefs': [ + { orderable: false, targets: 4 }, // Disable ordering on column 5 (actions) + ] + }); + } + + // Delete customer + var deleteRows = () => { + // Select all delete buttons + const deleteButtons = table.querySelectorAll('[data-kt-customer-table-filter="delete_row"]'); + + deleteButtons.forEach(d => { + // Delete button on click + d.addEventListener('click', function (e) { + e.preventDefault(); + + // Select parent row + const parent = e.target.closest('tr'); + + // Get customer name + const invoiceNumber = parent.querySelectorAll('td')[0].innerText; + + // SweetAlert2 pop up --- official docs reference: https://sweetalert2.github.io/ + Swal.fire({ + text: "Are you sure you want to delete " + invoiceNumber + "?", + icon: "warning", + showCancelButton: true, + buttonsStyling: false, + confirmButtonText: "Yes, delete!", + cancelButtonText: "No, cancel", + customClass: { + confirmButton: "btn fw-bold btn-danger", + cancelButton: "btn fw-bold btn-active-light-primary" + } + }).then(function (result) { + if (result.value) { + Swal.fire({ + text: "You have deleted " + invoiceNumber + "!.", + icon: "success", + buttonsStyling: false, + confirmButtonText: "Ok, got it!", + customClass: { + confirmButton: "btn fw-bold btn-primary", + } + }).then(function () { + // Remove current row + datatable.row($(parent)).remove().draw(); + }).then(function () { + // Detect checked checkboxes + toggleToolbars(); + }); + } else if (result.dismiss === 'cancel') { + Swal.fire({ + text: customerName + " was not deleted.", + icon: "error", + buttonsStyling: false, + confirmButtonText: "Ok, got it!", + customClass: { + confirmButton: "btn fw-bold btn-primary", + } + }); + } + }); + }) + }); + } + + // Public methods + return { + init: function () { + if (!table) { + return; + } + + initCustomerView(); + deleteRows(); + } + } +}(); + +// On document ready +KTUtil.onDOMContentLoaded(function () { + KTCustomerViewPaymentTable.init(); +}); \ No newline at end of file diff --git a/resources/_keenthemes/src/js/custom/apps/customers/view/statement.js b/resources/_keenthemes/src/js/custom/apps/customers/view/statement.js new file mode 100644 index 0000000..f2059ab --- /dev/null +++ b/resources/_keenthemes/src/js/custom/apps/customers/view/statement.js @@ -0,0 +1,129 @@ +"use strict"; + +// Class definition +var KTCustomerViewStatements = function () { + + // Private functions + // Init current year datatable + var initStatementYearCurrent = function () { + // Define table element + const id = '#kt_customer_view_statement_table_1'; + var table = document.querySelector(id); + + // Set date data order + const tableRows = table.querySelectorAll('tbody tr'); + + tableRows.forEach(row => { + const dateRow = row.querySelectorAll('td'); + const realDate = moment(dateRow[0].innerHTML, "DD MMM YYYY, LT").format(); // select date from 1st column in table + dateRow[0].setAttribute('data-order', realDate); + }); + + // Init datatable --- more info on datatables: https://datatables.net/manual/ + var datatable = $(id).DataTable({ + "info": false, + 'order': [], + "pageLength": 10, + "lengthChange": false, + 'columnDefs': [ + { orderable: false, targets: 4 }, // Disable ordering on column 0 (download) + ] + }); + } + + // Init year 2020 datatable + var initStatementYear2020 = function () { + // Define table element + const id = '#kt_customer_view_statement_table_2'; + var table = document.querySelector(id); + + // Set date data order + const tableRows = table.querySelectorAll('tbody tr'); + + tableRows.forEach(row => { + const dateRow = row.querySelectorAll('td'); + const realDate = moment(dateRow[0].innerHTML, "DD MMM YYYY, LT").format(); // select date from 1st column in table + dateRow[0].setAttribute('data-order', realDate); + }); + + // Init datatable --- more info on datatables: https://datatables.net/manual/ + var datatable = $(id).DataTable({ + "info": false, + 'order': [], + "pageLength": 10, + "lengthChange": false, + 'columnDefs': [ + { orderable: false, targets: 4 }, // Disable ordering on column 0 (download) + ] + }); + } + + // Init year 2019 datatable + var initStatementYear2019 = function () { + // Define table element + const id = '#kt_customer_view_statement_table_3'; + var table = document.querySelector(id); + + // Set date data order + const tableRows = table.querySelectorAll('tbody tr'); + + tableRows.forEach(row => { + const dateRow = row.querySelectorAll('td'); + const realDate = moment(dateRow[0].innerHTML, "DD MMM YYYY, LT").format(); // select date from 1st column in table + dateRow[0].setAttribute('data-order', realDate); + }); + + // Init datatable --- more info on datatables: https://datatables.net/manual/ + var datatable = $(id).DataTable({ + "info": false, + 'order': [], + "pageLength": 10, + "lengthChange": false, + 'columnDefs': [ + { orderable: false, targets: 4 }, // Disable ordering on column 0 (download) + ] + }); + } + + // Init year 2018 datatable + var initStatementYear2018 = function () { + // Define table element + const id = '#kt_customer_view_statement_table_4'; + var table = document.querySelector(id); + + // Set date data order + const tableRows = table.querySelectorAll('tbody tr'); + + tableRows.forEach(row => { + const dateRow = row.querySelectorAll('td'); + const realDate = moment(dateRow[0].innerHTML, "DD MMM YYYY, LT").format(); // select date from 1st column in table + dateRow[0].setAttribute('data-order', realDate); + }); + + // Init datatable --- more info on datatables: https://datatables.net/manual/ + var datatable = $(id).DataTable({ + "info": false, + 'order': [], + "pageLength": 10, + "lengthChange": false, + 'columnDefs': [ + { orderable: false, targets: 4 }, // Disable ordering on column 0 (download) + ] + }); + } + + // Public methods + return { + init: function () { + initStatementYearCurrent(); + initStatementYear2020(); + initStatementYear2019(); + initStatementYear2018(); + } + } +}(); + +// On document ready +KTUtil.onDOMContentLoaded(function () { + KTCustomerViewStatements.init(); +}); \ No newline at end of file diff --git a/resources/_keenthemes/src/js/custom/apps/ecommerce/catalog/categories.js b/resources/_keenthemes/src/js/custom/apps/ecommerce/catalog/categories.js new file mode 100644 index 0000000..a7603f1 --- /dev/null +++ b/resources/_keenthemes/src/js/custom/apps/ecommerce/catalog/categories.js @@ -0,0 +1,114 @@ +"use strict"; + +// Class definition +var KTAppEcommerceCategories = function () { + // Shared variables + var table; + var datatable; + + // Private functions + var initDatatable = function () { + // Init datatable --- more info on datatables: https://datatables.net/manual/ + datatable = $(table).DataTable({ + "info": false, + 'order': [], + 'pageLength': 10, + 'columnDefs': [ + { orderable: false, targets: 0 }, // Disable ordering on column 0 (checkbox) + { orderable: false, targets: 3 }, // Disable ordering on column 3 (actions) + ] + }); + + // Re-init functions on datatable re-draws + datatable.on('draw', function () { + handleDeleteRows(); + }); + } + + // Search Datatable --- official docs reference: https://datatables.net/reference/api/search() + var handleSearchDatatable = () => { + const filterSearch = document.querySelector('[data-kt-ecommerce-category-filter="search"]'); + filterSearch.addEventListener('keyup', function (e) { + datatable.search(e.target.value).draw(); + }); + } + + // Delete cateogry + var handleDeleteRows = () => { + // Select all delete buttons + const deleteButtons = table.querySelectorAll('[data-kt-ecommerce-category-filter="delete_row"]'); + + deleteButtons.forEach(d => { + // Delete button on click + d.addEventListener('click', function (e) { + e.preventDefault(); + + // Select parent row + const parent = e.target.closest('tr'); + + // Get category name + const categoryName = parent.querySelector('[data-kt-ecommerce-category-filter="category_name"]').innerText; + + // SweetAlert2 pop up --- official docs reference: https://sweetalert2.github.io/ + Swal.fire({ + text: "Are you sure you want to delete " + categoryName + "?", + icon: "warning", + showCancelButton: true, + buttonsStyling: false, + confirmButtonText: "Yes, delete!", + cancelButtonText: "No, cancel", + customClass: { + confirmButton: "btn fw-bold btn-danger", + cancelButton: "btn fw-bold btn-active-light-primary" + } + }).then(function (result) { + if (result.value) { + Swal.fire({ + text: "You have deleted " + categoryName + "!.", + icon: "success", + buttonsStyling: false, + confirmButtonText: "Ok, got it!", + customClass: { + confirmButton: "btn fw-bold btn-primary", + } + }).then(function () { + // Remove current row + datatable.row($(parent)).remove().draw(); + }); + } else if (result.dismiss === 'cancel') { + Swal.fire({ + text: categoryName + " was not deleted.", + icon: "error", + buttonsStyling: false, + confirmButtonText: "Ok, got it!", + customClass: { + confirmButton: "btn fw-bold btn-primary", + } + }); + } + }); + }) + }); + } + + + // Public methods + return { + init: function () { + table = document.querySelector('#kt_ecommerce_category_table'); + + if (!table) { + return; + } + + initDatatable(); + handleSearchDatatable(); + handleDeleteRows(); + } + }; +}(); + +// On document ready +KTUtil.onDOMContentLoaded(function () { + KTAppEcommerceCategories.init(); +}); diff --git a/resources/_keenthemes/src/js/custom/apps/ecommerce/catalog/products.js b/resources/_keenthemes/src/js/custom/apps/ecommerce/catalog/products.js new file mode 100644 index 0000000..2d3b3f6 --- /dev/null +++ b/resources/_keenthemes/src/js/custom/apps/ecommerce/catalog/products.js @@ -0,0 +1,128 @@ +"use strict"; + +// Class definition +var KTAppEcommerceProducts = function () { + // Shared variables + var table; + var datatable; + + // Private functions + var initDatatable = function () { + // Init datatable --- more info on datatables: https://datatables.net/manual/ + datatable = $(table).DataTable({ + "info": false, + 'order': [], + 'pageLength': 10, + 'columnDefs': [ + { render: DataTable.render.number(',', '.', 2), targets: 4}, + { orderable: false, targets: 0 }, // Disable ordering on column 0 (checkbox) + { orderable: false, targets: 7 }, // Disable ordering on column 7 (actions) + ] + }); + + // Re-init functions on datatable re-draws + datatable.on('draw', function () { + handleDeleteRows(); + }); + } + + // Search Datatable --- official docs reference: https://datatables.net/reference/api/search() + var handleSearchDatatable = () => { + const filterSearch = document.querySelector('[data-kt-ecommerce-product-filter="search"]'); + filterSearch.addEventListener('keyup', function (e) { + datatable.search(e.target.value).draw(); + }); + } + + // Handle status filter dropdown + var handleStatusFilter = () => { + const filterStatus = document.querySelector('[data-kt-ecommerce-product-filter="status"]'); + $(filterStatus).on('change', e => { + let value = e.target.value; + if(value === 'all'){ + value = ''; + } + datatable.column(6).search(value).draw(); + }); + } + + // Delete cateogry + var handleDeleteRows = () => { + // Select all delete buttons + const deleteButtons = table.querySelectorAll('[data-kt-ecommerce-product-filter="delete_row"]'); + + deleteButtons.forEach(d => { + // Delete button on click + d.addEventListener('click', function (e) { + e.preventDefault(); + + // Select parent row + const parent = e.target.closest('tr'); + + // Get category name + const productName = parent.querySelector('[data-kt-ecommerce-product-filter="product_name"]').innerText; + + // SweetAlert2 pop up --- official docs reference: https://sweetalert2.github.io/ + Swal.fire({ + text: "Are you sure you want to delete " + productName + "?", + icon: "warning", + showCancelButton: true, + buttonsStyling: false, + confirmButtonText: "Yes, delete!", + cancelButtonText: "No, cancel", + customClass: { + confirmButton: "btn fw-bold btn-danger", + cancelButton: "btn fw-bold btn-active-light-primary" + } + }).then(function (result) { + if (result.value) { + Swal.fire({ + text: "You have deleted " + productName + "!.", + icon: "success", + buttonsStyling: false, + confirmButtonText: "Ok, got it!", + customClass: { + confirmButton: "btn fw-bold btn-primary", + } + }).then(function () { + // Remove current row + datatable.row($(parent)).remove().draw(); + }); + } else if (result.dismiss === 'cancel') { + Swal.fire({ + text: productName + " was not deleted.", + icon: "error", + buttonsStyling: false, + confirmButtonText: "Ok, got it!", + customClass: { + confirmButton: "btn fw-bold btn-primary", + } + }); + } + }); + }) + }); + } + + + // Public methods + return { + init: function () { + table = document.querySelector('#kt_ecommerce_products_table'); + + if (!table) { + return; + } + + initDatatable(); + handleSearchDatatable(); + handleStatusFilter(); + handleDeleteRows(); + } + }; +}(); + +// On document ready +KTUtil.onDOMContentLoaded(function () { + KTAppEcommerceProducts.init(); +}); diff --git a/resources/_keenthemes/src/js/custom/apps/ecommerce/catalog/save-category.js b/resources/_keenthemes/src/js/custom/apps/ecommerce/catalog/save-category.js new file mode 100644 index 0000000..7f4699c --- /dev/null +++ b/resources/_keenthemes/src/js/custom/apps/ecommerce/catalog/save-category.js @@ -0,0 +1,287 @@ +"use strict"; + +// Class definition +var KTAppEcommerceSaveCategory = function () { + + // Private functions + + // Init quill editor + const initQuill = () => { + // Define all elements for quill editor + const elements = [ + '#kt_ecommerce_add_category_description', + '#kt_ecommerce_add_category_meta_description' + ]; + + // Loop all elements + elements.forEach(element => { + // Get quill element + let quill = document.querySelector(element); + + // Break if element not found + if (!quill) { + return; + } + + // Init quill --- more info: https://quilljs.com/docs/quickstart/ + quill = new Quill(element, { + modules: { + toolbar: [ + [{ + header: [1, 2, false] + }], + ['bold', 'italic', 'underline'], + ['image', 'code-block'] + ] + }, + placeholder: 'Type your text here...', + theme: 'snow' // or 'bubble' + }); + }); + + } + + // Init tagify + const initTagify = () => { + // Define all elements for tagify + const elements = [ + '#kt_ecommerce_add_category_meta_keywords' + ]; + + // Loop all elements + elements.forEach(element => { + // Get tagify element + const tagify = document.querySelector(element); + + // Break if element not found + if (!tagify) { + return; + } + + // Init tagify --- more info: https://yaireo.github.io/tagify/ + new Tagify(tagify); + }); + } + + // Init form repeater --- more info: https://github.com/DubFriend/jquery.repeater + const initFormRepeater = () => { + $('#kt_ecommerce_add_category_conditions').repeater({ + initEmpty: false, + + defaultValues: { + 'text-input': 'foo' + }, + + show: function () { + $(this).slideDown(); + + // Init select2 on new repeated items + initConditionsSelect2(); + }, + + hide: function (deleteElement) { + $(this).slideUp(deleteElement); + } + }); + } + + // Init condition select2 + const initConditionsSelect2 = () => { + // Tnit new repeating condition types + const allConditionTypes = document.querySelectorAll('[data-kt-ecommerce-catalog-add-category="condition_type"]'); + allConditionTypes.forEach(type => { + if ($(type).hasClass("select2-hidden-accessible")) { + return; + } else { + $(type).select2({ + minimumResultsForSearch: -1 + }); + } + }); + + // Tnit new repeating condition equals + const allConditionEquals = document.querySelectorAll('[data-kt-ecommerce-catalog-add-category="condition_equals"]'); + allConditionEquals.forEach(equal => { + if ($(equal).hasClass("select2-hidden-accessible")) { + return; + } else { + $(equal).select2({ + minimumResultsForSearch: -1 + }); + } + }); + } + + // Category status handler + const handleStatus = () => { + const target = document.getElementById('kt_ecommerce_add_category_status'); + const select = document.getElementById('kt_ecommerce_add_category_status_select'); + const statusClasses = ['bg-success', 'bg-warning', 'bg-danger']; + + $(select).on('change', function (e) { + const value = e.target.value; + + switch (value) { + case "published": { + target.classList.remove(...statusClasses); + target.classList.add('bg-success'); + hideDatepicker(); + break; + } + case "scheduled": { + target.classList.remove(...statusClasses); + target.classList.add('bg-warning'); + showDatepicker(); + break; + } + case "unpublished": { + target.classList.remove(...statusClasses); + target.classList.add('bg-danger'); + hideDatepicker(); + break; + } + default: + break; + } + }); + + + // Handle datepicker + const datepicker = document.getElementById('kt_ecommerce_add_category_status_datepicker'); + + // Init flatpickr --- more info: https://flatpickr.js.org/ + $('#kt_ecommerce_add_category_status_datepicker').flatpickr({ + enableTime: true, + dateFormat: "Y-m-d H:i", + }); + + const showDatepicker = () => { + datepicker.parentNode.classList.remove('d-none'); + } + + const hideDatepicker = () => { + datepicker.parentNode.classList.add('d-none'); + } + } + + // Condition type handler + const handleConditions = () => { + const allConditions = document.querySelectorAll('[name="method"][type="radio"]'); + const conditionMatch = document.querySelector('[data-kt-ecommerce-catalog-add-category="auto-options"]'); + allConditions.forEach(radio => { + radio.addEventListener('change', e => { + if (e.target.value === '1') { + conditionMatch.classList.remove('d-none'); + } else { + conditionMatch.classList.add('d-none'); + } + }); + }) + } + + // Submit form handler + const handleSubmit = () => { + // Define variables + let validator; + + // Get elements + const form = document.getElementById('kt_ecommerce_add_category_form'); + const submitButton = document.getElementById('kt_ecommerce_add_category_submit'); + + // Init form validation rules. For more info check the FormValidation plugin's official documentation:https://formvalidation.io/ + validator = FormValidation.formValidation( + form, + { + fields: { + 'category_name': { + validators: { + notEmpty: { + message: 'Category name is required' + } + } + } + }, + plugins: { + trigger: new FormValidation.plugins.Trigger(), + bootstrap: new FormValidation.plugins.Bootstrap5({ + rowSelector: '.fv-row', + eleInvalidClass: '', + eleValidClass: '' + }) + } + } + ); + + // Handle submit button + submitButton.addEventListener('click', e => { + e.preventDefault(); + + // Validate form before submit + if (validator) { + validator.validate().then(function (status) { + console.log('validated!'); + + if (status == 'Valid') { + submitButton.setAttribute('data-kt-indicator', 'on'); + + // Disable submit button whilst loading + submitButton.disabled = true; + + setTimeout(function () { + submitButton.removeAttribute('data-kt-indicator'); + + Swal.fire({ + text: "Form has been successfully submitted!", + icon: "success", + buttonsStyling: false, + confirmButtonText: "Ok, got it!", + customClass: { + confirmButton: "btn btn-primary" + } + }).then(function (result) { + if (result.isConfirmed) { + // Enable submit button after loading + submitButton.disabled = false; + + // Redirect to customers list page + window.location = form.getAttribute("data-kt-redirect"); + } + }); + }, 2000); + } else { + Swal.fire({ + text: "Sorry, looks like there are some errors detected, please try again.", + icon: "error", + buttonsStyling: false, + confirmButtonText: "Ok, got it!", + customClass: { + confirmButton: "btn btn-primary" + } + }); + } + }); + } + }) + } + + // Public methods + return { + init: function () { + // Init forms + initQuill(); + initTagify(); + initFormRepeater(); + initConditionsSelect2(); + + // Handle forms + handleStatus(); + handleConditions(); + handleSubmit(); + } + }; +}(); + +// On document ready +KTUtil.onDOMContentLoaded(function () { + KTAppEcommerceSaveCategory.init(); +}); diff --git a/resources/_keenthemes/src/js/custom/apps/ecommerce/catalog/save-product.js b/resources/_keenthemes/src/js/custom/apps/ecommerce/catalog/save-product.js new file mode 100644 index 0000000..33cbe95 --- /dev/null +++ b/resources/_keenthemes/src/js/custom/apps/ecommerce/catalog/save-product.js @@ -0,0 +1,416 @@ +"use strict"; + +// Class definition +var KTAppEcommerceSaveProduct = function () { + + // Private functions + + // Init quill editor + const initQuill = () => { + // Define all elements for quill editor + const elements = [ + '#kt_ecommerce_add_product_description', + '#kt_ecommerce_add_product_meta_description' + ]; + + // Loop all elements + elements.forEach(element => { + // Get quill element + let quill = document.querySelector(element); + + // Break if element not found + if (!quill) { + return; + } + + // Init quill --- more info: https://quilljs.com/docs/quickstart/ + quill = new Quill(element, { + modules: { + toolbar: [ + [{ + header: [1, 2, false] + }], + ['bold', 'italic', 'underline'], + ['image', 'code-block'] + ] + }, + placeholder: 'Type your text here...', + theme: 'snow' // or 'bubble' + }); + }); + } + + // Init tagify + const initTagify = () => { + // Define all elements for tagify + const elements = [ + '#kt_ecommerce_add_product_category', + '#kt_ecommerce_add_product_tags' + ]; + + // Loop all elements + elements.forEach(element => { + // Get tagify element + const tagify = document.querySelector(element); + + // Break if element not found + if (!tagify) { + return; + } + + // Init tagify --- more info: https://yaireo.github.io/tagify/ + new Tagify(tagify, { + whitelist: ["new", "trending", "sale", "discounted", "selling fast", "last 10"], + dropdown: { + maxItems: 20, // <- mixumum allowed rendered suggestions + classname: "tagify__inline__suggestions", // <- custom classname for this dropdown, so it could be targeted + enabled: 0, // <- show suggestions on focus + closeOnSelect: false // <- do not hide the suggestions dropdown once an item has been selected + } + }); + }); + } + + // Init form repeater --- more info: https://github.com/DubFriend/jquery.repeater + const initFormRepeater = () => { + $('#kt_ecommerce_add_product_options').repeater({ + initEmpty: false, + + defaultValues: { + 'text-input': 'foo' + }, + + show: function () { + $(this).slideDown(); + + // Init select2 on new repeated items + initConditionsSelect2(); + }, + + hide: function (deleteElement) { + $(this).slideUp(deleteElement); + } + }); + } + + // Init condition select2 + const initConditionsSelect2 = () => { + // Tnit new repeating condition types + const allConditionTypes = document.querySelectorAll('[data-kt-ecommerce-catalog-add-product="product_option"]'); + allConditionTypes.forEach(type => { + if ($(type).hasClass("select2-hidden-accessible")) { + return; + } else { + $(type).select2({ + minimumResultsForSearch: -1 + }); + } + }); + } + + + // Init noUIslider + const initSlider = () => { + var slider = document.querySelector("#kt_ecommerce_add_product_discount_slider"); + var value = document.querySelector("#kt_ecommerce_add_product_discount_label"); + + noUiSlider.create(slider, { + start: [10], + connect: true, + range: { + "min": 1, + "max": 100 + } + }); + + slider.noUiSlider.on("update", function (values, handle) { + value.innerHTML = Math.round(values[handle]); + if (handle) { + value.innerHTML = Math.round(values[handle]); + } + }); + } + + // Init DropzoneJS --- more info: + const initDropzone = () => { + var myDropzone = new Dropzone("#kt_ecommerce_add_product_media", { + url: "https://keenthemes.com/scripts/void.php", // Set the url for your upload script location + paramName: "file", // The name that will be used to transfer the file + maxFiles: 10, + maxFilesize: 10, // MB + addRemoveLinks: true, + accept: function (file, done) { + if (file.name == "wow.jpg") { + done("Naha, you don't."); + } else { + done(); + } + } + }); + } + + // Handle discount options + const handleDiscount = () => { + const discountOptions = document.querySelectorAll('input[name="discount_option"]'); + const percentageEl = document.getElementById('kt_ecommerce_add_product_discount_percentage'); + const fixedEl = document.getElementById('kt_ecommerce_add_product_discount_fixed'); + + discountOptions.forEach(option => { + option.addEventListener('change', e => { + const value = e.target.value; + + switch (value) { + case '2': { + percentageEl.classList.remove('d-none'); + fixedEl.classList.add('d-none'); + break; + } + case '3': { + percentageEl.classList.add('d-none'); + fixedEl.classList.remove('d-none'); + break; + } + default: { + percentageEl.classList.add('d-none'); + fixedEl.classList.add('d-none'); + break; + } + } + }); + }); + } + + // Shipping option handler + const handleShipping = () => { + const shippingOption = document.getElementById('kt_ecommerce_add_product_shipping_checkbox'); + const shippingForm = document.getElementById('kt_ecommerce_add_product_shipping'); + + shippingOption.addEventListener('change', e => { + const value = e.target.checked; + + if (value) { + shippingForm.classList.remove('d-none'); + } else { + shippingForm.classList.add('d-none'); + } + }); + } + + // Category status handler + const handleStatus = () => { + const target = document.getElementById('kt_ecommerce_add_product_status'); + const select = document.getElementById('kt_ecommerce_add_product_status_select'); + const statusClasses = ['bg-success', 'bg-warning', 'bg-danger']; + + $(select).on('change', function (e) { + const value = e.target.value; + + switch (value) { + case "published": { + target.classList.remove(...statusClasses); + target.classList.add('bg-success'); + hideDatepicker(); + break; + } + case "scheduled": { + target.classList.remove(...statusClasses); + target.classList.add('bg-warning'); + showDatepicker(); + break; + } + case "inactive": { + target.classList.remove(...statusClasses); + target.classList.add('bg-danger'); + hideDatepicker(); + break; + } + case "draft": { + target.classList.remove(...statusClasses); + target.classList.add('bg-primary'); + hideDatepicker(); + break; + } + default: + break; + } + }); + + + // Handle datepicker + const datepicker = document.getElementById('kt_ecommerce_add_product_status_datepicker'); + + // Init flatpickr --- more info: https://flatpickr.js.org/ + $('#kt_ecommerce_add_product_status_datepicker').flatpickr({ + enableTime: true, + dateFormat: "Y-m-d H:i", + }); + + const showDatepicker = () => { + datepicker.parentNode.classList.remove('d-none'); + } + + const hideDatepicker = () => { + datepicker.parentNode.classList.add('d-none'); + } + } + + // Condition type handler + const handleConditions = () => { + const allConditions = document.querySelectorAll('[name="method"][type="radio"]'); + const conditionMatch = document.querySelector('[data-kt-ecommerce-catalog-add-category="auto-options"]'); + allConditions.forEach(radio => { + radio.addEventListener('change', e => { + if (e.target.value === '1') { + conditionMatch.classList.remove('d-none'); + } else { + conditionMatch.classList.add('d-none'); + } + }); + }) + } + + // Submit form handler + const handleSubmit = () => { + // Define variables + let validator; + + // Get elements + const form = document.getElementById('kt_ecommerce_add_product_form'); + const submitButton = document.getElementById('kt_ecommerce_add_product_submit'); + + // Init form validation rules. For more info check the FormValidation plugin's official documentation:https://formvalidation.io/ + validator = FormValidation.formValidation( + form, + { + fields: { + 'product_name': { + validators: { + notEmpty: { + message: 'Product name is required' + } + } + }, + 'sku': { + validators: { + notEmpty: { + message: 'SKU is required' + } + } + }, + 'sku': { + validators: { + notEmpty: { + message: 'Product barcode is required' + } + } + }, + 'shelf': { + validators: { + notEmpty: { + message: 'Shelf quantity is required' + } + } + }, + 'price': { + validators: { + notEmpty: { + message: 'Product base price is required' + } + } + }, + 'tax': { + validators: { + notEmpty: { + message: 'Product tax class is required' + } + } + } + }, + plugins: { + trigger: new FormValidation.plugins.Trigger(), + bootstrap: new FormValidation.plugins.Bootstrap5({ + rowSelector: '.fv-row', + eleInvalidClass: '', + eleValidClass: '' + }) + } + } + ); + + // Handle submit button + submitButton.addEventListener('click', e => { + e.preventDefault(); + + // Validate form before submit + if (validator) { + validator.validate().then(function (status) { + console.log('validated!'); + + if (status == 'Valid') { + submitButton.setAttribute('data-kt-indicator', 'on'); + + // Disable submit button whilst loading + submitButton.disabled = true; + + setTimeout(function () { + submitButton.removeAttribute('data-kt-indicator'); + + Swal.fire({ + text: "Form has been successfully submitted!", + icon: "success", + buttonsStyling: false, + confirmButtonText: "Ok, got it!", + customClass: { + confirmButton: "btn btn-primary" + } + }).then(function (result) { + if (result.isConfirmed) { + // Enable submit button after loading + submitButton.disabled = false; + + // Redirect to customers list page + window.location = form.getAttribute("data-kt-redirect"); + } + }); + }, 2000); + } else { + Swal.fire({ + html: "Sorry, looks like there are some errors detected, please try again.

Please note that there may be errors in the General or Advanced tabs", + icon: "error", + buttonsStyling: false, + confirmButtonText: "Ok, got it!", + customClass: { + confirmButton: "btn btn-primary" + } + }); + } + }); + } + }) + } + + // Public methods + return { + init: function () { + // Init forms + initQuill(); + initTagify(); + initSlider(); + initFormRepeater(); + initDropzone(); + initConditionsSelect2(); + + // Handle forms + handleStatus(); + handleConditions(); + handleDiscount(); + handleShipping(); + handleSubmit(); + } + }; +}(); + +// On document ready +KTUtil.onDOMContentLoaded(function () { + KTAppEcommerceSaveProduct.init(); +}); diff --git a/resources/_keenthemes/src/js/custom/apps/ecommerce/customers/details/add-address.js b/resources/_keenthemes/src/js/custom/apps/ecommerce/customers/details/add-address.js new file mode 100644 index 0000000..2bf9ffc --- /dev/null +++ b/resources/_keenthemes/src/js/custom/apps/ecommerce/customers/details/add-address.js @@ -0,0 +1,214 @@ +"use strict"; + +// Class definition +var KTModalAddAddress = function () { + var submitButton; + var cancelButton; + var closeButton; + var validator; + var form; + var modal; + + // Init form inputs + var handleForm = function () { + // Init form validation rules. For more info check the FormValidation plugin's official documentation:https://formvalidation.io/ + validator = FormValidation.formValidation( + form, + { + fields: { + 'name': { + validators: { + notEmpty: { + message: 'Address name is required' + } + } + }, + 'country': { + validators: { + notEmpty: { + message: 'Country is required' + } + } + }, + 'address1': { + validators: { + notEmpty: { + message: 'Address 1 is required' + } + } + }, + 'city': { + validators: { + notEmpty: { + message: 'City is required' + } + } + }, + 'state': { + validators: { + notEmpty: { + message: 'State is required' + } + } + }, + 'postcode': { + validators: { + notEmpty: { + message: 'Postcode is required' + } + } + } + }, + plugins: { + trigger: new FormValidation.plugins.Trigger(), + bootstrap: new FormValidation.plugins.Bootstrap5({ + rowSelector: '.fv-row', + eleInvalidClass: '', + eleValidClass: '' + }) + } + } + ); + + // Revalidate country field. For more info, plase visit the official plugin site: https://select2.org/ + $(form.querySelector('[name="country"]')).on('change', function() { + // Revalidate the field when an option is chosen + validator.revalidateField('country'); + }); + + // Action buttons + submitButton.addEventListener('click', function (e) { + e.preventDefault(); + + // Validate form before submit + if (validator) { + validator.validate().then(function (status) { + console.log('validated!'); + + if (status == 'Valid') { + submitButton.setAttribute('data-kt-indicator', 'on'); + + // Disable submit button whilst loading + submitButton.disabled = true; + + setTimeout(function() { + submitButton.removeAttribute('data-kt-indicator'); + + Swal.fire({ + text: "Form has been successfully submitted!", + icon: "success", + buttonsStyling: false, + confirmButtonText: "Ok, got it!", + customClass: { + confirmButton: "btn btn-primary" + } + }).then(function (result) { + if (result.isConfirmed) { + // Hide modal + modal.hide(); + + // Enable submit button after loading + submitButton.disabled = false; + } + }); + }, 2000); + } else { + Swal.fire({ + text: "Sorry, looks like there are some errors detected, please try again.", + icon: "error", + buttonsStyling: false, + confirmButtonText: "Ok, got it!", + customClass: { + confirmButton: "btn btn-primary" + } + }); + } + }); + } + }); + + cancelButton.addEventListener('click', function (e) { + e.preventDefault(); + + Swal.fire({ + text: "Are you sure you would like to cancel?", + icon: "warning", + showCancelButton: true, + buttonsStyling: false, + confirmButtonText: "Yes, cancel it!", + cancelButtonText: "No, return", + customClass: { + confirmButton: "btn btn-primary", + cancelButton: "btn btn-active-light" + } + }).then(function (result) { + if (result.value) { + form.reset(); // Reset form + modal.hide(); // Hide modal + } else if (result.dismiss === 'cancel') { + Swal.fire({ + text: "Your form has not been cancelled!.", + icon: "error", + buttonsStyling: false, + confirmButtonText: "Ok, got it!", + customClass: { + confirmButton: "btn btn-primary", + } + }); + } + }); + }); + + closeButton.addEventListener('click', function(e){ + e.preventDefault(); + + Swal.fire({ + text: "Are you sure you would like to cancel?", + icon: "warning", + showCancelButton: true, + buttonsStyling: false, + confirmButtonText: "Yes, cancel it!", + cancelButtonText: "No, return", + customClass: { + confirmButton: "btn btn-primary", + cancelButton: "btn btn-active-light" + } + }).then(function (result) { + if (result.value) { + form.reset(); // Reset form + modal.hide(); // Hide modal + } else if (result.dismiss === 'cancel') { + Swal.fire({ + text: "Your form has not been cancelled!.", + icon: "error", + buttonsStyling: false, + confirmButtonText: "Ok, got it!", + customClass: { + confirmButton: "btn btn-primary", + } + }); + } + }); + }) + } + + return { + // Public functions + init: function () { + // Elements + modal = new bootstrap.Modal(document.querySelector('#kt_modal_add_address')); + + form = document.querySelector('#kt_modal_add_address_form'); + submitButton = form.querySelector('#kt_modal_add_address_submit'); + cancelButton = form.querySelector('#kt_modal_add_address_cancel'); + closeButton = form.querySelector('#kt_modal_add_address_close'); + + handleForm(); + } + }; +}(); + +// On document ready +KTUtil.onDOMContentLoaded(function () { + KTModalAddAddress.init(); +}); \ No newline at end of file diff --git a/resources/_keenthemes/src/js/custom/apps/ecommerce/customers/details/add-auth-app.js b/resources/_keenthemes/src/js/custom/apps/ecommerce/customers/details/add-auth-app.js new file mode 100644 index 0000000..ca71185 --- /dev/null +++ b/resources/_keenthemes/src/js/custom/apps/ecommerce/customers/details/add-auth-app.js @@ -0,0 +1,81 @@ +"use strict"; + +// Class definition +var KTUsersAddAuthApp = function () { + // Shared variables + const element = document.getElementById('kt_modal_add_auth_app'); + const modal = new bootstrap.Modal(element); + + // Init add schedule modal + var initAddAuthApp = () => { + + // Close button handler + const closeButton = element.querySelector('[data-kt-users-modal-action="close"]'); + closeButton.addEventListener('click', e => { + e.preventDefault(); + + Swal.fire({ + text: "Are you sure you would like to close?", + icon: "warning", + showCancelButton: true, + buttonsStyling: false, + confirmButtonText: "Yes, close it!", + cancelButtonText: "No, return", + customClass: { + confirmButton: "btn btn-primary", + cancelButton: "btn btn-active-light" + } + }).then(function (result) { + if (result.value) { + modal.hide(); // Hide modal + } + }); + }); + + } + + // QR code to text code swapper + var initCodeSwap = () => { + const qrCode = element.querySelector('[ data-kt-add-auth-action="qr-code"]'); + const textCode = element.querySelector('[ data-kt-add-auth-action="text-code"]'); + const qrCodeButton = element.querySelector('[ data-kt-add-auth-action="qr-code-button"]'); + const textCodeButton = element.querySelector('[ data-kt-add-auth-action="text-code-button"]'); + const qrCodeLabel = element.querySelector('[ data-kt-add-auth-action="qr-code-label"]'); + const textCodeLabel = element.querySelector('[ data-kt-add-auth-action="text-code-label"]'); + + const toggleClass = () =>{ + qrCode.classList.toggle('d-none'); + qrCodeButton.classList.toggle('d-none'); + qrCodeLabel.classList.toggle('d-none'); + textCode.classList.toggle('d-none'); + textCodeButton.classList.toggle('d-none'); + textCodeLabel.classList.toggle('d-none'); + } + + // Swap to text code handler + textCodeButton.addEventListener('click', e =>{ + e.preventDefault(); + + toggleClass(); + }); + + qrCodeButton.addEventListener('click', e =>{ + e.preventDefault(); + + toggleClass(); + }); + } + + return { + // Public functions + init: function () { + initAddAuthApp(); + initCodeSwap(); + } + }; +}(); + +// On document ready +KTUtil.onDOMContentLoaded(function () { + KTUsersAddAuthApp.init(); +}); \ No newline at end of file diff --git a/resources/_keenthemes/src/js/custom/apps/ecommerce/customers/details/add-one-time-password.js b/resources/_keenthemes/src/js/custom/apps/ecommerce/customers/details/add-one-time-password.js new file mode 100644 index 0000000..af78deb --- /dev/null +++ b/resources/_keenthemes/src/js/custom/apps/ecommerce/customers/details/add-one-time-password.js @@ -0,0 +1,173 @@ +"use strict"; + +// Class definition +var KTUsersAddOneTimePassword = function () { + // Shared variables + const element = document.getElementById('kt_modal_add_one_time_password'); + const form = element.querySelector('#kt_modal_add_one_time_password_form'); + const modal = new bootstrap.Modal(element); + + // Init one time password modal + var initAddOneTimePassword = () => { + + // Init form validation rules. For more info check the FormValidation plugin's official documentation:https://formvalidation.io/ + var validator = FormValidation.formValidation( + form, + { + fields: { + 'otp_mobile_number': { + validators: { + notEmpty: { + message: 'Valid mobile number is required' + } + } + }, + 'otp_confirm_password': { + validators: { + notEmpty: { + message: 'Password confirmation is required' + } + } + }, + }, + + plugins: { + trigger: new FormValidation.plugins.Trigger(), + bootstrap: new FormValidation.plugins.Bootstrap5({ + rowSelector: '.fv-row', + eleInvalidClass: '', + eleValidClass: '' + }) + } + } + ); + + // Close button handler + const closeButton = element.querySelector('[data-kt-users-modal-action="close"]'); + closeButton.addEventListener('click', e => { + e.preventDefault(); + + Swal.fire({ + text: "Are you sure you would like to close?", + icon: "warning", + showCancelButton: true, + buttonsStyling: false, + confirmButtonText: "Yes, close it!", + cancelButtonText: "No, return", + customClass: { + confirmButton: "btn btn-primary", + cancelButton: "btn btn-active-light" + } + }).then(function (result) { + if (result.value) { + modal.hide(); // Hide modal + } + }); + }); + + // Cancel button handler + const cancelButton = element.querySelector('[data-kt-users-modal-action="cancel"]'); + cancelButton.addEventListener('click', e => { + e.preventDefault(); + + Swal.fire({ + text: "Are you sure you would like to cancel?", + icon: "warning", + showCancelButton: true, + buttonsStyling: false, + confirmButtonText: "Yes, cancel it!", + cancelButtonText: "No, return", + customClass: { + confirmButton: "btn btn-primary", + cancelButton: "btn btn-active-light" + } + }).then(function (result) { + if (result.value) { + form.reset(); // Reset form + modal.hide(); // Hide modal + } else if (result.dismiss === 'cancel') { + Swal.fire({ + text: "Your form has not been cancelled!.", + icon: "error", + buttonsStyling: false, + confirmButtonText: "Ok, got it!", + customClass: { + confirmButton: "btn btn-primary", + } + }); + } + }); + }); + + // Submit button handler + const submitButton = element.querySelector('[data-kt-users-modal-action="submit"]'); + submitButton.addEventListener('click', function (e) { + // Prevent default button action + e.preventDefault(); + + // Validate form before submit + if (validator) { + validator.validate().then(function (status) { + console.log('validated!'); + + if (status == 'Valid') { + // Show loading indication + submitButton.setAttribute('data-kt-indicator', 'on'); + + // Disable button to avoid multiple click + submitButton.disabled = true; + + // Simulate form submission. For more info check the plugin's official documentation: https://sweetalert2.github.io/ + setTimeout(function () { + // Remove loading indication + submitButton.removeAttribute('data-kt-indicator'); + + // Enable button + submitButton.disabled = false; + + // Show popup confirmation + Swal.fire({ + text: "Form has been successfully submitted!", + icon: "success", + buttonsStyling: false, + confirmButtonText: "Ok, got it!", + customClass: { + confirmButton: "btn btn-primary" + } + }).then(function (result) { + if (result.isConfirmed) { + modal.hide(); + } + }); + + //form.submit(); // Submit form + }, 2000); + } else { + // Show popup warning. For more info check the plugin's official documentation: https://sweetalert2.github.io/ + Swal.fire({ + text: "Sorry, looks like there are some errors detected, please try again.", + icon: "error", + buttonsStyling: false, + confirmButtonText: "Ok, got it!", + customClass: { + confirmButton: "btn btn-primary" + } + }); + } + }); + } + }); + } + + return { + // Public functions + init: function () { + initAddOneTimePassword(); + } + }; +}(); + +// On document ready +KTUtil.onDOMContentLoaded(function () { + KTUsersAddOneTimePassword.init(); +}); \ No newline at end of file diff --git a/resources/_keenthemes/src/js/custom/apps/ecommerce/customers/details/payment-method.js b/resources/_keenthemes/src/js/custom/apps/ecommerce/customers/details/payment-method.js new file mode 100644 index 0000000..f63d912 --- /dev/null +++ b/resources/_keenthemes/src/js/custom/apps/ecommerce/customers/details/payment-method.js @@ -0,0 +1,110 @@ +"use strict"; + +// Class definition +var KTCustomerViewPaymentMethod = function () { + + // Private functions + var initPaymentMethod = function () { + // Define variables + const table = document.getElementById('kt_customer_view_payment_method'); + const tableRows = table.querySelectorAll('[ data-kt-customer-payment-method="row"]'); + + tableRows.forEach(row => { + // Select delete button + const deleteButton = row.querySelector('[data-kt-customer-payment-method="delete"]'); + + // Delete button action + deleteButton.addEventListener('click', e => { + e.preventDefault(); + + // Popup confirmation + Swal.fire({ + text: "Are you sure you would like to delete this card?", + icon: "warning", + showCancelButton: true, + buttonsStyling: false, + confirmButtonText: "Yes, delete it!", + cancelButtonText: "No, return", + customClass: { + confirmButton: "btn btn-primary", + cancelButton: "btn btn-active-light" + } + }).then(function (result) { + if (result.value) { + row.remove(); + modal.hide(); // Hide modal + } else if (result.dismiss === 'cancel') { + Swal.fire({ + text: "Your card was not deleted!.", + icon: "error", + buttonsStyling: false, + confirmButtonText: "Ok, got it!", + customClass: { + confirmButton: "btn btn-primary", + } + }); + } + }); + }); + }); + } + + // Handle set as primary button + const handlePrimaryButton = () => { + // Define variable + const button = document.querySelector('[data-kt-payment-mehtod-action="set_as_primary"]'); + + button.addEventListener('click', e => { + e.preventDefault(); + + // Popup confirmation + Swal.fire({ + text: "Are you sure you would like to set this card as primary?", + icon: "warning", + showCancelButton: true, + buttonsStyling: false, + confirmButtonText: "Yes, set it!", + cancelButtonText: "No, return", + customClass: { + confirmButton: "btn btn-primary", + cancelButton: "btn btn-active-light" + } + }).then(function (result) { + if (result.value) { + Swal.fire({ + text: "Your card was set to primary!.", + icon: "success", + buttonsStyling: false, + confirmButtonText: "Ok, got it!", + customClass: { + confirmButton: "btn btn-primary", + } + }); + } else if (result.dismiss === 'cancel') { + Swal.fire({ + text: "Your card was not set to primary!.", + icon: "error", + buttonsStyling: false, + confirmButtonText: "Ok, got it!", + customClass: { + confirmButton: "btn btn-primary", + } + }); + } + }); + }); + }; + + // Public methods + return { + init: function () { + initPaymentMethod(); + handlePrimaryButton(); + } + } +}(); + +// On document ready +KTUtil.onDOMContentLoaded(function () { + KTCustomerViewPaymentMethod.init(); +}); \ No newline at end of file diff --git a/resources/_keenthemes/src/js/custom/apps/ecommerce/customers/details/transaction-history.js b/resources/_keenthemes/src/js/custom/apps/ecommerce/customers/details/transaction-history.js new file mode 100644 index 0000000..30fba5d --- /dev/null +++ b/resources/_keenthemes/src/js/custom/apps/ecommerce/customers/details/transaction-history.js @@ -0,0 +1,110 @@ +"use strict"; + +// Class definition +var KTCustomerViewPaymentTable = function () { + + // Define shared variables + var datatable; + var table = document.querySelector('#kt_table_customers_payment'); + + // Private functions + var initCustomerView = function () { + // Set date data order + const tableRows = table.querySelectorAll('tbody tr'); + + tableRows.forEach(row => { + const dateRow = row.querySelectorAll('td'); + const realDate = moment(dateRow[3].innerHTML, "DD MMM YYYY, LT").format(); // select date from 4th column in table + dateRow[3].setAttribute('data-order', realDate); + }); + + // Init datatable --- more info on datatables: https://datatables.net/manual/ + datatable = $(table).DataTable({ + "info": false, + 'order': [], + "pageLength": 5, + "lengthChange": false, + 'columnDefs': [ + { orderable: false, targets: 4 }, // Disable ordering on column 5 (actions) + ] + }); + } + + // Delete customer + var deleteRows = () => { + // Select all delete buttons + const deleteButtons = table.querySelectorAll('[data-kt-customer-table-filter="delete_row"]'); + + deleteButtons.forEach(d => { + // Delete button on click + d.addEventListener('click', function (e) { + e.preventDefault(); + + // Select parent row + const parent = e.target.closest('tr'); + + // Get customer name + const invoiceNumber = parent.querySelectorAll('td')[0].innerText; + + // SweetAlert2 pop up --- official docs reference: https://sweetalert2.github.io/ + Swal.fire({ + text: "Are you sure you want to delete " + invoiceNumber + "?", + icon: "warning", + showCancelButton: true, + buttonsStyling: false, + confirmButtonText: "Yes, delete!", + cancelButtonText: "No, cancel", + customClass: { + confirmButton: "btn fw-bold btn-danger", + cancelButton: "btn fw-bold btn-active-light-primary" + } + }).then(function (result) { + if (result.value) { + Swal.fire({ + text: "You have deleted " + invoiceNumber + "!.", + icon: "success", + buttonsStyling: false, + confirmButtonText: "Ok, got it!", + customClass: { + confirmButton: "btn fw-bold btn-primary", + } + }).then(function () { + // Remove current row + datatable.row($(parent)).remove().draw(); + }).then(function () { + // Detect checked checkboxes + toggleToolbars(); + }); + } else if (result.dismiss === 'cancel') { + Swal.fire({ + text: customerName + " was not deleted.", + icon: "error", + buttonsStyling: false, + confirmButtonText: "Ok, got it!", + customClass: { + confirmButton: "btn fw-bold btn-primary", + } + }); + } + }); + }) + }); + } + + // Public methods + return { + init: function () { + if (!table) { + return; + } + + initCustomerView(); + deleteRows(); + } + } +}(); + +// On document ready +KTUtil.onDOMContentLoaded(function () { + KTCustomerViewPaymentTable.init(); +}); \ No newline at end of file diff --git a/resources/_keenthemes/src/js/custom/apps/ecommerce/customers/details/update-address.js b/resources/_keenthemes/src/js/custom/apps/ecommerce/customers/details/update-address.js new file mode 100644 index 0000000..a667f85 --- /dev/null +++ b/resources/_keenthemes/src/js/custom/apps/ecommerce/customers/details/update-address.js @@ -0,0 +1,217 @@ +"use strict"; + +// Class definition +var KTModalUpdateAddress = function () { + var element; + var submitButton; + var cancelButton; + var closeButton; + var form; + var modal; + var validator; + + // Init form inputs + var initForm = function () { + // Init form validation rules. For more info check the FormValidation plugin's official documentation:https://formvalidation.io/ + validator = FormValidation.formValidation( + form, + { + fields: { + 'name': { + validators: { + notEmpty: { + message: 'Address name is required' + } + } + }, + 'country': { + validators: { + notEmpty: { + message: 'Country is required' + } + } + }, + 'address1': { + validators: { + notEmpty: { + message: 'Address 1 is required' + } + } + }, + 'city': { + validators: { + notEmpty: { + message: 'City is required' + } + } + }, + 'state': { + validators: { + notEmpty: { + message: 'State is required' + } + } + }, + 'postcode': { + validators: { + notEmpty: { + message: 'Postcode is required' + } + } + } + }, + plugins: { + trigger: new FormValidation.plugins.Trigger(), + bootstrap: new FormValidation.plugins.Bootstrap5({ + rowSelector: '.fv-row', + eleInvalidClass: '', + eleValidClass: '' + }) + } + } + ); + + // Revalidate country field. For more info, plase visit the official plugin site: https://select2.org/ + $(form.querySelector('[name="country"]')).on('change', function () { + // Revalidate the field when an option is chosen + validator.revalidateField('country'); + }); + + // Action buttons + submitButton.addEventListener('click', function (e) { + // Prevent default button action + e.preventDefault(); + + // Validate form before submit + if (validator) { + validator.validate().then(function (status) { + console.log('validated!'); + + if (status == 'Valid') { + submitButton.setAttribute('data-kt-indicator', 'on'); + + // Disable submit button whilst loading + submitButton.disabled = true; + + setTimeout(function() { + submitButton.removeAttribute('data-kt-indicator'); + + Swal.fire({ + text: "Form has been successfully submitted!", + icon: "success", + buttonsStyling: false, + confirmButtonText: "Ok, got it!", + customClass: { + confirmButton: "btn btn-primary" + } + }).then(function (result) { + if (result.isConfirmed) { + // Hide modal + modal.hide(); + + // Enable submit button after loading + submitButton.disabled = false; + } + }); + }, 2000); + } else { + Swal.fire({ + text: "Sorry, looks like there are some errors detected, please try again.", + icon: "error", + buttonsStyling: false, + confirmButtonText: "Ok, got it!", + customClass: { + confirmButton: "btn btn-primary" + } + }); + } + }); + } + }); + + cancelButton.addEventListener('click', function (e) { + e.preventDefault(); + + Swal.fire({ + text: "Are you sure you would like to cancel?", + icon: "warning", + showCancelButton: true, + buttonsStyling: false, + confirmButtonText: "Yes, cancel it!", + cancelButtonText: "No, return", + customClass: { + confirmButton: "btn btn-primary", + cancelButton: "btn btn-active-light" + } + }).then(function (result) { + if (result.value) { + form.reset(); // Reset form + modal.hide(); // Hide modal + } else if (result.dismiss === 'cancel') { + Swal.fire({ + text: "Your form has not been cancelled!.", + icon: "error", + buttonsStyling: false, + confirmButtonText: "Ok, got it!", + customClass: { + confirmButton: "btn btn-primary", + } + }); + } + }); + }); + + closeButton.addEventListener('click', function (e) { + e.preventDefault(); + + Swal.fire({ + text: "Are you sure you would like to cancel?", + icon: "warning", + showCancelButton: true, + buttonsStyling: false, + confirmButtonText: "Yes, cancel it!", + cancelButtonText: "No, return", + customClass: { + confirmButton: "btn btn-primary", + cancelButton: "btn btn-active-light" + } + }).then(function (result) { + if (result.value) { + form.reset(); // Reset form + modal.hide(); // Hide modal + } else if (result.dismiss === 'cancel') { + Swal.fire({ + text: "Your form has not been cancelled!.", + icon: "error", + buttonsStyling: false, + confirmButtonText: "Ok, got it!", + customClass: { + confirmButton: "btn btn-primary", + } + }); + } + }); + }); + } + + return { + // Public functions + init: function () { + // Elements + element = document.querySelector('#kt_modal_update_address'); + modal = new bootstrap.Modal(element); + + form = element.querySelector('#kt_modal_update_address_form'); + submitButton = form.querySelector('#kt_modal_update_address_submit'); + cancelButton = form.querySelector('#kt_modal_update_address_cancel'); + closeButton = element.querySelector('#kt_modal_update_address_close'); + + initForm(); + } + }; +}(); + +// On document ready +KTUtil.onDOMContentLoaded(function () { + KTModalUpdateAddress.init(); +}); \ No newline at end of file diff --git a/resources/_keenthemes/src/js/custom/apps/ecommerce/customers/details/update-password.js b/resources/_keenthemes/src/js/custom/apps/ecommerce/customers/details/update-password.js new file mode 100644 index 0000000..9110a89 --- /dev/null +++ b/resources/_keenthemes/src/js/custom/apps/ecommerce/customers/details/update-password.js @@ -0,0 +1,194 @@ +"use strict"; + +// Class definition +var KTUsersUpdatePassword = function () { + // Shared variables + const element = document.getElementById('kt_modal_update_password'); + const form = element.querySelector('#kt_modal_update_password_form'); + const modal = new bootstrap.Modal(element); + + // Init add schedule modal + var initUpdatePassword = () => { + + // Init form validation rules. For more info check the FormValidation plugin's official documentation:https://formvalidation.io/ + var validator = FormValidation.formValidation( + form, + { + fields: { + 'current_password': { + validators: { + notEmpty: { + message: 'Current password is required' + } + } + }, + 'new_password': { + validators: { + notEmpty: { + message: 'The password is required' + }, + callback: { + message: 'Please enter valid password', + callback: function (input) { + if (input.value.length > 0) { + return validatePassword(); + } + } + } + } + }, + 'confirm_password': { + validators: { + notEmpty: { + message: 'The password confirmation is required' + }, + identical: { + compare: function () { + return form.querySelector('[name="new_password"]').value; + }, + message: 'The password and its confirm are not the same' + } + } + }, + }, + + plugins: { + trigger: new FormValidation.plugins.Trigger(), + bootstrap: new FormValidation.plugins.Bootstrap5({ + rowSelector: '.fv-row', + eleInvalidClass: '', + eleValidClass: '' + }) + } + } + ); + + // Close button handler + const closeButton = element.querySelector('[data-kt-users-modal-action="close"]'); + closeButton.addEventListener('click', e => { + e.preventDefault(); + + Swal.fire({ + text: "Are you sure you would like to cancel?", + icon: "warning", + showCancelButton: true, + buttonsStyling: false, + confirmButtonText: "Yes, cancel it!", + cancelButtonText: "No, return", + customClass: { + confirmButton: "btn btn-primary", + cancelButton: "btn btn-active-light" + } + }).then(function (result) { + if (result.value) { + form.reset(); // Reset form + modal.hide(); // Hide modal + } else if (result.dismiss === 'cancel') { + Swal.fire({ + text: "Your form has not been cancelled!.", + icon: "error", + buttonsStyling: false, + confirmButtonText: "Ok, got it!", + customClass: { + confirmButton: "btn btn-primary", + } + }); + } + }); + }); + + // Cancel button handler + const cancelButton = element.querySelector('[data-kt-users-modal-action="cancel"]'); + cancelButton.addEventListener('click', e => { + e.preventDefault(); + + Swal.fire({ + text: "Are you sure you would like to cancel?", + icon: "warning", + showCancelButton: true, + buttonsStyling: false, + confirmButtonText: "Yes, cancel it!", + cancelButtonText: "No, return", + customClass: { + confirmButton: "btn btn-primary", + cancelButton: "btn btn-active-light" + } + }).then(function (result) { + if (result.value) { + form.reset(); // Reset form + modal.hide(); // Hide modal + } else if (result.dismiss === 'cancel') { + Swal.fire({ + text: "Your form has not been cancelled!.", + icon: "error", + buttonsStyling: false, + confirmButtonText: "Ok, got it!", + customClass: { + confirmButton: "btn btn-primary", + } + }); + } + }); + }); + + // Submit button handler + const submitButton = element.querySelector('[data-kt-users-modal-action="submit"]'); + submitButton.addEventListener('click', function (e) { + // Prevent default button action + e.preventDefault(); + + // Validate form before submit + if (validator) { + validator.validate().then(function (status) { + console.log('validated!'); + + if (status == 'Valid') { + // Show loading indication + submitButton.setAttribute('data-kt-indicator', 'on'); + + // Disable button to avoid multiple click + submitButton.disabled = true; + + // Simulate form submission. For more info check the plugin's official documentation: https://sweetalert2.github.io/ + setTimeout(function () { + // Remove loading indication + submitButton.removeAttribute('data-kt-indicator'); + + // Enable button + submitButton.disabled = false; + + // Show popup confirmation + Swal.fire({ + text: "Form has been successfully submitted!", + icon: "success", + buttonsStyling: false, + confirmButtonText: "Ok, got it!", + customClass: { + confirmButton: "btn btn-primary" + } + }).then(function (result) { + if (result.isConfirmed) { + modal.hide(); + } + }); + + //form.submit(); // Submit form + }, 2000); + } + }); + } + }); + } + + return { + // Public functions + init: function () { + initUpdatePassword(); + } + }; +}(); + +// On document ready +KTUtil.onDOMContentLoaded(function () { + KTUsersUpdatePassword.init(); +}); \ No newline at end of file diff --git a/resources/_keenthemes/src/js/custom/apps/ecommerce/customers/details/update-phone.js b/resources/_keenthemes/src/js/custom/apps/ecommerce/customers/details/update-phone.js new file mode 100644 index 0000000..81c437a --- /dev/null +++ b/resources/_keenthemes/src/js/custom/apps/ecommerce/customers/details/update-phone.js @@ -0,0 +1,166 @@ +"use strict"; + +// Class definition +var KTUsersUpdateEmail = function () { + // Shared variables + const element = document.getElementById('kt_modal_update_phone'); + const form = element.querySelector('#kt_modal_update_phone_form'); + const modal = new bootstrap.Modal(element); + + // Init add schedule modal + var initUpdateEmail = () => { + + // Init form validation rules. For more info check the FormValidation plugin's official documentation:https://formvalidation.io/ + var validator = FormValidation.formValidation( + form, + { + fields: { + 'profile_phone': { + validators: { + notEmpty: { + message: 'Phone number is required' + } + } + }, + }, + + plugins: { + trigger: new FormValidation.plugins.Trigger(), + bootstrap: new FormValidation.plugins.Bootstrap5({ + rowSelector: '.fv-row', + eleInvalidClass: '', + eleValidClass: '' + }) + } + } + ); + + // Close button handler + const closeButton = element.querySelector('[data-kt-users-modal-action="close"]'); + closeButton.addEventListener('click', e => { + e.preventDefault(); + + Swal.fire({ + text: "Are you sure you would like to cancel?", + icon: "warning", + showCancelButton: true, + buttonsStyling: false, + confirmButtonText: "Yes, cancel it!", + cancelButtonText: "No, return", + customClass: { + confirmButton: "btn btn-primary", + cancelButton: "btn btn-active-light" + } + }).then(function (result) { + if (result.value) { + form.reset(); // Reset form + modal.hide(); // Hide modal + } else if (result.dismiss === 'cancel') { + Swal.fire({ + text: "Your form has not been cancelled!.", + icon: "error", + buttonsStyling: false, + confirmButtonText: "Ok, got it!", + customClass: { + confirmButton: "btn btn-primary", + } + }); + } + }); + }); + + // Cancel button handler + const cancelButton = element.querySelector('[data-kt-users-modal-action="cancel"]'); + cancelButton.addEventListener('click', e => { + e.preventDefault(); + + Swal.fire({ + text: "Are you sure you would like to cancel?", + icon: "warning", + showCancelButton: true, + buttonsStyling: false, + confirmButtonText: "Yes, cancel it!", + cancelButtonText: "No, return", + customClass: { + confirmButton: "btn btn-primary", + cancelButton: "btn btn-active-light" + } + }).then(function (result) { + if (result.value) { + form.reset(); // Reset form + modal.hide(); // Hide modal + } else if (result.dismiss === 'cancel') { + Swal.fire({ + text: "Your form has not been cancelled!.", + icon: "error", + buttonsStyling: false, + confirmButtonText: "Ok, got it!", + customClass: { + confirmButton: "btn btn-primary", + } + }); + } + }); + }); + + // Submit button handler + const submitButton = element.querySelector('[data-kt-users-modal-action="submit"]'); + submitButton.addEventListener('click', function (e) { + // Prevent default button action + e.preventDefault(); + + // Validate form before submit + if (validator) { + validator.validate().then(function (status) { + console.log('validated!'); + + if (status == 'Valid') { + // Show loading indication + submitButton.setAttribute('data-kt-indicator', 'on'); + + // Disable button to avoid multiple click + submitButton.disabled = true; + + // Simulate form submission. For more info check the plugin's official documentation: https://sweetalert2.github.io/ + setTimeout(function () { + // Remove loading indication + submitButton.removeAttribute('data-kt-indicator'); + + // Enable button + submitButton.disabled = false; + + // Show popup confirmation + Swal.fire({ + text: "Form has been successfully submitted!", + icon: "success", + buttonsStyling: false, + confirmButtonText: "Ok, got it!", + customClass: { + confirmButton: "btn btn-primary" + } + }).then(function (result) { + if (result.isConfirmed) { + modal.hide(); + } + }); + + //form.submit(); // Submit form + }, 2000); + } + }); + } + }); + } + + return { + // Public functions + init: function () { + initUpdateEmail(); + } + }; +}(); + +// On document ready +KTUtil.onDOMContentLoaded(function () { + KTUsersUpdateEmail.init(); +}); \ No newline at end of file diff --git a/resources/_keenthemes/src/js/custom/apps/ecommerce/customers/details/update-profile.js b/resources/_keenthemes/src/js/custom/apps/ecommerce/customers/details/update-profile.js new file mode 100644 index 0000000..6060181 --- /dev/null +++ b/resources/_keenthemes/src/js/custom/apps/ecommerce/customers/details/update-profile.js @@ -0,0 +1,106 @@ +"use strict"; + +// Class definition +var KTEcommerceUpdateProfile = function () { + var submitButton; + var validator; + var form; + + // Init form inputs + var handleForm = function () { + // Init form validation rules. For more info check the FormValidation plugin's official documentation:https://formvalidation.io/ + validator = FormValidation.formValidation( + form, + { + fields: { + 'name': { + validators: { + notEmpty: { + message: 'Name is required' + } + } + }, + 'gen_email': { + validators: { + notEmpty: { + message: 'General Email is required' + } + } + } + }, + plugins: { + trigger: new FormValidation.plugins.Trigger(), + bootstrap: new FormValidation.plugins.Bootstrap5({ + rowSelector: '.fv-row', + eleInvalidClass: '', + eleValidClass: '' + }) + } + } + ); + + // Action buttons + submitButton.addEventListener('click', function (e) { + e.preventDefault(); + + // Validate form before submit + if (validator) { + validator.validate().then(function (status) { + console.log('validated!'); + + if (status == 'Valid') { + submitButton.setAttribute('data-kt-indicator', 'on'); + + // Disable submit button whilst loading + submitButton.disabled = true; + + setTimeout(function() { + submitButton.removeAttribute('data-kt-indicator'); + + Swal.fire({ + text: "Your profile has been saved!", + icon: "success", + buttonsStyling: false, + confirmButtonText: "Ok, got it!", + customClass: { + confirmButton: "btn btn-primary" + } + }).then(function (result) { + if (result.isConfirmed) { + // Enable submit button after loading + submitButton.disabled = false; + } + }); + }, 2000); + } else { + Swal.fire({ + text: "Sorry, looks like there are some errors detected, please try again.", + icon: "error", + buttonsStyling: false, + confirmButtonText: "Ok, got it!", + customClass: { + confirmButton: "btn btn-primary" + } + }); + } + }); + } + }); + } + + return { + // Public functions + init: function () { + // Elements + form = document.querySelector('#kt_ecommerce_customer_profile'); + submitButton = form.querySelector('#kt_ecommerce_customer_profile_submit'); + + handleForm(); + } + }; +}(); + +// On document ready +KTUtil.onDOMContentLoaded(function () { + KTEcommerceUpdateProfile.init(); +}); \ No newline at end of file diff --git a/resources/_keenthemes/src/js/custom/apps/ecommerce/customers/listing/add.js b/resources/_keenthemes/src/js/custom/apps/ecommerce/customers/listing/add.js new file mode 100644 index 0000000..df35986 --- /dev/null +++ b/resources/_keenthemes/src/js/custom/apps/ecommerce/customers/listing/add.js @@ -0,0 +1,238 @@ +"use strict"; + +// Class definition +var KTModalCustomersAdd = function () { + var submitButton; + var cancelButton; + var closeButton; + var validator; + var form; + var modal; + + // Init form inputs + var handleForm = function () { + // Init form validation rules. For more info check the FormValidation plugin's official documentation:https://formvalidation.io/ + validator = FormValidation.formValidation( + form, + { + fields: { + 'name': { + validators: { + notEmpty: { + message: 'Customer name is required' + } + } + }, + 'email': { + validators: { + notEmpty: { + message: 'Customer email is required' + } + } + }, + 'first-name': { + validators: { + notEmpty: { + message: 'First name is required' + } + } + }, + 'last-name': { + validators: { + notEmpty: { + message: 'Last name is required' + } + } + }, + 'country': { + validators: { + notEmpty: { + message: 'Country is required' + } + } + }, + 'address1': { + validators: { + notEmpty: { + message: 'Address 1 is required' + } + } + }, + 'city': { + validators: { + notEmpty: { + message: 'City is required' + } + } + }, + 'state': { + validators: { + notEmpty: { + message: 'State is required' + } + } + }, + 'postcode': { + validators: { + notEmpty: { + message: 'Postcode is required' + } + } + } + }, + plugins: { + trigger: new FormValidation.plugins.Trigger(), + bootstrap: new FormValidation.plugins.Bootstrap5({ + rowSelector: '.fv-row', + eleInvalidClass: '', + eleValidClass: '' + }) + } + } + ); + + // Revalidate country field. For more info, plase visit the official plugin site: https://select2.org/ + $(form.querySelector('[name="country"]')).on('change', function() { + // Revalidate the field when an option is chosen + validator.revalidateField('country'); + }); + + // Action buttons + submitButton.addEventListener('click', function (e) { + e.preventDefault(); + + // Validate form before submit + if (validator) { + validator.validate().then(function (status) { + console.log('validated!'); + + if (status == 'Valid') { + submitButton.setAttribute('data-kt-indicator', 'on'); + + // Disable submit button whilst loading + submitButton.disabled = true; + + setTimeout(function() { + submitButton.removeAttribute('data-kt-indicator'); + + Swal.fire({ + text: "Form has been successfully submitted!", + icon: "success", + buttonsStyling: false, + confirmButtonText: "Ok, got it!", + customClass: { + confirmButton: "btn btn-primary" + } + }).then(function (result) { + if (result.isConfirmed) { + // Hide modal + modal.hide(); + + // Enable submit button after loading + submitButton.disabled = false; + + // Redirect to customers list page + window.location = form.getAttribute("data-kt-redirect"); + } + }); + }, 2000); + } else { + Swal.fire({ + text: "Sorry, looks like there are some errors detected, please try again.", + icon: "error", + buttonsStyling: false, + confirmButtonText: "Ok, got it!", + customClass: { + confirmButton: "btn btn-primary" + } + }); + } + }); + } + }); + + cancelButton.addEventListener('click', function (e) { + e.preventDefault(); + + Swal.fire({ + text: "Are you sure you would like to cancel?", + icon: "warning", + showCancelButton: true, + buttonsStyling: false, + confirmButtonText: "Yes, cancel it!", + cancelButtonText: "No, return", + customClass: { + confirmButton: "btn btn-primary", + cancelButton: "btn btn-active-light" + } + }).then(function (result) { + if (result.value) { + form.reset(); // Reset form + modal.hide(); // Hide modal + } else if (result.dismiss === 'cancel') { + Swal.fire({ + text: "Your form has not been cancelled!.", + icon: "error", + buttonsStyling: false, + confirmButtonText: "Ok, got it!", + customClass: { + confirmButton: "btn btn-primary", + } + }); + } + }); + }); + + closeButton.addEventListener('click', function(e){ + e.preventDefault(); + + Swal.fire({ + text: "Are you sure you would like to cancel?", + icon: "warning", + showCancelButton: true, + buttonsStyling: false, + confirmButtonText: "Yes, cancel it!", + cancelButtonText: "No, return", + customClass: { + confirmButton: "btn btn-primary", + cancelButton: "btn btn-active-light" + } + }).then(function (result) { + if (result.value) { + form.reset(); // Reset form + modal.hide(); // Hide modal + } else if (result.dismiss === 'cancel') { + Swal.fire({ + text: "Your form has not been cancelled!.", + icon: "error", + buttonsStyling: false, + confirmButtonText: "Ok, got it!", + customClass: { + confirmButton: "btn btn-primary", + } + }); + } + }); + }) + } + + return { + // Public functions + init: function () { + // Elements + modal = new bootstrap.Modal(document.querySelector('#kt_modal_add_customer')); + + form = document.querySelector('#kt_modal_add_customer_form'); + submitButton = form.querySelector('#kt_modal_add_customer_submit'); + cancelButton = form.querySelector('#kt_modal_add_customer_cancel'); + closeButton = form.querySelector('#kt_modal_add_customer_close'); + + handleForm(); + } + }; +}(); + +// On document ready +KTUtil.onDOMContentLoaded(function () { + KTModalCustomersAdd.init(); +}); \ No newline at end of file diff --git a/resources/_keenthemes/src/js/custom/apps/ecommerce/customers/listing/export.js b/resources/_keenthemes/src/js/custom/apps/ecommerce/customers/listing/export.js new file mode 100644 index 0000000..257159e --- /dev/null +++ b/resources/_keenthemes/src/js/custom/apps/ecommerce/customers/listing/export.js @@ -0,0 +1,189 @@ +"use strict"; + +// Class definition +var KTCustomersExport = function () { + var element; + var submitButton; + var cancelButton; + var closeButton; + var validator; + var form; + var modal; + + // Init form inputs + var handleForm = function () { + // Init form validation rules. For more info check the FormValidation plugin's official documentation:https://formvalidation.io/ + validator = FormValidation.formValidation( + form, + { + fields: { + 'date': { + validators: { + notEmpty: { + message: 'Date range is required' + } + } + }, + }, + plugins: { + trigger: new FormValidation.plugins.Trigger(), + bootstrap: new FormValidation.plugins.Bootstrap5({ + rowSelector: '.fv-row', + eleInvalidClass: '', + eleValidClass: '' + }) + } + } + ); + + // Action buttons + submitButton.addEventListener('click', function (e) { + e.preventDefault(); + + // Validate form before submit + if (validator) { + validator.validate().then(function (status) { + console.log('validated!'); + + if (status == 'Valid') { + submitButton.setAttribute('data-kt-indicator', 'on'); + + // Disable submit button whilst loading + submitButton.disabled = true; + + setTimeout(function() { + submitButton.removeAttribute('data-kt-indicator'); + + Swal.fire({ + text: "Customer list has been successfully exported!", + icon: "success", + buttonsStyling: false, + confirmButtonText: "Ok, got it!", + customClass: { + confirmButton: "btn btn-primary" + } + }).then(function (result) { + if (result.isConfirmed) { + modal.hide(); + + // Enable submit button after loading + submitButton.disabled = false; + } + }); + + //form.submit(); // Submit form + }, 2000); + } else { + Swal.fire({ + text: "Sorry, looks like there are some errors detected, please try again.", + icon: "error", + buttonsStyling: false, + confirmButtonText: "Ok, got it!", + customClass: { + confirmButton: "btn btn-primary" + } + }); + } + }); + } + }); + + cancelButton.addEventListener('click', function (e) { + e.preventDefault(); + + Swal.fire({ + text: "Are you sure you would like to cancel?", + icon: "warning", + showCancelButton: true, + buttonsStyling: false, + confirmButtonText: "Yes, cancel it!", + cancelButtonText: "No, return", + customClass: { + confirmButton: "btn btn-primary", + cancelButton: "btn btn-active-light" + } + }).then(function (result) { + if (result.value) { + form.reset(); // Reset form + modal.hide(); // Hide modal + } else if (result.dismiss === 'cancel') { + Swal.fire({ + text: "Your form has not been cancelled!.", + icon: "error", + buttonsStyling: false, + confirmButtonText: "Ok, got it!", + customClass: { + confirmButton: "btn btn-primary", + } + }); + } + }); + }); + + closeButton.addEventListener('click', function(e){ + e.preventDefault(); + + Swal.fire({ + text: "Are you sure you would like to cancel?", + icon: "warning", + showCancelButton: true, + buttonsStyling: false, + confirmButtonText: "Yes, cancel it!", + cancelButtonText: "No, return", + customClass: { + confirmButton: "btn btn-primary", + cancelButton: "btn btn-active-light" + } + }).then(function (result) { + if (result.value) { + form.reset(); // Reset form + modal.hide(); // Hide modal + } else if (result.dismiss === 'cancel') { + Swal.fire({ + text: "Your form has not been cancelled!.", + icon: "error", + buttonsStyling: false, + confirmButtonText: "Ok, got it!", + customClass: { + confirmButton: "btn btn-primary", + } + }); + } + }); + }); + } + + var initForm = function () { + const datepicker = form.querySelector("[name=date]"); + + // Handle datepicker range -- For more info on flatpickr plugin, please visit: https://flatpickr.js.org/ + $(datepicker).flatpickr({ + altInput: true, + altFormat: "F j, Y", + dateFormat: "Y-m-d", + mode: "range" + }); + } + + return { + // Public functions + init: function () { + // Elements + element = document.querySelector('#kt_customers_export_modal'); + modal = new bootstrap.Modal(element); + + form = document.querySelector('#kt_customers_export_form'); + submitButton = form.querySelector('#kt_customers_export_submit'); + cancelButton = form.querySelector('#kt_customers_export_cancel'); + closeButton = element.querySelector('#kt_customers_export_close'); + + handleForm(); + initForm(); + } + }; +}(); + +// On document ready +KTUtil.onDOMContentLoaded(function () { + KTCustomersExport.init(); +}); \ No newline at end of file diff --git a/resources/_keenthemes/src/js/custom/apps/ecommerce/customers/listing/listing.js b/resources/_keenthemes/src/js/custom/apps/ecommerce/customers/listing/listing.js new file mode 100644 index 0000000..f92760c --- /dev/null +++ b/resources/_keenthemes/src/js/custom/apps/ecommerce/customers/listing/listing.js @@ -0,0 +1,242 @@ +"use strict"; + +// Class definition +var KTCustomersList = function () { + // Define shared variables + var datatable; + var filterMonth; + var filterPayment; + var table + + // Private functions + var initCustomerList = function () { + // Set date data order + const tableRows = table.querySelectorAll('tbody tr'); + + tableRows.forEach(row => { + const dateRow = row.querySelectorAll('td'); + const realDate = moment(dateRow[5].innerHTML, "DD MMM YYYY, LT").format(); // select date from 5th column in table + dateRow[5].setAttribute('data-order', realDate); + }); + + // Init datatable --- more info on datatables: https://datatables.net/manual/ + datatable = $(table).DataTable({ + "info": false, + 'order': [], + 'columnDefs': [ + { orderable: false, targets: 0 }, // Disable ordering on column 0 (checkbox) + { orderable: false, targets: 6 }, // Disable ordering on column 6 (actions) + ] + }); + + // Re-init functions on every table re-draw -- more info: https://datatables.net/reference/event/draw + datatable.on('draw', function () { + initToggleToolbar(); + handleDeleteRows(); + toggleToolbars(); + }); + } + + // Search Datatable --- official docs reference: https://datatables.net/reference/api/search() + var handleSearchDatatable = () => { + const filterSearch = document.querySelector('[data-kt-customer-table-filter="search"]'); + filterSearch.addEventListener('keyup', function (e) { + datatable.search(e.target.value).draw(); + }); + } + + // Delete customer + var handleDeleteRows = () => { + // Select all delete buttons + const deleteButtons = table.querySelectorAll('[data-kt-customer-table-filter="delete_row"]'); + + deleteButtons.forEach(d => { + // Delete button on click + d.addEventListener('click', function (e) { + e.preventDefault(); + + // Select parent row + const parent = e.target.closest('tr'); + + // Get customer name + const customerName = parent.querySelectorAll('td')[1].innerText; + + // SweetAlert2 pop up --- official docs reference: https://sweetalert2.github.io/ + Swal.fire({ + text: "Are you sure you want to delete " + customerName + "?", + icon: "warning", + showCancelButton: true, + buttonsStyling: false, + confirmButtonText: "Yes, delete!", + cancelButtonText: "No, cancel", + customClass: { + confirmButton: "btn fw-bold btn-danger", + cancelButton: "btn fw-bold btn-active-light-primary" + } + }).then(function (result) { + if (result.value) { + Swal.fire({ + text: "You have deleted " + customerName + "!.", + icon: "success", + buttonsStyling: false, + confirmButtonText: "Ok, got it!", + customClass: { + confirmButton: "btn fw-bold btn-primary", + } + }).then(function () { + // Remove current row + datatable.row($(parent)).remove().draw(); + }); + } else if (result.dismiss === 'cancel') { + Swal.fire({ + text: customerName + " was not deleted.", + icon: "error", + buttonsStyling: false, + confirmButtonText: "Ok, got it!", + customClass: { + confirmButton: "btn fw-bold btn-primary", + } + }); + } + }); + }) + }); + } + + // Handle status filter dropdown + var handleStatusFilter = () => { + const filterStatus = document.querySelector('[data-kt-ecommerce-order-filter="status"]'); + $(filterStatus).on('change', e => { + let value = e.target.value; + if (value === 'all') { + value = ''; + } + datatable.column(3).search(value).draw(); + }); + } + + // Init toggle toolbar + var initToggleToolbar = () => { + // Toggle selected action toolbar + // Select all checkboxes + const checkboxes = table.querySelectorAll('[type="checkbox"]'); + + // Select elements + const deleteSelected = document.querySelector('[data-kt-customer-table-select="delete_selected"]'); + + // Toggle delete selected toolbar + checkboxes.forEach(c => { + // Checkbox on click event + c.addEventListener('click', function () { + setTimeout(function () { + toggleToolbars(); + }, 50); + }); + }); + + // Deleted selected rows + deleteSelected.addEventListener('click', function () { + // SweetAlert2 pop up --- official docs reference: https://sweetalert2.github.io/ + Swal.fire({ + text: "Are you sure you want to delete selected customers?", + icon: "warning", + showCancelButton: true, + buttonsStyling: false, + confirmButtonText: "Yes, delete!", + cancelButtonText: "No, cancel", + customClass: { + confirmButton: "btn fw-bold btn-danger", + cancelButton: "btn fw-bold btn-active-light-primary" + } + }).then(function (result) { + if (result.value) { + Swal.fire({ + text: "You have deleted all selected customers!.", + icon: "success", + buttonsStyling: false, + confirmButtonText: "Ok, got it!", + customClass: { + confirmButton: "btn fw-bold btn-primary", + } + }).then(function () { + // Remove all selected customers + checkboxes.forEach(c => { + if (c.checked) { + datatable.row($(c.closest('tbody tr'))).remove().draw(); + } + }); + + // Remove header checked box + const headerCheckbox = table.querySelectorAll('[type="checkbox"]')[0]; + headerCheckbox.checked = false; + }); + } else if (result.dismiss === 'cancel') { + Swal.fire({ + text: "Selected customers was not deleted.", + icon: "error", + buttonsStyling: false, + confirmButtonText: "Ok, got it!", + customClass: { + confirmButton: "btn fw-bold btn-primary", + } + }); + } + }); + }); + } + + // Toggle toolbars + const toggleToolbars = () => { + // Define variables + const toolbarBase = document.querySelector('[data-kt-customer-table-toolbar="base"]'); + const toolbarSelected = document.querySelector('[data-kt-customer-table-toolbar="selected"]'); + const selectedCount = document.querySelector('[data-kt-customer-table-select="selected_count"]'); + + // Select refreshed checkbox DOM elements + const allCheckboxes = table.querySelectorAll('tbody [type="checkbox"]'); + + // Detect checkboxes state & count + let checkedState = false; + let count = 0; + + // Count checked boxes + allCheckboxes.forEach(c => { + if (c.checked) { + checkedState = true; + count++; + } + }); + + // Toggle toolbars + if (checkedState) { + selectedCount.innerHTML = count; + toolbarBase.classList.add('d-none'); + toolbarSelected.classList.remove('d-none'); + } else { + toolbarBase.classList.remove('d-none'); + toolbarSelected.classList.add('d-none'); + } + } + + // Public methods + return { + init: function () { + table = document.querySelector('#kt_customers_table'); + + if (!table) { + return; + } + + initCustomerList(); + initToggleToolbar(); + handleSearchDatatable(); + handleDeleteRows(); + handleStatusFilter(); + } + } +}(); + +// On document ready +KTUtil.onDOMContentLoaded(function () { + KTCustomersList.init(); +}); \ No newline at end of file diff --git a/resources/_keenthemes/src/js/custom/apps/ecommerce/reports/customer-orders/customer-orders.js b/resources/_keenthemes/src/js/custom/apps/ecommerce/reports/customer-orders/customer-orders.js new file mode 100644 index 0000000..1a7f75f --- /dev/null +++ b/resources/_keenthemes/src/js/custom/apps/ecommerce/reports/customer-orders/customer-orders.js @@ -0,0 +1,136 @@ +"use strict"; + +// Class definition +var KTAppEcommerceReportCustomerOrders = function () { + // Shared variables + var table; + var datatable; + + // Private functions + var initDatatable = function () { + // Set date data order + const tableRows = table.querySelectorAll('tbody tr'); + + tableRows.forEach(row => { + const dateRow = row.querySelectorAll('td'); + const realDate = moment(dateRow[3].innerHTML, "DD MMM YYYY, LT").format(); // select date from 4th column in table + dateRow[3].setAttribute('data-order', realDate); + }); + + // Init datatable --- more info on datatables: https://datatables.net/manual/ + datatable = $(table).DataTable({ + "info": false, + 'order': [], + 'pageLength': 10, + }); + } + + // Init daterangepicker + var initDaterangepicker = () => { + var start = moment().subtract(29, "days"); + var end = moment(); + var input = $("#kt_ecommerce_report_customer_orders_daterangepicker"); + + function cb(start, end) { + input.html(start.format("MMMM D, YYYY") + " - " + end.format("MMMM D, YYYY")); + } + + input.daterangepicker({ + startDate: start, + endDate: end, + ranges: { + "Today": [moment(), moment()], + "Yesterday": [moment().subtract(1, "days"), moment().subtract(1, "days")], + "Last 7 Days": [moment().subtract(6, "days"), moment()], + "Last 30 Days": [moment().subtract(29, "days"), moment()], + "This Month": [moment().startOf("month"), moment().endOf("month")], + "Last Month": [moment().subtract(1, "month").startOf("month"), moment().subtract(1, "month").endOf("month")] + } + }, cb); + + cb(start, end); + } + + // Handle status filter dropdown + var handleStatusFilter = () => { + const filterStatus = document.querySelector('[data-kt-ecommerce-order-filter="status"]'); + $(filterStatus).on('change', e => { + let value = e.target.value; + if (value === 'all') { + value = ''; + } + datatable.column(2).search(value).draw(); + }); + } + + // Hook export buttons + var exportButtons = () => { + const documentTitle = 'Customer Orders Report'; + var buttons = new $.fn.dataTable.Buttons(table, { + buttons: [ + { + extend: 'copyHtml5', + title: documentTitle + }, + { + extend: 'excelHtml5', + title: documentTitle + }, + { + extend: 'csvHtml5', + title: documentTitle + }, + { + extend: 'pdfHtml5', + title: documentTitle + } + ] + }).container().appendTo($('#kt_ecommerce_report_customer_orders_export')); + + // Hook dropdown menu click event to datatable export buttons + const exportButtons = document.querySelectorAll('#kt_ecommerce_report_customer_orders_export_menu [data-kt-ecommerce-export]'); + exportButtons.forEach(exportButton => { + exportButton.addEventListener('click', e => { + e.preventDefault(); + + // Get clicked export value + const exportValue = e.target.getAttribute('data-kt-ecommerce-export'); + const target = document.querySelector('.dt-buttons .buttons-' + exportValue); + + // Trigger click event on hidden datatable export buttons + target.click(); + }); + }); + } + + + // Search Datatable --- official docs reference: https://datatables.net/reference/api/search() + var handleSearchDatatable = () => { + const filterSearch = document.querySelector('[data-kt-ecommerce-order-filter="search"]'); + filterSearch.addEventListener('keyup', function (e) { + datatable.search(e.target.value).draw(); + }); + } + + // Public methods + return { + init: function () { + table = document.querySelector('#kt_ecommerce_report_customer_orders_table'); + + if (!table) { + return; + } + + initDatatable(); + initDaterangepicker(); + exportButtons(); + handleSearchDatatable(); + handleStatusFilter(); + } + }; +}(); + +// On document ready +KTUtil.onDOMContentLoaded(function () { + KTAppEcommerceReportCustomerOrders.init(); +}); diff --git a/resources/_keenthemes/src/js/custom/apps/ecommerce/reports/returns/returns.js b/resources/_keenthemes/src/js/custom/apps/ecommerce/reports/returns/returns.js new file mode 100644 index 0000000..0c09260 --- /dev/null +++ b/resources/_keenthemes/src/js/custom/apps/ecommerce/reports/returns/returns.js @@ -0,0 +1,123 @@ +"use strict"; + +// Class definition +var KTAppEcommerceReportReturns = function () { + // Shared variables + var table; + var datatable; + + // Private functions + var initDatatable = function () { + // Set date data order + const tableRows = table.querySelectorAll('tbody tr'); + + tableRows.forEach(row => { + const dateRow = row.querySelectorAll('td'); + const realDate = moment(dateRow[0].innerHTML, "MMM DD, YYYY").format(); // select date from 4th column in table + dateRow[0].setAttribute('data-order', realDate); + }); + + // Init datatable --- more info on datatables: https://datatables.net/manual/ + datatable = $(table).DataTable({ + "info": false, + 'order': [], + 'pageLength': 10, + }); + } + + // Init daterangepicker + var initDaterangepicker = () => { + var start = moment().subtract(29, "days"); + var end = moment(); + var input = $("#kt_ecommerce_report_returns_daterangepicker"); + + function cb(start, end) { + input.html(start.format("MMMM D, YYYY") + " - " + end.format("MMMM D, YYYY")); + } + + input.daterangepicker({ + startDate: start, + endDate: end, + ranges: { + "Today": [moment(), moment()], + "Yesterday": [moment().subtract(1, "days"), moment().subtract(1, "days")], + "Last 7 Days": [moment().subtract(6, "days"), moment()], + "Last 30 Days": [moment().subtract(29, "days"), moment()], + "This Month": [moment().startOf("month"), moment().endOf("month")], + "Last Month": [moment().subtract(1, "month").startOf("month"), moment().subtract(1, "month").endOf("month")] + } + }, cb); + + cb(start, end); + } + + // Hook export buttons + var exportButtons = () => { + const documentTitle = 'Returns Report'; + var buttons = new $.fn.dataTable.Buttons(table, { + buttons: [ + { + extend: 'copyHtml5', + title: documentTitle + }, + { + extend: 'excelHtml5', + title: documentTitle + }, + { + extend: 'csvHtml5', + title: documentTitle + }, + { + extend: 'pdfHtml5', + title: documentTitle + } + ] + }).container().appendTo($('#kt_ecommerce_report_returns_export')); + + // Hook dropdown menu click event to datatable export buttons + const exportButtons = document.querySelectorAll('#kt_ecommerce_report_returns_export_menu [data-kt-ecommerce-export]'); + exportButtons.forEach(exportButton => { + exportButton.addEventListener('click', e => { + e.preventDefault(); + + // Get clicked export value + const exportValue = e.target.getAttribute('data-kt-ecommerce-export'); + const target = document.querySelector('.dt-buttons .buttons-' + exportValue); + + // Trigger click event on hidden datatable export buttons + target.click(); + }); + }); + } + + + // Search Datatable --- official docs reference: https://datatables.net/reference/api/search() + var handleSearchDatatable = () => { + const filterSearch = document.querySelector('[data-kt-ecommerce-order-filter="search"]'); + filterSearch.addEventListener('keyup', function (e) { + datatable.search(e.target.value).draw(); + }); + } + + // Public methods + return { + init: function () { + table = document.querySelector('#kt_ecommerce_report_returns_table'); + + if (!table) { + return; + } + + initDatatable(); + initDaterangepicker(); + exportButtons(); + handleSearchDatatable(); + } + }; +}(); + +// On document ready +KTUtil.onDOMContentLoaded(function () { + KTAppEcommerceReportReturns.init(); +}); diff --git a/resources/_keenthemes/src/js/custom/apps/ecommerce/reports/sales/sales.js b/resources/_keenthemes/src/js/custom/apps/ecommerce/reports/sales/sales.js new file mode 100644 index 0000000..9978dea --- /dev/null +++ b/resources/_keenthemes/src/js/custom/apps/ecommerce/reports/sales/sales.js @@ -0,0 +1,124 @@ +"use strict"; + +// Class definition +var KTAppEcommerceReportSales = function () { + // Shared variables + var table; + var datatable; + + // Private functions + var initDatatable = function () { + // Set date data order + const tableRows = table.querySelectorAll('tbody tr'); + + tableRows.forEach(row => { + const dateRow = row.querySelectorAll('td'); + const realDate = moment(dateRow[0].innerHTML, "MMM DD, YYYY").format(); // select date from 4th column in table + dateRow[0].setAttribute('data-order', realDate); + }); + + + // Init datatable --- more info on datatables: https://datatables.net/manual/ + datatable = $(table).DataTable({ + "info": false, + 'order': [], + 'pageLength': 10, + }); + } + + // Init daterangepicker + var initDaterangepicker = () => { + var start = moment().subtract(29, "days"); + var end = moment(); + var input = $("#kt_ecommerce_report_sales_daterangepicker"); + + function cb(start, end) { + input.html(start.format("MMMM D, YYYY") + " - " + end.format("MMMM D, YYYY")); + } + + input.daterangepicker({ + startDate: start, + endDate: end, + ranges: { + "Today": [moment(), moment()], + "Yesterday": [moment().subtract(1, "days"), moment().subtract(1, "days")], + "Last 7 Days": [moment().subtract(6, "days"), moment()], + "Last 30 Days": [moment().subtract(29, "days"), moment()], + "This Month": [moment().startOf("month"), moment().endOf("month")], + "Last Month": [moment().subtract(1, "month").startOf("month"), moment().subtract(1, "month").endOf("month")] + } + }, cb); + + cb(start, end); + } + + // Hook export buttons + var exportButtons = () => { + const documentTitle = 'Sales Report'; + var buttons = new $.fn.dataTable.Buttons(table, { + buttons: [ + { + extend: 'copyHtml5', + title: documentTitle + }, + { + extend: 'excelHtml5', + title: documentTitle + }, + { + extend: 'csvHtml5', + title: documentTitle + }, + { + extend: 'pdfHtml5', + title: documentTitle + } + ] + }).container().appendTo($('#kt_ecommerce_report_sales_export')); + + // Hook dropdown menu click event to datatable export buttons + const exportButtons = document.querySelectorAll('#kt_ecommerce_report_sales_export_menu [data-kt-ecommerce-export]'); + exportButtons.forEach(exportButton => { + exportButton.addEventListener('click', e => { + e.preventDefault(); + + // Get clicked export value + const exportValue = e.target.getAttribute('data-kt-ecommerce-export'); + const target = document.querySelector('.dt-buttons .buttons-' + exportValue); + + // Trigger click event on hidden datatable export buttons + target.click(); + }); + }); + } + + + // Search Datatable --- official docs reference: https://datatables.net/reference/api/search() + var handleSearchDatatable = () => { + const filterSearch = document.querySelector('[data-kt-ecommerce-order-filter="search"]'); + filterSearch.addEventListener('keyup', function (e) { + datatable.search(e.target.value).draw(); + }); + } + + // Public methods + return { + init: function () { + table = document.querySelector('#kt_ecommerce_report_sales_table'); + + if (!table) { + return; + } + + initDatatable(); + initDaterangepicker(); + exportButtons(); + handleSearchDatatable(); + } + }; +}(); + +// On document ready +KTUtil.onDOMContentLoaded(function () { + KTAppEcommerceReportSales.init(); +}); diff --git a/resources/_keenthemes/src/js/custom/apps/ecommerce/reports/shipping/shipping.js b/resources/_keenthemes/src/js/custom/apps/ecommerce/reports/shipping/shipping.js new file mode 100644 index 0000000..75f12f9 --- /dev/null +++ b/resources/_keenthemes/src/js/custom/apps/ecommerce/reports/shipping/shipping.js @@ -0,0 +1,137 @@ +"use strict"; + +// Class definition +var KTAppEcommerceReportShipping = function () { + // Shared variables + var table; + var datatable; + + // Private functions + var initDatatable = function () { + // Set date data order + const tableRows = table.querySelectorAll('tbody tr'); + + tableRows.forEach(row => { + const dateRow = row.querySelectorAll('td'); + const realDate = moment(dateRow[0].innerHTML, "MMM DD, YYYY").format(); // select date from 4th column in table + dateRow[0].setAttribute('data-order', realDate); + }); + + + // Init datatable --- more info on datatables: https://datatables.net/manual/ + datatable = $(table).DataTable({ + "info": false, + 'order': [], + 'pageLength': 10, + }); + } + + // Init daterangepicker + var initDaterangepicker = () => { + var start = moment().subtract(29, "days"); + var end = moment(); + var input = $("#kt_ecommerce_report_shipping_daterangepicker"); + + function cb(start, end) { + input.html(start.format("MMMM D, YYYY") + " - " + end.format("MMMM D, YYYY")); + } + + input.daterangepicker({ + startDate: start, + endDate: end, + ranges: { + "Today": [moment(), moment()], + "Yesterday": [moment().subtract(1, "days"), moment().subtract(1, "days")], + "Last 7 Days": [moment().subtract(6, "days"), moment()], + "Last 30 Days": [moment().subtract(29, "days"), moment()], + "This Month": [moment().startOf("month"), moment().endOf("month")], + "Last Month": [moment().subtract(1, "month").startOf("month"), moment().subtract(1, "month").endOf("month")] + } + }, cb); + + cb(start, end); + } + + // Handle status filter dropdown + var handleStatusFilter = () => { + const filterStatus = document.querySelector('[data-kt-ecommerce-order-filter="status"]'); + $(filterStatus).on('change', e => { + let value = e.target.value; + if (value === 'all') { + value = ''; + } + datatable.column(3).search(value).draw(); + }); + } + + // Hook export buttons + var exportButtons = () => { + const documentTitle = 'Shipping Report'; + var buttons = new $.fn.dataTable.Buttons(table, { + buttons: [ + { + extend: 'copyHtml5', + title: documentTitle + }, + { + extend: 'excelHtml5', + title: documentTitle + }, + { + extend: 'csvHtml5', + title: documentTitle + }, + { + extend: 'pdfHtml5', + title: documentTitle + } + ] + }).container().appendTo($('#kt_ecommerce_report_shipping_export')); + + // Hook dropdown menu click event to datatable export buttons + const exportButtons = document.querySelectorAll('#kt_ecommerce_report_shipping_export_menu [data-kt-ecommerce-export]'); + exportButtons.forEach(exportButton => { + exportButton.addEventListener('click', e => { + e.preventDefault(); + + // Get clicked export value + const exportValue = e.target.getAttribute('data-kt-ecommerce-export'); + const target = document.querySelector('.dt-buttons .buttons-' + exportValue); + + // Trigger click event on hidden datatable export buttons + target.click(); + }); + }); + } + + + // Search Datatable --- official docs reference: https://datatables.net/reference/api/search() + var handleSearchDatatable = () => { + const filterSearch = document.querySelector('[data-kt-ecommerce-order-filter="search"]'); + filterSearch.addEventListener('keyup', function (e) { + datatable.search(e.target.value).draw(); + }); + } + + // Public methods + return { + init: function () { + table = document.querySelector('#kt_ecommerce_report_shipping_table'); + + if (!table) { + return; + } + + initDatatable(); + initDaterangepicker(); + exportButtons(); + handleSearchDatatable(); + handleStatusFilter(); + } + }; +}(); + +// On document ready +KTUtil.onDOMContentLoaded(function () { + KTAppEcommerceReportShipping.init(); +}); diff --git a/resources/_keenthemes/src/js/custom/apps/ecommerce/reports/views/views.js b/resources/_keenthemes/src/js/custom/apps/ecommerce/reports/views/views.js new file mode 100644 index 0000000..1907350 --- /dev/null +++ b/resources/_keenthemes/src/js/custom/apps/ecommerce/reports/views/views.js @@ -0,0 +1,127 @@ +"use strict"; + +// Class definition +var KTAppEcommerceReportViews = function () { + // Shared variables + var table; + var datatable; + + // Private functions + var initDatatable = function () { + // Init datatable --- more info on datatables: https://datatables.net/manual/ + datatable = $(table).DataTable({ + "info": false, + 'order': [], + 'pageLength': 10, + }); + } + + // Init daterangepicker + var initDaterangepicker = () => { + var start = moment().subtract(29, "days"); + var end = moment(); + var input = $("#kt_ecommerce_report_views_daterangepicker"); + + function cb(start, end) { + input.html(start.format("MMMM D, YYYY") + " - " + end.format("MMMM D, YYYY")); + } + + input.daterangepicker({ + startDate: start, + endDate: end, + ranges: { + "Today": [moment(), moment()], + "Yesterday": [moment().subtract(1, "days"), moment().subtract(1, "days")], + "Last 7 Days": [moment().subtract(6, "days"), moment()], + "Last 30 Days": [moment().subtract(29, "days"), moment()], + "This Month": [moment().startOf("month"), moment().endOf("month")], + "Last Month": [moment().subtract(1, "month").startOf("month"), moment().subtract(1, "month").endOf("month")] + } + }, cb); + + cb(start, end); + } + + // Handle rating filter dropdown + var handleStatusFilter = () => { + const filterStatus = document.querySelector('[data-kt-ecommerce-order-filter="rating"]'); + $(filterStatus).on('change', e => { + let value = e.target.value; + if (value === 'all') { + value = ''; + } + datatable.column(2).search(value).draw(); + }); + } + + // Hook export buttons + var exportButtons = () => { + const documentTitle = 'Product Views Report'; + var buttons = new $.fn.dataTable.Buttons(table, { + buttons: [ + { + extend: 'copyHtml5', + title: documentTitle + }, + { + extend: 'excelHtml5', + title: documentTitle + }, + { + extend: 'csvHtml5', + title: documentTitle + }, + { + extend: 'pdfHtml5', + title: documentTitle + } + ] + }).container().appendTo($('#kt_ecommerce_report_views_export')); + + // Hook dropdown menu click event to datatable export buttons + const exportButtons = document.querySelectorAll('#kt_ecommerce_report_views_export_menu [data-kt-ecommerce-export]'); + exportButtons.forEach(exportButton => { + exportButton.addEventListener('click', e => { + e.preventDefault(); + + // Get clicked export value + const exportValue = e.target.getAttribute('data-kt-ecommerce-export'); + const target = document.querySelector('.dt-buttons .buttons-' + exportValue); + + // Trigger click event on hidden datatable export buttons + target.click(); + }); + }); + } + + + // Search Datatable --- official docs reference: https://datatables.net/reference/api/search() + var handleSearchDatatable = () => { + const filterSearch = document.querySelector('[data-kt-ecommerce-order-filter="search"]'); + filterSearch.addEventListener('keyup', function (e) { + datatable.search(e.target.value).draw(); + }); + } + + // Public methods + return { + init: function () { + table = document.querySelector('#kt_ecommerce_report_views_table'); + + if (!table) { + return; + } + + initDatatable(); + initDaterangepicker(); + exportButtons(); + handleSearchDatatable(); + handleStatusFilter(); + } + }; +}(); + +// On document ready +KTUtil.onDOMContentLoaded(function () { + KTAppEcommerceReportViews.init(); +}); diff --git a/resources/_keenthemes/src/js/custom/apps/ecommerce/sales/listing.js b/resources/_keenthemes/src/js/custom/apps/ecommerce/sales/listing.js new file mode 100644 index 0000000..fa807e6 --- /dev/null +++ b/resources/_keenthemes/src/js/custom/apps/ecommerce/sales/listing.js @@ -0,0 +1,181 @@ +"use strict"; + +// Class definition +var KTAppEcommerceSalesListing = function () { + // Shared variables + var table; + var datatable; + var flatpickr; + var minDate, maxDate; + + // Private functions + var initDatatable = function () { + // Init datatable --- more info on datatables: https://datatables.net/manual/ + datatable = $(table).DataTable({ + "info": false, + 'order': [], + 'pageLength': 10, + 'columnDefs': [ + { orderable: false, targets: 0 }, // Disable ordering on column 0 (checkbox) + { orderable: false, targets: 7 }, // Disable ordering on column 7 (actions) + ] + }); + + // Re-init functions on datatable re-draws + datatable.on('draw', function () { + handleDeleteRows(); + }); + } + + // Init flatpickr --- more info :https://flatpickr.js.org/getting-started/ + var initFlatpickr = () => { + const element = document.querySelector('#kt_ecommerce_sales_flatpickr'); + flatpickr = $(element).flatpickr({ + altInput: true, + altFormat: "d/m/Y", + dateFormat: "Y-m-d", + mode: "range", + onChange: function (selectedDates, dateStr, instance) { + handleFlatpickr(selectedDates, dateStr, instance); + }, + }); + } + + // Search Datatable --- official docs reference: https://datatables.net/reference/api/search() + var handleSearchDatatable = () => { + const filterSearch = document.querySelector('[data-kt-ecommerce-order-filter="search"]'); + filterSearch.addEventListener('keyup', function (e) { + datatable.search(e.target.value).draw(); + }); + } + + // Handle status filter dropdown + var handleStatusFilter = () => { + const filterStatus = document.querySelector('[data-kt-ecommerce-order-filter="status"]'); + $(filterStatus).on('change', e => { + let value = e.target.value; + if (value === 'all') { + value = ''; + } + datatable.column(3).search(value).draw(); + }); + } + + // Handle flatpickr --- more info: https://flatpickr.js.org/events/ + var handleFlatpickr = (selectedDates, dateStr, instance) => { + minDate = selectedDates[0] ? new Date(selectedDates[0]) : null; + maxDate = selectedDates[1] ? new Date(selectedDates[1]) : null; + + // Datatable date filter --- more info: https://datatables.net/extensions/datetime/examples/integration/datatables.html + // Custom filtering function which will search data in column four between two values + $.fn.dataTable.ext.search.push( + function (settings, data, dataIndex) { + var min = minDate; + var max = maxDate; + var dateAdded = new Date(moment($(data[5]).text(), 'DD/MM/YYYY')); + var dateModified = new Date(moment($(data[6]).text(), 'DD/MM/YYYY')); + + if ( + (min === null && max === null) || + (min === null && max >= dateModified) || + (min <= dateAdded && max === null) || + (min <= dateAdded && max >= dateModified) + ) { + return true; + } + return false; + } + ); + datatable.draw(); + } + + // Handle clear flatpickr + var handleClearFlatpickr = () => { + const clearButton = document.querySelector('#kt_ecommerce_sales_flatpickr_clear'); + clearButton.addEventListener('click', e => { + flatpickr.clear(); + }); + } + + // Delete cateogry + var handleDeleteRows = () => { + // Select all delete buttons + const deleteButtons = table.querySelectorAll('[data-kt-ecommerce-order-filter="delete_row"]'); + + deleteButtons.forEach(d => { + // Delete button on click + d.addEventListener('click', function (e) { + e.preventDefault(); + + // Select parent row + const parent = e.target.closest('tr'); + + // Get category name + const orderID = parent.querySelector('[data-kt-ecommerce-order-filter="order_id"]').innerText; + + // SweetAlert2 pop up --- official docs reference: https://sweetalert2.github.io/ + Swal.fire({ + text: "Are you sure you want to delete order: " + orderID + "?", + icon: "warning", + showCancelButton: true, + buttonsStyling: false, + confirmButtonText: "Yes, delete!", + cancelButtonText: "No, cancel", + customClass: { + confirmButton: "btn fw-bold btn-danger", + cancelButton: "btn fw-bold btn-active-light-primary" + } + }).then(function (result) { + if (result.value) { + Swal.fire({ + text: "You have deleted " + orderID + "!.", + icon: "success", + buttonsStyling: false, + confirmButtonText: "Ok, got it!", + customClass: { + confirmButton: "btn fw-bold btn-primary", + } + }).then(function () { + // Remove current row + datatable.row($(parent)).remove().draw(); + }); + } else if (result.dismiss === 'cancel') { + Swal.fire({ + text: orderID + " was not deleted.", + icon: "error", + buttonsStyling: false, + confirmButtonText: "Ok, got it!", + customClass: { + confirmButton: "btn fw-bold btn-primary", + } + }); + } + }); + }) + }); + } + + + // Public methods + return { + init: function () { + table = document.querySelector('#kt_ecommerce_sales_table'); + + if (!table) { + return; + } + + initDatatable(); + initFlatpickr(); + handleSearchDatatable(); + handleStatusFilter(); + handleDeleteRows(); + handleClearFlatpickr(); + } + }; +}(); + +// On document ready +KTUtil.onDOMContentLoaded(function () { + KTAppEcommerceSalesListing.init(); +}); diff --git a/resources/_keenthemes/src/js/custom/apps/ecommerce/sales/save-order.js b/resources/_keenthemes/src/js/custom/apps/ecommerce/sales/save-order.js new file mode 100644 index 0000000..c0b94f4 --- /dev/null +++ b/resources/_keenthemes/src/js/custom/apps/ecommerce/sales/save-order.js @@ -0,0 +1,338 @@ +"use strict"; + +// Class definition +var KTAppEcommerceSalesSaveOrder = function () { + // Shared variables + var table; + var datatable; + + // Private functions + const initSaveOrder = () => { + // Init flatpickr + $('#kt_ecommerce_edit_order_date').flatpickr({ + altInput: true, + altFormat: "d F, Y", + dateFormat: "Y-m-d", + }); + + // Init select2 country options + // Format options + const optionFormat = (item) => { + if ( !item.id ) { + return item.text; + } + + var span = document.createElement('span'); + var template = ''; + + template += 'image'; + template += item.text; + + span.innerHTML = template; + + return $(span); + } + + // Init Select2 --- more info: https://select2.org/ + $('#kt_ecommerce_edit_order_billing_country').select2({ + placeholder: "Select a country", + minimumResultsForSearch: Infinity, + templateSelection: optionFormat, + templateResult: optionFormat + }); + + $('#kt_ecommerce_edit_order_shipping_country').select2({ + placeholder: "Select a country", + minimumResultsForSearch: Infinity, + templateSelection: optionFormat, + templateResult: optionFormat + }); + + // Init datatable --- more info on datatables: https://datatables.net/manual/ + table = document.querySelector('#kt_ecommerce_edit_order_product_table'); + datatable = $(table).DataTable({ + 'order': [], + "scrollY": "400px", + "scrollCollapse": true, + "paging": false, + "info": false, + 'columnDefs': [ + { orderable: false, targets: 0 }, // Disable ordering on column 0 (checkbox) + ] + }); + } + + // Search Datatable --- official docs reference: https://datatables.net/reference/api/search() + var handleSearchDatatable = () => { + const filterSearch = document.querySelector('[data-kt-ecommerce-edit-order-filter="search"]'); + filterSearch.addEventListener('keyup', function (e) { + datatable.search(e.target.value).draw(); + }); + } + + // Handle shipping form + const handleShippingForm = () => { + // Select elements + const element = document.getElementById('kt_ecommerce_edit_order_shipping_form'); + const checkbox = document.getElementById('same_as_billing'); + + // Show/hide shipping form + checkbox.addEventListener('change', e => { + if (e.target.checked) { + element.classList.add('d-none'); + } else { + element.classList.remove('d-none'); + } + }); + } + + // Handle product select + const handleProductSelect = () => { + // Define variables + const checkboxes = table.querySelectorAll('[type="checkbox"]'); + const target = document.getElementById('kt_ecommerce_edit_order_selected_products'); + const totalPrice = document.getElementById('kt_ecommerce_edit_order_total_price'); + + // Loop through all checked products + checkboxes.forEach(checkbox => { + checkbox.addEventListener('change', e => { + // Select parent row element + const parent = checkbox.closest('tr'); + + // Clone parent element as variable + const product = parent.querySelector('[data-kt-ecommerce-edit-order-filter="product"]').cloneNode(true); + + // Create inner wrapper + const innerWrapper = document.createElement('div'); + + // Store inner content + const innerContent = product.innerHTML; + + // Add & remove classes on parent wrapper + const wrapperClassesAdd = ['col', 'my-2']; + const wrapperClassesRemove = ['d-flex', 'align-items-center']; + + // Define additional classes + const additionalClasses = ['border', 'border-dashed', 'rounded', 'p-3', 'bg-body']; + + // Update parent wrapper classes + product.classList.remove(...wrapperClassesRemove); + product.classList.add(...wrapperClassesAdd); + + // Remove parent default content + product.innerHTML = ''; + + // Update inner wrapper classes + innerWrapper.classList.add(...wrapperClassesRemove); + innerWrapper.classList.add(...additionalClasses); + + // Apply stored inner content into new inner wrapper + innerWrapper.innerHTML = innerContent; + + // Append new inner wrapper to parent wrapper + product.appendChild(innerWrapper); + + // Get product id + const productId = product.getAttribute('data-kt-ecommerce-edit-order-id'); + + if (e.target.checked) { + // Add product to selected product wrapper + target.appendChild(product); + } else { + // Remove product from selected product wrapper + const selectedProduct = target.querySelector('[data-kt-ecommerce-edit-order-id="' + productId + '"]'); + if (selectedProduct) { + target.removeChild(selectedProduct); + } + } + + // Trigger empty message logic + detectEmpty(); + }); + }); + + // Handle empty list message + const detectEmpty = () => { + // Select elements + const message = target.querySelector('span'); + const products = target.querySelectorAll('[data-kt-ecommerce-edit-order-filter="product"]'); + + // Detect if element is empty + if (products.length < 1) { + // Show message + message.classList.remove('d-none'); + + // Reset price + totalPrice.innerText = '0.00'; + } else { + // Hide message + message.classList.add('d-none'); + + // Calculate price + calculateTotal(products); + } + } + + // Calculate total cost + const calculateTotal = (products) => { + let countPrice = 0; + + // Loop through all selected prodcucts + products.forEach(product => { + // Get product price + const price = parseFloat(product.querySelector('[data-kt-ecommerce-edit-order-filter="price"]').innerText); + + // Add to total + countPrice = parseFloat(countPrice + price); + }); + + // Update total price + totalPrice.innerText = countPrice.toFixed(2); + } + } + + // Submit form handler + const handleSubmit = () => { + // Define variables + let validator; + + // Get elements + const form = document.getElementById('kt_ecommerce_edit_order_form'); + const submitButton = document.getElementById('kt_ecommerce_edit_order_submit'); + + // Init form validation rules. For more info check the FormValidation plugin's official documentation:https://formvalidation.io/ + validator = FormValidation.formValidation( + form, + { + fields: { + 'payment_method': { + validators: { + notEmpty: { + message: 'Payment method is required' + } + } + }, + 'shipping_method': { + validators: { + notEmpty: { + message: 'Shipping method is required' + } + } + }, + 'order_date': { + validators: { + notEmpty: { + message: 'Order date is required' + } + } + }, + 'billing_order_address_1': { + validators: { + notEmpty: { + message: 'Address line 1 is required' + } + } + }, + 'billing_order_postcode': { + validators: { + notEmpty: { + message: 'Postcode is required' + } + } + }, + 'billing_order_state': { + validators: { + notEmpty: { + message: 'State is required' + } + } + }, + 'billing_order_country': { + validators: { + notEmpty: { + message: 'Country is required' + } + } + } + }, + plugins: { + trigger: new FormValidation.plugins.Trigger(), + bootstrap: new FormValidation.plugins.Bootstrap5({ + rowSelector: '.fv-row', + eleInvalidClass: '', + eleValidClass: '' + }) + } + } + ); + + // Handle submit button + submitButton.addEventListener('click', e => { + e.preventDefault(); + + // Validate form before submit + if (validator) { + validator.validate().then(function (status) { + console.log('validated!'); + + if (status == 'Valid') { + submitButton.setAttribute('data-kt-indicator', 'on'); + + // Disable submit button whilst loading + submitButton.disabled = true; + + setTimeout(function () { + submitButton.removeAttribute('data-kt-indicator'); + + Swal.fire({ + text: "Form has been successfully submitted!", + icon: "success", + buttonsStyling: false, + confirmButtonText: "Ok, got it!", + customClass: { + confirmButton: "btn btn-primary" + } + }).then(function (result) { + if (result.isConfirmed) { + // Enable submit button after loading + submitButton.disabled = false; + + // Redirect to customers list page + window.location = form.getAttribute("data-kt-redirect"); + } + }); + }, 2000); + } else { + Swal.fire({ + html: "Sorry, looks like there are some errors detected, please try again.", + icon: "error", + buttonsStyling: false, + confirmButtonText: "Ok, got it!", + customClass: { + confirmButton: "btn btn-primary" + } + }); + } + }); + } + }) + } + + + // Public methods + return { + init: function () { + + initSaveOrder(); + handleSearchDatatable(); + handleShippingForm(); + handleProductSelect(); + handleSubmit(); + } + }; +}(); + +// On document ready +KTUtil.onDOMContentLoaded(function () { + KTAppEcommerceSalesSaveOrder.init(); +}); diff --git a/resources/_keenthemes/src/js/custom/apps/ecommerce/settings/settings.js b/resources/_keenthemes/src/js/custom/apps/ecommerce/settings/settings.js new file mode 100644 index 0000000..d2d053a --- /dev/null +++ b/resources/_keenthemes/src/js/custom/apps/ecommerce/settings/settings.js @@ -0,0 +1,188 @@ +"use strict"; + +// Class definition +var KTAppEcommerceSettings = function () { + // Shared variables + + + // Private functions + const initForms = () => { + const forms = [ + 'kt_ecommerce_settings_general_form', + 'kt_ecommerce_settings_general_store', + 'kt_ecommerce_settings_general_localization', + 'kt_ecommerce_settings_general_products', + 'kt_ecommerce_settings_general_customers', + ]; + + // Init all forms + forms.forEach(formId => { + // Select form + const form = document.getElementById(formId); + + if(!form){ + return; + } + + // Dynamically create validation non-empty rule + const requiredFields = form.querySelectorAll('.required'); + var detectedField; + var validationFields = { + fields: {}, + + plugins: { + trigger: new FormValidation.plugins.Trigger(), + bootstrap: new FormValidation.plugins.Bootstrap5({ + rowSelector: '.fv-row', + eleInvalidClass: '', + eleValidClass: '' + }) + } + } + + // Detect required fields + requiredFields.forEach(el => { + const input = el.closest('.row').querySelector('input'); + if (input) { + detectedField = input; + } + + const textarea = el.closest('.row').querySelector('textarea'); + if (textarea) { + detectedField = textarea; + } + + const select = el.closest('.row').querySelector('select'); + if (select) { + detectedField = select; + } + + // Add validation rule + const name = detectedField.getAttribute('name'); + validationFields.fields[name] = { + validators: { + notEmpty: { + message: el.innerText + ' is required' + } + } + } + }); + + // Init form validation rules. For more info check the FormValidation plugin's official documentation:https://formvalidation.io/ + var validator = FormValidation.formValidation( + form, + validationFields + ); + + // Submit button handler + const submitButton = form.querySelector('[data-kt-ecommerce-settings-type="submit"]'); + submitButton.addEventListener('click', function (e) { + // Prevent default button action + e.preventDefault(); + + // Validate form before submit + if (validator) { + validator.validate().then(function (status) { + console.log('validated!'); + + if (status == 'Valid') { + // Show loading indication + submitButton.setAttribute('data-kt-indicator', 'on'); + + // Disable button to avoid multiple click + submitButton.disabled = true; + + // Simulate form submission. For more info check the plugin's official documentation: https://sweetalert2.github.io/ + setTimeout(function () { + // Remove loading indication + submitButton.removeAttribute('data-kt-indicator'); + + // Enable button + submitButton.disabled = false; + + // Show popup confirmation + Swal.fire({ + text: "Form has been successfully submitted!", + icon: "success", + buttonsStyling: false, + confirmButtonText: "Ok, got it!", + customClass: { + confirmButton: "btn btn-primary" + } + }); + + //form.submit(); // Submit form + }, 2000); + } else { + // Show popup error + Swal.fire({ + text: "Oops! There are some error(s) detected.", + icon: "error", + buttonsStyling: false, + confirmButtonText: "Ok, got it!", + customClass: { + confirmButton: "btn btn-primary" + } + }); + } + }); + } + }); + }); + } + + // Init Tagify + const initTagify = () => { + // Get tagify elements + const elements = document.querySelectorAll('[data-kt-ecommerce-settings-type="tagify"]'); + + // Init tagify + elements.forEach(element => { + new Tagify(element); + }); + } + + // Init Select2 with flags + const initSelect2Flags = () => { + // Format options + const optionFormat = (item) => { + if ( !item.id ) { + return item.text; + } + + var span = document.createElement('span'); + var template = ''; + + template += 'image'; + template += item.text; + + span.innerHTML = template; + + return $(span); + } + + // Init Select2 --- more info: https://select2.org/ + $('[data-kt-ecommerce-settings-type="select2_flags"]').select2({ + placeholder: "Select a country", + minimumResultsForSearch: Infinity, + templateSelection: optionFormat, + templateResult: optionFormat + }); + } + + // Public methods + return { + init: function () { + + initForms(); + initTagify(); + initSelect2Flags(); + + } + }; +}(); + +// On document ready +KTUtil.onDOMContentLoaded(function () { + KTAppEcommerceSettings.init(); +}); diff --git a/resources/_keenthemes/src/js/custom/apps/file-manager/list.js b/resources/_keenthemes/src/js/custom/apps/file-manager/list.js new file mode 100644 index 0000000..e78c110 --- /dev/null +++ b/resources/_keenthemes/src/js/custom/apps/file-manager/list.js @@ -0,0 +1,939 @@ +"use strict"; + +// Class definition +var KTFileManagerList = function () { + // Define shared variables + var datatable; + var table + + // Define template element variables + var uploadTemplate; + var renameTemplate; + var actionTemplate; + var checkboxTemplate; + + + // Private functions + const initTemplates = () => { + uploadTemplate = document.querySelector('[data-kt-filemanager-template="upload"]'); + renameTemplate = document.querySelector('[data-kt-filemanager-template="rename"]'); + actionTemplate = document.querySelector('[data-kt-filemanager-template="action"]'); + checkboxTemplate = document.querySelector('[data-kt-filemanager-template="checkbox"]'); + } + + const initDatatable = () => { + // Set date data order + const tableRows = table.querySelectorAll('tbody tr'); + + tableRows.forEach(row => { + const dateRow = row.querySelectorAll('td'); + const dateCol = dateRow[3]; // select date from 4th column in table + const realDate = moment(dateCol.innerHTML, "DD MMM YYYY, LT").format(); + dateCol.setAttribute('data-order', realDate); + }); + + const foldersListOptions = { + "info": false, + 'order': [], + "scrollY": "700px", + "scrollCollapse": true, + "paging": false, + 'ordering': false, + 'columns': [ + { data: 'checkbox' }, + { data: 'name' }, + { data: 'size' }, + { data: 'date' }, + { data: 'action' }, + ], + 'language': { + emptyTable: `
+ +
No items found.
+
Start creating new folders or uploading a new file!
+
` + } + }; + + const filesListOptions = { + "info": false, + 'order': [], + 'pageLength': 10, + "lengthChange": false, + 'ordering': false, + 'columns': [ + { data: 'checkbox' }, + { data: 'name' }, + { data: 'size' }, + { data: 'date' }, + { data: 'action' }, + ], + 'language': { + emptyTable: `
+ +
No items found.
+
Start creating new folders or uploading a new file!
+
` + }, + conditionalPaging: true + }; + + // Define datatable options to load + var loadOptions; + if (table.getAttribute('data-kt-filemanager-table') === 'folders') { + loadOptions = foldersListOptions; + } else { + loadOptions = filesListOptions; + } + + // Init datatable --- more info on datatables: https://datatables.net/manual/ + datatable = $(table).DataTable(loadOptions); + + // Re-init functions on every table re-draw -- more info: https://datatables.net/reference/event/draw + datatable.on('draw', function () { + initToggleToolbar(); + handleDeleteRows(); + toggleToolbars(); + resetNewFolder(); + KTMenu.createInstances(); + initCopyLink(); + countTotalItems(); + handleRename(); + }); + } + + // Search Datatable --- official docs reference: https://datatables.net/reference/api/search() + const handleSearchDatatable = () => { + const filterSearch = document.querySelector('[data-kt-filemanager-table-filter="search"]'); + filterSearch.addEventListener('keyup', function (e) { + datatable.search(e.target.value).draw(); + }); + } + + // Delete customer + const handleDeleteRows = () => { + // Select all delete buttons + const deleteButtons = table.querySelectorAll('[data-kt-filemanager-table-filter="delete_row"]'); + + deleteButtons.forEach(d => { + // Delete button on click + d.addEventListener('click', function (e) { + e.preventDefault(); + + // Select parent row + const parent = e.target.closest('tr'); + + // Get customer name + const fileName = parent.querySelectorAll('td')[1].innerText; + + // SweetAlert2 pop up --- official docs reference: https://sweetalert2.github.io/ + Swal.fire({ + text: "Are you sure you want to delete " + fileName + "?", + icon: "warning", + showCancelButton: true, + buttonsStyling: false, + confirmButtonText: "Yes, delete!", + cancelButtonText: "No, cancel", + customClass: { + confirmButton: "btn fw-bold btn-danger", + cancelButton: "btn fw-bold btn-active-light-primary" + } + }).then(function (result) { + if (result.value) { + Swal.fire({ + text: "You have deleted " + fileName + "!.", + icon: "success", + buttonsStyling: false, + confirmButtonText: "Ok, got it!", + customClass: { + confirmButton: "btn fw-bold btn-primary", + } + }).then(function () { + // Remove current row + datatable.row($(parent)).remove().draw(); + }); + } else if (result.dismiss === 'cancel') { + Swal.fire({ + text: customerName + " was not deleted.", + icon: "error", + buttonsStyling: false, + confirmButtonText: "Ok, got it!", + customClass: { + confirmButton: "btn fw-bold btn-primary", + } + }); + } + }); + }) + }); + } + + // Init toggle toolbar + const initToggleToolbar = () => { + // Toggle selected action toolbar + // Select all checkboxes + var checkboxes = table.querySelectorAll('[type="checkbox"]'); + if (table.getAttribute('data-kt-filemanager-table') === 'folders') { + checkboxes = document.querySelectorAll('#kt_file_manager_list_wrapper [type="checkbox"]'); + } + + // Select elements + const deleteSelected = document.querySelector('[data-kt-filemanager-table-select="delete_selected"]'); + + // Toggle delete selected toolbar + checkboxes.forEach(c => { + // Checkbox on click event + c.addEventListener('click', function () { + console.log(c); + setTimeout(function () { + toggleToolbars(); + }, 50); + }); + }); + + // Deleted selected rows + deleteSelected.addEventListener('click', function () { + // SweetAlert2 pop up --- official docs reference: https://sweetalert2.github.io/ + Swal.fire({ + text: "Are you sure you want to delete selected files or folders?", + icon: "warning", + showCancelButton: true, + buttonsStyling: false, + confirmButtonText: "Yes, delete!", + cancelButtonText: "No, cancel", + customClass: { + confirmButton: "btn fw-bold btn-danger", + cancelButton: "btn fw-bold btn-active-light-primary" + } + }).then(function (result) { + if (result.value) { + Swal.fire({ + text: "You have deleted all selected files or folders!.", + icon: "success", + buttonsStyling: false, + confirmButtonText: "Ok, got it!", + customClass: { + confirmButton: "btn fw-bold btn-primary", + } + }).then(function () { + // Remove all selected customers + checkboxes.forEach(c => { + if (c.checked) { + datatable.row($(c.closest('tbody tr'))).remove().draw(); + } + }); + + // Remove header checked box + const headerCheckbox = table.querySelectorAll('[type="checkbox"]')[0]; + headerCheckbox.checked = false; + }); + } else if (result.dismiss === 'cancel') { + Swal.fire({ + text: "Selected files or folders was not deleted.", + icon: "error", + buttonsStyling: false, + confirmButtonText: "Ok, got it!", + customClass: { + confirmButton: "btn fw-bold btn-primary", + } + }); + } + }); + }); + } + + // Toggle toolbars + const toggleToolbars = () => { + // Define variables + const toolbarBase = document.querySelector('[data-kt-filemanager-table-toolbar="base"]'); + const toolbarSelected = document.querySelector('[data-kt-filemanager-table-toolbar="selected"]'); + const selectedCount = document.querySelector('[data-kt-filemanager-table-select="selected_count"]'); + + // Select refreshed checkbox DOM elements + const allCheckboxes = table.querySelectorAll('tbody [type="checkbox"]'); + + // Detect checkboxes state & count + let checkedState = false; + let count = 0; + + // Count checked boxes + allCheckboxes.forEach(c => { + if (c.checked) { + checkedState = true; + count++; + } + }); + + // Toggle toolbars + if (checkedState) { + selectedCount.innerHTML = count; + toolbarBase.classList.add('d-none'); + toolbarSelected.classList.remove('d-none'); + } else { + toolbarBase.classList.remove('d-none'); + toolbarSelected.classList.add('d-none'); + } + } + + // Handle new folder + const handleNewFolder = () => { + // Select button + const newFolder = document.getElementById('kt_file_manager_new_folder'); + + // Handle click action + newFolder.addEventListener('click', e => { + e.preventDefault(); + + // Ignore if input already exist + if (table.querySelector('#kt_file_manager_new_folder_row')) { + return; + } + + // Add new blank row to datatable + const tableBody = table.querySelector('tbody'); + const rowElement = uploadTemplate.cloneNode(true); // Clone template markup + tableBody.prepend(rowElement); + + // Define template interactive elements + const rowForm = rowElement.querySelector('#kt_file_manager_add_folder_form'); + const rowButton = rowElement.querySelector('#kt_file_manager_add_folder'); + const cancelButton = rowElement.querySelector('#kt_file_manager_cancel_folder'); + const folderIcon = rowElement.querySelector('#kt_file_manager_folder_icon'); + const rowInput = rowElement.querySelector('[name="new_folder_name"]'); + + // Define validator + // Init form validation rules. For more info check the FormValidation plugin's official documentation:https://formvalidation.io/ + var validator = FormValidation.formValidation( + rowForm, + { + fields: { + 'new_folder_name': { + validators: { + notEmpty: { + message: 'Folder name is required' + } + } + }, + }, + plugins: { + trigger: new FormValidation.plugins.Trigger(), + bootstrap: new FormValidation.plugins.Bootstrap5({ + rowSelector: '.fv-row', + eleInvalidClass: '', + eleValidClass: '' + }) + } + } + ); + + // Handle add new folder button + rowButton.addEventListener('click', e => { + e.preventDefault(); + + // Activate indicator + rowButton.setAttribute("data-kt-indicator", "on"); + + // Validate form before submit + if (validator) { + validator.validate().then(function (status) { + console.log('validated!'); + + if (status == 'Valid') { + // Simulate process for demo only + setTimeout(function () { + // Create folder link + const folderLink = document.createElement('a'); + const folderLinkClasses = ['text-gray-800', 'text-hover-primary']; + folderLink.setAttribute('href', '?page=apps/file-manager/blank'); + folderLink.classList.add(...folderLinkClasses); + folderLink.innerText = rowInput.value; + + const newRow = datatable.row.add({ + 'checkbox': checkboxTemplate.innerHTML, + 'name': folderIcon.outerHTML + folderLink.outerHTML, + "size": '-', + "date": '-', + 'action': actionTemplate.innerHTML + }).node(); + $(newRow).find('td').eq(4).attr('data-kt-filemanager-table', 'action_dropdown'); + $(newRow).find('td').eq(4).addClass('text-end'); // Add custom class to last 'td' element --- more info: https://datatables.net/forums/discussion/22341/row-add-cell-class + + // Re-sort datatable to allow new folder added at the top + var index = datatable.row(0).index(), + rowCount = datatable.data().length - 1, + insertedRow = datatable.row(rowCount).data(), + tempRow; + + for (var i = rowCount; i > index; i--) { + tempRow = datatable.row(i - 1).data(); + datatable.row(i).data(tempRow); + datatable.row(i - 1).data(insertedRow); + } + + toastr.options = { + "closeButton": true, + "debug": false, + "newestOnTop": false, + "progressBar": false, + "positionClass": "toastr-top-right", + "preventDuplicates": false, + "showDuration": "300", + "hideDuration": "1000", + "timeOut": "5000", + "extendedTimeOut": "1000", + "showEasing": "swing", + "hideEasing": "linear", + "showMethod": "fadeIn", + "hideMethod": "fadeOut" + }; + + toastr.success(rowInput.value + ' was created!'); + + // Disable indicator + rowButton.removeAttribute("data-kt-indicator"); + + // Reset input + rowInput.value = ''; + + datatable.draw(false); + + }, 2000); + } else { + // Disable indicator + rowButton.removeAttribute("data-kt-indicator"); + } + }); + } + }); + + // Handle cancel new folder button + cancelButton.addEventListener('click', e => { + e.preventDefault(); + + // Activate indicator + cancelButton.setAttribute("data-kt-indicator", "on"); + + setTimeout(function () { + // Disable indicator + cancelButton.removeAttribute("data-kt-indicator"); + + // Toggle toastr + toastr.options = { + "closeButton": true, + "debug": false, + "newestOnTop": false, + "progressBar": false, + "positionClass": "toastr-top-right", + "preventDuplicates": false, + "showDuration": "300", + "hideDuration": "1000", + "timeOut": "5000", + "extendedTimeOut": "1000", + "showEasing": "swing", + "hideEasing": "linear", + "showMethod": "fadeIn", + "hideMethod": "fadeOut" + }; + + toastr.error('Cancelled new folder creation'); + resetNewFolder(); + }, 1000); + }); + }); + } + + // Reset add new folder input + const resetNewFolder = () => { + const newFolderRow = table.querySelector('#kt_file_manager_new_folder_row'); + + if (newFolderRow) { + newFolderRow.parentNode.removeChild(newFolderRow); + } + } + + // Handle rename file or folder + const handleRename = () => { + const renameButton = table.querySelectorAll('[data-kt-filemanager-table="rename"]'); + + renameButton.forEach(button => { + button.addEventListener('click', renameCallback); + }); + } + + // Rename callback + const renameCallback = (e) => { + e.preventDefault(); + + // Define shared value + let nameValue; + + // Stop renaming if there's an input existing + if (table.querySelectorAll('#kt_file_manager_rename_input').length > 0) { + Swal.fire({ + text: "Unsaved input detected. Please save or cancel the current item", + icon: "warning", + buttonsStyling: false, + confirmButtonText: "Ok, got it!", + customClass: { + confirmButton: "btn fw-bold btn-danger" + } + }); + + return; + } + + // Select parent row + const parent = e.target.closest('tr'); + + // Get name column + const nameCol = parent.querySelectorAll('td')[1]; + const colIcon = nameCol.querySelector('.icon-wrapper'); + nameValue = nameCol.innerText; + + // Set rename input template + const renameInput = renameTemplate.cloneNode(true); + renameInput.querySelector('#kt_file_manager_rename_folder_icon').innerHTML = colIcon.outerHTML; + + // Swap current column content with input template + nameCol.innerHTML = renameInput.innerHTML; + + // Set input value with current file/folder name + parent.querySelector('#kt_file_manager_rename_input').value = nameValue; + + // Rename file / folder validator + var renameValidator = FormValidation.formValidation( + nameCol, + { + fields: { + 'rename_folder_name': { + validators: { + notEmpty: { + message: 'Name is required' + } + } + }, + }, + plugins: { + trigger: new FormValidation.plugins.Trigger(), + bootstrap: new FormValidation.plugins.Bootstrap5({ + rowSelector: '.fv-row', + eleInvalidClass: '', + eleValidClass: '' + }) + } + } + ); + + // Rename input button action + const renameInputButton = document.querySelector('#kt_file_manager_rename_folder'); + renameInputButton.addEventListener('click', e => { + e.preventDefault(); + + // Detect if valid + if (renameValidator) { + renameValidator.validate().then(function (status) { + console.log('validated!'); + + if (status == 'Valid') { + // Pop up confirmation + Swal.fire({ + text: "Are you sure you want to rename " + nameValue + "?", + icon: "warning", + showCancelButton: true, + buttonsStyling: false, + confirmButtonText: "Yes, rename it!", + cancelButtonText: "No, cancel", + customClass: { + confirmButton: "btn fw-bold btn-danger", + cancelButton: "btn fw-bold btn-active-light-primary" + } + }).then(function (result) { + if (result.value) { + Swal.fire({ + text: "You have renamed " + nameValue + "!.", + icon: "success", + buttonsStyling: false, + confirmButtonText: "Ok, got it!", + customClass: { + confirmButton: "btn fw-bold btn-primary", + } + }).then(function () { + // Get new file / folder name value + const newValue = document.querySelector('#kt_file_manager_rename_input').value; + + // New column data template + const newData = `
+ ${colIcon.outerHTML} + ${newValue} +
`; + + // Draw datatable with new content -- Add more events here for any server-side events + datatable.cell($(nameCol)).data(newData).draw(); + }); + } else if (result.dismiss === 'cancel') { + Swal.fire({ + text: nameValue + " was not renamed.", + icon: "error", + buttonsStyling: false, + confirmButtonText: "Ok, got it!", + customClass: { + confirmButton: "btn fw-bold btn-primary", + } + }); + } + }); + } + }); + } + }); + + // Cancel rename input + const cancelInputButton = document.querySelector('#kt_file_manager_rename_folder_cancel'); + cancelInputButton.addEventListener('click', e => { + e.preventDefault(); + + // Simulate process for demo only + cancelInputButton.setAttribute("data-kt-indicator", "on"); + + setTimeout(function () { + const revertTemplate = `
+ ${colIcon.outerHTML} + ${nameValue} +
`; + + // Remove spinner + cancelInputButton.removeAttribute("data-kt-indicator"); + + // Draw datatable with new content -- Add more events here for any server-side events + datatable.cell($(nameCol)).data(revertTemplate).draw(); + + // Toggle toastr + toastr.options = { + "closeButton": true, + "debug": false, + "newestOnTop": false, + "progressBar": false, + "positionClass": "toastr-top-right", + "preventDuplicates": false, + "showDuration": "300", + "hideDuration": "1000", + "timeOut": "5000", + "extendedTimeOut": "1000", + "showEasing": "swing", + "hideEasing": "linear", + "showMethod": "fadeIn", + "hideMethod": "fadeOut" + }; + + toastr.error('Cancelled rename function'); + }, 1000); + }); + } + + // Init dropzone + const initDropzone = () => { + // set the dropzone container id + const id = "#kt_modal_upload_dropzone"; + const dropzone = document.querySelector(id); + + // set the preview element template + var previewNode = dropzone.querySelector(".dropzone-item"); + previewNode.id = ""; + var previewTemplate = previewNode.parentNode.innerHTML; + previewNode.parentNode.removeChild(previewNode); + + var myDropzone = new Dropzone(id, { // Make the whole body a dropzone + url: "path/to/your/server", // Set the url for your upload script location + parallelUploads: 10, + previewTemplate: previewTemplate, + maxFilesize: 1, // Max filesize in MB + autoProcessQueue: false, // Stop auto upload + autoQueue: false, // Make sure the files aren't queued until manually added + previewsContainer: id + " .dropzone-items", // Define the container to display the previews + clickable: id + " .dropzone-select" // Define the element that should be used as click trigger to select files. + }); + + myDropzone.on("addedfile", function (file) { + // Hook each start button + file.previewElement.querySelector(id + " .dropzone-start").onclick = function () { + // myDropzone.enqueueFile(file); -- default dropzone function + + // Process simulation for demo only + const progressBar = file.previewElement.querySelector('.progress-bar'); + progressBar.style.opacity = "1"; + var width = 1; + var timer = setInterval(function () { + if (width >= 100) { + myDropzone.emit("success", file); + myDropzone.emit("complete", file); + clearInterval(timer); + } else { + width++; + progressBar.style.width = width + '%'; + } + }, 20); + }; + + const dropzoneItems = dropzone.querySelectorAll('.dropzone-item'); + dropzoneItems.forEach(dropzoneItem => { + dropzoneItem.style.display = ''; + }); + dropzone.querySelector('.dropzone-upload').style.display = "inline-block"; + dropzone.querySelector('.dropzone-remove-all').style.display = "inline-block"; + }); + + // Hide the total progress bar when nothing's uploading anymore + myDropzone.on("complete", function (file) { + const progressBars = dropzone.querySelectorAll('.dz-complete'); + setTimeout(function () { + progressBars.forEach(progressBar => { + progressBar.querySelector('.progress-bar').style.opacity = "0"; + progressBar.querySelector('.progress').style.opacity = "0"; + progressBar.querySelector('.dropzone-start').style.opacity = "0"; + }); + }, 300); + }); + + // Setup the buttons for all transfers + dropzone.querySelector(".dropzone-upload").addEventListener('click', function () { + // myDropzone.processQueue(); --- default dropzone process + + // Process simulation for demo only + myDropzone.files.forEach(file => { + const progressBar = file.previewElement.querySelector('.progress-bar'); + progressBar.style.opacity = "1"; + var width = 1; + var timer = setInterval(function () { + if (width >= 100) { + myDropzone.emit("success", file); + myDropzone.emit("complete", file); + clearInterval(timer); + } else { + width++; + progressBar.style.width = width + '%'; + } + }, 20); + }); + }); + + // Setup the button for remove all files + dropzone.querySelector(".dropzone-remove-all").addEventListener('click', function () { + Swal.fire({ + text: "Are you sure you would like to remove all files?", + icon: "warning", + showCancelButton: true, + buttonsStyling: false, + confirmButtonText: "Yes, remove it!", + cancelButtonText: "No, return", + customClass: { + confirmButton: "btn btn-primary", + cancelButton: "btn btn-active-light" + } + }).then(function (result) { + if (result.value) { + dropzone.querySelector('.dropzone-upload').style.display = "none"; + dropzone.querySelector('.dropzone-remove-all').style.display = "none"; + myDropzone.removeAllFiles(true); + } else if (result.dismiss === 'cancel') { + Swal.fire({ + text: "Your files was not removed!.", + icon: "error", + buttonsStyling: false, + confirmButtonText: "Ok, got it!", + customClass: { + confirmButton: "btn btn-primary", + } + }); + } + }); + }); + + // On all files completed upload + myDropzone.on("queuecomplete", function (progress) { + const uploadIcons = dropzone.querySelectorAll('.dropzone-upload'); + uploadIcons.forEach(uploadIcon => { + uploadIcon.style.display = "none"; + }); + }); + + // On all files removed + myDropzone.on("removedfile", function (file) { + if (myDropzone.files.length < 1) { + dropzone.querySelector('.dropzone-upload').style.display = "none"; + dropzone.querySelector('.dropzone-remove-all').style.display = "none"; + } + }); + } + + // Init copy link + const initCopyLink = () => { + // Select all copy link elements + const elements = table.querySelectorAll('[data-kt-filemanger-table="copy_link"]'); + + elements.forEach(el => { + // Define elements + const button = el.querySelector('button'); + const generator = el.querySelector('[data-kt-filemanger-table="copy_link_generator"]'); + const result = el.querySelector('[data-kt-filemanger-table="copy_link_result"]'); + const input = el.querySelector('input'); + + // Click action + button.addEventListener('click', e => { + e.preventDefault(); + + // Reset toggle + generator.classList.remove('d-none'); + result.classList.add('d-none'); + + var linkTimeout; + clearTimeout(linkTimeout); + linkTimeout = setTimeout(() => { + generator.classList.add('d-none'); + result.classList.remove('d-none'); + input.select(); + }, 2000); + }); + }); + } + + // Handle move to folder + const handleMoveToFolder = () => { + const element = document.querySelector('#kt_modal_move_to_folder'); + const form = element.querySelector('#kt_modal_move_to_folder_form'); + const saveButton = form.querySelector('#kt_modal_move_to_folder_submit'); + const moveModal = new bootstrap.Modal(element); + + // Init form validation rules. For more info check the FormValidation plugin's official documentation:https://formvalidation.io/ + var validator = FormValidation.formValidation( + form, + { + fields: { + 'move_to_folder': { + validators: { + notEmpty: { + message: 'Please select a folder.' + } + } + }, + }, + + plugins: { + trigger: new FormValidation.plugins.Trigger(), + bootstrap: new FormValidation.plugins.Bootstrap5({ + rowSelector: '.fv-row', + eleInvalidClass: '', + eleValidClass: '' + }) + } + } + ); + + saveButton.addEventListener('click', e => { + e.preventDefault(); + + saveButton.setAttribute("data-kt-indicator", "on"); + + if (validator) { + validator.validate().then(function (status) { + console.log('validated!'); + + if (status == 'Valid') { + // Simulate process for demo only + setTimeout(function () { + + Swal.fire({ + text: "Are you sure you would like to move to this folder", + icon: "warning", + showCancelButton: true, + buttonsStyling: false, + confirmButtonText: "Yes, move it!", + cancelButtonText: "No, return", + customClass: { + confirmButton: "btn btn-primary", + cancelButton: "btn btn-active-light" + } + }).then(function (result) { + if (result.isConfirmed) { + form.reset(); // Reset form + moveModal.hide(); // Hide modal + + toastr.options = { + "closeButton": true, + "debug": false, + "newestOnTop": false, + "progressBar": false, + "positionClass": "toastr-top-right", + "preventDuplicates": false, + "showDuration": "300", + "hideDuration": "1000", + "timeOut": "5000", + "extendedTimeOut": "1000", + "showEasing": "swing", + "hideEasing": "linear", + "showMethod": "fadeIn", + "hideMethod": "fadeOut" + }; + + toastr.success('1 item has been moved.'); + + saveButton.removeAttribute("data-kt-indicator"); + } else { + Swal.fire({ + text: "Your action has been cancelled!.", + icon: "error", + buttonsStyling: false, + confirmButtonText: "Ok, got it!", + customClass: { + confirmButton: "btn btn-primary", + } + }); + + saveButton.removeAttribute("data-kt-indicator"); + } + }); + }, 500); + } else { + saveButton.removeAttribute("data-kt-indicator"); + } + }); + } + }); + } + + // Count total number of items + const countTotalItems = () => { + const counter = document.getElementById('kt_file_manager_items_counter'); + + // Count total number of elements in datatable --- more info: https://datatables.net/reference/api/count() + counter.innerText = datatable.rows().count() + ' items'; + } + + // Public methods + return { + init: function () { + table = document.querySelector('#kt_file_manager_list'); + + if (!table) { + return; + } + + initTemplates(); + initDatatable(); + initToggleToolbar(); + handleSearchDatatable(); + handleDeleteRows(); + handleNewFolder(); + initDropzone(); + initCopyLink(); + handleRename(); + handleMoveToFolder(); + countTotalItems(); + KTMenu.createInstances(); + } + } +}(); + +// On document ready +KTUtil.onDOMContentLoaded(function () { + KTFileManagerList.init(); +}); \ No newline at end of file diff --git a/resources/_keenthemes/src/js/custom/apps/file-manager/settings.js b/resources/_keenthemes/src/js/custom/apps/file-manager/settings.js new file mode 100644 index 0000000..936def4 --- /dev/null +++ b/resources/_keenthemes/src/js/custom/apps/file-manager/settings.js @@ -0,0 +1,55 @@ +"use strict"; + +// Class definition +var KTAppFileManagerSettings = function () { + var form; + + // Private functions + var handleForm = function() { + const saveButton = form.querySelector('#kt_file_manager_settings_submit'); + + saveButton.addEventListener('click', e => { + e.preventDefault(); + + saveButton.setAttribute("data-kt-indicator", "on"); + + // Simulate process for demo only + setTimeout(function(){ + toastr.options = { + "closeButton": true, + "debug": false, + "newestOnTop": false, + "progressBar": false, + "positionClass": "toast-top-right", + "preventDuplicates": false, + "showDuration": "300", + "hideDuration": "1000", + "timeOut": "5000", + "extendedTimeOut": "1000", + "showEasing": "swing", + "hideEasing": "linear", + "showMethod": "fadeIn", + "hideMethod": "fadeOut" + }; + + toastr.success('File manager settings have been saved'); + + saveButton.removeAttribute("data-kt-indicator"); + }, 1000); + }); + } + + // Public methods + return { + init: function(element) { + form = document.querySelector('#kt_file_manager_settings'); + + handleForm(); + } + }; +}(); + +// On document ready +KTUtil.onDOMContentLoaded(function () { + KTAppFileManagerSettings.init(); +}); diff --git a/resources/_keenthemes/src/js/custom/apps/inbox/compose.js b/resources/_keenthemes/src/js/custom/apps/inbox/compose.js new file mode 100644 index 0000000..3e218e5 --- /dev/null +++ b/resources/_keenthemes/src/js/custom/apps/inbox/compose.js @@ -0,0 +1,294 @@ +"use strict"; + +// Class definition +var KTAppInboxCompose = function () { + // Private functions + // Init reply form + const initForm = () => { + // Set variables + const form = document.querySelector('#kt_inbox_compose_form'); + const allTagify = form.querySelectorAll('[data-kt-inbox-form="tagify"]'); + + // Handle CC and BCC + handleCCandBCC(form); + + // Handle submit form + handleSubmit(form); + + // Init tagify + allTagify.forEach(tagify => { + initTagify(tagify); + }); + + // Init quill editor + initQuill(form); + + // Init dropzone + initDropzone(form); + } + + // Handle CC and BCC toggle + const handleCCandBCC = (el) => { + // Get elements + const ccElement = el.querySelector('[data-kt-inbox-form="cc"]'); + const ccButton = el.querySelector('[data-kt-inbox-form="cc_button"]'); + const ccClose = el.querySelector('[data-kt-inbox-form="cc_close"]'); + const bccElement = el.querySelector('[data-kt-inbox-form="bcc"]'); + const bccButton = el.querySelector('[data-kt-inbox-form="bcc_button"]'); + const bccClose = el.querySelector('[data-kt-inbox-form="bcc_close"]'); + + // Handle CC button click + ccButton.addEventListener('click', e => { + e.preventDefault(); + + ccElement.classList.remove('d-none'); + ccElement.classList.add('d-flex'); + }); + + // Handle CC close button click + ccClose.addEventListener('click', e => { + e.preventDefault(); + + ccElement.classList.add('d-none'); + ccElement.classList.remove('d-flex'); + }); + + // Handle BCC button click + bccButton.addEventListener('click', e => { + e.preventDefault(); + + bccElement.classList.remove('d-none'); + bccElement.classList.add('d-flex'); + }); + + // Handle CC close button click + bccClose.addEventListener('click', e => { + e.preventDefault(); + + bccElement.classList.add('d-none'); + bccElement.classList.remove('d-flex'); + }); + } + + // Handle submit form + const handleSubmit = (el) => { + const submitButton = el.querySelector('[data-kt-inbox-form="send"]'); + + // Handle button click event + submitButton.addEventListener("click", function () { + // Activate indicator + submitButton.setAttribute("data-kt-indicator", "on"); + + // Disable indicator after 3 seconds + setTimeout(function () { + submitButton.removeAttribute("data-kt-indicator"); + }, 3000); + }); + } + + // Init tagify + const initTagify = (el) => { + var inputElm = el; + + const usersList = [ + { value: 1, name: 'Emma Smith', avatar: 'avatars/300-6.jpg', email: 'e.smith@kpmg.com.au' }, + { value: 2, name: 'Max Smith', avatar: 'avatars/300-1.jpg', email: 'max@kt.com' }, + { value: 3, name: 'Sean Bean', avatar: 'avatars/300-5.jpg', email: 'sean@dellito.com' }, + { value: 4, name: 'Brian Cox', avatar: 'avatars/300-25.jpg', email: 'brian@exchange.com' }, + { value: 5, name: 'Francis Mitcham', avatar: 'avatars/300-9.jpg', email: 'f.mitcham@kpmg.com.au' }, + { value: 6, name: 'Dan Wilson', avatar: 'avatars/300-23.jpg', email: 'dam@consilting.com' }, + { value: 7, name: 'Ana Crown', avatar: 'avatars/300-12.jpg', email: 'ana.cf@limtel.com' }, + { value: 8, name: 'John Miller', avatar: 'avatars/300-13.jpg', email: 'miller@mapple.com' } + ]; + + function tagTemplate(tagData) { + return ` + + +
+
+ +
+ ${tagData.name} +
+
+ ` + } + + function suggestionItemTemplate(tagData) { + return ` +
+ + ${tagData.avatar ? ` +
+ +
` : '' + } + +
+ ${tagData.name} + ${tagData.email} +
+
+ ` + } + + // initialize Tagify on the above input node reference + var tagify = new Tagify(inputElm, { + tagTextProp: 'name', // very important since a custom template is used with this property as text. allows typing a "value" or a "name" to match input with whitelist + enforceWhitelist: true, + skipInvalid: true, // do not remporarily add invalid tags + dropdown: { + closeOnSelect: false, + enabled: 0, + classname: 'users-list', + searchKeys: ['name', 'email'] // very important to set by which keys to search for suggesttions when typing + }, + templates: { + tag: tagTemplate, + dropdownItem: suggestionItemTemplate + }, + whitelist: usersList + }) + + tagify.on('dropdown:show dropdown:updated', onDropdownShow) + tagify.on('dropdown:select', onSelectSuggestion) + + var addAllSuggestionsElm; + + function onDropdownShow(e) { + var dropdownContentElm = e.detail.tagify.DOM.dropdown.content; + + if (tagify.suggestedListItems.length > 1) { + addAllSuggestionsElm = getAddAllSuggestionsElm(); + + // insert "addAllSuggestionsElm" as the first element in the suggestions list + dropdownContentElm.insertBefore(addAllSuggestionsElm, dropdownContentElm.firstChild) + } + } + + function onSelectSuggestion(e) { + if (e.detail.elm == addAllSuggestionsElm) + tagify.dropdown.selectAll.call(tagify); + } + + // create a "add all" custom suggestion element every time the dropdown changes + function getAddAllSuggestionsElm() { + // suggestions items should be based on "dropdownItem" template + return tagify.parseTemplate('dropdownItem', [{ + class: "addAll", + name: "Add all", + email: tagify.settings.whitelist.reduce(function (remainingSuggestions, item) { + return tagify.isTagDuplicate(item.value) ? remainingSuggestions : remainingSuggestions + 1 + }, 0) + " Members" + }] + ) + } + } + + // Init quill editor + const initQuill = (el) => { + var quill = new Quill('#kt_inbox_form_editor', { + modules: { + toolbar: [ + [{ + header: [1, 2, false] + }], + ['bold', 'italic', 'underline'], + ['image', 'code-block'] + ] + }, + placeholder: 'Type your text here...', + theme: 'snow' // or 'bubble' + }); + + // Customize editor + const toolbar = el.querySelector('.ql-toolbar'); + + if (toolbar) { + const classes = ['px-5', 'border-top-0', 'border-start-0', 'border-end-0']; + toolbar.classList.add(...classes); + } + } + + // Init dropzone + const initDropzone = (el) => { + // set the dropzone container id + const id = '[data-kt-inbox-form="dropzone"]'; + const dropzone = el.querySelector(id); + const uploadButton = el.querySelector('[data-kt-inbox-form="dropzone_upload"]'); + + // set the preview element template + var previewNode = dropzone.querySelector(".dropzone-item"); + previewNode.id = ""; + var previewTemplate = previewNode.parentNode.innerHTML; + previewNode.parentNode.removeChild(previewNode); + + var myDropzone = new Dropzone(id, { // Make the whole body a dropzone + url: "https://preview.keenthemes.com/api/dropzone/void.php", // Set the url for your upload script location + parallelUploads: 20, + maxFilesize: 1, // Max filesize in MB + previewTemplate: previewTemplate, + previewsContainer: id + " .dropzone-items", // Define the container to display the previews + clickable: uploadButton // Define the element that should be used as click trigger to select files. + }); + + + myDropzone.on("addedfile", function (file) { + // Hookup the start button + const dropzoneItems = dropzone.querySelectorAll('.dropzone-item'); + dropzoneItems.forEach(dropzoneItem => { + dropzoneItem.style.display = ''; + }); + }); + + // Update the total progress bar + myDropzone.on("totaluploadprogress", function (progress) { + const progressBars = dropzone.querySelectorAll('.progress-bar'); + progressBars.forEach(progressBar => { + progressBar.style.width = progress + "%"; + }); + }); + + myDropzone.on("sending", function (file) { + // Show the total progress bar when upload starts + const progressBars = dropzone.querySelectorAll('.progress-bar'); + progressBars.forEach(progressBar => { + progressBar.style.opacity = "1"; + }); + }); + + // Hide the total progress bar when nothing"s uploading anymore + myDropzone.on("complete", function (progress) { + const progressBars = dropzone.querySelectorAll('.dz-complete'); + + setTimeout(function () { + progressBars.forEach(progressBar => { + progressBar.querySelector('.progress-bar').style.opacity = "0"; + progressBar.querySelector('.progress').style.opacity = "0"; + }); + }, 300); + }); + } + + + // Public methods + return { + init: function () { + initForm(); + } + }; +}(); + +// On document ready +KTUtil.onDOMContentLoaded(function () { + KTAppInboxCompose.init(); +}); diff --git a/resources/_keenthemes/src/js/custom/apps/inbox/listing.js b/resources/_keenthemes/src/js/custom/apps/inbox/listing.js new file mode 100644 index 0000000..4a6412c --- /dev/null +++ b/resources/_keenthemes/src/js/custom/apps/inbox/listing.js @@ -0,0 +1,58 @@ +"use strict"; + +// Class definition +var KTAppInboxListing = function () { + var table; + var datatable; + + // Private functions + var initDatatable = function () { + // Init datatable --- more info on datatables: https://datatables.net/manual/ + datatable = $(table).DataTable({ + "info": false, + 'order': [], + // 'paging': false, + // 'pageLength': false, + }); + + datatable.on('draw', function () { + handleDatatableFooter(); + }); + } + + // Handle datatable footer spacings + var handleDatatableFooter = () => { + const footerElement = document.querySelector('#kt_inbox_listing_wrapper > .row'); + const spacingClasses = ['px-9', 'pt-3', 'pb-5']; + footerElement.classList.add(...spacingClasses); + } + + // Search Datatable --- official docs reference: https://datatables.net/reference/api/search() + var handleSearchDatatable = () => { + const filterSearch = document.querySelector('[data-kt-inbox-listing-filter="search"]'); + filterSearch.addEventListener('keyup', function (e) { + datatable.search(e.target.value).draw(); + }); + } + + + // Public methods + return { + init: function () { + table = document.querySelector('#kt_inbox_listing'); + + if (!table) { + return; + } + + initDatatable(); + handleSearchDatatable(); + handleDatatableFooter(); + } + }; +}(); + +// On document ready +KTUtil.onDOMContentLoaded(function () { + KTAppInboxListing.init(); +}); diff --git a/resources/_keenthemes/src/js/custom/apps/inbox/reply.js b/resources/_keenthemes/src/js/custom/apps/inbox/reply.js new file mode 100644 index 0000000..d5c7c2a --- /dev/null +++ b/resources/_keenthemes/src/js/custom/apps/inbox/reply.js @@ -0,0 +1,323 @@ +"use strict"; + +// Class definition +var KTAppInboxReply = function () { + + // Private functions + const handlePreviewText = () => { + // Get all messages + const accordions = document.querySelectorAll('[data-kt-inbox-message="message_wrapper"]'); + accordions.forEach(accordion => { + // Set variables + const header = accordion.querySelector('[data-kt-inbox-message="header"]'); + const previewText = accordion.querySelector('[data-kt-inbox-message="preview"]'); + const details = accordion.querySelector('[data-kt-inbox-message="details"]'); + const message = accordion.querySelector('[data-kt-inbox-message="message"]'); + + // Init bootstrap collapse -- more info: https://getbootstrap.com/docs/5.1/components/collapse/#via-javascript + const collapse = new bootstrap.Collapse(message, { toggle: false }); + + // Handle header click action + header.addEventListener('click', e => { + // Return if KTMenu or buttons are clicked + if (e.target.closest('[data-kt-menu-trigger="click"]') || e.target.closest('.btn')) { + return; + } else { + previewText.classList.toggle('d-none'); + details.classList.toggle('d-none'); + collapse.toggle(); + } + }); + }); + } + + // Init reply form + const initForm = () => { + // Set variables + const form = document.querySelector('#kt_inbox_reply_form'); + const allTagify = form.querySelectorAll('[data-kt-inbox-form="tagify"]'); + + // Handle CC and BCC + handleCCandBCC(form); + + // Handle submit form + handleSubmit(form); + + // Init tagify + allTagify.forEach(tagify => { + initTagify(tagify); + }); + + // Init quill editor + initQuill(form); + + // Init dropzone + initDropzone(form); + } + + // Handle CC and BCC toggle + const handleCCandBCC = (el) => { + // Get elements + const ccElement = el.querySelector('[data-kt-inbox-form="cc"]'); + const ccButton = el.querySelector('[data-kt-inbox-form="cc_button"]'); + const ccClose = el.querySelector('[data-kt-inbox-form="cc_close"]'); + const bccElement = el.querySelector('[data-kt-inbox-form="bcc"]'); + const bccButton = el.querySelector('[data-kt-inbox-form="bcc_button"]'); + const bccClose = el.querySelector('[data-kt-inbox-form="bcc_close"]'); + + // Handle CC button click + ccButton.addEventListener('click', e => { + e.preventDefault(); + + ccElement.classList.remove('d-none'); + ccElement.classList.add('d-flex'); + }); + + // Handle CC close button click + ccClose.addEventListener('click', e => { + e.preventDefault(); + + ccElement.classList.add('d-none'); + ccElement.classList.remove('d-flex'); + }); + + // Handle BCC button click + bccButton.addEventListener('click', e => { + e.preventDefault(); + + bccElement.classList.remove('d-none'); + bccElement.classList.add('d-flex'); + }); + + // Handle CC close button click + bccClose.addEventListener('click', e => { + e.preventDefault(); + + bccElement.classList.add('d-none'); + bccElement.classList.remove('d-flex'); + }); + } + + // Handle submit form + const handleSubmit = (el) => { + const submitButton = el.querySelector('[data-kt-inbox-form="send"]'); + + // Handle button click event + submitButton.addEventListener("click", function () { + // Activate indicator + submitButton.setAttribute("data-kt-indicator", "on"); + + // Disable indicator after 3 seconds + setTimeout(function () { + submitButton.removeAttribute("data-kt-indicator"); + }, 3000); + }); + } + + // Init tagify + const initTagify = (el) => { + var inputElm = el; + + const usersList = [ + { value: 1, name: 'Emma Smith', avatar: 'avatars/300-6.jpg', email: 'e.smith@kpmg.com.au' }, + { value: 2, name: 'Max Smith', avatar: 'avatars/300-1.jpg', email: 'max@kt.com' }, + { value: 3, name: 'Sean Bean', avatar: 'avatars/300-5.jpg', email: 'sean@dellito.com' }, + { value: 4, name: 'Brian Cox', avatar: 'avatars/300-25.jpg', email: 'brian@exchange.com' }, + { value: 5, name: 'Francis Mitcham', avatar: 'avatars/300-9.jpg', email: 'f.mitcham@kpmg.com.au' }, + { value: 6, name: 'Dan Wilson', avatar: 'avatars/300-23.jpg', email: 'dam@consilting.com' }, + { value: 7, name: 'Ana Crown', avatar: 'avatars/300-12.jpg', email: 'ana.cf@limtel.com' }, + { value: 8, name: 'John Miller', avatar: 'avatars/300-13.jpg', email: 'miller@mapple.com' } + ]; + + function tagTemplate(tagData) { + return ` + + +
+
+ +
+ ${tagData.name} +
+
+ ` + } + + function suggestionItemTemplate(tagData) { + return ` +
+ + ${tagData.avatar ? ` +
+ +
` : '' + } + +
+ ${tagData.name} + ${tagData.email} +
+
+ ` + } + + // initialize Tagify on the above input node reference + var tagify = new Tagify(inputElm, { + tagTextProp: 'name', // very important since a custom template is used with this property as text. allows typing a "value" or a "name" to match input with whitelist + enforceWhitelist: true, + skipInvalid: true, // do not remporarily add invalid tags + dropdown: { + closeOnSelect: false, + enabled: 0, + classname: 'users-list', + searchKeys: ['name', 'email'] // very important to set by which keys to search for suggesttions when typing + }, + templates: { + tag: tagTemplate, + dropdownItem: suggestionItemTemplate + }, + whitelist: usersList + }) + + tagify.on('dropdown:show dropdown:updated', onDropdownShow) + tagify.on('dropdown:select', onSelectSuggestion) + + var addAllSuggestionsElm; + + function onDropdownShow(e) { + var dropdownContentElm = e.detail.tagify.DOM.dropdown.content; + + if (tagify.suggestedListItems.length > 1) { + addAllSuggestionsElm = getAddAllSuggestionsElm(); + + // insert "addAllSuggestionsElm" as the first element in the suggestions list + dropdownContentElm.insertBefore(addAllSuggestionsElm, dropdownContentElm.firstChild) + } + } + + function onSelectSuggestion(e) { + if (e.detail.elm == addAllSuggestionsElm) + tagify.dropdown.selectAll.call(tagify); + } + + // create a "add all" custom suggestion element every time the dropdown changes + function getAddAllSuggestionsElm() { + // suggestions items should be based on "dropdownItem" template + return tagify.parseTemplate('dropdownItem', [{ + class: "addAll", + name: "Add all", + email: tagify.settings.whitelist.reduce(function (remainingSuggestions, item) { + return tagify.isTagDuplicate(item.value) ? remainingSuggestions : remainingSuggestions + 1 + }, 0) + " Members" + }] + ) + } + } + + // Init quill editor + const initQuill = (el) => { + var quill = new Quill('#kt_inbox_form_editor', { + modules: { + toolbar: [ + [{ + header: [1, 2, false] + }], + ['bold', 'italic', 'underline'], + ['image', 'code-block'] + ] + }, + placeholder: 'Type your text here...', + theme: 'snow' // or 'bubble' + }); + + // Customize editor + const toolbar = el.querySelector('.ql-toolbar'); + + if (toolbar) { + const classes = ['px-5', 'border-top-0', 'border-start-0', 'border-end-0']; + toolbar.classList.add(...classes); + } + } + + // Init dropzone + const initDropzone = (el) => { + // set the dropzone container id + const id = '[data-kt-inbox-form="dropzone"]'; + const dropzone = el.querySelector(id); + const uploadButton = el.querySelector('[data-kt-inbox-form="dropzone_upload"]'); + + // set the preview element template + var previewNode = dropzone.querySelector(".dropzone-item"); + previewNode.id = ""; + var previewTemplate = previewNode.parentNode.innerHTML; + previewNode.parentNode.removeChild(previewNode); + + var myDropzone = new Dropzone(id, { // Make the whole body a dropzone + url: "https://preview.keenthemes.com/api/dropzone/void.php", // Set the url for your upload script location + parallelUploads: 20, + maxFilesize: 1, // Max filesize in MB + previewTemplate: previewTemplate, + previewsContainer: id + " .dropzone-items", // Define the container to display the previews + clickable: uploadButton // Define the element that should be used as click trigger to select files. + }); + + + myDropzone.on("addedfile", function (file) { + // Hookup the start button + const dropzoneItems = dropzone.querySelectorAll('.dropzone-item'); + dropzoneItems.forEach(dropzoneItem => { + dropzoneItem.style.display = ''; + }); + }); + + // Update the total progress bar + myDropzone.on("totaluploadprogress", function (progress) { + const progressBars = dropzone.querySelectorAll('.progress-bar'); + progressBars.forEach(progressBar => { + progressBar.style.width = progress + "%"; + }); + }); + + myDropzone.on("sending", function (file) { + // Show the total progress bar when upload starts + const progressBars = dropzone.querySelectorAll('.progress-bar'); + progressBars.forEach(progressBar => { + progressBar.style.opacity = "1"; + }); + }); + + // Hide the total progress bar when nothing"s uploading anymore + myDropzone.on("complete", function (progress) { + const progressBars = dropzone.querySelectorAll('.dz-complete'); + + setTimeout(function () { + progressBars.forEach(progressBar => { + progressBar.querySelector('.progress-bar').style.opacity = "0"; + progressBar.querySelector('.progress').style.opacity = "0"; + }); + }, 300); + }); + } + + + // Public methods + return { + init: function () { + handlePreviewText(); + initForm(); + } + }; +}(); + +// On document ready +KTUtil.onDOMContentLoaded(function () { + KTAppInboxReply.init(); +}); diff --git a/resources/_keenthemes/src/js/custom/apps/invoices/create.js b/resources/_keenthemes/src/js/custom/apps/invoices/create.js new file mode 100644 index 0000000..1c61b67 --- /dev/null +++ b/resources/_keenthemes/src/js/custom/apps/invoices/create.js @@ -0,0 +1,111 @@ +"use strict"; + +// Class definition +var KTAppInvoicesCreate = function () { + var form; + + // Private functions + var updateTotal = function() { + var items = [].slice.call(form.querySelectorAll('[data-kt-element="items"] [data-kt-element="item"]')); + var grandTotal = 0; + + var format = wNumb({ + //prefix: '$ ', + decimals: 2, + thousand: ',' + }); + + items.map(function (item) { + var quantity = item.querySelector('[data-kt-element="quantity"]'); + var price = item.querySelector('[data-kt-element="price"]'); + + var priceValue = format.from(price.value); + priceValue = (!priceValue || priceValue < 0) ? 0 : priceValue; + + var quantityValue = parseInt(quantity.value); + quantityValue = (!quantityValue || quantityValue < 0) ? 1 : quantityValue; + + price.value = format.to(priceValue); + quantity.value = quantityValue; + + item.querySelector('[data-kt-element="total"]').innerText = format.to(priceValue * quantityValue); + + grandTotal += priceValue * quantityValue; + }); + + form.querySelector('[data-kt-element="sub-total"]').innerText = format.to(grandTotal); + form.querySelector('[data-kt-element="grand-total"]').innerText = format.to(grandTotal); + } + + var handleEmptyState = function() { + if (form.querySelectorAll('[data-kt-element="items"] [data-kt-element="item"]').length === 0) { + var item = form.querySelector('[data-kt-element="empty-template"] tr').cloneNode(true); + form.querySelector('[data-kt-element="items"] tbody').appendChild(item); + } else { + KTUtil.remove(form.querySelector('[data-kt-element="items"] [data-kt-element="empty"]')); + } + } + + var handeForm = function (element) { + // Add item + form.querySelector('[data-kt-element="items"] [data-kt-element="add-item"]').addEventListener('click', function(e) { + e.preventDefault(); + + var item = form.querySelector('[data-kt-element="item-template"] tr').cloneNode(true); + + form.querySelector('[data-kt-element="items"] tbody').appendChild(item); + + handleEmptyState(); + updateTotal(); + }); + + // Remove item + KTUtil.on(form, '[data-kt-element="items"] [data-kt-element="remove-item"]', 'click', function(e) { + e.preventDefault(); + + KTUtil.remove(this.closest('[data-kt-element="item"]')); + + handleEmptyState(); + updateTotal(); + }); + + // Handle price and quantity changes + KTUtil.on(form, '[data-kt-element="items"] [data-kt-element="quantity"], [data-kt-element="items"] [data-kt-element="price"]', 'change', function(e) { + e.preventDefault(); + + updateTotal(); + }); + } + + var initForm = function(element) { + // Due date. For more info, please visit the official plugin site: https://flatpickr.js.org/ + var invoiceDate = $(form.querySelector('[name="invoice_date"]')); + invoiceDate.flatpickr({ + enableTime: false, + dateFormat: "d, M Y", + }); + + // Due date. For more info, please visit the official plugin site: https://flatpickr.js.org/ + var dueDate = $(form.querySelector('[name="invoice_due_date"]')); + dueDate.flatpickr({ + enableTime: false, + dateFormat: "d, M Y", + }); + } + + // Public methods + return { + init: function(element) { + form = document.querySelector('#kt_invoice_form'); + + handeForm(); + initForm(); + updateTotal(); + } + }; +}(); + +// On document ready +KTUtil.onDOMContentLoaded(function () { + KTAppInvoicesCreate.init(); +}); diff --git a/resources/_keenthemes/src/js/custom/apps/projects/list/list.js b/resources/_keenthemes/src/js/custom/apps/projects/list/list.js new file mode 100644 index 0000000..7610a76 --- /dev/null +++ b/resources/_keenthemes/src/js/custom/apps/projects/list/list.js @@ -0,0 +1,79 @@ +"use strict"; + +// Class definition +var KTProjectList = function () { + var initChart = function () { + // init chart + var element = document.getElementById("kt_project_list_chart"); + + if (!element) { + return; + } + + var config = { + type: 'doughnut', + data: { + datasets: [{ + data: [30, 45, 25], + backgroundColor: ['#00A3FF', '#50CD89', '#E4E6EF'] + }], + labels: ['Active', 'Completed', 'Yet to start'] + }, + options: { + chart: { + fontFamily: 'inherit' + }, + borderWidth: 0, + cutout: '75%', + cutoutPercentage: 65, + responsive: true, + maintainAspectRatio: false, + title: { + display: false + }, + animation: { + animateScale: true, + animateRotate: true + }, + stroke: { + width: 0 + }, + tooltips: { + enabled: true, + intersect: false, + mode: 'nearest', + bodySpacing: 5, + yPadding: 10, + xPadding: 10, + caretPadding: 0, + displayColors: false, + backgroundColor: '#20D489', + titleFontColor: '#ffffff', + cornerRadius: 4, + footerSpacing: 0, + titleSpacing: 0 + }, + plugins: { + legend: { + display: false + } + } + } + }; + + var ctx = element.getContext('2d'); + var myDoughnut = new Chart(ctx, config); + } + + // Public methods + return { + init: function () { + initChart(); + } + } +}(); + +// On document ready +KTUtil.onDOMContentLoaded(function() { + KTProjectList.init(); +}); diff --git a/resources/_keenthemes/src/js/custom/apps/projects/project/project.js b/resources/_keenthemes/src/js/custom/apps/projects/project/project.js new file mode 100644 index 0000000..edd2ae6 --- /dev/null +++ b/resources/_keenthemes/src/js/custom/apps/projects/project/project.js @@ -0,0 +1,316 @@ +"use strict"; + +// Class definition +var KTProjectOverview = function () { + // Colors + var primary = KTUtil.getCssVariableValue('--bs-primary'); + var lightPrimary = KTUtil.getCssVariableValue('--bs-primary-light'); + var success = KTUtil.getCssVariableValue('--bs-success'); + var lightSuccess = KTUtil.getCssVariableValue('--bs-success-light'); + var gray200 = KTUtil.getCssVariableValue('--bs-gray-200'); + var gray500 = KTUtil.getCssVariableValue('--bs-gray-500'); + + // Private functions + var initChart = function () { + // init chart + var element = document.getElementById("project_overview_chart"); + + if (!element) { + return; + } + + var config = { + type: 'doughnut', + data: { + datasets: [{ + data: [30, 45, 25], + backgroundColor: ['#00A3FF', '#50CD89', '#E4E6EF'] + }], + labels: ['Active', 'Completed', 'Yet to start'] + }, + options: { + chart: { + fontFamily: 'inherit' + }, + cutoutPercentage: 75, + responsive: true, + maintainAspectRatio: false, + cutout: '75%', + title: { + display: false + }, + animation: { + animateScale: true, + animateRotate: true + }, + tooltips: { + enabled: true, + intersect: false, + mode: 'nearest', + bodySpacing: 5, + yPadding: 10, + xPadding: 10, + caretPadding: 0, + displayColors: false, + backgroundColor: '#20D489', + titleFontColor: '#ffffff', + cornerRadius: 4, + footerSpacing: 0, + titleSpacing: 0 + }, + plugins: { + legend: { + display: false + } + } + } + }; + + var ctx = element.getContext('2d'); + var myDoughnut = new Chart(ctx, config); + } + + var initGraph = function () { + var element = document.getElementById("kt_project_overview_graph"); + var height = parseInt(KTUtil.css(element, 'height')); + + if (!element) { + return; + } + + var options = { + series: [{ + name: 'Incomplete', + data: [70, 70, 80, 80, 75, 75, 75] + }, { + name: 'Complete', + data: [55, 55, 60, 60, 55, 55, 60] + }], + chart: { + type: 'area', + height: height, + toolbar: { + show: false + } + }, + plotOptions: { + + }, + legend: { + show: false + }, + dataLabels: { + enabled: false + }, + fill: { + type: 'solid', + opacity: 1 + }, + stroke: { + curve: 'smooth', + show: true, + width: 3, + colors: [primary, success] + }, + xaxis: { + categories: ['Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul', 'Aug'], + axisBorder: { + show: false, + }, + axisTicks: { + show: false + }, + labels: { + style: { + colors: gray500, + fontSize: '12px' + } + }, + crosshairs: { + position: 'front', + stroke: { + color: primary, + width: 1, + dashArray: 3 + } + }, + tooltip: { + enabled: true, + formatter: undefined, + offsetY: 0, + style: { + fontSize: '12px' + } + } + }, + yaxis: { + labels: { + style: { + colors: gray500, + fontSize: '12px', + } + } + }, + states: { + normal: { + filter: { + type: 'none', + value: 0 + } + }, + hover: { + filter: { + type: 'none', + value: 0 + } + }, + active: { + allowMultipleDataPointsSelection: false, + filter: { + type: 'none', + value: 0 + } + } + }, + tooltip: { + style: { + fontSize: '12px', + }, + y: { + formatter: function (val) { + return val + " tasks" + } + } + }, + colors: [lightPrimary, lightSuccess], + grid: { + borderColor: gray200, + strokeDashArray: 4, + yaxis: { + lines: { + show: true + } + } + }, + markers: { + //size: 5, + colors: [lightPrimary, lightSuccess], + strokeColor: [primary, success], + strokeWidth: 3 + } + }; + + var chart = new ApexCharts(element, options); + chart.render(); + } + + var initTable = function () { + var table = document.querySelector('#kt_profile_overview_table'); + + if (!table) { + return; + } + + // Set date data order + const tableRows = table.querySelectorAll('tbody tr'); + + tableRows.forEach(row => { + const dateRow = row.querySelectorAll('td'); + const realDate = moment(dateRow[1].innerHTML, "MMM D, YYYY").format(); + dateRow[1].setAttribute('data-order', realDate); + }); + + // Init datatable --- more info on datatables: https://datatables.net/manual/ + const datatable = $(table).DataTable({ + "info": false, + 'order': [] + }); + + // Filter dropdown elements + const filterOrders = document.getElementById('kt_filter_orders'); + const filterYear = document.getElementById('kt_filter_year'); + + // Filter by order status --- official docs reference: https://datatables.net/reference/api/search() + filterOrders.addEventListener('change', function (e) { + datatable.column(3).search(e.target.value).draw(); + }); + + // Filter by date --- official docs reference: https://momentjs.com/docs/ + var minDate; + var maxDate; + + filterYear.addEventListener('change', function (e) { + const value = e.target.value; + switch (value) { + case 'thisyear': { + minDate = moment().startOf('year').format(); + maxDate = moment().endOf('year').format(); + datatable.draw(); + break; + } + case 'thismonth': { + minDate = moment().startOf('month').format(); + maxDate = moment().endOf('month').format(); + datatable.draw(); + break; + } + case 'lastmonth': { + minDate = moment().subtract(1, 'months').startOf('month').format(); + maxDate = moment().subtract(1, 'months').endOf('month').format(); + datatable.draw(); + break; + } + case 'last90days': { + minDate = moment().subtract(30, 'days').format(); + maxDate = moment().format(); + datatable.draw(); + break; + } + default: { + minDate = moment().subtract(100, 'years').startOf('month').format(); + maxDate = moment().add(1, 'months').endOf('month').format(); + datatable.draw(); + break; + } + } + }); + + // Date range filter --- offical docs reference: https://datatables.net/examples/plug-ins/range_filtering.html + $.fn.dataTable.ext.search.push( + function (settings, data, dataIndex) { + var min = minDate; + var max = maxDate; + var date = parseFloat(moment(data[1]).format()) || 0; // use data for the age column + + if ((isNaN(min) && isNaN(max)) || + (isNaN(min) && date <= max) || + (min <= date && isNaN(max)) || + (min <= date && date <= max)) { + return true; + } + return false; + } + ); + + // Search --- official docs reference: https://datatables.net/reference/api/search() + var filterSearch = document.getElementById('kt_filter_search'); + filterSearch.addEventListener('keyup', function (e) { + datatable.search(e.target.value).draw(); + }); + } + + // Public methods + return { + init: function () { + initChart(); + initGraph(); + initTable(); + } + } +}(); + + +// On document ready +KTUtil.onDOMContentLoaded(function() { + KTProjectOverview.init(); +}); \ No newline at end of file diff --git a/resources/_keenthemes/src/js/custom/apps/projects/settings/settings.js b/resources/_keenthemes/src/js/custom/apps/projects/settings/settings.js new file mode 100644 index 0000000..0d80990 --- /dev/null +++ b/resources/_keenthemes/src/js/custom/apps/projects/settings/settings.js @@ -0,0 +1,104 @@ +"use strict"; + +// Class definition +var KTProjectSettings = function () { + + // Private functions + var handleForm = function () { + // Init Datepicker --- For more info, please check Flatpickr's official documentation: https://flatpickr.js.org/ + $("#kt_datepicker_1").flatpickr(); + + // Form validation + var validation; + var _form = document.getElementById('kt_project_settings_form'); + var submitButton = _form.querySelector('#kt_project_settings_submit'); + + // Init form validation rules. For more info check the FormValidation plugin's official documentation:https://formvalidation.io/ + validation = FormValidation.formValidation( + _form, + { + fields: { + name: { + validators: { + notEmpty: { + message: 'Project name is required' + } + } + }, + type: { + validators: { + notEmpty: { + message: 'Project type is required' + } + } + }, + description: { + validators: { + notEmpty: { + message: 'Project Description is required' + } + } + }, + date: { + validators: { + notEmpty: { + message: 'Due Date is required' + } + } + }, + }, + plugins: { + trigger: new FormValidation.plugins.Trigger(), + submitButton: new FormValidation.plugins.SubmitButton(), + //defaultSubmit: new FormValidation.plugins.DefaultSubmit(), // Uncomment this line to enable normal button submit after form validation + bootstrap: new FormValidation.plugins.Bootstrap5({ + rowSelector: '.fv-row' + }) + } + } + ); + + submitButton.addEventListener('click', function (e) { + e.preventDefault(); + + validation.validate().then(function (status) { + if (status == 'Valid') { + + swal.fire({ + text: "Thank you! You've updated your project settings", + icon: "success", + buttonsStyling: false, + confirmButtonText: "Ok, got it!", + customClass: { + confirmButton: "btn fw-bold btn-light-primary" + } + }); + + } else { + swal.fire({ + text: "Sorry, looks like there are some errors detected, please try again.", + icon: "error", + buttonsStyling: false, + confirmButtonText: "Ok, got it!", + customClass: { + confirmButton: "btn fw-bold btn-light-primary" + } + }); + } + }); + }); + } + + // Public methods + return { + init: function () { + handleForm(); + } + } +}(); + + +// On document ready +KTUtil.onDOMContentLoaded(function() { + KTProjectSettings.init(); +}); diff --git a/resources/_keenthemes/src/js/custom/apps/projects/targets/targets.js b/resources/_keenthemes/src/js/custom/apps/projects/targets/targets.js new file mode 100644 index 0000000..d652274 --- /dev/null +++ b/resources/_keenthemes/src/js/custom/apps/projects/targets/targets.js @@ -0,0 +1,38 @@ +"use strict"; + +// Class definition +var KTProjectTargets = function () { + + var initDatatable = function () { + const table = document.getElementById('kt_profile_overview_table'); + + // set date data order + const tableRows = table.querySelectorAll('tbody tr'); + tableRows.forEach(row => { + const dateRow = row.querySelectorAll('td'); + const realDate = moment(dateRow[1].innerHTML, "MMM D, YYYY").format(); + dateRow[1].setAttribute('data-order', realDate); + }); + + // init datatable --- more info on datatables: https://datatables.net/manual/ + const datatable = $(table).DataTable({ + "info": false, + 'order': [], + "paging": false, + }); + + } + + // Public methods + return { + init: function () { + initDatatable(); + } + } +}(); + + +// On document ready +KTUtil.onDOMContentLoaded(function() { + KTProjectTargets.init(); +}); diff --git a/resources/_keenthemes/src/js/custom/apps/projects/users/users.js b/resources/_keenthemes/src/js/custom/apps/projects/users/users.js new file mode 100644 index 0000000..c835907 --- /dev/null +++ b/resources/_keenthemes/src/js/custom/apps/projects/users/users.js @@ -0,0 +1,52 @@ +"use strict"; + +// Class definition +var KTProjectUsers = function () { + + var initTable = function () { + // Set date data order + const table = document.getElementById('kt_project_users_table'); + + if (!table) { + return; + } + + const tableRows = table.querySelectorAll('tbody tr'); + + tableRows.forEach(row => { + const dateRow = row.querySelectorAll('td'); + const realDate = moment(dateRow[1].innerHTML, "MMM D, YYYY").format(); + dateRow[1].setAttribute('data-order', realDate); + }); + + // Init datatable --- more info on datatables: https://datatables.net/manual/ + const datatable = $(table).DataTable({ + "info": false, + 'order': [], + "columnDefs": [{ + "targets": 4, + "orderable": false + }] + }); + + // Search --- official docs reference: https://datatables.net/reference/api/search() + var filterSearch = document.getElementById('kt_filter_search'); + if (filterSearch) { + filterSearch.addEventListener('keyup', function (e) { + datatable.search(e.target.value).draw(); + }); + } + } + + // Public methods + return { + init: function () { + initTable(); + } + } +}(); + +// On document ready +KTUtil.onDOMContentLoaded(function() { + KTProjectUsers.init(); +}); \ No newline at end of file diff --git a/resources/_keenthemes/src/js/custom/apps/subscriptions/add/advanced.js b/resources/_keenthemes/src/js/custom/apps/subscriptions/add/advanced.js new file mode 100644 index 0000000..bf2c886 --- /dev/null +++ b/resources/_keenthemes/src/js/custom/apps/subscriptions/add/advanced.js @@ -0,0 +1,126 @@ +"use strict"; + +var KTSubscriptionsAdvanced = function () { + // Shared variables + var table; + var datatable; + + var initCustomFieldsDatatable = function () { + // Define variables + const addButton = document.getElementById('kt_create_new_custom_fields_add'); + + // Duplicate input fields + const fieldName = table.querySelector('tbody tr td:first-child').innerHTML; + const fieldValue = table.querySelector('tbody tr td:nth-child(2)').innerHTML; + const deleteButton = table.querySelector('tbody tr td:last-child').innerHTML; + + // Init datatable --- more info on datatables: https://datatables.net/manual/ + datatable = $(table).DataTable({ + "info": false, + 'order': [], + 'ordering': false, + 'paging': false, + "lengthChange": false + }); + + // Define datatable row node + var rowNode; + + // Handle add button + addButton.addEventListener('click', function (e) { + e.preventDefault(); + + rowNode = datatable.row.add([ + fieldName, + fieldValue, + deleteButton + ]).draw().node(); + + // Add custom class to last column -- more info: https://datatables.net/forums/discussion/22341/row-add-cell-class + $(rowNode).find('td').eq(2).addClass('text-end'); + + // Re-calculate index + initCustomFieldRowIndex(); + }); + } + + // Handle row index count + var initCustomFieldRowIndex = function() { + const tableRows = table.querySelectorAll('tbody tr'); + + tableRows.forEach((tr, index) => { + // add index number to input names & id + const fieldNameInput = tr.querySelector('td:first-child input'); + const fieldValueInput = tr.querySelector('td:nth-child(2) input'); + const fieldNameLabel = fieldNameInput.getAttribute('id'); + const fieldValueLabel = fieldValueInput.getAttribute('id'); + + fieldNameInput.setAttribute('name', fieldNameLabel + '-' + index); + fieldValueInput.setAttribute('name', fieldValueLabel + '-' + index); + }); + } + + // Delete product + var deleteCustomField = function() { + KTUtil.on(table, '[data-kt-action="field_remove"]', 'click', function(e) { + e.preventDefault(); + + // Select parent row + const parent = e.target.closest('tr'); + + // SweetAlert2 pop up --- official docs reference: https://sweetalert2.github.io/ + Swal.fire({ + text: "Are you sure you want to delete this field ?", + icon: "warning", + showCancelButton: true, + buttonsStyling: false, + confirmButtonText: "Yes, delete!", + cancelButtonText: "No, cancel", + customClass: { + confirmButton: "btn fw-bold btn-danger", + cancelButton: "btn fw-bold btn-active-light-primary" + } + }).then(function (result) { + if (result.value) { + Swal.fire({ + text: "You have deleted it!.", + icon: "success", + buttonsStyling: false, + confirmButtonText: "Ok, got it!", + customClass: { + confirmButton: "btn fw-bold btn-primary", + } + }).then(function () { + // Remove current row + datatable.row($(parent)).remove().draw(); + }); + } else if (result.dismiss === 'cancel') { + Swal.fire({ + text: "It was not deleted.", + icon: "error", + buttonsStyling: false, + confirmButtonText: "Ok, got it!", + customClass: { + confirmButton: "btn fw-bold btn-primary", + } + }) + } + }); + }); + } + + return { + init: function () { + table = document.getElementById('kt_create_new_custom_fields'); + + initCustomFieldsDatatable(); + initCustomFieldRowIndex(); + deleteCustomField(); + } + } +}(); + +// On document ready +KTUtil.onDOMContentLoaded(function () { + KTSubscriptionsAdvanced.init(); +}); \ No newline at end of file diff --git a/resources/_keenthemes/src/js/custom/apps/subscriptions/add/customer-select.js b/resources/_keenthemes/src/js/custom/apps/subscriptions/add/customer-select.js new file mode 100644 index 0000000..3718907 --- /dev/null +++ b/resources/_keenthemes/src/js/custom/apps/subscriptions/add/customer-select.js @@ -0,0 +1,85 @@ +"use strict"; + +// Class definition +var KTModalCustomerSelect = function() { + // Private variables + var element; + var suggestionsElement; + var resultsElement; + var wrapperElement; + var emptyElement; + var searchObject; + + var modal; + + // Private functions + var processs = function(search) { + var timeout = setTimeout(function() { + var number = KTUtil.getRandomInt(1, 6); + + // Hide recently viewed + suggestionsElement.classList.add('d-none'); + + if (number === 3) { + // Hide results + resultsElement.classList.add('d-none'); + // Show empty message + emptyElement.classList.remove('d-none'); + } else { + // Show results + resultsElement.classList.remove('d-none'); + // Hide empty message + emptyElement.classList.add('d-none'); + } + + // Complete search + search.complete(); + }, 1500); + } + + var clear = function(search) { + // Show recently viewed + suggestionsElement.classList.remove('d-none'); + // Hide results + resultsElement.classList.add('d-none'); + // Hide empty message + emptyElement.classList.add('d-none'); + } + + // Public methods + return { + init: function() { + // Elements + element = document.querySelector('#kt_modal_customer_search_handler'); + modal = new bootstrap.Modal(document.querySelector('#kt_modal_customer_search')); + + if (!element) { + return; + } + + wrapperElement = element.querySelector('[data-kt-search-element="wrapper"]'); + suggestionsElement = element.querySelector('[data-kt-search-element="suggestions"]'); + resultsElement = element.querySelector('[data-kt-search-element="results"]'); + emptyElement = element.querySelector('[data-kt-search-element="empty"]'); + + // Initialize search handler + searchObject = new KTSearch(element); + + // Search handler + searchObject.on('kt.search.process', processs); + + // Clear handler + searchObject.on('kt.search.clear', clear); + + // Handle select + KTUtil.on(element, '[data-kt-search-element="customer"]', 'click', function() { + modal.hide(); + }); + } + }; +}(); + +// On document ready +KTUtil.onDOMContentLoaded(function () { + KTModalCustomerSelect.init(); +}); \ No newline at end of file diff --git a/resources/_keenthemes/src/js/custom/apps/subscriptions/add/products.js b/resources/_keenthemes/src/js/custom/apps/subscriptions/add/products.js new file mode 100644 index 0000000..2f33c38 --- /dev/null +++ b/resources/_keenthemes/src/js/custom/apps/subscriptions/add/products.js @@ -0,0 +1,157 @@ +"use strict"; + +var KTSubscriptionsProducts = function () { + // Shared variables + var table; + var datatable; + var modalEl; + var modal; + + var initDatatable = function() { + // Init datatable --- more info on datatables: https://datatables.net/manual/ + datatable = $(table).DataTable({ + "info": false, + 'order': [], + 'ordering': false, + 'paging': false, + "lengthChange": false + }); + } + + // Delete product + var deleteProduct = function() { + KTUtil.on(table, '[data-kt-action="product_remove"]', 'click', function(e) { + e.preventDefault(); + + // Select parent row + const parent = e.target.closest('tr'); + + // Get customer name + const productName = parent.querySelectorAll('td')[0].innerText; + + // SweetAlert2 pop up --- official docs reference: https://sweetalert2.github.io/ + Swal.fire({ + text: "Are you sure you want to delete " + productName + "?", + icon: "warning", + showCancelButton: true, + buttonsStyling: false, + confirmButtonText: "Yes, delete!", + cancelButtonText: "No, cancel", + customClass: { + confirmButton: "btn fw-bold btn-danger", + cancelButton: "btn fw-bold btn-active-light-primary" + } + }).then(function (result) { + if (result.value) { + Swal.fire({ + text: "You have deleted " + productName + "!.", + icon: "success", + buttonsStyling: false, + confirmButtonText: "Ok, got it!", + customClass: { + confirmButton: "btn fw-bold btn-primary", + } + }).then(function () { + // Remove current row + datatable.row($(parent)).remove().draw(); + }); + } else if (result.dismiss === 'cancel') { + Swal.fire({ + text: customerName + " was not deleted.", + icon: "error", + buttonsStyling: false, + confirmButtonText: "Ok, got it!", + customClass: { + confirmButton: "btn fw-bold btn-primary", + } + }); + } + }); + }); + } + + // Modal handlers + var addProduct = function() { + // Select modal buttons + const closeButton = modalEl.querySelector('#kt_modal_add_product_close'); + const cancelButton = modalEl.querySelector('#kt_modal_add_product_cancel'); + const submitButton = modalEl.querySelector('#kt_modal_add_product_submit'); + + // Cancel button action + cancelButton.addEventListener('click', function(e){ + e.preventDefault(); + + Swal.fire({ + text: "Are you sure you would like to cancel?", + icon: "warning", + showCancelButton: true, + buttonsStyling: false, + confirmButtonText: "Yes, cancel it!", + cancelButtonText: "No, return", + customClass: { + confirmButton: "btn btn-primary", + cancelButton: "btn btn-active-light" + } + }).then(function (result) { + if (result.value) { + modal.hide(); // Hide modal + } else if (result.dismiss === 'cancel') { + Swal.fire({ + text: "Your form has not been cancelled!.", + icon: "error", + buttonsStyling: false, + confirmButtonText: "Ok, got it!", + customClass: { + confirmButton: "btn btn-primary", + } + }); + } + }); + }); + + // Add customer button handler + submitButton.addEventListener('click', function (e) { + e.preventDefault(); + + // Check all radio buttons + var radio = modalEl.querySelector('input[type="radio"]:checked'); + + // Define datatable row node + var rowNode; + + if (radio && radio.checked === true) { + rowNode = datatable.row.add( [ + radio.getAttribute('data-kt-product-name'), + '1', + radio.getAttribute('data-kt-product-price') + ' / ' + radio.getAttribute('data-kt-product-frequency'), + table.querySelector('tbody tr td:last-child').innerHTML + ]).draw().node(); + + // Add custom class to last column -- more info: https://datatables.net/forums/discussion/22341/row-add-cell-class + $( rowNode ).find('td').eq(3).addClass('text-end'); + } + + modal.hide(); // Remove modal + }); + } + + return { + init: function () { + modalEl = document.getElementById('kt_modal_add_product'); + + // Select modal -- more info on Bootstrap modal: https://getbootstrap.com/docs/5.0/components/modal/ + modal = new bootstrap.Modal(modalEl); + + table = document.querySelector('#kt_subscription_products_table'); + + initDatatable(); + deleteProduct(); + addProduct(); + } + } +}(); + +// On document ready +KTUtil.onDOMContentLoaded(function () { + KTSubscriptionsProducts.init(); +}); diff --git a/resources/_keenthemes/src/js/custom/apps/subscriptions/list/export.js b/resources/_keenthemes/src/js/custom/apps/subscriptions/list/export.js new file mode 100644 index 0000000..9f5949f --- /dev/null +++ b/resources/_keenthemes/src/js/custom/apps/subscriptions/list/export.js @@ -0,0 +1,189 @@ +"use strict"; + +// Class definition +var KTSubscriptionsExport = function () { + var element; + var submitButton; + var cancelButton; + var closeButton; + var validator; + var form; + var modal; + + // Init form inputs + var handleForm = function () { + // Init form validation rules. For more info check the FormValidation plugin's official documentation:https://formvalidation.io/ + validator = FormValidation.formValidation( + form, + { + fields: { + 'date': { + validators: { + notEmpty: { + message: 'Date range is required' + } + } + }, + }, + plugins: { + trigger: new FormValidation.plugins.Trigger(), + bootstrap: new FormValidation.plugins.Bootstrap5({ + rowSelector: '.fv-row', + eleInvalidClass: '', + eleValidClass: '' + }) + } + } + ); + + // Action buttons + submitButton.addEventListener('click', function (e) { + e.preventDefault(); + + // Validate form before submit + if (validator) { + validator.validate().then(function (status) { + console.log('validated!'); + + if (status == 'Valid') { + submitButton.setAttribute('data-kt-indicator', 'on'); + + // Disable submit button whilst loading + submitButton.disabled = true; + + setTimeout(function () { + submitButton.removeAttribute('data-kt-indicator'); + + Swal.fire({ + text: "Customer list has been successfully exported!", + icon: "success", + buttonsStyling: false, + confirmButtonText: "Ok, got it!", + customClass: { + confirmButton: "btn btn-primary" + } + }).then(function (result) { + if (result.isConfirmed) { + modal.hide(); + + // Enable submit button after loading + submitButton.disabled = false; + } + }); + + //form.submit(); // Submit form + }, 2000); + } else { + Swal.fire({ + text: "Sorry, looks like there are some errors detected, please try again.", + icon: "error", + buttonsStyling: false, + confirmButtonText: "Ok, got it!", + customClass: { + confirmButton: "btn btn-primary" + } + }); + } + }); + } + }); + + cancelButton.addEventListener('click', function (e) { + e.preventDefault(); + + Swal.fire({ + text: "Are you sure you would like to cancel?", + icon: "warning", + showCancelButton: true, + buttonsStyling: false, + confirmButtonText: "Yes, cancel it!", + cancelButtonText: "No, return", + customClass: { + confirmButton: "btn btn-primary", + cancelButton: "btn btn-active-light" + } + }).then(function (result) { + if (result.value) { + form.reset(); // Reset form + modal.hide(); // Hide modal + } else if (result.dismiss === 'cancel') { + Swal.fire({ + text: "Your form has not been cancelled!.", + icon: "error", + buttonsStyling: false, + confirmButtonText: "Ok, got it!", + customClass: { + confirmButton: "btn btn-primary", + } + }); + } + }); + }); + + closeButton.addEventListener('click', function (e) { + e.preventDefault(); + + Swal.fire({ + text: "Are you sure you would like to cancel?", + icon: "warning", + showCancelButton: true, + buttonsStyling: false, + confirmButtonText: "Yes, cancel it!", + cancelButtonText: "No, return", + customClass: { + confirmButton: "btn btn-primary", + cancelButton: "btn btn-active-light" + } + }).then(function (result) { + if (result.value) { + form.reset(); // Reset form + modal.hide(); // Hide modal + } else if (result.dismiss === 'cancel') { + Swal.fire({ + text: "Your form has not been cancelled!.", + icon: "error", + buttonsStyling: false, + confirmButtonText: "Ok, got it!", + customClass: { + confirmButton: "btn btn-primary", + } + }); + } + }); + }); + } + + var initForm = function () { + const datepicker = form.querySelector("[name=date]"); + + // Handle datepicker range -- For more info on flatpickr plugin, please visit: https://flatpickr.js.org/ + $(datepicker).flatpickr({ + altInput: true, + altFormat: "F j, Y", + dateFormat: "Y-m-d", + mode: "range" + }); + } + + return { + // Public functions + init: function () { + // Elements + element = document.querySelector('#kt_subscriptions_export_modal'); + modal = new bootstrap.Modal(element); + + form = document.querySelector('#kt_subscriptions_export_form'); + submitButton = form.querySelector('#kt_subscriptions_export_submit'); + cancelButton = form.querySelector('#kt_subscriptions_export_cancel'); + closeButton = element.querySelector('#kt_subscriptions_export_close'); + + handleForm(); + initForm(); + } + }; +}(); + +// On document ready +KTUtil.onDOMContentLoaded(function () { + KTSubscriptionsExport.init(); +}); \ No newline at end of file diff --git a/resources/_keenthemes/src/js/custom/apps/subscriptions/list/list.js b/resources/_keenthemes/src/js/custom/apps/subscriptions/list/list.js new file mode 100644 index 0000000..2dee53d --- /dev/null +++ b/resources/_keenthemes/src/js/custom/apps/subscriptions/list/list.js @@ -0,0 +1,277 @@ +"use strict"; + +var KTSubscriptionsList = function () { + // Define shared variables + var table; + var datatable; + var toolbarBase; + var toolbarSelected; + var selectedCount; + + // Private functions + var initDatatable = function () { + // Set date data order + const tableRows = table.querySelectorAll('tbody tr'); + + tableRows.forEach(row => { + const dateRow = row.querySelectorAll('td'); + const realDate = moment(dateRow[5].innerHTML, "DD MMM YYYY, LT").format(); // select date from 4th column in table + dateRow[5].setAttribute('data-order', realDate); + }); + + // Init datatable --- more info on datatables: https://datatables.net/manual/ + datatable = $(table).DataTable({ + "info": false, + 'order': [], + "pageLength": 10, + "lengthChange": false, + 'columnDefs': [ + { orderable: false, targets: 0 }, // Disable ordering on column 0 (checkbox) + { orderable: false, targets: 6 }, // Disable ordering on column 6 (actions) + ] + }); + + // Re-init functions on every table re-draw -- more info: https://datatables.net/reference/event/draw + datatable.on('draw', function () { + initToggleToolbar(); + handleRowDeletion(); + toggleToolbars(); + }); + } + + // Search Datatable --- official docs reference: https://datatables.net/reference/api/search() + var handleSearch = function () { + const filterSearch = document.querySelector('[data-kt-subscription-table-filter="search"]'); + filterSearch.addEventListener('keyup', function (e) { + datatable.search(e.target.value).draw(); + }); + } + + // Filter Datatable + var handleFilter = function () { + // Select filter options + const filterForm = document.querySelector('[data-kt-subscription-table-filter="form"]'); + const filterButton = filterForm.querySelector('[data-kt-subscription-table-filter="filter"]'); + const resetButton = filterForm.querySelector('[data-kt-subscription-table-filter="reset"]'); + const selectOptions = filterForm.querySelectorAll('select'); + + // Filter datatable on submit + filterButton.addEventListener('click', function () { + var filterString = ''; + + // Get filter values + selectOptions.forEach((item, index) => { + if (item.value && item.value !== '') { + if (index !== 0) { + filterString += ' '; + } + + // Build filter value options + filterString += item.value; + } + }); + + // Filter datatable --- official docs reference: https://datatables.net/reference/api/search() + datatable.search(filterString).draw(); + }); + + // Reset datatable + resetButton.addEventListener('click', function () { + // Reset filter form + selectOptions.forEach((item, index) => { + // Reset Select2 dropdown --- official docs reference: https://select2.org/programmatic-control/add-select-clear-items + $(item).val(null).trigger('change'); + }); + + // Filter datatable --- official docs reference: https://datatables.net/reference/api/search() + datatable.search('').draw(); + }); + } + + // Delete subscirption + var handleRowDeletion = function () { + // Select all delete buttons + const deleteButtons = table.querySelectorAll('[data-kt-subscriptions-table-filter="delete_row"]'); + + deleteButtons.forEach(d => { + // Delete button on click + d.addEventListener('click', function (e) { + e.preventDefault(); + + // Select parent row + const parent = e.target.closest('tr'); + + // Get customer name + const customerName = parent.querySelectorAll('td')[1].innerText; + + // SweetAlert2 pop up --- official docs reference: https://sweetalert2.github.io/ + Swal.fire({ + text: "Are you sure you want to delete " + customerName + "?", + icon: "warning", + showCancelButton: true, + buttonsStyling: false, + confirmButtonText: "Yes, delete!", + cancelButtonText: "No, cancel", + customClass: { + confirmButton: "btn fw-bold btn-danger", + cancelButton: "btn fw-bold btn-active-light-primary" + } + }).then(function (result) { + if (result.value) { + Swal.fire({ + text: "You have deleted " + customerName + "!.", + icon: "success", + buttonsStyling: false, + confirmButtonText: "Ok, got it!", + customClass: { + confirmButton: "btn fw-bold btn-primary", + } + }).then(function () { + // Remove current row + datatable.row($(parent)).remove().draw(); + }).then(function () { + // Detect checked checkboxes + toggleToolbars(); + }); + } else if (result.dismiss === 'cancel') { + Swal.fire({ + text: customerName + " was not deleted.", + icon: "error", + buttonsStyling: false, + confirmButtonText: "Ok, got it!", + customClass: { + confirmButton: "btn fw-bold btn-primary", + } + }); + } + }); + }) + }); + } + + // Init toggle toolbar + var initToggleToolbar = () => { + // Toggle selected action toolbar + // Select all checkboxes + const checkboxes = table.querySelectorAll('[type="checkbox"]'); + + // Select elements + toolbarBase = document.querySelector('[data-kt-subscription-table-toolbar="base"]'); + toolbarSelected = document.querySelector('[data-kt-subscription-table-toolbar="selected"]'); + selectedCount = document.querySelector('[data-kt-subscription-table-select="selected_count"]'); + const deleteSelected = document.querySelector('[data-kt-subscription-table-select="delete_selected"]'); + + // Toggle delete selected toolbar + checkboxes.forEach(c => { + // Checkbox on click event + c.addEventListener('click', function () { + setTimeout(function () { + toggleToolbars(); + }, 50); + }); + }); + + // Deleted selected rows + deleteSelected.addEventListener('click', function () { + // SweetAlert2 pop up --- official docs reference: https://sweetalert2.github.io/ + Swal.fire({ + text: "Are you sure you want to delete selected customers?", + icon: "warning", + showCancelButton: true, + buttonsStyling: false, + confirmButtonText: "Yes, delete!", + cancelButtonText: "No, cancel", + customClass: { + confirmButton: "btn fw-bold btn-danger", + cancelButton: "btn fw-bold btn-active-light-primary" + } + }).then(function (result) { + if (result.value) { + Swal.fire({ + text: "You have deleted all selected customers!.", + icon: "success", + buttonsStyling: false, + confirmButtonText: "Ok, got it!", + customClass: { + confirmButton: "btn fw-bold btn-primary", + } + }).then(function () { + // Remove all selected customers + checkboxes.forEach(c => { + if (c.checked) { + datatable.row($(c.closest('tbody tr'))).remove().draw(); + } + }); + + // Remove header checked box + const headerCheckbox = table.querySelectorAll('[type="checkbox"]')[0]; + headerCheckbox.checked = false; + }).then(function () { + toggleToolbars(); // Detect checked checkboxes + initToggleToolbar(); // Re-init toolbar to recalculate checkboxes + }); + } else if (result.dismiss === 'cancel') { + Swal.fire({ + text: "Selected customers was not deleted.", + icon: "error", + buttonsStyling: false, + confirmButtonText: "Ok, got it!", + customClass: { + confirmButton: "btn fw-bold btn-primary", + } + }); + } + }); + }); + } + + // Toggle toolbars + const toggleToolbars = () => { + // Select refreshed checkbox DOM elements + const allCheckboxes = table.querySelectorAll('tbody [type="checkbox"]'); + + // Detect checkboxes state & count + let checkedState = false; + let count = 0; + + // Count checked boxes + allCheckboxes.forEach(c => { + if (c.checked) { + checkedState = true; + count++; + } + }); + + // Toggle toolbars + if (checkedState) { + selectedCount.innerHTML = count; + toolbarBase.classList.add('d-none'); + toolbarSelected.classList.remove('d-none'); + } else { + toolbarBase.classList.remove('d-none'); + toolbarSelected.classList.add('d-none'); + } + } + + return { + // Public functions + init: function () { + table = document.getElementById('kt_subscriptions_table'); + + if (!table) { + return; + } + + initDatatable(); + initToggleToolbar(); + handleSearch(); + handleRowDeletion(); + handleFilter(); + } + } +}(); + +// On document ready +KTUtil.onDOMContentLoaded(function () { + KTSubscriptionsList.init(); +}); \ No newline at end of file diff --git a/resources/_keenthemes/src/js/custom/apps/support-center/general.js b/resources/_keenthemes/src/js/custom/apps/support-center/general.js new file mode 100644 index 0000000..437d2ac --- /dev/null +++ b/resources/_keenthemes/src/js/custom/apps/support-center/general.js @@ -0,0 +1,74 @@ +"use strict"; + +var KTSupportCenterGeneral = function() { + var menuWrapper; + + var initInstance = function(element) { + var elements = element; + + if ( typeof elements === 'undefined' ) { + elements = document.querySelectorAll('.highlight'); + } + + if ( elements && elements.length > 0 ) { + for ( var i = 0; i < elements.length; ++i ) { + var highlight = elements[i]; + var copy = highlight.querySelector('.highlight-copy'); + + if ( copy ) { + var clipboard = new ClipboardJS(copy, { + target: function(trigger) { + var highlight = trigger.closest('.highlight'); + var el = highlight.querySelector('.tab-pane.active'); + + if ( el == null ) { + el = highlight.querySelector('.highlight-code'); + } + + return el; + } + }); + + clipboard.on('success', function(e) { + var caption = e.trigger.innerHTML; + + e.trigger.innerHTML = 'copied'; + e.clearSelection(); + + setTimeout(function() { + e.trigger.innerHTML = caption; + }, 2000); + }); + } + } + } + } + + var handleMenuScroll = function() { + var menuActiveItem = menuWrapper.querySelector(".menu-link.active"); + + if ( !menuActiveItem ) { + return; + } + + if ( KTUtil.isVisibleInContainer(menuActiveItem, menuWrapper) === true) { + return; + } + + menuWrapper.scroll({ + top: KTUtil.getRelativeTopPosition(menuActiveItem, menuWrapper), + behavior: 'smooth' + }); + } + + return { + init: function() { + initInstance(); + } + }; +}(); + +// On document ready +KTUtil.onDOMContentLoaded(function() { + KTSupportCenterGeneral.init(); +}); \ No newline at end of file diff --git a/resources/_keenthemes/src/js/custom/apps/support-center/tickets/create.js b/resources/_keenthemes/src/js/custom/apps/support-center/tickets/create.js new file mode 100644 index 0000000..a11a649 --- /dev/null +++ b/resources/_keenthemes/src/js/custom/apps/support-center/tickets/create.js @@ -0,0 +1,219 @@ +"use strict"; + +// Class definition +var KTModalNewTicket = function () { + var submitButton; + var cancelButton; + var validator; + var form; + var modal; + var modalEl; + + // Init form inputs + var initForm = function() { + // Ticket attachments + // For more info about Dropzone plugin visit: https://www.dropzonejs.com/#usage + var myDropzone = new Dropzone("#kt_modal_create_ticket_attachments", { + url: "https://keenthemes.com/scripts/void.php", // Set the url for your upload script location + paramName: "file", // The name that will be used to transfer the file + maxFiles: 10, + maxFilesize: 10, // MB + addRemoveLinks: true, + accept: function(file, done) { + if (file.name == "justinbieber.jpg") { + done("Naha, you don't."); + } else { + done(); + } + } + }); + + // Due date. For more info, please visit the official plugin site: https://flatpickr.js.org/ + var dueDate = $(form.querySelector('[name="due_date"]')); + dueDate.flatpickr({ + enableTime: true, + dateFormat: "d, M Y, H:i", + }); + + // Ticket user. For more info, plase visit the official plugin site: https://select2.org/ + $(form.querySelector('[name="user"]')).on('change', function() { + // Revalidate the field when an option is chosen + validator.revalidateField('user'); + }); + + // Ticket status. For more info, plase visit the official plugin site: https://select2.org/ + $(form.querySelector('[name="status"]')).on('change', function() { + // Revalidate the field when an option is chosen + validator.revalidateField('status'); + }); + } + + // Handle form validation and submittion + var handleForm = function() { + // Stepper custom navigation + + // Init form validation rules. For more info check the FormValidation plugin's official documentation:https://formvalidation.io/ + validator = FormValidation.formValidation( + form, + { + fields: { + subject: { + validators: { + notEmpty: { + message: 'Ticket subject is required' + } + } + }, + user: { + validators: { + notEmpty: { + message: 'Ticket user is required' + } + } + }, + due_date: { + validators: { + notEmpty: { + message: 'Ticket due date is required' + } + } + }, + description: { + validators: { + notEmpty: { + message: 'Target description is required' + } + } + }, + 'notifications[]': { + validators: { + notEmpty: { + message: 'Please select at least one notifications method' + } + } + }, + }, + plugins: { + trigger: new FormValidation.plugins.Trigger(), + bootstrap: new FormValidation.plugins.Bootstrap5({ + rowSelector: '.fv-row', + eleInvalidClass: '', + eleValidClass: '' + }) + } + } + ); + + // Action buttons + submitButton.addEventListener('click', function (e) { + e.preventDefault(); + + // Validate form before submit + if (validator) { + validator.validate().then(function (status) { + console.log('validated!'); + + if (status == 'Valid') { + submitButton.setAttribute('data-kt-indicator', 'on'); + + // Disable button to avoid multiple click + submitButton.disabled = true; + + setTimeout(function() { + submitButton.removeAttribute('data-kt-indicator'); + + // Enable button + submitButton.disabled = false; + + // Show success message. For more info check the plugin's official documentation: https://sweetalert2.github.io/ + Swal.fire({ + text: "Form has been successfully submitted!", + icon: "success", + buttonsStyling: false, + confirmButtonText: "Ok, got it!", + customClass: { + confirmButton: "btn btn-primary" + } + }).then(function (result) { + if (result.isConfirmed) { + modal.hide(); + } + }); + + //form.submit(); // Submit form + }, 2000); + } else { + // Show error message. + Swal.fire({ + text: "Sorry, looks like there are some errors detected, please try again.", + icon: "error", + buttonsStyling: false, + confirmButtonText: "Ok, got it!", + customClass: { + confirmButton: "btn btn-primary" + } + }); + } + }); + } + }); + + cancelButton.addEventListener('click', function (e) { + e.preventDefault(); + + Swal.fire({ + text: "Are you sure you would like to cancel?", + icon: "warning", + showCancelButton: true, + buttonsStyling: false, + confirmButtonText: "Yes, cancel it!", + cancelButtonText: "No, return", + customClass: { + confirmButton: "btn btn-primary", + cancelButton: "btn btn-active-light" + } + }).then(function (result) { + if (result.value) { + form.reset(); // Reset form + modal.hide(); // Hide modal + } else if (result.dismiss === 'cancel') { + Swal.fire({ + text: "Your form has not been cancelled!.", + icon: "error", + buttonsStyling: false, + confirmButtonText: "Ok, got it!", + customClass: { + confirmButton: "btn btn-primary", + } + }); + } + }); + }); + } + + return { + // Public functions + init: function () { + // Elements + modalEl = document.querySelector('#kt_modal_new_ticket'); + + if (!modalEl) { + return; + } + + modal = new bootstrap.Modal(modalEl); + + form = document.querySelector('#kt_modal_new_ticket_form'); + submitButton = document.getElementById('kt_modal_new_ticket_submit'); + cancelButton = document.getElementById('kt_modal_new_ticket_cancel'); + + initForm(); + handleForm(); + } + }; +}(); + +// On document ready +KTUtil.onDOMContentLoaded(function () { + KTModalNewTicket.init(); +}); \ No newline at end of file diff --git a/resources/_keenthemes/src/js/custom/apps/user-management/permissions/add-permission.js b/resources/_keenthemes/src/js/custom/apps/user-management/permissions/add-permission.js new file mode 100644 index 0000000..f9a1368 --- /dev/null +++ b/resources/_keenthemes/src/js/custom/apps/user-management/permissions/add-permission.js @@ -0,0 +1,166 @@ +"use strict"; + +// Class definition +var KTUsersAddPermission = function () { + // Shared variables + const element = document.getElementById('kt_modal_add_permission'); + const form = element.querySelector('#kt_modal_add_permission_form'); + const modal = new bootstrap.Modal(element); + + // Init add schedule modal + var initAddPermission = () => { + + // Init form validation rules. For more info check the FormValidation plugin's official documentation:https://formvalidation.io/ + var validator = FormValidation.formValidation( + form, + { + fields: { + 'permission_name': { + validators: { + notEmpty: { + message: 'Permission name is required' + } + } + }, + }, + + plugins: { + trigger: new FormValidation.plugins.Trigger(), + bootstrap: new FormValidation.plugins.Bootstrap5({ + rowSelector: '.fv-row', + eleInvalidClass: '', + eleValidClass: '' + }) + } + } + ); + + // Close button handler + const closeButton = element.querySelector('[data-kt-permissions-modal-action="close"]'); + closeButton.addEventListener('click', e => { + e.preventDefault(); + + Swal.fire({ + text: "Are you sure you would like to close?", + icon: "warning", + showCancelButton: true, + buttonsStyling: false, + confirmButtonText: "Yes, close it!", + cancelButtonText: "No, return", + customClass: { + confirmButton: "btn btn-primary", + cancelButton: "btn btn-active-light" + } + }).then(function (result) { + if (result.value) { + modal.hide(); // Hide modal + } + }); + }); + + // Cancel button handler + const cancelButton = element.querySelector('[data-kt-permissions-modal-action="cancel"]'); + cancelButton.addEventListener('click', e => { + e.preventDefault(); + + Swal.fire({ + text: "Are you sure you would like to cancel?", + icon: "warning", + showCancelButton: true, + buttonsStyling: false, + confirmButtonText: "Yes, cancel it!", + cancelButtonText: "No, return", + customClass: { + confirmButton: "btn btn-primary", + cancelButton: "btn btn-active-light" + } + }).then(function (result) { + if (result.value) { + form.reset(); // Reset form + modal.hide(); // Hide modal + } else if (result.dismiss === 'cancel') { + Swal.fire({ + text: "Your form has not been cancelled!.", + icon: "error", + buttonsStyling: false, + confirmButtonText: "Ok, got it!", + customClass: { + confirmButton: "btn btn-primary", + } + }); + } + }); + }); + + // Submit button handler + const submitButton = element.querySelector('[data-kt-permissions-modal-action="submit"]'); + submitButton.addEventListener('click', function (e) { + // Prevent default button action + e.preventDefault(); + + // Validate form before submit + if (validator) { + validator.validate().then(function (status) { + console.log('validated!'); + + if (status == 'Valid') { + // Show loading indication + submitButton.setAttribute('data-kt-indicator', 'on'); + + // Disable button to avoid multiple click + submitButton.disabled = true; + + // Simulate form submission. For more info check the plugin's official documentation: https://sweetalert2.github.io/ + setTimeout(function () { + // Remove loading indication + submitButton.removeAttribute('data-kt-indicator'); + + // Enable button + submitButton.disabled = false; + + // Show popup confirmation + Swal.fire({ + text: "Form has been successfully submitted!", + icon: "success", + buttonsStyling: false, + confirmButtonText: "Ok, got it!", + customClass: { + confirmButton: "btn btn-primary" + } + }).then(function (result) { + if (result.isConfirmed) { + modal.hide(); + } + }); + + //form.submit(); // Submit form + }, 2000); + } else { + // Show popup warning. For more info check the plugin's official documentation: https://sweetalert2.github.io/ + Swal.fire({ + text: "Sorry, looks like there are some errors detected, please try again.", + icon: "error", + buttonsStyling: false, + confirmButtonText: "Ok, got it!", + customClass: { + confirmButton: "btn btn-primary" + } + }); + } + }); + } + }); + } + + return { + // Public functions + init: function () { + initAddPermission(); + } + }; +}(); + +// On document ready +KTUtil.onDOMContentLoaded(function () { + KTUsersAddPermission.init(); +}); \ No newline at end of file diff --git a/resources/_keenthemes/src/js/custom/apps/user-management/permissions/list.js b/resources/_keenthemes/src/js/custom/apps/user-management/permissions/list.js new file mode 100644 index 0000000..02b3fef --- /dev/null +++ b/resources/_keenthemes/src/js/custom/apps/user-management/permissions/list.js @@ -0,0 +1,117 @@ +"use strict"; + +// Class definition +var KTUsersPermissionsList = function () { + // Shared variables + var datatable; + var table; + + // Init add schedule modal + var initPermissionsList = () => { + // Set date data order + const tableRows = table.querySelectorAll('tbody tr'); + + tableRows.forEach(row => { + const dateRow = row.querySelectorAll('td'); + const realDate = moment(dateRow[2].innerHTML, "DD MMM YYYY, LT").format(); // select date from 2nd column in table + dateRow[2].setAttribute('data-order', realDate); + }); + + // Init datatable --- more info on datatables: https://datatables.net/manual/ + datatable = $(table).DataTable({ + "info": false, + 'order': [], + 'columnDefs': [ + { orderable: false, targets: 1 }, // Disable ordering on column 1 (assigned) + { orderable: false, targets: 3 }, // Disable ordering on column 3 (actions) + ] + }); + } + + // Search Datatable --- official docs reference: https://datatables.net/reference/api/search() + var handleSearchDatatable = () => { + const filterSearch = document.querySelector('[data-kt-permissions-table-filter="search"]'); + filterSearch.addEventListener('keyup', function (e) { + datatable.search(e.target.value).draw(); + }); + } + + // Delete user + var handleDeleteRows = () => { + // Select all delete buttons + const deleteButtons = table.querySelectorAll('[data-kt-permissions-table-filter="delete_row"]'); + + deleteButtons.forEach(d => { + // Delete button on click + d.addEventListener('click', function (e) { + e.preventDefault(); + + // Select parent row + const parent = e.target.closest('tr'); + + // Get permission name + const permissionName = parent.querySelectorAll('td')[0].innerText; + + // SweetAlert2 pop up --- official docs reference: https://sweetalert2.github.io/ + Swal.fire({ + text: "Are you sure you want to delete " + permissionName + "?", + icon: "warning", + showCancelButton: true, + buttonsStyling: false, + confirmButtonText: "Yes, delete!", + cancelButtonText: "No, cancel", + customClass: { + confirmButton: "btn fw-bold btn-danger", + cancelButton: "btn fw-bold btn-active-light-primary" + } + }).then(function (result) { + if (result.value) { + Swal.fire({ + text: "You have deleted " + permissionName + "!.", + icon: "success", + buttonsStyling: false, + confirmButtonText: "Ok, got it!", + customClass: { + confirmButton: "btn fw-bold btn-primary", + } + }).then(function () { + // Remove current row + datatable.row($(parent)).remove().draw(); + }); + } else if (result.dismiss === 'cancel') { + Swal.fire({ + text: customerName + " was not deleted.", + icon: "error", + buttonsStyling: false, + confirmButtonText: "Ok, got it!", + customClass: { + confirmButton: "btn fw-bold btn-primary", + } + }); + } + }); + }) + }); + } + + + return { + // Public functions + init: function () { + table = document.querySelector('#kt_permissions_table'); + + if (!table) { + return; + } + + initPermissionsList(); + handleSearchDatatable(); + handleDeleteRows(); + } + }; +}(); + +// On document ready +KTUtil.onDOMContentLoaded(function () { + KTUsersPermissionsList.init(); +}); \ No newline at end of file diff --git a/resources/_keenthemes/src/js/custom/apps/user-management/permissions/update-permission.js b/resources/_keenthemes/src/js/custom/apps/user-management/permissions/update-permission.js new file mode 100644 index 0000000..c589428 --- /dev/null +++ b/resources/_keenthemes/src/js/custom/apps/user-management/permissions/update-permission.js @@ -0,0 +1,166 @@ +"use strict"; + +// Class definition +var KTUsersUpdatePermission = function () { + // Shared variables + const element = document.getElementById('kt_modal_update_permission'); + const form = element.querySelector('#kt_modal_update_permission_form'); + const modal = new bootstrap.Modal(element); + + // Init add schedule modal + var initUpdatePermission = () => { + + // Init form validation rules. For more info check the FormValidation plugin's official documentation:https://formvalidation.io/ + var validator = FormValidation.formValidation( + form, + { + fields: { + 'permission_name': { + validators: { + notEmpty: { + message: 'Permission name is required' + } + } + }, + }, + + plugins: { + trigger: new FormValidation.plugins.Trigger(), + bootstrap: new FormValidation.plugins.Bootstrap5({ + rowSelector: '.fv-row', + eleInvalidClass: '', + eleValidClass: '' + }) + } + } + ); + + // Close button handler + const closeButton = element.querySelector('[data-kt-permissions-modal-action="close"]'); + closeButton.addEventListener('click', e => { + e.preventDefault(); + + Swal.fire({ + text: "Are you sure you would like to close?", + icon: "warning", + showCancelButton: true, + buttonsStyling: false, + confirmButtonText: "Yes, close it!", + cancelButtonText: "No, return", + customClass: { + confirmButton: "btn btn-primary", + cancelButton: "btn btn-active-light" + } + }).then(function (result) { + if (result.value) { + modal.hide(); // Hide modal + } + }); + }); + + // Cancel button handler + const cancelButton = element.querySelector('[data-kt-permissions-modal-action="cancel"]'); + cancelButton.addEventListener('click', e => { + e.preventDefault(); + + Swal.fire({ + text: "Are you sure you would like to cancel?", + icon: "warning", + showCancelButton: true, + buttonsStyling: false, + confirmButtonText: "Yes, cancel it!", + cancelButtonText: "No, return", + customClass: { + confirmButton: "btn btn-primary", + cancelButton: "btn btn-active-light" + } + }).then(function (result) { + if (result.value) { + form.reset(); // Reset form + modal.hide(); // Hide modal + } else if (result.dismiss === 'cancel') { + Swal.fire({ + text: "Your form has not been cancelled!.", + icon: "error", + buttonsStyling: false, + confirmButtonText: "Ok, got it!", + customClass: { + confirmButton: "btn btn-primary", + } + }); + } + }); + }); + + // Submit button handler + const submitButton = element.querySelector('[data-kt-permissions-modal-action="submit"]'); + submitButton.addEventListener('click', function (e) { + // Prevent default button action + e.preventDefault(); + + // Validate form before submit + if (validator) { + validator.validate().then(function (status) { + console.log('validated!'); + + if (status == 'Valid') { + // Show loading indication + submitButton.setAttribute('data-kt-indicator', 'on'); + + // Disable button to avoid multiple click + submitButton.disabled = true; + + // Simulate form submission. For more info check the plugin's official documentation: https://sweetalert2.github.io/ + setTimeout(function () { + // Remove loading indication + submitButton.removeAttribute('data-kt-indicator'); + + // Enable button + submitButton.disabled = false; + + // Show popup confirmation + Swal.fire({ + text: "Form has been successfully submitted!", + icon: "success", + buttonsStyling: false, + confirmButtonText: "Ok, got it!", + customClass: { + confirmButton: "btn btn-primary" + } + }).then(function (result) { + if (result.isConfirmed) { + modal.hide(); + } + }); + + //form.submit(); // Submit form + }, 2000); + } else { + // Show popup warning. For more info check the plugin's official documentation: https://sweetalert2.github.io/ + Swal.fire({ + text: "Sorry, looks like there are some errors detected, please try again.", + icon: "error", + buttonsStyling: false, + confirmButtonText: "Ok, got it!", + customClass: { + confirmButton: "btn btn-primary" + } + }); + } + }); + } + }); + } + + return { + // Public functions + init: function () { + initUpdatePermission(); + } + }; +}(); + +// On document ready +KTUtil.onDOMContentLoaded(function () { + KTUsersUpdatePermission.init(); +}); \ No newline at end of file diff --git a/resources/_keenthemes/src/js/custom/apps/user-management/roles/list/add.js b/resources/_keenthemes/src/js/custom/apps/user-management/roles/list/add.js new file mode 100644 index 0000000..7b86b8f --- /dev/null +++ b/resources/_keenthemes/src/js/custom/apps/user-management/roles/list/add.js @@ -0,0 +1,185 @@ +"use strict"; + +// Class definition +var KTUsersAddRole = function () { + // Shared variables + const element = document.getElementById('kt_modal_add_role'); + const form = element.querySelector('#kt_modal_add_role_form'); + const modal = new bootstrap.Modal(element); + + // Init add schedule modal + var initAddRole = () => { + + // Init form validation rules. For more info check the FormValidation plugin's official documentation:https://formvalidation.io/ + var validator = FormValidation.formValidation( + form, + { + fields: { + 'role_name': { + validators: { + notEmpty: { + message: 'Role name is required' + } + } + }, + }, + + plugins: { + trigger: new FormValidation.plugins.Trigger(), + bootstrap: new FormValidation.plugins.Bootstrap5({ + rowSelector: '.fv-row', + eleInvalidClass: '', + eleValidClass: '' + }) + } + } + ); + + // Close button handler + const closeButton = element.querySelector('[data-kt-roles-modal-action="close"]'); + closeButton.addEventListener('click', e => { + e.preventDefault(); + + Swal.fire({ + text: "Are you sure you would like to close?", + icon: "warning", + showCancelButton: true, + buttonsStyling: false, + confirmButtonText: "Yes, close it!", + cancelButtonText: "No, return", + customClass: { + confirmButton: "btn btn-primary", + cancelButton: "btn btn-active-light" + } + }).then(function (result) { + if (result.value) { + modal.hide(); // Hide modal + } + }); + }); + + // Cancel button handler + const cancelButton = element.querySelector('[data-kt-roles-modal-action="cancel"]'); + cancelButton.addEventListener('click', e => { + e.preventDefault(); + + Swal.fire({ + text: "Are you sure you would like to cancel?", + icon: "warning", + showCancelButton: true, + buttonsStyling: false, + confirmButtonText: "Yes, cancel it!", + cancelButtonText: "No, return", + customClass: { + confirmButton: "btn btn-primary", + cancelButton: "btn btn-active-light" + } + }).then(function (result) { + if (result.value) { + form.reset(); // Reset form + modal.hide(); // Hide modal + } else if (result.dismiss === 'cancel') { + Swal.fire({ + text: "Your form has not been cancelled!.", + icon: "error", + buttonsStyling: false, + confirmButtonText: "Ok, got it!", + customClass: { + confirmButton: "btn btn-primary", + } + }); + } + }); + }); + + // Submit button handler + const submitButton = element.querySelector('[data-kt-roles-modal-action="submit"]'); + submitButton.addEventListener('click', function (e) { + // Prevent default button action + e.preventDefault(); + + // Validate form before submit + if (validator) { + validator.validate().then(function (status) { + console.log('validated!'); + + if (status == 'Valid') { + // Show loading indication + submitButton.setAttribute('data-kt-indicator', 'on'); + + // Disable button to avoid multiple click + submitButton.disabled = true; + + // Simulate form submission. For more info check the plugin's official documentation: https://sweetalert2.github.io/ + setTimeout(function () { + // Remove loading indication + submitButton.removeAttribute('data-kt-indicator'); + + // Enable button + submitButton.disabled = false; + + // Show popup confirmation + Swal.fire({ + text: "Form has been successfully submitted!", + icon: "success", + buttonsStyling: false, + confirmButtonText: "Ok, got it!", + customClass: { + confirmButton: "btn btn-primary" + } + }).then(function (result) { + if (result.isConfirmed) { + modal.hide(); + } + }); + + //form.submit(); // Submit form + }, 2000); + } else { + // Show popup warning. For more info check the plugin's official documentation: https://sweetalert2.github.io/ + Swal.fire({ + text: "Sorry, looks like there are some errors detected, please try again.", + icon: "error", + buttonsStyling: false, + confirmButtonText: "Ok, got it!", + customClass: { + confirmButton: "btn btn-primary" + } + }); + } + }); + } + }); + + + } + + // Select all handler + const handleSelectAll = () =>{ + // Define variables + const selectAll = form.querySelector('#kt_roles_select_all'); + const allCheckboxes = form.querySelectorAll('[type="checkbox"]'); + + // Handle check state + selectAll.addEventListener('change', e => { + + // Apply check state to all checkboxes + allCheckboxes.forEach(c => { + c.checked = e.target.checked; + }); + }); + } + + return { + // Public functions + init: function () { + initAddRole(); + handleSelectAll(); + } + }; +}(); + +// On document ready +KTUtil.onDOMContentLoaded(function () { + KTUsersAddRole.init(); +}); \ No newline at end of file diff --git a/resources/_keenthemes/src/js/custom/apps/user-management/roles/list/update-role.js b/resources/_keenthemes/src/js/custom/apps/user-management/roles/list/update-role.js new file mode 100644 index 0000000..6b00118 --- /dev/null +++ b/resources/_keenthemes/src/js/custom/apps/user-management/roles/list/update-role.js @@ -0,0 +1,183 @@ +"use strict"; + +// Class definition +var KTUsersUpdatePermissions = function () { + // Shared variables + const element = document.getElementById('kt_modal_update_role'); + const form = element.querySelector('#kt_modal_update_role_form'); + const modal = new bootstrap.Modal(element); + + // Init add schedule modal + var initUpdatePermissions = () => { + + // Init form validation rules. For more info check the FormValidation plugin's official documentation:https://formvalidation.io/ + var validator = FormValidation.formValidation( + form, + { + fields: { + 'role_name': { + validators: { + notEmpty: { + message: 'Role name is required' + } + } + }, + }, + + plugins: { + trigger: new FormValidation.plugins.Trigger(), + bootstrap: new FormValidation.plugins.Bootstrap5({ + rowSelector: '.fv-row', + eleInvalidClass: '', + eleValidClass: '' + }) + } + } + ); + + // Close button handler + const closeButton = element.querySelector('[data-kt-roles-modal-action="close"]'); + closeButton.addEventListener('click', e => { + e.preventDefault(); + + Swal.fire({ + text: "Are you sure you would like to close?", + icon: "warning", + showCancelButton: true, + buttonsStyling: false, + confirmButtonText: "Yes, close it!", + cancelButtonText: "No, return", + customClass: { + confirmButton: "btn btn-primary", + cancelButton: "btn btn-active-light" + } + }).then(function (result) { + if (result.value) { + modal.hide(); // Hide modal + } + }); + }); + + // Cancel button handler + const cancelButton = element.querySelector('[data-kt-roles-modal-action="cancel"]'); + cancelButton.addEventListener('click', e => { + e.preventDefault(); + + Swal.fire({ + text: "Are you sure you would like to cancel?", + icon: "warning", + showCancelButton: true, + buttonsStyling: false, + confirmButtonText: "Yes, cancel it!", + cancelButtonText: "No, return", + customClass: { + confirmButton: "btn btn-primary", + cancelButton: "btn btn-active-light" + } + }).then(function (result) { + if (result.value) { + form.reset(); // Reset form + modal.hide(); // Hide modal + } else if (result.dismiss === 'cancel') { + Swal.fire({ + text: "Your form has not been cancelled!.", + icon: "error", + buttonsStyling: false, + confirmButtonText: "Ok, got it!", + customClass: { + confirmButton: "btn btn-primary", + } + }); + } + }); + }); + + // Submit button handler + const submitButton = element.querySelector('[data-kt-roles-modal-action="submit"]'); + submitButton.addEventListener('click', function (e) { + // Prevent default button action + e.preventDefault(); + + // Validate form before submit + if (validator) { + validator.validate().then(function (status) { + console.log('validated!'); + + if (status == 'Valid') { + // Show loading indication + submitButton.setAttribute('data-kt-indicator', 'on'); + + // Disable button to avoid multiple click + submitButton.disabled = true; + + // Simulate form submission. For more info check the plugin's official documentation: https://sweetalert2.github.io/ + setTimeout(function () { + // Remove loading indication + submitButton.removeAttribute('data-kt-indicator'); + + // Enable button + submitButton.disabled = false; + + // Show popup confirmation + Swal.fire({ + text: "Form has been successfully submitted!", + icon: "success", + buttonsStyling: false, + confirmButtonText: "Ok, got it!", + customClass: { + confirmButton: "btn btn-primary" + } + }).then(function (result) { + if (result.isConfirmed) { + modal.hide(); + } + }); + + //form.submit(); // Submit form + }, 2000); + } else { + // Show popup warning. For more info check the plugin's official documentation: https://sweetalert2.github.io/ + Swal.fire({ + text: "Sorry, looks like there are some errors detected, please try again.", + icon: "error", + buttonsStyling: false, + confirmButtonText: "Ok, got it!", + customClass: { + confirmButton: "btn btn-primary" + } + }); + } + }); + } + }); + } + + // Select all handler + const handleSelectAll = () => { + // Define variables + const selectAll = form.querySelector('#kt_roles_select_all'); + const allCheckboxes = form.querySelectorAll('[type="checkbox"]'); + + // Handle check state + selectAll.addEventListener('change', e => { + + // Apply check state to all checkboxes + allCheckboxes.forEach(c => { + c.checked = e.target.checked; + }); + }); + } + + return { + // Public functions + init: function () { + initUpdatePermissions(); + handleSelectAll(); + } + }; +}(); + +// On document ready +KTUtil.onDOMContentLoaded(function () { + KTUsersUpdatePermissions.init(); +}); \ No newline at end of file diff --git a/resources/_keenthemes/src/js/custom/apps/user-management/roles/view/update-role.js b/resources/_keenthemes/src/js/custom/apps/user-management/roles/view/update-role.js new file mode 100644 index 0000000..6b00118 --- /dev/null +++ b/resources/_keenthemes/src/js/custom/apps/user-management/roles/view/update-role.js @@ -0,0 +1,183 @@ +"use strict"; + +// Class definition +var KTUsersUpdatePermissions = function () { + // Shared variables + const element = document.getElementById('kt_modal_update_role'); + const form = element.querySelector('#kt_modal_update_role_form'); + const modal = new bootstrap.Modal(element); + + // Init add schedule modal + var initUpdatePermissions = () => { + + // Init form validation rules. For more info check the FormValidation plugin's official documentation:https://formvalidation.io/ + var validator = FormValidation.formValidation( + form, + { + fields: { + 'role_name': { + validators: { + notEmpty: { + message: 'Role name is required' + } + } + }, + }, + + plugins: { + trigger: new FormValidation.plugins.Trigger(), + bootstrap: new FormValidation.plugins.Bootstrap5({ + rowSelector: '.fv-row', + eleInvalidClass: '', + eleValidClass: '' + }) + } + } + ); + + // Close button handler + const closeButton = element.querySelector('[data-kt-roles-modal-action="close"]'); + closeButton.addEventListener('click', e => { + e.preventDefault(); + + Swal.fire({ + text: "Are you sure you would like to close?", + icon: "warning", + showCancelButton: true, + buttonsStyling: false, + confirmButtonText: "Yes, close it!", + cancelButtonText: "No, return", + customClass: { + confirmButton: "btn btn-primary", + cancelButton: "btn btn-active-light" + } + }).then(function (result) { + if (result.value) { + modal.hide(); // Hide modal + } + }); + }); + + // Cancel button handler + const cancelButton = element.querySelector('[data-kt-roles-modal-action="cancel"]'); + cancelButton.addEventListener('click', e => { + e.preventDefault(); + + Swal.fire({ + text: "Are you sure you would like to cancel?", + icon: "warning", + showCancelButton: true, + buttonsStyling: false, + confirmButtonText: "Yes, cancel it!", + cancelButtonText: "No, return", + customClass: { + confirmButton: "btn btn-primary", + cancelButton: "btn btn-active-light" + } + }).then(function (result) { + if (result.value) { + form.reset(); // Reset form + modal.hide(); // Hide modal + } else if (result.dismiss === 'cancel') { + Swal.fire({ + text: "Your form has not been cancelled!.", + icon: "error", + buttonsStyling: false, + confirmButtonText: "Ok, got it!", + customClass: { + confirmButton: "btn btn-primary", + } + }); + } + }); + }); + + // Submit button handler + const submitButton = element.querySelector('[data-kt-roles-modal-action="submit"]'); + submitButton.addEventListener('click', function (e) { + // Prevent default button action + e.preventDefault(); + + // Validate form before submit + if (validator) { + validator.validate().then(function (status) { + console.log('validated!'); + + if (status == 'Valid') { + // Show loading indication + submitButton.setAttribute('data-kt-indicator', 'on'); + + // Disable button to avoid multiple click + submitButton.disabled = true; + + // Simulate form submission. For more info check the plugin's official documentation: https://sweetalert2.github.io/ + setTimeout(function () { + // Remove loading indication + submitButton.removeAttribute('data-kt-indicator'); + + // Enable button + submitButton.disabled = false; + + // Show popup confirmation + Swal.fire({ + text: "Form has been successfully submitted!", + icon: "success", + buttonsStyling: false, + confirmButtonText: "Ok, got it!", + customClass: { + confirmButton: "btn btn-primary" + } + }).then(function (result) { + if (result.isConfirmed) { + modal.hide(); + } + }); + + //form.submit(); // Submit form + }, 2000); + } else { + // Show popup warning. For more info check the plugin's official documentation: https://sweetalert2.github.io/ + Swal.fire({ + text: "Sorry, looks like there are some errors detected, please try again.", + icon: "error", + buttonsStyling: false, + confirmButtonText: "Ok, got it!", + customClass: { + confirmButton: "btn btn-primary" + } + }); + } + }); + } + }); + } + + // Select all handler + const handleSelectAll = () => { + // Define variables + const selectAll = form.querySelector('#kt_roles_select_all'); + const allCheckboxes = form.querySelectorAll('[type="checkbox"]'); + + // Handle check state + selectAll.addEventListener('change', e => { + + // Apply check state to all checkboxes + allCheckboxes.forEach(c => { + c.checked = e.target.checked; + }); + }); + } + + return { + // Public functions + init: function () { + initUpdatePermissions(); + handleSelectAll(); + } + }; +}(); + +// On document ready +KTUtil.onDOMContentLoaded(function () { + KTUsersUpdatePermissions.init(); +}); \ No newline at end of file diff --git a/resources/_keenthemes/src/js/custom/apps/user-management/roles/view/view.js b/resources/_keenthemes/src/js/custom/apps/user-management/roles/view/view.js new file mode 100644 index 0000000..732b982 --- /dev/null +++ b/resources/_keenthemes/src/js/custom/apps/user-management/roles/view/view.js @@ -0,0 +1,225 @@ +"use strict"; + +// Class definition +var KTUsersViewRole = function () { + // Shared variables + var datatable; + var table; + + // Init add schedule modal + var initViewRole = () => { + // Set date data order + const tableRows = table.querySelectorAll('tbody tr'); + + tableRows.forEach(row => { + const dateRow = row.querySelectorAll('td'); + const realDate = moment(dateRow[3].innerHTML, "DD MMM YYYY, LT").format(); // select date from 5th column in table + dateRow[3].setAttribute('data-order', realDate); + }); + + // Init datatable --- more info on datatables: https://datatables.net/manual/ + datatable = $(table).DataTable({ + "info": false, + 'order': [], + "pageLength": 5, + "lengthChange": false, + 'columnDefs': [ + { orderable: false, targets: 0 }, // Disable ordering on column 0 (checkbox) + { orderable: false, targets: 4 }, // Disable ordering on column 4 (actions) + ] + }); + } + + // Search Datatable --- official docs reference: https://datatables.net/reference/api/search() + var handleSearchDatatable = () => { + const filterSearch = document.querySelector('[data-kt-roles-table-filter="search"]'); + filterSearch.addEventListener('keyup', function (e) { + datatable.search(e.target.value).draw(); + }); + } + + // Delete user + var handleDeleteRows = () => { + // Select all delete buttons + const deleteButtons = table.querySelectorAll('[data-kt-roles-table-filter="delete_row"]'); + + deleteButtons.forEach(d => { + // Delete button on click + d.addEventListener('click', function (e) { + e.preventDefault(); + + // Select parent row + const parent = e.target.closest('tr'); + + // Get customer name + const userName = parent.querySelectorAll('td')[1].innerText; + + // SweetAlert2 pop up --- official docs reference: https://sweetalert2.github.io/ + Swal.fire({ + text: "Are you sure you want to delete " + userName + "?", + icon: "warning", + showCancelButton: true, + buttonsStyling: false, + confirmButtonText: "Yes, delete!", + cancelButtonText: "No, cancel", + customClass: { + confirmButton: "btn fw-bold btn-danger", + cancelButton: "btn fw-bold btn-active-light-primary" + } + }).then(function (result) { + if (result.value) { + Swal.fire({ + text: "You have deleted " + userName + "!.", + icon: "success", + buttonsStyling: false, + confirmButtonText: "Ok, got it!", + customClass: { + confirmButton: "btn fw-bold btn-primary", + } + }).then(function () { + // Remove current row + datatable.row($(parent)).remove().draw(); + }); + } else if (result.dismiss === 'cancel') { + Swal.fire({ + text: customerName + " was not deleted.", + icon: "error", + buttonsStyling: false, + confirmButtonText: "Ok, got it!", + customClass: { + confirmButton: "btn fw-bold btn-primary", + } + }); + } + }); + }) + }); + } + + // Init toggle toolbar + var initToggleToolbar = () => { + // Toggle selected action toolbar + // Select all checkboxes + const checkboxes = table.querySelectorAll('[type="checkbox"]'); + + // Select elements + const deleteSelected = document.querySelector('[data-kt-view-roles-table-select="delete_selected"]'); + + // Toggle delete selected toolbar + checkboxes.forEach(c => { + // Checkbox on click event + c.addEventListener('click', function () { + setTimeout(function () { + toggleToolbars(); + }, 50); + }); + }); + + // Deleted selected rows + deleteSelected.addEventListener('click', function () { + // SweetAlert2 pop up --- official docs reference: https://sweetalert2.github.io/ + Swal.fire({ + text: "Are you sure you want to delete selected customers?", + icon: "warning", + showCancelButton: true, + buttonsStyling: false, + confirmButtonText: "Yes, delete!", + cancelButtonText: "No, cancel", + customClass: { + confirmButton: "btn fw-bold btn-danger", + cancelButton: "btn fw-bold btn-active-light-primary" + } + }).then(function (result) { + if (result.value) { + Swal.fire({ + text: "You have deleted all selected customers!.", + icon: "success", + buttonsStyling: false, + confirmButtonText: "Ok, got it!", + customClass: { + confirmButton: "btn fw-bold btn-primary", + } + }).then(function () { + // Remove all selected customers + checkboxes.forEach(c => { + if (c.checked) { + datatable.row($(c.closest('tbody tr'))).remove().draw(); + } + }); + + // Remove header checked box + const headerCheckbox = table.querySelectorAll('[type="checkbox"]')[0]; + headerCheckbox.checked = false; + }).then(function(){ + toggleToolbars(); // Detect checked checkboxes + initToggleToolbar(); // Re-init toolbar to recalculate checkboxes + }); + } else if (result.dismiss === 'cancel') { + Swal.fire({ + text: "Selected customers was not deleted.", + icon: "error", + buttonsStyling: false, + confirmButtonText: "Ok, got it!", + customClass: { + confirmButton: "btn fw-bold btn-primary", + } + }); + } + }); + }); + } + + // Toggle toolbars + const toggleToolbars = () => { + // Define variables + const toolbarBase = document.querySelector('[data-kt-view-roles-table-toolbar="base"]'); + const toolbarSelected = document.querySelector('[data-kt-view-roles-table-toolbar="selected"]'); + const selectedCount = document.querySelector('[data-kt-view-roles-table-select="selected_count"]'); + + // Select refreshed checkbox DOM elements + const allCheckboxes = table.querySelectorAll('tbody [type="checkbox"]'); + + // Detect checkboxes state & count + let checkedState = false; + let count = 0; + + // Count checked boxes + allCheckboxes.forEach(c => { + if (c.checked) { + checkedState = true; + count++; + } + }); + + // Toggle toolbars + if (checkedState) { + selectedCount.innerHTML = count; + toolbarBase.classList.add('d-none'); + toolbarSelected.classList.remove('d-none'); + } else { + toolbarBase.classList.remove('d-none'); + toolbarSelected.classList.add('d-none'); + } + } + + return { + // Public functions + init: function () { + table = document.querySelector('#kt_roles_view_table'); + + if (!table) { + return; + } + + initViewRole(); + handleSearchDatatable(); + handleDeleteRows(); + initToggleToolbar(); + } + }; +}(); + +// On document ready +KTUtil.onDOMContentLoaded(function () { + KTUsersViewRole.init(); +}); \ No newline at end of file diff --git a/resources/_keenthemes/src/js/custom/apps/user-management/users/list/add.js b/resources/_keenthemes/src/js/custom/apps/user-management/users/list/add.js new file mode 100644 index 0000000..1b75a8c --- /dev/null +++ b/resources/_keenthemes/src/js/custom/apps/user-management/users/list/add.js @@ -0,0 +1,183 @@ +"use strict"; + +// Class definition +var KTUsersAddUser = function () { + // Shared variables + const element = document.getElementById('kt_modal_add_user'); + const form = element.querySelector('#kt_modal_add_user_form'); + const modal = new bootstrap.Modal(element); + + // Init add schedule modal + var initAddUser = () => { + + // Init form validation rules. For more info check the FormValidation plugin's official documentation:https://formvalidation.io/ + var validator = FormValidation.formValidation( + form, + { + fields: { + 'user_name': { + validators: { + notEmpty: { + message: 'Full name is required' + } + } + }, + 'user_email': { + validators: { + notEmpty: { + message: 'Valid email address is required' + } + } + }, + }, + + plugins: { + trigger: new FormValidation.plugins.Trigger(), + bootstrap: new FormValidation.plugins.Bootstrap5({ + rowSelector: '.fv-row', + eleInvalidClass: '', + eleValidClass: '' + }) + } + } + ); + + // Submit button handler + const submitButton = element.querySelector('[data-kt-users-modal-action="submit"]'); + submitButton.addEventListener('click', e => { + e.preventDefault(); + + // Validate form before submit + if (validator) { + validator.validate().then(function (status) { + console.log('validated!'); + + if (status == 'Valid') { + // Show loading indication + submitButton.setAttribute('data-kt-indicator', 'on'); + + // Disable button to avoid multiple click + submitButton.disabled = true; + + // Simulate form submission. For more info check the plugin's official documentation: https://sweetalert2.github.io/ + setTimeout(function () { + // Remove loading indication + submitButton.removeAttribute('data-kt-indicator'); + + // Enable button + submitButton.disabled = false; + + // Show popup confirmation + Swal.fire({ + text: "Form has been successfully submitted!", + icon: "success", + buttonsStyling: false, + confirmButtonText: "Ok, got it!", + customClass: { + confirmButton: "btn btn-primary" + } + }).then(function (result) { + if (result.isConfirmed) { + modal.hide(); + } + }); + + //form.submit(); // Submit form + }, 2000); + } else { + // Show popup warning. For more info check the plugin's official documentation: https://sweetalert2.github.io/ + Swal.fire({ + text: "Sorry, looks like there are some errors detected, please try again.", + icon: "error", + buttonsStyling: false, + confirmButtonText: "Ok, got it!", + customClass: { + confirmButton: "btn btn-primary" + } + }); + } + }); + } + }); + + // Cancel button handler + const cancelButton = element.querySelector('[data-kt-users-modal-action="cancel"]'); + cancelButton.addEventListener('click', e => { + e.preventDefault(); + + Swal.fire({ + text: "Are you sure you would like to cancel?", + icon: "warning", + showCancelButton: true, + buttonsStyling: false, + confirmButtonText: "Yes, cancel it!", + cancelButtonText: "No, return", + customClass: { + confirmButton: "btn btn-primary", + cancelButton: "btn btn-active-light" + } + }).then(function (result) { + if (result.value) { + form.reset(); // Reset form + modal.hide(); + } else if (result.dismiss === 'cancel') { + Swal.fire({ + text: "Your form has not been cancelled!.", + icon: "error", + buttonsStyling: false, + confirmButtonText: "Ok, got it!", + customClass: { + confirmButton: "btn btn-primary", + } + }); + } + }); + }); + + // Close button handler + const closeButton = element.querySelector('[data-kt-users-modal-action="close"]'); + closeButton.addEventListener('click', e => { + e.preventDefault(); + + Swal.fire({ + text: "Are you sure you would like to cancel?", + icon: "warning", + showCancelButton: true, + buttonsStyling: false, + confirmButtonText: "Yes, cancel it!", + cancelButtonText: "No, return", + customClass: { + confirmButton: "btn btn-primary", + cancelButton: "btn btn-active-light" + } + }).then(function (result) { + if (result.value) { + form.reset(); // Reset form + modal.hide(); + } else if (result.dismiss === 'cancel') { + Swal.fire({ + text: "Your form has not been cancelled!.", + icon: "error", + buttonsStyling: false, + confirmButtonText: "Ok, got it!", + customClass: { + confirmButton: "btn btn-primary", + } + }); + } + }); + }); + } + + return { + // Public functions + init: function () { + initAddUser(); + } + }; +}(); + +// On document ready +KTUtil.onDOMContentLoaded(function () { + KTUsersAddUser.init(); +}); \ No newline at end of file diff --git a/resources/_keenthemes/src/js/custom/apps/user-management/users/list/export-users.js b/resources/_keenthemes/src/js/custom/apps/user-management/users/list/export-users.js new file mode 100644 index 0000000..0de7636 --- /dev/null +++ b/resources/_keenthemes/src/js/custom/apps/user-management/users/list/export-users.js @@ -0,0 +1,170 @@ +"use strict"; + +// Class definition +var KTModalExportUsers = function () { + // Shared variables + const element = document.getElementById('kt_modal_export_users'); + const form = element.querySelector('#kt_modal_export_users_form'); + const modal = new bootstrap.Modal(element); + + // Init form inputs + var initForm = function () { + + // Init form validation rules. For more info check the FormValidation plugin's official documentation:https://formvalidation.io/ + var validator = FormValidation.formValidation( + form, + { + fields: { + 'format': { + validators: { + notEmpty: { + message: 'File format is required' + } + } + }, + }, + plugins: { + trigger: new FormValidation.plugins.Trigger(), + bootstrap: new FormValidation.plugins.Bootstrap5({ + rowSelector: '.fv-row', + eleInvalidClass: '', + eleValidClass: '' + }) + } + } + ); + + // Submit button handler + const submitButton = element.querySelector('[data-kt-users-modal-action="submit"]'); + submitButton.addEventListener('click', function (e) { + e.preventDefault(); + + // Validate form before submit + if (validator) { + validator.validate().then(function (status) { + console.log('validated!'); + + if (status == 'Valid') { + submitButton.setAttribute('data-kt-indicator', 'on'); + + // Disable submit button whilst loading + submitButton.disabled = true; + + setTimeout(function () { + submitButton.removeAttribute('data-kt-indicator'); + + Swal.fire({ + text: "User list has been successfully exported!", + icon: "success", + buttonsStyling: false, + confirmButtonText: "Ok, got it!", + customClass: { + confirmButton: "btn btn-primary" + } + }).then(function (result) { + if (result.isConfirmed) { + modal.hide(); + + // Enable submit button after loading + submitButton.disabled = false; + } + }); + + //form.submit(); // Submit form + }, 2000); + } else { + Swal.fire({ + text: "Sorry, looks like there are some errors detected, please try again.", + icon: "error", + buttonsStyling: false, + confirmButtonText: "Ok, got it!", + customClass: { + confirmButton: "btn btn-primary" + } + }); + } + }); + } + }); + + // Cancel button handler + const cancelButton = element.querySelector('[data-kt-users-modal-action="cancel"]'); + cancelButton.addEventListener('click', function (e) { + e.preventDefault(); + + Swal.fire({ + text: "Are you sure you would like to cancel?", + icon: "warning", + showCancelButton: true, + buttonsStyling: false, + confirmButtonText: "Yes, cancel it!", + cancelButtonText: "No, return", + customClass: { + confirmButton: "btn btn-primary", + cancelButton: "btn btn-active-light" + } + }).then(function (result) { + if (result.value) { + form.reset(); // Reset form + modal.hide(); // Hide modal + } else if (result.dismiss === 'cancel') { + Swal.fire({ + text: "Your form has not been cancelled!.", + icon: "error", + buttonsStyling: false, + confirmButtonText: "Ok, got it!", + customClass: { + confirmButton: "btn btn-primary", + } + }); + } + }); + }); + + // Close button handler + const closeButton = element.querySelector('[data-kt-users-modal-action="close"]'); + closeButton.addEventListener('click', function (e) { + e.preventDefault(); + + Swal.fire({ + text: "Are you sure you would like to cancel?", + icon: "warning", + showCancelButton: true, + buttonsStyling: false, + confirmButtonText: "Yes, cancel it!", + cancelButtonText: "No, return", + customClass: { + confirmButton: "btn btn-primary", + cancelButton: "btn btn-active-light" + } + }).then(function (result) { + if (result.value) { + form.reset(); // Reset form + modal.hide(); // Hide modal + } else if (result.dismiss === 'cancel') { + Swal.fire({ + text: "Your form has not been cancelled!.", + icon: "error", + buttonsStyling: false, + confirmButtonText: "Ok, got it!", + customClass: { + confirmButton: "btn btn-primary", + } + }); + } + }); + }); + } + + return { + // Public functions + init: function () { + initForm(); + } + }; +}(); + +// On document ready +KTUtil.onDOMContentLoaded(function () { + KTModalExportUsers.init(); +}); \ No newline at end of file diff --git a/resources/_keenthemes/src/js/custom/apps/user-management/users/list/table.js b/resources/_keenthemes/src/js/custom/apps/user-management/users/list/table.js new file mode 100644 index 0000000..87e9ce3 --- /dev/null +++ b/resources/_keenthemes/src/js/custom/apps/user-management/users/list/table.js @@ -0,0 +1,315 @@ +"use strict"; + +var KTUsersList = function () { + // Define shared variables + var table = document.getElementById('kt_table_users'); + var datatable; + var toolbarBase; + var toolbarSelected; + var selectedCount; + + // Private functions + var initUserTable = function () { + // Set date data order + const tableRows = table.querySelectorAll('tbody tr'); + + tableRows.forEach(row => { + const dateRow = row.querySelectorAll('td'); + const lastLogin = dateRow[3].innerText.toLowerCase(); // Get last login time + let timeCount = 0; + let timeFormat = 'minutes'; + + // Determine date & time format -- add more formats when necessary + if (lastLogin.includes('yesterday')) { + timeCount = 1; + timeFormat = 'days'; + } else if (lastLogin.includes('mins')) { + timeCount = parseInt(lastLogin.replace(/\D/g, '')); + timeFormat = 'minutes'; + } else if (lastLogin.includes('hours')) { + timeCount = parseInt(lastLogin.replace(/\D/g, '')); + timeFormat = 'hours'; + } else if (lastLogin.includes('days')) { + timeCount = parseInt(lastLogin.replace(/\D/g, '')); + timeFormat = 'days'; + } else if (lastLogin.includes('weeks')) { + timeCount = parseInt(lastLogin.replace(/\D/g, '')); + timeFormat = 'weeks'; + } + + // Subtract date/time from today -- more info on moment datetime subtraction: https://momentjs.com/docs/#/durations/subtract/ + const realDate = moment().subtract(timeCount, timeFormat).format(); + + // Insert real date to last login attribute + dateRow[3].setAttribute('data-order', realDate); + + // Set real date for joined column + const joinedDate = moment(dateRow[5].innerHTML, "DD MMM YYYY, LT").format(); // select date from 5th column in table + dateRow[5].setAttribute('data-order', joinedDate); + }); + + // Init datatable --- more info on datatables: https://datatables.net/manual/ + datatable = $(table).DataTable({ + "info": false, + 'order': [], + "pageLength": 10, + "lengthChange": false, + 'columnDefs': [ + { orderable: false, targets: 0 }, // Disable ordering on column 0 (checkbox) + { orderable: false, targets: 6 }, // Disable ordering on column 6 (actions) + ] + }); + + // Re-init functions on every table re-draw -- more info: https://datatables.net/reference/event/draw + datatable.on('draw', function () { + initToggleToolbar(); + handleDeleteRows(); + toggleToolbars(); + }); + } + + // Search Datatable --- official docs reference: https://datatables.net/reference/api/search() + var handleSearchDatatable = () => { + const filterSearch = document.querySelector('[data-kt-user-table-filter="search"]'); + filterSearch.addEventListener('keyup', function (e) { + datatable.search(e.target.value).draw(); + }); + } + + // Filter Datatable + var handleFilterDatatable = () => { + // Select filter options + const filterForm = document.querySelector('[data-kt-user-table-filter="form"]'); + const filterButton = filterForm.querySelector('[data-kt-user-table-filter="filter"]'); + const selectOptions = filterForm.querySelectorAll('select'); + + // Filter datatable on submit + filterButton.addEventListener('click', function () { + var filterString = ''; + + // Get filter values + selectOptions.forEach((item, index) => { + if (item.value && item.value !== '') { + if (index !== 0) { + filterString += ' '; + } + + // Build filter value options + filterString += item.value; + } + }); + + // Filter datatable --- official docs reference: https://datatables.net/reference/api/search() + datatable.search(filterString).draw(); + }); + } + + // Reset Filter + var handleResetForm = () => { + // Select reset button + const resetButton = document.querySelector('[data-kt-user-table-filter="reset"]'); + + // Reset datatable + resetButton.addEventListener('click', function () { + // Select filter options + const filterForm = document.querySelector('[data-kt-user-table-filter="form"]'); + const selectOptions = filterForm.querySelectorAll('select'); + + // Reset select2 values -- more info: https://select2.org/programmatic-control/add-select-clear-items + selectOptions.forEach(select => { + $(select).val('').trigger('change'); + }); + + // Reset datatable --- official docs reference: https://datatables.net/reference/api/search() + datatable.search('').draw(); + }); + } + + + // Delete subscirption + var handleDeleteRows = () => { + // Select all delete buttons + const deleteButtons = table.querySelectorAll('[data-kt-users-table-filter="delete_row"]'); + + deleteButtons.forEach(d => { + // Delete button on click + d.addEventListener('click', function (e) { + e.preventDefault(); + + // Select parent row + const parent = e.target.closest('tr'); + + // Get user name + const userName = parent.querySelectorAll('td')[1].querySelectorAll('a')[1].innerText; + + // SweetAlert2 pop up --- official docs reference: https://sweetalert2.github.io/ + Swal.fire({ + text: "Are you sure you want to delete " + userName + "?", + icon: "warning", + showCancelButton: true, + buttonsStyling: false, + confirmButtonText: "Yes, delete!", + cancelButtonText: "No, cancel", + customClass: { + confirmButton: "btn fw-bold btn-danger", + cancelButton: "btn fw-bold btn-active-light-primary" + } + }).then(function (result) { + if (result.value) { + Swal.fire({ + text: "You have deleted " + userName + "!.", + icon: "success", + buttonsStyling: false, + confirmButtonText: "Ok, got it!", + customClass: { + confirmButton: "btn fw-bold btn-primary", + } + }).then(function () { + // Remove current row + datatable.row($(parent)).remove().draw(); + }).then(function () { + // Detect checked checkboxes + toggleToolbars(); + }); + } else if (result.dismiss === 'cancel') { + Swal.fire({ + text: customerName + " was not deleted.", + icon: "error", + buttonsStyling: false, + confirmButtonText: "Ok, got it!", + customClass: { + confirmButton: "btn fw-bold btn-primary", + } + }); + } + }); + }) + }); + } + + // Init toggle toolbar + var initToggleToolbar = () => { + // Toggle selected action toolbar + // Select all checkboxes + const checkboxes = table.querySelectorAll('[type="checkbox"]'); + + // Select elements + toolbarBase = document.querySelector('[data-kt-user-table-toolbar="base"]'); + toolbarSelected = document.querySelector('[data-kt-user-table-toolbar="selected"]'); + selectedCount = document.querySelector('[data-kt-user-table-select="selected_count"]'); + const deleteSelected = document.querySelector('[data-kt-user-table-select="delete_selected"]'); + + // Toggle delete selected toolbar + checkboxes.forEach(c => { + // Checkbox on click event + c.addEventListener('click', function () { + setTimeout(function () { + toggleToolbars(); + }, 50); + }); + }); + + // Deleted selected rows + deleteSelected.addEventListener('click', function () { + // SweetAlert2 pop up --- official docs reference: https://sweetalert2.github.io/ + Swal.fire({ + text: "Are you sure you want to delete selected customers?", + icon: "warning", + showCancelButton: true, + buttonsStyling: false, + confirmButtonText: "Yes, delete!", + cancelButtonText: "No, cancel", + customClass: { + confirmButton: "btn fw-bold btn-danger", + cancelButton: "btn fw-bold btn-active-light-primary" + } + }).then(function (result) { + if (result.value) { + Swal.fire({ + text: "You have deleted all selected customers!.", + icon: "success", + buttonsStyling: false, + confirmButtonText: "Ok, got it!", + customClass: { + confirmButton: "btn fw-bold btn-primary", + } + }).then(function () { + // Remove all selected customers + checkboxes.forEach(c => { + if (c.checked) { + datatable.row($(c.closest('tbody tr'))).remove().draw(); + } + }); + + // Remove header checked box + const headerCheckbox = table.querySelectorAll('[type="checkbox"]')[0]; + headerCheckbox.checked = false; + }).then(function () { + toggleToolbars(); // Detect checked checkboxes + initToggleToolbar(); // Re-init toolbar to recalculate checkboxes + }); + } else if (result.dismiss === 'cancel') { + Swal.fire({ + text: "Selected customers was not deleted.", + icon: "error", + buttonsStyling: false, + confirmButtonText: "Ok, got it!", + customClass: { + confirmButton: "btn fw-bold btn-primary", + } + }); + } + }); + }); + } + + // Toggle toolbars + const toggleToolbars = () => { + // Select refreshed checkbox DOM elements + const allCheckboxes = table.querySelectorAll('tbody [type="checkbox"]'); + + // Detect checkboxes state & count + let checkedState = false; + let count = 0; + + // Count checked boxes + allCheckboxes.forEach(c => { + if (c.checked) { + checkedState = true; + count++; + } + }); + + // Toggle toolbars + if (checkedState) { + selectedCount.innerHTML = count; + toolbarBase.classList.add('d-none'); + toolbarSelected.classList.remove('d-none'); + } else { + toolbarBase.classList.remove('d-none'); + toolbarSelected.classList.add('d-none'); + } + } + + return { + // Public functions + init: function () { + if (!table) { + return; + } + + initUserTable(); + initToggleToolbar(); + handleSearchDatatable(); + handleResetForm(); + handleDeleteRows(); + handleFilterDatatable(); + + } + } +}(); + +// On document ready +KTUtil.onDOMContentLoaded(function () { + KTUsersList.init(); +}); \ No newline at end of file diff --git a/resources/_keenthemes/src/js/custom/apps/user-management/users/view/add-auth-app.js b/resources/_keenthemes/src/js/custom/apps/user-management/users/view/add-auth-app.js new file mode 100644 index 0000000..ca71185 --- /dev/null +++ b/resources/_keenthemes/src/js/custom/apps/user-management/users/view/add-auth-app.js @@ -0,0 +1,81 @@ +"use strict"; + +// Class definition +var KTUsersAddAuthApp = function () { + // Shared variables + const element = document.getElementById('kt_modal_add_auth_app'); + const modal = new bootstrap.Modal(element); + + // Init add schedule modal + var initAddAuthApp = () => { + + // Close button handler + const closeButton = element.querySelector('[data-kt-users-modal-action="close"]'); + closeButton.addEventListener('click', e => { + e.preventDefault(); + + Swal.fire({ + text: "Are you sure you would like to close?", + icon: "warning", + showCancelButton: true, + buttonsStyling: false, + confirmButtonText: "Yes, close it!", + cancelButtonText: "No, return", + customClass: { + confirmButton: "btn btn-primary", + cancelButton: "btn btn-active-light" + } + }).then(function (result) { + if (result.value) { + modal.hide(); // Hide modal + } + }); + }); + + } + + // QR code to text code swapper + var initCodeSwap = () => { + const qrCode = element.querySelector('[ data-kt-add-auth-action="qr-code"]'); + const textCode = element.querySelector('[ data-kt-add-auth-action="text-code"]'); + const qrCodeButton = element.querySelector('[ data-kt-add-auth-action="qr-code-button"]'); + const textCodeButton = element.querySelector('[ data-kt-add-auth-action="text-code-button"]'); + const qrCodeLabel = element.querySelector('[ data-kt-add-auth-action="qr-code-label"]'); + const textCodeLabel = element.querySelector('[ data-kt-add-auth-action="text-code-label"]'); + + const toggleClass = () =>{ + qrCode.classList.toggle('d-none'); + qrCodeButton.classList.toggle('d-none'); + qrCodeLabel.classList.toggle('d-none'); + textCode.classList.toggle('d-none'); + textCodeButton.classList.toggle('d-none'); + textCodeLabel.classList.toggle('d-none'); + } + + // Swap to text code handler + textCodeButton.addEventListener('click', e =>{ + e.preventDefault(); + + toggleClass(); + }); + + qrCodeButton.addEventListener('click', e =>{ + e.preventDefault(); + + toggleClass(); + }); + } + + return { + // Public functions + init: function () { + initAddAuthApp(); + initCodeSwap(); + } + }; +}(); + +// On document ready +KTUtil.onDOMContentLoaded(function () { + KTUsersAddAuthApp.init(); +}); \ No newline at end of file diff --git a/resources/_keenthemes/src/js/custom/apps/user-management/users/view/add-one-time-password.js b/resources/_keenthemes/src/js/custom/apps/user-management/users/view/add-one-time-password.js new file mode 100644 index 0000000..af78deb --- /dev/null +++ b/resources/_keenthemes/src/js/custom/apps/user-management/users/view/add-one-time-password.js @@ -0,0 +1,173 @@ +"use strict"; + +// Class definition +var KTUsersAddOneTimePassword = function () { + // Shared variables + const element = document.getElementById('kt_modal_add_one_time_password'); + const form = element.querySelector('#kt_modal_add_one_time_password_form'); + const modal = new bootstrap.Modal(element); + + // Init one time password modal + var initAddOneTimePassword = () => { + + // Init form validation rules. For more info check the FormValidation plugin's official documentation:https://formvalidation.io/ + var validator = FormValidation.formValidation( + form, + { + fields: { + 'otp_mobile_number': { + validators: { + notEmpty: { + message: 'Valid mobile number is required' + } + } + }, + 'otp_confirm_password': { + validators: { + notEmpty: { + message: 'Password confirmation is required' + } + } + }, + }, + + plugins: { + trigger: new FormValidation.plugins.Trigger(), + bootstrap: new FormValidation.plugins.Bootstrap5({ + rowSelector: '.fv-row', + eleInvalidClass: '', + eleValidClass: '' + }) + } + } + ); + + // Close button handler + const closeButton = element.querySelector('[data-kt-users-modal-action="close"]'); + closeButton.addEventListener('click', e => { + e.preventDefault(); + + Swal.fire({ + text: "Are you sure you would like to close?", + icon: "warning", + showCancelButton: true, + buttonsStyling: false, + confirmButtonText: "Yes, close it!", + cancelButtonText: "No, return", + customClass: { + confirmButton: "btn btn-primary", + cancelButton: "btn btn-active-light" + } + }).then(function (result) { + if (result.value) { + modal.hide(); // Hide modal + } + }); + }); + + // Cancel button handler + const cancelButton = element.querySelector('[data-kt-users-modal-action="cancel"]'); + cancelButton.addEventListener('click', e => { + e.preventDefault(); + + Swal.fire({ + text: "Are you sure you would like to cancel?", + icon: "warning", + showCancelButton: true, + buttonsStyling: false, + confirmButtonText: "Yes, cancel it!", + cancelButtonText: "No, return", + customClass: { + confirmButton: "btn btn-primary", + cancelButton: "btn btn-active-light" + } + }).then(function (result) { + if (result.value) { + form.reset(); // Reset form + modal.hide(); // Hide modal + } else if (result.dismiss === 'cancel') { + Swal.fire({ + text: "Your form has not been cancelled!.", + icon: "error", + buttonsStyling: false, + confirmButtonText: "Ok, got it!", + customClass: { + confirmButton: "btn btn-primary", + } + }); + } + }); + }); + + // Submit button handler + const submitButton = element.querySelector('[data-kt-users-modal-action="submit"]'); + submitButton.addEventListener('click', function (e) { + // Prevent default button action + e.preventDefault(); + + // Validate form before submit + if (validator) { + validator.validate().then(function (status) { + console.log('validated!'); + + if (status == 'Valid') { + // Show loading indication + submitButton.setAttribute('data-kt-indicator', 'on'); + + // Disable button to avoid multiple click + submitButton.disabled = true; + + // Simulate form submission. For more info check the plugin's official documentation: https://sweetalert2.github.io/ + setTimeout(function () { + // Remove loading indication + submitButton.removeAttribute('data-kt-indicator'); + + // Enable button + submitButton.disabled = false; + + // Show popup confirmation + Swal.fire({ + text: "Form has been successfully submitted!", + icon: "success", + buttonsStyling: false, + confirmButtonText: "Ok, got it!", + customClass: { + confirmButton: "btn btn-primary" + } + }).then(function (result) { + if (result.isConfirmed) { + modal.hide(); + } + }); + + //form.submit(); // Submit form + }, 2000); + } else { + // Show popup warning. For more info check the plugin's official documentation: https://sweetalert2.github.io/ + Swal.fire({ + text: "Sorry, looks like there are some errors detected, please try again.", + icon: "error", + buttonsStyling: false, + confirmButtonText: "Ok, got it!", + customClass: { + confirmButton: "btn btn-primary" + } + }); + } + }); + } + }); + } + + return { + // Public functions + init: function () { + initAddOneTimePassword(); + } + }; +}(); + +// On document ready +KTUtil.onDOMContentLoaded(function () { + KTUsersAddOneTimePassword.init(); +}); \ No newline at end of file diff --git a/resources/_keenthemes/src/js/custom/apps/user-management/users/view/add-schedule.js b/resources/_keenthemes/src/js/custom/apps/user-management/users/view/add-schedule.js new file mode 100644 index 0000000..7e91b55 --- /dev/null +++ b/resources/_keenthemes/src/js/custom/apps/user-management/users/view/add-schedule.js @@ -0,0 +1,223 @@ +"use strict"; + +// Class definition +var KTUsersAddSchedule = function () { + // Shared variables + const element = document.getElementById('kt_modal_add_schedule'); + const form = element.querySelector('#kt_modal_add_schedule_form'); + const modal = new bootstrap.Modal(element); + + // Init add schedule modal + var initAddSchedule = () => { + + // Init flatpickr -- for more info: https://flatpickr.js.org/ + $("#kt_modal_add_schedule_datepicker").flatpickr({ + enableTime: true, + dateFormat: "Y-m-d H:i", + }); + + // Init tagify -- for more info: https://yaireo.github.io/tagify/ + const tagifyInput = form.querySelector('#kt_modal_add_schedule_tagify'); + new Tagify(tagifyInput, { + whitelist: ["sean@dellito.com", "brian@exchange.com", "mikaela@pexcom.com", "f.mitcham@kpmg.com.au", "olivia@corpmail.com", "owen.neil@gmail.com", "dam@consilting.com", "emma@intenso.com", "ana.cf@limtel.com", "robert@benko.com", "lucy.m@fentech.com", "ethan@loop.com.au"], + maxTags: 10, + dropdown: { + maxItems: 20, // <- mixumum allowed rendered suggestions + classname: "tagify__inline__suggestions", // <- custom classname for this dropdown, so it could be targeted + enabled: 0, // <- show suggestions on focus + closeOnSelect: false // <- do not hide the suggestions dropdown once an item has been selected + } + }); + + // Init form validation rules. For more info check the FormValidation plugin's official documentation:https://formvalidation.io/ + var validator = FormValidation.formValidation( + form, + { + fields: { + 'event_datetime': { + validators: { + notEmpty: { + message: 'Event date & time is required' + } + } + }, + 'event_name': { + validators: { + notEmpty: { + message: 'Event name is required' + } + } + }, + 'event_org': { + validators: { + notEmpty: { + message: 'Event organiser is required' + } + } + }, + 'event_invitees': { + validators: { + notEmpty: { + message: 'Event invitees is required' + } + } + }, + }, + + plugins: { + trigger: new FormValidation.plugins.Trigger(), + bootstrap: new FormValidation.plugins.Bootstrap5({ + rowSelector: '.fv-row', + eleInvalidClass: '', + eleValidClass: '' + }) + } + } + ); + + // Revalidate country field. For more info, plase visit the official plugin site: https://select2.org/ + $(form.querySelector('[name="event_invitees"]')).on('change', function () { + // Revalidate the field when an option is chosen + validator.revalidateField('event_invitees'); + }); + + // Close button handler + const closeButton = element.querySelector('[data-kt-users-modal-action="close"]'); + closeButton.addEventListener('click', e => { + e.preventDefault(); + + Swal.fire({ + text: "Are you sure you would like to cancel?", + icon: "warning", + showCancelButton: true, + buttonsStyling: false, + confirmButtonText: "Yes, cancel it!", + cancelButtonText: "No, return", + customClass: { + confirmButton: "btn btn-primary", + cancelButton: "btn btn-active-light" + } + }).then(function (result) { + if (result.value) { + form.reset(); // Reset form + modal.hide(); // Hide modal + } else if (result.dismiss === 'cancel') { + Swal.fire({ + text: "Your form has not been cancelled!.", + icon: "error", + buttonsStyling: false, + confirmButtonText: "Ok, got it!", + customClass: { + confirmButton: "btn btn-primary", + } + }); + } + }); + }); + + // Cancel button handler + const cancelButton = element.querySelector('[data-kt-users-modal-action="cancel"]'); + cancelButton.addEventListener('click', e => { + e.preventDefault(); + + Swal.fire({ + text: "Are you sure you would like to cancel?", + icon: "warning", + showCancelButton: true, + buttonsStyling: false, + confirmButtonText: "Yes, cancel it!", + cancelButtonText: "No, return", + customClass: { + confirmButton: "btn btn-primary", + cancelButton: "btn btn-active-light" + } + }).then(function (result) { + if (result.value) { + form.reset(); // Reset form + modal.hide(); // Hide modal + } else if (result.dismiss === 'cancel') { + Swal.fire({ + text: "Your form has not been cancelled!.", + icon: "error", + buttonsStyling: false, + confirmButtonText: "Ok, got it!", + customClass: { + confirmButton: "btn btn-primary", + } + }); + } + }); + }); + + // Submit button handler + const submitButton = element.querySelector('[data-kt-users-modal-action="submit"]'); + submitButton.addEventListener('click', function (e) { + // Prevent default button action + e.preventDefault(); + + // Validate form before submit + if (validator) { + validator.validate().then(function (status) { + console.log('validated!'); + + if (status == 'Valid') { + // Show loading indication + submitButton.setAttribute('data-kt-indicator', 'on'); + + // Disable button to avoid multiple click + submitButton.disabled = true; + + // Simulate form submission. For more info check the plugin's official documentation: https://sweetalert2.github.io/ + setTimeout(function() { + // Remove loading indication + submitButton.removeAttribute('data-kt-indicator'); + + // Enable button + submitButton.disabled = false; + + // Show popup confirmation + Swal.fire({ + text: "Form has been successfully submitted!", + icon: "success", + buttonsStyling: false, + confirmButtonText: "Ok, got it!", + customClass: { + confirmButton: "btn btn-primary" + } + }).then(function (result) { + if (result.isConfirmed) { + modal.hide(); + } + }); + + //form.submit(); // Submit form + }, 2000); + } else { + // Show popup warning. For more info check the plugin's official documentation: https://sweetalert2.github.io/ + Swal.fire({ + text: "Sorry, looks like there are some errors detected, please try again.", + icon: "error", + buttonsStyling: false, + confirmButtonText: "Ok, got it!", + customClass: { + confirmButton: "btn btn-primary" + } + }); + } + }); + } + }); + } + + return { + // Public functions + init: function () { + initAddSchedule(); + } + }; +}(); + +// On document ready +KTUtil.onDOMContentLoaded(function () { + KTUsersAddSchedule.init(); +}); \ No newline at end of file diff --git a/resources/_keenthemes/src/js/custom/apps/user-management/users/view/add-task.js b/resources/_keenthemes/src/js/custom/apps/user-management/users/view/add-task.js new file mode 100644 index 0000000..2986672 --- /dev/null +++ b/resources/_keenthemes/src/js/custom/apps/user-management/users/view/add-task.js @@ -0,0 +1,324 @@ +"use strict"; + +// Class definition +var KTUsersAddTask = function () { + // Shared variables + const element = document.getElementById('kt_modal_add_task'); + const form = element.querySelector('#kt_modal_add_task_form'); + const modal = new bootstrap.Modal(element); + + // Init add task modal + var initAddTask = () => { + + // Init flatpickr -- for more info: https://flatpickr.js.org/ + $("#kt_modal_add_task_datepicker").flatpickr({ + dateFormat: "Y-m-d", + }); + + // Init form validation rules. For more info check the FormValidation plugin's official documentation:https://formvalidation.io/ + var validator = FormValidation.formValidation( + form, + { + fields: { + 'task_duedate': { + validators: { + notEmpty: { + message: 'Task due date is required' + } + } + }, + 'task_name': { + validators: { + notEmpty: { + message: 'Task name is required' + } + } + }, + }, + + plugins: { + trigger: new FormValidation.plugins.Trigger(), + bootstrap: new FormValidation.plugins.Bootstrap5({ + rowSelector: '.fv-row', + eleInvalidClass: '', + eleValidClass: '' + }) + } + } + ); + + // Close button handler + const closeButton = element.querySelector('[data-kt-users-modal-action="close"]'); + closeButton.addEventListener('click', e => { + e.preventDefault(); + + Swal.fire({ + text: "Are you sure you would like to cancel?", + icon: "warning", + showCancelButton: true, + buttonsStyling: false, + confirmButtonText: "Yes, cancel it!", + cancelButtonText: "No, return", + customClass: { + confirmButton: "btn btn-primary", + cancelButton: "btn btn-active-light" + } + }).then(function (result) { + if (result.value) { + form.reset(); // Reset form + modal.hide(); // Hide modal + } else if (result.dismiss === 'cancel') { + Swal.fire({ + text: "Your form has not been cancelled!.", + icon: "error", + buttonsStyling: false, + confirmButtonText: "Ok, got it!", + customClass: { + confirmButton: "btn btn-primary", + } + }); + } + }); + }); + + // Cancel button handler + const cancelButton = element.querySelector('[data-kt-users-modal-action="cancel"]'); + cancelButton.addEventListener('click', e => { + e.preventDefault(); + + Swal.fire({ + text: "Are you sure you would like to cancel?", + icon: "warning", + showCancelButton: true, + buttonsStyling: false, + confirmButtonText: "Yes, cancel it!", + cancelButtonText: "No, return", + customClass: { + confirmButton: "btn btn-primary", + cancelButton: "btn btn-active-light" + } + }).then(function (result) { + if (result.value) { + form.reset(); // Reset form + modal.hide(); // Hide modal + } else if (result.dismiss === 'cancel') { + Swal.fire({ + text: "Your form has not been cancelled!.", + icon: "error", + buttonsStyling: false, + confirmButtonText: "Ok, got it!", + customClass: { + confirmButton: "btn btn-primary", + } + }); + } + }); + }); + + // Submit button handler + const submitButton = element.querySelector('[data-kt-users-modal-action="submit"]'); + submitButton.addEventListener('click', function (e) { + // Prevent default button action + e.preventDefault(); + + // Validate form before submit + if (validator) { + validator.validate().then(function (status) { + console.log('validated!'); + + if (status == 'Valid') { + // Show loading indication + submitButton.setAttribute('data-kt-indicator', 'on'); + + // Disable button to avoid multiple click + submitButton.disabled = true; + + // Simulate form submission. For more info check the plugin's official documentation: https://sweetalert2.github.io/ + setTimeout(function () { + // Remove loading indication + submitButton.removeAttribute('data-kt-indicator'); + + // Enable button + submitButton.disabled = false; + + // Show popup confirmation + Swal.fire({ + text: "Form has been successfully submitted!", + icon: "success", + buttonsStyling: false, + confirmButtonText: "Ok, got it!", + customClass: { + confirmButton: "btn btn-primary" + } + }).then(function (result) { + if (result.isConfirmed) { + modal.hide(); + } + }); + + //form.submit(); // Submit form + }, 2000); + } else { + // Show popup warning. For more info check the plugin's official documentation: https://sweetalert2.github.io/ + Swal.fire({ + text: "Sorry, looks like there are some errors detected, please try again.", + icon: "error", + buttonsStyling: false, + confirmButtonText: "Ok, got it!", + customClass: { + confirmButton: "btn btn-primary" + } + }); + } + }); + } + }); + } + + // Init update task status + var initUpdateTaskStatus = () => { + const allTaskMenus = document.querySelectorAll('[data-kt-menu-id="kt-users-tasks"]'); + + allTaskMenus.forEach(el => { + const resetButton = el.querySelector('[data-kt-users-update-task-status="reset"]'); + const submitButton = el.querySelector('[data-kt-users-update-task-status="submit"]'); + const taskForm = el.querySelector('[data-kt-menu-id="kt-users-tasks-form"]'); + + // Init form validation rules. For more info check the FormValidation plugin's official documentation:https://formvalidation.io/ + var validator = FormValidation.formValidation( + taskForm, + { + fields: { + 'task_status': { + validators: { + notEmpty: { + message: 'Task due date is required' + } + } + }, + }, + + plugins: { + trigger: new FormValidation.plugins.Trigger(), + bootstrap: new FormValidation.plugins.Bootstrap5({ + rowSelector: '.fv-row', + eleInvalidClass: '', + eleValidClass: '' + }) + } + } + ); + + // Revalidate country field. For more info, plase visit the official plugin site: https://select2.org/ + $(taskForm.querySelector('[name="task_status"]')).on('change', function () { + // Revalidate the field when an option is chosen + validator.revalidateField('task_status'); + }); + + // Reset action handler + resetButton.addEventListener('click', e => { + e.preventDefault(); + + Swal.fire({ + text: "Are you sure you would like to reset?", + icon: "warning", + showCancelButton: true, + buttonsStyling: false, + confirmButtonText: "Yes, reset it!", + cancelButtonText: "No, return", + customClass: { + confirmButton: "btn btn-primary", + cancelButton: "btn btn-active-light" + } + }).then(function (result) { + if (result.value) { + taskForm.reset(); // Reset form + el.hide(); + } else if (result.dismiss === 'cancel') { + Swal.fire({ + text: "Your form was not reset!.", + icon: "error", + buttonsStyling: false, + confirmButtonText: "Ok, got it!", + customClass: { + confirmButton: "btn btn-primary", + } + }); + } + }); + }); + + // Submit action handler + submitButton.addEventListener('click', e => { + e.preventDefault(); + + // Validate form before submit + if (validator) { + validator.validate().then(function (status) { + console.log('validated!'); + + if (status == 'Valid') { + // Show loading indication + submitButton.setAttribute('data-kt-indicator', 'on'); + + // Disable button to avoid multiple click + submitButton.disabled = true; + + // Simulate form submission. For more info check the plugin's official documentation: https://sweetalert2.github.io/ + setTimeout(function () { + // Remove loading indication + submitButton.removeAttribute('data-kt-indicator'); + + // Enable button + submitButton.disabled = false; + + // Show popup confirmation + Swal.fire({ + text: "Form has been successfully submitted!", + icon: "success", + buttonsStyling: false, + confirmButtonText: "Ok, got it!", + customClass: { + confirmButton: "btn btn-primary" + } + }).then(function (result) { + if (result.isConfirmed) { + el.hide(); + } + }); + + //taskForm.submit(); // Submit form + }, 2000); + } else { + // Show popup warning. For more info check the plugin's official documentation: https://sweetalert2.github.io/ + Swal.fire({ + text: "Sorry, looks like there are some errors detected, please try again.", + icon: "error", + buttonsStyling: false, + confirmButtonText: "Ok, got it!", + customClass: { + confirmButton: "btn btn-primary" + } + }).then(function(){ + //el.show(); + }); + } + }); + } + }); + }); + } + + return { + // Public functions + init: function () { + initAddTask(); + initUpdateTaskStatus(); + } + }; +}(); + +// On document ready +KTUtil.onDOMContentLoaded(function () { + KTUsersAddTask.init(); +}); \ No newline at end of file diff --git a/resources/_keenthemes/src/js/custom/apps/user-management/users/view/update-details.js b/resources/_keenthemes/src/js/custom/apps/user-management/users/view/update-details.js new file mode 100644 index 0000000..17c2c66 --- /dev/null +++ b/resources/_keenthemes/src/js/custom/apps/user-management/users/view/update-details.js @@ -0,0 +1,132 @@ +"use strict"; + +// Class definition +var KTUsersUpdateDetails = function () { + // Shared variables + const element = document.getElementById('kt_modal_update_details'); + const form = element.querySelector('#kt_modal_update_user_form'); + const modal = new bootstrap.Modal(element); + + // Init add schedule modal + var initUpdateDetails = () => { + + // Close button handler + const closeButton = element.querySelector('[data-kt-users-modal-action="close"]'); + closeButton.addEventListener('click', e => { + e.preventDefault(); + + Swal.fire({ + text: "Are you sure you would like to cancel?", + icon: "warning", + showCancelButton: true, + buttonsStyling: false, + confirmButtonText: "Yes, cancel it!", + cancelButtonText: "No, return", + customClass: { + confirmButton: "btn btn-primary", + cancelButton: "btn btn-active-light" + } + }).then(function (result) { + if (result.value) { + form.reset(); // Reset form + modal.hide(); // Hide modal + } else if (result.dismiss === 'cancel') { + Swal.fire({ + text: "Your form has not been cancelled!.", + icon: "error", + buttonsStyling: false, + confirmButtonText: "Ok, got it!", + customClass: { + confirmButton: "btn btn-primary", + } + }); + } + }); + }); + + // Cancel button handler + const cancelButton = element.querySelector('[data-kt-users-modal-action="cancel"]'); + cancelButton.addEventListener('click', e => { + e.preventDefault(); + + Swal.fire({ + text: "Are you sure you would like to cancel?", + icon: "warning", + showCancelButton: true, + buttonsStyling: false, + confirmButtonText: "Yes, cancel it!", + cancelButtonText: "No, return", + customClass: { + confirmButton: "btn btn-primary", + cancelButton: "btn btn-active-light" + } + }).then(function (result) { + if (result.value) { + form.reset(); // Reset form + modal.hide(); // Hide modal + } else if (result.dismiss === 'cancel') { + Swal.fire({ + text: "Your form has not been cancelled!.", + icon: "error", + buttonsStyling: false, + confirmButtonText: "Ok, got it!", + customClass: { + confirmButton: "btn btn-primary", + } + }); + } + }); + }); + + // Submit button handler + const submitButton = element.querySelector('[data-kt-users-modal-action="submit"]'); + submitButton.addEventListener('click', function (e) { + // Prevent default button action + e.preventDefault(); + + // Show loading indication + submitButton.setAttribute('data-kt-indicator', 'on'); + + // Disable button to avoid multiple click + submitButton.disabled = true; + + // Simulate form submission. For more info check the plugin's official documentation: https://sweetalert2.github.io/ + setTimeout(function () { + // Remove loading indication + submitButton.removeAttribute('data-kt-indicator'); + + // Enable button + submitButton.disabled = false; + + // Show popup confirmation + Swal.fire({ + text: "Form has been successfully submitted!", + icon: "success", + buttonsStyling: false, + confirmButtonText: "Ok, got it!", + customClass: { + confirmButton: "btn btn-primary" + } + }).then(function (result) { + if (result.isConfirmed) { + modal.hide(); + } + }); + + //form.submit(); // Submit form + }, 2000); + }); + } + + return { + // Public functions + init: function () { + initUpdateDetails(); + } + }; +}(); + +// On document ready +KTUtil.onDOMContentLoaded(function () { + KTUsersUpdateDetails.init(); +}); \ No newline at end of file diff --git a/resources/_keenthemes/src/js/custom/apps/user-management/users/view/update-email.js b/resources/_keenthemes/src/js/custom/apps/user-management/users/view/update-email.js new file mode 100644 index 0000000..cd8773c --- /dev/null +++ b/resources/_keenthemes/src/js/custom/apps/user-management/users/view/update-email.js @@ -0,0 +1,166 @@ +"use strict"; + +// Class definition +var KTUsersUpdateEmail = function () { + // Shared variables + const element = document.getElementById('kt_modal_update_email'); + const form = element.querySelector('#kt_modal_update_email_form'); + const modal = new bootstrap.Modal(element); + + // Init add schedule modal + var initUpdateEmail = () => { + + // Init form validation rules. For more info check the FormValidation plugin's official documentation:https://formvalidation.io/ + var validator = FormValidation.formValidation( + form, + { + fields: { + 'profile_email': { + validators: { + notEmpty: { + message: 'Email address is required' + } + } + }, + }, + + plugins: { + trigger: new FormValidation.plugins.Trigger(), + bootstrap: new FormValidation.plugins.Bootstrap5({ + rowSelector: '.fv-row', + eleInvalidClass: '', + eleValidClass: '' + }) + } + } + ); + + // Close button handler + const closeButton = element.querySelector('[data-kt-users-modal-action="close"]'); + closeButton.addEventListener('click', e => { + e.preventDefault(); + + Swal.fire({ + text: "Are you sure you would like to cancel?", + icon: "warning", + showCancelButton: true, + buttonsStyling: false, + confirmButtonText: "Yes, cancel it!", + cancelButtonText: "No, return", + customClass: { + confirmButton: "btn btn-primary", + cancelButton: "btn btn-active-light" + } + }).then(function (result) { + if (result.value) { + form.reset(); // Reset form + modal.hide(); // Hide modal + } else if (result.dismiss === 'cancel') { + Swal.fire({ + text: "Your form has not been cancelled!.", + icon: "error", + buttonsStyling: false, + confirmButtonText: "Ok, got it!", + customClass: { + confirmButton: "btn btn-primary", + } + }); + } + }); + }); + + // Cancel button handler + const cancelButton = element.querySelector('[data-kt-users-modal-action="cancel"]'); + cancelButton.addEventListener('click', e => { + e.preventDefault(); + + Swal.fire({ + text: "Are you sure you would like to cancel?", + icon: "warning", + showCancelButton: true, + buttonsStyling: false, + confirmButtonText: "Yes, cancel it!", + cancelButtonText: "No, return", + customClass: { + confirmButton: "btn btn-primary", + cancelButton: "btn btn-active-light" + } + }).then(function (result) { + if (result.value) { + form.reset(); // Reset form + modal.hide(); // Hide modal + } else if (result.dismiss === 'cancel') { + Swal.fire({ + text: "Your form has not been cancelled!.", + icon: "error", + buttonsStyling: false, + confirmButtonText: "Ok, got it!", + customClass: { + confirmButton: "btn btn-primary", + } + }); + } + }); + }); + + // Submit button handler + const submitButton = element.querySelector('[data-kt-users-modal-action="submit"]'); + submitButton.addEventListener('click', function (e) { + // Prevent default button action + e.preventDefault(); + + // Validate form before submit + if (validator) { + validator.validate().then(function (status) { + console.log('validated!'); + + if (status == 'Valid') { + // Show loading indication + submitButton.setAttribute('data-kt-indicator', 'on'); + + // Disable button to avoid multiple click + submitButton.disabled = true; + + // Simulate form submission. For more info check the plugin's official documentation: https://sweetalert2.github.io/ + setTimeout(function () { + // Remove loading indication + submitButton.removeAttribute('data-kt-indicator'); + + // Enable button + submitButton.disabled = false; + + // Show popup confirmation + Swal.fire({ + text: "Form has been successfully submitted!", + icon: "success", + buttonsStyling: false, + confirmButtonText: "Ok, got it!", + customClass: { + confirmButton: "btn btn-primary" + } + }).then(function (result) { + if (result.isConfirmed) { + modal.hide(); + } + }); + + //form.submit(); // Submit form + }, 2000); + } + }); + } + }); + } + + return { + // Public functions + init: function () { + initUpdateEmail(); + } + }; +}(); + +// On document ready +KTUtil.onDOMContentLoaded(function () { + KTUsersUpdateEmail.init(); +}); \ No newline at end of file diff --git a/resources/_keenthemes/src/js/custom/apps/user-management/users/view/update-password.js b/resources/_keenthemes/src/js/custom/apps/user-management/users/view/update-password.js new file mode 100644 index 0000000..9110a89 --- /dev/null +++ b/resources/_keenthemes/src/js/custom/apps/user-management/users/view/update-password.js @@ -0,0 +1,194 @@ +"use strict"; + +// Class definition +var KTUsersUpdatePassword = function () { + // Shared variables + const element = document.getElementById('kt_modal_update_password'); + const form = element.querySelector('#kt_modal_update_password_form'); + const modal = new bootstrap.Modal(element); + + // Init add schedule modal + var initUpdatePassword = () => { + + // Init form validation rules. For more info check the FormValidation plugin's official documentation:https://formvalidation.io/ + var validator = FormValidation.formValidation( + form, + { + fields: { + 'current_password': { + validators: { + notEmpty: { + message: 'Current password is required' + } + } + }, + 'new_password': { + validators: { + notEmpty: { + message: 'The password is required' + }, + callback: { + message: 'Please enter valid password', + callback: function (input) { + if (input.value.length > 0) { + return validatePassword(); + } + } + } + } + }, + 'confirm_password': { + validators: { + notEmpty: { + message: 'The password confirmation is required' + }, + identical: { + compare: function () { + return form.querySelector('[name="new_password"]').value; + }, + message: 'The password and its confirm are not the same' + } + } + }, + }, + + plugins: { + trigger: new FormValidation.plugins.Trigger(), + bootstrap: new FormValidation.plugins.Bootstrap5({ + rowSelector: '.fv-row', + eleInvalidClass: '', + eleValidClass: '' + }) + } + } + ); + + // Close button handler + const closeButton = element.querySelector('[data-kt-users-modal-action="close"]'); + closeButton.addEventListener('click', e => { + e.preventDefault(); + + Swal.fire({ + text: "Are you sure you would like to cancel?", + icon: "warning", + showCancelButton: true, + buttonsStyling: false, + confirmButtonText: "Yes, cancel it!", + cancelButtonText: "No, return", + customClass: { + confirmButton: "btn btn-primary", + cancelButton: "btn btn-active-light" + } + }).then(function (result) { + if (result.value) { + form.reset(); // Reset form + modal.hide(); // Hide modal + } else if (result.dismiss === 'cancel') { + Swal.fire({ + text: "Your form has not been cancelled!.", + icon: "error", + buttonsStyling: false, + confirmButtonText: "Ok, got it!", + customClass: { + confirmButton: "btn btn-primary", + } + }); + } + }); + }); + + // Cancel button handler + const cancelButton = element.querySelector('[data-kt-users-modal-action="cancel"]'); + cancelButton.addEventListener('click', e => { + e.preventDefault(); + + Swal.fire({ + text: "Are you sure you would like to cancel?", + icon: "warning", + showCancelButton: true, + buttonsStyling: false, + confirmButtonText: "Yes, cancel it!", + cancelButtonText: "No, return", + customClass: { + confirmButton: "btn btn-primary", + cancelButton: "btn btn-active-light" + } + }).then(function (result) { + if (result.value) { + form.reset(); // Reset form + modal.hide(); // Hide modal + } else if (result.dismiss === 'cancel') { + Swal.fire({ + text: "Your form has not been cancelled!.", + icon: "error", + buttonsStyling: false, + confirmButtonText: "Ok, got it!", + customClass: { + confirmButton: "btn btn-primary", + } + }); + } + }); + }); + + // Submit button handler + const submitButton = element.querySelector('[data-kt-users-modal-action="submit"]'); + submitButton.addEventListener('click', function (e) { + // Prevent default button action + e.preventDefault(); + + // Validate form before submit + if (validator) { + validator.validate().then(function (status) { + console.log('validated!'); + + if (status == 'Valid') { + // Show loading indication + submitButton.setAttribute('data-kt-indicator', 'on'); + + // Disable button to avoid multiple click + submitButton.disabled = true; + + // Simulate form submission. For more info check the plugin's official documentation: https://sweetalert2.github.io/ + setTimeout(function () { + // Remove loading indication + submitButton.removeAttribute('data-kt-indicator'); + + // Enable button + submitButton.disabled = false; + + // Show popup confirmation + Swal.fire({ + text: "Form has been successfully submitted!", + icon: "success", + buttonsStyling: false, + confirmButtonText: "Ok, got it!", + customClass: { + confirmButton: "btn btn-primary" + } + }).then(function (result) { + if (result.isConfirmed) { + modal.hide(); + } + }); + + //form.submit(); // Submit form + }, 2000); + } + }); + } + }); + } + + return { + // Public functions + init: function () { + initUpdatePassword(); + } + }; +}(); + +// On document ready +KTUtil.onDOMContentLoaded(function () { + KTUsersUpdatePassword.init(); +}); \ No newline at end of file diff --git a/resources/_keenthemes/src/js/custom/apps/user-management/users/view/update-role.js b/resources/_keenthemes/src/js/custom/apps/user-management/users/view/update-role.js new file mode 100644 index 0000000..a7e7589 --- /dev/null +++ b/resources/_keenthemes/src/js/custom/apps/user-management/users/view/update-role.js @@ -0,0 +1,132 @@ +"use strict"; + +// Class definition +var KTUsersUpdateRole = function () { + // Shared variables + const element = document.getElementById('kt_modal_update_role'); + const form = element.querySelector('#kt_modal_update_role_form'); + const modal = new bootstrap.Modal(element); + + // Init add schedule modal + var initUpdateRole = () => { + + // Close button handler + const closeButton = element.querySelector('[data-kt-users-modal-action="close"]'); + closeButton.addEventListener('click', e => { + e.preventDefault(); + + Swal.fire({ + text: "Are you sure you would like to cancel?", + icon: "warning", + showCancelButton: true, + buttonsStyling: false, + confirmButtonText: "Yes, cancel it!", + cancelButtonText: "No, return", + customClass: { + confirmButton: "btn btn-primary", + cancelButton: "btn btn-active-light" + } + }).then(function (result) { + if (result.value) { + form.reset(); // Reset form + modal.hide(); // Hide modal + } else if (result.dismiss === 'cancel') { + Swal.fire({ + text: "Your form has not been cancelled!.", + icon: "error", + buttonsStyling: false, + confirmButtonText: "Ok, got it!", + customClass: { + confirmButton: "btn btn-primary", + } + }); + } + }); + }); + + // Cancel button handler + const cancelButton = element.querySelector('[data-kt-users-modal-action="cancel"]'); + cancelButton.addEventListener('click', e => { + e.preventDefault(); + + Swal.fire({ + text: "Are you sure you would like to cancel?", + icon: "warning", + showCancelButton: true, + buttonsStyling: false, + confirmButtonText: "Yes, cancel it!", + cancelButtonText: "No, return", + customClass: { + confirmButton: "btn btn-primary", + cancelButton: "btn btn-active-light" + } + }).then(function (result) { + if (result.value) { + form.reset(); // Reset form + modal.hide(); // Hide modal + } else if (result.dismiss === 'cancel') { + Swal.fire({ + text: "Your form has not been cancelled!.", + icon: "error", + buttonsStyling: false, + confirmButtonText: "Ok, got it!", + customClass: { + confirmButton: "btn btn-primary", + } + }); + } + }); + }); + + // Submit button handler + const submitButton = element.querySelector('[data-kt-users-modal-action="submit"]'); + submitButton.addEventListener('click', function (e) { + // Prevent default button action + e.preventDefault(); + + // Show loading indication + submitButton.setAttribute('data-kt-indicator', 'on'); + + // Disable button to avoid multiple click + submitButton.disabled = true; + + // Simulate form submission. For more info check the plugin's official documentation: https://sweetalert2.github.io/ + setTimeout(function () { + // Remove loading indication + submitButton.removeAttribute('data-kt-indicator'); + + // Enable button + submitButton.disabled = false; + + // Show popup confirmation + Swal.fire({ + text: "Form has been successfully submitted!", + icon: "success", + buttonsStyling: false, + confirmButtonText: "Ok, got it!", + customClass: { + confirmButton: "btn btn-primary" + } + }).then(function (result) { + if (result.isConfirmed) { + modal.hide(); + } + }); + + //form.submit(); // Submit form + }, 2000); + }); + } + + return { + // Public functions + init: function () { + initUpdateRole(); + } + }; +}(); + +// On document ready +KTUtil.onDOMContentLoaded(function () { + KTUsersUpdateRole.init(); +}); \ No newline at end of file diff --git a/resources/_keenthemes/src/js/custom/apps/user-management/users/view/view.js b/resources/_keenthemes/src/js/custom/apps/user-management/users/view/view.js new file mode 100644 index 0000000..7a50ff2 --- /dev/null +++ b/resources/_keenthemes/src/js/custom/apps/user-management/users/view/view.js @@ -0,0 +1,234 @@ +"use strict"; + +// Class definition +var KTUsersViewMain = function () { + + // Init login session button + var initLoginSession = () => { + const button = document.getElementById('kt_modal_sign_out_sesions'); + + button.addEventListener('click', e => { + e.preventDefault(); + + Swal.fire({ + text: "Are you sure you would like sign out all sessions?", + icon: "warning", + showCancelButton: true, + buttonsStyling: false, + confirmButtonText: "Yes, sign out!", + cancelButtonText: "No, return", + customClass: { + confirmButton: "btn btn-primary", + cancelButton: "btn btn-active-light" + } + }).then(function (result) { + if (result.value) { + Swal.fire({ + text: "You have signed out all sessions!.", + icon: "success", + buttonsStyling: false, + confirmButtonText: "Ok, got it!", + customClass: { + confirmButton: "btn btn-primary", + } + }); + } else if (result.dismiss === 'cancel') { + Swal.fire({ + text: "Your sessions are still preserved!.", + icon: "error", + buttonsStyling: false, + confirmButtonText: "Ok, got it!", + customClass: { + confirmButton: "btn btn-primary", + } + }); + } + }); + }); + } + + + // Init sign out single user + var initSignOutUser = () => { + const signOutButtons = document.querySelectorAll('[data-kt-users-sign-out="single_user"]'); + + signOutButtons.forEach(button => { + button.addEventListener('click', e => { + e.preventDefault(); + + const deviceName = button.closest('tr').querySelectorAll('td')[1].innerText; + + Swal.fire({ + text: "Are you sure you would like sign out " + deviceName + "?", + icon: "warning", + showCancelButton: true, + buttonsStyling: false, + confirmButtonText: "Yes, sign out!", + cancelButtonText: "No, return", + customClass: { + confirmButton: "btn btn-primary", + cancelButton: "btn btn-active-light" + } + }).then(function (result) { + if (result.value) { + Swal.fire({ + text: "You have signed out " + deviceName + "!.", + icon: "success", + buttonsStyling: false, + confirmButtonText: "Ok, got it!", + customClass: { + confirmButton: "btn btn-primary", + } + }).then(function(){ + button.closest('tr').remove(); + }); + } else if (result.dismiss === 'cancel') { + Swal.fire({ + text: deviceName + "'s session is still preserved!.", + icon: "error", + buttonsStyling: false, + confirmButtonText: "Ok, got it!", + customClass: { + confirmButton: "btn btn-primary", + } + }); + } + }); + }); + }); + + + } + + // Delete two step authentication handler + const initDeleteTwoStep = () => { + const deleteButton = document.getElementById('kt_users_delete_two_step'); + + deleteButton.addEventListener('click', e => { + e.preventDefault(); + + Swal.fire({ + text: "Are you sure you would like remove this two-step authentication?", + icon: "warning", + showCancelButton: true, + buttonsStyling: false, + confirmButtonText: "Yes, remove it!", + cancelButtonText: "No, return", + customClass: { + confirmButton: "btn btn-primary", + cancelButton: "btn btn-active-light" + } + }).then(function (result) { + if (result.value) { + Swal.fire({ + text: "You have removed this two-step authentication!.", + icon: "success", + buttonsStyling: false, + confirmButtonText: "Ok, got it!", + customClass: { + confirmButton: "btn btn-primary", + } + }); + } else if (result.dismiss === 'cancel') { + Swal.fire({ + text: "Your two-step authentication is still valid!.", + icon: "error", + buttonsStyling: false, + confirmButtonText: "Ok, got it!", + customClass: { + confirmButton: "btn btn-primary", + } + }); + } + }); + }) + } + + // Email preference form handler + const initEmailPreferenceForm = () => { + // Define variables + const form = document.getElementById('kt_users_email_notification_form'); + const submitButton = form.querySelector('#kt_users_email_notification_submit'); + const cancelButton = form.querySelector('#kt_users_email_notification_cancel'); + + // Submit action handler + submitButton.addEventListener('click', e => { + e.preventDefault(); + + // Show loading indication + submitButton.setAttribute('data-kt-indicator', 'on'); + + // Disable button to avoid multiple click + submitButton.disabled = true; + + // Simulate form submission. For more info check the plugin's official documentation: https://sweetalert2.github.io/ + setTimeout(function () { + // Remove loading indication + submitButton.removeAttribute('data-kt-indicator'); + + // Enable button + submitButton.disabled = false; + + // Show popup confirmation + Swal.fire({ + text: "Form has been successfully submitted!", + icon: "success", + buttonsStyling: false, + confirmButtonText: "Ok, got it!", + customClass: { + confirmButton: "btn btn-primary" + } + }); + + //form.submit(); // Submit form + }, 2000); + }); + + cancelButton.addEventListener('click', e => { + e.preventDefault(); + + Swal.fire({ + text: "Are you sure you would like to cancel?", + icon: "warning", + showCancelButton: true, + buttonsStyling: false, + confirmButtonText: "Yes, cancel it!", + cancelButtonText: "No, return", + customClass: { + confirmButton: "btn btn-primary", + cancelButton: "btn btn-active-light" + } + }).then(function (result) { + if (result.value) { + form.reset(); // Reset form + } else if (result.dismiss === 'cancel') { + Swal.fire({ + text: "Your form has not been cancelled!.", + icon: "error", + buttonsStyling: false, + confirmButtonText: "Ok, got it!", + customClass: { + confirmButton: "btn btn-primary", + } + }); + } + }); + }); + } + + + return { + // Public functions + init: function () { + initLoginSession(); + initSignOutUser(); + initDeleteTwoStep(); + initEmailPreferenceForm(); + } + }; +}(); + +// On document ready +KTUtil.onDOMContentLoaded(function () { + KTUsersViewMain.init(); +}); \ No newline at end of file diff --git a/resources/_keenthemes/src/js/custom/authentication/reset-password/new-password.js b/resources/_keenthemes/src/js/custom/authentication/reset-password/new-password.js new file mode 100644 index 0000000..d68ab4d --- /dev/null +++ b/resources/_keenthemes/src/js/custom/authentication/reset-password/new-password.js @@ -0,0 +1,154 @@ +"use strict"; + +// Class Definition +var KTAuthNewPassword = function() { + // Elements + var form; + var submitButton; + var validator; + var passwordMeter; + + var handleForm = function(e) { + // Init form validation rules. For more info check the FormValidation plugin's official documentation:https://formvalidation.io/ + validator = FormValidation.formValidation( + form, + { + fields: { + 'password': { + validators: { + notEmpty: { + message: 'The password is required' + }, + callback: { + message: 'Please enter valid password', + callback: function(input) { + if (input.value.length > 0) { + return validatePassword(); + } + } + } + } + }, + 'confirm-password': { + validators: { + notEmpty: { + message: 'The password confirmation is required' + }, + identical: { + compare: function() { + return form.querySelector('[name="password"]').value; + }, + message: 'The password and its confirm are not the same' + } + } + }, + 'toc': { + validators: { + notEmpty: { + message: 'You must accept the terms and conditions' + } + } + } + }, + plugins: { + trigger: new FormValidation.plugins.Trigger({ + event: { + password: false + } + }), + bootstrap: new FormValidation.plugins.Bootstrap5({ + rowSelector: '.fv-row', + eleInvalidClass: '', // comment to enable invalid state icons + eleValidClass: '' // comment to enable valid state icons + }) + } + } + ); + + submitButton.addEventListener('click', function (e) { + e.preventDefault(); + + validator.revalidateField('password'); + + validator.validate().then(function(status) { + if (status == 'Valid') { + // Show loading indication + submitButton.setAttribute('data-kt-indicator', 'on'); + + // Disable button to avoid multiple click + submitButton.disabled = true; + + // Simulate ajax request + setTimeout(function() { + // Hide loading indication + submitButton.removeAttribute('data-kt-indicator'); + + // Enable button + submitButton.disabled = false; + + // Show message popup. For more info check the plugin's official documentation: https://sweetalert2.github.io/ + Swal.fire({ + text: "You have successfully reset your password!", + icon: "success", + buttonsStyling: false, + confirmButtonText: "Ok, got it!", + customClass: { + confirmButton: "btn btn-primary" + } + }).then(function (result) { + if (result.isConfirmed) { + form.querySelector('[name="password"]').value= ""; + form.querySelector('[name="confirm-password"]').value= ""; + passwordMeter.reset(); // reset password meter + //form.submit(); + + var redirectUrl = form.getAttribute('data-kt-redirect-url'); + if (redirectUrl) { + location.href = redirectUrl; + } + } + }); + }, 1500); + } else { + // Show error popup. For more info check the plugin's official documentation: https://sweetalert2.github.io/ + Swal.fire({ + text: "Sorry, looks like there are some errors detected, please try again.", + icon: "error", + buttonsStyling: false, + confirmButtonText: "Ok, got it!", + customClass: { + confirmButton: "btn btn-primary" + } + }); + } + }); + }); + + form.querySelector('input[name="password"]').addEventListener('input', function() { + if (this.value.length > 0) { + validator.updateFieldStatus('password', 'NotValidated'); + } + }); + } + + var validatePassword = function() { + return (passwordMeter.getScore() === 100); + } + + // Public Functions + return { + // public functions + init: function() { + form = document.querySelector('#kt_new_password_form'); + submitButton = document.querySelector('#kt_new_password_submit'); + passwordMeter = KTPasswordMeter.getInstance(form.querySelector('[data-kt-password-meter="true"]')); + + handleForm(); + } + }; +}(); + +// On document ready +KTUtil.onDOMContentLoaded(function() { + KTAuthNewPassword.init(); +}); diff --git a/resources/_keenthemes/src/js/custom/authentication/reset-password/reset-password.js b/resources/_keenthemes/src/js/custom/authentication/reset-password/reset-password.js new file mode 100644 index 0000000..017c704 --- /dev/null +++ b/resources/_keenthemes/src/js/custom/authentication/reset-password/reset-password.js @@ -0,0 +1,111 @@ +"use strict"; + +// Class Definition +var KTAuthResetPassword = function() { + // Elements + var form; + var submitButton; + var validator; + + var handleForm = function(e) { + // Init form validation rules. For more info check the FormValidation plugin's official documentation:https://formvalidation.io/ + validator = FormValidation.formValidation( + form, + { + fields: { + 'email': { + validators: { + regexp: { + regexp: /^[^\s@]+@[^\s@]+\.[^\s@]+$/, + message: 'The value is not a valid email address', + }, + notEmpty: { + message: 'Email address is required' + } + } + } + }, + plugins: { + trigger: new FormValidation.plugins.Trigger(), + bootstrap: new FormValidation.plugins.Bootstrap5({ + rowSelector: '.fv-row', + eleInvalidClass: '', // comment to enable invalid state icons + eleValidClass: '' // comment to enable valid state icons + }) + } + } + ); + + submitButton.addEventListener('click', function (e) { + e.preventDefault(); + + // Validate form + validator.validate().then(function (status) { + if (status == 'Valid') { + // Show loading indication + submitButton.setAttribute('data-kt-indicator', 'on'); + + // Disable button to avoid multiple click + submitButton.disabled = true; + + // Simulate ajax request + setTimeout(function() { + // Hide loading indication + submitButton.removeAttribute('data-kt-indicator'); + + // Enable button + submitButton.disabled = false; + + // Show message popup. For more info check the plugin's official documentation: https://sweetalert2.github.io/ + Swal.fire({ + text: "We have send a password reset link to your email.", + icon: "success", + buttonsStyling: false, + confirmButtonText: "Ok, got it!", + customClass: { + confirmButton: "btn btn-primary" + } + }).then(function (result) { + if (result.isConfirmed) { + form.querySelector('[name="email"]').value= ""; + //form.submit(); + + var redirectUrl = form.getAttribute('data-kt-redirect-url'); + if (redirectUrl) { + location.href = redirectUrl; + } + } + }); + }, 1500); + } else { + // Show error popup. For more info check the plugin's official documentation: https://sweetalert2.github.io/ + Swal.fire({ + text: "Sorry, looks like there are some errors detected, please try again.", + icon: "error", + buttonsStyling: false, + confirmButtonText: "Ok, got it!", + customClass: { + confirmButton: "btn btn-primary" + } + }); + } + }); + }); + } + + // Public Functions + return { + // public functions + init: function() { + form = document.querySelector('#kt_password_reset_form'); + submitButton = document.querySelector('#kt_password_reset_submit'); + + handleForm(); + } + }; +}(); + +// On document ready +KTUtil.onDOMContentLoaded(function() { + KTAuthResetPassword.init(); +}); diff --git a/resources/_keenthemes/src/js/custom/authentication/sign-in/general.js b/resources/_keenthemes/src/js/custom/authentication/sign-in/general.js new file mode 100644 index 0000000..2452da8 --- /dev/null +++ b/resources/_keenthemes/src/js/custom/authentication/sign-in/general.js @@ -0,0 +1,195 @@ +"use strict"; + +// Class definition +var KTSigninGeneral = function() { + // Elements + var form; + var submitButton; + var validator; + + // Handle form + var handleValidation = function(e) { + // Init form validation rules. For more info check the FormValidation plugin's official documentation:https://formvalidation.io/ + validator = FormValidation.formValidation( + form, + { + fields: { + 'email': { + validators: { + regexp: { + regexp: /^[^\s@]+@[^\s@]+\.[^\s@]+$/, + message: 'The value is not a valid email address', + }, + notEmpty: { + message: 'Email address is required' + } + } + }, + 'password': { + validators: { + notEmpty: { + message: 'The password is required' + } + } + } + }, + plugins: { + trigger: new FormValidation.plugins.Trigger(), + bootstrap: new FormValidation.plugins.Bootstrap5({ + rowSelector: '.fv-row', + eleInvalidClass: '', // comment to enable invalid state icons + eleValidClass: '' // comment to enable valid state icons + }) + } + } + ); + } + + var handleSubmitDemo = function(e) { + // Handle form submit + submitButton.addEventListener('click', function (e) { + // Prevent button default action + e.preventDefault(); + + // Validate form + validator.validate().then(function (status) { + if (status == 'Valid') { + // Show loading indication + submitButton.setAttribute('data-kt-indicator', 'on'); + + // Disable button to avoid multiple click + submitButton.disabled = true; + + + // Simulate ajax request + setTimeout(function() { + // Hide loading indication + submitButton.removeAttribute('data-kt-indicator'); + + // Enable button + submitButton.disabled = false; + + // Show message popup. For more info check the plugin's official documentation: https://sweetalert2.github.io/ + Swal.fire({ + text: "You have successfully logged in!", + icon: "success", + buttonsStyling: false, + confirmButtonText: "Ok, got it!", + customClass: { + confirmButton: "btn btn-primary" + } + }).then(function (result) { + if (result.isConfirmed) { + form.querySelector('[name="email"]').value= ""; + form.querySelector('[name="password"]').value= ""; + + //form.submit(); // submit form + var redirectUrl = form.getAttribute('data-kt-redirect-url'); + if (redirectUrl) { + location.href = redirectUrl; + } + } + }); + }, 2000); + } else { + // Show error popup. For more info check the plugin's official documentation: https://sweetalert2.github.io/ + Swal.fire({ + text: "Sorry, looks like there are some errors detected, please try again.", + icon: "error", + buttonsStyling: false, + confirmButtonText: "Ok, got it!", + customClass: { + confirmButton: "btn btn-primary" + } + }); + } + }); + }); + } + + var handleSubmitAjax = function(e) { + // Handle form submit + submitButton.addEventListener('click', function (e) { + // Prevent button default action + e.preventDefault(); + + // Validate form + validator.validate().then(function (status) { + if (status == 'Valid') { + // Hide loading indication + submitButton.removeAttribute('data-kt-indicator'); + + // Enable button + submitButton.disabled = false; + + // Check axios library docs: https://axios-http.com/docs/intro + axios.post('/your/ajax/login/url', { + email: form.querySelector('[name="email"]').value, + password: form.querySelector('[name="password"]').value + }).then(function (response) { + if (response) { + form.querySelector('[name="email"]').value= ""; + form.querySelector('[name="password"]').value= ""; + + const redirectUrl = form.getAttribute('data-kt-redirect-url'); + + if (redirectUrl) { + location.href = redirectUrl; + } + } else { + // Show error popup. For more info check the plugin's official documentation: https://sweetalert2.github.io/ + Swal.fire({ + text: "Sorry, the email or password is incorrect, please try again.", + icon: "error", + buttonsStyling: false, + confirmButtonText: "Ok, got it!", + customClass: { + confirmButton: "btn btn-primary" + } + }); + } + }).catch(function (error) { + Swal.fire({ + text: "Sorry, looks like there are some errors detected, please try again.", + icon: "error", + buttonsStyling: false, + confirmButtonText: "Ok, got it!", + customClass: { + confirmButton: "btn btn-primary" + } + }); + }); + } else { + // Show error popup. For more info check the plugin's official documentation: https://sweetalert2.github.io/ + Swal.fire({ + text: "Sorry, looks like there are some errors detected, please try again.", + icon: "error", + buttonsStyling: false, + confirmButtonText: "Ok, got it!", + customClass: { + confirmButton: "btn btn-primary" + } + }); + } + }); + }); + } + + // Public functions + return { + // Initialization + init: function() { + form = document.querySelector('#kt_sign_in_form'); + submitButton = document.querySelector('#kt_sign_in_submit'); + + handleValidation(); + handleSubmitDemo(); // used for demo purposes only, if you use the below ajax version you can uncomment this one + //handleSubmitAjax(); // use for ajax submit + } + }; +}(); + +// On document ready +KTUtil.onDOMContentLoaded(function() { + KTSigninGeneral.init(); +}); diff --git a/resources/_keenthemes/src/js/custom/authentication/sign-in/i18n.js b/resources/_keenthemes/src/js/custom/authentication/sign-in/i18n.js new file mode 100644 index 0000000..82e9b7a --- /dev/null +++ b/resources/_keenthemes/src/js/custom/authentication/sign-in/i18n.js @@ -0,0 +1,433 @@ +"use strict"; + +// Class definition +var KTAuthI18nDemo = function() { + // Elements + var menu; + + var menuObj; + + var translationStrings = { + // General + "general-progress" : { + "English" : "Please wait...", + "Spanish" : "Iniciar Sesión", + "German" : "Registrarse", + "Japanese" : "ログイン", + "French" : "S'identifier", + }, + "general-desc" : { + "English" : "Get unlimited access & earn money", + "Spanish" : "Obtenga acceso ilimitado y gane dinero", + "German" : "Erhalten Sie unbegrenzten Zugriff und verdienen Sie Geld", + "Japanese" : "無制限のアクセスを取得してお金を稼ぐ", + "French" : "Obtenez un accès illimité et gagnez de l'argent", + }, + + "general-or" : { + "English" : "Or", + "Spanish" : "O", + "German" : "Oder", + "Japanese" : "または", + "French" : "Ou", + }, + + // Sign in + "sign-in-head-desc" : { + "English" : "Not a Member yet?", + "Spanish" : "¿No eres miembro todavía?", + "German" : "Noch kein Mitglied?", + "Japanese" : "まだメンバーではありませんか?", + "French" : "Pas encore membre?", + }, + + "sign-in-head-link" : { + "English" : "Sign Up", + "Spanish" : "Inscribirse", + "German" : "Anmeldung", + "Japanese" : "サインアップ", + "French" : "S'S'inscrire", + }, + + "sign-in-title" : { + "English" : "Sign In", + "Spanish" : "Iniciar Sesión", + "German" : "Registrarse", + "Japanese" : "ログイン", + "French" : "S'identifier", + }, + + "sign-in-input-email" : { + "English" : "Email", + "Spanish" : "Correo electrónico", + "German" : "Email", + "Japanese" : "Eメール", + "French" : "E-mail", + }, + + "sign-in-input-password" : { + "English" : "Password", + "Spanish" : "Clave", + "German" : "Passwort", + "Japanese" : "パスワード", + "French" : "Mot de passe", + }, + + "sign-in-forgot-password" : { + "English" : "Forgot Password ?", + "Spanish" : "Has olvidado tu contraseña ?", + "German" : "Passwort vergessen ?", + "Japanese" : "パスワードをお忘れですか ?", + "French" : "Mot de passe oublié ?", + }, + + "sign-in-submit" : { + "English" : "Sign In", + "Spanish" : "Iniciar Sesión", + "German" : "Registrarse", + "Japanese" : "ログイン", + "French" : "S'identifier", + }, + + // Sing up + "sign-up-head-desc" : { + "English" : "Already a member ?", + "Spanish" : "Ya eres usuario ?", + "German" : "Schon ein Mitglied ?", + "Japanese" : "すでにメンバーですか?", + "French" : "Déjà membre ?", + }, + + "sign-up-head-link" : { + "English" : "Sign In", + "Spanish" : "Iniciar Sesión", + "German" : "Registrarse", + "Japanese" : "ログイン", + "French" : "S'identifier", + }, + + "sign-up-title" : { + "English" : "Sign Up", + "Spanish" : "Inscribirse", + "German" : "Anmeldung", + "Japanese" : "サインアップ", + "French" : "S'S'inscrire", + }, + + "sign-up-input-first-name" : { + "English" : "First Name", + "Spanish" : "Primer nombre", + "German" : "Vorname", + "Japanese" : "ファーストネーム", + "French" : "Prénom", + }, + + "sign-up-input-last-name" : { + "English" : "Last Name", + "Spanish" : "Apellido", + "German" : "Nachname", + "Japanese" : "苗字", + "French" : "Nom de famille", + }, + + "sign-up-input-email" : { + "English" : "Email", + "Spanish" : "Correo electrónico", + "German" : "Email", + "Japanese" : "Eメール", + "French" : "E-mail", + }, + + "sign-up-input-password" : { + "English" : "Password", + "Spanish" : "Clave", + "German" : "Passwort", + "Japanese" : "パスワード", + "French" : "Mot de passe", + }, + + "sign-up-input-confirm-password" : { + "English" : "Password", + "Spanish" : "Clave", + "German" : "Passwort", + "Japanese" : "パスワード", + "French" : "Mot de passe", + }, + + "sign-up-submit" : { + "English" : "Submit", + "Spanish" : "Iniciar Sesión", + "German" : "Registrarse", + "Japanese" : "ログイン", + "French" : "S'identifier", + }, + + "sign-up-hint" : { + "English" : "Use 8 or more characters with a mix of letters, numbers & symbols.", + "Spanish" : "Utilice 8 o más caracteres con una combinación de letras, números y símbolos.", + "German" : "Verwenden Sie 8 oder mehr Zeichen mit einer Mischung aus Buchstaben, Zahlen und Symbolen.", + "Japanese" : "文字、数字、記号を組み合わせた8文字以上を使用してください。", + "French" : "Utilisez 8 caractères ou plus avec un mélange de lettres, de chiffres et de symboles.", + }, + + // New password + "new-password-head-desc" : { + "English" : "Already a member ?", + "Spanish" : "Ya eres usuario ?", + "German" : "Schon ein Mitglied ?", + "Japanese" : "すでにメンバーですか?", + "French" : "Déjà membre ?", + }, + + "new-password-head-link" : { + "English" : "Sign In", + "Spanish" : "Iniciar Sesión", + "German" : "Registrarse", + "Japanese" : "ログイン", + "French" : "S'identifier", + }, + + "new-password-title" : { + "English" : "Setup New Password", + "Spanish" : "Configurar nueva contraseña", + "German" : "Neues Passwort einrichten", + "Japanese" : "新しいパスワードを設定する", + "French" : "Configurer un nouveau mot de passe", + }, + + "new-password-desc" : { + "English" : "Have you already reset the password ?", + "Spanish" : "¿Ya has restablecido la contraseña?", + "German" : "Hast du das Passwort schon zurückgesetzt?", + "Japanese" : "すでにパスワードをリセットしましたか?", + "French" : "Avez-vous déjà réinitialisé le mot de passe ?", + }, + + "new-password-input-password" : { + "English" : "Password", + "Spanish" : "Clave", + "German" : "Passwort", + "Japanese" : "パスワード", + "French" : "Mot de passe", + }, + + "new-password-hint" : { + "English" : "Use 8 or more characters with a mix of letters, numbers & symbols.", + "Spanish" : "Utilice 8 o más caracteres con una combinación de letras, números y símbolos.", + "German" : "Verwenden Sie 8 oder mehr Zeichen mit einer Mischung aus Buchstaben, Zahlen und Symbolen.", + "Japanese" : "文字、数字、記号を組み合わせた8文字以上を使用してください。", + "French" : "Utilisez 8 caractères ou plus avec un mélange de lettres, de chiffres et de symboles.", + }, + + "new-password-confirm-password" : { + "English" : "Confirm Password", + "Spanish" : "Confirmar contraseña", + "German" : "Passwort bestätigen", + "Japanese" : "パスワードを認証する", + "French" : "Confirmez le mot de passe", + }, + + "new-password-submit" : { + "English" : "Submit", + "Spanish" : "Iniciar Sesión", + "German" : "Registrarse", + "Japanese" : "ログイン", + "French" : "S'identifier", + }, + + // Password reset + "password-reset-head-desc" : { + "English" : "Already a member ?", + "Spanish" : "Ya eres usuario ?", + "German" : "Schon ein Mitglied ?", + "Japanese" : "すでにメンバーですか?", + "French" : "Déjà membre ?", + }, + + "password-reset-head-link" : { + "English" : "Sign In", + "Spanish" : "Iniciar Sesión", + "German" : "Registrarse", + "Japanese" : "ログイン", + "French" : "S'identifier", + }, + + "password-reset-title" : { + "English" : "Forgot Password ?", + "Spanish" : "Has olvidado tu contraseña ?", + "German" : "Passwort vergessen ?", + "Japanese" : "パスワードをお忘れですか ?", + "French" : "Mot de passe oublié ?", + }, + + "password-reset-desc" : { + "English" : "Enter your email to reset your password.", + "Spanish" : "Ingrese su correo electrónico para restablecer su contraseña.", + "German" : "Geben Sie Ihre E-Mail-Adresse ein, um Ihr Passwort zurückzusetzen.", + "Japanese" : "メールアドレスを入力してパスワードをリセットしてください。", + "French" : "Entrez votre e-mail pour réinitialiser votre mot de passe.", + }, + + "password-reset-input-email" : { + "English" : "Email", + "Spanish" : "Correo electrónico", + "German" : "Email", + "Japanese" : "Eメール", + "French" : "E-mail", + }, + + "password-reset-submit" : { + "English" : "Submit", + "Spanish" : "Iniciar Sesión", + "German" : "Registrarse", + "Japanese" : "ログイン", + "French" : "S'identifier", + }, + + "password-reset-cancel" : { + "English" : "Cancel", + "Spanish" : "Cancelar", + "German" : "Absagen", + "Japanese" : "キャンセル", + "French" : "Annuler", + }, + + // Two steps + "two-step-head-desc" : { + "English" : "Didn’t get the code ?", + "Spanish" : "¿No recibiste el código?", + "German" : "Code nicht erhalten?", + "Japanese" : "コードを取得できませんでしたか?", + "French" : "Vous n'avez pas reçu le code ?", + }, + + "two-step-head-resend" : { + "English" : "Resend", + "Spanish" : "Reenviar", + "German" : "Erneut senden", + "Japanese" : "再送", + "French" : "Renvoyer", + }, + + "two-step-head-or" : { + "English" : "Or", + "Spanish" : "O", + "German" : "Oder", + "Japanese" : "または", + "French" : "Ou", + }, + + "two-step-head-call-us" : { + "English" : "Call Us", + "Spanish" : "Llámenos", + "German" : "Rufen Sie uns an", + "Japanese" : "お電話ください", + "French" : "Appelez-nous", + }, + + "two-step-submit" : { + "English" : "Submit", + "Spanish" : "Iniciar Sesión", + "German" : "Registrarse", + "Japanese" : "ログイン", + "French" : "S'identifier", + }, + + "two-step-title" : { + "English" : "Two Step Verification", + "Spanish" : "Verificación de dos pasos", + "German" : "Verifizierung in zwei Schritten", + "Japanese" : "2段階認証", + "French" : "Vérification en deux étapes", + }, + + "two-step-deck" : { + "English" : "Enter the verification code we sent to", + "Spanish" : "Ingresa el código de verificación que enviamos a", + "German" : "Geben Sie den von uns gesendeten Bestätigungscode ein", + "Japanese" : "送信した確認コードを入力してください", + "French" : "Entrez le code de vérification que nous avons envoyé à", + }, + + "two-step-label" : { + "English" : "Type your 6 digit security code", + "Spanish" : "Escriba su código de seguridad de 6 dígitos", + "German" : "Geben Sie Ihren 6-stelligen Sicherheitscode ein", + "Japanese" : "6桁のセキュリティコードを入力します", + "French" : "Tapez votre code de sécurité à 6 chiffres", + } + } + + // Handle form + var translate = function(lang) { + for (var label in translationStrings) { + if (translationStrings.hasOwnProperty(label)) { + if (translationStrings[label][lang]) { + let labelElement = document.querySelector('[data-kt-translate=' + label + ']'); + + if (labelElement !== null) { + if (labelElement.tagName === "INPUT") { + labelElement.setAttribute("placeholder", translationStrings[label][lang]); + } else { + labelElement.innerHTML = translationStrings[label][lang]; + } + } + } + } + } + } + + var setLanguage = function(lang) { + const selectedLang = menu.querySelector('[data-kt-lang="' + lang + '"]'); + + if (selectedLang !== null) { + const currentLangName = document.querySelector('[data-kt-element="current-lang-name"]'); + const currentLangFlag = document.querySelector('[data-kt-element="current-lang-flag"]'); + + const selectedLangName = selectedLang.querySelector('[data-kt-element="lang-name"]'); + const selectedLangFlag = selectedLang.querySelector('[data-kt-element="lang-flag"]'); + + currentLangName.innerText = selectedLangName.innerText; + currentLangFlag.setAttribute("src", selectedLangFlag.getAttribute("src")); + + localStorage.setItem("kt_auth_lang", lang); + } + } + + var init = function() { + if ( localStorage.getItem("kt_auth_lang") !== null ) { + let lang = localStorage.getItem("kt_auth_lang"); + + setLanguage(lang); + translate(lang); + } + + menuObj.on("kt.menu.link.click", function(element) { + let lang = element.getAttribute("data-kt-lang"); + + setLanguage(lang); + translate(lang); + }); + } + + // Public functions + return { + // Initialization + init: function() { + menu = document.querySelector('#kt_auth_lang_menu'); + + if (menu === null) { + return; + } + + menuObj = KTMenu.getInstance(menu); + + init(); + } + }; +}(); + +// On document ready +KTUtil.onDOMContentLoaded(function() { + KTAuthI18nDemo.init(); +}); diff --git a/resources/_keenthemes/src/js/custom/authentication/sign-in/two-factor.js b/resources/_keenthemes/src/js/custom/authentication/sign-in/two-factor.js new file mode 100644 index 0000000..37b0a64 --- /dev/null +++ b/resources/_keenthemes/src/js/custom/authentication/sign-in/two-factor.js @@ -0,0 +1,140 @@ +"use strict"; + +// Class Definition +var KTSigninTwoFactor = function() { + // Elements + var form; + var submitButton; + + // Handle form + var handleForm = function(e) { + // Handle form submit + submitButton.addEventListener('click', function (e) { + e.preventDefault(); + + var validated = true; + + var inputs = [].slice.call(form.querySelectorAll('input[maxlength="1"]')); + inputs.map(function (input) { + if (input.value === '' || input.value.length === 0) { + validated = false; + } + }); + + if (validated === true) { + // Show loading indication + submitButton.setAttribute('data-kt-indicator', 'on'); + + // Disable button to avoid multiple click + submitButton.disabled = true; + + // Simulate ajax request + setTimeout(function() { + // Hide loading indication + submitButton.removeAttribute('data-kt-indicator'); + + // Enable button + submitButton.disabled = false; + + // Show message popup. For more info check the plugin's official documentation: https://sweetalert2.github.io/ + Swal.fire({ + text: "You have been successfully verified!", + icon: "success", + buttonsStyling: false, + confirmButtonText: "Ok, got it!", + customClass: { + confirmButton: "btn btn-primary" + } + }).then(function (result) { + if (result.isConfirmed) { + inputs.map(function (input) { + input.value = ''; + }); + + var redirectUrl = form.getAttribute('data-kt-redirect-url'); + if (redirectUrl) { + location.href = redirectUrl; + } + } + }); + }, 1000); + } else { + swal.fire({ + text: "Please enter valid securtiy code and try again.", + icon: "error", + buttonsStyling: false, + confirmButtonText: "Ok, got it!", + customClass: { + confirmButton: "btn fw-bold btn-light-primary" + } + }).then(function() { + KTUtil.scrollTop(); + }); + } + }); + } + + var handleType = function() { + var input1 = form.querySelector("[name=code_1]"); + var input2 = form.querySelector("[name=code_2]"); + var input3 = form.querySelector("[name=code_3]"); + var input4 = form.querySelector("[name=code_4]"); + var input5 = form.querySelector("[name=code_5]"); + var input6 = form.querySelector("[name=code_6]"); + + input1.focus(); + + input1.addEventListener("keyup", function() { + if (this.value.length === 1) { + input2.focus(); + } + }); + + input2.addEventListener("keyup", function() { + if (this.value.length === 1) { + input3.focus(); + } + }); + + input3.addEventListener("keyup", function() { + if (this.value.length === 1) { + input4.focus(); + } + }); + + input4.addEventListener("keyup", function() { + if (this.value.length === 1) { + input5.focus(); + } + }); + + input5.addEventListener("keyup", function() { + if (this.value.length === 1) { + input6.focus(); + } + }); + + input6.addEventListener("keyup", function() { + if (this.value.length === 1) { + input6.blur(); + } + }); + } + + // Public functions + return { + // Initialization + init: function() { + form = document.querySelector('#kt_sing_in_two_factor_form'); + submitButton = document.querySelector('#kt_sing_in_two_factor_submit'); + + handleForm(); + handleType(); + } + }; +}(); + +// On document ready +KTUtil.onDOMContentLoaded(function() { + KTSigninTwoFactor.init(); +}); \ No newline at end of file diff --git a/resources/_keenthemes/src/js/custom/authentication/sign-up/coming-soon.js b/resources/_keenthemes/src/js/custom/authentication/sign-up/coming-soon.js new file mode 100644 index 0000000..31be2fc --- /dev/null +++ b/resources/_keenthemes/src/js/custom/authentication/sign-up/coming-soon.js @@ -0,0 +1,164 @@ +"use strict"; + +// Class Definition +var KTSignupComingSoon = function() { + // Elements + var form; + var submitButton; + var validator; + + var counterDays; + var counterHours; + var counterMinutes; + var counterSeconds; + + var handleForm = function(e) { + var validation; + + if( !form ) { + return; + } + + // Init form validation rules. For more info check the FormValidation plugin's official documentation:https://formvalidation.io/ + validator = FormValidation.formValidation( + form, + { + fields: { + 'email': { + validators: { + regexp: { + regexp: /^[^\s@]+@[^\s@]+\.[^\s@]+$/, + message: 'The value is not a valid email address', + }, + notEmpty: { + message: 'Email address is required' + } + } + } + }, + plugins: { + trigger: new FormValidation.plugins.Trigger(), + bootstrap: new FormValidation.plugins.Bootstrap5({ + rowSelector: '.fv-row', + eleInvalidClass: '', + eleValidClass: '' + }) + } + } + ); + + submitButton.addEventListener('click', function (e) { + e.preventDefault(); + + // Validate form + validator.validate().then(function (status) { + if (status == 'Valid') { + // Show loading indication + submitButton.setAttribute('data-kt-indicator', 'on'); + + // Disable button to avoid multiple click + submitButton.disabled = true; + + // Simulate ajax request + setTimeout(function() { + // Hide loading indication + submitButton.removeAttribute('data-kt-indicator'); + + // Enable button + submitButton.disabled = false; + + // Show message popup. For more info check the plugin's official documentation: https://sweetalert2.github.io/ + Swal.fire({ + text: "We have received your request. You will be notified once we go live.", + icon: "success", + buttonsStyling: false, + confirmButtonText: "Ok, got it!", + customClass: { + confirmButton: "btn btn-primary" + } + }).then(function (result) { + if (result.isConfirmed) { + form.querySelector('[name="email"]').value= ""; + //form.submit(); + + //form.submit(); // submit form + var redirectUrl = form.getAttribute('data-kt-redirect-url'); + if (redirectUrl) { + location.href = redirectUrl; + } + } + }); + }, 2000); + } else { + // Show error popup. For more info check the plugin's official documentation: https://sweetalert2.github.io/ + Swal.fire({ + text: "Sorry, looks like there are some errors detected, please try again.", + icon: "error", + buttonsStyling: false, + confirmButtonText: "Ok, got it!", + customClass: { + confirmButton: "btn btn-primary" + } + }); + } + }); + }); + } + + var initCounter = function() { + // Set the date we're counting down to + var currentTime = new Date(); + var countDownDate = new Date(currentTime.getTime() + 1000 * 60 * 60 * 24 * 15 + 1000 * 60 * 60 * 10 + 1000 * 60 * 15).getTime(); + + var count = function() { + // Get todays date and time + var now = new Date().getTime(); + + // Find the distance between now an the count down date + var distance = countDownDate - now; + + // Time calculations for days, hours, minutes and seconds + var days = Math.floor(distance / (1000 * 60 * 60 * 24)); + var hours = Math.floor((distance % (1000 * 60 * 60 * 24)) / (1000 * 60 * 60)); + var minutes = Math.floor((distance % (1000 * 60 * 60)) / (1000 * 60)); + var seconds = Math.floor((distance % (1000 * 60)) / 1000); + + // Display the result + if(counterDays) counterDays.innerHTML = days; + if(counterHours) counterHours.innerHTML = hours; + if(counterMinutes) counterMinutes.innerHTML = minutes; + if(counterSeconds) counterSeconds.innerHTML = seconds; + }; + + // Update the count down every 1 second + var x = setInterval(count, 1000); + + // Initial count + count(); + } + + // Public Functions + return { + // public functions + init: function() { + form = document.querySelector('#kt_coming_soon_form'); + submitButton = document.querySelector('#kt_coming_soon_submit'); + + handleForm(); + + counterDays = document.querySelector('#kt_coming_soon_counter_days'); + if (counterDays) { + counterHours = document.querySelector('#kt_coming_soon_counter_hours'); + counterMinutes = document.querySelector('#kt_coming_soon_counter_minutes'); + counterSeconds = document.querySelector('#kt_coming_soon_counter_seconds'); + + initCounter(); + } + } + }; +}(); + +// On document ready +KTUtil.onDOMContentLoaded(function() { + KTSignupComingSoon.init(); +}); diff --git a/resources/_keenthemes/src/js/custom/authentication/sign-up/free-trial.js b/resources/_keenthemes/src/js/custom/authentication/sign-up/free-trial.js new file mode 100644 index 0000000..133485e --- /dev/null +++ b/resources/_keenthemes/src/js/custom/authentication/sign-up/free-trial.js @@ -0,0 +1,169 @@ +"use strict"; + +// Class Definition +var KTSignupFreeTrial = function() { + // Elements + var form; + var submitButton; + var validator; + var passwordMeter; + + // Handle form + var handleForm = function(e) { + // Init form validation rules. For more info check the FormValidation plugin's official documentation:https://formvalidation.io/ + validator = FormValidation.formValidation( + form, + { + fields: { + 'email': { + validators: { + regexp: { + regexp: /^[^\s@]+@[^\s@]+\.[^\s@]+$/, + message: 'The value is not a valid email address', + }, + notEmpty: { + message: 'Email address is required' + } + } + }, + 'password': { + validators: { + notEmpty: { + message: 'The password is required' + }, + callback: { + message: 'Please enter valid password', + callback: function(input) { + if (input.value.length > 0) { + return validatePassword(); + } + } + } + } + }, + 'confirm-password': { + validators: { + notEmpty: { + message: 'The password confirmation is required' + }, + identical: { + compare: function() { + return form.querySelector('[name="password"]').value; + }, + message: 'The password and its confirm are not the same' + } + } + }, + 'toc': { + validators: { + notEmpty: { + message: 'You must accept the terms and conditions' + } + } + } + }, + plugins: { + trigger: new FormValidation.plugins.Trigger({ + event: { + password: false + } + }), + bootstrap: new FormValidation.plugins.Bootstrap5({ + rowSelector: '.fv-row', + eleInvalidClass: '', + eleValidClass: '' + }) + } + } + ); + + submitButton.addEventListener('click', function (e) { + e.preventDefault(); + + validator.revalidateField('password'); + + validator.validate().then(function(status) { + if (status == 'Valid') { + // Show loading indication + submitButton.setAttribute('data-kt-indicator', 'on'); + + // Disable button to avoid multiple click + submitButton.disabled = true; + + // Simulate ajax request + setTimeout(function() { + // Hide loading indication + submitButton.removeAttribute('data-kt-indicator'); + + // Enable button + submitButton.disabled = false; + + // Show message popup. For more info check the plugin's official documentation: https://sweetalert2.github.io/ + Swal.fire({ + text: "You have successfully registered!", + icon: "success", + buttonsStyling: false, + confirmButtonText: "Ok, got it!", + customClass: { + confirmButton: "btn btn-primary" + } + }).then(function (result) { + if (result.isConfirmed) { + form.reset(); // reset form + passwordMeter.reset(); // reset password meter + + //form.submit(); // submit form + var redirectUrl = form.getAttribute('data-kt-redirect-url'); + if (redirectUrl) { + location.href = redirectUrl; + } + } + }); + }, 1500); + } else { + // Show error popup. For more info check the plugin's official documentation: https://sweetalert2.github.io/ + Swal.fire({ + text: "Sorry, looks like there are some errors detected, please try again.", + icon: "error", + buttonsStyling: false, + confirmButtonText: "Ok, got it!", + customClass: { + confirmButton: "btn btn-primary" + } + }); + } + }); + }); + + form.querySelector('input[name="password"]').addEventListener('input', function() { + if (this.value.length > 0) { + validator.updateFieldStatus('password', 'NotValidated'); + } + }); + } + + // Password input validation + var validatePassword = function() { + return (passwordMeter.getScore() === 100); + } + + // Public functions + return { + // Initialization + init: function() { + form = document.querySelector('#kt_free_trial_form'); + submitButton = document.querySelector('#kt_free_trial_submit'); + passwordMeter = KTPasswordMeter.getInstance(form.querySelector('[data-kt-password-meter="true"]')); + + handleForm(); + } + }; +}(); + +// On document ready +KTUtil.onDOMContentLoaded(function() { + KTSignupFreeTrial.init(); +}); + + + \ No newline at end of file diff --git a/resources/_keenthemes/src/js/custom/authentication/sign-up/general.js b/resources/_keenthemes/src/js/custom/authentication/sign-up/general.js new file mode 100644 index 0000000..e40e412 --- /dev/null +++ b/resources/_keenthemes/src/js/custom/authentication/sign-up/general.js @@ -0,0 +1,184 @@ +"use strict"; + +// Class definition +var KTSignupGeneral = function() { + // Elements + var form; + var submitButton; + var validator; + var passwordMeter; + + // Handle form + var handleForm = function(e) { + // Init form validation rules. For more info check the FormValidation plugin's official documentation:https://formvalidation.io/ + validator = FormValidation.formValidation( + form, + { + fields: { + 'first-name': { + validators: { + notEmpty: { + message: 'First Name is required' + } + } + }, + 'last-name': { + validators: { + notEmpty: { + message: 'Last Name is required' + } + } + }, + 'email': { + validators: { + regexp: { + regexp: /^[^\s@]+@[^\s@]+\.[^\s@]+$/, + message: 'The value is not a valid email address', + }, + notEmpty: { + message: 'Email address is required' + } + } + }, + 'password': { + validators: { + notEmpty: { + message: 'The password is required' + }, + callback: { + message: 'Please enter valid password', + callback: function(input) { + if (input.value.length > 0) { + return validatePassword(); + } + } + } + } + }, + 'confirm-password': { + validators: { + notEmpty: { + message: 'The password confirmation is required' + }, + identical: { + compare: function() { + return form.querySelector('[name="password"]').value; + }, + message: 'The password and its confirm are not the same' + } + } + }, + 'toc': { + validators: { + notEmpty: { + message: 'You must accept the terms and conditions' + } + } + } + }, + plugins: { + trigger: new FormValidation.plugins.Trigger({ + event: { + password: false + } + }), + bootstrap: new FormValidation.plugins.Bootstrap5({ + rowSelector: '.fv-row', + eleInvalidClass: '', // comment to enable invalid state icons + eleValidClass: '' // comment to enable valid state icons + }) + } + } + ); + + // Handle form submit + submitButton.addEventListener('click', function (e) { + e.preventDefault(); + + validator.revalidateField('password'); + + validator.validate().then(function(status) { + if (status == 'Valid') { + // Show loading indication + submitButton.setAttribute('data-kt-indicator', 'on'); + + // Disable button to avoid multiple click + submitButton.disabled = true; + + // Simulate ajax request + setTimeout(function() { + // Hide loading indication + submitButton.removeAttribute('data-kt-indicator'); + + // Enable button + submitButton.disabled = false; + + // Show message popup. For more info check the plugin's official documentation: https://sweetalert2.github.io/ + Swal.fire({ + text: "You have successfully reset your password!", + icon: "success", + buttonsStyling: false, + confirmButtonText: "Ok, got it!", + customClass: { + confirmButton: "btn btn-primary" + } + }).then(function (result) { + if (result.isConfirmed) { + form.reset(); // reset form + passwordMeter.reset(); // reset password meter + //form.submit(); + + //form.submit(); // submit form + var redirectUrl = form.getAttribute('data-kt-redirect-url'); + if (redirectUrl) { + location.href = redirectUrl; + } + } + }); + }, 1500); + } else { + // Show error popup. For more info check the plugin's official documentation: https://sweetalert2.github.io/ + Swal.fire({ + text: "Sorry, looks like there are some errors detected, please try again.", + icon: "error", + buttonsStyling: false, + confirmButtonText: "Ok, got it!", + customClass: { + confirmButton: "btn btn-primary" + } + }); + } + }); + }); + + // Handle password input + form.querySelector('input[name="password"]').addEventListener('input', function() { + if (this.value.length > 0) { + validator.updateFieldStatus('password', 'NotValidated'); + } + }); + } + + // Password input validation + var validatePassword = function() { + return (passwordMeter.getScore() === 100); + } + + // Public functions + return { + // Initialization + init: function() { + // Elements + form = document.querySelector('#kt_sign_up_form'); + submitButton = document.querySelector('#kt_sign_up_submit'); + passwordMeter = KTPasswordMeter.getInstance(form.querySelector('[data-kt-password-meter="true"]')); + + handleForm (); + } + }; +}(); + +// On document ready +KTUtil.onDOMContentLoaded(function() { + KTSignupGeneral.init(); +}); diff --git a/resources/_keenthemes/src/js/custom/landing.js b/resources/_keenthemes/src/js/custom/landing.js new file mode 100644 index 0000000..efd63bd --- /dev/null +++ b/resources/_keenthemes/src/js/custom/landing.js @@ -0,0 +1,29 @@ +"use strict"; + +// Class definition +var KTLandingPage = function () { + // Private methods + var initTyped = function() { + var typed = new Typed("#kt_landing_hero_text", { + strings: ["The Best Theme Ever", "The Most Trusted Theme", "#1 Selling Theme"], + typeSpeed: 50 + }); + } + + // Public methods + return { + init: function () { + //initTyped(); + } + } +}(); + +// Webpack support +if (typeof module !== 'undefined') { + module.exports = KTLandingPage; +} + +// On document ready +KTUtil.onDOMContentLoaded(function() { + KTLandingPage.init(); +}); diff --git a/resources/_keenthemes/src/js/custom/pages/careers/apply.js b/resources/_keenthemes/src/js/custom/pages/careers/apply.js new file mode 100644 index 0000000..9210dcf --- /dev/null +++ b/resources/_keenthemes/src/js/custom/pages/careers/apply.js @@ -0,0 +1,179 @@ +"use strict"; + +// Class definition +var KTCareersApply = function () { + var submitButton; + var validator; + var form; + + // Init form inputs + var initForm = function() { + // Team assign. For more info, plase visit the official plugin site: https://select2.org/ + $(form.querySelector('[name="position"]')).on('change', function() { + // Revalidate the field when an option is chosen + validator.revalidateField('position'); + }); + + // Start date. For more info, please visit the official plugin site: https://flatpickr.js.org/ + var startDate = $(form.querySelector('[name="start_date"]')); + startDate.flatpickr({ + enableTime: false, + dateFormat: "d, M Y", + }); + } + + // Handle form validation and submittion + var handleForm = function() { + // Stepper custom navigation + + // Init form validation rules. For more info check the FormValidation plugin's official documentation:https://formvalidation.io/ + validator = FormValidation.formValidation( + form, + { + fields: { + 'first_name': { + validators: { + notEmpty: { + message: 'First name is required' + } + } + }, + 'last_name': { + validators: { + notEmpty: { + message: 'Last name is required' + } + } + }, + 'age': { + validators: { + notEmpty: { + message: 'Age is required' + } + } + }, + 'city': { + validators: { + notEmpty: { + message: 'City is required' + } + } + }, + 'email': { + validators: { + notEmpty: { + message: 'Email address is required' + }, + emailAddress: { + message: 'The value is not a valid email address' + } + } + }, + 'salary': { + validators: { + notEmpty: { + message: 'Expected salary is required' + } + } + }, + 'position': { + validators: { + notEmpty: { + message: 'Position is required' + } + } + }, + 'start_date': { + validators: { + notEmpty: { + message: 'Start date is required' + } + } + }, + }, + plugins: { + trigger: new FormValidation.plugins.Trigger(), + bootstrap: new FormValidation.plugins.Bootstrap5({ + rowSelector: '.fv-row', + eleInvalidClass: '', + eleValidClass: '' + }) + } + } + ); + + // Action buttons + submitButton.addEventListener('click', function (e) { + e.preventDefault(); + + // Validate form before submit + if (validator) { + validator.validate().then(function (status) { + console.log('validated!'); + + if (status == 'Valid') { + submitButton.setAttribute('data-kt-indicator', 'on'); + + // Disable button to avoid multiple click + submitButton.disabled = true; + + setTimeout(function() { + submitButton.removeAttribute('data-kt-indicator'); + + // Enable button + submitButton.disabled = false; + + Swal.fire({ + text: "Form has been successfully submitted!", + icon: "success", + buttonsStyling: false, + confirmButtonText: "Ok, got it!", + customClass: { + confirmButton: "btn btn-primary" + } + }).then(function (result) { + if (result.isConfirmed) { + //form.submit(); + } + }); + + //form.submit(); // Submit form + }, 2000); + } else { + // Scroll top + + // Show error popuo. For more info check the plugin's official documentation: https://sweetalert2.github.io/ + Swal.fire({ + text: "Sorry, looks like there are some errors detected, please try again.", + icon: "error", + buttonsStyling: false, + confirmButtonText: "Ok, got it!", + customClass: { + confirmButton: "btn btn-primary" + } + }).then(function (result) { + KTUtil.scrollTop(); + }); + } + }); + } + }); + } + + return { + // Public functions + init: function () { + // Elements + form = document.querySelector('#kt_careers_form'); + submitButton = document.getElementById('kt_careers_submit_button'); + + initForm(); + handleForm(); + } + }; +}(); + +// On document ready +KTUtil.onDOMContentLoaded(function () { + KTCareersApply.init(); +}); \ No newline at end of file diff --git a/resources/_keenthemes/src/js/custom/pages/general/contact.js b/resources/_keenthemes/src/js/custom/pages/general/contact.js new file mode 100644 index 0000000..67f621f --- /dev/null +++ b/resources/_keenthemes/src/js/custom/pages/general/contact.js @@ -0,0 +1,206 @@ +"use strict"; + +// Class definition +var KTContactApply = function () { + var submitButton; + var validator; + var form; + var selectedlocation; + + // Private functions + var initMap = function(elementId) { + // Check if Leaflet is included + if (!L) { + return; + } + + // Define Map Location + var leaflet = L.map(elementId, { + center: [40.725, -73.985], + zoom: 30 + }); + + // Init Leaflet Map. For more info check the plugin's documentation: https://leafletjs.com/ + L.tileLayer('https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png', { + attribution: '© OpenStreetMap contributors' + }).addTo(leaflet); + + // Set Geocoding + var geocodeService; + if (typeof L.esri.Geocoding === 'undefined') { + geocodeService = L.esri.geocodeService(); + } else { + geocodeService = L.esri.Geocoding.geocodeService(); + } + + // Define Marker Layer + var markerLayer = L.layerGroup().addTo(leaflet); + + // Set Custom SVG icon marker + var leafletIcon = L.divIcon({ + html: ``, + bgPos: [10, 10], + iconAnchor: [20, 37], + popupAnchor: [0, -37], + className: 'leaflet-marker' + }); + + // Show current address + L.marker([40.724716, -73.984789], { icon: leafletIcon }).addTo(markerLayer).bindPopup('430 E 6th St, New York, 10009.', { closeButton: false }).openPopup(); + + // Map onClick Action + leaflet.on('click', function (e) { + geocodeService.reverse().latlng(e.latlng).run(function (error, result) { + if (error) { + return; + } + markerLayer.clearLayers(); + selectedlocation = result.address.Match_addr; + L.marker(result.latlng, { icon: leafletIcon }).addTo(markerLayer).bindPopup(result.address.Match_addr, { closeButton: false }).openPopup(); + + // Show popup confirmation. For more info check the plugin's official documentation: https://sweetalert2.github.io/ + Swal.fire({ + html: 'Your selected - "' + selectedlocation + ' - ' + result.latlng + '".', + icon: "success", + buttonsStyling: false, + confirmButtonText: "Ok, got it!", + customClass: { + confirmButton: "btn btn-primary" + } + }).then(function (result) { + // Confirmed + }); + }); + }); + } + + // Init form inputs + var initForm = function() { + // Team assign. For more info, plase visit the official plugin site: https://select2.org/ + $(form.querySelector('[name="position"]')).on('change', function() { + // Revalidate the field when an option is chosen + validator.revalidateField('position'); + }); + } + + // Handle form validation and submittion + var handleForm = function() { + // Stepper custom navigation + + // Init form validation rules. For more info check the FormValidation plugin's official documentation:https://formvalidation.io/ + validator = FormValidation.formValidation( + form, + { + fields: { + 'name': { + validators: { + notEmpty: { + message: 'Name is required' + } + } + }, + 'email': { + validators: { + notEmpty: { + message: 'Email address is required' + }, + emailAddress: { + message: 'The value is not a valid email address' + } + } + }, + 'message': { + validators: { + notEmpty: { + message: 'Message is required' + } + } + } + }, + plugins: { + trigger: new FormValidation.plugins.Trigger(), + bootstrap: new FormValidation.plugins.Bootstrap5({ + rowSelector: '.fv-row', + eleInvalidClass: '', + eleValidClass: '' + }) + } + } + ); + + // Action buttons + submitButton.addEventListener('click', function (e) { + e.preventDefault(); + + // Validate form before submit + if (validator) { + validator.validate().then(function (status) { + console.log('validated!'); + + if (status == 'Valid') { + submitButton.setAttribute('data-kt-indicator', 'on'); + + // Disable button to avoid multiple click + submitButton.disabled = true; + + setTimeout(function() { + submitButton.removeAttribute('data-kt-indicator'); + + // Enable button + submitButton.disabled = false; + + Swal.fire({ + text: "Form has been successfully submitted!", + icon: "success", + buttonsStyling: false, + confirmButtonText: "Ok, got it!", + customClass: { + confirmButton: "btn btn-primary" + } + }).then(function (result) { + if (result.isConfirmed) { + //form.submit(); + } + }); + + //form.submit(); // Submit form + }, 2000); + } else { + // Scroll top + + // Show error popuo. For more info check the plugin's official documentation: https://sweetalert2.github.io/ + Swal.fire({ + text: "Sorry, looks like there are some errors detected, please try again.", + icon: "error", + buttonsStyling: false, + confirmButtonText: "Ok, got it!", + customClass: { + confirmButton: "btn btn-primary" + } + }).then(function (result) { + KTUtil.scrollTop(); + }); + } + }); + } + }); + } + + return { + // Public functions + init: function () { + // Elements + form = document.querySelector('#kt_contact_form'); + submitButton = document.getElementById('kt_contact_submit_button'); + + initForm(); + handleForm(); + initMap('kt_contact_map'); + } + }; +}(); + +// On document ready +KTUtil.onDOMContentLoaded(function () { + KTContactApply.init(); +}); \ No newline at end of file diff --git a/resources/_keenthemes/src/js/custom/pages/general/pos.js b/resources/_keenthemes/src/js/custom/pages/general/pos.js new file mode 100644 index 0000000..181b77a --- /dev/null +++ b/resources/_keenthemes/src/js/custom/pages/general/pos.js @@ -0,0 +1,66 @@ +"use strict"; + +// Class definition +var KTPosSystem = function () { + var form; + + var moneyFormat = wNumb({ + mark: '.', + thousand: ',', + decimals: 2, + prefix: '$', + }); + + var calculateTotals = function() { + var items = [].slice.call(form.querySelectorAll('[data-kt-pos-element="item-total"]')); + var total = 0; + var tax = 12; + var discount = 8; + var grantTotal = 0; + + items.map(function (item) { + total += moneyFormat.from(item.innerHTML); + }); + + grantTotal = total; + grantTotal -= discount; + grantTotal += tax * 8 / 100; + + form.querySelector('[data-kt-pos-element="total"]').innerHTML = moneyFormat.to(total); + form.querySelector('[data-kt-pos-element="grant-total"]').innerHTML = moneyFormat.to(grantTotal); + } + + var handleQuantity = function() { + var dialers = [].slice.call(form.querySelectorAll('[data-kt-pos-element="item"] [data-kt-dialer="true"]')); + + dialers.map(function (dialer) { + var dialerObject = KTDialer.getInstance(dialer); + + dialerObject.on('kt.dialer.changed', function(){ + var quantity = parseInt(dialerObject.getValue()); + var item = dialerObject.getElement().closest('[data-kt-pos-element="item"]'); + var value = parseInt(item.getAttribute("data-kt-pos-item-price")); + var total = quantity * value; + + item.querySelector('[data-kt-pos-element="item-total"]').innerHTML = moneyFormat.to(total); + + calculateTotals(); + }); + }); + } + + return { + // Public functions + init: function () { + // Elements + form = document.querySelector('#kt_pos_form'); + + handleQuantity(); + } + }; +}(); + +// On document ready +KTUtil.onDOMContentLoaded(function () { + KTPosSystem.init(); +}); \ No newline at end of file diff --git a/resources/_keenthemes/src/js/custom/pages/pricing/general.js b/resources/_keenthemes/src/js/custom/pages/pricing/general.js new file mode 100644 index 0000000..0eb564c --- /dev/null +++ b/resources/_keenthemes/src/js/custom/pages/pricing/general.js @@ -0,0 +1,63 @@ +"use strict"; + +// Class definition +var KTPricingGeneral = function () { + // Private variables + var element; + var planPeriodMonthButton; + var planPeriodAnnualButton; + + var changePlanPrices = function(type) { + var items = [].slice.call(element.querySelectorAll('[data-kt-plan-price-month]')); + + items.map(function (item) { + var monthPrice = item.getAttribute('data-kt-plan-price-month'); + var annualPrice = item.getAttribute('data-kt-plan-price-annual'); + + if ( type === 'month' ) { + item.innerHTML = monthPrice; + } else if ( type === 'annual' ) { + item.innerHTML = annualPrice; + } + }); + } + + var handlePlanPeriodSelection = function(e) { + + // Handle period change + planPeriodMonthButton.addEventListener('click', function (e) { + e.preventDefault(); + + planPeriodMonthButton.classList.add('active'); + planPeriodAnnualButton.classList.remove('active'); + + changePlanPrices('month'); + }); + + planPeriodAnnualButton.addEventListener('click', function (e) { + e.preventDefault(); + + planPeriodMonthButton.classList.remove('active'); + planPeriodAnnualButton.classList.add('active'); + + changePlanPrices('annual'); + }); + } + + // Public methods + return { + init: function () { + element = document.querySelector('#kt_pricing'); + planPeriodMonthButton = element.querySelector('[data-kt-plan="month"]'); + planPeriodAnnualButton = element.querySelector('[data-kt-plan="annual"]'); + + // Handlers + handlePlanPeriodSelection(); + } + } +}(); + +// On document ready +KTUtil.onDOMContentLoaded(function() { + KTPricingGeneral.init(); +}); diff --git a/resources/_keenthemes/src/js/custom/pages/social/feeds.js b/resources/_keenthemes/src/js/custom/pages/social/feeds.js new file mode 100644 index 0000000..9788415 --- /dev/null +++ b/resources/_keenthemes/src/js/custom/pages/social/feeds.js @@ -0,0 +1,95 @@ +"use strict"; + +// Class definition +var KTSocialFeeds = function () { + // init variables + var morePostsBtn = document.getElementById('kt_social_feeds_more_posts_btn'); + var morePosts = document.getElementById('kt_social_feeds_more_posts'); + var posts = document.getElementById('kt_social_feeds_posts'); + + var postInput = document.getElementById('kt_social_feeds_post_input'); + var postBtn = document.getElementById('kt_social_feeds_post_btn'); + var newPost = document.getElementById('kt_social_feeds_new_post'); + + // Private functions + var handleMorePosts = function () { + // Show more click + morePostsBtn.addEventListener('click', function (e) { + // Cancel default behavior + e.preventDefault(); + + // Show indicator + morePostsBtn.setAttribute('data-kt-indicator', 'on'); + + // Disable button to avoid multiple click + morePostsBtn.disabled = true; + + // Simulate form submission process + setTimeout(function() { + // Hide loading indication + morePostsBtn.removeAttribute('data-kt-indicator'); + + // Enable button + morePostsBtn.disabled = false; + + // Hide button + morePostsBtn.classList.add('d-none'); + + // Show card + morePosts.classList.remove('d-none'); + + // Scroll to + KTUtil.scrollTo(morePosts, 200); + }, 1000); + }); + } + + // Private functions + var handleNewPost = function () { + // Show more click + postBtn.addEventListener('click', function (e) { + // Cancel default behavior + e.preventDefault(); + + // Show indicator + postBtn.setAttribute('data-kt-indicator', 'on'); + + // Disable button to avoid multiple click + postBtn.disabled = true; + + // Simulate form submission process + setTimeout(function() { + // Hide loading indication + postBtn.removeAttribute('data-kt-indicator'); + + // Enable button + postBtn.disabled = false; + + var message = postInput.value; + var post = newPost.querySelector('.card').cloneNode(true); + + posts.prepend(post); + + if (message.length > 0) { + post.querySelector('[data-kt-post-element="content"]').innerHTML = message; + } + + // Scroll to post + KTUtil.scrollTo(post, 200); + }, 1000); + }); + } + + // Public methods + return { + init: function () { + handleMorePosts(); + handleNewPost(); + } + } +}(); + +// On document ready +KTUtil.onDOMContentLoaded(function() { + KTSocialFeeds.init(); +}); diff --git a/resources/_keenthemes/src/js/custom/pages/user-profile/general.js b/resources/_keenthemes/src/js/custom/pages/user-profile/general.js new file mode 100644 index 0000000..3b248aa --- /dev/null +++ b/resources/_keenthemes/src/js/custom/pages/user-profile/general.js @@ -0,0 +1,153 @@ +"use strict"; + +// Class definition +var KTProfileGeneral = function () { + // init variables + var showMoreButton; + var showMoreCards; + var followBtn; + var profileNav; + var pageToolbar; + + // Private functions + var handleShowMore = function () { + if (!showMoreButton) { + return; + } + + // Show more click + showMoreButton.addEventListener('click', function (e) { + showMoreButton.setAttribute('data-kt-indicator', 'on'); + + // Disable button to avoid multiple click + showMoreButton.disabled = true; + + setTimeout(function() { + // Hide loading indication + showMoreButton.removeAttribute('data-kt-indicator'); + + // Enable button + showMoreButton.disabled = false; + + // Hide button + showMoreButton.classList.add('d-none'); + + // Show card + showMoreCards.classList.remove('d-none'); + + // Scroll to card + KTUtil.scrollTo(showMoreCards, 200); + }, 2000); + }); + } + + // Follow button + var handleUFollow = function() { + if (!followBtn) { + return; + } + + followBtn.addEventListener('click', function(e){ + // Prevent default action + e.preventDefault(); + + // Show indicator + followBtn.setAttribute('data-kt-indicator', 'on'); + + // Disable button to avoid multiple click + followBtn.disabled = true; + + // Check button state + if (followBtn.classList.contains("btn-success")) { + setTimeout(function() { + followBtn.removeAttribute('data-kt-indicator'); + followBtn.classList.remove("btn-success"); + followBtn.classList.add("btn-light"); + followBtn.querySelector("i").classList.add("d-none"); + followBtn.querySelector(".indicator-label").innerHTML = 'Follow'; + followBtn.disabled = false; + }, 1500); + } else { + setTimeout(function() { + followBtn.removeAttribute('data-kt-indicator'); + followBtn.classList.add("btn-success"); + followBtn.classList.remove("btn-light"); + followBtn.querySelector("i").classList.remove("d-none"); + followBtn.querySelector(".indicator-label").innerHTML = 'Following'; + followBtn.disabled = false; + }, 1000); + } + }); + } + + var handleFollowers = function() { + KTUtil.on(document.body, '[data-kt-follow-btn="true"]', 'click', function(e) { + e.preventDefault(); + + var el = this; + var label = el.querySelector(".indicator-label"); + var following = el.querySelector(".following"); + var follow = el.querySelector(".follow"); + + el.setAttribute('data-kt-indicator', 'on'); + el.disabled = true; + follow.classList.add("d-none"); + following.classList.add("d-none") + + setTimeout(function() { + el.removeAttribute('data-kt-indicator'); + el.disabled = false; + + if (el.classList.contains("btn-light-primary")) { // following + el.classList.remove("btn-light-primary"); + el.classList.add("btn-light"); + + follow.classList.remove("d-none"); + + label.innerHTML = "Follow"; + } else { // follow + el.classList.add("btn-light-primary"); + el.classList.remove("btn-light"); + + following.classList.remove("d-none"); + + label.innerHTML = "Following"; + } + }, 2000); + }); + } + + var handlePageScroll = function() { + if ( profileNav && profileNav.getAttribute("data-kt-sticky") && KTUtil.isBreakpointUp('lg')) { + + if ( localStorage.getItem('nav-initialized') === "1") { + window.scroll({ + top: parseInt(profileNav.getAttribute("data-kt-page-scroll-position")), + behavior: 'smooth' + }); + } + + localStorage.setItem('nav-initialized', "1"); + } + } + + // Public methods + return { + init: function () { + showMoreButton = document.querySelector('#kt_followers_show_more_button'); + showMoreCards = document.querySelector('#kt_followers_show_more_cards'); + followBtn = document.querySelector('#kt_user_follow_button'); + profileNav = document.querySelector('#kt_user_profile_nav'); + + handleShowMore(); + handleUFollow(); + handleFollowers(); + handlePageScroll(); + } + } +}(); + +// On document ready +KTUtil.onDOMContentLoaded(function() { + KTProfileGeneral.init(); +}); \ No newline at end of file diff --git a/resources/_keenthemes/src/js/custom/utilities/modals/bidding.js b/resources/_keenthemes/src/js/custom/utilities/modals/bidding.js new file mode 100644 index 0000000..25bf3ec --- /dev/null +++ b/resources/_keenthemes/src/js/custom/utilities/modals/bidding.js @@ -0,0 +1,264 @@ +"use strict"; + +// Class definition +var KTModalBidding = function () { + // Shared variables + var element; + var form; + var modal; + + // Private functions + const initForm = () => { + // Dynamically create validation non-empty rule + const requiredFields = form.querySelectorAll('.required'); + var detectedField; + var validationFields = { + fields: {}, + + plugins: { + trigger: new FormValidation.plugins.Trigger(), + bootstrap: new FormValidation.plugins.Bootstrap5({ + rowSelector: '.fv-row', + eleInvalidClass: '', + eleValidClass: '' + }) + } + } + + // Detect required fields + requiredFields.forEach(el => { + const input = el.closest('.fv-row').querySelector('input'); + if (input) { + detectedField = input; + } + + const textarea = el.closest('.fv-row').querySelector('textarea'); + if (textarea) { + detectedField = textarea; + } + + const select = el.closest('.fv-row').querySelector('select'); + if (select) { + detectedField = select; + } + + // Add validation rule + const name = detectedField.getAttribute('name'); + validationFields.fields[name] = { + validators: { + notEmpty: { + message: el.innerText + ' is required' + } + } + } + }); + + // Init form validation rules. For more info check the FormValidation plugin's official documentation:https://formvalidation.io/ + var validator = FormValidation.formValidation( + form, + validationFields + ); + + // Submit button handler + const submitButton = form.querySelector('[data-kt-modal-action-type="submit"]'); + submitButton.addEventListener('click', function (e) { + // Prevent default button action + e.preventDefault(); + + // Validate form before submit + if (validator) { + validator.validate().then(function (status) { + console.log('validated!'); + + if (status == 'Valid') { + // Show loading indication + submitButton.setAttribute('data-kt-indicator', 'on'); + + // Disable button to avoid multiple click + submitButton.disabled = true; + + // Simulate form submission. For more info check the plugin's official documentation: https://sweetalert2.github.io/ + setTimeout(function () { + // Remove loading indication + submitButton.removeAttribute('data-kt-indicator'); + + // Enable button + submitButton.disabled = false; + + // Show popup confirmation + Swal.fire({ + text: "Form has been successfully submitted!", + icon: "success", + buttonsStyling: false, + confirmButtonText: "Ok, got it!", + customClass: { + confirmButton: "btn btn-primary" + } + }).then(function () { + //form.submit(); // Submit form + form.reset(); + modal.hide(); + }); + }, 2000); + } else { + // Show popup error + Swal.fire({ + text: "Oops! There are some error(s) detected.", + icon: "error", + buttonsStyling: false, + confirmButtonText: "Ok, got it!", + customClass: { + confirmButton: "btn btn-primary" + } + }); + } + }); + } + }); + } + + // Init Select2 template options + const initSelect2Templates = () => { + const elements = form.querySelectorAll('[data-kt-modal-bidding-type] select'); + + if (!elements) { + return; + } + + // Format options + const format = (item) => { + if (!item.id) { + return item.text; + } + + var url = 'assets/media/' + item.element.getAttribute('data-kt-bidding-modal-option-icon'); + var img = $("", { + class: "rounded-circle me-2", + width: 26, + src: url + }); + var span = $("", { + text: " " + item.text + }); + span.prepend(img); + return span; + } + + elements.forEach(el => { + // Init Select2 --- more info: https://select2.org/ + $(el).select2({ + minimumResultsForSearch: Infinity, + templateResult: function (item) { + return format(item); + } + }); + }); + } + + // Handle bid options + const handleBidOptions = () => { + const options = form.querySelectorAll('[data-kt-modal-bidding="option"]'); + const inputEl = form.querySelector('[name="bid_amount"]'); + options.forEach(option => { + option.addEventListener('click', e => { + e.preventDefault(); + + inputEl.value = e.target.innerText; + }); + }); + } + + // Handle currency selector + const handleCurrencySelector = () => { + const element = form.querySelector('.form-select[name="currency_type"]'); + + // Select2 event listener + $(element).on('select2:select', function (e) { + const value = e.params.data; + swapCurrency(value); + }); + + const swapCurrency = (target) => { + console.log(target); + const currencies = form.querySelectorAll('[data-kt-modal-bidding-type]'); + currencies.forEach(currency => { + currency.classList.add('d-none'); + + if (currency.getAttribute('data-kt-modal-bidding-type') === target.id) { + currency.classList.remove('d-none'); + } + }); + } + } + + // Handle cancel modal + const handleCancelAction = () => { + const cancelButton = element.querySelector('[data-kt-modal-action-type="cancel"]'); + const closeButton = element.querySelector('[data-kt-modal-action-type="close"]'); + cancelButton.addEventListener('click', e => { + cancelAction(e); + }); + + closeButton.addEventListener('click', e => { + cancelAction(e); + }); + + const cancelAction = (e) => { + e.preventDefault(); + + Swal.fire({ + text: "Are you sure you would like to cancel?", + icon: "warning", + showCancelButton: true, + buttonsStyling: false, + confirmButtonText: "Yes, cancel it!", + cancelButtonText: "No, return", + customClass: { + confirmButton: "btn btn-primary", + cancelButton: "btn btn-active-light" + } + }).then(function (result) { + if (result.value) { + form.reset(); // Reset form + modal.hide(); // Hide modal + } else if (result.dismiss === 'cancel') { + Swal.fire({ + text: "Your form has not been cancelled!.", + icon: "error", + buttonsStyling: false, + confirmButtonText: "Ok, got it!", + customClass: { + confirmButton: "btn btn-primary", + } + }); + } + }); + } + } + + + // Public methods + return { + init: function () { + // Elements + element = document.querySelector('#kt_modal_bidding'); + form = document.getElementById('kt_modal_bidding_form'); + modal = new bootstrap.Modal(element); + + if (!form) { + return; + } + + initForm(); + initSelect2Templates(); + handleBidOptions(); + handleCurrencySelector(); + handleCancelAction(); + } + }; +}(); + +// On document ready +KTUtil.onDOMContentLoaded(function () { + KTModalBidding.init(); +}); diff --git a/resources/_keenthemes/src/js/custom/utilities/modals/create-account.js b/resources/_keenthemes/src/js/custom/utilities/modals/create-account.js new file mode 100644 index 0000000..9f5059f --- /dev/null +++ b/resources/_keenthemes/src/js/custom/utilities/modals/create-account.js @@ -0,0 +1,357 @@ +"use strict"; + +// Class definition +var KTCreateAccount = function () { + // Elements + var modal; + var modalEl; + + var stepper; + var form; + var formSubmitButton; + var formContinueButton; + + // Variables + var stepperObj; + var validations = []; + + // Private Functions + var initStepper = function () { + // Initialize Stepper + stepperObj = new KTStepper(stepper); + + // Stepper change event + stepperObj.on('kt.stepper.changed', function (stepper) { + if (stepperObj.getCurrentStepIndex() === 4) { + formSubmitButton.classList.remove('d-none'); + formSubmitButton.classList.add('d-inline-block'); + formContinueButton.classList.add('d-none'); + } else if (stepperObj.getCurrentStepIndex() === 5) { + formSubmitButton.classList.add('d-none'); + formContinueButton.classList.add('d-none'); + } else { + formSubmitButton.classList.remove('d-inline-block'); + formSubmitButton.classList.remove('d-none'); + formContinueButton.classList.remove('d-none'); + } + }); + + // Validation before going to next page + stepperObj.on('kt.stepper.next', function (stepper) { + console.log('stepper.next'); + + // Validate form before change stepper step + var validator = validations[stepper.getCurrentStepIndex() - 1]; // get validator for currnt step + + if (validator) { + validator.validate().then(function (status) { + console.log('validated!'); + + if (status == 'Valid') { + stepper.goNext(); + + KTUtil.scrollTop(); + } else { + Swal.fire({ + text: "Sorry, looks like there are some errors detected, please try again.", + icon: "error", + buttonsStyling: false, + confirmButtonText: "Ok, got it!", + customClass: { + confirmButton: "btn btn-light" + } + }).then(function () { + KTUtil.scrollTop(); + }); + } + }); + } else { + stepper.goNext(); + + KTUtil.scrollTop(); + } + }); + + // Prev event + stepperObj.on('kt.stepper.previous', function (stepper) { + console.log('stepper.previous'); + + stepper.goPrevious(); + KTUtil.scrollTop(); + }); + } + + var handleForm = function() { + formSubmitButton.addEventListener('click', function (e) { + // Validate form before change stepper step + var validator = validations[3]; // get validator for last form + + validator.validate().then(function (status) { + console.log('validated!'); + + if (status == 'Valid') { + // Prevent default button action + e.preventDefault(); + + // Disable button to avoid multiple click + formSubmitButton.disabled = true; + + // Show loading indication + formSubmitButton.setAttribute('data-kt-indicator', 'on'); + + // Simulate form submission + setTimeout(function() { + // Hide loading indication + formSubmitButton.removeAttribute('data-kt-indicator'); + + // Enable button + formSubmitButton.disabled = false; + + stepperObj.goNext(); + }, 2000); + } else { + Swal.fire({ + text: "Sorry, looks like there are some errors detected, please try again.", + icon: "error", + buttonsStyling: false, + confirmButtonText: "Ok, got it!", + customClass: { + confirmButton: "btn btn-light" + } + }).then(function () { + KTUtil.scrollTop(); + }); + } + }); + }); + + // Expiry month. For more info, plase visit the official plugin site: https://select2.org/ + $(form.querySelector('[name="card_expiry_month"]')).on('change', function() { + // Revalidate the field when an option is chosen + validations[3].revalidateField('card_expiry_month'); + }); + + // Expiry year. For more info, plase visit the official plugin site: https://select2.org/ + $(form.querySelector('[name="card_expiry_year"]')).on('change', function() { + // Revalidate the field when an option is chosen + validations[3].revalidateField('card_expiry_year'); + }); + + // Expiry year. For more info, plase visit the official plugin site: https://select2.org/ + $(form.querySelector('[name="business_type"]')).on('change', function() { + // Revalidate the field when an option is chosen + validations[2].revalidateField('business_type'); + }); + } + + var initValidation = function () { + // Init form validation rules. For more info check the FormValidation plugin's official documentation:https://formvalidation.io/ + // Step 1 + validations.push(FormValidation.formValidation( + form, + { + fields: { + account_type: { + validators: { + notEmpty: { + message: 'Account type is required' + } + } + } + }, + plugins: { + trigger: new FormValidation.plugins.Trigger(), + bootstrap: new FormValidation.plugins.Bootstrap5({ + rowSelector: '.fv-row', + eleInvalidClass: '', + eleValidClass: '' + }) + } + } + )); + + // Step 2 + validations.push(FormValidation.formValidation( + form, + { + fields: { + 'account_team_size': { + validators: { + notEmpty: { + message: 'Time size is required' + } + } + }, + 'account_name': { + validators: { + notEmpty: { + message: 'Account name is required' + } + } + }, + 'account_plan': { + validators: { + notEmpty: { + message: 'Account plan is required' + } + } + } + }, + plugins: { + trigger: new FormValidation.plugins.Trigger(), + // Bootstrap Framework Integration + bootstrap: new FormValidation.plugins.Bootstrap5({ + rowSelector: '.fv-row', + eleInvalidClass: '', + eleValidClass: '' + }) + } + } + )); + + // Step 3 + validations.push(FormValidation.formValidation( + form, + { + fields: { + 'business_name': { + validators: { + notEmpty: { + message: 'Busines name is required' + } + } + }, + 'business_descriptor': { + validators: { + notEmpty: { + message: 'Busines descriptor is required' + } + } + }, + 'business_type': { + validators: { + notEmpty: { + message: 'Busines type is required' + } + } + }, + 'business_email': { + validators: { + notEmpty: { + message: 'Busines email is required' + }, + emailAddress: { + message: 'The value is not a valid email address' + } + } + } + }, + plugins: { + trigger: new FormValidation.plugins.Trigger(), + // Bootstrap Framework Integration + bootstrap: new FormValidation.plugins.Bootstrap5({ + rowSelector: '.fv-row', + eleInvalidClass: '', + eleValidClass: '' + }) + } + } + )); + + // Step 4 + validations.push(FormValidation.formValidation( + form, + { + fields: { + 'card_name': { + validators: { + notEmpty: { + message: 'Name on card is required' + } + } + }, + 'card_number': { + validators: { + notEmpty: { + message: 'Card member is required' + }, + creditCard: { + message: 'Card number is not valid' + } + } + }, + 'card_expiry_month': { + validators: { + notEmpty: { + message: 'Month is required' + } + } + }, + 'card_expiry_year': { + validators: { + notEmpty: { + message: 'Year is required' + } + } + }, + 'card_cvv': { + validators: { + notEmpty: { + message: 'CVV is required' + }, + digits: { + message: 'CVV must contain only digits' + }, + stringLength: { + min: 3, + max: 4, + message: 'CVV must contain 3 to 4 digits only' + } + } + } + }, + + plugins: { + trigger: new FormValidation.plugins.Trigger(), + // Bootstrap Framework Integration + bootstrap: new FormValidation.plugins.Bootstrap5({ + rowSelector: '.fv-row', + eleInvalidClass: '', + eleValidClass: '' + }) + } + } + )); + } + + return { + // Public Functions + init: function () { + // Elements + modalEl = document.querySelector('#kt_modal_create_account'); + + if ( modalEl ) { + modal = new bootstrap.Modal(modalEl); + } + + stepper = document.querySelector('#kt_create_account_stepper'); + + if ( !stepper ) { + return; + } + + form = stepper.querySelector('#kt_create_account_form'); + formSubmitButton = stepper.querySelector('[data-kt-stepper-action="submit"]'); + formContinueButton = stepper.querySelector('[data-kt-stepper-action="next"]'); + + initStepper(); + initValidation(); + handleForm(); + } + }; +}(); + +// On document ready +KTUtil.onDOMContentLoaded(function() { + KTCreateAccount.init(); +}); \ No newline at end of file diff --git a/resources/_keenthemes/src/js/custom/utilities/modals/create-api-key.js b/resources/_keenthemes/src/js/custom/utilities/modals/create-api-key.js new file mode 100644 index 0000000..0db049a --- /dev/null +++ b/resources/_keenthemes/src/js/custom/utilities/modals/create-api-key.js @@ -0,0 +1,183 @@ +"use strict"; + +// Class definition +var KTModalCreateApiKey = function () { + var submitButton; + var cancelButton; + var validator; + var form; + var modal; + var modalEl; + + // Init form inputs + var initForm = function() { + // Team assign. For more info, plase visit the official plugin site: https://select2.org/ + $(form.querySelector('[name="category"]')).on('change', function() { + // Revalidate the field when an option is chosen + validator.revalidateField('category'); + }); + } + + // Handle form validation and submittion + var handleForm = function() { + // Stepper custom navigation + + // Init form validation rules. For more info check the FormValidation plugin's official documentation:https://formvalidation.io/ + validator = FormValidation.formValidation( + form, + { + fields: { + 'name': { + validators: { + notEmpty: { + message: 'API name is required' + } + } + }, + 'description': { + validators: { + notEmpty: { + message: 'Description is required' + } + } + }, + 'category': { + validators: { + notEmpty: { + message: 'Country is required' + } + } + }, + 'method': { + validators: { + notEmpty: { + message: 'API method is required' + } + } + } + }, + plugins: { + trigger: new FormValidation.plugins.Trigger(), + bootstrap: new FormValidation.plugins.Bootstrap5({ + rowSelector: '.fv-row', + eleInvalidClass: '', + eleValidClass: '' + }) + } + } + ); + + // Action buttons + submitButton.addEventListener('click', function (e) { + e.preventDefault(); + + // Validate form before submit + if (validator) { + validator.validate().then(function (status) { + console.log('validated!'); + + if (status == 'Valid') { + submitButton.setAttribute('data-kt-indicator', 'on'); + + // Disable button to avoid multiple click + submitButton.disabled = true; + + setTimeout(function() { + submitButton.removeAttribute('data-kt-indicator'); + + // Enable button + submitButton.disabled = false; + + Swal.fire({ + text: "Form has been successfully submitted!", + icon: "success", + buttonsStyling: false, + confirmButtonText: "Ok, got it!", + customClass: { + confirmButton: "btn btn-primary" + } + }).then(function (result) { + if (result.isConfirmed) { + modal.hide(); + } + }); + + //form.submit(); // Submit form + }, 2000); + } else { + // Show error popuo. For more info check the plugin's official documentation: https://sweetalert2.github.io/ + Swal.fire({ + text: "Sorry, looks like there are some errors detected, please try again.", + icon: "error", + buttonsStyling: false, + confirmButtonText: "Ok, got it!", + customClass: { + confirmButton: "btn btn-primary" + } + }); + } + }); + } + }); + + cancelButton.addEventListener('click', function (e) { + e.preventDefault(); + + // Show confirmation popup. For more info check the plugin's official documentation: https://sweetalert2.github.io/ + Swal.fire({ + text: "Are you sure you would like to cancel?", + icon: "warning", + showCancelButton: true, + buttonsStyling: false, + confirmButtonText: "Yes, cancel it!", + cancelButtonText: "No, return", + customClass: { + confirmButton: "btn btn-primary", + cancelButton: "btn btn-active-light" + } + }).then(function (result) { + if (result.value) { + form.reset(); // Reset form + modal.hide(); // Hide modal + } else if (result.dismiss === 'cancel') { + // Show success message. + Swal.fire({ + text: "Your form has not been cancelled!.", + icon: "error", + buttonsStyling: false, + confirmButtonText: "Ok, got it!", + customClass: { + confirmButton: "btn btn-primary", + } + }); + } + }); + }); + } + + return { + // Public functions + init: function () { + // Elements + modalEl = document.querySelector('#kt_modal_create_api_key'); + + if (!modalEl) { + return; + } + + modal = new bootstrap.Modal(modalEl); + + form = document.querySelector('#kt_modal_create_api_key_form'); + submitButton = document.getElementById('kt_modal_create_api_key_submit'); + cancelButton = document.getElementById('kt_modal_create_api_key_cancel'); + + initForm(); + handleForm(); + } + }; +}(); + +// On document ready +KTUtil.onDOMContentLoaded(function () { + KTModalCreateApiKey.init(); +}); \ No newline at end of file diff --git a/resources/_keenthemes/src/js/custom/utilities/modals/create-app.js b/resources/_keenthemes/src/js/custom/utilities/modals/create-app.js new file mode 100644 index 0000000..b06976c --- /dev/null +++ b/resources/_keenthemes/src/js/custom/utilities/modals/create-app.js @@ -0,0 +1,327 @@ +"use strict"; + +// Class definition +var KTCreateApp = function () { + // Elements + var modal; + var modalEl; + + var stepper; + var form; + var formSubmitButton; + var formContinueButton; + + // Variables + var stepperObj; + var validations = []; + + // Private Functions + var initStepper = function () { + // Initialize Stepper + stepperObj = new KTStepper(stepper); + + // Stepper change event(handle hiding submit button for the last step) + stepperObj.on('kt.stepper.changed', function (stepper) { + if (stepperObj.getCurrentStepIndex() === 4) { + formSubmitButton.classList.remove('d-none'); + formSubmitButton.classList.add('d-inline-block'); + formContinueButton.classList.add('d-none'); + } else if (stepperObj.getCurrentStepIndex() === 5) { + formSubmitButton.classList.add('d-none'); + formContinueButton.classList.add('d-none'); + } else { + formSubmitButton.classList.remove('d-inline-block'); + formSubmitButton.classList.remove('d-none'); + formContinueButton.classList.remove('d-none'); + } + }); + + // Validation before going to next page + stepperObj.on('kt.stepper.next', function (stepper) { + console.log('stepper.next'); + + // Validate form before change stepper step + var validator = validations[stepper.getCurrentStepIndex() - 1]; // get validator for currnt step + + if (validator) { + validator.validate().then(function (status) { + console.log('validated!'); + + if (status == 'Valid') { + stepper.goNext(); + + //KTUtil.scrollTop(); + } else { + // Show error message popup. For more info check the plugin's official documentation: https://sweetalert2.github.io/ + Swal.fire({ + text: "Sorry, looks like there are some errors detected, please try again.", + icon: "error", + buttonsStyling: false, + confirmButtonText: "Ok, got it!", + customClass: { + confirmButton: "btn btn-light" + } + }).then(function () { + //KTUtil.scrollTop(); + }); + } + }); + } else { + stepper.goNext(); + + KTUtil.scrollTop(); + } + }); + + // Prev event + stepperObj.on('kt.stepper.previous', function (stepper) { + console.log('stepper.previous'); + + stepper.goPrevious(); + KTUtil.scrollTop(); + }); + + formSubmitButton.addEventListener('click', function (e) { + // Validate form before change stepper step + var validator = validations[3]; // get validator for last form + + validator.validate().then(function (status) { + console.log('validated!'); + + if (status == 'Valid') { + // Prevent default button action + e.preventDefault(); + + // Disable button to avoid multiple click + formSubmitButton.disabled = true; + + // Show loading indication + formSubmitButton.setAttribute('data-kt-indicator', 'on'); + + // Simulate form submission + setTimeout(function() { + // Hide loading indication + formSubmitButton.removeAttribute('data-kt-indicator'); + + // Enable button + formSubmitButton.disabled = false; + + stepperObj.goNext(); + //KTUtil.scrollTop(); + }, 2000); + } else { + Swal.fire({ + text: "Sorry, looks like there are some errors detected, please try again.", + icon: "error", + buttonsStyling: false, + confirmButtonText: "Ok, got it!", + customClass: { + confirmButton: "btn btn-light" + } + }).then(function () { + KTUtil.scrollTop(); + }); + } + }); + }); + } + + // Init form inputs + var initForm = function() { + // Expiry month. For more info, plase visit the official plugin site: https://select2.org/ + $(form.querySelector('[name="card_expiry_month"]')).on('change', function() { + // Revalidate the field when an option is chosen + validations[3].revalidateField('card_expiry_month'); + }); + + // Expiry year. For more info, plase visit the official plugin site: https://select2.org/ + $(form.querySelector('[name="card_expiry_year"]')).on('change', function() { + // Revalidate the field when an option is chosen + validations[3].revalidateField('card_expiry_year'); + }); + } + + var initValidation = function () { + // Init form validation rules. For more info check the FormValidation plugin's official documentation:https://formvalidation.io/ + // Step 1 + validations.push(FormValidation.formValidation( + form, + { + fields: { + name: { + validators: { + notEmpty: { + message: 'App name is required' + } + } + }, + category: { + validators: { + notEmpty: { + message: 'Category is required' + } + } + } + }, + plugins: { + trigger: new FormValidation.plugins.Trigger(), + bootstrap: new FormValidation.plugins.Bootstrap5({ + rowSelector: '.fv-row', + eleInvalidClass: '', + eleValidClass: '' + }) + } + } + )); + + // Step 2 + validations.push(FormValidation.formValidation( + form, + { + fields: { + framework: { + validators: { + notEmpty: { + message: 'Framework is required' + } + } + } + }, + plugins: { + trigger: new FormValidation.plugins.Trigger(), + // Bootstrap Framework Integration + bootstrap: new FormValidation.plugins.Bootstrap5({ + rowSelector: '.fv-row', + eleInvalidClass: '', + eleValidClass: '' + }) + } + } + )); + + // Step 3 + validations.push(FormValidation.formValidation( + form, + { + fields: { + dbname: { + validators: { + notEmpty: { + message: 'Database name is required' + } + } + }, + dbengine: { + validators: { + notEmpty: { + message: 'Database engine is required' + } + } + } + }, + plugins: { + trigger: new FormValidation.plugins.Trigger(), + // Bootstrap Framework Integration + bootstrap: new FormValidation.plugins.Bootstrap5({ + rowSelector: '.fv-row', + eleInvalidClass: '', + eleValidClass: '' + }) + } + } + )); + + // Step 4 + validations.push(FormValidation.formValidation( + form, + { + fields: { + 'card_name': { + validators: { + notEmpty: { + message: 'Name on card is required' + } + } + }, + 'card_number': { + validators: { + notEmpty: { + message: 'Card member is required' + }, + creditCard: { + message: 'Card number is not valid' + } + } + }, + 'card_expiry_month': { + validators: { + notEmpty: { + message: 'Month is required' + } + } + }, + 'card_expiry_year': { + validators: { + notEmpty: { + message: 'Year is required' + } + } + }, + 'card_cvv': { + validators: { + notEmpty: { + message: 'CVV is required' + }, + digits: { + message: 'CVV must contain only digits' + }, + stringLength: { + min: 3, + max: 4, + message: 'CVV must contain 3 to 4 digits only' + } + } + } + }, + + plugins: { + trigger: new FormValidation.plugins.Trigger(), + // Bootstrap Framework Integration + bootstrap: new FormValidation.plugins.Bootstrap5({ + rowSelector: '.fv-row', + eleInvalidClass: '', + eleValidClass: '' + }) + } + } + )); + } + + return { + // Public Functions + init: function () { + // Elements + modalEl = document.querySelector('#kt_modal_create_app'); + + if (!modalEl) { + return; + } + + modal = new bootstrap.Modal(modalEl); + + stepper = document.querySelector('#kt_modal_create_app_stepper'); + form = document.querySelector('#kt_modal_create_app_form'); + formSubmitButton = stepper.querySelector('[data-kt-stepper-action="submit"]'); + formContinueButton = stepper.querySelector('[data-kt-stepper-action="next"]'); + + initStepper(); + initForm(); + initValidation(); + } + }; +}(); + +// On document ready +KTUtil.onDOMContentLoaded(function() { + KTCreateApp.init(); +}); \ No newline at end of file diff --git a/resources/_keenthemes/src/js/custom/utilities/modals/create-campaign.js b/resources/_keenthemes/src/js/custom/utilities/modals/create-campaign.js new file mode 100644 index 0000000..bc12792 --- /dev/null +++ b/resources/_keenthemes/src/js/custom/utilities/modals/create-campaign.js @@ -0,0 +1,352 @@ +"use strict"; + +// Class definition +var KTCreateCampaign = function () { + // Elements + var modal; + var modalEl; + + var stepper; + var form; + var formSubmitButton; + var formContinueButton; + + // Variables + var stepperObj; + var validations = []; + + // Private Functions + var initStepper = function () { + // Initialize Stepper + stepperObj = new KTStepper(stepper); + + // Stepper change event(handle hiding submit button for the last step) + stepperObj.on('kt.stepper.changed', function (stepper) { + if (stepperObj.getCurrentStepIndex() === 4) { + formSubmitButton.classList.remove('d-none'); + formSubmitButton.classList.add('d-inline-block'); + formContinueButton.classList.add('d-none'); + } else if (stepperObj.getCurrentStepIndex() === 5) { + formSubmitButton.classList.add('d-none'); + formContinueButton.classList.add('d-none'); + } else { + formSubmitButton.classList.remove('d-inline-block'); + formSubmitButton.classList.remove('d-none'); + formContinueButton.classList.remove('d-none'); + } + }); + + // Validation before going to next page + stepperObj.on('kt.stepper.next', function (stepper) { + console.log('stepper.next'); + + // Validate form before change stepper step + var validator = validations[stepper.getCurrentStepIndex() - 1]; // get validator for currnt step + + if (validator) { + validator.validate().then(function (status) { + console.log('validated!'); + + if (status == 'Valid') { + stepper.goNext(); + + //KTUtil.scrollTop(); + } else { + // Show error message popup. For more info check the plugin's official documentation: https://sweetalert2.github.io/ + Swal.fire({ + text: "Sorry, looks like there are some errors detected, please try again.", + icon: "error", + buttonsStyling: false, + confirmButtonText: "Ok, got it!", + customClass: { + confirmButton: "btn btn-light" + } + }).then(function () { + //KTUtil.scrollTop(); + }); + } + }); + } else { + stepper.goNext(); + + KTUtil.scrollTop(); + } + }); + + // Prev event + stepperObj.on('kt.stepper.previous', function (stepper) { + console.log('stepper.previous'); + + stepper.goPrevious(); + KTUtil.scrollTop(); + }); + + formSubmitButton.addEventListener('click', function (e) { + // Prevent default button action + e.preventDefault(); + + // Disable button to avoid multiple click + formSubmitButton.disabled = true; + + // Show loading indication + formSubmitButton.setAttribute('data-kt-indicator', 'on'); + + // Simulate form submission + setTimeout(function () { + // Hide loading indication + formSubmitButton.removeAttribute('data-kt-indicator'); + + // Enable button + formSubmitButton.disabled = false; + + stepperObj.goNext(); + //KTUtil.scrollTop(); + }, 2000); + }); + } + + // Init form inputs + var initForm = function () { + // Init age slider + var slider = document.querySelector("#kt_modal_create_campaign_age_slider"); + var valueMin = document.querySelector("#kt_modal_create_campaign_age_min"); + var valueMax = document.querySelector("#kt_modal_create_campaign_age_max"); + + noUiSlider.create(slider, { + start: [18, 40], + connect: true, + range: { + "min": 13, + "max": 80 + } + }); + + slider.noUiSlider.on("update", function (values, handle) { + if (handle) { + valueMax.innerHTML = Math.round(values[handle]); + } else { + valueMin.innerHTML = Math.round(values[handle]); + } + }); + + // Init tagify + var tagifyElement = document.querySelector('#kt_modal_create_campaign_location'); + var tagify = new Tagify(tagifyElement, { + delimiters: null, + templates: { + tag: function (tagData) { + const countryPath = tagifyElement.getAttribute("data-kt-flags-path") + tagData.value.toLowerCase().replace(/\s+/g, '-') + '.svg'; + try { + // _ESCAPE_START_ + return ` + +
+ ${tagData.code ? + `` : '' + } + ${tagData.value} +
+
` + // _ESCAPE_END_ + } + catch (err) { } + }, + + dropdownItem: function (tagData) { + const countryPath = tagifyElement.getAttribute("data-kt-flags-path") + tagData.value.toLowerCase().replace(/\s+/g, '-') + '.svg'; + try { + // _ESCAPE_START_ + return `
+ + ${tagData.value} +
` + // _ESCAPE_END_ + } + catch (err) { } + } + }, + enforceWhitelist: true, + whitelist: [ + { value: 'Argentina', code: 'AR' }, + { value: 'Australia', code: 'AU', searchBy: 'beach, sub-tropical' }, + { value: 'Austria', code: 'AT' }, + { value: 'Brazil', code: 'BR' }, + { value: 'China', code: 'CN' }, + { value: 'Egypt', code: 'EG' }, + { value: 'Finland', code: 'FI' }, + { value: 'France', code: 'FR' }, + { value: 'Germany', code: 'DE' }, + { value: 'Hong Kong', code: 'HK' }, + { value: 'Hungary', code: 'HU' }, + { value: 'Iceland', code: 'IS' }, + { value: 'India', code: 'IN' }, + { value: 'Indonesia', code: 'ID' }, + { value: 'Italy', code: 'IT' }, + { value: 'Jamaica', code: 'JM' }, + { value: 'Japan', code: 'JP' }, + { value: 'Jersey', code: 'JE' }, + { value: 'Luxembourg', code: 'LU' }, + { value: 'Mexico', code: 'MX' }, + { value: 'Netherlands', code: 'NL' }, + { value: 'New Zealand', code: 'NZ' }, + { value: 'Norway', code: 'NO' }, + { value: 'Philippines', code: 'PH' }, + { value: 'Singapore', code: 'SG' }, + { value: 'South Korea', code: 'KR' }, + { value: 'Sweden', code: 'SE' }, + { value: 'Switzerland', code: 'CH' }, + { value: 'Thailand', code: 'TH' }, + { value: 'Ukraine', code: 'UA' }, + { value: 'United Kingdom', code: 'GB' }, + { value: 'United States', code: 'US' }, + { value: 'Vietnam', code: 'VN' } + ], + dropdown: { + enabled: 1, // suggest tags after a single character input + classname: 'extra-properties' // custom class for the suggestions dropdown + } // map tags' values to this property name, so this property will be the actual value and not the printed value on the screen + }) + + // add the first 2 tags and makes them readonly + var tagsToAdd = tagify.settings.whitelist.slice(0, 2); + tagify.addTags(tagsToAdd); + + // Init flatpickr + $("#kt_modal_create_campaign_datepicker").flatpickr({ + altInput: true, + enableTime: true, + altFormat: "F j, Y H:i", + dateFormat: "Y-m-d H:i", + mode: "range" + }); + + // Init dropzone + var myDropzone = new Dropzone("#kt_modal_create_campaign_files_upload", { + url: "https://keenthemes.com/scripts/void.php", // Set the url for your upload script location + paramName: "file", // The name that will be used to transfer the file + maxFiles: 10, + maxFilesize: 10, // MB + addRemoveLinks: true, + accept: function(file, done) { + if (file.name == "wow.jpg") { + done("Naha, you don't."); + } else { + done(); + } + } + }); + + // Handle campaign duration options + const allDuration = document.querySelector('#kt_modal_create_campaign_duration_all'); + const fixedDuration = document.querySelector('#kt_modal_create_campaign_duration_fixed'); + const datepicker = document.querySelector('#kt_modal_create_campaign_datepicker'); + + [allDuration, fixedDuration].forEach(option => { + option.addEventListener('click', e => { + if (option.classList.contains('active')) { + return; + } + allDuration.classList.toggle('active'); + fixedDuration.classList.toggle('active'); + + if (fixedDuration.classList.contains('active')) { + datepicker.nextElementSibling.classList.remove('d-none'); + } else { + datepicker.nextElementSibling.classList.add('d-none'); + } + }); + }); + + // Init budget slider + var budgetSlider = document.querySelector("#kt_modal_create_campaign_budget_slider"); + var budgetValue = document.querySelector("#kt_modal_create_campaign_budget_label"); + + noUiSlider.create(budgetSlider, { + start: [5], + connect: true, + range: { + "min": 1, + "max": 500 + } + }); + + budgetSlider.noUiSlider.on("update", function (values, handle) { + budgetValue.innerHTML = Math.round(values[handle]); + if (handle) { + budgetValue.innerHTML = Math.round(values[handle]); + } + }); + + // Handle create new campaign button + const restartButton = document.querySelector('#kt_modal_create_campaign_create_new'); + restartButton.addEventListener('click', function () { + form.reset(); + stepperObj.goTo(1); + }); + } + + var initValidation = function () { + // Init form validation rules. For more info check the FormValidation plugin's official documentation:https://formvalidation.io/ + // Step 1 + validations.push(FormValidation.formValidation( + form, + { + fields: { + campaign_name: { + validators: { + notEmpty: { + message: 'App name is required' + } + } + }, + avatar: { + validators: { + file: { + extension: 'png,jpg,jpeg', + type: 'image/jpeg,image/png', + message: 'Please choose a png, jpg or jpeg files only', + }, + } + } + }, + plugins: { + trigger: new FormValidation.plugins.Trigger(), + bootstrap: new FormValidation.plugins.Bootstrap5({ + rowSelector: '.fv-row', + eleInvalidClass: '', + eleValidClass: '' + }) + } + } + )); + } + + return { + // Public Functions + init: function () { + // Elements + modalEl = document.querySelector('#kt_modal_create_campaign'); + + if (!modalEl) { + return; + } + + modal = new bootstrap.Modal(modalEl); + + stepper = document.querySelector('#kt_modal_create_campaign_stepper'); + form = document.querySelector('#kt_modal_create_campaign_stepper_form'); + formSubmitButton = stepper.querySelector('[data-kt-stepper-action="submit"]'); + formContinueButton = stepper.querySelector('[data-kt-stepper-action="next"]'); + + initStepper(); + initForm(); + initValidation(); + } + }; +}(); + +// On document ready +KTUtil.onDOMContentLoaded(function () { + KTCreateCampaign.init(); +}); diff --git a/resources/_keenthemes/src/js/custom/utilities/modals/create-project/budget.js b/resources/_keenthemes/src/js/custom/utilities/modals/create-project/budget.js new file mode 100644 index 0000000..f5b476e --- /dev/null +++ b/resources/_keenthemes/src/js/custom/utilities/modals/create-project/budget.js @@ -0,0 +1,140 @@ +"use strict"; + +// Class definition +var KTModalCreateProjectBudget = function () { + // Variables + var nextButton; + var previousButton; + var validator; + var form; + var stepper; + + // Private functions + var initValidation = function() { + // Init form validation rules. For more info check the FormValidation plugin's official documentation:https://formvalidation.io/ + validator = FormValidation.formValidation( + form, + { + fields: { + 'budget_setup': { + validators: { + notEmpty: { + message: 'Budget amount is required' + }, + callback: { + message: 'The budget amount must be greater than $100', + callback: function(input) { + var currency = input.value; + currency = currency.replace(/[$,]+/g,""); + + if (parseFloat(currency) < 100) { + return false; + } + } + } + } + }, + 'budget_usage': { + validators: { + notEmpty: { + message: 'Budget usage type is required' + } + } + }, + 'budget_allow': { + validators: { + notEmpty: { + message: 'Allowing budget is required' + } + } + } + }, + + plugins: { + trigger: new FormValidation.plugins.Trigger(), + bootstrap: new FormValidation.plugins.Bootstrap5({ + rowSelector: '.fv-row', + eleInvalidClass: '', + eleValidClass: '' + }) + } + } + ); + + // Revalidate on change + KTDialer.getInstance(form.querySelector('#kt_modal_create_project_budget_setup')).on('kt.dialer.changed', function() { + // Revalidate the field when an option is chosen + validator.revalidateField('budget_setup'); + }); + } + + var handleForm = function() { + nextButton.addEventListener('click', function (e) { + // Prevent default button action + e.preventDefault(); + + // Disable button to avoid multiple click + nextButton.disabled = true; + + // Validate form before submit + if (validator) { + validator.validate().then(function (status) { + console.log('validated!'); + + if (status == 'Valid') { + // Show loading indication + nextButton.setAttribute('data-kt-indicator', 'on'); + + // Simulate form submission + setTimeout(function() { + // Simulate form submission + nextButton.removeAttribute('data-kt-indicator'); + + // Enable button + nextButton.disabled = false; + + // Go to next step + stepper.goNext(); + }, 1500); + } else { + // Enable button + nextButton.disabled = false; + + // Show popup warning. For more info check the plugin's official documentation: https://sweetalert2.github.io/ + Swal.fire({ + text: "Sorry, looks like there are some errors detected, please try again.", + icon: "error", + buttonsStyling: false, + confirmButtonText: "Ok, got it!", + customClass: { + confirmButton: "btn btn-primary" + } + }); + } + }); + } + }); + + previousButton.addEventListener('click', function () { + stepper.goPrevious(); + }); + } + + return { + // Public functions + init: function () { + form = KTModalCreateProject.getForm(); + stepper = KTModalCreateProject.getStepperObj(); + nextButton = KTModalCreateProject.getStepper().querySelector('[data-kt-element="budget-next"]'); + previousButton = KTModalCreateProject.getStepper().querySelector('[data-kt-element="budget-previous"]'); + + initValidation(); + handleForm(); + } + }; +}(); + +// Webpack support +if (typeof module !== 'undefined' && typeof module.exports !== 'undefined') { + window.KTModalCreateProjectBudget = module.exports = KTModalCreateProjectBudget; +} diff --git a/resources/_keenthemes/src/js/custom/utilities/modals/create-project/complete.js b/resources/_keenthemes/src/js/custom/utilities/modals/create-project/complete.js new file mode 100644 index 0000000..b8c569f --- /dev/null +++ b/resources/_keenthemes/src/js/custom/utilities/modals/create-project/complete.js @@ -0,0 +1,32 @@ +"use strict"; + +// Class definition +var KTModalCreateProjectComplete = function () { + // Variables + var startButton; + var form; + var stepper; + + // Private functions + var handleForm = function() { + startButton.addEventListener('click', function () { + stepper.goTo(1); + }); + } + + return { + // Public functions + init: function () { + form = KTModalCreateProject.getForm(); + stepper = KTModalCreateProject.getStepperObj(); + startButton = KTModalCreateProject.getStepper().querySelector('[data-kt-element="complete-start"]'); + + handleForm(); + } + }; +}(); + +// Webpack support +if (typeof module !== 'undefined' && typeof module.exports !== 'undefined') { + window.KTModalCreateProjectComplete = module.exports = KTModalCreateProjectComplete; +} diff --git a/resources/_keenthemes/src/js/custom/utilities/modals/create-project/files.js b/resources/_keenthemes/src/js/custom/utilities/modals/create-project/files.js new file mode 100644 index 0000000..027ec26 --- /dev/null +++ b/resources/_keenthemes/src/js/custom/utilities/modals/create-project/files.js @@ -0,0 +1,77 @@ +"use strict"; + +// Class definition +var KTModalCreateProjectFiles = function () { + // Variables + var nextButton; + var previousButton; + var form; + var stepper; + + // Private functions + var initForm = function() { + // Project logo + // For more info about Dropzone plugin visit: https://www.dropzonejs.com/#usage + var myDropzone = new Dropzone("#kt_modal_create_project_files_upload", { + url: "https://keenthemes.com/scripts/void.php", // Set the url for your upload script location + paramName: "file", // The name that will be used to transfer the file + maxFiles: 10, + maxFilesize: 10, // MB + addRemoveLinks: true, + accept: function(file, done) { + if (file.name == "justinbieber.jpg") { + done("Naha, you don't."); + } else { + done(); + } + } + }); + } + + var handleForm = function() { + nextButton.addEventListener('click', function (e) { + // Prevent default button action + e.preventDefault(); + + // Disable button to avoid multiple click + nextButton.disabled = true; + + // Show loading indication + nextButton.setAttribute('data-kt-indicator', 'on'); + + // Simulate form submission + setTimeout(function() { + // Hide loading indication + nextButton.removeAttribute('data-kt-indicator'); + + // Enable button + nextButton.disabled = false; + + // Go to next step + stepper.goNext(); + }, 1500); + }); + + previousButton.addEventListener('click', function () { + stepper.goPrevious(); + }); + } + + return { + // Public functions + init: function () { + form = KTModalCreateProject.getForm(); + stepper = KTModalCreateProject.getStepperObj(); + nextButton = KTModalCreateProject.getStepper().querySelector('[data-kt-element="files-next"]'); + previousButton = KTModalCreateProject.getStepper().querySelector('[data-kt-element="files-previous"]'); + + initForm(); + handleForm(); + } + }; +}(); + +// Webpack support +if (typeof module !== 'undefined' && typeof module.exports !== 'undefined') { + window.KTModalCreateProjectFiles = module.exports = KTModalCreateProjectFiles; +} diff --git a/resources/_keenthemes/src/js/custom/utilities/modals/create-project/main.js b/resources/_keenthemes/src/js/custom/utilities/modals/create-project/main.js new file mode 100644 index 0000000..4310265 --- /dev/null +++ b/resources/_keenthemes/src/js/custom/utilities/modals/create-project/main.js @@ -0,0 +1,58 @@ +"use strict"; + +// Class definition +var KTModalCreateProject = function () { + // Private variables + var stepper; + var stepperObj; + var form; + + // Private functions + var initStepper = function () { + // Initialize Stepper + stepperObj = new KTStepper(stepper); + } + + return { + // Public functions + init: function () { + stepper = document.querySelector('#kt_modal_create_project_stepper'); + form = document.querySelector('#kt_modal_create_project_form'); + + initStepper(); + }, + + getStepperObj: function () { + return stepperObj; + }, + + getStepper: function () { + return stepper; + }, + + getForm: function () { + return form; + } + }; +}(); + +// On document ready +KTUtil.onDOMContentLoaded(function () { + if (!document.querySelector('#kt_modal_create_project')) { + return; + } + + KTModalCreateProject.init(); + KTModalCreateProjectType.init(); + KTModalCreateProjectBudget.init(); + KTModalCreateProjectSettings.init(); + KTModalCreateProjectTeam.init(); + KTModalCreateProjectTargets.init(); + KTModalCreateProjectFiles.init(); + KTModalCreateProjectComplete.init(); +}); + +// Webpack support +if (typeof module !== 'undefined' && typeof module.exports !== 'undefined') { + window.KTModalCreateProject = module.exports = KTModalCreateProject; +} diff --git a/resources/_keenthemes/src/js/custom/utilities/modals/create-project/settings.js b/resources/_keenthemes/src/js/custom/utilities/modals/create-project/settings.js new file mode 100644 index 0000000..e4ba4ab --- /dev/null +++ b/resources/_keenthemes/src/js/custom/utilities/modals/create-project/settings.js @@ -0,0 +1,171 @@ +"use strict"; + +// Class definition +var KTModalCreateProjectSettings = function () { + // Variables + var nextButton; + var previousButton; + var validator; + var form; + var stepper; + + // Private functions + var initForm = function() { + // Project logo + // For more info about Dropzone plugin visit: https://www.dropzonejs.com/#usage + var myDropzone = new Dropzone("#kt_modal_create_project_settings_logo", { + url: "https://keenthemes.com/scripts/void.php", // Set the url for your upload script location + paramName: "file", // The name that will be used to transfer the file + maxFiles: 10, + maxFilesize: 10, // MB + addRemoveLinks: true, + accept: function(file, done) { + if (file.name == "justinbieber.jpg") { + done("Naha, you don't."); + } else { + done(); + } + } + }); + + // Due date. For more info, please visit the official plugin site: https://flatpickr.js.org/ + var releaseDate = $(form.querySelector('[name="settings_release_date"]')); + releaseDate.flatpickr({ + enableTime: true, + dateFormat: "d, M Y, H:i", + }); + + // Expiry year. For more info, plase visit the official plugin site: https://select2.org/ + $(form.querySelector('[name="settings_customer"]')).on('change', function() { + // Revalidate the field when an option is chosen + validator.revalidateField('settings_customer'); + }); + } + + var initValidation = function() { + // Init form validation rules. For more info check the FormValidation plugin's official documentation:https://formvalidation.io/ + validator = FormValidation.formValidation( + form, + { + fields: { + 'settings_name': { + validators: { + notEmpty: { + message: 'Project name is required' + } + } + }, + 'settings_customer': { + validators: { + notEmpty: { + message: 'Customer is required' + } + } + }, + 'settings_description': { + validators: { + notEmpty: { + message: 'Description is required' + } + } + }, + 'settings_release_date': { + validators: { + notEmpty: { + message: 'Release date is required' + } + } + }, + 'settings_notifications[]': { + validators: { + notEmpty: { + message: 'Notifications are required' + } + } + } + }, + + plugins: { + trigger: new FormValidation.plugins.Trigger(), + bootstrap: new FormValidation.plugins.Bootstrap5({ + rowSelector: '.fv-row', + eleInvalidClass: '', + eleValidClass: '' + }) + } + } + ); + } + + var handleForm = function() { + nextButton.addEventListener('click', function (e) { + // Prevent default button action + e.preventDefault(); + + // Disable button to avoid multiple click + nextButton.disabled = true; + + // Validate form before submit + if (validator) { + validator.validate().then(function (status) { + console.log('validated!'); + + if (status == 'Valid') { + // Show loading indication + nextButton.setAttribute('data-kt-indicator', 'on'); + + // Simulate form submission + setTimeout(function() { + // Simulate form submission + nextButton.removeAttribute('data-kt-indicator'); + + // Enable button + nextButton.disabled = false; + + // Go to next step + stepper.goNext(); + }, 1500); + } else { + // Enable button + nextButton.disabled = false; + + // Show popup warning. For more info check the plugin's official documentation: https://sweetalert2.github.io/ + Swal.fire({ + text: "Sorry, looks like there are some errors detected, please try again.", + icon: "error", + buttonsStyling: false, + confirmButtonText: "Ok, got it!", + customClass: { + confirmButton: "btn btn-primary" + } + }); + } + }); + } + }); + + previousButton.addEventListener('click', function () { + // Go to previous step + stepper.goPrevious(); + }); + } + + return { + // Public functions + init: function () { + form = KTModalCreateProject.getForm(); + stepper = KTModalCreateProject.getStepperObj(); + nextButton = KTModalCreateProject.getStepper().querySelector('[data-kt-element="settings-next"]'); + previousButton = KTModalCreateProject.getStepper().querySelector('[data-kt-element="settings-previous"]'); + + initForm(); + initValidation(); + handleForm(); + } + }; +}(); + +// Webpack support +if (typeof module !== 'undefined' && typeof module.exports !== 'undefined') { + window.KTModalCreateProjectSettings = module.exports = KTModalCreateProjectSettings; +} diff --git a/resources/_keenthemes/src/js/custom/utilities/modals/create-project/targets.js b/resources/_keenthemes/src/js/custom/utilities/modals/create-project/targets.js new file mode 100644 index 0000000..6e73651 --- /dev/null +++ b/resources/_keenthemes/src/js/custom/utilities/modals/create-project/targets.js @@ -0,0 +1,176 @@ +"use strict"; + +// Class definition +var KTModalCreateProjectTargets = function () { + // Variables + var nextButton; + var previousButton; + var validator; + var form; + var stepper; + + // Private functions + var initForm = function() { + // Tags. For more info, please visit the official plugin site: https://yaireo.github.io/tagify/ + var tags = new Tagify(form.querySelector('[name="target_tags"]'), { + whitelist: ["Important", "Urgent", "High", "Medium", "Low"], + maxTags: 5, + dropdown: { + maxItems: 10, // <- mixumum allowed rendered suggestions + enabled: 0, // <- show suggestions on focus + closeOnSelect: false // <- do not hide the suggestions dropdown once an item has been selected + } + }); + tags.on("change", function(){ + // Revalidate the field when an option is chosen + validator.revalidateField('tags'); + }); + + // Due date. For more info, please visit the official plugin site: https://flatpickr.js.org/ + var dueDate = $(form.querySelector('[name="target_due_date"]')); + dueDate.flatpickr({ + enableTime: true, + dateFormat: "d, M Y, H:i", + }); + + // Expiry year. For more info, plase visit the official plugin site: https://select2.org/ + $(form.querySelector('[name="target_assign"]')).on('change', function() { + // Revalidate the field when an option is chosen + validator.revalidateField('target_assign'); + }); + } + + var initValidation = function() { + // Init form validation rules. For more info check the FormValidation plugin's official documentation:https://formvalidation.io/ + validator = FormValidation.formValidation( + form, + { + fields: { + 'target_title': { + validators: { + notEmpty: { + message: 'Target title is required' + } + } + }, + 'target_assign': { + validators: { + notEmpty: { + message: 'Customer is required' + } + } + }, + 'target_due_date': { + validators: { + notEmpty: { + message: 'Due date is required' + } + } + }, + 'target_tags': { + validators: { + notEmpty: { + message: 'Target tags are required' + } + } + }, + 'target_allow': { + validators: { + notEmpty: { + message: 'Allowing target is required' + } + } + }, + 'target_notifications[]': { + validators: { + notEmpty: { + message: 'Notifications are required' + } + } + } + }, + + plugins: { + trigger: new FormValidation.plugins.Trigger(), + bootstrap: new FormValidation.plugins.Bootstrap5({ + rowSelector: '.fv-row', + eleInvalidClass: '', + eleValidClass: '' + }) + } + } + ); + } + + var handleForm = function() { + nextButton.addEventListener('click', function (e) { + // Prevent default button action + e.preventDefault(); + + // Disable button to avoid multiple click + nextButton.disabled = true; + + // Validate form before submit + if (validator) { + validator.validate().then(function (status) { + console.log('validated!'); + + if (status == 'Valid') { + // Show loading indication + nextButton.setAttribute('data-kt-indicator', 'on'); + + // Simulate form submission + setTimeout(function() { + // Simulate form submission + nextButton.removeAttribute('data-kt-indicator'); + + // Enable button + nextButton.disabled = false; + + // Go to next step + stepper.goNext(); + }, 1500); + } else { + // Enable button + nextButton.disabled = false; + + // Show popup warning. For more info check the plugin's official documentation: https://sweetalert2.github.io/ + Swal.fire({ + text: "Sorry, looks like there are some errors detected, please try again.", + icon: "error", + buttonsStyling: false, + confirmButtonText: "Ok, got it!", + customClass: { + confirmButton: "btn btn-primary" + } + }); + } + }); + } + }); + + previousButton.addEventListener('click', function () { + // Go to previous step + stepper.goPrevious(); + }); + } + + return { + // Public functions + init: function () { + form = KTModalCreateProject.getForm(); + stepper = KTModalCreateProject.getStepperObj(); + nextButton = KTModalCreateProject.getStepper().querySelector('[data-kt-element="targets-next"]'); + previousButton = KTModalCreateProject.getStepper().querySelector('[data-kt-element="targets-previous"]'); + + initForm(); + initValidation(); + handleForm(); + } + }; +}(); + +// Webpack support +if (typeof module !== 'undefined' && typeof module.exports !== 'undefined') { + window.KTModalCreateProjectTargets = module.exports = KTModalCreateProjectTargets; +} \ No newline at end of file diff --git a/resources/_keenthemes/src/js/custom/utilities/modals/create-project/team.js b/resources/_keenthemes/src/js/custom/utilities/modals/create-project/team.js new file mode 100644 index 0000000..7b9ae0f --- /dev/null +++ b/resources/_keenthemes/src/js/custom/utilities/modals/create-project/team.js @@ -0,0 +1,57 @@ +"use strict"; + +// Class definition +var KTModalCreateProjectTeam = function () { + // Variables + var nextButton; + var previousButton; + var form; + var stepper; + + // Private functions + var handleForm = function() { + nextButton.addEventListener('click', function (e) { + // Prevent default button action + e.preventDefault(); + + // Disable button to avoid multiple click + nextButton.disabled = true; + + // Show loading indication + nextButton.setAttribute('data-kt-indicator', 'on'); + + // Simulate form submission + setTimeout(function() { + // Enable button + nextButton.disabled = false; + + // Simulate form submission + nextButton.removeAttribute('data-kt-indicator'); + + // Go to next step + stepper.goNext(); + }, 1500); + }); + + previousButton.addEventListener('click', function () { + stepper.goPrevious(); + }); + } + + return { + // Public functions + init: function () { + form = KTModalCreateProject.getForm(); + stepper = KTModalCreateProject.getStepperObj(); + nextButton = KTModalCreateProject.getStepper().querySelector('[data-kt-element="team-next"]'); + previousButton = KTModalCreateProject.getStepper().querySelector('[data-kt-element="team-previous"]'); + + handleForm(); + } + }; +}(); + +// Webpack support +if (typeof module !== 'undefined' && typeof module.exports !== 'undefined') { + window.KTModalCreateProjectTeam = module.exports = KTModalCreateProjectTeam; +} \ No newline at end of file diff --git a/resources/_keenthemes/src/js/custom/utilities/modals/create-project/type.js b/resources/_keenthemes/src/js/custom/utilities/modals/create-project/type.js new file mode 100644 index 0000000..06e38dd --- /dev/null +++ b/resources/_keenthemes/src/js/custom/utilities/modals/create-project/type.js @@ -0,0 +1,104 @@ +"use strict"; + +// Class definition +var KTModalCreateProjectType = function () { + // Variables + var nextButton; + var validator; + var form; + var stepper; + + // Private functions + var initValidation = function() { + // Init form validation rules. For more info check the FormValidation plugin's official documentation:https://formvalidation.io/ + validator = FormValidation.formValidation( + form, + { + fields: { + 'project_type': { + validators: { + notEmpty: { + message: 'Project type is required' + } + } + } + }, + + plugins: { + trigger: new FormValidation.plugins.Trigger(), + bootstrap: new FormValidation.plugins.Bootstrap5({ + rowSelector: '.fv-row', + eleInvalidClass: '', + eleValidClass: '' + }) + } + } + ); + } + + var handleForm = function() { + nextButton.addEventListener('click', function (e) { + // Prevent default button action + e.preventDefault(); + + // Disable button to avoid multiple click + nextButton.disabled = true; + + // Validate form before submit + if (validator) { + validator.validate().then(function (status) { + console.log('validated!'); + e.preventDefault(); + + if (status == 'Valid') { + // Show loading indication + nextButton.setAttribute('data-kt-indicator', 'on'); + + // Simulate form submission + setTimeout(function() { + // Simulate form submission + nextButton.removeAttribute('data-kt-indicator'); + + // Enable button + nextButton.disabled = false; + + // Go to next step + stepper.goNext(); + }, 1000); + } else { + // Enable button + nextButton.disabled = false; + + // Show popup warning. For more info check the plugin's official documentation: https://sweetalert2.github.io/ + Swal.fire({ + text: "Sorry, looks like there are some errors detected, please try again.", + icon: "error", + buttonsStyling: false, + confirmButtonText: "Ok, got it!", + customClass: { + confirmButton: "btn btn-primary" + } + }); + } + }); + } + }); + } + + return { + // Public functions + init: function () { + form = KTModalCreateProject.getForm(); + stepper = KTModalCreateProject.getStepperObj(); + nextButton = KTModalCreateProject.getStepper().querySelector('[data-kt-element="type-next"]'); + + initValidation(); + handleForm(); + } + }; +}(); + +// Webpack support +if (typeof module !== 'undefined' && typeof module.exports !== 'undefined') { + window.KTModalCreateProjectType = module.exports = KTModalCreateProjectType; +} diff --git a/resources/_keenthemes/src/js/custom/utilities/modals/new-address.js b/resources/_keenthemes/src/js/custom/utilities/modals/new-address.js new file mode 100644 index 0000000..4cce217 --- /dev/null +++ b/resources/_keenthemes/src/js/custom/utilities/modals/new-address.js @@ -0,0 +1,211 @@ +"use strict"; + +// Class definition +var KTModalNewAddress = function () { + var submitButton; + var cancelButton; + var validator; + var form; + var modal; + var modalEl; + + // Init form inputs + var initForm = function() { + // Team assign. For more info, plase visit the official plugin site: https://select2.org/ + $(form.querySelector('[name="country"]')).select2().on('change', function() { + // Revalidate the field when an option is chosen + validator.revalidateField('country'); + }); + } + + // Handle form validation and submittion + var handleForm = function() { + // Stepper custom navigation + + // Init form validation rules. For more info check the FormValidation plugin's official documentation:https://formvalidation.io/ + validator = FormValidation.formValidation( + form, + { + fields: { + 'first-name': { + validators: { + notEmpty: { + message: 'First name is required' + } + } + }, + 'last-name': { + validators: { + notEmpty: { + message: 'Last name is required' + } + } + }, + 'country': { + validators: { + notEmpty: { + message: 'Country is required' + } + } + }, + 'address1': { + validators: { + notEmpty: { + message: 'Address 1 is required' + } + } + }, + 'address2': { + validators: { + notEmpty: { + message: 'Address 2 is required' + } + } + }, + 'city': { + validators: { + notEmpty: { + message: 'City is required' + } + } + }, + 'state': { + validators: { + notEmpty: { + message: 'State is required' + } + } + }, + 'postcode': { + validators: { + notEmpty: { + message: 'Postcode is required' + } + } + } + }, + plugins: { + trigger: new FormValidation.plugins.Trigger(), + bootstrap: new FormValidation.plugins.Bootstrap5({ + rowSelector: '.fv-row', + eleInvalidClass: '', + eleValidClass: '' + }) + } + } + ); + + // Action buttons + submitButton.addEventListener('click', function (e) { + e.preventDefault(); + + // Validate form before submit + if (validator) { + validator.validate().then(function (status) { + console.log('validated!'); + + if (status == 'Valid') { + submitButton.setAttribute('data-kt-indicator', 'on'); + + // Disable button to avoid multiple click + submitButton.disabled = true; + + // Simulate ajax process + setTimeout(function() { + submitButton.removeAttribute('data-kt-indicator'); + + // Enable button + submitButton.disabled = false; + + // Show success message. For more info check the plugin's official documentation: https://sweetalert2.github.io/ + Swal.fire({ + text: "Form has been successfully submitted!", + icon: "success", + buttonsStyling: false, + confirmButtonText: "Ok, got it!", + customClass: { + confirmButton: "btn btn-primary" + } + }).then(function (result) { + if (result.isConfirmed) { + modal.hide(); + } + }); + + //form.submit(); // Submit form + }, 2000); + } else { + // Show error message. + Swal.fire({ + text: "Sorry, looks like there are some errors detected, please try again.", + icon: "error", + buttonsStyling: false, + confirmButtonText: "Ok, got it!", + customClass: { + confirmButton: "btn btn-primary" + } + }); + } + }); + } + }); + + cancelButton.addEventListener('click', function (e) { + e.preventDefault(); + + Swal.fire({ + text: "Are you sure you would like to cancel?", + icon: "warning", + showCancelButton: true, + buttonsStyling: false, + confirmButtonText: "Yes, cancel it!", + cancelButtonText: "No, return", + customClass: { + confirmButton: "btn btn-primary", + cancelButton: "btn btn-active-light" + } + }).then(function (result) { + if (result.value) { + form.reset(); // Reset form + modal.hide(); // Hide modal + } else if (result.dismiss === 'cancel') { + Swal.fire({ + text: "Your form has not been cancelled!.", + icon: "error", + buttonsStyling: false, + confirmButtonText: "Ok, got it!", + customClass: { + confirmButton: "btn btn-primary", + } + }); + } + }); + }); + } + + return { + // Public functions + init: function () { + // Elements + modalEl = document.querySelector('#kt_modal_new_address'); + + if (!modalEl) { + return; + } + + modal = new bootstrap.Modal(modalEl); + + form = document.querySelector('#kt_modal_new_address_form'); + submitButton = document.getElementById('kt_modal_new_address_submit'); + cancelButton = document.getElementById('kt_modal_new_address_cancel'); + + initForm(); + handleForm(); + } + }; +}(); + +// On document ready +KTUtil.onDOMContentLoaded(function () { + KTModalNewAddress.init(); +}); \ No newline at end of file diff --git a/resources/_keenthemes/src/js/custom/utilities/modals/new-card.js b/resources/_keenthemes/src/js/custom/utilities/modals/new-card.js new file mode 100644 index 0000000..f13a7bf --- /dev/null +++ b/resources/_keenthemes/src/js/custom/utilities/modals/new-card.js @@ -0,0 +1,213 @@ +"use strict"; + +// Class definition +var KTModalNewCard = function () { + var submitButton; + var cancelButton; + var validator; + var form; + var modal; + var modalEl; + + // Init form inputs + var initForm = function() { + // Expiry month. For more info, plase visit the official plugin site: https://select2.org/ + $(form.querySelector('[name="card_expiry_month"]')).on('change', function() { + // Revalidate the field when an option is chosen + validator.revalidateField('card_expiry_month'); + }); + + // Expiry year. For more info, plase visit the official plugin site: https://select2.org/ + $(form.querySelector('[name="card_expiry_year"]')).on('change', function() { + // Revalidate the field when an option is chosen + validator.revalidateField('card_expiry_year'); + }); + } + + // Handle form validation and submittion + var handleForm = function() { + // Stepper custom navigation + + // Init form validation rules. For more info check the FormValidation plugin's official documentation:https://formvalidation.io/ + validator = FormValidation.formValidation( + form, + { + fields: { + 'card_name': { + validators: { + notEmpty: { + message: 'Name on card is required' + } + } + }, + 'card_number': { + validators: { + notEmpty: { + message: 'Card member is required' + }, + creditCard: { + message: 'Card number is not valid' + } + } + }, + 'card_expiry_month': { + validators: { + notEmpty: { + message: 'Month is required' + } + } + }, + 'card_expiry_year': { + validators: { + notEmpty: { + message: 'Year is required' + } + } + }, + 'card_cvv': { + validators: { + notEmpty: { + message: 'CVV is required' + }, + digits: { + message: 'CVV must contain only digits' + }, + stringLength: { + min: 3, + max: 4, + message: 'CVV must contain 3 to 4 digits only' + } + } + } + }, + + plugins: { + trigger: new FormValidation.plugins.Trigger(), + bootstrap: new FormValidation.plugins.Bootstrap5({ + rowSelector: '.fv-row', + eleInvalidClass: '', + eleValidClass: '' + }) + } + } + ); + + // Action buttons + submitButton.addEventListener('click', function (e) { + // Prevent default button action + e.preventDefault(); + + // Validate form before submit + if (validator) { + validator.validate().then(function (status) { + console.log('validated!'); + + if (status == 'Valid') { + // Show loading indication + submitButton.setAttribute('data-kt-indicator', 'on'); + + // Disable button to avoid multiple click + submitButton.disabled = true; + + // Simulate form submission. For more info check the plugin's official documentation: https://sweetalert2.github.io/ + setTimeout(function() { + // Remove loading indication + submitButton.removeAttribute('data-kt-indicator'); + + // Enable button + submitButton.disabled = false; + + // Show popup confirmation + Swal.fire({ + text: "Form has been successfully submitted!", + icon: "success", + buttonsStyling: false, + confirmButtonText: "Ok, got it!", + customClass: { + confirmButton: "btn btn-primary" + } + }).then(function (result) { + if (result.isConfirmed) { + modal.hide(); + } + }); + + //form.submit(); // Submit form + }, 2000); + } else { + // Show popup warning. For more info check the plugin's official documentation: https://sweetalert2.github.io/ + Swal.fire({ + text: "Sorry, looks like there are some errors detected, please try again.", + icon: "error", + buttonsStyling: false, + confirmButtonText: "Ok, got it!", + customClass: { + confirmButton: "btn btn-primary" + } + }); + } + }); + } + }); + + cancelButton.addEventListener('click', function (e) { + e.preventDefault(); + + // Show success message. For more info check the plugin's official documentation: https://sweetalert2.github.io/ + Swal.fire({ + text: "Are you sure you would like to cancel?", + icon: "warning", + showCancelButton: true, + buttonsStyling: false, + confirmButtonText: "Yes, cancel it!", + cancelButtonText: "No, return", + customClass: { + confirmButton: "btn btn-primary", + cancelButton: "btn btn-active-light" + } + }).then(function (result) { + if (result.value) { + form.reset(); // Reset form + modal.hide(); // Hide modal + } else if (result.dismiss === 'cancel') { + // Show error message. + Swal.fire({ + text: "Your form has not been cancelled!.", + icon: "error", + buttonsStyling: false, + confirmButtonText: "Ok, got it!", + customClass: { + confirmButton: "btn btn-primary", + } + }); + } + }); + }); + } + + return { + // Public functions + init: function () { + // Elements + modalEl = document.querySelector('#kt_modal_new_card'); + + if (!modalEl) { + return; + } + + modal = new bootstrap.Modal(modalEl); + + form = document.querySelector('#kt_modal_new_card_form'); + submitButton = document.getElementById('kt_modal_new_card_submit'); + cancelButton = document.getElementById('kt_modal_new_card_cancel'); + + initForm(); + handleForm(); + } + }; +}(); + +// On document ready +KTUtil.onDOMContentLoaded(function () { + KTModalNewCard.init(); +}); \ No newline at end of file diff --git a/resources/_keenthemes/src/js/custom/utilities/modals/new-target.js b/resources/_keenthemes/src/js/custom/utilities/modals/new-target.js new file mode 100644 index 0000000..da1bf6f --- /dev/null +++ b/resources/_keenthemes/src/js/custom/utilities/modals/new-target.js @@ -0,0 +1,211 @@ +"use strict"; + +// Class definition +var KTModalNewTarget = function () { + var submitButton; + var cancelButton; + var validator; + var form; + var modal; + var modalEl; + + // Init form inputs + var initForm = function() { + // Tags. For more info, please visit the official plugin site: https://yaireo.github.io/tagify/ + var tags = new Tagify(form.querySelector('[name="tags"]'), { + whitelist: ["Important", "Urgent", "High", "Medium", "Low"], + maxTags: 5, + dropdown: { + maxItems: 10, // <- mixumum allowed rendered suggestions + enabled: 0, // <- show suggestions on focus + closeOnSelect: false // <- do not hide the suggestions dropdown once an item has been selected + } + }); + tags.on("change", function(){ + // Revalidate the field when an option is chosen + validator.revalidateField('tags'); + }); + + // Due date. For more info, please visit the official plugin site: https://flatpickr.js.org/ + var dueDate = $(form.querySelector('[name="due_date"]')); + dueDate.flatpickr({ + enableTime: true, + dateFormat: "d, M Y, H:i", + }); + + // Team assign. For more info, plase visit the official plugin site: https://select2.org/ + $(form.querySelector('[name="team_assign"]')).on('change', function() { + // Revalidate the field when an option is chosen + validator.revalidateField('team_assign'); + }); + } + + // Handle form validation and submittion + var handleForm = function() { + // Stepper custom navigation + + // Init form validation rules. For more info check the FormValidation plugin's official documentation:https://formvalidation.io/ + validator = FormValidation.formValidation( + form, + { + fields: { + target_title: { + validators: { + notEmpty: { + message: 'Target title is required' + } + } + }, + target_assign: { + validators: { + notEmpty: { + message: 'Target assign is required' + } + } + }, + target_due_date: { + validators: { + notEmpty: { + message: 'Target due date is required' + } + } + }, + target_tags: { + validators: { + notEmpty: { + message: 'Target tags are required' + } + } + }, + 'targets_notifications[]': { + validators: { + notEmpty: { + message: 'Please select at least one communication method' + } + } + }, + }, + plugins: { + trigger: new FormValidation.plugins.Trigger(), + bootstrap: new FormValidation.plugins.Bootstrap5({ + rowSelector: '.fv-row', + eleInvalidClass: '', + eleValidClass: '' + }) + } + } + ); + + // Action buttons + submitButton.addEventListener('click', function (e) { + e.preventDefault(); + + // Validate form before submit + if (validator) { + validator.validate().then(function (status) { + console.log('validated!'); + + if (status == 'Valid') { + submitButton.setAttribute('data-kt-indicator', 'on'); + + // Disable button to avoid multiple click + submitButton.disabled = true; + + setTimeout(function() { + submitButton.removeAttribute('data-kt-indicator'); + + // Enable button + submitButton.disabled = false; + + // Show success message. For more info check the plugin's official documentation: https://sweetalert2.github.io/ + Swal.fire({ + text: "Form has been successfully submitted!", + icon: "success", + buttonsStyling: false, + confirmButtonText: "Ok, got it!", + customClass: { + confirmButton: "btn btn-primary" + } + }).then(function (result) { + if (result.isConfirmed) { + modal.hide(); + } + }); + + //form.submit(); // Submit form + }, 2000); + } else { + // Show error message. + Swal.fire({ + text: "Sorry, looks like there are some errors detected, please try again.", + icon: "error", + buttonsStyling: false, + confirmButtonText: "Ok, got it!", + customClass: { + confirmButton: "btn btn-primary" + } + }); + } + }); + } + }); + + cancelButton.addEventListener('click', function (e) { + e.preventDefault(); + + Swal.fire({ + text: "Are you sure you would like to cancel?", + icon: "warning", + showCancelButton: true, + buttonsStyling: false, + confirmButtonText: "Yes, cancel it!", + cancelButtonText: "No, return", + customClass: { + confirmButton: "btn btn-primary", + cancelButton: "btn btn-active-light" + } + }).then(function (result) { + if (result.value) { + form.reset(); // Reset form + modal.hide(); // Hide modal + } else if (result.dismiss === 'cancel') { + Swal.fire({ + text: "Your form has not been cancelled!.", + icon: "error", + buttonsStyling: false, + confirmButtonText: "Ok, got it!", + customClass: { + confirmButton: "btn btn-primary", + } + }); + } + }); + }); + } + + return { + // Public functions + init: function () { + // Elements + modalEl = document.querySelector('#kt_modal_new_target'); + + if (!modalEl) { + return; + } + + modal = new bootstrap.Modal(modalEl); + + form = document.querySelector('#kt_modal_new_target_form'); + submitButton = document.getElementById('kt_modal_new_target_submit'); + cancelButton = document.getElementById('kt_modal_new_target_cancel'); + + initForm(); + handleForm(); + } + }; +}(); + +// On document ready +KTUtil.onDOMContentLoaded(function () { + KTModalNewTarget.init(); +}); \ No newline at end of file diff --git a/resources/_keenthemes/src/js/custom/utilities/modals/offer-a-deal/complete.js b/resources/_keenthemes/src/js/custom/utilities/modals/offer-a-deal/complete.js new file mode 100644 index 0000000..98b7229 --- /dev/null +++ b/resources/_keenthemes/src/js/custom/utilities/modals/offer-a-deal/complete.js @@ -0,0 +1,32 @@ +"use strict"; + +// Class definition +var KTModalOfferADealComplete = function () { + // Variables + var startButton; + var form; + var stepper; + + // Private functions + var handleForm = function() { + startButton.addEventListener('click', function () { + stepper.goTo(1); + }); + } + + return { + // Public functions + init: function () { + form = KTModalOfferADeal.getForm(); + stepper = KTModalOfferADeal.getStepperObj(); + startButton = KTModalOfferADeal.getStepper().querySelector('[data-kt-element="complete-start"]'); + + handleForm(); + } + }; +}(); + +// Webpack support +if (typeof module !== 'undefined' && typeof module.exports !== 'undefined') { + window.KTModalOfferADealComplete = module.exports = KTModalOfferADealComplete; +} \ No newline at end of file diff --git a/resources/_keenthemes/src/js/custom/utilities/modals/offer-a-deal/details.js b/resources/_keenthemes/src/js/custom/utilities/modals/offer-a-deal/details.js new file mode 100644 index 0000000..49dd6d9 --- /dev/null +++ b/resources/_keenthemes/src/js/custom/utilities/modals/offer-a-deal/details.js @@ -0,0 +1,147 @@ +"use strict"; + +// Class definition +var KTModalOfferADealDetails = function () { + // Variables + var nextButton; + var previousButton; + var validator; + var form; + var stepper; + + // Private functions + var initForm = function() { + // Due date. For more info, please visit the official plugin site: https://flatpickr.js.org/ + var dueDate = $(form.querySelector('[name="details_activation_date"]')); + dueDate.flatpickr({ + enableTime: true, + dateFormat: "d, M Y, H:i", + }); + + // Expiry year. For more info, plase visit the official plugin site: https://select2.org/ + $(form.querySelector('[name="details_customer"]')).on('change', function() { + // Revalidate the field when an option is chosen + validator.revalidateField('details_customer'); + }); + } + + var initValidation = function() { + // Init form validation rules. For more info check the FormValidation plugin's official documentation:https://formvalidation.io/ + validator = FormValidation.formValidation( + form, + { + fields: { + 'details_customer': { + validators: { + notEmpty: { + message: 'Customer is required' + } + } + }, + 'details_title': { + validators: { + notEmpty: { + message: 'Deal title is required' + } + } + }, + 'details_activation_date': { + validators: { + notEmpty: { + message: 'Activation date is required' + } + } + }, + 'details_notifications[]': { + validators: { + notEmpty: { + message: 'Notifications are required' + } + } + } + }, + + plugins: { + trigger: new FormValidation.plugins.Trigger(), + bootstrap: new FormValidation.plugins.Bootstrap5({ + rowSelector: '.fv-row', + eleInvalidClass: '', + eleValidClass: '' + }) + } + } + ); + } + + var handleForm = function() { + nextButton.addEventListener('click', function (e) { + // Prevent default button action + e.preventDefault(); + + // Disable button to avoid multiple click + nextButton.disabled = true; + + // Validate form before submit + if (validator) { + validator.validate().then(function (status) { + console.log('validated!'); + + if (status == 'Valid') { + // Show loading indication + nextButton.setAttribute('data-kt-indicator', 'on'); + + // Simulate form submission + setTimeout(function() { + // Simulate form submission + nextButton.removeAttribute('data-kt-indicator'); + + // Enable button + nextButton.disabled = false; + + // Go to next step + stepper.goNext(); + }, 1500); + } else { + // Enable button + nextButton.disabled = false; + + // Show popup warning. For more info check the plugin's official documentation: https://sweetalert2.github.io/ + Swal.fire({ + text: "Sorry, looks like there are some errors detected, please try again.", + icon: "error", + buttonsStyling: false, + confirmButtonText: "Ok, got it!", + customClass: { + confirmButton: "btn btn-primary" + } + }); + } + }); + } + }); + + previousButton.addEventListener('click', function () { + // Go to previous step + stepper.goPrevious(); + }); + } + + return { + // Public functions + init: function () { + form = KTModalOfferADeal.getForm(); + stepper = KTModalOfferADeal.getStepperObj(); + nextButton = KTModalOfferADeal.getStepper().querySelector('[data-kt-element="details-next"]'); + previousButton = KTModalOfferADeal.getStepper().querySelector('[data-kt-element="details-previous"]'); + + initForm(); + initValidation(); + handleForm(); + } + }; +}(); + +// Webpack support +if (typeof module !== 'undefined' && typeof module.exports !== 'undefined') { + window.KTModalOfferADealDetails = module.exports = KTModalOfferADealDetails; +} \ No newline at end of file diff --git a/resources/_keenthemes/src/js/custom/utilities/modals/offer-a-deal/finance.js b/resources/_keenthemes/src/js/custom/utilities/modals/offer-a-deal/finance.js new file mode 100644 index 0000000..fe0457b --- /dev/null +++ b/resources/_keenthemes/src/js/custom/utilities/modals/offer-a-deal/finance.js @@ -0,0 +1,140 @@ +"use strict"; + +// Class definition +var KTModalOfferADealFinance = function () { + // Variables + var nextButton; + var previousButton; + var validator; + var form; + var stepper; + + // Private functions + var initValidation = function() { + // Init form validation rules. For more info check the FormValidation plugin's official documentation:https://formvalidation.io/ + validator = FormValidation.formValidation( + form, + { + fields: { + 'finance_setup': { + validators: { + notEmpty: { + message: 'Amount is required' + }, + callback: { + message: 'The amount must be greater than $100', + callback: function(input) { + var currency = input.value; + currency = currency.replace(/[$,]+/g,""); + + if (parseFloat(currency) < 100) { + return false; + } + } + } + } + }, + 'finance_usage': { + validators: { + notEmpty: { + message: 'Usage type is required' + } + } + }, + 'finance_allow': { + validators: { + notEmpty: { + message: 'Allowing budget is required' + } + } + } + }, + + plugins: { + trigger: new FormValidation.plugins.Trigger(), + bootstrap: new FormValidation.plugins.Bootstrap5({ + rowSelector: '.fv-row', + eleInvalidClass: '', + eleValidClass: '' + }) + } + } + ); + + // Revalidate on change + KTDialer.getInstance(form.querySelector('#kt_modal_finance_setup')).on('kt.dialer.changed', function() { + // Revalidate the field when an option is chosen + validator.revalidateField('finance_setup'); + }); + } + + var handleForm = function() { + nextButton.addEventListener('click', function (e) { + // Prevent default button action + e.preventDefault(); + + // Disable button to avoid multiple click + nextButton.disabled = true; + + // Validate form before submit + if (validator) { + validator.validate().then(function (status) { + console.log('validated!'); + + if (status == 'Valid') { + // Show loading indication + nextButton.setAttribute('data-kt-indicator', 'on'); + + // Simulate form submission + setTimeout(function() { + // Simulate form submission + nextButton.removeAttribute('data-kt-indicator'); + + // Enable button + nextButton.disabled = false; + + // Go to next step + stepper.goNext(); + }, 1500); + } else { + // Enable button + nextButton.disabled = false; + + // Show popup warning. For more info check the plugin's official documentation: https://sweetalert2.github.io/ + Swal.fire({ + text: "Sorry, looks like there are some errors detected, please try again.", + icon: "error", + buttonsStyling: false, + confirmButtonText: "Ok, got it!", + customClass: { + confirmButton: "btn btn-primary" + } + }); + } + }); + } + }); + + previousButton.addEventListener('click', function () { + stepper.goPrevious(); + }); + } + + return { + // Public functions + init: function () { + form = KTModalOfferADeal.getForm(); + stepper = KTModalOfferADeal.getStepperObj(); + nextButton = KTModalOfferADeal.getStepper().querySelector('[data-kt-element="finance-next"]'); + previousButton = KTModalOfferADeal.getStepper().querySelector('[data-kt-element="finance-previous"]'); + + initValidation(); + handleForm(); + } + }; +}(); + +// Webpack support +if (typeof module !== 'undefined' && typeof module.exports !== 'undefined') { + window.KTModalOfferADealFinance = module.exports = KTModalOfferADealFinance; +} \ No newline at end of file diff --git a/resources/_keenthemes/src/js/custom/utilities/modals/offer-a-deal/main.js b/resources/_keenthemes/src/js/custom/utilities/modals/offer-a-deal/main.js new file mode 100644 index 0000000..324a318 --- /dev/null +++ b/resources/_keenthemes/src/js/custom/utilities/modals/offer-a-deal/main.js @@ -0,0 +1,55 @@ +"use strict"; + +// Class definition +var KTModalOfferADeal = function () { + // Private variables + var stepper; + var stepperObj; + var form; + + // Private functions + var initStepper = function () { + // Initialize Stepper + stepperObj = new KTStepper(stepper); + } + + return { + // Public functions + init: function () { + stepper = document.querySelector('#kt_modal_offer_a_deal_stepper'); + form = document.querySelector('#kt_modal_offer_a_deal_form'); + + initStepper(); + }, + + getStepper: function () { + return stepper; + }, + + getStepperObj: function () { + return stepperObj; + }, + + getForm: function () { + return form; + } + }; +}(); + +// On document ready +KTUtil.onDOMContentLoaded(function () { + if (!document.querySelector('#kt_modal_offer_a_deal')) { + return; + } + + KTModalOfferADeal.init(); + KTModalOfferADealType.init(); + KTModalOfferADealDetails.init(); + KTModalOfferADealFinance.init(); + KTModalOfferADealComplete.init(); +}); + +// Webpack support +if (typeof module !== 'undefined' && typeof module.exports !== 'undefined') { + window.KTModalOfferADeal = module.exports = KTModalOfferADeal; +} \ No newline at end of file diff --git a/resources/_keenthemes/src/js/custom/utilities/modals/offer-a-deal/type.js b/resources/_keenthemes/src/js/custom/utilities/modals/offer-a-deal/type.js new file mode 100644 index 0000000..5f896d1 --- /dev/null +++ b/resources/_keenthemes/src/js/custom/utilities/modals/offer-a-deal/type.js @@ -0,0 +1,103 @@ +"use strict"; + +// Class definition +var KTModalOfferADealType = function () { + // Variables + var nextButton; + var validator; + var form; + var stepper; + + // Private functions + var initValidation = function() { + // Init form validation rules. For more info check the FormValidation plugin's official documentation:https://formvalidation.io/ + validator = FormValidation.formValidation( + form, + { + fields: { + 'offer_type': { + validators: { + notEmpty: { + message: 'Offer type is required' + } + } + } + }, + + plugins: { + trigger: new FormValidation.plugins.Trigger(), + bootstrap: new FormValidation.plugins.Bootstrap5({ + rowSelector: '.fv-row', + eleInvalidClass: '', + eleValidClass: '' + }) + } + } + ); + } + + var handleForm = function() { + nextButton.addEventListener('click', function (e) { + // Prevent default button action + e.preventDefault(); + + // Disable button to avoid multiple click + nextButton.disabled = true; + + // Validate form before submit + if (validator) { + validator.validate().then(function (status) { + console.log('validated!'); + + if (status == 'Valid') { + // Show loading indication + nextButton.setAttribute('data-kt-indicator', 'on'); + + // Simulate form submission + setTimeout(function() { + // Simulate form submission + nextButton.removeAttribute('data-kt-indicator'); + + // Enable button + nextButton.disabled = false; + + // Go to next step + stepper.goNext(); + }, 1000); + } else { + // Enable button + nextButton.disabled = false; + + // Show popup warning. For more info check the plugin's official documentation: https://sweetalert2.github.io/ + Swal.fire({ + text: "Sorry, looks like there are some errors detected, please try again.", + icon: "error", + buttonsStyling: false, + confirmButtonText: "Ok, got it!", + customClass: { + confirmButton: "btn btn-primary" + } + }); + } + }); + } + }); + } + + return { + // Public functions + init: function () { + form = KTModalOfferADeal.getForm(); + stepper = KTModalOfferADeal.getStepperObj(); + nextButton = KTModalOfferADeal.getStepper().querySelector('[data-kt-element="type-next"]'); + + initValidation(); + handleForm(); + } + }; +}(); + +// Webpack support +if (typeof module !== 'undefined' && typeof module.exports !== 'undefined') { + window.KTModalOfferADealType = module.exports = KTModalOfferADealType; +} \ No newline at end of file diff --git a/resources/_keenthemes/src/js/custom/utilities/modals/select-location.js b/resources/_keenthemes/src/js/custom/utilities/modals/select-location.js new file mode 100644 index 0000000..474f41a --- /dev/null +++ b/resources/_keenthemes/src/js/custom/utilities/modals/select-location.js @@ -0,0 +1,117 @@ +"use strict"; + +// Class definition +var KTModalSelectLocation = function () { + // Private variables + var locationSelectTarget; + var locationSelectButton; + + var modal; + var selectedlocation = ''; + var mapInitialized = false; + + // Private functions + var initMap = function() { + // Check if Leaflet is included + if (!L) { + return; + } + + // Define Map Location + var leaflet = L.map('kt_modal_select_location_map', { + center: [40.725, -73.985], + zoom: 30 + }); + + // Init Leaflet Map. For more info check the plugin's documentation: https://leafletjs.com/ + L.tileLayer('https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png', { + attribution: '© OpenStreetMap contributors' + }).addTo(leaflet); + + // Set Geocoding + var geocodeService; + if (typeof L.esri.Geocoding === 'undefined') { + geocodeService = L.esri.geocodeService(); + } else { + geocodeService = L.esri.Geocoding.geocodeService(); + } + + // Define Marker Layer + var markerLayer = L.layerGroup().addTo(leaflet); + + // Set Custom SVG icon marker + var leafletIcon = L.divIcon({ + html: `
`, + bgPos: [10, 10], + iconAnchor: [20, 37], + popupAnchor: [0, -37], + className: 'leaflet-marker' + }); + + // Map onClick Action + leaflet.on('click', function (e) { + geocodeService.reverse().latlng(e.latlng).run(function (error, result) { + if (error) { + return; + } + markerLayer.clearLayers(); + selectedlocation = result.address.Match_addr; + L.marker(result.latlng, { icon: leafletIcon }).addTo(markerLayer).bindPopup(result.address.Match_addr, { closeButton: false }).openPopup(); + + // Show popup confirmation. For more info check the plugin's official documentation: https://sweetalert2.github.io/ + Swal.fire({ + html: '
Your selected - "' + selectedlocation + '".
' + 'Click on the "Apply" button to select this location.', + icon: "success", + buttonsStyling: false, + confirmButtonText: "Ok, got it!", + customClass: { + confirmButton: "btn btn-primary" + } + }).then(function (result) { + // Confirmed + }); + }); + }); + } + + var handleSelection = function() { + locationSelectButton.addEventListener('click', function() { + if (locationSelectTarget) { + if (locationSelectTarget.value) { + locationSelectTarget.value = selectedlocation; + } else { + locationSelectTarget.innerHTML = selectedlocation; + } + } + }); + } + + // Public methods + return { + init: function () { + // Elements + modal = document.querySelector('#kt_modal_select_location'); + + if (!modal) { + return; + } + + locationSelectTarget = document.querySelector('#kt_modal_select_location_target'); + locationSelectButton = document.querySelector('#kt_modal_select_location_button'); + + handleSelection(); + + modal.addEventListener('shown.bs.modal', function () { + if (!mapInitialized) { + initMap(); + mapInitialized = true; + } + }); + } + } +}(); + +// On document ready +KTUtil.onDOMContentLoaded(function() { + KTModalSelectLocation.init(); +}); diff --git a/resources/_keenthemes/src/js/custom/utilities/modals/share-earn.js b/resources/_keenthemes/src/js/custom/utilities/modals/share-earn.js new file mode 100644 index 0000000..3d44992 --- /dev/null +++ b/resources/_keenthemes/src/js/custom/utilities/modals/share-earn.js @@ -0,0 +1,47 @@ +"use strict"; + +// Class definition +var KTModalShareEarn = function () { + // Private functions + var handleForm = function() { + var button = document.querySelector('#kt_share_earn_link_copy_button'); + var input = document.querySelector('#kt_share_earn_link_input'); + var clipboard = new ClipboardJS(button); + + if (!clipboard) { + return; + } + + // Copy text to clipboard. For more info check the plugin's documentation: https://clipboardjs.com/ + clipboard.on('success', function(e) { + var buttonCaption = button.innerHTML; + //Add bgcolor + input.classList.add('bg-success'); + input.classList.add('text-inverse-success'); + + button.innerHTML = 'Copied!'; + + setTimeout(function() { + button.innerHTML = buttonCaption; + + // Remove bgcolor + input.classList.remove('bg-success'); + input.classList.remove('text-inverse-success'); + }, 3000); // 3seconds + + e.clearSelection(); + }); + } + + // Public methods + return { + init: function () { + handleForm(); + } + } +}(); + +// On document ready +KTUtil.onDOMContentLoaded(function() { + KTModalShareEarn.init(); +}); diff --git a/resources/_keenthemes/src/js/custom/utilities/modals/top-up-wallet.js b/resources/_keenthemes/src/js/custom/utilities/modals/top-up-wallet.js new file mode 100644 index 0000000..52362ce --- /dev/null +++ b/resources/_keenthemes/src/js/custom/utilities/modals/top-up-wallet.js @@ -0,0 +1,280 @@ +"use strict"; + +// Class definition +var KTModalTopUpWallet = function () { + // Elements + var modal; + var modalEl; + + var stepper; + var form; + var formSubmitButton; + var formContinueButton; + + // Variables + var stepperObj; + var validations = []; + + // Private Functions + var initStepper = function () { + // Initialize Stepper + stepperObj = new KTStepper(stepper); + + // Stepper change event(handle hiding submit button for the last step) + stepperObj.on('kt.stepper.changed', function (stepper) { + if (stepperObj.getCurrentStepIndex() === 4) { + formSubmitButton.classList.remove('d-none'); + formSubmitButton.classList.add('d-inline-block'); + formContinueButton.classList.add('d-none'); + } else if (stepperObj.getCurrentStepIndex() === 5) { + formSubmitButton.classList.add('d-none'); + formContinueButton.classList.add('d-none'); + } else { + formSubmitButton.classList.remove('d-inline-block'); + formSubmitButton.classList.remove('d-none'); + formContinueButton.classList.remove('d-none'); + } + }); + + // Validation before going to next page + stepperObj.on('kt.stepper.next', function (stepper) { + console.log('stepper.next'); + + // Validate form before change stepper step + var validator = validations[stepper.getCurrentStepIndex() - 1]; // get validator for currnt step + + if (validator) { + validator.validate().then(function (status) { + console.log('validated!'); + + if (status == 'Valid') { + stepper.goNext(); + + //KTUtil.scrollTop(); + } else { + // Show error message popup. For more info check the plugin's official documentation: https://sweetalert2.github.io/ + Swal.fire({ + text: "Sorry, looks like there are some errors detected, please try again.", + icon: "error", + buttonsStyling: false, + confirmButtonText: "Ok, got it!", + customClass: { + confirmButton: "btn btn-light" + } + }).then(function () { + //KTUtil.scrollTop(); + }); + } + }); + } else { + stepper.goNext(); + + KTUtil.scrollTop(); + } + }); + + // Prev event + stepperObj.on('kt.stepper.previous', function (stepper) { + console.log('stepper.previous'); + + stepper.goPrevious(); + KTUtil.scrollTop(); + }); + + formSubmitButton.addEventListener('click', function (e) { + // Prevent default button action + e.preventDefault(); + + // Disable button to avoid multiple click + formSubmitButton.disabled = true; + + // Show loading indication + formSubmitButton.setAttribute('data-kt-indicator', 'on'); + + // Simulate form submission + setTimeout(function () { + // Hide loading indication + formSubmitButton.removeAttribute('data-kt-indicator'); + + // Enable button + formSubmitButton.disabled = false; + + stepperObj.goNext(); + //KTUtil.scrollTop(); + }, 2000); + }); + } + + // Init form inputs + var initForm = function () { + // Handle currency swap logic + const currencyTypes = form.querySelectorAll('[name="currency_type"]'); + const targets = form.querySelectorAll('[data-kt-modal-top-up-wallet-option]'); + let value = "dollar"; + currencyTypes.forEach(currency => { + currency.addEventListener('change', e => { + value = e.target.value; + + targets.forEach(target => { + target.classList.add('d-none'); + + if(target.getAttribute('data-kt-modal-top-up-wallet-option') === value){ + target.classList.remove('d-none'); + } + }); + }); + }); + + // Handle top up wallet button + const restartButton = document.querySelector('#kt_modal_top_up_wallet_create_new'); + restartButton.addEventListener('click', function () { + form.reset(); + stepperObj.goTo(1); + }); + } + + // Init validation + var initValidation = function () { + // Init form validation rules. For more info check the FormValidation plugin's official documentation:https://formvalidation.io/ + // Step 1 + validations.push(FormValidation.formValidation( + form, + { + fields: { + top_up_amount: { + validators: { + notEmpty: { + message: 'Top up amount is required' + } + } + } + }, + plugins: { + trigger: new FormValidation.plugins.Trigger(), + bootstrap: new FormValidation.plugins.Bootstrap5({ + rowSelector: '.fv-row', + eleInvalidClass: '', + eleValidClass: '' + }) + } + } + )); + + // Step 2 + validations.push(FormValidation.formValidation( + form, + { + fields: { + payment_methods: { + validators: { + notEmpty: { + message: 'Payment method is required' + } + } + } + }, + plugins: { + trigger: new FormValidation.plugins.Trigger(), + bootstrap: new FormValidation.plugins.Bootstrap5({ + rowSelector: '.fv-row', + eleInvalidClass: '', + eleValidClass: '' + }) + } + } + )); + + // Step 3 + validations.push(FormValidation.formValidation( + form, + { + fields: { + top_up_password: { + validators: { + notEmpty: { + message: 'Password is required' + } + } + } + }, + plugins: { + trigger: new FormValidation.plugins.Trigger(), + bootstrap: new FormValidation.plugins.Bootstrap5({ + rowSelector: '.fv-row', + eleInvalidClass: '', + eleValidClass: '' + }) + } + } + )); + } + + // Handle cancel modal + const handleCancelAction = () => { + const closeButton = modalEl.querySelector('[data-kt-modal-action-type="close"]'); + closeButton.addEventListener('click', e => { + cancelAction(e); + }); + + const cancelAction = (e) => { + e.preventDefault(); + + Swal.fire({ + text: "Are you sure you would like to cancel?", + icon: "warning", + showCancelButton: true, + buttonsStyling: false, + confirmButtonText: "Yes, cancel it!", + cancelButtonText: "No, return", + customClass: { + confirmButton: "btn btn-primary", + cancelButton: "btn btn-active-light" + } + }).then(function (result) { + if (result.value) { + form.reset(); // Reset form + modal.hide(); // Hide modal + } else if (result.dismiss === 'cancel') { + Swal.fire({ + text: "Your form has not been cancelled!.", + icon: "error", + buttonsStyling: false, + confirmButtonText: "Ok, got it!", + customClass: { + confirmButton: "btn btn-primary", + } + }); + } + }); + } + } + + return { + // Public Functions + init: function () { + // Elements + modalEl = document.querySelector('#kt_modal_top_up_wallet'); + + if (!modalEl) { + return; + } + + modal = new bootstrap.Modal(modalEl); + + stepper = document.querySelector('#kt_modal_top_up_wallet_stepper'); + form = document.querySelector('#kt_modal_top_up_wallet_stepper_form'); + formSubmitButton = stepper.querySelector('[data-kt-stepper-action="submit"]'); + formContinueButton = stepper.querySelector('[data-kt-stepper-action="next"]'); + + initStepper(); + initForm(); + initValidation(); + handleCancelAction(); + } + }; +}(); + +// On document ready +KTUtil.onDOMContentLoaded(function () { + KTModalTopUpWallet.init(); +}); diff --git a/resources/_keenthemes/src/js/custom/utilities/modals/two-factor-authentication.js b/resources/_keenthemes/src/js/custom/utilities/modals/two-factor-authentication.js new file mode 100644 index 0000000..29488f2 --- /dev/null +++ b/resources/_keenthemes/src/js/custom/utilities/modals/two-factor-authentication.js @@ -0,0 +1,266 @@ +"use strict"; + +// Class definition +var KTModalTwoFactorAuthentication = function () { + // Private variables + var modal; + var modalObject; + + var optionsWrapper; + var optionsSelectButton; + + var smsWrapper; + var smsForm; + var smsSubmitButton; + var smsCancelButton; + var smsValidator; + + var appsWrapper; + var appsForm; + var appsSubmitButton; + var appsCancelButton; + var appsValidator; + + // Private functions + var handleOptionsForm = function() { + // Handle options selection + optionsSelectButton.addEventListener('click', function (e) { + e.preventDefault(); + var option = optionsWrapper.querySelector('[name="auth_option"]:checked'); + + optionsWrapper.classList.add('d-none'); + + if (option.value == 'sms') { + smsWrapper.classList.remove('d-none'); + } else { + appsWrapper.classList.remove('d-none'); + } + }); + } + + var showOptionsForm = function() { + optionsWrapper.classList.remove('d-none'); + smsWrapper.classList.add('d-none'); + appsWrapper.classList.add('d-none'); + } + + var handleSMSForm = function() { + // Init form validation rules. For more info check the FormValidation plugin's official documentation:https://formvalidation.io/ + smsValidator = FormValidation.formValidation( + smsForm, + { + fields: { + 'mobile': { + validators: { + notEmpty: { + message: 'Mobile no is required' + } + } + } + }, + plugins: { + trigger: new FormValidation.plugins.Trigger(), + bootstrap: new FormValidation.plugins.Bootstrap5({ + rowSelector: '.fv-row', + eleInvalidClass: '', + eleValidClass: '' + }) + } + } + ); + + // Handle apps submition + smsSubmitButton.addEventListener('click', function (e) { + e.preventDefault(); + + // Validate form before submit + if (smsValidator) { + smsValidator.validate().then(function (status) { + console.log('validated!'); + + if (status == 'Valid') { + // Show loading indication + smsSubmitButton.setAttribute('data-kt-indicator', 'on'); + + // Disable button to avoid multiple click + smsSubmitButton.disabled = true; + + // Simulate ajax process + setTimeout(function() { + // Remove loading indication + smsSubmitButton.removeAttribute('data-kt-indicator'); + + // Enable button + smsSubmitButton.disabled = false; + + // Show success message. For more info check the plugin's official documentation: https://sweetalert2.github.io/ + Swal.fire({ + text: "Mobile number has been successfully submitted!", + icon: "success", + buttonsStyling: false, + confirmButtonText: "Ok, got it!", + customClass: { + confirmButton: "btn btn-primary" + } + }).then(function (result) { + if (result.isConfirmed) { + modalObject.hide(); + showOptionsForm(); + } + }); + + //smsForm.submit(); // Submit form + }, 2000); + } else { + // Show error message. + Swal.fire({ + text: "Sorry, looks like there are some errors detected, please try again.", + icon: "error", + buttonsStyling: false, + confirmButtonText: "Ok, got it!", + customClass: { + confirmButton: "btn btn-primary" + } + }); + } + }); + } + }); + + // Handle sms cancelation + smsCancelButton.addEventListener('click', function (e) { + e.preventDefault(); + var option = optionsWrapper.querySelector('[name="auth_option"]:checked'); + + optionsWrapper.classList.remove('d-none'); + smsWrapper.classList.add('d-none'); + }); + } + + var handleAppsForm = function() { + // Init form validation rules. For more info check the FormValidation plugin's official documentation:https://formvalidation.io/ + appsValidator = FormValidation.formValidation( + appsForm, + { + fields: { + 'code': { + validators: { + notEmpty: { + message: 'Code is required' + } + } + } + }, + plugins: { + trigger: new FormValidation.plugins.Trigger(), + bootstrap: new FormValidation.plugins.Bootstrap5({ + rowSelector: '.fv-row', + eleInvalidClass: '', + eleValidClass: '' + }) + } + } + ); + + // Handle apps submition + appsSubmitButton.addEventListener('click', function (e) { + e.preventDefault(); + + // Validate form before submit + if (appsValidator) { + appsValidator.validate().then(function (status) { + console.log('validated!'); + + if (status == 'Valid') { + appsSubmitButton.setAttribute('data-kt-indicator', 'on'); + + // Disable button to avoid multiple click + appsSubmitButton.disabled = true; + + setTimeout(function() { + appsSubmitButton.removeAttribute('data-kt-indicator'); + + // Enable button + appsSubmitButton.disabled = false; + + // Show success message. + Swal.fire({ + text: "Code has been successfully submitted!", + icon: "success", + buttonsStyling: false, + confirmButtonText: "Ok, got it!", + customClass: { + confirmButton: "btn btn-primary" + } + }).then(function (result) { + if (result.isConfirmed) { + modalObject.hide(); + showOptionsForm(); + } + }); + + //appsForm.submit(); // Submit form + }, 2000); + } else { + // Show error message. + Swal.fire({ + text: "Sorry, looks like there are some errors detected, please try again.", + icon: "error", + buttonsStyling: false, + confirmButtonText: "Ok, got it!", + customClass: { + confirmButton: "btn btn-primary" + } + }); + } + }); + } + }); + + // Handle apps cancelation + appsCancelButton.addEventListener('click', function (e) { + e.preventDefault(); + var option = optionsWrapper.querySelector('[name="auth_option"]:checked'); + + optionsWrapper.classList.remove('d-none'); + appsWrapper.classList.add('d-none'); + }); + } + + // Public methods + return { + init: function () { + // Elements + modal = document.querySelector('#kt_modal_two_factor_authentication'); + + if (!modal) { + return; + } + + modalObject = new bootstrap.Modal(modal); + + optionsWrapper = modal.querySelector('[data-kt-element="options"]'); + optionsSelectButton = modal.querySelector('[data-kt-element="options-select"]'); + + smsWrapper = modal.querySelector('[data-kt-element="sms"]'); + smsForm = modal.querySelector('[data-kt-element="sms-form"]'); + smsSubmitButton = modal.querySelector('[data-kt-element="sms-submit"]'); + smsCancelButton = modal.querySelector('[data-kt-element="sms-cancel"]'); + + appsWrapper = modal.querySelector('[data-kt-element="apps"]'); + appsForm = modal.querySelector('[data-kt-element="apps-form"]'); + appsSubmitButton = modal.querySelector('[data-kt-element="apps-submit"]'); + appsCancelButton = modal.querySelector('[data-kt-element="apps-cancel"]'); + + // Handle forms + handleOptionsForm(); + handleSMSForm(); + handleAppsForm(); + } + } +}(); + +// On document ready +KTUtil.onDOMContentLoaded(function() { + KTModalTwoFactorAuthentication.init(); +}); diff --git a/resources/_keenthemes/src/js/custom/utilities/modals/upgrade-plan.js b/resources/_keenthemes/src/js/custom/utilities/modals/upgrade-plan.js new file mode 100644 index 0000000..47f69b0 --- /dev/null +++ b/resources/_keenthemes/src/js/custom/utilities/modals/upgrade-plan.js @@ -0,0 +1,118 @@ +"use strict"; + +// Class definition +var KTModalUpgradePlan = function () { + // Private variables + var modal; + var planPeriodMonthButton; + var planPeriodAnnualButton; + var planUpgradeButton; + + // Private functions + var changePlanPrices = function(type) { + var items = [].slice.call(modal.querySelectorAll('[data-kt-plan-price-month]')); + + items.map(function (item) { + var monthPrice = item.getAttribute('data-kt-plan-price-month'); + var annualPrice = item.getAttribute('data-kt-plan-price-annual'); + + if ( type === 'month' ) { + item.innerHTML = monthPrice; + } else if ( type === 'annual' ) { + item.innerHTML = annualPrice; + } + }); + } + + var handlePlanPeriodSelection = function() { + // Handle period change + planPeriodMonthButton.addEventListener('click', function (e) { + e.preventDefault(); + + planPeriodMonthButton.classList.add('active'); + planPeriodAnnualButton.classList.remove('active'); + + changePlanPrices('month'); + }); + + planPeriodAnnualButton.addEventListener('click', function (e) { + e.preventDefault(); + + planPeriodMonthButton.classList.remove('active'); + planPeriodAnnualButton.classList.add('active'); + + changePlanPrices('annual'); + }); + } + + var handlePlanUpgrade = function () { + if ( !planUpgradeButton ) { + return; + } + + planUpgradeButton.addEventListener('click', function (e) { + e.preventDefault(); + + var el = this; + + swal.fire({ + text: "Are you sure you would like to upgrade to selected plan ?", + icon: "warning", + buttonsStyling: false, + showDenyButton: true, + confirmButtonText: "Yes", + denyButtonText: 'No', + customClass: { + confirmButton: "btn btn-primary", + denyButton: "btn btn-light-danger" + } + }).then((result) => { + if (result.isConfirmed) { + el.setAttribute('data-kt-indicator', 'on'); + el.disabled = true; + + setTimeout(function() { + Swal.fire({ + text: 'Your subscription plan has been successfully upgraded', + icon: 'success', + confirmButtonText: "Ok", + buttonsStyling: false, + customClass: { + confirmButton: "btn btn-light-primary" + } + }).then((result) => { + bootstrap.Modal.getInstance(modal).hide(); + }) + + }, 2000); + } + }); + }); + } + + // Public methods + return { + init: function () { + // Elements + modal = document.querySelector('#kt_modal_upgrade_plan'); + + if (!modal) { + return; + } + + planPeriodMonthButton = modal.querySelector('[data-kt-plan="month"]'); + planPeriodAnnualButton = modal.querySelector('[data-kt-plan="annual"]'); + planUpgradeButton = document.querySelector('#kt_modal_upgrade_plan_btn'); + + // Handlers + handlePlanPeriodSelection(); + handlePlanUpgrade(); + changePlanPrices(); + } + } +}(); + +// On document ready +KTUtil.onDOMContentLoaded(function() { + KTModalUpgradePlan.init(); +}); diff --git a/resources/_keenthemes/src/js/custom/utilities/modals/users-search.js b/resources/_keenthemes/src/js/custom/utilities/modals/users-search.js new file mode 100644 index 0000000..1ac2964 --- /dev/null +++ b/resources/_keenthemes/src/js/custom/utilities/modals/users-search.js @@ -0,0 +1,77 @@ +"use strict"; + +// Class definition +var KTModalUserSearch = function () { + // Private variables + var element; + var suggestionsElement; + var resultsElement; + var wrapperElement; + var emptyElement; + var searchObject; + + // Private functions + var processs = function (search) { + var timeout = setTimeout(function () { + var number = KTUtil.getRandomInt(1, 3); + + // Hide recently viewed + suggestionsElement.classList.add('d-none'); + + if (number === 3) { + // Hide results + resultsElement.classList.add('d-none'); + // Show empty message + emptyElement.classList.remove('d-none'); + } else { + // Show results + resultsElement.classList.remove('d-none'); + // Hide empty message + emptyElement.classList.add('d-none'); + } + + // Complete search + search.complete(); + }, 1500); + } + + var clear = function (search) { + // Show recently viewed + suggestionsElement.classList.remove('d-none'); + // Hide results + resultsElement.classList.add('d-none'); + // Hide empty message + emptyElement.classList.add('d-none'); + } + + // Public methods + return { + init: function () { + // Elements + element = document.querySelector('#kt_modal_users_search_handler'); + + if (!element) { + return; + } + + wrapperElement = element.querySelector('[data-kt-search-element="wrapper"]'); + suggestionsElement = element.querySelector('[data-kt-search-element="suggestions"]'); + resultsElement = element.querySelector('[data-kt-search-element="results"]'); + emptyElement = element.querySelector('[data-kt-search-element="empty"]'); + + // Initialize search handler + searchObject = new KTSearch(element); + + // Search handler + searchObject.on('kt.search.process', processs); + + // Clear handler + searchObject.on('kt.search.clear', clear); + } + }; +}(); + +// On document ready +KTUtil.onDOMContentLoaded(function () { + KTModalUserSearch.init(); +}); \ No newline at end of file diff --git a/resources/_keenthemes/src/js/custom/utilities/search/horizontal.js b/resources/_keenthemes/src/js/custom/utilities/search/horizontal.js new file mode 100644 index 0000000..2ad9dd7 --- /dev/null +++ b/resources/_keenthemes/src/js/custom/utilities/search/horizontal.js @@ -0,0 +1,40 @@ +"use strict"; + +// Class definition +var KTSearchHorizontal = function () { + // Private functions + var initAdvancedSearchForm = function () { + var form = document.querySelector('#kt_advanced_search_form'); + + // Init tags + var tags = form.querySelector('[name="tags"]'); + new Tagify(tags); + } + + var handleAdvancedSearchToggle = function () { + var link = document.querySelector('#kt_horizontal_search_advanced_link'); + + link.addEventListener('click', function (e) { + e.preventDefault(); + + if (link.innerHTML === "Advanced Search") { + link.innerHTML = "Hide Advanced Search"; + } else { + link.innerHTML = "Advanced Search"; + } + }) + } + + // Public methods + return { + init: function () { + initAdvancedSearchForm(); + handleAdvancedSearchToggle(); + } + } +}(); + +// On document ready +KTUtil.onDOMContentLoaded(function () { + KTSearchHorizontal.init(); +}); diff --git a/resources/_keenthemes/src/js/custom/widgets.js b/resources/_keenthemes/src/js/custom/widgets.js new file mode 100644 index 0000000..4961fb3 --- /dev/null +++ b/resources/_keenthemes/src/js/custom/widgets.js @@ -0,0 +1,3597 @@ +"use strict"; + +// Class definition +var KTWidgets = function () { + // Statistics widgets + var initStatisticsWidget3 = function() { + var charts = document.querySelectorAll('.statistics-widget-3-chart'); + + [].slice.call(charts).map(function(element) { + var height = parseInt(KTUtil.css(element, 'height')); + + if ( !element ) { + return; + } + + var color = element.getAttribute('data-kt-chart-color'); + + var labelColor = KTUtil.getCssVariableValue('--bs-' + 'gray-800'); + var baseColor = KTUtil.getCssVariableValue('--bs-' + color); + var lightColor = KTUtil.getCssVariableValue('--bs-' + color + '-light'); + + var options = { + series: [{ + name: 'Net Profit', + data: [30, 45, 32, 70, 40] + }], + chart: { + fontFamily: 'inherit', + type: 'area', + height: height, + toolbar: { + show: false + }, + zoom: { + enabled: false + }, + sparkline: { + enabled: true + } + }, + plotOptions: {}, + legend: { + show: false + }, + dataLabels: { + enabled: false + }, + fill: { + type: 'solid', + opacity: 0.3 + }, + stroke: { + curve: 'smooth', + show: true, + width: 3, + colors: [baseColor] + }, + xaxis: { + categories: ['Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul'], + axisBorder: { + show: false, + }, + axisTicks: { + show: false + }, + labels: { + show: false, + style: { + colors: labelColor, + fontSize: '12px' + } + }, + crosshairs: { + show: false, + position: 'front', + stroke: { + color: '#E4E6EF', + width: 1, + dashArray: 3 + } + }, + tooltip: { + enabled: true, + formatter: undefined, + offsetY: 0, + style: { + fontSize: '12px' + } + } + }, + yaxis: { + min: 0, + max: 80, + labels: { + show: false, + style: { + colors: labelColor, + fontSize: '12px' + } + } + }, + states: { + normal: { + filter: { + type: 'none', + value: 0 + } + }, + hover: { + filter: { + type: 'none', + value: 0 + } + }, + active: { + allowMultipleDataPointsSelection: false, + filter: { + type: 'none', + value: 0 + } + } + }, + tooltip: { + style: { + fontSize: '12px' + }, + y: { + formatter: function(val) { + return "$" + val + " thousands" + } + } + }, + colors: [baseColor], + markers: { + colors: [baseColor], + strokeColor: [lightColor], + strokeWidth: 3 + } + }; + + var chart = new ApexCharts(element, options); + chart.render(); + }); + } + + var initStatisticsWidget4 = function() { + var charts = document.querySelectorAll('.statistics-widget-4-chart'); + + [].slice.call(charts).map(function(element) { + var height = parseInt(KTUtil.css(element, 'height')); + + if ( !element ) { + return; + } + + var color = element.getAttribute('data-kt-chart-color'); + + var labelColor = KTUtil.getCssVariableValue('--bs-' + 'gray-800'); + var baseColor = KTUtil.getCssVariableValue('--bs-' + color); + var lightColor = KTUtil.getCssVariableValue('--bs-' + color + '-light' ); + + var options = { + series: [{ + name: 'Net Profit', + data: [40, 40, 30, 30, 35, 35, 50] + }], + chart: { + fontFamily: 'inherit', + type: 'area', + height: height, + toolbar: { + show: false + }, + zoom: { + enabled: false + }, + sparkline: { + enabled: true + } + }, + plotOptions: {}, + legend: { + show: false + }, + dataLabels: { + enabled: false + }, + fill: { + type: 'solid', + opacity: 0.3 + }, + stroke: { + curve: 'smooth', + show: true, + width: 3, + colors: [baseColor] + }, + xaxis: { + categories: ['Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul', 'Aug'], + axisBorder: { + show: false, + }, + axisTicks: { + show: false + }, + labels: { + show: false, + style: { + colors: labelColor, + fontSize: '12px' + } + }, + crosshairs: { + show: false, + position: 'front', + stroke: { + color: '#E4E6EF', + width: 1, + dashArray: 3 + } + }, + tooltip: { + enabled: true, + formatter: undefined, + offsetY: 0, + style: { + fontSize: '12px' + } + } + }, + yaxis: { + min: 0, + max: 60, + labels: { + show: false, + style: { + colors: labelColor, + fontSize: '12px' + } + } + }, + states: { + normal: { + filter: { + type: 'none', + value: 0 + } + }, + hover: { + filter: { + type: 'none', + value: 0 + } + }, + active: { + allowMultipleDataPointsSelection: false, + filter: { + type: 'none', + value: 0 + } + } + }, + tooltip: { + style: { + fontSize: '12px' + }, + y: { + formatter: function(val) { + return "$" + val + " thousands" + } + } + }, + colors: [baseColor], + markers: { + colors: [baseColor], + strokeColor: [lightColor], + strokeWidth: 3 + } + }; + + var chart = new ApexCharts(element, options); + chart.render(); + }); + } + + // Charts widgets + var initChartsWidget1 = function() { + var element = document.getElementById("kt_charts_widget_1_chart"); + + if ( !element ) { + return; + } + + var chart = { + self: null, + rendered: false + }; + + var initChart = function() { + var height = parseInt(KTUtil.css(element, 'height')); + var labelColor = KTUtil.getCssVariableValue('--bs-gray-500'); + var borderColor = KTUtil.getCssVariableValue('--bs-gray-200'); + var baseColor = KTUtil.getCssVariableValue('--bs-primary'); + var secondaryColor = KTUtil.getCssVariableValue('--bs-gray-300'); + + var options = { + series: [{ + name: 'Net Profit', + data: [44, 55, 57, 56, 61, 58] + }, { + name: 'Revenue', + data: [76, 85, 101, 98, 87, 105] + }], + chart: { + fontFamily: 'inherit', + type: 'bar', + height: height, + toolbar: { + show: false + } + }, + plotOptions: { + bar: { + horizontal: false, + columnWidth: ['30%'], + borderRadius: [6] + }, + }, + legend: { + show: false + }, + dataLabels: { + enabled: false + }, + stroke: { + show: true, + width: 2, + colors: ['transparent'] + }, + xaxis: { + categories: ['Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul'], + axisBorder: { + show: false, + }, + axisTicks: { + show: false + }, + labels: { + style: { + colors: labelColor, + fontSize: '12px' + } + } + }, + yaxis: { + labels: { + style: { + colors: labelColor, + fontSize: '12px' + } + } + }, + fill: { + opacity: 1 + }, + states: { + normal: { + filter: { + type: 'none', + value: 0 + } + }, + hover: { + filter: { + type: 'none', + value: 0 + } + }, + active: { + allowMultipleDataPointsSelection: false, + filter: { + type: 'none', + value: 0 + } + } + }, + tooltip: { + style: { + fontSize: '12px' + }, + y: { + formatter: function (val) { + return "$" + val + " thousands" + } + } + }, + colors: [baseColor, secondaryColor], + grid: { + borderColor: borderColor, + strokeDashArray: 4, + yaxis: { + lines: { + show: true + } + } + } + }; + + chart.self = new ApexCharts(element, options); + chart.self.render(); + chart.rendered = true; + } + + // Init chart + initChart(); + + // Update chart on theme mode change + KTThemeMode.on("kt.thememode.change", function() { + if (chart.rendered) { + chart.self.destroy(); + } + + initChart(); + }); + } + + var initChartsWidget2 = function() { + var element = document.getElementById("kt_charts_widget_2_chart"); + + if ( !element ) { + return; + } + + var chart = { + self: null, + rendered: false + }; + + var initChart = function() { + var height = parseInt(KTUtil.css(element, 'height')); + var labelColor = KTUtil.getCssVariableValue('--bs-gray-500'); + var borderColor = KTUtil.getCssVariableValue('--bs-gray-200'); + var baseColor = KTUtil.getCssVariableValue('--bs-warning'); + var secondaryColor = KTUtil.getCssVariableValue('--bs-gray-300'); + + var options = { + series: [{ + name: 'Net Profit', + data: [44, 55, 57, 56, 61, 58] + }, { + name: 'Revenue', + data: [76, 85, 101, 98, 87, 105] + }], + chart: { + fontFamily: 'inherit', + type: 'bar', + height: height, + toolbar: { + show: false + } + }, + plotOptions: { + bar: { + horizontal: false, + columnWidth: ['30%'], + borderRadius: 4 + }, + }, + legend: { + show: false + }, + dataLabels: { + enabled: false + }, + stroke: { + show: true, + width: 2, + colors: ['transparent'] + }, + xaxis: { + categories: ['Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul'], + axisBorder: { + show: false, + }, + axisTicks: { + show: false + }, + labels: { + style: { + colors: labelColor, + fontSize: '12px' + } + } + }, + yaxis: { + labels: { + style: { + colors: labelColor, + fontSize: '12px' + } + } + }, + fill: { + opacity: 1 + }, + states: { + normal: { + filter: { + type: 'none', + value: 0 + } + }, + hover: { + filter: { + type: 'none', + value: 0 + } + }, + active: { + allowMultipleDataPointsSelection: false, + filter: { + type: 'none', + value: 0 + } + } + }, + tooltip: { + style: { + fontSize: '12px' + }, + y: { + formatter: function (val) { + return "$" + val + " thousands" + } + } + }, + colors: [baseColor, secondaryColor], + grid: { + borderColor: borderColor, + strokeDashArray: 4, + yaxis: { + lines: { + show: true + } + } + } + }; + + chart.self = new ApexCharts(element, options); + chart.self.render(); + chart.rendered = true; + } + + // Init chart + initChart(); + + // Update chart on theme mode change + KTThemeMode.on("kt.thememode.change", function() { + if (chart.rendered) { + chart.self.destroy(); + } + + initChart(); + }); + } + + var initChartsWidget3 = function() { + var element = document.getElementById("kt_charts_widget_3_chart"); + + if ( !element ) { + return; + } + + var chart = { + self: null, + rendered: false + }; + + var initChart = function() { + var height = parseInt(KTUtil.css(element, 'height')); + var labelColor = KTUtil.getCssVariableValue('--bs-gray-500'); + var borderColor = KTUtil.getCssVariableValue('--bs-gray-200'); + var baseColor = KTUtil.getCssVariableValue('--bs-info'); + var lightColor = KTUtil.getCssVariableValue('--bs-info-light'); + + var options = { + series: [{ + name: 'Net Profit', + data: [30, 40, 40, 90, 90, 70, 70] + }], + chart: { + fontFamily: 'inherit', + type: 'area', + height: 350, + toolbar: { + show: false + } + }, + plotOptions: { + + }, + legend: { + show: false + }, + dataLabels: { + enabled: false + }, + fill: { + type: 'solid', + opacity: 1 + }, + stroke: { + curve: 'smooth', + show: true, + width: 3, + colors: [baseColor] + }, + xaxis: { + categories: ['Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul', 'Aug'], + axisBorder: { + show: false, + }, + axisTicks: { + show: false + }, + labels: { + style: { + colors: labelColor, + fontSize: '12px' + } + }, + crosshairs: { + position: 'front', + stroke: { + color: baseColor, + width: 1, + dashArray: 3 + } + }, + tooltip: { + enabled: true, + formatter: undefined, + offsetY: 0, + style: { + fontSize: '12px' + } + } + }, + yaxis: { + labels: { + style: { + colors: labelColor, + fontSize: '12px' + } + } + }, + states: { + normal: { + filter: { + type: 'none', + value: 0 + } + }, + hover: { + filter: { + type: 'none', + value: 0 + } + }, + active: { + allowMultipleDataPointsSelection: false, + filter: { + type: 'none', + value: 0 + } + } + }, + tooltip: { + style: { + fontSize: '12px' + }, + y: { + formatter: function (val) { + return "$" + val + " thousands" + } + } + }, + colors: [lightColor], + grid: { + borderColor: borderColor, + strokeDashArray: 4, + yaxis: { + lines: { + show: true + } + } + }, + markers: { + strokeColor: baseColor, + strokeWidth: 3 + } + }; + + chart.self = new ApexCharts(element, options); + chart.self.render(); + chart.rendered = true; + } + + // Init chart + initChart(); + + // Update chart on theme mode change + KTThemeMode.on("kt.thememode.change", function() { + if (chart.rendered) { + chart.self.destroy(); + } + + initChart(); + }); + } + + var initChartsWidget4 = function() { + var element = document.getElementById("kt_charts_widget_4_chart"); + + if ( !element ) { + return; + } + + var chart = { + self: null, + rendered: false + }; + + var initChart = function() { + var height = parseInt(KTUtil.css(element, 'height')); + var labelColor = KTUtil.getCssVariableValue('--bs-gray-500'); + var borderColor = KTUtil.getCssVariableValue('--bs-gray-200'); + + var baseColor = KTUtil.getCssVariableValue('--bs-success'); + var baseLightColor = KTUtil.getCssVariableValue('--bs-success-light'); + var secondaryColor = KTUtil.getCssVariableValue('--bs-warning'); + var secondaryLightColor = KTUtil.getCssVariableValue('--bs-warning-light'); + + var options = { + series: [{ + name: 'Net Profit', + data: [60, 50, 80, 40, 100, 60] + }, { + name: 'Revenue', + data: [70, 60, 110, 40, 50, 70] + }], + chart: { + fontFamily: 'inherit', + type: 'area', + height: 350, + toolbar: { + show: false + } + }, + plotOptions: {}, + legend: { + show: false + }, + dataLabels: { + enabled: false + }, + fill: { + type: 'solid', + opacity: 1 + }, + stroke: { + curve: 'smooth' + }, + xaxis: { + categories: ['Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul'], + axisBorder: { + show: false, + }, + axisTicks: { + show: false + }, + labels: { + style: { + colors: labelColor, + fontSize: '12px' + } + }, + crosshairs: { + position: 'front', + stroke: { + color: labelColor, + width: 1, + dashArray: 3 + } + }, + tooltip: { + enabled: true, + formatter: undefined, + offsetY: 0, + style: { + fontSize: '12px' + } + } + }, + yaxis: { + labels: { + style: { + colors: labelColor, + fontSize: '12px' + } + } + }, + states: { + normal: { + filter: { + type: 'none', + value: 0 + } + }, + hover: { + filter: { + type: 'none', + value: 0 + } + }, + active: { + allowMultipleDataPointsSelection: false, + filter: { + type: 'none', + value: 0 + } + } + }, + tooltip: { + style: { + fontSize: '12px' + }, + y: { + formatter: function (val) { + return "$" + val + " thousands" + } + } + }, + colors: [baseColor, secondaryColor], + grid: { + borderColor: borderColor, + strokeDashArray: 4, + yaxis: { + lines: { + show: true + } + } + }, + markers: { + colors: [baseLightColor, secondaryLightColor], + strokeColor: [baseLightColor, secondaryLightColor], + strokeWidth: 3 + } + }; + + chart.self = new ApexCharts(element, options); + chart.self.render(); + chart.rendered = true; + } + + // Init chart + initChart(); + + // Update chart on theme mode change + KTThemeMode.on("kt.thememode.change", function() { + if (chart.rendered) { + chart.self.destroy(); + } + + initChart(); + }); + } + + var initChartsWidget5 = function() { + var element = document.getElementById("kt_charts_widget_5_chart"); + + if ( !element ) { + return; + } + + var chart = { + self: null, + rendered: false + }; + + var initChart = function() { + var height = parseInt(KTUtil.css(element, 'height')); + var labelColor = KTUtil.getCssVariableValue('--bs-gray-500'); + var borderColor = KTUtil.getCssVariableValue('--bs-gray-200'); + + var baseColor = KTUtil.getCssVariableValue('--bs-primary'); + var secondaryColor = KTUtil.getCssVariableValue('--bs-info'); + + var options = { + series: [{ + name: 'Net Profit', + data: [40, 50, 65, 70, 50, 30] + }, { + name: 'Revenue', + data: [-30, -40, -55, -60, -40, -20] + }], + chart: { + fontFamily: 'inherit', + type: 'bar', + stacked: true, + height: 350, + toolbar: { + show: false + } + }, + plotOptions: { + bar: { + horizontal: false, + columnWidth: ['12%'], + borderRadius: [6, 6] + }, + }, + legend: { + show: false + }, + dataLabels: { + enabled: false + }, + stroke: { + show: true, + width: 2, + colors: ['transparent'] + }, + xaxis: { + categories: ['Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul'], + axisBorder: { + show: false, + }, + axisTicks: { + show: false + }, + labels: { + style: { + colors: labelColor, + fontSize: '12px' + } + } + }, + yaxis: { + min: -80, + max: 80, + labels: { + style: { + colors: labelColor, + fontSize: '12px' + } + } + }, + fill: { + opacity: 1 + }, + states: { + normal: { + filter: { + type: 'none', + value: 0 + } + }, + hover: { + filter: { + type: 'none', + value: 0 + } + }, + active: { + allowMultipleDataPointsSelection: false, + filter: { + type: 'none', + value: 0 + } + } + }, + tooltip: { + style: { + fontSize: '12px' + }, + y: { + formatter: function (val) { + return "$" + val + " thousands" + } + } + }, + colors: [baseColor, secondaryColor], + grid: { + borderColor: borderColor, + strokeDashArray: 4, + yaxis: { + lines: { + show: true + } + } + } + }; + + chart.self = new ApexCharts(element, options); + chart.self.render(); + chart.rendered = true; + } + + // Init chart + initChart(); + + // Update chart on theme mode change + KTThemeMode.on("kt.thememode.change", function() { + if (chart.rendered) { + chart.self.destroy(); + } + + initChart(); + }); + } + + var initChartsWidget6 = function() { + var element = document.getElementById("kt_charts_widget_6_chart"); + + if ( !element ) { + return; + } + + var chart = { + self: null, + rendered: false + }; + + var initChart = function() { + var height = parseInt(KTUtil.css(element, 'height')); + var labelColor = KTUtil.getCssVariableValue('--bs-gray-500'); + var borderColor = KTUtil.getCssVariableValue('--bs-gray-200'); + + var baseColor = KTUtil.getCssVariableValue('--bs-primary'); + var baseLightColor = KTUtil.getCssVariableValue('--bs-primary-light'); + var secondaryColor = KTUtil.getCssVariableValue('--bs-info'); + + var options = { + series: [{ + name: 'Net Profit', + type: 'bar', + stacked: true, + data: [40, 50, 65, 70, 50, 30] + }, { + name: 'Revenue', + type: 'bar', + stacked: true, + data: [20, 20, 25, 30, 30, 20] + }, { + name: 'Expenses', + type: 'area', + data: [50, 80, 60, 90, 50, 70] + }], + chart: { + fontFamily: 'inherit', + stacked: true, + height: 350, + toolbar: { + show: false + } + }, + plotOptions: { + bar: { + stacked: true, + horizontal: false, + borderRadius: 4, + columnWidth: ['12%'] + }, + }, + legend: { + show: false + }, + dataLabels: { + enabled: false + }, + stroke: { + curve: 'smooth', + show: true, + width: 2, + colors: ['transparent'] + }, + xaxis: { + categories: ['Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul'], + axisBorder: { + show: false, + }, + axisTicks: { + show: false + }, + labels: { + style: { + colors: labelColor, + fontSize: '12px' + } + } + }, + yaxis: { + max: 120, + labels: { + style: { + colors: labelColor, + fontSize: '12px' + } + } + }, + fill: { + opacity: 1 + }, + states: { + normal: { + filter: { + type: 'none', + value: 0 + } + }, + hover: { + filter: { + type: 'none', + value: 0 + } + }, + active: { + allowMultipleDataPointsSelection: false, + filter: { + type: 'none', + value: 0 + } + } + }, + tooltip: { + style: { + fontSize: '12px' + }, + y: { + formatter: function (val) { + return "$" + val + " thousands" + } + } + }, + colors: [baseColor, secondaryColor, baseLightColor], + grid: { + borderColor: borderColor, + strokeDashArray: 4, + yaxis: { + lines: { + show: true + } + }, + padding: { + top: 0, + right: 0, + bottom: 0, + left: 0 + } + } + }; + + chart.self = new ApexCharts(element, options); + chart.self.render(); + chart.rendered = true; + } + + // Init chart + initChart(); + + // Update chart on theme mode change + KTThemeMode.on("kt.thememode.change", function() { + if (chart.rendered) { + chart.self.destroy(); + } + + initChart(); + }); + } + + var initChartsWidget7 = function() { + var element = document.getElementById("kt_charts_widget_7_chart"); + + if ( !element ) { + return; + } + + var chart = { + self: null, + rendered: false + }; + + var initChart = function() { + + var height = parseInt(KTUtil.css(element, 'height')); + + var labelColor = KTUtil.getCssVariableValue('--bs-gray-500'); + var borderColor = KTUtil.getCssVariableValue('--bs-gray-200'); + var strokeColor = KTUtil.getCssVariableValue('--bs-gray-300'); + + var color1 = KTUtil.getCssVariableValue('--bs-warning'); + var color1Light = KTUtil.getCssVariableValue('--bs-warning-light'); + + var color2 = KTUtil.getCssVariableValue('--bs-success'); + var color2Light = KTUtil.getCssVariableValue('--bs-success-light'); + + var color3 = KTUtil.getCssVariableValue('--bs-primary'); + var color3Light = KTUtil.getCssVariableValue('--bs-primary-light'); + + var options = { + series: [{ + name: 'Net Profit', + data: [30, 30, 50, 50, 35, 35] + }, { + name: 'Revenue', + data: [55, 20, 20, 20, 70, 70] + }, { + name: 'Expenses', + data: [60, 60, 40, 40, 30, 30] + }], + chart: { + fontFamily: 'inherit', + type: 'area', + height: height, + toolbar: { + show: false + }, + zoom: { + enabled: false + }, + sparkline: { + enabled: true + } + }, + plotOptions: {}, + legend: { + show: false + }, + dataLabels: { + enabled: false + }, + fill: { + type: 'solid', + opacity: 1 + }, + stroke: { + curve: 'smooth', + show: true, + width: 2, + colors: [color1, 'transparent', 'transparent'] + }, + xaxis: { + categories: ['Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul'], + axisBorder: { + show: false, + }, + axisTicks: { + show: false + }, + labels: { + show: false, + style: { + colors: labelColor, + fontSize: '12px' + } + }, + crosshairs: { + show: false, + position: 'front', + stroke: { + color: strokeColor, + width: 1, + dashArray: 3 + } + }, + tooltip: { + enabled: true, + formatter: undefined, + offsetY: 0, + style: { + fontSize: '12px' + } + } + }, + yaxis: { + labels: { + show: false, + style: { + colors: labelColor, + fontSize: '12px' + } + } + }, + states: { + normal: { + filter: { + type: 'none', + value: 0 + } + }, + hover: { + filter: { + type: 'none', + value: 0 + } + }, + active: { + allowMultipleDataPointsSelection: false, + filter: { + type: 'none', + value: 0 + } + } + }, + tooltip: { + style: { + fontSize: '12px' + }, + y: { + formatter: function (val) { + return "$" + val + " thousands" + } + } + }, + colors: [color1, color2, color3], + grid: { + borderColor: borderColor, + strokeDashArray: 4, + yaxis: { + lines: { + show: true + } + } + }, + markers: { + colors: [color1Light, color2Light, color3Light], + strokeColor: [color1, color2, color3], + strokeWidth: 3 + } + }; + + chart.self = new ApexCharts(element, options); + chart.self.render(); + chart.rendered = true; + } + + // Init chart + initChart(); + + // Update chart on theme mode change + KTThemeMode.on("kt.thememode.change", function() { + if (chart.rendered) { + chart.self.destroy(); + } + + initChart(); + }); + } + + var initChartsWidget8 = function() { + var element = document.getElementById("kt_charts_widget_8_chart"); + + if ( !element ) { + return; + } + + var chart = { + self: null, + rendered: false + }; + + var initChart = function() { + var height = parseInt(KTUtil.css(element, 'height')); + + var labelColor = KTUtil.getCssVariableValue('--bs-gray-500'); + var borderColor = KTUtil.getCssVariableValue('--bs-gray-200'); + var strokeColor = KTUtil.getCssVariableValue('--bs-gray-300'); + + var color1 = KTUtil.getCssVariableValue('--bs-warning'); + var color1Light = KTUtil.getCssVariableValue('--bs-warning-light'); + + var color2 = KTUtil.getCssVariableValue('--bs-success'); + var color2Light = KTUtil.getCssVariableValue('--bs-success-light'); + + var color3 = KTUtil.getCssVariableValue('--bs-primary'); + var color3Light = KTUtil.getCssVariableValue('--bs-primary-light'); + + var options = { + series: [{ + name: 'Net Profit', + data: [30, 30, 50, 50, 35, 35] + }, { + name: 'Revenue', + data: [55, 20, 20, 20, 70, 70] + }, { + name: 'Expenses', + data: [60, 60, 40, 40, 30, 30] + },], + chart: { + fontFamily: 'inherit', + type: 'area', + height: height, + toolbar: { + show: false + }, + zoom: { + enabled: false + }, + sparkline: { + enabled: true + } + }, + plotOptions: {}, + legend: { + show: false + }, + dataLabels: { + enabled: false + }, + fill: { + type: 'solid', + opacity: 1 + }, + stroke: { + curve: 'smooth', + show: true, + width: 2, + colors: [color1, color2, color3] + }, + xaxis: { + x: 0, + offsetX: 0, + offsetY: 0, + padding: { + left: 0, + right: 0, + top: 0, + }, + categories: ['Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul'], + axisBorder: { + show: false, + }, + axisTicks: { + show: false + }, + labels: { + show: false, + style: { + colors: labelColor, + fontSize: '12px' + } + }, + crosshairs: { + show: false, + position: 'front', + stroke: { + color: strokeColor, + width: 1, + dashArray: 3 + } + }, + tooltip: { + enabled: true, + formatter: undefined, + offsetY: 0, + style: { + fontSize: '12px' + } + } + }, + yaxis: { + y: 0, + offsetX: 0, + offsetY: 0, + padding: { + left: 0, + right: 0 + }, + labels: { + show: false, + style: { + colors: labelColor, + fontSize: '12px' + } + } + }, + states: { + normal: { + filter: { + type: 'none', + value: 0 + } + }, + hover: { + filter: { + type: 'none', + value: 0 + } + }, + active: { + allowMultipleDataPointsSelection: false, + filter: { + type: 'none', + value: 0 + } + } + }, + tooltip: { + style: { + fontSize: '12px' + }, + y: { + formatter: function (val) { + return "$" + val + " thousands" + } + } + }, + colors: [color1Light, color2Light, color3Light], + grid: { + borderColor: borderColor, + strokeDashArray: 4, + padding: { + top: 0, + bottom: 0, + left: 0, + right: 0 + } + }, + markers: { + colors: [color1, color2, color3], + strokeColor: [color1, color2, color3], + strokeWidth: 3 + } + }; + + chart.self = new ApexCharts(element, options); + chart.self.render(); + chart.rendered = true; + } + + // Init chart + initChart(); + + // Update chart on theme mode change + KTThemeMode.on("kt.thememode.change", function() { + if (chart.rendered) { + chart.self.destroy(); + } + + initChart(); + }); + } + + // Mixed widgets + var initMixedWidget2 = function() { + var charts = document.querySelectorAll('.mixed-widget-2-chart'); + + var color; + var strokeColor; + var height; + var labelColor = KTUtil.getCssVariableValue('--bs-gray-500'); + var borderColor = KTUtil.getCssVariableValue('--bs-gray-200'); + var options; + var chart; + + [].slice.call(charts).map(function(element) { + height = parseInt(KTUtil.css(element, 'height')); + color = KTUtil.getCssVariableValue('--bs-' + element.getAttribute("data-kt-color")); + strokeColor = KTUtil.colorDarken(color, 15); + + options = { + series: [{ + name: 'Net Profit', + data: [30, 45, 32, 70, 40, 40, 40] + }], + chart: { + fontFamily: 'inherit', + type: 'area', + height: height, + toolbar: { + show: false + }, + zoom: { + enabled: false + }, + sparkline: { + enabled: true + }, + dropShadow: { + enabled: true, + enabledOnSeries: undefined, + top: 5, + left: 0, + blur: 3, + color: strokeColor, + opacity: 0.5 + } + }, + plotOptions: {}, + legend: { + show: false + }, + dataLabels: { + enabled: false + }, + fill: { + type: 'solid', + opacity: 0 + }, + stroke: { + curve: 'smooth', + show: true, + width: 3, + colors: [strokeColor] + }, + xaxis: { + categories: ['Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul', 'Aug'], + axisBorder: { + show: false, + }, + axisTicks: { + show: false + }, + labels: { + show: false, + style: { + colors: labelColor, + fontSize: '12px' + } + }, + crosshairs: { + show: false, + position: 'front', + stroke: { + color: borderColor, + width: 1, + dashArray: 3 + } + } + }, + yaxis: { + min: 0, + max: 80, + labels: { + show: false, + style: { + colors: labelColor, + fontSize: '12px' + } + } + }, + states: { + normal: { + filter: { + type: 'none', + value: 0 + } + }, + hover: { + filter: { + type: 'none', + value: 0 + } + }, + active: { + allowMultipleDataPointsSelection: false, + filter: { + type: 'none', + value: 0 + } + } + }, + tooltip: { + style: { + fontSize: '12px', + }, + y: { + formatter: function (val) { + return "$" + val + " thousands" + } + }, + marker: { + show: false + } + }, + colors: ['transparent'], + markers: { + colors: [color], + strokeColor: [strokeColor], + strokeWidth: 3 + } + }; + + chart = new ApexCharts(element, options); + chart.render(); + }); + } + + var initMixedWidget3 = function() { + var charts = document.querySelectorAll('.mixed-widget-3-chart'); + + [].slice.call(charts).map(function(element) { + var height = parseInt(KTUtil.css(element, 'height')); + + if ( !element ) { + return; + } + + var color = element.getAttribute('data-kt-chart-color'); + + var labelColor = KTUtil.getCssVariableValue('--bs-' + 'gray-800'); + var strokeColor = KTUtil.getCssVariableValue('--bs-' + 'gray-300'); + var baseColor = KTUtil.getCssVariableValue('--bs-' + color); + var lightColor = KTUtil.getCssVariableValue('--bs-' + color + '-light' ); + + var options = { + series: [{ + name: 'Net Profit', + data: [30, 25, 45, 30, 55, 55] + }], + chart: { + fontFamily: 'inherit', + type: 'area', + height: height, + toolbar: { + show: false + }, + zoom: { + enabled: false + }, + sparkline: { + enabled: true + } + }, + plotOptions: {}, + legend: { + show: false + }, + dataLabels: { + enabled: false + }, + fill: { + type: 'solid', + opacity: 1 + }, + stroke: { + curve: 'smooth', + show: true, + width: 3, + colors: [baseColor] + }, + xaxis: { + categories: ['Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul'], + axisBorder: { + show: false, + }, + axisTicks: { + show: false + }, + labels: { + show: false, + style: { + colors: labelColor, + fontSize: '12px' + } + }, + crosshairs: { + show: false, + position: 'front', + stroke: { + color: strokeColor, + width: 1, + dashArray: 3 + } + }, + tooltip: { + enabled: true, + formatter: undefined, + offsetY: 0, + style: { + fontSize: '12px' + } + } + }, + yaxis: { + min: 0, + max: 60, + labels: { + show: false, + style: { + colors: labelColor, + fontSize: '12px' + } + } + }, + states: { + normal: { + filter: { + type: 'none', + value: 0 + } + }, + hover: { + filter: { + type: 'none', + value: 0 + } + }, + active: { + allowMultipleDataPointsSelection: false, + filter: { + type: 'none', + value: 0 + } + } + }, + tooltip: { + style: { + fontSize: '12px' + }, + y: { + formatter: function (val) { + return "$" + val + " thousands" + } + } + }, + colors: [lightColor], + markers: { + colors: [lightColor], + strokeColor: [baseColor], + strokeWidth: 3 + } + }; + + var chart = new ApexCharts(element, options); + chart.render(); + }); + } + + var initMixedWidget4 = function() { + var charts = document.querySelectorAll('.mixed-widget-4-chart'); + + [].slice.call(charts).map(function(element) { + var height = parseInt(KTUtil.css(element, 'height')); + + if ( !element ) { + return; + } + + var color = element.getAttribute('data-kt-chart-color'); + + var baseColor = KTUtil.getCssVariableValue('--bs-' + color); + var lightColor = KTUtil.getCssVariableValue('--bs-' + color + '-light' ); + var labelColor = KTUtil.getCssVariableValue('--bs-' + 'gray-700'); + + var options = { + series: [74], + chart: { + fontFamily: 'inherit', + height: height, + type: 'radialBar', + }, + plotOptions: { + radialBar: { + hollow: { + margin: 0, + size: "65%" + }, + dataLabels: { + showOn: "always", + name: { + show: false, + fontWeight: '700' + }, + value: { + color: labelColor, + fontSize: "30px", + fontWeight: '700', + offsetY: 12, + show: true, + formatter: function (val) { + return val + '%'; + } + } + }, + track: { + background: lightColor, + strokeWidth: '100%' + } + } + }, + colors: [baseColor], + stroke: { + lineCap: "round", + }, + labels: ["Progress"] + }; + + var chart = new ApexCharts(element, options); + chart.render(); + }); + } + + var initMixedWidget5 = function() { + var charts = document.querySelectorAll('.mixed-widget-5-chart'); + + var initChart = function(chart, element) { + var height = parseInt(KTUtil.css(element, 'height')); + + if ( !element ) { + return; + } + + var color = element.getAttribute('data-kt-chart-color'); + var labelColor = KTUtil.getCssVariableValue('--bs-' + 'gray-800'); + var strokeColor = KTUtil.getCssVariableValue('--bs-' + 'gray-300'); + var baseColor = KTUtil.getCssVariableValue('--bs-' + color); + var lightColor = KTUtil.getCssVariableValue('--bs-' + color + '-light' ); + + var options = { + series: [{ + name: 'Net Profit', + data: [30, 30, 60, 25, 25, 40] + }], + chart: { + fontFamily: 'inherit', + type: 'area', + height: height, + toolbar: { + show: false + }, + zoom: { + enabled: false + }, + sparkline: { + enabled: true + } + }, + plotOptions: {}, + legend: { + show: false + }, + dataLabels: { + enabled: false + }, + fill: { + type: 'solid', + opacity: 1 + }, + fill1: { + type: 'gradient', + opacity: 1, + gradient: { + type: "vertical", + shadeIntensity: 0.5, + gradientToColors: undefined, + inverseColors: true, + opacityFrom: 1, + opacityTo: 0.375, + stops: [25, 50, 100], + colorStops: [] + } + }, + stroke: { + curve: 'smooth', + show: true, + width: 3, + colors: [baseColor] + }, + xaxis: { + categories: ['Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul'], + axisBorder: { + show: false, + }, + axisTicks: { + show: false + }, + labels: { + show: false, + style: { + colors: labelColor, + fontSize: '12px' + } + }, + crosshairs: { + show: false, + position: 'front', + stroke: { + color: strokeColor, + width: 1, + dashArray: 3 + } + }, + tooltip: { + enabled: true, + formatter: undefined, + offsetY: 0, + style: { + fontSize: '12px' + } + } + }, + yaxis: { + min: 0, + max: 65, + labels: { + show: false, + style: { + colors: labelColor, + fontSize: '12px' + } + } + }, + states: { + normal: { + filter: { + type: 'none', + value: 0 + } + }, + hover: { + filter: { + type: 'none', + value: 0 + } + }, + active: { + allowMultipleDataPointsSelection: false, + filter: { + type: 'none', + value: 0 + } + } + }, + tooltip: { + style: { + fontSize: '12px' + }, + y: { + formatter: function (val) { + return "$" + val + " thousands" + } + } + }, + colors: [lightColor], + markers: { + colors: [lightColor], + strokeColor: [baseColor], + strokeWidth: 3 + } + }; + + chart.self = new ApexCharts(element, options); + chart.self.render(); + chart.rendered = true; + }; + + [].slice.call(charts).map(function(element) { + var chart = { + self: null, + rendered: false + }; + + initChart(chart, element); + + // Update chart on theme mode change + KTThemeMode.on("kt.thememode.change", function() { + if (chart.rendered) { + chart.self.destroy(); + } + + initChart(chart, element); + }); + }); + } + + var initMixedWidget6 = function() { + var charts = document.querySelectorAll('.mixed-widget-6-chart'); + + [].slice.call(charts).map(function(element) { + var height = parseInt(KTUtil.css(element, 'height')); + + if ( !element ) { + return; + } + + var color = element.getAttribute('data-kt-chart-color'); + + var labelColor = KTUtil.getCssVariableValue('--bs-' + 'gray-800'); + var strokeColor = KTUtil.getCssVariableValue('--bs-' + 'gray-300'); + var baseColor = KTUtil.getCssVariableValue('--bs-' + color); + var lightColor = KTUtil.getCssVariableValue('--bs-' + color + '-light' ); + + var options = { + series: [{ + name: 'Net Profit', + data: [30, 25, 45, 30, 55, 55] + }], + chart: { + fontFamily: 'inherit', + type: 'area', + height: height, + toolbar: { + show: false + }, + zoom: { + enabled: false + }, + sparkline: { + enabled: true + } + }, + plotOptions: {}, + legend: { + show: false + }, + dataLabels: { + enabled: false + }, + fill: { + type: 'solid', + opacity: 1 + }, + stroke: { + curve: 'smooth', + show: true, + width: 3, + colors: [baseColor] + }, + xaxis: { + categories: ['Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul'], + axisBorder: { + show: false, + }, + axisTicks: { + show: false + }, + labels: { + show: false, + style: { + colors: labelColor, + fontSize: '12px' + } + }, + crosshairs: { + show: false, + position: 'front', + stroke: { + color: strokeColor, + width: 1, + dashArray: 3 + } + }, + tooltip: { + enabled: true, + formatter: undefined, + offsetY: 0, + style: { + fontSize: '12px' + } + } + }, + yaxis: { + min: 0, + max: 60, + labels: { + show: false, + style: { + colors: labelColor, + fontSize: '12px' + } + } + }, + states: { + normal: { + filter: { + type: 'none', + value: 0 + } + }, + hover: { + filter: { + type: 'none', + value: 0 + } + }, + active: { + allowMultipleDataPointsSelection: false, + filter: { + type: 'none', + value: 0 + } + } + }, + tooltip: { + style: { + fontSize: '12px' + }, + y: { + formatter: function (val) { + return "$" + val + " thousands" + } + } + }, + colors: [lightColor], + markers: { + colors: [lightColor], + strokeColor: [baseColor], + strokeWidth: 3 + } + }; + + var chart = new ApexCharts(element, options); + chart.render(); + }); + } + + var initMixedWidget7 = function() { + var charts = document.querySelectorAll('.mixed-widget-7-chart'); + + [].slice.call(charts).map(function(element) { + var height = parseInt(KTUtil.css(element, 'height')); + + if ( !element ) { + return; + } + + var color = element.getAttribute('data-kt-chart-color'); + + var labelColor = KTUtil.getCssVariableValue('--bs-' + 'gray-800'); + var strokeColor = KTUtil.getCssVariableValue('--bs-' + 'gray-300'); + var baseColor = KTUtil.getCssVariableValue('--bs-' + color); + var lightColor = KTUtil.getCssVariableValue('--bs-' + color + '-light'); + + var options = { + series: [{ + name: 'Net Profit', + data: [15, 25, 15, 40, 20, 50] + }], + chart: { + fontFamily: 'inherit', + type: 'area', + height: height, + toolbar: { + show: false + }, + zoom: { + enabled: false + }, + sparkline: { + enabled: true + } + }, + plotOptions: {}, + legend: { + show: false + }, + dataLabels: { + enabled: false + }, + fill: { + type: 'solid', + opacity: 1 + }, + stroke: { + curve: 'smooth', + show: true, + width: 3, + colors: [baseColor] + }, + xaxis: { + categories: ['Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul'], + axisBorder: { + show: false, + }, + axisTicks: { + show: false + }, + labels: { + show: false, + style: { + colors: labelColor, + fontSize: '12px' + } + }, + crosshairs: { + show: false, + position: 'front', + stroke: { + color: strokeColor, + width: 1, + dashArray: 3 + } + }, + tooltip: { + enabled: true, + formatter: undefined, + offsetY: 0, + style: { + fontSize: '12px' + } + } + }, + yaxis: { + min: 0, + max: 60, + labels: { + show: false, + style: { + colors: labelColor, + fontSize: '12px' + } + } + }, + states: { + normal: { + filter: { + type: 'none', + value: 0 + } + }, + hover: { + filter: { + type: 'none', + value: 0 + } + }, + active: { + allowMultipleDataPointsSelection: false, + filter: { + type: 'none', + value: 0 + } + } + }, + tooltip: { + style: { + fontSize: '12px' + }, + y: { + formatter: function (val) { + return "$" + val + " thousands" + } + } + }, + colors: [lightColor], + markers: { + colors: [lightColor], + strokeColor: [baseColor], + strokeWidth: 3 + } + }; + + var chart = new ApexCharts(element, options); + chart.render(); + }); + } + + var initMixedWidget10 = function() { + var charts = document.querySelectorAll('.mixed-widget-10-chart'); + + var color; + var height; + var labelColor = KTUtil.getCssVariableValue('--bs-gray-500'); + var borderColor = KTUtil.getCssVariableValue('--bs-gray-200'); + var baseLightColor; + var secondaryColor = KTUtil.getCssVariableValue('--bs-gray-300'); + var baseColor; + var options; + var chart; + + [].slice.call(charts).map(function(element) { + color = element.getAttribute("data-kt-color"); + height = parseInt(KTUtil.css(element, 'height')); + baseColor = KTUtil.getCssVariableValue('--bs-' + color); + + options = { + series: [{ + name: 'Net Profit', + data: [50, 60, 70, 80, 60, 50, 70, 60] + }, { + name: 'Revenue', + data: [50, 60, 70, 80, 60, 50, 70, 60] + }], + chart: { + fontFamily: 'inherit', + type: 'bar', + height: height, + toolbar: { + show: false + } + }, + plotOptions: { + bar: { + horizontal: false, + columnWidth: ['50%'], + borderRadius: 4 + }, + }, + legend: { + show: false + }, + dataLabels: { + enabled: false + }, + stroke: { + show: true, + width: 2, + colors: ['transparent'] + }, + xaxis: { + categories: ['Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul', 'Aug', 'Sep'], + axisBorder: { + show: false, + }, + axisTicks: { + show: false + }, + labels: { + style: { + colors: labelColor, + fontSize: '12px' + } + } + }, + yaxis: { + y: 0, + offsetX: 0, + offsetY: 0, + labels: { + style: { + colors: labelColor, + fontSize: '12px' + } + } + }, + fill: { + type: 'solid' + }, + states: { + normal: { + filter: { + type: 'none', + value: 0 + } + }, + hover: { + filter: { + type: 'none', + value: 0 + } + }, + active: { + allowMultipleDataPointsSelection: false, + filter: { + type: 'none', + value: 0 + } + } + }, + tooltip: { + style: { + fontSize: '12px' + }, + y: { + formatter: function (val) { + return "$" + val + " revenue" + } + } + }, + colors: [baseColor, secondaryColor], + grid: { + padding: { + top: 10 + }, + borderColor: borderColor, + strokeDashArray: 4, + yaxis: { + lines: { + show: true + } + } + } + }; + + chart = new ApexCharts(element, options); + chart.render(); + }); + } + + var initMixedWidget12 = function() { + var charts = document.querySelectorAll('.mixed-widget-12-chart'); + + var color; + var strokeColor; + var height; + var labelColor = KTUtil.getCssVariableValue('--bs-gray-500'); + var borderColor = KTUtil.getCssVariableValue('--bs-gray-200'); + var options; + var chart; + + [].slice.call(charts).map(function(element) { + height = parseInt(KTUtil.css(element, 'height')); + + var options = { + series: [{ + name: 'Net Profit', + data: [35, 65, 75, 55, 45, 60, 55] + }, { + name: 'Revenue', + data: [40, 70, 80, 60, 50, 65, 60] + }], + chart: { + fontFamily: 'inherit', + type: 'bar', + height: height, + toolbar: { + show: false + }, + sparkline: { + enabled: true + }, + }, + plotOptions: { + bar: { + horizontal: false, + columnWidth: ['30%'], + borderRadius: 2 + } + }, + legend: { + show: false + }, + dataLabels: { + enabled: false + }, + stroke: { + show: true, + width: 1, + colors: ['transparent'] + }, + xaxis: { + categories: ['Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul'], + axisBorder: { + show: false, + }, + axisTicks: { + show: false + }, + labels: { + style: { + colors: labelColor, + fontSize: '12px' + } + } + }, + yaxis: { + min: 0, + max: 100, + labels: { + style: { + colors: labelColor, + fontSize: '12px' + } + } + }, + fill: { + type: ['solid', 'solid'], + opacity: [0.25, 1] + }, + states: { + normal: { + filter: { + type: 'none', + value: 0 + } + }, + hover: { + filter: { + type: 'none', + value: 0 + } + }, + active: { + allowMultipleDataPointsSelection: false, + filter: { + type: 'none', + value: 0 + } + } + }, + tooltip: { + style: { + fontSize: '12px' + }, + y: { + formatter: function (val) { + return "$" + val + " thousands" + } + }, + marker: { + show: false + } + }, + colors: ['#ffffff', '#ffffff'], + grid: { + borderColor: borderColor, + strokeDashArray: 4, + yaxis: { + lines: { + show: true + } + }, + padding: { + left: 20, + right: 20 + } + } + }; + + var chart = new ApexCharts(element, options); + chart.render() + }); + } + + var initMixedWidget13 = function() { + var height; + var charts = document.querySelectorAll('.mixed-widget-13-chart'); + + [].slice.call(charts).map(function(element) { + height = parseInt(KTUtil.css(element, 'height')); + + if ( !element ) { + return; + } + + var labelColor = KTUtil.getCssVariableValue('--bs-' + 'gray-800'); + var strokeColor = KTUtil.getCssVariableValue('--bs-' + 'gray-300'); + + var options = { + series: [{ + name: 'Net Profit', + data: [15, 25, 15, 40, 20, 50] + }], + grid: { + show: false, + padding: { + top: 0, + bottom: 0, + left: 0, + right: 0 + } + }, + chart: { + fontFamily: 'inherit', + type: 'area', + height: height, + toolbar: { + show: false + }, + zoom: { + enabled: false + }, + sparkline: { + enabled: true + } + }, + plotOptions: {}, + legend: { + show: false + }, + dataLabels: { + enabled: false + }, + fill: { + type: 'gradient', + gradient: { + opacityFrom: 0.4, + opacityTo: 0, + stops: [20, 120, 120, 120] + } + }, + stroke: { + curve: 'smooth', + show: true, + width: 3, + colors: ['#FFFFFF'] + }, + xaxis: { + categories: ['Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul'], + axisBorder: { + show: false, + }, + axisTicks: { + show: false + }, + labels: { + show: false, + style: { + colors: labelColor, + fontSize: '12px' + } + }, + crosshairs: { + show: false, + position: 'front', + stroke: { + color: strokeColor, + width: 1, + dashArray: 3 + } + }, + tooltip: { + enabled: true, + formatter: undefined, + offsetY: 0, + style: { + fontSize: '12px' + } + } + }, + yaxis: { + min: 0, + max: 60, + labels: { + show: false, + style: { + colors: labelColor, + fontSize: '12px' + } + } + }, + states: { + normal: { + filter: { + type: 'none', + value: 0 + } + }, + hover: { + filter: { + type: 'none', + value: 0 + } + }, + active: { + allowMultipleDataPointsSelection: false, + filter: { + type: 'none', + value: 0 + } + } + }, + tooltip: { + style: { + fontSize: '12px' + }, + y: { + formatter: function (val) { + return "$" + val + " thousands" + } + } + }, + colors: ['#ffffff'], + markers: { + colors: [labelColor], + strokeColor: [strokeColor], + strokeWidth: 3 + } + }; + + var chart = new ApexCharts(element, options); + chart.render(); + }); + } + + var initMixedWidget14 = function() { + var charts = document.querySelectorAll('.mixed-widget-14-chart'); + var options; + var chart; + var height; + + [].slice.call(charts).map(function(element) { + height = parseInt(KTUtil.css(element, 'height')); + var labelColor = KTUtil.getCssVariableValue('--bs-gray-800'); + + options = { + series: [{ + name: 'Inflation', + data: [1, 2.1, 1, 2.1, 4.1, 6.1, 4.1, 4.1, 2.1, 4.1, 2.1, 3.1, 1, 1, 2.1] + }], + chart: { + fontFamily: 'inherit', + height: height, + type: 'bar', + toolbar: { + show: false + } + }, + grid: { + show: false, + padding: { + top: 0, + bottom: 0, + left: 0, + right: 0 + } + }, + colors: ['#ffffff'], + plotOptions: { + bar: { + borderRadius: 2.5, + dataLabels: { + position: 'top', // top, center, bottom + }, + columnWidth: '20%' + } + }, + dataLabels: { + enabled: false, + formatter: function(val) { + return val + "%"; + }, + offsetY: -20, + style: { + fontSize: '12px', + colors: ["#304758"] + } + }, + xaxis: { + labels: { + show: false, + }, + categories: ["Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec", "Jan", "Feb", "Mar"], + position: 'top', + axisBorder: { + show: false + }, + axisTicks: { + show: false + }, + crosshairs: { + show: false + }, + tooltip: { + enabled: false + } + }, + yaxis: { + show: false, + axisBorder: { + show: false + }, + axisTicks: { + show: false, + background: labelColor + }, + labels: { + show: false, + formatter: function(val) { + return val + "%"; + } + } + } + }; + + chart = new ApexCharts(element, options); + chart.render(); + }); + } + + var initMixedWidget16 = function() { + var element = document.getElementById("kt_charts_mixed_widget_16_chart"); + var height = parseInt(KTUtil.css(element, 'height')); + + if (!element) { + return; + } + + var options = { + labels: ["Total Members"], + series: [74], + chart: { + fontFamily: 'inherit', + height: height, + type: 'radialBar', + offsetY: 0 + }, + plotOptions: { + radialBar: { + startAngle: -90, + endAngle: 90, + + hollow: { + margin: 0, + size: "70%" + }, + dataLabels: { + showOn: "always", + name: { + show: true, + fontSize: "13px", + fontWeight: "700", + offsetY: -5, + color: KTUtil.getCssVariableValue('--bs-gray-500') + }, + value: { + color: KTUtil.getCssVariableValue('--bs-gray-700'), + fontSize: "30px", + fontWeight: "700", + offsetY: -40, + show: true + } + }, + track: { + background: KTUtil.getCssVariableValue('--bs-primary-light'), + strokeWidth: '100%' + } + } + }, + colors: [KTUtil.getCssVariableValue('--bs-primary')], + stroke: { + lineCap: "round", + } + }; + + var chart = new ApexCharts(element, options); + chart.render(); + } + + var initMixedWidget17 = function() { + var charts = document.querySelectorAll('.mixed-widget-17-chart'); + + [].slice.call(charts).map(function(element) { + var height = parseInt(KTUtil.css(element, 'height')); + + if (!element) { + return; + } + + var color = element.getAttribute('data-kt-chart-color'); + + var options = { + labels: ["Total Orders"], + series: [75], + chart: { + fontFamily: 'inherit', + height: height, + type: 'radialBar', + offsetY: 0 + }, + plotOptions: { + radialBar: { + startAngle: -90, + endAngle: 90, + hollow: { + margin: 0, + size: "55%" + }, + dataLabels: { + showOn: "always", + name: { + show: true, + fontSize: "12px", + fontWeight: "700", + offsetY: -5, + color: KTUtil.getCssVariableValue('--bs-gray-500') + }, + value: { + color: KTUtil.getCssVariableValue('--bs-gray-900'), + fontSize: "24px", + fontWeight: "600", + offsetY: -40, + show: true, + formatter: function (value) { + return '8,346'; + } + } + }, + track: { + background: KTUtil.getCssVariableValue('--bs-gray-300'), + strokeWidth: '100%' + } + } + }, + colors: [KTUtil.getCssVariableValue('--bs-' + color)], + stroke: { + lineCap: "round", + } + }; + + var chart = new ApexCharts(element, options); + chart.render(); + }); + } + + var initMixedWidget18 = function() { + var element = document.getElementById("kt_charts_mixed_widget_18_chart"); + var height = parseInt(KTUtil.css(element, 'height')); + + if ( !element ) { + return; + } + + var labelColor = KTUtil.getCssVariableValue('--bs-' + 'gray-800'); + var strokeColor = KTUtil.getCssVariableValue('--bs-' + 'gray-800'); + var fillColor = KTThemeMode.getMode() === "dark" ? KTUtil.getCssVariableValue('--bs-gray-200') : '#D6D6E0'; + + var options = { + series: [{ + name: 'Net Profit', + data: [30, 25, 45, 30, 55, 55] + }], + chart: { + fontFamily: 'inherit', + type: 'area', + height: height, + toolbar: { + show: false + }, + zoom: { + enabled: false + }, + sparkline: { + enabled: true + } + }, + plotOptions: {}, + legend: { + show: false + }, + dataLabels: { + enabled: false + }, + fill: { + type: 'solid', + opacity: 1 + }, + stroke: { + curve: 'smooth', + show: true, + width: 3, + colors: [strokeColor] + }, + xaxis: { + categories: ['Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul'], + axisBorder: { + show: false, + }, + axisTicks: { + show: false + }, + labels: { + show: false, + style: { + colors: labelColor, + fontSize: '12px' + } + }, + crosshairs: { + show: false, + position: 'front', + stroke: { + color: strokeColor, + width: 1, + dashArray: 3 + } + }, + tooltip: { + enabled: true, + formatter: undefined, + offsetY: 0, + style: { + fontSize: '12px' + } + } + }, + yaxis: { + min: 0, + max: 60, + labels: { + show: false, + style: { + colors: labelColor, + fontSize: '12px' + } + } + }, + states: { + normal: { + filter: { + type: 'none', + value: 0 + } + }, + hover: { + filter: { + type: 'none', + value: 0 + } + }, + active: { + allowMultipleDataPointsSelection: false, + filter: { + type: 'none', + value: 0 + } + } + }, + tooltip: { + style: { + fontSize: '12px' + }, + y: { + formatter: function (val) { + return "$" + val + " thousands" + } + } + }, + colors: [fillColor], + markers: { + colors: [fillColor], + strokeColor: [strokeColor], + strokeWidth: 3 + } + }; + + var chart = new ApexCharts(element, options); + chart.render(); + } + + var initMixedWidget19 = function() { + var chart = { + self: null, + rendered: false + }; + + function initChart() { + var element = document.getElementById("kt_charts_mixed_widget_19_chart"); + var height = parseInt(KTUtil.css(element, 'height')); + + if ( !element ) { + return; + } + + var labelColor = KTUtil.getCssVariableValue('--bs-' + 'gray-800'); + var strokeColor = KTUtil.getCssVariableValue('--bs-' + 'info'); + var fillColor = KTUtil.getCssVariableValue('--bs-info-light') + + var options = { + series: [{ + name: 'Net Profit', + data: [30, 25, 45, 30, 55, 55] + }], + chart: { + fontFamily: 'inherit', + type: 'area', + height: height, + toolbar: { + show: false + }, + zoom: { + enabled: false + }, + sparkline: { + enabled: true + } + }, + plotOptions: {}, + legend: { + show: false + }, + dataLabels: { + enabled: false + }, + fill: { + type: 'solid', + opacity: 1 + }, + stroke: { + curve: 'smooth', + show: true, + width: 3, + colors: [strokeColor] + }, + xaxis: { + categories: ['Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul'], + axisBorder: { + show: false, + }, + axisTicks: { + show: false + }, + labels: { + show: false, + style: { + colors: labelColor, + fontSize: '12px' + } + }, + crosshairs: { + show: false, + position: 'front', + stroke: { + color: strokeColor, + width: 1, + dashArray: 3 + } + }, + tooltip: { + enabled: true, + formatter: undefined, + offsetY: 0, + style: { + fontSize: '12px' + } + } + }, + yaxis: { + min: 0, + max: 60, + labels: { + show: false, + style: { + colors: labelColor, + fontSize: '12px' + } + } + }, + states: { + normal: { + filter: { + type: 'none', + value: 0 + } + }, + hover: { + filter: { + type: 'none', + value: 0 + } + }, + active: { + allowMultipleDataPointsSelection: false, + filter: { + type: 'none', + value: 0 + } + } + }, + tooltip: { + style: { + fontSize: '12px' + }, + y: { + formatter: function (val) { + return "$" + val + " thousands" + } + } + }, + colors: [fillColor], + markers: { + colors: [fillColor], + strokeColor: [strokeColor], + strokeWidth: 3 + } + }; + + chart.self = new ApexCharts(element, options); + + // Set timeout to properly get the parent elements width + setTimeout(function() { + chart.self.render(); + chart.rendered = true; + }, 200); + } + + initChart(); + + // Update chart on theme mode change + KTThemeMode.on("kt.thememode.change", function() { + if (chart.rendered) { + chart.self.destroy(); + } + + initChart(); + }); + } + + // Feeds Widgets + var initFeedWidget1 = function() { + var formEl = document.querySelector("#kt_forms_widget_1_form"); + var editorId = 'kt_forms_widget_1_editor'; + + if ( !formEl ) { + return; + } + + // init editor + var options = { + modules: { + toolbar: { + container: "#kt_forms_widget_1_editor_toolbar" + } + }, + placeholder: 'What is on your mind ?', + theme: 'snow' + }; + + if (!formEl) { + return; + } + + // Init editor + var editorObj = new Quill('#' + editorId, options); + } + + var initFeedsWidget4 = function() { + var btn = document.querySelector('#kt_widget_5_load_more_btn'); + var widget5 = document.querySelector('#kt_widget_5'); + + if (btn) { + btn.addEventListener('click', function(e){ + e.preventDefault(); + btn.setAttribute('data-kt-indicator', 'on'); + + setTimeout(function() { + btn.removeAttribute('data-kt-indicator'); + widget5.classList.remove('d-none'); + btn.classList.add('d-none'); + + KTUtil.scrollTo(widget5, 200); + }, 2000); + }); + } + } + + // Calendar + var initCalendarWidget1 = function() { + if (typeof FullCalendar === 'undefined' || !document.querySelector('#kt_calendar_widget_1')) { + return; + } + + var todayDate = moment().startOf('day'); + var YM = todayDate.format('YYYY-MM'); + var YESTERDAY = todayDate.clone().subtract(1, 'day').format('YYYY-MM-DD'); + var TODAY = todayDate.format('YYYY-MM-DD'); + var TOMORROW = todayDate.clone().add(1, 'day').format('YYYY-MM-DD'); + + var calendarEl = document.getElementById('kt_calendar_widget_1'); + var calendar = new FullCalendar.Calendar(calendarEl, { + headerToolbar: { + left: 'prev,next today', + center: 'title', + right: 'dayGridMonth,timeGridWeek,timeGridDay,listMonth' + }, + + height: 800, + contentHeight: 780, + aspectRatio: 3, // see: https://fullcalendar.io/docs/aspectRatio + + nowIndicator: true, + now: TODAY + 'T09:25:00', // just for demo + + views: { + dayGridMonth: { buttonText: 'month' }, + timeGridWeek: { buttonText: 'week' }, + timeGridDay: { buttonText: 'day' } + }, + + initialView: 'dayGridMonth', + initialDate: TODAY, + + editable: true, + dayMaxEvents: true, // allow "more" link when too many events + navLinks: true, + events: [ + { + title: 'All Day Event', + start: YM + '-01', + description: 'Toto lorem ipsum dolor sit incid idunt ut', + className: "fc-event-danger fc-event-solid-warning" + }, + { + title: 'Reporting', + start: YM + '-14T13:30:00', + description: 'Lorem ipsum dolor incid idunt ut labore', + end: YM + '-14', + className: "fc-event-success" + }, + { + title: 'Company Trip', + start: YM + '-02', + description: 'Lorem ipsum dolor sit tempor incid', + end: YM + '-03', + className: "fc-event-primary" + }, + { + title: 'ICT Expo 2017 - Product Release', + start: YM + '-03', + description: 'Lorem ipsum dolor sit tempor inci', + end: YM + '-05', + className: "fc-event-light fc-event-solid-primary" + }, + { + title: 'Dinner', + start: YM + '-12', + description: 'Lorem ipsum dolor sit amet, conse ctetur', + end: YM + '-10' + }, + { + id: 999, + title: 'Repeating Event', + start: YM + '-09T16:00:00', + description: 'Lorem ipsum dolor sit ncididunt ut labore', + className: "fc-event-danger" + }, + { + id: 1000, + title: 'Repeating Event', + description: 'Lorem ipsum dolor sit amet, labore', + start: YM + '-16T16:00:00' + }, + { + title: 'Conference', + start: YESTERDAY, + end: TOMORROW, + description: 'Lorem ipsum dolor eius mod tempor labore', + className: "fc-event-primary" + }, + { + title: 'Meeting', + start: TODAY + 'T10:30:00', + end: TODAY + 'T12:30:00', + description: 'Lorem ipsum dolor eiu idunt ut labore' + }, + { + title: 'Lunch', + start: TODAY + 'T12:00:00', + className: "fc-event-info", + description: 'Lorem ipsum dolor sit amet, ut labore' + }, + { + title: 'Meeting', + start: TODAY + 'T14:30:00', + className: "fc-event-warning", + description: 'Lorem ipsum conse ctetur adipi scing' + }, + { + title: 'Happy Hour', + start: TODAY + 'T17:30:00', + className: "fc-event-info", + description: 'Lorem ipsum dolor sit amet, conse ctetur' + }, + { + title: 'Dinner', + start: TOMORROW + 'T05:00:00', + className: "fc-event-solid-danger fc-event-light", + description: 'Lorem ipsum dolor sit ctetur adipi scing' + }, + { + title: 'Birthday Party', + start: TOMORROW + 'T07:00:00', + className: "fc-event-primary", + description: 'Lorem ipsum dolor sit amet, scing' + }, + { + title: 'Click for Google', + url: 'http://google.com/', + start: YM + '-28', + className: "fc-event-solid-info fc-event-light", + description: 'Lorem ipsum dolor sit amet, labore' + } + ] + }); + + calendar.render(); + } + + // Daterangepicker + var initDaterangepicker = function () { + if (!document.querySelector('#kt_dashboard_daterangepicker')) { + return; + } + + var picker = $('#kt_dashboard_daterangepicker'); + var start = moment(); + var end = moment(); + + function cb(start, end, label) { + var title = ''; + var range = ''; + + if ((end - start) < 100 || label == 'Today') { + title = 'Today:'; + range = start.format('MMM D'); + } else if (label == 'Yesterday') { + title = 'Yesterday:'; + range = start.format('MMM D'); + } else { + range = start.format('MMM D') + ' - ' + end.format('MMM D'); + } + + $('#kt_dashboard_daterangepicker_date').html(range); + $('#kt_dashboard_daterangepicker_title').html(title); + } + + picker.daterangepicker({ + direction: KTUtil.isRTL(), + startDate: start, + endDate: end, + opens: 'left', + applyClass: 'btn-primary', + cancelClass: 'btn-light-primary', + ranges: { + 'Today': [moment(), moment()], + 'Yesterday': [moment().subtract(1, 'days'), moment().subtract(1, 'days')], + 'Last 7 Days': [moment().subtract(6, 'days'), moment()], + 'Last 30 Days': [moment().subtract(29, 'days'), moment()], + 'This Month': [moment().startOf('month'), moment().endOf('month')], + 'Last Month': [moment().subtract(1, 'month').startOf('month'), moment().subtract(1, 'month').endOf('month')] + } + }, cb); + + cb(start, end, ''); + } + + // Dark mode toggler + var initDarkModeToggle = function() { + var toggle = document.querySelector('#kt_user_menu_dark_mode_toggle'); + + if (toggle) { + toggle.addEventListener('click', function() { + window.location.href = this.getAttribute('data-kt-url'); + }); + } + } + + // Public methods + return { + init: function () { + // Daterangepicker + initDaterangepicker(); + + // Dark Mode + initDarkModeToggle(); + + // Statistics widgets + initStatisticsWidget3(); + initStatisticsWidget4(); + + // Charts widgets + initChartsWidget1(); + initChartsWidget2(); + initChartsWidget3(); + initChartsWidget4(); + initChartsWidget5(); + initChartsWidget6(); + initChartsWidget7(); + initChartsWidget8(); + + // Mixed widgets + initMixedWidget2(); + initMixedWidget3(); + initMixedWidget4(); + initMixedWidget5(); + initMixedWidget6(); + initMixedWidget7(); + initMixedWidget10(); + initMixedWidget12(); + initMixedWidget13(); + initMixedWidget14(); + initMixedWidget16(); + initMixedWidget17(); + initMixedWidget18(); + initMixedWidget19(); + + // Feeds + initFeedWidget1(); + initFeedsWidget4(); + + // Calendar + initCalendarWidget1(); + } + } +}(); + +// Webpack support +if (typeof module !== 'undefined' && typeof module.exports !== 'undefined') { + module.exports = KTWidgets; +} + +// On document ready +KTUtil.onDOMContentLoaded(function() { + KTWidgets.init(); +}); diff --git a/resources/_keenthemes/src/js/layout/builder.js b/resources/_keenthemes/src/js/layout/builder.js new file mode 100644 index 0000000..4fc4e87 --- /dev/null +++ b/resources/_keenthemes/src/js/layout/builder.js @@ -0,0 +1,312 @@ +"use strict"; + +// Class definition +var KTAppLayoutBuilder = function() { + var form; + var actionInput; + var url; + var previewButton; + var exportButton; + var resetButton; + + var engage; + var engageToggleOff; + var engageToggleOn; + var engagePrebuiltsModal; + + var handleEngagePrebuilts = function() { + if (engagePrebuiltsModal === null) { + return; + } + + if ( KTCookie.get("app_engage_prebuilts_modal_displayed") !== "1" ) { + setTimeout(function() { + const modal = new bootstrap.Modal(engagePrebuiltsModal); + modal.show(); + + const date = new Date(Date.now() + 30 * 24 * 60 * 60 * 1000); // 30 days from now + KTCookie.set("app_engage_prebuilts_modal_displayed", "1", {expires: date}); + }, 3000); + } + } + + var handleEngagePrebuiltsViewMenu = function() { + const selected = engagePrebuiltsModal.querySelector('[data-kt-element="selected"]'); + const selectedTitle = engagePrebuiltsModal.querySelector('[data-kt-element="title"]'); + const menu = engagePrebuiltsModal.querySelector('[data-kt-menu="true"]'); + + // Toggle Handler + KTUtil.on(engagePrebuiltsModal, '[data-kt-mode]', 'click', function (e) { + const title = this.innerText; + const mode = this.getAttribute("data-kt-mode"); + const selectedLink = menu.querySelector('.menu-link.active'); + const viewImage = document.querySelector('#kt_app_engage_prebuilts_view_image'); + const viewText = document.querySelector('#kt_app_engage_prebuilts_view_text'); + selectedTitle.innerText = title; + + if (selectedLink) { + selectedLink.classList.remove('active'); + } + + this.classList.add('active'); + + if (mode === "image") { + viewImage.classList.remove("d-none"); + viewImage.classList.add("d-block"); + viewText.classList.remove("d-block"); + viewText.classList.add("d-none"); + } else { + viewText.classList.remove("d-none"); + viewText.classList.add("d-block"); + viewImage.classList.remove("d-block"); + viewImage.classList.add("d-none"); + } + }); + } + + var handleEngageToggle = function() { + engageToggleOff.addEventListener("click", function (e) { + e.preventDefault(); + + const date = new Date(Date.now() + 1 * 24 * 60 * 60 * 1000); // 1 days from now + KTCookie.set("app_engage_hide", "1", {expires: date}); + engage.classList.add('app-engage-hide'); + }); + + engageToggleOn.addEventListener("click", function (e) { + e.preventDefault(); + + KTCookie.remove("app_engage_hide"); + engage.classList.remove('app-engage-hide'); + }); + } + + var handlePreview = function() { + previewButton.addEventListener("click", function(e) { + e.preventDefault(); + + // Set form action value + actionInput.value = "preview"; + + // Show progress + previewButton.setAttribute("data-kt-indicator", "on"); + + // Prepare form data + var data = $(form).serialize(); + + // Submit + $.ajax({ + type: "POST", + dataType: "html", + url: url, + data: data, + success: function(response, status, xhr) { + if (history.scrollRestoration) { + history.scrollRestoration = 'manual'; + } + location.reload(); + return; + + toastr.success( + "Preview has been updated with current configured layout.", + "Preview updated!", + {timeOut: 0, extendedTimeOut: 0, closeButton: true, closeDuration: 0} + ); + + setTimeout(function() { + location.reload(); // reload page + }, 1500); + }, + error: function(response) { + toastr.error( + "Please try it again later.", + "Something went wrong!", + {timeOut: 0, extendedTimeOut: 0, closeButton: true, closeDuration: 0} + ); + }, + complete: function() { + previewButton.removeAttribute("data-kt-indicator"); + } + }); + }); + }; + + var handleExport = function() { + exportButton.addEventListener("click", function(e) { + e.preventDefault(); + + toastr.success( + "Process has been started and it may take a while.", + "Generating HTML!", + {timeOut: 0, extendedTimeOut: 0, closeButton: true, closeDuration: 0} + ); + + // Show progress + exportButton.setAttribute("data-kt-indicator", "on"); + + // Set form action value + actionInput.value = "export"; + + // Prepare form data + var data = $(form).serialize(); + + $.ajax({ + type: "POST", + dataType: "html", + url: url, + data: data, + success: function(response, status, xhr) { + var timer = setInterval(function() { + $("