diff --git a/_dev/back/blocklayered.scss b/_dev/back/blocklayered.scss index a22cfcb69..872c3144f 100644 --- a/_dev/back/blocklayered.scss +++ b/_dev/back/blocklayered.scss @@ -57,3 +57,8 @@ .sortable-ghost { color: orange; } +#content.bootstrap { + .form-group-categories .panel { + margin-bottom: 0; + } +} diff --git a/_dev/back/index.js b/_dev/back/index.js index ef4f4e009..d574c50d8 100644 --- a/_dev/back/index.js +++ b/_dev/back/index.js @@ -21,6 +21,8 @@ import './blocklayered.scss'; /* eslint-disable no-unused-vars, no-alert */ window.checkForm = function checkForm() { let isCategorySelected = false; + let isCategoryControllerSelected = false; + let isControllerSelected = false; let isFilterSelected = false; $('#categories-treeview input[type=checkbox]').each(function checkCategoriesCheckboxes() { @@ -31,6 +33,15 @@ window.checkForm = function checkForm() { return true; }); + $('input[name="controllers[]"]').each(function checkPagesCheckboxes() { + if ($(this).prop('checked')) { + isControllerSelected = true; + if ($(this).val() === 'category') { + isCategoryControllerSelected = true; + } + } + }); + $('.filter_list_item input[type=checkbox]').each(function checkFilterListCheckboxes() { if ($(this).prop('checked')) { isFilterSelected = true; @@ -39,12 +50,20 @@ window.checkForm = function checkForm() { return true; }); - if (!isCategorySelected) { + // If no controller is selected at all + if (!isControllerSelected) { + alert(translations.no_selected_controllers); + return false; + } + + // If category controller was checked, but no category is selected + if (isCategoryControllerSelected && !isCategorySelected) { alert(translations.no_selected_categories); $('#categories-treeview input[type=checkbox]').first().focus(); return false; } + // If no filter is selected at all if (!isFilterSelected) { alert(translations.no_selected_filters); $('#filter_list_item input[type=checkbox]').first().focus(); diff --git a/views/dist/back.css b/views/dist/back.css index 46e6306fe..2830d2884 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}.sortable-ghost{color:orange} +.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}#content.bootstrap .form-group-categories .panel{margin-bottom:0} /*# 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 4ea2c3f92..c7bbe811d 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,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 +{"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,CACb,iDAGC,eAAgB","sources":["webpack://ps_facetedsearch/./_dev/back/blocklayered.scss"],"sourcesContent":["/**\r\n * Copyright since 2007 PrestaShop SA and Contributors\r\n * PrestaShop is an International Registered Trademark & Property of PrestaShop SA\r\n *\r\n * NOTICE OF LICENSE\r\n *\r\n * This source file is subject to the Academic Free License 3.0 (AFL-3.0)\r\n * that is bundled with this package in the file LICENSE.md.\r\n * It is also available through the world-wide-web at this URL:\r\n * https://opensource.org/licenses/AFL-3.0\r\n * If you did not receive a copy of the license and are unable to\r\n * obtain it through the world-wide-web, please send an email\r\n * to license@prestashop.com so we can send you a copy immediately.\r\n *\r\n * @author PrestaShop SA \r\n * @copyright Since 2007 PrestaShop SA and Contributors\r\n * @license https://opensource.org/licenses/AFL-3.0 Academic Free License 3.0 (AFL-3.0)\r\n */\r\n.bootstrap {\r\n .filter_list .filter_list_item {\r\n\t display: table;\r\n\t width: 100%;\r\n\t padding: 5px 0;\r\n\t margin-bottom: 4px;\r\n\t background-color: white;\r\n\t -webkit-box-shadow: rgba(0, 0, 0, 0.3) 0 0 3px, rgba(0, 0, 0, 0.1) 0 -2px 0 inset;\r\n\t box-shadow: rgba(0, 0, 0, 0.3) 0 0 3px, rgba(0, 0, 0, 0.1) 0 -2px 0 inset;\r\n\t -webkit-border-radius: 3px;\r\n\t -moz-border-radius: 3px;\r\n\t -ms-border-radius: 3px;\r\n\t -o-border-radius: 3px;\r\n\t border-radius: 3px;\r\n cursor: pointer;\r\n }\r\n\r\n .filter_panel {\r\n\t min-height: 20px;\r\n\t padding: 7px 7px 0px 7px;\r\n\t margin-bottom: 20px;\r\n\t background-color: #ebebeb;\r\n\t border: 1px solid #d9d9d9;\r\n\t border-radius: 3px;\r\n\t -webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.05);\r\n\t box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.05);\r\n\r\n header {\r\n\t margin-bottom: 7px;\r\n }\r\n }\r\n\r\n .prestashop-switch {\r\n span {\r\n display: none;\r\n }\r\n }\r\n}\r\n.sortable-ghost {\r\n\tcolor: orange;\r\n}\r\n#content.bootstrap {\r\n\t.form-group-categories .panel {\r\n\t\tmargin-bottom: 0;\r\n\t}\r\n}\r\n"],"names":[],"sourceRoot":""} \ No newline at end of file diff --git a/views/dist/back.js b/views/dist/back.js index 3946344b2..11e5cfb40 100644 --- a/views/dist/back.js +++ b/views/dist/back.js @@ -1,3 +1,3 @@ /*! 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")}))})()})(); +(()=>{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,n=!1,i=!1;return $("#categories-treeview input[type=checkbox]").each((function(){return!$(this).prop("checked")||(e=!0,!1)})),$('input[name="controllers[]"]').each((function(){$(this).prop("checked")&&(n=!0,"category"===$(this).val()&&(t=!0))})),$(".filter_list_item input[type=checkbox]").each((function(){return!$(this).prop("checked")||(i=!0,!1)})),n?t&&!e?(alert(translations.no_selected_categories),$("#categories-treeview input[type=checkbox]").first().focus(),!1):!!i||(alert(translations.no_selected_filters),$("#filter_list_item input[type=checkbox]").first().focus(),!1):(alert(translations.no_selected_controllers),!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.map b/views/dist/back.js.map index ba7e34c6a..2dfaecf09 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,CAAC,EACZ,OAAO,SAAkBE,GACvB,QAA4B,IAAjBF,EAAKE,GAAyB,CACvC,IAAIC,EAAcC,SAASC,cAAcH,GAEzC,GAAII,OAAOC,mBAAqBJ,aAAuBG,OAAOC,kBAC5D,IAGEJ,EAAcA,EAAYK,gBAAgBC,IAI5C,CAHE,MAAOC,GAEPP,EAAc,IAChB,CAGFH,EAAKE,GAAUC,CACjB,CAEA,OAAOH,EAAKE,EACd,CACF,CAtBgB,GAwBZS,EAAc,GAElB,SAASC,EAAqBC,GAG5B,IAFA,IAAIC,GAAU,EAELC,EAAI,EAAGA,EAAIJ,EAAYK,OAAQD,IACtC,GAAIJ,EAAYI,GAAGF,aAAeA,EAAY,CAC5CC,EAASC,EACT,KACF,CAGF,OAAOD,CACT,CAEA,SAASG,EAAaC,EAAMC,GAI1B,IAHA,IAAIC,EAAa,CAAC,EACdC,EAAc,GAETN,EAAI,EAAGA,EAAIG,EAAKF,OAAQD,IAAK,CACpC,IAAIO,EAAOJ,EAAKH,GACZQ,EAAKJ,EAAQK,KAAOF,EAAK,GAAKH,EAAQK,KAAOF,EAAK,GAClDG,EAAQL,EAAWG,IA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,GACpBM,EAAE,qBAAqBY,KAAK2B,SAASvC,EAAE,qBAAqBY,OAAQ,IAAM,GAC1EZ,EAAE,gBAAD,OAAiB/D,EAAM,mBAAkBwH,IAAIJ,EAAQpH,GAAQyH,aAC9D1D,EAAE,gBAAD,OAAiB/D,EAAM,yBAAwBwH,IAAIJ,EAAQpH,GAAQ0H,mBAClD,OAAdH,GACFA,EAAYxD,EAAE,IAAD,OAAK/D,IAAU2H,QAAQ,MACpCN,EAAIM,QAAQ,MAAMC,SAASC,UAAUN,IAErCF,EAAIM,QAAQ,MAAMC,SAASE,YAAYP,GAGzCA,EAAYF,EAAIM,QAAQ,KAC1B,GACF,CACF,IAEA5D,EAAE/G,UAAU+K,GAAG,SAAS,WACtB,IAAMC,EAAyBjE,EAAE,uDACjCiE,EAAuBD,GAAG,UAAU,SAA2BE,GAC7D,IAAMhC,EAAMlC,EAAEE,MAETgC,EAAIxC,KAAK,aAII,MAAdwC,EAAIuB,OACNzD,EAAE,iDAAiDN,KAAK,WAAW,GACnEM,EAAE,sCAAsCN,KAAK,YAAY,IAEzDM,EAAE,sCAAsCN,KAAK,YAAY,GAE7D,IAEAuE,EAAuBhI,OAAO,eAAekI,QAAQ,SACvD","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/webpack/runtime/nonce","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