CoreFiles by mySites.guru
core.min.js1 lines, 7,565 bytes, from Joomla_4.0.0-beta7-Beta-Full_Package.zip
Raw History Compare with 4.0.0-beta6
md5
483343f977fe26400fb5cebb873e7b43
sha1
9d20ec76fe7eb52a07febafefdadb1452cda7f59
sha256
d4acbaf9a3b3b983d2610aa3c20cf3c4a128d9ead91bc1fd55788ecdd344c200
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)}window.Joomla=window.Joomla||{},window.Joomla.editors=window.Joomla.editors||{},window.Joomla.editors.instances=window.Joomla.editors.instances||{},window.Joomla.Modal=window.Joomla.Modal||{current:"",setCurrent:function setCurrent(a){window.Joomla.current=a},getCurrent:function getCurrent(){return window.Joomla.current}},function(a){'use strict';a.extend=function(a,b){var c=a;return null===a&&(c={}),[].slice.call(Object.keys(b)).forEach(function(a){c[a]=b[a]}),a}}(Joomla),function(a,b){'use strict';b.request=function(c){var d,e=b.extend({url:"",method:"GET",data:null,perform:!0},c);try{if(d=new XMLHttpRequest,d.open(e.method,e.url,!0),d.setRequestHeader("X-Requested-With","XMLHttpRequest"),d.setRequestHeader("X-Ajax-Engine","Joomla!"),"GET"!==e.method){var f=b.getOptions("csrf.token","");f&&d.setRequestHeader("X-CSRF-Token",f),e.headers&&e.headers["Content-Type"]||d.setRequestHeader("Content-Type","application/x-www-form-urlencoded")}if(e.headers&&[].slice.call(Object.keys(e.headers)).forEach(function(a){"Content-Type"===a&&"false"===e.headers["Content-Type"]||d.setRequestHeader(a,e.headers[a])}),d.onreadystatechange=function(){4!==d.readyState||(200===d.status?e.onSuccess&&e.onSuccess.call(a,d.responseText,d):e.onError&&e.onError.call(a,d))},e.perform){if(e.onBefore&&!1===e.onBefore.call(a,d))return d;d.send(e.data)}}catch(b){return a.console?console.log(b):null,!1}return d}}(window,Joomla),function(a,b){'use strict';b.Event||(b.Event={},b.Event.dispatch=function(b,c,d){var e=b,f=c,g=d;"string"==typeof b&&(g=c,f=b,e=a),g=g||{},e.dispatchEvent(new CustomEvent(f,{detail:g,bubbles:!0,cancelable:!0}))},b.Event.listenOnce=function(a,b,c){var d=function(e){return a.removeEventListener(b,d),c.call(a,e)};a.addEventListener(b,d)})}(window,Joomla),function(a,b){'use strict';b.submitform=function(a,b,c){var d=b,e=a;d||(d=document.getElementById("adminForm")),e&&(d.task.value=e),d.noValidate=!c,c?d.hasAttribute("novalidate")&&d.removeAttribute("novalidate"):d.setAttribute("novalidate","");var f=document.createElement("input");f.classList.add("hidden"),f.type="submit",d.appendChild(f).click(),d.removeChild(f)},b.submitbutton=function(a,c,d){var e=document.querySelector(c||"form.form-validate"),f=d;if("string"==typeof c&&null===e&&(e=document.querySelector("#".concat(c))),e){if(void 0===f||null===f){var g=a.split("."),h=e.getAttribute("data-cancel-task");h||(h="".concat(g[0],".cancel")),f=a!==h}(!f||document.formvalidator.isValid(e))&&b.submitform(a,e)}else b.submitform(a)},b.checkAll=function(a,c){if(!a.form)return!1;var d=[].slice.call(a.form.elements),e=0;return d.forEach(function(b){b.type===a.type&&0===b.id.indexOf(c||"cb")&&(b.checked=a.checked,e+=b.checked?1:0)}),a.form.boxchecked&&(a.form.boxchecked.value=e,b.Event.dispatch(a.form.boxchecked,"change")),!0},b.isChecked=function(a,d){var f=d;if("undefined"==typeof f?f=document.getElementById("adminForm"):"string"==typeof d&&(f=document.getElementById(d)),f.boxchecked.value=a?parseInt(f.boxchecked.value,10)+1:parseInt(f.boxchecked.value,10)-1,b.Event.dispatch(f.boxchecked,"change"),!!f.elements["checkall-toggle"]){var g,h,j,k=!0;for(g=0,j=f.elements.length;g<j;g++)if(h=f.elements[g],"checkbox"===h.type&&"checkall-toggle"!==h.name&&!h.checked){k=!1;break}f.elements["checkall-toggle"].checked=k}},b.tableOrdering=function(a,c,d,e){var f=e;"undefined"==typeof f?f=document.getElementById("adminForm"):"string"==typeof e&&(f=document.getElementById(e)),f.filter_order.value=a,f.filter_order_Dir.value=c,b.submitform(d,f)},b.listItemTask=function(a,c){var d=2<arguments.length&&void 0!==arguments[2]?arguments[2]:null,e=d;e=null===d?document.adminForm:document.getElementById(d);var f,g=e[a],h=0;if(!g)return!1;for(;f=e["cb".concat(h)],!!f;)f.checked=!1,h+=1;return g.checked=!0,e.boxchecked.value=1,b.submitform(c,e),!1}}(window,Joomla),function(a,b){'use strict';b.renderMessages=function(a,c,d,e){var f,g,h,i,j,k,l;f="undefined"==typeof c||c&&"#system-message-container"===c?document.getElementById("system-message-container"):document.querySelector(c),("undefined"==typeof d||d&&!1===d)&&b.removeMessages(f),[].slice.call(Object.keys(a)).forEach(function(c){g=a[c],h=document.createElement("joomla-alert"),-1<["notice","message","error","warning"].indexOf(c)?(l="notice"===c?"info":c,l="message"===c?"success":l,l="error"===c?"danger":l,l="warning"===c?"warning":l):l="info",h.setAttribute("type",l),h.setAttribute("dismiss","true"),e&&0<parseInt(e,10)&&h.setAttribute("autodismiss",e),i=b.Text._(c),"undefined"!=typeof i&&(j=document.createElement("div"),j.className="alert-heading",j.innerHTML="<span class=\"".concat(c,"\"></span><span class=\"visually-hidden\">").concat(b.Text._(c)?b.Text._(c):c,"</span>"),h.appendChild(j)),k=document.createElement("div"),k.className="alert-wrapper",g.forEach(function(a){k.innerHTML+="<div class=\"alert-message\">".concat(a,"</div>")}),h.appendChild(k),f.appendChild(h)})},b.removeMessages=function(a){var b=a?a:document.getElementById("system-message-container");var c=[].slice.call(b.querySelectorAll("joomla-alert"));c.length&&c.forEach(function(a){a.close()})},b.ajaxErrorsMessages=function(a,c){var d={};if("parsererror"===c){for(var e=[],f=a.responseText.trim(),g=f.length-1;0<=g;g--)e.unshift(["&#",f[g].charCodeAt(),";"].join(""));f=e.join(""),d.error=[b.Text._("JLIB_JS_AJAX_ERROR_PARSE").replace("%s",f)]}else d.error="nocontent"===c?[b.Text._("JLIB_JS_AJAX_ERROR_NO_CONTENT")]:"timeout"===c?[b.Text._("JLIB_JS_AJAX_ERROR_TIMEOUT")]:"abort"===c?[b.Text._("JLIB_JS_AJAX_ERROR_CONNECTION_ABORT")]:a.responseJSON&&a.responseJSON.message?["".concat(b.Text._("JLIB_JS_AJAX_ERROR_OTHER").replace("%s",a.status)," <em>").concat(a.responseJSON.message,"</em>")]:a.statusText?["".concat(b.Text._("JLIB_JS_AJAX_ERROR_OTHER").replace("%s",a.status)," <em>").concat(a.statusText,"</em>")]:[b.Text._("JLIB_JS_AJAX_ERROR_OTHER").replace("%s",a.status)];return d}}(window,Joomla),function(a,b){'use strict';b.optionsStorage=b.optionsStorage||null,b.getOptions=function(a,c){return b.optionsStorage||b.loadOptions(),void 0===b.optionsStorage[a]?c:b.optionsStorage[a]},b.loadOptions=function(a){if(!a){var c=[].slice.call(document.querySelectorAll(".joomla-script-options.new")),d=0;if(c.forEach(function(a){var c=a.text||a.textContent,e=JSON.parse(c);e&&(b.loadOptions(e),d+=1),a.className=a.className.replace(" new"," loaded")}),d)return}b.optionsStorage?a&&[].slice.call(Object.keys(a)).forEach(function(c){b.optionsStorage[c]=null!==a[c]&&"object"===_typeof(b.optionsStorage[c])&&"object"===_typeof(a[c])?b.extend(b.optionsStorage[c],a[c]):a[c]}):b.optionsStorage=a||{}}}(window,Joomla),function(a,b){'use strict';b.Text={strings:{},_:function _(a,c){var d=a,e=c,f=b.getOptions("joomla.jtext");return f&&(b.Text.load(f),b.loadOptions({"joomla.jtext":null})),e=void 0===e?d:e,d=d.toUpperCase(),void 0===b.Text.strings[d]?e:b.Text.strings[d]},load:function load(a){return[].slice.call(Object.keys(a)).forEach(function(c){b.Text.strings[c.toUpperCase()]=a[c]}),b.Text}},b.JText=b.Text}(window,Joomla),function(a,b){'use strict';b.replaceTokens=function(a){if(/^[0-9A-F]{32}$/i.test(a)){var b=[].slice.call(document.getElementsByTagName("input"));b.forEach(function(b){"hidden"===b.type&&"1"===b.value&&32===b.name.length&&(b.name=a)})}}}(window,Joomla);

No other release has this exact content. See every version of this file.