Current File : /home/pacjaorg/www/kmm/media/plg_quickicon_eos/js/snooze-es5.min.js
(function(){"use strict";function S(){S=function(){return i};var o,i={},u=Object.prototype,s=u.hasOwnProperty,p=Object.defineProperty||function(e,t,r){e[t]=r.value},g=typeof Symbol=="function"?Symbol:{},y=g.iterator||"@@iterator",b=g.asyncIterator||"@@asyncIterator",l=g.toStringTag||"@@toStringTag";function h(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{h({},"")}catch{h=function(t,r,a){return t[r]=a}}function A(e,t,r,a){var n=t&&t.prototype instanceof M?t:M,c=Object.create(n.prototype),f=new J(a||[]);return p(c,"_invoke",{value:V(e,r,f)}),c}function E(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(a){return{type:"throw",arg:a}}}i.wrap=A;var x="suspendedStart",z="suspendedYield",m="executing",L="completed",w={};function M(){}function G(){}function k(){}var N={};h(N,y,function(){return this});var C=Object.getPrototypeOf,T=C&&C(C(R([])));T&&T!==u&&s.call(T,y)&&(N=T);var _=k.prototype=M.prototype=Object.create(N);function U(e){["next","throw","return"].forEach(function(t){h(e,t,function(r){return this._invoke(t,r)})})}function P(e,t){function r(n,c,f,v){var d=E(e[n],e,c);if(d.type!=="throw"){var j=d.arg,I=j.value;return I&&typeof I=="object"&&s.call(I,"__await")?t.resolve(I.__await).then(function(O){r("next",O,f,v)},function(O){r("throw",O,f,v)}):t.resolve(I).then(function(O){j.value=O,f(j)},function(O){return r("throw",O,f,v)})}v(d.arg)}var a;p(this,"_invoke",{value:function(n,c){function f(){return new t(function(v,d){r(n,c,v,d)})}return a=a?a.then(f,f):f()}})}function V(e,t,r){var a=x;return function(n,c){if(a===m)throw new Error("Generator is already running");if(a===L){if(n==="throw")throw c;return{value:o,done:!0}}for(r.method=n,r.arg=c;;){var f=r.delegate;if(f){var v=D(f,r);if(v){if(v===w)continue;return v}}if(r.method==="next")r.sent=r._sent=r.arg;else if(r.method==="throw"){if(a===x)throw a=L,r.arg;r.dispatchException(r.arg)}else r.method==="return"&&r.abrupt("return",r.arg);a=m;var d=E(e,t,r);if(d.type==="normal"){if(a=r.done?L:z,d.arg===w)continue;return{value:d.arg,done:r.done}}d.type==="throw"&&(a=L,r.method="throw",r.arg=d.arg)}}}function D(e,t){var r=t.method,a=e.iterator[r];if(a===o)return t.delegate=null,r==="throw"&&e.iterator.return&&(t.method="return",t.arg=o,D(e,t),t.method==="throw")||r!=="return"&&(t.method="throw",t.arg=new TypeError("The iterator does not provide a '"+r+"' method")),w;var n=E(a,e.iterator,t.arg);if(n.type==="throw")return t.method="throw",t.arg=n.arg,t.delegate=null,w;var c=n.arg;return c?c.done?(t[e.resultName]=c.value,t.next=e.nextLoc,t.method!=="return"&&(t.method="next",t.arg=o),t.delegate=null,w):c:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,w)}function Z(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function q(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function J(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(Z,this),this.reset(!0)}function R(e){if(e||e===""){var t=e[y];if(t)return t.call(e);if(typeof e.next=="function")return e;if(!isNaN(e.length)){var r=-1,a=function n(){for(;++r<e.length;)if(s.call(e,r))return n.value=e[r],n.done=!1,n;return n.value=o,n.done=!0,n};return a.next=a}}throw new TypeError(typeof e+" is not iterable")}return G.prototype=k,p(_,"constructor",{value:k,configurable:!0}),p(k,"constructor",{value:G,configurable:!0}),G.displayName=h(k,l,"GeneratorFunction"),i.isGeneratorFunction=function(e){var t=typeof e=="function"&&e.constructor;return!!t&&(t===G||(t.displayName||t.name)==="GeneratorFunction")},i.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,k):(e.__proto__=k,h(e,l,"GeneratorFunction")),e.prototype=Object.create(_),e},i.awrap=function(e){return{__await:e}},U(P.prototype),h(P.prototype,b,function(){return this}),i.AsyncIterator=P,i.async=function(e,t,r,a,n){n===void 0&&(n=Promise);var c=new P(A(e,t,r,a),n);return i.isGeneratorFunction(t)?c:c.next().then(function(f){return f.done?f.value:c.next()})},U(_),h(_,l,"Generator"),h(_,y,function(){return this}),h(_,"toString",function(){return"[object Generator]"}),i.keys=function(e){var t=Object(e),r=[];for(var a in t)r.push(a);return r.reverse(),function n(){for(;r.length;){var c=r.pop();if(c in t)return n.value=c,n.done=!1,n}return n.done=!0,n}},i.values=R,J.prototype={constructor:J,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=o,this.done=!1,this.delegate=null,this.method="next",this.arg=o,this.tryEntries.forEach(q),!e)for(var t in this)t.charAt(0)==="t"&&s.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=o)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if(e.type==="throw")throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function r(d,j){return c.type="throw",c.arg=e,t.next=d,j&&(t.method="next",t.arg=o),!!j}for(var a=this.tryEntries.length-1;a>=0;--a){var n=this.tryEntries[a],c=n.completion;if(n.tryLoc==="root")return r("end");if(n.tryLoc<=this.prev){var f=s.call(n,"catchLoc"),v=s.call(n,"finallyLoc");if(f&&v){if(this.prev<n.catchLoc)return r(n.catchLoc,!0);if(this.prev<n.finallyLoc)return r(n.finallyLoc)}else if(f){if(this.prev<n.catchLoc)return r(n.catchLoc,!0)}else{if(!v)throw new Error("try statement without catch or finally");if(this.prev<n.finallyLoc)return r(n.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var a=this.tryEntries[r];if(a.tryLoc<=this.prev&&s.call(a,"finallyLoc")&&this.prev<a.finallyLoc){var n=a;break}}n&&(e==="break"||e==="continue")&&n.tryLoc<=t&&t<=n.finallyLoc&&(n=null);var c=n?n.completion:{};return c.type=e,c.arg=t,n?(this.method="next",this.next=n.finallyLoc,w):this.complete(c)},complete:function(e,t){if(e.type==="throw")throw e.arg;return e.type==="break"||e.type==="continue"?this.next=e.arg:e.type==="return"?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):e.type==="normal"&&t&&(this.next=t),w},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),q(r),w}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var a=r.completion;if(a.type==="throw"){var n=a.arg;q(r)}return n}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:R(e),resultName:t,nextLoc:r},this.method==="next"&&(this.arg=o),w}},i}function Y(o,i,u,s,p,g,y){try{var b=o[g](y),l=b.value}catch(h){u(h);return}b.done?i(l):Promise.resolve(l).then(s,p)}function H(o){return function(){var i=this,u=arguments;return new Promise(function(s,p){var g=o.apply(i,u);function y(l){Y(g,s,p,y,b,"next",l)}function b(l){Y(g,s,p,y,b,"throw",l)}y(void 0)})}}function W(o,i){if(o){if(typeof o=="string")return $(o,i);var u=Object.prototype.toString.call(o).slice(8,-1);if(u==="Object"&&o.constructor&&(u=o.constructor.name),u==="Map"||u==="Set")return Array.from(o);if(u==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(u))return $(o,i)}}function $(o,i){(i==null||i>o.length)&&(i=o.length);for(var u=0,s=new Array(i);u<i;u++)s[u]=o[u];return s}function X(o,i){var u=typeof Symbol<"u"&&o[Symbol.iterator]||o["@@iterator"];if(u)return(u=u.call(o)).next.bind(u);if(Array.isArray(o)||(u=W(o))||i&&o&&typeof o.length=="number"){u&&(o=u);var s=0;return function(){return s>=o.length?{done:!0}:{done:!1,value:o[s++]}}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}/**
 * @package     Joomla.Plugin
 * @subpackage  Quickicon.eos
 * @copyright  (C) 2023 Open Source Matters, Inc. <https://www.joomla.org>
 * @license    GNU General Public License version 2 or later; see LICENSE.txt
 */if(!Joomla)throw new Error("Joomla API is not properly initialised");var B=new URL(Joomla.getOptions("system.paths").baseFull+"index.php?option=com_ajax&group=quickicon&plugin=eos&format=json");function K(o,i){return F.apply(this,arguments)}function F(){return F=H(S().mark(function o(i,u){var s,p,g,y;return S().wrap(function(l){for(;;)switch(l.prev=l.next){case 0:s=S().mark(function h(){var A,E,x;return S().wrap(function(m){for(;;)switch(m.prev=m.next){case 0:if(A=y.value,E=Array.from(A.addedNodes),E.length){m.next=4;break}return m.abrupt("return",{v:void 0});case 4:if(x=E.filter(function(L){return L.querySelector(".eosnotify-snooze-btn")}),x.length){m.next=7;break}return m.abrupt("return",{v:void 0});case 7:u.disconnect(),x[0].querySelector(".eosnotify-snooze-btn").addEventListener("click",function(){return fetch(B,{headers:{"X-CSRF-Token":Joomla.getOptions("csrf.token")||""}}).then(function(L){L.ok&&x[0].closest("joomla-alert").close()})});case 9:case"end":return m.stop()}},h)}),g=X(i);case 2:if((y=g()).done){l.next=9;break}return l.delegateYield(s(),"t0",4);case 4:if(p=l.t0,!p){l.next=7;break}return l.abrupt("return",p.v);case 7:l.next=2;break;case 9:case"end":return l.stop()}},o)})),F.apply(this,arguments)}var Q=new MutationObserver(K);Q.observe(document.querySelector("#system-message-container"),{attributes:!1,childList:!0,subtree:!0})})();
Site is undergoing maintenance

PACJA Events

Maintenance mode is on

Site will be available soon. Thank you for your patience!