From 7a4f89004d678d2352476efe7ee30b933b299e8a Mon Sep 17 00:00:00 2001 From: Progi1984 Date: Tue, 5 Nov 2019 17:23:47 +0100 Subject: [PATCH 01/25] Changed displayed images in second pack of images --- .../admin/tabs/content/config_elements/reassurance_block.tpl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/views/templates/admin/tabs/content/config_elements/reassurance_block.tpl b/views/templates/admin/tabs/content/config_elements/reassurance_block.tpl index 8a4bd005..042ba41a 100644 --- a/views/templates/admin/tabs/content/config_elements/reassurance_block.tpl +++ b/views/templates/admin/tabs/content/config_elements/reassurance_block.tpl @@ -54,7 +54,7 @@
-
+
@@ -69,7 +69,7 @@
-
+
From 1d3397198bfbe118a2fd304bab4ec5c1fa1484c9 Mon Sep 17 00:00:00 2001 From: Progi1984 Date: Wed, 6 Nov 2019 16:49:38 +0100 Subject: [PATCH 02/25] Migrated JS & CSS assets from files to NPM & Webpack --- .gitignore | 3 +- README.md | 7 + .../img => _dev/back}/additional_module.png | Bin views/css/back.css => _dev/back/back.scss | 27 +- _dev/back/index.js | 520 ++++++++++++++++++ {views/css => _dev/back}/index.php | 0 views/css/front.css => _dev/front/front.scss | 26 +- views/js/front.js => _dev/front/index.js | 3 + {views/js => _dev/front}/index.php | 0 {views/lib => _dev}/index.php | 0 blockreassurance.php | 22 +- package.json | 26 +- views/js/back.js | 511 ----------------- views/js/vue.min.js | 6 - views/lib/pickr/css/index.php | 34 -- views/lib/pickr/css/pickr-override.css | 21 - views/lib/pickr/css/pickr.min.css | 1 - views/lib/pickr/index.php | 34 -- views/lib/pickr/js/index.php | 34 -- views/lib/pickr/js/pickr.js | 2 - webpack.config.js | 77 +++ 21 files changed, 673 insertions(+), 681 deletions(-) rename {views/img => _dev/back}/additional_module.png (100%) rename views/css/back.css => _dev/back/back.scss (96%) create mode 100644 _dev/back/index.js rename {views/css => _dev/back}/index.php (100%) rename views/css/front.css => _dev/front/front.scss (82%) rename views/js/front.js => _dev/front/index.js (98%) rename {views/js => _dev/front}/index.php (100%) mode change 100755 => 100644 rename {views/lib => _dev}/index.php (100%) mode change 100755 => 100644 delete mode 100644 views/js/back.js delete mode 100644 views/js/vue.min.js delete mode 100755 views/lib/pickr/css/index.php delete mode 100644 views/lib/pickr/css/pickr-override.css delete mode 100644 views/lib/pickr/css/pickr.min.css delete mode 100755 views/lib/pickr/index.php delete mode 100755 views/lib/pickr/js/index.php delete mode 100644 views/lib/pickr/js/pickr.js create mode 100644 webpack.config.js diff --git a/.gitignore b/.gitignore index e5da36b2..d7a22250 100644 --- a/.gitignore +++ b/.gitignore @@ -1,2 +1,3 @@ .php_cs.cache -vendor \ No newline at end of file +node_modules +vendor diff --git a/README.md b/README.md index e36db65f..683b5545 100644 --- a/README.md +++ b/README.md @@ -23,6 +23,13 @@ npm install composer install ``` +## Usage + +``` +npm run dev # Watch js/css files for changes +npm run build # Build for production +``` + ## Contributing PrestaShop modules are open-source extensions to the PrestaShop e-commerce solution. Everyone is welcome and even encouraged to contribute with their own improvements. diff --git a/views/img/additional_module.png b/_dev/back/additional_module.png similarity index 100% rename from views/img/additional_module.png rename to _dev/back/additional_module.png diff --git a/views/css/back.css b/_dev/back/back.scss similarity index 96% rename from views/css/back.css rename to _dev/back/back.scss index 60ebd01b..0c7600e2 100644 --- a/views/css/back.css +++ b/_dev/back/back.scss @@ -551,7 +551,7 @@ min-width: 100px; width: 100px; height: 81px; - background: url("../img/additional_module.png") no-repeat transparent; + background: url("additional_module.png") no-repeat transparent; background-size: contain; } .module-addons-suggestion .suggestion-category-details { @@ -600,3 +600,28 @@ display: inline-block; } } + +/* Pickr Override */ +.pickr { + z-index: initial !important; + + button.pcr-button { + width: 70%; + border: 1px solid #BBB; + height: 30px; + border-radius: 5px; + } +} + +.pcr-app .pcr-interaction { + input { + font-size: 12px !important; + width: 26% !important; + } + + .pcr-save { + background-color: #3bb7d7 !important; + height: 31px !important; + font-family: "Open Sans", Helvetica, Arial, sans-serif !important; + } +} diff --git a/_dev/back/index.js b/_dev/back/index.js new file mode 100644 index 00000000..5ad4626f --- /dev/null +++ b/_dev/back/index.js @@ -0,0 +1,520 @@ +/** + * 2007-2019 PrestaShop. + * + * NOTICE OF LICENSE + * + * This source file is subject to the Academic Free License 3.0 (AFL-3.0) + * that is bundled with this package in the file LICENSE.txt. + * It is also available through the world-wide-web at this URL: + * https://opensource.org/licenses/AFL-3.0 + * If you did not receive a copy of the license and are unable to + * obtain it through the world-wide-web, please send an email + * to license@prestashop.com so we can send you a copy immediately. + * + * DISCLAIMER + * + * Do not edit or add to this file if you wish to upgrade PrestaShop to newer + * versions in the future. If you wish to customize PrestaShop for your + * needs please refer to http://www.prestashop.com for more information. + * + * @author PrestaShop SA + * @copyright 2007-2019 PrestaShop SA + * @license https://opensource.org/licenses/AFL-3.0 Academic Free License 3.0 (AFL-3.0) + * International Registered Trademark & Property of PrestaShop SA + */ +import Pickr from '@simonwep/pickr'; +import Vue from 'vue/dist/vue.min'; +window.Vue = Vue; + +import "material-design-icons/iconfont/material-icons.css"; +import '@simonwep/pickr/dist/themes/classic.min.css' +import './back.scss'; + +$(window).ready(function () { + // Tab Content + var imgSelected; + // Tab Content : Change position + $('.listing-body').sortable({ + update: function () { + var blocks = []; + $('.listing-general-rol').each(function () { + blocks.push($(this).attr('data-block')); + }); + + $.ajax({ + type: 'POST', + dataType: 'JSON', + url: psr_controller_block_url, + data: { + ajax: true, + action: 'UpdatePosition', + blocks: blocks, + }, + success: function (data) { + if (data == 'success') { + showSuccessMessage(successPosition); + } else { + showErrorMessage(errorPosition); + } + } + }); + } + }); + + // Tab Content : Set active/inactive + $(document).on('click', '.listing-row .switch-input', (e) => { + var switchIsOn = $(e.target).hasClass('-checked'); + var status = switchIsOn ? 1 : 0; + + $(e.target).parent().find('.switch_text').hide(); + if (switchIsOn) { + $('input', e.target).attr('checked', false); + $(e.target).removeClass('-checked'); + $(e.target).parent().find('.switch-off').show(); + } else { + $('input', e.target).attr('checked', true); + $(e.target).addClass('-checked'); + $(e.target).parent().find('.switch-on').show(); + } + + $.ajax({ + url: psr_controller_block_url, + type: 'POST', + dataType: 'JSON', + async: false, + data: { + controller: psr_controller_block, + action: 'changeBlockStatus', + idpsr: $(e.target).parent().attr('data-cart_psreassurance_id'), + status: status, + ajax: true, + }, + success: (data) => { + if (data === 'success') { + showNoticeMessage(block_updated); + } else { + showErrorMessage(active_error); + } + } + }); + }); + + // Tab Content : Add + $(document).on('click', '.psre-add', function () { + $('.landscape').show(); + + $('#reminder_listing').removeClass('active').addClass('inactive'); + $('#blockDisplay').removeClass('inactive').addClass('active'); + $('.show-rea-block').removeClass('active').addClass('inactive'); + + $('.panel-body-0').removeClass('inactive').addClass('active'); + $('#saveContentConfiguration').attr('data-id', ''); + + $('.limit_text:visible').text($('.show-rea-block.active .content_by_lang:visible input[type="text"]').val().length); + $('.limit_description:visible').text($('.show-rea-block.active .content_by_lang:visible textarea').val().length); + + var landscape = $('.panel-body-0 .psr-picto').attr('src'); + if (typeof landscape === 'undefined') { + $('.psr-picto:visible').hide(); + $('.svg_chosed_here:visible').hide(); + $('.landscape').show(); + } + }); + + // Tab Content : Edit + $(document).on('click', '.psre-edit', function () { + $('.landscape').hide(); + + $('#reminder_listing').removeClass('active').addClass('inactive'); + $('#blockDisplay').removeClass('inactive').addClass('active'); + $('.show-rea-block').removeClass('active').addClass('inactive'); + + var id = $(this).data('id'); + $('.panel-body-' + id).removeClass('inactive').addClass('active'); + $('#saveContentConfiguration').attr('data-id', id); + + $('.limit_text:visible').text($('.show-rea-block.active .content_by_lang:visible input[type="text"]').val().length); + $('.limit_description:visible').text($('.show-rea-block.active .content_by_lang:visible textarea').val().length); + + var landscape = $('.panel-body-' + id + ' .psr-picto').attr('src'); + if (typeof landscape === 'undefined') { + $('.psr-picto:visible').hide(); + $('.svg_chosed_here:visible').hide(); + $('.landscape').show(); + } + }); + + // Tab Content : Edit : Language + $(document).on('change', 'select[name="psr-language"]', (e) => { + var lang = $(e.target).val(); + + $('.content_by_lang').removeClass('active').addClass('inactive'); + $('.content_by_lang.lang-' + lang).addClass('active'); + $('.limit_text:visible').text($('.show-rea-block.active .content_by_lang:visible input[type="text"]').val().length); + $('.limit_description:visible').text($('.show-rea-block.active .content_by_lang:visible textarea').val().length); + }); + + // Tab Content : Edit : Modify icon + $(document).on('click', '.modify_icon', (e) => { + let position = $(e.target).offset(); + let offset = $(e.target).width(); + let top = position.top / 2; + let left = position.left / 2 - offset; + + $('#reassurance_block') + .show().css('top', top + 'px').css('left', left + 'px'); + }); + + // Tab Content : Edit : Modify icon : Click outside + $(document).on('click', 'body', (e) => { + let isInside = $(e.target).closest('.modify_icon').length; + let isPopin = $(e.target).closest('#reassurance_block').length; + + if (!isInside && !isPopin) { + $("#reassurance_block").fadeOut(300); + } + }); + + // Tab Content : Edit : Modify icon : Tabs + $(document).on('click', '#reassurance_block .category_select div img', (e) => { + var category = $(e.target).attr('data-id'); + // Change the tab + $('#reassurance_block .category_select div').removeClass('active'); + $(e.target).parent().addClass('active'); + // Change the tab content + $('#reassurance_block .category_reassurance').removeClass('active'); + $('#reassurance_block .cat_' + category).addClass('active'); + }); + + // Tab Content : Edit : Select icon + $(document).on('click', '#reassurance_block .category_reassurance .svg', (e) => { + var svg = $(e.target)[0].outerHTML; + + // Popin : select the icon + $('#reassurance_block .category_reassurance img.svg.selected').removeClass('selected'); + $(e.target).addClass('selected'); + // Hide the initial icon + $('.landscape').hide(); + $('.psr-picto').hide(); + // Show the image + $('.svg_chosed_here').show(); + $('.svg_chosed_here:visible').html(svg); + // Popin : hide it + $('#reassurance_block').fadeOut(300); + }); + + // Tab Content : Edit : Select none + $(document).on('click', '#reassurance_block .select_none', (e) => { + var psrPicto = $('.psr-picto:visible'); + psrPicto.attr('src', 'undefined').hide(); + + // Un-select icon in the popin + $('#reassurance_block .category_reassurance img.svg').removeClass('selected'); + // Hide the icon seected + $('.svg_chosed_here:visible').hide(); + // Display the landscape icon + $('.landscape').show(); + // Hide the popin + $('#reassurance_block').fadeOut(300); + }); + + // Tab Content : Edit : Custom Icon + $(document).on('change', '.show-rea-block.active input[type="file"]', function (e) { + var files = $(this)[0].files; + // Change the label + var jqLabel = $(this).parents('.input-group').find('label.file_label'); + var label = jqLabel.attr('data-label'); + if (files.length === 1) { + label = files.length + ' file selected' + } + jqLabel.html(label); + + // Preview the image + var idPreview = $(this).attr('data-preview'); + if (files && files[0]) { + var reader = new FileReader(); + reader.onload = function (e) { + var jqPreview = $('.' + idPreview); + if (jqPreview.hasClass('hide')) { + jqPreview.removeClass('hide'); + } + jqPreview.attr('src', e.target.result); + console.log(e.target.result) + }; + reader.readAsDataURL(files[0]); + + imgSelected = files[0]; + + // Hide the initial icon + $('.landscape').hide(); + $('.psr-picto').hide(); + $('.picto_by_module').hide(); + // Show the image + $('.svg_chosed_here').show(); + } + }); + + // Tab Content : Edit : MaxLength + $(document).on('keyup keydown', '.show-rea-block.active .content_by_lang input[type="text"], .show-rea-block.active .content_by_lang textarea', function () { + var maxLength = 100; + var val = $(this).val(); + var valLength = val.length; + if (val.length > maxLength) { + $(this).val(val.substring(0, maxLength - 1)); + valLength = $(this).val().length; + } + if ($(this).is('input:text')) { + $('.limit_text:visible').text(valLength); + } else { + $('.limit_description:visible').text(valLength); + } + }); + + // Tab Content : Edit : Return + $(document).on('click', '#blockDisplay .refreshPage', function () { + location.reload(); + }); + + // Tab Content : Edit : Redirect + $(document).on('change', 'input[name^="PSR_REDIRECTION_"]', (e) => { + function setEnabledPSR(psr, state) { + if (state) { + $('.psr-' + psr).removeClass('inactive').addClass('active'); + } else { + $('.psr-' + psr).removeClass('active').addClass('inactive'); + } + } + + switch ($(e.target).val()) { + case '0': + setEnabledPSR('cms', false); + setEnabledPSR('url', false); + break; + case '1': + setEnabledPSR('cms', true); + setEnabledPSR('url', false); + break; + case '2': + setEnabledPSR('cms', false); + setEnabledPSR('url', true); + break; + } + }); + + // Tab Content : Edit : Redirect : URL + $(document).on('keyup', '.block_url:visible', (e) => { + var url = $(e.target).val(); + var pattern_for_url = /(http(s)?:\/\/.)?(www\.)?[-a-zA-Z0-9@:%._\+~#=]{2,256}\.[a-z]{2,6}\b([-a-zA-Z0-9@:%_\+.~#?&//=]*)/g; + var pattern_for_http = /(http(s)?:\/\/)/g; + + // If it is a real URL : + if (pattern_for_url.test(url)) { + $(e.target).css('background', '#fff'); + if (!pattern_for_http.test(url)) { + $(e.target).val('http://' + url); + } + } else { + $(e.target).css('background', '#ffecec'); + } + }); + + // Tab Content : Edit : Save + $(document).on('click', '#saveContentConfiguration', function () { + var dataToSave = {}; + var blockId = $(this).attr('data-id'); + var imgIcon = $('.psr_picto_showing:visible img.psr-picto'); + var iconSrc = imgIcon.attr('src'); + var iconReplaced = $('.svg_chosed_here img.svg').attr('src'); + if (typeof iconReplaced !== 'undefined') { + iconSrc = iconReplaced; + } + + var minimalData = false; + $('.show-rea-block.active .content_by_lang').each(function (index, elem) { + var lang = $(elem).attr('data-lang'); + var type = $(elem).attr('data-type'); + if (!dataToSave.hasOwnProperty(lang)) { + dataToSave[lang] = {}; + } + if (!dataToSave[lang].hasOwnProperty(type)) { + dataToSave[lang][type] = ''; + } + if (type === 'description') { + dataToSave[lang][type] = $('textarea', elem).val(); + } else if (typeof($('input', elem).val()) != 'undefined') { + dataToSave[lang][type] = $('input', elem).val(); + } + if (!minimalData && lang == psr_lang && type == 'title' && dataToSave[lang][type].length > 0) { + minimalData = true; + } + }); + if (!minimalData) { + showErrorMessage(min_field_error); + return; + } + + var formData = new FormData(); + formData.append('ajax', true); + formData.append('action', 'SaveBlockContent'); + formData.append('file', imgSelected); + formData.append('id_block', blockId); + formData.append('lang_values', JSON.stringify(dataToSave)); + formData.append('picto', iconSrc); + formData.append('typelink', $('input[name="PSR_REDIRECTION_' + blockId + '"]:checked').val()); + formData.append('id_cms', $('select[name="ID_CMS_' + blockId + '"]').val()); + + $.ajax({ + type: 'POST', + dataType: 'JSON', + url: psr_controller_block_url, + contentType: false, + processData: false, + data: formData, + success: function (data) { + showSuccessMessage(psre_success); + setTimeout(location.reload(), 1800); + } + }); + }); + + // Tab Display + var vMenu = new Vue({ + el: '#menu', + data: { + selectedTabName: currentPage, + }, + methods: { + makeActive: function (item) { + this.selectedTabName = item; + window.history.pushState({}, '', moduleAdminLink.replace(/\amp;/g, '') + '&page=' + item); + }, + isActive: function (item) { + if (this.selectedTabName !== item) { + return false; + } + $('.psr_menu').addClass('addons-hide'); + $('.psr_menu#' + item).removeClass('addons-hide'); + + return true; + } + } + }); + + // Tab Display : Save Position + $(document).on('change', 'input[name="PSR_HOOK_CHECKOUT"],input[name="PSR_HOOK_HEADER"],input[name="PSR_HOOK_FOOTER"],input[name="PSR_HOOK_PRODUCT"]', function () { + var selector = ''; + switch ($(this).attr('name')) { + case 'PSR_HOOK_CHECKOUT': + selector = 'checkout'; + break; + case 'PSR_HOOK_HEADER': + selector = 'header'; + break; + case 'PSR_HOOK_FOOTER': + selector = 'footer'; + break; + case 'PSR_HOOK_PRODUCT': + selector = 'product'; + break; + } + + $('.psr-' + selector + '-grey').addClass('active'); + $('.psr-' + selector + '-color').removeClass('active'); + + $(this).nextAll('.psr-' + selector + '-grey').removeClass('active'); + $(this).nextAll('.psr-' + selector + '-color').addClass('active'); + savePositionByHook($(this).attr('name'), $(this).val()); + }); + function savePositionByHook(hook, value) { + $.ajax({ + type: 'POST', + dataType: 'JSON', + url: psr_controller_block_url, + data: { + ajax: true, + action: 'SavePositionByHook', + hook: hook, + value: value, + }, + success: function (data) { + if (data === 'success') { + showSuccessMessage(successPosition); + } else { + showErrorMessage(errorPosition); + } + } + }); + } + + // Tab Appearance + var pickrComponents = { + // Main components + preview: true, + opacity: false, + hue: true, + + // Input / output Options + interaction: { + hex: false, + rgba: false, + hsla: false, + hsva: false, + cmyk: false, + input: true, + clear: false, + save: true + } + }; + var pickr1 = Pickr.create({ + el: '.ps_colorpicker1', + default: psr_icon_color, + defaultRepresentation: 'HEX', + closeWithKey: 'Escape', + adjustableNumbers: true, + components: pickrComponents + }); + pickr1.on('change', (...args) => { + let pickrColor = pickr1.getColor(); + let hexaColor = pickrColor.toHEXA().toString(); + $('.psr_icon_color').val(hexaColor); + }); + + var pickr2 = Pickr.create({ + el: '.ps_colorpicker2', + default: psr_text_color, + defaultRepresentation: 'HEX', + closeWithKey: 'Escape', + adjustableNumbers: true, + components: pickrComponents + }); + pickr2.on('change', (...args) => { + let pickrColor = pickr2.getColor(); + let hexaColor = pickrColor.toHEXA().toString(); + $('.psr_text_color').val(hexaColor); + }); + + // Tab Appearance : Save Color + $(document).on('click', '#saveConfiguration', function () { + var color1 = $('#color_1').val(); + var color2 = $('#color_2').val() + $.ajax({ + type: 'POST', + dataType: 'JSON', + url: psr_controller_block_url, + data: { + ajax: true, + action: 'SaveColor', + color1: color1, + color2: color2, + }, + success: function (data) { + if (data === 'success') { + showSuccessMessage(psre_success); + } else { + showErrorMessage(active_error); + } + } + }); + }); +}); + diff --git a/views/css/index.php b/_dev/back/index.php similarity index 100% rename from views/css/index.php rename to _dev/back/index.php diff --git a/views/css/front.css b/_dev/front/front.scss similarity index 82% rename from views/css/front.css rename to _dev/front/front.scss index 4154a969..dd48ee25 100644 --- a/views/css/front.css +++ b/_dev/front/front.scss @@ -2,22 +2,19 @@ padding-top: 10px; text-align: center; width: 100%; -} - -.blockreassurance .reass-item { + .reass-item { display: inline-block; text-align: center; vertical-align: top; -} - -.blockreassurance .block-title { + } + .block-title { font-weight: bold; -} - -.blockreassurance .block-icon, -.blockreassurance .block-icon img, -.blockreassurance .block-icon svg { + } + .block-icon, + .block-icon img, + .block-icon svg { height: 70px; + } } @media (max-width:575px) { @@ -45,16 +42,15 @@ } .blockreassurance_product { - margin-top: 25px; -} - -.blockreassurance_product .item-product { + margin-top: 25px; + .item-product { display: inline-block; height: 35px; float: left; margin-right: 5px; padding-top: 5px; width: 35px; + } } .blockreassurance_product .item-product img, diff --git a/views/js/front.js b/_dev/front/index.js similarity index 98% rename from views/js/front.js rename to _dev/front/index.js index 94c89083..0f01bfc9 100644 --- a/views/js/front.js +++ b/_dev/front/index.js @@ -22,6 +22,9 @@ * @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0) * International Registered Trademark & Property of PrestaShop SA */ + +import './front.scss'; + $(window).ready(function () { $('.blockreassurance_product img.svg, .blockreassurance img.svg').each(function () { var imgObject = $(this); diff --git a/views/js/index.php b/_dev/front/index.php old mode 100755 new mode 100644 similarity index 100% rename from views/js/index.php rename to _dev/front/index.php diff --git a/views/lib/index.php b/_dev/index.php old mode 100755 new mode 100644 similarity index 100% rename from views/lib/index.php rename to _dev/index.php diff --git a/blockreassurance.php b/blockreassurance.php index 8b70ccf3..808b2cd9 100644 --- a/blockreassurance.php +++ b/blockreassurance.php @@ -248,22 +248,8 @@ public function loadAsset() { $this->addJsDefList(); - $cssAssets = [ - '//fonts.googleapis.com/icon?family=Material+Icons', - $this->lib_path . 'pickr/css/pickr.min.css', - $this->lib_path . 'pickr/css/pickr-override.css', - $this->css_path . 'back.css', - ]; - - $javascriptAssets = [ - // Libraries - $this->lib_path . '/pickr/js/pickr.js', - $this->js_path . 'vue.min.js', - $this->js_path . 'back.js', - ]; - - $this->context->controller->addCSS($cssAssets, 'all'); - $this->context->controller->addJS($javascriptAssets); + $this->context->controller->addCSS($this->_path . 'views/dist/back.css', 'all'); + $this->context->controller->addJS($this->_path . 'views/dist/back.js'); $this->context->controller->addJqueryPlugin('colorpicker'); $this->context->controller->addJqueryUI('ui.sortable'); } @@ -431,11 +417,11 @@ public function hookActionFrontControllerSetMedia() $this->context->controller->registerStylesheet( 'front-css', - 'modules/' . $this->name . '/views/css/front.css' + 'modules/' . $this->name . '/views/dist/front.css' ); $this->context->controller->registerJavascript( 'front-js', - 'modules/' . $this->name . '/views/js/front.js' + 'modules/' . $this->name . '/views/dist/front.js' ); } diff --git a/package.json b/package.json index f92016cb..48186d62 100644 --- a/package.json +++ b/package.json @@ -11,6 +11,26 @@ "url": "https://github.com/PrestaShop/PrestaShop/issues" }, "homepage": "https://github.com/PrestaShop/blockreassurance#readme", - "devDependencies": {}, - "dependencies": {} -} \ No newline at end of file + "scripts": { + "build": "webpack-cli --mode production", + "dev": "webpack-cli --mode development --watch" + }, + "devDependencies": { + "@babel/core": "^7.3.4", + "babel-loader": "^8.0.5", + "clean-webpack-plugin": "^2.0.0", + "css-loader": "^2.1.0", + "file-loader": "^4.2.0", + "mini-css-extract-plugin": "^0.5.0", + "node-sass": "^4.11.0", + "sass-loader": "^7.1.0", + "style-loader": "^0.23.1", + "webpack": "^4.29.6", + "webpack-cli": "^3.2.3" + }, + "dependencies": { + "material-design-icons": "^3.0.1", + "@simonwep/pickr": "^1.4.6", + "vue": "^2.6.10" + } +} diff --git a/views/js/back.js b/views/js/back.js deleted file mode 100644 index 195ff14d..00000000 --- a/views/js/back.js +++ /dev/null @@ -1,511 +0,0 @@ -/** - * 2007-2019 PrestaShop - * - * NOTICE OF LICENSE - * - * This source file is subject to the Academic Free License (AFL 3.0) - * that is bundled with this package in the file LICENSE.txt. - * It is also available through the world-wide-web at this URL: - * http://opensource.org/licenses/afl-3.0.php - * If you did not receive a copy of the license and are unable to - * obtain it through the world-wide-web, please send an email - * to license@prestashop.com so we can send you a copy immediately. - * - * DISCLAIMER - * - * Do not edit or add to this file if you wish to upgrade PrestaShop to newer - * versions in the future. If you wish to customize PrestaShop for your - * needs please refer to http://www.prestashop.com for more information. - * - * @author PrestaShop SA - * @copyright 2007-2019 PrestaShop SA - * @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0) - * International Registered Trademark & Property of PrestaShop SA - */ -$(window).ready(function () { - // Tab Content - var imgSelected; - // Tab Content : Change position - $('.listing-body').sortable({ - update: function () { - var blocks = []; - $('.listing-general-rol').each(function () { - blocks.push($(this).attr('data-block')); - }); - - $.ajax({ - type: 'POST', - dataType: 'JSON', - url: psr_controller_block_url, - data: { - ajax: true, - action: 'UpdatePosition', - blocks: blocks, - }, - success: function (data) { - if (data == 'success') { - showSuccessMessage(successPosition); - } else { - showErrorMessage(errorPosition); - } - } - }); - } - }); - - // Tab Content : Set active/inactive - $(document).on('click', '.listing-row .switch-input', (e) => { - var switchIsOn = $(e.target).hasClass('-checked'); - var status = switchIsOn ? 1 : 0; - - $(e.target).parent().find('.switch_text').hide(); - if (switchIsOn) { - $('input', e.target).attr('checked', false); - $(e.target).removeClass('-checked'); - $(e.target).parent().find('.switch-off').show(); - } else { - $('input', e.target).attr('checked', true); - $(e.target).addClass('-checked'); - $(e.target).parent().find('.switch-on').show(); - } - - $.ajax({ - url: psr_controller_block_url, - type: 'POST', - dataType: 'JSON', - async: false, - data: { - controller: psr_controller_block, - action: 'changeBlockStatus', - idpsr: $(e.target).parent().attr('data-cart_psreassurance_id'), - status: status, - ajax: true, - }, - success: (data) => { - if (data === 'success') { - showNoticeMessage(block_updated); - } else { - showErrorMessage(active_error); - } - } - }); - }); - - // Tab Content : Add - $(document).on('click', '.psre-add', function () { - $('.landscape').show(); - - $('#reminder_listing').removeClass('active').addClass('inactive'); - $('#blockDisplay').removeClass('inactive').addClass('active'); - $('.show-rea-block').removeClass('active').addClass('inactive'); - - $('.panel-body-0').removeClass('inactive').addClass('active'); - $('#saveContentConfiguration').attr('data-id', ''); - - $('.limit_text:visible').text($('.show-rea-block.active .content_by_lang:visible input[type="text"]').val().length); - $('.limit_description:visible').text($('.show-rea-block.active .content_by_lang:visible textarea').val().length); - - var landscape = $('.panel-body-0 .psr-picto').attr('src'); - if (typeof landscape === 'undefined') { - $('.psr-picto:visible').hide(); - $('.svg_chosed_here:visible').hide(); - $('.landscape').show(); - } - }); - - // Tab Content : Edit - $(document).on('click', '.psre-edit', function () { - $('.landscape').hide(); - - $('#reminder_listing').removeClass('active').addClass('inactive'); - $('#blockDisplay').removeClass('inactive').addClass('active'); - $('.show-rea-block').removeClass('active').addClass('inactive'); - - var id = $(this).data('id'); - $('.panel-body-' + id).removeClass('inactive').addClass('active'); - $('#saveContentConfiguration').attr('data-id', id); - - $('.limit_text:visible').text($('.show-rea-block.active .content_by_lang:visible input[type="text"]').val().length); - $('.limit_description:visible').text($('.show-rea-block.active .content_by_lang:visible textarea').val().length); - - var landscape = $('.panel-body-' + id + ' .psr-picto').attr('src'); - if (typeof landscape === 'undefined') { - $('.psr-picto:visible').hide(); - $('.svg_chosed_here:visible').hide(); - $('.landscape').show(); - } - }); - - // Tab Content : Edit : Language - $(document).on('change', 'select[name="psr-language"]', (e) => { - var lang = $(e.target).val(); - - $('.content_by_lang').removeClass('active').addClass('inactive'); - $('.content_by_lang.lang-' + lang).addClass('active'); - $('.limit_text:visible').text($('.show-rea-block.active .content_by_lang:visible input[type="text"]').val().length); - $('.limit_description:visible').text($('.show-rea-block.active .content_by_lang:visible textarea').val().length); - }); - - // Tab Content : Edit : Modify icon - $(document).on('click', '.modify_icon', (e) => { - let position = $(e.target).offset(); - let offset = $(e.target).width(); - let top = position.top / 2; - let left = position.left / 2 - offset; - - $('#reassurance_block') - .show().css('top', top + 'px').css('left', left + 'px'); - }); - - // Tab Content : Edit : Modify icon : Click outside - $(document).on('click', 'body', (e) => { - let isInside = $(e.target).closest('.modify_icon').length; - let isPopin = $(e.target).closest('#reassurance_block').length; - - if (!isInside && !isPopin) { - $("#reassurance_block").fadeOut(300); - } - }); - - // Tab Content : Edit : Modify icon : Tabs - $(document).on('click', '#reassurance_block .category_select div img', (e) => { - var category = $(e.target).attr('data-id'); - // Change the tab - $('#reassurance_block .category_select div').removeClass('active'); - $(e.target).parent().addClass('active'); - // Change the tab content - $('#reassurance_block .category_reassurance').removeClass('active'); - $('#reassurance_block .cat_' + category).addClass('active'); - }); - - // Tab Content : Edit : Select icon - $(document).on('click', '#reassurance_block .category_reassurance .svg', (e) => { - var svg = $(e.target)[0].outerHTML; - - // Popin : select the icon - $('#reassurance_block .category_reassurance img.svg.selected').removeClass('selected'); - $(e.target).addClass('selected'); - // Hide the initial icon - $('.landscape').hide(); - $('.psr-picto').hide(); - // Show the image - $('.svg_chosed_here').show(); - $('.svg_chosed_here:visible').html(svg); - // Popin : hide it - $('#reassurance_block').fadeOut(300); - }); - - // Tab Content : Edit : Select none - $(document).on('click', '#reassurance_block .select_none', (e) => { - var psrPicto = $('.psr-picto:visible'); - psrPicto.attr('src', 'undefined').hide(); - - // Un-select icon in the popin - $('#reassurance_block .category_reassurance img.svg').removeClass('selected'); - // Hide the icon seected - $('.svg_chosed_here:visible').hide(); - // Display the landscape icon - $('.landscape').show(); - // Hide the popin - $('#reassurance_block').fadeOut(300); - }); - - // Tab Content : Edit : Custom Icon - $(document).on('change', '.show-rea-block.active input[type="file"]', function (e) { - var files = $(this)[0].files; - // Change the label - var jqLabel = $(this).parents('.input-group').find('label.file_label'); - var label = jqLabel.attr('data-label'); - if (files.length === 1) { - label = files.length + ' file selected' - } - jqLabel.html(label); - - // Preview the image - var idPreview = $(this).attr('data-preview'); - if (files && files[0]) { - var reader = new FileReader(); - reader.onload = function (e) { - var jqPreview = $('.' + idPreview); - if (jqPreview.hasClass('hide')) { - jqPreview.removeClass('hide'); - } - jqPreview.attr('src', e.target.result); - console.log(e.target.result) - }; - reader.readAsDataURL(files[0]); - - imgSelected = files[0]; - - // Hide the initial icon - $('.landscape').hide(); - $('.psr-picto').hide(); - $('.picto_by_module').hide(); - // Show the image - $('.svg_chosed_here').show(); - } - }); - - // Tab Content : Edit : MaxLength - $(document).on('keyup keydown', '.show-rea-block.active .content_by_lang input[type="text"], .show-rea-block.active .content_by_lang textarea', function () { - var maxLength = 100; - var val = $(this).val(); - var valLength = val.length; - if (val.length > maxLength) { - $(this).val(val.substring(0, maxLength - 1)); - valLength = $(this).val().length; - } - if ($(this).is('input:text')) { - $('.limit_text:visible').text(valLength); - } else { - $('.limit_description:visible').text(valLength); - } - }); - - // Tab Content : Edit : Return - $(document).on('click', '#blockDisplay .refreshPage', function () { - location.reload(); - }); - - // Tab Content : Edit : Redirect - $(document).on('change', 'input[name^="PSR_REDIRECTION_"]', (e) => { - function setEnabledPSR(psr, state) { - if (state) { - $('.psr-' + psr).removeClass('inactive').addClass('active'); - } else { - $('.psr-' + psr).removeClass('active').addClass('inactive'); - } - } - - switch ($(e.target).val()) { - case '0': - setEnabledPSR('cms', false); - setEnabledPSR('url', false); - break; - case '1': - setEnabledPSR('cms', true); - setEnabledPSR('url', false); - break; - case '2': - setEnabledPSR('cms', false); - setEnabledPSR('url', true); - break; - } - }); - - // Tab Content : Edit : Redirect : URL - $(document).on('keyup', '.block_url:visible', (e) => { - var url = $(e.target).val(); - var pattern_for_url = /(http(s)?:\/\/.)?(www\.)?[-a-zA-Z0-9@:%._\+~#=]{2,256}\.[a-z]{2,6}\b([-a-zA-Z0-9@:%_\+.~#?&//=]*)/g; - var pattern_for_http = /(http(s)?:\/\/)/g; - - // If it is a real URL : - if (pattern_for_url.test(url)) { - $(e.target).css('background', '#fff'); - if (!pattern_for_http.test(url)) { - $(e.target).val('http://' + url); - } - } else { - $(e.target).css('background', '#ffecec'); - } - }); - - // Tab Content : Edit : Save - $(document).on('click', '#saveContentConfiguration', function () { - var dataToSave = {}; - var blockId = $(this).attr('data-id'); - var imgIcon = $('.psr_picto_showing:visible img.psr-picto'); - var iconSrc = imgIcon.attr('src'); - var iconReplaced = $('.svg_chosed_here img.svg').attr('src'); - if (typeof iconReplaced !== 'undefined') { - iconSrc = iconReplaced; - } - - var minimalData = false; - $('.show-rea-block.active .content_by_lang').each(function (index, elem) { - var lang = $(elem).attr('data-lang'); - var type = $(elem).attr('data-type'); - if (!dataToSave.hasOwnProperty(lang)) { - dataToSave[lang] = {}; - } - if (!dataToSave[lang].hasOwnProperty(type)) { - dataToSave[lang][type] = ''; - } - if (type === 'description') { - dataToSave[lang][type] = $('textarea', elem).val(); - } else if (typeof($('input', elem).val()) != 'undefined') { - dataToSave[lang][type] = $('input', elem).val(); - } - if (!minimalData && lang == psr_lang && type == 'title' && dataToSave[lang][type].length > 0) { - minimalData = true; - } - }); - if (!minimalData) { - showErrorMessage(min_field_error); - return; - } - - var formData = new FormData(); - formData.append('ajax', true); - formData.append('action', 'SaveBlockContent'); - formData.append('file', imgSelected); - formData.append('id_block', blockId); - formData.append('lang_values', JSON.stringify(dataToSave)); - formData.append('picto', iconSrc); - formData.append('typelink', $('input[name="PSR_REDIRECTION_' + blockId + '"]:checked').val()); - formData.append('id_cms', $('select[name="ID_CMS_' + blockId + '"]').val()); - - $.ajax({ - type: 'POST', - dataType: 'JSON', - url: psr_controller_block_url, - contentType: false, - processData: false, - data: formData, - success: function (data) { - showSuccessMessage(psre_success); - setTimeout(location.reload(), 1800); - } - }); - }); - - // Tab Display - var vMenu = new Vue({ - el: '#menu', - data: { - selectedTabName: currentPage, - }, - methods: { - makeActive: function (item) { - this.selectedTabName = item; - window.history.pushState({}, '', moduleAdminLink.replace(/\amp;/g, '') + '&page=' + item); - }, - isActive: function (item) { - if (this.selectedTabName !== item) { - return false; - } - $('.psr_menu').addClass('addons-hide'); - $('.psr_menu#' + item).removeClass('addons-hide'); - - return true; - } - } - }); - - // Tab Display : Save Position - $(document).on('change', 'input[name="PSR_HOOK_CHECKOUT"],input[name="PSR_HOOK_HEADER"],input[name="PSR_HOOK_FOOTER"],input[name="PSR_HOOK_PRODUCT"]', function () { - var selector = ''; - switch ($(this).attr('name')) { - case 'PSR_HOOK_CHECKOUT': - selector = 'checkout'; - break; - case 'PSR_HOOK_HEADER': - selector = 'header'; - break; - case 'PSR_HOOK_FOOTER': - selector = 'footer'; - break; - case 'PSR_HOOK_PRODUCT': - selector = 'product'; - break; - } - - $('.psr-' + selector + '-grey').addClass('active'); - $('.psr-' + selector + '-color').removeClass('active'); - - $(this).nextAll('.psr-' + selector + '-grey').removeClass('active'); - $(this).nextAll('.psr-' + selector + '-color').addClass('active'); - savePositionByHook($(this).attr('name'), $(this).val()); - }); - function savePositionByHook(hook, value) { - $.ajax({ - type: 'POST', - dataType: 'JSON', - url: psr_controller_block_url, - data: { - ajax: true, - action: 'SavePositionByHook', - hook: hook, - value: value, - }, - success: function (data) { - if (data === 'success') { - showSuccessMessage(successPosition); - } else { - showErrorMessage(errorPosition); - } - } - }); - } - - // Tab Appearance - var pickrComponents = { - // Main components - preview: true, - opacity: false, - hue: true, - - // Input / output Options - interaction: { - hex: false, - rgba: false, - hsla: false, - hsva: false, - cmyk: false, - input: true, - clear: false, - save: true - } - }; - var pickr1 = Pickr.create({ - el: '.ps_colorpicker1', - default: psr_icon_color, - defaultRepresentation: 'HEX', - closeWithKey: 'Escape', - adjustableNumbers: true, - components: pickrComponents - }); - pickr1.on('change', (...args) => { - let pickrColor = pickr1.getColor(); - let hexaColor = pickrColor.toHEX().toString(); - $('.psr_icon_color').val(hexaColor); - }); - - var pickr2 = Pickr.create({ - el: '.ps_colorpicker2', - default: psr_text_color, - defaultRepresentation: 'HEX', - closeWithKey: 'Escape', - adjustableNumbers: true, - components: pickrComponents - }); - pickr2.on('change', (...args) => { - let pickrColor = pickr2.getColor(); - let hexaColor = pickrColor.toHEX().toString(); - $('.psr_text_color').val(hexaColor); - }); - - // Tab Appearance : Save Color - $(document).on('click', '#saveConfiguration', function () { - var color1 = $('#color_1').val(); - var color2 = $('#color_2').val() - $.ajax({ - type: 'POST', - dataType: 'JSON', - url: psr_controller_block_url, - data: { - ajax: true, - action: 'SaveColor', - color1: color1, - color2: color2, - }, - success: function (data) { - if (data === 'success') { - showSuccessMessage(psre_success); - } else { - showErrorMessage(active_error); - } - } - }); - }); -}); diff --git a/views/js/vue.min.js b/views/js/vue.min.js deleted file mode 100644 index 63ce8086..00000000 --- a/views/js/vue.min.js +++ /dev/null @@ -1,6 +0,0 @@ -/*! - * Vue.js v2.4.4 - * (c) 2014-2017 Evan You - * Released under the MIT License. - */ -!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?module.exports=e():"function"==typeof define&&define.amd?define(e):t.Vue=e()}(this,function(){"use strict";function t(t){return void 0===t||null===t}function e(t){return void 0!==t&&null!==t}function n(t){return!0===t}function r(t){return!1===t}function i(t){return"string"==typeof t||"number"==typeof t||"boolean"==typeof t}function o(t){return null!==t&&"object"==typeof t}function a(t){return"[object Object]"===hi.call(t)}function s(t){return"[object RegExp]"===hi.call(t)}function c(t){var e=parseFloat(t);return e>=0&&Math.floor(e)===e&&isFinite(t)}function u(t){return null==t?"":"object"==typeof t?JSON.stringify(t,null,2):String(t)}function l(t){var e=parseFloat(t);return isNaN(e)?t:e}function f(t,e){for(var n=Object.create(null),r=t.split(","),i=0;i-1)return t.splice(n,1)}}function d(t,e){return gi.call(t,e)}function v(t){var e=Object.create(null);return function(n){return e[n]||(e[n]=t(n))}}function h(t,e){function n(n){var r=arguments.length;return r?r>1?t.apply(e,arguments):t.call(e,n):t.call(e)}return n._length=t.length,n}function m(t,e){e=e||0;for(var n=t.length-e,r=new Array(n);n--;)r[n]=t[n+e];return r}function y(t,e){for(var n in e)t[n]=e[n];return t}function g(t){for(var e={},n=0;n_o&&vo[n].id>t.id;)n--;vo.splice(n+1,0,t)}else vo.push(t);yo||(yo=!0,Zi(St))}}function Mt(t){Co.clear(),It(t,Co)}function It(t,e){var n,r,i=Array.isArray(t);if((i||o(t))&&Object.isExtensible(t)){if(t.__ob__){var a=t.__ob__.dep.id;if(e.has(a))return;e.add(a)}if(i)for(n=t.length;n--;)It(t[n],e);else for(n=(r=Object.keys(t)).length;n--;)It(t[r[n]],e)}}function Dt(t,e,n){wo.get=function(){return this[e][n]},wo.set=function(t){this[e][n]=t},Object.defineProperty(t,n,wo)}function Pt(t){t._watchers=[];var e=t.$options;e.props&&Ft(t,e.props),e.methods&&zt(t,e.methods),e.data?Rt(t):L(t._data={},!0),e.computed&&Bt(t,e.computed),e.watch&&e.watch!==Ui&&Kt(t,e.watch)}function Ft(t,e){var n=t.$options.propsData||{},r=t._props={},i=t.$options._propKeys=[],o=!t.$parent;ro.shouldConvert=o;for(var a in e)!function(o){i.push(o);var a=J(o,e,n,t);N(r,o,a),o in t||Dt(t,"_props",o)}(a);ro.shouldConvert=!0}function Rt(t){var e=t.$options.data;a(e=t._data="function"==typeof e?Ht(e,t):e||{})||(e={});for(var n=Object.keys(e),r=t.$options.props,i=(t.$options.methods,n.length);i--;){var o=n[i];r&&d(r,o)||w(o)||Dt(t,"_data",o)}L(e,!0)}function Ht(t,e){try{return t.call(e)}catch(t){return k(t,e,"data()"),{}}}function Bt(t,e){var n=t._computedWatchers=Object.create(null),r=qi();for(var i in e){var o=e[i],a="function"==typeof o?o:o.get;r||(n[i]=new $o(t,a||_,_,xo)),i in t||Ut(t,i,o)}}function Ut(t,e,n){var r=!qi();"function"==typeof n?(wo.get=r?Vt(e):n,wo.set=_):(wo.get=n.get?r&&!1!==n.cache?Vt(e):n.get:_,wo.set=n.set?n.set:_),Object.defineProperty(t,e,wo)}function Vt(t){return function(){var e=this._computedWatchers&&this._computedWatchers[t];if(e)return e.dirty&&e.evaluate(),Qi.target&&e.depend(),e.value}}function zt(t,e){t.$options.props;for(var n in e)t[n]=null==e[n]?_:h(e[n],t)}function Kt(t,e){for(var n in e){var r=e[n];if(Array.isArray(r))for(var i=0;i=0||n.indexOf(t[i])<0)&&r.push(t[i]);return r}return t}function $e(t){this._init(t)}function Ce(t){t.use=function(t){var e=this._installedPlugins||(this._installedPlugins=[]);if(e.indexOf(t)>-1)return this;var n=m(arguments,1);return n.unshift(this),"function"==typeof t.install?t.install.apply(t,n):"function"==typeof t&&t.apply(null,n),e.push(t),this}}function we(t){t.mixin=function(t){return this.options=z(this.options,t),this}}function xe(t){t.cid=0;var e=1;t.extend=function(t){t=t||{};var n=this,r=n.cid,i=t._Ctor||(t._Ctor={});if(i[r])return i[r];var o=t.name||n.options.name,a=function(t){this._init(t)};return a.prototype=Object.create(n.prototype),a.prototype.constructor=a,a.cid=e++,a.options=z(n.options,t),a.super=n,a.options.props&&Ae(a),a.options.computed&&ke(a),a.extend=n.extend,a.mixin=n.mixin,a.use=n.use,Oi.forEach(function(t){a[t]=n[t]}),o&&(a.options.components[o]=a),a.superOptions=n.options,a.extendOptions=t,a.sealedOptions=y({},a.options),i[r]=a,a}}function Ae(t){var e=t.options.props;for(var n in e)Dt(t.prototype,"_props",n)}function ke(t){var e=t.options.computed;for(var n in e)Ut(t.prototype,n,e[n])}function Oe(t){Oi.forEach(function(e){t[e]=function(t,n){return n?("component"===e&&a(n)&&(n.name=n.name||t,n=this.options._base.extend(n)),"directive"===e&&"function"==typeof n&&(n={bind:n,update:n}),this.options[e+"s"][t]=n,n):this.options[e+"s"][t]}})}function Te(t){return t&&(t.Ctor.options.name||t.tag)}function Se(t,e){return Array.isArray(t)?t.indexOf(e)>-1:"string"==typeof t?t.split(",").indexOf(e)>-1:!!s(t)&&t.test(e)}function Ee(t,e,n){for(var r in t){var i=t[r];if(i){var o=Te(i.componentOptions);o&&!n(o)&&(i!==e&&je(i),t[r]=null)}}}function je(t){t&&t.componentInstance.$destroy()}function Le(t){for(var n=t.data,r=t,i=t;e(i.componentInstance);)(i=i.componentInstance._vnode).data&&(n=Ne(i.data,n));for(;e(r=r.parent);)r.data&&(n=Ne(n,r.data));return Me(n.staticClass,n.class)}function Ne(t,n){return{staticClass:Ie(t.staticClass,n.staticClass),class:e(t.class)?[t.class,n.class]:n.class}}function Me(t,n){return e(t)||e(n)?Ie(t,De(n)):""}function Ie(t,e){return t?e?t+" "+e:t:e||""}function De(t){return Array.isArray(t)?Pe(t):o(t)?Fe(t):"string"==typeof t?t:""}function Pe(t){for(var n,r="",i=0,o=t.length;i=0&&" "===(m=t.charAt(h));h--);m&&fa.test(m)||(l=!0)}}else void 0===o?(v=i+1,o=t.slice(0,i).trim()):e();if(void 0===o?o=t.slice(0,i).trim():0!==v&&e(),a)for(i=0;i=Lo}function hn(t){return 34===t||39===t}function mn(t){var e=1;for(Do=Io;!vn();)if(t=dn(),hn(t))yn(t);else if(91===t&&e++,93===t&&e--,0===e){Po=Io;break}}function yn(t){for(var e=t;!vn()&&(t=dn())!==e;);}function gn(t,e,n){var r=n&&n.number,i=cn(t,"value")||"null",o=cn(t,"true-value")||"true",a=cn(t,"false-value")||"false";rn(t,"checked","Array.isArray("+e+")?_i("+e+","+i+")>-1"+("true"===o?":("+e+")":":_q("+e+","+o+")")),sn(t,da,"var $$a="+e+",$$el=$event.target,$$c=$$el.checked?("+o+"):("+a+");if(Array.isArray($$a)){var $$v="+(r?"_n("+i+")":i)+",$$i=_i($$a,$$v);if($$el.checked){$$i<0&&("+e+"=$$a.concat([$$v]))}else{$$i>-1&&("+e+"=$$a.slice(0,$$i).concat($$a.slice($$i+1)))}}else{"+fn(e,"$$c")+"}",null,!0)}function _n(t,e,n){var r=n&&n.number,i=cn(t,"value")||"null";rn(t,"checked","_q("+e+","+(i=r?"_n("+i+")":i)+")"),sn(t,da,fn(e,i),null,!0)}function bn(t,e,n){var r="var $$selectedVal = "+('Array.prototype.filter.call($event.target.options,function(o){return o.selected}).map(function(o){var val = "_value" in o ? o._value : o.value;return '+(n&&n.number?"_n(val)":"val")+"})")+";";sn(t,"change",r=r+" "+fn(e,"$event.target.multiple ? $$selectedVal : $$selectedVal[0]"),null,!0)}function $n(t,e,n){var r=t.attrsMap.type,i=n||{},o=i.lazy,a=i.number,s=i.trim,c=!o&&"range"!==r,u=o?"change":"range"===r?pa:"input",l="$event.target.value";s&&(l="$event.target.value.trim()"),a&&(l="_n("+l+")");var f=fn(e,l);c&&(f="if($event.target.composing)return;"+f),rn(t,"value","("+e+")"),sn(t,u,f,null,!0),(s||a)&&sn(t,"blur","$forceUpdate()")}function Cn(t){var n;e(t[pa])&&(t[n=Di?"change":"input"]=[].concat(t[pa],t[n]||[]),delete t[pa]),e(t[da])&&(t[n=Bi?"click":"change"]=[].concat(t[da],t[n]||[]),delete t[da])}function wn(t,e,n,r,i){if(n){var o=e,a=Ro;e=function(n){null!==(1===arguments.length?o(n):o.apply(null,arguments))&&xn(t,e,r,a)}}Ro.addEventListener(t,e,Vi?{capture:r,passive:i}:r)}function xn(t,e,n,r){(r||Ro).removeEventListener(t,e,n)}function An(e,n){if(!t(e.data.on)||!t(n.data.on)){var r=n.data.on||{},i=e.data.on||{};Ro=n.elm,Cn(r),et(r,i,wn,xn,n.context)}}function kn(n,r){if(!t(n.data.domProps)||!t(r.data.domProps)){var i,o,a=r.elm,s=n.data.domProps||{},c=r.data.domProps||{};e(c.__ob__)&&(c=r.data.domProps=y({},c));for(i in s)t(c[i])&&(a[i]="");for(i in c)if(o=c[i],"textContent"!==i&&"innerHTML"!==i||(r.children&&(r.children.length=0),o!==s[i]))if("value"===i){a._value=o;var u=t(o)?"":String(o);On(a,r,u)&&(a.value=u)}else a[i]=o}}function On(t,e,n){return!t.composing&&("option"===e.tag||Tn(t,n)||Sn(t,n))}function Tn(t,e){var n=!0;try{n=document.activeElement!==t}catch(t){}return n&&t.value!==e}function Sn(t,n){var r=t.value,i=t._vModifiers;return e(i)&&i.number?l(r)!==l(n):e(i)&&i.trim?r.trim()!==n.trim():r!==n}function En(t){var e=jn(t.style);return t.staticStyle?y(t.staticStyle,e):e}function jn(t){return Array.isArray(t)?g(t):"string"==typeof t?ma(t):t}function Ln(t,e){var n,r={};if(e)for(var i=t;i.componentInstance;)(i=i.componentInstance._vnode).data&&(n=En(i.data))&&y(r,n);(n=En(t.data))&&y(r,n);for(var o=t;o=o.parent;)o.data&&(n=En(o.data))&&y(r,n);return r}function Nn(n,r){var i=r.data,o=n.data;if(!(t(i.staticStyle)&&t(i.style)&&t(o.staticStyle)&&t(o.style))){var a,s,c=r.elm,u=o.staticStyle,l=o.normalizedStyle||o.style||{},f=u||l,p=jn(r.data.style)||{};r.data.normalizedStyle=e(p.__ob__)?y({},p):p;var d=Ln(r,!0);for(s in f)t(d[s])&&_a(c,s,"");for(s in d)(a=d[s])!==f[s]&&_a(c,s,null==a?"":a)}}function Mn(t,e){if(e&&(e=e.trim()))if(t.classList)e.indexOf(" ")>-1?e.split(/\s+/).forEach(function(e){return t.classList.add(e)}):t.classList.add(e);else{var n=" "+(t.getAttribute("class")||"")+" ";n.indexOf(" "+e+" ")<0&&t.setAttribute("class",(n+e).trim())}}function In(t,e){if(e&&(e=e.trim()))if(t.classList)e.indexOf(" ")>-1?e.split(/\s+/).forEach(function(e){return t.classList.remove(e)}):t.classList.remove(e),t.classList.length||t.removeAttribute("class");else{for(var n=" "+(t.getAttribute("class")||"")+" ",r=" "+e+" ";n.indexOf(r)>=0;)n=n.replace(r," ");(n=n.trim())?t.setAttribute("class",n):t.removeAttribute("class")}}function Dn(t){if(t){if("object"==typeof t){var e={};return!1!==t.css&&y(e,wa(t.name||"v")),y(e,t),e}return"string"==typeof t?wa(t):void 0}}function Pn(t){ja(function(){ja(t)})}function Fn(t,e){var n=t._transitionClasses||(t._transitionClasses=[]);n.indexOf(e)<0&&(n.push(e),Mn(t,e))}function Rn(t,e){t._transitionClasses&&p(t._transitionClasses,e),In(t,e)}function Hn(t,e,n){var r=Bn(t,e),i=r.type,o=r.timeout,a=r.propCount;if(!i)return n();var s=i===Aa?Ta:Ea,c=0,u=function(){t.removeEventListener(s,l),n()},l=function(e){e.target===t&&++c>=a&&u()};setTimeout(function(){c0&&(n=Aa,l=a,f=o.length):e===ka?u>0&&(n=ka,l=u,f=c.length):f=(n=(l=Math.max(a,u))>0?a>u?Aa:ka:null)?n===Aa?o.length:c.length:0,{type:n,timeout:l,propCount:f,hasTransform:n===Aa&&La.test(r[Oa+"Property"])}}function Un(t,e){for(;t.length1}function Wn(t,e){!0!==e.data.show&&zn(e)}function Gn(t,e,n){Zn(t,e,n),(Di||Fi)&&setTimeout(function(){Zn(t,e,n)},0)}function Zn(t,e,n){var r=e.value,i=t.multiple;if(!i||Array.isArray(r)){for(var o,a,s=0,c=t.options.length;s-1,a.selected!==o&&(a.selected=o);else if(b(Qn(a),r))return void(t.selectedIndex!==s&&(t.selectedIndex=s));i||(t.selectedIndex=-1)}}function Yn(t,e){return e.every(function(e){return!b(e,t)})}function Qn(t){return"_value"in t?t._value:t.value}function Xn(t){t.target.composing=!0}function tr(t){t.target.composing&&(t.target.composing=!1,er(t.target,"input"))}function er(t,e){var n=document.createEvent("HTMLEvents");n.initEvent(e,!0,!0),t.dispatchEvent(n)}function nr(t){return!t.componentInstance||t.data&&t.data.transition?t:nr(t.componentInstance._vnode)}function rr(t){var e=t&&t.componentOptions;return e&&e.Ctor.options.abstract?rr(dt(e.children)):t}function ir(t){var e={},n=t.$options;for(var r in n.propsData)e[r]=t[r];var i=n._parentListeners;for(var o in i)e[bi(o)]=i[o];return e}function or(t,e){if(/\d-keep-alive$/.test(e.tag))return t("keep-alive",{props:e.componentOptions.propsData})}function ar(t){for(;t=t.parent;)if(t.data.transition)return!0}function sr(t,e){return e.key===t.key&&e.tag===t.tag}function cr(t){t.elm._moveCb&&t.elm._moveCb(),t.elm._enterCb&&t.elm._enterCb()}function ur(t){t.data.newPos=t.elm.getBoundingClientRect()}function lr(t){var e=t.data.pos,n=t.data.newPos,r=e.left-n.left,i=e.top-n.top;if(r||i){t.data.moved=!0;var o=t.elm.style;o.transform=o.WebkitTransform="translate("+r+"px,"+i+"px)",o.transitionDuration="0s"}}function fr(t,e){var n=e?Va(e):Ba;if(n.test(t)){for(var r,i,o=[],a=n.lastIndex=0;r=n.exec(t);){(i=r.index)>a&&o.push(JSON.stringify(t.slice(a,i)));var s=Xe(r[1].trim());o.push("_s("+s+")"),a=i+r[0].length}return a=0&&a[i].lowerCasedTag!==s;i--);else i=0;if(i>=0){for(var c=a.length-1;c>=i;c--)e.end&&e.end(a[c].tag,n,r);a.length=i,o=i&&a[i-1].tag}else"br"===s?e.start&&e.start(t,[],!0,n,r):"p"===s&&(e.start&&e.start(t,[],!1,n,r),e.end&&e.end(t,n,r))}for(var i,o,a=[],s=e.expectHTML,c=e.isUnaryTag||xi,u=e.canBeLeftOpenTag||xi,l=0;t;){if(i=t,o&&ys(o)){var f=0,p=o.toLowerCase(),d=gs[p]||(gs[p]=new RegExp("([\\s\\S]*?)(]*>)","i")),v=t.replace(d,function(t,n,r){return f=r.length,ys(p)||"noscript"===p||(n=n.replace(//g,"$1").replace(//g,"$1")),ws(p,n)&&(n=n.slice(1)),e.chars&&e.chars(n),""});l+=t.length-v.length,t=v,r(p,l-f,l)}else{var h=t.indexOf("<");if(0===h){if(is.test(t)){var m=t.indexOf("--\x3e");if(m>=0){e.shouldKeepComment&&e.comment(t.substring(4,m)),n(m+3);continue}}if(os.test(t)){var y=t.indexOf("]>");if(y>=0){n(y+2);continue}}var g=t.match(rs);if(g){n(g[0].length);continue}var _=t.match(ns);if(_){var b=l;n(_[0].length),r(_[1],b,l);continue}var $=function(){var e=t.match(ts);if(e){var r={tagName:e[1],attrs:[],start:l};n(e[0].length);for(var i,o;!(i=t.match(es))&&(o=t.match(Ya));)n(o[0].length),r.attrs.push(o);if(i)return r.unarySlash=i[1],n(i[0].length),r.end=l,r}}();if($){!function(t){var n=t.tagName,i=t.unarySlash;s&&("p"===o&&Wa(n)&&r(o),u(n)&&o===n&&r(n));for(var l=c(n)||!!i,f=t.attrs.length,p=new Array(f),d=0;d=0){for(w=t.slice(h);!(ns.test(w)||ts.test(w)||is.test(w)||os.test(w)||(x=w.indexOf("<",1))<0);)h+=x,w=t.slice(h);C=t.substring(0,h),n(h)}h<0&&(C=t,t=""),e.chars&&C&&e.chars(C)}if(t===i){e.chars&&e.chars(t);break}}r()}function vr(t,e){function n(t){t.pre&&(s=!1),ps(t.tag)&&(c=!1)}ss=e.warn||en,ps=e.isPreTag||xi,ds=e.mustUseProp||xi,vs=e.getTagNamespace||xi,us=nn(e.modules,"transformNode"),ls=nn(e.modules,"preTransformNode"),fs=nn(e.modules,"postTransformNode"),cs=e.delimiters;var r,i,o=[],a=!1!==e.preserveWhitespace,s=!1,c=!1;return dr(t,{warn:ss,expectHTML:e.expectHTML,isUnaryTag:e.isUnaryTag,canBeLeftOpenTag:e.canBeLeftOpenTag,shouldDecodeNewlines:e.shouldDecodeNewlines,shouldKeepComment:e.comments,start:function(t,a,u){function l(t){}var f=i&&i.ns||vs(t);Di&&"svg"===f&&(a=Nr(a));var p={type:1,tag:t,attrsList:a,attrsMap:Er(a),parent:i,children:[]};f&&(p.ns=f),Lr(p)&&!qi()&&(p.forbidden=!0);for(var d=0;d0,Fi=Ii&&Ii.indexOf("edge/")>0,Ri=Ii&&Ii.indexOf("android")>0,Hi=Ii&&/iphone|ipad|ipod|ios/.test(Ii),Bi=Ii&&/chrome\/\d+/.test(Ii)&&!Fi,Ui={}.watch,Vi=!1;if(Mi)try{var zi={};Object.defineProperty(zi,"passive",{get:function(){Vi=!0}}),window.addEventListener("test-passive",null,zi)}catch(t){}var Ki,Ji,qi=function(){return void 0===Ki&&(Ki=!Mi&&"undefined"!=typeof global&&"server"===global.process.env.VUE_ENV),Ki},Wi=Mi&&window.__VUE_DEVTOOLS_GLOBAL_HOOK__,Gi="undefined"!=typeof Symbol&&O(Symbol)&&"undefined"!=typeof Reflect&&O(Reflect.ownKeys),Zi=function(){function t(){r=!1;var t=n.slice(0);n.length=0;for(var e=0;e1?m(n):n;for(var r=m(arguments,1),i=0,o=n.length;i1&&(e[n[0].trim()]=n[1].trim())}}),e}),ya=/^--/,ga=/\s*!important$/,_a=function(t,e,n){if(ya.test(e))t.style.setProperty(e,n);else if(ga.test(n))t.style.setProperty(e,n.replace(ga,""),"important");else{var r=$a(e);if(Array.isArray(n))for(var i=0,o=n.length;id?g(n,t(i[m+1])?null:i[m+1].elm,i,p,m,o):p>m&&b(n,r,f,d)}function w(t,n,r,i){for(var o=r;o-1?ta[t]=e.constructor===window.HTMLUnknownElement||e.constructor===window.HTMLElement:ta[t]=/HTMLUnknownElement/.test(e.toString())},y($e.options.directives,Ma),y($e.options.components,Fa),$e.prototype.__patch__=Mi?Na:_,$e.prototype.$mount=function(t,e){return t=t&&Mi?He(t):void 0,Ct(this,t,e)},setTimeout(function(){Si.devtools&&Wi&&Wi.emit("init",$e)},0);var Ra,Ha=!!Mi&&function(t,e){var n=document.createElement("div");return n.innerHTML='
',n.innerHTML.indexOf(e)>0}("\n"," "),Ba=/\{\{((?:.|\n)+?)\}\}/g,Ua=/[-.*+?^${}()|[\]\/\\]/g,Va=v(function(t){var e=t[0].replace(Ua,"\\$&"),n=t[1].replace(Ua,"\\$&");return new RegExp(e+"((?:.|\\n)+?)"+n,"g")}),za=[{staticKeys:["staticClass"],transformNode:function(t,e){e.warn;var n=un(t,"class");n&&(t.staticClass=JSON.stringify(n));var r=cn(t,"class",!1);r&&(t.classBinding=r)},genData:function(t){var e="";return t.staticClass&&(e+="staticClass:"+t.staticClass+","),t.classBinding&&(e+="class:"+t.classBinding+","),e}},{staticKeys:["staticStyle"],transformNode:function(t,e){e.warn;var n=un(t,"style");n&&(t.staticStyle=JSON.stringify(ma(n)));var r=cn(t,"style",!1);r&&(t.styleBinding=r)},genData:function(t){var e="";return t.staticStyle&&(e+="staticStyle:"+t.staticStyle+","),t.styleBinding&&(e+="style:("+t.styleBinding+"),"),e}}],Ka={model:function(t,e,n){Fo=n;var r=e.value,i=e.modifiers,o=t.tag,a=t.attrsMap.type;if(t.component)return ln(t,r,i),!1;if("select"===o)bn(t,r,i);else if("input"===o&&"checkbox"===a)gn(t,r,i);else if("input"===o&&"radio"===a)_n(t,r,i);else if("input"===o||"textarea"===o)$n(t,r,i);else if(!Si.isReservedTag(o))return ln(t,r,i),!1;return!0},text:function(t,e){e.value&&rn(t,"textContent","_s("+e.value+")")},html:function(t,e){e.value&&rn(t,"innerHTML","_s("+e.value+")")}},Ja=f("area,base,br,col,embed,frame,hr,img,input,isindex,keygen,link,meta,param,source,track,wbr"),qa=f("colgroup,dd,dt,li,options,p,td,tfoot,th,thead,tr,source"),Wa=f("address,article,aside,base,blockquote,body,caption,col,colgroup,dd,details,dialog,div,dl,dt,fieldset,figcaption,figure,footer,form,h1,h2,h3,h4,h5,h6,head,header,hgroup,hr,html,legend,li,menuitem,meta,optgroup,option,param,rp,rt,source,style,summary,tbody,td,tfoot,th,thead,title,tr,track"),Ga={expectHTML:!0,modules:za,directives:Ka,isPreTag:function(t){return"pre"===t},isUnaryTag:Ja,mustUseProp:Vo,canBeLeftOpenTag:qa,isReservedTag:Xo,getTagNamespace:Re,staticKeys:function(t){return t.reduce(function(t,e){return t.concat(e.staticKeys||[])},[]).join(",")}(za)},Za={decode:function(t){return Ra=Ra||document.createElement("div"),Ra.innerHTML=t,Ra.textContent}},Ya=/^\s*([^\s"'<>\/=]+)(?:\s*(=)\s*(?:"([^"]*)"+|'([^']*)'+|([^\s"'=<>`]+)))?/,Qa="[a-zA-Z_][\\w\\-\\.]*",Xa="((?:"+Qa+"\\:)?"+Qa+")",ts=new RegExp("^<"+Xa),es=/^\s*(\/?)>/,ns=new RegExp("^<\\/"+Xa+"[^>]*>"),rs=/^]+>/i,is=/^/g,"$1").replace(//g,"$1")),Ro(l,n)&&(n=n.slice(1)),t.chars&&t.chars(n),""});c+=e.length-p.length,e=p,A(l,c-u,c)}else{var d=e.indexOf("<");if(0===d){if(No.test(e)){var v=e.indexOf("--\x3e");if(v>=0){t.shouldKeepComment&&t.comment(e.substring(4,v),c,c+v+3),C(v+3);continue}}if(jo.test(e)){var h=e.indexOf("]>");if(h>=0){C(h+2);continue}}var m=e.match(Eo);if(m){C(m[0].length);continue}var y=e.match(To);if(y){var g=c;C(y[0].length),A(y[1],g,c);continue}var _=x();if(_){k(_),Ro(_.tagName,e)&&C(1);continue}}var b=void 0,$=void 0,w=void 0;if(d>=0){for($=e.slice(d);!(To.test($)||Oo.test($)||No.test($)||jo.test($)||(w=$.indexOf("<",1))<0);)d+=w,$=e.slice(d);b=e.substring(0,d)}d<0&&(b=e),b&&C(b.length),t.chars&&b&&t.chars(b,c-b.length,c)}if(e===n){t.chars&&t.chars(e);break}}function C(t){c+=t,e=e.substring(t)}function x(){var t=e.match(Oo);if(t){var n,r,i={tagName:t[1],attrs:[],start:c};for(C(t[0].length);!(n=e.match(So))&&(r=e.match(xo)||e.match(Co));)r.start=c,C(r[0].length),r.end=c,i.attrs.push(r);if(n)return i.unarySlash=n[1],C(n[0].length),i.end=c,i}}function k(e){var n=e.tagName,c=e.unarySlash;o&&("p"===r&&wo(n)&&A(r),s(n)&&r===n&&A(n));for(var u=a(n)||!!c,l=e.attrs.length,f=new Array(l),p=0;p=0&&i[a].lowerCasedTag!==s;a--);else a=0;if(a>=0){for(var u=i.length-1;u>=a;u--)t.end&&t.end(i[u].tag,n,o);i.length=a,r=a&&i[a-1].tag}else"br"===s?t.start&&t.start(e,[],!0,n,o):"p"===s&&(t.start&&t.start(e,[],!1,n,o),t.end&&t.end(e,n,o))}A()}(e,{warn:Bo,expectHTML:t.expectHTML,isUnaryTag:t.isUnaryTag,canBeLeftOpenTag:t.canBeLeftOpenTag,shouldDecodeNewlines:t.shouldDecodeNewlines,shouldDecodeNewlinesForHref:t.shouldDecodeNewlinesForHref,shouldKeepComment:t.comments,outputSourceRange:t.outputSourceRange,start:function(e,o,a,l,f){var p=r&&r.ns||Wo(e);q&&"svg"===p&&(o=function(e){for(var t=[],n=0;nc&&(s.push(o=e.slice(c,i)),a.push(JSON.stringify(o)));var u=Ar(r[1].trim());a.push("_s("+u+")"),s.push({"@binding":u}),c=i+r[0].length}return c-1"+("true"===o?":("+t+")":":_q("+t+","+o+")")),Mr(e,"change","var $$a="+t+",$$el=$event.target,$$c=$$el.checked?("+o+"):("+a+");if(Array.isArray($$a)){var $$v="+(r?"_n("+i+")":i)+",$$i=_i($$a,$$v);if($$el.checked){$$i<0&&("+Br(t,"$$a.concat([$$v])")+")}else{$$i>-1&&("+Br(t,"$$a.slice(0,$$i).concat($$a.slice($$i+1))")+")}}else{"+Br(t,"$$c")+"}",null,!0)}(e,r,i);else if("input"===o&&"radio"===a)!function(e,t,n){var r=n&&n.number,i=Ir(e,"value")||"null";Er(e,"checked","_q("+t+","+(i=r?"_n("+i+")":i)+")"),Mr(e,"change",Br(t,i),null,!0)}(e,r,i);else if("input"===o||"textarea"===o)!function(e,t,n){var r=e.attrsMap.type,i=n||{},o=i.lazy,a=i.number,s=i.trim,c=!o&&"range"!==r,u=o?"change":"range"===r?Wr:"input",l="$event.target.value";s&&(l="$event.target.value.trim()"),a&&(l="_n("+l+")");var f=Br(t,l);c&&(f="if($event.target.composing)return;"+f),Er(e,"value","("+t+")"),Mr(e,u,f,null,!0),(s||a)&&Mr(e,"blur","$forceUpdate()")}(e,r,i);else if(!F.isReservedTag(o))return Hr(e,r,i),!1;return!0},text:function(e,t){t.value&&Er(e,"textContent","_s("+t.value+")",t)},html:function(e,t){t.value&&Er(e,"innerHTML","_s("+t.value+")",t)}},isPreTag:function(e){return"pre"===e},isUnaryTag:bo,mustUseProp:jn,canBeLeftOpenTag:$o,isReservedTag:Wn,getTagNamespace:Zn,staticKeys:function(e){return e.reduce(function(e,t){return e.concat(t.staticKeys||[])},[]).join(",")}(ba)},xa=g(function(e){return p("type,tag,attrsList,attrsMap,plain,parent,children,attrs,start,end,rawAttrsMap"+(e?","+e:""))});function ka(e,t){e&&($a=xa(t.staticKeys||""),wa=t.isReservedTag||T,function e(t){t.static=function(e){if(2===e.type)return!1;if(3===e.type)return!0;return!(!e.pre&&(e.hasBindings||e.if||e.for||d(e.tag)||!wa(e.tag)||function(e){for(;e.parent;){if("template"!==(e=e.parent).tag)return!1;if(e.for)return!0}return!1}(e)||!Object.keys(e).every($a)))}(t);if(1===t.type){if(!wa(t.tag)&&"slot"!==t.tag&&null==t.attrsMap["inline-template"])return;for(var n=0,r=t.children.length;n|^function\s*(?:[\w$]+)?\s*\(/,Oa=/\([^)]*?\);*$/,Sa=/^[A-Za-z_$][\w$]*(?:\.[A-Za-z_$][\w$]*|\['[^']*?']|\["[^"]*?"]|\[\d+]|\[[A-Za-z_$][\w$]*])*$/,Ta={esc:27,tab:9,enter:13,space:32,up:38,left:37,right:39,down:40,delete:[8,46]},Ea={esc:["Esc","Escape"],tab:"Tab",enter:"Enter",space:[" ","Spacebar"],up:["Up","ArrowUp"],left:["Left","ArrowLeft"],right:["Right","ArrowRight"],down:["Down","ArrowDown"],delete:["Backspace","Delete","Del"]},Na=function(e){return"if("+e+")return null;"},ja={stop:"$event.stopPropagation();",prevent:"$event.preventDefault();",self:Na("$event.target !== $event.currentTarget"),ctrl:Na("!$event.ctrlKey"),shift:Na("!$event.shiftKey"),alt:Na("!$event.altKey"),meta:Na("!$event.metaKey"),left:Na("'button' in $event && $event.button !== 0"),middle:Na("'button' in $event && $event.button !== 1"),right:Na("'button' in $event && $event.button !== 2")};function Da(e,t){var n=t?"nativeOn:":"on:",r="",i="";for(var o in e){var a=La(e[o]);e[o]&&e[o].dynamic?i+=o+","+a+",":r+='"'+o+'":'+a+","}return r="{"+r.slice(0,-1)+"}",i?n+"_d("+r+",["+i.slice(0,-1)+"])":n+r}function La(e){if(!e)return"function(){}";if(Array.isArray(e))return"["+e.map(function(e){return La(e)}).join(",")+"]";var t=Sa.test(e.value),n=Aa.test(e.value),r=Sa.test(e.value.replace(Oa,""));if(e.modifiers){var i="",o="",a=[];for(var s in e.modifiers)if(ja[s])o+=ja[s],Ta[s]&&a.push(s);else if("exact"===s){var c=e.modifiers;o+=Na(["ctrl","shift","alt","meta"].filter(function(e){return!c[e]}).map(function(e){return"$event."+e+"Key"}).join("||"))}else a.push(s);return a.length&&(i+=function(e){return"if(!$event.type.indexOf('key')&&"+e.map(Ma).join("&&")+")return null;"}(a)),o&&(i+=o),"function($event){"+i+(t?"return "+e.value+"($event)":n?"return ("+e.value+")($event)":r?"return "+e.value:e.value)+"}"}return t||n?e.value:"function($event){"+(r?"return "+e.value:e.value)+"}"}function Ma(e){var t=parseInt(e,10);if(t)return"$event.keyCode!=="+t;var n=Ta[e],r=Ea[e];return"_k($event.keyCode,"+JSON.stringify(e)+","+JSON.stringify(n)+",$event.key,"+JSON.stringify(r)+")"}var Ia={on:function(e,t){e.wrapListeners=function(e){return"_g("+e+","+t.value+")"}},bind:function(e,t){e.wrapData=function(n){return"_b("+n+",'"+e.tag+"',"+t.value+","+(t.modifiers&&t.modifiers.prop?"true":"false")+(t.modifiers&&t.modifiers.sync?",true":"")+")"}},cloak:S},Fa=function(e){this.options=e,this.warn=e.warn||Sr,this.transforms=Tr(e.modules,"transformCode"),this.dataGenFns=Tr(e.modules,"genData"),this.directives=A(A({},Ia),e.directives);var t=e.isReservedTag||T;this.maybeComponent=function(e){return!!e.component||!t(e.tag)},this.onceId=0,this.staticRenderFns=[],this.pre=!1};function Pa(e,t){var n=new Fa(t);return{render:"with(this){return "+(e?Ra(e,n):'_c("div")')+"}",staticRenderFns:n.staticRenderFns}}function Ra(e,t){if(e.parent&&(e.pre=e.pre||e.parent.pre),e.staticRoot&&!e.staticProcessed)return Ha(e,t);if(e.once&&!e.onceProcessed)return Ba(e,t);if(e.for&&!e.forProcessed)return za(e,t);if(e.if&&!e.ifProcessed)return Ua(e,t);if("template"!==e.tag||e.slotTarget||t.pre){if("slot"===e.tag)return function(e,t){var n=e.slotName||'"default"',r=qa(e,t),i="_t("+n+(r?","+r:""),o=e.attrs||e.dynamicAttrs?Ga((e.attrs||[]).concat(e.dynamicAttrs||[]).map(function(e){return{name:b(e.name),value:e.value,dynamic:e.dynamic}})):null,a=e.attrsMap["v-bind"];!o&&!a||r||(i+=",null");o&&(i+=","+o);a&&(i+=(o?"":",null")+","+a);return i+")"}(e,t);var n;if(e.component)n=function(e,t,n){var r=t.inlineTemplate?null:qa(t,n,!0);return"_c("+e+","+Va(t,n)+(r?","+r:"")+")"}(e.component,e,t);else{var r;(!e.plain||e.pre&&t.maybeComponent(e))&&(r=Va(e,t));var i=e.inlineTemplate?null:qa(e,t,!0);n="_c('"+e.tag+"'"+(r?","+r:"")+(i?","+i:"")+")"}for(var o=0;o>>0}(a):"")+")"}(e,e.scopedSlots,t)+","),e.model&&(n+="model:{value:"+e.model.value+",callback:"+e.model.callback+",expression:"+e.model.expression+"},"),e.inlineTemplate){var o=function(e,t){var n=e.children[0];if(n&&1===n.type){var r=Pa(n,t.options);return"inlineTemplate:{render:function(){"+r.render+"},staticRenderFns:["+r.staticRenderFns.map(function(e){return"function(){"+e+"}"}).join(",")+"]}"}}(e,t);o&&(n+=o+",")}return n=n.replace(/,$/,"")+"}",e.dynamicAttrs&&(n="_b("+n+',"'+e.tag+'",'+Ga(e.dynamicAttrs)+")"),e.wrapData&&(n=e.wrapData(n)),e.wrapListeners&&(n=e.wrapListeners(n)),n}function Ka(e){return 1===e.type&&("slot"===e.tag||e.children.some(Ka))}function Ja(e,t){var n=e.attrsMap["slot-scope"];if(e.if&&!e.ifProcessed&&!n)return Ua(e,t,Ja,"null");if(e.for&&!e.forProcessed)return za(e,t,Ja);var r=e.slotScope===ca?"":String(e.slotScope),i="function("+r+"){return "+("template"===e.tag?e.if&&n?"("+e.if+")?"+(qa(e,t)||"undefined")+":undefined":qa(e,t)||"undefined":Ra(e,t))+"}",o=r?"":",proxy:true";return"{key:"+(e.slotTarget||'"default"')+",fn:"+i+o+"}"}function qa(e,t,n,r,i){var o=e.children;if(o.length){var a=o[0];if(1===o.length&&a.for&&"template"!==a.tag&&"slot"!==a.tag){var s=n?t.maybeComponent(a)?",1":",0":"";return""+(r||Ra)(a,t)+s}var c=n?function(e,t){for(var n=0,r=0;r':'
',ts.innerHTML.indexOf(" ")>0}var os=!!z&&is(!1),as=!!z&&is(!0),ss=g(function(e){var t=Yn(e);return t&&t.innerHTML}),cs=wn.prototype.$mount;return wn.prototype.$mount=function(e,t){if((e=e&&Yn(e))===document.body||e===document.documentElement)return this;var n=this.$options;if(!n.render){var r=n.template;if(r)if("string"==typeof r)"#"===r.charAt(0)&&(r=ss(r));else{if(!r.nodeType)return this;r=r.innerHTML}else e&&(r=function(e){if(e.outerHTML)return e.outerHTML;var t=document.createElement("div");return t.appendChild(e.cloneNode(!0)),t.innerHTML}(e));if(r){var i=rs(r,{outputSourceRange:!1,shouldDecodeNewlines:os,shouldDecodeNewlinesForHref:as,delimiters:n.delimiters,comments:n.comments},this),o=i.render,a=i.staticRenderFns;n.render=o,n.staticRenderFns=a}}return cs.call(this,e,t)},wn.compile=rs,wn}); +/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./../../webpack/buildin/global.js */ "./node_modules/webpack/buildin/global.js"), __webpack_require__(/*! ./../../timers-browserify/main.js */ "./node_modules/timers-browserify/main.js").setImmediate)) + +/***/ }), + +/***/ "./node_modules/webpack/buildin/global.js": +/*!***********************************!*\ + !*** (webpack)/buildin/global.js ***! + \***********************************/ +/*! no static exports found */ +/***/ (function(module, exports) { + +var g; + +// This works in non-strict mode +g = (function() { + return this; +})(); + +try { + // This works if eval is allowed (see CSP) + g = g || new Function("return this")(); +} catch (e) { + // This works if the window reference is available + if (typeof window === "object") g = window; +} + +// g can still be undefined, but nothing to do about it... +// We return undefined, instead of nothing here, so it's +// easier to handle this case. if(!global) { ...} + +module.exports = g; + + +/***/ }) + +/******/ }); +//# sourceMappingURL=back.js.map \ No newline at end of file diff --git a/views/dist/back.js.map b/views/dist/back.js.map new file mode 100644 index 00000000..2aa67edb --- /dev/null +++ b/views/dist/back.js.map @@ -0,0 +1 @@ +{"version":3,"sources":["webpack:///webpack/bootstrap","webpack:///./_dev/back/back.scss?951c","webpack:///./_dev/back/index.js","webpack:///./node_modules/@simonwep/pickr/dist/pickr.min.js","webpack:///./node_modules/@simonwep/pickr/dist/themes/classic.min.css?4e02","webpack:///./node_modules/material-design-icons/iconfont/material-icons.css?b04c","webpack:///./_dev/back/back.scss?bb08","webpack:///./node_modules/@simonwep/pickr/dist/themes/classic.min.css?cf38","webpack:///./node_modules/material-design-icons/iconfont/material-icons.css?7b05","webpack:///./node_modules/process/browser.js","webpack:///./node_modules/setimmediate/setImmediate.js","webpack:///./node_modules/style-loader/lib/addStyles.js","webpack:///./node_modules/style-loader/lib/urls.js","webpack:///./node_modules/timers-browserify/main.js","webpack:///./node_modules/vue/dist/vue.min.js","webpack:///(webpack)/buildin/global.js"],"names":["window","Vue","$","ready","imgSelected","sortable","update","blocks","each","push","attr","ajax","type","dataType","url","psr_controller_block_url","data","action","success","showSuccessMessage","successPosition","showErrorMessage","errorPosition","document","on","e","switchIsOn","target","hasClass","status","parent","find","hide","removeClass","show","addClass","async","controller","psr_controller_block","idpsr","showNoticeMessage","block_updated","active_error","text","val","length","landscape","id","lang","position","offset","width","top","left","css","isInside","closest","isPopin","fadeOut","category","svg","outerHTML","html","psrPicto","files","jqLabel","parents","label","idPreview","reader","FileReader","onload","jqPreview","result","console","log","readAsDataURL","maxLength","valLength","substring","is","location","reload","setEnabledPSR","psr","state","pattern_for_url","pattern_for_http","test","dataToSave","blockId","imgIcon","iconSrc","iconReplaced","minimalData","index","elem","hasOwnProperty","psr_lang","min_field_error","formData","FormData","append","JSON","stringify","contentType","processData","psre_success","setTimeout","vMenu","el","selectedTabName","currentPage","methods","makeActive","item","history","pushState","moduleAdminLink","replace","isActive","selector","nextAll","savePositionByHook","hook","value","pickrComponents","preview","opacity","hue","interaction","hex","rgba","hsla","hsva","cmyk","input","clear","save","pickr1","Pickr","create","default","psr_icon_color","defaultRepresentation","closeWithKey","adjustableNumbers","components","args","pickrColor","getColor","hexaColor","toHEXA","toString","pickr2","psr_text_color","color1","color2"],"mappings":";QAAA;QACA;;QAEA;QACA;;QAEA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;;QAEA;QACA;;QAEA;QACA;;QAEA;QACA;QACA;;;QAGA;QACA;;QAEA;QACA;;QAEA;QACA;QACA;QACA,0CAA0C,gCAAgC;QAC1E;QACA;;QAEA;QACA;QACA;QACA,wDAAwD,kBAAkB;QAC1E;QACA,iDAAiD,cAAc;QAC/D;;QAEA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA,yCAAyC,iCAAiC;QAC1E,gHAAgH,mBAAmB,EAAE;QACrI;QACA;;QAEA;QACA;QACA;QACA,2BAA2B,0BAA0B,EAAE;QACvD,iCAAiC,eAAe;QAChD;QACA;QACA;;QAEA;QACA,sDAAsD,+DAA+D;;QAErH;QACA;;;QAGA;QACA;;;;;;;;;;;;;ACjFA,cAAc,mBAAO,CAAC,6TAA8J;;AAEpL,4CAA4C,QAAS;;AAErD;AACA;;;;AAIA,eAAe;;AAEf;AACA;;AAEA,aAAa,mBAAO,CAAC,sGAAmD;;AAExE;;AAEA,GAAG,KAAU,EAAE,E;;;;;;;;;;;;ACnBf;AAAA;AAA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AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA;;;;AAIA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,uBAAuB,sBAAsB;AAC7C;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,qBAAqB;AACrB;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,qCAAqC;;AAErC;AACA;AACA;;AAEA,2BAA2B;AAC3B;AACA;AACA;AACA,4BAA4B,UAAU;;;;;;;;;;;;ACvLtC;AACA;;AAEA;AACA;AACA;;AAEA,uBAAuB;AACvB;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,qBAAqB,iBAAiB;AACtC;AACA;AACA;AACA,kBAAkB;AAClB;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA;AACA,iBAAiB;AACjB;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,0CAA0C,sBAAsB,EAAE;AAClE;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,SAAS;AACT;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,yCAAyC;AACzC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA,UAAU;AACV;AACA;;AAEA,KAAK;AACL;AACA;;AAEA,KAAK;AACL;AACA;;AAEA,KAAK;AACL;AACA;;AAEA,KAAK;AACL;AACA;AACA;;AAEA;AACA;AACA,CAAC;;;;;;;;;;;;;ACzLD;AACA;AACA;AACA;;AAEA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC;;AAED;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA,8CAA8C;AAC9C;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC;;AAED;AACA;AACA;;AAEA,cAAc,mBAAO,CAAC,uDAAQ;;AAE9B;AACA;AACA;AACA;;AAEA;;AAEA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;;AAEA;;AAEA;AACA;;AAEA,iBAAiB,mBAAmB;AACpC;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA,iBAAiB,sBAAsB;AACvC;;AAEA;AACA,mBAAmB,2BAA2B;;AAE9C;AACA;AACA;AACA;AACA;;AAEA;AACA,gBAAgB,mBAAmB;AACnC;AACA;;AAEA;AACA;;AAEA,iBAAiB,2BAA2B;AAC5C;AACA;;AAEA,QAAQ,uBAAuB;AAC/B;AACA;AACA,GAAG;AACH;;AAEA,iBAAiB,uBAAuB;AACxC;AACA;;AAEA,2BAA2B;AAC3B;AACA;AACA;;AAEA;AACA;AACA;;AAEA,gBAAgB,iBAAiB;AACjC;AACA;AACA;AACA;AACA;AACA,cAAc;;AAEd,kDAAkD,sBAAsB;AACxE;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA,GAAG;AACH;AACA,GAAG;AACH;AACA;AACA;AACA,EAAE;AACF;AACA,EAAE;AACF;AACA;AACA,EAAE;AACF;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA,EAAE;AACF;;AAEA;AACA,KAAK,KAAwC,EAAE,EAE7C;;AAEF,QAAQ,sBAAiB;AACzB;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,MAAM;AACN;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;;AAEA;AACA;;AAEA,EAAE;AACF;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,EAAE;AACF;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA,GAAG;AACH;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA,CAAC;;AAED;AACA;;AAEA;AACA;AACA,EAAE;AACF;AACA;;AAEA;;AAEA;AACA;AACA,GAAG;AACH;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA,EAAE;AACF;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA,uDAAuD;AACvD;;AAEA,6BAA6B,mBAAmB;;AAEhD;;AAEA;;AAEA;AACA;;;;;;;;;;;;;AC9YA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,wCAAwC,WAAW,EAAE;AACrD,wCAAwC,WAAW,EAAE;;AAErD;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA,GAAG;AACH;AACA,sCAAsC;AACtC,GAAG;AACH;AACA,8DAA8D;AAC9D;;AAEA;AACA;AACA,EAAE;;AAEF;AACA;AACA;;;;;;;;;;;;ACxFA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;;AAEA;AACA,mBAAO,CAAC,iEAAc;AACtB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;;;;;;AC9DA;AACA;AACA;AACA;AACA;AACA,eAAe,KAAoD,oBAAoB,SAAmE,CAAC,iBAAiB,aAAa,sBAAsB,EAAE,cAAc,eAAe,cAAc,eAAe,cAAc,aAAa,cAAc,sFAAsF,cAAc,oCAAoC,gCAAgC,cAAc,oCAAoC,cAAc,4BAA4B,4CAA4C,cAAc,mEAAmE,cAAc,4FAA4F,cAAc,oBAAoB,oBAAoB,gBAAgB,iDAAiD,WAAW,eAAe,qBAAqB,0BAA0B,aAAa,aAAa,+DAA+D,gBAAgB,aAAa,mBAAmB,8BAA8B,sCAAsC,gBAAgB,mBAAmB,cAAc,0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;;ACLl52F;;AAEA;AACA;AACA;AACA,CAAC;;AAED;AACA;AACA;AACA,CAAC;AACD;AACA;AACA;;AAEA;AACA;AACA,4CAA4C;;AAE5C","file":"back.js","sourcesContent":[" \t// The module cache\n \tvar installedModules = {};\n\n \t// The require function\n \tfunction __webpack_require__(moduleId) {\n\n \t\t// Check if module is in cache\n \t\tif(installedModules[moduleId]) {\n \t\t\treturn installedModules[moduleId].exports;\n \t\t}\n \t\t// Create a new module (and put it into the cache)\n \t\tvar module = installedModules[moduleId] = {\n \t\t\ti: moduleId,\n \t\t\tl: false,\n \t\t\texports: {}\n \t\t};\n\n \t\t// Execute the module function\n \t\tmodules[moduleId].call(module.exports, module, module.exports, __webpack_require__);\n\n \t\t// Flag the module as loaded\n \t\tmodule.l = true;\n\n \t\t// Return the exports of the module\n \t\treturn module.exports;\n \t}\n\n\n \t// expose the modules object (__webpack_modules__)\n \t__webpack_require__.m = modules;\n\n \t// expose the module cache\n \t__webpack_require__.c = installedModules;\n\n \t// define getter function for harmony exports\n \t__webpack_require__.d = function(exports, name, getter) {\n \t\tif(!__webpack_require__.o(exports, name)) {\n \t\t\tObject.defineProperty(exports, name, { enumerable: true, get: getter });\n \t\t}\n \t};\n\n \t// define __esModule on exports\n \t__webpack_require__.r = function(exports) {\n \t\tif(typeof Symbol !== 'undefined' && Symbol.toStringTag) {\n \t\t\tObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n \t\t}\n \t\tObject.defineProperty(exports, '__esModule', { value: true });\n \t};\n\n \t// create a fake namespace object\n \t// mode & 1: value is a module id, require it\n \t// mode & 2: merge all properties of value into the ns\n \t// mode & 4: return value when already ns object\n \t// mode & 8|1: behave like require\n \t__webpack_require__.t = function(value, mode) {\n \t\tif(mode & 1) value = __webpack_require__(value);\n \t\tif(mode & 8) return value;\n \t\tif((mode & 4) && typeof value === 'object' && value && value.__esModule) return value;\n \t\tvar ns = Object.create(null);\n \t\t__webpack_require__.r(ns);\n \t\tObject.defineProperty(ns, 'default', { enumerable: true, value: value });\n \t\tif(mode & 2 && typeof value != 'string') for(var key in value) __webpack_require__.d(ns, key, function(key) { return value[key]; }.bind(null, key));\n \t\treturn ns;\n \t};\n\n \t// getDefaultExport function for compatibility with non-harmony modules\n \t__webpack_require__.n = function(module) {\n \t\tvar getter = module && module.__esModule ?\n \t\t\tfunction getDefault() { return module['default']; } :\n \t\t\tfunction getModuleExports() { return module; };\n \t\t__webpack_require__.d(getter, 'a', getter);\n \t\treturn getter;\n \t};\n\n \t// Object.prototype.hasOwnProperty.call\n \t__webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };\n\n \t// __webpack_public_path__\n \t__webpack_require__.p = \"\";\n\n\n \t// Load entry module and return exports\n \treturn __webpack_require__(__webpack_require__.s = \"./_dev/back/index.js\");\n","\nvar content = require(\"!!../../node_modules/mini-css-extract-plugin/dist/loader.js!../../node_modules/css-loader/dist/cjs.js!../../node_modules/sass-loader/dist/cjs.js!./back.scss\");\n\nif(typeof content === 'string') content = [[module.id, content, '']];\n\nvar transform;\nvar insertInto;\n\n\n\nvar options = {\"hmr\":true}\n\noptions.transform = transform\noptions.insertInto = undefined;\n\nvar update = require(\"!../../node_modules/style-loader/lib/addStyles.js\")(content, options);\n\nif(content.locals) module.exports = content.locals;\n\nif(module.hot) {\n\tmodule.hot.accept(\"!!../../node_modules/mini-css-extract-plugin/dist/loader.js!../../node_modules/css-loader/dist/cjs.js!../../node_modules/sass-loader/dist/cjs.js!./back.scss\", function() {\n\t\tvar newContent = require(\"!!../../node_modules/mini-css-extract-plugin/dist/loader.js!../../node_modules/css-loader/dist/cjs.js!../../node_modules/sass-loader/dist/cjs.js!./back.scss\");\n\n\t\tif(typeof newContent === 'string') newContent = [[module.id, newContent, '']];\n\n\t\tvar locals = (function(a, b) {\n\t\t\tvar key, idx = 0;\n\n\t\t\tfor(key in a) {\n\t\t\t\tif(!b || a[key] !== b[key]) return false;\n\t\t\t\tidx++;\n\t\t\t}\n\n\t\t\tfor(key in b) idx--;\n\n\t\t\treturn idx === 0;\n\t\t}(content.locals, newContent.locals));\n\n\t\tif(!locals) throw new Error('Aborting CSS HMR due to changed css-modules locals.');\n\n\t\tupdate(newContent);\n\t});\n\n\tmodule.hot.dispose(function() { update(); });\n}","/**\n * 2007-2019 PrestaShop.\n *\n * NOTICE OF LICENSE\n *\n * This source file is subject to the Academic Free License 3.0 (AFL-3.0)\n * that is bundled with this package in the file LICENSE.txt.\n * It is also available through the world-wide-web at this URL:\n * https://opensource.org/licenses/AFL-3.0\n * If you did not receive a copy of the license and are unable to\n * obtain it through the world-wide-web, please send an email\n * to license@prestashop.com so we can send you a copy immediately.\n *\n * DISCLAIMER\n *\n * Do not edit or add to this file if you wish to upgrade PrestaShop to newer\n * versions in the future. If you wish to customize PrestaShop for your\n * needs please refer to http://www.prestashop.com for more information.\n *\n * @author PrestaShop SA \n * @copyright 2007-2019 PrestaShop SA\n * @license https://opensource.org/licenses/AFL-3.0 Academic Free License 3.0 (AFL-3.0)\n * International Registered Trademark & Property of PrestaShop SA\n */\nimport Pickr from '@simonwep/pickr';\nimport Vue from 'vue/dist/vue.min';\nwindow.Vue = Vue;\n\nimport \"material-design-icons/iconfont/material-icons.css\";\nimport '@simonwep/pickr/dist/themes/classic.min.css'\nimport './back.scss';\n\n$(window).ready(function () {\n // Tab Content\n var imgSelected;\n // Tab Content : Change position\n $('.listing-body').sortable({\n update: function () {\n var blocks = [];\n $('.listing-general-rol').each(function () {\n blocks.push($(this).attr('data-block'));\n });\n\n $.ajax({\n type: 'POST',\n dataType: 'JSON',\n url: psr_controller_block_url,\n data: {\n ajax: true,\n action: 'UpdatePosition',\n blocks: blocks,\n },\n success: function (data) {\n if (data == 'success') {\n showSuccessMessage(successPosition);\n } else {\n showErrorMessage(errorPosition);\n }\n }\n });\n }\n });\n\n // Tab Content : Set active/inactive\n $(document).on('click', '.listing-row .switch-input', (e) => {\n var switchIsOn = $(e.target).hasClass('-checked');\n var status = switchIsOn ? 1 : 0;\n\n $(e.target).parent().find('.switch_text').hide();\n if (switchIsOn) {\n $('input', e.target).attr('checked', false);\n $(e.target).removeClass('-checked');\n $(e.target).parent().find('.switch-off').show();\n } else {\n $('input', e.target).attr('checked', true);\n $(e.target).addClass('-checked');\n $(e.target).parent().find('.switch-on').show();\n }\n\n $.ajax({\n url: psr_controller_block_url,\n type: 'POST',\n dataType: 'JSON',\n async: false,\n data: {\n controller: psr_controller_block,\n action: 'changeBlockStatus',\n idpsr: $(e.target).parent().attr('data-cart_psreassurance_id'),\n status: status,\n ajax: true,\n },\n success: (data) => {\n if (data === 'success') {\n showNoticeMessage(block_updated);\n } else {\n showErrorMessage(active_error);\n }\n }\n });\n });\n\n // Tab Content : Add\n $(document).on('click', '.psre-add', function () {\n $('.landscape').show();\n\n $('#reminder_listing').removeClass('active').addClass('inactive');\n $('#blockDisplay').removeClass('inactive').addClass('active');\n $('.show-rea-block').removeClass('active').addClass('inactive');\n\n $('.panel-body-0').removeClass('inactive').addClass('active');\n $('#saveContentConfiguration').attr('data-id', '');\n\n $('.limit_text:visible').text($('.show-rea-block.active .content_by_lang:visible input[type=\"text\"]').val().length);\n $('.limit_description:visible').text($('.show-rea-block.active .content_by_lang:visible textarea').val().length);\n\n var landscape = $('.panel-body-0 .psr-picto').attr('src');\n if (typeof landscape === 'undefined') {\n $('.psr-picto:visible').hide();\n $('.svg_chosed_here:visible').hide();\n $('.landscape').show();\n }\n });\n\n // Tab Content : Edit\n $(document).on('click', '.psre-edit', function () {\n $('.landscape').hide();\n\n $('#reminder_listing').removeClass('active').addClass('inactive');\n $('#blockDisplay').removeClass('inactive').addClass('active');\n $('.show-rea-block').removeClass('active').addClass('inactive');\n\n var id = $(this).data('id');\n $('.panel-body-' + id).removeClass('inactive').addClass('active');\n $('#saveContentConfiguration').attr('data-id', id);\n\n $('.limit_text:visible').text($('.show-rea-block.active .content_by_lang:visible input[type=\"text\"]').val().length);\n $('.limit_description:visible').text($('.show-rea-block.active .content_by_lang:visible textarea').val().length);\n\n var landscape = $('.panel-body-' + id + ' .psr-picto').attr('src');\n if (typeof landscape === 'undefined') {\n $('.psr-picto:visible').hide();\n $('.svg_chosed_here:visible').hide();\n $('.landscape').show();\n }\n });\n\n // Tab Content : Edit : Language\n $(document).on('change', 'select[name=\"psr-language\"]', (e) => {\n var lang = $(e.target).val();\n\n $('.content_by_lang').removeClass('active').addClass('inactive');\n $('.content_by_lang.lang-' + lang).addClass('active');\n $('.limit_text:visible').text($('.show-rea-block.active .content_by_lang:visible input[type=\"text\"]').val().length);\n $('.limit_description:visible').text($('.show-rea-block.active .content_by_lang:visible textarea').val().length);\n });\n\n // Tab Content : Edit : Modify icon\n $(document).on('click', '.modify_icon', (e) => {\n let position = $(e.target).offset();\n let offset = $(e.target).width();\n let top = position.top / 2;\n let left = position.left / 2 - offset;\n\n $('#reassurance_block')\n .show().css('top', top + 'px').css('left', left + 'px');\n });\n\n // Tab Content : Edit : Modify icon : Click outside\n $(document).on('click', 'body', (e) => {\n let isInside = $(e.target).closest('.modify_icon').length;\n let isPopin = $(e.target).closest('#reassurance_block').length;\n\n if (!isInside && !isPopin) {\n $(\"#reassurance_block\").fadeOut(300);\n }\n });\n\n // Tab Content : Edit : Modify icon : Tabs\n $(document).on('click', '#reassurance_block .category_select div img', (e) => {\n var category = $(e.target).attr('data-id');\n // Change the tab\n $('#reassurance_block .category_select div').removeClass('active');\n $(e.target).parent().addClass('active');\n // Change the tab content\n $('#reassurance_block .category_reassurance').removeClass('active');\n $('#reassurance_block .cat_' + category).addClass('active');\n });\n\n // Tab Content : Edit : Select icon\n $(document).on('click', '#reassurance_block .category_reassurance .svg', (e) => {\n var svg = $(e.target)[0].outerHTML;\n\n // Popin : select the icon\n $('#reassurance_block .category_reassurance img.svg.selected').removeClass('selected');\n $(e.target).addClass('selected');\n // Hide the initial icon\n $('.landscape').hide();\n $('.psr-picto').hide();\n // Show the image\n $('.svg_chosed_here').show();\n $('.svg_chosed_here:visible').html(svg);\n // Popin : hide it\n $('#reassurance_block').fadeOut(300);\n });\n\n // Tab Content : Edit : Select none\n $(document).on('click', '#reassurance_block .select_none', (e) => {\n var psrPicto = $('.psr-picto:visible');\n psrPicto.attr('src', 'undefined').hide();\n\n // Un-select icon in the popin\n $('#reassurance_block .category_reassurance img.svg').removeClass('selected');\n // Hide the icon seected\n $('.svg_chosed_here:visible').hide();\n // Display the landscape icon\n $('.landscape').show();\n // Hide the popin\n $('#reassurance_block').fadeOut(300);\n });\n\n // Tab Content : Edit : Custom Icon\n $(document).on('change', '.show-rea-block.active input[type=\"file\"]', function (e) {\n var files = $(this)[0].files;\n // Change the label\n var jqLabel = $(this).parents('.input-group').find('label.file_label');\n var label = jqLabel.attr('data-label');\n if (files.length === 1) {\n label = files.length + ' file selected'\n }\n jqLabel.html(label);\n\n // Preview the image\n var idPreview = $(this).attr('data-preview');\n if (files && files[0]) {\n var reader = new FileReader();\n reader.onload = function (e) {\n var jqPreview = $('.' + idPreview);\n if (jqPreview.hasClass('hide')) {\n jqPreview.removeClass('hide');\n }\n jqPreview.attr('src', e.target.result);\n console.log(e.target.result)\n };\n reader.readAsDataURL(files[0]);\n\n imgSelected = files[0];\n\n // Hide the initial icon\n $('.landscape').hide();\n $('.psr-picto').hide();\n $('.picto_by_module').hide();\n // Show the image\n $('.svg_chosed_here').show();\n }\n });\n\n // Tab Content : Edit : MaxLength\n $(document).on('keyup keydown', '.show-rea-block.active .content_by_lang input[type=\"text\"], .show-rea-block.active .content_by_lang textarea', function () {\n var maxLength = 100;\n var val = $(this).val();\n var valLength = val.length;\n if (val.length > maxLength) {\n $(this).val(val.substring(0, maxLength - 1));\n valLength = $(this).val().length;\n }\n if ($(this).is('input:text')) {\n $('.limit_text:visible').text(valLength);\n } else {\n $('.limit_description:visible').text(valLength);\n }\n });\n\n // Tab Content : Edit : Return\n $(document).on('click', '#blockDisplay .refreshPage', function () {\n location.reload();\n });\n\n // Tab Content : Edit : Redirect\n $(document).on('change', 'input[name^=\"PSR_REDIRECTION_\"]', (e) => {\n function setEnabledPSR(psr, state) {\n if (state) {\n $('.psr-' + psr).removeClass('inactive').addClass('active');\n } else {\n $('.psr-' + psr).removeClass('active').addClass('inactive');\n }\n }\n\n switch ($(e.target).val()) {\n case '0':\n setEnabledPSR('cms', false);\n setEnabledPSR('url', false);\n break;\n case '1':\n setEnabledPSR('cms', true);\n setEnabledPSR('url', false);\n break;\n case '2':\n setEnabledPSR('cms', false);\n setEnabledPSR('url', true);\n break;\n }\n });\n\n // Tab Content : Edit : Redirect : URL\n $(document).on('keyup', '.block_url:visible', (e) => {\n var url = $(e.target).val();\n var pattern_for_url = /(http(s)?:\\/\\/.)?(www\\.)?[-a-zA-Z0-9@:%._\\+~#=]{2,256}\\.[a-z]{2,6}\\b([-a-zA-Z0-9@:%_\\+.~#?&//=]*)/g;\n var pattern_for_http = /(http(s)?:\\/\\/)/g;\n\n // If it is a real URL :\n if (pattern_for_url.test(url)) {\n $(e.target).css('background', '#fff');\n if (!pattern_for_http.test(url)) {\n $(e.target).val('http://' + url);\n }\n } else {\n $(e.target).css('background', '#ffecec');\n }\n });\n\n // Tab Content : Edit : Save\n $(document).on('click', '#saveContentConfiguration', function () {\n var dataToSave = {};\n var blockId = $(this).attr('data-id');\n var imgIcon = $('.psr_picto_showing:visible img.psr-picto');\n var iconSrc = imgIcon.attr('src');\n var iconReplaced = $('.svg_chosed_here img.svg').attr('src');\n if (typeof iconReplaced !== 'undefined') {\n iconSrc = iconReplaced;\n }\n\n var minimalData = false;\n $('.show-rea-block.active .content_by_lang').each(function (index, elem) {\n var lang = $(elem).attr('data-lang');\n var type = $(elem).attr('data-type');\n if (!dataToSave.hasOwnProperty(lang)) {\n dataToSave[lang] = {};\n }\n if (!dataToSave[lang].hasOwnProperty(type)) {\n dataToSave[lang][type] = '';\n }\n if (type === 'description') {\n dataToSave[lang][type] = $('textarea', elem).val();\n } else if (typeof($('input', elem).val()) != 'undefined') {\n dataToSave[lang][type] = $('input', elem).val();\n }\n if (!minimalData && lang == psr_lang && type == 'title' && dataToSave[lang][type].length > 0) {\n minimalData = true;\n }\n });\n if (!minimalData) {\n showErrorMessage(min_field_error);\n return;\n }\n\n var formData = new FormData();\n formData.append('ajax', true);\n formData.append('action', 'SaveBlockContent');\n formData.append('file', imgSelected);\n formData.append('id_block', blockId);\n formData.append('lang_values', JSON.stringify(dataToSave));\n formData.append('picto', iconSrc);\n formData.append('typelink', $('input[name=\"PSR_REDIRECTION_' + blockId + '\"]:checked').val());\n formData.append('id_cms', $('select[name=\"ID_CMS_' + blockId + '\"]').val());\n\n $.ajax({\n type: 'POST',\n dataType: 'JSON',\n url: psr_controller_block_url,\n contentType: false,\n processData: false,\n data: formData,\n success: function (data) {\n showSuccessMessage(psre_success);\n setTimeout(location.reload(), 1800);\n }\n });\n });\n\n // Tab Display\n var vMenu = new Vue({\n el: '#menu',\n data: {\n selectedTabName: currentPage,\n },\n methods: {\n makeActive: function (item) {\n this.selectedTabName = item;\n window.history.pushState({}, '', moduleAdminLink.replace(/\\amp;/g, '') + '&page=' + item);\n },\n isActive: function (item) {\n if (this.selectedTabName !== item) {\n return false;\n }\n $('.psr_menu').addClass('addons-hide');\n $('.psr_menu#' + item).removeClass('addons-hide');\n\n return true;\n }\n }\n });\n\n // Tab Display : Save Position\n $(document).on('change', 'input[name=\"PSR_HOOK_CHECKOUT\"],input[name=\"PSR_HOOK_HEADER\"],input[name=\"PSR_HOOK_FOOTER\"],input[name=\"PSR_HOOK_PRODUCT\"]', function () {\n var selector = '';\n switch ($(this).attr('name')) {\n case 'PSR_HOOK_CHECKOUT':\n selector = 'checkout';\n break;\n case 'PSR_HOOK_HEADER':\n selector = 'header';\n break;\n case 'PSR_HOOK_FOOTER':\n selector = 'footer';\n break;\n case 'PSR_HOOK_PRODUCT':\n selector = 'product';\n break;\n }\n\n $('.psr-' + selector + '-grey').addClass('active');\n $('.psr-' + selector + '-color').removeClass('active');\n\n $(this).nextAll('.psr-' + selector + '-grey').removeClass('active');\n $(this).nextAll('.psr-' + selector + '-color').addClass('active');\n savePositionByHook($(this).attr('name'), $(this).val());\n });\n function savePositionByHook(hook, value) {\n $.ajax({\n type: 'POST',\n dataType: 'JSON',\n url: psr_controller_block_url,\n data: {\n ajax: true,\n action: 'SavePositionByHook',\n hook: hook,\n value: value,\n },\n success: function (data) {\n if (data === 'success') {\n showSuccessMessage(successPosition);\n } else {\n showErrorMessage(errorPosition);\n }\n }\n });\n }\n\n // Tab Appearance\n var pickrComponents = {\n // Main components\n preview: true,\n opacity: false,\n hue: true,\n\n // Input / output Options\n interaction: {\n hex: false,\n rgba: false,\n hsla: false,\n hsva: false,\n cmyk: false,\n input: true,\n clear: false,\n save: true\n }\n };\n var pickr1 = Pickr.create({\n el: '.ps_colorpicker1',\n default: psr_icon_color,\n defaultRepresentation: 'HEX',\n closeWithKey: 'Escape',\n adjustableNumbers: true,\n components: pickrComponents\n });\n pickr1.on('change', (...args) => {\n let pickrColor = pickr1.getColor();\n let hexaColor = pickrColor.toHEXA().toString();\n $('.psr_icon_color').val(hexaColor);\n });\n\n var pickr2 = Pickr.create({\n el: '.ps_colorpicker2',\n default: psr_text_color,\n defaultRepresentation: 'HEX',\n closeWithKey: 'Escape',\n adjustableNumbers: true,\n components: pickrComponents\n });\n pickr2.on('change', (...args) => {\n let pickrColor = pickr2.getColor();\n let hexaColor = pickrColor.toHEXA().toString();\n $('.psr_text_color').val(hexaColor);\n });\n\n // Tab Appearance : Save Color\n $(document).on('click', '#saveConfiguration', function () {\n var color1 = $('#color_1').val();\n var color2 = $('#color_2').val()\n $.ajax({\n type: 'POST',\n dataType: 'JSON',\n url: psr_controller_block_url,\n data: {\n ajax: true,\n action: 'SaveColor',\n color1: color1,\n color2: color2,\n },\n success: function (data) {\n if (data === 'success') {\n showSuccessMessage(psre_success);\n } else {\n showErrorMessage(active_error);\n }\n }\n });\n });\n});\n\n","/*! Pickr 1.4.6 MIT | https://github.com/Simonwep/pickr */\n!function(t,e){\"object\"==typeof exports&&\"object\"==typeof module?module.exports=e():\"function\"==typeof define&&define.amd?define([],e):\"object\"==typeof exports?exports.Pickr=e():t.Pickr=e()}(window,function(){return function(t){var e={};function o(n){if(e[n])return e[n].exports;var i=e[n]={i:n,l:!1,exports:{}};return t[n].call(i.exports,i,i.exports,o),i.l=!0,i.exports}return o.m=t,o.c=e,o.d=function(t,e,n){o.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:n})},o.r=function(t){\"undefined\"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:\"Module\"}),Object.defineProperty(t,\"__esModule\",{value:!0})},o.t=function(t,e){if(1&e&&(t=o(t)),8&e)return t;if(4&e&&\"object\"==typeof t&&t&&t.__esModule)return t;var n=Object.create(null);if(o.r(n),Object.defineProperty(n,\"default\",{enumerable:!0,value:t}),2&e&&\"string\"!=typeof t)for(var i in t)o.d(n,i,function(e){return t[e]}.bind(null,i));return n},o.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return o.d(e,\"a\",e),e},o.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},o.p=\"\",o(o.s=1)}([function(t){t.exports=JSON.parse('{\"a\":\"1.4.6\"}')},function(t,e,o){\"use strict\";o.r(e);var n={};function i(t,e){var o=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),o.push.apply(o,n)}return o}function r(t){for(var e=1;e>/g).reduce((t,e,o,n)=>(t=t.querySelector(e),ot)){function o(o){const n=[.001,.01,.1][Number(o.shiftKey||2*o.ctrlKey)]*(o.deltaY<0?1:-1);let i=0,r=t.selectionStart;t.value=t.value.replace(/[\\d.]+/g,(t,o)=>o<=r&&o+t.length>=r?(r=o,e(Number(t),n,i)):(i++,t)),t.focus(),t.setSelectionRange(r,r),o.preventDefault(),t.dispatchEvent(new Event(\"input\"))}c(t,\"focus\",()=>c(window,\"wheel\",o,{passive:!1})),c(t,\"blur\",()=>a(window,\"wheel\",o))}var v=o(0);const{min:b,max:g,floor:y,round:_}=Math;function w(t,e,o){e/=100,o/=100;const n=y(t=t/360*6),i=t-n,r=o*(1-e),s=o*(1-i*e),c=o*(1-(1-i)*e),a=n%6;return[255*[o,s,r,r,c,o][a],255*[c,o,o,s,r,r][a],255*[r,r,c,o,o,s][a]]}function C(t,e,o){const n=(2-(e/=100))*(o/=100)/2;return 0!==n&&(e=1===n?0:n<.5?e*o/(2*n):e*o/(2-2*n)),[t,100*e,100*n]}function A(t,e,o){let n,i,r;const s=b(t/=255,e/=255,o/=255),c=g(t,e,o),a=c-s;if(0===a)n=i=0;else{i=a/c;const r=((c-t)/6+a/2)/a,s=((c-e)/6+a/2)/a,l=((c-o)/6+a/2)/a;t===c?n=l-s:e===c?n=1/3+r-l:o===c&&(n=2/3+s-r),n<0?n+=1:n>1&&(n-=1)}return[360*n,100*i,100*(r=c)]}function k(t,e,o,n){return e/=100,o/=100,[...A(255*(1-b(1,(t/=100)*(1-(n/=100))+n)),255*(1-b(1,e*(1-n)+n)),255*(1-b(1,o*(1-n)+n)))]}function S(t,e,o){return e/=100,[t,2*(e*=(o/=100)<.5?o:1-o)/(o+e)*100,100*(o+e)]}function O(t){return A(...t.match(/.{2}/g).map(t=>parseInt(t,16)))}function j(t){t=t.match(/^[a-zA-Z]+$/)?function(t){if(\"black\"===t.toLowerCase())return\"#000\";const e=document.createElement(\"canvas\").getContext(\"2d\");return e.fillStyle=t,\"#000\"===e.fillStyle?null:e.fillStyle}(t):t;const e={cmyk:/^cmyk[\\D]+([\\d.]+)[\\D]+([\\d.]+)[\\D]+([\\d.]+)[\\D]+([\\d.]+)/i,rgba:/^((rgba)|rgb)[\\D]+([\\d.]+)[\\D]+([\\d.]+)[\\D]+([\\d.]+)[\\D]*?([\\d.]+|$)/i,hsla:/^((hsla)|hsl)[\\D]+([\\d.]+)[\\D]+([\\d.]+)[\\D]+([\\d.]+)[\\D]*?([\\d.]+|$)/i,hsva:/^((hsva)|hsv)[\\D]+([\\d.]+)[\\D]+([\\d.]+)[\\D]+([\\d.]+)[\\D]*?([\\d.]+|$)/i,hexa:/^#?(([\\dA-Fa-f]{3,4})|([\\dA-Fa-f]{6})|([\\dA-Fa-f]{8}))$/i},o=t=>t.map(t=>/^(|\\d+)\\.\\d+|\\d+$/.test(t)?Number(t):void 0);let n;t:for(const i in e){if(!(n=e[i].exec(t)))continue;const r=t=>!!n[2]==(\"number\"==typeof t);switch(i){case\"cmyk\":{const[,t,e,r,s]=o(n);if(t>100||e>100||r>100||s>100)break t;return{values:k(t,e,r,s),type:i}}case\"rgba\":{const[,,,t,e,s,c]=o(n);if(t>255||e>255||s>255||c<0||c>1||!r(c))break t;return{values:[...A(t,e,s),c],a:c,type:i}}case\"hexa\":{let[,t]=n;4!==t.length&&3!==t.length||(t=t.split(\"\").map(t=>t+t).join(\"\"));const e=t.substring(0,6);let o=t.substring(6);return o=o?parseInt(o,16)/255:void 0,{values:[...O(e),o],a:o,type:i}}case\"hsla\":{const[,,,t,e,s,c]=o(n);if(t>360||e>100||s>100||c<0||c>1||!r(c))break t;return{values:[...S(t,e,s),c],a:c,type:i}}case\"hsva\":{const[,,,t,e,s,c]=o(n);if(t>360||e>100||s>100||c<0||c>1||!r(c))break t;return{values:[t,e,s,c],a:c,type:i}}}}return{values:null,type:null}}function x(t=0,e=0,o=0,n=1){const i=(t,e)=>(o=-1)=>e(~o?t.map(t=>Number(t.toFixed(o))):t),r={h:t,s:e,v:o,a:n,toHSVA(){const t=[r.h,r.s,r.v,r.a];return t.toString=i(t,t=>\"hsva(\".concat(t[0],\", \").concat(t[1],\"%, \").concat(t[2],\"%, \").concat(r.a,\")\")),t},toHSLA(){const t=[...C(r.h,r.s,r.v),r.a];return t.toString=i(t,t=>\"hsla(\".concat(t[0],\", \").concat(t[1],\"%, \").concat(t[2],\"%, \").concat(r.a,\")\")),t},toRGBA(){const t=[...w(r.h,r.s,r.v),r.a];return t.toString=i(t,t=>\"rgba(\".concat(t[0],\", \").concat(t[1],\", \").concat(t[2],\", \").concat(r.a,\")\")),t},toCMYK(){const t=function(t,e,o){const n=w(t,e,o),i=n[0]/255,r=n[1]/255,s=n[2]/255;let c,a,l,p;return[100*(a=1===(c=b(1-i,1-r,1-s))?0:(1-i-c)/(1-c)),100*(l=1===c?0:(1-r-c)/(1-c)),100*(p=1===c?0:(1-s-c)/(1-c)),100*c]}(r.h,r.s,r.v);return t.toString=i(t,t=>\"cmyk(\".concat(t[0],\"%, \").concat(t[1],\"%, \").concat(t[2],\"%, \").concat(t[3],\"%)\")),t},toHEXA(){const t=function(t,e,o){return w(t,e,o).map(t=>_(t).toString(16).padStart(2,\"0\"))}(r.h,r.s,r.v),e=r.a>=1?\"\":Number((255*r.a).toFixed(0)).toString(16).toUpperCase().padStart(2,\"0\");return e&&t.push(e),t.toString=()=>\"#\".concat(t.join(\"\").toUpperCase()),t},clone:()=>x(r.h,r.s,r.v,r.a)};return r}const E=t=>Math.max(Math.min(t,1),0);function L(t){const e={options:Object.assign({lock:null,onchange:()=>0,onstop:()=>0},t),_keyboard(t){const{type:n,key:i}=t;if(document.activeElement===o.wrapper){const{lock:o}=e.options,r=\"ArrowUp\"===i,s=\"ArrowRight\"===i,c=\"ArrowDown\"===i,a=\"ArrowLeft\"===i;if(\"keydown\"===n&&(r||s||c||a)){let t=0,n=0;\"v\"===o?t=r||s?1:-1:\"h\"===o?t=r||s?-1:1:(n=r?-1:c?1:0,t=a?-1:s?1:0),e.update(E(e.cache.x+.01*t),E(e.cache.y+.01*n))}else i.startsWith(\"Arrow\")&&(e.options.onstop(),t.preventDefault())}},_tapstart(t){c(document,[\"mouseup\",\"touchend\",\"touchcancel\"],e._tapstop),c(document,[\"mousemove\",\"touchmove\"],e._tapmove),t.preventDefault(),e._tapmove(t)},_tapmove(t){const{options:{lock:n},cache:i}=e,{element:r,wrapper:s}=o,c=s.getBoundingClientRect();let a=0,l=0;if(t){const e=t&&t.touches&&t.touches[0];a=t?(e||t).clientX:0,l=t?(e||t).clientY:0,ac.left+c.width&&(a=c.left+c.width),lc.top+c.height&&(l=c.top+c.height),a-=c.left,l-=c.top}else i&&(a=i.x*c.width,l=i.y*c.height);\"h\"!==n&&(r.style.left=\"calc(\".concat(a/c.width*100,\"% - \").concat(r.offsetWidth/2,\"px)\")),\"v\"!==n&&(r.style.top=\"calc(\".concat(l/c.height*100,\"% - \").concat(r.offsetHeight/2,\"px)\")),e.cache={x:a/c.width,y:l/c.height};const p=E(a/s.offsetWidth),u=E(l/s.offsetHeight);switch(n){case\"v\":return o.onchange(p);case\"h\":return o.onchange(u);default:return o.onchange(p,u)}},_tapstop(){e.options.onstop(),a(document,[\"mouseup\",\"touchend\",\"touchcancel\"],e._tapstop),a(document,[\"mousemove\",\"touchmove\"],e._tapmove)},trigger(){e._tapmove()},update(t=0,o=0){const{left:n,top:i,width:r,height:s}=e.options.wrapper.getBoundingClientRect();\"h\"===e.options.lock&&(o=t),e._tapmove({clientX:n+r*t,clientY:i+s*o})},destroy(){const{options:t,_tapstart:o}=e;a([t.wrapper,t.element],\"mousedown\",o),a([t.wrapper,t.element],\"touchstart\",o,{passive:!1})}},{options:o,_tapstart:n,_keyboard:i}=e;return c([o.wrapper,o.element],\"mousedown\",n),c([o.wrapper,o.element],\"touchstart\",n,{passive:!1}),c(document,[\"keydown\",\"keyup\"],i),e}function P(t={}){t=Object.assign({onchange:()=>0,className:\"\",elements:[]},t);const e=c(t.elements,\"click\",e=>{t.elements.forEach(o=>o.classList[e.target===o?\"add\":\"remove\"](t.className)),t.onchange(e)});return{destroy:()=>a(...e)}}function B({el:t,reference:e,padding:o=8}){const n={start:\"sme\",middle:\"mse\",end:\"ems\"},i={top:\"tbrl\",right:\"rltb\",bottom:\"btrl\",left:\"lrbt\"},r=((t={})=>(e,o=t[e])=>{if(o)return o;const[n,i=\"middle\"]=e.split(\"-\"),r=\"top\"===n||\"bottom\"===n;return t[e]={position:n,variant:i,isVertical:r}})();return{update(s){const{position:c,variant:a,isVertical:l}=r(s),p=e.getBoundingClientRect(),u=t.getBoundingClientRect(),h=t=>t?{t:p.top-u.height-o,b:p.bottom+o}:{r:p.right+o,l:p.left-u.width-o},d=t=>t?{s:p.left+p.width-u.width,m:-u.width/2+(p.left+p.width/2),e:p.left}:{s:p.bottom-u.height,m:p.bottom-p.height/2-u.height/2,e:p.bottom-p.height},f={};function m(e,o,n){const i=\"top\"===n,r=i?u.height:u.width,s=window[i?\"innerHeight\":\"innerWidth\"];for(const i of e){const e=o[i],c=f[n]=\"\".concat(e,\"px\");if(e>0&&e+r{const c=t=>t?\"\":'style=\"display:none\" hidden',a=h('\\n
\\n\\n '.concat(o?\"\":'','\\n\\n
\\n
\\n
\\n \\n
\\n
\\n\\n
\\n
\\n
\\n
\\n\\n
\\n
\\n
\\n
\\n\\n
\\n
\\n
\\n
\\n
\\n\\n
\\n\\n
\\n \\n\\n \\n \\n \\n \\n \\n\\n \\n \\n \\n
\\n
\\n
\\n ')),l=a.interaction;return l.options.find(t=>!t.hidden&&!t.classList.add(\"active\")),l.type=()=>l.options.find(t=>t.classList.contains(\"active\")),a};function H(t,e,o){return e in t?Object.defineProperty(t,e,{value:o,enumerable:!0,configurable:!0,writable:!0}):t[e]=o,t}class D{constructor(t){H(this,\"_initializingActive\",!0),H(this,\"_recalc\",!0),H(this,\"_color\",x()),H(this,\"_lastColor\",x()),H(this,\"_swatchColors\",[]),H(this,\"_eventListener\",{init:[],save:[],hide:[],show:[],clear:[],change:[],changestop:[],cancel:[],swatchselect:[]}),this.options=t=Object.assign({appClass:null,theme:\"classic\",useAsButton:!1,padding:8,disabled:!1,comparison:!0,closeOnScroll:!1,outputPrecision:0,lockOpacity:!1,autoReposition:!0,container:\"body\",components:{interaction:{}},strings:{},swatches:null,inline:!1,sliders:null,default:\"#42445a\",defaultRepresentation:null,position:\"bottom-middle\",adjustableNumbers:!0,showAlways:!1,closeWithKey:\"Escape\"},t);const{swatches:e,components:o,theme:n,sliders:i,lockOpacity:r,padding:s}=t;[\"nano\",\"monolith\"].includes(n)&&!i&&(t.sliders=\"h\"),o.interaction||(o.interaction={});const{preview:c,opacity:a,hue:l,palette:p}=o;o.opacity=!r&&a,o.palette=p||c||a||l,this._preBuild(),this._buildComponents(),this._bindEvents(),this._finalBuild(),e&&e.length&&e.forEach(t=>this.addSwatch(t));const{button:u,app:h}=this._root;this._nanopop=B({reference:u,padding:s,el:h}),u.setAttribute(\"role\",\"button\"),u.setAttribute(\"aria-label\",\"toggle color picker dialog\");const d=this;requestAnimationFrame(function e(){if(!h.offsetWidth&&h.parentElement!==t.container)return requestAnimationFrame(e);d.setColor(t.default),d._rePositioningPicker(),t.defaultRepresentation&&(d._representation=t.defaultRepresentation,d.setColorRepresentation(d._representation)),t.showAlways&&d.show(),d._initializingActive=!1,d._emit(\"init\")})}_preBuild(){const t=this.options;for(const e of[\"el\",\"container\"])t[e]=f(t[e]);this._root=R(t),t.useAsButton&&(this._root.button=t.el),t.container.appendChild(this._root.root)}_finalBuild(){const t=this.options,e=this._root;if(t.container.removeChild(e.root),t.inline){const o=t.el.parentElement;t.el.nextSibling?o.insertBefore(e.app,t.el.nextSibling):o.appendChild(e.app)}else t.container.appendChild(e.app);t.useAsButton?t.inline&&t.el.remove():t.el.parentNode.replaceChild(e.root,t.el),t.disabled&&this.disable(),t.comparison||(e.button.style.transition=\"none\",t.useAsButton||(e.preview.lastColor.style.transition=\"none\")),this.hide()}_buildComponents(){const t=this,e=this.options.components,o=(t.options.sliders||\"v\").repeat(2),[n,i]=o.match(/^[vh]+$/g)?o:[],r=()=>this._color||(this._color=this._lastColor.clone()),s={palette:L({element:t._root.palette.picker,wrapper:t._root.palette.palette,onstop:()=>t._emit(\"changestop\",t),onchange(o,n){if(!e.palette)return;const i=r(),{_root:s,options:c}=t;t._recalc&&(i.s=100*o,i.v=100-100*n,i.v<0&&(i.v=0),t._updateOutput());const a=i.toRGBA().toString(0);this.element.style.background=a,this.wrapper.style.background=\"\\n linear-gradient(to top, rgba(0, 0, 0, \".concat(i.a,\"), transparent),\\n linear-gradient(to left, hsla(\").concat(i.h,\", 100%, 50%, \").concat(i.a,\"), rgba(255, 255, 255, \").concat(i.a,\"))\\n \"),c.comparison?c.useAsButton||t._lastColor||(s.preview.lastColor.style.color=a):s.button.style.color=a;const l=i.toHEXA().toString();for(const e of t._swatchColors){const{el:t,color:o}=e;t.classList[l===o.toHEXA().toString()?\"add\":\"remove\"](\"pcr-active\")}s.preview.currentColor.style.color=a,t.options.comparison||s.button.classList.remove(\"clear\")}}),hue:L({lock:\"v\"===i?\"h\":\"v\",element:t._root.hue.picker,wrapper:t._root.hue.slider,onstop:()=>t._emit(\"changestop\",t),onchange(o){if(!e.hue||!e.palette)return;const n=r();t._recalc&&(n.h=360*o),this.element.style.backgroundColor=\"hsl(\".concat(n.h,\", 100%, 50%)\"),s.palette.trigger()}}),opacity:L({lock:\"v\"===n?\"h\":\"v\",element:t._root.opacity.picker,wrapper:t._root.opacity.slider,onstop:()=>t._emit(\"changestop\",t),onchange(o){if(!e.opacity||!e.palette)return;const n=r();t._recalc&&(n.a=Math.round(100*o)/100),this.element.style.background=\"rgba(0, 0, 0, \".concat(n.a,\")\"),s.palette.trigger()}}),selectable:P({elements:t._root.interaction.options,className:\"active\",onchange(e){t._representation=e.target.getAttribute(\"data-type\").toUpperCase(),t._recalc&&t._updateOutput()}})};this._components=s}_bindEvents(){const{_root:t,options:e}=this,o=[c(t.interaction.clear,\"click\",()=>this._clearColor()),c([t.interaction.cancel,t.preview.lastColor],\"click\",()=>{this._emit(\"cancel\",this),this.setHSVA(...(this._lastColor||this._color).toHSVA(),!0)}),c(t.interaction.save,\"click\",()=>{!this.applyColor()&&!e.showAlways&&this.hide()}),c(t.interaction.result,[\"keyup\",\"input\"],t=>{this.setColor(t.target.value,!0)&&!this._initializingActive&&this._emit(\"change\",this._color),t.stopImmediatePropagation()}),c(t.interaction.result,[\"focus\",\"blur\"],t=>{this._recalc=\"blur\"===t.type,this._recalc&&this._updateOutput()}),c([t.palette.palette,t.palette.picker,t.hue.slider,t.hue.picker,t.opacity.slider,t.opacity.picker],[\"mousedown\",\"touchstart\"],()=>this._recalc=!0)];if(!e.showAlways){const n=e.closeWithKey;o.push(c(t.button,\"click\",()=>this.isOpen()?this.hide():this.show()),c(document,\"keyup\",t=>this.isOpen()&&(t.key===n||t.code===n)&&this.hide()),c(document,[\"touchstart\",\"mousedown\"],e=>{this.isOpen()&&!d(e).some(e=>e===t.app||e===t.button)&&this.hide()},{capture:!0}))}if(e.adjustableNumbers){const e={rgba:[255,255,255,1],hsva:[360,100,100,1],hsla:[360,100,100,1],cmyk:[100,100,100,100]};m(t.interaction.result,(t,o,n)=>{const i=e[this.getColorRepresentation().toLowerCase()];if(i){const e=i[n],r=t+(e>=100?1e3*o:o);return r<=0?0:Number((r{n.isOpen()&&(e.closeOnScroll&&n.hide(),null===t?(t=setTimeout(()=>t=null,100),requestAnimationFrame(function e(){n._rePositioningPicker(),null!==t&&requestAnimationFrame(e)})):(clearTimeout(t),t=setTimeout(()=>t=null,100)))},{capture:!0}))}this._eventBindings=o}_rePositioningPicker(){const{options:t}=this;if(!t.inline){const{app:e}=this._root;matchMedia(\"(max-width: 576px)\").matches?Object.assign(e.style,{margin:\"auto\",height:\"\".concat(e.getBoundingClientRect().height,\"px\"),top:0,bottom:0,left:0,right:0}):(Object.assign(e.style,{margin:null,right:null,top:null,bottom:null,left:null,height:null}),this._nanopop.update(t.position))}}_updateOutput(){const{_root:t,_color:e,options:o}=this;if(t.interaction.type()){const n=\"to\".concat(t.interaction.type().getAttribute(\"data-type\"));t.interaction.result.value=\"function\"==typeof e[n]?e[n]().toString(o.outputPrecision):\"\"}!this._initializingActive&&this._recalc&&this._emit(\"change\",e)}_clearColor(t=!1){const{_root:e,options:o}=this;o.useAsButton||(e.button.style.color=\"rgba(0, 0, 0, 0.15)\"),e.button.classList.add(\"clear\"),o.showAlways||this.hide(),this._lastColor=null,this._initializingActive||t||(this._emit(\"save\",null),this._emit(\"clear\",this))}_parseLocalColor(t){const{values:e,type:o,a:n}=j(t),{lockOpacity:i}=this.options,r=void 0!==n&&1!==n;return e&&3===e.length&&(e[3]=void 0),{values:!e||i&&r?null:e,type:o}}_emit(t,...e){this._eventListener[t].forEach(t=>t(...e,this))}on(t,e){return\"function\"==typeof e&&\"string\"==typeof t&&t in this._eventListener&&this._eventListener[t].push(e),this}off(t,e){const o=this._eventListener[t];if(o){const t=o.indexOf(e);~t&&o.splice(t,1)}return this}addSwatch(t){const{values:e}=this._parseLocalColor(t);if(e){const{_swatchColors:t,_root:o}=this,n=x(...e),i=p('