1import{c as N,r as d,j as n,m,d as k,I as A,A as S,L as h,a as L,H as M,s as p}from"./index-5bs4z68M.js";import{a as y,A as C}from"./AppNav-865s7D5S.js";import{S as z}from"./search-CBm8T0LW.js";import"./index-BL6TXDJb.js";import"./useAuth-b_JHNWa5.js";/** 2 * @license lucide-react v0.462.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 G=N("GraduationCap",[["path",{d:"M21.42 10.922a1 1 0 0 0-.019-1.838L12.83 5.18a2 2 0 0 0-1.66 0L2.6 9.08a1 1 0 0 0 0 1.832l8.57 3.908a2 2 0 0 0 1.66 0z",key:"j76jl0"}],["path",{d:"M22 10v6",key:"1lu8f3"}],["path",{d:"M6 12.5V16a6 3 0 0 0 12 0v-3.5",key:"1r8lef"}]]),_={alchemy:["what-is-ascension"],"ancestral veneration":["honoring-ancestors"],colonialism:["decolonizing-spirituality","understanding-conditioning"],decolonizing:["decolonizing-spirituality"],"divine feminine":["defining-sovereignty"],"sacred masculine":["defining-sovereignty"],frequency:["what-is-ascension","first-meditation"],"frequency elevation":["first-meditation"],grounding:["first-meditation"],kundalini:["what-is-ascension"],"kundalini awakening":["what-is-ascension"],"light body":["what-is-ascension"],"shadow self":["meeting-your-shadow"],sovereignty:["defining-sovereignty"],"spiritual sovereignty":["defining-sovereignty"],transmutation:["meeting-your-shadow"],"dense energy":["meeting-your-shadow","healing-generational-trauma"],"energy clearing":["first-meditation","healing-generational-trauma"],"heart coherence":["first-meditation"],coherence:["first-meditation"],epigenetics:["healing-generational-trauma"],"dna activation":["healing-generational-trauma"],"spiritual integration":["defining-sovereignty"],patriarchy:["decolonizing-spirituality","understanding-conditioning"],"christ consciousness":["what-is-ascension"],"womb consciousness":["defining-sovereignty"],"womb space":["defining-sovereignty"],"energetic boundaries":["healing-generational-trauma"],"sacred space":["honoring-ancestors","first-meditation"],"sacred sound":["first-meditation"],"transcendent function":["meeting-your-shadow"],"yan daudu":["decolonizing-spirituality"],chibados:["decolonizing-spirituality"],mino:["decolonizing-spirituality","defining-sovereignty"],"mawu-lisa":["decolonizing-spirituality","defining-sovereignty"],queenmother:["defining-sovereignty"],"nana buluku":["decolonizing-spirituality"],"matrilineal descent":["decolonizing-spirituality","defining-sovereignty"],sekhet:["decolonizing-spirituality"],pangool:["honoring-ancestors","decolonizing-spirituality"],"roog sene":["decolonizing-spirituality","defining-sovereignty"],wangala:["decolonizing-spirituality"],songsarek:["decolonizing-spirituality"],nokma:["decolonizing-spirituality","defining-sovereignty"]},I={"ancestral veneration":["Ancestral Invocation","Gratitude to the Ancestors"],grounding:["Grounding Breath"],"frequency elevation":["Kemetic Sun Salutation","Grounding Breath"],"sacred space":["Ancestral Invocation"],"shadow self":["Shadow Journal Prompts","Full Moon Release Ritual"],transmutation:["Full Moon Release Ritual"],"dense energy":["Full Moon Release Ritual"],"energy clearing":["Grounding Breath","Full Moon Release Ritual"],"heart coherence":["Grounding Breath"],coherence:["Grounding Breath"],sovereignty:["Morning Sovereignty Affirmations"],"spiritual sovereignty":["Morning Sovereignty Affirmations"],"divine feminine":["Inner Child Meditation"],"womb consciousness":["Inner Child Meditation"],"sacred sound":["Kemetic Sun Salutation"],"sacred masculine":["Kemetic Sun Salutation","Morning Sovereignty Affirmations"],frequency:["Grounding Breath","Kemetic Sun Salutation"],queenmother:["Morning Sovereignty Affirmations"],mino:["Morning Sovereignty Affirmations"],"matrilineal descent":["Ancestral Invocation","Gratitude to the Ancestors"],"nana buluku":["Inner Child Meditation"],"mawu-lisa":["Inner Child Meditation","Grounding Breath"],pangool:["Ancestral Invocation","Gratitude to the Ancestors"],"roog sene":["Inner Child Meditation"],wangala:["Gratitude to the Ancestors"]},R="ABCDEFGHIJKLMNOPQRSTUVWXYZ".split(""),F=()=>{const[a,x]=d.useState(""),[s,u]=d.useState(null),{data:l=[],isLoading:g}=y({queryKey:["glossary_terms"],queryFn:async()=>{const{data:e,error:t}=await p.from("glossary_terms").select("*, ascension_stages(title, slug)").order("term");if(t)throw t;return e}}),{data:f=[]}=y({queryKey:["lessons-for-glossary"],queryFn:async()=>{const{data:e,error:t}=await p.from("lessons").select("id, title, slug, stage_id");if(t)throw t;return e}}),{data:v=[]}=y({queryKey:["practices-for-glossary"],queryFn:async()=>{const{data:e,error:t}=await p.from("practices").select("id, title, stage_id");if(t)throw t;return e}}),b=d.useMemo(()=>new Set(l.map(t=>t.term.charAt(0).toUpperCase())),[l]),c=d.useMemo(()=>l.filter(e=>{const t=!a||e.term.toLowerCase().includes(a.toLowerCase())||e.definition.toLowerCase().includes(a.toLowerCase()),i=!s||e.term.charAt(0).toUpperCase()===s;return t&&i}),[l,a,s]),w=e=>{const t=e.toLowerCase(),i=_[t];return i?f.filter(o=>i.includes(o.slug)):[]},j=e=>{const t=e.toLowerCase(),i=I[t];return i?v.filter(o=>i.includes(o.title)):[]};return n.jsxs("div",{className:"min-h-screen cosmic-gradient star-field sacred-geometry",children:[n.jsx(C,{}),n.jsxs("main",{className:"container py-12 px-4",children:[n.jsxs(m.div,{initial:{opacity:0,y:20}
6,animate:{opacity:1,y:0},children:[n.jsxs("p",{className:"mb-2 text-sm uppercase tracking-[0.3em] text-primary",children:[n.jsx(k,{className:"mr-1 inline h-4 w-4"}),"Spiritual Glossary"]}),n.jsxs("h1",{className:"mb-2 font-display text-4xl font-bold",children:["Know the ",n.jsx("span",{className:"text-gold-gradient",children:"Language"})]}),n.jsx("p",{className:"mb-8 max-w-2xl text-muted-foreground",children:"A living dictionary of spiritual terms, rooted in ancestral traditions. Each term includes pronunciation, origin, and cultural context."})]}),n.jsxs("div",{className:"mb-4 relative max-w-md",children:[n.jsx(z,{className:"absolute left-3 top-1/2 h-4 w-4 -translate-y-1/2 text-muted-foreground"}),n.jsx(A,{placeholder:"Search terms or definitionsâ¦",value:a,onChange:e=>{x(e.target.value),e.target.value&&u(null)},className:"pl-10 bg-card/50 border-border/50"})]}),n.jsxs("div",{className:"mb-8 flex flex-wrap gap-1",children:[n.jsx("button",{onClick:()=>u(null),className:`h-8 w-8 rounded-md text-xs font-semibold transition-colors ${s===null?"bg-primary text-primary-foreground":"bg-card/50 text-muted-foreground hover:bg-card hover:text-foreground"}`,children:"All"}),R.map(e=>{const t=b.has(e);return n.jsx("button",{onClick:()=>t&&u(s===e?null:e),disabled:!t,className:`h-8 w-8 rounded-md text-xs font-semibold transition-colors ${s===e?"bg-primary text-primary-foreground":t?"bg-card/50 text-muted-foreground hover:bg-card hover:text-foreground cursor-pointer":"bg-card/20 text-muted-foreground/30 cursor-not-allowed"}`,children:e},e)})]}),!g&&n.jsxs("p",{className:"mb-4 text-sm text-muted-foreground",children:[c.length," term",c.length!==1?"s":""," ",s?`starting with "${s}"`:"",a?`matching "${a}"`:""]}),g?n.jsx("div",{className:"grid gap-4 sm:grid-cols-2 lg:grid-cols-3",children:[...Array(6)].map((e,t)=>n.jsx("div",{className:"h-48 animate-pulse rounded-xl bg-card/30"},t))}):n.jsx(m.div,{layout:!0,className:"grid gap-4 sm:grid-cols-2 lg:grid-cols-3",children:n.jsx(S,{mode:"popLayout",children:c.map(e=>{const t=w(e.term),i=j(e.term),o=t.length>0||i.length>0||e.ascension_stages;return n.jsxs(m.div,{layout:!0,initial:{opacity:0,scale:.95},animate:{opacity:1,scale:1},exit:{opacity:0,scale:.95},className:"rounded-xl border border-border/50 bg-card/50 p-6 backdrop-blur-sm transition-colors hover:border-primary/30",children:[n.jsxs("div",{className:"mb-1 flex items-baseline gap-2",children:[n.jsx("h3",{className:"font-display text-lg font-semibold text-foreground",children:e.term}),e.pronunciation&&n.jsxs("span",{className:"text-sm italic text-muted-foreground",children:["/",e.pronunciation,"/"]})]}),e.origin&&n.jsx("p",{className:"mb-2 text-xs uppercase tracking-wider text-primary/70",children:e.origin}),n.jsx("p",{className:"mb-3 text-sm text-muted-foreground leading-relaxed",children:e.definition}),e.cultural_context&&n.jsx("p",{className:"mb-3 text-xs text-muted-foreground/80 italic leading-relaxed",children:e.cultural_context}),o&&n.jsxs("div",{className:"mt-3 flex flex-col gap-1.5 border-t border-border/30 pt-3",children:[e.ascension_stages&&n.jsxs(h,{to:`/ascension/${e.ascension_stages.slug}`,className:"inline-flex items-center gap-1.5 text-xs text-primary hover:underline",children:[n.jsx(L,{className:"h-3 w-3 shrink-0"}),e.ascension_stages.title]}),t.map(r=>n.jsxs(h,{to:`/lesson/${r.slug}`,className:"inline-flex items-center gap-1.5 text-xs text-primary/80 hover:text-primary hover:underline",children:[n.jsx(G,{className:"h-3 w-3 shrink-0"}),r.title]},r.id)),i.map(r=>n.jsxs(h,{to:"/practices",className:"inline-flex items-center gap-1.5 text-xs text-accent-foreground/70 hover:text-accent-foreground hover:underline",children:[n.jsx(M,{className:"h-3 w-3 shrink-0"}),r.title]},r.id))]})]},e.id)})})}),!g&&c.length===0&&n.jsx("p",{className:"mt-8 text-center text-muted-foreground",children:"No terms found matching your search."})]})]})};export{F 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.