PageSourceSearch

https://www.businessbuildersclub.co/assets/DataExplorerViews-0t0FCiDJ.js

js businessbuildersclub.co collected 2026-10-02 01:22:39 UTC 28,264 bytes, 21 lines download raw bytes

1import{c as v,r as m,j as e,X as E}from"./index-Bj8v_TDl.js";import{G as F}from"./grid-3x3-D-yuPGEB.js";import{L as A}from"./layers-Bvl1YPtM.js";import{T as $}from"./tag-CzAjNH6n.js";import{C as O}from"./chart-column-Db0fQjWW.js";import{C as M}from"./command-B4aaoJoQ.js";import{E as P}from"./eye-BDmz7um6.js";import{F as f}from"./file-text-BvKKkeGq.js";import{C as R}from"./chevron-right-DuqZj4mT.js";import{S as B}from"./shuffle-clS21V8X.js";import{B as I}from"./book-open-DXlpmmAr.js";import{H as W}from"./hash-KSwn0t1Q.js";import{S as G}from"./sparkles-C_oz_Z8i.js";import{A as H}from"./arrow-right-B4Jq1JPC.js";import{S as D}from"./search-7MlhR6Gp.js";import{V as L}from"./video-DrpiSw59.js";import{F as q}from"./film-B66dG6Wa.js";import{C as k}from"./chevron-down-DbHd_pTh.js";import{Z as z}from"./zap-D6EvOvS-.js";import{T as _}from"./target-Db2ICdU5.js";import{D as U}from"./database-DyE2B-BU.js";import"./useQuery-C9VpYYNi.js";/**
2 * @license lucide-react v0.453.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 J=v("Dice5",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",ry:"2",key:"1m3agn"}],["path",{d:"M16 8h.01",key:"cr5u4v"}],["path",{d:"M8 8h.01",key:"1e4136"}],["path",{d:"M8 16h.01",key:"18s6g9"}],["path",{d:"M16 16h.01",key:"1f9h7w"}],["path",{d:"M12 12h.01",key:"1mp3jc"}]]);/**
7 * @license lucide-react v0.453.0 - ISC
8 *
9 * This source code is licensed under the ISC license.
10 * See the LICENSE file in the root directory of this source tree.
11 */const K=v("GitBranch",[["line",{x1:"6",x2:"6",y1:"3",y2:"15",key:"17qcm7"}],["circle",{cx:"18",cy:"6",r:"3",key:"1h7g24"}],["circle",{cx:"6",cy:"18",r:"3",key:"fqmcym"}],["path",{d:"M18 9a9 9 0 0 1-9 9",key:"n2h4wq"}]]);/**
12 * @license lucide-react v0.453.0 - ISC
13 *
14 * This source code is licensed under the ISC license.
15 * See the LICENSE file in the root directory of this source tree.
16 */const T=v("SquareSplitVertical",[["path",{d:"M5 8V5c0-1 1-2 2-2h10c1 0 2 1 2 2v3",key:"1pi83i"}],["path",{d:"M19 16v3c0 1-1 2-2 2H7c-1 0-2-1-2-2v-3",key:"ido5k7"}],["line",{x1:"4",x2:"20",y1:"12",y2:"12",key:"1e0a9i"}]]);/**
17 * @license lucide-react v0.453.0 - ISC
18 *
19 * This source code is licensed under the ISC license.
20 * See the LICENSE file in the root directory of this source tree.
21 */const Q=v("Table2",[["path",{d:"M9 3H5a2 2 0 0 0-2 2v4m6-6h10a2 2 0 0 1 2 2v4M9 3v18m0 0h10a2 2 0 0 0 2-2V9M9 21H5a2 2 0 0 1-2-2V9m0 0h18",key:"gugj83"}]]),Y=[{id:"cards",label:"Card Explorer",icon:F,desc:"Browse documents as cards"},{id:"table",label:"Table View",icon:Q,desc:"Spreadsheet-style sortable table"},{id:"modules",label:"Module Map",icon:A,desc:"Visual 12-module grid"},{id:"timeline",label:"Timeline",icon:K,desc:"Journey through the content"},{id:"clusters",label:"Clusters",icon:$,desc:"Category-grouped visualization"},{id:"random",label:"Surprise Me",icon:J,desc:"Random document discovery"},{id:"split",label:"Split View",icon:T,desc:"Compare documents side-by-side"},{id:"summary",label:"Dashboard",icon:O,desc:"AI summary + key stats"},{id:"command",label:"Command",icon:M,desc:"Quick search (Cmd+K)"},{id:"vault",label:"Vault Browse",icon:P,desc:"Browse by vault category"}],x={launch:{bg:"bg-orange-50",text:"text-orange-700",border:"border-orange-200",gradient:"from-orange-500 to-amber-500"},sales:{bg:"bg-emerald-50",text:"text-emerald-700",border:"border-emerald-200",gradient:"from-emerald-500 to-green-500"},delivery:{bg:"bg-blue-50",text:"text-blue-700",border:"border-blue-200",gradient:"from-blue-500 to-indigo-500"},youtube:{bg:"bg-red-50",text:"text-red-700",border:"border-red-200",gradient:"from-red-500 to-rose-500"},scaling:{bg:"bg-purple-50",text:"text-purple-700",border:"border-purple-200",gradient:"from-purple-500 to-fuchsia-500"},community:{bg:"bg-teal-50",text:"text-teal-700",border:"border-teal-200",gradient:"from-teal-500 to-cyan-500"},content:{bg:"bg-amber-50",text:"text-amber-700",border:"border-amber-200",gradient:"from-amber-500 to-yellow-500"},program:{bg:"bg-indigo-50",text:"text-indigo-700",border:"border-indigo-200",gradient:"from-indigo-500 to-violet-500"},profile:{bg:"bg-pink-50",text:"text-pink-700",border:"border-pink-200",gradient:"from-pink-500 to-rose-500"},other:{bg:"bg-gray-50",text:"text-gray-700",border:"border-gray-200",gradient:"from-gray-500 to-slate-500"}},j={docx:f,youtube:L,loom:q},w=[{num:1,title:"Foundation Blueprint",phase:"Foundation",categories:["launch","profile"]},{num:2,title:"Launch Preparation",phase:"Foundation",categories:["launch"]},{num:3,title:"Launch Attract",phase:"Launch Protocol",categories:["launch","content"]},{num:4,title:"Launch Convert",phase:"Launch Protocol",categories:["sales"]},{num:5,title:"Launch Deliver",phase:"Launch Protocol",categories:["delivery","program"]},{num:6,title:"Community Networking",phase:"Community Growth",categories:["community","scaling"]},{num:7,title:"Community Discovery",phase:"Community Growth",categories:["community"]},{num:8,title:"Content Foundation",phase:"Content Authority",categories:["youtube","content"]},{num:9,title:"First Content Piece",phase:"Content Authority",categories:["youtube","content"]},{num:10,title:"Content System",phase:"Content Authority",categories:["youtube","content"]},{num:11,title:"Community Culture",phase:"Scale",categories:["community","scaling"]},{num:12,title:"Program Mastery",phase:"Scale",categories:["program","scaling"]}],N={Foundation:"from-indigo-500 to-violet-500","Launch Protocol":"from-orange-500 to-amber-500","Community Growth":"from-emerald-500 to-green-500","Content Authority":"from-red-500 to-rose-500",Scale:"from-purple-500 to-fuchsia-500"};function Z({active:a,onChange:g}){return e.jsx("div",{className:"bg-white rounded-xl border border-gray-200 p-2",children:e.jsx("div",{className:"flex flex-wrap gap-1",children:Y.map(r=>e.jsxs("button",{onClick:()=>g(r.id),className:`flex items-center gap-1.5 px-3 py-1.5 rounded-lg text-xs font-medium transition-all ${a===r.id?"bg-indigo-600 text-white shadow-sm":"text-gray-500 hover:bg-gray-100 hover:text-gray-700"}`,children:[e.jsx(r.icon,{className:"w-3.5 h-3.5"}),r.label]},r.id))})})}function X({documents:a,onSelect:g}){const[r,o]=m.useState("title"),[t,s]=m.useState("asc"),i=m.useMemo(()=>{const n=[...a];return n.sort((c,h)=>{const u=c[r]??"",p=h[r]??"";return typeof u=="number"&&typeof p=="number"?t==="asc"?u-p:p-u:t==="asc"?String(u).localeCompare(String(p)):String(p).localeCompare(String(u))}),n},[a,r,t]),l=n=>{r===n?s(c=>c==="asc"?"desc":"asc"):(o(n),s("asc"))},d=({col:n})=>r===n?e.jsx(k,{className:`w-3 h-3 transition-transform ${t==="desc"?"rotate-180":""}`}):e.jsx(k,{className:"w-3 h-3 opacity-30"});return e.jsx("div",{className:"bg-white rounded-xl border border-gray-200 overflow-hidden",children:e.jsx("div",{className:"overflow-x-auto",children:e.jsxs("table",{className:"w-full text-sm",children:[e.jsx("thead",{children:e.jsxs("tr",{className:"border-b border-gray-100 bg-gray-50",children:[[{col:"title",label:"Title",width:"w-[40%]"},{col:"category",label:"Category",width:"w-[20%]"},{col:"sourceType",label:"Source",width:"w-[15%]"},{col:"wordCount",label:"Words",width:"w-[15%]"}].map(n=>e.jsx("th",{className:`px-4 py-3 text-left text-xs font-semibold text-gray-500 uppercase tracking-wider cursor-pointer hover:text-gray-700 ${n.width}`,onClick:()=>l(n.col),children:e.jsxs("div",{className:"flex items-center gap-1",children:[n.label," ",e.jsx(d,{col:n.col})]})},n.col)),e.jsx("th",{className:"w-[10%] px-4 py-3"})]})}),e.jsx("tbody",{children:i.map(n=>{var u;const c=x[n.category]||x.other,h=j[n.sourceType]||f;return e.jsxs("tr",{className:"border-b border-gray-50 hover:bg-gray-50 cursor-pointer transition-colors",onClick:()=>g(n),children:[e.jsx("td",{className:"px-4 py-3",children:e.jsx("span",{className:"font-medium text-gray-900 line-clamp-1",children:n.title})}),e.jsx("td",{className:"px-4 py-3",children:e.jsx("span",{className:`px-2 py-0.5 rounded-full text-[10px] font-semibold uppercase border ${c.bg} ${c.text} ${c.border}`,children:n.category})}),e.jsx("td",{className:"px-4 py-3",children:e.jsxs("div",{className:"flex items-center gap-1.5 text-gray-500",children:[e.jsx(h,{className:"w-3.5 h-3.5"})," ",(u=n.sourceType)==null?void 0:u.toUpperCase()]})}),e.jsx("td",{className:"px-4 py-3 text-gray-600 font-mono text-xs",children:(n.wordCount||0).toLocaleStr
21ing()}),e.jsx("td",{className:"px-4 py-3 text-right",children:e.jsx(R,{className:"w-4 h-4 text-gray-400 inline-block"})})]},n.id)})})]})})})}function ee({documents:a,onCategorySelect:g}){const r=m.useMemo(()=>{const o={};return a.forEach(t=>{o[t.category]=(o[t.category]||0)+1}),o},[a]);return e.jsxs("div",{className:"space-y-6",children:[e.jsxs("div",{className:"text-center mb-4",children:[e.jsx("h3",{className:"text-lg font-bold text-gray-900",children:"The Blueprint Method — Module Map"}),e.jsx("p",{className:"text-sm text-gray-500",children:"Click any module to filter documents by its categories"})]}),e.jsx("div",{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-4",children:w.map(o=>{const t=N[o.phase]||N.Foundation,s=o.categories.reduce((i,l)=>i+(r[l]||0),0);return e.jsxs("button",{onClick:()=>g(o.categories[0]),className:"group bg-white rounded-xl border border-gray-200 p-5 text-left hover:shadow-lg transition-all duration-300 relative overflow-hidden",children:[e.jsx("div",{className:`absolute inset-0 bg-gradient-to-br ${t} opacity-0 group-hover:opacity-5 transition-opacity`}),e.jsxs("div",{className:"flex items-start gap-3",children:[e.jsx("div",{className:`w-10 h-10 rounded-lg bg-gradient-to-br ${t} flex items-center justify-center text-white font-bold text-sm shadow-md flex-shrink-0`,children:o.num}),e.jsxs("div",{className:"flex-1 min-w-0",children:[e.jsx("h4",{className:"font-bold text-gray-900 text-sm",children:o.title}),e.jsx("p",{className:"text-xs text-gray-400 mt-0.5",children:o.phase}),e.jsxs("div",{className:"flex items-center gap-2 mt-2",children:[o.categories.map(i=>{const l=x[i]||x.other;return e.jsx("span",{className:`px-2 py-0.5 rounded-full text-[10px] font-semibold uppercase border ${l.bg} ${l.text} ${l.border}`,children:i},i)}),e.jsxs("span",{className:"text-xs text-gray-400 ml-auto",children:[s," docs"]})]})]})]}),e.jsx("div",{className:`absolute bottom-0 left-0 right-0 h-1 bg-gradient-to-r ${t} opacity-0 group-hover:opacity-100 transition-opacity`})]},o.num)})})]})}function te({documents:a}){const g=m.useMemo(()=>{const r=["Foundation","Launch Protocol","Community Growth","Content Authority","Scale"],o={};return w.forEach(t=>t.categories.forEach(s=>{o[s]||(o[s]=t.phase)})),r.map(t=>{const s=w.filter(d=>d.phase===t),i=new Set(s.flatMap(d=>d.categories)),l=a.filter(d=>i.has(d.category));return{phase:t,docs:l,gradient:N[t]||N.Foundation,moduleCount:s.length}})},[a]);return e.jsxs("div",{className:"space-y-8",children:[e.jsxs("div",{className:"text-center mb-4",children:[e.jsx("h3",{className:"text-lg font-bold text-gray-900",children:"Your Evolution Journey"}),e.jsx("p",{className:"text-sm text-gray-500",children:"Follow the path from Foundation to Scale"})]}),e.jsxs("div",{className:"relative",children:[e.jsx("div",{className:"absolute top-6 left-[5%] right-[5%] h-1 bg-gray-200 rounded-full"}),e.jsx("div",{className:"flex justify-between relative z-10 px-[2%]",children:g.map((r,o)=>e.jsxs("div",{className:"flex flex-col items-center",children:[e.jsx("div",{className:`w-12 h-12 rounded-full bg-gradient-to-br ${r.gradient} flex items-center justify-center text-white font-bold text-sm shadow-lg`,children:o+1}),e.jsx("span",{className:"text-xs font-semibold text-gray-700 mt-2 text-center max-w-[100px]",children:r.phase}),e.jsxs("span",{className:"text-[10px] text-gray-400",children:[r.docs.length," docs"]})]},r.phase))})]}),e.jsx("div",{className:"space-y-4",children:g.map(r=>e.jsxs("div",{className:"bg-white rounded-xl border border-gray-200 overflow-hidden",children:[e.jsxs("div",{className:`bg-gradient-to-r ${r.gradient} px-5 py-3 flex items-center justify-between`,children:[e.jsx("h4",{className:"text-white font-bold text-sm",children:r.phase}),e.jsxs("span",{className:"text-white/70 text-xs",children:[r.docs.length," documents · ",r.moduleCount," modules"]})]}),e.jsx("div",{className:"p-4",children:e.jsxs("div",{className:"flex flex-wrap gap-2",children:[r.docs.slice(0,12).map(o=>{const t=x[o.category]||x.other;return e.jsx("div",{className:`px-3 py-2 rounded-lg border ${t.border} ${t.bg} text-xs`,children:e.jsxs("span",{className:`font-medium ${t.text}`,children:[o.title.slice(0,40),o.title.length>40?"...":""]})},o.id)}),r.docs.length>12&&e.jsxs("span",{className:"px-3 py-2 rounded-lg bg-gray-100 text-gray-500 text-xs font-medium",children:["+",r.docs.length-12," more"]})]})})]},r.phase))})]})}function se({documents:a,onCategorySelect:g}){const r=m.useMemo(()=>{const t={};return a.forEach(s=>
21{t[s.category]||(t[s.category]={docs:[],totalWords:0}),t[s.category].docs.push(s),t[s.category].totalWords+=s.wordCount}),Object.entries(t).map(([s,i])=>({category:s,...i})).sort((s,i)=>i.docs.length-s.docs.length)},[a]),o=Math.max(...r.map(t=>t.docs.length),1);return e.jsxs("div",{className:"space-y-6",children:[e.jsxs("div",{className:"text-center mb-4",children:[e.jsx("h3",{className:"text-lg font-bold text-gray-900",children:"Category Clusters"}),e.jsx("p",{className:"text-sm text-gray-500",children:"Explore content organized by topic clusters"})]}),e.jsx("div",{className:"grid grid-cols-2 md:grid-cols-3 lg:grid-cols-5 gap-4",children:r.map(t=>{const s=x[t.category]||x.other,i=Math.max(100,t.docs.length/o*180);return e.jsxs("button",{onClick:()=>g(t.category),className:"group relative flex flex-col items-center justify-center p-6 rounded-2xl border-2 border-gray-200 hover:shadow-xl transition-all duration-300 bg-white overflow-hidden",style:{minHeight:`${i}px`},children:[e.jsx("div",{className:`absolute inset-0 bg-gradient-to-br ${s.gradient} opacity-5 group-hover:opacity-10 transition-opacity`}),e.jsx("div",{className:`text-3xl font-bold ${s.text} mb-1`,children:t.docs.length}),e.jsx("div",{className:"text-xs font-semibold text-gray-700 uppercase tracking-wider",children:t.category}),e.jsxs("div",{className:"text-[10px] text-gray-400 mt-1",children:[(t.totalWords/1e3).toFixed(1),"k words"]}),e.jsx("div",{className:"flex flex-wrap gap-0.5 mt-2 justify-center",children:t.docs.slice(0,5).map(l=>{const d=j[l.sourceType]||f;return e.jsx(d,{className:"w-3 h-3 text-gray-300"},l.id)})})]},t.category)})})]})}function re({documents:a,onSelect:g}){const[r,o]=m.useState([]),t=m.useCallback(()=>{if(a.length===0)return;const s=[...a].sort(()=>Math.random()-.5).slice(0,6);o(s)},[a]);return m.useEffect(()=>{t()},[t]),e.jsxs("div",{className:"space-y-6",children:[e.jsxs("div",{className:"text-center",children:[e.jsx("h3",{className:"text-lg font-bold text-gray-900 mb-1",children:"Surprise Me"}),e.jsx("p",{className:"text-sm text-gray-500 mb-4",children:"Discover random documents from the knowledge base"}),e.jsxs("button",{onClick:t,className:"inline-flex items-center gap-2 px-5 py-2.5 bg-gradient-to-r from-indigo-600 to-purple-600 text-white rounded-xl font-medium text-sm hover:shadow-lg transition-all",children:[e.jsx(B,{className:"w-4 h-4"})," Shuffle Again"]})]}),e.jsx("div",{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-4",children:r.map(s=>{const i=x[s.category]||x.other,l=j[s.sourceType]||f;return e.jsxs("button",{onClick:()=>g(s),className:"bg-white rounded-xl border border-gray-200 p-5 text-left hover:shadow-md transition-all group",children:[e.jsxs("div",{className:"flex items-start justify-between gap-2 mb-3",children:[e.jsx("h4",{className:"font-semibold text-gray-900 text-sm leading-snug line-clamp-2 group-hover:text-indigo-600 transition-colors",children:s.title}),e.jsx(l,{className:"w-4 h-4 text-gray-400 flex-shrink-0"})]}),e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx("span",{className:`px-2 py-0.5 rounded-full text-[10px] font-semibold uppercase border ${i.bg} ${i.text} ${i.border}`,children:s.category}),e.jsxs("span",{className:"text-xs text-gray-400",children:[(s.wordCount||0).toLocaleString()," words"]})]})]},s.id)})})]})}function ae({documents:a,onSelect:g}){const[r,o]=m.useState(null),[t,s]=m.useState(null),[i,l]=m.useState(""),[d,n]=m.useState(""),c=u=>{if(!u)return a.slice(0,20);const p=u.toLowerCase();return a.filter(y=>y.title.toLowerCase().includes(p)).slice(0,20)},h=({search:u,setSearch:p,selected:y,onPick:C,side:V})=>e.jsx("div",{className:"flex-1 min-w-0",children:e.jsxs("div",{className:"bg-white rounded-xl border border-gray-200 overflow-hidden h-full",children:[e.jsx("div",{className:"p-3 border-b border-gray-100 bg-gray-50",children:e.jsxs("div",{className:"relative",children:[e.jsx(D,{className:"absolute left-2.5 top-1/2 -translate-y-1/2 w-3.5 h-3.5 text-gray-400"}),e.jsx("input",{type:"text",placeholder:`Search ${V} document...`,value:u,onChange:b=>p(b.target.value),className:"w-full pl-8 pr-3 py-2 text-xs border border-gray-200 rounded-lg focus:outline-none focus:ring-2 focus:ring-indigo-500"})]})}),y?e.jsxs("div",{className:"p-4",children:[e.jsxs("div",{className:"flex items-center justify-between mb-2",children:[e.jsx("h4",{className:"font-semibold text-gray-900 text-sm",children:y.title}),e.jsx("button",{onClick:()=>C(null),className:"text-gray-400 hover:text-gray-600",children:e.jsx(E,{className:"w-4 h-4"})})]}),e.jsxs("div",{className:"flex items-center gap-2 mb-3",children:[e.jsx("span",{className:`px-2 py-0.5 rounded-full text-[10px] font-semibold uppercase border ${(x[y.category]||x.other).bg} ${(x[y.category]||x.other).text} ${(x[y.category]||x.other).border}`,children:y.category}),e.jsxs("span",{className:"text-xs text-gray-400",children:[y.wordCount.toLocaleStr
21ing()," words"]})]}),e.jsx("div",{className:"bg-gray-50 rounded-lg p-3 text-xs text-gray-600 max-h-[400px] overflow-y-auto",children:"Click to view full document in the Card Explorer view."})]}):e.jsx("div",{className:"p-2 max-h-[400px] overflow-y-auto space-y-1",children:c(u).map(b=>{const S=x[b.category]||x.other;return e.jsxs("button",{onClick:()=>C(b),className:"w-full text-left px-3 py-2 rounded-lg hover:bg-gray-50 transition-colors text-xs",children:[e.jsx("div",{className:"font-medium text-gray-900 line-clamp-1",children:b.title}),e.jsxs("div",{className:"flex items-center gap-2 mt-0.5",children:[e.jsx("span",{className:`px-1.5 py-0.5 rounded-full text-[9px] font-semibold uppercase ${S.bg} ${S.text}`,children:b.category}),e.jsxs("span",{className:"text-gray-400",children:[b.wordCount.toLocaleString()," w"]})]})]},b.id)})})]})});return e.jsxs("div",{className:"space-y-4",children:[e.jsxs("div",{className:"text-center mb-2",children:[e.jsx("h3",{className:"text-lg font-bold text-gray-900",children:"Split Comparison"}),e.jsx("p",{className:"text-sm text-gray-500",children:"Compare two documents side by side"})]}),e.jsxs("div",{className:"flex gap-4",children:[e.jsx(h,{search:i,setSearch:l,selected:r,onPick:o,side:"left"}),e.jsx("div",{className:"flex items-center",children:e.jsx(T,{className:"w-5 h-5 text-gray-300"})}),e.jsx(h,{search:d,setSearch:n,selected:t,onPick:s,side:"right"})]})]})}function oe({documents:a,stats:g}){const r=m.useMemo(()=>{const t={},s={};a.forEach(c=>{t[c.category]||(t[c.category]={count:0,words:0}),t[c.category].count++,t[c.category].words+=c.wordCount,s[c.sourceType]=(s[c.sourceType]||0)+1});const i=Object.entries(t).map(([c,h])=>({category:c,...h})).sort((c,h)=>h.count-c.count),l=a.reduce((c,h)=>c+h.wordCount,0),d=a.length>0?Math.round(l/a.length):0,n=a.reduce((c,h)=>h.wordCount>((c==null?void 0:c.wordCount)||0)?h:c,a[0]);return{topCategories:i,bySource:s,totalWords:l,avgWords:d,longestDoc:n}},[a]),o=Math.max(...r.topCategories.map(t=>t.count),1);return e.jsxs("div",{className:"space-y-6",children:[e.jsxs("div",{className:"text-center mb-4",children:[e.jsx("h3",{className:"text-lg font-bold text-gray-900",children:"Knowledge Base Dashboard"}),e.jsx("p",{className:"text-sm text-gray-500",children:"AI-powered summary of your entire knowledge base"})]}),e.jsx("div",{className:"grid grid-cols-2 md:grid-cols-4 gap-4",children:[{label:"Documents",value:a.length,icon:f,color:"text-indigo-600 bg-indigo-50"},{label:"Total Words",value:`${(r.totalWords/1e3).toFixed(1)}k`,icon:I,color:"text-emerald-600 bg-emerald-50"},{label:"Avg per Doc",value:`${(r.avgWords/1e3).toFixed(1)}k`,icon:W,color:"text-purple-600 bg-purple-50"},{label:"Categories",value:r.topCategories.length,icon:$,color:"text-amber-600 bg-amber-50"}].map(t=>e.jsxs("div",{className:"bg-white rounded-xl border border-gray-200 p-4 flex items-center gap-3",children:[e.jsx("div",{className:`p-2.5 rounded-lg ${t.color}`,children:e.jsx(t.icon,{className:"w-5 h-5"})}),e.jsxs("div",{children:[e.jsx("div",{className:"text-2xl font-bold text-gray-900",children:t.value}),e.jsx("div",{className:"text-xs text-gray-500",children:t.label})]})]},t.label))}),e.jsxs("div",{className:"bg-white rounded-xl border border-gray-200 p-5",children:[e.jsx("h4",{className:"font-semibold text-gray-900 mb-4",children:"Category Distribution"}),e.jsx("div",{className:"space-y-3",children:r.topCategories.map(t=>{const s=x[t.category]||x.other,i=Math.round(t.count/o*100);return e.jsxs("div",{className:"flex items-center gap-3",children:[e.jsx("span",{className:`w-20 px-2 py-0.5 rounded-full text-[10px] font-semibold uppercase text-center border ${s.bg} ${s.text} ${s.border}`,children:t.category}),e.jsx("div",{className:"flex-1 h-6 bg-gray-100 rounded-full overflow-hidden",children:e.jsx("div",{className:`h-full bg-gradient-to-r ${s.gradient} rounded-full transition-all duration-500`,style:{width:`${i}%`}})}),e.jsxs("span",{className:"text-xs text-gray-500 font-mono w-16 text-right",children:[t.count," docs"]}),e.jsxs("span",{className:"text-xs text-gray-400 font-mono w-20 text-right",children:[(t.words/1e3).toFixed(1),"k words"]})]},t.category)})})]}),e.jsxs("div",{className:"bg-white rounded-xl border border-gray-200 p-5",children:[e.jsx("h4",{className:"font-semibold text-gray-900 mb-4",children:"Source Types"}),e.jsx("div",{className:"flex gap-4",children:Object.entries(r.bySource).map(([t,s])=>{const i=j[t]||f;return e.jsxs("div",{className:"flex-1 bg-gray-50 rounded-xl p-4 text-center",children:[e.jsx(i,{className:"w-8 h-8 text-gray-400 mx-auto mb-2"}),e.jsx("div",{className:"text-2xl font-bold text-gray-900",children:s}),e.jsx("div",{className:"text-xs text-gray-500 uppercase",children:t})]},t)})})]}),r.longestDoc&&e.jsxs("div",{className:"bg-gradient-to-r from-indigo-50 to-purple-50 rounded-xl border border-indigo-200 p-5",children:[e.jsxs("div",{className:"flex items-center gap-2 mb-1",children:[e.jsx(G,{className:"w-4 h-4 text-indigo-600"}),e.jsx("span",{className:"text-xs font-semibold text-indigo-600 uppercase",children:"Deepest Document"})]}),e.jsx("h4",{className:"font-bold text-gray-900",children:r.longestDoc.title}),e.jsxs("p",{className:"text-sm text-gray-500",children:[(r.longestDoc.wordCount||0).toLocaleStr
21ing()," words · ",r.longestDoc.category]})]})]})}function le({documents:a,onSelect:g,onClose:r}){const[o,t]=m.useState(""),s=m.useRef(null);m.useEffect(()=>{var l;(l=s.current)==null||l.focus()},[]);const i=m.useMemo(()=>{if(!o)return a.slice(0,10);const l=o.toLowerCase();return a.filter(d=>d.title.toLowerCase().includes(l)||d.category.includes(l)).slice(0,10)},[a,o]);return e.jsx("div",{className:"space-y-4",children:e.jsxs("div",{className:"bg-white rounded-2xl border-2 border-indigo-200 shadow-2xl overflow-hidden",children:[e.jsx("div",{className:"p-4 border-b border-gray-100",children:e.jsxs("div",{className:"flex items-center gap-3",children:[e.jsx(M,{className:"w-5 h-5 text-indigo-500"}),e.jsx("input",{ref:s,type:"text",placeholder:"Search documents, categories, keywords...",value:o,onChange:l=>t(l.target.value),className:"flex-1 text-lg font-medium text-gray-900 outline-none placeholder-gray-400"}),e.jsx("kbd",{className:"px-2 py-0.5 rounded bg-gray-100 text-gray-500 text-xs font-mono",children:"ESC"})]})}),e.jsx("div",{className:"max-h-[500px] overflow-y-auto",children:i.length>0?i.map(l=>{const d=x[l.category]||x.other,n=j[l.sourceType]||f;return e.jsxs("button",{onClick:()=>g(l),className:"w-full text-left px-5 py-3 flex items-center gap-3 hover:bg-indigo-50 transition-colors border-b border-gray-50",children:[e.jsx(n,{className:"w-4 h-4 text-gray-400 flex-shrink-0"}),e.jsxs("div",{className:"flex-1 min-w-0",children:[e.jsx("div",{className:"font-medium text-gray-900 text-sm line-clamp-1",children:l.title}),e.jsxs("div",{className:"flex items-center gap-2 mt-0.5",children:[e.jsx("span",{className:`px-1.5 py-0.5 rounded-full text-[9px] font-semibold uppercase ${d.bg} ${d.text}`,children:l.category}),e.jsxs("span",{className:"text-[10px] text-gray-400",children:[(l.wordCount||0).toLocaleString()," words"]})]})]}),e.jsx(H,{className:"w-4 h-4 text-gray-300"})]},l.id)}):e.jsxs("div",{className:"p-8 text-center text-gray-400",children:[e.jsx(D,{className:"w-8 h-8 mx-auto mb-2 opacity-50"}),e.jsxs("p",{className:"text-sm",children:['No documents matching "',o,'"']})]})}),e.jsxs("div",{className:"px-4 py-2 bg-gray-50 border-t border-gray-100 flex items-center gap-4 text-[10px] text-gray-400",children:[e.jsxs("span",{children:[i.length," results"]}),e.jsx("span",{children:"·"}),e.jsx("span",{children:"Type to search"})]})]})})}function ie({documents:a,onCategorySelect:g}){const r=[{id:"launch",name:"Launch Vault",categories:["launch"],icon:z,gradient:"from-orange-500 to-amber-500"},{id:"sales",name:"Sales Vault",categories:["sales"],icon:_,gradient:"from-emerald-500 to-green-500"},{id:"youtube",name:"Content Vault",categories:["youtube","content"],icon:L,gradient:"from-red-500 to-rose-500"},{id:"community",name:"Community Vault",categories:["community","scaling","program","delivery"],icon:U,gradient:"from-teal-500 to-cyan-500"}],o=m.useMemo(()=>{const t={};return r.forEach(s=>{t[s.id]=a.filter(i=>s.categories.includes(i.category)).length}),t},[a]);return e.jsxs("div",{className:"space-y-6",children:[e.jsxs("div",{className:"text-center mb-4",children:[e.jsx("h3",{className:"text-lg font-bold text-gray-900",children:"Vault Browser"}),e.jsx("p",{className:"text-sm text-gray-500",children:"Access documents organized by strategic vaults"})]}),e.jsx("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-6",children:r.map(t=>e.jsxs("button",{onClick:()=>g(t.categories[0]),className:"group relative bg-white rounded-2xl border-2 border-gray-200 p-8 text-left hover:shadow-xl transition-all duration-300 overflow-hidden",children:[e.jsx("div",{className:`absolute inset-0 bg-gradient-to-br ${t.gradient} opacity-0 group-hover:opacity-5 transition-opacity`}),e.jsx("div",{className:`w-14 h-14 rounded-xl bg-gradient-to-br ${t.gradient} flex items-center justify-center mb-4 shadow-lg`,children:e.jsx(t.icon,{className:"w-7 h-7 text-white"})}),e.jsx("h4",{className:"text-xl font-bold text-gray-900 mb-2",children:t.name}),e.jsxs("div",{className:"flex items-center gap-3 text-xs text-gray-400",children:[e.jsxs("span",{children:[o[t.id]," documents"]}),e.jsx("span",{children:"·"}),e.jsx("span",{children:t.categories.join(", ")})]}),e.jsx("div",{className:`absolute bottom-0 left-0 right-0 h-1 bg-gradient-to-r ${t.gradient} opacity-0 group-hover:opacity-100 transition-opacity`})]},t.id))})]})}function Le({documents:a,stats:g,onDocumentSelect:r,onCategoryFilter:o,onViewChange:t}){const[s,i]=m.useState("cards"),l=m.useCallback(d=>{i(d),t==null||t(d)},[t]);return e.jsxs("div",{className:"space-y-4",children:[e.jsx(Z,{active:s,onChange:l}),s==="cards"&&null,s==="table"&&e.jsx(X,{documents:a,onSelect:r}),s==="modules"&&e.jsx(ee,{documents:a,onCategorySelect:o}),s==="timeline"&&e.jsx(te,{documents:a}
21),s==="clusters"&&e.jsx(se,{documents:a,onCategorySelect:o}),s==="random"&&e.jsx(re,{documents:a,onSelect:r}),s==="split"&&e.jsx(ae,{documents:a,onSelect:r}),s==="summary"&&e.jsx(oe,{documents:a,stats:g}),s==="command"&&e.jsx(le,{documents:a,onSelect:r,onClose:()=>i("cards")}),s==="vault"&&e.jsx(ie,{documents:a,onCategorySelect:o})]})}export{Y as VIEW_OPTIONS,Le 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.