%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /home/tjamichg/portal.tjamich.gob.mx/adminit2018/assets/js/plugins/sweetalert2/
Upload File :
Create Path :
Current File : /home/tjamichg/portal.tjamich.gob.mx/adminit2018/assets/js/plugins/sweetalert2/sweetalert2.min.js

!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define.amd?define(t):e.Sweetalert2=t()}(this,function(){"use strict";var e={title:"",titleText:"",text:"",html:"",type:null,toast:!1,customClass:"",target:"body",backdrop:!0,animation:!0,allowOutsideClick:!0,allowEscapeKey:!0,allowEnterKey:!0,showConfirmButton:!0,showCancelButton:!1,preConfirm:null,confirmButtonText:"OK",confirmButtonAriaLabel:"",confirmButtonColor:"#3085d6",confirmButtonClass:null,cancelButtonText:"Cancel",cancelButtonAriaLabel:"",cancelButtonColor:"#aaa",cancelButtonClass:null,buttonsStyling:!0,reverseButtons:!1,focusConfirm:!0,focusCancel:!1,showCloseButton:!1,closeButtonAriaLabel:"Close this dialog",showLoaderOnConfirm:!1,imageUrl:null,imageWidth:null,imageHeight:null,imageAlt:"",imageClass:null,timer:null,width:500,padding:20,background:"#fff",input:null,inputPlaceholder:"",inputValue:"",inputOptions:{},inputAutoTrim:!0,inputClass:null,inputAttributes:{},inputValidator:null,grow:!1,position:"center",progressSteps:[],currentProgressStep:null,progressStepsDistance:"40px",onBeforeOpen:null,onOpen:null,onClose:null,useRejections:!1,expectRejections:!1},t=["useRejections","expectRejections"],n=function(e){var t={};for(var n in e)t[e[n]]="swal2-"+e[n];return t},o=n(["container","shown","iosfix","popup","modal","no-backdrop","toast","toast-shown","overlay","fade","show","hide","noanimation","close","title","content","contentwrapper","buttonswrapper","confirm","cancel","icon","image","input","has-input","file","range","select","radio","checkbox","textarea","inputerror","validationerror","progresssteps","activeprogressstep","progresscircle","progressline","loading","styled","top","top-start","top-end","top-left","top-right","center","center-start","center-end","center-left","center-right","bottom","bottom-start","bottom-end","bottom-left","bottom-right","grow-row","grow-column","grow-fullscreen"]),i=n(["success","warning","info","question","error"]),r="SweetAlert2:",a=function(e,t){(e=String(e).replace(/[^0-9a-f]/gi,"")).length<6&&(e=e[0]+e[0]+e[1]+e[1]+e[2]+e[2]),t=t||0;for(var n="#",o=0;o<3;o++){var i=parseInt(e.substr(2*o,2),16);n+=("00"+(i=Math.round(Math.min(Math.max(0,i+i*t),255)).toString(16))).substr(i.length)}return n},s=function(e){console.warn(r+" "+e)},l=function(e){console.error(r+" "+e)},u=[],c=function(e){-1===u.indexOf(e)&&(u.push(e),s(e))},d={previousActiveElement:null,previousBodyPadding:null},p=function(){return"undefined"==typeof window||"undefined"==typeof document},f=function(e){var t=b();t&&(t.parentNode.removeChild(t),V([document.documentElement,document.body],[o["no-backdrop"],o["has-input"],o["toast-shown"]]));{if(!p()){var n=document.createElement("div");n.className=o.container,n.innerHTML=m;("string"==typeof e.target?document.querySelector(e.target):e.target).appendChild(n);var i=v(),r=j(i,o.input),a=j(i,o.file),s=i.querySelector("."+o.range+" input"),u=i.querySelector("."+o.range+" output"),c=j(i,o.select),d=i.querySelector("."+o.checkbox+" input"),f=j(i,o.textarea);i.setAttribute("aria-live",e.toast?"polite":"assertive");var g=function(){$.isVisible()&&$.resetValidationError()};return r.oninput=g,a.onchange=g,c.onchange=g,d.onchange=g,f.oninput=g,s.oninput=function(){g(),u.value=s.value},s.onchange=function(){g(),s.previousSibling.value=s.value},i}l("SweetAlert2 requires document to initialize")}},m=('\n <div role="dialog" aria-modal="true" aria-labelledby="'+o.title+'" aria-describedby="'+o.content+'" class="'+o.popup+'" tabindex="-1">\n   <ul class="'+o.progresssteps+'"></ul>\n   <div class="'+o.icon+" "+i.error+'">\n     <span class="swal2-x-mark"><span class="swal2-x-mark-line-left"></span><span class="swal2-x-mark-line-right"></span></span>\n   </div>\n   <div class="'+o.icon+" "+i.question+'">?</div>\n   <div class="'+o.icon+" "+i.warning+'">!</div>\n   <div class="'+o.icon+" "+i.info+'">i</div>\n   <div class="'+o.icon+" "+i.success+'">\n     <div class="swal2-success-circular-line-left"></div>\n     <span class="swal2-success-line-tip"></span> <span class="swal2-success-line-long"></span>\n     <div class="swal2-success-ring"></div> <div class="swal2-success-fix"></div>\n     <div class="swal2-success-circular-line-right"></div>\n   </div>\n   <img class="'+o.image+'" />\n   <div class="'+o.contentwrapper+'">\n   <h2 class="'+o.title+'" id="'+o.title+'"></h2>\n   <div id="'+o.content+'" class="'+o.content+'"></div>\n   </div>\n   <input class="'+o.input+'" />\n   <input type="file" class="'+o.file+'" />\n   <div class="'+o.range+'">\n     <output></output>\n     <input type="range" />\n   </div>\n   <select class="'+o.select+'"></select>\n   <div class="'+o.radio+'"></div>\n   <label for="'+o.checkbox+'" class="'+o.checkbox+'">\n     <input type="checkbox" />\n   </label>\n   <textarea class="'+o.textarea+'"></textarea>\n   <div class="'+o.validationerror+'" id="'+o.validationerror+'"></div>\n   <div class="'+o.buttonswrapper+'">\n     <button type="button" class="'+o.confirm+'">OK</button>\n     <button type="button" class="'+o.cancel+'">Cancel</button>\n   </div>\n   <button type="button" class="'+o.close+'">×</button>\n </div>\n').replace(/(^|\n)\s*/g,""),b=function(){return document.body.querySelector("."+o.container)},v=function(){return b()?b().querySelector("."+o.popup):null},g=function(e){return b()?b().querySelector("."+e):null},h=function(){return g(o.title)},y=function(){return g(o.content)},w=function(){return g(o.image)},C=function(){return g(o.progresssteps)},x=function(){return g(o.validationerror)},k=function(){return g(o.confirm)},S=function(){return g(o.cancel)},A=function(){return g(o.buttonswrapper)},B=function(){return g(o.close)},P=function(){var e=Array.prototype.slice.call(v().querySelectorAll('[tabindex]:not([tabindex="-1"]):not([tabindex="0"])')).sort(function(e,t){return e=parseInt(e.getAttribute("tabindex")),t=parseInt(t.getAttribute("tabindex")),e>t?1:e<t?-1:0}),t=Array.prototype.slice.call(v().querySelectorAll('button, input:not([type=hidden]), textarea, select, a, [tabindex="0"]'));return function(e){var t=[];for(var n in e)-1===t.indexOf(e[n])&&t.push(e[n]);return t}(e.concat(t))},E=function(){return!document.body.classList.contains(o["toast-shown"])},L=function(e,t){return!!e.classList&&e.classList.contains(t)},T=function(e){if(e.focus(),"file"!==e.type){var t=e.value;e.value="",e.value=t}},q=function(e,t,n){e&&t&&("string"==typeof t&&(t=t.split(/\s+/).filter(Boolean)),t.forEach(function(t){e.forEach?e.forEach(function(e){n?e.classList.add(t):e.classList.remove(t)}):n?e.classList.add(t):e.classList.remove(t)}))},O=function(e,t){q(e,t,!0)},V=function(e,t){q(e,t,!1)},j=function(e,t){for(var n=0;n<e.childNodes.length;n++)if(L(e.childNodes[n],t))return e.childNodes[n]},N=function(e,t){t||(t=e===v()||e===A()?"flex":"block"),e.style.opacity="",e.style.display=t},M=function(e){e.style.opacity="",e.style.display="none"},H=function(e){return e&&(e.offsetWidth||e.offsetHeight||e.getClientRects().length)},R=function(){if(p())return!1;var e=document.createElement("div"),t={WebkitAnimation:"webkitAnimationEnd",OAnimation:"oAnimationEnd oanimationend",animation:"animationend"};for(var n in t)if(t.hasOwnProperty(n)&&void 0!==e.style[n])return t[n];return!1}(),I="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},D=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},U=D({},e),W=[],z=void 0,K=void 0;"undefined"==typeof Promise&&l("This package requires a Promise library, please include a shim to enable it in this browser (See: https://github.com/sweetalert2/sweetalert2/wiki/Migration-from-SweetAlert-to-SweetAlert2#1-ie-support)");var Z=function(e){for(var t in e)$.isValidParameter(t)||s('Unknown parameter "'+t+'"'),$.isDeprecatedParameter(t)&&c('The parameter "'+t+'" is deprecated and will be removed in the next major release.')},_=function(t){("string"==typeof t.target&&!document.querySelector(t.target)||"string"!=typeof t.target&&!t.target.appendChild)&&(s('Target parameter is not valid, defaulting to "body"'),t.target="body");var n=void 0,r=v(),a="string"==typeof t.target?document.querySelector(t.target):t.target;n=r&&a&&r.parentNode!==a.parentNode?f(t):r||f(t);var u=t.width===e.width&&t.toast?"auto":t.width;n.style.width="number"==typeof u?u+"px":u;var c=t.padding===e.padding&&t.toast?"inherit":t.padding;n.style.padding="number"==typeof c?c+"px":c,n.style.background=t.background;for(var d=n.querySelectorAll("[class^=swal2-success-circular-line], .swal2-success-fix"),p=0;p<d.length;p++)d[p].style.background=t.background;var m=b(),g=h(),x=y(),P=A(),E=k(),L=S(),T=B();if(t.titleText?g.innerText=t.titleText:g.innerHTML=t.title.split("\n").join("<br />"),t.backdrop||O([document.documentElement,document.body],o["no-backdrop"]),t.text||t.html){if("object"===I(t.html))if(x.innerHTML="",0 in t.html)for(var q=0;q in t.html;q++)x.appendChild(t.html[q].cloneNode(!0));else x.appendChild(t.html.cloneNode(!0));else t.html?x.innerHTML=t.html:t.text&&(x.textContent=t.text);N(x)}else M(x);if(t.position in o&&O(m,o[t.position]),t.grow&&"string"==typeof t.grow){var j="grow-"+t.grow;j in o&&O(m,o[j])}t.showCloseButton?(T.setAttribute("aria-label",t.closeButtonAriaLabel),N(T)):M(T),n.className=o.popup,t.toast?(O([document.documentElement,document.body],o["toast-shown"]),O(n,o.toast)):O(n,o.modal),t.customClass&&O(n,t.customClass);var H=C(),R=parseInt(null===t.currentProgressStep?$.getQueueStep():t.currentProgressStep,10);t.progressSteps.length?(N(H),function(e){for(;e.firstChild;)e.removeChild(e.firstChild)}(H),R>=t.progressSteps.length&&s("Invalid currentProgressStep parameter, it should be less than progressSteps.length (currentProgressStep like JS arrays starts from 0)"),t.progressSteps.forEach(function(e,n){var i=document.createElement("li");if(O(i,o.progresscircle),i.innerHTML=e,n===R&&O(i,o.activeprogressstep),H.appendChild(i),n!==t.progressSteps.length-1){var r=document.createElement("li");O(r,o.progressline),r.style.width=t.progressStepsDistance,H.appendChild(r)}})):M(H);for(var D=v().querySelectorAll("."+o.icon),U=0;U<D.length;U++)M(D[U]);if(t.type){var W=!1;for(var z in i)if(t.type===z){W=!0;break}if(!W)return l("Unknown alert type: "+t.type),!1;var K=n.querySelector("."+o.icon+"."+i[t.type]);if(N(K),t.animation)switch(t.type){case"success":O(K,"swal2-animate-success-icon"),O(K.querySelector(".swal2-success-line-tip"),"swal2-animate-success-line-tip"),O(K.querySelector(".swal2-success-line-long"),"swal2-animate-success-line-long");break;case"error":O(K,"swal2-animate-error-icon"),O(K.querySelector(".swal2-x-mark"),"swal2-animate-x-mark")}}var Z=w();t.imageUrl?(Z.setAttribute("src",t.imageUrl),Z.setAttribute("alt",t.imageAlt),N(Z),t.imageWidth?Z.setAttribute("width",t.imageWidth):Z.removeAttribute("width"),t.imageHeight?Z.setAttribute("height",t.imageHeight):Z.removeAttribute("height"),Z.className=o.image,t.imageClass&&O(Z,t.imageClass)):M(Z),t.showCancelButton?L.style.display="inline-block":M(L),t.showConfirmButton?function(e,t){e.style.removeProperty?e.style.removeProperty(t):e.style.removeAttribute(t)}(E,"display"):M(E),t.showConfirmButton||t.showCancelButton?N(P):M(P),E.innerHTML=t.confirmButtonText,L.innerHTML=t.cancelButtonText,E.setAttribute("aria-label",t.confirmButtonAriaLabel),L.setAttribute("aria-label",t.cancelButtonAriaLabel),t.buttonsStyling&&(E.style.backgroundColor=t.confirmButtonColor,L.style.backgroundColor=t.cancelButtonColor),E.className=o.confirm,O(E,t.confirmButtonClass),L.className=o.cancel,O(L,t.cancelButtonClass),t.buttonsStyling?O([E,L],o.styled):(V([E,L],o.styled),E.style.backgroundColor=E.style.borderLeftColor=E.style.borderRightColor="",L.style.backgroundColor=L.style.borderLeftColor=L.style.borderRightColor=""),!0===t.animation?V(n,o.noanimation):O(n,o.noanimation),t.showLoaderOnConfirm&&!t.preConfirm&&s("showLoaderOnConfirm is set to true, but preConfirm is not defined.\nshowLoaderOnConfirm should be used together with preConfirm, see usage example:\nhttps://sweetalert2.github.io/#ajax-request")},Q=function(){null===d.previousBodyPadding&&document.body.scrollHeight>window.innerHeight&&(d.previousBodyPadding=document.body.style.paddingRight,document.body.style.paddingRight=function(){if("ontouchstart"in window||navigator.msMaxTouchPoints)return 0;var e=document.createElement("div");e.style.width="50px",e.style.height="50px",e.style.overflow="scroll",document.body.appendChild(e);var t=e.offsetWidth-e.clientWidth;return document.body.removeChild(e),t}()+"px")},Y=function(){if(/iPad|iPhone|iPod/.test(navigator.userAgent)&&!window.MSStream&&!L(document.body,o.iosfix)){var e=document.body.scrollTop;document.body.style.top=-1*e+"px",O(document.body,o.iosfix)}},$=function e(){for(var t=arguments.length,n=Array(t),i=0;i<t;i++)n[i]=arguments[i];if("undefined"!=typeof window){if(void 0===n[0])return l("SweetAlert2 expects at least 1 attribute!"),!1;var r=D({},U);switch(I(n[0])){case"string":r.title=n[0],r.html=n[1],r.type=n[2];break;case"object":if(Z(n[0]),D(r,n[0]),r.extraParams=n[0].extraParams,"email"===r.input&&null===r.inputValidator){var s=function(e){return new Promise(function(t,n){/^[a-zA-Z0-9.+_-]+@[a-zA-Z0-9.-]+\.[a-zA-Z0-9-]{2,24}$/.test(e)?t():n("Invalid email address")})};r.inputValidator=r.expectRejections?s:e.adaptInputValidator(s)}if("url"===r.input&&null===r.inputValidator){var u=function(e){return new Promise(function(t,n){/^https?:\/\/(www\.)?[-a-zA-Z0-9@:%._+~#=]{2,256}\.[a-z]{2,6}\b([-a-zA-Z0-9@:%_+.~#?&//=]*)$/.test(e)?t():n("Invalid URL")})};r.inputValidator=r.expectRejections?u:e.adaptInputValidator(u)}break;default:return l('Unexpected type of argument! Expected "string" or "object", got '+I(n[0])),!1}_(r);var c=b(),p=v();return new Promise(function(t,n){var i=function(n){e.closePopup(r.onClose),t(r.useRejections?n:{value:n})},s=function(o){e.closePopup(r.onClose),r.useRejections?n(o):t({dismiss:o})},u=function(t){e.closePopup(r.onClose),n(t)};r.timer&&(p.timeout=setTimeout(function(){return s("timer")},r.timer));var f=function(e){if(!(e=e||r.input))return null;switch(e){case"select":case"textarea":case"file":return j(p,o[e]);case"checkbox":return p.querySelector("."+o.checkbox+" input");case"radio":return p.querySelector("."+o.radio+" input:checked")||p.querySelector("."+o.radio+" input:first-child");case"range":return p.querySelector("."+o.range+" input");default:return j(p,o.input)}};r.input&&setTimeout(function(){var e=f();e&&T(e)},0);for(var m=function(t){if(r.showLoaderOnConfirm&&e.showLoading(),r.preConfirm){e.resetValidationError();var n=Promise.resolve().then(function(){return r.preConfirm(t,r.extraParams)});r.expectRejections?n.then(function(e){return i(e||t)},function(t){e.hideLoading(),t&&e.showValidationError(t)}):n.then(function(n){H(x())?e.hideLoading():i(n||t)},function(e){return u(e)})}else i(t)},g=function(t){var n=t||window.event,o=n.target||n.srcElement,i=k(),l=S(),c=i&&(i===o||i.contains(o)),d=l&&(l===o||l.contains(o));switch(n.type){case"mouseover":case"mouseup":r.buttonsStyling&&(c?i.style.backgroundColor=a(r.confirmButtonColor,-.1):d&&(l.style.backgroundColor=a(r.cancelButtonColor,-.1)));break;case"mouseout":r.buttonsStyling&&(c?i.style.backgroundColor=r.confirmButtonColor:d&&(l.style.backgroundColor=r.cancelButtonColor));break;case"mousedown":r.buttonsStyling&&(c?i.style.backgroundColor=a(r.confirmButtonColor,-.2):d&&(l.style.backgroundColor=a(r.cancelButtonColor,-.2)));break;case"click":if(c&&e.isVisible())if(e.disableButtons(),r.input){var p=function(){var e=f();if(!e)return null;switch(r.input){case"checkbox":return e.checked?1:0;case"radio":return e.checked?e.value:null;case"file":return e.files.length?e.files[0]:null;default:return r.inputAutoTrim?e.value.trim():e.value}}();if(r.inputValidator){e.disableInput();var b=Promise.resolve().then(function(){return r.inputValidator(p,r.extraParams)});r.expectRejections?b.then(function(){e.enableButtons(),e.enableInput(),m(p)},function(t){e.enableButtons(),e.enableInput(),t&&e.showValidationError(t)}):b.then(function(t){e.enableButtons(),e.enableInput(),t?e.showValidationError(t):m(p)},function(e){return u(e)})}else m(p)}else m(!0);else d&&e.isVisible()&&(e.disableButtons(),s("cancel"))}},q=p.querySelectorAll("button"),D=0;D<q.length;D++)q[D].onclick=g,q[D].onmouseover=g,q[D].onmouseout=g,q[D].onmousedown=g;if(B().onclick=function(){s("close")},r.toast)p.onclick=function(t){t.target!==p||r.showConfirmButton||r.showCancelButton||r.allowOutsideClick&&(e.closePopup(r.onClose),s("overlay"))};else{var U=!1;p.onmousedown=function(){c.onmouseup=function(e){c.onmouseup=void 0,e.target===c&&(U=!0)}},c.onmousedown=function(){p.onmouseup=function(e){p.onmouseup=void 0,(e.target===p||p.contains(e.target))&&(U=!0)}},c.onclick=function(e){U?U=!1:e.target===c&&r.allowOutsideClick&&("function"==typeof r.allowOutsideClick?r.allowOutsideClick()&&s("overlay"):s("overlay"))}}var W=A(),Z=k(),$=S();r.reverseButtons?Z.parentNode.insertBefore($,Z):Z.parentNode.insertBefore(Z,$);var J=function(e,t){for(var n=P(r.focusCancel),o=0;o<n.length;o++){(e+=t)===n.length?e=0:-1===e&&(e=n.length-1);var i=n[e];if(H(i))return i.focus()}};r.toast&&K&&(window.onkeydown=z,K=!1),r.toast||K||(z=window.onkeydown,K=!0,window.onkeydown=function(t){var n=t||window.event;if("Enter"!==n.key||n.isComposing)if("Tab"===n.key){for(var o=n.target||n.srcElement,i=P(r.focusCancel),a=-1,l=0;l<i.length;l++)if(o===i[l]){a=l;break}n.shiftKey?J(a,-1):J(a,1),n.stopPropagation(),n.preventDefault()}else-1!==["ArrowLeft","ArrowRight","ArrowUp","ArrowDown","Left","Right","Up","Down"].indexOf(n.key)?document.activeElement===Z&&H($)?$.focus():document.activeElement===$&&H(Z)&&Z.focus():"Escape"!==n.key&&"Esc"!==n.key||!0!==r.allowEscapeKey||s("esc");else if(n.target===f()){if(-1!==["textarea","file"].indexOf(r.input))return;e.clickConfirm(),n.preventDefault()}}),r.buttonsStyling&&(Z.style.borderLeftColor=r.confirmButtonColor,Z.style.borderRightColor=r.confirmButtonColor),e.hideLoading=e.disableLoading=function(){r.showConfirmButton||(M(Z),r.showCancelButton||M(A())),V([p,W],o.loading),p.removeAttribute("aria-busy"),p.removeAttribute("data-loading"),Z.disabled=!1,$.disabled=!1},e.getTitle=function(){return h()},e.getContent=function(){return y()},e.getInput=function(){return f()},e.getImage=function(){return w()},e.getButtonsWrapper=function(){return A()},e.getConfirmButton=function(){return k()},e.getCancelButton=function(){return S()},e.isLoading=function(){return v().hasAttribute("data-loading")},e.enableButtons=function(){Z.disabled=!1,$.disabled=!1},e.disableButtons=function(){Z.disabled=!0,$.disabled=!0},e.enableConfirmButton=function(){Z.disabled=!1},e.disableConfirmButton=function(){Z.disabled=!0},e.enableInput=function(){var e=f();if(!e)return!1;if("radio"===e.type)for(var t=e.parentNode.parentNode.querySelectorAll("input"),n=0;n<t.length;n++)t[n].disabled=!1;else e.disabled=!1},e.disableInput=function(){var e=f();if(!e)return!1;if(e&&"radio"===e.type)for(var t=e.parentNode.parentNode.querySelectorAll("input"),n=0;n<t.length;n++)t[n].disabled=!0;else e.disabled=!0},e.showValidationError=function(e){var t=x();t.innerHTML=e,N(t);var n=f();n&&(n.setAttribute("aria-invalid",!0),n.setAttribute("aria-describedBy",o.validationerror),T(n),O(n,o.inputerror))},e.resetValidationError=function(){var e=x();M(e);var t=f();t&&(t.removeAttribute("aria-invalid"),t.removeAttribute("aria-describedBy"),V(t,o.inputerror))},e.getProgressSteps=function(){return r.progressSteps},e.setProgressSteps=function(e){r.progressSteps=e,_(r)},e.showProgressSteps=function(){N(C())},e.hideProgressSteps=function(){M(C())},e.enableButtons(),e.hideLoading(),e.resetValidationError(),r.input&&O(document.body,o["has-input"]);for(var X=["input","file","range","select","radio","checkbox","textarea"],F=void 0,G=0;G<X.length;G++){var ee=o[X[G]],te=j(p,ee);if(F=f(X[G])){for(var ne in F.attributes)if(F.attributes.hasOwnProperty(ne)){var oe=F.attributes[ne].name;"type"!==oe&&"value"!==oe&&F.removeAttribute(oe)}for(var ie in r.inputAttributes)F.setAttribute(ie,r.inputAttributes[ie])}te.className=ee,r.inputClass&&O(te,r.inputClass),M(te)}var re=void 0;switch(r.input){case"text":case"email":case"password":case"number":case"tel":case"url":(F=j(p,o.input)).value=r.inputValue,F.placeholder=r.inputPlaceholder,F.type=r.input,N(F);break;case"file":(F=j(p,o.file)).placeholder=r.inputPlaceholder,F.type=r.input,N(F);break;case"range":var ae=j(p,o.range),se=ae.querySelector("input"),le=ae.querySelector("output");se.value=r.inputValue,se.type=r.input,le.value=r.inputValue,N(ae);break;case"select":var ue=j(p,o.select);if(ue.innerHTML="",r.inputPlaceholder){var ce=document.createElement("option");ce.innerHTML=r.inputPlaceholder,ce.value="",ce.disabled=!0,ce.selected=!0,ue.appendChild(ce)}re=function(e){for(var t in e){var n=document.createElement("option");n.value=t,n.innerHTML=e[t],r.inputValue.toString()===t&&(n.selected=!0),ue.appendChild(n)}N(ue),ue.focus()};break;case"radio":var de=j(p,o.radio);de.innerHTML="",re=function(e){for(var t in e){var n=document.createElement("input"),i=document.createElement("label"),a=document.createElement("span");n.type="radio",n.name=o.radio,n.value=t,r.inputValue.toString()===t&&(n.checked=!0),a.innerHTML=e[t],i.appendChild(n),i.appendChild(a),i.for=n.id,de.appendChild(i)}N(de);var s=de.querySelectorAll("input");s.length&&s[0].focus()};break;case"checkbox":var pe=j(p,o.checkbox),fe=f("checkbox");fe.type="checkbox",fe.value=1,fe.id=o.checkbox,fe.checked=Boolean(r.inputValue);var me=pe.getElementsByTagName("span");me.length&&pe.removeChild(me[0]),(me=document.createElement("span")).innerHTML=r.inputPlaceholder,pe.appendChild(me),N(pe);break;case"textarea":var be=j(p,o.textarea);be.value=r.inputValue,be.placeholder=r.inputPlaceholder,N(be);break;case null:break;default:l('Unexpected type of input! Expected "text", "email", "password", "number", "tel", "select", "radio", "checkbox", "textarea", "file" or "url", got "'+r.input+'"')}"select"!==r.input&&"radio"!==r.input||(r.inputOptions instanceof Promise?(e.showLoading(),r.inputOptions.then(function(t){e.hideLoading(),re(t)})):"object"===I(r.inputOptions)?re(r.inputOptions):l("Unexpected type of inputOptions! Expected object or Promise, got "+I(r.inputOptions))),function(e,t,n){var i=b(),r=v();null!==t&&"function"==typeof t&&t(r),e?(O(r,o.show),O(i,o.fade),V(r,o.hide)):V(r,o.fade),N(r),i.style.overflowY="hidden",R&&!L(r,o.noanimation)?r.addEventListener(R,function e(){r.removeEventListener(R,e),i.style.overflowY="auto"}):i.style.overflowY="auto",O([document.documentElement,document.body,i],o.shown),E()&&(Q(),Y()),d.previousActiveElement=document.activeElement,null!==n&&"function"==typeof n&&setTimeout(function(){n(r)})}(r.animation,r.onBeforeOpen,r.onOpen),r.toast||(r.allowEnterKey?r.focusCancel&&H($)?$.focus():r.focusConfirm&&H(Z)?Z.focus():J(-1,1):document.activeElement&&document.activeElement.blur()),b().scrollTop=0})}};return $.isVisible=function(){return!!v()},$.queue=function(e){W=e;var t=function(){W=[],document.body.removeAttribute("data-swal2-queue-step")},n=[];return new Promise(function(e,o){!function o(i,r){i<W.length?(document.body.setAttribute("data-swal2-queue-step",i),$(W[i]).then(function(a){void 0!==a.value?(n.push(a.value),o(i+1,r)):(t(),e({dismiss:a.dismiss}))})):(t(),e({value:n}))}(0)})},$.getQueueStep=function(){return document.body.getAttribute("data-swal2-queue-step")},$.insertQueueStep=function(e,t){return t&&t<W.length?W.splice(t,0,e):W.push(e)},$.deleteQueueStep=function(e){void 0!==W[e]&&W.splice(e,1)},$.close=$.closePopup=$.closeModal=$.closeToast=function(e){var t=b(),n=v();if(n){V(n,o.show),O(n,o.hide),clearTimeout(n.timeout),document.body.classList.contains(o["toast-shown"])||(!function(){if(d.previousActiveElement&&d.previousActiveElement.focus){var e=window.scrollX,t=window.scrollY;d.previousActiveElement.focus(),void 0!==e&&void 0!==t&&window.scrollTo(e,t)}}(),window.onkeydown=z,K=!1);var i=function(){t.parentNode&&t.parentNode.removeChild(t),V([document.documentElement,document.body],[o.shown,o["no-backdrop"],o["has-input"],o["toast-shown"]]),E()&&(null!==d.previousBodyPadding&&(document.body.style.paddingRight=d.previousBodyPadding,d.previousBodyPadding=null),function(){if(L(document.body,o.iosfix)){var e=parseInt(document.body.style.top,10);V(document.body,o.iosfix),document.body.style.top="",document.body.scrollTop=-1*e}}())};R&&!L(n,o.noanimation)?n.addEventListener(R,function e(){n.removeEventListener(R,e),L(n,o.hide)&&i()}):i(),null!==e&&"function"==typeof e&&setTimeout(function(){e(n)})}},$.clickConfirm=function(){return k().click()},$.clickCancel=function(){return S().click()},$.showLoading=$.enableLoading=function(){var e=v();e||$(""),e=v();var t=A(),n=k(),i=S();N(t),N(n,"inline-block"),O([e,t],o.loading),n.disabled=!0,i.disabled=!0,e.setAttribute("data-loading",!0),e.setAttribute("aria-busy",!0),e.focus()},$.isValidParameter=function(t){return e.hasOwnProperty(t)||"extraParams"===t},$.isDeprecatedParameter=function(e){return-1!==t.indexOf(e)},$.setDefaults=function(e){if(!e||"object"!==(void 0===e?"undefined":I(e)))return l("the argument for setDefaults() is required and has to be a object");Z(e);for(var t in e)$.isValidParameter(t)&&(U[t]=e[t])},$.resetDefaults=function(){U=D({},e)},$.adaptInputValidator=function(e){return function(t,n){return e.call(this,t,n).then(function(){},function(e){return e})}},$.noop=function(){},$.version="7.3.5",$.default=$,"undefined"!=typeof window&&"object"===I(window._swalDefaults)&&$.setDefaults(window._swalDefaults),$}),"undefined"!=typeof window&&window.Sweetalert2&&(window.sweetAlert=window.swal=window.Sweetalert2);

Zerion Mini Shell 1.0