Files
2020-10-07 10:37:15 +02:00

144 lines
25 KiB
JavaScript
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
!function(t){var e={};function n(r){if(e[r])return e[r].exports;var i=e[r]={i:r,l:!1,exports:{}};return t[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}n.m=t,n.c=e,n.d=function(t,e,r){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:r})},n.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var i in t)n.d(r,i,function(e){return t[e]}.bind(null,i));return r},n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="",n(n.s=13)}([function(t,e,n){"use strict";var r,i=function(){return void 0===r&&(r=Boolean(window&&document&&document.all&&!window.atob)),r},o=function(){var t={};return function(e){if(void 0===t[e]){var n=document.querySelector(e);if(window.HTMLIFrameElement&&n instanceof window.HTMLIFrameElement)try{n=n.contentDocument.head}catch(t){n=null}t[e]=n}return t[e]}}(),a=[];function u(t){for(var e=-1,n=0;n<a.length;n++)if(a[n].identifier===t){e=n;break}return e}function c(t,e){for(var n={},r=[],i=0;i<t.length;i++){var o=t[i],c=e.base?o[0]+e.base:o[0],s=n[c]||0,l="".concat(c," ").concat(s);n[c]=s+1;var f=u(l),p={css:o[1],media:o[2],sourceMap:o[3]};-1!==f?(a[f].references++,a[f].updater(p)):a.push({identifier:l,updater:v(p,e),references:1}),r.push(l)}return r}function s(t){var e=document.createElement("style"),r=t.attributes||{};if(void 0===r.nonce){var i=n.nc;i&&(r.nonce=i)}if(Object.keys(r).forEach((function(t){e.setAttribute(t,r[t])})),"function"==typeof t.insert)t.insert(e);else{var a=o(t.insert||"head");if(!a)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");a.appendChild(e)}return e}var l,f=(l=[],function(t,e){return l[t]=e,l.filter(Boolean).join("\n")});function p(t,e,n,r){var i=n?"":r.media?"@media ".concat(r.media," {").concat(r.css,"}"):r.css;if(t.styleSheet)t.styleSheet.cssText=f(e,i);else{var o=document.createTextNode(i),a=t.childNodes;a[e]&&t.removeChild(a[e]),a.length?t.insertBefore(o,a[e]):t.appendChild(o)}}function d(t,e,n){var r=n.css,i=n.media,o=n.sourceMap;if(i?t.setAttribute("media",i):t.removeAttribute("media"),o&&btoa&&(r+="\n/*# sourceMappingURL=data:application/json;base64,".concat(btoa(unescape(encodeURIComponent(JSON.stringify(o))))," */")),t.styleSheet)t.styleSheet.cssText=r;else{for(;t.firstChild;)t.removeChild(t.firstChild);t.appendChild(document.createTextNode(r))}}var y=null,h=0;function v(t,e){var n,r,i;if(e.singleton){var o=h++;n=y||(y=s(e)),r=p.bind(null,n,o,!1),i=p.bind(null,n,o,!0)}else n=s(e),r=d.bind(null,n,e),i=function(){!function(t){if(null===t.parentNode)return!1;t.parentNode.removeChild(t)}(n)};return r(t),function(e){if(e){if(e.css===t.css&&e.media===t.media&&e.sourceMap===t.sourceMap)return;r(t=e)}else i()}}t.exports=function(t,e){(e=e||{}).singleton||"boolean"==typeof e.singleton||(e.singleton=i());var n=c(t=t||[],e);return function(t){if(t=t||[],"[object Array]"===Object.prototype.toString.call(t)){for(var r=0;r<n.length;r++){var i=u(n[r]);a[i].references--}for(var o=c(t,e),s=0;s<n.length;s++){var l=u(n[s]);0===a[l].references&&(a[l].updater(),a.splice(l,1))}n=o}}}},function(t,e){
/*!
* jQuery UI Touch Punch 0.2.3
*
* Copyright 20112014, Dave Furfero
* Dual licensed under the MIT or GPL Version 2 licenses.
*
* Depends:
* jquery.ui.widget.js
* jquery.ui.mouse.js
*/
!function(t){if(t.support.touch="ontouchend"in document,t.support.touch){var e,n=t.ui.mouse.prototype,r=n._mouseInit,i=n._mouseDestroy;n._touchStart=function(t){!e&&this._mouseCapture(t.originalEvent.changedTouches[0])&&(e=!0,this._touchMoved=!1,o(t,"mouseover"),o(t,"mousemove"),o(t,"mousedown"))},n._touchMove=function(t){e&&(this._touchMoved=!0,o(t,"mousemove"))},n._touchEnd=function(t){e&&(o(t,"mouseup"),o(t,"mouseout"),this._touchMoved||o(t,"click"),e=!1)},n._mouseInit=function(){this.element.bind({touchstart:t.proxy(this,"_touchStart"),touchmove:t.proxy(this,"_touchMove"),touchend:t.proxy(this,"_touchEnd")}),r.call(this)},n._mouseDestroy=function(){this.element.unbind({touchstart:t.proxy(this,"_touchStart"),touchmove:t.proxy(this,"_touchMove"),touchend:t.proxy(this,"_touchEnd")}),i.call(this)}}function o(t,e){if(!(t.originalEvent.touches.length>1)){t.preventDefault();var n=t.originalEvent.changedTouches[0],r=document.createEvent("MouseEvents");r.initMouseEvent(e,!0,!0,window,1,n.screenX,n.screenY,n.clientX,n.clientY,!1,!1,!1,!1,0,null),t.target.dispatchEvent(r)}}}(jQuery)},function(t,e,n){(function(e){var n=/[\\^$.*+?()[\]{}|]/g,r=RegExp(n.source),i="object"==typeof e&&e&&e.Object===Object&&e,o="object"==typeof self&&self&&self.Object===Object&&self,a=i||o||Function("return this")(),u=Object.prototype.toString,c=a.Symbol,s=c?c.prototype:void 0,l=s?s.toString:void 0;function f(t){if("string"==typeof t)return t;if(function(t){return"symbol"==typeof t||function(t){return!!t&&"object"==typeof t}(t)&&"[object Symbol]"==u.call(t)}(t))return l?l.call(t):"";var e=t+"";return"0"==e&&1/t==-1/0?"-0":e}t.exports=function(t){var e;return(t=null==(e=t)?"":f(e))&&r.test(t)?t.replace(n,"\\$&"):t}}).call(this,n(3))},function(t,e){var n;n=function(){return this}();try{n=n||new Function("return this")()}catch(t){"object"==typeof window&&(n=window)}t.exports=n},function(t,e,n){var r=n(0),i=n(5);"string"==typeof(i=i.__esModule?i.default:i)&&(i=[[t.i,i,""]]);var o={insert:"head",singleton:!1};r(i,o);t.exports=i.locals||{}},function(t,e,n){},function(t,e,n){var r=n(0),i=n(7);"string"==typeof(i=i.__esModule?i.default:i)&&(i=[[t.i,i,""]]);var o={insert:"head",singleton:!1};r(i,o);t.exports=i.locals||{}},function(t,e,n){},function(t,e,n){var r=n(0),i=n(9);"string"==typeof(i=i.__esModule?i.default:i)&&(i=[[t.i,i,""]]);var o={insert:"head",singleton:!1};r(i,o);t.exports=i.locals||{}},function(t,e,n){},,,,function(t,e,n){"use strict";n.r(e);n(1);function r(t,e){return function(t){if(Array.isArray(t))return t}
/**
* 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 <contact@prestashop.com>
* @copyright Since 2007 PrestaShop SA and Contributors
* @license https://opensource.org/licenses/AFL-3.0 Academic Free License 3.0 (AFL-3.0)
*/(t)||function(t,e){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(t)))return;var n=[],r=!0,i=!1,o=void 0;try{for(var a,u=t[Symbol.iterator]();!(r=(a=u.next()).done)&&(n.push(a.value),!e||n.length!==e);r=!0);}catch(t){i=!0,o=t}finally{try{r||null==u.return||u.return()}finally{if(i)throw o}}return n}(t,e)||function(t,e){if(!t)return;if("string"==typeof t)return i(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return i(t,e)}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function i(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}var o=function(t){return t.split("&").map((function(t){var e=r(t.split("="),2),n=e[0],i=e[1];return{name:n,value:decodeURIComponent(i).replace(/\+/g," ")}}))};
/**
* 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 <contact@prestashop.com>
* @copyright Since 2007 PrestaShop SA and Contributors
* @license https://opensource.org/licenses/AFL-3.0 Academic Free License 3.0 (AFL-3.0)
*/
var a=function t(e){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.message=e,this.name="LocalizationException"};function u(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}
/**
* 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 <contact@prestashop.com>
* @copyright Since 2007 PrestaShop SA and Contributors
* @license https://opensource.org/licenses/AFL-3.0 Academic Free License 3.0 (AFL-3.0)
*/
var c=function(){function t(e,n,r,i,o,a,u,c,s,l,f){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.decimal=e,this.group=n,this.list=r,this.percentSign=i,this.minusSign=o,this.plusSign=a,this.exponential=u,this.superscriptingExponent=c,this.perMille=s,this.infinity=l,this.nan=f,this.validateData()}var e,n,r;return e=t,(n=[{key:"getDecimal",value:function(){return this.decimal}},{key:"getGroup",value:function(){return this.group}},{key:"getList",value:function(){return this.list}},{key:"getPercentSign",value:function(){return this.percentSign}},{key:"getMinusSign",value:function(){return this.minusSign}},{key:"getPlusSign",value:function(){return this.plusSign}},{key:"getExponential",value:function(){return this.exponential}},{key:"getSuperscriptingExponent",value:function(){return this.superscriptingExponent}},{key:"getPerMille",value:function(){return this.perMille}},{key:"getInfinity",value:function(){return this.infinity}},{key:"getNan",value:function(){return this.nan}},{key:"validateData",value:function(){if(!this.decimal||"string"!=typeof this.decimal)throw new a("Invalid decimal");if(!this.group||"string"!=typeof this.group)throw new a("Invalid group");if(!this.list||"string"!=typeof this.list)throw new a("Invalid symbol list");if(!this.percentSign||"string"!=typeof this.percentSign)throw new a("Invalid percentSign");if(!this.minusSign||"string"!=typeof this.minusSign)throw new a("Invalid minusSign");if(!this.plusSign||"string"!=typeof this.plusSign)throw new a("Invalid plusSign");if(!this.exponential||"string"!=typeof this.exponential)throw new a("Invalid exponential");if(!this.superscriptingExponent||"string"!=typeof this.superscriptingExponent)throw new a("Invalid superscriptingExponent");if(!this.perMille||"string"!=typeof this.perMille)throw new a("Invalid perMille");if(!this.infinity||"string"!=typeof this.infinity)throw new a("Invalid infinity");if(!this.nan||"string"!=typeof this.nan)throw new a("Invalid nan")}}])&&u(e.prototype,n),r&&u(e,r),t}();function s(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}
/**
* 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 <contact@prestashop.com>
* @copyright Since 2007 PrestaShop SA and Contributors
* @license https://opensource.org/licenses/AFL-3.0 Academic Free License 3.0 (AFL-3.0)
*/
var l=function(){function t(e,n,r,i,o,u,s,l){if(function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.positivePattern=e,this.negativePattern=n,this.symbol=r,this.maxFractionDigits=i,this.minFractionDigits=i<o?i:o,this.groupingUsed=u,this.primaryGroupSize=s,this.secondaryGroupSize=l,!this.positivePattern||"string"!=typeof this.positivePattern)throw new a("Invalid positivePattern");if(!this.negativePattern||"string"!=typeof this.negativePattern)throw new a("Invalid negativePattern");if(!(this.symbol&&this.symbol instanceof c))throw new a("Invalid symbol");if("number"!=typeof this.maxFractionDigits)throw new a("Invalid maxFractionDigits");if("number"!=typeof this.minFractionDigits)throw new a("Invalid minFractionDigits");if("boolean"!=typeof this.groupingUsed)throw new a("Invalid groupingUsed");if("number"!=typeof this.primaryGroupSize)throw new a("Invalid primaryGroupSize");if("number"!=typeof this.secondaryGroupSize)throw new a("Invalid secondaryGroupSize")}var e,n,r;return e=t,(n=[{key:"getSymbol",value:function(){return this.symbol}},{key:"getPositivePattern",value:function(){return this.positivePattern}},{key:"getNegativePattern",value:function(){return this.negativePattern}},{key:"getMaxFractionDigits",value:function(){return this.maxFractionDigits}},{key:"getMinFractionDigits",value:function(){return this.minFractionDigits}},{key:"isGroupingUsed",value:function(){return this.groupingUsed}},{key:"getPrimaryGroupSize",value:function(){return this.primaryGroupSize}},{key:"getSecondaryGroupSize",value:function(){return this.secondaryGroupSize}}])&&s(e.prototype,n),r&&s(e,r),t}();function f(t){return(f="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function p(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function d(t,e){return(d=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function y(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=v(t);if(e){var i=v(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return h(this,n)}}function h(t,e){return!e||"object"!==f(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function v(t){return(v=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}
/**
* 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 <contact@prestashop.com>
* @copyright Since 2007 PrestaShop SA and Contributors
* @license https://opensource.org/licenses/AFL-3.0 Academic Free License 3.0 (AFL-3.0)
*/var m=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&d(t,e)}(o,t);var e,n,r,i=y(o);function o(t,e,n,r,u,c,s,l,f,p){var d;if(function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,o),(d=i.call(this,t,e,n,r,u,c,s,l)).currencySymbol=f,d.currencyCode=p,!d.currencySymbol||"string"!=typeof d.currencySymbol)throw new a("Invalid currencySymbol");if(!d.currencyCode||"string"!=typeof d.currencyCode)throw new a("Invalid currencyCode");return d}return e=o,r=[{key:"getCurrencyDisplay",value:function(){return"symbol"}}],(n=[{key:"getCurrencySymbol",value:function(){return this.currencySymbol}},{key:"getCurrencyCode",value:function(){return this.currencyCode}}])&&p(e.prototype,n),r&&p(e,r),o}(l);function g(t,e,n){return(g=b()?Reflect.construct:function(t,e,n){var r=[null];r.push.apply(r,e);var i=new(Function.bind.apply(t,r));return n&&S(i,n.prototype),i}).apply(null,arguments)}function b(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}function S(t,e){return(S=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function w(t){return function(t){if(Array.isArray(t))return _(t)}(t)||function(t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(t))return Array.from(t)}(t)||j(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function x(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(t)))return;var n=[],r=!0,i=!1,o=void 0;try{for(var a,u=t[Symbol.iterator]();!(r=(a=u.next()).done)&&(n.push(a.value),!e||n.length!==e);r=!0);}catch(t){i=!0,o=t}finally{try{r||null==u.return||u.return()}finally{if(i)throw o}}return n}(t,e)||j(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function j(t,e){if(t){if("string"==typeof t)return _(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?_(t,e):void 0}}function _(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function P(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}
/**
* 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 <contact@prestashop.com>
* @copyright Since 2007 PrestaShop SA and Contributors
* @license https://opensource.org/licenses/AFL-3.0 Academic Free License 3.0 (AFL-3.0)
*/
var M=n(2),k=function(){function t(e){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.numberSpecification=e}var e,n,r;return e=t,r=[{key:"build",value:function(e){var n;return n=void 0!==e.numberSymbols?g(c,w(e.numberSymbols)):g(c,w(e.symbol)),new t(e.currencySymbol?new m(e.positivePattern,e.negativePattern,n,parseInt(e.maxFractionDigits,10),parseInt(e.minFractionDigits,10),e.groupingUsed,e.primaryGroupSize,e.secondaryGroupSize,e.currencySymbol,e.currencyCode):new l(e.positivePattern,e.negativePattern,n,parseInt(e.maxFractionDigits,10),parseInt(e.minFractionDigits,10),e.groupingUsed,e.primaryGroupSize,e.secondaryGroupSize))}}],(n=[{key:"format",value:function(t,e){void 0!==e&&(this.numberSpecification=e);var n=Math.abs(t).toFixed(this.numberSpecification.getMaxFractionDigits()),r=x(this.extractMajorMinorDigits(n),2),i=r[0],o=r[1],a=i=this.splitMajorGroups(i);(o=this.adjustMinorDigitsZeroes(o))&&(a+="."+o);var u=this.getCldrPattern(t<0);return a=this.addPlaceholders(a,u),a=this.replaceSymbols(a),a=this.performSpecificReplacements(a)}},{key:"extractMajorMinorDigits",value:function(t){var e=t.toString().split(".");return[e[0],void 0===e[1]?"":e[1]]}},{key:"splitMajorGroups",value:function(t){if(!this.numberSpecification.isGroupingUsed())return t;var e=t.split("").reverse(),n=[];for(n.push(e.splice(0,this.numberSpecification.getPrimaryGroupSize()));e.length;)n.push(e.splice(0,this.numberSpecification.getSecondaryGroupSize()));n=n.reverse();var r=[];return n.forEach((function(t){r.push(t.reverse().join(""))})),r.join(",")}},{key:"adjustMinorDigitsZeroes",value:function(t){var e=t;return e.length>this.numberSpecification.getMaxFractionDigits()&&(e=e.replace(/0+$/,"")),e.length<this.numberSpecification.getMinFractionDigits()&&(e=e.padEnd(this.numberSpecification.getMinFractionDigits(),"0")),e}},{key:"getCldrPattern",value:function(t){return t?this.numberSpecification.getNegativePattern():this.numberSpecification.getPositivePattern()}},{key:"replaceSymbols",value:function(t){var e=this.numberSpecification.getSymbol(),n={};return n["."]=e.getDecimal(),n[","]=e.getGroup(),n["-"]=e.getMinusSign(),n["%"]=e.getPercentSign(),n["+"]=e.getPlusSign(),this.strtr(t,n)}},{key:"strtr",value:function(t,e){var n=Object.keys(e).map(M);return t.split(RegExp("(".concat(n.join("|"),")"))).map((function(t){return e[t]||t})).join("")}},{key:"addPlaceholders",value:function(t,e){return e.replace(/#?(,#+)*0(\.[0#]+)*/,t)}},{key:"performSpecificReplacements",value:function(t){return this.numberSpecification instanceof m?t.split("¤").join(this.numberSpecification.getCurrencySymbol()):t}}])&&P(e.prototype,n),r&&P(e,r),t}(),I={},E=function(t,e,n,r){void 0===I[t]?e.text(e.text().replace(/([^\d]*)(?:[\d .,]+)([^\d]+)(?:[\d .,]+)(.*)/,"$1".concat(n,"$2").concat(r,"$3"))):e.text("".concat(I[t].format(n)," - ").concat(I[t].format(r)))},O=function(){$(".faceted-slider").each((function(){var t=$(this),e=t.data("slider-values"),n=t.data("slider-specifications");null!=n&&(I[t.data("slider-id")]=k.build(n)),E(t.data("slider-id"),$("#facet_label_".concat(t.data("slider-id"))),null===e?t.data("slider-min"):e[0],null===e?t.data("slider-max"):e[1]),$("#slider-range_".concat(t.data("slider-id"))).slider({range:!0,min:t.data("slider-min"),max:t.data("slider-max"),values:[null===e?t.data("slider-min"):e[0],null===e?t.data("slider-max"):e[1]],stop:function(e,n){var r=t.data("slider-encoded-url").split("?"),i=[];r.length>1&&(i=o(r[1]));var a=!1;i.forEach((function(t){"q"===t.name&&(a=!0)})),a||i.push({name:"q",value:""}),i.forEach((function(e){"q"===e.name&&(e.value+=[e.value.length>0?"/":"",t.data("slider-label"),"-",t.data("slider-unit"),"-",n.values[0],"-",n.values[1]].join(""))}));var u=[r[0],"?",$.param(i)].join("");prestashop.emit("updateFacets",u)},slide:function(e,n){E(t.data("slider-id"),$("#facet_label_".concat(t.data("slider-id"))),n.values[0],n.values[1])}})}))};n(4);
/**
* 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 <contact@prestashop.com>
* @copyright Since 2007 PrestaShop SA and Contributors
* @license https://opensource.org/licenses/AFL-3.0 Academic Free License 3.0 (AFL-3.0)
*/
$(document).ready((function(){prestashop.on("updateProductList",(function(){$(".faceted-overlay").remove(),O()})),O(),prestashop.on("updateFacets",(function(){1!==$(".faceted-overlay").length&&$("body").append('<div class="faceted-overlay">\n<div class="overlay__inner">\n<div class="overlay__content"><span class="spinner"></span></div>\n</div>\n</div>')}))}));n(6),n(8)}]);
//# sourceMappingURL=front.js.map