PageSourceSearch

https://help.d-velop.de/docs/_nuxt/Dv_Od_Mm.js

js d-velop.de collected 2026-09-24 19:07:11 UTC 4,672 bytes, 1 lines download raw bytes

1import{e as B,g as K,u as I,D as m,i as C,o as a,c as n,j as e,l as N,t as d,a as s,k as c,F as w,r as k}from"./B75bCTVD.js";import{a as O}from"./CDgn_iym.js";import{u as E}from"./aq93oVD4.js";import"./TMIBzMKT.js";const L={class:"mx-auto max-w-screen-xl px-4 py-10 sm:px-6 lg:px-8"},S={key:0,class:"rounded-lg border border-gray-200 bg-white p-8 shadow-sm"},$={key:1,class:"rounded-lg border border-red-200 bg-red-50 p-8 text-red-900"},M={key:2,class:"w-full"},P={class:"border-b border-gray-200 pb-7"},R={class:"flex flex-wrap items-center gap-2 text-sm"},U={class:"inline-flex items-center rounded-md bg-gray-100 px-2.5 py-1 font-semibold text-secondary"},V={class:"mt-4 max-w-4xl text-3xl font-bold leading-tight text-secondary sm:text-4xl"},G={class:"mt-6 flex flex-wrap gap-x-6 gap-y-2 text-sm text-gray-600"},Q={key:0,class:"inline-flex items-center gap-2"},j={class:"font-semibold text-gray-900"},W={key:1,class:"inline-flex items-center gap-2"},Z={class:"font-semibold text-gray-900"},q={key:2,class:"inline-flex items-center gap-2"},z={class:"font-semibold text-gray-900"},J={class:"mt-8 max-w-4xl"},X=["innerHTML"],Y={key:1,class:"rounded-lg border border-gray-200 bg-gray-50 p-6 text-gray-800"},ee={key:0,class:"mt-10 border-t border-gray-200 pt-6"},te={class:"grid gap-6 md:grid-cols-2"},se={key:0},ae={class:"m-0 text-sm font-semibold uppercase tracking-wide text-gray-700"},ne={class:"mt-3 flex flex-wrap gap-2"},re={key:1},oe={class:"mt-3 flex flex-wrap gap-2"},ue=B({__name:"[id]",async setup(de){let u,y;const A=K(),{locale:i}=I(),T=m(()=>{const t=A.params.id;return Array.isArray(t)?t[0]:t}),{data:o,pending:D,error:F}=([u,y]=C(()=>O(()=>`/api/knowledge/entries/${encodeURIComponent(T.value??"")}/content?lang=${i.value}`,{default:()=>null},"$DHZn2F5uH0")),u=await u,y(),u),_=m(()=>{var t;return((t=o.value)==null?void 0:t.title)||"Knowledge-Artikel"}),x=m(()=>{var t;return((t=o.value)==null?void 0:t.html)??""}),g=m(()=>{var t,r;return((r=(t=o.value)==null?void 0:t.metadata)==null?void 0:r.products)??[]}),p=m(()=>{var t,r;return((r=(t=o.value)==null?void 0:t.metadata)==null?void 0:r.tags)??[]}),H=m(()=>{var t,r,l,v,f,b;return((r=(t=o.value)==null?void 0:t.metadata)==null?void 0:r.type)==="HOW_TO"?"How-to":((v=(l=o.value)==null?void 0:l.metadata)==null?void 0:v.type)==="TROUBLESHOOTING"?"Troubleshooting":((b=(f=o.value)==null?void 0:f.metadata)==null?void 0:b.type)==="FAQ"?"FAQ":"Knowledge"}),h=t=>t?new Intl.DateTimeFormat(i.value==="en"?"en-GB":"de-DE",{day:"2-digit",month:"2-digit",year:"numeric"}).format(new Date(t)):"";return E({title:()=>`${_.value} | d.velop service portal`}),(t,r)=>(a(),n("main",L,[e(D)?(a(),n("div",S,r[0]||(r[0]=[N('<div class="h-3 w-28 animate-pulse rounded bg-gray-100"></div><div class="mt-5 h-8 max-w-2xl animate-pulse rounded bg-gray-100"></div><div class="mt-8 space-y-3"><div class="h-3 animate-pulse rounded bg-gray-100"></div><div class="h-3 w-11/12 animate-pulse rounded bg-gray-100"></div><div class="h-3 w-3/4 animate-pulse rounded bg-gray-100"></div></div>',3)]))):e(F)?(a(),n("div",$,d(e(i)==="en"?"The Knowledge article could not be loaded.":"Der Knowledge-Artikel konnte nicht geladen werden."),1)):e(o)?(a(),n("article",M,[s("header",P,[s("div",R,[s("span",U,d(e(H)),1),r[1]||(r[1]=s("span",{class:"text-gray-500"},"Knowledge Base",-1))]),s("h1",V,d(e(_)),1),s("dl",G,[e(o).permission?(a(),n("div",Q,[s("dt",j,d(e(i)==="en"?"Permission":"Berechtigung"),1),s("dd",null,d(e(o).permission),1)])):c("",!0),e(o).createdAt?(a(),n("div",W,[s("dt",Z,d(e(i)==="en"?"Created":"Erstellt"),1),s("dd",null,d(h(e(o).createdAt)),1)])):c("",!0),e(o).updatedAt?(a(),n("div",q,[s("dt",z,d(e(i)==="en"?"Updated":"Aktualisiert"),1),s("dd",null,d(h(e(o).updatedAt)),1)])):c("",!0)])]),s("section",J,[e(x)?(a(),n("div",{key:0,class:"prose prose-slate max-w-none dark:prose-invert",innerHTML:e(x)},null,8,X)):(a(),n("div",Y,d(e(i)==="en"?"No content is available for this Knowledge article.":"Für diesen Knowledge-Artikel ist kein Inhalt vorhanden."),1))]),e(g).length||e(p).length?(a(),n("section",ee,[s("div",te,[e(g).length?(a(),n("div",se,[s("h2",ae,d(e(i)==="en"?"Products":"Produkte"),1),s("div",ne,[(a(!0),n(w,null,k(e(g),l=>(a(),n("span",{key:l,class:"rounded-md bg-gray-100 px-2.5 py-1 text-sm font-medium text-secondary"},d(l),1))),128))])])):c("",!0),e(p).length?(a(),n("div",re,[r[2]||(r[2]=s("h2",{class:"m-0 text-sm font-semibold uppercase tracking-wide text-gray-700"},"Tags",-1)),s("div",oe,[(a(!0),n(w,null,k(e(p),l=>(a(),n("span",{key:l,class:"rounded-md bg-gray-100 px-2.5 py-1 text-sm font-medium text-gray-800"},d(l),1))),128))])])):c("",!0)])])):c("",!0)])):c("",!0)]))}});
1export{ue 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.