1import{f as m,j as e}from"./vendor-react-GnwsTJfO.js";import{a as o}from"./vendor-query-Dp4tHR6-.js";import{N as i,F as n,H as g,f as x}from"./index-Bk3sb3g_.js";import d from"./Frimurerbladet-CrDMQN12.js";import"./vendor-cjs-BcELrC9x.js";import"./vendor-supabase-BWPZKnGU.js";import"./vendor-ui-C1xCQL2z.js";import"./vendor-utils-B2rm_Apj.js";import"./storageImage-Bi8JK7M8.js";function b(){const{categorySlug:t,lodgeSlug:s}=m(),{data:a,isLoading:r}=o({queryKey:["lodge-for-magazine",s],queryFn:async()=>{const{data:l}=await x.from("lodges").select("id, name, slug, magazine_name, magazine_enabled").eq("slug",s).maybeSingle();return l},enabled:!!s});return r?e.jsxs("div",{className:"min-h-screen flex flex-col",children:[e.jsx(i,{}),e.jsx("main",{className:"flex-1 container mx-auto px-4 py-16",children:e.jsx("p",{className:"text-center text-muted-foreground",children:"Lasterâ¦"})}),e.jsx(n,{})]}):!a||!a.magazine_enabled?e.jsxs("div",{className:"min-h-screen flex flex-col",children:[e.jsx(g,{children:e.jsx("title",{children:"Magasinet er ikke tilgjengelig"})}),e.jsx(i,{}),e.jsx("main",{className:"flex-1 flex items-center justify-center text-center px-4",children:e.jsxs("div",{children:[e.jsx("h1",{className:"text-2xl font-serif mb-2",children:"Magasinet er ikke tilgjengelig"}),e.jsx("p",{className:"text-muted-foreground",children:"Denne logen har ikke aktivert eget magasin."})]})}),e.jsx(n,{})]}):e.jsx(d,{lodgeId:a.id,magazineName:a.magazine_name||`${a.name} â magasin`,issueLinkBase:`/loger/${t}/${s}/magasin`,introText:`Lokalt magasin for ${a.name}.`})}export{b 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.