nestlens 0.8.13 → 0.9.0
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/dist/api/content-encoding.d.ts +20 -0
- package/dist/api/content-encoding.js +92 -0
- package/dist/api/dashboard.controller.d.ts +37 -5
- package/dist/api/dashboard.controller.js +114 -28
- package/dist/api/route-path.js +19 -1
- package/dist/core/collector.service.js +6 -0
- package/dist/core/pruning.service.js +4 -1
- package/dist/core/storage/index.js +4 -3
- package/dist/core/storage/memory.storage.d.ts +2 -2
- package/dist/core/storage/memory.storage.js +5 -3
- package/dist/core/storage/redis.storage.d.ts +2 -2
- package/dist/core/storage/redis.storage.js +5 -3
- package/dist/core/storage/sqlite.storage.d.ts +23 -2
- package/dist/core/storage/sqlite.storage.js +59 -7
- package/dist/core/storage/storage.factory.js +26 -0
- package/dist/core/storage/tag-normalization.d.ts +10 -0
- package/dist/core/storage/tag-normalization.js +14 -0
- package/dist/core/tag.service.js +5 -2
- package/dist/dashboard/public/assets/BatchDetailView-D8PKMRJK.js +1 -0
- package/dist/dashboard/public/assets/BatchesPage-DT5Mywoo.js +1 -0
- package/dist/dashboard/public/assets/CacheDetailView-BKg5s6do.js +6 -0
- package/dist/dashboard/public/assets/CachePage-Dv0sIWfb.js +1 -0
- package/dist/dashboard/public/assets/CommandDetailView-34Fp3Zse.js +1 -0
- package/dist/dashboard/public/assets/CommandsPage-DfJBmcAu.js +1 -0
- package/dist/dashboard/public/assets/CopyButton-CVTvd0EZ.js +3 -0
- package/dist/dashboard/public/assets/{DashboardPage-BxTgQDmh.js → DashboardPage-Bl0QYNJ5.js} +2 -2
- package/dist/dashboard/public/assets/DataTable-DNJpoFzh.js +53 -0
- package/dist/dashboard/public/assets/DetailRow-CouZ8riB.js +1 -0
- package/dist/dashboard/public/assets/DumpDetailView-B6-Nre38.js +11 -0
- package/dist/dashboard/public/assets/DumpsPage-Cd0B4s9o.js +1 -0
- package/dist/dashboard/public/assets/EntryDetailPage-QTrST2MQ.js +27 -0
- package/dist/dashboard/public/assets/EntrySearchInput-DqIRbpja.js +1 -0
- package/dist/dashboard/public/assets/EventDetailView-2SmuXgrJ.js +1 -0
- package/dist/dashboard/public/assets/EventsPage-DCpLnIob.js +1 -0
- package/dist/dashboard/public/assets/ExceptionDetailView-DxGim-Jg.js +8 -0
- package/dist/dashboard/public/assets/ExceptionsPage-Qa60iwA4.js +6 -0
- package/dist/dashboard/public/assets/GateDetailView-DFVtRPBk.js +6 -0
- package/dist/dashboard/public/assets/GatesPage-DHGIZzbG.js +1 -0
- package/dist/dashboard/public/assets/GraphQLDetailView-DvHekddm.js +6 -0
- package/dist/dashboard/public/assets/GraphQLPage-Cft-KFpI.js +6 -0
- package/dist/dashboard/public/assets/HttpClientDetailView-qU0JPxsC.js +1 -0
- package/dist/dashboard/public/assets/HttpClientPage-Kxa5nm75.js +1 -0
- package/dist/dashboard/public/assets/JobDetailView-BfAICIc4.js +6 -0
- package/dist/dashboard/public/assets/JobsPage-BpBk0bYd.js +1 -0
- package/dist/dashboard/public/assets/LogDetailView-CdSLEf4Q.js +1 -0
- package/dist/dashboard/public/assets/LogsPage-CaCtKQZ0.js +1 -0
- package/dist/dashboard/public/assets/MailDetailView-BiBUkOXW.js +9 -0
- package/dist/dashboard/public/assets/MailPage-DAkydOVp.js +1 -0
- package/dist/dashboard/public/assets/ModelDetailView-CXCgDnpy.js +1 -0
- package/dist/dashboard/public/assets/ModelsPage-BwK3r0-I.js +1 -0
- package/dist/dashboard/public/assets/NotificationDetailView-Bljgzgiz.js +1 -0
- package/dist/dashboard/public/assets/NotificationsPage-DMGpuTU-.js +1 -0
- package/dist/dashboard/public/assets/PageHeader-BAc6Jvef.js +1 -0
- package/dist/dashboard/public/assets/QueriesPage-DPls44cD.js +1 -0
- package/dist/dashboard/public/assets/QueryDetailView-BEwgxDtv.js +29 -0
- package/dist/dashboard/public/assets/RedisDetailView-Ds3Hzc8m.js +1 -0
- package/dist/dashboard/public/assets/RedisPage-DhAhXwAd.js +1 -0
- package/dist/dashboard/public/assets/RequestDetailView-BwTcMKOH.js +1 -0
- package/dist/dashboard/public/assets/RequestsPage-CIHqEF5P.js +1 -0
- package/dist/dashboard/public/assets/ScheduleDetailView-2RmRtcvM.js +1 -0
- package/dist/dashboard/public/assets/SchedulePage-D3MuXtV1.js +1 -0
- package/dist/dashboard/public/assets/UserCard-Cbu0ICp6.js +1 -0
- package/dist/dashboard/public/assets/ViewDetailView-rCONPvjG.js +1 -0
- package/dist/dashboard/public/assets/ViewsPage-CW5aN_D5.js +1 -0
- package/dist/dashboard/public/assets/badgeColors-DQ_P_DOX.js +1 -0
- package/dist/dashboard/public/assets/{calendar-DfnYRiPH.js → calendar-DcK1CETU.js} +1 -1
- package/dist/dashboard/public/assets/circle-alert-CgZfn5uS.js +6 -0
- package/dist/dashboard/public/assets/{circle-check-big-CdzBeD3-.js → circle-check-big-1S8vooWx.js} +1 -1
- package/dist/dashboard/public/assets/circle-x-BOe5goDy.js +6 -0
- package/dist/dashboard/public/assets/{eye-BwC2X41m.js → eye-PnSIQ7GH.js} +1 -1
- package/dist/dashboard/public/assets/index-B9BCPNKv.css +1 -0
- package/dist/dashboard/public/assets/index-DyvNu-oR.js +361 -0
- package/dist/dashboard/public/assets/{search-CyCRC3Aj.js → search-D9V4itpU.js} +1 -1
- package/dist/dashboard/public/assets/send-DOt7lNQl.js +6 -0
- package/dist/dashboard/public/assets/timer-CZxO8Y_Q.js +6 -0
- package/dist/dashboard/public/assets/types-DZUckfsW.js +1 -0
- package/dist/dashboard/public/assets/users-9cJRsfQV.js +6 -0
- package/dist/dashboard/public/assets/{zap-yEefbKzX.js → zap-B0E2zzJ8.js} +1 -1
- package/dist/dashboard/public/index.html +2 -2
- package/package.json +51 -10
- package/dist/dashboard/public/assets/BatchesPage-DEz38KR5.js +0 -1
- package/dist/dashboard/public/assets/CachePage-CZxLvTJq.js +0 -1
- package/dist/dashboard/public/assets/ClickableBadge-DVTcykCM.js +0 -1
- package/dist/dashboard/public/assets/CommandsPage-DnUHcHF_.js +0 -1
- package/dist/dashboard/public/assets/DumpsPage-DNXepzfv.js +0 -1
- package/dist/dashboard/public/assets/EntryDetailPage-0WBhBUsh.js +0 -126
- package/dist/dashboard/public/assets/EntrySearchInput-BKjIppvt.js +0 -1
- package/dist/dashboard/public/assets/EventsPage-xPiqDte_.js +0 -1
- package/dist/dashboard/public/assets/ExceptionsPage-ZJNqTX3Q.js +0 -6
- package/dist/dashboard/public/assets/GatesPage-CdvK6bSz.js +0 -1
- package/dist/dashboard/public/assets/GraphQLPage-DaLLpAf8.js +0 -6
- package/dist/dashboard/public/assets/HttpClientPage-e8BqONkc.js +0 -1
- package/dist/dashboard/public/assets/JobsPage-CjHsAC5o.js +0 -1
- package/dist/dashboard/public/assets/LogsPage-ny3e-b51.js +0 -1
- package/dist/dashboard/public/assets/MailPage-dpbs1DH3.js +0 -1
- package/dist/dashboard/public/assets/ModelsPage-DZaU9bdR.js +0 -1
- package/dist/dashboard/public/assets/NotificationsPage-xKjgSJyj.js +0 -1
- package/dist/dashboard/public/assets/PageHeader-yPvqJXYA.js +0 -1
- package/dist/dashboard/public/assets/QueriesPage-DsMLeBtH.js +0 -1
- package/dist/dashboard/public/assets/RedisPage-Daw6beWw.js +0 -1
- package/dist/dashboard/public/assets/RequestsPage-CDMXEx7M.js +0 -1
- package/dist/dashboard/public/assets/SchedulePage-CkbyutFW.js +0 -1
- package/dist/dashboard/public/assets/ViewsPage-B7fHFzy2.js +0 -1
- package/dist/dashboard/public/assets/index-DDZJvSAq.css +0 -1
- package/dist/dashboard/public/assets/index-jX7JpX7L.js +0 -361
- package/dist/dashboard/public/assets/types-C1scQJYx.js +0 -53
|
@@ -1,361 +0,0 @@
|
|
|
1
|
-
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./DashboardPage-BxTgQDmh.js","./vendor-DBTT3jXp.js","./ClickableBadge-DVTcykCM.js","./zap-yEefbKzX.js","./calendar-DfnYRiPH.js","./RequestsPage-CDMXEx7M.js","./PageHeader-yPvqJXYA.js","./EntrySearchInput-BKjIppvt.js","./search-CyCRC3Aj.js","./types-C1scQJYx.js","./QueriesPage-DsMLeBtH.js","./ExceptionsPage-ZJNqTX3Q.js","./circle-check-big-CdzBeD3-.js","./LogsPage-ny3e-b51.js","./EventsPage-xPiqDte_.js","./JobsPage-CjHsAC5o.js","./CachePage-CZxLvTJq.js","./MailPage-dpbs1DH3.js","./SchedulePage-CkbyutFW.js","./format-PC0kH-TG.js","./HttpClientPage-e8BqONkc.js","./RedisPage-Daw6beWw.js","./ModelsPage-DZaU9bdR.js","./NotificationsPage-xKjgSJyj.js","./ViewsPage-B7fHFzy2.js","./eye-BwC2X41m.js","./CommandsPage-DnUHcHF_.js","./GatesPage-CdvK6bSz.js","./BatchesPage-DEz38KR5.js","./DumpsPage-DNXepzfv.js","./GraphQLPage-DaLLpAf8.js","./EntryDetailPage-0WBhBUsh.js"])))=>i.map(i=>d[i]);
|
|
2
|
-
var Se=Object.defineProperty;var _e=(s,a,e)=>a in s?Se(s,a,{enumerable:!0,configurable:!0,writable:!0,value:e}):s[a]=e;var z=(s,a,e)=>_e(s,typeof a!="symbol"?a+"":a,e);import{r as Ee,a as Ne,g as Pe,b as r,u as Ce,L as D,O as Re,R as Le,c as p,N as Te,d as Ae,B as Oe}from"./vendor-DBTT3jXp.js";(function(){const a=document.createElement("link").relList;if(a&&a.supports&&a.supports("modulepreload"))return;for(const l of document.querySelectorAll('link[rel="modulepreload"]'))o(l);new MutationObserver(l=>{for(const i of l)if(i.type==="childList")for(const n of i.addedNodes)n.tagName==="LINK"&&n.rel==="modulepreload"&&o(n)}).observe(document,{childList:!0,subtree:!0});function e(l){const i={};return l.integrity&&(i.integrity=l.integrity),l.referrerPolicy&&(i.referrerPolicy=l.referrerPolicy),l.crossOrigin==="use-credentials"?i.credentials="include":l.crossOrigin==="anonymous"?i.credentials="omit":i.credentials="same-origin",i}function o(l){if(l.ep)return;l.ep=!0;const i=e(l);fetch(l.href,i)}})();var G={exports:{}},M={};/**
|
|
3
|
-
* @license React
|
|
4
|
-
* react-jsx-runtime.production.min.js
|
|
5
|
-
*
|
|
6
|
-
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
7
|
-
*
|
|
8
|
-
* This source code is licensed under the MIT license found in the
|
|
9
|
-
* LICENSE file in the root directory of this source tree.
|
|
10
|
-
*/var Z;function De(){if(Z)return M;Z=1;var s=Ee(),a=Symbol.for("react.element"),e=Symbol.for("react.fragment"),o=Object.prototype.hasOwnProperty,l=s.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,i={key:!0,ref:!0,__self:!0,__source:!0};function n(c,d,y){var u,m={},f=null,j=null;y!==void 0&&(f=""+y),d.key!==void 0&&(f=""+d.key),d.ref!==void 0&&(j=d.ref);for(u in d)o.call(d,u)&&!i.hasOwnProperty(u)&&(m[u]=d[u]);if(c&&c.defaultProps)for(u in d=c.defaultProps,d)m[u]===void 0&&(m[u]=d[u]);return{$$typeof:a,type:c,key:f,ref:j,props:m,_owner:l.current}}return M.Fragment=e,M.jsx=n,M.jsxs=n,M}var X;function Me(){return X||(X=1,G.exports=De()),G.exports}var t=Me(),I={},Y;function qe(){if(Y)return I;Y=1;var s=Ne();return I.createRoot=s.createRoot,I.hydrateRoot=s.hydrateRoot,I}var $e=qe();const ze=Pe($e);let Ie={data:""},Ke=s=>{if(typeof window=="object"){let a=(s?s.querySelector("#_goober"):window._goober)||Object.assign(document.createElement("style"),{innerHTML:" ",id:"_goober"});return a.nonce=window.__nonce__,a.parentNode||(s||document.head).appendChild(a),a.firstChild}return s||Ie},Ve=/(?:([\u0080-\uFFFF\w-%@]+) *:? *([^{;]+?);|([^;}{]*?) *{)|(}\s*)/g,Be=/\/\*[^]*?\*\/| +/g,ee=/\n+/g,A=(s,a)=>{let e="",o="",l="";for(let i in s){let n=s[i];i[0]=="@"?i[1]=="i"?e=i+" "+n+";":o+=i[1]=="f"?A(n,i):i+"{"+A(n,i[1]=="k"?"":a)+"}":typeof n=="object"?o+=A(n,a?a.replace(/([^,])+/g,c=>i.replace(/([^,]*:\S+\([^)]*\))|([^,])+/g,d=>/&/.test(d)?d.replace(/&/g,c):c?c+" "+d:d)):i):n!=null&&(i=/^--/.test(i)?i:i.replace(/[A-Z]/g,"-$&").toLowerCase(),l+=A.p?A.p(i,n):i+":"+n+";")}return e+(a&&l?a+"{"+l+"}":l)+o},L={},he=s=>{if(typeof s=="object"){let a="";for(let e in s)a+=e+he(s[e]);return a}return s},Fe=(s,a,e,o,l)=>{let i=he(s),n=L[i]||(L[i]=(d=>{let y=0,u=11;for(;y<d.length;)u=101*u+d.charCodeAt(y++)>>>0;return"go"+u})(i));if(!L[n]){let d=i!==s?s:(y=>{let u,m,f=[{}];for(;u=Ve.exec(y.replace(Be,""));)u[4]?f.shift():u[3]?(m=u[3].replace(ee," ").trim(),f.unshift(f[0][m]=f[0][m]||{})):f[0][u[1]]=u[2].replace(ee," ").trim();return f[0]})(s);L[n]=A(l?{["@keyframes "+n]:d}:d,e?"":"."+n)}let c=e&&L.g?L.g:null;return e&&(L.g=L[n]),((d,y,u,m)=>{m?y.data=y.data.replace(m,d):y.data.indexOf(d)===-1&&(y.data=u?d+y.data:y.data+d)})(L[n],a,o,c),n},He=(s,a,e)=>s.reduce((o,l,i)=>{let n=a[i];if(n&&n.call){let c=n(e),d=c&&c.props&&c.props.className||/^go/.test(c)&&c;n=d?"."+d:c&&typeof c=="object"?c.props?"":A(c,""):c===!1?"":c}return o+l+(n??"")},"");function F(s){let a=this||{},e=s.call?s(a.p):s;return Fe(e.unshift?e.raw?He(e,[].slice.call(arguments,1),a.p):e.reduce((o,l)=>Object.assign(o,l&&l.call?l(a.p):l),{}):e,Ke(a.target),a.g,a.o,a.k)}let me,J,Q;F.bind({g:1});let T=F.bind({k:1});function Ge(s,a,e,o){A.p=a,me=s,J=e,Q=o}function O(s,a){let e=this||{};return function(){let o=arguments;function l(i,n){let c=Object.assign({},i),d=c.className||l.className;e.p=Object.assign({theme:J&&J()},c),e.o=/ *go\d+/.test(d),c.className=F.apply(e,o)+(d?" "+d:"");let y=s;return s[0]&&(y=c.as||s,delete c.as),Q&&y[0]&&Q(c),me(y,c)}return l}}var Ue=s=>typeof s=="function",B=(s,a)=>Ue(s)?s(a):s,Je=(()=>{let s=0;return()=>(++s).toString()})(),pe=(()=>{let s;return()=>{if(s===void 0&&typeof window<"u"){let a=matchMedia("(prefers-reduced-motion: reduce)");s=!a||a.matches}return s}})(),Qe=20,W="default",xe=(s,a)=>{let{toastLimit:e}=s.settings;switch(a.type){case 0:return{...s,toasts:[a.toast,...s.toasts].slice(0,e)};case 1:return{...s,toasts:s.toasts.map(n=>n.id===a.toast.id?{...n,...a.toast}:n)};case 2:let{toast:o}=a;return xe(s,{type:s.toasts.find(n=>n.id===o.id)?1:0,toast:o});case 3:let{toastId:l}=a;return{...s,toasts:s.toasts.map(n=>n.id===l||l===void 0?{...n,dismissed:!0,visible:!1}:n)};case 4:return a.toastId===void 0?{...s,toasts:[]}:{...s,toasts:s.toasts.filter(n=>n.id!==a.toastId)};case 5:return{...s,pausedAt:a.time};case 6:let i=a.time-(s.pausedAt||0);return{...s,pausedAt:void 0,toasts:s.toasts.map(n=>({...n,pauseDuration:n.pauseDuration+i}))}}},V=[],fe={toasts:[],pausedAt:void 0,settings:{toastLimit:Qe}},R={},ye=(s,a=W)=>{R[a]=xe(R[a]||fe,s),V.forEach(([e,o])=>{e===a&&o(R[a])})},ge=s=>Object.keys(R).forEach(a=>ye(s,a)),We=s=>Object.keys(R).find(a=>R[a].toasts.some(e=>e.id===s)),H=(s=W)=>a=>{ye(a,s)},Ze={blank:4e3,error:4e3,success:2e3,loading:1/0,custom:4e3},Xe=(s={},a=W)=>{let[e,o]=r.useState(R[a]||fe),l=r.useRef(R[a]);r.useEffect(()=>(l.current!==R[a]&&o(R[a]),V.push([a,o]),()=>{let n=V.findIndex(([c])=>c===a);n>-1&&V.splice(n,1)}),[a]);let i=e.toasts.map(n=>{var c,d,y;return{...s,...s[n.type],...n,removeDelay:n.removeDelay||((c=s[n.type])==null?void 0:c.removeDelay)||(s==null?void 0:s.removeDelay),duration:n.duration||((d=s[n.type])==null?void 0:d.duration)||(s==null?void 0:s.duration)||Ze[n.type],style:{...s.style,...(y=s[n.type])==null?void 0:y.style,...n.style}}});return{...e,toasts:i}},Ye=(s,a="blank",e)=>({createdAt:Date.now(),visible:!0,dismissed:!1,type:a,ariaProps:{role:"status","aria-live":"polite"},message:s,pauseDuration:0,...e,id:(e==null?void 0:e.id)||Je()}),$=s=>(a,e)=>{let o=Ye(a,s,e);return H(o.toasterId||We(o.id))({type:2,toast:o}),o.id},_=(s,a)=>$("blank")(s,a);_.error=$("error");_.success=$("success");_.loading=$("loading");_.custom=$("custom");_.dismiss=(s,a)=>{let e={type:3,toastId:s};a?H(a)(e):ge(e)};_.dismissAll=s=>_.dismiss(void 0,s);_.remove=(s,a)=>{let e={type:4,toastId:s};a?H(a)(e):ge(e)};_.removeAll=s=>_.remove(void 0,s);_.promise=(s,a,e)=>{let o=_.loading(a.loading,{...e,...e==null?void 0:e.loading});return typeof s=="function"&&(s=s()),s.then(l=>{let i=a.success?B(a.success,l):void 0;return i?_.success(i,{id:o,...e,...e==null?void 0:e.success}):_.dismiss(o),l}).catch(l=>{let i=a.error?B(a.error,l):void 0;i?_.error(i,{id:o,...e,...e==null?void 0:e.error}):_.dismiss(o)}),s};var et=1e3,tt=(s,a="default")=>{let{toasts:e,pausedAt:o}=Xe(s,a),l=r.useRef(new Map).current,i=r.useCallback((m,f=et)=>{if(l.has(m))return;let j=setTimeout(()=>{l.delete(m),n({type:4,toastId:m})},f);l.set(m,j)},[]);r.useEffect(()=>{if(o)return;let m=Date.now(),f=e.map(j=>{if(j.duration===1/0)return;let v=(j.duration||0)+j.pauseDuration-(m-j.createdAt);if(v<0){j.visible&&_.dismiss(j.id);return}return setTimeout(()=>_.dismiss(j.id,a),v)});return()=>{f.forEach(j=>j&&clearTimeout(j))}},[e,o,a]);let n=r.useCallback(H(a),[a]),c=r.useCallback(()=>{n({type:5,time:Date.now()})},[n]),d=r.useCallback((m,f)=>{n({type:1,toast:{id:m,height:f}})},[n]),y=r.useCallback(()=>{o&&n({type:6,time:Date.now()})},[o,n]),u=r.useCallback((m,f)=>{let{reverseOrder:j=!1,gutter:v=8,defaultPosition:h}=f||{},k=e.filter(N=>(N.position||h)===(m.position||h)&&N.height),E=k.findIndex(N=>N.id===m.id),b=k.filter((N,C)=>C<E&&N.visible).length;return k.filter(N=>N.visible).slice(...j?[b+1]:[0,b]).reduce((N,C)=>N+(C.height||0)+v,0)},[e]);return r.useEffect(()=>{e.forEach(m=>{if(m.dismissed)i(m.id,m.removeDelay);else{let f=l.get(m.id);f&&(clearTimeout(f),l.delete(m.id))}})},[e,i]),{toasts:e,handlers:{updateHeight:d,startPause:c,endPause:y,calculateOffset:u}}},st=T`
|
|
11
|
-
from {
|
|
12
|
-
transform: scale(0) rotate(45deg);
|
|
13
|
-
opacity: 0;
|
|
14
|
-
}
|
|
15
|
-
to {
|
|
16
|
-
transform: scale(1) rotate(45deg);
|
|
17
|
-
opacity: 1;
|
|
18
|
-
}`,at=T`
|
|
19
|
-
from {
|
|
20
|
-
transform: scale(0);
|
|
21
|
-
opacity: 0;
|
|
22
|
-
}
|
|
23
|
-
to {
|
|
24
|
-
transform: scale(1);
|
|
25
|
-
opacity: 1;
|
|
26
|
-
}`,rt=T`
|
|
27
|
-
from {
|
|
28
|
-
transform: scale(0) rotate(90deg);
|
|
29
|
-
opacity: 0;
|
|
30
|
-
}
|
|
31
|
-
to {
|
|
32
|
-
transform: scale(1) rotate(90deg);
|
|
33
|
-
opacity: 1;
|
|
34
|
-
}`,nt=O("div")`
|
|
35
|
-
width: 20px;
|
|
36
|
-
opacity: 0;
|
|
37
|
-
height: 20px;
|
|
38
|
-
border-radius: 10px;
|
|
39
|
-
background: ${s=>s.primary||"#ff4b4b"};
|
|
40
|
-
position: relative;
|
|
41
|
-
transform: rotate(45deg);
|
|
42
|
-
|
|
43
|
-
animation: ${st} 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275)
|
|
44
|
-
forwards;
|
|
45
|
-
animation-delay: 100ms;
|
|
46
|
-
|
|
47
|
-
&:after,
|
|
48
|
-
&:before {
|
|
49
|
-
content: '';
|
|
50
|
-
animation: ${at} 0.15s ease-out forwards;
|
|
51
|
-
animation-delay: 150ms;
|
|
52
|
-
position: absolute;
|
|
53
|
-
border-radius: 3px;
|
|
54
|
-
opacity: 0;
|
|
55
|
-
background: ${s=>s.secondary||"#fff"};
|
|
56
|
-
bottom: 9px;
|
|
57
|
-
left: 4px;
|
|
58
|
-
height: 2px;
|
|
59
|
-
width: 12px;
|
|
60
|
-
}
|
|
61
|
-
|
|
62
|
-
&:before {
|
|
63
|
-
animation: ${rt} 0.15s ease-out forwards;
|
|
64
|
-
animation-delay: 180ms;
|
|
65
|
-
transform: rotate(90deg);
|
|
66
|
-
}
|
|
67
|
-
`,ot=T`
|
|
68
|
-
from {
|
|
69
|
-
transform: rotate(0deg);
|
|
70
|
-
}
|
|
71
|
-
to {
|
|
72
|
-
transform: rotate(360deg);
|
|
73
|
-
}
|
|
74
|
-
`,it=O("div")`
|
|
75
|
-
width: 12px;
|
|
76
|
-
height: 12px;
|
|
77
|
-
box-sizing: border-box;
|
|
78
|
-
border: 2px solid;
|
|
79
|
-
border-radius: 100%;
|
|
80
|
-
border-color: ${s=>s.secondary||"#e0e0e0"};
|
|
81
|
-
border-right-color: ${s=>s.primary||"#616161"};
|
|
82
|
-
animation: ${ot} 1s linear infinite;
|
|
83
|
-
`,lt=T`
|
|
84
|
-
from {
|
|
85
|
-
transform: scale(0) rotate(45deg);
|
|
86
|
-
opacity: 0;
|
|
87
|
-
}
|
|
88
|
-
to {
|
|
89
|
-
transform: scale(1) rotate(45deg);
|
|
90
|
-
opacity: 1;
|
|
91
|
-
}`,ct=T`
|
|
92
|
-
0% {
|
|
93
|
-
height: 0;
|
|
94
|
-
width: 0;
|
|
95
|
-
opacity: 0;
|
|
96
|
-
}
|
|
97
|
-
40% {
|
|
98
|
-
height: 0;
|
|
99
|
-
width: 6px;
|
|
100
|
-
opacity: 1;
|
|
101
|
-
}
|
|
102
|
-
100% {
|
|
103
|
-
opacity: 1;
|
|
104
|
-
height: 10px;
|
|
105
|
-
}`,dt=O("div")`
|
|
106
|
-
width: 20px;
|
|
107
|
-
opacity: 0;
|
|
108
|
-
height: 20px;
|
|
109
|
-
border-radius: 10px;
|
|
110
|
-
background: ${s=>s.primary||"#61d345"};
|
|
111
|
-
position: relative;
|
|
112
|
-
transform: rotate(45deg);
|
|
113
|
-
|
|
114
|
-
animation: ${lt} 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275)
|
|
115
|
-
forwards;
|
|
116
|
-
animation-delay: 100ms;
|
|
117
|
-
&:after {
|
|
118
|
-
content: '';
|
|
119
|
-
box-sizing: border-box;
|
|
120
|
-
animation: ${ct} 0.2s ease-out forwards;
|
|
121
|
-
opacity: 0;
|
|
122
|
-
animation-delay: 200ms;
|
|
123
|
-
position: absolute;
|
|
124
|
-
border-right: 2px solid;
|
|
125
|
-
border-bottom: 2px solid;
|
|
126
|
-
border-color: ${s=>s.secondary||"#fff"};
|
|
127
|
-
bottom: 6px;
|
|
128
|
-
left: 6px;
|
|
129
|
-
height: 10px;
|
|
130
|
-
width: 6px;
|
|
131
|
-
}
|
|
132
|
-
`,ut=O("div")`
|
|
133
|
-
position: absolute;
|
|
134
|
-
`,ht=O("div")`
|
|
135
|
-
position: relative;
|
|
136
|
-
display: flex;
|
|
137
|
-
justify-content: center;
|
|
138
|
-
align-items: center;
|
|
139
|
-
min-width: 20px;
|
|
140
|
-
min-height: 20px;
|
|
141
|
-
`,mt=T`
|
|
142
|
-
from {
|
|
143
|
-
transform: scale(0.6);
|
|
144
|
-
opacity: 0.4;
|
|
145
|
-
}
|
|
146
|
-
to {
|
|
147
|
-
transform: scale(1);
|
|
148
|
-
opacity: 1;
|
|
149
|
-
}`,pt=O("div")`
|
|
150
|
-
position: relative;
|
|
151
|
-
transform: scale(0.6);
|
|
152
|
-
opacity: 0.4;
|
|
153
|
-
min-width: 20px;
|
|
154
|
-
animation: ${mt} 0.3s 0.12s cubic-bezier(0.175, 0.885, 0.32, 1.275)
|
|
155
|
-
forwards;
|
|
156
|
-
`,xt=({toast:s})=>{let{icon:a,type:e,iconTheme:o}=s;return a!==void 0?typeof a=="string"?r.createElement(pt,null,a):a:e==="blank"?null:r.createElement(ht,null,r.createElement(it,{...o}),e!=="loading"&&r.createElement(ut,null,e==="error"?r.createElement(nt,{...o}):r.createElement(dt,{...o})))},ft=s=>`
|
|
157
|
-
0% {transform: translate3d(0,${s*-200}%,0) scale(.6); opacity:.5;}
|
|
158
|
-
100% {transform: translate3d(0,0,0) scale(1); opacity:1;}
|
|
159
|
-
`,yt=s=>`
|
|
160
|
-
0% {transform: translate3d(0,0,-1px) scale(1); opacity:1;}
|
|
161
|
-
100% {transform: translate3d(0,${s*-150}%,-1px) scale(.6); opacity:0;}
|
|
162
|
-
`,gt="0%{opacity:0;} 100%{opacity:1;}",jt="0%{opacity:1;} 100%{opacity:0;}",bt=O("div")`
|
|
163
|
-
display: flex;
|
|
164
|
-
align-items: center;
|
|
165
|
-
background: #fff;
|
|
166
|
-
color: #363636;
|
|
167
|
-
line-height: 1.3;
|
|
168
|
-
will-change: transform;
|
|
169
|
-
box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1), 0 3px 3px rgba(0, 0, 0, 0.05);
|
|
170
|
-
max-width: 350px;
|
|
171
|
-
pointer-events: auto;
|
|
172
|
-
padding: 8px 10px;
|
|
173
|
-
border-radius: 8px;
|
|
174
|
-
`,kt=O("div")`
|
|
175
|
-
display: flex;
|
|
176
|
-
justify-content: center;
|
|
177
|
-
margin: 4px 10px;
|
|
178
|
-
color: inherit;
|
|
179
|
-
flex: 1 1 auto;
|
|
180
|
-
white-space: pre-line;
|
|
181
|
-
`,vt=(s,a)=>{let e=s.includes("top")?1:-1,[o,l]=pe()?[gt,jt]:[ft(e),yt(e)];return{animation:a?`${T(o)} 0.35s cubic-bezier(.21,1.02,.73,1) forwards`:`${T(l)} 0.4s forwards cubic-bezier(.06,.71,.55,1)`}},wt=r.memo(({toast:s,position:a,style:e,children:o})=>{let l=s.height?vt(s.position||a||"top-center",s.visible):{opacity:0},i=r.createElement(xt,{toast:s}),n=r.createElement(kt,{...s.ariaProps},B(s.message,s));return r.createElement(bt,{className:s.className,style:{...l,...e,...s.style}},typeof o=="function"?o({icon:i,message:n}):r.createElement(r.Fragment,null,i,n))});Ge(r.createElement);var St=({id:s,className:a,style:e,onHeightUpdate:o,children:l})=>{let i=r.useCallback(n=>{if(n){let c=()=>{let d=n.getBoundingClientRect().height;o(s,d)};c(),new MutationObserver(c).observe(n,{subtree:!0,childList:!0,characterData:!0})}},[s,o]);return r.createElement("div",{ref:i,className:a,style:e},l)},_t=(s,a)=>{let e=s.includes("top"),o=e?{top:0}:{bottom:0},l=s.includes("center")?{justifyContent:"center"}:s.includes("right")?{justifyContent:"flex-end"}:{};return{left:0,right:0,display:"flex",position:"absolute",transition:pe()?void 0:"all 230ms cubic-bezier(.21,1.02,.73,1)",transform:`translateY(${a*(e?1:-1)}px)`,...o,...l}},Et=F`
|
|
182
|
-
z-index: 9999;
|
|
183
|
-
> * {
|
|
184
|
-
pointer-events: auto;
|
|
185
|
-
}
|
|
186
|
-
`,K=16,Nt=({reverseOrder:s,position:a="top-center",toastOptions:e,gutter:o,children:l,toasterId:i,containerStyle:n,containerClassName:c})=>{let{toasts:d,handlers:y}=tt(e,i);return r.createElement("div",{"data-rht-toaster":i||"",style:{position:"fixed",zIndex:9999,top:K,left:K,right:K,bottom:K,pointerEvents:"none",...n},className:c,onMouseEnter:y.startPause,onMouseLeave:y.endPause},d.map(u=>{let m=u.position||a,f=y.calculateOffset(u,{reverseOrder:s,gutter:o,defaultPosition:a}),j=_t(m,f);return r.createElement(St,{id:u.id,key:u.id,onHeightUpdate:y.updateHeight,className:u.visible?Et:"",style:j},u.type==="custom"?B(u.message,u):l?l(u):r.createElement(wt,{toast:u,position:m}))}))},q=_;const Pt="modulepreload",Ct=function(s,a){return new URL(s,a).href},te={},w=function(a,e,o){let l=Promise.resolve();if(e&&e.length>0){let n=function(u){return Promise.all(u.map(m=>Promise.resolve(m).then(f=>({status:"fulfilled",value:f}),f=>({status:"rejected",reason:f}))))};const c=document.getElementsByTagName("link"),d=document.querySelector("meta[property=csp-nonce]"),y=(d==null?void 0:d.nonce)||(d==null?void 0:d.getAttribute("nonce"));l=n(e.map(u=>{if(u=Ct(u,o),u in te)return;te[u]=!0;const m=u.endsWith(".css"),f=m?'[rel="stylesheet"]':"";if(!!o)for(let h=c.length-1;h>=0;h--){const k=c[h];if(k.href===u&&(!m||k.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${u}"]${f}`))return;const v=document.createElement("link");if(v.rel=m?"stylesheet":Pt,m||(v.as="script"),v.crossOrigin="",v.href=u,y&&v.setAttribute("nonce",y),document.head.appendChild(v),m)return new Promise((h,k)=>{v.addEventListener("load",h),v.addEventListener("error",()=>k(new Error(`Unable to preload CSS for ${u}`)))})}))}function i(n){const c=new Event("vite:preloadError",{cancelable:!0});if(c.payload=n,window.dispatchEvent(c),!c.defaultPrevented)throw n}return l.then(n=>{for(const c of n||[])c.status==="rejected"&&i(c.reason);return a().catch(i)})};/**
|
|
187
|
-
* @license lucide-react v0.468.0 - ISC
|
|
188
|
-
*
|
|
189
|
-
* This source code is licensed under the ISC license.
|
|
190
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
191
|
-
*/const Rt=s=>s.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),je=(...s)=>s.filter((a,e,o)=>!!a&&a.trim()!==""&&o.indexOf(a)===e).join(" ").trim();/**
|
|
192
|
-
* @license lucide-react v0.468.0 - ISC
|
|
193
|
-
*
|
|
194
|
-
* This source code is licensed under the ISC license.
|
|
195
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
196
|
-
*/var Lt={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};/**
|
|
197
|
-
* @license lucide-react v0.468.0 - ISC
|
|
198
|
-
*
|
|
199
|
-
* This source code is licensed under the ISC license.
|
|
200
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
201
|
-
*/const Tt=r.forwardRef(({color:s="currentColor",size:a=24,strokeWidth:e=2,absoluteStrokeWidth:o,className:l="",children:i,iconNode:n,...c},d)=>r.createElement("svg",{ref:d,...Lt,width:a,height:a,stroke:s,strokeWidth:o?Number(e)*24/Number(a):e,className:je("lucide",l),...c},[...n.map(([y,u])=>r.createElement(y,u)),...Array.isArray(i)?i:[i]]));/**
|
|
202
|
-
* @license lucide-react v0.468.0 - ISC
|
|
203
|
-
*
|
|
204
|
-
* This source code is licensed under the ISC license.
|
|
205
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
206
|
-
*/const g=(s,a)=>{const e=r.forwardRef(({className:o,...l},i)=>r.createElement(Tt,{ref:i,iconNode:a,className:je(`lucide-${Rt(s)}`,o),...l}));return e.displayName=`${s}`,e};/**
|
|
207
|
-
* @license lucide-react v0.468.0 - ISC
|
|
208
|
-
*
|
|
209
|
-
* This source code is licensed under the ISC license.
|
|
210
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
211
|
-
*/const At=g("Activity",[["path",{d:"M22 12h-2.48a2 2 0 0 0-1.93 1.46l-2.35 8.36a.25.25 0 0 1-.48 0L9.24 2.18a.25.25 0 0 0-.48 0l-2.35 8.36A2 2 0 0 1 4.49 12H2",key:"169zse"}]]);/**
|
|
212
|
-
* @license lucide-react v0.468.0 - ISC
|
|
213
|
-
*
|
|
214
|
-
* This source code is licensed under the ISC license.
|
|
215
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
216
|
-
*/const Ot=g("Bell",[["path",{d:"M10.268 21a2 2 0 0 0 3.464 0",key:"vwvbt9"}],["path",{d:"M3.262 15.326A1 1 0 0 0 4 17h16a1 1 0 0 0 .74-1.673C19.41 13.956 18 12.499 18 8A6 6 0 0 0 6 8c0 4.499-1.411 5.956-2.738 7.326",key:"11g9vi"}]]);/**
|
|
217
|
-
* @license lucide-react v0.468.0 - ISC
|
|
218
|
-
*
|
|
219
|
-
* This source code is licensed under the ISC license.
|
|
220
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
221
|
-
*/const Dt=g("Box",[["path",{d:"M21 8a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.73l7 4a2 2 0 0 0 2 0l7-4A2 2 0 0 0 21 16Z",key:"hh9hay"}],["path",{d:"m3.3 7 8.7 5 8.7-5",key:"g66t2b"}],["path",{d:"M12 22V12",key:"d0xqtd"}]]);/**
|
|
222
|
-
* @license lucide-react v0.468.0 - ISC
|
|
223
|
-
*
|
|
224
|
-
* This source code is licensed under the ISC license.
|
|
225
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
226
|
-
*/const Mt=g("Briefcase",[["path",{d:"M16 20V4a2 2 0 0 0-2-2h-4a2 2 0 0 0-2 2v16",key:"jecpp"}],["rect",{width:"20",height:"14",x:"2",y:"6",rx:"2",key:"i6l2r4"}]]);/**
|
|
227
|
-
* @license lucide-react v0.468.0 - ISC
|
|
228
|
-
*
|
|
229
|
-
* This source code is licensed under the ISC license.
|
|
230
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
231
|
-
*/const se=g("ChevronDown",[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]]);/**
|
|
232
|
-
* @license lucide-react v0.468.0 - ISC
|
|
233
|
-
*
|
|
234
|
-
* This source code is licensed under the ISC license.
|
|
235
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
236
|
-
*/const ae=g("ChevronRight",[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]]);/**
|
|
237
|
-
* @license lucide-react v0.468.0 - ISC
|
|
238
|
-
*
|
|
239
|
-
* This source code is licensed under the ISC license.
|
|
240
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
241
|
-
*/const qt=g("Clock",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["polyline",{points:"12 6 12 12 16 14",key:"68esgv"}]]);/**
|
|
242
|
-
* @license lucide-react v0.468.0 - ISC
|
|
243
|
-
*
|
|
244
|
-
* This source code is licensed under the ISC license.
|
|
245
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
246
|
-
*/const $t=g("Database",[["ellipse",{cx:"12",cy:"5",rx:"9",ry:"3",key:"msslwz"}],["path",{d:"M3 5V19A9 3 0 0 0 21 19V5",key:"1wlel7"}],["path",{d:"M3 12A9 3 0 0 0 21 12",key:"mv7ke4"}]]);/**
|
|
247
|
-
* @license lucide-react v0.468.0 - ISC
|
|
248
|
-
*
|
|
249
|
-
* This source code is licensed under the ISC license.
|
|
250
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
251
|
-
*/const re=g("ExternalLink",[["path",{d:"M15 3h6v6",key:"1q9fwt"}],["path",{d:"M10 14 21 3",key:"gplh6r"}],["path",{d:"M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6",key:"a6xqqp"}]]);/**
|
|
252
|
-
* @license lucide-react v0.468.0 - ISC
|
|
253
|
-
*
|
|
254
|
-
* This source code is licensed under the ISC license.
|
|
255
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
256
|
-
*/const zt=g("FileText",[["path",{d:"M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z",key:"1rqfz7"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["path",{d:"M10 9H8",key:"b1mrlr"}],["path",{d:"M16 13H8",key:"t4e002"}],["path",{d:"M16 17H8",key:"z1uh3a"}]]);/**
|
|
257
|
-
* @license lucide-react v0.468.0 - ISC
|
|
258
|
-
*
|
|
259
|
-
* This source code is licensed under the ISC license.
|
|
260
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
261
|
-
*/const It=g("GitBranch",[["line",{x1:"6",x2:"6",y1:"3",y2:"15",key:"17qcm7"}],["circle",{cx:"18",cy:"6",r:"3",key:"1h7g24"}],["circle",{cx:"6",cy:"18",r:"3",key:"fqmcym"}],["path",{d:"M18 9a9 9 0 0 1-9 9",key:"n2h4wq"}]]);/**
|
|
262
|
-
* @license lucide-react v0.468.0 - ISC
|
|
263
|
-
*
|
|
264
|
-
* This source code is licensed under the ISC license.
|
|
265
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
266
|
-
*/const Kt=g("Globe",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 2a14.5 14.5 0 0 0 0 20 14.5 14.5 0 0 0 0-20",key:"13o1zl"}],["path",{d:"M2 12h20",key:"9i4pu4"}]]);/**
|
|
267
|
-
* @license lucide-react v0.468.0 - ISC
|
|
268
|
-
*
|
|
269
|
-
* This source code is licensed under the ISC license.
|
|
270
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
271
|
-
*/const ne=g("HardDrive",[["line",{x1:"22",x2:"2",y1:"12",y2:"12",key:"1y58io"}],["path",{d:"M5.45 5.11 2 12v6a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2v-6l-3.45-6.89A2 2 0 0 0 16.76 4H7.24a2 2 0 0 0-1.79 1.11z",key:"oot6mr"}],["line",{x1:"6",x2:"6.01",y1:"16",y2:"16",key:"sgf278"}],["line",{x1:"10",x2:"10.01",y1:"16",y2:"16",key:"1l4acy"}]]);/**
|
|
272
|
-
* @license lucide-react v0.468.0 - ISC
|
|
273
|
-
*
|
|
274
|
-
* This source code is licensed under the ISC license.
|
|
275
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
276
|
-
*/const Vt=g("Layers",[["path",{d:"M12.83 2.18a2 2 0 0 0-1.66 0L2.6 6.08a1 1 0 0 0 0 1.83l8.58 3.91a2 2 0 0 0 1.66 0l8.58-3.9a1 1 0 0 0 0-1.83z",key:"zw3jo"}],["path",{d:"M2 12a1 1 0 0 0 .58.91l8.6 3.91a2 2 0 0 0 1.65 0l8.58-3.9A1 1 0 0 0 22 12",key:"1wduqc"}],["path",{d:"M2 17a1 1 0 0 0 .58.91l8.6 3.91a2 2 0 0 0 1.65 0l8.58-3.9A1 1 0 0 0 22 17",key:"kqbvx6"}]]);/**
|
|
277
|
-
* @license lucide-react v0.468.0 - ISC
|
|
278
|
-
*
|
|
279
|
-
* This source code is licensed under the ISC license.
|
|
280
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
281
|
-
*/const Bt=g("LayoutDashboard",[["rect",{width:"7",height:"9",x:"3",y:"3",rx:"1",key:"10lvy0"}],["rect",{width:"7",height:"5",x:"14",y:"3",rx:"1",key:"16une8"}],["rect",{width:"7",height:"9",x:"14",y:"12",rx:"1",key:"1hutg5"}],["rect",{width:"7",height:"5",x:"3",y:"16",rx:"1",key:"ldoo1y"}]]);/**
|
|
282
|
-
* @license lucide-react v0.468.0 - ISC
|
|
283
|
-
*
|
|
284
|
-
* This source code is licensed under the ISC license.
|
|
285
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
286
|
-
*/const Ft=g("Mail",[["rect",{width:"20",height:"16",x:"2",y:"4",rx:"2",key:"18n3k1"}],["path",{d:"m22 7-8.97 5.7a1.94 1.94 0 0 1-2.06 0L2 7",key:"1ocrg3"}]]);/**
|
|
287
|
-
* @license lucide-react v0.468.0 - ISC
|
|
288
|
-
*
|
|
289
|
-
* This source code is licensed under the ISC license.
|
|
290
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
291
|
-
*/const Ht=g("Menu",[["line",{x1:"4",x2:"20",y1:"12",y2:"12",key:"1e0a9i"}],["line",{x1:"4",x2:"20",y1:"6",y2:"6",key:"1owob3"}],["line",{x1:"4",x2:"20",y1:"18",y2:"18",key:"yk5zj1"}]]);/**
|
|
292
|
-
* @license lucide-react v0.468.0 - ISC
|
|
293
|
-
*
|
|
294
|
-
* This source code is licensed under the ISC license.
|
|
295
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
296
|
-
*/const oe=g("Moon",[["path",{d:"M12 3a6 6 0 0 0 9 9 9 9 0 1 1-9-9Z",key:"a7tn18"}]]);/**
|
|
297
|
-
* @license lucide-react v0.468.0 - ISC
|
|
298
|
-
*
|
|
299
|
-
* This source code is licensed under the ISC license.
|
|
300
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
301
|
-
*/const Gt=g("Package",[["path",{d:"M11 21.73a2 2 0 0 0 2 0l7-4A2 2 0 0 0 21 16V8a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.73z",key:"1a0edw"}],["path",{d:"M12 22V12",key:"d0xqtd"}],["path",{d:"m3.3 7 7.703 4.734a2 2 0 0 0 1.994 0L20.7 7",key:"yx3hmr"}],["path",{d:"m7.5 4.27 9 5.15",key:"1c824w"}]]);/**
|
|
302
|
-
* @license lucide-react v0.468.0 - ISC
|
|
303
|
-
*
|
|
304
|
-
* This source code is licensed under the ISC license.
|
|
305
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
306
|
-
*/const Ut=g("PanelsTopLeft",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M3 9h18",key:"1pudct"}],["path",{d:"M9 21V9",key:"1oto5p"}]]);/**
|
|
307
|
-
* @license lucide-react v0.468.0 - ISC
|
|
308
|
-
*
|
|
309
|
-
* This source code is licensed under the ISC license.
|
|
310
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
311
|
-
*/const Jt=g("Pause",[["rect",{x:"14",y:"4",width:"4",height:"16",rx:"1",key:"zuxfzm"}],["rect",{x:"6",y:"4",width:"4",height:"16",rx:"1",key:"1okwgv"}]]);/**
|
|
312
|
-
* @license lucide-react v0.468.0 - ISC
|
|
313
|
-
*
|
|
314
|
-
* This source code is licensed under the ISC license.
|
|
315
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
316
|
-
*/const Qt=g("Play",[["polygon",{points:"6 3 20 12 6 21 6 3",key:"1oa8hb"}]]);/**
|
|
317
|
-
* @license lucide-react v0.468.0 - ISC
|
|
318
|
-
*
|
|
319
|
-
* This source code is licensed under the ISC license.
|
|
320
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
321
|
-
*/const Wt=g("Radio",[["path",{d:"M4.9 19.1C1 15.2 1 8.8 4.9 4.9",key:"1vaf9d"}],["path",{d:"M7.8 16.2c-2.3-2.3-2.3-6.1 0-8.5",key:"u1ii0m"}],["circle",{cx:"12",cy:"12",r:"2",key:"1c9p78"}],["path",{d:"M16.2 7.8c2.3 2.3 2.3 6.1 0 8.5",key:"1j5fej"}],["path",{d:"M19.1 4.9C23 8.8 23 15.1 19.1 19",key:"10b0cb"}]]);/**
|
|
322
|
-
* @license lucide-react v0.468.0 - ISC
|
|
323
|
-
*
|
|
324
|
-
* This source code is licensed under the ISC license.
|
|
325
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
326
|
-
*/const Zt=g("RefreshCw",[["path",{d:"M3 12a9 9 0 0 1 9-9 9.75 9.75 0 0 1 6.74 2.74L21 8",key:"v9h5vc"}],["path",{d:"M21 3v5h-5",key:"1q7to0"}],["path",{d:"M21 12a9 9 0 0 1-9 9 9.75 9.75 0 0 1-6.74-2.74L3 16",key:"3uifl3"}],["path",{d:"M8 16H3v5",key:"1cv678"}]]);/**
|
|
327
|
-
* @license lucide-react v0.468.0 - ISC
|
|
328
|
-
*
|
|
329
|
-
* This source code is licensed under the ISC license.
|
|
330
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
331
|
-
*/const Xt=g("Shield",[["path",{d:"M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z",key:"oel41y"}]]);/**
|
|
332
|
-
* @license lucide-react v0.468.0 - ISC
|
|
333
|
-
*
|
|
334
|
-
* This source code is licensed under the ISC license.
|
|
335
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
336
|
-
*/const ie=g("Sun",[["circle",{cx:"12",cy:"12",r:"4",key:"4exip2"}],["path",{d:"M12 2v2",key:"tus03m"}],["path",{d:"M12 20v2",key:"1lh1kg"}],["path",{d:"m4.93 4.93 1.41 1.41",key:"149t6j"}],["path",{d:"m17.66 17.66 1.41 1.41",key:"ptbguv"}],["path",{d:"M2 12h2",key:"1t8f8n"}],["path",{d:"M20 12h2",key:"1q8mjw"}],["path",{d:"m6.34 17.66-1.41 1.41",key:"1m8zz5"}],["path",{d:"m19.07 4.93-1.41 1.41",key:"1shlcs"}]]);/**
|
|
337
|
-
* @license lucide-react v0.468.0 - ISC
|
|
338
|
-
*
|
|
339
|
-
* This source code is licensed under the ISC license.
|
|
340
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
341
|
-
*/const U=g("Telescope",[["path",{d:"m10.065 12.493-6.18 1.318a.934.934 0 0 1-1.108-.702l-.537-2.15a1.07 1.07 0 0 1 .691-1.265l13.504-4.44",key:"k4qptu"}],["path",{d:"m13.56 11.747 4.332-.924",key:"19l80z"}],["path",{d:"m16 21-3.105-6.21",key:"7oh9d"}],["path",{d:"M16.485 5.94a2 2 0 0 1 1.455-2.425l1.09-.272a1 1 0 0 1 1.212.727l1.515 6.06a1 1 0 0 1-.727 1.213l-1.09.272a2 2 0 0 1-2.425-1.455z",key:"m7xp4m"}],["path",{d:"m6.158 8.633 1.114 4.456",key:"74o979"}],["path",{d:"m8 21 3.105-6.21",key:"1fvxut"}],["circle",{cx:"12",cy:"13",r:"2",key:"1c1ljs"}]]);/**
|
|
342
|
-
* @license lucide-react v0.468.0 - ISC
|
|
343
|
-
*
|
|
344
|
-
* This source code is licensed under the ISC license.
|
|
345
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
346
|
-
*/const Yt=g("Terminal",[["polyline",{points:"4 17 10 11 4 5",key:"akl6gq"}],["line",{x1:"12",x2:"20",y1:"19",y2:"19",key:"q2wloq"}]]);/**
|
|
347
|
-
* @license lucide-react v0.468.0 - ISC
|
|
348
|
-
*
|
|
349
|
-
* This source code is licensed under the ISC license.
|
|
350
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
351
|
-
*/const le=g("Trash2",[["path",{d:"M3 6h18",key:"d0wm0j"}],["path",{d:"M19 6v14c0 1-1 2-2 2H7c-1 0-2-1-2-2V6",key:"4alrt4"}],["path",{d:"M8 6V4c0-1 1-2 2-2h4c1 0 2 1 2 2v2",key:"v07s0e"}],["line",{x1:"10",x2:"10",y1:"11",y2:"17",key:"1uufr5"}],["line",{x1:"14",x2:"14",y1:"11",y2:"17",key:"xtxkd"}]]);/**
|
|
352
|
-
* @license lucide-react v0.468.0 - ISC
|
|
353
|
-
*
|
|
354
|
-
* This source code is licensed under the ISC license.
|
|
355
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
356
|
-
*/const be=g("TriangleAlert",[["path",{d:"m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3",key:"wmoenq"}],["path",{d:"M12 9v4",key:"juzpu7"}],["path",{d:"M12 17h.01",key:"p32p05"}]]);/**
|
|
357
|
-
* @license lucide-react v0.468.0 - ISC
|
|
358
|
-
*
|
|
359
|
-
* This source code is licensed under the ISC license.
|
|
360
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
361
|
-
*/const es=g("X",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]),ke=()=>window.__NESTLENS_BASE__??"",ts=s=>`${window.location.origin}${ke()}/__nestlens__${s}`,ve=ts("/api");async function P(s,a){const e=await fetch(`${ve}${s}`,a);if(!e.ok)throw new Error(`API error: ${e.status}`);return e.json()}async function Ds(s){return P(`/entries/${s}`)}async function ss(){return P("/stats")}async function as(){return(await fetch(`${ve}/entries`,{method:"DELETE"})).json()}async function Ms(s){const a=new URLSearchParams;if(s.type&&a.set("type",s.type),s.limit&&a.set("limit",s.limit.toString()),s.beforeSequence!==void 0&&a.set("beforeSequence",s.beforeSequence.toString()),s.afterSequence!==void 0&&a.set("afterSequence",s.afterSequence.toString()),s.filters){const e=s.filters;e.levels&&e.levels.length>0&&a.set("levels",e.levels.join(",")),e.contexts&&e.contexts.length>0&&a.set("contexts",e.contexts.join(",")),e.queryTypes&&e.queryTypes.length>0&&a.set("queryTypes",e.queryTypes.join(",")),e.sources&&e.sources.length>0&&a.set("sources",e.sources.join(",")),e.slow!==void 0&&a.set("slow",e.slow.toString()),e.names&&e.names.length>0&&a.set("names",e.names.join(",")),e.methods&&e.methods.length>0&&a.set("methods",e.methods.join(",")),e.paths&&e.paths.length>0&&a.set("paths",e.paths.join(",")),e.resolved!==void 0&&a.set("resolved",e.resolved.toString()),e.statuses&&e.statuses.length>0&&a.set("statuses",e.statuses.join(",")),e.hostnames&&e.hostnames.length>0&&a.set("hostnames",e.hostnames.join(",")),e.controllers&&e.controllers.length>0&&a.set("controllers",e.controllers.join(",")),e.ips&&e.ips.length>0&&a.set("ips",e.ips.join(",")),e.eventNames&&e.eventNames.length>0&&a.set("eventNames",e.eventNames.join(",")),e.scheduleStatuses&&e.scheduleStatuses.length>0&&a.set("scheduleStatuses",e.scheduleStatuses.join(",")),e.scheduleNames&&e.scheduleNames.length>0&&a.set("scheduleNames",e.scheduleNames.join(",")),e.jobStatuses&&e.jobStatuses.length>0&&a.set("jobStatuses",e.jobStatuses.join(",")),e.jobNames&&e.jobNames.length>0&&a.set("jobNames",e.jobNames.join(",")),e.queues&&e.queues.length>0&&a.set("queues",e.queues.join(",")),e.cacheOperations&&e.cacheOperations.length>0&&a.set("cacheOperations",e.cacheOperations.join(",")),e.mailStatuses&&e.mailStatuses.length>0&&a.set("mailStatuses",e.mailStatuses.join(",")),e.redisStatuses&&e.redisStatuses.length>0&&a.set("redisStatuses",e.redisStatuses.join(",")),e.redisCommands&&e.redisCommands.length>0&&a.set("redisCommands",e.redisCommands.join(",")),e.modelActions&&e.modelActions.length>0&&a.set("modelActions",e.modelActions.join(",")),e.entities&&e.entities.length>0&&a.set("entities",e.entities.join(",")),e.modelSources&&e.modelSources.length>0&&a.set("modelSources",e.modelSources.join(",")),e.notificationTypes&&e.notificationTypes.length>0&&a.set("notificationTypes",e.notificationTypes.join(",")),e.notificationStatuses&&e.notificationStatuses.length>0&&a.set("notificationStatuses",e.notificationStatuses.join(",")),e.viewFormats&&e.viewFormats.length>0&&a.set("viewFormats",e.viewFormats.join(",")),e.viewStatuses&&e.viewStatuses.length>0&&a.set("viewStatuses",e.viewStatuses.join(",")),e.commandStatuses&&e.commandStatuses.length>0&&a.set("commandStatuses",e.commandStatuses.join(",")),e.commandNames&&e.commandNames.length>0&&a.set("commandNames",e.commandNames.join(",")),e.gateNames&&e.gateNames.length>0&&a.set("gateNames",e.gateNames.join(",")),e.gateResults&&e.gateResults.length>0&&a.set("gateResults",e.gateResults.join(",")),e.batchStatuses&&e.batchStatuses.length>0&&a.set("batchStatuses",e.batchStatuses.join(",")),e.batchOperations&&e.batchOperations.length>0&&a.set("batchOperations",e.batchOperations.join(",")),e.dumpStatuses&&e.dumpStatuses.length>0&&a.set("dumpStatuses",e.dumpStatuses.join(",")),e.dumpOperations&&e.dumpOperations.length>0&&a.set("dumpOperations",e.dumpOperations.join(",")),e.dumpFormats&&e.dumpFormats.length>0&&a.set("dumpFormats",e.dumpFormats.join(",")),e.operationTypes&&e.operationTypes.length>0&&a.set("operationTypes",e.operationTypes.join(",")),e.operationNames&&e.operationNames.length>0&&a.set("operationNames",e.operationNames.join(",")),e.hasErrors!==void 0&&a.set("hasErrors",e.hasErrors.toString()),e.hasN1!==void 0&&a.set("hasN1",e.hasN1.toString()),e.tags&&e.tags.length>0&&a.set("tags",e.tags.join(",")),e.search&&a.set("search",e.search)}return P(`/entries/cursor?${a.toString()}`)}async function qs(s){const a=new URLSearchParams;return s&&a.set("type",s),P(`/entries/latest-sequence?${a.toString()}`)}async function $s(s,a){const e=new URLSearchParams;return e.set("afterSequence",s.toString()),a&&e.set("type",a),P(`/entries/check-new?${e.toString()}`)}async function zs(){return P("/storage/stats")}async function Is(){return P("/pruning/status")}async function Ks(){return P("/pruning/run",{method:"POST"})}async function Vs(s){return P(`/entries/${s}/resolve`,{method:"PATCH"})}async function Bs(s){return P(`/entries/${s}/unresolve`,{method:"PATCH"})}async function rs(s){return P("/recording/pause",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({reason:s})})}async function ns(){return P("/recording/resume",{method:"POST"})}async function os(){return P("/recording/status")}function is(s){const a=r.useCallback(e=>{const o=e.target,l=o.tagName==="INPUT"||o.tagName==="TEXTAREA"||o.isContentEditable;for(const i of s){const{key:n,ctrl:c,meta:d,shift:y,alt:u,handler:m,preventDefault:f=!0}=i;if(l&&n.toLowerCase()!=="escape")continue;const j=e.key.toLowerCase()===n.toLowerCase(),v=y?e.shiftKey:!e.shiftKey,h=u?e.altKey:!e.altKey;if(c){if((e.ctrlKey||e.metaKey)&&j&&v&&h){f&&e.preventDefault(),m(e);return}continue}if(d){if(e.metaKey&&!e.ctrlKey&&j&&v&&h){f&&e.preventDefault(),m(e);return}continue}if(!e.ctrlKey&&!e.metaKey&&j&&v&&h){f&&e.preventDefault(),m(e);return}}},[s]);r.useEffect(()=>(document.addEventListener("keydown",a),()=>{document.removeEventListener("keydown",a)}),[a])}const we=r.createContext(void 0);function ls({children:s}){const[a,e]=r.useState(null),[o,l]=r.useState(null),i=r.useRef(!0),n=r.useCallback(async()=>{try{const c=await ss();e(c.data),l(null)}catch(c){const d=c instanceof Error?c:new Error("Failed to fetch stats");l(d),console.error("Failed to fetch stats:",c),i.current&&q.error("Failed to load statistics")}finally{i.current=!1}},[]);return r.useEffect(()=>{n();const c=setInterval(n,1e4);return()=>clearInterval(c)},[n]),t.jsx(we.Provider,{value:{stats:a,error:o,refreshStats:n},children:s})}function cs(){const s=r.useContext(we);if(s===void 0)throw new Error("useStats must be used within a StatsProvider");return s}function ce(){const[s,a]=r.useState(null),[e,o]=r.useState(!1);r.useEffect(()=>{const i=async()=>{try{const c=await os();a(c.data)}catch(c){console.error("Failed to fetch recording status:",c)}};i();const n=setInterval(i,5e3);return()=>clearInterval(n)},[]);const l=async()=>{if(!(!s||e)){o(!0);try{if(s.isPaused){const i=await ns();a(i.data),q.success("Recording resumed")}else{const i=await rs();a(i.data),q.success("Recording paused")}}catch{q.error("Failed to toggle recording")}finally{o(!1)}}};return s?t.jsx("button",{onClick:l,disabled:e,className:`p-2.5 rounded-lg transition-colors ${s.isPaused?"text-yellow-600 hover:text-yellow-700 dark:text-yellow-400 dark:hover:text-yellow-300 hover:bg-yellow-50 dark:hover:bg-yellow-900/20":"text-green-600 hover:text-green-700 dark:text-green-400 dark:hover:text-green-300 hover:bg-green-50 dark:hover:bg-green-900/20"} ${e?"opacity-50 cursor-not-allowed":""}`,"aria-label":s.isPaused?"Resume recording":"Pause recording",title:s.isPaused?"Resume Recording":"Pause Recording",children:s.isPaused?t.jsx(Qt,{className:"h-5 w-5"}):t.jsx(Jt,{className:"h-5 w-5"})}):null}const de={dashboard:"text-primary-500",request:"text-blue-500",query:"text-purple-500",graphql:"text-fuchsia-500",exception:"text-red-500",log:"text-green-500",job:"text-yellow-500",schedule:"text-gray-500",batch:"text-lime-500",command:"text-slate-500",cache:"text-cyan-500",redis:"text-rose-500",model:"text-violet-500","http-client":"text-indigo-500",mail:"text-pink-500",notification:"text-orange-500",event:"text-emerald-500",view:"text-teal-500",gate:"text-amber-500",dump:"text-stone-500"},ue=[{name:"Overview",items:[{name:"Dashboard",href:"/",icon:Bt,colorKey:"dashboard"}]},{name:"Core",items:[{name:"Requests",href:"/requests",icon:At,colorKey:"request"},{name:"Queries",href:"/queries",icon:$t,colorKey:"query"},{name:"GraphQL",href:"/graphql",icon:It,colorKey:"graphql"},{name:"Exceptions",href:"/exceptions",icon:be,badge:"exceptions",colorKey:"exception"},{name:"Logs",href:"/logs",icon:zt,colorKey:"log"}]},{name:"Background",items:[{name:"Jobs",href:"/jobs",icon:Mt,colorKey:"job"},{name:"Schedule",href:"/schedule",icon:qt,colorKey:"schedule"},{name:"Batches",href:"/batches",icon:Gt,colorKey:"batch"},{name:"Commands",href:"/commands",icon:Yt,colorKey:"command"}]},{name:"Data",items:[{name:"Cache",href:"/cache",icon:ne,colorKey:"cache"},{name:"Redis",href:"/redis",icon:Dt,colorKey:"redis"},{name:"Models",href:"/models",icon:Vt,colorKey:"model"}]},{name:"Communication",items:[{name:"HTTP Client",href:"/http-client",icon:Kt,colorKey:"http-client"},{name:"Mail",href:"/mail",icon:Ft,colorKey:"mail"},{name:"Notifications",href:"/notifications",icon:Ot,colorKey:"notification"},{name:"Events",href:"/events",icon:Wt,colorKey:"event"}]},{name:"System",items:[{name:"Views",href:"/views",icon:Ut,colorKey:"view"},{name:"Gates",href:"/gates",icon:Xt,colorKey:"gate"},{name:"Dumps",href:"/dumps",icon:ne,colorKey:"dump"}]}];function ds(){const s=Ce(),[a,e]=r.useState(!1),{stats:o}=cs(),[l,i]=r.useState(()=>{if(typeof window<"u"){const h=localStorage.getItem("nestlens-collapsed-groups");return h?new Set(JSON.parse(h)):new Set}return new Set}),[n,c]=r.useState(()=>typeof window<"u"?document.documentElement.classList.contains("dark"):!1),[d,y]=r.useState(()=>{if(typeof window<"u"){const h=localStorage.getItem("nestlens-theme");if(h==="system"||h==="light"||h==="dark")return h}return"system"}),u=r.useCallback(h=>{i(k=>{const E=new Set(k);return E.has(h)?E.delete(h):E.add(h),localStorage.setItem("nestlens-collapsed-groups",JSON.stringify([...E])),E})},[]),m=r.useCallback(h=>{if(!o)return 0;switch(h){case"exceptions":return o.unresolvedExceptions??o.byType.exception??0;default:return 0}},[o]),f=r.useCallback(h=>{let k=!1;h==="system"?k=window.matchMedia("(prefers-color-scheme: dark)").matches:k=h==="dark",k?document.documentElement.classList.add("dark"):document.documentElement.classList.remove("dark"),c(k)},[]),j=r.useCallback(()=>{const h=n?"light":"dark";y(h),localStorage.setItem("nestlens-theme",h),f(h)},[n,f]),v=r.useCallback(async()=>{window.confirm("Are you sure you want to clear all entries?")&&(await as(),q.success("All entries cleared"),window.location.reload())},[]);return r.useEffect(()=>{if(f(d),d==="system"){const h=window.matchMedia("(prefers-color-scheme: dark)"),k=E=>{const b=E.matches;b?document.documentElement.classList.add("dark"):document.documentElement.classList.remove("dark"),c(b)};return h.addEventListener("change",k),()=>h.removeEventListener("change",k)}},[d,f]),is([{key:"k",ctrl:!0,handler:()=>v()},{key:"Escape",handler:()=>{a&&e(!1)},preventDefault:!1},{key:"d",ctrl:!0,handler:()=>j()}]),t.jsxs("div",{className:"min-h-screen bg-gray-50 dark:bg-gray-900",children:[t.jsxs("div",{className:`fixed inset-0 z-50 lg:hidden ${a?"":"hidden"}`,children:[t.jsx("div",{className:"fixed inset-0 bg-gray-900/80",onClick:()=>e(!1)}),t.jsxs("div",{id:"mobile-sidebar","data-testid":"mobile-sidebar",className:"fixed inset-y-0 left-0 w-64 bg-white dark:bg-gray-800 flex flex-col",children:[t.jsxs("div",{className:"flex h-16 items-center justify-between px-4 border-b border-gray-200 dark:border-gray-700",children:[t.jsxs(D,{to:"/",className:"flex items-center space-x-2",children:[t.jsx(U,{className:"h-8 w-8 text-primary-600"}),t.jsx("span",{className:"text-xl font-bold text-gray-900 dark:text-white",children:"NestLens"})]}),t.jsx("button",{onClick:()=>e(!1),className:"text-gray-500 hover:text-gray-700 dark:text-gray-400","aria-label":"Close sidebar",children:t.jsx(es,{className:"h-6 w-6","aria-hidden":"true"})})]}),t.jsx("nav",{className:"flex-1 min-h-0 overflow-y-auto py-4 px-3",children:ue.map((h,k)=>{const E=l.has(h.name);return t.jsxs("div",{className:k>0?"mt-4":"",children:[t.jsxs("button",{onClick:()=>u(h.name),className:"flex items-center justify-between w-full px-2 py-1.5 text-xs font-semibold text-gray-400 dark:text-gray-500 uppercase tracking-wider hover:text-gray-600 dark:hover:text-gray-400 transition-colors","aria-expanded":!E,"aria-controls":`nav-group-${h.name.toLowerCase().replace(/\s+/g,"-")}`,children:[t.jsx("span",{children:h.name}),E?t.jsx(ae,{className:"h-3 w-3","aria-hidden":"true"}):t.jsx(se,{className:"h-3 w-3","aria-hidden":"true"})]}),!E&&t.jsx("div",{className:"mt-1 space-y-0.5",children:h.items.map(b=>{const N=b.href==="/"?s.pathname==="/":s.pathname.startsWith(b.href),C="badge"in b?m(b.badge):0;return t.jsxs(D,{to:b.href,"aria-current":N?"page":void 0,className:`group flex items-center justify-between px-3 py-2 rounded-lg transition-colors ${N?"bg-primary-50 text-primary-700 dark:bg-primary-900/50 dark:text-primary-200 font-medium":"text-gray-600 hover:bg-gray-100 dark:text-gray-400 dark:hover:bg-gray-800 hover:text-gray-900 dark:hover:text-white"}`,onClick:()=>e(!1),children:[t.jsxs("div",{className:"flex items-center space-x-3",children:[t.jsx(b.icon,{className:`h-4 w-4 ${de[b.colorKey]||"text-gray-400"}`}),t.jsx("span",{className:"text-sm",children:b.name})]}),C>0&&t.jsx("span",{className:"inline-flex items-center justify-center min-w-[20px] h-5 px-1.5 text-xs font-medium bg-red-100 text-red-700 dark:bg-red-900/50 dark:text-red-400 rounded-full",children:C>99?"99+":C})]},b.name)})})]},h.name)})}),t.jsx("div",{className:"flex-shrink-0 p-3 border-t border-gray-200 dark:border-gray-700",children:t.jsxs("div",{className:"flex items-center justify-center gap-1",children:[t.jsx(ce,{}),t.jsx("button",{onClick:j,className:"p-2.5 text-gray-500 hover:text-gray-700 dark:text-gray-400 dark:hover:text-gray-200 hover:bg-gray-100 dark:hover:bg-gray-700 rounded-lg transition-colors","aria-label":n?"Switch to light mode":"Switch to dark mode",children:n?t.jsx(ie,{className:"h-5 w-5"}):t.jsx(oe,{className:"h-5 w-5"})}),t.jsx("button",{onClick:v,className:"p-2.5 text-gray-500 hover:text-red-600 dark:text-gray-400 dark:hover:text-red-400 hover:bg-red-50 dark:hover:bg-red-900/20 rounded-lg transition-colors","aria-label":"Clear all data",children:t.jsx(le,{className:"h-5 w-5"})}),t.jsx("a",{href:"https://github.com/mogretici/nestlens",target:"_blank",rel:"noopener noreferrer",className:"p-2.5 text-gray-500 hover:text-gray-700 dark:text-gray-400 dark:hover:text-gray-200 hover:bg-gray-100 dark:hover:bg-gray-700 rounded-lg transition-colors","aria-label":"Documentation",children:t.jsx(re,{className:"h-5 w-5"})})]})})]})]}),t.jsx("div",{"data-testid":"sidebar",className:"hidden lg:fixed lg:inset-y-0 lg:flex lg:w-64 lg:flex-col",children:t.jsxs("div",{className:"flex flex-col h-full bg-white dark:bg-gray-800 border-r border-gray-200 dark:border-gray-700",children:[t.jsx("div",{className:"flex h-16 items-center px-4 border-b border-gray-200 dark:border-gray-700",children:t.jsxs(D,{to:"/",className:"flex items-center space-x-2.5",children:[t.jsx("div",{className:"p-1.5 bg-primary-100 dark:bg-primary-900/50 rounded-lg",children:t.jsx(U,{className:"h-6 w-6 text-primary-600 dark:text-primary-400"})}),t.jsxs("div",{children:[t.jsx("span",{className:"text-lg font-bold text-gray-900 dark:text-white",children:"NestLens"}),t.jsxs("span",{className:"hidden xl:inline text-xs text-gray-400 dark:text-gray-500 ml-1.5",children:["v","0.8.13"]})]})]})}),t.jsx("nav",{className:"flex-1 min-h-0 overflow-y-auto py-4 px-3",children:ue.map((h,k)=>{const E=l.has(h.name);return t.jsxs("div",{className:k>0?"mt-6":"",children:[t.jsxs("button",{onClick:()=>u(h.name),className:"flex items-center justify-between w-full px-2 py-1.5 text-[11px] font-semibold text-gray-400 dark:text-gray-500 uppercase tracking-wider hover:text-gray-600 dark:hover:text-gray-400 transition-colors","aria-expanded":!E,"aria-controls":`desktop-nav-group-${h.name.toLowerCase().replace(/\s+/g,"-")}`,children:[t.jsx("span",{children:h.name}),E?t.jsx(ae,{className:"h-3 w-3","aria-hidden":"true"}):t.jsx(se,{className:"h-3 w-3","aria-hidden":"true"})]}),!E&&t.jsx("div",{className:"mt-1 space-y-0.5",children:h.items.map(b=>{const N=b.href==="/"?s.pathname==="/":s.pathname.startsWith(b.href),C="badge"in b?m(b.badge):0;return t.jsxs(D,{to:b.href,"aria-current":N?"page":void 0,className:`group flex items-center justify-between px-3 py-2 rounded-lg transition-all duration-150 ${N?"bg-primary-50 text-primary-700 dark:bg-primary-900/50 dark:text-primary-200 font-medium shadow-sm":"text-gray-600 hover:bg-gray-50 dark:text-gray-400 dark:hover:bg-gray-800/50 hover:text-gray-900 dark:hover:text-white"}`,children:[t.jsxs("div",{className:"flex items-center space-x-3",children:[t.jsx(b.icon,{className:`h-[18px] w-[18px] ${de[b.colorKey]||"text-gray-400"}`}),t.jsx("span",{className:"text-sm",children:b.name})]}),C>0&&t.jsx("span",{className:`inline-flex items-center justify-center min-w-[20px] h-5 px-1.5 text-xs font-semibold rounded-full transition-colors ${N?"bg-primary-200 text-primary-800 dark:bg-primary-800 dark:text-primary-200":"bg-red-100 text-red-700 dark:bg-red-900/50 dark:text-red-400"}`,children:C>99?"99+":C})]},b.name)})})]},h.name)})}),t.jsx("div",{className:"flex-shrink-0 p-3 border-t border-gray-200 dark:border-gray-700",children:t.jsxs("div",{className:"flex items-center justify-center gap-1",children:[t.jsx(ce,{}),t.jsx("button",{onClick:j,className:"p-2.5 text-gray-500 hover:text-gray-700 dark:text-gray-400 dark:hover:text-gray-200 hover:bg-gray-100 dark:hover:bg-gray-700 rounded-lg transition-colors","aria-label":n?"Switch to light mode":"Switch to dark mode",title:n?"Light Mode (⌘D)":"Dark Mode (⌘D)",children:n?t.jsx(ie,{className:"h-5 w-5"}):t.jsx(oe,{className:"h-5 w-5"})}),t.jsx("button",{onClick:v,className:"p-2.5 text-gray-500 hover:text-red-600 dark:text-gray-400 dark:hover:text-red-400 hover:bg-red-50 dark:hover:bg-red-900/20 rounded-lg transition-colors","aria-label":"Clear all data",title:"Clear All Data (⌘K)",children:t.jsx(le,{className:"h-5 w-5"})}),t.jsx("a",{href:"https://github.com/mogretici/nestlens",target:"_blank",rel:"noopener noreferrer",className:"p-2.5 text-gray-500 hover:text-gray-700 dark:text-gray-400 dark:hover:text-gray-200 hover:bg-gray-100 dark:hover:bg-gray-700 rounded-lg transition-colors","aria-label":"Documentation",title:"Documentation",children:t.jsx(re,{className:"h-5 w-5"})})]})})]})}),t.jsxs("div",{className:"lg:pl-64",children:[t.jsxs("header",{className:"sticky top-0 z-40 flex h-14 items-center gap-4 border-b border-gray-200 dark:border-gray-700 bg-white dark:bg-gray-800 px-4 lg:hidden",children:[t.jsx("button",{onClick:()=>e(!0),className:"text-gray-500 hover:text-gray-700 dark:text-gray-400","aria-expanded":a,"aria-controls":"mobile-sidebar","aria-label":"Open navigation menu",children:t.jsx(Ht,{className:"h-6 w-6","aria-hidden":"true"})}),t.jsxs(D,{to:"/",className:"flex items-center space-x-2",children:[t.jsx(U,{className:"h-6 w-6 text-primary-600"}),t.jsx("span",{className:"text-lg font-bold text-gray-900 dark:text-white",children:"NestLens"})]})]}),t.jsx("main",{className:"p-4 lg:p-6",children:t.jsx(Re,{})})]})]})}function x(){return t.jsx("div",{className:"flex items-center justify-center min-h-[400px]",children:t.jsxs("div",{className:"flex flex-col items-center gap-3",children:[t.jsx("div",{className:"animate-spin rounded-full h-10 w-10 border-b-2 border-primary-600 dark:border-primary-400"}),t.jsx("p",{className:"text-sm text-gray-500 dark:text-gray-400",children:"Loading..."})]})})}const us=r.lazy(()=>w(()=>import("./DashboardPage-BxTgQDmh.js"),__vite__mapDeps([0,1,2,3,4]),import.meta.url)),hs=r.lazy(()=>w(()=>import("./RequestsPage-CDMXEx7M.js"),__vite__mapDeps([5,1,2,6,7,8,9]),import.meta.url)),ms=r.lazy(()=>w(()=>import("./QueriesPage-DsMLeBtH.js"),__vite__mapDeps([10,1,2,6,7,8,9,3]),import.meta.url)),ps=r.lazy(()=>w(()=>import("./ExceptionsPage-ZJNqTX3Q.js"),__vite__mapDeps([11,1,2,6,7,8,9,12]),import.meta.url)),xs=r.lazy(()=>w(()=>import("./LogsPage-ny3e-b51.js"),__vite__mapDeps([13,1,2,6,7,8,9]),import.meta.url)),fs=r.lazy(()=>w(()=>import("./EventsPage-xPiqDte_.js"),__vite__mapDeps([14,1,2,6,9]),import.meta.url)),ys=r.lazy(()=>w(()=>import("./JobsPage-CjHsAC5o.js"),__vite__mapDeps([15,1,2,6,9]),import.meta.url)),gs=r.lazy(()=>w(()=>import("./CachePage-CZxLvTJq.js"),__vite__mapDeps([16,1,2,6,9]),import.meta.url)),js=r.lazy(()=>w(()=>import("./MailPage-dpbs1DH3.js"),__vite__mapDeps([17,1,2,6,9]),import.meta.url)),bs=r.lazy(()=>w(()=>import("./SchedulePage-CkbyutFW.js"),__vite__mapDeps([18,1,19,2,6,9]),import.meta.url)),ks=r.lazy(()=>w(()=>import("./HttpClientPage-e8BqONkc.js"),__vite__mapDeps([20,1,2,6,9]),import.meta.url)),vs=r.lazy(()=>w(()=>import("./RedisPage-Daw6beWw.js"),__vite__mapDeps([21,1,2,6,9]),import.meta.url)),ws=r.lazy(()=>w(()=>import("./ModelsPage-DZaU9bdR.js"),__vite__mapDeps([22,1,2,6,9]),import.meta.url)),Ss=r.lazy(()=>w(()=>import("./NotificationsPage-xKjgSJyj.js"),__vite__mapDeps([23,1,2,6,9]),import.meta.url)),_s=r.lazy(()=>w(()=>import("./ViewsPage-B7fHFzy2.js"),__vite__mapDeps([24,1,2,6,9,25]),import.meta.url)),Es=r.lazy(()=>w(()=>import("./CommandsPage-DnUHcHF_.js"),__vite__mapDeps([26,1,2,6,9]),import.meta.url)),Ns=r.lazy(()=>w(()=>import("./GatesPage-CdvK6bSz.js"),__vite__mapDeps([27,1,2,6,9]),import.meta.url)),Ps=r.lazy(()=>w(()=>import("./BatchesPage-DEz38KR5.js"),__vite__mapDeps([28,1,2,6,9]),import.meta.url)),Cs=r.lazy(()=>w(()=>import("./DumpsPage-DNXepzfv.js"),__vite__mapDeps([29,1,2,6,9]),import.meta.url)),Rs=r.lazy(()=>w(()=>import("./GraphQLPage-DaLLpAf8.js"),__vite__mapDeps([30,1,2,7,8,6,9]),import.meta.url)),S=r.lazy(()=>w(()=>import("./EntryDetailPage-0WBhBUsh.js"),__vite__mapDeps([31,1,2,9,8,3,12,19,4,25]),import.meta.url));function Ls(){return t.jsx(Le,{children:t.jsxs(p,{path:"/",element:t.jsx(ds,{}),children:[t.jsx(p,{index:!0,element:t.jsx(r.Suspense,{fallback:t.jsx(x,{}),children:t.jsx(us,{})})}),t.jsx(p,{path:"requests",element:t.jsx(r.Suspense,{fallback:t.jsx(x,{}),children:t.jsx(hs,{})})}),t.jsx(p,{path:"queries",element:t.jsx(r.Suspense,{fallback:t.jsx(x,{}),children:t.jsx(ms,{})})}),t.jsx(p,{path:"exceptions",element:t.jsx(r.Suspense,{fallback:t.jsx(x,{}),children:t.jsx(ps,{})})}),t.jsx(p,{path:"logs",element:t.jsx(r.Suspense,{fallback:t.jsx(x,{}),children:t.jsx(xs,{})})}),t.jsx(p,{path:"events",element:t.jsx(r.Suspense,{fallback:t.jsx(x,{}),children:t.jsx(fs,{})})}),t.jsx(p,{path:"jobs",element:t.jsx(r.Suspense,{fallback:t.jsx(x,{}),children:t.jsx(ys,{})})}),t.jsx(p,{path:"cache",element:t.jsx(r.Suspense,{fallback:t.jsx(x,{}),children:t.jsx(gs,{})})}),t.jsx(p,{path:"mail",element:t.jsx(r.Suspense,{fallback:t.jsx(x,{}),children:t.jsx(js,{})})}),t.jsx(p,{path:"schedule",element:t.jsx(r.Suspense,{fallback:t.jsx(x,{}),children:t.jsx(bs,{})})}),t.jsx(p,{path:"http-client",element:t.jsx(r.Suspense,{fallback:t.jsx(x,{}),children:t.jsx(ks,{})})}),t.jsx(p,{path:"redis",element:t.jsx(r.Suspense,{fallback:t.jsx(x,{}),children:t.jsx(vs,{})})}),t.jsx(p,{path:"models",element:t.jsx(r.Suspense,{fallback:t.jsx(x,{}),children:t.jsx(ws,{})})}),t.jsx(p,{path:"notifications",element:t.jsx(r.Suspense,{fallback:t.jsx(x,{}),children:t.jsx(Ss,{})})}),t.jsx(p,{path:"views",element:t.jsx(r.Suspense,{fallback:t.jsx(x,{}),children:t.jsx(_s,{})})}),t.jsx(p,{path:"commands",element:t.jsx(r.Suspense,{fallback:t.jsx(x,{}),children:t.jsx(Es,{})})}),t.jsx(p,{path:"gates",element:t.jsx(r.Suspense,{fallback:t.jsx(x,{}),children:t.jsx(Ns,{})})}),t.jsx(p,{path:"batches",element:t.jsx(r.Suspense,{fallback:t.jsx(x,{}),children:t.jsx(Ps,{})})}),t.jsx(p,{path:"dumps",element:t.jsx(r.Suspense,{fallback:t.jsx(x,{}),children:t.jsx(Cs,{})})}),t.jsx(p,{path:"graphql",element:t.jsx(r.Suspense,{fallback:t.jsx(x,{}),children:t.jsx(Rs,{})})}),t.jsx(p,{path:"requests/:id",element:t.jsx(r.Suspense,{fallback:t.jsx(x,{}),children:t.jsx(S,{})})}),t.jsx(p,{path:"queries/:id",element:t.jsx(r.Suspense,{fallback:t.jsx(x,{}),children:t.jsx(S,{})})}),t.jsx(p,{path:"exceptions/:id",element:t.jsx(r.Suspense,{fallback:t.jsx(x,{}),children:t.jsx(S,{})})}),t.jsx(p,{path:"logs/:id",element:t.jsx(r.Suspense,{fallback:t.jsx(x,{}),children:t.jsx(S,{})})}),t.jsx(p,{path:"events/:id",element:t.jsx(r.Suspense,{fallback:t.jsx(x,{}),children:t.jsx(S,{})})}),t.jsx(p,{path:"jobs/:id",element:t.jsx(r.Suspense,{fallback:t.jsx(x,{}),children:t.jsx(S,{})})}),t.jsx(p,{path:"cache/:id",element:t.jsx(r.Suspense,{fallback:t.jsx(x,{}),children:t.jsx(S,{})})}),t.jsx(p,{path:"mail/:id",element:t.jsx(r.Suspense,{fallback:t.jsx(x,{}),children:t.jsx(S,{})})}),t.jsx(p,{path:"schedule/:id",element:t.jsx(r.Suspense,{fallback:t.jsx(x,{}),children:t.jsx(S,{})})}),t.jsx(p,{path:"http-client/:id",element:t.jsx(r.Suspense,{fallback:t.jsx(x,{}),children:t.jsx(S,{})})}),t.jsx(p,{path:"redis/:id",element:t.jsx(r.Suspense,{fallback:t.jsx(x,{}),children:t.jsx(S,{})})}),t.jsx(p,{path:"models/:id",element:t.jsx(r.Suspense,{fallback:t.jsx(x,{}),children:t.jsx(S,{})})}),t.jsx(p,{path:"notifications/:id",element:t.jsx(r.Suspense,{fallback:t.jsx(x,{}),children:t.jsx(S,{})})}),t.jsx(p,{path:"views/:id",element:t.jsx(r.Suspense,{fallback:t.jsx(x,{}),children:t.jsx(S,{})})}),t.jsx(p,{path:"commands/:id",element:t.jsx(r.Suspense,{fallback:t.jsx(x,{}),children:t.jsx(S,{})})}),t.jsx(p,{path:"gates/:id",element:t.jsx(r.Suspense,{fallback:t.jsx(x,{}),children:t.jsx(S,{})})}),t.jsx(p,{path:"batches/:id",element:t.jsx(r.Suspense,{fallback:t.jsx(x,{}),children:t.jsx(S,{})})}),t.jsx(p,{path:"dumps/:id",element:t.jsx(r.Suspense,{fallback:t.jsx(x,{}),children:t.jsx(S,{})})}),t.jsx(p,{path:"graphql/:id",element:t.jsx(r.Suspense,{fallback:t.jsx(x,{}),children:t.jsx(S,{})})}),t.jsx(p,{path:"entries/:id",element:t.jsx(r.Suspense,{fallback:t.jsx(x,{}),children:t.jsx(S,{})})}),t.jsx(p,{path:"*",element:t.jsx(Te,{to:"/",replace:!0})})]})})}class Ts extends r.Component{constructor(){super(...arguments);z(this,"state",{hasError:!1});z(this,"handleReload",()=>{window.location.reload()});z(this,"handleReset",()=>{this.setState({hasError:!1,error:void 0,errorInfo:void 0})})}static getDerivedStateFromError(e){return{hasError:!0,error:e}}componentDidCatch(e,o){console.error("ErrorBoundary caught an error:",e,o),this.setState({errorInfo:o})}render(){return this.state.hasError?this.props.fallback?this.props.fallback:t.jsx("div",{className:"min-h-screen flex items-center justify-center bg-gray-50 dark:bg-gray-900 p-4",children:t.jsxs("div",{className:"max-w-md w-full bg-white dark:bg-gray-800 rounded-lg shadow-lg p-6 text-center",children:[t.jsx("div",{className:"mx-auto w-12 h-12 flex items-center justify-center rounded-full bg-red-100 dark:bg-red-900/30 mb-4",children:t.jsx(be,{className:"h-6 w-6 text-red-600 dark:text-red-400"})}),t.jsx("h1",{className:"text-xl font-semibold text-gray-900 dark:text-white mb-2",children:"Something went wrong"}),t.jsx("p",{className:"text-gray-600 dark:text-gray-400 mb-4",children:"An unexpected error occurred. Please try refreshing the page."}),this.state.error&&t.jsx("div",{className:"mb-4 p-3 bg-red-50 dark:bg-red-900/20 rounded-lg text-left",children:t.jsx("p",{className:"text-sm font-mono text-red-600 dark:text-red-400 break-all",children:this.state.error.message})}),t.jsxs("div",{className:"flex gap-3 justify-center",children:[t.jsx("button",{onClick:this.handleReset,className:"px-4 py-2 text-sm font-medium text-gray-700 dark:text-gray-300 bg-gray-100 dark:bg-gray-700 hover:bg-gray-200 dark:hover:bg-gray-600 rounded-lg transition-colors",children:"Try Again"}),t.jsxs("button",{onClick:this.handleReload,className:"flex items-center gap-2 px-4 py-2 text-sm font-medium text-white bg-primary-600 hover:bg-primary-700 rounded-lg transition-colors",children:[t.jsx(Zt,{className:"h-4 w-4"}),"Refresh Page"]})]}),!1]})}):this.props.children}}ze.createRoot(document.getElementById("root")).render(t.jsx(Ae.StrictMode,{children:t.jsx(Ts,{children:t.jsx(Oe,{basename:ke(),children:t.jsxs(ls,{children:[t.jsx(Ls,{}),t.jsx(Nt,{position:"bottom-right",toastOptions:{duration:3e3,style:{background:"#1f2937",color:"#f3f4f6",borderRadius:"0.5rem"},success:{iconTheme:{primary:"#10b981",secondary:"#f3f4f6"}},error:{iconTheme:{primary:"#ef4444",secondary:"#f3f4f6"}}}})]})})})}));export{At as A,Mt as B,qt as C,$t as D,zt as F,It as G,ne as H,Vt as L,Ft as M,Gt as P,Wt as R,Xt as S,be as T,es as X,Yt as a,Dt as b,g as c,Kt as d,Ot as e,Ut as f,ae as g,le as h,Zt as i,t as j,zs as k,Is as l,Ms as m,Bs as n,Vs as o,ts as p,qs as q,Ks as r,$s as s,se as t,cs as u,Qt as v,Ds as w,q as z};
|
|
@@ -1,53 +0,0 @@
|
|
|
1
|
-
import{c as q,j as t,g as A}from"./index-jX7JpX7L.js";import{b as d}from"./vendor-DBTT3jXp.js";import{g as b}from"./ClickableBadge-DVTcykCM.js";/**
|
|
2
|
-
* @license lucide-react v0.468.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 S=q("Inbox",[["polyline",{points:"22 12 16 12 14 15 10 15 8 12 2 12",key:"o97t9d"}],["path",{d:"M5.45 5.11 2 12v6a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2v-6l-3.45-6.89A2 2 0 0 0 16.76 4H7.24a2 2 0 0 0-1.79 1.11z",key:"oot6mr"}]]);function R({columns:e,rows:s=5}){return t.jsx(t.Fragment,{children:Array.from({length:s}).map((n,r)=>t.jsx("tr",{className:"animate-pulse",children:Array.from({length:e}).map((o,l)=>t.jsx("td",{className:"px-4 py-3",children:t.jsx("div",{className:"h-4 bg-gray-200 dark:bg-gray-700 rounded w-3/4"})},l))},r))})}function L({message:e,icon:s}){return t.jsxs("div",{className:"flex flex-col items-center justify-center py-12 px-4",children:[t.jsx("div",{className:"p-3 rounded-full bg-gray-100 dark:bg-gray-800 mb-4",children:s||t.jsx(S,{className:"h-8 w-8 text-gray-400 dark:text-gray-500"})}),t.jsx("p",{className:"text-sm text-gray-500 dark:text-gray-400 text-center max-w-sm",children:e})]})}function G({columns:e,data:s,keyExtractor:n,onRowClick:r,loading:o=!1,emptyMessage:l="No data available",emptyIcon:u,showChevron:p=!0,compact:m=!1,stickyHeader:E=!0,maxHeight:g,zebraStripes:$=!1,rowClassName:v}){const j=m?"px-3 py-2":"px-4 py-3",k=m?"px-3 py-2":"px-4 py-3",[x,y]=d.useState(-1),[w,D]=d.useState(-1),f=d.useRef(null),h=e.length+(p&&r?1:0),N=a=>{switch(a){case"center":return"text-center";case"right":return"text-right";default:return"text-left"}},I=d.useCallback((a,c,i)=>{if(r)switch(a.key){case"Enter":case" ":a.preventDefault(),r(c),D(i);break;case"ArrowDown":a.preventDefault(),i<s.length-1&&y(i+1);break;case"ArrowUp":a.preventDefault(),i>0&&y(i-1);break;case"Home":a.preventDefault(),y(0);break;case"End":a.preventDefault(),y(s.length-1);break}},[r,s.length]);return d.useEffect(()=>{if(x>=0&&f.current){const c=f.current.querySelectorAll("tbody tr[tabindex]")[x];c&&c.focus()}},[x]),t.jsx("div",{className:"card overflow-hidden",children:t.jsx("div",{className:`overflow-x-auto ${g?"overflow-y-auto":""}`,style:g?{maxHeight:g}:void 0,children:t.jsxs("table",{ref:f,className:"w-full border-collapse",role:"grid","aria-rowcount":s.length,"aria-colcount":h,children:[t.jsx("thead",{className:`bg-gray-50 dark:bg-gray-800/50 ${E?"sticky top-0 z-10":""}`,children:t.jsxs("tr",{role:"row",children:[e.map(a=>t.jsx("th",{scope:"col",role:"columnheader","aria-sort":a.sortable?"none":void 0,className:`
|
|
7
|
-
${k}
|
|
8
|
-
${N(a.headerAlign||a.align)}
|
|
9
|
-
text-xs font-semibold text-gray-500 dark:text-gray-400 uppercase tracking-wider
|
|
10
|
-
border-b border-gray-200 dark:border-gray-700
|
|
11
|
-
bg-gray-50 dark:bg-gray-800/50
|
|
12
|
-
whitespace-nowrap
|
|
13
|
-
${a.sticky?"sticky left-0 z-20":""}
|
|
14
|
-
`,style:{width:a.width,minWidth:a.minWidth},children:a.header},a.key)),p&&r&&t.jsx("th",{scope:"col",role:"columnheader",className:`
|
|
15
|
-
${k}
|
|
16
|
-
w-12
|
|
17
|
-
border-b border-gray-200 dark:border-gray-700
|
|
18
|
-
bg-gray-50 dark:bg-gray-800/50
|
|
19
|
-
`,"aria-label":"Expand row"})]})}),t.jsx("tbody",{className:"divide-y divide-gray-100 dark:divide-gray-800",children:o?t.jsx(R,{columns:h,rows:5}):s.length===0?t.jsx("tr",{children:t.jsx("td",{colSpan:h,children:t.jsx(L,{message:l,icon:u})})}):s.map((a,c)=>t.jsxs("tr",{role:"row","aria-rowindex":c+1,"aria-selected":r&&w===c?!0:void 0,onClick:r?()=>r(a):void 0,onKeyDown:r?i=>I(i,a,c):void 0,tabIndex:r?0:void 0,className:`
|
|
20
|
-
group
|
|
21
|
-
transition-colors duration-150
|
|
22
|
-
${r?"cursor-pointer":""}
|
|
23
|
-
${$&&c%2===1?"bg-gray-50/50 dark:bg-gray-800/25":"bg-white dark:bg-gray-900"}
|
|
24
|
-
hover:bg-primary-50/50 dark:hover:bg-primary-900/10
|
|
25
|
-
focus:outline-none focus:ring-2 focus:ring-primary-500 focus:ring-inset
|
|
26
|
-
${w===c?"bg-primary-50 dark:bg-primary-900/20":""}
|
|
27
|
-
${v?v(a):""}
|
|
28
|
-
`,children:[e.map(i=>t.jsx("td",{role:"gridcell",className:`
|
|
29
|
-
${j}
|
|
30
|
-
${N(i.align)}
|
|
31
|
-
${i.sticky?"sticky left-0 z-10 bg-inherit":""}
|
|
32
|
-
`,style:{width:i.width,minWidth:i.minWidth},children:i.render(a,c)},i.key)),p&&r&&t.jsx("td",{className:`${j} w-12 text-right`,role:"gridcell",children:t.jsx(A,{className:"h-4 w-4 text-gray-300 dark:text-gray-600 group-hover:text-gray-500 dark:group-hover:text-gray-400 transition-colors inline-block","aria-hidden":"true"})})]},n(a)))})]})})})}function W({children:e,mono:s=!1,truncate:n=!1,maxWidth:r,secondary:o=!1,className:l=""}){return t.jsx("span",{className:`
|
|
33
|
-
text-sm
|
|
34
|
-
${s?"font-mono":""}
|
|
35
|
-
${o?"text-gray-500 dark:text-gray-400":"text-gray-900 dark:text-white"}
|
|
36
|
-
${n?"block truncate":""}
|
|
37
|
-
${l}
|
|
38
|
-
`,style:r?{maxWidth:r,display:"block"}:void 0,title:n&&typeof e=="string"?e:void 0,children:e})}function M({tags:e,max:s=3,onTagClick:n}){const r=e.slice(0,s),o=e.length-s;return e.length===0?t.jsx("span",{className:"text-sm text-gray-400 dark:text-gray-500",children:"—"}):t.jsxs("div",{className:"flex flex-wrap items-center gap-1",children:[r.map(l=>t.jsx("button",{onClick:n?u=>n(l,u):void 0,role:n?"button":void 0,tabIndex:n?0:void 0,"aria-label":n?`Click to filter by ${l.toUpperCase()}`:void 0,className:`
|
|
39
|
-
inline-flex items-center px-2 py-0.5 rounded text-xs font-bold uppercase tracking-wide shadow
|
|
40
|
-
${b(l)}
|
|
41
|
-
${n?"cursor-pointer hover:scale-105":""}
|
|
42
|
-
transition-transform
|
|
43
|
-
`,children:l.toUpperCase()},l)),o>0&&t.jsxs("span",{className:"text-xs text-gray-400 dark:text-gray-500",children:["+",o]})]})}function Q({ms:e,slowThreshold:s=1e3,verySlowThreshold:n=5e3}){let r,o;return e>=n?r="text-red-600 dark:text-red-400":e>=s?r="text-yellow-600 dark:text-yellow-400":r="text-gray-600 dark:text-gray-300",e>=1e3?o=`${(e/1e3).toFixed(2)}s`:o=`${Number.isInteger(e)?e:e.toFixed(2)}ms`,t.jsx("span",{className:`text-sm font-mono tabular-nums ${r}`,children:o})}function U({onClick:e}){const s=b("ERROR");return t.jsx("button",{onClick:e,className:`
|
|
44
|
-
inline-flex items-center px-2 py-0.5 rounded text-xs font-bold uppercase tracking-wide shadow
|
|
45
|
-
${s}
|
|
46
|
-
${e?"cursor-pointer hover:scale-105":""}
|
|
47
|
-
transition-transform
|
|
48
|
-
`,children:"ERROR"})}function K({count:e,onClick:s}){if(e===0)return null;const n=b("N+1");return t.jsx("button",{onClick:s,title:`${e} potential N+1 ${e===1?"query":"queries"} detected`,className:`
|
|
49
|
-
inline-flex items-center gap-1 px-2 py-0.5 rounded text-xs font-bold uppercase tracking-wide shadow
|
|
50
|
-
${n}
|
|
51
|
-
${s?"cursor-pointer hover:scale-105":""}
|
|
52
|
-
transition-transform
|
|
53
|
-
`,children:"N+1"})}function O(e){return e.type==="request"}function P(e){return e.type==="query"}function V(e){return e.type==="exception"}function _(e){return e.type==="log"}function H(e){return e.type==="cache"}function J(e){return e.type==="event"}function T(e){return e.type==="job"}function X(e){return e.type==="schedule"}function Y(e){return e.type==="mail"}function Z(e){return e.type==="http-client"}function C(e){return e.type==="redis"}function ee(e){return e.type==="model"}function te(e){return e.type==="notification"}function re(e){return e.type==="view"}function ae(e){return e.type==="command"}function se(e){return e.type==="gate"}function ne(e){return e.type==="batch"}function ie(e){return e.type==="dump"}function oe(e){return e.type==="graphql"}export{Q as D,U as G,K as N,W as T,M as a,G as b,P as c,V as d,_ as e,J as f,T as g,H as h,O as i,Y as j,X as k,Z as l,C as m,ee as n,te as o,re as p,ae as q,se as r,ne as s,ie as t,oe as u};
|