/
home
/
assocoweys
/
sompe
/
installation
/
media
/
js
/
Upload File
HOME
function _typeof(a){"@babel/helpers - typeof";return _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(a){return typeof a}:function(a){return a&&"function"==typeof Symbol&&a.constructor===Symbol&&a!==Symbol.prototype?"symbol":typeof a},_typeof(a)}if("undefined"==typeof akeeba)var akeeba={};"undefined"==typeof akeeba.System&&(akeeba.System={documentReady:function(){},params:{AjaxURL:"",errorCallback:null,password:"",errorDialogId:"errorDialog",errorDialogMessageId:"errorDialogPre"},notification:{},modalDialog:null}),akeeba.System.getOptions=function(a,b){return"undefined"==typeof b&&(b=null),akeeba.System.optionsStorage||akeeba.System.loadOptions(),void 0===akeeba.System.optionsStorage[a]?b:akeeba.System.optionsStorage[a]},akeeba.System.loadOptions=function(a){if(!a){for(var b,c,d,e=document.querySelectorAll(".akeeba-script-options.new"),f=0,g=0,h=e.length;g<h;g++)c=e[g],b=c.text||c.textContent,d=JSON.parse(b),d&&(akeeba.System.loadOptions(d),f++),c.classList.remove("new"),c.classList.add("loaded");if(f)return}if(!akeeba.System.optionsStorage)return void(akeeba.System.optionsStorage=a||{});if(a)for(var j in a)a.hasOwnProperty(j)&&(akeeba.System.optionsStorage[j]=a[j])},akeeba.System.defaultErrorHandler=function(a){null==a||"undefined"==typeof a||alert("An error has occurred\n"+a)},akeeba.System.modalErrorHandler=function(a){var b=akeeba.System.getOptions("akeeba.System.params.errorDialogId",akeeba.System.params.errorDialogId),c=akeeba.System.getOptions("akeeba.System.params.errorDialogMessageId",akeeba.System.params.errorDialogMessageId),d=document.getElementById(b),e="error";if(null!=d){var f=document.getElementById(c);f.innerHTML=a,e=d.innerHTML}akeeba.Modal.open({content:e,width:"80%"})},akeeba.System.extractResponse=function(a){var b={isValid:!1,data:null},c={'#"\\#\\"#':!1,"#"\\#\\"#":!0,"#"\\#\\"#":!0,"###":!1};for(var d in c){var e=c[d],f=a.indexOf(d),g="";if(-1!==f&&(g=0===f?a:a.substr(f),g=g.substr(d.length),f=g.lastIndexOf(d),-1!==f)){if(g=g.substr(0,f),e){var h=document.createElement("textarea");h.innerHTML=g,g=h.innerText}try{var i=JSON.parse(g)}catch(a){continue}return b.isValid=!0,b.data=i,b}}return"{"===a.substr(0,1)&&"}"===a.substr(-1)&&(b.isValid=!0,b.data=JSON.parse(a)),b},akeeba.System.doAjax=function(a,b,c,d){var e=new Date().getTime()/1e3,f=parseInt(e,10);a._cacheBustingJunk=Math.round(1e3*(e-f))/1e3,null==d&&(d=6e5);var g=akeeba.System.getOptions("akeeba.System.params.AjaxURL",akeeba.System.params.AjaxURL);a.hasOwnProperty("ajaxURL")&&(g=a.ajaxURL,delete a.url);var h={type:"POST",url:g,cache:!1,data:a,timeout:d,success:function(a){var d=akeeba.System.extractResponse(a);return d.isValid?void b(d.data):(a=akeeba.System.sanitizeErrorMessage(a),a="Invalid AJAX data: "+a,void(null==c?null!=akeeba.System.params.errorCallback&&akeeba.System.params.errorCallback(a):c(a)))},error:function(a,b){var d=a.responseText?a.responseText:"",e="<strong>AJAX Loading Error</strong><br>HTTP Status: "+a.status+" ("+a.statusText+")<br>";e=e+"Internal status: "+b+"<br>",e=e+"XHR ReadyState: "+a.readyState+"<br>",e=e+"Raw server response:<br>"+akeeba.System.sanitizeErrorMessage(d),null==c?null!=akeeba.System.params.errorCallback&&akeeba.System.params.errorCallback(e):c(e)}};akeeba.Ajax.ajax(h)},akeeba.System.sanitizeErrorMessage=function(a){if(-1<a.indexOf("<script"))try{var b;a=new DOMParser().parseFromString(null!==(b=a)&&void 0!==b?b:"","text/html").textContent}catch(b){a="(HTML containing script tags)"}return a},akeeba.System.triggerEvent=function(a,b){if("undefined"!=typeof a&&null!==a&&("string"==typeof a&&(a=document.getElementById(a)),null!==a)&&"object"==_typeof(a)&&a instanceof Element){if("click"===b&&"function"==typeof a.click)return console.log(a),void a.click();if("function"==typeof window.jQuery)return void window.jQuery(a).trigger(b);if(document.fireEvent&&"undefined"==typeof window.Event)return void a.fireEvent("on"+b);var c=null;c=document.createEvent("Event"),c.initEvent(b,!0,!0),a.dispatchEvent(c)}},akeeba.System.submitForm=function(a,b,c){b||(b=document.getElementById("adminForm")),a&&(b.task.value=a),b.noValidate=!c,c?b.hasAttribute("novalidate")&&b.removeAttribute("novalidate"):b.setAttribute("novalidate","");var d=document.createElement("input");d.style.display="none",d.type="submit",b.appendChild(d),d.click(),b.removeChild(d)},akeeba.System.assignDefaultErrorHandler=function(){if(akeeba.System.params.errorCallback=akeeba.System.modalErrorHandler,"undefined"==typeof akeeba.Modal)return void(akeeba.System.params.errorCallback=akeeba.System.defaultErrorHandler);var a=akeeba.System.getOptions("akeeba.System.params.errorDialogId",akeeba.System.params.errorDialogId),b=akeeba.System.getOptions("akeeba.System.params.errorDialogMessageId",akeeba.System.params.errorDialogMessageId);if(""===a||null===a||""===b||null===b)return void(akeeba.System.params.errorCallback=akeeba.System.defaultErrorHandler);var c=document.getElementById(a),d=document.getElementById(b);(null===c||null===d)&&(akeeba.System.params.errorCallback=akeeba.System.defaultErrorHandler)},akeeba.System.Text={strings:{},_:function(a,b){var c,d,e=null!==(c=null===(d=akeeba.System.getOptions("brs"))||void 0===d?void 0:d.language)&&void 0!==c?c:[];if(e){akeeba.System.Text.load(e);var f={};f["akeeba.text"]=null,akeeba.System.loadOptions(f)}return b=void 0===b?"":b,a=a.toUpperCase(),void 0===akeeba.System.Text.strings[a]?b:akeeba.System.Text.strings[a]},sprintf:function(){var a;if(2>arguments.length)return"";var b=arguments;return b[0]=this._(b[0]),(a=akeeba.System).sprintf.apply(a,arguments)},plural:function(a,b){var c="".concat(a,"_").concat(b);return this.sprintf(this.hasKey(c)?c:a,b)},hasKey:function(a){return"undefined"!=typeof this.strings[a.toUpperCase()]},load:function(a){for(var b in a)a.hasOwnProperty(b)&&(this.strings[b.toUpperCase()]=a[b]);return this}},function(a,b){function c(){if(!f){f=!0;for(var a=0;a<e.length;a++)e[a].fn.call(window,e[a].ctx);e=[]}}function d(){"complete"===document.readyState&&c()}a=a||"documentReady",b=b||akeeba.System;var e=[],f=!1,g=!1;b[a]=function(a,b){return f?void setTimeout(function(){a(b)},1):(e.push({fn:a,ctx:b}),"complete"===document.readyState||!document.attachEvent&&"interactive"===document.readyState)?void setTimeout(c,1):g?void 0:(g=!0,document.addEventListener?(document.addEventListener("DOMContentLoaded",c,!1),void window.addEventListener("load",c,!1)):void(document.attachEvent("onreadystatechange",d),window.attachEvent("onload",c)))}}("documentReady",akeeba.System),akeeba.System.toggleHelp=function(){var a=document.querySelectorAll(".form-text");a.length&&a.forEach(function(a){return a.classList.contains("d-none")?(a.classList.remove("d-none"),void a.classList.add("d-block")):void(a.classList.remove("d-block"),a.classList.add("d-none"))})},akeeba.System.documentReady(function(){var a,b,c;akeeba.System.assignDefaultErrorHandler(),akeeba.System.loadOptions(),[].slice.call(document.querySelectorAll(".nextStep")).forEach(function(a){a.addEventListener("click",function(){window.location=akeeba.System.getOptions("nextStep.url")})}),null===(a=document.getElementById("nextStep"))||void 0===a||a.addEventListener("click",function(){window.location=akeeba.System.getOptions("nextStep.url")}),null===(b=document.getElementById("previousStep"))||void 0===b||b.addEventListener("click",function(){window.location=akeeba.System.getOptions("previousStep.url")}),null===(c=document.getElementById("show-help"))||void 0===c||c.addEventListener("click",akeeba.System.toggleHelp)}); //# sourceMappingURL=system.min.js.map