@ltm-blueverse/alpha-hub-studio 0.7.0 → 0.7.1
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/package.json +1 -1
- 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
package/package.json
CHANGED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{j as s,S as w,a as j,c as k,A}from"./index-CVYHt6Z6.js";import{a as D}from"./query-vendor-BqVbYexz.js";import{I as H}from"./info-Bxj0ofiy.js";function E(m){const e=(m??"").toLowerCase();return e.includes("approv")||e.includes("accept")?{color:"#0f8f6e",bg:"var(--ws-green-soft)",border:"rgba(76,195,138,0.3)"}:e.includes("reject")||e.includes("denied")||e.includes("fail")?{color:"#4e2121",bg:"var(--ws-red-soft)",border:"rgba(255,123,114,0.3)"}:e.includes("defer")||e.includes("pending")||e.includes("review")?{color:"#b45309",bg:"var(--ws-amber-soft)",border:"rgba(242,182,109,0.3)"}:{color:"var(--ws-text-muted)",bg:"rgba(28, 20, 24,0.04)",border:"rgba(28, 20, 24,0.1)"}}function v(m){const e=k.c(10);if(e[0]!=="c9aa1835a2f3a62d8e00724a1942832fa6c0f731a5d942ac22cd2881531179a2"){for(let p=0;p<10;p+=1)e[p]=Symbol.for("react.memo_cache_sentinel");e[0]="c9aa1835a2f3a62d8e00724a1942832fa6c0f731a5d942ac22cd2881531179a2"}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","#1f9d5f","#e86a2e","#8b5cf6","#ec2315","#0284c7","#7c3aed"];function I(m){const e=k.c(18);if(e[0]!=="c9aa1835a2f3a62d8e00724a1942832fa6c0f731a5d942ac22cd2881531179a2"){for(let N=0;N<18;N+=1)e[N]=Symbol.for("react.memo_cache_sentinel");e[0]="c9aa1835a2f3a62d8e00724a1942832fa6c0f731a5d942ac22cd2881531179a2"}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]!=="c9aa1835a2f3a62d8e00724a1942832fa6c0f731a5d942ac22cd2881531179a2"){for(let b=0;b<11;b+=1)e[b]=Symbol.for("react.memo_cache_sentinel");e[0]="c9aa1835a2f3a62d8e00724a1942832fa6c0f731a5d942ac22cd2881531179a2"}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]!=="c9aa1835a2f3a62d8e00724a1942832fa6c0f731a5d942ac22cd2881531179a2"){for(let i=0;i<8;i+=1)e[i]=Symbol.for("react.memo_cache_sentinel");e[0]="c9aa1835a2f3a62d8e00724a1942832fa6c0f731a5d942ac22cd2881531179a2"}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?"#2d161a":"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:"#e98498",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 +1 @@
|
|
|
1
|
-
import{j as e,G as p,A as f,C as g}from"./index-DHWWI-uw.js";import{a as c}from"./query-vendor-BqVbYexz.js";import{l as b}from"./registryStore-MVt_NgVV.js";import{C as h}from"./circle-check-BToWKwbO.js";import{L as D}from"./loader-circle-C8NUmtFx.js";const x=[{label:"Name",primary:"Sample Company Inc.",duplicate:"Sample Company",differs:!0},{label:"Founded",primary:"2004-05-12",duplicate:"2004-05-12",differs:!1},{label:"Type",primary:"Organization",duplicate:"Organisation",differs:!0},{label:"Country",primary:"US",duplicate:"US",differs:!1}];function W(){const[l,m]=c.useState("n-primary-1"),[a,d]=c.useState("n-dup-2"),[i,o]=c.useState("idle"),[t,n]=c.useState("");async function u(){o("loading"),n("");try{const s=await(await fetch("/api/enrich/merge",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({primary_id:l,duplicate_ids:[a]})})).json();if(s.merged_into)o("success"),n(`Merged → ${s.merged_into} · ${s.edges_updated??0} edges redirected`),b("merge",`Merged ${a} → ${s.merged_into} · ${s.edges_updated??0} edges redirected`,{primary:s.merged_into,duplicate:a,edgesUpdated:s.edges_updated});else throw new Error(s.detail||"Unexpected response")}catch(r){o("error"),n(r instanceof Error?r.message:"Merge failed")}}return e.jsxDEV("div",{className:"ws-page ws-scroll",children:e.jsxDEV("div",{className:"ws-padded",style:{display:"flex",flexDirection:"column",gap:22,maxWidth:1e3,margin:"0 auto",width:"100%"},children:[e.jsxDEV("div",{style:{display:"flex",alignItems:"center",gap:14},children:[e.jsxDEV("div",{style:{width:42,height:42,borderRadius:13,background:"var(--ws-purple-soft)",border:"1px solid rgba(192,132,252,0.3)",display:"grid",placeItems:"center",color:"var(--ws-purple)",flexShrink:0},children:e.jsxDEV(p,{size:20},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/DiffMergeWorkspace/DiffMergeWorkspace.tsx",lineNumber:93,columnNumber:13},this)},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/DiffMergeWorkspace/DiffMergeWorkspace.tsx",lineNumber:82,columnNumber:11},this),e.jsxDEV("div",{children:[e.jsxDEV("h2",{className:"ws-title",style:{fontSize:18},children:"Entity Diff & Merge"},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/DiffMergeWorkspace/DiffMergeWorkspace.tsx",lineNumber:96,columnNumber:13},this),e.jsxDEV("div",{className:"ws-body",style:{marginTop:2},children:"Compare suspected duplicates side-by-side and reconcile them into a single canonical entity."},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/DiffMergeWorkspace/DiffMergeWorkspace.tsx",lineNumber:99,columnNumber:13},this)]},void 0,!0,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/DiffMergeWorkspace/DiffMergeWorkspace.tsx",lineNumber:95,columnNumber:11},this)]},void 0,!0,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/DiffMergeWorkspace/DiffMergeWorkspace.tsx",lineNumber:77,columnNumber:9},this),e.jsxDEV("div",{style:{display:"grid",gridTemplateColumns:"1fr auto 1fr",gap:12,alignItems:"end"},children:[e.jsxDEV("div",{children:[e.jsxDEV("label",{className:"ws-label",children:"Primary Node ID (keep)"},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/DiffMergeWorkspace/DiffMergeWorkspace.tsx",lineNumber:113,columnNumber:13},this),e.jsxDEV("input",{className:"ws-input",value:l,onChange:r=>{m(r.target.value),o("idle")},placeholder:"e.g. n-primary-1"},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/DiffMergeWorkspace/DiffMergeWorkspace.tsx",lineNumber:114,columnNumber:13},this)]},void 0,!0,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/DiffMergeWorkspace/DiffMergeWorkspace.tsx",lineNumber:112,columnNumber:11},this),e.jsxDEV("div",{style:{paddingBottom:2,color:"var(--ws-text-dim)"},children:e.jsxDEV(f,{size:18},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/DiffMergeWorkspace/DiffMergeWorkspace.tsx",lineNumber:123,columnNumber:13},this)},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/DiffMergeWorkspace/DiffMergeWorkspace.tsx",lineNumber:119,columnNumber:11},this),e.jsxDEV("div",{children:[e.jsxDEV("label",{className:"ws-label",children:"Duplicate Node ID (remove)"},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/DiffMergeWorkspace/DiffMergeWorkspace.tsx",lineNumber:126,columnNumber:13},this),e.jsxDEV("input",{className:"ws-input",value:a,onChange:r=>{d(r.target.value),o("idle")},placeholder:"e.g. n-dup-2"},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/DiffMergeWorkspace/DiffMergeWorkspace.tsx",lineNumber:127,columnNumber:13},this)]},void 0,!0,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/DiffMergeWorkspace/DiffMergeWorkspace.tsx",lineNumber:125,columnNumber:11},this)]},void 0,!0,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/DiffMergeWorkspace/DiffMergeWorkspace.tsx",lineNumber:106,columnNumber:9},this),e.jsxDEV("div",{className:"ws-card",style:{padding:0,overflow:"hidden"},children:[e.jsxDEV("div",{style:{padding:"6px 16px",background:"rgba(242,182,109,0.06)",borderBottom:"1px solid rgba(242,182,109,0.15)",display:"flex",alignItems:"center",gap:6},children:[e.jsxDEV("span",{style:{fontSize:10,fontWeight:700,color:"var(--ws-amber)",letterSpacing:"0.08em",textTransform:"uppercase"},children:"Sample preview"},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/DiffMergeWorkspace/DiffMergeWorkspace.tsx",lineNumber:147,columnNumber:13},this),e.jsxDEV("span",{style:{fontSize:11,color:"var(--ws-text-dim)"},children:"— field comparison will load from the graph once the backend is connected"},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/DiffMergeWorkspace/DiffMergeWorkspace.tsx",lineNumber:154,columnNumber:13},this)]},void 0,!0,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/DiffMergeWorkspace/DiffMergeWorkspace.tsx",lineNumber:139,columnNumber:11},this),e.jsxDEV("div",{style:{display:"grid",gridTemplateColumns:"140px 1fr 1fr",background:"rgba(0,0,0,0.28)",borderBottom:"1px solid var(--ws-border)"},children:[e.jsxDEV("div",{style:{padding:"10px 16px",fontSize:11,fontWeight:700,color:"var(--ws-text-dim)",letterSpacing:"0.08em",textTransform:"uppercase"},children:"Field"},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/DiffMergeWorkspace/DiffMergeWorkspace.tsx",lineNumber:165,columnNumber:13},this),e.jsxDEV("div",{style:{padding:"10px 16px",fontSize:11,fontWeight:700,color:"var(--ws-accent)",letterSpacing:"0.08em",textTransform:"uppercase",borderLeft:"1px solid var(--ws-border)"},children:"Primary (keep)"},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/DiffMergeWorkspace/DiffMergeWorkspace.tsx",lineNumber:173,columnNumber:13},this),e.jsxDEV("div",{style:{padding:"10px 16px",fontSize:11,fontWeight:700,color:"#fca5a5",letterSpacing:"0.08em",textTransform:"uppercase",borderLeft:"1px solid var(--ws-border)"},children:"Duplicate (remove)"},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/DiffMergeWorkspace/DiffMergeWorkspace.tsx",lineNumber:182,columnNumber:13},this)]},void 0,!0,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/DiffMergeWorkspace/DiffMergeWorkspace.tsx",lineNumber:159,columnNumber:11},this),x.map(r=>e.jsxDEV("div",{style:{display:"grid",gridTemplateColumns:"140px 1fr 1fr",borderBottom:"1px solid rgba(255,45,75,0.06)",background:r.differs?"rgba(242,182,109,0.03)":"transparent"},children:[e.jsxDEV("div",{style:{padding:"12px 16px",fontSize:12,fontWeight:600,color:"var(--ws-text-dim)"},children:r.label},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/DiffMergeWorkspace/DiffMergeWorkspace.tsx",lineNumber:198,columnNumber:15},this),e.jsxDEV("div",{style:{padding:"12px 16px",fontSize:13,color:"var(--ws-text)",borderLeft:"1px solid var(--ws-border)"},children:r.primary},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/DiffMergeWorkspace/DiffMergeWorkspace.tsx",lineNumber:204,columnNumber:15},this),e.jsxDEV("div",{style:{padding:"12px 16px",fontSize:13,color:r.differs?"#fbbf24":"var(--ws-text)",fontWeight:r.differs?700:400,borderLeft:"1px solid var(--ws-border)"},children:[r.duplicate,r.differs&&e.jsxDEV("span",{className:"ws-pill ws-pill--amber",style:{marginLeft:8,fontSize:9},children:"diff"},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/DiffMergeWorkspace/DiffMergeWorkspace.tsx",lineNumber:218,columnNumber:33},this)]},void 0,!0,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/DiffMergeWorkspace/DiffMergeWorkspace.tsx",lineNumber:210,columnNumber:15},this)]},r.label,!0,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/DiffMergeWorkspace/DiffMergeWorkspace.tsx",lineNumber:192,columnNumber:35},this))]},void 0,!0,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/DiffMergeWorkspace/DiffMergeWorkspace.tsx",lineNumber:135,columnNumber:9},this),e.jsxDEV("div",{style:{display:"flex",alignItems:"center",gap:12},children:[i==="success"&&e.jsxDEV("div",{style:{display:"flex",alignItems:"center",gap:7,color:"#6ee7b7",fontSize:13},children:[e.jsxDEV(h,{size:15},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/DiffMergeWorkspace/DiffMergeWorkspace.tsx",lineNumber:239,columnNumber:15},this),t]},void 0,!0,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/DiffMergeWorkspace/DiffMergeWorkspace.tsx",lineNumber:232,columnNumber:36},this),i==="error"&&e.jsxDEV("div",{style:{display:"flex",alignItems:"center",gap:7,color:"#fca5a5",fontSize:13},children:[e.jsxDEV(g,{size:15},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/DiffMergeWorkspace/DiffMergeWorkspace.tsx",lineNumber:248,columnNumber:15},this),t]},void 0,!0,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/DiffMergeWorkspace/DiffMergeWorkspace.tsx",lineNumber:241,columnNumber:34},this),e.jsxDEV("button",{className:"ws-btn ws-btn--primary",onClick:u,disabled:i==="loading"||!l||!a,style:{marginLeft:"auto"},children:i==="loading"?e.jsxDEV(e.Fragment,{children:[e.jsxDEV(D,{size:14,className:"ws-spin"},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/DiffMergeWorkspace/DiffMergeWorkspace.tsx",lineNumber:253,columnNumber:39},this),"Merging…"]},void 0,!0,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/DiffMergeWorkspace/DiffMergeWorkspace.tsx",lineNumber:253,columnNumber:37},this):e.jsxDEV(e.Fragment,{children:[e.jsxDEV(p,{size:14},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/DiffMergeWorkspace/DiffMergeWorkspace.tsx",lineNumber:253,columnNumber:96},this),"Confirm Merge"]},void 0,!0,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/DiffMergeWorkspace/DiffMergeWorkspace.tsx",lineNumber:253,columnNumber:94},this)},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/DiffMergeWorkspace/DiffMergeWorkspace.tsx",lineNumber:250,columnNumber:11},this)]},void 0,!0,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/DiffMergeWorkspace/DiffMergeWorkspace.tsx",lineNumber:227,columnNumber:9},this)]},void 0,!0,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/DiffMergeWorkspace/DiffMergeWorkspace.tsx",lineNumber:68,columnNumber:7},this)},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/DiffMergeWorkspace/DiffMergeWorkspace.tsx",lineNumber:67,columnNumber:10},this)}export{W as DiffMergeWorkspace};
|
|
1
|
+
import{j as e,G as p,A as f,C as g}from"./index-CVYHt6Z6.js";import{a as c}from"./query-vendor-BqVbYexz.js";import{l as b}from"./registryStore-BPopBcrC.js";import{C as h}from"./circle-check-CzC458Im.js";import{L as D}from"./loader-circle-CmyLCPAg.js";const x=[{label:"Name",primary:"Sample Company Inc.",duplicate:"Sample Company",differs:!0},{label:"Founded",primary:"2004-05-12",duplicate:"2004-05-12",differs:!1},{label:"Type",primary:"Organization",duplicate:"Organisation",differs:!0},{label:"Country",primary:"US",duplicate:"US",differs:!1}];function W(){const[l,m]=c.useState("n-primary-1"),[a,d]=c.useState("n-dup-2"),[i,o]=c.useState("idle"),[t,n]=c.useState("");async function u(){o("loading"),n("");try{const s=await(await fetch("/api/enrich/merge",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({primary_id:l,duplicate_ids:[a]})})).json();if(s.merged_into)o("success"),n(`Merged → ${s.merged_into} · ${s.edges_updated??0} edges redirected`),b("merge",`Merged ${a} → ${s.merged_into} · ${s.edges_updated??0} edges redirected`,{primary:s.merged_into,duplicate:a,edgesUpdated:s.edges_updated});else throw new Error(s.detail||"Unexpected response")}catch(r){o("error"),n(r instanceof Error?r.message:"Merge failed")}}return e.jsxDEV("div",{className:"ws-page ws-scroll",children:e.jsxDEV("div",{className:"ws-padded",style:{display:"flex",flexDirection:"column",gap:22,maxWidth:1e3,margin:"0 auto",width:"100%"},children:[e.jsxDEV("div",{style:{display:"flex",alignItems:"center",gap:14},children:[e.jsxDEV("div",{style:{width:42,height:42,borderRadius:13,background:"var(--ws-purple-soft)",border:"1px solid rgba(192,132,252,0.3)",display:"grid",placeItems:"center",color:"var(--ws-purple)",flexShrink:0},children:e.jsxDEV(p,{size:20},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/DiffMergeWorkspace/DiffMergeWorkspace.tsx",lineNumber:93,columnNumber:13},this)},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/DiffMergeWorkspace/DiffMergeWorkspace.tsx",lineNumber:82,columnNumber:11},this),e.jsxDEV("div",{children:[e.jsxDEV("h2",{className:"ws-title",style:{fontSize:18},children:"Entity Diff & Merge"},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/DiffMergeWorkspace/DiffMergeWorkspace.tsx",lineNumber:96,columnNumber:13},this),e.jsxDEV("div",{className:"ws-body",style:{marginTop:2},children:"Compare suspected duplicates side-by-side and reconcile them into a single canonical entity."},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/DiffMergeWorkspace/DiffMergeWorkspace.tsx",lineNumber:99,columnNumber:13},this)]},void 0,!0,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/DiffMergeWorkspace/DiffMergeWorkspace.tsx",lineNumber:95,columnNumber:11},this)]},void 0,!0,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/DiffMergeWorkspace/DiffMergeWorkspace.tsx",lineNumber:77,columnNumber:9},this),e.jsxDEV("div",{style:{display:"grid",gridTemplateColumns:"1fr auto 1fr",gap:12,alignItems:"end"},children:[e.jsxDEV("div",{children:[e.jsxDEV("label",{className:"ws-label",children:"Primary Node ID (keep)"},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/DiffMergeWorkspace/DiffMergeWorkspace.tsx",lineNumber:113,columnNumber:13},this),e.jsxDEV("input",{className:"ws-input",value:l,onChange:r=>{m(r.target.value),o("idle")},placeholder:"e.g. n-primary-1"},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/DiffMergeWorkspace/DiffMergeWorkspace.tsx",lineNumber:114,columnNumber:13},this)]},void 0,!0,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/DiffMergeWorkspace/DiffMergeWorkspace.tsx",lineNumber:112,columnNumber:11},this),e.jsxDEV("div",{style:{paddingBottom:2,color:"var(--ws-text-dim)"},children:e.jsxDEV(f,{size:18},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/DiffMergeWorkspace/DiffMergeWorkspace.tsx",lineNumber:123,columnNumber:13},this)},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/DiffMergeWorkspace/DiffMergeWorkspace.tsx",lineNumber:119,columnNumber:11},this),e.jsxDEV("div",{children:[e.jsxDEV("label",{className:"ws-label",children:"Duplicate Node ID (remove)"},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/DiffMergeWorkspace/DiffMergeWorkspace.tsx",lineNumber:126,columnNumber:13},this),e.jsxDEV("input",{className:"ws-input",value:a,onChange:r=>{d(r.target.value),o("idle")},placeholder:"e.g. n-dup-2"},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/DiffMergeWorkspace/DiffMergeWorkspace.tsx",lineNumber:127,columnNumber:13},this)]},void 0,!0,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/DiffMergeWorkspace/DiffMergeWorkspace.tsx",lineNumber:125,columnNumber:11},this)]},void 0,!0,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/DiffMergeWorkspace/DiffMergeWorkspace.tsx",lineNumber:106,columnNumber:9},this),e.jsxDEV("div",{className:"ws-card",style:{padding:0,overflow:"hidden"},children:[e.jsxDEV("div",{style:{padding:"6px 16px",background:"rgba(242,182,109,0.06)",borderBottom:"1px solid rgba(242,182,109,0.15)",display:"flex",alignItems:"center",gap:6},children:[e.jsxDEV("span",{style:{fontSize:10,fontWeight:700,color:"var(--ws-amber)",letterSpacing:"0.08em",textTransform:"uppercase"},children:"Sample preview"},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/DiffMergeWorkspace/DiffMergeWorkspace.tsx",lineNumber:147,columnNumber:13},this),e.jsxDEV("span",{style:{fontSize:11,color:"var(--ws-text-dim)"},children:"— field comparison will load from the graph once the backend is connected"},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/DiffMergeWorkspace/DiffMergeWorkspace.tsx",lineNumber:154,columnNumber:13},this)]},void 0,!0,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/DiffMergeWorkspace/DiffMergeWorkspace.tsx",lineNumber:139,columnNumber:11},this),e.jsxDEV("div",{style:{display:"grid",gridTemplateColumns:"140px 1fr 1fr",background:"rgba(0,0,0,0.28)",borderBottom:"1px solid var(--ws-border)"},children:[e.jsxDEV("div",{style:{padding:"10px 16px",fontSize:11,fontWeight:700,color:"var(--ws-text-dim)",letterSpacing:"0.08em",textTransform:"uppercase"},children:"Field"},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/DiffMergeWorkspace/DiffMergeWorkspace.tsx",lineNumber:165,columnNumber:13},this),e.jsxDEV("div",{style:{padding:"10px 16px",fontSize:11,fontWeight:700,color:"var(--ws-accent)",letterSpacing:"0.08em",textTransform:"uppercase",borderLeft:"1px solid var(--ws-border)"},children:"Primary (keep)"},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/DiffMergeWorkspace/DiffMergeWorkspace.tsx",lineNumber:173,columnNumber:13},this),e.jsxDEV("div",{style:{padding:"10px 16px",fontSize:11,fontWeight:700,color:"#4e2121",letterSpacing:"0.08em",textTransform:"uppercase",borderLeft:"1px solid var(--ws-border)"},children:"Duplicate (remove)"},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/DiffMergeWorkspace/DiffMergeWorkspace.tsx",lineNumber:182,columnNumber:13},this)]},void 0,!0,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/DiffMergeWorkspace/DiffMergeWorkspace.tsx",lineNumber:159,columnNumber:11},this),x.map(r=>e.jsxDEV("div",{style:{display:"grid",gridTemplateColumns:"140px 1fr 1fr",borderBottom:"1px solid rgba(255,45,75,0.06)",background:r.differs?"rgba(242,182,109,0.03)":"transparent"},children:[e.jsxDEV("div",{style:{padding:"12px 16px",fontSize:12,fontWeight:600,color:"var(--ws-text-dim)"},children:r.label},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/DiffMergeWorkspace/DiffMergeWorkspace.tsx",lineNumber:198,columnNumber:15},this),e.jsxDEV("div",{style:{padding:"12px 16px",fontSize:13,color:"var(--ws-text)",borderLeft:"1px solid var(--ws-border)"},children:r.primary},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/DiffMergeWorkspace/DiffMergeWorkspace.tsx",lineNumber:204,columnNumber:15},this),e.jsxDEV("div",{style:{padding:"12px 16px",fontSize:13,color:r.differs?"#b45309":"var(--ws-text)",fontWeight:r.differs?700:400,borderLeft:"1px solid var(--ws-border)"},children:[r.duplicate,r.differs&&e.jsxDEV("span",{className:"ws-pill ws-pill--amber",style:{marginLeft:8,fontSize:9},children:"diff"},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/DiffMergeWorkspace/DiffMergeWorkspace.tsx",lineNumber:218,columnNumber:33},this)]},void 0,!0,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/DiffMergeWorkspace/DiffMergeWorkspace.tsx",lineNumber:210,columnNumber:15},this)]},r.label,!0,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/DiffMergeWorkspace/DiffMergeWorkspace.tsx",lineNumber:192,columnNumber:35},this))]},void 0,!0,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/DiffMergeWorkspace/DiffMergeWorkspace.tsx",lineNumber:135,columnNumber:9},this),e.jsxDEV("div",{style:{display:"flex",alignItems:"center",gap:12},children:[i==="success"&&e.jsxDEV("div",{style:{display:"flex",alignItems:"center",gap:7,color:"#0f8f6e",fontSize:13},children:[e.jsxDEV(h,{size:15},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/DiffMergeWorkspace/DiffMergeWorkspace.tsx",lineNumber:239,columnNumber:15},this),t]},void 0,!0,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/DiffMergeWorkspace/DiffMergeWorkspace.tsx",lineNumber:232,columnNumber:36},this),i==="error"&&e.jsxDEV("div",{style:{display:"flex",alignItems:"center",gap:7,color:"#4e2121",fontSize:13},children:[e.jsxDEV(g,{size:15},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/DiffMergeWorkspace/DiffMergeWorkspace.tsx",lineNumber:248,columnNumber:15},this),t]},void 0,!0,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/DiffMergeWorkspace/DiffMergeWorkspace.tsx",lineNumber:241,columnNumber:34},this),e.jsxDEV("button",{className:"ws-btn ws-btn--primary",onClick:u,disabled:i==="loading"||!l||!a,style:{marginLeft:"auto"},children:i==="loading"?e.jsxDEV(e.Fragment,{children:[e.jsxDEV(D,{size:14,className:"ws-spin"},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/DiffMergeWorkspace/DiffMergeWorkspace.tsx",lineNumber:253,columnNumber:39},this),"Merging…"]},void 0,!0,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/DiffMergeWorkspace/DiffMergeWorkspace.tsx",lineNumber:253,columnNumber:37},this):e.jsxDEV(e.Fragment,{children:[e.jsxDEV(p,{size:14},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/DiffMergeWorkspace/DiffMergeWorkspace.tsx",lineNumber:253,columnNumber:96},this),"Confirm Merge"]},void 0,!0,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/DiffMergeWorkspace/DiffMergeWorkspace.tsx",lineNumber:253,columnNumber:94},this)},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/DiffMergeWorkspace/DiffMergeWorkspace.tsx",lineNumber:250,columnNumber:11},this)]},void 0,!0,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/DiffMergeWorkspace/DiffMergeWorkspace.tsx",lineNumber:227,columnNumber:9},this)]},void 0,!0,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/DiffMergeWorkspace/DiffMergeWorkspace.tsx",lineNumber:68,columnNumber:7},this)},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/DiffMergeWorkspace/DiffMergeWorkspace.tsx",lineNumber:67,columnNumber:10},this)}export{W as DiffMergeWorkspace};
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import{b as X,j as o,G as J,c as G}from"./index-CVYHt6Z6.js";import{a as y}from"./query-vendor-BqVbYexz.js";import{u as K,l as $}from"./registryStore-BPopBcrC.js";import{L as Y}from"./loader-circle-CmyLCPAg.js";import{C as Q,a as Z}from"./chevron-right-BnjhfQ0S.js";import{X as ee}from"./x-lyk2jiOu.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]!=="93fe59adebc2d089c5a6e891b5d854b5d3e86d5c5b6f1cc250d0bf1b365d9288"){for(let s=0;s<16;s+=1)e[s]=Symbol.for("react.memo_cache_sentinel");e[0]="93fe59adebc2d089c5a6e891b5d854b5d3e86d5c5b6f1cc250d0bf1b365d9288"}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?"#ec2315":t>=.75?"#e86a2e":"#1f9d5f";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(28, 20, 24,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]!=="93fe59adebc2d089c5a6e891b5d854b5d3e86d5c5b6f1cc250d0bf1b365d9288"){for(let C=0;C<53;C+=1)e[C]=Symbol.for("react.memo_cache_sentinel");e[0]="93fe59adebc2d089c5a6e891b5d854b5d3e86d5c5b6f1cc250d0bf1b365d9288"}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:"#e86a2e",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:"#1f9d5f"},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:"#ec2315"}].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:"#2d1619",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:"#e86a2e"},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:"#2d1619",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:"#602b34",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:"#e86a2e",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:"#e86a2e",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:"#ec2315",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:"#e86a2e"},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:"#602b34",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:"#fdfcfc",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(255, 255, 255,0.75), rgba(255, 255, 255,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:"#e86a2e",fontSize:13,fontWeight:700,cursor:"pointer",flexShrink:0},me={padding:"12px 14px",borderRadius:12,background:"linear-gradient(135deg, rgba(255, 255, 255,0.6), rgba(255, 255, 255,0.4))",border:"1px solid rgba(28, 20, 24,0.07)"},O={display:"inline-block",padding:"4px 10px",borderRadius:8,background:"rgba(28, 20, 24,0.04)",border:"1px solid rgba(28, 20, 24,0.08)",color:"#2d1619",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(28, 20, 24,0.06)",padding:"16px 16px",overflowY:"auto",flexShrink:0},he={display:"flex",alignItems:"flex-start",gap:7,padding:"8px 0",borderBottom:"1px solid rgba(28, 20, 24,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 +1 @@
|
|
|
1
|
-
import{c as oo,j as o}from"./index-DHWWI-uw.js";import{g as w,f as ao}from"./GraphWorkspace-AxTFEhNP.js";import{G as a,w as so}from"./graphTheme-DNKLxzKZ.js";import{M as fo}from"./MarkdownContentViewer-Chx4ysCK.js";import{L as no}from"./loader-circle-C8NUmtFx.js";import"./query-vendor-BqVbYexz.js";import"./graph-vendor-CUDaIrp7.js";import"./registryStore-MVt_NgVV.js";import"./refresh-cw-CL9OXZ89.js";import"./layers-Cct6D_wK.js";import"./git-branch-B8yDcUSY.js";import"./play-G1gyOk2a.js";import"./x-DpqMYq96.js";import"./copy-BfQXGhHP.js";import"./pencil-DYlEC6ri.js";import"./external-link-DqNu6T-f.js";const xo=["source","source_url","pmid","pmids","evidence","provenance","confidence"];function No(t){return xo.filter(e=>e in t).map(e=>({key:e,value:t[e]}))}const yo={direct:"#3fb950",near:"#ff8fa0","mid-range":"#e3b341",distant:"#ff7b72"};function go(t){const e=oo.c(33);if(e[0]!=="be97692dc5e601693aeae1b4a6c06ca48ed81fd647e620ce7d6afa98f171a0ef"){for(let k=0;k<33;k+=1)e[k]=Symbol.for("react.memo_cache_sentinel");e[0]="be97692dc5e601693aeae1b4a6c06ca48ed81fd647e620ce7d6afa98f171a0ef"}const{result:r}=t,l=yo[r.distance_band]??"#b08b93",y=r.confidence_decay!=null||r.semantic_similarity!=null||r.path_coherence_score!=null||r.bottleneck_node!=null;let d,N;e[1]===Symbol.for("react.memo_cache_sentinel")?(d={display:"flex",flexDirection:"column",gap:8,marginTop:8},N={display:"flex",gap:6,flexWrap:"wrap",alignItems:"center"},e[1]=d,e[2]=N):(d=e[1],N=e[2]);let n;e[3]!==l?(n=so(l,.14),e[3]=l,e[4]=n):n=e[4];let h;e[5]!==l?(h=so(l,.3),e[5]=l,e[6]=h):h=e[6];const g=`1px solid ${h}`;let b;e[7]!==l||e[8]!==n||e[9]!==g?(b={padding:"3px 8px",borderRadius:999,background:n,border:g,color:l,fontSize:11,fontWeight:700},e[7]=l,e[8]=n,e[9]=g,e[10]=b):b=e[10];const A=r.hop_count!==1?"s":"";let u;e[11]!==r.distance_band||e[12]!==r.hop_count||e[13]!==b||e[14]!==A?(u=o.jsxDEV("span",{style:b,children:[r.distance_band," · ",r.hop_count," hop",A]},void 0,!0,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/GraphWorkspace/GraphInspectorPanel.tsx",lineNumber:138,columnNumber:10},this),e[11]=r.distance_band,e[12]=r.hop_count,e[13]=b,e[14]=A,e[15]=u):u=e[15];let c;e[16]!==r.alternative_path_count?(c=(r.alternative_path_count??0)>0&&o.jsxDEV("span",{style:ze,children:[r.alternative_path_count," alt path",r.alternative_path_count!==1?"s":""]},void 0,!0,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/GraphWorkspace/GraphInspectorPanel.tsx",lineNumber:149,columnNumber:54},this),e[16]=r.alternative_path_count,e[17]=c):c=e[17];let f;e[18]!==u||e[19]!==c?(f=o.jsxDEV("div",{style:N,children:[u,c]},void 0,!0,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/GraphWorkspace/GraphInspectorPanel.tsx",lineNumber:157,columnNumber:11},this),e[18]=u,e[19]=c,e[20]=f):f=e[20];let i;e[21]!==y||e[22]!==r.bottleneck_node||e[23]!==r.confidence_decay||e[24]!==r.path_coherence_score||e[25]!==r.semantic_similarity?(i=y&&o.jsxDEV("div",{style:{display:"grid",gridTemplateColumns:"1fr 1fr",gap:8},children:[r.confidence_decay!=null&&o.jsxDEV("div",{style:_e,children:[o.jsxDEV("div",{style:Ce,children:"Confidence Decay"},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/GraphWorkspace/GraphInspectorPanel.tsx",lineNumber:170,columnNumber:73},this),o.jsxDEV("div",{style:{...Be,color:r.confidence_decay>.6?"#3fb950":r.confidence_decay>.3?"#e3b341":"#ff7b72"},children:[(r.confidence_decay*100).toFixed(1),"%"]},void 0,!0,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/GraphWorkspace/GraphInspectorPanel.tsx",lineNumber:170,columnNumber:125},this),o.jsxDEV("div",{style:mo,children:o.jsxDEV("div",{style:{...uo,width:`${r.confidence_decay*100}%`,background:r.confidence_decay>.6?"#3fb950":r.confidence_decay>.3?"#e3b341":"#ff7b72"}},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/GraphWorkspace/GraphInspectorPanel.tsx",lineNumber:173,columnNumber:96},this)},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/GraphWorkspace/GraphInspectorPanel.tsx",lineNumber:173,columnNumber:63},this)]},void 0,!0,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/GraphWorkspace/GraphInspectorPanel.tsx",lineNumber:170,columnNumber:44},this),r.semantic_similarity!=null&&o.jsxDEV("div",{style:_e,children:[o.jsxDEV("div",{style:Ce,children:"Semantic Sim."},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/GraphWorkspace/GraphInspectorPanel.tsx",lineNumber:177,columnNumber:97},this),o.jsxDEV("div",{style:{...Be,color:"#ff8fa0"},children:[(r.semantic_similarity*100).toFixed(1),"%"]},void 0,!0,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/GraphWorkspace/GraphInspectorPanel.tsx",lineNumber:177,columnNumber:146},this),o.jsxDEV("div",{style:mo,children:o.jsxDEV("div",{style:{...uo,width:`${r.semantic_similarity*100}%`,background:"#ff8fa0"}},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/GraphWorkspace/GraphInspectorPanel.tsx",lineNumber:180,columnNumber:99},this)},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/GraphWorkspace/GraphInspectorPanel.tsx",lineNumber:180,columnNumber:66},this)]},void 0,!0,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/GraphWorkspace/GraphInspectorPanel.tsx",lineNumber:177,columnNumber:68},this),r.path_coherence_score!=null&&o.jsxDEV("div",{style:_e,children:[o.jsxDEV("div",{style:Ce,children:"Path Coherence"},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/GraphWorkspace/GraphInspectorPanel.tsx",lineNumber:184,columnNumber:98},this),o.jsxDEV("div",{style:{...Be,color:"#a5d6a7"},children:[(r.path_coherence_score*100).toFixed(1),"%"]},void 0,!0,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/GraphWorkspace/GraphInspectorPanel.tsx",lineNumber:184,columnNumber:148},this)]},void 0,!0,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/GraphWorkspace/GraphInspectorPanel.tsx",lineNumber:184,columnNumber:69},this),r.bottleneck_node&&o.jsxDEV("div",{style:_e,children:[o.jsxDEV("div",{style:Ce,children:"Bottleneck"},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/GraphWorkspace/GraphInspectorPanel.tsx",lineNumber:187,columnNumber:130},this),o.jsxDEV("div",{style:{...Be,color:"#e3b341",fontSize:11,overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},title:r.bottleneck_node,children:ho(r.bottleneck_node)},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/GraphWorkspace/GraphInspectorPanel.tsx",lineNumber:187,columnNumber:176},this)]},void 0,!0,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/GraphWorkspace/GraphInspectorPanel.tsx",lineNumber:187,columnNumber:101},this)]},void 0,!0,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/GraphWorkspace/GraphInspectorPanel.tsx",lineNumber:166,columnNumber:25},this),e[21]=y,e[22]=r.bottleneck_node,e[23]=r.confidence_decay,e[24]=r.path_coherence_score,e[25]=r.semantic_similarity,e[26]=i):i=e[26];let p;e[27]!==r.interpretation?(p=r.interpretation&&o.jsxDEV("div",{style:{padding:"8px 10px",background:"rgba(255,45,75,0.06)",borderRadius:8,border:"1px solid rgba(255,45,75,0.14)",color:"#a0b4cc",fontSize:12,lineHeight:1.5},children:r.interpretation},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/GraphWorkspace/GraphInspectorPanel.tsx",lineNumber:206,columnNumber:36},this),e[27]=r.interpretation,e[28]=p):p=e[28];let x;return e[29]!==f||e[30]!==i||e[31]!==p?(x=o.jsxDEV("div",{style:d,children:[f,i,p]},void 0,!0,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/GraphWorkspace/GraphInspectorPanel.tsx",lineNumber:222,columnNumber:11},this),e[29]=f,e[30]=i,e[31]=p,e[32]=x):x=e[32],x}function ho(t){if(!w.hasNode(t))return t;const e=w.getNodeAttributes(t);return String(e.label??e.content??t)}function So(t,e,r){if(r){for(const l of r)if(w.hasEdge(l)){const[y,d]=w.extremities(l);if(y===t&&d===e||y===e&&d===t)return w.getEdgeAttributes(l).edgeType??"→"}}if(w.hasNode(t)&&w.hasNode(e)){let l="→";return w.forEachEdge(t,e,(y,d)=>{const N=d;N.edgeType&&(l=N.edgeType)}),l}return"→"}function ko(t){const e=oo.c(26);if(e[0]!=="be97692dc5e601693aeae1b4a6c06ca48ed81fd647e620ce7d6afa98f171a0ef"){for(let m=0;m<26;m+=1)e[m]=Symbol.for("react.memo_cache_sentinel");e[0]="be97692dc5e601693aeae1b4a6c06ca48ed81fd647e620ce7d6afa98f171a0ef"}const{path:r,edgeIds:l,totalWeight:y,bottleneckNodeId:d,onFocusNode:N}=t;if(r.length===0){let m;return e[1]===Symbol.for("react.memo_cache_sentinel")?(m=o.jsxDEV("div",{style:Ae,children:"No path found between the selected nodes."},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/GraphWorkspace/GraphInspectorPanel.tsx",lineNumber:289,columnNumber:12},this),e[1]=m):m=e[1],m}let n;e[2]!==d||e[3]!==l||e[4]!==N||e[5]!==r?(n=r.map((m,Y)=>{const W=ho(m),I=Y<r.length-1?So(m,r[Y+1],l):null;return o.jsxDEV("div",{style:{display:"contents"},children:[o.jsxDEV("button",{onClick:()=>N?.(m),title:m===d?`Bottleneck: ${m}`:`Focus: ${m}`,style:{...Ho,cursor:N?"pointer":"default",...m===d?{border:"1px solid rgba(227,179,65,0.5)",background:"rgba(227,179,65,0.12)"}:{}},children:[o.jsxDEV("span",{style:Go,children:Y+1},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/GraphWorkspace/GraphInspectorPanel.tsx",lineNumber:310,columnNumber:12},this),o.jsxDEV("span",{style:{maxWidth:120,overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},children:W},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/GraphWorkspace/GraphInspectorPanel.tsx",lineNumber:310,columnNumber:63},this)]},void 0,!0,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/GraphWorkspace/GraphInspectorPanel.tsx",lineNumber:303,columnNumber:10},this),I!==null?o.jsxDEV("div",{style:wo,children:[o.jsxDEV("div",{style:{width:16,height:1,background:"rgba(255,45,75,0.3)"}},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/GraphWorkspace/GraphInspectorPanel.tsx",lineNumber:315,columnNumber:95},this),o.jsxDEV("span",{style:Wo,children:I},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/GraphWorkspace/GraphInspectorPanel.tsx",lineNumber:319,columnNumber:16},this),o.jsxDEV("div",{style:{display:"flex",alignItems:"center"},children:[o.jsxDEV("div",{style:{width:12,height:1,background:"rgba(255,45,75,0.3)"}},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/GraphWorkspace/GraphInspectorPanel.tsx",lineNumber:322,columnNumber:14},this),o.jsxDEV("div",{style:{width:0,height:0,borderTop:"4px solid transparent",borderBottom:"4px solid transparent",borderLeft:"5px solid 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/GraphWorkspace/GraphInspectorPanel.tsx",lineNumber:326,columnNumber:18},this)]},void 0,!0,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/GraphWorkspace/GraphInspectorPanel.tsx",lineNumber:319,columnNumber:67},this)]},void 0,!0,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/GraphWorkspace/GraphInspectorPanel.tsx",lineNumber:315,columnNumber:59},this):null]},`${m}-${Y}`,!0,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/GraphWorkspace/GraphInspectorPanel.tsx",lineNumber:301,columnNumber:14},this)}),e[2]=d,e[3]=l,e[4]=N,e[5]=r,e[6]=n):n=e[6];let h;e[7]!==n?(h=o.jsxDEV("div",{style:vo,children:n},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/GraphWorkspace/GraphInspectorPanel.tsx",lineNumber:344,columnNumber:10},this),e[7]=n,e[8]=h):h=e[8];let g,b,A;e[9]===Symbol.for("react.memo_cache_sentinel")?(g={marginTop:8,display:"flex",alignItems:"center",gap:8},b=o.jsxDEV("span",{style:{color:"#9c7a82",fontSize:11},children:"Total weight:"},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/GraphWorkspace/GraphInspectorPanel.tsx",lineNumber:360,columnNumber:10},this),A={color:"#ff8fa0",fontSize:12,fontWeight:700},e[9]=g,e[10]=b,e[11]=A):(g=e[9],b=e[10],A=e[11]);let u;e[12]!==y?(u=y.toFixed(3),e[12]=y,e[13]=u):u=e[13];let c;e[14]!==u?(c=o.jsxDEV("span",{style:A,children:u},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/GraphWorkspace/GraphInspectorPanel.tsx",lineNumber:387,columnNumber:10},this),e[14]=u,e[15]=c):c=e[15];let f,i;e[16]===Symbol.for("react.memo_cache_sentinel")?(f=o.jsxDEV("span",{style:{color:"#9c7a82",fontSize:11},children:"·"},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/GraphWorkspace/GraphInspectorPanel.tsx",lineNumber:396,columnNumber:10},this),i={color:"#9c7a82",fontSize:11},e[16]=f,e[17]=i):(f=e[16],i=e[17]);let p;e[18]!==r.length?(p=o.jsxDEV("span",{style:i,children:[r.length," hops"]},void 0,!0,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/GraphWorkspace/GraphInspectorPanel.tsx",lineNumber:412,columnNumber:11},this),e[18]=r.length,e[19]=p):p=e[19];let x;e[20]!==p||e[21]!==c?(x=o.jsxDEV("div",{style:g,children:[b,c,f,p]},void 0,!0,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/GraphWorkspace/GraphInspectorPanel.tsx",lineNumber:420,columnNumber:11},this),e[20]=p,e[21]=c,e[22]=x):x=e[22];let k;return e[23]!==x||e[24]!==h?(k=o.jsxDEV("div",{children:[h,x]},void 0,!0,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/GraphWorkspace/GraphInspectorPanel.tsx",lineNumber:429,columnNumber:11},this),e[23]=x,e[24]=h,e[25]=k):k=e[25],k}function Ko(t){const e=oo.c(172);if(e[0]!=="be97692dc5e601693aeae1b4a6c06ca48ed81fd647e620ce7d6afa98f171a0ef"){for(let s=0;s<172;s+=1)e[s]=Symbol.for("react.memo_cache_sentinel");e[0]="be97692dc5e601693aeae1b4a6c06ca48ed81fd647e620ce7d6afa98f171a0ef"}const{nodeId:r,inspectableNodeId:l,selectedNodeKind:y,canActivateFocused:d,focusedUnavailableReason:N,predictions:n,predictionType:h,onPredictionTypeChange:g,onRunPredictions:b,isRunningPredictions:A,pathTargetId:u,onPathTargetChange:c,onTracePath:f,pathResult:i,onDownloadProvenance:p,onFocusNode:x,onMarkdownApplied:k,onMarkdownDirtyChange:m}=t,Y=y===void 0?"none":y,W=d===void 0?!1:d,I=N===void 0?null:N,j=A===void 0?!1:A;if(!r){let s;return e[1]===Symbol.for("react.memo_cache_sentinel")?(s=o.jsxDEV("div",{style:{padding:32,textAlign:"center",display:"flex",flexDirection:"column",alignItems:"center",gap:12,marginTop:32},children:[o.jsxDEV("div",{style:{width:40,height:40,borderRadius:"50%",background:"rgba(98, 226, 205, 0.07)",border:`1px solid ${a.ui.surface.panelBorder}`,display:"flex",alignItems:"center",justifyContent:"center"},children:o.jsxDEV("div",{style:{width:14,height:14,borderRadius:"50%",background:a.ui.timeline.playheadSoft}},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/GraphWorkspace/GraphInspectorPanel.tsx",lineNumber:493,columnNumber:12},this)},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/GraphWorkspace/GraphInspectorPanel.tsx",lineNumber:484,columnNumber:10},this),o.jsxDEV("p",{style:{color:a.ui.text.muted,fontSize:14,margin:0,lineHeight:1.6},children:"Search for a node or click one in the canvas to inspect its properties."},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/GraphWorkspace/GraphInspectorPanel.tsx",lineNumber:498,columnNumber:22},this)]},void 0,!0,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/GraphWorkspace/GraphInspectorPanel.tsx",lineNumber:476,columnNumber:12},this),e[1]=s):s=e[1],s}const ro=l&&w.hasNode(l)?l:null;let Ie;e[2]!==r?(Ie=w.hasNode(r),e[2]=r,e[3]=Ie):Ie=e[3];const Re=Ie,D=Re?r:ro,q=Re?r:ro,K=Y==="grouped"&&!Re;if(!D){let s,P,L,M;e[4]===Symbol.for("react.memo_cache_sentinel")?(s={padding:24,display:"flex",flexDirection:"column",gap:16},P={borderBottom:`1px solid ${a.ui.surface.divider}`,paddingBottom:16},L=o.jsxDEV("div",{style:{display:"flex",alignItems:"center",gap:10,marginBottom:8},children:[o.jsxDEV("span",{style:{background:a.ui.timeline.playhead,boxShadow:"0 0 10px rgba(98, 226, 205, 0.34)",width:8,height:8,borderRadius:"50%"}},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/GraphWorkspace/GraphInspectorPanel.tsx",lineNumber:544,columnNumber:10},this),o.jsxDEV("span",{style:{color:a.ui.timeline.playhead,fontSize:12,fontWeight:700},children:"Selection"},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/GraphWorkspace/GraphInspectorPanel.tsx",lineNumber:550,columnNumber:14},this)]},void 0,!0,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/GraphWorkspace/GraphInspectorPanel.tsx",lineNumber:539,columnNumber:12},this),M={margin:0,color:a.ui.text.strong,fontSize:20,fontWeight:700,wordBreak:"break-word"},e[4]=s,e[5]=P,e[6]=L,e[7]=M):(s=e[4],P=e[5],L=e[6],M=e[7]);let U;e[8]!==r?(U=o.jsxDEV("h3",{style:M,children:r},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/GraphWorkspace/GraphInspectorPanel.tsx",lineNumber:574,columnNumber:13},this),e[8]=r,e[9]=U):U=e[9];let ae;e[10]===Symbol.for("react.memo_cache_sentinel")?(ae={color:a.ui.text.muted,fontSize:12,marginTop:6,fontFamily:"monospace",wordBreak:"break-all"},e[10]=ae):ae=e[10];let v;e[11]!==r?(v=o.jsxDEV("div",{style:ae,children:r},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/GraphWorkspace/GraphInspectorPanel.tsx",lineNumber:595,columnNumber:13},this),e[11]=r,e[12]=v):v=e[12];let H;e[13]!==U||e[14]!==v?(H=o.jsxDEV("div",{style:P,children:[L,U,v]},void 0,!0,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/GraphWorkspace/GraphInspectorPanel.tsx",lineNumber:603,columnNumber:13},this),e[13]=U,e[14]=v,e[15]=H):H=e[15];let J,V;e[16]===Symbol.for("react.memo_cache_sentinel")?(J=o.jsxDEV("div",{style:{color:a.ui.text.strong,fontWeight:600,marginBottom:6},children:"Selected item is not directly inspectable in the current graph."},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/GraphWorkspace/GraphInspectorPanel.tsx",lineNumber:613,columnNumber:13},this),V={color:a.ui.text.body,fontSize:13,lineHeight:1.6},e[16]=J,e[17]=V):(J=e[16],V=e[17]);let E;e[18]!==W||e[19]!==I?(E=W?"Use Focus to resolve this grouped selection to its canonical node.":ao(I),e[18]=W,e[19]=I,e[20]=E):E=e[20];let S;e[21]!==E?(S=o.jsxDEV("div",{style:lo,children:[J,o.jsxDEV("div",{style:V,children:E},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/GraphWorkspace/GraphInspectorPanel.tsx",lineNumber:640,columnNumber:59},this)]},void 0,!0,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/GraphWorkspace/GraphInspectorPanel.tsx",lineNumber:640,columnNumber:13},this),e[21]=E,e[22]=S):S=e[22];let _;return e[23]!==H||e[24]!==S?(_=o.jsxDEV("aside",{style:s,children:[H,S]},void 0,!0,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/GraphWorkspace/GraphInspectorPanel.tsx",lineNumber:648,columnNumber:13},this),e[23]=H,e[24]=S,e[25]=_):_=e[25],_}let C,B,Q,z,R,T,$,F,X,Z,ee,O;if(e[26]!==q||e[27]!==W||e[28]!==D||e[29]!==I||e[30]!==K||e[31]!==j||e[32]!==r||e[33]!==p||e[34]!==x||e[35]!==k||e[36]!==m||e[37]!==c||e[38]!==g||e[39]!==b||e[40]!==f||e[41]!==i||e[42]!==u||e[43]!==h||e[44]!==n){const s=w.getNodeAttributes(D),P=s?.properties??{},L=No(P),M=s?.color||"#ff2d4b",U=Object.entries(P).filter(Io),ae=typeof s?.content=="string"&&s.content?s.content:typeof P.content=="string"&&P.content?P.content:"";let v,H;e[57]===Symbol.for("react.memo_cache_sentinel")?(C={padding:24,display:"flex",flexDirection:"column",gap:18},v={borderBottom:`1px solid ${a.ui.surface.divider}`,paddingBottom:16},H={display:"flex",alignItems:"center",gap:10,marginBottom:8},e[57]=C,e[58]=v,e[59]=H):(C=e[57],v=e[58],H=e[59]);const J=o.jsxDEV("div",{style:H,children:[o.jsxDEV("span",{style:{background:M,boxShadow:`0 0 10px ${M}`,width:8,height:8,borderRadius:"50%"}},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/GraphWorkspace/GraphInspectorPanel.tsx",lineNumber:711,columnNumber:34},this),o.jsxDEV("span",{style:{color:M,fontSize:12,fontWeight:700},children:K?"Grouped Selection":s?.nodeType||"Entity"},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/GraphWorkspace/GraphInspectorPanel.tsx",lineNumber:717,columnNumber:12},this)]},void 0,!0,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/GraphWorkspace/GraphInspectorPanel.tsx",lineNumber:711,columnNumber:17},this);let V;e[60]===Symbol.for("react.memo_cache_sentinel")?(V={margin:0,color:a.ui.text.strong,fontSize:20,fontWeight:700,wordBreak:"break-word"},e[60]=V):V=e[60];const E=String(s?.label??D);let S;e[61]!==E?(S=o.jsxDEV("h3",{style:V,children:E},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/GraphWorkspace/GraphInspectorPanel.tsx",lineNumber:738,columnNumber:13},this),e[61]=E,e[62]=S):S=e[62];let _;e[63]===Symbol.for("react.memo_cache_sentinel")?(_={color:a.ui.text.muted,fontSize:12,marginTop:6,fontFamily:"monospace",wordBreak:"break-all"},e[63]=_):_=e[63];const Te=K?r:D;let se;e[64]!==Te?(se=o.jsxDEV("div",{style:_,children:Te},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/GraphWorkspace/GraphInspectorPanel.tsx",lineNumber:760,columnNumber:13},this),e[64]=Te,e[65]=se):se=e[65];let ne;e[66]!==W||e[67]!==D||e[68]!==I||e[69]!==K?(ne=K?o.jsxDEV("div",{style:lo,children:[o.jsxDEV("div",{style:{color:a.ui.text.strong,fontWeight:600,marginBottom:6},children:"This grouped item stays display-level until you explicitly enter Focused mode."},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/GraphWorkspace/GraphInspectorPanel.tsx",lineNumber:768,columnNumber:80},this),o.jsxDEV("div",{style:{color:a.ui.text.body,fontSize:13,lineHeight:1.6},children:W?`Canonical node available: ${D}`:ao(I)},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/GraphWorkspace/GraphInspectorPanel.tsx",lineNumber:772,columnNumber:96},this)]},void 0,!0,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/GraphWorkspace/GraphInspectorPanel.tsx",lineNumber:768,columnNumber:39},this):null,e[66]=W,e[67]=D,e[68]=I,e[69]=K,e[70]=ne):ne=e[70];let ve;e[71]===Symbol.for("react.memo_cache_sentinel")?(ve={display:"flex",gap:8,flexWrap:"wrap",marginTop:12},e[71]=ve):ve=e[71];const $e=s?.valid_from||s?.valid_until?o.jsxDEV("span",{style:ze,children:"temporal"},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/GraphWorkspace/GraphInspectorPanel.tsx",lineNumber:797,columnNumber:69},this):null,Fe=L.length?o.jsxDEV("span",{style:ze,children:[L.length," source fields"]},void 0,!0,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/GraphWorkspace/GraphInspectorPanel.tsx",lineNumber:798,columnNumber:38},this):null;let te;e[72]!==n.length?(te=n.length?o.jsxDEV("span",{style:ze,children:[n.length," candidate links"]},void 0,!0,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/GraphWorkspace/GraphInspectorPanel.tsx",lineNumber:801,columnNumber:34},this):null,e[72]=n.length,e[73]=te):te=e[73];let le;e[74]!==$e||e[75]!==Fe||e[76]!==te?(le=o.jsxDEV("div",{style:ve,children:[$e,Fe,te]},void 0,!0,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/GraphWorkspace/GraphInspectorPanel.tsx",lineNumber:809,columnNumber:13},this),e[74]=$e,e[75]=Fe,e[76]=te,e[77]=le):le=e[77],e[78]!==J||e[79]!==S||e[80]!==se||e[81]!==ne||e[82]!==le?(B=o.jsxDEV("div",{style:v,children:[J,S,se,ne,le]},void 0,!0,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/GraphWorkspace/GraphInspectorPanel.tsx",lineNumber:818,columnNumber:13},this),e[78]=J,e[79]=S,e[80]=se,e[81]=ne,e[82]=le,e[83]=B):B=e[83],Q=s?.valid_from||s?.valid_until?o.jsxDEV("div",{style:{padding:"10px 12px",background:"rgba(233, 196, 122, 0.075)",border:"1px solid rgba(233, 196, 122, 0.22)",borderRadius:8,fontSize:12,color:a.palette.accent.selected,fontFamily:"monospace"},children:[s?.valid_from?o.jsxDEV("div",{children:["from: ",s.valid_from]},void 0,!0,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/GraphWorkspace/GraphInspectorPanel.tsx",lineNumber:836,columnNumber:34},this):null,s?.valid_until?o.jsxDEV("div",{children:["until: ",s.valid_until]},void 0,!0,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/GraphWorkspace/GraphInspectorPanel.tsx",lineNumber:836,columnNumber:109},this):null]},void 0,!0,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/GraphWorkspace/GraphInspectorPanel.tsx",lineNumber:828,columnNumber:63},this):null;let He;e[84]===Symbol.for("react.memo_cache_sentinel")?(He=o.jsxDEV("summary",{className:"node-panel-summary",children:"Content"},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/GraphWorkspace/GraphInspectorPanel.tsx",lineNumber:839,columnNumber:13},this),e[84]=He):He=e[84];let Ge;e[85]===Symbol.for("react.memo_cache_sentinel")?(Ge={marginTop:8},e[85]=Ge):Ge=e[85];let we;e[86]!==D?(we={kind:"context-node",id:D},e[86]=D,e[87]=we):we=e[87];const Oe=o.jsxDEV("div",{className:"node-panel-body",style:Ge,children:o.jsxDEV(fo,{content:ae,resource:we,onApplied:k,onDirtyChange:m},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/GraphWorkspace/GraphInspectorPanel.tsx",lineNumber:864,columnNumber:62},this)},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/GraphWorkspace/GraphInspectorPanel.tsx",lineNumber:864,columnNumber:17},this);e[88]!==Oe?(z=o.jsxDEV("details",{className:"node-panel-collapse",open:!0,children:[He,Oe]},void 0,!0,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/GraphWorkspace/GraphInspectorPanel.tsx",lineNumber:866,columnNumber:13},this),e[88]=Oe,e[89]=z):z=e[89];let We,Pe;e[90]===Symbol.for("react.memo_cache_sentinel")?(We=o.jsxDEV("div",{style:po,children:"Actions"},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/GraphWorkspace/GraphInspectorPanel.tsx",lineNumber:875,columnNumber:13},this),Pe={display:"flex",flexDirection:"column",gap:10},e[90]=We,e[91]=Pe):(We=e[90],Pe=e[91]);const Me=j?.7:1;let ce;e[92]!==Me?(ce={...eo,width:"100%",justifyContent:"center",opacity:Me},e[92]=Me,e[93]=ce):ce=e[93];const Je=j||!q;let ie;e[94]!==j?(ie=j?o.jsxDEV(no,{size:14,className:"animate-spin",style:{marginRight:6}},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/GraphWorkspace/GraphInspectorPanel.tsx",lineNumber:904,columnNumber:36},this):null,e[94]=j,e[95]=ie):ie=e[95];const Ke=j?"Running…":"Run Link Prediction";let pe;e[96]!==b||e[97]!==ce||e[98]!==Je||e[99]!==ie||e[100]!==Ke?(pe=o.jsxDEV("button",{style:ce,onClick:b,disabled:Je,children:[ie,Ke]},void 0,!0,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/GraphWorkspace/GraphInspectorPanel.tsx",lineNumber:915,columnNumber:13},this),e[96]=b,e[97]=ce,e[98]=Je,e[99]=ie,e[100]=Ke,e[101]=pe):pe=e[101];let Ee;e[102]===Symbol.for("react.memo_cache_sentinel")?(Ee={display:"flex",gap:8,flexWrap:"wrap"},e[102]=Ee):Ee=e[102];let me;e[103]!==p?(me=()=>p("json"),e[103]=p,e[104]=me):me=e[104];const Ye=!q;let ue;e[105]!==me||e[106]!==Ye?(ue=o.jsxDEV("button",{style:co,onClick:me,disabled:Ye,children:"Provenance JSON"},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/GraphWorkspace/GraphInspectorPanel.tsx",lineNumber:947,columnNumber:13},this),e[105]=me,e[106]=Ye,e[107]=ue):ue=e[107];let de;e[108]!==p?(de=()=>p("markdown"),e[108]=p,e[109]=de):de=e[109];const qe=!q;let he;e[110]!==de||e[111]!==qe?(he=o.jsxDEV("button",{style:co,onClick:de,disabled:qe,children:"Provenance MD"},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/GraphWorkspace/GraphInspectorPanel.tsx",lineNumber:965,columnNumber:13},this),e[110]=de,e[111]=qe,e[112]=he):he=e[112];let be;e[113]!==ue||e[114]!==he?(be=o.jsxDEV("div",{style:Ee,children:[ue,he]},void 0,!0,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/GraphWorkspace/GraphInspectorPanel.tsx",lineNumber:974,columnNumber:13},this),e[113]=ue,e[114]=he,e[115]=be):be=e[115];let fe;e[116]!==pe||e[117]!==be?(fe=o.jsxDEV("div",{style:Pe,children:[pe,be]},void 0,!0,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/GraphWorkspace/GraphInspectorPanel.tsx",lineNumber:983,columnNumber:13},this),e[116]=pe,e[117]=be,e[118]=fe):fe=e[118];let xe;e[119]!==g?(xe=G=>g(G.target.value),e[119]=g,e[120]=xe):xe=e[120];let Ne;e[121]!==h||e[122]!==xe?(Ne=o.jsxDEV("input",{value:h,onChange:xe,placeholder:"Optional candidate type filter, e.g. disease",style:to},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/GraphWorkspace/GraphInspectorPanel.tsx",lineNumber:1e3,columnNumber:13},this),e[121]=h,e[122]=xe,e[123]=Ne):Ne=e[123],e[124]!==fe||e[125]!==Ne?(R=o.jsxDEV("section",{style:io,children:[We,fe,Ne]},void 0,!0,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/GraphWorkspace/GraphInspectorPanel.tsx",lineNumber:1008,columnNumber:13},this),e[124]=fe,e[125]=Ne,e[126]=R):R=e[126];let Le;e[127]===Symbol.for("react.memo_cache_sentinel")?(Le=o.jsxDEV("div",{style:po,children:"Trace Path"},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/GraphWorkspace/GraphInspectorPanel.tsx",lineNumber:1017,columnNumber:13},this),e[127]=Le):Le=e[127];let ye;e[128]!==c?(ye=G=>c(G.target.value),e[128]=c,e[129]=ye):ye=e[129];let ge;e[130]!==u||e[131]!==ye?(ge=o.jsxDEV("input",{value:u,onChange:ye,placeholder:"Target node ID",style:to},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/GraphWorkspace/GraphInspectorPanel.tsx",lineNumber:1032,columnNumber:13},this),e[130]=u,e[131]=ye,e[132]=ge):ge=e[132];const Qe=!q;let Se;e[133]!==f||e[134]!==Qe?(Se=o.jsxDEV("button",{style:eo,onClick:f,disabled:Qe,children:"Trace Causal Path"},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/GraphWorkspace/GraphInspectorPanel.tsx",lineNumber:1042,columnNumber:13},this),e[133]=f,e[134]=Qe,e[135]=Se):Se=e[135];let ke;e[136]!==x||e[137]!==i?(ke=i?.path?.length?o.jsxDEV(o.Fragment,{children:[o.jsxDEV(ko,{path:i.path,edgeIds:i.edge_ids,totalWeight:i.total_weight,bottleneckNodeId:i.bottleneck_node,onFocusNode:x},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/GraphWorkspace/GraphInspectorPanel.tsx",lineNumber:1051,columnNumber:42},this),o.jsxDEV(go,{result:i},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/GraphWorkspace/GraphInspectorPanel.tsx",lineNumber:1051,columnNumber:220},this)]},void 0,!0,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/GraphWorkspace/GraphInspectorPanel.tsx",lineNumber:1051,columnNumber:40},this):o.jsxDEV("div",{style:Ae,children:"Choose a target or click a candidate prediction to prepare a path trace."},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/GraphWorkspace/GraphInspectorPanel.tsx",lineNumber:1051,columnNumber:272},this),e[136]=x,e[137]=i,e[138]=ke):ke=e[138],e[139]!==ge||e[140]!==Se||e[141]!==ke?(T=o.jsxDEV("section",{style:io,children:[Le,ge,Se,ke]},void 0,!0,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/GraphWorkspace/GraphInspectorPanel.tsx",lineNumber:1059,columnNumber:13},this),e[139]=ge,e[140]=Se,e[141]=ke,e[142]=T):T=e[142];const Xe=n.length>0;let Ue;e[143]===Symbol.for("react.memo_cache_sentinel")?(Ue=o.jsxDEV("summary",{className:"node-panel-summary",children:"Candidate Links"},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/GraphWorkspace/GraphInspectorPanel.tsx",lineNumber:1070,columnNumber:13},this),e[143]=Ue):Ue=e[143];let De;e[144]!==j||e[145]!==c||e[146]!==n?(De=o.jsxDEV("div",{className:"node-panel-body",children:n.length>0?o.jsxDEV("div",{style:{display:"flex",flexDirection:"column",gap:8},children:n.map(G=>o.jsxDEV("button",{style:jo,onClick:()=>c(G.target),children:o.jsxDEV("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"flex-start",gap:8},children:[o.jsxDEV("div",{children:[o.jsxDEV("div",{style:{color:a.ui.text.strong,fontWeight:600},children:G.label||G.target},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/GraphWorkspace/GraphInspectorPanel.tsx",lineNumber:1086,columnNumber:21},this),o.jsxDEV("div",{style:{color:a.ui.text.muted,fontSize:12},children:G.type},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/GraphWorkspace/GraphInspectorPanel.tsx",lineNumber:1089,columnNumber:65},this)]},void 0,!0,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/GraphWorkspace/GraphInspectorPanel.tsx",lineNumber:1086,columnNumber:16},this),o.jsxDEV("div",{style:{flexShrink:0},children:o.jsxDEV("div",{style:{padding:"2px 7px",borderRadius:999,fontSize:10,fontWeight:700,background:a.ui.timeline.playheadSoft,border:`1px solid ${a.ui.control.activeBorder}`,color:a.ui.timeline.playhead},children:[(G.score*100).toFixed(1),"%"]},void 0,!0,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/GraphWorkspace/GraphInspectorPanel.tsx",lineNumber:1094,columnNumber:18},this)},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/GraphWorkspace/GraphInspectorPanel.tsx",lineNumber:1092,columnNumber:49},this)]},void 0,!0,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/GraphWorkspace/GraphInspectorPanel.tsx",lineNumber:1081,columnNumber:181},this)},`${G.target}-${G.type}`,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/GraphWorkspace/GraphInspectorPanel.tsx",lineNumber:1081,columnNumber:43},this))},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/GraphWorkspace/GraphInspectorPanel.tsx",lineNumber:1077,columnNumber:72},this):j?o.jsxDEV("div",{style:{display:"flex",alignItems:"center",gap:8,padding:8,color:"#b08b93",fontSize:12},children:[o.jsxDEV(no,{size:13,className:"animate-spin"},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/GraphWorkspace/GraphInspectorPanel.tsx",lineNumber:1109,columnNumber:12},this),o.jsxDEV("span",{children:"Computing candidate links…"},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/GraphWorkspace/GraphInspectorPanel.tsx",lineNumber:1109,columnNumber:58},this)]},void 0,!0,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/GraphWorkspace/GraphInspectorPanel.tsx",lineNumber:1102,columnNumber:119},this):o.jsxDEV("div",{style:Ae,children:"Run link prediction to surface likely next-hop relationships."},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/GraphWorkspace/GraphInspectorPanel.tsx",lineNumber:1109,columnNumber:106},this)},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/GraphWorkspace/GraphInspectorPanel.tsx",lineNumber:1077,columnNumber:13},this),e[144]=j,e[145]=c,e[146]=n,e[147]=De):De=e[147],e[148]!==Xe||e[149]!==De?($=o.jsxDEV("details",{className:"node-panel-collapse",open:Xe,children:[Ue,De]},void 0,!0,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/GraphWorkspace/GraphInspectorPanel.tsx",lineNumber:1118,columnNumber:13},this),e[148]=Xe,e[149]=De,e[150]=$):$=e[150];let Ve;e[151]===Symbol.for("react.memo_cache_sentinel")?(Ve=o.jsxDEV("summary",{className:"node-panel-summary",children:"Source Attribution"},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/GraphWorkspace/GraphInspectorPanel.tsx",lineNumber:1127,columnNumber:13},this),e[151]=Ve):Ve=e[151];const Ze=L.length?o.jsxDEV("div",{style:{display:"flex",flexDirection:"column",gap:8},children:L.map(Ao)},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/GraphWorkspace/GraphInspectorPanel.tsx",lineNumber:1132,columnNumber:38},this):o.jsxDEV("div",{style:Ae,children:"No explicit attribution metadata was found on this node."},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/GraphWorkspace/GraphInspectorPanel.tsx",lineNumber:1136,columnNumber:42},this);e[152]!==Ze?(F=o.jsxDEV("details",{className:"node-panel-collapse",children:[Ve,o.jsxDEV("div",{className:"node-panel-body",children:Ze},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/GraphWorkspace/GraphInspectorPanel.tsx",lineNumber:1138,columnNumber:59},this)]},void 0,!0,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/GraphWorkspace/GraphInspectorPanel.tsx",lineNumber:1138,columnNumber:13},this),e[152]=Ze,e[153]=F):F=e[153],ee="node-panel-collapse",e[154]===Symbol.for("react.memo_cache_sentinel")?(O=o.jsxDEV("summary",{className:"node-panel-summary",children:"Properties"},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/GraphWorkspace/GraphInspectorPanel.tsx",lineNumber:1146,columnNumber:12},this),e[154]=O):O=e[154],X="node-panel-body",Z=U.length?o.jsxDEV("div",{style:{display:"flex",flexDirection:"column",gap:8},children:U.map(Do)},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/GraphWorkspace/GraphInspectorPanel.tsx",lineNumber:1152,columnNumber:35},this):o.jsxDEV("div",{style:Ae,children:"No additional properties are attached to this node."},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/GraphWorkspace/GraphInspectorPanel.tsx",lineNumber:1156,columnNumber:46},this),e[26]=q,e[27]=W,e[28]=D,e[29]=I,e[30]=K,e[31]=j,e[32]=r,e[33]=p,e[34]=x,e[35]=k,e[36]=m,e[37]=c,e[38]=g,e[39]=b,e[40]=f,e[41]=i,e[42]=u,e[43]=h,e[44]=n,e[45]=C,e[46]=B,e[47]=Q,e[48]=z,e[49]=R,e[50]=T,e[51]=$,e[52]=F,e[53]=X,e[54]=Z,e[55]=ee,e[56]=O}else C=e[45],B=e[46],Q=e[47],z=e[48],R=e[49],T=e[50],$=e[51],F=e[52],X=e[53],Z=e[54],ee=e[55],O=e[56];let oe;e[155]!==X||e[156]!==Z?(oe=o.jsxDEV("div",{className:X,children:Z},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/GraphWorkspace/GraphInspectorPanel.tsx",lineNumber:1204,columnNumber:11},this),e[155]=X,e[156]=Z,e[157]=oe):oe=e[157];let re;e[158]!==oe||e[159]!==ee||e[160]!==O?(re=o.jsxDEV("details",{className:ee,children:[O,oe]},void 0,!0,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/GraphWorkspace/GraphInspectorPanel.tsx",lineNumber:1213,columnNumber:11},this),e[158]=oe,e[159]=ee,e[160]=O,e[161]=re):re=e[161];let je;return e[162]!==C||e[163]!==B||e[164]!==Q||e[165]!==z||e[166]!==R||e[167]!==T||e[168]!==$||e[169]!==F||e[170]!==re?(je=o.jsxDEV("aside",{style:C,children:[B,Q,z,R,T,$,F,re]},void 0,!0,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/GraphWorkspace/GraphInspectorPanel.tsx",lineNumber:1223,columnNumber:11},this),e[162]=C,e[163]=B,e[164]=Q,e[165]=z,e[166]=R,e[167]=T,e[168]=$,e[169]=F,e[170]=re,e[171]=je):je=e[171],je}function Do(t){const[e,r]=t;return o.jsxDEV("div",{style:bo,children:[o.jsxDEV("div",{style:{color:a.ui.timeline.playhead,fontSize:11,marginBottom:4},children:e},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/GraphWorkspace/GraphInspectorPanel.tsx",lineNumber:1243,columnNumber:53},this),o.jsxDEV("div",{style:{color:a.ui.text.body,fontSize:13,wordBreak:"break-word"},children:typeof r=="object"?JSON.stringify(r):String(r)},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/GraphWorkspace/GraphInspectorPanel.tsx",lineNumber:1247,columnNumber:21},this)]},e,!0,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/GraphWorkspace/GraphInspectorPanel.tsx",lineNumber:1243,columnNumber:10},this)}function Ao(t){const{key:e,value:r}=t;return o.jsxDEV("div",{style:bo,children:[o.jsxDEV("div",{style:{color:a.ui.timeline.playhead,fontSize:11,marginBottom:4},children:e},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/GraphWorkspace/GraphInspectorPanel.tsx",lineNumber:1258,columnNumber:53},this),o.jsxDEV("div",{style:{color:a.ui.text.body,fontSize:13,wordBreak:"break-word"},children:typeof r=="object"?JSON.stringify(r):String(r)},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/GraphWorkspace/GraphInspectorPanel.tsx",lineNumber:1262,columnNumber:21},this)]},e,!0,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/GraphWorkspace/GraphInspectorPanel.tsx",lineNumber:1258,columnNumber:10},this)}function Io(t){const[e]=t;return!["x","y","valid_from","valid_until","content","source","source_url","pmid","pmids","evidence","provenance","confidence"].includes(e)}const to={width:"100%",background:a.ui.control.inputBg,border:`1px solid ${a.ui.control.inputBorder}`,color:a.ui.text.strong,borderRadius:12,padding:"11px 13px",fontSize:13,boxShadow:"inset 0 1px 0 rgba(255,255,255,0.035)"},lo={marginTop:12,padding:"10px 12px",background:"rgba(98, 226, 205, 0.07)",border:`1px solid ${a.ui.control.activeBorder}`,borderRadius:12},eo={background:a.ui.control.primaryBg,color:a.ui.control.primaryText,border:`1px solid ${a.ui.control.primaryBorder}`,borderRadius:12,padding:"9px 12px",cursor:"pointer",fontWeight:700,fontSize:12,display:"inline-flex",alignItems:"center",justifyContent:"center",boxShadow:"inset 0 1px 0 rgba(255,255,255,0.07), 0 10px 24px rgba(0,0,0,0.18)"},co={...eo,background:a.ui.control.defaultBg,border:`1px solid ${a.ui.control.defaultBorder}`,color:a.ui.control.defaultText,fontWeight:600},jo={textAlign:"left",padding:"10px 12px",background:"rgba(255, 255, 255, 0.035)",border:`1px solid ${a.ui.surface.panelBorder}`,borderRadius:10,cursor:"pointer",width:"100%"},bo={background:"rgba(255, 255, 255, 0.028)",padding:"10px 12px",borderRadius:10,border:`1px solid ${a.ui.surface.panelBorder}`},Ae={color:a.ui.text.muted,fontSize:12,lineHeight:1.5},ze={background:"rgba(255, 255, 255, 0.04)",color:a.ui.text.body,padding:"4px 8px",borderRadius:999,fontSize:11,border:`1px solid ${a.ui.surface.panelBorder}`},io={display:"flex",flexDirection:"column",gap:10,padding:14,background:a.ui.surface.cardSubtle,border:`1px solid ${a.ui.surface.panelBorder}`,borderRadius:14},po={color:a.ui.text.muted,fontSize:11,fontWeight:700,textTransform:"uppercase",letterSpacing:"0.08em"},vo={display:"flex",alignItems:"center",gap:0,flexWrap:"wrap",rowGap:8},Ho={display:"inline-flex",alignItems:"center",gap:6,padding:"5px 10px",borderRadius:999,background:"rgba(98, 226, 205, 0.08)",border:`1px solid ${a.ui.control.activeBorder}`,color:a.ui.text.strong,fontSize:12,fontWeight:600,maxWidth:160},Go={display:"inline-flex",alignItems:"center",justifyContent:"center",width:16,height:16,borderRadius:"50%",background:a.ui.timeline.playheadSoft,color:a.ui.timeline.playhead,fontSize:9,fontWeight:800,flexShrink:0},wo={display:"inline-flex",alignItems:"center",gap:2,flexShrink:0},Wo={fontSize:9,fontWeight:700,color:a.ui.text.subtle,letterSpacing:"0.04em",textTransform:"uppercase",maxWidth:70,overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},_e={background:"rgba(0,0,0,0.18)",borderRadius:8,padding:"8px 10px",border:"1px solid rgba(255,255,255,0.05)",display:"flex",flexDirection:"column",gap:3},Ce={color:"rgba(255,45,75,0.65)",fontSize:10,fontWeight:700,letterSpacing:"0.06em",textTransform:"uppercase"},Be={fontSize:14,fontWeight:700,color:"#ffeaed"},mo={height:3,borderRadius:999,background:"rgba(255,255,255,0.07)",overflow:"hidden",marginTop:4},uo={height:"100%",borderRadius:999,transition:"width 300ms ease"};export{Ko as GraphInspectorPanel};
|
|
1
|
+
import{c as oo,j as o}from"./index-CVYHt6Z6.js";import{g as w,f as ao}from"./GraphWorkspace-DjKI1vje.js";import{G as a,w as so}from"./graphTheme-DCTRN8Qm.js";import{M as fo}from"./MarkdownContentViewer-B2I-lKUf.js";import{L as no}from"./loader-circle-CmyLCPAg.js";import"./query-vendor-BqVbYexz.js";import"./graph-vendor-CUDaIrp7.js";import"./registryStore-BPopBcrC.js";import"./refresh-cw-B1c5rNMc.js";import"./layers-CXZNgF0V.js";import"./git-branch-apSLSDgQ.js";import"./play-CG0LOI9D.js";import"./x-lyk2jiOu.js";import"./copy-D1MBJLmb.js";import"./pencil-COLtDS12.js";import"./external-link-BRF01S2q.js";const xo=["source","source_url","pmid","pmids","evidence","provenance","confidence"];function No(t){return xo.filter(e=>e in t).map(e=>({key:e,value:t[e]}))}const yo={direct:"#22863a",near:"#d9455e","mid-range":"#9a6700",distant:"#ec2315"};function go(t){const e=oo.c(33);if(e[0]!=="e2e9d614fbb23d9aa33570b536087320ab3cdee42001ecdbe9bc08f43d19af53"){for(let k=0;k<33;k+=1)e[k]=Symbol.for("react.memo_cache_sentinel");e[0]="e2e9d614fbb23d9aa33570b536087320ab3cdee42001ecdbe9bc08f43d19af53"}const{result:r}=t,l=yo[r.distance_band]??"#b08b93",y=r.confidence_decay!=null||r.semantic_similarity!=null||r.path_coherence_score!=null||r.bottleneck_node!=null;let d,N;e[1]===Symbol.for("react.memo_cache_sentinel")?(d={display:"flex",flexDirection:"column",gap:8,marginTop:8},N={display:"flex",gap:6,flexWrap:"wrap",alignItems:"center"},e[1]=d,e[2]=N):(d=e[1],N=e[2]);let n;e[3]!==l?(n=so(l,.14),e[3]=l,e[4]=n):n=e[4];let h;e[5]!==l?(h=so(l,.3),e[5]=l,e[6]=h):h=e[6];const g=`1px solid ${h}`;let b;e[7]!==l||e[8]!==n||e[9]!==g?(b={padding:"3px 8px",borderRadius:999,background:n,border:g,color:l,fontSize:11,fontWeight:700},e[7]=l,e[8]=n,e[9]=g,e[10]=b):b=e[10];const A=r.hop_count!==1?"s":"";let u;e[11]!==r.distance_band||e[12]!==r.hop_count||e[13]!==b||e[14]!==A?(u=o.jsxDEV("span",{style:b,children:[r.distance_band," · ",r.hop_count," hop",A]},void 0,!0,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/GraphWorkspace/GraphInspectorPanel.tsx",lineNumber:138,columnNumber:10},this),e[11]=r.distance_band,e[12]=r.hop_count,e[13]=b,e[14]=A,e[15]=u):u=e[15];let c;e[16]!==r.alternative_path_count?(c=(r.alternative_path_count??0)>0&&o.jsxDEV("span",{style:ze,children:[r.alternative_path_count," alt path",r.alternative_path_count!==1?"s":""]},void 0,!0,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/GraphWorkspace/GraphInspectorPanel.tsx",lineNumber:149,columnNumber:54},this),e[16]=r.alternative_path_count,e[17]=c):c=e[17];let f;e[18]!==u||e[19]!==c?(f=o.jsxDEV("div",{style:N,children:[u,c]},void 0,!0,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/GraphWorkspace/GraphInspectorPanel.tsx",lineNumber:157,columnNumber:11},this),e[18]=u,e[19]=c,e[20]=f):f=e[20];let i;e[21]!==y||e[22]!==r.bottleneck_node||e[23]!==r.confidence_decay||e[24]!==r.path_coherence_score||e[25]!==r.semantic_similarity?(i=y&&o.jsxDEV("div",{style:{display:"grid",gridTemplateColumns:"1fr 1fr",gap:8},children:[r.confidence_decay!=null&&o.jsxDEV("div",{style:_e,children:[o.jsxDEV("div",{style:Ce,children:"Confidence Decay"},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/GraphWorkspace/GraphInspectorPanel.tsx",lineNumber:170,columnNumber:73},this),o.jsxDEV("div",{style:{...Be,color:r.confidence_decay>.6?"#22863a":r.confidence_decay>.3?"#9a6700":"#ec2315"},children:[(r.confidence_decay*100).toFixed(1),"%"]},void 0,!0,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/GraphWorkspace/GraphInspectorPanel.tsx",lineNumber:170,columnNumber:125},this),o.jsxDEV("div",{style:mo,children:o.jsxDEV("div",{style:{...uo,width:`${r.confidence_decay*100}%`,background:r.confidence_decay>.6?"#22863a":r.confidence_decay>.3?"#9a6700":"#ec2315"}},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/GraphWorkspace/GraphInspectorPanel.tsx",lineNumber:173,columnNumber:96},this)},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/GraphWorkspace/GraphInspectorPanel.tsx",lineNumber:173,columnNumber:63},this)]},void 0,!0,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/GraphWorkspace/GraphInspectorPanel.tsx",lineNumber:170,columnNumber:44},this),r.semantic_similarity!=null&&o.jsxDEV("div",{style:_e,children:[o.jsxDEV("div",{style:Ce,children:"Semantic Sim."},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/GraphWorkspace/GraphInspectorPanel.tsx",lineNumber:177,columnNumber:97},this),o.jsxDEV("div",{style:{...Be,color:"#d9455e"},children:[(r.semantic_similarity*100).toFixed(1),"%"]},void 0,!0,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/GraphWorkspace/GraphInspectorPanel.tsx",lineNumber:177,columnNumber:146},this),o.jsxDEV("div",{style:mo,children:o.jsxDEV("div",{style:{...uo,width:`${r.semantic_similarity*100}%`,background:"#d9455e"}},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/GraphWorkspace/GraphInspectorPanel.tsx",lineNumber:180,columnNumber:99},this)},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/GraphWorkspace/GraphInspectorPanel.tsx",lineNumber:180,columnNumber:66},this)]},void 0,!0,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/GraphWorkspace/GraphInspectorPanel.tsx",lineNumber:177,columnNumber:68},this),r.path_coherence_score!=null&&o.jsxDEV("div",{style:_e,children:[o.jsxDEV("div",{style:Ce,children:"Path Coherence"},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/GraphWorkspace/GraphInspectorPanel.tsx",lineNumber:184,columnNumber:98},this),o.jsxDEV("div",{style:{...Be,color:"#a5d6a7"},children:[(r.path_coherence_score*100).toFixed(1),"%"]},void 0,!0,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/GraphWorkspace/GraphInspectorPanel.tsx",lineNumber:184,columnNumber:148},this)]},void 0,!0,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/GraphWorkspace/GraphInspectorPanel.tsx",lineNumber:184,columnNumber:69},this),r.bottleneck_node&&o.jsxDEV("div",{style:_e,children:[o.jsxDEV("div",{style:Ce,children:"Bottleneck"},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/GraphWorkspace/GraphInspectorPanel.tsx",lineNumber:187,columnNumber:130},this),o.jsxDEV("div",{style:{...Be,color:"#9a6700",fontSize:11,overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},title:r.bottleneck_node,children:ho(r.bottleneck_node)},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/GraphWorkspace/GraphInspectorPanel.tsx",lineNumber:187,columnNumber:176},this)]},void 0,!0,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/GraphWorkspace/GraphInspectorPanel.tsx",lineNumber:187,columnNumber:101},this)]},void 0,!0,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/GraphWorkspace/GraphInspectorPanel.tsx",lineNumber:166,columnNumber:25},this),e[21]=y,e[22]=r.bottleneck_node,e[23]=r.confidence_decay,e[24]=r.path_coherence_score,e[25]=r.semantic_similarity,e[26]=i):i=e[26];let p;e[27]!==r.interpretation?(p=r.interpretation&&o.jsxDEV("div",{style:{padding:"8px 10px",background:"rgba(255,45,75,0.06)",borderRadius:8,border:"1px solid rgba(255,45,75,0.14)",color:"#a0b4cc",fontSize:12,lineHeight:1.5},children:r.interpretation},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/GraphWorkspace/GraphInspectorPanel.tsx",lineNumber:206,columnNumber:36},this),e[27]=r.interpretation,e[28]=p):p=e[28];let x;return e[29]!==f||e[30]!==i||e[31]!==p?(x=o.jsxDEV("div",{style:d,children:[f,i,p]},void 0,!0,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/GraphWorkspace/GraphInspectorPanel.tsx",lineNumber:222,columnNumber:11},this),e[29]=f,e[30]=i,e[31]=p,e[32]=x):x=e[32],x}function ho(t){if(!w.hasNode(t))return t;const e=w.getNodeAttributes(t);return String(e.label??e.content??t)}function So(t,e,r){if(r){for(const l of r)if(w.hasEdge(l)){const[y,d]=w.extremities(l);if(y===t&&d===e||y===e&&d===t)return w.getEdgeAttributes(l).edgeType??"→"}}if(w.hasNode(t)&&w.hasNode(e)){let l="→";return w.forEachEdge(t,e,(y,d)=>{const N=d;N.edgeType&&(l=N.edgeType)}),l}return"→"}function ko(t){const e=oo.c(26);if(e[0]!=="e2e9d614fbb23d9aa33570b536087320ab3cdee42001ecdbe9bc08f43d19af53"){for(let m=0;m<26;m+=1)e[m]=Symbol.for("react.memo_cache_sentinel");e[0]="e2e9d614fbb23d9aa33570b536087320ab3cdee42001ecdbe9bc08f43d19af53"}const{path:r,edgeIds:l,totalWeight:y,bottleneckNodeId:d,onFocusNode:N}=t;if(r.length===0){let m;return e[1]===Symbol.for("react.memo_cache_sentinel")?(m=o.jsxDEV("div",{style:Ae,children:"No path found between the selected nodes."},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/GraphWorkspace/GraphInspectorPanel.tsx",lineNumber:289,columnNumber:12},this),e[1]=m):m=e[1],m}let n;e[2]!==d||e[3]!==l||e[4]!==N||e[5]!==r?(n=r.map((m,Y)=>{const W=ho(m),I=Y<r.length-1?So(m,r[Y+1],l):null;return o.jsxDEV("div",{style:{display:"contents"},children:[o.jsxDEV("button",{onClick:()=>N?.(m),title:m===d?`Bottleneck: ${m}`:`Focus: ${m}`,style:{...Ho,cursor:N?"pointer":"default",...m===d?{border:"1px solid rgba(227,179,65,0.5)",background:"rgba(227,179,65,0.12)"}:{}},children:[o.jsxDEV("span",{style:Go,children:Y+1},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/GraphWorkspace/GraphInspectorPanel.tsx",lineNumber:310,columnNumber:12},this),o.jsxDEV("span",{style:{maxWidth:120,overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},children:W},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/GraphWorkspace/GraphInspectorPanel.tsx",lineNumber:310,columnNumber:63},this)]},void 0,!0,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/GraphWorkspace/GraphInspectorPanel.tsx",lineNumber:303,columnNumber:10},this),I!==null?o.jsxDEV("div",{style:wo,children:[o.jsxDEV("div",{style:{width:16,height:1,background:"rgba(255,45,75,0.3)"}},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/GraphWorkspace/GraphInspectorPanel.tsx",lineNumber:315,columnNumber:95},this),o.jsxDEV("span",{style:Wo,children:I},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/GraphWorkspace/GraphInspectorPanel.tsx",lineNumber:319,columnNumber:16},this),o.jsxDEV("div",{style:{display:"flex",alignItems:"center"},children:[o.jsxDEV("div",{style:{width:12,height:1,background:"rgba(255,45,75,0.3)"}},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/GraphWorkspace/GraphInspectorPanel.tsx",lineNumber:322,columnNumber:14},this),o.jsxDEV("div",{style:{width:0,height:0,borderTop:"4px solid transparent",borderBottom:"4px solid transparent",borderLeft:"5px solid 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/GraphWorkspace/GraphInspectorPanel.tsx",lineNumber:326,columnNumber:18},this)]},void 0,!0,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/GraphWorkspace/GraphInspectorPanel.tsx",lineNumber:319,columnNumber:67},this)]},void 0,!0,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/GraphWorkspace/GraphInspectorPanel.tsx",lineNumber:315,columnNumber:59},this):null]},`${m}-${Y}`,!0,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/GraphWorkspace/GraphInspectorPanel.tsx",lineNumber:301,columnNumber:14},this)}),e[2]=d,e[3]=l,e[4]=N,e[5]=r,e[6]=n):n=e[6];let h;e[7]!==n?(h=o.jsxDEV("div",{style:vo,children:n},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/GraphWorkspace/GraphInspectorPanel.tsx",lineNumber:344,columnNumber:10},this),e[7]=n,e[8]=h):h=e[8];let g,b,A;e[9]===Symbol.for("react.memo_cache_sentinel")?(g={marginTop:8,display:"flex",alignItems:"center",gap:8},b=o.jsxDEV("span",{style:{color:"#9c7a82",fontSize:11},children:"Total weight:"},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/GraphWorkspace/GraphInspectorPanel.tsx",lineNumber:360,columnNumber:10},this),A={color:"#d9455e",fontSize:12,fontWeight:700},e[9]=g,e[10]=b,e[11]=A):(g=e[9],b=e[10],A=e[11]);let u;e[12]!==y?(u=y.toFixed(3),e[12]=y,e[13]=u):u=e[13];let c;e[14]!==u?(c=o.jsxDEV("span",{style:A,children:u},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/GraphWorkspace/GraphInspectorPanel.tsx",lineNumber:387,columnNumber:10},this),e[14]=u,e[15]=c):c=e[15];let f,i;e[16]===Symbol.for("react.memo_cache_sentinel")?(f=o.jsxDEV("span",{style:{color:"#9c7a82",fontSize:11},children:"·"},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/GraphWorkspace/GraphInspectorPanel.tsx",lineNumber:396,columnNumber:10},this),i={color:"#9c7a82",fontSize:11},e[16]=f,e[17]=i):(f=e[16],i=e[17]);let p;e[18]!==r.length?(p=o.jsxDEV("span",{style:i,children:[r.length," hops"]},void 0,!0,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/GraphWorkspace/GraphInspectorPanel.tsx",lineNumber:412,columnNumber:11},this),e[18]=r.length,e[19]=p):p=e[19];let x;e[20]!==p||e[21]!==c?(x=o.jsxDEV("div",{style:g,children:[b,c,f,p]},void 0,!0,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/GraphWorkspace/GraphInspectorPanel.tsx",lineNumber:420,columnNumber:11},this),e[20]=p,e[21]=c,e[22]=x):x=e[22];let k;return e[23]!==x||e[24]!==h?(k=o.jsxDEV("div",{children:[h,x]},void 0,!0,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/GraphWorkspace/GraphInspectorPanel.tsx",lineNumber:429,columnNumber:11},this),e[23]=x,e[24]=h,e[25]=k):k=e[25],k}function Ko(t){const e=oo.c(172);if(e[0]!=="e2e9d614fbb23d9aa33570b536087320ab3cdee42001ecdbe9bc08f43d19af53"){for(let s=0;s<172;s+=1)e[s]=Symbol.for("react.memo_cache_sentinel");e[0]="e2e9d614fbb23d9aa33570b536087320ab3cdee42001ecdbe9bc08f43d19af53"}const{nodeId:r,inspectableNodeId:l,selectedNodeKind:y,canActivateFocused:d,focusedUnavailableReason:N,predictions:n,predictionType:h,onPredictionTypeChange:g,onRunPredictions:b,isRunningPredictions:A,pathTargetId:u,onPathTargetChange:c,onTracePath:f,pathResult:i,onDownloadProvenance:p,onFocusNode:x,onMarkdownApplied:k,onMarkdownDirtyChange:m}=t,Y=y===void 0?"none":y,W=d===void 0?!1:d,I=N===void 0?null:N,j=A===void 0?!1:A;if(!r){let s;return e[1]===Symbol.for("react.memo_cache_sentinel")?(s=o.jsxDEV("div",{style:{padding:32,textAlign:"center",display:"flex",flexDirection:"column",alignItems:"center",gap:12,marginTop:32},children:[o.jsxDEV("div",{style:{width:40,height:40,borderRadius:"50%",background:"rgba(98, 226, 205, 0.07)",border:`1px solid ${a.ui.surface.panelBorder}`,display:"flex",alignItems:"center",justifyContent:"center"},children:o.jsxDEV("div",{style:{width:14,height:14,borderRadius:"50%",background:a.ui.timeline.playheadSoft}},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/GraphWorkspace/GraphInspectorPanel.tsx",lineNumber:493,columnNumber:12},this)},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/GraphWorkspace/GraphInspectorPanel.tsx",lineNumber:484,columnNumber:10},this),o.jsxDEV("p",{style:{color:a.ui.text.muted,fontSize:14,margin:0,lineHeight:1.6},children:"Search for a node or click one in the canvas to inspect its properties."},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/GraphWorkspace/GraphInspectorPanel.tsx",lineNumber:498,columnNumber:22},this)]},void 0,!0,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/GraphWorkspace/GraphInspectorPanel.tsx",lineNumber:476,columnNumber:12},this),e[1]=s):s=e[1],s}const ro=l&&w.hasNode(l)?l:null;let Ie;e[2]!==r?(Ie=w.hasNode(r),e[2]=r,e[3]=Ie):Ie=e[3];const Re=Ie,D=Re?r:ro,q=Re?r:ro,K=Y==="grouped"&&!Re;if(!D){let s,P,L,M;e[4]===Symbol.for("react.memo_cache_sentinel")?(s={padding:24,display:"flex",flexDirection:"column",gap:16},P={borderBottom:`1px solid ${a.ui.surface.divider}`,paddingBottom:16},L=o.jsxDEV("div",{style:{display:"flex",alignItems:"center",gap:10,marginBottom:8},children:[o.jsxDEV("span",{style:{background:a.ui.timeline.playhead,boxShadow:"0 0 10px rgba(98, 226, 205, 0.34)",width:8,height:8,borderRadius:"50%"}},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/GraphWorkspace/GraphInspectorPanel.tsx",lineNumber:544,columnNumber:10},this),o.jsxDEV("span",{style:{color:a.ui.timeline.playhead,fontSize:12,fontWeight:700},children:"Selection"},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/GraphWorkspace/GraphInspectorPanel.tsx",lineNumber:550,columnNumber:14},this)]},void 0,!0,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/GraphWorkspace/GraphInspectorPanel.tsx",lineNumber:539,columnNumber:12},this),M={margin:0,color:a.ui.text.strong,fontSize:20,fontWeight:700,wordBreak:"break-word"},e[4]=s,e[5]=P,e[6]=L,e[7]=M):(s=e[4],P=e[5],L=e[6],M=e[7]);let U;e[8]!==r?(U=o.jsxDEV("h3",{style:M,children:r},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/GraphWorkspace/GraphInspectorPanel.tsx",lineNumber:574,columnNumber:13},this),e[8]=r,e[9]=U):U=e[9];let ae;e[10]===Symbol.for("react.memo_cache_sentinel")?(ae={color:a.ui.text.muted,fontSize:12,marginTop:6,fontFamily:"monospace",wordBreak:"break-all"},e[10]=ae):ae=e[10];let v;e[11]!==r?(v=o.jsxDEV("div",{style:ae,children:r},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/GraphWorkspace/GraphInspectorPanel.tsx",lineNumber:595,columnNumber:13},this),e[11]=r,e[12]=v):v=e[12];let H;e[13]!==U||e[14]!==v?(H=o.jsxDEV("div",{style:P,children:[L,U,v]},void 0,!0,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/GraphWorkspace/GraphInspectorPanel.tsx",lineNumber:603,columnNumber:13},this),e[13]=U,e[14]=v,e[15]=H):H=e[15];let J,V;e[16]===Symbol.for("react.memo_cache_sentinel")?(J=o.jsxDEV("div",{style:{color:a.ui.text.strong,fontWeight:600,marginBottom:6},children:"Selected item is not directly inspectable in the current graph."},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/GraphWorkspace/GraphInspectorPanel.tsx",lineNumber:613,columnNumber:13},this),V={color:a.ui.text.body,fontSize:13,lineHeight:1.6},e[16]=J,e[17]=V):(J=e[16],V=e[17]);let E;e[18]!==W||e[19]!==I?(E=W?"Use Focus to resolve this grouped selection to its canonical node.":ao(I),e[18]=W,e[19]=I,e[20]=E):E=e[20];let S;e[21]!==E?(S=o.jsxDEV("div",{style:lo,children:[J,o.jsxDEV("div",{style:V,children:E},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/GraphWorkspace/GraphInspectorPanel.tsx",lineNumber:640,columnNumber:59},this)]},void 0,!0,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/GraphWorkspace/GraphInspectorPanel.tsx",lineNumber:640,columnNumber:13},this),e[21]=E,e[22]=S):S=e[22];let _;return e[23]!==H||e[24]!==S?(_=o.jsxDEV("aside",{style:s,children:[H,S]},void 0,!0,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/GraphWorkspace/GraphInspectorPanel.tsx",lineNumber:648,columnNumber:13},this),e[23]=H,e[24]=S,e[25]=_):_=e[25],_}let C,B,Q,z,R,T,$,F,X,Z,ee,O;if(e[26]!==q||e[27]!==W||e[28]!==D||e[29]!==I||e[30]!==K||e[31]!==j||e[32]!==r||e[33]!==p||e[34]!==x||e[35]!==k||e[36]!==m||e[37]!==c||e[38]!==g||e[39]!==b||e[40]!==f||e[41]!==i||e[42]!==u||e[43]!==h||e[44]!==n){const s=w.getNodeAttributes(D),P=s?.properties??{},L=No(P),M=s?.color||"#ff2d4b",U=Object.entries(P).filter(Io),ae=typeof s?.content=="string"&&s.content?s.content:typeof P.content=="string"&&P.content?P.content:"";let v,H;e[57]===Symbol.for("react.memo_cache_sentinel")?(C={padding:24,display:"flex",flexDirection:"column",gap:18},v={borderBottom:`1px solid ${a.ui.surface.divider}`,paddingBottom:16},H={display:"flex",alignItems:"center",gap:10,marginBottom:8},e[57]=C,e[58]=v,e[59]=H):(C=e[57],v=e[58],H=e[59]);const J=o.jsxDEV("div",{style:H,children:[o.jsxDEV("span",{style:{background:M,boxShadow:`0 0 10px ${M}`,width:8,height:8,borderRadius:"50%"}},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/GraphWorkspace/GraphInspectorPanel.tsx",lineNumber:711,columnNumber:34},this),o.jsxDEV("span",{style:{color:M,fontSize:12,fontWeight:700},children:K?"Grouped Selection":s?.nodeType||"Entity"},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/GraphWorkspace/GraphInspectorPanel.tsx",lineNumber:717,columnNumber:12},this)]},void 0,!0,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/GraphWorkspace/GraphInspectorPanel.tsx",lineNumber:711,columnNumber:17},this);let V;e[60]===Symbol.for("react.memo_cache_sentinel")?(V={margin:0,color:a.ui.text.strong,fontSize:20,fontWeight:700,wordBreak:"break-word"},e[60]=V):V=e[60];const E=String(s?.label??D);let S;e[61]!==E?(S=o.jsxDEV("h3",{style:V,children:E},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/GraphWorkspace/GraphInspectorPanel.tsx",lineNumber:738,columnNumber:13},this),e[61]=E,e[62]=S):S=e[62];let _;e[63]===Symbol.for("react.memo_cache_sentinel")?(_={color:a.ui.text.muted,fontSize:12,marginTop:6,fontFamily:"monospace",wordBreak:"break-all"},e[63]=_):_=e[63];const Te=K?r:D;let se;e[64]!==Te?(se=o.jsxDEV("div",{style:_,children:Te},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/GraphWorkspace/GraphInspectorPanel.tsx",lineNumber:760,columnNumber:13},this),e[64]=Te,e[65]=se):se=e[65];let ne;e[66]!==W||e[67]!==D||e[68]!==I||e[69]!==K?(ne=K?o.jsxDEV("div",{style:lo,children:[o.jsxDEV("div",{style:{color:a.ui.text.strong,fontWeight:600,marginBottom:6},children:"This grouped item stays display-level until you explicitly enter Focused mode."},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/GraphWorkspace/GraphInspectorPanel.tsx",lineNumber:768,columnNumber:80},this),o.jsxDEV("div",{style:{color:a.ui.text.body,fontSize:13,lineHeight:1.6},children:W?`Canonical node available: ${D}`:ao(I)},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/GraphWorkspace/GraphInspectorPanel.tsx",lineNumber:772,columnNumber:96},this)]},void 0,!0,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/GraphWorkspace/GraphInspectorPanel.tsx",lineNumber:768,columnNumber:39},this):null,e[66]=W,e[67]=D,e[68]=I,e[69]=K,e[70]=ne):ne=e[70];let ve;e[71]===Symbol.for("react.memo_cache_sentinel")?(ve={display:"flex",gap:8,flexWrap:"wrap",marginTop:12},e[71]=ve):ve=e[71];const $e=s?.valid_from||s?.valid_until?o.jsxDEV("span",{style:ze,children:"temporal"},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/GraphWorkspace/GraphInspectorPanel.tsx",lineNumber:797,columnNumber:69},this):null,Fe=L.length?o.jsxDEV("span",{style:ze,children:[L.length," source fields"]},void 0,!0,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/GraphWorkspace/GraphInspectorPanel.tsx",lineNumber:798,columnNumber:38},this):null;let te;e[72]!==n.length?(te=n.length?o.jsxDEV("span",{style:ze,children:[n.length," candidate links"]},void 0,!0,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/GraphWorkspace/GraphInspectorPanel.tsx",lineNumber:801,columnNumber:34},this):null,e[72]=n.length,e[73]=te):te=e[73];let le;e[74]!==$e||e[75]!==Fe||e[76]!==te?(le=o.jsxDEV("div",{style:ve,children:[$e,Fe,te]},void 0,!0,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/GraphWorkspace/GraphInspectorPanel.tsx",lineNumber:809,columnNumber:13},this),e[74]=$e,e[75]=Fe,e[76]=te,e[77]=le):le=e[77],e[78]!==J||e[79]!==S||e[80]!==se||e[81]!==ne||e[82]!==le?(B=o.jsxDEV("div",{style:v,children:[J,S,se,ne,le]},void 0,!0,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/GraphWorkspace/GraphInspectorPanel.tsx",lineNumber:818,columnNumber:13},this),e[78]=J,e[79]=S,e[80]=se,e[81]=ne,e[82]=le,e[83]=B):B=e[83],Q=s?.valid_from||s?.valid_until?o.jsxDEV("div",{style:{padding:"10px 12px",background:"rgba(233, 196, 122, 0.075)",border:"1px solid rgba(233, 196, 122, 0.22)",borderRadius:8,fontSize:12,color:a.palette.accent.selected,fontFamily:"monospace"},children:[s?.valid_from?o.jsxDEV("div",{children:["from: ",s.valid_from]},void 0,!0,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/GraphWorkspace/GraphInspectorPanel.tsx",lineNumber:836,columnNumber:34},this):null,s?.valid_until?o.jsxDEV("div",{children:["until: ",s.valid_until]},void 0,!0,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/GraphWorkspace/GraphInspectorPanel.tsx",lineNumber:836,columnNumber:109},this):null]},void 0,!0,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/GraphWorkspace/GraphInspectorPanel.tsx",lineNumber:828,columnNumber:63},this):null;let He;e[84]===Symbol.for("react.memo_cache_sentinel")?(He=o.jsxDEV("summary",{className:"node-panel-summary",children:"Content"},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/GraphWorkspace/GraphInspectorPanel.tsx",lineNumber:839,columnNumber:13},this),e[84]=He):He=e[84];let Ge;e[85]===Symbol.for("react.memo_cache_sentinel")?(Ge={marginTop:8},e[85]=Ge):Ge=e[85];let we;e[86]!==D?(we={kind:"context-node",id:D},e[86]=D,e[87]=we):we=e[87];const Oe=o.jsxDEV("div",{className:"node-panel-body",style:Ge,children:o.jsxDEV(fo,{content:ae,resource:we,onApplied:k,onDirtyChange:m},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/GraphWorkspace/GraphInspectorPanel.tsx",lineNumber:864,columnNumber:62},this)},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/GraphWorkspace/GraphInspectorPanel.tsx",lineNumber:864,columnNumber:17},this);e[88]!==Oe?(z=o.jsxDEV("details",{className:"node-panel-collapse",open:!0,children:[He,Oe]},void 0,!0,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/GraphWorkspace/GraphInspectorPanel.tsx",lineNumber:866,columnNumber:13},this),e[88]=Oe,e[89]=z):z=e[89];let We,Pe;e[90]===Symbol.for("react.memo_cache_sentinel")?(We=o.jsxDEV("div",{style:po,children:"Actions"},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/GraphWorkspace/GraphInspectorPanel.tsx",lineNumber:875,columnNumber:13},this),Pe={display:"flex",flexDirection:"column",gap:10},e[90]=We,e[91]=Pe):(We=e[90],Pe=e[91]);const Me=j?.7:1;let ce;e[92]!==Me?(ce={...eo,width:"100%",justifyContent:"center",opacity:Me},e[92]=Me,e[93]=ce):ce=e[93];const Je=j||!q;let ie;e[94]!==j?(ie=j?o.jsxDEV(no,{size:14,className:"animate-spin",style:{marginRight:6}},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/GraphWorkspace/GraphInspectorPanel.tsx",lineNumber:904,columnNumber:36},this):null,e[94]=j,e[95]=ie):ie=e[95];const Ke=j?"Running…":"Run Link Prediction";let pe;e[96]!==b||e[97]!==ce||e[98]!==Je||e[99]!==ie||e[100]!==Ke?(pe=o.jsxDEV("button",{style:ce,onClick:b,disabled:Je,children:[ie,Ke]},void 0,!0,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/GraphWorkspace/GraphInspectorPanel.tsx",lineNumber:915,columnNumber:13},this),e[96]=b,e[97]=ce,e[98]=Je,e[99]=ie,e[100]=Ke,e[101]=pe):pe=e[101];let Ee;e[102]===Symbol.for("react.memo_cache_sentinel")?(Ee={display:"flex",gap:8,flexWrap:"wrap"},e[102]=Ee):Ee=e[102];let me;e[103]!==p?(me=()=>p("json"),e[103]=p,e[104]=me):me=e[104];const Ye=!q;let ue;e[105]!==me||e[106]!==Ye?(ue=o.jsxDEV("button",{style:co,onClick:me,disabled:Ye,children:"Provenance JSON"},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/GraphWorkspace/GraphInspectorPanel.tsx",lineNumber:947,columnNumber:13},this),e[105]=me,e[106]=Ye,e[107]=ue):ue=e[107];let de;e[108]!==p?(de=()=>p("markdown"),e[108]=p,e[109]=de):de=e[109];const qe=!q;let he;e[110]!==de||e[111]!==qe?(he=o.jsxDEV("button",{style:co,onClick:de,disabled:qe,children:"Provenance MD"},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/GraphWorkspace/GraphInspectorPanel.tsx",lineNumber:965,columnNumber:13},this),e[110]=de,e[111]=qe,e[112]=he):he=e[112];let be;e[113]!==ue||e[114]!==he?(be=o.jsxDEV("div",{style:Ee,children:[ue,he]},void 0,!0,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/GraphWorkspace/GraphInspectorPanel.tsx",lineNumber:974,columnNumber:13},this),e[113]=ue,e[114]=he,e[115]=be):be=e[115];let fe;e[116]!==pe||e[117]!==be?(fe=o.jsxDEV("div",{style:Pe,children:[pe,be]},void 0,!0,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/GraphWorkspace/GraphInspectorPanel.tsx",lineNumber:983,columnNumber:13},this),e[116]=pe,e[117]=be,e[118]=fe):fe=e[118];let xe;e[119]!==g?(xe=G=>g(G.target.value),e[119]=g,e[120]=xe):xe=e[120];let Ne;e[121]!==h||e[122]!==xe?(Ne=o.jsxDEV("input",{value:h,onChange:xe,placeholder:"Optional candidate type filter, e.g. disease",style:to},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/GraphWorkspace/GraphInspectorPanel.tsx",lineNumber:1e3,columnNumber:13},this),e[121]=h,e[122]=xe,e[123]=Ne):Ne=e[123],e[124]!==fe||e[125]!==Ne?(R=o.jsxDEV("section",{style:io,children:[We,fe,Ne]},void 0,!0,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/GraphWorkspace/GraphInspectorPanel.tsx",lineNumber:1008,columnNumber:13},this),e[124]=fe,e[125]=Ne,e[126]=R):R=e[126];let Le;e[127]===Symbol.for("react.memo_cache_sentinel")?(Le=o.jsxDEV("div",{style:po,children:"Trace Path"},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/GraphWorkspace/GraphInspectorPanel.tsx",lineNumber:1017,columnNumber:13},this),e[127]=Le):Le=e[127];let ye;e[128]!==c?(ye=G=>c(G.target.value),e[128]=c,e[129]=ye):ye=e[129];let ge;e[130]!==u||e[131]!==ye?(ge=o.jsxDEV("input",{value:u,onChange:ye,placeholder:"Target node ID",style:to},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/GraphWorkspace/GraphInspectorPanel.tsx",lineNumber:1032,columnNumber:13},this),e[130]=u,e[131]=ye,e[132]=ge):ge=e[132];const Qe=!q;let Se;e[133]!==f||e[134]!==Qe?(Se=o.jsxDEV("button",{style:eo,onClick:f,disabled:Qe,children:"Trace Causal Path"},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/GraphWorkspace/GraphInspectorPanel.tsx",lineNumber:1042,columnNumber:13},this),e[133]=f,e[134]=Qe,e[135]=Se):Se=e[135];let ke;e[136]!==x||e[137]!==i?(ke=i?.path?.length?o.jsxDEV(o.Fragment,{children:[o.jsxDEV(ko,{path:i.path,edgeIds:i.edge_ids,totalWeight:i.total_weight,bottleneckNodeId:i.bottleneck_node,onFocusNode:x},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/GraphWorkspace/GraphInspectorPanel.tsx",lineNumber:1051,columnNumber:42},this),o.jsxDEV(go,{result:i},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/GraphWorkspace/GraphInspectorPanel.tsx",lineNumber:1051,columnNumber:220},this)]},void 0,!0,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/GraphWorkspace/GraphInspectorPanel.tsx",lineNumber:1051,columnNumber:40},this):o.jsxDEV("div",{style:Ae,children:"Choose a target or click a candidate prediction to prepare a path trace."},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/GraphWorkspace/GraphInspectorPanel.tsx",lineNumber:1051,columnNumber:272},this),e[136]=x,e[137]=i,e[138]=ke):ke=e[138],e[139]!==ge||e[140]!==Se||e[141]!==ke?(T=o.jsxDEV("section",{style:io,children:[Le,ge,Se,ke]},void 0,!0,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/GraphWorkspace/GraphInspectorPanel.tsx",lineNumber:1059,columnNumber:13},this),e[139]=ge,e[140]=Se,e[141]=ke,e[142]=T):T=e[142];const Xe=n.length>0;let Ue;e[143]===Symbol.for("react.memo_cache_sentinel")?(Ue=o.jsxDEV("summary",{className:"node-panel-summary",children:"Candidate Links"},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/GraphWorkspace/GraphInspectorPanel.tsx",lineNumber:1070,columnNumber:13},this),e[143]=Ue):Ue=e[143];let De;e[144]!==j||e[145]!==c||e[146]!==n?(De=o.jsxDEV("div",{className:"node-panel-body",children:n.length>0?o.jsxDEV("div",{style:{display:"flex",flexDirection:"column",gap:8},children:n.map(G=>o.jsxDEV("button",{style:jo,onClick:()=>c(G.target),children:o.jsxDEV("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"flex-start",gap:8},children:[o.jsxDEV("div",{children:[o.jsxDEV("div",{style:{color:a.ui.text.strong,fontWeight:600},children:G.label||G.target},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/GraphWorkspace/GraphInspectorPanel.tsx",lineNumber:1086,columnNumber:21},this),o.jsxDEV("div",{style:{color:a.ui.text.muted,fontSize:12},children:G.type},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/GraphWorkspace/GraphInspectorPanel.tsx",lineNumber:1089,columnNumber:65},this)]},void 0,!0,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/GraphWorkspace/GraphInspectorPanel.tsx",lineNumber:1086,columnNumber:16},this),o.jsxDEV("div",{style:{flexShrink:0},children:o.jsxDEV("div",{style:{padding:"2px 7px",borderRadius:999,fontSize:10,fontWeight:700,background:a.ui.timeline.playheadSoft,border:`1px solid ${a.ui.control.activeBorder}`,color:a.ui.timeline.playhead},children:[(G.score*100).toFixed(1),"%"]},void 0,!0,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/GraphWorkspace/GraphInspectorPanel.tsx",lineNumber:1094,columnNumber:18},this)},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/GraphWorkspace/GraphInspectorPanel.tsx",lineNumber:1092,columnNumber:49},this)]},void 0,!0,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/GraphWorkspace/GraphInspectorPanel.tsx",lineNumber:1081,columnNumber:181},this)},`${G.target}-${G.type}`,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/GraphWorkspace/GraphInspectorPanel.tsx",lineNumber:1081,columnNumber:43},this))},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/GraphWorkspace/GraphInspectorPanel.tsx",lineNumber:1077,columnNumber:72},this):j?o.jsxDEV("div",{style:{display:"flex",alignItems:"center",gap:8,padding:8,color:"#b08b93",fontSize:12},children:[o.jsxDEV(no,{size:13,className:"animate-spin"},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/GraphWorkspace/GraphInspectorPanel.tsx",lineNumber:1109,columnNumber:12},this),o.jsxDEV("span",{children:"Computing candidate links…"},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/GraphWorkspace/GraphInspectorPanel.tsx",lineNumber:1109,columnNumber:58},this)]},void 0,!0,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/GraphWorkspace/GraphInspectorPanel.tsx",lineNumber:1102,columnNumber:119},this):o.jsxDEV("div",{style:Ae,children:"Run link prediction to surface likely next-hop relationships."},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/GraphWorkspace/GraphInspectorPanel.tsx",lineNumber:1109,columnNumber:106},this)},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/GraphWorkspace/GraphInspectorPanel.tsx",lineNumber:1077,columnNumber:13},this),e[144]=j,e[145]=c,e[146]=n,e[147]=De):De=e[147],e[148]!==Xe||e[149]!==De?($=o.jsxDEV("details",{className:"node-panel-collapse",open:Xe,children:[Ue,De]},void 0,!0,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/GraphWorkspace/GraphInspectorPanel.tsx",lineNumber:1118,columnNumber:13},this),e[148]=Xe,e[149]=De,e[150]=$):$=e[150];let Ve;e[151]===Symbol.for("react.memo_cache_sentinel")?(Ve=o.jsxDEV("summary",{className:"node-panel-summary",children:"Source Attribution"},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/GraphWorkspace/GraphInspectorPanel.tsx",lineNumber:1127,columnNumber:13},this),e[151]=Ve):Ve=e[151];const Ze=L.length?o.jsxDEV("div",{style:{display:"flex",flexDirection:"column",gap:8},children:L.map(Ao)},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/GraphWorkspace/GraphInspectorPanel.tsx",lineNumber:1132,columnNumber:38},this):o.jsxDEV("div",{style:Ae,children:"No explicit attribution metadata was found on this node."},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/GraphWorkspace/GraphInspectorPanel.tsx",lineNumber:1136,columnNumber:42},this);e[152]!==Ze?(F=o.jsxDEV("details",{className:"node-panel-collapse",children:[Ve,o.jsxDEV("div",{className:"node-panel-body",children:Ze},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/GraphWorkspace/GraphInspectorPanel.tsx",lineNumber:1138,columnNumber:59},this)]},void 0,!0,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/GraphWorkspace/GraphInspectorPanel.tsx",lineNumber:1138,columnNumber:13},this),e[152]=Ze,e[153]=F):F=e[153],ee="node-panel-collapse",e[154]===Symbol.for("react.memo_cache_sentinel")?(O=o.jsxDEV("summary",{className:"node-panel-summary",children:"Properties"},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/GraphWorkspace/GraphInspectorPanel.tsx",lineNumber:1146,columnNumber:12},this),e[154]=O):O=e[154],X="node-panel-body",Z=U.length?o.jsxDEV("div",{style:{display:"flex",flexDirection:"column",gap:8},children:U.map(Do)},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/GraphWorkspace/GraphInspectorPanel.tsx",lineNumber:1152,columnNumber:35},this):o.jsxDEV("div",{style:Ae,children:"No additional properties are attached to this node."},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/GraphWorkspace/GraphInspectorPanel.tsx",lineNumber:1156,columnNumber:46},this),e[26]=q,e[27]=W,e[28]=D,e[29]=I,e[30]=K,e[31]=j,e[32]=r,e[33]=p,e[34]=x,e[35]=k,e[36]=m,e[37]=c,e[38]=g,e[39]=b,e[40]=f,e[41]=i,e[42]=u,e[43]=h,e[44]=n,e[45]=C,e[46]=B,e[47]=Q,e[48]=z,e[49]=R,e[50]=T,e[51]=$,e[52]=F,e[53]=X,e[54]=Z,e[55]=ee,e[56]=O}else C=e[45],B=e[46],Q=e[47],z=e[48],R=e[49],T=e[50],$=e[51],F=e[52],X=e[53],Z=e[54],ee=e[55],O=e[56];let oe;e[155]!==X||e[156]!==Z?(oe=o.jsxDEV("div",{className:X,children:Z},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/GraphWorkspace/GraphInspectorPanel.tsx",lineNumber:1204,columnNumber:11},this),e[155]=X,e[156]=Z,e[157]=oe):oe=e[157];let re;e[158]!==oe||e[159]!==ee||e[160]!==O?(re=o.jsxDEV("details",{className:ee,children:[O,oe]},void 0,!0,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/GraphWorkspace/GraphInspectorPanel.tsx",lineNumber:1213,columnNumber:11},this),e[158]=oe,e[159]=ee,e[160]=O,e[161]=re):re=e[161];let je;return e[162]!==C||e[163]!==B||e[164]!==Q||e[165]!==z||e[166]!==R||e[167]!==T||e[168]!==$||e[169]!==F||e[170]!==re?(je=o.jsxDEV("aside",{style:C,children:[B,Q,z,R,T,$,F,re]},void 0,!0,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/GraphWorkspace/GraphInspectorPanel.tsx",lineNumber:1223,columnNumber:11},this),e[162]=C,e[163]=B,e[164]=Q,e[165]=z,e[166]=R,e[167]=T,e[168]=$,e[169]=F,e[170]=re,e[171]=je):je=e[171],je}function Do(t){const[e,r]=t;return o.jsxDEV("div",{style:bo,children:[o.jsxDEV("div",{style:{color:a.ui.timeline.playhead,fontSize:11,marginBottom:4},children:e},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/GraphWorkspace/GraphInspectorPanel.tsx",lineNumber:1243,columnNumber:53},this),o.jsxDEV("div",{style:{color:a.ui.text.body,fontSize:13,wordBreak:"break-word"},children:typeof r=="object"?JSON.stringify(r):String(r)},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/GraphWorkspace/GraphInspectorPanel.tsx",lineNumber:1247,columnNumber:21},this)]},e,!0,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/GraphWorkspace/GraphInspectorPanel.tsx",lineNumber:1243,columnNumber:10},this)}function Ao(t){const{key:e,value:r}=t;return o.jsxDEV("div",{style:bo,children:[o.jsxDEV("div",{style:{color:a.ui.timeline.playhead,fontSize:11,marginBottom:4},children:e},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/GraphWorkspace/GraphInspectorPanel.tsx",lineNumber:1258,columnNumber:53},this),o.jsxDEV("div",{style:{color:a.ui.text.body,fontSize:13,wordBreak:"break-word"},children:typeof r=="object"?JSON.stringify(r):String(r)},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/GraphWorkspace/GraphInspectorPanel.tsx",lineNumber:1262,columnNumber:21},this)]},e,!0,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/GraphWorkspace/GraphInspectorPanel.tsx",lineNumber:1258,columnNumber:10},this)}function Io(t){const[e]=t;return!["x","y","valid_from","valid_until","content","source","source_url","pmid","pmids","evidence","provenance","confidence"].includes(e)}const to={width:"100%",background:a.ui.control.inputBg,border:`1px solid ${a.ui.control.inputBorder}`,color:a.ui.text.strong,borderRadius:12,padding:"11px 13px",fontSize:13,boxShadow:"inset 0 1px 0 rgba(28, 20, 24,0.035)"},lo={marginTop:12,padding:"10px 12px",background:"rgba(98, 226, 205, 0.07)",border:`1px solid ${a.ui.control.activeBorder}`,borderRadius:12},eo={background:a.ui.control.primaryBg,color:a.ui.control.primaryText,border:`1px solid ${a.ui.control.primaryBorder}`,borderRadius:12,padding:"9px 12px",cursor:"pointer",fontWeight:700,fontSize:12,display:"inline-flex",alignItems:"center",justifyContent:"center",boxShadow:"inset 0 1px 0 rgba(28, 20, 24,0.07), 0 10px 24px rgba(0,0,0,0.18)"},co={...eo,background:a.ui.control.defaultBg,border:`1px solid ${a.ui.control.defaultBorder}`,color:a.ui.control.defaultText,fontWeight:600},jo={textAlign:"left",padding:"10px 12px",background:"rgba(28, 20, 24, 0.035)",border:`1px solid ${a.ui.surface.panelBorder}`,borderRadius:10,cursor:"pointer",width:"100%"},bo={background:"rgba(28, 20, 24, 0.028)",padding:"10px 12px",borderRadius:10,border:`1px solid ${a.ui.surface.panelBorder}`},Ae={color:a.ui.text.muted,fontSize:12,lineHeight:1.5},ze={background:"rgba(28, 20, 24, 0.04)",color:a.ui.text.body,padding:"4px 8px",borderRadius:999,fontSize:11,border:`1px solid ${a.ui.surface.panelBorder}`},io={display:"flex",flexDirection:"column",gap:10,padding:14,background:a.ui.surface.cardSubtle,border:`1px solid ${a.ui.surface.panelBorder}`,borderRadius:14},po={color:a.ui.text.muted,fontSize:11,fontWeight:700,textTransform:"uppercase",letterSpacing:"0.08em"},vo={display:"flex",alignItems:"center",gap:0,flexWrap:"wrap",rowGap:8},Ho={display:"inline-flex",alignItems:"center",gap:6,padding:"5px 10px",borderRadius:999,background:"rgba(98, 226, 205, 0.08)",border:`1px solid ${a.ui.control.activeBorder}`,color:a.ui.text.strong,fontSize:12,fontWeight:600,maxWidth:160},Go={display:"inline-flex",alignItems:"center",justifyContent:"center",width:16,height:16,borderRadius:"50%",background:a.ui.timeline.playheadSoft,color:a.ui.timeline.playhead,fontSize:9,fontWeight:800,flexShrink:0},wo={display:"inline-flex",alignItems:"center",gap:2,flexShrink:0},Wo={fontSize:9,fontWeight:700,color:a.ui.text.subtle,letterSpacing:"0.04em",textTransform:"uppercase",maxWidth:70,overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},_e={background:"rgba(0,0,0,0.18)",borderRadius:8,padding:"8px 10px",border:"1px solid rgba(28, 20, 24,0.05)",display:"flex",flexDirection:"column",gap:3},Ce={color:"rgba(255,45,75,0.65)",fontSize:10,fontWeight:700,letterSpacing:"0.06em",textTransform:"uppercase"},Be={fontSize:14,fontWeight:700,color:"#2d1619"},mo={height:3,borderRadius:999,background:"rgba(28, 20, 24,0.07)",overflow:"hidden",marginTop:4},uo={height:"100%",borderRadius:999,transition:"width 300ms ease"};export{Ko as GraphInspectorPanel};
|