芝麻web文件管理V1.00
编辑当前文件:/home2/sdektunc/chocholayucatan.gob.mx/media/system/js/messages-es5.min.js
!function(){"use strict";function t(t,e){for(var n=0;n
t.length)&&(e=t.length);for(var n=0,o=new Array(e);n
=t.length?{done:!0}:{done:!1,value:t[o++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var l=function(e){var o,i;function s(){var t;return(t=e.call(this)||this).close=t.close.bind(r(t)),t.destroyCloseButton=t.destroyCloseButton.bind(r(t)),t.createCloseButton=t.createCloseButton.bind(r(t)),t.onMutation=t.onMutation.bind(r(t)),t.observer=new MutationObserver(t.onMutation),t.observer.observe(r(t),{attributes:!1,childList:!0,subtree:!0}),t.addEventListener("animationend",(function(e){"joomla-alert-fade-in"===e.animationName&&e.target===r(t)&&(t.dispatchEvent(new CustomEvent("joomla.alert.shown")),t.style.removeProperty("animationName"))})),t.addEventListener("animationend",(function(e){"joomla-alert-fade-out"===e.animationName&&e.target===r(t)&&(t.dispatchEvent(new CustomEvent("joomla.alert.closed")),t.remove())})),t}i=e,(o=s).prototype=Object.create(i.prototype),o.prototype.constructor=o,n(o,i);var a,l,c,d=s.prototype;return d.connectedCallback=function(){this.dispatchEvent(new CustomEvent("joomla.alert.show")),this.style.animationName="joomla-alert-fade-in",this.type&&["info","warning","danger","success"].includes(this.type)||this.setAttribute("type","info"),this.role&&["alert","alertdialog"].includes(this.role)||this.setAttribute("role","alert"),this.firstElementChild&&"BUTTON"===this.firstElementChild.tagName&&(this.button=this.firstElementChild,this.button.classList.contains("joomla-alert--close")&&this.button.classList.add("joomla-alert--close"),""===this.button.innerHTML&&(this.button.innerHTML='
×
'),this.button.hasAttribute("aria-label")||this.button.setAttribute("aria-label",this.closeText)),this.hasAttribute("dismiss")&&!this.button&&this.createCloseButton(),this.hasAttribute("auto-dismiss")&&this.autoDismiss()},d.disconnectedCallback=function(){this.button&&this.button.removeEventListener("click",this.close),this.observer.disconnect()},d.attributeChangedCallback=function(t,e,n){switch(t){case"type":(!n||n&&-1===["info","warning","danger","success"].indexOf(n))&&(this.type="info");break;case"role":(!n||n&&-1===["alert","alertdialog"].indexOf(n))&&(this.role="alert");break;case"dismiss":n&&""!==n||e&&""!==e?this.button&&"false"===n?this.destroyCloseButton():this.button||"false"===n||this.createCloseButton():this.button&&!this.hasAttribute("dismiss")?this.destroyCloseButton():!this.button&&this.hasAttribute("dismiss")&&this.createCloseButton();break;case"close-text":n&&n===e||this.button&&this.button.setAttribute("aria-label",n);break;case"auto-dismiss":this.autoDismiss()}},d.onMutation=function(t){for(var e,n=u(t);!(e=n()).done;){var o=e.value;"childList"===o.type&&o.addedNodes.length&&this.button&&this.firstElementChild!==this.button&&this.prepend(this.button)}},d.close=function(){this.dispatchEvent(new CustomEvent("joomla.alert.close")),this.style.animationName="joomla-alert-fade-out"},d.createCloseButton=function(){this.button=document.createElement("button"),this.button.setAttribute("type","button"),this.button.classList.add("joomla-alert--close"),this.button.innerHTML='
×
',this.button.setAttribute("aria-label",this.closeText),this.insertAdjacentElement("afterbegin",this.button),this.button.addEventListener("click",this.close)},d.destroyCloseButton=function(){this.button&&(this.button.removeEventListener("click",this.close),this.button.parentNode.removeChild(this.button),this.button=null)},d.autoDismiss=function(){var t=parseInt(this.getAttribute("auto-dismiss"),10);setTimeout(this.close,t>=10?t:3e3)},a=s,c=[{key:"observedAttributes",get:function(){return["type","role","dismiss","auto-dismiss","close-text"]}}],(l=[{key:"type",get:function(){return this.getAttribute("type")},set:function(t){this.setAttribute("type",t)}},{key:"role",get:function(){return this.getAttribute("role")},set:function(t){this.setAttribute("role",t)}},{key:"closeText",get:function(){return this.getAttribute("close-text")},set:function(t){this.setAttribute("close-text",t)}},{key:"dismiss",get:function(){return this.getAttribute("dismiss")},set:function(t){this.setAttribute("dismiss",t)}},{key:"autodismiss",get:function(){return this.getAttribute("auto-dismiss")},set:function(t){this.setAttribute("auto-dismiss",t)}}])&&t(a.prototype,l),c&&t(a,c),s}(s(HTMLElement));customElements.get("joomla-alert")||customElements.define("joomla-alert",l);var c=function(t){return t instanceof HTMLElement?t:void 0===t||t&&"#system-message-container"===t?document.getElementById("system-message-container"):document.querySelector(t)};Joomla.renderMessages=function(t,e,n,o){var i=c(e);(void 0===n||n&&!1===n)&&Joomla.removeMessages(i),[].slice.call(Object.keys(t)).forEach((function(e){var n=e,s=t[e],r=document.createElement("joomla-alert");if(["success","info","danger","warning"].indexOf(e)<0&&(n="notice"===e?"info":e,n="message"===e?"success":n,n="error"===e?"danger":n,n="warning"===e?"warning":n),r.setAttribute("type",n),r.setAttribute("close-text",Joomla.Text._("JCLOSE")),r.setAttribute("dismiss",!0),o&&parseInt(o,10)>0&&r.setAttribute("auto-dismiss",o),void 0!==Joomla.Text._(e)){var a=document.createElement("div");a.className="alert-heading",a.innerHTML=Joomla.sanitizeHtml('
'+(Joomla.Text._(e)?Joomla.Text._(e):e)+"
"),r.appendChild(a)}var u=document.createElement("div");u.className="alert-wrapper",s.forEach((function(t){u.innerHTML+=Joomla.sanitizeHtml('
'+t+"
")})),r.appendChild(u),i.appendChild(r)}))},Joomla.removeMessages=function(t){var e=c(t),n=[].slice.call(e.querySelectorAll("joomla-alert"));n.length&&n.forEach((function(t){t.close()}))},document.addEventListener("DOMContentLoaded",(function(){var t=Joomla.getOptions("joomla.messages");t&&Object.keys(t).map((function(e){return Joomla.renderMessages(t[e],void 0,!0,void 0)}))}))}();