1import{j as t}from"./vendor-query-B4OkWwCn.js";import{j as g,r as a,N as x}from"./vendor-react-B3Mucgts.js";import{D as c,a as r,l as d,P as E}from"./catalog-Ch87j84M.js";import{e as m,i as h,P as j}from"./eventTypes-DLQSS-NE.js";import{gG as T,L as y}from"./index-DNteAA61.js";import"./image-off-CVwmZQqk.js";import"./vendor-supabase-BspNZ9qP.js";function N(){const e=g().slug??"nunta",[u,o]=a.useState(c),[f,i]=a.useState(r),[p,n]=a.useState(!0);return a.useEffect(()=>{T("ViewContent",{content_category:e,content_name:m(e)})},[e]),a.useEffect(()=>{(async()=>{var l;n(!0);const s=await d(e);s?((l=s.blocks)!=null&&l.length&&o(s.blocks),s.theme&&i({...r,...s.theme})):(o(c),i(r)),n(!1)})()},[e]),h(e)?p?t.jsx("div",{className:"min-h-screen flex items-center justify-center",children:t.jsx(y,{className:"h-8 w-8 animate-spin text-primary"})}):t.jsxs(t.Fragment,{children:[t.jsx("title",{children:`${m(e)} · Galerie modele`}),t.jsx(E,{blocks:u,theme:f,eventTypeFilter:e})]}):t.jsx(x,{to:`/galerie/${j[0].slug}`,replace:!0})}export{N 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.