const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["js/icon-403-BSD0tLCx.js","js/bootstrap-CQ5rTwfJ.js","jse/index-index-Q2B3Lnp0.js","css/bootstrap-DjjSRU78.css","js/icon-404-B3STIwrT.js","js/icon-500-ChWVeiD6.js","js/icon-coming-soon-DCbZO94S.js","js/icon-offline-BCmqNb8X.js"])))=>i.map(i=>d[i]);
import{a4 as C,J as r,bs as n,av as c,ab as s,aa as f,aq as i,aD as P,ah as A,a8 as d,aj as u,a7 as o,ac as p,x as h,ai as b,a0 as l}from"../jse/index-index-Q2B3Lnp0.js";import{a_ as L,a$ as t,b0 as z,b1 as g}from"./bootstrap-CQ5rTwfJ.js";import{R as N}from"./rotate-cw-DEaR5iL3.js";const O=L("arrow-left",[["path",{d:"m12 19-7-7 7-7",key:"1l729n"}],["path",{d:"M19 12H5",key:"x3x0zl"}]]),B={class:"flex size-full flex-col items-center justify-center duration-300"},F=["src"],H={class:"flex-col-center"},S={key:1,class:"text-foreground mt-8 text-2xl md:text-3xl lg:text-4xl"},j={key:3,class:"text-muted-foreground md:text-md my-4 lg:text-lg"},K=C({name:"Fallback",__name:"fallback",props:{description:{default:""},homePath:{default:"/"},image:{default:""},status:{default:"coming-soon"},title:{default:""}},setup(v){const e=v,y=n(()=>l(()=>import("./icon-403-BSD0tLCx.js"),__vite__mapDeps([0,1,2,3]))),E=n(()=>l(()=>import("./icon-404-B3STIwrT.js"),__vite__mapDeps([4,1,2,3]))),x=n(()=>l(()=>import("./icon-500-ChWVeiD6.js"),__vite__mapDeps([5,1,2,3]))),w=n(()=>l(()=>import("./icon-coming-soon-DCbZO94S.js"),__vite__mapDeps([6,1,2,3]))),D=n(()=>l(()=>import("./icon-offline-BCmqNb8X.js"),__vite__mapDeps([7,1,2,3]))),m=r(()=>{if(e.title)return e.title;switch(e.status){case"403":return t("ui.fallback.forbidden");case"404":return t("ui.fallback.pageNotFound");case"500":return t("ui.fallback.internalError");case"coming-soon":return t("ui.fallback.comingSoon");case"offline":return t("ui.fallback.offlineError");default:return""}}),_=r(()=>{if(e.description)return e.description;switch(e.status){case"403":return t("ui.fallback.forbiddenDesc");case"404":return t("ui.fallback.pageNotFoundDesc");case"500":return t("ui.fallback.internalErrorDesc");case"offline":return t("ui.fallback.offlineErrorDesc");default:return""}}),k=r(()=>{switch(e.status){case"403":return y;case"404":return E;case"500":return x;case"coming-soon":return w;case"offline":return D;default:return null}}),I=r(()=>e.status==="403"||e.status==="404"),R=r(()=>e.status==="500"||e.status==="offline"),{push:T}=z();function V(){T(e.homePath)}function $(){location.reload()}return(a,q)=>(s(),c("div",B,[a.image?(s(),c("img",{key:0,src:a.image,class:"md:1/3 w-1/2 lg:w-1/4"},null,8,F)):k.value?(s(),f(A(k.value),{key:1,class:"md:1/3 h-1/3 w-1/2 lg:w-1/4"})):i("",!0),P("div",H,[a.$slots.title?d(a.$slots,"title",{key:0}):m.value?(s(),c("p",S,u(m.value),1)):i("",!0),a.$slots.describe?d(a.$slots,"describe",{key:2}):_.value?(s(),c("p",j,u(_.value),1)):i("",!0),a.$slots.action?d(a.$slots,"action",{key:4}):I.value?(s(),f(o(g),{key:5,size:"lg",onClick:V},{default:p(()=>[h(o(O),{class:"mr-2 size-4"}),b(" "+u(o(t)("common.backToHome")),1)]),_:1})):R.value?(s(),f(o(g),{key:6,size:"lg",onClick:$},{default:p(()=>[h(o(N),{class:"mr-2 size-4"}),b(" "+u(o(t)("common.refresh")),1)]),_:1})):i("",!0)])]))}});export{K as _};
