From 4ffdd0cf475ac1d3d9de7f7fda6df591665be45a Mon Sep 17 00:00:00 2001 From: leemyong pakvn Date: Fri, 13 Jan 2023 16:27:59 +0700 Subject: [PATCH 01/49] recommit after rebase --- .eslintrc.js | 1 + _dev/back/blocklayered.scss | 3 +++ _dev/back/index.js | 17 ++++++++++++++--- ps_facetedsearch.php | 8 ++++++-- views/dist/back.css | 2 +- views/dist/back.css.map | 2 +- views/dist/back.js | 3 ++- views/dist/back.js.LICENSE.txt | 18 ++++++++++++++++++ views/dist/back.js.map | 2 +- views/dist/front.js | 2 +- views/dist/front.js.map | 2 +- views/templates/admin/add.tpl | 2 +- views/templates/admin/view.tpl | 2 +- 13 files changed, 51 insertions(+), 13 deletions(-) create mode 100644 views/dist/back.js.LICENSE.txt diff --git a/.eslintrc.js b/.eslintrc.js index b66136cbb..fa3684cf5 100644 --- a/.eslintrc.js +++ b/.eslintrc.js @@ -21,6 +21,7 @@ module.exports = { filters: true, prestashop: true, translations: true, + Sortable: true, }, rules: { 'no-new': 0, diff --git a/_dev/back/blocklayered.scss b/_dev/back/blocklayered.scss index ee3ce3093..a22cfcb69 100644 --- a/_dev/back/blocklayered.scss +++ b/_dev/back/blocklayered.scss @@ -54,3 +54,6 @@ } } } +.sortable-ghost { + color: orange; +} diff --git a/_dev/back/index.js b/_dev/back/index.js index 44306777c..ef4f4e009 100644 --- a/_dev/back/index.js +++ b/_dev/back/index.js @@ -192,9 +192,20 @@ $(document).ready(() => { $('#full-index').click(); } - $('.sortable').sortable({ - forcePlaceholderSize: true, - }); + if (typeof Sortable !== 'undefined') { + const listFilters = document.getElementById('list-filters'); + + if (listFilters !== null) { + new Sortable(listFilters, { + animation: 150, + ghostClass: 'sortable-ghost', + }); + } + } else { + $('.sortable').sortable({ + forcePlaceholderSize: true, + }); + } $('.filter_list_item input[type=checkbox]').click(function onFilterLickItemCheckboxesClicked() { const currentSelectedFiltersCount = parseInt($('#selected_filters').html(), 10); diff --git a/ps_facetedsearch.php b/ps_facetedsearch.php index 4a8b753ed..2d8f6ae09 100644 --- a/ps_facetedsearch.php +++ b/ps_facetedsearch.php @@ -729,8 +729,12 @@ public function getContent() $this->context->smarty->assign('uri', $this->getPathUri()); // Assign assets - if (method_exists($this->context->controller, 'addJquery')) { - $this->context->controller->addJS(_PS_JS_DIR_ . 'jquery/plugins/jquery.sortable.js'); + if (file_exists(_PS_ROOT_DIR_ . _PS_JS_DIR_ . 'vendor/Sortable.min.js')) { + $this->context->controller->addJS(_PS_JS_DIR_ . 'vendor/Sortable.min.js'); + } else { + if (method_exists($this->context->controller, 'addJquery')) { + $this->context->controller->addJS(_PS_JS_DIR_ . 'jquery/plugins/jquery.sortable.js'); + } } $this->context->controller->addJS($this->_path . 'views/dist/back.js'); $this->context->controller->addCSS($this->_path . 'views/dist/back.css'); diff --git a/views/dist/back.css b/views/dist/back.css index 44afa703c..46e6306fe 100644 --- a/views/dist/back.css +++ b/views/dist/back.css @@ -1,4 +1,4 @@ -.bootstrap .filter_list .filter_list_item{display:table;width:100%;padding:5px 0;margin-bottom:4px;background-color:white;-webkit-box-shadow:rgba(0,0,0,0.3) 0 0 3px,rgba(0,0,0,0.1) 0 -2px 0 inset;box-shadow:rgba(0,0,0,0.3) 0 0 3px,rgba(0,0,0,0.1) 0 -2px 0 inset;-webkit-border-radius:3px;-moz-border-radius:3px;-ms-border-radius:3px;-o-border-radius:3px;border-radius:3px;cursor:pointer}.bootstrap .filter_panel{min-height:20px;padding:7px 7px 0px 7px;margin-bottom:20px;background-color:#ebebeb;border:1px solid #d9d9d9;border-radius:3px;-webkit-box-shadow:inset 0 1px 1px rgba(0,0,0,0.05);box-shadow:inset 0 1px 1px rgba(0,0,0,0.05)}.bootstrap .filter_panel header{margin-bottom:7px}.bootstrap .prestashop-switch span{display:none} +.bootstrap .filter_list .filter_list_item{display:table;width:100%;padding:5px 0;margin-bottom:4px;background-color:white;-webkit-box-shadow:rgba(0,0,0,0.3) 0 0 3px,rgba(0,0,0,0.1) 0 -2px 0 inset;box-shadow:rgba(0,0,0,0.3) 0 0 3px,rgba(0,0,0,0.1) 0 -2px 0 inset;-webkit-border-radius:3px;-moz-border-radius:3px;-ms-border-radius:3px;-o-border-radius:3px;border-radius:3px;cursor:pointer}.bootstrap .filter_panel{min-height:20px;padding:7px 7px 0px 7px;margin-bottom:20px;background-color:#ebebeb;border:1px solid #d9d9d9;border-radius:3px;-webkit-box-shadow:inset 0 1px 1px rgba(0,0,0,0.05);box-shadow:inset 0 1px 1px rgba(0,0,0,0.05)}.bootstrap .filter_panel header{margin-bottom:7px}.bootstrap .prestashop-switch span{display:none}.sortable-ghost{color:orange} /*# sourceMappingURL=back.css.map*/ \ No newline at end of file diff --git a/views/dist/back.css.map b/views/dist/back.css.map index bb51def6a..4ea2c3f92 100644 --- a/views/dist/back.css.map +++ b/views/dist/back.css.map @@ -1 +1 @@ -{"version":3,"file":"back.css","mappings":"AAkBA,0CAEG,aAAc,CACd,UAAW,CACX,aAAc,CACd,iBAAkB,CAClB,sBAAuB,CACvB,yEAAiF,CACjF,iEAAyE,CACzE,yBAA0B,CAC1B,sBAAuB,CACvB,qBAAsB,CACtB,oBAAqB,CACrB,iBAAkB,CACjB,cAAe,CAdnB,yBAkBG,eAAgB,CAChB,uBAAwB,CACxB,kBAAmB,CACnB,wBAAyB,CACzB,wBAAyB,CACzB,iBAAkB,CAClB,mDAAuD,CACvD,2CAA+C,CAzBlD,gCA4BK,iBAAkB,CA5BvB,mCAkCM,YAAa","sources":["webpack://ps_facetedsearch/./_dev/back/blocklayered.scss"],"sourcesContent":["/**\n * Copyright since 2007 PrestaShop SA and Contributors\n * PrestaShop is an International Registered Trademark & Property of PrestaShop SA\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.md.\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 * @author PrestaShop SA \n * @copyright Since 2007 PrestaShop SA and Contributors\n * @license https://opensource.org/licenses/AFL-3.0 Academic Free License 3.0 (AFL-3.0)\n */\n.bootstrap {\n .filter_list .filter_list_item {\n\t display: table;\n\t width: 100%;\n\t padding: 5px 0;\n\t margin-bottom: 4px;\n\t background-color: white;\n\t -webkit-box-shadow: rgba(0, 0, 0, 0.3) 0 0 3px, rgba(0, 0, 0, 0.1) 0 -2px 0 inset;\n\t box-shadow: rgba(0, 0, 0, 0.3) 0 0 3px, rgba(0, 0, 0, 0.1) 0 -2px 0 inset;\n\t -webkit-border-radius: 3px;\n\t -moz-border-radius: 3px;\n\t -ms-border-radius: 3px;\n\t -o-border-radius: 3px;\n\t border-radius: 3px;\n cursor: pointer;\n }\n\n .filter_panel {\n\t min-height: 20px;\n\t padding: 7px 7px 0px 7px;\n\t margin-bottom: 20px;\n\t background-color: #ebebeb;\n\t border: 1px solid #d9d9d9;\n\t border-radius: 3px;\n\t -webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.05);\n\t box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.05);\n\n header {\n\t margin-bottom: 7px;\n }\n }\n\n .prestashop-switch {\n span {\n display: none;\n }\n }\n}\n"],"names":[],"sourceRoot":""} \ No newline at end of file +{"version":3,"file":"back.css","mappings":"AAkBA,0CAEG,aAAc,CACd,UAAW,CACX,aAAc,CACd,iBAAkB,CAClB,sBAAuB,CACvB,yEAAiF,CACjF,iEAAyE,CACzE,yBAA0B,CAC1B,sBAAuB,CACvB,qBAAsB,CACtB,oBAAqB,CACrB,iBAAkB,CACjB,cAAe,CAdnB,yBAkBG,eAAgB,CAChB,uBAAwB,CACxB,kBAAmB,CACnB,wBAAyB,CACzB,wBAAyB,CACzB,iBAAkB,CAClB,mDAAuD,CACvD,2CAA+C,CAzBlD,gCA4BK,iBAAkB,CA5BvB,mCAkCM,YAAa,CACd,gBAIJ,YAAa","sources":["webpack://ps_facetedsearch/./_dev/back/blocklayered.scss"],"sourcesContent":["/**\n * Copyright since 2007 PrestaShop SA and Contributors\n * PrestaShop is an International Registered Trademark & Property of PrestaShop SA\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.md.\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 * @author PrestaShop SA \n * @copyright Since 2007 PrestaShop SA and Contributors\n * @license https://opensource.org/licenses/AFL-3.0 Academic Free License 3.0 (AFL-3.0)\n */\n.bootstrap {\n .filter_list .filter_list_item {\n\t display: table;\n\t width: 100%;\n\t padding: 5px 0;\n\t margin-bottom: 4px;\n\t background-color: white;\n\t -webkit-box-shadow: rgba(0, 0, 0, 0.3) 0 0 3px, rgba(0, 0, 0, 0.1) 0 -2px 0 inset;\n\t box-shadow: rgba(0, 0, 0, 0.3) 0 0 3px, rgba(0, 0, 0, 0.1) 0 -2px 0 inset;\n\t -webkit-border-radius: 3px;\n\t -moz-border-radius: 3px;\n\t -ms-border-radius: 3px;\n\t -o-border-radius: 3px;\n\t border-radius: 3px;\n cursor: pointer;\n }\n\n .filter_panel {\n\t min-height: 20px;\n\t padding: 7px 7px 0px 7px;\n\t margin-bottom: 20px;\n\t background-color: #ebebeb;\n\t border: 1px solid #d9d9d9;\n\t border-radius: 3px;\n\t -webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.05);\n\t box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.05);\n\n header {\n\t margin-bottom: 7px;\n }\n }\n\n .prestashop-switch {\n span {\n display: none;\n }\n }\n}\n.sortable-ghost {\n\tcolor: orange;\n}\n"],"names":[],"sourceRoot":""} \ No newline at end of file diff --git a/views/dist/back.js b/views/dist/back.js index 553d55d56..3946344b2 100644 --- a/views/dist/back.js +++ b/views/dist/back.js @@ -1,2 +1,3 @@ -(()=>{var e={208:()=>{},379:(e,t,n)=>{"use strict";var i,r=function(){var e={};return function(t){if(void 0===e[t]){var n=document.querySelector(t);if(window.HTMLIFrameElement&&n instanceof window.HTMLIFrameElement)try{n=n.contentDocument.head}catch(e){n=null}e[t]=n}return e[t]}}(),s=[];function a(e){for(var t=-1,n=0;n{var t=e&&e.__esModule?()=>e.default:()=>e;return n.d(t,{a:t}),t},n.d=(e,t)=>{for(var i in t)n.o(t,i)&&!n.o(e,i)&&Object.defineProperty(e,i,{enumerable:!0,get:t[i]})},n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),(()=>{"use strict";var e=n(379),t=n.n(e),i=n(208),r=n.n(i);t()(r(),{insert:"head",singleton:!1}),r().locals,$(document).ready((function(){$(".ajaxcall").click((function(){if(void 0===this.legend&&(this.legend=$(this).html()),void 0===this.running&&(this.running=!1),!0===this.running)return!1;$(".ajax-message").hide(),this.running=!0,(void 0===this.restartAllowed||this.restartAllowed)&&($(this).html(this.legend+translations.in_progress),$("#indexing-warning").show()),this.restartAllowed=!1;var e=$(this).attr("rel");return $.ajax({url:"".concat(this.href,"&ajax=1"),context:this,dataType:"json",cache:"false",success:function(){this.running=!1,this.restartAllowed=!0,$("#indexing-warning").hide(),$(this).html(this.legend),$("#ajax-message-ok span").html("price"===e?translations.url_indexation_finished:translations.attribute_indexation_finished),$("#ajax-message-ok").show()},error:function(){this.restartAllowed=!0,$("#indexing-warning").hide(),$("#ajax-message-ko span").html("price"===e?translations.url_indexation_failed:translations.attribute_indexation_failed),$("#ajax-message-ko").show(),$(this).html(this.legend),this.running=!1}}),!1}));var e=0;if($(".ajaxcall-recurcive").each((function(t,n){$(n).click((function(t){return t.preventDefault(),void 0===this.cursor&&(this.cursor=0),void 0===this.legend&&(this.legend=$(this).html()),void 0===this.running&&(this.running=!1),!0===this.running||($(".ajax-message").hide(),this.running=!0,(void 0===this.restartAllowed||this.restartAllowed)&&($(this).html(this.legend+translations.in_progress),$("#indexing-warning").show()),this.restartAllowed=!1,$.ajax({url:"".concat(this.href,"&ajax=1&cursor=").concat(this.cursor),context:this,dataType:"json",cache:"false",success:function(t){if(this.running=!1,t.result)return this.cursor=0,e=0,$("#indexing-warning").hide(),$(this).html(this.legend),$("#ajax-message-ok span").html(translations.price_indexation_finished),void $("#ajax-message-ok").show();e+=parseInt(t.count,10),this.cursor=parseInt(t.cursor,10),$(this).html(this.legend+translations.price_indexation_in_progress.replace("%s","".concat(e,"/").concat(t.total))),$(this).click()},error:function(e){this.restartAllowed=!0,$("#indexing-warning").hide(),$("#ajax-message-ko span").html(translations.price_indexation_failed),$("#ajax-message-ko").show(),$(this).html(this.legend),this.cursor=0,this.running=!1}})),!1}))})),"undefined"!=typeof PS_LAYERED_INDEXED&&PS_LAYERED_INDEXED&&($("#url-indexe").click(),$("#full-index").click()),$(".sortable").sortable({forcePlaceholderSize:!0}),$(".filter_list_item input[type=checkbox]").click((function(){var e=parseInt($("#selected_filters").html(),10);$("#selected_filters").html($(this).prop("checked")?e+1:e-1)})),void 0!==window.filters){var t,n=JSON.parse(window.filters),i=null;Object.keys(n).forEach((function(e){(t=$("#".concat(e))).prop("checked",!0),$("#selected_filters").html(parseInt($("#selected_filters").html(),10)+1),$('select[name="'.concat(e,'_filter_type"]')).val(n[e].filter_type),$('select[name="'.concat(e,'_filter_show_limit"]')).val(n[e].filter_show_limit),null===i?(i=$("#".concat(e)).closest("ul"),t.closest("li").detach().prependTo(i)):t.closest("li").detach().insertAfter(i),i=t.closest("li")}))}})),$(document).on("ready",(function(){var e=$('input[name="ps_layered_filter_by_default_category"]');e.on("change",(function(e){var t=$(this);t.prop("checked")&&("1"===t.val()?($('input[name="ps_layered_full_tree"][value="0"]').prop("checked",!0),$('input[name="ps_layered_full_tree"]').prop("disabled",!0)):$('input[name="ps_layered_full_tree"]').prop("disabled",!1))})),e.filter('[value="1"]').trigger("change")}))})()})(); +/*! For license information please see back.js.LICENSE.txt */ +(()=>{var e={208:()=>{},379:(e,t,n)=>{"use strict";var i,r=function(){var e={};return function(t){if(void 0===e[t]){var n=document.querySelector(t);if(window.HTMLIFrameElement&&n instanceof window.HTMLIFrameElement)try{n=n.contentDocument.head}catch(e){n=null}e[t]=n}return e[t]}}(),s=[];function a(e){for(var t=-1,n=0;n{var t=e&&e.__esModule?()=>e.default:()=>e;return n.d(t,{a:t}),t},n.d=(e,t)=>{for(var i in t)n.o(t,i)&&!n.o(e,i)&&Object.defineProperty(e,i,{enumerable:!0,get:t[i]})},n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),n.nc=void 0,(()=>{"use strict";var e=n(379),t=n.n(e),i=n(208),r=n.n(i);t()(r(),{insert:"head",singleton:!1}),r().locals,window.checkForm=function(){var e=!1,t=!1;return $("#categories-treeview input[type=checkbox]").each((function(){return!$(this).prop("checked")||(e=!0,!1)})),$(".filter_list_item input[type=checkbox]").each((function(){return!$(this).prop("checked")||(t=!0,!1)})),e?!!t||(alert(translations.no_selected_filters),$("#filter_list_item input[type=checkbox]").first().focus(),!1):(alert(translations.no_selected_categories),$("#categories-treeview input[type=checkbox]").first().focus(),!1)},$(document).ready((function(){$(".ajaxcall").click((function(){if(void 0===this.legend&&(this.legend=$(this).html()),void 0===this.running&&(this.running=!1),!0===this.running)return!1;$(".ajax-message").hide(),this.running=!0,(void 0===this.restartAllowed||this.restartAllowed)&&($(this).html(this.legend+translations.in_progress),$("#indexing-warning").show()),this.restartAllowed=!1;var e=$(this).attr("rel");return $.ajax({url:"".concat(this.href,"&ajax=1"),context:this,dataType:"json",cache:"false",success:function(){this.running=!1,this.restartAllowed=!0,$("#indexing-warning").hide(),$(this).html(this.legend),$("#ajax-message-ok span").html("price"===e?translations.url_indexation_finished:translations.attribute_indexation_finished),$("#ajax-message-ok").show()},error:function(){this.restartAllowed=!0,$("#indexing-warning").hide(),$("#ajax-message-ko span").html("price"===e?translations.url_indexation_failed:translations.attribute_indexation_failed),$("#ajax-message-ko").show(),$(this).html(this.legend),this.running=!1}}),!1}));var e=0;if($(".ajaxcall-recurcive").each((function(t,n){$(n).click((function(t){return t.preventDefault(),void 0===this.cursor&&(this.cursor=0),void 0===this.legend&&(this.legend=$(this).html()),void 0===this.running&&(this.running=!1),!0===this.running||($(".ajax-message").hide(),this.running=!0,(void 0===this.restartAllowed||this.restartAllowed)&&($(this).html(this.legend+translations.in_progress),$("#indexing-warning").show()),this.restartAllowed=!1,$.ajax({url:"".concat(this.href,"&ajax=1&cursor=").concat(this.cursor),context:this,dataType:"json",cache:"false",success:function(t){if(this.running=!1,t.result)return this.cursor=0,e=0,$("#indexing-warning").hide(),$(this).html(this.legend),$("#ajax-message-ok span").html(translations.price_indexation_finished),void $("#ajax-message-ok").show();e+=parseInt(t.count,10),this.cursor=parseInt(t.cursor,10),$(this).html(this.legend+translations.price_indexation_in_progress.replace("%s","".concat(e,"/").concat(t.total))),$(this).click()},error:function(e){this.restartAllowed=!0,$("#indexing-warning").hide(),$("#ajax-message-ko span").html(translations.price_indexation_failed),$("#ajax-message-ko").show(),$(this).html(this.legend),this.cursor=0,this.running=!1}})),!1}))})),"undefined"!=typeof PS_LAYERED_INDEXED&&PS_LAYERED_INDEXED&&($("#url-indexe").click(),$("#full-index").click()),"undefined"!=typeof Sortable){var t=document.getElementById("list-filters");null!==t&&new Sortable(t,{animation:150,ghostClass:"sortable-ghost"})}else $(".sortable").sortable({forcePlaceholderSize:!0});if($(".filter_list_item input[type=checkbox]").click((function(){var e=parseInt($("#selected_filters").html(),10);$("#selected_filters").html($(this).prop("checked")?e+1:e-1)})),void 0!==window.filters){var n,i=JSON.parse(window.filters),r=null;Object.keys(i).forEach((function(e){(n=$("#".concat(e))).prop("checked",!0),$("#selected_filters").html(parseInt($("#selected_filters").html(),10)+1),$('select[name="'.concat(e,'_filter_type"]')).val(i[e].filter_type),$('select[name="'.concat(e,'_filter_show_limit"]')).val(i[e].filter_show_limit),null===r?(r=$("#".concat(e)).closest("ul"),n.closest("li").detach().prependTo(r)):n.closest("li").detach().insertAfter(r),r=n.closest("li")}))}})),$(document).on("ready",(function(){var e=$('input[name="ps_layered_filter_by_default_category"]');e.on("change",(function(e){var t=$(this);t.prop("checked")&&("1"===t.val()?($('input[name="ps_layered_full_tree"][value="0"]').prop("checked",!0),$('input[name="ps_layered_full_tree"]').prop("disabled",!0)):$('input[name="ps_layered_full_tree"]').prop("disabled",!1))})),e.filter('[value="1"]').trigger("change")}))})()})(); //# sourceMappingURL=back.js.map \ No newline at end of file diff --git a/views/dist/back.js.LICENSE.txt b/views/dist/back.js.LICENSE.txt new file mode 100644 index 000000000..1a9bfb50a --- /dev/null +++ b/views/dist/back.js.LICENSE.txt @@ -0,0 +1,18 @@ +/** + * Copyright since 2007 PrestaShop SA and Contributors + * PrestaShop is an International Registered Trademark & Property of PrestaShop SA + * + * 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.md. + * 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. + * + * @author PrestaShop SA + * @copyright Since 2007 PrestaShop SA and Contributors + * @license https://opensource.org/licenses/AFL-3.0 Academic Free License 3.0 (AFL-3.0) + */ diff --git a/views/dist/back.js.map b/views/dist/back.js.map index 53232a92f..ba7e34c6a 100644 --- a/views/dist/back.js.map +++ b/views/dist/back.js.map @@ -1 +1 @@ -{"version":3,"file":"back.js","mappings":"mDAEA,IACMA,EAeFC,EAAY,WACd,IAAID,EAAO,GACX,OAAO,SAAkBE,GACvB,QAA4B,IAAjBF,EAAKE,GAAyB,CACvC,IAAIC,EAAcC,SAASC,cAAcH,GAEzC,GAAII,OAAOC,mBAAqBJ,aAAuBG,OAAOC,kBAC5D,IAGEJ,EAAcA,EAAYK,gBAAgBC,KAC1C,MAAOC,GAEPP,EAAc,KAIlBH,EAAKE,GAAUC,EAGjB,OAAOH,EAAKE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AAQ,MAAMC,SAASE,YAAYP,GAGzCA,EAAYF,EAAIM,QAAQ,aAK9BlD,EAAE3G,UAAUiK,GAAG,SAAS,WACtB,IAAMC,EAAyBvD,EAAE,uDACjCuD,EAAuBD,GAAG,UAAU,SAA2BE,GAC7D,IAAM3B,EAAM7B,EAAEG,MAET0B,EAAI/B,KAAK,aAII,MAAd+B,EAAIkB,OACN/C,EAAE,iDAAiDF,KAAK,WAAW,GACnEE,EAAE,sCAAsCF,KAAK,YAAY,IAEzDE,EAAE,sCAAsCF,KAAK,YAAY,OAI7DyD,EAAuBlH,OAAO,eAAeoH,QAAQ,c","sources":["webpack://ps_facetedsearch/./node_modules/style-loader/dist/runtime/injectStylesIntoStyleTag.js","webpack://ps_facetedsearch/webpack/bootstrap","webpack://ps_facetedsearch/webpack/runtime/compat get default export","webpack://ps_facetedsearch/webpack/runtime/define property getters","webpack://ps_facetedsearch/webpack/runtime/hasOwnProperty shorthand","webpack://ps_facetedsearch/./_dev/back/blocklayered.scss?3003","webpack://ps_facetedsearch/./_dev/back/index.js"],"sourcesContent":["\"use strict\";\n\nvar isOldIE = function isOldIE() {\n var memo;\n return function memorize() {\n if (typeof memo === 'undefined') {\n // Test for IE <= 9 as proposed by Browserhacks\n // @see http://browserhacks.com/#hack-e71d8692f65334173fee715c222cb805\n // Tests for existence of standard globals is to allow style-loader\n // to operate correctly into non-standard environments\n // @see https://github.com/webpack-contrib/style-loader/issues/177\n memo = Boolean(window && document && document.all && !window.atob);\n }\n\n return memo;\n };\n}();\n\nvar getTarget = function getTarget() {\n var memo = {};\n return function memorize(target) {\n if (typeof memo[target] === 'undefined') {\n var styleTarget = document.querySelector(target); // Special case to return head of iframe instead of iframe itself\n\n if (window.HTMLIFrameElement && styleTarget instanceof window.HTMLIFrameElement) {\n try {\n // This will throw an exception if access to iframe is blocked\n // due to cross-origin restrictions\n styleTarget = styleTarget.contentDocument.head;\n } catch (e) {\n // istanbul ignore next\n styleTarget = null;\n }\n }\n\n memo[target] = styleTarget;\n }\n\n return memo[target];\n };\n}();\n\nvar stylesInDom = [];\n\nfunction getIndexByIdentifier(identifier) {\n var result = -1;\n\n for (var i = 0; i < stylesInDom.length; i++) {\n if (stylesInDom[i].identifier === identifier) {\n result = i;\n break;\n }\n }\n\n return result;\n}\n\nfunction modulesToDom(list, options) {\n var idCountMap = {};\n var identifiers = [];\n\n for (var i = 0; i < list.length; i++) {\n var item = list[i];\n var id = options.base ? item[0] + options.base : item[0];\n var count = idCountMap[id] || 0;\n var identifier = \"\".concat(id, \" \").concat(count);\n idCountMap[id] = count + 1;\n var index = getIndexByIdentifier(identifier);\n var obj = {\n css: item[1],\n media: item[2],\n sourceMap: item[3]\n };\n\n if (index !== -1) {\n stylesInDom[index].references++;\n stylesInDom[index].updater(obj);\n } else {\n stylesInDom.push({\n identifier: identifier,\n updater: addStyle(obj, options),\n references: 1\n });\n }\n\n identifiers.push(identifier);\n }\n\n return identifiers;\n}\n\nfunction insertStyleElement(options) {\n var style = document.createElement('style');\n var attributes = options.attributes || {};\n\n if (typeof attributes.nonce === 'undefined') {\n var nonce = typeof __webpack_nonce__ !== 'undefined' ? __webpack_nonce__ : null;\n\n if (nonce) {\n attributes.nonce = nonce;\n }\n }\n\n Object.keys(attributes).forEach(function (key) {\n style.setAttribute(key, attributes[key]);\n });\n\n if (typeof options.insert === 'function') {\n options.insert(style);\n } else {\n var target = getTarget(options.insert || 'head');\n\n if (!target) {\n throw new Error(\"Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.\");\n }\n\n target.appendChild(style);\n }\n\n return style;\n}\n\nfunction removeStyleElement(style) {\n // istanbul ignore if\n if (style.parentNode === null) {\n return false;\n }\n\n style.parentNode.removeChild(style);\n}\n/* istanbul ignore next */\n\n\nvar replaceText = function replaceText() {\n var textStore = [];\n return function replace(index, replacement) {\n textStore[index] = replacement;\n return textStore.filter(Boolean).join('\\n');\n };\n}();\n\nfunction applyToSingletonTag(style, index, remove, obj) {\n var css = remove ? '' : obj.media ? \"@media \".concat(obj.media, \" {\").concat(obj.css, \"}\") : obj.css; // For old IE\n\n /* istanbul ignore if */\n\n if (style.styleSheet) {\n style.styleSheet.cssText = replaceText(index, css);\n } else {\n var cssNode = document.createTextNode(css);\n var childNodes = style.childNodes;\n\n if (childNodes[index]) {\n style.removeChild(childNodes[index]);\n }\n\n if (childNodes.length) {\n style.insertBefore(cssNode, childNodes[index]);\n } else {\n style.appendChild(cssNode);\n }\n }\n}\n\nfunction applyToTag(style, options, obj) {\n var css = obj.css;\n var media = obj.media;\n var sourceMap = obj.sourceMap;\n\n if (media) {\n style.setAttribute('media', media);\n } else {\n style.removeAttribute('media');\n }\n\n if (sourceMap && typeof btoa !== 'undefined') {\n css += \"\\n/*# sourceMappingURL=data:application/json;base64,\".concat(btoa(unescape(encodeURIComponent(JSON.stringify(sourceMap)))), \" */\");\n } // For old IE\n\n /* istanbul ignore if */\n\n\n if (style.styleSheet) {\n style.styleSheet.cssText = css;\n } else {\n while (style.firstChild) {\n style.removeChild(style.firstChild);\n }\n\n style.appendChild(document.createTextNode(css));\n }\n}\n\nvar singleton = null;\nvar singletonCounter = 0;\n\nfunction addStyle(obj, options) {\n var style;\n var update;\n var remove;\n\n if (options.singleton) {\n var styleIndex = singletonCounter++;\n style = singleton || (singleton = insertStyleElement(options));\n update = applyToSingletonTag.bind(null, style, styleIndex, false);\n remove = applyToSingletonTag.bind(null, style, styleIndex, true);\n } else {\n style = insertStyleElement(options);\n update = applyToTag.bind(null, style, options);\n\n remove = function remove() {\n removeStyleElement(style);\n };\n }\n\n update(obj);\n return function updateStyle(newObj) {\n if (newObj) {\n if (newObj.css === obj.css && newObj.media === obj.media && newObj.sourceMap === obj.sourceMap) {\n return;\n }\n\n update(obj = newObj);\n } else {\n remove();\n }\n };\n}\n\nmodule.exports = function (list, options) {\n options = options || {}; // Force single-tag solution on IE6-9, which has a hard limit on the # of