PageSourceSearch

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

js d-velop.de collected 2026-10-02 05:09:47 UTC 6,511 bytes, 100 lines download raw bytes

1import{m as d,ac as h,I as p}from"./CeQV8Two.js";import{a as y}from"./PGkayeDf.js";const b=async(n,e)=>{const t=d();if(t.public.apiUrl==null||t.public.apiUrl=="")return console.warn("CMS API URL is not set in runtime config"),null;const l=h(),i=t.public.apiUrl+"/cms",{data:r,error:u}=await y(i,{key:e,credentials:"include",method:"post",body:n,headers:l},"$VSVm3LXoVX");return{data:r,error:u}},f=()=>({...{doPost:b},...{status:"ok"}}),w=async(n,e)=>{const t=d();return(t.public.apiUrl==null||t.public.apiUrl=="")&&console.warn("CMS API URL is not set in runtime config"),null},$=async(n,e)=>{const t=d();return(t.public.apiUrl==null||t.public.apiUrl=="")&&console.warn("CMS API URL is not set in runtime config"),null},P=async(n,e)=>{const t=d();if(t.public.apiUrl==null||t.public.apiUrl=="")return console.warn("CMS API URL is not set in runtime config"),null;if(n==null)return null;const l="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789";let i="";for(let a=0;a<8;a++)i+=l.charAt(Math.floor(Math.random()*l.length));e==null&&(e="GetData"+i);const r=h(),{data:u,status:s,error:c}=await y(n,{key:e,credentials:"include",method:"GET",headers:r},"$BpWAEW1VsC");return{data:u,status:s,error:c}},S=async(n,e)=>{n&&(n.statusCode==401&&p({path:e},{external:!0}),n.statusCode==403&&p("/403"))},g=()=>({...{doPost:w,doPut:$,doGet:P,handleError:S},...{status:"ok"}}),G=async n=>{var r;if(n==null)return null;let e=JSON.stringify({query:`query GetDocumentation($slug: String) {
2      documentation(where: {slug: $slug}) {
3        id
4        title
5        slug
6        audience
7        target
8        type
9        footnote {
10          html
11        }
12        labels {
13          title
14        }
15        priority
16      }
17    }`,variables:{slug:n}});const t=f(),{data:l,error:i}=await t.doPost(e,"GetDocumentation");return i.value!=null?[]:(r=l.value.data)==null?void 0:r.documentation},U=async(n,e)=>{var u;n==null&&(n=10),e==null&&(e="de");let t=JSON.stringify({query:`query GetDocumentations($first: Int, $locale: Locale!) {
18          documentations(
19            first: $first
20            locales: [$locale]
21            orderBy: title_ASC
22          ) {
23            id
24            title
25            slug
26            type
27            audience
28            target
29            permission
30            externalHyperlink
31            product {
32              ... on Product {
33                id
34                name
35              }
36              ... on Application {
37                id
38                name
39              }
40            }
41            description
42            category {
43              id
44              slug
45              title
46            }
47            deprecated
48          }
49        }`,variables:{first:n,locale:e}});const l=f(),{data:i,error:r}=await l.doPost(t,"GetPubDocumentations");return r.value!=null?[]:(u=i.value.data)==null?void 0:u.documentations},D=async(n,e,t)=>{var a;n==null&&(n=10),e==null&&(e="de");let l="";if(t!=null&&t.length>0){l=`where: {labels_some: {title: "${t[0]}"}`;for(let o=0;o<t.length;o++)o!=0&&(l+=`,AND: {labels_some: {title: "${t[o]}"}`);for(let o=0;o<t.length;o++)l+="}"}let i=`query GetDocumentations($first: Int, $skip: Int) {
50      documentations(
51        first: $first
52        skip: $skip
53        orderBy: title_ASC
54        `+l+`
55      ) {
56        id
57        audience
58        target
59        permission
60        slug
61        title
62        type
63        externalHyperlink
64        labels(orderBy: title_ASC) {
65          id
66          title
67        }
68      }
69    }`,r=JSON.stringify({query:i,variables:{first:n,locale:e}});const u=f(),{data:s,error:c}=await u.doPost(r,"GetPubDocumentationsWithFilter");return c.value!=null?[]:(a=s.value.data)==null?void 0:a.documentations},k=async(n,e,t,l,i)=>{var o;let r=i;r==null&&(r="de");let u=JSON.stringify({query:`query GetDocumentations($first: Int, $skip: Int, $query: String!, $locale: [Locale!]!) {
70      documentations(
71        first: $first
72        skip: $skip
73        locales: $locale
74        where: {_search: $query}
75      ) {
76        id
77        title
78        slug
79        type
80        audience
81        target
82        externalHyperlink
83        product {
84          ... on Product {
85            id
86            name
87          }
88          ... on Application {
89            id
90            name
91          }
92        }
93        description
94        category {
95          id
96          slug
97          title
98        }
99      }
100    }`,variables:{first:n,skip:e,query:t,locale:[r]}});const s=f(),{data:c,error:a}=await s.doPost(u,"SearchDocumentations");return a.value!=null?[]:(o=c.value.data)==null?void 0:o.documentations},A=async(n,e,t,l)=>{const i=d();if(n==null&&(n="de"),e==null||(l==null&&(l="GetPubTableOfContent"),t==null||t==""))return null;const r=i.public.apiUrl+"/documentations/"+n+"/"+e+"/versions/"+t;return await g().doGet(r,l)},C=(n,e)=>{if(n==null)return null;let t=null;return n&&n.children&&n.children.length>0?(t=n.children[0],{id:t.uuid,title:t.title.trim(),slug:e,url:e}):t},q=async(n,e,t,l)=>{let i=[];if(n==null)return[];if(e==null)return[];let r=null,u=null;if(n&&n.children&&n.children.length>0&&(u=n.children[0],r=n.children[0].children,i.push({id:u.uuid,title:u.title.trim(),slug:l,url:l})),u==null)return[];let s=l+"/"+t;return i.push({id:t,title:t,slug:l+"/"+t,url:s}),e.length==0||r&&r.length&&m(r,i,t,l,e,0),i},m=(n,e,t,l,i,r)=>{let u=!1,s=l+"/"+t;for(let c=0;c<n.length;c++){const a=n[c];if(u=!1,a.slug==i[r]){if(u=!0,s=s+"/"+a.slug,e.push({id:a.uuid,title:a.title.trim(),slug:a.slug,url:s}),i.length==1)return e;u&&a.children&&(r=r+1,m(a.children,e,t,l,i,r));break}}return e},L=async(n,e,t)=>{const l=d();if(n==null&&(n="de"),t==null&&(t="GetPublicationVersions"),e==null)return[];const i=l.public.apiUrl+"/documentations/"+n+"/"+e+"/versions";return await g().doGet(i,t)},V=async(n,e,t)=>{let l="latest";if(n!=null){for(let i=0;i<n.length;i++)if(i==0){l=n[i];break}}if(t==null)return{pubId:e,version:l};for(let i=0;i<t.length;i++)if(t[i].version==l)return t[i];return t.length>0?{pubId:e,version:t[0].version}:{pubId:e,version:l}},B=async(n,e,t,l,i)=>{const r=d();if(n==null&&(n="de"),e==null||t==null||(t=t.replace(/"/g,""),l==null))return null;const u=r.public.apiUrl+"/documentations/"+n+"/"+e+"/versions/"+t+"/sections/"+l;return await g().doGet(u,i||"GetPubSection")},H=()=>({...{getHomePage:C,getTableOfContent:A,getDocumentation:G,getDocumentations:U,getDocumentationsWithFilter:D,searchDocumentations:k,getVersions:L,getVersionBySlug:V,getSection:B,getBreadcrumb:q}});export{g as a,H as u};

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.