PageSourceSearch

https://mi.amipet.app/assets/ForoExplorar-PZlagrh6.js

js amipet.app collected 2026-10-05 22:07:09 UTC 2,167 bytes, 1 lines download raw bytes

1import{a as t,j as e}from"./vendor-query-BNzl40hr.js";import{aw as p,G as m,b as n}from"./index-DgQoM3Lc.js";import{f}from"./foroCommunityService-DyF_sXQ5.js";import{L as h}from"./LoadingStatePresets-C_zWlMlS.js";import{C as j}from"./ComunidadCard-B_dtuyGW.js";import{F as g}from"./FiltroComunidades-Cx4UgEHX.js";import{L as d}from"./vendor-react-C2gGN3kB.js";import{P as C}from"./plus-DXNcRfeu.js";import"./vendor-supabase-Wgj5GqXg.js";import"./vendor-ui-Dx4N_DVy.js";import"./vendor-charts-BHMEPWWf.js";import"./vendor-forms-BTVwTRgq.js";import"./vendor-maps-DsqnI_0k.js";function R(){const r=p(s=>s.user),[o,c]=t.useState(null),[i,l]=t.useState([]),[u,x]=t.useState(!0);t.useEffect(()=>{f.getAllCommunities().then(l).finally(()=>x(!1))},[]);const a=o===null?i:i.filter(s=>s.slug===o);return e.jsxs("div",{className:"container mx-auto py-8 px-4 max-w-5xl",children:[e.jsxs("div",{className:"flex items-center justify-between mb-8",children:[e.jsxs("div",{children:[e.jsxs("div",{className:"flex items-center gap-3 mb-3",children:[e.jsx(m,{className:"h-8 w-8 text-primary"}),e.jsx("h1",{className:"text-3xl font-bold text-foreground",children:"Explorar Comunidades"})]}),e.jsx("p",{className:"text-muted-foreground",children:a.length===1?"comunidad disponible":"comunidades disponibles"})]}),r&&e.jsx(d,{to:"/forum/communities/create",children:e.jsxs(n,{className:"gap-2",children:[e.jsx(C,{className:"h-4 w-4"}),"Crear comunidad"]})})]}),e.jsx("div",{className:"mb-6",children:e.jsx(g,{comunidadActiva:o,onComunidadChange:c})}),u?e.jsx(h,{count:6,columns:3,aspectRatio:"video"}):a.length===0?e.jsxs("div",{className:"text-center py-12 bg-muted/30 rounded-xl",children:[e.jsx(m,{className:"h-16 w-16 mx-auto mb-4 text-muted-foreground"}),e.jsx("h2",{className:"text-xl font-semibold text-foreground mb-2",children:"No se encontraron comunidades"}),e.jsx("p",{className:"text-muted-foreground mb-6",children:"Intenta con otro filtro o crea tu propia comunidad"}),r&&e.jsx(d,{to:"/forum/communities/create",children:e.jsx(n,{children:"Crear comunidad"})})]}):e.jsx("div",{className:"space-y-4",children:a.map(s=>e.jsx(j,{comunidad:s},s.id))})]})}export{R 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.