@luizleon/sf.prefeiturasp.vuecomponents 6.0.21 → 6.0.22
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 +2541 -2628
- package/dist/sf.prefeiturasp.vuecomponents.js.map +1 -1
- package/dist/types/components/layout/Main.vue.d.ts.map +1 -1
- package/dist/types/primevue/preset.d.ts.map +1 -1
- package/package.json +1 -2
- package/dist/sf.prefeiturasp.vuecomponents.umd.cjs +0 -429
- package/dist/sf.prefeiturasp.vuecomponents.umd.cjs.map +0 -1
|
@@ -1,429 +0,0 @@
|
|
|
1
|
-
(function(A,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):(A=typeof globalThis<"u"?globalThis:A||self,r(A.SfPrefeituraSPVueComponents={},A.Vue,A.SfPrefeituraSPVueAuth,A.VueRouter))})(this,(function(A,r,ft,zi){"use strict";class Nt{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 hn(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 a=getComputedStyle(o).zIndex;return+a==+a?+a:0}));return n>=100?n:100}const nr=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=`${hn()??1}`,this.wrapper.addEventListener("mouseup",function(){this.classList.remove("visible"),Array.from(this.children).forEach(i=>i.remove()),this.remove()}),this.inner=document.createElement("div"),this.inner.classList.add("sf-tooltip-inner"),this.wrapper.appendChild(this.inner)}Show(i){this.showTimeout&&clearTimeout(this.showTimeout),this.target=i.currentTarget,this.showTimeout=setTimeout(()=>{this.Render(),this.inner.textContent=e.text,document.body.appendChild(this.wrapper),this.wrapper.classList.add("visible"),this.Position()},100)}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 i=this.target.getBoundingClientRect();this.FixWidth();const c=this.wrapper,l=5;c.style.top=`${i.top+i.height-l}px`,c.style.left=`${i.left+i.width-l}px`,this.OutOfBottom()&&(c.style.top=`${i.top-c.clientHeight+l}px`),this.OutOfRight()&&(c.style.left=`${i.left-c.clientWidth+l}px`)}FixWidth(){const i=this.wrapper;if(!i)return;i.style.width="fit-content",i.style.wordBreak="normal",i.style.whiteSpace="nowrap";const c=window.innerWidth/2;i.clientWidth>c&&(i.style.width=`${c}px`,i.style.wordBreak="break-word",i.style.whiteSpace="normal")}OutOfBottom(){const i=this.wrapper;if(!i)return!1;const c=i.getBoundingClientRect(),l=window.innerHeight||document.documentElement.clientHeight;return c.bottom+10>l}OutOfRight(){const i=this.wrapper;if(!i)return!1;const c=i.getBoundingClientRect(),l=window.innerWidth||document.documentElement.clientWidth;return c.right+10>l}}const o=new n;return r.onBeforeUnmount(()=>{o.Hide()}),(a,i)=>(r.openBlock(),r.createElementBlock("div",{class:"sf-tooltip-anchor",onMouseenter:i[0]||(i[0]=(...c)=>r.unref(o).Show&&r.unref(o).Show(...c)),onMousedown:i[1]||(i[1]=(...c)=>r.unref(o).Hide&&r.unref(o).Hide(...c)),onMouseleave:i[2]||(i[2]=(...c)=>r.unref(o).Hide&&r.unref(o).Hide(...c))},[r.renderSlot(a.$slots,"default")],32))}}),Ae=(t,e)=>{const n=t.__vccOpts||t;for(const[o,a]of e)n[o]=a;return n},Fi={},Ui={class:"sf-loading-circle"};function Wi(t,e){return r.openBlock(),r.createElementBlock("div",Ui,[...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 or=Ae(Fi,[["render",Wi]]),Ki=["data-size"],Gi=["disabled","data-p-loading","tabindex"],qi=["data-color"],Se=Ae(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?nr:"div"),a=r.computed(()=>new Nt(n.tooltip?"":"display-content").AddClass("loading",n.loading).AddClass("disabled",n.disabled).Build()),i=r.computed(()=>new Nt(`${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,d)=>(r.openBlock(),r.createBlock(r.resolveDynamicComponent(o.value),{text:n.tooltip,class:r.normalizeClass(a.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(i.value)},[n.loading?(r.openBlock(),r.createBlock(or,{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,Gi),n.dot&&!n.disabled&&!n.loading?(r.openBlock(),r.createElementBlock("span",{key:0,"data-color":n.dotColor},null,8,qi)):r.createCommentVNode("",!0)],64))],6)):r.createCommentVNode("",!0)],10,Ki)]),_:1},8,["text","class"]))}}),[["__scopeId","data-v-75c3c2ce"]]),Yi={class:"sf-tab-navigation"},Xi=["data-active"],Zi=["href","onClick"],Ji=r.defineComponent({__name:"TabNavigation",props:{tabs:{}},setup(t){const e=t,n=r.ref(null),o=new ResizeObserver(s=>{l()}),a=r.ref(!1),i=r.ref(!1);function c(s=!1){const d=n.value.clientWidth;n.value.scrollLeft+=s?-d:d}function l(){const s=n.value.scrollWidth-n.value.clientWidth;a.value=n.value.scrollLeft>10,i.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,d)=>{const u=r.resolveComponent("RouterLink");return r.openBlock(),r.createElementBlock("div",Yi,[r.createElementVNode("div",{class:r.normalizeClass(["left-arrow",{active:a.value}]),onClick:d[0]||(d[0]=m=>c(!0))},[...d[2]||(d[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,m=>(r.openBlock(),r.createBlock(u,{to:m.route,custom:!0},{default:r.withCtx(({navigate:p,isActive:h})=>[r.createElementVNode("li",{"data-active":h},[r.renderSlot(s.$slots,"item",{item:m,navigate:p,isActive:h},()=>[r.createElementVNode("a",{href:m.route,class:r.normalizeClass({active:h}),onClick:p},r.toDisplayString(m.text),11,Zi)])],8,Xi)]),_:2},1032,["to"]))),256))],512),r.createElementVNode("div",{class:r.normalizeClass(["right-arrow",{active:i.value}]),onClick:d[1]||(d[1]=m=>c())},[...d[3]||(d[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)])}}}),rr=Ae(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,a)=>n.value?(r.openBlock(),r.createElementBlock("div",{key:0,class:r.normalizeClass(["loading-circle",{dense:e.dense}])},[...a[0]||(a[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"]]),Qi=["id","name","disabled","data-color","form","type","data-p-loading"],pt=Ae(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 Nt(`${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 a=c=>{n.disabled||n.loading||i("click",c)},i=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:a},[n.loading?(r.openBlock(),r.createBlock(rr,{key:0,dense:!0,delay:0,class:r.normalizeClass("icon-loading")})):r.createCommentVNode("",!0),n.icon?(r.openBlock(),r.createBlock(Se,{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,Qi)):r.createCommentVNode("",!0)}}),[["__scopeId","data-v-162a5381"]]),es={class:"sf-drawer-title"},ts={class:"sf-drawer-action"},ar=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","before-open","open","before-close","close"],setup(t,{emit:e}){const n=t,o=e,a=r.useSlots(),i=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 d(){i.value=!1}function u(w){if(!n.dismissableMask)return;const S=w.target;S&&S.id===s&&(i.value=!1)}function m(w){(w.key==="Escape"||w.code==="Escape")&&d()}function p(){o("open"),window.document.addEventListener("keydown",m,!0)}function h(w){o("before-open"),l.value=hn()+1,w.style.zIndex=`${l.value}`}function v(w){o("before-close"),w?.parentElement?.classList.add("sf-mask-overlay-leave")}function g(){o("close"),window.document.removeEventListener("keydown",m,!0),c.value=!1}function y(){return new Nt("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,w=>{i.value=w}),r.watch(()=>i.value,w=>{o("update:visible",w),w&&(c.value=!0)}),(w,S)=>(r.openBlock(),r.createBlock(r.Teleport,{to:"body"},[c.value?(r.openBlock(),r.createElementBlock("div",{key:0,id:s,class:r.normalizeClass(y()),style:r.normalizeStyle({zIndex:l.value-1}),onClick:u},[r.createVNode(r.Transition,{name:"sf-drawer",appear:"",onBeforeEnter:h,onEnter:p,onBeforeLeave:v,onAfterLeave:g},{default:r.withCtx(()=>[i.value?(r.openBlock(),r.createElementBlock("div",{key:0,class:r.normalizeClass(["sf-drawer"]),style:r.normalizeStyle(n.style),role:"dialog"},[r.renderSlot(w.$slots,"header",r.normalizeProps(r.guardReactiveProps({Close:d})),()=>[r.createElementVNode("div",{class:r.normalizeClass(["sf-drawer-header",{unstyled:n.unstyledHeader}])},[r.renderSlot(w.$slots,"title",{},()=>[r.createElementVNode("div",es,r.toDisplayString(n.title),1)]),S[0]||(S[0]=r.createElementVNode("div",{class:"sf-drawer-spacer"},null,-1)),r.createElementVNode("div",ts,[r.renderSlot(w.$slots,"action",r.normalizeProps(r.guardReactiveProps({Close:d})),()=>[r.createVNode(Se,{button:!0,icon:"close",onClick:d})])])],2)]),r.createElementVNode("div",{class:r.normalizeClass(["sf-drawer-content",{unstyled:n.unstyledContent}])},[r.renderSlot(w.$slots,"default")],2),r.unref(a).footer?(r.openBlock(),r.createElementBlock("div",{key:0,class:r.normalizeClass(["sf-drawer-footer",{unstyled:n.unstyledFooter}])},[r.renderSlot(w.$slots,"footer",r.normalizeProps(r.guardReactiveProps({Close:d})))],2)):r.createCommentVNode("",!0)],4)):r.createCommentVNode("",!0)]),_:3})],6)):r.createCommentVNode("",!0)]))}}),ns=["data-icon"],os=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 Nt("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(a,i)=>(r.openBlock(),r.createElementBlock("div",{class:r.normalizeClass(o.value),"data-icon":n.value},[r.renderSlot(a.$slots,"default")],10,ns))}});function rs(t,e){return t?t.classList?t.classList.contains(e):new RegExp("(^| )"+e+"( |$)","gi").test(t.className):!1}function as(t,e){if(t&&e){let n=o=>{rs(t,o)||(t.classList?t.classList.add(o):t.className+=" "+o)};[e].flat().filter(Boolean).forEach(o=>o.split(" ").forEach(n))}}function eo(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 ir(t){return t?Math.abs(t.scrollLeft):0}function is(t,e){return t instanceof HTMLElement?t.offsetWidth:0}function ss(t){if(t){let e=t.parentNode;return e&&e instanceof ShadowRoot&&e.host&&(e=e.host),e}return null}function ls(t){return!!(t!==null&&typeof t<"u"&&t.nodeName&&ss(t))}function Mt(t){return typeof Element<"u"?t instanceof Element:t!==null&&typeof t=="object"&&t.nodeType===1&&typeof t.nodeName=="string"}function gn(t,e={}){if(Mt(t)){let n=(o,a)=>{var i,c;let l=(i=t?.$attrs)!=null&&i[o]?[(c=t?.$attrs)==null?void 0:c[o]]:[];return[a].flat().reduce((s,d)=>{if(d!=null){let u=typeof d;if(u==="string"||u==="number")s.push(d);else if(u==="object"){let m=Array.isArray(d)?n(o,d):Object.entries(d).map(([p,h])=>o==="style"&&(h||h===0)?`${p.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase()}:${h}`:h?p:void 0);s=m.length?s.concat(m.filter(p=>!!p)):s}}return s},l)};Object.entries(e).forEach(([o,a])=>{if(a!=null){let i=o.match(/^on(.+)/);i?t.addEventListener(i[1].toLowerCase(),a):o==="p-bind"||o==="pBind"?gn(t,a):(a=o==="class"?[...new Set(n("class",a))].join(" ").trim():o==="style"?n("style",a).join(";").trim():a,(t.$attrs=t.$attrs||{})&&(t.$attrs[o]=a),t.setAttribute(o,a))}})}}function cs(t,e={},...n){{let o=document.createElement(t);return gn(o,e),o.append(...n),o}}function _e(t,e){return Mt(t)?t.matches(e)?t:t.querySelector(e):null}function Dt(t,e){t&&document.activeElement!==t&&t.focus(e)}function Vt(t,e){if(Mt(t)){let n=t.getAttribute(e);return isNaN(n)?n==="true"||n==="false"?n==="true":n:+n}}function sr(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 ds(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||ir(document.documentElement)||ir(document.body)||0)}}return{top:"auto",left:"auto"}}function us(t,e){return t?t.offsetHeight:0}function lr(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 ms(){return!!(typeof window<"u"&&window.document&&window.document.createElement)}function fs(t,e="",n){Mt(t)&&n!==null&&n!==void 0&&t.setAttribute(e,n)}function Ke(t){return t==null||t===""||Array.isArray(t)&&t.length===0||!(t instanceof Date)&&typeof t=="object"&&Object.keys(t).length===0}function to(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),a=Array.isArray(e),i,c,l;if(o&&a){if(c=t.length,c!=e.length)return!1;for(i=c;i--!==0;)if(!to(t[i],e[i],n))return!1;return!0}if(o!=a)return!1;let s=t instanceof Date,d=e instanceof Date;if(s!=d)return!1;if(s&&d)return t.getTime()==e.getTime();let u=t instanceof RegExp,m=e instanceof RegExp;if(u!=m)return!1;if(u&&m)return t.toString()==e.toString();let p=Object.keys(t);if(c=p.length,c!==Object.keys(e).length)return!1;for(i=c;i--!==0;)if(!Object.prototype.hasOwnProperty.call(e,p[i]))return!1;for(i=c;i--!==0;)if(l=p[i],!to(t[l],e[l],n))return!1;return!0}function ps(t,e){return to(t,e)}function no(t){return typeof t=="function"&&"call"in t&&"apply"in t}function B(t){return!Ke(t)}function cr(t,e){return null}function ht(t,e,n){return n?cr()===cr():ps(t,e)}function Ge(t,e=!0){return t instanceof Object&&t.constructor===Object&&(e||Object.keys(t).length!==0)}function dr(t,e){let n;if(B(t))try{n=t.findLast(e)}catch{n=[...t].reverse().find(e)}return n}function ee(t,...e){return no(t)?t(...e):t}function me(t,e=!0){return typeof t=="string"&&(e||t!=="")}function Pe(t){return me(t)?t.replace(/(-|_)/g,"").toLowerCase():t}function oo(t,e="",n={}){let o=Pe(e).split("."),a=o.shift();if(a){if(Ge(t)){let i=Object.keys(t).find(c=>Pe(c)===a)||"";return oo(ee(t[i],n),o.join("."),n)}return}return ee(t,n)}function ur(t,e=!0){return Array.isArray(t)&&(e||t.length!==0)}function hs(t){return B(t)&&!isNaN(t)}function gs(t=""){return B(t)&&t.length===1&&!!t.match(/\S| /)}function nt(t,e){if(e){let n=e.test(t);return e.lastIndex=0,n}return!1}function Rt(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 bs(t){return me(t,!1)?t[0].toUpperCase()+t.slice(1):t}function mr(t){return me(t)?t.replace(/(_)/g,"-").replace(/[A-Z]/g,(e,n)=>n===0?e:"-"+e.toLowerCase()).toLowerCase():t}function fr(){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(a=>{a(n)})},clear(){t.clear()}}}var bn={};function ws(t="pui_id_"){return Object.hasOwn(bn,t)||(bn[t]=0),bn[t]++,`${t}${bn[t]}`}var vs=Object.defineProperty,ys=Object.defineProperties,ks=Object.getOwnPropertyDescriptors,wn=Object.getOwnPropertySymbols,pr=Object.prototype.hasOwnProperty,hr=Object.prototype.propertyIsEnumerable,gr=(t,e,n)=>e in t?vs(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,Ee=(t,e)=>{for(var n in e||(e={}))pr.call(e,n)&&gr(t,n,e[n]);if(wn)for(var n of wn(e))hr.call(e,n)&&gr(t,n,e[n]);return t},ro=(t,e)=>ys(t,ks(e)),Me=(t,e)=>{var n={};for(var o in t)pr.call(t,o)&&e.indexOf(o)<0&&(n[o]=t[o]);if(t!=null&&wn)for(var o of wn(t))e.indexOf(o)<0&&hr.call(t,o)&&(n[o]=t[o]);return n},Cs=fr(),ae=Cs,jt=/{([^}]*)}/g,br=/(\d+\s+[\+\-\*\/]\s+\d+)/g,wr=/var\([^)]+\)/g;function vr(t){return me(t)?t.replace(/[A-Z]/g,(e,n)=>n===0?e:"."+e.toLowerCase()).toLowerCase():t}function Ss(t){return Ge(t)&&t.hasOwnProperty("$value")&&t.hasOwnProperty("$type")?t.$value:t}function _s(t){return t.replaceAll(/ /g,"").replace(/[^\w]/g,"-")}function ao(t="",e=""){return _s(`${me(t,!1)&&me(e,!1)?`${t}-`:t}${e}`)}function yr(t="",e=""){return`--${ao(t,e)}`}function Es(t=""){let e=(t.match(/{/g)||[]).length,n=(t.match(/}/g)||[]).length;return(e+n)%2!==0}function kr(t,e="",n="",o=[],a){if(me(t)){let i=t.trim();if(Es(i))return;if(nt(i,jt)){let c=i.replaceAll(jt,l=>{let s=l.replace(/{|}/g,"").split(".").filter(d=>!o.some(u=>nt(d,u)));return`var(${yr(n,mr(s.join("-")))}${B(a)?`, ${a}`:""})`});return nt(c.replace(wr,"0"),br)?`calc(${c})`:c}return i}else if(hs(t))return t}function xs(t,e,n){me(e,!1)&&t.push(`${e}:${n};`)}function gt(t,e){return t?`${t}{${e}}`:""}function Cr(t,e){if(t.indexOf("dt(")===-1)return t;function n(c,l){let s=[],d=0,u="",m=null,p=0;for(;d<=c.length;){let h=c[d];if((h==='"'||h==="'"||h==="`")&&c[d-1]!=="\\"&&(m=m===h?null:h),!m&&(h==="("&&p++,h===")"&&p--,(h===","||d===c.length)&&p===0)){let v=u.trim();v.startsWith("dt(")?s.push(Cr(v,l)):s.push(o(v)),u="",d++;continue}h!==void 0&&(u+=h),d++}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 a=[],i=[];for(let c=0;c<t.length;c++)if(t[c]==="d"&&t.slice(c,c+3)==="dt(")i.push(c),c+=2;else if(t[c]===")"&&i.length>0){let l=i.pop();i.length===0&&a.push([l,c])}if(!a.length)return t;for(let c=a.length-1;c>=0;c--){let[l,s]=a[c],d=t.slice(l+3,s),u=n(d,e),m=e(...u);t=t.slice(0,l)+m+t.slice(s+1)}return t}var ot=(...t)=>Ts(H.getTheme(),...t),Ts=(t={},e,n,o)=>{if(e){let{variable:a,options:i}=H.defaults||{},{prefix:c,transform:l}=t?.options||i||{},s=nt(e,jt)?e:`{${e}}`;return o==="value"||Ke(o)&&l==="strict"?H.getTokenValue(e):kr(s,void 0,c,[a.excludedKeyRegex],n)}return""};function vn(t,...e){if(t instanceof Array){let n=t.reduce((o,a,i)=>{var c;return o+a+((c=ee(e[i],{dt:ot}))!=null?c:"")},"");return Cr(n,ot)}return ee(t,{dt:ot})}function Is(t,e={}){let n=H.defaults.variable,{prefix:o=n.prefix,selector:a=n.selector,excludedKeyRegex:i=n.excludedKeyRegex}=e,c=[],l=[],s=[{node:t,path:o}];for(;s.length;){let{node:u,path:m}=s.pop();for(let p in u){let h=u[p],v=Ss(h),g=nt(p,i)?ao(m):ao(m,mr(p));if(Ge(v))s.push({node:v,path:g});else{let y=yr(g),w=kr(v,g,o,[i]);xs(l,y,w);let S=g;o&&S.startsWith(o+"-")&&(S=S.slice(o.length+1)),c.push(S.replace(/-/g,"."))}}}let d=l.join("");return{value:l,tokens:c,declarations:d,css:gt(a,d)}}var xe={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,:host${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(a=>a.resolve(n)).find(a=>a.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:a}){var i,c,l,s,d,u,m;let{preset:p,options:h}=e,v,g,y,w,S,P,k;if(B(p)&&h.transform!=="strict"){let{primitive:E,semantic:U,extend:J}=p,ye=U||{},{colorScheme:ne}=ye,ke=Me(ye,["colorScheme"]),I=J||{},{colorScheme:R}=I,oe=Me(I,["colorScheme"]),ue=ne||{},{dark:Ie}=ue,Ze=Me(ue,["dark"]),Re=R||{},{dark:je}=Re,Je=Me(Re,["dark"]),Ce=B(E)?this._toVariables({primitive:E},h):{},V=B(ke)?this._toVariables({semantic:ke},h):{},Oe=B(Ze)?this._toVariables({light:Ze},h):{},W=B(Ie)?this._toVariables({dark:Ie},h):{},He=B(oe)?this._toVariables({semantic:oe},h):{},z=B(Je)?this._toVariables({light:Je},h):{},Qe=B(je)?this._toVariables({dark:je},h):{},[cn,Wn]=[(i=Ce.declarations)!=null?i:"",Ce.tokens],[dn,Kn]=[(c=V.declarations)!=null?c:"",V.tokens||[]],[Gn,et]=[(l=Oe.declarations)!=null?l:"",Oe.tokens||[]],[Tt,ze]=[(s=W.declarations)!=null?s:"",W.tokens||[]],[un,mn]=[(d=He.declarations)!=null?d:"",He.tokens||[]],[tt,It]=[(u=z.declarations)!=null?u:"",z.tokens||[]],[At,qn]=[(m=Qe.declarations)!=null?m:"",Qe.tokens||[]];v=this.transformCSS(t,cn,"light","variable",h,o,a),g=Wn;let Yn=this.transformCSS(t,`${dn}${Gn}`,"light","variable",h,o,a),Yo=this.transformCSS(t,`${Tt}`,"dark","variable",h,o,a);y=`${Yn}${Yo}`,w=[...new Set([...Kn,...et,...ze])];let fn=this.transformCSS(t,`${un}${tt}color-scheme:light`,"light","variable",h,o,a),ut=this.transformCSS(t,`${At}color-scheme:dark`,"dark","variable",h,o,a);S=`${fn}${ut}`,P=[...new Set([...mn,...It,...qn])],k=ee(p.css,{dt:ot})}return{primitive:{css:v,tokens:g},semantic:{css:y,tokens:w},global:{css:S,tokens:P},style:k}},getPreset({name:t="",preset:e={},options:n,params:o,set:a,defaults:i,selector:c}){var l,s,d;let u,m,p;if(B(e)&&n.transform!=="strict"){let h=t.replace("-directive",""),v=e,{colorScheme:g,extend:y,css:w}=v,S=Me(v,["colorScheme","extend","css"]),P=y||{},{colorScheme:k}=P,E=Me(P,["colorScheme"]),U=g||{},{dark:J}=U,ye=Me(U,["dark"]),ne=k||{},{dark:ke}=ne,I=Me(ne,["dark"]),R=B(S)?this._toVariables({[h]:Ee(Ee({},S),E)},n):{},oe=B(ye)?this._toVariables({[h]:Ee(Ee({},ye),I)},n):{},ue=B(J)?this._toVariables({[h]:Ee(Ee({},J),ke)},n):{},[Ie,Ze]=[(l=R.declarations)!=null?l:"",R.tokens||[]],[Re,je]=[(s=oe.declarations)!=null?s:"",oe.tokens||[]],[Je,Ce]=[(d=ue.declarations)!=null?d:"",ue.tokens||[]],V=this.transformCSS(h,`${Ie}${Re}`,"light","variable",n,a,i,c),Oe=this.transformCSS(h,Je,"dark","variable",n,a,i,c);u=`${V}${Oe}`,m=[...new Set([...Ze,...je,...Ce])],p=ee(w,{dt:ot})}return{css:u,tokens:m,style:p}},getPresetC({name:t="",theme:e={},params:n,set:o,defaults:a}){var i;let{preset:c,options:l}=e,s=(i=c?.components)==null?void 0:i[t];return this.getPreset({name:t,preset:s,options:l,params:n,set:o,defaults:a})},getPresetD({name:t="",theme:e={},params:n,set:o,defaults:a}){var i,c;let l=t.replace("-directive",""),{preset:s,options:d}=e,u=((i=s?.components)==null?void 0:i[l])||((c=s?.directives)==null?void 0:c[l]);return this.getPreset({name:l,preset:u,options:d,params:n,set:o,defaults:a})},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:a}=e;return a?`@layer ${ee(a.order||a.name||"primeui",n)}`:""},getCommonStyleSheet({name:t="",theme:e={},params:n,props:o={},set:a,defaults:i}){let c=this.getCommon({name:t,theme:e,params:n,set:a,defaults:i}),l=Object.entries(o).reduce((s,[d,u])=>s.push(`${d}="${u}"`)&&s,[]).join(" ");return Object.entries(c||{}).reduce((s,[d,u])=>{if(Ge(u)&&Object.hasOwn(u,"css")){let m=Rt(u.css),p=`${d}-variables`;s.push(`<style type="text/css" data-primevue-style-id="${p}" ${l}>${m}</style>`)}return s},[]).join("")},getStyleSheet({name:t="",theme:e={},params:n,props:o={},set:a,defaults:i}){var c;let l={name:t,theme:e,params:n,set:a,defaults:i},s=(c=t.includes("-directive")?this.getPresetD(l):this.getPresetC(l))==null?void 0:c.css,d=Object.entries(o).reduce((u,[m,p])=>u.push(`${m}="${p}"`)&&u,[]).join(" ");return s?`<style type="text/css" data-primevue-style-id="${t}-variables" ${d}>${Rt(s)}</style>`:""},createTokens(t={},e,n="",o="",a={}){let i=function(l,s={},d=[]){if(d.includes(this.path))return console.warn(`Circular reference detected at ${this.path}`),{colorScheme:l,path:this.path,paths:s,value:void 0};d.push(this.path),s.name=this.path,s.binding||(s.binding={});let u=this.value;if(typeof this.value=="string"&&jt.test(this.value)){let m=this.value.trim().replace(jt,p=>{var h;let v=p.slice(1,-1),g=this.tokens[v];if(!g)return console.warn(`Token not found for path: ${v}`),"__UNRESOLVED__";let y=g.computed(l,s,d);return Array.isArray(y)&&y.length===2?`light-dark(${y[0].value},${y[1].value})`:(h=y?.value)!=null?h:"__UNRESOLVED__"});u=br.test(m.replace(wr,"0"))?`calc(${m})`:m}return Ke(s.binding)&&delete s.binding,d.pop(),{colorScheme:l,path:this.path,paths:s,value:u.includes("__UNRESOLVED__")?void 0:u}},c=(l,s,d)=>{Object.entries(l).forEach(([u,m])=>{let p=nt(u,e.variable.excludedKeyRegex)?s:s?`${s}.${vr(u)}`:vr(u),h=d?`${d}.${u}`:u;Ge(m)?c(m,p,h):(a[p]||(a[p]={paths:[],computed:(v,g={},y=[])=>{if(a[p].paths.length===1)return a[p].paths[0].computed(a[p].paths[0].scheme,g.binding,y);if(v&&v!=="none")for(let w=0;w<a[p].paths.length;w++){let S=a[p].paths[w];if(S.scheme===v)return S.computed(v,g.binding,y)}return a[p].paths.map(w=>w.computed(w.scheme,g[w.scheme],y))}}),a[p].paths.push({path:h,value:m,scheme:h.includes("colorScheme.light")?"light":h.includes("colorScheme.dark")?"dark":"none",computed:i,tokens:a}))})};return c(t,n,o),a},getTokenValue(t,e,n){var o;let a=(l=>l.split(".").filter(s=>!nt(s.toLowerCase(),n.variable.excludedKeyRegex)).join("."))(e),i=e.includes("colorScheme.light")?"light":e.includes("colorScheme.dark")?"dark":void 0,c=[(o=t[a])==null?void 0:o.computed(i)].flat().filter(l=>l);return c.length===1?c[0].value:c.reduce((l={},s)=>{let d=s,{colorScheme:u}=d,m=Me(d,["colorScheme"]);return l[u]=m,l},void 0)},getSelectorRule(t,e,n,o){return n==="class"||n==="attr"?gt(B(e)?`${t}${e},${t} ${e}`:t,o):gt(t,gt(e??":root,:host",o))},transformCSS(t,e,n,o,a={},i,c,l){if(B(e)){let{cssLayer:s}=a;if(o!=="style"){let d=this.getColorSchemeOption(a,c);e=n==="dark"?d.reduce((u,{type:m,selector:p})=>(B(p)&&(u+=p.includes("[CSS]")?p.replace("[CSS]",e):this.getSelectorRule(p,l,m,e)),u),""):gt(l??":root,:host",e)}if(s){let d={name:"primeui"};Ge(s)&&(d.name=ee(s.name,{name:t,type:o})),B(d.name)&&(e=gt(`@layer ${d.name}`,e),i?.layerNames(d.name))}return e}return""}},H={defaults:{variable:{prefix:"p",selector:":root,:host",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=ro(Ee({},e),{options:Ee(Ee({},this.defaults.options),e.options)}),this._tokens=xe.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}),ae.emit("theme:change",t)},getPreset(){return this.preset},setPreset(t){this._theme=ro(Ee({},this.theme),{preset:t}),this._tokens=xe.createTokens(t,this.defaults),this.clearLoadedStyleNames(),ae.emit("preset:change",t),ae.emit("theme:change",this.theme)},getOptions(){return this.options},setOptions(t){this._theme=ro(Ee({},this.theme),{options:t}),this.clearLoadedStyleNames(),ae.emit("options:change",t),ae.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 xe.getTokenValue(this.tokens,t,this.defaults)},getCommon(t="",e){return xe.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 xe.getPresetC(n)},getDirective(t="",e){let n={name:t,theme:this.theme,params:e,defaults:this.defaults,set:{layerNames:this.setLayerNames.bind(this)}};return xe.getPresetD(n)},getCustomPreset(t="",e,n,o){let a={name:t,preset:e,options:this.options,selector:n,params:o,defaults:this.defaults,set:{layerNames:this.setLayerNames.bind(this)}};return xe.getPreset(a)},getLayerOrderCSS(t=""){return xe.getLayerOrder(t,this.options,{names:this.getLayerNames()},this.defaults)},transformCSS(t="",e,n="style",o){return xe.transformCSS(t,e,o,n,this.options,{layerNames:this.setLayerNames.bind(this)},this.defaults)},getCommonStyleSheet(t="",e,n={}){return xe.getCommonStyleSheet({name:t,theme:this.theme,params:e,props:n,defaults:this.defaults,set:{layerNames:this.setLayerNames.bind(this)}})},getStyleSheet(t,e,n={}){return xe.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),ae.emit(`theme:${e}:load`,t),!this._loadingStyles.size&&ae.emit("theme:load"))}},qe={_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=`
|
|
2
|
-
*,
|
|
3
|
-
::before,
|
|
4
|
-
::after {
|
|
5
|
-
box-sizing: border-box;
|
|
6
|
-
}
|
|
7
|
-
|
|
8
|
-
/* Non vue overlay animations */
|
|
9
|
-
.p-connected-overlay {
|
|
10
|
-
opacity: 0;
|
|
11
|
-
transform: scaleY(0.8);
|
|
12
|
-
transition:
|
|
13
|
-
transform 0.12s cubic-bezier(0, 0, 0.2, 1),
|
|
14
|
-
opacity 0.12s cubic-bezier(0, 0, 0.2, 1);
|
|
15
|
-
}
|
|
16
|
-
|
|
17
|
-
.p-connected-overlay-visible {
|
|
18
|
-
opacity: 1;
|
|
19
|
-
transform: scaleY(1);
|
|
20
|
-
}
|
|
21
|
-
|
|
22
|
-
.p-connected-overlay-hidden {
|
|
23
|
-
opacity: 0;
|
|
24
|
-
transform: scaleY(1);
|
|
25
|
-
transition: opacity 0.1s linear;
|
|
26
|
-
}
|
|
27
|
-
|
|
28
|
-
/* Vue based overlay animations */
|
|
29
|
-
.p-connected-overlay-enter-from {
|
|
30
|
-
opacity: 0;
|
|
31
|
-
transform: scaleY(0.8);
|
|
32
|
-
}
|
|
33
|
-
|
|
34
|
-
.p-connected-overlay-leave-to {
|
|
35
|
-
opacity: 0;
|
|
36
|
-
}
|
|
37
|
-
|
|
38
|
-
.p-connected-overlay-enter-active {
|
|
39
|
-
transition:
|
|
40
|
-
transform 0.12s cubic-bezier(0, 0, 0.2, 1),
|
|
41
|
-
opacity 0.12s cubic-bezier(0, 0, 0.2, 1);
|
|
42
|
-
}
|
|
43
|
-
|
|
44
|
-
.p-connected-overlay-leave-active {
|
|
45
|
-
transition: opacity 0.1s linear;
|
|
46
|
-
}
|
|
47
|
-
|
|
48
|
-
/* Toggleable Content */
|
|
49
|
-
.p-toggleable-content-enter-from,
|
|
50
|
-
.p-toggleable-content-leave-to {
|
|
51
|
-
max-height: 0;
|
|
52
|
-
}
|
|
53
|
-
|
|
54
|
-
.p-toggleable-content-enter-to,
|
|
55
|
-
.p-toggleable-content-leave-from {
|
|
56
|
-
max-height: 1000px;
|
|
57
|
-
}
|
|
58
|
-
|
|
59
|
-
.p-toggleable-content-leave-active {
|
|
60
|
-
overflow: hidden;
|
|
61
|
-
transition: max-height 0.45s cubic-bezier(0, 1, 0, 1);
|
|
62
|
-
}
|
|
63
|
-
|
|
64
|
-
.p-toggleable-content-enter-active {
|
|
65
|
-
overflow: hidden;
|
|
66
|
-
transition: max-height 1s ease-in-out;
|
|
67
|
-
}
|
|
68
|
-
|
|
69
|
-
.p-disabled,
|
|
70
|
-
.p-disabled * {
|
|
71
|
-
cursor: default;
|
|
72
|
-
pointer-events: none;
|
|
73
|
-
user-select: none;
|
|
74
|
-
}
|
|
75
|
-
|
|
76
|
-
.p-disabled,
|
|
77
|
-
.p-component:disabled {
|
|
78
|
-
opacity: dt('disabled.opacity');
|
|
79
|
-
}
|
|
80
|
-
|
|
81
|
-
.pi {
|
|
82
|
-
font-size: dt('icon.size');
|
|
83
|
-
}
|
|
84
|
-
|
|
85
|
-
.p-icon {
|
|
86
|
-
width: dt('icon.size');
|
|
87
|
-
height: dt('icon.size');
|
|
88
|
-
}
|
|
89
|
-
|
|
90
|
-
.p-overlay-mask {
|
|
91
|
-
background: dt('mask.background');
|
|
92
|
-
color: dt('mask.color');
|
|
93
|
-
position: fixed;
|
|
94
|
-
top: 0;
|
|
95
|
-
left: 0;
|
|
96
|
-
width: 100%;
|
|
97
|
-
height: 100%;
|
|
98
|
-
}
|
|
99
|
-
|
|
100
|
-
.p-overlay-mask-enter {
|
|
101
|
-
animation: p-overlay-mask-enter-animation dt('mask.transition.duration') forwards;
|
|
102
|
-
}
|
|
103
|
-
|
|
104
|
-
.p-overlay-mask-leave {
|
|
105
|
-
animation: p-overlay-mask-leave-animation dt('mask.transition.duration') forwards;
|
|
106
|
-
}
|
|
107
|
-
|
|
108
|
-
@keyframes p-overlay-mask-enter-animation {
|
|
109
|
-
from {
|
|
110
|
-
background: transparent;
|
|
111
|
-
}
|
|
112
|
-
to {
|
|
113
|
-
background: dt('mask.background');
|
|
114
|
-
}
|
|
115
|
-
}
|
|
116
|
-
@keyframes p-overlay-mask-leave-animation {
|
|
117
|
-
from {
|
|
118
|
-
background: dt('mask.background');
|
|
119
|
-
}
|
|
120
|
-
to {
|
|
121
|
-
background: transparent;
|
|
122
|
-
}
|
|
123
|
-
}
|
|
124
|
-
`;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 Sr(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);e&&(o=o.filter(function(a){return Object.getOwnPropertyDescriptor(t,a).enumerable})),n.push.apply(n,o)}return n}function _r(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){Ps(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 Ps(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=Bs(t,"string");return Ht(e)=="symbol"?e:e+""}function Bs(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)}function Ls(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 Ns(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=r.ref(!1),o=r.ref(t),a=r.ref(null),i=ms()?window.document:void 0,c=e.document,l=c===void 0?i:c,s=e.immediate,d=s===void 0?!0:s,u=e.manual,m=u===void 0?!1:u,p=e.name,h=p===void 0?"style_".concat(++Os):p,v=e.id,g=v===void 0?void 0:v,y=e.media,w=y===void 0?void 0:y,S=e.nonce,P=S===void 0?void 0:S,k=e.first,E=k===void 0?!1:k,U=e.onMounted,J=U===void 0?void 0:U,ye=e.onUpdated,ne=ye===void 0?void 0:ye,ke=e.onLoad,I=ke===void 0?void 0:ke,R=e.props,oe=R===void 0?{}:R,ue=function(){},Ie=function(je){var Je=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(l){var Ce=_r(_r({},oe),Je),V=Ce.name||h,Oe=Ce.id||g,W=Ce.nonce||P;a.value=l.querySelector('style[data-primevue-style-id="'.concat(V,'"]'))||l.getElementById(Oe)||l.createElement("style"),a.value.isConnected||(o.value=je||t,gn(a.value,{type:"text/css",id:Oe,media:w,nonce:W}),E?l.head.prepend(a.value):l.head.appendChild(a.value),fs(a.value,"data-primevue-style-id",V),gn(a.value,Ce),a.value.onload=function(He){return I?.(He,{name:V})},J?.(V)),!n.value&&(ue=r.watch(o,function(He){a.value.textContent=He,ne?.(V)},{immediate:!0}),n.value=!0)}},Ze=function(){!l||!n.value||(ue(),ls(a.value)&&l.head.removeChild(a.value),n.value=!1,a.value=null)};return d&&!m&&Ls(Ie),{id:g,name:h,el:a,css:o,unload:Ze,load:Ie,isLoaded:r.readonly(n)}}function zt(t){"@babel/helpers - typeof";return zt=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},zt(t)}var Er,xr,Tr,Ir;function Ar(t,e){return Rs(t)||Vs(t,e)||Ds(t,e)||Ms()}function Ms(){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 Ds(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 Vs(t,e){var n=t==null?null:typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(n!=null){var o,a,i,c,l=[],s=!0,d=!1;try{if(i=(n=n.call(t)).next,e!==0)for(;!(s=(o=i.call(n)).done)&&(l.push(o.value),l.length!==e);s=!0);}catch(u){d=!0,a=u}finally{try{if(!s&&n.return!=null&&(c=n.return(),Object(c)!==c))return}finally{if(d)throw a}}return l}}function Rs(t){if(Array.isArray(t))return t}function $r(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);e&&(o=o.filter(function(a){return Object.getOwnPropertyDescriptor(t,a).enumerable})),n.push.apply(n,o)}return n}function io(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){js(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 js(t,e,n){return(e=Hs(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function Hs(t){var e=zs(t,"string");return zt(e)=="symbol"?e:e+""}function zs(t,e){if(zt(t)!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var o=n.call(t,e);if(zt(o)!="object")return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function yn(t,e){return e||(e=t.slice(0)),Object.freeze(Object.defineProperties(t,{raw:{value:Object.freeze(e)}}))}var Fs=function(e){var n=e.dt;return`
|
|
126
|
-
.p-hidden-accessible {
|
|
127
|
-
border: 0;
|
|
128
|
-
clip: rect(0 0 0 0);
|
|
129
|
-
height: 1px;
|
|
130
|
-
margin: -1px;
|
|
131
|
-
opacity: 0;
|
|
132
|
-
overflow: hidden;
|
|
133
|
-
padding: 0;
|
|
134
|
-
pointer-events: none;
|
|
135
|
-
position: absolute;
|
|
136
|
-
white-space: nowrap;
|
|
137
|
-
width: 1px;
|
|
138
|
-
}
|
|
139
|
-
|
|
140
|
-
.p-overflow-hidden {
|
|
141
|
-
overflow: hidden;
|
|
142
|
-
padding-right: `.concat(n("scrollbar.width"),`;
|
|
143
|
-
}
|
|
144
|
-
`)},Us={},Ws={},Z={name:"base",css:Fs,style:As,classes:Us,inlineStyles:Ws,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(i){return i},a=o(vn(Er||(Er=yn(["",""])),e));return B(a)?Ns(Rt(a),io({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 a=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return H.transformCSS(n.name||e.name,"".concat(a).concat(vn(xr||(xr=yn(["",""])),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=ee(this.css,{dt:ot})||"",a=Rt(vn(Tr||(Tr=yn(["","",""])),o,e)),i=Object.entries(n).reduce(function(c,l){var s=Ar(l,2),d=s[0],u=s[1];return c.push("".concat(d,'="').concat(u,'"'))&&c},[]).join(" ");return B(a)?'<style type="text/css" data-primevue-style-id="'.concat(this.name,'" ').concat(i,">").concat(a,"</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 a=this.name==="base"?"global-style":"".concat(this.name,"-style"),i=vn(Ir||(Ir=yn(["",""])),ee(this.style,{dt:ot})),c=Rt(H.transformCSS(a,i)),l=Object.entries(n).reduce(function(s,d){var u=Ar(d,2),m=u[0],p=u[1];return s.push("".concat(m,'="').concat(p,'"'))&&s},[]).join(" ");B(c)&&o.push('<style type="text/css" data-primevue-style-id="'.concat(a,'" ').concat(l,">").concat(c,"</style>"))}return o.join("")},extend:function(e){return io(io({},this),{},{css:void 0,style:void 0},e)}};function Ks(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"pc",e=r.useId();return"".concat(t).concat(e.replace("v-","").replaceAll("-","_"))}var Br=Z.extend({name:"common"});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 Gs(t){return Mr(t)||qs(t)||Or(t)||Lr()}function qs(t){if(typeof Symbol<"u"&&t[Symbol.iterator]!=null||t["@@iterator"]!=null)return Array.from(t)}function Ut(t,e){return Mr(t)||Ys(t,e)||Or(t,e)||Lr()}function Lr(){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 Or(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 Ys(t,e){var n=t==null?null:typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(n!=null){var o,a,i,c,l=[],s=!0,d=!1;try{if(i=(n=n.call(t)).next,e===0){if(Object(n)!==n)return;s=!1}else for(;!(s=(o=i.call(n)).done)&&(l.push(o.value),l.length!==e);s=!0);}catch(u){d=!0,a=u}finally{try{if(!s&&n.return!=null&&(c=n.return(),Object(c)!==c))return}finally{if(d)throw a}}return l}}function Mr(t){if(Array.isArray(t))return t}function Dr(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);e&&(o=o.filter(function(a){return Object.getOwnPropertyDescriptor(t,a).enumerable})),n.push.apply(n,o)}return n}function O(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){Wt(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 Wt(t,e,n){return(e=Xs(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function Xs(t){var e=Zs(t,"string");return Ft(e)=="symbol"?e:e+""}function Zs(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 kn={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){ae.off("theme:change",this._loadCoreStyles),e||(this._loadCoreStyles(),this._themeChangeListener(this._loadCoreStyles))}},dt:{immediate:!0,handler:function(e,n){var o=this;ae.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,a,i,c,l,s,d,u,m,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,v=p?(o=this.pt)===null||o===void 0||(o=o.value)===null||o===void 0?void 0:o[this.$.type.name]:this.pt;(a=v||h)===null||a===void 0||(a=a.hooks)===null||a===void 0||(i=a.onBeforeCreate)===null||i===void 0||i.call(a);var g=(c=this.$primevueConfig)===null||c===void 0||(c=c.pt)===null||c===void 0?void 0:c._usept,y=g?(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,w=g?(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:(d=this.$primevue)===null||d===void 0||(d=d.config)===null||d===void 0?void 0:d.pt;(u=w||y)===null||u===void 0||(u=u[this.$.type.name])===null||u===void 0||(u=u.hooks)===null||u===void 0||(m=u.onBeforeCreate)===null||m===void 0||m.call(u),this.$attrSelector=Ks(),this.uid=this.$attrs.id||this.$attrSelector.replace("pc","pv_id_")},created:function(){this._hook("onCreated")},beforeMount:function(){var e;this.rootEl=_e(Mt(this.$el)?this.$el:(e=this.$el)===null||e===void 0?void 0:e.parentElement,"[".concat(this.$attrSelector,"]")),this.rootEl&&(this.rootEl.$pc=O({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),a=1;a<n;a++)o[a-1]=arguments[a];return no(e)?e.apply(void 0,o):r.mergeProps.apply(void 0,o)},_load:function(){qe.isStyleNameLoaded("base")||(Z.loadCSS(this.$styleOptions),this._loadGlobalStyles(),qe.setLoadedStyleName("base")),this._loadThemeStyles()},_loadStyles:function(){this._load(),this._themeChangeListener(this._load)},_loadCoreStyles:function(){var e,n;!qe.isStyleNameLoaded((e=this.$style)===null||e===void 0?void 0:e.name)&&(n=this.$style)!==null&&n!==void 0&&n.name&&(Br.loadCSS(this.$styleOptions),this.$options.style&&this.$style.loadCSS(this.$styleOptions),qe.setLoadedStyleName(this.$style.name))},_loadGlobalStyles:function(){var e=this._useGlobalPT(this._getOptionValue,"global.css",this.$params);B(e)&&Z.load(e,O({name:"global"},this.$styleOptions))},_loadThemeStyles:function(){var e,n;if(!(this.isUnstyled||this.$theme==="none")){if(!H.isStyleNameLoaded("common")){var o,a,i=((o=this.$style)===null||o===void 0||(a=o.getCommonTheme)===null||a===void 0?void 0:a.call(o))||{},c=i.primitive,l=i.semantic,s=i.global,d=i.style;Z.load(c?.css,O({name:"primitive-variables"},this.$styleOptions)),Z.load(l?.css,O({name:"semantic-variables"},this.$styleOptions)),Z.load(s?.css,O({name:"global-variables"},this.$styleOptions)),Z.loadStyle(O({name:"global-style"},this.$styleOptions),d),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 u,m,p,h,v=((u=this.$style)===null||u===void 0||(m=u.getComponentTheme)===null||m===void 0?void 0:m.call(u))||{},g=v.css,y=v.style;(p=this.$style)===null||p===void 0||p.load(g,O({name:"".concat(this.$style.name,"-variables")},this.$styleOptions)),(h=this.$style)===null||h===void 0||h.loadStyle(O({name:"".concat(this.$style.name,"-style")},this.$styleOptions),y),H.setLoadedStyleName(this.$style.name)}if(!H.isStyleNameLoaded("layer-order")){var w,S,P=(w=this.$style)===null||w===void 0||(S=w.getLayerOrderThemeCSS)===null||S===void 0?void 0:S.call(w);Z.load(P,O({name:"layer-order",first:!0},this.$styleOptions)),H.setLoadedStyleName("layer-order")}}},_loadScopedThemeStyles:function(e){var n,o,a,i=((n=this.$style)===null||n===void 0||(o=n.getPresetTheme)===null||o===void 0?void 0:o.call(n,e,"[".concat(this.$attrSelector,"]")))||{},c=i.css,l=(a=this.$style)===null||a===void 0?void 0:a.load(c,O({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(){};qe.clearLoadedStyleNames(),ae.on("theme:change",e)},_removeThemeListeners:function(){ae.off("theme:change",this._loadCoreStyles),ae.off("theme:change",this._load),ae.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 oo(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]:"",a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!0,c=/./g.test(o)&&!!a[o.split(".")[0]],l=this._getPropValue("ptOptions")||((e=this.$primevueConfig)===null||e===void 0?void 0:e.ptOptions)||{},s=l.mergeSections,d=s===void 0?!0:s,u=l.mergeProps,m=u===void 0?!1:u,p=i?c?this._useGlobalPT(this._getPTClassValue,o,a):this._useDefaultPT(this._getPTClassValue,o,a):void 0,h=c?void 0:this._getPTSelf(n,this._getPTClassValue,o,O(O({},a),{},{global:p||{}})),v=this._getPTDatasets(o);return d||!d&&h?m?this._mergeProps(m,p,h,v):O(O(O({},p),h),v):O(O({},h),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),a=1;a<n;a++)o[a-1]=arguments[a];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]:"",a="data-pc-",i=o==="root"&&B((e=this.pt)===null||e===void 0?void 0:e["data-pc-section"]);return o!=="transition"&&O(O({},o==="root"&&O(O(Wt({},"".concat(a,"name"),Pe(i?(n=this.pt)===null||n===void 0?void 0:n["data-pc-section"]:this.$.type.name)),i&&Wt({},"".concat(a,"extend"),Pe(this.$.type.name))),{},Wt({},"".concat(this.$attrSelector),""))),{},Wt({},"".concat(a,"section"),Pe(o)))},_getPTClassValue:function(){var e=this._getOptionValue.apply(this,arguments);return me(e)||ur(e)?{class:e}:e},_getPT:function(e){var n=this,o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"",a=arguments.length>2?arguments[2]:void 0,i=function(l){var s,d=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,u=a?a(l):l,m=Pe(o),p=Pe(n.$name);return(s=d?m!==p?u?.[m]:void 0:u?.[m])!==null&&s!==void 0?s:u};return e!=null&&e.hasOwnProperty("_usept")?{_usept:e._usept,originalValue:i(e.originalValue),value:i(e.value)}:i(e,!0)},_usePT:function(e,n,o,a){var i=function(g){return n(g,o,a)};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,d=s===void 0?!0:s,u=l.mergeProps,m=u===void 0?!1:u,p=i(e.originalValue),h=i(e.value);return p===void 0&&h===void 0?void 0:me(h)?h:me(p)?p:d||!d&&h?m?this._mergeProps(m,p,h):O(O({},p),h):h}return i(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,O(O({},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]:{},a=r.mergeProps(this.$_attrsWithoutPT,this.ptm(n,o));return a?.hasOwnProperty("id")&&((e=a.id)!==null&&e!==void 0||(a.id=this.$id)),a},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,O({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,O(O({},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 a=this._getOptionValue(this.$style.inlineStyles,e,O(O({},this.$params),o)),i=this._getOptionValue(Br.inlineStyles,e,O(O({},this.$params),o));return[i,a]}}},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 ee(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,O({},n.$params))||ee(o,O({},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 a=Ut(o,1),i=a[0];return n?.includes(i)}))},$theme:function(){var e;return(e=this.$primevueConfig)===null||e===void 0?void 0:e.theme},$style:function(){return O(O({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=Ut(e,1),o=n[0];return o?.startsWith("pt:")}).reduce(function(e,n){var o=Ut(n,2),a=o[0],i=o[1],c=a.split(":"),l=Gs(c),s=l.slice(1);return s?.reduce(function(d,u,m,p){return!d[u]&&(d[u]=m===p.length-1?i:{}),d[u]},e),e},{})},$_attrsWithoutPT:function(){return Object.entries(this.$attrs||{}).filter(function(e){var n=Ut(e,1),o=n[0];return!(o!=null&&o.startsWith("pt:"))}).reduce(function(e,n){var o=Ut(n,2),a=o[0],i=o[1];return e[a]=i,e},{})}}},Js=`
|
|
146
|
-
.p-icon {
|
|
147
|
-
display: inline-block;
|
|
148
|
-
vertical-align: baseline;
|
|
149
|
-
}
|
|
150
|
-
|
|
151
|
-
.p-icon-spin {
|
|
152
|
-
-webkit-animation: p-icon-spin 2s infinite linear;
|
|
153
|
-
animation: p-icon-spin 2s infinite linear;
|
|
154
|
-
}
|
|
155
|
-
|
|
156
|
-
@-webkit-keyframes p-icon-spin {
|
|
157
|
-
0% {
|
|
158
|
-
-webkit-transform: rotate(0deg);
|
|
159
|
-
transform: rotate(0deg);
|
|
160
|
-
}
|
|
161
|
-
100% {
|
|
162
|
-
-webkit-transform: rotate(359deg);
|
|
163
|
-
transform: rotate(359deg);
|
|
164
|
-
}
|
|
165
|
-
}
|
|
166
|
-
|
|
167
|
-
@keyframes p-icon-spin {
|
|
168
|
-
0% {
|
|
169
|
-
-webkit-transform: rotate(0deg);
|
|
170
|
-
transform: rotate(0deg);
|
|
171
|
-
}
|
|
172
|
-
100% {
|
|
173
|
-
-webkit-transform: rotate(359deg);
|
|
174
|
-
transform: rotate(359deg);
|
|
175
|
-
}
|
|
176
|
-
}
|
|
177
|
-
`,Qs=Z.extend({name:"baseicon",css:Js});function Kt(t){"@babel/helpers - typeof";return Kt=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},Kt(t)}function Vr(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);e&&(o=o.filter(function(a){return Object.getOwnPropertyDescriptor(t,a).enumerable})),n.push.apply(n,o)}return n}function Rr(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?Vr(Object(n),!0).forEach(function(o){el(t,o,n[o])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Vr(Object(n)).forEach(function(o){Object.defineProperty(t,o,Object.getOwnPropertyDescriptor(n,o))})}return t}function el(t,e,n){return(e=tl(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function tl(t){var e=nl(t,"string");return Kt(e)=="symbol"?e:e+""}function nl(t,e){if(Kt(t)!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var o=n.call(t,e);if(Kt(o)!="object")return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}var jr={name:"BaseIcon",extends:kn,props:{label:{type:String,default:void 0},spin:{type:Boolean,default:!1}},style:Qs,provide:function(){return{$pcIcon:this,$parentInstance:this}},methods:{pti:function(){var e=Ke(this.label);return Rr(Rr({},!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})}}},so={name:"ChevronDownIcon",extends:jr};function ol(t){return sl(t)||il(t)||al(t)||rl()}function rl(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
178
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function al(t,e){if(t){if(typeof t=="string")return lo(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)?lo(t,e):void 0}}function il(t){if(typeof Symbol<"u"&&t[Symbol.iterator]!=null||t["@@iterator"]!=null)return Array.from(t)}function sl(t){if(Array.isArray(t))return lo(t)}function lo(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 ll(t,e,n,o,a,i){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()),ol(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)}so.render=ll;var co={name:"ChevronRightIcon",extends:jr};function cl(t){return fl(t)||ml(t)||ul(t)||dl()}function dl(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
179
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function ul(t,e){if(t){if(typeof t=="string")return uo(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)?uo(t,e):void 0}}function ml(t){if(typeof Symbol<"u"&&t[Symbol.iterator]!=null||t["@@iterator"]!=null)return Array.from(t)}function fl(t){if(Array.isArray(t))return uo(t)}function uo(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 pl(t,e,n,o,a,i){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()),cl(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)}co.render=pl;var hl=`
|
|
180
|
-
.p-panelmenu {
|
|
181
|
-
display: flex;
|
|
182
|
-
flex-direction: column;
|
|
183
|
-
gap: dt('panelmenu.gap');
|
|
184
|
-
}
|
|
185
|
-
|
|
186
|
-
.p-panelmenu-panel {
|
|
187
|
-
background: dt('panelmenu.panel.background');
|
|
188
|
-
border-width: dt('panelmenu.panel.border.width');
|
|
189
|
-
border-style: solid;
|
|
190
|
-
border-color: dt('panelmenu.panel.border.color');
|
|
191
|
-
color: dt('panelmenu.panel.color');
|
|
192
|
-
border-radius: dt('panelmenu.panel.border.radius');
|
|
193
|
-
padding: dt('panelmenu.panel.padding');
|
|
194
|
-
}
|
|
195
|
-
|
|
196
|
-
.p-panelmenu-panel:first-child {
|
|
197
|
-
border-width: dt('panelmenu.panel.first.border.width');
|
|
198
|
-
border-start-start-radius: dt('panelmenu.panel.first.top.border.radius');
|
|
199
|
-
border-start-end-radius: dt('panelmenu.panel.first.top.border.radius');
|
|
200
|
-
}
|
|
201
|
-
|
|
202
|
-
.p-panelmenu-panel:last-child {
|
|
203
|
-
border-width: dt('panelmenu.panel.last.border.width');
|
|
204
|
-
border-end-start-radius: dt('panelmenu.panel.last.bottom.border.radius');
|
|
205
|
-
border-end-end-radius: dt('panelmenu.panel.last.bottom.border.radius');
|
|
206
|
-
}
|
|
207
|
-
|
|
208
|
-
.p-panelmenu-header {
|
|
209
|
-
outline: 0 none;
|
|
210
|
-
}
|
|
211
|
-
|
|
212
|
-
.p-panelmenu-header-content {
|
|
213
|
-
border-radius: dt('panelmenu.item.border.radius');
|
|
214
|
-
transition:
|
|
215
|
-
background dt('panelmenu.transition.duration'),
|
|
216
|
-
color dt('panelmenu.transition.duration'),
|
|
217
|
-
outline-color dt('panelmenu.transition.duration'),
|
|
218
|
-
box-shadow dt('panelmenu.transition.duration');
|
|
219
|
-
outline-color: transparent;
|
|
220
|
-
color: dt('panelmenu.item.color');
|
|
221
|
-
}
|
|
222
|
-
|
|
223
|
-
.p-panelmenu-header-link {
|
|
224
|
-
display: flex;
|
|
225
|
-
gap: dt('panelmenu.item.gap');
|
|
226
|
-
padding: dt('panelmenu.item.padding');
|
|
227
|
-
align-items: center;
|
|
228
|
-
user-select: none;
|
|
229
|
-
cursor: pointer;
|
|
230
|
-
position: relative;
|
|
231
|
-
text-decoration: none;
|
|
232
|
-
color: inherit;
|
|
233
|
-
}
|
|
234
|
-
|
|
235
|
-
.p-panelmenu-header-icon,
|
|
236
|
-
.p-panelmenu-item-icon {
|
|
237
|
-
color: dt('panelmenu.item.icon.color');
|
|
238
|
-
}
|
|
239
|
-
|
|
240
|
-
.p-panelmenu-submenu-icon {
|
|
241
|
-
color: dt('panelmenu.submenu.icon.color');
|
|
242
|
-
}
|
|
243
|
-
|
|
244
|
-
.p-panelmenu-submenu-icon:dir(rtl) {
|
|
245
|
-
transform: rotate(180deg);
|
|
246
|
-
}
|
|
247
|
-
|
|
248
|
-
.p-panelmenu-header:not(.p-disabled):focus-visible .p-panelmenu-header-content {
|
|
249
|
-
background: dt('panelmenu.item.focus.background');
|
|
250
|
-
color: dt('panelmenu.item.focus.color');
|
|
251
|
-
}
|
|
252
|
-
|
|
253
|
-
.p-panelmenu-header:not(.p-disabled):focus-visible .p-panelmenu-header-content .p-panelmenu-header-icon {
|
|
254
|
-
color: dt('panelmenu.item.icon.focus.color');
|
|
255
|
-
}
|
|
256
|
-
|
|
257
|
-
.p-panelmenu-header:not(.p-disabled):focus-visible .p-panelmenu-header-content .p-panelmenu-submenu-icon {
|
|
258
|
-
color: dt('panelmenu.submenu.icon.focus.color');
|
|
259
|
-
}
|
|
260
|
-
|
|
261
|
-
.p-panelmenu-header:not(.p-disabled) .p-panelmenu-header-content:hover {
|
|
262
|
-
background: dt('panelmenu.item.focus.background');
|
|
263
|
-
color: dt('panelmenu.item.focus.color');
|
|
264
|
-
}
|
|
265
|
-
|
|
266
|
-
.p-panelmenu-header:not(.p-disabled) .p-panelmenu-header-content:hover .p-panelmenu-header-icon {
|
|
267
|
-
color: dt('panelmenu.item.icon.focus.color');
|
|
268
|
-
}
|
|
269
|
-
|
|
270
|
-
.p-panelmenu-header:not(.p-disabled) .p-panelmenu-header-content:hover .p-panelmenu-submenu-icon {
|
|
271
|
-
color: dt('panelmenu.submenu.icon.focus.color');
|
|
272
|
-
}
|
|
273
|
-
|
|
274
|
-
.p-panelmenu-submenu {
|
|
275
|
-
margin: 0;
|
|
276
|
-
padding: 0 0 0 dt('panelmenu.submenu.indent');
|
|
277
|
-
outline: 0;
|
|
278
|
-
list-style: none;
|
|
279
|
-
}
|
|
280
|
-
|
|
281
|
-
.p-panelmenu-submenu:dir(rtl) {
|
|
282
|
-
padding: 0 dt('panelmenu.submenu.indent') 0 0;
|
|
283
|
-
}
|
|
284
|
-
|
|
285
|
-
.p-panelmenu-item-link {
|
|
286
|
-
display: flex;
|
|
287
|
-
gap: dt('panelmenu.item.gap');
|
|
288
|
-
padding: dt('panelmenu.item.padding');
|
|
289
|
-
align-items: center;
|
|
290
|
-
user-select: none;
|
|
291
|
-
cursor: pointer;
|
|
292
|
-
text-decoration: none;
|
|
293
|
-
color: inherit;
|
|
294
|
-
position: relative;
|
|
295
|
-
overflow: hidden;
|
|
296
|
-
}
|
|
297
|
-
|
|
298
|
-
.p-panelmenu-item-label {
|
|
299
|
-
line-height: 1;
|
|
300
|
-
}
|
|
301
|
-
|
|
302
|
-
.p-panelmenu-item-content {
|
|
303
|
-
border-radius: dt('panelmenu.item.border.radius');
|
|
304
|
-
transition:
|
|
305
|
-
background dt('panelmenu.transition.duration'),
|
|
306
|
-
color dt('panelmenu.transition.duration'),
|
|
307
|
-
outline-color dt('panelmenu.transition.duration'),
|
|
308
|
-
box-shadow dt('panelmenu.transition.duration');
|
|
309
|
-
color: dt('panelmenu.item.color');
|
|
310
|
-
outline-color: transparent;
|
|
311
|
-
}
|
|
312
|
-
|
|
313
|
-
.p-panelmenu-item.p-focus > .p-panelmenu-item-content {
|
|
314
|
-
background: dt('panelmenu.item.focus.background');
|
|
315
|
-
color: dt('panelmenu.item.focus.color');
|
|
316
|
-
}
|
|
317
|
-
|
|
318
|
-
.p-panelmenu-item.p-focus > .p-panelmenu-item-content .p-panelmenu-item-icon {
|
|
319
|
-
color: dt('panelmenu.item.focus.color');
|
|
320
|
-
}
|
|
321
|
-
|
|
322
|
-
.p-panelmenu-item.p-focus > .p-panelmenu-item-content .p-panelmenu-submenu-icon {
|
|
323
|
-
color: dt('panelmenu.submenu.icon.focus.color');
|
|
324
|
-
}
|
|
325
|
-
|
|
326
|
-
.p-panelmenu-item:not(.p-disabled) > .p-panelmenu-item-content:hover {
|
|
327
|
-
background: dt('panelmenu.item.focus.background');
|
|
328
|
-
color: dt('panelmenu.item.focus.color');
|
|
329
|
-
}
|
|
330
|
-
|
|
331
|
-
.p-panelmenu-item:not(.p-disabled) > .p-panelmenu-item-content:hover .p-panelmenu-item-icon {
|
|
332
|
-
color: dt('panelmenu.item.icon.focus.color');
|
|
333
|
-
}
|
|
334
|
-
|
|
335
|
-
.p-panelmenu-item:not(.p-disabled) > .p-panelmenu-item-content:hover .p-panelmenu-submenu-icon {
|
|
336
|
-
color: dt('panelmenu.submenu.icon.focus.color');
|
|
337
|
-
}
|
|
338
|
-
`,gl={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"},bl=Z.extend({name:"panelmenu",style:hl,classes:gl}),Cn=fr();function Gt(t){"@babel/helpers - typeof";return Gt=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},Gt(t)}function Hr(t,e){return kl(t)||yl(t,e)||vl(t,e)||wl()}function wl(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
339
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function vl(t,e){if(t){if(typeof t=="string")return zr(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)?zr(t,e):void 0}}function zr(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 yl(t,e){var n=t==null?null:typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(n!=null){var o,a,i,c,l=[],s=!0,d=!1;try{if(i=(n=n.call(t)).next,e!==0)for(;!(s=(o=i.call(n)).done)&&(l.push(o.value),l.length!==e);s=!0);}catch(u){d=!0,a=u}finally{try{if(!s&&n.return!=null&&(c=n.return(),Object(c)!==c))return}finally{if(d)throw a}}return l}}function kl(t){if(Array.isArray(t))return t}function Fr(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);e&&(o=o.filter(function(a){return Object.getOwnPropertyDescriptor(t,a).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?Fr(Object(n),!0).forEach(function(o){mo(t,o,n[o])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Fr(Object(n)).forEach(function(o){Object.defineProperty(t,o,Object.getOwnPropertyDescriptor(n,o))})}return t}function mo(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=Sl(t,"string");return Gt(e)=="symbol"?e:e+""}function Sl(t,e){if(Gt(t)!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var o=n.call(t,e);if(Gt(o)!="object")return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}var $={_getMeta:function(){return[Ge(arguments.length<=0?void 0:arguments[0])||arguments.length<=0?void 0:arguments[0],ee(Ge(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,a,i;return(o=(e==null||(a=e.instance)===null||a===void 0?void 0:a.$primevue)||(n==null||(i=n.ctx)===null||i===void 0||(i=i.appContext)===null||i===void 0||(i=i.config)===null||i===void 0||(i=i.globalProperties)===null||i===void 0?void 0:i.$primevue))===null||o===void 0?void 0:o.config},_getOptionValue:oo,_getPTValue:function(){var e,n,o=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},i=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 S=$._getOptionValue.apply($,arguments);return me(S)||ur(S)?{class:S}:S},d=((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)||{},u=d.mergeSections,m=u===void 0?!0:u,p=d.mergeProps,h=p===void 0?!1:p,v=l?$._useDefaultPT(o,o.defaultPT(),s,i,c):void 0,g=$._usePT(o,$._getPT(a,o.$name),s,i,N(N({},c),{},{global:v||{}})),y=$._getPTDatasets(o,i);return m||!m&&g?h?$._mergeProps(o,h,v,g,y):N(N(N({},v),g),y):N(N({},g),y)},_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 N(N({},n==="root"&&mo({},"".concat(o,"name"),Pe(e.$name))),{},mo({},"".concat(o,"section"),Pe(n)))},_getPT:function(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"",o=arguments.length>2?arguments[2]:void 0,a=function(c){var l,s=o?o(c):c,d=Pe(n);return(l=s?.[d])!==null&&l!==void 0?l:s};return e&&Object.hasOwn(e,"_usept")?{_usept:e._usept,originalValue:a(e.originalValue),value:a(e.value)}:a(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,a=arguments.length>3?arguments[3]:void 0,i=arguments.length>4?arguments[4]:void 0,c=function(y){return o(y,a,i)};if(n&&Object.hasOwn(n,"_usept")){var l,s=n._usept||((l=e.$primevueConfig)===null||l===void 0?void 0:l.ptOptions)||{},d=s.mergeSections,u=d===void 0?!0:d,m=s.mergeProps,p=m===void 0?!1:m,h=c(n.originalValue),v=c(n.value);return h===void 0&&v===void 0?void 0:me(v)?v:me(h)?h:u||!u&&v?p?$._mergeProps(e,p,h,v):N(N({},h),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,a=arguments.length>3?arguments[3]:void 0,i=arguments.length>4?arguments[4]:void 0;return $._usePT(e,n,o,a,i)},_loadStyles:function(){var e,n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},o=arguments.length>1?arguments[1]:void 0,a=arguments.length>2?arguments[2]:void 0,i=$._getConfig(o,a),c={nonce:i==null||(e=i.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]:{},a=arguments.length>1?arguments[1]:void 0;if(!qe.isStyleNameLoaded((e=o.$style)===null||e===void 0?void 0:e.name)&&(n=o.$style)!==null&&n!==void 0&&n.name){var i;Z.loadCSS(a),(i=o.$style)===null||i===void 0||i.loadCSS(a),qe.setLoadedStyleName(o.$style.name)}},_loadThemeStyles:function(){var e,n,o,a=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},i=arguments.length>1?arguments[1]:void 0;if(!(a!=null&&a.isUnstyled()||(a==null||(e=a.theme)===null||e===void 0?void 0:e.call(a))==="none")){if(!H.isStyleNameLoaded("common")){var c,l,s=((c=a.$style)===null||c===void 0||(l=c.getCommonTheme)===null||l===void 0?void 0:l.call(c))||{},d=s.primitive,u=s.semantic,m=s.global,p=s.style;Z.load(d?.css,N({name:"primitive-variables"},i)),Z.load(u?.css,N({name:"semantic-variables"},i)),Z.load(m?.css,N({name:"global-variables"},i)),Z.loadStyle(N({name:"global-style"},i),p),H.setLoadedStyleName("common")}if(!H.isStyleNameLoaded((n=a.$style)===null||n===void 0?void 0:n.name)&&(o=a.$style)!==null&&o!==void 0&&o.name){var h,v,g,y,w=((h=a.$style)===null||h===void 0||(v=h.getDirectiveTheme)===null||v===void 0?void 0:v.call(h))||{},S=w.css,P=w.style;(g=a.$style)===null||g===void 0||g.load(S,N({name:"".concat(a.$style.name,"-variables")},i)),(y=a.$style)===null||y===void 0||y.loadStyle(N({name:"".concat(a.$style.name,"-style")},i),P),H.setLoadedStyleName(a.$style.name)}if(!H.isStyleNameLoaded("layer-order")){var k,E,U=(k=a.$style)===null||k===void 0||(E=k.getLayerOrderThemeCSS)===null||E===void 0?void 0:E.call(k);Z.load(U,N({name:"layer-order",first:!0},i)),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 a,i,c,l=((a=e.$style)===null||a===void 0||(i=a.getPresetTheme)===null||i===void 0?void 0:i.call(a,o,"[".concat(e.$attrSelector,"]")))||{},s=l.css,d=(c=e.$style)===null||c===void 0?void 0:c.load(s,N({name:"".concat(e.$attrSelector,"-").concat(e.$style.name)},n));e.scopedStyleEl=d.el}},_themeChangeListener:function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:function(){};qe.clearLoadedStyleNames(),ae.on("theme:change",e)},_removeThemeListeners:function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};ae.off("theme:change",e.$loadStyles),e.$loadStyles=void 0},_hook:function(e,n,o,a,i,c){var l,s,d="on".concat(bs(n)),u=$._getConfig(a,i),m=o?.$instance,p=$._usePT(m,$._getPT(a==null||(l=a.value)===null||l===void 0?void 0:l.pt,e),$._getOptionValue,"hooks.".concat(d)),h=$._useDefaultPT(m,u==null||(s=u.pt)===null||s===void 0||(s=s.directives)===null||s===void 0?void 0:s[e],$._getOptionValue,"hooks.".concat(d)),v={el:o,binding:a,vnode:i,prevVnode:c};p?.(m,v),h?.(m,v)},_mergeProps:function(){for(var e=arguments.length>1?arguments[1]:void 0,n=arguments.length,o=new Array(n>2?n-2:0),a=2;a<n;a++)o[a-2]=arguments[a];return no(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,d,u,m){var p,h,v,g;s._$instances=s._$instances||{};var y=$._getConfig(d,u),w=s._$instances[e]||{},S=Ke(w)?N(N({},n),n?.methods):{};s._$instances[e]=N(N({},w),{},{$name:e,$host:s,$binding:d,$modifiers:d?.modifiers,$value:d?.value,$el:w.$el||s||void 0,$style:N({classes:void 0,inlineStyles:void 0,load:function(){},loadCSS:function(){},loadStyle:function(){}},n?.style),$primevueConfig:y,$attrSelector:(p=s.$pd)===null||p===void 0||(p=p[e])===null||p===void 0?void 0:p.attrSelector,defaultPT:function(){return $._getPT(y?.pt,void 0,function(k){var E;return k==null||(E=k.directives)===null||E===void 0?void 0:E[e]})},isUnstyled:function(){var k,E;return((k=s._$instances[e])===null||k===void 0||(k=k.$binding)===null||k===void 0||(k=k.value)===null||k===void 0?void 0:k.unstyled)!==void 0?(E=s._$instances[e])===null||E===void 0||(E=E.$binding)===null||E===void 0||(E=E.value)===null||E===void 0?void 0:E.unstyled:y?.unstyled},theme:function(){var k;return(k=s._$instances[e])===null||k===void 0||(k=k.$primevueConfig)===null||k===void 0?void 0:k.theme},preset:function(){var k;return(k=s._$instances[e])===null||k===void 0||(k=k.$binding)===null||k===void 0||(k=k.value)===null||k===void 0?void 0:k.dt},ptm:function(){var k,E=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"",U=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return $._getPTValue(s._$instances[e],(k=s._$instances[e])===null||k===void 0||(k=k.$binding)===null||k===void 0||(k=k.value)===null||k===void 0?void 0:k.pt,E,N({},U))},ptmo:function(){var k=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},E=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"",U=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return $._getPTValue(s._$instances[e],k,E,U,!1)},cx:function(){var k,E,U=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"",J=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return(k=s._$instances[e])!==null&&k!==void 0&&k.isUnstyled()?void 0:$._getOptionValue((E=s._$instances[e])===null||E===void 0||(E=E.$style)===null||E===void 0?void 0:E.classes,U,N({},J))},sx:function(){var k,E=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"",U=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0,J=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return U?$._getOptionValue((k=s._$instances[e])===null||k===void 0||(k=k.$style)===null||k===void 0?void 0:k.inlineStyles,E,N({},J)):void 0}},S),s.$instance=s._$instances[e],(h=(v=s.$instance)[l])===null||h===void 0||h.call(v,s,d,u,m),s["$".concat(e)]=s.$instance,$._hook(e,l,s,d,u,m),s.$pd||(s.$pd={}),s.$pd[e]=N(N({},(g=s.$pd)===null||g===void 0?void 0:g[e]),{},{name:e,instance:s._$instances[e]})},a=function(l){var s,d,u,m=l._$instances[e],p=m?.watch,h=function(y){var w,S=y.newValue,P=y.oldValue;return p==null||(w=p.config)===null||w===void 0?void 0:w.call(m,S,P)},v=function(y){var w,S=y.newValue,P=y.oldValue;return p==null||(w=p["config.ripple"])===null||w===void 0?void 0:w.call(m,S,P)};m.$watchersCallback={config:h,"config.ripple":v},p==null||(s=p.config)===null||s===void 0||s.call(m,m?.$primevueConfig),Cn.on("config:change",h),p==null||(d=p["config.ripple"])===null||d===void 0||d.call(m,m==null||(u=m.$primevueConfig)===null||u===void 0?void 0:u.ripple),Cn.on("config:ripple:change",v)},i=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,d,u){l.$pd||(l.$pd={}),l.$pd[e]={name:e,attrSelector:ws("pd")},o("created",l,s,d,u)},beforeMount:function(l,s,d,u){var m;$._loadStyles((m=l.$pd[e])===null||m===void 0?void 0:m.instance,s,d),o("beforeMount",l,s,d,u),a(l)},mounted:function(l,s,d,u){var m;$._loadStyles((m=l.$pd[e])===null||m===void 0?void 0:m.instance,s,d),o("mounted",l,s,d,u)},beforeUpdate:function(l,s,d,u){o("beforeUpdate",l,s,d,u)},updated:function(l,s,d,u){var m;$._loadStyles((m=l.$pd[e])===null||m===void 0?void 0:m.instance,s,d),o("updated",l,s,d,u)},beforeUnmount:function(l,s,d,u){var m;i(l),$._removeThemeListeners((m=l.$pd[e])===null||m===void 0?void 0:m.instance),o("beforeUnmount",l,s,d,u)},unmounted:function(l,s,d,u){var m;(m=l.$pd[e])===null||m===void 0||(m=m.instance)===null||m===void 0||(m=m.scopedStyleEl)===null||m===void 0||(m=m.value)===null||m===void 0||m.remove(),o("unmounted",l,s,d,u)}}},extend:function(){var e=$._getMeta.apply($,arguments),n=Hr(e,2),o=n[0],a=n[1];return N({extend:function(){var c=$._getMeta.apply($,arguments),l=Hr(c,2),s=l[0],d=l[1];return $.extend(s,N(N(N({},a),a?.methods),d))}},$._extend(o,a))}},_l=`
|
|
340
|
-
.p-ink {
|
|
341
|
-
display: block;
|
|
342
|
-
position: absolute;
|
|
343
|
-
background: dt('ripple.background');
|
|
344
|
-
border-radius: 100%;
|
|
345
|
-
transform: scale(0);
|
|
346
|
-
pointer-events: none;
|
|
347
|
-
}
|
|
348
|
-
|
|
349
|
-
.p-ink-active {
|
|
350
|
-
animation: ripple 0.4s linear;
|
|
351
|
-
}
|
|
352
|
-
|
|
353
|
-
@keyframes ripple {
|
|
354
|
-
100% {
|
|
355
|
-
opacity: 0;
|
|
356
|
-
transform: scale(2.5);
|
|
357
|
-
}
|
|
358
|
-
}
|
|
359
|
-
`,El={root:"p-ink"},xl=Z.extend({name:"ripple-directive",style:_l,classes:El}),Tl=$.extend({style:xl});function qt(t){"@babel/helpers - typeof";return qt=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},qt(t)}function Il(t){return Bl(t)||$l(t)||Pl(t)||Al()}function Al(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
360
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Pl(t,e){if(t){if(typeof t=="string")return fo(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)?fo(t,e):void 0}}function $l(t){if(typeof Symbol<"u"&&t[Symbol.iterator]!=null||t["@@iterator"]!=null)return Array.from(t)}function Bl(t){if(Array.isArray(t))return fo(t)}function fo(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 Ur(t,e,n){return(e=Ll(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function Ll(t){var e=Ol(t,"string");return qt(e)=="symbol"?e:e+""}function Ol(t,e){if(qt(t)!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var o=n.call(t,e);if(qt(o)!="object")return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}var Nl=Tl.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=cs("span",Ur(Ur({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,a=this.getInk(o);if(!(!a||getComputedStyle(a,null).display==="none")){if(!this.isUnstyled()&&eo(a,"p-ink-active"),a.setAttribute("data-p-ink-active","false"),!sr(a)&&!lr(a)){var i=Math.max(is(o),us(o));a.style.height=i+"px",a.style.width=i+"px"}var c=ds(o),l=e.pageX-c.left+document.body.scrollTop-lr(a)/2,s=e.pageY-c.top+document.body.scrollLeft-sr(a)/2;a.style.top=s+"px",a.style.left=l+"px",!this.isUnstyled()&&as(a,"p-ink-active"),a.setAttribute("data-p-ink-active","true"),this.timeout=setTimeout(function(){a&&(!n.isUnstyled()&&eo(a,"p-ink-active"),a.setAttribute("data-p-ink-active","false"))},401)}},onAnimationEnd:function(e){this.timeout&&clearTimeout(this.timeout),!this.isUnstyled()&&eo(e.currentTarget,"p-ink-active"),e.currentTarget.setAttribute("data-p-ink-active","false")},getInk:function(e){return e&&e.children?Il(e.children).find(function(n){return Vt(n,"data-pc-name")==="ripple"}):void 0}}}),Ml={name:"BasePanelMenu",extends:kn,props:{model:{type:Array,default:null},expandedKeys:{type:Object,default:null},multiple:{type:Boolean,default:!1},tabindex:{type:Number,default:0}},style:bl,provide:function(){return{$pcPanelMenu:this,$parentInstance:this}}},Wr={name:"PanelMenuSub",hostName:"PanelMenu",extends:kn,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?ee(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 B(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:co,ChevronDownIcon:so},directives:{ripple:Nl}},Dl=["tabindex"],Vl=["id","aria-label","aria-expanded","aria-level","aria-setsize","aria-posinset","data-p-focused","data-p-disabled"],Rl=["onClick","onMousemove"],jl=["href","target"];function Hl(t,e,n,o,a,i){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,d){return r.openBlock(),r.createElementBlock(r.Fragment,{key:i.getItemKey(s)},[i.isItemVisible(s)&&!i.getItemProp(s,"separator")?(r.openBlock(),r.createElementBlock("li",r.mergeProps({key:0,id:i.getItemId(s),class:[t.cx("item",{processedItem:s}),i.getItemProp(s,"class")],style:i.getItemProp(s,"style"),role:"treeitem","aria-label":i.getItemLabel(s),"aria-expanded":i.isItemGroup(s)?i.isItemActive(s):void 0,"aria-level":n.level+1,"aria-setsize":i.getAriaSetSize(),"aria-posinset":i.getAriaPosInset(d)},{ref_for:!0},i.getPTOptions("item",s,d),{"data-p-focused":i.isItemFocused(s),"data-p-disabled":i.isItemDisabled(s)}),[r.createElementVNode("div",r.mergeProps({class:t.cx("itemContent"),onClick:function(m){return i.onItemClick(m,s)},onMousemove:function(m){return i.onItemMouseMove(m,s)}},{ref_for:!0},i.getPTOptions("itemContent",s,d)),[n.templates.item?(r.openBlock(),r.createBlock(r.resolveDynamicComponent(n.templates.item),{key:1,item:s.item,root:!1,active:i.isItemActive(s),hasSubmenu:i.isItemGroup(s),label:i.getItemLabel(s),props:i.getMenuItemProps(s,d)},null,8,["item","active","hasSubmenu","label","props"])):r.withDirectives((r.openBlock(),r.createElementBlock("a",r.mergeProps({key:0,href:i.getItemProp(s,"url"),class:t.cx("itemLink"),target:i.getItemProp(s,"target"),tabindex:"-1"},{ref_for:!0},i.getPTOptions("itemLink",s,d)),[i.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:i.isItemActive(s)},{ref_for:!0},i.getPTOptions("submenuIcon",s,d)),null,16,["class","active"])):(r.openBlock(),r.createBlock(r.resolveDynamicComponent(i.isItemActive(s)?"ChevronDownIcon":"ChevronRightIcon"),r.mergeProps({key:1,class:t.cx("submenuIcon")},{ref_for:!0},i.getPTOptions("submenuIcon",s,d)),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"])):i.getItemProp(s,"icon")?(r.openBlock(),r.createElementBlock("span",r.mergeProps({key:2,class:[t.cx("itemIcon"),i.getItemProp(s,"icon")]},{ref_for:!0},i.getPTOptions("itemIcon",s,d)),null,16)):r.createCommentVNode("",!0),r.createElementVNode("span",r.mergeProps({class:t.cx("itemLabel")},{ref_for:!0},i.getPTOptions("itemLabel",s,d)),r.toDisplayString(i.getItemLabel(s)),17)],16,jl)),[[l]])],16,Rl),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")),[i.isItemVisible(s)&&i.isItemGroup(s)?(r.openBlock(),r.createBlock(c,r.mergeProps({key:0,id:i.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:i.onItemToggle,onItemMousemove:e[0]||(e[0]=function(u){return t.$emit("item-mousemove",u)}),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,i.isItemActive(s)]])]}),_:2},1040)],16,Vl)):r.createCommentVNode("",!0),i.isItemVisible(s)&&i.getItemProp(s,"separator")?(r.openBlock(),r.createElementBlock("li",r.mergeProps({key:1,style:i.getItemProp(s,"style"),class:[t.cx("separator"),i.getItemProp(s,"class")],role:"separator"},{ref_for:!0},t.ptm("separator")),null,16)):r.createCommentVNode("",!0)],64)}),128))],10,Dl)}Wr.render=Hl;function zl(t,e){return Kl(t)||Wl(t,e)||Ul(t,e)||Fl()}function Fl(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
361
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Ul(t,e){if(t){if(typeof t=="string")return Kr(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)?Kr(t,e):void 0}}function Kr(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 Wl(t,e){var n=t==null?null:typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(n!=null){var o,a,i,c,l=[],s=!0,d=!1;try{if(i=(n=n.call(t)).next,e!==0)for(;!(s=(o=i.call(n)).done)&&(l.push(o.value),l.length!==e);s=!0);}catch(u){d=!0,a=u}finally{try{if(!s&&n.return!=null&&(c=n.return(),Object(c)!==c))return}finally{if(d)throw a}}return l}}function Kl(t){if(Array.isArray(t))return t}var Gr={name:"PanelMenuList",hostName:"PanelMenu",extends:kn,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?ee(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 B(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&&gs(e.key)&&this.searchItems(e,e.key);break}},onArrowDownKey:function(e){var n=B(this.focusedItem)?this.findNextItem(this.focusedItem):this.findFirstItem();this.changeFocusedItem({originalEvent:e,processedItem:n,focusOnNext:!0}),e.preventDefault()},onArrowUpKey:function(e){var n=B(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(B(this.focusedItem)){var o=this.activeItemPath.some(function(a){return a.key===n.focusedItem.key});o?this.activeItemPath=this.activeItemPath.filter(function(a){return a.key!==n.focusedItem.key}):this.focusedItem=B(this.focusedItem.parent)?this.focusedItem.parent:this.focusedItem,e.preventDefault()}},onArrowRightKey:function(e){var n=this;if(B(this.focusedItem)){var o=this.isItemGroup(this.focusedItem);if(o){var a=this.activeItemPath.some(function(i){return i.key===n.focusedItem.key});a?this.onArrowDownKey(e):(this.activeItemPath=this.activeItemPath.filter(function(i){return i.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(B(this.focusedItem)){var n=_e(this.$el,'li[id="'.concat("".concat(this.focusedItemId),'"]')),o=n&&(_e(n,'[data-pc-section="itemlink"]')||_e(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(a){return a.parentKey!==n.parentKey}),o&&this.activeItemPath.push(n)),this.focusedItem=n,Dt(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 dr(this.visibleItems,function(n){return e.isValidItem(n)})},findNextItem:function(e){var n=this,o=this.visibleItems.findIndex(function(i){return i.key===e.key}),a=o<this.visibleItems.length-1?this.visibleItems.slice(o+1).find(function(i){return n.isValidItem(i)}):void 0;return a||e},findPrevItem:function(e){var n=this,o=this.visibleItems.findIndex(function(i){return i.key===e.key}),a=o>0?dr(this.visibleItems.slice(0,o),function(i){return n.isValidItem(i)}):void 0;return a||e},searchItems:function(e,n){var o=this;this.searchValue=(this.searchValue||"")+n;var a=null,i=!1;if(B(this.focusedItem)){var c=this.visibleItems.findIndex(function(l){return l.key===o.focusedItem.key});a=this.visibleItems.slice(c).find(function(l){return o.isItemMatched(l)}),a=Ke(a)?this.visibleItems.slice(0,c).find(function(l){return o.isItemMatched(l)}):a}else a=this.visibleItems.find(function(l){return o.isItemMatched(l)});return B(a)&&(i=!0),Ke(a)&&Ke(this.focusedItem)&&(a=this.findFirstItem()),B(a)&&this.changeFocusedItem({originalEvent:e,processedItem:a,allowHeaderFocus:!1}),this.searchTimeout&&clearTimeout(this.searchTimeout),this.searchTimeout=setTimeout(function(){o.searchValue="",o.searchTimeout=null},500),i},changeFocusedItem:function(e){var n=e.originalEvent,o=e.processedItem,a=e.focusOnNext,i=e.selfCheck,c=e.allowHeaderFocus,l=c===void 0?!0:c;B(this.focusedItem)&&this.focusedItem.key!==o.key?(this.focusedItem=o,this.scrollInView()):l&&this.$emit("header-focus",{originalEvent:n,focusOnNext:a,selfCheck:i})},scrollInView:function(){var e=_e(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,a){var i=zl(a,2),c=i[0],l=i[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 a=0;a<n.length;a++){var i=n[a];if(this.getItemProp(i,"key")===e)return i;var c=this.findProcessedItemByItemKey(e,i.items,o+1);if(c)return c}},createProcessedItems:function(e){var n=this,o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:"",c=[];return e&&e.forEach(function(l,s){var d=(i!==""?i+"_":"")+s,u={item:l,index:s,level:o,key:d,parent:a,parentKey:i};u.items=n.createProcessedItems(l.items,o+1,u,d),c.push(u)}),c},flatItems:function(e){var n=this,o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[];return e&&e.forEach(function(a){n.isVisibleItem(a)&&(o.push(a),n.flatItems(a.items,o))}),o}},computed:{processedItems:function(){return this.createProcessedItems(this.items||[])},visibleItems:function(){return this.flatItems(this.processedItems)},focusedItemId:function(){return B(this.focusedItem)?"".concat(this.panelId,"_").concat(this.focusedItem.key):null}},components:{PanelMenuSub:Wr}};function Gl(t,e,n,o,a,i){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":a.focused?i.focusedItemId:void 0,panelId:n.panelId,focusedItemId:a.focused?i.focusedItemId:void 0,items:i.processedItems,templates:n.templates,activeItemPath:a.activeItemPath,onFocus:i.onFocus,onBlur:i.onBlur,onKeydown:i.onKeyDown,onItemToggle:i.onItemToggle,onItemMousemove:i.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"])}Gr.render=Gl;function Yt(t){"@babel/helpers - typeof";return Yt=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},Yt(t)}function qr(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);e&&(o=o.filter(function(a){return Object.getOwnPropertyDescriptor(t,a).enumerable})),n.push.apply(n,o)}return n}function ql(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?qr(Object(n),!0).forEach(function(o){Yl(t,o,n[o])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):qr(Object(n)).forEach(function(o){Object.defineProperty(t,o,Object.getOwnPropertyDescriptor(n,o))})}return t}function Yl(t,e,n){return(e=Xl(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function Xl(t){var e=Zl(t,"string");return Yt(e)=="symbol"?e:e+""}function Zl(t,e){if(Yt(t)!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var o=n.call(t,e);if(Yt(o)!="object")return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}var Yr={name:"PanelMenu",extends:Ml,inheritAttrs:!1,emits:["update:expandedKeys","panel-open","panel-close"],data:function(){return{activeItem:null,activeItems:[]}},methods:{getItemProp:function(e,n){return e?ee(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 ht(e,n)}):ht(e,this.activeItem)},isItemVisible:function(e){return this.getItemProp(e,"visible")!==!1},isItemDisabled:function(e){return this.getItemProp(e,"disabled")},isItemFocused:function(e){return ht(e,this.activeItem)},isItemGroup:function(e){return B(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),Dt(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=Vt(e.currentTarget,"data-p-active")===!0?_e(e.currentTarget.nextElementSibling,'[data-pc-section="rootlist"]'):null;n?Dt(n):this.updateFocusedHeader({originalEvent:e,focusOnNext:!0}),e.preventDefault()},onHeaderArrowUpKey:function(e){var n=this.findPrevHeader(e.currentTarget.parentElement)||this.findLastHeader(),o=Vt(n,"data-p-active")===!0?_e(n.nextElementSibling,'[data-pc-section="rootlist"]'):null;o?Dt(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=_e(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,a=_e(o,'[data-pc-section="header"]');return a?Vt(a,"data-p-disabled")?this.findNextHeader(a.parentElement):a:null},findPrevHeader:function(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,o=n?e:e.previousElementSibling,a=_e(o,'[data-pc-section="header"]');return a?Vt(a,"data-p-disabled")?this.findPrevHeader(a.parentElement):a: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,a=e.selfCheck,i=n.currentTarget.closest('[data-pc-section="panel"]'),c=a?_e(i,'[data-pc-section="header"]'):o?this.findNextHeader(i):this.findPrevHeader(i);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 a=this.isItemActive(n),i=a?"panel-close":"panel-open";this.activeItem=o?n:this.activeItem&&ht(n,this.activeItem)?null:n,this.multiple&&(this.activeItems.some(function(c){return ht(n,c)})?this.activeItems=this.activeItems.filter(function(c){return!ht(n,c)}):this.activeItems.push(n)),this.changeExpandedKeys({item:n,expanded:!a}),this.$emit(i,{originalEvent:e,item:n})}},changeExpandedKeys:function(e){var n=e.item,o=e.expanded,a=o===void 0?!1:o;if(this.expandedKeys){var i=ql({},this.expandedKeys);a?i[n.key]=!0:delete i[n.key],this.$emit("update:expandedKeys",i)}},changeFocusedHeader:function(e,n){n&&Dt(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:Gr,ChevronRightIcon:co,ChevronDownIcon:so}},Jl=["id"],Ql=["id","tabindex","aria-label","aria-expanded","aria-controls","aria-disabled","onClick","onKeydown","data-p-active","data-p-disabled"],ec=["href"],tc=["id","aria-labelledby"];function nc(t,e,n,o,a,i){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:i.getPanelKey(s)},[i.isItemVisible(l)?(r.openBlock(),r.createElementBlock("div",r.mergeProps({key:0,style:i.getItemProp(l,"style"),class:[t.cx("panel"),i.getItemProp(l,"class")]},{ref_for:!0},t.ptm("panel")),[r.createElementVNode("div",r.mergeProps({id:i.getHeaderId(s),class:[t.cx("header",{item:l}),i.getItemProp(l,"headerClass")],tabindex:i.isItemDisabled(l)?-1:t.tabindex,role:"button","aria-label":i.getItemLabel(l),"aria-expanded":i.isItemActive(l),"aria-controls":i.getContentId(s),"aria-disabled":i.isItemDisabled(l),onClick:function(u){return i.onHeaderClick(u,l)},onKeydown:function(u){return i.onHeaderKeyDown(u,l)}},{ref_for:!0},i.getPTOptions("header",l,s),{"data-p-active":i.isItemActive(l),"data-p-disabled":i.isItemDisabled(l)}),[r.createElementVNode("div",r.mergeProps({class:t.cx("headerContent")},{ref_for:!0},i.getPTOptions("headerContent",l,s)),[t.$slots.item?(r.openBlock(),r.createBlock(r.resolveDynamicComponent(t.$slots.item),{key:1,item:l,root:!0,active:i.isItemActive(l),hasSubmenu:i.isItemGroup(l),label:i.getItemLabel(l),props:i.getMenuItemProps(l,s)},null,8,["item","active","hasSubmenu","label","props"])):(r.openBlock(),r.createElementBlock("a",r.mergeProps({key:0,href:i.getItemProp(l,"url"),class:t.cx("headerLink"),tabindex:-1},{ref_for:!0},i.getPTOptions("headerLink",l,s)),[i.getItemProp(l,"items")?r.renderSlot(t.$slots,"submenuicon",{key:0,active:i.isItemActive(l)},function(){return[(r.openBlock(),r.createBlock(r.resolveDynamicComponent(i.isItemActive(l)?"ChevronDownIcon":"ChevronRightIcon"),r.mergeProps({class:t.cx("submenuIcon")},{ref_for:!0},i.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"),i.getItemProp(l,"icon")])},null,8,["item","class"])):i.getItemProp(l,"icon")?(r.openBlock(),r.createElementBlock("span",r.mergeProps({key:2,class:[t.cx("headerIcon"),i.getItemProp(l,"icon")]},{ref_for:!0},i.getPTOptions("headerIcon",l,s)),null,16)):r.createCommentVNode("",!0),r.createElementVNode("span",r.mergeProps({class:t.cx("headerLabel")},{ref_for:!0},i.getPTOptions("headerLabel",l,s)),r.toDisplayString(i.getItemLabel(l)),17)],16,ec))],16)],16,Ql),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:i.getContentId(s),class:t.cx("contentContainer"),role:"region","aria-labelledby":i.getHeaderId(s)},{ref_for:!0},t.ptm("contentContainer")),[i.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:i.getPanelId(s),items:i.getItemProp(l,"items"),templates:t.$slots,expandedKeys:t.expandedKeys,onItemToggle:i.changeExpandedKeys,onHeaderFocus:i.updateFocusedHeader,pt:t.pt,unstyled:t.unstyled},null,8,["panelId","items","templates","expandedKeys","onItemToggle","onHeaderFocus","pt","unstyled"])],16)):r.createCommentVNode("",!0)],16,tc),[[r.vShow,i.isItemActive(l)]])]}),_:2},1040)],16)):r.createCommentVNode("",!0)],64)}),128))],16,Jl)}Yr.render=nc;const oc={class:"panel-menu-wrapper select-none"},rc=["data-active","onClick"],ac={key:0,class:"material-symbols-outlined item-menu-icon-left"},ic=["textContent"],sc=["onClick"],lc={key:0,class:"material-symbols-outlined item-menu-icon-left"},cc=["textContent"],dc={key:2,class:r.normalizeClass(["item-menu"])},uc={key:0,class:"material-symbols-outlined item-menu-icon-left"},mc=["textContent"],fc=Ae(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)},a=l=>typeof l.label=="function"?l.label():l.label??"Item",i=(l,s,d)=>l.to?(l.exact=l.exact??!1,l.exact?d: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 d=r.resolveComponent("router-link");return r.openBlock(),r.createElementBlock("div",oc,[r.createVNode(r.unref(Yr),{model:c.value,unstyled:!0},{item:r.withCtx(({item:u,active:m})=>[u.to?(r.openBlock(),r.createBlock(d,{key:0,to:u.to,custom:""},{default:r.withCtx(({navigate:p,isExactActive:h,isActive:v})=>[r.createElementVNode("a",{class:r.normalizeClass(["item-menu",{disabled:u.disabled}]),"data-active":i(u,v,h),onClick:r.withModifiers(g=>n(u,p),["prevent"])},[u.icon?(r.openBlock(),r.createElementBlock("span",ac,r.toDisplayString(u.icon),1)):r.createCommentVNode("",!0),r.createElementVNode("span",{textContent:r.toDisplayString(a(u))},null,8,ic)],10,rc)]),_:2},1032,["to"])):typeof u.command=="function"?(r.openBlock(),r.createElementBlock("span",{key:1,class:r.normalizeClass(["item-menu",{disabled:u.disabled}]),onClick:r.withModifiers(p=>o(p,u),["stop"])},[u.icon?(r.openBlock(),r.createElementBlock("span",lc,r.toDisplayString(u.icon),1)):r.createCommentVNode("",!0),r.createElementVNode("span",{textContent:r.toDisplayString(a(u))},null,8,cc)],10,sc)):(r.openBlock(),r.createElementBlock("a",dc,[u.icon?(r.openBlock(),r.createElementBlock("span",uc,r.toDisplayString(u.icon),1)):r.createCommentVNode("",!0),r.createElementVNode("span",{textContent:r.toDisplayString(a(u))},null,8,mc),s[0]||(s[0]=r.createElementVNode("div",{class:"sep"},null,-1)),r.createElementVNode("span",{class:r.normalizeClass(["material-symbols-outlined arrow",{"--expand":m}])}," chevron_right ",2)]))]),_:1},8,["model"])])}}}),[["__scopeId","data-v-17765f50"]]);function po(t){let e=t instanceof HTMLElement?t:null;for(;e&&e.getBoundingClientRect;){const n=e.getBoundingClientRect();if(n.width>0&&n.height>0)return n;const o=e.children[0];if(!o||!(o instanceof HTMLElement))return null;e=o}return null}function pc(t){const e=r.ref(!1),n=r.ref(null),o=r.ref({top:"0px",left:"0px",zIndex:"0"}),a=r.ref(!1),i=r.ref(!1),c=m=>{!m||!(m instanceof HTMLElement)||(n.value=po(m),n.value&&(o.value.top=`${n.value.bottom+window.scrollY}px`,o.value.left=`${n.value.left+window.scrollX}px`,o.value.zIndex=`${hn()+1}`))},l=()=>{a.value=!1,i.value=!1,r.nextTick(()=>{const m=po(t.value);m&&(window.innerWidth<m.right&&(o.value.left=`${(n.value?.right??0)+window.scrollX}px`,a.value=!0),window.innerHeight<m.bottom&&(o.value.top=`${(n.value?.top??0)+window.scrollY}px`,i.value=!0))})},s=m=>{const p=m instanceof CustomEvent?m.detail.target:m.currentTarget??m.target;!p||!(p instanceof HTMLElement)||(n.value=po(p),n.value&&(c(p),e.value=!0,l()))},d=()=>{e.value&&(e.value=!1)},u=m=>{e.value&&t.value&&(m.target&&t.value.contains(m.target)||d())};return r.onMounted(()=>{document.addEventListener("click",u,!0),window.addEventListener("resize",d,!0)}),r.onBeforeUnmount(()=>{document.removeEventListener("click",u,!0),window.removeEventListener("resize",d,!0)}),{Show:s,Hide:d,visible:e,style:o,translateX:a,translateY:i}}const ho=r.defineComponent({__name:"Popover",emits:["onShow","onHide"],setup(t,{expose:e,emit:n}){const o=r.ref(null),{Show:a,Hide:i,visible:c,style:l,translateX:s,translateY:d}=pc(o),u=h=>{a(h)},m=()=>{i()},p=n;return e({Show:u,Hide:m}),r.watch(()=>c.value,h=>{p(h?"onShow":"onHide")}),(h,v)=>(r.openBlock(),r.createBlock(r.Teleport,{to:"body"},[r.unref(c)?(r.openBlock(),r.createElementBlock("div",{key:0,ref_key:"popoverRef",ref:o,class:r.normalizeClass({"sf-popover":!0,translateX:r.unref(s),translateY:r.unref(d)}),style:r.normalizeStyle({...r.unref(l),zIndex:+r.unref(l).zIndex+1}),role:"dialog","aria-modal":!0,"aria-label":"Janela de ajuda"},[r.createElementVNode("div",null,[r.renderSlot(h.$slots,"default")])],6)):r.createCommentVNode("",!0)]))}}),Sn=r.defineComponent({__name:"HelpButton",props:{title:{},tooltip:{},size:{},color:{},filled:{type:Boolean},icon:{}},emits:["onOpen"],setup(t,{emit:e}){const n=t,o=c=>{i.value?.Show(c)},a=e,i=r.ref();return(c,l)=>(r.openBlock(),r.createElementBlock(r.Fragment,null,[r.renderSlot(c.$slots,"anchor",r.normalizeProps(r.guardReactiveProps({Show:o})),()=>[r.createVNode(Se,{button:!0,icon:n.icon??"help",size:n.size??"sm",filled:n.filled,color:n.color??"text",tooltip:n.tooltip,onClick:o},null,8,["icon","size","filled","color","tooltip"])]),r.createVNode(ho,{ref_key:"popover",ref:i,onOnShow:l[0]||(l[0]=s=>a("onOpen"))},{default:r.withCtx(()=>[r.renderSlot(c.$slots,"default")]),_:3},512)],64))}}),hc=Ae(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 gc(t){return r.getCurrentScope()?(r.onScopeDispose(t),!0):!1}const bc=typeof window<"u"&&typeof document<"u";typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope;function wc(t){return Array.isArray(t)?t:[t]}function vc(t){return r.getCurrentInstance()}function yc(t,e=!0,n){vc()?r.onMounted(t,n):e?t():r.nextTick(t)}const Xr=bc?window:void 0;function bt(t){var e;const n=r.toValue(t);return(e=n?.$el)!=null?e:n}function kc(){const t=r.shallowRef(!1),e=r.getCurrentInstance();return e&&r.onMounted(()=>{t.value=!0},e),t}function Cc(t){const e=kc();return r.computed(()=>(e.value,!!t()))}function Zr(t,e,n={}){const{window:o=Xr,...a}=n;let i;const c=Cc(()=>o&&"ResizeObserver"in o),l=()=>{i&&(i.disconnect(),i=void 0)},s=r.computed(()=>{const m=r.toValue(t);return Array.isArray(m)?m.map(p=>bt(p)):[bt(m)]}),d=r.watch(s,m=>{if(l(),c.value&&o){i=new ResizeObserver(e);for(const p of m)p&&i.observe(p,a)}},{immediate:!0,flush:"post"}),u=()=>{l(),d()};return gc(u),{isSupported:c,stop:u}}function Sc(t,e={width:0,height:0},n={}){const{window:o=Xr,box:a="content-box"}=n,i=r.computed(()=>{var m,p;return(p=(m=bt(t))==null?void 0:m.namespaceURI)==null?void 0:p.includes("svg")}),c=r.shallowRef(e.width),l=r.shallowRef(e.height),{stop:s}=Zr(t,([m])=>{const p=a==="border-box"?m.borderBoxSize:a==="content-box"?m.contentBoxSize:m.devicePixelContentBoxSize;if(o&&i.value){const h=bt(t);if(h){const v=h.getBoundingClientRect();c.value=v.width,l.value=v.height}}else if(p){const h=wc(p);c.value=h.reduce((v,{inlineSize:g})=>v+g,0),l.value=h.reduce((v,{blockSize:g})=>v+g,0)}else c.value=m.contentRect.width,l.value=m.contentRect.height},n);yc(()=>{const m=bt(t);m&&(c.value="offsetWidth"in m?m.offsetWidth:e.width,l.value="offsetHeight"in m?m.offsetHeight:e.height)});const d=r.watch(()=>bt(t),m=>{c.value=m?e.width:0,l.value=m?e.height:0});function u(){s(),d()}return{width:c,height:l,stop:u}}const Jr=Symbol();function _c(){return r.inject(Jr)}const rt=()=>_c(),Ec={class:"body"},xc={class:"my-3 name"},Tc={class:"login-buttons py-3 mx-auto"},Ic={class:"my-3 footer"},Ac=Ae(r.defineComponent({__name:"Login",props:{enableAdlogin:{type:Boolean}},setup(t){const e=t,n=r.ref(null),{width:o}=Sc(n),a=r.computed(()=>o.value>300?"md":"sm"),i=ft.UseAuth(),{ClearStoredTheme:c,EnableLightMode:l}=rt(),s=r.computed(()=>e.enableAdlogin===!0),d=r.ref(!1),u=r.ref(null);async function m(p){d.value||(d.value=!0,u.value=p,await new Promise(h=>setTimeout(h,400)),p==="govbr"?i.LoginGovBr():s&&p==="sf"&&i.oidc.login())}return r.onBeforeMount(()=>{l()}),r.onUnmounted(()=>{c(),d.value=!1,u.value=null}),(p,h)=>(r.openBlock(),r.createElementBlock("div",Ec,[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",xc,[r.renderSlot(p.$slots,"name",{},()=>[h[2]||(h[2]=r.createTextVNode("Nome do sistema",-1))],!0)]),r.createElementVNode("div",Tc,[r.renderSlot(p.$slots,"buttons",r.normalizeProps(r.guardReactiveProps({Login:m})),()=>[r.createVNode(r.unref(pt),{size:a.value,icon:"person","icon-filled":!0,class:r.normalizeClass("w-full text-nowrap justify-content-center"),loading:d.value&&u.value==="govbr",onClick:h[0]||(h[0]=v=>m("govbr"))},{default:r.withCtx(()=>[...h[3]||(h[3]=[r.createTextVNode(" Entrar com ",-1),r.createElementVNode("b",null,"Gov.br",-1)])]),_:1},8,["size","loading"]),s.value?(r.openBlock(),r.createBlock(r.unref(pt),{key:0,size:a.value,icon:"person","icon-filled":!0,class:r.normalizeClass("w-full text-nowrap justify-content-center"),loading:d.value&&u.value==="sf",onClick:h[1]||(h[1]=v=>m("sf"))},{default:r.withCtx(()=>[...h[4]||(h[4]=[r.createTextVNode(" Entrar com ",-1),r.createElementVNode("b",null,"SF",-1)])]),_:1},8,["size","loading"])):r.createCommentVNode("",!0),r.renderSlot(p.$slots,"extra-button",{},void 0,!0)],!0)]),r.createElementVNode("div",Ic,[r.renderSlot(p.$slots,"footer",{},void 0,!0)])],512)]))}}),[["__scopeId","data-v-ff672b03"]]);class $e{static get IsTouch(){return window.matchMedia("(pointer: coarse)").matches}static GetMaxZindex(e=[]){let n="body > *:not(script):not(style)";for(const a of e)n+=`, ${a}`;const o=Math.max(...Array.from(document.querySelectorAll(n)).map(a=>{const i=getComputedStyle(a).zIndex;return+i==+i?+i: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,a=e.toString();return n.replace(/#/g,()=>a[o++]||"")}static MaskCpf(e){return e?$e.Mask(e.padStart(11,"0"),"###.###.###-##"):""}static MaskCnpj(e){return e?$e.Mask(e.padStart(14,"0"),"##.###.###/####-##"):""}static MaskCcm(e){return $e.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}}const Pc={key:0},$c={class:"logout"},Bc={class:"email"},Lc={class:"userinfo"},Oc=["textContent"],Nc={key:0,class:"userinfo"},Mc={class:"flex align-items-center justify-content-between"},Dc=["textContent"],Vc={key:1,class:"userinfo"},Rc={class:"flex align-items-center justify-content-between"},jc={class:"flex align-items-center gap-2 flex-wrap"},Hc={class:"userinfo"},zc={class:"userinfo"},Fc={key:0},Uc={key:1,class:"flex align-items-center gap-2 flex-wrap"},Wc={class:"userinfo"},Kc={key:2,class:"userinfo"},Gc={class:"cnpj-vinculado"},qc={class:"userinfo"},Yc={key:3,class:"userinfo"},Xc={key:4,class:"userinfo"},Qr=Ae(r.defineComponent({__name:"Account",setup(t){const{LogoutWithoutConfirmation:e}=rt(),n=r.ref(!1),o=ft.UseAuth(),a=r.ref(null),i=r.ref(!1),c=async()=>{try{const v=await o.oidc.loadUserInfo().TrackStateWith(i);a.value=v}catch(v){console.warn("[SfVueComponents]",`Erro ao obter informações do usuário: ${v}`)}},l=r.computed(()=>Array.isArray(a.value?.role)?a.value.role:typeof a.value?.role=="string"?[a.value.role]:[]),s=()=>d.value===!0?"GOV.BR":"LDAP SF",d=r.computed(()=>o.authenticatedWith==="govbr"),u=()=>a.value?.cpf||a.value?.employeeID||"",m=[{amr:"passwd",label:"Senha"},{amr:"captcha",label:"Captcha"},{amr:"x509",label:"Certificado Digital"},{amr:"bank",label:"Banco"},{amr:"app_qrcode",label:"QR Code"},{amr:"mfa",label:"MFA"}],p=r.computed(()=>!d.value||!a.value?.amr||!Array.isArray(a.value.amr)?[]:m.filter(v=>a.value.amr.includes(v.amr))),h=r.computed(()=>{if(!d.value||!a.value?.gov_br_reliability_info_level)return null;switch(a.value.gov_br_reliability_info_level){case"bronze":return"Bronze";case"silver":return"Prata";case"gold":return"Ouro";default:return null}});return r.watch(()=>o.oidc.authenticated,v=>{if(!v){a.value=null;return}c()},{immediate:!0}),(v,g)=>(r.openBlock(),r.createElementBlock(r.Fragment,null,[r.createVNode(Se,{size:"sm",icon:"account_circle",button:!0,tooltip:"Minha conta",loading:i.value,onClick:g[0]||(g[0]=y=>n.value=!0)},null,8,["loading"]),r.createVNode(ar,{visible:n.value,"onUpdate:visible":g[1]||(g[1]=y=>n.value=y),position:"right",title:"Minha conta"},{default:r.withCtx(()=>[r.renderSlot(v.$slots,"content",r.normalizeProps(r.guardReactiveProps({userinfo:a.value})),()=>[a.value?(r.openBlock(),r.createElementBlock("div",Pc,[r.createElementVNode("div",$c,[r.createElementVNode("div",Bc,r.toDisplayString(a.value.email),1),r.createVNode(pt,{size:"sm",color:"error",onClick:r.unref(e)},{default:r.withCtx(()=>[...g[2]||(g[2]=[r.createTextVNode(" sair ",-1)])]),_:1},8,["onClick"])]),r.createElementVNode("div",Lc,[g[3]||(g[3]=r.createElementVNode("div",null,"Provedor de identidade",-1)),r.createElementVNode("div",{textContent:r.toDisplayString(s())},null,8,Oc)]),h.value?(r.openBlock(),r.createElementBlock("div",Nc,[r.createElementVNode("div",Mc,[g[5]||(g[5]=r.createElementVNode("div",null,"Nível de confiança",-1)),r.createVNode(Sn,null,{default:r.withCtx(()=>[...g[4]||(g[4]=[r.createTextVNode(" Nível de confiança do usuário no portal gov.br ",-1)])]),_:1})]),r.createElementVNode("div",{textContent:r.toDisplayString(h.value)},null,8,Dc)])):r.createCommentVNode("",!0),p.value.length>0?(r.openBlock(),r.createElementBlock("div",Vc,[r.createElementVNode("div",Rc,[g[7]||(g[7]=r.createElementVNode("span",null,"Fatores de autenticação",-1)),r.createVNode(Sn,null,{default:r.withCtx(()=>[...g[6]||(g[6]=[r.createElementVNode("div",{class:"text-nowrap mb-3"}," Métodos utilizados durante autenticação ",-1)])]),_:1})]),r.createElementVNode("div",jc,[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(p.value,y=>(r.openBlock(),r.createElementBlock("span",{key:`amr-${y.amr}`,class:r.normalizeClass("chip")},r.toDisplayString(y.label),1))),128))])])):r.createCommentVNode("",!0),r.createElementVNode("div",Hc,[g[8]||(g[8]=r.createElementVNode("div",null,"Nome de usuário",-1)),r.createElementVNode("div",null,r.toDisplayString(a.value.preferred_username),1)]),r.createElementVNode("div",zc,[g[9]||(g[9]=r.createElementVNode("div",null,"Perfis atribuídos ao usuário",-1)),l.value.length===0?(r.openBlock(),r.createElementBlock("div",Fc,"Nenhum perfil atribuído.")):(r.openBlock(),r.createElementBlock("div",Uc,[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(l.value,y=>(r.openBlock(),r.createElementBlock("span",{key:y,class:"chip"},r.toDisplayString(y),1))),128))]))]),r.createElementVNode("div",Wc,[g[10]||(g[10]=r.createElementVNode("div",null,"CPF",-1)),r.createElementVNode("div",null,r.toDisplayString(r.unref($e).MaskCpf(u())),1)]),d.value&&a.value.cnpj?(r.openBlock(),r.createElementBlock("div",Kc,[r.createElementVNode("div",Gc,[g[12]||(g[12]=r.createElementVNode("div",null,"CNPJ vinculado",-1)),r.createVNode(Sn,null,{default:r.withCtx(()=>[...g[11]||(g[11]=[r.createTextVNode(" Atributo recebido pelo login com certificado digital de pessoa jurídica. ",-1)])]),_:1})]),r.createElementVNode("div",null,r.toDisplayString(r.unref($e).MaskCnpj(a.value.cnpj)),1)])):r.createCommentVNode("",!0),r.createElementVNode("div",qc,[g[13]||(g[13]=r.createElementVNode("div",null,"Nome",-1)),r.createElementVNode("div",null,r.toDisplayString(a.value.name),1)]),a.value.jobTitle?(r.openBlock(),r.createElementBlock("div",Yc,[g[14]||(g[14]=r.createElementVNode("div",null,"Cargo",-1)),r.createElementVNode("div",null,r.toDisplayString(a.value.jobTitle),1)])):r.createCommentVNode("",!0),a.value.department?(r.openBlock(),r.createElementBlock("div",Xc,[g[15]||(g[15]=r.createElementVNode("div",null,"Departamento",-1)),r.createElementVNode("div",null,r.toDisplayString(a.value.department),1)])):r.createCommentVNode("",!0)])):r.createCommentVNode("",!0)],!0)]),_:3},8,["visible"])],64))}}),[["__scopeId","data-v-bfe361c2"]]),Zc={class:"font-percentage"},ea="--font-size-increment",Jc="tamanho-fonte",Qc=Ae(r.defineComponent({__name:"FontSize",setup(t){const e=r.ref(!1),n=r.ref(0),o=()=>{n.value=hn(),e.value=!0},a=()=>{e.value=!1},i=()=>document.documentElement,c=()=>parseInt(getComputedStyle(i()).getPropertyValue(ea)||"1"),l=p=>{p<.5||p>1.6||(i().style.setProperty(ea,p.toString()),m.value=p)},s=()=>{l(m.value+.1)},d=()=>{l(m.value-.1)},u=()=>{l(1)},m=r.ref(1);return r.onBeforeMount(()=>{localStorage.removeItem(Jc)}),r.onMounted(()=>{m.value=c()}),(p,h)=>(r.openBlock(),r.createElementBlock(r.Fragment,null,[r.createVNode(Se,{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:d}),r.createElementVNode("span",Zc,r.toDisplayString(m.value.toLocaleString("pt-br",{style:"percent",maximumFractionDigits:0})),1),r.createElementVNode("div",{class:"icon add",onClick:s}),r.createElementVNode("span",{class:"redefinir",onClick:u}," Redefinir ")],4),r.createElementVNode("div",{class:"font-size-mask",style:r.normalizeStyle({zIndex:n.value}),onClick:a},null,4)],64)):r.createCommentVNode("",!0)],64))}}),[["__scopeId","data-v-d17f4a5f"]]),ed=r.defineComponent({__name:"ScrollToTop",setup(t){const{scrollY:e}=rt(),n=r.computed(()=>e.value>800);function o(){document.documentElement.scrollTo(0,0)}return(a,i)=>(r.openBlock(),r.createElementBlock("button",{class:r.normalizeClass(["sf-scrollToTop",{"sf-scrollToTop-visible":n.value}]),onClick:o},null,2))}}),td={key:0,class:"mb-3"},nd={class:"flex align-items-center flex-wrap gap-3"},od=["innerHTML"],rd={class:"flex flex-grow-1 gap-2 justify-content-end"},ad=r.defineComponent({__name:"ConfirmPopover",emits:["onOpen"],setup(t,{emit:e}){const n=r.ref(),o=()=>{i?.detail.resolve(!0),i=null,n.value?.Hide()},a=()=>{i?.detail.resolve(!1),i=null,n.value?.Hide()};let i=null;document.addEventListener("sfconfirm:popup",s=>{i=s,n.value?.Show(s)});const c=()=>{i?.detail.resolve(!1)},l=e;return(s,d)=>(r.openBlock(),r.createBlock(ho,{ref_key:"popover",ref:n,onOnShow:d[0]||(d[0]=u=>l("onOpen")),onOnHide:c},{default:r.withCtx(()=>[r.renderSlot(s.$slots,"content",r.normalizeProps(r.guardReactiveProps({resolve:o,reject:a})),()=>[r.unref(i)?.detail.options?.title?(r.openBlock(),r.createElementBlock("div",td,[r.createElementVNode("b",null,r.toDisplayString(r.unref(i)?.detail.options.title),1)])):r.createCommentVNode("",!0),r.createElementVNode("div",nd,[r.createElementVNode("div",{innerHTML:r.unref(i)?.detail.options?.text},null,8,od),r.createElementVNode("div",rd,[r.createVNode(r.unref(pt),{name:"botao-confirmar",size:"sm",color:r.unref(i)?.detail.options?.confirmColor,onClick:o},{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:a},{default:r.withCtx(()=>[r.createTextVNode(r.toDisplayString(r.unref(i)?.detail.options?.rejectLabel),1)]),_:1},8,["color"])])])])]),_:3},512))}}),id=r.defineComponent({__name:"LoginLogout",emits:["login"],setup(t,{emit:e}){const n=ft.UseAuth(),{LogoutAsync:o}=rt(),a=e;return(i,c)=>r.unref(n).isAuthenticated?(r.openBlock(),r.createBlock(Se,{key:0,button:!0,size:"sm",icon:"logout",tooltip:"Sair",onClick:r.unref(o)},null,8,["onClick"])):(r.openBlock(),r.createBlock(Se,{key:1,button:!0,size:"sm",icon:"login",tooltip:"Entrar",onClick:c[0]||(c[0]=l=>a("login"))}))}}),sd={class:"nav-menu-header"},ld={class:"nav-menu-inner-close"},cd={class:"main-content"},dd={class:"page-title"},ud={class:"action"},md={id:"content"},fd={key:0,id:"logging-out"},pd={class:"info-fazenda"},hd={class:"font-bold"},gd={class:"info-endereco text-muted"},bd={class:"footer-right"},wd=Ae(r.defineComponent({__name:"Main",props:{auth:{},public:{type:Boolean}},emits:["login"],setup(t,{emit:e}){const n=t,{navMenuWidth:o,isMenuOpened:a,pageTitle:i,scrollY:c,ToggleMenu:l,isDarkMode:s,ToggleTheme:d,CloseMenu:u,isLoggingOut:m,mainRef:p,mainWidth:h}=rt(),v=r.ref(null),g=()=>{if(!v.value||!a.value)return!1;v.value.offsetWidth!==o&&u()};r.onMounted(()=>{if(zi.useRouter().afterEach(()=>{g()}),p.value){let S=null;Zr(p,P=>{r.nextTick(()=>{S&&clearTimeout(S),S=setTimeout(()=>{h.value=P[0].contentRect.width},10)}),h.value=P[0].contentRect.width}),h.value=p.value.clientWidth}});const y=e;return(w,S)=>(r.openBlock(),r.createElementBlock("main",{ref_key:"mainRef",ref:p,class:r.normalizeClass({disabled:r.unref(m),"nav-menu-visible":r.unref(a)})},[r.createElementVNode("aside",{id:"nav-menu",ref_key:"navMenuRef",ref:v,class:r.normalizeClass({"nav-menu-hidden":!r.unref(a)})},[r.createElementVNode("div",sd,[S[1]||(S[1]=r.createElementVNode("span",null,"Menu",-1)),r.createElementVNode("div",ld,[r.createVNode(Se,{button:!0,icon:"close",onClick:r.unref(l)},null,8,["onClick"])])]),r.renderSlot(w.$slots,"nav-menu",{},void 0,!0)],2),r.createElementVNode("div",cd,[r.createElementVNode("div",{id:"top-bar",class:r.normalizeClass({"shadow-bottom":r.unref(c)>72})},[r.createVNode(Se,{button:!0,icon:r.unref(a)?"menu_open":"menu",tooltip:"Menu",onClick:r.unref(l)},null,8,["icon","onClick"]),r.createElementVNode("div",dd,r.toDisplayString(r.unref(m)?"Saindo...":r.unref(i)),1),S[2]||(S[2]=r.createElementVNode("span",{class:"sep"},null,-1)),r.createElementVNode("div",ud,[r.createVNode(Se,{button:!0,size:"sm",icon:r.unref(s)?"light_mode":"dark_mode",tooltip:r.unref(s)?"Modo claro":"Modo escuro",onClick:r.unref(d)},null,8,["icon","tooltip","onClick"]),r.createVNode(Qc),r.renderSlot(w.$slots,"top-bar-account",{},()=>[r.createVNode(Qr)],!0),n.public?r.createCommentVNode("",!0):(r.openBlock(),r.createBlock(id,{key:0,onLogin:S[0]||(S[0]=P=>y("login"))}))])],2),r.createElementVNode("div",md,[r.unref(m)?(r.openBlock(),r.createElementBlock("div",fd,[r.createVNode(or)])):r.renderSlot(w.$slots,"content",{key:1},void 0,!0)])]),r.createElementVNode("footer",null,[r.renderSlot(w.$slots,"footer",{},()=>[S[5]||(S[5]=r.createElementVNode("div",{class:"logo-fazenda"},null,-1)),r.createElementVNode("div",pd,[r.createElementVNode("span",hd,[r.renderSlot(w.$slots,"footer-nome-fazenda",{},()=>[S[3]||(S[3]=r.createTextVNode(" SECRETARIA MUNICIPAL DA FAZENDA ",-1))],!0)]),r.createElementVNode("span",gd,[r.renderSlot(w.$slots,"footer-endereco-fazenda",{},()=>[S[4]||(S[4]=r.createTextVNode(" Rua Líbero Badaró, 190 - Centro - São Paulo - SP - CEP 01008-000 ",-1))],!0)])]),r.createElementVNode("div",bd,[r.renderSlot(w.$slots,"footer-right",{},void 0,!0)])],!0)]),r.createVNode(ed),r.createVNode(ad)],2))}}),[["__scopeId","data-v-d77d1546"]]),vd=r.defineComponent({__name:"PageTitle",props:{title:{}},setup(t){const{pageTitle:e}=rt(),n=t;return r.watchEffect(()=>{document.title=n.title,e.value=n.title}),(o,a)=>null}}),yd={class:"sf-tabs"},kd=["onClick","onKeydown"],Cd=["id","aria-selected","tabindex","aria-controls","disabled"],Sd=["id","aria-labelledby","aria-hidden"],_d=r.defineComponent({__name:"Tabs",props:r.mergeModels({tabs:{},dense:{type:Boolean}},{activeTab:{default:0},activeTabModifiers:{}}),emits:["update:activeTab"],setup(t){const e=t,n=r.useModel(t,"activeTab");let o=n.value;r.watch(()=>n.value,p=>{p!==o&&c(p)});const a=r.computed(()=>e.tabs.length-1);let i=null;const c=p=>{e.tabs[p].disabled||(i&&clearTimeout(i),i=window.setTimeout(()=>{i=null,o=p,n.value=p,l(p)},100))},l=p=>{const h=document.getElementById(d(p));h&&(h.focus(),h.scrollIntoView({inline:"center"}))},s=(p,h)=>{if(p.repeat)return;const v=a.value,g=(y,w)=>{let S=y;for(let P=0;P<=v;P++)if(S=(S+w+e.tabs.length)%e.tabs.length,!e.tabs[S].disabled)return S;return-1};if(p.key==="ArrowRight"){p.preventDefault();const y=g(h,1);c(y);return}if(p.key==="ArrowLeft"){p.preventDefault();const y=g(h,-1);c(y);return}if(p.key==="Home"){p.preventDefault();const y=g(-1,1);c(y);return}if(p.key==="End"){p.preventDefault();const y=g(v,-1);c(y);return}},d=p=>`sf-tab-${p}`,u=p=>`sf-tabpanel-${p}`,m=()=>{if(e.tabs[n.value]?.disabled){const p=e.tabs.findIndex(h=>!h.disabled);n.value=p!==-1?p:-1}};return r.onMounted(()=>{m()}),(p,h)=>(r.openBlock(),r.createElementBlock("div",yd,[r.createElementVNode("ul",{role:"tablist","aria-orientation":"horizontal",class:r.normalizeClass({dense:e.dense})},[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(e.tabs,(v,g)=>(r.openBlock(),r.createElementBlock("li",{key:d(g),onClick:y=>c(g),onKeydown:y=>s(y,g)},[r.createElementVNode("button",{role:"tab",id:d(g),"aria-selected":!v.disabled&&g===n.value,tabindex:g===n.value?0:-1,"aria-controls":u(g),disabled:v.disabled},r.toDisplayString(v.text),9,Cd)],40,kd))),128))],2),(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(e.tabs,(v,g)=>(r.openBlock(),r.createElementBlock("div",{key:u(g),id:u(g),role:"tabpanel","aria-labelledby":d(g),"aria-hidden":!v.disabled&&g!==n.value,class:r.normalizeClass(["tab-content",{hidden:g!==n.value}])},[!v.disabled&&g===n.value?r.renderSlot(p.$slots,"tabpanel",r.mergeProps({key:0,ref_for:!0},{tab:v,activeTab:n.value,Activate:c})):r.createCommentVNode("",!0)],10,Sd))),128))]))}});class Ed{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 Xt=new Ed;/*!
|
|
362
|
-
* sweetalert2 v11.23.0
|
|
363
|
-
* Released under the MIT License.
|
|
364
|
-
*/function ta(t,e,n){if(typeof t=="function"?t===e:t.has(e))return arguments.length<3?e:n;throw new TypeError("Private element is not present on this object")}function xd(t,e){if(e.has(t))throw new TypeError("Cannot initialize the same private elements twice on an object")}function na(t,e){return t.get(ta(t,e))}function Td(t,e,n){xd(t,e),e.set(t,n)}function Id(t,e,n){return t.set(ta(t,e),n),n}const Ad=100,T={},Pd=()=>{T.previousActiveElement instanceof HTMLElement?(T.previousActiveElement.focus(),T.previousActiveElement=null):document.body&&document.body.focus()},$d=t=>new Promise(e=>{if(!t)return e();const n=window.scrollX,o=window.scrollY;T.restoreFocusTimeout=setTimeout(()=>{Pd(),e()},Ad),window.scrollTo(n,o)}),oa="swal2-",b=["container","shown","height-auto","iosfix","popup","modal","no-backdrop","no-transition","toast","toast-shown","show","hide","close","title","html-container","actions","confirm","deny","cancel","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","draggable","dragging"].reduce((t,e)=>(t[e]=oa+e,t),{}),_n=["success","warning","info","question","error"].reduce((t,e)=>(t[e]=oa+e,t),{}),ra="SweetAlert2:",go=t=>t.charAt(0).toUpperCase()+t.slice(1),ie=t=>{console.warn(`${ra} ${typeof t=="object"?t.join(" "):t}`)},at=t=>{console.error(`${ra} ${t}`)},aa=[],Bd=t=>{aa.includes(t)||(aa.push(t),ie(t))},ia=(t,e=null)=>{Bd(`"${t}" is deprecated and will be removed in the next major release.${e?` Use "${e}" instead.`:""}`)},En=t=>typeof t=="function"?t():t,bo=t=>t&&typeof t.toPromise=="function",Zt=t=>bo(t)?t.toPromise():Promise.resolve(t),wo=t=>t&&Promise.resolve(t)===t,se=()=>document.body.querySelector(`.${b.container}`),Jt=t=>{const e=se();return e?e.querySelector(t):null},he=t=>Jt(`.${t}`),M=()=>he(b.popup),wt=()=>he(b.icon),Ld=()=>he(b["icon-content"]),sa=()=>he(b.title),vo=()=>he(b["html-container"]),la=()=>he(b.image),yo=()=>he(b["progress-steps"]),xn=()=>he(b["validation-message"]),Be=()=>Jt(`.${b.actions} .${b.confirm}`),vt=()=>Jt(`.${b.actions} .${b.cancel}`),it=()=>Jt(`.${b.actions} .${b.deny}`),Od=()=>he(b["input-label"]),yt=()=>Jt(`.${b.loader}`),Qt=()=>he(b.actions),ca=()=>he(b.footer),Tn=()=>he(b["timer-progress-bar"]),ko=()=>he(b.close),Nd=`
|
|
365
|
-
a[href],
|
|
366
|
-
area[href],
|
|
367
|
-
input:not([disabled]),
|
|
368
|
-
select:not([disabled]),
|
|
369
|
-
textarea:not([disabled]),
|
|
370
|
-
button:not([disabled]),
|
|
371
|
-
iframe,
|
|
372
|
-
object,
|
|
373
|
-
embed,
|
|
374
|
-
[tabindex="0"],
|
|
375
|
-
[contenteditable],
|
|
376
|
-
audio[controls],
|
|
377
|
-
video[controls],
|
|
378
|
-
summary
|
|
379
|
-
`,Co=()=>{const t=M();if(!t)return[];const e=t.querySelectorAll('[tabindex]:not([tabindex="-1"]):not([tabindex="0"])'),n=Array.from(e).sort((i,c)=>{const l=parseInt(i.getAttribute("tabindex")||"0"),s=parseInt(c.getAttribute("tabindex")||"0");return l>s?1:l<s?-1:0}),o=t.querySelectorAll(Nd),a=Array.from(o).filter(i=>i.getAttribute("tabindex")!=="-1");return[...new Set(n.concat(a))].filter(i=>fe(i))},So=()=>De(document.body,b.shown)&&!De(document.body,b["toast-shown"])&&!De(document.body,b["no-backdrop"]),In=()=>{const t=M();return t?De(t,b.toast):!1},Md=()=>{const t=M();return t?t.hasAttribute("data-loading"):!1},ge=(t,e)=>{if(t.textContent="",e){const o=new DOMParser().parseFromString(e,"text/html"),a=o.querySelector("head");a&&Array.from(a.childNodes).forEach(c=>{t.appendChild(c)});const i=o.querySelector("body");i&&Array.from(i.childNodes).forEach(c=>{c instanceof HTMLVideoElement||c instanceof HTMLAudioElement?t.appendChild(c.cloneNode(!0)):t.appendChild(c)})}},De=(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},Dd=(t,e)=>{Array.from(t.classList).forEach(n=>{!Object.values(b).includes(n)&&!Object.values(_n).includes(n)&&!Object.values(e.showClass||{}).includes(n)&&t.classList.remove(n)})},be=(t,e,n)=>{if(Dd(t,e),!e.customClass)return;const o=e.customClass[n];if(o){if(typeof o!="string"&&!o.forEach){ie(`Invalid type of customClass.${n}! Expected string or iterable object, got "${typeof o}"`);return}D(t,o)}},An=(t,e)=>{if(!e)return null;switch(e){case"select":case"textarea":case"file":return t.querySelector(`.${b.popup} > .${b[e]}`);case"checkbox":return t.querySelector(`.${b.popup} > .${b.checkbox} input`);case"radio":return t.querySelector(`.${b.popup} > .${b.radio} input:checked`)||t.querySelector(`.${b.popup} > .${b.radio} input:first-child`);case"range":return t.querySelector(`.${b.popup} > .${b.range} input`);default:return t.querySelector(`.${b.popup} > .${b.input}`)}},da=t=>{if(t.focus(),t.type!=="file"){const e=t.value;t.value="",t.value=e}},ua=(t,e,n)=>{!t||!e||(typeof e=="string"&&(e=e.split(/\s+/).filter(Boolean)),e.forEach(o=>{Array.isArray(t)?t.forEach(a=>{n?a.classList.add(o):a.classList.remove(o)}):n?t.classList.add(o):t.classList.remove(o)}))},D=(t,e)=>{ua(t,e,!0)},we=(t,e)=>{ua(t,e,!1)},Ye=(t,e)=>{const n=Array.from(t.children);for(let o=0;o<n.length;o++){const a=n[o];if(a instanceof HTMLElement&&De(a,e))return a}},st=(t,e,n)=>{n===`${parseInt(n)}`&&(n=parseInt(n)),n||parseInt(n)===0?t.style.setProperty(e,typeof n=="number"?`${n}px`:n):t.style.removeProperty(e)},Y=(t,e="flex")=>{t&&(t.style.display=e)},te=t=>{t&&(t.style.display="none")},_o=(t,e="block")=>{t&&new MutationObserver(()=>{en(t,t.innerHTML,e)}).observe(t,{childList:!0,subtree:!0})},ma=(t,e,n,o)=>{const a=t.querySelector(e);a&&a.style.setProperty(n,o)},en=(t,e,n="flex")=>{e?Y(t,n):te(t)},fe=t=>!!(t&&(t.offsetWidth||t.offsetHeight||t.getClientRects().length)),Vd=()=>!fe(Be())&&!fe(it())&&!fe(vt()),Eo=t=>t.scrollHeight>t.clientHeight,Rd=(t,e)=>{let n=t;for(;n&&n!==e;){if(Eo(n))return!0;n=n.parentElement}return!1},fa=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},xo=(t,e=!1)=>{const n=Tn();n&&fe(n)&&(e&&(n.style.transition="none",n.style.width="100%"),setTimeout(()=>{n.style.transition=`width ${t/1e3}s linear`,n.style.width="0%"},10))},jd=()=>{const t=Tn();if(!t)return;const 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.width=`${o}%`},Hd=()=>typeof window>"u"||typeof document>"u",zd=`
|
|
380
|
-
<div aria-labelledby="${b.title}" aria-describedby="${b["html-container"]}" class="${b.popup}" tabindex="-1">
|
|
381
|
-
<button type="button" class="${b.close}"></button>
|
|
382
|
-
<ul class="${b["progress-steps"]}"></ul>
|
|
383
|
-
<div class="${b.icon}"></div>
|
|
384
|
-
<img class="${b.image}" />
|
|
385
|
-
<h2 class="${b.title}" id="${b.title}"></h2>
|
|
386
|
-
<div class="${b["html-container"]}" id="${b["html-container"]}"></div>
|
|
387
|
-
<input class="${b.input}" id="${b.input}" />
|
|
388
|
-
<input type="file" class="${b.file}" />
|
|
389
|
-
<div class="${b.range}">
|
|
390
|
-
<input type="range" />
|
|
391
|
-
<output></output>
|
|
392
|
-
</div>
|
|
393
|
-
<select class="${b.select}" id="${b.select}"></select>
|
|
394
|
-
<div class="${b.radio}"></div>
|
|
395
|
-
<label class="${b.checkbox}">
|
|
396
|
-
<input type="checkbox" id="${b.checkbox}" />
|
|
397
|
-
<span class="${b.label}"></span>
|
|
398
|
-
</label>
|
|
399
|
-
<textarea class="${b.textarea}" id="${b.textarea}"></textarea>
|
|
400
|
-
<div class="${b["validation-message"]}" id="${b["validation-message"]}"></div>
|
|
401
|
-
<div class="${b.actions}">
|
|
402
|
-
<div class="${b.loader}"></div>
|
|
403
|
-
<button type="button" class="${b.confirm}"></button>
|
|
404
|
-
<button type="button" class="${b.deny}"></button>
|
|
405
|
-
<button type="button" class="${b.cancel}"></button>
|
|
406
|
-
</div>
|
|
407
|
-
<div class="${b.footer}"></div>
|
|
408
|
-
<div class="${b["timer-progress-bar-container"]}">
|
|
409
|
-
<div class="${b["timer-progress-bar"]}"></div>
|
|
410
|
-
</div>
|
|
411
|
-
</div>
|
|
412
|
-
`.replace(/(^|\n)\s*/g,""),Fd=()=>{const t=se();return t?(t.remove(),we([document.documentElement,document.body],[b["no-backdrop"],b["toast-shown"],b["has-column"]]),!0):!1},lt=()=>{T.currentInstance.resetValidationMessage()},Ud=()=>{const t=M(),e=Ye(t,b.input),n=Ye(t,b.file),o=t.querySelector(`.${b.range} input`),a=t.querySelector(`.${b.range} output`),i=Ye(t,b.select),c=t.querySelector(`.${b.checkbox} input`),l=Ye(t,b.textarea);e.oninput=lt,n.onchange=lt,i.onchange=lt,c.onchange=lt,l.oninput=lt,o.oninput=()=>{lt(),a.value=o.value},o.onchange=()=>{lt(),a.value=o.value}},Wd=t=>typeof t=="string"?document.querySelector(t):t,Kd=t=>{const e=M();e.setAttribute("role",t.toast?"alert":"dialog"),e.setAttribute("aria-live",t.toast?"polite":"assertive"),t.toast||e.setAttribute("aria-modal","true")},Gd=t=>{window.getComputedStyle(t).direction==="rtl"&&D(se(),b.rtl)},qd=t=>{const e=Fd();if(Hd()){at("SweetAlert2 requires document to initialize");return}const n=document.createElement("div");n.className=b.container,e&&D(n,b["no-transition"]),ge(n,zd),n.dataset.swal2Theme=t.theme;const o=Wd(t.target);o.appendChild(n),t.topLayer&&(n.setAttribute("popover",""),n.showPopover()),Kd(t),Gd(o),Ud()},To=(t,e)=>{t instanceof HTMLElement?e.appendChild(t):typeof t=="object"?Yd(t,e):t&&ge(e,t)},Yd=(t,e)=>{t.jquery?Xd(e,t):ge(e,t.toString())},Xd=(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))},Zd=(t,e)=>{const n=Qt(),o=yt();!n||!o||(!e.showConfirmButton&&!e.showDenyButton&&!e.showCancelButton?te(n):Y(n),be(n,e,"actions"),Jd(n,o,e),ge(o,e.loaderHtml||""),be(o,e,"loader"))};function Jd(t,e,n){const o=Be(),a=it(),i=vt();!o||!a||!i||(Ao(o,"confirm",n),Ao(a,"deny",n),Ao(i,"cancel",n),Qd(o,a,i,n),n.reverseButtons&&(n.toast?(t.insertBefore(i,o),t.insertBefore(a,o)):(t.insertBefore(i,e),t.insertBefore(a,e),t.insertBefore(o,e))))}function Qd(t,e,n,o){if(!o.buttonsStyling){we([t,e,n],b.styled);return}D([t,e,n],b.styled),o.confirmButtonColor&&t.style.setProperty("--swal2-confirm-button-background-color",o.confirmButtonColor),o.denyButtonColor&&e.style.setProperty("--swal2-deny-button-background-color",o.denyButtonColor),o.cancelButtonColor&&n.style.setProperty("--swal2-cancel-button-background-color",o.cancelButtonColor),Io(t),Io(e),Io(n)}function Io(t){const e=window.getComputedStyle(t);if(e.getPropertyValue("--swal2-action-button-focus-box-shadow"))return;const n=e.backgroundColor.replace(/rgba?\((\d+), (\d+), (\d+).*/,"rgba($1, $2, $3, 0.5)");t.style.setProperty("--swal2-action-button-focus-box-shadow",e.getPropertyValue("--swal2-outline").replace(/ rgba\(.*/,` ${n}`))}function Ao(t,e,n){const o=go(e);en(t,n[`show${o}Button`],"inline-block"),ge(t,n[`${e}ButtonText`]||""),t.setAttribute("aria-label",n[`${e}ButtonAriaLabel`]||""),t.className=b[e],be(t,n,`${e}Button`)}const eu=(t,e)=>{const n=ko();n&&(ge(n,e.closeButtonHtml||""),be(n,e,"closeButton"),en(n,e.showCloseButton),n.setAttribute("aria-label",e.closeButtonAriaLabel||""))},tu=(t,e)=>{const n=se();n&&(nu(n,e.backdrop),ou(n,e.position),ru(n,e.grow),be(n,e,"container"))};function nu(t,e){typeof e=="string"?t.style.background=e:e||D([document.documentElement,document.body],b["no-backdrop"])}function ou(t,e){e&&(e in b?D(t,b[e]):(ie('The "position" parameter is not valid, defaulting to "center"'),D(t,b.center)))}function ru(t,e){e&&D(t,b[`grow-${e}`])}var j={innerParams:new WeakMap,domCache:new WeakMap};const au=["input","file","range","select","radio","checkbox","textarea"],iu=(t,e)=>{const n=M();if(!n)return;const o=j.innerParams.get(t),a=!o||e.input!==o.input;au.forEach(i=>{const c=Ye(n,b[i]);c&&(cu(i,e.inputAttributes),c.className=b[i],a&&te(c))}),e.input&&(a&&su(e),du(e))},su=t=>{if(!t.input)return;if(!K[t.input]){at(`Unexpected type of input! Expected ${Object.keys(K).join(" | ")}, got "${t.input}"`);return}const e=pa(t.input);if(!e)return;const n=K[t.input](e,t);Y(e),t.inputAutoFocus&&setTimeout(()=>{da(n)})},lu=t=>{for(let e=0;e<t.attributes.length;e++){const n=t.attributes[e].name;["id","type","value","style"].includes(n)||t.removeAttribute(n)}},cu=(t,e)=>{const n=M();if(!n)return;const o=An(n,t);if(o){lu(o);for(const a in e)o.setAttribute(a,e[a])}},du=t=>{if(!t.input)return;const e=pa(t.input);e&&be(e,t,"input")},Po=(t,e)=>{!t.placeholder&&e.inputPlaceholder&&(t.placeholder=e.inputPlaceholder)},tn=(t,e,n)=>{if(n.inputLabel){const o=document.createElement("label"),a=b["input-label"];o.setAttribute("for",t.id),o.className=a,typeof n.customClass=="object"&&D(o,n.customClass.inputLabel),o.innerText=n.inputLabel,e.insertAdjacentElement("beforebegin",o)}},pa=t=>{const e=M();if(e)return Ye(e,b[t]||b.input)},Pn=(t,e)=>{["string","number"].includes(typeof e)?t.value=`${e}`:wo(e)||ie(`Unexpected type of inputValue! Expected "string", "number" or "Promise", got "${typeof e}"`)},K={};K.text=K.email=K.password=K.number=K.tel=K.url=K.search=K.date=K["datetime-local"]=K.time=K.week=K.month=(t,e)=>(Pn(t,e.inputValue),tn(t,t,e),Po(t,e),t.type=e.input,t),K.file=(t,e)=>(tn(t,t,e),Po(t,e),t),K.range=(t,e)=>{const n=t.querySelector("input"),o=t.querySelector("output");return Pn(n,e.inputValue),n.type=e.input,Pn(o,e.inputValue),tn(n,t,e),t},K.select=(t,e)=>{if(t.textContent="",e.inputPlaceholder){const n=document.createElement("option");ge(n,e.inputPlaceholder),n.value="",n.disabled=!0,n.selected=!0,t.appendChild(n)}return tn(t,t,e),t},K.radio=t=>(t.textContent="",t),K.checkbox=(t,e)=>{const n=An(M(),"checkbox");n.value="1",n.checked=!!e.inputValue;const o=t.querySelector("span");return ge(o,e.inputPlaceholder||e.inputLabel),n},K.textarea=(t,e)=>{Pn(t,e.inputValue),Po(t,e),tn(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(M()).width),a=()=>{if(!document.body.contains(t))return;const i=t.offsetWidth+n(t);i>o?M().style.width=`${i}px`:st(M(),"width",e.width)};new MutationObserver(a).observe(t,{attributes:!0,attributeFilter:["style"]})}}),t};const uu=(t,e)=>{const n=vo();n&&(_o(n),be(n,e,"htmlContainer"),e.html?(To(e.html,n),Y(n,"block")):e.text?(n.textContent=e.text,Y(n,"block")):te(n),iu(t,e))},mu=(t,e)=>{const n=ca();n&&(_o(n),en(n,e.footer,"block"),e.footer&&To(e.footer,n),be(n,e,"footer"))},fu=(t,e)=>{const n=j.innerParams.get(t),o=wt();if(!o)return;if(n&&e.icon===n.icon){ba(o,e),ha(o,e);return}if(!e.icon&&!e.iconHtml){te(o);return}if(e.icon&&Object.keys(_n).indexOf(e.icon)===-1){at(`Unknown icon! Expected "success", "error", "warning", "info" or "question", got "${e.icon}"`),te(o);return}Y(o),ba(o,e),ha(o,e),D(o,e.showClass&&e.showClass.icon),window.matchMedia("(prefers-color-scheme: dark)").addEventListener("change",ga)},ha=(t,e)=>{for(const[n,o]of Object.entries(_n))e.icon!==n&&we(t,o);D(t,e.icon&&_n[e.icon]),gu(t,e),ga(),be(t,e,"icon")},ga=()=>{const t=M();if(!t)return;const 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},pu=t=>`
|
|
413
|
-
${t.animation?'<div class="swal2-success-circular-line-left"></div>':""}
|
|
414
|
-
<span class="swal2-success-line-tip"></span> <span class="swal2-success-line-long"></span>
|
|
415
|
-
<div class="swal2-success-ring"></div>
|
|
416
|
-
${t.animation?'<div class="swal2-success-fix"></div>':""}
|
|
417
|
-
${t.animation?'<div class="swal2-success-circular-line-right"></div>':""}
|
|
418
|
-
`,hu=`
|
|
419
|
-
<span class="swal2-x-mark">
|
|
420
|
-
<span class="swal2-x-mark-line-left"></span>
|
|
421
|
-
<span class="swal2-x-mark-line-right"></span>
|
|
422
|
-
</span>
|
|
423
|
-
`,ba=(t,e)=>{if(!e.icon&&!e.iconHtml)return;let n=t.innerHTML,o="";e.iconHtml?o=wa(e.iconHtml):e.icon==="success"?(o=pu(e),n=n.replace(/ style=".*?"/g,"")):e.icon==="error"?o=hu:e.icon&&(o=wa({question:"?",warning:"!",info:"i"}[e.icon])),n.trim()!==o.trim()&&ge(t,o)},gu=(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"])ma(t,n,"background-color",e.iconColor);ma(t,".swal2-success-ring","border-color",e.iconColor)}},wa=t=>`<div class="${b["icon-content"]}">${t}</div>`,bu=(t,e)=>{const n=la();if(n){if(!e.imageUrl){te(n);return}Y(n,""),n.setAttribute("src",e.imageUrl),n.setAttribute("alt",e.imageAlt||""),st(n,"width",e.imageWidth),st(n,"height",e.imageHeight),n.className=b.image,be(n,e,"image")}};let $o=!1,va=0,ya=0,ka=0,Ca=0;const wu=t=>{t.addEventListener("mousedown",$n),document.body.addEventListener("mousemove",Bn),t.addEventListener("mouseup",Ln),t.addEventListener("touchstart",$n),document.body.addEventListener("touchmove",Bn),t.addEventListener("touchend",Ln)},vu=t=>{t.removeEventListener("mousedown",$n),document.body.removeEventListener("mousemove",Bn),t.removeEventListener("mouseup",Ln),t.removeEventListener("touchstart",$n),document.body.removeEventListener("touchmove",Bn),t.removeEventListener("touchend",Ln)},$n=t=>{const e=M();if(t.target===e||wt().contains(t.target)){$o=!0;const n=Sa(t);va=n.clientX,ya=n.clientY,ka=parseInt(e.style.insetInlineStart)||0,Ca=parseInt(e.style.insetBlockStart)||0,D(e,"swal2-dragging")}},Bn=t=>{const e=M();if($o){let{clientX:n,clientY:o}=Sa(t);e.style.insetInlineStart=`${ka+(n-va)}px`,e.style.insetBlockStart=`${Ca+(o-ya)}px`}},Ln=()=>{const t=M();$o=!1,we(t,"swal2-dragging")},Sa=t=>{let e=0,n=0;return t.type.startsWith("mouse")?(e=t.clientX,n=t.clientY):t.type.startsWith("touch")&&(e=t.touches[0].clientX,n=t.touches[0].clientY),{clientX:e,clientY:n}},yu=(t,e)=>{const n=se(),o=M();if(!(!n||!o)){if(e.toast){st(n,"width",e.width),o.style.width="100%";const a=yt();a&&o.insertBefore(a,wt())}else st(o,"width",e.width);st(o,"padding",e.padding),e.color&&(o.style.color=e.color),e.background&&(o.style.background=e.background),te(xn()),ku(o,e),e.draggable&&!e.toast?(D(o,b.draggable),wu(o)):(we(o,b.draggable),vu(o))}},ku=(t,e)=>{const n=e.showClass||{};t.className=`${b.popup} ${fe(t)?n.popup:""}`,e.toast?(D([document.documentElement,document.body],b["toast-shown"]),D(t,b.toast)):D(t,b.modal),be(t,e,"popup"),typeof e.customClass=="string"&&D(t,e.customClass),e.icon&&D(t,b[`icon-${e.icon}`])},Cu=(t,e)=>{const n=yo();if(!n)return;const{progressSteps:o,currentProgressStep:a}=e;if(!o||o.length===0||a===void 0){te(n);return}Y(n),n.textContent="",a>=o.length&&ie("Invalid currentProgressStep parameter, it should be less than progressSteps.length (currentProgressStep like JS arrays starts from 0)"),o.forEach((i,c)=>{const l=Su(i);if(n.appendChild(l),c===a&&D(l,b["active-progress-step"]),c!==o.length-1){const s=_u(e);n.appendChild(s)}})},Su=t=>{const e=document.createElement("li");return D(e,b["progress-step"]),ge(e,t),e},_u=t=>{const e=document.createElement("li");return D(e,b["progress-step-line"]),t.progressStepsDistance&&st(e,"width",t.progressStepsDistance),e},Eu=(t,e)=>{const n=sa();n&&(_o(n),en(n,e.title||e.titleText,"block"),e.title&&To(e.title,n),e.titleText&&(n.innerText=e.titleText),be(n,e,"title"))},_a=(t,e)=>{yu(t,e),tu(t,e),Cu(t,e),fu(t,e),bu(t,e),Eu(t,e),eu(t,e),uu(t,e),Zd(t,e),mu(t,e);const n=M();typeof e.didRender=="function"&&n&&e.didRender(n),T.eventEmitter.emit("didRender",n)},xu=()=>fe(M()),Ea=()=>{var t;return(t=Be())===null||t===void 0?void 0:t.click()},Tu=()=>{var t;return(t=it())===null||t===void 0?void 0:t.click()},Iu=()=>{var t;return(t=vt())===null||t===void 0?void 0:t.click()},kt=Object.freeze({cancel:"cancel",backdrop:"backdrop",close:"close",esc:"esc",timer:"timer"}),xa=t=>{t.keydownTarget&&t.keydownHandlerAdded&&(t.keydownTarget.removeEventListener("keydown",t.keydownHandler,{capture:t.keydownListenerCapture}),t.keydownHandlerAdded=!1)},Au=(t,e,n)=>{xa(t),e.toast||(t.keydownHandler=o=>$u(e,o,n),t.keydownTarget=e.keydownListenerCapture?window:M(),t.keydownListenerCapture=e.keydownListenerCapture,t.keydownTarget.addEventListener("keydown",t.keydownHandler,{capture:t.keydownListenerCapture}),t.keydownHandlerAdded=!0)},Bo=(t,e)=>{var n;const o=Co();if(o.length){t=t+e,t===-2&&(t=o.length-1),t===o.length?t=0:t===-1&&(t=o.length-1),o[t].focus();return}(n=M())===null||n===void 0||n.focus()},Ta=["ArrowRight","ArrowDown"],Pu=["ArrowLeft","ArrowUp"],$u=(t,e,n)=>{t&&(e.isComposing||e.keyCode===229||(t.stopKeydownPropagation&&e.stopPropagation(),e.key==="Enter"?Bu(e,t):e.key==="Tab"?Lu(e):[...Ta,...Pu].includes(e.key)?Ou(e.key):e.key==="Escape"&&Nu(e,t,n)))},Bu=(t,e)=>{if(!En(e.allowEnterKey))return;const n=An(M(),e.input);if(t.target&&n&&t.target instanceof HTMLElement&&t.target.outerHTML===n.outerHTML){if(["textarea","file"].includes(e.input))return;Ea(),t.preventDefault()}},Lu=t=>{const e=t.target,n=Co();let o=-1;for(let a=0;a<n.length;a++)if(e===n[a]){o=a;break}t.shiftKey?Bo(o,-1):Bo(o,1),t.stopPropagation(),t.preventDefault()},Ou=t=>{const e=Qt(),n=Be(),o=it(),a=vt();if(!e||!n||!o||!a)return;const i=[n,o,a];if(document.activeElement instanceof HTMLElement&&!i.includes(document.activeElement))return;const c=Ta.includes(t)?"nextElementSibling":"previousElementSibling";let l=document.activeElement;if(l){for(let s=0;s<e.children.length;s++){if(l=l[c],!l)return;if(l instanceof HTMLButtonElement&&fe(l))break}l instanceof HTMLButtonElement&&l.focus()}},Nu=(t,e,n)=>{t.preventDefault(),En(e.allowEscapeKey)&&n(kt.esc)};var Ct={swalPromiseResolve:new WeakMap,swalPromiseReject:new WeakMap};const Mu=()=>{const t=se();Array.from(document.body.children).forEach(n=>{n.contains(t)||(n.hasAttribute("aria-hidden")&&n.setAttribute("data-previous-aria-hidden",n.getAttribute("aria-hidden")||""),n.setAttribute("aria-hidden","true"))})},Ia=()=>{Array.from(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")})},Aa=typeof window<"u"&&!!window.GestureEvent,Du=()=>{if(Aa&&!De(document.body,b.iosfix)){const t=document.body.scrollTop;document.body.style.top=`${t*-1}px`,D(document.body,b.iosfix),Vu()}},Vu=()=>{const t=se();if(!t)return;let e;t.ontouchstart=n=>{e=Ru(n)},t.ontouchmove=n=>{e&&(n.preventDefault(),n.stopPropagation())}},Ru=t=>{const e=t.target,n=se(),o=vo();return!n||!o||ju(t)||Hu(t)?!1:e===n||!Eo(n)&&e instanceof HTMLElement&&!Rd(e,o)&&e.tagName!=="INPUT"&&e.tagName!=="TEXTAREA"&&!(Eo(o)&&o.contains(e))},ju=t=>t.touches&&t.touches.length&&t.touches[0].touchType==="stylus",Hu=t=>t.touches&&t.touches.length>1,zu=()=>{if(De(document.body,b.iosfix)){const t=parseInt(document.body.style.top,10);we(document.body,b.iosfix),document.body.style.top="",document.body.scrollTop=t*-1}},Fu=()=>{const t=document.createElement("div");t.className=b["scrollbar-measure"],document.body.appendChild(t);const e=t.getBoundingClientRect().width-t.clientWidth;return document.body.removeChild(t),e};let St=null;const Uu=t=>{St===null&&(document.body.scrollHeight>window.innerHeight||t==="scroll")&&(St=parseInt(window.getComputedStyle(document.body).getPropertyValue("padding-right")),document.body.style.paddingRight=`${St+Fu()}px`)},Wu=()=>{St!==null&&(document.body.style.paddingRight=`${St}px`,St=null)};function Pa(t,e,n,o){In()?Ba(t,o):($d(n).then(()=>Ba(t,o)),xa(T)),Aa?(e.setAttribute("style","display:none !important"),e.removeAttribute("class"),e.innerHTML=""):e.remove(),So()&&(Wu(),zu(),Ia()),Ku()}function Ku(){we([document.documentElement,document.body],[b.shown,b["height-auto"],b["no-backdrop"],b["toast-shown"]])}function Xe(t){t=qu(t);const e=Ct.swalPromiseResolve.get(this),n=Gu(this);this.isAwaitingPromise?t.isDismissed||(nn(this),e(t)):n&&e(t)}const Gu=t=>{const e=M();if(!e)return!1;const n=j.innerParams.get(t);if(!n||De(e,n.hideClass.popup))return!1;we(e,n.showClass.popup),D(e,n.hideClass.popup);const o=se();return we(o,n.showClass.backdrop),D(o,n.hideClass.backdrop),Yu(t,e,n),!0};function $a(t){const e=Ct.swalPromiseReject.get(this);nn(this),e&&e(t)}const nn=t=>{t.isAwaitingPromise&&(delete t.isAwaitingPromise,j.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),Yu=(t,e,n)=>{var o;const a=se(),i=fa(e);typeof n.willClose=="function"&&n.willClose(e),(o=T.eventEmitter)===null||o===void 0||o.emit("willClose",e),i?Xu(t,e,a,n.returnFocus,n.didClose):Pa(t,a,n.returnFocus,n.didClose)},Xu=(t,e,n,o,a)=>{T.swalCloseEventFinishedCallback=Pa.bind(null,t,n,o,a);const i=function(c){if(c.target===e){var l;(l=T.swalCloseEventFinishedCallback)===null||l===void 0||l.call(T),delete T.swalCloseEventFinishedCallback,e.removeEventListener("animationend",i),e.removeEventListener("transitionend",i)}};e.addEventListener("animationend",i),e.addEventListener("transitionend",i)},Ba=(t,e)=>{setTimeout(()=>{var n;typeof e=="function"&&e.bind(t.params)(),(n=T.eventEmitter)===null||n===void 0||n.emit("didClose"),t._destroy&&t._destroy()})},_t=t=>{let e=M();if(e||new dt,e=M(),!e)return;const n=yt();In()?te(wt()):Zu(e,t),Y(n),e.setAttribute("data-loading","true"),e.setAttribute("aria-busy","true"),e.focus()},Zu=(t,e)=>{const n=Qt(),o=yt();!n||!o||(!e&&fe(Be())&&(e=Be()),Y(n),e&&(te(e),o.setAttribute("data-button-to-replace",e.className),n.insertBefore(o,e)),D([t,n],b.loading))},Ju=(t,e)=>{e.input==="select"||e.input==="radio"?om(t,e):["text","email","number","tel","textarea"].some(n=>n===e.input)&&(bo(e.inputValue)||wo(e.inputValue))&&(_t(Be()),rm(t,e))},Qu=(t,e)=>{const n=t.getInput();if(!n)return null;switch(e.input){case"checkbox":return em(n);case"radio":return tm(n);case"file":return nm(n);default:return e.inputAutoTrim?n.value.trim():n.value}},em=t=>t.checked?1:0,tm=t=>t.checked?t.value:null,nm=t=>t.files&&t.files.length?t.getAttribute("multiple")!==null?t.files:t.files[0]:null,om=(t,e)=>{const n=M();if(!n)return;const o=a=>{e.input==="select"?am(n,On(a),e):e.input==="radio"&&im(n,On(a),e)};bo(e.inputOptions)||wo(e.inputOptions)?(_t(Be()),Zt(e.inputOptions).then(a=>{t.hideLoading(),o(a)})):typeof e.inputOptions=="object"?o(e.inputOptions):at(`Unexpected type of inputOptions! Expected object, Map or Promise, got ${typeof e.inputOptions}`)},rm=(t,e)=>{const n=t.getInput();n&&(te(n),Zt(e.inputValue).then(o=>{n.value=e.input==="number"?`${parseFloat(o)||0}`:`${o}`,Y(n),n.focus(),t.hideLoading()}).catch(o=>{at(`Error in inputValue promise: ${o}`),n.value="",Y(n),n.focus(),t.hideLoading()}))};function am(t,e,n){const o=Ye(t,b.select);if(!o)return;const a=(i,c,l)=>{const s=document.createElement("option");s.value=l,ge(s,c),s.selected=La(l,n.inputValue),i.appendChild(s)};e.forEach(i=>{const c=i[0],l=i[1];if(Array.isArray(l)){const s=document.createElement("optgroup");s.label=c,s.disabled=!1,o.appendChild(s),l.forEach(d=>a(s,d[1],d[0]))}else a(o,l,c)}),o.focus()}function im(t,e,n){const o=Ye(t,b.radio);if(!o)return;e.forEach(i=>{const c=i[0],l=i[1],s=document.createElement("input"),d=document.createElement("label");s.type="radio",s.name=b.radio,s.value=c,La(c,n.inputValue)&&(s.checked=!0);const u=document.createElement("span");ge(u,l),u.className=b.label,d.appendChild(s),d.appendChild(u),o.appendChild(d)});const a=o.querySelectorAll("input");a.length&&a[0].focus()}const On=t=>{const e=[];return t instanceof Map?t.forEach((n,o)=>{let a=n;typeof a=="object"&&(a=On(a)),e.push([o,a])}):Object.keys(t).forEach(n=>{let o=t[n];typeof o=="object"&&(o=On(o)),e.push([n,o])}),e},La=(t,e)=>!!e&&e.toString()===t.toString(),sm=t=>{const e=j.innerParams.get(t);t.disableButtons(),e.input?Oa(t,"confirm"):Oo(t,!0)},lm=t=>{const e=j.innerParams.get(t);t.disableButtons(),e.returnInputValueOnDeny?Oa(t,"deny"):Lo(t,!1)},cm=(t,e)=>{t.disableButtons(),e(kt.cancel)},Oa=(t,e)=>{const n=j.innerParams.get(t);if(!n.input){at(`The "input" parameter is needed to be set when using returnInputValueOn${go(e)}`);return}const o=t.getInput(),a=Qu(t,n);n.inputValidator?dm(t,a,e):o&&!o.checkValidity()?(t.enableButtons(),t.showValidationMessage(n.validationMessage||o.validationMessage)):e==="deny"?Lo(t,a):Oo(t,a)},dm=(t,e,n)=>{const o=j.innerParams.get(t);t.disableInput(),Promise.resolve().then(()=>Zt(o.inputValidator(e,o.validationMessage))).then(i=>{t.enableButtons(),t.enableInput(),i?t.showValidationMessage(i):n==="deny"?Lo(t,e):Oo(t,e)})},Lo=(t,e)=>{const n=j.innerParams.get(t||void 0);n.showLoaderOnDeny&&_t(it()),n.preDeny?(t.isAwaitingPromise=!0,Promise.resolve().then(()=>Zt(n.preDeny(e,n.validationMessage))).then(a=>{a===!1?(t.hideLoading(),nn(t)):t.close({isDenied:!0,value:typeof a>"u"?e:a})}).catch(a=>Ma(t||void 0,a))):t.close({isDenied:!0,value:e})},Na=(t,e)=>{t.close({isConfirmed:!0,value:e})},Ma=(t,e)=>{t.rejectPromise(e)},Oo=(t,e)=>{const n=j.innerParams.get(t||void 0);n.showLoaderOnConfirm&&_t(),n.preConfirm?(t.resetValidationMessage(),t.isAwaitingPromise=!0,Promise.resolve().then(()=>Zt(n.preConfirm(e,n.validationMessage))).then(a=>{fe(xn())||a===!1?(t.hideLoading(),nn(t)):Na(t,typeof a>"u"?e:a)}).catch(a=>Ma(t||void 0,a))):Na(t,e)};function Nn(){const t=j.innerParams.get(this);if(!t)return;const e=j.domCache.get(this);te(e.loader),In()?t.icon&&Y(wt()):um(e),we([e.popup,e.actions],b.loading),e.popup.removeAttribute("aria-busy"),e.popup.removeAttribute("data-loading"),e.confirmButton.disabled=!1,e.denyButton.disabled=!1,e.cancelButton.disabled=!1}const um=t=>{const e=t.popup.getElementsByClassName(t.loader.getAttribute("data-button-to-replace"));e.length?Y(e[0],"inline-block"):Vd()&&te(t.actions)};function Da(){const t=j.innerParams.get(this),e=j.domCache.get(this);return e?An(e.popup,t.input):null}function Va(t,e,n){const o=j.domCache.get(t);e.forEach(a=>{o[a].disabled=n})}function Ra(t,e){const n=M();if(!(!n||!t))if(t.type==="radio"){const o=n.querySelectorAll(`[name="${b.radio}"]`);for(let a=0;a<o.length;a++)o[a].disabled=e}else t.disabled=e}function ja(){Va(this,["confirmButton","denyButton","cancelButton"],!1)}function Ha(){Va(this,["confirmButton","denyButton","cancelButton"],!0)}function za(){Ra(this.getInput(),!1)}function Fa(){Ra(this.getInput(),!0)}function Ua(t){const e=j.domCache.get(this),n=j.innerParams.get(this);ge(e.validationMessage,t),e.validationMessage.className=b["validation-message"],n.customClass&&n.customClass.validationMessage&&D(e.validationMessage,n.customClass.validationMessage),Y(e.validationMessage);const o=this.getInput();o&&(o.setAttribute("aria-invalid","true"),o.setAttribute("aria-describedby",b["validation-message"]),da(o),D(o,b.inputerror))}function Wa(){const t=j.domCache.get(this);t.validationMessage&&te(t.validationMessage);const e=this.getInput();e&&(e.removeAttribute("aria-invalid"),e.removeAttribute("aria-describedby"),we(e,b.inputerror))}const Et={title:"",titleText:"",text:"",html:"",footer:"",icon:void 0,iconColor:void 0,iconHtml:void 0,template:void 0,toast:!1,draggable:!1,animation:!0,theme:"light",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:{},inputAutoFocus:!0,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,topLayer:!1},mm=["allowEscapeKey","allowOutsideClick","background","buttonsStyling","cancelButtonAriaLabel","cancelButtonColor","cancelButtonText","closeButtonAriaLabel","closeButtonHtml","color","confirmButtonAriaLabel","confirmButtonColor","confirmButtonText","currentProgressStep","customClass","denyButtonAriaLabel","denyButtonColor","denyButtonText","didClose","didDestroy","draggable","footer","hideClass","html","icon","iconColor","iconHtml","imageAlt","imageHeight","imageUrl","imageWidth","preConfirm","preDeny","progressSteps","returnFocus","reverseButtons","showCancelButton","showCloseButton","showConfirmButton","showDenyButton","text","title","titleText","theme","willClose"],fm={allowEnterKey:void 0},pm=["allowOutsideClick","allowEnterKey","backdrop","draggable","focusConfirm","focusDeny","focusCancel","returnFocus","heightAuto","keydownListenerCapture"],Ka=t=>Object.prototype.hasOwnProperty.call(Et,t),Ga=t=>mm.indexOf(t)!==-1,qa=t=>fm[t],hm=t=>{Ka(t)||ie(`Unknown parameter "${t}"`)},gm=t=>{pm.includes(t)&&ie(`The parameter "${t}" is incompatible with toasts`)},bm=t=>{const e=qa(t);e&&ia(t,e)},Ya=t=>{t.backdrop===!1&&t.allowOutsideClick&&ie('"allowOutsideClick" parameter requires `backdrop` parameter to be set to `true`'),t.theme&&!["light","dark","auto","minimal","borderless","embed-iframe","bulma","bulma-light","bulma-dark"].includes(t.theme)&&ie(`Invalid theme "${t.theme}"`);for(const e in t)hm(e),t.toast&&gm(e),bm(e)};function Xa(t){const e=se(),n=M(),o=j.innerParams.get(this);if(!n||De(n,o.hideClass.popup)){ie("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.");return}const a=wm(t),i=Object.assign({},o,a);Ya(i),e.dataset.swal2Theme=i.theme,_a(this,i),j.innerParams.set(this,i),Object.defineProperties(this,{params:{value:Object.assign({},this.params,t),writable:!1,enumerable:!0}})}const wm=t=>{const e={};return Object.keys(t).forEach(n=>{Ga(n)?e[n]=t[n]:ie(`Invalid parameter to update: ${n}`)}),e};function Za(){const t=j.domCache.get(this),e=j.innerParams.get(this);if(!e){Ja(this);return}t.popup&&T.swalCloseEventFinishedCallback&&(T.swalCloseEventFinishedCallback(),delete T.swalCloseEventFinishedCallback),typeof e.didDestroy=="function"&&e.didDestroy(),T.eventEmitter.emit("didDestroy"),vm(this)}const vm=t=>{Ja(t),delete t.params,delete T.keydownHandler,delete T.keydownTarget,delete T.currentInstance},Ja=t=>{t.isAwaitingPromise?(No(j,t),t.isAwaitingPromise=!0):(No(Ct,t),No(j,t),delete t.isAwaitingPromise,delete t.disableButtons,delete t.enableButtons,delete t.getInput,delete t.disableInput,delete t.enableInput,delete t.hideLoading,delete t.disableLoading,delete t.showValidationMessage,delete t.resetValidationMessage,delete t.close,delete t.closePopup,delete t.closeModal,delete t.closeToast,delete t.rejectPromise,delete t.update,delete t._destroy)},No=(t,e)=>{for(const n in t)t[n].delete(e)};var ym=Object.freeze({__proto__:null,_destroy:Za,close:Xe,closeModal:Xe,closePopup:Xe,closeToast:Xe,disableButtons:Ha,disableInput:Fa,disableLoading:Nn,enableButtons:ja,enableInput:za,getInput:Da,handleAwaitingPromise:nn,hideLoading:Nn,rejectPromise:$a,resetValidationMessage:Wa,showValidationMessage:Ua,update:Xa});const km=(t,e,n)=>{t.toast?Cm(t,e,n):(_m(e),Em(e),xm(t,e,n))},Cm=(t,e,n)=>{e.popup.onclick=()=>{t&&(Sm(t)||t.timer||t.input)||n(kt.close)}},Sm=t=>!!(t.showConfirmButton||t.showDenyButton||t.showCancelButton||t.showCloseButton);let Mn=!1;const _m=t=>{t.popup.onmousedown=()=>{t.container.onmouseup=function(e){t.container.onmouseup=()=>{},e.target===t.container&&(Mn=!0)}}},Em=t=>{t.container.onmousedown=e=>{e.target===t.container&&e.preventDefault(),t.popup.onmouseup=function(n){t.popup.onmouseup=()=>{},(n.target===t.popup||n.target instanceof HTMLElement&&t.popup.contains(n.target))&&(Mn=!0)}}},xm=(t,e,n)=>{e.container.onclick=o=>{if(Mn){Mn=!1;return}o.target===e.container&&En(t.allowOutsideClick)&&n(kt.backdrop)}},Tm=t=>typeof t=="object"&&t.jquery,Qa=t=>t instanceof Element||Tm(t),Im=t=>{const e={};return typeof t[0]=="object"&&!Qa(t[0])?Object.assign(e,t[0]):["title","html","icon"].forEach((n,o)=>{const a=t[o];typeof a=="string"||Qa(a)?e[n]=a:a!==void 0&&at(`Unexpected type of ${n}! Expected "string" or "Element", got ${typeof a}`)}),e};function Am(...t){return new this(...t)}function Pm(t){class e extends this{_main(o,a){return super._main(o,Object.assign({},t,a))}}return e}const $m=()=>T.timeout&&T.timeout.getTimerLeft(),ei=()=>{if(T.timeout)return jd(),T.timeout.stop()},ti=()=>{if(T.timeout){const t=T.timeout.start();return xo(t),t}},Bm=()=>{const t=T.timeout;return t&&(t.running?ei():ti())},Lm=t=>{if(T.timeout){const e=T.timeout.increase(t);return xo(e,!0),e}},Om=()=>!!(T.timeout&&T.timeout.isRunning());let ni=!1;const Mo={};function Nm(t="data-swal-template"){Mo[t]=this,ni||(document.body.addEventListener("click",Mm),ni=!0)}const Mm=t=>{for(let e=t.target;e&&e!==document;e=e.parentNode)for(const n in Mo){const o=e.getAttribute(n);if(o){Mo[n].fire({template:o});return}}};class Dm{constructor(){this.events={}}_getHandlersByEventName(e){return typeof this.events[e]>"u"&&(this.events[e]=[]),this.events[e]}on(e,n){const o=this._getHandlersByEventName(e);o.includes(n)||o.push(n)}once(e,n){const o=(...a)=>{this.removeListener(e,o),n.apply(this,a)};this.on(e,o)}emit(e,...n){this._getHandlersByEventName(e).forEach(o=>{try{o.apply(this,n)}catch(a){console.error(a)}})}removeListener(e,n){const o=this._getHandlersByEventName(e),a=o.indexOf(n);a>-1&&o.splice(a,1)}removeAllListeners(e){this.events[e]!==void 0&&(this.events[e].length=0)}reset(){this.events={}}}T.eventEmitter=new Dm;var Vm=Object.freeze({__proto__:null,argsToParams:Im,bindClickHandler:Nm,clickCancel:Iu,clickConfirm:Ea,clickDeny:Tu,enableLoading:_t,fire:Am,getActions:Qt,getCancelButton:vt,getCloseButton:ko,getConfirmButton:Be,getContainer:se,getDenyButton:it,getFocusableElements:Co,getFooter:ca,getHtmlContainer:vo,getIcon:wt,getIconContent:Ld,getImage:la,getInputLabel:Od,getLoader:yt,getPopup:M,getProgressSteps:yo,getTimerLeft:$m,getTimerProgressBar:Tn,getTitle:sa,getValidationMessage:xn,increaseTimer:Lm,isDeprecatedParameter:qa,isLoading:Md,isTimerRunning:Om,isUpdatableParameter:Ga,isValidParameter:Ka,isVisible:xu,mixin:Pm,off:(t,e)=>{if(!t){T.eventEmitter.reset();return}e?T.eventEmitter.removeListener(t,e):T.eventEmitter.removeAllListeners(t)},on:(t,e)=>{T.eventEmitter.on(t,e)},once:(t,e)=>{T.eventEmitter.once(t,e)},resumeTimer:ti,showLoading:_t,stopTimer:ei,toggleTimer:Bm});class Rm{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.started&&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 oi=["swal-title","swal-html","swal-footer"],jm=t=>{const e=typeof t.template=="string"?document.querySelector(t.template):t.template;if(!e)return{};const n=e.content;return qm(n),Object.assign(Hm(n),zm(n),Fm(n),Um(n),Wm(n),Km(n),Gm(n,oi))},Hm=t=>{const e={};return Array.from(t.querySelectorAll("swal-param")).forEach(o=>{ct(o,["name","value"]);const a=o.getAttribute("name"),i=o.getAttribute("value");!a||!i||(typeof Et[a]=="boolean"?e[a]=i!=="false":typeof Et[a]=="object"?e[a]=JSON.parse(i):e[a]=i)}),e},zm=t=>{const e={};return Array.from(t.querySelectorAll("swal-function-param")).forEach(o=>{const a=o.getAttribute("name"),i=o.getAttribute("value");!a||!i||(e[a]=new Function(`return ${i}`)())}),e},Fm=t=>{const e={};return Array.from(t.querySelectorAll("swal-button")).forEach(o=>{ct(o,["type","color","aria-label"]);const a=o.getAttribute("type");!a||!["confirm","cancel","deny"].includes(a)||(e[`${a}ButtonText`]=o.innerHTML,e[`show${go(a)}Button`]=!0,o.hasAttribute("color")&&(e[`${a}ButtonColor`]=o.getAttribute("color")),o.hasAttribute("aria-label")&&(e[`${a}ButtonAriaLabel`]=o.getAttribute("aria-label")))}),e},Um=t=>{const e={},n=t.querySelector("swal-image");return n&&(ct(n,["src","width","height","alt"]),n.hasAttribute("src")&&(e.imageUrl=n.getAttribute("src")||void 0),n.hasAttribute("width")&&(e.imageWidth=n.getAttribute("width")||void 0),n.hasAttribute("height")&&(e.imageHeight=n.getAttribute("height")||void 0),n.hasAttribute("alt")&&(e.imageAlt=n.getAttribute("alt")||void 0)),e},Wm=t=>{const e={},n=t.querySelector("swal-icon");return n&&(ct(n,["type","color"]),n.hasAttribute("type")&&(e.icon=n.getAttribute("type")),n.hasAttribute("color")&&(e.iconColor=n.getAttribute("color")),e.iconHtml=n.innerHTML),e},Km=t=>{const e={},n=t.querySelector("swal-input");n&&(ct(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=Array.from(t.querySelectorAll("swal-input-option"));return o.length&&(e.inputOptions={},o.forEach(a=>{ct(a,["value"]);const i=a.getAttribute("value");if(!i)return;const c=a.innerHTML;e.inputOptions[i]=c})),e},Gm=(t,e)=>{const n={};for(const o in e){const a=e[o],i=t.querySelector(a);i&&(ct(i,[]),n[a.replace(/^swal-/,"")]=i.innerHTML.trim())}return n},qm=t=>{const e=oi.concat(["swal-param","swal-function-param","swal-button","swal-image","swal-icon","swal-input","swal-input-option"]);Array.from(t.children).forEach(n=>{const o=n.tagName.toLowerCase();e.includes(o)||ie(`Unrecognized element <${o}>`)})},ct=(t,e)=>{Array.from(t.attributes).forEach(n=>{e.indexOf(n.name)===-1&&ie([`Unrecognized attribute "${n.name}" on <${t.tagName.toLowerCase()}>.`,`${e.length?`Allowed attributes are: ${e.join(", ")}`:"To set the value, use HTML within the element."}`])})},ri=10,Ym=t=>{const e=se(),n=M();typeof t.willOpen=="function"&&t.willOpen(n),T.eventEmitter.emit("willOpen",n);const a=window.getComputedStyle(document.body).overflowY;Jm(e,n,t),setTimeout(()=>{Xm(e,n)},ri),So()&&(Zm(e,t.scrollbarPadding,a),Mu()),!In()&&!T.previousActiveElement&&(T.previousActiveElement=document.activeElement),typeof t.didOpen=="function"&&setTimeout(()=>t.didOpen(n)),T.eventEmitter.emit("didOpen",n),we(e,b["no-transition"])},Dn=t=>{const e=M();if(t.target!==e)return;const n=se();e.removeEventListener("animationend",Dn),e.removeEventListener("transitionend",Dn),n.style.overflowY="auto"},Xm=(t,e)=>{fa(e)?(t.style.overflowY="hidden",e.addEventListener("animationend",Dn),e.addEventListener("transitionend",Dn)):t.style.overflowY="auto"},Zm=(t,e,n)=>{Du(),e&&n!=="hidden"&&Uu(n),setTimeout(()=>{t.scrollTop=0})},Jm=(t,e,n)=>{D(t,n.showClass.backdrop),n.animation?(e.style.setProperty("opacity","0","important"),Y(e,"grid"),setTimeout(()=>{D(e,n.showClass.popup),e.style.removeProperty("opacity")},ri)):Y(e,"grid"),D([document.documentElement,document.body],b.shown),n.heightAuto&&n.backdrop&&!n.toast&&D([document.documentElement,document.body],b["height-auto"])};var ai={email:(t,e)=>/^[a-zA-Z0-9.+_'-]+@[a-zA-Z0-9.-]+\.[a-zA-Z0-9-]+$/.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 Qm(t){t.inputValidator||(t.input==="email"&&(t.inputValidator=ai.email),t.input==="url"&&(t.inputValidator=ai.url))}function ef(t){(!t.target||typeof t.target=="string"&&!document.querySelector(t.target)||typeof t.target!="string"&&!t.target.appendChild)&&(ie('Target parameter is not valid, defaulting to "body"'),t.target="body")}function tf(t){Qm(t),t.showLoaderOnConfirm&&!t.preConfirm&&ie(`showLoaderOnConfirm is set to true, but preConfirm is not defined.
|
|
424
|
-
showLoaderOnConfirm should be used together with preConfirm, see usage example:
|
|
425
|
-
https://sweetalert2.github.io/#ajax-request`),ef(t),typeof t.title=="string"&&(t.title=t.title.split(`
|
|
426
|
-
`).join("<br />")),qd(t)}let Le;var Vn=new WeakMap;class G{constructor(...e){if(Td(this,Vn,void 0),typeof window>"u")return;Le=this;const n=Object.freeze(this.constructor.argsToParams(e));this.params=n,this.isAwaitingPromise=!1,Id(Vn,this,this._main(Le.params))}_main(e,n={}){if(Ya(Object.assign({},n,e)),T.currentInstance){const i=Ct.swalPromiseResolve.get(T.currentInstance),{isAwaitingPromise:c}=T.currentInstance;T.currentInstance._destroy(),c||i({isDismissed:!0}),So()&&Ia()}T.currentInstance=Le;const o=of(e,n);tf(o),Object.freeze(o),T.timeout&&(T.timeout.stop(),delete T.timeout),clearTimeout(T.restoreFocusTimeout);const a=rf(Le);return _a(Le,o),j.innerParams.set(Le,o),nf(Le,a,o)}then(e){return na(Vn,this).then(e)}finally(e){return na(Vn,this).finally(e)}}const nf=(t,e,n)=>new Promise((o,a)=>{const i=c=>{t.close({isDismissed:!0,dismiss:c})};Ct.swalPromiseResolve.set(t,o),Ct.swalPromiseReject.set(t,a),e.confirmButton.onclick=()=>{sm(t)},e.denyButton.onclick=()=>{lm(t)},e.cancelButton.onclick=()=>{cm(t,i)},e.closeButton.onclick=()=>{i(kt.close)},km(n,e,i),Au(T,n,i),Ju(t,n),Ym(n),af(T,n,i),sf(e,n),setTimeout(()=>{e.container.scrollTop=0})}),of=(t,e)=>{const n=jm(t),o=Object.assign({},Et,e,n,t);return o.showClass=Object.assign({},Et.showClass,o.showClass),o.hideClass=Object.assign({},Et.hideClass,o.hideClass),o.animation===!1&&(o.showClass={backdrop:"swal2-noanimation"},o.hideClass={}),o},rf=t=>{const e={popup:M(),container:se(),actions:Qt(),confirmButton:Be(),denyButton:it(),cancelButton:vt(),loader:yt(),closeButton:ko(),validationMessage:xn(),progressSteps:yo()};return j.domCache.set(t,e),e},af=(t,e,n)=>{const o=Tn();te(o),e.timer&&(t.timeout=new Rm(()=>{n("timer"),delete t.timeout},e.timer),e.timerProgressBar&&(Y(o),be(o,e,"timerProgressBar"),setTimeout(()=>{t.timeout&&t.timeout.running&&xo(e.timer)})))},sf=(t,e)=>{if(!e.toast){if(!En(e.allowEnterKey)){ia("allowEnterKey"),df();return}lf(t)||cf(t,e)||Bo(-1,1)}},lf=t=>{const e=Array.from(t.popup.querySelectorAll("[autofocus]"));for(const n of e)if(n instanceof HTMLElement&&fe(n))return n.focus(),!0;return!1},cf=(t,e)=>e.focusDeny&&fe(t.denyButton)?(t.denyButton.focus(),!0):e.focusCancel&&fe(t.cancelButton)?(t.cancelButton.focus(),!0):e.focusConfirm&&fe(t.confirmButton)?(t.confirmButton.focus(),!0):!1,df=()=>{document.activeElement instanceof HTMLElement&&typeof document.activeElement.blur=="function"&&document.activeElement.blur()};G.prototype.disableButtons=Ha,G.prototype.enableButtons=ja,G.prototype.getInput=Da,G.prototype.disableInput=Fa,G.prototype.enableInput=za,G.prototype.hideLoading=Nn,G.prototype.disableLoading=Nn,G.prototype.showValidationMessage=Ua,G.prototype.resetValidationMessage=Wa,G.prototype.close=Xe,G.prototype.closePopup=Xe,G.prototype.closeModal=Xe,G.prototype.closeToast=Xe,G.prototype.rejectPromise=$a,G.prototype.update=Xa,G.prototype._destroy=Za,Object.assign(G,Vm),Object.keys(ym).forEach(t=>{G[t]=function(...e){return Le&&Le[t]?Le[t](...e):null}}),G.DismissReason=kt,G.version="11.23.0";const dt=G;dt.default=dt,typeof document<"u"&&(function(t,e){var n=t.createElement("style");if(t.getElementsByTagName("head")[0].appendChild(n),n.styleSheet)n.styleSheet.disabled||(n.styleSheet.cssText=e);else try{n.innerHTML=e}catch{n.innerText=e}})(document,':root{--swal2-outline: 0 0 0 3px rgba(100, 150, 200, 0.5);--swal2-container-padding: 0.625em;--swal2-backdrop: rgba(0, 0, 0, 0.4);--swal2-backdrop-transition: background-color 0.1s;--swal2-width: 32em;--swal2-padding: 0 0 1.25em;--swal2-border: none;--swal2-border-radius: 0.3125rem;--swal2-background: white;--swal2-color: #545454;--swal2-show-animation: swal2-show 0.3s;--swal2-hide-animation: swal2-hide 0.15s forwards;--swal2-icon-zoom: 1;--swal2-icon-animations: true;--swal2-title-padding: 0.8em 1em 0;--swal2-html-container-padding: 1em 1.6em 0.3em;--swal2-input-border: 1px solid #d9d9d9;--swal2-input-border-radius: 0.1875em;--swal2-input-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.06), 0 0 0 3px transparent;--swal2-input-background: transparent;--swal2-input-transition: border-color 0.2s, box-shadow 0.2s;--swal2-input-hover-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.06), 0 0 0 3px transparent;--swal2-input-focus-border: 1px solid #b4dbed;--swal2-input-focus-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.06), 0 0 0 3px $swal2-outline-color;--swal2-progress-step-background: #add8e6;--swal2-validation-message-background: #f0f0f0;--swal2-validation-message-color: #666;--swal2-footer-border-color: #eee;--swal2-footer-background: transparent;--swal2-footer-color: inherit;--swal2-timer-progress-bar-background: rgba(0, 0, 0, 0.3);--swal2-close-button-position: initial;--swal2-close-button-inset: auto;--swal2-close-button-font-size: 2.5em;--swal2-close-button-color: #ccc;--swal2-close-button-transition: color 0.2s, box-shadow 0.2s;--swal2-close-button-outline: initial;--swal2-close-button-box-shadow: inset 0 0 0 3px transparent;--swal2-close-button-focus-box-shadow: inset var(--swal2-outline);--swal2-close-button-hover-transform: none;--swal2-actions-justify-content: center;--swal2-actions-width: auto;--swal2-actions-margin: 1.25em auto 0;--swal2-actions-padding: 0;--swal2-actions-border-radius: 0;--swal2-actions-background: transparent;--swal2-action-button-transition: background-color 0.2s, box-shadow 0.2s;--swal2-action-button-hover: black 10%;--swal2-action-button-active: black 10%;--swal2-confirm-button-box-shadow: none;--swal2-confirm-button-border-radius: 0.25em;--swal2-confirm-button-background-color: #7066e0;--swal2-confirm-button-color: #fff;--swal2-deny-button-box-shadow: none;--swal2-deny-button-border-radius: 0.25em;--swal2-deny-button-background-color: #dc3741;--swal2-deny-button-color: #fff;--swal2-cancel-button-box-shadow: none;--swal2-cancel-button-border-radius: 0.25em;--swal2-cancel-button-background-color: #6e7881;--swal2-cancel-button-color: #fff;--swal2-toast-show-animation: swal2-toast-show 0.5s;--swal2-toast-hide-animation: swal2-toast-hide 0.1s forwards;--swal2-toast-border: none;--swal2-toast-box-shadow: 0 0 1px hsl(0deg 0% 0% / 0.075), 0 1px 2px hsl(0deg 0% 0% / 0.075), 1px 2px 4px hsl(0deg 0% 0% / 0.075), 1px 3px 8px hsl(0deg 0% 0% / 0.075), 2px 4px 16px hsl(0deg 0% 0% / 0.075)}[data-swal2-theme=dark]{--swal2-dark-theme-black: #19191a;--swal2-dark-theme-white: #e1e1e1;--swal2-background: var(--swal2-dark-theme-black);--swal2-color: var(--swal2-dark-theme-white);--swal2-footer-border-color: #555;--swal2-input-background: color-mix(in srgb, var(--swal2-dark-theme-black), var(--swal2-dark-theme-white) 10%);--swal2-validation-message-background: color-mix( in srgb, var(--swal2-dark-theme-black), var(--swal2-dark-theme-white) 10% );--swal2-validation-message-color: var(--swal2-dark-theme-white);--swal2-timer-progress-bar-background: rgba(255, 255, 255, 0.7)}@media(prefers-color-scheme: dark){[data-swal2-theme=auto]{--swal2-dark-theme-black: #19191a;--swal2-dark-theme-white: #e1e1e1;--swal2-background: var(--swal2-dark-theme-black);--swal2-color: var(--swal2-dark-theme-white);--swal2-footer-border-color: #555;--swal2-input-background: color-mix(in srgb, var(--swal2-dark-theme-black), var(--swal2-dark-theme-white) 10%);--swal2-validation-message-background: color-mix( in srgb, var(--swal2-dark-theme-black), var(--swal2-dark-theme-white) 10% );--swal2-validation-message-color: var(--swal2-dark-theme-white);--swal2-timer-progress-bar-background: rgba(255, 255, 255, 0.7)}}body.swal2-shown:not(.swal2-no-backdrop,.swal2-toast-shown){overflow:hidden}body.swal2-height-auto{height:auto !important}body.swal2-no-backdrop .swal2-container{background-color:rgba(0,0,0,0) !important;pointer-events:none}body.swal2-no-backdrop .swal2-container .swal2-popup{pointer-events:all}body.swal2-no-backdrop .swal2-container .swal2-modal{box-shadow:0 0 10px var(--swal2-backdrop)}body.swal2-toast-shown .swal2-container{box-sizing:border-box;width:360px;max-width:100%;background-color:rgba(0,0,0,0);pointer-events:none}body.swal2-toast-shown .swal2-container.swal2-top{inset:0 auto auto 50%;transform:translateX(-50%)}body.swal2-toast-shown .swal2-container.swal2-top-end,body.swal2-toast-shown .swal2-container.swal2-top-right{inset:0 0 auto auto}body.swal2-toast-shown .swal2-container.swal2-top-start,body.swal2-toast-shown .swal2-container.swal2-top-left{inset:0 auto auto 0}body.swal2-toast-shown .swal2-container.swal2-center-start,body.swal2-toast-shown .swal2-container.swal2-center-left{inset:50% auto auto 0;transform:translateY(-50%)}body.swal2-toast-shown .swal2-container.swal2-center{inset:50% auto auto 50%;transform:translate(-50%, -50%)}body.swal2-toast-shown .swal2-container.swal2-center-end,body.swal2-toast-shown .swal2-container.swal2-center-right{inset:50% 0 auto auto;transform:translateY(-50%)}body.swal2-toast-shown .swal2-container.swal2-bottom-start,body.swal2-toast-shown .swal2-container.swal2-bottom-left{inset:auto auto 0 0}body.swal2-toast-shown .swal2-container.swal2-bottom{inset:auto auto 0 50%;transform:translateX(-50%)}body.swal2-toast-shown .swal2-container.swal2-bottom-end,body.swal2-toast-shown .swal2-container.swal2-bottom-right{inset:auto 0 0 auto}@media print{body.swal2-shown:not(.swal2-no-backdrop,.swal2-toast-shown){overflow-y:scroll !important}body.swal2-shown:not(.swal2-no-backdrop,.swal2-toast-shown)>[aria-hidden=true]{display:none}body.swal2-shown:not(.swal2-no-backdrop,.swal2-toast-shown) .swal2-container{position:static !important}}div:where(.swal2-container){display:grid;position:fixed;z-index:1060;inset:0;box-sizing:border-box;grid-template-areas:"top-start top top-end" "center-start center center-end" "bottom-start bottom-center bottom-end";grid-template-rows:minmax(min-content, auto) minmax(min-content, auto) minmax(min-content, auto);height:100%;padding:var(--swal2-container-padding);overflow-x:hidden;transition:var(--swal2-backdrop-transition);-webkit-overflow-scrolling:touch}div:where(.swal2-container).swal2-backdrop-show,div:where(.swal2-container).swal2-noanimation{background:var(--swal2-backdrop)}div:where(.swal2-container).swal2-backdrop-hide{background:rgba(0,0,0,0) !important}div:where(.swal2-container).swal2-top-start,div:where(.swal2-container).swal2-center-start,div:where(.swal2-container).swal2-bottom-start{grid-template-columns:minmax(0, 1fr) auto auto}div:where(.swal2-container).swal2-top,div:where(.swal2-container).swal2-center,div:where(.swal2-container).swal2-bottom{grid-template-columns:auto minmax(0, 1fr) auto}div:where(.swal2-container).swal2-top-end,div:where(.swal2-container).swal2-center-end,div:where(.swal2-container).swal2-bottom-end{grid-template-columns:auto auto minmax(0, 1fr)}div:where(.swal2-container).swal2-top-start>.swal2-popup{align-self:start}div:where(.swal2-container).swal2-top>.swal2-popup{grid-column:2;place-self:start center}div:where(.swal2-container).swal2-top-end>.swal2-popup,div:where(.swal2-container).swal2-top-right>.swal2-popup{grid-column:3;place-self:start end}div:where(.swal2-container).swal2-center-start>.swal2-popup,div:where(.swal2-container).swal2-center-left>.swal2-popup{grid-row:2;align-self:center}div:where(.swal2-container).swal2-center>.swal2-popup{grid-column:2;grid-row:2;place-self:center center}div:where(.swal2-container).swal2-center-end>.swal2-popup,div:where(.swal2-container).swal2-center-right>.swal2-popup{grid-column:3;grid-row:2;place-self:center end}div:where(.swal2-container).swal2-bottom-start>.swal2-popup,div:where(.swal2-container).swal2-bottom-left>.swal2-popup{grid-column:1;grid-row:3;align-self:end}div:where(.swal2-container).swal2-bottom>.swal2-popup{grid-column:2;grid-row:3;place-self:end center}div:where(.swal2-container).swal2-bottom-end>.swal2-popup,div:where(.swal2-container).swal2-bottom-right>.swal2-popup{grid-column:3;grid-row:3;place-self:end end}div:where(.swal2-container).swal2-grow-row>.swal2-popup,div:where(.swal2-container).swal2-grow-fullscreen>.swal2-popup{grid-column:1/4;width:100%}div:where(.swal2-container).swal2-grow-column>.swal2-popup,div:where(.swal2-container).swal2-grow-fullscreen>.swal2-popup{grid-row:1/4;align-self:stretch}div:where(.swal2-container).swal2-no-transition{transition:none !important}div:where(.swal2-container)[popover]{width:auto;border:0}div:where(.swal2-container) div:where(.swal2-popup){display:none;position:relative;box-sizing:border-box;grid-template-columns:minmax(0, 100%);width:var(--swal2-width);max-width:100%;padding:var(--swal2-padding);border:var(--swal2-border);border-radius:var(--swal2-border-radius);background:var(--swal2-background);color:var(--swal2-color);font-family:inherit;font-size:1rem;container-name:swal2-popup}div:where(.swal2-container) div:where(.swal2-popup):focus{outline:none}div:where(.swal2-container) div:where(.swal2-popup).swal2-loading{overflow-y:hidden}div:where(.swal2-container) div:where(.swal2-popup).swal2-draggable{cursor:grab}div:where(.swal2-container) div:where(.swal2-popup).swal2-draggable div:where(.swal2-icon){cursor:grab}div:where(.swal2-container) div:where(.swal2-popup).swal2-dragging{cursor:grabbing}div:where(.swal2-container) div:where(.swal2-popup).swal2-dragging div:where(.swal2-icon){cursor:grabbing}div:where(.swal2-container) h2:where(.swal2-title){position:relative;max-width:100%;margin:0;padding:var(--swal2-title-padding);color:inherit;font-size:1.875em;font-weight:600;text-align:center;text-transform:none;overflow-wrap:break-word;cursor:initial}div:where(.swal2-container) div:where(.swal2-actions){display:flex;z-index:1;box-sizing:border-box;flex-wrap:wrap;align-items:center;justify-content:var(--swal2-actions-justify-content);width:var(--swal2-actions-width);margin:var(--swal2-actions-margin);padding:var(--swal2-actions-padding);border-radius:var(--swal2-actions-border-radius);background:var(--swal2-actions-background)}div:where(.swal2-container) div:where(.swal2-loader){display:none;align-items:center;justify-content:center;width:2.2em;height:2.2em;margin:0 1.875em;animation:swal2-rotate-loading 1.5s linear 0s infinite normal;border-width:.25em;border-style:solid;border-radius:100%;border-color:#2778c4 rgba(0,0,0,0) #2778c4 rgba(0,0,0,0)}div:where(.swal2-container) button:where(.swal2-styled){margin:.3125em;padding:.625em 1.1em;transition:var(--swal2-action-button-transition);border:none;box-shadow:0 0 0 3px rgba(0,0,0,0);font-weight:500}div:where(.swal2-container) button:where(.swal2-styled):not([disabled]){cursor:pointer}div:where(.swal2-container) button:where(.swal2-styled):where(.swal2-confirm){border-radius:var(--swal2-confirm-button-border-radius);background:initial;background-color:var(--swal2-confirm-button-background-color);box-shadow:var(--swal2-confirm-button-box-shadow);color:var(--swal2-confirm-button-color);font-size:1em}div:where(.swal2-container) button:where(.swal2-styled):where(.swal2-confirm):hover{background-color:color-mix(in srgb, var(--swal2-confirm-button-background-color), var(--swal2-action-button-hover))}div:where(.swal2-container) button:where(.swal2-styled):where(.swal2-confirm):active{background-color:color-mix(in srgb, var(--swal2-confirm-button-background-color), var(--swal2-action-button-active))}div:where(.swal2-container) button:where(.swal2-styled):where(.swal2-deny){border-radius:var(--swal2-deny-button-border-radius);background:initial;background-color:var(--swal2-deny-button-background-color);box-shadow:var(--swal2-deny-button-box-shadow);color:var(--swal2-deny-button-color);font-size:1em}div:where(.swal2-container) button:where(.swal2-styled):where(.swal2-deny):hover{background-color:color-mix(in srgb, var(--swal2-deny-button-background-color), var(--swal2-action-button-hover))}div:where(.swal2-container) button:where(.swal2-styled):where(.swal2-deny):active{background-color:color-mix(in srgb, var(--swal2-deny-button-background-color), var(--swal2-action-button-active))}div:where(.swal2-container) button:where(.swal2-styled):where(.swal2-cancel){border-radius:var(--swal2-cancel-button-border-radius);background:initial;background-color:var(--swal2-cancel-button-background-color);box-shadow:var(--swal2-cancel-button-box-shadow);color:var(--swal2-cancel-button-color);font-size:1em}div:where(.swal2-container) button:where(.swal2-styled):where(.swal2-cancel):hover{background-color:color-mix(in srgb, var(--swal2-cancel-button-background-color), var(--swal2-action-button-hover))}div:where(.swal2-container) button:where(.swal2-styled):where(.swal2-cancel):active{background-color:color-mix(in srgb, var(--swal2-cancel-button-background-color), var(--swal2-action-button-active))}div:where(.swal2-container) button:where(.swal2-styled):focus-visible{outline:none;box-shadow:var(--swal2-action-button-focus-box-shadow)}div:where(.swal2-container) button:where(.swal2-styled)[disabled]:not(.swal2-loading){opacity:.4}div:where(.swal2-container) button:where(.swal2-styled)::-moz-focus-inner{border:0}div:where(.swal2-container) div:where(.swal2-footer){margin:1em 0 0;padding:1em 1em 0;border-top:1px solid var(--swal2-footer-border-color);background:var(--swal2-footer-background);color:var(--swal2-footer-color);font-size:1em;text-align:center;cursor:initial}div:where(.swal2-container) .swal2-timer-progress-bar-container{position:absolute;right:0;bottom:0;left:0;grid-column:auto !important;overflow:hidden;border-bottom-right-radius:var(--swal2-border-radius);border-bottom-left-radius:var(--swal2-border-radius)}div:where(.swal2-container) div:where(.swal2-timer-progress-bar){width:100%;height:.25em;background:var(--swal2-timer-progress-bar-background)}div:where(.swal2-container) img:where(.swal2-image){max-width:100%;margin:2em auto 1em;cursor:initial}div:where(.swal2-container) button:where(.swal2-close){position:var(--swal2-close-button-position);inset:var(--swal2-close-button-inset);z-index:2;align-items:center;justify-content:center;width:1.2em;height:1.2em;margin-top:0;margin-right:0;margin-bottom:-1.2em;padding:0;overflow:hidden;transition:var(--swal2-close-button-transition);border:none;border-radius:var(--swal2-border-radius);outline:var(--swal2-close-button-outline);background:rgba(0,0,0,0);color:var(--swal2-close-button-color);font-family:monospace;font-size:var(--swal2-close-button-font-size);cursor:pointer;justify-self:end}div:where(.swal2-container) button:where(.swal2-close):hover{transform:var(--swal2-close-button-hover-transform);background:rgba(0,0,0,0);color:#f27474}div:where(.swal2-container) button:where(.swal2-close):focus-visible{outline:none;box-shadow:var(--swal2-close-button-focus-box-shadow)}div:where(.swal2-container) button:where(.swal2-close)::-moz-focus-inner{border:0}div:where(.swal2-container) div:where(.swal2-html-container){z-index:1;justify-content:center;margin:0;padding:var(--swal2-html-container-padding);overflow:auto;color:inherit;font-size:1.125em;font-weight:normal;line-height:normal;text-align:center;overflow-wrap:break-word;word-break:break-word;cursor:initial}div:where(.swal2-container) input:where(.swal2-input),div:where(.swal2-container) input:where(.swal2-file),div:where(.swal2-container) textarea:where(.swal2-textarea),div:where(.swal2-container) select:where(.swal2-select),div:where(.swal2-container) div:where(.swal2-radio),div:where(.swal2-container) label:where(.swal2-checkbox){margin:1em 2em 3px}div:where(.swal2-container) input:where(.swal2-input),div:where(.swal2-container) input:where(.swal2-file),div:where(.swal2-container) textarea:where(.swal2-textarea){box-sizing:border-box;width:auto;transition:var(--swal2-input-transition);border:var(--swal2-input-border);border-radius:var(--swal2-input-border-radius);background:var(--swal2-input-background);box-shadow:var(--swal2-input-box-shadow);color:inherit;font-size:1.125em}div:where(.swal2-container) input:where(.swal2-input).swal2-inputerror,div:where(.swal2-container) input:where(.swal2-file).swal2-inputerror,div:where(.swal2-container) textarea:where(.swal2-textarea).swal2-inputerror{border-color:#f27474 !important;box-shadow:0 0 2px #f27474 !important}div:where(.swal2-container) input:where(.swal2-input):hover,div:where(.swal2-container) input:where(.swal2-file):hover,div:where(.swal2-container) textarea:where(.swal2-textarea):hover{box-shadow:var(--swal2-input-hover-box-shadow)}div:where(.swal2-container) input:where(.swal2-input):focus,div:where(.swal2-container) input:where(.swal2-file):focus,div:where(.swal2-container) textarea:where(.swal2-textarea):focus{border:var(--swal2-input-focus-border);outline:none;box-shadow:var(--swal2-input-focus-box-shadow)}div:where(.swal2-container) input:where(.swal2-input)::placeholder,div:where(.swal2-container) input:where(.swal2-file)::placeholder,div:where(.swal2-container) textarea:where(.swal2-textarea)::placeholder{color:#ccc}div:where(.swal2-container) .swal2-range{margin:1em 2em 3px;background:var(--swal2-background)}div:where(.swal2-container) .swal2-range input{width:80%}div:where(.swal2-container) .swal2-range output{width:20%;color:inherit;font-weight:600;text-align:center}div:where(.swal2-container) .swal2-range input,div:where(.swal2-container) .swal2-range output{height:2.625em;padding:0;font-size:1.125em;line-height:2.625em}div:where(.swal2-container) .swal2-input{height:2.625em;padding:0 .75em}div:where(.swal2-container) .swal2-file{width:75%;margin-right:auto;margin-left:auto;background:var(--swal2-input-background);font-size:1.125em}div:where(.swal2-container) .swal2-textarea{height:6.75em;padding:.75em}div:where(.swal2-container) .swal2-select{min-width:50%;max-width:100%;padding:.375em .625em;background:var(--swal2-input-background);color:inherit;font-size:1.125em}div:where(.swal2-container) .swal2-radio,div:where(.swal2-container) .swal2-checkbox{align-items:center;justify-content:center;background:var(--swal2-background);color:inherit}div:where(.swal2-container) .swal2-radio label,div:where(.swal2-container) .swal2-checkbox label{margin:0 .6em;font-size:1.125em}div:where(.swal2-container) .swal2-radio input,div:where(.swal2-container) .swal2-checkbox input{flex-shrink:0;margin:0 .4em}div:where(.swal2-container) label:where(.swal2-input-label){display:flex;justify-content:center;margin:1em auto 0}div:where(.swal2-container) div:where(.swal2-validation-message){align-items:center;justify-content:center;margin:1em 0 0;padding:.625em;overflow:hidden;background:var(--swal2-validation-message-background);color:var(--swal2-validation-message-color);font-size:1em;font-weight:300}div:where(.swal2-container) div:where(.swal2-validation-message)::before{content:"!";display:inline-block;width:1.5em;min-width:1.5em;height:1.5em;margin:0 .625em;border-radius:50%;background-color:#f27474;color:#fff;font-weight:600;line-height:1.5em;text-align:center}div:where(.swal2-container) .swal2-progress-steps{flex-wrap:wrap;align-items:center;max-width:100%;margin:1.25em auto;padding:0;background:rgba(0,0,0,0);font-weight:600}div:where(.swal2-container) .swal2-progress-steps li{display:inline-block;position:relative}div:where(.swal2-container) .swal2-progress-steps .swal2-progress-step{z-index:20;flex-shrink:0;width:2em;height:2em;border-radius:2em;background:#2778c4;color:#fff;line-height:2em;text-align:center}div:where(.swal2-container) .swal2-progress-steps .swal2-progress-step.swal2-active-progress-step{background:#2778c4}div:where(.swal2-container) .swal2-progress-steps .swal2-progress-step.swal2-active-progress-step~.swal2-progress-step{background:var(--swal2-progress-step-background);color:#fff}div:where(.swal2-container) .swal2-progress-steps .swal2-progress-step.swal2-active-progress-step~.swal2-progress-step-line{background:var(--swal2-progress-step-background)}div:where(.swal2-container) .swal2-progress-steps .swal2-progress-step-line{z-index:10;flex-shrink:0;width:2.5em;height:.4em;margin:0 -1px;background:#2778c4}div:where(.swal2-icon){position:relative;box-sizing:content-box;justify-content:center;width:5em;height:5em;margin:2.5em auto .6em;zoom:var(--swal2-icon-zoom);border:.25em solid rgba(0,0,0,0);border-radius:50%;border-color:#000;font-family:inherit;line-height:5em;cursor:default;user-select:none}div:where(.swal2-icon) .swal2-icon-content{display:flex;align-items:center;font-size:3.75em}div:where(.swal2-icon).swal2-error{border-color:#f27474;color:#f27474}div:where(.swal2-icon).swal2-error .swal2-x-mark{position:relative;flex-grow:1}div:where(.swal2-icon).swal2-error [class^=swal2-x-mark-line]{display:block;position:absolute;top:2.3125em;width:2.9375em;height:.3125em;border-radius:.125em;background-color:#f27474}div:where(.swal2-icon).swal2-error [class^=swal2-x-mark-line][class$=left]{left:1.0625em;transform:rotate(45deg)}div:where(.swal2-icon).swal2-error [class^=swal2-x-mark-line][class$=right]{right:1em;transform:rotate(-45deg)}@container swal2-popup style(--swal2-icon-animations:true){div:where(.swal2-icon).swal2-error.swal2-icon-show{animation:swal2-animate-error-icon .5s}div:where(.swal2-icon).swal2-error.swal2-icon-show .swal2-x-mark{animation:swal2-animate-error-x-mark .5s}}div:where(.swal2-icon).swal2-warning{border-color:#f8bb86;color:#f8bb86}@container swal2-popup style(--swal2-icon-animations:true){div:where(.swal2-icon).swal2-warning.swal2-icon-show{animation:swal2-animate-error-icon .5s}div:where(.swal2-icon).swal2-warning.swal2-icon-show .swal2-icon-content{animation:swal2-animate-i-mark .5s}}div:where(.swal2-icon).swal2-info{border-color:#3fc3ee;color:#3fc3ee}@container swal2-popup style(--swal2-icon-animations:true){div:where(.swal2-icon).swal2-info.swal2-icon-show{animation:swal2-animate-error-icon .5s}div:where(.swal2-icon).swal2-info.swal2-icon-show .swal2-icon-content{animation:swal2-animate-i-mark .8s}}div:where(.swal2-icon).swal2-question{border-color:#87adbd;color:#87adbd}@container swal2-popup style(--swal2-icon-animations:true){div:where(.swal2-icon).swal2-question.swal2-icon-show{animation:swal2-animate-error-icon .5s}div:where(.swal2-icon).swal2-question.swal2-icon-show .swal2-icon-content{animation:swal2-animate-question-mark .8s}}div:where(.swal2-icon).swal2-success{border-color:#a5dc86;color:#a5dc86}div:where(.swal2-icon).swal2-success [class^=swal2-success-circular-line]{position:absolute;width:3.75em;height:7.5em;border-radius:50%}div:where(.swal2-icon).swal2-success [class^=swal2-success-circular-line][class$=left]{top:-0.4375em;left:-2.0635em;transform:rotate(-45deg);transform-origin:3.75em 3.75em;border-radius:7.5em 0 0 7.5em}div:where(.swal2-icon).swal2-success [class^=swal2-success-circular-line][class$=right]{top:-0.6875em;left:1.875em;transform:rotate(-45deg);transform-origin:0 3.75em;border-radius:0 7.5em 7.5em 0}div:where(.swal2-icon).swal2-success .swal2-success-ring{position:absolute;z-index:2;top:-0.25em;left:-0.25em;box-sizing:content-box;width:100%;height:100%;border:.25em solid rgba(165,220,134,.3);border-radius:50%}div:where(.swal2-icon).swal2-success .swal2-success-fix{position:absolute;z-index:1;top:.5em;left:1.625em;width:.4375em;height:5.625em;transform:rotate(-45deg)}div:where(.swal2-icon).swal2-success [class^=swal2-success-line]{display:block;position:absolute;z-index:2;height:.3125em;border-radius:.125em;background-color:#a5dc86}div:where(.swal2-icon).swal2-success [class^=swal2-success-line][class$=tip]{top:2.875em;left:.8125em;width:1.5625em;transform:rotate(45deg)}div:where(.swal2-icon).swal2-success [class^=swal2-success-line][class$=long]{top:2.375em;right:.5em;width:2.9375em;transform:rotate(-45deg)}@container swal2-popup style(--swal2-icon-animations:true){div:where(.swal2-icon).swal2-success.swal2-icon-show .swal2-success-line-tip{animation:swal2-animate-success-line-tip .75s}div:where(.swal2-icon).swal2-success.swal2-icon-show .swal2-success-line-long{animation:swal2-animate-success-line-long .75s}div:where(.swal2-icon).swal2-success.swal2-icon-show .swal2-success-circular-line-right{animation:swal2-rotate-success-circular-line 4.25s ease-in}}[class^=swal2]{-webkit-tap-highlight-color:rgba(0,0,0,0)}.swal2-show{animation:var(--swal2-show-animation)}.swal2-hide{animation:var(--swal2-hide-animation)}.swal2-noanimation{transition:none}.swal2-scrollbar-measure{position:absolute;top:-9999px;width:50px;height:50px;overflow:scroll}.swal2-rtl .swal2-close{margin-right:initial;margin-left:0}.swal2-rtl .swal2-timer-progress-bar{right:0;left:auto}.swal2-toast{box-sizing:border-box;grid-column:1/4 !important;grid-row:1/4 !important;grid-template-columns:min-content auto min-content;padding:1em;overflow-y:hidden;border:var(--swal2-toast-border);background:var(--swal2-background);box-shadow:var(--swal2-toast-box-shadow);pointer-events:all}.swal2-toast>*{grid-column:2}.swal2-toast h2:where(.swal2-title){margin:.5em 1em;padding:0;font-size:1em;text-align:initial}.swal2-toast .swal2-loading{justify-content:center}.swal2-toast input:where(.swal2-input){height:2em;margin:.5em;font-size:1em}.swal2-toast .swal2-validation-message{font-size:1em}.swal2-toast div:where(.swal2-footer){margin:.5em 0 0;padding:.5em 0 0;font-size:.8em}.swal2-toast button:where(.swal2-close){grid-column:3/3;grid-row:1/99;align-self:center;width:.8em;height:.8em;margin:0;font-size:2em}.swal2-toast div:where(.swal2-html-container){margin:.5em 1em;padding:0;overflow:initial;font-size:1em;text-align:initial}.swal2-toast div:where(.swal2-html-container):empty{padding:0}.swal2-toast .swal2-loader{grid-column:1;grid-row:1/99;align-self:center;width:2em;height:2em;margin:.25em}.swal2-toast .swal2-icon{grid-column:1;grid-row:1/99;align-self:center;width:2em;min-width:2em;height:2em;margin:0 .5em 0 0}.swal2-toast .swal2-icon .swal2-icon-content{display:flex;align-items:center;font-size:1.8em;font-weight:bold}.swal2-toast .swal2-icon.swal2-success .swal2-success-ring{width:2em;height:2em}.swal2-toast .swal2-icon.swal2-error [class^=swal2-x-mark-line]{top:.875em;width:1.375em}.swal2-toast .swal2-icon.swal2-error [class^=swal2-x-mark-line][class$=left]{left:.3125em}.swal2-toast .swal2-icon.swal2-error [class^=swal2-x-mark-line][class$=right]{right:.3125em}.swal2-toast div:where(.swal2-actions){justify-content:flex-start;height:auto;margin:0;margin-top:.5em;padding:0 .5em}.swal2-toast button:where(.swal2-styled){margin:.25em .5em;padding:.4em .6em;font-size:1em}.swal2-toast .swal2-success{border-color:#a5dc86}.swal2-toast .swal2-success [class^=swal2-success-circular-line]{position:absolute;width:1.6em;height:3em;border-radius:50%}.swal2-toast .swal2-success [class^=swal2-success-circular-line][class$=left]{top:-0.8em;left:-0.5em;transform:rotate(-45deg);transform-origin:2em 2em;border-radius:4em 0 0 4em}.swal2-toast .swal2-success [class^=swal2-success-circular-line][class$=right]{top:-0.25em;left:.9375em;transform-origin:0 1.5em;border-radius:0 4em 4em 0}.swal2-toast .swal2-success .swal2-success-ring{width:2em;height:2em}.swal2-toast .swal2-success .swal2-success-fix{top:0;left:.4375em;width:.4375em;height:2.6875em}.swal2-toast .swal2-success [class^=swal2-success-line]{height:.3125em}.swal2-toast .swal2-success [class^=swal2-success-line][class$=tip]{top:1.125em;left:.1875em;width:.75em}.swal2-toast .swal2-success [class^=swal2-success-line][class$=long]{top:.9375em;right:.1875em;width:1.375em}@container swal2-popup style(--swal2-icon-animations:true){.swal2-toast .swal2-success.swal2-icon-show .swal2-success-line-tip{animation:swal2-toast-animate-success-line-tip .75s}.swal2-toast .swal2-success.swal2-icon-show .swal2-success-line-long{animation:swal2-toast-animate-success-line-long .75s}}.swal2-toast.swal2-show{animation:var(--swal2-toast-show-animation)}.swal2-toast.swal2-hide{animation:var(--swal2-toast-hide-animation)}@keyframes swal2-show{0%{transform:scale(0.7)}45%{transform:scale(1.05)}80%{transform:scale(0.95)}100%{transform:scale(1)}}@keyframes swal2-hide{0%{transform:scale(1);opacity:1}100%{transform:scale(0.5);opacity:0}}@keyframes swal2-animate-success-line-tip{0%{top:1.1875em;left:.0625em;width:0}54%{top:1.0625em;left:.125em;width:0}70%{top:2.1875em;left:-0.375em;width:3.125em}84%{top:3em;left:1.3125em;width:1.0625em}100%{top:2.8125em;left:.8125em;width:1.5625em}}@keyframes swal2-animate-success-line-long{0%{top:3.375em;right:2.875em;width:0}65%{top:3.375em;right:2.875em;width:0}84%{top:2.1875em;right:0;width:3.4375em}100%{top:2.375em;right:.5em;width:2.9375em}}@keyframes swal2-rotate-success-circular-line{0%{transform:rotate(-45deg)}5%{transform:rotate(-45deg)}12%{transform:rotate(-405deg)}100%{transform:rotate(-405deg)}}@keyframes swal2-animate-error-x-mark{0%{margin-top:1.625em;transform:scale(0.4);opacity:0}50%{margin-top:1.625em;transform:scale(0.4);opacity:0}80%{margin-top:-0.375em;transform:scale(1.15)}100%{margin-top:0;transform:scale(1);opacity:1}}@keyframes swal2-animate-error-icon{0%{transform:rotateX(100deg);opacity:0}100%{transform:rotateX(0deg);opacity:1}}@keyframes swal2-rotate-loading{0%{transform:rotate(0deg)}100%{transform:rotate(360deg)}}@keyframes swal2-animate-question-mark{0%{transform:rotateY(-360deg)}100%{transform:rotateY(0)}}@keyframes swal2-animate-i-mark{0%{transform:rotateZ(45deg);opacity:0}25%{transform:rotateZ(-25deg);opacity:.4}50%{transform:rotateZ(15deg);opacity:.8}75%{transform:rotateZ(-5deg);opacity:1}100%{transform:rotateX(0);opacity:1}}@keyframes swal2-toast-show{0%{transform:translateY(-0.625em) rotateZ(2deg)}33%{transform:translateY(0) rotateZ(-2deg)}66%{transform:translateY(0.3125em) rotateZ(2deg)}100%{transform:translateY(0) rotateZ(0deg)}}@keyframes swal2-toast-hide{100%{transform:rotateZ(1deg);opacity:0}}@keyframes swal2-toast-animate-success-line-tip{0%{top:.5625em;left:.0625em;width:0}54%{top:.125em;left:.125em;width:0}70%{top:.625em;left:-0.25em;width:1.625em}84%{top:1.0625em;left:.75em;width:.5em}100%{top:1.125em;left:.1875em;width:.75em}}@keyframes swal2-toast-animate-success-line-long{0%{top:1.625em;right:1.375em;width:0}65%{top:1.25em;right:.9375em;width:0}84%{top:.9375em;right:0;width:1.125em}100%{top:.9375em;right:.1875em;width:1.375em}}');/*! @license DOMPurify 3.2.7 | (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.7/LICENSE */const{entries:ii,setPrototypeOf:si,isFrozen:uf,getPrototypeOf:mf,getOwnPropertyDescriptor:ff}=Object;let{freeze:le,seal:ve,create:li}=Object,{apply:Do,construct:Vo}=typeof Reflect<"u"&&Reflect;le||(le=function(e){return e}),ve||(ve=function(e){return e}),Do||(Do=function(e,n){for(var o=arguments.length,a=new Array(o>2?o-2:0),i=2;i<o;i++)a[i-2]=arguments[i];return e.apply(n,a)}),Vo||(Vo=function(e){for(var n=arguments.length,o=new Array(n>1?n-1:0),a=1;a<n;a++)o[a-1]=arguments[a];return new e(...o)});const Rn=de(Array.prototype.forEach),pf=de(Array.prototype.lastIndexOf),ci=de(Array.prototype.pop),on=de(Array.prototype.push),hf=de(Array.prototype.splice),jn=de(String.prototype.toLowerCase),Ro=de(String.prototype.toString),jo=de(String.prototype.match),rn=de(String.prototype.replace),gf=de(String.prototype.indexOf),bf=de(String.prototype.trim),Te=de(Object.prototype.hasOwnProperty),ce=de(RegExp.prototype.test),an=wf(TypeError);function de(t){return function(e){e instanceof RegExp&&(e.lastIndex=0);for(var n=arguments.length,o=new Array(n>1?n-1:0),a=1;a<n;a++)o[a-1]=arguments[a];return Do(t,e,o)}}function wf(t){return function(){for(var e=arguments.length,n=new Array(e),o=0;o<e;o++)n[o]=arguments[o];return Vo(t,n)}}function L(t,e){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:jn;si&&si(t,null);let o=e.length;for(;o--;){let a=e[o];if(typeof a=="string"){const i=n(a);i!==a&&(uf(e)||(e[o]=i),a=i)}t[a]=!0}return t}function vf(t){for(let e=0;e<t.length;e++)Te(t,e)||(t[e]=null);return t}function Ve(t){const e=li(null);for(const[n,o]of ii(t))Te(t,n)&&(Array.isArray(o)?e[n]=vf(o):o&&typeof o=="object"&&o.constructor===Object?e[n]=Ve(o):e[n]=o);return e}function sn(t,e){for(;t!==null;){const o=ff(t,e);if(o){if(o.get)return de(o.get);if(typeof o.value=="function")return de(o.value)}t=mf(t)}function n(){return null}return n}const di=le(["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","search","section","select","shadow","slot","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"]),Ho=le(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","enterkeyhint","exportparts","filter","font","g","glyph","glyphref","hkern","image","inputmode","line","lineargradient","marker","mask","metadata","mpath","part","path","pattern","polygon","polyline","radialgradient","rect","slot","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]),zo=le(["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"]),yf=le(["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"]),Fo=le(["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"]),kf=le(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),ui=le(["#text"]),mi=le(["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","exportparts","face","for","headers","height","hidden","high","href","hreflang","id","inert","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","part","pattern","placeholder","playsinline","popover","popovertarget","popovertargetaction","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","spellcheck","scope","selected","shape","size","sizes","slot","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","wrap","xmlns","slot"]),Uo=le(["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"]),fi=le(["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"]),Hn=le(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),Cf=ve(/\{\{[\w\W]*|[\w\W]*\}\}/gm),Sf=ve(/<%[\w\W]*|[\w\W]*%>/gm),_f=ve(/\$\{[\w\W]*/gm),Ef=ve(/^data-[\-\w.\u00B7-\uFFFF]+$/),xf=ve(/^aria-[\-\w]+$/),pi=ve(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),Tf=ve(/^(?:\w+script|data):/i),If=ve(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),hi=ve(/^html$/i),Af=ve(/^[a-z][.\w]*(-[.\w]+)+$/i);var gi=Object.freeze({__proto__:null,ARIA_ATTR:xf,ATTR_WHITESPACE:If,CUSTOM_ELEMENT:Af,DATA_ATTR:Ef,DOCTYPE_NAME:hi,ERB_EXPR:Sf,IS_ALLOWED_URI:pi,IS_SCRIPT_OR_DATA:Tf,MUSTACHE_EXPR:Cf,TMPLIT_EXPR:_f});const ln={element:1,text:3,progressingInstruction:7,comment:8,document:9},Pf=function(){return typeof window>"u"?null:window},$f=function(e,n){if(typeof e!="object"||typeof e.createPolicy!="function")return null;let o=null;const a="data-tt-policy-suffix";n&&n.hasAttribute(a)&&(o=n.getAttribute(a));const i="dompurify"+(o?"#"+o:"");try{return e.createPolicy(i,{createHTML(c){return c},createScriptURL(c){return c}})}catch{return console.warn("TrustedTypes policy "+i+" could not be created."),null}},bi=function(){return{afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}};function wi(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:Pf();const e=x=>wi(x);if(e.version="3.2.7",e.removed=[],!t||!t.document||t.document.nodeType!==ln.document||!t.Element)return e.isSupported=!1,e;let{document:n}=t;const o=n,a=o.currentScript,{DocumentFragment:i,HTMLTemplateElement:c,Node:l,Element:s,NodeFilter:d,NamedNodeMap:u=t.NamedNodeMap||t.MozNamedAttrMap,HTMLFormElement:m,DOMParser:p,trustedTypes:h}=t,v=s.prototype,g=sn(v,"cloneNode"),y=sn(v,"remove"),w=sn(v,"nextSibling"),S=sn(v,"childNodes"),P=sn(v,"parentNode");if(typeof c=="function"){const x=n.createElement("template");x.content&&x.content.ownerDocument&&(n=x.content.ownerDocument)}let k,E="";const{implementation:U,createNodeIterator:J,createDocumentFragment:ye,getElementsByTagName:ne}=n,{importNode:ke}=o;let I=bi();e.isSupported=typeof ii=="function"&&typeof P=="function"&&U&&U.createHTMLDocument!==void 0;const{MUSTACHE_EXPR:R,ERB_EXPR:oe,TMPLIT_EXPR:ue,DATA_ATTR:Ie,ARIA_ATTR:Ze,IS_SCRIPT_OR_DATA:Re,ATTR_WHITESPACE:je,CUSTOM_ELEMENT:Je}=gi;let{IS_ALLOWED_URI:Ce}=gi,V=null;const Oe=L({},[...di,...Ho,...zo,...Fo,...ui]);let W=null;const He=L({},[...mi,...Uo,...fi,...Hn]);let z=Object.seal(li(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}})),Qe=null,cn=null,Wn=!0,dn=!0,Kn=!1,Gn=!0,et=!1,Tt=!0,ze=!1,un=!1,mn=!1,tt=!1,It=!1,At=!1,qn=!0,Yn=!1;const Yo="user-content-";let fn=!0,ut=!1,Pt={},$t=null;const xi=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 Ti=null;const Ii=L({},["audio","video","img","source","image","track"]);let Xo=null;const Ai=L({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),Xn="http://www.w3.org/1998/Math/MathML",Zn="http://www.w3.org/2000/svg",Fe="http://www.w3.org/1999/xhtml";let Bt=Fe,Zo=!1,Jo=null;const Xf=L({},[Xn,Zn,Fe],Ro);let Jn=L({},["mi","mo","mn","ms","mtext"]),Qn=L({},["annotation-xml"]);const Zf=L({},["title","style","font","a","script"]);let pn=null;const Jf=["application/xhtml+xml","text/html"],Qf="text/html";let X=null,Lt=null;const ep=n.createElement("form"),Pi=function(f){return f instanceof RegExp||f instanceof Function},Qo=function(){let f=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(!(Lt&&Lt===f)){if((!f||typeof f!="object")&&(f={}),f=Ve(f),pn=Jf.indexOf(f.PARSER_MEDIA_TYPE)===-1?Qf:f.PARSER_MEDIA_TYPE,X=pn==="application/xhtml+xml"?Ro:jn,V=Te(f,"ALLOWED_TAGS")?L({},f.ALLOWED_TAGS,X):Oe,W=Te(f,"ALLOWED_ATTR")?L({},f.ALLOWED_ATTR,X):He,Jo=Te(f,"ALLOWED_NAMESPACES")?L({},f.ALLOWED_NAMESPACES,Ro):Xf,Xo=Te(f,"ADD_URI_SAFE_ATTR")?L(Ve(Ai),f.ADD_URI_SAFE_ATTR,X):Ai,Ti=Te(f,"ADD_DATA_URI_TAGS")?L(Ve(Ii),f.ADD_DATA_URI_TAGS,X):Ii,$t=Te(f,"FORBID_CONTENTS")?L({},f.FORBID_CONTENTS,X):xi,Qe=Te(f,"FORBID_TAGS")?L({},f.FORBID_TAGS,X):Ve({}),cn=Te(f,"FORBID_ATTR")?L({},f.FORBID_ATTR,X):Ve({}),Pt=Te(f,"USE_PROFILES")?f.USE_PROFILES:!1,Wn=f.ALLOW_ARIA_ATTR!==!1,dn=f.ALLOW_DATA_ATTR!==!1,Kn=f.ALLOW_UNKNOWN_PROTOCOLS||!1,Gn=f.ALLOW_SELF_CLOSE_IN_ATTR!==!1,et=f.SAFE_FOR_TEMPLATES||!1,Tt=f.SAFE_FOR_XML!==!1,ze=f.WHOLE_DOCUMENT||!1,tt=f.RETURN_DOM||!1,It=f.RETURN_DOM_FRAGMENT||!1,At=f.RETURN_TRUSTED_TYPE||!1,mn=f.FORCE_BODY||!1,qn=f.SANITIZE_DOM!==!1,Yn=f.SANITIZE_NAMED_PROPS||!1,fn=f.KEEP_CONTENT!==!1,ut=f.IN_PLACE||!1,Ce=f.ALLOWED_URI_REGEXP||pi,Bt=f.NAMESPACE||Fe,Jn=f.MATHML_TEXT_INTEGRATION_POINTS||Jn,Qn=f.HTML_INTEGRATION_POINTS||Qn,z=f.CUSTOM_ELEMENT_HANDLING||{},f.CUSTOM_ELEMENT_HANDLING&&Pi(f.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(z.tagNameCheck=f.CUSTOM_ELEMENT_HANDLING.tagNameCheck),f.CUSTOM_ELEMENT_HANDLING&&Pi(f.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(z.attributeNameCheck=f.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),f.CUSTOM_ELEMENT_HANDLING&&typeof f.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements=="boolean"&&(z.allowCustomizedBuiltInElements=f.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),et&&(dn=!1),It&&(tt=!0),Pt&&(V=L({},ui),W=[],Pt.html===!0&&(L(V,di),L(W,mi)),Pt.svg===!0&&(L(V,Ho),L(W,Uo),L(W,Hn)),Pt.svgFilters===!0&&(L(V,zo),L(W,Uo),L(W,Hn)),Pt.mathMl===!0&&(L(V,Fo),L(W,fi),L(W,Hn))),f.ADD_TAGS&&(V===Oe&&(V=Ve(V)),L(V,f.ADD_TAGS,X)),f.ADD_ATTR&&(W===He&&(W=Ve(W)),L(W,f.ADD_ATTR,X)),f.ADD_URI_SAFE_ATTR&&L(Xo,f.ADD_URI_SAFE_ATTR,X),f.FORBID_CONTENTS&&($t===xi&&($t=Ve($t)),L($t,f.FORBID_CONTENTS,X)),fn&&(V["#text"]=!0),ze&&L(V,["html","head","body"]),V.table&&(L(V,["tbody"]),delete Qe.tbody),f.TRUSTED_TYPES_POLICY){if(typeof f.TRUSTED_TYPES_POLICY.createHTML!="function")throw an('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if(typeof f.TRUSTED_TYPES_POLICY.createScriptURL!="function")throw an('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');k=f.TRUSTED_TYPES_POLICY,E=k.createHTML("")}else k===void 0&&(k=$f(h,a)),k!==null&&typeof E=="string"&&(E=k.createHTML(""));le&&le(f),Lt=f}},$i=L({},[...Ho,...zo,...yf]),Bi=L({},[...Fo,...kf]),tp=function(f){let C=P(f);(!C||!C.tagName)&&(C={namespaceURI:Bt,tagName:"template"});const _=jn(f.tagName),F=jn(C.tagName);return Jo[f.namespaceURI]?f.namespaceURI===Zn?C.namespaceURI===Fe?_==="svg":C.namespaceURI===Xn?_==="svg"&&(F==="annotation-xml"||Jn[F]):!!$i[_]:f.namespaceURI===Xn?C.namespaceURI===Fe?_==="math":C.namespaceURI===Zn?_==="math"&&Qn[F]:!!Bi[_]:f.namespaceURI===Fe?C.namespaceURI===Zn&&!Qn[F]||C.namespaceURI===Xn&&!Jn[F]?!1:!Bi[_]&&(Zf[_]||!$i[_]):!!(pn==="application/xhtml+xml"&&Jo[f.namespaceURI]):!1},Ne=function(f){on(e.removed,{element:f});try{P(f).removeChild(f)}catch{y(f)}},mt=function(f,C){try{on(e.removed,{attribute:C.getAttributeNode(f),from:C})}catch{on(e.removed,{attribute:null,from:C})}if(C.removeAttribute(f),f==="is")if(tt||It)try{Ne(C)}catch{}else try{C.setAttribute(f,"")}catch{}},Li=function(f){let C=null,_=null;if(mn)f="<remove></remove>"+f;else{const q=jo(f,/^[\r\n\t ]+/);_=q&&q[0]}pn==="application/xhtml+xml"&&Bt===Fe&&(f='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+f+"</body></html>");const F=k?k.createHTML(f):f;if(Bt===Fe)try{C=new p().parseFromString(F,pn)}catch{}if(!C||!C.documentElement){C=U.createDocument(Bt,"template",null);try{C.documentElement.innerHTML=Zo?E:F}catch{}}const re=C.body||C.documentElement;return f&&_&&re.insertBefore(n.createTextNode(_),re.childNodes[0]||null),Bt===Fe?ne.call(C,ze?"html":"body")[0]:ze?C.documentElement:re},Oi=function(f){return J.call(f.ownerDocument||f,f,d.SHOW_ELEMENT|d.SHOW_COMMENT|d.SHOW_TEXT|d.SHOW_PROCESSING_INSTRUCTION|d.SHOW_CDATA_SECTION,null)},er=function(f){return f instanceof m&&(typeof f.nodeName!="string"||typeof f.textContent!="string"||typeof f.removeChild!="function"||!(f.attributes instanceof u)||typeof f.removeAttribute!="function"||typeof f.setAttribute!="function"||typeof f.namespaceURI!="string"||typeof f.insertBefore!="function"||typeof f.hasChildNodes!="function")},Ni=function(f){return typeof l=="function"&&f instanceof l};function Ue(x,f,C){Rn(x,_=>{_.call(e,f,C,Lt)})}const Mi=function(f){let C=null;if(Ue(I.beforeSanitizeElements,f,null),er(f))return Ne(f),!0;const _=X(f.nodeName);if(Ue(I.uponSanitizeElement,f,{tagName:_,allowedTags:V}),Tt&&f.hasChildNodes()&&!Ni(f.firstElementChild)&&ce(/<[/\w!]/g,f.innerHTML)&&ce(/<[/\w!]/g,f.textContent)||f.nodeType===ln.progressingInstruction||Tt&&f.nodeType===ln.comment&&ce(/<[/\w]/g,f.data))return Ne(f),!0;if(!V[_]||Qe[_]){if(!Qe[_]&&Vi(_)&&(z.tagNameCheck instanceof RegExp&&ce(z.tagNameCheck,_)||z.tagNameCheck instanceof Function&&z.tagNameCheck(_)))return!1;if(fn&&!$t[_]){const F=P(f)||f.parentNode,re=S(f)||f.childNodes;if(re&&F){const q=re.length;for(let pe=q-1;pe>=0;--pe){const We=g(re[pe],!0);We.__removalCount=(f.__removalCount||0)+1,F.insertBefore(We,w(f))}}}return Ne(f),!0}return f instanceof s&&!tp(f)||(_==="noscript"||_==="noembed"||_==="noframes")&&ce(/<\/no(script|embed|frames)/i,f.innerHTML)?(Ne(f),!0):(et&&f.nodeType===ln.text&&(C=f.textContent,Rn([R,oe,ue],F=>{C=rn(C,F," ")}),f.textContent!==C&&(on(e.removed,{element:f.cloneNode()}),f.textContent=C)),Ue(I.afterSanitizeElements,f,null),!1)},Di=function(f,C,_){if(qn&&(C==="id"||C==="name")&&(_ in n||_ in ep))return!1;if(!(dn&&!cn[C]&&ce(Ie,C))){if(!(Wn&&ce(Ze,C))){if(!W[C]||cn[C]){if(!(Vi(f)&&(z.tagNameCheck instanceof RegExp&&ce(z.tagNameCheck,f)||z.tagNameCheck instanceof Function&&z.tagNameCheck(f))&&(z.attributeNameCheck instanceof RegExp&&ce(z.attributeNameCheck,C)||z.attributeNameCheck instanceof Function&&z.attributeNameCheck(C,f))||C==="is"&&z.allowCustomizedBuiltInElements&&(z.tagNameCheck instanceof RegExp&&ce(z.tagNameCheck,_)||z.tagNameCheck instanceof Function&&z.tagNameCheck(_))))return!1}else if(!Xo[C]){if(!ce(Ce,rn(_,je,""))){if(!((C==="src"||C==="xlink:href"||C==="href")&&f!=="script"&&gf(_,"data:")===0&&Ti[f])){if(!(Kn&&!ce(Re,rn(_,je,"")))){if(_)return!1}}}}}}return!0},Vi=function(f){return f!=="annotation-xml"&&jo(f,Je)},Ri=function(f){Ue(I.beforeSanitizeAttributes,f,null);const{attributes:C}=f;if(!C||er(f))return;const _={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:W,forceKeepAttr:void 0};let F=C.length;for(;F--;){const re=C[F],{name:q,namespaceURI:pe,value:We}=re,Ot=X(q),tr=We;let Q=q==="value"?tr:bf(tr);if(_.attrName=Ot,_.attrValue=Q,_.keepAttr=!0,_.forceKeepAttr=void 0,Ue(I.uponSanitizeAttribute,f,_),Q=_.attrValue,Yn&&(Ot==="id"||Ot==="name")&&(mt(q,f),Q=Yo+Q),Tt&&ce(/((--!?|])>)|<\/(style|title|textarea)/i,Q)){mt(q,f);continue}if(Ot==="attributename"&&jo(Q,"href")){mt(q,f);continue}if(_.forceKeepAttr)continue;if(!_.keepAttr){mt(q,f);continue}if(!Gn&&ce(/\/>/i,Q)){mt(q,f);continue}et&&Rn([R,oe,ue],Hi=>{Q=rn(Q,Hi," ")});const ji=X(f.nodeName);if(!Di(ji,Ot,Q)){mt(q,f);continue}if(k&&typeof h=="object"&&typeof h.getAttributeType=="function"&&!pe)switch(h.getAttributeType(ji,Ot)){case"TrustedHTML":{Q=k.createHTML(Q);break}case"TrustedScriptURL":{Q=k.createScriptURL(Q);break}}if(Q!==tr)try{pe?f.setAttributeNS(pe,q,Q):f.setAttribute(q,Q),er(f)?Ne(f):ci(e.removed)}catch{mt(q,f)}}Ue(I.afterSanitizeAttributes,f,null)},np=function x(f){let C=null;const _=Oi(f);for(Ue(I.beforeSanitizeShadowDOM,f,null);C=_.nextNode();)Ue(I.uponSanitizeShadowNode,C,null),Mi(C),Ri(C),C.content instanceof i&&x(C.content);Ue(I.afterSanitizeShadowDOM,f,null)};return e.sanitize=function(x){let f=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},C=null,_=null,F=null,re=null;if(Zo=!x,Zo&&(x="<!-->"),typeof x!="string"&&!Ni(x))if(typeof x.toString=="function"){if(x=x.toString(),typeof x!="string")throw an("dirty is not a string, aborting")}else throw an("toString is not a function");if(!e.isSupported)return x;if(un||Qo(f),e.removed=[],typeof x=="string"&&(ut=!1),ut){if(x.nodeName){const We=X(x.nodeName);if(!V[We]||Qe[We])throw an("root node is forbidden and cannot be sanitized in-place")}}else if(x instanceof l)C=Li("<!---->"),_=C.ownerDocument.importNode(x,!0),_.nodeType===ln.element&&_.nodeName==="BODY"||_.nodeName==="HTML"?C=_:C.appendChild(_);else{if(!tt&&!et&&!ze&&x.indexOf("<")===-1)return k&&At?k.createHTML(x):x;if(C=Li(x),!C)return tt?null:At?E:""}C&&mn&&Ne(C.firstChild);const q=Oi(ut?x:C);for(;F=q.nextNode();)Mi(F),Ri(F),F.content instanceof i&&np(F.content);if(ut)return x;if(tt){if(It)for(re=ye.call(C.ownerDocument);C.firstChild;)re.appendChild(C.firstChild);else re=C;return(W.shadowroot||W.shadowrootmode)&&(re=ke.call(o,re,!0)),re}let pe=ze?C.outerHTML:C.innerHTML;return ze&&V["!doctype"]&&C.ownerDocument&&C.ownerDocument.doctype&&C.ownerDocument.doctype.name&&ce(hi,C.ownerDocument.doctype.name)&&(pe="<!DOCTYPE "+C.ownerDocument.doctype.name+`>
|
|
427
|
-
`+pe),et&&Rn([R,oe,ue],We=>{pe=rn(pe,We," ")}),k&&At?k.createHTML(pe):pe},e.setConfig=function(){let x=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};Qo(x),un=!0},e.clearConfig=function(){Lt=null,un=!1},e.isValidAttribute=function(x,f,C){Lt||Qo({});const _=X(x),F=X(f);return Di(_,F,C)},e.addHook=function(x,f){typeof f=="function"&&on(I[x],f)},e.removeHook=function(x,f){if(f!==void 0){const C=pf(I[x],f);return C===-1?void 0:hf(I[x],C,1)[0]}return ci(I[x])},e.removeHooks=function(x){I[x]=[]},e.removeAllHooks=function(){I=bi()},e}var Wo=wi();const Bf=t=>!(!t||!(t instanceof HTMLElement));class vi{get IsVisible(){return dt.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",Bf(e.target)?this.CreatePopoverAsync(e).then(n=>n===!0):new Promise(n=>{dt.fire({showCancelButton:!0,allowEscapeKey:!1,allowOutsideClick:!1,icon:"question",title:e.title,html:Wo.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(i=>{n=i}),a=new CustomEvent("sfconfirm:popup",{detail:{target:e.target??document.body,options:e,resolve:n},bubbles:!0,cancelable:!0,composed:!0});return document.dispatchEvent(a),o}}const yi=()=>new vi,Lf=()=>new vi;function Of(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var zn={exports:{}},Nf=zn.exports,ki;function Mf(){return ki||(ki=1,(function(t){(function(e,n){t.exports?t.exports=n():e.log=n()})(Nf,function(){var e=function(){},n="undefined",o=typeof window!==n&&typeof window.navigator!==n&&/Trident\/|MSIE /.test(window.navigator.userAgent),a=["trace","debug","info","warn","error"],i={},c=null;function l(g,y){var w=g[y];if(typeof w.bind=="function")return w.bind(g);try{return Function.prototype.bind.call(w,g)}catch{return function(){return Function.prototype.apply.apply(w,[g,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 d(g){return g==="debug"&&(g="log"),typeof console===n?!1:g==="trace"&&o?s:console[g]!==void 0?l(console,g):console.log!==void 0?l(console,"log"):e}function u(){for(var g=this.getLevel(),y=0;y<a.length;y++){var w=a[y];this[w]=y<g?e:this.methodFactory(w,g,this.name)}if(this.log=this.debug,typeof console===n&&g<this.levels.SILENT)return"No console available for logging"}function m(g){return function(){typeof console!==n&&(u.call(this),this[g].apply(this,arguments))}}function p(g,y,w){return d(g)||m.apply(this,arguments)}function h(g,y){var w=this,S,P,k,E="loglevel";typeof g=="string"?E+=":"+g:typeof g=="symbol"&&(E=void 0);function U(I){var R=(a[I]||"silent").toUpperCase();if(!(typeof window===n||!E)){try{window.localStorage[E]=R;return}catch{}try{window.document.cookie=encodeURIComponent(E)+"="+R+";"}catch{}}}function J(){var I;if(!(typeof window===n||!E)){try{I=window.localStorage[E]}catch{}if(typeof I===n)try{var R=window.document.cookie,oe=encodeURIComponent(E),ue=R.indexOf(oe+"=");ue!==-1&&(I=/^([^;]+)/.exec(R.slice(ue+oe.length+1))[1])}catch{}return w.levels[I]===void 0&&(I=void 0),I}}function ye(){if(!(typeof window===n||!E)){try{window.localStorage.removeItem(E)}catch{}try{window.document.cookie=encodeURIComponent(E)+"=; expires=Thu, 01 Jan 1970 00:00:00 UTC"}catch{}}}function ne(I){var R=I;if(typeof R=="string"&&w.levels[R.toUpperCase()]!==void 0&&(R=w.levels[R.toUpperCase()]),typeof R=="number"&&R>=0&&R<=w.levels.SILENT)return R;throw new TypeError("log.setLevel() called with invalid level: "+I)}w.name=g,w.levels={TRACE:0,DEBUG:1,INFO:2,WARN:3,ERROR:4,SILENT:5},w.methodFactory=y||p,w.getLevel=function(){return k??P??S},w.setLevel=function(I,R){return k=ne(I),R!==!1&&U(k),u.call(w)},w.setDefaultLevel=function(I){P=ne(I),J()||w.setLevel(I,!1)},w.resetLevel=function(){k=null,ye(),u.call(w)},w.enableAll=function(I){w.setLevel(w.levels.TRACE,I)},w.disableAll=function(I){w.setLevel(w.levels.SILENT,I)},w.rebuild=function(){if(c!==w&&(S=ne(c.getLevel())),u.call(w),c===w)for(var I in i)i[I].rebuild()},S=ne(c?c.getLevel():"WARN");var ke=J();ke!=null&&(k=ne(ke)),u.call(w)}c=new h,c.getLogger=function(y){if(typeof y!="symbol"&&typeof y!="string"||y==="")throw new TypeError("You must supply a name when creating a logger.");var w=i[y];return w||(w=i[y]=new h(y,c.methodFactory)),w};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 i},c.default=c,c})})(zn)),zn.exports}var Df=Mf();const Fn=Of(Df),Vf=(t,e={})=>{Fn.setDefaultLevel(e.enableLogging?Fn.levels.DEBUG:Fn.levels.SILENT);const n=240;document.documentElement.style.setProperty("--nav-menu-width",`${n}px`);const o=r.ref(!0),a=r.ref(0),i=r.ref(!1),c=r.ref(!1),l=r.ref(""),s=r.ref(null),d=r.ref(0);t.provide(Jr,{navMenuWidth:n,isMenuOpened:o,ToggleMenu:()=>{o.value=!o.value},OpenMenu:()=>{o.value=!0},CloseMenu:()=>{o.value=!1},scrollY:a,pageTitle:l,isDarkMode:i,ToggleTheme:()=>Xt.Toggle(),EnableDarkMode:()=>Xt.EnableDarkMode(),EnableLightMode:()=>Xt.EnableLightMode(),ClearStoredTheme:()=>Xt.ClearStoredTheme(),LogoutAsync:async m=>{const p=yi(),{oidc:h}=ft.UseAuth();await p.ConfirmWithOptionsAsync({text:"Deseja sair da sua conta?",target:m.currentTarget,confirmColor:"error"})&&(Un("Saindo..."),c.value=!0,await new Promise(g=>setTimeout(g,1e3)),h.logout({redirectUri:window.location.origin}).catch(()=>{c.value=!1,qo()}))},LogoutWithoutConfirmation:async()=>{const{oidc:m}=ft.UseAuth();Un("Saindo..."),c.value=!0,await new Promise(p=>setTimeout(p,1e3)),m.logout({redirectUri:window.location.origin}).catch(()=>{c.value=!1,qo()})},Login:()=>{const{oidc:m}=ft.UseAuth();m.login()},isLoggingOut:c,mainRef:s,mainWidth:d,isMainXs:r.computed(()=>d.value<=384),isMainSm:r.computed(()=>d.value>384),isMainMd:r.computed(()=>d.value>768),isMainLg:r.computed(()=>d.value>992),isMainXl:r.computed(()=>d.value>1280),isMain2Xl:r.computed(()=>d.value>1536),isMain3Xl:r.computed(()=>d.value>1920)}),new MutationObserver(()=>{i.value=document.documentElement.classList.contains("dark")}).observe(document.documentElement,{attributes:!0,attributeFilter:["class"]}),document.addEventListener("scroll",()=>{a.value=document.documentElement.scrollTop}),Xt.SetInitialTheme()},Rf=Fn;class Ko extends Error{constructor(e=[]){const n=Array.isArray(e)?e:[e];super(n[0]),this.errors=n}errors=[]}class Ci{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 Ko(this.errors)}get firstError(){return this.hasSuccess?null:this.errors[0]}}class Si{get IsVisible(){return dt.isVisible()}async CreateAlertAsync(e){let n="info",o,a;return typeof e=="string"||Array.isArray(e)?o=Array.isArray(e)?e.join("<br />"):e:(n=e.icon??"info",a=e.title??"",o=Array.isArray(e.text)?e.text.join("<br />"):e.text),new Promise(i=>{dt.fire({allowEscapeKey:!1,allowOutsideClick:!1,icon:n,title:a,html:`<div style="max-height: 50vh; overflow: auto">${Wo.sanitize(o)}</div>`}).then(()=>i(!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 _i=()=>new Si,jf=()=>new Si;window.addEventListener("error",function(t){return Go(t.error)||console.error(t.error||t.message),t.preventDefault(),!1}),window.addEventListener("unhandledrejection",function(t){return Go(t.reason)||console.error("Unhandled Rejection",t.reason),t.preventDefault(),!1});const Hf=t=>{t.config.errorHandler=(e,n,o)=>{Go(e)||console.error("Vue Global Error Handler: ",{err:e,vm:n,info:o})}},Go=t=>{if(!t)return!0;try{if(t.httpStatusCode===401)return!0}catch{}return t instanceof Ko||t instanceof Ci?(_i().AlertErrorAsync(t.errors),!0):!1},xt=t=>t==="light"?"rgba(9, 30, 66, 0.25) 0px 4px 8px -2px, rgba(9, 30, 66, 0.08) 0px 0px 0px 1px;":"none",Ei={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)"}}},zf={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:{...Ei},dark:{...Ei}}},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:xt("light")}},dark:{root:{background:"var(--surface-300-color)",shadow:xt("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:xt("light")}},dark:{root:{background:"var(--surface-300-color)",shadow:xt("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:xt("light")}},dark:{root:{background:"var(--surface-200-color)",shadow:xt("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 Ff{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?$e.MaskCpf(this.username):this.username.length===14?$e.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 Uf(){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"),a=r.computed(()=>t.value==="hml"),i=r.computed(()=>t.value==="production"),c=r.ref(null);function l(){c.value=null}return{environment:t,SetEnvironment:e,isDev:n,isPack:o,isHml:a,isProd:i,user:c,$reset:l}}const Wf=t=>{const e=new Set;function n(o){const{name:a,children:i}=o;if(a){if(e.has(a))throw new Error(["Erro na validação das rotas!",`Nome de rota duplicado: ${a}`].join(`
|
|
428
|
-
`));e.add(a)}if(i&&Array.isArray(i))for(const c of i)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 Kf{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"),a=document.createElement("div"),i=document.createElement("div");a.className="content",i.className="progress",a.appendChild(i),o.className="sf-toast",o.style.zIndex=$e.GetMaxZindex().toString(),o.appendChild(a),this.current=o,document.body.appendChild(o),o.addEventListener("transitionend",s=>{const d=s.propertyName==="opacity",u=s.target.classList.contains("visible");d&&!u&&(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 d=document.createElement("p");d.innerHTML=Wo.sanitize(s),a.appendChild(d)}const l=document.createElement("i");if(l.classList.add("icon","material-symbols-outlined"),l.innerText="close",l.addEventListener("click",()=>{this.Close()}),a.appendChild(l),getComputedStyle(o).bottom,getComputedStyle(o).top,o.classList.add("visible"),e.life){i.style.transitionDuration=`${e.life-300}ms`,a.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 Gf=new Kf,qf=()=>Gf;function qo(){document.documentElement.removeAttribute("data-app-message"),document.documentElement.classList.add("app-mounted")}function Un(t){typeof t=="string"&&document.documentElement.setAttribute("data-app-message",t),document.documentElement.classList.remove("app-mounted")}async function Yf(){return await fetch(window.location.origin+"/api/get-environment").then(async t=>{if(!t.ok)throw Un("Ocorreu um erro ao inicializar a aplicação."),new Error(`Erro ao obter ambiente: ${t.status} ${t.statusText}`);return await t.text()})}A.AppError=Ko,A.AppResult=Ci,A.BaseAppState=Uf,A.EnsureUniqueRouteNames=Wf,A.GetEnvironmentAsync=Yf,A.RemovePreloader=qo,A.RestorePreloader=Un,A.SfButton=pt,A.SfContent=hc,A.SfDrawer=ar,A.SfHelpButton=Sn,A.SfIcon=Se,A.SfLoadingCircle=rr,A.SfLogin=Ac,A.SfMain=wd,A.SfMainTopBarAccount=Qr,A.SfMessage=os,A.SfNavMenu=fc,A.SfPageTitle=vd,A.SfPopover=ho,A.SfTabNavigation=Ji,A.SfTabs=_d,A.SfTooltip=nr,A.UseAlert=_i,A.UseAlertService=jf,A.UseAppInject=rt,A.UseConfirm=yi,A.UseConfirmService=Lf,A.UseSimpleToast=qf,A.User=Ff,A.Utilities=$e,A._logger=Rf,A.configSF=Vf,A.globalErrorHandler=Hf,A.themePreset=zf,Object.defineProperty(A,Symbol.toStringTag,{value:"Module"})}));
|
|
429
|
-
//# sourceMappingURL=sf.prefeiturasp.vuecomponents.umd.cjs.map
|