import{a1 as e,a2 as r,a as o,X as a,Y as l,Z as n,C as s,$ as t,a0 as c}from"./index.9313841a.js";import{_ as u}from"./plugin-vue_export-helper.21dcd24c.js";const i={class:"simple-error-fallback"},d={class:"error-content"},p={key:0,class:"error-details"},m={key:1,class:"error-details"},g={class:"debug-info"};var h=u({__name:"SimpleErrorFallback",props:{error:{type:Error,default:null},componentName:{type:String,default:"Unknown"}},setup(u){const h=e(),k=r(),v=o((()=>k.fullPath)),b=o((()=>(new Date).toLocaleString())),f=o((()=>navigator.userAgent)),w=()=>{window.location.reload()},C=()=>{h.push("/")},S=()=>{"caches"in window&&caches.keys().then((e=>{e.forEach((e=>{caches.delete(e)}))})),localStorage.clear(),sessionStorage.clear(),window.location.reload()};return(e,r)=>(a(),l("div",i,[n("div",d,[r[7]||(r[7]=n("div",{class:"error-icon"},"⚠️",-1)),r[8]||(r[8]=n("h3",null,"Component Loading Error",-1)),r[9]||(r[9]=n("p",null,"Failed to load the requested component.",-1)),u.error?(a(),l("p",p,[r[0]||(r[0]=n("strong",null,"Error:",-1)),s(" "+t(u.error.message),1)])):c("",!0),u.error&&u.error.stack?(a(),l("p",m,[r[1]||(r[1]=n("strong",null,"Stack trace:",-1)),n("pre",null,t(u.error.stack),1)])):c("",!0),n("div",g,[r[6]||(r[6]=n("h4",null,"Debug Information:",-1)),n("p",null,[r[2]||(r[2]=n("strong",null,"Component Name:",-1)),s(" "+t(u.componentName||"Unknown"),1)]),n("p",null,[r[3]||(r[3]=n("strong",null,"Current Route:",-1)),s(" "+t(v.value),1)]),n("p",null,[r[4]||(r[4]=n("strong",null,"Timestamp:",-1)),s(" "+t(b.value),1)]),n("p",null,[r[5]||(r[5]=n("strong",null,"User Agent:",-1)),s(" "+t(f.value),1)])]),n("div",{class:"error-actions"},[n("button",{onClick:w,class:"reload-btn"},"Reload Page"),n("button",{onClick:C,class:"home-btn"},"Go Home"),n("button",{onClick:S,class:"cache-btn"},"Clear Cache & Reload")])])]))}},[["__scopeId","data-v-c1265228"]]);export{h as default};
