LightRAG/lightrag/api/webui/assets/feature-documents-oks3sUnM.js

88 lines
94 KiB
JavaScript
Raw Normal View History

2025-07-13 00:57:41 +08:00
import{j as t,_ as oe,d as nt}from"./ui-vendor-CeCm8EER.js";import{r as l,g as Aa,R as ot}from"./react-vendor-DEwriMA6.js";import{c as A,C as Je,F as lt,a as Ve,b as Ta,u as te,s as rt,d as S,U as Xe,S as ct,e as _a,B as O,X as Ra,f as st,g as ae,D as fe,h as Ee,i as xe,j as ve,k as ge,l as he,m as pt,n as dt,E as mt,T as Ma,I as qa,o as Ia,p as oa,q as ut,r as ft,t as xt,A as vt,v as gt,w as ht,x as bt,y as Ie,z as Le,G as yt,H as jt,J as ua,K as fa,R as wt,L as kt,M as Dt,N as Be,O as Ue}from"./feature-graph-NODQb6qW.js";const La=l.forwardRef(({className:e,...a},n)=>t.jsx("div",{className:"relative w-full overflow-auto",children:t.jsx("table",{ref:n,className:A("w-full caption-bottom text-sm",e),...a})}));La.displayName="Table";const Ba=l.forwardRef(({className:e,...a},n)=>t.jsx("thead",{ref:n,className:A("[&_tr]:border-b",e),...a}));Ba.displayName="TableHeader";const Ua=l.forwardRef(({className:e,...a},n)=>t.jsx("tbody",{ref:n,className:A("[&_tr:last-child]:border-0",e),...a}));Ua.displayName="TableBody";const Pt=l.forwardRef(({className:e,...a},n)=>t.jsx("tfoot",{ref:n,className:A("bg-muted/50 border-t font-medium [&>tr]:last:border-b-0",e),...a}));Pt.displayName="TableFooter";const Qe=l.forwardRef(({className:e,...a},n)=>t.jsx("tr",{ref:n,className:A("hover:bg-muted/50 data-[state=selected]:bg-muted border-b transition-colors",e),...a}));Qe.displayName="TableRow";const Z=l.forwardRef(({className:e,...a},n)=>t.jsx("th",{ref:n,className:A("text-muted-foreground h-10 px-2 text-left align-middle font-medium [&:has([role=checkbox])]:pr-0 [&>[role=checkbox]]:translate-y-[2px]",e),...a}));Z.displayName="TableHead";const ee=l.forwardRef(({className:e,...a},n)=>t.jsx("td",{ref:n,className:A("p-2 align-middle [&:has([role=checkbox])]:pr-0 [&>[role=checkbox]]:translate-y-[2px]",e),...a}));ee.displayName="TableCell";const zt=l.forwardRef(({className:e,...a},n)=>t.jsx("caption",{ref:n,className:A("text-muted-foreground mt-4 text-sm",e),...a}));zt.displayName="TableCaption";function Nt({title:e,description:a,icon:n=lt,action:i,className:o,...r}){return t.jsxs(Je,{className:A("flex w-full flex-col items-center justify-center space-y-6 bg-transparent p-16",o),...r,children:[t.jsx("div",{className:"mr-4 shrink-0 rounded-full border border-dashed p-4",children:t.jsx(n,{className:"text-muted-foreground size-8","aria-hidden":"true"})}),t.jsxs("div",{className:"flex flex-col items-center gap-1.5 text-center",children:[t.jsx(Ve,{children:e}),a?t.jsx(Ta,{children:a}):null]}),i||null]})}var $e={exports:{}},He,xa;function Ct(){if(xa)return He;xa=1;var e="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";return He=e,He}var Ke,va;function Et(){if(va)return Ke;va=1;var e=Ct();function a(){}function n(){}return n.resetWarningCache=a,Ke=function(){function i(d,c,b,y,v,k){if(k!==e){var m=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw m.name="Invariant Violation",m}}i.isRequired=i;function o(){return i}var r={array:i,bigint:i,bool:i,func:i,number:i,object:i,string:i,symbol:i,any:i,arrayOf:o,element:i,elementType:i,instanceOf:o,node:i,objectOf:o,oneOf:o,oneOfType:o,shape:o,exact:o,checkPropTypes:n,resetWarningCache:a};return r.PropTypes=r,r},Ke}var ga;function St(){return ga||(ga=1,$e.exports=Et()()),$e.exports}var Ft=St();const z=Aa(Ft),Ot=new Map([["1km","application/vnd.1000minds.decision-model+xml"],["3dml","text/vnd.in3d.3dml"],["3ds","image/x-3ds"],["3g2","video/3gpp2"],["3gp","video/3gp"],["3gpp","video/3gpp"],["3mf","model/3mf"],["7z","application/x-7z-compressed"],["7zip","application/x-7z-compressed"],["123","application/vnd.lotus-1-2-3"],["aab","application/x-authorware-bin"],["aac","audio/x-acc"],["aam","application/x-authorware-map"],["aas","application/x-authorware-seg"],["abw","application/x-abiword"],["ac","application/vnd.nokia.n-gage.ac+xml"],["ac3","audio/ac3"],["acc","application/vnd.americandynamics.acc"],["ace","application/x-ace-compressed"],["acu","application/vnd.acucobol"],["acutc
2025-06-25 19:26:24 +08:00
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Gt(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function Yt(e){if(Array.isArray(e))return ea(e)}function ka(e,a){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);a&&(i=i.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,i)}return n}function Da(e){for(var a=1;a<arguments.length;a++){var n=arguments[a]!=null?arguments[a]:{};a%2?ka(Object(n),!0).forEach(function(i){Ka(e,i,n[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ka(Object(n)).forEach(function(i){Object.defineProperty(e,i,Object.getOwnPropertyDescriptor(n,i))})}return e}function Ka(e,a,n){return a in e?Object.defineProperty(e,a,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[a]=n,e}function ue(e,a){return Xt(e)||Vt(e,a)||Wa(e,a)||Jt()}function Jt(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Wa(e,a){if(e){if(typeof e=="string")return ea(e,a);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return ea(e,a)}}function ea(e,a){(a==null||a>e.length)&&(a=e.length);for(var n=0,i=new Array(a);n<a;n++)i[n]=e[n];return i}function Vt(e,a){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var i=[],o=!0,r=!1,d,c;try{for(n=n.call(e);!(o=(d=n.next()).done)&&(i.push(d.value),!(a&&i.length===a));o=!0);}catch(b){r=!0,c=b}finally{try{!o&&n.return!=null&&n.return()}finally{if(r)throw c}}return i}}function Xt(e){if(Array.isArray(e))return e}var Qt=typeof We=="function"?We:We.default,Zt="file-invalid-type",ei="file-too-large",ai="file-too-small",ti="too-many-files",ii=function(){var a=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"",n=a.split(","),i=n.length>1?"one of ".concat(n.join(", ")):n[0];return{code:Zt,message:"File type must be ".concat(i)}},Pa=function(a){return{code:ei,message:"File is larger than ".concat(a," ").concat(a===1?"byte":"bytes")}},za=function(a){return{code:ai,message:"File is smaller than ".concat(a," ").concat(a===1?"byte":"bytes")}},ni={code:ti,message:"Too many files"};function Ga(e,a){var n=e.type==="application/x-moz-file"||Qt(e,a);return[n,n?null:ii(a)]}function Ya(e,a,n){if(ne(e.size))if(ne(a)&&ne(n)){if(e.size>n)return[!1,Pa(n)];if(e.size<a)return[!1,za(a)]}else{if(ne(a)&&e.size<a)return[!1,za(a)];if(ne(n)&&e.size>n)return[!1,Pa(n)]}return[!0,null]}function ne(e){return e!=null}function oi(e){var a=e.files,n=e.accept,i=e.minSize,o=e.maxSize,r=e.multiple,d=e.maxFiles,c=e.validator;return!r&&a.length>1||r&&d>=1&&a.length>d?!1:a.every(function(b){var y=Ga(b,n),v=ue(y,1),k=v[0],m=Ya(b,i,o),C=ue(m,1),g=C[0],L=c?c(b):null;return k&&g&&!L})}function Ne(e){return typeof e.isPropagationStopped=="function"?e.isPropagationStopped():typeof e.cancelBubble<"u"?e.cancelBubble:!1}function Pe(e){return e.dataTransfer?Array.prototype.some.call(e.dataTransfer.types,function(a){return a==="Files"||a==="application/x-moz-file"}):!!e.target&&!!e.target.files}function Na(e){e.preventDefault()}function li(e){return e.indexOf("MSIE")!==-1||e.indexOf("Trident/")!==-1}function ri(e){return e.indexOf("Edge/")!==-1}function ci(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:window.navigator.userAgent;return li(e)||ri(e)}function V(){for(var e=arguments.length,a=new Array(e),n=0;n<e;n++)a[n]=arguments[n];return function(i){for(var o=arguments.length,r=new Array(o>1?o-1:0),d=1;d<o;d++)r[d-1]=arguments[d];return a.some(function(c){return!Ne(i)&&c&&c.apply(void 0,[i].concat(r)),Ne(i)})}}function si(){return"showOpenFilePicker"in window}function pi(e){if(ne(e)){var a=Object.entries(e).filter(function(n){var i=ue(n,2),o=i[0],r=i[1],d=!0;return Ja(o)||(console.warn('Skipped "'.concat(o,'" because it is not a valid MIME type. Check https://developer.mozilla.org/en-US/docs/Web/HTTP/Basics_of_HTTP/MIME_types/Common_types for a list of valid MIME types.')),d=!1),(!Array.isArray(r)||!r.every(Va))&&(console.warn('Skipped "'.concat(o,'" because an invalid file extension was provided.')),d=!1),d}).reduce(function(n,i){var o=ue(i,2),r=o[0],d=o[1];return Da(Da({},n),{},Ka({},r,d))},{});return[{description:"Files",accept:a}]}return e}function di(e){if(ne(e))return Object.entries(e).reduce(function(a,n){var i=ue(n,2),o=i[0],r=i[1];return[].concat(wa(a),[o],wa(r))},[]).filter(function(a){return Ja(a)||Va(a)}).join(",")}function mi(e){return e instanceof DOMException&&(e.name==="AbortError"||e.code===e.ABORT_ERR)}function ui(e){return e instanceof DOMException&&(e.name==="SecurityError"||e.code===e.SECURITY_ERR)}function Ja(e){return e==="audio/*"||e==="video/*"||e==="image/*"||e==="text/*"||e==="application/*"||/\w+\/[-+.\w]+/g.test(e)}function Va(e){return/^.*\.[\w]+$/.test(e)}var fi=["children"],xi=["open"],vi=["refKey","rol
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function yi(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function ji(e){if(Array.isArray(e))return aa(e)}function Ge(e,a){return Di(e)||ki(e,a)||Xa(e,a)||wi()}function wi(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Xa(e,a){if(e){if(typeof e=="string")return aa(e,a);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return aa(e,a)}}function aa(e,a){(a==null||a>e.length)&&(a=e.length);for(var n=0,i=new Array(a);n<a;n++)i[n]=e[n];return i}function ki(e,a){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var i=[],o=!0,r=!1,d,c;try{for(n=n.call(e);!(o=(d=n.next()).done)&&(i.push(d.value),!(a&&i.length===a));o=!0);}catch(b){r=!0,c=b}finally{try{!o&&n.return!=null&&n.return()}finally{if(r)throw c}}return i}}function Di(e){if(Array.isArray(e))return e}function Ca(e,a){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);a&&(i=i.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,i)}return n}function E(e){for(var a=1;a<arguments.length;a++){var n=arguments[a]!=null?arguments[a]:{};a%2?Ca(Object(n),!0).forEach(function(i){ta(e,i,n[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ca(Object(n)).forEach(function(i){Object.defineProperty(e,i,Object.getOwnPropertyDescriptor(n,i))})}return e}function ta(e,a,n){return a in e?Object.defineProperty(e,a,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[a]=n,e}function Ce(e,a){if(e==null)return{};var n=Pi(e,a),i,o;if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);for(o=0;o<r.length;o++)i=r[o],!(a.indexOf(i)>=0)&&Object.prototype.propertyIsEnumerable.call(e,i)&&(n[i]=e[i])}return n}function Pi(e,a){if(e==null)return{};var n={},i=Object.keys(e),o,r;for(r=0;r<i.length;r++)o=i[r],!(a.indexOf(o)>=0)&&(n[o]=e[o]);return n}var Se=l.forwardRef(function(e,a){var n=e.children,i=Ce(e,fi),o=zi(i),r=o.open,d=Ce(o,xi);return l.useImperativeHandle(a,function(){return{open:r}},[r]),ot.createElement(l.Fragment,null,n(E(E({},d),{},{open:r})))});Se.displayName="Dropzone";var Qa={disabled:!1,getFilesFromEvent:_t,maxSize:1/0,minSize:0,multiple:!0,maxFiles:0,preventDropOnDocument:!0,noClick:!1,noKeyboard:!1,noDrag:!1,noDragEventsBubbling:!1,validator:null,useFsAccessApi:!1,autoFocus:!1};Se.defaultProps=Qa;Se.propTypes={children:z.func,accept:z.objectOf(z.arrayOf(z.string)),multiple:z.bool,preventDropOnDocument:z.bool,noClick:z.bool,noKeyboard:z.bool,noDrag:z.bool,noDragEventsBubbling:z.bool,minSize:z.number,maxSize:z.number,maxFiles:z.number,disabled:z.bool,getFilesFromEvent:z.func,onFileDialogCancel:z.func,onFileDialogOpen:z.func,useFsAccessApi:z.bool,autoFocus:z.bool,onDragEnter:z.func,onDragLeave:z.func,onDragOver:z.func,onDrop:z.func,onDropAccepted:z.func,onDropRejected:z.func,onError:z.func,validator:z.func};var ia={isFocused:!1,isFileDialogActive:!1,isDragActive:!1,isDragAccept:!1,isDragReject:!1,acceptedFiles:[],fileRejections:[]};function zi(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},a=E(E({},Qa),e),n=a.accept,i=a.disabled,o=a.getFilesFromEvent,r=a.maxSize,d=a.minSize,c=a.multiple,b=a.maxFiles,y=a.onDragEnter,v=a.onDragLeave,k=a.onDragOver,m=a.onDrop,C=a.onDropAccepted,g=a.onDropRejected,L=a.onFileDialogCancel,f=a.onFileDialogOpen,N=a.useFsAccessApi,K=a.autoFocus,G=a.preventDropOnDocument,X=a.noClick,x=a.noKeyboard,j=a.noDrag,w=a.noDragEventsBubbling,T=a.onError,W=a.validator,F=l.useMemo(function(){return di(n)},[n]),ie=l.useMemo(function(){return pi(n)},[n]),U=l.useMemo(function(){return typeof f=="function"?f:Ea},[f]),q=l.useMemo(function(){return typeof L=="function"?L:Ea},[L]),M=l.useRef(null),$=l.useRef(null),p=l.useReducer(Ni,ia),D=Ge(p,2),P=D[0],h=D[1],B=P.isFocused,_=P.isFileDialogActive,H=l.useRef(typeof window<"u"&&window.isSecureContext&&N&&si()),pe=function(){!H.current&&_&&setTimeout(function(){if($.current){var u=$.current.files;u.length||(h({type:"closeDialog"}),q())}},300)};l.useEffect(function(){return window.addEventListener(
2025-06-25 17:16:59 +08:00
/* Tooltip styles */
.tooltip-container {
position: relative;
overflow: visible !important;
}
.tooltip {
position: fixed; /* Use fixed positioning to escape overflow constraints */
z-index: 9999; /* Ensure tooltip appears above all other elements */
max-width: 600px;
white-space: normal;
border-radius: 0.375rem;
padding: 0.5rem 0.75rem;
background-color: rgba(0, 0, 0, 0.95);
color: white;
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
pointer-events: none; /* Prevent tooltip from interfering with mouse events */
opacity: 0;
visibility: hidden;
transition: opacity 0.15s, visibility 0.15s;
}
.tooltip.visible {
opacity: 1;
visibility: visible;
}
.dark .tooltip {
background-color: rgba(255, 255, 255, 0.95);
color: black;
}
/* Position tooltip helper class */
.tooltip-helper {
position: absolute;
visibility: hidden;
pointer-events: none;
top: 0;
left: 0;
width: 100%;
height: 0;
}
@keyframes pulse {
0% {
background-color: rgb(255 0 0 / 0.1);
border-color: rgb(255 0 0 / 0.2);
}
50% {
background-color: rgb(255 0 0 / 0.2);
border-color: rgb(255 0 0 / 0.4);
}
100% {
background-color: rgb(255 0 0 / 0.1);
border-color: rgb(255 0 0 / 0.2);
}
}
.dark .pipeline-busy {
animation: dark-pulse 2s infinite;
}
@keyframes dark-pulse {
0% {
background-color: rgb(255 0 0 / 0.2);
border-color: rgb(255 0 0 / 0.4);
}
50% {
background-color: rgb(255 0 0 / 0.3);
border-color: rgb(255 0 0 / 0.6);
}
100% {
background-color: rgb(255 0 0 / 0.2);
border-color: rgb(255 0 0 / 0.4);
}
}
.pipeline-busy {
animation: pulse 2s infinite;
border: 1px solid;
}
2025-07-08 00:22:14 +08:00
`;function Li(){const e=l.useRef(!0);l.useEffect(()=>{e.current=!0;const p=()=>{e.current=!1};return window.addEventListener("beforeunload",p),()=>{e.current=!1,window.removeEventListener("beforeunload",p)}},[]);const[a,n]=l.useState(!1),{t:i,i18n:o}=te(),r=Ie.use.health(),d=Ie.use.pipelineBusy(),[c,b]=l.useState(null),y=Le.use.currentTab(),v=Le.use.showFileName(),k=Le.use.setShowFileName(),[m,C]=l.useState("updated_at"),[g,L]=l.useState("desc"),[f,N]=l.useState("all"),[K,G]=l.useState([]),X=K.length>0,x=l.useCallback((p,D)=>{G(P=>D?[...P,p]:P.filter(h=>h!==p))},[]),j=l.useCallback(()=>{G([])},[]),w=p=>{m===p?L(D=>D==="asc"?"desc":"asc"):(C(p),L("desc"))},T=l.useCallback(p=>[...p].sort((D,P)=>{let h,B;m==="id"&&v?(h=Ye(D),B=Ye(P)):m==="id"?(h=D.id,B=P.id):(h=new Date(D[m]).getTime(),B=new Date(P[m]).getTime());const _=g==="asc"?1:-1;return typeof h=="string"&&typeof B=="string"?_*h.localeCompare(B):_*(h>B?1:h<B?-1:0)}),[m,g,v]),W=l.useMemo(()=>{if(!c)return null;const p=[];return f==="all"?Object.entries(c.statuses).forEach(([D,P])=>{P.forEach(h=>{p.push({...h,status:D})})}):(c.statuses[f]||[]).forEach(P=>{p.push({...P,status:f})}),m&&g?T(p):p},[c,m,g,f,T]),F=l.useMemo(()=>{if(!c)return{all:0};const p={all:0};return Object.entries(c.statuses).forEach(([D,P])=>{p[D]=P.length,p.all+=P.length}),p},[c]),ie=l.useRef({processed:0,processing:0,pending:0,failed:0});l.useEffect(()=>{const p=document.createElement("style");return p.textContent=Ri,document.head.appendChild(p),()=>{document.head.removeChild(p)}},[]);const U=l.useRef(null);l.useEffect(()=>{if(!c)return;const p=()=>{document.querySelectorAll(".tooltip-container").forEach(B=>{const _=B.querySelector(".tooltip");if(!_||!_.classList.contains("visible"))return;const H=B.getBoundingClientRect();_.style.left=`${H.left}px`,_.style.top=`${H.top-5}px`,_.style.transform="translateY(-100%)"})},D=h=>{const _=h.target.closest(".tooltip-container");if(!_)return;const H=_.querySelector(".tooltip");H&&(H.classList.add("visible"),p())},P=h=>{const _=h.target.closest(".tooltip-container");if(!_)return;const H=_.querySelector(".tooltip");H&&H.classList.remove("visible")};return document.addEventListener("mouseover",D),document.addEventListener("mouseout",P),()=>{document.removeEventListener("mouseover",D),document.removeEventListener("mouseout",P)}},[c]);const q=l.useCallback(async()=>{try{if(!e.current)return;const p=await yt();if(!e.current)return;e.current&&(p&&p.statuses&&Object.values(p.statuses).reduce((P,h)=>P+h.length,0)>0?b(p):b(null))}catch(p){e.current&&S.error(i("documentPanel.documentManager.errors.loadFailed",{error:ae(p)}))}},[b,i]);l.useEffect(()=>{y==="documents"&&q()},[y,q]);const M=l.useCallback(async()=>{try{if(!e.current)return;const{status:p}=await jt();if(!e.current)return;S.message(p)}catch(p){e.current&&S.error(i("documentPanel.documentManager.errors.scanFailed",{error:ae(p)}))}},[i]);l.useEffect(()=>{if(y!=="documents"||!r)return;const p=setInterval(async()=>{try{e.current&&await q()}catch(D){e.current&&S.error(i("documentPanel.documentManager.errors.scanProgressFailed",{error:ae(D)}))}},5e3);return()=>{clearInterval(p)}},[r,q,i,y]),l.useEffect(()=>{var P,h,B,_,H,pe,Q,de;if(!c)return;const p={processed:((h=(P=c==null?void 0:c.statuses)==null?void 0:P.processed)==null?void 0:h.length)||0,processing:((_=(B=c==null?void 0:c.statuses)==null?void 0:B.processing)==null?void 0:_.length)||0,pending:((pe=(H=c==null?void 0:c.statuses)==null?void 0:H.pending)==null?void 0:pe.length)||0,failed:((de=(Q=c==null?void 0:c.statuses)==null?void 0:Q.failed)==null?void 0:de.length)||0};Object.keys(p).some(J=>p[J]!==ie.current[J])&&e.current&&Ie.getState().check(),ie.current=p},[c]);const $=l.useCallback(async()=>{G([]),await q()},[q]);return l.useEffect(()=>{},[m,g]),t.jsxs(Je,{className:"!rounded-none !overflow-hidden flex flex-col h-full min-h-0",children:[t.jsx(ua,{className:"py-2 px-6",children:t.jsx(Ve,{className:"text-lg",children:i("documentPanel.documentManager.title")})}),t.jsxs(fa,{className:"flex-1 flex flex-col min-h-0 overflow-auto",children:[t.jsxs("div",{className: