PageSourceSearch

https://alternativet.dk/_nuxt/4WMx5Q6i.js

js alternativet.dk collected 2026-10-02 06:03:57 UTC 4,812 bytes, 1 lines download raw bytes

1import{_ as S}from"./CccYZogr.js";import{_ as P}from"./DE5uBNEM.js";import{_ as V}from"./DNtZAOWM.js";import{g as B,i as G,h as T,r as h,e as A,j as a,l as R,u as $,c as g,a as s,b as c,A as f,w as p,m as t,B as q,d as l,t as d,k as E,o as u,x as O}from"#entry";import"./D3w1FSLw.js";import"./DlAUqK2U.js";import"./DEohP0_5.js";const z={class:"min-h-screen flex items-center justify-center bg-mork-gron/5"},H={class:"max-w-lg mx-auto px-4"},J={class:"flex flex-col sm:flex-row gap-3 justify-center mt-6"},M={class:"mt-8 p-4 bg-white rounded-lg shadow border"},F={class:"space-y-3 text-sm text-dark-green-600"},I={class:"flex items-start"},K=["href"],L={key:0,class:"mt-6 p-4 bg-blue-50 border border-blue-200 rounded-lg"},U={class:"text-sm text-blue-800"},Q={key:1,class:"mt-6 p-4 bg-dark-green-50 rounded-lg"},W={class:"text-xs overflow-auto"},oe=B({__name:"error",setup(X){const i=G(),v=T(),o=h(!1),m=A(),w=a(()=>E(m.value)),D=!1,n=a(()=>{const r=i.query.error?JSON.parse(i.query.error):null,e=i.query.statusCode?Number(i.query.statusCode):500;return r||{statusCode:e,message:"An unexpected error occurred",data:null}}),j=a(()=>{const r=n.value?.statusCode||500;return r>=500?"error":r===404?"not-found":r>=400?"warning":"error"}),k=a(()=>{const r=n.value?.statusCode||500;return{400:"Ugyldig anmodning",401:"Du skal logge ind",403:"Adgang nægtet",404:"Siden blev ikke fundet",408:"Anmodningen tog for lang tid",429:"For mange anmodninger",500:"Serverfejl",502:"Gatewayfejl",503:"Tjenesten er utilgængelig",504:"Gateway timeout"}[r]||"Der opstod en fejl"}),y=a(()=>{const r=n.value?.statusCode||500;return{400:"Anmodningen kunne ikke behandles pÃ¥ grund af ugyldig syntaks.",401:"Du skal logge ind for at fÃ¥ adgang til denne ressource.",403:"Du har ikke tilladelse til at fÃ¥ adgang til denne ressource.",404:"Den side du leder efter eksisterer ikke eller er blevet flyttet.",408:"Anmodningen tog for lang tid. Prøv igen.",429:"Du har sendt for mange anmodninger. Vent venligst og prøv igen.",500:"Der opstod en intern serverfejl. Vi arbejder pÃ¥ at løse problemet.",502:"Der er problemer med serveren. Prøv igen om lidt.",503:"Tjenesten er midlertidigt utilgængelig. Prøv igen senere.",504:"Serveren reagerede ikke i tide. Prøv igen."}[r]||"Der opstod en uventet fejl. Prøv venligst igen eller kontakt support."}),b=h(null),x=async()=>{o.value=!0;try{await new Promise(r=>setTimeout(r,1e3)),window.history.length>1?v.back():await v.push("/")}catch(r){console.error("Retry failed:",r),window.location.reload()}finally{o.value=!1}};return R(async()=>{}),$({title:`${k.value} - ${w.value}`,meta:[{name:"description",content:y.value},{name:"robots",content:"noindex"}]}),(r,e)=>{const C=S,_=P,N=V;return u(),g("div",z,[s("div",H,[c(N,{variant:t(j),title:t(k),message:t(y),"status-code":t(n)?.statusCode,"original-error":t(n)?.message,"show-technical-details":!0,retrying:t(o),size:"lg",onRetry:x},{actions:p(()=>[s("div",J,[c(_,{disabled:t(o),onClick:x},{default:p(()=>[t(o)?(u(),O(C,{key:0,size:"sm",variant:"white","show-text":!1,class:"mr-2"})):f("",!0),l(" "+d(t(o)?"Genindlæser...":"Genindlæs siden"),1)]),_:1},8,["disabled"]),c(_,{to:"/",variant:"secondary"},{default:p(()=>[...e[0]||(e[0]=[l(" GÃ¥ til forsiden ",-1)])]),_:1})])]),_:1},8,["variant","title","message","status-code","original-error","retrying"]),s("div",M,[e[5]||(e[5]=s("h3",{class:"text-lg font-semibold mb-3"}," Hvad kan du gøre nu? ",-1)),s("div",F,[e[4]||(e[4]=q('<div class="flex items-start"><div class="h-2 w-2 bg-primary-500 rounded-full mt-2 mr-3 flex-shrink-0"></div><span>Prøv at genindlæse siden ved at klikke pÃ¥ knappen ovenfor</span></div><div class="flex items-start"><div class="h-2 w-2 bg-primary-500 rounded-full mt-2 mr-3 flex-shrink-0"></div><span>Tjek din internetforbindelse</span></div><div class="flex items-start"><div class="h-2 w-2 bg-primary-500 rounded-full mt-2 mr-3 flex-shrink-0"></div><span>Prøv igen om et par minutter</span></div>',3)),s("div",I,[e[3]||(e[3]=s("div",{class:"h-2 w-2 bg-primary-500 rounded-full mt-2 mr-3 flex-shrink-0"},null,-1)),s("span",null,[e[1]||(e[1]=l(" Kontakt os pÃ¥ ",-1)),s("a",{href:`mailto:${t(m)?.org?.contact?.emailGeneral??"[email protected]"}`,class:"text-primary-500 hover:underline"},d(t(m)?.org?.contact?.emailGeneral??"[email protected]"),9,K),e[2]||(e[2]=l(" hvis problemet fortsætter ",-1))])])])]),t(b)?(u(),g("div",L,[e[6]||(e[6]=s("div",{class:"flex items-center mb-2"},[s("div",{class:"h-2 w-2 bg-blue-500 rounded-full mr-2"}),s("span",{class:"text-sm font-medium text-blue-900"},"Systemstatus")],-1)),s("p",U,d(t(b)),1)])):f("",!0),t(D)&&t(n)?(u(),g("div",Q,[e[7]||(e[7]=s("h4",{class:"text-sm font-semibold mb-2"}," Debug Information ",-1)),s("pre",W,d(JSON.stringify(t(n),null,2)),1)])):f("",!0)])])}}});
1export{oe 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.