@luizleon/sf.prefeiturasp.vuecomponents 5.0.9 → 5.0.10

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.
@@ -1,4 +1,4 @@
1
- (function(R,s){typeof exports=="object"&&typeof module<"u"?s(exports,require("vue"),require("vue-router")):typeof define=="function"&&define.amd?define(["exports","vue","vue-router"],s):(R=typeof globalThis<"u"?globalThis:R||self,s((R.sf=R.sf||{},R.sf.prefeiturasp=R.sf.prefeiturasp||{},R.sf.prefeiturasp.vuecomponents={}),R.Vue,R.VueRouter))})(this,function(R,s,ht){"use strict";var Hf=Object.defineProperty;var jf=(R,s,ht)=>s in R?Hf(R,s,{enumerable:!0,configurable:!0,writable:!0,value:ht}):R[s]=ht;var Pe=(R,s,ht)=>jf(R,typeof s!="symbol"?s+"":s,ht);const gt=(t,e)=>{const n=t.__vccOpts||t;for(const[r,o]of e)n[r]=o;return n},is={},ss={class:"sf-loading-circle"};function as(t,e){return s.openBlock(),s.createElementBlock("div",ss,e[0]||(e[0]=[s.createElementVNode("div",null,[s.createElementVNode("svg",{viewBox:"25 25 50 50"},[s.createElementVNode("circle",{cx:"50",cy:"50",r:"20",fill:"none","stroke-width":"4","stroke-miterlimit":"10"})])],-1)]))}const $r=gt(is,[["render",as]]);class Ge{constructor(e){Pe(this,"retorno");this.retorno=e??""}Concat(e){return e&&e.trim().length&&(this.retorno+=` ${e}`),this}AddClass(e,n=!0){return n?this.Concat(e):this}Build(){return this.retorno.trim()}}function Mn(t=[]){let e="body > *:not(script):not(style)";for(const r of t)e+=`, ${r}`;const n=Math.max(...Array.from(document.querySelectorAll(e)).map(r=>{const o=getComputedStyle(r).zIndex;return+o==+o?+o:0}));return n>=100?n:100}const Br=s.defineComponent({__name:"Tooltip",props:{text:{}},setup(t){const e=t;class n{constructor(){Pe(this,"target",null);Pe(this,"wrapper",null);Pe(this,"inner",null);Pe(this,"showTimeout",null)}Render(){this.wrapper=document.createElement("div"),this.wrapper.classList.add("sf-tooltip-wrapper"),this.wrapper.style.zIndex=`${Mn()??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()},500)}Hide(){this.showTimeout&&clearTimeout(this.showTimeout);try{this.wrapper.classList.remove("visible"),this.inner.remove(),this.wrapper.remove(),this.inner=null,this.wrapper=null,this.target=null}catch{}}Position(){if(!this.target||!this.wrapper)return;const i=this.target.getBoundingClientRect();this.FixWidth();const a=this.wrapper,l=5;a.style.top=`${i.top+i.height-l}px`,a.style.left=`${i.left+i.width-l}px`,this.OutOfBottom()&&(a.style.top=`${i.top-a.clientHeight+l}px`),this.OutOfRight()&&(a.style.left=`${i.left-a.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 a=window.innerWidth/2;i.clientWidth>a&&(i.style.width=`${a}px`,i.style.wordBreak="break-word",i.style.whiteSpace="normal")}OutOfBottom(){const i=this.wrapper;if(!i)return!1;const a=i.getBoundingClientRect(),l=window.innerHeight||document.documentElement.clientHeight;return a.bottom+10>l}OutOfRight(){const i=this.wrapper;if(!i)return!1;const a=i.getBoundingClientRect(),l=window.innerWidth||document.documentElement.clientWidth;return a.right+10>l}}const r=new n;return s.onBeforeUnmount(()=>{r.Hide()}),(o,i)=>(s.openBlock(),s.createElementBlock("div",{class:"sf-tooltip-anchor",onMouseenter:i[0]||(i[0]=(...a)=>s.unref(r).Show&&s.unref(r).Show(...a)),onMousedown:i[1]||(i[1]=(...a)=>s.unref(r).Hide&&s.unref(r).Hide(...a)),onMouseleave:i[2]||(i[2]=(...a)=>s.unref(r).Hide&&s.unref(r).Hide(...a))},[s.renderSlot(o.$slots,"default")],32))}}),ls=["disabled","data-p-loading","tabindex"],cs=["data-color"],Ue=gt(s.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,r=s.computed(()=>n.tooltip?Br:"div"),o=s.computed(()=>new Ge(n.tooltip?"":"display-content").AddClass("loading",n.loading).AddClass("disabled",n.disabled).Build()),i=s.computed(()=>new Ge(`${n.class} sf-icon`).AddClass("sf-icon-button",n.button).AddClass("sf-icon-small",n.size==="sm").AddClass("sf-icon-medium",n.size==="md").AddClass("sf-icon-large",n.size==="lg").AddClass("sf-icon-xlarge",n.size==="xl").AddClass("sf-icon-2xlarge",n.size==="2xl").AddClass("sf-icon-3xlarge",n.size==="3xl").AddClass("sf-ripple",n.button===!0).AddClass(`${n.color}-color`,!!n.color&&n.color!=="inherit").Build()),a=c=>{n.disabled||n.loading||l("click",c)},l=e;return(c,d)=>(s.openBlock(),s.createBlock(s.resolveDynamicComponent(r.value),{text:n.tooltip,class:s.normalizeClass(o.value),onClick:a},{default:s.withCtx(()=>[n.visible?(s.openBlock(),s.createElementBlock("div",{key:0,style:s.normalizeStyle(n.style),class:s.normalizeClass(i.value)},[n.loading?(s.openBlock(),s.createBlock($r,{key:0})):(s.openBlock(),s.createElementBlock(s.Fragment,{key:1},[s.createElementVNode("button",s.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}),s.toDisplayString(n.icon),17,ls),n.dot?(s.openBlock(),s.createElementBlock("span",{key:0,"data-color":n.dotColor},null,8,cs)):s.createCommentVNode("",!0)],64))],6)):s.createCommentVNode("",!0)]),_:1},8,["text","class"]))}}),[["__scopeId","data-v-77b83510"]]),us=s.defineComponent({__name:"ScrollToTop",setup(t){const e=s.ref(!1),n=`--${+new Date}`;let r=null;function o(){r==null||r.scrollTo(0,0)}return s.onMounted(()=>{var i;r=((i=document.getElementById(n))==null?void 0:i.parentElement)??null,r&&r.addEventListener("scroll",function(){e.value=this.scrollTop-this.clientHeight>0})}),(i,a)=>(s.openBlock(),s.createElementBlock("button",{id:n,class:s.normalizeClass(["sf-scrollToTop",{"sf-scrollToTop-visible":e.value}]),onClick:o},null,2))}}),ds=s.defineComponent({__name:"Content",props:{class:{},style:{type:[Boolean,null,String,Object,Array]},disableBodyPadding:{type:Boolean},disableHeaderPadding:{type:Boolean},disableFooterPadding:{type:Boolean}},setup(t){const e=t;function n(){return new Ge("sf-content").AddClass(e.class,!!e.class).Build()}function r(){return new Ge("sf-content-body").AddClass("sf-content-no-padding",e.disableBodyPadding).Build()}function o(){return new Ge("sf-content-header").AddClass("sf-content-no-padding",e.disableHeaderPadding).Build()}function i(){return new Ge("sf-content-footer").AddClass("sf-content-no-padding",e.disableFooterPadding).Build()}return(a,l)=>(s.openBlock(),s.createElementBlock("div",{class:s.normalizeClass(n()),style:s.normalizeStyle(e.style)},[s.createElementVNode("div",{class:s.normalizeClass(o())},[s.renderSlot(a.$slots,"header")],2),s.createElementVNode("div",{class:s.normalizeClass(r())},[s.renderSlot(a.$slots,"default"),s.createVNode(us)],2),s.createElementVNode("div",{class:s.normalizeClass(i())},[s.renderSlot(a.$slots,"footer")],2)],6))}}),fs={class:"sf-tab-navigation"},ms=["data-active"],ps=["href","onClick"],hs=s.defineComponent({__name:"TabNavigation",props:{tabs:{}},setup(t){const e=t,n=s.ref(null),r=new ResizeObserver(c=>{l()}),o=s.ref(!1),i=s.ref(!1);function a(c=!1){const d=n.value.clientWidth;n.value.scrollLeft+=c?-d:d}function l(){const c=n.value.scrollWidth-n.value.clientWidth;o.value=n.value.scrollLeft>10,i.value=n.value.scrollLeft<c-10}return s.onMounted(()=>{n.value.addEventListener("scroll",l),r.observe(n.value)}),s.onBeforeUnmount(()=>{var c;try{(c=n.value)==null||c.removeEventListener("scroll",l),r.unobserve(n.value),r.disconnect()}catch{}}),(c,d)=>{const f=s.resolveComponent("RouterLink");return s.openBlock(),s.createElementBlock("div",fs,[s.createElementVNode("div",{class:s.normalizeClass(["left-arrow",{active:o.value}]),onClick:d[0]||(d[0]=p=>a(!0))},d[2]||(d[2]=[s.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"},[s.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M15.75 19.5L8.25 12l7.5-7.5"})],-1)]),2),s.createElementVNode("ul",{ref_key:"trackerContainer",ref:n},[(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(e.tabs,p=>(s.openBlock(),s.createBlock(f,{to:p.route,custom:!0},{default:s.withCtx(({navigate:y,isActive:k})=>[s.createElementVNode("li",{"data-active":k},[s.renderSlot(c.$slots,"item",{item:p,navigate:y,isActive:k},()=>[s.createElementVNode("a",{href:p.route,class:s.normalizeClass({active:k}),onClick:y},s.toDisplayString(p.text),11,ps)])],8,ms)]),_:2},1032,["to"]))),256))],512),s.createElementVNode("div",{class:s.normalizeClass(["right-arrow",{active:i.value}]),onClick:d[1]||(d[1]=p=>a())},d[3]||(d[3]=[s.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"},[s.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M8.25 4.5l7.5 7.5-7.5 7.5"})],-1)]),2)])}}}),gs=["id","name","disabled","data-color","form","type","data-p-loading"],ys=gt(s.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 r(){return new Ge(`${n.class??""} sf-button`).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).AddClass("sf-ripple",!n.loading&&!n.disabled).Build()}const o=a=>{n.disabled||n.loading||i("click",a)},i=e;return(a,l)=>n.visible?(s.openBlock(),s.createElementBlock("button",{key:0,id:n.id,name:n.name,class:s.normalizeClass(r()),style:s.normalizeStyle(n.style),disabled:n.disabled,"data-color":n.color,form:n.form,type:n.type,"data-p-loading":n.loading,onClick:o},[n.loading?(s.openBlock(),s.createBlock(Ue,{key:0,loading:!0,size:n.size,"button-props":{tabindex:-1},class:s.normalizeClass("icon-loading")},null,8,["size"])):s.createCommentVNode("",!0),n.icon?(s.openBlock(),s.createBlock(Ue,{key:1,icon:n.icon,size:n.size,"button-props":{tabindex:-1},filled:n.iconFilled,class:s.normalizeClass({transparent:n.loading})},null,8,["icon","size","filled","class"])):s.createCommentVNode("",!0),s.createElementVNode("span",{class:s.normalizeClass({"button-label":!0,transparent:!n.disabled&&n.loading})},[s.renderSlot(a.$slots,"default",{},void 0,!0)],2)],14,gs)):s.createCommentVNode("",!0)}}),[["__scopeId","data-v-09dce4de"]]),bs={class:"sf-drawer-title"},vs={class:"sf-drawer-action"},ws=s.defineComponent({__name:"Drawer",props:{visible:{type:Boolean,default:!1},position:{default:"left"},style:{type:[Boolean,null,String,Object,Array]},dismissableMask:{type:Boolean,default:!0},title:{},unstyledHeader:{type:Boolean},unstyledContent:{type:Boolean},unstyledFooter:{type:Boolean}},emits:["update:visible","open","before-close"],setup(t,{emit:e}){const n=t,r=e,o=s.useSlots(),i=s.ref(n.visible),a=s.ref(!1),l=s.ref(0),c="sf-drawer-"+Math.random().toString(36).slice(2,11)+"-"+Date.now();function d(){i.value=!1}function f(w){if(!n.dismissableMask)return;const S=w.target;S&&S.id===c&&(i.value=!1)}function p(w){(w.key==="Escape"||w.code==="Escape")&&d()}function y(){r("open"),window.document.addEventListener("keydown",p,!0)}function k(w){l.value=Mn(),w.style.zIndex=`${l.value}`}function C(w){var S;r("before-close"),(S=w==null?void 0:w.parentElement)==null||S.classList.add("sf-mask-overlay-leave")}function A(){window.document.removeEventListener("keydown",p,!0),a.value=!1}function L(){return new Ge("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 s.watch(()=>n.visible,w=>{i.value=w}),s.watch(()=>i.value,w=>{r("update:visible",w),w&&(a.value=!0)}),(w,S)=>(s.openBlock(),s.createBlock(s.Teleport,{to:"body"},[a.value?(s.openBlock(),s.createElementBlock("div",{key:0,id:c,class:s.normalizeClass(L()),style:s.normalizeStyle({zIndex:l.value-1}),onClick:s.withModifiers(f,["stop"])},[s.createVNode(s.Transition,{name:"sf-drawer",appear:"",onBeforeEnter:k,onEnter:y,onBeforeLeave:C,onAfterLeave:A},{default:s.withCtx(()=>[i.value?(s.openBlock(),s.createElementBlock("div",{key:0,class:s.normalizeClass(["sf-drawer"]),style:s.normalizeStyle(n.style),role:"dialog"},[s.renderSlot(w.$slots,"header",s.normalizeProps(s.guardReactiveProps({Close:d})),()=>[s.createElementVNode("div",{class:s.normalizeClass(["sf-drawer-header",{unstyled:n.unstyledHeader}])},[s.renderSlot(w.$slots,"title",{},()=>[s.createElementVNode("div",bs,s.toDisplayString(n.title),1)]),S[0]||(S[0]=s.createElementVNode("div",{class:"sf-drawer-spacer"},null,-1)),s.renderSlot(w.$slots,"action",s.normalizeProps(s.guardReactiveProps({Close:d})),()=>[s.createElementVNode("div",vs,[s.createVNode(Ue,{button:!0,icon:"close",onClick:d})])])],2)]),s.createElementVNode("div",{class:s.normalizeClass(["sf-drawer-content",{unstyled:n.unstyledContent}])},[s.renderSlot(w.$slots,"default")],2),s.unref(o).footer?(s.openBlock(),s.createElementBlock("div",{key:0,class:s.normalizeClass(["sf-drawer-footer",{unstyled:n.unstyledFooter}])},[s.renderSlot(w.$slots,"footer",s.normalizeProps(s.guardReactiveProps({Close:d})))],2)):s.createCommentVNode("",!0)],4)):s.createCommentVNode("",!0)]),_:3})],6)):s.createCommentVNode("",!0)]))}}),ks=["data-icon"],_s=s.defineComponent({__name:"Message",props:{color:{default:"info"},class:{},style:{type:[Boolean,null,String,Object,Array]},icon:{}},setup(t){const e=t,n=s.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}}),r=s.computed(()=>new Ge("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(o,i)=>(s.openBlock(),s.createElementBlock("div",{class:s.normalizeClass(r.value),"data-icon":n.value},[s.renderSlot(o.$slots,"default")],10,ks))}});function Ss(t,e){return t?t.classList?t.classList.contains(e):new RegExp("(^| )"+e+"( |$)","gi").test(t.className):!1}function Cs(t,e){if(t&&e){const n=r=>{Ss(t,r)||(t.classList?t.classList.add(r):t.className+=" "+r)};[e].flat().filter(Boolean).forEach(r=>r.split(" ").forEach(n))}}function Dn(t,e){if(t&&e){const n=r=>{t.classList?t.classList.remove(r):t.className=t.className.replace(new RegExp("(^|\\b)"+r.split(" ").join("|")+"(\\b|$)","gi")," ")};[e].flat().filter(Boolean).forEach(r=>r.split(" ").forEach(n))}}function Es(t,e){return t instanceof HTMLElement?t.offsetWidth:0}function dn(t){return typeof HTMLElement=="object"?t instanceof HTMLElement:t&&typeof t=="object"&&t!==null&&t.nodeType===1&&typeof t.nodeName=="string"}function fn(t,e={}){if(dn(t)){const n=(r,o)=>{var i,a;const l=(i=t==null?void 0:t.$attrs)!=null&&i[r]?[(a=t==null?void 0:t.$attrs)==null?void 0:a[r]]:[];return[o].flat().reduce((c,d)=>{if(d!=null){const f=typeof d;if(f==="string"||f==="number")c.push(d);else if(f==="object"){const p=Array.isArray(d)?n(r,d):Object.entries(d).map(([y,k])=>r==="style"&&(k||k===0)?`${y.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase()}:${k}`:k?y:void 0);c=p.length?c.concat(p.filter(y=>!!y)):c}}return c},l)};Object.entries(e).forEach(([r,o])=>{if(o!=null){const i=r.match(/^on(.+)/);i?t.addEventListener(i[1].toLowerCase(),o):r==="p-bind"?fn(t,o):(o=r==="class"?[...new Set(n("class",o))].join(" ").trim():r==="style"?n("style",o).join(";").trim():o,(t.$attrs=t.$attrs||{})&&(t.$attrs[r]=o),t.setAttribute(r,o))}})}}function Is(t,e={},...n){{const r=document.createElement(t);return fn(r,e),r.append(...n),r}}function Be(t,e){return dn(t)?t.matches(e)?t:t.querySelector(e):null}function Lt(t,e){t&&document.activeElement!==t&&t.focus(e)}function xt(t,e){if(dn(t)){const n=t.getAttribute(e);return isNaN(n)?n==="true"||n==="false"?n==="true":n:+n}}function Nr(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 Ts(t){if(t){let e=t.parentNode;return e&&e instanceof ShadowRoot&&e.host&&(e=e.host),e}return null}function As(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||document.documentElement.scrollLeft||document.body.scrollLeft||0)}}return{top:"auto",left:"auto"}}function Ps(t,e){return t?t.offsetHeight:0}function Ls(t){return!!(t!==null&&typeof t<"u"&&t.nodeName&&Ts(t))}function Mr(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 xs(){return!!(typeof window<"u"&&window.document&&window.document.createElement)}function Os(t,e="",n){dn(t)&&n!==null&&n!==void 0&&t.setAttribute(e,n)}function Dr(){const t=new Map;return{on(e,n){let r=t.get(e);return r?r.push(n):r=[n],t.set(e,r),this},off(e,n){let r=t.get(e);return r&&r.splice(r.indexOf(n)>>>0,1),this},emit(e,n){let r=t.get(e);r&&r.slice().map(o=>{o(n)})},clear(){t.clear()}}}function at(t){return t==null||t===""||Array.isArray(t)&&t.length===0||!(t instanceof Date)&&typeof t=="object"&&Object.keys(t).length===0}function Rn(t,e){if(t===e)return!0;if(t&&e&&typeof t=="object"&&typeof e=="object"){var n=Array.isArray(t),r=Array.isArray(e),o,i,a;if(n&&r){if(i=t.length,i!=e.length)return!1;for(o=i;o--!==0;)if(!Rn(t[o],e[o]))return!1;return!0}if(n!=r)return!1;var l=t instanceof Date,c=e instanceof Date;if(l!=c)return!1;if(l&&c)return t.getTime()==e.getTime();var d=t instanceof RegExp,f=e instanceof RegExp;if(d!=f)return!1;if(d&&f)return t.toString()==e.toString();var p=Object.keys(t);if(i=p.length,i!==Object.keys(e).length)return!1;for(o=i;o--!==0;)if(!Object.prototype.hasOwnProperty.call(e,p[o]))return!1;for(o=i;o--!==0;)if(a=p[o],!Rn(t[a],e[a]))return!1;return!0}return t!==t&&e!==e}function Un(t){return!!(t&&t.constructor&&t.call&&t.apply)}function Z(t){return!at(t)}function yt(t,e,n){return Rn(t,e)}function Rr(t,e){let n;if(Z(t))try{n=t.findLast(e)}catch{n=[...t].reverse().find(e)}return n}function tt(t,e=!0){return t instanceof Object&&t.constructor===Object&&(e||Object.keys(t).length!==0)}function Ce(t,...e){return Un(t)?t(...e):t}function ve(t,e=!0){return typeof t=="string"&&(e||t!=="")}function Ne(t){return ve(t)?t.replace(/(-|_)/g,"").toLowerCase():t}function Vn(t,e="",n={}){const r=Ne(e).split("."),o=r.shift();return o?tt(t)?Vn(Ce(t[Object.keys(t).find(i=>Ne(i)===o)||""],n),r.join("."),n):void 0:Ce(t,n)}function Hn(t,e=!0){return Array.isArray(t)&&(e||t.length!==0)}function Ur(t){return Z(t)&&!isNaN(t)}function $s(t=""){return Z(t)&&t.length===1&&!!t.match(/\S| /)}function qe(t,e){if(e){const n=e.test(t);return e.lastIndex=0,n}return!1}function Ot(t){return t&&t.replace(/\/\*(?:(?!\*\/)[\s\S])*\*\/|[\r\n\t]+/g,"").replace(/ {2,}/g," ").replace(/ ([{:}]) /g,"$1").replace(/([;,]) /g,"$1").replace(/ !/g,"!").replace(/: /g,":")}function Bs(t){return ve(t,!1)?t[0].toUpperCase()+t.slice(1):t}function Vr(t){return ve(t)?t.replace(/(_)/g,"-").replace(/[A-Z]/g,(e,n)=>n===0?e:"-"+e.toLowerCase()).toLowerCase():t}function Hr(t){return ve(t)?t.replace(/[A-Z]/g,(e,n)=>n===0?e:"."+e.toLowerCase()).toLowerCase():t}var mn={};function Ns(t="pui_id_"){return mn.hasOwnProperty(t)||(mn[t]=0),mn[t]++,`${t}${mn[t]}`}function pn(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"pv_id_";return Ns(t)}var Ms=Object.defineProperty,Ds=Object.defineProperties,Rs=Object.getOwnPropertyDescriptors,hn=Object.getOwnPropertySymbols,jr=Object.prototype.hasOwnProperty,Fr=Object.prototype.propertyIsEnumerable,zr=(t,e,n)=>e in t?Ms(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,$t=(t,e)=>{for(var n in e||(e={}))jr.call(e,n)&&zr(t,n,e[n]);if(hn)for(var n of hn(e))Fr.call(e,n)&&zr(t,n,e[n]);return t},jn=(t,e)=>Ds(t,Rs(e)),Bt=(t,e)=>{var n={};for(var r in t)jr.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&hn)for(var r of hn(t))e.indexOf(r)<0&&Fr.call(t,r)&&(n[r]=t[r]);return n},Us=Dr(),Ye=Us;function Kr(t,e){Hn(t)?t.push(...e||[]):tt(t)&&Object.assign(t,e)}function Vs(t){return tt(t)&&t.hasOwnProperty("value")&&t.hasOwnProperty("type")?t.value:t}function Wr(t,e=""){return["opacity","z-index","line-height","font-weight","flex","flex-grow","flex-shrink","order"].some(r=>e.endsWith(r))?t:`${t}`.trim().split(" ").map(i=>Ur(i)?`${i}px`:i).join(" ")}function Hs(t){return t.replaceAll(/ /g,"").replace(/[^\w]/g,"-")}function Fn(t="",e=""){return Hs(`${ve(t,!1)&&ve(e,!1)?`${t}-`:t}${e}`)}function Gr(t="",e=""){return`--${Fn(t,e)}`}function qr(t,e="",n="",r=[],o){if(ve(t)){const i=/{([^}]*)}/g,a=t.trim();if(qe(a,i)){const l=a.replaceAll(i,f=>{const y=f.replace(/{|}/g,"").split(".").filter(k=>!r.some(C=>qe(k,C)));return`var(${Gr(n,Vr(y.join("-")))}${Z(o)?`, ${o}`:""})`}),c=/(\d+\s+[\+\-\*\/]\s+\d+)/g,d=/var\([^)]+\)/g;return qe(l.replace(d,"0"),c)?`calc(${l})`:l}return Wr(a,e)}else if(Ur(t))return Wr(t,e)}function js(t,e,n){ve(e,!1)&&t.push(`${e}:${n};`)}function Nt(t,e){return t?`${t}{${e}}`:""}var zn=(...t)=>Fs(ee.getTheme(),...t),Fs=(t={},e,n,r="variable")=>{if(e){const{variable:o,options:i}=ee.defaults||{},{prefix:a,transform:l}=(t==null?void 0:t.options)||i||{},d=qe(e,/{([^}]*)}/g)?e:`{${e}}`;return r==="value"||l==="strict"?ee.getTokenValue(e):qr(d,void 0,a,[o.excludedKeyRegex],n)}return""};function zs(t,e={}){const n=ee.defaults.variable,{prefix:r=n.prefix,selector:o=n.selector,excludedKeyRegex:i=n.excludedKeyRegex}=e,a=(d,f="")=>Object.entries(d).reduce((p,[y,k])=>{const C=qe(y,i)?Fn(f):Fn(f,Vr(y)),A=Vs(k);if(tt(A)){const{variables:L,tokens:w}=a(A,C);Kr(p.tokens,w),Kr(p.variables,L)}else p.tokens.push((r?C.replace(`${r}-`,""):C).replaceAll("-",".")),js(p.variables,Gr(C),qr(A,C,r,[i]));return p},{variables:[],tokens:[]}),{variables:l,tokens:c}=a(t,r);return{value:l,tokens:c,declarations:l.join(""),css:Nt(o,l.join(""))}}var Me={regex:{rules:{class:{pattern:/^\.([a-zA-Z][\w-]*)$/,resolve(t){return{type:"class",selector:t,matched:this.pattern.test(t.trim())}}},attr:{pattern:/^\[(.*)\]$/,resolve(t){return{type:"attr",selector:`:root${t}`,matched:this.pattern.test(t.trim())}}},media:{pattern:/^@media (.*)$/,resolve(t){return{type:"media",selector:`${t}{:root{[CSS]}}`,matched:this.pattern.test(t.trim())}}},system:{pattern:/^system$/,resolve(t){return{type:"system",selector:"@media (prefers-color-scheme: dark){:root{[CSS]}}",matched:this.pattern.test(t.trim())}}},custom:{resolve(t){return{type:"custom",selector:t,matched:!0}}}},resolve(t){const e=Object.keys(this.rules).filter(n=>n!=="custom").map(n=>this.rules[n]);return[t].flat().map(n=>{var r;return(r=e.map(o=>o.resolve(n)).find(o=>o.matched))!=null?r:this.rules.custom.resolve(n)})}},_toVariables(t,e){return zs(t,{prefix:e==null?void 0:e.prefix})},getCommon({name:t="",theme:e={},params:n,set:r,defaults:o}){var i,a,l,c;const{preset:d,options:f}=e;let p,y,k,C;if(Z(d)){const{primitive:A,semantic:L}=d,w=L||{},{colorScheme:S}=w,N=Bt(w,["colorScheme"]),U=S||{},{dark:G}=U,ce=Bt(U,["dark"]),te=Z(A)?this._toVariables({primitive:A},f):{},Ae=Z(N)?this._toVariables({semantic:N},f):{},ne=Z(ce)?this._toVariables({light:ce},f):{},Y=Z(G)?this._toVariables({dark:G},f):{},[M,X]=[(i=te.declarations)!=null?i:"",te.tokens],[ue,de]=[(a=Ae.declarations)!=null?a:"",Ae.tokens||[]],[je,Ze]=[(l=ne.declarations)!=null?l:"",ne.tokens||[]],[Fe,ze]=[(c=Y.declarations)!=null?c:"",Y.tokens||[]];p=this.transformCSS(t,M,"light","variable",f,r,o),y=X;const pt=this.transformCSS(t,`${ue}${je}color-scheme:light`,"light","variable",f,r,o),$e=this.transformCSS(t,`${Fe}color-scheme:dark`,"dark","variable",f,r,o);k=`${pt}${$e}`,C=[...new Set([...de,...Ze,...ze])]}return{primitive:{css:p,tokens:y},semantic:{css:k,tokens:C}}},getPreset({name:t="",preset:e={},options:n,params:r,set:o,defaults:i,selector:a}){var l,c,d;const f=t.replace("-directive",""),p=e,{colorScheme:y}=p,k=Bt(p,["colorScheme"]),C=y||{},{dark:A}=C,L=Bt(C,["dark"]),w=Z(k)?this._toVariables({[f]:k},n):{},S=Z(L)?this._toVariables({[f]:L},n):{},N=Z(A)?this._toVariables({[f]:A},n):{},[U,G]=[(l=w.declarations)!=null?l:"",w.tokens||[]],[ce,te]=[(c=S.declarations)!=null?c:"",S.tokens||[]],[Ae,ne]=[(d=N.declarations)!=null?d:"",N.tokens||[]],Y=[...new Set([...G,...te,...ne])],M=this.transformCSS(f,`${U}${ce}`,"light","variable",n,o,i,a),X=this.transformCSS(f,Ae,"dark","variable",n,o,i,a);return{css:`${M}${X}`,tokens:Y}},getPresetC({name:t="",theme:e={},params:n,set:r,defaults:o}){var i;const{preset:a,options:l}=e,c=(i=a==null?void 0:a.components)==null?void 0:i[t];return this.getPreset({name:t,preset:c,options:l,params:n,set:r,defaults:o})},getPresetD({name:t="",theme:e={},params:n,set:r,defaults:o}){var i;const a=t.replace("-directive",""),{preset:l,options:c}=e,d=(i=l==null?void 0:l.directives)==null?void 0:i[a];return this.getPreset({name:a,preset:d,options:c,params:n,set:r,defaults:o})},getColorSchemeOption(t,e){var n;return this.regex.resolve((n=t.darkModeSelector)!=null?n:e.options.darkModeSelector)},getLayerOrder(t,e={},n,r){const{cssLayer:o}=e;return o?`@layer ${Ce(o.order||"primeui",n)}`:""},getCommonStyleSheet({name:t="",theme:e={},params:n,props:r={},set:o,defaults:i}){const a=this.getCommon({name:t,theme:e,params:n,set:o,defaults:i}),l=Object.entries(r).reduce((c,[d,f])=>c.push(`${d}="${f}"`)&&c,[]).join(" ");return Object.entries(a||{}).reduce((c,[d,f])=>{if(f!=null&&f.css){const p=Ot(f==null?void 0:f.css),y=`${d}-variables`;c.push(`<style type="text/css" data-primevue-style-id="${y}" ${l}>${p}</style>`)}return c},[]).join("")},getStyleSheet({name:t="",theme:e={},params:n,props:r={},set:o,defaults:i}){var a;const l={name:t,theme:e,params:n,set:o,defaults:i},c=(a=t.includes("-directive")?this.getPresetD(l):this.getPresetC(l))==null?void 0:a.css,d=Object.entries(r).reduce((f,[p,y])=>f.push(`${p}="${y}"`)&&f,[]).join(" ");return c?`<style type="text/css" data-primevue-style-id="${t}-variables" ${d}>${Ot(c)}</style>`:""},createTokens(t={},e,n="",r="",o={}){return Object.entries(t).forEach(([i,a])=>{const l=qe(i,e.variable.excludedKeyRegex)?n:n?`${n}.${Hr(i)}`:Hr(i),c=r?`${r}.${i}`:i;tt(a)?this.createTokens(a,e,l,c,o):(o[l]||(o[l]={paths:[],computed(d,f={}){if(d){const p=this.paths.find(y=>y.scheme===d)||this.paths.find(y=>y.scheme==="none");return p==null?void 0:p.computed(d,f.binding)}return this.paths.map(p=>p.computed(p.scheme,f[p.scheme]))}}),o[l].paths.push({path:c,value:a,scheme:c.includes("colorScheme.light")?"light":c.includes("colorScheme.dark")?"dark":"none",computed(d,f={}){const p=/{([^}]*)}/g;let y=a;if(f.name=this.path,f.binding||(f.binding={}),qe(a,p)){const C=a.trim().replaceAll(p,w=>{var S,N;const U=w.replace(/{|}/g,"");return(N=(S=o[U])==null?void 0:S.computed(d,f))==null?void 0:N.value}),A=/(\d+\w*\s+[\+\-\*\/]\s+\d+\w*)/g,L=/var\([^)]+\)/g;y=qe(C.replace(L,"0"),A)?`calc(${C})`:C}return at(f.binding)&&delete f.binding,{colorScheme:d,path:this.path,paths:f,value:y.includes("undefined")?void 0:y}}}))}),o},getTokenValue(t,e,n){var r;const i=(c=>c.split(".").filter(f=>!qe(f.toLowerCase(),n.variable.excludedKeyRegex)).join("."))(e),a=e.includes("colorScheme.light")?"light":e.includes("colorScheme.dark")?"dark":void 0,l=[(r=t[i])==null?void 0:r.computed(a)].flat().filter(c=>c);return l.length===1?l[0].value:l.reduce((c={},d)=>{const f=d,{colorScheme:p}=f,y=Bt(f,["colorScheme"]);return c[p]=y,c},void 0)},transformCSS(t,e,n,r,o={},i,a,l){if(Z(e)){const{cssLayer:c}=o;if(r!=="style"){const d=this.getColorSchemeOption(o,a),f=l?Nt(l,e):e;e=n==="dark"?d.reduce((p,{selector:y})=>(Z(y)&&(p+=y.includes("[CSS]")?y.replace("[CSS]",f):Nt(y,f)),p),""):Nt(l??":root",e)}if(c){const d={name:"primeui",order:"primeui"};tt(c)&&(d.name=Ce(c.name,{name:t,type:r})),Z(d.name)&&(e=Nt(`@layer ${d.name}`,e),i==null||i.layerNames(d.name))}return e}return""}},ee={defaults:{variable:{prefix:"p",selector:":root",excludedKeyRegex:/^(primitive|semantic|components|directives|variables|colorscheme|light|dark|common|root|states)$/gi},options:{prefix:"p",darkModeSelector:"system",cssLayer:!1}},_theme:void 0,_layerNames:new Set,_loadedStyleNames:new Set,_loadingStyles:new Set,_tokens:{},update(t={}){const{theme:e}=t;e&&(this._theme=jn($t({},e),{options:$t($t({},this.defaults.options),e.options)}),this._tokens=Me.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}),Ye.emit("theme:change",t)},getPreset(){return this.preset},setPreset(t){this._theme=jn($t({},this.theme),{preset:t}),this._tokens=Me.createTokens(t,this.defaults),this.clearLoadedStyleNames(),Ye.emit("preset:change",t),Ye.emit("theme:change",this.theme)},getOptions(){return this.options},setOptions(t){this._theme=jn($t({},this.theme),{options:t}),this.clearLoadedStyleNames(),Ye.emit("options:change",t),Ye.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 Me.getTokenValue(this.tokens,t,this.defaults)},getCommon(t="",e){return Me.getCommon({name:t,theme:this.theme,params:e,defaults:this.defaults,set:{layerNames:this.setLayerNames.bind(this)}})},getComponent(t="",e){const n={name:t,theme:this.theme,params:e,defaults:this.defaults,set:{layerNames:this.setLayerNames.bind(this)}};return Me.getPresetC(n)},getDirective(t="",e){const n={name:t,theme:this.theme,params:e,defaults:this.defaults,set:{layerNames:this.setLayerNames.bind(this)}};return Me.getPresetD(n)},getCustomPreset(t="",e,n,r){const o={name:t,preset:e,options:this.options,selector:n,params:r,defaults:this.defaults,set:{layerNames:this.setLayerNames.bind(this)}};return Me.getPreset(o)},getLayerOrderCSS(t=""){return Me.getLayerOrder(t,this.options,{names:this.getLayerNames()},this.defaults)},transformCSS(t="",e,n="style",r){return Me.transformCSS(t,e,r,n,this.options,{layerNames:this.setLayerNames.bind(this)},this.defaults)},getCommonStyleSheet(t="",e,n={}){return Me.getCommonStyleSheet({name:t,theme:this.theme,params:e,props:n,defaults:this.defaults,set:{layerNames:this.setLayerNames.bind(this)}})},getStyleSheet(t,e,n={}){return Me.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),Ye.emit(`theme:${e}:load`,t),!this._loadingStyles.size&&Ye.emit("theme:load"))}},nt={_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()}};function Mt(t){"@babel/helpers - typeof";return Mt=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Mt(t)}function Yr(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(t,o).enumerable})),n.push.apply(n,r)}return n}function Xr(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?Yr(Object(n),!0).forEach(function(r){Ks(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Yr(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}function Ks(t,e,n){return(e=Ws(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function Ws(t){var e=Gs(t,"string");return Mt(e)=="symbol"?e:e+""}function Gs(t,e){if(Mt(t)!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var r=n.call(t,e||"default");if(Mt(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function qs(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;s.getCurrentInstance()?s.onMounted(t):e?t():s.nextTick(t)}var Ys=0;function Xs(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=s.ref(!1),r=s.ref(t),o=s.ref(null),i=xs()?window.document:void 0,a=e.document,l=a===void 0?i:a,c=e.immediate,d=c===void 0?!0:c,f=e.manual,p=f===void 0?!1:f,y=e.name,k=y===void 0?"style_".concat(++Ys):y,C=e.id,A=C===void 0?void 0:C,L=e.media,w=L===void 0?void 0:L,S=e.nonce,N=S===void 0?void 0:S,U=e.first,G=U===void 0?!1:U,ce=e.onMounted,te=ce===void 0?void 0:ce,Ae=e.onUpdated,ne=Ae===void 0?void 0:Ae,Y=e.onLoad,M=Y===void 0?void 0:Y,X=e.props,ue=X===void 0?{}:X,de=function(){},je=function(ze){var pt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(l){var $e=Xr(Xr({},ue),pt),u=$e.name||k,h=$e.id||A,v=$e.nonce||N;o.value=l.querySelector('style[data-primevue-style-id="'.concat(u,'"]'))||l.getElementById(h)||l.createElement("style"),o.value.isConnected||(r.value=ze||t,fn(o.value,{type:"text/css",id:h,media:w,nonce:v}),G?l.head.prepend(o.value):l.head.appendChild(o.value),Os(o.value,"data-primevue-style-id",u),fn(o.value,$e),o.value.onload=function(T){return M==null?void 0:M(T,{name:u})},te==null||te(u)),!n.value&&(de=s.watch(r,function(T){o.value.textContent=T,ne==null||ne(u)},{immediate:!0}),n.value=!0)}},Ze=function(){!l||!n.value||(de(),Ls(o.value)&&l.head.removeChild(o.value),n.value=!1)};return d&&!p&&qs(je),{id:A,name:k,el:o,css:r,unload:Ze,load:je,isLoaded:s.readonly(n)}}function Dt(t){"@babel/helpers - typeof";return Dt=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},Dt(t)}function Zr(t,e){return ea(t)||Qs(t,e)||Js(t,e)||Zs()}function Zs(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
1
+ (function(R,s){typeof exports=="object"&&typeof module<"u"?s(exports,require("vue"),require("vue-router")):typeof define=="function"&&define.amd?define(["exports","vue","vue-router"],s):(R=typeof globalThis<"u"?globalThis:R||self,s((R.sf=R.sf||{},R.sf.prefeiturasp=R.sf.prefeiturasp||{},R.sf.prefeiturasp.vuecomponents={}),R.Vue,R.VueRouter))})(this,function(R,s,ht){"use strict";var Hf=Object.defineProperty;var jf=(R,s,ht)=>s in R?Hf(R,s,{enumerable:!0,configurable:!0,writable:!0,value:ht}):R[s]=ht;var Pe=(R,s,ht)=>jf(R,typeof s!="symbol"?s+"":s,ht);const gt=(t,e)=>{const n=t.__vccOpts||t;for(const[r,o]of e)n[r]=o;return n},is={},ss={class:"sf-loading-circle"};function as(t,e){return s.openBlock(),s.createElementBlock("div",ss,e[0]||(e[0]=[s.createElementVNode("div",null,[s.createElementVNode("svg",{viewBox:"25 25 50 50"},[s.createElementVNode("circle",{cx:"50",cy:"50",r:"20",fill:"none","stroke-width":"4","stroke-miterlimit":"10"})])],-1)]))}const $r=gt(is,[["render",as]]);class Ge{constructor(e){Pe(this,"retorno");this.retorno=e??""}Concat(e){return e&&e.trim().length&&(this.retorno+=` ${e}`),this}AddClass(e,n=!0){return n?this.Concat(e):this}Build(){return this.retorno.trim()}}function Mn(t=[]){let e="body > *:not(script):not(style)";for(const r of t)e+=`, ${r}`;const n=Math.max(...Array.from(document.querySelectorAll(e)).map(r=>{const o=getComputedStyle(r).zIndex;return+o==+o?+o:0}));return n>=100?n:100}const Br=s.defineComponent({__name:"Tooltip",props:{text:{}},setup(t){const e=t;class n{constructor(){Pe(this,"target",null);Pe(this,"wrapper",null);Pe(this,"inner",null);Pe(this,"showTimeout",null)}Render(){this.wrapper=document.createElement("div"),this.wrapper.classList.add("sf-tooltip-wrapper"),this.wrapper.style.zIndex=`${Mn()??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()},500)}Hide(){this.showTimeout&&clearTimeout(this.showTimeout);try{this.wrapper.classList.remove("visible"),this.inner.remove(),this.wrapper.remove(),this.inner=null,this.wrapper=null,this.target=null}catch{}}Position(){if(!this.target||!this.wrapper)return;const i=this.target.getBoundingClientRect();this.FixWidth();const a=this.wrapper,l=5;a.style.top=`${i.top+i.height-l}px`,a.style.left=`${i.left+i.width-l}px`,this.OutOfBottom()&&(a.style.top=`${i.top-a.clientHeight+l}px`),this.OutOfRight()&&(a.style.left=`${i.left-a.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 a=window.innerWidth/2;i.clientWidth>a&&(i.style.width=`${a}px`,i.style.wordBreak="break-word",i.style.whiteSpace="normal")}OutOfBottom(){const i=this.wrapper;if(!i)return!1;const a=i.getBoundingClientRect(),l=window.innerHeight||document.documentElement.clientHeight;return a.bottom+10>l}OutOfRight(){const i=this.wrapper;if(!i)return!1;const a=i.getBoundingClientRect(),l=window.innerWidth||document.documentElement.clientWidth;return a.right+10>l}}const r=new n;return s.onBeforeUnmount(()=>{r.Hide()}),(o,i)=>(s.openBlock(),s.createElementBlock("div",{class:"sf-tooltip-anchor",onMouseenter:i[0]||(i[0]=(...a)=>s.unref(r).Show&&s.unref(r).Show(...a)),onMousedown:i[1]||(i[1]=(...a)=>s.unref(r).Hide&&s.unref(r).Hide(...a)),onMouseleave:i[2]||(i[2]=(...a)=>s.unref(r).Hide&&s.unref(r).Hide(...a))},[s.renderSlot(o.$slots,"default")],32))}}),ls=["disabled","data-p-loading","tabindex"],cs=["data-color"],Ue=gt(s.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,r=s.computed(()=>n.tooltip?Br:"div"),o=s.computed(()=>new Ge(n.tooltip?"":"display-content").AddClass("loading",n.loading).AddClass("disabled",n.disabled).Build()),i=s.computed(()=>new Ge(`${n.class} sf-icon`).AddClass("select-none").AddClass("sf-icon-button",n.button).AddClass("sf-icon-small",n.size==="sm").AddClass("sf-icon-medium",n.size==="md").AddClass("sf-icon-large",n.size==="lg").AddClass("sf-icon-xlarge",n.size==="xl").AddClass("sf-icon-2xlarge",n.size==="2xl").AddClass("sf-icon-3xlarge",n.size==="3xl").AddClass("sf-ripple",n.button===!0).AddClass(`${n.color}-color`,!!n.color&&n.color!=="inherit").Build()),a=c=>{n.disabled||n.loading||l("click",c)},l=e;return(c,d)=>(s.openBlock(),s.createBlock(s.resolveDynamicComponent(r.value),{text:n.tooltip,class:s.normalizeClass(o.value),onClick:a},{default:s.withCtx(()=>[n.visible?(s.openBlock(),s.createElementBlock("div",{key:0,style:s.normalizeStyle(n.style),class:s.normalizeClass(i.value)},[n.loading?(s.openBlock(),s.createBlock($r,{key:0})):(s.openBlock(),s.createElementBlock(s.Fragment,{key:1},[s.createElementVNode("button",s.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}),s.toDisplayString(n.icon),17,ls),n.dot?(s.openBlock(),s.createElementBlock("span",{key:0,"data-color":n.dotColor},null,8,cs)):s.createCommentVNode("",!0)],64))],6)):s.createCommentVNode("",!0)]),_:1},8,["text","class"]))}}),[["__scopeId","data-v-ae2e7463"]]),us=s.defineComponent({__name:"ScrollToTop",setup(t){const e=s.ref(!1),n=`--${+new Date}`;let r=null;function o(){r==null||r.scrollTo(0,0)}return s.onMounted(()=>{var i;r=((i=document.getElementById(n))==null?void 0:i.parentElement)??null,r&&r.addEventListener("scroll",function(){e.value=this.scrollTop-this.clientHeight>0})}),(i,a)=>(s.openBlock(),s.createElementBlock("button",{id:n,class:s.normalizeClass(["sf-scrollToTop",{"sf-scrollToTop-visible":e.value}]),onClick:o},null,2))}}),ds=s.defineComponent({__name:"Content",props:{class:{},style:{type:[Boolean,null,String,Object,Array]},disableBodyPadding:{type:Boolean},disableHeaderPadding:{type:Boolean},disableFooterPadding:{type:Boolean}},setup(t){const e=t;function n(){return new Ge("sf-content").AddClass(e.class,!!e.class).Build()}function r(){return new Ge("sf-content-body").AddClass("sf-content-no-padding",e.disableBodyPadding).Build()}function o(){return new Ge("sf-content-header").AddClass("sf-content-no-padding",e.disableHeaderPadding).Build()}function i(){return new Ge("sf-content-footer").AddClass("sf-content-no-padding",e.disableFooterPadding).Build()}return(a,l)=>(s.openBlock(),s.createElementBlock("div",{class:s.normalizeClass(n()),style:s.normalizeStyle(e.style)},[s.createElementVNode("div",{class:s.normalizeClass(o())},[s.renderSlot(a.$slots,"header")],2),s.createElementVNode("div",{class:s.normalizeClass(r())},[s.renderSlot(a.$slots,"default"),s.createVNode(us)],2),s.createElementVNode("div",{class:s.normalizeClass(i())},[s.renderSlot(a.$slots,"footer")],2)],6))}}),fs={class:"sf-tab-navigation"},ms=["data-active"],ps=["href","onClick"],hs=s.defineComponent({__name:"TabNavigation",props:{tabs:{}},setup(t){const e=t,n=s.ref(null),r=new ResizeObserver(c=>{l()}),o=s.ref(!1),i=s.ref(!1);function a(c=!1){const d=n.value.clientWidth;n.value.scrollLeft+=c?-d:d}function l(){const c=n.value.scrollWidth-n.value.clientWidth;o.value=n.value.scrollLeft>10,i.value=n.value.scrollLeft<c-10}return s.onMounted(()=>{n.value.addEventListener("scroll",l),r.observe(n.value)}),s.onBeforeUnmount(()=>{var c;try{(c=n.value)==null||c.removeEventListener("scroll",l),r.unobserve(n.value),r.disconnect()}catch{}}),(c,d)=>{const f=s.resolveComponent("RouterLink");return s.openBlock(),s.createElementBlock("div",fs,[s.createElementVNode("div",{class:s.normalizeClass(["left-arrow",{active:o.value}]),onClick:d[0]||(d[0]=p=>a(!0))},d[2]||(d[2]=[s.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"},[s.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M15.75 19.5L8.25 12l7.5-7.5"})],-1)]),2),s.createElementVNode("ul",{ref_key:"trackerContainer",ref:n},[(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(e.tabs,p=>(s.openBlock(),s.createBlock(f,{to:p.route,custom:!0},{default:s.withCtx(({navigate:y,isActive:k})=>[s.createElementVNode("li",{"data-active":k},[s.renderSlot(c.$slots,"item",{item:p,navigate:y,isActive:k},()=>[s.createElementVNode("a",{href:p.route,class:s.normalizeClass({active:k}),onClick:y},s.toDisplayString(p.text),11,ps)])],8,ms)]),_:2},1032,["to"]))),256))],512),s.createElementVNode("div",{class:s.normalizeClass(["right-arrow",{active:i.value}]),onClick:d[1]||(d[1]=p=>a())},d[3]||(d[3]=[s.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"},[s.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M8.25 4.5l7.5 7.5-7.5 7.5"})],-1)]),2)])}}}),gs=["id","name","disabled","data-color","form","type","data-p-loading"],ys=gt(s.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 r(){return new Ge(`${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).AddClass("sf-ripple",!n.loading&&!n.disabled).Build()}const o=a=>{n.disabled||n.loading||i("click",a)},i=e;return(a,l)=>n.visible?(s.openBlock(),s.createElementBlock("button",{key:0,id:n.id,name:n.name,class:s.normalizeClass(r()),style:s.normalizeStyle(n.style),disabled:n.disabled,"data-color":n.color,form:n.form,type:n.type,"data-p-loading":n.loading,onClick:o},[n.loading?(s.openBlock(),s.createBlock(Ue,{key:0,loading:!0,size:n.size,"button-props":{tabindex:-1},class:s.normalizeClass("icon-loading")},null,8,["size"])):s.createCommentVNode("",!0),n.icon?(s.openBlock(),s.createBlock(Ue,{key:1,icon:n.icon,size:n.size,"button-props":{tabindex:-1},filled:n.iconFilled,class:s.normalizeClass({transparent:n.loading})},null,8,["icon","size","filled","class"])):s.createCommentVNode("",!0),s.createElementVNode("span",{class:s.normalizeClass({"button-label":!0,transparent:!n.disabled&&n.loading})},[s.renderSlot(a.$slots,"default",{},void 0,!0)],2)],14,gs)):s.createCommentVNode("",!0)}}),[["__scopeId","data-v-6213cac8"]]),bs={class:"sf-drawer-title"},vs={class:"sf-drawer-action"},ws=s.defineComponent({__name:"Drawer",props:{visible:{type:Boolean,default:!1},position:{default:"left"},style:{type:[Boolean,null,String,Object,Array]},dismissableMask:{type:Boolean,default:!0},title:{},unstyledHeader:{type:Boolean},unstyledContent:{type:Boolean},unstyledFooter:{type:Boolean}},emits:["update:visible","open","before-close"],setup(t,{emit:e}){const n=t,r=e,o=s.useSlots(),i=s.ref(n.visible),a=s.ref(!1),l=s.ref(0),c="sf-drawer-"+Math.random().toString(36).slice(2,11)+"-"+Date.now();function d(){i.value=!1}function f(w){if(!n.dismissableMask)return;const S=w.target;S&&S.id===c&&(i.value=!1)}function p(w){(w.key==="Escape"||w.code==="Escape")&&d()}function y(){r("open"),window.document.addEventListener("keydown",p,!0)}function k(w){l.value=Mn(),w.style.zIndex=`${l.value}`}function C(w){var S;r("before-close"),(S=w==null?void 0:w.parentElement)==null||S.classList.add("sf-mask-overlay-leave")}function A(){window.document.removeEventListener("keydown",p,!0),a.value=!1}function L(){return new Ge("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 s.watch(()=>n.visible,w=>{i.value=w}),s.watch(()=>i.value,w=>{r("update:visible",w),w&&(a.value=!0)}),(w,S)=>(s.openBlock(),s.createBlock(s.Teleport,{to:"body"},[a.value?(s.openBlock(),s.createElementBlock("div",{key:0,id:c,class:s.normalizeClass(L()),style:s.normalizeStyle({zIndex:l.value-1}),onClick:s.withModifiers(f,["stop"])},[s.createVNode(s.Transition,{name:"sf-drawer",appear:"",onBeforeEnter:k,onEnter:y,onBeforeLeave:C,onAfterLeave:A},{default:s.withCtx(()=>[i.value?(s.openBlock(),s.createElementBlock("div",{key:0,class:s.normalizeClass(["sf-drawer"]),style:s.normalizeStyle(n.style),role:"dialog"},[s.renderSlot(w.$slots,"header",s.normalizeProps(s.guardReactiveProps({Close:d})),()=>[s.createElementVNode("div",{class:s.normalizeClass(["sf-drawer-header",{unstyled:n.unstyledHeader}])},[s.renderSlot(w.$slots,"title",{},()=>[s.createElementVNode("div",bs,s.toDisplayString(n.title),1)]),S[0]||(S[0]=s.createElementVNode("div",{class:"sf-drawer-spacer"},null,-1)),s.renderSlot(w.$slots,"action",s.normalizeProps(s.guardReactiveProps({Close:d})),()=>[s.createElementVNode("div",vs,[s.createVNode(Ue,{button:!0,icon:"close",onClick:d})])])],2)]),s.createElementVNode("div",{class:s.normalizeClass(["sf-drawer-content",{unstyled:n.unstyledContent}])},[s.renderSlot(w.$slots,"default")],2),s.unref(o).footer?(s.openBlock(),s.createElementBlock("div",{key:0,class:s.normalizeClass(["sf-drawer-footer",{unstyled:n.unstyledFooter}])},[s.renderSlot(w.$slots,"footer",s.normalizeProps(s.guardReactiveProps({Close:d})))],2)):s.createCommentVNode("",!0)],4)):s.createCommentVNode("",!0)]),_:3})],6)):s.createCommentVNode("",!0)]))}}),ks=["data-icon"],_s=s.defineComponent({__name:"Message",props:{color:{default:"info"},class:{},style:{type:[Boolean,null,String,Object,Array]},icon:{}},setup(t){const e=t,n=s.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}}),r=s.computed(()=>new Ge("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(o,i)=>(s.openBlock(),s.createElementBlock("div",{class:s.normalizeClass(r.value),"data-icon":n.value},[s.renderSlot(o.$slots,"default")],10,ks))}});function Ss(t,e){return t?t.classList?t.classList.contains(e):new RegExp("(^| )"+e+"( |$)","gi").test(t.className):!1}function Cs(t,e){if(t&&e){const n=r=>{Ss(t,r)||(t.classList?t.classList.add(r):t.className+=" "+r)};[e].flat().filter(Boolean).forEach(r=>r.split(" ").forEach(n))}}function Dn(t,e){if(t&&e){const n=r=>{t.classList?t.classList.remove(r):t.className=t.className.replace(new RegExp("(^|\\b)"+r.split(" ").join("|")+"(\\b|$)","gi")," ")};[e].flat().filter(Boolean).forEach(r=>r.split(" ").forEach(n))}}function Es(t,e){return t instanceof HTMLElement?t.offsetWidth:0}function dn(t){return typeof HTMLElement=="object"?t instanceof HTMLElement:t&&typeof t=="object"&&t!==null&&t.nodeType===1&&typeof t.nodeName=="string"}function fn(t,e={}){if(dn(t)){const n=(r,o)=>{var i,a;const l=(i=t==null?void 0:t.$attrs)!=null&&i[r]?[(a=t==null?void 0:t.$attrs)==null?void 0:a[r]]:[];return[o].flat().reduce((c,d)=>{if(d!=null){const f=typeof d;if(f==="string"||f==="number")c.push(d);else if(f==="object"){const p=Array.isArray(d)?n(r,d):Object.entries(d).map(([y,k])=>r==="style"&&(k||k===0)?`${y.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase()}:${k}`:k?y:void 0);c=p.length?c.concat(p.filter(y=>!!y)):c}}return c},l)};Object.entries(e).forEach(([r,o])=>{if(o!=null){const i=r.match(/^on(.+)/);i?t.addEventListener(i[1].toLowerCase(),o):r==="p-bind"?fn(t,o):(o=r==="class"?[...new Set(n("class",o))].join(" ").trim():r==="style"?n("style",o).join(";").trim():o,(t.$attrs=t.$attrs||{})&&(t.$attrs[r]=o),t.setAttribute(r,o))}})}}function Is(t,e={},...n){{const r=document.createElement(t);return fn(r,e),r.append(...n),r}}function Be(t,e){return dn(t)?t.matches(e)?t:t.querySelector(e):null}function Lt(t,e){t&&document.activeElement!==t&&t.focus(e)}function xt(t,e){if(dn(t)){const n=t.getAttribute(e);return isNaN(n)?n==="true"||n==="false"?n==="true":n:+n}}function Nr(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 Ts(t){if(t){let e=t.parentNode;return e&&e instanceof ShadowRoot&&e.host&&(e=e.host),e}return null}function As(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||document.documentElement.scrollLeft||document.body.scrollLeft||0)}}return{top:"auto",left:"auto"}}function Ps(t,e){return t?t.offsetHeight:0}function Ls(t){return!!(t!==null&&typeof t<"u"&&t.nodeName&&Ts(t))}function Mr(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 xs(){return!!(typeof window<"u"&&window.document&&window.document.createElement)}function Os(t,e="",n){dn(t)&&n!==null&&n!==void 0&&t.setAttribute(e,n)}function Dr(){const t=new Map;return{on(e,n){let r=t.get(e);return r?r.push(n):r=[n],t.set(e,r),this},off(e,n){let r=t.get(e);return r&&r.splice(r.indexOf(n)>>>0,1),this},emit(e,n){let r=t.get(e);r&&r.slice().map(o=>{o(n)})},clear(){t.clear()}}}function at(t){return t==null||t===""||Array.isArray(t)&&t.length===0||!(t instanceof Date)&&typeof t=="object"&&Object.keys(t).length===0}function Rn(t,e){if(t===e)return!0;if(t&&e&&typeof t=="object"&&typeof e=="object"){var n=Array.isArray(t),r=Array.isArray(e),o,i,a;if(n&&r){if(i=t.length,i!=e.length)return!1;for(o=i;o--!==0;)if(!Rn(t[o],e[o]))return!1;return!0}if(n!=r)return!1;var l=t instanceof Date,c=e instanceof Date;if(l!=c)return!1;if(l&&c)return t.getTime()==e.getTime();var d=t instanceof RegExp,f=e instanceof RegExp;if(d!=f)return!1;if(d&&f)return t.toString()==e.toString();var p=Object.keys(t);if(i=p.length,i!==Object.keys(e).length)return!1;for(o=i;o--!==0;)if(!Object.prototype.hasOwnProperty.call(e,p[o]))return!1;for(o=i;o--!==0;)if(a=p[o],!Rn(t[a],e[a]))return!1;return!0}return t!==t&&e!==e}function Un(t){return!!(t&&t.constructor&&t.call&&t.apply)}function Z(t){return!at(t)}function yt(t,e,n){return Rn(t,e)}function Rr(t,e){let n;if(Z(t))try{n=t.findLast(e)}catch{n=[...t].reverse().find(e)}return n}function tt(t,e=!0){return t instanceof Object&&t.constructor===Object&&(e||Object.keys(t).length!==0)}function Ce(t,...e){return Un(t)?t(...e):t}function ve(t,e=!0){return typeof t=="string"&&(e||t!=="")}function Ne(t){return ve(t)?t.replace(/(-|_)/g,"").toLowerCase():t}function Vn(t,e="",n={}){const r=Ne(e).split("."),o=r.shift();return o?tt(t)?Vn(Ce(t[Object.keys(t).find(i=>Ne(i)===o)||""],n),r.join("."),n):void 0:Ce(t,n)}function Hn(t,e=!0){return Array.isArray(t)&&(e||t.length!==0)}function Ur(t){return Z(t)&&!isNaN(t)}function $s(t=""){return Z(t)&&t.length===1&&!!t.match(/\S| /)}function qe(t,e){if(e){const n=e.test(t);return e.lastIndex=0,n}return!1}function Ot(t){return t&&t.replace(/\/\*(?:(?!\*\/)[\s\S])*\*\/|[\r\n\t]+/g,"").replace(/ {2,}/g," ").replace(/ ([{:}]) /g,"$1").replace(/([;,]) /g,"$1").replace(/ !/g,"!").replace(/: /g,":")}function Bs(t){return ve(t,!1)?t[0].toUpperCase()+t.slice(1):t}function Vr(t){return ve(t)?t.replace(/(_)/g,"-").replace(/[A-Z]/g,(e,n)=>n===0?e:"-"+e.toLowerCase()).toLowerCase():t}function Hr(t){return ve(t)?t.replace(/[A-Z]/g,(e,n)=>n===0?e:"."+e.toLowerCase()).toLowerCase():t}var mn={};function Ns(t="pui_id_"){return mn.hasOwnProperty(t)||(mn[t]=0),mn[t]++,`${t}${mn[t]}`}function pn(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"pv_id_";return Ns(t)}var Ms=Object.defineProperty,Ds=Object.defineProperties,Rs=Object.getOwnPropertyDescriptors,hn=Object.getOwnPropertySymbols,jr=Object.prototype.hasOwnProperty,Fr=Object.prototype.propertyIsEnumerable,zr=(t,e,n)=>e in t?Ms(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,$t=(t,e)=>{for(var n in e||(e={}))jr.call(e,n)&&zr(t,n,e[n]);if(hn)for(var n of hn(e))Fr.call(e,n)&&zr(t,n,e[n]);return t},jn=(t,e)=>Ds(t,Rs(e)),Bt=(t,e)=>{var n={};for(var r in t)jr.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&hn)for(var r of hn(t))e.indexOf(r)<0&&Fr.call(t,r)&&(n[r]=t[r]);return n},Us=Dr(),Ye=Us;function Kr(t,e){Hn(t)?t.push(...e||[]):tt(t)&&Object.assign(t,e)}function Vs(t){return tt(t)&&t.hasOwnProperty("value")&&t.hasOwnProperty("type")?t.value:t}function Wr(t,e=""){return["opacity","z-index","line-height","font-weight","flex","flex-grow","flex-shrink","order"].some(r=>e.endsWith(r))?t:`${t}`.trim().split(" ").map(i=>Ur(i)?`${i}px`:i).join(" ")}function Hs(t){return t.replaceAll(/ /g,"").replace(/[^\w]/g,"-")}function Fn(t="",e=""){return Hs(`${ve(t,!1)&&ve(e,!1)?`${t}-`:t}${e}`)}function Gr(t="",e=""){return`--${Fn(t,e)}`}function qr(t,e="",n="",r=[],o){if(ve(t)){const i=/{([^}]*)}/g,a=t.trim();if(qe(a,i)){const l=a.replaceAll(i,f=>{const y=f.replace(/{|}/g,"").split(".").filter(k=>!r.some(C=>qe(k,C)));return`var(${Gr(n,Vr(y.join("-")))}${Z(o)?`, ${o}`:""})`}),c=/(\d+\s+[\+\-\*\/]\s+\d+)/g,d=/var\([^)]+\)/g;return qe(l.replace(d,"0"),c)?`calc(${l})`:l}return Wr(a,e)}else if(Ur(t))return Wr(t,e)}function js(t,e,n){ve(e,!1)&&t.push(`${e}:${n};`)}function Nt(t,e){return t?`${t}{${e}}`:""}var zn=(...t)=>Fs(ee.getTheme(),...t),Fs=(t={},e,n,r="variable")=>{if(e){const{variable:o,options:i}=ee.defaults||{},{prefix:a,transform:l}=(t==null?void 0:t.options)||i||{},d=qe(e,/{([^}]*)}/g)?e:`{${e}}`;return r==="value"||l==="strict"?ee.getTokenValue(e):qr(d,void 0,a,[o.excludedKeyRegex],n)}return""};function zs(t,e={}){const n=ee.defaults.variable,{prefix:r=n.prefix,selector:o=n.selector,excludedKeyRegex:i=n.excludedKeyRegex}=e,a=(d,f="")=>Object.entries(d).reduce((p,[y,k])=>{const C=qe(y,i)?Fn(f):Fn(f,Vr(y)),A=Vs(k);if(tt(A)){const{variables:L,tokens:w}=a(A,C);Kr(p.tokens,w),Kr(p.variables,L)}else p.tokens.push((r?C.replace(`${r}-`,""):C).replaceAll("-",".")),js(p.variables,Gr(C),qr(A,C,r,[i]));return p},{variables:[],tokens:[]}),{variables:l,tokens:c}=a(t,r);return{value:l,tokens:c,declarations:l.join(""),css:Nt(o,l.join(""))}}var Me={regex:{rules:{class:{pattern:/^\.([a-zA-Z][\w-]*)$/,resolve(t){return{type:"class",selector:t,matched:this.pattern.test(t.trim())}}},attr:{pattern:/^\[(.*)\]$/,resolve(t){return{type:"attr",selector:`:root${t}`,matched:this.pattern.test(t.trim())}}},media:{pattern:/^@media (.*)$/,resolve(t){return{type:"media",selector:`${t}{:root{[CSS]}}`,matched:this.pattern.test(t.trim())}}},system:{pattern:/^system$/,resolve(t){return{type:"system",selector:"@media (prefers-color-scheme: dark){:root{[CSS]}}",matched:this.pattern.test(t.trim())}}},custom:{resolve(t){return{type:"custom",selector:t,matched:!0}}}},resolve(t){const e=Object.keys(this.rules).filter(n=>n!=="custom").map(n=>this.rules[n]);return[t].flat().map(n=>{var r;return(r=e.map(o=>o.resolve(n)).find(o=>o.matched))!=null?r:this.rules.custom.resolve(n)})}},_toVariables(t,e){return zs(t,{prefix:e==null?void 0:e.prefix})},getCommon({name:t="",theme:e={},params:n,set:r,defaults:o}){var i,a,l,c;const{preset:d,options:f}=e;let p,y,k,C;if(Z(d)){const{primitive:A,semantic:L}=d,w=L||{},{colorScheme:S}=w,N=Bt(w,["colorScheme"]),U=S||{},{dark:G}=U,ce=Bt(U,["dark"]),te=Z(A)?this._toVariables({primitive:A},f):{},Ae=Z(N)?this._toVariables({semantic:N},f):{},ne=Z(ce)?this._toVariables({light:ce},f):{},Y=Z(G)?this._toVariables({dark:G},f):{},[M,X]=[(i=te.declarations)!=null?i:"",te.tokens],[ue,de]=[(a=Ae.declarations)!=null?a:"",Ae.tokens||[]],[je,Ze]=[(l=ne.declarations)!=null?l:"",ne.tokens||[]],[Fe,ze]=[(c=Y.declarations)!=null?c:"",Y.tokens||[]];p=this.transformCSS(t,M,"light","variable",f,r,o),y=X;const pt=this.transformCSS(t,`${ue}${je}color-scheme:light`,"light","variable",f,r,o),$e=this.transformCSS(t,`${Fe}color-scheme:dark`,"dark","variable",f,r,o);k=`${pt}${$e}`,C=[...new Set([...de,...Ze,...ze])]}return{primitive:{css:p,tokens:y},semantic:{css:k,tokens:C}}},getPreset({name:t="",preset:e={},options:n,params:r,set:o,defaults:i,selector:a}){var l,c,d;const f=t.replace("-directive",""),p=e,{colorScheme:y}=p,k=Bt(p,["colorScheme"]),C=y||{},{dark:A}=C,L=Bt(C,["dark"]),w=Z(k)?this._toVariables({[f]:k},n):{},S=Z(L)?this._toVariables({[f]:L},n):{},N=Z(A)?this._toVariables({[f]:A},n):{},[U,G]=[(l=w.declarations)!=null?l:"",w.tokens||[]],[ce,te]=[(c=S.declarations)!=null?c:"",S.tokens||[]],[Ae,ne]=[(d=N.declarations)!=null?d:"",N.tokens||[]],Y=[...new Set([...G,...te,...ne])],M=this.transformCSS(f,`${U}${ce}`,"light","variable",n,o,i,a),X=this.transformCSS(f,Ae,"dark","variable",n,o,i,a);return{css:`${M}${X}`,tokens:Y}},getPresetC({name:t="",theme:e={},params:n,set:r,defaults:o}){var i;const{preset:a,options:l}=e,c=(i=a==null?void 0:a.components)==null?void 0:i[t];return this.getPreset({name:t,preset:c,options:l,params:n,set:r,defaults:o})},getPresetD({name:t="",theme:e={},params:n,set:r,defaults:o}){var i;const a=t.replace("-directive",""),{preset:l,options:c}=e,d=(i=l==null?void 0:l.directives)==null?void 0:i[a];return this.getPreset({name:a,preset:d,options:c,params:n,set:r,defaults:o})},getColorSchemeOption(t,e){var n;return this.regex.resolve((n=t.darkModeSelector)!=null?n:e.options.darkModeSelector)},getLayerOrder(t,e={},n,r){const{cssLayer:o}=e;return o?`@layer ${Ce(o.order||"primeui",n)}`:""},getCommonStyleSheet({name:t="",theme:e={},params:n,props:r={},set:o,defaults:i}){const a=this.getCommon({name:t,theme:e,params:n,set:o,defaults:i}),l=Object.entries(r).reduce((c,[d,f])=>c.push(`${d}="${f}"`)&&c,[]).join(" ");return Object.entries(a||{}).reduce((c,[d,f])=>{if(f!=null&&f.css){const p=Ot(f==null?void 0:f.css),y=`${d}-variables`;c.push(`<style type="text/css" data-primevue-style-id="${y}" ${l}>${p}</style>`)}return c},[]).join("")},getStyleSheet({name:t="",theme:e={},params:n,props:r={},set:o,defaults:i}){var a;const l={name:t,theme:e,params:n,set:o,defaults:i},c=(a=t.includes("-directive")?this.getPresetD(l):this.getPresetC(l))==null?void 0:a.css,d=Object.entries(r).reduce((f,[p,y])=>f.push(`${p}="${y}"`)&&f,[]).join(" ");return c?`<style type="text/css" data-primevue-style-id="${t}-variables" ${d}>${Ot(c)}</style>`:""},createTokens(t={},e,n="",r="",o={}){return Object.entries(t).forEach(([i,a])=>{const l=qe(i,e.variable.excludedKeyRegex)?n:n?`${n}.${Hr(i)}`:Hr(i),c=r?`${r}.${i}`:i;tt(a)?this.createTokens(a,e,l,c,o):(o[l]||(o[l]={paths:[],computed(d,f={}){if(d){const p=this.paths.find(y=>y.scheme===d)||this.paths.find(y=>y.scheme==="none");return p==null?void 0:p.computed(d,f.binding)}return this.paths.map(p=>p.computed(p.scheme,f[p.scheme]))}}),o[l].paths.push({path:c,value:a,scheme:c.includes("colorScheme.light")?"light":c.includes("colorScheme.dark")?"dark":"none",computed(d,f={}){const p=/{([^}]*)}/g;let y=a;if(f.name=this.path,f.binding||(f.binding={}),qe(a,p)){const C=a.trim().replaceAll(p,w=>{var S,N;const U=w.replace(/{|}/g,"");return(N=(S=o[U])==null?void 0:S.computed(d,f))==null?void 0:N.value}),A=/(\d+\w*\s+[\+\-\*\/]\s+\d+\w*)/g,L=/var\([^)]+\)/g;y=qe(C.replace(L,"0"),A)?`calc(${C})`:C}return at(f.binding)&&delete f.binding,{colorScheme:d,path:this.path,paths:f,value:y.includes("undefined")?void 0:y}}}))}),o},getTokenValue(t,e,n){var r;const i=(c=>c.split(".").filter(f=>!qe(f.toLowerCase(),n.variable.excludedKeyRegex)).join("."))(e),a=e.includes("colorScheme.light")?"light":e.includes("colorScheme.dark")?"dark":void 0,l=[(r=t[i])==null?void 0:r.computed(a)].flat().filter(c=>c);return l.length===1?l[0].value:l.reduce((c={},d)=>{const f=d,{colorScheme:p}=f,y=Bt(f,["colorScheme"]);return c[p]=y,c},void 0)},transformCSS(t,e,n,r,o={},i,a,l){if(Z(e)){const{cssLayer:c}=o;if(r!=="style"){const d=this.getColorSchemeOption(o,a),f=l?Nt(l,e):e;e=n==="dark"?d.reduce((p,{selector:y})=>(Z(y)&&(p+=y.includes("[CSS]")?y.replace("[CSS]",f):Nt(y,f)),p),""):Nt(l??":root",e)}if(c){const d={name:"primeui",order:"primeui"};tt(c)&&(d.name=Ce(c.name,{name:t,type:r})),Z(d.name)&&(e=Nt(`@layer ${d.name}`,e),i==null||i.layerNames(d.name))}return e}return""}},ee={defaults:{variable:{prefix:"p",selector:":root",excludedKeyRegex:/^(primitive|semantic|components|directives|variables|colorscheme|light|dark|common|root|states)$/gi},options:{prefix:"p",darkModeSelector:"system",cssLayer:!1}},_theme:void 0,_layerNames:new Set,_loadedStyleNames:new Set,_loadingStyles:new Set,_tokens:{},update(t={}){const{theme:e}=t;e&&(this._theme=jn($t({},e),{options:$t($t({},this.defaults.options),e.options)}),this._tokens=Me.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}),Ye.emit("theme:change",t)},getPreset(){return this.preset},setPreset(t){this._theme=jn($t({},this.theme),{preset:t}),this._tokens=Me.createTokens(t,this.defaults),this.clearLoadedStyleNames(),Ye.emit("preset:change",t),Ye.emit("theme:change",this.theme)},getOptions(){return this.options},setOptions(t){this._theme=jn($t({},this.theme),{options:t}),this.clearLoadedStyleNames(),Ye.emit("options:change",t),Ye.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 Me.getTokenValue(this.tokens,t,this.defaults)},getCommon(t="",e){return Me.getCommon({name:t,theme:this.theme,params:e,defaults:this.defaults,set:{layerNames:this.setLayerNames.bind(this)}})},getComponent(t="",e){const n={name:t,theme:this.theme,params:e,defaults:this.defaults,set:{layerNames:this.setLayerNames.bind(this)}};return Me.getPresetC(n)},getDirective(t="",e){const n={name:t,theme:this.theme,params:e,defaults:this.defaults,set:{layerNames:this.setLayerNames.bind(this)}};return Me.getPresetD(n)},getCustomPreset(t="",e,n,r){const o={name:t,preset:e,options:this.options,selector:n,params:r,defaults:this.defaults,set:{layerNames:this.setLayerNames.bind(this)}};return Me.getPreset(o)},getLayerOrderCSS(t=""){return Me.getLayerOrder(t,this.options,{names:this.getLayerNames()},this.defaults)},transformCSS(t="",e,n="style",r){return Me.transformCSS(t,e,r,n,this.options,{layerNames:this.setLayerNames.bind(this)},this.defaults)},getCommonStyleSheet(t="",e,n={}){return Me.getCommonStyleSheet({name:t,theme:this.theme,params:e,props:n,defaults:this.defaults,set:{layerNames:this.setLayerNames.bind(this)}})},getStyleSheet(t,e,n={}){return Me.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),Ye.emit(`theme:${e}:load`,t),!this._loadingStyles.size&&Ye.emit("theme:load"))}},nt={_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()}};function Mt(t){"@babel/helpers - typeof";return Mt=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Mt(t)}function Yr(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(t,o).enumerable})),n.push.apply(n,r)}return n}function Xr(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?Yr(Object(n),!0).forEach(function(r){Ks(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Yr(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}function Ks(t,e,n){return(e=Ws(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function Ws(t){var e=Gs(t,"string");return Mt(e)=="symbol"?e:e+""}function Gs(t,e){if(Mt(t)!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var r=n.call(t,e||"default");if(Mt(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function qs(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;s.getCurrentInstance()?s.onMounted(t):e?t():s.nextTick(t)}var Ys=0;function Xs(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=s.ref(!1),r=s.ref(t),o=s.ref(null),i=xs()?window.document:void 0,a=e.document,l=a===void 0?i:a,c=e.immediate,d=c===void 0?!0:c,f=e.manual,p=f===void 0?!1:f,y=e.name,k=y===void 0?"style_".concat(++Ys):y,C=e.id,A=C===void 0?void 0:C,L=e.media,w=L===void 0?void 0:L,S=e.nonce,N=S===void 0?void 0:S,U=e.first,G=U===void 0?!1:U,ce=e.onMounted,te=ce===void 0?void 0:ce,Ae=e.onUpdated,ne=Ae===void 0?void 0:Ae,Y=e.onLoad,M=Y===void 0?void 0:Y,X=e.props,ue=X===void 0?{}:X,de=function(){},je=function(ze){var pt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(l){var $e=Xr(Xr({},ue),pt),u=$e.name||k,h=$e.id||A,v=$e.nonce||N;o.value=l.querySelector('style[data-primevue-style-id="'.concat(u,'"]'))||l.getElementById(h)||l.createElement("style"),o.value.isConnected||(r.value=ze||t,fn(o.value,{type:"text/css",id:h,media:w,nonce:v}),G?l.head.prepend(o.value):l.head.appendChild(o.value),Os(o.value,"data-primevue-style-id",u),fn(o.value,$e),o.value.onload=function(T){return M==null?void 0:M(T,{name:u})},te==null||te(u)),!n.value&&(de=s.watch(r,function(T){o.value.textContent=T,ne==null||ne(u)},{immediate:!0}),n.value=!0)}},Ze=function(){!l||!n.value||(de(),Ls(o.value)&&l.head.removeChild(o.value),n.value=!1)};return d&&!p&&qs(je),{id:A,name:k,el:o,css:r,unload:Ze,load:je,isLoaded:s.readonly(n)}}function Dt(t){"@babel/helpers - typeof";return Dt=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},Dt(t)}function Zr(t,e){return ea(t)||Qs(t,e)||Js(t,e)||Zs()}function Zs(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
2
2
  In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Js(t,e){if(t){if(typeof t=="string")return Jr(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)?Jr(t,e):void 0}}function Jr(t,e){(e==null||e>t.length)&&(e=t.length);for(var n=0,r=Array(e);n<e;n++)r[n]=t[n];return r}function Qs(t,e){var n=t==null?null:typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(n!=null){var r,o,i,a,l=[],c=!0,d=!1;try{if(i=(n=n.call(t)).next,e!==0)for(;!(c=(r=i.call(n)).done)&&(l.push(r.value),l.length!==e);c=!0);}catch(f){d=!0,o=f}finally{try{if(!c&&n.return!=null&&(a=n.return(),Object(a)!==a))return}finally{if(d)throw o}}return l}}function ea(t){if(Array.isArray(t))return t}function Qr(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(t,o).enumerable})),n.push.apply(n,r)}return n}function Kn(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?Qr(Object(n),!0).forEach(function(r){ta(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Qr(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}function ta(t,e,n){return(e=na(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function na(t){var e=ra(t,"string");return Dt(e)=="symbol"?e:e+""}function ra(t,e){if(Dt(t)!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var r=n.call(t,e||"default");if(Dt(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}var oa=function(e){var n=e.dt;return`
3
3
  * {
4
4
  box-sizing: border-box;
@@ -407,6 +407,6 @@ If you think this parameter should be updatable, request it here: https://github
407
407
  - It is not possible to retrieve tokens without redirecting to the Keycloak server (a.k.a. no support for silent authentication).
408
408
  - It is not possible to automatically detect changes to the session status (such as the user logging out in another tab).
409
409
 
410
- For more information see: https://www.keycloak.org/docs/latest/securing_apps/#_modern_browsers`),i.enable=!1,e.silentCheckSsoFallback&&(e.silentCheckSsoRedirectUri=!1)),document.body.removeChild(h),window.removeEventListener("message",v),u.setSuccess()))};window.addEventListener("message",v,!1)}else u.setSuccess();return M(u.promise,e.messageReceiveTimeout,"Timeout when waiting for 3rd party check iframe message.")}function Ze(u){if(!u||u=="default")return{login:function(_){return window.location.assign(e.createLoginUrl(_)),Y().promise},logout:async function(_){if(((_==null?void 0:_.logoutMethod)??e.logoutMethod)==="GET"){window.location.replace(e.createLogoutUrl(_));return}const O=e.createLogoutUrl(_),x=await fetch(O,{method:"POST",headers:{"Content-Type":"application/x-www-form-urlencoded"},body:new URLSearchParams({id_token_hint:e.idToken,client_id:e.clientId,post_logout_redirect_uri:n.redirectUri(_,!1)})});if(x.redirected){window.location.href=x.url;return}if(x.ok){window.location.reload();return}throw new Error("Logout failed, request returned an error code.")},register:function(_){return window.location.assign(e.createRegisterUrl(_)),Y().promise},accountManagement:function(){var _=e.createAccountUrl();if(typeof _<"u")window.location.href=_;else throw"Not supported by the OIDC server";return Y().promise},redirectUri:function(_,E){return _&&_.redirectUri?_.redirectUri:e.redirectUri?e.redirectUri:location.href}};if(u=="cordova"){i.enable=!1;var h=function(_,E,O){return window.cordova&&window.cordova.InAppBrowser?window.cordova.InAppBrowser.open(_,E,O):window.open(_,E,O)},v=function(_){return _&&_.cordovaOptions?Object.keys(_.cordovaOptions).reduce(function(E,O){return E[O]=_.cordovaOptions[O],E},{}):{}},T=function(_){return Object.keys(_).reduce(function(E,O){return E.push(O+"="+_[O]),E},[]).join(",")},b=function(_){var E=v(_);return E.location="no",_&&_.prompt=="none"&&(E.hidden="yes"),T(E)},P=function(){return e.redirectUri||"http://localhost"};return{login:function(_){var E=Y(),O=b(_),x=e.createLoginUrl(_),D=h(x,"_blank",O),F=!1,_e=!1,fe=function(){_e=!0,D.close()};return D.addEventListener("loadstart",function(me){if(me.url.indexOf(P())==0){var Je=te(me.url);S(Je,E),fe(),F=!0}}),D.addEventListener("loaderror",function(me){if(!F)if(me.url.indexOf(P())==0){var Je=te(me.url);S(Je,E),fe(),F=!0}else E.setError(),fe()}),D.addEventListener("exit",function(me){_e||E.setError({reason:"closed_by_user"})}),E.promise},logout:function(_){var E=Y(),O=e.createLogoutUrl(_),x=h(O,"_blank","location=no,hidden=yes,clearcache=yes"),D;return x.addEventListener("loadstart",function(F){F.url.indexOf(P())==0&&x.close()}),x.addEventListener("loaderror",function(F){F.url.indexOf(P())==0||(D=!0),x.close()}),x.addEventListener("exit",function(F){D?E.setError():(e.clearToken(),E.setSuccess())}),E.promise},register:function(_){var E=Y(),O=e.createRegisterUrl(),x=b(_),D=h(O,"_blank",x);return D.addEventListener("loadstart",function(F){if(F.url.indexOf(P())==0){D.close();var _e=te(F.url);S(_e,E)}}),E.promise},accountManagement:function(){var _=e.createAccountUrl();if(typeof _<"u"){var E=h(_,"_blank","location=no");E.addEventListener("loadstart",function(O){O.url.indexOf(P())==0&&E.close()})}else throw"Not supported by the OIDC server"},redirectUri:function(_){return P()}}}if(u=="cordova-native")return i.enable=!1,{login:function(_){var E=Y(),O=e.createLoginUrl(_);return universalLinks.subscribe("keycloak",function(x){universalLinks.unsubscribe("keycloak"),window.cordova.plugins.browsertab.close();var D=te(x.url);S(D,E)}),window.cordova.plugins.browsertab.openUrl(O),E.promise},logout:function(_){var E=Y(),O=e.createLogoutUrl(_);return universalLinks.subscribe("keycloak",function(x){universalLinks.unsubscribe("keycloak"),window.cordova.plugins.browsertab.close(),e.clearToken(),E.setSuccess()}),window.cordova.plugins.browsertab.openUrl(O),E.promise},register:function(_){var E=Y(),O=e.createRegisterUrl(_);return universalLinks.subscribe("keycloak",function(x){universalLinks.unsubscribe("keycloak"),window.cordova.plugins.browsertab.close();var D=te(x.url);S(D,E)}),window.cordova.plugins.browsertab.openUrl(O),E.promise},accountManagement:function(){var _=e.createAccountUrl();if(typeof _<"u")window.cordova.plugins.browsertab.openUrl(_);else throw"Not supported by the OIDC server"},redirectUri:function(_){return _&&_.redirectUri?_.redirectUri:e.redirectUri?e.redirectUri:"http://localhost"}};throw"invalid adapter type: "+u}var Fe=function(){if(!(this instanceof Fe))return new Fe;localStorage.setItem("kc-test","test"),localStorage.removeItem("kc-test");var u=this;function h(){for(var v=new Date().getTime(),T=0;T<localStorage.length;T++){var b=localStorage.key(T);if(b&&b.indexOf("kc-callback-")==0){var P=localStorage.getItem(b);if(P)try{var _=JSON.parse(P).expires;(!_||_<v)&&localStorage.removeItem(b)}catch{localStorage.removeItem(b)}}}}u.get=function(v){if(v){var T="kc-callback-"+v,b=localStorage.getItem(T);return b&&(localStorage.removeItem(T),b=JSON.parse(b)),h(),b}},u.add=function(v){h();var T="kc-callback-"+v.state;v.expires=new Date().getTime()+60*60*1e3,localStorage.setItem(T,JSON.stringify(v))}},ze=function(){if(!(this instanceof ze))return new ze;var u=this;u.get=function(b){if(b){var P=v("kc-callback-"+b);if(T("kc-callback-"+b,"",h(-100)),P)return JSON.parse(P)}},u.add=function(b){T("kc-callback-"+b.state,JSON.stringify(b),h(60))},u.removeItem=function(b){T(b,"",h(-100))};var h=function(b){var P=new Date;return P.setTime(P.getTime()+b*60*1e3),P},v=function(b){for(var P=b+"=",_=document.cookie.split(";"),E=0;E<_.length;E++){for(var O=_[E];O.charAt(0)==" ";)O=O.substring(1);if(O.indexOf(P)==0)return O.substring(P.length,O.length)}return""},T=function(b,P,_){var E=b+"="+P+"; expires="+_.toUTCString()+"; ";document.cookie=E}};function pt(){try{return new Fe}catch{}return new ze}function $e(u){return function(){e.enableLogging&&u.apply(console,Array.prototype.slice.call(arguments))}}}function Gd(t){const e=String.fromCodePoint(...t);return btoa(e)}class qd{constructor(e){Pe(this,"oidc");Pe(this,"isAuthenticated",!1);Pe(this,"authenticatedWith",null);this.oidc=new Pi(e)}async InitAsync(e={}){return await this.oidc.init(e).then(async n=>(this.isAuthenticated=n,this.authenticatedWith=this.AuthenticatedWith(),n)).catch(n=>(console.info("Ocorreu um erro na inicialização. Verifique o console para mais detalhes."),console.error(n),!1))}LoginGovBr(){this.oidc.login({idpHint:"GOV.BR"})}LoginSenhaweb(){var n;const e=(n=this.oidc.authServerUrl)!=null&&n.startsWith("https://keycloak.dev.apps.sf.prefeitura.sp.gov.br")?"senhawebdev":"senhaweb";this.oidc.login({idpHint:e})}AuthenticatedWith(){var n,r;const e=this.oidc.tokenParsed;return e?(n=e.identity_provider)!=null&&n.startsWith("GOV.BR")?"govbr":(r=e.identity_provider)!=null&&r.startsWith("senhaweb")?"senhaweb":"ad":null}}let Li;function Yd(t){Li=new qd(t)}const Cr=()=>Li;function Xd(t){return s.getCurrentScope()?(s.onScopeDispose(t),!0):!1}const Zd=typeof window<"u"&&typeof document<"u";typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope;function Jd(t){return s.getCurrentInstance()}function Qd(t){return Array.isArray(t)?t:[t]}function ef(t,e=!0,n){Jd()?s.onMounted(t,n):e?t():s.nextTick(t)}const xi=Zd?window:void 0;function Ct(t){var e;const n=s.toValue(t);return(e=n==null?void 0:n.$el)!=null?e:n}function tf(){const t=s.ref(!1),e=s.getCurrentInstance();return e&&s.onMounted(()=>{t.value=!0},e),t}function nf(t){const e=tf();return s.computed(()=>(e.value,!!t()))}function rf(t,e,n={}){const{window:r=xi,...o}=n;let i;const a=nf(()=>r&&"ResizeObserver"in r),l=()=>{i&&(i.disconnect(),i=void 0)},c=s.computed(()=>{const p=s.toValue(t);return Array.isArray(p)?p.map(y=>Ct(y)):[Ct(p)]}),d=s.watch(c,p=>{if(l(),a.value&&r){i=new ResizeObserver(e);for(const y of p)y&&i.observe(y,o)}},{immediate:!0,flush:"post"}),f=()=>{l(),d()};return Xd(f),{isSupported:a,stop:f}}function of(t,e={width:0,height:0},n={}){const{window:r=xi,box:o="content-box"}=n,i=s.computed(()=>{var p,y;return(y=(p=Ct(t))==null?void 0:p.namespaceURI)==null?void 0:y.includes("svg")}),a=s.ref(e.width),l=s.ref(e.height),{stop:c}=rf(t,([p])=>{const y=o==="border-box"?p.borderBoxSize:o==="content-box"?p.contentBoxSize:p.devicePixelContentBoxSize;if(r&&i.value){const k=Ct(t);if(k){const C=k.getBoundingClientRect();a.value=C.width,l.value=C.height}}else if(y){const k=Qd(y);a.value=k.reduce((C,{inlineSize:A})=>C+A,0),l.value=k.reduce((C,{blockSize:A})=>C+A,0)}else a.value=p.contentRect.width,l.value=p.contentRect.height},n);ef(()=>{const p=Ct(t);p&&(a.value="offsetWidth"in p?p.offsetWidth:e.width,l.value="offsetHeight"in p?p.offsetHeight:e.height)});const d=s.watch(()=>Ct(t),p=>{a.value=p?e.width:0,l.value=p?e.height:0});function f(){c(),d()}return{width:a,height:l,stop:f}}var sf=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function af(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var Oi={exports:{}};(function(t){(function(e,n){t.exports?t.exports=n():e.log=n()})(sf,function(){var e=function(){},n="undefined",r=typeof window!==n&&typeof window.navigator!==n&&/Trident\/|MSIE /.test(window.navigator.userAgent),o=["trace","debug","info","warn","error"],i={},a=null;function l(A,L){var w=A[L];if(typeof w.bind=="function")return w.bind(A);try{return Function.prototype.bind.call(w,A)}catch{return function(){return Function.prototype.apply.apply(w,[A,arguments])}}}function c(){console.log&&(console.log.apply?console.log.apply(console,arguments):Function.prototype.apply.apply(console.log,[console,arguments])),console.trace&&console.trace()}function d(A){return A==="debug"&&(A="log"),typeof console===n?!1:A==="trace"&&r?c:console[A]!==void 0?l(console,A):console.log!==void 0?l(console,"log"):e}function f(){for(var A=this.getLevel(),L=0;L<o.length;L++){var w=o[L];this[w]=L<A?e:this.methodFactory(w,A,this.name)}if(this.log=this.debug,typeof console===n&&A<this.levels.SILENT)return"No console available for logging"}function p(A){return function(){typeof console!==n&&(f.call(this),this[A].apply(this,arguments))}}function y(A,L,w){return d(A)||p.apply(this,arguments)}function k(A,L){var w=this,S,N,U,G="loglevel";typeof A=="string"?G+=":"+A:typeof A=="symbol"&&(G=void 0);function ce(M){var X=(o[M]||"silent").toUpperCase();if(!(typeof window===n||!G)){try{window.localStorage[G]=X;return}catch{}try{window.document.cookie=encodeURIComponent(G)+"="+X+";"}catch{}}}function te(){var M;if(!(typeof window===n||!G)){try{M=window.localStorage[G]}catch{}if(typeof M===n)try{var X=window.document.cookie,ue=encodeURIComponent(G),de=X.indexOf(ue+"=");de!==-1&&(M=/^([^;]+)/.exec(X.slice(de+ue.length+1))[1])}catch{}return w.levels[M]===void 0&&(M=void 0),M}}function Ae(){if(!(typeof window===n||!G)){try{window.localStorage.removeItem(G)}catch{}try{window.document.cookie=encodeURIComponent(G)+"=; expires=Thu, 01 Jan 1970 00:00:00 UTC"}catch{}}}function ne(M){var X=M;if(typeof X=="string"&&w.levels[X.toUpperCase()]!==void 0&&(X=w.levels[X.toUpperCase()]),typeof X=="number"&&X>=0&&X<=w.levels.SILENT)return X;throw new TypeError("log.setLevel() called with invalid level: "+M)}w.name=A,w.levels={TRACE:0,DEBUG:1,INFO:2,WARN:3,ERROR:4,SILENT:5},w.methodFactory=L||y,w.getLevel=function(){return U??N??S},w.setLevel=function(M,X){return U=ne(M),X!==!1&&ce(U),f.call(w)},w.setDefaultLevel=function(M){N=ne(M),te()||w.setLevel(M,!1)},w.resetLevel=function(){U=null,Ae(),f.call(w)},w.enableAll=function(M){w.setLevel(w.levels.TRACE,M)},w.disableAll=function(M){w.setLevel(w.levels.SILENT,M)},w.rebuild=function(){if(a!==w&&(S=ne(a.getLevel())),f.call(w),a===w)for(var M in i)i[M].rebuild()},S=ne(a?a.getLevel():"WARN");var Y=te();Y!=null&&(U=ne(Y)),f.call(w)}a=new k,a.getLogger=function(L){if(typeof L!="symbol"&&typeof L!="string"||L==="")throw new TypeError("You must supply a name when creating a logger.");var w=i[L];return w||(w=i[L]=new k(L,a.methodFactory)),w};var C=typeof window!==n?window.log:void 0;return a.noConflict=function(){return typeof window!==n&&window.log===a&&(window.log=C),a},a.getLoggers=function(){return i},a.default=a,a})})(Oi);var lf=Oi.exports;const Ln=af(lf),cf={install(t,e){const n=e??{};Ln.setDefaultLevel(n.enableLogging?Ln.levels.DEBUG:Ln.levels.SILENT);const r=240;document.documentElement.style.setProperty("--nav-menu-width",`${r}px`);const o=s.ref(!0),i=s.ref(0),a=s.ref(!1),l=s.ref(!1),c=s.ref(""),d=s.ref(null),{width:f}=of(d);t.provide(wo,{navMenuWidth:r,isMenuOpened:o,ToggleMenu:()=>{o.value=!o.value},OpenMenu:()=>{o.value=!0},CloseMenu:()=>{o.value=!1},scrollY:i,pageTitle:c,isDarkMode:a,ToggleTheme:()=>Ft.Toggle(),EnableDarkMode:()=>Ft.EnableDarkMode(),EnableLightMode:()=>Ft.EnableLightMode(),ClearStoredTheme:()=>Ft.ClearStoredTheme(),LogoutAsync:async()=>{const y=Ei(),{oidc:k}=Cr();await y.ConfirmAsync("Deseja realmente sair da sua conta?")&&(l.value=!0,await new Promise(A=>setTimeout(A,1e3)),k.logout({redirectUri:window.location.origin}))},Login:()=>{const{oidc:y}=Cr();y.login()},isLoggingOut:l,mainRef:d,mainWidth:f,isMainXs:s.computed(()=>f.value<=384),isMainSm:s.computed(()=>f.value>384),isMainMd:s.computed(()=>f.value>768),isMainLg:s.computed(()=>f.value>992),isMainXl:s.computed(()=>f.value>1280),isMain2Xl:s.computed(()=>f.value>1536),isMain3Xl:s.computed(()=>f.value>1920)}),new MutationObserver(()=>{a.value=document.documentElement.classList.contains("dark")}).observe(document.documentElement,{attributes:!0,attributeFilter:["class"]}),document.addEventListener("scroll",()=>{i.value=document.documentElement.scrollTop}),Ft.SetInitialTheme()}},uf=Ln;class Er extends Error{constructor(n=[]){const r=Array.isArray(n)?n:[n];super(r[0]);Pe(this,"errors",[]);this.errors=r}}class $i{constructor(e=null){Pe(this,"errors",[]);Pe(this,"_value",null);Pe(this,"_httpStatusCode");this._value=e,this._httpStatusCode=200}get value(){return this._value}set value(e){this._value=e}get hasSuccess(){return!this.hasError}get hasError(){return this.errors.length>0}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 Er(this.errors)}get firstError(){return this.hasSuccess?null:this.errors[0]}}class Bi{get IsVisible(){return ft.isVisible()}async CreateAlertAsync(e){let n="info",r,o;return typeof e=="string"||Array.isArray(e)?r=Array.isArray(e)?e.join("<br />"):e:(n=e.icon??"info",o=e.title??"",r=Array.isArray(e.text)?e.text.join("<br />"):e.text),new Promise(i=>{ft.fire({allowEscapeKey:!1,allowOutsideClick:!1,icon:n,title:o,html:`<div style="max-height: 50vh; overflow: auto">${Si.sanitize(r)}</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 Ni=()=>new Bi,df=()=>new Bi;window.addEventListener("error",function(t){return Ir(t.error)||console.error(t.error),t.preventDefault(),!1}),window.addEventListener("unhandledrejection",function(t){return Ir(t.reason)||console.error("Unhandled Rejection",t.reason),t.preventDefault(),!1});const ff=t=>{t.config.errorHandler=(e,n,r)=>{Ir(e)||console.error("Vue Global Error Handler: ",{err:e,vm:n,info:r})}},Ir=t=>t instanceof Er||t instanceof $i?(Ni().AlertErrorAsync(t.errors),!0):!1;function mf(){return s.inject(wo)}const Tr=()=>mf(),pf={class:"font-percentage"},Mi="--font-size-increment",hf="tamanho-fonte",gf=gt(s.defineComponent({__name:"FontSize",setup(t){const e=s.ref(!1),n=s.ref(0),r=()=>{n.value=Mn(),e.value=!0},o=()=>{e.value=!1},i=()=>document.documentElement,a=()=>parseInt(getComputedStyle(i()).getPropertyValue(Mi)||"1"),l=y=>{y<.5||y>1.6||(i().style.setProperty(Mi,y.toString()),p.value=y)},c=()=>{l(p.value+.1)},d=()=>{l(p.value-.1)},f=()=>{l(1)},p=s.ref(1);return s.onBeforeMount(()=>{localStorage.removeItem(hf)}),s.onMounted(()=>{p.value=a()}),(y,k)=>(s.openBlock(),s.createElementBlock(s.Fragment,null,[s.createVNode(Ue,{button:!0,size:"sm",icon:"text_increase",tooltip:"Tamanho da fonte",onClick:r}),e.value?(s.openBlock(),s.createElementBlock(s.Fragment,{key:0},[s.createElementVNode("div",{class:s.normalizeClass(["border","fadein","font-size-wrapper"]),style:s.normalizeStyle({zIndex:n.value+1})},[s.createElementVNode("div",{class:"icon",onClick:d}),s.createElementVNode("span",pf,s.toDisplayString(p.value.toLocaleString("pt-br",{style:"percent",maximumFractionDigits:0})),1),s.createElementVNode("div",{class:"icon add",onClick:c}),s.createElementVNode("span",{class:"redefinir",onClick:f}," Redefinir ")],4),s.createElementVNode("div",{class:"font-size-mask",style:s.normalizeStyle({zIndex:n.value}),onClick:o},null,4)],64)):s.createCommentVNode("",!0)],64))}}),[["__scopeId","data-v-af78ca17"]]),yf={class:"nav-menu-header"},bf={class:"nav-menu-inner-close"},vf={class:"main-content"},wf={class:"menu-button"},kf={class:"page-title"},_f={class:"action"},Sf={id:"content"},Cf={key:0,id:"logging-out"},Ef={class:"info-fazenda"},If={class:"font-bold"},Tf={class:"info-endereco text-muted"},Af=gt(s.defineComponent({__name:"Main",props:{auth:{}},setup(t){const e=t,{navMenuWidth:n,isMenuOpened:r,pageTitle:o,scrollY:i,ToggleMenu:a,isDarkMode:l,ToggleTheme:c,CloseMenu:d,LogoutAsync:f,Login:p,isLoggingOut:y,mainRef:k}=Tr(),C=s.ref(null),A=()=>{if(!C.value||!r.value)return!1;C.value.offsetWidth!==n&&d()};return s.onMounted(()=>{ht.useRouter().afterEach(()=>{A()})}),(L,w)=>(s.openBlock(),s.createElementBlock("main",{ref_key:"mainRef",ref:k,class:s.normalizeClass({"select-none":!0,disabled:s.unref(y),"nav-menu-visible":s.unref(r)})},[s.createElementVNode("aside",{id:"nav-menu",ref_key:"navMenuRef",ref:C,class:s.normalizeClass({"nav-menu-hidden":!s.unref(r)})},[s.createElementVNode("div",yf,[w[0]||(w[0]=s.createElementVNode("span",null,"Menu",-1)),s.createElementVNode("div",bf,[s.createVNode(Ue,{button:!0,icon:"close",onClick:s.unref(a)},null,8,["onClick"])])]),s.renderSlot(L.$slots,"nav-menu",{},void 0,!0)],2),s.createElementVNode("div",vf,[s.createElementVNode("div",{id:"top-bar",class:s.normalizeClass({"shadow-bottom":s.unref(i)>72})},[s.createElementVNode("div",wf,[s.createVNode(Ue,{button:!0,icon:s.unref(r)?"menu_open":"menu",tooltip:"Menu",onClick:s.unref(a)},null,8,["icon","onClick"])]),s.createElementVNode("div",kf,s.toDisplayString(s.unref(y)?"Saindo...":s.unref(o)),1),w[1]||(w[1]=s.createElementVNode("span",{class:"sep"},null,-1)),s.createElementVNode("div",_f,[s.createVNode(Ue,{button:!0,size:"sm",icon:s.unref(l)?"light_mode":"dark_mode",tooltip:s.unref(l)?"Modo claro":"Modo escuro",onClick:s.unref(c)},null,8,["icon","tooltip","onClick"]),s.createVNode(gf),e.auth?(s.openBlock(),s.createElementBlock(s.Fragment,{key:0},[e.auth.isAuthenticated?(s.openBlock(),s.createBlock(Ue,{key:0,button:!0,size:"sm",icon:"logout",tooltip:"Sair",onClick:s.unref(f)},null,8,["onClick"])):(s.openBlock(),s.createBlock(Ue,{key:1,button:!0,size:"sm",icon:"login",tooltip:"Entrar",onClick:s.unref(p)},null,8,["onClick"]))],64)):s.createCommentVNode("",!0)])],2),s.createElementVNode("div",Sf,[s.unref(y)?(s.openBlock(),s.createElementBlock("div",Cf,[s.createVNode($r)])):s.renderSlot(L.$slots,"content",{key:1},void 0,!0)])]),s.createElementVNode("footer",null,[w[4]||(w[4]=s.createElementVNode("div",{class:"logo-fazenda"},null,-1)),s.createElementVNode("div",Ef,[s.createElementVNode("span",If,[s.renderSlot(L.$slots,"footer-nome-fazenda",{},()=>[w[2]||(w[2]=s.createTextVNode(" SECRETARIA MUNICIPAL DA FAZENDA "))],!0)]),s.createElementVNode("span",Tf,[s.renderSlot(L.$slots,"footer-endereco-fazenda",{},()=>[w[3]||(w[3]=s.createTextVNode(" Rua Líbero Badaró, 190 - Centro - São Paulo - SP - CEP 01008-000 "))],!0)])])])],2))}}),[["__scopeId","data-v-8d67809b"]]),Pf=s.defineComponent({__name:"PageTitle",props:{title:{}},setup(t){const{pageTitle:e}=Tr(),n=t;return s.watchEffect(()=>{document.title=n.title,e.value=n.title}),(r,o)=>null}}),Di={surface:{0:"{surface.0.color}",50:"{surface.100.color}",100:"{surface.100.color}",200:"{surface.200.color}",300:"{surface.300.color}",400:"{surface.400.color}",500:"{surface.1000.color}",600:"{surface.600.color}",700:"{surface.700.color}",800:"{surface.800.color}",900:"{surface.900.color}",950:"{surface.1000.color}"},primary:{color:"{primary.color}",contrastColor:"{bg.color}",hoverColor:"{primary.hover.color}",activeColor:"{primary.color}"},highlight:{background:"{primary.color}",color:"{bg.color}"},formField:{background:"{surface.0.color}",disabledBackground:"{surface.0.color}",filledBackground:"{surface.100.color}",filledFocusBackground:"{surface.100.color}",borderColor:"{surface.1000.color}",hoverBorderColor:"{primary.color}",focusBorderColor:"{primary.color}",invalidBorderColor:"{error.color}",color:"{text.color}",disabledColor:"{disabled.color}",placeholderColor:"{muted.color}",floatLabelColor:"{secondary.color}",floatLabelFocusColor:"{secondary.color}",floatLabelInvalidColor:"{error.color}",iconColor:"{primary.color}"},text:{color:"{text.color}",hoverColor:"{primary.color}",mutedColor:"{muted.color}",hoverMutedColor:"{muted.color}"},mask:{background:"{maskbg.color}",color:"{surface.200.color}"},content:{background:"{bg.color}",color:"{text.color}",border:{color:"{surface.1000.color}",radius:"6px"},hover:{background:"{primary.hover.color}",color:"{primary.color}"}}},Lf={semantic:{disabled:{opacity:"1"},transitionDuration:"0",primary:{50:"{primary.color}",100:"{primary.color}",200:"{primary.color}",300:"{primary.color}",400:"{primary.color}",500:"{primary.color}",600:"{primary.color}",700:"{primary.color}",800:"{primary.color}",900:"{primary.color}",950:"{primary.color}"},colorScheme:{light:{...Di},dark:{...Di}}},components:{blockui:{border:{radius:"0px"}},button:{padding:{x:"1rem",y:"0.5rem"},primary:{hover:{background:"{primary.color} !important",border:{color:"{primary.color} !important"}}},text:{secondary:{color:"{secondary.color} !important",hover:{background:"{surface.200.color} !important"}}},icon:{only:{width:"2rem"}}},checkbox:{background:"{surface.100.color} !important",border:{color:"{border.color} !important"},checked:{background:"{primary.color} !important",hover:{background:"{primary.color} !important"}},sm:{width:"1rem",height:"1rem"},lg:{width:"1.5rem",height:"1.5rem"}},datatable:{header:{border:{color:"{border.color} !important"},cell:{border:{color:"{border.color} !important"},hover:{background:"{primary.hover.color} !important",color:"{primary.color} !important"}}},body:{cell:{border:{color:"{border.color} !important"}}},row:{striped:{background:"{surface.100.color} !important"}},footer:{border:{color:"transparent !important"}}},datepicker:{today:{background:"{primary.hover.color} !important",color:"{primary.color} !important"}},dialog:{background:"{bg.color} !important",color:"{text.color} !important",border:{color:"{surface.0.color} !important",radius:"{border.radius} !important"},title:{font:{size:"{font.size} !important",weight:"700 !important"}},header:{padding:"0.75rem 0.75rem 0 1rem !important",gap:"{inline.spacing} !important"},content:{padding:"{content.spacing} !important"},footer:{padding:"0.75rem 0.75rem 0 1rem !important",gap:"{inline.spacing} !important"}},inputtext:{background:"{bg.color}",color:"{text.color}",border:{color:"{border.color}"},hover:{border:{color:"{primary.color}"}},placeholder:{color:"{muted.color}"}},inputmask:{background:"{bg.color}",color:"{text.color}",border:{color:"{border.color}"},hover:{border:{color:"{primary.color}"}},placeholder:{color:"{muted.color}"}},select:{background:"{bg.color}",color:"{primary.color}",option:{focus:{background:"{primary.hover.color}",color:"{primary.color}"},selected:{focus:{background:"{primary.color}",color:"{bg.color}"}}},overlay:{background:"{bg.color}",border:{color:"{border.color}"}},dropdown:{color:"{primary.color}"},hover:{border:{color:"{primary.color}"}},placeholder:{color:"{disabled.color}"},disabled:{color:"{disabled.color}"}},skeleton:{background:"{surface.700.color} !important",animation:{background:"{surface.100.color} !important"}}}};class an{static get IsTouch(){return window.matchMedia("(pointer: coarse)").matches}static GetMaxZindex(e=[]){let n="body > *:not(script):not(style)";for(const o of e)n+=`, ${o}`;const r=Math.max(...Array.from(document.querySelectorAll(n)).map(o=>{const i=getComputedStyle(o).zIndex;return+i==+i?+i:0}));return r>=100?r:100}static AjustarFuso(e){const n=e.getTimezoneOffset()/60;e.setHours(e.getHours()-n)}static Mask(e,n){let r=0,o=e.toString();return n.replace(/#/g,()=>o[r++]||"")}static MaskCpf(e){return an.Mask(e.padStart(11,"0"),"###.###.###-##")}static MaskCnpj(e){return an.Mask(e.padStart(14,"0"),"##.###.###/####-##")}static MaskCcm(e){return an.Mask(e.padStart(8,"0"),"#.###.###-#")}static async DelayAsync(e){return new Promise(n=>setTimeout(n,e))}}const xf=t=>{const e=new Set;function n(r){const{name:o,children:i}=r;if(o){if(e.has(o))throw new Error(["Erro na validação das rotas!",`Nome de rota duplicado: ${o}`].join(`
410
+ For more information see: https://www.keycloak.org/docs/latest/securing_apps/#_modern_browsers`),i.enable=!1,e.silentCheckSsoFallback&&(e.silentCheckSsoRedirectUri=!1)),document.body.removeChild(h),window.removeEventListener("message",v),u.setSuccess()))};window.addEventListener("message",v,!1)}else u.setSuccess();return M(u.promise,e.messageReceiveTimeout,"Timeout when waiting for 3rd party check iframe message.")}function Ze(u){if(!u||u=="default")return{login:function(_){return window.location.assign(e.createLoginUrl(_)),Y().promise},logout:async function(_){if(((_==null?void 0:_.logoutMethod)??e.logoutMethod)==="GET"){window.location.replace(e.createLogoutUrl(_));return}const O=e.createLogoutUrl(_),x=await fetch(O,{method:"POST",headers:{"Content-Type":"application/x-www-form-urlencoded"},body:new URLSearchParams({id_token_hint:e.idToken,client_id:e.clientId,post_logout_redirect_uri:n.redirectUri(_,!1)})});if(x.redirected){window.location.href=x.url;return}if(x.ok){window.location.reload();return}throw new Error("Logout failed, request returned an error code.")},register:function(_){return window.location.assign(e.createRegisterUrl(_)),Y().promise},accountManagement:function(){var _=e.createAccountUrl();if(typeof _<"u")window.location.href=_;else throw"Not supported by the OIDC server";return Y().promise},redirectUri:function(_,E){return _&&_.redirectUri?_.redirectUri:e.redirectUri?e.redirectUri:location.href}};if(u=="cordova"){i.enable=!1;var h=function(_,E,O){return window.cordova&&window.cordova.InAppBrowser?window.cordova.InAppBrowser.open(_,E,O):window.open(_,E,O)},v=function(_){return _&&_.cordovaOptions?Object.keys(_.cordovaOptions).reduce(function(E,O){return E[O]=_.cordovaOptions[O],E},{}):{}},T=function(_){return Object.keys(_).reduce(function(E,O){return E.push(O+"="+_[O]),E},[]).join(",")},b=function(_){var E=v(_);return E.location="no",_&&_.prompt=="none"&&(E.hidden="yes"),T(E)},P=function(){return e.redirectUri||"http://localhost"};return{login:function(_){var E=Y(),O=b(_),x=e.createLoginUrl(_),D=h(x,"_blank",O),F=!1,_e=!1,fe=function(){_e=!0,D.close()};return D.addEventListener("loadstart",function(me){if(me.url.indexOf(P())==0){var Je=te(me.url);S(Je,E),fe(),F=!0}}),D.addEventListener("loaderror",function(me){if(!F)if(me.url.indexOf(P())==0){var Je=te(me.url);S(Je,E),fe(),F=!0}else E.setError(),fe()}),D.addEventListener("exit",function(me){_e||E.setError({reason:"closed_by_user"})}),E.promise},logout:function(_){var E=Y(),O=e.createLogoutUrl(_),x=h(O,"_blank","location=no,hidden=yes,clearcache=yes"),D;return x.addEventListener("loadstart",function(F){F.url.indexOf(P())==0&&x.close()}),x.addEventListener("loaderror",function(F){F.url.indexOf(P())==0||(D=!0),x.close()}),x.addEventListener("exit",function(F){D?E.setError():(e.clearToken(),E.setSuccess())}),E.promise},register:function(_){var E=Y(),O=e.createRegisterUrl(),x=b(_),D=h(O,"_blank",x);return D.addEventListener("loadstart",function(F){if(F.url.indexOf(P())==0){D.close();var _e=te(F.url);S(_e,E)}}),E.promise},accountManagement:function(){var _=e.createAccountUrl();if(typeof _<"u"){var E=h(_,"_blank","location=no");E.addEventListener("loadstart",function(O){O.url.indexOf(P())==0&&E.close()})}else throw"Not supported by the OIDC server"},redirectUri:function(_){return P()}}}if(u=="cordova-native")return i.enable=!1,{login:function(_){var E=Y(),O=e.createLoginUrl(_);return universalLinks.subscribe("keycloak",function(x){universalLinks.unsubscribe("keycloak"),window.cordova.plugins.browsertab.close();var D=te(x.url);S(D,E)}),window.cordova.plugins.browsertab.openUrl(O),E.promise},logout:function(_){var E=Y(),O=e.createLogoutUrl(_);return universalLinks.subscribe("keycloak",function(x){universalLinks.unsubscribe("keycloak"),window.cordova.plugins.browsertab.close(),e.clearToken(),E.setSuccess()}),window.cordova.plugins.browsertab.openUrl(O),E.promise},register:function(_){var E=Y(),O=e.createRegisterUrl(_);return universalLinks.subscribe("keycloak",function(x){universalLinks.unsubscribe("keycloak"),window.cordova.plugins.browsertab.close();var D=te(x.url);S(D,E)}),window.cordova.plugins.browsertab.openUrl(O),E.promise},accountManagement:function(){var _=e.createAccountUrl();if(typeof _<"u")window.cordova.plugins.browsertab.openUrl(_);else throw"Not supported by the OIDC server"},redirectUri:function(_){return _&&_.redirectUri?_.redirectUri:e.redirectUri?e.redirectUri:"http://localhost"}};throw"invalid adapter type: "+u}var Fe=function(){if(!(this instanceof Fe))return new Fe;localStorage.setItem("kc-test","test"),localStorage.removeItem("kc-test");var u=this;function h(){for(var v=new Date().getTime(),T=0;T<localStorage.length;T++){var b=localStorage.key(T);if(b&&b.indexOf("kc-callback-")==0){var P=localStorage.getItem(b);if(P)try{var _=JSON.parse(P).expires;(!_||_<v)&&localStorage.removeItem(b)}catch{localStorage.removeItem(b)}}}}u.get=function(v){if(v){var T="kc-callback-"+v,b=localStorage.getItem(T);return b&&(localStorage.removeItem(T),b=JSON.parse(b)),h(),b}},u.add=function(v){h();var T="kc-callback-"+v.state;v.expires=new Date().getTime()+60*60*1e3,localStorage.setItem(T,JSON.stringify(v))}},ze=function(){if(!(this instanceof ze))return new ze;var u=this;u.get=function(b){if(b){var P=v("kc-callback-"+b);if(T("kc-callback-"+b,"",h(-100)),P)return JSON.parse(P)}},u.add=function(b){T("kc-callback-"+b.state,JSON.stringify(b),h(60))},u.removeItem=function(b){T(b,"",h(-100))};var h=function(b){var P=new Date;return P.setTime(P.getTime()+b*60*1e3),P},v=function(b){for(var P=b+"=",_=document.cookie.split(";"),E=0;E<_.length;E++){for(var O=_[E];O.charAt(0)==" ";)O=O.substring(1);if(O.indexOf(P)==0)return O.substring(P.length,O.length)}return""},T=function(b,P,_){var E=b+"="+P+"; expires="+_.toUTCString()+"; ";document.cookie=E}};function pt(){try{return new Fe}catch{}return new ze}function $e(u){return function(){e.enableLogging&&u.apply(console,Array.prototype.slice.call(arguments))}}}function Gd(t){const e=String.fromCodePoint(...t);return btoa(e)}class qd{constructor(e){Pe(this,"oidc");Pe(this,"isAuthenticated",!1);Pe(this,"authenticatedWith",null);this.oidc=new Pi(e)}async InitAsync(e={}){return await this.oidc.init(e).then(async n=>(this.isAuthenticated=n,this.authenticatedWith=this.AuthenticatedWith(),n)).catch(n=>(console.info("Ocorreu um erro na inicialização. Verifique o console para mais detalhes."),console.error(n),!1))}LoginGovBr(){this.oidc.login({idpHint:"GOV.BR"})}LoginSenhaweb(){var n;const e=(n=this.oidc.authServerUrl)!=null&&n.startsWith("https://keycloak.dev.apps.sf.prefeitura.sp.gov.br")?"senhawebdev":"senhaweb";this.oidc.login({idpHint:e})}AuthenticatedWith(){var n,r;const e=this.oidc.tokenParsed;return e?(n=e.identity_provider)!=null&&n.startsWith("GOV.BR")?"govbr":(r=e.identity_provider)!=null&&r.startsWith("senhaweb")?"senhaweb":"ad":null}}let Li;function Yd(t){Li=new qd(t)}const Cr=()=>Li;function Xd(t){return s.getCurrentScope()?(s.onScopeDispose(t),!0):!1}const Zd=typeof window<"u"&&typeof document<"u";typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope;function Jd(t){return s.getCurrentInstance()}function Qd(t){return Array.isArray(t)?t:[t]}function ef(t,e=!0,n){Jd()?s.onMounted(t,n):e?t():s.nextTick(t)}const xi=Zd?window:void 0;function Ct(t){var e;const n=s.toValue(t);return(e=n==null?void 0:n.$el)!=null?e:n}function tf(){const t=s.ref(!1),e=s.getCurrentInstance();return e&&s.onMounted(()=>{t.value=!0},e),t}function nf(t){const e=tf();return s.computed(()=>(e.value,!!t()))}function rf(t,e,n={}){const{window:r=xi,...o}=n;let i;const a=nf(()=>r&&"ResizeObserver"in r),l=()=>{i&&(i.disconnect(),i=void 0)},c=s.computed(()=>{const p=s.toValue(t);return Array.isArray(p)?p.map(y=>Ct(y)):[Ct(p)]}),d=s.watch(c,p=>{if(l(),a.value&&r){i=new ResizeObserver(e);for(const y of p)y&&i.observe(y,o)}},{immediate:!0,flush:"post"}),f=()=>{l(),d()};return Xd(f),{isSupported:a,stop:f}}function of(t,e={width:0,height:0},n={}){const{window:r=xi,box:o="content-box"}=n,i=s.computed(()=>{var p,y;return(y=(p=Ct(t))==null?void 0:p.namespaceURI)==null?void 0:y.includes("svg")}),a=s.ref(e.width),l=s.ref(e.height),{stop:c}=rf(t,([p])=>{const y=o==="border-box"?p.borderBoxSize:o==="content-box"?p.contentBoxSize:p.devicePixelContentBoxSize;if(r&&i.value){const k=Ct(t);if(k){const C=k.getBoundingClientRect();a.value=C.width,l.value=C.height}}else if(y){const k=Qd(y);a.value=k.reduce((C,{inlineSize:A})=>C+A,0),l.value=k.reduce((C,{blockSize:A})=>C+A,0)}else a.value=p.contentRect.width,l.value=p.contentRect.height},n);ef(()=>{const p=Ct(t);p&&(a.value="offsetWidth"in p?p.offsetWidth:e.width,l.value="offsetHeight"in p?p.offsetHeight:e.height)});const d=s.watch(()=>Ct(t),p=>{a.value=p?e.width:0,l.value=p?e.height:0});function f(){c(),d()}return{width:a,height:l,stop:f}}var sf=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function af(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var Oi={exports:{}};(function(t){(function(e,n){t.exports?t.exports=n():e.log=n()})(sf,function(){var e=function(){},n="undefined",r=typeof window!==n&&typeof window.navigator!==n&&/Trident\/|MSIE /.test(window.navigator.userAgent),o=["trace","debug","info","warn","error"],i={},a=null;function l(A,L){var w=A[L];if(typeof w.bind=="function")return w.bind(A);try{return Function.prototype.bind.call(w,A)}catch{return function(){return Function.prototype.apply.apply(w,[A,arguments])}}}function c(){console.log&&(console.log.apply?console.log.apply(console,arguments):Function.prototype.apply.apply(console.log,[console,arguments])),console.trace&&console.trace()}function d(A){return A==="debug"&&(A="log"),typeof console===n?!1:A==="trace"&&r?c:console[A]!==void 0?l(console,A):console.log!==void 0?l(console,"log"):e}function f(){for(var A=this.getLevel(),L=0;L<o.length;L++){var w=o[L];this[w]=L<A?e:this.methodFactory(w,A,this.name)}if(this.log=this.debug,typeof console===n&&A<this.levels.SILENT)return"No console available for logging"}function p(A){return function(){typeof console!==n&&(f.call(this),this[A].apply(this,arguments))}}function y(A,L,w){return d(A)||p.apply(this,arguments)}function k(A,L){var w=this,S,N,U,G="loglevel";typeof A=="string"?G+=":"+A:typeof A=="symbol"&&(G=void 0);function ce(M){var X=(o[M]||"silent").toUpperCase();if(!(typeof window===n||!G)){try{window.localStorage[G]=X;return}catch{}try{window.document.cookie=encodeURIComponent(G)+"="+X+";"}catch{}}}function te(){var M;if(!(typeof window===n||!G)){try{M=window.localStorage[G]}catch{}if(typeof M===n)try{var X=window.document.cookie,ue=encodeURIComponent(G),de=X.indexOf(ue+"=");de!==-1&&(M=/^([^;]+)/.exec(X.slice(de+ue.length+1))[1])}catch{}return w.levels[M]===void 0&&(M=void 0),M}}function Ae(){if(!(typeof window===n||!G)){try{window.localStorage.removeItem(G)}catch{}try{window.document.cookie=encodeURIComponent(G)+"=; expires=Thu, 01 Jan 1970 00:00:00 UTC"}catch{}}}function ne(M){var X=M;if(typeof X=="string"&&w.levels[X.toUpperCase()]!==void 0&&(X=w.levels[X.toUpperCase()]),typeof X=="number"&&X>=0&&X<=w.levels.SILENT)return X;throw new TypeError("log.setLevel() called with invalid level: "+M)}w.name=A,w.levels={TRACE:0,DEBUG:1,INFO:2,WARN:3,ERROR:4,SILENT:5},w.methodFactory=L||y,w.getLevel=function(){return U??N??S},w.setLevel=function(M,X){return U=ne(M),X!==!1&&ce(U),f.call(w)},w.setDefaultLevel=function(M){N=ne(M),te()||w.setLevel(M,!1)},w.resetLevel=function(){U=null,Ae(),f.call(w)},w.enableAll=function(M){w.setLevel(w.levels.TRACE,M)},w.disableAll=function(M){w.setLevel(w.levels.SILENT,M)},w.rebuild=function(){if(a!==w&&(S=ne(a.getLevel())),f.call(w),a===w)for(var M in i)i[M].rebuild()},S=ne(a?a.getLevel():"WARN");var Y=te();Y!=null&&(U=ne(Y)),f.call(w)}a=new k,a.getLogger=function(L){if(typeof L!="symbol"&&typeof L!="string"||L==="")throw new TypeError("You must supply a name when creating a logger.");var w=i[L];return w||(w=i[L]=new k(L,a.methodFactory)),w};var C=typeof window!==n?window.log:void 0;return a.noConflict=function(){return typeof window!==n&&window.log===a&&(window.log=C),a},a.getLoggers=function(){return i},a.default=a,a})})(Oi);var lf=Oi.exports;const Ln=af(lf),cf={install(t,e){const n=e??{};Ln.setDefaultLevel(n.enableLogging?Ln.levels.DEBUG:Ln.levels.SILENT);const r=240;document.documentElement.style.setProperty("--nav-menu-width",`${r}px`);const o=s.ref(!0),i=s.ref(0),a=s.ref(!1),l=s.ref(!1),c=s.ref(""),d=s.ref(null),{width:f}=of(d);t.provide(wo,{navMenuWidth:r,isMenuOpened:o,ToggleMenu:()=>{o.value=!o.value},OpenMenu:()=>{o.value=!0},CloseMenu:()=>{o.value=!1},scrollY:i,pageTitle:c,isDarkMode:a,ToggleTheme:()=>Ft.Toggle(),EnableDarkMode:()=>Ft.EnableDarkMode(),EnableLightMode:()=>Ft.EnableLightMode(),ClearStoredTheme:()=>Ft.ClearStoredTheme(),LogoutAsync:async()=>{const y=Ei(),{oidc:k}=Cr();await y.ConfirmAsync("Deseja realmente sair da sua conta?")&&(l.value=!0,await new Promise(A=>setTimeout(A,1e3)),k.logout({redirectUri:window.location.origin}))},Login:()=>{const{oidc:y}=Cr();y.login()},isLoggingOut:l,mainRef:d,mainWidth:f,isMainXs:s.computed(()=>f.value<=384),isMainSm:s.computed(()=>f.value>384),isMainMd:s.computed(()=>f.value>768),isMainLg:s.computed(()=>f.value>992),isMainXl:s.computed(()=>f.value>1280),isMain2Xl:s.computed(()=>f.value>1536),isMain3Xl:s.computed(()=>f.value>1920)}),new MutationObserver(()=>{a.value=document.documentElement.classList.contains("dark")}).observe(document.documentElement,{attributes:!0,attributeFilter:["class"]}),document.addEventListener("scroll",()=>{i.value=document.documentElement.scrollTop}),Ft.SetInitialTheme()}},uf=Ln;class Er extends Error{constructor(n=[]){const r=Array.isArray(n)?n:[n];super(r[0]);Pe(this,"errors",[]);this.errors=r}}class $i{constructor(e=null){Pe(this,"errors",[]);Pe(this,"_value",null);Pe(this,"_httpStatusCode");this._value=e,this._httpStatusCode=200}get value(){return this._value}set value(e){this._value=e}get hasSuccess(){return!this.hasError}get hasError(){return this.errors.length>0}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 Er(this.errors)}get firstError(){return this.hasSuccess?null:this.errors[0]}}class Bi{get IsVisible(){return ft.isVisible()}async CreateAlertAsync(e){let n="info",r,o;return typeof e=="string"||Array.isArray(e)?r=Array.isArray(e)?e.join("<br />"):e:(n=e.icon??"info",o=e.title??"",r=Array.isArray(e.text)?e.text.join("<br />"):e.text),new Promise(i=>{ft.fire({allowEscapeKey:!1,allowOutsideClick:!1,icon:n,title:o,html:`<div style="max-height: 50vh; overflow: auto">${Si.sanitize(r)}</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 Ni=()=>new Bi,df=()=>new Bi;window.addEventListener("error",function(t){return Ir(t.error)||console.error(t.error),t.preventDefault(),!1}),window.addEventListener("unhandledrejection",function(t){return Ir(t.reason)||console.error("Unhandled Rejection",t.reason),t.preventDefault(),!1});const ff=t=>{t.config.errorHandler=(e,n,r)=>{Ir(e)||console.error("Vue Global Error Handler: ",{err:e,vm:n,info:r})}},Ir=t=>t instanceof Er||t instanceof $i?(Ni().AlertErrorAsync(t.errors),!0):!1;function mf(){return s.inject(wo)}const Tr=()=>mf(),pf={class:"font-percentage"},Mi="--font-size-increment",hf="tamanho-fonte",gf=gt(s.defineComponent({__name:"FontSize",setup(t){const e=s.ref(!1),n=s.ref(0),r=()=>{n.value=Mn(),e.value=!0},o=()=>{e.value=!1},i=()=>document.documentElement,a=()=>parseInt(getComputedStyle(i()).getPropertyValue(Mi)||"1"),l=y=>{y<.5||y>1.6||(i().style.setProperty(Mi,y.toString()),p.value=y)},c=()=>{l(p.value+.1)},d=()=>{l(p.value-.1)},f=()=>{l(1)},p=s.ref(1);return s.onBeforeMount(()=>{localStorage.removeItem(hf)}),s.onMounted(()=>{p.value=a()}),(y,k)=>(s.openBlock(),s.createElementBlock(s.Fragment,null,[s.createVNode(Ue,{button:!0,size:"sm",icon:"text_increase",tooltip:"Tamanho da fonte",onClick:r}),e.value?(s.openBlock(),s.createElementBlock(s.Fragment,{key:0},[s.createElementVNode("div",{class:s.normalizeClass(["border","fadein","font-size-wrapper"]),style:s.normalizeStyle({zIndex:n.value+1})},[s.createElementVNode("div",{class:"icon",onClick:d}),s.createElementVNode("span",pf,s.toDisplayString(p.value.toLocaleString("pt-br",{style:"percent",maximumFractionDigits:0})),1),s.createElementVNode("div",{class:"icon add",onClick:c}),s.createElementVNode("span",{class:"redefinir",onClick:f}," Redefinir ")],4),s.createElementVNode("div",{class:"font-size-mask",style:s.normalizeStyle({zIndex:n.value}),onClick:o},null,4)],64)):s.createCommentVNode("",!0)],64))}}),[["__scopeId","data-v-af78ca17"]]),yf={class:"nav-menu-header"},bf={class:"nav-menu-inner-close"},vf={class:"main-content"},wf={class:"menu-button"},kf={class:"page-title"},_f={class:"action"},Sf={id:"content"},Cf={key:0,id:"logging-out"},Ef={class:"info-fazenda"},If={class:"font-bold"},Tf={class:"info-endereco text-muted"},Af=gt(s.defineComponent({__name:"Main",props:{auth:{}},setup(t){const e=t,{navMenuWidth:n,isMenuOpened:r,pageTitle:o,scrollY:i,ToggleMenu:a,isDarkMode:l,ToggleTheme:c,CloseMenu:d,LogoutAsync:f,Login:p,isLoggingOut:y,mainRef:k}=Tr(),C=s.ref(null),A=()=>{if(!C.value||!r.value)return!1;C.value.offsetWidth!==n&&d()};return s.onMounted(()=>{ht.useRouter().afterEach(()=>{A()})}),(L,w)=>(s.openBlock(),s.createElementBlock("main",{ref_key:"mainRef",ref:k,class:s.normalizeClass({disabled:s.unref(y),"nav-menu-visible":s.unref(r)})},[s.createElementVNode("aside",{id:"nav-menu",ref_key:"navMenuRef",ref:C,class:s.normalizeClass({"nav-menu-hidden":!s.unref(r)})},[s.createElementVNode("div",yf,[w[0]||(w[0]=s.createElementVNode("span",null,"Menu",-1)),s.createElementVNode("div",bf,[s.createVNode(Ue,{button:!0,icon:"close",onClick:s.unref(a)},null,8,["onClick"])])]),s.renderSlot(L.$slots,"nav-menu",{},void 0,!0)],2),s.createElementVNode("div",vf,[s.createElementVNode("div",{id:"top-bar",class:s.normalizeClass({"shadow-bottom":s.unref(i)>72})},[s.createElementVNode("div",wf,[s.createVNode(Ue,{button:!0,icon:s.unref(r)?"menu_open":"menu",tooltip:"Menu",onClick:s.unref(a)},null,8,["icon","onClick"])]),s.createElementVNode("div",kf,s.toDisplayString(s.unref(y)?"Saindo...":s.unref(o)),1),w[1]||(w[1]=s.createElementVNode("span",{class:"sep"},null,-1)),s.createElementVNode("div",_f,[s.createVNode(Ue,{button:!0,size:"sm",icon:s.unref(l)?"light_mode":"dark_mode",tooltip:s.unref(l)?"Modo claro":"Modo escuro",onClick:s.unref(c)},null,8,["icon","tooltip","onClick"]),s.createVNode(gf),e.auth?(s.openBlock(),s.createElementBlock(s.Fragment,{key:0},[e.auth.isAuthenticated?(s.openBlock(),s.createBlock(Ue,{key:0,button:!0,size:"sm",icon:"logout",tooltip:"Sair",onClick:s.unref(f)},null,8,["onClick"])):(s.openBlock(),s.createBlock(Ue,{key:1,button:!0,size:"sm",icon:"login",tooltip:"Entrar",onClick:s.unref(p)},null,8,["onClick"]))],64)):s.createCommentVNode("",!0)])],2),s.createElementVNode("div",Sf,[s.unref(y)?(s.openBlock(),s.createElementBlock("div",Cf,[s.createVNode($r)])):s.renderSlot(L.$slots,"content",{key:1},void 0,!0)])]),s.createElementVNode("footer",null,[w[4]||(w[4]=s.createElementVNode("div",{class:"logo-fazenda"},null,-1)),s.createElementVNode("div",Ef,[s.createElementVNode("span",If,[s.renderSlot(L.$slots,"footer-nome-fazenda",{},()=>[w[2]||(w[2]=s.createTextVNode(" SECRETARIA MUNICIPAL DA FAZENDA "))],!0)]),s.createElementVNode("span",Tf,[s.renderSlot(L.$slots,"footer-endereco-fazenda",{},()=>[w[3]||(w[3]=s.createTextVNode(" Rua Líbero Badaró, 190 - Centro - São Paulo - SP - CEP 01008-000 "))],!0)])])])],2))}}),[["__scopeId","data-v-4806b709"]]),Pf=s.defineComponent({__name:"PageTitle",props:{title:{}},setup(t){const{pageTitle:e}=Tr(),n=t;return s.watchEffect(()=>{document.title=n.title,e.value=n.title}),(r,o)=>null}}),Di={surface:{0:"{surface.0.color}",50:"{surface.100.color}",100:"{surface.100.color}",200:"{surface.200.color}",300:"{surface.300.color}",400:"{surface.400.color}",500:"{surface.1000.color}",600:"{surface.600.color}",700:"{surface.700.color}",800:"{surface.800.color}",900:"{surface.900.color}",950:"{surface.1000.color}"},primary:{color:"{primary.color}",contrastColor:"{bg.color}",hoverColor:"{primary.hover.color}",activeColor:"{primary.color}"},highlight:{background:"{primary.color}",color:"{bg.color}"},formField:{background:"{surface.0.color}",disabledBackground:"{surface.0.color}",filledBackground:"{surface.100.color}",filledFocusBackground:"{surface.100.color}",borderColor:"{surface.1000.color}",hoverBorderColor:"{primary.color}",focusBorderColor:"{primary.color}",invalidBorderColor:"{error.color}",color:"{text.color}",disabledColor:"{disabled.color}",placeholderColor:"{muted.color}",floatLabelColor:"{secondary.color}",floatLabelFocusColor:"{secondary.color}",floatLabelInvalidColor:"{error.color}",iconColor:"{primary.color}"},text:{color:"{text.color}",hoverColor:"{primary.color}",mutedColor:"{muted.color}",hoverMutedColor:"{muted.color}"},mask:{background:"{maskbg.color}",color:"{surface.200.color}"},content:{background:"{bg.color}",color:"{text.color}",border:{color:"{surface.1000.color}",radius:"6px"},hover:{background:"{primary.hover.color}",color:"{primary.color}"}}},Lf={semantic:{disabled:{opacity:"1"},transitionDuration:"0",primary:{50:"{primary.color}",100:"{primary.color}",200:"{primary.color}",300:"{primary.color}",400:"{primary.color}",500:"{primary.color}",600:"{primary.color}",700:"{primary.color}",800:"{primary.color}",900:"{primary.color}",950:"{primary.color}"},colorScheme:{light:{...Di},dark:{...Di}}},components:{blockui:{border:{radius:"0px"}},button:{padding:{x:"1rem",y:"0.5rem"},primary:{hover:{background:"{primary.color} !important",border:{color:"{primary.color} !important"}}},text:{secondary:{color:"{secondary.color} !important",hover:{background:"{surface.200.color} !important"}}},icon:{only:{width:"2rem"}}},checkbox:{background:"{surface.100.color} !important",border:{color:"{border.color} !important"},checked:{background:"{primary.color} !important",hover:{background:"{primary.color} !important"}},sm:{width:"1rem",height:"1rem"},lg:{width:"1.5rem",height:"1.5rem"}},datatable:{header:{border:{color:"{border.color} !important"},cell:{border:{color:"{border.color} !important"},hover:{background:"{primary.hover.color} !important",color:"{primary.color} !important"}}},body:{cell:{border:{color:"{border.color} !important"}}},row:{striped:{background:"{surface.100.color} !important"}},footer:{border:{color:"transparent !important"}}},datepicker:{today:{background:"{primary.hover.color} !important",color:"{primary.color} !important"}},dialog:{background:"{bg.color} !important",color:"{text.color} !important",border:{color:"{surface.0.color} !important",radius:"{border.radius} !important"},title:{font:{size:"{font.size} !important",weight:"700 !important"}},header:{padding:"0.75rem 0.75rem 0 1rem !important",gap:"{inline.spacing} !important"},content:{padding:"{content.spacing} !important"},footer:{padding:"0.75rem 0.75rem 0 1rem !important",gap:"{inline.spacing} !important"}},inputtext:{background:"{bg.color}",color:"{text.color}",border:{color:"{border.color}"},hover:{border:{color:"{primary.color}"}},placeholder:{color:"{muted.color}"}},inputmask:{background:"{bg.color}",color:"{text.color}",border:{color:"{border.color}"},hover:{border:{color:"{primary.color}"}},placeholder:{color:"{muted.color}"}},select:{background:"{bg.color}",color:"{primary.color}",option:{focus:{background:"{primary.hover.color}",color:"{primary.color}"},selected:{focus:{background:"{primary.color}",color:"{bg.color}"}}},overlay:{background:"{bg.color}",border:{color:"{border.color}"}},dropdown:{color:"{primary.color}"},hover:{border:{color:"{primary.color}"}},placeholder:{color:"{disabled.color}"},disabled:{color:"{disabled.color}"}},skeleton:{background:"{surface.700.color} !important",animation:{background:"{surface.100.color} !important"}}}};class an{static get IsTouch(){return window.matchMedia("(pointer: coarse)").matches}static GetMaxZindex(e=[]){let n="body > *:not(script):not(style)";for(const o of e)n+=`, ${o}`;const r=Math.max(...Array.from(document.querySelectorAll(n)).map(o=>{const i=getComputedStyle(o).zIndex;return+i==+i?+i:0}));return r>=100?r:100}static AjustarFuso(e){const n=e.getTimezoneOffset()/60;e.setHours(e.getHours()-n)}static Mask(e,n){let r=0,o=e.toString();return n.replace(/#/g,()=>o[r++]||"")}static MaskCpf(e){return an.Mask(e.padStart(11,"0"),"###.###.###-##")}static MaskCnpj(e){return an.Mask(e.padStart(14,"0"),"##.###.###/####-##")}static MaskCcm(e){return an.Mask(e.padStart(8,"0"),"#.###.###-#")}static async DelayAsync(e){return new Promise(n=>setTimeout(n,e))}}const xf=t=>{const e=new Set;function n(r){const{name:o,children:i}=r;if(o){if(e.has(o))throw new Error(["Erro na validação das rotas!",`Nome de rota duplicado: ${o}`].join(`
411
411
  `));e.add(o)}if(i&&Array.isArray(i))for(const a of i)n(a)}for(const r of t)n(r)};function Of(){document.documentElement.classList.add("app-mounted")}R.AppError=Er,R.AppResult=$i,R.ConfigAuth=Yd,R.EnsureUniqueRouteNames=xf,R.RemovePreloader=Of,R.SfButton=ys,R.SfContent=ds,R.SfDrawer=ws,R.SfIcon=Ue,R.SfMain=Af,R.SfMessage=_s,R.SfNavMenu=_l,R.SfPageTitle=Pf,R.SfTabNavigation=hs,R.SfTooltip=Br,R.UseAlert=Ni,R.UseAlertService=df,R.UseAppInject=Tr,R.UseAuth=Cr,R.UseConfirm=Ei,R.UseConfirmService=Od,R.Utilities=an,R._logger=uf,R.configSF=cf,R.globalErrorHandler=ff,R.themePreset=Lf,Object.defineProperty(R,Symbol.toStringTag,{value:"Module"})});
412
412
  //# sourceMappingURL=sf.prefeiturasp.vuecomponents.umd.cjs.map