@ltm-blueverse/alpha-hub-studio 0.7.0 → 0.7.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -20
- package/package.json +6 -17
- package/static/assets/DecisionWorkspace-BbxYoPCv.js +1 -0
- package/static/assets/{DiffMergeWorkspace-C8yIdDC7.js → DiffMergeWorkspace-I9BcvT3J.js} +1 -1
- package/static/assets/EntityResolutionTab-DZME6ngq.js +6 -0
- package/static/assets/{GraphInspectorPanel-Bbrbhd03.js → GraphInspectorPanel-ZkQtr_Oa.js} +1 -1
- package/static/assets/{GraphWorkspace-AxTFEhNP.js → GraphWorkspace-DjKI1vje.js} +37 -37
- package/static/assets/{ImportExportWorkspace-BK3TofDv.js → ImportExportWorkspace-FesluaxV.js} +2 -2
- package/static/assets/KGOverviewTab-CIuFOyUa.js +1 -0
- package/static/assets/LineageDiagram-BlTkwTG_.js +27 -0
- package/static/assets/{MarkdownContentViewer-Chx4ysCK.js → MarkdownContentViewer-B2I-lKUf.js} +4 -4
- package/static/assets/{MemoryWorkspace-CIjaTN_S.js → MemoryWorkspace-CbGHQGJQ.js} +2 -2
- package/static/assets/{OntologySummaryTab-NJ3ZrkoJ.js → OntologySummaryTab-Q3rXi9jh.js} +1 -1
- package/static/assets/{ReasoningWorkspace-B127Rd-S.js → ReasoningWorkspace-DSYffkef.js} +2 -2
- package/static/assets/RegistryTab-C9IfTx8j.js +11 -0
- package/static/assets/{SparqlWorkspace-RwPj2YK7.js → SparqlWorkspace-BHAlhIXU.js} +3 -3
- package/static/assets/{TimelinePanel-DmtiXgmN.js → TimelinePanel-D50aWGS7.js} +1 -1
- package/static/assets/{VocabularyWorkspace-YF9waL5N.js → VocabularyWorkspace-BUFmkjyq.js} +6 -6
- package/static/assets/{book-open-BqEIxx1e.js → book-open-CEYwt1ql.js} +1 -1
- package/static/assets/{chevron-right-CiEuNwKq.js → chevron-right-BnjhfQ0S.js} +1 -1
- package/static/assets/{circle-check-BToWKwbO.js → circle-check-CzC458Im.js} +1 -1
- package/static/assets/{copy-BfQXGhHP.js → copy-D1MBJLmb.js} +1 -1
- package/static/assets/{download-gQOgYz3q.js → download-BiH8WZKH.js} +1 -1
- package/static/assets/{external-link-DqNu6T-f.js → external-link-BRF01S2q.js} +1 -1
- package/static/assets/{file-text-Bbz-r0FQ.js → file-text-bY52r7Yt.js} +1 -1
- package/static/assets/{git-branch-B8yDcUSY.js → git-branch-apSLSDgQ.js} +1 -1
- package/static/assets/graphTheme-DCTRN8Qm.js +6 -0
- package/static/assets/{index-Bt8w1Tz_.css → index-3PtcB4_T.css} +1 -1
- package/static/assets/{index-DHWWI-uw.js → index-CVYHt6Z6.js} +81 -81
- package/static/assets/{index-Dli_3Iwd.js → index-D0ErQ1c2.js} +1 -1
- package/static/assets/{index-DtC_GayB.js → index-D1_G_our.js} +1 -1
- package/static/assets/index-DPG7Yem6.js +127 -0
- package/static/assets/{info-vaffNQOD.js → info-Bxj0ofiy.js} +1 -1
- package/static/assets/{layers-Cct6D_wK.js → layers-CXZNgF0V.js} +1 -1
- package/static/assets/{loader-circle-C8NUmtFx.js → loader-circle-CmyLCPAg.js} +1 -1
- package/static/assets/{neighborhoodPanelPlugin-w1yJlm0A.js → neighborhoodPanelPlugin-gLy7GAga.js} +1 -1
- package/static/assets/{pencil-DYlEC6ri.js → pencil-COLtDS12.js} +1 -1
- package/static/assets/{play-G1gyOk2a.js → play-CG0LOI9D.js} +1 -1
- package/static/assets/{queries-CYtdSB4H.js → queries-AYIcORqv.js} +1 -1
- package/static/assets/{refresh-cw-CL9OXZ89.js → refresh-cw-B1c5rNMc.js} +1 -1
- package/static/assets/{registryStore-MVt_NgVV.js → registryStore-BPopBcrC.js} +1 -1
- package/static/assets/{style-D8TqSrGs.js → style-DGS084C0.js} +1 -1
- package/static/assets/temporalOverlayPlugin-DzF7xO4p.js +1 -0
- package/static/assets/{trash-2-DiZNV6Gj.js → trash-2-CLBVEYNO.js} +1 -1
- package/static/assets/{x-DpqMYq96.js → x-lyk2jiOu.js} +1 -1
- package/static/index.html +3 -3
- package/static/assets/DecisionWorkspace-DG6zPNls.js +0 -1
- package/static/assets/EntityResolutionTab-RBysMLhB.js +0 -6
- package/static/assets/KGOverviewTab-D9EWKL_n.js +0 -1
- package/static/assets/LineageDiagram-XxBVa1Ij.js +0 -27
- package/static/assets/RegistryTab-BE2-yKLC.js +0 -11
- package/static/assets/graphTheme-DNKLxzKZ.js +0 -6
- package/static/assets/index-MVDNL3vw.js +0 -127
- package/static/assets/temporalOverlayPlugin-CRhLa1FU.js +0 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{b as sn,c as ae,j as m}from"./index-
|
|
1
|
+
import{b as sn,c as ae,j as m}from"./index-CVYHt6Z6.js";import{a as v,R as ar,j as O,g as un}from"./query-vendor-BqVbYexz.js";import{u as ln,a as cn,b as dn}from"./queries-AYIcORqv.js";import{C as fn,a as pn}from"./chevron-right-BnjhfQ0S.js";import{F as hn}from"./file-text-bY52r7Yt.js";import{r as gn}from"./index-C00aFykz.js";import{u as mn,C as vn}from"./index-D0ErQ1c2.js";import{L as yn}from"./loader-circle-CmyLCPAg.js";import{C as bn}from"./circle-check-CzC458Im.js";/**
|
|
2
2
|
* @license lucide-react v1.8.0 - ISC
|
|
3
3
|
*
|
|
4
4
|
* This source code is licensed under the ISC license.
|
|
@@ -13,12 +13,12 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
13
13
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function us(t,e){if(t){if(typeof t=="string")return qt(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);if(r==="Object"&&t.constructor&&(r=t.constructor.name),r==="Map"||r==="Set")return Array.from(t);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return qt(t,e)}}function qt(t,e){(e==null||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function ls(t,e){var r=t==null?null:typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(r!=null){var n=[],i=!0,o=!1,a,s;try{for(r=r.call(t);!(i=(a=r.next()).done)&&(n.push(a.value),!(e&&n.length===e));i=!0);}catch(u){o=!0,s=u}finally{try{!i&&r.return!=null&&r.return()}finally{if(o)throw s}}return n}}function cs(t){if(Array.isArray(t))return t}function ds(t,e,r){var n=B(),i=os(t,e),o=es(t);F(function(){var s=ma(o,i,n),u=as(s,2),c=u[0],d=u[1];return e.receiveHandlerId(c),r.receiveHandlerId(c),d},[n,e,i,r,o.map(function(a){return a.toString()}).join("|")])}function fs(){var t=B();return v.useMemo(function(){return new ia(t)},[t])}function ps(t){var e=B(),r=v.useMemo(function(){return new ga(e.getBackend())},[e]);return F(function(){return r.dropTargetOptions=t||null,r.reconnect(),function(){return r.disconnectDropTarget()}},[t]),r}function hs(t){return v.useMemo(function(){return t.hooks.dropTarget()},[t])}function Mr(t,e){var r=Rr(t,e),n=fs(),i=ps(r.options);return ds(r,n,i),[Hr(r.collect,n,i),hs(i)]}function gs(t,e){return bs(t)||ys(t,e)||vs(t,e)||ms()}function ms(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
14
14
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function vs(t,e){if(t){if(typeof t=="string")return Kt(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);if(r==="Object"&&t.constructor&&(r=t.constructor.name),r==="Map"||r==="Set")return Array.from(t);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Kt(t,e)}}function Kt(t,e){(e==null||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function ys(t,e){var r=t==null?null:typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(r!=null){var n=[],i=!0,o=!1,a,s;try{for(r=r.call(t);!(i=(a=r.next()).done)&&(n.push(a.value),!(e&&n.length===e));i=!0);}catch(u){o=!0,s=u}finally{try{!i&&r.return!=null&&r.return()}finally{if(o)throw s}}return n}}function bs(t){if(Array.isArray(t))return t}function Ss(t){var e=B(),r=e.getMonitor(),n=Lr(r,t),i=gs(n,2),o=i[0],a=i[1];return v.useEffect(function(){return r.subscribeToOffsetChange(a)}),v.useEffect(function(){return r.subscribeToStateChange(a)}),o}function $r(t){var e=null,r=function(){return e==null&&(e=t()),e};return r}function Ds(t,e){return t.filter(function(r){return r!==e})}function Is(t,e){var r=new Set,n=function(a){return r.add(a)};t.forEach(n),e.forEach(n);var i=[];return r.forEach(function(o){return i.push(o)}),i}function ws(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Os(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}function xs(t,e,r){return e&&Os(t.prototype,e),t}function Yt(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var Ts=(function(){function t(e){ws(this,t),Yt(this,"entered",[]),Yt(this,"isNodeInDocument",void 0),this.isNodeInDocument=e}return xs(t,[{key:"enter",value:function(r){var n=this,i=this.entered.length,o=function(s){return n.isNodeInDocument(s)&&(!s.contains||s.contains(r))};return this.entered=Is(this.entered.filter(o),[r]),i===0&&this.entered.length>0}},{key:"leave",value:function(r){var n=this.entered.length;return this.entered=Ds(this.entered.filter(this.isNodeInDocument),r),n>0&&this.entered.length===0}},{key:"reset",value:function(){this.entered=[]}}]),t})(),Es=$r(function(){return/firefox/i.test(navigator.userAgent)}),Vr=$r(function(){return!!window.safari});function Cs(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Ns(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}function ks(t,e,r){return e&&Ns(t.prototype,e),t}function re(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var Gt=(function(){function t(e,r){Cs(this,t),re(this,"xs",void 0),re(this,"ys",void 0),re(this,"c1s",void 0),re(this,"c2s",void 0),re(this,"c3s",void 0);for(var n=e.length,i=[],o=0;o<n;o++)i.push(o);i.sort(function(N,k){return e[N]<e[k]?-1:1});for(var a=[],s=[],u,c,d=0;d<n-1;d++)u=e[d+1]-e[d],c=r[d+1]-r[d],a.push(u),s.push(c/u);for(var h=[s[0]],y=0;y<a.length-1;y++){var b=s[y],D=s[y+1];if(b*D<=0)h.push(0);else{u=a[y];var l=a[y+1],f=u+l;h.push(3*f/((f+l)/b+(f+u)/D))}}h.push(s[s.length-1]);for(var p=[],g=[],S,w=0;w<h.length-1;w++){S=s[w];var I=h[w],T=1/a[w],E=I+h[w+1]-S-S;p.push((S-I-E)*T),g.push(E*T*T)}this.xs=e,this.ys=r,this.c1s=h,this.c2s=p,this.c3s=g}return ks(t,[{key:"interpolate",value:function(r){var n=this.xs,i=this.ys,o=this.c1s,a=this.c2s,s=this.c3s,u=n.length-1;if(r===n[u])return i[u];for(var c=0,d=s.length-1,h;c<=d;){h=Math.floor(.5*(c+d));var y=n[h];if(y<r)c=h+1;else if(y>r)d=h-1;else return i[h]}u=Math.max(0,d);var b=r-n[u],D=b*b;return i[u]+o[u]*b+a[u]*D+s[u]*b*D}}]),t})(),_s=1;function Ur(t){var e=t.nodeType===_s?t:t.parentElement;if(!e)return null;var r=e.getBoundingClientRect(),n=r.top,i=r.left;return{x:i,y:n}}function ue(t){return{x:t.clientX,y:t.clientY}}function As(t){var e;return t.nodeName==="IMG"&&(Es()||!((e=document.documentElement)!==null&&e!==void 0&&e.contains(t)))}function Ps(t,e,r,n){var i=t?e.width:r,o=t?e.height:n;return Vr()&&t&&(o/=window.devicePixelRatio,i/=window.devicePixelRatio),{dragPreviewWidth:i,dragPreviewHeight:o}}function js(t,e,r,n,i){var o=As(e),a=o?t:e,s=Ur(a),u={x:r.x-s.x,y:r.y-s.y},c=t.offsetWidth,d=t.offsetHeight,h=n.anchorX,y=n.anchorY,b=Ps(o,e,c,d),D=b.dragPreviewWidth,l=b.dragPreviewHeight,f=function(){var E=new Gt([0,.5,1],[u.y,u.y/d*l,u.y+l-d]),N=E.interpolate(y);return Vr()&&o&&(N+=(window.devicePixelRatio-1)*l),N},p=function(){var E=new Gt([0,.5,1],[u.x,u.x/c*D,u.x+D-c]);return E.interpolate(h)},g=i.offsetX,S=i.offsetY,w=g===0||g,I=S===0||S;return{x:w?g:p(),y:I?S:f()}}var Wr="__NATIVE_FILE__",zr="__NATIVE_URL__",Fr="__NATIVE_TEXT__",Br="__NATIVE_HTML__";const Xt=Object.freeze(Object.defineProperty({__proto__:null,FILE:Wr,HTML:Br,TEXT:Fr,URL:zr},Symbol.toStringTag,{value:"Module"}));function He(t,e,r){var n=e.reduce(function(i,o){return i||t.getData(o)},"");return n??r}var X;function le(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var Je=(X={},le(X,Wr,{exposeProperties:{files:function(e){return Array.prototype.slice.call(e.files)},items:function(e){return e.items},dataTransfer:function(e){return e}},matchesTypes:["Files"]}),le(X,Br,{exposeProperties:{html:function(e,r){return He(e,r,"")},dataTransfer:function(e){return e}},matchesTypes:["Html","text/html"]}),le(X,zr,{exposeProperties:{urls:function(e,r){return He(e,r,"").split(`
|
|
15
15
|
`)},dataTransfer:function(e){return e}},matchesTypes:["Url","text/uri-list"]}),le(X,Fr,{exposeProperties:{text:function(e,r){return He(e,r,"")},dataTransfer:function(e){return e}},matchesTypes:["Text","text/plain"]}),X);function Rs(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Ls(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}function Hs(t,e,r){return e&&Ls(t.prototype,e),t}function Qt(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var Ms=(function(){function t(e){Rs(this,t),Qt(this,"item",void 0),Qt(this,"config",void 0),this.config=e,this.item={},this.initializeExposedProperties()}return Hs(t,[{key:"initializeExposedProperties",value:function(){var r=this;Object.keys(this.config.exposeProperties).forEach(function(n){Object.defineProperty(r.item,n,{configurable:!0,enumerable:!0,get:function(){return console.warn(`Browser doesn't allow reading "`.concat(n,'" until the drop event.')),null}})})}},{key:"loadDataTransfer",value:function(r){var n=this;if(r){var i={};Object.keys(this.config.exposeProperties).forEach(function(o){i[o]={value:n.config.exposeProperties[o](r,n.config.matchesTypes),configurable:!0,enumerable:!0}}),Object.defineProperties(this.item,i)}}},{key:"canDrag",value:function(){return!0}},{key:"beginDrag",value:function(){return this.item}},{key:"isDragging",value:function(r,n){return n===r.getSourceId()}},{key:"endDrag",value:function(){}}]),t})();function $s(t,e){var r=new Ms(Je[t]);return r.loadDataTransfer(e),r}function Me(t){if(!t)return null;var e=Array.prototype.slice.call(t.types||[]);return Object.keys(Je).filter(function(r){var n=Je[r].matchesTypes;return n.some(function(i){return e.indexOf(i)>-1})})[0]||null}function Vs(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Us(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}function Ws(t,e,r){return e&&Us(t.prototype,e),t}function $e(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var zs=(function(){function t(e,r){Vs(this,t),$e(this,"ownerDocument",null),$e(this,"globalContext",void 0),$e(this,"optionsArgs",void 0),this.globalContext=e,this.optionsArgs=r}return Ws(t,[{key:"window",get:function(){if(this.globalContext)return this.globalContext;if(typeof window<"u")return window}},{key:"document",get:function(){var r;return(r=this.globalContext)!==null&&r!==void 0&&r.document?this.globalContext.document:this.window?this.window.document:void 0}},{key:"rootElement",get:function(){var r;return((r=this.optionsArgs)===null||r===void 0?void 0:r.rootElement)||this.window}}]),t})();function Jt(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),r.push.apply(r,n)}return r}function Zt(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?Jt(Object(r),!0).forEach(function(n){C(t,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Jt(Object(r)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(r,n))})}return t}function Fs(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Bs(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}function qs(t,e,r){return e&&Bs(t.prototype,e),t}function C(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var Ks=(function(){function t(e,r,n){var i=this;Fs(this,t),C(this,"options",void 0),C(this,"actions",void 0),C(this,"monitor",void 0),C(this,"registry",void 0),C(this,"enterLeaveCounter",void 0),C(this,"sourcePreviewNodes",new Map),C(this,"sourcePreviewNodeOptions",new Map),C(this,"sourceNodes",new Map),C(this,"sourceNodeOptions",new Map),C(this,"dragStartSourceIds",null),C(this,"dropTargetIds",[]),C(this,"dragEnterTargetIds",[]),C(this,"currentNativeSource",null),C(this,"currentNativeHandle",null),C(this,"currentDragSourceNode",null),C(this,"altKeyPressed",!1),C(this,"mouseMoveTimeoutTimer",null),C(this,"asyncEndDragFrameId",null),C(this,"dragOverTargetIds",null),C(this,"lastClientOffset",null),C(this,"hoverRafId",null),C(this,"getSourceClientOffset",function(o){var a=i.sourceNodes.get(o);return a&&Ur(a)||null}),C(this,"endDragNativeItem",function(){i.isDraggingNativeItem()&&(i.actions.endDrag(),i.currentNativeHandle&&i.registry.removeSource(i.currentNativeHandle),i.currentNativeHandle=null,i.currentNativeSource=null)}),C(this,"isNodeInDocument",function(o){return!!(o&&i.document&&i.document.body&&i.document.body.contains(o))}),C(this,"endDragIfSourceWasRemovedFromDOM",function(){var o=i.currentDragSourceNode;o==null||i.isNodeInDocument(o)||i.clearCurrentDragSourceNode()&&i.monitor.isDragging()&&i.actions.endDrag()}),C(this,"handleTopDragStartCapture",function(){i.clearCurrentDragSourceNode(),i.dragStartSourceIds=[]}),C(this,"handleTopDragStart",function(o){if(!o.defaultPrevented){var a=i.dragStartSourceIds;i.dragStartSourceIds=null;var s=ue(o);i.monitor.isDragging()&&i.actions.endDrag(),i.actions.beginDrag(a||[],{publishSource:!1,getSourceClientOffset:i.getSourceClientOffset,clientOffset:s});var u=o.dataTransfer,c=Me(u);if(i.monitor.isDragging()){if(u&&typeof u.setDragImage=="function"){var d=i.monitor.getSourceId(),h=i.sourceNodes.get(d),y=i.sourcePreviewNodes.get(d)||h;if(y){var b=i.getCurrentSourcePreviewNodeOptions(),D=b.anchorX,l=b.anchorY,f=b.offsetX,p=b.offsetY,g={anchorX:D,anchorY:l},S={offsetX:f,offsetY:p},w=js(h,y,s,g,S);u.setDragImage(y,w.x,w.y)}}try{u?.setData("application/json",{})}catch{}i.setCurrentDragSourceNode(o.target);var I=i.getCurrentSourcePreviewNodeOptions(),T=I.captureDraggingState;T?i.actions.publishDragSource():setTimeout(function(){return i.actions.publishDragSource()},0)}else if(c)i.beginDragNativeItem(c);else{if(u&&!u.types&&(o.target&&!o.target.hasAttribute||!o.target.hasAttribute("draggable")))return;o.preventDefault()}}}),C(this,"handleTopDragEndCapture",function(){i.clearCurrentDragSourceNode()&&i.monitor.isDragging()&&i.actions.endDrag()}),C(this,"handleTopDragEnterCapture",function(o){i.dragEnterTargetIds=[];var a=i.enterLeaveCounter.enter(o.target);if(!(!a||i.monitor.isDragging())){var s=o.dataTransfer,u=Me(s);u&&i.beginDragNativeItem(u,s)}}),C(this,"handleTopDragEnter",function(o){var a=i.dragEnterTargetIds;if(i.dragEnterTargetIds=[],!!i.monitor.isDragging()){i.altKeyPressed=o.altKey,a.length>0&&i.actions.hover(a,{clientOffset:ue(o)});var s=a.some(function(u){return i.monitor.canDropOnTarget(u)});s&&(o.preventDefault(),o.dataTransfer&&(o.dataTransfer.dropEffect=i.getCurrentDropEffect()))}}),C(this,"handleTopDragOverCapture",function(){i.dragOverTargetIds=[]}),C(this,"handleTopDragOver",function(o){var a=i.dragOverTargetIds;if(i.dragOverTargetIds=[],!i.monitor.isDragging()){o.preventDefault(),o.dataTransfer&&(o.dataTransfer.dropEffect="none");return}i.altKeyPressed=o.altKey,i.lastClientOffset=ue(o),i.hoverRafId===null&&typeof requestAnimationFrame<"u"&&(i.hoverRafId=requestAnimationFrame(function(){i.monitor.isDragging()&&i.actions.hover(a||[],{clientOffset:i.lastClientOffset}),i.hoverRafId=null}));var s=(a||[]).some(function(u){return i.monitor.canDropOnTarget(u)});s?(o.preventDefault(),o.dataTransfer&&(o.dataTransfer.dropEffect=i.getCurrentDropEffect())):i.isDraggingNativeItem()?o.preventDefault():(o.preventDefault(),o.dataTransfer&&(o.dataTransfer.dropEffect="none"))}),C(this,"handleTopDragLeaveCapture",function(o){i.isDraggingNativeItem()&&o.preventDefault();var a=i.enterLeaveCounter.leave(o.target);a&&i.isDraggingNativeItem()&&setTimeout(function(){return i.endDragNativeItem()},0)}),C(this,"handleTopDropCapture",function(o){if(i.dropTargetIds=[],i.isDraggingNativeItem()){var a;o.preventDefault(),(a=i.currentNativeSource)===null||a===void 0||a.loadDataTransfer(o.dataTransfer)}else Me(o.dataTransfer)&&o.preventDefault();i.enterLeaveCounter.reset()}),C(this,"handleTopDrop",function(o){var a=i.dropTargetIds;i.dropTargetIds=[],i.actions.hover(a,{clientOffset:ue(o)}),i.actions.drop({dropEffect:i.getCurrentDropEffect()}),i.isDraggingNativeItem()?i.endDragNativeItem():i.monitor.isDragging()&&i.actions.endDrag()}),C(this,"handleSelectStart",function(o){var a=o.target;typeof a.dragDrop=="function"&&(a.tagName==="INPUT"||a.tagName==="SELECT"||a.tagName==="TEXTAREA"||a.isContentEditable||(o.preventDefault(),a.dragDrop()))}),this.options=new zs(r,n),this.actions=e.getActions(),this.monitor=e.getMonitor(),this.registry=e.getRegistry(),this.enterLeaveCounter=new Ts(this.isNodeInDocument)}return qs(t,[{key:"profile",value:function(){var r,n;return{sourcePreviewNodes:this.sourcePreviewNodes.size,sourcePreviewNodeOptions:this.sourcePreviewNodeOptions.size,sourceNodeOptions:this.sourceNodeOptions.size,sourceNodes:this.sourceNodes.size,dragStartSourceIds:((r=this.dragStartSourceIds)===null||r===void 0?void 0:r.length)||0,dropTargetIds:this.dropTargetIds.length,dragEnterTargetIds:this.dragEnterTargetIds.length,dragOverTargetIds:((n=this.dragOverTargetIds)===null||n===void 0?void 0:n.length)||0}}},{key:"window",get:function(){return this.options.window}},{key:"document",get:function(){return this.options.document}},{key:"rootElement",get:function(){return this.options.rootElement}},{key:"setup",value:function(){var r=this.rootElement;if(r!==void 0){if(r.__isReactDndBackendSetUp)throw new Error("Cannot have two HTML5 backends at the same time.");r.__isReactDndBackendSetUp=!0,this.addEventListeners(r)}}},{key:"teardown",value:function(){var r=this.rootElement;if(r!==void 0&&(r.__isReactDndBackendSetUp=!1,this.removeEventListeners(this.rootElement),this.clearCurrentDragSourceNode(),this.asyncEndDragFrameId)){var n;(n=this.window)===null||n===void 0||n.cancelAnimationFrame(this.asyncEndDragFrameId)}}},{key:"connectDragPreview",value:function(r,n,i){var o=this;return this.sourcePreviewNodeOptions.set(r,i),this.sourcePreviewNodes.set(r,n),function(){o.sourcePreviewNodes.delete(r),o.sourcePreviewNodeOptions.delete(r)}}},{key:"connectDragSource",value:function(r,n,i){var o=this;this.sourceNodes.set(r,n),this.sourceNodeOptions.set(r,i);var a=function(c){return o.handleDragStart(c,r)},s=function(c){return o.handleSelectStart(c)};return n.setAttribute("draggable","true"),n.addEventListener("dragstart",a),n.addEventListener("selectstart",s),function(){o.sourceNodes.delete(r),o.sourceNodeOptions.delete(r),n.removeEventListener("dragstart",a),n.removeEventListener("selectstart",s),n.setAttribute("draggable","false")}}},{key:"connectDropTarget",value:function(r,n){var i=this,o=function(c){return i.handleDragEnter(c,r)},a=function(c){return i.handleDragOver(c,r)},s=function(c){return i.handleDrop(c,r)};return n.addEventListener("dragenter",o),n.addEventListener("dragover",a),n.addEventListener("drop",s),function(){n.removeEventListener("dragenter",o),n.removeEventListener("dragover",a),n.removeEventListener("drop",s)}}},{key:"addEventListeners",value:function(r){r.addEventListener&&(r.addEventListener("dragstart",this.handleTopDragStart),r.addEventListener("dragstart",this.handleTopDragStartCapture,!0),r.addEventListener("dragend",this.handleTopDragEndCapture,!0),r.addEventListener("dragenter",this.handleTopDragEnter),r.addEventListener("dragenter",this.handleTopDragEnterCapture,!0),r.addEventListener("dragleave",this.handleTopDragLeaveCapture,!0),r.addEventListener("dragover",this.handleTopDragOver),r.addEventListener("dragover",this.handleTopDragOverCapture,!0),r.addEventListener("drop",this.handleTopDrop),r.addEventListener("drop",this.handleTopDropCapture,!0))}},{key:"removeEventListeners",value:function(r){r.removeEventListener&&(r.removeEventListener("dragstart",this.handleTopDragStart),r.removeEventListener("dragstart",this.handleTopDragStartCapture,!0),r.removeEventListener("dragend",this.handleTopDragEndCapture,!0),r.removeEventListener("dragenter",this.handleTopDragEnter),r.removeEventListener("dragenter",this.handleTopDragEnterCapture,!0),r.removeEventListener("dragleave",this.handleTopDragLeaveCapture,!0),r.removeEventListener("dragover",this.handleTopDragOver),r.removeEventListener("dragover",this.handleTopDragOverCapture,!0),r.removeEventListener("drop",this.handleTopDrop),r.removeEventListener("drop",this.handleTopDropCapture,!0))}},{key:"getCurrentSourceNodeOptions",value:function(){var r=this.monitor.getSourceId(),n=this.sourceNodeOptions.get(r);return Zt({dropEffect:this.altKeyPressed?"copy":"move"},n||{})}},{key:"getCurrentDropEffect",value:function(){return this.isDraggingNativeItem()?"copy":this.getCurrentSourceNodeOptions().dropEffect}},{key:"getCurrentSourcePreviewNodeOptions",value:function(){var r=this.monitor.getSourceId(),n=this.sourcePreviewNodeOptions.get(r);return Zt({anchorX:.5,anchorY:.5,captureDraggingState:!1},n||{})}},{key:"isDraggingNativeItem",value:function(){var r=this.monitor.getItemType();return Object.keys(Xt).some(function(n){return Xt[n]===r})}},{key:"beginDragNativeItem",value:function(r,n){this.clearCurrentDragSourceNode(),this.currentNativeSource=$s(r,n),this.currentNativeHandle=this.registry.addSource(r,this.currentNativeSource),this.actions.beginDrag([this.currentNativeHandle])}},{key:"setCurrentDragSourceNode",value:function(r){var n=this;this.clearCurrentDragSourceNode(),this.currentDragSourceNode=r;var i=1e3;this.mouseMoveTimeoutTimer=setTimeout(function(){var o;return(o=n.rootElement)===null||o===void 0?void 0:o.addEventListener("mousemove",n.endDragIfSourceWasRemovedFromDOM,!0)},i)}},{key:"clearCurrentDragSourceNode",value:function(){if(this.currentDragSourceNode){if(this.currentDragSourceNode=null,this.rootElement){var r;(r=this.window)===null||r===void 0||r.clearTimeout(this.mouseMoveTimeoutTimer||void 0),this.rootElement.removeEventListener("mousemove",this.endDragIfSourceWasRemovedFromDOM,!0)}return this.mouseMoveTimeoutTimer=null,!0}return!1}},{key:"handleDragStart",value:function(r,n){r.defaultPrevented||(this.dragStartSourceIds||(this.dragStartSourceIds=[]),this.dragStartSourceIds.unshift(n))}},{key:"handleDragEnter",value:function(r,n){this.dragEnterTargetIds.unshift(n)}},{key:"handleDragOver",value:function(r,n){this.dragOverTargetIds===null&&(this.dragOverTargetIds=[]),this.dragOverTargetIds.unshift(n)}},{key:"handleDrop",value:function(r,n){this.dropTargetIds.unshift(n)}}]),t})(),ce;function Ys(){return ce||(ce=new Image,ce.src="data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw=="),ce}var Gs=function(e,r,n){return new Ks(e,r,n)};function Xs(t){const e=P(),r=e.selectedIds,[n,i,o]=Za(()=>({canDrag:()=>t.isDraggable,type:"NODE",item:()=>{const a=e.isSelected(t.id)?Array.from(r):[t.id];return e.dispatch(Z.dragStart(t.id,a)),{id:t.id,dragIds:a}},end:()=>{e.hideCursor(),e.dispatch(Z.dragEnd())}}),[r,t]);return v.useEffect(()=>{o(Ys())},[o]),i}function Qs(t,e){const r=t.getBoundingClientRect(),n=e.x-Math.round(r.x),i=e.y-Math.round(r.y),o=r.height,a=i<o/2,s=!a,u=o/4,c=i>u&&i<o-u;return{x:n,inTopHalf:a,inBottomHalf:s,inMiddle:c,atTop:!c&&a,atBottom:!c&&s}}function Js(t,e,r,n){return t?t.isInternal?n.atTop?[e,t]:n.inMiddle?[t,t]:[t,r]:n.inTopHalf?[e,t]:[t,r]:[e,null]}function de(t,e){return{parentId:t||null,index:e}}function Q(t,e){return{type:"line",index:t,level:e}}function Zs(t){return{type:"highlight",id:t}}function Ve(t,e){var r;let n=t;for(;n.parent&&n.level>e;)n=n.parent;const i=((r=n.parent)===null||r===void 0?void 0:r.id)||null,o=mr(n)+1;return{parentId:i,index:o}}function qr(t){var e;const r=Qs(t.element,t.offset),n=t.indent,i=Math.round(Math.max(0,r.x-n)/n),{node:o,nextNode:a,prevNode:s}=t,[u,c]=Js(o,s,a,r);if(o&&o.isInternal&&r.inMiddle)return{drop:de(o.id,null),cursor:Zs(o.id)};if(!u)return{drop:de((e=c?.parent)===null||e===void 0?void 0:e.id,0),cursor:Q(0,0)};if(fr(u)){const d=fe(i,c?.level||0,u.level);return{drop:Ve(u,d),cursor:Q(u.rowIndex+1,d)}}if(pr(u)){const d=fe(i,c?.level||0,u.level);return{drop:Ve(u,d),cursor:Q(u.rowIndex+1,d)}}if(hr(u)){const d=fe(i,0,u.level+1);return d>u.level?{drop:de(u.id,0),cursor:Q(u.rowIndex+1,d)}:{drop:Ve(u,d),cursor:Q(u.rowIndex+1,d)}}return{drop:de(u?.id,0),cursor:Q(u.rowIndex+1,u.level+1)}}function eu(t,e){const r=P(),[n,i]=Mr(()=>({accept:"NODE",canDrop:()=>r.canDrop(),hover:(o,a)=>{const s=a.getClientOffset();if(!t.current||!s)return;const{cursor:u,drop:c}=qr({element:t.current,offset:s,indent:r.indent,node:e,prevNode:e.prev,nextNode:e.next});c&&r.dispatch(Z.hovering(c.parentId,c.index)),a.canDrop()?u&&r.showCursor(u):r.hideCursor()},drop:(o,a)=>{if(!a.canDrop())return null;let{parentId:s,index:u,dragIds:c}=r.state.dnd;Dr(r.props.onMove,{dragIds:c,parentId:s===oe?null:s,index:u===null?0:u,dragNodes:r.dragNodes,parentNode:r.get(s)}),r.open(s)}}),[e,t.current,r.props]);return i}function tu(t){const e=P(),r=e.at(t);if(!r)throw new Error(`Could not find node for index: ${t}`);return v.useMemo(()=>{const n=r.clone();return e.visibleNodes[t]=n,n},[...Object.values(r.state),r])}const ru=ar.memo(function({index:e,style:r}){dr(),wn();const n=P(),i=tu(e),o=v.useRef(null),a=Xs(i),s=eu(o,i),u=v.useCallback(l=>{o.current=l,s(l)},[s]),c=n.indent*i.level,d=v.useMemo(()=>({paddingLeft:c}),[c]),h=v.useMemo(()=>{var l,f;return Object.assign(Object.assign({},r),{top:parseFloat(r.top)+((f=(l=n.props.padding)!==null&&l!==void 0?l:n.props.paddingTop)!==null&&f!==void 0?f:0)})},[r,n.props.padding,n.props.paddingTop]),y={role:"treeitem","aria-level":i.level+1,"aria-selected":i.isSelected,"aria-expanded":i.isOpen,style:h,tabIndex:-1,className:n.props.rowClassName};v.useEffect(()=>{var l;!i.isEditing&&i.isFocused&&((l=o.current)===null||l===void 0||l.focus({preventScroll:!0}))},[i.isEditing,i.isFocused,o.current]);const b=n.renderNode,D=n.renderRow;return O.jsx(D,{node:i,innerRef:u,attrs:y,children:O.jsx(b,{node:i,tree:n,style:d,dragHandle:a})})});let Ue="",er=null;function Kr(){dr();const t=P();return O.jsx("div",{role:"tree",style:{height:t.height,width:t.width,minHeight:0,minWidth:0},onContextMenu:t.props.onContextMenu,onClick:t.props.onClick,tabIndex:0,onFocus:e=>{e.currentTarget.contains(e.relatedTarget)||t.onFocus()},onBlur:e=>{e.currentTarget.contains(e.relatedTarget)||t.onBlur()},onKeyDown:e=>{var r;if(t.isEditing)return;if(e.key==="Backspace"){if(!t.props.onDelete)return;const i=Array.from(t.selectedIds);if(i.length>1){let o=t.mostRecentNode;for(;o&&o.isSelected;)o=o.nextSibling;o||(o=t.lastNode),t.focus(o,{scroll:!1}),t.delete(Array.from(i))}else{const o=t.focusedNode;if(o){const a=o.nextSibling,s=o.parent;t.focus(a||s,{scroll:!1}),t.delete(o)}}return}if(e.key==="Tab"&&!e.shiftKey){e.preventDefault(),vr(e.currentTarget);return}if(e.key==="Tab"&&e.shiftKey){e.preventDefault(),yr(e.currentTarget);return}if(e.key==="ArrowDown"){e.preventDefault();const i=t.nextNode;if(e.metaKey){t.select(t.focusedNode),t.activate(t.focusedNode);return}else if(!e.shiftKey||t.props.disableMultiSelection){t.focus(i);return}else{if(!i)return;const o=t.focusedNode;o?o.isSelected?t.selectContiguous(i):t.selectMulti(i):t.focus(t.firstNode);return}}if(e.key==="ArrowUp"){e.preventDefault();const i=t.prevNode;if(!e.shiftKey||t.props.disableMultiSelection){t.focus(i);return}else{if(!i)return;const o=t.focusedNode;o?o.isSelected?t.selectContiguous(i):t.selectMulti(i):t.focus(t.lastNode);return}}if(e.key==="ArrowRight"){const i=t.focusedNode;if(!i)return;i.isInternal&&i.isOpen?t.focus(t.nextNode):i.isInternal&&t.open(i.id);return}if(e.key==="ArrowLeft"){const i=t.focusedNode;if(!i||i.isRoot)return;i.isInternal&&i.isOpen?t.close(i.id):!((r=i.parent)===null||r===void 0)&&r.isRoot||t.focus(i.parent);return}if(e.key==="a"&&e.metaKey&&!t.props.disableMultiSelection){e.preventDefault(),t.selectAll();return}if(e.key==="a"&&!e.metaKey&&t.props.onCreate){t.createLeaf();return}if(e.key==="A"&&!e.metaKey){if(!t.props.onCreate)return;t.createInternal();return}if(e.key==="Home"){e.preventDefault(),t.focus(t.firstNode);return}if(e.key==="End"){e.preventDefault(),t.focus(t.lastNode);return}if(e.key==="Enter"){const i=t.focusedNode;if(!i||!i.isEditable||!t.props.onRename)return;setTimeout(()=>{i&&t.edit(i)});return}if(e.key===" "){e.preventDefault();const i=t.focusedNode;if(!i)return;i.isLeaf?(i.select(),i.activate()):i.toggle();return}if(e.key==="*"){const i=t.focusedNode;if(!i)return;t.openSiblings(i);return}if(e.key==="PageUp"){e.preventDefault(),t.pageUp();return}e.key==="PageDown"&&(e.preventDefault(),t.pageDown()),clearTimeout(er),Ue+=e.key,er=setTimeout(()=>{Ue=""},600);const n=t.visibleNodes.find(i=>{const o=i.data.name;return typeof o=="string"?o.toLowerCase().startsWith(Ue):!1});n&&t.focus(n.id)},children:O.jsx(ii,{className:t.props.className,outerRef:t.listEl,itemCount:t.visibleNodes.length,height:t.height,width:t.width,itemSize:t.rowHeight,overscanCount:t.overscanCount,itemKey:e=>{var r;return((r=t.visibleNodes[e])===null||r===void 0?void 0:r.id)||e},outerElementType:si,innerElementType:ci,onScroll:t.props.onScroll,onItemsRendered:t.onItemsRendered.bind(t),ref:t.list,children:ru})})}function tr(t){return t.isFiltered?iu(t.root,t.isMatch.bind(t)):nu(t.root)}function nu(t){const e=[];function r(n){var i;n.level>=0&&e.push(n),n.isOpen&&((i=n.children)===null||i===void 0||i.forEach(r))}return r(t),e.forEach(Yr),e}function iu(t,e){const r={},n=[];function i(a){if(!a.isRoot&&e(a)){r[a.id]=!0;let u=a.parent;for(;u;)r[u.id]=!0,u=u.parent}if(a.children)for(let u of a.children)i(u)}function o(a){var s;a.level>=0&&r[a.id]&&n.push(a),a.isOpen&&((s=a.children)===null||s===void 0||s.forEach(o))}return i(t),o(t),n.forEach(Yr),n}function Yr(t,e){t.rowIndex=e}const rr=t=>t.reduce((e,r,n)=>(e[r.id]=n,e),{});var We=function(t,e,r,n){function i(o){return o instanceof r?o:new r(function(a){a(o)})}return new(r||(r=Promise))(function(o,a){function s(d){try{c(n.next(d))}catch(h){a(h)}}function u(d){try{c(n.throw(d))}catch(h){a(h)}}function c(d){d.done?o(d.value):i(d.value).then(s,u)}c((n=n.apply(t,e||[])).next())})};const{safeRun:_,identify:V,identifyNull:H}=En;class ie{constructor(e,r,n,i){this.store=e,this.props=r,this.list=n,this.listEl=i,this.visibleStartIndex=0,this.visibleStopIndex=0,this.root=dt(this),this.visibleNodes=tr(this),this.idToIndex=rr(this.visibleNodes)}update(e){this.props=e,this.root=dt(this),this.visibleNodes=tr(this),this.idToIndex=rr(this.visibleNodes)}dispatch(e){return this.store.dispatch(e)}get state(){return this.store.getState()}get openState(){return this.state.nodes.open.unfiltered}get width(){var e;return(e=this.props.width)!==null&&e!==void 0?e:300}get height(){var e;return(e=this.props.height)!==null&&e!==void 0?e:500}get indent(){var e;return(e=this.props.indent)!==null&&e!==void 0?e:24}get rowHeight(){var e;return(e=this.props.rowHeight)!==null&&e!==void 0?e:24}get overscanCount(){var e;return(e=this.props.overscanCount)!==null&&e!==void 0?e:1}get searchTerm(){return(this.props.searchTerm||"").trim()}get matchFn(){var e;const r=(e=this.props.searchMatch)!==null&&e!==void 0?e:((n,i)=>JSON.stringify(Object.values(n.data)).toLocaleLowerCase().includes(i.toLocaleLowerCase()));return n=>r(n,this.searchTerm)}accessChildren(e){var r;const n=this.props.childrenAccessor||"children";return(r=ne(e,n))!==null&&r!==void 0?r:null}accessId(e){const r=this.props.idAccessor||"id",n=ne(e,r);if(!n)throw new Error("Data must contain an 'id' property or props.idAccessor must return a string");return n}get firstNode(){var e;return(e=this.visibleNodes[0])!==null&&e!==void 0?e:null}get lastNode(){var e;return(e=this.visibleNodes[this.visibleNodes.length-1])!==null&&e!==void 0?e:null}get focusedNode(){var e;return(e=this.get(this.state.nodes.focus.id))!==null&&e!==void 0?e:null}get mostRecentNode(){var e;return(e=this.get(this.state.nodes.selection.mostRecent))!==null&&e!==void 0?e:null}get nextNode(){const e=this.indexOf(this.focusedNode);return e===null?null:this.at(e+1)}get prevNode(){const e=this.indexOf(this.focusedNode);return e===null?null:this.at(e-1)}get(e){return e&&e in this.idToIndex&&this.visibleNodes[this.idToIndex[e]]||null}at(e){return this.visibleNodes[e]||null}nodesBetween(e,r){var n;if(e===null||r===null)return[];const i=(n=this.indexOf(e))!==null&&n!==void 0?n:0,o=this.indexOf(r);if(o===null)return[];const a=Math.min(i,o),s=Math.max(i,o);return this.visibleNodes.slice(a,s+1)}indexOf(e){const r=Sr(e);return r?this.idToIndex[r]:null}get editingId(){return this.state.nodes.edit.id}createInternal(){return this.create({type:"internal"})}createLeaf(){return this.create({type:"leaf"})}create(){return We(this,arguments,void 0,function*(e={}){var r,n;const i=e.parentId===void 0?Or(this):e.parentId,o=(r=e.index)!==null&&r!==void 0?r:wr(this),a=(n=e.type)!==null&&n!==void 0?n:"leaf",s=yield _(this.props.onCreate,{type:a,parentId:i,index:o,parentNode:this.get(i)});s&&(this.focus(s),setTimeout(()=>{this.edit(s).then(()=>{this.select(s),this.activate(s)})}))})}delete(e){return We(this,void 0,void 0,function*(){if(!e)return;const n=(Array.isArray(e)?e:[e]).map(V),i=n.map(o=>this.get(o)).filter(o=>!!o);yield _(this.props.onDelete,{nodes:i,ids:n})})}edit(e){const r=V(e);return this.resolveEdit({cancelled:!0}),this.scrollTo(r),this.dispatch(Ne(r)),new Promise(n=>{ie.editPromise=n})}submit(e,r){return We(this,void 0,void 0,function*(){if(!e)return;const n=V(e);yield _(this.props.onRename,{id:n,name:r,node:this.get(n)}),this.dispatch(Ne(null)),this.resolveEdit({cancelled:!1,value:r}),setTimeout(()=>this.onFocus())})}reset(){this.dispatch(Ne(null)),this.resolveEdit({cancelled:!0}),setTimeout(()=>this.onFocus())}activate(e){const r=this.get(H(e));r&&_(this.props.onActivate,r)}resolveEdit(e){const r=ie.editPromise;r&&r(e),ie.editPromise=null}get selectedIds(){return this.state.nodes.selection.ids}get selectedNodes(){let e=[];for(let r of Array.from(this.selectedIds)){const n=this.get(r);n&&e.push(n)}return e}focus(e,r={}){e&&(this.props.selectionFollowsFocus?this.select(e):(this.dispatch(q(V(e))),r.scroll!==!1&&this.scrollTo(e),this.focusedNode&&_(this.props.onFocus,this.focusedNode)))}pageUp(){var e,r;const n=this.visibleStartIndex,o=this.visibleStopIndex-n;let a=(r=(e=this.focusedNode)===null||e===void 0?void 0:e.rowIndex)!==null&&r!==void 0?r:0;a>n?a=n:a=Math.max(n-o,0),this.focus(this.at(a))}pageDown(){var e,r;const n=this.visibleStartIndex,i=this.visibleStopIndex,o=i-n;let a=(r=(e=this.focusedNode)===null||e===void 0?void 0:e.rowIndex)!==null&&r!==void 0?r:0;a<i?a=i:a=Math.min(a+o,this.visibleNodes.length-1),this.focus(this.at(a))}select(e,r={}){if(!e)return;const n=r.focus!==!1,i=V(e);n&&this.dispatch(q(i)),this.dispatch(L.only(i)),this.dispatch(L.anchor(i)),this.dispatch(L.mostRecent(i)),this.scrollTo(i,r.align),this.focusedNode&&n&&_(this.props.onFocus,this.focusedNode),_(this.props.onSelect,this.selectedNodes)}deselect(e){if(!e)return;const r=V(e);this.dispatch(L.remove(r)),_(this.props.onSelect,this.selectedNodes)}selectMulti(e){const r=this.get(H(e));r&&(this.dispatch(q(r.id)),this.dispatch(L.add(r.id)),this.dispatch(L.anchor(r.id)),this.dispatch(L.mostRecent(r.id)),this.scrollTo(r),this.focusedNode&&_(this.props.onFocus,this.focusedNode),_(this.props.onSelect,this.selectedNodes))}selectContiguous(e){if(!e)return;const r=V(e),{anchor:n,mostRecent:i}=this.state.nodes.selection;this.dispatch(q(r)),this.dispatch(L.remove(this.nodesBetween(n,i))),this.dispatch(L.add(this.nodesBetween(n,H(r)))),this.dispatch(L.mostRecent(r)),this.scrollTo(r),this.focusedNode&&_(this.props.onFocus,this.focusedNode),_(this.props.onSelect,this.selectedNodes)}deselectAll(){this.setSelection({ids:[],anchor:null,mostRecent:null}),_(this.props.onSelect,this.selectedNodes)}selectAll(){var e;this.setSelection({ids:Object.keys(this.idToIndex),anchor:this.firstNode,mostRecent:this.lastNode}),this.dispatch(q((e=this.lastNode)===null||e===void 0?void 0:e.id)),this.focusedNode&&_(this.props.onFocus,this.focusedNode),_(this.props.onSelect,this.selectedNodes)}setSelection(e){var r;const n=new Set((r=e.ids)===null||r===void 0?void 0:r.map(V)),i=H(e.anchor),o=H(e.mostRecent);this.dispatch(L.set({ids:n,anchor:i,mostRecent:o})),_(this.props.onSelect,this.selectedNodes)}get cursorParentId(){const{cursor:e}=this.state.dnd;return e.type==="highlight"?e.id:null}get cursorOverFolder(){return this.state.dnd.cursor.type==="highlight"}get dragNodes(){return this.state.dnd.dragIds.map(e=>this.get(e)).filter(e=>!!e)}get dragNode(){return this.get(this.state.nodes.drag.id)}get dragDestinationParent(){return this.get(this.state.nodes.drag.destinationParentId)}get dragDestinationIndex(){return this.state.nodes.drag.destinationIndex}canDrop(){var e;if(this.isFiltered)return!1;const r=(e=this.get(this.state.dnd.parentId))!==null&&e!==void 0?e:this.root,n=this.dragNodes,i=this.props.disableDrop;for(const o of n)if(!o||!r||o.isInternal&&gr(r,o))return!1;return typeof i=="function"?!i({parentNode:r,dragNodes:this.dragNodes,index:this.state.dnd.index||0}):typeof i=="string"?!r.data[i]:typeof i=="boolean"?!i:!0}hideCursor(){this.dispatch(Z.cursor({type:"none"}))}showCursor(e){this.dispatch(Z.cursor(e))}open(e){const r=H(e);r&&(this.isOpen(r)||(this.dispatch(Fe.open(r,this.isFiltered)),_(this.props.onToggle,r)))}close(e){const r=H(e);r&&this.isOpen(r)&&(this.dispatch(Fe.close(r,this.isFiltered)),_(this.props.onToggle,r))}toggle(e){const r=H(e);if(r)return this.isOpen(r)?this.close(r):this.open(r)}openParents(e){const r=H(e);if(!r)return;const n=Ze(this.root,r);let i=n?.parent;for(;i;)this.open(i.id),i=i.parent}openSiblings(e){const r=e.parent;if(!r)this.toggle(e.id);else if(r.children){const n=e.isOpen;for(let i of r.children)i.isInternal&&(n?this.close(i.id):this.open(i.id));this.scrollTo(this.focusedNode)}}openAll(){Se(this.root,e=>{e.isInternal&&e.open()})}closeAll(){Se(this.root,e=>{e.isInternal&&e.close()})}scrollTo(e,r="smart"){if(!e)return;const n=V(e);return this.openParents(n),Ir(()=>n in this.idToIndex).then(()=>{var i;const o=this.idToIndex[n];o!==void 0&&((i=this.list.current)===null||i===void 0||i.scrollToItem(o,r))}).catch(()=>{})}get isEditing(){return this.state.nodes.edit.id!==null}get isFiltered(){var e;return!!(!((e=this.props.searchTerm)===null||e===void 0)&&e.trim())}get hasFocus(){return this.state.nodes.focus.treeFocused}get hasNoSelection(){return this.state.nodes.selection.ids.size===0}get hasOneSelection(){return this.state.nodes.selection.ids.size===1}get hasMultipleSelections(){return this.state.nodes.selection.ids.size>1}isSelected(e){return e?this.state.nodes.selection.ids.has(e):!1}isOpen(e){var r,n,i;if(!e)return!1;if(e===oe)return!0;const o=(r=this.props.openByDefault)!==null&&r!==void 0?r:!0;return this.isFiltered?(n=this.state.nodes.open.filtered[e])!==null&&n!==void 0?n:!0:(i=this.state.nodes.open.unfiltered[e])!==null&&i!==void 0?i:o}isEditable(e){const r=this.props.disableEdit||(()=>!1);return!ne(e,r)}isDraggable(e){const r=this.props.disableDrag||(()=>!1);return!ne(e,r)}isDragging(e){const r=H(e);return r?this.state.nodes.drag.id===r:!1}isFocused(e){return this.hasFocus&&this.state.nodes.focus.id===e}isMatch(e){return this.matchFn(e)}willReceiveDrop(e){const r=H(e);if(!r)return!1;const{destinationParentId:n,destinationIndex:i}=this.state.nodes.drag;return r===n&&i===null}onFocus(){const e=this.focusedNode||this.firstNode;e&&this.dispatch(q(e.id))}onBlur(){this.dispatch(Hn())}onItemsRendered(e){this.visibleStartIndex=e.visibleStartIndex,this.visibleStopIndex=e.visibleStopIndex}get renderContainer(){return this.props.renderContainer||Kr}get renderRow(){return this.props.renderRow||An}get renderNode(){return this.props.children||Pn}get renderDragPreview(){return this.props.renderDragPreview||xr}get renderCursor(){return this.props.renderCursor||_n}}var ou=typeof Symbol=="function"&&Symbol.observable||"@@observable",nr=ou,ze=()=>Math.random().toString(36).substring(7).split("").join("."),au={INIT:`@@redux/INIT${ze()}`,REPLACE:`@@redux/REPLACE${ze()}`,PROBE_UNKNOWN_ACTION:()=>`@@redux/PROBE_UNKNOWN_ACTION${ze()}`},z=au;function Gr(t){if(typeof t!="object"||t===null)return!1;let e=t;for(;Object.getPrototypeOf(e)!==null;)e=Object.getPrototypeOf(e);return Object.getPrototypeOf(t)===e||Object.getPrototypeOf(t)===null}function su(t){if(t===void 0)return"undefined";if(t===null)return"null";const e=typeof t;switch(e){case"boolean":case"string":case"number":case"symbol":case"function":return e}if(Array.isArray(t))return"array";if(cu(t))return"date";if(lu(t))return"error";const r=uu(t);switch(r){case"Symbol":case"Promise":case"WeakMap":case"WeakSet":case"Map":case"Set":return r}return Object.prototype.toString.call(t).slice(8,-1).toLowerCase().replace(/\s/g,"")}function uu(t){return typeof t.constructor=="function"?t.constructor.name:null}function lu(t){return t instanceof Error||typeof t.message=="string"&&t.constructor&&typeof t.constructor.stackTraceLimit=="number"}function cu(t){return t instanceof Date?!0:typeof t.toDateString=="function"&&typeof t.getDate=="function"&&typeof t.setDate=="function"}function U(t){let e=typeof t;return e=su(t),e}function Xr(t,e,r){if(typeof t!="function")throw new Error(`Expected the root reducer to be a function. Instead, received: '${U(t)}'`);if(typeof e=="function"&&typeof r=="function"||typeof r=="function"&&typeof arguments[3]=="function")throw new Error("It looks like you are passing several store enhancers to createStore(). This is not supported. Instead, compose them together to a single function. See https://redux.js.org/tutorials/fundamentals/part-4-store#creating-a-store-with-enhancers for an example.");if(typeof e=="function"&&typeof r>"u"&&(r=e,e=void 0),typeof r<"u"){if(typeof r!="function")throw new Error(`Expected the enhancer to be a function. Instead, received: '${U(r)}'`);return r(Xr)(t,e)}let n=t,i=e,o=new Map,a=o,s=0,u=!1;function c(){a===o&&(a=new Map,o.forEach((f,p)=>{a.set(p,f)}))}function d(){if(u)throw new Error("You may not call store.getState() while the reducer is executing. The reducer has already received the state as an argument. Pass it down from the top reducer instead of reading it from the store.");return i}function h(f){if(typeof f!="function")throw new Error(`Expected the listener to be a function. Instead, received: '${U(f)}'`);if(u)throw new Error("You may not call store.subscribe() while the reducer is executing. If you would like to be notified after the store has been updated, subscribe from a component and invoke store.getState() in the callback to access the latest state. See https://redux.js.org/api/store#subscribelistener for more details.");let p=!0;c();const g=s++;return a.set(g,f),function(){if(p){if(u)throw new Error("You may not unsubscribe from a store listener while the reducer is executing. See https://redux.js.org/api/store#subscribelistener for more details.");p=!1,c(),a.delete(g),o=null}}}function y(f){if(!Gr(f))throw new Error(`Actions must be plain objects. Instead, the actual type was: '${U(f)}'. You may need to add middleware to your store setup to handle dispatching other values, such as 'redux-thunk' to handle dispatching functions. See https://redux.js.org/tutorials/fundamentals/part-4-store#middleware and https://redux.js.org/tutorials/fundamentals/part-6-async-logic#using-the-redux-thunk-middleware for examples.`);if(typeof f.type>"u")throw new Error('Actions may not have an undefined "type" property. You may have misspelled an action type string constant.');if(typeof f.type!="string")throw new Error(`Action "type" property must be a string. Instead, the actual type was: '${U(f.type)}'. Value was: '${f.type}' (stringified)`);if(u)throw new Error("Reducers may not dispatch actions.");try{u=!0,i=n(i,f)}finally{u=!1}return(o=a).forEach(g=>{g()}),f}function b(f){if(typeof f!="function")throw new Error(`Expected the nextReducer to be a function. Instead, received: '${U(f)}`);n=f,y({type:z.REPLACE})}function D(){const f=h;return{subscribe(p){if(typeof p!="object"||p===null)throw new Error(`Expected the observer to be an object. Instead, received: '${U(p)}'`);function g(){const w=p;w.next&&w.next(d())}return g(),{unsubscribe:f(g)}},[nr](){return this}}}return y({type:z.INIT}),{dispatch:y,subscribe:h,getState:d,replaceReducer:b,[nr]:D}}function ir(t){typeof console<"u"&&typeof console.error=="function"&&console.error(t);try{throw new Error(t)}catch{}}function du(t,e,r,n){const i=Object.keys(e),o=r&&r.type===z.INIT?"preloadedState argument passed to createStore":"previous state received by the reducer";if(i.length===0)return"Store does not have a valid reducer. Make sure the argument passed to combineReducers is an object whose values are reducers.";if(!Gr(t))return`The ${o} has unexpected type of "${U(t)}". Expected argument to be an object with the following keys: "${i.join('", "')}"`;const a=Object.keys(t).filter(s=>!e.hasOwnProperty(s)&&!n[s]);if(a.forEach(s=>{n[s]=!0}),!(r&&r.type===z.REPLACE)&&a.length>0)return`Unexpected ${a.length>1?"keys":"key"} "${a.join('", "')}" found in ${o}. Expected to find one of the known reducer keys instead: "${i.join('", "')}". Unexpected keys will be ignored.`}function fu(t){Object.keys(t).forEach(e=>{const r=t[e];if(typeof r(void 0,{type:z.INIT})>"u")throw new Error(`The slice reducer for key "${e}" returned undefined during initialization. If the state passed to the reducer is undefined, you must explicitly return the initial state. The initial state may not be undefined. If you don't want to set a value for this reducer, you can use null instead of undefined.`);if(typeof r(void 0,{type:z.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(`The slice reducer for key "${e}" returned undefined when probed with a random type. Don't try to handle '${z.INIT}' or other actions in "redux/*" namespace. They are considered private. Instead, you must return the current state for any unknown actions, unless it is undefined, in which case you must return the initial state, regardless of the action type. The initial state may not be undefined, but can be null.`)})}function or(t){const e=Object.keys(t),r={};for(let a=0;a<e.length;a++){const s=e[a];typeof t[s]>"u"&&ir(`No reducer provided for key "${s}"`),typeof t[s]=="function"&&(r[s]=t[s])}const n=Object.keys(r);let i;i={};let o;try{fu(r)}catch(a){o=a}return function(s={},u){if(o)throw o;{const h=du(s,r,u,i);h&&ir(h)}let c=!1;const d={};for(let h=0;h<n.length;h++){const y=n[h],b=r[y],D=s[y],l=b(D,u);if(typeof l>"u"){const f=u&&u.type;throw new Error(`When called with an action of type ${f?`"${String(f)}"`:"(unknown type)"}, the slice reducer for key "${y}" returned undefined. To ignore an action, you must explicitly return the previous state. If you want this reducer to hold no value, you can return null instead of undefined.`)}d[y]=l,c=c||l!==D}return c=c||n.length!==Object.keys(s).length,c?d:s}}function pu(t=J().nodes.drag,e){switch(e.type){case"DND_DRAG_START":return Object.assign(Object.assign({},t),{id:e.id,selectedIds:e.dragIds});case"DND_DRAG_END":return Object.assign(Object.assign({},t),{id:null,destinationParentId:null,destinationIndex:null,selectedIds:[]});case"DND_HOVERING":return e.parentId!==t.destinationParentId||e.index!=t.destinationIndex?Object.assign(Object.assign({},t),{destinationParentId:e.parentId,destinationIndex:e.index}):t;default:return t}}const hu=or({nodes:or({focus:Mn,edit:Ln,open:$n,selection:Vn,drag:pu}),dnd:Un}),gu=J();function mu({treeProps:t,imperativeHandle:e,children:r}){const n=v.useRef(null),i=v.useRef(null),o=v.useRef(Xr(hu,J(t))),a=In.useSyncExternalStore(o.current.subscribe,o.current.getState,()=>gu),s=v.useMemo(()=>new ie(o.current,t,n,i),[]),u=v.useRef(0);return v.useMemo(()=>{u.current+=1,s.update(t)},[...Object.values(t),a.nodes.open]),v.useImperativeHandle(e,()=>s),v.useEffect(()=>{s.props.selection?s.select(s.props.selection,{focus:!1}):s.deselectAll()},[s.props.selection]),v.useEffect(()=>{s.props.searchTerm||o.current.dispatch(Fe.clear(!0))},[s.props.searchTerm]),O.jsx(sr.Provider,{value:s,children:O.jsx(cr.Provider,{value:u.current,children:O.jsx(ur.Provider,{value:a.nodes,children:O.jsx(lr.Provider,{value:a.dnd,children:O.jsx(Yo,Object.assign({backend:Gs,options:{rootElement:s.props.dndRootElement||void 0}},t.dndManager&&{manager:t.dndManager},{children:r}))})})})})}function vu(){const t=P(),[,e]=Mr(()=>({accept:"NODE",canDrop:(r,n)=>n.isOver({shallow:!0})?t.canDrop():!1,hover:(r,n)=>{if(!n.isOver({shallow:!0}))return;const i=n.getClientOffset();if(!t.listEl.current||!i)return;const{cursor:o,drop:a}=qr({element:t.listEl.current,offset:i,indent:t.indent,node:null,prevNode:t.visibleNodes[t.visibleNodes.length-1],nextNode:null});a&&t.dispatch(Z.hovering(a.parentId,a.index)),n.canDrop()?o&&t.showCursor(o):t.hideCursor()}}),[t]);e(t.listEl)}function yu(t){return vu(),t.children}function bu(){const e=P().props.renderContainer||Kr;return O.jsx(O.Fragment,{children:O.jsx(e,{})})}function Su(){const t=P(),{offset:e,mouse:r,item:n,isDragging:i}=Ss(a=>({offset:a.getSourceClientOffset(),mouse:a.getClientOffset(),item:a.getItem(),isDragging:a.isDragging()})),o=t.props.renderDragPreview||xr;return O.jsx(o,{offset:e,mouse:r,id:n?.id||null,dragIds:n?.dragIds||[],isDragging:i})}class Du{constructor(e){this.root=Iu(e)}get data(){var e,r;return(r=(e=this.root.children)===null||e===void 0?void 0:e.map(n=>n.data))!==null&&r!==void 0?r:[]}create(e){const r=e.parentId?this.find(e.parentId):this.root;if(!r)return null;r.addChild(e.data,e.index)}move(e){const r=this.find(e.id),n=e.parentId?this.find(e.parentId):this.root;!r||!n||(n.addChild(r.data,e.index),r.drop())}update(e){const r=this.find(e.id);r&&r.update(e.changes)}drop(e){const r=this.find(e.id);r&&r.drop()}find(e,r=this.root){if(!r)return null;if(r.id===e)return r;if(r.children){for(let n of r.children){const i=this.find(e,n);if(i)return i}return null}return null}}function Iu(t){const e=new Qr({id:"ROOT"},null);return e.children=t.map(r=>at(r,e)),e}function at(t,e){const r=new Qr(t,e);return t.children&&(r.children=t.children.map(n=>at(n,r))),r}class Qr{constructor(e,r){this.data=e,this.parent=r,this.id=e.id}hasParent(){return!!this.parent}get childIndex(){return this.hasParent()?this.parent.children.indexOf(this):-1}addChild(e,r){var n,i;const o=at(e,this);this.children=(n=this.children)!==null&&n!==void 0?n:[],this.children.splice(r,0,o),this.data.children=(i=this.data.children)!==null&&i!==void 0?i:[],this.data.children.splice(r,0,e)}removeChild(e){var r,n;(r=this.children)===null||r===void 0||r.splice(e,1),(n=this.data.children)===null||n===void 0||n.splice(e,1)}update(e){if(this.hasParent()){const r=this.childIndex;this.parent.addChild(Object.assign(Object.assign({},this.data),e),r),this.drop()}}drop(){this.hasParent()&&this.parent.removeChild(this.childIndex)}}let wu=0;function Ou(t){const[e,r]=v.useState(t),n=v.useMemo(()=>new Du(e),[e]);return[e,{onMove:c=>{for(const d of c.dragIds)n.move({id:d,parentId:c.parentId,index:c.index});r(n.data)},onRename:({name:c,id:d})=>{n.update({id:d,changes:{name:c}}),r(n.data)},onCreate:({parentId:c,index:d,type:h})=>{const y={id:`simple-tree-id-${wu++}`,name:""};return h==="internal"&&(y.children=[]),n.create({parentId:c,index:d,data:y}),r(n.data),y},onDelete:c=>{c.ids.forEach(d=>n.drop({id:d})),r(n.data)}}]}function xu(t){if(t.initialData&&t.data)throw new Error("React Arborist Tree => Provide either a data or initialData prop, but not both.");if(t.initialData&&(t.onCreate||t.onDelete||t.onMove||t.onRename))throw new Error(`React Arborist Tree => You passed the initialData prop along with a data handler.
|
|
16
|
-
Use the data prop if you want to provide your own handlers.`);if(t.initialData){const[e,r]=Ou(t.initialData);return Object.assign(Object.assign(Object.assign({},t),r),{data:e})}else return t}function Tu(t,e){const r=xu(t);return O.jsxs(mu,{treeProps:r,imperativeHandle:e,children:[O.jsx(yu,{children:O.jsx(bu,{})}),O.jsx(Su,{})]})}const Eu=v.forwardRef(Tu),Cu=t=>{const e=ae.c(7);if(e[0]!=="b7996d787daf3bd548e7bb6b75bf069de246fb929b79b6e8eae962282da194cc"){for(let s=0;s<7;s+=1)e[s]=Symbol.for("react.memo_cache_sentinel");e[0]="b7996d787daf3bd548e7bb6b75bf069de246fb929b79b6e8eae962282da194cc"}const{data:r,onSelectConcept:n}=t;let i;e[1]===Symbol.for("react.memo_cache_sentinel")?(i={height:"100%",width:"100%",backgroundColor:"transparent",overflow:"hidden"},e[1]=i):i=e[1];let o;e[2]!==n?(o=s=>{const{node:u,style:c,dragHandle:d}=s,h=u.children&&u.children.length>0;return m.jsxDEV("div",{ref:d,onClick:()=>{u.toggle(),n(u.data)},style:{...c,display:"flex",alignItems:"center",padding:"0 8px",cursor:"pointer",backgroundColor:u.isSelected?"rgba(255,45,75,0.12)":"transparent",userSelect:"none",borderBottom:"1px solid rgba(255,255,255,0.04)",transition:"background 0.15s"},onMouseEnter:y=>{u.isSelected||(y.currentTarget.style.background="rgba(255,45,75,0.06)")},onMouseLeave:y=>{u.isSelected||(y.currentTarget.style.background="transparent")},children:[m.jsxDEV("span",{style:{width:20,display:"flex",justifyContent:"center"},children:h?u.isOpen?m.jsxDEV(fn,{size:14,color:"#b08b93"},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/VocabularyWorkspace/ConceptTree.tsx",lineNumber:75,columnNumber:38},void 0):m.jsxDEV(pn,{size:14,color:"#b08b93"},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/VocabularyWorkspace/ConceptTree.tsx",lineNumber:75,columnNumber:82},void 0):null},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/VocabularyWorkspace/ConceptTree.tsx",lineNumber:71,columnNumber:10},void 0),m.jsxDEV("span",{style:{marginRight:8,display:"flex",alignItems:"center"},children:h?m.jsxDEV(Dn,{size:14,color:"#d2a8ff"},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/VocabularyWorkspace/ConceptTree.tsx",lineNumber:79,columnNumber:24},void 0):m.jsxDEV(hn,{size:14,color:"#484f58"},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/VocabularyWorkspace/ConceptTree.tsx",lineNumber:79,columnNumber:63},void 0)},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/VocabularyWorkspace/ConceptTree.tsx",lineNumber:75,columnNumber:139},void 0),m.jsxDEV("span",{style:{fontSize:13,color:"#e8ccd1",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis"},children:u.data.pref_label},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/VocabularyWorkspace/ConceptTree.tsx",lineNumber:79,columnNumber:109},void 0)]},void 0,!0,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/VocabularyWorkspace/ConceptTree.tsx",lineNumber:50,columnNumber:14},void 0)},e[2]=n,e[3]=o):o=e[3];let a;return e[4]!==r||e[5]!==o?(a=m.jsxDEV("div",{style:i,children:m.jsxDEV(Eu,{data:r,idAccessor:"uri",width:"100%",height:600,indent:24,rowHeight:36,childrenAccessor:"children",children:o},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/VocabularyWorkspace/ConceptTree.tsx",lineNumber:94,columnNumber:26},void 0)},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/VocabularyWorkspace/ConceptTree.tsx",lineNumber:94,columnNumber:10},void 0),e[4]=r,e[5]=o,e[6]=a):a=e[6],a},Nu=()=>{const t=ae.c(30);if(t[0]!=="8df03c263bd9f8209cad32f6abe1f1b025fb3779dec3de0ddd910d0f970f4e6d"){for(let E=0;E<30;E+=1)t[E]=Symbol.for("react.memo_cache_sentinel");t[0]="8df03c263bd9f8209cad32f6abe1f1b025fb3779dec3de0ddd910d0f970f4e6d"}const[e,r]=v.useState(null),[n,i]=v.useState(null),o=ln();let a;t[1]!==o?(a=E=>{if(E.length>0){const N=E[0];r(N),i(null),o.mutate(N,{onSuccess:k=>{i(k),setTimeout(()=>{r(null),i(null)},4e3)},onError:k=>{console.error("Upload failed:",k),r(null)}})}},t[1]=o,t[2]=a):a=t[2];const s=a;let u;t[3]===Symbol.for("react.memo_cache_sentinel")?(u={"text/turtle":[".ttl"],"application/rdf+xml":[".rdf",".owl"]},t[3]=u):u=t[3];let c;t[4]!==s?(c={onDrop:s,accept:u,maxFiles:1},t[4]=s,t[5]=c):c=t[5];const{getRootProps:d,getInputProps:h,isDragActive:y}=mn(c);let b;t[6]!==d?(b=d(),t[6]=d,t[7]=b):b=t[7];const D=`2px dashed ${y?"#ff2d4b":"rgba(255,45,75,0.25)"}`,l=y?"rgba(255,45,75,0.06)":"rgba(0,0,0,0.2)";let f;t[8]!==D||t[9]!==l?(f={border:D,backgroundColor:l,borderRadius:8,padding:"16px 12px",textAlign:"center",cursor:"pointer",transition:"all 0.2s ease"},t[8]=D,t[9]=l,t[10]=f):f=t[10];let p;t[11]!==h?(p=h(),t[11]=h,t[12]=p):p=t[12];let g;t[13]!==p?(g=m.jsxDEV("input",{...p},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/VocabularyWorkspace/ImportDropzone.tsx",lineNumber:116,columnNumber:10},void 0),t[13]=p,t[14]=g):g=t[14];let S;t[15]!==e?.name||t[16]!==o.isPending||t[17]!==n||t[18]!==y?(S=o.isPending?m.jsxDEV("div",{style:{display:"flex",flexDirection:"column",alignItems:"center",color:"#b08b93"},children:[m.jsxDEV(yn,{className:"animate-spin",size:20,style:{marginBottom:6}},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/VocabularyWorkspace/ImportDropzone.tsx",lineNumber:129,columnNumber:8},void 0),m.jsxDEV("span",{style:{fontSize:12},children:["Uploading ",e?.name,"…"]},void 0,!0,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/VocabularyWorkspace/ImportDropzone.tsx",lineNumber:131,columnNumber:12},void 0)]},void 0,!0,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/VocabularyWorkspace/ImportDropzone.tsx",lineNumber:124,columnNumber:37},void 0):n?m.jsxDEV("div",{style:{display:"flex",flexDirection:"column",alignItems:"center",color:"#3fb950"},children:[m.jsxDEV(bn,{size:20,style:{marginBottom:6}},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/VocabularyWorkspace/ImportDropzone.tsx",lineNumber:138,columnNumber:8},void 0),m.jsxDEV("span",{style:{fontSize:12,fontWeight:500},children:"Import Successful!"},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/VocabularyWorkspace/ImportDropzone.tsx",lineNumber:140,columnNumber:12},void 0),m.jsxDEV("span",{style:{fontSize:11,marginTop:2,color:"#43d17a"},children:["+",n.nodes_added," concepts · +",n.edges_added," links"]},void 0,!0,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/VocabularyWorkspace/ImportDropzone.tsx",lineNumber:143,columnNumber:35},void 0)]},void 0,!0,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/VocabularyWorkspace/ImportDropzone.tsx",lineNumber:133,columnNumber:64},void 0):m.jsxDEV("div",{style:{display:"flex",flexDirection:"column",alignItems:"center",color:"#b08b93"},children:[m.jsxDEV(vn,{size:20,style:{marginBottom:6,color:y?"#ff2d4b":"#484f58"}},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/VocabularyWorkspace/ImportDropzone.tsx",lineNumber:152,columnNumber:8},void 0),m.jsxDEV("span",{style:{fontSize:12,fontWeight:500,color:"#e8ccd1"},children:y?"Drop here…":"Import Vocabulary"},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/VocabularyWorkspace/ImportDropzone.tsx",lineNumber:155,columnNumber:12},void 0),m.jsxDEV("span",{style:{fontSize:11,marginTop:2},children:".ttl or .rdf"},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/VocabularyWorkspace/ImportDropzone.tsx",lineNumber:159,columnNumber:73},void 0)]},void 0,!0,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/VocabularyWorkspace/ImportDropzone.tsx",lineNumber:147,columnNumber:98},void 0),t[15]=e?.name,t[16]=o.isPending,t[17]=n,t[18]=y,t[19]=S):S=t[19];let w;t[20]!==b||t[21]!==f||t[22]!==g||t[23]!==S?(w=m.jsxDEV("div",{...b,style:f,children:[g,S]},void 0,!0,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/VocabularyWorkspace/ImportDropzone.tsx",lineNumber:173,columnNumber:11},void 0),t[20]=b,t[21]=f,t[22]=g,t[23]=S,t[24]=w):w=t[24];let I;t[25]!==o.isError?(I=o.isError&&m.jsxDEV("p",{style:{color:"#f85149",fontSize:11,marginTop:6,textAlign:"center"},children:"Upload failed. Check console."},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/VocabularyWorkspace/ImportDropzone.tsx",lineNumber:184,columnNumber:37},void 0),t[25]=o.isError,t[26]=I):I=t[26];let T;return t[27]!==w||t[28]!==I?(T=m.jsxDEV("div",{children:[w,I]},void 0,!0,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/VocabularyWorkspace/ImportDropzone.tsx",lineNumber:197,columnNumber:11},void 0),t[27]=w,t[28]=I,t[29]=T):T=t[29],T};function ku(t){const e=ae.c(27);if(e[0]!=="aec2dbb5f2235759623c4633ba260f211614993c061e4327a2f6d1c2c81f2cb6"){for(let M=0;M<27;M+=1)e[M]=Symbol.for("react.memo_cache_sentinel");e[0]="aec2dbb5f2235759623c4633ba260f211614993c061e4327a2f6d1c2c81f2cb6"}const{onSelectConcept:r}=t,{data:n,isLoading:i}=cn();let o;e[1]!==n?(o=n===void 0?[]:n,e[1]=n,e[2]=o):o=e[2];const a=o,[s,u]=v.useState(),c=s??a[0]?.uri,{data:d,isLoading:h}=dn(c);let y;e[3]!==d?(y=d===void 0?[]:d,e[3]=d,e[4]=y):y=e[4];const b=y;let D,l,f,p;e[5]===Symbol.for("react.memo_cache_sentinel")?(D={width:340,display:"flex",flexDirection:"column",borderRight:"1px solid rgba(255,45,75,0.15)",backgroundColor:"#010409",overflow:"hidden"},l={padding:"20px 20px 16px",borderBottom:"1px solid rgba(255,45,75,0.15)"},f=m.jsxDEV("h2",{style:{fontSize:18,color:"#e8ccd1",margin:"0 0 4px 0",fontWeight:600},children:"Ontology & Vocabulary"},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/VocabularyWorkspace/Sidebar.tsx",lineNumber:74,columnNumber:10},this),p={color:"#b08b93",fontSize:13,margin:0},e[5]=D,e[6]=l,e[7]=f,e[8]=p):(D=e[5],l=e[6],f=e[7],p=e[8]);const g=a.length?`${a.length} vocabulary scheme${a.length>1?"s":""}`:"No vocabularies loaded";let S;e[9]!==g?(S=m.jsxDEV("div",{style:l,children:[f,m.jsxDEV("p",{style:p,children:g},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/VocabularyWorkspace/Sidebar.tsx",lineNumber:98,columnNumber:31},this)]},void 0,!0,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/VocabularyWorkspace/Sidebar.tsx",lineNumber:98,columnNumber:11},this),e[9]=g,e[10]=S):S=e[10];let w;e[11]===Symbol.for("react.memo_cache_sentinel")?(w={padding:"12px 16px",borderBottom:"1px solid rgba(255,45,75,0.1)"},e[11]=w):w=e[11];let I;e[12]!==a||e[13]!==i||e[14]!==c?(I=m.jsxDEV("div",{style:w,children:i?m.jsxDEV("div",{style:{color:"#b08b93",fontSize:13},children:"Loading schemes…"},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/VocabularyWorkspace/Sidebar.tsx",lineNumber:116,columnNumber:46},this):a.length===0?m.jsxDEV("div",{style:{color:"#484f58",fontSize:13,fontStyle:"italic"},children:"No schemes found. Import a .ttl or .rdf file below."},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/VocabularyWorkspace/Sidebar.tsx",lineNumber:119,columnNumber:58},this):m.jsxDEV("select",{value:c||"",onChange:M=>u(M.target.value),style:{width:"100%",appearance:"none",background:"rgba(0,0,0,0.3)",border:"1px solid rgba(255,45,75,0.2)",color:"#e8ccd1",padding:"8px 12px",borderRadius:6,fontSize:13,cursor:"pointer",outline:"none"},children:a.map(_u)},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/VocabularyWorkspace/Sidebar.tsx",lineNumber:123,columnNumber:70},this)},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/VocabularyWorkspace/Sidebar.tsx",lineNumber:116,columnNumber:11},this),e[12]=a,e[13]=i,e[14]=c,e[15]=I):I=e[15];let T;e[16]===Symbol.for("react.memo_cache_sentinel")?(T={flex:1,overflow:"hidden",display:"flex",flexDirection:"column"},e[16]=T):T=e[16];let E;e[17]!==b||e[18]!==r||e[19]!==c||e[20]!==h?(E=m.jsxDEV("div",{style:T,children:h?m.jsxDEV("div",{style:{padding:20,color:"#b08b93",fontSize:13,textAlign:"center"},children:"Loading hierarchy…"},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/VocabularyWorkspace/Sidebar.tsx",lineNumber:156,columnNumber:43},this):b.length===0?m.jsxDEV("div",{style:{padding:20,color:"#484f58",fontSize:13,textAlign:"center",fontStyle:"italic"},children:c?"No concepts found in this scheme.":"Select a scheme to browse concepts."},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/VocabularyWorkspace/Sidebar.tsx",lineNumber:161,columnNumber:62},this):m.jsxDEV("div",{style:{flex:1,overflow:"hidden"},children:m.jsxDEV(Cu,{data:b,onSelectConcept:r},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/VocabularyWorkspace/Sidebar.tsx",lineNumber:170,columnNumber:10},this)},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/VocabularyWorkspace/Sidebar.tsx",lineNumber:167,columnNumber:116},this)},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/VocabularyWorkspace/Sidebar.tsx",lineNumber:156,columnNumber:11},this),e[17]=b,e[18]=r,e[19]=c,e[20]=h,e[21]=E):E=e[21];let N;e[22]===Symbol.for("react.memo_cache_sentinel")?(N=m.jsxDEV("div",{style:{padding:"12px 16px",borderTop:"1px solid rgba(255,45,75,0.15)"},children:m.jsxDEV(Nu,{},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/VocabularyWorkspace/Sidebar.tsx",lineNumber:184,columnNumber:8},this)},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/VocabularyWorkspace/Sidebar.tsx",lineNumber:181,columnNumber:11},this),e[22]=N):N=e[22];let k;return e[23]!==S||e[24]!==I||e[25]!==E?(k=m.jsxDEV("div",{style:D,children:[S,I,E,N]},void 0,!0,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/VocabularyWorkspace/Sidebar.tsx",lineNumber:191,columnNumber:11},this),e[23]=S,e[24]=I,e[25]=E,e[26]=k):k=e[26],k}function _u(t){return m.jsxDEV("option",{value:t.uri,style:{background:"#0a0508"},children:t.label},t.uri,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/VocabularyWorkspace/Sidebar.tsx",lineNumber:202,columnNumber:10},this)}function Au(t){const e=ae.c(23);if(e[0]!=="f86142e83fe075c7b4907ab9302726d4520b07fdc6619a1ef09eb7ba09aae0a4"){for(let l=0;l<23;l+=1)e[l]=Symbol.for("react.memo_cache_sentinel");e[0]="f86142e83fe075c7b4907ab9302726d4520b07fdc6619a1ef09eb7ba09aae0a4"}const{concept:r}=t;if(!r){let l;e[1]===Symbol.for("react.memo_cache_sentinel")?(l={display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",height:"100%",color:"#b08b93",textAlign:"center",padding:40},e[1]=l):l=e[1];let f;return e[2]===Symbol.for("react.memo_cache_sentinel")?(f=m.jsxDEV("div",{style:l,children:[m.jsxDEV("svg",{width:"48",height:"48",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round",style:{marginBottom:16,opacity:.4},children:m.jsxDEV("path",{d:"M4 19.5v-15A2.5 2.5 0 0 1 6.5 2H20v20H6.5a2.5 2.5 0 0 1 0-5H20"},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/VocabularyWorkspace/PropertyPanel.tsx",lineNumber:45,columnNumber:12},this)},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/VocabularyWorkspace/PropertyPanel.tsx",lineNumber:42,columnNumber:28},this),m.jsxDEV("p",{style:{fontSize:15,fontWeight:500,marginBottom:4},children:"No concept selected"},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/VocabularyWorkspace/PropertyPanel.tsx",lineNumber:45,columnNumber:93},this),m.jsxDEV("p",{style:{fontSize:13},children:"Click a concept in the tree to view its properties."},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/VocabularyWorkspace/PropertyPanel.tsx",lineNumber:49,columnNumber:35},this)]},void 0,!0,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/VocabularyWorkspace/PropertyPanel.tsx",lineNumber:42,columnNumber:12},this),e[2]=f):f=e[2],f}let n,i,o,a;e[3]===Symbol.for("react.memo_cache_sentinel")?(n={padding:28,overflowY:"auto",height:"100%"},i={borderBottom:"1px solid rgba(255,45,75,0.2)",paddingBottom:20,marginBottom:24},o=m.jsxDEV("div",{style:{display:"flex",alignItems:"center",gap:10,marginBottom:8},children:[m.jsxDEV("span",{style:{display:"inline-block",width:8,height:8,borderRadius:"50%",background:"#d2a8ff",boxShadow:"0 0 8px rgba(210,168,255,0.6)"}},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/VocabularyWorkspace/PropertyPanel.tsx",lineNumber:78,columnNumber:8},this),m.jsxDEV("span",{style:{color:"#d2a8ff",fontSize:12,fontWeight:600,textTransform:"uppercase",letterSpacing:"0.06em"},children:"SKOS Concept"},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/VocabularyWorkspace/PropertyPanel.tsx",lineNumber:85,columnNumber:12},this)]},void 0,!0,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/VocabularyWorkspace/PropertyPanel.tsx",lineNumber:73,columnNumber:10},this),a={margin:0,color:"#fff",fontSize:22,fontWeight:700,wordBreak:"break-word"},e[3]=n,e[4]=i,e[5]=o,e[6]=a):(n=e[3],i=e[4],o=e[5],a=e[6]);let s;e[7]!==r.pref_label?(s=m.jsxDEV("div",{style:i,children:[o,m.jsxDEV("h2",{style:a,children:r.pref_label},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/VocabularyWorkspace/PropertyPanel.tsx",lineNumber:111,columnNumber:30},this)]},void 0,!0,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/VocabularyWorkspace/PropertyPanel.tsx",lineNumber:111,columnNumber:10},this),e[7]=r.pref_label,e[8]=s):s=e[8];let u;e[9]===Symbol.for("react.memo_cache_sentinel")?(u={marginBottom:20,padding:"8px 14px",background:"rgba(255,45,75,0.08)",border:"1px solid rgba(255,45,75,0.2)",borderRadius:6,fontSize:13,color:"#ff8fa0",fontFamily:"'JetBrains Mono', monospace",wordBreak:"break-all"},e[9]=u):u=e[9];let c;e[10]!==r.uri?(c=m.jsxDEV("div",{style:u,children:r.uri},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/VocabularyWorkspace/PropertyPanel.tsx",lineNumber:136,columnNumber:10},this),e[10]=r.uri,e[11]=c):c=e[11];let d;e[12]!==r.alt_labels?(d=r.alt_labels&&r.alt_labels.length>0&&m.jsxDEV("section",{style:{marginBottom:24},children:[m.jsxDEV("h4",{style:{color:"#b08b93",fontSize:12,textTransform:"uppercase",letterSpacing:"0.08em",marginBottom:10},children:"Alternative Labels"},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/VocabularyWorkspace/PropertyPanel.tsx",lineNumber:146,columnNumber:8},this),m.jsxDEV("div",{style:{display:"flex",gap:8,flexWrap:"wrap"},children:r.alt_labels.map(ju)},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/VocabularyWorkspace/PropertyPanel.tsx",lineNumber:152,columnNumber:33},this)]},void 0,!0,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/VocabularyWorkspace/PropertyPanel.tsx",lineNumber:144,columnNumber:65},this),e[12]=r.alt_labels,e[13]=d):d=e[13];let h,y;e[14]===Symbol.for("react.memo_cache_sentinel")?(y={background:"rgba(0,0,0,0.2)",padding:16,borderRadius:8,border:"1px solid rgba(255,255,255,0.05)"},h=m.jsxDEV("h4",{style:{color:"#b08b93",fontSize:12,textTransform:"uppercase",letterSpacing:"0.08em",marginBottom:10},children:"Narrower Concepts"},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/VocabularyWorkspace/PropertyPanel.tsx",lineNumber:171,columnNumber:11},this),e[14]=h,e[15]=y):(h=e[14],y=e[15]);let b;e[16]!==r.children?(b=m.jsxDEV("section",{style:y,children:[h,r.children&&r.children.length>0?m.jsxDEV("div",{style:{display:"flex",flexDirection:"column",gap:6},children:r.children.map(Pu)},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/VocabularyWorkspace/PropertyPanel.tsx",lineNumber:186,columnNumber:87},this):m.jsxDEV("p",{style:{margin:0,color:"#484f58",fontStyle:"italic",fontSize:13},children:"Leaf concept — no narrower concepts."},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/VocabularyWorkspace/PropertyPanel.tsx",lineNumber:190,columnNumber:49},this)]},void 0,!0,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/VocabularyWorkspace/PropertyPanel.tsx",lineNumber:186,columnNumber:11},this),e[16]=r.children,e[17]=b):b=e[17];let D;return e[18]!==b||e[19]!==s||e[20]!==c||e[21]!==d?(D=m.jsxDEV("div",{style:n,children:[s,c,d,b]},void 0,!0,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/VocabularyWorkspace/PropertyPanel.tsx",lineNumber:203,columnNumber:11},this),e[18]=b,e[19]=s,e[20]=c,e[21]=d,e[22]=D):D=e[22],D}function Pu(t){return m.jsxDEV("span",{style:{color:"#e8ccd1",fontSize:13,padding:"6px 10px",background:"rgba(255,45,75,0.06)",borderRadius:4,border:"1px solid rgba(255,45,75,0.12)"},children:t.pref_label},t.uri,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/VocabularyWorkspace/PropertyPanel.tsx",lineNumber:215,columnNumber:10},this)}function ju(t,e){return m.jsxDEV("span",{style:{background:"#21262d",color:"#e8ccd1",padding:"4px 10px",borderRadius:4,fontSize:13,border:"1px solid rgba(255,255,255,0.06)"},children:t},e,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/VocabularyWorkspace/PropertyPanel.tsx",lineNumber:225,columnNumber:10},this)}const Ru=`
|
|
16
|
+
Use the data prop if you want to provide your own handlers.`);if(t.initialData){const[e,r]=Ou(t.initialData);return Object.assign(Object.assign(Object.assign({},t),r),{data:e})}else return t}function Tu(t,e){const r=xu(t);return O.jsxs(mu,{treeProps:r,imperativeHandle:e,children:[O.jsx(yu,{children:O.jsx(bu,{})}),O.jsx(Su,{})]})}const Eu=v.forwardRef(Tu),Cu=t=>{const e=ae.c(7);if(e[0]!=="4d0c20b93017ff2a18b1744d7e8bfbf8b2368d0d5a9ea59ed5f945b6fefa497f"){for(let s=0;s<7;s+=1)e[s]=Symbol.for("react.memo_cache_sentinel");e[0]="4d0c20b93017ff2a18b1744d7e8bfbf8b2368d0d5a9ea59ed5f945b6fefa497f"}const{data:r,onSelectConcept:n}=t;let i;e[1]===Symbol.for("react.memo_cache_sentinel")?(i={height:"100%",width:"100%",backgroundColor:"transparent",overflow:"hidden"},e[1]=i):i=e[1];let o;e[2]!==n?(o=s=>{const{node:u,style:c,dragHandle:d}=s,h=u.children&&u.children.length>0;return m.jsxDEV("div",{ref:d,onClick:()=>{u.toggle(),n(u.data)},style:{...c,display:"flex",alignItems:"center",padding:"0 8px",cursor:"pointer",backgroundColor:u.isSelected?"rgba(255,45,75,0.12)":"transparent",userSelect:"none",borderBottom:"1px solid rgba(28, 20, 24,0.04)",transition:"background 0.15s"},onMouseEnter:y=>{u.isSelected||(y.currentTarget.style.background="rgba(255,45,75,0.06)")},onMouseLeave:y=>{u.isSelected||(y.currentTarget.style.background="transparent")},children:[m.jsxDEV("span",{style:{width:20,display:"flex",justifyContent:"center"},children:h?u.isOpen?m.jsxDEV(fn,{size:14,color:"#b08b93"},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/VocabularyWorkspace/ConceptTree.tsx",lineNumber:75,columnNumber:38},void 0):m.jsxDEV(pn,{size:14,color:"#b08b93"},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/VocabularyWorkspace/ConceptTree.tsx",lineNumber:75,columnNumber:82},void 0):null},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/VocabularyWorkspace/ConceptTree.tsx",lineNumber:71,columnNumber:10},void 0),m.jsxDEV("span",{style:{marginRight:8,display:"flex",alignItems:"center"},children:h?m.jsxDEV(Dn,{size:14,color:"#7c3aed"},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/VocabularyWorkspace/ConceptTree.tsx",lineNumber:79,columnNumber:24},void 0):m.jsxDEV(hn,{size:14,color:"#484f58"},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/VocabularyWorkspace/ConceptTree.tsx",lineNumber:79,columnNumber:63},void 0)},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/VocabularyWorkspace/ConceptTree.tsx",lineNumber:75,columnNumber:139},void 0),m.jsxDEV("span",{style:{fontSize:13,color:"#523036",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis"},children:u.data.pref_label},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/VocabularyWorkspace/ConceptTree.tsx",lineNumber:79,columnNumber:109},void 0)]},void 0,!0,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/VocabularyWorkspace/ConceptTree.tsx",lineNumber:50,columnNumber:14},void 0)},e[2]=n,e[3]=o):o=e[3];let a;return e[4]!==r||e[5]!==o?(a=m.jsxDEV("div",{style:i,children:m.jsxDEV(Eu,{data:r,idAccessor:"uri",width:"100%",height:600,indent:24,rowHeight:36,childrenAccessor:"children",children:o},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/VocabularyWorkspace/ConceptTree.tsx",lineNumber:94,columnNumber:26},void 0)},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/VocabularyWorkspace/ConceptTree.tsx",lineNumber:94,columnNumber:10},void 0),e[4]=r,e[5]=o,e[6]=a):a=e[6],a},Nu=()=>{const t=ae.c(30);if(t[0]!=="fb59a14e9b0540d3b4d4d125343d868af82a9dd87fc4d6af8cf98ba04eb3baa4"){for(let E=0;E<30;E+=1)t[E]=Symbol.for("react.memo_cache_sentinel");t[0]="fb59a14e9b0540d3b4d4d125343d868af82a9dd87fc4d6af8cf98ba04eb3baa4"}const[e,r]=v.useState(null),[n,i]=v.useState(null),o=ln();let a;t[1]!==o?(a=E=>{if(E.length>0){const N=E[0];r(N),i(null),o.mutate(N,{onSuccess:k=>{i(k),setTimeout(()=>{r(null),i(null)},4e3)},onError:k=>{console.error("Upload failed:",k),r(null)}})}},t[1]=o,t[2]=a):a=t[2];const s=a;let u;t[3]===Symbol.for("react.memo_cache_sentinel")?(u={"text/turtle":[".ttl"],"application/rdf+xml":[".rdf",".owl"]},t[3]=u):u=t[3];let c;t[4]!==s?(c={onDrop:s,accept:u,maxFiles:1},t[4]=s,t[5]=c):c=t[5];const{getRootProps:d,getInputProps:h,isDragActive:y}=mn(c);let b;t[6]!==d?(b=d(),t[6]=d,t[7]=b):b=t[7];const D=`2px dashed ${y?"#ff2d4b":"rgba(255,45,75,0.25)"}`,l=y?"rgba(255,45,75,0.06)":"rgba(0,0,0,0.2)";let f;t[8]!==D||t[9]!==l?(f={border:D,backgroundColor:l,borderRadius:8,padding:"16px 12px",textAlign:"center",cursor:"pointer",transition:"all 0.2s ease"},t[8]=D,t[9]=l,t[10]=f):f=t[10];let p;t[11]!==h?(p=h(),t[11]=h,t[12]=p):p=t[12];let g;t[13]!==p?(g=m.jsxDEV("input",{...p},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/VocabularyWorkspace/ImportDropzone.tsx",lineNumber:116,columnNumber:10},void 0),t[13]=p,t[14]=g):g=t[14];let S;t[15]!==e?.name||t[16]!==o.isPending||t[17]!==n||t[18]!==y?(S=o.isPending?m.jsxDEV("div",{style:{display:"flex",flexDirection:"column",alignItems:"center",color:"#b08b93"},children:[m.jsxDEV(yn,{className:"animate-spin",size:20,style:{marginBottom:6}},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/VocabularyWorkspace/ImportDropzone.tsx",lineNumber:129,columnNumber:8},void 0),m.jsxDEV("span",{style:{fontSize:12},children:["Uploading ",e?.name,"…"]},void 0,!0,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/VocabularyWorkspace/ImportDropzone.tsx",lineNumber:131,columnNumber:12},void 0)]},void 0,!0,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/VocabularyWorkspace/ImportDropzone.tsx",lineNumber:124,columnNumber:37},void 0):n?m.jsxDEV("div",{style:{display:"flex",flexDirection:"column",alignItems:"center",color:"#22863a"},children:[m.jsxDEV(bn,{size:20,style:{marginBottom:6}},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/VocabularyWorkspace/ImportDropzone.tsx",lineNumber:138,columnNumber:8},void 0),m.jsxDEV("span",{style:{fontSize:12,fontWeight:500},children:"Import Successful!"},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/VocabularyWorkspace/ImportDropzone.tsx",lineNumber:140,columnNumber:12},void 0),m.jsxDEV("span",{style:{fontSize:11,marginTop:2,color:"#178a4c"},children:["+",n.nodes_added," concepts · +",n.edges_added," links"]},void 0,!0,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/VocabularyWorkspace/ImportDropzone.tsx",lineNumber:143,columnNumber:35},void 0)]},void 0,!0,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/VocabularyWorkspace/ImportDropzone.tsx",lineNumber:133,columnNumber:64},void 0):m.jsxDEV("div",{style:{display:"flex",flexDirection:"column",alignItems:"center",color:"#b08b93"},children:[m.jsxDEV(vn,{size:20,style:{marginBottom:6,color:y?"#ff2d4b":"#484f58"}},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/VocabularyWorkspace/ImportDropzone.tsx",lineNumber:152,columnNumber:8},void 0),m.jsxDEV("span",{style:{fontSize:12,fontWeight:500,color:"#523036"},children:y?"Drop here…":"Import Vocabulary"},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/VocabularyWorkspace/ImportDropzone.tsx",lineNumber:155,columnNumber:12},void 0),m.jsxDEV("span",{style:{fontSize:11,marginTop:2},children:".ttl or .rdf"},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/VocabularyWorkspace/ImportDropzone.tsx",lineNumber:159,columnNumber:73},void 0)]},void 0,!0,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/VocabularyWorkspace/ImportDropzone.tsx",lineNumber:147,columnNumber:98},void 0),t[15]=e?.name,t[16]=o.isPending,t[17]=n,t[18]=y,t[19]=S):S=t[19];let w;t[20]!==b||t[21]!==f||t[22]!==g||t[23]!==S?(w=m.jsxDEV("div",{...b,style:f,children:[g,S]},void 0,!0,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/VocabularyWorkspace/ImportDropzone.tsx",lineNumber:173,columnNumber:11},void 0),t[20]=b,t[21]=f,t[22]=g,t[23]=S,t[24]=w):w=t[24];let I;t[25]!==o.isError?(I=o.isError&&m.jsxDEV("p",{style:{color:"#c11810",fontSize:11,marginTop:6,textAlign:"center"},children:"Upload failed. Check console."},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/VocabularyWorkspace/ImportDropzone.tsx",lineNumber:184,columnNumber:37},void 0),t[25]=o.isError,t[26]=I):I=t[26];let T;return t[27]!==w||t[28]!==I?(T=m.jsxDEV("div",{children:[w,I]},void 0,!0,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/VocabularyWorkspace/ImportDropzone.tsx",lineNumber:197,columnNumber:11},void 0),t[27]=w,t[28]=I,t[29]=T):T=t[29],T};function ku(t){const e=ae.c(27);if(e[0]!=="d20fdef5f6e8a99d1d469806fedcef4604816039aeb958e24ed6154a7fe1d78d"){for(let M=0;M<27;M+=1)e[M]=Symbol.for("react.memo_cache_sentinel");e[0]="d20fdef5f6e8a99d1d469806fedcef4604816039aeb958e24ed6154a7fe1d78d"}const{onSelectConcept:r}=t,{data:n,isLoading:i}=cn();let o;e[1]!==n?(o=n===void 0?[]:n,e[1]=n,e[2]=o):o=e[2];const a=o,[s,u]=v.useState(),c=s??a[0]?.uri,{data:d,isLoading:h}=dn(c);let y;e[3]!==d?(y=d===void 0?[]:d,e[3]=d,e[4]=y):y=e[4];const b=y;let D,l,f,p;e[5]===Symbol.for("react.memo_cache_sentinel")?(D={width:340,display:"flex",flexDirection:"column",borderRight:"1px solid rgba(255,45,75,0.15)",backgroundColor:"#f5f5f6",overflow:"hidden"},l={padding:"20px 20px 16px",borderBottom:"1px solid rgba(255,45,75,0.15)"},f=m.jsxDEV("h2",{style:{fontSize:18,color:"#523036",margin:"0 0 4px 0",fontWeight:600},children:"Ontology & Vocabulary"},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/VocabularyWorkspace/Sidebar.tsx",lineNumber:74,columnNumber:10},this),p={color:"#b08b93",fontSize:13,margin:0},e[5]=D,e[6]=l,e[7]=f,e[8]=p):(D=e[5],l=e[6],f=e[7],p=e[8]);const g=a.length?`${a.length} vocabulary scheme${a.length>1?"s":""}`:"No vocabularies loaded";let S;e[9]!==g?(S=m.jsxDEV("div",{style:l,children:[f,m.jsxDEV("p",{style:p,children:g},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/VocabularyWorkspace/Sidebar.tsx",lineNumber:98,columnNumber:31},this)]},void 0,!0,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/VocabularyWorkspace/Sidebar.tsx",lineNumber:98,columnNumber:11},this),e[9]=g,e[10]=S):S=e[10];let w;e[11]===Symbol.for("react.memo_cache_sentinel")?(w={padding:"12px 16px",borderBottom:"1px solid rgba(255,45,75,0.1)"},e[11]=w):w=e[11];let I;e[12]!==a||e[13]!==i||e[14]!==c?(I=m.jsxDEV("div",{style:w,children:i?m.jsxDEV("div",{style:{color:"#b08b93",fontSize:13},children:"Loading schemes…"},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/VocabularyWorkspace/Sidebar.tsx",lineNumber:116,columnNumber:46},this):a.length===0?m.jsxDEV("div",{style:{color:"#484f58",fontSize:13,fontStyle:"italic"},children:"No schemes found. Import a .ttl or .rdf file below."},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/VocabularyWorkspace/Sidebar.tsx",lineNumber:119,columnNumber:58},this):m.jsxDEV("select",{value:c||"",onChange:M=>u(M.target.value),style:{width:"100%",appearance:"none",background:"rgba(0,0,0,0.3)",border:"1px solid rgba(255,45,75,0.2)",color:"#523036",padding:"8px 12px",borderRadius:6,fontSize:13,cursor:"pointer",outline:"none"},children:a.map(_u)},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/VocabularyWorkspace/Sidebar.tsx",lineNumber:123,columnNumber:70},this)},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/VocabularyWorkspace/Sidebar.tsx",lineNumber:116,columnNumber:11},this),e[12]=a,e[13]=i,e[14]=c,e[15]=I):I=e[15];let T;e[16]===Symbol.for("react.memo_cache_sentinel")?(T={flex:1,overflow:"hidden",display:"flex",flexDirection:"column"},e[16]=T):T=e[16];let E;e[17]!==b||e[18]!==r||e[19]!==c||e[20]!==h?(E=m.jsxDEV("div",{style:T,children:h?m.jsxDEV("div",{style:{padding:20,color:"#b08b93",fontSize:13,textAlign:"center"},children:"Loading hierarchy…"},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/VocabularyWorkspace/Sidebar.tsx",lineNumber:156,columnNumber:43},this):b.length===0?m.jsxDEV("div",{style:{padding:20,color:"#484f58",fontSize:13,textAlign:"center",fontStyle:"italic"},children:c?"No concepts found in this scheme.":"Select a scheme to browse concepts."},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/VocabularyWorkspace/Sidebar.tsx",lineNumber:161,columnNumber:62},this):m.jsxDEV("div",{style:{flex:1,overflow:"hidden"},children:m.jsxDEV(Cu,{data:b,onSelectConcept:r},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/VocabularyWorkspace/Sidebar.tsx",lineNumber:170,columnNumber:10},this)},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/VocabularyWorkspace/Sidebar.tsx",lineNumber:167,columnNumber:116},this)},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/VocabularyWorkspace/Sidebar.tsx",lineNumber:156,columnNumber:11},this),e[17]=b,e[18]=r,e[19]=c,e[20]=h,e[21]=E):E=e[21];let N;e[22]===Symbol.for("react.memo_cache_sentinel")?(N=m.jsxDEV("div",{style:{padding:"12px 16px",borderTop:"1px solid rgba(255,45,75,0.15)"},children:m.jsxDEV(Nu,{},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/VocabularyWorkspace/Sidebar.tsx",lineNumber:184,columnNumber:8},this)},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/VocabularyWorkspace/Sidebar.tsx",lineNumber:181,columnNumber:11},this),e[22]=N):N=e[22];let k;return e[23]!==S||e[24]!==I||e[25]!==E?(k=m.jsxDEV("div",{style:D,children:[S,I,E,N]},void 0,!0,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/VocabularyWorkspace/Sidebar.tsx",lineNumber:191,columnNumber:11},this),e[23]=S,e[24]=I,e[25]=E,e[26]=k):k=e[26],k}function _u(t){return m.jsxDEV("option",{value:t.uri,style:{background:"#fdfcfc"},children:t.label},t.uri,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/VocabularyWorkspace/Sidebar.tsx",lineNumber:202,columnNumber:10},this)}function Au(t){const e=ae.c(23);if(e[0]!=="80a36150cf654a5d4fed9365ae273d47691a57630f4c7b5ff608f8d05d1f476f"){for(let l=0;l<23;l+=1)e[l]=Symbol.for("react.memo_cache_sentinel");e[0]="80a36150cf654a5d4fed9365ae273d47691a57630f4c7b5ff608f8d05d1f476f"}const{concept:r}=t;if(!r){let l;e[1]===Symbol.for("react.memo_cache_sentinel")?(l={display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",height:"100%",color:"#b08b93",textAlign:"center",padding:40},e[1]=l):l=e[1];let f;return e[2]===Symbol.for("react.memo_cache_sentinel")?(f=m.jsxDEV("div",{style:l,children:[m.jsxDEV("svg",{width:"48",height:"48",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round",style:{marginBottom:16,opacity:.4},children:m.jsxDEV("path",{d:"M4 19.5v-15A2.5 2.5 0 0 1 6.5 2H20v20H6.5a2.5 2.5 0 0 1 0-5H20"},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/VocabularyWorkspace/PropertyPanel.tsx",lineNumber:45,columnNumber:12},this)},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/VocabularyWorkspace/PropertyPanel.tsx",lineNumber:42,columnNumber:28},this),m.jsxDEV("p",{style:{fontSize:15,fontWeight:500,marginBottom:4},children:"No concept selected"},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/VocabularyWorkspace/PropertyPanel.tsx",lineNumber:45,columnNumber:93},this),m.jsxDEV("p",{style:{fontSize:13},children:"Click a concept in the tree to view its properties."},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/VocabularyWorkspace/PropertyPanel.tsx",lineNumber:49,columnNumber:35},this)]},void 0,!0,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/VocabularyWorkspace/PropertyPanel.tsx",lineNumber:42,columnNumber:12},this),e[2]=f):f=e[2],f}let n,i,o,a;e[3]===Symbol.for("react.memo_cache_sentinel")?(n={padding:28,overflowY:"auto",height:"100%"},i={borderBottom:"1px solid rgba(255,45,75,0.2)",paddingBottom:20,marginBottom:24},o=m.jsxDEV("div",{style:{display:"flex",alignItems:"center",gap:10,marginBottom:8},children:[m.jsxDEV("span",{style:{display:"inline-block",width:8,height:8,borderRadius:"50%",background:"#7c3aed",boxShadow:"0 0 8px rgba(210,168,255,0.6)"}},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/VocabularyWorkspace/PropertyPanel.tsx",lineNumber:78,columnNumber:8},this),m.jsxDEV("span",{style:{color:"#7c3aed",fontSize:12,fontWeight:600,textTransform:"uppercase",letterSpacing:"0.06em"},children:"SKOS Concept"},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/VocabularyWorkspace/PropertyPanel.tsx",lineNumber:85,columnNumber:12},this)]},void 0,!0,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/VocabularyWorkspace/PropertyPanel.tsx",lineNumber:73,columnNumber:10},this),a={margin:0,color:"#16181d",fontSize:22,fontWeight:700,wordBreak:"break-word"},e[3]=n,e[4]=i,e[5]=o,e[6]=a):(n=e[3],i=e[4],o=e[5],a=e[6]);let s;e[7]!==r.pref_label?(s=m.jsxDEV("div",{style:i,children:[o,m.jsxDEV("h2",{style:a,children:r.pref_label},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/VocabularyWorkspace/PropertyPanel.tsx",lineNumber:111,columnNumber:30},this)]},void 0,!0,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/VocabularyWorkspace/PropertyPanel.tsx",lineNumber:111,columnNumber:10},this),e[7]=r.pref_label,e[8]=s):s=e[8];let u;e[9]===Symbol.for("react.memo_cache_sentinel")?(u={marginBottom:20,padding:"8px 14px",background:"rgba(255,45,75,0.08)",border:"1px solid rgba(255,45,75,0.2)",borderRadius:6,fontSize:13,color:"#d9455e",fontFamily:"'JetBrains Mono', monospace",wordBreak:"break-all"},e[9]=u):u=e[9];let c;e[10]!==r.uri?(c=m.jsxDEV("div",{style:u,children:r.uri},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/VocabularyWorkspace/PropertyPanel.tsx",lineNumber:136,columnNumber:10},this),e[10]=r.uri,e[11]=c):c=e[11];let d;e[12]!==r.alt_labels?(d=r.alt_labels&&r.alt_labels.length>0&&m.jsxDEV("section",{style:{marginBottom:24},children:[m.jsxDEV("h4",{style:{color:"#b08b93",fontSize:12,textTransform:"uppercase",letterSpacing:"0.08em",marginBottom:10},children:"Alternative Labels"},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/VocabularyWorkspace/PropertyPanel.tsx",lineNumber:146,columnNumber:8},this),m.jsxDEV("div",{style:{display:"flex",gap:8,flexWrap:"wrap"},children:r.alt_labels.map(ju)},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/VocabularyWorkspace/PropertyPanel.tsx",lineNumber:152,columnNumber:33},this)]},void 0,!0,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/VocabularyWorkspace/PropertyPanel.tsx",lineNumber:144,columnNumber:65},this),e[12]=r.alt_labels,e[13]=d):d=e[13];let h,y;e[14]===Symbol.for("react.memo_cache_sentinel")?(y={background:"rgba(0,0,0,0.2)",padding:16,borderRadius:8,border:"1px solid rgba(28, 20, 24,0.05)"},h=m.jsxDEV("h4",{style:{color:"#b08b93",fontSize:12,textTransform:"uppercase",letterSpacing:"0.08em",marginBottom:10},children:"Narrower Concepts"},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/VocabularyWorkspace/PropertyPanel.tsx",lineNumber:171,columnNumber:11},this),e[14]=h,e[15]=y):(h=e[14],y=e[15]);let b;e[16]!==r.children?(b=m.jsxDEV("section",{style:y,children:[h,r.children&&r.children.length>0?m.jsxDEV("div",{style:{display:"flex",flexDirection:"column",gap:6},children:r.children.map(Pu)},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/VocabularyWorkspace/PropertyPanel.tsx",lineNumber:186,columnNumber:87},this):m.jsxDEV("p",{style:{margin:0,color:"#484f58",fontStyle:"italic",fontSize:13},children:"Leaf concept — no narrower concepts."},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/VocabularyWorkspace/PropertyPanel.tsx",lineNumber:190,columnNumber:49},this)]},void 0,!0,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/VocabularyWorkspace/PropertyPanel.tsx",lineNumber:186,columnNumber:11},this),e[16]=r.children,e[17]=b):b=e[17];let D;return e[18]!==b||e[19]!==s||e[20]!==c||e[21]!==d?(D=m.jsxDEV("div",{style:n,children:[s,c,d,b]},void 0,!0,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/VocabularyWorkspace/PropertyPanel.tsx",lineNumber:203,columnNumber:11},this),e[18]=b,e[19]=s,e[20]=c,e[21]=d,e[22]=D):D=e[22],D}function Pu(t){return m.jsxDEV("span",{style:{color:"#523036",fontSize:13,padding:"6px 10px",background:"rgba(255,45,75,0.06)",borderRadius:4,border:"1px solid rgba(255,45,75,0.12)"},children:t.pref_label},t.uri,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/VocabularyWorkspace/PropertyPanel.tsx",lineNumber:215,columnNumber:10},this)}function ju(t,e){return m.jsxDEV("span",{style:{background:"#f9f9f9",color:"#523036",padding:"4px 10px",borderRadius:4,fontSize:13,border:"1px solid rgba(28, 20, 24,0.06)"},children:t},e,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/VocabularyWorkspace/PropertyPanel.tsx",lineNumber:225,columnNumber:10},this)}const Ru=`
|
|
17
17
|
.vocab-workspace {
|
|
18
18
|
display: flex;
|
|
19
19
|
width: 100%;
|
|
20
20
|
height: 100%;
|
|
21
|
-
background: #
|
|
21
|
+
background: #fdfcfc;
|
|
22
22
|
overflow: hidden;
|
|
23
23
|
}
|
|
24
24
|
.vocab-main {
|
|
@@ -33,12 +33,12 @@ Use the data prop if you want to provide your own handlers.`);if(t.initialData){
|
|
|
33
33
|
overflow-y: auto;
|
|
34
34
|
}
|
|
35
35
|
.vocab-detail-glass {
|
|
36
|
-
background: linear-gradient(135deg, rgba(
|
|
36
|
+
background: linear-gradient(135deg, rgba(255, 255, 255,0.75), rgba(255, 255, 255,0.6));
|
|
37
37
|
backdrop-filter: blur(16px) saturate(1.2);
|
|
38
38
|
-webkit-backdrop-filter: blur(16px) saturate(1.2);
|
|
39
39
|
border: 1px solid rgba(255,45,75,0.15);
|
|
40
|
-
box-shadow: 0 8px 32px rgba(0,0,0,0.5), inset 1px 1px 0 rgba(
|
|
40
|
+
box-shadow: 0 8px 32px rgba(0,0,0,0.5), inset 1px 1px 0 rgba(28, 20, 24,0.04);
|
|
41
41
|
border-radius: 14px;
|
|
42
42
|
height: 100%;
|
|
43
43
|
}
|
|
44
|
-
`;function Bu(){const t=ae.c(7);if(t[0]!=="
|
|
44
|
+
`;function Bu(){const t=ae.c(7);if(t[0]!=="8f29dc6c61606a2601b0891b66a500db7e558afa55b388e4653e24cccf77f7e2"){for(let u=0;u<7;u+=1)t[u]=Symbol.for("react.memo_cache_sentinel");t[0]="8f29dc6c61606a2601b0891b66a500db7e558afa55b388e4653e24cccf77f7e2"}const[e,r]=v.useState(null);let n,i;t[1]===Symbol.for("react.memo_cache_sentinel")?(n=m.jsxDEV("style",{children:Ru},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/VocabularyWorkspace/VocabularyWorkspace.tsx",lineNumber:55,columnNumber:10},this),i=m.jsxDEV(ku,{onSelectConcept:r},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/VocabularyWorkspace/VocabularyWorkspace.tsx",lineNumber:56,columnNumber:10},this),t[1]=n,t[2]=i):(n=t[1],i=t[2]);let o;t[3]===Symbol.for("react.memo_cache_sentinel")?(o=m.jsxDEV("div",{style:{position:"absolute",inset:0,pointerEvents:"none",background:"radial-gradient(ellipse at top right, rgba(210,168,255,0.04), transparent 60%)"}},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/VocabularyWorkspace/VocabularyWorkspace.tsx",lineNumber:65,columnNumber:10},this),t[3]=o):o=t[3];let a;t[4]===Symbol.for("react.memo_cache_sentinel")?(a={padding:32},t[4]=a):a=t[4];let s;return t[5]!==e?(s=m.jsxDEV("div",{className:"vocab-workspace",children:[n,i,m.jsxDEV("div",{className:"vocab-main",children:[o,m.jsxDEV("div",{className:"vocab-main-content",style:a,children:m.jsxDEV("div",{className:"vocab-detail-glass",children:m.jsxDEV(Au,{concept:e},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/VocabularyWorkspace/VocabularyWorkspace.tsx",lineNumber:86,columnNumber:166},this)},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/VocabularyWorkspace/VocabularyWorkspace.tsx",lineNumber:86,columnNumber:130},this)},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/VocabularyWorkspace/VocabularyWorkspace.tsx",lineNumber:86,columnNumber:83},this)]},void 0,!0,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/VocabularyWorkspace/VocabularyWorkspace.tsx",lineNumber:86,columnNumber:51},this)]},void 0,!0,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/VocabularyWorkspace/VocabularyWorkspace.tsx",lineNumber:86,columnNumber:10},this),t[5]=e,t[6]=s):s=t[6],s}export{Bu as VocabularyWorkspace};
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import{b}from"./index-CVYHt6Z6.js";/**
|
|
2
|
+
* @license lucide-react v1.8.0 - ISC
|
|
3
|
+
*
|
|
4
|
+
* This source code is licensed under the ISC license.
|
|
5
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
6
|
+
*/const m=[["path",{d:"M2.062 12.348a1 1 0 0 1 0-.696 10.75 10.75 0 0 1 19.876 0 1 1 0 0 1 0 .696 10.75 10.75 0 0 1-19.876 0",key:"1nclc0"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]],S=b("eye",m),f=!0,h={palette:{semantic:["#3e79f2","#149287","#2f9f61","#555fd6","#6d28d9","#b65473","#8a5a10"],overview:{nodeBase:"#f7f7f7",nodeCore:"#5a7a9e",nodeMuted:"#f8f8f8",nodeBorder:"#7a92ae",nodeTintMix:.14,nodeCoreMix:.72,nodeShellAlpha:.97,nodeCoreAlpha:1,edgeBackbone:"rgba(84, 123, 145, 0.24)",edgeStructure:"rgba(49, 63, 78, 0.08)",edgeInspection:"rgba(76, 102, 128, 0.12)"},accent:{selected:"#7d5c14",hovered:"#0f92bd",path:"#93481a",temporal:"#0a86ad",provenance:"#8b5cf6",inferred:"#a04a1e"},muted:{fallback:"rgba(96, 112, 136, 0.18)",nodeAlpha:.12,edgeOverview:"rgba(255, 255, 255, 0.035)",edgeStructure:"rgba(42, 58, 72, 0.055)",edgeInspection:"rgba(62, 84, 104, 0.075)",edgeFocus:"rgba(132, 178, 202, 0.26)"},background:{canvas:"#f6f6f7",shell:"rgba(255, 255, 255, 0.82)",shellBorder:"rgba(170, 184, 205, 0.14)",shellGlow:"rgba(0, 0, 0, 0.28)",grid:"rgba(170, 184, 205, 0.026)",vignette:"rgba(255, 255, 255, 0.76)",nodeBorder:"#f6f6f7"}},ui:{text:{strong:"#28251c",body:"#3b4045",muted:"#9aa3ae",subtle:"#6f7a86",inverse:"#f6f6f7"},surface:{app:"#f5f5f6",stage:"#f6f6f7",card:"linear-gradient(180deg, rgba(255, 255, 255, 0.88), rgba(255, 255, 255, 0.78))",cardSubtle:"linear-gradient(180deg, rgba(255, 255, 255, 0.72), rgba(255, 255, 255, 0.64))",cardStrong:"linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(255, 255, 255, 0.9))",panel:"linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(255, 255, 255, 0.9))",panelBorder:"rgba(70, 60, 48, 0.13)",divider:"rgba(70, 60, 48, 0.1)",shadow:"0 22px 60px rgba(0, 0, 0, 0.34), inset 0 1px 0 rgba(28, 20, 24, 0.045)"},scene:{background:"linear-gradient(180deg, #f6f6f7 0%, #f5f5f6 100%)",radialGlow:"radial-gradient(circle at 50% 18%, rgba(88, 224, 204, 0.07), transparent 30%), radial-gradient(circle at 78% 0%, rgba(217, 168, 92, 0.055), transparent 26%)",grid:"rgba(70, 62, 50, 0.024)",gridStrong:"rgba(70, 62, 50, 0.052)",vignette:"radial-gradient(ellipse at center, transparent 42%, rgba(255, 255, 255, 0.82) 100%)"},control:{defaultBg:"rgba(28, 20, 24, 0.035)",defaultBorder:"rgba(70, 60, 48, 0.11)",defaultText:"#3c372d",hoverBg:"rgba(28, 20, 24, 0.065)",activeBg:"linear-gradient(180deg, rgba(74, 181, 166, 0.24), rgba(38, 118, 116, 0.18))",activeBorder:"rgba(98, 226, 205, 0.42)",activeText:"#162e28",primaryBg:"linear-gradient(180deg, rgba(55, 145, 132, 0.42), rgba(24, 86, 88, 0.28))",primaryBorder:"rgba(99, 228, 206, 0.34)",primaryText:"#162d26",disabledText:"rgba(154, 163, 174, 0.42)",inputBg:"rgba(255, 255, 255, 0.52)",inputBorder:"rgba(70, 60, 48, 0.13)",focusRing:"rgba(98, 226, 205, 0.16)",dangerText:"#3f1f1b"},timeline:{background:"linear-gradient(180deg, rgba(255, 255, 255, 0.86), rgba(255, 255, 255, 0.92))",border:"rgba(170, 184, 205, 0.12)",gridMinor:"rgba(170, 184, 205, 0.04)",gridMajor:"rgba(170, 184, 205, 0.09)",text:"#7a92ae",textStrong:"#a5b7cd",playhead:"#0f92bd",playheadSoft:"rgba(143, 231, 255, 0.12)"}},zoomTiers:{overview:{maxRatio:Number.POSITIVE_INFINITY,nodeScale:.72,labelThreshold:.998,labelBudget:2,edgePriorityThreshold:.72,arrowPriorityThreshold:Number.POSITIVE_INFINITY,edgeSizeScale:.62,showBadges:!1,showCurves:!0,showContextualArrows:!1},structure:{maxRatio:1.2,nodeScale:.94,labelThreshold:.95,labelBudget:12,edgePriorityThreshold:.4,arrowPriorityThreshold:.75,edgeSizeScale:.92,showBadges:!1,showCurves:!0,showContextualArrows:!1},inspection:{maxRatio:.5,nodeScale:1,labelThreshold:.8,labelBudget:40,edgePriorityThreshold:0,arrowPriorityThreshold:.45,edgeSizeScale:1.18,showBadges:!0,showCurves:!0,showContextualArrows:!0}},labels:{forceVisibleStates:["hovered","selected","path"],policies:{none:{minZoomTier:"inspection"},priority:{minZoomTier:"overview"},local:{minZoomTier:"structure"},always:{minZoomTier:"overview"}},chip:{fontFamily:'"IBM Plex Sans", Inter, system-ui, sans-serif',fontWeight:500,fontSize:10,maxFontSize:11,sizeScale:.25,paddingX:6,paddingY:3,radius:6,offsetX:12,offsetY:10,background:"rgba(255, 255, 255, 0.9)",borderColor:"rgba(154, 181, 212, 0.16)",borderAlpha:.28,textColor:"#16202d",shadowColor:"rgba(0, 0, 0, 0.6)",shadowAlpha:.26,shadowBlur:12},hoverCard:{fontFamily:'"IBM Plex Sans", Inter, system-ui, sans-serif',titleWeight:700,titleSize:13,metaWeight:500,metaSize:10,paddingX:10,paddingY:7,radius:12,offsetX:16,offsetY:16,metaGap:5,background:"rgba(255, 255, 255, 0.94)",borderColor:"rgba(154, 181, 212, 0.18)",borderAlpha:.32,textColor:"#16232d",metaColor:"rgba(25, 90, 175, 0.58)",shadowColor:"rgba(0, 0, 0, 0.62)",shadowAlpha:.34,shadowBlur:15}},nodes:{backgroundScale:.52,mutedAlpha:.16,strokeHierarchy:{overview:{base:.05,emphasis:.34,muted:.02},structure:{base:1.05,emphasis:1.45,muted:.55},inspection:{base:1.2,emphasis:1.7,muted:.6}},states:{default:{color:"base",sizeMultiplier:.7,minSize:.64,forceLabel:!1,zIndex:0,borderBoost:-.46},hovered:{color:"hovered",sizeMultiplier:1.08,minSize:10.4,forceLabel:!0,zIndex:4,borderBoost:.2},selected:{color:"selected",sizeMultiplier:1.02,minSize:9.2,forceLabel:!0,zIndex:3,borderBoost:.22},neighbor:{color:"base",sizeMultiplier:.76,minSize:4,forceLabel:!1,zIndex:2,borderBoost:-.08},path:{color:"path",sizeMultiplier:.96,minSize:5.6,forceLabel:!0,zIndex:2,borderBoost:.08},inactive:{color:"muted",sizeMultiplier:.52,minSize:.58,forceLabel:!1,zIndex:0,borderBoost:-.42},muted:{color:"muted",sizeMultiplier:.52,minSize:.58,forceLabel:!1,zIndex:0,borderBoost:-.42}},variants:{default:{sizeMultiplier:1,borderBoost:0,haloBoost:0,badgeVisibleFrom:"inspection"},temporal:{sizeMultiplier:1.02,borderBoost:.12,haloBoost:.1,badgeKind:"temporal",badgeVisibleFrom:"inspection"},inferred:{sizeMultiplier:1.05,borderBoost:.16,haloBoost:.14,badgeKind:"inferred",badgeVisibleFrom:"inspection"},provenance:{sizeMultiplier:1.03,borderBoost:.14,haloBoost:.12,badgeKind:"provenance",badgeVisibleFrom:"inspection"},selected:{sizeMultiplier:1.06,borderBoost:.22,haloBoost:.16,badgeVisibleFrom:"overview"}},entityShapes:{entity:{label:"Entity",shapeKind:0,aspectRatio:1,fillAlpha:.9,shellAlpha:.14,coreScale:0,borderBoost:.08,minSize:0},biomolecule:{label:"Biomolecule",shapeKind:1,aspectRatio:1,fillAlpha:.9,shellAlpha:.16,coreScale:.18,borderBoost:.16,minSize:1.2},condition:{label:"Condition",shapeKind:2,aspectRatio:1.04,fillAlpha:.88,shellAlpha:.15,coreScale:.16,borderBoost:.18,minSize:1.6},compound:{label:"Compound",shapeKind:3,aspectRatio:1.48,fillAlpha:.88,shellAlpha:.15,coreScale:.14,borderBoost:.14,minSize:1.4},process:{label:"Process",shapeKind:4,aspectRatio:1.1,fillAlpha:.87,shellAlpha:.14,coreScale:.14,borderBoost:.16,minSize:1.4},community:{label:"Community",shapeKind:5,aspectRatio:1,fillAlpha:.68,shellAlpha:.28,coreScale:.78,borderBoost:.34,minSize:2}},selectedRing:{color:"#8a6414",width:1.9,nativeSize:2.2,glowAlpha:.2,visibleFrom:"overview"},badges:{inferred:{color:"#7d4420",label:"I"},temporal:{color:"#0f7fa6",label:"T"},provenance:{color:"#a289d0",label:"P"}},badge:{radius:7,offset:3,fontSize:8,textColor:"#f6f7f7",background:"rgba(255, 255, 255, 0.84)",stroke:"rgba(28, 20, 24,0.14)",glowAlpha:.24}},edges:{states:{default:{color:"structure",sizeMultiplier:.48,minSize:.2,zIndex:0,forceArrow:!1,hide:!1},backbone:{color:"backbone",sizeMultiplier:.62,minSize:.36,zIndex:1,forceArrow:!1,hide:!1},hovered:{color:"hover",sizeMultiplier:1.42,minSize:1.85,zIndex:5,forceArrow:!0,hide:!1},selected:{color:"hover",sizeMultiplier:1.42,minSize:1.85,zIndex:5,forceArrow:!0,hide:!1},neighbor:{color:"focus",sizeMultiplier:.96,minSize:.86,zIndex:1,forceArrow:!1,hide:!1},path:{color:"path",sizeMultiplier:1.82,minSize:2.55,zIndex:6,forceArrow:!0,hide:!1},inactive:{color:"muted",sizeMultiplier:.24,minSize:.18,zIndex:0,forceArrow:!1,hide:!1},muted:{color:"muted",sizeMultiplier:.24,minSize:.18,zIndex:0,forceArrow:!1,hide:!1}},variants:{line:{baseType:"line",arrowPolicy:"hidden",curveStrength:0,sizeMultiplier:1,glowAlpha:0},directional:{baseType:"line",arrowPolicy:"contextual",curveStrength:0,sizeMultiplier:1.04,glowAlpha:.08},bidirectionalCurve:{baseType:"line",arrowPolicy:"contextual",curveStrength:.18,sizeMultiplier:1.08,glowAlpha:.1},parallelCurve:{baseType:"line",arrowPolicy:"contextual",curveStrength:.24,sizeMultiplier:1.1,glowAlpha:.12},pathSignal:{baseType:"arrow",arrowPolicy:"always",curveStrength:.16,sizeMultiplier:1.18,glowAlpha:.2}},visibility:{full:{overview:{defaultPriorityThreshold:.96,backgroundSampleRate:.035,defaultAlpha:.026,mutedAlpha:.012,inactiveAlpha:.01,neighborAlpha:.26,sizeMultiplier:.5,hideMuted:!0},structure:{defaultPriorityThreshold:.82,backgroundSampleRate:.16,defaultAlpha:.04,mutedAlpha:.014,inactiveAlpha:.012,neighborAlpha:.32,sizeMultiplier:.62,hideMuted:!0},inspection:{defaultPriorityThreshold:.72,backgroundSampleRate:.28,defaultAlpha:.052,mutedAlpha:.012,inactiveAlpha:.01,neighborAlpha:.38,sizeMultiplier:.64,hideMuted:!0}},grouped:{overview:{defaultPriorityThreshold:.42,backgroundSampleRate:1,defaultAlpha:.18,mutedAlpha:.06,inactiveAlpha:.04,neighborAlpha:.36,sizeMultiplier:.72,hideMuted:!1},structure:{defaultPriorityThreshold:.34,backgroundSampleRate:1,defaultAlpha:.2,mutedAlpha:.07,inactiveAlpha:.05,neighborAlpha:.42,sizeMultiplier:.78,hideMuted:!1},inspection:{defaultPriorityThreshold:.28,backgroundSampleRate:1,defaultAlpha:.22,mutedAlpha:.08,inactiveAlpha:.06,neighborAlpha:.46,sizeMultiplier:.82,hideMuted:!1}},focused:{overview:{defaultPriorityThreshold:.72,backgroundSampleRate:.7,defaultAlpha:.1,mutedAlpha:.03,inactiveAlpha:.02,neighborAlpha:.06,sizeMultiplier:.72,hideMuted:!0},structure:{defaultPriorityThreshold:.6,backgroundSampleRate:.8,defaultAlpha:.12,mutedAlpha:.035,inactiveAlpha:.025,neighborAlpha:.08,sizeMultiplier:.8,hideMuted:!0},inspection:{defaultPriorityThreshold:.52,backgroundSampleRate:.9,defaultAlpha:.14,mutedAlpha:.04,inactiveAlpha:.03,neighborAlpha:.1,sizeMultiplier:.88,hideMuted:!0}}},contextCaps:{full:{overview:0,structure:12,inspection:24},grouped:{overview:6,structure:8,inspection:10},focused:{overview:24,structure:36,inspection:48}},fullGraphStructure:{ambientBackboneAlpha:.12,backboneAlpha:.08,bridgeAlpha:.14,bridgeCurvePriorityThreshold:.78,bridgeCurveStrength:.1,backboneMaxSize:.5,bridgeMaxSize:.7,structureEdgeAlpha:.12,inspectionEdgeAlpha:.1},fullGraphStructureLayer:{mode:"off",minimumLiteralEdges:24,minimumCurves:8,maxCurves:64,bridgeAlpha:.16,backboneAlpha:.1,bridgeLineWidth:.9,backboneLineWidth:.62,curveStrength:.12}},interaction:{localContextAlpha:.32,hoverContextAlpha:.32,selectedEdgeAlpha:.6,pathEdgeAlpha:.76,localContextMaxSize:.6,selectedEdgeMaxSize:1,pathEdgeMaxSize:1.4,pathOverlayAlpha:.16},overlays:{hoverGlowAlpha:.18,pathGlowAlpha:.16,glowRadiusMultiplier:4.8,minGlowRadius:16,pulseRadius:11,curveLineWidth:1.7,curveGlowWidth:6,badgeGlowRadius:14},focus:{maxNeighbors:16,ringCapacity:6,ringGap:250,primaryLabels:6},motion:{cameraMs:380},grouped:{initialLayout:{innerRadius:92,ringSpacing:138,minNodeSpacing:112,nodePadding:28,overlapIterations:18,primaryLabelCount:6},style:{nodeSizeScale:.9,nodeBorderBoost:.42,fillAlpha:.68,shellAlpha:.28,edgeSizeScale:.62,edgeAlpha:.32,glowAlpha:.14,edgeVisibilityRatio:.18,topIncidentEdges:2},layout:{iterations:18,gravity:.06,scalingRatio:18,edgeWeightInfluence:.08,slowDown:34,settleMs:1500}},effects:{pathPulse:{minZoomTier:"structure",maxSegments:18,speed:.22,radius:11,glowAlpha:.92},pathFlow:{minZoomTier:"structure",maxSegments:14,speed:.36,spacing:.26,opacity:.92,radius:3.8},lens:{minZoomTier:"structure",radius:136,feather:78,glowAlpha:.18,edgeAlpha:.42,edgeLineWidth:1.8},temporalEmphasis:{minZoomTier:"structure",maxHighlights:48,radiusMultiplier:4.2,glowAlpha:.12},semanticRegions:{minZoomTier:"overview",maxRegions:3,minVisibleSamples:14,fogResolutionScale:.22,splatRadius:13,blurPasses:2,densityThreshold:.16,contourThreshold:.28,minMaskPixels:170,minOccupancyRatio:.0022,dominantMassRatio:.62,outerContourMinMaskPixels:240,fogAlpha:.11,innerContourAlpha:.16,outerContourAlpha:.045},contours:{minZoomTier:"overview",maxContours:3,baseRadius:88,glowAlpha:.055},legend:{maxGroups:8},diagnostics:{enabledInDev:f}}},p=["overview","structure","inspection"];function v(e){let r=0;for(let a=0;a<e.length;a+=1)r=(r<<5)-r+e.charCodeAt(a),r|=0;return Math.abs(r)}function g(e,r,a){return Math.min(a,Math.max(e,r))}function z(e,r){if(!e)return`rgba(95, 110, 130, ${r})`;if(e.startsWith("#")){const a=e.slice(1),i=a.length===3?a.split("").map(t=>`${t}${t}`).join(""):a;if(i.length===6){const t=Number.parseInt(i.slice(0,2),16),s=Number.parseInt(i.slice(2,4),16),d=Number.parseInt(i.slice(4,6),16);return`rgba(${t}, ${s}, ${d}, ${r})`}}return e.startsWith("rgba(")?e.replace(/rgba\((.*?),\s*[\d.]+\)/,`rgba($1, ${r})`):e.startsWith("rgb(")?e.replace("rgb(","rgba(").replace(")",`, ${r})`):`rgba(95, 110, 130, ${r})`}function w(e,r){if(!e.startsWith("#"))return e;const a=e.slice(1),i=a.length===3?a.split("").map(l=>`${l}${l}`).join(""):a;if(i.length!==6)return e;const t=l=>g(0,l,255),s=t(Number.parseInt(i.slice(0,2),16)-r),d=t(Number.parseInt(i.slice(2,4),16)-r),c=t(Number.parseInt(i.slice(4,6),16)-r);return`#${[s,d,c].map(l=>l.toString(16).padStart(2,"0")).join("")}`}function x(e,r,a){if(!e.startsWith("#")||!r.startsWith("#"))return r||e;const i=o=>{const n=o.slice(1);return n.length===3?n.split("").map(u=>`${u}${u}`).join(""):n},t=i(e),s=i(r);if(t.length!==6||s.length!==6)return r||e;const d=g(0,a,1),c=(o,n)=>Math.round(o+(n-o)*d);return`#${[0,2,4].map(o=>{const n=Number.parseInt(t.slice(o,o+2),16),u=Number.parseInt(s.slice(o,o+2),16);return c(n,u).toString(16).padStart(2,"0")}).join("")}`}function M(e){return e<=h.zoomTiers.inspection.maxRatio?"inspection":e<=h.zoomTiers.structure.maxRatio?"structure":"overview"}function y(e,r){return p.indexOf(e)>=p.indexOf(r)}export{S as E,h as G,x as b,g as c,w as d,M as g,v as h,z as w,y as z};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
@import"https://fonts.googleapis.com/css2?family=IBM+Plex+Sans:wght@400;500;600;700;800&family=JetBrains+Mono:wght@400;500;600&family=Space+Grotesk:wght@500;600;700;800&display=swap";*,*:before,*:after{margin:0;padding:0;box-sizing:border-box}html,body,#root{width:100%;height:100%;overflow:hidden;font-family:IBM Plex Sans,Space Grotesk,sans-serif;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;background:#
|
|
1
|
+
@import"https://fonts.googleapis.com/css2?family=IBM+Plex+Sans:wght@400;500;600;700;800&family=JetBrains+Mono:wght@400;500;600&family=Space+Grotesk:wght@500;600;700;800&display=swap";*,*:before,*:after{margin:0;padding:0;box-sizing:border-box}html,body,#root{width:100%;height:100%;overflow:hidden;font-family:IBM Plex Sans,Space Grotesk,sans-serif;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;background:#fdfcfc;color:#523036}:focus-visible{outline:2px solid rgba(255,45,75,.6);outline-offset:2px}::-webkit-scrollbar{width:6px;height:6px}::-webkit-scrollbar-track{background:transparent}::-webkit-scrollbar-thumb{background:#ff2d4b40;border-radius:3px}::-webkit-scrollbar-thumb:hover{background:#ff2d4b73}code,pre,.mono{font-family:JetBrains Mono,Fira Code,Cascadia Code,monospace}::selection{background:#ff2d4b4d;color:#16181d}@keyframes spin{0%{transform:rotate(0)}to{transform:rotate(360deg)}}.animate-spin{animation:spin 1s linear infinite}@keyframes skeleton-pulse{0%,to{opacity:.45}50%{opacity:.85}}
|