@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.
Files changed (53) hide show
  1. package/package.json +1 -1
  2. package/static/assets/DecisionWorkspace-BbxYoPCv.js +1 -0
  3. package/static/assets/{DiffMergeWorkspace-C8yIdDC7.js → DiffMergeWorkspace-I9BcvT3J.js} +1 -1
  4. package/static/assets/EntityResolutionTab-DZME6ngq.js +6 -0
  5. package/static/assets/{GraphInspectorPanel-Bbrbhd03.js → GraphInspectorPanel-ZkQtr_Oa.js} +1 -1
  6. package/static/assets/{GraphWorkspace-AxTFEhNP.js → GraphWorkspace-DjKI1vje.js} +37 -37
  7. package/static/assets/{ImportExportWorkspace-BK3TofDv.js → ImportExportWorkspace-FesluaxV.js} +2 -2
  8. package/static/assets/KGOverviewTab-CIuFOyUa.js +1 -0
  9. package/static/assets/LineageDiagram-BlTkwTG_.js +27 -0
  10. package/static/assets/{MarkdownContentViewer-Chx4ysCK.js → MarkdownContentViewer-B2I-lKUf.js} +4 -4
  11. package/static/assets/{MemoryWorkspace-CIjaTN_S.js → MemoryWorkspace-CbGHQGJQ.js} +2 -2
  12. package/static/assets/{OntologySummaryTab-NJ3ZrkoJ.js → OntologySummaryTab-Q3rXi9jh.js} +1 -1
  13. package/static/assets/{ReasoningWorkspace-B127Rd-S.js → ReasoningWorkspace-DSYffkef.js} +2 -2
  14. package/static/assets/RegistryTab-C9IfTx8j.js +11 -0
  15. package/static/assets/{SparqlWorkspace-RwPj2YK7.js → SparqlWorkspace-BHAlhIXU.js} +3 -3
  16. package/static/assets/{TimelinePanel-DmtiXgmN.js → TimelinePanel-D50aWGS7.js} +1 -1
  17. package/static/assets/{VocabularyWorkspace-YF9waL5N.js → VocabularyWorkspace-BUFmkjyq.js} +6 -6
  18. package/static/assets/{book-open-BqEIxx1e.js → book-open-CEYwt1ql.js} +1 -1
  19. package/static/assets/{chevron-right-CiEuNwKq.js → chevron-right-BnjhfQ0S.js} +1 -1
  20. package/static/assets/{circle-check-BToWKwbO.js → circle-check-CzC458Im.js} +1 -1
  21. package/static/assets/{copy-BfQXGhHP.js → copy-D1MBJLmb.js} +1 -1
  22. package/static/assets/{download-gQOgYz3q.js → download-BiH8WZKH.js} +1 -1
  23. package/static/assets/{external-link-DqNu6T-f.js → external-link-BRF01S2q.js} +1 -1
  24. package/static/assets/{file-text-Bbz-r0FQ.js → file-text-bY52r7Yt.js} +1 -1
  25. package/static/assets/{git-branch-B8yDcUSY.js → git-branch-apSLSDgQ.js} +1 -1
  26. package/static/assets/graphTheme-DCTRN8Qm.js +6 -0
  27. package/static/assets/{index-Bt8w1Tz_.css → index-3PtcB4_T.css} +1 -1
  28. package/static/assets/{index-DHWWI-uw.js → index-CVYHt6Z6.js} +81 -81
  29. package/static/assets/{index-Dli_3Iwd.js → index-D0ErQ1c2.js} +1 -1
  30. package/static/assets/{index-DtC_GayB.js → index-D1_G_our.js} +1 -1
  31. package/static/assets/index-DPG7Yem6.js +127 -0
  32. package/static/assets/{info-vaffNQOD.js → info-Bxj0ofiy.js} +1 -1
  33. package/static/assets/{layers-Cct6D_wK.js → layers-CXZNgF0V.js} +1 -1
  34. package/static/assets/{loader-circle-C8NUmtFx.js → loader-circle-CmyLCPAg.js} +1 -1
  35. package/static/assets/{neighborhoodPanelPlugin-w1yJlm0A.js → neighborhoodPanelPlugin-gLy7GAga.js} +1 -1
  36. package/static/assets/{pencil-DYlEC6ri.js → pencil-COLtDS12.js} +1 -1
  37. package/static/assets/{play-G1gyOk2a.js → play-CG0LOI9D.js} +1 -1
  38. package/static/assets/{queries-CYtdSB4H.js → queries-AYIcORqv.js} +1 -1
  39. package/static/assets/{refresh-cw-CL9OXZ89.js → refresh-cw-B1c5rNMc.js} +1 -1
  40. package/static/assets/{registryStore-MVt_NgVV.js → registryStore-BPopBcrC.js} +1 -1
  41. package/static/assets/{style-D8TqSrGs.js → style-DGS084C0.js} +1 -1
  42. package/static/assets/temporalOverlayPlugin-DzF7xO4p.js +1 -0
  43. package/static/assets/{trash-2-DiZNV6Gj.js → trash-2-CLBVEYNO.js} +1 -1
  44. package/static/assets/{x-DpqMYq96.js → x-lyk2jiOu.js} +1 -1
  45. package/static/index.html +3 -3
  46. package/static/assets/DecisionWorkspace-DG6zPNls.js +0 -1
  47. package/static/assets/EntityResolutionTab-RBysMLhB.js +0 -6
  48. package/static/assets/KGOverviewTab-D9EWKL_n.js +0 -1
  49. package/static/assets/LineageDiagram-XxBVa1Ij.js +0 -27
  50. package/static/assets/RegistryTab-BE2-yKLC.js +0 -11
  51. package/static/assets/graphTheme-DNKLxzKZ.js +0 -6
  52. package/static/assets/index-MVDNL3vw.js +0 -127
  53. package/static/assets/temporalOverlayPlugin-CRhLa1FU.js +0 -1
