@luizleon/sf.prefeiturasp.vuecomponents 4.0.7 → 4.0.9
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/button/Button.d.ts +1 -0
- package/dist/sf.prefeiturasp.vuecomponents.cjs +1 -1
- package/dist/sf.prefeiturasp.vuecomponents.cjs.map +1 -1
- package/dist/sf.prefeiturasp.vuecomponents.js +5 -3
- package/dist/sf.prefeiturasp.vuecomponents.js.map +1 -1
- package/dist/sf.prefeiturasp.vuecomponents.umd.cjs +1 -1
- package/dist/sf.prefeiturasp.vuecomponents.umd.cjs.map +1 -1
- package/dist/style.css +1 -1
- package/package.json +1 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
(function(ne,l){typeof exports=="object"&&typeof module<"u"?l(exports,require("vue")):typeof define=="function"&&define.amd?define(["exports","vue"],l):(ne=typeof globalThis<"u"?globalThis:ne||self,l((ne.sf=ne.sf||{},ne.sf.prefeiturasp=ne.sf.prefeiturasp||{},ne.sf.prefeiturasp.vuecomponents={}),ne.Vue))})(this,function(ne,l){"use strict";var mh=Object.defineProperty;var ph=(ne,l,kt)=>l in ne?mh(ne,l,{enumerable:!0,configurable:!0,writable:!0,value:kt}):ne[l]=kt;var Ve=(ne,l,kt)=>ph(ne,typeof l!="symbol"?l+"":l,kt);class kt{constructor(){Ve(this,"_visible",l.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 ga=new kt,er=()=>ga;class st{constructor(e){Ve(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 po(t=[]){let e="body > *:not(script):not(style)";for(const r of t)e+=`, ${r}`;const n=Math.max(...Array.from(document.querySelectorAll(e)).map(r=>{const o=getComputedStyle(r).zIndex;return+o==+o?+o:0}));return n>=100?n:100}let ya=(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),"");const wn=(t,e)=>{const n=t.__vccOpts||t;for(const[r,o]of e)n[r]=o;return n},ba={},va={class:"sf-loading-circle"},wa=[l.createElementVNode("div",null,[l.createElementVNode("svg",{viewBox:"25 25 50 50"},[l.createElementVNode("circle",{cx:"50",cy:"50",r:"20",fill:"none","stroke-width":"4","stroke-miterlimit":"10"})])],-1)];function _a(t,e){return l.openBlock(),l.createElementBlock("div",va,wa)}const Sa=wn(ba,[["render",_a]]),tr=l.defineComponent({__name:"Tooltip",props:{text:{}},setup(t){const e=t;class n{constructor(){Ve(this,"zIndex");Ve(this,"wrapper");Ve(this,"inner");this.zIndex=po()+1,this.Render()}Render(){this.wrapper=document.createElement("div"),this.wrapper.classList.add("sf-tooltip-wrapper"),this.wrapper.style.zIndex=`${this.zIndex??0}`,this.inner=document.createElement("div"),this.inner.classList.add("sf-tooltip-inner"),this.wrapper.appendChild(this.inner)}Show(i){this.inner.textContent=e.text;const s=i.target;document.body.appendChild(this.wrapper),this.Position(s.getBoundingClientRect()),this.wrapper.classList.add("visible")}Hide(){this.wrapper.classList.remove("visible"),this.wrapper.remove()}Position(i){const c=i.top,a=i.bottom,u=i.left,d=i.right,m=i.width/2-15,g=this.wrapper;g.style.top=`${a+10}px`,g.style.left=`${u}px`,g.style.marginLeft=`${m}px`,this.OutOfBottom()&&(g.style.top=`${c-g.clientHeight-10}px`,g.classList.add("top")),this.OutOfRight()&&(g.style.left=`${d-g.clientWidth}px`,g.style.marginLeft=`-${m}px`,g.classList.add("left"))}OutOfBottom(){return this.wrapper.getBoundingClientRect().bottom>(window.innerHeight||document.documentElement.clientHeight)}OutOfRight(){return this.wrapper.getBoundingClientRect().right>(window.innerWidth||document.documentElement.clientWidth)}}const r=new n;return l.onBeforeUnmount(()=>{r.Hide()}),(o,i)=>(l.openBlock(),l.createElementBlock("div",{class:"sf-tooltip-anchor",onMouseenter:i[0]||(i[0]=(...s)=>l.unref(r).Show&&l.unref(r).Show(...s)),onMouseleave:i[1]||(i[1]=(...s)=>l.unref(r).Hide&&l.unref(r).Hide(...s)),onMousedown:i[2]||(i[2]=(...s)=>l.unref(r).Hide&&l.unref(r).Hide(...s))},[l.renderSlot(o.$slots,"default")],32))}}),ka=["disabled","tabindex"],Ca=["data-color"],_n=wn(l.defineComponent({__name:"Icon",props:{icon:{},visible:{type:Boolean,default:!0},class:{default:""},style:{default:""},disabled:{type:Boolean},loading:{type:Boolean},button:{type:Boolean},size:{default:"md"},dot:{type:Boolean},dotColor:{default:"error"},filled:{type:Boolean},buttonProps:{},tooltip:{},color:{default:"inherit"}},setup(t){const e=t,n=l.computed(()=>e.tooltip?tr:"div"),r=l.computed(()=>e.tooltip?"":"display-content"),o=l.computed(()=>new st(`${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.size==="sm").AddClass("sf-icon-medium",e.size==="md").AddClass("sf-icon-large",e.size==="lg").AddClass("sf-icon-xlarge",e.size==="xl").AddClass("sf-icon-2xlarge",e.size==="2xl").AddClass("sf-icon-3xlarge",e.size==="3xl").AddClass("sf-ripple",e.button===!0).AddClass(`${e.color}-color`,!!e.color&&e.color!=="inherit").Build());return(i,s)=>(l.openBlock(),l.createBlock(l.resolveDynamicComponent(n.value),{text:e.tooltip,class:l.normalizeClass(r.value)},{default:l.withCtx(()=>[e.visible?(l.openBlock(),l.createElementBlock("div",{key:0,style:l.normalizeStyle(e.style),class:l.normalizeClass(o.value)},[l.createElementVNode("button",l.mergeProps({class:["material-symbols-outlined",{"icon-filled":!!e.filled}],disabled:e.disabled||e.loading},e.buttonProps,{tabindex:e.button?void 0:-1}),[e.loading?(l.openBlock(),l.createBlock(Sa,{key:0})):(l.openBlock(),l.createElementBlock(l.Fragment,{key:1},[l.createTextVNode(l.toDisplayString(e.icon),1)],64))],16,ka),e.dot?(l.openBlock(),l.createElementBlock("span",{key:0,"data-color":e.dotColor},null,8,Ca)):l.createCommentVNode("",!0)],6)):l.createCommentVNode("",!0)]),_:1},8,["text","class"]))}}),[["__scopeId","data-v-acf8f09c"]]),Ea=["id","onClick"],Aa={class:"sf-drawer-header"},Ta={class:"sf-drawer-title"},xa={class:"sf-drawer-content"},Pa={key:0,class:"sf-drawer-footer"},ho=l.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,r=e,o=l.useSlots(),i=l.ref(n.visible),s=l.ref(!1),c=l.ref(0),a=ya();function u(){i.value=!1}function d(_){(_.key==="Escape"||_.code==="Escape")&&u()}function m(){r("open"),window.document.addEventListener("keydown",d,!0)}function g(_){c.value=po(),_.style.zIndex=`${c.value}`}function S(_){var j;r("before-close"),(j=_==null?void 0:_.parentElement)==null||j.classList.add("sf-mask-overlay-leave")}function v(){window.document.removeEventListener("keydown",d,!0),s.value=!1}function $(){return new st("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 l.watch(()=>n.visible,_=>{i.value=_}),l.watch(()=>i.value,_=>{r("update:visible",_),_&&(s.value=!0)}),(_,j)=>(l.openBlock(),l.createBlock(l.Teleport,{to:"body"},[s.value?(l.openBlock(),l.createElementBlock("div",{key:0,id:l.unref(a),class:l.normalizeClass($()),style:l.normalizeStyle({zIndex:c.value-1}),onClick:l.withModifiers(u,["stop"])},[l.createVNode(l.Transition,{name:"sf-drawer",appear:"",onBeforeEnter:g,onEnter:m,onBeforeLeave:S,onAfterLeave:v},{default:l.withCtx(()=>[i.value?(l.openBlock(),l.createElementBlock("div",{key:0,class:l.normalizeClass(["sf-drawer",{"sf-drawer-with-footer":!!l.unref(o).footer}]),style:l.normalizeStyle(n.style),role:"dialog",onClick:j[0]||(j[0]=l.withModifiers(A=>_.void,["stop"]))},[l.createElementVNode("div",Aa,[l.createElementVNode("span",Ta,[l.renderSlot(_.$slots,"title")]),l.createVNode(_n,{button:!0,icon:"close",onClick:l.withModifiers(u,["stop"])},null,8,["onClick"])]),l.createElementVNode("div",xa,[l.renderSlot(_.$slots,"default")]),l.unref(o).footer?(l.openBlock(),l.createElementBlock("div",Pa,[l.renderSlot(_.$slots,"footer")])):l.createCommentVNode("",!0)],6)):l.createCommentVNode("",!0)]),_:3})],14,Ea)):l.createCommentVNode("",!0)]))}}),Ia=["id","name","disabled","data-color","form","type"],Oa={class:"sf-button-label"},go=l.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 st(`${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(r,o)=>e.visible?(l.openBlock(),l.createElementBlock("button",{key:0,id:e.id,name:e.name,class:l.normalizeClass(n()),style:l.normalizeStyle(e.style),disabled:e.disabled||e.loading,"data-color":e.color,form:e.form,type:e.type},[e.icon?(l.openBlock(),l.createBlock(_n,{key:0,icon:e.icon,loading:e.loading,size:e.size,color:void 0,"button-props":{tabindex:-1}},null,8,["icon","loading","size"])):e.loading?(l.openBlock(),l.createBlock(_n,{key:1,loading:!0,size:e.size,"button-props":{tabindex:-1}},null,8,["size"])):l.createCommentVNode("",!0),l.createElementVNode("span",Oa,[l.renderSlot(r.$slots,"default")])],14,Ia)):l.createCommentVNode("",!0)}}),yo="SweetAlert2:",La=t=>{const e=[];for(let n=0;n<t.length;n++)e.indexOf(t[n])===-1&&e.push(t[n]);return e},nr=t=>t.charAt(0).toUpperCase()+t.slice(1),$e=t=>Array.prototype.slice.call(t),Te=t=>{console.warn(`${yo} ${typeof t=="object"?t.join(" "):t}`)},ft=t=>{console.error(`${yo} ${t}`)},bo=[],Ra=t=>{bo.includes(t)||(bo.push(t),Te(t))},$a=(t,e)=>{Ra(`"${t}" is deprecated and will be removed in the next major release. Please use "${e}" instead.`)},Sn=t=>typeof t=="function"?t():t,rr=t=>t&&typeof t.toPromise=="function",Mt=t=>rr(t)?t.toPromise():Promise.resolve(t),or=t=>t&&Promise.resolve(t)===t,Ct={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},Na=["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"],Ba={},Da=["allowOutsideClick","allowEnterKey","backdrop","focusConfirm","focusDeny","focusCancel","returnFocus","heightAuto","keydownListenerCapture"],vo=t=>Object.prototype.hasOwnProperty.call(Ct,t),wo=t=>Na.indexOf(t)!==-1,ir=t=>Ba[t],Fa=t=>{vo(t)||Te(`Unknown parameter "${t}"`)},Ma=t=>{Da.includes(t)&&Te(`The parameter "${t}" is incompatible with toasts`)},Ua=t=>{ir(t)&&$a(t,ir(t))},Ha=t=>{!t.backdrop&&t.allowOutsideClick&&Te('"allowOutsideClick" parameter requires `backdrop` parameter to be set to `true`');for(const e in t)Fa(e),t.toast&&Ma(e),Ua(e)},ja="swal2-",_o=t=>{const e={};for(const n in t)e[t[n]]=ja+t[n];return e},b=_o(["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"]),Ut=_o(["success","warning","info","question","error"]),ve=()=>document.body.querySelector(`.${b.container}`),Ht=t=>{const e=ve();return e?e.querySelector(t):null},Ue=t=>Ht(`.${t}`),ae=()=>Ue(b.popup),jt=()=>Ue(b.icon),So=()=>Ue(b.title),kn=()=>Ue(b["html-container"]),ko=()=>Ue(b.image),Co=()=>Ue(b["progress-steps"]),Cn=()=>Ue(b["validation-message"]),ze=()=>Ht(`.${b.actions} .${b.confirm}`),at=()=>Ht(`.${b.actions} .${b.deny}`),Va=()=>Ue(b["input-label"]),Et=()=>Ht(`.${b.loader}`),mt=()=>Ht(`.${b.actions} .${b.cancel}`),Vt=()=>Ue(b.actions),Eo=()=>Ue(b.footer),En=()=>Ue(b["timer-progress-bar"]),sr=()=>Ue(b.close),za=`
|
|
1
|
+
(function(ne,l){typeof exports=="object"&&typeof module<"u"?l(exports,require("vue")):typeof define=="function"&&define.amd?define(["exports","vue"],l):(ne=typeof globalThis<"u"?globalThis:ne||self,l((ne.sf=ne.sf||{},ne.sf.prefeiturasp=ne.sf.prefeiturasp||{},ne.sf.prefeiturasp.vuecomponents={}),ne.Vue))})(this,function(ne,l){"use strict";var mh=Object.defineProperty;var ph=(ne,l,kt)=>l in ne?mh(ne,l,{enumerable:!0,configurable:!0,writable:!0,value:kt}):ne[l]=kt;var Ve=(ne,l,kt)=>ph(ne,typeof l!="symbol"?l+"":l,kt);class kt{constructor(){Ve(this,"_visible",l.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 ga=new kt,er=()=>ga;class st{constructor(e){Ve(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 po(t=[]){let e="body > *:not(script):not(style)";for(const r of t)e+=`, ${r}`;const n=Math.max(...Array.from(document.querySelectorAll(e)).map(r=>{const o=getComputedStyle(r).zIndex;return+o==+o?+o:0}));return n>=100?n:100}let ya=(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),"");const wn=(t,e)=>{const n=t.__vccOpts||t;for(const[r,o]of e)n[r]=o;return n},ba={},va={class:"sf-loading-circle"},wa=[l.createElementVNode("div",null,[l.createElementVNode("svg",{viewBox:"25 25 50 50"},[l.createElementVNode("circle",{cx:"50",cy:"50",r:"20",fill:"none","stroke-width":"4","stroke-miterlimit":"10"})])],-1)];function _a(t,e){return l.openBlock(),l.createElementBlock("div",va,wa)}const Sa=wn(ba,[["render",_a]]),tr=l.defineComponent({__name:"Tooltip",props:{text:{}},setup(t){const e=t;class n{constructor(){Ve(this,"zIndex");Ve(this,"wrapper");Ve(this,"inner");this.zIndex=po()+1,this.Render()}Render(){this.wrapper=document.createElement("div"),this.wrapper.classList.add("sf-tooltip-wrapper"),this.wrapper.style.zIndex=`${this.zIndex??0}`,this.inner=document.createElement("div"),this.inner.classList.add("sf-tooltip-inner"),this.wrapper.appendChild(this.inner)}Show(i){this.inner.textContent=e.text;const s=i.target;document.body.appendChild(this.wrapper),this.Position(s.getBoundingClientRect()),this.wrapper.classList.add("visible")}Hide(){this.wrapper.classList.remove("visible"),this.wrapper.remove()}Position(i){const c=i.top,a=i.bottom,u=i.left,d=i.right,m=i.width/2-15,g=this.wrapper;g.style.top=`${a+10}px`,g.style.left=`${u}px`,g.style.marginLeft=`${m}px`,this.OutOfBottom()&&(g.style.top=`${c-g.clientHeight-10}px`,g.classList.add("top")),this.OutOfRight()&&(g.style.left=`${d-g.clientWidth}px`,g.style.marginLeft=`-${m}px`,g.classList.add("left"))}OutOfBottom(){return this.wrapper.getBoundingClientRect().bottom>(window.innerHeight||document.documentElement.clientHeight)}OutOfRight(){return this.wrapper.getBoundingClientRect().right>(window.innerWidth||document.documentElement.clientWidth)}}const r=new n;return l.onBeforeUnmount(()=>{r.Hide()}),(o,i)=>(l.openBlock(),l.createElementBlock("div",{class:"sf-tooltip-anchor",onMouseenter:i[0]||(i[0]=(...s)=>l.unref(r).Show&&l.unref(r).Show(...s)),onMouseleave:i[1]||(i[1]=(...s)=>l.unref(r).Hide&&l.unref(r).Hide(...s)),onMousedown:i[2]||(i[2]=(...s)=>l.unref(r).Hide&&l.unref(r).Hide(...s))},[l.renderSlot(o.$slots,"default")],32))}}),ka=["disabled","tabindex"],Ca=["data-color"],_n=wn(l.defineComponent({__name:"Icon",props:{icon:{},visible:{type:Boolean,default:!0},class:{default:""},style:{default:""},disabled:{type:Boolean},loading:{type:Boolean},button:{type:Boolean},size:{default:"md"},dot:{type:Boolean},dotColor:{default:"error"},filled:{type:Boolean},buttonProps:{},tooltip:{},color:{default:"inherit"}},setup(t){const e=t,n=l.computed(()=>e.tooltip?tr:"div"),r=l.computed(()=>e.tooltip?"":"display-content"),o=l.computed(()=>new st(`${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.size==="sm").AddClass("sf-icon-medium",e.size==="md").AddClass("sf-icon-large",e.size==="lg").AddClass("sf-icon-xlarge",e.size==="xl").AddClass("sf-icon-2xlarge",e.size==="2xl").AddClass("sf-icon-3xlarge",e.size==="3xl").AddClass("sf-ripple",e.button===!0).AddClass(`${e.color}-color`,!!e.color&&e.color!=="inherit").Build());return(i,s)=>(l.openBlock(),l.createBlock(l.resolveDynamicComponent(n.value),{text:e.tooltip,class:l.normalizeClass(r.value)},{default:l.withCtx(()=>[e.visible?(l.openBlock(),l.createElementBlock("div",{key:0,style:l.normalizeStyle(e.style),class:l.normalizeClass(o.value)},[l.createElementVNode("button",l.mergeProps({class:["material-symbols-outlined",{"icon-filled":!!e.filled}],disabled:e.disabled||e.loading},e.buttonProps,{tabindex:e.button?void 0:-1}),[e.loading?(l.openBlock(),l.createBlock(Sa,{key:0})):(l.openBlock(),l.createElementBlock(l.Fragment,{key:1},[l.createTextVNode(l.toDisplayString(e.icon),1)],64))],16,ka),e.dot?(l.openBlock(),l.createElementBlock("span",{key:0,"data-color":e.dotColor},null,8,Ca)):l.createCommentVNode("",!0)],6)):l.createCommentVNode("",!0)]),_:1},8,["text","class"]))}}),[["__scopeId","data-v-acf8f09c"]]),Ea=["id","onClick"],Aa={class:"sf-drawer-header"},Ta={class:"sf-drawer-title"},xa={class:"sf-drawer-content"},Pa={key:0,class:"sf-drawer-footer"},ho=l.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,r=e,o=l.useSlots(),i=l.ref(n.visible),s=l.ref(!1),c=l.ref(0),a=ya();function u(){i.value=!1}function d(_){(_.key==="Escape"||_.code==="Escape")&&u()}function m(){r("open"),window.document.addEventListener("keydown",d,!0)}function g(_){c.value=po(),_.style.zIndex=`${c.value}`}function S(_){var j;r("before-close"),(j=_==null?void 0:_.parentElement)==null||j.classList.add("sf-mask-overlay-leave")}function v(){window.document.removeEventListener("keydown",d,!0),s.value=!1}function $(){return new st("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 l.watch(()=>n.visible,_=>{i.value=_}),l.watch(()=>i.value,_=>{r("update:visible",_),_&&(s.value=!0)}),(_,j)=>(l.openBlock(),l.createBlock(l.Teleport,{to:"body"},[s.value?(l.openBlock(),l.createElementBlock("div",{key:0,id:l.unref(a),class:l.normalizeClass($()),style:l.normalizeStyle({zIndex:c.value-1}),onClick:l.withModifiers(u,["stop"])},[l.createVNode(l.Transition,{name:"sf-drawer",appear:"",onBeforeEnter:g,onEnter:m,onBeforeLeave:S,onAfterLeave:v},{default:l.withCtx(()=>[i.value?(l.openBlock(),l.createElementBlock("div",{key:0,class:l.normalizeClass(["sf-drawer",{"sf-drawer-with-footer":!!l.unref(o).footer}]),style:l.normalizeStyle(n.style),role:"dialog",onClick:j[0]||(j[0]=l.withModifiers(A=>_.void,["stop"]))},[l.createElementVNode("div",Aa,[l.createElementVNode("span",Ta,[l.renderSlot(_.$slots,"title")]),l.createVNode(_n,{button:!0,icon:"close",onClick:l.withModifiers(u,["stop"])},null,8,["onClick"])]),l.createElementVNode("div",xa,[l.renderSlot(_.$slots,"default")]),l.unref(o).footer?(l.openBlock(),l.createElementBlock("div",Pa,[l.renderSlot(_.$slots,"footer")])):l.createCommentVNode("",!0)],6)):l.createCommentVNode("",!0)]),_:3})],14,Ea)):l.createCommentVNode("",!0)]))}}),Ia=["id","name","disabled","data-color","form","type"],Oa={class:"sf-button-label"},go=l.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:{},iconFilled:{type:Boolean}},setup(t){const e=t;function n(){return new st(`${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(r,o)=>e.visible?(l.openBlock(),l.createElementBlock("button",{key:0,id:e.id,name:e.name,class:l.normalizeClass(n()),style:l.normalizeStyle(e.style),disabled:e.disabled||e.loading,"data-color":e.color,form:e.form,type:e.type},[e.icon?(l.openBlock(),l.createBlock(_n,{key:0,icon:e.icon,loading:e.loading,size:e.size,color:void 0,"button-props":{tabindex:-1},filled:e.iconFilled},null,8,["icon","loading","size","filled"])):e.loading?(l.openBlock(),l.createBlock(_n,{key:1,loading:!0,size:e.size,"button-props":{tabindex:-1}},null,8,["size"])):l.createCommentVNode("",!0),l.createElementVNode("span",Oa,[l.renderSlot(r.$slots,"default")])],14,Ia)):l.createCommentVNode("",!0)}}),yo="SweetAlert2:",La=t=>{const e=[];for(let n=0;n<t.length;n++)e.indexOf(t[n])===-1&&e.push(t[n]);return e},nr=t=>t.charAt(0).toUpperCase()+t.slice(1),$e=t=>Array.prototype.slice.call(t),Te=t=>{console.warn(`${yo} ${typeof t=="object"?t.join(" "):t}`)},ft=t=>{console.error(`${yo} ${t}`)},bo=[],Ra=t=>{bo.includes(t)||(bo.push(t),Te(t))},$a=(t,e)=>{Ra(`"${t}" is deprecated and will be removed in the next major release. Please use "${e}" instead.`)},Sn=t=>typeof t=="function"?t():t,rr=t=>t&&typeof t.toPromise=="function",Mt=t=>rr(t)?t.toPromise():Promise.resolve(t),or=t=>t&&Promise.resolve(t)===t,Ct={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},Na=["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"],Ba={},Da=["allowOutsideClick","allowEnterKey","backdrop","focusConfirm","focusDeny","focusCancel","returnFocus","heightAuto","keydownListenerCapture"],vo=t=>Object.prototype.hasOwnProperty.call(Ct,t),wo=t=>Na.indexOf(t)!==-1,ir=t=>Ba[t],Fa=t=>{vo(t)||Te(`Unknown parameter "${t}"`)},Ma=t=>{Da.includes(t)&&Te(`The parameter "${t}" is incompatible with toasts`)},Ua=t=>{ir(t)&&$a(t,ir(t))},Ha=t=>{!t.backdrop&&t.allowOutsideClick&&Te('"allowOutsideClick" parameter requires `backdrop` parameter to be set to `true`');for(const e in t)Fa(e),t.toast&&Ma(e),Ua(e)},ja="swal2-",_o=t=>{const e={};for(const n in t)e[t[n]]=ja+t[n];return e},b=_o(["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"]),Ut=_o(["success","warning","info","question","error"]),ve=()=>document.body.querySelector(`.${b.container}`),Ht=t=>{const e=ve();return e?e.querySelector(t):null},Ue=t=>Ht(`.${t}`),ae=()=>Ue(b.popup),jt=()=>Ue(b.icon),So=()=>Ue(b.title),kn=()=>Ue(b["html-container"]),ko=()=>Ue(b.image),Co=()=>Ue(b["progress-steps"]),Cn=()=>Ue(b["validation-message"]),ze=()=>Ht(`.${b.actions} .${b.confirm}`),at=()=>Ht(`.${b.actions} .${b.deny}`),Va=()=>Ue(b["input-label"]),Et=()=>Ht(`.${b.loader}`),mt=()=>Ht(`.${b.actions} .${b.cancel}`),Vt=()=>Ue(b.actions),Eo=()=>Ue(b.footer),En=()=>Ue(b["timer-progress-bar"]),sr=()=>Ue(b.close),za=`
|
|
2
2
|
a[href],
|
|
3
3
|
area[href],
|
|
4
4
|
input:not([disabled]),
|