218 lines
386 KiB
JavaScript
218 lines
386 KiB
JavaScript
|
|
(()=>{var e,t,n={263:function(e,t){var n;
|
||
|
|
/*!
|
||
|
|
* jQuery JavaScript Library v3.7.1
|
||
|
|
* https://jquery.com/
|
||
|
|
*
|
||
|
|
* Copyright OpenJS Foundation and other contributors
|
||
|
|
* Released under the MIT license
|
||
|
|
* https://jquery.org/license
|
||
|
|
*
|
||
|
|
* Date: 2023-08-28T13:37Z
|
||
|
|
*/!function(t,n){"use strict";"object"==typeof e.exports?e.exports=t.document?n(t,!0):function(e){if(!e.document)throw new Error("jQuery requires a window with a document");return n(e)}:n(t)}("undefined"!=typeof window?window:this,(function(r,o){"use strict";var i=[],a=Object.getPrototypeOf,s=i.slice,c=i.flat?function(e){return i.flat.call(e)}:function(e){return i.concat.apply([],e)},u=i.push,l=i.indexOf,d={},p=d.toString,f=d.hasOwnProperty,h=f.toString,m=h.call(Object),g={},v=function(e){return"function"==typeof e&&"number"!=typeof e.nodeType&&"function"!=typeof e.item},y=function(e){return null!=e&&e===e.window},b=r.document,x={type:!0,src:!0,nonce:!0,noModule:!0};function w(e,t,n){var r,o,i=(n=n||b).createElement("script");if(i.text=e,t)for(r in x)(o=t[r]||t.getAttribute&&t.getAttribute(r))&&i.setAttribute(r,o);n.head.appendChild(i).parentNode.removeChild(i)}function j(e){return null==e?e+"":"object"==typeof e||"function"==typeof e?d[p.call(e)]||"object":typeof e}var k="3.7.1",C=/HTML$/i,T=function(e,t){return new T.fn.init(e,t)};function S(e){var t=!!e&&"length"in e&&e.length,n=j(e);return!v(e)&&!y(e)&&("array"===n||0===t||"number"==typeof t&&t>0&&t-1 in e)}function A(e,t){return e.nodeName&&e.nodeName.toLowerCase()===t.toLowerCase()}T.fn=T.prototype={jquery:k,constructor:T,length:0,toArray:function(){return s.call(this)},get:function(e){return null==e?s.call(this):e<0?this[e+this.length]:this[e]},pushStack:function(e){var t=T.merge(this.constructor(),e);return t.prevObject=this,t},each:function(e){return T.each(this,e)},map:function(e){return this.pushStack(T.map(this,(function(t,n){return e.call(t,n,t)})))},slice:function(){return this.pushStack(s.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},even:function(){return this.pushStack(T.grep(this,(function(e,t){return(t+1)%2})))},odd:function(){return this.pushStack(T.grep(this,(function(e,t){return t%2})))},eq:function(e){var t=this.length,n=+e+(e<0?t:0);return this.pushStack(n>=0&&n<t?[this[n]]:[])},end:function(){return this.prevObject||this.constructor()},push:u,sort:i.sort,splice:i.splice},T.extend=T.fn.extend=function(){var e,t,n,r,o,i,a=arguments[0]||{},s=1,c=arguments.length,u=!1;for("boolean"==typeof a&&(u=a,a=arguments[s]||{},s++),"object"==typeof a||v(a)||(a={}),s===c&&(a=this,s--);s<c;s++)if(null!=(e=arguments[s]))for(t in e)r=e[t],"__proto__"!==t&&a!==r&&(u&&r&&(T.isPlainObject(r)||(o=Array.isArray(r)))?(n=a[t],i=o&&!Array.isArray(n)?[]:o||T.isPlainObject(n)?n:{},o=!1,a[t]=T.extend(u,i,r)):void 0!==r&&(a[t]=r));return a},T.extend({expando:"jQuery"+(k+Math.random()).replace(/\D/g,""),isReady:!0,error:function(e){throw new Error(e)},noop:function(){},isPlainObject:function(e){var t,n;return!(!e||"[object Object]"!==p.call(e))&&(!(t=a(e))||"function"==typeof(n=f.call(t,"constructor")&&t.constructor)&&h.call(n)===m)},isEmptyObject:function(e){var t;for(t in e)return!1;return!0},globalEval:function(e,t,n){w(e,{nonce:t&&t.nonce},n)},each:function(e,t){var n,r=0;if(S(e))for(n=e.length;r<n&&!1!==t.call(e[r],r,e[r]);r++);else for(r in e)if(!1===t.call(e[r],r,e[r]))break;return e},text:function(e){var t,n="",r=0,o=e.nodeType;if(!o)for(;t=e[r++];)n+=T.text(t);return 1===o||11===o?e.textContent:9===o?e.documentElement.textContent:3===o||4===o?e.nodeValue:n},makeArray:function(e,t){var n=t||[];return null!=e&&(S(Object(e))?T.merge(n,"string"==typeof e?[e]:e):u.call(n,e)),n},inArray:function(e,t,n){return null==t?-1:l.call(t,e,n)},isXMLDoc:function(e){var t=e&&e.namespaceURI,n=e&&(e.ownerDocument||e).documentElement;return!C.test(t||n&&n.nodeName||"HTML")},merge:function(e,t){for(var n=+t.length,r=0,o=e.length;r<n;r++)e[o++]=t[r];return e.length=o,e},grep:function(e,t,n){for(var r=[],o=0,i=e.length,a=!n;o<i;o++)!t(e[o],o)!==a&&r.push(e[o]);return r},map:function(e,t,n){var r,o,i=0,a=[];if(S(e))for(r=e.length;i<r;i++)null!=(o=t(e[i],i,n))&&a.push(o);else for(i in e)null!=(o=t(e[i],i,n))&&a.push(o);return c(a)},guid:1,support:g}),"function"==typeof Symbol&&(T.fn[Symbol.iterator]=i[Symbol.iterator]),T.each("Boolean Number
|
||
|
|
/*!
|
||
|
|
* jQuery Migrate - v3.5.2 - 2024-07-17T22:31Z
|
||
|
|
* Copyright OpenJS Foundation and other contributors
|
||
|
|
*/!function(){"use strict";r=[n(263)],o=function(e){return function(e,t){function n(e,t){var n,r=/^(\d+)\.(\d+)\.(\d+)/,o=r.exec(e)||[],i=r.exec(t)||[];for(n=1;n<=3;n++){if(+o[n]>+i[n])return 1;if(+o[n]<+i[n])return-1}return 0}function r(t){return n(e.fn.jquery,t)>=0}e.migrateVersion="3.5.2";var o=Object.create(null);e.migrateDisablePatches=function(){var e;for(e=0;e<arguments.length;e++)o[arguments[e]]=!0},e.migrateEnablePatches=function(){var e;for(e=0;e<arguments.length;e++)delete o[arguments[e]]},e.migrateIsPatchEnabled=function(e){return!o[e]},t.console&&t.console.log&&(e&&r("3.0.0")&&!r("5.0.0")||t.console.log("JQMIGRATE: jQuery 3.x-4.x REQUIRED"),e.migrateWarnings&&t.console.log("JQMIGRATE: Migrate plugin loaded multiple times"),t.console.log("JQMIGRATE: Migrate is installed"+(e.migrateMute?"":" with logging active")+", version "+e.migrateVersion));var i={};e.migrateDeduplicateWarnings=!0,e.migrateWarnings=[],void 0===e.migrateTrace&&(e.migrateTrace=!0);function a(n,r){var o=t.console;!e.migrateIsPatchEnabled(n)||e.migrateDeduplicateWarnings&&i[r]||(i[r]=!0,e.migrateWarnings.push(r+" ["+n+"]"),o&&o.warn&&!e.migrateMute&&(o.warn("JQMIGRATE: "+r),e.migrateTrace&&o.trace&&o.trace()))}function s(e,t,n,r,o){Object.defineProperty(e,t,{configurable:!0,enumerable:!0,get:function(){return a(r,o),n},set:function(e){a(r,o),n=e}})}function c(t,n,r,o,i){var s=t[n];t[n]=function(){return i&&a(o,i),(e.migrateIsPatchEnabled(o)?r:s||e.noop).apply(this,arguments)}}function u(e,t,n,r,o){if(!o)throw new Error("No warning message provided");return c(e,t,n,r,o)}function l(e,t,n,r){return c(e,t,n,r)}e.migrateReset=function(){i={},e.migrateWarnings.length=0},"BackCompat"===t.document.compatMode&&a("quirks","jQuery is not compatible with Quirks Mode");var d,p={},f=e.fn.init,h=e.find,m=/\[(\s*[-\w]+\s*)([~|^$*]?=)\s*([-\w#]*?#[-\w#]*)\s*\]/,g=/\[(\s*[-\w]+\s*)([~|^$*]?=)\s*([-\w#]*?#[-\w#]*)\s*\]/g,v=/^[\s\uFEFF\xA0]+|([^\s\uFEFF\xA0])[\s\uFEFF\xA0]+$/g;for(d in l(e.fn,"init",(function(t){var n=Array.prototype.slice.call(arguments);return e.migrateIsPatchEnabled("selector-empty-id")&&"string"==typeof t&&"#"===t&&(a("selector-empty-id","jQuery( '#' ) is not a valid selector"),n[0]=[]),f.apply(this,n)}),"selector-empty-id"),e.fn.init.prototype=e.fn,l(e,"find",(function(e){var n=Array.prototype.slice.call(arguments);if("string"==typeof e&&m.test(e))try{t.document.querySelector(e)}catch(r){e=e.replace(g,(function(e,t,n,r){return"["+t+n+'"'+r+'"]'}));try{t.document.querySelector(e),a("selector-hash","Attribute selector with '#' must be quoted: "+n[0]),n[0]=e}catch(e){a("selector-hash","Attribute selector with '#' was not fixed: "+n[0])}}return h.apply(this,n)}),"selector-hash"),h)Object.prototype.hasOwnProperty.call(h,d)&&(e.find[d]=h[d]);u(e.fn,"size",(function(){return this.length}),"size","jQuery.fn.size() is deprecated and removed; use the .length property"),u(e,"parseJSON",(function(){return JSON.parse.apply(null,arguments)}),"parseJSON","jQuery.parseJSON is deprecated; use JSON.parse"),u(e,"holdReady",e.holdReady,"holdReady","jQuery.holdReady is deprecated"),u(e,"unique",e.uniqueSort,"unique","jQuery.unique is deprecated; use jQuery.uniqueSort"),s(e.expr,"filters",e.expr.pseudos,"expr-pre-pseudos","jQuery.expr.filters is deprecated; use jQuery.expr.pseudos"),s(e.expr,":",e.expr.pseudos,"expr-pre-pseudos","jQuery.expr[':'] is deprecated; use jQuery.expr.pseudos"),r("3.1.1")&&u(e,"trim",(function(e){return null==e?"":(e+"").replace(v,"$1")}),"trim","jQuery.trim is deprecated; use String.prototype.trim");r("3.2.0")&&(u(e,"nodeName",(function(e,t){return e.nodeName&&e.nodeName.toLowerCase()===t.toLowerCase()}),"nodeName","jQuery.nodeName is deprecated"),u(e,"isArray",Array.isArray,"isArray","jQuery.isArray is deprecated; use Array.isArray"));r("3.3.0")&&(u(e,"isNumeric",(function(e){var t=typeof e;return("number"===t||"string"===t)&&!isNaN(e-parseFloat(e))}),"isNumeric","jQuery.isNumeric() is deprecated"),e.each("Boolean Number String Function Array Date RegExp Object Error Symbol".split(" "),(function(e,t){p["[object "+t+"]"]=t.toLowerCase
|
||
|
|
* http://jqueryui.com
|
||
|
|
* Copyright 2013 jQuery Foundation and other contributors; Licensed MIT */
|
||
|
|
(function(e,t){function i(t,i){var a,n,r,o=t.nodeName.toLowerCase();return"area"===o?(a=t.parentNode,n=a.name,t.href&&n&&"map"===a.nodeName.toLowerCase()?(r=e("img[usemap=#"+n+"]")[0],!!r&&s(r)):!1):(/input|select|textarea|button|object/.test(o)?!t.disabled:"a"===o?t.href||i:i)&&s(t)}function s(t){return e.expr.filters.visible(t)&&!e(t).parents().addBack().filter(function(){return"hidden"===e.css(this,"visibility")}).length}var a=0,n=/^ui-id-\d+$/;e.ui=e.ui||{},e.extend(e.ui,{version:"1.10.3",keyCode:{BACKSPACE:8,COMMA:188,DELETE:46,DOWN:40,END:35,ENTER:13,ESCAPE:27,HOME:36,LEFT:37,NUMPAD_ADD:107,NUMPAD_DECIMAL:110,NUMPAD_DIVIDE:111,NUMPAD_ENTER:108,NUMPAD_MULTIPLY:106,NUMPAD_SUBTRACT:109,PAGE_DOWN:34,PAGE_UP:33,PERIOD:190,RIGHT:39,SPACE:32,TAB:9,UP:38}}),e.fn.extend({focus:function(t){return function(i,s){return"number"==typeof i?this.each(function(){var t=this;setTimeout(function(){e(t).focus(),s&&s.call(t)},i)}):t.apply(this,arguments)}}(e.fn.focus),scrollParent:function(){var t;return t=e.ui.ie&&/(static|relative)/.test(this.css("position"))||/absolute/.test(this.css("position"))?this.parents().filter(function(){return/(relative|absolute|fixed)/.test(e.css(this,"position"))&&/(auto|scroll)/.test(e.css(this,"overflow")+e.css(this,"overflow-y")+e.css(this,"overflow-x"))}).eq(0):this.parents().filter(function(){return/(auto|scroll)/.test(e.css(this,"overflow")+e.css(this,"overflow-y")+e.css(this,"overflow-x"))}).eq(0),/fixed/.test(this.css("position"))||!t.length?e(document):t},zIndex:function(i){if(i!==t)return this.css("zIndex",i);if(this.length)for(var s,a,n=e(this[0]);n.length&&n[0]!==document;){if(s=n.css("position"),("absolute"===s||"relative"===s||"fixed"===s)&&(a=parseInt(n.css("zIndex"),10),!isNaN(a)&&0!==a))return a;n=n.parent()}return 0},uniqueId:function(){return this.each(function(){this.id||(this.id="ui-id-"+ ++a)})},removeUniqueId:function(){return this.each(function(){n.test(this.id)&&e(this).removeAttr("id")})}}),e.extend(e.expr[":"],{data:e.expr.createPseudo?e.expr.createPseudo(function(t){return function(i){return!!e.data(i,t)}}):function(t,i,s){return!!e.data(t,s[3])},focusable:function(t){return i(t,!isNaN(e.attr(t,"tabindex")))},tabbable:function(t){var s=e.attr(t,"tabindex"),a=isNaN(s);return(a||s>=0)&&i(t,!a)}}),e("<a>").outerWidth(1).jquery||e.each(["Width","Height"],function(i,s){function a(t,i,s,a){return e.each(n,function(){i-=parseFloat(e.css(t,"padding"+this))||0,s&&(i-=parseFloat(e.css(t,"border"+this+"Width"))||0),a&&(i-=parseFloat(e.css(t,"margin"+this))||0)}),i}var n="Width"===s?["Left","Right"]:["Top","Bottom"],r=s.toLowerCase(),o={innerWidth:e.fn.innerWidth,innerHeight:e.fn.innerHeight,outerWidth:e.fn.outerWidth,outerHeight:e.fn.outerHeight};e.fn["inner"+s]=function(i){return i===t?o["inner"+s].call(this):this.each(function(){e(this).css(r,a(this,i)+"px")})},e.fn["outer"+s]=function(t,i){return"number"!=typeof t?o["outer"+s].call(this,t):this.each(function(){e(this).css(r,a(this,t,!0,i)+"px")})}}),e.fn.addBack||(e.fn.addBack=function(e){return this.add(null==e?this.prevObject:this.prevObject.filter(e))}),e("<a>").data("a-b","a").removeData("a-b").data("a-b")&&(e.fn.removeData=function(t){return function(i){return arguments.length?t.call(this,e.camelCase(i)):t.call(this)}}(e.fn.removeData)),e.ui.ie=!!/msie [\w.]+/.exec(navigator.userAgent.toLowerCase()),e.support.selectstart="onselectstart"in document.createElement("div"),e.fn.extend({disableSelection:function(){return this.bind((e.support.selectstart?"selectstart":"mousedown")+".ui-disableSelection",function(e){e.preventDefault()})},enableSelection:function(){return this.unbind(".ui-disableSelection")}}),e.extend(e.ui,{plugin:{add:function(t,i,s){var a,n=e.ui[t].prototype;for(a in s)n.plugins[a]=n.plugins[a]||[],n.plugins[a].push([i,s[a]])},call:function(e,t,i){var s,a=e.plugins[t];if(a&&e.element[0].parentNode&&11!==e.element[0].parentNode.nodeType)for(s=0;a.length>s;s++)e.options[a[s][0]]&&a[s][1].apply(e.element,i)}},hasScroll:function(t,i){if("hidden"===e(t).css("overflow"))return!1;var s=i&&"left"===i?"scrollLeft":"scrollTop",a=
|
||
|
|
* http://jqueryui.com
|
||
|
|
* Copyright 2013 jQuery Foundation and other contributors; Licensed MIT */
|
||
|
|
(function(e,t){var i=0,s=Array.prototype.slice,n=e.cleanData;e.cleanData=function(t){for(var i,s=0;null!=(i=t[s]);s++)try{e(i).triggerHandler("remove")}catch(a){}n(t)},e.widget=function(i,s,n){var a,r,o,h,l={},u=i.split(".")[0];i=i.split(".")[1],a=u+"-"+i,n||(n=s,s=e.Widget),e.expr[":"][a.toLowerCase()]=function(t){return!!e.data(t,a)},e[u]=e[u]||{},r=e[u][i],o=e[u][i]=function(e,i){return this._createWidget?(arguments.length&&this._createWidget(e,i),t):new o(e,i)},e.extend(o,r,{version:n.version,_proto:e.extend({},n),_childConstructors:[]}),h=new s,h.options=e.widget.extend({},h.options),e.each(n,function(i,n){return e.isFunction(n)?(l[i]=function(){var e=function(){return s.prototype[i].apply(this,arguments)},t=function(e){return s.prototype[i].apply(this,e)};return function(){var i,s=this._super,a=this._superApply;return this._super=e,this._superApply=t,i=n.apply(this,arguments),this._super=s,this._superApply=a,i}}(),t):(l[i]=n,t)}),o.prototype=e.widget.extend(h,{widgetEventPrefix:r?h.widgetEventPrefix:i},l,{constructor:o,namespace:u,widgetName:i,widgetFullName:a}),r?(e.each(r._childConstructors,function(t,i){var s=i.prototype;e.widget(s.namespace+"."+s.widgetName,o,i._proto)}),delete r._childConstructors):s._childConstructors.push(o),e.widget.bridge(i,o)},e.widget.extend=function(i){for(var n,a,r=s.call(arguments,1),o=0,h=r.length;h>o;o++)for(n in r[o])a=r[o][n],r[o].hasOwnProperty(n)&&a!==t&&(i[n]=e.isPlainObject(a)?e.isPlainObject(i[n])?e.widget.extend({},i[n],a):e.widget.extend({},a):a);return i},e.widget.bridge=function(i,n){var a=n.prototype.widgetFullName||i;e.fn[i]=function(r){var o="string"==typeof r,h=s.call(arguments,1),l=this;return r=!o&&h.length?e.widget.extend.apply(null,[r].concat(h)):r,o?this.each(function(){var s,n=e.data(this,a);return n?e.isFunction(n[r])&&"_"!==r.charAt(0)?(s=n[r].apply(n,h),s!==n&&s!==t?(l=s&&s.jquery?l.pushStack(s.get()):s,!1):t):e.error("no such method '"+r+"' for "+i+" widget instance"):e.error("cannot call methods on "+i+" prior to initialization; "+"attempted to call method '"+r+"'")}):this.each(function(){var t=e.data(this,a);t?t.option(r||{})._init():e.data(this,a,new n(r,this))}),l}},e.Widget=function(){},e.Widget._childConstructors=[],e.Widget.prototype={widgetName:"widget",widgetEventPrefix:"",defaultElement:"<div>",options:{disabled:!1,create:null},_createWidget:function(t,s){s=e(s||this.defaultElement||this)[0],this.element=e(s),this.uuid=i++,this.eventNamespace="."+this.widgetName+this.uuid,this.options=e.widget.extend({},this.options,this._getCreateOptions(),t),this.bindings=e(),this.hoverable=e(),this.focusable=e(),s!==this&&(e.data(s,this.widgetFullName,this),this._on(!0,this.element,{remove:function(e){e.target===s&&this.destroy()}}),this.document=e(s.style?s.ownerDocument:s.document||s),this.window=e(this.document[0].defaultView||this.document[0].parentWindow)),this._create(),this._trigger("create",null,this._getCreateEventData()),this._init()},_getCreateOptions:e.noop,_getCreateEventData:e.noop,_create:e.noop,_init:e.noop,destroy:function(){this._destroy(),this.element.unbind(this.eventNamespace).removeData(this.widgetName).removeData(this.widgetFullName).removeData(e.camelCase(this.widgetFullName)),this.widget().unbind(this.eventNamespace).removeAttr("aria-disabled").removeClass(this.widgetFullName+"-disabled "+"ui-state-disabled"),this.bindings.unbind(this.eventNamespace),this.hoverable.removeClass("ui-state-hover"),this.focusable.removeClass("ui-state-focus")},_destroy:e.noop,widget:function(){return this.element},option:function(i,s){var n,a,r,o=i;if(0===arguments.length)return e.widget.extend({},this.options);if("string"==typeof i)if(o={},n=i.split("."),i=n.shift(),n.length){for(a=o[i]=e.widget.extend({},this.options[i]),r=0;n.length-1>r;r++)a[n[r]]=a[n[r]]||{},a=a[n[r]];if(i=n.pop(),s===t)return a[i]===t?null:a[i];a[i]=s}else{if(s===t)return this.options[i]===t?null:this.options[i];o[i]=s}return this._setOptions(o),this},_setOptions:function(e){var t;for(t in e)this._setOption(t,e[t]);return this},_setOption:function(e,t){return this.options[e]=t,"disabl
|
||
|
|
* http://jqueryui.com
|
||
|
|
* Copyright 2013 jQuery Foundation and other contributors; Licensed MIT */
|
||
|
|
(function(t,e){function i(t,e,i){return[parseFloat(t[0])*(p.test(t[0])?e/100:1),parseFloat(t[1])*(p.test(t[1])?i/100:1)]}function s(e,i){return parseInt(t.css(e,i),10)||0}function n(e){var i=e[0];return 9===i.nodeType?{width:e.width(),height:e.height(),offset:{top:0,left:0}}:t.isWindow(i)?{width:e.width(),height:e.height(),offset:{top:e.scrollTop(),left:e.scrollLeft()}}:i.preventDefault?{width:0,height:0,offset:{top:i.pageY,left:i.pageX}}:{width:e.outerWidth(),height:e.outerHeight(),offset:e.offset()}}t.ui=t.ui||{};var a,o=Math.max,r=Math.abs,h=Math.round,l=/left|center|right/,c=/top|center|bottom/,u=/[\+\-]\d+(\.[\d]+)?%?/,d=/^\w+/,p=/%$/,f=t.fn.position;t.position={scrollbarWidth:function(){if(a!==e)return a;var i,s,n=t("<div style='display:block;width:50px;height:50px;overflow:hidden;'><div style='height:100px;width:auto;'></div></div>"),o=n.children()[0];return t("body").append(n),i=o.offsetWidth,n.css("overflow","scroll"),s=o.offsetWidth,i===s&&(s=n[0].clientWidth),n.remove(),a=i-s},getScrollInfo:function(e){var i=e.isWindow?"":e.element.css("overflow-x"),s=e.isWindow?"":e.element.css("overflow-y"),n="scroll"===i||"auto"===i&&e.width<e.element[0].scrollWidth,a="scroll"===s||"auto"===s&&e.height<e.element[0].scrollHeight;return{width:a?t.position.scrollbarWidth():0,height:n?t.position.scrollbarWidth():0}},getWithinInfo:function(e){var i=t(e||window),s=t.isWindow(i[0]);return{element:i,isWindow:s,offset:i.offset()||{left:0,top:0},scrollLeft:i.scrollLeft(),scrollTop:i.scrollTop(),width:s?i.width():i.outerWidth(),height:s?i.height():i.outerHeight()}}},t.fn.position=function(e){if(!e||!e.of)return f.apply(this,arguments);e=t.extend({},e);var a,p,m,g,v,b,_=t(e.of),y=t.position.getWithinInfo(e.within),w=t.position.getScrollInfo(y),x=(e.collision||"flip").split(" "),k={};return b=n(_),_[0].preventDefault&&(e.at="left top"),p=b.width,m=b.height,g=b.offset,v=t.extend({},g),t.each(["my","at"],function(){var t,i,s=(e[this]||"").split(" ");1===s.length&&(s=l.test(s[0])?s.concat(["center"]):c.test(s[0])?["center"].concat(s):["center","center"]),s[0]=l.test(s[0])?s[0]:"center",s[1]=c.test(s[1])?s[1]:"center",t=u.exec(s[0]),i=u.exec(s[1]),k[this]=[t?t[0]:0,i?i[0]:0],e[this]=[d.exec(s[0])[0],d.exec(s[1])[0]]}),1===x.length&&(x[1]=x[0]),"right"===e.at[0]?v.left+=p:"center"===e.at[0]&&(v.left+=p/2),"bottom"===e.at[1]?v.top+=m:"center"===e.at[1]&&(v.top+=m/2),a=i(k.at,p,m),v.left+=a[0],v.top+=a[1],this.each(function(){var n,l,c=t(this),u=c.outerWidth(),d=c.outerHeight(),f=s(this,"marginLeft"),b=s(this,"marginTop"),D=u+f+s(this,"marginRight")+w.width,T=d+b+s(this,"marginBottom")+w.height,C=t.extend({},v),M=i(k.my,c.outerWidth(),c.outerHeight());"right"===e.my[0]?C.left-=u:"center"===e.my[0]&&(C.left-=u/2),"bottom"===e.my[1]?C.top-=d:"center"===e.my[1]&&(C.top-=d/2),C.left+=M[0],C.top+=M[1],t.support.offsetFractions||(C.left=h(C.left),C.top=h(C.top)),n={marginLeft:f,marginTop:b},t.each(["left","top"],function(i,s){t.ui.position[x[i]]&&t.ui.position[x[i]][s](C,{targetWidth:p,targetHeight:m,elemWidth:u,elemHeight:d,collisionPosition:n,collisionWidth:D,collisionHeight:T,offset:[a[0]+M[0],a[1]+M[1]],my:e.my,at:e.at,within:y,elem:c})}),e.using&&(l=function(t){var i=g.left-C.left,s=i+p-u,n=g.top-C.top,a=n+m-d,h={target:{element:_,left:g.left,top:g.top,width:p,height:m},element:{element:c,left:C.left,top:C.top,width:u,height:d},horizontal:0>s?"left":i>0?"right":"center",vertical:0>a?"top":n>0?"bottom":"middle"};u>p&&p>r(i+s)&&(h.horizontal="center"),d>m&&m>r(n+a)&&(h.vertical="middle"),h.important=o(r(i),r(s))>o(r(n),r(a))?"horizontal":"vertical",e.using.call(this,t,h)}),c.offset(t.extend(C,{using:l}))})},t.ui.position={fit:{left:function(t,e){var i,s=e.within,n=s.isWindow?s.scrollLeft:s.offset.left,a=s.width,r=t.left-e.collisionPosition.marginLeft,h=n-r,l=r+e.collisionWidth-a-n;e.collisionWidth>a?h>0&&0>=l?(i=t.left+h+e.collisionWidth-a-n,t.left+=h-i):t.left=l>0&&0>=h?n:h>l?n+a-e.collisionWidth:n:h>0?t.left+=h:l>0?t.left-=l:t.left=o(t.left-r,t.left)},top:function(t,e){var i,s=e.within,n=s.isWindow?s.scrollTop:s.offset.top,a=e.within.height,r=
|
||
|
|
* http://jqueryui.com
|
||
|
|
* Copyright 2013 jQuery Foundation and other contributors; Licensed MIT */
|
||
|
|
(function(t){t.widget("ui.menu",{version:"1.10.3",defaultElement:"<ul>",delay:300,options:{icons:{submenu:"ui-icon-carat-1-e"},menus:"ul",position:{my:"left top",at:"right top"},role:"menu",blur:null,focus:null,select:null},_create:function(){this.activeMenu=this.element,this.mouseHandled=!1,this.element.uniqueId().addClass("ui-menu ui-widget ui-widget-content ui-corner-all").toggleClass("ui-menu-icons",!!this.element.find(".ui-icon").length).attr({role:this.options.role,tabIndex:0}).bind("click"+this.eventNamespace,t.proxy(function(t){this.options.disabled&&t.preventDefault()},this)),this.options.disabled&&this.element.addClass("ui-state-disabled").attr("aria-disabled","true"),this._on({"mousedown .ui-menu-item > a":function(t){t.preventDefault()},"click .ui-state-disabled > a":function(t){t.preventDefault()},"click .ui-menu-item:has(a)":function(e){var i=t(e.target).closest(".ui-menu-item");!this.mouseHandled&&i.not(".ui-state-disabled").length&&(this.mouseHandled=!0,this.select(e),i.has(".ui-menu").length?this.expand(e):this.element.is(":focus")||(this.element.trigger("focus",[!0]),this.active&&1===this.active.parents(".ui-menu").length&&clearTimeout(this.timer)))},"mouseenter .ui-menu-item":function(e){var i=t(e.currentTarget);i.siblings().children(".ui-state-active").removeClass("ui-state-active"),this.focus(e,i)},mouseleave:"collapseAll","mouseleave .ui-menu":"collapseAll",focus:function(t,e){var i=this.active||this.element.children(".ui-menu-item").eq(0);e||this.focus(t,i)},blur:function(e){this._delay(function(){t.contains(this.element[0],this.document[0].activeElement)||this.collapseAll(e)})},keydown:"_keydown"}),this.refresh(),this._on(this.document,{click:function(e){t(e.target).closest(".ui-menu").length||this.collapseAll(e),this.mouseHandled=!1}})},_destroy:function(){this.element.removeAttr("aria-activedescendant").find(".ui-menu").addBack().removeClass("ui-menu ui-widget ui-widget-content ui-corner-all ui-menu-icons").removeAttr("role").removeAttr("tabIndex").removeAttr("aria-labelledby").removeAttr("aria-expanded").removeAttr("aria-hidden").removeAttr("aria-disabled").removeUniqueId().show(),this.element.find(".ui-menu-item").removeClass("ui-menu-item").removeAttr("role").removeAttr("aria-disabled").children("a").removeUniqueId().removeClass("ui-corner-all ui-state-hover").removeAttr("tabIndex").removeAttr("role").removeAttr("aria-haspopup").children().each(function(){var e=t(this);e.data("ui-menu-submenu-carat")&&e.remove()}),this.element.find(".ui-menu-divider").removeClass("ui-menu-divider ui-widget-content")},_keydown:function(e){function i(t){return t.replace(/[\-\[\]{}()*+?.,\\\^$|#\s]/g,"\\$&")}var s,n,a,o,r,h=!0;switch(e.keyCode){case t.ui.keyCode.PAGE_UP:this.previousPage(e);break;case t.ui.keyCode.PAGE_DOWN:this.nextPage(e);break;case t.ui.keyCode.HOME:this._move("first","first",e);break;case t.ui.keyCode.END:this._move("last","last",e);break;case t.ui.keyCode.UP:this.previous(e);break;case t.ui.keyCode.DOWN:this.next(e);break;case t.ui.keyCode.LEFT:this.collapse(e);break;case t.ui.keyCode.RIGHT:this.active&&!this.active.is(".ui-state-disabled")&&this.expand(e);break;case t.ui.keyCode.ENTER:case t.ui.keyCode.SPACE:this._activate(e);break;case t.ui.keyCode.ESCAPE:this.collapse(e);break;default:h=!1,n=this.previousFilter||"",a=String.fromCharCode(e.keyCode),o=!1,clearTimeout(this.filterTimer),a===n?o=!0:a=n+a,r=RegExp("^"+i(a),"i"),s=this.activeMenu.children(".ui-menu-item").filter(function(){return r.test(t(this).children("a").text())}),s=o&&-1!==s.index(this.active.next())?this.active.nextAll(".ui-menu-item"):s,s.length||(a=String.fromCharCode(e.keyCode),r=RegExp("^"+i(a),"i"),s=this.activeMenu.children(".ui-menu-item").filter(function(){return r.test(t(this).children("a").text())})),s.length?(this.focus(e,s),s.length>1?(this.previousFilter=a,this.filterTimer=this._delay(function(){delete this.previousFilter},1e3)):delete this.previousFilter):delete this.previousFilter}h&&e.preventDefault()},_activate:function(t){this.active.is(".ui-state-disabled")||(this.active.children("a[aria-haspopup='true
|
||
|
|
* http://jqueryui.com
|
||
|
|
* Copyright 2013 jQuery Foundation and other contributors; Licensed MIT */
|
||
|
|
(function(t){var e=0;t.widget("ui.autocomplete",{version:"1.10.3",defaultElement:"<input>",options:{appendTo:null,autoFocus:!1,delay:300,minLength:1,position:{my:"left top",at:"left bottom",collision:"none"},source:null,change:null,close:null,focus:null,open:null,response:null,search:null,select:null},pending:0,_create:function(){var e,i,s,n=this.element[0].nodeName.toLowerCase(),a="textarea"===n,o="input"===n;this.isMultiLine=a?!0:o?!1:this.element.prop("isContentEditable"),this.valueMethod=this.element[a||o?"val":"text"],this.isNewMenu=!0,this.element.addClass("ui-autocomplete-input").attr("autocomplete","off"),this._on(this.element,{keydown:function(n){if(this.element.prop("readOnly"))return e=!0,s=!0,i=!0,undefined;e=!1,s=!1,i=!1;var a=t.ui.keyCode;switch(n.keyCode){case a.PAGE_UP:e=!0,this._move("previousPage",n);break;case a.PAGE_DOWN:e=!0,this._move("nextPage",n);break;case a.UP:e=!0,this._keyEvent("previous",n);break;case a.DOWN:e=!0,this._keyEvent("next",n);break;case a.ENTER:case a.NUMPAD_ENTER:this.menu.active&&(e=!0,n.preventDefault(),this.menu.select(n));break;case a.TAB:this.menu.active&&this.menu.select(n);break;case a.ESCAPE:this.menu.element.is(":visible")&&(this._value(this.term),this.close(n),n.preventDefault());break;default:i=!0,this._searchTimeout(n)}},keypress:function(s){if(e)return e=!1,(!this.isMultiLine||this.menu.element.is(":visible"))&&s.preventDefault(),undefined;if(!i){var n=t.ui.keyCode;switch(s.keyCode){case n.PAGE_UP:this._move("previousPage",s);break;case n.PAGE_DOWN:this._move("nextPage",s);break;case n.UP:this._keyEvent("previous",s);break;case n.DOWN:this._keyEvent("next",s)}}},input:function(t){return s?(s=!1,t.preventDefault(),undefined):(this._searchTimeout(t),undefined)},focus:function(){this.selectedItem=null,this.previous=this._value()},blur:function(t){return this.cancelBlur?(delete this.cancelBlur,undefined):(clearTimeout(this.searching),this.close(t),this._change(t),undefined)}}),this._initSource(),this.menu=t("<ul>").addClass("ui-autocomplete ui-front").appendTo(this._appendTo()).menu({role:null}).hide().data("ui-menu"),this._on(this.menu.element,{mousedown:function(e){e.preventDefault(),this.cancelBlur=!0,this._delay(function(){delete this.cancelBlur});var i=this.menu.element[0];t(e.target).closest(".ui-menu-item").length||this._delay(function(){var e=this;this.document.one("mousedown",function(s){s.target===e.element[0]||s.target===i||t.contains(i,s.target)||e.close()})})},menufocus:function(e,i){if(this.isNewMenu&&(this.isNewMenu=!1,e.originalEvent&&/^mouse/.test(e.originalEvent.type)))return this.menu.blur(),this.document.one("mousemove",function(){t(e.target).trigger(e.originalEvent)}),undefined;var s=i.item.data("ui-autocomplete-item");!1!==this._trigger("focus",e,{item:s})?e.originalEvent&&/^key/.test(e.originalEvent.type)&&this._value(s.value):this.liveRegion.text(s.value)},menuselect:function(t,e){var i=e.item.data("ui-autocomplete-item"),s=this.previous;this.element[0]!==this.document[0].activeElement&&(this.element.focus(),this.previous=s,this._delay(function(){this.previous=s,this.selectedItem=i})),!1!==this._trigger("select",t,{item:i})&&this._value(i.value),this.term=this._value(),this.close(t),this.selectedItem=i}}),this.liveRegion=t("<span>",{role:"status","aria-live":"polite"}).addClass("ui-helper-hidden-accessible").insertBefore(this.element),this._on(this.window,{beforeunload:function(){this.element.removeAttr("autocomplete")}})},_destroy:function(){clearTimeout(this.searching),this.element.removeClass("ui-autocomplete-input").removeAttr("autocomplete"),this.menu.element.remove(),this.liveRegion.remove()},_setOption:function(t,e){this._super(t,e),"source"===t&&this._initSource(),"appendTo"===t&&this.menu.element.appendTo(this._appendTo()),"disabled"===t&&e&&this.xhr&&this.xhr.abort()},_appendTo:function(){var e=this.options.appendTo;return e&&(e=e.jquery||e.nodeType?t(e):this.document.find(e).eq(0)),e||(e=this.element.closest(".ui-front")),e.length||(e=this.document[0].body),e},_initSource:function(){var e,i,s=this;t.isArray(this.options.source)?(e=this
|
||
|
|
* Bootstrap v5.3.3 (https://getbootstrap.com/)
|
||
|
|
* Copyright 2011-2024 The Bootstrap Authors (https://github.com/twbs/bootstrap/graphs/contributors)
|
||
|
|
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
|
||
|
|
*/const At=new Map,zr={set(n,e,t){At.has(n)||At.set(n,new Map);const r=At.get(n);if(!r.has(e)&&r.size!==0){console.error(`Bootstrap doesn't allow more than one instance per element. Bound instance: ${Array.from(r.keys())[0]}.`);return}r.set(e,t)},get(n,e){return At.has(n)&&At.get(n).get(e)||null},remove(n,e){if(!At.has(n))return;const t=At.get(n);t.delete(e),t.size===0&&At.delete(n)}},al=1e6,cl=1e3,Gr="transitionend",To=n=>(n&&window.CSS&&window.CSS.escape&&(n=n.replace(/#([^\s"#']+)/g,(e,t)=>`#${CSS.escape(t)}`)),n),ll=n=>n==null?`${n}`:Object.prototype.toString.call(n).match(/\s([a-z]+)/i)[1].toLowerCase(),ul=n=>{do n+=Math.floor(Math.random()*al);while(document.getElementById(n));return n},dl=n=>{if(!n)return 0;let{transitionDuration:e,transitionDelay:t}=window.getComputedStyle(n);const r=Number.parseFloat(e),s=Number.parseFloat(t);return!r&&!s?0:(e=e.split(",")[0],t=t.split(",")[0],(Number.parseFloat(e)+Number.parseFloat(t))*cl)},Co=n=>{n.dispatchEvent(new Event(Gr))},ht=n=>!n||typeof n!="object"?!1:(typeof n.jquery!="undefined"&&(n=n[0]),typeof n.nodeType!="undefined"),Tt=n=>ht(n)?n.jquery?n[0]:n:typeof n=="string"&&n.length>0?document.querySelector(To(n)):null,Jt=n=>{if(!ht(n)||n.getClientRects().length===0)return!1;const e=getComputedStyle(n).getPropertyValue("visibility")==="visible",t=n.closest("details:not([open])");if(!t)return e;if(t!==n){const r=n.closest("summary");if(r&&r.parentNode!==t||r===null)return!1}return e},Ct=n=>!n||n.nodeType!==Node.ELEMENT_NODE||n.classList.contains("disabled")?!0:typeof n.disabled!="undefined"?n.disabled:n.hasAttribute("disabled")&&n.getAttribute("disabled")!=="false",Lo=n=>{if(!document.documentElement.attachShadow)return null;if(typeof n.getRootNode=="function"){const e=n.getRootNode();return e instanceof ShadowRoot?e:null}return n instanceof ShadowRoot?n:n.parentNode?Lo(n.parentNode):null},zn=()=>{},yn=n=>{n.offsetHeight},Mo=()=>window.jQuery&&!document.body.hasAttribute("data-bs-no-jquery")?window.jQuery:null,Qr=[],fl=n=>{document.readyState==="loading"?(Qr.length||document.addEventListener("DOMContentLoaded",()=>{for(const e of Qr)e()}),Qr.push(n)):n()},We=()=>document.documentElement.dir==="rtl",Ke=n=>{fl(()=>{const e=Mo();if(e){const t=n.NAME,r=e.fn[t];e.fn[t]=n.jQueryInterface,e.fn[t].Constructor=n,e.fn[t].noConflict=()=>(e.fn[t]=r,n.jQueryInterface)}})},Ie=(n,e=[],t=n)=>typeof n=="function"?n(...e):t,Oo=(n,e,t=!0)=>{if(!t){Ie(n);return}const r=5,s=dl(e)+r;let o=!1;const i=({target:a})=>{a===e&&(o=!0,e.removeEventListener(Gr,i),Ie(n))};e.addEventListener(Gr,i),setTimeout(()=>{o||Co(e)},s)},Xr=(n,e,t,r)=>{const s=n.length;let o=n.indexOf(e);return o===-1?!t&&r?n[s-1]:n[0]:(o+=t?1:-1,r&&(o=(o+s)%s),n[Math.max(0,Math.min(o,s-1))])},pl=/[^.]*(?=\..*)\.|.*/,hl=/\..*/,ml=/::\d+$/,Jr={};let Po=1;const ko={mouseenter:"mouseover",mouseleave:"mouseout"},gl=new Set(["click","dblclick","mouseup","mousedown","contextmenu","mousewheel","DOMMouseScroll","mouseover","mouseout","mousemove","selectstart","selectend","keydown","keypress","keyup","orientationchange","touchstart","touchmove","touchend","touchcancel","pointerdown","pointermove","pointerup","pointerleave","pointercancel","gesturestart","gesturechange","gestureend","focus","blur","change","reset","select","submit","focusin","focusout","load","unload","beforeunload","resize","move","DOMContentLoaded","readystatechange","error","abort","scroll"]);function Do(n,e){return e&&`${e}::${Po++}`||n.uidEvent||Po++}function No(n){const e=Do(n);return n.uidEvent=e,Jr[e]=Jr[e]||{},Jr[e]}function vl(n,e){return function t(r){return es(r,{delegateTarget:n}),t.oneOff&&b.off(n,r.type,e),e.apply(n,[r])}}function _l(n,e,t){return function r(s){const o=n.querySelectorAll(e);for(let{target:i}=s;i&&i!==this;i=i.parentNode)for(const a of o)if(a===i)return es(s,{delegateTarget:i}),r.oneOff&&b.off(n,s.type,e,t),t.apply(i,[s])}}function Ro(n,e,t=null){return Object.values(n).find(r=>r.callable===e&&r.delegationSelector===t)}function Io(n,e,t){const r=typeof e=="string",s=r?t:e||t;let o=$o(n);return gl.has(o)||(o=n),[r,s,o]}function xo(n,e,t,r,s){if(
|
||
|
|
<div class="alert alert-dismissible fade d-flex align-items-center" role="alert">
|
||
|
|
<h4 class="alert-heading w-100 d-none"></h4>
|
||
|
|
<i class="material-icons flex-shrink-0 me-2"></i>
|
||
|
|
<div class="alert-body flex-fill"></div>
|
||
|
|
<button type="button" class="btn-close ms-2" data-bs-dismiss="alert"></button>
|
||
|
|
</div>
|
||
|
|
`,dp={type:"info",dismissible:!0};var fp=Object.defineProperty,Mi=Object.getOwnPropertySymbols,pp=Object.prototype.hasOwnProperty,hp=Object.prototype.propertyIsEnumerable,Oi=(n,e,t)=>e in n?fp(n,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):n[e]=t,Pi=(n,e)=>{for(var t in e||(e={}))pp.call(e,t)&&Oi(n,t,e[t]);if(Mi)for(var t of Mi(e))hp.call(e,t)&&Oi(n,t,e[t]);return n};const mp=(n,e)=>{let t={instance:null,element:null,show:()=>!1,hide:()=>!1,dispose:()=>!1,title:()=>!1,message:()=>!1,remove:()=>!1};const r=gp(e);if(r){const s=vp(r,e==null?void 0:e.title),o=_p(r,n),i=new Sn(r);t={instance:i,element:r,show:()=>r.isConnected?(r.classList.add("show"),!0):!1,hide:()=>r.isConnected?(r.classList.remove("show"),!0):!1,dispose:()=>r.isConnected?(i.dispose(),!0):!1,title:a=>s!=null&&s.isConnected?(a&&(s.innerHTML=a),s.innerHTML):!1,message:a=>o!=null&&o.isConnected?(a&&(o.innerHTML=a),o.innerHTML):!1,remove:()=>r.isConnected?(r.remove(),!0):!1}}return t},gp=n=>{var e;const t=Pi(Pi({},dp),n),r=(e=t.selector)!=null?e:p.alert.selector,s=document.querySelector(r);if(s){const o=document.createElement("div");o.innerHTML=up;const i=o.querySelector(p.alert.alert);if(i){i.classList.add(cp[t.type]);const a=i.querySelector(p.alert.icon);if(a)if(t.title===void 0){const c=t.icon?t.icon:lp[t.type];a.setAttribute("aria-hidden","true"),a.innerHTML=`&#x${c};`}else i.classList.add("flex-wrap"),a.classList.add("d-none");if(t.dismissible===!1){const c=i.querySelector(p.alert.close);c==null||c.classList.add("d-none")}t.classlist&&t.classlist.split(" ").forEach(c=>{c&&i.classList.add(c)}),s.appendChild(i)}return i}return console.error("The selector for alert is not valid: %c%o","color: white",r),null},vp=(n,e)=>{if(e){const t=n.querySelector(p.alert.heading);if(t)return t.innerHTML=e,t.classList.remove("d-none"),t}return null},_p=(n,e)=>{const t=n.querySelector(p.alert.body);return t&&(t.innerHTML=e),t},cr=mp,Ep={light:"bg-light-subtle border-light-subtle",dark:"bg-dark-subtle border-dark-subtle",primary:"bg-primary-subtle border-primary-subtle",secondary:"bg-secondary-subtle border-secondary-subtle",info:"bg-info-subtle border-info-subtle",success:"bg-success-subtle border-success-subtle",warning:"bg-warning-subtle border-warning-subtle",danger:"bg-danger-subtle border-danger-subtle"},bp=`
|
||
|
|
<div class="toast-container toast-container--fallback position-fixed top-0 end-0 p-3" id="js-toast-container">
|
||
|
|
<template class="js-toast-template">
|
||
|
|
<div class="toast toast--fallback" role="alert" aria-live="assertive" aria-atomic="true">
|
||
|
|
<div class="d-flex">
|
||
|
|
<div class="toast-body"></div>
|
||
|
|
<button type="button" class="btn-close me-2 m-auto d-none" data-bs-dismiss="toast"></button>
|
||
|
|
</div>
|
||
|
|
</div>
|
||
|
|
</template>
|
||
|
|
</div>
|
||
|
|
`,yp={type:"info",autohide:!0,delay:3e3};var wp=Object.defineProperty,ki=Object.getOwnPropertySymbols,Sp=Object.prototype.hasOwnProperty,Ap=Object.prototype.propertyIsEnumerable,Di=(n,e,t)=>e in n?wp(n,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):n[e]=t,Ni=(n,e)=>{for(var t in e||(e={}))Sp.call(e,t)&&Di(n,t,e[t]);if(ki)for(var t of ki(e))Ap.call(e,t)&&Di(n,t,e[t]);return n};const Tp=(n,e)=>{let t={instance:null,element:null,content:null,show:()=>!1,hide:()=>!1,dispose:()=>!1,message:()=>!1,remove:()=>!1};const r=Cp(e==null?void 0:e.template);if(r){Mp(r,n);const s=Ni(Ni({},yp),e);Op(r,s),s.autohide===!1&&Pp(r);const o=r.querySelector(p.toast.body);if(o){const i=new Ln(r,{autohide:s.autohide,delay:s.delay});t={instance:i,element:r,content:o,show:()=>r.isConnected?(i.show(),!0):!1,hide:()=>r.isConnected?(i.hide(),!0):!1,dispose:()=>r.isConnected?(i.dispose(),!0):!1,message:a=>r.isConnected?(a&&(o.innerHTML=a),o.innerHTML):!1,remove:()=>r.isConnected?(r.remove(),!0):!1}}}return t},Cp=n=>{const e=document.querySelector(p.toast.container);return e?n===void 0?_s(e):Ri(e,n):Lp(n)},_s=(n,e=!0)=>{const t=n.querySelector(p.toast.template),r=t==null?void 0:t.content.cloneNode(!0),s=r==null?void 0:r.querySelector(p.toast.toast),o=s==null?void 0:s.querySelector(p.toast.body);if(s&&o)return n.appendChild(s),s;if(e){const i=Ii();if(i)return n.innerHTML=i.innerHTML,_s(n,!1)}return xi("Failed to clone toast template.","Check the toast markup in theme or JS fallback."),null},Ri=(n,e)=>{const t=document.createElement("div");t.innerHTML=e;const r=t==null?void 0:t.querySelector(p.toast.toast),s=r==null?void 0:r.querySelector(p.toast.body);return r&&s?(n.appendChild(r),r):(xi("The override toast template is not valid.","Reference: https://getbootstrap.com/docs/5.0/components/toasts/"),null)},Lp=n=>{const e=document.querySelector("body"),t=Ii();if(e&&t){const r=n===void 0?_s(t,!1):Ri(t,n);if(r)return t.appendChild(r),e.appendChild(t),r}return null},Ii=()=>{const n=document.createElement("div");return n.innerHTML=bp,n.querySelector(p.toast.container)},Mp=(n,e)=>{const t=n.querySelector(p.toast.body);t&&(t.innerHTML=e)},Op=(n,e)=>{let t=Ep[e.type];const r=e.classlist;r&&(t=t.concat(" ",r.trim())),t.split(" ").forEach(s=>{s&&n.classList.add(s)})},Pp=n=>{var e;const t=n.querySelector(p.toast.close);if(t){const r=(e=n.classList.toString().match(/(?:text-bg-)\w+/))==null?void 0:e[0],s=r==null?void 0:r.split("-").pop();s&&["dark","primary","secondary","success"].includes(s)?t.classList.add("btn-close-white"):t.classList.add("btn-close-black"),t.classList.remove("d-none")}},xi=(n,e)=>{e?(console.group("useToast"),console.error(n),console.info(e),console.groupEnd()):console.error(n)},lr=Tp;var kp=Object.defineProperty,$i=Object.getOwnPropertySymbols,Dp=Object.prototype.hasOwnProperty,Np=Object.prototype.propertyIsEnumerable,qi=(n,e,t)=>e in n?kp(n,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):n[e]=t,Vi=(n,e)=>{for(var t in e||(e={}))Dp.call(e,t)&&qi(n,t,e[t]);if($i)for(var t of $i(e))Np.call(e,t)&&qi(n,t,e[t]);return n};const _t={DELETE_FROM_CART:"delete-from-cart",UPDATE_PRODUCT_QUANTITY:"update-product-quantity",SUBMIT_VOUCHER:"submit-voucher",REMOVE_VOUCHER:"remove-voucher"};class Rp{constructor(){this.state={lastUpdateAction:null,storedFocusElement:null,storedFocusElementId:null}}get(e){return this.state[e]}set(e,t){this.state[e]=t}merge(e){this.state=Vi(Vi({},this.state),e)}}const Mm=null,ve=new Rp;class Ip{getStoredFocus(){return ve.get("storedFocusElement")}getStoredFocusId(){return ve.get("storedFocusElementId")}setFocus(e){e.focus(),ve.set("storedFocusElement",e),ve.set("storedFocusElementId",e.id)}storeFocus(){const e=document.activeElement;ve.set("storedFocusElement",e),ve.set("storedFocusElementId",e.id)}clearStoredFocus(){ve.set("storedFocusElement",null),ve.set("storedFocusElementId",null)}restoreFocus(e=null){let t=!1;try{const r=ve.get("storedFocusElementId"),s=ve.get("storedFocusElement");if(r){const o=document.getElementById(r);o&&(o.focus(),t=!0)}!t&&s&&document.contains(s)&&(s.focus(),t=!0),!t&&e&&document.contain
|
||
|
|
* 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)
|
||
|
|
*/const Wp=n=>n.split("&").map(e=>{const[t,r]=e.split("=");return{name:t,value:decodeURIComponent(r).replace(/\+/g," ")}});function Gi(n,e){const{prestashop:t,Theme:{events:r}}=window;let s=[];const i=e.target.dataset.sliderEncodedUrl.split("?");i!==void 0&&i.length>1&&(s=Wp(i[1]));let a=!1;s.forEach(l=>{l.name==="q"&&(a=!0)}),a||s.push({name:"q",value:""}),s.forEach(l=>{l.name==="q"&&(l.value+=[l.value.length>0?"/":"",e.target.dataset.sliderLabel,"-",e.target.dataset.sliderUnit,"-",n[0],"-",n[1]].join(""))});const c=[i[0],"?",$.param(s)].join("");t.emit(r.updateFacets,c)}const mr=()=>{const{Theme:n}=window;document.querySelectorAll(n.selectors.facetedsearch.filterSlider).forEach(e=>{const t=e.querySelector(n.selectors.facetedsearch.rangeContainer),r=t.dataset.sliderCurrency;let s="suffix",o=t.dataset.sliderUnit,i=2,a=".",c="";const l=JSON.parse(t.dataset.sliderSpecifications);l!==null&&(l.positivePattern!==void 0&&l.positivePattern.indexOf("\xA4")===0&&(s="prefix"),l.currencySymbol!==void 0&&(o=l.currencySymbol),l.numberSymbols!==void 0&&(a=l.numberSymbols[0],c=l.numberSymbols[1]),l.minFractionDigits!==void 0&&(i=l.minFractionDigits));const d=parseInt(t.dataset.sliderMin,10),v=parseInt(t.dataset.sliderMax,10),g=t.dataset.sliderDirection==="1"?"rtl":"ltr";let m;const k=Ec()({mark:a,thousand:c,decimals:i,[s]:s==="prefix"?o:` ${o}`}),E=JSON.parse(t.dataset.sliderValues);if(t.noUiSlider)t.noUiSlider.updateOptions({start:E!=null?E:[d,v],tooltips:[k,k],range:{min:d,max:v}},!0),t.noUiSlider.removeTooltips(),t.noUiSlider.on("set",(S,M,x,I,P,j)=>{Gi(S,j)}),t.noUiSlider.on("update",S=>{const M=S.map(P=>s==="suffix"?`${P}${o}`:`${o}${P}`),I=m.target.closest(n.selectors.facetedsearch.filterSlider).querySelector(n.selectors.facetedsearch.rangeValues);I.innerHTML=M.join(" - ")});else{const S=t.querySelector(".noUi-base");S&&S.remove(),m=vc.create(t,{start:E!=null?E:[d,v],tooltips:[k,k],direction:g,connect:[!1,!0,!1],range:{min:d,max:v}}),m.removeTooltips(),m.on("set",(M,x,I,P,j,U)=>{Gi(M,U)}),m.on("update",M=>{const x=M.map(j=>s==="suffix"?`${j}${o}`:`${o}${j}`),P=m.target.closest(n.selectors.facetedsearch.filterSlider).querySelector(n.selectors.facetedsearch.rangeValues);P.innerHTML=x.join(" - ")}),m.target.querySelectorAll(".noUi-handle").forEach(M=>{M.setAttribute("tabindex","0");const x=r?`Adjust filter range in ${r}`:`Adjust filter range' in ${o}`;M.setAttribute("aria-label",x)})}})},Qi=n=>{const{Theme:e}=window,t=document.querySelector(e.selectors.pageLoader);t&&t.classList.toggle("d-none",n)};document.addEventListener("DOMContentLoaded",()=>{const{prestashop:n,Theme:{events:e}}=window;Bp(),n.on(e.updateProductList,()=>{Qi(!0),mr()}),mr(),n.on(e.updateFacets,()=>{Qi(!1)})});var Kp=(n,e,t)=>new Promise((r,s)=>{var o=c=>{try{a(t.next(c))}catch(l){s(l)}},i=c=>{try{a(t.throw(c))}catch(l){s(l)}},a=c=>c.done?r(c.value):Promise.resolve(c.value).then(o,i);a((t=t.apply(n,e)).next())});const{prestashop:Et}=window;Et&&(Et.responsive=Et.responsive||{},Et.responsive.current_width=window.innerWidth,Et.responsive.min_width=768,Et.responsive.mobile=Et.responsive.current_width<Et.responsive.min_width);function Xi(){var n;const{prestashop:e,Theme:{events:t}}=window;if(e.responsive.mobile)Array.prototype.forEach.call(document.querySelectorAll("*[id^='_desktop_']"),r=>{const s=document.querySelector(`#${r.id}`),o=document.querySelector(`#${r.id.replace("_desktop_","_mobile_")}`);o&&s&&z(s,o)}),mr();else{Array.prototype.forEach.call(document.querySelectorAll("*[id^='_mobile_']"),s=>Kp(this,null,function*(){const o=document.querySelector(`#${s.id}`),i=document.querySelector(`#${s.id.replace("_mobile_","_desktop_")}`);i&&o&&z(o,i)}));const r=document.querySelector(he.offCanvasFaceted);r!=null&&((n=vt.getInstance(r))==null||n.hide()),mr()}e.emit(t.responsiveUpdate,{mobile:e.responsive.mobile})}function Ji(){const{prestashop:n}=window;n.responsive=n.responsive||{},n.responsive.current_width=window.innerWidth,n.responsive.min_width=768,n.responsive.mobile=n.responsive.current_width<n.responsive.min_width,window.addEventListener("resize",()=>{const e=n
|
||
|
|
* 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.
|
||
|
|
*
|
||
|
|
* 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 https://devdocs.prestashop.com/ for more information.
|
||
|
|
*
|
||
|
|
* @author PrestaShop SA and Contributors <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)
|
||
|
|
*/const{passwordPolicy:ae}=p,Oh=n=>{try{return JSON.parse(n)}catch(e){return{}}},Ph=(n,e,t)=>{const r=n.querySelector(ae.requirementLengthIcon),s=n.querySelector(ae.requirementScoreIcon),o=!e.validity.tooShort&&!e.validity.tooLong;r&&(r.classList.toggle("text-success",o),r.classList.toggle("text-danger",!o)),s&&(s.classList.toggle("text-success",t),s.classList.toggle("text-danger",!t))},kh=(n,e)=>{const t=Nh(e),r=n.querySelector(ae.progressBar);r&&(r.style.width=`${t.percentage}%`,r.classList.remove("bg-success","bg-danger"),r.classList.add(t.color))},Dh=(n,e,t,r,s)=>{var o,i;let a="";if(r){if(!s){const c=n.querySelector(ae.invalidMessage);a=`${(i=c==null?void 0:c.dataset)==null?void 0:i.psData}
|
||
|
|
`||`Your password is too weak
|
||
|
|
`}}else{const c=n.querySelector(ae.lengthMessage);a=`${(o=c==null?void 0:c.dataset)==null?void 0:o.psData}
|
||
|
|
`||`Your password length is invalid
|
||
|
|
`}return e.feedback.warning&&e.feedback.warning in t&&(a+=`
|
||
|
|
${t[e.feedback.warning]}
|
||
|
|
`),e.feedback.suggestions&&e.feedback.suggestions.forEach(c=>{c&&c in t&&(a+=a?`
|
||
|
|
${t[c]}`:t[c])}),a},Nh=n=>{const e={0:{color:"bg-danger",percentage:20},1:{color:"bg-danger",percentage:40},2:{color:"bg-danger",percentage:60},3:{color:"bg-success",percentage:80},4:{color:"bg-success",percentage:100}},r=Object.keys(e).map(Number).includes(n)?n:0;return e[r]},Cs=(n,e,t)=>Ts(void 0,null,function*(){const r=n.value;if(r===""){e.classList.add("d-none");return}try{const{prestashop:s}=window,o=yield s.checkPasswordScore(r),i=parseInt(n.dataset.minscore||"3",10);e.classList.remove("d-none");const a=!n.validity.tooShort&&!n.validity.tooLong,c=i<=o.score;Ph(e,n,c),kh(e,o.score);const l=e.querySelector(ae.announceValidity),d=e.querySelector(ae.validMessage);if(c&&a){if(n.setCustomValidity(""),n.reportValidity(),l&&d){const v=d.dataset.psData;v&&v!==""&&(l.textContent=v)}}else{const v=Dh(e,o,t,a,c);n.setCustomValidity(v),l&&(l.textContent=v)}}catch(s){console.error("Password validation error:",s)}}),Rh=Bt((...n)=>Ts(void 0,null,function*(){const e=n[0];e&&e.setAttribute("aria-live","polite")}),250),Ih=(n,e,t)=>{const r=n.querySelector(ae.requirementLength),s=n.querySelector(ae.requirementScore),o=n.querySelector(ae.requirementLengthMessage),i=n.querySelector(ae.requirementScoreMessage);if(o&&(r!=null&&r.dataset.translation)){const a=e.getAttribute("minlength")||"8",c=e.getAttribute("maxlength")||"72";o.innerText=(0,ba.sprintf)(r.dataset.translation,a,c)}if(i&&(s!=null&&s.dataset.translation)){const a=e.dataset.minscore||"3",c=t[a]||"Strong";i.innerText=(0,ba.sprintf)(s.dataset.translation,c)}},ln=(n,e,t=null)=>{var r;const s=(r=t==null?void 0:t.querySelector(n))!=null?r:document.querySelector(n);if(!s)throw new Error(e);return s},xh=(n,e,t)=>{const r=()=>Cs(n,e,t);n.addEventListener("input",r);const s=n.closest("form");let o=null;s&&(o=()=>Ts(void 0,null,function*(){yield Cs(n,e,t)}),s.addEventListener("submit",o));const i=e.querySelector(ae.announceValidity);return i&&Rh(i),{inputHandler:r,formSubmitHandler:o,form:s}},$h=()=>{let n;try{n=ln(ae.field,`The element "${ae.field}" for password policy is not found.`)}catch(v){return}const e=ln(ae.input,`The input element "${ae.input}" for password policy is not found.`,n),t=ln(ae.feedbackTarget,`The target element "${ae.feedbackTarget}" for password policy is not found.`,n),r=ln(ae.template,`The feedback template "${ae.template}" for password policy is not found.`);t.innerHTML=r.innerHTML;const s=ln(ae.feedbackContainer,`The feedback container element "${ae.feedbackContainer}" for password policy is not found.`,t),o=ln(ae.hint,`The hint element "${ae.hint}" for password policy is not found.`,n),i=Oh(o.innerHTML);Ih(s,e,i);const{inputHandler:a,formSubmitHandler:c,form:l}=xh(e,s,i);return e.value!==""&&Cs(e,s,i),{element:n,cleanup:()=>{e.removeEventListener("input",a),l&&c&&l.removeEventListener("submit",c)}}};function ya(){const{prestashop:n}=window;let e=null,t=null,r=null;function s(o){const i=Zi();i.innerHTML=o;const a=i.querySelector(p.blockcartModal);if(!a)throw new Error("Blockcart modal element not found in provided HTML.");let c="unknown";const l=v=>{(v.key==="Escape"||v.key==="Esc")&&(c="keyboard");const g=document.activeElement;g&&g.closest('[data-bs-dismiss="modal"]')&&(v.key==="Enter"||v.key===" "||v.code==="Space")&&(c="keyboard")},d=()=>{c="pointer"};a.addEventListener("shown.bs.modal",()=>{var v;document.addEventListener("keydown",l,{capture:!0}),document.addEventListener("pointerdown",d,{capture:!0});const g=a.querySelector(p.blockcartModalStatus);g&&(g.textContent=(v=g.getAttribute("data-ps-data"))!=null?v:"")}),a.addEventListener("hidden.bs.modal",v=>{const g=v.currentTarget;g&&n.emit(kn.updateProduct,{reason:g.dataset,event:v}),document.removeEventListener("keydown",l,{capture:!0}),document.removeEventListener("pointerdown",d,{capture:!0}),c==="keyboard"&&e&&document.contains(e)?(e.focus(),t=null):e||console.error("Last blockcart opener not found."),a.remove()}),ye.getOrCreateInstance(a,{focus:!0,keyboard:!0}).show()}n.on(kn.clickQuickview,o=>{r=o}),document.addEventListener("click",o=>{var i,a,c,l;const d=o.target;if(!d)return;const{quickview:v,qui
|
||
|
|
(()=>{var e={267:()=>{},379:e=>{"use strict";var t=[];function r(e){for(var r=-1,n=0;n<t.length;n++)if(t[n].identifier===e){r=n;break}return r}function n(e,n){for(var a={},o=[],i=0;i<e.length;i++){var c=e[i],u=n.base?c[0]+n.base:c[0],l=a[u]||0,d="".concat(u," ").concat(l);a[u]=l+1;var p=r(d),f={css:c[1],media:c[2],sourceMap:c[3],supports:c[4],layer:c[5]};if(-1!==p)t[p].references++,t[p].updater(f);else{var v=s(f,n);n.byIndex=i,t.splice(i,0,{identifier:d,updater:v,references:1})}o.push(d)}return o}function s(e,t){var r=t.domAPI(t);return r.update(e),function(t){if(t){if(t.css===e.css&&t.media===e.media&&t.sourceMap===e.sourceMap&&t.supports===e.supports&&t.layer===e.layer)return;r.update(e=t)}else r.remove()}}e.exports=function(e,s){var a=n(e=e||[],s=s||{});return function(e){e=e||[];for(var o=0;o<a.length;o++){var i=r(a[o]);t[i].references--}for(var c=n(e,s),u=0;u<a.length;u++){var l=r(a[u]);0===t[l].references&&(t[l].updater(),t.splice(l,1))}a=c}}},569:e=>{"use strict";var t={};e.exports=function(e,r){var n=function(e){if(void 0===t[e]){var r=document.querySelector(e);if(window.HTMLIFrameElement&&r instanceof window.HTMLIFrameElement)try{r=r.contentDocument.head}catch(e){r=null}t[e]=r}return t[e]}(e);if(!n)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");n.appendChild(r)}},216:e=>{"use strict";e.exports=function(e){var t=document.createElement("style");return e.setAttributes(t,e.attributes),e.insert(t,e.options),t}},565:(e,t,r)=>{"use strict";e.exports=function(e){var t=r.nc;t&&e.setAttribute("nonce",t)}},795:e=>{"use strict";e.exports=function(e){if("undefined"==typeof document)return{update:function(){},remove:function(){}};var t=e.insertStyleElement(e);return{update:function(r){!function(e,t,r){var n="";r.supports&&(n+="@supports (".concat(r.supports,") {")),r.media&&(n+="@media ".concat(r.media," {"));var s=void 0!==r.layer;s&&(n+="@layer".concat(r.layer.length>0?" ".concat(r.layer):""," {")),n+=r.css,s&&(n+="}"),r.media&&(n+="}"),r.supports&&(n+="}");var a=r.sourceMap;a&&"undefined"!=typeof btoa&&(n+="\n/*# sourceMappingURL=data:application/json;base64,".concat(btoa(unescape(encodeURIComponent(JSON.stringify(a))))," */")),t.styleTagTransform(n,e,t.options)}(t,e,r)},remove:function(){!function(e){if(null===e.parentNode)return!1;e.parentNode.removeChild(e)}(t)}}}},589:e=>{"use strict";e.exports=function(e,t){if(t.styleSheet)t.styleSheet.cssText=e;else{for(;t.firstChild;)t.removeChild(t.firstChild);t.appendChild(document.createTextNode(e))}}}},t={};function r(n){var s=t[n];if(void 0!==s)return s.exports;var a=t[n]={exports:{}};return e[n](a,a.exports,r),a.exports}r.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return r.d(t,{a:t}),t},r.d=(e,t)=>{for(var n in t)r.o(t,n)&&!r.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},r.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),r.nc=void 0,(()=>{"use strict";var e=r(379),t=r.n(e),n=r(795),s=r.n(n),a=r(569),o=r.n(a),i=r(565),c=r.n(i),u=r(216),l=r.n(u),d=r(589),p=r.n(d),f=r(267),v=r.n(f),m={};m.styleTagTransform=p(),m.setAttributes=c(),m.insert=o().bind(null,"head"),m.domAPI=s(),m.insertStyleElement=l(),t()(v(),m),v()&&v().locals&&v().locals,$(window).ready((()=>{const e=$(".blockreassurance_product img.svg, .blockreassurance img.svg").map((function(){return $(this).attr("src")})).toArray();e.filter(((t,r)=>e.indexOf(t)===r)).forEach((function(e){const t=$(`.blockreassurance_product img.svg.invisible[src="${e}"], .blockreassurance img.svg.invisible[src="${e}"]`);0!==t.length&&$.ajax({url:e,type:"GET",success(r){if($.isXMLDoc(r)){let n=$(r).find("svg");n=n.attr("data-img-url",e),n=n.removeAttr("xmlns:a"),n.find("path[fill]").attr("fill",window.psr_icon_color),n.find("path:not([fill])").css("fill",window.psr_icon_color),t.each((function(){const e=$(this).attr("id"),t=$(this).attr("class");let r=n.clone();r=void 0!==e?r.attr("id",e):r,r=void 0!==t?r.attr("class",`${t} replaced-svg`):r.attr("class"," replaced-svg"),r.removeClass("invisible"),$(this).replaceWith(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 version 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 and Contributors <contact@prestashop.com>
|
||
|
|
* @copyright Since 2007 PrestaShop SA and Contributors
|
||
|
|
* @license https://opensource.org/licenses/AFL-3.0 Academic Free License version 3.0
|
||
|
|
*/
|
||
|
|
function addNotification(productId,productAttributeId){if(typeof productId==='undefined'){var ids=$('div.js-mailalert > input[type=hidden]');productId=ids.eq(0).val();productIdAttribute=ids.eq(1).val()}
|
||
|
|
$.ajax({type:'POST',url:$('div.js-mailalert').data('url'),data:'id_product='+productId+'&id_product_attribute='+productAttributeId+'&customer_email='+$('div.js-mailalert input[type=email]').val(),success:function(resp){resp=JSON.parse(resp);$('.js-mailalert-alerts').html('<article class="mt-1 alert alert-'+(resp.error?'danger':'success')+'" role="alert" data-alert="'+(resp.error?'error':'success')+'">'+resp.message+'</article>').show();if(!resp.error){$('div.js-mailalert > .js-mailalert-add, div.js-mailalert > input[type=email], div.js-mailalert .gdpr_consent_wrapper').hide()}}});return!1}
|
||
|
|
$(document).on('ready',function(){const mailAlertSubmitButtonClass='.js-mailalert-add';const mailAlertWrapper=$('.js-mailalert');const mailAlertSubmitButton=mailAlertWrapper.find(mailAlertSubmitButtonClass);if(mailAlertWrapper.find('#gdpr_consent, .gdpr_consent').length){setTimeout(()=>{mailAlertSubmitButton.prop('disabled',!0);mailAlertWrapper.find('[name="psgdpr_consent_checkbox"]').on('change',function(e){e.stopPropagation();mailAlertSubmitButton.prop('disabled',!$(this).prop('checked'))})},0)}
|
||
|
|
$(document).on('click',mailAlertSubmitButtonClass,function(e){e.preventDefault();addNotification($(this).data('product'),$(this).data('product-attribute'))});$(document).on('click','.js-remove-email-alert',function(){var self=$(this);var ids=self.attr('rel').replace('js-id-emailalerts-','');ids=ids.split('-');var id_product_mail_alert=ids[0];var id_product_attribute_mail_alert=ids[1];var parent=self.closest('li');$.ajax({url:self.data('url'),type:"POST",data:{'id_product':id_product_mail_alert,'id_product_attribute':id_product_attribute_mail_alert},success:function(result){if(result=='0'){parent.fadeOut("normal",function(){parent.remove()})}}})})});/**
|
||
|
|
* 2007-2020 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 <contact@prestashop.com>
|
||
|
|
* @copyright 2007-2020 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
|
||
|
|
*/
|
||
|
|
$(document).ready(function(){$('.block_newsletter form').on('submit',function(){var psemailsubscriptionForm=$(this);if(typeof psemailsubscription_subscription==='undefined'){return!0}
|
||
|
|
$('.block_newsletter_alert').remove();$.ajax({type:'POST',dataType:'JSON',url:psemailsubscription_subscription,cache:!1,data:$(this).serialize(),success:function(data){if(data.nw_error){psemailsubscriptionForm.prepend('<p class="alert alert-danger block_newsletter_alert">'+data.msg+'</p>')}else{psemailsubscriptionForm.prepend('<p class="alert alert-success block_newsletter_alert">'+data.msg+'</p>')}},error:function(err){console.log(err)}});return!1})});/**
|
||
|
|
* 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 version 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 and Contributors <contact@prestashop.com>
|
||
|
|
* @copyright Since 2007 PrestaShop SA and Contributors
|
||
|
|
* @license https://opensource.org/licenses/AFL-3.0 Academic Free License version 3.0
|
||
|
|
*/
|
||
|
|
$(document).ready(function(){prestashop.on('updateProduct',function(params){if(params.eventType==='updatedProductCombination'){var productId=$('input[name="id_product"]').val();var $productAttributes=$(params.event.handleObj.selector);var attributes=[];$productAttributes.each(function(key,attribute){if($(attribute).is("input")&&!$(attribute).is(':checked')){return}
|
||
|
|
attributes.push($(attribute).val())})
|
||
|
|
ajaxProductCombinationChange(productId,attributes)}});function ajaxProductCombinationChange(productId,attributes){$.ajax({type:'POST',url:prestashopFacebookAjaxController,data:{action:'CustomizeProduct',ajax:!0,id_product:productId,attribute_ids:attributes,}})}});/**
|
||
|
|
* 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.
|
||
|
|
*
|
||
|
|
* 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 https://devdocs.prestashop.com/ for more information.
|
||
|
|
*
|
||
|
|
* @author PrestaShop SA and Contributors <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)
|
||
|
|
*/
|
||
|
|
jQuery.fn.rating=function(generalOptions){const $ratings=$(this);$ratings.each(function initRating(){const $ratingComponent=$(this);var options=generalOptions?generalOptions:{};if(!options.grade&&$ratingComponent.data('grade')){options.grade=$ratingComponent.data('grade')}
|
||
|
|
if(!options.min&&$ratingComponent.data('min')){options.min=$ratingComponent.data('min')}
|
||
|
|
if(!options.max&&$ratingComponent.data('max')){options.max=$ratingComponent.data('max')}
|
||
|
|
if(!options.input&&$ratingComponent.data('input')){options.input=$ratingComponent.data('input')}
|
||
|
|
var componentOptions=jQuery.extend({grade:null,input:null,min:1,max:5,starWidth:20},options);const minValue=Math.min(componentOptions.min,componentOptions.max);const maxValue=Math.max(componentOptions.min,componentOptions.max);const ratingValue=Math.min(Math.max(minValue,componentOptions.grade),maxValue);$ratingComponent.html('');$ratingComponent.append('<div class="star-content star-empty clearfix"></div>');$ratingComponent.append('<div class="star-content star-full clearfix"></div>');const emptyStars=$('.star-empty',this);const fullStars=$('.star-full',this);const emptyStar=$('<div class="star"></div>');const fullStar=$('<div class="star-on"></div>');var ratingInput;if(componentOptions.input){ratingInput=$('<input type="number" name="'+componentOptions.input+'" id="'+componentOptions.input+'" />');ratingInput.val(ratingValue);ratingInput.css('display','none');ratingInput.on('change',displayInteractiveGrade);$ratingComponent.append(ratingInput);initInteractiveGrade()}else{displayGrade(ratingValue)}
|
||
|
|
function initInteractiveGrade(){emptyStars.html('');fullStars.html('');var newStar;for(var i=minValue;i<=maxValue;++i){newStar=emptyStar.clone();newStar.data('grade',i);newStar.on('mouseenter mouseleave',function overStar(){var overIndex=$('.star',fullStars).index($(this));$('.star',fullStars).each(function overStars(){$(this).removeClass('star-on');var starIndex=$('.star',fullStars).index($(this));if(starIndex<=overIndex){$(this).addClass('star-hover')}else{$(this).removeClass('star-hover')}})});newStar.on('click',function selectGrade(){var selectedGrade=$(this).data('grade');ratingInput.val(selectedGrade);ratingChosen=!0});fullStars.append(newStar)}
|
||
|
|
fullStars.on('mouseenter',function(){}).on('mouseleave',displayInteractiveGrade);displayInteractiveGrade()}
|
||
|
|
function displayInteractiveGrade(){$('.star',fullStars).each(function displayStar(){var starValue=$(this).data('grade');$(this).removeClass('star-hover');if(starValue<=ratingInput.val()){$(this).addClass('star-on')}else{$(this).removeClass('star-on')}})}
|
||
|
|
function displayGrade(grade){emptyStars.html('');fullStars.html('');var newStar;for(var i=minValue;i<=maxValue;++i){if(i<=Math.floor(grade)){newStar=emptyStar.clone();newStar.css('visibility','hidden');emptyStars.append(newStar);fullStars.append(fullStar.clone())}else if(i>Math.ceil(grade)){newStar=emptyStar.clone();emptyStars.append(newStar.clone())}else{var fullWidth=(grade-i+1)*componentOptions.starWidth;var emptyWidth=componentOptions.starWidth-fullWidth;newStar=emptyStar.clone();newStar.css('visibility','hidden');newStar.css('width',fullWidth);emptyStars.append(newStar);newStar=emptyStar.clone();newStar.css('width',emptyWidth);newStar.css('background-position','0px -'+fullWidth+'px');newStar.css('background-position','-'+fullWidth+'px 0px');newStar.css('marginLeft',0);emptyStars.append(newStar);fullStar.css('width',fullWidth);fullStars.append(fullStar.clone())}}}})};;;;;/**
|
||
|
|
* 2007-2020 PrestaShop and Contributors
|
||
|
|
*
|
||
|
|
* 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.
|
||
|
|
*
|
||
|
|
* @author PrestaShop SA <contact@prestashop.com>
|
||
|
|
* @copyright 2007-2020 PrestaShop SA and Contributors
|
||
|
|
* @license https://opensource.org/licenses/AFL-3.0 Academic Free License 3.0 (AFL-3.0)
|
||
|
|
* International Registered Trademark & Property of PrestaShop SA
|
||
|
|
*/
|
||
|
|
$(document).ready(function(){prestashop.blockcart=prestashop.blockcart||{};var showModal=prestashop.blockcart.showModal||function(modal){var $body=$('body');$body.append(modal);$body.one('click','#blockcart-modal',function(event){if(event.target.id==='blockcart-modal'){$(event.target).remove()}})};prestashop.on('updateCart',function(event){var refreshURL=$('.blockcart').data('refresh-url');var requestData={};if(event&&event.reason&&typeof event.resp!=='undefined'&&!event.resp.hasError){requestData={id_customization:event.reason.idCustomization,id_product_attribute:event.reason.idProductAttribute,id_product:event.reason.idProduct,action:event.reason.linkAction}}
|
||
|
|
if(event&&event.resp&&event.resp.hasError){prestashop.emit('showErrorNextToAddtoCartButton',{errorMessage:event.resp.errors.join('<br/>')})}
|
||
|
|
$.post(refreshURL,requestData).then(function(resp){var html=$('<div />').append($.parseHTML(resp.preview));$('.blockcart').replaceWith($(resp.preview).find('.blockcart'));if(resp.modal){showModal(resp.modal)}}).fail(function(resp){prestashop.emit('handleError',{eventType:'updateShoppingCart',resp:resp})})})})
|