File manager - Edit - /home/autoph/public_html/projects/ahg-hr/assets/sweetalert2.50e64164.js
Back
const qe="SweetAlert2:",pt=e=>{const t=[];for(let n=0;n<e.length;n++)t.indexOf(e[n])===-1&&t.push(e[n]);return t},pe=e=>e.charAt(0).toUpperCase()+e.slice(1),v=e=>Array.prototype.slice.call(e),y=e=>{console.warn(`${qe} ${typeof e=="object"?e.join(" "):e}`)},I=e=>{console.error(`${qe} ${e}`)},Be=[],ht=e=>{Be.includes(e)||(Be.push(e),y(e))},gt=(e,t)=>{ht(`"${e}" is deprecated and will be removed in the next major release. Please use "${t}" instead.`)},Q=e=>typeof e=="function"?e():e,he=e=>e&&typeof e.toPromise=="function",_=e=>he(e)?e.toPromise():Promise.resolve(e),ge=e=>e&&Promise.resolve(e)===e,M={title:"",titleText:"",text:"",html:"",footer:"",icon:void 0,iconColor:void 0,iconHtml:void 0,template:void 0,toast:!1,showClass:{popup:"swal2-show",backdrop:"swal2-backdrop-show",icon:"swal2-icon-show"},hideClass:{popup:"swal2-hide",backdrop:"swal2-backdrop-hide",icon:"swal2-icon-hide"},customClass:{},target:"body",color:void 0,backdrop:!0,heightAuto:!0,allowOutsideClick:!0,allowEscapeKey:!0,allowEnterKey:!0,stopKeydownPropagation:!0,keydownListenerCapture:!1,showConfirmButton:!0,showDenyButton:!1,showCancelButton:!1,preConfirm:void 0,preDeny:void 0,confirmButtonText:"OK",confirmButtonAriaLabel:"",confirmButtonColor:void 0,denyButtonText:"No",denyButtonAriaLabel:"",denyButtonColor:void 0,cancelButtonText:"Cancel",cancelButtonAriaLabel:"",cancelButtonColor:void 0,buttonsStyling:!0,reverseButtons:!1,focusConfirm:!0,focusDeny:!1,focusCancel:!1,returnFocus:!0,showCloseButton:!1,closeButtonHtml:"×",closeButtonAriaLabel:"Close this dialog",loaderHtml:"",showLoaderOnConfirm:!1,showLoaderOnDeny:!1,imageUrl:void 0,imageWidth:void 0,imageHeight:void 0,imageAlt:"",timer:void 0,timerProgressBar:!1,width:void 0,padding:void 0,background:void 0,input:void 0,inputPlaceholder:"",inputLabel:"",inputValue:"",inputOptions:{},inputAutoTrim:!0,inputAttributes:{},inputValidator:void 0,returnInputValueOnDeny:!1,validationMessage:void 0,grow:!1,position:"center",progressSteps:[],currentProgressStep:void 0,progressStepsDistance:void 0,willOpen:void 0,didOpen:void 0,didRender:void 0,willClose:void 0,didClose:void 0,didDestroy:void 0,scrollbarPadding:!0},mt=["allowEscapeKey","allowOutsideClick","background","buttonsStyling","cancelButtonAriaLabel","cancelButtonColor","cancelButtonText","closeButtonAriaLabel","closeButtonHtml","color","confirmButtonAriaLabel","confirmButtonColor","confirmButtonText","currentProgressStep","customClass","denyButtonAriaLabel","denyButtonColor","denyButtonText","didClose","didDestroy","footer","hideClass","html","icon","iconColor","iconHtml","imageAlt","imageHeight","imageUrl","imageWidth","preConfirm","preDeny","progressSteps","returnFocus","reverseButtons","showCancelButton","showCloseButton","showConfirmButton","showDenyButton","text","title","titleText","willClose"],bt={},yt=["allowOutsideClick","allowEnterKey","backdrop","focusConfirm","focusDeny","focusCancel","returnFocus","heightAuto","keydownListenerCapture"],Ve=e=>Object.prototype.hasOwnProperty.call(M,e),Fe=e=>mt.indexOf(e)!==-1,le=e=>bt[e],wt=e=>{Ve(e)||y(`Unknown parameter "${e}"`)},Ct=e=>{yt.includes(e)&&y(`The parameter "${e}" is incompatible with toasts`)},vt=e=>{le(e)&>(e,le(e))},Pt=e=>{!e.backdrop&&e.allowOutsideClick&&y('"allowOutsideClick" parameter requires `backdrop` parameter to be set to `true`');for(const t in e)wt(t),e.toast&&Ct(t),vt(t)},kt="swal2-",We=e=>{const t={};for(const n in e)t[e[n]]=kt+e[n];return t},i=We(["container","shown","height-auto","iosfix","popup","modal","no-backdrop","no-transition","toast","toast-shown","show","hide","close","title","html-container","actions","confirm","deny","cancel","default-outline","footer","icon","icon-content","image","input","file","range","select","radio","checkbox","label","textarea","inputerror","input-label","validation-message","progress-steps","active-progress-step","progress-step","progress-step-line","loader","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","rtl","timer-progress-bar","timer-progress-bar-container","scrollbar-measure","icon-success","icon-warning","icon-info","icon-question","icon-error"]),F=We(["success","warning","info","question","error"]),h=()=>document.body.querySelector(`.${i.container}`),N=e=>{const t=h();return t?t.querySelector(e):null},k=e=>N(`.${e}`),a=()=>k(i.popup),z=()=>k(i.icon),Re=()=>k(i.title),X=()=>k(i["html-container"]),Ue=()=>k(i.image),_e=()=>k(i["progress-steps"]),ee=()=>k(i["validation-message"]),A=()=>N(`.${i.actions} .${i.confirm}`),x=()=>N(`.${i.actions} .${i.deny}`),At=()=>k(i["input-label"]),j=()=>N(`.${i.loader}`),$=()=>N(`.${i.actions} .${i.cancel}`),K=()=>k(i.actions),Ne=()=>k(i.footer),te=()=>k(i["timer-progress-bar"]),me=()=>k(i.close),Bt=` a[href], area[href], input:not([disabled]), select:not([disabled]), textarea:not([disabled]), button:not([disabled]), iframe, object, embed, [tabindex="0"], [contenteditable], audio[controls], video[controls], summary `,be=()=>{const e=v(a().querySelectorAll('[tabindex]:not([tabindex="-1"]):not([tabindex="0"])')).sort((n,o)=>{const s=parseInt(n.getAttribute("tabindex")),r=parseInt(o.getAttribute("tabindex"));return s>r?1:s<r?-1:0}),t=v(a().querySelectorAll(Bt)).filter(n=>n.getAttribute("tabindex")!=="-1");return pt(e.concat(t)).filter(n=>C(n))},ye=()=>E(document.body,i.shown)&&!E(document.body,i["toast-shown"])&&!E(document.body,i["no-backdrop"]),ne=()=>a()&&E(a(),i.toast),Et=()=>a().hasAttribute("data-loading"),H={previousBodyPadding:null},p=(e,t)=>{if(e.textContent="",t){const o=new DOMParser().parseFromString(t,"text/html");v(o.querySelector("head").childNodes).forEach(s=>{e.appendChild(s)}),v(o.querySelector("body").childNodes).forEach(s=>{e.appendChild(s)})}},E=(e,t)=>{if(!t)return!1;const n=t.split(/\s+/);for(let o=0;o<n.length;o++)if(!e.classList.contains(n[o]))return!1;return!0},St=(e,t)=>{v(e.classList).forEach(n=>{!Object.values(i).includes(n)&&!Object.values(F).includes(n)&&!Object.values(t.showClass).includes(n)&&e.classList.remove(n)})},P=(e,t,n)=>{if(St(e,t),t.customClass&&t.customClass[n]){if(typeof t.customClass[n]!="string"&&!t.customClass[n].forEach)return y(`Invalid type of customClass.${n}! Expected string or iterable object, got "${typeof t.customClass[n]}"`);u(e,t.customClass[n])}},we=(e,t)=>{if(!t)return null;switch(t){case"select":case"textarea":case"file":return e.querySelector(`.${i.popup} > .${i[t]}`);case"checkbox":return e.querySelector(`.${i.popup} > .${i.checkbox} input`);case"radio":return e.querySelector(`.${i.popup} > .${i.radio} input:checked`)||e.querySelector(`.${i.popup} > .${i.radio} input:first-child`);case"range":return e.querySelector(`.${i.popup} > .${i.range} input`);default:return e.querySelector(`.${i.popup} > .${i.input}`)}},ze=e=>{if(e.focus(),e.type!=="file"){const t=e.value;e.value="",e.value=t}},Ke=(e,t,n)=>{!e||!t||(typeof t=="string"&&(t=t.split(/\s+/).filter(Boolean)),t.forEach(o=>{Array.isArray(e)?e.forEach(s=>{n?s.classList.add(o):s.classList.remove(o)}):n?e.classList.add(o):e.classList.remove(o)}))},u=(e,t)=>{Ke(e,t,!0)},B=(e,t)=>{Ke(e,t,!1)},S=(e,t)=>{const n=v(e.childNodes);for(let o=0;o<n.length;o++)if(E(n[o],t))return n[o]},W=(e,t,n)=>{n===`${parseInt(n)}`&&(n=parseInt(n)),n||parseInt(n)===0?e.style[t]=typeof n=="number"?`${n}px`:n:e.style.removeProperty(t)},f=(e,t="flex")=>{e.style.display=t},g=e=>{e.style.display="none"},Ee=(e,t,n,o)=>{const s=e.querySelector(t);s&&(s.style[n]=o)},oe=(e,t,n)=>{t?f(e,n):g(e)},C=e=>!!(e&&(e.offsetWidth||e.offsetHeight||e.getClientRects().length)),xt=()=>!C(A())&&!C(x())&&!C($()),Se=e=>e.scrollHeight>e.clientHeight,Ye=e=>{const t=window.getComputedStyle(e),n=parseFloat(t.getPropertyValue("animation-duration")||"0"),o=parseFloat(t.getPropertyValue("transition-duration")||"0");return n>0||o>0},Ce=(e,t=!1)=>{const n=te();C(n)&&(t&&(n.style.transition="none",n.style.width="100%"),setTimeout(()=>{n.style.transition=`width ${e/1e3}s linear`,n.style.width="0%"},10))},Tt=()=>{const e=te(),t=parseInt(window.getComputedStyle(e).width);e.style.removeProperty("transition"),e.style.width="100%";const n=parseInt(window.getComputedStyle(e).width),o=t/n*100;e.style.removeProperty("transition"),e.style.width=`${o}%`},Ze=()=>typeof window>"u"||typeof document>"u",$t=100,l={},Ot=()=>{l.previousActiveElement&&l.previousActiveElement.focus?(l.previousActiveElement.focus(),l.previousActiveElement=null):document.body&&document.body.focus()},It=e=>new Promise(t=>{if(!e)return t();const n=window.scrollX,o=window.scrollY;l.restoreFocusTimeout=setTimeout(()=>{Ot(),t()},$t),window.scrollTo(n,o)}),Lt=` <div aria-labelledby="${i.title}" aria-describedby="${i["html-container"]}" class="${i.popup}" tabindex="-1"> <button type="button" class="${i.close}"></button> <ul class="${i["progress-steps"]}"></ul> <div class="${i.icon}"></div> <img class="${i.image}" /> <h2 class="${i.title}" id="${i.title}"></h2> <div class="${i["html-container"]}" id="${i["html-container"]}"></div> <input class="${i.input}" /> <input type="file" class="${i.file}" /> <div class="${i.range}"> <input type="range" /> <output></output> </div> <select class="${i.select}"></select> <div class="${i.radio}"></div> <label for="${i.checkbox}" class="${i.checkbox}"> <input type="checkbox" /> <span class="${i.label}"></span> </label> <textarea class="${i.textarea}"></textarea> <div class="${i["validation-message"]}" id="${i["validation-message"]}"></div> <div class="${i.actions}"> <div class="${i.loader}"></div> <button type="button" class="${i.confirm}"></button> <button type="button" class="${i.deny}"></button> <button type="button" class="${i.cancel}"></button> </div> <div class="${i.footer}"></div> <div class="${i["timer-progress-bar-container"]}"> <div class="${i["timer-progress-bar"]}"></div> </div> </div> `.replace(/(^|\n)\s*/g,""),Mt=()=>{const e=h();return e?(e.remove(),B([document.documentElement,document.body],[i["no-backdrop"],i["toast-shown"],i["has-column"]]),!0):!1},T=()=>{l.currentInstance.resetValidationMessage()},Ht=()=>{const e=a(),t=S(e,i.input),n=S(e,i.file),o=e.querySelector(`.${i.range} input`),s=e.querySelector(`.${i.range} output`),r=S(e,i.select),d=e.querySelector(`.${i.checkbox} input`),w=S(e,i.textarea);t.oninput=T,n.onchange=T,r.onchange=T,d.onchange=T,w.oninput=T,o.oninput=()=>{T(),s.value=o.value},o.onchange=()=>{T(),o.nextSibling.value=o.value}},Dt=e=>typeof e=="string"?document.querySelector(e):e,jt=e=>{const t=a();t.setAttribute("role",e.toast?"alert":"dialog"),t.setAttribute("aria-live",e.toast?"polite":"assertive"),e.toast||t.setAttribute("aria-modal","true")},qt=e=>{window.getComputedStyle(e).direction==="rtl"&&u(h(),i.rtl)},Vt=e=>{const t=Mt();if(Ze()){I("SweetAlert2 requires document to initialize");return}const n=document.createElement("div");n.className=i.container,t&&u(n,i["no-transition"]),p(n,Lt);const o=Dt(e.target);o.appendChild(n),jt(e),qt(o),Ht()},ve=(e,t)=>{e instanceof HTMLElement?t.appendChild(e):typeof e=="object"?Ft(e,t):e&&p(t,e)},Ft=(e,t)=>{e.jquery?Wt(t,e):p(t,e.toString())},Wt=(e,t)=>{if(e.textContent="",0 in t)for(let n=0;n in t;n++)e.appendChild(t[n].cloneNode(!0));else e.appendChild(t.cloneNode(!0))},R=(()=>{if(Ze())return!1;const e=document.createElement("div"),t={WebkitAnimation:"webkitAnimationEnd",animation:"animationend"};for(const n in t)if(Object.prototype.hasOwnProperty.call(t,n)&&typeof e.style[n]<"u")return t[n];return!1})(),Rt=()=>{const e=document.createElement("div");e.className=i["scrollbar-measure"],document.body.appendChild(e);const t=e.getBoundingClientRect().width-e.clientWidth;return document.body.removeChild(e),t},Ut=(e,t)=>{const n=K(),o=j();!t.showConfirmButton&&!t.showDenyButton&&!t.showCancelButton?g(n):f(n),P(n,t,"actions"),_t(n,o,t),p(o,t.loaderHtml),P(o,t,"loader")};function _t(e,t,n){const o=A(),s=x(),r=$();se(o,"confirm",n),se(s,"deny",n),se(r,"cancel",n),Nt(o,s,r,n),n.reverseButtons&&(n.toast?(e.insertBefore(r,o),e.insertBefore(s,o)):(e.insertBefore(r,t),e.insertBefore(s,t),e.insertBefore(o,t)))}function Nt(e,t,n,o){if(!o.buttonsStyling)return B([e,t,n],i.styled);u([e,t,n],i.styled),o.confirmButtonColor&&(e.style.backgroundColor=o.confirmButtonColor,u(e,i["default-outline"])),o.denyButtonColor&&(t.style.backgroundColor=o.denyButtonColor,u(t,i["default-outline"])),o.cancelButtonColor&&(n.style.backgroundColor=o.cancelButtonColor,u(n,i["default-outline"]))}function se(e,t,n){oe(e,n[`show${pe(t)}Button`],"inline-block"),p(e,n[`${t}ButtonText`]),e.setAttribute("aria-label",n[`${t}ButtonAriaLabel`]),e.className=i[t],P(e,n,`${t}Button`),u(e,n[`${t}ButtonClass`])}function zt(e,t){typeof t=="string"?e.style.background=t:t||u([document.documentElement,document.body],i["no-backdrop"])}function Kt(e,t){t in i?u(e,i[t]):(y('The "position" parameter is not valid, defaulting to "center"'),u(e,i.center))}function Yt(e,t){if(t&&typeof t=="string"){const n=`grow-${t}`;n in i&&u(e,i[n])}}const Zt=(e,t)=>{const n=h();n&&(zt(n,t.backdrop),Kt(n,t.position),Yt(n,t.grow),P(n,t,"container"))},c={awaitingPromise:new WeakMap,promise:new WeakMap,innerParams:new WeakMap,domCache:new WeakMap},Jt=["input","file","range","select","radio","checkbox","textarea"],Xt=(e,t)=>{const n=a(),o=c.innerParams.get(e),s=!o||t.input!==o.input;Jt.forEach(r=>{const d=i[r],w=S(n,d);en(r,t.inputAttributes),w.className=d,s&&g(w)}),t.input&&(s&&Gt(t),tn(t))},Gt=e=>{if(!b[e.input])return I(`Unexpected type of input! Expected "text", "email", "password", "number", "tel", "select", "radio", "checkbox", "textarea", "file" or "url", got "${e.input}"`);const t=Je(e.input),n=b[e.input](t,e);f(n),setTimeout(()=>{ze(n)})},Qt=e=>{for(let t=0;t<e.attributes.length;t++){const n=e.attributes[t].name;["type","value","style"].includes(n)||e.removeAttribute(n)}},en=(e,t)=>{const n=we(a(),e);if(n){Qt(n);for(const o in t)n.setAttribute(o,t[o])}},tn=e=>{const t=Je(e.input);e.customClass&&u(t,e.customClass.input)},Pe=(e,t)=>{(!e.placeholder||t.inputPlaceholder)&&(e.placeholder=t.inputPlaceholder)},Y=(e,t,n)=>{if(n.inputLabel){e.id=i.input;const o=document.createElement("label"),s=i["input-label"];o.setAttribute("for",e.id),o.className=s,u(o,n.customClass.inputLabel),o.innerText=n.inputLabel,t.insertAdjacentElement("beforebegin",o)}},Je=e=>{const t=i[e]?i[e]:i.input;return S(a(),t)},b={};b.text=b.email=b.password=b.number=b.tel=b.url=(e,t)=>(typeof t.inputValue=="string"||typeof t.inputValue=="number"?e.value=t.inputValue:ge(t.inputValue)||y(`Unexpected type of inputValue! Expected "string", "number" or "Promise", got "${typeof t.inputValue}"`),Y(e,e,t),Pe(e,t),e.type=t.input,e);b.file=(e,t)=>(Y(e,e,t),Pe(e,t),e);b.range=(e,t)=>{const n=e.querySelector("input"),o=e.querySelector("output");return n.value=t.inputValue,n.type=t.input,o.value=t.inputValue,Y(n,e,t),e};b.select=(e,t)=>{if(e.textContent="",t.inputPlaceholder){const n=document.createElement("option");p(n,t.inputPlaceholder),n.value="",n.disabled=!0,n.selected=!0,e.appendChild(n)}return Y(e,e,t),e};b.radio=e=>(e.textContent="",e);b.checkbox=(e,t)=>{const n=we(a(),"checkbox");n.value="1",n.id=i.checkbox,n.checked=!!t.inputValue;const o=e.querySelector("span");return p(o,t.inputPlaceholder),e};b.textarea=(e,t)=>{e.value=t.inputValue,Pe(e,t),Y(e,e,t);const n=o=>parseInt(window.getComputedStyle(o).marginLeft)+parseInt(window.getComputedStyle(o).marginRight);return setTimeout(()=>{if("MutationObserver"in window){const o=parseInt(window.getComputedStyle(a()).width),s=()=>{const r=e.offsetWidth+n(e);r>o?a().style.width=`${r}px`:a().style.width=null};new MutationObserver(s).observe(e,{attributes:!0,attributeFilter:["style"]})}}),e};const nn=(e,t)=>{const n=X();P(n,t,"htmlContainer"),t.html?(ve(t.html,n),f(n,"block")):t.text?(n.textContent=t.text,f(n,"block")):g(n),Xt(e,t)},on=(e,t)=>{const n=Ne();oe(n,t.footer),t.footer&&ve(t.footer,n),P(n,t,"footer")},sn=(e,t)=>{const n=me();p(n,t.closeButtonHtml),P(n,t,"closeButton"),oe(n,t.showCloseButton),n.setAttribute("aria-label",t.closeButtonAriaLabel)},rn=(e,t)=>{const n=c.innerParams.get(e),o=z();if(n&&t.icon===n.icon){Te(o,t),xe(o,t);return}if(!t.icon&&!t.iconHtml)return g(o);if(t.icon&&Object.keys(F).indexOf(t.icon)===-1)return I(`Unknown icon! Expected "success", "error", "warning", "info" or "question", got "${t.icon}"`),g(o);f(o),Te(o,t),xe(o,t),u(o,t.showClass.icon)},xe=(e,t)=>{for(const n in F)t.icon!==n&&B(e,F[n]);u(e,F[t.icon]),an(e,t),ln(),P(e,t,"icon")},ln=()=>{const e=a(),t=window.getComputedStyle(e).getPropertyValue("background-color"),n=e.querySelectorAll("[class^=swal2-success-circular-line], .swal2-success-fix");for(let o=0;o<n.length;o++)n[o].style.backgroundColor=t},cn=` <div class="swal2-success-circular-line-left"></div> <span class="swal2-success-line-tip"></span> <span class="swal2-success-line-long"></span> <div class="swal2-success-ring"></div> <div class="swal2-success-fix"></div> <div class="swal2-success-circular-line-right"></div> `,un=` <span class="swal2-x-mark"> <span class="swal2-x-mark-line-left"></span> <span class="swal2-x-mark-line-right"></span> </span> `,Te=(e,t)=>{e.textContent="",t.iconHtml?p(e,$e(t.iconHtml)):t.icon==="success"?p(e,cn):t.icon==="error"?p(e,un):p(e,$e({question:"?",warning:"!",info:"i"}[t.icon]))},an=(e,t)=>{if(t.iconColor){e.style.color=t.iconColor,e.style.borderColor=t.iconColor;for(const n of[".swal2-success-line-tip",".swal2-success-line-long",".swal2-x-mark-line-left",".swal2-x-mark-line-right"])Ee(e,n,"backgroundColor",t.iconColor);Ee(e,".swal2-success-ring","borderColor",t.iconColor)}},$e=e=>`<div class="${i["icon-content"]}">${e}</div>`,dn=(e,t)=>{const n=Ue();if(!t.imageUrl)return g(n);f(n,""),n.setAttribute("src",t.imageUrl),n.setAttribute("alt",t.imageAlt),W(n,"width",t.imageWidth),W(n,"height",t.imageHeight),n.className=i.image,P(n,t,"image")},fn=e=>{const t=document.createElement("li");return u(t,i["progress-step"]),p(t,e),t},pn=e=>{const t=document.createElement("li");return u(t,i["progress-step-line"]),e.progressStepsDistance&&(t.style.width=e.progressStepsDistance),t},hn=(e,t)=>{const n=_e();if(!t.progressSteps||t.progressSteps.length===0)return g(n);f(n),n.textContent="",t.currentProgressStep>=t.progressSteps.length&&y("Invalid currentProgressStep parameter, it should be less than progressSteps.length (currentProgressStep like JS arrays starts from 0)"),t.progressSteps.forEach((o,s)=>{const r=fn(o);if(n.appendChild(r),s===t.currentProgressStep&&u(r,i["active-progress-step"]),s!==t.progressSteps.length-1){const d=pn(t);n.appendChild(d)}})},gn=(e,t)=>{const n=Re();oe(n,t.title||t.titleText,"block"),t.title&&ve(t.title,n),t.titleText&&(n.innerText=t.titleText),P(n,t,"title")},mn=(e,t)=>{const n=h(),o=a();t.toast?(W(n,"width",t.width),o.style.width="100%",o.insertBefore(j(),z())):W(o,"width",t.width),W(o,"padding",t.padding),t.color&&(o.style.color=t.color),t.background&&(o.style.background=t.background),g(ee()),bn(o,t)},bn=(e,t)=>{e.className=`${i.popup} ${C(e)?t.showClass.popup:""}`,t.toast?(u([document.documentElement,document.body],i["toast-shown"]),u(e,i.toast)):u(e,i.modal),P(e,t,"popup"),typeof t.customClass=="string"&&u(e,t.customClass),t.icon&&u(e,i[`icon-${t.icon}`])},Xe=(e,t)=>{mn(e,t),Zt(e,t),hn(e,t),rn(e,t),dn(e,t),gn(e,t),sn(e,t),nn(e,t),Ut(e,t),on(e,t),typeof t.didRender=="function"&&t.didRender(a())},q=Object.freeze({cancel:"cancel",backdrop:"backdrop",close:"close",esc:"esc",timer:"timer"}),yn=()=>{v(document.body.children).forEach(t=>{t===h()||t.contains(h())||(t.hasAttribute("aria-hidden")&&t.setAttribute("data-previous-aria-hidden",t.getAttribute("aria-hidden")),t.setAttribute("aria-hidden","true"))})},Ge=()=>{v(document.body.children).forEach(t=>{t.hasAttribute("data-previous-aria-hidden")?(t.setAttribute("aria-hidden",t.getAttribute("data-previous-aria-hidden")),t.removeAttribute("data-previous-aria-hidden")):t.removeAttribute("aria-hidden")})},Qe=["swal-title","swal-html","swal-footer"],wn=e=>{const t=typeof e.template=="string"?document.querySelector(e.template):e.template;if(!t)return{};const n=t.content;return En(n),Object.assign(Cn(n),vn(n),Pn(n),kn(n),An(n),Bn(n,Qe))},Cn=e=>{const t={};return v(e.querySelectorAll("swal-param")).forEach(n=>{O(n,["name","value"]);const o=n.getAttribute("name"),s=n.getAttribute("value");typeof M[o]=="boolean"&&s==="false"&&(t[o]=!1),typeof M[o]=="object"&&(t[o]=JSON.parse(s))}),t},vn=e=>{const t={};return v(e.querySelectorAll("swal-button")).forEach(n=>{O(n,["type","color","aria-label"]);const o=n.getAttribute("type");t[`${o}ButtonText`]=n.innerHTML,t[`show${pe(o)}Button`]=!0,n.hasAttribute("color")&&(t[`${o}ButtonColor`]=n.getAttribute("color")),n.hasAttribute("aria-label")&&(t[`${o}ButtonAriaLabel`]=n.getAttribute("aria-label"))}),t},Pn=e=>{const t={},n=e.querySelector("swal-image");return n&&(O(n,["src","width","height","alt"]),n.hasAttribute("src")&&(t.imageUrl=n.getAttribute("src")),n.hasAttribute("width")&&(t.imageWidth=n.getAttribute("width")),n.hasAttribute("height")&&(t.imageHeight=n.getAttribute("height")),n.hasAttribute("alt")&&(t.imageAlt=n.getAttribute("alt"))),t},kn=e=>{const t={},n=e.querySelector("swal-icon");return n&&(O(n,["type","color"]),n.hasAttribute("type")&&(t.icon=n.getAttribute("type")),n.hasAttribute("color")&&(t.iconColor=n.getAttribute("color")),t.iconHtml=n.innerHTML),t},An=e=>{const t={},n=e.querySelector("swal-input");n&&(O(n,["type","label","placeholder","value"]),t.input=n.getAttribute("type")||"text",n.hasAttribute("label")&&(t.inputLabel=n.getAttribute("label")),n.hasAttribute("placeholder")&&(t.inputPlaceholder=n.getAttribute("placeholder")),n.hasAttribute("value")&&(t.inputValue=n.getAttribute("value")));const o=e.querySelectorAll("swal-input-option");return o.length&&(t.inputOptions={},v(o).forEach(s=>{O(s,["value"]);const r=s.getAttribute("value"),d=s.innerHTML;t.inputOptions[r]=d})),t},Bn=(e,t)=>{const n={};for(const o in t){const s=t[o],r=e.querySelector(s);r&&(O(r,[]),n[s.replace(/^swal-/,"")]=r.innerHTML.trim())}return n},En=e=>{const t=Qe.concat(["swal-param","swal-button","swal-image","swal-icon","swal-input","swal-input-option"]);v(e.children).forEach(n=>{const o=n.tagName.toLowerCase();t.indexOf(o)===-1&&y(`Unrecognized element <${o}>`)})},O=(e,t)=>{v(e.attributes).forEach(n=>{t.indexOf(n.name)===-1&&y([`Unrecognized attribute "${n.name}" on <${e.tagName.toLowerCase()}>.`,`${t.length?`Allowed attributes are: ${t.join(", ")}`:"To set the value, use HTML within the element."}`])})},Oe={email:(e,t)=>/^[a-zA-Z0-9.+_-]+@[a-zA-Z0-9.-]+\.[a-zA-Z0-9-]{2,24}$/.test(e)?Promise.resolve():Promise.resolve(t||"Invalid email address"),url:(e,t)=>/^https?:\/\/(www\.)?[-a-zA-Z0-9@:%._+~#=]{1,256}\.[a-z]{2,63}\b([-a-zA-Z0-9@:%_+.~#?&/=]*)$/.test(e)?Promise.resolve():Promise.resolve(t||"Invalid URL")};function Sn(e){e.inputValidator||Object.keys(Oe).forEach(t=>{e.input===t&&(e.inputValidator=Oe[t])})}function xn(e){(!e.target||typeof e.target=="string"&&!document.querySelector(e.target)||typeof e.target!="string"&&!e.target.appendChild)&&(y('Target parameter is not valid, defaulting to "body"'),e.target="body")}function Tn(e){Sn(e),e.showLoaderOnConfirm&&!e.preConfirm&&y(`showLoaderOnConfirm is set to true, but preConfirm is not defined. showLoaderOnConfirm should be used together with preConfirm, see usage example: https://sweetalert2.github.io/#ajax-request`),xn(e),typeof e.title=="string"&&(e.title=e.title.split(` `).join("<br />")),Vt(e)}class $n{constructor(t,n){this.callback=t,this.remaining=n,this.running=!1,this.start()}start(){return this.running||(this.running=!0,this.started=new Date,this.id=setTimeout(this.callback,this.remaining)),this.remaining}stop(){return this.running&&(this.running=!1,clearTimeout(this.id),this.remaining-=new Date().getTime()-this.started.getTime()),this.remaining}increase(t){const n=this.running;return n&&this.stop(),this.remaining+=t,n&&this.start(),this.remaining}getTimerLeft(){return this.running&&(this.stop(),this.start()),this.remaining}isRunning(){return this.running}}const On=()=>{H.previousBodyPadding===null&&document.body.scrollHeight>window.innerHeight&&(H.previousBodyPadding=parseInt(window.getComputedStyle(document.body).getPropertyValue("padding-right")),document.body.style.paddingRight=`${H.previousBodyPadding+Rt()}px`)},In=()=>{H.previousBodyPadding!==null&&(document.body.style.paddingRight=`${H.previousBodyPadding}px`,H.previousBodyPadding=null)},Ln=()=>{if((/iPad|iPhone|iPod/.test(navigator.userAgent)&&!window.MSStream||navigator.platform==="MacIntel"&&navigator.maxTouchPoints>1)&&!E(document.body,i.iosfix)){const t=document.body.scrollTop;document.body.style.top=`${t*-1}px`,u(document.body,i.iosfix),Hn(),Mn()}},Mn=()=>{const e=navigator.userAgent,t=!!e.match(/iPad/i)||!!e.match(/iPhone/i),n=!!e.match(/WebKit/i);t&&n&&!e.match(/CriOS/i)&&a().scrollHeight>window.innerHeight-44&&(h().style.paddingBottom="44px")},Hn=()=>{const e=h();let t;e.ontouchstart=n=>{t=Dn(n)},e.ontouchmove=n=>{t&&(n.preventDefault(),n.stopPropagation())}},Dn=e=>{const t=e.target,n=h();return jn(e)||qn(e)?!1:t===n||!Se(n)&&t.tagName!=="INPUT"&&t.tagName!=="TEXTAREA"&&!(Se(X())&&X().contains(t))},jn=e=>e.touches&&e.touches.length&&e.touches[0].touchType==="stylus",qn=e=>e.touches&&e.touches.length>1,Vn=()=>{if(E(document.body,i.iosfix)){const e=parseInt(document.body.style.top,10);B(document.body,i.iosfix),document.body.style.top="",document.body.scrollTop=e*-1}},et=10,Fn=e=>{const t=h(),n=a();typeof e.willOpen=="function"&&e.willOpen(n);const s=window.getComputedStyle(document.body).overflowY;Un(t,n,e),setTimeout(()=>{Wn(t,n)},et),ye()&&(Rn(t,e.scrollbarPadding,s),yn()),!ne()&&!l.previousActiveElement&&(l.previousActiveElement=document.activeElement),typeof e.didOpen=="function"&&setTimeout(()=>e.didOpen(n)),B(t,i["no-transition"])},tt=e=>{const t=a();if(e.target!==t)return;const n=h();t.removeEventListener(R,tt),n.style.overflowY="auto"},Wn=(e,t)=>{R&&Ye(t)?(e.style.overflowY="hidden",t.addEventListener(R,tt)):e.style.overflowY="auto"},Rn=(e,t,n)=>{Ln(),t&&n!=="hidden"&&On(),setTimeout(()=>{e.scrollTop=0})},Un=(e,t,n)=>{u(e,n.showClass.backdrop),t.style.setProperty("opacity","0","important"),f(t,"grid"),setTimeout(()=>{u(t,n.showClass.popup),t.style.removeProperty("opacity")},et),u([document.documentElement,document.body],i.shown),n.heightAuto&&n.backdrop&&!n.toast&&u([document.documentElement,document.body],i["height-auto"])},D=e=>{let t=a();t||new fe,t=a();const n=j();ne()?g(z()):_n(t,e),f(n),t.setAttribute("data-loading",!0),t.setAttribute("aria-busy",!0),t.focus()},_n=(e,t)=>{const n=K(),o=j();!t&&C(A())&&(t=A()),f(n),t&&(g(t),o.setAttribute("data-button-to-replace",t.className)),o.parentNode.insertBefore(o,t),u([e,n],i.loading)},Nn=(e,t)=>{t.input==="select"||t.input==="radio"?Jn(e,t):["text","email","number","tel","textarea"].includes(t.input)&&(he(t.inputValue)||ge(t.inputValue))&&(D(A()),Xn(e,t))},zn=(e,t)=>{const n=e.getInput();if(!n)return null;switch(t.input){case"checkbox":return Kn(n);case"radio":return Yn(n);case"file":return Zn(n);default:return t.inputAutoTrim?n.value.trim():n.value}},Kn=e=>e.checked?1:0,Yn=e=>e.checked?e.value:null,Zn=e=>e.files.length?e.getAttribute("multiple")!==null?e.files:e.files[0]:null,Jn=(e,t)=>{const n=a(),o=s=>Gn[t.input](n,ce(s),t);he(t.inputOptions)||ge(t.inputOptions)?(D(A()),_(t.inputOptions).then(s=>{e.hideLoading(),o(s)})):typeof t.inputOptions=="object"?o(t.inputOptions):I(`Unexpected type of inputOptions! Expected object, Map or Promise, got ${typeof t.inputOptions}`)},Xn=(e,t)=>{const n=e.getInput();g(n),_(t.inputValue).then(o=>{n.value=t.input==="number"?parseFloat(o)||0:`${o}`,f(n),n.focus(),e.hideLoading()}).catch(o=>{I(`Error in inputValue promise: ${o}`),n.value="",f(n),n.focus(),e.hideLoading()})},Gn={select:(e,t,n)=>{const o=S(e,i.select),s=(r,d,w)=>{const m=document.createElement("option");m.value=w,p(m,d),m.selected=Ie(w,n.inputValue),r.appendChild(m)};t.forEach(r=>{const d=r[0],w=r[1];if(Array.isArray(w)){const m=document.createElement("optgroup");m.label=d,m.disabled=!1,o.appendChild(m),w.forEach(L=>s(m,L[1],L[0]))}else s(o,w,d)}),o.focus()},radio:(e,t,n)=>{const o=S(e,i.radio);t.forEach(r=>{const d=r[0],w=r[1],m=document.createElement("input"),L=document.createElement("label");m.type="radio",m.name=i.radio,m.value=d,Ie(d,n.inputValue)&&(m.checked=!0);const ie=document.createElement("span");p(ie,w),ie.className=i.label,L.appendChild(m),L.appendChild(ie),o.appendChild(L)});const s=o.querySelectorAll("input");s.length&&s[0].focus()}},ce=e=>{const t=[];return typeof Map<"u"&&e instanceof Map?e.forEach((n,o)=>{let s=n;typeof s=="object"&&(s=ce(s)),t.push([o,s])}):Object.keys(e).forEach(n=>{let o=e[n];typeof o=="object"&&(o=ce(o)),t.push([n,o])}),t},Ie=(e,t)=>t&&t.toString()===e.toString();function Le(){const e=c.innerParams.get(this);if(!e)return;const t=c.domCache.get(this);g(t.loader),ne()?e.icon&&f(z()):Qn(t),B([t.popup,t.actions],i.loading),t.popup.removeAttribute("aria-busy"),t.popup.removeAttribute("data-loading"),t.confirmButton.disabled=!1,t.denyButton.disabled=!1,t.cancelButton.disabled=!1}const Qn=e=>{const t=e.popup.getElementsByClassName(e.loader.getAttribute("data-button-to-replace"));t.length?f(t[0],"inline-block"):xt()&&g(e.actions)};function eo(e){const t=c.innerParams.get(e||this),n=c.domCache.get(e||this);return n?we(n.popup,t.input):null}const U={swalPromiseResolve:new WeakMap,swalPromiseReject:new WeakMap};function nt(e,t,n,o){ne()?Me(e,o):(It(n).then(()=>Me(e,o)),l.keydownTarget.removeEventListener("keydown",l.keydownHandler,{capture:l.keydownListenerCapture}),l.keydownHandlerAdded=!1),/^((?!chrome|android).)*safari/i.test(navigator.userAgent)?(t.setAttribute("style","display:none !important"),t.removeAttribute("class"),t.innerHTML=""):t.remove(),ye()&&(In(),Vn(),Ge()),to()}function to(){B([document.documentElement,document.body],[i.shown,i["height-auto"],i["no-backdrop"],i["toast-shown"]])}function J(e){e=so(e);const t=U.swalPromiseResolve.get(this),n=oo(this);this.isAwaitingPromise()?e.isDismissed||(Z(this),t(e)):n&&t(e)}function no(){return!!c.awaitingPromise.get(this)}const oo=e=>{const t=a();if(!t)return!1;const n=c.innerParams.get(e);if(!n||E(t,n.hideClass.popup))return!1;B(t,n.showClass.popup),u(t,n.hideClass.popup);const o=h();return B(o,n.showClass.backdrop),u(o,n.hideClass.backdrop),ro(e,t,n),!0};function io(e){const t=U.swalPromiseReject.get(this);Z(this),t&&t(e)}const Z=e=>{e.isAwaitingPromise()&&(c.awaitingPromise.delete(e),c.innerParams.get(e)||e._destroy())},so=e=>typeof e>"u"?{isConfirmed:!1,isDenied:!1,isDismissed:!0}:Object.assign({isConfirmed:!1,isDenied:!1,isDismissed:!1},e),ro=(e,t,n)=>{const o=h(),s=R&&Ye(t);typeof n.willClose=="function"&&n.willClose(t),s?lo(e,t,o,n.returnFocus,n.didClose):nt(e,o,n.returnFocus,n.didClose)},lo=(e,t,n,o,s)=>{l.swalCloseEventFinishedCallback=nt.bind(null,e,n,o,s),t.addEventListener(R,function(r){r.target===t&&(l.swalCloseEventFinishedCallback(),delete l.swalCloseEventFinishedCallback)})},Me=(e,t)=>{setTimeout(()=>{typeof t=="function"&&t.bind(e.params)(),e._destroy()})};function ot(e,t,n){const o=c.domCache.get(e);t.forEach(s=>{o[s].disabled=n})}function it(e,t){if(!e)return!1;if(e.type==="radio"){const o=e.parentNode.parentNode.querySelectorAll("input");for(let s=0;s<o.length;s++)o[s].disabled=t}else e.disabled=t}function co(){ot(this,["confirmButton","denyButton","cancelButton"],!1)}function uo(){ot(this,["confirmButton","denyButton","cancelButton"],!0)}function ao(){return it(this.getInput(),!1)}function fo(){return it(this.getInput(),!0)}function po(e){const t=c.domCache.get(this),n=c.innerParams.get(this);p(t.validationMessage,e),t.validationMessage.className=i["validation-message"],n.customClass&&n.customClass.validationMessage&&u(t.validationMessage,n.customClass.validationMessage),f(t.validationMessage);const o=this.getInput();o&&(o.setAttribute("aria-invalid",!0),o.setAttribute("aria-describedby",i["validation-message"]),ze(o),u(o,i.inputerror))}function ho(){const e=c.domCache.get(this);e.validationMessage&&g(e.validationMessage);const t=this.getInput();t&&(t.removeAttribute("aria-invalid"),t.removeAttribute("aria-describedby"),B(t,i.inputerror))}function go(){return c.domCache.get(this).progressSteps}function mo(e){const t=a(),n=c.innerParams.get(this);if(!t||E(t,n.hideClass.popup))return y("You're trying to update the closed or closing popup, that won't work. Use the update() method in preConfirm parameter or show a new popup.");const o=bo(e),s=Object.assign({},n,o);Xe(this,s),c.innerParams.set(this,s),Object.defineProperties(this,{params:{value:Object.assign({},this.params,e),writable:!1,enumerable:!0}})}const bo=e=>{const t={};return Object.keys(e).forEach(n=>{Fe(n)?t[n]=e[n]:y(`Invalid parameter to update: "${n}". Updatable params are listed here: https://github.com/sweetalert2/sweetalert2/blob/master/src/utils/params.js If you think this parameter should be updatable, request it here: https://github.com/sweetalert2/sweetalert2/issues/new?template=02_feature_request.md`)}),t};function yo(){const e=c.domCache.get(this),t=c.innerParams.get(this);if(!t){st(this);return}e.popup&&l.swalCloseEventFinishedCallback&&(l.swalCloseEventFinishedCallback(),delete l.swalCloseEventFinishedCallback),l.deferDisposalTimer&&(clearTimeout(l.deferDisposalTimer),delete l.deferDisposalTimer),typeof t.didDestroy=="function"&&t.didDestroy(),wo(this)}const wo=e=>{st(e),delete e.params,delete l.keydownHandler,delete l.keydownTarget,delete l.currentInstance},st=e=>{e.isAwaitingPromise()?(re(c,e),c.awaitingPromise.set(e,!0)):(re(U,e),re(c,e))},re=(e,t)=>{for(const n in e)e[n].delete(t)},rt=Object.freeze(Object.defineProperty({__proto__:null,_destroy:yo,close:J,closeModal:J,closePopup:J,closeToast:J,disableButtons:uo,disableInput:fo,disableLoading:Le,enableButtons:co,enableInput:ao,getInput:eo,getProgressSteps:go,handleAwaitingPromise:Z,hideLoading:Le,isAwaitingPromise:no,rejectPromise:io,resetValidationMessage:ho,showValidationMessage:po,update:mo},Symbol.toStringTag,{value:"Module"})),Co=e=>{const t=c.innerParams.get(e);e.disableButtons(),t.input?lt(e,"confirm"):Ae(e,!0)},vo=e=>{const t=c.innerParams.get(e);e.disableButtons(),t.returnInputValueOnDeny?lt(e,"deny"):ke(e,!1)},Po=(e,t)=>{e.disableButtons(),t(q.cancel)},lt=(e,t)=>{const n=c.innerParams.get(e);if(!n.input)return I(`The "input" parameter is needed to be set when using returnInputValueOn${pe(t)}`);const o=zn(e,n);n.inputValidator?ko(e,o,t):e.getInput().checkValidity()?t==="deny"?ke(e,o):Ae(e,o):(e.enableButtons(),e.showValidationMessage(n.validationMessage))},ko=(e,t,n)=>{const o=c.innerParams.get(e);e.disableInput(),Promise.resolve().then(()=>_(o.inputValidator(t,o.validationMessage))).then(r=>{e.enableButtons(),e.enableInput(),r?e.showValidationMessage(r):n==="deny"?ke(e,t):Ae(e,t)})},ke=(e,t)=>{const n=c.innerParams.get(e||globalThis);n.showLoaderOnDeny&&D(x()),n.preDeny?(c.awaitingPromise.set(e||globalThis,!0),Promise.resolve().then(()=>_(n.preDeny(t,n.validationMessage))).then(s=>{s===!1?(e.hideLoading(),Z(e)):e.closePopup({isDenied:!0,value:typeof s>"u"?t:s})}).catch(s=>ct(e||globalThis,s))):e.closePopup({isDenied:!0,value:t})},He=(e,t)=>{e.closePopup({isConfirmed:!0,value:t})},ct=(e,t)=>{e.rejectPromise(t)},Ae=(e,t)=>{const n=c.innerParams.get(e||globalThis);n.showLoaderOnConfirm&&D(),n.preConfirm?(e.resetValidationMessage(),c.awaitingPromise.set(e||globalThis,!0),Promise.resolve().then(()=>_(n.preConfirm(t,n.validationMessage))).then(s=>{C(ee())||s===!1?(e.hideLoading(),Z(e)):He(e,typeof s>"u"?t:s)}).catch(s=>ct(e||globalThis,s))):He(e,t)},Ao=(e,t,n)=>{c.innerParams.get(e).toast?Bo(e,t,n):(So(t),xo(t),To(e,t,n))},Bo=(e,t,n)=>{t.popup.onclick=()=>{const o=c.innerParams.get(e);o&&(Eo(o)||o.timer||o.input)||n(q.close)}},Eo=e=>e.showConfirmButton||e.showDenyButton||e.showCancelButton||e.showCloseButton;let G=!1;const So=e=>{e.popup.onmousedown=()=>{e.container.onmouseup=function(t){e.container.onmouseup=void 0,t.target===e.container&&(G=!0)}}},xo=e=>{e.container.onmousedown=()=>{e.popup.onmouseup=function(t){e.popup.onmouseup=void 0,(t.target===e.popup||e.popup.contains(t.target))&&(G=!0)}}},To=(e,t,n)=>{t.container.onclick=o=>{const s=c.innerParams.get(e);if(G){G=!1;return}o.target===t.container&&Q(s.allowOutsideClick)&&n(q.backdrop)}},$o=()=>C(a()),ut=()=>A()&&A().click(),Oo=()=>x()&&x().click(),Io=()=>$()&&$().click(),Lo=(e,t,n,o)=>{t.keydownTarget&&t.keydownHandlerAdded&&(t.keydownTarget.removeEventListener("keydown",t.keydownHandler,{capture:t.keydownListenerCapture}),t.keydownHandlerAdded=!1),n.toast||(t.keydownHandler=s=>Ho(e,s,o),t.keydownTarget=n.keydownListenerCapture?window:a(),t.keydownListenerCapture=n.keydownListenerCapture,t.keydownTarget.addEventListener("keydown",t.keydownHandler,{capture:t.keydownListenerCapture}),t.keydownHandlerAdded=!0)},ue=(e,t,n)=>{const o=be();if(o.length)return t=t+n,t===o.length?t=0:t===-1&&(t=o.length-1),o[t].focus();a().focus()},at=["ArrowRight","ArrowDown"],Mo=["ArrowLeft","ArrowUp"],Ho=(e,t,n)=>{const o=c.innerParams.get(e);o&&(t.isComposing||t.keyCode===229||(o.stopKeydownPropagation&&t.stopPropagation(),t.key==="Enter"?Do(e,t,o):t.key==="Tab"?jo(t,o):[...at,...Mo].includes(t.key)?qo(t.key):t.key==="Escape"&&Vo(t,o,n)))},Do=(e,t,n)=>{if(Q(n.allowEnterKey)&&t.target&&e.getInput()&&t.target.outerHTML===e.getInput().outerHTML){if(["textarea","file"].includes(n.input))return;ut(),t.preventDefault()}},jo=(e,t)=>{const n=e.target,o=be();let s=-1;for(let r=0;r<o.length;r++)if(n===o[r]){s=r;break}e.shiftKey?ue(t,s,-1):ue(t,s,1),e.stopPropagation(),e.preventDefault()},qo=e=>{const t=A(),n=x(),o=$();if(![t,n,o].includes(document.activeElement))return;const s=at.includes(e)?"nextElementSibling":"previousElementSibling";let r=document.activeElement;for(let d=0;d<K().children.length;d++){if(r=r[s],!r)return;if(C(r)&&r instanceof HTMLButtonElement)break}r instanceof HTMLButtonElement&&r.focus()},Vo=(e,t,n)=>{Q(t.allowEscapeKey)&&(e.preventDefault(),n(q.esc))},Fo=e=>typeof e=="object"&&e.jquery,De=e=>e instanceof Element||Fo(e),Wo=e=>{const t={};return typeof e[0]=="object"&&!De(e[0])?Object.assign(t,e[0]):["title","html","icon"].forEach((n,o)=>{const s=e[o];typeof s=="string"||De(s)?t[n]=s:s!==void 0&&I(`Unexpected type of ${n}! Expected "string" or "Element", got ${typeof s}`)}),t};function Ro(...e){const t=this;return new t(...e)}function Uo(e){class t extends this{_main(o,s){return super._main(o,Object.assign({},e,s))}}return t}const _o=()=>l.timeout&&l.timeout.getTimerLeft(),dt=()=>{if(l.timeout)return Tt(),l.timeout.stop()},ft=()=>{if(l.timeout){const e=l.timeout.start();return Ce(e),e}},No=()=>{const e=l.timeout;return e&&(e.running?dt():ft())},zo=e=>{if(l.timeout){const t=l.timeout.increase(e);return Ce(t,!0),t}},Ko=()=>l.timeout&&l.timeout.isRunning();let je=!1;const ae={};function Yo(e="data-swal-template"){ae[e]=this,je||(document.body.addEventListener("click",Zo),je=!0)}const Zo=e=>{for(let t=e.target;t&&t!==document;t=t.parentNode)for(const n in ae){const o=t.getAttribute(n);if(o){ae[n].fire({template:o});return}}},Jo=Object.freeze(Object.defineProperty({__proto__:null,argsToParams:Wo,bindClickHandler:Yo,clickCancel:Io,clickConfirm:ut,clickDeny:Oo,enableLoading:D,fire:Ro,getActions:K,getCancelButton:$,getCloseButton:me,getConfirmButton:A,getContainer:h,getDenyButton:x,getFocusableElements:be,getFooter:Ne,getHtmlContainer:X,getIcon:z,getImage:Ue,getInputLabel:At,getLoader:j,getPopup:a,getTimerLeft:_o,getTimerProgressBar:te,getTitle:Re,getValidationMessage:ee,increaseTimer:zo,isDeprecatedParameter:le,isLoading:Et,isTimerRunning:Ko,isUpdatableParameter:Fe,isValidParameter:Ve,isVisible:$o,mixin:Uo,resumeTimer:ft,showLoading:D,stopTimer:dt,toggleTimer:No},Symbol.toStringTag,{value:"Module"}));let de;class V{constructor(...t){if(typeof window>"u")return;de=this;const n=Object.freeze(this.constructor.argsToParams(t));Object.defineProperties(this,{params:{value:n,writable:!1,enumerable:!0,configurable:!0}});const o=this._main(this.params);c.promise.set(this,o)}_main(t,n={}){Pt(Object.assign({},n,t)),l.currentInstance&&(l.currentInstance._destroy(),ye()&&Ge()),l.currentInstance=this;const o=Go(t,n);Tn(o),Object.freeze(o),l.timeout&&(l.timeout.stop(),delete l.timeout),clearTimeout(l.restoreFocusTimeout);const s=Qo(this);return Xe(this,o),c.innerParams.set(this,o),Xo(this,s,o)}then(t){return c.promise.get(this).then(t)}finally(t){return c.promise.get(this).finally(t)}}const Xo=(e,t,n)=>new Promise((o,s)=>{const r=d=>{e.closePopup({isDismissed:!0,dismiss:d})};U.swalPromiseResolve.set(e,o),U.swalPromiseReject.set(e,s),t.confirmButton.onclick=()=>Co(e),t.denyButton.onclick=()=>vo(e),t.cancelButton.onclick=()=>Po(e,r),t.closeButton.onclick=()=>r(q.close),Ao(e,t,r),Lo(e,l,n,r),Nn(e,n),Fn(n),ei(l,n,r),ti(t,n),setTimeout(()=>{t.container.scrollTop=0})}),Go=(e,t)=>{const n=wn(e),o=Object.assign({},M,t,n,e);return o.showClass=Object.assign({},M.showClass,o.showClass),o.hideClass=Object.assign({},M.hideClass,o.hideClass),o},Qo=e=>{const t={popup:a(),container:h(),actions:K(),confirmButton:A(),denyButton:x(),cancelButton:$(),loader:j(),closeButton:me(),validationMessage:ee(),progressSteps:_e()};return c.domCache.set(e,t),t},ei=(e,t,n)=>{const o=te();g(o),t.timer&&(e.timeout=new $n(()=>{n("timer"),delete e.timeout},t.timer),t.timerProgressBar&&(f(o),P(o,t,"timerProgressBar"),setTimeout(()=>{e.timeout&&e.timeout.running&&Ce(t.timer)})))},ti=(e,t)=>{if(!t.toast){if(!Q(t.allowEnterKey))return oi();ni(e,t)||ue(t,-1,1)}},ni=(e,t)=>t.focusDeny&&C(e.denyButton)?(e.denyButton.focus(),!0):t.focusCancel&&C(e.cancelButton)?(e.cancelButton.focus(),!0):t.focusConfirm&&C(e.confirmButton)?(e.confirmButton.focus(),!0):!1,oi=()=>{document.activeElement instanceof HTMLElement&&typeof document.activeElement.blur=="function"&&document.activeElement.blur()};Object.assign(V.prototype,rt);Object.assign(V,Jo);Object.keys(rt).forEach(e=>{V[e]=function(...t){if(de)return de[e](...t)}});V.DismissReason=q;V.version="11.4.4";const fe=V;fe.default=fe;export{fe as S};
| ver. 1.4 |
.
| PHP 8.1.32 | Generation time: 0 |
proxy
|
phpinfo
|
Settings