const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["js/icon-403-CcsbyCQI.js","js/bootstrap-Bqxdt4iG.js","jse/index-index-BUJ_4tQs.js","css/bootstrap-CFVKi77e.css","js/icon-404-CG-Wov9-.js","js/icon-500-B35HKRhM.js","js/icon-coming-soon-D2nhbGVT.js","js/icon-offline-kH4jSK_F.js"])))=>i.map(i=>d[i]);
import{a1 as P,E as r,bm as n,ap as c,aj as a,ai as d,an as i,az as $,ar as z,al as m,ay as u,a9 as o,ak as b,p as h,ax as g,_ as l}from"../jse/index-index-BUJ_4tQs.js";import{b5 as A,b6 as t,b7 as L,b8 as v}from"./bootstrap-Bqxdt4iG.js";import{R as N}from"./rotate-cw-Vzm2IQ0D.js";const O=A("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=P({name:"Fallback",__name:"fallback",props:{description:{default:""},homePath:{default:"/"},image:{default:""},status:{default:"coming-soon"},title:{default:""}},setup(f){const e=f,y=n(()=>l(()=>import("./icon-403-CcsbyCQI.js"),__vite__mapDeps([0,1,2,3]))),x=n(()=>l(()=>import("./icon-404-CG-Wov9-.js"),__vite__mapDeps([4,1,2,3]))),E=n(()=>l(()=>import("./icon-500-B35HKRhM.js"),__vite__mapDeps([5,1,2,3]))),w=n(()=>l(()=>import("./icon-coming-soon-D2nhbGVT.js"),__vite__mapDeps([6,1,2,3]))),I=n(()=>l(()=>import("./icon-offline-kH4jSK_F.js"),__vite__mapDeps([7,1,2,3]))),_=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""}}),k=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""}}),p=r(()=>{switch(e.status){case"403":return y;case"404":return x;case"500":return E;case"coming-soon":return w;case"offline":return I;default:return null}}),D=r(()=>e.status==="403"||e.status==="404"),R=r(()=>e.status==="500"||e.status==="offline"),{push:T}=L();function V(){T(e.homePath)}function C(){location.reload()}return(s,M)=>(a(),c("div",B,[f.image?(a(),c("img",{key:0,src:f.image,class:"md:1/3 w-1/2 lg:w-1/4"},null,8,F)):p.value?(a(),d(z(p.value),{key:1,class:"md:1/3 h-1/3 w-1/2 lg:w-1/4"})):i("",!0),$("div",H,[s.$slots.title?m(s.$slots,"title",{key:0}):_.value?(a(),c("p",S,u(_.value),1)):i("",!0),s.$slots.describe?m(s.$slots,"describe",{key:2}):k.value?(a(),c("p",j,u(k.value),1)):i("",!0),s.$slots.action?m(s.$slots,"action",{key:4}):D.value?(a(),d(o(v),{key:5,size:"lg",onClick:V},{default:b(()=>[h(o(O),{class:"mr-2 size-4"}),g(" "+u(o(t)("common.backToHome")),1)]),_:1})):R.value?(a(),d(o(v),{key:6,size:"lg",onClick:C},{default:b(()=>[h(o(N),{class:"mr-2 size-4"}),g(" "+u(o(t)("common.refresh")),1)]),_:1})):i("",!0)])]))}});export{K as _};
