1import{o as r,A as u,C as t,V,W as L,R as y,e as w,a7 as C,d as $,E as b,Q as M,ac as N,q as O,s as P,M as F,N as R,D as v,f as H,g as D,Y as U,T as q,am as z,B as J,k as S,c as x,v as G,aJ as Q,O as j,ak as W,$ as T}from"./DLCGl5VT.js";import{d as B}from"./DDM4ciRp.js";import{_ as E}from"./DKaucCqr.js";import{u as Y}from"./CQ-6RvL7.js";import{L as K}from"./CXd9gugI.js";(function(){try{var d=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},n=new d.Error().stack;n&&(d._sentryDebugIds=d._sentryDebugIds||{},d._sentryDebugIds[n]="490b373e-64da-4ba1-b51d-784b7f6660aa",d._sentryDebugIdIdentifier="sentry-dbid-490b373e-64da-4ba1-b51d-784b7f6660aa")}catch{}})();const X={"@fancyapps/ui":"6.1.13","@mir/pageeditor-plugin":"1.8.35","@nuxt/a11y":"1.0.0-alpha.1","@nuxt/image":"2.0.0","@nuxt/scripts":"1.1.1","@nuxtjs/i18n":"10.4.1","@pinia/nuxt":"0.11.3","@sentry/nuxt":"^10.48.0","@unhead/vue":"^2.1.13",gsap:"3.14.2",nuxt:"4.4.8","nuxt-gtag":"4.1.0",pinia:"3.0.4",swiper:"^12.2.0"},Z={"@nuxt/eslint":"1.15.2","@nuxt/fonts":"0.13.0","@playwright/test":"1.59.1","@types/node":"25.6.0",eslint:"9.39.2","eslint-import-resolver-typescript":"4.4.4","eslint-plugin-import":"2.32.0","eslint-plugin-simple-import-sort":"13.0.0",gettext:"0.0.1",husky:"9.1.7","i18next-cli":"1.51.7",json2po:"1.0.5",typescript:"5.9.3","vite-svg-loader":"5.1.1","vue-tsc":"3.2.6"},A={dependencies:X,devDependencies:Z},ee={class:"admin-dependencies"},te=["href"],ne={class:"dependency-item__title"},se={__name:"Dependencies",setup(d){const n=A.dependencies,a=n&&typeof n=="object"&&!Array.isArray(n)?n:{};return(i,o)=>(r(),u("div",null,[t("div",ee,[(r(!0),u(V,null,L(w(a),(s,c)=>(r(),u("div",{key:c,class:"dependency-item"},[t("a",{href:`https://www.npmjs.com/package/${c}`,target:"_blank"},[t("span",ne,y(c),1),o[0]||(o[0]=t("span",{class:"open-new-tab"},"â",-1))],8,te),t("span",null,y(s.includes("git")?s.split("#")[1]:s),1)]))),128))])]))}},oe={class:"admin-dependencies"},ae=["href"],ie={__name:"DevDependencies",setup(d){const a=A.devDependencies,i=a&&typeof a=="object"&&!Array.isArray(a)?a:{};return(o,s)=>(r(),u("div",null,[t("div",oe,[(r(!0),u(V,null,L(w(i),(c,e)=>(r(),u("div",{key:e,class:"dependency-item"},[t("a",{href:`https://www.npmjs.com/package/${e}`,target:"_blank"},[C(y(e)+" ",1),s[0]||(s[0]=t("span",{class:"open-new-tab"},"â",-1))],8,ae),t("span",null,y(c.includes("git")?c.split("#")[1]:c),1)]))),128))])]))}},k=700,re={__name:"Dropdown",emits:["open","close"],setup(d,{emit:n}){const a=n,i=e=>{e.style.transition=`height ${k}ms ease-in-out, opacity ${k}ms ease-in-out`},o=e=>{e.style.height="",e.style.opacity="",e.style.overflow="",e.style.transition=""},s=(e,_)=>{e.style.height="0px",e.style.opacity="0",e.style.overflow="hidden",e.style.transition="",e.offsetHeight,i(e);const f=e.scrollHeight;e.style.height=`${f}px`,e.style.opacity="1";const h=()=>{o(e),a("open"),_()},l=p=>{p.target===e&&h()};e.addEventListener("transitionend",l,{once:!0}),window.setTimeout(h,k+50)},c=(e,_)=>{e.style.height=`${e.scrollHeight}px`,e.style.opacity="1",e.style.overflow="hidden",e.style.transition="",e.offsetHeight,i(e),e.style.height="0px",e.style.opacity="0";const f=()=>{o(e),a("close"),_()},h=l=>{l.target===e&&f()};e.addEventListener("transitionend",h,{once:!0}),window.setTimeout(f,k+50)};return(e,_)=>(r(),$(N,{onEnter:s,onLeave:c},{default:b(()=>[M(e.$slots,"default")]),_:3}))}};function de(){const d=O();function n(o,s){throw console.error("â ï¸ Error on API service:",o,s),P({statusCode:s?.statusCode,statusMessage:s?.statusCode===404?"Page Not Found":"Internal Server Error",fatal:!0})}async function a(){const o={api:"CMS_HUB"};try{return await d.request(o)}catch(s){throw n("Unable to fetch CMS Hub versions ð¦",s)}}async function i(){const o={api:"DASHBOARD_ERROR_LOG"};try{return await d.request(o)}catch(s){throw n("Unable to fetch dashboard error log ð§¯",s)}}return{fetchVersions:a,fetchDashboardErrorLog:i}}const ce={key:0},le={key:0,class:"dependency-item"},ue={class:"tag"},pe={key:1,class:"dependency-item"},_e={class:"tag"},me={class:"dependency-item"},he={class:"tag"},ge={__name:"Version",async setup(d){let n,a;const i=A.dependencies,s={...i&&typeof i=="object"&&!Array.isArray(i)?i:{}},c=de(),e=D(()=>s["@mir/pageeditor-plugin"]),{data:_,pending:f}=([n,a]=F(()=>R("cms-hub-version",()=>c.fetchVersions(),{lazy:!0})),n=await n,a(),n),h=D(()=>_.value?.django_version??null),l=D(()=>_.value?.pageeditor_version??null);return(p,g)=>
1(r(),u("div",null,[w(f)?(r(),u("div",ce,[v(K)])):(r(),u(V,{key:1},[h.value?(r(),u("div",le,[t("span",null,[v(E,{class:"dependency-item__django-icon",name:"django"}),g[0]||(g[0]=C(" django ",-1))]),t("span",ue,y(h.value),1)])):H("",!0),l.value?(r(),u("div",pe,[g[1]||(g[1]=t("span",null," pageeditor ",-1)),t("span",_e,y(l.value),1)])):H("",!0),t("div",me,[g[2]||(g[2]=t("a",{href:"https://dev.mirserver.de/kristall2/pageeditor-plugin-3",target:"_blank"},[C(" pageeditor-plugin "),t("span",{class:"open-new-tab"},"â")],-1)),t("span",he,y(e.value),1)])],64))]))}},ve={class:"admin-section__content"},ye={class:"admin-section__header"},fe={class:"admin-section__header-text"},be=["title","aria-label"],we={class:"admin-section__aside"},ke={class:"admin-section__aside-content"},I={__name:"Distributor",props:{id:{type:String,required:!0},title:{type:String,required:!0}},setup(d){const n=S(!0),a={version:ge,dependencies:se,devDependencies:ie};return(i,o)=>(r(),u("div",{class:J(["admin-section",{"admin-section--open":n.value}])},[t("div",ve,[t("header",ye,[t("span",fe,y(d.title),1),t("button",{title:i.$t("Bereich umschalten"),"aria-label":i.$t("Bereich umschalten"),class:"admin-section__toggle",onClick:o[0]||(o[0]=s=>n.value=!n.value)},[v(E,{name:"chevron-down",class:"admin-section__chevron-down"})],8,be)]),v(re,null,{default:b(()=>[U(t("aside",we,[t("div",ke,[(r(),$(q(a[d.id])))])],512),[[z,n.value]])]),_:1})])],2))}},$e={class:"admin-dashboard modern-style cmshub"},De={class:"grid-container"},xe={class:"admin-dashboard__head"},Ce={class:"admin-dashboard__list"},je={__name:"PECmsHub",async setup(d){let n,a;const i=S([{id:"version",title:"Versions"},{id:"dependencies",title:"Dependencies"}]),o=S([{id:"devDependencies",title:"DevDependencies"}]),s=x("cms-hub-col-1"),c=x("cms-hub-col-2"),e=x("sessionid"),_=G();return Y().isLoggedIn&&e.value||([n,a]=F(()=>Q(_("index"))),await n,a()),s.value&&(i.value=s.value),c.value&&(o.value=c.value),j(i,l=>{s.value=l},{deep:!0}),j(o,l=>{c.value=l},{deep:!0}),(l,p)=>{const g=W;return r(),u("div",$e,[t("div",De,[t("div",xe,[v(g,{class:"back-to-home",to:"/",title:l.$t("Back to home"),"aria-label":l.$t("Back to home")},{default:b(()=>[v(E,{name:"chevron-left",size:"16",class:"back-icon"})]),_:1},8,["title","aria-label"]),p[2]||(p[2]=t("h1",{class:"admin-dashboard__title"}," CMS-Hub ",-1))]),t("ul",Ce,[v(w(B),{modelValue:i.value,"onUpdate:modelValue":p[0]||(p[0]=m=>i.value=m),"item-key":"id",tag:"li",class:"admin-dashboard__item",handle:".admin-section__header",group:"section",animation:"200"},{item:b(({element:m})=>[(r(),$(I,T({key:m.id},m),null,16))]),_:1},8,["modelValue"]),v(w(B),{modelValue:o.value,"onUpdate:modelValue":p[1]||(p[1]=m=>o.value=m),"item-key":"id",tag:"li",class:"admin-dashboard__item",handle:".admin-section__header",group:"section",animation:"200"},{item:b(({element:m})=>[(r(),$(I,T({key:m.id},m),null,16))]),_:1},8,["modelValue"])])])])}}};export{je as default};
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.