1import{n as e,o as t}from"./vendor-query-CZ9kNdGv.js";import{l as n}from"./vendor-router-CuNp8e1k.js";import{n as r}from"./AuthContext-DAJXG1jI.js";import{a as i,c as a,d as o,o as s,s as c}from"./index-CMmTxjEu.js";import{t as l}from"./spiritualGiftCatalog-BKaqBHxb.js";var u=t(),d=[`word_insight`,`care_belonging`,`building_mobilization`,`mission_trust`,`creative_expression`,`prayer_dependence`];function f({catalog:t}={}){let{isAuthenticated:s,isLoading:f}=r(),p=!f&&s,m=p?`Dashboard`:`Sign in`,h=p?`/app`:`/auth/sign-in`,g=e({queryKey:[`spiritual-gifts`,`catalog`],queryFn:l,enabled:!t,initialData:t});if(g.isPending)return null;if(g.error)return(0,u.jsxs)(`p`,{className:`px-6 py-12 text-sm text-rose-700`,children:[`We could not load the spiritual gift catalog. `,g.error.message]});if(!g.data)return(0,u.jsx)(`p`,{className:`px-6 py-12 text-sm text-slate-600`,children:`The spiritual gift catalog is unavailable.`});let _=a(c(g.data)),v=`${_.length} gifts`;return(0,u.jsxs)(`div`,{className:`mx-auto max-w-6xl px-6 py-8 lg:px-8`,children:[(0,u.jsxs)(`header`,{className:`mb-12 flex items-center justify-between`,children:[(0,u.jsxs)(n,{"aria-current":`page`,"aria-label":`Chazown Experience home`,className:`brand-wordmark active`,"data-status":`active`,to:`/`,children:[(0,u.jsx)(`span`,{className:`brand-wordmark-chazown text-xl`,children:`CHAZOWN`}),(0,u.jsx)(`span`,{className:`brand-wordmark-experience text-xl`,children:`EXPERIENCE`})]}),(0,u.jsx)(n,{className:`rounded-md border border-slate-300 bg-white/80 px-4 py-2 text-sm font-medium text-slate-800 shadow-sm hover:bg-white`,to:h,children:m})]}),(0,u.jsxs)(`section`,{className:`rounded-3xl border border-ink-950 bg-ink-950 p-8 text-white shadow-sm md:p-10`,children:[(0,u.jsx)(`h1`,{className:`text-4xl font-semibold tracking-tight md:text-5xl`,children:`Explore spiritual gifts`}),(0,u.jsx)(`p`,{className:`mt-4 max-w-3xl text-sm leading-7 text-brand-100 md:text-base`,children:`Browse each gift, read practical descriptions, and review Scripture-based sources to help you reflect, pray, and take faithful next steps in service.`}),(0,u.jsx)(`div`,{className:`mt-6 flex flex-wrap items-center gap-3`,children:(0,u.jsx)(`span`,{className:`rounded-full bg-white/10 px-3 py-1 text-xs font-medium text-white`,children:v})})]}),(0,u.jsx)(`div`,{className:`mt-10 space-y-8`,children:d.map(e=>{let t=_.filter(t=>t.family===e);return t.length===0?null:(0,u.jsxs)(`section`,{children:[(0,u.jsx)(`h2`,{className:`text-xl font-semibold tracking-tight text-slate-950`,children:o(e)}),(0,u.jsx)(`div`,{className:`mt-4 grid grid-cols-1 gap-4 sm:grid-cols-2 lg:grid-cols-3`,children:t.map(e=>(0,u.jsxs)(`article`,{className:`rounded-2xl border border-slate-200 bg-white p-5 shadow-sm transition hover:border-brand-200 hover:shadow`,children:[(0,u.jsx)(`h3`,{className:`text-base font-semibold text-slate-900`,children:e.displayName}),(0,u.jsx)(`p`,{className:`mt-2 text-sm leading-6 text-slate-600`,children:e.summary}),(0,u.jsx)(`div`,{className:`mt-5`,children:(0,u.jsx)(n,{className:`text-sm font-semibold text-brand-700 hover:text-brand-800`,params:{giftKey:e.key},to:`/spiritual-gifts/$giftKey`,children:`View details`})})]},e.key))})]},e)})}),(0,u.jsx)(i,{})]})}function p(){let{catalog:e}=s.useLoaderData();return(0,u.jsx)(f,{catalog:e})}export{p as component};
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.