import{a as B,b as E}from"/admin/build/_shared/chunk-BEFBF5XJ.js";import{a as R}from"/admin/build/_shared/chunk-KYGBJYX5.js";import{E as h,I as c,M as f,N as o,b as A,h as C,ja as L,ka as _,t as d}from"/admin/build/_shared/chunk-23T7FBRJ.js";import{a as V,i as D,m as x,n as y,o as k,p as S,q as T,r as b,t as v,x as w,y as N}from"/admin/build/_shared/chunk-A7Z7N7I3.js";import{d as i}from"/admin/build/_shared/chunk-VGRMLH5W.js";var n=i(V()),H=i(D());var e=i(N()),G=()=>({charset:"utf-8",title:"Runnable",viewport:"width=device-width,initial-scale=1"});var F=()=>[{rel:"preconnect",href:"https://fonts.googleapis.com"},{rel:"preconnect",href:"https://fonts.gstatic.com"},{rel:"stylesheet",href:"https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,300;0,400;0,500;0,600;0,700;0,800;1,300;1,400;1,500;1,600;1,700;1,800&display=swap"}],O=C({components:{MultiSelect:R}}),g=(0,H.withEmotionCache)(({children:t,head:r},a)=>{let l=v(),p=(0,n.useContext)(B),u=(0,n.useContext)(E);return(0,n.useEffect)(()=>{a.sheet.container=document.head;let s=a.sheet.tags;a.sheet.flush();for(let m of s)a.sheet._insertTag(m);u==null||u.reset()},[]),(0,e.jsxs)("html",{lang:"en",children:[(0,e.jsxs)("head",{children:[r,(0,e.jsx)(T,{}),(0,e.jsx)(S,{}),p==null?void 0:p.map(({key:s,ids:m,css:M})=>(0,e.jsx)("style",{"data-emotion":`${s} ${m.join(" ")}`,dangerouslySetInnerHTML:{__html:M}},s))]}),(0,e.jsxs)("body",{children:[(0,e.jsx)(L,{theme:O,children:t}),(0,e.jsx)("script",{dangerouslySetInnerHTML:{__html:`window.ENV = ${JSON.stringify(l==null?void 0:l.ENV)}`}}),(0,e.jsx)(w,{}),(0,e.jsx)(b,{}),null]})]})});function P(){return(0,e.jsx)(g,{children:(0,e.jsx)(A,{exitBeforeEnter:!0,children:(0,e.jsx)(x,{})})})}function I({error:t}){return console.error(t),(0,e.jsx)(g,{children:(0,e.jsxs)(f,{h:"100vh",justify:"center",children:[(0,e.jsx)(c,{children:"There was an error"}),(0,e.jsx)(o,{children:t.message}),(0,e.jsx)("hr",{}),(0,e.jsx)(o,{children:(0,e.jsxs)("div",{children:["An unexpected error occurred: ",t.message]})})]})})}function j(){let t=y(),r;switch(t.status){case 401:{r=(0,e.jsxs)(h,{textAlign:"center",py:10,px:6,children:[(0,e.jsx)(c,{display:"inline-block",as:"h2",size:"2xl",bgGradient:"linear(to-r, purple.400, purple.600)",backgroundClip:"text",children:"No Access"}),(0,e.jsx)(o,{color:"gray.500",mb:6,children:"The page you are looking for does not seem to exist"}),(0,e.jsx)(d,{colorScheme:"purple",bgGradient:"linear(to-r, purple.400, purple.500, purple.600)",color:"white",variant:"solid",children:"Go to Home"})]});break}case 404:{r=(0,e.jsxs)(h,{textAlign:"center",py:10,px:6,children:[(0,e.jsx)(c,{display:"inline-block",as:"h1",size:"4xl",bgGradient:"linear(to-r, purple.400, purple.600)",backgroundClip:"text",children:"404"}),(0,e.jsx)(o,{fontSize:"24px",mt:3,mb:2,children:"Page Not Found"}),(0,e.jsx)(o,{color:"gray.500",mb:6,children:"The page you are looking for does not seem to exist"}),(0,e.jsx)(d,{as:k,colorScheme:"purple",bgGradient:"linear(to-r, purple.400, purple.500, purple.600)",color:"white",variant:"solid",to:_(),children:"Go to Home"})]});break}default:throw new Error(t.data||t.statusText)}return(0,e.jsx)(g,{children:(0,e.jsx)(f,{h:"100vh",justify:"center",children:r})})}export{j as CatchBoundary,I as ErrorBoundary,P as default,F as links,G as meta};
