portabilis-ui
Advanced tools
Comparing version 0.3.26 to 0.3.27
@@ -20,2 +20,3 @@ /** __vue_virtual_code_placeholder */ | ||
optCaps?: boolean | undefined; | ||
required?: boolean | undefined; | ||
}>, { | ||
@@ -52,2 +53,3 @@ modelValue: string; | ||
optCaps?: boolean | undefined; | ||
required?: boolean | undefined; | ||
}>, { | ||
@@ -54,0 +56,0 @@ modelValue: string; |
"use strict";/** | ||
* Portábilis UI 0.3.26 | ||
* Portábilis UI 0.3.27 | ||
* (c) 2023 | ||
* @license MIT | ||
*/Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),w=require("./assets/axios.51aa6037.mjs");const Z=e.defineComponent({__name:"XModal",props:{modelValue:{type:Boolean,default:!1},disable:{type:Boolean,default:!1},persistent:{type:Boolean,default:!1},fullWidth:{type:Boolean,default:!1},fullHeight:{type:Boolean,default:!1},square:{type:Boolean,default:!1},maximized:{type:Boolean,default:!1},seamless:{type:Boolean,default:!1}},emits:["onUpdate:modelValue","update:modelValue"],setup(n,{expose:f,emit:c}){const p=n,i=e.useAttrs(),s=e.ref(!1),v=e.computed(()=>({"x-modal__inner":!0,flex:!0,"ui-pointer-events-none":!0,"x-modal__inner--standard":!0,"fixed-full ui-justify-center ui-items-center":!0,"x-modal__inner--maximized":p.maximized===!0,"x-modal__inner--minimized":p.maximized===!1,"x-modal__inner--fullwidth":p.fullWidth===!0,"x-modal__inner--fullheight":p.fullHeight===!0,"x-modal__inner--square":p.square===!0})),o=e.computed(()=>s.value===!0&&p.seamless!==!0),h=_=>{_.key==="Escape"&&B()},d=()=>{document.addEventListener("keydown",h,!0)},u=()=>{document.removeEventListener("keydown",h,!0)},g=()=>{s.value!==!1&&(s.value=!1,u())},k=()=>{s.value!==!0&&(s.value=!0,d())},B=()=>{p.disable!==!0&&g()},x=()=>{p.persistent!==!0&&B()},S=e.computed(()=>["x-modal fullscreen ui-pointer-events-none",i.class]),{showPortal:O,hidePortal:T,portalIsActive:L}=W();function A(_){p.disable===!0&&_===!0&&p["onUpdate:modelValue"]!==void 0?c("update:modelValue",!1):_===!0!==s.value&&(_===!0?k():g())}return e.watch(s,_=>{_===!0?O():_===!1&&(c("update:modelValue",!1),T())}),e.watch(()=>p.modelValue,A),e.onBeforeUnmount(()=>{A(!1)}),e.onMounted(()=>{A(p.modelValue)}),f({rootClasses:S,useBackdrop:o,onBackdropClick:x,showing:s,classes:v,portalIsActive:L}),(_,C)=>e.unref(L)?(e.openBlock(),e.createBlock(e.Teleport,{key:0,to:"body"},[e.createElementVNode("div",e.mergeProps(_.$attrs,{class:e.unref(S)}),[e.createVNode(e.Transition,{name:"x-transition--fade",appear:!0},{default:e.withCtx(()=>[e.unref(o)?(e.openBlock(),e.createElementBlock("div",{key:0,class:"x-modal__backdrop fixed-full","aria-hidden":!0,onClick:x})):e.createCommentVNode("",!0)]),_:1}),e.createVNode(e.Transition,{name:"x-transition--fade",appear:!0},{default:e.withCtx(()=>[s.value?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(e.unref(v)),tabindex:"-1"},[e.renderSlot(_.$slots,"default")],2)):e.createCommentVNode("",!0)]),_:3})],16)])):e.createCommentVNode("",!0)}}),ye={class:"ui-w-[467px] ui-rounded-3px ui-border ui-border-solid ui-border-white ui-grid ui-grid-cols-1 ui-bg-white"},be={class:"ui-text-lg ui-font-bold"},ke={class:"ui-p-4 ui-bg-white"},_e={key:0},Be=e.createElementVNode("hr",{class:"ui-text-gray-1/25"},null,-1),Ve={class:"ui-p-4"},I=e.defineComponent({__name:"UiModal",props:{title:{default:""},modelValue:{type:Boolean,default:!1},noFooter:{type:Boolean,default:!1},titleClass:{default:""}},setup(n,{expose:f}){const c=n,p=w.useVModel(c,"modelValue");return f({model:p}),(i,s)=>(e.openBlock(),e.createBlock(Z,{modelValue:e.unref(p),"onUpdate:modelValue":s[0]||(s[0]=v=>e.isRef(p)?p.value=v:null)},{default:e.withCtx(()=>[e.createElementVNode("div",ye,[e.createElementVNode("div",{class:e.normalizeClass(["ui-p-4 ui-bg-primary ui-text-white",[{[n.titleClass]:!0}]])},[e.createElementVNode("h1",be,e.toDisplayString(n.title),1)],2),e.createElementVNode("div",ke,[e.renderSlot(i.$slots,"default")]),n.noFooter?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("div",_e,[Be,e.createElementVNode("div",Ve,[e.renderSlot(i.$slots,"footer")])]))])]),_:3},8,["modelValue"]))}}),we=(n,f)=>{let c=e.createApp(n);c.config.globalProperties=f.config.globalProperties;const{...p}=f.app._context;return Object.assign(c._context,p),c.mount(document.body.appendChild(document.createElement("div"))),()=>{c==null||c.unmount(),c=void 0}};function xe(n){var u;const f=n||((u=e.getCurrentInstance())==null?void 0:u.appContext),c=e.ref(""),p=f,i=e.ref(!1);let s;const v=(g,k)=>{const B=e.ref(null);s=we({setup:()=>()=>e.h(I,{title:k.title,titleClass:k.titleClass,noFooter:!1,ref:B,modelValue:i.value,"onUpdate:modelValue":d},{default:()=>e.h("div",{class:"text-justify",innerHTML:k.description}),footer:()=>h(k)})},g)},o=g=>(s==null||s(),i.value=!0,v(p,g)),h=g=>g.confirm?e.h("div",{class:"flex gap-2 justify-end"},[e.h(w._sfc_main$1,{type:"button",label:"Cancelar",onClick:()=>{g.onCancel&&g.onCancel(),d(!1)}}),e.h(w._sfc_main$1,{type:"button",label:"Confirmar",class:"bg-success text-white",onClick:()=>{g.onOk&&g.onOk(c.value),d(!1)}})]):e.h("div",{class:"flex"},[e.h(w._sfc_main$1,{type:"button",label:"Entendi",class:"w-full bg-primary text-white",onClick:()=>{g.onOk&&g.onOk(c.value),d(!1)}})]),d=g=>{i.value=g,s==null||s()};return{dialog:o}}function W(){const n=e.ref(!1);function f(p){p!==!0&&(n.value=!0)}function c(){n.value=!1}return{hidePortal:c,showPortal:f,portalIsActive:n}}function X(){const n=e.ref({width:0,height:0,name:"xs",sizes:{sm:640,md:768,lg:1024,xl:1280,"2xl":1536},lt:{sm:!0,md:!0,lg:!0,xl:!0,"2xl":!0},gt:{xs:!1,sm:!1,md:!1,lg:!1,xl:!1},xs:!0,sm:!1,md:!1,lg:!1,xl:!1,"2xl":!1}),f=()=>{const c=window.innerWidth,p=window.innerHeight;n.value.width!==c&&(n.value.width=c),n.value.height!==p&&(n.value.height=p);const i=n.value.sizes;n.value.gt.xs=c>=i.sm,n.value.gt.sm=c>=i.md,n.value.gt.md=c>=i.lg,n.value.gt.lg=c>=i.xl,n.value.gt.xl=c>=i["2xl"],n.value.lt.sm=c<i.sm,n.value.lt.md=c<i.md,n.value.lt.lg=c<i.lg,n.value.lt.xl=c<i.xl,n.value.lt["2xl"]=c<i["2xl"],n.value.xs=n.value.lt.sm,n.value.sm=n.value.gt.xs===!0&&n.value.lt.md===!0,n.value.md=n.value.gt.sm===!0&&n.value.lt.lg===!0,n.value.lg=n.value.gt.md===!0&&n.value.lt.xl===!0,n.value.xl=n.value.gt.lg,n.value["2xl"]=n.value.gt.xl;const s=n.value.xs===!0&&"xs"||n.value.sm===!0&&"sm"||n.value.md===!0&&"md"||n.value.lg===!0&&"lg"||n.value.xl===!0&&"xl"||"2xl";s!==n.value.name&&(n.value.name=s)};return f(),window.addEventListener("resize",()=>f()),e.onBeforeUnmount(()=>window.removeEventListener("resize",()=>f())),n}const Se={"aria-label":"Caminho"},Ce={class:"breadcrumb"},Ee={class:"breadcrumb-item"},Oe=e.createElementVNode("i",{class:"fa fa-home","aria-hidden":"true"},null,-1),Ae={key:0,class:"breadcrumb-item last:ui-flex last:ui-gap-2 last:ui-items-center"},Ne={key:0},Pe={key:2,class:"ui-bg-primary ui-text-white ui-rounded-xl ui-py-1 ui-px-3 ui-text-xs ui-w-22 ui-uppercase"},De=e.defineComponent({__name:"UiBreadcrumb",props:{breadcrumbs:null},setup(n){return(f,c)=>{const p=e.resolveDirective("tooltip");return e.openBlock(),e.createElementBlock("nav",Se,[e.createElementVNode("ol",Ce,[e.withDirectives((e.openBlock(),e.createElementBlock("li",Ee,[Oe,(e.openBlock(),e.createBlock(e.resolveDynamicComponent(e.unref(exports.legacy)?"a":"router-link"),e.normalizeProps(e.guardReactiveProps(e.unref(exports.legacy)?{href:"/"}:{to:"/"})),{default:e.withCtx(()=>[e.createTextVNode("Início")]),_:1},16))])),[[p,{content:"Ir para o Início",placement:"bottom"}]]),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(n.breadcrumbs,(i,s)=>(e.openBlock(),e.createElementBlock(e.Fragment,{key:s},[i.title?e.withDirectives((e.openBlock(),e.createElementBlock("li",Ae,[s+1===n.breadcrumbs.length?(e.openBlock(),e.createElementBlock("span",Ne,e.toDisplayString(i.title),1)):(e.openBlock(),e.createBlock(e.resolveDynamicComponent(e.unref(exports.legacy)?"a":"router-link"),e.normalizeProps(e.mergeProps({key:1},e.unref(exports.legacy)?{href:i.path}:{to:i.path})),{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(i.title),1)]),_:2},1040)),i.isBeta?e.withDirectives((e.openBlock(),e.createElementBlock("span",Pe,[e.createTextVNode(" Beta ")])),[[p,"Versão de testes"]]):e.createCommentVNode("",!0)])),[[p,{content:`Ir para ${i.title}`,placement:"bottom",disabled:s+1===n.breadcrumbs.length}]]):e.createCommentVNode("",!0)],64))),128))])])}}}),Le={class:"ieducar-footer"},Te=["innerHTML"],$e=e.defineComponent({__name:"UiFooter",props:{text:{default:""}},setup(n){return(f,c)=>(e.openBlock(),e.createElementBlock("footer",Le,[e.createElementVNode("div",{class:"ieducar-footer-content",innerHTML:n.text},null,8,Te)]))}}),Fe="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABQAAAAVCAYAAABG1c6oAAAABGdBTUEAALGPC/xhBQAAASpJREFUOBGlk0FKA0EQRbuFKJIL6E7IRsQruAlk5851DuIZsnLvMrlHcglx78YbqAQc3wcnZKqrehot+Ez3r/9/KpNKSg3Vdd2p0CBNeUxE0Ama11/ddc75e8wT9gmbgUfQl86z0BA1ME3AU5/iPNWbRP6CR7xxQiy1LowegWtunZX73Gbohdu6t0TlXmi9wNtKgG0VWi/w0roq90LrBV5UAmyr0A4Wm5evVfgCA96mHN07zmcs+77n7IR3NFrDlCGtPIeygQ+HTvvB9/B1p+C9snNRS55p8fmQq8jRwK8GgRgWYN9gjCTyLhSaOVzxfAHn4D/1gflGP8ob2AKtgFefHmk4ebdAWXEx/Q6swXHtYkdKdm2s9hlC/9cN6CcV9/ditCXQpMJyLOkHMLaZm/3CQvIAAAAASUVORK5CYII=",Me="data:image/png;base64,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",Ie={id:"i-educar-navbar",class:"ui-flex ui-justify-between ui-bg-primary"},Ue={class:"ieducar-header-logo ui-flex"},je={class:"ui-p-2 lg:ui-hidden"},Re={key:0,class:"ui-flex ui-items-center ui-gap-4"},ze=e.createElementVNode("a",{href:"/notificacoes",class:"ieducar-header-notifications"},[e.createElementVNode("img",{id:"notificacao",alt:"Notificação",src:Fe})],-1),Ke=e.createElementVNode("a",{href:"/intranet/meusdados.php",title:"Meus dados",class:"ieducar-header-avatar ui-hidden lg:ui-block"},[e.createElementVNode("img",{class:"ui-h-9",src:Me,alt:"Perfil"})],-1),qe={class:"ieducar-header-dropdown ui-pr-4"},He={class:"ieducar-header-dropdown-button"},Je={class:"ieducar-header-dropdown-content"},Ge=["href"],Ze=e.defineComponent({__name:"UiHeader",props:{menus:null,user:null},setup(n){const f=()=>{var c;(c=document.querySelector("body"))==null||c.classList.add("sidebar-open")};return(c,p)=>(e.openBlock(),e.createElementBlock("header",Ie,[e.createElementVNode("div",Ue,[e.createElementVNode("div",je,[e.createVNode(w._sfc_main$1,{icon:"fa-bars",class:"ui-py-2 ui-px-3 ui-bg-white ui-text-primary",onClick:f})]),(e.openBlock(),e.createBlock(e.resolveDynamicComponent(e.unref(exports.legacy)?"a":"router-link"),e.mergeProps({class:"ui-hidden lg:ui-block"},e.unref(exports.legacy)?{href:"/"}:{to:"/"}),{default:e.withCtx(()=>[e.createTextVNode("i-Educar")]),_:1},16))]),n.user?(e.openBlock(),e.createElementBlock("div",Re,[ze,Ke,e.createElementVNode("div",qe,[e.createElementVNode("div",He,e.toDisplayString(n.user.name),1),e.createElementVNode("div",Je,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(n.menus,(i,s)=>(e.openBlock(),e.createElementBlock("a",{key:s,href:i.href},e.toDisplayString(i.label),9,Ge))),128))])])])):e.createCommentVNode("",!0)]))}});const We=w.axios.create({baseURL:String({}.VITE_APP_API_URL||"")}),Xe=n=>We.get("/module/Api/menu",{params:{query:n.query,oper:"get",resource:"menu-search"}}).then(f=>{const{menus:c}=f.data;return c.map(p=>({...p,value:p.link}))});/*! | ||
*/Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),w=require("./assets/axios.c0eaf09c.mjs");const G=e.defineComponent({__name:"XModal",props:{modelValue:{type:Boolean,default:!1},disable:{type:Boolean,default:!1},persistent:{type:Boolean,default:!1},fullWidth:{type:Boolean,default:!1},fullHeight:{type:Boolean,default:!1},square:{type:Boolean,default:!1},maximized:{type:Boolean,default:!1},seamless:{type:Boolean,default:!1}},emits:["onUpdate:modelValue","update:modelValue"],setup(n,{expose:f,emit:c}){const p=n,i=e.useAttrs(),s=e.ref(!1),v=e.computed(()=>({"x-modal__inner":!0,flex:!0,"ui-pointer-events-none":!0,"x-modal__inner--standard":!0,"fixed-full ui-justify-center ui-items-center":!0,"x-modal__inner--maximized":p.maximized===!0,"x-modal__inner--minimized":p.maximized===!1,"x-modal__inner--fullwidth":p.fullWidth===!0,"x-modal__inner--fullheight":p.fullHeight===!0,"x-modal__inner--square":p.square===!0})),o=e.computed(()=>s.value===!0&&p.seamless!==!0),h=_=>{_.key==="Escape"&&B()},d=()=>{document.addEventListener("keydown",h,!0)},u=()=>{document.removeEventListener("keydown",h,!0)},g=()=>{s.value!==!1&&(s.value=!1,u())},k=()=>{s.value!==!0&&(s.value=!0,d())},B=()=>{p.disable!==!0&&g()},x=()=>{p.persistent!==!0&&B()},S=e.computed(()=>["x-modal fullscreen ui-pointer-events-none",i.class]),{showPortal:O,hidePortal:T,portalIsActive:L}=Z();function A(_){p.disable===!0&&_===!0&&p["onUpdate:modelValue"]!==void 0?c("update:modelValue",!1):_===!0!==s.value&&(_===!0?k():g())}return e.watch(s,_=>{_===!0?O():_===!1&&(c("update:modelValue",!1),T())}),e.watch(()=>p.modelValue,A),e.onBeforeUnmount(()=>{A(!1)}),e.onMounted(()=>{A(p.modelValue)}),f({rootClasses:S,useBackdrop:o,onBackdropClick:x,showing:s,classes:v,portalIsActive:L}),(_,C)=>e.unref(L)?(e.openBlock(),e.createBlock(e.Teleport,{key:0,to:"body"},[e.createElementVNode("div",e.mergeProps(_.$attrs,{class:e.unref(S)}),[e.createVNode(e.Transition,{name:"x-transition--fade",appear:!0},{default:e.withCtx(()=>[e.unref(o)?(e.openBlock(),e.createElementBlock("div",{key:0,class:"x-modal__backdrop fixed-full","aria-hidden":!0,onClick:x})):e.createCommentVNode("",!0)]),_:1}),e.createVNode(e.Transition,{name:"x-transition--fade",appear:!0},{default:e.withCtx(()=>[s.value?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(e.unref(v)),tabindex:"-1"},[e.renderSlot(_.$slots,"default")],2)):e.createCommentVNode("",!0)]),_:3})],16)])):e.createCommentVNode("",!0)}}),ye={class:"ui-w-[467px] ui-rounded-3px ui-border ui-border-solid ui-border-white ui-grid ui-grid-cols-1 ui-bg-white"},be={class:"ui-text-lg ui-font-bold"},ke={class:"ui-p-4 ui-bg-white"},_e={key:0},Be=e.createElementVNode("hr",{class:"ui-text-gray-1/25"},null,-1),Ve={class:"ui-p-4"},M=e.defineComponent({__name:"UiModal",props:{title:{default:""},modelValue:{type:Boolean,default:!1},noFooter:{type:Boolean,default:!1},titleClass:{default:""}},setup(n,{expose:f}){const c=n,p=w.useVModel(c,"modelValue");return f({model:p}),(i,s)=>(e.openBlock(),e.createBlock(G,{modelValue:e.unref(p),"onUpdate:modelValue":s[0]||(s[0]=v=>e.isRef(p)?p.value=v:null)},{default:e.withCtx(()=>[e.createElementVNode("div",ye,[e.createElementVNode("div",{class:e.normalizeClass(["ui-p-4 ui-bg-primary ui-text-white",[{[n.titleClass]:!0}]])},[e.createElementVNode("h1",be,e.toDisplayString(n.title),1)],2),e.createElementVNode("div",ke,[e.renderSlot(i.$slots,"default")]),n.noFooter?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("div",_e,[Be,e.createElementVNode("div",Ve,[e.renderSlot(i.$slots,"footer")])]))])]),_:3},8,["modelValue"]))}}),we=(n,f)=>{let c=e.createApp(n);c.config.globalProperties=f.config.globalProperties;const{...p}=f.app._context;return Object.assign(c._context,p),c.mount(document.body.appendChild(document.createElement("div"))),()=>{c==null||c.unmount(),c=void 0}};function xe(n){var u;const f=n||((u=e.getCurrentInstance())==null?void 0:u.appContext),c=e.ref(""),p=f,i=e.ref(!1);let s;const v=(g,k)=>{const B=e.ref(null);s=we({setup:()=>()=>e.h(M,{title:k.title,titleClass:k.titleClass,noFooter:!1,ref:B,modelValue:i.value,"onUpdate:modelValue":d},{default:()=>e.h("div",{class:"text-justify",innerHTML:k.description}),footer:()=>h(k)})},g)},o=g=>(s==null||s(),i.value=!0,v(p,g)),h=g=>g.confirm?e.h("div",{class:"flex gap-2 justify-end"},[e.h(w._sfc_main$1,{type:"button",label:"Cancelar",onClick:()=>{g.onCancel&&g.onCancel(),d(!1)}}),e.h(w._sfc_main$1,{type:"button",label:"Confirmar",class:"bg-success text-white",onClick:()=>{g.onOk&&g.onOk(c.value),d(!1)}})]):e.h("div",{class:"flex"},[e.h(w._sfc_main$1,{type:"button",label:"Entendi",class:"w-full bg-primary text-white",onClick:()=>{g.onOk&&g.onOk(c.value),d(!1)}})]),d=g=>{i.value=g,s==null||s()};return{dialog:o}}function Z(){const n=e.ref(!1);function f(p){p!==!0&&(n.value=!0)}function c(){n.value=!1}return{hidePortal:c,showPortal:f,portalIsActive:n}}function W(){const n=e.ref({width:0,height:0,name:"xs",sizes:{sm:640,md:768,lg:1024,xl:1280,"2xl":1536},lt:{sm:!0,md:!0,lg:!0,xl:!0,"2xl":!0},gt:{xs:!1,sm:!1,md:!1,lg:!1,xl:!1},xs:!0,sm:!1,md:!1,lg:!1,xl:!1,"2xl":!1}),f=()=>{const c=window.innerWidth,p=window.innerHeight;n.value.width!==c&&(n.value.width=c),n.value.height!==p&&(n.value.height=p);const i=n.value.sizes;n.value.gt.xs=c>=i.sm,n.value.gt.sm=c>=i.md,n.value.gt.md=c>=i.lg,n.value.gt.lg=c>=i.xl,n.value.gt.xl=c>=i["2xl"],n.value.lt.sm=c<i.sm,n.value.lt.md=c<i.md,n.value.lt.lg=c<i.lg,n.value.lt.xl=c<i.xl,n.value.lt["2xl"]=c<i["2xl"],n.value.xs=n.value.lt.sm,n.value.sm=n.value.gt.xs===!0&&n.value.lt.md===!0,n.value.md=n.value.gt.sm===!0&&n.value.lt.lg===!0,n.value.lg=n.value.gt.md===!0&&n.value.lt.xl===!0,n.value.xl=n.value.gt.lg,n.value["2xl"]=n.value.gt.xl;const s=n.value.xs===!0&&"xs"||n.value.sm===!0&&"sm"||n.value.md===!0&&"md"||n.value.lg===!0&&"lg"||n.value.xl===!0&&"xl"||"2xl";s!==n.value.name&&(n.value.name=s)};return f(),window.addEventListener("resize",()=>f()),e.onBeforeUnmount(()=>window.removeEventListener("resize",()=>f())),n}const Se={"aria-label":"Caminho"},Ce={class:"breadcrumb"},Ee={class:"breadcrumb-item"},Oe=e.createElementVNode("i",{class:"fa fa-home","aria-hidden":"true"},null,-1),Ae={key:0,class:"breadcrumb-item last:ui-flex last:ui-gap-2 last:ui-items-center"},Ne={key:0},Pe={key:2,class:"ui-bg-primary ui-text-white ui-rounded-xl ui-py-1 ui-px-3 ui-text-xs ui-w-22 ui-uppercase"},De=e.defineComponent({__name:"UiBreadcrumb",props:{breadcrumbs:null},setup(n){return(f,c)=>{const p=e.resolveDirective("tooltip");return e.openBlock(),e.createElementBlock("nav",Se,[e.createElementVNode("ol",Ce,[e.withDirectives((e.openBlock(),e.createElementBlock("li",Ee,[Oe,(e.openBlock(),e.createBlock(e.resolveDynamicComponent(e.unref(exports.legacy)?"a":"router-link"),e.normalizeProps(e.guardReactiveProps(e.unref(exports.legacy)?{href:"/"}:{to:"/"})),{default:e.withCtx(()=>[e.createTextVNode("Início")]),_:1},16))])),[[p,{content:"Ir para o Início",placement:"bottom"}]]),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(n.breadcrumbs,(i,s)=>(e.openBlock(),e.createElementBlock(e.Fragment,{key:s},[i.title?e.withDirectives((e.openBlock(),e.createElementBlock("li",Ae,[s+1===n.breadcrumbs.length?(e.openBlock(),e.createElementBlock("span",Ne,e.toDisplayString(i.title),1)):(e.openBlock(),e.createBlock(e.resolveDynamicComponent(e.unref(exports.legacy)?"a":"router-link"),e.normalizeProps(e.mergeProps({key:1},e.unref(exports.legacy)?{href:i.path}:{to:i.path})),{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(i.title),1)]),_:2},1040)),i.isBeta?e.withDirectives((e.openBlock(),e.createElementBlock("span",Pe,[e.createTextVNode(" Beta ")])),[[p,"Versão de testes"]]):e.createCommentVNode("",!0)])),[[p,{content:`Ir para ${i.title}`,placement:"bottom",disabled:s+1===n.breadcrumbs.length}]]):e.createCommentVNode("",!0)],64))),128))])])}}}),Le={class:"ieducar-footer"},Te=["innerHTML"],$e=e.defineComponent({__name:"UiFooter",props:{text:{default:""}},setup(n){return(f,c)=>(e.openBlock(),e.createElementBlock("footer",Le,[e.createElementVNode("div",{class:"ieducar-footer-content",innerHTML:n.text},null,8,Te)]))}}),Fe="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABQAAAAVCAYAAABG1c6oAAAABGdBTUEAALGPC/xhBQAAASpJREFUOBGlk0FKA0EQRbuFKJIL6E7IRsQruAlk5851DuIZsnLvMrlHcglx78YbqAQc3wcnZKqrehot+Ez3r/9/KpNKSg3Vdd2p0CBNeUxE0Ama11/ddc75e8wT9gmbgUfQl86z0BA1ME3AU5/iPNWbRP6CR7xxQiy1LowegWtunZX73Gbohdu6t0TlXmi9wNtKgG0VWi/w0roq90LrBV5UAmyr0A4Wm5evVfgCA96mHN07zmcs+77n7IR3NFrDlCGtPIeygQ+HTvvB9/B1p+C9snNRS55p8fmQq8jRwK8GgRgWYN9gjCTyLhSaOVzxfAHn4D/1gflGP8ob2AKtgFefHmk4ebdAWXEx/Q6swXHtYkdKdm2s9hlC/9cN6CcV9/ditCXQpMJyLOkHMLaZm/3CQvIAAAAASUVORK5CYII=",Me="data:image/png;base64,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",Ie={id:"i-educar-navbar",class:"ui-flex ui-justify-between ui-bg-primary"},Ue={class:"ieducar-header-logo ui-flex"},je={class:"ui-p-2 lg:ui-hidden"},Re={key:0,class:"ui-flex ui-items-center ui-gap-4"},ze=e.createElementVNode("a",{href:"/notificacoes",class:"ieducar-header-notifications"},[e.createElementVNode("img",{id:"notificacao",alt:"Notificação",src:Fe})],-1),Ke=e.createElementVNode("a",{href:"/intranet/meusdados.php",title:"Meus dados",class:"ieducar-header-avatar ui-hidden lg:ui-block"},[e.createElementVNode("img",{class:"ui-h-9",src:Me,alt:"Perfil"})],-1),qe={class:"ieducar-header-dropdown ui-pr-4"},He={class:"ieducar-header-dropdown-button"},Je={class:"ieducar-header-dropdown-content"},Ge=["href"],Ze=e.defineComponent({__name:"UiHeader",props:{menus:null,user:null},setup(n){const f=()=>{var c;(c=document.querySelector("body"))==null||c.classList.add("sidebar-open")};return(c,p)=>(e.openBlock(),e.createElementBlock("header",Ie,[e.createElementVNode("div",Ue,[e.createElementVNode("div",je,[e.createVNode(w._sfc_main$1,{icon:"fa-bars",class:"ui-py-2 ui-px-3 ui-bg-white ui-text-primary",onClick:f})]),(e.openBlock(),e.createBlock(e.resolveDynamicComponent(e.unref(exports.legacy)?"a":"router-link"),e.mergeProps({class:"ui-hidden lg:ui-block"},e.unref(exports.legacy)?{href:"/"}:{to:"/"}),{default:e.withCtx(()=>[e.createTextVNode("i-Educar")]),_:1},16))]),n.user?(e.openBlock(),e.createElementBlock("div",Re,[ze,Ke,e.createElementVNode("div",qe,[e.createElementVNode("div",He,e.toDisplayString(n.user.name),1),e.createElementVNode("div",Je,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(n.menus,(i,s)=>(e.openBlock(),e.createElementBlock("a",{key:s,href:i.href},e.toDisplayString(i.label),9,Ge))),128))])])])):e.createCommentVNode("",!0)]))}});const We=w.axios.create({baseURL:String({}.VITE_APP_API_URL||"")}),Xe=n=>We.get("/module/Api/menu",{params:{query:n.query,oper:"get",resource:"menu-search"}}).then(f=>{const{menus:c}=f.data;return c.map(p=>({...p,value:p.link}))});/*! | ||
* vue-router v4.1.6 | ||
* (c) 2022 Eduardo San Martin Morote | ||
* @license MIT | ||
*/var H;(function(n){n.pop="pop",n.push="push"})(H||(H={}));var J;(function(n){n.back="back",n.forward="forward",n.unknown=""})(J||(J={}));Symbol(process.env.NODE_ENV!=="production"?"navigation failure":"");var G;(function(n){n[n.aborted=4]="aborted",n[n.cancelled=8]="cancelled",n[n.duplicated=16]="duplicated"})(G||(G={}));Symbol(process.env.NODE_ENV!=="production"?"router view location matched":"");Symbol(process.env.NODE_ENV!=="production"?"router view depth":"");const Ye=Symbol(process.env.NODE_ENV!=="production"?"router":"");Symbol(process.env.NODE_ENV!=="production"?"route location":"");Symbol(process.env.NODE_ENV!=="production"?"router view location":"");function Qe(){return e.inject(Ye)}var M={},et={get exports(){return M},set exports(n){M=n}};(function(n,f){(function(c,p){n.exports=p(e)})(typeof self<"u"?self:w.commonjsGlobal,function(c){return(()=>{var p={646:o=>{o.exports=function(h){if(Array.isArray(h)){for(var d=0,u=new Array(h.length);d<h.length;d++)u[d]=h[d];return u}}},713:o=>{o.exports=function(h,d,u){return d in h?Object.defineProperty(h,d,{value:u,enumerable:!0,configurable:!0,writable:!0}):h[d]=u,h}},860:o=>{o.exports=function(h){if(Symbol.iterator in Object(h)||Object.prototype.toString.call(h)==="[object Arguments]")return Array.from(h)}},206:o=>{o.exports=function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}},319:(o,h,d)=>{var u=d(646),g=d(860),k=d(206);o.exports=function(B){return u(B)||g(B)||k()}},8:o=>{function h(d){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?o.exports=h=function(u){return typeof u}:o.exports=h=function(u){return u&&typeof Symbol=="function"&&u.constructor===Symbol&&u!==Symbol.prototype?"symbol":typeof u},h(d)}o.exports=h},744:(o,h)=>{h.Z=(d,u)=>{for(const[g,k]of u)d[g]=k;return d}},748:o=>{o.exports=c}},i={};function s(o){var h=i[o];if(h!==void 0)return h.exports;var d=i[o]={exports:{}};return p[o](d,d.exports,s),d.exports}s.n=o=>{var h=o&&o.__esModule?()=>o.default:()=>o;return s.d(h,{a:h}),h},s.d=(o,h)=>{for(var d in h)s.o(h,d)&&!s.o(o,d)&&Object.defineProperty(o,d,{enumerable:!0,get:h[d]})},s.o=(o,h)=>Object.prototype.hasOwnProperty.call(o,h),s.r=o=>{typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(o,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(o,"__esModule",{value:!0})};var v={};return(()=>{s.r(v),s.d(v,{VueSelect:()=>me,default:()=>ve,mixins:()=>ge});var o=s(748),h=["dir"],d=["id","aria-expanded","aria-owns"],u={ref:"selectedOptions",class:"vs__selected-options"},g=["disabled","title","aria-label","onClick"],k={ref:"actions",class:"vs__actions"},B=["disabled"],x={class:"vs__spinner"},S=["id"],O=["id","aria-selected","onMouseover","onClick"],T={key:0,class:"vs__no-options"},L=(0,o.createTextVNode)(" Sorry, no matching options. "),A=["id"],_=s(319),C=s.n(_),te=s(8),N=s.n(te),oe=s(713),$=s.n(oe);const U={props:{autoscroll:{type:Boolean,default:!0}},watch:{typeAheadPointer:function(){this.autoscroll&&this.maybeAdjustScroll()},open:function(t){var l=this;this.autoscroll&&t&&this.$nextTick(function(){return l.maybeAdjustScroll()})}},methods:{maybeAdjustScroll:function(){var t,l=((t=this.$refs.dropdownMenu)===null||t===void 0?void 0:t.children[this.typeAheadPointer])||!1;if(l){var r=this.getDropdownViewport(),m=l.getBoundingClientRect(),b=m.top,a=m.bottom,D=m.height;if(b<r.top)return this.$refs.dropdownMenu.scrollTop=l.offsetTop;if(a>r.bottom)return this.$refs.dropdownMenu.scrollTop=l.offsetTop-(r.height-D)}},getDropdownViewport:function(){return this.$refs.dropdownMenu?this.$refs.dropdownMenu.getBoundingClientRect():{height:0,top:0,bottom:0}}}},j={data:function(){return{typeAheadPointer:-1}},watch:{filteredOptions:function(){for(var t=0;t<this.filteredOptions.length;t++)if(this.selectable(this.filteredOptions[t])){this.typeAheadPointer=t;break}},open:function(t){t&&this.typeAheadToLastSelected()},selectedValue:function(){this.open&&this.typeAheadToLastSelected()}},methods:{typeAheadUp:function(){for(var t=this.typeAheadPointer-1;t>=0;t--)if(this.selectable(this.filteredOptions[t])){this.typeAheadPointer=t;break}},typeAheadDown:function(){for(var t=this.typeAheadPointer+1;t<this.filteredOptions.length;t++)if(this.selectable(this.filteredOptions[t])){this.typeAheadPointer=t;break}},typeAheadSelect:function(){var t=this.filteredOptions[this.typeAheadPointer];t&&this.selectable(t)&&this.select(t)},typeAheadToLastSelected:function(){this.typeAheadPointer=this.selectedValue.length!==0?this.filteredOptions.indexOf(this.selectedValue[this.selectedValue.length-1]):-1}}},R={props:{loading:{type:Boolean,default:!1}},data:function(){return{mutableLoading:!1}},watch:{search:function(){this.$emit("search",this.search,this.toggleLoading)},loading:function(t){this.mutableLoading=t}},methods:{toggleLoading:function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:null;return this.mutableLoading=t??!this.mutableLoading}}};var ne={xmlns:"http://www.w3.org/2000/svg",width:"10",height:"10"},re=[(0,o.createElementVNode)("path",{d:"M6.895455 5l2.842897-2.842898c.348864-.348863.348864-.914488 0-1.263636L9.106534.261648c-.348864-.348864-.914489-.348864-1.263636 0L5 3.104545 2.157102.261648c-.348863-.348864-.914488-.348864-1.263636 0L.261648.893466c-.348864.348864-.348864.914489 0 1.263636L3.104545 5 .261648 7.842898c-.348864.348863-.348864.914488 0 1.263636l.631818.631818c.348864.348864.914773.348864 1.263636 0L5 6.895455l2.842898 2.842897c.348863.348864.914772.348864 1.263636 0l.631818-.631818c.348864-.348864.348864-.914489 0-1.263636L6.895455 5z"},null,-1)],F=s(744);const le={},ie=(0,F.Z)(le,[["render",function(t,l){return(0,o.openBlock)(),(0,o.createElementBlock)("svg",ne,re)}]]);var se={xmlns:"http://www.w3.org/2000/svg",width:"14",height:"10"},ae=[(0,o.createElementVNode)("path",{d:"M9.211364 7.59931l4.48338-4.867229c.407008-.441854.407008-1.158247 0-1.60046l-.73712-.80023c-.407008-.441854-1.066904-.441854-1.474243 0L7 5.198617 2.51662.33139c-.407008-.441853-1.066904-.441853-1.474243 0l-.737121.80023c-.407008.441854-.407008 1.158248 0 1.600461l4.48338 4.867228L7 10l2.211364-2.40069z"},null,-1)];const ce={},z={Deselect:ie,OpenIndicator:(0,F.Z)(ce,[["render",function(t,l){return(0,o.openBlock)(),(0,o.createElementBlock)("svg",se,ae)}]])},ue={mounted:function(t,l){var r=l.instance;if(r.appendToBody){var m=r.$refs.toggle.getBoundingClientRect(),b=m.height,a=m.top,D=m.left,y=m.width,V=window.scrollX||window.pageXOffset,E=window.scrollY||window.pageYOffset;t.unbindPosition=r.calculatePosition(t,r,{width:y+"px",left:V+D+"px",top:E+a+b+"px"}),document.body.appendChild(t)}},unmounted:function(t,l){l.instance.appendToBody&&(t.unbindPosition&&typeof t.unbindPosition=="function"&&t.unbindPosition(),t.parentNode&&t.parentNode.removeChild(t))}},de=function(t){var l={};return Object.keys(t).sort().forEach(function(r){l[r]=t[r]}),JSON.stringify(l)};var pe=0;const he=function(){return++pe};function K(t,l){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var m=Object.getOwnPropertySymbols(t);l&&(m=m.filter(function(b){return Object.getOwnPropertyDescriptor(t,b).enumerable})),r.push.apply(r,m)}return r}function P(t){for(var l=1;l<arguments.length;l++){var r=arguments[l]!=null?arguments[l]:{};l%2?K(Object(r),!0).forEach(function(m){$()(t,m,r[m])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):K(Object(r)).forEach(function(m){Object.defineProperty(t,m,Object.getOwnPropertyDescriptor(r,m))})}return t}const fe={components:P({},z),directives:{appendToBody:ue},mixins:[U,j,R],emits:["open","close","update:modelValue","search","search:compositionstart","search:compositionend","search:keydown","search:blur","search:focus","search:input","option:created","option:selecting","option:selected","option:deselecting","option:deselected"],props:{modelValue:{},components:{type:Object,default:function(){return{}}},options:{type:Array,default:function(){return[]}},disabled:{type:Boolean,default:!1},clearable:{type:Boolean,default:!0},deselectFromDropdown:{type:Boolean,default:!1},searchable:{type:Boolean,default:!0},multiple:{type:Boolean,default:!1},placeholder:{type:String,default:""},transition:{type:String,default:"vs__fade"},clearSearchOnSelect:{type:Boolean,default:!0},closeOnSelect:{type:Boolean,default:!0},label:{type:String,default:"label"},autocomplete:{type:String,default:"off"},reduce:{type:Function,default:function(t){return t}},selectable:{type:Function,default:function(t){return!0}},getOptionLabel:{type:Function,default:function(t){return N()(t)==="object"?t.hasOwnProperty(this.label)?t[this.label]:console.warn('[vue-select warn]: Label key "option.'.concat(this.label,'" does not')+" exist in options object ".concat(JSON.stringify(t),`. | ||
*/var q;(function(n){n.pop="pop",n.push="push"})(q||(q={}));var H;(function(n){n.back="back",n.forward="forward",n.unknown=""})(H||(H={}));Symbol(process.env.NODE_ENV!=="production"?"navigation failure":"");var J;(function(n){n[n.aborted=4]="aborted",n[n.cancelled=8]="cancelled",n[n.duplicated=16]="duplicated"})(J||(J={}));Symbol(process.env.NODE_ENV!=="production"?"router view location matched":"");Symbol(process.env.NODE_ENV!=="production"?"router view depth":"");const Ye=Symbol(process.env.NODE_ENV!=="production"?"router":"");Symbol(process.env.NODE_ENV!=="production"?"route location":"");Symbol(process.env.NODE_ENV!=="production"?"router view location":"");function Qe(){return e.inject(Ye)}var X={exports:{}};(function(n,f){(function(c,p){n.exports=p(e)})(typeof self<"u"?self:w.commonjsGlobal,function(c){return(()=>{var p={646:o=>{o.exports=function(h){if(Array.isArray(h)){for(var d=0,u=new Array(h.length);d<h.length;d++)u[d]=h[d];return u}}},713:o=>{o.exports=function(h,d,u){return d in h?Object.defineProperty(h,d,{value:u,enumerable:!0,configurable:!0,writable:!0}):h[d]=u,h}},860:o=>{o.exports=function(h){if(Symbol.iterator in Object(h)||Object.prototype.toString.call(h)==="[object Arguments]")return Array.from(h)}},206:o=>{o.exports=function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}},319:(o,h,d)=>{var u=d(646),g=d(860),k=d(206);o.exports=function(B){return u(B)||g(B)||k()}},8:o=>{function h(d){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?o.exports=h=function(u){return typeof u}:o.exports=h=function(u){return u&&typeof Symbol=="function"&&u.constructor===Symbol&&u!==Symbol.prototype?"symbol":typeof u},h(d)}o.exports=h},744:(o,h)=>{h.Z=(d,u)=>{for(const[g,k]of u)d[g]=k;return d}},748:o=>{o.exports=c}},i={};function s(o){var h=i[o];if(h!==void 0)return h.exports;var d=i[o]={exports:{}};return p[o](d,d.exports,s),d.exports}s.n=o=>{var h=o&&o.__esModule?()=>o.default:()=>o;return s.d(h,{a:h}),h},s.d=(o,h)=>{for(var d in h)s.o(h,d)&&!s.o(o,d)&&Object.defineProperty(o,d,{enumerable:!0,get:h[d]})},s.o=(o,h)=>Object.prototype.hasOwnProperty.call(o,h),s.r=o=>{typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(o,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(o,"__esModule",{value:!0})};var v={};return(()=>{s.r(v),s.d(v,{VueSelect:()=>me,default:()=>ve,mixins:()=>ge});var o=s(748),h=["dir"],d=["id","aria-expanded","aria-owns"],u={ref:"selectedOptions",class:"vs__selected-options"},g=["disabled","title","aria-label","onClick"],k={ref:"actions",class:"vs__actions"},B=["disabled"],x={class:"vs__spinner"},S=["id"],O=["id","aria-selected","onMouseover","onClick"],T={key:0,class:"vs__no-options"},L=(0,o.createTextVNode)(" Sorry, no matching options. "),A=["id"],_=s(319),C=s.n(_),te=s(8),N=s.n(te),oe=s(713),$=s.n(oe);const I={props:{autoscroll:{type:Boolean,default:!0}},watch:{typeAheadPointer:function(){this.autoscroll&&this.maybeAdjustScroll()},open:function(t){var l=this;this.autoscroll&&t&&this.$nextTick(function(){return l.maybeAdjustScroll()})}},methods:{maybeAdjustScroll:function(){var t,l=((t=this.$refs.dropdownMenu)===null||t===void 0?void 0:t.children[this.typeAheadPointer])||!1;if(l){var r=this.getDropdownViewport(),m=l.getBoundingClientRect(),b=m.top,a=m.bottom,D=m.height;if(b<r.top)return this.$refs.dropdownMenu.scrollTop=l.offsetTop;if(a>r.bottom)return this.$refs.dropdownMenu.scrollTop=l.offsetTop-(r.height-D)}},getDropdownViewport:function(){return this.$refs.dropdownMenu?this.$refs.dropdownMenu.getBoundingClientRect():{height:0,top:0,bottom:0}}}},U={data:function(){return{typeAheadPointer:-1}},watch:{filteredOptions:function(){for(var t=0;t<this.filteredOptions.length;t++)if(this.selectable(this.filteredOptions[t])){this.typeAheadPointer=t;break}},open:function(t){t&&this.typeAheadToLastSelected()},selectedValue:function(){this.open&&this.typeAheadToLastSelected()}},methods:{typeAheadUp:function(){for(var t=this.typeAheadPointer-1;t>=0;t--)if(this.selectable(this.filteredOptions[t])){this.typeAheadPointer=t;break}},typeAheadDown:function(){for(var t=this.typeAheadPointer+1;t<this.filteredOptions.length;t++)if(this.selectable(this.filteredOptions[t])){this.typeAheadPointer=t;break}},typeAheadSelect:function(){var t=this.filteredOptions[this.typeAheadPointer];t&&this.selectable(t)&&this.select(t)},typeAheadToLastSelected:function(){this.typeAheadPointer=this.selectedValue.length!==0?this.filteredOptions.indexOf(this.selectedValue[this.selectedValue.length-1]):-1}}},j={props:{loading:{type:Boolean,default:!1}},data:function(){return{mutableLoading:!1}},watch:{search:function(){this.$emit("search",this.search,this.toggleLoading)},loading:function(t){this.mutableLoading=t}},methods:{toggleLoading:function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:null;return this.mutableLoading=t??!this.mutableLoading}}};var ne={xmlns:"http://www.w3.org/2000/svg",width:"10",height:"10"},re=[(0,o.createElementVNode)("path",{d:"M6.895455 5l2.842897-2.842898c.348864-.348863.348864-.914488 0-1.263636L9.106534.261648c-.348864-.348864-.914489-.348864-1.263636 0L5 3.104545 2.157102.261648c-.348863-.348864-.914488-.348864-1.263636 0L.261648.893466c-.348864.348864-.348864.914489 0 1.263636L3.104545 5 .261648 7.842898c-.348864.348863-.348864.914488 0 1.263636l.631818.631818c.348864.348864.914773.348864 1.263636 0L5 6.895455l2.842898 2.842897c.348863.348864.914772.348864 1.263636 0l.631818-.631818c.348864-.348864.348864-.914489 0-1.263636L6.895455 5z"},null,-1)],F=s(744);const le={},ie=(0,F.Z)(le,[["render",function(t,l){return(0,o.openBlock)(),(0,o.createElementBlock)("svg",ne,re)}]]);var se={xmlns:"http://www.w3.org/2000/svg",width:"14",height:"10"},ae=[(0,o.createElementVNode)("path",{d:"M9.211364 7.59931l4.48338-4.867229c.407008-.441854.407008-1.158247 0-1.60046l-.73712-.80023c-.407008-.441854-1.066904-.441854-1.474243 0L7 5.198617 2.51662.33139c-.407008-.441853-1.066904-.441853-1.474243 0l-.737121.80023c-.407008.441854-.407008 1.158248 0 1.600461l4.48338 4.867228L7 10l2.211364-2.40069z"},null,-1)];const ce={},R={Deselect:ie,OpenIndicator:(0,F.Z)(ce,[["render",function(t,l){return(0,o.openBlock)(),(0,o.createElementBlock)("svg",se,ae)}]])},ue={mounted:function(t,l){var r=l.instance;if(r.appendToBody){var m=r.$refs.toggle.getBoundingClientRect(),b=m.height,a=m.top,D=m.left,y=m.width,V=window.scrollX||window.pageXOffset,E=window.scrollY||window.pageYOffset;t.unbindPosition=r.calculatePosition(t,r,{width:y+"px",left:V+D+"px",top:E+a+b+"px"}),document.body.appendChild(t)}},unmounted:function(t,l){l.instance.appendToBody&&(t.unbindPosition&&typeof t.unbindPosition=="function"&&t.unbindPosition(),t.parentNode&&t.parentNode.removeChild(t))}},de=function(t){var l={};return Object.keys(t).sort().forEach(function(r){l[r]=t[r]}),JSON.stringify(l)};var pe=0;const he=function(){return++pe};function z(t,l){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var m=Object.getOwnPropertySymbols(t);l&&(m=m.filter(function(b){return Object.getOwnPropertyDescriptor(t,b).enumerable})),r.push.apply(r,m)}return r}function P(t){for(var l=1;l<arguments.length;l++){var r=arguments[l]!=null?arguments[l]:{};l%2?z(Object(r),!0).forEach(function(m){$()(t,m,r[m])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):z(Object(r)).forEach(function(m){Object.defineProperty(t,m,Object.getOwnPropertyDescriptor(r,m))})}return t}const fe={components:P({},R),directives:{appendToBody:ue},mixins:[I,U,j],emits:["open","close","update:modelValue","search","search:compositionstart","search:compositionend","search:keydown","search:blur","search:focus","search:input","option:created","option:selecting","option:selected","option:deselecting","option:deselected"],props:{modelValue:{},components:{type:Object,default:function(){return{}}},options:{type:Array,default:function(){return[]}},disabled:{type:Boolean,default:!1},clearable:{type:Boolean,default:!0},deselectFromDropdown:{type:Boolean,default:!1},searchable:{type:Boolean,default:!0},multiple:{type:Boolean,default:!1},placeholder:{type:String,default:""},transition:{type:String,default:"vs__fade"},clearSearchOnSelect:{type:Boolean,default:!0},closeOnSelect:{type:Boolean,default:!0},label:{type:String,default:"label"},autocomplete:{type:String,default:"off"},reduce:{type:Function,default:function(t){return t}},selectable:{type:Function,default:function(t){return!0}},getOptionLabel:{type:Function,default:function(t){return N()(t)==="object"?t.hasOwnProperty(this.label)?t[this.label]:console.warn('[vue-select warn]: Label key "option.'.concat(this.label,'" does not')+" exist in options object ".concat(JSON.stringify(t),`. | ||
`)+"https://vue-select.org/api/props.html#getoptionlabel"):t}},getOptionKey:{type:Function,default:function(t){if(N()(t)!=="object")return t;try{return t.hasOwnProperty("id")?t.id:de(t)}catch(l){return console.warn(`[vue-select warn]: Could not stringify this option to generate unique key. Please provide'getOptionKey' prop to return a unique key for each option. | ||
https://vue-select.org/api/props.html#getoptionkey`,t,l)}}},onTab:{type:Function,default:function(){this.selectOnTab&&!this.isComposing&&this.typeAheadSelect()}},taggable:{type:Boolean,default:!1},tabindex:{type:Number,default:null},pushTags:{type:Boolean,default:!1},filterable:{type:Boolean,default:!0},filterBy:{type:Function,default:function(t,l,r){return(l||"").toLocaleLowerCase().indexOf(r.toLocaleLowerCase())>-1}},filter:{type:Function,default:function(t,l){var r=this;return t.filter(function(m){var b=r.getOptionLabel(m);return typeof b=="number"&&(b=b.toString()),r.filterBy(m,b,l)})}},createOption:{type:Function,default:function(t){return N()(this.optionList[0])==="object"?$()({},this.label,t):t}},resetOnOptionsChange:{default:!1,validator:function(t){return["function","boolean"].includes(N()(t))}},clearSearchOnBlur:{type:Function,default:function(t){var l=t.clearSearchOnSelect,r=t.multiple;return l&&!r}},noDrop:{type:Boolean,default:!1},inputId:{type:String},dir:{type:String,default:"auto"},selectOnTab:{type:Boolean,default:!1},selectOnKeyCodes:{type:Array,default:function(){return[13]}},searchInputQuerySelector:{type:String,default:"[type=search]"},mapKeydown:{type:Function,default:function(t,l){return t}},appendToBody:{type:Boolean,default:!1},calculatePosition:{type:Function,default:function(t,l,r){var m=r.width,b=r.top,a=r.left;t.style.top=b,t.style.left=a,t.style.width=m}},dropdownShouldOpen:{type:Function,default:function(t){var l=t.noDrop,r=t.open,m=t.mutableLoading;return!l&&r&&!m}},uid:{type:[String,Number],default:function(){return he()}}},data:function(){return{search:"",open:!1,isComposing:!1,pushedTags:[],_value:[],deselectButtons:[]}},computed:{isReducingValues:function(){return this.$props.reduce!==this.$options.props.reduce.default},isTrackingValues:function(){return this.modelValue===void 0||this.isReducingValues},selectedValue:function(){var t=this.modelValue;return this.isTrackingValues&&(t=this.$data._value),t!=null?[].concat(t):[]},optionList:function(){return this.options.concat(this.pushTags?this.pushedTags:[])},searchEl:function(){return this.$slots.search?this.$refs.selectedOptions.querySelector(this.searchInputQuerySelector):this.$refs.search},scope:function(){var t=this,l={search:this.search,loading:this.loading,searching:this.searching,filteredOptions:this.filteredOptions};return{search:{attributes:P({disabled:this.disabled,placeholder:this.searchPlaceholder,tabindex:this.tabindex,readonly:!this.searchable,id:this.inputId,"aria-autocomplete":"list","aria-labelledby":"vs".concat(this.uid,"__combobox"),"aria-controls":"vs".concat(this.uid,"__listbox"),ref:"search",type:"search",autocomplete:this.autocomplete,value:this.search},this.dropdownOpen&&this.filteredOptions[this.typeAheadPointer]?{"aria-activedescendant":"vs".concat(this.uid,"__option-").concat(this.typeAheadPointer)}:{}),events:{compositionstart:function(){return t.isComposing=!0},compositionend:function(){return t.isComposing=!1},keydown:this.onSearchKeyDown,blur:this.onSearchBlur,focus:this.onSearchFocus,input:function(r){return t.search=r.target.value}}},spinner:{loading:this.mutableLoading},noOptions:{search:this.search,loading:this.mutableLoading,searching:this.searching},openIndicator:{attributes:{ref:"openIndicator",role:"presentation",class:"vs__open-indicator"}},listHeader:l,listFooter:l,header:P({},l,{deselect:this.deselect}),footer:P({},l,{deselect:this.deselect})}},childComponents:function(){return P({},z,{},this.components)},stateClasses:function(){return{"vs--open":this.dropdownOpen,"vs--single":!this.multiple,"vs--multiple":this.multiple,"vs--searching":this.searching&&!this.noDrop,"vs--searchable":this.searchable&&!this.noDrop,"vs--unsearchable":!this.searchable,"vs--loading":this.mutableLoading,"vs--disabled":this.disabled}},searching:function(){return!!this.search},dropdownOpen:function(){return this.dropdownShouldOpen(this)},searchPlaceholder:function(){return this.isValueEmpty&&this.placeholder?this.placeholder:void 0},filteredOptions:function(){var t=[].concat(this.optionList);if(!this.filterable&&!this.taggable)return t;var l=this.search.length?this.filter(t,this.search,this):t;if(this.taggable&&this.search.length){var r=this.createOption(this.search);this.optionExists(r)||l.unshift(r)}return l},isValueEmpty:function(){return this.selectedValue.length===0},showClearButton:function(){return!this.multiple&&this.clearable&&!this.open&&!this.isValueEmpty}},watch:{options:function(t,l){var r=this;!this.taggable&&(typeof r.resetOnOptionsChange=="function"?r.resetOnOptionsChange(t,l,r.selectedValue):r.resetOnOptionsChange)&&this.clearSelection(),this.modelValue&&this.isTrackingValues&&this.setInternalValueFromOptions(this.modelValue)},modelValue:{immediate:!0,handler:function(t){this.isTrackingValues&&this.setInternalValueFromOptions(t)}},multiple:function(){this.clearSelection()},open:function(t){this.$emit(t?"open":"close")}},created:function(){this.mutableLoading=this.loading},methods:{setInternalValueFromOptions:function(t){var l=this;Array.isArray(t)?this.$data._value=t.map(function(r){return l.findOptionFromReducedValue(r)}):this.$data._value=this.findOptionFromReducedValue(t)},select:function(t){this.$emit("option:selecting",t),this.isOptionSelected(t)?this.deselectFromDropdown&&(this.clearable||this.multiple&&this.selectedValue.length>1)&&this.deselect(t):(this.taggable&&!this.optionExists(t)&&(this.$emit("option:created",t),this.pushTag(t)),this.multiple&&(t=this.selectedValue.concat(t)),this.updateValue(t),this.$emit("option:selected",t)),this.onAfterSelect(t)},deselect:function(t){var l=this;this.$emit("option:deselecting",t),this.updateValue(this.selectedValue.filter(function(r){return!l.optionComparator(r,t)})),this.$emit("option:deselected",t)},clearSelection:function(){this.updateValue(this.multiple?[]:null)},onAfterSelect:function(t){this.closeOnSelect&&(this.open=!this.open,this.searchEl.blur()),this.clearSearchOnSelect&&(this.search="")},updateValue:function(t){var l=this;this.modelValue===void 0&&(this.$data._value=t),t!==null&&(t=Array.isArray(t)?t.map(function(r){return l.reduce(r)}):this.reduce(t)),this.$emit("update:modelValue",t)},toggleDropdown:function(t){var l=t.target!==this.searchEl;l&&t.preventDefault();var r=[].concat(C()(this.deselectButtons||[]),C()([this.$refs.clearButton]));this.searchEl===void 0||r.filter(Boolean).some(function(m){return m.contains(t.target)||m===t.target})?t.preventDefault():this.open&&l?this.searchEl.blur():this.disabled||(this.open=!0,this.searchEl.focus())},isOptionSelected:function(t){var l=this;return this.selectedValue.some(function(r){return l.optionComparator(r,t)})},isOptionDeselectable:function(t){return this.isOptionSelected(t)&&this.deselectFromDropdown},optionComparator:function(t,l){return this.getOptionKey(t)===this.getOptionKey(l)},findOptionFromReducedValue:function(t){var l=this,r=[].concat(C()(this.options),C()(this.pushedTags)).filter(function(m){return JSON.stringify(l.reduce(m))===JSON.stringify(t)});return r.length===1?r[0]:r.find(function(m){return l.optionComparator(m,l.$data._value)})||t},closeSearchOptions:function(){this.open=!1,this.$emit("search:blur")},maybeDeleteValue:function(){if(!this.searchEl.value.length&&this.selectedValue&&this.selectedValue.length&&this.clearable){var t=null;this.multiple&&(t=C()(this.selectedValue.slice(0,this.selectedValue.length-1))),this.updateValue(t)}},optionExists:function(t){var l=this;return this.optionList.some(function(r){return l.optionComparator(r,t)})},normalizeOptionForSlot:function(t){return N()(t)==="object"?t:$()({},this.label,t)},pushTag:function(t){this.pushedTags.push(t)},onEscape:function(){this.search.length?this.search="":this.searchEl.blur()},onSearchBlur:function(){if(!this.mousedown||this.searching){var t=this.clearSearchOnSelect,l=this.multiple;return this.clearSearchOnBlur({clearSearchOnSelect:t,multiple:l})&&(this.search=""),void this.closeSearchOptions()}this.mousedown=!1,this.search.length!==0||this.options.length!==0||this.closeSearchOptions()},onSearchFocus:function(){this.open=!0,this.$emit("search:focus")},onMousedown:function(){this.mousedown=!0},onMouseUp:function(){this.mousedown=!1},onSearchKeyDown:function(t){var l=this,r=function(a){return a.preventDefault(),!l.isComposing&&l.typeAheadSelect()},m={8:function(a){return l.maybeDeleteValue()},9:function(a){return l.onTab()},27:function(a){return l.onEscape()},38:function(a){return a.preventDefault(),l.typeAheadUp()},40:function(a){return a.preventDefault(),l.typeAheadDown()}};this.selectOnKeyCodes.forEach(function(a){return m[a]=r});var b=this.mapKeydown(m,this);if(typeof b[t.keyCode]=="function")return b[t.keyCode](t)}}},q=(0,F.Z)(fe,[["render",function(t,l,r,m,b,a){var D=(0,o.resolveDirective)("append-to-body");return(0,o.openBlock)(),(0,o.createElementBlock)("div",{dir:r.dir,class:(0,o.normalizeClass)(["v-select",a.stateClasses])},[(0,o.renderSlot)(t.$slots,"header",(0,o.normalizeProps)((0,o.guardReactiveProps)(a.scope.header))),(0,o.createElementVNode)("div",{id:"vs".concat(r.uid,"__combobox"),ref:"toggle",class:"vs__dropdown-toggle",role:"combobox","aria-expanded":a.dropdownOpen.toString(),"aria-owns":"vs".concat(r.uid,"__listbox"),"aria-label":"Search for option",onMousedown:l[1]||(l[1]=function(y){return a.toggleDropdown(y)})},[(0,o.createElementVNode)("div",u,[((0,o.openBlock)(!0),(0,o.createElementBlock)(o.Fragment,null,(0,o.renderList)(a.selectedValue,function(y,V){return(0,o.renderSlot)(t.$slots,"selected-option-container",{option:a.normalizeOptionForSlot(y),deselect:a.deselect,multiple:r.multiple,disabled:r.disabled},function(){return[((0,o.openBlock)(),(0,o.createElementBlock)("span",{key:r.getOptionKey(y),class:"vs__selected"},[(0,o.renderSlot)(t.$slots,"selected-option",(0,o.normalizeProps)((0,o.guardReactiveProps)(a.normalizeOptionForSlot(y))),function(){return[(0,o.createTextVNode)((0,o.toDisplayString)(r.getOptionLabel(y)),1)]}),r.multiple?((0,o.openBlock)(),(0,o.createElementBlock)("button",{key:0,ref:function(E){return b.deselectButtons[V]=E},disabled:r.disabled,type:"button",class:"vs__deselect",title:"Deselect ".concat(r.getOptionLabel(y)),"aria-label":"Deselect ".concat(r.getOptionLabel(y)),onClick:function(E){return a.deselect(y)}},[((0,o.openBlock)(),(0,o.createBlock)((0,o.resolveDynamicComponent)(a.childComponents.Deselect)))],8,g)):(0,o.createCommentVNode)("",!0)]))]})}),256)),(0,o.renderSlot)(t.$slots,"search",(0,o.normalizeProps)((0,o.guardReactiveProps)(a.scope.search)),function(){return[(0,o.createElementVNode)("input",(0,o.mergeProps)({class:"vs__search"},a.scope.search.attributes,(0,o.toHandlers)(a.scope.search.events)),null,16)]})],512),(0,o.createElementVNode)("div",k,[(0,o.withDirectives)((0,o.createElementVNode)("button",{ref:"clearButton",disabled:r.disabled,type:"button",class:"vs__clear",title:"Clear Selected","aria-label":"Clear Selected",onClick:l[0]||(l[0]=function(){return a.clearSelection&&a.clearSelection.apply(a,arguments)})},[((0,o.openBlock)(),(0,o.createBlock)((0,o.resolveDynamicComponent)(a.childComponents.Deselect)))],8,B),[[o.vShow,a.showClearButton]]),(0,o.renderSlot)(t.$slots,"open-indicator",(0,o.normalizeProps)((0,o.guardReactiveProps)(a.scope.openIndicator)),function(){return[r.noDrop?(0,o.createCommentVNode)("",!0):((0,o.openBlock)(),(0,o.createBlock)((0,o.resolveDynamicComponent)(a.childComponents.OpenIndicator),(0,o.normalizeProps)((0,o.mergeProps)({key:0},a.scope.openIndicator.attributes)),null,16))]}),(0,o.renderSlot)(t.$slots,"spinner",(0,o.normalizeProps)((0,o.guardReactiveProps)(a.scope.spinner)),function(){return[(0,o.withDirectives)((0,o.createElementVNode)("div",x,"Loading...",512),[[o.vShow,t.mutableLoading]])]})],512)],40,d),(0,o.createVNode)(o.Transition,{name:r.transition},{default:(0,o.withCtx)(function(){return[a.dropdownOpen?(0,o.withDirectives)(((0,o.openBlock)(),(0,o.createElementBlock)("ul",{id:"vs".concat(r.uid,"__listbox"),ref:"dropdownMenu",key:"vs".concat(r.uid,"__listbox"),class:"vs__dropdown-menu",role:"listbox",tabindex:"-1",onMousedown:l[2]||(l[2]=(0,o.withModifiers)(function(){return a.onMousedown&&a.onMousedown.apply(a,arguments)},["prevent"])),onMouseup:l[3]||(l[3]=function(){return a.onMouseUp&&a.onMouseUp.apply(a,arguments)})},[(0,o.renderSlot)(t.$slots,"list-header",(0,o.normalizeProps)((0,o.guardReactiveProps)(a.scope.listHeader))),((0,o.openBlock)(!0),(0,o.createElementBlock)(o.Fragment,null,(0,o.renderList)(a.filteredOptions,function(y,V){return(0,o.openBlock)(),(0,o.createElementBlock)("li",{id:"vs".concat(r.uid,"__option-").concat(V),key:r.getOptionKey(y),role:"option",class:(0,o.normalizeClass)(["vs__dropdown-option",{"vs__dropdown-option--deselect":a.isOptionDeselectable(y)&&V===t.typeAheadPointer,"vs__dropdown-option--selected":a.isOptionSelected(y),"vs__dropdown-option--highlight":V===t.typeAheadPointer,"vs__dropdown-option--disabled":!r.selectable(y)}]),"aria-selected":V===t.typeAheadPointer||null,onMouseover:function(E){return r.selectable(y)?t.typeAheadPointer=V:null},onClick:(0,o.withModifiers)(function(E){return r.selectable(y)?a.select(y):null},["prevent","stop"])},[(0,o.renderSlot)(t.$slots,"option",(0,o.normalizeProps)((0,o.guardReactiveProps)(a.normalizeOptionForSlot(y))),function(){return[(0,o.createTextVNode)((0,o.toDisplayString)(r.getOptionLabel(y)),1)]})],42,O)}),128)),a.filteredOptions.length===0?((0,o.openBlock)(),(0,o.createElementBlock)("li",T,[(0,o.renderSlot)(t.$slots,"no-options",(0,o.normalizeProps)((0,o.guardReactiveProps)(a.scope.noOptions)),function(){return[L]})])):(0,o.createCommentVNode)("",!0),(0,o.renderSlot)(t.$slots,"list-footer",(0,o.normalizeProps)((0,o.guardReactiveProps)(a.scope.listFooter)))],40,S)),[[D]]):((0,o.openBlock)(),(0,o.createElementBlock)("ul",{key:1,id:"vs".concat(r.uid,"__listbox"),role:"listbox",style:{display:"none",visibility:"hidden"}},null,8,A))]}),_:3},8,["name"]),(0,o.renderSlot)(t.$slots,"footer",(0,o.normalizeProps)((0,o.guardReactiveProps)(a.scope.footer)))],10,h)}]]),me=q,ge={ajax:R,pointer:j,pointerScroll:U},ve=q})(),v})()})})(et);const tt={class:"quick-search"},ot={class:"ui-p-2 ui-text-gray-1"},nt=e.createElementVNode("span",null,null,-1),Y=e.defineComponent({__name:"UiQuickSearch",setup(n,{expose:f}){const c=Qe(),p=e.ref(null),i=e.ref(!1),s=e.computed(()=>v.value.length===0),v=e.ref([]),o=d=>{d.length<3||(i.value=!0,Xe({query:d}).then(u=>v.value=u).finally(()=>{i.value=!1}))},h=d=>{if(d.link){if(p.value=null,v.value=[],d.link.includes("/web")){c.push(d.link.split("/web")[1]);return}window.location.href=d.link}};return f({value:p}),(d,u)=>(e.openBlock(),e.createElementBlock("div",tt,[e.createVNode(e.unref(M.VueSelect),{modelValue:p.value,"onUpdate:modelValue":u[0]||(u[0]=g=>p.value=g),options:v.value,clearable:!1,searchable:"",loading:i.value,placeholder:"Informe o nome do menu",autoscroll:"",class:"x-select-quick-search",onSearch:o,"onOption:selected":h},{"no-options":e.withCtx(()=>[e.createElementVNode("div",ot,e.toDisplayString(e.unref(s)?"Nenhum resultado encontrado":"Digite para efetuar a busca"),1)]),"open-indicator":e.withCtx(()=>[nt]),spinner:e.withCtx(g=>[g.loading?(e.openBlock(),e.createBlock(w._sfc_main,{key:0,color:"primary",class:"ui-relative -ui-top-0.5 ui-ml-4 ui-h-4 ui-w-4"})):e.createCommentVNode("",!0)]),_:1},8,["modelValue","options","loading"])]))}}),rt={class:"ieducar-sidebar"},lt={id:"ieducar-quick-search",class:"ieducar-quick-search"},it={class:"ui-flex ui-justify-between"},st=e.createElementVNode("h4",{class:"ieducar-quick-search-title"},"Busca rápida",-1),at={class:"quick-search"},ct={class:"ieducar-sidebar-menu ui-px-4"},ut={key:0},dt=["href"],pt={key:1},ht=["href"],ft=e.defineComponent({__name:"UiSidebar",props:{menus:null},setup(n){const f=()=>{var c;(c=document.querySelector("body"))==null||c.classList.remove("sidebar-open")};return(c,p)=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createElementVNode("div",{class:"ieducar-backdrop","aria-hidden":!0,onClick:f}),e.createElementVNode("aside",rt,[e.createElementVNode("div",lt,[e.createElementVNode("div",it,[st,e.createVNode(w._sfc_main$1,{class:"lg:ui-hidden ui-rounded-[50%] ui-bg-primary ui-text-white ui-border-0",padding:"ui-px-1.5 ui-py-1",icon:"fa-close",onClick:f})]),e.createElementVNode("div",at,[e.createVNode(Y)])]),e.createElementVNode("ul",ct,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(n.menus,(i,s)=>{var v,o;return e.openBlock(),e.createElementBlock(e.Fragment,{key:s},[(v=i.menus)!=null&&v.length&&e.unref(exports.legacy)?(e.openBlock(),e.createElementBlock("li",ut,[e.createElementVNode("a",{href:i.href,class:e.normalizeClass({"item-active":i.current})},[e.createElementVNode("i",{class:e.normalizeClass(["fa",i.icon]),"aria-hidden":"true"},null,2),e.createTextVNode(" "+e.toDisplayString(i.label),1)],10,dt)])):(o=i.menus)!=null&&o.length&&!e.unref(exports.legacy)?(e.openBlock(),e.createElementBlock("li",pt,[i.href.includes("/web")?(e.openBlock(),e.createBlock(e.resolveDynamicComponent(e.unref(exports.legacy)?"a":"router-link"),{key:1,to:i.href.split("/web")[1],class:e.normalizeClass({"item-active":i.current})},{default:e.withCtx(()=>[e.createElementVNode("i",{class:e.normalizeClass(["fa",i.icon]),"aria-hidden":"true"},null,2),e.createTextVNode(" "+e.toDisplayString(i.label),1)]),_:2},1032,["to","class"])):(e.openBlock(),e.createElementBlock("a",{key:0,href:i.href,class:e.normalizeClass({"item-active":i.current})},[e.createElementVNode("i",{class:e.normalizeClass(["fa",i.icon]),"aria-hidden":"true"},null,2),e.createTextVNode(" "+e.toDisplayString(i.label),1)],10,ht))])):e.createCommentVNode("",!0)],64)}),128))])])],64))}}),mt={class:"ui-accordion"},gt=["href"],vt=["onClick"],yt={class:"ui-flex ui-gap-4"},bt={key:0},Q=e.defineComponent({__name:"UiAccordion",props:{options:{default:()=>[]},trackBy:{default:"label"}},setup(n){const f=n,c=e.ref(f.options.map(i=>({...i,show:!1}))),p=i=>{var s;i.href||(s=i.menus)!=null&&s.length&&(i.show=!i.show)};return(i,s)=>{const v=e.resolveComponent("ui-accordion",!0);return e.openBlock(),e.createElementBlock("ul",mt,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(c.value,(o,h)=>{var d;return e.openBlock(),e.createElementBlock("li",{key:h,class:e.normalizeClass(o.show?"active":"link")},[o.href?(e.openBlock(),e.createElementBlock("a",{key:0,href:o.href,class:"ui-flex ui-gap-4"},e.toDisplayString(o[n.trackBy]),9,gt)):(e.openBlock(),e.createElementBlock("div",{key:1,class:"ui-flex ui-justify-between",onClick:e.withModifiers(u=>p(o),["prevent","stop"])},[e.createElementVNode("div",yt,e.toDisplayString(o[n.trackBy]),1),(d=o.menus)!=null&&d.length?(e.openBlock(),e.createElementBlock("div",bt,[e.createElementVNode("i",{class:e.normalizeClass(["fa fa-chevron-down ui-duration-500 ui-ease-in-out",o.show?"ui-rotate-180":""])},null,2)])):e.createCommentVNode("",!0)],8,vt)),e.createVNode(e.Transition,{name:"fade"},{default:e.withCtx(()=>[o.show?(e.openBlock(),e.createBlock(v,{key:0,options:o.menus,"track-by":"label",class:"children"},null,8,["options"])):e.createCommentVNode("",!0)]),_:2},1024)],2)}),128))])}}}),kt={key:0},_t=["href"],Bt=["onClick"],Vt={key:1},wt=["href"],xt=["onClick"],St={class:"ui-mt-3"},Ct=e.defineComponent({__name:"UiTopMenu",props:{menus:null,submenu:{type:Boolean,default:!1}},setup(n){const f=X(),c=e.ref(!1),p=e.ref([]),i=e.ref(""),s=v=>{f.value.gt.md||(p.value=v.menus,i.value=v.label,c.value=!0)};return(v,o)=>{const h=e.resolveComponent("router-link"),d=e.resolveComponent("ui-top-menu",!0);return e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createElementVNode("ul",{class:e.normalizeClass({"ieducar-menu ui-overflow-x-auto lg:ui-overflow-x-visible":!n.submenu,"ieducar-sub-menu":n.submenu})},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(n.menus,(u,g)=>{var k,B,x,S;return e.openBlock(),e.createElementBlock(e.Fragment,{key:g},[((k=u.menus)!=null&&k.length||n.submenu)&&!e.unref(exports.legacy)?(e.openBlock(),e.createElementBlock("li",kt,[u.href&&!u.href.includes("/web")?(e.openBlock(),e.createElementBlock("a",{key:0,href:u.href},e.toDisplayString(u.label),9,_t)):u.href&&u.href.includes("/web")?(e.openBlock(),e.createBlock(h,{key:1,to:u.href.split("/web")[1]},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(u.label),1)]),_:2},1032,["to"])):(e.openBlock(),e.createElementBlock("span",{key:2,onClick:O=>s(u)},e.toDisplayString(u.label),9,Bt)),(B=u.menus)!=null&&B.length?(e.openBlock(),e.createElementBlock(e.Fragment,{key:3},[e.unref(f).gt.md?(e.openBlock(),e.createBlock(d,{key:0,menus:u.menus,submenu:""},null,8,["menus"])):e.createCommentVNode("",!0)],64)):e.createCommentVNode("",!0)])):((x=u.menus)!=null&&x.length||n.submenu)&&e.unref(exports.legacy)?(e.openBlock(),e.createElementBlock("li",Vt,[u.href?(e.openBlock(),e.createElementBlock("a",{key:0,href:u.href},e.toDisplayString(u.label),9,wt)):(e.openBlock(),e.createElementBlock("span",{key:1,onClick:O=>s(u)},e.toDisplayString(u.label),9,xt)),(S=u.menus)!=null&&S.length?(e.openBlock(),e.createElementBlock(e.Fragment,{key:2},[e.unref(f).gt.md?(e.openBlock(),e.createBlock(d,{key:0,menus:u.menus,submenu:""},null,8,["menus"])):e.createCommentVNode("",!0)],64)):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0)],64)}),128))],2),e.unref(f).gt.md?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(I,{key:0,modelValue:c.value,"onUpdate:modelValue":o[0]||(o[0]=u=>c.value=u),title:`Selecione em ${i.value}`},{default:e.withCtx(()=>[e.createElementVNode("div",St,[e.createVNode(Q,{options:p.value,"track-by":"label"},null,8,["options"])])]),_:1},8,["modelValue","title"]))],64)}}});var ee=(n=>(n[n.ADMIN=1]="ADMIN",n[n.INSTITUTIONAL=2]="INSTITUTIONAL",n[n.SCHOOLING=4]="SCHOOLING",n[n.LIBRARY=8]="LIBRARY",n))(ee||{});exports.legacy=!1;const Et=(n,f)=>{n&&f!=null&&f.legacy&&(exports.legacy=!0)};exports.UiAccordion=Q;exports.UiBreadcrumb=De;exports.UiFooter=$e;exports.UiHeader=Ze;exports.UiModal=I;exports.UiQuickSearch=Y;exports.UiSidebar=ft;exports.UiTopMenu=Ct;exports.UserLevel=ee;exports.XModal=Z;exports.install=Et;exports.useModal=xe;exports.usePortal=W;exports.useScreenSize=X; | ||
https://vue-select.org/api/props.html#getoptionkey`,t,l)}}},onTab:{type:Function,default:function(){this.selectOnTab&&!this.isComposing&&this.typeAheadSelect()}},taggable:{type:Boolean,default:!1},tabindex:{type:Number,default:null},pushTags:{type:Boolean,default:!1},filterable:{type:Boolean,default:!0},filterBy:{type:Function,default:function(t,l,r){return(l||"").toLocaleLowerCase().indexOf(r.toLocaleLowerCase())>-1}},filter:{type:Function,default:function(t,l){var r=this;return t.filter(function(m){var b=r.getOptionLabel(m);return typeof b=="number"&&(b=b.toString()),r.filterBy(m,b,l)})}},createOption:{type:Function,default:function(t){return N()(this.optionList[0])==="object"?$()({},this.label,t):t}},resetOnOptionsChange:{default:!1,validator:function(t){return["function","boolean"].includes(N()(t))}},clearSearchOnBlur:{type:Function,default:function(t){var l=t.clearSearchOnSelect,r=t.multiple;return l&&!r}},noDrop:{type:Boolean,default:!1},inputId:{type:String},dir:{type:String,default:"auto"},selectOnTab:{type:Boolean,default:!1},selectOnKeyCodes:{type:Array,default:function(){return[13]}},searchInputQuerySelector:{type:String,default:"[type=search]"},mapKeydown:{type:Function,default:function(t,l){return t}},appendToBody:{type:Boolean,default:!1},calculatePosition:{type:Function,default:function(t,l,r){var m=r.width,b=r.top,a=r.left;t.style.top=b,t.style.left=a,t.style.width=m}},dropdownShouldOpen:{type:Function,default:function(t){var l=t.noDrop,r=t.open,m=t.mutableLoading;return!l&&r&&!m}},uid:{type:[String,Number],default:function(){return he()}}},data:function(){return{search:"",open:!1,isComposing:!1,pushedTags:[],_value:[],deselectButtons:[]}},computed:{isReducingValues:function(){return this.$props.reduce!==this.$options.props.reduce.default},isTrackingValues:function(){return this.modelValue===void 0||this.isReducingValues},selectedValue:function(){var t=this.modelValue;return this.isTrackingValues&&(t=this.$data._value),t!=null?[].concat(t):[]},optionList:function(){return this.options.concat(this.pushTags?this.pushedTags:[])},searchEl:function(){return this.$slots.search?this.$refs.selectedOptions.querySelector(this.searchInputQuerySelector):this.$refs.search},scope:function(){var t=this,l={search:this.search,loading:this.loading,searching:this.searching,filteredOptions:this.filteredOptions};return{search:{attributes:P({disabled:this.disabled,placeholder:this.searchPlaceholder,tabindex:this.tabindex,readonly:!this.searchable,id:this.inputId,"aria-autocomplete":"list","aria-labelledby":"vs".concat(this.uid,"__combobox"),"aria-controls":"vs".concat(this.uid,"__listbox"),ref:"search",type:"search",autocomplete:this.autocomplete,value:this.search},this.dropdownOpen&&this.filteredOptions[this.typeAheadPointer]?{"aria-activedescendant":"vs".concat(this.uid,"__option-").concat(this.typeAheadPointer)}:{}),events:{compositionstart:function(){return t.isComposing=!0},compositionend:function(){return t.isComposing=!1},keydown:this.onSearchKeyDown,blur:this.onSearchBlur,focus:this.onSearchFocus,input:function(r){return t.search=r.target.value}}},spinner:{loading:this.mutableLoading},noOptions:{search:this.search,loading:this.mutableLoading,searching:this.searching},openIndicator:{attributes:{ref:"openIndicator",role:"presentation",class:"vs__open-indicator"}},listHeader:l,listFooter:l,header:P({},l,{deselect:this.deselect}),footer:P({},l,{deselect:this.deselect})}},childComponents:function(){return P({},R,{},this.components)},stateClasses:function(){return{"vs--open":this.dropdownOpen,"vs--single":!this.multiple,"vs--multiple":this.multiple,"vs--searching":this.searching&&!this.noDrop,"vs--searchable":this.searchable&&!this.noDrop,"vs--unsearchable":!this.searchable,"vs--loading":this.mutableLoading,"vs--disabled":this.disabled}},searching:function(){return!!this.search},dropdownOpen:function(){return this.dropdownShouldOpen(this)},searchPlaceholder:function(){return this.isValueEmpty&&this.placeholder?this.placeholder:void 0},filteredOptions:function(){var t=[].concat(this.optionList);if(!this.filterable&&!this.taggable)return t;var l=this.search.length?this.filter(t,this.search,this):t;if(this.taggable&&this.search.length){var r=this.createOption(this.search);this.optionExists(r)||l.unshift(r)}return l},isValueEmpty:function(){return this.selectedValue.length===0},showClearButton:function(){return!this.multiple&&this.clearable&&!this.open&&!this.isValueEmpty}},watch:{options:function(t,l){var r=this;!this.taggable&&(typeof r.resetOnOptionsChange=="function"?r.resetOnOptionsChange(t,l,r.selectedValue):r.resetOnOptionsChange)&&this.clearSelection(),this.modelValue&&this.isTrackingValues&&this.setInternalValueFromOptions(this.modelValue)},modelValue:{immediate:!0,handler:function(t){this.isTrackingValues&&this.setInternalValueFromOptions(t)}},multiple:function(){this.clearSelection()},open:function(t){this.$emit(t?"open":"close")}},created:function(){this.mutableLoading=this.loading},methods:{setInternalValueFromOptions:function(t){var l=this;Array.isArray(t)?this.$data._value=t.map(function(r){return l.findOptionFromReducedValue(r)}):this.$data._value=this.findOptionFromReducedValue(t)},select:function(t){this.$emit("option:selecting",t),this.isOptionSelected(t)?this.deselectFromDropdown&&(this.clearable||this.multiple&&this.selectedValue.length>1)&&this.deselect(t):(this.taggable&&!this.optionExists(t)&&(this.$emit("option:created",t),this.pushTag(t)),this.multiple&&(t=this.selectedValue.concat(t)),this.updateValue(t),this.$emit("option:selected",t)),this.onAfterSelect(t)},deselect:function(t){var l=this;this.$emit("option:deselecting",t),this.updateValue(this.selectedValue.filter(function(r){return!l.optionComparator(r,t)})),this.$emit("option:deselected",t)},clearSelection:function(){this.updateValue(this.multiple?[]:null)},onAfterSelect:function(t){this.closeOnSelect&&(this.open=!this.open,this.searchEl.blur()),this.clearSearchOnSelect&&(this.search="")},updateValue:function(t){var l=this;this.modelValue===void 0&&(this.$data._value=t),t!==null&&(t=Array.isArray(t)?t.map(function(r){return l.reduce(r)}):this.reduce(t)),this.$emit("update:modelValue",t)},toggleDropdown:function(t){var l=t.target!==this.searchEl;l&&t.preventDefault();var r=[].concat(C()(this.deselectButtons||[]),C()([this.$refs.clearButton]));this.searchEl===void 0||r.filter(Boolean).some(function(m){return m.contains(t.target)||m===t.target})?t.preventDefault():this.open&&l?this.searchEl.blur():this.disabled||(this.open=!0,this.searchEl.focus())},isOptionSelected:function(t){var l=this;return this.selectedValue.some(function(r){return l.optionComparator(r,t)})},isOptionDeselectable:function(t){return this.isOptionSelected(t)&&this.deselectFromDropdown},optionComparator:function(t,l){return this.getOptionKey(t)===this.getOptionKey(l)},findOptionFromReducedValue:function(t){var l=this,r=[].concat(C()(this.options),C()(this.pushedTags)).filter(function(m){return JSON.stringify(l.reduce(m))===JSON.stringify(t)});return r.length===1?r[0]:r.find(function(m){return l.optionComparator(m,l.$data._value)})||t},closeSearchOptions:function(){this.open=!1,this.$emit("search:blur")},maybeDeleteValue:function(){if(!this.searchEl.value.length&&this.selectedValue&&this.selectedValue.length&&this.clearable){var t=null;this.multiple&&(t=C()(this.selectedValue.slice(0,this.selectedValue.length-1))),this.updateValue(t)}},optionExists:function(t){var l=this;return this.optionList.some(function(r){return l.optionComparator(r,t)})},normalizeOptionForSlot:function(t){return N()(t)==="object"?t:$()({},this.label,t)},pushTag:function(t){this.pushedTags.push(t)},onEscape:function(){this.search.length?this.search="":this.searchEl.blur()},onSearchBlur:function(){if(!this.mousedown||this.searching){var t=this.clearSearchOnSelect,l=this.multiple;return this.clearSearchOnBlur({clearSearchOnSelect:t,multiple:l})&&(this.search=""),void this.closeSearchOptions()}this.mousedown=!1,this.search.length!==0||this.options.length!==0||this.closeSearchOptions()},onSearchFocus:function(){this.open=!0,this.$emit("search:focus")},onMousedown:function(){this.mousedown=!0},onMouseUp:function(){this.mousedown=!1},onSearchKeyDown:function(t){var l=this,r=function(a){return a.preventDefault(),!l.isComposing&&l.typeAheadSelect()},m={8:function(a){return l.maybeDeleteValue()},9:function(a){return l.onTab()},27:function(a){return l.onEscape()},38:function(a){return a.preventDefault(),l.typeAheadUp()},40:function(a){return a.preventDefault(),l.typeAheadDown()}};this.selectOnKeyCodes.forEach(function(a){return m[a]=r});var b=this.mapKeydown(m,this);if(typeof b[t.keyCode]=="function")return b[t.keyCode](t)}}},K=(0,F.Z)(fe,[["render",function(t,l,r,m,b,a){var D=(0,o.resolveDirective)("append-to-body");return(0,o.openBlock)(),(0,o.createElementBlock)("div",{dir:r.dir,class:(0,o.normalizeClass)(["v-select",a.stateClasses])},[(0,o.renderSlot)(t.$slots,"header",(0,o.normalizeProps)((0,o.guardReactiveProps)(a.scope.header))),(0,o.createElementVNode)("div",{id:"vs".concat(r.uid,"__combobox"),ref:"toggle",class:"vs__dropdown-toggle",role:"combobox","aria-expanded":a.dropdownOpen.toString(),"aria-owns":"vs".concat(r.uid,"__listbox"),"aria-label":"Search for option",onMousedown:l[1]||(l[1]=function(y){return a.toggleDropdown(y)})},[(0,o.createElementVNode)("div",u,[((0,o.openBlock)(!0),(0,o.createElementBlock)(o.Fragment,null,(0,o.renderList)(a.selectedValue,function(y,V){return(0,o.renderSlot)(t.$slots,"selected-option-container",{option:a.normalizeOptionForSlot(y),deselect:a.deselect,multiple:r.multiple,disabled:r.disabled},function(){return[((0,o.openBlock)(),(0,o.createElementBlock)("span",{key:r.getOptionKey(y),class:"vs__selected"},[(0,o.renderSlot)(t.$slots,"selected-option",(0,o.normalizeProps)((0,o.guardReactiveProps)(a.normalizeOptionForSlot(y))),function(){return[(0,o.createTextVNode)((0,o.toDisplayString)(r.getOptionLabel(y)),1)]}),r.multiple?((0,o.openBlock)(),(0,o.createElementBlock)("button",{key:0,ref:function(E){return b.deselectButtons[V]=E},disabled:r.disabled,type:"button",class:"vs__deselect",title:"Deselect ".concat(r.getOptionLabel(y)),"aria-label":"Deselect ".concat(r.getOptionLabel(y)),onClick:function(E){return a.deselect(y)}},[((0,o.openBlock)(),(0,o.createBlock)((0,o.resolveDynamicComponent)(a.childComponents.Deselect)))],8,g)):(0,o.createCommentVNode)("",!0)]))]})}),256)),(0,o.renderSlot)(t.$slots,"search",(0,o.normalizeProps)((0,o.guardReactiveProps)(a.scope.search)),function(){return[(0,o.createElementVNode)("input",(0,o.mergeProps)({class:"vs__search"},a.scope.search.attributes,(0,o.toHandlers)(a.scope.search.events)),null,16)]})],512),(0,o.createElementVNode)("div",k,[(0,o.withDirectives)((0,o.createElementVNode)("button",{ref:"clearButton",disabled:r.disabled,type:"button",class:"vs__clear",title:"Clear Selected","aria-label":"Clear Selected",onClick:l[0]||(l[0]=function(){return a.clearSelection&&a.clearSelection.apply(a,arguments)})},[((0,o.openBlock)(),(0,o.createBlock)((0,o.resolveDynamicComponent)(a.childComponents.Deselect)))],8,B),[[o.vShow,a.showClearButton]]),(0,o.renderSlot)(t.$slots,"open-indicator",(0,o.normalizeProps)((0,o.guardReactiveProps)(a.scope.openIndicator)),function(){return[r.noDrop?(0,o.createCommentVNode)("",!0):((0,o.openBlock)(),(0,o.createBlock)((0,o.resolveDynamicComponent)(a.childComponents.OpenIndicator),(0,o.normalizeProps)((0,o.mergeProps)({key:0},a.scope.openIndicator.attributes)),null,16))]}),(0,o.renderSlot)(t.$slots,"spinner",(0,o.normalizeProps)((0,o.guardReactiveProps)(a.scope.spinner)),function(){return[(0,o.withDirectives)((0,o.createElementVNode)("div",x,"Loading...",512),[[o.vShow,t.mutableLoading]])]})],512)],40,d),(0,o.createVNode)(o.Transition,{name:r.transition},{default:(0,o.withCtx)(function(){return[a.dropdownOpen?(0,o.withDirectives)(((0,o.openBlock)(),(0,o.createElementBlock)("ul",{id:"vs".concat(r.uid,"__listbox"),ref:"dropdownMenu",key:"vs".concat(r.uid,"__listbox"),class:"vs__dropdown-menu",role:"listbox",tabindex:"-1",onMousedown:l[2]||(l[2]=(0,o.withModifiers)(function(){return a.onMousedown&&a.onMousedown.apply(a,arguments)},["prevent"])),onMouseup:l[3]||(l[3]=function(){return a.onMouseUp&&a.onMouseUp.apply(a,arguments)})},[(0,o.renderSlot)(t.$slots,"list-header",(0,o.normalizeProps)((0,o.guardReactiveProps)(a.scope.listHeader))),((0,o.openBlock)(!0),(0,o.createElementBlock)(o.Fragment,null,(0,o.renderList)(a.filteredOptions,function(y,V){return(0,o.openBlock)(),(0,o.createElementBlock)("li",{id:"vs".concat(r.uid,"__option-").concat(V),key:r.getOptionKey(y),role:"option",class:(0,o.normalizeClass)(["vs__dropdown-option",{"vs__dropdown-option--deselect":a.isOptionDeselectable(y)&&V===t.typeAheadPointer,"vs__dropdown-option--selected":a.isOptionSelected(y),"vs__dropdown-option--highlight":V===t.typeAheadPointer,"vs__dropdown-option--disabled":!r.selectable(y)}]),"aria-selected":V===t.typeAheadPointer||null,onMouseover:function(E){return r.selectable(y)?t.typeAheadPointer=V:null},onClick:(0,o.withModifiers)(function(E){return r.selectable(y)?a.select(y):null},["prevent","stop"])},[(0,o.renderSlot)(t.$slots,"option",(0,o.normalizeProps)((0,o.guardReactiveProps)(a.normalizeOptionForSlot(y))),function(){return[(0,o.createTextVNode)((0,o.toDisplayString)(r.getOptionLabel(y)),1)]})],42,O)}),128)),a.filteredOptions.length===0?((0,o.openBlock)(),(0,o.createElementBlock)("li",T,[(0,o.renderSlot)(t.$slots,"no-options",(0,o.normalizeProps)((0,o.guardReactiveProps)(a.scope.noOptions)),function(){return[L]})])):(0,o.createCommentVNode)("",!0),(0,o.renderSlot)(t.$slots,"list-footer",(0,o.normalizeProps)((0,o.guardReactiveProps)(a.scope.listFooter)))],40,S)),[[D]]):((0,o.openBlock)(),(0,o.createElementBlock)("ul",{key:1,id:"vs".concat(r.uid,"__listbox"),role:"listbox",style:{display:"none",visibility:"hidden"}},null,8,A))]}),_:3},8,["name"]),(0,o.renderSlot)(t.$slots,"footer",(0,o.normalizeProps)((0,o.guardReactiveProps)(a.scope.footer)))],10,h)}]]),me=K,ge={ajax:j,pointer:U,pointerScroll:I},ve=K})(),v})()})})(X);var et=X.exports;const tt={class:"quick-search"},ot={class:"ui-p-2 ui-text-gray-1"},nt=e.createElementVNode("span",null,null,-1),Y=e.defineComponent({__name:"UiQuickSearch",setup(n,{expose:f}){const c=Qe(),p=e.ref(null),i=e.ref(!1),s=e.computed(()=>v.value.length===0),v=e.ref([]),o=d=>{d.length<3||(i.value=!0,Xe({query:d}).then(u=>v.value=u).finally(()=>{i.value=!1}))},h=d=>{if(d.link){if(p.value=null,v.value=[],d.link.includes("/web")){c.push(d.link.split("/web")[1]);return}window.location.href=d.link}};return f({value:p}),(d,u)=>(e.openBlock(),e.createElementBlock("div",tt,[e.createVNode(e.unref(et.VueSelect),{modelValue:p.value,"onUpdate:modelValue":u[0]||(u[0]=g=>p.value=g),options:v.value,clearable:!1,searchable:"",loading:i.value,placeholder:"Informe o nome do menu",autoscroll:"",class:"x-select-quick-search",onSearch:o,"onOption:selected":h},{"no-options":e.withCtx(()=>[e.createElementVNode("div",ot,e.toDisplayString(e.unref(s)?"Nenhum resultado encontrado":"Digite para efetuar a busca"),1)]),"open-indicator":e.withCtx(()=>[nt]),spinner:e.withCtx(g=>[g.loading?(e.openBlock(),e.createBlock(w._sfc_main,{key:0,color:"primary",class:"ui-relative -ui-top-0.5 ui-ml-4 ui-h-4 ui-w-4"})):e.createCommentVNode("",!0)]),_:1},8,["modelValue","options","loading"])]))}}),rt={class:"ieducar-sidebar"},lt={id:"ieducar-quick-search",class:"ieducar-quick-search"},it={class:"ui-flex ui-justify-between"},st=e.createElementVNode("h4",{class:"ieducar-quick-search-title"},"Busca rápida",-1),at={class:"quick-search"},ct={class:"ieducar-sidebar-menu ui-px-4"},ut={key:0},dt=["href"],pt={key:1},ht=["href"],ft=e.defineComponent({__name:"UiSidebar",props:{menus:null},setup(n){const f=()=>{var c;(c=document.querySelector("body"))==null||c.classList.remove("sidebar-open")};return(c,p)=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createElementVNode("div",{class:"ieducar-backdrop","aria-hidden":!0,onClick:f}),e.createElementVNode("aside",rt,[e.createElementVNode("div",lt,[e.createElementVNode("div",it,[st,e.createVNode(w._sfc_main$1,{class:"lg:ui-hidden ui-rounded-[50%] ui-bg-primary ui-text-white ui-border-0",padding:"ui-px-1.5 ui-py-1",icon:"fa-close",onClick:f})]),e.createElementVNode("div",at,[e.createVNode(Y)])]),e.createElementVNode("ul",ct,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(n.menus,(i,s)=>{var v,o;return e.openBlock(),e.createElementBlock(e.Fragment,{key:s},[(v=i.menus)!=null&&v.length&&e.unref(exports.legacy)?(e.openBlock(),e.createElementBlock("li",ut,[e.createElementVNode("a",{href:i.href,class:e.normalizeClass({"item-active":i.current})},[e.createElementVNode("i",{class:e.normalizeClass(["fa",i.icon]),"aria-hidden":"true"},null,2),e.createTextVNode(" "+e.toDisplayString(i.label),1)],10,dt)])):(o=i.menus)!=null&&o.length&&!e.unref(exports.legacy)?(e.openBlock(),e.createElementBlock("li",pt,[i.href.includes("/web")?(e.openBlock(),e.createBlock(e.resolveDynamicComponent(e.unref(exports.legacy)?"a":"router-link"),{key:1,to:i.href.split("/web")[1],class:e.normalizeClass({"item-active":i.current})},{default:e.withCtx(()=>[e.createElementVNode("i",{class:e.normalizeClass(["fa",i.icon]),"aria-hidden":"true"},null,2),e.createTextVNode(" "+e.toDisplayString(i.label),1)]),_:2},1032,["to","class"])):(e.openBlock(),e.createElementBlock("a",{key:0,href:i.href,class:e.normalizeClass({"item-active":i.current})},[e.createElementVNode("i",{class:e.normalizeClass(["fa",i.icon]),"aria-hidden":"true"},null,2),e.createTextVNode(" "+e.toDisplayString(i.label),1)],10,ht))])):e.createCommentVNode("",!0)],64)}),128))])])],64))}}),mt={class:"ui-accordion"},gt=["href"],vt=["onClick"],yt={class:"ui-flex ui-gap-4"},bt={key:0},Q=e.defineComponent({__name:"UiAccordion",props:{options:{default:()=>[]},trackBy:{default:"label"}},setup(n){const f=n,c=e.ref(f.options.map(i=>({...i,show:!1}))),p=i=>{var s;i.href||(s=i.menus)!=null&&s.length&&(i.show=!i.show)};return(i,s)=>{const v=e.resolveComponent("ui-accordion",!0);return e.openBlock(),e.createElementBlock("ul",mt,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(c.value,(o,h)=>{var d;return e.openBlock(),e.createElementBlock("li",{key:h,class:e.normalizeClass(o.show?"active":"link")},[o.href?(e.openBlock(),e.createElementBlock("a",{key:0,href:o.href,class:"ui-flex ui-gap-4"},e.toDisplayString(o[n.trackBy]),9,gt)):(e.openBlock(),e.createElementBlock("div",{key:1,class:"ui-flex ui-justify-between",onClick:e.withModifiers(u=>p(o),["prevent","stop"])},[e.createElementVNode("div",yt,e.toDisplayString(o[n.trackBy]),1),(d=o.menus)!=null&&d.length?(e.openBlock(),e.createElementBlock("div",bt,[e.createElementVNode("i",{class:e.normalizeClass(["fa fa-chevron-down ui-duration-500 ui-ease-in-out",o.show?"ui-rotate-180":""])},null,2)])):e.createCommentVNode("",!0)],8,vt)),e.createVNode(e.Transition,{name:"fade"},{default:e.withCtx(()=>[o.show?(e.openBlock(),e.createBlock(v,{key:0,options:o.menus,"track-by":"label",class:"children"},null,8,["options"])):e.createCommentVNode("",!0)]),_:2},1024)],2)}),128))])}}}),kt={key:0},_t=["href"],Bt=["onClick"],Vt={key:1},wt=["href"],xt=["onClick"],St={class:"ui-mt-3"},Ct=e.defineComponent({__name:"UiTopMenu",props:{menus:null,submenu:{type:Boolean,default:!1}},setup(n){const f=W(),c=e.ref(!1),p=e.ref([]),i=e.ref(""),s=v=>{f.value.gt.md||(p.value=v.menus,i.value=v.label,c.value=!0)};return(v,o)=>{const h=e.resolveComponent("router-link"),d=e.resolveComponent("ui-top-menu",!0);return e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createElementVNode("ul",{class:e.normalizeClass({"ieducar-menu ui-overflow-x-auto lg:ui-overflow-x-visible":!n.submenu,"ieducar-sub-menu":n.submenu})},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(n.menus,(u,g)=>{var k,B,x,S;return e.openBlock(),e.createElementBlock(e.Fragment,{key:g},[((k=u.menus)!=null&&k.length||n.submenu)&&!e.unref(exports.legacy)?(e.openBlock(),e.createElementBlock("li",kt,[u.href&&!u.href.includes("/web")?(e.openBlock(),e.createElementBlock("a",{key:0,href:u.href},e.toDisplayString(u.label),9,_t)):u.href&&u.href.includes("/web")?(e.openBlock(),e.createBlock(h,{key:1,to:u.href.split("/web")[1]},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(u.label),1)]),_:2},1032,["to"])):(e.openBlock(),e.createElementBlock("span",{key:2,onClick:O=>s(u)},e.toDisplayString(u.label),9,Bt)),(B=u.menus)!=null&&B.length?(e.openBlock(),e.createElementBlock(e.Fragment,{key:3},[e.unref(f).gt.md?(e.openBlock(),e.createBlock(d,{key:0,menus:u.menus,submenu:""},null,8,["menus"])):e.createCommentVNode("",!0)],64)):e.createCommentVNode("",!0)])):((x=u.menus)!=null&&x.length||n.submenu)&&e.unref(exports.legacy)?(e.openBlock(),e.createElementBlock("li",Vt,[u.href?(e.openBlock(),e.createElementBlock("a",{key:0,href:u.href},e.toDisplayString(u.label),9,wt)):(e.openBlock(),e.createElementBlock("span",{key:1,onClick:O=>s(u)},e.toDisplayString(u.label),9,xt)),(S=u.menus)!=null&&S.length?(e.openBlock(),e.createElementBlock(e.Fragment,{key:2},[e.unref(f).gt.md?(e.openBlock(),e.createBlock(d,{key:0,menus:u.menus,submenu:""},null,8,["menus"])):e.createCommentVNode("",!0)],64)):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0)],64)}),128))],2),e.unref(f).gt.md?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(M,{key:0,modelValue:c.value,"onUpdate:modelValue":o[0]||(o[0]=u=>c.value=u),title:`Selecione em ${i.value}`},{default:e.withCtx(()=>[e.createElementVNode("div",St,[e.createVNode(Q,{options:p.value,"track-by":"label"},null,8,["options"])])]),_:1},8,["modelValue","title"]))],64)}}});var ee=(n=>(n[n.ADMIN=1]="ADMIN",n[n.INSTITUTIONAL=2]="INSTITUTIONAL",n[n.SCHOOLING=4]="SCHOOLING",n[n.LIBRARY=8]="LIBRARY",n))(ee||{});exports.legacy=!1;const Et=(n,f)=>{n&&f!=null&&f.legacy&&(exports.legacy=!0)};exports.UiAccordion=Q;exports.UiBreadcrumb=De;exports.UiFooter=$e;exports.UiHeader=Ze;exports.UiModal=M;exports.UiQuickSearch=Y;exports.UiSidebar=ft;exports.UiTopMenu=Ct;exports.UserLevel=ee;exports.XModal=G;exports.install=Et;exports.useModal=xe;exports.usePortal=Z;exports.useScreenSize=W; |
{ | ||
"name": "portabilis-ui", | ||
"version": "0.3.26", | ||
"version": "0.3.27", | ||
"repository": { | ||
@@ -5,0 +5,0 @@ "type": "git", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Minified code
QualityThis package contains minified code. This may be harmless in some cases where minified code is included in packaged libraries, however packages on npm should not minify code.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Minified code
QualityThis package contains minified code. This may be harmless in some cases where minified code is included in packaged libraries, however packages on npm should not minify code.
Found 1 instance in 1 package
8558702
90510