@luizleon/sf.prefeiturasp.vuecomponents 6.0.7 → 6.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/sf.prefeiturasp.vuecomponents.css +1 -1
- package/dist/sf.prefeiturasp.vuecomponents.js +2150 -2063
- package/dist/sf.prefeiturasp.vuecomponents.js.map +1 -1
- package/dist/sf.prefeiturasp.vuecomponents.umd.cjs +20 -20
- package/dist/sf.prefeiturasp.vuecomponents.umd.cjs.map +1 -1
- package/dist/types/components/internal/ConfirmPopover.vue.d.ts +3 -0
- package/dist/types/components/internal/ConfirmPopover.vue.d.ts.map +1 -0
- package/dist/types/components/layout/Main.vue.d.ts.map +1 -1
- package/dist/types/composables/useConfirm.d.ts +42 -2
- package/dist/types/composables/useConfirm.d.ts.map +1 -1
- package/dist/types/extensions/vueComponentsExtensions.d.ts +1 -1
- package/dist/types/extensions/vueComponentsExtensions.d.ts.map +1 -1
- package/package.json +1 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
(function(x,r){typeof exports=="object"&&typeof module<"u"?r(exports,require("vue"),require("@luizleon/sf.prefeiturasp.vueauth"),require("vue-router")):typeof define=="function"&&define.amd?define(["exports","vue","@luizleon/sf.prefeiturasp.vueauth","vue-router"],r):(x=typeof globalThis<"u"?globalThis:x||self,r(x.SfPrefeituraSPVueComponents={},x.Vue,x.SfPrefeituraSPVueAuth,x.VueRouter))})(this,function(x,r,Un,ga){"use strict";class Pt{constructor(e){this.retorno=e??""}retorno;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 zn(t=[]){let e="body > *:not(script):not(style)";for(const o of t)e+=`, ${o}`;const n=Math.max(...Array.from(document.querySelectorAll(e)).map(o=>{const i=getComputedStyle(o).zIndex;return+i==+i?+i:0}));return n>=100?n:100}const zo=r.defineComponent({__name:"Tooltip",props:{text:{}},setup(t){const e=t;class n{target=null;wrapper=null;inner=null;showTimeout=null;Render(){this.wrapper=document.createElement("div"),this.wrapper.classList.add("sf-tooltip-wrapper"),this.wrapper.style.zIndex=`${zn()??1}`,this.wrapper.addEventListener("mouseup",function(){this.classList.remove("visible"),Array.from(this.children).forEach(a=>a.remove()),this.remove()}),this.inner=document.createElement("div"),this.inner.classList.add("sf-tooltip-inner"),this.wrapper.appendChild(this.inner)}Show(a){this.showTimeout&&clearTimeout(this.showTimeout),this.target=a.currentTarget,this.showTimeout=setTimeout(()=>{this.Render(),this.inner.textContent=e.text,document.body.appendChild(this.wrapper),this.wrapper.classList.add("visible"),this.Position()},500)}Hide(){this.showTimeout&&clearTimeout(this.showTimeout);try{this.wrapper.classList.remove("visible"),this.inner.remove(),this.wrapper.remove(),this.inner=null,this.wrapper=null,this.target=null}catch{}}Position(){if(!this.target||!this.wrapper)return;const a=this.target.getBoundingClientRect();this.FixWidth();const c=this.wrapper,l=5;c.style.top=`${a.top+a.height-l}px`,c.style.left=`${a.left+a.width-l}px`,this.OutOfBottom()&&(c.style.top=`${a.top-c.clientHeight+l}px`),this.OutOfRight()&&(c.style.left=`${a.left-c.clientWidth+l}px`)}FixWidth(){const a=this.wrapper;if(!a)return;a.style.width="fit-content",a.style.wordBreak="normal",a.style.whiteSpace="nowrap";const c=window.innerWidth/2;a.clientWidth>c&&(a.style.width=`${c}px`,a.style.wordBreak="break-word",a.style.whiteSpace="normal")}OutOfBottom(){const a=this.wrapper;if(!a)return!1;const c=a.getBoundingClientRect(),l=window.innerHeight||document.documentElement.clientHeight;return c.bottom+10>l}OutOfRight(){const a=this.wrapper;if(!a)return!1;const c=a.getBoundingClientRect(),l=window.innerWidth||document.documentElement.clientWidth;return c.right+10>l}}const o=new n;return r.onBeforeUnmount(()=>{o.Hide()}),(i,a)=>(r.openBlock(),r.createElementBlock("div",{class:"sf-tooltip-anchor",onMouseenter:a[0]||(a[0]=(...c)=>r.unref(o).Show&&r.unref(o).Show(...c)),onMousedown:a[1]||(a[1]=(...c)=>r.unref(o).Hide&&r.unref(o).Hide(...c)),onMouseleave:a[2]||(a[2]=(...c)=>r.unref(o).Hide&&r.unref(o).Hide(...c))},[r.renderSlot(i.$slots,"default")],32))}}),Le=(t,e)=>{const n=t.__vccOpts||t;for(const[o,i]of e)n[o]=i;return n},ya={},va={class:"sf-loading-circle"};function ba(t,e){return r.openBlock(),r.createElementBlock("div",va,e[0]||(e[0]=[r.createElementVNode("div",null,[r.createElementVNode("svg",{viewBox:"25 25 50 50"},[r.createElementVNode("circle",{cx:"50",cy:"50",r:"20",fill:"none","stroke-width":"4","stroke-miterlimit":"10"})])],-1)]))}const Ko=Le(ya,[["render",ba]]),Ca=["data-size"],wa=["disabled","data-p-loading","tabindex"],ka=["data-color"],Ie=Le(r.defineComponent({__name:"Icon",props:{icon:{},visible:{type:Boolean,default:!0},class:{default:""},style:{type:[Boolean,null,String,Object,Array],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"}},emits:["click"],setup(t,{emit:e}){const n=t,o=r.computed(()=>n.tooltip?zo:"div"),i=r.computed(()=>new Pt(n.tooltip?"":"display-content").AddClass("loading",n.loading).AddClass("disabled",n.disabled).Build()),a=r.computed(()=>new Pt(`${n.class} sf-icon`).AddClass("select-none").AddClass(`${n.color}-color`,!!n.color&&n.color!=="inherit").Build()),c=s=>{n.disabled||n.loading||l("click",s)},l=e;return(s,u)=>(r.openBlock(),r.createBlock(r.resolveDynamicComponent(o.value),{text:n.tooltip,class:r.normalizeClass(i.value),onClick:c},{default:r.withCtx(()=>[r.createElementVNode("div",{class:r.normalizeClass(["icon-wrapper",{"--button":!!n.button&&!n.disabled&&!n.loading,"--relative":!n.loading}]),"data-size":n.size},[n.visible?(r.openBlock(),r.createElementBlock("div",{key:0,style:r.normalizeStyle(n.style),class:r.normalizeClass(a.value)},[n.loading?(r.openBlock(),r.createBlock(Ko,{key:0})):(r.openBlock(),r.createElementBlock(r.Fragment,{key:1},[r.createElementVNode("button",r.mergeProps({class:["material-symbols-outlined",{"icon-filled":!!n.filled}],disabled:n.disabled,"data-p-loading":n.loading},n.buttonProps,{tabindex:n.button?void 0:-1}),r.toDisplayString(n.icon),17,wa),n.dot&&!n.disabled&&!n.loading?(r.openBlock(),r.createElementBlock("span",{key:0,"data-color":n.dotColor},null,8,ka)):r.createCommentVNode("",!0)],64))],6)):r.createCommentVNode("",!0)],10,Ca)]),_:1},8,["text","class"]))}}),[["__scopeId","data-v-c242d02a"]]),Sa={class:"sf-tab-navigation"},_a=["data-active"],Ea=["href","onClick"],Ta=r.defineComponent({__name:"TabNavigation",props:{tabs:{}},setup(t){const e=t,n=r.ref(null),o=new ResizeObserver(s=>{l()}),i=r.ref(!1),a=r.ref(!1);function c(s=!1){const u=n.value.clientWidth;n.value.scrollLeft+=s?-u:u}function l(){const s=n.value.scrollWidth-n.value.clientWidth;i.value=n.value.scrollLeft>10,a.value=n.value.scrollLeft<s-10}return r.onMounted(()=>{n.value.addEventListener("scroll",l),o.observe(n.value)}),r.onBeforeUnmount(()=>{try{n.value?.removeEventListener("scroll",l),o.unobserve(n.value),o.disconnect()}catch{}}),(s,u)=>{const d=r.resolveComponent("RouterLink");return r.openBlock(),r.createElementBlock("div",Sa,[r.createElementVNode("div",{class:r.normalizeClass(["left-arrow",{active:i.value}]),onClick:u[0]||(u[0]=f=>c(!0))},u[2]||(u[2]=[r.createElementVNode("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor",class:"w-6 h-6"},[r.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M15.75 19.5L8.25 12l7.5-7.5"})],-1)]),2),r.createElementVNode("ul",{ref_key:"trackerContainer",ref:n},[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(e.tabs,f=>(r.openBlock(),r.createBlock(d,{to:f.route,custom:!0},{default:r.withCtx(({navigate:p,isActive:h})=>[r.createElementVNode("li",{"data-active":h},[r.renderSlot(s.$slots,"item",{item:f,navigate:p,isActive:h},()=>[r.createElementVNode("a",{href:f.route,class:r.normalizeClass({active:h}),onClick:p},r.toDisplayString(f.text),11,Ea)])],8,_a)]),_:2},1032,["to"]))),256))],512),r.createElementVNode("div",{class:r.normalizeClass(["right-arrow",{active:a.value}]),onClick:u[1]||(u[1]=f=>c())},u[3]||(u[3]=[r.createElementVNode("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor",class:"w-6 h-6"},[r.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M8.25 4.5l7.5 7.5-7.5 7.5"})],-1)]),2)])}}}),Wo=Le(r.defineComponent({__name:"LoadingCircle",props:{delay:{},dense:{type:Boolean}},setup(t){const e=t,n=r.ref(!1);return r.onMounted(async()=>{await new Promise(o=>setTimeout(o,e.delay??300)),n.value=!0}),(o,i)=>n.value?(r.openBlock(),r.createElementBlock("div",{key:0,class:r.normalizeClass(["loading-circle",{dense:e.dense}])},i[0]||(i[0]=[r.createElementVNode("div",null,[r.createElementVNode("svg",{viewBox:"25 25 50 50"},[r.createElementVNode("circle",{cx:"50",cy:"50",r:"20",fill:"none","stroke-width":"3","stroke-miterlimit":"10"})])],-1)]),2)):r.createCommentVNode("",!0)}}),[["__scopeId","data-v-29f59fc6"]]),Pa=["id","name","disabled","data-color","form","type","data-p-loading"],Kn=Le(r.defineComponent({__name:"Button",props:{icon:{},visible:{type:Boolean,default:!0},class:{},style:{type:[Boolean,null,String,Object,Array]},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}},emits:["click"],setup(t,{emit:e}){const n=t;function o(){return new Pt(`${n.class??""} sf-button`).AddClass("select-none").AddClass("sf-button-small",n.size==="sm").AddClass("sf-button-medium",n.size==="md").AddClass("sf-button-large",n.size==="lg").AddClass("sf-button-filled",n.variant==="filled").AddClass("sf-button-text",n.variant==="text").AddClass("sf-button-outlined",n.variant==="outlined").AddClass("sf-button-with-icon",!!n.icon).Build()}const i=c=>{n.disabled||n.loading||a("click",c)},a=e;return(c,l)=>n.visible?(r.openBlock(),r.createElementBlock("button",{key:0,id:n.id,name:n.name,class:r.normalizeClass(o()),style:r.normalizeStyle(n.style),disabled:n.disabled,"data-color":n.color,form:n.form,type:n.type,"data-p-loading":n.loading,onClick:i},[n.loading?(r.openBlock(),r.createBlock(Wo,{key:0,dense:!0,delay:0,class:r.normalizeClass("icon-loading")})):r.createCommentVNode("",!0),n.icon?(r.openBlock(),r.createBlock(Ie,{key:1,icon:n.icon,size:n.size,"button-props":{tabindex:-1},filled:n.iconFilled,class:r.normalizeClass({transparent:n.loading})},null,8,["icon","size","filled","class"])):r.createCommentVNode("",!0),r.createElementVNode("span",{class:r.normalizeClass({"button-label":!0,"pl-2":!!n.icon,transparent:!n.disabled&&n.loading})},[r.renderSlot(c.$slots,"default",{},void 0,!0)],2)],14,Pa)):r.createCommentVNode("",!0)}}),[["__scopeId","data-v-b8d46db3"]]),Ia={class:"sf-drawer-title"},Aa={class:"sf-drawer-action"},Go=r.defineComponent({__name:"Drawer",props:{visible:{type:Boolean,default:!1},position:{default:"left"},style:{type:[Boolean,null,String,Object,Array]},dismissableMask:{type:Boolean,default:!0},title:{},unstyledHeader:{type:Boolean},unstyledContent:{type:Boolean},unstyledFooter:{type:Boolean}},emits:["update:visible","open","before-close"],setup(t,{emit:e}){const n=t,o=e,i=r.useSlots(),a=r.ref(n.visible),c=r.ref(!1),l=r.ref(0),s="sf-drawer-"+Math.random().toString(36).slice(2,11)+"-"+Date.now();function u(){a.value=!1}function d(y){if(!n.dismissableMask)return;const T=y.target;T&&T.id===s&&(a.value=!1)}function f(y){(y.key==="Escape"||y.code==="Escape")&&u()}function p(){o("open"),window.document.addEventListener("keydown",f,!0)}function h(y){l.value=zn()+1,y.style.zIndex=`${l.value}`}function C(y){o("before-close"),y?.parentElement?.classList.add("sf-mask-overlay-leave")}function w(){window.document.removeEventListener("keydown",f,!0),c.value=!1}function k(){return new Pt("sf-mask sf-mask-overlay").AddClass("right",n.position==="right").AddClass("bottom",n.position==="bottom").AddClass("center",n.position==="center").AddClass("full",n.position==="full").AddClass("sf-mask-overlay-enter",n.visible===!0).Build()}return r.watch(()=>n.visible,y=>{a.value=y}),r.watch(()=>a.value,y=>{o("update:visible",y),y&&(c.value=!0)}),(y,T)=>(r.openBlock(),r.createBlock(r.Teleport,{to:"body"},[c.value?(r.openBlock(),r.createElementBlock("div",{key:0,id:s,class:r.normalizeClass(k()),style:r.normalizeStyle({zIndex:l.value-1}),onClick:r.withModifiers(d,["stop"])},[r.createVNode(r.Transition,{name:"sf-drawer",appear:"",onBeforeEnter:h,onEnter:p,onBeforeLeave:C,onAfterLeave:w},{default:r.withCtx(()=>[a.value?(r.openBlock(),r.createElementBlock("div",{key:0,class:r.normalizeClass(["sf-drawer"]),style:r.normalizeStyle(n.style),role:"dialog"},[r.renderSlot(y.$slots,"header",r.normalizeProps(r.guardReactiveProps({Close:u})),()=>[r.createElementVNode("div",{class:r.normalizeClass(["sf-drawer-header",{unstyled:n.unstyledHeader}])},[r.renderSlot(y.$slots,"title",{},()=>[r.createElementVNode("div",Ia,r.toDisplayString(n.title),1)]),T[0]||(T[0]=r.createElementVNode("div",{class:"sf-drawer-spacer"},null,-1)),r.createElementVNode("div",Aa,[r.renderSlot(y.$slots,"action",r.normalizeProps(r.guardReactiveProps({Close:u})),()=>[r.createVNode(Ie,{button:!0,icon:"close",onClick:u})])])],2)]),r.createElementVNode("div",{class:r.normalizeClass(["sf-drawer-content",{unstyled:n.unstyledContent}])},[r.renderSlot(y.$slots,"default")],2),r.unref(i).footer?(r.openBlock(),r.createElementBlock("div",{key:0,class:r.normalizeClass(["sf-drawer-footer",{unstyled:n.unstyledFooter}])},[r.renderSlot(y.$slots,"footer",r.normalizeProps(r.guardReactiveProps({Close:u})))],2)):r.createCommentVNode("",!0)],4)):r.createCommentVNode("",!0)]),_:3})],6)):r.createCommentVNode("",!0)]))}}),xa=["data-icon"],$a=r.defineComponent({__name:"Message",props:{color:{default:"info"},class:{},style:{type:[Boolean,null,String,Object,Array]},icon:{}},setup(t){const e=t,n=r.computed(()=>{if(e.icon)return e.icon;switch(e.color){case"error":return"cancel";case"info":return"info";case"warn":return"warning";case"success":return"check";case"help":return"help";default:return null}}),o=r.computed(()=>new Pt("sf-message").AddClass("sf-message-error",e.color==="error").AddClass("sf-message-info",e.color==="info").AddClass("sf-message-warning",e.color==="warn").AddClass("sf-message-success",e.color==="success").AddClass("sf-message-help",e.color==="help").AddClass("sf-message-primary",e.color==="primary").AddClass("sf-message-secondary",e.color==="secondary").AddClass(e.class).Build());return(i,a)=>(r.openBlock(),r.createElementBlock("div",{class:r.normalizeClass(o.value),"data-icon":n.value},[r.renderSlot(i.$slots,"default")],10,xa))}});function Ba(t,e){return t?t.classList?t.classList.contains(e):new RegExp("(^| )"+e+"( |$)","gi").test(t.className):!1}function Oa(t,e){if(t&&e){let n=o=>{Ba(t,o)||(t.classList?t.classList.add(o):t.className+=" "+o)};[e].flat().filter(Boolean).forEach(o=>o.split(" ").forEach(n))}}function Wn(t,e){if(t&&e){let n=o=>{t.classList?t.classList.remove(o):t.className=t.className.replace(new RegExp("(^|\\b)"+o.split(" ").join("|")+"(\\b|$)","gi")," ")};[e].flat().filter(Boolean).forEach(o=>o.split(" ").forEach(n))}}function qo(t){return t?Math.abs(t.scrollLeft):0}function La(t,e){return t instanceof HTMLElement?t.offsetWidth:0}function Gn(t){return typeof Element<"u"?t instanceof Element:t!==null&&typeof t=="object"&&t.nodeType===1&&typeof t.nodeName=="string"}function Yo(t,e={}){if(Gn(t)){let n=(o,i)=>{var a,c;let l=(a=t?.$attrs)!=null&&a[o]?[(c=t?.$attrs)==null?void 0:c[o]]:[];return[i].flat().reduce((s,u)=>{if(u!=null){let d=typeof u;if(d==="string"||d==="number")s.push(u);else if(d==="object"){let f=Array.isArray(u)?n(o,u):Object.entries(u).map(([p,h])=>o==="style"&&(h||h===0)?`${p.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase()}:${h}`:h?p:void 0);s=f.length?s.concat(f.filter(p=>!!p)):s}}return s},l)};Object.entries(e).forEach(([o,i])=>{if(i!=null){let a=o.match(/^on(.+)/);a?t.addEventListener(a[1].toLowerCase(),i):o==="p-bind"||o==="pBind"?Yo(t,i):(i=o==="class"?[...new Set(n("class",i))].join(" ").trim():o==="style"?n("style",i).join(";").trim():i,(t.$attrs=t.$attrs||{})&&(t.$attrs[o]=i),t.setAttribute(o,i))}})}}function Na(t,e={},...n){{let o=document.createElement(t);return Yo(o,e),o.append(...n),o}}function Ae(t,e){return Gn(t)?t.matches(e)?t:t.querySelector(e):null}function It(t,e){t&&document.activeElement!==t&&t.focus(e)}function At(t,e){if(Gn(t)){let n=t.getAttribute(e);return isNaN(n)?n==="true"||n==="false"?n==="true":n:+n}}function Xo(t){if(t){let e=t.offsetHeight,n=getComputedStyle(t);return e-=parseFloat(n.paddingTop)+parseFloat(n.paddingBottom)+parseFloat(n.borderTopWidth)+parseFloat(n.borderBottomWidth),e}return 0}function Ma(t){if(t){let e=t.getBoundingClientRect();return{top:e.top+(window.pageYOffset||document.documentElement.scrollTop||document.body.scrollTop||0),left:e.left+(window.pageXOffset||qo(document.documentElement)||qo(document.body)||0)}}return{top:"auto",left:"auto"}}function Da(t,e){return t?t.offsetHeight:0}function Zo(t){if(t){let e=t.offsetWidth,n=getComputedStyle(t);return e-=parseFloat(n.paddingLeft)+parseFloat(n.paddingRight)+parseFloat(n.borderLeftWidth)+parseFloat(n.borderRightWidth),e}return 0}function mn(t){return t==null||t===""||Array.isArray(t)&&t.length===0||!(t instanceof Date)&&typeof t=="object"&&Object.keys(t).length===0}function qn(t,e,n=new WeakSet){if(t===e)return!0;if(!t||!e||typeof t!="object"||typeof e!="object"||n.has(t)||n.has(e))return!1;n.add(t).add(e);let o=Array.isArray(t),i=Array.isArray(e),a,c,l;if(o&&i){if(c=t.length,c!=e.length)return!1;for(a=c;a--!==0;)if(!qn(t[a],e[a],n))return!1;return!0}if(o!=i)return!1;let s=t instanceof Date,u=e instanceof Date;if(s!=u)return!1;if(s&&u)return t.getTime()==e.getTime();let d=t instanceof RegExp,f=e instanceof RegExp;if(d!=f)return!1;if(d&&f)return t.toString()==e.toString();let p=Object.keys(t);if(c=p.length,c!==Object.keys(e).length)return!1;for(a=c;a--!==0;)if(!Object.prototype.hasOwnProperty.call(e,p[a]))return!1;for(a=c;a--!==0;)if(l=p[a],!qn(t[l],e[l],n))return!1;return!0}function Ra(t,e){return qn(t,e)}function Va(t){return typeof t=="function"&&"call"in t&&"apply"in t}function Z(t){return!mn(t)}function Jo(t,e){return null}function ct(t,e,n){return n?Jo()===Jo():Ra(t,e)}function Qo(t,e){let n;if(Z(t))try{n=t.findLast(e)}catch{n=[...t].reverse().find(e)}return n}function Yn(t,...e){return Va(t)?t(...e):t}function ja(t=""){return Z(t)&&t.length===1&&!!t.match(/\S| /)}function Ha(t){return t==null||t===""||Array.isArray(t)&&t.length===0||!(t instanceof Date)&&typeof t=="object"&&Object.keys(t).length===0}function fn(t){return t==null||t===""||Array.isArray(t)&&t.length===0||!(t instanceof Date)&&typeof t=="object"&&Object.keys(t).length===0}function Xn(t){return typeof t=="function"&&"call"in t&&"apply"in t}function U(t){return!fn(t)}function Ke(t,e=!0){return t instanceof Object&&t.constructor===Object&&(e||Object.keys(t).length!==0)}function pe(t,...e){return Xn(t)?t(...e):t}function ue(t,e=!0){return typeof t=="string"&&(e||t!=="")}function xe(t){return ue(t)?t.replace(/(-|_)/g,"").toLowerCase():t}function Zn(t,e="",n={}){let o=xe(e).split("."),i=o.shift();if(i){if(Ke(t)){let a=Object.keys(t).find(c=>xe(c)===i)||"";return Zn(pe(t[a],n),o.join("."),n)}return}return pe(t,n)}function er(t,e=!0){return Array.isArray(t)&&(e||t.length!==0)}function Fa(t){return U(t)&&!isNaN(t)}function tt(t,e){if(e){let n=e.test(t);return e.lastIndex=0,n}return!1}function xt(t){return t&&t.replace(/\/\*(?:(?!\*\/)[\s\S])*\*\/|[\r\n\t]+/g,"").replace(/ {2,}/g," ").replace(/ ([{:}]) /g,"$1").replace(/([;,]) /g,"$1").replace(/ !/g,"!").replace(/: /g,":").trim()}function Ua(t){return ue(t,!1)?t[0].toUpperCase()+t.slice(1):t}function tr(t){return ue(t)?t.replace(/(_)/g,"-").replace(/[A-Z]/g,(e,n)=>n===0?e:"-"+e.toLowerCase()).toLowerCase():t}function nr(){let t=new Map;return{on(e,n){let o=t.get(e);return o?o.push(n):o=[n],t.set(e,o),this},off(e,n){let o=t.get(e);return o&&o.splice(o.indexOf(n)>>>0,1),this},emit(e,n){let o=t.get(e);o&&o.forEach(i=>{i(n)})},clear(){t.clear()}}}function za(t){if(t){let e=t.parentNode;return e&&e instanceof ShadowRoot&&e.host&&(e=e.host),e}return null}function Ka(t){return!!(t!==null&&typeof t<"u"&&t.nodeName&&za(t))}function pn(t){return typeof Element<"u"?t instanceof Element:t!==null&&typeof t=="object"&&t.nodeType===1&&typeof t.nodeName=="string"}function Jn(t,e={}){if(pn(t)){let n=(o,i)=>{var a,c;let l=(a=t?.$attrs)!=null&&a[o]?[(c=t?.$attrs)==null?void 0:c[o]]:[];return[i].flat().reduce((s,u)=>{if(u!=null){let d=typeof u;if(d==="string"||d==="number")s.push(u);else if(d==="object"){let f=Array.isArray(u)?n(o,u):Object.entries(u).map(([p,h])=>o==="style"&&(h||h===0)?`${p.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase()}:${h}`:h?p:void 0);s=f.length?s.concat(f.filter(p=>!!p)):s}}return s},l)};Object.entries(e).forEach(([o,i])=>{if(i!=null){let a=o.match(/^on(.+)/);a?t.addEventListener(a[1].toLowerCase(),i):o==="p-bind"||o==="pBind"?Jn(t,i):(i=o==="class"?[...new Set(n("class",i))].join(" ").trim():o==="style"?n("style",i).join(";").trim():i,(t.$attrs=t.$attrs||{})&&(t.$attrs[o]=i),t.setAttribute(o,i))}})}}function Wa(t,e){return pn(t)?t.matches(e)?t:t.querySelector(e):null}function Ga(){return!!(typeof window<"u"&&window.document&&window.document.createElement)}function qa(t,e="",n){pn(t)&&n!==null&&n!==void 0&&t.setAttribute(e,n)}var hn={};function Ya(t="pui_id_"){return Object.hasOwn(hn,t)||(hn[t]=0),hn[t]++,`${t}${hn[t]}`}var Xa=Object.defineProperty,Za=Object.defineProperties,Ja=Object.getOwnPropertyDescriptors,gn=Object.getOwnPropertySymbols,or=Object.prototype.hasOwnProperty,rr=Object.prototype.propertyIsEnumerable,ir=(t,e,n)=>e in t?Xa(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,Se=(t,e)=>{for(var n in e||(e={}))or.call(e,n)&&ir(t,n,e[n]);if(gn)for(var n of gn(e))rr.call(e,n)&&ir(t,n,e[n]);return t},Qn=(t,e)=>Za(t,Ja(e)),Ne=(t,e)=>{var n={};for(var o in t)or.call(t,o)&&e.indexOf(o)<0&&(n[o]=t[o]);if(t!=null&&gn)for(var o of gn(t))e.indexOf(o)<0&&rr.call(t,o)&&(n[o]=t[o]);return n},Qa=nr(),ie=Qa,$t=/{([^}]*)}/g,ar=/(\d+\s+[\+\-\*\/]\s+\d+)/g,sr=/var\([^)]+\)/g;function lr(t){return ue(t)?t.replace(/[A-Z]/g,(e,n)=>n===0?e:"."+e.toLowerCase()).toLowerCase():t}function es(t){return Ke(t)&&t.hasOwnProperty("$value")&&t.hasOwnProperty("$type")?t.$value:t}function ts(t){return t.replaceAll(/ /g,"").replace(/[^\w]/g,"-")}function eo(t="",e=""){return ts(`${ue(t,!1)&&ue(e,!1)?`${t}-`:t}${e}`)}function cr(t="",e=""){return`--${eo(t,e)}`}function ns(t=""){let e=(t.match(/{/g)||[]).length,n=(t.match(/}/g)||[]).length;return(e+n)%2!==0}function ur(t,e="",n="",o=[],i){if(ue(t)){let a=t.trim();if(ns(a))return;if(tt(a,$t)){let c=a.replaceAll($t,l=>{let s=l.replace(/{|}/g,"").split(".").filter(u=>!o.some(d=>tt(u,d)));return`var(${cr(n,tr(s.join("-")))}${U(i)?`, ${i}`:""})`});return tt(c.replace(sr,"0"),ar)?`calc(${c})`:c}return a}else if(Fa(t))return t}function os(t,e,n){ue(e,!1)&&t.push(`${e}:${n};`)}function ut(t,e){return t?`${t}{${e}}`:""}function dr(t,e){if(t.indexOf("dt(")===-1)return t;function n(c,l){let s=[],u=0,d="",f=null,p=0;for(;u<=c.length;){let h=c[u];if((h==='"'||h==="'"||h==="`")&&c[u-1]!=="\\"&&(f=f===h?null:h),!f&&(h==="("&&p++,h===")"&&p--,(h===","||u===c.length)&&p===0)){let C=d.trim();C.startsWith("dt(")?s.push(dr(C,l)):s.push(o(C)),d="",u++;continue}h!==void 0&&(d+=h),u++}return s}function o(c){let l=c[0];if((l==='"'||l==="'"||l==="`")&&c[c.length-1]===l)return c.slice(1,-1);let s=Number(c);return isNaN(s)?c:s}let i=[],a=[];for(let c=0;c<t.length;c++)if(t[c]==="d"&&t.slice(c,c+3)==="dt(")a.push(c),c+=2;else if(t[c]===")"&&a.length>0){let l=a.pop();a.length===0&&i.push([l,c])}if(!i.length)return t;for(let c=i.length-1;c>=0;c--){let[l,s]=i[c],u=t.slice(l+3,s),d=n(u,e),f=e(...d);t=t.slice(0,l)+f+t.slice(s+1)}return t}var nt=(...t)=>rs(j.getTheme(),...t),rs=(t={},e,n,o)=>{if(e){let{variable:i,options:a}=j.defaults||{},{prefix:c,transform:l}=t?.options||a||{},s=tt(e,$t)?e:`{${e}}`;return o==="value"||fn(o)&&l==="strict"?j.getTokenValue(e):ur(s,void 0,c,[i.excludedKeyRegex],n)}return""};function yn(t,...e){if(t instanceof Array){let n=t.reduce((o,i,a)=>{var c;return o+i+((c=pe(e[a],{dt:nt}))!=null?c:"")},"");return dr(n,nt)}return pe(t,{dt:nt})}function is(t,e={}){let n=j.defaults.variable,{prefix:o=n.prefix,selector:i=n.selector,excludedKeyRegex:a=n.excludedKeyRegex}=e,c=[],l=[],s=[{node:t,path:o}];for(;s.length;){let{node:d,path:f}=s.pop();for(let p in d){let h=d[p],C=es(h),w=tt(p,a)?eo(f):eo(f,tr(p));if(Ke(C))s.push({node:C,path:w});else{let k=cr(w),y=ur(C,w,o,[a]);os(l,k,y);let T=w;o&&T.startsWith(o+"-")&&(T=T.slice(o.length+1)),c.push(T.replace(/-/g,"."))}}}let u=l.join("");return{value:l,tokens:c,declarations:u,css:ut(i,u)}}var _e={regex:{rules:{class:{pattern:/^\.([a-zA-Z][\w-]*)$/,resolve(t){return{type:"class",selector:t,matched:this.pattern.test(t.trim())}}},attr:{pattern:/^\[(.*)\]$/,resolve(t){return{type:"attr",selector:`:root${t}`,matched:this.pattern.test(t.trim())}}},media:{pattern:/^@media (.*)$/,resolve(t){return{type:"media",selector:t,matched:this.pattern.test(t.trim())}}},system:{pattern:/^system$/,resolve(t){return{type:"system",selector:"@media (prefers-color-scheme: dark)",matched:this.pattern.test(t.trim())}}},custom:{resolve(t){return{type:"custom",selector:t,matched:!0}}}},resolve(t){let e=Object.keys(this.rules).filter(n=>n!=="custom").map(n=>this.rules[n]);return[t].flat().map(n=>{var o;return(o=e.map(i=>i.resolve(n)).find(i=>i.matched))!=null?o:this.rules.custom.resolve(n)})}},_toVariables(t,e){return is(t,{prefix:e?.prefix})},getCommon({name:t="",theme:e={},params:n,set:o,defaults:i}){var a,c,l,s,u,d,f;let{preset:p,options:h}=e,C,w,k,y,T,P,v;if(U(p)&&h.transform!=="strict"){let{primitive:_,semantic:z,extend:X}=p,Ce=z||{},{colorScheme:te}=Ce,we=Ne(Ce,["colorScheme"]),I=X||{},{colorScheme:V}=I,ne=Ne(I,["colorScheme"]),ce=te||{},{dark:Pe}=ce,Xe=Ne(ce,["dark"]),Re=V||{},{dark:Ve}=Re,Ze=Ne(Re,["dark"]),ke=U(_)?this._toVariables({primitive:_},h):{},R=U(we)?this._toVariables({semantic:we},h):{},Be=U(Xe)?this._toVariables({light:Xe},h):{},K=U(Pe)?this._toVariables({dark:Pe},h):{},je=U(ne)?this._toVariables({semantic:ne},h):{},H=U(Ze)?this._toVariables({light:Ze},h):{},Je=U(Ve)?this._toVariables({dark:Ve},h):{},[rn,Ln]=[(a=ke.declarations)!=null?a:"",ke.tokens],[an,Nn]=[(c=R.declarations)!=null?c:"",R.tokens||[]],[Mn,Qe]=[(l=Be.declarations)!=null?l:"",Be.tokens||[]],[bt,He]=[(s=K.declarations)!=null?s:"",K.tokens||[]],[sn,ln]=[(u=je.declarations)!=null?u:"",je.tokens||[]],[et,Ct]=[(d=H.declarations)!=null?d:"",H.tokens||[]],[wt,Dn]=[(f=Je.declarations)!=null?f:"",Je.tokens||[]];C=this.transformCSS(t,rn,"light","variable",h,o,i),w=Ln;let Rn=this.transformCSS(t,`${an}${Mn}`,"light","variable",h,o,i),Do=this.transformCSS(t,`${bt}`,"dark","variable",h,o,i);k=`${Rn}${Do}`,y=[...new Set([...Nn,...Qe,...He])];let cn=this.transformCSS(t,`${sn}${et}color-scheme:light`,"light","variable",h,o,i),lt=this.transformCSS(t,`${wt}color-scheme:dark`,"dark","variable",h,o,i);T=`${cn}${lt}`,P=[...new Set([...ln,...Ct,...Dn])],v=pe(p.css,{dt:nt})}return{primitive:{css:C,tokens:w},semantic:{css:k,tokens:y},global:{css:T,tokens:P},style:v}},getPreset({name:t="",preset:e={},options:n,params:o,set:i,defaults:a,selector:c}){var l,s,u;let d,f,p;if(U(e)&&n.transform!=="strict"){let h=t.replace("-directive",""),C=e,{colorScheme:w,extend:k,css:y}=C,T=Ne(C,["colorScheme","extend","css"]),P=k||{},{colorScheme:v}=P,_=Ne(P,["colorScheme"]),z=w||{},{dark:X}=z,Ce=Ne(z,["dark"]),te=v||{},{dark:we}=te,I=Ne(te,["dark"]),V=U(T)?this._toVariables({[h]:Se(Se({},T),_)},n):{},ne=U(Ce)?this._toVariables({[h]:Se(Se({},Ce),I)},n):{},ce=U(X)?this._toVariables({[h]:Se(Se({},X),we)},n):{},[Pe,Xe]=[(l=V.declarations)!=null?l:"",V.tokens||[]],[Re,Ve]=[(s=ne.declarations)!=null?s:"",ne.tokens||[]],[Ze,ke]=[(u=ce.declarations)!=null?u:"",ce.tokens||[]],R=this.transformCSS(h,`${Pe}${Re}`,"light","variable",n,i,a,c),Be=this.transformCSS(h,Ze,"dark","variable",n,i,a,c);d=`${R}${Be}`,f=[...new Set([...Xe,...Ve,...ke])],p=pe(y,{dt:nt})}return{css:d,tokens:f,style:p}},getPresetC({name:t="",theme:e={},params:n,set:o,defaults:i}){var a;let{preset:c,options:l}=e,s=(a=c?.components)==null?void 0:a[t];return this.getPreset({name:t,preset:s,options:l,params:n,set:o,defaults:i})},getPresetD({name:t="",theme:e={},params:n,set:o,defaults:i}){var a,c;let l=t.replace("-directive",""),{preset:s,options:u}=e,d=((a=s?.components)==null?void 0:a[l])||((c=s?.directives)==null?void 0:c[l]);return this.getPreset({name:l,preset:d,options:u,params:n,set:o,defaults:i})},applyDarkColorScheme(t){return!(t.darkModeSelector==="none"||t.darkModeSelector===!1)},getColorSchemeOption(t,e){var n;return this.applyDarkColorScheme(t)?this.regex.resolve(t.darkModeSelector===!0?e.options.darkModeSelector:(n=t.darkModeSelector)!=null?n:e.options.darkModeSelector):[]},getLayerOrder(t,e={},n,o){let{cssLayer:i}=e;return i?`@layer ${pe(i.order||i.name||"primeui",n)}`:""},getCommonStyleSheet({name:t="",theme:e={},params:n,props:o={},set:i,defaults:a}){let c=this.getCommon({name:t,theme:e,params:n,set:i,defaults:a}),l=Object.entries(o).reduce((s,[u,d])=>s.push(`${u}="${d}"`)&&s,[]).join(" ");return Object.entries(c||{}).reduce((s,[u,d])=>{if(Ke(d)&&Object.hasOwn(d,"css")){let f=xt(d.css),p=`${u}-variables`;s.push(`<style type="text/css" data-primevue-style-id="${p}" ${l}>${f}</style>`)}return s},[]).join("")},getStyleSheet({name:t="",theme:e={},params:n,props:o={},set:i,defaults:a}){var c;let l={name:t,theme:e,params:n,set:i,defaults:a},s=(c=t.includes("-directive")?this.getPresetD(l):this.getPresetC(l))==null?void 0:c.css,u=Object.entries(o).reduce((d,[f,p])=>d.push(`${f}="${p}"`)&&d,[]).join(" ");return s?`<style type="text/css" data-primevue-style-id="${t}-variables" ${u}>${xt(s)}</style>`:""},createTokens(t={},e,n="",o="",i={}){let a=function(l,s={},u=[]){if(u.includes(this.path))return console.warn(`Circular reference detected at ${this.path}`),{colorScheme:l,path:this.path,paths:s,value:void 0};u.push(this.path),s.name=this.path,s.binding||(s.binding={});let d=this.value;if(typeof this.value=="string"&&$t.test(this.value)){let f=this.value.trim().replace($t,p=>{var h;let C=p.slice(1,-1),w=this.tokens[C];if(!w)return console.warn(`Token not found for path: ${C}`),"__UNRESOLVED__";let k=w.computed(l,s,u);return Array.isArray(k)&&k.length===2?`light-dark(${k[0].value},${k[1].value})`:(h=k?.value)!=null?h:"__UNRESOLVED__"});d=ar.test(f.replace(sr,"0"))?`calc(${f})`:f}return fn(s.binding)&&delete s.binding,u.pop(),{colorScheme:l,path:this.path,paths:s,value:d.includes("__UNRESOLVED__")?void 0:d}},c=(l,s,u)=>{Object.entries(l).forEach(([d,f])=>{let p=tt(d,e.variable.excludedKeyRegex)?s:s?`${s}.${lr(d)}`:lr(d),h=u?`${u}.${d}`:d;Ke(f)?c(f,p,h):(i[p]||(i[p]={paths:[],computed:(C,w={},k=[])=>{if(i[p].paths.length===1)return i[p].paths[0].computed(i[p].paths[0].scheme,w.binding,k);if(C&&C!=="none")for(let y=0;y<i[p].paths.length;y++){let T=i[p].paths[y];if(T.scheme===C)return T.computed(C,w.binding,k)}return i[p].paths.map(y=>y.computed(y.scheme,w[y.scheme],k))}}),i[p].paths.push({path:h,value:f,scheme:h.includes("colorScheme.light")?"light":h.includes("colorScheme.dark")?"dark":"none",computed:a,tokens:i}))})};return c(t,n,o),i},getTokenValue(t,e,n){var o;let i=(l=>l.split(".").filter(s=>!tt(s.toLowerCase(),n.variable.excludedKeyRegex)).join("."))(e),a=e.includes("colorScheme.light")?"light":e.includes("colorScheme.dark")?"dark":void 0,c=[(o=t[i])==null?void 0:o.computed(a)].flat().filter(l=>l);return c.length===1?c[0].value:c.reduce((l={},s)=>{let u=s,{colorScheme:d}=u,f=Ne(u,["colorScheme"]);return l[d]=f,l},void 0)},getSelectorRule(t,e,n,o){return n==="class"||n==="attr"?ut(U(e)?`${t}${e},${t} ${e}`:t,o):ut(t,ut(e??":root",o))},transformCSS(t,e,n,o,i={},a,c,l){if(U(e)){let{cssLayer:s}=i;if(o!=="style"){let u=this.getColorSchemeOption(i,c);e=n==="dark"?u.reduce((d,{type:f,selector:p})=>(U(p)&&(d+=p.includes("[CSS]")?p.replace("[CSS]",e):this.getSelectorRule(p,l,f,e)),d),""):ut(l??":root",e)}if(s){let u={name:"primeui"};Ke(s)&&(u.name=pe(s.name,{name:t,type:o})),U(u.name)&&(e=ut(`@layer ${u.name}`,e),a?.layerNames(u.name))}return e}return""}},j={defaults:{variable:{prefix:"p",selector:":root",excludedKeyRegex:/^(primitive|semantic|components|directives|variables|colorscheme|light|dark|common|root|states|extend|css)$/gi},options:{prefix:"p",darkModeSelector:"system",cssLayer:!1}},_theme:void 0,_layerNames:new Set,_loadedStyleNames:new Set,_loadingStyles:new Set,_tokens:{},update(t={}){let{theme:e}=t;e&&(this._theme=Qn(Se({},e),{options:Se(Se({},this.defaults.options),e.options)}),this._tokens=_e.createTokens(this.preset,this.defaults),this.clearLoadedStyleNames())},get theme(){return this._theme},get preset(){var t;return((t=this.theme)==null?void 0:t.preset)||{}},get options(){var t;return((t=this.theme)==null?void 0:t.options)||{}},get tokens(){return this._tokens},getTheme(){return this.theme},setTheme(t){this.update({theme:t}),ie.emit("theme:change",t)},getPreset(){return this.preset},setPreset(t){this._theme=Qn(Se({},this.theme),{preset:t}),this._tokens=_e.createTokens(t,this.defaults),this.clearLoadedStyleNames(),ie.emit("preset:change",t),ie.emit("theme:change",this.theme)},getOptions(){return this.options},setOptions(t){this._theme=Qn(Se({},this.theme),{options:t}),this.clearLoadedStyleNames(),ie.emit("options:change",t),ie.emit("theme:change",this.theme)},getLayerNames(){return[...this._layerNames]},setLayerNames(t){this._layerNames.add(t)},getLoadedStyleNames(){return this._loadedStyleNames},isStyleNameLoaded(t){return this._loadedStyleNames.has(t)},setLoadedStyleName(t){this._loadedStyleNames.add(t)},deleteLoadedStyleName(t){this._loadedStyleNames.delete(t)},clearLoadedStyleNames(){this._loadedStyleNames.clear()},getTokenValue(t){return _e.getTokenValue(this.tokens,t,this.defaults)},getCommon(t="",e){return _e.getCommon({name:t,theme:this.theme,params:e,defaults:this.defaults,set:{layerNames:this.setLayerNames.bind(this)}})},getComponent(t="",e){let n={name:t,theme:this.theme,params:e,defaults:this.defaults,set:{layerNames:this.setLayerNames.bind(this)}};return _e.getPresetC(n)},getDirective(t="",e){let n={name:t,theme:this.theme,params:e,defaults:this.defaults,set:{layerNames:this.setLayerNames.bind(this)}};return _e.getPresetD(n)},getCustomPreset(t="",e,n,o){let i={name:t,preset:e,options:this.options,selector:n,params:o,defaults:this.defaults,set:{layerNames:this.setLayerNames.bind(this)}};return _e.getPreset(i)},getLayerOrderCSS(t=""){return _e.getLayerOrder(t,this.options,{names:this.getLayerNames()},this.defaults)},transformCSS(t="",e,n="style",o){return _e.transformCSS(t,e,o,n,this.options,{layerNames:this.setLayerNames.bind(this)},this.defaults)},getCommonStyleSheet(t="",e,n={}){return _e.getCommonStyleSheet({name:t,theme:this.theme,params:e,props:n,defaults:this.defaults,set:{layerNames:this.setLayerNames.bind(this)}})},getStyleSheet(t,e,n={}){return _e.getStyleSheet({name:t,theme:this.theme,params:e,props:n,defaults:this.defaults,set:{layerNames:this.setLayerNames.bind(this)}})},onStyleMounted(t){this._loadingStyles.add(t)},onStyleUpdated(t){this._loadingStyles.add(t)},onStyleLoaded(t,{name:e}){this._loadingStyles.size&&(this._loadingStyles.delete(e),ie.emit(`theme:${e}:load`,t),!this._loadingStyles.size&&ie.emit("theme:load"))}},We={_loadedStyleNames:new Set,getLoadedStyleNames:function(){return this._loadedStyleNames},isStyleNameLoaded:function(e){return this._loadedStyleNames.has(e)},setLoadedStyleName:function(e){this._loadedStyleNames.add(e)},deleteLoadedStyleName:function(e){this._loadedStyleNames.delete(e)},clearLoadedStyleNames:function(){this._loadedStyleNames.clear()}},as=`
|
|
1
|
+
(function(x,r){typeof exports=="object"&&typeof module<"u"?r(exports,require("vue"),require("@luizleon/sf.prefeiturasp.vueauth"),require("vue-router")):typeof define=="function"&&define.amd?define(["exports","vue","@luizleon/sf.prefeiturasp.vueauth","vue-router"],r):(x=typeof globalThis<"u"?globalThis:x||self,r(x.SfPrefeituraSPVueComponents={},x.Vue,x.SfPrefeituraSPVueAuth,x.VueRouter))})(this,function(x,r,Un,da){"use strict";class It{constructor(e){this.retorno=e??""}retorno;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 pn(t=[]){let e="body > *:not(script):not(style)";for(const o of t)e+=`, ${o}`;const n=Math.max(...Array.from(document.querySelectorAll(e)).map(o=>{const i=getComputedStyle(o).zIndex;return+i==+i?+i:0}));return n>=100?n:100}const jo=r.defineComponent({__name:"Tooltip",props:{text:{}},setup(t){const e=t;class n{target=null;wrapper=null;inner=null;showTimeout=null;Render(){this.wrapper=document.createElement("div"),this.wrapper.classList.add("sf-tooltip-wrapper"),this.wrapper.style.zIndex=`${pn()??1}`,this.wrapper.addEventListener("mouseup",function(){this.classList.remove("visible"),Array.from(this.children).forEach(a=>a.remove()),this.remove()}),this.inner=document.createElement("div"),this.inner.classList.add("sf-tooltip-inner"),this.wrapper.appendChild(this.inner)}Show(a){this.showTimeout&&clearTimeout(this.showTimeout),this.target=a.currentTarget,this.showTimeout=setTimeout(()=>{this.Render(),this.inner.textContent=e.text,document.body.appendChild(this.wrapper),this.wrapper.classList.add("visible"),this.Position()},500)}Hide(){this.showTimeout&&clearTimeout(this.showTimeout);try{this.wrapper.classList.remove("visible"),this.inner.remove(),this.wrapper.remove(),this.inner=null,this.wrapper=null,this.target=null}catch{}}Position(){if(!this.target||!this.wrapper)return;const a=this.target.getBoundingClientRect();this.FixWidth();const c=this.wrapper,l=5;c.style.top=`${a.top+a.height-l}px`,c.style.left=`${a.left+a.width-l}px`,this.OutOfBottom()&&(c.style.top=`${a.top-c.clientHeight+l}px`),this.OutOfRight()&&(c.style.left=`${a.left-c.clientWidth+l}px`)}FixWidth(){const a=this.wrapper;if(!a)return;a.style.width="fit-content",a.style.wordBreak="normal",a.style.whiteSpace="nowrap";const c=window.innerWidth/2;a.clientWidth>c&&(a.style.width=`${c}px`,a.style.wordBreak="break-word",a.style.whiteSpace="normal")}OutOfBottom(){const a=this.wrapper;if(!a)return!1;const c=a.getBoundingClientRect(),l=window.innerHeight||document.documentElement.clientHeight;return c.bottom+10>l}OutOfRight(){const a=this.wrapper;if(!a)return!1;const c=a.getBoundingClientRect(),l=window.innerWidth||document.documentElement.clientWidth;return c.right+10>l}}const o=new n;return r.onBeforeUnmount(()=>{o.Hide()}),(i,a)=>(r.openBlock(),r.createElementBlock("div",{class:"sf-tooltip-anchor",onMouseenter:a[0]||(a[0]=(...c)=>r.unref(o).Show&&r.unref(o).Show(...c)),onMousedown:a[1]||(a[1]=(...c)=>r.unref(o).Hide&&r.unref(o).Hide(...c)),onMouseleave:a[2]||(a[2]=(...c)=>r.unref(o).Hide&&r.unref(o).Hide(...c))},[r.renderSlot(i.$slots,"default")],32))}}),Pe=(t,e)=>{const n=t.__vccOpts||t;for(const[o,i]of e)n[o]=i;return n},ma={},fa={class:"sf-loading-circle"};function pa(t,e){return r.openBlock(),r.createElementBlock("div",fa,e[0]||(e[0]=[r.createElementVNode("div",null,[r.createElementVNode("svg",{viewBox:"25 25 50 50"},[r.createElementVNode("circle",{cx:"50",cy:"50",r:"20",fill:"none","stroke-width":"4","stroke-miterlimit":"10"})])],-1)]))}const Ho=Pe(ma,[["render",pa]]),ha=["data-size"],ga=["disabled","data-p-loading","tabindex"],ya=["data-color"],Ae=Pe(r.defineComponent({__name:"Icon",props:{icon:{},visible:{type:Boolean,default:!0},class:{default:""},style:{type:[Boolean,null,String,Object,Array],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"}},emits:["click"],setup(t,{emit:e}){const n=t,o=r.computed(()=>n.tooltip?jo:"div"),i=r.computed(()=>new It(n.tooltip?"":"display-content").AddClass("loading",n.loading).AddClass("disabled",n.disabled).Build()),a=r.computed(()=>new It(`${n.class} sf-icon`).AddClass("select-none").AddClass(`${n.color}-color`,!!n.color&&n.color!=="inherit").Build()),c=s=>{n.disabled||n.loading||l("click",s)},l=e;return(s,u)=>(r.openBlock(),r.createBlock(r.resolveDynamicComponent(o.value),{text:n.tooltip,class:r.normalizeClass(i.value),onClick:c},{default:r.withCtx(()=>[r.createElementVNode("div",{class:r.normalizeClass(["icon-wrapper",{"--button":!!n.button&&!n.disabled&&!n.loading,"--relative":!n.loading}]),"data-size":n.size},[n.visible?(r.openBlock(),r.createElementBlock("div",{key:0,style:r.normalizeStyle(n.style),class:r.normalizeClass(a.value)},[n.loading?(r.openBlock(),r.createBlock(Ho,{key:0})):(r.openBlock(),r.createElementBlock(r.Fragment,{key:1},[r.createElementVNode("button",r.mergeProps({class:["material-symbols-outlined",{"icon-filled":!!n.filled}],disabled:n.disabled,"data-p-loading":n.loading},n.buttonProps,{tabindex:n.button?void 0:-1}),r.toDisplayString(n.icon),17,ga),n.dot&&!n.disabled&&!n.loading?(r.openBlock(),r.createElementBlock("span",{key:0,"data-color":n.dotColor},null,8,ya)):r.createCommentVNode("",!0)],64))],6)):r.createCommentVNode("",!0)],10,ha)]),_:1},8,["text","class"]))}}),[["__scopeId","data-v-c242d02a"]]),va={class:"sf-tab-navigation"},ba=["data-active"],Ca=["href","onClick"],wa=r.defineComponent({__name:"TabNavigation",props:{tabs:{}},setup(t){const e=t,n=r.ref(null),o=new ResizeObserver(s=>{l()}),i=r.ref(!1),a=r.ref(!1);function c(s=!1){const u=n.value.clientWidth;n.value.scrollLeft+=s?-u:u}function l(){const s=n.value.scrollWidth-n.value.clientWidth;i.value=n.value.scrollLeft>10,a.value=n.value.scrollLeft<s-10}return r.onMounted(()=>{n.value.addEventListener("scroll",l),o.observe(n.value)}),r.onBeforeUnmount(()=>{try{n.value?.removeEventListener("scroll",l),o.unobserve(n.value),o.disconnect()}catch{}}),(s,u)=>{const d=r.resolveComponent("RouterLink");return r.openBlock(),r.createElementBlock("div",va,[r.createElementVNode("div",{class:r.normalizeClass(["left-arrow",{active:i.value}]),onClick:u[0]||(u[0]=f=>c(!0))},u[2]||(u[2]=[r.createElementVNode("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor",class:"w-6 h-6"},[r.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M15.75 19.5L8.25 12l7.5-7.5"})],-1)]),2),r.createElementVNode("ul",{ref_key:"trackerContainer",ref:n},[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(e.tabs,f=>(r.openBlock(),r.createBlock(d,{to:f.route,custom:!0},{default:r.withCtx(({navigate:h,isActive:p})=>[r.createElementVNode("li",{"data-active":p},[r.renderSlot(s.$slots,"item",{item:f,navigate:h,isActive:p},()=>[r.createElementVNode("a",{href:f.route,class:r.normalizeClass({active:p}),onClick:h},r.toDisplayString(f.text),11,Ca)])],8,ba)]),_:2},1032,["to"]))),256))],512),r.createElementVNode("div",{class:r.normalizeClass(["right-arrow",{active:a.value}]),onClick:u[1]||(u[1]=f=>c())},u[3]||(u[3]=[r.createElementVNode("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor",class:"w-6 h-6"},[r.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M8.25 4.5l7.5 7.5-7.5 7.5"})],-1)]),2)])}}}),Fo=Pe(r.defineComponent({__name:"LoadingCircle",props:{delay:{},dense:{type:Boolean}},setup(t){const e=t,n=r.ref(!1);return r.onMounted(async()=>{await new Promise(o=>setTimeout(o,e.delay??300)),n.value=!0}),(o,i)=>n.value?(r.openBlock(),r.createElementBlock("div",{key:0,class:r.normalizeClass(["loading-circle",{dense:e.dense}])},i[0]||(i[0]=[r.createElementVNode("div",null,[r.createElementVNode("svg",{viewBox:"25 25 50 50"},[r.createElementVNode("circle",{cx:"50",cy:"50",r:"20",fill:"none","stroke-width":"3","stroke-miterlimit":"10"})])],-1)]),2)):r.createCommentVNode("",!0)}}),[["__scopeId","data-v-29f59fc6"]]),ka=["id","name","disabled","data-color","form","type","data-p-loading"],Pt=Pe(r.defineComponent({__name:"Button",props:{icon:{},visible:{type:Boolean,default:!0},class:{},style:{type:[Boolean,null,String,Object,Array]},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}},emits:["click"],setup(t,{emit:e}){const n=t;function o(){return new It(`${n.class??""} sf-button`).AddClass("select-none").AddClass("sf-button-small",n.size==="sm").AddClass("sf-button-medium",n.size==="md").AddClass("sf-button-large",n.size==="lg").AddClass("sf-button-filled",n.variant==="filled").AddClass("sf-button-text",n.variant==="text").AddClass("sf-button-outlined",n.variant==="outlined").AddClass("sf-button-with-icon",!!n.icon).Build()}const i=c=>{n.disabled||n.loading||a("click",c)},a=e;return(c,l)=>n.visible?(r.openBlock(),r.createElementBlock("button",{key:0,id:n.id,name:n.name,class:r.normalizeClass(o()),style:r.normalizeStyle(n.style),disabled:n.disabled,"data-color":n.color,form:n.form,type:n.type,"data-p-loading":n.loading,onClick:i},[n.loading?(r.openBlock(),r.createBlock(Fo,{key:0,dense:!0,delay:0,class:r.normalizeClass("icon-loading")})):r.createCommentVNode("",!0),n.icon?(r.openBlock(),r.createBlock(Ae,{key:1,icon:n.icon,size:n.size,"button-props":{tabindex:-1},filled:n.iconFilled,class:r.normalizeClass({transparent:n.loading})},null,8,["icon","size","filled","class"])):r.createCommentVNode("",!0),r.createElementVNode("span",{class:r.normalizeClass({"button-label":!0,"pl-2":!!n.icon,transparent:!n.disabled&&n.loading})},[r.renderSlot(c.$slots,"default",{},void 0,!0)],2)],14,ka)):r.createCommentVNode("",!0)}}),[["__scopeId","data-v-b8d46db3"]]),Sa={class:"sf-drawer-title"},_a={class:"sf-drawer-action"},zo=r.defineComponent({__name:"Drawer",props:{visible:{type:Boolean,default:!1},position:{default:"left"},style:{type:[Boolean,null,String,Object,Array]},dismissableMask:{type:Boolean,default:!0},title:{},unstyledHeader:{type:Boolean},unstyledContent:{type:Boolean},unstyledFooter:{type:Boolean}},emits:["update:visible","open","before-close"],setup(t,{emit:e}){const n=t,o=e,i=r.useSlots(),a=r.ref(n.visible),c=r.ref(!1),l=r.ref(0),s="sf-drawer-"+Math.random().toString(36).slice(2,11)+"-"+Date.now();function u(){a.value=!1}function d(y){if(!n.dismissableMask)return;const T=y.target;T&&T.id===s&&(a.value=!1)}function f(y){(y.key==="Escape"||y.code==="Escape")&&u()}function h(){o("open"),window.document.addEventListener("keydown",f,!0)}function p(y){l.value=pn()+1,y.style.zIndex=`${l.value}`}function v(y){o("before-close"),y?.parentElement?.classList.add("sf-mask-overlay-leave")}function w(){window.document.removeEventListener("keydown",f,!0),c.value=!1}function k(){return new It("sf-mask sf-mask-overlay").AddClass("right",n.position==="right").AddClass("bottom",n.position==="bottom").AddClass("center",n.position==="center").AddClass("full",n.position==="full").AddClass("sf-mask-overlay-enter",n.visible===!0).Build()}return r.watch(()=>n.visible,y=>{a.value=y}),r.watch(()=>a.value,y=>{o("update:visible",y),y&&(c.value=!0)}),(y,T)=>(r.openBlock(),r.createBlock(r.Teleport,{to:"body"},[c.value?(r.openBlock(),r.createElementBlock("div",{key:0,id:s,class:r.normalizeClass(k()),style:r.normalizeStyle({zIndex:l.value-1}),onClick:r.withModifiers(d,["stop"])},[r.createVNode(r.Transition,{name:"sf-drawer",appear:"",onBeforeEnter:p,onEnter:h,onBeforeLeave:v,onAfterLeave:w},{default:r.withCtx(()=>[a.value?(r.openBlock(),r.createElementBlock("div",{key:0,class:r.normalizeClass(["sf-drawer"]),style:r.normalizeStyle(n.style),role:"dialog"},[r.renderSlot(y.$slots,"header",r.normalizeProps(r.guardReactiveProps({Close:u})),()=>[r.createElementVNode("div",{class:r.normalizeClass(["sf-drawer-header",{unstyled:n.unstyledHeader}])},[r.renderSlot(y.$slots,"title",{},()=>[r.createElementVNode("div",Sa,r.toDisplayString(n.title),1)]),T[0]||(T[0]=r.createElementVNode("div",{class:"sf-drawer-spacer"},null,-1)),r.createElementVNode("div",_a,[r.renderSlot(y.$slots,"action",r.normalizeProps(r.guardReactiveProps({Close:u})),()=>[r.createVNode(Ae,{button:!0,icon:"close",onClick:u})])])],2)]),r.createElementVNode("div",{class:r.normalizeClass(["sf-drawer-content",{unstyled:n.unstyledContent}])},[r.renderSlot(y.$slots,"default")],2),r.unref(i).footer?(r.openBlock(),r.createElementBlock("div",{key:0,class:r.normalizeClass(["sf-drawer-footer",{unstyled:n.unstyledFooter}])},[r.renderSlot(y.$slots,"footer",r.normalizeProps(r.guardReactiveProps({Close:u})))],2)):r.createCommentVNode("",!0)],4)):r.createCommentVNode("",!0)]),_:3})],6)):r.createCommentVNode("",!0)]))}}),Ea=["data-icon"],Ta=r.defineComponent({__name:"Message",props:{color:{default:"info"},class:{},style:{type:[Boolean,null,String,Object,Array]},icon:{}},setup(t){const e=t,n=r.computed(()=>{if(e.icon)return e.icon;switch(e.color){case"error":return"cancel";case"info":return"info";case"warn":return"warning";case"success":return"check";case"help":return"help";default:return null}}),o=r.computed(()=>new It("sf-message").AddClass("sf-message-error",e.color==="error").AddClass("sf-message-info",e.color==="info").AddClass("sf-message-warning",e.color==="warn").AddClass("sf-message-success",e.color==="success").AddClass("sf-message-help",e.color==="help").AddClass("sf-message-primary",e.color==="primary").AddClass("sf-message-secondary",e.color==="secondary").AddClass(e.class).Build());return(i,a)=>(r.openBlock(),r.createElementBlock("div",{class:r.normalizeClass(o.value),"data-icon":n.value},[r.renderSlot(i.$slots,"default")],10,Ea))}});function Ia(t,e){return t?t.classList?t.classList.contains(e):new RegExp("(^| )"+e+"( |$)","gi").test(t.className):!1}function Pa(t,e){if(t&&e){let n=o=>{Ia(t,o)||(t.classList?t.classList.add(o):t.className+=" "+o)};[e].flat().filter(Boolean).forEach(o=>o.split(" ").forEach(n))}}function Wn(t,e){if(t&&e){let n=o=>{t.classList?t.classList.remove(o):t.className=t.className.replace(new RegExp("(^|\\b)"+o.split(" ").join("|")+"(\\b|$)","gi")," ")};[e].flat().filter(Boolean).forEach(o=>o.split(" ").forEach(n))}}function Uo(t){return t?Math.abs(t.scrollLeft):0}function Aa(t,e){return t instanceof HTMLElement?t.offsetWidth:0}function xa(t){if(t){let e=t.parentNode;return e&&e instanceof ShadowRoot&&e.host&&(e=e.host),e}return null}function Ba(t){return!!(t!==null&&typeof t<"u"&&t.nodeName&&xa(t))}function At(t){return typeof Element<"u"?t instanceof Element:t!==null&&typeof t=="object"&&t.nodeType===1&&typeof t.nodeName=="string"}function hn(t,e={}){if(At(t)){let n=(o,i)=>{var a,c;let l=(a=t?.$attrs)!=null&&a[o]?[(c=t?.$attrs)==null?void 0:c[o]]:[];return[i].flat().reduce((s,u)=>{if(u!=null){let d=typeof u;if(d==="string"||d==="number")s.push(u);else if(d==="object"){let f=Array.isArray(u)?n(o,u):Object.entries(u).map(([h,p])=>o==="style"&&(p||p===0)?`${h.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase()}:${p}`:p?h:void 0);s=f.length?s.concat(f.filter(h=>!!h)):s}}return s},l)};Object.entries(e).forEach(([o,i])=>{if(i!=null){let a=o.match(/^on(.+)/);a?t.addEventListener(a[1].toLowerCase(),i):o==="p-bind"||o==="pBind"?hn(t,i):(i=o==="class"?[...new Set(n("class",i))].join(" ").trim():o==="style"?n("style",i).join(";").trim():i,(t.$attrs=t.$attrs||{})&&(t.$attrs[o]=i),t.setAttribute(o,i))}})}}function $a(t,e={},...n){{let o=document.createElement(t);return hn(o,e),o.append(...n),o}}function ke(t,e){return At(t)?t.matches(e)?t:t.querySelector(e):null}function xt(t,e){t&&document.activeElement!==t&&t.focus(e)}function Bt(t,e){if(At(t)){let n=t.getAttribute(e);return isNaN(n)?n==="true"||n==="false"?n==="true":n:+n}}function Wo(t){if(t){let e=t.offsetHeight,n=getComputedStyle(t);return e-=parseFloat(n.paddingTop)+parseFloat(n.paddingBottom)+parseFloat(n.borderTopWidth)+parseFloat(n.borderBottomWidth),e}return 0}function Oa(t){if(t){let e=t.getBoundingClientRect();return{top:e.top+(window.pageYOffset||document.documentElement.scrollTop||document.body.scrollTop||0),left:e.left+(window.pageXOffset||Uo(document.documentElement)||Uo(document.body)||0)}}return{top:"auto",left:"auto"}}function La(t,e){return t?t.offsetHeight:0}function Ko(t){if(t){let e=t.offsetWidth,n=getComputedStyle(t);return e-=parseFloat(n.paddingLeft)+parseFloat(n.paddingRight)+parseFloat(n.borderLeftWidth)+parseFloat(n.borderRightWidth),e}return 0}function Na(){return!!(typeof window<"u"&&window.document&&window.document.createElement)}function Ma(t,e="",n){At(t)&&n!==null&&n!==void 0&&t.setAttribute(e,n)}function Ue(t){return t==null||t===""||Array.isArray(t)&&t.length===0||!(t instanceof Date)&&typeof t=="object"&&Object.keys(t).length===0}function Kn(t,e,n=new WeakSet){if(t===e)return!0;if(!t||!e||typeof t!="object"||typeof e!="object"||n.has(t)||n.has(e))return!1;n.add(t).add(e);let o=Array.isArray(t),i=Array.isArray(e),a,c,l;if(o&&i){if(c=t.length,c!=e.length)return!1;for(a=c;a--!==0;)if(!Kn(t[a],e[a],n))return!1;return!0}if(o!=i)return!1;let s=t instanceof Date,u=e instanceof Date;if(s!=u)return!1;if(s&&u)return t.getTime()==e.getTime();let d=t instanceof RegExp,f=e instanceof RegExp;if(d!=f)return!1;if(d&&f)return t.toString()==e.toString();let h=Object.keys(t);if(c=h.length,c!==Object.keys(e).length)return!1;for(a=c;a--!==0;)if(!Object.prototype.hasOwnProperty.call(e,h[a]))return!1;for(a=c;a--!==0;)if(l=h[a],!Kn(t[l],e[l],n))return!1;return!0}function Da(t,e){return Kn(t,e)}function Gn(t){return typeof t=="function"&&"call"in t&&"apply"in t}function $(t){return!Ue(t)}function Go(t,e){return null}function ct(t,e,n){return n?Go()===Go():Da(t,e)}function We(t,e=!0){return t instanceof Object&&t.constructor===Object&&(e||Object.keys(t).length!==0)}function qo(t,e){let n;if($(t))try{n=t.findLast(e)}catch{n=[...t].reverse().find(e)}return n}function Z(t,...e){return Gn(t)?t(...e):t}function ue(t,e=!0){return typeof t=="string"&&(e||t!=="")}function xe(t){return ue(t)?t.replace(/(-|_)/g,"").toLowerCase():t}function qn(t,e="",n={}){let o=xe(e).split("."),i=o.shift();if(i){if(We(t)){let a=Object.keys(t).find(c=>xe(c)===i)||"";return qn(Z(t[a],n),o.join("."),n)}return}return Z(t,n)}function Yo(t,e=!0){return Array.isArray(t)&&(e||t.length!==0)}function Ra(t){return $(t)&&!isNaN(t)}function Va(t=""){return $(t)&&t.length===1&&!!t.match(/\S| /)}function tt(t,e){if(e){let n=e.test(t);return e.lastIndex=0,n}return!1}function $t(t){return t&&t.replace(/\/\*(?:(?!\*\/)[\s\S])*\*\/|[\r\n\t]+/g,"").replace(/ {2,}/g," ").replace(/ ([{:}]) /g,"$1").replace(/([;,]) /g,"$1").replace(/ !/g,"!").replace(/: /g,":").trim()}function ja(t){return ue(t,!1)?t[0].toUpperCase()+t.slice(1):t}function Xo(t){return ue(t)?t.replace(/(_)/g,"-").replace(/[A-Z]/g,(e,n)=>n===0?e:"-"+e.toLowerCase()).toLowerCase():t}function Zo(){let t=new Map;return{on(e,n){let o=t.get(e);return o?o.push(n):o=[n],t.set(e,o),this},off(e,n){let o=t.get(e);return o&&o.splice(o.indexOf(n)>>>0,1),this},emit(e,n){let o=t.get(e);o&&o.forEach(i=>{i(n)})},clear(){t.clear()}}}var gn={};function Ha(t="pui_id_"){return Object.hasOwn(gn,t)||(gn[t]=0),gn[t]++,`${t}${gn[t]}`}var Fa=Object.defineProperty,za=Object.defineProperties,Ua=Object.getOwnPropertyDescriptors,yn=Object.getOwnPropertySymbols,Jo=Object.prototype.hasOwnProperty,Qo=Object.prototype.propertyIsEnumerable,er=(t,e,n)=>e in t?Fa(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,Se=(t,e)=>{for(var n in e||(e={}))Jo.call(e,n)&&er(t,n,e[n]);if(yn)for(var n of yn(e))Qo.call(e,n)&&er(t,n,e[n]);return t},Yn=(t,e)=>za(t,Ua(e)),Le=(t,e)=>{var n={};for(var o in t)Jo.call(t,o)&&e.indexOf(o)<0&&(n[o]=t[o]);if(t!=null&&yn)for(var o of yn(t))e.indexOf(o)<0&&Qo.call(t,o)&&(n[o]=t[o]);return n},Wa=Zo(),ie=Wa,Ot=/{([^}]*)}/g,tr=/(\d+\s+[\+\-\*\/]\s+\d+)/g,nr=/var\([^)]+\)/g;function or(t){return ue(t)?t.replace(/[A-Z]/g,(e,n)=>n===0?e:"."+e.toLowerCase()).toLowerCase():t}function Ka(t){return We(t)&&t.hasOwnProperty("$value")&&t.hasOwnProperty("$type")?t.$value:t}function Ga(t){return t.replaceAll(/ /g,"").replace(/[^\w]/g,"-")}function Xn(t="",e=""){return Ga(`${ue(t,!1)&&ue(e,!1)?`${t}-`:t}${e}`)}function rr(t="",e=""){return`--${Xn(t,e)}`}function qa(t=""){let e=(t.match(/{/g)||[]).length,n=(t.match(/}/g)||[]).length;return(e+n)%2!==0}function ir(t,e="",n="",o=[],i){if(ue(t)){let a=t.trim();if(qa(a))return;if(tt(a,Ot)){let c=a.replaceAll(Ot,l=>{let s=l.replace(/{|}/g,"").split(".").filter(u=>!o.some(d=>tt(u,d)));return`var(${rr(n,Xo(s.join("-")))}${$(i)?`, ${i}`:""})`});return tt(c.replace(nr,"0"),tr)?`calc(${c})`:c}return a}else if(Ra(t))return t}function Ya(t,e,n){ue(e,!1)&&t.push(`${e}:${n};`)}function ut(t,e){return t?`${t}{${e}}`:""}function ar(t,e){if(t.indexOf("dt(")===-1)return t;function n(c,l){let s=[],u=0,d="",f=null,h=0;for(;u<=c.length;){let p=c[u];if((p==='"'||p==="'"||p==="`")&&c[u-1]!=="\\"&&(f=f===p?null:p),!f&&(p==="("&&h++,p===")"&&h--,(p===","||u===c.length)&&h===0)){let v=d.trim();v.startsWith("dt(")?s.push(ar(v,l)):s.push(o(v)),d="",u++;continue}p!==void 0&&(d+=p),u++}return s}function o(c){let l=c[0];if((l==='"'||l==="'"||l==="`")&&c[c.length-1]===l)return c.slice(1,-1);let s=Number(c);return isNaN(s)?c:s}let i=[],a=[];for(let c=0;c<t.length;c++)if(t[c]==="d"&&t.slice(c,c+3)==="dt(")a.push(c),c+=2;else if(t[c]===")"&&a.length>0){let l=a.pop();a.length===0&&i.push([l,c])}if(!i.length)return t;for(let c=i.length-1;c>=0;c--){let[l,s]=i[c],u=t.slice(l+3,s),d=n(u,e),f=e(...d);t=t.slice(0,l)+f+t.slice(s+1)}return t}var nt=(...t)=>Xa(H.getTheme(),...t),Xa=(t={},e,n,o)=>{if(e){let{variable:i,options:a}=H.defaults||{},{prefix:c,transform:l}=t?.options||a||{},s=tt(e,Ot)?e:`{${e}}`;return o==="value"||Ue(o)&&l==="strict"?H.getTokenValue(e):ir(s,void 0,c,[i.excludedKeyRegex],n)}return""};function vn(t,...e){if(t instanceof Array){let n=t.reduce((o,i,a)=>{var c;return o+i+((c=Z(e[a],{dt:nt}))!=null?c:"")},"");return ar(n,nt)}return Z(t,{dt:nt})}function Za(t,e={}){let n=H.defaults.variable,{prefix:o=n.prefix,selector:i=n.selector,excludedKeyRegex:a=n.excludedKeyRegex}=e,c=[],l=[],s=[{node:t,path:o}];for(;s.length;){let{node:d,path:f}=s.pop();for(let h in d){let p=d[h],v=Ka(p),w=tt(h,a)?Xn(f):Xn(f,Xo(h));if(We(v))s.push({node:v,path:w});else{let k=rr(w),y=ir(v,w,o,[a]);Ya(l,k,y);let T=w;o&&T.startsWith(o+"-")&&(T=T.slice(o.length+1)),c.push(T.replace(/-/g,"."))}}}let u=l.join("");return{value:l,tokens:c,declarations:u,css:ut(i,u)}}var _e={regex:{rules:{class:{pattern:/^\.([a-zA-Z][\w-]*)$/,resolve(t){return{type:"class",selector:t,matched:this.pattern.test(t.trim())}}},attr:{pattern:/^\[(.*)\]$/,resolve(t){return{type:"attr",selector:`:root${t}`,matched:this.pattern.test(t.trim())}}},media:{pattern:/^@media (.*)$/,resolve(t){return{type:"media",selector:t,matched:this.pattern.test(t.trim())}}},system:{pattern:/^system$/,resolve(t){return{type:"system",selector:"@media (prefers-color-scheme: dark)",matched:this.pattern.test(t.trim())}}},custom:{resolve(t){return{type:"custom",selector:t,matched:!0}}}},resolve(t){let e=Object.keys(this.rules).filter(n=>n!=="custom").map(n=>this.rules[n]);return[t].flat().map(n=>{var o;return(o=e.map(i=>i.resolve(n)).find(i=>i.matched))!=null?o:this.rules.custom.resolve(n)})}},_toVariables(t,e){return Za(t,{prefix:e?.prefix})},getCommon({name:t="",theme:e={},params:n,set:o,defaults:i}){var a,c,l,s,u,d,f;let{preset:h,options:p}=e,v,w,k,y,T,I,b;if($(h)&&p.transform!=="strict"){let{primitive:_,semantic:U,extend:X}=h,be=U||{},{colorScheme:te}=be,Ce=Le(be,["colorScheme"]),P=X||{},{colorScheme:j}=P,ne=Le(P,["colorScheme"]),ce=te||{},{dark:Ie}=ce,Xe=Le(ce,["dark"]),De=j||{},{dark:Re}=De,Ze=Le(De,["dark"]),we=$(_)?this._toVariables({primitive:_},p):{},V=$(Ce)?this._toVariables({semantic:Ce},p):{},$e=$(Xe)?this._toVariables({light:Xe},p):{},W=$(Ie)?this._toVariables({dark:Ie},p):{},Ve=$(ne)?this._toVariables({semantic:ne},p):{},F=$(Ze)?this._toVariables({light:Ze},p):{},Je=$(Re)?this._toVariables({dark:Re},p):{},[sn,Nn]=[(a=we.declarations)!=null?a:"",we.tokens],[ln,Mn]=[(c=V.declarations)!=null?c:"",V.tokens||[]],[Dn,Qe]=[(l=$e.declarations)!=null?l:"",$e.tokens||[]],[bt,je]=[(s=W.declarations)!=null?s:"",W.tokens||[]],[cn,un]=[(u=Ve.declarations)!=null?u:"",Ve.tokens||[]],[et,Ct]=[(d=F.declarations)!=null?d:"",F.tokens||[]],[wt,Rn]=[(f=Je.declarations)!=null?f:"",Je.tokens||[]];v=this.transformCSS(t,sn,"light","variable",p,o,i),w=Nn;let Vn=this.transformCSS(t,`${ln}${Dn}`,"light","variable",p,o,i),Oo=this.transformCSS(t,`${bt}`,"dark","variable",p,o,i);k=`${Vn}${Oo}`,y=[...new Set([...Mn,...Qe,...je])];let dn=this.transformCSS(t,`${cn}${et}color-scheme:light`,"light","variable",p,o,i),lt=this.transformCSS(t,`${wt}color-scheme:dark`,"dark","variable",p,o,i);T=`${dn}${lt}`,I=[...new Set([...un,...Ct,...Rn])],b=Z(h.css,{dt:nt})}return{primitive:{css:v,tokens:w},semantic:{css:k,tokens:y},global:{css:T,tokens:I},style:b}},getPreset({name:t="",preset:e={},options:n,params:o,set:i,defaults:a,selector:c}){var l,s,u;let d,f,h;if($(e)&&n.transform!=="strict"){let p=t.replace("-directive",""),v=e,{colorScheme:w,extend:k,css:y}=v,T=Le(v,["colorScheme","extend","css"]),I=k||{},{colorScheme:b}=I,_=Le(I,["colorScheme"]),U=w||{},{dark:X}=U,be=Le(U,["dark"]),te=b||{},{dark:Ce}=te,P=Le(te,["dark"]),j=$(T)?this._toVariables({[p]:Se(Se({},T),_)},n):{},ne=$(be)?this._toVariables({[p]:Se(Se({},be),P)},n):{},ce=$(X)?this._toVariables({[p]:Se(Se({},X),Ce)},n):{},[Ie,Xe]=[(l=j.declarations)!=null?l:"",j.tokens||[]],[De,Re]=[(s=ne.declarations)!=null?s:"",ne.tokens||[]],[Ze,we]=[(u=ce.declarations)!=null?u:"",ce.tokens||[]],V=this.transformCSS(p,`${Ie}${De}`,"light","variable",n,i,a,c),$e=this.transformCSS(p,Ze,"dark","variable",n,i,a,c);d=`${V}${$e}`,f=[...new Set([...Xe,...Re,...we])],h=Z(y,{dt:nt})}return{css:d,tokens:f,style:h}},getPresetC({name:t="",theme:e={},params:n,set:o,defaults:i}){var a;let{preset:c,options:l}=e,s=(a=c?.components)==null?void 0:a[t];return this.getPreset({name:t,preset:s,options:l,params:n,set:o,defaults:i})},getPresetD({name:t="",theme:e={},params:n,set:o,defaults:i}){var a,c;let l=t.replace("-directive",""),{preset:s,options:u}=e,d=((a=s?.components)==null?void 0:a[l])||((c=s?.directives)==null?void 0:c[l]);return this.getPreset({name:l,preset:d,options:u,params:n,set:o,defaults:i})},applyDarkColorScheme(t){return!(t.darkModeSelector==="none"||t.darkModeSelector===!1)},getColorSchemeOption(t,e){var n;return this.applyDarkColorScheme(t)?this.regex.resolve(t.darkModeSelector===!0?e.options.darkModeSelector:(n=t.darkModeSelector)!=null?n:e.options.darkModeSelector):[]},getLayerOrder(t,e={},n,o){let{cssLayer:i}=e;return i?`@layer ${Z(i.order||i.name||"primeui",n)}`:""},getCommonStyleSheet({name:t="",theme:e={},params:n,props:o={},set:i,defaults:a}){let c=this.getCommon({name:t,theme:e,params:n,set:i,defaults:a}),l=Object.entries(o).reduce((s,[u,d])=>s.push(`${u}="${d}"`)&&s,[]).join(" ");return Object.entries(c||{}).reduce((s,[u,d])=>{if(We(d)&&Object.hasOwn(d,"css")){let f=$t(d.css),h=`${u}-variables`;s.push(`<style type="text/css" data-primevue-style-id="${h}" ${l}>${f}</style>`)}return s},[]).join("")},getStyleSheet({name:t="",theme:e={},params:n,props:o={},set:i,defaults:a}){var c;let l={name:t,theme:e,params:n,set:i,defaults:a},s=(c=t.includes("-directive")?this.getPresetD(l):this.getPresetC(l))==null?void 0:c.css,u=Object.entries(o).reduce((d,[f,h])=>d.push(`${f}="${h}"`)&&d,[]).join(" ");return s?`<style type="text/css" data-primevue-style-id="${t}-variables" ${u}>${$t(s)}</style>`:""},createTokens(t={},e,n="",o="",i={}){let a=function(l,s={},u=[]){if(u.includes(this.path))return console.warn(`Circular reference detected at ${this.path}`),{colorScheme:l,path:this.path,paths:s,value:void 0};u.push(this.path),s.name=this.path,s.binding||(s.binding={});let d=this.value;if(typeof this.value=="string"&&Ot.test(this.value)){let f=this.value.trim().replace(Ot,h=>{var p;let v=h.slice(1,-1),w=this.tokens[v];if(!w)return console.warn(`Token not found for path: ${v}`),"__UNRESOLVED__";let k=w.computed(l,s,u);return Array.isArray(k)&&k.length===2?`light-dark(${k[0].value},${k[1].value})`:(p=k?.value)!=null?p:"__UNRESOLVED__"});d=tr.test(f.replace(nr,"0"))?`calc(${f})`:f}return Ue(s.binding)&&delete s.binding,u.pop(),{colorScheme:l,path:this.path,paths:s,value:d.includes("__UNRESOLVED__")?void 0:d}},c=(l,s,u)=>{Object.entries(l).forEach(([d,f])=>{let h=tt(d,e.variable.excludedKeyRegex)?s:s?`${s}.${or(d)}`:or(d),p=u?`${u}.${d}`:d;We(f)?c(f,h,p):(i[h]||(i[h]={paths:[],computed:(v,w={},k=[])=>{if(i[h].paths.length===1)return i[h].paths[0].computed(i[h].paths[0].scheme,w.binding,k);if(v&&v!=="none")for(let y=0;y<i[h].paths.length;y++){let T=i[h].paths[y];if(T.scheme===v)return T.computed(v,w.binding,k)}return i[h].paths.map(y=>y.computed(y.scheme,w[y.scheme],k))}}),i[h].paths.push({path:p,value:f,scheme:p.includes("colorScheme.light")?"light":p.includes("colorScheme.dark")?"dark":"none",computed:a,tokens:i}))})};return c(t,n,o),i},getTokenValue(t,e,n){var o;let i=(l=>l.split(".").filter(s=>!tt(s.toLowerCase(),n.variable.excludedKeyRegex)).join("."))(e),a=e.includes("colorScheme.light")?"light":e.includes("colorScheme.dark")?"dark":void 0,c=[(o=t[i])==null?void 0:o.computed(a)].flat().filter(l=>l);return c.length===1?c[0].value:c.reduce((l={},s)=>{let u=s,{colorScheme:d}=u,f=Le(u,["colorScheme"]);return l[d]=f,l},void 0)},getSelectorRule(t,e,n,o){return n==="class"||n==="attr"?ut($(e)?`${t}${e},${t} ${e}`:t,o):ut(t,ut(e??":root",o))},transformCSS(t,e,n,o,i={},a,c,l){if($(e)){let{cssLayer:s}=i;if(o!=="style"){let u=this.getColorSchemeOption(i,c);e=n==="dark"?u.reduce((d,{type:f,selector:h})=>($(h)&&(d+=h.includes("[CSS]")?h.replace("[CSS]",e):this.getSelectorRule(h,l,f,e)),d),""):ut(l??":root",e)}if(s){let u={name:"primeui"};We(s)&&(u.name=Z(s.name,{name:t,type:o})),$(u.name)&&(e=ut(`@layer ${u.name}`,e),a?.layerNames(u.name))}return e}return""}},H={defaults:{variable:{prefix:"p",selector:":root",excludedKeyRegex:/^(primitive|semantic|components|directives|variables|colorscheme|light|dark|common|root|states|extend|css)$/gi},options:{prefix:"p",darkModeSelector:"system",cssLayer:!1}},_theme:void 0,_layerNames:new Set,_loadedStyleNames:new Set,_loadingStyles:new Set,_tokens:{},update(t={}){let{theme:e}=t;e&&(this._theme=Yn(Se({},e),{options:Se(Se({},this.defaults.options),e.options)}),this._tokens=_e.createTokens(this.preset,this.defaults),this.clearLoadedStyleNames())},get theme(){return this._theme},get preset(){var t;return((t=this.theme)==null?void 0:t.preset)||{}},get options(){var t;return((t=this.theme)==null?void 0:t.options)||{}},get tokens(){return this._tokens},getTheme(){return this.theme},setTheme(t){this.update({theme:t}),ie.emit("theme:change",t)},getPreset(){return this.preset},setPreset(t){this._theme=Yn(Se({},this.theme),{preset:t}),this._tokens=_e.createTokens(t,this.defaults),this.clearLoadedStyleNames(),ie.emit("preset:change",t),ie.emit("theme:change",this.theme)},getOptions(){return this.options},setOptions(t){this._theme=Yn(Se({},this.theme),{options:t}),this.clearLoadedStyleNames(),ie.emit("options:change",t),ie.emit("theme:change",this.theme)},getLayerNames(){return[...this._layerNames]},setLayerNames(t){this._layerNames.add(t)},getLoadedStyleNames(){return this._loadedStyleNames},isStyleNameLoaded(t){return this._loadedStyleNames.has(t)},setLoadedStyleName(t){this._loadedStyleNames.add(t)},deleteLoadedStyleName(t){this._loadedStyleNames.delete(t)},clearLoadedStyleNames(){this._loadedStyleNames.clear()},getTokenValue(t){return _e.getTokenValue(this.tokens,t,this.defaults)},getCommon(t="",e){return _e.getCommon({name:t,theme:this.theme,params:e,defaults:this.defaults,set:{layerNames:this.setLayerNames.bind(this)}})},getComponent(t="",e){let n={name:t,theme:this.theme,params:e,defaults:this.defaults,set:{layerNames:this.setLayerNames.bind(this)}};return _e.getPresetC(n)},getDirective(t="",e){let n={name:t,theme:this.theme,params:e,defaults:this.defaults,set:{layerNames:this.setLayerNames.bind(this)}};return _e.getPresetD(n)},getCustomPreset(t="",e,n,o){let i={name:t,preset:e,options:this.options,selector:n,params:o,defaults:this.defaults,set:{layerNames:this.setLayerNames.bind(this)}};return _e.getPreset(i)},getLayerOrderCSS(t=""){return _e.getLayerOrder(t,this.options,{names:this.getLayerNames()},this.defaults)},transformCSS(t="",e,n="style",o){return _e.transformCSS(t,e,o,n,this.options,{layerNames:this.setLayerNames.bind(this)},this.defaults)},getCommonStyleSheet(t="",e,n={}){return _e.getCommonStyleSheet({name:t,theme:this.theme,params:e,props:n,defaults:this.defaults,set:{layerNames:this.setLayerNames.bind(this)}})},getStyleSheet(t,e,n={}){return _e.getStyleSheet({name:t,theme:this.theme,params:e,props:n,defaults:this.defaults,set:{layerNames:this.setLayerNames.bind(this)}})},onStyleMounted(t){this._loadingStyles.add(t)},onStyleUpdated(t){this._loadingStyles.add(t)},onStyleLoaded(t,{name:e}){this._loadingStyles.size&&(this._loadingStyles.delete(e),ie.emit(`theme:${e}:load`,t),!this._loadingStyles.size&&ie.emit("theme:load"))}},Ke={_loadedStyleNames:new Set,getLoadedStyleNames:function(){return this._loadedStyleNames},isStyleNameLoaded:function(e){return this._loadedStyleNames.has(e)},setLoadedStyleName:function(e){this._loadedStyleNames.add(e)},deleteLoadedStyleName:function(e){this._loadedStyleNames.delete(e)},clearLoadedStyleNames:function(){this._loadedStyleNames.clear()}},Ja=`
|
|
2
2
|
*,
|
|
3
3
|
::before,
|
|
4
4
|
::after {
|
|
@@ -121,8 +121,8 @@
|
|
|
121
121
|
background: transparent;
|
|
122
122
|
}
|
|
123
123
|
}
|
|
124
|
-
`;function
|
|
125
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function
|
|
124
|
+
`;function Lt(t){"@babel/helpers - typeof";return Lt=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Lt(t)}function sr(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);e&&(o=o.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),n.push.apply(n,o)}return n}function lr(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?sr(Object(n),!0).forEach(function(o){Qa(t,o,n[o])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):sr(Object(n)).forEach(function(o){Object.defineProperty(t,o,Object.getOwnPropertyDescriptor(n,o))})}return t}function Qa(t,e,n){return(e=es(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function es(t){var e=ts(t,"string");return Lt(e)=="symbol"?e:e+""}function ts(t,e){if(Lt(t)!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var o=n.call(t,e);if(Lt(o)!="object")return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function ns(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;r.getCurrentInstance()&&r.getCurrentInstance().components?r.onMounted(t):e?t():r.nextTick(t)}var os=0;function rs(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=r.ref(!1),o=r.ref(t),i=r.ref(null),a=Na()?window.document:void 0,c=e.document,l=c===void 0?a:c,s=e.immediate,u=s===void 0?!0:s,d=e.manual,f=d===void 0?!1:d,h=e.name,p=h===void 0?"style_".concat(++os):h,v=e.id,w=v===void 0?void 0:v,k=e.media,y=k===void 0?void 0:k,T=e.nonce,I=T===void 0?void 0:T,b=e.first,_=b===void 0?!1:b,U=e.onMounted,X=U===void 0?void 0:U,be=e.onUpdated,te=be===void 0?void 0:be,Ce=e.onLoad,P=Ce===void 0?void 0:Ce,j=e.props,ne=j===void 0?{}:j,ce=function(){},Ie=function(Re){var Ze=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(l){var we=lr(lr({},ne),Ze),V=we.name||p,$e=we.id||w,W=we.nonce||I;i.value=l.querySelector('style[data-primevue-style-id="'.concat(V,'"]'))||l.getElementById($e)||l.createElement("style"),i.value.isConnected||(o.value=Re||t,hn(i.value,{type:"text/css",id:$e,media:y,nonce:W}),_?l.head.prepend(i.value):l.head.appendChild(i.value),Ma(i.value,"data-primevue-style-id",V),hn(i.value,we),i.value.onload=function(Ve){return P?.(Ve,{name:V})},X?.(V)),!n.value&&(ce=r.watch(o,function(Ve){i.value.textContent=Ve,te?.(V)},{immediate:!0}),n.value=!0)}},Xe=function(){!l||!n.value||(ce(),Ba(i.value)&&l.head.removeChild(i.value),n.value=!1,i.value=null)};return u&&!f&&ns(Ie),{id:w,name:p,el:i,css:o,unload:Xe,load:Ie,isLoaded:r.readonly(n)}}function Nt(t){"@babel/helpers - typeof";return Nt=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Nt(t)}var cr,ur,dr,mr;function fr(t,e){return ls(t)||ss(t,e)||as(t,e)||is()}function is(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
125
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function as(t,e){if(t){if(typeof t=="string")return pr(t,e);var n={}.toString.call(t).slice(8,-1);return n==="Object"&&t.constructor&&(n=t.constructor.name),n==="Map"||n==="Set"?Array.from(t):n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?pr(t,e):void 0}}function pr(t,e){(e==null||e>t.length)&&(e=t.length);for(var n=0,o=Array(e);n<e;n++)o[n]=t[n];return o}function ss(t,e){var n=t==null?null:typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(n!=null){var o,i,a,c,l=[],s=!0,u=!1;try{if(a=(n=n.call(t)).next,e!==0)for(;!(s=(o=a.call(n)).done)&&(l.push(o.value),l.length!==e);s=!0);}catch(d){u=!0,i=d}finally{try{if(!s&&n.return!=null&&(c=n.return(),Object(c)!==c))return}finally{if(u)throw i}}return l}}function ls(t){if(Array.isArray(t))return t}function hr(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);e&&(o=o.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),n.push.apply(n,o)}return n}function Zn(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?hr(Object(n),!0).forEach(function(o){cs(t,o,n[o])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):hr(Object(n)).forEach(function(o){Object.defineProperty(t,o,Object.getOwnPropertyDescriptor(n,o))})}return t}function cs(t,e,n){return(e=us(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function us(t){var e=ds(t,"string");return Nt(e)=="symbol"?e:e+""}function ds(t,e){if(Nt(t)!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var o=n.call(t,e);if(Nt(o)!="object")return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function bn(t,e){return e||(e=t.slice(0)),Object.freeze(Object.defineProperties(t,{raw:{value:Object.freeze(e)}}))}var ms=function(e){var n=e.dt;return`
|
|
126
126
|
.p-hidden-accessible {
|
|
127
127
|
border: 0;
|
|
128
128
|
clip: rect(0 0 0 0);
|
|
@@ -141,8 +141,8 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
141
141
|
overflow: hidden;
|
|
142
142
|
padding-right: `.concat(n("scrollbar.width"),`;
|
|
143
143
|
}
|
|
144
|
-
`)},
|
|
145
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Sr(t,e){if(t){if(typeof t=="string")return _r(t,e);var n={}.toString.call(t).slice(8,-1);return n==="Object"&&t.constructor&&(n=t.constructor.name),n==="Map"||n==="Set"?Array.from(t):n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?_r(t,e):void 0}}function _r(t,e){(e==null||e>t.length)&&(e=t.length);for(var n=0,o=Array(e);n<e;n++)o[n]=t[n];return o}function Ts(t,e){var n=t==null?null:typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(n!=null){var o,i,a,c,l=[],s=!0,u=!1;try{if(a=(n=n.call(t)).next,e===0){if(Object(n)!==n)return;s=!1}else for(;!(s=(o=a.call(n)).done)&&(l.push(o.value),l.length!==e);s=!0);}catch(d){u=!0,i=d}finally{try{if(!s&&n.return!=null&&(c=n.return(),Object(c)!==c))return}finally{if(u)throw i}}return l}}function Er(t){if(Array.isArray(t))return t}function Tr(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);e&&(o=o.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),n.push.apply(n,o)}return n}function L(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?Tr(Object(n),!0).forEach(function(o){Mt(t,o,n[o])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Tr(Object(n)).forEach(function(o){Object.defineProperty(t,o,Object.getOwnPropertyDescriptor(n,o))})}return t}function Mt(t,e,n){return(e=Ps(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function Ps(t){var e=Is(t,"string");return Lt(e)=="symbol"?e:e+""}function Is(t,e){if(Lt(t)!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var o=n.call(t,e);if(Lt(o)!="object")return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}var bn={name:"BaseComponent",props:{pt:{type:Object,default:void 0},ptOptions:{type:Object,default:void 0},unstyled:{type:Boolean,default:void 0},dt:{type:Object,default:void 0}},inject:{$parentInstance:{default:void 0}},watch:{isUnstyled:{immediate:!0,handler:function(e){ie.off("theme:change",this._loadCoreStyles),e||(this._loadCoreStyles(),this._themeChangeListener(this._loadCoreStyles))}},dt:{immediate:!0,handler:function(e,n){var o=this;ie.off("theme:change",this._themeScopedListener),e?(this._loadScopedThemeStyles(e),this._themeScopedListener=function(){return o._loadScopedThemeStyles(e)},this._themeChangeListener(this._themeScopedListener)):this._unloadScopedThemeStyles()}}},scopedStyleEl:void 0,rootEl:void 0,uid:void 0,$attrSelector:void 0,beforeCreate:function(){var e,n,o,i,a,c,l,s,u,d,f,p=(e=this.pt)===null||e===void 0?void 0:e._usept,h=p?(n=this.pt)===null||n===void 0||(n=n.originalValue)===null||n===void 0?void 0:n[this.$.type.name]:void 0,C=p?(o=this.pt)===null||o===void 0||(o=o.value)===null||o===void 0?void 0:o[this.$.type.name]:this.pt;(i=C||h)===null||i===void 0||(i=i.hooks)===null||i===void 0||(a=i.onBeforeCreate)===null||a===void 0||a.call(i);var w=(c=this.$primevueConfig)===null||c===void 0||(c=c.pt)===null||c===void 0?void 0:c._usept,k=w?(l=this.$primevue)===null||l===void 0||(l=l.config)===null||l===void 0||(l=l.pt)===null||l===void 0?void 0:l.originalValue:void 0,y=w?(s=this.$primevue)===null||s===void 0||(s=s.config)===null||s===void 0||(s=s.pt)===null||s===void 0?void 0:s.value:(u=this.$primevue)===null||u===void 0||(u=u.config)===null||u===void 0?void 0:u.pt;(d=y||k)===null||d===void 0||(d=d[this.$.type.name])===null||d===void 0||(d=d.hooks)===null||d===void 0||(f=d.onBeforeCreate)===null||f===void 0||f.call(d),this.$attrSelector=Ss(),this.uid=this.$attrs.id||this.$attrSelector.replace("pc","pv_id_")},created:function(){this._hook("onCreated")},beforeMount:function(){var e;this.rootEl=Wa(pn(this.$el)?this.$el:(e=this.$el)===null||e===void 0?void 0:e.parentElement,"[".concat(this.$attrSelector,"]")),this.rootEl&&(this.rootEl.$pc=L({name:this.$.type.name,attrSelector:this.$attrSelector},this.$params)),this._loadStyles(),this._hook("onBeforeMount")},mounted:function(){this._hook("onMounted")},beforeUpdate:function(){this._hook("onBeforeUpdate")},updated:function(){this._hook("onUpdated")},beforeUnmount:function(){this._hook("onBeforeUnmount")},unmounted:function(){this._removeThemeListeners(),this._unloadScopedThemeStyles(),this._hook("onUnmounted")},methods:{_hook:function(e){if(!this.$options.hostName){var n=this._usePT(this._getPT(this.pt,this.$.type.name),this._getOptionValue,"hooks.".concat(e)),o=this._useDefaultPT(this._getOptionValue,"hooks.".concat(e));n?.(),o?.()}},_mergeProps:function(e){for(var n=arguments.length,o=new Array(n>1?n-1:0),i=1;i<n;i++)o[i-1]=arguments[i];return Xn(e)?e.apply(void 0,o):r.mergeProps.apply(void 0,o)},_load:function(){We.isStyleNameLoaded("base")||(q.loadCSS(this.$styleOptions),this._loadGlobalStyles(),We.setLoadedStyleName("base")),this._loadThemeStyles()},_loadStyles:function(){this._load(),this._themeChangeListener(this._load)},_loadCoreStyles:function(){var e,n;!We.isStyleNameLoaded((e=this.$style)===null||e===void 0?void 0:e.name)&&(n=this.$style)!==null&&n!==void 0&&n.name&&(wr.loadCSS(this.$styleOptions),this.$options.style&&this.$style.loadCSS(this.$styleOptions),We.setLoadedStyleName(this.$style.name))},_loadGlobalStyles:function(){var e=this._useGlobalPT(this._getOptionValue,"global.css",this.$params);U(e)&&q.load(e,L({name:"global"},this.$styleOptions))},_loadThemeStyles:function(){var e,n;if(!(this.isUnstyled||this.$theme==="none")){if(!j.isStyleNameLoaded("common")){var o,i,a=((o=this.$style)===null||o===void 0||(i=o.getCommonTheme)===null||i===void 0?void 0:i.call(o))||{},c=a.primitive,l=a.semantic,s=a.global,u=a.style;q.load(c?.css,L({name:"primitive-variables"},this.$styleOptions)),q.load(l?.css,L({name:"semantic-variables"},this.$styleOptions)),q.load(s?.css,L({name:"global-variables"},this.$styleOptions)),q.loadStyle(L({name:"global-style"},this.$styleOptions),u),j.setLoadedStyleName("common")}if(!j.isStyleNameLoaded((e=this.$style)===null||e===void 0?void 0:e.name)&&(n=this.$style)!==null&&n!==void 0&&n.name){var d,f,p,h,C=((d=this.$style)===null||d===void 0||(f=d.getComponentTheme)===null||f===void 0?void 0:f.call(d))||{},w=C.css,k=C.style;(p=this.$style)===null||p===void 0||p.load(w,L({name:"".concat(this.$style.name,"-variables")},this.$styleOptions)),(h=this.$style)===null||h===void 0||h.loadStyle(L({name:"".concat(this.$style.name,"-style")},this.$styleOptions),k),j.setLoadedStyleName(this.$style.name)}if(!j.isStyleNameLoaded("layer-order")){var y,T,P=(y=this.$style)===null||y===void 0||(T=y.getLayerOrderThemeCSS)===null||T===void 0?void 0:T.call(y);q.load(P,L({name:"layer-order",first:!0},this.$styleOptions)),j.setLoadedStyleName("layer-order")}}},_loadScopedThemeStyles:function(e){var n,o,i,a=((n=this.$style)===null||n===void 0||(o=n.getPresetTheme)===null||o===void 0?void 0:o.call(n,e,"[".concat(this.$attrSelector,"]")))||{},c=a.css,l=(i=this.$style)===null||i===void 0?void 0:i.load(c,L({name:"".concat(this.$attrSelector,"-").concat(this.$style.name)},this.$styleOptions));this.scopedStyleEl=l.el},_unloadScopedThemeStyles:function(){var e;(e=this.scopedStyleEl)===null||e===void 0||(e=e.value)===null||e===void 0||e.remove()},_themeChangeListener:function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:function(){};We.clearLoadedStyleNames(),ie.on("theme:change",e)},_removeThemeListeners:function(){ie.off("theme:change",this._loadCoreStyles),ie.off("theme:change",this._load),ie.off("theme:change",this._themeScopedListener)},_getHostInstance:function(e){return e?this.$options.hostName?e.$.type.name===this.$options.hostName?e:this._getHostInstance(e.$parentInstance):e.$parentInstance:void 0},_getPropValue:function(e){var n;return this[e]||((n=this._getHostInstance(this))===null||n===void 0?void 0:n[e])},_getOptionValue:function(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"",o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return Zn(e,n,o)},_getPTValue:function(){var e,n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"",i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!0,c=/./g.test(o)&&!!i[o.split(".")[0]],l=this._getPropValue("ptOptions")||((e=this.$primevueConfig)===null||e===void 0?void 0:e.ptOptions)||{},s=l.mergeSections,u=s===void 0?!0:s,d=l.mergeProps,f=d===void 0?!1:d,p=a?c?this._useGlobalPT(this._getPTClassValue,o,i):this._useDefaultPT(this._getPTClassValue,o,i):void 0,h=c?void 0:this._getPTSelf(n,this._getPTClassValue,o,L(L({},i),{},{global:p||{}})),C=this._getPTDatasets(o);return u||!u&&h?f?this._mergeProps(f,p,h,C):L(L(L({},p),h),C):L(L({},h),C)},_getPTSelf:function(){for(var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=arguments.length,o=new Array(n>1?n-1:0),i=1;i<n;i++)o[i-1]=arguments[i];return r.mergeProps(this._usePT.apply(this,[this._getPT(e,this.$name)].concat(o)),this._usePT.apply(this,[this.$_attrsPT].concat(o)))},_getPTDatasets:function(){var e,n,o=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"",i="data-pc-",a=o==="root"&&U((e=this.pt)===null||e===void 0?void 0:e["data-pc-section"]);return o!=="transition"&&L(L({},o==="root"&&L(L(Mt({},"".concat(i,"name"),xe(a?(n=this.pt)===null||n===void 0?void 0:n["data-pc-section"]:this.$.type.name)),a&&Mt({},"".concat(i,"extend"),xe(this.$.type.name))),{},Mt({},"".concat(this.$attrSelector),""))),{},Mt({},"".concat(i,"section"),xe(o)))},_getPTClassValue:function(){var e=this._getOptionValue.apply(this,arguments);return ue(e)||er(e)?{class:e}:e},_getPT:function(e){var n=this,o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"",i=arguments.length>2?arguments[2]:void 0,a=function(l){var s,u=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,d=i?i(l):l,f=xe(o),p=xe(n.$name);return(s=u?f!==p?d?.[f]:void 0:d?.[f])!==null&&s!==void 0?s:d};return e!=null&&e.hasOwnProperty("_usept")?{_usept:e._usept,originalValue:a(e.originalValue),value:a(e.value)}:a(e,!0)},_usePT:function(e,n,o,i){var a=function(w){return n(w,o,i)};if(e!=null&&e.hasOwnProperty("_usept")){var c,l=e._usept||((c=this.$primevueConfig)===null||c===void 0?void 0:c.ptOptions)||{},s=l.mergeSections,u=s===void 0?!0:s,d=l.mergeProps,f=d===void 0?!1:d,p=a(e.originalValue),h=a(e.value);return p===void 0&&h===void 0?void 0:ue(h)?h:ue(p)?p:u||!u&&h?f?this._mergeProps(f,p,h):L(L({},p),h):h}return a(e)},_useGlobalPT:function(e,n,o){return this._usePT(this.globalPT,e,n,o)},_useDefaultPT:function(e,n,o){return this._usePT(this.defaultPT,e,n,o)},ptm:function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"",n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return this._getPTValue(this.pt,e,L(L({},this.$params),n))},ptmi:function(){var e,n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"",o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},i=r.mergeProps(this.$_attrsWithoutPT,this.ptm(n,o));return i?.hasOwnProperty("id")&&((e=i.id)!==null&&e!==void 0||(i.id=this.$id)),i},ptmo:function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"",o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return this._getPTValue(e,n,L({instance:this},o),!1)},cx:function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"",n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return this.isUnstyled?void 0:this._getOptionValue(this.$style.classes,e,L(L({},this.$params),n))},sx:function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"",n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0,o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};if(n){var i=this._getOptionValue(this.$style.inlineStyles,e,L(L({},this.$params),o)),a=this._getOptionValue(wr.inlineStyles,e,L(L({},this.$params),o));return[a,i]}}},computed:{globalPT:function(){var e,n=this;return this._getPT((e=this.$primevueConfig)===null||e===void 0?void 0:e.pt,void 0,function(o){return pe(o,{instance:n})})},defaultPT:function(){var e,n=this;return this._getPT((e=this.$primevueConfig)===null||e===void 0?void 0:e.pt,void 0,function(o){return n._getOptionValue(o,n.$name,L({},n.$params))||pe(o,L({},n.$params))})},isUnstyled:function(){var e;return this.unstyled!==void 0?this.unstyled:(e=this.$primevueConfig)===null||e===void 0?void 0:e.unstyled},$id:function(){return this.$attrs.id||this.uid},$inProps:function(){var e,n=Object.keys(((e=this.$.vnode)===null||e===void 0?void 0:e.props)||{});return Object.fromEntries(Object.entries(this.$props).filter(function(o){var i=Nt(o,1),a=i[0];return n?.includes(a)}))},$theme:function(){var e;return(e=this.$primevueConfig)===null||e===void 0?void 0:e.theme},$style:function(){return L(L({classes:void 0,inlineStyles:void 0,load:function(){},loadCSS:function(){},loadStyle:function(){}},(this._getHostInstance(this)||{}).$style),this.$options.style)},$styleOptions:function(){var e;return{nonce:(e=this.$primevueConfig)===null||e===void 0||(e=e.csp)===null||e===void 0?void 0:e.nonce}},$primevueConfig:function(){var e;return(e=this.$primevue)===null||e===void 0?void 0:e.config},$name:function(){return this.$options.hostName||this.$.type.name},$params:function(){var e=this._getHostInstance(this)||this.$parent;return{instance:this,props:this.$props,state:this.$data,attrs:this.$attrs,parent:{instance:e,props:e?.$props,state:e?.$data,attrs:e?.$attrs}}},$_attrsPT:function(){return Object.entries(this.$attrs||{}).filter(function(e){var n=Nt(e,1),o=n[0];return o?.startsWith("pt:")}).reduce(function(e,n){var o=Nt(n,2),i=o[0],a=o[1],c=i.split(":"),l=_s(c),s=l.slice(1);return s?.reduce(function(u,d,f,p){return!u[d]&&(u[d]=f===p.length-1?a:{}),u[d]},e),e},{})},$_attrsWithoutPT:function(){return Object.entries(this.$attrs||{}).filter(function(e){var n=Nt(e,1),o=n[0];return!(o!=null&&o.startsWith("pt:"))}).reduce(function(e,n){var o=Nt(n,2),i=o[0],a=o[1];return e[i]=a,e},{})}}},As=`
|
|
144
|
+
`)},fs={},ps={},q={name:"base",css:ms,style:Ja,classes:fs,inlineStyles:ps,load:function(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:function(a){return a},i=o(vn(cr||(cr=bn(["",""])),e));return $(i)?rs($t(i),Zn({name:this.name},n)):{}},loadCSS:function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return this.load(this.css,e)},loadStyle:function(){var e=this,n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";return this.load(this.style,n,function(){var i=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return H.transformCSS(n.name||e.name,"".concat(i).concat(vn(ur||(ur=bn(["",""])),o)))})},getCommonTheme:function(e){return H.getCommon(this.name,e)},getComponentTheme:function(e){return H.getComponent(this.name,e)},getDirectiveTheme:function(e){return H.getDirective(this.name,e)},getPresetTheme:function(e,n,o){return H.getCustomPreset(this.name,e,n,o)},getLayerOrderThemeCSS:function(){return H.getLayerOrderCSS(this.name)},getStyleSheet:function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"",n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(this.css){var o=Z(this.css,{dt:nt})||"",i=$t(vn(dr||(dr=bn(["","",""])),o,e)),a=Object.entries(n).reduce(function(c,l){var s=fr(l,2),u=s[0],d=s[1];return c.push("".concat(u,'="').concat(d,'"'))&&c},[]).join(" ");return $(i)?'<style type="text/css" data-primevue-style-id="'.concat(this.name,'" ').concat(a,">").concat(i,"</style>"):""}return""},getCommonThemeStyleSheet:function(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return H.getCommonStyleSheet(this.name,e,n)},getThemeStyleSheet:function(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},o=[H.getStyleSheet(this.name,e,n)];if(this.style){var i=this.name==="base"?"global-style":"".concat(this.name,"-style"),a=vn(mr||(mr=bn(["",""])),Z(this.style,{dt:nt})),c=$t(H.transformCSS(i,a)),l=Object.entries(n).reduce(function(s,u){var d=fr(u,2),f=d[0],h=d[1];return s.push("".concat(f,'="').concat(h,'"'))&&s},[]).join(" ");$(c)&&o.push('<style type="text/css" data-primevue-style-id="'.concat(i,'" ').concat(l,">").concat(c,"</style>"))}return o.join("")},extend:function(e){return Zn(Zn({},this),{},{css:void 0,style:void 0},e)}};function hs(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"pc",e=r.useId();return"".concat(t).concat(e.replace("v-","").replaceAll("-","_"))}var gr=q.extend({name:"common"});function Mt(t){"@babel/helpers - typeof";return Mt=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Mt(t)}function gs(t){return Cr(t)||ys(t)||vr(t)||yr()}function ys(t){if(typeof Symbol<"u"&&t[Symbol.iterator]!=null||t["@@iterator"]!=null)return Array.from(t)}function Dt(t,e){return Cr(t)||vs(t,e)||vr(t,e)||yr()}function yr(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
145
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function vr(t,e){if(t){if(typeof t=="string")return br(t,e);var n={}.toString.call(t).slice(8,-1);return n==="Object"&&t.constructor&&(n=t.constructor.name),n==="Map"||n==="Set"?Array.from(t):n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?br(t,e):void 0}}function br(t,e){(e==null||e>t.length)&&(e=t.length);for(var n=0,o=Array(e);n<e;n++)o[n]=t[n];return o}function vs(t,e){var n=t==null?null:typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(n!=null){var o,i,a,c,l=[],s=!0,u=!1;try{if(a=(n=n.call(t)).next,e===0){if(Object(n)!==n)return;s=!1}else for(;!(s=(o=a.call(n)).done)&&(l.push(o.value),l.length!==e);s=!0);}catch(d){u=!0,i=d}finally{try{if(!s&&n.return!=null&&(c=n.return(),Object(c)!==c))return}finally{if(u)throw i}}return l}}function Cr(t){if(Array.isArray(t))return t}function wr(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);e&&(o=o.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),n.push.apply(n,o)}return n}function N(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?wr(Object(n),!0).forEach(function(o){Rt(t,o,n[o])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):wr(Object(n)).forEach(function(o){Object.defineProperty(t,o,Object.getOwnPropertyDescriptor(n,o))})}return t}function Rt(t,e,n){return(e=bs(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function bs(t){var e=Cs(t,"string");return Mt(e)=="symbol"?e:e+""}function Cs(t,e){if(Mt(t)!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var o=n.call(t,e);if(Mt(o)!="object")return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}var Cn={name:"BaseComponent",props:{pt:{type:Object,default:void 0},ptOptions:{type:Object,default:void 0},unstyled:{type:Boolean,default:void 0},dt:{type:Object,default:void 0}},inject:{$parentInstance:{default:void 0}},watch:{isUnstyled:{immediate:!0,handler:function(e){ie.off("theme:change",this._loadCoreStyles),e||(this._loadCoreStyles(),this._themeChangeListener(this._loadCoreStyles))}},dt:{immediate:!0,handler:function(e,n){var o=this;ie.off("theme:change",this._themeScopedListener),e?(this._loadScopedThemeStyles(e),this._themeScopedListener=function(){return o._loadScopedThemeStyles(e)},this._themeChangeListener(this._themeScopedListener)):this._unloadScopedThemeStyles()}}},scopedStyleEl:void 0,rootEl:void 0,uid:void 0,$attrSelector:void 0,beforeCreate:function(){var e,n,o,i,a,c,l,s,u,d,f,h=(e=this.pt)===null||e===void 0?void 0:e._usept,p=h?(n=this.pt)===null||n===void 0||(n=n.originalValue)===null||n===void 0?void 0:n[this.$.type.name]:void 0,v=h?(o=this.pt)===null||o===void 0||(o=o.value)===null||o===void 0?void 0:o[this.$.type.name]:this.pt;(i=v||p)===null||i===void 0||(i=i.hooks)===null||i===void 0||(a=i.onBeforeCreate)===null||a===void 0||a.call(i);var w=(c=this.$primevueConfig)===null||c===void 0||(c=c.pt)===null||c===void 0?void 0:c._usept,k=w?(l=this.$primevue)===null||l===void 0||(l=l.config)===null||l===void 0||(l=l.pt)===null||l===void 0?void 0:l.originalValue:void 0,y=w?(s=this.$primevue)===null||s===void 0||(s=s.config)===null||s===void 0||(s=s.pt)===null||s===void 0?void 0:s.value:(u=this.$primevue)===null||u===void 0||(u=u.config)===null||u===void 0?void 0:u.pt;(d=y||k)===null||d===void 0||(d=d[this.$.type.name])===null||d===void 0||(d=d.hooks)===null||d===void 0||(f=d.onBeforeCreate)===null||f===void 0||f.call(d),this.$attrSelector=hs(),this.uid=this.$attrs.id||this.$attrSelector.replace("pc","pv_id_")},created:function(){this._hook("onCreated")},beforeMount:function(){var e;this.rootEl=ke(At(this.$el)?this.$el:(e=this.$el)===null||e===void 0?void 0:e.parentElement,"[".concat(this.$attrSelector,"]")),this.rootEl&&(this.rootEl.$pc=N({name:this.$.type.name,attrSelector:this.$attrSelector},this.$params)),this._loadStyles(),this._hook("onBeforeMount")},mounted:function(){this._hook("onMounted")},beforeUpdate:function(){this._hook("onBeforeUpdate")},updated:function(){this._hook("onUpdated")},beforeUnmount:function(){this._hook("onBeforeUnmount")},unmounted:function(){this._removeThemeListeners(),this._unloadScopedThemeStyles(),this._hook("onUnmounted")},methods:{_hook:function(e){if(!this.$options.hostName){var n=this._usePT(this._getPT(this.pt,this.$.type.name),this._getOptionValue,"hooks.".concat(e)),o=this._useDefaultPT(this._getOptionValue,"hooks.".concat(e));n?.(),o?.()}},_mergeProps:function(e){for(var n=arguments.length,o=new Array(n>1?n-1:0),i=1;i<n;i++)o[i-1]=arguments[i];return Gn(e)?e.apply(void 0,o):r.mergeProps.apply(void 0,o)},_load:function(){Ke.isStyleNameLoaded("base")||(q.loadCSS(this.$styleOptions),this._loadGlobalStyles(),Ke.setLoadedStyleName("base")),this._loadThemeStyles()},_loadStyles:function(){this._load(),this._themeChangeListener(this._load)},_loadCoreStyles:function(){var e,n;!Ke.isStyleNameLoaded((e=this.$style)===null||e===void 0?void 0:e.name)&&(n=this.$style)!==null&&n!==void 0&&n.name&&(gr.loadCSS(this.$styleOptions),this.$options.style&&this.$style.loadCSS(this.$styleOptions),Ke.setLoadedStyleName(this.$style.name))},_loadGlobalStyles:function(){var e=this._useGlobalPT(this._getOptionValue,"global.css",this.$params);$(e)&&q.load(e,N({name:"global"},this.$styleOptions))},_loadThemeStyles:function(){var e,n;if(!(this.isUnstyled||this.$theme==="none")){if(!H.isStyleNameLoaded("common")){var o,i,a=((o=this.$style)===null||o===void 0||(i=o.getCommonTheme)===null||i===void 0?void 0:i.call(o))||{},c=a.primitive,l=a.semantic,s=a.global,u=a.style;q.load(c?.css,N({name:"primitive-variables"},this.$styleOptions)),q.load(l?.css,N({name:"semantic-variables"},this.$styleOptions)),q.load(s?.css,N({name:"global-variables"},this.$styleOptions)),q.loadStyle(N({name:"global-style"},this.$styleOptions),u),H.setLoadedStyleName("common")}if(!H.isStyleNameLoaded((e=this.$style)===null||e===void 0?void 0:e.name)&&(n=this.$style)!==null&&n!==void 0&&n.name){var d,f,h,p,v=((d=this.$style)===null||d===void 0||(f=d.getComponentTheme)===null||f===void 0?void 0:f.call(d))||{},w=v.css,k=v.style;(h=this.$style)===null||h===void 0||h.load(w,N({name:"".concat(this.$style.name,"-variables")},this.$styleOptions)),(p=this.$style)===null||p===void 0||p.loadStyle(N({name:"".concat(this.$style.name,"-style")},this.$styleOptions),k),H.setLoadedStyleName(this.$style.name)}if(!H.isStyleNameLoaded("layer-order")){var y,T,I=(y=this.$style)===null||y===void 0||(T=y.getLayerOrderThemeCSS)===null||T===void 0?void 0:T.call(y);q.load(I,N({name:"layer-order",first:!0},this.$styleOptions)),H.setLoadedStyleName("layer-order")}}},_loadScopedThemeStyles:function(e){var n,o,i,a=((n=this.$style)===null||n===void 0||(o=n.getPresetTheme)===null||o===void 0?void 0:o.call(n,e,"[".concat(this.$attrSelector,"]")))||{},c=a.css,l=(i=this.$style)===null||i===void 0?void 0:i.load(c,N({name:"".concat(this.$attrSelector,"-").concat(this.$style.name)},this.$styleOptions));this.scopedStyleEl=l.el},_unloadScopedThemeStyles:function(){var e;(e=this.scopedStyleEl)===null||e===void 0||(e=e.value)===null||e===void 0||e.remove()},_themeChangeListener:function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:function(){};Ke.clearLoadedStyleNames(),ie.on("theme:change",e)},_removeThemeListeners:function(){ie.off("theme:change",this._loadCoreStyles),ie.off("theme:change",this._load),ie.off("theme:change",this._themeScopedListener)},_getHostInstance:function(e){return e?this.$options.hostName?e.$.type.name===this.$options.hostName?e:this._getHostInstance(e.$parentInstance):e.$parentInstance:void 0},_getPropValue:function(e){var n;return this[e]||((n=this._getHostInstance(this))===null||n===void 0?void 0:n[e])},_getOptionValue:function(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"",o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return qn(e,n,o)},_getPTValue:function(){var e,n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"",i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!0,c=/./g.test(o)&&!!i[o.split(".")[0]],l=this._getPropValue("ptOptions")||((e=this.$primevueConfig)===null||e===void 0?void 0:e.ptOptions)||{},s=l.mergeSections,u=s===void 0?!0:s,d=l.mergeProps,f=d===void 0?!1:d,h=a?c?this._useGlobalPT(this._getPTClassValue,o,i):this._useDefaultPT(this._getPTClassValue,o,i):void 0,p=c?void 0:this._getPTSelf(n,this._getPTClassValue,o,N(N({},i),{},{global:h||{}})),v=this._getPTDatasets(o);return u||!u&&p?f?this._mergeProps(f,h,p,v):N(N(N({},h),p),v):N(N({},p),v)},_getPTSelf:function(){for(var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=arguments.length,o=new Array(n>1?n-1:0),i=1;i<n;i++)o[i-1]=arguments[i];return r.mergeProps(this._usePT.apply(this,[this._getPT(e,this.$name)].concat(o)),this._usePT.apply(this,[this.$_attrsPT].concat(o)))},_getPTDatasets:function(){var e,n,o=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"",i="data-pc-",a=o==="root"&&$((e=this.pt)===null||e===void 0?void 0:e["data-pc-section"]);return o!=="transition"&&N(N({},o==="root"&&N(N(Rt({},"".concat(i,"name"),xe(a?(n=this.pt)===null||n===void 0?void 0:n["data-pc-section"]:this.$.type.name)),a&&Rt({},"".concat(i,"extend"),xe(this.$.type.name))),{},Rt({},"".concat(this.$attrSelector),""))),{},Rt({},"".concat(i,"section"),xe(o)))},_getPTClassValue:function(){var e=this._getOptionValue.apply(this,arguments);return ue(e)||Yo(e)?{class:e}:e},_getPT:function(e){var n=this,o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"",i=arguments.length>2?arguments[2]:void 0,a=function(l){var s,u=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,d=i?i(l):l,f=xe(o),h=xe(n.$name);return(s=u?f!==h?d?.[f]:void 0:d?.[f])!==null&&s!==void 0?s:d};return e!=null&&e.hasOwnProperty("_usept")?{_usept:e._usept,originalValue:a(e.originalValue),value:a(e.value)}:a(e,!0)},_usePT:function(e,n,o,i){var a=function(w){return n(w,o,i)};if(e!=null&&e.hasOwnProperty("_usept")){var c,l=e._usept||((c=this.$primevueConfig)===null||c===void 0?void 0:c.ptOptions)||{},s=l.mergeSections,u=s===void 0?!0:s,d=l.mergeProps,f=d===void 0?!1:d,h=a(e.originalValue),p=a(e.value);return h===void 0&&p===void 0?void 0:ue(p)?p:ue(h)?h:u||!u&&p?f?this._mergeProps(f,h,p):N(N({},h),p):p}return a(e)},_useGlobalPT:function(e,n,o){return this._usePT(this.globalPT,e,n,o)},_useDefaultPT:function(e,n,o){return this._usePT(this.defaultPT,e,n,o)},ptm:function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"",n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return this._getPTValue(this.pt,e,N(N({},this.$params),n))},ptmi:function(){var e,n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"",o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},i=r.mergeProps(this.$_attrsWithoutPT,this.ptm(n,o));return i?.hasOwnProperty("id")&&((e=i.id)!==null&&e!==void 0||(i.id=this.$id)),i},ptmo:function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"",o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return this._getPTValue(e,n,N({instance:this},o),!1)},cx:function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"",n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return this.isUnstyled?void 0:this._getOptionValue(this.$style.classes,e,N(N({},this.$params),n))},sx:function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"",n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0,o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};if(n){var i=this._getOptionValue(this.$style.inlineStyles,e,N(N({},this.$params),o)),a=this._getOptionValue(gr.inlineStyles,e,N(N({},this.$params),o));return[a,i]}}},computed:{globalPT:function(){var e,n=this;return this._getPT((e=this.$primevueConfig)===null||e===void 0?void 0:e.pt,void 0,function(o){return Z(o,{instance:n})})},defaultPT:function(){var e,n=this;return this._getPT((e=this.$primevueConfig)===null||e===void 0?void 0:e.pt,void 0,function(o){return n._getOptionValue(o,n.$name,N({},n.$params))||Z(o,N({},n.$params))})},isUnstyled:function(){var e;return this.unstyled!==void 0?this.unstyled:(e=this.$primevueConfig)===null||e===void 0?void 0:e.unstyled},$id:function(){return this.$attrs.id||this.uid},$inProps:function(){var e,n=Object.keys(((e=this.$.vnode)===null||e===void 0?void 0:e.props)||{});return Object.fromEntries(Object.entries(this.$props).filter(function(o){var i=Dt(o,1),a=i[0];return n?.includes(a)}))},$theme:function(){var e;return(e=this.$primevueConfig)===null||e===void 0?void 0:e.theme},$style:function(){return N(N({classes:void 0,inlineStyles:void 0,load:function(){},loadCSS:function(){},loadStyle:function(){}},(this._getHostInstance(this)||{}).$style),this.$options.style)},$styleOptions:function(){var e;return{nonce:(e=this.$primevueConfig)===null||e===void 0||(e=e.csp)===null||e===void 0?void 0:e.nonce}},$primevueConfig:function(){var e;return(e=this.$primevue)===null||e===void 0?void 0:e.config},$name:function(){return this.$options.hostName||this.$.type.name},$params:function(){var e=this._getHostInstance(this)||this.$parent;return{instance:this,props:this.$props,state:this.$data,attrs:this.$attrs,parent:{instance:e,props:e?.$props,state:e?.$data,attrs:e?.$attrs}}},$_attrsPT:function(){return Object.entries(this.$attrs||{}).filter(function(e){var n=Dt(e,1),o=n[0];return o?.startsWith("pt:")}).reduce(function(e,n){var o=Dt(n,2),i=o[0],a=o[1],c=i.split(":"),l=gs(c),s=l.slice(1);return s?.reduce(function(u,d,f,h){return!u[d]&&(u[d]=f===h.length-1?a:{}),u[d]},e),e},{})},$_attrsWithoutPT:function(){return Object.entries(this.$attrs||{}).filter(function(e){var n=Dt(e,1),o=n[0];return!(o!=null&&o.startsWith("pt:"))}).reduce(function(e,n){var o=Dt(n,2),i=o[0],a=o[1];return e[i]=a,e},{})}}},ws=`
|
|
146
146
|
.p-icon {
|
|
147
147
|
display: inline-block;
|
|
148
148
|
vertical-align: baseline;
|
|
@@ -174,7 +174,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
174
174
|
transform: rotate(359deg);
|
|
175
175
|
}
|
|
176
176
|
}
|
|
177
|
-
`,
|
|
177
|
+
`,ks=q.extend({name:"baseicon",css:ws});function Vt(t){"@babel/helpers - typeof";return Vt=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Vt(t)}function kr(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);e&&(o=o.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),n.push.apply(n,o)}return n}function Sr(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?kr(Object(n),!0).forEach(function(o){Ss(t,o,n[o])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):kr(Object(n)).forEach(function(o){Object.defineProperty(t,o,Object.getOwnPropertyDescriptor(n,o))})}return t}function Ss(t,e,n){return(e=_s(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function _s(t){var e=Es(t,"string");return Vt(e)=="symbol"?e:e+""}function Es(t,e){if(Vt(t)!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var o=n.call(t,e);if(Vt(o)!="object")return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}var _r={name:"BaseIcon",extends:Cn,props:{label:{type:String,default:void 0},spin:{type:Boolean,default:!1}},style:ks,provide:function(){return{$pcIcon:this,$parentInstance:this}},methods:{pti:function(){var e=Ue(this.label);return Sr(Sr({},!this.isUnstyled&&{class:["p-icon",{"p-icon-spin":this.spin}]}),{},{role:e?void 0:"img","aria-label":e?void 0:this.label,"aria-hidden":e})}}},Jn={name:"ChevronDownIcon",extends:_r};function Ts(t,e,n,o,i,a){return r.openBlock(),r.createElementBlock("svg",r.mergeProps({width:"14",height:"14",viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg"},t.pti()),e[0]||(e[0]=[r.createElementVNode("path",{d:"M7.01744 10.398C6.91269 10.3985 6.8089 10.378 6.71215 10.3379C6.61541 10.2977 6.52766 10.2386 6.45405 10.1641L1.13907 4.84913C1.03306 4.69404 0.985221 4.5065 1.00399 4.31958C1.02276 4.13266 1.10693 3.95838 1.24166 3.82747C1.37639 3.69655 1.55301 3.61742 1.74039 3.60402C1.92777 3.59062 2.11386 3.64382 2.26584 3.75424L7.01744 8.47394L11.769 3.75424C11.9189 3.65709 12.097 3.61306 12.2748 3.62921C12.4527 3.64535 12.6199 3.72073 12.7498 3.84328C12.8797 3.96582 12.9647 4.12842 12.9912 4.30502C13.0177 4.48162 12.9841 4.662 12.8958 4.81724L7.58083 10.1322C7.50996 10.2125 7.42344 10.2775 7.32656 10.3232C7.22968 10.3689 7.12449 10.3944 7.01744 10.398Z",fill:"currentColor"},null,-1)]),16)}Jn.render=Ts;var Qn={name:"ChevronRightIcon",extends:_r};function Is(t,e,n,o,i,a){return r.openBlock(),r.createElementBlock("svg",r.mergeProps({width:"14",height:"14",viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg"},t.pti()),e[0]||(e[0]=[r.createElementVNode("path",{d:"M4.38708 13C4.28408 13.0005 4.18203 12.9804 4.08691 12.9409C3.99178 12.9014 3.9055 12.8433 3.83313 12.7701C3.68634 12.6231 3.60388 12.4238 3.60388 12.2161C3.60388 12.0084 3.68634 11.8091 3.83313 11.6622L8.50507 6.99022L3.83313 2.31827C3.69467 2.16968 3.61928 1.97313 3.62287 1.77005C3.62645 1.56698 3.70872 1.37322 3.85234 1.22959C3.99596 1.08597 4.18972 1.00371 4.3928 1.00012C4.59588 0.996539 4.79242 1.07192 4.94102 1.21039L10.1669 6.43628C10.3137 6.58325 10.3962 6.78249 10.3962 6.99022C10.3962 7.19795 10.3137 7.39718 10.1669 7.54416L4.94102 12.7701C4.86865 12.8433 4.78237 12.9014 4.68724 12.9409C4.59212 12.9804 4.49007 13.0005 4.38708 13Z",fill:"currentColor"},null,-1)]),16)}Qn.render=Is;var Ps=`
|
|
178
178
|
.p-panelmenu {
|
|
179
179
|
display: flex;
|
|
180
180
|
flex-direction: column;
|
|
@@ -333,8 +333,8 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
333
333
|
.p-panelmenu-item:not(.p-disabled) > .p-panelmenu-item-content:hover .p-panelmenu-submenu-icon {
|
|
334
334
|
color: dt('panelmenu.submenu.icon.focus.color');
|
|
335
335
|
}
|
|
336
|
-
`,
|
|
337
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function js(t,e){if(t){if(typeof t=="string")return $r(t,e);var n={}.toString.call(t).slice(8,-1);return n==="Object"&&t.constructor&&(n=t.constructor.name),n==="Map"||n==="Set"?Array.from(t):n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?$r(t,e):void 0}}function $r(t,e){(e==null||e>t.length)&&(e=t.length);for(var n=0,o=Array(e);n<e;n++)o[n]=t[n];return o}function Hs(t,e){var n=t==null?null:typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(n!=null){var o,i,a,c,l=[],s=!0,u=!1;try{if(a=(n=n.call(t)).next,e!==0)for(;!(s=(o=a.call(n)).done)&&(l.push(o.value),l.length!==e);s=!0);}catch(d){u=!0,i=d}finally{try{if(!s&&n.return!=null&&(c=n.return(),Object(c)!==c))return}finally{if(u)throw i}}return l}}function Fs(t){if(Array.isArray(t))return t}function Br(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);e&&(o=o.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),n.push.apply(n,o)}return n}function M(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?Br(Object(n),!0).forEach(function(o){ro(t,o,n[o])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Br(Object(n)).forEach(function(o){Object.defineProperty(t,o,Object.getOwnPropertyDescriptor(n,o))})}return t}function ro(t,e,n){return(e=Us(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function Us(t){var e=zs(t,"string");return Rt(e)=="symbol"?e:e+""}function zs(t,e){if(Rt(t)!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var o=n.call(t,e);if(Rt(o)!="object")return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}var $={_getMeta:function(){return[Ke(arguments.length<=0?void 0:arguments[0])||arguments.length<=0?void 0:arguments[0],pe(Ke(arguments.length<=0?void 0:arguments[0])?arguments.length<=0?void 0:arguments[0]:arguments.length<=1?void 0:arguments[1])]},_getConfig:function(e,n){var o,i,a;return(o=(e==null||(i=e.instance)===null||i===void 0?void 0:i.$primevue)||(n==null||(a=n.ctx)===null||a===void 0||(a=a.appContext)===null||a===void 0||(a=a.config)===null||a===void 0||(a=a.globalProperties)===null||a===void 0?void 0:a.$primevue))===null||o===void 0?void 0:o.config},_getOptionValue:Zn,_getPTValue:function(){var e,n,o=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"",c=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},l=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!0,s=function(){var T=$._getOptionValue.apply($,arguments);return ue(T)||er(T)?{class:T}:T},u=((e=o.binding)===null||e===void 0||(e=e.value)===null||e===void 0?void 0:e.ptOptions)||((n=o.$primevueConfig)===null||n===void 0?void 0:n.ptOptions)||{},d=u.mergeSections,f=d===void 0?!0:d,p=u.mergeProps,h=p===void 0?!1:p,C=l?$._useDefaultPT(o,o.defaultPT(),s,a,c):void 0,w=$._usePT(o,$._getPT(i,o.$name),s,a,M(M({},c),{},{global:C||{}})),k=$._getPTDatasets(o,a);return f||!f&&w?h?$._mergeProps(o,h,C,w,k):M(M(M({},C),w),k):M(M({},w),k)},_getPTDatasets:function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"",o="data-pc-";return M(M({},n==="root"&&ro({},"".concat(o,"name"),xe(e.$name))),{},ro({},"".concat(o,"section"),xe(n)))},_getPT:function(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"",o=arguments.length>2?arguments[2]:void 0,i=function(c){var l,s=o?o(c):c,u=xe(n);return(l=s?.[u])!==null&&l!==void 0?l:s};return e&&Object.hasOwn(e,"_usept")?{_usept:e._usept,originalValue:i(e.originalValue),value:i(e.value)}:i(e)},_usePT:function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=arguments.length>1?arguments[1]:void 0,o=arguments.length>2?arguments[2]:void 0,i=arguments.length>3?arguments[3]:void 0,a=arguments.length>4?arguments[4]:void 0,c=function(k){return o(k,i,a)};if(n&&Object.hasOwn(n,"_usept")){var l,s=n._usept||((l=e.$primevueConfig)===null||l===void 0?void 0:l.ptOptions)||{},u=s.mergeSections,d=u===void 0?!0:u,f=s.mergeProps,p=f===void 0?!1:f,h=c(n.originalValue),C=c(n.value);return h===void 0&&C===void 0?void 0:ue(C)?C:ue(h)?h:d||!d&&C?p?$._mergeProps(e,p,h,C):M(M({},h),C):C}return c(n)},_useDefaultPT:function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},o=arguments.length>2?arguments[2]:void 0,i=arguments.length>3?arguments[3]:void 0,a=arguments.length>4?arguments[4]:void 0;return $._usePT(e,n,o,i,a)},_loadStyles:function(){var e,n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},o=arguments.length>1?arguments[1]:void 0,i=arguments.length>2?arguments[2]:void 0,a=$._getConfig(o,i),c={nonce:a==null||(e=a.csp)===null||e===void 0?void 0:e.nonce};$._loadCoreStyles(n,c),$._loadThemeStyles(n,c),$._loadScopedThemeStyles(n,c),$._removeThemeListeners(n),n.$loadStyles=function(){return $._loadThemeStyles(n,c)},$._themeChangeListener(n.$loadStyles)},_loadCoreStyles:function(){var e,n,o=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},i=arguments.length>1?arguments[1]:void 0;if(!We.isStyleNameLoaded((e=o.$style)===null||e===void 0?void 0:e.name)&&(n=o.$style)!==null&&n!==void 0&&n.name){var a;q.loadCSS(i),(a=o.$style)===null||a===void 0||a.loadCSS(i),We.setLoadedStyleName(o.$style.name)}},_loadThemeStyles:function(){var e,n,o,i=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},a=arguments.length>1?arguments[1]:void 0;if(!(i!=null&&i.isUnstyled()||(i==null||(e=i.theme)===null||e===void 0?void 0:e.call(i))==="none")){if(!j.isStyleNameLoaded("common")){var c,l,s=((c=i.$style)===null||c===void 0||(l=c.getCommonTheme)===null||l===void 0?void 0:l.call(c))||{},u=s.primitive,d=s.semantic,f=s.global,p=s.style;q.load(u?.css,M({name:"primitive-variables"},a)),q.load(d?.css,M({name:"semantic-variables"},a)),q.load(f?.css,M({name:"global-variables"},a)),q.loadStyle(M({name:"global-style"},a),p),j.setLoadedStyleName("common")}if(!j.isStyleNameLoaded((n=i.$style)===null||n===void 0?void 0:n.name)&&(o=i.$style)!==null&&o!==void 0&&o.name){var h,C,w,k,y=((h=i.$style)===null||h===void 0||(C=h.getDirectiveTheme)===null||C===void 0?void 0:C.call(h))||{},T=y.css,P=y.style;(w=i.$style)===null||w===void 0||w.load(T,M({name:"".concat(i.$style.name,"-variables")},a)),(k=i.$style)===null||k===void 0||k.loadStyle(M({name:"".concat(i.$style.name,"-style")},a),P),j.setLoadedStyleName(i.$style.name)}if(!j.isStyleNameLoaded("layer-order")){var v,_,z=(v=i.$style)===null||v===void 0||(_=v.getLayerOrderThemeCSS)===null||_===void 0?void 0:_.call(v);q.load(z,M({name:"layer-order",first:!0},a)),j.setLoadedStyleName("layer-order")}}},_loadScopedThemeStyles:function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=arguments.length>1?arguments[1]:void 0,o=e.preset();if(o&&e.$attrSelector){var i,a,c,l=((i=e.$style)===null||i===void 0||(a=i.getPresetTheme)===null||a===void 0?void 0:a.call(i,o,"[".concat(e.$attrSelector,"]")))||{},s=l.css,u=(c=e.$style)===null||c===void 0?void 0:c.load(s,M({name:"".concat(e.$attrSelector,"-").concat(e.$style.name)},n));e.scopedStyleEl=u.el}},_themeChangeListener:function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:function(){};We.clearLoadedStyleNames(),ie.on("theme:change",e)},_removeThemeListeners:function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};ie.off("theme:change",e.$loadStyles),e.$loadStyles=void 0},_hook:function(e,n,o,i,a,c){var l,s,u="on".concat(Ua(n)),d=$._getConfig(i,a),f=o?.$instance,p=$._usePT(f,$._getPT(i==null||(l=i.value)===null||l===void 0?void 0:l.pt,e),$._getOptionValue,"hooks.".concat(u)),h=$._useDefaultPT(f,d==null||(s=d.pt)===null||s===void 0||(s=s.directives)===null||s===void 0?void 0:s[e],$._getOptionValue,"hooks.".concat(u)),C={el:o,binding:i,vnode:a,prevVnode:c};p?.(f,C),h?.(f,C)},_mergeProps:function(){for(var e=arguments.length>1?arguments[1]:void 0,n=arguments.length,o=new Array(n>2?n-2:0),i=2;i<n;i++)o[i-2]=arguments[i];return Xn(e)?e.apply(void 0,o):r.mergeProps.apply(void 0,o)},_extend:function(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},o=function(l,s,u,d,f){var p,h,C,w;s._$instances=s._$instances||{};var k=$._getConfig(u,d),y=s._$instances[e]||{},T=fn(y)?M(M({},n),n?.methods):{};s._$instances[e]=M(M({},y),{},{$name:e,$host:s,$binding:u,$modifiers:u?.modifiers,$value:u?.value,$el:y.$el||s||void 0,$style:M({classes:void 0,inlineStyles:void 0,load:function(){},loadCSS:function(){},loadStyle:function(){}},n?.style),$primevueConfig:k,$attrSelector:(p=s.$pd)===null||p===void 0||(p=p[e])===null||p===void 0?void 0:p.attrSelector,defaultPT:function(){return $._getPT(k?.pt,void 0,function(v){var _;return v==null||(_=v.directives)===null||_===void 0?void 0:_[e]})},isUnstyled:function(){var v,_;return((v=s._$instances[e])===null||v===void 0||(v=v.$binding)===null||v===void 0||(v=v.value)===null||v===void 0?void 0:v.unstyled)!==void 0?(_=s._$instances[e])===null||_===void 0||(_=_.$binding)===null||_===void 0||(_=_.value)===null||_===void 0?void 0:_.unstyled:k?.unstyled},theme:function(){var v;return(v=s._$instances[e])===null||v===void 0||(v=v.$primevueConfig)===null||v===void 0?void 0:v.theme},preset:function(){var v;return(v=s._$instances[e])===null||v===void 0||(v=v.$binding)===null||v===void 0||(v=v.value)===null||v===void 0?void 0:v.dt},ptm:function(){var v,_=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"",z=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return $._getPTValue(s._$instances[e],(v=s._$instances[e])===null||v===void 0||(v=v.$binding)===null||v===void 0||(v=v.value)===null||v===void 0?void 0:v.pt,_,M({},z))},ptmo:function(){var v=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},_=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"",z=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return $._getPTValue(s._$instances[e],v,_,z,!1)},cx:function(){var v,_,z=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"",X=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return(v=s._$instances[e])!==null&&v!==void 0&&v.isUnstyled()?void 0:$._getOptionValue((_=s._$instances[e])===null||_===void 0||(_=_.$style)===null||_===void 0?void 0:_.classes,z,M({},X))},sx:function(){var v,_=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"",z=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0,X=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return z?$._getOptionValue((v=s._$instances[e])===null||v===void 0||(v=v.$style)===null||v===void 0?void 0:v.inlineStyles,_,M({},X)):void 0}},T),s.$instance=s._$instances[e],(h=(C=s.$instance)[l])===null||h===void 0||h.call(C,s,u,d,f),s["$".concat(e)]=s.$instance,$._hook(e,l,s,u,d,f),s.$pd||(s.$pd={}),s.$pd[e]=M(M({},(w=s.$pd)===null||w===void 0?void 0:w[e]),{},{name:e,instance:s._$instances[e]})},i=function(l){var s,u,d,f=l._$instances[e],p=f?.watch,h=function(k){var y,T=k.newValue,P=k.oldValue;return p==null||(y=p.config)===null||y===void 0?void 0:y.call(f,T,P)},C=function(k){var y,T=k.newValue,P=k.oldValue;return p==null||(y=p["config.ripple"])===null||y===void 0?void 0:y.call(f,T,P)};f.$watchersCallback={config:h,"config.ripple":C},p==null||(s=p.config)===null||s===void 0||s.call(f,f?.$primevueConfig),Cn.on("config:change",h),p==null||(u=p["config.ripple"])===null||u===void 0||u.call(f,f==null||(d=f.$primevueConfig)===null||d===void 0?void 0:d.ripple),Cn.on("config:ripple:change",C)},a=function(l){var s=l._$instances[e].$watchersCallback;s&&(Cn.off("config:change",s.config),Cn.off("config:ripple:change",s["config.ripple"]),l._$instances[e].$watchersCallback=void 0)};return{created:function(l,s,u,d){l.$pd||(l.$pd={}),l.$pd[e]={name:e,attrSelector:Ya("pd")},o("created",l,s,u,d)},beforeMount:function(l,s,u,d){var f;$._loadStyles((f=l.$pd[e])===null||f===void 0?void 0:f.instance,s,u),o("beforeMount",l,s,u,d),i(l)},mounted:function(l,s,u,d){var f;$._loadStyles((f=l.$pd[e])===null||f===void 0?void 0:f.instance,s,u),o("mounted",l,s,u,d)},beforeUpdate:function(l,s,u,d){o("beforeUpdate",l,s,u,d)},updated:function(l,s,u,d){var f;$._loadStyles((f=l.$pd[e])===null||f===void 0?void 0:f.instance,s,u),o("updated",l,s,u,d)},beforeUnmount:function(l,s,u,d){var f;a(l),$._removeThemeListeners((f=l.$pd[e])===null||f===void 0?void 0:f.instance),o("beforeUnmount",l,s,u,d)},unmounted:function(l,s,u,d){var f;(f=l.$pd[e])===null||f===void 0||(f=f.instance)===null||f===void 0||(f=f.scopedStyleEl)===null||f===void 0||(f=f.value)===null||f===void 0||f.remove(),o("unmounted",l,s,u,d)}}},extend:function(){var e=$._getMeta.apply($,arguments),n=xr(e,2),o=n[0],i=n[1];return M({extend:function(){var c=$._getMeta.apply($,arguments),l=xr(c,2),s=l[0],u=l[1];return $.extend(s,M(M(M({},i),i?.methods),u))}},$._extend(o,i))}},Ks=`
|
|
336
|
+
`,As={root:"p-panelmenu p-component",panel:"p-panelmenu-panel",header:function(e){var n=e.instance,o=e.item;return["p-panelmenu-header",{"p-panelmenu-header-active":n.isItemActive(o)&&!!o.items,"p-disabled":n.isItemDisabled(o)}]},headerContent:"p-panelmenu-header-content",headerLink:"p-panelmenu-header-link",headerIcon:"p-panelmenu-header-icon",headerLabel:"p-panelmenu-header-label",contentContainer:"p-panelmenu-content-container",content:"p-panelmenu-content",rootList:"p-panelmenu-root-list",item:function(e){var n=e.instance,o=e.processedItem;return["p-panelmenu-item",{"p-focus":n.isItemFocused(o),"p-disabled":n.isItemDisabled(o)}]},itemContent:"p-panelmenu-item-content",itemLink:"p-panelmenu-item-link",itemIcon:"p-panelmenu-item-icon",itemLabel:"p-panelmenu-item-label",submenuIcon:"p-panelmenu-submenu-icon",submenu:"p-panelmenu-submenu",separator:"p-menuitem-separator"},xs=q.extend({name:"panelmenu",style:Ps,classes:As}),wn=Zo();function jt(t){"@babel/helpers - typeof";return jt=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},jt(t)}function Er(t,e){return Ls(t)||Os(t,e)||$s(t,e)||Bs()}function Bs(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
337
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function $s(t,e){if(t){if(typeof t=="string")return Tr(t,e);var n={}.toString.call(t).slice(8,-1);return n==="Object"&&t.constructor&&(n=t.constructor.name),n==="Map"||n==="Set"?Array.from(t):n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Tr(t,e):void 0}}function Tr(t,e){(e==null||e>t.length)&&(e=t.length);for(var n=0,o=Array(e);n<e;n++)o[n]=t[n];return o}function Os(t,e){var n=t==null?null:typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(n!=null){var o,i,a,c,l=[],s=!0,u=!1;try{if(a=(n=n.call(t)).next,e!==0)for(;!(s=(o=a.call(n)).done)&&(l.push(o.value),l.length!==e);s=!0);}catch(d){u=!0,i=d}finally{try{if(!s&&n.return!=null&&(c=n.return(),Object(c)!==c))return}finally{if(u)throw i}}return l}}function Ls(t){if(Array.isArray(t))return t}function Ir(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);e&&(o=o.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),n.push.apply(n,o)}return n}function D(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?Ir(Object(n),!0).forEach(function(o){eo(t,o,n[o])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Ir(Object(n)).forEach(function(o){Object.defineProperty(t,o,Object.getOwnPropertyDescriptor(n,o))})}return t}function eo(t,e,n){return(e=Ns(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function Ns(t){var e=Ms(t,"string");return jt(e)=="symbol"?e:e+""}function Ms(t,e){if(jt(t)!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var o=n.call(t,e);if(jt(o)!="object")return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}var B={_getMeta:function(){return[We(arguments.length<=0?void 0:arguments[0])||arguments.length<=0?void 0:arguments[0],Z(We(arguments.length<=0?void 0:arguments[0])?arguments.length<=0?void 0:arguments[0]:arguments.length<=1?void 0:arguments[1])]},_getConfig:function(e,n){var o,i,a;return(o=(e==null||(i=e.instance)===null||i===void 0?void 0:i.$primevue)||(n==null||(a=n.ctx)===null||a===void 0||(a=a.appContext)===null||a===void 0||(a=a.config)===null||a===void 0||(a=a.globalProperties)===null||a===void 0?void 0:a.$primevue))===null||o===void 0?void 0:o.config},_getOptionValue:qn,_getPTValue:function(){var e,n,o=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"",c=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},l=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!0,s=function(){var T=B._getOptionValue.apply(B,arguments);return ue(T)||Yo(T)?{class:T}:T},u=((e=o.binding)===null||e===void 0||(e=e.value)===null||e===void 0?void 0:e.ptOptions)||((n=o.$primevueConfig)===null||n===void 0?void 0:n.ptOptions)||{},d=u.mergeSections,f=d===void 0?!0:d,h=u.mergeProps,p=h===void 0?!1:h,v=l?B._useDefaultPT(o,o.defaultPT(),s,a,c):void 0,w=B._usePT(o,B._getPT(i,o.$name),s,a,D(D({},c),{},{global:v||{}})),k=B._getPTDatasets(o,a);return f||!f&&w?p?B._mergeProps(o,p,v,w,k):D(D(D({},v),w),k):D(D({},w),k)},_getPTDatasets:function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"",o="data-pc-";return D(D({},n==="root"&&eo({},"".concat(o,"name"),xe(e.$name))),{},eo({},"".concat(o,"section"),xe(n)))},_getPT:function(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"",o=arguments.length>2?arguments[2]:void 0,i=function(c){var l,s=o?o(c):c,u=xe(n);return(l=s?.[u])!==null&&l!==void 0?l:s};return e&&Object.hasOwn(e,"_usept")?{_usept:e._usept,originalValue:i(e.originalValue),value:i(e.value)}:i(e)},_usePT:function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=arguments.length>1?arguments[1]:void 0,o=arguments.length>2?arguments[2]:void 0,i=arguments.length>3?arguments[3]:void 0,a=arguments.length>4?arguments[4]:void 0,c=function(k){return o(k,i,a)};if(n&&Object.hasOwn(n,"_usept")){var l,s=n._usept||((l=e.$primevueConfig)===null||l===void 0?void 0:l.ptOptions)||{},u=s.mergeSections,d=u===void 0?!0:u,f=s.mergeProps,h=f===void 0?!1:f,p=c(n.originalValue),v=c(n.value);return p===void 0&&v===void 0?void 0:ue(v)?v:ue(p)?p:d||!d&&v?h?B._mergeProps(e,h,p,v):D(D({},p),v):v}return c(n)},_useDefaultPT:function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},o=arguments.length>2?arguments[2]:void 0,i=arguments.length>3?arguments[3]:void 0,a=arguments.length>4?arguments[4]:void 0;return B._usePT(e,n,o,i,a)},_loadStyles:function(){var e,n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},o=arguments.length>1?arguments[1]:void 0,i=arguments.length>2?arguments[2]:void 0,a=B._getConfig(o,i),c={nonce:a==null||(e=a.csp)===null||e===void 0?void 0:e.nonce};B._loadCoreStyles(n,c),B._loadThemeStyles(n,c),B._loadScopedThemeStyles(n,c),B._removeThemeListeners(n),n.$loadStyles=function(){return B._loadThemeStyles(n,c)},B._themeChangeListener(n.$loadStyles)},_loadCoreStyles:function(){var e,n,o=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},i=arguments.length>1?arguments[1]:void 0;if(!Ke.isStyleNameLoaded((e=o.$style)===null||e===void 0?void 0:e.name)&&(n=o.$style)!==null&&n!==void 0&&n.name){var a;q.loadCSS(i),(a=o.$style)===null||a===void 0||a.loadCSS(i),Ke.setLoadedStyleName(o.$style.name)}},_loadThemeStyles:function(){var e,n,o,i=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},a=arguments.length>1?arguments[1]:void 0;if(!(i!=null&&i.isUnstyled()||(i==null||(e=i.theme)===null||e===void 0?void 0:e.call(i))==="none")){if(!H.isStyleNameLoaded("common")){var c,l,s=((c=i.$style)===null||c===void 0||(l=c.getCommonTheme)===null||l===void 0?void 0:l.call(c))||{},u=s.primitive,d=s.semantic,f=s.global,h=s.style;q.load(u?.css,D({name:"primitive-variables"},a)),q.load(d?.css,D({name:"semantic-variables"},a)),q.load(f?.css,D({name:"global-variables"},a)),q.loadStyle(D({name:"global-style"},a),h),H.setLoadedStyleName("common")}if(!H.isStyleNameLoaded((n=i.$style)===null||n===void 0?void 0:n.name)&&(o=i.$style)!==null&&o!==void 0&&o.name){var p,v,w,k,y=((p=i.$style)===null||p===void 0||(v=p.getDirectiveTheme)===null||v===void 0?void 0:v.call(p))||{},T=y.css,I=y.style;(w=i.$style)===null||w===void 0||w.load(T,D({name:"".concat(i.$style.name,"-variables")},a)),(k=i.$style)===null||k===void 0||k.loadStyle(D({name:"".concat(i.$style.name,"-style")},a),I),H.setLoadedStyleName(i.$style.name)}if(!H.isStyleNameLoaded("layer-order")){var b,_,U=(b=i.$style)===null||b===void 0||(_=b.getLayerOrderThemeCSS)===null||_===void 0?void 0:_.call(b);q.load(U,D({name:"layer-order",first:!0},a)),H.setLoadedStyleName("layer-order")}}},_loadScopedThemeStyles:function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=arguments.length>1?arguments[1]:void 0,o=e.preset();if(o&&e.$attrSelector){var i,a,c,l=((i=e.$style)===null||i===void 0||(a=i.getPresetTheme)===null||a===void 0?void 0:a.call(i,o,"[".concat(e.$attrSelector,"]")))||{},s=l.css,u=(c=e.$style)===null||c===void 0?void 0:c.load(s,D({name:"".concat(e.$attrSelector,"-").concat(e.$style.name)},n));e.scopedStyleEl=u.el}},_themeChangeListener:function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:function(){};Ke.clearLoadedStyleNames(),ie.on("theme:change",e)},_removeThemeListeners:function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};ie.off("theme:change",e.$loadStyles),e.$loadStyles=void 0},_hook:function(e,n,o,i,a,c){var l,s,u="on".concat(ja(n)),d=B._getConfig(i,a),f=o?.$instance,h=B._usePT(f,B._getPT(i==null||(l=i.value)===null||l===void 0?void 0:l.pt,e),B._getOptionValue,"hooks.".concat(u)),p=B._useDefaultPT(f,d==null||(s=d.pt)===null||s===void 0||(s=s.directives)===null||s===void 0?void 0:s[e],B._getOptionValue,"hooks.".concat(u)),v={el:o,binding:i,vnode:a,prevVnode:c};h?.(f,v),p?.(f,v)},_mergeProps:function(){for(var e=arguments.length>1?arguments[1]:void 0,n=arguments.length,o=new Array(n>2?n-2:0),i=2;i<n;i++)o[i-2]=arguments[i];return Gn(e)?e.apply(void 0,o):r.mergeProps.apply(void 0,o)},_extend:function(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},o=function(l,s,u,d,f){var h,p,v,w;s._$instances=s._$instances||{};var k=B._getConfig(u,d),y=s._$instances[e]||{},T=Ue(y)?D(D({},n),n?.methods):{};s._$instances[e]=D(D({},y),{},{$name:e,$host:s,$binding:u,$modifiers:u?.modifiers,$value:u?.value,$el:y.$el||s||void 0,$style:D({classes:void 0,inlineStyles:void 0,load:function(){},loadCSS:function(){},loadStyle:function(){}},n?.style),$primevueConfig:k,$attrSelector:(h=s.$pd)===null||h===void 0||(h=h[e])===null||h===void 0?void 0:h.attrSelector,defaultPT:function(){return B._getPT(k?.pt,void 0,function(b){var _;return b==null||(_=b.directives)===null||_===void 0?void 0:_[e]})},isUnstyled:function(){var b,_;return((b=s._$instances[e])===null||b===void 0||(b=b.$binding)===null||b===void 0||(b=b.value)===null||b===void 0?void 0:b.unstyled)!==void 0?(_=s._$instances[e])===null||_===void 0||(_=_.$binding)===null||_===void 0||(_=_.value)===null||_===void 0?void 0:_.unstyled:k?.unstyled},theme:function(){var b;return(b=s._$instances[e])===null||b===void 0||(b=b.$primevueConfig)===null||b===void 0?void 0:b.theme},preset:function(){var b;return(b=s._$instances[e])===null||b===void 0||(b=b.$binding)===null||b===void 0||(b=b.value)===null||b===void 0?void 0:b.dt},ptm:function(){var b,_=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"",U=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return B._getPTValue(s._$instances[e],(b=s._$instances[e])===null||b===void 0||(b=b.$binding)===null||b===void 0||(b=b.value)===null||b===void 0?void 0:b.pt,_,D({},U))},ptmo:function(){var b=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},_=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"",U=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return B._getPTValue(s._$instances[e],b,_,U,!1)},cx:function(){var b,_,U=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"",X=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return(b=s._$instances[e])!==null&&b!==void 0&&b.isUnstyled()?void 0:B._getOptionValue((_=s._$instances[e])===null||_===void 0||(_=_.$style)===null||_===void 0?void 0:_.classes,U,D({},X))},sx:function(){var b,_=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"",U=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0,X=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return U?B._getOptionValue((b=s._$instances[e])===null||b===void 0||(b=b.$style)===null||b===void 0?void 0:b.inlineStyles,_,D({},X)):void 0}},T),s.$instance=s._$instances[e],(p=(v=s.$instance)[l])===null||p===void 0||p.call(v,s,u,d,f),s["$".concat(e)]=s.$instance,B._hook(e,l,s,u,d,f),s.$pd||(s.$pd={}),s.$pd[e]=D(D({},(w=s.$pd)===null||w===void 0?void 0:w[e]),{},{name:e,instance:s._$instances[e]})},i=function(l){var s,u,d,f=l._$instances[e],h=f?.watch,p=function(k){var y,T=k.newValue,I=k.oldValue;return h==null||(y=h.config)===null||y===void 0?void 0:y.call(f,T,I)},v=function(k){var y,T=k.newValue,I=k.oldValue;return h==null||(y=h["config.ripple"])===null||y===void 0?void 0:y.call(f,T,I)};f.$watchersCallback={config:p,"config.ripple":v},h==null||(s=h.config)===null||s===void 0||s.call(f,f?.$primevueConfig),wn.on("config:change",p),h==null||(u=h["config.ripple"])===null||u===void 0||u.call(f,f==null||(d=f.$primevueConfig)===null||d===void 0?void 0:d.ripple),wn.on("config:ripple:change",v)},a=function(l){var s=l._$instances[e].$watchersCallback;s&&(wn.off("config:change",s.config),wn.off("config:ripple:change",s["config.ripple"]),l._$instances[e].$watchersCallback=void 0)};return{created:function(l,s,u,d){l.$pd||(l.$pd={}),l.$pd[e]={name:e,attrSelector:Ha("pd")},o("created",l,s,u,d)},beforeMount:function(l,s,u,d){var f;B._loadStyles((f=l.$pd[e])===null||f===void 0?void 0:f.instance,s,u),o("beforeMount",l,s,u,d),i(l)},mounted:function(l,s,u,d){var f;B._loadStyles((f=l.$pd[e])===null||f===void 0?void 0:f.instance,s,u),o("mounted",l,s,u,d)},beforeUpdate:function(l,s,u,d){o("beforeUpdate",l,s,u,d)},updated:function(l,s,u,d){var f;B._loadStyles((f=l.$pd[e])===null||f===void 0?void 0:f.instance,s,u),o("updated",l,s,u,d)},beforeUnmount:function(l,s,u,d){var f;a(l),B._removeThemeListeners((f=l.$pd[e])===null||f===void 0?void 0:f.instance),o("beforeUnmount",l,s,u,d)},unmounted:function(l,s,u,d){var f;(f=l.$pd[e])===null||f===void 0||(f=f.instance)===null||f===void 0||(f=f.scopedStyleEl)===null||f===void 0||(f=f.value)===null||f===void 0||f.remove(),o("unmounted",l,s,u,d)}}},extend:function(){var e=B._getMeta.apply(B,arguments),n=Er(e,2),o=n[0],i=n[1];return D({extend:function(){var c=B._getMeta.apply(B,arguments),l=Er(c,2),s=l[0],u=l[1];return B.extend(s,D(D(D({},i),i?.methods),u))}},B._extend(o,i))}},Ds=`
|
|
338
338
|
.p-ink {
|
|
339
339
|
display: block;
|
|
340
340
|
position: absolute;
|
|
@@ -354,9 +354,9 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
354
354
|
transform: scale(2.5);
|
|
355
355
|
}
|
|
356
356
|
}
|
|
357
|
-
`,
|
|
358
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function
|
|
359
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function dl(t,e){if(t){if(typeof t=="string")return Nr(t,e);var n={}.toString.call(t).slice(8,-1);return n==="Object"&&t.constructor&&(n=t.constructor.name),n==="Map"||n==="Set"?Array.from(t):n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Nr(t,e):void 0}}function Nr(t,e){(e==null||e>t.length)&&(e=t.length);for(var n=0,o=Array(e);n<e;n++)o[n]=t[n];return o}function ml(t,e){var n=t==null?null:typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(n!=null){var o,i,a,c,l=[],s=!0,u=!1;try{if(a=(n=n.call(t)).next,e!==0)for(;!(s=(o=a.call(n)).done)&&(l.push(o.value),l.length!==e);s=!0);}catch(d){u=!0,i=d}finally{try{if(!s&&n.return!=null&&(c=n.return(),Object(c)!==c))return}finally{if(u)throw i}}return l}}function fl(t){if(Array.isArray(t))return t}var Mr={name:"PanelMenuList",hostName:"PanelMenu",extends:bn,emits:["item-toggle","header-focus"],props:{panelId:{type:String,default:null},items:{type:Array,default:null},templates:{type:Object,default:null},expandedKeys:{type:Object,default:null}},searchTimeout:null,searchValue:null,data:function(){return{focused:!1,focusedItem:null,activeItemPath:[]}},watch:{expandedKeys:function(e){this.autoUpdateActiveItemPath(e)}},created:function(){this.autoUpdateActiveItemPath(this.expandedKeys)},methods:{getItemProp:function(e,n){return e&&e.item?Yn(e.item[n]):void 0},getItemLabel:function(e){return this.getItemProp(e,"label")},isItemVisible:function(e){return this.getItemProp(e,"visible")!==!1},isItemDisabled:function(e){return this.getItemProp(e,"disabled")},isItemActive:function(e){return this.activeItemPath.some(function(n){return n.key===e.parentKey})},isItemGroup:function(e){return Z(e.items)},onFocus:function(e){this.focused=!0,this.focusedItem=this.focusedItem||(this.isElementInPanel(e,e.relatedTarget)?this.findFirstItem():this.findLastItem())},onBlur:function(){this.focused=!1,this.focusedItem=null,this.searchValue=""},onKeyDown:function(e){var n=e.metaKey||e.ctrlKey;switch(e.code){case"ArrowDown":this.onArrowDownKey(e);break;case"ArrowUp":this.onArrowUpKey(e);break;case"ArrowLeft":this.onArrowLeftKey(e);break;case"ArrowRight":this.onArrowRightKey(e);break;case"Home":this.onHomeKey(e);break;case"End":this.onEndKey(e);break;case"Space":this.onSpaceKey(e);break;case"Enter":case"NumpadEnter":this.onEnterKey(e);break;case"Escape":case"Tab":case"PageDown":case"PageUp":case"Backspace":case"ShiftLeft":case"ShiftRight":break;default:!n&&ja(e.key)&&this.searchItems(e,e.key);break}},onArrowDownKey:function(e){var n=Z(this.focusedItem)?this.findNextItem(this.focusedItem):this.findFirstItem();this.changeFocusedItem({originalEvent:e,processedItem:n,focusOnNext:!0}),e.preventDefault()},onArrowUpKey:function(e){var n=Z(this.focusedItem)?this.findPrevItem(this.focusedItem):this.findLastItem();this.changeFocusedItem({originalEvent:e,processedItem:n,selfCheck:!0}),e.preventDefault()},onArrowLeftKey:function(e){var n=this;if(Z(this.focusedItem)){var o=this.activeItemPath.some(function(i){return i.key===n.focusedItem.key});o?this.activeItemPath=this.activeItemPath.filter(function(i){return i.key!==n.focusedItem.key}):this.focusedItem=Z(this.focusedItem.parent)?this.focusedItem.parent:this.focusedItem,e.preventDefault()}},onArrowRightKey:function(e){var n=this;if(Z(this.focusedItem)){var o=this.isItemGroup(this.focusedItem);if(o){var i=this.activeItemPath.some(function(a){return a.key===n.focusedItem.key});i?this.onArrowDownKey(e):(this.activeItemPath=this.activeItemPath.filter(function(a){return a.parentKey!==n.focusedItem.parentKey}),this.activeItemPath.push(this.focusedItem))}e.preventDefault()}},onHomeKey:function(e){this.changeFocusedItem({originalEvent:e,processedItem:this.findFirstItem(),allowHeaderFocus:!1}),e.preventDefault()},onEndKey:function(e){this.changeFocusedItem({originalEvent:e,processedItem:this.findLastItem(),focusOnNext:!0,allowHeaderFocus:!1}),e.preventDefault()},onEnterKey:function(e){if(Z(this.focusedItem)){var n=Ae(this.$el,'li[id="'.concat("".concat(this.focusedItemId),'"]')),o=n&&(Ae(n,'[data-pc-section="itemlink"]')||Ae(n,"a,button"));o?o.click():n&&n.click()}e.preventDefault()},onSpaceKey:function(e){this.onEnterKey(e)},onItemToggle:function(e){var n=e.processedItem,o=e.expanded;this.expandedKeys?this.$emit("item-toggle",{item:n.item,expanded:o}):(this.activeItemPath=this.activeItemPath.filter(function(i){return i.parentKey!==n.parentKey}),o&&this.activeItemPath.push(n)),this.focusedItem=n,It(this.$el)},onItemMouseMove:function(e){this.focused&&(this.focusedItem=e.processedItem)},isElementInPanel:function(e,n){var o=e.currentTarget.closest('[data-pc-section="panel"]');return o&&o.contains(n)},isItemMatched:function(e){var n;return this.isValidItem(e)&&((n=this.getItemLabel(e))===null||n===void 0?void 0:n.toLocaleLowerCase(this.searchLocale).startsWith(this.searchValue.toLocaleLowerCase(this.searchLocale)))},isVisibleItem:function(e){return!!e&&(e.level===0||this.isItemActive(e))&&this.isItemVisible(e)},isValidItem:function(e){return!!e&&!this.isItemDisabled(e)&&!this.getItemProp(e,"separator")},findFirstItem:function(){var e=this;return this.visibleItems.find(function(n){return e.isValidItem(n)})},findLastItem:function(){var e=this;return Qo(this.visibleItems,function(n){return e.isValidItem(n)})},findNextItem:function(e){var n=this,o=this.visibleItems.findIndex(function(a){return a.key===e.key}),i=o<this.visibleItems.length-1?this.visibleItems.slice(o+1).find(function(a){return n.isValidItem(a)}):void 0;return i||e},findPrevItem:function(e){var n=this,o=this.visibleItems.findIndex(function(a){return a.key===e.key}),i=o>0?Qo(this.visibleItems.slice(0,o),function(a){return n.isValidItem(a)}):void 0;return i||e},searchItems:function(e,n){var o=this;this.searchValue=(this.searchValue||"")+n;var i=null,a=!1;if(Z(this.focusedItem)){var c=this.visibleItems.findIndex(function(l){return l.key===o.focusedItem.key});i=this.visibleItems.slice(c).find(function(l){return o.isItemMatched(l)}),i=mn(i)?this.visibleItems.slice(0,c).find(function(l){return o.isItemMatched(l)}):i}else i=this.visibleItems.find(function(l){return o.isItemMatched(l)});return Z(i)&&(a=!0),mn(i)&&mn(this.focusedItem)&&(i=this.findFirstItem()),Z(i)&&this.changeFocusedItem({originalEvent:e,processedItem:i,allowHeaderFocus:!1}),this.searchTimeout&&clearTimeout(this.searchTimeout),this.searchTimeout=setTimeout(function(){o.searchValue="",o.searchTimeout=null},500),a},changeFocusedItem:function(e){var n=e.originalEvent,o=e.processedItem,i=e.focusOnNext,a=e.selfCheck,c=e.allowHeaderFocus,l=c===void 0?!0:c;Z(this.focusedItem)&&this.focusedItem.key!==o.key?(this.focusedItem=o,this.scrollInView()):l&&this.$emit("header-focus",{originalEvent:n,focusOnNext:i,selfCheck:a})},scrollInView:function(){var e=Ae(this.$el,'li[id="'.concat("".concat(this.focusedItemId),'"]'));e&&e.scrollIntoView&&e.scrollIntoView({block:"nearest",inline:"start"})},autoUpdateActiveItemPath:function(e){var n=this;this.activeItemPath=Object.entries(e||{}).reduce(function(o,i){var a=cl(i,2),c=a[0],l=a[1];if(l){var s=n.findProcessedItemByItemKey(c);s&&o.push(s)}return o},[])},findProcessedItemByItemKey:function(e,n){var o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0;if(n=n||o===0&&this.processedItems,!n)return null;for(var i=0;i<n.length;i++){var a=n[i];if(this.getItemProp(a,"key")===e)return a;var c=this.findProcessedItemByItemKey(e,a.items,o+1);if(c)return c}},createProcessedItems:function(e){var n=this,o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:"",c=[];return e&&e.forEach(function(l,s){var u=(a!==""?a+"_":"")+s,d={item:l,index:s,level:o,key:u,parent:i,parentKey:a};d.items=n.createProcessedItems(l.items,o+1,d,u),c.push(d)}),c},flatItems:function(e){var n=this,o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[];return e&&e.forEach(function(i){n.isVisibleItem(i)&&(o.push(i),n.flatItems(i.items,o))}),o}},computed:{processedItems:function(){return this.createProcessedItems(this.items||[])},visibleItems:function(){return this.flatItems(this.processedItems)},focusedItemId:function(){return Z(this.focusedItem)?"".concat(this.panelId,"_").concat(this.focusedItem.key):null}},components:{PanelMenuSub:Lr}};function pl(t,e,n,o,i,a){var c=r.resolveComponent("PanelMenuSub");return r.openBlock(),r.createBlock(c,r.mergeProps({id:n.panelId+"_list",class:t.cx("rootList"),role:"tree",tabindex:-1,"aria-activedescendant":i.focused?a.focusedItemId:void 0,panelId:n.panelId,focusedItemId:i.focused?a.focusedItemId:void 0,items:a.processedItems,templates:n.templates,activeItemPath:i.activeItemPath,onFocus:a.onFocus,onBlur:a.onBlur,onKeydown:a.onKeyDown,onItemToggle:a.onItemToggle,onItemMousemove:a.onItemMouseMove,pt:t.pt,unstyled:t.unstyled},t.ptm("rootList")),null,16,["id","class","aria-activedescendant","panelId","focusedItemId","items","templates","activeItemPath","onFocus","onBlur","onKeydown","onItemToggle","onItemMousemove","pt","unstyled"])}Mr.render=pl;function jt(t){"@babel/helpers - typeof";return jt=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},jt(t)}function Dr(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);e&&(o=o.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),n.push.apply(n,o)}return n}function hl(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?Dr(Object(n),!0).forEach(function(o){gl(t,o,n[o])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Dr(Object(n)).forEach(function(o){Object.defineProperty(t,o,Object.getOwnPropertyDescriptor(n,o))})}return t}function gl(t,e,n){return(e=yl(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function yl(t){var e=vl(t,"string");return jt(e)=="symbol"?e:e+""}function vl(t,e){if(jt(t)!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var o=n.call(t,e);if(jt(o)!="object")return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}var Rr={name:"PanelMenu",extends:ol,inheritAttrs:!1,emits:["update:expandedKeys","panel-open","panel-close"],data:function(){return{activeItem:null,activeItems:[]}},methods:{getItemProp:function(e,n){return e?Yn(e[n]):void 0},getItemLabel:function(e){return this.getItemProp(e,"label")},getPTOptions:function(e,n,o){return this.ptm(e,{context:{index:o,active:this.isItemActive(n),focused:this.isItemFocused(n),disabled:this.isItemDisabled(n)}})},isItemActive:function(e){return this.expandedKeys?this.expandedKeys[this.getItemProp(e,"key")]:this.multiple?this.activeItems.some(function(n){return ct(e,n)}):ct(e,this.activeItem)},isItemVisible:function(e){return this.getItemProp(e,"visible")!==!1},isItemDisabled:function(e){return this.getItemProp(e,"disabled")},isItemFocused:function(e){return ct(e,this.activeItem)},isItemGroup:function(e){return Z(e.items)},getPanelId:function(e){return"".concat(this.$id,"_").concat(e)},getPanelKey:function(e){return this.getPanelId(e)},getHeaderId:function(e){return"".concat(this.getPanelId(e),"_header")},getContentId:function(e){return"".concat(this.getPanelId(e),"_content")},onHeaderClick:function(e,n){if(this.isItemDisabled(n)){e.preventDefault();return}n.command&&n.command({originalEvent:e,item:n}),this.changeActiveItem(e,n),It(e.currentTarget)},onHeaderKeyDown:function(e,n){switch(e.code){case"ArrowDown":this.onHeaderArrowDownKey(e);break;case"ArrowUp":this.onHeaderArrowUpKey(e);break;case"Home":this.onHeaderHomeKey(e);break;case"End":this.onHeaderEndKey(e);break;case"Enter":case"NumpadEnter":case"Space":this.onHeaderEnterKey(e,n);break}},onHeaderArrowDownKey:function(e){var n=At(e.currentTarget,"data-p-active")===!0?Ae(e.currentTarget.nextElementSibling,'[data-pc-section="rootlist"]'):null;n?It(n):this.updateFocusedHeader({originalEvent:e,focusOnNext:!0}),e.preventDefault()},onHeaderArrowUpKey:function(e){var n=this.findPrevHeader(e.currentTarget.parentElement)||this.findLastHeader(),o=At(n,"data-p-active")===!0?Ae(n.nextElementSibling,'[data-pc-section="rootlist"]'):null;o?It(o):this.updateFocusedHeader({originalEvent:e,focusOnNext:!1}),e.preventDefault()},onHeaderHomeKey:function(e){this.changeFocusedHeader(e,this.findFirstHeader()),e.preventDefault()},onHeaderEndKey:function(e){this.changeFocusedHeader(e,this.findLastHeader()),e.preventDefault()},onHeaderEnterKey:function(e,n){var o=Ae(e.currentTarget,'[data-pc-section="headerlink"]');o?o.click():this.onHeaderClick(e,n),e.preventDefault()},findNextHeader:function(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,o=n?e:e.nextElementSibling,i=Ae(o,'[data-pc-section="header"]');return i?At(i,"data-p-disabled")?this.findNextHeader(i.parentElement):i:null},findPrevHeader:function(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,o=n?e:e.previousElementSibling,i=Ae(o,'[data-pc-section="header"]');return i?At(i,"data-p-disabled")?this.findPrevHeader(i.parentElement):i:null},findFirstHeader:function(){return this.findNextHeader(this.$el.firstElementChild,!0)},findLastHeader:function(){return this.findPrevHeader(this.$el.lastElementChild,!0)},updateFocusedHeader:function(e){var n=e.originalEvent,o=e.focusOnNext,i=e.selfCheck,a=n.currentTarget.closest('[data-pc-section="panel"]'),c=i?Ae(a,'[data-pc-section="header"]'):o?this.findNextHeader(a):this.findPrevHeader(a);c?this.changeFocusedHeader(n,c):o?this.onHeaderHomeKey(n):this.onHeaderEndKey(n)},changeActiveItem:function(e,n){var o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;if(!this.isItemDisabled(n)){var i=this.isItemActive(n),a=i?"panel-close":"panel-open";this.activeItem=o?n:this.activeItem&&ct(n,this.activeItem)?null:n,this.multiple&&(this.activeItems.some(function(c){return ct(n,c)})?this.activeItems=this.activeItems.filter(function(c){return!ct(n,c)}):this.activeItems.push(n)),this.changeExpandedKeys({item:n,expanded:!i}),this.$emit(a,{originalEvent:e,item:n})}},changeExpandedKeys:function(e){var n=e.item,o=e.expanded,i=o===void 0?!1:o;if(this.expandedKeys){var a=hl({},this.expandedKeys);i?a[n.key]=!0:delete a[n.key],this.$emit("update:expandedKeys",a)}},changeFocusedHeader:function(e,n){n&&It(n)},getMenuItemProps:function(e,n){return{icon:r.mergeProps({class:[this.cx("headerIcon"),this.getItemProp(e,"icon")]},this.getPTOptions("headerIcon",e,n)),label:r.mergeProps({class:this.cx("headerLabel")},this.getPTOptions("headerLabel",e,n))}}},components:{PanelMenuList:Mr,ChevronRightIcon:oo,ChevronDownIcon:no}},bl=["id"],Cl=["id","tabindex","aria-label","aria-expanded","aria-controls","aria-disabled","onClick","onKeydown","data-p-active","data-p-disabled"],wl=["href"],kl=["id","aria-labelledby"];function Sl(t,e,n,o,i,a){var c=r.resolveComponent("PanelMenuList");return r.openBlock(),r.createElementBlock("div",r.mergeProps({id:t.$id,class:t.cx("root")},t.ptmi("root")),[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(t.model,function(l,s){return r.openBlock(),r.createElementBlock(r.Fragment,{key:a.getPanelKey(s)},[a.isItemVisible(l)?(r.openBlock(),r.createElementBlock("div",r.mergeProps({key:0,style:a.getItemProp(l,"style"),class:[t.cx("panel"),a.getItemProp(l,"class")]},{ref_for:!0},t.ptm("panel")),[r.createElementVNode("div",r.mergeProps({id:a.getHeaderId(s),class:[t.cx("header",{item:l}),a.getItemProp(l,"headerClass")],tabindex:a.isItemDisabled(l)?-1:t.tabindex,role:"button","aria-label":a.getItemLabel(l),"aria-expanded":a.isItemActive(l),"aria-controls":a.getContentId(s),"aria-disabled":a.isItemDisabled(l),onClick:function(d){return a.onHeaderClick(d,l)},onKeydown:function(d){return a.onHeaderKeyDown(d,l)}},{ref_for:!0},a.getPTOptions("header",l,s),{"data-p-active":a.isItemActive(l),"data-p-disabled":a.isItemDisabled(l)}),[r.createElementVNode("div",r.mergeProps({class:t.cx("headerContent")},{ref_for:!0},a.getPTOptions("headerContent",l,s)),[t.$slots.item?(r.openBlock(),r.createBlock(r.resolveDynamicComponent(t.$slots.item),{key:1,item:l,root:!0,active:a.isItemActive(l),hasSubmenu:a.isItemGroup(l),label:a.getItemLabel(l),props:a.getMenuItemProps(l,s)},null,8,["item","active","hasSubmenu","label","props"])):(r.openBlock(),r.createElementBlock("a",r.mergeProps({key:0,href:a.getItemProp(l,"url"),class:t.cx("headerLink"),tabindex:-1},{ref_for:!0},a.getPTOptions("headerLink",l,s)),[a.getItemProp(l,"items")?r.renderSlot(t.$slots,"submenuicon",{key:0,active:a.isItemActive(l)},function(){return[(r.openBlock(),r.createBlock(r.resolveDynamicComponent(a.isItemActive(l)?"ChevronDownIcon":"ChevronRightIcon"),r.mergeProps({class:t.cx("submenuIcon")},{ref_for:!0},a.getPTOptions("submenuIcon",l,s)),null,16,["class"]))]}):r.createCommentVNode("",!0),t.$slots.headericon?(r.openBlock(),r.createBlock(r.resolveDynamicComponent(t.$slots.headericon),{key:1,item:l,class:r.normalizeClass([t.cx("headerIcon"),a.getItemProp(l,"icon")])},null,8,["item","class"])):a.getItemProp(l,"icon")?(r.openBlock(),r.createElementBlock("span",r.mergeProps({key:2,class:[t.cx("headerIcon"),a.getItemProp(l,"icon")]},{ref_for:!0},a.getPTOptions("headerIcon",l,s)),null,16)):r.createCommentVNode("",!0),r.createElementVNode("span",r.mergeProps({class:t.cx("headerLabel")},{ref_for:!0},a.getPTOptions("headerLabel",l,s)),r.toDisplayString(a.getItemLabel(l)),17)],16,wl))],16)],16,Cl),r.createVNode(r.Transition,r.mergeProps({name:"p-toggleable-content"},{ref_for:!0},t.ptm("transition")),{default:r.withCtx(function(){return[r.withDirectives(r.createElementVNode("div",r.mergeProps({id:a.getContentId(s),class:t.cx("contentContainer"),role:"region","aria-labelledby":a.getHeaderId(s)},{ref_for:!0},t.ptm("contentContainer")),[a.getItemProp(l,"items")?(r.openBlock(),r.createElementBlock("div",r.mergeProps({key:0,class:t.cx("content")},{ref_for:!0},t.ptm("content")),[r.createVNode(c,{panelId:a.getPanelId(s),items:a.getItemProp(l,"items"),templates:t.$slots,expandedKeys:t.expandedKeys,onItemToggle:a.changeExpandedKeys,onHeaderFocus:a.updateFocusedHeader,pt:t.pt,unstyled:t.unstyled},null,8,["panelId","items","templates","expandedKeys","onItemToggle","onHeaderFocus","pt","unstyled"])],16)):r.createCommentVNode("",!0)],16,kl),[[r.vShow,a.isItemActive(l)]])]}),_:2},1040)],16)):r.createCommentVNode("",!0)],64)}),128))],16,bl)}Rr.render=Sl;const _l={class:"panel-menu-wrapper select-none"},El=["data-active","onClick"],Tl={key:0,class:"material-symbols-outlined item-menu-icon-left"},Pl=["textContent"],Il=["onClick"],Al={key:0,class:"material-symbols-outlined item-menu-icon-left"},xl=["textContent"],$l={key:2,class:r.normalizeClass(["item-menu"])},Bl={key:0,class:"material-symbols-outlined item-menu-icon-left"},Ol=["textContent"],Ll=Le(r.defineComponent({__name:"NavMenu",props:{items:{}},setup(t){const e=t,n=(l,s)=>{l.disabled||l.command&&typeof l.command=="function"||s()},o=(l,s)=>{s.disabled||typeof s.command=="function"&&s.command(l)},i=l=>typeof l.label=="function"?l.label():l.label??"Item",a=(l,s,u)=>l.to?(l.exact=l.exact??!1,l.exact?u:s):!1,c=r.computed(()=>e.items.filter(l=>l.visible===!1?!1:typeof l.visible=="function"?l.visible()===!0:!0));return(l,s)=>{const u=r.resolveComponent("router-link");return r.openBlock(),r.createElementBlock("div",_l,[r.createVNode(r.unref(Rr),{model:c.value,unstyled:!0},{item:r.withCtx(({item:d,active:f})=>[d.to?(r.openBlock(),r.createBlock(u,{key:0,to:d.to,custom:""},{default:r.withCtx(({navigate:p,isExactActive:h,isActive:C})=>[r.createElementVNode("a",{class:r.normalizeClass(["item-menu",{disabled:d.disabled}]),"data-active":a(d,C,h),onClick:r.withModifiers(w=>n(d,p),["prevent"])},[d.icon?(r.openBlock(),r.createElementBlock("span",Tl,r.toDisplayString(d.icon),1)):r.createCommentVNode("",!0),r.createElementVNode("span",{textContent:r.toDisplayString(i(d))},null,8,Pl)],10,El)]),_:2},1032,["to"])):typeof d.command=="function"?(r.openBlock(),r.createElementBlock("span",{key:1,class:r.normalizeClass(["item-menu",{disabled:d.disabled}]),onClick:r.withModifiers(p=>o(p,d),["stop"])},[d.icon?(r.openBlock(),r.createElementBlock("span",Al,r.toDisplayString(d.icon),1)):r.createCommentVNode("",!0),r.createElementVNode("span",{textContent:r.toDisplayString(i(d))},null,8,xl)],10,Il)):(r.openBlock(),r.createElementBlock("a",$l,[d.icon?(r.openBlock(),r.createElementBlock("span",Bl,r.toDisplayString(d.icon),1)):r.createCommentVNode("",!0),r.createElementVNode("span",{textContent:r.toDisplayString(i(d))},null,8,Ol),s[0]||(s[0]=r.createElementVNode("div",{class:"sep"},null,-1)),r.createElementVNode("span",{class:r.normalizeClass(["material-symbols-outlined arrow",{"--expand":f}])}," chevron_right ",2)]))]),_:1},8,["model"])])}}}),[["__scopeId","data-v-17765f50"]]),Nl=r.defineComponent({__name:"HelpButton",props:{title:{},tooltip:{},size:{},color:{},filled:{type:Boolean},icon:{}},setup(t){const e=t;r.useSlots();const n=r.ref(!1);function o(){n.value=!0}return(i,a)=>(r.openBlock(),r.createElementBlock(r.Fragment,null,[r.renderSlot(i.$slots,"anchor",r.normalizeProps(r.guardReactiveProps({Show:o})),()=>[r.createVNode(Ie,{button:!0,icon:e.icon??"help",size:e.size??"sm",filled:e.filled,color:e.color??"text",tooltip:e.tooltip??"Ajuda",style:{minWidth:"fit-content"},onClick:o},null,8,["icon","size","filled","color","tooltip"])]),r.createVNode(Go,{visible:n.value,"onUpdate:visible":a[0]||(a[0]=c=>n.value=c),position:"center"},{title:r.withCtx(()=>[r.createElementVNode("b",null,r.toDisplayString(e.title??"Ajuda"),1)]),default:r.withCtx(()=>[r.renderSlot(i.$slots,"default")]),_:3},8,["visible"])],64))}}),Ml=Le(r.defineComponent({__name:"Content",props:{fluid:{type:Boolean}},setup(t){const e=t;return r.useSlots(),(n,o)=>(r.openBlock(),r.createElementBlock("div",{class:r.normalizeClass(["sf-content-wrapper",{"--fluid":e.fluid}])},[r.renderSlot(n.$slots,"default",{},void 0,!0)],2))}}),[["__scopeId","data-v-32e5acfa"]]);function Dl(t){return r.getCurrentScope()?(r.onScopeDispose(t),!0):!1}const Rl=typeof window<"u"&&typeof document<"u";typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope;function Vl(t){return Array.isArray(t)?t:[t]}function jl(t){return r.getCurrentInstance()}function Hl(t,e=!0,n){jl()?r.onMounted(t,n):e?t():r.nextTick(t)}const Vr=Rl?window:void 0;function dt(t){var e;const n=r.toValue(t);return(e=n?.$el)!=null?e:n}function Fl(){const t=r.shallowRef(!1),e=r.getCurrentInstance();return e&&r.onMounted(()=>{t.value=!0},e),t}function Ul(t){const e=Fl();return r.computed(()=>(e.value,!!t()))}function jr(t,e,n={}){const{window:o=Vr,...i}=n;let a;const c=Ul(()=>o&&"ResizeObserver"in o),l=()=>{a&&(a.disconnect(),a=void 0)},s=r.computed(()=>{const f=r.toValue(t);return Array.isArray(f)?f.map(p=>dt(p)):[dt(f)]}),u=r.watch(s,f=>{if(l(),c.value&&o){a=new ResizeObserver(e);for(const p of f)p&&a.observe(p,i)}},{immediate:!0,flush:"post"}),d=()=>{l(),u()};return Dl(d),{isSupported:c,stop:d}}function zl(t,e={width:0,height:0},n={}){const{window:o=Vr,box:i="content-box"}=n,a=r.computed(()=>{var f,p;return(p=(f=dt(t))==null?void 0:f.namespaceURI)==null?void 0:p.includes("svg")}),c=r.shallowRef(e.width),l=r.shallowRef(e.height),{stop:s}=jr(t,([f])=>{const p=i==="border-box"?f.borderBoxSize:i==="content-box"?f.contentBoxSize:f.devicePixelContentBoxSize;if(o&&a.value){const h=dt(t);if(h){const C=h.getBoundingClientRect();c.value=C.width,l.value=C.height}}else if(p){const h=Vl(p);c.value=h.reduce((C,{inlineSize:w})=>C+w,0),l.value=h.reduce((C,{blockSize:w})=>C+w,0)}else c.value=f.contentRect.width,l.value=f.contentRect.height},n);Hl(()=>{const f=dt(t);f&&(c.value="offsetWidth"in f?f.offsetWidth:e.width,l.value="offsetHeight"in f?f.offsetHeight:e.height)});const u=r.watch(()=>dt(t),f=>{c.value=f?e.width:0,l.value=f?e.height:0});function d(){s(),u()}return{width:c,height:l,stop:d}}const Hr=Symbol();function Kl(){return r.inject(Hr)}const Ht=()=>Kl(),Wl={class:"body"},Gl={class:"my-3 name"},ql={class:"login-buttons py-3 mx-auto"},Yl={class:"my-3 footer"},Xl=Le(r.defineComponent({__name:"Login",props:{enableAdlogin:{type:Boolean}},setup(t){const e=t,n=r.ref(null),{width:o}=zl(n),i=r.computed(()=>o.value>300?"md":"sm"),a=Un.UseAuth(),{ClearStoredTheme:c,EnableLightMode:l}=Ht(),s=r.computed(()=>e.enableAdlogin===!0),u=r.ref(!1),d=r.ref(null);async function f(p){u.value||(u.value=!0,d.value=p,await new Promise(h=>setTimeout(h,400)),c(),p==="govbr"?a.LoginGovBr():s&&p==="sf"&&a.oidc.login())}return r.onBeforeMount(()=>{l()}),(p,h)=>(r.openBlock(),r.createElementBlock("div",Wl,[h[6]||(h[6]=r.createElementVNode("div",{class:"bg"},null,-1)),r.createElementVNode("div",{class:"card",ref_key:"cardRef",ref:n},[h[5]||(h[5]=r.createElementVNode("div",{class:"my-3 logo"},null,-1)),r.createElementVNode("div",Gl,[r.renderSlot(p.$slots,"name",{},()=>[h[2]||(h[2]=r.createTextVNode("Nome do sistema",-1))],!0)]),r.createElementVNode("div",ql,[r.renderSlot(p.$slots,"buttons",r.normalizeProps(r.guardReactiveProps({Login:f})),()=>[r.createVNode(r.unref(Kn),{size:i.value,icon:"person","icon-filled":!0,class:r.normalizeClass("w-full text-nowrap justify-content-center"),loading:u.value&&d.value==="govbr",onClick:h[0]||(h[0]=C=>f("govbr"))},{default:r.withCtx(()=>h[3]||(h[3]=[r.createTextVNode(" Entrar com ",-1),r.createElementVNode("b",null,"Gov.br",-1)])),_:1,__:[3]},8,["size","loading"]),s.value?(r.openBlock(),r.createBlock(r.unref(Kn),{key:0,size:i.value,icon:"person","icon-filled":!0,class:r.normalizeClass("w-full text-nowrap justify-content-center"),loading:u.value&&d.value==="sf",onClick:h[1]||(h[1]=C=>f("sf"))},{default:r.withCtx(()=>h[4]||(h[4]=[r.createTextVNode(" Entrar com ",-1),r.createElementVNode("b",null,"SF",-1)])),_:1,__:[4]},8,["size","loading"])):r.createCommentVNode("",!0),r.renderSlot(p.$slots,"extra-button",{},void 0,!0)],!0)]),r.createElementVNode("div",Yl,[r.renderSlot(p.$slots,"footer",{},void 0,!0)])],512)]))}}),[["__scopeId","data-v-a9cae4be"]]);class Zl{get storedTheme(){return localStorage.getItem("color-scheme")}get IsDark(){return document.documentElement.classList.contains("dark")}Toggle(){this.IsDark?this.EnableLightMode():this.EnableDarkMode()}EnableDarkMode(){document.documentElement.classList.add("dark"),document.documentElement.classList.remove("light"),localStorage.setItem("color-scheme","dark")}EnableLightMode(){document.documentElement.classList.remove("dark"),document.documentElement.classList.add("light"),localStorage.setItem("color-scheme","light")}SetInitialTheme(){if(this.storedTheme==="light")return this.EnableLightMode();if(this.storedTheme==="dark")return this.EnableDarkMode();if(window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches)return this.EnableDarkMode();this.EnableLightMode()}ClearStoredTheme(){localStorage.removeItem("color-scheme")}}const Ft=new Zl,Fr="SweetAlert2:",Jl=t=>{const e=[];for(let n=0;n<t.length;n++)e.indexOf(t[n])===-1&&e.push(t[n]);return e},ao=t=>t.charAt(0).toUpperCase()+t.slice(1),he=t=>Array.prototype.slice.call(t),de=t=>{console.warn(`${Fr} ${typeof t=="object"?t.join(" "):t}`)},ot=t=>{console.error(`${Fr} ${t}`)},Ur=[],Ql=t=>{Ur.includes(t)||(Ur.push(t),de(t))},ec=(t,e)=>{Ql(`"${t}" is deprecated and will be removed in the next major release. Please use "${e}" instead.`)},wn=t=>typeof t=="function"?t():t,so=t=>t&&typeof t.toPromise=="function",Ut=t=>so(t)?t.toPromise():Promise.resolve(t),lo=t=>t&&Promise.resolve(t)===t,mt={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},tc=["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"],nc={},oc=["allowOutsideClick","allowEnterKey","backdrop","focusConfirm","focusDeny","focusCancel","returnFocus","heightAuto","keydownListenerCapture"],zr=t=>Object.prototype.hasOwnProperty.call(mt,t),Kr=t=>tc.indexOf(t)!==-1,co=t=>nc[t],rc=t=>{zr(t)||de(`Unknown parameter "${t}"`)},ic=t=>{oc.includes(t)&&de(`The parameter "${t}" is incompatible with toasts`)},ac=t=>{co(t)&&ec(t,co(t))},sc=t=>{!t.backdrop&&t.allowOutsideClick&&de('"allowOutsideClick" parameter requires `backdrop` parameter to be set to `true`');for(const e in t)rc(e),t.toast&&ic(e),ac(e)},lc="swal2-",Wr=t=>{const e={};for(const n in t)e[t[n]]=lc+t[n];return e},g=Wr(["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"]),zt=Wr(["success","warning","info","question","error"]),J=()=>document.body.querySelector(`.${g.container}`),Kt=t=>{const e=J();return e?e.querySelector(t):null},ye=t=>Kt(`.${t}`),D=()=>ye(g.popup),Wt=()=>ye(g.icon),Gr=()=>ye(g.title),kn=()=>ye(g["html-container"]),qr=()=>ye(g.image),Yr=()=>ye(g["progress-steps"]),Sn=()=>ye(g["validation-message"]),Ee=()=>Kt(`.${g.actions} .${g.confirm}`),Ge=()=>Kt(`.${g.actions} .${g.deny}`),cc=()=>ye(g["input-label"]),ft=()=>Kt(`.${g.loader}`),rt=()=>Kt(`.${g.actions} .${g.cancel}`),Gt=()=>ye(g.actions),Xr=()=>ye(g.footer),_n=()=>ye(g["timer-progress-bar"]),uo=()=>ye(g.close),uc=`
|
|
357
|
+
`,Rs={root:"p-ink"},Vs=q.extend({name:"ripple-directive",style:Ds,classes:Rs}),js=B.extend({style:Vs});function Ht(t){"@babel/helpers - typeof";return Ht=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Ht(t)}function Hs(t){return Ws(t)||Us(t)||zs(t)||Fs()}function Fs(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
358
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function zs(t,e){if(t){if(typeof t=="string")return to(t,e);var n={}.toString.call(t).slice(8,-1);return n==="Object"&&t.constructor&&(n=t.constructor.name),n==="Map"||n==="Set"?Array.from(t):n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?to(t,e):void 0}}function Us(t){if(typeof Symbol<"u"&&t[Symbol.iterator]!=null||t["@@iterator"]!=null)return Array.from(t)}function Ws(t){if(Array.isArray(t))return to(t)}function to(t,e){(e==null||e>t.length)&&(e=t.length);for(var n=0,o=Array(e);n<e;n++)o[n]=t[n];return o}function Pr(t,e,n){return(e=Ks(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function Ks(t){var e=Gs(t,"string");return Ht(e)=="symbol"?e:e+""}function Gs(t,e){if(Ht(t)!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var o=n.call(t,e);if(Ht(o)!="object")return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}var qs=js.extend("ripple",{watch:{"config.ripple":function(e){e?(this.createRipple(this.$host),this.bindEvents(this.$host),this.$host.setAttribute("data-pd-ripple",!0),this.$host.style.overflow="hidden",this.$host.style.position="relative"):(this.remove(this.$host),this.$host.removeAttribute("data-pd-ripple"))}},unmounted:function(e){this.remove(e)},timeout:void 0,methods:{bindEvents:function(e){e.addEventListener("mousedown",this.onMouseDown.bind(this))},unbindEvents:function(e){e.removeEventListener("mousedown",this.onMouseDown.bind(this))},createRipple:function(e){var n=this.getInk(e);n||(n=$a("span",Pr(Pr({role:"presentation","aria-hidden":!0,"data-p-ink":!0,"data-p-ink-active":!1,class:!this.isUnstyled()&&this.cx("root"),onAnimationEnd:this.onAnimationEnd.bind(this)},this.$attrSelector,""),"p-bind",this.ptm("root"))),e.appendChild(n),this.$el=n)},remove:function(e){var n=this.getInk(e);n&&(this.$host.style.overflow="",this.$host.style.position="",this.unbindEvents(e),n.removeEventListener("animationend",this.onAnimationEnd),n.remove())},onMouseDown:function(e){var n=this,o=e.currentTarget,i=this.getInk(o);if(!(!i||getComputedStyle(i,null).display==="none")){if(!this.isUnstyled()&&Wn(i,"p-ink-active"),i.setAttribute("data-p-ink-active","false"),!Wo(i)&&!Ko(i)){var a=Math.max(Aa(o),La(o));i.style.height=a+"px",i.style.width=a+"px"}var c=Oa(o),l=e.pageX-c.left+document.body.scrollTop-Ko(i)/2,s=e.pageY-c.top+document.body.scrollLeft-Wo(i)/2;i.style.top=s+"px",i.style.left=l+"px",!this.isUnstyled()&&Pa(i,"p-ink-active"),i.setAttribute("data-p-ink-active","true"),this.timeout=setTimeout(function(){i&&(!n.isUnstyled()&&Wn(i,"p-ink-active"),i.setAttribute("data-p-ink-active","false"))},401)}},onAnimationEnd:function(e){this.timeout&&clearTimeout(this.timeout),!this.isUnstyled()&&Wn(e.currentTarget,"p-ink-active"),e.currentTarget.setAttribute("data-p-ink-active","false")},getInk:function(e){return e&&e.children?Hs(e.children).find(function(n){return Bt(n,"data-pc-name")==="ripple"}):void 0}}}),Ys={name:"BasePanelMenu",extends:Cn,props:{model:{type:Array,default:null},expandedKeys:{type:Object,default:null},multiple:{type:Boolean,default:!1},tabindex:{type:Number,default:0}},style:xs,provide:function(){return{$pcPanelMenu:this,$parentInstance:this}}},Ar={name:"PanelMenuSub",hostName:"PanelMenu",extends:Cn,emits:["item-toggle","item-mousemove"],props:{panelId:{type:String,default:null},focusedItemId:{type:String,default:null},items:{type:Array,default:null},level:{type:Number,default:0},templates:{type:Object,default:null},activeItemPath:{type:Object,default:null},tabindex:{type:Number,default:-1}},methods:{getItemId:function(e){return"".concat(this.panelId,"_").concat(e.key)},getItemKey:function(e){return this.getItemId(e)},getItemProp:function(e,n,o){return e&&e.item?Z(e.item[n],o):void 0},getItemLabel:function(e){return this.getItemProp(e,"label")},getPTOptions:function(e,n,o){return this.ptm(e,{context:{item:n.item,index:o,active:this.isItemActive(n),focused:this.isItemFocused(n),disabled:this.isItemDisabled(n)}})},isItemActive:function(e){return this.activeItemPath.some(function(n){return n.key===e.key})},isItemVisible:function(e){return this.getItemProp(e,"visible")!==!1},isItemDisabled:function(e){return this.getItemProp(e,"disabled")},isItemFocused:function(e){return this.focusedItemId===this.getItemId(e)},isItemGroup:function(e){return $(e.items)},onItemClick:function(e,n){this.getItemProp(n,"command",{originalEvent:e,item:n.item}),this.$emit("item-toggle",{processedItem:n,expanded:!this.isItemActive(n)})},onItemToggle:function(e){this.$emit("item-toggle",e)},onItemMouseMove:function(e,n){this.$emit("item-mousemove",{originalEvent:e,processedItem:n})},getAriaSetSize:function(){var e=this;return this.items.filter(function(n){return e.isItemVisible(n)&&!e.getItemProp(n,"separator")}).length},getAriaPosInset:function(e){var n=this;return e-this.items.slice(0,e).filter(function(o){return n.isItemVisible(o)&&n.getItemProp(o,"separator")}).length+1},getMenuItemProps:function(e,n){return{action:r.mergeProps({class:this.cx("itemLink"),tabindex:-1},this.getPTOptions("itemLink",e,n)),icon:r.mergeProps({class:[this.cx("itemIcon"),this.getItemProp(e,"icon")]},this.getPTOptions("itemIcon",e,n)),label:r.mergeProps({class:this.cx("itemLabel")},this.getPTOptions("itemLabel",e,n)),submenuicon:r.mergeProps({class:this.cx("submenuIcon")},this.getPTOptions("submenuicon",e,n))}}},components:{ChevronRightIcon:Qn,ChevronDownIcon:Jn},directives:{ripple:qs}},Xs=["tabindex"],Zs=["id","aria-label","aria-expanded","aria-level","aria-setsize","aria-posinset","data-p-focused","data-p-disabled"],Js=["onClick","onMousemove"],Qs=["href","target"];function el(t,e,n,o,i,a){var c=r.resolveComponent("PanelMenuSub",!0),l=r.resolveDirective("ripple");return r.openBlock(),r.createElementBlock("ul",{class:r.normalizeClass(t.cx("submenu")),tabindex:n.tabindex},[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(n.items,function(s,u){return r.openBlock(),r.createElementBlock(r.Fragment,{key:a.getItemKey(s)},[a.isItemVisible(s)&&!a.getItemProp(s,"separator")?(r.openBlock(),r.createElementBlock("li",r.mergeProps({key:0,id:a.getItemId(s),class:[t.cx("item",{processedItem:s}),a.getItemProp(s,"class")],style:a.getItemProp(s,"style"),role:"treeitem","aria-label":a.getItemLabel(s),"aria-expanded":a.isItemGroup(s)?a.isItemActive(s):void 0,"aria-level":n.level+1,"aria-setsize":a.getAriaSetSize(),"aria-posinset":a.getAriaPosInset(u)},{ref_for:!0},a.getPTOptions("item",s,u),{"data-p-focused":a.isItemFocused(s),"data-p-disabled":a.isItemDisabled(s)}),[r.createElementVNode("div",r.mergeProps({class:t.cx("itemContent"),onClick:function(f){return a.onItemClick(f,s)},onMousemove:function(f){return a.onItemMouseMove(f,s)}},{ref_for:!0},a.getPTOptions("itemContent",s,u)),[n.templates.item?(r.openBlock(),r.createBlock(r.resolveDynamicComponent(n.templates.item),{key:1,item:s.item,root:!1,active:a.isItemActive(s),hasSubmenu:a.isItemGroup(s),label:a.getItemLabel(s),props:a.getMenuItemProps(s,u)},null,8,["item","active","hasSubmenu","label","props"])):r.withDirectives((r.openBlock(),r.createElementBlock("a",r.mergeProps({key:0,href:a.getItemProp(s,"url"),class:t.cx("itemLink"),target:a.getItemProp(s,"target"),tabindex:"-1"},{ref_for:!0},a.getPTOptions("itemLink",s,u)),[a.isItemGroup(s)?(r.openBlock(),r.createElementBlock(r.Fragment,{key:0},[n.templates.submenuicon?(r.openBlock(),r.createBlock(r.resolveDynamicComponent(n.templates.submenuicon),r.mergeProps({key:0,class:t.cx("submenuIcon"),active:a.isItemActive(s)},{ref_for:!0},a.getPTOptions("submenuIcon",s,u)),null,16,["class","active"])):(r.openBlock(),r.createBlock(r.resolveDynamicComponent(a.isItemActive(s)?"ChevronDownIcon":"ChevronRightIcon"),r.mergeProps({key:1,class:t.cx("submenuIcon")},{ref_for:!0},a.getPTOptions("submenuIcon",s,u)),null,16,["class"]))],64)):r.createCommentVNode("",!0),n.templates.itemicon?(r.openBlock(),r.createBlock(r.resolveDynamicComponent(n.templates.itemicon),{key:1,item:s.item,class:r.normalizeClass(t.cx("itemIcon"))},null,8,["item","class"])):a.getItemProp(s,"icon")?(r.openBlock(),r.createElementBlock("span",r.mergeProps({key:2,class:[t.cx("itemIcon"),a.getItemProp(s,"icon")]},{ref_for:!0},a.getPTOptions("itemIcon",s,u)),null,16)):r.createCommentVNode("",!0),r.createElementVNode("span",r.mergeProps({class:t.cx("itemLabel")},{ref_for:!0},a.getPTOptions("itemLabel",s,u)),r.toDisplayString(a.getItemLabel(s)),17)],16,Qs)),[[l]])],16,Js),r.createVNode(r.Transition,r.mergeProps({name:"p-toggleable-content"},{ref_for:!0},t.ptm("transition")),{default:r.withCtx(function(){return[r.withDirectives(r.createElementVNode("div",r.mergeProps({class:t.cx("contentContainer")},{ref_for:!0},t.ptm("contentContainer")),[a.isItemVisible(s)&&a.isItemGroup(s)?(r.openBlock(),r.createBlock(c,r.mergeProps({key:0,id:a.getItemId(s)+"_list",role:"group",panelId:n.panelId,focusedItemId:n.focusedItemId,items:s.items,level:n.level+1,templates:n.templates,activeItemPath:n.activeItemPath,onItemToggle:a.onItemToggle,onItemMousemove:e[0]||(e[0]=function(d){return t.$emit("item-mousemove",d)}),pt:t.pt,unstyled:t.unstyled},{ref_for:!0},t.ptm("submenu")),null,16,["id","panelId","focusedItemId","items","level","templates","activeItemPath","onItemToggle","pt","unstyled"])):r.createCommentVNode("",!0)],16),[[r.vShow,a.isItemActive(s)]])]}),_:2},1040)],16,Zs)):r.createCommentVNode("",!0),a.isItemVisible(s)&&a.getItemProp(s,"separator")?(r.openBlock(),r.createElementBlock("li",r.mergeProps({key:1,style:a.getItemProp(s,"style"),class:[t.cx("separator"),a.getItemProp(s,"class")],role:"separator"},{ref_for:!0},t.ptm("separator")),null,16)):r.createCommentVNode("",!0)],64)}),128))],10,Xs)}Ar.render=el;function tl(t,e){return il(t)||rl(t,e)||ol(t,e)||nl()}function nl(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
359
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function ol(t,e){if(t){if(typeof t=="string")return xr(t,e);var n={}.toString.call(t).slice(8,-1);return n==="Object"&&t.constructor&&(n=t.constructor.name),n==="Map"||n==="Set"?Array.from(t):n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?xr(t,e):void 0}}function xr(t,e){(e==null||e>t.length)&&(e=t.length);for(var n=0,o=Array(e);n<e;n++)o[n]=t[n];return o}function rl(t,e){var n=t==null?null:typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(n!=null){var o,i,a,c,l=[],s=!0,u=!1;try{if(a=(n=n.call(t)).next,e!==0)for(;!(s=(o=a.call(n)).done)&&(l.push(o.value),l.length!==e);s=!0);}catch(d){u=!0,i=d}finally{try{if(!s&&n.return!=null&&(c=n.return(),Object(c)!==c))return}finally{if(u)throw i}}return l}}function il(t){if(Array.isArray(t))return t}var Br={name:"PanelMenuList",hostName:"PanelMenu",extends:Cn,emits:["item-toggle","header-focus"],props:{panelId:{type:String,default:null},items:{type:Array,default:null},templates:{type:Object,default:null},expandedKeys:{type:Object,default:null}},searchTimeout:null,searchValue:null,data:function(){return{focused:!1,focusedItem:null,activeItemPath:[]}},watch:{expandedKeys:function(e){this.autoUpdateActiveItemPath(e)}},created:function(){this.autoUpdateActiveItemPath(this.expandedKeys)},methods:{getItemProp:function(e,n){return e&&e.item?Z(e.item[n]):void 0},getItemLabel:function(e){return this.getItemProp(e,"label")},isItemVisible:function(e){return this.getItemProp(e,"visible")!==!1},isItemDisabled:function(e){return this.getItemProp(e,"disabled")},isItemActive:function(e){return this.activeItemPath.some(function(n){return n.key===e.parentKey})},isItemGroup:function(e){return $(e.items)},onFocus:function(e){this.focused=!0,this.focusedItem=this.focusedItem||(this.isElementInPanel(e,e.relatedTarget)?this.findFirstItem():this.findLastItem())},onBlur:function(){this.focused=!1,this.focusedItem=null,this.searchValue=""},onKeyDown:function(e){var n=e.metaKey||e.ctrlKey;switch(e.code){case"ArrowDown":this.onArrowDownKey(e);break;case"ArrowUp":this.onArrowUpKey(e);break;case"ArrowLeft":this.onArrowLeftKey(e);break;case"ArrowRight":this.onArrowRightKey(e);break;case"Home":this.onHomeKey(e);break;case"End":this.onEndKey(e);break;case"Space":this.onSpaceKey(e);break;case"Enter":case"NumpadEnter":this.onEnterKey(e);break;case"Escape":case"Tab":case"PageDown":case"PageUp":case"Backspace":case"ShiftLeft":case"ShiftRight":break;default:!n&&Va(e.key)&&this.searchItems(e,e.key);break}},onArrowDownKey:function(e){var n=$(this.focusedItem)?this.findNextItem(this.focusedItem):this.findFirstItem();this.changeFocusedItem({originalEvent:e,processedItem:n,focusOnNext:!0}),e.preventDefault()},onArrowUpKey:function(e){var n=$(this.focusedItem)?this.findPrevItem(this.focusedItem):this.findLastItem();this.changeFocusedItem({originalEvent:e,processedItem:n,selfCheck:!0}),e.preventDefault()},onArrowLeftKey:function(e){var n=this;if($(this.focusedItem)){var o=this.activeItemPath.some(function(i){return i.key===n.focusedItem.key});o?this.activeItemPath=this.activeItemPath.filter(function(i){return i.key!==n.focusedItem.key}):this.focusedItem=$(this.focusedItem.parent)?this.focusedItem.parent:this.focusedItem,e.preventDefault()}},onArrowRightKey:function(e){var n=this;if($(this.focusedItem)){var o=this.isItemGroup(this.focusedItem);if(o){var i=this.activeItemPath.some(function(a){return a.key===n.focusedItem.key});i?this.onArrowDownKey(e):(this.activeItemPath=this.activeItemPath.filter(function(a){return a.parentKey!==n.focusedItem.parentKey}),this.activeItemPath.push(this.focusedItem))}e.preventDefault()}},onHomeKey:function(e){this.changeFocusedItem({originalEvent:e,processedItem:this.findFirstItem(),allowHeaderFocus:!1}),e.preventDefault()},onEndKey:function(e){this.changeFocusedItem({originalEvent:e,processedItem:this.findLastItem(),focusOnNext:!0,allowHeaderFocus:!1}),e.preventDefault()},onEnterKey:function(e){if($(this.focusedItem)){var n=ke(this.$el,'li[id="'.concat("".concat(this.focusedItemId),'"]')),o=n&&(ke(n,'[data-pc-section="itemlink"]')||ke(n,"a,button"));o?o.click():n&&n.click()}e.preventDefault()},onSpaceKey:function(e){this.onEnterKey(e)},onItemToggle:function(e){var n=e.processedItem,o=e.expanded;this.expandedKeys?this.$emit("item-toggle",{item:n.item,expanded:o}):(this.activeItemPath=this.activeItemPath.filter(function(i){return i.parentKey!==n.parentKey}),o&&this.activeItemPath.push(n)),this.focusedItem=n,xt(this.$el)},onItemMouseMove:function(e){this.focused&&(this.focusedItem=e.processedItem)},isElementInPanel:function(e,n){var o=e.currentTarget.closest('[data-pc-section="panel"]');return o&&o.contains(n)},isItemMatched:function(e){var n;return this.isValidItem(e)&&((n=this.getItemLabel(e))===null||n===void 0?void 0:n.toLocaleLowerCase(this.searchLocale).startsWith(this.searchValue.toLocaleLowerCase(this.searchLocale)))},isVisibleItem:function(e){return!!e&&(e.level===0||this.isItemActive(e))&&this.isItemVisible(e)},isValidItem:function(e){return!!e&&!this.isItemDisabled(e)&&!this.getItemProp(e,"separator")},findFirstItem:function(){var e=this;return this.visibleItems.find(function(n){return e.isValidItem(n)})},findLastItem:function(){var e=this;return qo(this.visibleItems,function(n){return e.isValidItem(n)})},findNextItem:function(e){var n=this,o=this.visibleItems.findIndex(function(a){return a.key===e.key}),i=o<this.visibleItems.length-1?this.visibleItems.slice(o+1).find(function(a){return n.isValidItem(a)}):void 0;return i||e},findPrevItem:function(e){var n=this,o=this.visibleItems.findIndex(function(a){return a.key===e.key}),i=o>0?qo(this.visibleItems.slice(0,o),function(a){return n.isValidItem(a)}):void 0;return i||e},searchItems:function(e,n){var o=this;this.searchValue=(this.searchValue||"")+n;var i=null,a=!1;if($(this.focusedItem)){var c=this.visibleItems.findIndex(function(l){return l.key===o.focusedItem.key});i=this.visibleItems.slice(c).find(function(l){return o.isItemMatched(l)}),i=Ue(i)?this.visibleItems.slice(0,c).find(function(l){return o.isItemMatched(l)}):i}else i=this.visibleItems.find(function(l){return o.isItemMatched(l)});return $(i)&&(a=!0),Ue(i)&&Ue(this.focusedItem)&&(i=this.findFirstItem()),$(i)&&this.changeFocusedItem({originalEvent:e,processedItem:i,allowHeaderFocus:!1}),this.searchTimeout&&clearTimeout(this.searchTimeout),this.searchTimeout=setTimeout(function(){o.searchValue="",o.searchTimeout=null},500),a},changeFocusedItem:function(e){var n=e.originalEvent,o=e.processedItem,i=e.focusOnNext,a=e.selfCheck,c=e.allowHeaderFocus,l=c===void 0?!0:c;$(this.focusedItem)&&this.focusedItem.key!==o.key?(this.focusedItem=o,this.scrollInView()):l&&this.$emit("header-focus",{originalEvent:n,focusOnNext:i,selfCheck:a})},scrollInView:function(){var e=ke(this.$el,'li[id="'.concat("".concat(this.focusedItemId),'"]'));e&&e.scrollIntoView&&e.scrollIntoView({block:"nearest",inline:"start"})},autoUpdateActiveItemPath:function(e){var n=this;this.activeItemPath=Object.entries(e||{}).reduce(function(o,i){var a=tl(i,2),c=a[0],l=a[1];if(l){var s=n.findProcessedItemByItemKey(c);s&&o.push(s)}return o},[])},findProcessedItemByItemKey:function(e,n){var o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0;if(n=n||o===0&&this.processedItems,!n)return null;for(var i=0;i<n.length;i++){var a=n[i];if(this.getItemProp(a,"key")===e)return a;var c=this.findProcessedItemByItemKey(e,a.items,o+1);if(c)return c}},createProcessedItems:function(e){var n=this,o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:"",c=[];return e&&e.forEach(function(l,s){var u=(a!==""?a+"_":"")+s,d={item:l,index:s,level:o,key:u,parent:i,parentKey:a};d.items=n.createProcessedItems(l.items,o+1,d,u),c.push(d)}),c},flatItems:function(e){var n=this,o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[];return e&&e.forEach(function(i){n.isVisibleItem(i)&&(o.push(i),n.flatItems(i.items,o))}),o}},computed:{processedItems:function(){return this.createProcessedItems(this.items||[])},visibleItems:function(){return this.flatItems(this.processedItems)},focusedItemId:function(){return $(this.focusedItem)?"".concat(this.panelId,"_").concat(this.focusedItem.key):null}},components:{PanelMenuSub:Ar}};function al(t,e,n,o,i,a){var c=r.resolveComponent("PanelMenuSub");return r.openBlock(),r.createBlock(c,r.mergeProps({id:n.panelId+"_list",class:t.cx("rootList"),role:"tree",tabindex:-1,"aria-activedescendant":i.focused?a.focusedItemId:void 0,panelId:n.panelId,focusedItemId:i.focused?a.focusedItemId:void 0,items:a.processedItems,templates:n.templates,activeItemPath:i.activeItemPath,onFocus:a.onFocus,onBlur:a.onBlur,onKeydown:a.onKeyDown,onItemToggle:a.onItemToggle,onItemMousemove:a.onItemMouseMove,pt:t.pt,unstyled:t.unstyled},t.ptm("rootList")),null,16,["id","class","aria-activedescendant","panelId","focusedItemId","items","templates","activeItemPath","onFocus","onBlur","onKeydown","onItemToggle","onItemMousemove","pt","unstyled"])}Br.render=al;function Ft(t){"@babel/helpers - typeof";return Ft=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Ft(t)}function $r(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);e&&(o=o.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),n.push.apply(n,o)}return n}function sl(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?$r(Object(n),!0).forEach(function(o){ll(t,o,n[o])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):$r(Object(n)).forEach(function(o){Object.defineProperty(t,o,Object.getOwnPropertyDescriptor(n,o))})}return t}function ll(t,e,n){return(e=cl(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function cl(t){var e=ul(t,"string");return Ft(e)=="symbol"?e:e+""}function ul(t,e){if(Ft(t)!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var o=n.call(t,e);if(Ft(o)!="object")return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}var Or={name:"PanelMenu",extends:Ys,inheritAttrs:!1,emits:["update:expandedKeys","panel-open","panel-close"],data:function(){return{activeItem:null,activeItems:[]}},methods:{getItemProp:function(e,n){return e?Z(e[n]):void 0},getItemLabel:function(e){return this.getItemProp(e,"label")},getPTOptions:function(e,n,o){return this.ptm(e,{context:{index:o,active:this.isItemActive(n),focused:this.isItemFocused(n),disabled:this.isItemDisabled(n)}})},isItemActive:function(e){return this.expandedKeys?this.expandedKeys[this.getItemProp(e,"key")]:this.multiple?this.activeItems.some(function(n){return ct(e,n)}):ct(e,this.activeItem)},isItemVisible:function(e){return this.getItemProp(e,"visible")!==!1},isItemDisabled:function(e){return this.getItemProp(e,"disabled")},isItemFocused:function(e){return ct(e,this.activeItem)},isItemGroup:function(e){return $(e.items)},getPanelId:function(e){return"".concat(this.$id,"_").concat(e)},getPanelKey:function(e){return this.getPanelId(e)},getHeaderId:function(e){return"".concat(this.getPanelId(e),"_header")},getContentId:function(e){return"".concat(this.getPanelId(e),"_content")},onHeaderClick:function(e,n){if(this.isItemDisabled(n)){e.preventDefault();return}n.command&&n.command({originalEvent:e,item:n}),this.changeActiveItem(e,n),xt(e.currentTarget)},onHeaderKeyDown:function(e,n){switch(e.code){case"ArrowDown":this.onHeaderArrowDownKey(e);break;case"ArrowUp":this.onHeaderArrowUpKey(e);break;case"Home":this.onHeaderHomeKey(e);break;case"End":this.onHeaderEndKey(e);break;case"Enter":case"NumpadEnter":case"Space":this.onHeaderEnterKey(e,n);break}},onHeaderArrowDownKey:function(e){var n=Bt(e.currentTarget,"data-p-active")===!0?ke(e.currentTarget.nextElementSibling,'[data-pc-section="rootlist"]'):null;n?xt(n):this.updateFocusedHeader({originalEvent:e,focusOnNext:!0}),e.preventDefault()},onHeaderArrowUpKey:function(e){var n=this.findPrevHeader(e.currentTarget.parentElement)||this.findLastHeader(),o=Bt(n,"data-p-active")===!0?ke(n.nextElementSibling,'[data-pc-section="rootlist"]'):null;o?xt(o):this.updateFocusedHeader({originalEvent:e,focusOnNext:!1}),e.preventDefault()},onHeaderHomeKey:function(e){this.changeFocusedHeader(e,this.findFirstHeader()),e.preventDefault()},onHeaderEndKey:function(e){this.changeFocusedHeader(e,this.findLastHeader()),e.preventDefault()},onHeaderEnterKey:function(e,n){var o=ke(e.currentTarget,'[data-pc-section="headerlink"]');o?o.click():this.onHeaderClick(e,n),e.preventDefault()},findNextHeader:function(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,o=n?e:e.nextElementSibling,i=ke(o,'[data-pc-section="header"]');return i?Bt(i,"data-p-disabled")?this.findNextHeader(i.parentElement):i:null},findPrevHeader:function(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,o=n?e:e.previousElementSibling,i=ke(o,'[data-pc-section="header"]');return i?Bt(i,"data-p-disabled")?this.findPrevHeader(i.parentElement):i:null},findFirstHeader:function(){return this.findNextHeader(this.$el.firstElementChild,!0)},findLastHeader:function(){return this.findPrevHeader(this.$el.lastElementChild,!0)},updateFocusedHeader:function(e){var n=e.originalEvent,o=e.focusOnNext,i=e.selfCheck,a=n.currentTarget.closest('[data-pc-section="panel"]'),c=i?ke(a,'[data-pc-section="header"]'):o?this.findNextHeader(a):this.findPrevHeader(a);c?this.changeFocusedHeader(n,c):o?this.onHeaderHomeKey(n):this.onHeaderEndKey(n)},changeActiveItem:function(e,n){var o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;if(!this.isItemDisabled(n)){var i=this.isItemActive(n),a=i?"panel-close":"panel-open";this.activeItem=o?n:this.activeItem&&ct(n,this.activeItem)?null:n,this.multiple&&(this.activeItems.some(function(c){return ct(n,c)})?this.activeItems=this.activeItems.filter(function(c){return!ct(n,c)}):this.activeItems.push(n)),this.changeExpandedKeys({item:n,expanded:!i}),this.$emit(a,{originalEvent:e,item:n})}},changeExpandedKeys:function(e){var n=e.item,o=e.expanded,i=o===void 0?!1:o;if(this.expandedKeys){var a=sl({},this.expandedKeys);i?a[n.key]=!0:delete a[n.key],this.$emit("update:expandedKeys",a)}},changeFocusedHeader:function(e,n){n&&xt(n)},getMenuItemProps:function(e,n){return{icon:r.mergeProps({class:[this.cx("headerIcon"),this.getItemProp(e,"icon")]},this.getPTOptions("headerIcon",e,n)),label:r.mergeProps({class:this.cx("headerLabel")},this.getPTOptions("headerLabel",e,n))}}},components:{PanelMenuList:Br,ChevronRightIcon:Qn,ChevronDownIcon:Jn}},dl=["id"],ml=["id","tabindex","aria-label","aria-expanded","aria-controls","aria-disabled","onClick","onKeydown","data-p-active","data-p-disabled"],fl=["href"],pl=["id","aria-labelledby"];function hl(t,e,n,o,i,a){var c=r.resolveComponent("PanelMenuList");return r.openBlock(),r.createElementBlock("div",r.mergeProps({id:t.$id,class:t.cx("root")},t.ptmi("root")),[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(t.model,function(l,s){return r.openBlock(),r.createElementBlock(r.Fragment,{key:a.getPanelKey(s)},[a.isItemVisible(l)?(r.openBlock(),r.createElementBlock("div",r.mergeProps({key:0,style:a.getItemProp(l,"style"),class:[t.cx("panel"),a.getItemProp(l,"class")]},{ref_for:!0},t.ptm("panel")),[r.createElementVNode("div",r.mergeProps({id:a.getHeaderId(s),class:[t.cx("header",{item:l}),a.getItemProp(l,"headerClass")],tabindex:a.isItemDisabled(l)?-1:t.tabindex,role:"button","aria-label":a.getItemLabel(l),"aria-expanded":a.isItemActive(l),"aria-controls":a.getContentId(s),"aria-disabled":a.isItemDisabled(l),onClick:function(d){return a.onHeaderClick(d,l)},onKeydown:function(d){return a.onHeaderKeyDown(d,l)}},{ref_for:!0},a.getPTOptions("header",l,s),{"data-p-active":a.isItemActive(l),"data-p-disabled":a.isItemDisabled(l)}),[r.createElementVNode("div",r.mergeProps({class:t.cx("headerContent")},{ref_for:!0},a.getPTOptions("headerContent",l,s)),[t.$slots.item?(r.openBlock(),r.createBlock(r.resolveDynamicComponent(t.$slots.item),{key:1,item:l,root:!0,active:a.isItemActive(l),hasSubmenu:a.isItemGroup(l),label:a.getItemLabel(l),props:a.getMenuItemProps(l,s)},null,8,["item","active","hasSubmenu","label","props"])):(r.openBlock(),r.createElementBlock("a",r.mergeProps({key:0,href:a.getItemProp(l,"url"),class:t.cx("headerLink"),tabindex:-1},{ref_for:!0},a.getPTOptions("headerLink",l,s)),[a.getItemProp(l,"items")?r.renderSlot(t.$slots,"submenuicon",{key:0,active:a.isItemActive(l)},function(){return[(r.openBlock(),r.createBlock(r.resolveDynamicComponent(a.isItemActive(l)?"ChevronDownIcon":"ChevronRightIcon"),r.mergeProps({class:t.cx("submenuIcon")},{ref_for:!0},a.getPTOptions("submenuIcon",l,s)),null,16,["class"]))]}):r.createCommentVNode("",!0),t.$slots.headericon?(r.openBlock(),r.createBlock(r.resolveDynamicComponent(t.$slots.headericon),{key:1,item:l,class:r.normalizeClass([t.cx("headerIcon"),a.getItemProp(l,"icon")])},null,8,["item","class"])):a.getItemProp(l,"icon")?(r.openBlock(),r.createElementBlock("span",r.mergeProps({key:2,class:[t.cx("headerIcon"),a.getItemProp(l,"icon")]},{ref_for:!0},a.getPTOptions("headerIcon",l,s)),null,16)):r.createCommentVNode("",!0),r.createElementVNode("span",r.mergeProps({class:t.cx("headerLabel")},{ref_for:!0},a.getPTOptions("headerLabel",l,s)),r.toDisplayString(a.getItemLabel(l)),17)],16,fl))],16)],16,ml),r.createVNode(r.Transition,r.mergeProps({name:"p-toggleable-content"},{ref_for:!0},t.ptm("transition")),{default:r.withCtx(function(){return[r.withDirectives(r.createElementVNode("div",r.mergeProps({id:a.getContentId(s),class:t.cx("contentContainer"),role:"region","aria-labelledby":a.getHeaderId(s)},{ref_for:!0},t.ptm("contentContainer")),[a.getItemProp(l,"items")?(r.openBlock(),r.createElementBlock("div",r.mergeProps({key:0,class:t.cx("content")},{ref_for:!0},t.ptm("content")),[r.createVNode(c,{panelId:a.getPanelId(s),items:a.getItemProp(l,"items"),templates:t.$slots,expandedKeys:t.expandedKeys,onItemToggle:a.changeExpandedKeys,onHeaderFocus:a.updateFocusedHeader,pt:t.pt,unstyled:t.unstyled},null,8,["panelId","items","templates","expandedKeys","onItemToggle","onHeaderFocus","pt","unstyled"])],16)):r.createCommentVNode("",!0)],16,pl),[[r.vShow,a.isItemActive(l)]])]}),_:2},1040)],16)):r.createCommentVNode("",!0)],64)}),128))],16,dl)}Or.render=hl;const gl={class:"panel-menu-wrapper select-none"},yl=["data-active","onClick"],vl={key:0,class:"material-symbols-outlined item-menu-icon-left"},bl=["textContent"],Cl=["onClick"],wl={key:0,class:"material-symbols-outlined item-menu-icon-left"},kl=["textContent"],Sl={key:2,class:r.normalizeClass(["item-menu"])},_l={key:0,class:"material-symbols-outlined item-menu-icon-left"},El=["textContent"],Tl=Pe(r.defineComponent({__name:"NavMenu",props:{items:{}},setup(t){const e=t,n=(l,s)=>{l.disabled||l.command&&typeof l.command=="function"||s()},o=(l,s)=>{s.disabled||typeof s.command=="function"&&s.command(l)},i=l=>typeof l.label=="function"?l.label():l.label??"Item",a=(l,s,u)=>l.to?(l.exact=l.exact??!1,l.exact?u:s):!1,c=r.computed(()=>e.items.filter(l=>l.visible===!1?!1:typeof l.visible=="function"?l.visible()===!0:!0));return(l,s)=>{const u=r.resolveComponent("router-link");return r.openBlock(),r.createElementBlock("div",gl,[r.createVNode(r.unref(Or),{model:c.value,unstyled:!0},{item:r.withCtx(({item:d,active:f})=>[d.to?(r.openBlock(),r.createBlock(u,{key:0,to:d.to,custom:""},{default:r.withCtx(({navigate:h,isExactActive:p,isActive:v})=>[r.createElementVNode("a",{class:r.normalizeClass(["item-menu",{disabled:d.disabled}]),"data-active":a(d,v,p),onClick:r.withModifiers(w=>n(d,h),["prevent"])},[d.icon?(r.openBlock(),r.createElementBlock("span",vl,r.toDisplayString(d.icon),1)):r.createCommentVNode("",!0),r.createElementVNode("span",{textContent:r.toDisplayString(i(d))},null,8,bl)],10,yl)]),_:2},1032,["to"])):typeof d.command=="function"?(r.openBlock(),r.createElementBlock("span",{key:1,class:r.normalizeClass(["item-menu",{disabled:d.disabled}]),onClick:r.withModifiers(h=>o(h,d),["stop"])},[d.icon?(r.openBlock(),r.createElementBlock("span",wl,r.toDisplayString(d.icon),1)):r.createCommentVNode("",!0),r.createElementVNode("span",{textContent:r.toDisplayString(i(d))},null,8,kl)],10,Cl)):(r.openBlock(),r.createElementBlock("a",Sl,[d.icon?(r.openBlock(),r.createElementBlock("span",_l,r.toDisplayString(d.icon),1)):r.createCommentVNode("",!0),r.createElementVNode("span",{textContent:r.toDisplayString(i(d))},null,8,El),s[0]||(s[0]=r.createElementVNode("div",{class:"sep"},null,-1)),r.createElementVNode("span",{class:r.normalizeClass(["material-symbols-outlined arrow",{"--expand":f}])}," chevron_right ",2)]))]),_:1},8,["model"])])}}}),[["__scopeId","data-v-17765f50"]]),Il=r.defineComponent({__name:"HelpButton",props:{title:{},tooltip:{},size:{},color:{},filled:{type:Boolean},icon:{}},setup(t){const e=t;r.useSlots();const n=r.ref(!1);function o(){n.value=!0}return(i,a)=>(r.openBlock(),r.createElementBlock(r.Fragment,null,[r.renderSlot(i.$slots,"anchor",r.normalizeProps(r.guardReactiveProps({Show:o})),()=>[r.createVNode(Ae,{button:!0,icon:e.icon??"help",size:e.size??"sm",filled:e.filled,color:e.color??"text",tooltip:e.tooltip??"Ajuda",style:{minWidth:"fit-content"},onClick:o},null,8,["icon","size","filled","color","tooltip"])]),r.createVNode(zo,{visible:n.value,"onUpdate:visible":a[0]||(a[0]=c=>n.value=c),position:"center"},{title:r.withCtx(()=>[r.createElementVNode("b",null,r.toDisplayString(e.title??"Ajuda"),1)]),default:r.withCtx(()=>[r.renderSlot(i.$slots,"default")]),_:3},8,["visible"])],64))}}),Pl=Pe(r.defineComponent({__name:"Content",props:{fluid:{type:Boolean}},setup(t){const e=t;return r.useSlots(),(n,o)=>(r.openBlock(),r.createElementBlock("div",{class:r.normalizeClass(["sf-content-wrapper",{"--fluid":e.fluid}])},[r.renderSlot(n.$slots,"default",{},void 0,!0)],2))}}),[["__scopeId","data-v-32e5acfa"]]);function Al(t){return r.getCurrentScope()?(r.onScopeDispose(t),!0):!1}const xl=typeof window<"u"&&typeof document<"u";typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope;function Bl(t){return Array.isArray(t)?t:[t]}function $l(t){return r.getCurrentInstance()}function Ol(t,e=!0,n){$l()?r.onMounted(t,n):e?t():r.nextTick(t)}const Lr=xl?window:void 0;function dt(t){var e;const n=r.toValue(t);return(e=n?.$el)!=null?e:n}function Ll(){const t=r.shallowRef(!1),e=r.getCurrentInstance();return e&&r.onMounted(()=>{t.value=!0},e),t}function Nl(t){const e=Ll();return r.computed(()=>(e.value,!!t()))}function Nr(t,e,n={}){const{window:o=Lr,...i}=n;let a;const c=Nl(()=>o&&"ResizeObserver"in o),l=()=>{a&&(a.disconnect(),a=void 0)},s=r.computed(()=>{const f=r.toValue(t);return Array.isArray(f)?f.map(h=>dt(h)):[dt(f)]}),u=r.watch(s,f=>{if(l(),c.value&&o){a=new ResizeObserver(e);for(const h of f)h&&a.observe(h,i)}},{immediate:!0,flush:"post"}),d=()=>{l(),u()};return Al(d),{isSupported:c,stop:d}}function Ml(t,e={width:0,height:0},n={}){const{window:o=Lr,box:i="content-box"}=n,a=r.computed(()=>{var f,h;return(h=(f=dt(t))==null?void 0:f.namespaceURI)==null?void 0:h.includes("svg")}),c=r.shallowRef(e.width),l=r.shallowRef(e.height),{stop:s}=Nr(t,([f])=>{const h=i==="border-box"?f.borderBoxSize:i==="content-box"?f.contentBoxSize:f.devicePixelContentBoxSize;if(o&&a.value){const p=dt(t);if(p){const v=p.getBoundingClientRect();c.value=v.width,l.value=v.height}}else if(h){const p=Bl(h);c.value=p.reduce((v,{inlineSize:w})=>v+w,0),l.value=p.reduce((v,{blockSize:w})=>v+w,0)}else c.value=f.contentRect.width,l.value=f.contentRect.height},n);Ol(()=>{const f=dt(t);f&&(c.value="offsetWidth"in f?f.offsetWidth:e.width,l.value="offsetHeight"in f?f.offsetHeight:e.height)});const u=r.watch(()=>dt(t),f=>{c.value=f?e.width:0,l.value=f?e.height:0});function d(){s(),u()}return{width:c,height:l,stop:d}}const Mr=Symbol();function Dl(){return r.inject(Mr)}const zt=()=>Dl(),Rl={class:"body"},Vl={class:"my-3 name"},jl={class:"login-buttons py-3 mx-auto"},Hl={class:"my-3 footer"},Fl=Pe(r.defineComponent({__name:"Login",props:{enableAdlogin:{type:Boolean}},setup(t){const e=t,n=r.ref(null),{width:o}=Ml(n),i=r.computed(()=>o.value>300?"md":"sm"),a=Un.UseAuth(),{ClearStoredTheme:c,EnableLightMode:l}=zt(),s=r.computed(()=>e.enableAdlogin===!0),u=r.ref(!1),d=r.ref(null);async function f(h){u.value||(u.value=!0,d.value=h,await new Promise(p=>setTimeout(p,400)),c(),h==="govbr"?a.LoginGovBr():s&&h==="sf"&&a.oidc.login())}return r.onBeforeMount(()=>{l()}),(h,p)=>(r.openBlock(),r.createElementBlock("div",Rl,[p[6]||(p[6]=r.createElementVNode("div",{class:"bg"},null,-1)),r.createElementVNode("div",{class:"card",ref_key:"cardRef",ref:n},[p[5]||(p[5]=r.createElementVNode("div",{class:"my-3 logo"},null,-1)),r.createElementVNode("div",Vl,[r.renderSlot(h.$slots,"name",{},()=>[p[2]||(p[2]=r.createTextVNode("Nome do sistema",-1))],!0)]),r.createElementVNode("div",jl,[r.renderSlot(h.$slots,"buttons",r.normalizeProps(r.guardReactiveProps({Login:f})),()=>[r.createVNode(r.unref(Pt),{size:i.value,icon:"person","icon-filled":!0,class:r.normalizeClass("w-full text-nowrap justify-content-center"),loading:u.value&&d.value==="govbr",onClick:p[0]||(p[0]=v=>f("govbr"))},{default:r.withCtx(()=>p[3]||(p[3]=[r.createTextVNode(" Entrar com ",-1),r.createElementVNode("b",null,"Gov.br",-1)])),_:1,__:[3]},8,["size","loading"]),s.value?(r.openBlock(),r.createBlock(r.unref(Pt),{key:0,size:i.value,icon:"person","icon-filled":!0,class:r.normalizeClass("w-full text-nowrap justify-content-center"),loading:u.value&&d.value==="sf",onClick:p[1]||(p[1]=v=>f("sf"))},{default:r.withCtx(()=>p[4]||(p[4]=[r.createTextVNode(" Entrar com ",-1),r.createElementVNode("b",null,"SF",-1)])),_:1,__:[4]},8,["size","loading"])):r.createCommentVNode("",!0),r.renderSlot(h.$slots,"extra-button",{},void 0,!0)],!0)]),r.createElementVNode("div",Hl,[r.renderSlot(h.$slots,"footer",{},void 0,!0)])],512)]))}}),[["__scopeId","data-v-a9cae4be"]]);class zl{get storedTheme(){return localStorage.getItem("color-scheme")}get IsDark(){return document.documentElement.classList.contains("dark")}Toggle(){this.IsDark?this.EnableLightMode():this.EnableDarkMode()}EnableDarkMode(){document.documentElement.classList.add("dark"),document.documentElement.classList.remove("light"),localStorage.setItem("color-scheme","dark")}EnableLightMode(){document.documentElement.classList.remove("dark"),document.documentElement.classList.add("light"),localStorage.setItem("color-scheme","light")}SetInitialTheme(){if(this.storedTheme==="light")return this.EnableLightMode();if(this.storedTheme==="dark")return this.EnableDarkMode();if(window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches)return this.EnableDarkMode();this.EnableLightMode()}ClearStoredTheme(){localStorage.removeItem("color-scheme")}}const Ut=new zl,Dr="SweetAlert2:",Ul=t=>{const e=[];for(let n=0;n<t.length;n++)e.indexOf(t[n])===-1&&e.push(t[n]);return e},no=t=>t.charAt(0).toUpperCase()+t.slice(1),pe=t=>Array.prototype.slice.call(t),de=t=>{console.warn(`${Dr} ${typeof t=="object"?t.join(" "):t}`)},ot=t=>{console.error(`${Dr} ${t}`)},Rr=[],Wl=t=>{Rr.includes(t)||(Rr.push(t),de(t))},Kl=(t,e)=>{Wl(`"${t}" is deprecated and will be removed in the next major release. Please use "${e}" instead.`)},kn=t=>typeof t=="function"?t():t,oo=t=>t&&typeof t.toPromise=="function",Wt=t=>oo(t)?t.toPromise():Promise.resolve(t),ro=t=>t&&Promise.resolve(t)===t,mt={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},Gl=["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"],ql={},Yl=["allowOutsideClick","allowEnterKey","backdrop","focusConfirm","focusDeny","focusCancel","returnFocus","heightAuto","keydownListenerCapture"],Vr=t=>Object.prototype.hasOwnProperty.call(mt,t),jr=t=>Gl.indexOf(t)!==-1,io=t=>ql[t],Xl=t=>{Vr(t)||de(`Unknown parameter "${t}"`)},Zl=t=>{Yl.includes(t)&&de(`The parameter "${t}" is incompatible with toasts`)},Jl=t=>{io(t)&&Kl(t,io(t))},Ql=t=>{!t.backdrop&&t.allowOutsideClick&&de('"allowOutsideClick" parameter requires `backdrop` parameter to be set to `true`');for(const e in t)Xl(e),t.toast&&Zl(e),Jl(e)},ec="swal2-",Hr=t=>{const e={};for(const n in t)e[t[n]]=ec+t[n];return e},g=Hr(["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"]),Kt=Hr(["success","warning","info","question","error"]),J=()=>document.body.querySelector(`.${g.container}`),Gt=t=>{const e=J();return e?e.querySelector(t):null},ge=t=>Gt(`.${t}`),R=()=>ge(g.popup),qt=()=>ge(g.icon),Fr=()=>ge(g.title),Sn=()=>ge(g["html-container"]),zr=()=>ge(g.image),Ur=()=>ge(g["progress-steps"]),_n=()=>ge(g["validation-message"]),Ee=()=>Gt(`.${g.actions} .${g.confirm}`),Ge=()=>Gt(`.${g.actions} .${g.deny}`),tc=()=>ge(g["input-label"]),ft=()=>Gt(`.${g.loader}`),rt=()=>Gt(`.${g.actions} .${g.cancel}`),Yt=()=>ge(g.actions),Wr=()=>ge(g.footer),En=()=>ge(g["timer-progress-bar"]),ao=()=>ge(g.close),nc=`
|
|
360
360
|
a[href],
|
|
361
361
|
area[href],
|
|
362
362
|
input:not([disabled]),
|
|
@@ -371,7 +371,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
371
371
|
audio[controls],
|
|
372
372
|
video[controls],
|
|
373
373
|
summary
|
|
374
|
-
`,
|
|
374
|
+
`,so=()=>{const t=pe(R().querySelectorAll('[tabindex]:not([tabindex="-1"]):not([tabindex="0"])')).sort((n,o)=>{const i=parseInt(n.getAttribute("tabindex")),a=parseInt(o.getAttribute("tabindex"));return i>a?1:i<a?-1:0}),e=pe(R().querySelectorAll(nc)).filter(n=>n.getAttribute("tabindex")!=="-1");return Ul(t.concat(e)).filter(n=>he(n))},lo=()=>Ne(document.body,g.shown)&&!Ne(document.body,g["toast-shown"])&&!Ne(document.body,g["no-backdrop"]),Tn=()=>R()&&Ne(R(),g.toast),oc=()=>R().hasAttribute("data-loading"),pt={previousBodyPadding:null},Q=(t,e)=>{if(t.textContent="",e){const o=new DOMParser().parseFromString(e,"text/html");pe(o.querySelector("head").childNodes).forEach(i=>{t.appendChild(i)}),pe(o.querySelector("body").childNodes).forEach(i=>{t.appendChild(i)})}},Ne=(t,e)=>{if(!e)return!1;const n=e.split(/\s+/);for(let o=0;o<n.length;o++)if(!t.classList.contains(n[o]))return!1;return!0},rc=(t,e)=>{pe(t.classList).forEach(n=>{!Object.values(g).includes(n)&&!Object.values(Kt).includes(n)&&!Object.values(e.showClass).includes(n)&&t.classList.remove(n)})},ye=(t,e,n)=>{if(rc(t,e),e.customClass&&e.customClass[n]){if(typeof e.customClass[n]!="string"&&!e.customClass[n].forEach)return de(`Invalid type of customClass.${n}! Expected string or iterable object, got "${typeof e.customClass[n]}"`);M(t,e.customClass[n])}},co=(t,e)=>{if(!e)return null;switch(e){case"select":case"textarea":case"file":return t.querySelector(`.${g.popup} > .${g[e]}`);case"checkbox":return t.querySelector(`.${g.popup} > .${g.checkbox} input`);case"radio":return t.querySelector(`.${g.popup} > .${g.radio} input:checked`)||t.querySelector(`.${g.popup} > .${g.radio} input:first-child`);case"range":return t.querySelector(`.${g.popup} > .${g.range} input`);default:return t.querySelector(`.${g.popup} > .${g.input}`)}},Kr=t=>{if(t.focus(),t.type!=="file"){const e=t.value;t.value="",t.value=e}},Gr=(t,e,n)=>{!t||!e||(typeof e=="string"&&(e=e.split(/\s+/).filter(Boolean)),e.forEach(o=>{Array.isArray(t)?t.forEach(i=>{n?i.classList.add(o):i.classList.remove(o)}):n?t.classList.add(o):t.classList.remove(o)}))},M=(t,e)=>{Gr(t,e,!0)},Be=(t,e)=>{Gr(t,e,!1)},qe=(t,e)=>{const n=pe(t.childNodes);for(let o=0;o<n.length;o++)if(Ne(n[o],e))return n[o]},Xt=(t,e,n)=>{n===`${parseInt(n)}`&&(n=parseInt(n)),n||parseInt(n)===0?t.style[e]=typeof n=="number"?`${n}px`:n:t.style.removeProperty(e)},Y=(t,e="flex")=>{t.style.display=e},ee=t=>{t.style.display="none"},qr=(t,e,n,o)=>{const i=t.querySelector(e);i&&(i.style[n]=o)},In=(t,e,n)=>{e?Y(t,n):ee(t)},he=t=>!!(t&&(t.offsetWidth||t.offsetHeight||t.getClientRects().length)),ic=()=>!he(Ee())&&!he(Ge())&&!he(rt()),Yr=t=>t.scrollHeight>t.clientHeight,Xr=t=>{const e=window.getComputedStyle(t),n=parseFloat(e.getPropertyValue("animation-duration")||"0"),o=parseFloat(e.getPropertyValue("transition-duration")||"0");return n>0||o>0},uo=(t,e=!1)=>{const n=En();he(n)&&(e&&(n.style.transition="none",n.style.width="100%"),setTimeout(()=>{n.style.transition=`width ${t/1e3}s linear`,n.style.width="0%"},10))},ac=()=>{const t=En(),e=parseInt(window.getComputedStyle(t).width);t.style.removeProperty("transition"),t.style.width="100%";const n=parseInt(window.getComputedStyle(t).width),o=e/n*100;t.style.removeProperty("transition"),t.style.width=`${o}%`},Zr=()=>typeof window>"u"||typeof document>"u",sc=100,A={},lc=()=>{A.previousActiveElement&&A.previousActiveElement.focus?(A.previousActiveElement.focus(),A.previousActiveElement=null):document.body&&document.body.focus()},cc=t=>new Promise(e=>{if(!t)return e();const n=window.scrollX,o=window.scrollY;A.restoreFocusTimeout=setTimeout(()=>{lc(),e()},sc),window.scrollTo(n,o)}),uc=`
|
|
375
375
|
<div aria-labelledby="${g.title}" aria-describedby="${g["html-container"]}" class="${g.popup}" tabindex="-1">
|
|
376
376
|
<button type="button" class="${g.close}"></button>
|
|
377
377
|
<ul class="${g["progress-steps"]}"></ul>
|
|
@@ -404,22 +404,22 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
404
404
|
<div class="${g["timer-progress-bar"]}"></div>
|
|
405
405
|
</div>
|
|
406
406
|
</div>
|
|
407
|
-
`.replace(/(^|\n)\s*/g,""),
|
|
407
|
+
`.replace(/(^|\n)\s*/g,""),dc=()=>{const t=J();return t?(t.remove(),Be([document.documentElement,document.body],[g["no-backdrop"],g["toast-shown"],g["has-column"]]),!0):!1},it=()=>{A.currentInstance.resetValidationMessage()},mc=()=>{const t=R(),e=qe(t,g.input),n=qe(t,g.file),o=t.querySelector(`.${g.range} input`),i=t.querySelector(`.${g.range} output`),a=qe(t,g.select),c=t.querySelector(`.${g.checkbox} input`),l=qe(t,g.textarea);e.oninput=it,n.onchange=it,a.onchange=it,c.onchange=it,l.oninput=it,o.oninput=()=>{it(),i.value=o.value},o.onchange=()=>{it(),o.nextSibling.value=o.value}},fc=t=>typeof t=="string"?document.querySelector(t):t,pc=t=>{const e=R();e.setAttribute("role",t.toast?"alert":"dialog"),e.setAttribute("aria-live",t.toast?"polite":"assertive"),t.toast||e.setAttribute("aria-modal","true")},hc=t=>{window.getComputedStyle(t).direction==="rtl"&&M(J(),g.rtl)},gc=t=>{const e=dc();if(Zr()){ot("SweetAlert2 requires document to initialize");return}const n=document.createElement("div");n.className=g.container,e&&M(n,g["no-transition"]),Q(n,uc);const o=fc(t.target);o.appendChild(n),pc(t),hc(o),mc()},mo=(t,e)=>{t instanceof HTMLElement?e.appendChild(t):typeof t=="object"?yc(t,e):t&&Q(e,t)},yc=(t,e)=>{t.jquery?vc(e,t):Q(e,t.toString())},vc=(t,e)=>{if(t.textContent="",0 in e)for(let n=0;n in e;n++)t.appendChild(e[n].cloneNode(!0));else t.appendChild(e.cloneNode(!0))},Zt=(()=>{if(Zr())return!1;const t=document.createElement("div"),e={WebkitAnimation:"webkitAnimationEnd",animation:"animationend"};for(const n in e)if(Object.prototype.hasOwnProperty.call(e,n)&&typeof t.style[n]<"u")return e[n];return!1})(),bc=()=>{const t=document.createElement("div");t.className=g["scrollbar-measure"],document.body.appendChild(t);const e=t.getBoundingClientRect().width-t.clientWidth;return document.body.removeChild(t),e},Cc=(t,e)=>{const n=Yt(),o=ft();!e.showConfirmButton&&!e.showDenyButton&&!e.showCancelButton?ee(n):Y(n),ye(n,e,"actions"),wc(n,o,e),Q(o,e.loaderHtml),ye(o,e,"loader")};function wc(t,e,n){const o=Ee(),i=Ge(),a=rt();fo(o,"confirm",n),fo(i,"deny",n),fo(a,"cancel",n),kc(o,i,a,n),n.reverseButtons&&(n.toast?(t.insertBefore(a,o),t.insertBefore(i,o)):(t.insertBefore(a,e),t.insertBefore(i,e),t.insertBefore(o,e)))}function kc(t,e,n,o){if(!o.buttonsStyling)return Be([t,e,n],g.styled);M([t,e,n],g.styled),o.confirmButtonColor&&(t.style.backgroundColor=o.confirmButtonColor,M(t,g["default-outline"])),o.denyButtonColor&&(e.style.backgroundColor=o.denyButtonColor,M(e,g["default-outline"])),o.cancelButtonColor&&(n.style.backgroundColor=o.cancelButtonColor,M(n,g["default-outline"]))}function fo(t,e,n){In(t,n[`show${no(e)}Button`],"inline-block"),Q(t,n[`${e}ButtonText`]),t.setAttribute("aria-label",n[`${e}ButtonAriaLabel`]),t.className=g[e],ye(t,n,`${e}Button`),M(t,n[`${e}ButtonClass`])}function Sc(t,e){typeof e=="string"?t.style.background=e:e||M([document.documentElement,document.body],g["no-backdrop"])}function _c(t,e){e in g?M(t,g[e]):(de('The "position" parameter is not valid, defaulting to "center"'),M(t,g.center))}function Ec(t,e){if(e&&typeof e=="string"){const n=`grow-${e}`;n in g&&M(t,g[n])}}const Tc=(t,e)=>{const n=J();n&&(Sc(n,e.backdrop),_c(n,e.position),Ec(n,e.grow),ye(n,e,"container"))},O={awaitingPromise:new WeakMap,promise:new WeakMap,innerParams:new WeakMap,domCache:new WeakMap},Ic=["input","file","range","select","radio","checkbox","textarea"],Pc=(t,e)=>{const n=R(),o=O.innerParams.get(t),i=!o||e.input!==o.input;Ic.forEach(a=>{const c=g[a],l=qe(n,c);Bc(a,e.inputAttributes),l.className=c,i&&ee(l)}),e.input&&(i&&Ac(e),$c(e))},Ac=t=>{if(!me[t.input])return ot(`Unexpected type of input! Expected "text", "email", "password", "number", "tel", "select", "radio", "checkbox", "textarea", "file" or "url", got "${t.input}"`);const e=Jr(t.input),n=me[t.input](e,t);Y(n),setTimeout(()=>{Kr(n)})},xc=t=>{for(let e=0;e<t.attributes.length;e++){const n=t.attributes[e].name;["type","value","style"].includes(n)||t.removeAttribute(n)}},Bc=(t,e)=>{const n=co(R(),t);if(n){xc(n);for(const o in e)n.setAttribute(o,e[o])}},$c=t=>{const e=Jr(t.input);t.customClass&&M(e,t.customClass.input)},po=(t,e)=>{(!t.placeholder||e.inputPlaceholder)&&(t.placeholder=e.inputPlaceholder)},Jt=(t,e,n)=>{if(n.inputLabel){t.id=g.input;const o=document.createElement("label"),i=g["input-label"];o.setAttribute("for",t.id),o.className=i,M(o,n.customClass.inputLabel),o.innerText=n.inputLabel,e.insertAdjacentElement("beforebegin",o)}},Jr=t=>{const e=g[t]?g[t]:g.input;return qe(R(),e)},me={};me.text=me.email=me.password=me.number=me.tel=me.url=(t,e)=>(typeof e.inputValue=="string"||typeof e.inputValue=="number"?t.value=e.inputValue:ro(e.inputValue)||de(`Unexpected type of inputValue! Expected "string", "number" or "Promise", got "${typeof e.inputValue}"`),Jt(t,t,e),po(t,e),t.type=e.input,t),me.file=(t,e)=>(Jt(t,t,e),po(t,e),t),me.range=(t,e)=>{const n=t.querySelector("input"),o=t.querySelector("output");return n.value=e.inputValue,n.type=e.input,o.value=e.inputValue,Jt(n,t,e),t},me.select=(t,e)=>{if(t.textContent="",e.inputPlaceholder){const n=document.createElement("option");Q(n,e.inputPlaceholder),n.value="",n.disabled=!0,n.selected=!0,t.appendChild(n)}return Jt(t,t,e),t},me.radio=t=>(t.textContent="",t),me.checkbox=(t,e)=>{const n=co(R(),"checkbox");n.value="1",n.id=g.checkbox,n.checked=!!e.inputValue;const o=t.querySelector("span");return Q(o,e.inputPlaceholder),t},me.textarea=(t,e)=>{t.value=e.inputValue,po(t,e),Jt(t,t,e);const n=o=>parseInt(window.getComputedStyle(o).marginLeft)+parseInt(window.getComputedStyle(o).marginRight);return setTimeout(()=>{if("MutationObserver"in window){const o=parseInt(window.getComputedStyle(R()).width),i=()=>{const a=t.offsetWidth+n(t);a>o?R().style.width=`${a}px`:R().style.width=null};new MutationObserver(i).observe(t,{attributes:!0,attributeFilter:["style"]})}}),t};const Oc=(t,e)=>{const n=Sn();ye(n,e,"htmlContainer"),e.html?(mo(e.html,n),Y(n,"block")):e.text?(n.textContent=e.text,Y(n,"block")):ee(n),Pc(t,e)},Lc=(t,e)=>{const n=Wr();In(n,e.footer),e.footer&&mo(e.footer,n),ye(n,e,"footer")},Nc=(t,e)=>{const n=ao();Q(n,e.closeButtonHtml),ye(n,e,"closeButton"),In(n,e.showCloseButton),n.setAttribute("aria-label",e.closeButtonAriaLabel)},Mc=(t,e)=>{const n=O.innerParams.get(t),o=qt();if(n&&e.icon===n.icon){ei(o,e),Qr(o,e);return}if(!e.icon&&!e.iconHtml)return ee(o);if(e.icon&&Object.keys(Kt).indexOf(e.icon)===-1)return ot(`Unknown icon! Expected "success", "error", "warning", "info" or "question", got "${e.icon}"`),ee(o);Y(o),ei(o,e),Qr(o,e),M(o,e.showClass.icon)},Qr=(t,e)=>{for(const n in Kt)e.icon!==n&&Be(t,Kt[n]);M(t,Kt[e.icon]),jc(t,e),Dc(),ye(t,e,"icon")},Dc=()=>{const t=R(),e=window.getComputedStyle(t).getPropertyValue("background-color"),n=t.querySelectorAll("[class^=swal2-success-circular-line], .swal2-success-fix");for(let o=0;o<n.length;o++)n[o].style.backgroundColor=e},Rc=`
|
|
408
408
|
<div class="swal2-success-circular-line-left"></div>
|
|
409
409
|
<span class="swal2-success-line-tip"></span> <span class="swal2-success-line-long"></span>
|
|
410
410
|
<div class="swal2-success-ring"></div> <div class="swal2-success-fix"></div>
|
|
411
411
|
<div class="swal2-success-circular-line-right"></div>
|
|
412
|
-
`,
|
|
412
|
+
`,Vc=`
|
|
413
413
|
<span class="swal2-x-mark">
|
|
414
414
|
<span class="swal2-x-mark-line-left"></span>
|
|
415
415
|
<span class="swal2-x-mark-line-right"></span>
|
|
416
416
|
</span>
|
|
417
|
-
`,
|
|
417
|
+
`,ei=(t,e)=>{t.textContent="",e.iconHtml?Q(t,ti(e.iconHtml)):e.icon==="success"?Q(t,Rc):e.icon==="error"?Q(t,Vc):Q(t,ti({question:"?",warning:"!",info:"i"}[e.icon]))},jc=(t,e)=>{if(e.iconColor){t.style.color=e.iconColor,t.style.borderColor=e.iconColor;for(const n of[".swal2-success-line-tip",".swal2-success-line-long",".swal2-x-mark-line-left",".swal2-x-mark-line-right"])qr(t,n,"backgroundColor",e.iconColor);qr(t,".swal2-success-ring","borderColor",e.iconColor)}},ti=t=>`<div class="${g["icon-content"]}">${t}</div>`,Hc=(t,e)=>{const n=zr();if(!e.imageUrl)return ee(n);Y(n,""),n.setAttribute("src",e.imageUrl),n.setAttribute("alt",e.imageAlt),Xt(n,"width",e.imageWidth),Xt(n,"height",e.imageHeight),n.className=g.image,ye(n,e,"image")},Fc=t=>{const e=document.createElement("li");return M(e,g["progress-step"]),Q(e,t),e},zc=t=>{const e=document.createElement("li");return M(e,g["progress-step-line"]),t.progressStepsDistance&&(e.style.width=t.progressStepsDistance),e},Uc=(t,e)=>{const n=Ur();if(!e.progressSteps||e.progressSteps.length===0)return ee(n);Y(n),n.textContent="",e.currentProgressStep>=e.progressSteps.length&&de("Invalid currentProgressStep parameter, it should be less than progressSteps.length (currentProgressStep like JS arrays starts from 0)"),e.progressSteps.forEach((o,i)=>{const a=Fc(o);if(n.appendChild(a),i===e.currentProgressStep&&M(a,g["active-progress-step"]),i!==e.progressSteps.length-1){const c=zc(e);n.appendChild(c)}})},Wc=(t,e)=>{const n=Fr();In(n,e.title||e.titleText,"block"),e.title&&mo(e.title,n),e.titleText&&(n.innerText=e.titleText),ye(n,e,"title")},Kc=(t,e)=>{const n=J(),o=R();e.toast?(Xt(n,"width",e.width),o.style.width="100%",o.insertBefore(ft(),qt())):Xt(o,"width",e.width),Xt(o,"padding",e.padding),e.color&&(o.style.color=e.color),e.background&&(o.style.background=e.background),ee(_n()),Gc(o,e)},Gc=(t,e)=>{t.className=`${g.popup} ${he(t)?e.showClass.popup:""}`,e.toast?(M([document.documentElement,document.body],g["toast-shown"]),M(t,g.toast)):M(t,g.modal),ye(t,e,"popup"),typeof e.customClass=="string"&&M(t,e.customClass),e.icon&&M(t,g[`icon-${e.icon}`])},ni=(t,e)=>{Kc(t,e),Tc(t,e),Uc(t,e),Mc(t,e),Hc(t,e),Wc(t,e),Nc(t,e),Oc(t,e),Cc(t,e),Lc(t,e),typeof e.didRender=="function"&&e.didRender(R())},ht=Object.freeze({cancel:"cancel",backdrop:"backdrop",close:"close",esc:"esc",timer:"timer"}),qc=()=>{pe(document.body.children).forEach(e=>{e===J()||e.contains(J())||(e.hasAttribute("aria-hidden")&&e.setAttribute("data-previous-aria-hidden",e.getAttribute("aria-hidden")),e.setAttribute("aria-hidden","true"))})},oi=()=>{pe(document.body.children).forEach(e=>{e.hasAttribute("data-previous-aria-hidden")?(e.setAttribute("aria-hidden",e.getAttribute("data-previous-aria-hidden")),e.removeAttribute("data-previous-aria-hidden")):e.removeAttribute("aria-hidden")})},ri=["swal-title","swal-html","swal-footer"],Yc=t=>{const e=typeof t.template=="string"?document.querySelector(t.template):t.template;if(!e)return{};const n=e.content;return nu(n),Object.assign(Xc(n),Zc(n),Jc(n),Qc(n),eu(n),tu(n,ri))},Xc=t=>{const e={};return pe(t.querySelectorAll("swal-param")).forEach(n=>{at(n,["name","value"]);const o=n.getAttribute("name"),i=n.getAttribute("value");typeof mt[o]=="boolean"&&i==="false"&&(e[o]=!1),typeof mt[o]=="object"&&(e[o]=JSON.parse(i))}),e},Zc=t=>{const e={};return pe(t.querySelectorAll("swal-button")).forEach(n=>{at(n,["type","color","aria-label"]);const o=n.getAttribute("type");e[`${o}ButtonText`]=n.innerHTML,e[`show${no(o)}Button`]=!0,n.hasAttribute("color")&&(e[`${o}ButtonColor`]=n.getAttribute("color")),n.hasAttribute("aria-label")&&(e[`${o}ButtonAriaLabel`]=n.getAttribute("aria-label"))}),e},Jc=t=>{const e={},n=t.querySelector("swal-image");return n&&(at(n,["src","width","height","alt"]),n.hasAttribute("src")&&(e.imageUrl=n.getAttribute("src")),n.hasAttribute("width")&&(e.imageWidth=n.getAttribute("width")),n.hasAttribute("height")&&(e.imageHeight=n.getAttribute("height")),n.hasAttribute("alt")&&(e.imageAlt=n.getAttribute("alt"))),e},Qc=t=>{const e={},n=t.querySelector("swal-icon");return n&&(at(n,["type","color"]),n.hasAttribute("type")&&(e.icon=n.getAttribute("type")),n.hasAttribute("color")&&(e.iconColor=n.getAttribute("color")),e.iconHtml=n.innerHTML),e},eu=t=>{const e={},n=t.querySelector("swal-input");n&&(at(n,["type","label","placeholder","value"]),e.input=n.getAttribute("type")||"text",n.hasAttribute("label")&&(e.inputLabel=n.getAttribute("label")),n.hasAttribute("placeholder")&&(e.inputPlaceholder=n.getAttribute("placeholder")),n.hasAttribute("value")&&(e.inputValue=n.getAttribute("value")));const o=t.querySelectorAll("swal-input-option");return o.length&&(e.inputOptions={},pe(o).forEach(i=>{at(i,["value"]);const a=i.getAttribute("value"),c=i.innerHTML;e.inputOptions[a]=c})),e},tu=(t,e)=>{const n={};for(const o in e){const i=e[o],a=t.querySelector(i);a&&(at(a,[]),n[i.replace(/^swal-/,"")]=a.innerHTML.trim())}return n},nu=t=>{const e=ri.concat(["swal-param","swal-button","swal-image","swal-icon","swal-input","swal-input-option"]);pe(t.children).forEach(n=>{const o=n.tagName.toLowerCase();e.indexOf(o)===-1&&de(`Unrecognized element <${o}>`)})},at=(t,e)=>{pe(t.attributes).forEach(n=>{e.indexOf(n.name)===-1&&de([`Unrecognized attribute "${n.name}" on <${t.tagName.toLowerCase()}>.`,`${e.length?`Allowed attributes are: ${e.join(", ")}`:"To set the value, use HTML within the element."}`])})},ii={email:(t,e)=>/^[a-zA-Z0-9.+_-]+@[a-zA-Z0-9.-]+\.[a-zA-Z0-9-]{2,24}$/.test(t)?Promise.resolve():Promise.resolve(e||"Invalid email address"),url:(t,e)=>/^https?:\/\/(www\.)?[-a-zA-Z0-9@:%._+~#=]{1,256}\.[a-z]{2,63}\b([-a-zA-Z0-9@:%_+.~#?&/=]*)$/.test(t)?Promise.resolve():Promise.resolve(e||"Invalid URL")};function ou(t){t.inputValidator||Object.keys(ii).forEach(e=>{t.input===e&&(t.inputValidator=ii[e])})}function ru(t){(!t.target||typeof t.target=="string"&&!document.querySelector(t.target)||typeof t.target!="string"&&!t.target.appendChild)&&(de('Target parameter is not valid, defaulting to "body"'),t.target="body")}function iu(t){ou(t),t.showLoaderOnConfirm&&!t.preConfirm&&de(`showLoaderOnConfirm is set to true, but preConfirm is not defined.
|
|
418
418
|
showLoaderOnConfirm should be used together with preConfirm, see usage example:
|
|
419
|
-
https://sweetalert2.github.io/#ajax-request`),
|
|
420
|
-
`).join("<br />")),_c(t)}class pu{constructor(e,n){this.callback=e,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(e){const n=this.running;return n&&this.stop(),this.remaining+=e,n&&this.start(),this.remaining}getTimerLeft(){return this.running&&(this.stop(),this.start()),this.remaining}isRunning(){return this.running}}const hu=()=>{pt.previousBodyPadding===null&&document.body.scrollHeight>window.innerHeight&&(pt.previousBodyPadding=parseInt(window.getComputedStyle(document.body).getPropertyValue("padding-right")),document.body.style.paddingRight=`${pt.previousBodyPadding+Pc()}px`)},gu=()=>{pt.previousBodyPadding!==null&&(document.body.style.paddingRight=`${pt.previousBodyPadding}px`,pt.previousBodyPadding=null)},yu=()=>{if((/iPad|iPhone|iPod/.test(navigator.userAgent)&&!window.MSStream||navigator.platform==="MacIntel"&&navigator.maxTouchPoints>1)&&!Me(document.body,g.iosfix)){const e=document.body.scrollTop;document.body.style.top=`${e*-1}px`,N(document.body,g.iosfix),bu(),vu()}},vu=()=>{const t=navigator.userAgent,e=!!t.match(/iPad/i)||!!t.match(/iPhone/i),n=!!t.match(/WebKit/i);e&&n&&!t.match(/CriOS/i)&&D().scrollHeight>window.innerHeight-44&&(J().style.paddingBottom="44px")},bu=()=>{const t=J();let e;t.ontouchstart=n=>{e=Cu(n)},t.ontouchmove=n=>{e&&(n.preventDefault(),n.stopPropagation())}},Cu=t=>{const e=t.target,n=J();return wu(t)||ku(t)?!1:e===n||!ei(n)&&e.tagName!=="INPUT"&&e.tagName!=="TEXTAREA"&&!(ei(kn())&&kn().contains(e))},wu=t=>t.touches&&t.touches.length&&t.touches[0].touchType==="stylus",ku=t=>t.touches&&t.touches.length>1,Su=()=>{if(Me(document.body,g.iosfix)){const t=parseInt(document.body.style.top,10);$e(document.body,g.iosfix),document.body.style.top="",document.body.scrollTop=t*-1}},di=10,_u=t=>{const e=J(),n=D();typeof t.willOpen=="function"&&t.willOpen(n);const i=window.getComputedStyle(document.body).overflowY;Pu(e,n,t),setTimeout(()=>{Eu(e,n)},di),fo()&&(Tu(e,t.scrollbarPadding,i),nu()),!En()&&!A.previousActiveElement&&(A.previousActiveElement=document.activeElement),typeof t.didOpen=="function"&&setTimeout(()=>t.didOpen(n)),$e(e,g["no-transition"])},mi=t=>{const e=D();if(t.target!==e)return;const n=J();e.removeEventListener(Yt,mi),n.style.overflowY="auto"},Eu=(t,e)=>{Yt&&ti(e)?(t.style.overflowY="hidden",e.addEventListener(Yt,mi)):t.style.overflowY="auto"},Tu=(t,e,n)=>{yu(),e&&n!=="hidden"&&hu(),setTimeout(()=>{t.scrollTop=0})},Pu=(t,e,n)=>{N(t,n.showClass.backdrop),e.style.setProperty("opacity","0","important"),Y(e,"grid"),setTimeout(()=>{N(e,n.showClass.popup),e.style.removeProperty("opacity")},di),N([document.documentElement,document.body],g.shown),n.heightAuto&&n.backdrop&&!n.toast&&N([document.documentElement,document.body],g["height-auto"])},gt=t=>{let e=D();e||new st,e=D();const n=ft();En()?ee(Wt()):Iu(e,t),Y(n),e.setAttribute("data-loading",!0),e.setAttribute("aria-busy",!0),e.focus()},Iu=(t,e)=>{const n=Gt(),o=ft();!e&&ge(Ee())&&(e=Ee()),Y(n),e&&(ee(e),o.setAttribute("data-button-to-replace",e.className)),o.parentNode.insertBefore(o,e),N([t,n],g.loading)},Au=(t,e)=>{e.input==="select"||e.input==="radio"?Lu(t,e):["text","email","number","tel","textarea"].includes(e.input)&&(so(e.inputValue)||lo(e.inputValue))&&(gt(Ee()),Nu(t,e))},xu=(t,e)=>{const n=t.getInput();if(!n)return null;switch(e.input){case"checkbox":return $u(n);case"radio":return Bu(n);case"file":return Ou(n);default:return e.inputAutoTrim?n.value.trim():n.value}},$u=t=>t.checked?1:0,Bu=t=>t.checked?t.value:null,Ou=t=>t.files.length?t.getAttribute("multiple")!==null?t.files:t.files[0]:null,Lu=(t,e)=>{const n=D(),o=i=>Mu[e.input](n,bo(i),e);so(e.inputOptions)||lo(e.inputOptions)?(gt(Ee()),Ut(e.inputOptions).then(i=>{t.hideLoading(),o(i)})):typeof e.inputOptions=="object"?o(e.inputOptions):ot(`Unexpected type of inputOptions! Expected object, Map or Promise, got ${typeof e.inputOptions}`)},Nu=(t,e)=>{const n=t.getInput();ee(n),Ut(e.inputValue).then(o=>{n.value=e.input==="number"?parseFloat(o)||0:`${o}`,Y(n),n.focus(),t.hideLoading()}).catch(o=>{ot(`Error in inputValue promise: ${o}`),n.value="",Y(n),n.focus(),t.hideLoading()})},Mu={select:(t,e,n)=>{const o=qe(t,g.select),i=(a,c,l)=>{const s=document.createElement("option");s.value=l,Q(s,c),s.selected=fi(l,n.inputValue),a.appendChild(s)};e.forEach(a=>{const c=a[0],l=a[1];if(Array.isArray(l)){const s=document.createElement("optgroup");s.label=c,s.disabled=!1,o.appendChild(s),l.forEach(u=>i(s,u[1],u[0]))}else i(o,l,c)}),o.focus()},radio:(t,e,n)=>{const o=qe(t,g.radio);e.forEach(a=>{const c=a[0],l=a[1],s=document.createElement("input"),u=document.createElement("label");s.type="radio",s.name=g.radio,s.value=c,fi(c,n.inputValue)&&(s.checked=!0);const d=document.createElement("span");Q(d,l),d.className=g.label,u.appendChild(s),u.appendChild(d),o.appendChild(u)});const i=o.querySelectorAll("input");i.length&&i[0].focus()}},bo=t=>{const e=[];return typeof Map<"u"&&t instanceof Map?t.forEach((n,o)=>{let i=n;typeof i=="object"&&(i=bo(i)),e.push([o,i])}):Object.keys(t).forEach(n=>{let o=t[n];typeof o=="object"&&(o=bo(o)),e.push([n,o])}),e},fi=(t,e)=>e&&e.toString()===t.toString();function pi(){const t=B.innerParams.get(this);if(!t)return;const e=B.domCache.get(this);ee(e.loader),En()?t.icon&&Y(Wt()):Du(e),$e([e.popup,e.actions],g.loading),e.popup.removeAttribute("aria-busy"),e.popup.removeAttribute("data-loading"),e.confirmButton.disabled=!1,e.denyButton.disabled=!1,e.cancelButton.disabled=!1}const Du=t=>{const e=t.popup.getElementsByClassName(t.loader.getAttribute("data-button-to-replace"));e.length?Y(e[0],"inline-block"):fc()&&ee(t.actions)};function Ru(t){const e=B.innerParams.get(t||this),n=B.domCache.get(t||this);return n?po(n.popup,e.input):null}const Zt={swalPromiseResolve:new WeakMap,swalPromiseReject:new WeakMap},Vu=()=>ge(D()),hi=()=>Ee()&&Ee().click(),ju=()=>Ge()&&Ge().click(),Hu=()=>rt()&&rt().click(),gi=t=>{t.keydownTarget&&t.keydownHandlerAdded&&(t.keydownTarget.removeEventListener("keydown",t.keydownHandler,{capture:t.keydownListenerCapture}),t.keydownHandlerAdded=!1)},Fu=(t,e,n,o)=>{gi(e),n.toast||(e.keydownHandler=i=>zu(t,i,o),e.keydownTarget=n.keydownListenerCapture?window:D(),e.keydownListenerCapture=n.keydownListenerCapture,e.keydownTarget.addEventListener("keydown",e.keydownHandler,{capture:e.keydownListenerCapture}),e.keydownHandlerAdded=!0)},Co=(t,e,n)=>{const o=mo();if(o.length)return e=e+n,e===o.length?e=0:e===-1&&(e=o.length-1),o[e].focus();D().focus()},yi=["ArrowRight","ArrowDown"],Uu=["ArrowLeft","ArrowUp"],zu=(t,e,n)=>{const o=B.innerParams.get(t);o&&(e.isComposing||e.keyCode===229||(o.stopKeydownPropagation&&e.stopPropagation(),e.key==="Enter"?Ku(t,e,o):e.key==="Tab"?Wu(e,o):[...yi,...Uu].includes(e.key)?Gu(e.key):e.key==="Escape"&&qu(e,o,n)))},Ku=(t,e,n)=>{if(wn(n.allowEnterKey)&&e.target&&t.getInput()&&e.target.outerHTML===t.getInput().outerHTML){if(["textarea","file"].includes(n.input))return;hi(),e.preventDefault()}},Wu=(t,e)=>{const n=t.target,o=mo();let i=-1;for(let a=0;a<o.length;a++)if(n===o[a]){i=a;break}t.shiftKey?Co(e,i,-1):Co(e,i,1),t.stopPropagation(),t.preventDefault()},Gu=t=>{const e=Ee(),n=Ge(),o=rt();if(![e,n,o].includes(document.activeElement))return;const i=yi.includes(t)?"nextElementSibling":"previousElementSibling";let a=document.activeElement;for(let c=0;c<Gt().children.length;c++){if(a=a[i],!a)return;if(ge(a)&&a instanceof HTMLButtonElement)break}a instanceof HTMLButtonElement&&a.focus()},qu=(t,e,n)=>{wn(e.allowEscapeKey)&&(t.preventDefault(),n(ht.esc))};function vi(t,e,n,o){En()?bi(t,o):(yc(n).then(()=>bi(t,o)),gi(A)),/^((?!chrome|android).)*safari/i.test(navigator.userAgent)?(e.setAttribute("style","display:none !important"),e.removeAttribute("class"),e.innerHTML=""):e.remove(),fo()&&(gu(),Su(),li()),Yu()}function Yu(){$e([document.documentElement,document.body],[g.shown,g["height-auto"],g["no-backdrop"],g["toast-shown"]])}function Pn(t){t=Qu(t);const e=Zt.swalPromiseResolve.get(this),n=Zu(this);this.isAwaitingPromise()?t.isDismissed||(Jt(this),e(t)):n&&e(t)}function Xu(){return!!B.awaitingPromise.get(this)}const Zu=t=>{const e=D();if(!e)return!1;const n=B.innerParams.get(t);if(!n||Me(e,n.hideClass.popup))return!1;$e(e,n.showClass.popup),N(e,n.hideClass.popup);const o=J();return $e(o,n.showClass.backdrop),N(o,n.hideClass.backdrop),ed(t,e,n),!0};function Ju(t){const e=Zt.swalPromiseReject.get(this);Jt(this),e&&e(t)}const Jt=t=>{t.isAwaitingPromise()&&(B.awaitingPromise.delete(t),B.innerParams.get(t)||t._destroy())},Qu=t=>typeof t>"u"?{isConfirmed:!1,isDenied:!1,isDismissed:!0}:Object.assign({isConfirmed:!1,isDenied:!1,isDismissed:!1},t),ed=(t,e,n)=>{const o=J(),i=Yt&&ti(e);typeof n.willClose=="function"&&n.willClose(e),i?td(t,e,o,n.returnFocus,n.didClose):vi(t,o,n.returnFocus,n.didClose)},td=(t,e,n,o,i)=>{A.swalCloseEventFinishedCallback=vi.bind(null,t,n,o,i),e.addEventListener(Yt,function(a){a.target===e&&(A.swalCloseEventFinishedCallback(),delete A.swalCloseEventFinishedCallback)})},bi=(t,e)=>{setTimeout(()=>{typeof e=="function"&&e.bind(t.params)(),t._destroy()})};function Ci(t,e,n){const o=B.domCache.get(t);e.forEach(i=>{o[i].disabled=n})}function wi(t,e){if(!t)return!1;if(t.type==="radio"){const o=t.parentNode.parentNode.querySelectorAll("input");for(let i=0;i<o.length;i++)o[i].disabled=e}else t.disabled=e}function nd(){Ci(this,["confirmButton","denyButton","cancelButton"],!1)}function od(){Ci(this,["confirmButton","denyButton","cancelButton"],!0)}function rd(){return wi(this.getInput(),!1)}function id(){return wi(this.getInput(),!0)}function ad(t){const e=B.domCache.get(this),n=B.innerParams.get(this);Q(e.validationMessage,t),e.validationMessage.className=g["validation-message"],n.customClass&&n.customClass.validationMessage&&N(e.validationMessage,n.customClass.validationMessage),Y(e.validationMessage);const o=this.getInput();o&&(o.setAttribute("aria-invalid",!0),o.setAttribute("aria-describedby",g["validation-message"]),Zr(o),N(o,g.inputerror))}function sd(){const t=B.domCache.get(this);t.validationMessage&&ee(t.validationMessage);const e=this.getInput();e&&(e.removeAttribute("aria-invalid"),e.removeAttribute("aria-describedby"),$e(e,g.inputerror))}function ld(){return B.domCache.get(this).progressSteps}function cd(t){const e=D(),n=B.innerParams.get(this);if(!e||Me(e,n.hideClass.popup))return de("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=ud(t),i=Object.assign({},n,o);si(this,i),B.innerParams.set(this,i),Object.defineProperties(this,{params:{value:Object.assign({},this.params,t),writable:!1,enumerable:!0}})}const ud=t=>{const e={};return Object.keys(t).forEach(n=>{Kr(n)?e[n]=t[n]:de(`Invalid parameter to update: "${n}". Updatable params are listed here: https://github.com/sweetalert2/sweetalert2/blob/master/src/utils/params.js
|
|
419
|
+
https://sweetalert2.github.io/#ajax-request`),ru(t),typeof t.title=="string"&&(t.title=t.title.split(`
|
|
420
|
+
`).join("<br />")),gc(t)}class au{constructor(e,n){this.callback=e,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(e){const n=this.running;return n&&this.stop(),this.remaining+=e,n&&this.start(),this.remaining}getTimerLeft(){return this.running&&(this.stop(),this.start()),this.remaining}isRunning(){return this.running}}const su=()=>{pt.previousBodyPadding===null&&document.body.scrollHeight>window.innerHeight&&(pt.previousBodyPadding=parseInt(window.getComputedStyle(document.body).getPropertyValue("padding-right")),document.body.style.paddingRight=`${pt.previousBodyPadding+bc()}px`)},lu=()=>{pt.previousBodyPadding!==null&&(document.body.style.paddingRight=`${pt.previousBodyPadding}px`,pt.previousBodyPadding=null)},cu=()=>{if((/iPad|iPhone|iPod/.test(navigator.userAgent)&&!window.MSStream||navigator.platform==="MacIntel"&&navigator.maxTouchPoints>1)&&!Ne(document.body,g.iosfix)){const e=document.body.scrollTop;document.body.style.top=`${e*-1}px`,M(document.body,g.iosfix),du(),uu()}},uu=()=>{const t=navigator.userAgent,e=!!t.match(/iPad/i)||!!t.match(/iPhone/i),n=!!t.match(/WebKit/i);e&&n&&!t.match(/CriOS/i)&&R().scrollHeight>window.innerHeight-44&&(J().style.paddingBottom="44px")},du=()=>{const t=J();let e;t.ontouchstart=n=>{e=mu(n)},t.ontouchmove=n=>{e&&(n.preventDefault(),n.stopPropagation())}},mu=t=>{const e=t.target,n=J();return fu(t)||pu(t)?!1:e===n||!Yr(n)&&e.tagName!=="INPUT"&&e.tagName!=="TEXTAREA"&&!(Yr(Sn())&&Sn().contains(e))},fu=t=>t.touches&&t.touches.length&&t.touches[0].touchType==="stylus",pu=t=>t.touches&&t.touches.length>1,hu=()=>{if(Ne(document.body,g.iosfix)){const t=parseInt(document.body.style.top,10);Be(document.body,g.iosfix),document.body.style.top="",document.body.scrollTop=t*-1}},ai=10,gu=t=>{const e=J(),n=R();typeof t.willOpen=="function"&&t.willOpen(n);const i=window.getComputedStyle(document.body).overflowY;bu(e,n,t),setTimeout(()=>{yu(e,n)},ai),lo()&&(vu(e,t.scrollbarPadding,i),qc()),!Tn()&&!A.previousActiveElement&&(A.previousActiveElement=document.activeElement),typeof t.didOpen=="function"&&setTimeout(()=>t.didOpen(n)),Be(e,g["no-transition"])},si=t=>{const e=R();if(t.target!==e)return;const n=J();e.removeEventListener(Zt,si),n.style.overflowY="auto"},yu=(t,e)=>{Zt&&Xr(e)?(t.style.overflowY="hidden",e.addEventListener(Zt,si)):t.style.overflowY="auto"},vu=(t,e,n)=>{cu(),e&&n!=="hidden"&&su(),setTimeout(()=>{t.scrollTop=0})},bu=(t,e,n)=>{M(t,n.showClass.backdrop),e.style.setProperty("opacity","0","important"),Y(e,"grid"),setTimeout(()=>{M(e,n.showClass.popup),e.style.removeProperty("opacity")},ai),M([document.documentElement,document.body],g.shown),n.heightAuto&&n.backdrop&&!n.toast&&M([document.documentElement,document.body],g["height-auto"])},gt=t=>{let e=R();e||new st,e=R();const n=ft();Tn()?ee(qt()):Cu(e,t),Y(n),e.setAttribute("data-loading",!0),e.setAttribute("aria-busy",!0),e.focus()},Cu=(t,e)=>{const n=Yt(),o=ft();!e&&he(Ee())&&(e=Ee()),Y(n),e&&(ee(e),o.setAttribute("data-button-to-replace",e.className)),o.parentNode.insertBefore(o,e),M([t,n],g.loading)},wu=(t,e)=>{e.input==="select"||e.input==="radio"?Tu(t,e):["text","email","number","tel","textarea"].includes(e.input)&&(oo(e.inputValue)||ro(e.inputValue))&&(gt(Ee()),Iu(t,e))},ku=(t,e)=>{const n=t.getInput();if(!n)return null;switch(e.input){case"checkbox":return Su(n);case"radio":return _u(n);case"file":return Eu(n);default:return e.inputAutoTrim?n.value.trim():n.value}},Su=t=>t.checked?1:0,_u=t=>t.checked?t.value:null,Eu=t=>t.files.length?t.getAttribute("multiple")!==null?t.files:t.files[0]:null,Tu=(t,e)=>{const n=R(),o=i=>Pu[e.input](n,ho(i),e);oo(e.inputOptions)||ro(e.inputOptions)?(gt(Ee()),Wt(e.inputOptions).then(i=>{t.hideLoading(),o(i)})):typeof e.inputOptions=="object"?o(e.inputOptions):ot(`Unexpected type of inputOptions! Expected object, Map or Promise, got ${typeof e.inputOptions}`)},Iu=(t,e)=>{const n=t.getInput();ee(n),Wt(e.inputValue).then(o=>{n.value=e.input==="number"?parseFloat(o)||0:`${o}`,Y(n),n.focus(),t.hideLoading()}).catch(o=>{ot(`Error in inputValue promise: ${o}`),n.value="",Y(n),n.focus(),t.hideLoading()})},Pu={select:(t,e,n)=>{const o=qe(t,g.select),i=(a,c,l)=>{const s=document.createElement("option");s.value=l,Q(s,c),s.selected=li(l,n.inputValue),a.appendChild(s)};e.forEach(a=>{const c=a[0],l=a[1];if(Array.isArray(l)){const s=document.createElement("optgroup");s.label=c,s.disabled=!1,o.appendChild(s),l.forEach(u=>i(s,u[1],u[0]))}else i(o,l,c)}),o.focus()},radio:(t,e,n)=>{const o=qe(t,g.radio);e.forEach(a=>{const c=a[0],l=a[1],s=document.createElement("input"),u=document.createElement("label");s.type="radio",s.name=g.radio,s.value=c,li(c,n.inputValue)&&(s.checked=!0);const d=document.createElement("span");Q(d,l),d.className=g.label,u.appendChild(s),u.appendChild(d),o.appendChild(u)});const i=o.querySelectorAll("input");i.length&&i[0].focus()}},ho=t=>{const e=[];return typeof Map<"u"&&t instanceof Map?t.forEach((n,o)=>{let i=n;typeof i=="object"&&(i=ho(i)),e.push([o,i])}):Object.keys(t).forEach(n=>{let o=t[n];typeof o=="object"&&(o=ho(o)),e.push([n,o])}),e},li=(t,e)=>e&&e.toString()===t.toString();function ci(){const t=O.innerParams.get(this);if(!t)return;const e=O.domCache.get(this);ee(e.loader),Tn()?t.icon&&Y(qt()):Au(e),Be([e.popup,e.actions],g.loading),e.popup.removeAttribute("aria-busy"),e.popup.removeAttribute("data-loading"),e.confirmButton.disabled=!1,e.denyButton.disabled=!1,e.cancelButton.disabled=!1}const Au=t=>{const e=t.popup.getElementsByClassName(t.loader.getAttribute("data-button-to-replace"));e.length?Y(e[0],"inline-block"):ic()&&ee(t.actions)};function xu(t){const e=O.innerParams.get(t||this),n=O.domCache.get(t||this);return n?co(n.popup,e.input):null}const Qt={swalPromiseResolve:new WeakMap,swalPromiseReject:new WeakMap},Bu=()=>he(R()),ui=()=>Ee()&&Ee().click(),$u=()=>Ge()&&Ge().click(),Ou=()=>rt()&&rt().click(),di=t=>{t.keydownTarget&&t.keydownHandlerAdded&&(t.keydownTarget.removeEventListener("keydown",t.keydownHandler,{capture:t.keydownListenerCapture}),t.keydownHandlerAdded=!1)},Lu=(t,e,n,o)=>{di(e),n.toast||(e.keydownHandler=i=>Mu(t,i,o),e.keydownTarget=n.keydownListenerCapture?window:R(),e.keydownListenerCapture=n.keydownListenerCapture,e.keydownTarget.addEventListener("keydown",e.keydownHandler,{capture:e.keydownListenerCapture}),e.keydownHandlerAdded=!0)},go=(t,e,n)=>{const o=so();if(o.length)return e=e+n,e===o.length?e=0:e===-1&&(e=o.length-1),o[e].focus();R().focus()},mi=["ArrowRight","ArrowDown"],Nu=["ArrowLeft","ArrowUp"],Mu=(t,e,n)=>{const o=O.innerParams.get(t);o&&(e.isComposing||e.keyCode===229||(o.stopKeydownPropagation&&e.stopPropagation(),e.key==="Enter"?Du(t,e,o):e.key==="Tab"?Ru(e,o):[...mi,...Nu].includes(e.key)?Vu(e.key):e.key==="Escape"&&ju(e,o,n)))},Du=(t,e,n)=>{if(kn(n.allowEnterKey)&&e.target&&t.getInput()&&e.target.outerHTML===t.getInput().outerHTML){if(["textarea","file"].includes(n.input))return;ui(),e.preventDefault()}},Ru=(t,e)=>{const n=t.target,o=so();let i=-1;for(let a=0;a<o.length;a++)if(n===o[a]){i=a;break}t.shiftKey?go(e,i,-1):go(e,i,1),t.stopPropagation(),t.preventDefault()},Vu=t=>{const e=Ee(),n=Ge(),o=rt();if(![e,n,o].includes(document.activeElement))return;const i=mi.includes(t)?"nextElementSibling":"previousElementSibling";let a=document.activeElement;for(let c=0;c<Yt().children.length;c++){if(a=a[i],!a)return;if(he(a)&&a instanceof HTMLButtonElement)break}a instanceof HTMLButtonElement&&a.focus()},ju=(t,e,n)=>{kn(e.allowEscapeKey)&&(t.preventDefault(),n(ht.esc))};function fi(t,e,n,o){Tn()?pi(t,o):(cc(n).then(()=>pi(t,o)),di(A)),/^((?!chrome|android).)*safari/i.test(navigator.userAgent)?(e.setAttribute("style","display:none !important"),e.removeAttribute("class"),e.innerHTML=""):e.remove(),lo()&&(lu(),hu(),oi()),Hu()}function Hu(){Be([document.documentElement,document.body],[g.shown,g["height-auto"],g["no-backdrop"],g["toast-shown"]])}function Pn(t){t=Wu(t);const e=Qt.swalPromiseResolve.get(this),n=zu(this);this.isAwaitingPromise()?t.isDismissed||(en(this),e(t)):n&&e(t)}function Fu(){return!!O.awaitingPromise.get(this)}const zu=t=>{const e=R();if(!e)return!1;const n=O.innerParams.get(t);if(!n||Ne(e,n.hideClass.popup))return!1;Be(e,n.showClass.popup),M(e,n.hideClass.popup);const o=J();return Be(o,n.showClass.backdrop),M(o,n.hideClass.backdrop),Ku(t,e,n),!0};function Uu(t){const e=Qt.swalPromiseReject.get(this);en(this),e&&e(t)}const en=t=>{t.isAwaitingPromise()&&(O.awaitingPromise.delete(t),O.innerParams.get(t)||t._destroy())},Wu=t=>typeof t>"u"?{isConfirmed:!1,isDenied:!1,isDismissed:!0}:Object.assign({isConfirmed:!1,isDenied:!1,isDismissed:!1},t),Ku=(t,e,n)=>{const o=J(),i=Zt&&Xr(e);typeof n.willClose=="function"&&n.willClose(e),i?Gu(t,e,o,n.returnFocus,n.didClose):fi(t,o,n.returnFocus,n.didClose)},Gu=(t,e,n,o,i)=>{A.swalCloseEventFinishedCallback=fi.bind(null,t,n,o,i),e.addEventListener(Zt,function(a){a.target===e&&(A.swalCloseEventFinishedCallback(),delete A.swalCloseEventFinishedCallback)})},pi=(t,e)=>{setTimeout(()=>{typeof e=="function"&&e.bind(t.params)(),t._destroy()})};function hi(t,e,n){const o=O.domCache.get(t);e.forEach(i=>{o[i].disabled=n})}function gi(t,e){if(!t)return!1;if(t.type==="radio"){const o=t.parentNode.parentNode.querySelectorAll("input");for(let i=0;i<o.length;i++)o[i].disabled=e}else t.disabled=e}function qu(){hi(this,["confirmButton","denyButton","cancelButton"],!1)}function Yu(){hi(this,["confirmButton","denyButton","cancelButton"],!0)}function Xu(){return gi(this.getInput(),!1)}function Zu(){return gi(this.getInput(),!0)}function Ju(t){const e=O.domCache.get(this),n=O.innerParams.get(this);Q(e.validationMessage,t),e.validationMessage.className=g["validation-message"],n.customClass&&n.customClass.validationMessage&&M(e.validationMessage,n.customClass.validationMessage),Y(e.validationMessage);const o=this.getInput();o&&(o.setAttribute("aria-invalid",!0),o.setAttribute("aria-describedby",g["validation-message"]),Kr(o),M(o,g.inputerror))}function Qu(){const t=O.domCache.get(this);t.validationMessage&&ee(t.validationMessage);const e=this.getInput();e&&(e.removeAttribute("aria-invalid"),e.removeAttribute("aria-describedby"),Be(e,g.inputerror))}function ed(){return O.domCache.get(this).progressSteps}function td(t){const e=R(),n=O.innerParams.get(this);if(!e||Ne(e,n.hideClass.popup))return de("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=nd(t),i=Object.assign({},n,o);ni(this,i),O.innerParams.set(this,i),Object.defineProperties(this,{params:{value:Object.assign({},this.params,t),writable:!1,enumerable:!0}})}const nd=t=>{const e={};return Object.keys(t).forEach(n=>{jr(n)?e[n]=t[n]:de(`Invalid parameter to update: "${n}". Updatable params are listed here: https://github.com/sweetalert2/sweetalert2/blob/master/src/utils/params.js
|
|
421
421
|
|
|
422
|
-
If you think this parameter should be updatable, request it here: https://github.com/sweetalert2/sweetalert2/issues/new?template=02_feature_request.md`)}),e};function dd(){const t=B.domCache.get(this),e=B.innerParams.get(this);if(!e){ki(this);return}t.popup&&A.swalCloseEventFinishedCallback&&(A.swalCloseEventFinishedCallback(),delete A.swalCloseEventFinishedCallback),A.deferDisposalTimer&&(clearTimeout(A.deferDisposalTimer),delete A.deferDisposalTimer),typeof e.didDestroy=="function"&&e.didDestroy(),md(this)}const md=t=>{ki(t),delete t.params,delete A.keydownHandler,delete A.keydownTarget,delete A.currentInstance},ki=t=>{t.isAwaitingPromise()?(wo(B,t),B.awaitingPromise.set(t,!0)):(wo(Zt,t),wo(B,t))},wo=(t,e)=>{for(const n in t)t[n].delete(e)},Si=Object.freeze(Object.defineProperty({__proto__:null,_destroy:dd,close:Pn,closeModal:Pn,closePopup:Pn,closeToast:Pn,disableButtons:od,disableInput:id,disableLoading:pi,enableButtons:nd,enableInput:rd,getInput:Ru,getProgressSteps:ld,handleAwaitingPromise:Jt,hideLoading:pi,isAwaitingPromise:Xu,rejectPromise:Ju,resetValidationMessage:sd,showValidationMessage:ad,update:cd},Symbol.toStringTag,{value:"Module"})),fd=t=>{const e=B.innerParams.get(t);t.disableButtons(),e.input?_i(t,"confirm"):So(t,!0)},pd=t=>{const e=B.innerParams.get(t);t.disableButtons(),e.returnInputValueOnDeny?_i(t,"deny"):ko(t,!1)},hd=(t,e)=>{t.disableButtons(),e(ht.cancel)},_i=(t,e)=>{const n=B.innerParams.get(t);if(!n.input)return ot(`The "input" parameter is needed to be set when using returnInputValueOn${ao(e)}`);const o=xu(t,n);n.inputValidator?gd(t,o,e):t.getInput().checkValidity()?e==="deny"?ko(t,o):So(t,o):(t.enableButtons(),t.showValidationMessage(n.validationMessage))},gd=(t,e,n)=>{const o=B.innerParams.get(t);t.disableInput(),Promise.resolve().then(()=>Ut(o.inputValidator(e,o.validationMessage))).then(a=>{t.enableButtons(),t.enableInput(),a?t.showValidationMessage(a):n==="deny"?ko(t,e):So(t,e)})},ko=(t,e)=>{const n=B.innerParams.get(t||void 0);n.showLoaderOnDeny&>(Ge()),n.preDeny?(B.awaitingPromise.set(t||void 0,!0),Promise.resolve().then(()=>Ut(n.preDeny(e,n.validationMessage))).then(i=>{i===!1?(t.hideLoading(),Jt(t)):t.closePopup({isDenied:!0,value:typeof i>"u"?e:i})}).catch(i=>Ti(t||void 0,i))):t.closePopup({isDenied:!0,value:e})},Ei=(t,e)=>{t.closePopup({isConfirmed:!0,value:e})},Ti=(t,e)=>{t.rejectPromise(e)},So=(t,e)=>{const n=B.innerParams.get(t||void 0);n.showLoaderOnConfirm&>(),n.preConfirm?(t.resetValidationMessage(),B.awaitingPromise.set(t||void 0,!0),Promise.resolve().then(()=>Ut(n.preConfirm(e,n.validationMessage))).then(i=>{ge(Sn())||i===!1?(t.hideLoading(),Jt(t)):Ei(t,typeof i>"u"?e:i)}).catch(i=>Ti(t||void 0,i))):Ei(t,e)},yd=(t,e,n)=>{B.innerParams.get(t).toast?vd(t,e,n):(Cd(e),wd(e),kd(t,e,n))},vd=(t,e,n)=>{e.popup.onclick=()=>{const o=B.innerParams.get(t);o&&(bd(o)||o.timer||o.input)||n(ht.close)}},bd=t=>t.showConfirmButton||t.showDenyButton||t.showCancelButton||t.showCloseButton;let In=!1;const Cd=t=>{t.popup.onmousedown=()=>{t.container.onmouseup=function(e){t.container.onmouseup=void 0,e.target===t.container&&(In=!0)}}},wd=t=>{t.container.onmousedown=()=>{t.popup.onmouseup=function(e){t.popup.onmouseup=void 0,(e.target===t.popup||t.popup.contains(e.target))&&(In=!0)}}},kd=(t,e,n)=>{e.container.onclick=o=>{const i=B.innerParams.get(t);if(In){In=!1;return}o.target===e.container&&wn(i.allowOutsideClick)&&n(ht.backdrop)}},Sd=t=>typeof t=="object"&&t.jquery,Pi=t=>t instanceof Element||Sd(t),_d=t=>{const e={};return typeof t[0]=="object"&&!Pi(t[0])?Object.assign(e,t[0]):["title","html","icon"].forEach((n,o)=>{const i=t[o];typeof i=="string"||Pi(i)?e[n]=i:i!==void 0&&ot(`Unexpected type of ${n}! Expected "string" or "Element", got ${typeof i}`)}),e};function Ed(...t){const e=this;return new e(...t)}function Td(t){class e extends this{_main(o,i){return super._main(o,Object.assign({},t,i))}}return e}const Pd=()=>A.timeout&&A.timeout.getTimerLeft(),Ii=()=>{if(A.timeout)return pc(),A.timeout.stop()},Ai=()=>{if(A.timeout){const t=A.timeout.start();return ho(t),t}},Id=()=>{const t=A.timeout;return t&&(t.running?Ii():Ai())},Ad=t=>{if(A.timeout){const e=A.timeout.increase(t);return ho(e,!0),e}},xd=()=>A.timeout&&A.timeout.isRunning();let xi=!1;const _o={};function $d(t="data-swal-template"){_o[t]=this,xi||(document.body.addEventListener("click",Bd),xi=!0)}const Bd=t=>{for(let e=t.target;e&&e!==document;e=e.parentNode)for(const n in _o){const o=e.getAttribute(n);if(o){_o[n].fire({template:o});return}}},Od=Object.freeze(Object.defineProperty({__proto__:null,argsToParams:_d,bindClickHandler:$d,clickCancel:Hu,clickConfirm:hi,clickDeny:ju,enableLoading:gt,fire:Ed,getActions:Gt,getCancelButton:rt,getCloseButton:uo,getConfirmButton:Ee,getContainer:J,getDenyButton:Ge,getFocusableElements:mo,getFooter:Xr,getHtmlContainer:kn,getIcon:Wt,getImage:qr,getInputLabel:cc,getLoader:ft,getPopup:D,getTimerLeft:Pd,getTimerProgressBar:_n,getTitle:Gr,getValidationMessage:Sn,increaseTimer:Ad,isDeprecatedParameter:co,isLoading:dc,isTimerRunning:xd,isUpdatableParameter:Kr,isValidParameter:zr,isVisible:Vu,mixin:Td,resumeTimer:Ai,showLoading:gt,stopTimer:Ii,toggleTimer:Id},Symbol.toStringTag,{value:"Module"}));let Eo;class yt{constructor(...e){if(typeof window>"u")return;Eo=this;const n=Object.freeze(this.constructor.argsToParams(e));Object.defineProperties(this,{params:{value:n,writable:!1,enumerable:!0,configurable:!0}});const o=this._main(this.params);B.promise.set(this,o)}_main(e,n={}){sc(Object.assign({},n,e)),A.currentInstance&&(A.currentInstance._destroy(),fo()&&li()),A.currentInstance=this;const o=Nd(e,n);fu(o),Object.freeze(o),A.timeout&&(A.timeout.stop(),delete A.timeout),clearTimeout(A.restoreFocusTimeout);const i=Md(this);return si(this,o),B.innerParams.set(this,o),Ld(this,i,o)}then(e){return B.promise.get(this).then(e)}finally(e){return B.promise.get(this).finally(e)}}const Ld=(t,e,n)=>new Promise((o,i)=>{const a=c=>{t.closePopup({isDismissed:!0,dismiss:c})};Zt.swalPromiseResolve.set(t,o),Zt.swalPromiseReject.set(t,i),e.confirmButton.onclick=()=>fd(t),e.denyButton.onclick=()=>pd(t),e.cancelButton.onclick=()=>hd(t,a),e.closeButton.onclick=()=>a(ht.close),yd(t,e,a),Fu(t,A,n,a),Au(t,n),_u(n),Dd(A,n,a),Rd(e,n),setTimeout(()=>{e.container.scrollTop=0})}),Nd=(t,e)=>{const n=ou(t),o=Object.assign({},mt,e,n,t);return o.showClass=Object.assign({},mt.showClass,o.showClass),o.hideClass=Object.assign({},mt.hideClass,o.hideClass),o},Md=t=>{const e={popup:D(),container:J(),actions:Gt(),confirmButton:Ee(),denyButton:Ge(),cancelButton:rt(),loader:ft(),closeButton:uo(),validationMessage:Sn(),progressSteps:Yr()};return B.domCache.set(t,e),e},Dd=(t,e,n)=>{const o=_n();ee(o),e.timer&&(t.timeout=new pu(()=>{n("timer"),delete t.timeout},e.timer),e.timerProgressBar&&(Y(o),ve(o,e,"timerProgressBar"),setTimeout(()=>{t.timeout&&t.timeout.running&&ho(e.timer)})))},Rd=(t,e)=>{if(!e.toast){if(!wn(e.allowEnterKey))return jd();Vd(t,e)||Co(e,-1,1)}},Vd=(t,e)=>e.focusDeny&&ge(t.denyButton)?(t.denyButton.focus(),!0):e.focusCancel&&ge(t.cancelButton)?(t.cancelButton.focus(),!0):e.focusConfirm&&ge(t.confirmButton)?(t.confirmButton.focus(),!0):!1,jd=()=>{document.activeElement instanceof HTMLElement&&typeof document.activeElement.blur=="function"&&document.activeElement.blur()};Object.assign(yt.prototype,Si),Object.assign(yt,Od),Object.keys(Si).forEach(t=>{yt[t]=function(...e){if(Eo)return Eo[t](...e)}}),yt.DismissReason=ht,yt.version="11.4.8";const st=yt;st.default=st;/*! @license DOMPurify 3.2.6 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/3.2.6/LICENSE */const{entries:$i,setPrototypeOf:Bi,isFrozen:Hd,getPrototypeOf:Fd,getOwnPropertyDescriptor:Ud}=Object;let{freeze:ae,seal:be,create:Oi}=Object,{apply:To,construct:Po}=typeof Reflect<"u"&&Reflect;ae||(ae=function(e){return e}),be||(be=function(e){return e}),To||(To=function(e,n,o){return e.apply(n,o)}),Po||(Po=function(e,n){return new e(...n)});const An=le(Array.prototype.forEach),zd=le(Array.prototype.lastIndexOf),Li=le(Array.prototype.pop),Qt=le(Array.prototype.push),Kd=le(Array.prototype.splice),xn=le(String.prototype.toLowerCase),Io=le(String.prototype.toString),Ni=le(String.prototype.match),en=le(String.prototype.replace),Wd=le(String.prototype.indexOf),Gd=le(String.prototype.trim),Te=le(Object.prototype.hasOwnProperty),se=le(RegExp.prototype.test),tn=qd(TypeError);function le(t){return function(e){e instanceof RegExp&&(e.lastIndex=0);for(var n=arguments.length,o=new Array(n>1?n-1:0),i=1;i<n;i++)o[i-1]=arguments[i];return To(t,e,o)}}function qd(t){return function(){for(var e=arguments.length,n=new Array(e),o=0;o<e;o++)n[o]=arguments[o];return Po(t,n)}}function O(t,e){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:xn;Bi&&Bi(t,null);let o=e.length;for(;o--;){let i=e[o];if(typeof i=="string"){const a=n(i);a!==i&&(Hd(e)||(e[o]=a),i=a)}t[i]=!0}return t}function Yd(t){for(let e=0;e<t.length;e++)Te(t,e)||(t[e]=null);return t}function De(t){const e=Oi(null);for(const[n,o]of $i(t))Te(t,n)&&(Array.isArray(o)?e[n]=Yd(o):o&&typeof o=="object"&&o.constructor===Object?e[n]=De(o):e[n]=o);return e}function nn(t,e){for(;t!==null;){const o=Ud(t,e);if(o){if(o.get)return le(o.get);if(typeof o.value=="function")return le(o.value)}t=Fd(t)}function n(){return null}return n}const Mi=ae(["a","abbr","acronym","address","area","article","aside","audio","b","bdi","bdo","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","content","data","datalist","dd","decorator","del","details","dfn","dialog","dir","div","dl","dt","element","em","fieldset","figcaption","figure","font","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","img","input","ins","kbd","label","legend","li","main","map","mark","marquee","menu","menuitem","meter","nav","nobr","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","section","select","shadow","small","source","spacer","span","strike","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video","wbr"]),Ao=ae(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","filter","font","g","glyph","glyphref","hkern","image","line","lineargradient","marker","mask","metadata","mpath","path","pattern","polygon","polyline","radialgradient","rect","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]),xo=ae(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),Xd=ae(["animate","color-profile","cursor","discard","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignobject","hatch","hatchpath","mesh","meshgradient","meshpatch","meshrow","missing-glyph","script","set","solidcolor","unknown","use"]),$o=ae(["math","menclose","merror","mfenced","mfrac","mglyph","mi","mlabeledtr","mmultiscripts","mn","mo","mover","mpadded","mphantom","mroot","mrow","ms","mspace","msqrt","mstyle","msub","msup","msubsup","mtable","mtd","mtext","mtr","munder","munderover","mprescripts"]),Zd=ae(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),Di=ae(["#text"]),Ri=ae(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","controls","controlslist","coords","crossorigin","datetime","decoding","default","dir","disabled","disablepictureinpicture","disableremoteplayback","download","draggable","enctype","enterkeyhint","face","for","headers","height","hidden","high","href","hreflang","id","inputmode","integrity","ismap","kind","label","lang","list","loading","loop","low","max","maxlength","media","method","min","minlength","multiple","muted","name","nonce","noshade","novalidate","nowrap","open","optimum","pattern","placeholder","playsinline","popover","popovertarget","popovertargetaction","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","spellcheck","scope","selected","shape","size","sizes","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","wrap","xmlns","slot"]),Bo=ae(["accent-height","accumulate","additive","alignment-baseline","amplitude","ascent","attributename","attributetype","azimuth","basefrequency","baseline-shift","begin","bias","by","class","clip","clippathunits","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","cx","cy","d","dx","dy","diffuseconstant","direction","display","divisor","dur","edgemode","elevation","end","exponent","fill","fill-opacity","fill-rule","filter","filterunits","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","fx","fy","g1","g2","glyph-name","glyphref","gradientunits","gradienttransform","height","href","id","image-rendering","in","in2","intercept","k","k1","k2","k3","k4","kerning","keypoints","keysplines","keytimes","lang","lengthadjust","letter-spacing","kernelmatrix","kernelunitlength","lighting-color","local","marker-end","marker-mid","marker-start","markerheight","markerunits","markerwidth","maskcontentunits","maskunits","max","mask","media","method","mode","min","name","numoctaves","offset","operator","opacity","order","orient","orientation","origin","overflow","paint-order","path","pathlength","patterncontentunits","patterntransform","patternunits","points","preservealpha","preserveaspectratio","primitiveunits","r","rx","ry","radius","refx","refy","repeatcount","repeatdur","restart","result","rotate","scale","seed","shape-rendering","slope","specularconstant","specularexponent","spreadmethod","startoffset","stddeviation","stitchtiles","stop-color","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke","stroke-width","style","surfacescale","systemlanguage","tabindex","tablevalues","targetx","targety","transform","transform-origin","text-anchor","text-decoration","text-rendering","textlength","type","u1","u2","unicode","values","viewbox","visibility","version","vert-adv-y","vert-origin-x","vert-origin-y","width","word-spacing","wrap","writing-mode","xchannelselector","ychannelselector","x","x1","x2","xmlns","y","y1","y2","z","zoomandpan"]),Vi=ae(["accent","accentunder","align","bevelled","close","columnsalign","columnlines","columnspan","denomalign","depth","dir","display","displaystyle","encoding","fence","frame","height","href","id","largeop","length","linethickness","lspace","lquote","mathbackground","mathcolor","mathsize","mathvariant","maxsize","minsize","movablelimits","notation","numalign","open","rowalign","rowlines","rowspacing","rowspan","rspace","rquote","scriptlevel","scriptminsize","scriptsizemultiplier","selection","separator","separators","stretchy","subscriptshift","supscriptshift","symmetric","voffset","width","xmlns"]),$n=ae(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),Jd=be(/\{\{[\w\W]*|[\w\W]*\}\}/gm),Qd=be(/<%[\w\W]*|[\w\W]*%>/gm),em=be(/\$\{[\w\W]*/gm),tm=be(/^data-[\-\w.\u00B7-\uFFFF]+$/),nm=be(/^aria-[\-\w]+$/),ji=be(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),om=be(/^(?:\w+script|data):/i),rm=be(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),Hi=be(/^html$/i),im=be(/^[a-z][.\w]*(-[.\w]+)+$/i);var Fi=Object.freeze({__proto__:null,ARIA_ATTR:nm,ATTR_WHITESPACE:rm,CUSTOM_ELEMENT:im,DATA_ATTR:tm,DOCTYPE_NAME:Hi,ERB_EXPR:Qd,IS_ALLOWED_URI:ji,IS_SCRIPT_OR_DATA:om,MUSTACHE_EXPR:Jd,TMPLIT_EXPR:em});const on={element:1,text:3,progressingInstruction:7,comment:8,document:9},am=function(){return typeof window>"u"?null:window},sm=function(e,n){if(typeof e!="object"||typeof e.createPolicy!="function")return null;let o=null;const i="data-tt-policy-suffix";n&&n.hasAttribute(i)&&(o=n.getAttribute(i));const a="dompurify"+(o?"#"+o:"");try{return e.createPolicy(a,{createHTML(c){return c},createScriptURL(c){return c}})}catch{return console.warn("TrustedTypes policy "+a+" could not be created."),null}},Ui=function(){return{afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}};function zi(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:am();const e=E=>zi(E);if(e.version="3.2.6",e.removed=[],!t||!t.document||t.document.nodeType!==on.document||!t.Element)return e.isSupported=!1,e;let{document:n}=t;const o=n,i=o.currentScript,{DocumentFragment:a,HTMLTemplateElement:c,Node:l,Element:s,NodeFilter:u,NamedNodeMap:d=t.NamedNodeMap||t.MozNamedAttrMap,HTMLFormElement:f,DOMParser:p,trustedTypes:h}=t,C=s.prototype,w=nn(C,"cloneNode"),k=nn(C,"remove"),y=nn(C,"nextSibling"),T=nn(C,"childNodes"),P=nn(C,"parentNode");if(typeof c=="function"){const E=n.createElement("template");E.content&&E.content.ownerDocument&&(n=E.content.ownerDocument)}let v,_="";const{implementation:z,createNodeIterator:X,createDocumentFragment:Ce,getElementsByTagName:te}=n,{importNode:we}=o;let I=Ui();e.isSupported=typeof $i=="function"&&typeof P=="function"&&z&&z.createHTMLDocument!==void 0;const{MUSTACHE_EXPR:V,ERB_EXPR:ne,TMPLIT_EXPR:ce,DATA_ATTR:Pe,ARIA_ATTR:Xe,IS_SCRIPT_OR_DATA:Re,ATTR_WHITESPACE:Ve,CUSTOM_ELEMENT:Ze}=Fi;let{IS_ALLOWED_URI:ke}=Fi,R=null;const Be=O({},[...Mi,...Ao,...xo,...$o,...Di]);let K=null;const je=O({},[...Ri,...Bo,...Vi,...$n]);let H=Object.seal(Oi(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),Je=null,rn=null,Ln=!0,an=!0,Nn=!1,Mn=!0,Qe=!1,bt=!0,He=!1,sn=!1,ln=!1,et=!1,Ct=!1,wt=!1,Dn=!0,Rn=!1;const Do="user-content-";let cn=!0,lt=!1,kt={},St=null;const ea=O({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]);let ta=null;const na=O({},["audio","video","img","source","image","track"]);let Ro=null;const oa=O({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),Vn="http://www.w3.org/1998/Math/MathML",jn="http://www.w3.org/2000/svg",Fe="http://www.w3.org/1999/xhtml";let _t=Fe,Vo=!1,jo=null;const Fm=O({},[Vn,jn,Fe],Io);let Hn=O({},["mi","mo","mn","ms","mtext"]),Fn=O({},["annotation-xml"]);const Um=O({},["title","style","font","a","script"]);let un=null;const zm=["application/xhtml+xml","text/html"],Km="text/html";let G=null,Et=null;const Wm=n.createElement("form"),ra=function(m){return m instanceof RegExp||m instanceof Function},Ho=function(){let m=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(!(Et&&Et===m)){if((!m||typeof m!="object")&&(m={}),m=De(m),un=zm.indexOf(m.PARSER_MEDIA_TYPE)===-1?Km:m.PARSER_MEDIA_TYPE,G=un==="application/xhtml+xml"?Io:xn,R=Te(m,"ALLOWED_TAGS")?O({},m.ALLOWED_TAGS,G):Be,K=Te(m,"ALLOWED_ATTR")?O({},m.ALLOWED_ATTR,G):je,jo=Te(m,"ALLOWED_NAMESPACES")?O({},m.ALLOWED_NAMESPACES,Io):Fm,Ro=Te(m,"ADD_URI_SAFE_ATTR")?O(De(oa),m.ADD_URI_SAFE_ATTR,G):oa,ta=Te(m,"ADD_DATA_URI_TAGS")?O(De(na),m.ADD_DATA_URI_TAGS,G):na,St=Te(m,"FORBID_CONTENTS")?O({},m.FORBID_CONTENTS,G):ea,Je=Te(m,"FORBID_TAGS")?O({},m.FORBID_TAGS,G):De({}),rn=Te(m,"FORBID_ATTR")?O({},m.FORBID_ATTR,G):De({}),kt=Te(m,"USE_PROFILES")?m.USE_PROFILES:!1,Ln=m.ALLOW_ARIA_ATTR!==!1,an=m.ALLOW_DATA_ATTR!==!1,Nn=m.ALLOW_UNKNOWN_PROTOCOLS||!1,Mn=m.ALLOW_SELF_CLOSE_IN_ATTR!==!1,Qe=m.SAFE_FOR_TEMPLATES||!1,bt=m.SAFE_FOR_XML!==!1,He=m.WHOLE_DOCUMENT||!1,et=m.RETURN_DOM||!1,Ct=m.RETURN_DOM_FRAGMENT||!1,wt=m.RETURN_TRUSTED_TYPE||!1,ln=m.FORCE_BODY||!1,Dn=m.SANITIZE_DOM!==!1,Rn=m.SANITIZE_NAMED_PROPS||!1,cn=m.KEEP_CONTENT!==!1,lt=m.IN_PLACE||!1,ke=m.ALLOWED_URI_REGEXP||ji,_t=m.NAMESPACE||Fe,Hn=m.MATHML_TEXT_INTEGRATION_POINTS||Hn,Fn=m.HTML_INTEGRATION_POINTS||Fn,H=m.CUSTOM_ELEMENT_HANDLING||{},m.CUSTOM_ELEMENT_HANDLING&&ra(m.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(H.tagNameCheck=m.CUSTOM_ELEMENT_HANDLING.tagNameCheck),m.CUSTOM_ELEMENT_HANDLING&&ra(m.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(H.attributeNameCheck=m.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),m.CUSTOM_ELEMENT_HANDLING&&typeof m.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements=="boolean"&&(H.allowCustomizedBuiltInElements=m.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),Qe&&(an=!1),Ct&&(et=!0),kt&&(R=O({},Di),K=[],kt.html===!0&&(O(R,Mi),O(K,Ri)),kt.svg===!0&&(O(R,Ao),O(K,Bo),O(K,$n)),kt.svgFilters===!0&&(O(R,xo),O(K,Bo),O(K,$n)),kt.mathMl===!0&&(O(R,$o),O(K,Vi),O(K,$n))),m.ADD_TAGS&&(R===Be&&(R=De(R)),O(R,m.ADD_TAGS,G)),m.ADD_ATTR&&(K===je&&(K=De(K)),O(K,m.ADD_ATTR,G)),m.ADD_URI_SAFE_ATTR&&O(Ro,m.ADD_URI_SAFE_ATTR,G),m.FORBID_CONTENTS&&(St===ea&&(St=De(St)),O(St,m.FORBID_CONTENTS,G)),cn&&(R["#text"]=!0),He&&O(R,["html","head","body"]),R.table&&(O(R,["tbody"]),delete Je.tbody),m.TRUSTED_TYPES_POLICY){if(typeof m.TRUSTED_TYPES_POLICY.createHTML!="function")throw tn('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if(typeof m.TRUSTED_TYPES_POLICY.createScriptURL!="function")throw tn('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');v=m.TRUSTED_TYPES_POLICY,_=v.createHTML("")}else v===void 0&&(v=sm(h,i)),v!==null&&typeof _=="string"&&(_=v.createHTML(""));ae&&ae(m),Et=m}},ia=O({},[...Ao,...xo,...Xd]),aa=O({},[...$o,...Zd]),Gm=function(m){let b=P(m);(!b||!b.tagName)&&(b={namespaceURI:_t,tagName:"template"});const S=xn(m.tagName),F=xn(b.tagName);return jo[m.namespaceURI]?m.namespaceURI===jn?b.namespaceURI===Fe?S==="svg":b.namespaceURI===Vn?S==="svg"&&(F==="annotation-xml"||Hn[F]):!!ia[S]:m.namespaceURI===Vn?b.namespaceURI===Fe?S==="math":b.namespaceURI===jn?S==="math"&&Fn[F]:!!aa[S]:m.namespaceURI===Fe?b.namespaceURI===jn&&!Fn[F]||b.namespaceURI===Vn&&!Hn[F]?!1:!aa[S]&&(Um[S]||!ia[S]):!!(un==="application/xhtml+xml"&&jo[m.namespaceURI]):!1},Oe=function(m){Qt(e.removed,{element:m});try{P(m).removeChild(m)}catch{k(m)}},Tt=function(m,b){try{Qt(e.removed,{attribute:b.getAttributeNode(m),from:b})}catch{Qt(e.removed,{attribute:null,from:b})}if(b.removeAttribute(m),m==="is")if(et||Ct)try{Oe(b)}catch{}else try{b.setAttribute(m,"")}catch{}},sa=function(m){let b=null,S=null;if(ln)m="<remove></remove>"+m;else{const W=Ni(m,/^[\r\n\t ]+/);S=W&&W[0]}un==="application/xhtml+xml"&&_t===Fe&&(m='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+m+"</body></html>");const F=v?v.createHTML(m):m;if(_t===Fe)try{b=new p().parseFromString(F,un)}catch{}if(!b||!b.documentElement){b=z.createDocument(_t,"template",null);try{b.documentElement.innerHTML=Vo?_:F}catch{}}const oe=b.body||b.documentElement;return m&&S&&oe.insertBefore(n.createTextNode(S),oe.childNodes[0]||null),_t===Fe?te.call(b,He?"html":"body")[0]:He?b.documentElement:oe},la=function(m){return X.call(m.ownerDocument||m,m,u.SHOW_ELEMENT|u.SHOW_COMMENT|u.SHOW_TEXT|u.SHOW_PROCESSING_INSTRUCTION|u.SHOW_CDATA_SECTION,null)},Fo=function(m){return m instanceof f&&(typeof m.nodeName!="string"||typeof m.textContent!="string"||typeof m.removeChild!="function"||!(m.attributes instanceof d)||typeof m.removeAttribute!="function"||typeof m.setAttribute!="function"||typeof m.namespaceURI!="string"||typeof m.insertBefore!="function"||typeof m.hasChildNodes!="function")},ca=function(m){return typeof l=="function"&&m instanceof l};function Ue(E,m,b){An(E,S=>{S.call(e,m,b,Et)})}const ua=function(m){let b=null;if(Ue(I.beforeSanitizeElements,m,null),Fo(m))return Oe(m),!0;const S=G(m.nodeName);if(Ue(I.uponSanitizeElement,m,{tagName:S,allowedTags:R}),bt&&m.hasChildNodes()&&!ca(m.firstElementChild)&&se(/<[/\w!]/g,m.innerHTML)&&se(/<[/\w!]/g,m.textContent)||m.nodeType===on.progressingInstruction||bt&&m.nodeType===on.comment&&se(/<[/\w]/g,m.data))return Oe(m),!0;if(!R[S]||Je[S]){if(!Je[S]&&ma(S)&&(H.tagNameCheck instanceof RegExp&&se(H.tagNameCheck,S)||H.tagNameCheck instanceof Function&&H.tagNameCheck(S)))return!1;if(cn&&!St[S]){const F=P(m)||m.parentNode,oe=T(m)||m.childNodes;if(oe&&F){const W=oe.length;for(let fe=W-1;fe>=0;--fe){const ze=w(oe[fe],!0);ze.__removalCount=(m.__removalCount||0)+1,F.insertBefore(ze,y(m))}}}return Oe(m),!0}return m instanceof s&&!Gm(m)||(S==="noscript"||S==="noembed"||S==="noframes")&&se(/<\/no(script|embed|frames)/i,m.innerHTML)?(Oe(m),!0):(Qe&&m.nodeType===on.text&&(b=m.textContent,An([V,ne,ce],F=>{b=en(b,F," ")}),m.textContent!==b&&(Qt(e.removed,{element:m.cloneNode()}),m.textContent=b)),Ue(I.afterSanitizeElements,m,null),!1)},da=function(m,b,S){if(Dn&&(b==="id"||b==="name")&&(S in n||S in Wm))return!1;if(!(an&&!rn[b]&&se(Pe,b))){if(!(Ln&&se(Xe,b))){if(!K[b]||rn[b]){if(!(ma(m)&&(H.tagNameCheck instanceof RegExp&&se(H.tagNameCheck,m)||H.tagNameCheck instanceof Function&&H.tagNameCheck(m))&&(H.attributeNameCheck instanceof RegExp&&se(H.attributeNameCheck,b)||H.attributeNameCheck instanceof Function&&H.attributeNameCheck(b))||b==="is"&&H.allowCustomizedBuiltInElements&&(H.tagNameCheck instanceof RegExp&&se(H.tagNameCheck,S)||H.tagNameCheck instanceof Function&&H.tagNameCheck(S))))return!1}else if(!Ro[b]){if(!se(ke,en(S,Ve,""))){if(!((b==="src"||b==="xlink:href"||b==="href")&&m!=="script"&&Wd(S,"data:")===0&&ta[m])){if(!(Nn&&!se(Re,en(S,Ve,"")))){if(S)return!1}}}}}}return!0},ma=function(m){return m!=="annotation-xml"&&Ni(m,Ze)},fa=function(m){Ue(I.beforeSanitizeAttributes,m,null);const{attributes:b}=m;if(!b||Fo(m))return;const S={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:K,forceKeepAttr:void 0};let F=b.length;for(;F--;){const oe=b[F],{name:W,namespaceURI:fe,value:ze}=oe,dn=G(W),Uo=ze;let re=W==="value"?Uo:Gd(Uo);if(S.attrName=dn,S.attrValue=re,S.keepAttr=!0,S.forceKeepAttr=void 0,Ue(I.uponSanitizeAttribute,m,S),re=S.attrValue,Rn&&(dn==="id"||dn==="name")&&(Tt(W,m),re=Do+re),bt&&se(/((--!?|])>)|<\/(style|title)/i,re)){Tt(W,m);continue}if(S.forceKeepAttr)continue;if(!S.keepAttr){Tt(W,m);continue}if(!Mn&&se(/\/>/i,re)){Tt(W,m);continue}Qe&&An([V,ne,ce],ha=>{re=en(re,ha," ")});const pa=G(m.nodeName);if(!da(pa,dn,re)){Tt(W,m);continue}if(v&&typeof h=="object"&&typeof h.getAttributeType=="function"&&!fe)switch(h.getAttributeType(pa,dn)){case"TrustedHTML":{re=v.createHTML(re);break}case"TrustedScriptURL":{re=v.createScriptURL(re);break}}if(re!==Uo)try{fe?m.setAttributeNS(fe,W,re):m.setAttribute(W,re),Fo(m)?Oe(m):Li(e.removed)}catch{Tt(W,m)}}Ue(I.afterSanitizeAttributes,m,null)},qm=function E(m){let b=null;const S=la(m);for(Ue(I.beforeSanitizeShadowDOM,m,null);b=S.nextNode();)Ue(I.uponSanitizeShadowNode,b,null),ua(b),fa(b),b.content instanceof a&&E(b.content);Ue(I.afterSanitizeShadowDOM,m,null)};return e.sanitize=function(E){let m=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},b=null,S=null,F=null,oe=null;if(Vo=!E,Vo&&(E="<!-->"),typeof E!="string"&&!ca(E))if(typeof E.toString=="function"){if(E=E.toString(),typeof E!="string")throw tn("dirty is not a string, aborting")}else throw tn("toString is not a function");if(!e.isSupported)return E;if(sn||Ho(m),e.removed=[],typeof E=="string"&&(lt=!1),lt){if(E.nodeName){const ze=G(E.nodeName);if(!R[ze]||Je[ze])throw tn("root node is forbidden and cannot be sanitized in-place")}}else if(E instanceof l)b=sa("<!---->"),S=b.ownerDocument.importNode(E,!0),S.nodeType===on.element&&S.nodeName==="BODY"||S.nodeName==="HTML"?b=S:b.appendChild(S);else{if(!et&&!Qe&&!He&&E.indexOf("<")===-1)return v&&wt?v.createHTML(E):E;if(b=sa(E),!b)return et?null:wt?_:""}b&&ln&&Oe(b.firstChild);const W=la(lt?E:b);for(;F=W.nextNode();)ua(F),fa(F),F.content instanceof a&&qm(F.content);if(lt)return E;if(et){if(Ct)for(oe=Ce.call(b.ownerDocument);b.firstChild;)oe.appendChild(b.firstChild);else oe=b;return(K.shadowroot||K.shadowrootmode)&&(oe=we.call(o,oe,!0)),oe}let fe=He?b.outerHTML:b.innerHTML;return He&&R["!doctype"]&&b.ownerDocument&&b.ownerDocument.doctype&&b.ownerDocument.doctype.name&&se(Hi,b.ownerDocument.doctype.name)&&(fe="<!DOCTYPE "+b.ownerDocument.doctype.name+`>
|
|
423
|
-
`+fe),Qe&&An([V,ne,ce],ze=>{fe=en(fe,ze," ")}),v&&wt?v.createHTML(fe):fe},e.setConfig=function(){let E=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};Ho(E),sn=!0},e.clearConfig=function(){Et=null,sn=!1},e.isValidAttribute=function(E,m,b){Et||Ho({});const S=G(E),F=G(m);return da(S,F,b)},e.addHook=function(E,m){typeof m=="function"&&Qt(I[E],m)},e.removeHook=function(E,m){if(m!==void 0){const b=zd(I[E],m);return b===-1?void 0:Kd(I[E],b,1)[0]}return Li(I[E])},e.removeHooks=function(E){I[E]=[]},e.removeAllHooks=function(){I=Ui()},e}var Oo=zi();class Ki{get IsVisible(){return st.isVisible()}async CreateConfirmAsync(e){return new Promise(n=>{st.fire({showCancelButton:!0,allowEscapeKey:!1,allowOutsideClick:!1,icon:"question",title:e.title,html:Oo.sanitize(e.text),confirmButtonText:e.confirmLabel??"confirmar",cancelButtonText:e.rejectLabel??"cancelar"}).then(o=>{n(o.isConfirmed===!0)})})}async ConfirmAsync(e){return this.CreateConfirmAsync({text:e})}}const Wi=()=>new Ki,lm=()=>new Ki;function cm(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var Bn={exports:{}},um=Bn.exports,Gi;function dm(){return Gi||(Gi=1,function(t){(function(e,n){t.exports?t.exports=n():e.log=n()})(um,function(){var e=function(){},n="undefined",o=typeof window!==n&&typeof window.navigator!==n&&/Trident\/|MSIE /.test(window.navigator.userAgent),i=["trace","debug","info","warn","error"],a={},c=null;function l(w,k){var y=w[k];if(typeof y.bind=="function")return y.bind(w);try{return Function.prototype.bind.call(y,w)}catch{return function(){return Function.prototype.apply.apply(y,[w,arguments])}}}function s(){console.log&&(console.log.apply?console.log.apply(console,arguments):Function.prototype.apply.apply(console.log,[console,arguments])),console.trace&&console.trace()}function u(w){return w==="debug"&&(w="log"),typeof console===n?!1:w==="trace"&&o?s:console[w]!==void 0?l(console,w):console.log!==void 0?l(console,"log"):e}function d(){for(var w=this.getLevel(),k=0;k<i.length;k++){var y=i[k];this[y]=k<w?e:this.methodFactory(y,w,this.name)}if(this.log=this.debug,typeof console===n&&w<this.levels.SILENT)return"No console available for logging"}function f(w){return function(){typeof console!==n&&(d.call(this),this[w].apply(this,arguments))}}function p(w,k,y){return u(w)||f.apply(this,arguments)}function h(w,k){var y=this,T,P,v,_="loglevel";typeof w=="string"?_+=":"+w:typeof w=="symbol"&&(_=void 0);function z(I){var V=(i[I]||"silent").toUpperCase();if(!(typeof window===n||!_)){try{window.localStorage[_]=V;return}catch{}try{window.document.cookie=encodeURIComponent(_)+"="+V+";"}catch{}}}function X(){var I;if(!(typeof window===n||!_)){try{I=window.localStorage[_]}catch{}if(typeof I===n)try{var V=window.document.cookie,ne=encodeURIComponent(_),ce=V.indexOf(ne+"=");ce!==-1&&(I=/^([^;]+)/.exec(V.slice(ce+ne.length+1))[1])}catch{}return y.levels[I]===void 0&&(I=void 0),I}}function Ce(){if(!(typeof window===n||!_)){try{window.localStorage.removeItem(_)}catch{}try{window.document.cookie=encodeURIComponent(_)+"=; expires=Thu, 01 Jan 1970 00:00:00 UTC"}catch{}}}function te(I){var V=I;if(typeof V=="string"&&y.levels[V.toUpperCase()]!==void 0&&(V=y.levels[V.toUpperCase()]),typeof V=="number"&&V>=0&&V<=y.levels.SILENT)return V;throw new TypeError("log.setLevel() called with invalid level: "+I)}y.name=w,y.levels={TRACE:0,DEBUG:1,INFO:2,WARN:3,ERROR:4,SILENT:5},y.methodFactory=k||p,y.getLevel=function(){return v??P??T},y.setLevel=function(I,V){return v=te(I),V!==!1&&z(v),d.call(y)},y.setDefaultLevel=function(I){P=te(I),X()||y.setLevel(I,!1)},y.resetLevel=function(){v=null,Ce(),d.call(y)},y.enableAll=function(I){y.setLevel(y.levels.TRACE,I)},y.disableAll=function(I){y.setLevel(y.levels.SILENT,I)},y.rebuild=function(){if(c!==y&&(T=te(c.getLevel())),d.call(y),c===y)for(var I in a)a[I].rebuild()},T=te(c?c.getLevel():"WARN");var we=X();we!=null&&(v=te(we)),d.call(y)}c=new h,c.getLogger=function(k){if(typeof k!="symbol"&&typeof k!="string"||k==="")throw new TypeError("You must supply a name when creating a logger.");var y=a[k];return y||(y=a[k]=new h(k,c.methodFactory)),y};var C=typeof window!==n?window.log:void 0;return c.noConflict=function(){return typeof window!==n&&window.log===c&&(window.log=C),c},c.getLoggers=function(){return a},c.default=c,c})}(Bn)),Bn.exports}var mm=dm();const On=cm(mm),fm=(t,e={})=>{On.setDefaultLevel(e.enableLogging?On.levels.DEBUG:On.levels.SILENT);const n=240;document.documentElement.style.setProperty("--nav-menu-width",`${n}px`);const o=r.ref(!0),i=r.ref(0),a=r.ref(!1),c=r.ref(!1),l=r.ref(""),s=r.ref(null),u=r.ref(0);t.provide(Hr,{navMenuWidth:n,isMenuOpened:o,ToggleMenu:()=>{o.value=!o.value},OpenMenu:()=>{o.value=!0},CloseMenu:()=>{o.value=!1},scrollY:i,pageTitle:l,isDarkMode:a,ToggleTheme:()=>Ft.Toggle(),EnableDarkMode:()=>Ft.EnableDarkMode(),EnableLightMode:()=>Ft.EnableLightMode(),ClearStoredTheme:()=>Ft.ClearStoredTheme(),LogoutAsync:async()=>{const f=Wi(),{oidc:p}=Un.UseAuth();await f.ConfirmAsync("Deseja realmente sair da sua conta?")&&(Mo("Saindo..."),c.value=!0,await new Promise(C=>setTimeout(C,1e3)),p.logout({redirectUri:window.location.origin}).catch(()=>{c.value=!1,Qi()}))},Login:()=>{const{oidc:f}=Un.UseAuth();f.login()},isLoggingOut:c,mainRef:s,mainWidth:u,isMainXs:r.computed(()=>u.value<=384),isMainSm:r.computed(()=>u.value>384),isMainMd:r.computed(()=>u.value>768),isMainLg:r.computed(()=>u.value>992),isMainXl:r.computed(()=>u.value>1280),isMain2Xl:r.computed(()=>u.value>1536),isMain3Xl:r.computed(()=>u.value>1920)}),new MutationObserver(()=>{a.value=document.documentElement.classList.contains("dark")}).observe(document.documentElement,{attributes:!0,attributeFilter:["class"]}),document.addEventListener("scroll",()=>{i.value=document.documentElement.scrollTop}),Ft.SetInitialTheme()},pm=On;class Lo extends Error{constructor(e=[]){const n=Array.isArray(e)?e:[e];super(n[0]),this.errors=n}errors=[]}class qi{constructor(e=null){this._value=e,this._httpStatusCode=200}errors=[];_value=null;_httpStatusCode;get value(){return this._value}set value(e){this._value=e}get hasSuccess(){return this.isSuccessfulHttpStatusCode&&this.errors.length===0}get hasError(){return!this.hasSuccess}get httpStatusCode(){return this._httpStatusCode}set httpStatusCode(e){this._httpStatusCode=e}WithError(e){if(Array.isArray(e)){e.forEach(n=>this.WithError(n));return}this.errors.push(e),this.isSuccessfulHttpStatusCode||(this._httpStatusCode=400)}get isSuccessfulHttpStatusCode(){return this._httpStatusCode>=200&&this._httpStatusCode<300}[Symbol.toPrimitive](e){if(e==="throw")throw new Lo(this.errors)}get firstError(){return this.hasSuccess?null:this.errors[0]}}class Yi{get IsVisible(){return st.isVisible()}async CreateAlertAsync(e){let n="info",o,i;return typeof e=="string"||Array.isArray(e)?o=Array.isArray(e)?e.join("<br />"):e:(n=e.icon??"info",i=e.title??"",o=Array.isArray(e.text)?e.text.join("<br />"):e.text),new Promise(a=>{st.fire({allowEscapeKey:!1,allowOutsideClick:!1,icon:n,title:i,html:`<div style="max-height: 50vh; overflow: auto">${Oo.sanitize(o)}</div>`}).then(()=>a(!0))})}async AlertAsync(e){return this.CreateAlertAsync({text:e,icon:"info"})}async AlertErrorAsync(e){return this.CreateAlertAsync({text:e,icon:"error"})}async AlertSuccessAsync(e){return this.CreateAlertAsync({text:e,icon:"success"})}}const Xi=()=>new Yi,hm=()=>new Yi;window.addEventListener("error",function(t){return No(t.error)||console.error(t.error||t.message),t.preventDefault(),!1}),window.addEventListener("unhandledrejection",function(t){return No(t.reason)||console.error("Unhandled Rejection",t.reason),t.preventDefault(),!1});const gm=t=>{t.config.errorHandler=(e,n,o)=>{No(e)||console.error("Vue Global Error Handler: ",{err:e,vm:n,info:o})}},No=t=>{if(!t)return!0;try{if(t.httpStatusCode===401)return!0}catch{}return t instanceof Lo||t instanceof qi?(Xi().AlertErrorAsync(t.errors),!0):!1},ym={class:"font-percentage"},Zi="--font-size-increment",vm="tamanho-fonte",bm=Le(r.defineComponent({__name:"FontSize",setup(t){const e=r.ref(!1),n=r.ref(0),o=()=>{n.value=zn(),e.value=!0},i=()=>{e.value=!1},a=()=>document.documentElement,c=()=>parseInt(getComputedStyle(a()).getPropertyValue(Zi)||"1"),l=p=>{p<.5||p>1.6||(a().style.setProperty(Zi,p.toString()),f.value=p)},s=()=>{l(f.value+.1)},u=()=>{l(f.value-.1)},d=()=>{l(1)},f=r.ref(1);return r.onBeforeMount(()=>{localStorage.removeItem(vm)}),r.onMounted(()=>{f.value=c()}),(p,h)=>(r.openBlock(),r.createElementBlock(r.Fragment,null,[r.createVNode(Ie,{button:!0,size:"sm",icon:"text_increase",tooltip:"Tamanho da fonte",onClick:o}),e.value?(r.openBlock(),r.createElementBlock(r.Fragment,{key:0},[r.createElementVNode("div",{class:r.normalizeClass(["border","fadein","font-size-wrapper"]),style:r.normalizeStyle({zIndex:n.value+1})},[r.createElementVNode("div",{class:"icon",onClick:u}),r.createElementVNode("span",ym,r.toDisplayString(f.value.toLocaleString("pt-br",{style:"percent",maximumFractionDigits:0})),1),r.createElementVNode("div",{class:"icon add",onClick:s}),r.createElementVNode("span",{class:"redefinir",onClick:d}," Redefinir ")],4),r.createElementVNode("div",{class:"font-size-mask",style:r.normalizeStyle({zIndex:n.value}),onClick:i},null,4)],64)):r.createCommentVNode("",!0)],64))}}),[["__scopeId","data-v-d17f4a5f"]]),Cm=r.defineComponent({__name:"ScrollToTop",setup(t){const{scrollY:e}=Ht(),n=r.computed(()=>e.value>800);function o(){document.documentElement.scrollTo(0,0)}return(i,a)=>(r.openBlock(),r.createElementBlock("button",{class:r.normalizeClass(["sf-scrollToTop",{"sf-scrollToTop-visible":n.value}]),onClick:o},null,2))}}),wm={class:"nav-menu-header"},km={class:"nav-menu-inner-close"},Sm={class:"main-content"},_m={class:"page-title"},Em={class:"action"},Tm={id:"content"},Pm={key:0,id:"logging-out"},Im={class:"info-fazenda"},Am={class:"font-bold"},xm={class:"info-endereco text-muted"},$m={class:"footer-right"},Bm=Le(r.defineComponent({__name:"Main",props:{auth:{}},emits:["login"],setup(t,{emit:e}){const n=t,{navMenuWidth:o,isMenuOpened:i,pageTitle:a,scrollY:c,ToggleMenu:l,isDarkMode:s,ToggleTheme:u,CloseMenu:d,LogoutAsync:f,isLoggingOut:p,mainRef:h,mainWidth:C}=Ht(),w=r.ref(null),k=()=>{if(!w.value||!i.value)return!1;w.value.offsetWidth!==o&&d()};r.onMounted(()=>{if(ga.useRouter().afterEach(()=>{k()}),h.value){let P=null;jr(h,v=>{r.nextTick(()=>{P&&clearTimeout(P),P=setTimeout(()=>{C.value=v[0].contentRect.width},10)}),C.value=v[0].contentRect.width}),C.value=h.value.clientWidth}});const y=e;return(T,P)=>(r.openBlock(),r.createElementBlock("main",{ref_key:"mainRef",ref:h,class:r.normalizeClass({disabled:r.unref(p),"nav-menu-visible":r.unref(i)})},[r.createElementVNode("aside",{id:"nav-menu",ref_key:"navMenuRef",ref:w,class:r.normalizeClass({"nav-menu-hidden":!r.unref(i)})},[r.createElementVNode("div",wm,[P[1]||(P[1]=r.createElementVNode("span",null,"Menu",-1)),r.createElementVNode("div",km,[r.createVNode(Ie,{button:!0,icon:"close",onClick:r.unref(l)},null,8,["onClick"])])]),r.renderSlot(T.$slots,"nav-menu",{},void 0,!0)],2),r.createElementVNode("div",Sm,[r.createElementVNode("div",{id:"top-bar",class:r.normalizeClass({"shadow-bottom":r.unref(c)>72})},[r.createVNode(Ie,{button:!0,icon:r.unref(i)?"menu_open":"menu",tooltip:"Menu",onClick:r.unref(l)},null,8,["icon","onClick"]),r.createElementVNode("div",_m,r.toDisplayString(r.unref(p)?"Saindo...":r.unref(a)),1),P[2]||(P[2]=r.createElementVNode("span",{class:"sep"},null,-1)),r.createElementVNode("div",Em,[r.createVNode(Ie,{button:!0,size:"sm",icon:r.unref(s)?"light_mode":"dark_mode",tooltip:r.unref(s)?"Modo claro":"Modo escuro",onClick:r.unref(u)},null,8,["icon","tooltip","onClick"]),r.createVNode(bm),n.auth?(r.openBlock(),r.createElementBlock(r.Fragment,{key:0},[n.auth.isAuthenticated?(r.openBlock(),r.createBlock(Ie,{key:0,button:!0,size:"sm",icon:"logout",tooltip:"Sair",onClick:r.unref(f)},null,8,["onClick"])):(r.openBlock(),r.createBlock(Ie,{key:1,button:!0,size:"sm",icon:"login",tooltip:"Entrar",onClick:P[0]||(P[0]=v=>y("login"))}))],64)):r.createCommentVNode("",!0)])],2),r.createElementVNode("div",Tm,[r.unref(p)?(r.openBlock(),r.createElementBlock("div",Pm,[r.createVNode(Ko)])):r.renderSlot(T.$slots,"content",{key:1},void 0,!0)])]),r.createElementVNode("footer",null,[P[5]||(P[5]=r.createElementVNode("div",{class:"logo-fazenda"},null,-1)),r.createElementVNode("div",Im,[r.createElementVNode("span",Am,[r.renderSlot(T.$slots,"footer-nome-fazenda",{},()=>[P[3]||(P[3]=r.createTextVNode(" SECRETARIA MUNICIPAL DA FAZENDA ",-1))],!0)]),r.createElementVNode("span",xm,[r.renderSlot(T.$slots,"footer-endereco-fazenda",{},()=>[P[4]||(P[4]=r.createTextVNode(" Rua Líbero Badaró, 190 - Centro - São Paulo - SP - CEP 01008-000 ",-1))],!0)])]),r.createElementVNode("div",$m,[r.renderSlot(T.$slots,"footer-right",{},void 0,!0)])]),r.createVNode(Cm)],2))}}),[["__scopeId","data-v-5108e4ac"]]),Om=r.defineComponent({__name:"PageTitle",props:{title:{}},setup(t){const{pageTitle:e}=Ht(),n=t;return r.watchEffect(()=>{document.title=n.title,e.value=n.title}),(o,i)=>null}}),vt=t=>{const e=t==="light"?"0, 0, 0":"198, 198, 198";return`0 1px 3px 0 rgba(${e}, 0.1), 0 1px 2px -1px rgba(${e}, 0.1);`},Ji={surface:{0:"var(--surface-0-color)",50:"var(--surface-100-color)",100:"var(--surface-100-color)",200:"var(--surface-200-color)",300:"var(--surface-300-color)",400:"var(--surface-400-color)",500:"var(--surface-1000-color)",600:"var(--surface-600-color)",700:"var(--surface-700-color)",800:"var(--surface-800-color)",900:"var(--surface-900-color)",950:"var(--surface-1000-color)"},primary:{color:"var(--primary-color)",contrastColor:"var(--bg-color)",hoverColor:"var(--primary-hover-color)",activeColor:"var(--primary-color)"},highlight:{background:"var(--primary-color)",color:"var(--bg-color)"},formField:{background:"var(--surface-0-color)",disabledBackground:"var(--surface-0-color)",filledBackground:"var(--surface-100-color)",filledFocusBackground:"var(--surface-100-color)",borderColor:"var(--surface-1000-color)",hoverBorderColor:"var(--primary-color)",focusBorderColor:"var(--primary-color)",invalidBorderColor:"var(--error-color)",color:"var(--text-color)",disabledColor:"var(--disabled-color)",placeholderColor:"var(--muted-color)",floatLabelColor:"var(--secondary-color)",floatLabelFocusColor:"var(--secondary-color)",floatLabelInvalidColor:"var(--error-color)",iconColor:"var(--primary-color)"},text:{color:"var(--text-color)",hoverColor:"var(--primary-color)",mutedColor:"var(--muted-color)",hoverMutedColor:"var(--muted-color)"},mask:{background:"var(--maskbg-color)",color:"var(--surface-200-color)"},content:{background:"var(--bg-color)",color:"var(--text-color)",border:{color:"var(--surface-1000-color)",radius:"var(--border-radius)"},hover:{background:"var(--primary-hover-color)",color:"var(--primary-color)"}}},Lm={semantic:{disabled:{opacity:"1"},transitionDuration:"0",primary:{50:"color-mix(in srgb, currentColor 5%, transparent)",100:"color-mix(in srgb, currentColor 10%, transparent)",200:"color-mix(in srgb, currentColor 20%, transparent)",300:"color-mix(in srgb, currentColor 30%, transparent)",400:"color-mix(in srgb, currentColor 40%, transparent)",500:"color-mix(in srgb, currentColor 50%, transparent)",600:"color-mix(in srgb, currentColor 60%, transparent)",700:"color-mix(in srgb, currentColor 70%, transparent)",800:"color-mix(in srgb, currentColor 80%, transparent)",900:"color-mix(in srgb, currentColor 90%, transparent)",950:"color-mix(in srgb, currentColor 95%, transparent)"},colorScheme:{light:{...Ji},dark:{...Ji}}},components:{accordion:{header:{background:"transparent",activeBackground:"transparent",hoverBackground:"transparent",activeHoverBackground:"transparent"},content:{background:"transparent"}},blockui:{root:{borderRadius:"0px"}},button:{colorScheme:{light:{root:{primary:{background:"var(--primary-color) ",borderColor:"var(--primary-color)",focusRing:{color:"var(--primary-color)"},hoverBorderColor:"var(--primary-color)",hoverBackground:"color-mix(in srgb, var(--primary-color) 90%, black 10%)",activeBackground:"color-mix(in srgb, var(--primary-color) 80%, black 20%)",activeBorderColor:"var(--primary-color)"},secondary:{background:"var(--secondary-color) ",borderColor:"var(--secondary-color)",focusRing:{color:"var(--secondary-color)"},hoverBorderColor:"var(--secondary-color)",hoverBackground:"color-mix(in srgb, var(--secondary-color) 90%, black 10%)",activeBackground:"color-mix(in srgb, var(--secondary-color) 80%, black 20%)",activeBorderColor:"var(--secondary-color)"},success:{background:"var(--success-color) ",borderColor:"var(--success-color)",focusRing:{color:"var(--success-color)"},hoverBorderColor:"var(--success-color)",hoverBackground:"color-mix(in srgb, var(--success-color) 90%, black 10%)",activeBackground:"color-mix(in srgb, var(--success-color) 80%, black 20%)",activeBorderColor:"var(--success-color)"},info:{background:"var(--info-color) ",borderColor:"var(--info-color)",focusRing:{color:"var(--info-color)"},hoverBorderColor:"var(--info-color)",hoverBackground:"color-mix(in srgb, var(--info-color) 90%, black 10%)",activeBackground:"color-mix(in srgb, var(--info-color) 80%, black 20%)",activeBorderColor:"var(--info-color)"},warn:{background:"var(--warn-color) ",borderColor:"var(--warn-color)",focusRing:{color:"var(--warn-color)"},hoverBorderColor:"var(--warn-color)",hoverBackground:"color-mix(in srgb, var(--warn-color) 90%, black 10%)",activeBackground:"color-mix(in srgb, var(--warn-color) 80%, black 20%)",activeBorderColor:"var(--warn-color)"},help:{background:"var(--help-color) ",borderColor:"var(--help-color)",focusRing:{color:"var(--help-color)"},hoverBorderColor:"var(--help-color)",hoverBackground:"color-mix(in srgb, var(--help-color) 90%, black 10%)",activeBackground:"color-mix(in srgb, var(--help-color) 80%, black 20%)",activeBorderColor:"var(--help-color)"},danger:{background:"var(--error-color) ",borderColor:"var(--error-color)",focusRing:{color:"var(--error-color)"},hoverBorderColor:"var(--error-color)",hoverBackground:"color-mix(in srgb, var(--error-color) 90%, black 10%)",activeBackground:"color-mix(in srgb, var(--error-color) 80%, black 20%)",activeBorderColor:"var(--error-color)"},contrast:{background:"var(--text-color) ",borderColor:"var(--text-color)",focusRing:{color:"var(--text-color)"},hoverBorderColor:"var(--text-color)",hoverBackground:"color-mix(in srgb, var(--text-color) 90%, black 10%)",activeBackground:"color-mix(in srgb, var(--text-color) 80%, black 20%)",activeBorderColor:"var(--text-color)"}},outlined:{primary:{color:"var(--primary-color) !important",hoverBackground:"color-mix(in srgb, currentColor 10%, transparent) !important",activeBackground:"color-mix(in srgb, currentColor 15%, transparent) !important",borderColor:"color-mix(in srgb, currentColor 25%, transparent) !important"},secondary:{color:"var(--secondary-color) !important",hoverBackground:"color-mix(in srgb, currentColor 10%, transparent) !important",activeBackground:"color-mix(in srgb, currentColor 15%, transparent) !important",borderColor:"color-mix(in srgb, currentColor 25%, transparent) !important"},success:{color:"var(--success-color) !important",hoverBackground:"color-mix(in srgb, currentColor 10%, transparent) !important",activeBackground:"color-mix(in srgb, currentColor 15%, transparent) !important",borderColor:"color-mix(in srgb, currentColor 25%, transparent) !important"},info:{color:"var(--info-color) !important",hoverBackground:"color-mix(in srgb, currentColor 10%, transparent) !important",activeBackground:"color-mix(in srgb, currentColor 15%, transparent) !important",borderColor:"color-mix(in srgb, currentColor 25%, transparent) !important"},warn:{color:"var(--warn-color) !important",hoverBackground:"color-mix(in srgb, currentColor 10%, transparent) !important",activeBackground:"color-mix(in srgb, currentColor 15%, transparent) !important",borderColor:"color-mix(in srgb, currentColor 25%, transparent) !important"},help:{color:"var(--help-color) !important",hoverBackground:"color-mix(in srgb, currentColor 10%, transparent) !important",activeBackground:"color-mix(in srgb, currentColor 15%, transparent) !important",borderColor:"color-mix(in srgb, currentColor 25%, transparent) !important"},danger:{color:"var(--error-color) !important",hoverBackground:"color-mix(in srgb, currentColor 10%, transparent) !important",activeBackground:"color-mix(in srgb, currentColor 15%, transparent) !important",borderColor:"color-mix(in srgb, currentColor 25%, transparent) !important"},contrast:{color:"var(--text-color) !important",hoverBackground:"color-mix(in srgb, currentColor 10%, transparent) !important",activeBackground:"color-mix(in srgb, currentColor 15%, transparent) !important",borderColor:"color-mix(in srgb, currentColor 25%, transparent) !important"}},text:{primary:{color:"var(--primary-color) !important",hoverBackground:"color-mix(in srgb, currentColor 10%, transparent) !important",activeBackground:"color-mix(in srgb, currentColor 15%, transparent) !important"},secondary:{color:"var(--secondary-color) !important",hoverBackground:"color-mix(in srgb, currentColor 10%, transparent) !important",activeBackground:"color-mix(in srgb, currentColor 15%, transparent) !important"},success:{color:"var(--success-color) !important",hoverBackground:"color-mix(in srgb, currentColor 10%, transparent) !important",activeBackground:"color-mix(in srgb, currentColor 15%, transparent) !important"},info:{color:"var(--info-color) !important",hoverBackground:"color-mix(in srgb, currentColor 10%, transparent) !important",activeBackground:"color-mix(in srgb, currentColor 15%, transparent) !important"},warn:{color:"var(--warn-color) !important",hoverBackground:"color-mix(in srgb, currentColor 10%, transparent) !important",activeBackground:"color-mix(in srgb, currentColor 15%, transparent) !important"},help:{color:"var(--help-color) !important",hoverBackground:"color-mix(in srgb, currentColor 10%, transparent) !important",activeBackground:"color-mix(in srgb, currentColor 15%, transparent) !important"},danger:{color:"var(--error-color) !important",hoverBackground:"color-mix(in srgb, currentColor 10%, transparent) !important",activeBackground:"color-mix(in srgb, currentColor 15%, transparent) !important"},contrast:{color:"var(--text-color) !important",hoverBackground:"color-mix(in srgb, currentColor 10%, transparent) !important",activeBackground:"color-mix(in srgb, currentColor 15%, transparent) !important"}}},dark:{root:{primary:{background:"var(--primary-color) ",borderColor:"var(--primary-color)",focusRing:{color:"var(--primary-color)"},hoverBorderColor:"var(--primary-color)",hoverBackground:"color-mix(in srgb, var(--primary-color) 90%, white 10%)",activeBackground:"color-mix(in srgb, var(--primary-color) 80%, white 20%)"},secondary:{background:"var(--secondary-color) ",borderColor:"var(--secondary-color)",focusRing:{color:"var(--secondary-color)"},hoverBorderColor:"var(--secondary-color)",hoverBackground:"color-mix(in srgb, var(--secondary-color) 90%, white 10%)",activeBackground:"color-mix(in srgb, var(--secondary-color) 80%, white 20%)",activeBorderColor:"var(--secondary-color)"},success:{background:"var(--success-color) ",borderColor:"var(--success-color)",focusRing:{color:"var(--success-color)"},hoverBorderColor:"var(--success-color)",hoverBackground:"color-mix(in srgb, var(--success-color) 90%, white 10%)",activeBackground:"color-mix(in srgb, var(--success-color) 80%, white 20%)",activeBorderColor:"var(--success-color)"},info:{background:"var(--info-color) ",borderColor:"var(--info-color)",focusRing:{color:"var(--info-color)"},hoverBorderColor:"var(--info-color)",hoverBackground:"color-mix(in srgb, var(--info-color) 90%, white 10%)",activeBackground:"color-mix(in srgb, var(--info-color) 80%, white 20%)",activeBorderColor:"var(--info-color)"},warn:{background:"var(--warn-color) ",borderColor:"var(--warn-color)",focusRing:{color:"var(--warn-color)"},hoverBorderColor:"var(--warn-color)",hoverBackground:"color-mix(in srgb, var(--warn-color) 90%, white 10%)",activeBackground:"color-mix(in srgb, var(--warn-color) 80%, white 20%)",activeBorderColor:"var(--warn-color)"},help:{background:"var(--help-color) ",borderColor:"var(--help-color)",focusRing:{color:"var(--help-color)"},hoverBorderColor:"var(--help-color)",hoverBackground:"color-mix(in srgb, var(--help-color) 90%, white 10%)",activeBackground:"color-mix(in srgb, var(--help-color) 80%, white 20%)",activeBorderColor:"var(--help-color)"},danger:{background:"var(--error-color) ",borderColor:"var(--error-color)",focusRing:{color:"var(--error-color)"},hoverBorderColor:"var(--error-color)",hoverBackground:"color-mix(in srgb, var(--error-color) 90%, white 10%)",activeBackground:"color-mix(in srgb, var(--error-color) 80%, white 20%)",activeBorderColor:"var(--error-color)"},contrast:{background:"var(--text-color) ",borderColor:"var(--text-color)",focusRing:{color:"var(--text-color)"},hoverBorderColor:"var(--text-color)",hoverBackground:"color-mix(in srgb, var(--text-color) 90%, white 10%)",activeBackground:"color-mix(in srgb, var(--text-color) 80%, white 20%)",activeBorderColor:"var(--text-color)"}},outlined:{primary:{color:"var(--primary-color) !important",hoverBackground:"color-mix(in srgb, currentColor 15%, transparent) !important",activeBackground:"color-mix(in srgb, currentColor 20%, transparent) !important",borderColor:"color-mix(in srgb, currentColor 30%, transparent) !important"},secondary:{color:"var(--secondary-color) !important",hoverBackground:"color-mix(in srgb, currentColor 15%, transparent) !important",activeBackground:"color-mix(in srgb, currentColor 20%, transparent) !important",borderColor:"color-mix(in srgb, currentColor 30%, transparent) !important"},success:{color:"var(--success-color) !important",hoverBackground:"color-mix(in srgb, currentColor 15%, transparent) !important",activeBackground:"color-mix(in srgb, currentColor 20%, transparent) !important",borderColor:"color-mix(in srgb, currentColor 30%, transparent) !important"},info:{color:"var(--info-color) !important",hoverBackground:"color-mix(in srgb, currentColor 15%, transparent) !important",activeBackground:"color-mix(in srgb, currentColor 20%, transparent) !important",borderColor:"color-mix(in srgb, currentColor 30%, transparent) !important"},warn:{color:"var(--warn-color) !important",hoverBackground:"color-mix(in srgb, currentColor 15%, transparent) !important",activeBackground:"color-mix(in srgb, currentColor 20%, transparent) !important",borderColor:"color-mix(in srgb, currentColor 30%, transparent) !important"},help:{color:"var(--help-color) !important",hoverBackground:"color-mix(in srgb, currentColor 15%, transparent) !important",activeBackground:"color-mix(in srgb, currentColor 20%, transparent) !important",borderColor:"color-mix(in srgb, currentColor 30%, transparent) !important"},danger:{color:"var(--error-color) !important",hoverBackground:"color-mix(in srgb, currentColor 15%, transparent) !important",activeBackground:"color-mix(in srgb, currentColor 20%, transparent) !important",borderColor:"color-mix(in srgb, currentColor 30%, transparent) !important"},contrast:{color:"var(--text-color) !important",hoverBackground:"color-mix(in srgb, currentColor 15%, transparent) !important",activeBackground:"color-mix(in srgb, currentColor 20%, transparent) !important",borderColor:"color-mix(in srgb, currentColor 30%, transparent) !important"}},text:{primary:{color:"var(--primary-color) !important",hoverBackground:"color-mix(in srgb, currentColor 15%, transparent) !important",activeBackground:"color-mix(in srgb, currentColor 20%, transparent) !important"},secondary:{color:"var(--secondary-color) !important",hoverBackground:"color-mix(in srgb, currentColor 15%, transparent) !important",activeBackground:"color-mix(in srgb, currentColor 20%, transparent) !important"},success:{color:"var(--success-color) !important",hoverBackground:"color-mix(in srgb, currentColor 15%, transparent) !important",activeBackground:"color-mix(in srgb, currentColor 20%, transparent) !important"},info:{color:"var(--info-color) !important",hoverBackground:"color-mix(in srgb, currentColor 15%, transparent) !important",activeBackground:"color-mix(in srgb, currentColor 20%, transparent) !important"},warn:{color:"var(--warn-color) !important",hoverBackground:"color-mix(in srgb, currentColor 15%, transparent) !important",activeBackground:"color-mix(in srgb, currentColor 20%, transparent) !important"},help:{color:"var(--help-color) !important",hoverBackground:"color-mix(in srgb, currentColor 15%, transparent) !important",activeBackground:"color-mix(in srgb, currentColor 20%, transparent) !important"},danger:{color:"var(--error-color) !important",hoverBackground:"color-mix(in srgb, currentColor 15%, transparent) !important",activeBackground:"color-mix(in srgb, currentColor 20%, transparent) !important"},contrast:{color:"var(--text-color) !important",hoverBackground:"color-mix(in srgb, currentColor 15%, transparent) !important",activeBackground:"color-mix(in srgb, currentColor 20%, transparent) !important"}}}}},card:{root:{borderRadius:"var(--border-radius)"},title:{fontWeight:"700",fontSize:"var(--text-md)"},body:{padding:"var(--content-gutter)"},colorScheme:{light:{root:{background:"var(--bg-color)",shadow:vt("light")}},dark:{root:{background:"var(--surface-300-color)",shadow:vt("dark")}}}},checkbox:{root:{background:"var(--surface-200-color) !important",borderColor:"var(--muted-color) !important",borderRadius:"var(--border-radius) !important",checkedBackground:"var(--primary-color) !important",checkedHoverBackground:"var(--primary-color) !important",sm:{width:"1rem",height:"1rem"},lg:{width:"1.5rem",height:"1.5rem"}}},confirmpopup:{root:{borderColor:"var(--border-color)"},colorScheme:{light:{root:{background:"var(--bg-color)",shadow:vt("light")}},dark:{root:{background:"var(--surface-300-color)",shadow:vt("dark")}}}},datatable:{root:{borderColor:"var(--border-color) !important"},header:{borderColor:"var(--border-color) !important",padding:"0 0 var(--content-gutter) 0",sm:{padding:"0 0 var(--content-gutter-sm) 0"}},headerCell:{borderColor:"var(--border-color) !important",hoverColor:"var(--primary-color) !important",hoverBackground:"var(--primary-hover-color) !important"},bodyCell:{borderColor:"var(--border-color) !important"},footer:{borderColor:"var(--border-color) !important"},colorScheme:{light:{header:{background:"var(--bg-color)",color:"var(--text-color)"},headerCell:{background:"var(--bg-color)"},footerCell:{background:"var(--bg-color)"},row:{background:"var(--bg-color)",stripedBackground:"var(--surface-300-color)"}},dark:{header:{background:"var(--surface-300-color)",color:"var(--text-color)"},headerCell:{background:"var(--surface-300-color)"},footerCell:{background:"var(--surface-300-color)"},row:{stripedBackground:"var(--bg-color)",background:"var(--surface-300-color)"}}}},datepicker:{today:{background:"var(--primary-hover-color) !important",color:"var(--primary-color) !important"}},dialog:{root:{background:"var(--bg-color) !important",color:"var(--text-color) !important",borderColor:"var(--border-color) !important",borderRadius:"var(--border-radius) !important",shadow:"none !important"},title:{fontSize:"var(--font-size) !important",fontWeight:"700 !important"},header:{padding:"0.75rem 0.75rem 0 1rem !important",gap:"var(--content-gutter-sm) !important"},content:{padding:"var(--content-gutter) !important"},footer:{padding:"0.75rem 0.75rem 0 1rem !important",gap:"var(--content-gutter-sm) !important"}},inputtext:{root:{background:"var(--surface-100-color)",color:"var(--text-color)",borderColor:"var(--border-color) !important",borderRadius:"var(--border-radius) !important",shadow:"none !important",hoverBorderColor:"var(--primary-color) !important",placeholderColor:"var(--muted-color)"}},menu:{item:{focusBackground:"var(--surface-400-color)",focusColor:"var(--text-color)"},colorScheme:{light:{root:{background:"var(--bg-color)",shadow:vt("light")}},dark:{root:{background:"var(--surface-200-color)",shadow:vt("dark")}}}},popover:{root:{background:"var(--bg-color)",color:"var(--text-color)",borderColor:"var(--border-color)",borderRadius:"var(--border-radius)",shadow:"none",gutter:"8px",arrowOffset:"0.75rem"},content:{padding:"0"}},select:{root:{background:"var(--bg-color)",color:"var(--text-color)",hoverBorderColor:"var(--primary-color)",placeholderColor:"var(--muted-color)",disabledColor:"var(--disabled-color)"},option:{focusBackground:"var(--surface-200-color)",focusColor:"var(--primary-color)",selectedFocusColor:"var(--bg-color)",selectedFocusBackground:"var(--primary-color)"},overlay:{borderColor:"var(--border-color)"},dropdown:{color:"var(--primary-color)"},colorScheme:{light:{overlay:{background:"var(--bg-color)"}},dark:{overlay:{background:"var(--surface-100-color)"}}}},skeleton:{root:{background:"var(--surface-700-color)",animationBackground:"var(--surface-100-color)"}},textarea:{root:{background:"var(--surface-100-color)",hoverBorderColor:"var(--primary-color)",placeholderColor:"var(--muted-color)"}},toast:{root:{width:"min(90vw, 320px)"},colorScheme:{light:{contrast:{background:"var(--text-color)",color:"var(--bg-color)",detailColor:"var(--bg-color)"}},dark:{contrast:{background:"var(--bg-color)",color:"var(--text-color)",detailColor:"var(--text-color)"}}},info:{background:"var(--info-color)",color:"var(--info-hover-color)",detailColor:"var(--text-color)"},success:{background:"var(--success-color)",color:"var(--success-hover-color)",detailColor:"var(--text-color)"},warn:{background:"var(--warn-color)",color:"var(--warn-hover-color)",detailColor:"var(--text-color)"},error:{background:"var(--error-color)",color:"var(--error-hover-color)",detailColor:"var(--text-color)"},secondary:{background:"var(--secondary-color)",color:"var(--secondary-hover-color)",detailColor:"var(--text-color)"}},toggleswitch:{colorScheme:{light:{root:{background:"var(--border-color)",hoverBackground:"var(--border-color)",hoverBorderColor:"transparent",checkedBackground:"var(--primary-color)",checkedHoverBackground:"var(--primary-color)",checkedBorderColor:"transparent"}},dark:{root:{background:"var(--border-color)",hoverBackground:"var(--border-color)",hoverBorderColor:"transparent",checkedBackground:"var(--primary-color)",checkedHoverBackground:"var(--primary-color)",checkedBorderColor:"transparent"}}}}}};class Ye{static get IsTouch(){return window.matchMedia("(pointer: coarse)").matches}static GetMaxZindex(e=[]){let n="body > *:not(script):not(style)";for(const i of e)n+=`, ${i}`;const o=Math.max(...Array.from(document.querySelectorAll(n)).map(i=>{const a=getComputedStyle(i).zIndex;return+a==+a?+a:0}));return o>=100?o:100}static AjustarFuso(e){const n=e.getTimezoneOffset()/60;e.setHours(e.getHours()-n)}static Mask(e,n){let o=0,i=e.toString();return n.replace(/#/g,()=>i[o++]||"")}static MaskCpf(e){return Ye.Mask(e.padStart(11,"0"),"###.###.###-##")}static MaskCnpj(e){return Ye.Mask(e.padStart(14,"0"),"##.###.###/####-##")}static MaskCcm(e){return Ye.Mask(e.padStart(8,"0"),"#.###.###-#")}static async DelayAsync(e=400){return new Promise(n=>setTimeout(n,e))}static FormatNumber(e,n=0,o="pt-BR"){return e.toLocaleString(o,{minimumFractionDigits:n,maximumFractionDigits:n})}static FormatCurrency(e,n="pt-BR"){return e.toLocaleString(n,{style:"currency",currency:"BRL"})}static HasKey(e,n){return e&&n in e}static GetFilenameFromContentDisposition(e){if(!e)return null;const n=e.match(/filename\*\s*=\s*(?:UTF-8'')?([^;\r\n]+)/i);if(n)try{return decodeURIComponent(n[1].trim().replace(/^"|"$/g,""))}catch{return n[1].trim().replace(/^"|"$/g,"")}const o=e.match(/filename\s*=\s*("(.*?)"|([^;,\r\n]+))/i);return o?(o[2]||o[3]).trim().replace(/^"|"$/g,""):null}}class Nm{sub;username;name;email;roles;groups;userinfo;department;jobTitle;idp;constructor(e){this.userinfo=e,this.sub=e.sub,this.username=e.employeeID??e.cpf??"",this.name=e.name??"",this.email=e.email??null,this.roles=e.role??[],this.groups=e.group??[],this.department=this.SetDepartment(),this.jobTitle=this.SetJobTitle(),this.idp=this.SetIdp()}get firstname(){return this.name.split(" ")[0]??this.name}get maskedUsername(){return this.username?this.username.length<=11?Ye.MaskCpf(this.username):this.username.length===14?Ye.MaskCnpj(this.username):this.username:""}IsInRole(e){return this.roles.includes(e)}IsInGroup(e){return this.groups.includes(e)}SetIdp(){const e=this.userinfo?.identity_provider??null;return e?.toLocaleLowerCase()==="gov.br"?"govbr":e?.toLocaleLowerCase().startsWith("senhaweb")?"senhaweb":null}SetDepartment(){return this.userinfo?.department??null}SetJobTitle(){return this.userinfo?.jobTitle??null}}function Mm(){const t=r.ref("development");function e(s){t.value=s.toLocaleLowerCase()}const n=r.computed(()=>t.value==="development"),o=r.computed(()=>t.value==="pack"),i=r.computed(()=>t.value==="hml"),a=r.computed(()=>t.value==="production"),c=r.ref(null);function l(){c.value=null}return{environment:t,SetEnvironment:e,isDev:n,isPack:o,isHml:i,isProd:a,user:c,$reset:l}}const Dm=t=>{const e=new Set;function n(o){const{name:i,children:a}=o;if(i){if(e.has(i))throw new Error(["Erro na validação das rotas!",`Nome de rota duplicado: ${i}`].join(`
|
|
424
|
-
`));e.add(i)}if(a&&Array.isArray(a))for(const c of a)n(c)}for(const o of t)n(o)};Promise.prototype.TrackStateWith||(Promise.prototype.TrackStateWith=async function(t){t.value=!0;try{return await this}finally{t.value=!1}});class
|
|
422
|
+
If you think this parameter should be updatable, request it here: https://github.com/sweetalert2/sweetalert2/issues/new?template=02_feature_request.md`)}),e};function od(){const t=O.domCache.get(this),e=O.innerParams.get(this);if(!e){yi(this);return}t.popup&&A.swalCloseEventFinishedCallback&&(A.swalCloseEventFinishedCallback(),delete A.swalCloseEventFinishedCallback),A.deferDisposalTimer&&(clearTimeout(A.deferDisposalTimer),delete A.deferDisposalTimer),typeof e.didDestroy=="function"&&e.didDestroy(),rd(this)}const rd=t=>{yi(t),delete t.params,delete A.keydownHandler,delete A.keydownTarget,delete A.currentInstance},yi=t=>{t.isAwaitingPromise()?(yo(O,t),O.awaitingPromise.set(t,!0)):(yo(Qt,t),yo(O,t))},yo=(t,e)=>{for(const n in t)t[n].delete(e)},vi=Object.freeze(Object.defineProperty({__proto__:null,_destroy:od,close:Pn,closeModal:Pn,closePopup:Pn,closeToast:Pn,disableButtons:Yu,disableInput:Zu,disableLoading:ci,enableButtons:qu,enableInput:Xu,getInput:xu,getProgressSteps:ed,handleAwaitingPromise:en,hideLoading:ci,isAwaitingPromise:Fu,rejectPromise:Uu,resetValidationMessage:Qu,showValidationMessage:Ju,update:td},Symbol.toStringTag,{value:"Module"})),id=t=>{const e=O.innerParams.get(t);t.disableButtons(),e.input?bi(t,"confirm"):bo(t,!0)},ad=t=>{const e=O.innerParams.get(t);t.disableButtons(),e.returnInputValueOnDeny?bi(t,"deny"):vo(t,!1)},sd=(t,e)=>{t.disableButtons(),e(ht.cancel)},bi=(t,e)=>{const n=O.innerParams.get(t);if(!n.input)return ot(`The "input" parameter is needed to be set when using returnInputValueOn${no(e)}`);const o=ku(t,n);n.inputValidator?ld(t,o,e):t.getInput().checkValidity()?e==="deny"?vo(t,o):bo(t,o):(t.enableButtons(),t.showValidationMessage(n.validationMessage))},ld=(t,e,n)=>{const o=O.innerParams.get(t);t.disableInput(),Promise.resolve().then(()=>Wt(o.inputValidator(e,o.validationMessage))).then(a=>{t.enableButtons(),t.enableInput(),a?t.showValidationMessage(a):n==="deny"?vo(t,e):bo(t,e)})},vo=(t,e)=>{const n=O.innerParams.get(t||void 0);n.showLoaderOnDeny&>(Ge()),n.preDeny?(O.awaitingPromise.set(t||void 0,!0),Promise.resolve().then(()=>Wt(n.preDeny(e,n.validationMessage))).then(i=>{i===!1?(t.hideLoading(),en(t)):t.closePopup({isDenied:!0,value:typeof i>"u"?e:i})}).catch(i=>wi(t||void 0,i))):t.closePopup({isDenied:!0,value:e})},Ci=(t,e)=>{t.closePopup({isConfirmed:!0,value:e})},wi=(t,e)=>{t.rejectPromise(e)},bo=(t,e)=>{const n=O.innerParams.get(t||void 0);n.showLoaderOnConfirm&>(),n.preConfirm?(t.resetValidationMessage(),O.awaitingPromise.set(t||void 0,!0),Promise.resolve().then(()=>Wt(n.preConfirm(e,n.validationMessage))).then(i=>{he(_n())||i===!1?(t.hideLoading(),en(t)):Ci(t,typeof i>"u"?e:i)}).catch(i=>wi(t||void 0,i))):Ci(t,e)},cd=(t,e,n)=>{O.innerParams.get(t).toast?ud(t,e,n):(md(e),fd(e),pd(t,e,n))},ud=(t,e,n)=>{e.popup.onclick=()=>{const o=O.innerParams.get(t);o&&(dd(o)||o.timer||o.input)||n(ht.close)}},dd=t=>t.showConfirmButton||t.showDenyButton||t.showCancelButton||t.showCloseButton;let An=!1;const md=t=>{t.popup.onmousedown=()=>{t.container.onmouseup=function(e){t.container.onmouseup=void 0,e.target===t.container&&(An=!0)}}},fd=t=>{t.container.onmousedown=()=>{t.popup.onmouseup=function(e){t.popup.onmouseup=void 0,(e.target===t.popup||t.popup.contains(e.target))&&(An=!0)}}},pd=(t,e,n)=>{e.container.onclick=o=>{const i=O.innerParams.get(t);if(An){An=!1;return}o.target===e.container&&kn(i.allowOutsideClick)&&n(ht.backdrop)}},hd=t=>typeof t=="object"&&t.jquery,ki=t=>t instanceof Element||hd(t),gd=t=>{const e={};return typeof t[0]=="object"&&!ki(t[0])?Object.assign(e,t[0]):["title","html","icon"].forEach((n,o)=>{const i=t[o];typeof i=="string"||ki(i)?e[n]=i:i!==void 0&&ot(`Unexpected type of ${n}! Expected "string" or "Element", got ${typeof i}`)}),e};function yd(...t){const e=this;return new e(...t)}function vd(t){class e extends this{_main(o,i){return super._main(o,Object.assign({},t,i))}}return e}const bd=()=>A.timeout&&A.timeout.getTimerLeft(),Si=()=>{if(A.timeout)return ac(),A.timeout.stop()},_i=()=>{if(A.timeout){const t=A.timeout.start();return uo(t),t}},Cd=()=>{const t=A.timeout;return t&&(t.running?Si():_i())},wd=t=>{if(A.timeout){const e=A.timeout.increase(t);return uo(e,!0),e}},kd=()=>A.timeout&&A.timeout.isRunning();let Ei=!1;const Co={};function Sd(t="data-swal-template"){Co[t]=this,Ei||(document.body.addEventListener("click",_d),Ei=!0)}const _d=t=>{for(let e=t.target;e&&e!==document;e=e.parentNode)for(const n in Co){const o=e.getAttribute(n);if(o){Co[n].fire({template:o});return}}},Ed=Object.freeze(Object.defineProperty({__proto__:null,argsToParams:gd,bindClickHandler:Sd,clickCancel:Ou,clickConfirm:ui,clickDeny:$u,enableLoading:gt,fire:yd,getActions:Yt,getCancelButton:rt,getCloseButton:ao,getConfirmButton:Ee,getContainer:J,getDenyButton:Ge,getFocusableElements:so,getFooter:Wr,getHtmlContainer:Sn,getIcon:qt,getImage:zr,getInputLabel:tc,getLoader:ft,getPopup:R,getTimerLeft:bd,getTimerProgressBar:En,getTitle:Fr,getValidationMessage:_n,increaseTimer:wd,isDeprecatedParameter:io,isLoading:oc,isTimerRunning:kd,isUpdatableParameter:jr,isValidParameter:Vr,isVisible:Bu,mixin:vd,resumeTimer:_i,showLoading:gt,stopTimer:Si,toggleTimer:Cd},Symbol.toStringTag,{value:"Module"}));let wo;class yt{constructor(...e){if(typeof window>"u")return;wo=this;const n=Object.freeze(this.constructor.argsToParams(e));Object.defineProperties(this,{params:{value:n,writable:!1,enumerable:!0,configurable:!0}});const o=this._main(this.params);O.promise.set(this,o)}_main(e,n={}){Ql(Object.assign({},n,e)),A.currentInstance&&(A.currentInstance._destroy(),lo()&&oi()),A.currentInstance=this;const o=Id(e,n);iu(o),Object.freeze(o),A.timeout&&(A.timeout.stop(),delete A.timeout),clearTimeout(A.restoreFocusTimeout);const i=Pd(this);return ni(this,o),O.innerParams.set(this,o),Td(this,i,o)}then(e){return O.promise.get(this).then(e)}finally(e){return O.promise.get(this).finally(e)}}const Td=(t,e,n)=>new Promise((o,i)=>{const a=c=>{t.closePopup({isDismissed:!0,dismiss:c})};Qt.swalPromiseResolve.set(t,o),Qt.swalPromiseReject.set(t,i),e.confirmButton.onclick=()=>id(t),e.denyButton.onclick=()=>ad(t),e.cancelButton.onclick=()=>sd(t,a),e.closeButton.onclick=()=>a(ht.close),cd(t,e,a),Lu(t,A,n,a),wu(t,n),gu(n),Ad(A,n,a),xd(e,n),setTimeout(()=>{e.container.scrollTop=0})}),Id=(t,e)=>{const n=Yc(t),o=Object.assign({},mt,e,n,t);return o.showClass=Object.assign({},mt.showClass,o.showClass),o.hideClass=Object.assign({},mt.hideClass,o.hideClass),o},Pd=t=>{const e={popup:R(),container:J(),actions:Yt(),confirmButton:Ee(),denyButton:Ge(),cancelButton:rt(),loader:ft(),closeButton:ao(),validationMessage:_n(),progressSteps:Ur()};return O.domCache.set(t,e),e},Ad=(t,e,n)=>{const o=En();ee(o),e.timer&&(t.timeout=new au(()=>{n("timer"),delete t.timeout},e.timer),e.timerProgressBar&&(Y(o),ye(o,e,"timerProgressBar"),setTimeout(()=>{t.timeout&&t.timeout.running&&uo(e.timer)})))},xd=(t,e)=>{if(!e.toast){if(!kn(e.allowEnterKey))return $d();Bd(t,e)||go(e,-1,1)}},Bd=(t,e)=>e.focusDeny&&he(t.denyButton)?(t.denyButton.focus(),!0):e.focusCancel&&he(t.cancelButton)?(t.cancelButton.focus(),!0):e.focusConfirm&&he(t.confirmButton)?(t.confirmButton.focus(),!0):!1,$d=()=>{document.activeElement instanceof HTMLElement&&typeof document.activeElement.blur=="function"&&document.activeElement.blur()};Object.assign(yt.prototype,vi),Object.assign(yt,Ed),Object.keys(vi).forEach(t=>{yt[t]=function(...e){if(wo)return wo[t](...e)}}),yt.DismissReason=ht,yt.version="11.4.8";const st=yt;st.default=st;/*! @license DOMPurify 3.2.6 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/3.2.6/LICENSE */const{entries:Ti,setPrototypeOf:Ii,isFrozen:Od,getPrototypeOf:Ld,getOwnPropertyDescriptor:Nd}=Object;let{freeze:ae,seal:ve,create:Pi}=Object,{apply:ko,construct:So}=typeof Reflect<"u"&&Reflect;ae||(ae=function(e){return e}),ve||(ve=function(e){return e}),ko||(ko=function(e,n,o){return e.apply(n,o)}),So||(So=function(e,n){return new e(...n)});const xn=le(Array.prototype.forEach),Md=le(Array.prototype.lastIndexOf),Ai=le(Array.prototype.pop),tn=le(Array.prototype.push),Dd=le(Array.prototype.splice),Bn=le(String.prototype.toLowerCase),_o=le(String.prototype.toString),xi=le(String.prototype.match),nn=le(String.prototype.replace),Rd=le(String.prototype.indexOf),Vd=le(String.prototype.trim),Te=le(Object.prototype.hasOwnProperty),se=le(RegExp.prototype.test),on=jd(TypeError);function le(t){return function(e){e instanceof RegExp&&(e.lastIndex=0);for(var n=arguments.length,o=new Array(n>1?n-1:0),i=1;i<n;i++)o[i-1]=arguments[i];return ko(t,e,o)}}function jd(t){return function(){for(var e=arguments.length,n=new Array(e),o=0;o<e;o++)n[o]=arguments[o];return So(t,n)}}function L(t,e){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:Bn;Ii&&Ii(t,null);let o=e.length;for(;o--;){let i=e[o];if(typeof i=="string"){const a=n(i);a!==i&&(Od(e)||(e[o]=a),i=a)}t[i]=!0}return t}function Hd(t){for(let e=0;e<t.length;e++)Te(t,e)||(t[e]=null);return t}function Me(t){const e=Pi(null);for(const[n,o]of Ti(t))Te(t,n)&&(Array.isArray(o)?e[n]=Hd(o):o&&typeof o=="object"&&o.constructor===Object?e[n]=Me(o):e[n]=o);return e}function rn(t,e){for(;t!==null;){const o=Nd(t,e);if(o){if(o.get)return le(o.get);if(typeof o.value=="function")return le(o.value)}t=Ld(t)}function n(){return null}return n}const Bi=ae(["a","abbr","acronym","address","area","article","aside","audio","b","bdi","bdo","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","content","data","datalist","dd","decorator","del","details","dfn","dialog","dir","div","dl","dt","element","em","fieldset","figcaption","figure","font","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","img","input","ins","kbd","label","legend","li","main","map","mark","marquee","menu","menuitem","meter","nav","nobr","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","section","select","shadow","small","source","spacer","span","strike","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video","wbr"]),Eo=ae(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","filter","font","g","glyph","glyphref","hkern","image","line","lineargradient","marker","mask","metadata","mpath","path","pattern","polygon","polyline","radialgradient","rect","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]),To=ae(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),Fd=ae(["animate","color-profile","cursor","discard","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignobject","hatch","hatchpath","mesh","meshgradient","meshpatch","meshrow","missing-glyph","script","set","solidcolor","unknown","use"]),Io=ae(["math","menclose","merror","mfenced","mfrac","mglyph","mi","mlabeledtr","mmultiscripts","mn","mo","mover","mpadded","mphantom","mroot","mrow","ms","mspace","msqrt","mstyle","msub","msup","msubsup","mtable","mtd","mtext","mtr","munder","munderover","mprescripts"]),zd=ae(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),$i=ae(["#text"]),Oi=ae(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","controls","controlslist","coords","crossorigin","datetime","decoding","default","dir","disabled","disablepictureinpicture","disableremoteplayback","download","draggable","enctype","enterkeyhint","face","for","headers","height","hidden","high","href","hreflang","id","inputmode","integrity","ismap","kind","label","lang","list","loading","loop","low","max","maxlength","media","method","min","minlength","multiple","muted","name","nonce","noshade","novalidate","nowrap","open","optimum","pattern","placeholder","playsinline","popover","popovertarget","popovertargetaction","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","spellcheck","scope","selected","shape","size","sizes","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","wrap","xmlns","slot"]),Po=ae(["accent-height","accumulate","additive","alignment-baseline","amplitude","ascent","attributename","attributetype","azimuth","basefrequency","baseline-shift","begin","bias","by","class","clip","clippathunits","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","cx","cy","d","dx","dy","diffuseconstant","direction","display","divisor","dur","edgemode","elevation","end","exponent","fill","fill-opacity","fill-rule","filter","filterunits","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","fx","fy","g1","g2","glyph-name","glyphref","gradientunits","gradienttransform","height","href","id","image-rendering","in","in2","intercept","k","k1","k2","k3","k4","kerning","keypoints","keysplines","keytimes","lang","lengthadjust","letter-spacing","kernelmatrix","kernelunitlength","lighting-color","local","marker-end","marker-mid","marker-start","markerheight","markerunits","markerwidth","maskcontentunits","maskunits","max","mask","media","method","mode","min","name","numoctaves","offset","operator","opacity","order","orient","orientation","origin","overflow","paint-order","path","pathlength","patterncontentunits","patterntransform","patternunits","points","preservealpha","preserveaspectratio","primitiveunits","r","rx","ry","radius","refx","refy","repeatcount","repeatdur","restart","result","rotate","scale","seed","shape-rendering","slope","specularconstant","specularexponent","spreadmethod","startoffset","stddeviation","stitchtiles","stop-color","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke","stroke-width","style","surfacescale","systemlanguage","tabindex","tablevalues","targetx","targety","transform","transform-origin","text-anchor","text-decoration","text-rendering","textlength","type","u1","u2","unicode","values","viewbox","visibility","version","vert-adv-y","vert-origin-x","vert-origin-y","width","word-spacing","wrap","writing-mode","xchannelselector","ychannelselector","x","x1","x2","xmlns","y","y1","y2","z","zoomandpan"]),Li=ae(["accent","accentunder","align","bevelled","close","columnsalign","columnlines","columnspan","denomalign","depth","dir","display","displaystyle","encoding","fence","frame","height","href","id","largeop","length","linethickness","lspace","lquote","mathbackground","mathcolor","mathsize","mathvariant","maxsize","minsize","movablelimits","notation","numalign","open","rowalign","rowlines","rowspacing","rowspan","rspace","rquote","scriptlevel","scriptminsize","scriptsizemultiplier","selection","separator","separators","stretchy","subscriptshift","supscriptshift","symmetric","voffset","width","xmlns"]),$n=ae(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),Ud=ve(/\{\{[\w\W]*|[\w\W]*\}\}/gm),Wd=ve(/<%[\w\W]*|[\w\W]*%>/gm),Kd=ve(/\$\{[\w\W]*/gm),Gd=ve(/^data-[\-\w.\u00B7-\uFFFF]+$/),qd=ve(/^aria-[\-\w]+$/),Ni=ve(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),Yd=ve(/^(?:\w+script|data):/i),Xd=ve(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),Mi=ve(/^html$/i),Zd=ve(/^[a-z][.\w]*(-[.\w]+)+$/i);var Di=Object.freeze({__proto__:null,ARIA_ATTR:qd,ATTR_WHITESPACE:Xd,CUSTOM_ELEMENT:Zd,DATA_ATTR:Gd,DOCTYPE_NAME:Mi,ERB_EXPR:Wd,IS_ALLOWED_URI:Ni,IS_SCRIPT_OR_DATA:Yd,MUSTACHE_EXPR:Ud,TMPLIT_EXPR:Kd});const an={element:1,text:3,progressingInstruction:7,comment:8,document:9},Jd=function(){return typeof window>"u"?null:window},Qd=function(e,n){if(typeof e!="object"||typeof e.createPolicy!="function")return null;let o=null;const i="data-tt-policy-suffix";n&&n.hasAttribute(i)&&(o=n.getAttribute(i));const a="dompurify"+(o?"#"+o:"");try{return e.createPolicy(a,{createHTML(c){return c},createScriptURL(c){return c}})}catch{return console.warn("TrustedTypes policy "+a+" could not be created."),null}},Ri=function(){return{afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}};function Vi(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:Jd();const e=E=>Vi(E);if(e.version="3.2.6",e.removed=[],!t||!t.document||t.document.nodeType!==an.document||!t.Element)return e.isSupported=!1,e;let{document:n}=t;const o=n,i=o.currentScript,{DocumentFragment:a,HTMLTemplateElement:c,Node:l,Element:s,NodeFilter:u,NamedNodeMap:d=t.NamedNodeMap||t.MozNamedAttrMap,HTMLFormElement:f,DOMParser:h,trustedTypes:p}=t,v=s.prototype,w=rn(v,"cloneNode"),k=rn(v,"remove"),y=rn(v,"nextSibling"),T=rn(v,"childNodes"),I=rn(v,"parentNode");if(typeof c=="function"){const E=n.createElement("template");E.content&&E.content.ownerDocument&&(n=E.content.ownerDocument)}let b,_="";const{implementation:U,createNodeIterator:X,createDocumentFragment:be,getElementsByTagName:te}=n,{importNode:Ce}=o;let P=Ri();e.isSupported=typeof Ti=="function"&&typeof I=="function"&&U&&U.createHTMLDocument!==void 0;const{MUSTACHE_EXPR:j,ERB_EXPR:ne,TMPLIT_EXPR:ce,DATA_ATTR:Ie,ARIA_ATTR:Xe,IS_SCRIPT_OR_DATA:De,ATTR_WHITESPACE:Re,CUSTOM_ELEMENT:Ze}=Di;let{IS_ALLOWED_URI:we}=Di,V=null;const $e=L({},[...Bi,...Eo,...To,...Io,...$i]);let W=null;const Ve=L({},[...Oi,...Po,...Li,...$n]);let F=Object.seal(Pi(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),Je=null,sn=null,Nn=!0,ln=!0,Mn=!1,Dn=!0,Qe=!1,bt=!0,je=!1,cn=!1,un=!1,et=!1,Ct=!1,wt=!1,Rn=!0,Vn=!1;const Oo="user-content-";let dn=!0,lt=!1,kt={},St=null;const Yi=L({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]);let Xi=null;const Zi=L({},["audio","video","img","source","image","track"]);let Lo=null;const Ji=L({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),jn="http://www.w3.org/1998/Math/MathML",Hn="http://www.w3.org/2000/svg",He="http://www.w3.org/1999/xhtml";let _t=He,No=!1,Mo=null;const Hm=L({},[jn,Hn,He],_o);let Fn=L({},["mi","mo","mn","ms","mtext"]),zn=L({},["annotation-xml"]);const Fm=L({},["title","style","font","a","script"]);let mn=null;const zm=["application/xhtml+xml","text/html"],Um="text/html";let G=null,Et=null;const Wm=n.createElement("form"),Qi=function(m){return m instanceof RegExp||m instanceof Function},Do=function(){let m=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(!(Et&&Et===m)){if((!m||typeof m!="object")&&(m={}),m=Me(m),mn=zm.indexOf(m.PARSER_MEDIA_TYPE)===-1?Um:m.PARSER_MEDIA_TYPE,G=mn==="application/xhtml+xml"?_o:Bn,V=Te(m,"ALLOWED_TAGS")?L({},m.ALLOWED_TAGS,G):$e,W=Te(m,"ALLOWED_ATTR")?L({},m.ALLOWED_ATTR,G):Ve,Mo=Te(m,"ALLOWED_NAMESPACES")?L({},m.ALLOWED_NAMESPACES,_o):Hm,Lo=Te(m,"ADD_URI_SAFE_ATTR")?L(Me(Ji),m.ADD_URI_SAFE_ATTR,G):Ji,Xi=Te(m,"ADD_DATA_URI_TAGS")?L(Me(Zi),m.ADD_DATA_URI_TAGS,G):Zi,St=Te(m,"FORBID_CONTENTS")?L({},m.FORBID_CONTENTS,G):Yi,Je=Te(m,"FORBID_TAGS")?L({},m.FORBID_TAGS,G):Me({}),sn=Te(m,"FORBID_ATTR")?L({},m.FORBID_ATTR,G):Me({}),kt=Te(m,"USE_PROFILES")?m.USE_PROFILES:!1,Nn=m.ALLOW_ARIA_ATTR!==!1,ln=m.ALLOW_DATA_ATTR!==!1,Mn=m.ALLOW_UNKNOWN_PROTOCOLS||!1,Dn=m.ALLOW_SELF_CLOSE_IN_ATTR!==!1,Qe=m.SAFE_FOR_TEMPLATES||!1,bt=m.SAFE_FOR_XML!==!1,je=m.WHOLE_DOCUMENT||!1,et=m.RETURN_DOM||!1,Ct=m.RETURN_DOM_FRAGMENT||!1,wt=m.RETURN_TRUSTED_TYPE||!1,un=m.FORCE_BODY||!1,Rn=m.SANITIZE_DOM!==!1,Vn=m.SANITIZE_NAMED_PROPS||!1,dn=m.KEEP_CONTENT!==!1,lt=m.IN_PLACE||!1,we=m.ALLOWED_URI_REGEXP||Ni,_t=m.NAMESPACE||He,Fn=m.MATHML_TEXT_INTEGRATION_POINTS||Fn,zn=m.HTML_INTEGRATION_POINTS||zn,F=m.CUSTOM_ELEMENT_HANDLING||{},m.CUSTOM_ELEMENT_HANDLING&&Qi(m.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(F.tagNameCheck=m.CUSTOM_ELEMENT_HANDLING.tagNameCheck),m.CUSTOM_ELEMENT_HANDLING&&Qi(m.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(F.attributeNameCheck=m.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),m.CUSTOM_ELEMENT_HANDLING&&typeof m.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements=="boolean"&&(F.allowCustomizedBuiltInElements=m.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),Qe&&(ln=!1),Ct&&(et=!0),kt&&(V=L({},$i),W=[],kt.html===!0&&(L(V,Bi),L(W,Oi)),kt.svg===!0&&(L(V,Eo),L(W,Po),L(W,$n)),kt.svgFilters===!0&&(L(V,To),L(W,Po),L(W,$n)),kt.mathMl===!0&&(L(V,Io),L(W,Li),L(W,$n))),m.ADD_TAGS&&(V===$e&&(V=Me(V)),L(V,m.ADD_TAGS,G)),m.ADD_ATTR&&(W===Ve&&(W=Me(W)),L(W,m.ADD_ATTR,G)),m.ADD_URI_SAFE_ATTR&&L(Lo,m.ADD_URI_SAFE_ATTR,G),m.FORBID_CONTENTS&&(St===Yi&&(St=Me(St)),L(St,m.FORBID_CONTENTS,G)),dn&&(V["#text"]=!0),je&&L(V,["html","head","body"]),V.table&&(L(V,["tbody"]),delete Je.tbody),m.TRUSTED_TYPES_POLICY){if(typeof m.TRUSTED_TYPES_POLICY.createHTML!="function")throw on('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if(typeof m.TRUSTED_TYPES_POLICY.createScriptURL!="function")throw on('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');b=m.TRUSTED_TYPES_POLICY,_=b.createHTML("")}else b===void 0&&(b=Qd(p,i)),b!==null&&typeof _=="string"&&(_=b.createHTML(""));ae&&ae(m),Et=m}},ea=L({},[...Eo,...To,...Fd]),ta=L({},[...Io,...zd]),Km=function(m){let C=I(m);(!C||!C.tagName)&&(C={namespaceURI:_t,tagName:"template"});const S=Bn(m.tagName),z=Bn(C.tagName);return Mo[m.namespaceURI]?m.namespaceURI===Hn?C.namespaceURI===He?S==="svg":C.namespaceURI===jn?S==="svg"&&(z==="annotation-xml"||Fn[z]):!!ea[S]:m.namespaceURI===jn?C.namespaceURI===He?S==="math":C.namespaceURI===Hn?S==="math"&&zn[z]:!!ta[S]:m.namespaceURI===He?C.namespaceURI===Hn&&!zn[z]||C.namespaceURI===jn&&!Fn[z]?!1:!ta[S]&&(Fm[S]||!ea[S]):!!(mn==="application/xhtml+xml"&&Mo[m.namespaceURI]):!1},Oe=function(m){tn(e.removed,{element:m});try{I(m).removeChild(m)}catch{k(m)}},Tt=function(m,C){try{tn(e.removed,{attribute:C.getAttributeNode(m),from:C})}catch{tn(e.removed,{attribute:null,from:C})}if(C.removeAttribute(m),m==="is")if(et||Ct)try{Oe(C)}catch{}else try{C.setAttribute(m,"")}catch{}},na=function(m){let C=null,S=null;if(un)m="<remove></remove>"+m;else{const K=xi(m,/^[\r\n\t ]+/);S=K&&K[0]}mn==="application/xhtml+xml"&&_t===He&&(m='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+m+"</body></html>");const z=b?b.createHTML(m):m;if(_t===He)try{C=new h().parseFromString(z,mn)}catch{}if(!C||!C.documentElement){C=U.createDocument(_t,"template",null);try{C.documentElement.innerHTML=No?_:z}catch{}}const oe=C.body||C.documentElement;return m&&S&&oe.insertBefore(n.createTextNode(S),oe.childNodes[0]||null),_t===He?te.call(C,je?"html":"body")[0]:je?C.documentElement:oe},oa=function(m){return X.call(m.ownerDocument||m,m,u.SHOW_ELEMENT|u.SHOW_COMMENT|u.SHOW_TEXT|u.SHOW_PROCESSING_INSTRUCTION|u.SHOW_CDATA_SECTION,null)},Ro=function(m){return m instanceof f&&(typeof m.nodeName!="string"||typeof m.textContent!="string"||typeof m.removeChild!="function"||!(m.attributes instanceof d)||typeof m.removeAttribute!="function"||typeof m.setAttribute!="function"||typeof m.namespaceURI!="string"||typeof m.insertBefore!="function"||typeof m.hasChildNodes!="function")},ra=function(m){return typeof l=="function"&&m instanceof l};function Fe(E,m,C){xn(E,S=>{S.call(e,m,C,Et)})}const ia=function(m){let C=null;if(Fe(P.beforeSanitizeElements,m,null),Ro(m))return Oe(m),!0;const S=G(m.nodeName);if(Fe(P.uponSanitizeElement,m,{tagName:S,allowedTags:V}),bt&&m.hasChildNodes()&&!ra(m.firstElementChild)&&se(/<[/\w!]/g,m.innerHTML)&&se(/<[/\w!]/g,m.textContent)||m.nodeType===an.progressingInstruction||bt&&m.nodeType===an.comment&&se(/<[/\w]/g,m.data))return Oe(m),!0;if(!V[S]||Je[S]){if(!Je[S]&&sa(S)&&(F.tagNameCheck instanceof RegExp&&se(F.tagNameCheck,S)||F.tagNameCheck instanceof Function&&F.tagNameCheck(S)))return!1;if(dn&&!St[S]){const z=I(m)||m.parentNode,oe=T(m)||m.childNodes;if(oe&&z){const K=oe.length;for(let fe=K-1;fe>=0;--fe){const ze=w(oe[fe],!0);ze.__removalCount=(m.__removalCount||0)+1,z.insertBefore(ze,y(m))}}}return Oe(m),!0}return m instanceof s&&!Km(m)||(S==="noscript"||S==="noembed"||S==="noframes")&&se(/<\/no(script|embed|frames)/i,m.innerHTML)?(Oe(m),!0):(Qe&&m.nodeType===an.text&&(C=m.textContent,xn([j,ne,ce],z=>{C=nn(C,z," ")}),m.textContent!==C&&(tn(e.removed,{element:m.cloneNode()}),m.textContent=C)),Fe(P.afterSanitizeElements,m,null),!1)},aa=function(m,C,S){if(Rn&&(C==="id"||C==="name")&&(S in n||S in Wm))return!1;if(!(ln&&!sn[C]&&se(Ie,C))){if(!(Nn&&se(Xe,C))){if(!W[C]||sn[C]){if(!(sa(m)&&(F.tagNameCheck instanceof RegExp&&se(F.tagNameCheck,m)||F.tagNameCheck instanceof Function&&F.tagNameCheck(m))&&(F.attributeNameCheck instanceof RegExp&&se(F.attributeNameCheck,C)||F.attributeNameCheck instanceof Function&&F.attributeNameCheck(C))||C==="is"&&F.allowCustomizedBuiltInElements&&(F.tagNameCheck instanceof RegExp&&se(F.tagNameCheck,S)||F.tagNameCheck instanceof Function&&F.tagNameCheck(S))))return!1}else if(!Lo[C]){if(!se(we,nn(S,Re,""))){if(!((C==="src"||C==="xlink:href"||C==="href")&&m!=="script"&&Rd(S,"data:")===0&&Xi[m])){if(!(Mn&&!se(De,nn(S,Re,"")))){if(S)return!1}}}}}}return!0},sa=function(m){return m!=="annotation-xml"&&xi(m,Ze)},la=function(m){Fe(P.beforeSanitizeAttributes,m,null);const{attributes:C}=m;if(!C||Ro(m))return;const S={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:W,forceKeepAttr:void 0};let z=C.length;for(;z--;){const oe=C[z],{name:K,namespaceURI:fe,value:ze}=oe,fn=G(K),Vo=ze;let re=K==="value"?Vo:Vd(Vo);if(S.attrName=fn,S.attrValue=re,S.keepAttr=!0,S.forceKeepAttr=void 0,Fe(P.uponSanitizeAttribute,m,S),re=S.attrValue,Vn&&(fn==="id"||fn==="name")&&(Tt(K,m),re=Oo+re),bt&&se(/((--!?|])>)|<\/(style|title)/i,re)){Tt(K,m);continue}if(S.forceKeepAttr)continue;if(!S.keepAttr){Tt(K,m);continue}if(!Dn&&se(/\/>/i,re)){Tt(K,m);continue}Qe&&xn([j,ne,ce],ua=>{re=nn(re,ua," ")});const ca=G(m.nodeName);if(!aa(ca,fn,re)){Tt(K,m);continue}if(b&&typeof p=="object"&&typeof p.getAttributeType=="function"&&!fe)switch(p.getAttributeType(ca,fn)){case"TrustedHTML":{re=b.createHTML(re);break}case"TrustedScriptURL":{re=b.createScriptURL(re);break}}if(re!==Vo)try{fe?m.setAttributeNS(fe,K,re):m.setAttribute(K,re),Ro(m)?Oe(m):Ai(e.removed)}catch{Tt(K,m)}}Fe(P.afterSanitizeAttributes,m,null)},Gm=function E(m){let C=null;const S=oa(m);for(Fe(P.beforeSanitizeShadowDOM,m,null);C=S.nextNode();)Fe(P.uponSanitizeShadowNode,C,null),ia(C),la(C),C.content instanceof a&&E(C.content);Fe(P.afterSanitizeShadowDOM,m,null)};return e.sanitize=function(E){let m=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},C=null,S=null,z=null,oe=null;if(No=!E,No&&(E="<!-->"),typeof E!="string"&&!ra(E))if(typeof E.toString=="function"){if(E=E.toString(),typeof E!="string")throw on("dirty is not a string, aborting")}else throw on("toString is not a function");if(!e.isSupported)return E;if(cn||Do(m),e.removed=[],typeof E=="string"&&(lt=!1),lt){if(E.nodeName){const ze=G(E.nodeName);if(!V[ze]||Je[ze])throw on("root node is forbidden and cannot be sanitized in-place")}}else if(E instanceof l)C=na("<!---->"),S=C.ownerDocument.importNode(E,!0),S.nodeType===an.element&&S.nodeName==="BODY"||S.nodeName==="HTML"?C=S:C.appendChild(S);else{if(!et&&!Qe&&!je&&E.indexOf("<")===-1)return b&&wt?b.createHTML(E):E;if(C=na(E),!C)return et?null:wt?_:""}C&&un&&Oe(C.firstChild);const K=oa(lt?E:C);for(;z=K.nextNode();)ia(z),la(z),z.content instanceof a&&Gm(z.content);if(lt)return E;if(et){if(Ct)for(oe=be.call(C.ownerDocument);C.firstChild;)oe.appendChild(C.firstChild);else oe=C;return(W.shadowroot||W.shadowrootmode)&&(oe=Ce.call(o,oe,!0)),oe}let fe=je?C.outerHTML:C.innerHTML;return je&&V["!doctype"]&&C.ownerDocument&&C.ownerDocument.doctype&&C.ownerDocument.doctype.name&&se(Mi,C.ownerDocument.doctype.name)&&(fe="<!DOCTYPE "+C.ownerDocument.doctype.name+`>
|
|
423
|
+
`+fe),Qe&&xn([j,ne,ce],ze=>{fe=nn(fe,ze," ")}),b&&wt?b.createHTML(fe):fe},e.setConfig=function(){let E=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};Do(E),cn=!0},e.clearConfig=function(){Et=null,cn=!1},e.isValidAttribute=function(E,m,C){Et||Do({});const S=G(E),z=G(m);return aa(S,z,C)},e.addHook=function(E,m){typeof m=="function"&&tn(P[E],m)},e.removeHook=function(E,m){if(m!==void 0){const C=Md(P[E],m);return C===-1?void 0:Dd(P[E],C,1)[0]}return Ai(P[E])},e.removeHooks=function(E){P[E]=[]},e.removeAllHooks=function(){P=Ri()},e}var Ao=Vi();const em=t=>!(!t||!(t instanceof HTMLElement)||Math.max(document.documentElement.clientWidth||0,window.innerWidth||0)<640);class ji{get IsVisible(){return st.isVisible()}async CreateConfirmAsync(e){return this.ConfirmWithOptionsAsync(e)}async ConfirmWithOptionsAsync(e){return e.confirmLabel??="sim",e.rejectLabel??="não",e.confirmColor??="primary",e.rejectColor??="primary",em(e.target)?this.CreatePopoverAsync(e).then(n=>n===!0):new Promise(n=>{st.fire({showCancelButton:!0,allowEscapeKey:!1,allowOutsideClick:!1,icon:"question",title:e.title,html:Ao.sanitize(e.text),confirmButtonText:e.confirmLabel,cancelButtonText:e.rejectLabel,confirmButtonColor:`var(--${e.confirmColor}-color)`,cancelButtonColor:`var(--${e.rejectColor}-color)`}).then(o=>{n(o.isConfirmed===!0)})})}async ConfirmAsync(e,n){return this.ConfirmWithOptionsAsync({text:e,target:n})}async CreatePopoverAsync(e){let n;const o=new Promise(a=>{n=a}),i=new CustomEvent("sfconfirm:popup",{detail:{options:e,resolve:n},bubbles:!0,cancelable:!0,composed:!0});return document.dispatchEvent(i),o}}const Hi=()=>new ji,tm=()=>new ji;function nm(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var On={exports:{}},om=On.exports,Fi;function rm(){return Fi||(Fi=1,function(t){(function(e,n){t.exports?t.exports=n():e.log=n()})(om,function(){var e=function(){},n="undefined",o=typeof window!==n&&typeof window.navigator!==n&&/Trident\/|MSIE /.test(window.navigator.userAgent),i=["trace","debug","info","warn","error"],a={},c=null;function l(w,k){var y=w[k];if(typeof y.bind=="function")return y.bind(w);try{return Function.prototype.bind.call(y,w)}catch{return function(){return Function.prototype.apply.apply(y,[w,arguments])}}}function s(){console.log&&(console.log.apply?console.log.apply(console,arguments):Function.prototype.apply.apply(console.log,[console,arguments])),console.trace&&console.trace()}function u(w){return w==="debug"&&(w="log"),typeof console===n?!1:w==="trace"&&o?s:console[w]!==void 0?l(console,w):console.log!==void 0?l(console,"log"):e}function d(){for(var w=this.getLevel(),k=0;k<i.length;k++){var y=i[k];this[y]=k<w?e:this.methodFactory(y,w,this.name)}if(this.log=this.debug,typeof console===n&&w<this.levels.SILENT)return"No console available for logging"}function f(w){return function(){typeof console!==n&&(d.call(this),this[w].apply(this,arguments))}}function h(w,k,y){return u(w)||f.apply(this,arguments)}function p(w,k){var y=this,T,I,b,_="loglevel";typeof w=="string"?_+=":"+w:typeof w=="symbol"&&(_=void 0);function U(P){var j=(i[P]||"silent").toUpperCase();if(!(typeof window===n||!_)){try{window.localStorage[_]=j;return}catch{}try{window.document.cookie=encodeURIComponent(_)+"="+j+";"}catch{}}}function X(){var P;if(!(typeof window===n||!_)){try{P=window.localStorage[_]}catch{}if(typeof P===n)try{var j=window.document.cookie,ne=encodeURIComponent(_),ce=j.indexOf(ne+"=");ce!==-1&&(P=/^([^;]+)/.exec(j.slice(ce+ne.length+1))[1])}catch{}return y.levels[P]===void 0&&(P=void 0),P}}function be(){if(!(typeof window===n||!_)){try{window.localStorage.removeItem(_)}catch{}try{window.document.cookie=encodeURIComponent(_)+"=; expires=Thu, 01 Jan 1970 00:00:00 UTC"}catch{}}}function te(P){var j=P;if(typeof j=="string"&&y.levels[j.toUpperCase()]!==void 0&&(j=y.levels[j.toUpperCase()]),typeof j=="number"&&j>=0&&j<=y.levels.SILENT)return j;throw new TypeError("log.setLevel() called with invalid level: "+P)}y.name=w,y.levels={TRACE:0,DEBUG:1,INFO:2,WARN:3,ERROR:4,SILENT:5},y.methodFactory=k||h,y.getLevel=function(){return b??I??T},y.setLevel=function(P,j){return b=te(P),j!==!1&&U(b),d.call(y)},y.setDefaultLevel=function(P){I=te(P),X()||y.setLevel(P,!1)},y.resetLevel=function(){b=null,be(),d.call(y)},y.enableAll=function(P){y.setLevel(y.levels.TRACE,P)},y.disableAll=function(P){y.setLevel(y.levels.SILENT,P)},y.rebuild=function(){if(c!==y&&(T=te(c.getLevel())),d.call(y),c===y)for(var P in a)a[P].rebuild()},T=te(c?c.getLevel():"WARN");var Ce=X();Ce!=null&&(b=te(Ce)),d.call(y)}c=new p,c.getLogger=function(k){if(typeof k!="symbol"&&typeof k!="string"||k==="")throw new TypeError("You must supply a name when creating a logger.");var y=a[k];return y||(y=a[k]=new p(k,c.methodFactory)),y};var v=typeof window!==n?window.log:void 0;return c.noConflict=function(){return typeof window!==n&&window.log===c&&(window.log=v),c},c.getLoggers=function(){return a},c.default=c,c})}(On)),On.exports}var im=rm();const Ln=nm(im),am=(t,e={})=>{Ln.setDefaultLevel(e.enableLogging?Ln.levels.DEBUG:Ln.levels.SILENT);const n=240;document.documentElement.style.setProperty("--nav-menu-width",`${n}px`);const o=r.ref(!0),i=r.ref(0),a=r.ref(!1),c=r.ref(!1),l=r.ref(""),s=r.ref(null),u=r.ref(0);t.provide(Mr,{navMenuWidth:n,isMenuOpened:o,ToggleMenu:()=>{o.value=!o.value},OpenMenu:()=>{o.value=!0},CloseMenu:()=>{o.value=!1},scrollY:i,pageTitle:l,isDarkMode:a,ToggleTheme:()=>Ut.Toggle(),EnableDarkMode:()=>Ut.EnableDarkMode(),EnableLightMode:()=>Ut.EnableLightMode(),ClearStoredTheme:()=>Ut.ClearStoredTheme(),LogoutAsync:async()=>{const f=Hi(),{oidc:h}=Un.UseAuth();await f.ConfirmAsync("Deseja realmente sair da sua conta?")&&($o("Saindo..."),c.value=!0,await new Promise(v=>setTimeout(v,1e3)),h.logout({redirectUri:window.location.origin}).catch(()=>{c.value=!1,qi()}))},Login:()=>{const{oidc:f}=Un.UseAuth();f.login()},isLoggingOut:c,mainRef:s,mainWidth:u,isMainXs:r.computed(()=>u.value<=384),isMainSm:r.computed(()=>u.value>384),isMainMd:r.computed(()=>u.value>768),isMainLg:r.computed(()=>u.value>992),isMainXl:r.computed(()=>u.value>1280),isMain2Xl:r.computed(()=>u.value>1536),isMain3Xl:r.computed(()=>u.value>1920)}),new MutationObserver(()=>{a.value=document.documentElement.classList.contains("dark")}).observe(document.documentElement,{attributes:!0,attributeFilter:["class"]}),document.addEventListener("scroll",()=>{i.value=document.documentElement.scrollTop}),Ut.SetInitialTheme()},sm=Ln;class xo extends Error{constructor(e=[]){const n=Array.isArray(e)?e:[e];super(n[0]),this.errors=n}errors=[]}class zi{constructor(e=null){this._value=e,this._httpStatusCode=200}errors=[];_value=null;_httpStatusCode;get value(){return this._value}set value(e){this._value=e}get hasSuccess(){return this.isSuccessfulHttpStatusCode&&this.errors.length===0}get hasError(){return!this.hasSuccess}get httpStatusCode(){return this._httpStatusCode}set httpStatusCode(e){this._httpStatusCode=e}WithError(e){if(Array.isArray(e)){e.forEach(n=>this.WithError(n));return}this.errors.push(e),this.isSuccessfulHttpStatusCode||(this._httpStatusCode=400)}get isSuccessfulHttpStatusCode(){return this._httpStatusCode>=200&&this._httpStatusCode<300}[Symbol.toPrimitive](e){if(e==="throw")throw new xo(this.errors)}get firstError(){return this.hasSuccess?null:this.errors[0]}}class Ui{get IsVisible(){return st.isVisible()}async CreateAlertAsync(e){let n="info",o,i;return typeof e=="string"||Array.isArray(e)?o=Array.isArray(e)?e.join("<br />"):e:(n=e.icon??"info",i=e.title??"",o=Array.isArray(e.text)?e.text.join("<br />"):e.text),new Promise(a=>{st.fire({allowEscapeKey:!1,allowOutsideClick:!1,icon:n,title:i,html:`<div style="max-height: 50vh; overflow: auto">${Ao.sanitize(o)}</div>`}).then(()=>a(!0))})}async AlertAsync(e){return this.CreateAlertAsync({text:e,icon:"info"})}async AlertErrorAsync(e){return this.CreateAlertAsync({text:e,icon:"error"})}async AlertSuccessAsync(e){return this.CreateAlertAsync({text:e,icon:"success"})}}const Wi=()=>new Ui,lm=()=>new Ui;window.addEventListener("error",function(t){return Bo(t.error)||console.error(t.error||t.message),t.preventDefault(),!1}),window.addEventListener("unhandledrejection",function(t){return Bo(t.reason)||console.error("Unhandled Rejection",t.reason),t.preventDefault(),!1});const cm=t=>{t.config.errorHandler=(e,n,o)=>{Bo(e)||console.error("Vue Global Error Handler: ",{err:e,vm:n,info:o})}},Bo=t=>{if(!t)return!0;try{if(t.httpStatusCode===401)return!0}catch{}return t instanceof xo||t instanceof zi?(Wi().AlertErrorAsync(t.errors),!0):!1},um={class:"font-percentage"},Ki="--font-size-increment",dm="tamanho-fonte",mm=Pe(r.defineComponent({__name:"FontSize",setup(t){const e=r.ref(!1),n=r.ref(0),o=()=>{n.value=pn(),e.value=!0},i=()=>{e.value=!1},a=()=>document.documentElement,c=()=>parseInt(getComputedStyle(a()).getPropertyValue(Ki)||"1"),l=h=>{h<.5||h>1.6||(a().style.setProperty(Ki,h.toString()),f.value=h)},s=()=>{l(f.value+.1)},u=()=>{l(f.value-.1)},d=()=>{l(1)},f=r.ref(1);return r.onBeforeMount(()=>{localStorage.removeItem(dm)}),r.onMounted(()=>{f.value=c()}),(h,p)=>(r.openBlock(),r.createElementBlock(r.Fragment,null,[r.createVNode(Ae,{button:!0,size:"sm",icon:"text_increase",tooltip:"Tamanho da fonte",onClick:o}),e.value?(r.openBlock(),r.createElementBlock(r.Fragment,{key:0},[r.createElementVNode("div",{class:r.normalizeClass(["border","fadein","font-size-wrapper"]),style:r.normalizeStyle({zIndex:n.value+1})},[r.createElementVNode("div",{class:"icon",onClick:u}),r.createElementVNode("span",um,r.toDisplayString(f.value.toLocaleString("pt-br",{style:"percent",maximumFractionDigits:0})),1),r.createElementVNode("div",{class:"icon add",onClick:s}),r.createElementVNode("span",{class:"redefinir",onClick:d}," Redefinir ")],4),r.createElementVNode("div",{class:"font-size-mask",style:r.normalizeStyle({zIndex:n.value}),onClick:i},null,4)],64)):r.createCommentVNode("",!0)],64))}}),[["__scopeId","data-v-d17f4a5f"]]),fm=r.defineComponent({__name:"ScrollToTop",setup(t){const{scrollY:e}=zt(),n=r.computed(()=>e.value>800);function o(){document.documentElement.scrollTo(0,0)}return(i,a)=>(r.openBlock(),r.createElementBlock("button",{class:r.normalizeClass(["sf-scrollToTop",{"sf-scrollToTop-visible":n.value}]),onClick:o},null,2))}}),pm=["aria-labelledby"],hm={key:0,class:"mb-3"},gm={class:"flex align-items-center flex-wrap gap-3"},ym=["innerHTML"],vm={class:"flex flex-grow-1 gap-2"},bm=Pe(r.defineComponent({__name:"ConfirmPopover",setup(t){const e=r.useTemplateRef("popoverRef"),n=()=>{i.detail.resolve(!0),c.value=!1},o=()=>{i.detail.resolve(!1),c.value=!1};let i;const a=r.ref(null),c=r.ref(!1),l=r.ref({top:"0px",left:"0px",zIndex:"0"}),s=r.ref(!1),u=r.ref(!1),d=p=>{let v=p instanceof HTMLElement?p:null;for(;v&&v.getBoundingClientRect;){const w=v.getBoundingClientRect();if(w.width>0&&w.height>0)return w;const k=v.children[0];if(!k||!(k instanceof HTMLElement))return null;v=k}return null},f=()=>{const p=i.detail.options.target;p&&(a.value=d(p),a.value&&(l.value={top:`${a.value.bottom+window.scrollY}px`,left:`${a.value.left+window.scrollX}px`,zIndex:`${pn()+1}`}))},h=()=>{s.value=!1,u.value=!1,r.nextTick(()=>{const p=e.value?.getBoundingClientRect();p&&(window.innerWidth<p.right&&(l.value.left=`${(a.value?.right??0)+window.scrollX}px`,s.value=!0),window.innerHeight<p.bottom&&(l.value.top=`${(a.value?.top??0)+window.scrollY}px`,u.value=!0))})};return document.addEventListener("sfconfirm:popup",p=>{i=p,f(),c.value=!0,h()}),(p,v)=>(r.openBlock(),r.createBlock(r.Teleport,{to:"body"},[c.value?(r.openBlock(),r.createElementBlock(r.Fragment,{key:0},[r.createElementVNode("div",{id:"sf-confirm-popover-overlay",style:r.normalizeStyle({zIndex:l.value.zIndex}),onClick:o},null,4),r.createElementVNode("div",{ref:"popoverRef",id:"sf-confirm-popover",class:r.normalizeClass({translateX:s.value,translateY:u.value}),style:r.normalizeStyle({...l.value,zIndex:+l.value.zIndex+1}),role:"dialog","aria-modal":!0,"aria-labelledby":r.unref(i).detail.options?.text,tabindex:"-1"},[r.unref(i).detail.options?.title?(r.openBlock(),r.createElementBlock("div",hm,r.toDisplayString(r.unref(i).detail.options.title),1)):r.createCommentVNode("",!0),r.createElementVNode("div",gm,[r.createElementVNode("div",{innerHTML:r.unref(i).detail.options?.text},null,8,ym),r.createElementVNode("div",vm,[r.createVNode(r.unref(Pt),{name:"botao-confirmar",size:"sm",color:r.unref(i).detail.options?.confirmColor,onClick:n},{default:r.withCtx(()=>[r.createTextVNode(r.toDisplayString(r.unref(i).detail.options?.confirmLabel),1)]),_:1},8,["color"]),r.createVNode(r.unref(Pt),{size:"sm",name:"botao-cancelar",color:r.unref(i).detail.options?.rejectColor,onClick:o},{default:r.withCtx(()=>[r.createTextVNode(r.toDisplayString(r.unref(i).detail.options?.rejectLabel),1)]),_:1},8,["color"])])])],14,pm)],64)):r.createCommentVNode("",!0)]))}}),[["__scopeId","data-v-66f3d8a1"]]),Cm={class:"nav-menu-header"},wm={class:"nav-menu-inner-close"},km={class:"main-content"},Sm={class:"page-title"},_m={class:"action"},Em={id:"content"},Tm={key:0,id:"logging-out"},Im={class:"info-fazenda"},Pm={class:"font-bold"},Am={class:"info-endereco text-muted"},xm={class:"footer-right"},Bm=Pe(r.defineComponent({__name:"Main",props:{auth:{}},emits:["login"],setup(t,{emit:e}){const n=t,{navMenuWidth:o,isMenuOpened:i,pageTitle:a,scrollY:c,ToggleMenu:l,isDarkMode:s,ToggleTheme:u,CloseMenu:d,LogoutAsync:f,isLoggingOut:h,mainRef:p,mainWidth:v}=zt(),w=r.ref(null),k=()=>{if(!w.value||!i.value)return!1;w.value.offsetWidth!==o&&d()};r.onMounted(()=>{if(da.useRouter().afterEach(()=>{k()}),p.value){let I=null;Nr(p,b=>{r.nextTick(()=>{I&&clearTimeout(I),I=setTimeout(()=>{v.value=b[0].contentRect.width},10)}),v.value=b[0].contentRect.width}),v.value=p.value.clientWidth}});const y=e;return(T,I)=>(r.openBlock(),r.createElementBlock("main",{ref_key:"mainRef",ref:p,class:r.normalizeClass({disabled:r.unref(h),"nav-menu-visible":r.unref(i)})},[r.createElementVNode("aside",{id:"nav-menu",ref_key:"navMenuRef",ref:w,class:r.normalizeClass({"nav-menu-hidden":!r.unref(i)})},[r.createElementVNode("div",Cm,[I[1]||(I[1]=r.createElementVNode("span",null,"Menu",-1)),r.createElementVNode("div",wm,[r.createVNode(Ae,{button:!0,icon:"close",onClick:r.unref(l)},null,8,["onClick"])])]),r.renderSlot(T.$slots,"nav-menu",{},void 0,!0)],2),r.createElementVNode("div",km,[r.createElementVNode("div",{id:"top-bar",class:r.normalizeClass({"shadow-bottom":r.unref(c)>72})},[r.createVNode(Ae,{button:!0,icon:r.unref(i)?"menu_open":"menu",tooltip:"Menu",onClick:r.unref(l)},null,8,["icon","onClick"]),r.createElementVNode("div",Sm,r.toDisplayString(r.unref(h)?"Saindo...":r.unref(a)),1),I[2]||(I[2]=r.createElementVNode("span",{class:"sep"},null,-1)),r.createElementVNode("div",_m,[r.createVNode(Ae,{button:!0,size:"sm",icon:r.unref(s)?"light_mode":"dark_mode",tooltip:r.unref(s)?"Modo claro":"Modo escuro",onClick:r.unref(u)},null,8,["icon","tooltip","onClick"]),r.createVNode(mm),n.auth?(r.openBlock(),r.createElementBlock(r.Fragment,{key:0},[n.auth.isAuthenticated?(r.openBlock(),r.createBlock(Ae,{key:0,button:!0,size:"sm",icon:"logout",tooltip:"Sair",onClick:r.unref(f)},null,8,["onClick"])):(r.openBlock(),r.createBlock(Ae,{key:1,button:!0,size:"sm",icon:"login",tooltip:"Entrar",onClick:I[0]||(I[0]=b=>y("login"))}))],64)):r.createCommentVNode("",!0)])],2),r.createElementVNode("div",Em,[r.unref(h)?(r.openBlock(),r.createElementBlock("div",Tm,[r.createVNode(Ho)])):r.renderSlot(T.$slots,"content",{key:1},void 0,!0)])]),r.createElementVNode("footer",null,[I[5]||(I[5]=r.createElementVNode("div",{class:"logo-fazenda"},null,-1)),r.createElementVNode("div",Im,[r.createElementVNode("span",Pm,[r.renderSlot(T.$slots,"footer-nome-fazenda",{},()=>[I[3]||(I[3]=r.createTextVNode(" SECRETARIA MUNICIPAL DA FAZENDA ",-1))],!0)]),r.createElementVNode("span",Am,[r.renderSlot(T.$slots,"footer-endereco-fazenda",{},()=>[I[4]||(I[4]=r.createTextVNode(" Rua Líbero Badaró, 190 - Centro - São Paulo - SP - CEP 01008-000 ",-1))],!0)])]),r.createElementVNode("div",xm,[r.renderSlot(T.$slots,"footer-right",{},void 0,!0)])]),r.createVNode(fm),r.createVNode(bm)],2))}}),[["__scopeId","data-v-21d8b87a"]]),$m=r.defineComponent({__name:"PageTitle",props:{title:{}},setup(t){const{pageTitle:e}=zt(),n=t;return r.watchEffect(()=>{document.title=n.title,e.value=n.title}),(o,i)=>null}}),vt=t=>{const e=t==="light"?"0, 0, 0":"198, 198, 198";return`0 1px 3px 0 rgba(${e}, 0.1), 0 1px 2px -1px rgba(${e}, 0.1);`},Gi={surface:{0:"var(--surface-0-color)",50:"var(--surface-100-color)",100:"var(--surface-100-color)",200:"var(--surface-200-color)",300:"var(--surface-300-color)",400:"var(--surface-400-color)",500:"var(--surface-1000-color)",600:"var(--surface-600-color)",700:"var(--surface-700-color)",800:"var(--surface-800-color)",900:"var(--surface-900-color)",950:"var(--surface-1000-color)"},primary:{color:"var(--primary-color)",contrastColor:"var(--bg-color)",hoverColor:"var(--primary-hover-color)",activeColor:"var(--primary-color)"},highlight:{background:"var(--primary-color)",color:"var(--bg-color)"},formField:{background:"var(--surface-0-color)",disabledBackground:"var(--surface-0-color)",filledBackground:"var(--surface-100-color)",filledFocusBackground:"var(--surface-100-color)",borderColor:"var(--surface-1000-color)",hoverBorderColor:"var(--primary-color)",focusBorderColor:"var(--primary-color)",invalidBorderColor:"var(--error-color)",color:"var(--text-color)",disabledColor:"var(--disabled-color)",placeholderColor:"var(--muted-color)",floatLabelColor:"var(--secondary-color)",floatLabelFocusColor:"var(--secondary-color)",floatLabelInvalidColor:"var(--error-color)",iconColor:"var(--primary-color)"},text:{color:"var(--text-color)",hoverColor:"var(--primary-color)",mutedColor:"var(--muted-color)",hoverMutedColor:"var(--muted-color)"},mask:{background:"var(--maskbg-color)",color:"var(--surface-200-color)"},content:{background:"var(--bg-color)",color:"var(--text-color)",border:{color:"var(--surface-1000-color)",radius:"var(--border-radius)"},hover:{background:"var(--primary-hover-color)",color:"var(--primary-color)"}}},Om={semantic:{disabled:{opacity:"1"},transitionDuration:"0",primary:{50:"color-mix(in srgb, currentColor 5%, transparent)",100:"color-mix(in srgb, currentColor 10%, transparent)",200:"color-mix(in srgb, currentColor 20%, transparent)",300:"color-mix(in srgb, currentColor 30%, transparent)",400:"color-mix(in srgb, currentColor 40%, transparent)",500:"color-mix(in srgb, currentColor 50%, transparent)",600:"color-mix(in srgb, currentColor 60%, transparent)",700:"color-mix(in srgb, currentColor 70%, transparent)",800:"color-mix(in srgb, currentColor 80%, transparent)",900:"color-mix(in srgb, currentColor 90%, transparent)",950:"color-mix(in srgb, currentColor 95%, transparent)"},colorScheme:{light:{...Gi},dark:{...Gi}}},components:{accordion:{header:{background:"transparent",activeBackground:"transparent",hoverBackground:"transparent",activeHoverBackground:"transparent"},content:{background:"transparent"}},blockui:{root:{borderRadius:"0px"}},button:{colorScheme:{light:{root:{primary:{background:"var(--primary-color) ",borderColor:"var(--primary-color)",focusRing:{color:"var(--primary-color)"},hoverBorderColor:"var(--primary-color)",hoverBackground:"color-mix(in srgb, var(--primary-color) 90%, black 10%)",activeBackground:"color-mix(in srgb, var(--primary-color) 80%, black 20%)",activeBorderColor:"var(--primary-color)"},secondary:{background:"var(--secondary-color) ",borderColor:"var(--secondary-color)",focusRing:{color:"var(--secondary-color)"},hoverBorderColor:"var(--secondary-color)",hoverBackground:"color-mix(in srgb, var(--secondary-color) 90%, black 10%)",activeBackground:"color-mix(in srgb, var(--secondary-color) 80%, black 20%)",activeBorderColor:"var(--secondary-color)"},success:{background:"var(--success-color) ",borderColor:"var(--success-color)",focusRing:{color:"var(--success-color)"},hoverBorderColor:"var(--success-color)",hoverBackground:"color-mix(in srgb, var(--success-color) 90%, black 10%)",activeBackground:"color-mix(in srgb, var(--success-color) 80%, black 20%)",activeBorderColor:"var(--success-color)"},info:{background:"var(--info-color) ",borderColor:"var(--info-color)",focusRing:{color:"var(--info-color)"},hoverBorderColor:"var(--info-color)",hoverBackground:"color-mix(in srgb, var(--info-color) 90%, black 10%)",activeBackground:"color-mix(in srgb, var(--info-color) 80%, black 20%)",activeBorderColor:"var(--info-color)"},warn:{background:"var(--warn-color) ",borderColor:"var(--warn-color)",focusRing:{color:"var(--warn-color)"},hoverBorderColor:"var(--warn-color)",hoverBackground:"color-mix(in srgb, var(--warn-color) 90%, black 10%)",activeBackground:"color-mix(in srgb, var(--warn-color) 80%, black 20%)",activeBorderColor:"var(--warn-color)"},help:{background:"var(--help-color) ",borderColor:"var(--help-color)",focusRing:{color:"var(--help-color)"},hoverBorderColor:"var(--help-color)",hoverBackground:"color-mix(in srgb, var(--help-color) 90%, black 10%)",activeBackground:"color-mix(in srgb, var(--help-color) 80%, black 20%)",activeBorderColor:"var(--help-color)"},danger:{background:"var(--error-color) ",borderColor:"var(--error-color)",focusRing:{color:"var(--error-color)"},hoverBorderColor:"var(--error-color)",hoverBackground:"color-mix(in srgb, var(--error-color) 90%, black 10%)",activeBackground:"color-mix(in srgb, var(--error-color) 80%, black 20%)",activeBorderColor:"var(--error-color)"},contrast:{background:"var(--text-color) ",borderColor:"var(--text-color)",focusRing:{color:"var(--text-color)"},hoverBorderColor:"var(--text-color)",hoverBackground:"color-mix(in srgb, var(--text-color) 90%, black 10%)",activeBackground:"color-mix(in srgb, var(--text-color) 80%, black 20%)",activeBorderColor:"var(--text-color)"}},outlined:{primary:{color:"var(--primary-color) !important",hoverBackground:"color-mix(in srgb, currentColor 10%, transparent) !important",activeBackground:"color-mix(in srgb, currentColor 15%, transparent) !important",borderColor:"color-mix(in srgb, currentColor 25%, transparent) !important"},secondary:{color:"var(--secondary-color) !important",hoverBackground:"color-mix(in srgb, currentColor 10%, transparent) !important",activeBackground:"color-mix(in srgb, currentColor 15%, transparent) !important",borderColor:"color-mix(in srgb, currentColor 25%, transparent) !important"},success:{color:"var(--success-color) !important",hoverBackground:"color-mix(in srgb, currentColor 10%, transparent) !important",activeBackground:"color-mix(in srgb, currentColor 15%, transparent) !important",borderColor:"color-mix(in srgb, currentColor 25%, transparent) !important"},info:{color:"var(--info-color) !important",hoverBackground:"color-mix(in srgb, currentColor 10%, transparent) !important",activeBackground:"color-mix(in srgb, currentColor 15%, transparent) !important",borderColor:"color-mix(in srgb, currentColor 25%, transparent) !important"},warn:{color:"var(--warn-color) !important",hoverBackground:"color-mix(in srgb, currentColor 10%, transparent) !important",activeBackground:"color-mix(in srgb, currentColor 15%, transparent) !important",borderColor:"color-mix(in srgb, currentColor 25%, transparent) !important"},help:{color:"var(--help-color) !important",hoverBackground:"color-mix(in srgb, currentColor 10%, transparent) !important",activeBackground:"color-mix(in srgb, currentColor 15%, transparent) !important",borderColor:"color-mix(in srgb, currentColor 25%, transparent) !important"},danger:{color:"var(--error-color) !important",hoverBackground:"color-mix(in srgb, currentColor 10%, transparent) !important",activeBackground:"color-mix(in srgb, currentColor 15%, transparent) !important",borderColor:"color-mix(in srgb, currentColor 25%, transparent) !important"},contrast:{color:"var(--text-color) !important",hoverBackground:"color-mix(in srgb, currentColor 10%, transparent) !important",activeBackground:"color-mix(in srgb, currentColor 15%, transparent) !important",borderColor:"color-mix(in srgb, currentColor 25%, transparent) !important"}},text:{primary:{color:"var(--primary-color) !important",hoverBackground:"color-mix(in srgb, currentColor 10%, transparent) !important",activeBackground:"color-mix(in srgb, currentColor 15%, transparent) !important"},secondary:{color:"var(--secondary-color) !important",hoverBackground:"color-mix(in srgb, currentColor 10%, transparent) !important",activeBackground:"color-mix(in srgb, currentColor 15%, transparent) !important"},success:{color:"var(--success-color) !important",hoverBackground:"color-mix(in srgb, currentColor 10%, transparent) !important",activeBackground:"color-mix(in srgb, currentColor 15%, transparent) !important"},info:{color:"var(--info-color) !important",hoverBackground:"color-mix(in srgb, currentColor 10%, transparent) !important",activeBackground:"color-mix(in srgb, currentColor 15%, transparent) !important"},warn:{color:"var(--warn-color) !important",hoverBackground:"color-mix(in srgb, currentColor 10%, transparent) !important",activeBackground:"color-mix(in srgb, currentColor 15%, transparent) !important"},help:{color:"var(--help-color) !important",hoverBackground:"color-mix(in srgb, currentColor 10%, transparent) !important",activeBackground:"color-mix(in srgb, currentColor 15%, transparent) !important"},danger:{color:"var(--error-color) !important",hoverBackground:"color-mix(in srgb, currentColor 10%, transparent) !important",activeBackground:"color-mix(in srgb, currentColor 15%, transparent) !important"},contrast:{color:"var(--text-color) !important",hoverBackground:"color-mix(in srgb, currentColor 10%, transparent) !important",activeBackground:"color-mix(in srgb, currentColor 15%, transparent) !important"}}},dark:{root:{primary:{background:"var(--primary-color) ",borderColor:"var(--primary-color)",focusRing:{color:"var(--primary-color)"},hoverBorderColor:"var(--primary-color)",hoverBackground:"color-mix(in srgb, var(--primary-color) 90%, white 10%)",activeBackground:"color-mix(in srgb, var(--primary-color) 80%, white 20%)"},secondary:{background:"var(--secondary-color) ",borderColor:"var(--secondary-color)",focusRing:{color:"var(--secondary-color)"},hoverBorderColor:"var(--secondary-color)",hoverBackground:"color-mix(in srgb, var(--secondary-color) 90%, white 10%)",activeBackground:"color-mix(in srgb, var(--secondary-color) 80%, white 20%)",activeBorderColor:"var(--secondary-color)"},success:{background:"var(--success-color) ",borderColor:"var(--success-color)",focusRing:{color:"var(--success-color)"},hoverBorderColor:"var(--success-color)",hoverBackground:"color-mix(in srgb, var(--success-color) 90%, white 10%)",activeBackground:"color-mix(in srgb, var(--success-color) 80%, white 20%)",activeBorderColor:"var(--success-color)"},info:{background:"var(--info-color) ",borderColor:"var(--info-color)",focusRing:{color:"var(--info-color)"},hoverBorderColor:"var(--info-color)",hoverBackground:"color-mix(in srgb, var(--info-color) 90%, white 10%)",activeBackground:"color-mix(in srgb, var(--info-color) 80%, white 20%)",activeBorderColor:"var(--info-color)"},warn:{background:"var(--warn-color) ",borderColor:"var(--warn-color)",focusRing:{color:"var(--warn-color)"},hoverBorderColor:"var(--warn-color)",hoverBackground:"color-mix(in srgb, var(--warn-color) 90%, white 10%)",activeBackground:"color-mix(in srgb, var(--warn-color) 80%, white 20%)",activeBorderColor:"var(--warn-color)"},help:{background:"var(--help-color) ",borderColor:"var(--help-color)",focusRing:{color:"var(--help-color)"},hoverBorderColor:"var(--help-color)",hoverBackground:"color-mix(in srgb, var(--help-color) 90%, white 10%)",activeBackground:"color-mix(in srgb, var(--help-color) 80%, white 20%)",activeBorderColor:"var(--help-color)"},danger:{background:"var(--error-color) ",borderColor:"var(--error-color)",focusRing:{color:"var(--error-color)"},hoverBorderColor:"var(--error-color)",hoverBackground:"color-mix(in srgb, var(--error-color) 90%, white 10%)",activeBackground:"color-mix(in srgb, var(--error-color) 80%, white 20%)",activeBorderColor:"var(--error-color)"},contrast:{background:"var(--text-color) ",borderColor:"var(--text-color)",focusRing:{color:"var(--text-color)"},hoverBorderColor:"var(--text-color)",hoverBackground:"color-mix(in srgb, var(--text-color) 90%, white 10%)",activeBackground:"color-mix(in srgb, var(--text-color) 80%, white 20%)",activeBorderColor:"var(--text-color)"}},outlined:{primary:{color:"var(--primary-color) !important",hoverBackground:"color-mix(in srgb, currentColor 15%, transparent) !important",activeBackground:"color-mix(in srgb, currentColor 20%, transparent) !important",borderColor:"color-mix(in srgb, currentColor 30%, transparent) !important"},secondary:{color:"var(--secondary-color) !important",hoverBackground:"color-mix(in srgb, currentColor 15%, transparent) !important",activeBackground:"color-mix(in srgb, currentColor 20%, transparent) !important",borderColor:"color-mix(in srgb, currentColor 30%, transparent) !important"},success:{color:"var(--success-color) !important",hoverBackground:"color-mix(in srgb, currentColor 15%, transparent) !important",activeBackground:"color-mix(in srgb, currentColor 20%, transparent) !important",borderColor:"color-mix(in srgb, currentColor 30%, transparent) !important"},info:{color:"var(--info-color) !important",hoverBackground:"color-mix(in srgb, currentColor 15%, transparent) !important",activeBackground:"color-mix(in srgb, currentColor 20%, transparent) !important",borderColor:"color-mix(in srgb, currentColor 30%, transparent) !important"},warn:{color:"var(--warn-color) !important",hoverBackground:"color-mix(in srgb, currentColor 15%, transparent) !important",activeBackground:"color-mix(in srgb, currentColor 20%, transparent) !important",borderColor:"color-mix(in srgb, currentColor 30%, transparent) !important"},help:{color:"var(--help-color) !important",hoverBackground:"color-mix(in srgb, currentColor 15%, transparent) !important",activeBackground:"color-mix(in srgb, currentColor 20%, transparent) !important",borderColor:"color-mix(in srgb, currentColor 30%, transparent) !important"},danger:{color:"var(--error-color) !important",hoverBackground:"color-mix(in srgb, currentColor 15%, transparent) !important",activeBackground:"color-mix(in srgb, currentColor 20%, transparent) !important",borderColor:"color-mix(in srgb, currentColor 30%, transparent) !important"},contrast:{color:"var(--text-color) !important",hoverBackground:"color-mix(in srgb, currentColor 15%, transparent) !important",activeBackground:"color-mix(in srgb, currentColor 20%, transparent) !important",borderColor:"color-mix(in srgb, currentColor 30%, transparent) !important"}},text:{primary:{color:"var(--primary-color) !important",hoverBackground:"color-mix(in srgb, currentColor 15%, transparent) !important",activeBackground:"color-mix(in srgb, currentColor 20%, transparent) !important"},secondary:{color:"var(--secondary-color) !important",hoverBackground:"color-mix(in srgb, currentColor 15%, transparent) !important",activeBackground:"color-mix(in srgb, currentColor 20%, transparent) !important"},success:{color:"var(--success-color) !important",hoverBackground:"color-mix(in srgb, currentColor 15%, transparent) !important",activeBackground:"color-mix(in srgb, currentColor 20%, transparent) !important"},info:{color:"var(--info-color) !important",hoverBackground:"color-mix(in srgb, currentColor 15%, transparent) !important",activeBackground:"color-mix(in srgb, currentColor 20%, transparent) !important"},warn:{color:"var(--warn-color) !important",hoverBackground:"color-mix(in srgb, currentColor 15%, transparent) !important",activeBackground:"color-mix(in srgb, currentColor 20%, transparent) !important"},help:{color:"var(--help-color) !important",hoverBackground:"color-mix(in srgb, currentColor 15%, transparent) !important",activeBackground:"color-mix(in srgb, currentColor 20%, transparent) !important"},danger:{color:"var(--error-color) !important",hoverBackground:"color-mix(in srgb, currentColor 15%, transparent) !important",activeBackground:"color-mix(in srgb, currentColor 20%, transparent) !important"},contrast:{color:"var(--text-color) !important",hoverBackground:"color-mix(in srgb, currentColor 15%, transparent) !important",activeBackground:"color-mix(in srgb, currentColor 20%, transparent) !important"}}}}},card:{root:{borderRadius:"var(--border-radius)"},title:{fontWeight:"700",fontSize:"var(--text-md)"},body:{padding:"var(--content-gutter)"},colorScheme:{light:{root:{background:"var(--bg-color)",shadow:vt("light")}},dark:{root:{background:"var(--surface-300-color)",shadow:vt("dark")}}}},checkbox:{root:{background:"var(--surface-200-color) !important",borderColor:"var(--muted-color) !important",borderRadius:"var(--border-radius) !important",checkedBackground:"var(--primary-color) !important",checkedHoverBackground:"var(--primary-color) !important",sm:{width:"1rem",height:"1rem"},lg:{width:"1.5rem",height:"1.5rem"}}},confirmpopup:{root:{borderColor:"var(--border-color)"},colorScheme:{light:{root:{background:"var(--bg-color)",shadow:vt("light")}},dark:{root:{background:"var(--surface-300-color)",shadow:vt("dark")}}}},datatable:{root:{borderColor:"var(--border-color) !important"},header:{borderColor:"var(--border-color) !important",padding:"0 0 var(--content-gutter) 0",sm:{padding:"0 0 var(--content-gutter-sm) 0"}},headerCell:{borderColor:"var(--border-color) !important",hoverColor:"var(--primary-color) !important",hoverBackground:"var(--primary-hover-color) !important"},bodyCell:{borderColor:"var(--border-color) !important"},footer:{borderColor:"var(--border-color) !important"},colorScheme:{light:{header:{background:"var(--bg-color)",color:"var(--text-color)"},headerCell:{background:"var(--bg-color)"},footerCell:{background:"var(--bg-color)"},row:{background:"var(--bg-color)",stripedBackground:"var(--surface-300-color)"}},dark:{header:{background:"var(--surface-300-color)",color:"var(--text-color)"},headerCell:{background:"var(--surface-300-color)"},footerCell:{background:"var(--surface-300-color)"},row:{stripedBackground:"var(--bg-color)",background:"var(--surface-300-color)"}}}},datepicker:{today:{background:"var(--primary-hover-color) !important",color:"var(--primary-color) !important"}},dialog:{root:{background:"var(--bg-color) !important",color:"var(--text-color) !important",borderColor:"var(--border-color) !important",borderRadius:"var(--border-radius) !important",shadow:"none !important"},title:{fontSize:"var(--font-size) !important",fontWeight:"700 !important"},header:{padding:"0.75rem 0.75rem 0 1rem !important",gap:"var(--content-gutter-sm) !important"},content:{padding:"var(--content-gutter) !important"},footer:{padding:"0.75rem 0.75rem 0 1rem !important",gap:"var(--content-gutter-sm) !important"}},inputtext:{root:{background:"var(--surface-100-color)",color:"var(--text-color)",borderColor:"var(--border-color) !important",borderRadius:"var(--border-radius) !important",shadow:"none !important",hoverBorderColor:"var(--primary-color) !important",placeholderColor:"var(--muted-color)"}},menu:{item:{focusBackground:"var(--surface-400-color)",focusColor:"var(--text-color)"},colorScheme:{light:{root:{background:"var(--bg-color)",shadow:vt("light")}},dark:{root:{background:"var(--surface-200-color)",shadow:vt("dark")}}}},popover:{root:{background:"var(--bg-color)",color:"var(--text-color)",borderColor:"var(--border-color)",borderRadius:"var(--border-radius)",shadow:"none",gutter:"8px",arrowOffset:"0.75rem"},content:{padding:"0"}},select:{root:{background:"var(--bg-color)",color:"var(--text-color)",hoverBorderColor:"var(--primary-color)",placeholderColor:"var(--muted-color)",disabledColor:"var(--disabled-color)"},option:{focusBackground:"var(--surface-200-color)",focusColor:"var(--primary-color)",selectedFocusColor:"var(--bg-color)",selectedFocusBackground:"var(--primary-color)"},overlay:{borderColor:"var(--border-color)"},dropdown:{color:"var(--primary-color)"},colorScheme:{light:{overlay:{background:"var(--bg-color)"}},dark:{overlay:{background:"var(--surface-100-color)"}}}},skeleton:{root:{background:"var(--surface-700-color)",animationBackground:"var(--surface-100-color)"}},textarea:{root:{background:"var(--surface-100-color)",hoverBorderColor:"var(--primary-color)",placeholderColor:"var(--muted-color)"}},toast:{root:{width:"min(90vw, 320px)"},colorScheme:{light:{contrast:{background:"var(--text-color)",color:"var(--bg-color)",detailColor:"var(--bg-color)"}},dark:{contrast:{background:"var(--bg-color)",color:"var(--text-color)",detailColor:"var(--text-color)"}}},info:{background:"var(--info-color)",color:"var(--info-hover-color)",detailColor:"var(--text-color)"},success:{background:"var(--success-color)",color:"var(--success-hover-color)",detailColor:"var(--text-color)"},warn:{background:"var(--warn-color)",color:"var(--warn-hover-color)",detailColor:"var(--text-color)"},error:{background:"var(--error-color)",color:"var(--error-hover-color)",detailColor:"var(--text-color)"},secondary:{background:"var(--secondary-color)",color:"var(--secondary-hover-color)",detailColor:"var(--text-color)"}},toggleswitch:{colorScheme:{light:{root:{background:"var(--border-color)",hoverBackground:"var(--border-color)",hoverBorderColor:"transparent",checkedBackground:"var(--primary-color)",checkedHoverBackground:"var(--primary-color)",checkedBorderColor:"transparent"}},dark:{root:{background:"var(--border-color)",hoverBackground:"var(--border-color)",hoverBorderColor:"transparent",checkedBackground:"var(--primary-color)",checkedHoverBackground:"var(--primary-color)",checkedBorderColor:"transparent"}}}}}};class Ye{static get IsTouch(){return window.matchMedia("(pointer: coarse)").matches}static GetMaxZindex(e=[]){let n="body > *:not(script):not(style)";for(const i of e)n+=`, ${i}`;const o=Math.max(...Array.from(document.querySelectorAll(n)).map(i=>{const a=getComputedStyle(i).zIndex;return+a==+a?+a:0}));return o>=100?o:100}static AjustarFuso(e){const n=e.getTimezoneOffset()/60;e.setHours(e.getHours()-n)}static Mask(e,n){let o=0,i=e.toString();return n.replace(/#/g,()=>i[o++]||"")}static MaskCpf(e){return Ye.Mask(e.padStart(11,"0"),"###.###.###-##")}static MaskCnpj(e){return Ye.Mask(e.padStart(14,"0"),"##.###.###/####-##")}static MaskCcm(e){return Ye.Mask(e.padStart(8,"0"),"#.###.###-#")}static async DelayAsync(e=400){return new Promise(n=>setTimeout(n,e))}static FormatNumber(e,n=0,o="pt-BR"){return e.toLocaleString(o,{minimumFractionDigits:n,maximumFractionDigits:n})}static FormatCurrency(e,n="pt-BR"){return e.toLocaleString(n,{style:"currency",currency:"BRL"})}static HasKey(e,n){return e&&n in e}static GetFilenameFromContentDisposition(e){if(!e)return null;const n=e.match(/filename\*\s*=\s*(?:UTF-8'')?([^;\r\n]+)/i);if(n)try{return decodeURIComponent(n[1].trim().replace(/^"|"$/g,""))}catch{return n[1].trim().replace(/^"|"$/g,"")}const o=e.match(/filename\s*=\s*("(.*?)"|([^;,\r\n]+))/i);return o?(o[2]||o[3]).trim().replace(/^"|"$/g,""):null}}class Lm{sub;username;name;email;roles;groups;userinfo;department;jobTitle;idp;constructor(e){this.userinfo=e,this.sub=e.sub,this.username=e.employeeID??e.cpf??"",this.name=e.name??"",this.email=e.email??null,this.roles=e.role??[],this.groups=e.group??[],this.department=this.SetDepartment(),this.jobTitle=this.SetJobTitle(),this.idp=this.SetIdp()}get firstname(){return this.name.split(" ")[0]??this.name}get maskedUsername(){return this.username?this.username.length<=11?Ye.MaskCpf(this.username):this.username.length===14?Ye.MaskCnpj(this.username):this.username:""}IsInRole(e){return this.roles.includes(e)}IsInGroup(e){return this.groups.includes(e)}SetIdp(){const e=this.userinfo?.identity_provider??null;return e?.toLocaleLowerCase()==="gov.br"?"govbr":e?.toLocaleLowerCase().startsWith("senhaweb")?"senhaweb":null}SetDepartment(){return this.userinfo?.department??null}SetJobTitle(){return this.userinfo?.jobTitle??null}}function Nm(){const t=r.ref("development");function e(s){t.value=s.toLocaleLowerCase()}const n=r.computed(()=>t.value==="development"),o=r.computed(()=>t.value==="pack"),i=r.computed(()=>t.value==="hml"),a=r.computed(()=>t.value==="production"),c=r.ref(null);function l(){c.value=null}return{environment:t,SetEnvironment:e,isDev:n,isPack:o,isHml:i,isProd:a,user:c,$reset:l}}const Mm=t=>{const e=new Set;function n(o){const{name:i,children:a}=o;if(i){if(e.has(i))throw new Error(["Erro na validação das rotas!",`Nome de rota duplicado: ${i}`].join(`
|
|
424
|
+
`));e.add(i)}if(a&&Array.isArray(a))for(const c of a)n(c)}for(const o of t)n(o)};Promise.prototype.TrackStateWith||(Promise.prototype.TrackStateWith=async function(t){t.value=!0;try{return await this}finally{t.value=!1}});class Dm{current=null;resolve=null;async showAsync(e,n){const o={message:e,life:n??5e3};return this.Render(o)}async Render(e){return new Promise(n=>{this.resolve=n,this.current&&(this.current.style.opacity="0",setTimeout((function(){this.parentElement&&this.parentElement.removeChild(this)}).bind(this.current),500));const o=document.createElement("div"),i=document.createElement("div"),a=document.createElement("div");i.className="content",a.className="progress",i.appendChild(a),o.className="sf-toast",o.style.zIndex=Ye.GetMaxZindex().toString(),o.appendChild(i),this.current=o,document.body.appendChild(o),o.addEventListener("transitionend",s=>{const u=s.propertyName==="opacity",d=s.target.classList.contains("visible");u&&!d&&(document.body.removeChild(o),this.current===o&&(this.current=null))});const c=[];Array.isArray(e.message)?c.push(...e.message):c.push(e.message);for(const s of c){const u=document.createElement("p");u.innerHTML=Ao.sanitize(s),i.appendChild(u)}const l=document.createElement("i");if(l.classList.add("icon","material-symbols-outlined"),l.innerText="close",l.addEventListener("click",()=>{this.Close()}),i.appendChild(l),getComputedStyle(o).bottom,getComputedStyle(o).top,o.classList.add("visible"),e.life){a.style.transitionDuration=`${e.life-300}ms`,i.classList.add("animate"),setTimeout(()=>{this.current===o&&this.Close()},e.life);return}})}Close(){this.resolve&&this.resolve(),this.current&&this.current.classList.remove("visible")}}const Rm=new Dm,Vm=()=>Rm;function qi(){document.documentElement.removeAttribute("data-app-message"),document.documentElement.classList.add("app-mounted")}function $o(t){typeof t=="string"&&document.documentElement.setAttribute("data-app-message",t),document.documentElement.classList.remove("app-mounted")}async function jm(){return await fetch(window.location.origin+"/api/get-environment").then(async t=>{if(!t.ok)throw $o("Ocorreu um erro ao inicializar a aplicação."),new Error(`Erro ao obter ambiente: ${t.status} ${t.statusText}`);return await t.text()})}x.AppError=xo,x.AppResult=zi,x.BaseAppState=Nm,x.EnsureUniqueRouteNames=Mm,x.GetEnvironmentAsync=jm,x.RemovePreloader=qi,x.RestorePreloader=$o,x.SfButton=Pt,x.SfContent=Pl,x.SfDrawer=zo,x.SfHelpButton=Il,x.SfIcon=Ae,x.SfLoadingCircle=Fo,x.SfLogin=Fl,x.SfMain=Bm,x.SfMessage=Ta,x.SfNavMenu=Tl,x.SfPageTitle=$m,x.SfTabNavigation=wa,x.SfTooltip=jo,x.UseAlert=Wi,x.UseAlertService=lm,x.UseAppInject=zt,x.UseConfirm=Hi,x.UseConfirmService=tm,x.UseSimpleToast=Vm,x.User=Lm,x.Utilities=Ye,x._logger=sm,x.configSF=am,x.globalErrorHandler=cm,x.themePreset=Om,Object.defineProperty(x,Symbol.toStringTag,{value:"Module"})});
|
|
425
425
|
//# sourceMappingURL=sf.prefeiturasp.vuecomponents.umd.cjs.map
|