@luizleon/sf.prefeiturasp.vuecomponents 0.0.38 → 0.0.39
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/internal/ThemeToggle.d.ts +8 -11
- package/dist/lib.es.js +373 -371
- package/dist/lib.es.js.map +1 -1
- package/dist/lib.umd.js +1 -1
- package/dist/lib.umd.js.map +1 -1
- package/package.json +1 -1
- package/src/components/drawer/Drawer.vue +7 -1
package/dist/lib.umd.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
(function(Q,c){typeof exports=="object"&&typeof module<"u"?c(exports,require("vue")):typeof define=="function"&&define.amd?define(["exports","vue"],c):(Q=typeof globalThis<"u"?globalThis:Q||self,c(Q.Lib={},Q.Vue))})(this,function(Q,c){"use strict";var ad=Object.defineProperty;var cd=(Q,c,Je)=>c in Q?ad(Q,c,{enumerable:!0,configurable:!0,writable:!0,value:Je}):Q[c]=Je;var We=(Q,c,Je)=>(cd(Q,typeof c!="symbol"?c+"":c,Je),Je);class Je{constructor(){We(this,"_visible",c.ref(!1))}get IsVisible(){return this._visible.value===!0}Toggle(){this._visible.value=!this._visible.value}Close(){this._visible.value=!1}Open(){this._visible.value=!0}}const ks=new Je,pn=()=>ks;class Ye{constructor(e){We(this,"retorno");this.retorno=e??""}Concat(e){return e&&e.trim().length&&(this.retorno+=` ${e}`),this}AddClass(e,n=!0){return n?this.Concat(e):this}Build(){return this.retorno.trim()}}function As(t=[]){let e="body *:not(style)";for(const n of t)e+=`, ${n}`;return Math.max(...Array.from(document.querySelectorAll(e)).map(n=>{const o=getComputedStyle(n).zIndex;return+o==+o?+o:0}))}let Cs=(t=21)=>crypto.getRandomValues(new Uint8Array(t)).reduce((e,n)=>(n&=63,n<36?e+=n.toString(36):n<62?e+=(n-26).toString(36).toUpperCase():n>62?e+="-":e+="_",e),"");var Ht=(t=>(t.Primary="primary",t.Secondary="secondary",t.Info="info",t.Success="success",t.Help="help",t.Warn="warn",t.Error="error",t))(Ht||{}),rt=(t=>(t.Pequeno="sm",t.Medio="md",t.Grande="lg",t))(rt||{});const po=(t,e)=>{const n=t.__vccOpts||t;for(const[o,r]of e)n[o]=r;return n},Ss={},_s={class:"sf-loading-circle"},xs=[c.createElementVNode("div",null,[c.createElementVNode("svg",{viewBox:"25 25 50 50"},[c.createElementVNode("circle",{cx:"50",cy:"50",r:"20",fill:"none","stroke-width":"4","stroke-miterlimit":"10"})])],-1)];function vs(t,e){return c.openBlock(),c.createElementBlock("div",_s,xs)}const Ts=po(Ss,[["render",vs]]),Ps=["disabled","tabindex"],Rs=["data-color"],Et=c.defineComponent({__name:"Icon",props:{icone:{},visible:{type:Boolean,default:!0},class:{default:""},style:{default:""},disabled:{type:Boolean},loading:{type:Boolean},button:{type:Boolean},tamanho:{default:rt.Medio},dot:{type:Boolean},dotColor:{default:Ht.Error},buttonProps:{}},setup(t){const e=t;function n(){return new Ye(`${e.class} sf-icon`).AddClass("sf-component-loading",e.loading).AddClass("sf-component-disabled",e.disabled).AddClass("sf-icon-button",e.button).AddClass("sf-icon-small",e.tamanho===rt.Pequeno).AddClass("sf-icon-medium",e.tamanho===rt.Medio).AddClass("sf-icon-large",e.tamanho===rt.Grande).AddClass("sf-ripple",e.button===!0).Build()}return(o,r)=>(c.openBlock(),c.createElementBlock("div",{style:c.normalizeStyle(e.style),class:c.normalizeClass(n())},[c.createElementVNode("button",c.mergeProps({class:"material-symbols-outlined",disabled:e.disabled||e.loading},e.buttonProps,{tabindex:e.button?void 0:-1}),[e.loading?(c.openBlock(),c.createBlock(Ts,{key:0})):(c.openBlock(),c.createElementBlock(c.Fragment,{key:1},[c.createTextVNode(c.toDisplayString(e.icone),1)],64))],16,Ps),e.dot?(c.openBlock(),c.createElementBlock("span",{key:0,"data-color":e.dotColor},null,8,Rs)):c.createCommentVNode("",!0)],6))}}),Ls=["id"],Os={class:"sf-drawer-header"},Is={class:"sf-drawer-title"},Bs={class:"sf-drawer-content"},Ns={key:0,class:"sf-drawer-footer"},Fs=c.defineComponent({__name:"Drawer",props:{visible:{type:Boolean,default:!1},position:{default:"left"},style:{}},emits:["update:visible","open","before-close"],setup(t,{emit:e}){const n=t,o=e,r=c.useSlots(),s=c.ref(n.visible),a=c.ref(!1),f=c.ref(0),u=Cs();function w(){s.value=!1}function E($){($.key==="Escape"||$.code==="Escape")&&w()}function b(){o("open"),window.document.addEventListener("keydown",E,!0)}function X($){f.value=As(),$.style.zIndex=`${f.value}`}function M($){var ee;o("before-close"),(ee=$==null?void 0:$.parentElement)==null||ee.classList.add("sf-mask-overlay-leave")}function B(){window.document.removeEventListener("keydown",E,!0),a.value=!1}function N(){return new Ye("sf-mask sf-mask-overlay").AddClass("right",n.position==="right").AddClass("bottom",n.position==="bottom").AddClass("full",n.position==="full").AddClass("sf-mask-overlay-enter",n.visible===!0).Build()}return c.watch(()=>n.visible,$=>{s.value=$}),c.watch(()=>s.value,$=>{o("update:visible",$),$&&(a.value=!0)}),($,ee)=>(c.openBlock(),c.createBlock(c.Teleport,{to:"body"},[a.value?(c.openBlock(),c.createElementBlock("div",{key:0,id:c.unref(u),class:c.normalizeClass(N())},[c.createVNode(c.Transition,{name:"sf-drawer",appear:"",onBeforeEnter:X,onEnter:b,onBeforeLeave:M,onAfterLeave:B},{default:c.withCtx(()=>[s.value?(c.openBlock(),c.createElementBlock("div",{key:0,class:c.normalizeClass(["sf-drawer",{"sf-drawer-with-footer":!!c.unref(r).footer}]),style:c.normalizeStyle(n.style),role:"dialog"},[c.createElementVNode("div",Os,[c.createElementVNode("span",Is,[c.renderSlot($.$slots,"title")]),c.createVNode(Et,{button:!0,icone:"close",onClick:c.withModifiers(w,["stop"])},null,8,["onClick"])]),c.createElementVNode("div",Bs,[c.renderSlot($.$slots,"default")]),c.unref(r).footer?(c.openBlock(),c.createElementBlock("div",Ns,[c.renderSlot($.$slots,"footer")])):c.createCommentVNode("",!0)],6)):c.createCommentVNode("",!0)]),_:3})],10,Ls)):c.createCommentVNode("",!0)]))}}),Us=["id","name","disabled","data-color","form","type"],Ds={class:"sf-button-label"},mo=c.defineComponent({__name:"Button",props:{icon:{},visible:{type:Boolean,default:!0},class:{},style:{},disabled:{type:Boolean},loading:{type:Boolean},color:{default:"primary"},size:{default:"md"},variant:{default:"filled"},autofocus:{type:Boolean},form:{},name:{},id:{},type:{default:"button"},value:{}},setup(t){const e=t;function n(){return new Ye(`${e.class??""} sf-button`).AddClass("sf-component-loading",e.loading).AddClass("sf-component-disabled",e.disabled).AddClass("sf-button-small",e.size==="sm").AddClass("sf-button-medium",e.size==="md").AddClass("sf-button-large",e.size==="lg").AddClass("sf-button-filled",e.variant==="filled").AddClass("sf-button-text",e.variant==="text").AddClass("sf-button-outlined",e.variant==="outlined").AddClass("sf-button-with-icon",!!e.icon).AddClass("sf-ripple").Build()}return(o,r)=>(c.openBlock(),c.createElementBlock("button",{id:e.id,name:e.name,class:c.normalizeClass(n()),style:c.normalizeStyle(e.style),disabled:e.disabled||e.loading,"data-color":e.color,form:e.form,type:e.type},[e.icon?(c.openBlock(),c.createBlock(Et,{key:0,icone:e.icon,loading:e.loading,size:e.size,"button-props":{tabindex:-1}},null,8,["icone","loading","size"])):e.loading?(c.openBlock(),c.createBlock(Et,{key:1,loading:!0,size:e.size,"button-props":{tabindex:-1}},null,8,["size"])):c.createCommentVNode("",!0),c.createElementVNode("span",Ds,[c.renderSlot(o.$slots,"default")])],14,Us))}}),go="SweetAlert2:",Ms=t=>{const e=[];for(let n=0;n<t.length;n++)e.indexOf(t[n])===-1&&e.push(t[n]);return e},mn=t=>t.charAt(0).toUpperCase()+t.slice(1),xe=t=>Array.prototype.slice.call(t),Ee=t=>{console.warn(`${go} ${typeof t=="object"?t.join(" "):t}`)},Xe=t=>{console.error(`${go} ${t}`)},yo=[],$s=t=>{yo.includes(t)||(yo.push(t),Ee(t))},Hs=(t,e)=>{$s(`"${t}" is deprecated and will be removed in the next major release. Please use "${e}" instead.`)},jt=t=>typeof t=="function"?t():t,gn=t=>t&&typeof t.toPromise=="function",kt=t=>gn(t)?t.toPromise():Promise.resolve(t),yn=t=>t&&Promise.resolve(t)===t,st={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},js=["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"],Vs={},zs=["allowOutsideClick","allowEnterKey","backdrop","focusConfirm","focusDeny","focusCancel","returnFocus","heightAuto","keydownListenerCapture"],bo=t=>Object.prototype.hasOwnProperty.call(st,t),wo=t=>js.indexOf(t)!==-1,bn=t=>Vs[t],Ws=t=>{bo(t)||Ee(`Unknown parameter "${t}"`)},qs=t=>{zs.includes(t)&&Ee(`The parameter "${t}" is incompatible with toasts`)},Ks=t=>{bn(t)&&Hs(t,bn(t))},Gs=t=>{!t.backdrop&&t.allowOutsideClick&&Ee('"allowOutsideClick" parameter requires `backdrop` parameter to be set to `true`');for(const e in t)Ws(e),t.toast&&qs(e),Ks(e)},Js="swal2-",Eo=t=>{const e={};for(const n in t)e[t[n]]=Js+t[n];return e},h=Eo(["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"]),At=Eo(["success","warning","info","question","error"]),de=()=>document.body.querySelector(`.${h.container}`),Ct=t=>{const e=de();return e?e.querySelector(t):null},Pe=t=>Ct(`.${t}`),Z=()=>Pe(h.popup),St=()=>Pe(h.icon),ko=()=>Pe(h.title),Vt=()=>Pe(h["html-container"]),Ao=()=>Pe(h.image),Co=()=>Pe(h["progress-steps"]),zt=()=>Pe(h["validation-message"]),Be=()=>Ct(`.${h.actions} .${h.confirm}`),qe=()=>Ct(`.${h.actions} .${h.deny}`),Ys=()=>Pe(h["input-label"]),it=()=>Ct(`.${h.loader}`),Ze=()=>Ct(`.${h.actions} .${h.cancel}`),_t=()=>Pe(h.actions),So=()=>Pe(h.footer),Wt=()=>Pe(h["timer-progress-bar"]),wn=()=>Pe(h.close),Xs=`
|
|
1
|
+
(function(Q,c){typeof exports=="object"&&typeof module<"u"?c(exports,require("vue")):typeof define=="function"&&define.amd?define(["exports","vue"],c):(Q=typeof globalThis<"u"?globalThis:Q||self,c(Q.Lib={},Q.Vue))})(this,function(Q,c){"use strict";var ad=Object.defineProperty;var cd=(Q,c,Je)=>c in Q?ad(Q,c,{enumerable:!0,configurable:!0,writable:!0,value:Je}):Q[c]=Je;var We=(Q,c,Je)=>(cd(Q,typeof c!="symbol"?c+"":c,Je),Je);class Je{constructor(){We(this,"_visible",c.ref(!1))}get IsVisible(){return this._visible.value===!0}Toggle(){this._visible.value=!this._visible.value}Close(){this._visible.value=!1}Open(){this._visible.value=!0}}const ks=new Je,pn=()=>ks;class Ye{constructor(e){We(this,"retorno");this.retorno=e??""}Concat(e){return e&&e.trim().length&&(this.retorno+=` ${e}`),this}AddClass(e,n=!0){return n?this.Concat(e):this}Build(){return this.retorno.trim()}}function As(t=[]){let e="body *:not(style)";for(const n of t)e+=`, ${n}`;return Math.max(...Array.from(document.querySelectorAll(e)).map(n=>{const o=getComputedStyle(n).zIndex;return+o==+o?+o:0}))}let Cs=(t=21)=>crypto.getRandomValues(new Uint8Array(t)).reduce((e,n)=>(n&=63,n<36?e+=n.toString(36):n<62?e+=(n-26).toString(36).toUpperCase():n>62?e+="-":e+="_",e),"");var Ht=(t=>(t.Primary="primary",t.Secondary="secondary",t.Info="info",t.Success="success",t.Help="help",t.Warn="warn",t.Error="error",t))(Ht||{}),rt=(t=>(t.Pequeno="sm",t.Medio="md",t.Grande="lg",t))(rt||{});const po=(t,e)=>{const n=t.__vccOpts||t;for(const[o,r]of e)n[o]=r;return n},Ss={},_s={class:"sf-loading-circle"},xs=[c.createElementVNode("div",null,[c.createElementVNode("svg",{viewBox:"25 25 50 50"},[c.createElementVNode("circle",{cx:"50",cy:"50",r:"20",fill:"none","stroke-width":"4","stroke-miterlimit":"10"})])],-1)];function vs(t,e){return c.openBlock(),c.createElementBlock("div",_s,xs)}const Ts=po(Ss,[["render",vs]]),Ps=["disabled","tabindex"],Rs=["data-color"],Et=c.defineComponent({__name:"Icon",props:{icone:{},visible:{type:Boolean,default:!0},class:{default:""},style:{default:""},disabled:{type:Boolean},loading:{type:Boolean},button:{type:Boolean},tamanho:{default:rt.Medio},dot:{type:Boolean},dotColor:{default:Ht.Error},buttonProps:{}},setup(t){const e=t;function n(){return new Ye(`${e.class} sf-icon`).AddClass("sf-component-loading",e.loading).AddClass("sf-component-disabled",e.disabled).AddClass("sf-icon-button",e.button).AddClass("sf-icon-small",e.tamanho===rt.Pequeno).AddClass("sf-icon-medium",e.tamanho===rt.Medio).AddClass("sf-icon-large",e.tamanho===rt.Grande).AddClass("sf-ripple",e.button===!0).Build()}return(o,r)=>(c.openBlock(),c.createElementBlock("div",{style:c.normalizeStyle(e.style),class:c.normalizeClass(n())},[c.createElementVNode("button",c.mergeProps({class:"material-symbols-outlined",disabled:e.disabled||e.loading},e.buttonProps,{tabindex:e.button?void 0:-1}),[e.loading?(c.openBlock(),c.createBlock(Ts,{key:0})):(c.openBlock(),c.createElementBlock(c.Fragment,{key:1},[c.createTextVNode(c.toDisplayString(e.icone),1)],64))],16,Ps),e.dot?(c.openBlock(),c.createElementBlock("span",{key:0,"data-color":e.dotColor},null,8,Rs)):c.createCommentVNode("",!0)],6))}}),Ls=["id","onClick"],Os={class:"sf-drawer-header"},Is={class:"sf-drawer-title"},Bs={class:"sf-drawer-content"},Ns={key:0,class:"sf-drawer-footer"},Fs=c.defineComponent({__name:"Drawer",props:{visible:{type:Boolean,default:!1},position:{default:"left"},style:{}},emits:["update:visible","open","before-close"],setup(t,{emit:e}){const n=t,o=e,r=c.useSlots(),s=c.ref(n.visible),a=c.ref(!1),f=c.ref(0),u=Cs();function w(){s.value=!1}function E($){($.key==="Escape"||$.code==="Escape")&&w()}function b(){o("open"),window.document.addEventListener("keydown",E,!0)}function X($){f.value=As(),$.style.zIndex=`${f.value}`}function M($){var ee;o("before-close"),(ee=$==null?void 0:$.parentElement)==null||ee.classList.add("sf-mask-overlay-leave")}function B(){window.document.removeEventListener("keydown",E,!0),a.value=!1}function N(){return new Ye("sf-mask sf-mask-overlay").AddClass("right",n.position==="right").AddClass("bottom",n.position==="bottom").AddClass("full",n.position==="full").AddClass("sf-mask-overlay-enter",n.visible===!0).Build()}return c.watch(()=>n.visible,$=>{s.value=$}),c.watch(()=>s.value,$=>{o("update:visible",$),$&&(a.value=!0)}),($,ee)=>(c.openBlock(),c.createBlock(c.Teleport,{to:"body"},[a.value?(c.openBlock(),c.createElementBlock("div",{key:0,id:c.unref(u),class:c.normalizeClass(N()),style:c.normalizeStyle({zIndex:f.value-1}),onClick:c.withModifiers(w,["stop"])},[c.createVNode(c.Transition,{name:"sf-drawer",appear:"",onBeforeEnter:X,onEnter:b,onBeforeLeave:M,onAfterLeave:B},{default:c.withCtx(()=>[s.value?(c.openBlock(),c.createElementBlock("div",{key:0,class:c.normalizeClass(["sf-drawer",{"sf-drawer-with-footer":!!c.unref(r).footer}]),style:c.normalizeStyle(n.style),role:"dialog"},[c.createElementVNode("div",Os,[c.createElementVNode("span",Is,[c.renderSlot($.$slots,"title")]),c.createVNode(Et,{button:!0,icone:"close",onClick:c.withModifiers(w,["stop"])},null,8,["onClick"])]),c.createElementVNode("div",Bs,[c.renderSlot($.$slots,"default")]),c.unref(r).footer?(c.openBlock(),c.createElementBlock("div",Ns,[c.renderSlot($.$slots,"footer")])):c.createCommentVNode("",!0)],6)):c.createCommentVNode("",!0)]),_:3})],14,Ls)):c.createCommentVNode("",!0)]))}}),Us=["id","name","disabled","data-color","form","type"],Ds={class:"sf-button-label"},mo=c.defineComponent({__name:"Button",props:{icon:{},visible:{type:Boolean,default:!0},class:{},style:{},disabled:{type:Boolean},loading:{type:Boolean},color:{default:"primary"},size:{default:"md"},variant:{default:"filled"},autofocus:{type:Boolean},form:{},name:{},id:{},type:{default:"button"},value:{}},setup(t){const e=t;function n(){return new Ye(`${e.class??""} sf-button`).AddClass("sf-component-loading",e.loading).AddClass("sf-component-disabled",e.disabled).AddClass("sf-button-small",e.size==="sm").AddClass("sf-button-medium",e.size==="md").AddClass("sf-button-large",e.size==="lg").AddClass("sf-button-filled",e.variant==="filled").AddClass("sf-button-text",e.variant==="text").AddClass("sf-button-outlined",e.variant==="outlined").AddClass("sf-button-with-icon",!!e.icon).AddClass("sf-ripple").Build()}return(o,r)=>(c.openBlock(),c.createElementBlock("button",{id:e.id,name:e.name,class:c.normalizeClass(n()),style:c.normalizeStyle(e.style),disabled:e.disabled||e.loading,"data-color":e.color,form:e.form,type:e.type},[e.icon?(c.openBlock(),c.createBlock(Et,{key:0,icone:e.icon,loading:e.loading,size:e.size,"button-props":{tabindex:-1}},null,8,["icone","loading","size"])):e.loading?(c.openBlock(),c.createBlock(Et,{key:1,loading:!0,size:e.size,"button-props":{tabindex:-1}},null,8,["size"])):c.createCommentVNode("",!0),c.createElementVNode("span",Ds,[c.renderSlot(o.$slots,"default")])],14,Us))}}),go="SweetAlert2:",Ms=t=>{const e=[];for(let n=0;n<t.length;n++)e.indexOf(t[n])===-1&&e.push(t[n]);return e},mn=t=>t.charAt(0).toUpperCase()+t.slice(1),xe=t=>Array.prototype.slice.call(t),Ee=t=>{console.warn(`${go} ${typeof t=="object"?t.join(" "):t}`)},Xe=t=>{console.error(`${go} ${t}`)},yo=[],$s=t=>{yo.includes(t)||(yo.push(t),Ee(t))},Hs=(t,e)=>{$s(`"${t}" is deprecated and will be removed in the next major release. Please use "${e}" instead.`)},jt=t=>typeof t=="function"?t():t,gn=t=>t&&typeof t.toPromise=="function",kt=t=>gn(t)?t.toPromise():Promise.resolve(t),yn=t=>t&&Promise.resolve(t)===t,st={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},js=["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"],Vs={},zs=["allowOutsideClick","allowEnterKey","backdrop","focusConfirm","focusDeny","focusCancel","returnFocus","heightAuto","keydownListenerCapture"],bo=t=>Object.prototype.hasOwnProperty.call(st,t),wo=t=>js.indexOf(t)!==-1,bn=t=>Vs[t],Ws=t=>{bo(t)||Ee(`Unknown parameter "${t}"`)},qs=t=>{zs.includes(t)&&Ee(`The parameter "${t}" is incompatible with toasts`)},Ks=t=>{bn(t)&&Hs(t,bn(t))},Gs=t=>{!t.backdrop&&t.allowOutsideClick&&Ee('"allowOutsideClick" parameter requires `backdrop` parameter to be set to `true`');for(const e in t)Ws(e),t.toast&&qs(e),Ks(e)},Js="swal2-",Eo=t=>{const e={};for(const n in t)e[t[n]]=Js+t[n];return e},h=Eo(["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"]),At=Eo(["success","warning","info","question","error"]),de=()=>document.body.querySelector(`.${h.container}`),Ct=t=>{const e=de();return e?e.querySelector(t):null},Pe=t=>Ct(`.${t}`),Z=()=>Pe(h.popup),St=()=>Pe(h.icon),ko=()=>Pe(h.title),Vt=()=>Pe(h["html-container"]),Ao=()=>Pe(h.image),Co=()=>Pe(h["progress-steps"]),zt=()=>Pe(h["validation-message"]),Be=()=>Ct(`.${h.actions} .${h.confirm}`),qe=()=>Ct(`.${h.actions} .${h.deny}`),Ys=()=>Pe(h["input-label"]),it=()=>Ct(`.${h.loader}`),Ze=()=>Ct(`.${h.actions} .${h.cancel}`),_t=()=>Pe(h.actions),So=()=>Pe(h.footer),Wt=()=>Pe(h["timer-progress-bar"]),wn=()=>Pe(h.close),Xs=`
|
|
2
2
|
a[href],
|
|
3
3
|
area[href],
|
|
4
4
|
input:not([disabled]),
|