PageSourceSearch

https://citizenportal.ai/assets/error-card-C3WcITUl.js

js citizenportal.ai collected 2026-10-03 22:06:24 UTC 4,176 bytes, 6 lines download raw bytes

1import{j as e}from"./jsx-runtime-D_zvdyIk.js";import{r as b,L as m}from"./chunk-JZWAC4HX-CWXBk4Fr.js";import{c as S}from"./utils-C46YwbG5.js";import{B as a}from"./button-DwvMrSl7.js";import{F as W}from"./flag-C2XPsXk0.js";import{C as z}from"./clock-CM-DzFt6.js";import{L as F}from"./lock-DW_wUTJL.js";import{c as I}from"./createLucideIcon-ypzDO7z3.js";import{W as A}from"./wrench-BjPI-cxF.js";/**
2 * @license lucide-react v0.542.0 - ISC
3 *
4 * This source code is licensed under the ISC license.
5 * See the LICENSE file in the root directory of this source tree.
6 */const O=[["path",{d:"M12 20h.01",key:"zekei9"}],["path",{d:"M8.5 16.429a5 5 0 0 1 7 0",key:"1bycff"}],["path",{d:"M5 12.859a10 10 0 0 1 5.17-2.69",key:"1dl1wf"}],["path",{d:"M19 12.859a10 10 0 0 0-2.007-1.523",key:"4k23kn"}],["path",{d:"M2 8.82a15 15 0 0 1 4.177-2.643",key:"1grhjp"}],["path",{d:"M22 8.82a15 15 0 0 0-11.288-3.764",key:"z3jwby"}],["path",{d:"m2 2 20 20",key:"1ooewy"}]],R=I("wifi-off",O),_={generic:A,"not-found":null,offline:R,forbidden:F,session:z,none:null};function u({title:t="We hit a snag",message:s="Something unexpected happened. Let's get you back on track.",icon:i="generic",customIcon:o,onRetry:n,showGoHome:c=!0,homePath:f="/",homeLabel:x="Go to Hub",showHelp:N=!1,onHelp:h,quickLinks:l,statusCode:B,errorDetails:D,variant:p="card",className:v,attemptedPath:g,onReportBrokenLink:j}){const d=b.useRef(null),y=_[i],k=typeof import.meta<"u"&&!1;b.useEffect(()=>{var r;(r=d.current)==null||r.focus()},[]);const C=o??(y?e.jsx("div",{className:"mx-auto flex h-12 w-12 items-center justify-center rounded-full bg-muted",children:e.jsx(y,{className:"h-6 w-6 text-muted-foreground"})}):null),w=n||c,E=n?e.jsx(a,{ref:d,size:"sm",onClick:n,children:"Try again"}):c?e.jsx(a,{ref:d,size:"sm",asChild:!0,children:e.jsx(m,{to:f,children:x})}):null,M=n&&c?e.jsx(a,{size:"sm",variant:"outline",asChild:!0,children:e.jsx(m,{to:f,children:x})}):null;return e.jsx("div",{role:"alert","aria-live":"assertive",className:S("animate-in fade-in-0 duration-200",p==="fullPage"&&"flex min-h-screen items-start justify-center pt-[20vh] bg-background p-4",p==="card"&&"flex flex-1 items-start justify-center pt-16 p-8",v),children:e.jsxs("div",{className:"max-w-sm space-y-6 text-center",children:[C,e.jsxs("div",{className:"space-y-2",children:[e.jsx("h2",{className:"text-lg font-semibold text-foreground",children:t}),e.jsx("p",{className:"text-sm text-muted-foreground",children:s}),g&&e.jsx("p",{className:"text-xs text-muted-foreground/70 font-mono line-clamp-2 break-all max-w-full px-4",children:g})]}),w&&e.jsxs("div",{className:"flex justify-center gap-3",children:[E,M]}),l&&l.length>0&&e.jsxs("div",{className:"pt-4 border-t border-border",children:[e.jsx("p",{className:"text-xs text-muted-foreground/70 mb-3",children:"Quick links"}),e.jsx("div",{className:"flex flex-wrap justify-center items-baseline gap-x-4 gap-y-2",children:l.map(r=>e.jsx(m,{to:r.to,className:"text-sm text-primary hover:underline",children:r.label},r.to))})]}),N&&e.jsxs("p",{className:"text-sm text-muted-foreground",children:["Still stuck?"," ",h!=null?e.jsx("button",{onClick:h,className:"text-primary hover:underline",children:"Get help"}):e.jsx("span",{className:"text-primary",children:"Get help"})]}),j&&e.jsx("div",{className:"pt-4",children:e.jsxs(a,{variant:"outline",onClick:j,children:[e.jsx(W,{className:"h-4 w-4"}),"Report broken link"]})}),k]})})}function X({quickLinks:t=[{label:"Hub",to:"/"},{label:"Meetings",to:"/meetings/past"},{label:"Settings",to:"/settings/account"}],showHelp:s=!0,attemptedPath:i,onReportBrokenLink:o,...n}){return e.jsx(u,{title:"We can't find that page",message:"It may have been moved or the link might be outdated.",icon:"not-found",quickLinks:t,showHelp:s,attemptedPath:i,onReportBrokenLink:o,...n})}function Z({onRetry:t,...s}){return e.jsx(u,{title:"We hit a snag",message:"Something's not working on our end. Give it another go?",icon:"generic",onRetry:t,...s})}function $({onRetry:t,...s}){return e.jsx(u,{title:"You don't have access here",message:"You might need different permissions to view this.",icon:"forbidden",onRetry:t,...s})}export{u as E,$ as F,X as N,Z as S};

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.