1import{f as c,r,j as o,N as u}from"./vendor-react-GnwsTJfO.js";import{f as l}from"./index-Bk3sb3g_.js";import{n as p}from"./infoMeetingShortCode-DElnfEyV.js";import"./vendor-cjs-BcELrC9x.js";import"./vendor-supabase-BWPZKnGU.js";import"./vendor-ui-C1xCQL2z.js";import"./vendor-utils-B2rm_Apj.js";import"./vendor-query-Dp4tHR6-.js";function y(){const{code:s}=c(),[n,m]=r.useState(null),[f,a]=r.useState(!1);return r.useEffect(()=>{let i=!0;return(async()=>{const e=p(s||"");if(!e){a(!0);return}const{data:t}=await l.from("info_meetings").select("slug, short_code").or(`short_code.eq.${e},slug.eq.${e}`).limit(1).maybeSingle();i&&(t!=null&&t.slug?m(`/infomote/${t.slug}`):a(!0))})(),()=>{i=!1}},[s]),n?o.jsx(u,{to:n,replace:!0}):f?o.jsx(u,{to:"/infomoter",replace:!0}):o.jsx("div",{className:"container mx-auto px-4 py-20 text-center text-muted-foreground",children:"Ã
pner informasjonsmøtet â¦"})}export{y as default};
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.