@ltm-blueverse/alpha-hub-studio 0.7.0 → 0.7.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -20
- package/package.json +6 -17
- package/static/assets/DecisionWorkspace-BbxYoPCv.js +1 -0
- package/static/assets/{DiffMergeWorkspace-C8yIdDC7.js → DiffMergeWorkspace-I9BcvT3J.js} +1 -1
- package/static/assets/EntityResolutionTab-DZME6ngq.js +6 -0
- package/static/assets/{GraphInspectorPanel-Bbrbhd03.js → GraphInspectorPanel-ZkQtr_Oa.js} +1 -1
- package/static/assets/{GraphWorkspace-AxTFEhNP.js → GraphWorkspace-DjKI1vje.js} +37 -37
- package/static/assets/{ImportExportWorkspace-BK3TofDv.js → ImportExportWorkspace-FesluaxV.js} +2 -2
- package/static/assets/KGOverviewTab-CIuFOyUa.js +1 -0
- package/static/assets/LineageDiagram-BlTkwTG_.js +27 -0
- package/static/assets/{MarkdownContentViewer-Chx4ysCK.js → MarkdownContentViewer-B2I-lKUf.js} +4 -4
- package/static/assets/{MemoryWorkspace-CIjaTN_S.js → MemoryWorkspace-CbGHQGJQ.js} +2 -2
- package/static/assets/{OntologySummaryTab-NJ3ZrkoJ.js → OntologySummaryTab-Q3rXi9jh.js} +1 -1
- package/static/assets/{ReasoningWorkspace-B127Rd-S.js → ReasoningWorkspace-DSYffkef.js} +2 -2
- package/static/assets/RegistryTab-C9IfTx8j.js +11 -0
- package/static/assets/{SparqlWorkspace-RwPj2YK7.js → SparqlWorkspace-BHAlhIXU.js} +3 -3
- package/static/assets/{TimelinePanel-DmtiXgmN.js → TimelinePanel-D50aWGS7.js} +1 -1
- package/static/assets/{VocabularyWorkspace-YF9waL5N.js → VocabularyWorkspace-BUFmkjyq.js} +6 -6
- package/static/assets/{book-open-BqEIxx1e.js → book-open-CEYwt1ql.js} +1 -1
- package/static/assets/{chevron-right-CiEuNwKq.js → chevron-right-BnjhfQ0S.js} +1 -1
- package/static/assets/{circle-check-BToWKwbO.js → circle-check-CzC458Im.js} +1 -1
- package/static/assets/{copy-BfQXGhHP.js → copy-D1MBJLmb.js} +1 -1
- package/static/assets/{download-gQOgYz3q.js → download-BiH8WZKH.js} +1 -1
- package/static/assets/{external-link-DqNu6T-f.js → external-link-BRF01S2q.js} +1 -1
- package/static/assets/{file-text-Bbz-r0FQ.js → file-text-bY52r7Yt.js} +1 -1
- package/static/assets/{git-branch-B8yDcUSY.js → git-branch-apSLSDgQ.js} +1 -1
- package/static/assets/graphTheme-DCTRN8Qm.js +6 -0
- package/static/assets/{index-Bt8w1Tz_.css → index-3PtcB4_T.css} +1 -1
- package/static/assets/{index-DHWWI-uw.js → index-CVYHt6Z6.js} +81 -81
- package/static/assets/{index-Dli_3Iwd.js → index-D0ErQ1c2.js} +1 -1
- package/static/assets/{index-DtC_GayB.js → index-D1_G_our.js} +1 -1
- package/static/assets/index-DPG7Yem6.js +127 -0
- package/static/assets/{info-vaffNQOD.js → info-Bxj0ofiy.js} +1 -1
- package/static/assets/{layers-Cct6D_wK.js → layers-CXZNgF0V.js} +1 -1
- package/static/assets/{loader-circle-C8NUmtFx.js → loader-circle-CmyLCPAg.js} +1 -1
- package/static/assets/{neighborhoodPanelPlugin-w1yJlm0A.js → neighborhoodPanelPlugin-gLy7GAga.js} +1 -1
- package/static/assets/{pencil-DYlEC6ri.js → pencil-COLtDS12.js} +1 -1
- package/static/assets/{play-G1gyOk2a.js → play-CG0LOI9D.js} +1 -1
- package/static/assets/{queries-CYtdSB4H.js → queries-AYIcORqv.js} +1 -1
- package/static/assets/{refresh-cw-CL9OXZ89.js → refresh-cw-B1c5rNMc.js} +1 -1
- package/static/assets/{registryStore-MVt_NgVV.js → registryStore-BPopBcrC.js} +1 -1
- package/static/assets/{style-D8TqSrGs.js → style-DGS084C0.js} +1 -1
- package/static/assets/temporalOverlayPlugin-DzF7xO4p.js +1 -0
- package/static/assets/{trash-2-DiZNV6Gj.js → trash-2-CLBVEYNO.js} +1 -1
- package/static/assets/{x-DpqMYq96.js → x-lyk2jiOu.js} +1 -1
- package/static/index.html +3 -3
- package/static/assets/DecisionWorkspace-DG6zPNls.js +0 -1
- package/static/assets/EntityResolutionTab-RBysMLhB.js +0 -6
- package/static/assets/KGOverviewTab-D9EWKL_n.js +0 -1
- package/static/assets/LineageDiagram-XxBVa1Ij.js +0 -27
- package/static/assets/RegistryTab-BE2-yKLC.js +0 -11
- package/static/assets/graphTheme-DNKLxzKZ.js +0 -6
- package/static/assets/index-MVDNL3vw.js +0 -127
- package/static/assets/temporalOverlayPlugin-CRhLa1FU.js +0 -1
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{j as s,S as w,a as j,c as k,A}from"./index-DHWWI-uw.js";import{a as D}from"./query-vendor-BqVbYexz.js";import{I as H}from"./info-vaffNQOD.js";function E(m){const e=(m??"").toLowerCase();return e.includes("approv")||e.includes("accept")?{color:"#6ee7b7",bg:"var(--ws-green-soft)",border:"rgba(76,195,138,0.3)"}:e.includes("reject")||e.includes("denied")||e.includes("fail")?{color:"#fca5a5",bg:"var(--ws-red-soft)",border:"rgba(255,123,114,0.3)"}:e.includes("defer")||e.includes("pending")||e.includes("review")?{color:"#fbbf24",bg:"var(--ws-amber-soft)",border:"rgba(242,182,109,0.3)"}:{color:"var(--ws-text-muted)",bg:"rgba(255,255,255,0.04)",border:"rgba(255,255,255,0.1)"}}function v(m){const e=k.c(10);if(e[0]!=="00be0a163b7d7a4979f3871a5776c3d2cf3bf35ef7132da7c9b04a6ab40d8ccd"){for(let p=0;p<10;p+=1)e[p]=Symbol.for("react.memo_cache_sentinel");e[0]="00be0a163b7d7a4979f3871a5776c3d2cf3bf35ef7132da7c9b04a6ab40d8ccd"}const{outcome:o}=m;let u;e[1]!==o?(u=E(o),e[1]=o,e[2]=u):u=e[2];const c=u,l=`1px solid ${c.border}`;let t;e[3]!==c.bg||e[4]!==c.color||e[5]!==l?(t={display:"inline-block",padding:"2px 8px",borderRadius:999,fontSize:10,fontWeight:800,letterSpacing:"0.08em",textTransform:"uppercase",color:c.color,background:c.bg,border:l},e[3]=c.bg,e[4]=c.color,e[5]=l,e[6]=t):t=e[6];const i=o||"unknown";let a;return e[7]!==t||e[8]!==i?(a=s.jsxDEV("span",{style:t,children:i},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/DecisionWorkspace/DecisionWorkspace.tsx",lineNumber:73,columnNumber:10},this),e[7]=t,e[8]=i,e[9]=a):a=e[9],a}const W=["#ff2d4b","#4cc38a","#ff7a45","#c084fc","#ff7b72","#38bdf8","#a78bfa"];function I(m){const e=k.c(18);if(e[0]!=="00be0a163b7d7a4979f3871a5776c3d2cf3bf35ef7132da7c9b04a6ab40d8ccd"){for(let N=0;N<18;N+=1)e[N]=Symbol.for("react.memo_cache_sentinel");e[0]="00be0a163b7d7a4979f3871a5776c3d2cf3bf35ef7132da7c9b04a6ab40d8ccd"}const{step:o,index:u}=m,c=W[u%W.length],l=`1px solid ${c}28`,t=`3px solid ${c}`;let i;e[1]!==l||e[2]!==t?(i={padding:"14px 16px",borderRadius:"var(--ws-radius)",background:"var(--ws-surface)",border:l,borderLeft:t,position:"relative"},e[1]=l,e[2]=t,e[3]=i):i=e[3];let a;e[4]!==c||e[5]!==o.type?(a=o.type&&s.jsxDEV("div",{style:{fontFamily:"monospace",fontSize:10,fontWeight:700,letterSpacing:"0.1em",textTransform:"uppercase",color:c,marginBottom:5},children:o.type},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/DecisionWorkspace/DecisionWorkspace.tsx",lineNumber:123,columnNumber:23},this),e[4]=c,e[5]=o.type,e[6]=a):a=e[6];let p;e[7]===Symbol.for("react.memo_cache_sentinel")?(p={color:"var(--ws-text)",fontSize:13,fontWeight:600},e[7]=p):p=e[7];const d=o.content||o.id;let b;e[8]!==d?(b=s.jsxDEV("div",{style:p,children:d},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/DecisionWorkspace/DecisionWorkspace.tsx",lineNumber:152,columnNumber:10},this),e[8]=d,e[9]=b):b=e[9];let x;e[10]!==o.content||e[11]!==o.id?(x=o.id&&o.id!==o.content&&s.jsxDEV("div",{style:{fontFamily:"monospace",fontSize:10,color:"var(--ws-text-dim)",marginTop:3},children:o.id},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/DecisionWorkspace/DecisionWorkspace.tsx",lineNumber:160,columnNumber:49},this),e[10]=o.content,e[11]=o.id,e[12]=x):x=e[12];let h;return e[13]!==i||e[14]!==a||e[15]!==b||e[16]!==x?(h=s.jsxDEV("div",{style:i,children:[a,b,x]},void 0,!0,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/DecisionWorkspace/DecisionWorkspace.tsx",lineNumber:174,columnNumber:10},this),e[13]=i,e[14]=a,e[15]=b,e[16]=x,e[17]=h):h=e[17],h}function L(m){const e=k.c(11);if(e[0]!=="00be0a163b7d7a4979f3871a5776c3d2cf3bf35ef7132da7c9b04a6ab40d8ccd"){for(let b=0;b<11;b+=1)e[b]=Symbol.for("react.memo_cache_sentinel");e[0]="00be0a163b7d7a4979f3871a5776c3d2cf3bf35ef7132da7c9b04a6ab40d8ccd"}const{label:o}=m;let u,c,l,t,i;e[1]===Symbol.for("react.memo_cache_sentinel")?(u={display:"flex",flexDirection:"column",alignItems:"center",gap:0,padding:"2px 0"},c=s.jsxDEV("div",{style:{width:2,height:10,background:"var(--ws-border)"}},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/DecisionWorkspace/DecisionWorkspace.tsx",lineNumber:209,columnNumber:10},this),l={display:"flex",alignItems:"center",gap:6,padding:"3px 10px",borderRadius:999,background:"var(--ws-accent-soft)",border:"1px solid var(--ws-border-strong)",maxWidth:260},t=s.jsxDEV(A,{size:10,color:"var(--ws-accent)"},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/DecisionWorkspace/DecisionWorkspace.tsx",lineNumber:224,columnNumber:10},this),i={fontSize:10,fontWeight:700,color:"var(--ws-accent)",letterSpacing:"0.06em",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},e[1]=u,e[2]=c,e[3]=l,e[4]=t,e[5]=i):(u=e[1],c=e[2],l=e[3],t=e[4],i=e[5]);let a;e[6]!==o?(a=s.jsxDEV("div",{style:l,children:[t,s.jsxDEV("span",{style:i,children:o},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/DecisionWorkspace/DecisionWorkspace.tsx",lineNumber:248,columnNumber:30},this)]},void 0,!0,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/DecisionWorkspace/DecisionWorkspace.tsx",lineNumber:248,columnNumber:10},this),e[6]=o,e[7]=a):a=e[7];let p;e[8]===Symbol.for("react.memo_cache_sentinel")?(p=s.jsxDEV("div",{style:{width:2,height:10,background:"var(--ws-border)"}},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/DecisionWorkspace/DecisionWorkspace.tsx",lineNumber:256,columnNumber:10},this),e[8]=p):p=e[8];let d;return e[9]!==a?(d=s.jsxDEV("div",{style:u,children:[c,a,p]},void 0,!0,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/DecisionWorkspace/DecisionWorkspace.tsx",lineNumber:267,columnNumber:10},this),e[9]=a,e[10]=d):d=e[10],d}function U(m){const e=k.c(8);if(e[0]!=="00be0a163b7d7a4979f3871a5776c3d2cf3bf35ef7132da7c9b04a6ab40d8ccd"){for(let i=0;i<8;i+=1)e[i]=Symbol.for("react.memo_cache_sentinel");e[0]="00be0a163b7d7a4979f3871a5776c3d2cf3bf35ef7132da7c9b04a6ab40d8ccd"}const{chain:o,loading:u}=m;if(u){let i;return e[1]===Symbol.for("react.memo_cache_sentinel")?(i=s.jsxDEV("div",{style:{display:"flex",flexDirection:"column",gap:8},children:[1,2,3].map(V)},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/DecisionWorkspace/DecisionWorkspace.tsx",lineNumber:290,columnNumber:12},this),e[1]=i):i=e[1],i}if(!o.length){let i;return e[2]===Symbol.for("react.memo_cache_sentinel")?(i=s.jsxDEV("div",{className:"ws-empty",children:[s.jsxDEV("div",{className:"ws-empty-icon",children:s.jsxDEV(H,{size:28},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/DecisionWorkspace/DecisionWorkspace.tsx",lineNumber:304,columnNumber:69},this)},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/DecisionWorkspace/DecisionWorkspace.tsx",lineNumber:304,columnNumber:38},this),s.jsxDEV("div",{className:"ws-empty-title",children:"No chain steps"},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/DecisionWorkspace/DecisionWorkspace.tsx",lineNumber:304,columnNumber:93},this),s.jsxDEV("div",{className:"ws-empty-body",children:"No causal chain steps were found for this decision."},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/DecisionWorkspace/DecisionWorkspace.tsx",lineNumber:304,columnNumber:145},this)]},void 0,!0,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/DecisionWorkspace/DecisionWorkspace.tsx",lineNumber:304,columnNumber:12},this),e[2]=i):i=e[2],i}let c;e[3]===Symbol.for("react.memo_cache_sentinel")?(c={display:"flex",flexDirection:"column"},e[3]=c):c=e[3];let l;e[4]!==o?(l=o.map((i,a)=>s.jsxDEV("div",{children:[s.jsxDEV(I,{step:i,index:a},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/DecisionWorkspace/DecisionWorkspace.tsx",lineNumber:323,columnNumber:66},this),a<o.length-1&&s.jsxDEV(L,{label:o[a+1]?.relationship||"→"},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/DecisionWorkspace/DecisionWorkspace.tsx",lineNumber:323,columnNumber:130},this)]},`${i.id}-${a}`,!0,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/DecisionWorkspace/DecisionWorkspace.tsx",lineNumber:323,columnNumber:35},this)),e[4]=o,e[5]=l):l=e[5];let t;return e[6]!==l?(t=s.jsxDEV("div",{style:c,children:l},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/DecisionWorkspace/DecisionWorkspace.tsx",lineNumber:331,columnNumber:10},this),e[6]=l,e[7]=t):t=e[7],t}function V(m){return s.jsxDEV("div",{className:"ws-skeleton",style:{height:68}},m,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/DecisionWorkspace/DecisionWorkspace.tsx",lineNumber:340,columnNumber:10},this)}function $(){const[m,e]=D.useState([]),[o,u]=D.useState(null),[c,l]=D.useState([]),[t,i]=D.useState(!1),[a,p]=D.useState(!0),[d,b]=D.useState(""),[x,h]=D.useState(""),N=D.useRef(null);D.useEffect(()=>{const n=new AbortController;return p(!0),h(""),fetch("/api/decisions",{signal:n.signal}).then(async r=>{if(!r.ok)throw new Error(`HTTP ${r.status}`);const f=await r.json();return r.status===207&&h(f.message||"Warning: Partial success loading decisions."),f}).then(r=>{n.signal.aborted||(e(r),r.length>0&&g(r[0]))}).catch(r=>{r?.name!=="AbortError"&&h(r instanceof Error?r.message:"Failed to load decisions.")}).finally(()=>{n.signal.aborted||p(!1)}),()=>n.abort()},[]),D.useEffect(()=>()=>{N.current?.abort()},[]);async function g(n){N.current?.abort();const r=new AbortController;N.current=r,u(n),i(!0),l([]),h("");try{const f=await fetch(`/api/decisions/${encodeURIComponent(n.decision_id)}/chain`,{signal:r.signal});if(!f.ok)throw new Error(`HTTP ${f.status}`);const y=await f.json();f.status===207&&!r.signal.aborted&&h(y.message||"Warning: Partial success loading chain."),r.signal.aborted||l(y.chain||[])}catch(f){f instanceof Error&&f.name!=="AbortError"&&h(f.message)}finally{r.signal.aborted||i(!1)}}const S=D.useMemo(()=>{const n=d.toLowerCase().trim();return n?m.filter(r=>r.decision_id.toLowerCase().includes(n)||(r.category??"").toLowerCase().includes(n)||(r.outcome??"").toLowerCase().includes(n)):m},[m,d]);return s.jsxDEV("div",{className:"ws-page",style:{flexDirection:"row"},children:[s.jsxDEV("div",{className:"ws-sidebar",style:{width:290},children:[s.jsxDEV("div",{className:"ws-sidebar-header",children:[s.jsxDEV("div",{style:{display:"flex",alignItems:"center",gap:8,marginBottom:12},children:[s.jsxDEV("div",{style:{width:30,height:30,borderRadius:9,background:"var(--ws-accent-soft)",border:"1px solid var(--ws-border-strong)",display:"grid",placeItems:"center",color:"var(--ws-accent)",flexShrink:0},children:s.jsxDEV(w,{size:15},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/DecisionWorkspace/DecisionWorkspace.tsx",lineNumber:453,columnNumber:15},this)},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/DecisionWorkspace/DecisionWorkspace.tsx",lineNumber:442,columnNumber:13},this),s.jsxDEV("div",{style:{color:"var(--ws-text)",fontSize:14,fontWeight:700},children:"Decisions"},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/DecisionWorkspace/DecisionWorkspace.tsx",lineNumber:455,columnNumber:13},this),m.length>0&&!a&&s.jsxDEV("span",{className:"ws-pill ws-pill--mono",style:{marginLeft:"auto"},children:m.length},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/DecisionWorkspace/DecisionWorkspace.tsx",lineNumber:460,columnNumber:54},this)]},void 0,!0,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/DecisionWorkspace/DecisionWorkspace.tsx",lineNumber:436,columnNumber:11},this),s.jsxDEV("div",{style:{position:"relative"},children:[s.jsxDEV(j,{size:12,color:"var(--ws-text-dim)",style:{position:"absolute",left:10,top:"50%",transform:"translateY(-50%)",pointerEvents:"none"}},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/DecisionWorkspace/DecisionWorkspace.tsx",lineNumber:467,columnNumber:13},this),s.jsxDEV("input",{className:"ws-input",type:"text",placeholder:"Filter by ID, category, outcome…",value:d,onChange:n=>b(n.target.value),style:{paddingLeft:30,fontSize:12}},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/DecisionWorkspace/DecisionWorkspace.tsx",lineNumber:474,columnNumber:13},this)]},void 0,!0,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/DecisionWorkspace/DecisionWorkspace.tsx",lineNumber:464,columnNumber:11},this)]},void 0,!0,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/DecisionWorkspace/DecisionWorkspace.tsx",lineNumber:435,columnNumber:9},this),s.jsxDEV("div",{className:"ws-sidebar-body",children:a?s.jsxDEV("div",{style:{display:"flex",flexDirection:"column",gap:6},children:[1,2,3,4,5].map(n=>s.jsxDEV("div",{className:"ws-skeleton",style:{height:58}},n,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/DecisionWorkspace/DecisionWorkspace.tsx",lineNumber:487,columnNumber:41},this))},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/DecisionWorkspace/DecisionWorkspace.tsx",lineNumber:482,columnNumber:26},this):S.length===0?s.jsxDEV("div",{className:"ws-empty",style:{padding:"28px 12px"},children:[s.jsxDEV("div",{className:"ws-empty-title",children:m.length===0?"No decisions":"No matches"},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/DecisionWorkspace/DecisionWorkspace.tsx",lineNumber:493,columnNumber:15},this),s.jsxDEV("div",{className:"ws-empty-body",children:m.length===0?"No decisions available in the graph.":"Adjust your filter."},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/DecisionWorkspace/DecisionWorkspace.tsx",lineNumber:494,columnNumber:15},this)]},void 0,!0,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/DecisionWorkspace/DecisionWorkspace.tsx",lineNumber:490,columnNumber:46},this):s.jsxDEV("div",{style:{display:"flex",flexDirection:"column",gap:4},children:S.map(n=>{const r=o?.decision_id===n.decision_id;return s.jsxDEV("button",{className:`ws-list-item${r?" ws-list-item--active":""}`,onClick:()=>{g(n)},children:[s.jsxDEV("div",{style:{fontWeight:700,fontSize:12,marginBottom:5,color:r?"#ffeef1":"var(--ws-text)"},children:n.decision_id},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/DecisionWorkspace/DecisionWorkspace.tsx",lineNumber:503,columnNumber:21},this),s.jsxDEV("div",{style:{display:"flex",alignItems:"center",gap:5,flexWrap:"wrap"},children:[n.category&&s.jsxDEV("span",{style:{fontSize:10,color:"var(--ws-text-dim)"},children:n.category},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/DecisionWorkspace/DecisionWorkspace.tsx",lineNumber:517,columnNumber:38},this),n.outcome&&s.jsxDEV(v,{outcome:n.outcome},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/DecisionWorkspace/DecisionWorkspace.tsx",lineNumber:521,columnNumber:37},this)]},void 0,!0,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/DecisionWorkspace/DecisionWorkspace.tsx",lineNumber:511,columnNumber:21},this)]},n.decision_id,!0,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/DecisionWorkspace/DecisionWorkspace.tsx",lineNumber:502,columnNumber:20},this)})},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/DecisionWorkspace/DecisionWorkspace.tsx",lineNumber:495,columnNumber:22},this)},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/DecisionWorkspace/DecisionWorkspace.tsx",lineNumber:481,columnNumber:9},this)]},void 0,!0,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/DecisionWorkspace/DecisionWorkspace.tsx",lineNumber:432,columnNumber:7},this),s.jsxDEV("div",{style:{flex:1,display:"flex",flexDirection:"column",overflow:"hidden",position:"relative"},children:[s.jsxDEV("div",{style:{position:"absolute",inset:0,background:"radial-gradient(ellipse 60% 40% at 70% 20%, rgba(255,45,75,0.04), transparent 55%)",pointerEvents:"none"}},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/DecisionWorkspace/DecisionWorkspace.tsx",lineNumber:537,columnNumber:9},this),x?s.jsxDEV("div",{style:{padding:12,borderRadius:14,color:"#ffb4c2",background:"rgba(255,157,175,0.1)",border:"1px solid rgba(255,157,175,0.18)",margin:"16px 16px 0 16px",zIndex:2,position:"relative"},children:x},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/DecisionWorkspace/DecisionWorkspace.tsx",lineNumber:544,columnNumber:18},this):null,o?s.jsxDEV("div",{className:"ws-scroll ws-padded ws-animate-in",style:{position:"relative",zIndex:1},children:[s.jsxDEV("div",{style:{marginBottom:28},children:[s.jsxDEV("div",{style:{display:"flex",alignItems:"flex-start",justifyContent:"space-between",gap:12,flexWrap:"wrap",marginBottom:10},children:[s.jsxDEV("div",{children:[s.jsxDEV("div",{className:"ws-eyebrow",style:{marginBottom:6},children:"Decision Record"},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/DecisionWorkspace/DecisionWorkspace.tsx",lineNumber:574,columnNumber:19},this),s.jsxDEV("h2",{className:"ws-title",children:o.decision_id},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/DecisionWorkspace/DecisionWorkspace.tsx",lineNumber:577,columnNumber:19},this)]},void 0,!0,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/DecisionWorkspace/DecisionWorkspace.tsx",lineNumber:573,columnNumber:17},this),o.outcome&&s.jsxDEV(v,{outcome:o.outcome},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/DecisionWorkspace/DecisionWorkspace.tsx",lineNumber:579,columnNumber:38},this)]},void 0,!0,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/DecisionWorkspace/DecisionWorkspace.tsx",lineNumber:565,columnNumber:15},this),o.category&&s.jsxDEV("span",{className:"ws-pill ws-pill--mono",children:o.category},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/DecisionWorkspace/DecisionWorkspace.tsx",lineNumber:581,columnNumber:37},this)]},void 0,!0,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/DecisionWorkspace/DecisionWorkspace.tsx",lineNumber:562,columnNumber:13},this),s.jsxDEV("div",{className:"ws-card",style:{padding:22},children:[s.jsxDEV("div",{style:{display:"flex",alignItems:"center",gap:8,marginBottom:20},children:[s.jsxDEV("div",{style:{width:8,height:8,borderRadius:999,background:"linear-gradient(135deg, var(--ws-accent), var(--ws-amber))",boxShadow:"0 0 10px rgba(255,45,75,0.4)"}},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/DecisionWorkspace/DecisionWorkspace.tsx",lineNumber:594,columnNumber:17},this),s.jsxDEV("div",{style:{color:"var(--ws-text)",fontSize:14,fontWeight:700},children:"Causal Chain"},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/DecisionWorkspace/DecisionWorkspace.tsx",lineNumber:601,columnNumber:17},this),c.length>0&&!t&&s.jsxDEV("span",{className:"ws-pill ws-pill--accent",style:{marginLeft:"auto"},children:[c.length," step",c.length!==1?"s":""]},void 0,!0,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/DecisionWorkspace/DecisionWorkspace.tsx",lineNumber:606,columnNumber:55},this)]},void 0,!0,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/DecisionWorkspace/DecisionWorkspace.tsx",lineNumber:588,columnNumber:15},this),s.jsxDEV(U,{chain:c,loading:t},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/DecisionWorkspace/DecisionWorkspace.tsx",lineNumber:610,columnNumber:15},this)]},void 0,!0,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/DecisionWorkspace/DecisionWorkspace.tsx",lineNumber:585,columnNumber:13},this)]},void 0,!0,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/DecisionWorkspace/DecisionWorkspace.tsx",lineNumber:557,columnNumber:21},this):s.jsxDEV("div",{style:{flex:1,display:"flex",alignItems:"center",justifyContent:"center",position:"relative",zIndex:1},children:s.jsxDEV("div",{className:"ws-empty",children:[s.jsxDEV("div",{className:"ws-empty-icon",children:s.jsxDEV(w,{size:32},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/DecisionWorkspace/DecisionWorkspace.tsx",lineNumber:621,columnNumber:46},this)},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/DecisionWorkspace/DecisionWorkspace.tsx",lineNumber:621,columnNumber:15},this),s.jsxDEV("div",{className:"ws-empty-title",children:"No decision selected"},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/DecisionWorkspace/DecisionWorkspace.tsx",lineNumber:622,columnNumber:15},this),s.jsxDEV("div",{className:"ws-empty-body",children:"Select a decision from the list to inspect its causal chain and metadata."},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/DecisionWorkspace/DecisionWorkspace.tsx",lineNumber:623,columnNumber:15},this)]},void 0,!0,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/DecisionWorkspace/DecisionWorkspace.tsx",lineNumber:620,columnNumber:13},this)},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/DecisionWorkspace/DecisionWorkspace.tsx",lineNumber:612,columnNumber:20},this)]},void 0,!0,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/DecisionWorkspace/DecisionWorkspace.tsx",lineNumber:530,columnNumber:7},this)]},void 0,!0,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/DecisionWorkspace/DecisionWorkspace.tsx",lineNumber:428,columnNumber:10},this)}export{$ as DecisionWorkspace};
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import{b as X,j as o,G as J,c as G}from"./index-DHWWI-uw.js";import{a as y}from"./query-vendor-BqVbYexz.js";import{u as K,l as $}from"./registryStore-MVt_NgVV.js";import{L as Y}from"./loader-circle-C8NUmtFx.js";import{C as Q,a as Z}from"./chevron-right-CiEuNwKq.js";import{X as ee}from"./x-DpqMYq96.js";/**
|
|
2
|
-
* @license lucide-react v1.8.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 oe=[["path",{d:"M3 7V5a2 2 0 0 1 2-2h2",key:"aa7l1z"}],["path",{d:"M17 3h2a2 2 0 0 1 2 2v2",key:"4qcy5o"}],["path",{d:"M21 17v2a2 2 0 0 1-2 2h-2",key:"6vwrx8"}],["path",{d:"M7 21H5a2 2 0 0 1-2-2v-2",key:"ioqczr"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}],["path",{d:"m16 16-1.9-1.9",key:"1dq9hf"}]],M=X("scan-search",oe);function B(n){return n?typeof n=="string"?n:String(n.id??n.text??JSON.stringify(n)):""}function P(n){return n?typeof n=="string"?n:String(n.text??n.label??n.content??n.id??""):""}function F(n){return!n||typeof n=="string"?"entity":String(n.type??"entity")}function se(n){return n.map(e=>({a:{id:B(e.entity_a),label:P(e.entity_a),type:F(e.entity_a)},b:{id:B(e.entity_b),label:P(e.entity_b),type:F(e.entity_b)},score:Number(e.similarity??e.score??0)}))}function ne(n){const e=G.c(16);if(e[0]!=="20821d740e645e3eec860d23487c2f95842966b5534cef99f2a0b32a93616468"){for(let s=0;s<16;s+=1)e[s]=Symbol.for("react.memo_cache_sentinel");e[0]="20821d740e645e3eec860d23487c2f95842966b5534cef99f2a0b32a93616468"}const{score:t}=n;let c;e[1]!==t?(c=Math.round(t*100),e[1]=t,e[2]=c):c=e[2];const p=Math.min(100,c),i=t>=.9?"#ff7b72":t>=.75?"#ff7a45":"#4cc38a";let x,r;e[3]===Symbol.for("react.memo_cache_sentinel")?(x={display:"flex",alignItems:"center",gap:8},r={flex:1,height:4,borderRadius:999,background:"rgba(255,255,255,0.06)",overflow:"hidden"},e[3]=x,e[4]=r):(x=e[3],r=e[4]);const g=`${p}%`;let u;e[5]!==i||e[6]!==g?(u=o.jsxDEV("div",{style:r,children:o.jsxDEV("div",{style:{width:g,height:"100%",borderRadius:999,background:i,transition:"width 300ms ease"}},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/EnrichWorkspace/EntityResolutionTab.tsx",lineNumber:106,columnNumber:26},this)},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/EnrichWorkspace/EntityResolutionTab.tsx",lineNumber:106,columnNumber:10},this),e[5]=i,e[6]=g,e[7]=u):u=e[7];let b;e[8]!==i?(b={fontSize:11,fontWeight:700,color:i,minWidth:34,textAlign:"right"},e[8]=i,e[9]=b):b=e[9];let d;e[10]!==p||e[11]!==b?(d=o.jsxDEV("span",{style:b,children:[p,"%"]},void 0,!0,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/EnrichWorkspace/EntityResolutionTab.tsx",lineNumber:135,columnNumber:10},this),e[10]=p,e[11]=b,e[12]=d):d=e[12];let h;return e[13]!==u||e[14]!==d?(h=o.jsxDEV("div",{style:x,children:[u,d]},void 0,!0,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/EnrichWorkspace/EntityResolutionTab.tsx",lineNumber:144,columnNumber:10},this),e[13]=u,e[14]=d,e[15]=h):h=e[15],h}function te(n){const e=G.c(53);if(e[0]!=="20821d740e645e3eec860d23487c2f95842966b5534cef99f2a0b32a93616468"){for(let C=0;C<53;C+=1)e[C]=Symbol.for("react.memo_cache_sentinel");e[0]="20821d740e645e3eec860d23487c2f95842966b5534cef99f2a0b32a93616468"}const{pair:t,onMerge:c,onDismiss:p}=n,[i,x]=y.useState(!1),[r,g]=y.useState(!1);let u;e[1]!==c||e[2]!==t.a.id||e[3]!==t.b.id?(u=async()=>{g(!0),await c(t.a.id,t.b.id),g(!1)},e[1]=c,e[2]=t.a.id,e[3]=t.b.id,e[4]=u):u=e[4];const b=u;let d,h;e[5]===Symbol.for("react.memo_cache_sentinel")?(d={display:"flex",alignItems:"flex-start",gap:12},h=()=>x(re),e[5]=d,e[6]=h):(d=e[5],h=e[6]);let s;e[7]!==i?(s=o.jsxDEV("button",{onClick:h,style:q,children:i?o.jsxDEV(Q,{size:13},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/EnrichWorkspace/EntityResolutionTab.tsx",lineNumber:200,columnNumber:64},this):o.jsxDEV(Z,{size:13},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/EnrichWorkspace/EntityResolutionTab.tsx",lineNumber:200,columnNumber:92},this)},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/EnrichWorkspace/EntityResolutionTab.tsx",lineNumber:200,columnNumber:10},this),e[7]=i,e[8]=s):s=e[8];let a,l;e[9]===Symbol.for("react.memo_cache_sentinel")?(a={flex:1,minWidth:0},l={display:"flex",alignItems:"center",gap:8,flexWrap:"wrap"},e[9]=a,e[10]=l):(a=e[9],l=e[10]);const m=t.a.label||t.a.id;let f;e[11]!==m?(f=o.jsxDEV("span",{style:O,children:m},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/EnrichWorkspace/EntityResolutionTab.tsx",lineNumber:228,columnNumber:10},this),e[11]=m,e[12]=f):f=e[12];let E;e[13]===Symbol.for("react.memo_cache_sentinel")?(E=o.jsxDEV("span",{style:{color:"#ff7a45",fontSize:12,fontWeight:700},children:"≈"},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/EnrichWorkspace/EntityResolutionTab.tsx",lineNumber:236,columnNumber:10},this),e[13]=E):E=e[13];const z=t.b.label||t.b.id;let S;e[14]!==z?(S=o.jsxDEV("span",{style:O,children:z},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/EnrichWorkspace/EntityResolutionTab.tsx",lineNumber:248,columnNumber:11},this),e[14]=z,e[15]=S):S=e[15];let N;e[16]!==S||e[17]!==f?(N=o.jsxDEV("div",{style:l,children:[f,E,S]},void 0,!0,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/EnrichWorkspace/EntityResolutionTab.tsx",lineNumber:256,columnNumber:11},this),e[16]=S,e[17]=f,e[18]=N):N=e[18];let R;e[19]===Symbol.for("react.memo_cache_sentinel")?(R={marginTop:8},e[19]=R):R=e[19];let k;e[20]!==t.score?(k=o.jsxDEV("div",{style:R,children:o.jsxDEV(ne,{score:t.score},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/EnrichWorkspace/EntityResolutionTab.tsx",lineNumber:274,columnNumber:28},this)},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/EnrichWorkspace/EntityResolutionTab.tsx",lineNumber:274,columnNumber:11},this),e[20]=t.score,e[21]=k):k=e[21];let D;e[22]!==N||e[23]!==k?(D=o.jsxDEV("div",{style:a,children:[N,k]},void 0,!0,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/EnrichWorkspace/EntityResolutionTab.tsx",lineNumber:282,columnNumber:11},this),e[22]=N,e[23]=k,e[24]=D):D=e[24];let I;e[25]===Symbol.for("react.memo_cache_sentinel")?(I={display:"flex",gap:6,flexShrink:0},e[25]=I):I=e[25];let j;e[26]!==b?(j=()=>{b()},e[26]=b,e[27]=j):j=e[27];let L;e[28]===Symbol.for("react.memo_cache_sentinel")?(L={...pe,background:"rgba(76,195,138,0.12)",border:"1px solid rgba(76,195,138,0.28)",color:"#4cc38a"},e[28]=L):L=e[28];let A;e[29]!==r?(A=r?o.jsxDEV(Y,{size:12,className:"animate-spin"},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/EnrichWorkspace/EntityResolutionTab.tsx",lineNumber:322,columnNumber:21},this):o.jsxDEV(J,{size:12},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/EnrichWorkspace/EntityResolutionTab.tsx",lineNumber:322,columnNumber:70},this),e[29]=r,e[30]=A):A=e[30];let U;e[31]===Symbol.for("react.memo_cache_sentinel")?(U=o.jsxDEV("span",{children:"Merge"},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/EnrichWorkspace/EntityResolutionTab.tsx",lineNumber:330,columnNumber:11},this),e[31]=U):U=e[31];let H;e[32]!==r||e[33]!==j||e[34]!==A?(H=o.jsxDEV("button",{onClick:j,disabled:r,style:L,children:[A,U]},void 0,!0,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/EnrichWorkspace/EntityResolutionTab.tsx",lineNumber:337,columnNumber:11},this),e[32]=r,e[33]=j,e[34]=A,e[35]=H):H=e[35];let V;e[36]===Symbol.for("react.memo_cache_sentinel")?(V=o.jsxDEV(ee,{size:13},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/EnrichWorkspace/EntityResolutionTab.tsx",lineNumber:347,columnNumber:11},this),e[36]=V):V=e[36];let v;e[37]!==p?(v=o.jsxDEV("button",{onClick:p,style:q,title:"Dismiss",children:V},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/EnrichWorkspace/EntityResolutionTab.tsx",lineNumber:354,columnNumber:11},this),e[37]=p,e[38]=v):v=e[38];let w;e[39]!==H||e[40]!==v?(w=o.jsxDEV("div",{style:I,children:[H,v]},void 0,!0,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/EnrichWorkspace/EntityResolutionTab.tsx",lineNumber:362,columnNumber:11},this),e[39]=H,e[40]=v,e[41]=w):w=e[41];let W;e[42]!==D||e[43]!==w||e[44]!==s?(W=o.jsxDEV("div",{style:d,children:[s,D,w]},void 0,!0,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/EnrichWorkspace/EntityResolutionTab.tsx",lineNumber:371,columnNumber:11},this),e[42]=D,e[43]=w,e[44]=s,e[45]=W):W=e[45];let T;e[46]!==i||e[47]!==t.a||e[48]!==t.b?(T=i?o.jsxDEV("div",{style:{marginTop:12,display:"grid",gridTemplateColumns:"1fr 1fr",gap:10},children:[{label:"Primary (keep)",entity:t.a,accentColor:"#ff2d4b"},{label:"Duplicate (remove)",entity:t.b,accentColor:"#ff7b72"}].map(ie)},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/EnrichWorkspace/EntityResolutionTab.tsx",lineNumber:381,columnNumber:22},this):null,e[46]=i,e[47]=t.a,e[48]=t.b,e[49]=T):T=e[49];let _;return e[50]!==W||e[51]!==T?(_=o.jsxDEV("div",{style:me,children:[W,T]},void 0,!0,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/EnrichWorkspace/EntityResolutionTab.tsx",lineNumber:404,columnNumber:11},this),e[50]=W,e[51]=T,e[52]=_):_=e[52],_}function ie(n){const{label:e,entity:t,accentColor:c}=n;return o.jsxDEV("div",{style:{...de,borderColor:`${c}33`},children:[o.jsxDEV("div",{style:{color:c,fontSize:10,fontWeight:700,letterSpacing:"0.06em",textTransform:"uppercase",marginBottom:6},children:e},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/EnrichWorkspace/EntityResolutionTab.tsx",lineNumber:422,columnNumber:6},this),o.jsxDEV("div",{style:{color:"#ffeaed",fontSize:13,fontWeight:600},children:t.label||t.id},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/EnrichWorkspace/EntityResolutionTab.tsx",lineNumber:429,columnNumber:21},this),o.jsxDEV("div",{style:{color:"#b08b93",fontSize:11,marginTop:3},children:t.type},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/EnrichWorkspace/EntityResolutionTab.tsx",lineNumber:433,columnNumber:41},this),o.jsxDEV("div",{style:{color:"#9c7a82",fontSize:10,marginTop:4,fontFamily:"monospace"},children:t.id},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/EnrichWorkspace/EntityResolutionTab.tsx",lineNumber:437,columnNumber:27},this)]},t.id,!0,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/EnrichWorkspace/EntityResolutionTab.tsx",lineNumber:419,columnNumber:10},this)}function re(n){return!n}function De(){const[n,e]=y.useState(.82),[t,c]=y.useState(!1),[p,i]=y.useState([]),[x,r]=y.useState(""),u=K().filter(s=>s.op==="merge"),b=y.useCallback(async()=>{c(!0),r("");try{const s=await fetch("/api/enrich/dedup",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({threshold:n})});if(!s.ok){const f=await s.json().catch(()=>({}));throw new Error(f.detail??`Scan failed (${s.status})`)}const a=await s.json(),l=Array.isArray(a.duplicates)?a.duplicates:[],m=se(l);i(m),$("import",`Dedup scan found ${m.length} flagged pair${m.length!==1?"s":""} (threshold ${n.toFixed(2)})`,{threshold:n,flagged:m.length})}catch(s){r(s instanceof Error?s.message:"Scan failed")}finally{c(!1)}},[n]),d=y.useCallback(async(s,a)=>{r("");try{const l=await fetch("/api/enrich/merge",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({primary_id:s,duplicate_ids:[a]})});if(!l.ok)throw new Error(`Merge failed (${l.status})`);const m=await l.json();l.status===207&&r(m.message||"Warning: Partial merge."),$("merge",`Merged ${a} → ${s} · ${m.edges_updated??0} edges redirected`,{primary:s,duplicate:a,edgesUpdated:m.edges_updated}),i(f=>f.filter(E=>!(E.a.id===s&&E.b.id===a)))}catch(l){r(l instanceof Error?l.message:"Merge failed")}},[]),h=y.useCallback(s=>{i(a=>a.filter((l,m)=>m!==s))},[]);return o.jsxDEV("div",{style:ae,children:[o.jsxDEV("div",{style:le,children:o.jsxDEV("div",{style:{display:"flex",alignItems:"center",gap:10},children:[o.jsxDEV(M,{size:18,color:"#ff7a45"},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/EnrichWorkspace/EntityResolutionTab.tsx",lineNumber:524,columnNumber:11},this),o.jsxDEV("div",{children:[o.jsxDEV("div",{style:{color:"#fff0f2",fontSize:16,fontWeight:700},children:"Entity Resolution"},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/EnrichWorkspace/EntityResolutionTab.tsx",lineNumber:526,columnNumber:13},this),o.jsxDEV("div",{style:{color:"#b08b93",fontSize:12},children:"Detect and merge duplicate entities in the knowledge graph"},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/EnrichWorkspace/EntityResolutionTab.tsx",lineNumber:531,columnNumber:13},this)]},void 0,!0,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/EnrichWorkspace/EntityResolutionTab.tsx",lineNumber:525,columnNumber:11},this)]},void 0,!0,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/EnrichWorkspace/EntityResolutionTab.tsx",lineNumber:519,columnNumber:9},this)},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/EnrichWorkspace/EntityResolutionTab.tsx",lineNumber:518,columnNumber:7},this),o.jsxDEV("div",{style:ce,children:[o.jsxDEV("div",{style:{display:"flex",alignItems:"center",gap:16,flexWrap:"wrap"},children:[o.jsxDEV("div",{style:{flex:1,minWidth:240},children:[o.jsxDEV("div",{style:{display:"flex",justifyContent:"space-between",marginBottom:6},children:[o.jsxDEV("label",{style:{color:"#f0cdd3",fontSize:12,fontWeight:600},children:"Similarity Threshold"},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/EnrichWorkspace/EntityResolutionTab.tsx",lineNumber:556,columnNumber:15},this),o.jsxDEV("span",{style:{color:"#ff7a45",fontSize:12,fontWeight:700},children:n.toFixed(2)},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/EnrichWorkspace/EntityResolutionTab.tsx",lineNumber:561,columnNumber:15},this)]},void 0,!0,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/EnrichWorkspace/EntityResolutionTab.tsx",lineNumber:551,columnNumber:13},this),o.jsxDEV("input",{type:"range",min:.5,max:.99,step:.01,value:n,onChange:s=>e(parseFloat(s.target.value)),style:{width:"100%",accentColor:"#ff7a45",cursor:"pointer"}},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/EnrichWorkspace/EntityResolutionTab.tsx",lineNumber:567,columnNumber:13},this),o.jsxDEV("div",{style:{display:"flex",justifyContent:"space-between",color:"#9c7a82",fontSize:10,marginTop:2},children:[o.jsxDEV("span",{children:"More results (0.50)"},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/EnrichWorkspace/EntityResolutionTab.tsx",lineNumber:579,columnNumber:15},this),o.jsxDEV("span",{children:"Fewer, higher confidence (0.99)"},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/EnrichWorkspace/EntityResolutionTab.tsx",lineNumber:580,columnNumber:15},this)]},void 0,!0,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/EnrichWorkspace/EntityResolutionTab.tsx",lineNumber:572,columnNumber:13},this)]},void 0,!0,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/EnrichWorkspace/EntityResolutionTab.tsx",lineNumber:547,columnNumber:11},this),o.jsxDEV("button",{onClick:()=>{b()},disabled:t,style:ue,children:[t?o.jsxDEV(Y,{size:14,className:"animate-spin"},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/EnrichWorkspace/EntityResolutionTab.tsx",lineNumber:584,columnNumber:25},this):o.jsxDEV(M,{size:14},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/EnrichWorkspace/EntityResolutionTab.tsx",lineNumber:584,columnNumber:74},this),o.jsxDEV("span",{children:t?"Scanning…":"Run Dedup Scan"},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/EnrichWorkspace/EntityResolutionTab.tsx",lineNumber:585,columnNumber:13},this)]},void 0,!0,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/EnrichWorkspace/EntityResolutionTab.tsx",lineNumber:583,columnNumber:11},this)]},void 0,!0,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/EnrichWorkspace/EntityResolutionTab.tsx",lineNumber:541,columnNumber:9},this),x?o.jsxDEV("div",{style:{color:"#ff7b72",fontSize:12,marginTop:8},children:x},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/EnrichWorkspace/EntityResolutionTab.tsx",lineNumber:588,columnNumber:22},this):null]},void 0,!0,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/EnrichWorkspace/EntityResolutionTab.tsx",lineNumber:540,columnNumber:7},this),o.jsxDEV("div",{style:{flex:1,overflow:"hidden",display:"flex",gap:0},children:[o.jsxDEV("div",{style:{flex:1,overflowY:"auto",padding:"16px 24px",display:"flex",flexDirection:"column",gap:10},children:p.length>0?o.jsxDEV(o.Fragment,{children:[o.jsxDEV("div",{style:{display:"flex",alignItems:"center",justifyContent:"space-between",marginBottom:4},children:[o.jsxDEV("div",{style:{color:"#b08b93",fontSize:12,fontWeight:600},children:[p.length," flagged pair",p.length!==1?"s":""]},void 0,!0,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/EnrichWorkspace/EntityResolutionTab.tsx",lineNumber:617,columnNumber:17},this),o.jsxDEV("button",{onClick:()=>i([]),style:xe,children:"Clear all"},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/EnrichWorkspace/EntityResolutionTab.tsx",lineNumber:624,columnNumber:17},this)]},void 0,!0,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/EnrichWorkspace/EntityResolutionTab.tsx",lineNumber:611,columnNumber:15},this),p.map((s,a)=>o.jsxDEV(te,{pair:s,onMerge:d,onDismiss:()=>h(a)},`${s.a.id}:${s.b.id}`,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/EnrichWorkspace/EntityResolutionTab.tsx",lineNumber:626,columnNumber:45},this))]},void 0,!0,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/EnrichWorkspace/EntityResolutionTab.tsx",lineNumber:610,columnNumber:31},this):o.jsxDEV("div",{style:fe,children:[o.jsxDEV(M,{size:36,color:"rgba(242,182,109,0.15)"},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/EnrichWorkspace/EntityResolutionTab.tsx",lineNumber:628,columnNumber:15},this),o.jsxDEV("div",{style:{color:"#b08b93",fontSize:14,marginTop:12,fontWeight:500},children:"No flagged pairs"},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/EnrichWorkspace/EntityResolutionTab.tsx",lineNumber:629,columnNumber:15},this),o.jsxDEV("div",{style:{color:"#9c7a82",fontSize:12,marginTop:4,textAlign:"center",maxWidth:280},children:"Set a similarity threshold and run a dedup scan to detect potential duplicates."},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/EnrichWorkspace/EntityResolutionTab.tsx",lineNumber:637,columnNumber:15},this)]},void 0,!0,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/EnrichWorkspace/EntityResolutionTab.tsx",lineNumber:627,columnNumber:19},this)},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/EnrichWorkspace/EntityResolutionTab.tsx",lineNumber:602,columnNumber:9},this),u.length>0?o.jsxDEV("div",{style:be,children:[o.jsxDEV("div",{style:{color:"#b08b93",fontSize:11,fontWeight:700,letterSpacing:"0.06em",textTransform:"uppercase",marginBottom:10},children:"Merge History"},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/EnrichWorkspace/EntityResolutionTab.tsx",lineNumber:651,columnNumber:13},this),o.jsxDEV("div",{style:{display:"flex",flexDirection:"column",gap:6},children:u.map(s=>o.jsxDEV("div",{style:he,children:[o.jsxDEV(J,{size:11,color:"#ff7a45"},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/EnrichWorkspace/EntityResolutionTab.tsx",lineNumber:667,columnNumber:19},this),o.jsxDEV("div",{style:{flex:1,minWidth:0},children:[o.jsxDEV("div",{style:{color:"#f0cdd3",fontSize:11,fontWeight:500,overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},children:s.summary},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/EnrichWorkspace/EntityResolutionTab.tsx",lineNumber:672,columnNumber:21},this),o.jsxDEV("div",{style:{color:"#9c7a82",fontSize:10},children:s.timestamp.toLocaleTimeString()},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/EnrichWorkspace/EntityResolutionTab.tsx",lineNumber:682,columnNumber:21},this)]},void 0,!0,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/EnrichWorkspace/EntityResolutionTab.tsx",lineNumber:668,columnNumber:19},this)]},s.id,!0,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/EnrichWorkspace/EntityResolutionTab.tsx",lineNumber:666,columnNumber:42},this))},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/EnrichWorkspace/EntityResolutionTab.tsx",lineNumber:661,columnNumber:13},this)]},void 0,!0,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/EnrichWorkspace/EntityResolutionTab.tsx",lineNumber:650,columnNumber:36},this):null]},void 0,!0,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/EnrichWorkspace/EntityResolutionTab.tsx",lineNumber:595,columnNumber:7},this)]},void 0,!0,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/EnrichWorkspace/EntityResolutionTab.tsx",lineNumber:516,columnNumber:10},this)}const ae={display:"flex",flexDirection:"column",width:"100%",height:"100%",background:"#0a0508",overflow:"hidden"},le={padding:"20px 24px 16px",borderBottom:"1px solid rgba(255,45,75,0.1)",flexShrink:0},ce={margin:"16px 24px",padding:"16px 20px",borderRadius:14,background:"linear-gradient(135deg, rgba(13,17,23,0.75), rgba(22,27,34,0.6))",border:"1px solid rgba(242,182,109,0.18)",flexShrink:0},ue={display:"inline-flex",alignItems:"center",gap:7,padding:"10px 18px",borderRadius:10,background:"linear-gradient(135deg, rgba(242,182,109,0.22), rgba(242,182,109,0.1))",border:"1px solid rgba(242,182,109,0.32)",color:"#ff7a45",fontSize:13,fontWeight:700,cursor:"pointer",flexShrink:0},me={padding:"12px 14px",borderRadius:12,background:"linear-gradient(135deg, rgba(13,17,23,0.6), rgba(22,27,34,0.4))",border:"1px solid rgba(255,255,255,0.07)"},O={display:"inline-block",padding:"4px 10px",borderRadius:8,background:"rgba(255,255,255,0.04)",border:"1px solid rgba(255,255,255,0.08)",color:"#ffeaed",fontSize:12,fontWeight:600},pe={display:"inline-flex",alignItems:"center",gap:5,padding:"5px 10px",borderRadius:8,fontSize:11,fontWeight:700,cursor:"pointer"},q={background:"transparent",border:"none",color:"#b08b93",cursor:"pointer",padding:4,borderRadius:6,display:"flex",alignItems:"center"},de={padding:"10px 12px",borderRadius:10,background:"rgba(0,0,0,0.2)",border:"1px solid transparent"},be={width:240,borderLeft:"1px solid rgba(255,255,255,0.06)",padding:"16px 16px",overflowY:"auto",flexShrink:0},he={display:"flex",alignItems:"flex-start",gap:7,padding:"8px 0",borderBottom:"1px solid rgba(255,255,255,0.04)"},fe={flex:1,display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",padding:40,minHeight:200},xe={background:"transparent",border:"none",color:"#b08b93",fontSize:12,cursor:"pointer",padding:"2px 6px",borderRadius:6};export{De as EntityResolutionTab};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{j as s,N as G,c as K}from"./index-DHWWI-uw.js";import{a as j}from"./query-vendor-BqVbYexz.js";import{L as U}from"./loader-circle-C8NUmtFx.js";import{R as V}from"./refresh-cw-CL9OXZ89.js";function O(f){const e=K.c(28);if(e[0]!=="66f5da5a29229e9f82f2a0275714ce774bf73894883b619916e728ac9babcb29"){for(let b=0;b<28;b+=1)e[b]=Symbol.for("react.memo_cache_sentinel");e[0]="66f5da5a29229e9f82f2a0275714ce774bf73894883b619916e728ac9babcb29"}const{label:i,count:l,total:d,color:c}=f;let N;e[1]!==l||e[2]!==d?(N=d>0?Math.round(l/d*100):0,e[1]=l,e[2]=d,e[3]=N):N=e[3];const y=N;let A,S;e[4]===Symbol.for("react.memo_cache_sentinel")?(A={display:"flex",alignItems:"center",gap:10,padding:"5px 0"},S={width:120,flexShrink:0,color:"#f0cdd3",fontSize:12,overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},e[4]=A,e[5]=S):(A=e[4],S=e[5]);let v;e[6]!==i?(v=s.jsxDEV("div",{style:S,title:i,children:i},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/ManageWorkspace/KGOverviewTab.tsx",lineNumber:77,columnNumber:10},this),e[6]=i,e[7]=v):v=e[7];let x;e[8]===Symbol.for("react.memo_cache_sentinel")?(x={flex:1,height:6,borderRadius:999,background:"rgba(255,255,255,0.06)",overflow:"hidden"},e[8]=x):x=e[8];const k=`${y}%`;let m;e[9]!==c||e[10]!==k?(m=s.jsxDEV("div",{style:x,children:s.jsxDEV("div",{style:{width:k,height:"100%",borderRadius:999,background:c,transition:"width 400ms ease"}},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/ManageWorkspace/KGOverviewTab.tsx",lineNumber:99,columnNumber:26},this)},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/ManageWorkspace/KGOverviewTab.tsx",lineNumber:99,columnNumber:10},this),e[9]=c,e[10]=k,e[11]=m):m=e[11];let w,H;e[12]===Symbol.for("react.memo_cache_sentinel")?(w={width:52,textAlign:"right",flexShrink:0,display:"flex",gap:6,justifyContent:"flex-end"},H={color:"#b08b93",fontSize:11},e[12]=w,e[13]=H):(w=e[12],H=e[13]);let a;e[14]!==l?(a=l.toLocaleString(),e[14]=l,e[15]=a):a=e[15];let o;e[16]!==a?(o=s.jsxDEV("span",{style:H,children:a},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/ManageWorkspace/KGOverviewTab.tsx",lineNumber:143,columnNumber:11},this),e[16]=a,e[17]=o):o=e[17];let r;e[18]===Symbol.for("react.memo_cache_sentinel")?(r={color:"#9c7a82",fontSize:11},e[18]=r):r=e[18];let t;e[19]!==y?(t=s.jsxDEV("span",{style:r,children:[y,"%"]},void 0,!0,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/ManageWorkspace/KGOverviewTab.tsx",lineNumber:161,columnNumber:11},this),e[19]=y,e[20]=t):t=e[20];let p;e[21]!==o||e[22]!==t?(p=s.jsxDEV("div",{style:w,children:[o,t]},void 0,!0,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/ManageWorkspace/KGOverviewTab.tsx",lineNumber:169,columnNumber:11},this),e[21]=o,e[22]=t,e[23]=p):p=e[23];let u;return e[24]!==p||e[25]!==v||e[26]!==m?(u=s.jsxDEV("div",{style:A,children:[v,m,p]},void 0,!0,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/ManageWorkspace/KGOverviewTab.tsx",lineNumber:178,columnNumber:11},this),e[24]=p,e[25]=v,e[26]=m,e[27]=u):u=e[27],u}const W=["#3E79F2","#149287","#2F9F61","#555FD6","#8A56D8","#B65473","#C9922E","#ff2d4b","#ff7a45"],L=["#4cc38a","#ff8fa0","#d2a8ff","#ff7a45","#ff7b72","#ff2d4b","#ff2d4b","#8A56D8"];function M(f,e){const i={};for(const l of f){const d=String(l[e]??"unknown");i[d]=(i[d]??0)+1}return i}function z(){const[f,e]=j.useState(null),[i,l]=j.useState(!1),[d,c]=j.useState(""),[N,y]=j.useState([]),[A,S]=j.useState({}),v=j.useCallback(async()=>{l(!0),c("");try{const[a,o]=await Promise.all([fetch("/api/graph/stats"),fetch("/api/graph/nodes?limit=500")]);if(!a.ok)throw new Error(`Stats fetch failed (${a.status})`);if(!o.ok)throw new Error(`Nodes fetch failed (${o.status})`);const r=await a.json();e(r),a.status===207&&c(r.message||"Warning: Partial success loading stats.");const t=await o.json(),p=t.nodes??[];if(S(M(p,"type")),o.status===207){const b=t.message||"Warning: Partial success loading nodes.";c(D=>D?`${D} ${b}`:b)}const u=await fetch("/api/graph/edges?limit=2000");if(u.ok){const D=(await u.json()).edges??[],h={};for(const n of D)h[n.source]=(h[n.source]??0)+1,h[n.target]=(h[n.target]??0)+1;const E=p.map(n=>({node:n,neighborCount:h[n.id]??0})).sort((n,T)=>T.neighborCount-n.neighborCount).slice(0,10);y(E)}}catch(a){c(a instanceof Error?a.message:"Failed to load graph overview. Ensure the server is running.")}finally{l(!1)}},[]);j.useEffect(()=>{let a=!1;async function o(){a||(l(!0),c(""));try{const[r,t]=await Promise.all([fetch("/api/graph/stats"),fetch("/api/graph/nodes?limit=500")]);if(!r.ok)throw new Error(`Stats fetch failed (${r.status})`);if(!t.ok)throw new Error(`Nodes fetch failed (${t.status})`);const p=await r.json();a||(e(p),r.status===207&&c(p.message||"Warning: Partial success loading stats."));const u=await t.json(),b=u.nodes??[];if(!a&&(S(M(b,"type")),t.status===207)){const h=u.message||"Warning: Partial success loading nodes.";c(E=>E?`${E} ${h}`:h)}const D=await fetch("/api/graph/edges?limit=2000");if(D.ok){const E=(await D.json()).edges??[],n={};for(const g of E)n[g.source]=(n[g.source]??0)+1,n[g.target]=(n[g.target]??0)+1;const T=b.map(g=>({node:g,neighborCount:n[g.id]??0})).sort((g,I)=>I.neighborCount-g.neighborCount).slice(0,10);a||y(T)}}catch(r){a||c(r instanceof Error?r.message:"Failed to load graph overview. Ensure the server is running.")}finally{a||l(!1)}}return o(),()=>{a=!0}},[]);const x=Object.entries(A).sort((a,o)=>o[1]-a[1]),k=f?.edge_types?Object.entries(f.edge_types).sort((a,o)=>o[1]-a[1]):[],m=f?.node_count??0,w=f?.edge_count??0,H=[{label:"Nodes",value:m.toLocaleString(),color:"var(--ws-accent)",sub:`${x.length} types`},{label:"Edges",value:w.toLocaleString(),color:"var(--ws-green)",sub:`${k.length} rel. types`},{label:"Density",value:m>1?(w/(m*(m-1))*100).toFixed(3)+"%":"—",color:"var(--ws-purple)",sub:"graph density"}];return s.jsxDEV("div",{className:"ws-page",children:[d?s.jsxDEV("div",{style:{margin:"16px 22px 0 22px",padding:12,borderRadius:14,color:"#ffb4c2",background:"rgba(255,157,175,0.1)",border:"1px solid rgba(255,157,175,0.18)"},children:d},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/ManageWorkspace/KGOverviewTab.tsx",lineNumber:335,columnNumber:16},this):null,s.jsxDEV("div",{style:{display:"flex",alignItems:"center",justifyContent:"space-between",padding:"16px 22px",borderBottom:"1px solid var(--ws-border)",flexShrink:0},children:[s.jsxDEV("div",{style:{display:"flex",alignItems:"center",gap:10},children:[s.jsxDEV("div",{style:{width:32,height:32,borderRadius:9,background:"var(--ws-accent-soft)",border:"1px solid var(--ws-border-strong)",display:"grid",placeItems:"center",color:"var(--ws-accent)"},children:s.jsxDEV(G,{size:16},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/ManageWorkspace/KGOverviewTab.tsx",lineNumber:370,columnNumber:13},this)},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/ManageWorkspace/KGOverviewTab.tsx",lineNumber:360,columnNumber:11},this),s.jsxDEV("div",{children:[s.jsxDEV("div",{style:{color:"var(--ws-text)",fontSize:15,fontWeight:700,lineHeight:1},children:"KG Overview"},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/ManageWorkspace/KGOverviewTab.tsx",lineNumber:373,columnNumber:13},this),s.jsxDEV("div",{className:"ws-body",style:{fontSize:11,marginTop:2},children:"Node/edge counts, type distributions, and top connected nodes"},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/ManageWorkspace/KGOverviewTab.tsx",lineNumber:379,columnNumber:13},this)]},void 0,!0,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/ManageWorkspace/KGOverviewTab.tsx",lineNumber:372,columnNumber:11},this)]},void 0,!0,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/ManageWorkspace/KGOverviewTab.tsx",lineNumber:355,columnNumber:9},this),s.jsxDEV("button",{className:"ws-btn ws-btn--ghost",onClick:()=>{v()},disabled:i,style:{padding:"6px 12px"},children:[i?s.jsxDEV(U,{size:13,className:"ws-spin"},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/ManageWorkspace/KGOverviewTab.tsx",lineNumber:388,columnNumber:22},this):s.jsxDEV(V,{size:13},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/ManageWorkspace/KGOverviewTab.tsx",lineNumber:388,columnNumber:66},this),"Refresh"]},void 0,!0,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/ManageWorkspace/KGOverviewTab.tsx",lineNumber:385,columnNumber:9},this)]},void 0,!0,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/ManageWorkspace/KGOverviewTab.tsx",lineNumber:347,columnNumber:7},this),s.jsxDEV("div",{className:"ws-scroll",style:{flex:1,padding:"18px 22px",display:"flex",flexDirection:"column",gap:16},children:[s.jsxDEV("div",{className:"ws-stat-grid ws-stat-grid--3",children:H.map(({label:a,value:o,color:r,sub:t})=>s.jsxDEV("div",{className:"ws-stat-card",children:[s.jsxDEV("div",{className:"ws-eyebrow",style:{marginBottom:6},children:a},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/ManageWorkspace/KGOverviewTab.tsx",lineNumber:410,columnNumber:15},this),s.jsxDEV("div",{className:"ws-stat-value",style:{color:r},children:i?"—":o},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/ManageWorkspace/KGOverviewTab.tsx",lineNumber:413,columnNumber:15},this),s.jsxDEV("div",{className:"ws-stat-label",children:t},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/ManageWorkspace/KGOverviewTab.tsx",lineNumber:416,columnNumber:15},this)]},a,!0,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/ManageWorkspace/KGOverviewTab.tsx",lineNumber:409,columnNumber:15},this))},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/ManageWorkspace/KGOverviewTab.tsx",lineNumber:403,columnNumber:9},this),s.jsxDEV("div",{style:{display:"grid",gridTemplateColumns:"1fr 1fr",gap:14},children:[s.jsxDEV("div",{className:"ws-card",style:{padding:"16px 18px",gap:8,display:"flex",flexDirection:"column"},children:[s.jsxDEV("div",{className:"ws-eyebrow",style:{marginBottom:4},children:"Node Type Breakdown"},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/ManageWorkspace/KGOverviewTab.tsx",lineNumber:432,columnNumber:13},this),i?s.jsxDEV("div",{style:{display:"flex",flexDirection:"column",gap:8},children:[80,65,45,35,25].map((a,o)=>s.jsxDEV("div",{className:"ws-skeleton",style:{height:10,width:`${a}%`}},o,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/ManageWorkspace/KGOverviewTab.tsx",lineNumber:440,columnNumber:53},this))},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/ManageWorkspace/KGOverviewTab.tsx",lineNumber:435,columnNumber:24},this):x.length===0?s.jsxDEV("div",{className:"ws-body",style:{fontSize:12},children:"No data — load the graph first."},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/ManageWorkspace/KGOverviewTab.tsx",lineNumber:444,columnNumber:55},this):x.slice(0,8).map(([a,o],r)=>s.jsxDEV(O,{label:a,count:o,total:m||1,color:W[r%W.length]},a,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/ManageWorkspace/KGOverviewTab.tsx",lineNumber:446,columnNumber:110},this))]},void 0,!0,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/ManageWorkspace/KGOverviewTab.tsx",lineNumber:426,columnNumber:11},this),s.jsxDEV("div",{className:"ws-card",style:{padding:"16px 18px",gap:8,display:"flex",flexDirection:"column"},children:[s.jsxDEV("div",{className:"ws-eyebrow",style:{marginBottom:4},children:"Edge Type Breakdown"},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/ManageWorkspace/KGOverviewTab.tsx",lineNumber:455,columnNumber:13},this),i?s.jsxDEV("div",{style:{display:"flex",flexDirection:"column",gap:8},children:[70,55,48,30,20].map((a,o)=>s.jsxDEV("div",{className:"ws-skeleton",style:{height:10,width:`${a}%`}},o,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/ManageWorkspace/KGOverviewTab.tsx",lineNumber:463,columnNumber:57},this))},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/ManageWorkspace/KGOverviewTab.tsx",lineNumber:458,columnNumber:24},this):k.length===0?s.jsxDEV("div",{className:"ws-body",style:{fontSize:12},children:"Edge type breakdown requires the stats endpoint to return edge_types."},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/ManageWorkspace/KGOverviewTab.tsx",lineNumber:467,columnNumber:55},this):k.slice(0,8).map(([a,o],r)=>s.jsxDEV(O,{label:a,count:o,total:w||1,color:L[r%L.length]},a,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/ManageWorkspace/KGOverviewTab.tsx",lineNumber:469,columnNumber:152},this))]},void 0,!0,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/ManageWorkspace/KGOverviewTab.tsx",lineNumber:449,columnNumber:11},this)]},void 0,!0,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/ManageWorkspace/KGOverviewTab.tsx",lineNumber:421,columnNumber:9},this),N.length>0&&s.jsxDEV("div",{className:"ws-card",style:{padding:"16px 18px"},children:[s.jsxDEV("div",{className:"ws-eyebrow",style:{marginBottom:12},children:"Top Connected Nodes (by degree)"},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/ManageWorkspace/KGOverviewTab.tsx",lineNumber:477,columnNumber:13},this),s.jsxDEV("div",{style:{display:"grid",gridTemplateColumns:"repeat(auto-fill, minmax(260px, 1fr))",gap:8},children:N.map(({node:a,neighborCount:o},r)=>s.jsxDEV("div",{style:{display:"flex",alignItems:"center",gap:10,padding:"9px 12px",borderRadius:"var(--ws-radius-sm)",background:"rgba(0,0,0,0.18)",border:"1px solid var(--ws-border)"},children:[s.jsxDEV("div",{style:{color:"var(--ws-text-dim)",fontSize:11,fontWeight:700,minWidth:22},children:["#",r+1]},void 0,!0,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/ManageWorkspace/KGOverviewTab.tsx",lineNumber:497,columnNumber:19},this),s.jsxDEV("div",{style:{flex:1,minWidth:0},children:[s.jsxDEV("div",{style:{color:"var(--ws-text)",fontSize:12,fontWeight:600,overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},children:a.content||a.id},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/ManageWorkspace/KGOverviewTab.tsx",lineNumber:507,columnNumber:21},this),s.jsxDEV("div",{className:"ws-eyebrow",style:{marginTop:2,fontSize:9},children:a.type},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/ManageWorkspace/KGOverviewTab.tsx",lineNumber:515,columnNumber:21},this)]},void 0,!0,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/ManageWorkspace/KGOverviewTab.tsx",lineNumber:503,columnNumber:19},this),s.jsxDEV("span",{className:"ws-pill ws-pill--accent",style:{fontSize:10},children:o},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/ManageWorkspace/KGOverviewTab.tsx",lineNumber:520,columnNumber:19},this)]},a.id,!0,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/ManageWorkspace/KGOverviewTab.tsx",lineNumber:488,columnNumber:23},this))},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/ManageWorkspace/KGOverviewTab.tsx",lineNumber:480,columnNumber:13},this)]},void 0,!0,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/ManageWorkspace/KGOverviewTab.tsx",lineNumber:474,columnNumber:33},this)]},void 0,!0,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/ManageWorkspace/KGOverviewTab.tsx",lineNumber:395,columnNumber:7},this)]},void 0,!0,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/ManageWorkspace/KGOverviewTab.tsx",lineNumber:334,columnNumber:10},this)}export{z as KGOverviewTab};
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
import{b as S,j as e}from"./index-DHWWI-uw.js";import{a as t}from"./query-vendor-BqVbYexz.js";import{i as j,B as A,C as H}from"./style-D8TqSrGs.js";import"./index-C00aFykz.js";/**
|
|
2
|
-
* @license lucide-react v1.8.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 E=[["path",{d:"M9 17H7A5 5 0 0 1 7 7h2",key:"8i5ue5"}],["path",{d:"M15 7h2a5 5 0 1 1 0 10h-2",key:"1b9ql8"}],["line",{x1:"8",x2:"16",y1:"12",y2:"12",key:"1jonct"}]],I=S("link-2",E),_=`
|
|
7
|
-
.react-flow { background: var(--ws-bg, #080407); }
|
|
8
|
-
.react-flow__node-group {
|
|
9
|
-
background: rgba(255,45,75,0.04);
|
|
10
|
-
border: 1px dashed rgba(255,45,75,0.18);
|
|
11
|
-
border-radius: 10px;
|
|
12
|
-
}
|
|
13
|
-
.react-flow__node-default {
|
|
14
|
-
background: rgba(6,13,26,0.92);
|
|
15
|
-
color: var(--ws-text, #ffe9ec);
|
|
16
|
-
border: 1px solid rgba(255,45,75,0.22);
|
|
17
|
-
border-radius: 8px;
|
|
18
|
-
padding: 10px 12px;
|
|
19
|
-
white-space: pre-wrap;
|
|
20
|
-
font-size: 12px;
|
|
21
|
-
box-shadow: 0 4px 16px rgba(0,0,0,0.4);
|
|
22
|
-
}
|
|
23
|
-
.react-flow__controls { background: rgba(6,13,26,0.9); border: 1px solid rgba(255,45,75,0.18); border-radius: 10px; }
|
|
24
|
-
.react-flow__controls-button { background: transparent; border-color: rgba(255,45,75,0.15); color: var(--ws-text-muted, #8f6d75); }
|
|
25
|
-
.react-flow__controls-button:hover { background: rgba(255,45,75,0.1); color: var(--ws-text, #ffe9ec); }
|
|
26
|
-
`;function C(){const[w,d]=t.useState([]),[y,m]=t.useState([]),[l,N]=t.useState(""),[o,u]=t.useState(""),[g,i]=t.useState(""),b=async s=>{if(!o)return;const c=await fetch(`/api/provenance/report?node_id=${encodeURIComponent(o)}&format=${s}`);if(!c.ok)return;const h=await c.blob(),r=window.URL.createObjectURL(h),n=document.createElement("a");n.href=r,n.download=`${o}_provenance.${s==="markdown"?"md":"json"}`,document.body.appendChild(n),n.click(),window.URL.revokeObjectURL(r),document.body.removeChild(n)},[k,L]=t.useState(o);return o!==k&&(L(o),i(""),d([]),m([])),t.useEffect(()=>{let s=!1;if(!o)return;const c=[{id:"group_agent",type:"group",position:{x:50,y:50},style:{width:800,height:120}},{id:"group_activity",type:"group",position:{x:50,y:200},style:{width:800,height:120}},{id:"group_entity",type:"group",position:{x:50,y:350},style:{width:800,height:120}}];return(async()=>{i("");try{const r=await fetch("/api/provenance?node_id="+encodeURIComponent(o));if(!r.ok){const a=await r.text();throw new Error(`HTTP ${r.status}: API Route missing or failed. ${a.substring(0,100)}`)}const n=r.headers.get("content-type");if(!n||!n.includes("application/json"))throw new Error("Backend returned non-JSON response (likely an HTML fallback).");const p=await r.json();r.status===207&&i(p.message||"Warning: Partial success loading lineage.");const x={group_agent:0,group_activity:0,group_entity:0},D=p.nodes.map(a=>{const f=x[a.parent_id]||0;return x[a.parent_id]=f+1,{id:a.id,data:{label:a.label+`
|
|
27
|
-
(`+a.prov_type+")"},position:{x:50+f*180,y:30},parentId:a.parent_id,extent:"parent",type:"default"}}),v=p.edges.map(a=>({id:a.id,source:a.source,target:a.target,label:a.label,animated:!0,style:{stroke:"#ff2d4b"}}));s||(d([...c,...D]),m(v))}catch(r){i(r instanceof Error?r.message:"Failed to load lineage.")}})(),()=>{s=!0}},[o]),e.jsxDEV("div",{style:{width:"100%",height:"100%",position:"relative",background:"var(--ws-bg, #080407)"},children:[e.jsxDEV("style",{children:_},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/LineageWorkspace/LineageDiagram.tsx",lineNumber:162,columnNumber:7},this),e.jsxDEV("div",{style:{position:"absolute",top:14,left:14,right:14,zIndex:10,display:"flex",gap:8,alignItems:"center",background:"rgba(4,10,18,0.88)",backdropFilter:"blur(14px)",padding:"8px 12px",borderRadius:12,border:"1px solid rgba(255,45,75,0.16)",boxShadow:"0 4px 20px rgba(0,0,0,0.4)"},children:[e.jsxDEV("span",{className:"ws-eyebrow",style:{color:"var(--ws-accent, #ff2d4b)",marginRight:4},children:"PROV-O Lineage"},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/LineageWorkspace/LineageDiagram.tsx",lineNumber:181,columnNumber:9},this),e.jsxDEV("input",{className:"ws-input",type:"text",placeholder:"Enter Node ID…",value:l,onChange:s=>N(s.target.value),onKeyDown:s=>{s.key==="Enter"&&u(l)},style:{width:200,padding:"6px 10px",fontSize:12}},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/LineageWorkspace/LineageDiagram.tsx",lineNumber:185,columnNumber:9},this),e.jsxDEV("button",{className:"ws-btn ws-btn--primary",style:{padding:"6px 12px"},onClick:()=>u(l),children:"Trace"},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/LineageWorkspace/LineageDiagram.tsx",lineNumber:192,columnNumber:9},this),e.jsxDEV("div",{style:{flex:1}},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/LineageWorkspace/LineageDiagram.tsx",lineNumber:197,columnNumber:9},this),e.jsxDEV("button",{className:"ws-btn ws-btn--ghost",style:{padding:"6px 12px",fontSize:11},disabled:!o,onClick:()=>{b("json")},children:"Export JSON"},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/LineageWorkspace/LineageDiagram.tsx",lineNumber:200,columnNumber:9},this),e.jsxDEV("button",{className:"ws-btn ws-btn--ghost",style:{padding:"6px 12px",fontSize:11},disabled:!o,onClick:()=>{b("markdown")},children:"Export MD"},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/LineageWorkspace/LineageDiagram.tsx",lineNumber:206,columnNumber:9},this)]},void 0,!0,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/LineageWorkspace/LineageDiagram.tsx",lineNumber:165,columnNumber:7},this),g?e.jsxDEV("div",{style:{position:"absolute",top:60,left:14,right:14,zIndex:10,padding:12,borderRadius:14,color:"#ffb4c2",background:"rgba(255,157,175,0.1)",border:"1px solid rgba(255,157,175,0.18)"},children:g},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/LineageWorkspace/LineageDiagram.tsx",lineNumber:214,columnNumber:16},this):null,o?e.jsxDEV(j,{nodes:w,edges:y,fitView:!0,children:[e.jsxDEV(A,{color:"rgba(255,45,75,0.08)",gap:24},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/LineageWorkspace/LineageDiagram.tsx",lineNumber:230,columnNumber:11},this),e.jsxDEV(H,{},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/LineageWorkspace/LineageDiagram.tsx",lineNumber:231,columnNumber:11},this)]},void 0,!0,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/LineageWorkspace/LineageDiagram.tsx",lineNumber:229,columnNumber:19},this):e.jsxDEV("div",{className:"ws-empty",style:{height:"100%",paddingTop:72},children:[e.jsxDEV("div",{className:"ws-empty-icon",children:e.jsxDEV(I,{size:36,color:"var(--ws-accent)"},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/LineageWorkspace/LineageDiagram.tsx",lineNumber:236,columnNumber:42},this)},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/LineageWorkspace/LineageDiagram.tsx",lineNumber:236,columnNumber:11},this),e.jsxDEV("div",{className:"ws-empty-title",children:"PROV-O Lineage Viewer"},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/LineageWorkspace/LineageDiagram.tsx",lineNumber:237,columnNumber:11},this),e.jsxDEV("div",{className:"ws-empty-body",children:"Enter a Node ID in the toolbar above and click Trace to view its W3C PROV-O lineage diagram."},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/LineageWorkspace/LineageDiagram.tsx",lineNumber:238,columnNumber:11},this)]},void 0,!0,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/LineageWorkspace/LineageDiagram.tsx",lineNumber:232,columnNumber:24},this)]},void 0,!0,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/LineageWorkspace/LineageDiagram.tsx",lineNumber:156,columnNumber:10},this)}export{C as LineageDiagram};
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import{b as v,c as H,j as o}from"./index-DHWWI-uw.js";import{a as R}from"./query-vendor-BqVbYexz.js";import{u as T,c as I}from"./registryStore-MVt_NgVV.js";import{T as W}from"./trash-2-DiZNV6Gj.js";import{C as L,a as V}from"./chevron-right-CiEuNwKq.js";/**
|
|
2
|
-
* @license lucide-react v1.8.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 U=[["rect",{width:"8",height:"4",x:"8",y:"2",rx:"1",ry:"1",key:"tgr4d6"}],["path",{d:"M16 4h2a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2h2",key:"116196"}],["path",{d:"M12 11h4",key:"1jrz19"}],["path",{d:"M12 16h4",key:"n85exb"}],["path",{d:"M8 11h.01",key:"1dfujw"}],["path",{d:"M8 16h.01",key:"18s6g9"}]],j=v("clipboard-list",U);/**
|
|
7
|
-
* @license lucide-react v1.8.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 _=[["path",{d:"M10 20a1 1 0 0 0 .553.895l2 1A1 1 0 0 0 14 21v-7a2 2 0 0 1 .517-1.341L21.74 4.67A1 1 0 0 0 21 3H3a1 1 0 0 0-.742 1.67l7.225 7.989A2 2 0 0 1 10 14z",key:"sc7q7i"}]],z=v("funnel",_),w={import:{label:"IMPORT",color:"#ff2d4b",bg:"rgba(255,45,75,0.12)",border:"rgba(255,45,75,0.28)"},export:{label:"EXPORT",color:"#c99aa3",bg:"rgba(143,168,198,0.08)",border:"rgba(143,168,198,0.18)"},merge:{label:"MERGE",color:"#ff7a45",bg:"rgba(242,182,109,0.12)",border:"rgba(242,182,109,0.28)"},"add-node":{label:"ADD NODE",color:"#4cc38a",bg:"rgba(76,195,138,0.12)",border:"rgba(76,195,138,0.28)"},"update-node":{label:"UPDATE NODE",color:"#ff8fa0",bg:"rgba(121,192,255,0.10)",border:"rgba(121,192,255,0.24)"},"add-edge":{label:"ADD EDGE",color:"#4cc38a",bg:"rgba(76,195,138,0.10)",border:"rgba(76,195,138,0.22)"},delete:{label:"DELETE",color:"#ff7b72",bg:"rgba(255,123,114,0.12)",border:"rgba(255,123,114,0.28)"},infer:{label:"INFER",color:"#d2a8ff",bg:"rgba(210,168,255,0.12)",border:"rgba(210,168,255,0.28)"},"vocab-import":{label:"VOCAB",color:"#ff8fa0",bg:"rgba(121,192,255,0.12)",border:"rgba(121,192,255,0.28)"}},C=["all","import","export","merge","add-node","update-node","add-edge","infer","delete","vocab-import"];function M(r){return r.toLocaleTimeString(void 0,{hour:"2-digit",minute:"2-digit",second:"2-digit"})}function O(r){return r.toLocaleDateString(void 0,{month:"short",day:"numeric"})}function B(r){const e=H.c(40);if(e[0]!=="cd670fd8bf5fe92655a46a866f479a8f0a648010e62e1208622a73c4ebbe6c25"){for(let A=0;A<40;A+=1)e[A]=Symbol.for("react.memo_cache_sentinel");e[0]="cd670fd8bf5fe92655a46a866f479a8f0a648010e62e1208622a73c4ebbe6c25"}const{entry:a}=r,[x,E]=R.useState(!1),s=w[a.op];let y;e[1]!==a.detail?(y=a.detail&&Object.keys(a.detail).length>0,e[1]=a.detail,e[2]=y):y=e[2];const p=y;let S;e[3]===Symbol.for("react.memo_cache_sentinel")?(S={display:"flex",alignItems:"flex-start",gap:12},e[3]=S):S=e[3];const k=`1px solid ${s.border}`;let l;e[4]!==s.bg||e[5]!==s.color||e[6]!==k?(l={flexShrink:0,display:"inline-block",padding:"3px 8px",borderRadius:999,fontSize:10,fontWeight:800,letterSpacing:"0.07em",color:s.color,background:s.bg,border:k,marginTop:1},e[4]=s.bg,e[5]=s.color,e[6]=k,e[7]=l):l=e[7];let i;e[8]!==s.label||e[9]!==l?(i=o.jsxDEV("span",{style:l,children:s.label},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/EnrichWorkspace/RegistryTab.tsx",lineNumber:144,columnNumber:10},this),e[8]=s.label,e[9]=l,e[10]=i):i=e[10];let d,N;e[11]===Symbol.for("react.memo_cache_sentinel")?(d={flex:1,minWidth:0},N={color:"#ffeaed",fontSize:13,fontWeight:500,wordBreak:"break-word"},e[11]=d,e[12]=N):(d=e[11],N=e[12]);let b;e[13]!==a.summary?(b=o.jsxDEV("div",{style:N,children:a.summary},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/EnrichWorkspace/RegistryTab.tsx",lineNumber:172,columnNumber:10},this),e[13]=a.summary,e[14]=b):b=e[14];let u;e[15]===Symbol.for("react.memo_cache_sentinel")?(u={color:"#b08b93",fontSize:11,marginTop:3},e[15]=u):u=e[15];let n;e[16]!==a.timestamp?(n=O(a.timestamp),e[16]=a.timestamp,e[17]=n):n=e[17];let c;e[18]!==a.timestamp?(c=M(a.timestamp),e[18]=a.timestamp,e[19]=c):c=e[19];let m;e[20]!==n||e[21]!==c?(m=o.jsxDEV("div",{style:u,children:[n," · ",c]},void 0,!0,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/EnrichWorkspace/RegistryTab.tsx",lineNumber:207,columnNumber:11},this),e[20]=n,e[21]=c,e[22]=m):m=e[22];let h;e[23]!==m||e[24]!==b?(h=o.jsxDEV("div",{style:d,children:[b,m]},void 0,!0,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/EnrichWorkspace/RegistryTab.tsx",lineNumber:216,columnNumber:11},this),e[23]=m,e[24]=b,e[25]=h):h=e[25];let t;e[26]!==x||e[27]!==p?(t=p?o.jsxDEV("button",{onClick:()=>E($),title:x?"Collapse details":"Expand details",style:K,children:x?o.jsxDEV(L,{size:14},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/EnrichWorkspace/RegistryTab.tsx",lineNumber:225,columnNumber:158},this):o.jsxDEV(V,{size:14},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/EnrichWorkspace/RegistryTab.tsx",lineNumber:225,columnNumber:186},this)},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/EnrichWorkspace/RegistryTab.tsx",lineNumber:225,columnNumber:23},this):null,e[26]=x,e[27]=p,e[28]=t):t=e[28];let g;e[29]!==h||e[30]!==t||e[31]!==i?(g=o.jsxDEV("div",{style:S,children:[i,h,t]},void 0,!0,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/EnrichWorkspace/RegistryTab.tsx",lineNumber:234,columnNumber:11},this),e[29]=h,e[30]=t,e[31]=i,e[32]=g):g=e[32];let f;e[33]!==a.detail||e[34]!==x||e[35]!==p?(f=x&&p?o.jsxDEV("pre",{style:Y,children:JSON.stringify(a.detail,null,2)},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/EnrichWorkspace/RegistryTab.tsx",lineNumber:244,columnNumber:35},this):null,e[33]=a.detail,e[34]=x,e[35]=p,e[36]=f):f=e[36];let D;return e[37]!==g||e[38]!==f?(D=o.jsxDEV("div",{style:q,children:[g,f]},void 0,!0,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/EnrichWorkspace/RegistryTab.tsx",lineNumber:254,columnNumber:11},this),e[37]=g,e[38]=f,e[39]=D):D=e[39],D}function $(r){return!r}function se(){const r=H.c(29);if(r[0]!=="cd670fd8bf5fe92655a46a866f479a8f0a648010e62e1208622a73c4ebbe6c25"){for(let t=0;t<29;t+=1)r[t]=Symbol.for("react.memo_cache_sentinel");r[0]="cd670fd8bf5fe92655a46a866f479a8f0a648010e62e1208622a73c4ebbe6c25"}const e=T(),[a,x]=R.useState("all");let E;r[1]!==a||r[2]!==e?(E=a==="all"?e:e.filter(t=>t.op===a),r[1]=a,r[2]=e,r[3]=E):E=r[3];const s=E;let y,p,S;r[4]===Symbol.for("react.memo_cache_sentinel")?(y=o.jsxDEV("div",{style:{display:"flex",alignItems:"center",gap:10},children:[o.jsxDEV(j,{size:18,color:"#ff2d4b"},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/EnrichWorkspace/RegistryTab.tsx",lineNumber:294,columnNumber:8},this),o.jsxDEV("div",{children:[o.jsxDEV("div",{style:{color:"#fff0f2",fontSize:16,fontWeight:700},children:"Document Registry"},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/EnrichWorkspace/RegistryTab.tsx",lineNumber:294,columnNumber:56},this),o.jsxDEV("div",{style:{color:"#b08b93",fontSize:12},children:"Audit log of all KG and Ontology mutations this session"},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/EnrichWorkspace/RegistryTab.tsx",lineNumber:298,columnNumber:35},this)]},void 0,!0,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/EnrichWorkspace/RegistryTab.tsx",lineNumber:294,columnNumber:51},this)]},void 0,!0,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/EnrichWorkspace/RegistryTab.tsx",lineNumber:290,columnNumber:10},this),p={display:"flex",alignItems:"center",gap:8},S={color:"#c99aa3",fontSize:12},r[4]=y,r[5]=p,r[6]=S):(y=r[4],p=r[5],S=r[6]);const k=e.length!==1?"s":"";let l;r[7]!==e.length||r[8]!==k?(l=o.jsxDEV("span",{style:S,children:[e.length," event",k]},void 0,!0,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/EnrichWorkspace/RegistryTab.tsx",lineNumber:322,columnNumber:10},this),r[7]=e.length,r[8]=k,r[9]=l):l=r[9];let i;r[10]!==e.length?(i=e.length>0?o.jsxDEV("button",{onClick:I,title:"Clear all events",style:Q,children:[o.jsxDEV(W,{size:13},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/EnrichWorkspace/RegistryTab.tsx",lineNumber:331,columnNumber:110},this),o.jsxDEV("span",{children:"Clear"},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/EnrichWorkspace/RegistryTab.tsx",lineNumber:331,columnNumber:130},this)]},void 0,!0,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/EnrichWorkspace/RegistryTab.tsx",lineNumber:331,columnNumber:31},this):null,r[10]=e.length,r[11]=i):i=r[11];let d;r[12]!==l||r[13]!==i?(d=o.jsxDEV("div",{style:G,children:[y,o.jsxDEV("div",{style:p,children:[l,i]},void 0,!0,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/EnrichWorkspace/RegistryTab.tsx",lineNumber:339,columnNumber:39},this)]},void 0,!0,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/EnrichWorkspace/RegistryTab.tsx",lineNumber:339,columnNumber:10},this),r[12]=l,r[13]=i,r[14]=d):d=r[14];let N,b;r[15]===Symbol.for("react.memo_cache_sentinel")?(N=o.jsxDEV(z,{size:13,color:"#c99aa3"},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/EnrichWorkspace/RegistryTab.tsx",lineNumber:349,columnNumber:10},this),b={display:"flex",gap:6,flexWrap:"wrap"},r[15]=N,r[16]=b):(N=r[15],b=r[16]);let u;r[17]!==a?(u=C.map(t=>{const g=t===a,f=t==="all"?null:w[t];return o.jsxDEV("button",{onClick:()=>x(t),style:{padding:"4px 10px",borderRadius:999,fontSize:11,fontWeight:600,cursor:"pointer",border:g?`1px solid ${f?.border??"rgba(255,107,129,0.35)"}`:"1px solid rgba(255,255,255,0.06)",background:g?f?.bg??"rgba(255,45,75,0.14)":"transparent",color:g?f?.color??"#8ed3ff":"#b08b93",transition:"all 140ms ease"},children:t==="all"?"All":f?.label??t},t,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/EnrichWorkspace/RegistryTab.tsx",lineNumber:366,columnNumber:14},this)}),r[17]=a,r[18]=u):u=r[18];let n;r[19]!==u?(n=o.jsxDEV("div",{style:J,children:[N,o.jsxDEV("div",{style:b,children:u},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/EnrichWorkspace/RegistryTab.tsx",lineNumber:385,columnNumber:43},this)]},void 0,!0,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/EnrichWorkspace/RegistryTab.tsx",lineNumber:385,columnNumber:11},this),r[19]=u,r[20]=n):n=r[20];let c;r[21]!==s?(c=s.length===0?o.jsxDEV("div",{style:Z,children:[o.jsxDEV(j,{size:36,color:"rgba(255,107,129,0.15)"},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/EnrichWorkspace/RegistryTab.tsx",lineNumber:393,columnNumber:64},this),o.jsxDEV("div",{style:{color:"#b08b93",fontSize:14,marginTop:12,fontWeight:500},children:"No events recorded yet"},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/EnrichWorkspace/RegistryTab.tsx",lineNumber:393,columnNumber:122},this),o.jsxDEV("div",{style:{color:"#9c7a82",fontSize:12,marginTop:4,textAlign:"center",maxWidth:300},children:"Import a file, run reasoning, or merge entities to see activity appear here."},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/EnrichWorkspace/RegistryTab.tsx",lineNumber:398,columnNumber:38},this)]},void 0,!0,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/EnrichWorkspace/RegistryTab.tsx",lineNumber:393,columnNumber:35},this):s.map(P),r[21]=s,r[22]=c):c=r[22];let m;r[23]!==c?(m=o.jsxDEV("div",{style:X,children:c},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/EnrichWorkspace/RegistryTab.tsx",lineNumber:412,columnNumber:11},this),r[23]=c,r[24]=m):m=r[24];let h;return r[25]!==n||r[26]!==m||r[27]!==d?(h=o.jsxDEV("div",{style:F,children:[d,n,m]},void 0,!0,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/EnrichWorkspace/RegistryTab.tsx",lineNumber:420,columnNumber:11},this),r[25]=n,r[26]=m,r[27]=d,r[28]=h):h=r[28],h}function P(r){return o.jsxDEV(B,{entry:r},r.id,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/EnrichWorkspace/RegistryTab.tsx",lineNumber:433,columnNumber:10},this)}const F={display:"flex",flexDirection:"column",width:"100%",height:"100%",background:"#0a0508",overflow:"hidden"},G={display:"flex",alignItems:"center",justifyContent:"space-between",padding:"20px 24px 16px",borderBottom:"1px solid rgba(255,45,75,0.1)",flexShrink:0},J={display:"flex",alignItems:"center",gap:10,padding:"12px 24px",borderBottom:"1px solid rgba(255,255,255,0.05)",flexShrink:0},X={flex:1,overflowY:"auto",padding:"16px 24px",display:"flex",flexDirection:"column",gap:8},q={padding:"12px 14px",borderRadius:12,background:"linear-gradient(135deg, rgba(13,17,23,0.6), rgba(22,27,34,0.4))",border:"1px solid rgba(255,255,255,0.06)",boxShadow:"inset 0 1px 0 rgba(255,255,255,0.03)"},K={flexShrink:0,background:"transparent",border:"none",color:"#b08b93",cursor:"pointer",padding:4,borderRadius:6,display:"flex",alignItems:"center"},Y={marginTop:10,padding:"10px 12px",borderRadius:8,background:"rgba(0,0,0,0.28)",border:"1px solid rgba(255,255,255,0.06)",color:"#ff8fa0",fontSize:11,fontFamily:"'JetBrains Mono', monospace",overflowX:"auto",whiteSpace:"pre-wrap",wordBreak:"break-all"},Q={display:"inline-flex",alignItems:"center",gap:5,padding:"5px 10px",borderRadius:8,border:"1px solid rgba(255,123,114,0.22)",background:"rgba(255,123,114,0.06)",color:"#ff7b72",fontSize:12,fontWeight:600,cursor:"pointer"},Z={flex:1,display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",padding:40,minHeight:280};export{se as RegistryTab};
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import{b}from"./index-DHWWI-uw.js";/**
|
|
2
|
-
* @license lucide-react v1.8.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 m=[["path",{d:"M2.062 12.348a1 1 0 0 1 0-.696 10.75 10.75 0 0 1 19.876 0 1 1 0 0 1 0 .696 10.75 10.75 0 0 1-19.876 0",key:"1nclc0"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]],S=b("eye",m),f=!0,h={palette:{semantic:["#3E79F2","#149287","#2F9F61","#555FD6","#8A56D8","#B65473","#C9922E"],overview:{nodeBase:"#0B1320",nodeCore:"#5A7A9E",nodeMuted:"#121927",nodeBorder:"#7A92AE",nodeTintMix:.14,nodeCoreMix:.72,nodeShellAlpha:.97,nodeCoreAlpha:1,edgeBackbone:"rgba(84, 123, 145, 0.24)",edgeStructure:"rgba(49, 63, 78, 0.08)",edgeInspection:"rgba(76, 102, 128, 0.12)"},accent:{selected:"#F2D288",hovered:"#8FE7FF",path:"#D79056",temporal:"#49D7FF",provenance:"#C9A5FF",inferred:"#D07B4D"},muted:{fallback:"rgba(96, 112, 136, 0.18)",nodeAlpha:.12,edgeOverview:"rgba(32, 45, 55, 0.035)",edgeStructure:"rgba(42, 58, 72, 0.055)",edgeInspection:"rgba(62, 84, 104, 0.075)",edgeFocus:"rgba(132, 178, 202, 0.26)"},background:{canvas:"#0A0D11",shell:"rgba(17, 21, 27, 0.82)",shellBorder:"rgba(170, 184, 205, 0.14)",shellGlow:"rgba(0, 0, 0, 0.28)",grid:"rgba(170, 184, 205, 0.026)",vignette:"rgba(3, 4, 7, 0.76)",nodeBorder:"#0B0F15"}},ui:{text:{strong:"#F3F0E8",body:"#D5D9DD",muted:"#9AA3AE",subtle:"#6F7A86",inverse:"#0B0D10"},surface:{app:"#08090B",stage:"#0B0E12",card:"linear-gradient(180deg, rgba(28, 31, 36, 0.88), rgba(16, 18, 23, 0.78))",cardSubtle:"linear-gradient(180deg, rgba(23, 26, 31, 0.72), rgba(13, 15, 19, 0.64))",cardStrong:"linear-gradient(180deg, rgba(34, 37, 43, 0.94), rgba(18, 21, 26, 0.9))",panel:"linear-gradient(180deg, rgba(21, 24, 30, 0.92), rgba(12, 14, 18, 0.9))",panelBorder:"rgba(211, 205, 190, 0.13)",divider:"rgba(211, 205, 190, 0.1)",shadow:"0 22px 60px rgba(0, 0, 0, 0.34), inset 0 1px 0 rgba(255, 255, 255, 0.045)"},scene:{background:"linear-gradient(180deg, #0B0E12 0%, #07080B 100%)",radialGlow:"radial-gradient(circle at 50% 18%, rgba(88, 224, 204, 0.07), transparent 30%), radial-gradient(circle at 78% 0%, rgba(217, 168, 92, 0.055), transparent 26%)",grid:"rgba(210, 206, 196, 0.024)",gridStrong:"rgba(210, 206, 196, 0.052)",vignette:"radial-gradient(ellipse at center, transparent 42%, rgba(2, 3, 5, 0.82) 100%)"},control:{defaultBg:"rgba(255, 255, 255, 0.035)",defaultBorder:"rgba(211, 205, 190, 0.11)",defaultText:"#D7D1C4",hoverBg:"rgba(255, 255, 255, 0.065)",activeBg:"linear-gradient(180deg, rgba(74, 181, 166, 0.24), rgba(38, 118, 116, 0.18))",activeBorder:"rgba(98, 226, 205, 0.42)",activeText:"#E8FFFA",primaryBg:"linear-gradient(180deg, rgba(55, 145, 132, 0.42), rgba(24, 86, 88, 0.28))",primaryBorder:"rgba(99, 228, 206, 0.34)",primaryText:"#F2FFFB",disabledText:"rgba(154, 163, 174, 0.42)",inputBg:"rgba(5, 7, 10, 0.52)",inputBorder:"rgba(211, 205, 190, 0.13)",focusRing:"rgba(98, 226, 205, 0.16)",dangerText:"#FF9A8D"},timeline:{background:"linear-gradient(180deg, rgba(14, 18, 24, 0.86), rgba(8, 11, 15, 0.92))",border:"rgba(170, 184, 205, 0.12)",gridMinor:"rgba(170, 184, 205, 0.04)",gridMajor:"rgba(170, 184, 205, 0.09)",text:"#7A92AE",textStrong:"#A5B7CD",playhead:"#8FE7FF",playheadSoft:"rgba(143, 231, 255, 0.12)"}},zoomTiers:{overview:{maxRatio:Number.POSITIVE_INFINITY,nodeScale:.72,labelThreshold:.998,labelBudget:2,edgePriorityThreshold:.72,arrowPriorityThreshold:Number.POSITIVE_INFINITY,edgeSizeScale:.62,showBadges:!1,showCurves:!0,showContextualArrows:!1},structure:{maxRatio:1.2,nodeScale:.94,labelThreshold:.95,labelBudget:12,edgePriorityThreshold:.4,arrowPriorityThreshold:.75,edgeSizeScale:.92,showBadges:!1,showCurves:!0,showContextualArrows:!1},inspection:{maxRatio:.5,nodeScale:1,labelThreshold:.8,labelBudget:40,edgePriorityThreshold:0,arrowPriorityThreshold:.45,edgeSizeScale:1.18,showBadges:!0,showCurves:!0,showContextualArrows:!0}},labels:{forceVisibleStates:["hovered","selected","path"],policies:{none:{minZoomTier:"inspection"},priority:{minZoomTier:"overview"},local:{minZoomTier:"structure"},always:{minZoomTier:"overview"}},chip:{fontFamily:'"IBM Plex Sans", Inter, system-ui, sans-serif',fontWeight:500,fontSize:10,maxFontSize:11,sizeScale:.25,paddingX:6,paddingY:3,radius:6,offsetX:12,offsetY:10,background:"rgba(8, 14, 24, 0.9)",borderColor:"rgba(154, 181, 212, 0.16)",borderAlpha:.28,textColor:"#EAF3FF",shadowColor:"rgba(0, 0, 0, 0.6)",shadowAlpha:.26,shadowBlur:12},hoverCard:{fontFamily:'"IBM Plex Sans", Inter, system-ui, sans-serif',titleWeight:700,titleSize:13,metaWeight:500,metaSize:10,paddingX:10,paddingY:7,radius:12,offsetX:16,offsetY:16,metaGap:5,background:"rgba(8, 14, 24, 0.94)",borderColor:"rgba(154, 181, 212, 0.18)",borderAlpha:.32,textColor:"#F6FBFF",metaColor:"rgba(184, 214, 255, 0.58)",shadowColor:"rgba(0, 0, 0, 0.62)",shadowAlpha:.34,shadowBlur:15}},nodes:{backgroundScale:.52,mutedAlpha:.16,strokeHierarchy:{overview:{base:.05,emphasis:.34,muted:.02},structure:{base:1.05,emphasis:1.45,muted:.55},inspection:{base:1.2,emphasis:1.7,muted:.6}},states:{default:{color:"base",sizeMultiplier:.7,minSize:.64,forceLabel:!1,zIndex:0,borderBoost:-.46},hovered:{color:"hovered",sizeMultiplier:1.08,minSize:10.4,forceLabel:!0,zIndex:4,borderBoost:.2},selected:{color:"selected",sizeMultiplier:1.02,minSize:9.2,forceLabel:!0,zIndex:3,borderBoost:.22},neighbor:{color:"base",sizeMultiplier:.76,minSize:4,forceLabel:!1,zIndex:2,borderBoost:-.08},path:{color:"path",sizeMultiplier:.96,minSize:5.6,forceLabel:!0,zIndex:2,borderBoost:.08},inactive:{color:"muted",sizeMultiplier:.52,minSize:.58,forceLabel:!1,zIndex:0,borderBoost:-.42},muted:{color:"muted",sizeMultiplier:.52,minSize:.58,forceLabel:!1,zIndex:0,borderBoost:-.42}},variants:{default:{sizeMultiplier:1,borderBoost:0,haloBoost:0,badgeVisibleFrom:"inspection"},temporal:{sizeMultiplier:1.02,borderBoost:.12,haloBoost:.1,badgeKind:"temporal",badgeVisibleFrom:"inspection"},inferred:{sizeMultiplier:1.05,borderBoost:.16,haloBoost:.14,badgeKind:"inferred",badgeVisibleFrom:"inspection"},provenance:{sizeMultiplier:1.03,borderBoost:.14,haloBoost:.12,badgeKind:"provenance",badgeVisibleFrom:"inspection"},selected:{sizeMultiplier:1.06,borderBoost:.22,haloBoost:.16,badgeVisibleFrom:"overview"}},entityShapes:{entity:{label:"Entity",shapeKind:0,aspectRatio:1,fillAlpha:.9,shellAlpha:.14,coreScale:0,borderBoost:.08,minSize:0},biomolecule:{label:"Biomolecule",shapeKind:1,aspectRatio:1,fillAlpha:.9,shellAlpha:.16,coreScale:.18,borderBoost:.16,minSize:1.2},condition:{label:"Condition",shapeKind:2,aspectRatio:1.04,fillAlpha:.88,shellAlpha:.15,coreScale:.16,borderBoost:.18,minSize:1.6},compound:{label:"Compound",shapeKind:3,aspectRatio:1.48,fillAlpha:.88,shellAlpha:.15,coreScale:.14,borderBoost:.14,minSize:1.4},process:{label:"Process",shapeKind:4,aspectRatio:1.1,fillAlpha:.87,shellAlpha:.14,coreScale:.14,borderBoost:.16,minSize:1.4},community:{label:"Community",shapeKind:5,aspectRatio:1,fillAlpha:.68,shellAlpha:.28,coreScale:.78,borderBoost:.34,minSize:2}},selectedRing:{color:"#E7C57C",width:1.9,nativeSize:2.2,glowAlpha:.2,visibleFrom:"overview"},badges:{inferred:{color:"#C98658",label:"I"},temporal:{color:"#52CDEF",label:"T"},provenance:{color:"#A289D0",label:"P"}},badge:{radius:7,offset:3,fontSize:8,textColor:"#08111d",background:"rgba(10, 5, 8, 0.84)",stroke:"rgba(255,255,255,0.14)",glowAlpha:.24}},edges:{states:{default:{color:"structure",sizeMultiplier:.48,minSize:.2,zIndex:0,forceArrow:!1,hide:!1},backbone:{color:"backbone",sizeMultiplier:.62,minSize:.36,zIndex:1,forceArrow:!1,hide:!1},hovered:{color:"hover",sizeMultiplier:1.42,minSize:1.85,zIndex:5,forceArrow:!0,hide:!1},selected:{color:"hover",sizeMultiplier:1.42,minSize:1.85,zIndex:5,forceArrow:!0,hide:!1},neighbor:{color:"focus",sizeMultiplier:.96,minSize:.86,zIndex:1,forceArrow:!1,hide:!1},path:{color:"path",sizeMultiplier:1.82,minSize:2.55,zIndex:6,forceArrow:!0,hide:!1},inactive:{color:"muted",sizeMultiplier:.24,minSize:.18,zIndex:0,forceArrow:!1,hide:!1},muted:{color:"muted",sizeMultiplier:.24,minSize:.18,zIndex:0,forceArrow:!1,hide:!1}},variants:{line:{baseType:"line",arrowPolicy:"hidden",curveStrength:0,sizeMultiplier:1,glowAlpha:0},directional:{baseType:"line",arrowPolicy:"contextual",curveStrength:0,sizeMultiplier:1.04,glowAlpha:.08},bidirectionalCurve:{baseType:"line",arrowPolicy:"contextual",curveStrength:.18,sizeMultiplier:1.08,glowAlpha:.1},parallelCurve:{baseType:"line",arrowPolicy:"contextual",curveStrength:.24,sizeMultiplier:1.1,glowAlpha:.12},pathSignal:{baseType:"arrow",arrowPolicy:"always",curveStrength:.16,sizeMultiplier:1.18,glowAlpha:.2}},visibility:{full:{overview:{defaultPriorityThreshold:.96,backgroundSampleRate:.035,defaultAlpha:.026,mutedAlpha:.012,inactiveAlpha:.01,neighborAlpha:.26,sizeMultiplier:.5,hideMuted:!0},structure:{defaultPriorityThreshold:.82,backgroundSampleRate:.16,defaultAlpha:.04,mutedAlpha:.014,inactiveAlpha:.012,neighborAlpha:.32,sizeMultiplier:.62,hideMuted:!0},inspection:{defaultPriorityThreshold:.72,backgroundSampleRate:.28,defaultAlpha:.052,mutedAlpha:.012,inactiveAlpha:.01,neighborAlpha:.38,sizeMultiplier:.64,hideMuted:!0}},grouped:{overview:{defaultPriorityThreshold:.42,backgroundSampleRate:1,defaultAlpha:.18,mutedAlpha:.06,inactiveAlpha:.04,neighborAlpha:.36,sizeMultiplier:.72,hideMuted:!1},structure:{defaultPriorityThreshold:.34,backgroundSampleRate:1,defaultAlpha:.2,mutedAlpha:.07,inactiveAlpha:.05,neighborAlpha:.42,sizeMultiplier:.78,hideMuted:!1},inspection:{defaultPriorityThreshold:.28,backgroundSampleRate:1,defaultAlpha:.22,mutedAlpha:.08,inactiveAlpha:.06,neighborAlpha:.46,sizeMultiplier:.82,hideMuted:!1}},focused:{overview:{defaultPriorityThreshold:.72,backgroundSampleRate:.7,defaultAlpha:.1,mutedAlpha:.03,inactiveAlpha:.02,neighborAlpha:.06,sizeMultiplier:.72,hideMuted:!0},structure:{defaultPriorityThreshold:.6,backgroundSampleRate:.8,defaultAlpha:.12,mutedAlpha:.035,inactiveAlpha:.025,neighborAlpha:.08,sizeMultiplier:.8,hideMuted:!0},inspection:{defaultPriorityThreshold:.52,backgroundSampleRate:.9,defaultAlpha:.14,mutedAlpha:.04,inactiveAlpha:.03,neighborAlpha:.1,sizeMultiplier:.88,hideMuted:!0}}},contextCaps:{full:{overview:0,structure:12,inspection:24},grouped:{overview:6,structure:8,inspection:10},focused:{overview:24,structure:36,inspection:48}},fullGraphStructure:{ambientBackboneAlpha:.12,backboneAlpha:.08,bridgeAlpha:.14,bridgeCurvePriorityThreshold:.78,bridgeCurveStrength:.1,backboneMaxSize:.5,bridgeMaxSize:.7,structureEdgeAlpha:.12,inspectionEdgeAlpha:.1},fullGraphStructureLayer:{mode:"off",minimumLiteralEdges:24,minimumCurves:8,maxCurves:64,bridgeAlpha:.16,backboneAlpha:.1,bridgeLineWidth:.9,backboneLineWidth:.62,curveStrength:.12}},interaction:{localContextAlpha:.32,hoverContextAlpha:.32,selectedEdgeAlpha:.6,pathEdgeAlpha:.76,localContextMaxSize:.6,selectedEdgeMaxSize:1,pathEdgeMaxSize:1.4,pathOverlayAlpha:.16},overlays:{hoverGlowAlpha:.18,pathGlowAlpha:.16,glowRadiusMultiplier:4.8,minGlowRadius:16,pulseRadius:11,curveLineWidth:1.7,curveGlowWidth:6,badgeGlowRadius:14},focus:{maxNeighbors:16,ringCapacity:6,ringGap:250,primaryLabels:6},motion:{cameraMs:380},grouped:{initialLayout:{innerRadius:92,ringSpacing:138,minNodeSpacing:112,nodePadding:28,overlapIterations:18,primaryLabelCount:6},style:{nodeSizeScale:.9,nodeBorderBoost:.42,fillAlpha:.68,shellAlpha:.28,edgeSizeScale:.62,edgeAlpha:.32,glowAlpha:.14,edgeVisibilityRatio:.18,topIncidentEdges:2},layout:{iterations:18,gravity:.06,scalingRatio:18,edgeWeightInfluence:.08,slowDown:34,settleMs:1500}},effects:{pathPulse:{minZoomTier:"structure",maxSegments:18,speed:.22,radius:11,glowAlpha:.92},pathFlow:{minZoomTier:"structure",maxSegments:14,speed:.36,spacing:.26,opacity:.92,radius:3.8},lens:{minZoomTier:"structure",radius:136,feather:78,glowAlpha:.18,edgeAlpha:.42,edgeLineWidth:1.8},temporalEmphasis:{minZoomTier:"structure",maxHighlights:48,radiusMultiplier:4.2,glowAlpha:.12},semanticRegions:{minZoomTier:"overview",maxRegions:3,minVisibleSamples:14,fogResolutionScale:.22,splatRadius:13,blurPasses:2,densityThreshold:.16,contourThreshold:.28,minMaskPixels:170,minOccupancyRatio:.0022,dominantMassRatio:.62,outerContourMinMaskPixels:240,fogAlpha:.11,innerContourAlpha:.16,outerContourAlpha:.045},contours:{minZoomTier:"overview",maxContours:3,baseRadius:88,glowAlpha:.055},legend:{maxGroups:8},diagnostics:{enabledInDev:f}}},p=["overview","structure","inspection"];function v(e){let r=0;for(let i=0;i<e.length;i+=1)r=(r<<5)-r+e.charCodeAt(i),r|=0;return Math.abs(r)}function g(e,r,i){return Math.min(i,Math.max(e,r))}function z(e,r){if(!e)return`rgba(130, 145, 165, ${r})`;if(e.startsWith("#")){const i=e.slice(1),a=i.length===3?i.split("").map(t=>`${t}${t}`).join(""):i;if(a.length===6){const t=Number.parseInt(a.slice(0,2),16),s=Number.parseInt(a.slice(2,4),16),d=Number.parseInt(a.slice(4,6),16);return`rgba(${t}, ${s}, ${d}, ${r})`}}return e.startsWith("rgba(")?e.replace(/rgba\((.*?),\s*[\d.]+\)/,`rgba($1, ${r})`):e.startsWith("rgb(")?e.replace("rgb(","rgba(").replace(")",`, ${r})`):`rgba(130, 145, 165, ${r})`}function w(e,r){if(!e.startsWith("#"))return e;const i=e.slice(1),a=i.length===3?i.split("").map(l=>`${l}${l}`).join(""):i;if(a.length!==6)return e;const t=l=>g(0,l,255),s=t(Number.parseInt(a.slice(0,2),16)-r),d=t(Number.parseInt(a.slice(2,4),16)-r),c=t(Number.parseInt(a.slice(4,6),16)-r);return`#${[s,d,c].map(l=>l.toString(16).padStart(2,"0")).join("")}`}function x(e,r,i){if(!e.startsWith("#")||!r.startsWith("#"))return r||e;const a=o=>{const n=o.slice(1);return n.length===3?n.split("").map(u=>`${u}${u}`).join(""):n},t=a(e),s=a(r);if(t.length!==6||s.length!==6)return r||e;const d=g(0,i,1),c=(o,n)=>Math.round(o+(n-o)*d);return`#${[0,2,4].map(o=>{const n=Number.parseInt(t.slice(o,o+2),16),u=Number.parseInt(s.slice(o,o+2),16);return c(n,u).toString(16).padStart(2,"0")}).join("")}`}function M(e){return e<=h.zoomTiers.inspection.maxRatio?"inspection":e<=h.zoomTiers.structure.maxRatio?"structure":"overview"}function y(e,r){return p.indexOf(e)>=p.indexOf(r)}export{S as E,h as G,x as b,g as c,w as d,M as g,v as h,z as w,y as z};
|