1import{_ as k}from"./CBB4xW-e.js";import{n as E}from"./BlVndTPS.js";import{Y as P}from"./CgU_Gher.js";import{d as C,z as L,Q as B,y as U,o as s,c as o,a as I,aW as i,n as t,t as a,F as y,f as h,l as S,b as T,w as F,p as N,L as K,Y as m}from"./jmB-WYvk.js";import{r as M,d as R}from"./BI4dxO8O.js";import"./Dv-CToOw.js";(function(){try{var l=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{};l.SENTRY_RELEASE={id:"[email protected]"};var c=new l.Error().stack;c&&(l._sentryDebugIds=l._sentryDebugIds||{},l._sentryDebugIds[c]="216e5cf3-d630-4a62-ad7b-e838c81e0c29",l._sentryDebugIdIdentifier="sentry-dbid-216e5cf3-d630-4a62-ad7b-e838c81e0c29")}catch{}})();const Y={class:"page landing-index"},H={key:0,class:"container py-20"},O={key:0,class:"py-10 text-center"},V={key:1,class:"py-10 text-red-500"},j={key:2},z={class:"mb-6 p-4 bg-neutral-100 rounded-medium"},A={class:"text-400-bold"},$={class:"grid gap-4"},q={class:"flex justify-between items-start gap-4"},G={class:"flex-1"},Q={class:"text-500-bold mb-2"},W={class:"text-300-default text-neutral-500 mb-3"},J={class:"bg-neutral-100 px-1 rounded"},X={class:"flex flex-wrap gap-2"},Z={class:"font-bold"},ee={key:3,class:"py-10 text-center text-neutral-500"},te={key:1,class:"container py-20 text-center"},ne=C({__name:"index",setup(l){const c=L(),p=K(()=>c.query.preview==="true"),u=m([]),_=m(!0),b=m(null);B(async()=>{if(!p.value){_.value=!1;return}try{const e=U().public?.builderio?.apiKey??"",r=M(),f=await P({model:"landing-page",apiKey:e,options:{limit:100,includeUnpublished:!0,fields:"id,name,published,data.title,data.slug",...r}});u.value=f||[]}catch(n){b.value=n,console.error("Error fetching landing pages:",n)}finally{_.value=!1}});const v=n=>{const e=n.data?.title;if(!e)return n.name||"Untitled";if(typeof e=="string")return e;if(e.Default)return e.Default;const r=Object.keys(e)[0];return r?e[r]:n.name||"Untitled"},w=n=>{const e=n.data?.slug;return e?typeof e=="string"?{default:e}:e:{}},D=(n,e)=>`/${{"de-EU":"de-eu","de-CH":"de-ch","de-AT":"de-eu","en-EU":"en-eu","en-CH":"en-ch","en-US":"en-us","en-GB":"en-eu","fr-EU":"fr-eu","fr-CH":"fr-ch","fr-BE":"fr-eu","nl-EU":"nl-eu","nl-BE":"nl-eu",Default:"de-eu"}[n]||"de-eu"}/lp/${e}/`;return(n,e)=>{const r=k,f=E;return s(),o("div",Y,[I(r,{"navbar-theme":"dark"}),i(p)?(s(),o("div",H,[e[3]||(e[3]=t("div",{class:"mb-8"},[t("h1",{class:"text-800-bold mb-4"},"Landing Pages (Dev/Preview)"),t("p",{class:"text-500-default text-neutral-500"},"Diese Seite ist nur im Development/Preview Modus sichtbar.")],-1)),i(_)?(s(),o("div",O,[...e[0]||(e[0]=[t("p",null,"Lade Landing Pages von Builder.io...",-1)])])):i(b)?(s(),o("div",V,[t("p",null,"Fehler beim Laden: "+a(i(b).message),1)])):i(u)&&i(u).length>0?(s(),o("div",j,[t("div",z,[t("p",A,a(i(u).length)+" Landing Pages in Builder.io",1)]),t("div",$,[(s(!0),o(y,null,h(i(u),d=>(s(),o("div",{key:d.id,class:"p-4 border border-neutral-200 rounded-medium hover:border-neutral-400 transition-colors"},[t("div",q,[t("div",G,[t("h2",Q,a(v(d)),1),t("p",W,[e[1]||(e[1]=S(" UID: ",-1)),t("code",J,a(d.id),1)]),t("div",X,[(s(!0),o(y,null,h(w(d),(x,g)=>(s(),T(f,{key:g,to:D(g,x),class:"inline-flex items-center gap-1 px-2 py-1 bg-blue-100 text-blue-700 rounded text-300-default hover:bg-blue-200 transition-colors"},{default:F(()=>[t("span",Z,a(g)+":",1),t("span",null,"/lp/"+a(x),1)]),_:2},1032,["to"]))),128))])]),t("div",null,[t("span",{class:N(["px-2 py-1 rounded text-300-default",d.published==="published"?"bg-green-100 text-green-700":"bg-yellow-100 text-yellow-700"])},a(d.published==="published"?"Published":"Draft"),3)])])]))),128))])])):(s(),o("div",ee,[...e[2]||(e[2]=[t("p",null,"Keine Landing Pages gefunden.",-1)])]))])):(s(),o("div",te,[...e[4]||(e[4]=[t("h1",{class:"text-600-bold mb-4"},"404",-1),t("p",null,"Diese Seite existiert nicht.",-1)])]))])}}}),de=R(ne,[["__scopeId","data-v-26957235"]]);export{de 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.