import{r as ref$1,V as Vue}from"./vue.esm.01cc5dc9.js";import{E as Error}from"./Error.abf8cb86.js";import{n as normalizeComponent}from"./plugin-vue2_normalizer.ed7092a9.js";const fontAwesome="",temboard="",_sfc_main={__name:"ErrorRow",setup(r,{expose:o}){const e=ref$1(null);function t(){e.value.clear()}function n(s){e.value.fromXHR(s)}return o({clear:t,fromXHR:n}),{__sfc:!0,error:e,clear:t,fromXHR:n,Error}}};var _sfc_render=function(){var o=this,e=o._self._c,t=o._self._setupProxy;return e("div",{staticClass:"row justify-content-center"},[e("div",{staticClass:"col col-xl-6 col-10"},[e(t.Error,{ref:"error"})],1)])},_sfc_staticRenderFns=[],__component__=normalizeComponent(_sfc_main,_sfc_render,_sfc_staticRenderFns,!1,null,null,null,null);const ErrorRow=__component__.exports;window.errorApp=new Vue({el:"#errorApp",components:{error:ErrorRow},template:'<error ref="error"></error>'});window.clearError=function(){window.errorApp.$refs.error.clear()};window.showError=function(r){typeof r=="string"?window.errorApp.$refs.error.$refs.error.setHTML(r):window.errorApp.$refs.error.fromXHR(r)};$(()=>{var url=window.location,element=$("ul.nav a").filter(function(){return this.href==url||url.href.indexOf(this.href)==0}).addClass("active").parent().parent().addClass("in").parent();element.is("li")&&element.addClass("active"),eval(localStorage.getItem("sidebarCollapsed"))&&(document.body.className+="sidebar-collapsed"),$("#menu-collapse").click(function(r){r.preventDefault(),$(document.body).toggleClass("sidebar-collapsed"),localStorage.setItem("sidebarCollapsed",$(document.body).hasClass("sidebar-collapsed")),window.dispatchEvent(new Event("resize"))}),$('[data-toggle="popover"]').popover({sanitize:!1}),$('[data-toggle="tooltip"]').tooltip({sanitize:!1})});