@@ -1,127 +0,0 @@
1
- import{b as G,j as o,G as De,c as P,C as oe,a as he,w as xo,d as Bo,r as So,A as Po,S as Fo,e as Ko}from"./index-DHWWI-uw.js";import{a as i}from"./query-vendor-BqVbYexz.js";import{L as Y}from"./loader-circle-C8NUmtFx.js";import{T as Ke}from"./trash-2-DiZNV6Gj.js";import{D as qo}from"./download-gQOgYz3q.js";import{X as le}from"./x-DpqMYq96.js";import{C as ve,a as Oe}from"./chevron-right-CiEuNwKq.js";import{C as fe}from"./circle-check-BToWKwbO.js";import{E as No}from"./external-link-DqNu6T-f.js";import{B as we}from"./book-open-BqEIxx1e.js";import{L as qe}from"./layers-Cct6D_wK.js";import{R as Jo}from"./refresh-cw-CL9OXZ89.js";import{u as Go,a as Yo,b as Qo,M as ko,i as Xo,B as Zo,C as es,c as os,H as Xe,P as Ze}from"./style-D8TqSrGs.js";import{G as ss}from"./git-branch-B8yDcUSY.js";import{F as Ao}from"./file-text-Bbz-r0FQ.js";import{P as as}from"./pencil-DYlEC6ri.js";import{F as ns,a as ts}from"./index-DtC_GayB.js";import{P as rs}from"./play-G1gyOk2a.js";import"./index-C00aFykz.js";/**
2
- * @license lucide-react v1.8.0 - ISC
3
- *
4
- * This source code is licensed under the ISC license.
5
- * See the LICENSE file in the root directory of this source tree.
6
- */const ls=[["path",{d:"M10 2v8l3-3 3 3V2",key:"sqw3rj"}],["path",{d:"M4 19.5v-15A2.5 2.5 0 0 1 6.5 2H19a1 1 0 0 1 1 1v18a1 1 0 0 1-1 1H6.5a1 1 0 0 1 0-5H20",key:"k3hazp"}]],Do=G("book-marked",ls);/**
7
- * @license lucide-react v1.8.0 - ISC
8
- *
9
- * This source code is licensed under the ISC license.
10
- * See the LICENSE file in the root directory of this source tree.
11
- */const cs=[["path",{d:"M21.801 10A10 10 0 1 1 17 3.335",key:"yps3ct"}],["path",{d:"m9 11 3 3L22 4",key:"1pflzl"}]],Ee=G("circle-check-big",cs);/**
12
- * @license lucide-react v1.8.0 - ISC
13
- *
14
- * This source code is licensed under the ISC license.
15
- * See the LICENSE file in the root directory of this source tree.
16
- */const is=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m15 9-6 6",key:"1uzhvr"}],["path",{d:"m9 9 6 6",key:"z0biqf"}]],eo=G("circle-x",is);/**
17
- * @license lucide-react v1.8.0 - ISC
18
- *
19
- * This source code is licensed under the ISC license.
20
- * See the LICENSE file in the root directory of this source tree.
21
- */const ms=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 6v6l4 2",key:"mmk7yg"}]],us=G("clock",ms);/**
22
- * @license lucide-react v1.8.0 - ISC
23
- *
24
- * This source code is licensed under the ISC license.
25
- * See the LICENSE file in the root directory of this source tree.
26
- */const ps=[["path",{d:"M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z",key:"1oefj6"}],["path",{d:"M14 2v5a1 1 0 0 0 1 1h5",key:"wfsgrz"}],["path",{d:"M12 12v6",key:"3ahymv"}],["path",{d:"m15 15-3-3-3 3",key:"15xj92"}]],Pe=G("file-up",ps);/**
27
- * @license lucide-react v1.8.0 - ISC
28
- *
29
- * This source code is licensed under the ISC license.
30
- * See the LICENSE file in the root directory of this source tree.
31
- */const ds=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 2a14.5 14.5 0 0 0 0 20 14.5 14.5 0 0 0 0-20",key:"13o1zl"}],["path",{d:"M2 12h20",key:"9i4pu4"}]],Ho=G("globe",ds);/**
32
- * @license lucide-react v1.8.0 - ISC
33
- *
34
- * This source code is licensed under the ISC license.
35
- * See the LICENSE file in the root directory of this source tree.
36
- */const bs=[["path",{d:"M2 9.5a5.5 5.5 0 0 1 9.591-3.676.56.56 0 0 0 .818 0A5.49 5.49 0 0 1 22 9.5c0 2.29-1.5 4-3 5.5l-5.492 5.313a2 2 0 0 1-3 .019L5 15c-1.5-1.5-3-3.2-3-5.5",key:"mvr1a0"}],["path",{d:"M3.22 13H9.5l.5-1 2 4.5 2-7 1.5 3.5h5.27",key:"auskq0"}]],jo=G("heart-pulse",bs);/**
37
- * @license lucide-react v1.8.0 - ISC
38
- *
39
- * This source code is licensed under the ISC license.
40
- * See the LICENSE file in the root directory of this source tree.
41
- */const hs=[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M3 9h18",key:"1pudct"}],["path",{d:"M9 21V9",key:"1oto5p"}]],gs=G("panels-top-left",hs);/**
42
- * @license lucide-react v1.8.0 - ISC
43
- *
44
- * This source code is licensed under the ISC license.
45
- * See the LICENSE file in the root directory of this source tree.
46
- */const fs=[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]],ge=G("plus",fs);/**
47
- * @license lucide-react v1.8.0 - ISC
48
- *
49
- * This source code is licensed under the ISC license.
50
- * See the LICENSE file in the root directory of this source tree.
51
- */const ys=[["path",{d:"M14.536 21.686a.5.5 0 0 0 .937-.024l6.5-19a.496.496 0 0 0-.635-.635l-19 6.5a.5.5 0 0 0-.024.937l7.93 3.18a2 2 0 0 1 1.112 1.11z",key:"1ffxy3"}],["path",{d:"m21.854 2.147-10.94 10.939",key:"12cjpa"}]],vo=G("send",ys);/**
52
- * @license lucide-react v1.8.0 - ISC
53
- *
54
- * This source code is licensed under the ISC license.
55
- * See the LICENSE file in the root directory of this source tree.
56
- */const xs=[["path",{d:"M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z",key:"oel41y"}]],Je=G("shield",xs);/**
57
- * @license lucide-react v1.8.0 - ISC
58
- *
59
- * This source code is licensed under the ISC license.
60
- * See the LICENSE file in the root directory of this source tree.
61
- */const Ss=[["path",{d:"M10 8h4",key:"1sr2af"}],["path",{d:"M12 21v-9",key:"17s77i"}],["path",{d:"M12 8V3",key:"13r4qs"}],["path",{d:"M17 16h4",key:"h1uq16"}],["path",{d:"M19 12V3",key:"o1uvq1"}],["path",{d:"M19 21v-5",key:"qua636"}],["path",{d:"M3 14h4",key:"bcjad9"}],["path",{d:"M5 10V3",key:"cb8scm"}],["path",{d:"M5 21v-7",key:"1w1uti"}]],Ns=G("sliders-vertical",Ss);/**
62
- * @license lucide-react v1.8.0 - ISC
63
- *
64
- * This source code is licensed under the ISC license.
65
- * See the LICENSE file in the root directory of this source tree.
66
- */const ks=[["path",{d:"M11.017 2.814a1 1 0 0 1 1.966 0l1.051 5.558a2 2 0 0 0 1.594 1.594l5.558 1.051a1 1 0 0 1 0 1.966l-5.558 1.051a2 2 0 0 0-1.594 1.594l-1.051 5.558a1 1 0 0 1-1.966 0l-1.051-5.558a2 2 0 0 0-1.594-1.594l-5.558-1.051a1 1 0 0 1 0-1.966l5.558-1.051a2 2 0 0 0 1.594-1.594z",key:"1s2grr"}],["path",{d:"M20 2v4",key:"1rf3ol"}],["path",{d:"M22 4h-4",key:"gwowj6"}],["circle",{cx:"4",cy:"20",r:"2",key:"6kqj1y"}]],As=G("sparkles",ks);/**
67
- * @license lucide-react v1.8.0 - ISC
68
- *
69
- * This source code is licensed under the ISC license.
70
- * See the LICENSE file in the root directory of this source tree.
71
- */const Ds=[["circle",{cx:"9",cy:"12",r:"3",key:"u3jwor"}],["rect",{width:"20",height:"14",x:"2",y:"5",rx:"7",key:"g7kal2"}]],Hs=G("toggle-left",Ds);/**
72
- * @license lucide-react v1.8.0 - ISC
73
- *
74
- * This source code is licensed under the ISC license.
75
- * See the LICENSE file in the root directory of this source tree.
76
- */const js=[["circle",{cx:"15",cy:"12",r:"3",key:"1afu0r"}],["rect",{width:"20",height:"14",x:"2",y:"5",rx:"7",key:"g7kal2"}]],vs=G("toggle-right",js);/**
77
- * @license lucide-react v1.8.0 - ISC
78
- *
79
- * This source code is licensed under the ISC license.
80
- * See the LICENSE file in the root directory of this source tree.
81
- */const Os=[["path",{d:"M19 21v-2a4 4 0 0 0-4-4H9a4 4 0 0 0-4 4v2",key:"975kel"}],["circle",{cx:"12",cy:"7",r:"4",key:"17ys0d"}]],ws=G("user",Os);/**
82
- * @license lucide-react v1.8.0 - ISC
83
- *
84
- * This source code is licensed under the ISC license.
85
- * See the LICENSE file in the root directory of this source tree.
86
- */const Ls=[["path",{d:"m21.64 3.64-1.28-1.28a1.21 1.21 0 0 0-1.72 0L2.36 18.64a1.21 1.21 0 0 0 0 1.72l1.28 1.28a1.2 1.2 0 0 0 1.72 0L21.64 5.36a1.2 1.2 0 0 0 0-1.72",key:"ul74o6"}],["path",{d:"m14 7 3 3",key:"1r5n42"}],["path",{d:"M5 6v4",key:"ilb8ba"}],["path",{d:"M19 14v4",key:"blhpug"}],["path",{d:"M10 2v2",key:"7u0qdc"}],["path",{d:"M7 8H3",key:"zfb6yr"}],["path",{d:"M21 16h-4",key:"1cnmox"}],["path",{d:"M11 3H9",key:"1obp7u"}]],Es=G("wand-sparkles",Ls);/**
87
- * @license lucide-react v1.8.0 - ISC
88
- *
89
- * This source code is licensed under the ISC license.
90
- * See the LICENSE file in the root directory of this source tree.
91
- */const Vs=[["path",{d:"M14.7 6.3a1 1 0 0 0 0 1.4l1.6 1.6a1 1 0 0 0 1.4 0l3.106-3.105c.32-.322.863-.22.983.218a6 6 0 0 1-8.259 7.057l-7.91 7.91a1 1 0 0 1-2.999-3l7.91-7.91a6 6 0 0 1 7.057-8.259c.438.12.54.662.219.984z",key:"1ngwbx"}]],Is=G("wrench",Vs);async function ee(l){if(!l.ok){let s=`Request failed with status ${l.status}`;try{s=(await l.json()).detail||s}catch{}throw new Error(s)}const e=await l.json();return l.status===207&&console.warn("Partial Success:",e.message||"Warning: 207 Multi-Status"),e}async function He(){return ee(await fetch("/api/ontology/registry"))}async function Ws(l,e){return ee(await fetch(`/api/ontology/graph?uri=${encodeURIComponent(l)}`,{signal:e}))}async function Us(l){const e=await fetch(`/api/ontology/entity/${encodeURIComponent(l)}`);if(!e.ok)return;const n=(await e.json())?.owning_ontology;return n===void 0?void 0:n}async function oo(l){return ee(await fetch("/api/ontology/alignments"))}async function Ts(l){return ee(await fetch("/api/ontology/alignments",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(l)}))}async function Cs(l){await ee(await fetch(`/api/ontology/alignments?id=${encodeURIComponent(l)}`,{method:"DELETE"}))}async function _s(l){return ee(await fetch("/api/ontology/suggest-alignments",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(l)}))}async function Ms(l){return ee(await fetch(`/api/ontology/health?uri=${encodeURIComponent(l)}`))}async function zs(l,e="strict"){return ee(await fetch("/api/ontology/shacl/generate",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({uri:l,quality_tier:e})}))}async function so(l){return ee(await fetch(`/api/ontology/shacl/shapes?uri=${encodeURIComponent(l)}`))}async function Rs(l,e){return ee(await fetch("/api/ontology/shacl/validate",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({uri:l,shacl_turtle:e})}))}const $s=["owl:equivalentClass","owl:equivalentProperty","skos:exactMatch","skos:closeMatch","skos:broadMatch","skos:narrowMatch","skos:relatedMatch"],me={"owl:equivalentClass":"#7ce7d3","owl:equivalentProperty":"#7ce7d3","skos:exactMatch":"#9ee8d7","skos:closeMatch":"#ff2d4b","skos:broadMatch":"#ff7a45","skos:narrowMatch":"#ff7a45","skos:relatedMatch":"#d2a8ff"};function Bs(){const[l,e]=i.useState([]),[s,n]=i.useState([]),[t,r]=i.useState([]),[a,c]=i.useState(""),[m,p]=i.useState(""),[u,g]=i.useState(""),[d,f]=i.useState(""),[h,S]=i.useState("skos:exactMatch"),[N,A]=i.useState(.86),[D,k]=i.useState(""),[v,V]=i.useState("Ontology Hub"),[W,U]=i.useState(""),[O,L]=i.useState(.68),[T,b]=i.useState(!1),[w,j]=i.useState(""),_=i.useCallback(async()=>{j("");const[y,B]=await Promise.allSettled([He(),oo()]),x=[];y.status==="fulfilled"?(e(y.value),c(E=>E||y.value[0]?.uri||""),p(E=>E||y.value[1]?.uri||y.value[0]?.uri||"")):x.push(y.reason instanceof Error?y.reason.message:"Failed to load ontology registry."),B.status==="fulfilled"?n(B.value):x.push(B.reason instanceof Error?B.reason.message:"Failed to load alignments."),x.length&&j(x.join(" "))},[]);i.useEffect(()=>{let y=!1;async function B(){const[x,E]=await Promise.allSettled([He(),oo()]);if(y)return;const C=[];x.status==="fulfilled"?(e(x.value),c(R=>R||x.value[0]?.uri||""),p(R=>R||x.value[1]?.uri||x.value[0]?.uri||"")):C.push(x.reason instanceof Error?x.reason.message:"Failed to load ontology registry."),E.status==="fulfilled"?n(E.value):C.push(E.reason instanceof Error?E.reason.message:"Failed to load alignments."),C.length&&j(C.join(" "))}return B(),()=>{y=!0}},[]);const $=i.useMemo(()=>{const y=new Map;for(const B of s)y.set(B.relation,(y.get(B.relation)??0)+1);return y},[s]),M=i.useMemo(()=>{function y(x){for(const R of l)if(x===R.uri||x.startsWith(R.uri+"#")||x.startsWith(R.uri+"/"))return R.uri;const E=x.lastIndexOf("#");if(E>0)return x.substring(0,E);const C=x.lastIndexOf("/");return C>0?x.substring(0,C):x}const B=new Map;for(const x of s){const E=`${y(x.source_uri)}|||${y(x.target_uri)}`,C=B.get(E)??[];C.push(x),B.set(E,C)}return{ontologies:l,cells:B}},[l,s]),F=i.useCallback(async()=>{if(!u.trim()||!d.trim()){j("Provide both source and target entity URIs.");return}b(!0),j("");try{await Ts({source_uri:u.trim(),target_uri:d.trim(),relation:h,confidence:N,provenance:D||void 0,source:v||void 0,reviewer:W||void 0}),g(""),f(""),await _()}catch(y){j(y instanceof Error?y.message:"Could not save alignment.")}finally{b(!1)}},[u,d,h,N,D,v,W,_]),q=i.useCallback(async()=>{b(!0),j("");try{const y=await _s({source_ontology_uri:a||void 0,target_ontology_uri:m||void 0,threshold:O,limit:40});r(y)}catch(y){j(y instanceof Error?y.message:"Could not suggest alignments.")}finally{b(!1)}},[a,m,O]),J=i.useCallback(y=>{g(y.source_uri),f(y.target_uri),S(y.relation),A(Math.max(.1,Math.min(1,y.score))),k(y.reason)},[]),K=i.useCallback(async y=>{b(!0),j("");try{await Cs(y),await _()}catch(B){j(B instanceof Error?B.message:"Could not remove alignment.")}finally{b(!1)}},[_]);return o.jsxDEV("div",{style:Ps,children:[o.jsxDEV("section",{style:Fs,children:[o.jsxDEV("div",{children:[o.jsxDEV("div",{style:Ks,children:[o.jsxDEV(De,{size:14},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/OntologyWorkspace/AlignmentsTab.tsx",lineNumber:174,columnNumber:36},this)," Alignment Matrix"]},void 0,!0,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/OntologyWorkspace/AlignmentsTab.tsx",lineNumber:174,columnNumber:11},this),o.jsxDEV("h2",{style:qs,children:"Cross-ontology mappings"},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/OntologyWorkspace/AlignmentsTab.tsx",lineNumber:175,columnNumber:11},this),o.jsxDEV("p",{style:Js,children:"Manage equivalence and SKOS match relations with confidence, provenance, reviewer context, and label-based suggestions."},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/OntologyWorkspace/AlignmentsTab.tsx",lineNumber:176,columnNumber:11},this)]},void 0,!0,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/OntologyWorkspace/AlignmentsTab.tsx",lineNumber:173,columnNumber:9},this),o.jsxDEV("div",{style:Gs,children:[o.jsxDEV(Ve,{label:"Mappings",value:s.length},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/OntologyWorkspace/AlignmentsTab.tsx",lineNumber:182,columnNumber:11},this),o.jsxDEV(Ve,{label:"Relations",value:$.size},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/OntologyWorkspace/AlignmentsTab.tsx",lineNumber:183,columnNumber:11},this),o.jsxDEV(Ve,{label:"Suggestions",value:t.length},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/OntologyWorkspace/AlignmentsTab.tsx",lineNumber:184,columnNumber:11},this)]},void 0,!0,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/OntologyWorkspace/AlignmentsTab.tsx",lineNumber:181,columnNumber:9},this)]},void 0,!0,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/OntologyWorkspace/AlignmentsTab.tsx",lineNumber:172,columnNumber:7},this),w?o.jsxDEV("div",{style:ta,children:w},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/OntologyWorkspace/AlignmentsTab.tsx",lineNumber:188,columnNumber:16},this):null,o.jsxDEV("div",{style:ra,children:"Alignments are stored in server memory and are not persisted across restarts. Export your graph or ontology to preserve recorded mappings."},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/OntologyWorkspace/AlignmentsTab.tsx",lineNumber:190,columnNumber:7},this),M.ontologies.length>=2?o.jsxDEV("section",{style:ye,children:[o.jsxDEV("h3",{style:xe,children:"Pairwise alignment matrix"},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/OntologyWorkspace/AlignmentsTab.tsx",lineNumber:196,columnNumber:11},this),o.jsxDEV("div",{style:{overflowX:"auto"},children:o.jsxDEV("table",{style:la,children:[o.jsxDEV("thead",{children:o.jsxDEV("tr",{children:[o.jsxDEV("th",{style:ca},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/OntologyWorkspace/AlignmentsTab.tsx",lineNumber:203,columnNumber:19},this),M.ontologies.map(y=>o.jsxDEV("th",{style:ia,children:y.name},y.uri,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/OntologyWorkspace/AlignmentsTab.tsx",lineNumber:204,columnNumber:49},this))]},void 0,!0,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/OntologyWorkspace/AlignmentsTab.tsx",lineNumber:202,columnNumber:17},this)},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/OntologyWorkspace/AlignmentsTab.tsx",lineNumber:201,columnNumber:15},this),o.jsxDEV("tbody",{children:M.ontologies.map(y=>o.jsxDEV("tr",{children:[o.jsxDEV("td",{style:ma,children:y.name},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/OntologyWorkspace/AlignmentsTab.tsx",lineNumber:209,columnNumber:21},this),M.ontologies.map(B=>{const x=`${y.uri}|||${B.uri}`,E=M.cells.get(x)??[],C=y.uri===B.uri;return o.jsxDEV("td",{style:{...ua,background:C?"rgba(255,255,255,0.015)":void 0},children:C?o.jsxDEV("span",{style:Se,children:"—"},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/OntologyWorkspace/AlignmentsTab.tsx",lineNumber:218,columnNumber:37},this):E.length?o.jsxDEV("div",{style:{display:"flex",flexDirection:"column",gap:4},children:E.map(R=>o.jsxDEV("span",{style:{...no,color:me[R.relation],borderColor:`${me[R.relation]}44`,cursor:"pointer",fontSize:9},title:`${R.source_label} → ${R.target_label} (${Math.round(R.confidence*100)}%)`,onClick:()=>{g(R.source_uri),f(R.target_uri),S(R.relation),A(R.confidence),k(R.provenance??"")},children:R.relation.split(":")[1]},R.id,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/OntologyWorkspace/AlignmentsTab.tsx",lineNumber:223,columnNumber:56},this))},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/OntologyWorkspace/AlignmentsTab.tsx",lineNumber:218,columnNumber:92},this):o.jsxDEV("span",{style:{color:"rgba(255,107,129,0.15)",fontSize:12},children:"·"},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/OntologyWorkspace/AlignmentsTab.tsx",lineNumber:238,columnNumber:38},this)},B.uri,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/OntologyWorkspace/AlignmentsTab.tsx",lineNumber:214,columnNumber:24},this)})]},y.uri,!0,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/OntologyWorkspace/AlignmentsTab.tsx",lineNumber:208,columnNumber:47},this))},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/OntologyWorkspace/AlignmentsTab.tsx",lineNumber:207,columnNumber:15},this)]},void 0,!0,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/OntologyWorkspace/AlignmentsTab.tsx",lineNumber:200,columnNumber:13},this)},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/OntologyWorkspace/AlignmentsTab.tsx",lineNumber:197,columnNumber:11},this),o.jsxDEV("p",{style:{...Se,marginTop:10},children:"Click a relation badge to load it into the editor below."},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/OntologyWorkspace/AlignmentsTab.tsx",lineNumber:248,columnNumber:11},this)]},void 0,!0,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/OntologyWorkspace/AlignmentsTab.tsx",lineNumber:195,columnNumber:40},this):null,o.jsxDEV("div",{style:Qs,children:[o.jsxDEV("section",{style:ye,children:[o.jsxDEV("h3",{style:xe,children:"Create or update alignment"},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/OntologyWorkspace/AlignmentsTab.tsx",lineNumber:256,columnNumber:11},this),o.jsxDEV("label",{style:Z,children:"Source entity URI"},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/OntologyWorkspace/AlignmentsTab.tsx",lineNumber:257,columnNumber:11},this),o.jsxDEV("input",{style:te,value:u,onChange:y=>g(y.target.value)},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/OntologyWorkspace/AlignmentsTab.tsx",lineNumber:258,columnNumber:11},this),o.jsxDEV("label",{style:Z,children:"Target entity URI"},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/OntologyWorkspace/AlignmentsTab.tsx",lineNumber:259,columnNumber:11},this),o.jsxDEV("input",{style:te,value:d,onChange:y=>f(y.target.value)},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/OntologyWorkspace/AlignmentsTab.tsx",lineNumber:260,columnNumber:11},this),o.jsxDEV("div",{style:Ie,children:[o.jsxDEV("div",{children:[o.jsxDEV("label",{style:Z,children:"Relation"},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/OntologyWorkspace/AlignmentsTab.tsx",lineNumber:263,columnNumber:15},this),o.jsxDEV("select",{style:te,value:h,onChange:y=>S(y.target.value),children:$s.map(y=>o.jsxDEV("option",{children:y},y,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/OntologyWorkspace/AlignmentsTab.tsx",lineNumber:265,columnNumber:42},this))},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/OntologyWorkspace/AlignmentsTab.tsx",lineNumber:264,columnNumber:15},this)]},void 0,!0,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/OntologyWorkspace/AlignmentsTab.tsx",lineNumber:262,columnNumber:13},this),o.jsxDEV("div",{children:[o.jsxDEV("label",{style:Z,children:["Confidence ",N.toFixed(2)]},void 0,!0,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/OntologyWorkspace/AlignmentsTab.tsx",lineNumber:269,columnNumber:15},this),o.jsxDEV("input",{type:"range",min:"0",max:"1",step:"0.01",value:N,onChange:y=>A(Number(y.target.value)),style:{width:"100%"}},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/OntologyWorkspace/AlignmentsTab.tsx",lineNumber:270,columnNumber:15},this)]},void 0,!0,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/OntologyWorkspace/AlignmentsTab.tsx",lineNumber:268,columnNumber:13},this)]},void 0,!0,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/OntologyWorkspace/AlignmentsTab.tsx",lineNumber:261,columnNumber:11},this),o.jsxDEV("label",{style:Z,children:"Provenance note"},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/OntologyWorkspace/AlignmentsTab.tsx",lineNumber:275,columnNumber:11},this),o.jsxDEV("textarea",{style:{...te,minHeight:74,resize:"vertical"},value:D,onChange:y=>k(y.target.value)},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/OntologyWorkspace/AlignmentsTab.tsx",lineNumber:276,columnNumber:11},this),o.jsxDEV("div",{style:Ie,children:[o.jsxDEV("div",{children:[o.jsxDEV("label",{style:Z,children:"Source"},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/OntologyWorkspace/AlignmentsTab.tsx",lineNumber:283,columnNumber:15},this),o.jsxDEV("input",{style:te,value:v,onChange:y=>V(y.target.value)},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/OntologyWorkspace/AlignmentsTab.tsx",lineNumber:284,columnNumber:15},this)]},void 0,!0,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/OntologyWorkspace/AlignmentsTab.tsx",lineNumber:282,columnNumber:13},this),o.jsxDEV("div",{children:[o.jsxDEV("label",{style:Z,children:"Reviewer"},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/OntologyWorkspace/AlignmentsTab.tsx",lineNumber:287,columnNumber:15},this),o.jsxDEV("input",{style:te,value:W,onChange:y=>U(y.target.value)},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/OntologyWorkspace/AlignmentsTab.tsx",lineNumber:288,columnNumber:15},this)]},void 0,!0,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/OntologyWorkspace/AlignmentsTab.tsx",lineNumber:286,columnNumber:13},this)]},void 0,!0,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/OntologyWorkspace/AlignmentsTab.tsx",lineNumber:281,columnNumber:11},this),o.jsxDEV("button",{style:Oo,disabled:T,onClick:F,children:[T?o.jsxDEV(Y,{size:14,className:"ws-spin"},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/OntologyWorkspace/AlignmentsTab.tsx",lineNumber:292,columnNumber:21},this):o.jsxDEV(De,{size:14},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/OntologyWorkspace/AlignmentsTab.tsx",lineNumber:292,columnNumber:65},this),"Save alignment"]},void 0,!0,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/OntologyWorkspace/AlignmentsTab.tsx",lineNumber:291,columnNumber:11},this)]},void 0,!0,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/OntologyWorkspace/AlignmentsTab.tsx",lineNumber:255,columnNumber:9},this),o.jsxDEV("section",{style:ye,children:[o.jsxDEV("h3",{style:xe,children:"Suggest alignments"},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/OntologyWorkspace/AlignmentsTab.tsx",lineNumber:298,columnNumber:11},this),o.jsxDEV("div",{style:Ie,children:[o.jsxDEV("div",{children:[o.jsxDEV("label",{style:Z,children:"Source ontology"},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/OntologyWorkspace/AlignmentsTab.tsx",lineNumber:301,columnNumber:15},this),o.jsxDEV("select",{style:te,value:a,onChange:y=>c(y.target.value),children:[o.jsxDEV("option",{value:"",children:"Any ontology"},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/OntologyWorkspace/AlignmentsTab.tsx",lineNumber:303,columnNumber:17},this),l.map(y=>o.jsxDEV("option",{value:y.uri,children:y.name},y.uri,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/OntologyWorkspace/AlignmentsTab.tsx",lineNumber:304,columnNumber:42},this))]},void 0,!0,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/OntologyWorkspace/AlignmentsTab.tsx",lineNumber:302,columnNumber:15},this)]},void 0,!0,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/OntologyWorkspace/AlignmentsTab.tsx",lineNumber:300,columnNumber:13},this),o.jsxDEV("div",{children:[o.jsxDEV("label",{style:Z,children:"Target ontology"},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/OntologyWorkspace/AlignmentsTab.tsx",lineNumber:308,columnNumber:15},this),o.jsxDEV("select",{style:te,value:m,onChange:y=>p(y.target.value),children:[o.jsxDEV("option",{value:"",children:"Any ontology"},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/OntologyWorkspace/AlignmentsTab.tsx",lineNumber:310,columnNumber:17},this),l.map(y=>o.jsxDEV("option",{value:y.uri,children:y.name},y.uri,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/OntologyWorkspace/AlignmentsTab.tsx",lineNumber:311,columnNumber:42},this))]},void 0,!0,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/OntologyWorkspace/AlignmentsTab.tsx",lineNumber:309,columnNumber:15},this)]},void 0,!0,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/OntologyWorkspace/AlignmentsTab.tsx",lineNumber:307,columnNumber:13},this)]},void 0,!0,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/OntologyWorkspace/AlignmentsTab.tsx",lineNumber:299,columnNumber:11},this),o.jsxDEV("label",{style:Z,children:["Similarity threshold ",O.toFixed(2)]},void 0,!0,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/OntologyWorkspace/AlignmentsTab.tsx",lineNumber:315,columnNumber:11},this),o.jsxDEV("input",{type:"range",min:"0.25",max:"0.95",step:"0.01",value:O,onChange:y=>L(Number(y.target.value)),style:{width:"100%"}},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/OntologyWorkspace/AlignmentsTab.tsx",lineNumber:316,columnNumber:11},this),o.jsxDEV("button",{style:Xs,disabled:T,onClick:q,children:[o.jsxDEV(As,{size:14},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/OntologyWorkspace/AlignmentsTab.tsx",lineNumber:320,columnNumber:13},this),"Suggest alignments"]},void 0,!0,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/OntologyWorkspace/AlignmentsTab.tsx",lineNumber:319,columnNumber:11},this),o.jsxDEV("div",{style:Zs,children:[t.map(y=>o.jsxDEV("button",{style:ea,onClick:()=>J(y),children:[o.jsxDEV("span",{style:{color:"#fff0f2",fontWeight:800},children:y.source_label},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/OntologyWorkspace/AlignmentsTab.tsx",lineNumber:325,columnNumber:17},this),o.jsxDEV("span",{style:{color:me[y.relation]},children:y.relation},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/OntologyWorkspace/AlignmentsTab.tsx",lineNumber:329,columnNumber:17},this),o.jsxDEV("span",{style:{color:"#fff0f2",fontWeight:800},children:y.target_label},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/OntologyWorkspace/AlignmentsTab.tsx",lineNumber:332,columnNumber:17},this),o.jsxDEV("span",{style:{color:"#c99aa3"},children:[Math.round(y.score*100),"%"]},void 0,!0,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/OntologyWorkspace/AlignmentsTab.tsx",lineNumber:336,columnNumber:17},this)]},`${y.source_uri}-${y.target_uri}-${y.relation}`,!0,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/OntologyWorkspace/AlignmentsTab.tsx",lineNumber:324,columnNumber:40},this)),t.length?null:o.jsxDEV("p",{style:Se,children:"Run suggestions to review ranked candidate mappings."},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/OntologyWorkspace/AlignmentsTab.tsx",lineNumber:340,columnNumber:36},this)]},void 0,!0,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/OntologyWorkspace/AlignmentsTab.tsx",lineNumber:323,columnNumber:11},this)]},void 0,!0,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/OntologyWorkspace/AlignmentsTab.tsx",lineNumber:297,columnNumber:9},this)]},void 0,!0,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/OntologyWorkspace/AlignmentsTab.tsx",lineNumber:254,columnNumber:7},this),o.jsxDEV("section",{style:ye,children:[o.jsxDEV("h3",{style:xe,children:"Recorded alignments"},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/OntologyWorkspace/AlignmentsTab.tsx",lineNumber:346,columnNumber:9},this),o.jsxDEV("div",{style:oa,children:[s.map(y=>o.jsxDEV("div",{style:sa,children:[o.jsxDEV("div",{children:[o.jsxDEV("div",{style:{color:"#fff0f2",fontWeight:800},children:y.source_label||y.source_uri},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/OntologyWorkspace/AlignmentsTab.tsx",lineNumber:350,columnNumber:17},this),o.jsxDEV("div",{style:ao,children:y.source_uri},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/OntologyWorkspace/AlignmentsTab.tsx",lineNumber:354,columnNumber:17},this)]},void 0,!0,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/OntologyWorkspace/AlignmentsTab.tsx",lineNumber:349,columnNumber:15},this),o.jsxDEV("div",{style:{...no,color:me[y.relation],borderColor:`${me[y.relation]}55`},children:y.relation},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/OntologyWorkspace/AlignmentsTab.tsx",lineNumber:356,columnNumber:15},this),o.jsxDEV("div",{children:[o.jsxDEV("div",{style:{color:"#fff0f2",fontWeight:800},children:y.target_label||y.target_uri},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/OntologyWorkspace/AlignmentsTab.tsx",lineNumber:364,columnNumber:17},this),o.jsxDEV("div",{style:ao,children:y.target_uri},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/OntologyWorkspace/AlignmentsTab.tsx",lineNumber:368,columnNumber:17},this)]},void 0,!0,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/OntologyWorkspace/AlignmentsTab.tsx",lineNumber:363,columnNumber:15},this),o.jsxDEV("div",{style:aa,children:[Math.round(y.confidence*100),"%"]},void 0,!0,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/OntologyWorkspace/AlignmentsTab.tsx",lineNumber:370,columnNumber:15},this),o.jsxDEV("button",{style:na,disabled:T,onClick:()=>K(y.id),title:"Remove alignment",children:o.jsxDEV(Ke,{size:14},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/OntologyWorkspace/AlignmentsTab.tsx",lineNumber:372,columnNumber:17},this)},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/OntologyWorkspace/AlignmentsTab.tsx",lineNumber:371,columnNumber:15},this)]},y.id,!0,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/OntologyWorkspace/AlignmentsTab.tsx",lineNumber:348,columnNumber:37},this)),s.length?null:o.jsxDEV("p",{style:Se,children:"No alignments recorded yet."},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/OntologyWorkspace/AlignmentsTab.tsx",lineNumber:375,columnNumber:33},this)]},void 0,!0,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/OntologyWorkspace/AlignmentsTab.tsx",lineNumber:347,columnNumber:9},this)]},void 0,!0,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/OntologyWorkspace/AlignmentsTab.tsx",lineNumber:345,columnNumber:7},this)]},void 0,!0,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/OntologyWorkspace/AlignmentsTab.tsx",lineNumber:171,columnNumber:10},this)}function Ve(l){const e=P.c(12);if(e[0]!=="cc6975bbd4efee230ea72597d77edee628319cce4a1b682ea34fe5a4a60a6a77"){for(let u=0;u<12;u+=1)e[u]=Symbol.for("react.memo_cache_sentinel");e[0]="cc6975bbd4efee230ea72597d77edee628319cce4a1b682ea34fe5a4a60a6a77"}const{label:s,value:n}=l;let t;e[1]===Symbol.for("react.memo_cache_sentinel")?(t={color:"#9ee8d7",fontSize:20,fontWeight:900},e[1]=t):t=e[1];let r;e[2]!==n?(r=n.toLocaleString(),e[2]=n,e[3]=r):r=e[3];let a;e[4]!==r?(a=o.jsxDEV("span",{style:t,children:r},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/OntologyWorkspace/AlignmentsTab.tsx",lineNumber:413,columnNumber:10},this),e[4]=r,e[5]=a):a=e[5];let c;e[6]===Symbol.for("react.memo_cache_sentinel")?(c={color:"#9c7a82",fontSize:11},e[6]=c):c=e[6];let m;e[7]!==s?(m=o.jsxDEV("span",{style:c,children:s},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/OntologyWorkspace/AlignmentsTab.tsx",lineNumber:431,columnNumber:10},this),e[7]=s,e[8]=m):m=e[8];let p;return e[9]!==a||e[10]!==m?(p=o.jsxDEV("div",{style:Ys,children:[a,m]},void 0,!0,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/OntologyWorkspace/AlignmentsTab.tsx",lineNumber:439,columnNumber:10},this),e[9]=a,e[10]=m,e[11]=p):p=e[11],p}const Ps={height:"100%",overflow:"auto",padding:22,display:"flex",flexDirection:"column",gap:16},Fs={display:"flex",justifyContent:"space-between",gap:18,padding:22,border:"1px solid rgba(255,107,129,0.12)",borderRadius:22,background:"linear-gradient(135deg, rgba(11,25,42,0.94), rgba(7,14,25,0.9))"},Ks={display:"inline-flex",gap:8,alignItems:"center",color:"#9ee8d7",fontSize:11,fontWeight:900,letterSpacing:"0.12em",textTransform:"uppercase"},qs={margin:"8px 0",color:"#fff0f2",fontSize:26,letterSpacing:"-0.04em"},Js={margin:0,color:"#c99aa3",lineHeight:1.6,maxWidth:620},Gs={display:"grid",gridTemplateColumns:"repeat(3, minmax(100px, 1fr))",gap:10,minWidth:320},Ys={padding:14,borderRadius:16,background:"rgba(255,255,255,0.035)",border:"1px solid rgba(255,107,129,0.1)",display:"flex",flexDirection:"column",gap:4},Qs={display:"grid",gridTemplateColumns:"minmax(320px, 0.9fr) minmax(360px, 1.1fr)",gap:16},ye={padding:18,border:"1px solid rgba(255,107,129,0.12)",borderRadius:20,background:"rgba(12,6,9,0.78)",boxShadow:"inset 0 1px 0 rgba(255,255,255,0.04)"},xe={margin:"0 0 14px",color:"#fff0f2",fontSize:16},Z={display:"block",color:"#9c7a82",fontSize:11,fontWeight:800,margin:"10px 0 6px",textTransform:"uppercase",letterSpacing:"0.08em"},te={width:"100%",boxSizing:"border-box",border:"1px solid rgba(255,107,129,0.14)",borderRadius:12,padding:"10px 12px",background:"rgba(6,3,5,0.8)",color:"#fff0f2"},Ie={display:"grid",gridTemplateColumns:"1fr 1fr",gap:12},Oo={marginTop:14,width:"100%",border:"1px solid rgba(124,231,211,0.35)",borderRadius:12,padding:"11px 13px",background:"linear-gradient(135deg, rgba(20,151,136,0.55), rgba(255,45,75,0.35))",color:"#fff0f2",fontWeight:900,cursor:"pointer",display:"inline-flex",alignItems:"center",justifyContent:"center",gap:8},Xs={...Oo,background:"rgba(255,107,129,0.08)",borderColor:"rgba(255,107,129,0.18)"},Zs={display:"flex",flexDirection:"column",gap:8,marginTop:14,maxHeight:260,overflow:"auto"},ea={display:"grid",gridTemplateColumns:"1fr auto 1fr auto",gap:10,alignItems:"center",textAlign:"left",border:"1px solid rgba(255,107,129,0.1)",borderRadius:12,background:"rgba(255,255,255,0.03)",padding:10,cursor:"pointer"},oa={display:"flex",flexDirection:"column",gap:8},sa={display:"grid",gridTemplateColumns:"1fr auto 1fr auto auto",gap:12,alignItems:"center",padding:12,borderRadius:14,background:"rgba(255,255,255,0.03)",border:"1px solid rgba(255,107,129,0.08)"},ao={color:"#9c7a82",fontSize:11,fontFamily:"JetBrains Mono, monospace",wordBreak:"break-all"},no={padding:"5px 9px",border:"1px solid",borderRadius:999,fontSize:10,fontWeight:900},aa={color:"#ff7a45",fontWeight:900},na={width:34,height:34,borderRadius:10,border:"1px solid rgba(255,157,175,0.18)",background:"rgba(255,157,175,0.08)",color:"#ff9daf",cursor:"pointer"},Se={margin:0,color:"#9c7a82",fontSize:13},ta={padding:12,borderRadius:14,color:"#ffb4c2",background:"rgba(255,157,175,0.1)",border:"1px solid rgba(255,157,175,0.18)"},ra={padding:"9px 14px",borderRadius:12,color:"#ff7a45",background:"rgba(242,182,109,0.08)",border:"1px solid rgba(242,182,109,0.22)",fontSize:12},la={borderCollapse:"collapse",minWidth:"100%",fontSize:12},ca={padding:"8px 12px",borderBottom:"1px solid rgba(255,107,129,0.1)"},ia={padding:"8px 12px",color:"#9ee8d7",fontWeight:900,borderBottom:"1px solid rgba(255,107,129,0.1)",textAlign:"center",whiteSpace:"nowrap"},ma={padding:"8px 12px",color:"#9ee8d7",fontWeight:900,borderRight:"1px solid rgba(255,107,129,0.1)",whiteSpace:"nowrap"},ua={padding:"8px 10px",borderBottom:"1px solid rgba(255,107,129,0.06)",borderRight:"1px solid rgba(255,107,129,0.06)",textAlign:"center",verticalAlign:"middle",minWidth:100};function pa({onFixInEditor:l}){const[e,s]=i.useState([]),[n,t]=i.useState(""),[r,a]=i.useState(null),[c,m]=i.useState(!1),[p,u]=i.useState("");i.useEffect(()=>{let h=!1;return He().then(S=>{h||(s(S),t(N=>N||S[0]?.uri||""))}).catch(S=>{h||u(S instanceof Error?S.message:"Failed to load ontology registry.")}),()=>{h=!0}},[]);const[g,d]=i.useState(n);n!==g&&(d(n),n&&(m(!0),u(""))),i.useEffect(()=>{let h=!1;async function S(){if(n)try{const N=await Ms(n);h||a(N)}catch{h||a(null)}finally{h||m(!1)}}return S(),()=>{h=!0}},[n]);const f=i.useCallback(()=>{if(!r)return;const h=new Blob([JSON.stringify(r,null,2)],{type:"application/json"}),S=URL.createObjectURL(h),N=document.createElement("a");N.href=S,N.download=`${r.name.replace(/[^a-z0-9]+/gi,"-").toLowerCase()}-health.json`,document.body.appendChild(N),N.click(),document.body.removeChild(N),setTimeout(()=>URL.revokeObjectURL(S),100)},[r]);return o.jsxDEV("div",{style:fa,children:[o.jsxDEV("section",{style:ya,children:[o.jsxDEV("div",{children:[o.jsxDEV("div",{style:xa,children:[o.jsxDEV(jo,{size:14},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/OntologyWorkspace/HealthTab.tsx",lineNumber:75,columnNumber:36},this)," Ontology Health"]},void 0,!0,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/OntologyWorkspace/HealthTab.tsx",lineNumber:75,columnNumber:11},this),o.jsxDEV("h2",{style:Sa,children:"Quality and governance signals"},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/OntologyWorkspace/HealthTab.tsx",lineNumber:76,columnNumber:11},this),o.jsxDEV("p",{style:Na,children:"Score completeness, consistency, SHACL readiness, alignment coverage, and documentation quality for the selected ontology."},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/OntologyWorkspace/HealthTab.tsx",lineNumber:77,columnNumber:11},this)]},void 0,!0,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/OntologyWorkspace/HealthTab.tsx",lineNumber:74,columnNumber:9},this),o.jsxDEV("div",{style:ka,children:[o.jsxDEV("label",{style:Aa,children:"Ontology"},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/OntologyWorkspace/HealthTab.tsx",lineNumber:83,columnNumber:11},this),o.jsxDEV("select",{style:Da,value:n,onChange:h=>t(h.target.value),children:e.map(h=>o.jsxDEV("option",{value:h.uri,children:h.name},h.uri,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/OntologyWorkspace/HealthTab.tsx",lineNumber:85,columnNumber:36},this))},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/OntologyWorkspace/HealthTab.tsx",lineNumber:84,columnNumber:11},this)]},void 0,!0,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/OntologyWorkspace/HealthTab.tsx",lineNumber:82,columnNumber:9},this)]},void 0,!0,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/OntologyWorkspace/HealthTab.tsx",lineNumber:73,columnNumber:7},this),p?o.jsxDEV("div",{style:Ba,children:p},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/OntologyWorkspace/HealthTab.tsx",lineNumber:90,columnNumber:16},this):null,c?o.jsxDEV("div",{style:Ra,children:[o.jsxDEV(Y,{size:18,className:"ws-spin"},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/OntologyWorkspace/HealthTab.tsx",lineNumber:92,columnNumber:44},this)," Computing health dashboard..."]},void 0,!0,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/OntologyWorkspace/HealthTab.tsx",lineNumber:92,columnNumber:18},this):r?o.jsxDEV(o.Fragment,{children:[o.jsxDEV("section",{style:{...Ha,gridTemplateColumns:`220px repeat(${r.dimensions.length}, minmax(180px, 1fr))`},children:[o.jsxDEV("div",{style:ja,children:[o.jsxDEV("span",{style:va,children:Math.round(r.total_score)},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/OntologyWorkspace/HealthTab.tsx",lineNumber:98,columnNumber:15},this),o.jsxDEV("span",{style:to,children:"Total health score"},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/OntologyWorkspace/HealthTab.tsx",lineNumber:99,columnNumber:15},this),o.jsxDEV("button",{style:Ma,onClick:f,children:[o.jsxDEV(qo,{size:14},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/OntologyWorkspace/HealthTab.tsx",lineNumber:100,columnNumber:75},this)," Export report"]},void 0,!0,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/OntologyWorkspace/HealthTab.tsx",lineNumber:100,columnNumber:15},this)]},void 0,!0,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/OntologyWorkspace/HealthTab.tsx",lineNumber:97,columnNumber:13},this),r.dimensions.map(h=>o.jsxDEV("div",{style:Oa,children:[o.jsxDEV("div",{style:wa,children:[o.jsxDEV("span",{style:{color:"#fff0f2",fontWeight:900},children:h.label},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/OntologyWorkspace/HealthTab.tsx",lineNumber:104,columnNumber:19},this),o.jsxDEV("span",{style:ha(h.status),children:h.status},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/OntologyWorkspace/HealthTab.tsx",lineNumber:108,columnNumber:19},this)]},void 0,!0,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/OntologyWorkspace/HealthTab.tsx",lineNumber:103,columnNumber:17},this),o.jsxDEV("div",{style:La,children:o.jsxDEV("div",{style:{...Ea,width:`${h.score}%`,background:ba(h.score,h.status)}},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/OntologyWorkspace/HealthTab.tsx",lineNumber:111,columnNumber:19},this)},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/OntologyWorkspace/HealthTab.tsx",lineNumber:110,columnNumber:17},this),o.jsxDEV("div",{style:Va,children:[o.jsxDEV("span",{children:[Math.round(h.score)," / 100"]},void 0,!0,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/OntologyWorkspace/HealthTab.tsx",lineNumber:118,columnNumber:19},this),o.jsxDEV("span",{children:h.detail},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/OntologyWorkspace/HealthTab.tsx",lineNumber:119,columnNumber:19},this)]},void 0,!0,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/OntologyWorkspace/HealthTab.tsx",lineNumber:117,columnNumber:17},this)]},h.key,!0,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/OntologyWorkspace/HealthTab.tsx",lineNumber:102,columnNumber:49},this))]},void 0,!0,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/OntologyWorkspace/HealthTab.tsx",lineNumber:93,columnNumber:11},this),o.jsxDEV("section",{style:Ia,children:[o.jsxDEV("h3",{style:Wa,children:"Actionable issues"},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/OntologyWorkspace/HealthTab.tsx",lineNumber:125,columnNumber:13},this),o.jsxDEV("div",{style:Ua,children:[r.issues.map(h=>o.jsxDEV(da,{issue:h,onFixInEditor:l},h.id,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/OntologyWorkspace/HealthTab.tsx",lineNumber:127,columnNumber:43},this)),r.issues.length?null:o.jsxDEV("p",{style:to,children:"No actionable issues reported for this ontology."},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/OntologyWorkspace/HealthTab.tsx",lineNumber:128,columnNumber:40},this)]},void 0,!0,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/OntologyWorkspace/HealthTab.tsx",lineNumber:126,columnNumber:13},this)]},void 0,!0,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/OntologyWorkspace/HealthTab.tsx",lineNumber:124,columnNumber:11},this)]},void 0,!0,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/OntologyWorkspace/HealthTab.tsx",lineNumber:92,columnNumber:133},this):o.jsxDEV("div",{style:$a,children:"Select an ontology to compute health signals."},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/OntologyWorkspace/HealthTab.tsx",lineNumber:131,columnNumber:15},this)]},void 0,!0,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/OntologyWorkspace/HealthTab.tsx",lineNumber:72,columnNumber:10},this)}function da(l){const e=P.c(27);if(e[0]!=="6705766e42bccb512824c4f77e45fe53cec73d8579f2eb9b572897c9764cca0f"){for(let N=0;N<27;N+=1)e[N]=Symbol.for("react.memo_cache_sentinel");e[0]="6705766e42bccb512824c4f77e45fe53cec73d8579f2eb9b572897c9764cca0f"}const{issue:s,onFixInEditor:n}=l;let t;e[1]!==s.severity?(t=ga(s.severity),e[1]=s.severity,e[2]=t):t=e[2];let r;e[3]!==t?(r=o.jsxDEV("div",{style:t},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/OntologyWorkspace/HealthTab.tsx",lineNumber:156,columnNumber:10},this),e[3]=t,e[4]=r):r=e[4];let a;e[5]===Symbol.for("react.memo_cache_sentinel")?(a={color:"#fff0f2",fontWeight:800},e[5]=a):a=e[5];const c=s.entity_label||s.category;let m;e[6]!==c?(m=o.jsxDEV("div",{style:a,children:c},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/OntologyWorkspace/HealthTab.tsx",lineNumber:175,columnNumber:10},this),e[6]=c,e[7]=m):m=e[7];let p;e[8]===Symbol.for("react.memo_cache_sentinel")?(p={color:"#c99aa3",fontSize:13,lineHeight:1.45},e[8]=p):p=e[8];let u;e[9]!==s.message?(u=o.jsxDEV("div",{style:p,children:s.message},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/OntologyWorkspace/HealthTab.tsx",lineNumber:194,columnNumber:10},this),e[9]=s.message,e[10]=u):u=e[10];let g;e[11]!==s.entity_uri?(g=s.entity_uri?o.jsxDEV("div",{style:za,children:s.entity_uri},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/OntologyWorkspace/HealthTab.tsx",lineNumber:202,columnNumber:29},this):null,e[11]=s.entity_uri,e[12]=g):g=e[12];let d;e[13]!==m||e[14]!==u||e[15]!==g?(d=o.jsxDEV("div",{children:[m,u,g]},void 0,!0,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/OntologyWorkspace/HealthTab.tsx",lineNumber:210,columnNumber:10},this),e[13]=m,e[14]=u,e[15]=g,e[16]=d):d=e[16];let f;e[17]!==s.category?(f=o.jsxDEV("span",{style:Ca,children:s.category},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/OntologyWorkspace/HealthTab.tsx",lineNumber:220,columnNumber:11},this),e[17]=s.category,e[18]=f):f=e[18];let h;e[19]!==s.entity_uri||e[20]!==n?(h=s.entity_uri?o.jsxDEV("button",{style:_a,onClick:()=>n?.(s.entity_uri||""),children:[o.jsxDEV(Is,{size:13},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/OntologyWorkspace/HealthTab.tsx",lineNumber:228,columnNumber:119},this),"Fix in Editor"]},void 0,!0,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/OntologyWorkspace/HealthTab.tsx",lineNumber:228,columnNumber:30},this):o.jsxDEV("div",{},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/OntologyWorkspace/HealthTab.tsx",lineNumber:228,columnNumber:164},this),e[19]=s.entity_uri,e[20]=n,e[21]=h):h=e[21];let S;return e[22]!==f||e[23]!==h||e[24]!==r||e[25]!==d?(S=o.jsxDEV("div",{style:Ta,children:[r,d,f,h]},void 0,!0,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/OntologyWorkspace/HealthTab.tsx",lineNumber:237,columnNumber:11},this),e[22]=f,e[23]=h,e[24]=r,e[25]=d,e[26]=S):S=e[26],S}function ba(l,e){return e==="unavailable"?"#9c7a82":l>=80?"#7ce7d3":l>=55?"#ff7a45":"#ff9daf"}function ha(l){const e=l==="ok"?"#7ce7d3":l==="unavailable"?"#9c7a82":"#ff7a45";return{color:e,background:`${e}18`,border:`1px solid ${e}30`,borderRadius:999,padding:"2px 7px",fontSize:10,fontWeight:900,textTransform:"uppercase"}}function ga(l){const e=l==="critical"?"#ff9daf":l==="warning"?"#ff7a45":"#ff2d4b";return{width:10,height:10,borderRadius:"50%",background:e,boxShadow:`0 0 18px ${e}55`,marginTop:5}}const fa={height:"100%",overflow:"auto",padding:22,display:"flex",flexDirection:"column",gap:16},ya={display:"flex",justifyContent:"space-between",gap:18,padding:22,border:"1px solid rgba(255,107,129,0.12)",borderRadius:22,background:"linear-gradient(135deg, rgba(11,25,42,0.94), rgba(7,14,25,0.9))"},xa={display:"inline-flex",gap:8,alignItems:"center",color:"#9ee8d7",fontSize:11,fontWeight:900,letterSpacing:"0.12em",textTransform:"uppercase"},Sa={margin:"8px 0",color:"#fff0f2",fontSize:26,letterSpacing:"-0.04em"},Na={margin:0,color:"#c99aa3",lineHeight:1.6,maxWidth:620},ka={minWidth:320},Aa={display:"block",color:"#9c7a82",fontSize:11,fontWeight:800,margin:"0 0 6px",textTransform:"uppercase",letterSpacing:"0.08em"},Da={width:"100%",boxSizing:"border-box",border:"1px solid rgba(255,107,129,0.14)",borderRadius:12,padding:"10px 12px",background:"rgba(6,3,5,0.8)",color:"#fff0f2"},Ha={display:"grid",gridTemplateColumns:"220px repeat(5, minmax(180px, 1fr))",gap:12},ja={padding:18,borderRadius:20,background:"rgba(15,35,52,0.88)",border:"1px solid rgba(124,231,211,0.2)",display:"flex",flexDirection:"column",gap:10},va={color:"#9ee8d7",fontSize:52,lineHeight:1,fontWeight:950,letterSpacing:"-0.06em"},Oa={padding:16,borderRadius:18,background:"rgba(12,6,9,0.78)",border:"1px solid rgba(255,107,129,0.12)"},wa={display:"flex",justifyContent:"space-between",gap:8,alignItems:"center",marginBottom:12},La={height:8,borderRadius:999,background:"rgba(255,255,255,0.06)",overflow:"hidden"},Ea={height:"100%",borderRadius:999},Va={display:"flex",flexDirection:"column",gap:6,color:"#c99aa3",fontSize:12,marginTop:10},Ia={padding:18,border:"1px solid rgba(255,107,129,0.12)",borderRadius:20,background:"rgba(12,6,9,0.78)"},Wa={margin:"0 0 14px",color:"#fff0f2",fontSize:16},Ua={display:"flex",flexDirection:"column",gap:8},Ta={display:"grid",gridTemplateColumns:"14px 1fr auto auto",gap:12,alignItems:"start",padding:12,borderRadius:14,background:"rgba(255,255,255,0.03)",border:"1px solid rgba(255,107,129,0.08)"},Ca={color:"#9ee8d7",border:"1px solid rgba(158,232,215,0.22)",borderRadius:999,padding:"4px 8px",fontSize:10,fontWeight:900},_a={display:"inline-flex",gap:6,alignItems:"center",border:"1px solid rgba(255,107,129,0.16)",borderRadius:10,padding:"7px 9px",background:"rgba(255,107,129,0.08)",color:"#fff0f2",cursor:"pointer",fontWeight:800},Ma={display:"inline-flex",gap:8,alignItems:"center",justifyContent:"center",border:"1px solid rgba(255,107,129,0.16)",borderRadius:12,padding:"10px 12px",background:"rgba(255,107,129,0.08)",color:"#fff0f2",cursor:"pointer",fontWeight:900},za={marginTop:4,color:"#9c7a82",fontSize:11,fontFamily:"JetBrains Mono, monospace",wordBreak:"break-all"},to={margin:0,color:"#9c7a82",fontSize:13},Ra={display:"inline-flex",alignItems:"center",gap:8,color:"#c99aa3",padding:18},$a={color:"#9c7a82",padding:22},Ba={display:"flex",alignItems:"center",gap:8,padding:12,borderRadius:14,color:"#ffb4c2",background:"rgba(255,157,175,0.1)",border:"1px solid rgba(255,157,175,0.18)"};function Pa(l){const e=P.c(8);if(e[0]!=="7c5228a4ed98b60ae3baa21912157d256a53645876d4b826984a5f1b8bdd1e1f"){for(let m=0;m<8;m+=1)e[m]=Symbol.for("react.memo_cache_sentinel");e[0]="7c5228a4ed98b60ae3baa21912157d256a53645876d4b826984a5f1b8bdd1e1f"}const{label:s,color:n}=l,t=`${n}18`,r=`1px solid ${n}33`;let a;e[1]!==n||e[2]!==t||e[3]!==r?(a={padding:"2px 8px",borderRadius:999,fontSize:10,fontWeight:700,letterSpacing:"0.07em",textTransform:"uppercase",background:t,border:r,color:n},e[1]=n,e[2]=t,e[3]=r,e[4]=a):a=e[4];let c;return e[5]!==s||e[6]!==a?(c=o.jsxDEV("span",{style:a,children:s},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/OntologyWorkspace/OntologyLoader.tsx",lineNumber:57,columnNumber:10},this),e[5]=s,e[6]=a,e[7]=c):c=e[7],c}function Q(l){const e=P.c(7);if(e[0]!=="7c5228a4ed98b60ae3baa21912157d256a53645876d4b826984a5f1b8bdd1e1f"){for(let c=0;c<7;c+=1)e[c]=Symbol.for("react.memo_cache_sentinel");e[0]="7c5228a4ed98b60ae3baa21912157d256a53645876d4b826984a5f1b8bdd1e1f"}const{label:s,children:n}=l;let t;e[1]===Symbol.for("react.memo_cache_sentinel")?(t={display:"flex",flexDirection:"column",gap:5},e[1]=t):t=e[1];let r;e[2]!==s?(r=o.jsxDEV("label",{style:nn,children:s},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/OntologyWorkspace/OntologyLoader.tsx",lineNumber:91,columnNumber:10},this),e[2]=s,e[3]=r):r=e[3];let a;return e[4]!==n||e[5]!==r?(a=o.jsxDEV("div",{style:t,children:[r,n]},void 0,!0,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/OntologyWorkspace/OntologyLoader.tsx",lineNumber:99,columnNumber:10},this),e[4]=n,e[5]=r,e[6]=a):a=e[6],a}function re(l){const e=P.c(8);if(e[0]!=="7c5228a4ed98b60ae3baa21912157d256a53645876d4b826984a5f1b8bdd1e1f"){for(let p=0;p<8;p+=1)e[p]=Symbol.for("react.memo_cache_sentinel");e[0]="7c5228a4ed98b60ae3baa21912157d256a53645876d4b826984a5f1b8bdd1e1f"}const{value:s,onChange:n,placeholder:t,type:r}=l,a=r===void 0?"text":r;let c;e[1]!==n?(c=p=>n(p.target.value),e[1]=n,e[2]=c):c=e[2];let m;return e[3]!==t||e[4]!==c||e[5]!==a||e[6]!==s?(m=o.jsxDEV("input",{type:a,value:s,onChange:c,placeholder:t,style:Le},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/OntologyWorkspace/OntologyLoader.tsx",lineNumber:133,columnNumber:10},this),e[3]=t,e[4]=c,e[5]=a,e[6]=s,e[7]=m):m=e[7],m}function ro(l){const e=P.c(9);if(e[0]!=="7c5228a4ed98b60ae3baa21912157d256a53645876d4b826984a5f1b8bdd1e1f"){for(let u=0;u<9;u+=1)e[u]=Symbol.for("react.memo_cache_sentinel");e[0]="7c5228a4ed98b60ae3baa21912157d256a53645876d4b826984a5f1b8bdd1e1f"}const{value:s,onChange:n,placeholder:t,rows:r}=l,a=r===void 0?5:r;let c;e[1]!==n?(c=u=>n(u.target.value),e[1]=n,e[2]=c):c=e[2];let m;e[3]===Symbol.for("react.memo_cache_sentinel")?(m={...Le,resize:"vertical",fontFamily:"monospace"},e[3]=m):m=e[3];let p;return e[4]!==t||e[5]!==a||e[6]!==c||e[7]!==s?(p=o.jsxDEV("textarea",{value:s,onChange:c,placeholder:t,rows:a,style:m},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/OntologyWorkspace/OntologyLoader.tsx",lineNumber:180,columnNumber:10},this),e[4]=t,e[5]=a,e[6]=c,e[7]=s,e[8]=p):p=e[8],p}function Fa(l){const e=P.c(30);if(e[0]!=="7c5228a4ed98b60ae3baa21912157d256a53645876d4b826984a5f1b8bdd1e1f"){for(let A=0;A<30;A+=1)e[A]=Symbol.for("react.memo_cache_sentinel");e[0]="7c5228a4ed98b60ae3baa21912157d256a53645876d4b826984a5f1b8bdd1e1f"}const{preview:s}=l;let n,t,r;e[1]===Symbol.for("react.memo_cache_sentinel")?(n={display:"flex",alignItems:"center",gap:8,marginBottom:12},t=o.jsxDEV(fe,{size:16,color:"#4cc38a"},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/OntologyWorkspace/OntologyLoader.tsx",lineNumber:212,columnNumber:10},this),r=o.jsxDEV("span",{style:{color:"#4cc38a",fontSize:12,fontWeight:700},children:"Preview ready"},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/OntologyWorkspace/OntologyLoader.tsx",lineNumber:213,columnNumber:10},this),e[1]=n,e[2]=t,e[3]=r):(n=e[1],t=e[2],r=e[3]);let a;e[4]!==s.format?(a=o.jsxDEV("div",{style:n,children:[t,r,o.jsxDEV(Pa,{label:s.format,color:"#ff2d4b"},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/OntologyWorkspace/OntologyLoader.tsx",lineNumber:228,columnNumber:34},this)]},void 0,!0,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/OntologyWorkspace/OntologyLoader.tsx",lineNumber:228,columnNumber:10},this),e[4]=s.format,e[5]=a):a=e[5];let c;e[6]!==s.name?(c=o.jsxDEV("div",{style:cn,children:s.name},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/OntologyWorkspace/OntologyLoader.tsx",lineNumber:236,columnNumber:10},this),e[6]=s.name,e[7]=c):c=e[7];let m;e[8]!==s.description?(m=s.description&&o.jsxDEV("div",{style:{color:"#c99aa3",fontSize:12,marginTop:6,lineHeight:1.5},children:s.description},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/OntologyWorkspace/OntologyLoader.tsx",lineNumber:244,columnNumber:33},this),e[8]=s.description,e[9]=m):m=e[9];const p=s.namespace||s.uri;let u;e[10]!==p?(u=o.jsxDEV(Ne,{label:"Namespace",value:p,mono:!0},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/OntologyWorkspace/OntologyLoader.tsx",lineNumber:258,columnNumber:10},this),e[10]=p,e[11]=u):u=e[11];let g;e[12]!==s.version?(g=s.version&&o.jsxDEV(Ne,{label:"Version",value:s.version},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/OntologyWorkspace/OntologyLoader.tsx",lineNumber:266,columnNumber:29},this),e[12]=s.version,e[13]=g):g=e[13];let d;e[14]!==s.license?(d=s.license&&o.jsxDEV(Ne,{label:"License",value:s.license},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/OntologyWorkspace/OntologyLoader.tsx",lineNumber:274,columnNumber:30},this),e[14]=s.license,e[15]=d):d=e[15];let f;e[16]!==s.estimated_triples?(f=s.estimated_triples.toLocaleString(),e[16]=s.estimated_triples,e[17]=f):f=e[17];let h;e[18]!==f?(h=o.jsxDEV(Ne,{label:"Estimated triples",value:f},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/OntologyWorkspace/OntologyLoader.tsx",lineNumber:290,columnNumber:11},this),e[18]=f,e[19]=h):h=e[19];let S;e[20]!==d||e[21]!==h||e[22]!==u||e[23]!==g?(S=o.jsxDEV("div",{style:mn,children:[u,g,d,h]},void 0,!0,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/OntologyWorkspace/OntologyLoader.tsx",lineNumber:298,columnNumber:11},this),e[20]=d,e[21]=h,e[22]=u,e[23]=g,e[24]=S):S=e[24];let N;return e[25]!==S||e[26]!==a||e[27]!==c||e[28]!==m?(N=o.jsxDEV("div",{style:ln,children:[a,c,m,S]},void 0,!0,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/OntologyWorkspace/OntologyLoader.tsx",lineNumber:309,columnNumber:11},this),e[25]=S,e[26]=a,e[27]=c,e[28]=m,e[29]=N):N=e[29],N}function Ne(l){const e=P.c(13);if(e[0]!=="7c5228a4ed98b60ae3baa21912157d256a53645876d4b826984a5f1b8bdd1e1f"){for(let f=0;f<13;f+=1)e[f]=Symbol.for("react.memo_cache_sentinel");e[0]="7c5228a4ed98b60ae3baa21912157d256a53645876d4b826984a5f1b8bdd1e1f"}const{label:s,value:n,mono:t}=l,r=t===void 0?!1:t;let a;e[1]===Symbol.for("react.memo_cache_sentinel")?(a={display:"flex",flexDirection:"column",gap:2},e[1]=a):a=e[1];let c;e[2]===Symbol.for("react.memo_cache_sentinel")?(c={color:"#9c7a82",fontSize:10,fontWeight:700,textTransform:"uppercase",letterSpacing:"0.07em"},e[2]=c):c=e[2];let m;e[3]!==s?(m=o.jsxDEV("span",{style:c,children:s},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/OntologyWorkspace/OntologyLoader.tsx",lineNumber:360,columnNumber:10},this),e[3]=s,e[4]=m):m=e[4];const p=r?"monospace":void 0;let u;e[5]!==p?(u={color:"#f0cdd3",fontSize:11,fontFamily:p,wordBreak:"break-all"},e[5]=p,e[6]=u):u=e[6];let g;e[7]!==u||e[8]!==n?(g=o.jsxDEV("span",{style:u,children:n},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/OntologyWorkspace/OntologyLoader.tsx",lineNumber:382,columnNumber:10},this),e[7]=u,e[8]=n,e[9]=g):g=e[9];let d;return e[10]!==m||e[11]!==g?(d=o.jsxDEV("div",{style:a,children:[m,g]},void 0,!0,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/OntologyWorkspace/OntologyLoader.tsx",lineNumber:391,columnNumber:10},this),e[10]=m,e[11]=g,e[12]=d):d=e[12],d}function Ka({onLoaded:l}){const[e,s]=i.useState(""),[n,t]=i.useState(""),[r,a]=i.useState(""),[c,m]=i.useState(""),[p,u]=i.useState(""),[g,d]=i.useState(null),[f,h]=i.useState("idle"),[S,N]=i.useState("idle"),[A,D]=i.useState(""),[k,v]=i.useState(!1),V=async()=>{if(e.trim()){h("loading"),d(null),D("");try{const U=await fetch("/api/ontology/preview",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({url:e.trim(),format:n||void 0})});if(!U.ok){const O=await U.json().catch(()=>({detail:"Unknown error"}));throw new Error(O.detail||"Preview failed")}d(await U.json()),h("idle")}catch(U){h("error"),D(U instanceof Error?U.message:"Could not fetch preview")}}},W=async()=>{if(e.trim()){N("loading");try{const U=await fetch("/api/ontology/load",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({url:e.trim(),format:n||void 0,name:r||void 0,description:c||void 0,tags:p?p.split(",").map(O=>O.trim()).filter(Boolean):[]})});if(!U.ok){const O=await U.json().catch(()=>({detail:"Load failed"}));throw new Error(O.detail||"Load failed")}N("success"),setTimeout(()=>{N("idle"),l()},1200)}catch(U){N("error"),D(U instanceof Error?U.message:"Load failed")}}};return o.jsxDEV("div",{style:Ge,children:[o.jsxDEV(Q,{label:"Ontology URL",children:o.jsxDEV("div",{style:{display:"flex",gap:8},children:[o.jsxDEV("input",{type:"url",value:e,onChange:U=>{s(U.target.value),d(null),h("idle")},placeholder:"https://schema.org/version/latest/schema.ttl",style:{...Le,flex:1}},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/OntologyWorkspace/OntologyLoader.tsx",lineNumber:488,columnNumber:11},this),o.jsxDEV("button",{onClick:V,disabled:!e.trim()||f==="loading",style:tn,children:f==="loading"?o.jsxDEV(Y,{size:13,style:{animation:"spin 1s linear infinite"}},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/OntologyWorkspace/OntologyLoader.tsx",lineNumber:497,columnNumber:43},this):"Fetch Preview"},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/OntologyWorkspace/OntologyLoader.tsx",lineNumber:496,columnNumber:11},this)]},void 0,!0,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/OntologyWorkspace/OntologyLoader.tsx",lineNumber:484,columnNumber:9},this)},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/OntologyWorkspace/OntologyLoader.tsx",lineNumber:483,columnNumber:7},this),f==="error"&&o.jsxDEV("div",{style:je,children:[o.jsxDEV(oe,{size:13},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/OntologyWorkspace/OntologyLoader.tsx",lineNumber:505,columnNumber:11},this),o.jsxDEV("span",{children:A},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/OntologyWorkspace/OntologyLoader.tsx",lineNumber:506,columnNumber:11},this)]},void 0,!0,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/OntologyWorkspace/OntologyLoader.tsx",lineNumber:504,columnNumber:36},this),g&&o.jsxDEV(Fa,{preview:g},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/OntologyWorkspace/OntologyLoader.tsx",lineNumber:509,columnNumber:19},this),o.jsxDEV("button",{onClick:()=>v(U=>!U),style:rn,children:[o.jsxDEV(ve,{size:13,style:{transform:k?"rotate(180deg)":void 0,transition:"200ms"}},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/OntologyWorkspace/OntologyLoader.tsx",lineNumber:512,columnNumber:9},this),"Advanced options"]},void 0,!0,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/OntologyWorkspace/OntologyLoader.tsx",lineNumber:511,columnNumber:7},this),k&&o.jsxDEV("div",{style:{display:"flex",flexDirection:"column",gap:12},children:[o.jsxDEV(Q,{label:"Format override",children:o.jsxDEV("select",{value:n,onChange:U=>t(U.target.value),style:wo,children:[o.jsxDEV("option",{value:"",children:"Auto-detect"},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/OntologyWorkspace/OntologyLoader.tsx",lineNumber:526,columnNumber:15},this),o.jsxDEV("option",{value:"turtle",children:"Turtle (.ttl)"},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/OntologyWorkspace/OntologyLoader.tsx",lineNumber:527,columnNumber:15},this),o.jsxDEV("option",{value:"xml",children:"RDF/XML (.rdf, .owl)"},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/OntologyWorkspace/OntologyLoader.tsx",lineNumber:528,columnNumber:15},this),o.jsxDEV("option",{value:"nt",children:"N-Triples (.nt)"},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/OntologyWorkspace/OntologyLoader.tsx",lineNumber:529,columnNumber:15},this),o.jsxDEV("option",{value:"json-ld",children:"JSON-LD (.jsonld)"},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/OntologyWorkspace/OntologyLoader.tsx",lineNumber:530,columnNumber:15},this)]},void 0,!0,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/OntologyWorkspace/OntologyLoader.tsx",lineNumber:525,columnNumber:13},this)},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/OntologyWorkspace/OntologyLoader.tsx",lineNumber:524,columnNumber:11},this),o.jsxDEV(Q,{label:"Custom display name",children:o.jsxDEV(re,{value:r,onChange:a,placeholder:"Leave blank to use ontology title"},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/OntologyWorkspace/OntologyLoader.tsx",lineNumber:534,columnNumber:13},this)},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/OntologyWorkspace/OntologyLoader.tsx",lineNumber:533,columnNumber:11},this),o.jsxDEV(Q,{label:"Description",children:o.jsxDEV(re,{value:c,onChange:m,placeholder:"Optional description"},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/OntologyWorkspace/OntologyLoader.tsx",lineNumber:537,columnNumber:13},this)},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/OntologyWorkspace/OntologyLoader.tsx",lineNumber:536,columnNumber:11},this),o.jsxDEV(Q,{label:"Tags (comma-separated)",children:o.jsxDEV(re,{value:p,onChange:u,placeholder:"e.g. biology, upper-ontology"},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/OntologyWorkspace/OntologyLoader.tsx",lineNumber:540,columnNumber:13},this)},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/OntologyWorkspace/OntologyLoader.tsx",lineNumber:539,columnNumber:11},this)]},void 0,!0,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/OntologyWorkspace/OntologyLoader.tsx",lineNumber:519,columnNumber:24},this),S==="success"&&o.jsxDEV("div",{style:Qe,children:[o.jsxDEV(fe,{size:13},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/OntologyWorkspace/OntologyLoader.tsx",lineNumber:545,columnNumber:11},this),o.jsxDEV("span",{children:"Ontology loaded successfully"},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/OntologyWorkspace/OntologyLoader.tsx",lineNumber:546,columnNumber:11},this)]},void 0,!0,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/OntologyWorkspace/OntologyLoader.tsx",lineNumber:544,columnNumber:35},this),S==="error"&&o.jsxDEV("div",{style:je,children:[o.jsxDEV(oe,{size:13},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/OntologyWorkspace/OntologyLoader.tsx",lineNumber:550,columnNumber:11},this),o.jsxDEV("span",{children:A},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/OntologyWorkspace/OntologyLoader.tsx",lineNumber:551,columnNumber:11},this)]},void 0,!0,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/OntologyWorkspace/OntologyLoader.tsx",lineNumber:549,columnNumber:33},this),o.jsxDEV("div",{style:{display:"flex",justifyContent:"flex-end",gap:8,marginTop:4},children:o.jsxDEV("button",{onClick:W,disabled:!e.trim()||S==="loading",style:Ye,children:S==="loading"?o.jsxDEV(o.Fragment,{children:[o.jsxDEV(Y,{size:13,style:{animation:"spin 1s linear infinite"}},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/OntologyWorkspace/OntologyLoader.tsx",lineNumber:562,columnNumber:15},this),"Loading…"]},void 0,!0,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/OntologyWorkspace/OntologyLoader.tsx",lineNumber:561,columnNumber:38},this):o.jsxDEV(o.Fragment,{children:[o.jsxDEV(Ho,{size:13},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/OntologyWorkspace/OntologyLoader.tsx",lineNumber:567,columnNumber:15},this),"Load Ontology"]},void 0,!0,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/OntologyWorkspace/OntologyLoader.tsx",lineNumber:566,columnNumber:19},this)},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/OntologyWorkspace/OntologyLoader.tsx",lineNumber:560,columnNumber:9},this)},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/OntologyWorkspace/OntologyLoader.tsx",lineNumber:554,columnNumber:7},this)]},void 0,!0,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/OntologyWorkspace/OntologyLoader.tsx",lineNumber:482,columnNumber:10},this)}function qa({onLoaded:l}){const e=i.useRef(null),[s,n]=i.useState(""),[t,r]=i.useState(""),[a,c]=i.useState(""),[m,p]=i.useState("idle"),[u,g]=i.useState(""),[d,f]=i.useState(!1),h=A=>{n(A.name);const D=A.name.split(".").pop()?.toLowerCase()||"";c({ttl:"turtle",rdf:"xml",owl:"xml",xml:"xml",nt:"nt",jsonld:"json-ld",json:"json-ld"}[D]??"");const v=new FileReader;v.onload=V=>r(V.target?.result||""),v.readAsText(A)},S=A=>{A.preventDefault(),f(!1);const D=A.dataTransfer.files[0];D&&h(D)},N=async()=>{if(t){p("loading");try{const A=await fetch("/api/ontology/load",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({content:t,...a?{format:a}:{}})});if(!A.ok){const D=await A.json().catch(()=>({detail:"Load failed"}));throw new Error(D.detail||"Load failed")}p("success"),setTimeout(()=>{p("idle"),l()},1200)}catch(A){p("error"),g(A instanceof Error?A.message:"Load failed")}}};return o.jsxDEV("div",{style:Ge,children:[o.jsxDEV("div",{style:{...un,borderColor:d?"rgba(255,45,75,0.5)":"rgba(255,107,129,0.18)",background:d?"rgba(255,45,75,0.06)":void 0},onDragOver:A=>{A.preventDefault(),f(!0)},onDragLeave:()=>f(!1),onDrop:S,onClick:()=>e.current?.click(),children:[o.jsxDEV(Pe,{size:24,color:"#ff2d4b"},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/OntologyWorkspace/OntologyLoader.tsx",lineNumber:657,columnNumber:9},this),s?o.jsxDEV("div",{style:{color:"#fff0f2",fontSize:13,fontWeight:600},children:s},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/OntologyWorkspace/OntologyLoader.tsx",lineNumber:658,columnNumber:21},this):o.jsxDEV(o.Fragment,{children:[o.jsxDEV("div",{style:{color:"#c99aa3",fontSize:13},children:["Drop a file here or ",o.jsxDEV("span",{style:{color:"#ff2d4b"},children:"browse"},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/OntologyWorkspace/OntologyLoader.tsx",lineNumber:667,columnNumber:35},this)]},void 0,!0,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/OntologyWorkspace/OntologyLoader.tsx",lineNumber:663,columnNumber:13},this),o.jsxDEV("div",{style:{color:"#8f6d75",fontSize:11},children:".ttl · .rdf · .owl · .xml · .nt · .jsonld · .json · .n3"},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/OntologyWorkspace/OntologyLoader.tsx",lineNumber:671,columnNumber:13},this)]},void 0,!0,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/OntologyWorkspace/OntologyLoader.tsx",lineNumber:662,columnNumber:29},this),o.jsxDEV("input",{ref:e,type:"file",accept:".ttl,.rdf,.owl,.nt,.jsonld,.json,.xml,.n3",style:{display:"none"},onChange:A=>{const D=A.target.files?.[0];D&&h(D)}},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/OntologyWorkspace/OntologyLoader.tsx",lineNumber:678,columnNumber:9},this)]},void 0,!0,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/OntologyWorkspace/OntologyLoader.tsx",lineNumber:649,columnNumber:7},this),t&&o.jsxDEV(Q,{label:"Format",children:o.jsxDEV("select",{value:a,onChange:A=>c(A.target.value),style:wo,children:[o.jsxDEV("option",{value:"turtle",children:"Turtle"},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/OntologyWorkspace/OntologyLoader.tsx",lineNumber:688,columnNumber:13},this),o.jsxDEV("option",{value:"xml",children:"RDF/XML"},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/OntologyWorkspace/OntologyLoader.tsx",lineNumber:689,columnNumber:13},this),o.jsxDEV("option",{value:"nt",children:"N-Triples"},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/OntologyWorkspace/OntologyLoader.tsx",lineNumber:690,columnNumber:13},this),o.jsxDEV("option",{value:"json-ld",children:"JSON-LD"},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/OntologyWorkspace/OntologyLoader.tsx",lineNumber:691,columnNumber:13},this)]},void 0,!0,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/OntologyWorkspace/OntologyLoader.tsx",lineNumber:687,columnNumber:11},this)},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/OntologyWorkspace/OntologyLoader.tsx",lineNumber:686,columnNumber:19},this),m==="success"&&o.jsxDEV("div",{style:Qe,children:[o.jsxDEV(fe,{size:13},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/OntologyWorkspace/OntologyLoader.tsx",lineNumber:696,columnNumber:11},this),o.jsxDEV("span",{children:["Ontology loaded successfully — ",s]},void 0,!0,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/OntologyWorkspace/OntologyLoader.tsx",lineNumber:697,columnNumber:11},this)]},void 0,!0,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/OntologyWorkspace/OntologyLoader.tsx",lineNumber:695,columnNumber:35},this),m==="error"&&o.jsxDEV("div",{style:je,children:[o.jsxDEV(oe,{size:13},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/OntologyWorkspace/OntologyLoader.tsx",lineNumber:701,columnNumber:11},this),o.jsxDEV("span",{children:u},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/OntologyWorkspace/OntologyLoader.tsx",lineNumber:702,columnNumber:11},this)]},void 0,!0,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/OntologyWorkspace/OntologyLoader.tsx",lineNumber:700,columnNumber:33},this),o.jsxDEV("div",{style:{display:"flex",justifyContent:"flex-end"},children:o.jsxDEV("button",{onClick:N,disabled:!t||m==="loading",style:Ye,children:m==="loading"?o.jsxDEV(o.Fragment,{children:[o.jsxDEV(Y,{size:13,style:{animation:"spin 1s linear infinite"}},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/OntologyWorkspace/OntologyLoader.tsx",lineNumber:711,columnNumber:15},this),"Loading…"]},void 0,!0,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/OntologyWorkspace/OntologyLoader.tsx",lineNumber:710,columnNumber:38},this):o.jsxDEV(o.Fragment,{children:[o.jsxDEV(Pe,{size:13},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/OntologyWorkspace/OntologyLoader.tsx",lineNumber:716,columnNumber:15},this),"Load File"]},void 0,!0,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/OntologyWorkspace/OntologyLoader.tsx",lineNumber:715,columnNumber:19},this)},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/OntologyWorkspace/OntologyLoader.tsx",lineNumber:709,columnNumber:9},this)},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/OntologyWorkspace/OntologyLoader.tsx",lineNumber:705,columnNumber:7},this)]},void 0,!0,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/OntologyWorkspace/OntologyLoader.tsx",lineNumber:648,columnNumber:10},this)}function Ja({onLoaded:l}){const[e,s]=i.useState("scratch"),[n,t]=i.useState("https://example.org/ontology/"),[r,a]=i.useState(""),[c,m]=i.useState(""),[p,u]=i.useState(""),[g,d]=i.useState(""),[f,h]=i.useState(""),[S,N]=i.useState("idle"),[A,D]=i.useState(""),k=async()=>{if(!(!r.trim()||!n.trim())){N("loading");try{const v=await fetch("/api/ontology/create",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({mode:e,namespace:n.trim(),name:r.trim(),description:c||void 0,tags:p?p.split(",").map(V=>V.trim()).filter(Boolean):[],sample_data:e==="data"?g:void 0,schema_text:e==="text"?f:void 0})});if(!v.ok){const V=await v.json().catch(()=>({detail:"Create failed"}));throw new Error(V.detail||"Create failed")}N("success"),setTimeout(()=>{N("idle"),l()},1200)}catch(v){N("error"),D(v instanceof Error?v.message:"Create failed")}}};return o.jsxDEV("div",{style:Ge,children:[o.jsxDEV("div",{style:{display:"flex",gap:6},children:["scratch","data","text"].map(v=>o.jsxDEV("button",{onClick:()=>s(v),style:{...pn,...e===v?bn:dn},children:v==="scratch"?"From Scratch":v==="data"?"From Data":"From Text"},v,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/OntologyWorkspace/OntologyLoader.tsx",lineNumber:782,columnNumber:65},this))},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/OntologyWorkspace/OntologyLoader.tsx",lineNumber:778,columnNumber:7},this),o.jsxDEV(Q,{label:"Display Name *",children:o.jsxDEV(re,{value:r,onChange:a,placeholder:"My Ontology"},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/OntologyWorkspace/OntologyLoader.tsx",lineNumber:791,columnNumber:9},this)},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/OntologyWorkspace/OntologyLoader.tsx",lineNumber:790,columnNumber:7},this),o.jsxDEV(Q,{label:"Namespace URI *",children:o.jsxDEV(re,{value:n,onChange:t,placeholder:"https://example.org/onto/"},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/OntologyWorkspace/OntologyLoader.tsx",lineNumber:795,columnNumber:9},this)},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/OntologyWorkspace/OntologyLoader.tsx",lineNumber:794,columnNumber:7},this),o.jsxDEV(Q,{label:"Description",children:o.jsxDEV(re,{value:c,onChange:m,placeholder:"Optional description"},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/OntologyWorkspace/OntologyLoader.tsx",lineNumber:799,columnNumber:9},this)},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/OntologyWorkspace/OntologyLoader.tsx",lineNumber:798,columnNumber:7},this),o.jsxDEV(Q,{label:"Tags (comma-separated)",children:o.jsxDEV(re,{value:p,onChange:u,placeholder:"e.g. internal, draft"},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/OntologyWorkspace/OntologyLoader.tsx",lineNumber:803,columnNumber:9},this)},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/OntologyWorkspace/OntologyLoader.tsx",lineNumber:802,columnNumber:7},this),e==="data"&&o.jsxDEV(Q,{label:"Sample Data (JSON or CSV)",children:o.jsxDEV(ro,{value:g,onChange:d,placeholder:'[{"name": "Alice", "age": 30, "city": "Berlin"}]',rows:6},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/OntologyWorkspace/OntologyLoader.tsx",lineNumber:807,columnNumber:11},this)},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/OntologyWorkspace/OntologyLoader.tsx",lineNumber:806,columnNumber:33},this),e==="text"&&o.jsxDEV(Q,{label:"Schema Requirements (natural language)",children:o.jsxDEV(ro,{value:f,onChange:h,placeholder:"Describe the ontology you need. E.g.: I need an ontology for a hospital domain with patients, doctors, appointments, and medications.",rows:6},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/OntologyWorkspace/OntologyLoader.tsx",lineNumber:811,columnNumber:11},this)},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/OntologyWorkspace/OntologyLoader.tsx",lineNumber:810,columnNumber:33},this),S==="success"&&o.jsxDEV("div",{style:Qe,children:[o.jsxDEV(fe,{size:13},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/OntologyWorkspace/OntologyLoader.tsx",lineNumber:815,columnNumber:11},this),o.jsxDEV("span",{children:"Ontology created and opened in the Registry"},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/OntologyWorkspace/OntologyLoader.tsx",lineNumber:816,columnNumber:11},this)]},void 0,!0,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/OntologyWorkspace/OntologyLoader.tsx",lineNumber:814,columnNumber:37},this),S==="error"&&o.jsxDEV("div",{style:je,children:[o.jsxDEV(oe,{size:13},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/OntologyWorkspace/OntologyLoader.tsx",lineNumber:820,columnNumber:11},this),o.jsxDEV("span",{children:A},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/OntologyWorkspace/OntologyLoader.tsx",lineNumber:821,columnNumber:11},this)]},void 0,!0,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/OntologyWorkspace/OntologyLoader.tsx",lineNumber:819,columnNumber:35},this),o.jsxDEV("div",{style:{display:"flex",justifyContent:"flex-end"},children:o.jsxDEV("button",{onClick:k,disabled:!r.trim()||!n.trim()||S==="loading",style:Ye,children:S==="loading"?o.jsxDEV(o.Fragment,{children:[o.jsxDEV(Y,{size:13,style:{animation:"spin 1s linear infinite"}},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/OntologyWorkspace/OntologyLoader.tsx",lineNumber:830,columnNumber:15},this),"Creating…"]},void 0,!0,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/OntologyWorkspace/OntologyLoader.tsx",lineNumber:829,columnNumber:40},this):o.jsxDEV(o.Fragment,{children:[o.jsxDEV(ge,{size:13},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/OntologyWorkspace/OntologyLoader.tsx",lineNumber:835,columnNumber:15},this),"Create Ontology"]},void 0,!0,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/OntologyWorkspace/OntologyLoader.tsx",lineNumber:834,columnNumber:19},this)},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/OntologyWorkspace/OntologyLoader.tsx",lineNumber:828,columnNumber:9},this)},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/OntologyWorkspace/OntologyLoader.tsx",lineNumber:824,columnNumber:7},this)]},void 0,!0,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/OntologyWorkspace/OntologyLoader.tsx",lineNumber:777,columnNumber:10},this)}function Ga(l){const e=P.c(31);if(e[0]!=="7c5228a4ed98b60ae3baa21912157d256a53645876d4b826984a5f1b8bdd1e1f"){for(let k=0;k<31;k+=1)e[k]=Symbol.for("react.memo_cache_sentinel");e[0]="7c5228a4ed98b60ae3baa21912157d256a53645876d4b826984a5f1b8bdd1e1f"}const{onLoaded:s,onClose:n}=l,[t,r]=i.useState("url");let a;e[1]!==n?(a=k=>k.target===k.currentTarget&&n(),e[1]=n,e[2]=a):a=e[2];let c;e[3]===Symbol.for("react.memo_cache_sentinel")?(c=o.jsxDEV("div",{children:[o.jsxDEV("div",{style:{color:"#fff0f2",fontSize:16,fontWeight:800},children:"Load Ontology"},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/OntologyWorkspace/OntologyLoader.tsx",lineNumber:870,columnNumber:15},this),o.jsxDEV("div",{style:{color:"#c99aa3",fontSize:12,marginTop:2},children:"Import from URL, upload a file, or create a new ontology"},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/OntologyWorkspace/OntologyLoader.tsx",lineNumber:874,columnNumber:29},this)]},void 0,!0,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/OntologyWorkspace/OntologyLoader.tsx",lineNumber:870,columnNumber:10},this),e[3]=c):c=e[3];let m;e[4]===Symbol.for("react.memo_cache_sentinel")?(m=o.jsxDEV(le,{size:16},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/OntologyWorkspace/OntologyLoader.tsx",lineNumber:885,columnNumber:10},this),e[4]=m):m=e[4];let p;e[5]!==n?(p=o.jsxDEV("div",{style:Xa,children:[c,o.jsxDEV("button",{onClick:n,style:an,children:m},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/OntologyWorkspace/OntologyLoader.tsx",lineNumber:892,columnNumber:44},this)]},void 0,!0,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/OntologyWorkspace/OntologyLoader.tsx",lineNumber:892,columnNumber:10},this),e[5]=n,e[6]=p):p=e[6];let u,g;e[7]===Symbol.for("react.memo_cache_sentinel")?(u={display:"flex",gap:2,padding:"0 20px",borderBottom:"1px solid rgba(255,107,129,0.1)"},g=["url","file","create"],e[7]=u,e[8]=g):(u=e[7],g=e[8]);let d;e[9]!==t?(d=o.jsxDEV("div",{style:u,children:g.map(k=>o.jsxDEV("button",{onClick:()=>r(k),style:{...en,...t===k?sn:on},children:k==="url"?o.jsxDEV(o.Fragment,{children:[o.jsxDEV(Ho,{size:12},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/OntologyWorkspace/OntologyLoader.tsx",lineNumber:919,columnNumber:27},this)," URL Import"]},void 0,!0,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/OntologyWorkspace/OntologyLoader.tsx",lineNumber:919,columnNumber:25},this):k==="file"?o.jsxDEV(o.Fragment,{children:[o.jsxDEV(Pe,{size:12},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/OntologyWorkspace/OntologyLoader.tsx",lineNumber:919,columnNumber:80},this)," File Upload"]},void 0,!0,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/OntologyWorkspace/OntologyLoader.tsx",lineNumber:919,columnNumber:78},this):o.jsxDEV(o.Fragment,{children:[o.jsxDEV(ge,{size:12},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/OntologyWorkspace/OntologyLoader.tsx",lineNumber:919,columnNumber:120},this)," Create New"]},void 0,!0,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/OntologyWorkspace/OntologyLoader.tsx",lineNumber:919,columnNumber:118},this)},k,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/OntologyWorkspace/OntologyLoader.tsx",lineNumber:916,columnNumber:57},this))},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/OntologyWorkspace/OntologyLoader.tsx",lineNumber:916,columnNumber:10},this),e[9]=t,e[10]=d):d=e[10];let f;e[11]!==t||e[12]!==s?(f=t==="url"&&o.jsxDEV(Ka,{onLoaded:s},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/OntologyWorkspace/OntologyLoader.tsx",lineNumber:927,columnNumber:28},this),e[11]=t,e[12]=s,e[13]=f):f=e[13];let h;e[14]!==t||e[15]!==s?(h=t==="file"&&o.jsxDEV(qa,{onLoaded:s},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/OntologyWorkspace/OntologyLoader.tsx",lineNumber:936,columnNumber:29},this),e[14]=t,e[15]=s,e[16]=h):h=e[16];let S;e[17]!==t||e[18]!==s?(S=t==="create"&&o.jsxDEV(Ja,{onLoaded:s},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/OntologyWorkspace/OntologyLoader.tsx",lineNumber:945,columnNumber:32},this),e[17]=t,e[18]=s,e[19]=S):S=e[19];let N;e[20]!==S||e[21]!==f||e[22]!==h?(N=o.jsxDEV("div",{style:Za,children:[f,h,S]},void 0,!0,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/OntologyWorkspace/OntologyLoader.tsx",lineNumber:954,columnNumber:11},this),e[20]=S,e[21]=f,e[22]=h,e[23]=N):N=e[23];let A;e[24]!==N||e[25]!==p||e[26]!==d?(A=o.jsxDEV("div",{style:Qa,children:[p,d,N]},void 0,!0,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/OntologyWorkspace/OntologyLoader.tsx",lineNumber:964,columnNumber:11},this),e[24]=N,e[25]=p,e[26]=d,e[27]=A):A=e[27];let D;return e[28]!==a||e[29]!==A?(D=o.jsxDEV("div",{style:Ya,onClick:a,children:A},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/OntologyWorkspace/OntologyLoader.tsx",lineNumber:974,columnNumber:11},this),e[28]=a,e[29]=A,e[30]=D):D=e[30],D}const Ya={position:"fixed",inset:0,background:"rgba(6,3,5,0.78)",backdropFilter:"blur(6px)",display:"flex",alignItems:"center",justifyContent:"center",zIndex:1e3},Qa={width:"min(620px, 96vw)",maxHeight:"88vh",display:"flex",flexDirection:"column",borderRadius:20,border:"1px solid rgba(255,107,129,0.16)",background:"linear-gradient(180deg, rgba(11,21,34,0.98), rgba(6,13,22,0.96))",boxShadow:"0 32px 80px rgba(0,0,0,0.5), inset 0 1px 0 rgba(255,255,255,0.06)",overflow:"hidden"},Xa={display:"flex",alignItems:"flex-start",justifyContent:"space-between",padding:"20px 20px 16px"},Za={flex:1,overflowY:"auto"},Ge={padding:"16px 20px 20px",display:"flex",flexDirection:"column",gap:14},en={display:"inline-flex",alignItems:"center",gap:6,padding:"8px 14px",border:"none",borderBottom:"2px solid transparent",background:"transparent",cursor:"pointer",fontSize:12,fontWeight:600,transition:"160ms ease"},on={color:"#c99aa3"},sn={color:"#ff2d4b",borderBottomColor:"#ff2d4b"},an={background:"transparent",border:"none",color:"#c99aa3",cursor:"pointer",padding:4,borderRadius:8,display:"grid",placeItems:"center"},nn={color:"#c99aa3",fontSize:11,fontWeight:700,letterSpacing:"0.05em"},Le={width:"100%",padding:"8px 12px",borderRadius:8,border:"1px solid rgba(255,107,129,0.16)",background:"rgba(0,0,0,0.24)",color:"#fff0f2",fontSize:13,outline:"none",boxSizing:"border-box"},wo={...Le,appearance:"none",cursor:"pointer"},tn={padding:"8px 14px",borderRadius:8,border:"1px solid rgba(255,107,129,0.2)",background:"rgba(255,45,75,0.08)",color:"#ff6b81",fontSize:12,fontWeight:600,cursor:"pointer",whiteSpace:"nowrap",display:"inline-flex",alignItems:"center",gap:6},Ye={display:"inline-flex",alignItems:"center",gap:7,padding:"9px 18px",borderRadius:10,border:"1px solid rgba(255,45,75,0.3)",background:"linear-gradient(135deg, rgba(255,45,75,0.2), rgba(255,45,75,0.1))",color:"#ff6b81",fontSize:13,fontWeight:700,cursor:"pointer"},rn={display:"inline-flex",alignItems:"center",gap:6,background:"transparent",border:"none",color:"#9c7a82",fontSize:12,cursor:"pointer",padding:0},ln={padding:14,borderRadius:10,border:"1px solid rgba(76,195,138,0.18)",background:"rgba(76,195,138,0.04)"},cn={color:"#fff0f2",fontSize:15,fontWeight:800,letterSpacing:"-0.03em"},mn={display:"grid",gridTemplateColumns:"1fr 1fr",gap:10,marginTop:12},un={border:"2px dashed",borderRadius:12,padding:"32px 20px",display:"flex",flexDirection:"column",alignItems:"center",gap:10,cursor:"pointer",transition:"160ms ease"},Qe={display:"flex",alignItems:"center",gap:8,padding:"8px 12px",borderRadius:8,border:"1px solid rgba(76,195,138,0.22)",background:"rgba(76,195,138,0.06)",color:"#4cc38a",fontSize:12},je={display:"flex",alignItems:"center",gap:8,padding:"8px 12px",borderRadius:8,border:"1px solid rgba(255,157,175,0.22)",background:"rgba(255,157,175,0.06)",color:"#ff9daf",fontSize:12},pn={padding:"6px 12px",borderRadius:8,border:"1px solid transparent",cursor:"pointer",fontSize:12,fontWeight:600},dn={background:"transparent",color:"#c99aa3",borderColor:"rgba(255,107,129,0.1)"},bn={background:"rgba(255,45,75,0.14)",color:"#fff0f2",borderColor:"rgba(255,107,129,0.24)"},lo={class:"#d2a8ff",property:"#ff7a45",individual:"#9ee8d7",concept:"#ff2d4b",scheme:"#ff6b81",unknown:"#9c7a82"},Lo={class:"Class",property:"Property",individual:"Individual",concept:"Concept",scheme:"Scheme",unknown:"Entity"};function Eo(l){const e=P.c(8);if(e[0]!=="e17457010105a98100704f4eec2e752ecb858e5778e0639220ca1b8ec3eb2769"){for(let p=0;p<8;p+=1)e[p]=Symbol.for("react.memo_cache_sentinel");e[0]="e17457010105a98100704f4eec2e752ecb858e5778e0639220ca1b8ec3eb2769"}const{entityType:s}=l,n=lo[s]||lo.unknown,t=`${n}14`,r=`1px solid ${n}28`;let a;e[1]!==n||e[2]!==t||e[3]!==r?(a={padding:"1px 7px",borderRadius:999,fontSize:10,fontWeight:700,letterSpacing:"0.06em",textTransform:"uppercase",background:t,border:r,color:n,flexShrink:0},e[1]=n,e[2]=t,e[3]=r,e[4]=a):a=e[4];const c=Lo[s]||s;let m;return e[5]!==a||e[6]!==c?(m=o.jsxDEV("span",{style:a,children:c},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/OntologyWorkspace/OntologySearch.tsx",lineNumber:81,columnNumber:10},this),e[5]=a,e[6]=c,e[7]=m):m=e[7],m}function hn(l){const e=P.c(7);if(e[0]!=="e17457010105a98100704f4eec2e752ecb858e5778e0639220ca1b8ec3eb2769"){for(let c=0;c<7;c+=1)e[c]=Symbol.for("react.memo_cache_sentinel");e[0]="e17457010105a98100704f4eec2e752ecb858e5778e0639220ca1b8ec3eb2769"}const{uri:s}=l;let n;e[1]!==s?(n=s.includes("#")?s.split("#").pop()||s:s.split("/").pop()||s,e[1]=s,e[2]=n):n=e[2];const t=n;let r;e[3]===Symbol.for("react.memo_cache_sentinel")?(r={color:"#ff2d4b",fontSize:11,fontFamily:"monospace",cursor:"help"},e[3]=r):r=e[3];let a;return e[4]!==t||e[5]!==s?(a=o.jsxDEV("span",{title:s,style:r,children:t},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/OntologyWorkspace/OntologySearch.tsx",lineNumber:124,columnNumber:10},this),e[4]=t,e[5]=s,e[6]=a):a=e[6],a}function gn(l){const e=P.c(27);if(e[0]!=="e17457010105a98100704f4eec2e752ecb858e5778e0639220ca1b8ec3eb2769"){for(let k=0;k<27;k+=1)e[k]=Symbol.for("react.memo_cache_sentinel");e[0]="e17457010105a98100704f4eec2e752ecb858e5778e0639220ca1b8ec3eb2769"}const{result:s,selected:n,onSelect:t}=l,r=n?"rgba(255,45,75,0.1)":"rgba(255,255,255,0.02)",a=n?"rgba(255,107,129,0.24)":"rgba(255,107,129,0.08)";let c;e[1]!==r||e[2]!==a?(c={display:"flex",flexDirection:"column",gap:4,padding:"10px 14px",borderRadius:10,border:"1px solid",cursor:"pointer",transition:"160ms ease",background:r,borderColor:a},e[1]=r,e[2]=a,e[3]=c):c=e[3];let m,p;e[4]===Symbol.for("react.memo_cache_sentinel")?(m={display:"flex",alignItems:"center",gap:8,flexWrap:"wrap"},p={color:"#fff0f2",fontSize:13,fontWeight:700,flex:1,minWidth:0,overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},e[4]=m,e[5]=p):(m=e[4],p=e[5]);const u=s.label||s.uri;let g;e[6]!==u?(g=o.jsxDEV("span",{style:p,children:u},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/OntologyWorkspace/OntologySearch.tsx",lineNumber:196,columnNumber:10},this),e[6]=u,e[7]=g):g=e[7];let d;e[8]!==s.entity_type?(d=o.jsxDEV(Eo,{entityType:s.entity_type},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/OntologyWorkspace/OntologySearch.tsx",lineNumber:204,columnNumber:10},this),e[8]=s.entity_type,e[9]=d):d=e[9];let f;e[10]!==g||e[11]!==d?(f=o.jsxDEV("div",{style:m,children:[g,d]},void 0,!0,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/OntologyWorkspace/OntologySearch.tsx",lineNumber:212,columnNumber:10},this),e[10]=g,e[11]=d,e[12]=f):f=e[12];let h;e[13]===Symbol.for("react.memo_cache_sentinel")?(h={color:"#9c7a82",fontSize:10,fontFamily:"monospace",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},e[13]=h):h=e[13];let S;e[14]!==s.uri?(S=o.jsxDEV("div",{style:h,children:s.uri},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/OntologyWorkspace/OntologySearch.tsx",lineNumber:235,columnNumber:11},this),e[14]=s.uri,e[15]=S):S=e[15];let N;e[16]!==s.definition?(N=s.definition&&o.jsxDEV("div",{style:{color:"#c99aa3",fontSize:12,lineHeight:1.4,overflow:"hidden",display:"-webkit-box",WebkitLineClamp:2,WebkitBoxOrient:"vertical"},children:s.definition},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/OntologyWorkspace/OntologySearch.tsx",lineNumber:243,columnNumber:32},this),e[16]=s.definition,e[17]=N):N=e[17];let A;e[18]!==s.source_ontology?(A=s.source_ontology&&o.jsxDEV("div",{style:{color:"#8f6d75",fontSize:10},children:["From: ",s.source_ontology]},void 0,!0,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/OntologyWorkspace/OntologySearch.tsx",lineNumber:259,columnNumber:37},this),e[18]=s.source_ontology,e[19]=A):A=e[19];let D;return e[20]!==t||e[21]!==S||e[22]!==N||e[23]!==A||e[24]!==c||e[25]!==f?(D=o.jsxDEV("div",{onClick:t,style:c,children:[f,S,N,A]},void 0,!0,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/OntologyWorkspace/OntologySearch.tsx",lineNumber:270,columnNumber:11},this),e[20]=t,e[21]=S,e[22]=N,e[23]=A,e[24]=c,e[25]=f,e[26]=D):D=e[26],D}function ke(l){const e=P.c(19);if(e[0]!=="e17457010105a98100704f4eec2e752ecb858e5778e0639220ca1b8ec3eb2769"){for(let h=0;h<19;h+=1)e[h]=Symbol.for("react.memo_cache_sentinel");e[0]="e17457010105a98100704f4eec2e752ecb858e5778e0639220ca1b8ec3eb2769"}const{label:s,items:n}=l,[t,r]=i.useState(!1);if(!n.length)return null;let a;e[1]===Symbol.for("react.memo_cache_sentinel")?(a=()=>r(yn),e[1]=a):a=e[1];let c;e[2]!==t?(c=t?o.jsxDEV(ve,{size:12},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/OntologyWorkspace/OntologySearch.tsx",lineNumber:308,columnNumber:17},this):o.jsxDEV(Oe,{size:12},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/OntologyWorkspace/OntologySearch.tsx",lineNumber:308,columnNumber:45},this),e[2]=t,e[3]=c):c=e[3];let m;e[4]!==s?(m=o.jsxDEV("span",{children:s},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/OntologyWorkspace/OntologySearch.tsx",lineNumber:316,columnNumber:10},this),e[4]=s,e[5]=m):m=e[5];let p;e[6]===Symbol.for("react.memo_cache_sentinel")?(p={color:"#9c7a82",fontSize:10},e[6]=p):p=e[6];let u;e[7]!==n.length?(u=o.jsxDEV("span",{style:p,children:["(",n.length,")"]},void 0,!0,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/OntologyWorkspace/OntologySearch.tsx",lineNumber:334,columnNumber:10},this),e[7]=n.length,e[8]=u):u=e[8];let g;e[9]!==c||e[10]!==m||e[11]!==u?(g=o.jsxDEV("button",{onClick:a,style:Tn,children:[c,m,u]},void 0,!0,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/OntologyWorkspace/OntologySearch.tsx",lineNumber:342,columnNumber:10},this),e[9]=c,e[10]=m,e[11]=u,e[12]=g):g=e[12];let d;e[13]!==n||e[14]!==t?(d=t&&o.jsxDEV("div",{style:{marginLeft:16,marginTop:4,display:"flex",flexDirection:"column",gap:3},children:[n.slice(0,12).map(fn),n.length>12&&o.jsxDEV("span",{style:{color:"#8f6d75",fontSize:10},children:["+",n.length-12," more"]},void 0,!0,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/OntologyWorkspace/OntologySearch.tsx",lineNumber:358,columnNumber:62},this)]},void 0,!0,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/OntologyWorkspace/OntologySearch.tsx",lineNumber:352,columnNumber:18},this),e[13]=n,e[14]=t,e[15]=d):d=e[15];let f;return e[16]!==g||e[17]!==d?(f=o.jsxDEV("div",{children:[g,d]},void 0,!0,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/OntologyWorkspace/OntologySearch.tsx",lineNumber:370,columnNumber:10},this),e[16]=g,e[17]=d,e[18]=f):f=e[18],f}function fn(l){return o.jsxDEV("div",{style:{display:"flex",alignItems:"center",gap:6},children:[o.jsxDEV("span",{style:{color:"#9c7a82",fontSize:10},children:"→"},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/OntologyWorkspace/OntologySearch.tsx",lineNumber:384,columnNumber:6},this),o.jsxDEV(hn,{uri:l},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/OntologyWorkspace/OntologySearch.tsx",lineNumber:387,columnNumber:16},this)]},l,!0,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/OntologyWorkspace/OntologySearch.tsx",lineNumber:380,columnNumber:10},this)}function yn(l){return!l}function xn(l){const e=P.c(20);if(e[0]!=="e17457010105a98100704f4eec2e752ecb858e5778e0639220ca1b8ec3eb2769"){for(let V=0;V<20;V+=1)e[V]=Symbol.for("react.memo_cache_sentinel");e[0]="e17457010105a98100704f4eec2e752ecb858e5778e0639220ca1b8ec3eb2769"}const{uri:s,onClose:n}=l,[t,r]=i.useState(null),[a,c]=i.useState(!0),[m,p]=i.useState(""),[u,g]=i.useState(s);s!==u&&(g(s),c(!0),p(""),r(null));let d,f;e[1]!==s?(d=()=>{let V=!1;return fetch(`/api/ontology/entity/${encodeURIComponent(s)}`).then(async W=>{if(!W.ok)throw new Error("Not found");const U=await W.json();return W.status===207&&p(U.message||"Warning: Partial success loading entity."),U}).then(W=>{V||r(W)}).catch(W=>{V||p(W.message)}).finally(()=>{V||c(!1)}),()=>{V=!0}},f=[s],e[1]=s,e[2]=d,e[3]=f):(d=e[2],f=e[3]),i.useEffect(d,f);let h;e[4]===Symbol.for("react.memo_cache_sentinel")?(h=o.jsxDEV("div",{style:{display:"flex",alignItems:"center",gap:8,minWidth:0},children:[o.jsxDEV(we,{size:14,color:"#d2a8ff"},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/OntologyWorkspace/OntologySearch.tsx",lineNumber:461,columnNumber:8},this),o.jsxDEV("span",{style:{color:"#fff0f2",fontSize:13,fontWeight:700,overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},children:"Entity Detail"},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/OntologyWorkspace/OntologySearch.tsx",lineNumber:461,columnNumber:46},this)]},void 0,!0,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/OntologyWorkspace/OntologySearch.tsx",lineNumber:456,columnNumber:10},this),e[4]=h):h=e[4];let S;e[5]===Symbol.for("react.memo_cache_sentinel")?(S=o.jsxDEV(le,{size:14},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/OntologyWorkspace/OntologySearch.tsx",lineNumber:475,columnNumber:10},this),e[5]=S):S=e[5];let N;e[6]!==n?(N=o.jsxDEV("div",{style:In,children:[h,o.jsxDEV("button",{onClick:n,style:Wn,children:S},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/OntologyWorkspace/OntologySearch.tsx",lineNumber:482,columnNumber:45},this)]},void 0,!0,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/OntologyWorkspace/OntologySearch.tsx",lineNumber:482,columnNumber:10},this),e[6]=n,e[7]=N):N=e[7];let A;e[8]!==a?(A=a&&o.jsxDEV("div",{style:io,children:o.jsxDEV(Y,{size:18,color:"#ff2d4b",style:{animation:"spin 1s linear infinite"}},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/OntologyWorkspace/OntologySearch.tsx",lineNumber:490,columnNumber:46},this)},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/OntologyWorkspace/OntologySearch.tsx",lineNumber:490,columnNumber:21},this),e[8]=a,e[9]=A):A=e[9];let D;e[10]!==m?(D=m&&o.jsxDEV("div",{style:io,children:[o.jsxDEV(oe,{size:16,color:"#ff9daf"},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/OntologyWorkspace/OntologySearch.tsx",lineNumber:500,columnNumber:44},this),o.jsxDEV("span",{style:{color:"#ff9daf",fontSize:12,marginTop:6},children:m},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/OntologyWorkspace/OntologySearch.tsx",lineNumber:500,columnNumber:85},this)]},void 0,!0,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/OntologyWorkspace/OntologySearch.tsx",lineNumber:500,columnNumber:19},this),e[10]=m,e[11]=D):D=e[11];let k;e[12]!==t||e[13]!==a?(k=t&&!a&&o.jsxDEV("div",{style:Un,children:[o.jsxDEV("div",{style:{marginBottom:14},children:[o.jsxDEV("div",{style:{display:"flex",alignItems:"center",gap:8,flexWrap:"wrap",marginBottom:4},children:[o.jsxDEV("h3",{style:{margin:0,color:"#fff0f2",fontSize:17,fontWeight:800,letterSpacing:"-0.03em"},children:t.label||t.uri.split("/").pop()},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/OntologyWorkspace/OntologySearch.tsx",lineNumber:520,columnNumber:12},this),o.jsxDEV(Eo,{entityType:t.entity_type},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/OntologyWorkspace/OntologySearch.tsx",lineNumber:526,columnNumber:64},this)]},void 0,!0,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/OntologyWorkspace/OntologySearch.tsx",lineNumber:514,columnNumber:10},this),o.jsxDEV("div",{style:{color:"#8f6d75",fontSize:10,fontFamily:"monospace",wordBreak:"break-all"},children:t.uri},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/OntologyWorkspace/OntologySearch.tsx",lineNumber:526,columnNumber:115},this)]},void 0,!0,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/OntologyWorkspace/OntologySearch.tsx",lineNumber:512,columnNumber:61},this),t.definition&&o.jsxDEV(We,{label:"Definition",children:o.jsxDEV("p",{style:{margin:0,color:"#f0cdd3",fontSize:13,lineHeight:1.6},children:t.definition},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/OntologyWorkspace/OntologySearch.tsx",lineNumber:531,columnNumber:92},this)},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/OntologyWorkspace/OntologySearch.tsx",lineNumber:531,columnNumber:58},this),t.instance_count>0&&o.jsxDEV(We,{label:"Instances",children:o.jsxDEV("span",{style:{color:"#9ee8d7",fontSize:14,fontWeight:800},children:t.instance_count.toLocaleString()},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/OntologyWorkspace/OntologySearch.tsx",lineNumber:536,columnNumber:115},this)},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/OntologyWorkspace/OntologySearch.tsx",lineNumber:536,columnNumber:82},this),o.jsxDEV(ke,{label:"Superclasses / Broader",items:t.superclasses},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/OntologyWorkspace/OntologySearch.tsx",lineNumber:540,columnNumber:76},this),o.jsxDEV(ke,{label:"Subclasses / Narrower",items:t.subclasses},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/OntologyWorkspace/OntologySearch.tsx",lineNumber:540,columnNumber:154},this),o.jsxDEV(ke,{label:"Domain",items:t.domain},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/OntologyWorkspace/OntologySearch.tsx",lineNumber:540,columnNumber:229},this),o.jsxDEV(ke,{label:"Range",items:t.range},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/OntologyWorkspace/OntologySearch.tsx",lineNumber:540,columnNumber:285},this),t.source_ontology&&o.jsxDEV(We,{label:"Source Ontology",children:o.jsxDEV("span",{style:{color:"#f0cdd3",fontSize:12,fontFamily:"monospace"},children:t.source_ontology},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/OntologyWorkspace/OntologySearch.tsx",lineNumber:540,columnNumber:405},this)},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/OntologyWorkspace/OntologySearch.tsx",lineNumber:540,columnNumber:366},this),o.jsxDEV("a",{href:t.uri,target:"_blank",rel:"noreferrer",style:Cn,children:[o.jsxDEV(No,{size:11},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/OntologyWorkspace/OntologySearch.tsx",lineNumber:544,columnNumber:135},this),"Open URI"]},void 0,!0,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/OntologyWorkspace/OntologySearch.tsx",lineNumber:544,columnNumber:60},this)]},void 0,!0,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/OntologyWorkspace/OntologySearch.tsx",lineNumber:512,columnNumber:32},this),e[12]=t,e[13]=a,e[14]=k):k=e[14];let v;return e[15]!==N||e[16]!==A||e[17]!==D||e[18]!==k?(v=o.jsxDEV("div",{style:Vn,children:[N,A,D,k]},void 0,!0,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/OntologyWorkspace/OntologySearch.tsx",lineNumber:553,columnNumber:10},this),e[15]=N,e[16]=A,e[17]=D,e[18]=k,e[19]=v):v=e[19],v}function We(l){const e=P.c(8);if(e[0]!=="e17457010105a98100704f4eec2e752ecb858e5778e0639220ca1b8ec3eb2769"){for(let m=0;m<8;m+=1)e[m]=Symbol.for("react.memo_cache_sentinel");e[0]="e17457010105a98100704f4eec2e752ecb858e5778e0639220ca1b8ec3eb2769"}const{label:s,children:n}=l;let t;e[1]===Symbol.for("react.memo_cache_sentinel")?(t={paddingTop:10,borderTop:"1px solid rgba(255,255,255,0.05)",marginTop:10},e[1]=t):t=e[1];let r;e[2]===Symbol.for("react.memo_cache_sentinel")?(r={color:"#9c7a82",fontSize:10,fontWeight:700,textTransform:"uppercase",letterSpacing:"0.07em",marginBottom:5},e[2]=r):r=e[2];let a;e[3]!==s?(a=o.jsxDEV("div",{style:r,children:s},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/OntologyWorkspace/OntologySearch.tsx",lineNumber:603,columnNumber:10},this),e[3]=s,e[4]=a):a=e[4];let c;return e[5]!==n||e[6]!==a?(c=o.jsxDEV("div",{style:t,children:[a,n]},void 0,!0,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/OntologyWorkspace/OntologySearch.tsx",lineNumber:611,columnNumber:10},this),e[5]=n,e[6]=a,e[7]=c):c=e[7],c}function Sn(){const[l,e]=i.useState(""),[s,n]=i.useState("all"),[t,r]=i.useState([]),[a,c]=i.useState(!1),[m,p]=i.useState(null),u=i.useRef(null),g=async(d,f)=>{if(!d.trim()){r([]);return}c(!0);try{const h=new URLSearchParams({q:d.trim(),limit:"80"});f!=="all"&&h.set("entity_type",f);const S=await fetch(`/api/ontology/search?${h}`);if(!S.ok)throw new Error("Search failed");r(await S.json())}catch{r([])}finally{c(!1)}};return i.useEffect(()=>(u.current&&clearTimeout(u.current),u.current=setTimeout(()=>g(l,s),320),()=>{u.current&&clearTimeout(u.current)}),[l,s]),o.jsxDEV("div",{style:Nn,children:[o.jsxDEV("div",{style:kn,children:[o.jsxDEV("div",{style:An,children:[o.jsxDEV(he,{size:14,color:"#9c7a82"},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/OntologyWorkspace/OntologySearch.tsx",lineNumber:664,columnNumber:11},this),o.jsxDEV("input",{autoFocus:!0,value:l,onChange:d=>e(d.target.value),placeholder:"Search classes, properties, concepts…",style:Dn},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/OntologyWorkspace/OntologySearch.tsx",lineNumber:665,columnNumber:11},this),a&&o.jsxDEV(Y,{size:13,color:"#ff2d4b",style:{animation:"spin 0.8s linear infinite",flexShrink:0}},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/OntologyWorkspace/OntologySearch.tsx",lineNumber:666,columnNumber:25},this),l&&!a&&o.jsxDEV("button",{onClick:()=>{e(""),r([])},style:Hn,children:o.jsxDEV(le,{size:12},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/OntologyWorkspace/OntologySearch.tsx",lineNumber:674,columnNumber:15},this)},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/OntologyWorkspace/OntologySearch.tsx",lineNumber:670,columnNumber:35},this)]},void 0,!0,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/OntologyWorkspace/OntologySearch.tsx",lineNumber:663,columnNumber:9},this),o.jsxDEV("div",{style:jn,children:["all","class","property","individual","concept","scheme"].map(d=>o.jsxDEV("button",{onClick:()=>n(d),style:{...vn,...s===d?wn:On},children:d==="all"?"All":Lo[d]||d},d,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/OntologyWorkspace/OntologySearch.tsx",lineNumber:679,columnNumber:96},this))},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/OntologyWorkspace/OntologySearch.tsx",lineNumber:678,columnNumber:9},this)]},void 0,!0,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/OntologyWorkspace/OntologySearch.tsx",lineNumber:662,columnNumber:7},this),o.jsxDEV("div",{style:Ln,children:[o.jsxDEV("div",{style:En,children:[!l&&o.jsxDEV("div",{style:co,children:[o.jsxDEV(he,{size:20,color:"rgba(255,45,75,0.2)"},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/OntologyWorkspace/OntologySearch.tsx",lineNumber:692,columnNumber:15},this),o.jsxDEV("span",{style:{color:"#9c7a82",fontSize:12,marginTop:8},children:"Type to search across all loaded ontologies"},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/OntologyWorkspace/OntologySearch.tsx",lineNumber:693,columnNumber:15},this)]},void 0,!0,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/OntologyWorkspace/OntologySearch.tsx",lineNumber:691,columnNumber:22},this),l&&t.length===0&&!a&&o.jsxDEV("div",{style:co,children:o.jsxDEV("span",{style:{color:"#9c7a82",fontSize:12},children:['No results for "',l,'"']},void 0,!0,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/OntologyWorkspace/OntologySearch.tsx",lineNumber:703,columnNumber:15},this)},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/OntologyWorkspace/OntologySearch.tsx",lineNumber:702,columnNumber:59},this),t.length>0&&o.jsxDEV("div",{style:{padding:"10px 12px",display:"flex",flexDirection:"column",gap:6},children:[o.jsxDEV("div",{style:{color:"#9c7a82",fontSize:11,fontWeight:700,marginBottom:2},children:[t.length," result",t.length!==1?"s":""]},void 0,!0,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/OntologyWorkspace/OntologySearch.tsx",lineNumber:715,columnNumber:15},this),t.map(d=>o.jsxDEV(gn,{result:d,selected:m===d.uri,onSelect:()=>p(f=>f===d.uri?null:d.uri)},d.uri,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/OntologyWorkspace/OntologySearch.tsx",lineNumber:723,columnNumber:33},this))]},void 0,!0,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/OntologyWorkspace/OntologySearch.tsx",lineNumber:709,columnNumber:34},this)]},void 0,!0,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/OntologyWorkspace/OntologySearch.tsx",lineNumber:690,columnNumber:9},this),m&&o.jsxDEV(xn,{uri:m,onClose:()=>p(null)},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/OntologyWorkspace/OntologySearch.tsx",lineNumber:727,columnNumber:25},this)]},void 0,!0,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/OntologyWorkspace/OntologySearch.tsx",lineNumber:689,columnNumber:7},this)]},void 0,!0,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/OntologyWorkspace/OntologySearch.tsx",lineNumber:660,columnNumber:10},this)}const Nn={display:"flex",flexDirection:"column",height:"100%",overflow:"hidden"},kn={padding:"12px 14px 10px",borderBottom:"1px solid rgba(255,107,129,0.08)",display:"flex",flexDirection:"column",gap:8,flexShrink:0},An={display:"flex",alignItems:"center",gap:8,padding:"7px 12px",borderRadius:10,border:"1px solid rgba(255,107,129,0.14)",background:"rgba(0,0,0,0.24)"},Dn={flex:1,background:"transparent",border:"none",outline:"none",color:"#fff0f2",fontSize:13},Hn={background:"transparent",border:"none",color:"#9c7a82",cursor:"pointer",padding:2,display:"grid",placeItems:"center"},jn={display:"flex",gap:5,flexWrap:"wrap"},vn={padding:"4px 10px",borderRadius:999,border:"1px solid transparent",fontSize:11,fontWeight:600,cursor:"pointer",transition:"160ms ease"},On={background:"transparent",color:"#c99aa3",borderColor:"rgba(255,107,129,0.1)"},wn={background:"rgba(255,45,75,0.14)",color:"#fff0f2",borderColor:"rgba(255,107,129,0.26)"},Ln={flex:1,minHeight:0,display:"flex",overflow:"hidden"},En={flex:1,overflowY:"auto",minWidth:0},co={display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",height:"100%",padding:32},Vn={width:320,flexShrink:0,display:"flex",flexDirection:"column",borderLeft:"1px solid rgba(255,107,129,0.1)",background:"rgba(6,3,5,0.5)",overflow:"hidden"},In={display:"flex",alignItems:"center",justifyContent:"space-between",padding:"12px 14px",borderBottom:"1px solid rgba(255,107,129,0.08)",flexShrink:0},Wn={background:"transparent",border:"none",color:"#c99aa3",cursor:"pointer",padding:2,display:"grid",placeItems:"center"},Un={flex:1,overflowY:"auto",padding:"14px",display:"flex",flexDirection:"column",gap:0},io={display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",height:"100%",padding:24},Tn={display:"flex",alignItems:"center",gap:5,background:"transparent",border:"none",color:"#c99aa3",fontSize:12,fontWeight:600,cursor:"pointer",padding:"6px 0",width:"100%",textAlign:"left"},Cn={display:"inline-flex",alignItems:"center",gap:5,marginTop:14,color:"#ff2d4b",fontSize:11,textDecoration:"none"};function Vo(l){return l.reduce((e,s)=>e+1+Vo(s.children??[]),0)}function _n(l){const e=P.c(3);if(e[0]!=="14b503ffcfe342d0de2744810af640ce910bc902fc67bd8f74a1f251b920c0c8"){for(let t=0;t<3;t+=1)e[t]=Symbol.for("react.memo_cache_sentinel");e[0]="14b503ffcfe342d0de2744810af640ce910bc902fc67bd8f74a1f251b920c0c8"}const{label:s}=l;let n;return e[1]!==s?(n=o.jsxDEV("span",{style:Wo,children:s},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/OntologyWorkspace/SKOSVocabularyManager.tsx",lineNumber:53,columnNumber:10},this),e[1]=s,e[2]=n):n=e[2],n}function Mn(l){const e=P.c(7);if(e[0]!=="14b503ffcfe342d0de2744810af640ce910bc902fc67bd8f74a1f251b920c0c8"){for(let m=0;m<7;m+=1)e[m]=Symbol.for("react.memo_cache_sentinel");e[0]="14b503ffcfe342d0de2744810af640ce910bc902fc67bd8f74a1f251b920c0c8"}const{uri:s}=l;let n;e[1]!==s?(n=s.includes("#")?s.split("#").pop():s.split("/").pop(),e[1]=s,e[2]=n):n=e[2];const t=n;let r;e[3]===Symbol.for("react.memo_cache_sentinel")?(r={color:"#ff2d4b",fontSize:11,fontFamily:"monospace",cursor:"help"},e[3]=r):r=e[3];const a=t||s;let c;return e[4]!==a||e[5]!==s?(c=o.jsxDEV("span",{title:s,style:r,children:a},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/OntologyWorkspace/SKOSVocabularyManager.tsx",lineNumber:96,columnNumber:10},this),e[4]=a,e[5]=s,e[6]=c):c=e[6],c}function zn(l){const e=P.c(24);if(e[0]!=="14b503ffcfe342d0de2744810af640ce910bc902fc67bd8f74a1f251b920c0c8"){for(let O=0;O<24;O+=1)e[O]=Symbol.for("react.memo_cache_sentinel");e[0]="14b503ffcfe342d0de2744810af640ce910bc902fc67bd8f74a1f251b920c0c8"}const{uri:s,onClose:n,onNavigate:t}=l,[r,a]=i.useState(null),[c,m]=i.useState(!0),[p,u]=i.useState(""),[g,d]=i.useState(s);s!==g&&(d(s),m(!0),u(""),a(null));let f,h;e[1]!==s?(f=()=>{let O=!1;return fetch(`/api/ontology/skos/concept/${encodeURIComponent(s)}`).then(async L=>{if(!L.ok)throw new Error("Concept not found");const T=await L.json();return L.status===207&&u(T.message||"Warning: Partial success loading concept."),T}).then(L=>{O||a(L)}).catch(L=>{O||u(L.message)}).finally(()=>{O||m(!1)}),()=>{O=!0}},h=[s],e[1]=s,e[2]=f,e[3]=h):(f=e[2],h=e[3]),i.useEffect(f,h);let S;e[4]!==t?(S=(O,L)=>L.length?o.jsxDEV(ue,{label:O,children:o.jsxDEV("div",{style:{display:"flex",flexDirection:"column",gap:4},children:L.map(T=>o.jsxDEV("button",{onClick:()=>t(T),style:tt,children:[o.jsxDEV(Oe,{size:10},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/OntologyWorkspace/SKOSVocabularyManager.tsx",lineNumber:178,columnNumber:94},this),o.jsxDEV(Mn,{uri:T},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/OntologyWorkspace/SKOSVocabularyManager.tsx",lineNumber:178,columnNumber:120},this)]},T,!0,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/OntologyWorkspace/SKOSVocabularyManager.tsx",lineNumber:178,columnNumber:27},this))},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/OntologyWorkspace/SKOSVocabularyManager.tsx",lineNumber:174,columnNumber:41},this)},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/OntologyWorkspace/SKOSVocabularyManager.tsx",lineNumber:174,columnNumber:14},this):null,e[4]=t,e[5]=S):S=e[5];const N=S;let A;e[6]===Symbol.for("react.memo_cache_sentinel")?(A=o.jsxDEV("div",{style:{display:"flex",alignItems:"center",gap:8},children:[o.jsxDEV(we,{size:13,color:"#9ee8d7"},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/OntologyWorkspace/SKOSVocabularyManager.tsx",lineNumber:192,columnNumber:8},this),o.jsxDEV("span",{style:{color:"#fff0f2",fontSize:13,fontWeight:700},children:"Concept Detail"},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/OntologyWorkspace/SKOSVocabularyManager.tsx",lineNumber:192,columnNumber:46},this)]},void 0,!0,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/OntologyWorkspace/SKOSVocabularyManager.tsx",lineNumber:188,columnNumber:10},this),e[6]=A):A=e[6];let D;e[7]===Symbol.for("react.memo_cache_sentinel")?(D=o.jsxDEV(le,{size:14},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/OntologyWorkspace/SKOSVocabularyManager.tsx",lineNumber:203,columnNumber:10},this),e[7]=D):D=e[7];let k;e[8]!==n?(k=o.jsxDEV("div",{style:et,children:[A,o.jsxDEV("button",{onClick:n,style:Uo,children:D},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/OntologyWorkspace/SKOSVocabularyManager.tsx",lineNumber:210,columnNumber:45},this)]},void 0,!0,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/OntologyWorkspace/SKOSVocabularyManager.tsx",lineNumber:210,columnNumber:10},this),e[8]=n,e[9]=k):k=e[9];let v;e[10]!==c?(v=c&&o.jsxDEV("div",{style:be,children:o.jsxDEV(Y,{size:18,color:"#ff2d4b",style:{animation:"spin 1s linear infinite"}},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/OntologyWorkspace/SKOSVocabularyManager.tsx",lineNumber:218,columnNumber:46},this)},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/OntologyWorkspace/SKOSVocabularyManager.tsx",lineNumber:218,columnNumber:21},this),e[10]=c,e[11]=v):v=e[11];let V;e[12]!==p?(V=p&&o.jsxDEV("div",{style:be,children:[o.jsxDEV(oe,{size:16,color:"#ff9daf"},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/OntologyWorkspace/SKOSVocabularyManager.tsx",lineNumber:228,columnNumber:44},this),o.jsxDEV("span",{style:{color:"#ff9daf",fontSize:12,marginTop:6},children:p},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/OntologyWorkspace/SKOSVocabularyManager.tsx",lineNumber:228,columnNumber:85},this)]},void 0,!0,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/OntologyWorkspace/SKOSVocabularyManager.tsx",lineNumber:228,columnNumber:19},this),e[12]=p,e[13]=V):V=e[13];let W;e[14]!==r||e[15]!==c||e[16]!==N||e[17]!==s?(W=r&&!c&&o.jsxDEV("div",{style:ot,children:[o.jsxDEV("div",{style:{marginBottom:14},children:[o.jsxDEV("h3",{style:{margin:"0 0 4px",color:"#fff0f2",fontSize:17,fontWeight:800,letterSpacing:"-0.03em"},children:r.pref_label},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/OntologyWorkspace/SKOSVocabularyManager.tsx",lineNumber:242,columnNumber:10},this),r.alt_labels.length>0&&o.jsxDEV("div",{style:{display:"flex",flexWrap:"wrap",gap:4,marginBottom:6},children:r.alt_labels.map($n)},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/OntologyWorkspace/SKOSVocabularyManager.tsx",lineNumber:248,columnNumber:69},this),r.hidden_labels.length>0&&o.jsxDEV("div",{style:{display:"flex",flexWrap:"wrap",gap:4,marginBottom:6},children:r.hidden_labels.map(Rn)},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/OntologyWorkspace/SKOSVocabularyManager.tsx",lineNumber:253,columnNumber:85},this),o.jsxDEV("div",{style:{color:"#8f6d75",fontSize:10,fontFamily:"monospace",wordBreak:"break-all"},children:s},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/OntologyWorkspace/SKOSVocabularyManager.tsx",lineNumber:258,columnNumber:53},this)]},void 0,!0,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/OntologyWorkspace/SKOSVocabularyManager.tsx",lineNumber:240,columnNumber:61},this),r.definition&&o.jsxDEV(ue,{label:"Definition",children:o.jsxDEV("p",{style:{margin:0,color:"#f0cdd3",fontSize:13,lineHeight:1.6},children:r.definition},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/OntologyWorkspace/SKOSVocabularyManager.tsx",lineNumber:263,columnNumber:83},this)},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/OntologyWorkspace/SKOSVocabularyManager.tsx",lineNumber:263,columnNumber:51},this),r.scope_note&&o.jsxDEV(ue,{label:"Scope Note",children:o.jsxDEV("p",{style:{margin:0,color:"#c99aa3",fontSize:12,lineHeight:1.5},children:r.scope_note},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/OntologyWorkspace/SKOSVocabularyManager.tsx",lineNumber:268,columnNumber:104},this)},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/OntologyWorkspace/SKOSVocabularyManager.tsx",lineNumber:268,columnNumber:72},this),r.editorial_note&&o.jsxDEV(ue,{label:"Editorial Note",children:o.jsxDEV("p",{style:{margin:0,color:"#c99aa3",fontSize:12,lineHeight:1.5},children:r.editorial_note},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/OntologyWorkspace/SKOSVocabularyManager.tsx",lineNumber:273,columnNumber:112},this)},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/OntologyWorkspace/SKOSVocabularyManager.tsx",lineNumber:273,columnNumber:76},this),N("Broader",r.broader),N("Narrower",r.narrower),N("Related",r.related),N("Exact Match",r.exact_match),N("Close Match",r.close_match),N("Broad Match",r.broad_match),N("Narrow Match",r.narrow_match),r.scheme_uri&&o.jsxDEV(ue,{label:"Concept Scheme",children:o.jsxDEV("span",{style:{color:"#f0cdd3",fontSize:11,fontFamily:"monospace",wordBreak:"break-all"},children:r.scheme_uri},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/OntologyWorkspace/SKOSVocabularyManager.tsx",lineNumber:278,columnNumber:442},this)},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/OntologyWorkspace/SKOSVocabularyManager.tsx",lineNumber:278,columnNumber:406},this)]},void 0,!0,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/OntologyWorkspace/SKOSVocabularyManager.tsx",lineNumber:240,columnNumber:32},this),e[14]=r,e[15]=c,e[16]=N,e[17]=s,e[18]=W):W=e[18];let U;return e[19]!==k||e[20]!==v||e[21]!==V||e[22]!==W?(U=o.jsxDEV("div",{style:Zn,children:[k,v,V,W]},void 0,!0,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/OntologyWorkspace/SKOSVocabularyManager.tsx",lineNumber:294,columnNumber:11},this),e[19]=k,e[20]=v,e[21]=V,e[22]=W,e[23]=U):U=e[23],U}function Rn(l){return o.jsxDEV("span",{style:{...Wo,opacity:.5,fontStyle:"italic"},children:l},l,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/OntologyWorkspace/SKOSVocabularyManager.tsx",lineNumber:306,columnNumber:10},this)}function $n(l){return o.jsxDEV(_n,{label:l},l,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/OntologyWorkspace/SKOSVocabularyManager.tsx",lineNumber:313,columnNumber:10},this)}function ue(l){const e=P.c(8);if(e[0]!=="14b503ffcfe342d0de2744810af640ce910bc902fc67bd8f74a1f251b920c0c8"){for(let m=0;m<8;m+=1)e[m]=Symbol.for("react.memo_cache_sentinel");e[0]="14b503ffcfe342d0de2744810af640ce910bc902fc67bd8f74a1f251b920c0c8"}const{label:s,children:n}=l;let t;e[1]===Symbol.for("react.memo_cache_sentinel")?(t={paddingTop:10,borderTop:"1px solid rgba(255,255,255,0.05)",marginTop:10},e[1]=t):t=e[1];let r;e[2]===Symbol.for("react.memo_cache_sentinel")?(r={color:"#9c7a82",fontSize:10,fontWeight:700,textTransform:"uppercase",letterSpacing:"0.07em",marginBottom:5},e[2]=r):r=e[2];let a;e[3]!==s?(a=o.jsxDEV("div",{style:r,children:s},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/OntologyWorkspace/SKOSVocabularyManager.tsx",lineNumber:354,columnNumber:10},this),e[3]=s,e[4]=a):a=e[4];let c;return e[5]!==n||e[6]!==a?(c=o.jsxDEV("div",{style:t,children:[a,n]},void 0,!0,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/OntologyWorkspace/SKOSVocabularyManager.tsx",lineNumber:362,columnNumber:10},this),e[5]=n,e[6]=a,e[7]=c):c=e[7],c}function Io(l){const e=P.c(43);if(e[0]!=="14b503ffcfe342d0de2744810af640ce910bc902fc67bd8f74a1f251b920c0c8"){for(let j=0;j<43;j+=1)e[j]=Symbol.for("react.memo_cache_sentinel");e[0]="14b503ffcfe342d0de2744810af640ce910bc902fc67bd8f74a1f251b920c0c8"}const{concept:s,depth:n,selectedUri:t,onSelect:r}=l,[a,c]=i.useState(n===0);let m;e[1]!==s.children?(m=s.children??[],e[1]=s.children,e[2]=m):m=e[2];const p=m,u=p.length>0,g=t===s.uri,d=10+n*14,f=g?"rgba(255,45,75,0.12)":"transparent";let h;e[3]!==d||e[4]!==f?(h={display:"flex",alignItems:"center",gap:4,paddingLeft:d,paddingRight:10,paddingTop:5,paddingBottom:5,borderRadius:7,cursor:"pointer",background:f,transition:"120ms ease"},e[3]=d,e[4]=f,e[5]=h):h=e[5];let S,N;e[6]!==g?(S=j=>{g||(j.currentTarget.style.background="rgba(255,45,75,0.06)")},N=j=>{g||(j.currentTarget.style.background="transparent")},e[6]=g,e[7]=S,e[8]=N):(S=e[7],N=e[8]);let A;e[9]!==a||e[10]!==u?(A=u?o.jsxDEV("button",{onClick:j=>{j.stopPropagation(),c(Bn)},style:nt,children:a?o.jsxDEV(ve,{size:11},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/OntologyWorkspace/SKOSVocabularyManager.tsx",lineNumber:450,columnNumber:43},this):o.jsxDEV(Oe,{size:11},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/OntologyWorkspace/SKOSVocabularyManager.tsx",lineNumber:450,columnNumber:71},this)},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/OntologyWorkspace/SKOSVocabularyManager.tsx",lineNumber:447,columnNumber:24},this):o.jsxDEV("span",{style:{width:18,display:"inline-block",flexShrink:0}},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/OntologyWorkspace/SKOSVocabularyManager.tsx",lineNumber:450,columnNumber:110},this),e[9]=a,e[10]=u,e[11]=A):A=e[11];let D;e[12]!==s.uri||e[13]!==r?(D=()=>r(s.uri),e[12]=s.uri,e[13]=r,e[14]=D):D=e[14];const k=g?"#fff0f2":n===0?"#f0cdd3":"#c99aa3",v=n===0?13:12,V=n===0?600:400;let W;e[15]!==v||e[16]!==V||e[17]!==k?(W={flex:1,overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",color:k,fontSize:v,fontWeight:V},e[15]=v,e[16]=V,e[17]=k,e[18]=W):W=e[18];const U=s.pref_label||s.uri;let O;e[19]!==W||e[20]!==U||e[21]!==D?(O=o.jsxDEV("span",{onClick:D,style:W,children:U},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/OntologyWorkspace/SKOSVocabularyManager.tsx",lineNumber:494,columnNumber:11},this),e[19]=W,e[20]=U,e[21]=D,e[22]=O):O=e[22];let L;e[23]!==p.length||e[24]!==u?(L=u&&o.jsxDEV("span",{style:{color:"#8f6d75",fontSize:10,flexShrink:0},children:p.length},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/OntologyWorkspace/SKOSVocabularyManager.tsx",lineNumber:504,columnNumber:26},this),e[23]=p.length,e[24]=u,e[25]=L):L=e[25];let T;e[26]!==O||e[27]!==L||e[28]!==h||e[29]!==S||e[30]!==N||e[31]!==A?(T=o.jsxDEV("div",{style:h,onMouseEnter:S,onMouseLeave:N,children:[A,O,L]},void 0,!0,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/OntologyWorkspace/SKOSVocabularyManager.tsx",lineNumber:517,columnNumber:11},this),e[26]=O,e[27]=L,e[28]=h,e[29]=S,e[30]=N,e[31]=A,e[32]=T):T=e[32];let b;e[33]!==p||e[34]!==n||e[35]!==a||e[36]!==u||e[37]!==r||e[38]!==t?(b=a&&u&&p.map(j=>o.jsxDEV(Io,{concept:j,depth:n+1,selectedUri:t,onSelect:r},j.uri,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/OntologyWorkspace/SKOSVocabularyManager.tsx",lineNumber:530,columnNumber:60},this)),e[33]=p,e[34]=n,e[35]=a,e[36]=u,e[37]=r,e[38]=t,e[39]=b):b=e[39];let w;return e[40]!==T||e[41]!==b?(w=o.jsxDEV(o.Fragment,{children:[T,b]},void 0,!0,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/OntologyWorkspace/SKOSVocabularyManager.tsx",lineNumber:543,columnNumber:11},this),e[40]=T,e[41]=b,e[42]=w):w=e[42],w}function Bn(l){return!l}function Pn(l){const e=P.c(34);if(e[0]!=="14b503ffcfe342d0de2744810af640ce910bc902fc67bd8f74a1f251b920c0c8"){for(let O=0;O<34;O+=1)e[O]=Symbol.for("react.memo_cache_sentinel");e[0]="14b503ffcfe342d0de2744810af640ce910bc902fc67bd8f74a1f251b920c0c8"}const{scheme:s,selectedUri:n,onSelectConcept:t,searchQuery:r}=l,[a,c]=i.useState(!0);let m;e[1]===Symbol.for("react.memo_cache_sentinel")?(m=[],e[1]=m):m=e[1];const[p,u]=i.useState(m),[g,d]=i.useState(a),[f,h]=i.useState(""),[S,N]=i.useState(a),[A,D]=i.useState(s.uri);(a!==S||s.uri!==A)&&(N(a),D(s.uri),a?(d(!0),h(""),u([])):d(!1));let k,v;e[2]!==a||e[3]!==s.uri?(k=()=>{let O=!1;if(a)return fetch(`/api/vocabulary/hierarchy?scheme=${encodeURIComponent(s.uri)}`).then(async L=>{if(!L.ok)throw new Error(`HTTP ${L.status}`);const T=await L.json();return L.status===207&&!O&&h(T.message||"Warning: Partial success loading hierarchy."),T}).then(L=>{O||u(L)}).catch(L=>{O||(u([]),h(L instanceof Error?L.message:"Failed to load hierarchy."))}).finally(()=>{O||d(!1)}),()=>{O=!0}},v=[s.uri,a],e[2]=a,e[3]=s.uri,e[4]=k,e[5]=v):(k=e[4],v=e[5]),i.useEffect(k,v);let V;e[6]!==p?(V=Vo(p),e[6]=p,e[7]=V):V=e[7];const W=V;let U;if(e[8]!==f||e[9]!==a||e[10]!==p||e[11]!==g||e[12]!==t||e[13]!==s.title||e[14]!==r||e[15]!==n||e[16]!==W){const O=(K,y)=>y?K.flatMap(B=>{const x=(B.pref_label+" "+(B.alt_labels?.join(" ")??"")+" "+(B.description??"")).toLowerCase().includes(y.toLowerCase()),E=O(B.children??[],y);return x||E.length>0?[{...B,children:E}]:[]}):K,L=O(p,r);let T;e[18]===Symbol.for("react.memo_cache_sentinel")?(T=()=>c(Fn),e[18]=T):T=e[18];let b;e[19]===Symbol.for("react.memo_cache_sentinel")?(b={display:"flex",alignItems:"center",gap:8},e[19]=b):b=e[19];let w;e[20]!==a?(w=a?o.jsxDEV(ve,{size:13,color:"#c99aa3"},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/OntologyWorkspace/SKOSVocabularyManager.tsx",lineNumber:690,columnNumber:23},this):o.jsxDEV(Oe,{size:13,color:"#c99aa3"},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/OntologyWorkspace/SKOSVocabularyManager.tsx",lineNumber:690,columnNumber:67},this),e[20]=a,e[21]=w):w=e[21];let j;e[22]===Symbol.for("react.memo_cache_sentinel")?(j={color:"#ffeaed",fontSize:14,fontWeight:700},e[22]=j):j=e[22];let _;e[23]!==s.title?(_=o.jsxDEV("span",{style:j,children:s.title},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/OntologyWorkspace/SKOSVocabularyManager.tsx",lineNumber:709,columnNumber:13},this),e[23]=s.title,e[24]=_):_=e[24];let $;e[25]!==_||e[26]!==w?($=o.jsxDEV("div",{style:b,children:[w,_]},void 0,!0,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/OntologyWorkspace/SKOSVocabularyManager.tsx",lineNumber:717,columnNumber:13},this),e[25]=_,e[26]=w,e[27]=$):$=e[27];let M;e[28]===Symbol.for("react.memo_cache_sentinel")?(M={color:"#9c7a82",fontSize:11},e[28]=M):M=e[28];const F=g?"…":`${W} concept${W!==1?"s":""}`;let q;e[29]!==F?(q=o.jsxDEV("span",{style:M,children:F},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/OntologyWorkspace/SKOSVocabularyManager.tsx",lineNumber:737,columnNumber:13},this),e[29]=F,e[30]=q):q=e[30];let J;e[31]!==$||e[32]!==q?(J=o.jsxDEV("button",{onClick:T,style:at,children:[$,q]},void 0,!0,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/OntologyWorkspace/SKOSVocabularyManager.tsx",lineNumber:745,columnNumber:13},this),e[31]=$,e[32]=q,e[33]=J):J=e[33],U=o.jsxDEV("div",{style:st,children:[J,a&&o.jsxDEV("div",{style:{paddingBottom:8},children:[f?o.jsxDEV("div",{style:To,children:f},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/OntologyWorkspace/SKOSVocabularyManager.tsx",lineNumber:754,columnNumber:19},this):null,g?o.jsxDEV("div",{style:{padding:"10px 20px",display:"flex",alignItems:"center",gap:8},children:[o.jsxDEV(Y,{size:12,color:"#ff2d4b",style:{animation:"spin 0.8s linear infinite"}},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/OntologyWorkspace/SKOSVocabularyManager.tsx",lineNumber:759,columnNumber:12},this),o.jsxDEV("span",{style:{color:"#9c7a82",fontSize:12},children:"Loading concepts…"},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/OntologyWorkspace/SKOSVocabularyManager.tsx",lineNumber:761,columnNumber:16},this)]},void 0,!0,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/OntologyWorkspace/SKOSVocabularyManager.tsx",lineNumber:754,columnNumber:75},this):L.length===0?o.jsxDEV("div",{style:{padding:"8px 24px",color:"#9c7a82",fontSize:12,fontStyle:"italic"},children:r?"No matching concepts":"No concepts in this scheme"},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/OntologyWorkspace/SKOSVocabularyManager.tsx",lineNumber:764,columnNumber:80},this):o.jsxDEV("div",{style:{paddingTop:2},children:L.map(K=>o.jsxDEV(Io,{concept:K,depth:0,selectedUri:n,onSelect:t},K.uri,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/OntologyWorkspace/SKOSVocabularyManager.tsx",lineNumber:771,columnNumber:46},this))},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/OntologyWorkspace/SKOSVocabularyManager.tsx",lineNumber:769,columnNumber:90},this)]},void 0,!0,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/OntologyWorkspace/SKOSVocabularyManager.tsx",lineNumber:752,columnNumber:58},this)]},void 0,!0,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/OntologyWorkspace/SKOSVocabularyManager.tsx",lineNumber:752,columnNumber:10},this),e[8]=f,e[9]=a,e[10]=p,e[11]=g,e[12]=t,e[13]=s.title,e[14]=r,e[15]=n,e[16]=W,e[17]=U}else U=e[17];return U}function Fn(l){return!l}function Kn(l){const e=P.c(44);if(e[0]!=="14b503ffcfe342d0de2744810af640ce910bc902fc67bd8f74a1f251b920c0c8"){for(let M=0;M<44;M+=1)e[M]=Symbol.for("react.memo_cache_sentinel");e[0]="14b503ffcfe342d0de2744810af640ce910bc902fc67bd8f74a1f251b920c0c8"}const{schemeUri:s}=l;let n;e[1]===Symbol.for("react.memo_cache_sentinel")?(n=[],e[1]=n):n=e[1];const[t,r]=i.useState(n),[a,c]=i.useState(!0),[m,p]=i.useState(""),[u,g]=i.useState(""),[d,f]=i.useState(null);let h,S;e[2]===Symbol.for("react.memo_cache_sentinel")?(h=()=>{fetch("/api/ontology/skos/schemes").then(async M=>{if(!M.ok)throw new Error(`Failed to load schemes (${M.status})`);const F=await M.json();return M.status===207&&p(F.message||"Warning: Partial success loading schemes."),F}).then(r).catch(M=>p(M.message)).finally(()=>c(!1))},S=[],e[2]=h,e[3]=S):(h=e[2],S=e[3]),i.useEffect(h,S);let N;e[4]!==s||e[5]!==t?(N=s?t.filter(M=>M.uri===s):t,e[4]=s,e[5]=t,e[6]=N):N=e[6];const A=N;let D;e[7]!==m?(D=m?o.jsxDEV("div",{style:To,children:m},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/OntologyWorkspace/SKOSVocabularyManager.tsx",lineNumber:855,columnNumber:18},this):null,e[7]=m,e[8]=D):D=e[8];let k;e[9]===Symbol.for("react.memo_cache_sentinel")?(k=o.jsxDEV(he,{size:13,color:"#9c7a82"},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/OntologyWorkspace/SKOSVocabularyManager.tsx",lineNumber:863,columnNumber:10},this),e[9]=k):k=e[9];let v;e[10]===Symbol.for("react.memo_cache_sentinel")?(v=M=>g(M.target.value),e[10]=v):v=e[10];let V,W;e[11]!==u?(V=o.jsxDEV("input",{value:u,onChange:v,placeholder:"Search labels and definitions…",style:Yn},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/OntologyWorkspace/SKOSVocabularyManager.tsx",lineNumber:878,columnNumber:10},this),W=u&&o.jsxDEV("button",{onClick:()=>g(""),style:Uo,children:o.jsxDEV(le,{size:11},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/OntologyWorkspace/SKOSVocabularyManager.tsx",lineNumber:879,columnNumber:81},this)},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/OntologyWorkspace/SKOSVocabularyManager.tsx",lineNumber:879,columnNumber:21},this),e[11]=u,e[12]=V,e[13]=W):(V=e[12],W=e[13]);let U;e[14]!==V||e[15]!==W?(U=o.jsxDEV("div",{style:Jn,children:o.jsxDEV("div",{style:Gn,children:[k,V,W]},void 0,!0,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/OntologyWorkspace/SKOSVocabularyManager.tsx",lineNumber:889,columnNumber:41},this)},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/OntologyWorkspace/SKOSVocabularyManager.tsx",lineNumber:889,columnNumber:11},this),e[14]=V,e[15]=W,e[16]=U):U=e[16];let O;e[17]!==a?(O=a&&o.jsxDEV("div",{style:be,children:o.jsxDEV(Y,{size:18,color:"#ff2d4b",style:{animation:"spin 1s linear infinite"}},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/OntologyWorkspace/SKOSVocabularyManager.tsx",lineNumber:898,columnNumber:47},this)},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/OntologyWorkspace/SKOSVocabularyManager.tsx",lineNumber:898,columnNumber:22},this),e[17]=a,e[18]=O):O=e[18];let L;e[19]!==m?(L=m&&o.jsxDEV("div",{style:be,children:[o.jsxDEV(oe,{size:16,color:"#ff9daf"},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/OntologyWorkspace/SKOSVocabularyManager.tsx",lineNumber:908,columnNumber:45},this),o.jsxDEV("span",{style:{color:"#ff9daf",fontSize:12,marginTop:6},children:m},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/OntologyWorkspace/SKOSVocabularyManager.tsx",lineNumber:908,columnNumber:86},this)]},void 0,!0,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/OntologyWorkspace/SKOSVocabularyManager.tsx",lineNumber:908,columnNumber:20},this),e[19]=m,e[20]=L):L=e[20];let T;e[21]!==A||e[22]!==m||e[23]!==a?(T=!a&&!m&&A.length===0&&o.jsxDEV("div",{style:{...be,textAlign:"center",padding:28},children:[o.jsxDEV(we,{size:28,color:"rgba(158,232,215,0.15)"},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/OntologyWorkspace/SKOSVocabularyManager.tsx",lineNumber:924,columnNumber:8},this),o.jsxDEV("span",{style:{color:"#c99aa3",fontSize:12,marginTop:10},children:"No SKOS concept schemes found"},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/OntologyWorkspace/SKOSVocabularyManager.tsx",lineNumber:924,columnNumber:61},this),o.jsxDEV("span",{style:{color:"#9c7a82",fontSize:11,marginTop:4,maxWidth:220},children:"Import a SKOS vocabulary to browse concepts here"},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/OntologyWorkspace/SKOSVocabularyManager.tsx",lineNumber:928,columnNumber:46},this)]},void 0,!0,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/OntologyWorkspace/SKOSVocabularyManager.tsx",lineNumber:920,columnNumber:66},this),e[21]=A,e[22]=m,e[23]=a,e[24]=T):T=e[24];let b;e[25]!==A||e[26]!==a||e[27]!==u||e[28]!==d?(b=!a&&A.map(M=>o.jsxDEV(Pn,{scheme:M,selectedUri:d,onSelectConcept:f,searchQuery:u},M.uri,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/OntologyWorkspace/SKOSVocabularyManager.tsx",lineNumber:943,columnNumber:54},this)),e[25]=A,e[26]=a,e[27]=u,e[28]=d,e[29]=b):b=e[29];let w;e[30]!==O||e[31]!==L||e[32]!==T||e[33]!==b?(w=o.jsxDEV("div",{style:Xn,children:[O,L,T,b]},void 0,!0,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/OntologyWorkspace/SKOSVocabularyManager.tsx",lineNumber:954,columnNumber:11},this),e[30]=O,e[31]=L,e[32]=T,e[33]=b,e[34]=w):w=e[34];let j;e[35]!==d?(j=d&&o.jsxDEV(zn,{uri:d,onClose:()=>f(null),onNavigate:f},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/OntologyWorkspace/SKOSVocabularyManager.tsx",lineNumber:965,columnNumber:26},this),e[35]=d,e[36]=j):j=e[36];let _;e[37]!==w||e[38]!==j?(_=o.jsxDEV("div",{style:Qn,children:[w,j]},void 0,!0,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/OntologyWorkspace/SKOSVocabularyManager.tsx",lineNumber:973,columnNumber:11},this),e[37]=w,e[38]=j,e[39]=_):_=e[39];let $;return e[40]!==U||e[41]!==_||e[42]!==D?($=o.jsxDEV("div",{style:qn,children:[D,U,_]},void 0,!0,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/OntologyWorkspace/SKOSVocabularyManager.tsx",lineNumber:982,columnNumber:11},this),e[40]=U,e[41]=_,e[42]=D,e[43]=$):$=e[43],$}const qn={display:"flex",flexDirection:"column",height:"100%",overflow:"hidden"},Jn={padding:"10px 12px",borderBottom:"1px solid rgba(255,107,129,0.08)",flexShrink:0},Gn={display:"flex",alignItems:"center",gap:7,padding:"6px 10px",borderRadius:8,border:"1px solid rgba(255,107,129,0.12)",background:"rgba(0,0,0,0.22)"},Yn={flex:1,background:"transparent",border:"none",outline:"none",color:"#fff0f2",fontSize:12},Qn={flex:1,minHeight:0,display:"flex",overflow:"hidden"},Xn={flex:1,overflowY:"auto",padding:"8px 6px"},Zn={width:300,flexShrink:0,display:"flex",flexDirection:"column",borderLeft:"1px solid rgba(255,107,129,0.1)",background:"rgba(6,3,5,0.5)",overflow:"hidden"},et={display:"flex",alignItems:"center",justifyContent:"space-between",padding:"12px 14px",borderBottom:"1px solid rgba(255,107,129,0.08)",flexShrink:0},ot={flex:1,overflowY:"auto",padding:"14px"},st={borderRadius:10,border:"1px solid rgba(255,107,129,0.1)",background:"rgba(255,255,255,0.02)",overflow:"hidden",marginBottom:8},at={width:"100%",display:"flex",alignItems:"center",justifyContent:"space-between",padding:"10px 12px",background:"transparent",border:"none",cursor:"pointer",borderBottom:"1px solid rgba(255,255,255,0.05)"},nt={background:"transparent",border:"none",color:"#c99aa3",cursor:"pointer",padding:0,display:"flex",alignItems:"center",flexShrink:0,width:18},Wo={padding:"2px 8px",borderRadius:999,background:"rgba(255,255,255,0.05)",border:"1px solid rgba(255,255,255,0.08)",color:"#c99aa3",fontSize:11},Uo={background:"transparent",border:"none",color:"#c99aa3",cursor:"pointer",padding:2,display:"grid",placeItems:"center"},tt={display:"inline-flex",alignItems:"center",gap:5,background:"transparent",border:"none",cursor:"pointer",padding:"2px 0",textAlign:"left"},To={padding:12,borderRadius:14,color:"#ffb4c2",background:"rgba(255,157,175,0.1)",border:"1px solid rgba(255,157,175,0.18)",margin:"0 10px 10px 10px",fontSize:12},be={display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",height:"100%",padding:24},rt={published:"#4cc38a",draft:"#ff7a45",external:"#ff2d4b"},mo={turtle:"#9ee8d7",xml:"#ff9daf","json-ld":"#ff7a45",nt:"#d2a8ff",unknown:"#9c7a82"};function lt(l){const e=P.c(8);if(e[0]!=="d80fc804df8f297bc115bf30fd6379670c84b4b4632c52358ff04c28fbb939d6"){for(let m=0;m<8;m+=1)e[m]=Symbol.for("react.memo_cache_sentinel");e[0]="d80fc804df8f297bc115bf30fd6379670c84b4b4632c52358ff04c28fbb939d6"}const{status:s}=l,n=rt[s]||"#9c7a82",t=`${n}18`,r=`1px solid ${n}33`;let a;e[1]!==n||e[2]!==t||e[3]!==r?(a={padding:"2px 7px",borderRadius:999,fontSize:10,fontWeight:700,letterSpacing:"0.07em",textTransform:"uppercase",background:t,border:r,color:n},e[1]=n,e[2]=t,e[3]=r,e[4]=a):a=e[4];let c;return e[5]!==s||e[6]!==a?(c=o.jsxDEV("span",{style:a,children:s},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/OntologyWorkspace/OntologyManager.tsx",lineNumber:71,columnNumber:10},this),e[5]=s,e[6]=a,e[7]=c):c=e[7],c}function ct(l){const e=P.c(8);if(e[0]!=="d80fc804df8f297bc115bf30fd6379670c84b4b4632c52358ff04c28fbb939d6"){for(let m=0;m<8;m+=1)e[m]=Symbol.for("react.memo_cache_sentinel");e[0]="d80fc804df8f297bc115bf30fd6379670c84b4b4632c52358ff04c28fbb939d6"}const{format:s}=l,n=mo[s]||mo.unknown,t=`${n}14`,r=`1px solid ${n}28`;let a;e[1]!==n||e[2]!==t||e[3]!==r?(a={padding:"2px 7px",borderRadius:999,fontSize:10,fontWeight:700,background:t,border:r,color:n},e[1]=n,e[2]=t,e[3]=r,e[4]=a):a=e[4];let c;return e[5]!==s||e[6]!==a?(c=o.jsxDEV("span",{style:a,children:s},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/OntologyWorkspace/OntologyManager.tsx",lineNumber:114,columnNumber:10},this),e[5]=s,e[6]=a,e[7]=c):c=e[7],c}function Ue(l){const e=P.c(13);if(e[0]!=="d80fc804df8f297bc115bf30fd6379670c84b4b4632c52358ff04c28fbb939d6"){for(let g=0;g<13;g+=1)e[g]=Symbol.for("react.memo_cache_sentinel");e[0]="d80fc804df8f297bc115bf30fd6379670c84b4b4632c52358ff04c28fbb939d6"}const{value:s,label:n}=l;let t,r;e[1]===Symbol.for("react.memo_cache_sentinel")?(t={display:"flex",flexDirection:"column",alignItems:"center",gap:1},r={color:"#fff0f2",fontSize:14,fontWeight:800},e[1]=t,e[2]=r):(t=e[1],r=e[2]);let a;e[3]!==s?(a=s.toLocaleString(),e[3]=s,e[4]=a):a=e[4];let c;e[5]!==a?(c=o.jsxDEV("span",{style:r,children:a},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/OntologyWorkspace/OntologyManager.tsx",lineNumber:165,columnNumber:10},this),e[5]=a,e[6]=c):c=e[6];let m;e[7]===Symbol.for("react.memo_cache_sentinel")?(m={color:"#9c7a82",fontSize:10},e[7]=m):m=e[7];let p;e[8]!==n?(p=o.jsxDEV("span",{style:m,children:n},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/OntologyWorkspace/OntologyManager.tsx",lineNumber:183,columnNumber:10},this),e[8]=n,e[9]=p):p=e[9];let u;return e[10]!==c||e[11]!==p?(u=o.jsxDEV("div",{style:t,children:[c,p]},void 0,!0,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/OntologyWorkspace/OntologyManager.tsx",lineNumber:191,columnNumber:10},this),e[10]=c,e[11]=p,e[12]=u):u=e[12],u}function it(l){const e=P.c(79);if(e[0]!=="d80fc804df8f297bc115bf30fd6379670c84b4b4632c52358ff04c28fbb939d6"){for(let I=0;I<79;I+=1)e[I]=Symbol.for("react.memo_cache_sentinel");e[0]="d80fc804df8f297bc115bf30fd6379670c84b4b4632c52358ff04c28fbb939d6"}const{entry:s,selected:n,onSelect:t,onToggle:r,onRefresh:a,onRemove:c}=l,[m,p]=i.useState(!1),[u,g]=i.useState(!1),[d,f]=i.useState(!1);let h;e[1]!==s.uri||e[2]!==r?(h=async I=>{I.stopPropagation(),p(!0),await r(s.uri),p(!1)},e[1]=s.uri,e[2]=r,e[3]=h):h=e[3];const S=h;let N;e[4]!==s.uri||e[5]!==a?(N=async I=>{I.stopPropagation(),g(!0),await a(s.uri),g(!1)},e[4]=s.uri,e[5]=a,e[6]=N):N=e[6];const A=N;let D;e[7]!==s.name||e[8]!==s.uri||e[9]!==c?(D=async I=>{I.stopPropagation(),window.confirm(`Remove "${s.name}" from the registry?`)&&(f(!0),await c(s.uri),f(!1))},e[7]=s.name,e[8]=s.uri,e[9]=c,e[10]=D):D=e[10];const k=D;let v;e[11]!==s||e[12]!==t?(v=()=>t(s),e[11]=s,e[12]=t,e[13]=v):v=e[13];const V=n?"rgba(255,45,75,0.1)":"rgba(255,255,255,0.02)",W=n?"rgba(255,107,129,0.26)":"rgba(255,107,129,0.1)",U=s.enabled?1:.55;let O;e[14]!==V||e[15]!==W||e[16]!==U?(O={...vt,background:V,borderColor:W,opacity:U},e[14]=V,e[15]=W,e[16]=U,e[17]=O):O=e[17];let L;e[18]===Symbol.for("react.memo_cache_sentinel")?(L={display:"flex",alignItems:"center",gap:8,flexWrap:"wrap"},e[18]=L):L=e[18];let T;e[19]!==s.name?(T=o.jsxDEV("span",{style:wt,children:s.name},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/OntologyWorkspace/OntologyManager.tsx",lineNumber:309,columnNumber:11},this),e[19]=s.name,e[20]=T):T=e[20];let b;e[21]!==s.status?(b=o.jsxDEV(lt,{status:s.status},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/OntologyWorkspace/OntologyManager.tsx",lineNumber:317,columnNumber:11},this),e[21]=s.status,e[22]=b):b=e[22];let w;e[23]!==s.format?(w=o.jsxDEV(ct,{format:s.format},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/OntologyWorkspace/OntologyManager.tsx",lineNumber:325,columnNumber:11},this),e[23]=s.format,e[24]=w):w=e[24];let j;e[25]!==s.enabled?(j=!s.enabled&&o.jsxDEV("span",{style:Ct,children:"Disabled"},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/OntologyWorkspace/OntologyManager.tsx",lineNumber:333,columnNumber:29},this),e[25]=s.enabled,e[26]=j):j=e[26];let _;e[27]!==T||e[28]!==b||e[29]!==w||e[30]!==j?(_=o.jsxDEV("div",{style:L,children:[T,b,w,j]},void 0,!0,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/OntologyWorkspace/OntologyManager.tsx",lineNumber:341,columnNumber:11},this),e[27]=T,e[28]=b,e[29]=w,e[30]=j,e[31]=_):_=e[31];let $;e[32]!==s.uri?($=o.jsxDEV("div",{style:Lt,children:s.uri},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/OntologyWorkspace/OntologyManager.tsx",lineNumber:352,columnNumber:11},this),e[32]=s.uri,e[33]=$):$=e[33];let M;e[34]!==s.source_url?(M=s.source_url&&o.jsxDEV("a",{href:s.source_url,target:"_blank",rel:"noreferrer",onClick:mt,style:Et,children:[o.jsxDEV(No,{size:10},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/OntologyWorkspace/OntologyManager.tsx",lineNumber:360,columnNumber:131},this),s.source_url.slice(0,60),s.source_url.length>60?"…":""]},void 0,!0,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/OntologyWorkspace/OntologyManager.tsx",lineNumber:360,columnNumber:31},this),e[34]=s.source_url,e[35]=M):M=e[35];let F;e[36]!==_||e[37]!==$||e[38]!==M?(F=o.jsxDEV("div",{style:Ot,children:[_,$,M]},void 0,!0,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/OntologyWorkspace/OntologyManager.tsx",lineNumber:368,columnNumber:11},this),e[36]=_,e[37]=$,e[38]=M,e[39]=F):F=e[39];let q;e[40]!==s.class_count?(q=o.jsxDEV(Ue,{value:s.class_count,label:"Classes"},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/OntologyWorkspace/OntologyManager.tsx",lineNumber:378,columnNumber:11},this),e[40]=s.class_count,e[41]=q):q=e[41];let J;e[42]!==s.concept_count?(J=o.jsxDEV(Ue,{value:s.concept_count,label:"Concepts"},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/OntologyWorkspace/OntologyManager.tsx",lineNumber:386,columnNumber:11},this),e[42]=s.concept_count,e[43]=J):J=e[43];let K;e[44]!==s.property_count?(K=o.jsxDEV(Ue,{value:s.property_count,label:"Props"},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/OntologyWorkspace/OntologyManager.tsx",lineNumber:394,columnNumber:11},this),e[44]=s.property_count,e[45]=K):K=e[45];let y;e[46]!==q||e[47]!==J||e[48]!==K?(y=o.jsxDEV("div",{style:Vt,children:[q,J,K]},void 0,!0,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/OntologyWorkspace/OntologyManager.tsx",lineNumber:402,columnNumber:11},this),e[46]=q,e[47]=J,e[48]=K,e[49]=y):y=e[49];const B=s.enabled?"Disable":"Enable";let x;e[50]!==m||e[51]!==s.enabled?(x=m?o.jsxDEV(Y,{size:13,style:{animation:"spin 0.8s linear infinite"}},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/OntologyWorkspace/OntologyManager.tsx",lineNumber:413,columnNumber:24},this):s.enabled?o.jsxDEV(vs,{size:15,color:"#4cc38a"},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/OntologyWorkspace/OntologyManager.tsx",lineNumber:415,columnNumber:29},this):o.jsxDEV(Hs,{size:15,color:"#9c7a82"},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/OntologyWorkspace/OntologyManager.tsx",lineNumber:415,columnNumber:73},this),e[50]=m,e[51]=s.enabled,e[52]=x):x=e[52];let E;e[53]!==m||e[54]!==S||e[55]!==B||e[56]!==x?(E=o.jsxDEV("button",{title:B,onClick:S,disabled:m,style:Ce,children:x},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/OntologyWorkspace/OntologyManager.tsx",lineNumber:424,columnNumber:11},this),e[53]=m,e[54]=S,e[55]=B,e[56]=x,e[57]=E):E=e[57];let C;e[58]!==u||e[59]!==s.source_url||e[60]!==A?(C=s.source_url&&o.jsxDEV("button",{title:"Re-fetch from source URL",onClick:A,disabled:u,style:Ce,children:u?o.jsxDEV(Y,{size:13,style:{animation:"spin 0.8s linear infinite"}},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/OntologyWorkspace/OntologyManager.tsx",lineNumber:435,columnNumber:157},this):o.jsxDEV(Jo,{size:13,color:"#ff2d4b"},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/OntologyWorkspace/OntologyManager.tsx",lineNumber:437,columnNumber:15},this)},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/OntologyWorkspace/OntologyManager.tsx",lineNumber:435,columnNumber:31},this),e[58]=u,e[59]=s.source_url,e[60]=A,e[61]=C):C=e[61];let R;e[62]===Symbol.for("react.memo_cache_sentinel")?(R={...Ce,color:"#ff9daf"},e[62]=R):R=e[62];let se;e[63]!==d?(se=d?o.jsxDEV(Y,{size:13,style:{animation:"spin 0.8s linear infinite"}},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/OntologyWorkspace/OntologyManager.tsx",lineNumber:457,columnNumber:24},this):o.jsxDEV(Ke,{size:13},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/OntologyWorkspace/OntologyManager.tsx",lineNumber:459,columnNumber:13},this),e[63]=d,e[64]=se):se=e[64];let X;e[65]!==d||e[66]!==k||e[67]!==se?(X=o.jsxDEV("button",{title:"Remove from registry",onClick:k,disabled:d,style:R,children:se},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/OntologyWorkspace/OntologyManager.tsx",lineNumber:467,columnNumber:11},this),e[65]=d,e[66]=k,e[67]=se,e[68]=X):X=e[68];let ae;e[69]!==E||e[70]!==C||e[71]!==X?(ae=o.jsxDEV("div",{style:It,children:[E,C,X]},void 0,!0,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/OntologyWorkspace/OntologyManager.tsx",lineNumber:477,columnNumber:11},this),e[69]=E,e[70]=C,e[71]=X,e[72]=ae):ae=e[72];let H;return e[73]!==F||e[74]!==y||e[75]!==ae||e[76]!==v||e[77]!==O?(H=o.jsxDEV("div",{onClick:v,style:O,children:[F,y,ae]},void 0,!0,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/OntologyWorkspace/OntologyManager.tsx",lineNumber:487,columnNumber:11},this),e[73]=F,e[74]=y,e[75]=ae,e[76]=v,e[77]=O,e[78]=H):H=e[78],H}function mt(l){return l.stopPropagation()}function ut(){const[l,e]=i.useState([]),[s,n]=i.useState(!0),[t,r]=i.useState(""),[a,c]=i.useState("all"),[m,p]=i.useState(!1),[u,g]=i.useState(null),[d,f]=i.useState("none"),[h,S]=i.useState(null),[N,A]=i.useState(t);t!==N&&(A(t),n(!0),S(null));const D=i.useCallback((b,w)=>{S({type:b,text:w}),setTimeout(()=>S(null),3e3)},[]),k=i.useCallback(async()=>{n(!0),S(null);try{const b=new URLSearchParams;t&&b.set("q",t);const w=await fetch(`/api/ontology/registry?${b}`);if(!w.ok)throw new Error(`HTTP ${w.status}`);const j=await w.json();e(j),w.status===207&&D("err",j.message||"Warning: Partial success loading registry.")}catch{e([]),D("err","Failed to load ontology registry")}finally{n(!1)}},[t,D]);i.useEffect(()=>{let b=!1;async function w(){try{const j=new URLSearchParams;t&&j.set("q",t);const _=await fetch(`/api/ontology/registry?${j}`);if(!_.ok)throw new Error(`HTTP ${_.status}`);const $=await _.json();if(b)return;e($),_.status===207&&D("err",$.message||"Warning: Partial success loading registry.")}catch{b||(e([]),D("err","Failed to load ontology registry"))}finally{b||n(!1)}}return w(),()=>{b=!0}},[t,D]);const v=i.useCallback(async b=>{try{const w=await fetch(`/api/ontology/${encodeURIComponent(b)}/toggle`,{method:"PATCH"});if(!w.ok)throw new Error("Toggle failed");const j=await w.json();e(_=>_.map($=>$.uri===b?{...$,enabled:j.enabled}:$))}catch{D("err","Could not toggle ontology")}},[]),V=i.useCallback(async b=>{try{if(!(await fetch(`/api/ontology/${encodeURIComponent(b)}/refresh`,{method:"POST"})).ok)throw new Error("Refresh failed");D("ok","Ontology refreshed"),k()}catch{D("err","Refresh failed — check source URL")}},[k]),W=i.useCallback(async b=>{try{if(!(await fetch(`/api/ontology/${encodeURIComponent(b)}`,{method:"DELETE"})).ok)throw new Error("Remove failed");e(j=>j.filter(_=>_.uri!==b)),u?.uri===b&&g(null),D("ok","Removed from registry")}catch{D("err","Could not remove ontology")}},[u]),U=b=>{g(w=>w?.uri===b.uri?null:b),f("none")},O=()=>{p(!1),k()},L=l.filter(b=>a==="owl"?["owl:Ontology"].includes(b.format)||b.format==="xml"||b.format==="turtle":a==="skos"?b.concept_count>0:a==="internal"?b.status==="draft"||b.status==="published":a==="external"?b.status==="external":!0),T=u?u.concept_count>0:!1;return o.jsxDEV(o.Fragment,{children:[m&&o.jsxDEV(Ga,{onLoaded:O,onClose:()=>p(!1)},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/OntologyWorkspace/OntologyManager.tsx",lineNumber:632,columnNumber:22},this),o.jsxDEV("div",{style:pt,children:[o.jsxDEV("div",{style:dt,children:[o.jsxDEV("div",{style:bt,children:[o.jsxDEV(he,{size:14,color:"#9c7a82"},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/OntologyWorkspace/OntologyManager.tsx",lineNumber:638,columnNumber:13},this),o.jsxDEV("input",{value:t,onChange:b=>r(b.target.value),placeholder:"Search ontologies by name, URI, or namespace…",style:ht},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/OntologyWorkspace/OntologyManager.tsx",lineNumber:639,columnNumber:13},this)]},void 0,!0,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/OntologyWorkspace/OntologyManager.tsx",lineNumber:637,columnNumber:11},this),o.jsxDEV("div",{style:{display:"flex",gap:6,flexWrap:"wrap"},children:["all","owl","skos","internal","external"].map(b=>o.jsxDEV("button",{onClick:()=>c(b),style:{...gt,...a===b?yt:ft},children:b==="all"?"All":b.toUpperCase()},b,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/OntologyWorkspace/OntologyManager.tsx",lineNumber:647,columnNumber:81},this))},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/OntologyWorkspace/OntologyManager.tsx",lineNumber:642,columnNumber:11},this),o.jsxDEV("div",{style:{display:"flex",gap:8,marginLeft:"auto"},children:[o.jsxDEV("button",{onClick:()=>f(b=>b==="search"?"none":"search"),style:{...xt,...d==="search"?St:{}},children:[o.jsxDEV(he,{size:13},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/OntologyWorkspace/OntologyManager.tsx",lineNumber:664,columnNumber:15},this),"Entity Search"]},void 0,!0,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/OntologyWorkspace/OntologyManager.tsx",lineNumber:660,columnNumber:13},this),o.jsxDEV("button",{onClick:()=>p(!0),style:uo,children:[o.jsxDEV(ge,{size:13},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/OntologyWorkspace/OntologyManager.tsx",lineNumber:668,columnNumber:15},this),"Load Ontology"]},void 0,!0,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/OntologyWorkspace/OntologyManager.tsx",lineNumber:667,columnNumber:13},this)]},void 0,!0,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/OntologyWorkspace/OntologyManager.tsx",lineNumber:655,columnNumber:11},this)]},void 0,!0,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/OntologyWorkspace/OntologyManager.tsx",lineNumber:636,columnNumber:9},this),h&&o.jsxDEV("div",{style:{...Nt,borderColor:h.type==="ok"?"rgba(76,195,138,0.22)":"rgba(255,157,175,0.22)",background:h.type==="ok"?"rgba(76,195,138,0.06)":"rgba(255,157,175,0.06)",color:h.type==="ok"?"#4cc38a":"#ff9daf"},children:[h.type==="ok"?o.jsxDEV(fe,{size:13},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/OntologyWorkspace/OntologyManager.tsx",lineNumber:680,columnNumber:40},this):o.jsxDEV(oe,{size:13},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/OntologyWorkspace/OntologyManager.tsx",lineNumber:680,columnNumber:69},this),h.text]},void 0,!0,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/OntologyWorkspace/OntologyManager.tsx",lineNumber:674,columnNumber:23},this),o.jsxDEV("div",{style:kt,children:[o.jsxDEV("div",{style:At,children:s?o.jsxDEV("div",{style:Co,children:[o.jsxDEV(Y,{size:22,color:"#ff2d4b",style:{animation:"spin 1s linear infinite"}},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/OntologyWorkspace/OntologyManager.tsx",lineNumber:689,columnNumber:17},this),o.jsxDEV("span",{style:{color:"#c99aa3",fontSize:13,marginTop:10},children:"Loading registry…"},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/OntologyWorkspace/OntologyManager.tsx",lineNumber:692,columnNumber:17},this)]},void 0,!0,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/OntologyWorkspace/OntologyManager.tsx",lineNumber:688,columnNumber:24},this):L.length===0?o.jsxDEV("div",{style:_t,children:[o.jsxDEV(Do,{size:36,color:"rgba(255,45,75,0.18)"},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/OntologyWorkspace/OntologyManager.tsx",lineNumber:698,columnNumber:17},this),o.jsxDEV("div",{style:{color:"#c99aa3",fontSize:14,fontWeight:600,marginTop:14},children:t?"No ontologies match your search":"No ontologies loaded yet"},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/OntologyWorkspace/OntologyManager.tsx",lineNumber:699,columnNumber:17},this),o.jsxDEV("div",{style:{color:"#9c7a82",fontSize:12,marginTop:6,textAlign:"center",maxWidth:300,lineHeight:1.6},children:t?"Try a different search term or clear the filter.":o.jsxDEV(o.Fragment,{children:["Import from a URL, upload a file, or create a new ontology to get started. Click ",o.jsxDEV("strong",{style:{color:"#ff6b81"},children:"Load Ontology"},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/OntologyWorkspace/OntologyManager.tsx",lineNumber:715,columnNumber:166},this)," above."]},void 0,!0,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/OntologyWorkspace/OntologyManager.tsx",lineNumber:715,columnNumber:83},this)},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/OntologyWorkspace/OntologyManager.tsx",lineNumber:707,columnNumber:17},this),!t&&o.jsxDEV("button",{onClick:()=>p(!0),style:{...uo,marginTop:18},children:[o.jsxDEV(ge,{size:13},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/OntologyWorkspace/OntologyManager.tsx",lineNumber:723,columnNumber:21},this),"Load Ontology"]},void 0,!0,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/OntologyWorkspace/OntologyManager.tsx",lineNumber:719,columnNumber:30},this)]},void 0,!0,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/OntologyWorkspace/OntologyManager.tsx",lineNumber:697,columnNumber:55},this):o.jsxDEV("div",{style:Dt,children:[o.jsxDEV("div",{style:Ht,children:o.jsxDEV("span",{style:jt,children:[L.length," ontolog",L.length===1?"y":"ies"]},void 0,!0,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/OntologyWorkspace/OntologyManager.tsx",lineNumber:728,columnNumber:19},this)},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/OntologyWorkspace/OntologyManager.tsx",lineNumber:727,columnNumber:17},this),L.map(b=>o.jsxDEV(it,{entry:b,selected:u?.uri===b.uri,onSelect:U,onToggle:v,onRefresh:V,onRemove:W},b.uri,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/OntologyWorkspace/OntologyManager.tsx",lineNumber:732,columnNumber:49},this))]},void 0,!0,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/OntologyWorkspace/OntologyManager.tsx",lineNumber:726,columnNumber:24},this)},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/OntologyWorkspace/OntologyManager.tsx",lineNumber:687,columnNumber:11},this),d==="search"&&o.jsxDEV("div",{style:_e,children:[o.jsxDEV("div",{style:Me,children:[o.jsxDEV("span",{style:ze,children:"Entity Search"},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/OntologyWorkspace/OntologyManager.tsx",lineNumber:739,columnNumber:17},this),o.jsxDEV("button",{onClick:()=>f("none"),style:Re,children:"×"},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/OntologyWorkspace/OntologyManager.tsx",lineNumber:740,columnNumber:17},this)]},void 0,!0,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/OntologyWorkspace/OntologyManager.tsx",lineNumber:738,columnNumber:15},this),o.jsxDEV(Sn,{},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/OntologyWorkspace/OntologyManager.tsx",lineNumber:742,columnNumber:15},this)]},void 0,!0,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/OntologyWorkspace/OntologyManager.tsx",lineNumber:737,columnNumber:39},this),d==="none"&&u&&o.jsxDEV("div",{style:_e,children:[o.jsxDEV("div",{style:Me,children:[o.jsxDEV("span",{style:ze,children:u.name},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/OntologyWorkspace/OntologyManager.tsx",lineNumber:747,columnNumber:17},this),o.jsxDEV("div",{style:{display:"flex",gap:6},children:[T&&o.jsxDEV("button",{onClick:()=>f("skos"),style:po,children:[o.jsxDEV(we,{size:12},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/OntologyWorkspace/OntologyManager.tsx",lineNumber:753,columnNumber:23},this),"Browse SKOS"]},void 0,!0,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/OntologyWorkspace/OntologyManager.tsx",lineNumber:752,columnNumber:30},this),o.jsxDEV("button",{onClick:()=>g(null),style:Re,children:"×"},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/OntologyWorkspace/OntologyManager.tsx",lineNumber:756,columnNumber:19},this)]},void 0,!0,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/OntologyWorkspace/OntologyManager.tsx",lineNumber:748,columnNumber:17},this)]},void 0,!0,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/OntologyWorkspace/OntologyManager.tsx",lineNumber:746,columnNumber:15},this),o.jsxDEV("div",{style:Wt,children:[o.jsxDEV(ie,{label:"URI",children:o.jsxDEV("span",{style:{fontFamily:"monospace",fontSize:11,wordBreak:"break-all",color:"#f0cdd3"},children:u.uri},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/OntologyWorkspace/OntologyManager.tsx",lineNumber:761,columnNumber:19},this)},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/OntologyWorkspace/OntologyManager.tsx",lineNumber:760,columnNumber:17},this),u.description&&o.jsxDEV(ie,{label:"Description",children:o.jsxDEV("span",{style:{color:"#f0cdd3",fontSize:13,lineHeight:1.6},children:u.description},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/OntologyWorkspace/OntologyManager.tsx",lineNumber:771,columnNumber:21},this)},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/OntologyWorkspace/OntologyManager.tsx",lineNumber:770,columnNumber:47},this),u.source_url&&o.jsxDEV(ie,{label:"Source URL",children:o.jsxDEV("a",{href:u.source_url,target:"_blank",rel:"noreferrer",style:{color:"#ff2d4b",fontSize:11,wordBreak:"break-all"},children:u.source_url},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/OntologyWorkspace/OntologyManager.tsx",lineNumber:780,columnNumber:21},this)},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/OntologyWorkspace/OntologyManager.tsx",lineNumber:779,columnNumber:46},this),u.version&&o.jsxDEV(ie,{label:"Version",children:o.jsxDEV("span",{style:{color:"#f0cdd3",fontSize:12},children:u.version},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/OntologyWorkspace/OntologyManager.tsx",lineNumber:789,columnNumber:21},this)},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/OntologyWorkspace/OntologyManager.tsx",lineNumber:788,columnNumber:43},this),u.loaded_at&&o.jsxDEV(ie,{label:"Loaded at",children:o.jsxDEV("span",{style:{color:"#f0cdd3",fontSize:12},children:new Date(u.loaded_at).toLocaleString()},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/OntologyWorkspace/OntologyManager.tsx",lineNumber:795,columnNumber:21},this)},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/OntologyWorkspace/OntologyManager.tsx",lineNumber:794,columnNumber:45},this),o.jsxDEV("div",{style:Ut,children:[o.jsxDEV(Te,{value:u.class_count,label:"Classes",color:"#d2a8ff"},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/OntologyWorkspace/OntologyManager.tsx",lineNumber:803,columnNumber:19},this),o.jsxDEV(Te,{value:u.concept_count,label:"Concepts",color:"#9ee8d7"},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/OntologyWorkspace/OntologyManager.tsx",lineNumber:804,columnNumber:19},this),o.jsxDEV(Te,{value:u.property_count,label:"Properties",color:"#ff7a45"},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/OntologyWorkspace/OntologyManager.tsx",lineNumber:805,columnNumber:19},this)]},void 0,!0,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/OntologyWorkspace/OntologyManager.tsx",lineNumber:802,columnNumber:17},this),u.tags.length>0&&o.jsxDEV(ie,{label:"Tags",children:o.jsxDEV("div",{style:{display:"flex",flexWrap:"wrap",gap:6},children:u.tags.map(b=>o.jsxDEV("span",{style:Tt,children:b},b,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/OntologyWorkspace/OntologyManager.tsx",lineNumber:813,columnNumber:54},this))},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/OntologyWorkspace/OntologyManager.tsx",lineNumber:808,columnNumber:21},this)},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/OntologyWorkspace/OntologyManager.tsx",lineNumber:807,columnNumber:51},this)]},void 0,!0,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/OntologyWorkspace/OntologyManager.tsx",lineNumber:759,columnNumber:15},this)]},void 0,!0,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/OntologyWorkspace/OntologyManager.tsx",lineNumber:745,columnNumber:54},this),d==="skos"&&u&&o.jsxDEV("div",{style:_e,children:[o.jsxDEV("div",{style:Me,children:[o.jsxDEV("span",{style:ze,children:["SKOS — ",u.name]},void 0,!0,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/OntologyWorkspace/OntologyManager.tsx",lineNumber:821,columnNumber:17},this),o.jsxDEV("div",{style:{display:"flex",gap:6},children:[o.jsxDEV("button",{onClick:()=>f("none"),style:po,children:[o.jsxDEV(qe,{size:12},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/OntologyWorkspace/OntologyManager.tsx",lineNumber:827,columnNumber:21},this),"Registry Detail"]},void 0,!0,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/OntologyWorkspace/OntologyManager.tsx",lineNumber:826,columnNumber:19},this),o.jsxDEV("button",{onClick:()=>f("none"),style:Re,children:"×"},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/OntologyWorkspace/OntologyManager.tsx",lineNumber:830,columnNumber:19},this)]},void 0,!0,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/OntologyWorkspace/OntologyManager.tsx",lineNumber:822,columnNumber:17},this)]},void 0,!0,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/OntologyWorkspace/OntologyManager.tsx",lineNumber:820,columnNumber:15},this),o.jsxDEV(Kn,{schemeUri:u.uri},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/OntologyWorkspace/OntologyManager.tsx",lineNumber:833,columnNumber:15},this)]},void 0,!0,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/OntologyWorkspace/OntologyManager.tsx",lineNumber:819,columnNumber:54},this)]},void 0,!0,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/OntologyWorkspace/OntologyManager.tsx",lineNumber:685,columnNumber:9},this)]},void 0,!0,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/OntologyWorkspace/OntologyManager.tsx",lineNumber:634,columnNumber:7},this)]},void 0,!0,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/OntologyWorkspace/OntologyManager.tsx",lineNumber:631,columnNumber:10},this)}function ie(l){const e=P.c(8);if(e[0]!=="d80fc804df8f297bc115bf30fd6379670c84b4b4632c52358ff04c28fbb939d6"){for(let m=0;m<8;m+=1)e[m]=Symbol.for("react.memo_cache_sentinel");e[0]="d80fc804df8f297bc115bf30fd6379670c84b4b4632c52358ff04c28fbb939d6"}const{label:s,children:n}=l;let t;e[1]===Symbol.for("react.memo_cache_sentinel")?(t={borderTop:"1px solid rgba(255,255,255,0.05)",paddingTop:10,paddingBottom:2},e[1]=t):t=e[1];let r;e[2]===Symbol.for("react.memo_cache_sentinel")?(r={color:"#9c7a82",fontSize:10,fontWeight:700,textTransform:"uppercase",letterSpacing:"0.07em",marginBottom:4},e[2]=r):r=e[2];let a;e[3]!==s?(a=o.jsxDEV("div",{style:r,children:s},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/OntologyWorkspace/OntologyManager.tsx",lineNumber:881,columnNumber:10},this),e[3]=s,e[4]=a):a=e[4];let c;return e[5]!==n||e[6]!==a?(c=o.jsxDEV("div",{style:t,children:[a,n]},void 0,!0,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/OntologyWorkspace/OntologyManager.tsx",lineNumber:889,columnNumber:10},this),e[5]=n,e[6]=a,e[7]=c):c=e[7],c}function Te(l){const e=P.c(15);if(e[0]!=="d80fc804df8f297bc115bf30fd6379670c84b4b4632c52358ff04c28fbb939d6"){for(let d=0;d<15;d+=1)e[d]=Symbol.for("react.memo_cache_sentinel");e[0]="d80fc804df8f297bc115bf30fd6379670c84b4b4632c52358ff04c28fbb939d6"}const{value:s,label:n,color:t}=l;let r;e[1]===Symbol.for("react.memo_cache_sentinel")?(r={flex:1,display:"flex",flexDirection:"column",alignItems:"center",gap:2,padding:"10px 6px",background:"rgba(255,255,255,0.02)",borderRadius:8,border:"1px solid rgba(255,255,255,0.05)"},e[1]=r):r=e[1];let a;e[2]!==t?(a={color:t,fontSize:18,fontWeight:800},e[2]=t,e[3]=a):a=e[3];let c;e[4]!==s?(c=s.toLocaleString(),e[4]=s,e[5]=c):c=e[5];let m;e[6]!==a||e[7]!==c?(m=o.jsxDEV("span",{style:a,children:c},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/OntologyWorkspace/OntologyManager.tsx",lineNumber:950,columnNumber:10},this),e[6]=a,e[7]=c,e[8]=m):m=e[8];let p;e[9]===Symbol.for("react.memo_cache_sentinel")?(p={color:"#9c7a82",fontSize:10},e[9]=p):p=e[9];let u;e[10]!==n?(u=o.jsxDEV("span",{style:p,children:n},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/OntologyWorkspace/OntologyManager.tsx",lineNumber:969,columnNumber:10},this),e[10]=n,e[11]=u):u=e[11];let g;return e[12]!==m||e[13]!==u?(g=o.jsxDEV("div",{style:r,children:[m,u]},void 0,!0,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/OntologyWorkspace/OntologyManager.tsx",lineNumber:977,columnNumber:10},this),e[12]=m,e[13]=u,e[14]=g):g=e[14],g}const pt={display:"flex",flexDirection:"column",width:"100%",height:"100%",background:"#0a1525",overflow:"hidden"},dt={display:"flex",alignItems:"center",gap:10,padding:"12px 18px",borderBottom:"1px solid rgba(255,107,129,0.1)",background:"rgba(5,12,22,0.72)",flexWrap:"wrap",flexShrink:0},bt={display:"flex",alignItems:"center",gap:8,padding:"7px 12px",borderRadius:10,border:"1px solid rgba(255,107,129,0.14)",background:"rgba(0,0,0,0.24)",flex:"0 0 280px"},ht={background:"transparent",border:"none",outline:"none",color:"#fff0f2",fontSize:12,width:"100%"},gt={padding:"5px 11px",borderRadius:999,border:"1px solid transparent",fontSize:11,fontWeight:700,cursor:"pointer",transition:"160ms ease"},ft={background:"transparent",color:"#c99aa3",borderColor:"rgba(255,107,129,0.1)"},yt={background:"rgba(255,45,75,0.14)",color:"#fff0f2",borderColor:"rgba(255,107,129,0.26)"},xt={display:"inline-flex",alignItems:"center",gap:6,padding:"7px 12px",borderRadius:8,border:"1px solid rgba(255,107,129,0.16)",background:"rgba(255,45,75,0.06)",color:"#c99aa3",fontSize:12,fontWeight:600,cursor:"pointer"},St={background:"rgba(255,45,75,0.16)",color:"#fff0f2",borderColor:"rgba(255,107,129,0.28)"},uo={display:"inline-flex",alignItems:"center",gap:7,padding:"7px 14px",borderRadius:9,border:"1px solid rgba(255,45,75,0.3)",background:"linear-gradient(135deg, rgba(255,45,75,0.2), rgba(255,45,75,0.08))",color:"#ff6b81",fontSize:12,fontWeight:700,cursor:"pointer"},Nt={display:"flex",alignItems:"center",gap:8,padding:"8px 18px",fontSize:12,borderBottom:"1px solid",flexShrink:0},kt={flex:1,minHeight:0,display:"flex",overflow:"hidden"},At={flex:1,minWidth:0,overflowY:"auto",borderRight:"1px solid rgba(255,107,129,0.08)"},Dt={display:"flex",flexDirection:"column",padding:"12px 14px",gap:8},Ht={paddingBottom:6},jt={color:"#9c7a82",fontSize:11,fontWeight:700},vt={display:"flex",alignItems:"center",gap:14,padding:"12px 14px",borderRadius:12,border:"1px solid",cursor:"pointer",transition:"160ms ease"},Ot={flex:1,minWidth:0,display:"flex",flexDirection:"column",gap:4},wt={color:"#fff0f2",fontSize:14,fontWeight:700},Lt={color:"#9c7a82",fontSize:11,fontFamily:"monospace",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},Et={display:"inline-flex",alignItems:"center",gap:4,color:"#ff2d4b",fontSize:11,textDecoration:"none"},Vt={display:"flex",gap:16,flexShrink:0},It={display:"flex",gap:4,flexShrink:0},Ce={background:"transparent",border:"none",cursor:"pointer",padding:5,borderRadius:6,display:"grid",placeItems:"center",color:"#c99aa3"},_e={width:360,flexShrink:0,display:"flex",flexDirection:"column",borderLeft:"1px solid rgba(255,107,129,0.1)",background:"rgba(5,12,22,0.6)",overflow:"hidden"},Me={display:"flex",alignItems:"center",justifyContent:"space-between",padding:"14px 16px",borderBottom:"1px solid rgba(255,107,129,0.1)",flexShrink:0},ze={color:"#fff0f2",fontSize:13,fontWeight:700,overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},Re={background:"transparent",border:"none",color:"#c99aa3",cursor:"pointer",fontSize:18,lineHeight:1,padding:"0 2px"},po={display:"inline-flex",alignItems:"center",gap:5,padding:"4px 10px",borderRadius:7,border:"1px solid rgba(255,107,129,0.18)",background:"rgba(255,45,75,0.06)",color:"#ff6b81",fontSize:11,fontWeight:600,cursor:"pointer"},Wt={padding:"14px 16px",overflowY:"auto",flex:1,display:"flex",flexDirection:"column",gap:0},Ut={display:"flex",gap:6,marginTop:12,marginBottom:4},Tt={padding:"3px 8px",borderRadius:999,background:"rgba(255,255,255,0.04)",border:"1px solid rgba(255,255,255,0.08)",color:"#c99aa3",fontSize:11},Ct={padding:"2px 7px",borderRadius:999,fontSize:10,fontWeight:700,background:"rgba(106,127,151,0.12)",border:"1px solid rgba(106,127,151,0.2)",color:"#9c7a82"},Co={display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",height:"100%",padding:40},_t={...Co,textAlign:"center"},Mt={bgColor:"#0b1625",maskColor:"rgba(11, 5, 8, 0.72)",maskStrokeColor:"#5faeff",maskStrokeWidth:2,nodeColor:"#2d7fd3",nodeStrokeColor:"#9acbff",nodeStrokeWidth:1,style:{border:"1px solid #29435c",borderRadius:6,boxShadow:"0 4px 16px rgba(0, 0, 0, 0.32)"}};function zt(l,e){const s=e.replace(/[/#]+$/,"");return l===e||l.startsWith(`${s}#`)||l.startsWith(`${s}/`)}function Rt(l,e,s){if(s===null)return{status:"unowned",entityUri:e};const n=$t(l,e,s);return n===void 0?{status:"unresolved"}:{status:"resolved",uri:n}}function $t(l,e,s){return s||[...l].filter(n=>zt(e,n.uri)).sort((n,t)=>t.uri.length-n.uri.length)[0]?.uri}function pe(l){return l==="class"||l==="property"}const Bt={classNode:({data:l})=>o.jsxDEV("div",{style:Ft,children:[o.jsxDEV(Xe,{type:"target",position:Ze.Left,style:bo},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/OntologyWorkspace/OntologyEditor.tsx",lineNumber:24,columnNumber:7},void 0),o.jsxDEV("div",{style:Kt,children:l.label},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/OntologyWorkspace/OntologyEditor.tsx",lineNumber:25,columnNumber:7},void 0),o.jsxDEV("div",{style:qt,children:l.type},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/OntologyWorkspace/OntologyEditor.tsx",lineNumber:26,columnNumber:7},void 0),o.jsxDEV(Xe,{type:"source",position:Ze.Right,style:bo},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/OntologyWorkspace/OntologyEditor.tsx",lineNumber:27,columnNumber:7},void 0)]},void 0,!0,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/OntologyWorkspace/OntologyEditor.tsx",lineNumber:23,columnNumber:9},void 0)},bo={width:8,height:8,border:"1px solid rgba(235, 243, 255, 0.8)",background:"#ff2d4b"},Pt=`
92
- .ontology-editor-flow .react-flow__controls {
93
- overflow: hidden;
94
- border: 1px solid rgba(255, 107, 129, 0.2);
95
- border-radius: 9px;
96
- background: rgba(6, 13, 26, 0.96);
97
- box-shadow: 0 8px 24px rgba(0, 0, 0, 0.38);
98
- }
99
-
100
- .ontology-editor-flow .react-flow__controls-button {
101
- width: 30px;
102
- height: 30px;
103
- background: transparent;
104
- border-bottom-color: rgba(255, 107, 129, 0.14);
105
- color: #c99aa3;
106
- transition: color 140ms ease, background 140ms ease;
107
- }
108
-
109
- .ontology-editor-flow .react-flow__controls-button:hover {
110
- background: rgba(255, 45, 75, 0.14);
111
- color: #fff0f2;
112
- }
113
-
114
- .ontology-editor-flow .react-flow__controls-button:focus-visible {
115
- position: relative;
116
- z-index: 1;
117
- outline: 2px solid #ff6b81;
118
- outline-offset: -2px;
119
- }
120
-
121
- .ontology-editor-flow .react-flow__controls-button:disabled {
122
- background: rgba(6, 3, 5, 0.32);
123
- color: #40566f;
124
- }
125
- `,Ft={padding:"12px 16px",borderRadius:"8px",background:"linear-gradient(135deg, rgba(255, 45, 75, 0.15), rgba(255, 45, 75, 0.05))",border:"1px solid rgba(255, 107, 129, 0.3)",color:"#fff0f2",fontSize:"13px",fontWeight:"600",minWidth:"140px",textAlign:"center",boxShadow:"0 4px 12px rgba(0, 0, 0, 0.2)"},Kt={fontSize:"14px",fontWeight:"700",marginBottom:"4px"},qt={fontSize:"11px",color:"#c99aa3",fontWeight:"500"};function ho(){return So().entityUri||""}function Jt(l){const e=String(l.content||l.properties?.["rdfs:label"]||"").trim();if(e&&e!==l.id)return e;const s=l.id.replace(/[/#]+$/,"");return s.split("#").pop()||s.split("/").pop()||l.id}function Gt(l){switch(l.entity_type){case"ontology":case"class":case"property":return l.entity_type;default:return"external"}}function _o(l){const e=l.filter(a=>a.data.entityType==="property"),s=l.filter(a=>a.data.entityType==="class"||a.data.entityType==="external"),n=l.filter(a=>a.data.entityType!=="property"&&a.data.entityType!=="class"&&a.data.entityType!=="external"),t=Math.max(360,Math.max(e.length,s.length)*180),r=new Map;return e.forEach((a,c)=>{r.set(a.id,{x:0,y:(c+1)*t/(e.length+1)})}),s.forEach((a,c)=>{r.set(a.id,{x:600,y:(c+1)*t/(s.length+1)})}),n.forEach((a,c)=>{r.set(a.id,{x:300+c*220,y:t+120})}),l.map(a=>({...a,position:r.get(a.id)||a.position}))}function Yt(l,e){const s=[...l].sort((r,a)=>r.type.localeCompare(a.type)||r.id.localeCompare(a.id)),n=_o(s.map(r=>({id:r.id,type:"classNode",position:{x:0,y:0},data:{label:Jt(r),type:r.type,entityType:Gt(r)}}))),t=e.map((r,a)=>({id:r.id||`${r.source}:${r.type}:${r.target}:${a}`,source:r.source,target:r.target,label:r.type,type:"default",markerEnd:{type:ko.ArrowClosed},style:{stroke:"rgba(255, 107, 129, 0.72)",strokeWidth:1.5},labelStyle:{fill:"#c8dcf5",fontSize:11,fontWeight:600},labelBgStyle:{fill:"#0b0508",fillOpacity:.9}}));return{nodes:n,edges:t}}function Qt(){const[l,e,s]=Go([]),[n,t,r]=Yo([]),[a,c]=i.useState(null),m=a!==null,[p,u]=i.useState([]),[g,d]=i.useState(""),[f,h]=i.useState(null),[S,N]=i.useState(!1),[A,D]=i.useState(""),[k,v]=i.useState(""),[V,W]=i.useState({added_classes:[],removed_classes:[],modified_classes:{},added_properties:[],removed_properties:[],modified_properties:{},added_restrictions:[],removed_restrictions:[],added_axioms:[],removed_axioms:[],annotation_changes:{}}),[U,O]=i.useState(!1),[L,T]=i.useState(null);i.useEffect(()=>{let H=!1;const I=ho();return Promise.all([fetch("/api/ontology/registry").then(z=>z.ok?z.json():[]),I?Us(I).catch(()=>{}):Promise.resolve(void 0)]).then(([z,ne])=>{if(H)return;u(z);const ce=Rt(z,I,ne);if(ce.status==="unowned"){v(ce.entityUri);return}v("");const Ro=ce.status==="resolved"?ce.uri:void 0;d($o=>$o||Ro||z[0]?.uri||"")}).catch(z=>{console.error("Failed to load ontology registry:",z)}),()=>{H=!0}},[]),i.useEffect(()=>{if(!g){e([]),t([]),c(null);return}const H=new AbortController;return N(!0),D(""),Ws(g,H.signal).then(I=>{const z=Yt(I.nodes,I.edges);e(z.nodes),t(z.edges);const ne=ho();c(z.nodes.find(ce=>ce.id===ne)||null)}).catch(I=>{H.signal.aborted||(e([]),t([]),c(null),D(I instanceof Error?I.message:"Failed to load ontology graph"))}).finally(()=>{H.signal.aborted||N(!1)}),()=>H.abort()},[g,t,e]),i.useEffect(()=>{if(!f||l.length===0)return;const H=window.requestAnimationFrame(()=>{f.fitView({padding:.22,duration:320,maxZoom:1.25})});return()=>window.cancelAnimationFrame(H)},[f,m,l.length,g]);const b=i.useCallback(H=>t(I=>Qo({...H,markerEnd:{type:ko.ArrowClosed}},I)),[t]),w=i.useCallback(()=>{const H=`class_${Date.now()}`,I={id:H,type:"classNode",position:{x:Math.random()*400,y:Math.random()*300},data:{label:"NewClass",type:"owl:Class",entityType:"class"}};e(z=>[...z,I]),W(z=>({...z,added_classes:[...z.added_classes,H]}))},[e]),j=i.useCallback(()=>{if(l.length<2){alert("Add at least two classes before creating a property edge.");return}const H=`prop_${Date.now()}`,I={id:H,source:l[0].id,target:l[1].id,label:"hasProperty",type:"smoothstep",animated:!0};t(z=>[...z,I]),W(z=>({...z,added_properties:[...z.added_properties,H]}))},[l,t]),_=i.useCallback(()=>{const I={id:`ind_${Date.now()}`,type:"classNode",position:{x:Math.random()*400,y:Math.random()*300},data:{label:"NewIndividual",type:"owl:NamedIndividual",entityType:"external"}};e(z=>[...z,I])},[e]),$=i.useCallback(()=>{W(H=>({...H,added_restrictions:[...H.added_restrictions,{type:"someValuesFrom",value:""}]}))},[]),M=i.useCallback(()=>{W(H=>({...H,added_axioms:[...H.added_axioms,{type:"subClassOf",value:""}]}))},[]),F=i.useCallback(()=>{e(_o(l))},[l,e]),q=i.useCallback(H=>{c(H),xo(H.id)},[]),J=i.useCallback(async()=>{if(!g){alert("Please select an ontology first");return}O(!0);try{const H=await fetch("/api/ontology/draft",{method:"PATCH",headers:{"Content-Type":"application/json"},body:JSON.stringify({ontology_uri:g,diff:V,author:"user",summary:"Visual editor changes"})});if(H.ok){const I=await H.json();alert(`Draft saved: ${I.draft_id}`)}}catch(H){console.error("Failed to save draft:",H),alert("Failed to save draft")}finally{O(!1)}},[g,V]),K=i.useCallback((H,I)=>{H.preventDefault(),c(I),T({x:H.clientX,y:H.clientY,type:"node",element:I})},[]),y=i.useCallback((H,I)=>{H.preventDefault(),c(I),T({x:H.clientX,y:H.clientY,type:"edge",element:I})},[]),B=i.useCallback(()=>{const H=L?.element??a;H&&("source"in H?(t(I=>I.filter(z=>z.id!==H.id)),W(I=>({...I,removed_properties:[...I.removed_properties,H.id]}))):pe(H.data.entityType)&&(e(I=>I.filter(z=>z.id!==H.id)),W(I=>H.data.entityType==="property"?{...I,removed_properties:[...I.removed_properties,H.id]}:{...I,removed_classes:[...I.removed_classes,H.id]})),c(null)),T(null)},[a,e,t,L]),x=i.useCallback(()=>{const H=L?.element??a;if(H&&!("source"in H)&&pe(H.data.entityType)){const I=prompt("Enter new name:",String(H.data.label??""));I&&(e(z=>z.map(ne=>ne.id===H.id?{...ne,data:{...ne.data,label:I}}:ne)),W(z=>H.data.entityType==="property"?{...z,modified_properties:{...z.modified_properties,[H.id]:{label:I}}}:{...z,modified_classes:{...z.modified_classes,[H.id]:{label:I}}}))}T(null)},[a,e,L]);i.useEffect(()=>{const H=()=>T(null);return window.addEventListener("click",H),()=>window.removeEventListener("click",H)},[]);const E={display:"flex",gap:"8px",padding:"12px 16px",background:"rgba(6, 3, 5, 0.92)",borderBottom:"1px solid rgba(255, 120, 140, 0.12)",flexWrap:"wrap"},C={display:"inline-flex",alignItems:"center",gap:"6px",padding:"8px 12px",borderRadius:"8px",border:"1px solid rgba(255, 107, 129, 0.18)",background:"rgba(255, 45, 75, 0.08)",color:"#fff0f2",fontSize:"12px",fontWeight:"600",cursor:"pointer",transition:"160ms ease"},R={padding:"8px 12px",borderRadius:"8px",border:"1px solid rgba(255, 107, 129, 0.18)",background:"rgba(6, 3, 5, 0.88)",color:"#fff0f2",fontSize:"12px",minWidth:"260px"},se={position:"fixed",background:"rgba(12, 6, 9, 0.95)",border:"1px solid rgba(255, 107, 129, 0.3)",borderRadius:"8px",padding:"8px 0",minWidth:"180px",boxShadow:"0 8px 24px rgba(0, 0, 0, 0.4)",zIndex:1e3},X={padding:"8px 16px",display:"flex",alignItems:"center",gap:"10px",color:"#fff0f2",fontSize:"13px",cursor:"pointer",transition:"160ms ease"},ae={flex:"0 0 320px",width:"320px",minWidth:"320px",boxSizing:"border-box",background:"rgba(12, 6, 9, 0.95)",borderLeft:"1px solid rgba(255, 120, 140, 0.12)",padding:"20px",overflow:"auto",backdropFilter:"blur(18px)"};return o.jsxDEV("div",{style:{display:"flex",flexDirection:"column",height:"100%",background:"#0b0508"},children:[o.jsxDEV("style",{children:Pt},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/OntologyWorkspace/OntologyEditor.tsx",lineNumber:572,columnNumber:7},this),o.jsxDEV("div",{style:E,children:[o.jsxDEV("select",{"aria-label":"Active ontology",value:g,onChange:H=>{d(H.target.value),c(null),v(""),Bo()},style:R,children:[o.jsxDEV("option",{value:"",children:"Select ontology..."},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/OntologyWorkspace/OntologyEditor.tsx",lineNumber:580,columnNumber:11},this),p.map(H=>o.jsxDEV("option",{value:H.uri,children:H.name||H.uri},H.uri,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/OntologyWorkspace/OntologyEditor.tsx",lineNumber:581,columnNumber:34},this))]},void 0,!0,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/OntologyWorkspace/OntologyEditor.tsx",lineNumber:574,columnNumber:9},this),o.jsxDEV("button",{style:C,onClick:w,children:[o.jsxDEV(ge,{size:14},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/OntologyWorkspace/OntologyEditor.tsx",lineNumber:586,columnNumber:11},this),"Add Class"]},void 0,!0,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/OntologyWorkspace/OntologyEditor.tsx",lineNumber:585,columnNumber:9},this),o.jsxDEV("button",{style:C,onClick:j,disabled:l.length<2,children:[o.jsxDEV(ss,{size:14},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/OntologyWorkspace/OntologyEditor.tsx",lineNumber:590,columnNumber:11},this),"Add Property"]},void 0,!0,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/OntologyWorkspace/OntologyEditor.tsx",lineNumber:589,columnNumber:9},this),o.jsxDEV("button",{style:C,onClick:_,children:[o.jsxDEV(ws,{size:14},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/OntologyWorkspace/OntologyEditor.tsx",lineNumber:594,columnNumber:11},this),"Add Individual"]},void 0,!0,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/OntologyWorkspace/OntologyEditor.tsx",lineNumber:593,columnNumber:9},this),o.jsxDEV("button",{style:C,onClick:$,children:[o.jsxDEV(Je,{size:14},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/OntologyWorkspace/OntologyEditor.tsx",lineNumber:598,columnNumber:11},this),"Add Restriction"]},void 0,!0,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/OntologyWorkspace/OntologyEditor.tsx",lineNumber:597,columnNumber:9},this),o.jsxDEV("button",{style:C,onClick:M,children:[o.jsxDEV(Ao,{size:14},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/OntologyWorkspace/OntologyEditor.tsx",lineNumber:602,columnNumber:11},this),"Add Axiom"]},void 0,!0,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/OntologyWorkspace/OntologyEditor.tsx",lineNumber:601,columnNumber:9},this),o.jsxDEV("button",{style:C,onClick:F,children:[o.jsxDEV(gs,{size:14},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/OntologyWorkspace/OntologyEditor.tsx",lineNumber:606,columnNumber:11},this),"Auto Layout"]},void 0,!0,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/OntologyWorkspace/OntologyEditor.tsx",lineNumber:605,columnNumber:9},this),o.jsxDEV("div",{style:{flex:1}},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/OntologyWorkspace/OntologyEditor.tsx",lineNumber:609,columnNumber:9},this),o.jsxDEV("button",{style:C,onClick:J,disabled:U,children:[o.jsxDEV(vo,{size:14},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/OntologyWorkspace/OntologyEditor.tsx",lineNumber:613,columnNumber:11},this),U?"Saving...":"Propose"]},void 0,!0,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/OntologyWorkspace/OntologyEditor.tsx",lineNumber:612,columnNumber:9},this)]},void 0,!0,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/OntologyWorkspace/OntologyEditor.tsx",lineNumber:573,columnNumber:7},this),o.jsxDEV("div",{style:{display:"flex",flex:1,minHeight:0,minWidth:0},children:[o.jsxDEV("div",{style:{flex:1,minHeight:0,minWidth:0,position:"relative"},children:[o.jsxDEV(Xo,{className:"ontology-editor-flow",nodes:l,edges:n,onNodesChange:s,onEdgesChange:r,onConnect:b,onInit:h,onNodeClick:(H,I)=>q(I),onEdgeClick:(H,I)=>c(I),onNodeContextMenu:K,onEdgeContextMenu:y,nodeTypes:Bt,fitView:!0,style:{background:"#0b0508"},children:[o.jsxDEV(Zo,{color:"#1a2d3d",gap:20},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/OntologyWorkspace/OntologyEditor.tsx",lineNumber:633,columnNumber:13},this),o.jsxDEV(es,{},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/OntologyWorkspace/OntologyEditor.tsx",lineNumber:634,columnNumber:13},this),o.jsxDEV(os,{...Mt},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/OntologyWorkspace/OntologyEditor.tsx",lineNumber:635,columnNumber:13},this)]},void 0,!0,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/OntologyWorkspace/OntologyEditor.tsx",lineNumber:630,columnNumber:11},this),S&&o.jsxDEV("div",{style:Ae,children:"Loading ontology structure…"},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/OntologyWorkspace/OntologyEditor.tsx",lineNumber:638,columnNumber:30},this),!S&&A&&o.jsxDEV("div",{style:{...Ae,color:"#ff9a8d"},children:A},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/OntologyWorkspace/OntologyEditor.tsx",lineNumber:639,columnNumber:45},this),!S&&!A&&k&&o.jsxDEV("div",{style:{...Ae,color:"#ff7a45"},children:["No registered ontology owns ",k,". Pick an ontology above to start editing."]},void 0,!0,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/OntologyWorkspace/OntologyEditor.tsx",lineNumber:643,columnNumber:63},this),!S&&!A&&!k&&g&&l.length===0&&o.jsxDEV("div",{style:Ae,children:"This ontology has no editable classes or properties."},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/OntologyWorkspace/OntologyEditor.tsx",lineNumber:649,columnNumber:101},this),L&&o.jsxDEV("div",{style:{...se,left:L.x,top:L.y},children:"source"in L.element||pe(L.element.data.entityType)?o.jsxDEV(o.Fragment,{children:[!("source"in L.element)&&o.jsxDEV("div",{style:X,onClick:x,children:[o.jsxDEV(as,{size:14},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/OntologyWorkspace/OntologyEditor.tsx",lineNumber:658,columnNumber:23},this),"Rename"]},void 0,!0,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/OntologyWorkspace/OntologyEditor.tsx",lineNumber:657,columnNumber:58},this),o.jsxDEV("div",{style:X,onClick:B,children:[o.jsxDEV(Ke,{size:14},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/OntologyWorkspace/OntologyEditor.tsx",lineNumber:662,columnNumber:21},this),"Delete"]},void 0,!0,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/OntologyWorkspace/OntologyEditor.tsx",lineNumber:661,columnNumber:19},this)]},void 0,!0,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/OntologyWorkspace/OntologyEditor.tsx",lineNumber:656,columnNumber:111},this):o.jsxDEV("div",{style:{...X,cursor:"default",color:"#c99aa3"},children:"This term is read-only"},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/OntologyWorkspace/OntologyEditor.tsx",lineNumber:665,columnNumber:23},this)},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/OntologyWorkspace/OntologyEditor.tsx",lineNumber:651,columnNumber:27},this)]},void 0,!0,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/OntologyWorkspace/OntologyEditor.tsx",lineNumber:624,columnNumber:9},this),a&&o.jsxDEV("div",{style:ae,children:[o.jsxDEV("h3",{style:{margin:"0 0 16px",color:"#fff0f2",fontSize:"16px"},children:"source"in a?"Relationship Details":a.data.entityType==="property"?"Property Details":a.data.entityType==="ontology"?"Ontology Details":a.data.entityType==="external"?"External Term Details":"Class Details"},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/OntologyWorkspace/OntologyEditor.tsx",lineNumber:676,columnNumber:13},this),o.jsxDEV("div",{style:{marginBottom:"12px"},children:[o.jsxDEV("label",{style:{display:"block",color:"#c99aa3",fontSize:"12px",marginBottom:"4px"},children:"ID"},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/OntologyWorkspace/OntologyEditor.tsx",lineNumber:686,columnNumber:15},this),o.jsxDEV("div",{style:{color:"#fff0f2",fontSize:"13px",wordBreak:"break-all"},children:a.id},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/OntologyWorkspace/OntologyEditor.tsx",lineNumber:694,columnNumber:15},this)]},void 0,!0,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/OntologyWorkspace/OntologyEditor.tsx",lineNumber:683,columnNumber:13},this),!("source"in a)&&o.jsxDEV(o.Fragment,{children:[o.jsxDEV("div",{style:{marginBottom:"12px"},children:[o.jsxDEV("label",{style:{display:"block",color:"#c99aa3",fontSize:"12px",marginBottom:"4px"},children:"Label"},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/OntologyWorkspace/OntologyEditor.tsx",lineNumber:706,columnNumber:19},this),o.jsxDEV("input",{type:"text",value:String(a.data.label??""),readOnly:!pe(a.data.entityType),onChange:H=>{pe(a.data.entityType)&&(e(I=>I.map(z=>z.id===a.id?{...z,data:{...z.data,label:H.target.value}}:z)),W(I=>({...I,...a.data.entityType==="property"?{modified_properties:{...I.modified_properties,[a.id]:{label:H.target.value}}}:{modified_classes:{...I.modified_classes,[a.id]:{label:H.target.value}}}})))},style:{width:"100%",padding:"8px",borderRadius:"6px",border:"1px solid rgba(255, 107, 129, 0.2)",background:"rgba(6, 3, 5, 0.8)",color:"#fff0f2",fontSize:"13px"}},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/OntologyWorkspace/OntologyEditor.tsx",lineNumber:714,columnNumber:19},this)]},void 0,!0,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/OntologyWorkspace/OntologyEditor.tsx",lineNumber:703,columnNumber:17},this),o.jsxDEV("div",{style:{marginBottom:"12px"},children:[o.jsxDEV("label",{style:{display:"block",color:"#c99aa3",fontSize:"12px",marginBottom:"4px"},children:"Type"},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/OntologyWorkspace/OntologyEditor.tsx",lineNumber:754,columnNumber:19},this),o.jsxDEV("div",{style:{color:"#fff0f2",fontSize:"13px"},children:a.data.type||"owl:Class"},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/OntologyWorkspace/OntologyEditor.tsx",lineNumber:762,columnNumber:19},this)]},void 0,!0,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/OntologyWorkspace/OntologyEditor.tsx",lineNumber:751,columnNumber:17},this)]},void 0,!0,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/OntologyWorkspace/OntologyEditor.tsx",lineNumber:702,columnNumber:48},this)]},void 0,!0,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/OntologyWorkspace/OntologyEditor.tsx",lineNumber:675,columnNumber:29},this)]},void 0,!0,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/OntologyWorkspace/OntologyEditor.tsx",lineNumber:618,columnNumber:7},this)]},void 0,!0,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/OntologyWorkspace/OntologyEditor.tsx",lineNumber:566,columnNumber:10},this)}const Ae={position:"absolute",left:"50%",top:"50%",transform:"translate(-50%, -50%)",padding:"10px 14px",borderRadius:"8px",border:"1px solid rgba(255, 107, 129, 0.18)",background:"rgba(6, 3, 5, 0.9)",color:"#c99aa3",fontSize:"13px",pointerEvents:"none"};function Xt({onJumpToNode:l}){const[e,s]=i.useState([]),[n,t]=i.useState(""),[r,a]=i.useState(""),[c,m]=i.useState(""),[p,u]=i.useState([]),[g,d]=i.useState(null),[f,h]=i.useState(null),[S,N]=i.useState(!1),[A,D]=i.useState("");i.useEffect(()=>{let b=!1;return He().then(w=>{b||(s(w),t(j=>j||w[0]?.uri||""))}).catch(w=>{b||D(w instanceof Error?w.message:"Failed to load ontology registry.")}),()=>{b=!0}},[]);const[k,v]=i.useState(n);n!==k&&(v(n),a(""),m(""),d(null),h(null),N(!0),D("")),i.useEffect(()=>{let b=!1;async function w(){if(n)try{const j=await so(n);if(!b){u(j.shapes);const _=j.shacl_turtle;m(_),a($=>$||_),d(null),h(null)}}catch{b||u([])}finally{b||N(!1)}}return w(),()=>{b=!0}},[n]);const V=i.useCallback(async()=>{if(n){N(!0),D("");try{const b=await zs(n,"strict");m(b.shacl_turtle),a(b.shacl_turtle),d(null);const w=await so(n);u(w.shapes),h(null)}catch(b){D(b instanceof Error?b.message:"Could not generate SHACL.")}finally{N(!1)}}},[n]),W=i.useCallback(b=>{d(b);const $=(c||r).replace(/\r\n/g,`
126
- `).split(/\n{2,}/).filter(M=>M.trim()).find(M=>{const F=M.trimStart();return F.startsWith(b+" ")||F.startsWith(b+`
127
- `)||F.startsWith(b+" ")});$&&a($.trim())},[c,r]),U=i.useCallback(()=>{d(null),a(c)},[c]),O=async()=>{if(!(!n||!r.trim())){N(!0),D("");try{h(await Rs(n,r))}catch(b){D(b instanceof Error?b.message:"Could not validate SHACL.")}finally{N(!1)}}},L=i.useMemo(()=>{const b=new Map;for(const w of p){const j=w.target_class||"Untargeted shapes";b.set(j,[...b.get(j)||[],w])}return Array.from(b.entries())},[p]),T=i.useCallback(b=>{try{b.languages.getLanguages().some(w=>w.id==="turtle")||(b.languages.register({id:"turtle",extensions:[".ttl"],mimetypes:["text/turtle"]}),b.languages.setMonarchTokensProvider("turtle",{tokenizer:{root:[[/#[^\n]*/,"comment"],[/"(?:[^"\\]|\\.)*"/,"string"],[/'(?:[^'\\]|\\.)*'/,"string"],[/"""[\s\S]*?"""/,"string"],[/<[^>]*>/,"type.identifier"],[/[@](?:prefix|base)\b/,"keyword"],[/\ba\b/,"keyword"],[/\b(?:sh|xsd|owl|rdf|rdfs|skos):[\w]+/,"variable"],[/[a-zA-Z_][\w-]*:[\w]+/,"namespace"],[/[;,.]/,"delimiter"],[/\d+(?:\.\d+)?/,"number"]]}})),b.editor.defineTheme("shacl-dark",{base:"vs-dark",inherit:!0,rules:[{token:"keyword",foreground:"9ee8d7"},{token:"string",foreground:"f2b66d"},{token:"comment",foreground:"4a6070",fontStyle:"italic"},{token:"type.identifier",foreground:"7ce7d3"},{token:"variable",foreground:"d2a8ff"},{token:"namespace",foreground:"a5d6ff"},{token:"number",foreground:"79c0ff"},{token:"delimiter",foreground:"8fa8c6"}],colors:{"editor.background":"#050b13","editor.foreground":"#d7e7f8","editorLineNumber.foreground":"#41536b"}})}catch{}},[]);return o.jsxDEV("div",{style:er,children:[o.jsxDEV("section",{style:or,children:[o.jsxDEV("div",{children:[o.jsxDEV("div",{style:sr,children:[o.jsxDEV(Je,{size:14},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/OntologyWorkspace/ShaclStudio.tsx",lineNumber:189,columnNumber:36},this)," SHACL Studio"]},void 0,!0,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/OntologyWorkspace/ShaclStudio.tsx",lineNumber:189,columnNumber:11},this),o.jsxDEV("h2",{style:ar,children:"Generate, edit, and validate shapes"},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/OntologyWorkspace/ShaclStudio.tsx",lineNumber:190,columnNumber:11},this),o.jsxDEV("p",{style:go,children:"Create strict SHACL Turtle from ontology structure, inspect shape targets, run validation, and jump from violations back into the graph."},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/OntologyWorkspace/ShaclStudio.tsx",lineNumber:191,columnNumber:11},this)]},void 0,!0,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/OntologyWorkspace/ShaclStudio.tsx",lineNumber:188,columnNumber:9},this),o.jsxDEV("div",{style:nr,children:[o.jsxDEV("label",{style:tr,children:"Ontology"},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/OntologyWorkspace/ShaclStudio.tsx",lineNumber:197,columnNumber:11},this),o.jsxDEV("select",{style:rr,value:n,onChange:b=>t(b.target.value),children:e.map(b=>o.jsxDEV("option",{value:b.uri,children:b.name},b.uri,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/OntologyWorkspace/ShaclStudio.tsx",lineNumber:199,columnNumber:36},this))},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/OntologyWorkspace/ShaclStudio.tsx",lineNumber:198,columnNumber:11},this)]},void 0,!0,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/OntologyWorkspace/ShaclStudio.tsx",lineNumber:196,columnNumber:9},this)]},void 0,!0,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/OntologyWorkspace/ShaclStudio.tsx",lineNumber:187,columnNumber:7},this),A?o.jsxDEV("div",{style:yr,children:A},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/OntologyWorkspace/ShaclStudio.tsx",lineNumber:204,columnNumber:16},this):null,o.jsxDEV("div",{style:lr,children:[o.jsxDEV("section",{style:Fe,children:[o.jsxDEV("div",{style:$e,children:[o.jsxDEV("h3",{style:Be,children:"Shape library"},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/OntologyWorkspace/ShaclStudio.tsx",lineNumber:209,columnNumber:13},this),o.jsxDEV("div",{style:{display:"flex",gap:8,alignItems:"center"},children:[o.jsxDEV("span",{style:ir,children:[p.length," shapes"]},void 0,!0,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/OntologyWorkspace/ShaclStudio.tsx",lineNumber:215,columnNumber:15},this),g?o.jsxDEV("button",{style:yo,onClick:U,children:"View all"},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/OntologyWorkspace/ShaclStudio.tsx",lineNumber:216,columnNumber:34},this):null]},void 0,!0,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/OntologyWorkspace/ShaclStudio.tsx",lineNumber:210,columnNumber:13},this)]},void 0,!0,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/OntologyWorkspace/ShaclStudio.tsx",lineNumber:208,columnNumber:11},this),o.jsxDEV("div",{style:fo,children:[L.map(([b,w])=>o.jsxDEV("div",{style:mr,children:[o.jsxDEV("div",{style:ur,children:b},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/OntologyWorkspace/ShaclStudio.tsx",lineNumber:221,columnNumber:17},this),w.map(j=>{const _=g===j.id;return o.jsxDEV("button",{style:{...pr,cursor:"pointer",background:_?"rgba(124,231,211,0.1)":"rgba(255,255,255,0.03)",border:_?"1px solid rgba(124,231,211,0.35)":"1px solid rgba(255,107,129,0.08)",textAlign:"left",width:"100%"},onClick:()=>W(j.id),title:"Click to load this shape into the editor",children:[o.jsxDEV(ns,{size:14,color:_?"#7ce7d3":"#9ee8d7"},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/OntologyWorkspace/ShaclStudio.tsx",lineNumber:232,columnNumber:23},this),o.jsxDEV("div",{children:[o.jsxDEV("div",{style:{color:"#fff0f2",fontWeight:800},children:j.id},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/OntologyWorkspace/ShaclStudio.tsx",lineNumber:234,columnNumber:25},this),o.jsxDEV("div",{style:de,children:[j.constraint_count," constraints",j.constraints.length?` · ${j.constraints.join(", ")}`:""]},void 0,!0,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/OntologyWorkspace/ShaclStudio.tsx",lineNumber:238,columnNumber:25},this)]},void 0,!0,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/OntologyWorkspace/ShaclStudio.tsx",lineNumber:233,columnNumber:23},this),o.jsxDEV("span",{style:dr,children:j.violation_count},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/OntologyWorkspace/ShaclStudio.tsx",lineNumber:243,columnNumber:23},this)]},j.id,!0,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/OntologyWorkspace/ShaclStudio.tsx",lineNumber:224,columnNumber:22},this)})]},b,!0,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/OntologyWorkspace/ShaclStudio.tsx",lineNumber:220,columnNumber:53},this)),p.length?null:o.jsxDEV("p",{style:de,children:"No shapes generated yet."},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/OntologyWorkspace/ShaclStudio.tsx",lineNumber:247,columnNumber:31},this)]},void 0,!0,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/OntologyWorkspace/ShaclStudio.tsx",lineNumber:219,columnNumber:11},this)]},void 0,!0,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/OntologyWorkspace/ShaclStudio.tsx",lineNumber:207,columnNumber:9},this),o.jsxDEV("section",{style:cr,children:[o.jsxDEV("div",{style:$e,children:[o.jsxDEV("h3",{style:Be,children:g||"Turtle shape editor"},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/OntologyWorkspace/ShaclStudio.tsx",lineNumber:253,columnNumber:13},this),o.jsxDEV("div",{style:{display:"flex",gap:8},children:[o.jsxDEV("button",{style:hr,disabled:S,onClick:V,children:[o.jsxDEV(Es,{size:14},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/OntologyWorkspace/ShaclStudio.tsx",lineNumber:260,columnNumber:96},this)," Generate strict"]},void 0,!0,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/OntologyWorkspace/ShaclStudio.tsx",lineNumber:260,columnNumber:15},this),o.jsxDEV("button",{style:Mo,disabled:S||!r.trim(),onClick:O,children:[S?o.jsxDEV(Y,{size:14,className:"ws-spin"},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/OntologyWorkspace/ShaclStudio.tsx",lineNumber:262,columnNumber:28},this):o.jsxDEV(rs,{size:14},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/OntologyWorkspace/ShaclStudio.tsx",lineNumber:262,columnNumber:72},this),"Validate"]},void 0,!0,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/OntologyWorkspace/ShaclStudio.tsx",lineNumber:261,columnNumber:15},this)]},void 0,!0,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/OntologyWorkspace/ShaclStudio.tsx",lineNumber:256,columnNumber:13},this)]},void 0,!0,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/OntologyWorkspace/ShaclStudio.tsx",lineNumber:252,columnNumber:11},this),o.jsxDEV("div",{style:br,children:o.jsxDEV(ts,{height:"100%",language:"turtle",theme:"shacl-dark",beforeMount:T,value:r,onChange:b=>a(b||""),options:{minimap:{enabled:!1},fontSize:13,fontFamily:"JetBrains Mono, monospace",wordWrap:"on",scrollBeyondLastLine:!1}},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/OntologyWorkspace/ShaclStudio.tsx",lineNumber:268,columnNumber:13},this)},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/OntologyWorkspace/ShaclStudio.tsx",lineNumber:267,columnNumber:11},this)]},void 0,!0,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/OntologyWorkspace/ShaclStudio.tsx",lineNumber:251,columnNumber:9},this)]},void 0,!0,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/OntologyWorkspace/ShaclStudio.tsx",lineNumber:206,columnNumber:7},this),o.jsxDEV("section",{style:Fe,children:[o.jsxDEV("div",{style:$e,children:[o.jsxDEV("h3",{style:Be,children:"Validation report"},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/OntologyWorkspace/ShaclStudio.tsx",lineNumber:283,columnNumber:11},this),f?o.jsxDEV("span",{style:Zt(f.status,f.conforms),children:[f.status,f.conforms?" · conforms":""]},void 0,!0,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/OntologyWorkspace/ShaclStudio.tsx",lineNumber:284,columnNumber:25},this):null]},void 0,!0,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/OntologyWorkspace/ShaclStudio.tsx",lineNumber:282,columnNumber:9},this),f?o.jsxDEV(o.Fragment,{children:[o.jsxDEV("p",{style:go,children:f.message},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/OntologyWorkspace/ShaclStudio.tsx",lineNumber:287,columnNumber:13},this),o.jsxDEV("div",{style:fo,children:[f.violations.map((b,w)=>{const j=b.focus_node||b.node;return o.jsxDEV("div",{style:gr,children:[o.jsxDEV("div",{children:[o.jsxDEV("div",{style:{color:"#fff0f2",fontWeight:800},children:b.message},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/OntologyWorkspace/ShaclStudio.tsx",lineNumber:293,columnNumber:23},this),o.jsxDEV("div",{style:de,children:[b.severity," ",b.path?`· ${b.path}`:""]},void 0,!0,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/OntologyWorkspace/ShaclStudio.tsx",lineNumber:297,columnNumber:23},this),j?o.jsxDEV("div",{style:fr,children:j},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/OntologyWorkspace/ShaclStudio.tsx",lineNumber:298,columnNumber:33},this):null]},void 0,!0,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/OntologyWorkspace/ShaclStudio.tsx",lineNumber:292,columnNumber:21},this),j?o.jsxDEV("button",{style:yo,onClick:()=>l?.(j),children:"Jump to Node"},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/OntologyWorkspace/ShaclStudio.tsx",lineNumber:300,columnNumber:31},this):null]},`${b.node}-${b.path}-${w}`,!0,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/OntologyWorkspace/ShaclStudio.tsx",lineNumber:291,columnNumber:20},this)}),f.violations.length?null:o.jsxDEV("p",{style:de,children:"No validation violations returned."},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/OntologyWorkspace/ShaclStudio.tsx",lineNumber:305,columnNumber:48},this)]},void 0,!0,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/OntologyWorkspace/ShaclStudio.tsx",lineNumber:288,columnNumber:13},this)]},void 0,!0,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/OntologyWorkspace/ShaclStudio.tsx",lineNumber:286,columnNumber:23},this):o.jsxDEV("p",{style:de,children:"Generate or edit SHACL Turtle, then run validation."},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/OntologyWorkspace/ShaclStudio.tsx",lineNumber:307,columnNumber:17},this)]},void 0,!0,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/OntologyWorkspace/ShaclStudio.tsx",lineNumber:281,columnNumber:7},this)]},void 0,!0,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/OntologyWorkspace/ShaclStudio.tsx",lineNumber:186,columnNumber:10},this)}function Zt(l,e){const s=l==="unavailable"?"#ff7a45":e?"#7ce7d3":"#ff9daf";return{color:s,border:`1px solid ${s}35`,background:`${s}14`,borderRadius:999,padding:"4px 9px",fontSize:11,fontWeight:900,textTransform:"uppercase"}}const er={height:"100%",overflow:"auto",padding:22,display:"flex",flexDirection:"column",gap:16},or={display:"flex",justifyContent:"space-between",gap:18,padding:22,border:"1px solid rgba(255,107,129,0.12)",borderRadius:22,background:"linear-gradient(135deg, rgba(11,25,42,0.94), rgba(7,14,25,0.9))"},sr={display:"inline-flex",gap:8,alignItems:"center",color:"#9ee8d7",fontSize:11,fontWeight:900,letterSpacing:"0.12em",textTransform:"uppercase"},ar={margin:"8px 0",color:"#fff0f2",fontSize:26,letterSpacing:"-0.04em"},go={margin:0,color:"#c99aa3",lineHeight:1.6,maxWidth:680},nr={minWidth:320},tr={display:"block",color:"#9c7a82",fontSize:11,fontWeight:800,margin:"0 0 6px",textTransform:"uppercase",letterSpacing:"0.08em"},rr={width:"100%",boxSizing:"border-box",border:"1px solid rgba(255,107,129,0.14)",borderRadius:12,padding:"10px 12px",background:"rgba(6,3,5,0.8)",color:"#fff0f2"},lr={display:"grid",gridTemplateColumns:"360px minmax(0, 1fr)",gap:16,minHeight:560},Fe={padding:18,border:"1px solid rgba(255,107,129,0.12)",borderRadius:20,background:"rgba(12,6,9,0.78)"},cr={...Fe,display:"flex",flexDirection:"column",minHeight:560},$e={display:"flex",alignItems:"center",justifyContent:"space-between",gap:12,marginBottom:12},Be={margin:0,color:"#fff0f2",fontSize:16},ir={color:"#9ee8d7",border:"1px solid rgba(158,232,215,0.2)",borderRadius:999,padding:"4px 9px",fontSize:11,fontWeight:900},fo={display:"flex",flexDirection:"column",gap:10},mr={display:"flex",flexDirection:"column",gap:6},ur={color:"#9c7a82",fontSize:11,fontWeight:900,textTransform:"uppercase",letterSpacing:"0.08em"},pr={display:"grid",gridTemplateColumns:"18px 1fr auto",gap:10,padding:10,borderRadius:14,background:"rgba(255,255,255,0.03)",border:"1px solid rgba(255,107,129,0.08)"},dr={color:"#ff7a45",fontWeight:900},br={flex:1,minHeight:0,border:"1px solid rgba(255,107,129,0.12)",borderRadius:16,overflow:"hidden"},Mo={border:"1px solid rgba(124,231,211,0.35)",borderRadius:12,padding:"9px 11px",background:"linear-gradient(135deg, rgba(20,151,136,0.55), rgba(255,45,75,0.35))",color:"#fff0f2",fontWeight:900,cursor:"pointer",display:"inline-flex",alignItems:"center",gap:8},hr={...Mo,background:"rgba(255,107,129,0.08)",borderColor:"rgba(255,107,129,0.18)"},gr={display:"grid",gridTemplateColumns:"1fr auto",gap:12,padding:12,borderRadius:14,background:"rgba(255,255,255,0.03)",border:"1px solid rgba(255,107,129,0.08)"},yo={border:"1px solid rgba(255,107,129,0.16)",borderRadius:10,padding:"7px 9px",background:"rgba(255,107,129,0.08)",color:"#fff0f2",cursor:"pointer",fontWeight:800},fr={marginTop:4,color:"#9c7a82",fontSize:11,fontFamily:"JetBrains Mono, monospace",wordBreak:"break-all"},de={margin:0,color:"#9c7a82",fontSize:12,lineHeight:1.5},yr={padding:12,borderRadius:14,color:"#ffb4c2",background:"rgba(255,157,175,0.1)",border:"1px solid rgba(255,157,175,0.18)"};function xr(){const[l,e]=i.useState(""),[s,n]=i.useState([]),[t,r]=i.useState([]),[a,c]=i.useState(null),[m,p]=i.useState(!1),[u,g]=i.useState(!1),[d,f]=i.useState(null),[h,S]=i.useState(null),[N,A]=i.useState(!1),[D,k]=i.useState(""),v=i.useCallback(async()=>{if(l){k("");try{const x=await fetch(`/api/ontology/versions/${encodeURIComponent(l)}`);if(x.ok){const E=await x.json();n(E),x.status===207&&k(E.message||"Warning: Partial success loading versions.")}else k(`Failed to load versions (${x.status})`)}catch(x){k(x instanceof Error?x.message:"Failed to load versions.")}}},[l]),V=i.useCallback(async()=>{k("");try{const x=await fetch("/api/ontology/proposals");if(x.ok){const E=await x.json();r(E),x.status===207&&k(E.message||"Warning: Partial success loading proposals.")}else k(`Failed to load proposals (${x.status})`)}catch(x){k(x instanceof Error?x.message:"Failed to load proposals.")}},[]);i.useEffect(()=>{let x=!1;async function E(){x||k("");try{const C=await fetch("/api/ontology/proposals");if(C.ok){const R=await C.json();x||(r(R),C.status===207&&k(R.message||"Warning: Partial success loading proposals."))}else x||k(`Failed to load proposals (${C.status})`)}catch(C){x||k(C instanceof Error?C.message:"Failed to load proposals.")}if(l)try{const C=await fetch(`/api/ontology/versions/${encodeURIComponent(l)}`);if(C.ok){const R=await C.json();x||(n(R),C.status===207&&k(R.message||"Warning: Partial success loading versions."))}else x||k(R=>R||`Failed to load versions (${C.status})`)}catch(C){x||k(R=>R||(C instanceof Error?C.message:"Failed to load versions."))}}return E(),()=>{x=!0}},[l]);const W=i.useCallback(async x=>{k("");try{const E=await fetch(`/api/ontology/proposals/${x}/approve`,{method:"POST"});if(E.ok){if(E.status===207){const C=await E.json().catch(()=>({}));k(C.message||"Warning: Partial success approving proposal.")}else alert("Proposal approved");V()}else k(`Failed to approve proposal (${E.status})`)}catch(E){k(E instanceof Error?E.message:"Failed to approve proposal.")}},[V]),U=i.useCallback(async x=>{k("");try{const E=await fetch(`/api/ontology/proposals/${x}/reject`,{method:"POST"});if(E.ok){if(E.status===207){const C=await E.json().catch(()=>({}));k(C.message||"Warning: Partial success rejecting proposal.")}else alert("Proposal rejected");V()}else k(`Failed to reject proposal (${E.status})`)}catch(E){k(E instanceof Error?E.message:"Failed to reject proposal.")}},[V]),O=i.useCallback(async x=>{k("");try{const E=await fetch(`/api/ontology/proposals/${x}/publish`,{method:"POST"});if(E.ok){if(E.status===207){const C=await E.json().catch(()=>({}));k(C.message||"Warning: Partial success publishing proposal.")}else alert("Proposal published");V(),v()}else k(`Failed to publish proposal (${E.status})`)}catch(E){k(E instanceof Error?E.message:"Failed to publish proposal.")}},[V,v]),L=i.useCallback(async()=>{if(!(!d||!l)){A(!0),k("");try{const x=await fetch(`/api/ontology/versions/${encodeURIComponent(l)}/compare`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({version1:d.v1,version2:d.v2})});if(x.ok){const E=await x.json();x.status===207&&k(E.message||"Warning: Partial success comparing versions."),S(E)}else k(`Failed to compare versions (${x.status})`)}catch(x){k(x instanceof Error?x.message:"Failed to compare versions.")}finally{A(!1)}}},[d,l]),T=x=>{switch(x){case"published":return o.jsxDEV(Ee,{size:16,color:"#4cc38a"},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/OntologyWorkspace/VersionsTab.tsx",lineNumber:204,columnNumber:16},this);case"approved":return o.jsxDEV(Ee,{size:16,color:"#ff2d4b"},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/OntologyWorkspace/VersionsTab.tsx",lineNumber:206,columnNumber:16},this);case"rejected":return o.jsxDEV(eo,{size:16,color:"#ff6b6b"},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/OntologyWorkspace/VersionsTab.tsx",lineNumber:208,columnNumber:16},this);case"proposed":return o.jsxDEV(oe,{size:16,color:"#ff7a45"},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/OntologyWorkspace/VersionsTab.tsx",lineNumber:210,columnNumber:16},this);default:return o.jsxDEV(us,{size:16,color:"#c99aa3"},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/OntologyWorkspace/VersionsTab.tsx",lineNumber:212,columnNumber:16},this)}},b={display:"flex",flexDirection:"column",height:"100%",background:"#0b0508",padding:"20px",overflow:"auto"},w={display:"flex",justifyContent:"space-between",alignItems:"center",marginBottom:"20px"},j={margin:0,color:"#fff0f2",fontSize:"20px",fontWeight:"700"},_={marginBottom:"24px"},$={margin:"0 0 12px",color:"#fff0f2",fontSize:"14px",fontWeight:"600",display:"flex",alignItems:"center",gap:"8px"},M={display:"flex",flexDirection:"column",gap:"8px"},F={display:"flex",alignItems:"center",gap:"12px",padding:"12px 16px",borderRadius:"8px",background:"rgba(12, 6, 9, 0.8)",border:"1px solid rgba(255, 107, 129, 0.12)",transition:"160ms ease"},q={position:"fixed",inset:0,background:"rgba(0, 0, 0, 0.7)",display:"flex",alignItems:"center",justifyContent:"center",zIndex:1e3},J={background:"rgba(12, 6, 9, 0.95)",border:"1px solid rgba(255, 107, 129, 0.2)",borderRadius:"12px",padding:"24px",minWidth:"480px",maxWidth:"640px",maxHeight:"80vh",overflow:"auto",backdropFilter:"blur(18px)"},K={display:"inline-flex",alignItems:"center",gap:"6px",padding:"8px 14px",borderRadius:"6px",border:"1px solid rgba(255, 107, 129, 0.2)",background:"rgba(255, 45, 75, 0.1)",color:"#fff0f2",fontSize:"12px",fontWeight:"600",cursor:"pointer",transition:"160ms ease"},y={width:"100%",padding:"10px 12px",borderRadius:"6px",border:"1px solid rgba(255, 107, 129, 0.2)",background:"rgba(6, 3, 5, 0.8)",color:"#fff0f2",fontSize:"13px",marginBottom:"12px"},B={padding:"12px",borderRadius:"14px",color:"#ffb4c2",background:"rgba(255,157,175,0.1)",border:"1px solid rgba(255,157,175,0.18)",marginBottom:"16px"};return o.jsxDEV("div",{style:b,children:[o.jsxDEV("div",{style:w,children:[o.jsxDEV("h1",{style:j,children:"Versions & Change Proposals"},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/OntologyWorkspace/VersionsTab.tsx",lineNumber:316,columnNumber:9},this),o.jsxDEV("input",{type:"text",placeholder:"Ontology URI",value:l,onChange:x=>e(x.target.value),style:{...y,width:"300px",marginBottom:0}},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/OntologyWorkspace/VersionsTab.tsx",lineNumber:317,columnNumber:9},this)]},void 0,!0,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/OntologyWorkspace/VersionsTab.tsx",lineNumber:315,columnNumber:7},this),D?o.jsxDEV("div",{style:B,children:D},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/OntologyWorkspace/VersionsTab.tsx",lineNumber:324,columnNumber:16},this):null,o.jsxDEV("div",{style:_,children:[o.jsxDEV("h2",{style:$,children:[o.jsxDEV(qe,{size:16},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/OntologyWorkspace/VersionsTab.tsx",lineNumber:328,columnNumber:11},this),"Version History"]},void 0,!0,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/OntologyWorkspace/VersionsTab.tsx",lineNumber:327,columnNumber:9},this),o.jsxDEV("div",{style:M,children:s.length===0?o.jsxDEV("div",{style:{color:"#c99aa3",fontSize:"13px"},children:"No versions found"},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/OntologyWorkspace/VersionsTab.tsx",lineNumber:332,columnNumber:36},this):s.map(x=>o.jsxDEV("div",{style:F,children:[T(x.state),o.jsxDEV("div",{style:{flex:1},children:[o.jsxDEV("div",{style:{color:"#fff0f2",fontSize:"13px",fontWeight:"600"},children:x.version_id},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/OntologyWorkspace/VersionsTab.tsx",lineNumber:340,columnNumber:19},this),o.jsxDEV("div",{style:{color:"#c99aa3",fontSize:"11px"},children:[x.author," • ",new Date(x.date).toLocaleDateString()]},void 0,!0,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/OntologyWorkspace/VersionsTab.tsx",lineNumber:347,columnNumber:19},this)]},void 0,!0,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/OntologyWorkspace/VersionsTab.tsx",lineNumber:337,columnNumber:17},this),o.jsxDEV("button",{style:K,onClick:()=>{f({v1:x.version_id,v2:s[0]?.version_id||""}),g(!0)},children:[o.jsxDEV(Po,{size:12},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/OntologyWorkspace/VersionsTab.tsx",lineNumber:361,columnNumber:19},this),"Compare"]},void 0,!0,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/OntologyWorkspace/VersionsTab.tsx",lineNumber:354,columnNumber:17},this)]},x.version_id,!0,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/OntologyWorkspace/VersionsTab.tsx",lineNumber:335,columnNumber:62},this))},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/OntologyWorkspace/VersionsTab.tsx",lineNumber:331,columnNumber:9},this)]},void 0,!0,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/OntologyWorkspace/VersionsTab.tsx",lineNumber:326,columnNumber:7},this),o.jsxDEV("div",{style:_,children:[o.jsxDEV("h2",{style:$,children:[o.jsxDEV(De,{size:16},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/OntologyWorkspace/VersionsTab.tsx",lineNumber:370,columnNumber:11},this),"Change Proposals"]},void 0,!0,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/OntologyWorkspace/VersionsTab.tsx",lineNumber:369,columnNumber:9},this),o.jsxDEV("div",{style:M,children:t.length===0?o.jsxDEV("div",{style:{color:"#c99aa3",fontSize:"13px"},children:"No proposals found"},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/OntologyWorkspace/VersionsTab.tsx",lineNumber:374,columnNumber:37},this):t.map(x=>o.jsxDEV("div",{style:F,children:[T(x.state),o.jsxDEV("div",{style:{flex:1},children:[o.jsxDEV("div",{style:{color:"#fff0f2",fontSize:"13px",fontWeight:"600"},children:x.summary},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/OntologyWorkspace/VersionsTab.tsx",lineNumber:382,columnNumber:19},this),o.jsxDEV("div",{style:{color:"#c99aa3",fontSize:"11px"},children:[x.author," • ",new Date(x.created_at).toLocaleDateString()]},void 0,!0,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/OntologyWorkspace/VersionsTab.tsx",lineNumber:389,columnNumber:19},this)]},void 0,!0,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/OntologyWorkspace/VersionsTab.tsx",lineNumber:379,columnNumber:17},this),x.state==="proposed"&&o.jsxDEV("div",{style:{display:"flex",gap:"6px"},children:[o.jsxDEV("button",{style:K,onClick:()=>W(x.proposal_id),children:[o.jsxDEV(Ee,{size:12},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/OntologyWorkspace/VersionsTab.tsx",lineNumber:401,columnNumber:23},this),"Approve"]},void 0,!0,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/OntologyWorkspace/VersionsTab.tsx",lineNumber:400,columnNumber:21},this),o.jsxDEV("button",{style:K,onClick:()=>U(x.proposal_id),children:[o.jsxDEV(eo,{size:12},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/OntologyWorkspace/VersionsTab.tsx",lineNumber:405,columnNumber:23},this),"Reject"]},void 0,!0,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/OntologyWorkspace/VersionsTab.tsx",lineNumber:404,columnNumber:21},this)]},void 0,!0,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/OntologyWorkspace/VersionsTab.tsx",lineNumber:396,columnNumber:51},this),x.state==="approved"&&o.jsxDEV("button",{style:K,onClick:()=>O(x.proposal_id),children:[o.jsxDEV(vo,{size:12},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/OntologyWorkspace/VersionsTab.tsx",lineNumber:410,columnNumber:21},this),"Publish"]},void 0,!0,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/OntologyWorkspace/VersionsTab.tsx",lineNumber:409,columnNumber:51},this),o.jsxDEV("button",{style:K,onClick:()=>{c(x),p(!0)},children:[o.jsxDEV(Ao,{size:12},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/OntologyWorkspace/VersionsTab.tsx",lineNumber:417,columnNumber:19},this),"Details"]},void 0,!0,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/OntologyWorkspace/VersionsTab.tsx",lineNumber:413,columnNumber:17},this)]},x.proposal_id,!0,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/OntologyWorkspace/VersionsTab.tsx",lineNumber:377,columnNumber:65},this))},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/OntologyWorkspace/VersionsTab.tsx",lineNumber:373,columnNumber:9},this)]},void 0,!0,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/OntologyWorkspace/VersionsTab.tsx",lineNumber:368,columnNumber:7},this),m&&a&&o.jsxDEV("div",{style:q,onClick:()=>p(!1),children:o.jsxDEV("div",{style:J,onClick:x=>x.stopPropagation(),children:[o.jsxDEV("div",{style:{display:"flex",justifyContent:"space-between",marginBottom:"16px"},children:[o.jsxDEV("h3",{style:{margin:0,color:"#fff0f2",fontSize:"16px"},children:"Proposal Details"},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/OntologyWorkspace/VersionsTab.tsx",lineNumber:431,columnNumber:15},this),o.jsxDEV("button",{onClick:()=>p(!1),style:{background:"none",border:"none",color:"#c99aa3",cursor:"pointer"},children:o.jsxDEV(le,{size:18},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/OntologyWorkspace/VersionsTab.tsx",lineNumber:442,columnNumber:17},this)},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/OntologyWorkspace/VersionsTab.tsx",lineNumber:436,columnNumber:15},this)]},void 0,!0,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/OntologyWorkspace/VersionsTab.tsx",lineNumber:426,columnNumber:13},this),o.jsxDEV("div",{style:{marginBottom:"12px"},children:[o.jsxDEV("label",{style:{display:"block",color:"#c99aa3",fontSize:"12px",marginBottom:"4px"},children:"Summary"},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/OntologyWorkspace/VersionsTab.tsx",lineNumber:448,columnNumber:15},this),o.jsxDEV("div",{style:{color:"#fff0f2",fontSize:"13px"},children:a.summary},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/OntologyWorkspace/VersionsTab.tsx",lineNumber:456,columnNumber:15},this)]},void 0,!0,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/OntologyWorkspace/VersionsTab.tsx",lineNumber:445,columnNumber:13},this),o.jsxDEV("div",{style:{marginBottom:"12px"},children:[o.jsxDEV("label",{style:{display:"block",color:"#c99aa3",fontSize:"12px",marginBottom:"4px"},children:"State"},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/OntologyWorkspace/VersionsTab.tsx",lineNumber:464,columnNumber:15},this),o.jsxDEV("div",{style:{display:"flex",alignItems:"center",gap:"6px",color:"#fff0f2",fontSize:"13px"},children:[T(a.state),a.state]},void 0,!0,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/OntologyWorkspace/VersionsTab.tsx",lineNumber:472,columnNumber:15},this)]},void 0,!0,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/OntologyWorkspace/VersionsTab.tsx",lineNumber:461,columnNumber:13},this),o.jsxDEV("div",{style:{marginBottom:"12px"},children:[o.jsxDEV("label",{style:{display:"block",color:"#c99aa3",fontSize:"12px",marginBottom:"4px"},children:"Impact Analysis"},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/OntologyWorkspace/VersionsTab.tsx",lineNumber:486,columnNumber:15},this),o.jsxDEV("pre",{style:{background:"rgba(6, 3, 5, 0.8)",padding:"12px",borderRadius:"6px",color:"#fff0f2",fontSize:"12px",overflow:"auto"},children:JSON.stringify(a.impact_analysis,null,2)},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/OntologyWorkspace/VersionsTab.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/OntologyWorkspace/VersionsTab.tsx",lineNumber:483,columnNumber:13},this),o.jsxDEV("div",{style:{marginBottom:"12px"},children:[o.jsxDEV("label",{style:{display:"block",color:"#c99aa3",fontSize:"12px",marginBottom:"4px"},children:"SHACL Validation"},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/OntologyWorkspace/VersionsTab.tsx",lineNumber:508,columnNumber:15},this),o.jsxDEV("pre",{style:{background:"rgba(6, 3, 5, 0.8)",padding:"12px",borderRadius:"6px",color:"#fff0f2",fontSize:"12px",overflow:"auto"},children:JSON.stringify(a.shacl_validation,null,2)},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/OntologyWorkspace/VersionsTab.tsx",lineNumber:516,columnNumber:15},this)]},void 0,!0,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/OntologyWorkspace/VersionsTab.tsx",lineNumber:505,columnNumber:13},this),o.jsxDEV("div",{children:[o.jsxDEV("label",{style:{display:"block",color:"#c99aa3",fontSize:"12px",marginBottom:"4px"},children:["Comments (",a.comments.length,")"]},void 0,!0,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/OntologyWorkspace/VersionsTab.tsx",lineNumber:528,columnNumber:15},this),o.jsxDEV("div",{style:{maxHeight:"120px",overflow:"auto"},children:a.comments.map(x=>o.jsxDEV("div",{style:{padding:"8px",background:"rgba(6, 3, 5, 0.6)",borderRadius:"4px",marginBottom:"6px"},children:[o.jsxDEV("div",{style:{color:"#fff0f2",fontSize:"12px",fontWeight:"600"},children:x.author},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/OntologyWorkspace/VersionsTab.tsx",lineNumber:546,columnNumber:21},this),o.jsxDEV("div",{style:{color:"#c99aa3",fontSize:"11px"},children:x.text},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/OntologyWorkspace/VersionsTab.tsx",lineNumber:551,columnNumber:21},this)]},x.id,!0,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/OntologyWorkspace/VersionsTab.tsx",lineNumber:540,columnNumber:59},this))},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/OntologyWorkspace/VersionsTab.tsx",lineNumber:536,columnNumber:15},this)]},void 0,!0,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/OntologyWorkspace/VersionsTab.tsx",lineNumber:527,columnNumber:13},this)]},void 0,!0,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/OntologyWorkspace/VersionsTab.tsx",lineNumber:425,columnNumber:11},this)},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/OntologyWorkspace/VersionsTab.tsx",lineNumber:424,columnNumber:49},this),u&&d&&o.jsxDEV("div",{style:q,onClick:()=>g(!1),children:o.jsxDEV("div",{style:J,onClick:x=>x.stopPropagation(),children:[o.jsxDEV("div",{style:{display:"flex",justifyContent:"space-between",marginBottom:"16px"},children:[o.jsxDEV("h3",{style:{margin:0,color:"#fff0f2",fontSize:"16px"},children:"Compare Versions"},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/OntologyWorkspace/VersionsTab.tsx",lineNumber:568,columnNumber:15},this),o.jsxDEV("button",{onClick:()=>g(!1),style:{background:"none",border:"none",color:"#c99aa3",cursor:"pointer"},children:o.jsxDEV(le,{size:18},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/OntologyWorkspace/VersionsTab.tsx",lineNumber:579,columnNumber:17},this)},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/OntologyWorkspace/VersionsTab.tsx",lineNumber:573,columnNumber:15},this)]},void 0,!0,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/OntologyWorkspace/VersionsTab.tsx",lineNumber:563,columnNumber:13},this),o.jsxDEV("div",{style:{display:"flex",gap:"12px",marginBottom:"16px"},children:[o.jsxDEV("div",{style:{flex:1},children:[o.jsxDEV("label",{style:{display:"block",color:"#c99aa3",fontSize:"12px",marginBottom:"4px"},children:"Version 1"},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/OntologyWorkspace/VersionsTab.tsx",lineNumber:590,columnNumber:17},this),o.jsxDEV("input",{type:"text",value:d.v1,onChange:x=>f({...d,v1:x.target.value}),style:y},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/OntologyWorkspace/VersionsTab.tsx",lineNumber:598,columnNumber:17},this)]},void 0,!0,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/OntologyWorkspace/VersionsTab.tsx",lineNumber:587,columnNumber:15},this),o.jsxDEV("div",{style:{flex:1},children:[o.jsxDEV("label",{style:{display:"block",color:"#c99aa3",fontSize:"12px",marginBottom:"4px"},children:"Version 2"},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/OntologyWorkspace/VersionsTab.tsx",lineNumber:606,columnNumber:17},this),o.jsxDEV("input",{type:"text",value:d.v2,onChange:x=>f({...d,v2:x.target.value}),style:y},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/OntologyWorkspace/VersionsTab.tsx",lineNumber:614,columnNumber:17},this)]},void 0,!0,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/OntologyWorkspace/VersionsTab.tsx",lineNumber:603,columnNumber:15},this)]},void 0,!0,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/OntologyWorkspace/VersionsTab.tsx",lineNumber:582,columnNumber:13},this),o.jsxDEV("button",{style:K,onClick:L,disabled:N,children:[o.jsxDEV(Fo,{size:12},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/OntologyWorkspace/VersionsTab.tsx",lineNumber:621,columnNumber:15},this),N?"Comparing...":"Compare"]},void 0,!0,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/OntologyWorkspace/VersionsTab.tsx",lineNumber:620,columnNumber:13},this),h&&o.jsxDEV("pre",{style:{marginTop:"16px",background:"rgba(6, 3, 5, 0.8)",padding:"12px",borderRadius:"6px",color:"#fff0f2",fontSize:"12px",overflow:"auto"},children:JSON.stringify(h,null,2)},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/OntologyWorkspace/VersionsTab.tsx",lineNumber:624,columnNumber:31},this)]},void 0,!0,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/OntologyWorkspace/VersionsTab.tsx",lineNumber:562,columnNumber:11},this)},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/OntologyWorkspace/VersionsTab.tsx",lineNumber:561,columnNumber:43},this)]},void 0,!0,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/OntologyWorkspace/VersionsTab.tsx",lineNumber:314,columnNumber:10},this)}const zo=[{id:"registry",label:"Registry",icon:Do},{id:"editor",label:"Editor",icon:Ns},{id:"versions",label:"Versions",icon:qe},{id:"alignments",label:"Alignments",icon:De},{id:"health",label:"Health",icon:jo},{id:"shacl",label:"SHACL",icon:Je}];function Sr(){const{tab:l,entityUri:e}=So(),s=zo.find(n=>n.id===l);return s?s.id:e?"editor":"registry"}function zr(l){const e=P.c(22);if(e[0]!=="157a91b7e35d66443a2baa7575e67b80eb2ce0330e5c1903d5d9179f5cc2db73"){for(let v=0;v<22;v+=1)e[v]=Symbol.for("react.memo_cache_sentinel");e[0]="157a91b7e35d66443a2baa7575e67b80eb2ce0330e5c1903d5d9179f5cc2db73"}const{onJumpToGraphNode:s}=l,[n,t]=i.useState(Sr);let r,a;e[1]!==n?(r=()=>{Ko(n)},a=[n],e[1]=n,e[2]=r,e[3]=a):(r=e[2],a=e[3]),i.useEffect(r,a);let c;e[4]===Symbol.for("react.memo_cache_sentinel")?(c=v=>{t(v)},e[4]=c):c=e[4];const m=c;let p;e[5]===Symbol.for("react.memo_cache_sentinel")?(p=v=>{xo(v),t("editor")},e[5]=p):p=e[5];const u=p;let g;e[6]!==n||e[7]!==s?(g=()=>{switch(n){case"registry":return o.jsxDEV(ut,{},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/OntologyWorkspace/index.tsx",lineNumber:108,columnNumber:20},this);case"editor":return o.jsxDEV(Qt,{},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/OntologyWorkspace/index.tsx",lineNumber:112,columnNumber:20},this);case"versions":return o.jsxDEV(xr,{},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/OntologyWorkspace/index.tsx",lineNumber:116,columnNumber:20},this);case"alignments":return o.jsxDEV(Bs,{},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/OntologyWorkspace/index.tsx",lineNumber:120,columnNumber:20},this);case"health":return o.jsxDEV(pa,{onFixInEditor:u},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/OntologyWorkspace/index.tsx",lineNumber:124,columnNumber:20},this);case"shacl":return o.jsxDEV(Xt,{onJumpToNode:s},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/OntologyWorkspace/index.tsx",lineNumber:128,columnNumber:20},this)}},e[6]=n,e[7]=s,e[8]=g):g=e[8];const d=g;let f;e[9]===Symbol.for("react.memo_cache_sentinel")?(f={display:"flex",gap:4,padding:"8px 16px",borderBottom:"1px solid var(--ws-border)",background:"rgba(0,0,0,0.18)",flexShrink:0,flexWrap:"wrap"},e[9]=f):f=e[9];let h;e[10]!==n?(h=zo.map(v=>{const{id:V,label:W,icon:U}=v,O=n===V;return o.jsxDEV("button",{onClick:()=>m(V),style:{display:"inline-flex",alignItems:"center",gap:6,padding:"6px 13px",borderRadius:999,border:`1px solid ${O?"var(--ws-border-strong)":"transparent"}`,background:O?"var(--ws-accent-soft)":"transparent",color:O?"var(--ws-text)":"var(--ws-text-muted)",fontSize:12,fontWeight:600,cursor:"pointer",transition:"160ms ease"},children:[o.jsxDEV(U,{size:13},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/OntologyWorkspace/index.tsx",lineNumber:176,columnNumber:10},this),W]},V,!0,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/OntologyWorkspace/index.tsx",lineNumber:163,columnNumber:14},this)}),e[10]=n,e[11]=h):h=e[11];let S;e[12]!==h?(S=o.jsxDEV("div",{style:f,children:h},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/OntologyWorkspace/index.tsx",lineNumber:185,columnNumber:10},this),e[12]=h,e[13]=S):S=e[13];let N;e[14]===Symbol.for("react.memo_cache_sentinel")?(N={flex:1,minHeight:0,overflow:"hidden"},e[14]=N):N=e[14];let A;e[15]!==d?(A=d(),e[15]=d,e[16]=A):A=e[16];let D;e[17]!==A?(D=o.jsxDEV("div",{style:N,children:A},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/OntologyWorkspace/index.tsx",lineNumber:212,columnNumber:11},this),e[17]=A,e[18]=D):D=e[18];let k;return e[19]!==D||e[20]!==S?(k=o.jsxDEV("div",{className:"ws-page",children:[S,D]},void 0,!0,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/OntologyWorkspace/index.tsx",lineNumber:220,columnNumber:11},this),e[19]=D,e[20]=S,e[21]=k):k=e[21],k}export{zr as OntologyWorkspace};