import{O as e,c as t,d as n,l as r,t as i,w as a}from"./_plugin-vue_export-helper-Conii5fq.js";import{i as o}from"./vuex.esm-bundler-CDO_-3pz.js";import{t as s}from"./ContentComponent-B1SHqQrm.js";function c(e){if(!e||typeof e!=`string`)return`/`;let t=e.trim();return t.startsWith(`/`)||(t=`/${t}`),t.length>1&&(t=t.replace(/\/+$/,``)),t||`/`}function l(e,t){let n=c(t);for(let t of e||[])if(c(t?.link||``)===n||Array.isArray(t?.submenu)&&l(t.submenu,n))return!0;return!1}var u={name:`DefaultComponent`,components:{ContentComponent:s},computed:{...o([`menuData`]),normalizedPath(){return c(this.$route.path)},isKnownMenuPath(){return l(this.menuData,this.normalizedPath)}}},d={key:1,class:`not-found`};function f(i,o,s,c,l,u){let f=e(`ContentComponent`);return a(),n(`div`,null,[u.isKnownMenuPath?(a(),r(f,{key:0,link:u.normalizedPath},null,8,[`link`])):(a(),n(`div`,d,[...o[0]||=[t(`h1`,null,`Seite existiert nicht`,-1),t(`p`,null,`Leider existiert die aufgerufene Seite nicht.`,-1)]]))])}var p=i(u,[[`render`,f],[`__scopeId`,`data-v-988aab8e`]]);export{p as default}; //# sourceMappingURL=DefaultComponent-CkOxDz7h.js.map