@alepha/devtools 0.15.1 → 0.15.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +14 -4
- package/assets/devtools/actions.html +6 -4
- package/assets/devtools/actions.html.br +0 -0
- package/assets/devtools/actions.html.gz +0 -0
- package/assets/devtools/{asset.CMFNRMve.css → asset.CUUwTesj.css} +1 -1
- package/assets/devtools/asset.CUUwTesj.css.br +0 -0
- package/assets/devtools/{asset.CMFNRMve.css.gz → asset.CUUwTesj.css.gz} +0 -0
- package/assets/devtools/atoms.html +6 -4
- package/assets/devtools/atoms.html.br +0 -0
- package/assets/devtools/atoms.html.gz +0 -0
- package/assets/devtools/caches.html +6 -4
- package/assets/devtools/caches.html.br +0 -0
- package/assets/devtools/caches.html.gz +0 -0
- package/assets/devtools/{chunk.D0butndH.js → chunk.6FHGgu4o.js} +1 -1
- package/assets/devtools/chunk.6FHGgu4o.js.br +0 -0
- package/assets/devtools/chunk.6FHGgu4o.js.gz +0 -0
- package/assets/devtools/chunk.BEZMZ7cU.js +2 -0
- package/assets/devtools/chunk.BEZMZ7cU.js.br +0 -0
- package/assets/devtools/chunk.BEZMZ7cU.js.gz +0 -0
- package/assets/devtools/{chunk.BfFwPQgv.js → chunk.BKeiNpZN.js} +2 -2
- package/assets/devtools/chunk.BKeiNpZN.js.br +0 -0
- package/assets/devtools/chunk.BKeiNpZN.js.gz +0 -0
- package/assets/devtools/{chunk.Q6_b9IUt.js → chunk.BLPoqamD.js} +1 -1
- package/assets/devtools/chunk.BLPoqamD.js.br +0 -0
- package/assets/devtools/chunk.BLPoqamD.js.gz +0 -0
- package/assets/devtools/{chunk.CUw48lF5.js → chunk.BLRSfNfT.js} +1 -1
- package/assets/devtools/chunk.BLRSfNfT.js.br +0 -0
- package/assets/devtools/chunk.BLRSfNfT.js.gz +0 -0
- package/assets/devtools/{chunk.BP23bv4G.js → chunk.BRvGzx4Z.js} +1 -1
- package/assets/devtools/chunk.BRvGzx4Z.js.br +0 -0
- package/assets/devtools/chunk.BRvGzx4Z.js.gz +0 -0
- package/assets/devtools/chunk.BSg4Kjs-.js +1 -0
- package/assets/devtools/chunk.BSg4Kjs-.js.br +0 -0
- package/assets/devtools/chunk.BSg4Kjs-.js.gz +0 -0
- package/assets/devtools/{chunk.DZFiDTv5.js → chunk.BV5mF0Co.js} +1 -1
- package/assets/devtools/chunk.BV5mF0Co.js.br +0 -0
- package/assets/devtools/chunk.BV5mF0Co.js.gz +0 -0
- package/assets/devtools/{chunk.CoH_IYrv.js → chunk.BYw9RTNZ.js} +1 -1
- package/assets/devtools/chunk.BYw9RTNZ.js.br +0 -0
- package/assets/devtools/chunk.BYw9RTNZ.js.gz +0 -0
- package/assets/devtools/chunk.BrKdm6Sb.js +1 -0
- package/assets/devtools/chunk.BrKdm6Sb.js.br +0 -0
- package/assets/devtools/chunk.BrKdm6Sb.js.gz +0 -0
- package/assets/devtools/chunk.BzM7ER7Q.js +1 -0
- package/assets/devtools/chunk.BzM7ER7Q.js.br +0 -0
- package/assets/devtools/chunk.BzM7ER7Q.js.gz +0 -0
- package/assets/devtools/{chunk.DOiJ5r3P.js → chunk.CCy0GI_s.js} +1 -1
- package/assets/devtools/chunk.CCy0GI_s.js.br +0 -0
- package/assets/devtools/chunk.CCy0GI_s.js.gz +0 -0
- package/assets/devtools/{chunk.BiIrl-Hq.js → chunk.CFRKkktr.js} +1 -1
- package/assets/devtools/chunk.CFRKkktr.js.br +0 -0
- package/assets/devtools/chunk.CFRKkktr.js.gz +0 -0
- package/assets/devtools/{chunk.lvb4PIb4.js → chunk.CJlnGw1S.js} +1 -1
- package/assets/devtools/chunk.CJlnGw1S.js.br +0 -0
- package/assets/devtools/chunk.CJlnGw1S.js.gz +0 -0
- package/assets/devtools/{chunk.BWdBHr2F.js → chunk.CZOSxV2E.js} +1 -1
- package/assets/devtools/chunk.CZOSxV2E.js.br +0 -0
- package/assets/devtools/chunk.CZOSxV2E.js.gz +0 -0
- package/assets/devtools/{chunk.CUs8lFwI.js → chunk.CZp8Oawk.js} +1 -1
- package/assets/devtools/chunk.CZp8Oawk.js.br +0 -0
- package/assets/devtools/chunk.CZp8Oawk.js.gz +0 -0
- package/assets/devtools/chunk.Cas0t8F5.js +1 -0
- package/assets/devtools/chunk.Cas0t8F5.js.br +0 -0
- package/assets/devtools/chunk.Cas0t8F5.js.gz +0 -0
- package/assets/devtools/{chunk._D_TfCmJ.js → chunk.Cf3d2zjg.js} +1 -1
- package/assets/devtools/chunk.Cf3d2zjg.js.br +0 -0
- package/assets/devtools/chunk.Cf3d2zjg.js.gz +0 -0
- package/assets/devtools/{chunk.B4porofG.js → chunk.CjAS4aWI.js} +1 -1
- package/assets/devtools/chunk.CjAS4aWI.js.br +0 -0
- package/assets/devtools/chunk.CjAS4aWI.js.gz +0 -0
- package/assets/devtools/{chunk.CMTEfKUa.js → chunk.ClYEvjjk.js} +1 -1
- package/assets/devtools/chunk.ClYEvjjk.js.br +2 -0
- package/assets/devtools/chunk.ClYEvjjk.js.gz +0 -0
- package/assets/devtools/chunk.D-abBFDq.js +2 -0
- package/assets/devtools/chunk.D-abBFDq.js.br +0 -0
- package/assets/devtools/chunk.D-abBFDq.js.gz +0 -0
- package/assets/devtools/{chunk.CFLl96SC.js → chunk.D06kB6Ym.js} +1 -1
- package/assets/devtools/chunk.D06kB6Ym.js.br +0 -0
- package/assets/devtools/chunk.D06kB6Ym.js.gz +0 -0
- package/assets/devtools/{chunk.C8JxGZtc.js → chunk.D0wx1CNI.js} +1 -1
- package/assets/devtools/chunk.D0wx1CNI.js.br +0 -0
- package/assets/devtools/chunk.D0wx1CNI.js.gz +0 -0
- package/assets/devtools/{chunk.DeN6s4_I.js → chunk.D8oqA7fh.js} +1 -1
- package/assets/devtools/chunk.D8oqA7fh.js.br +0 -0
- package/assets/devtools/chunk.D8oqA7fh.js.gz +0 -0
- package/assets/devtools/{chunk.s1U1MhH3.js → chunk.DGiOCunw.js} +1 -1
- package/assets/devtools/chunk.DGiOCunw.js.br +0 -0
- package/assets/devtools/chunk.DGiOCunw.js.gz +0 -0
- package/assets/devtools/chunk.DHfKeDbH.js +1 -0
- package/assets/devtools/chunk.DHfKeDbH.js.br +0 -0
- package/assets/devtools/chunk.DHfKeDbH.js.gz +0 -0
- package/assets/devtools/{chunk.DGI4-Nej.js → chunk.DQrcztZO.js} +1 -1
- package/assets/devtools/chunk.DQrcztZO.js.br +0 -0
- package/assets/devtools/chunk.DQrcztZO.js.gz +0 -0
- package/assets/devtools/chunk.DdQKcont.js +1 -0
- package/assets/devtools/chunk.DdQKcont.js.br +0 -0
- package/assets/devtools/chunk.DdQKcont.js.gz +0 -0
- package/assets/devtools/{chunk.CgxElNrD.js → chunk.DjMiOB4_.js} +1 -1
- package/assets/devtools/chunk.DjMiOB4_.js.br +0 -0
- package/assets/devtools/chunk.DjMiOB4_.js.gz +0 -0
- package/assets/devtools/{chunk.l66LreXu.js → chunk.JqUdzWl6.js} +1 -1
- package/assets/devtools/chunk.JqUdzWl6.js.br +0 -0
- package/assets/devtools/chunk.JqUdzWl6.js.gz +0 -0
- package/assets/devtools/{chunk.BIGcMrv-.js → chunk.VTMXAJC6.js} +1 -1
- package/assets/devtools/chunk.VTMXAJC6.js.br +0 -0
- package/assets/devtools/chunk.VTMXAJC6.js.gz +0 -0
- package/assets/devtools/chunk._oyZXgMC.js +1 -0
- package/assets/devtools/chunk._oyZXgMC.js.br +0 -0
- package/assets/devtools/chunk._oyZXgMC.js.gz +0 -0
- package/assets/devtools/chunk.plCe1Vwk.js +1 -0
- package/assets/devtools/chunk.plCe1Vwk.js.br +0 -0
- package/assets/devtools/chunk.plCe1Vwk.js.gz +0 -0
- package/assets/devtools/db.html +6 -4
- package/assets/devtools/db.html.br +0 -0
- package/assets/devtools/db.html.gz +0 -0
- package/assets/devtools/entry.CfgGy8wg.js +79 -0
- package/assets/devtools/entry.CfgGy8wg.js.br +0 -0
- package/assets/devtools/entry.CfgGy8wg.js.gz +0 -0
- package/assets/devtools/env.html +6 -4
- package/assets/devtools/env.html.br +0 -0
- package/assets/devtools/env.html.gz +0 -0
- package/assets/devtools/graph.html +6 -4
- package/assets/devtools/graph.html.br +0 -0
- package/assets/devtools/graph.html.gz +0 -0
- package/assets/devtools/index.html +6 -4
- package/assets/devtools/index.html.br +0 -0
- package/assets/devtools/index.html.gz +0 -0
- package/assets/devtools/logs.html +6 -4
- package/assets/devtools/logs.html.br +0 -0
- package/assets/devtools/logs.html.gz +0 -0
- package/assets/devtools/queues.html +6 -4
- package/assets/devtools/queues.html.br +0 -0
- package/assets/devtools/queues.html.gz +0 -0
- package/assets/devtools/topics.html +6 -4
- package/assets/devtools/topics.html.br +0 -0
- package/assets/devtools/topics.html.gz +0 -0
- package/dist/index.d.ts +15 -5
- package/dist/index.js +21 -8
- package/dist/index.js.map +1 -1
- package/package.json +7 -7
- package/src/api/providers/DevToolsDatabaseProvider.ts +2 -2
- package/src/index.ts +19 -5
- package/src/ui/AppRouter.tsx +8 -4
- package/src/ui/components/DevAtomsViewer.tsx +1 -1
- package/src/ui/components/DevCacheInspector.tsx +1 -1
- package/src/ui/components/DevEnvExplorer.tsx +1 -1
- package/src/ui/components/DevLogViewer.tsx +2 -2
- package/src/ui/components/DevTopicsViewer.tsx +1 -1
- package/src/ui/components/actions/DevActionsExplorer.tsx +1 -1
- package/src/ui/components/actions/TryItPanel.tsx +1 -1
- package/src/ui/components/db/DevDbStudio.tsx +1 -1
- package/src/ui/components/graph/DevDependencyGraph.tsx +1 -1
- package/src/ui/main.ts +0 -2
- package/assets/devtools/asset.CMFNRMve.css.br +0 -0
- package/assets/devtools/chunk.9K7EO5hq.js +0 -1
- package/assets/devtools/chunk.9K7EO5hq.js.br +0 -0
- package/assets/devtools/chunk.9K7EO5hq.js.gz +0 -0
- package/assets/devtools/chunk.B4porofG.js.br +0 -0
- package/assets/devtools/chunk.B4porofG.js.gz +0 -0
- package/assets/devtools/chunk.BIGcMrv-.js.br +0 -0
- package/assets/devtools/chunk.BIGcMrv-.js.gz +0 -0
- package/assets/devtools/chunk.BP23bv4G.js.br +0 -0
- package/assets/devtools/chunk.BP23bv4G.js.gz +0 -0
- package/assets/devtools/chunk.BWdBHr2F.js.br +0 -0
- package/assets/devtools/chunk.BWdBHr2F.js.gz +0 -0
- package/assets/devtools/chunk.BfFwPQgv.js.br +0 -0
- package/assets/devtools/chunk.BfFwPQgv.js.gz +0 -0
- package/assets/devtools/chunk.BiIrl-Hq.js.br +0 -0
- package/assets/devtools/chunk.BiIrl-Hq.js.gz +0 -0
- package/assets/devtools/chunk.C8JxGZtc.js.br +0 -0
- package/assets/devtools/chunk.C8JxGZtc.js.gz +0 -0
- package/assets/devtools/chunk.CFLl96SC.js.br +0 -0
- package/assets/devtools/chunk.CFLl96SC.js.gz +0 -0
- package/assets/devtools/chunk.CMTEfKUa.js.br +0 -0
- package/assets/devtools/chunk.CMTEfKUa.js.gz +0 -0
- package/assets/devtools/chunk.CN7ovTep.js +0 -1
- package/assets/devtools/chunk.CN7ovTep.js.br +0 -0
- package/assets/devtools/chunk.CN7ovTep.js.gz +0 -0
- package/assets/devtools/chunk.CUs8lFwI.js.br +0 -0
- package/assets/devtools/chunk.CUs8lFwI.js.gz +0 -0
- package/assets/devtools/chunk.CUw48lF5.js.br +0 -0
- package/assets/devtools/chunk.CUw48lF5.js.gz +0 -0
- package/assets/devtools/chunk.CdkqxSCz.js +0 -1
- package/assets/devtools/chunk.CdkqxSCz.js.br +0 -0
- package/assets/devtools/chunk.CdkqxSCz.js.gz +0 -0
- package/assets/devtools/chunk.CgxElNrD.js.br +0 -2
- package/assets/devtools/chunk.CgxElNrD.js.gz +0 -0
- package/assets/devtools/chunk.CoH_IYrv.js.br +0 -0
- package/assets/devtools/chunk.CoH_IYrv.js.gz +0 -0
- package/assets/devtools/chunk.D0butndH.js.br +0 -0
- package/assets/devtools/chunk.D0butndH.js.gz +0 -0
- package/assets/devtools/chunk.DGI4-Nej.js.br +0 -0
- package/assets/devtools/chunk.DGI4-Nej.js.gz +0 -0
- package/assets/devtools/chunk.DOiJ5r3P.js.br +0 -0
- package/assets/devtools/chunk.DOiJ5r3P.js.gz +0 -0
- package/assets/devtools/chunk.DZFiDTv5.js.br +0 -0
- package/assets/devtools/chunk.DZFiDTv5.js.gz +0 -0
- package/assets/devtools/chunk.Dbm9E6HI.js +0 -1
- package/assets/devtools/chunk.Dbm9E6HI.js.br +0 -0
- package/assets/devtools/chunk.Dbm9E6HI.js.gz +0 -0
- package/assets/devtools/chunk.DdgmE5g8.js +0 -1
- package/assets/devtools/chunk.DdgmE5g8.js.br +0 -0
- package/assets/devtools/chunk.DdgmE5g8.js.gz +0 -0
- package/assets/devtools/chunk.DeN6s4_I.js.br +0 -0
- package/assets/devtools/chunk.DeN6s4_I.js.gz +0 -0
- package/assets/devtools/chunk.DpW9QoyF.js +0 -1
- package/assets/devtools/chunk.DpW9QoyF.js.br +0 -0
- package/assets/devtools/chunk.DpW9QoyF.js.gz +0 -0
- package/assets/devtools/chunk.PcVF_qXP.js +0 -1
- package/assets/devtools/chunk.PcVF_qXP.js.br +0 -0
- package/assets/devtools/chunk.PcVF_qXP.js.gz +0 -0
- package/assets/devtools/chunk.Q6_b9IUt.js.br +0 -0
- package/assets/devtools/chunk.Q6_b9IUt.js.gz +0 -0
- package/assets/devtools/chunk.YqHRwxdc.js +0 -2
- package/assets/devtools/chunk.YqHRwxdc.js.br +0 -0
- package/assets/devtools/chunk.YqHRwxdc.js.gz +0 -0
- package/assets/devtools/chunk._D_TfCmJ.js.br +0 -0
- package/assets/devtools/chunk._D_TfCmJ.js.gz +0 -0
- package/assets/devtools/chunk.l66LreXu.js.br +0 -0
- package/assets/devtools/chunk.l66LreXu.js.gz +0 -0
- package/assets/devtools/chunk.lvb4PIb4.js.br +0 -0
- package/assets/devtools/chunk.lvb4PIb4.js.gz +0 -0
- package/assets/devtools/chunk.rvqQkpV6.js +0 -2
- package/assets/devtools/chunk.rvqQkpV6.js.br +0 -0
- package/assets/devtools/chunk.rvqQkpV6.js.gz +0 -0
- package/assets/devtools/chunk.s1U1MhH3.js.br +0 -0
- package/assets/devtools/chunk.s1U1MhH3.js.gz +0 -0
- package/assets/devtools/chunk.wg5XuK3_.js +0 -1
- package/assets/devtools/chunk.wg5XuK3_.js.br +0 -0
- package/assets/devtools/chunk.wg5XuK3_.js.gz +0 -0
- package/assets/devtools/entry.Cgjh-xX-.js +0 -79
- package/assets/devtools/entry.Cgjh-xX-.js.br +0 -0
- package/assets/devtools/entry.Cgjh-xX-.js.gz +0 -0
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{x as t,j as e,F as l,T as s,Z as o}from"./entry.Cgjh-xX-.js";import{A as a}from"./chunk.9K7EO5hq.js";const n=[["path",{d:"M3 21h4l13 -13a1.5 1.5 0 0 0 -4 -4l-13 13v4",key:"svg-0"}],["path",{d:"M14.5 5.5l4 4",key:"svg-1"}],["path",{d:"M12 8l-5 -5l-4 4l5 5",key:"svg-2"}],["path",{d:"M7 8l-1.5 1.5",key:"svg-3"}],["path",{d:"M16 12l5 5l-4 4l-5 -5",key:"svg-4"}],["path",{d:"M16 17l-1.5 1.5",key:"svg-5"}]],r=t("outline","tools","Tools",n),d=()=>e.jsxs(l,{direction:"column",align:"center",justify:"center",flex:1,w:"100%",gap:"xl",children:[e.jsx(l,{direction:"column",align:"center",gap:4,mb:"md",children:e.jsxs(l,{align:"center",gap:"sm",children:[e.jsx(r,{size:40,stroke:1.5,opacity:.8}),e.jsx(s,{size:"2rem",fw:300,style:{letterSpacing:"-0.02em"},children:"Alepha DevTools"})]})}),e.jsx(a,{icon:e.jsx(o,{}),title:"Work In Progress",color:"blue",variant:"light",maw:500,children:"DevTools is still in active development. New features and improvements are being added regularly. Use the navigation to explore available tools."})]});export{d as DevDashboard,d as default};
|
|
Binary file
|
|
Binary file
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{u as Ae,r as m,M as Ce,a as Ie,c as ze,f as w,b as x,j as a,B as j,d as D,R as W,e as f,k as N,g as Se,h as re,i as Pe,l as Be,I as Re,p as _e,m as Te,n as Ve,o as O,q as Ee,s as Fe,t as q,U as Le,v as le,w as He,x as A,y as E,F as u,z as $e,A as ye,T as K,C as F,D as S,E as ie,G as De,H as We,J as V,N as Oe,K as qe,L as Ke,O as Xe,P as Qe,Q as Ye,S as Ge,V as Ue,W as Je,X as Ze,Y as Me}from"./entry.Cgjh-xX-.js";import{g as ce,a as oe,A as C,u as et}from"./chunk.DpW9QoyF.js";import{n as tt}from"./chunk.BjFrJKj1.js";import{S as st}from"./chunk.DeN6s4_I.js";import{D as rt}from"./chunk.C8JxGZtc.js";import"./chunk.CN7ovTep.js";import"./chunk.BlqFPyLh.js";import"./chunk.CgxElNrD.js";import"./chunk.uyVen0u2.js";import"./chunk.DOiJ5r3P.js";function pe(e,t){return Ae("(prefers-color-scheme: dark)",e==="dark",t)?"dark":"light"}function ae(e){const t=document.createElement("style");return t.setAttribute("data-mantine-styles","inline"),t.innerHTML="*, *::before, *::after {transition: none !important;}",t.setAttribute("data-mantine-disable-transition","true"),e&&t.setAttribute("nonce",e),document.head.appendChild(t),()=>document.querySelectorAll("[data-mantine-disable-transition]").forEach(r=>r.remove())}function he({keepTransitions:e}={}){const t=m.useRef(tt),o=m.useRef(-1),r=m.useContext(Ce),c=Ie(),p=m.useRef(c?.());if(!r)throw new Error("[@mantine/core] MantineProvider was not found in tree");const n=b=>{r.setColorScheme(b),t.current=e?()=>{}:ae(p.current),window.clearTimeout(o.current),o.current=window.setTimeout(()=>{t.current?.()},10)},l=()=>{r.clearColorScheme(),t.current=e?()=>{}:ae(p.current),window.clearTimeout(o.current),o.current=window.setTimeout(()=>{t.current?.()},10)},i=pe("light",{getInitialValueInEffect:!1}),s=r.colorScheme==="auto"?i:r.colorScheme,h=m.useCallback(()=>n(s==="light"?"dark":"light"),[n,s]);return m.useEffect(()=>()=>{t.current?.(),window.clearTimeout(o.current)},[]),{colorScheme:r.colorScheme,setColorScheme:n,clearColorScheme:l,toggleColorScheme:h}}function ot(e,t={getInitialValueInEffect:!0}){const o=pe(e,t),{colorScheme:r}=he();return r==="auto"?o:r}const[at,I]=ze("AppShell was not found in tree");var k={root:"m_89ab340",navbar:"m_45252eee",aside:"m_9cdde9a",header:"m_3b16f56b",main:"m_8983817",footer:"m_3840c879",section:"m_6dcfc7c7"};const X=w((e,t)=>{const{classNames:o,className:r,style:c,styles:p,unstyled:n,vars:l,withBorder:i,zIndex:s,mod:h,...b}=x("AppShellAside",null,e),d=I();return d.disabled?null:a.jsx(j,{component:"aside",ref:t,mod:[{"with-border":i??d.withBorder},h],...d.getStyles("aside",{className:D({[W.classNames.zeroRight]:d.offsetScrollbars},r),classNames:o,styles:p,style:c}),...b,__vars:{"--app-shell-aside-z-index":`calc(${s??d.zIndex} + 1)`}})});X.classes=k;X.displayName="@mantine/core/AppShellAside";const Q=w((e,t)=>{const{classNames:o,className:r,style:c,styles:p,unstyled:n,vars:l,withBorder:i,zIndex:s,mod:h,...b}=x("AppShellFooter",null,e),d=I();return d.disabled?null:a.jsx(j,{component:"footer",ref:t,mod:[{"with-border":i??d.withBorder},h],...d.getStyles("footer",{className:D({[W.classNames.zeroRight]:d.offsetScrollbars},r),classNames:o,styles:p,style:c}),...b,__vars:{"--app-shell-footer-z-index":(s??d.zIndex)?.toString()}})});Q.classes=k;Q.displayName="@mantine/core/AppShellFooter";const Y=w((e,t)=>{const{classNames:o,className:r,style:c,styles:p,unstyled:n,vars:l,withBorder:i,zIndex:s,mod:h,...b}=x("AppShellHeader",null,e),d=I();return d.disabled?null:a.jsx(j,{component:"header",ref:t,mod:[{"with-border":i??d.withBorder},h],...d.getStyles("header",{className:D({[W.classNames.zeroRight]:d.offsetScrollbars},r),classNames:o,styles:p,style:c}),...b,__vars:{"--app-shell-header-z-index":(s??d.zIndex)?.toString()}})});Y.classes=k;Y.displayName="@mantine/core/AppShellHeader";const G=w((e,t)=>{const{classNames:o,className:r,style:c,styles:p,vars:n,...l}=x("AppShellMain",null,e),i=I();return a.jsx(j,{component:"main",ref:t,...i.getStyles("main",{className:r,style:c,classNames:o,styles:p}),...l})});G.classes=k;G.displayName="@mantine/core/AppShellMain";function P(e){return typeof e=="object"?e.base:e}function B(e){const t=typeof e=="object"&&e!==null&&typeof e.base<"u"&&Object.keys(e).length===1;return typeof e=="number"||typeof e=="string"||t}function R(e){return!(typeof e!="object"||e===null||Object.keys(e).length===1&&"base"in e)}function nt({baseStyles:e,minMediaStyles:t,maxMediaStyles:o,aside:r,theme:c,mode:p}){const n=r?.width,l="translateX(var(--app-shell-aside-width))",i="translateX(calc(var(--app-shell-aside-width) * -1))";if(r?.breakpoint&&!r?.collapsed?.mobile&&(o[r?.breakpoint]=o[r?.breakpoint]||{},p==="fixed"?(o[r?.breakpoint]["--app-shell-aside-width"]="100%",o[r?.breakpoint]["--app-shell-aside-offset"]="0px"):(o[r?.breakpoint]["--app-shell-aside-width"]="0px",o[r?.breakpoint]["--app-shell-aside-offset"]="0px")),B(n)){const s=f(P(n));e["--app-shell-aside-width"]=s,e["--app-shell-aside-offset"]=s}if(R(n)&&(typeof n.base<"u"&&(e["--app-shell-aside-width"]=f(n.base),e["--app-shell-aside-offset"]=f(n.base)),N(n).forEach(s=>{s!=="base"&&(t[s]=t[s]||{},t[s]["--app-shell-aside-width"]=f(n[s]),t[s]["--app-shell-aside-offset"]=f(n[s]))})),r?.breakpoint&&p==="static"&&(t[r.breakpoint]=t[r.breakpoint]||{},t[r.breakpoint]["--app-shell-aside-position"]="sticky",t[r.breakpoint]["--app-shell-aside-grid-row"]="2",t[r.breakpoint]["--app-shell-aside-grid-column"]="3",t[r.breakpoint]["--app-shell-main-column-end"]="3"),r?.collapsed?.desktop){const s=r.breakpoint;t[s]=t[s]||{},t[s]["--app-shell-aside-transform"]=l,t[s]["--app-shell-aside-transform-rtl"]=i,p==="fixed"?t[s]["--app-shell-aside-offset"]="0px !important":(t[s]["--app-shell-aside-width"]="0px",t[s]["--app-shell-aside-display"]="none",t[s]["--app-shell-main-column-end"]="-1"),t[s]["--app-shell-aside-scroll-locked-visibility"]="hidden"}if(r?.collapsed?.mobile){const s=ce(r.breakpoint,c.breakpoints)-.1;o[s]=o[s]||{},p==="fixed"?(o[s]["--app-shell-aside-width"]="100%",o[s]["--app-shell-aside-offset"]="0px"):o[s]["--app-shell-aside-width"]="0px",o[s]["--app-shell-aside-transform"]=l,o[s]["--app-shell-aside-transform-rtl"]=i,o[s]["--app-shell-aside-scroll-locked-visibility"]="hidden"}}function lt({baseStyles:e,minMediaStyles:t,footer:o,mode:r}){const c=o?.height,p="translateY(var(--app-shell-footer-height))",n=r==="static"?!0:o?.offset??!0;if(r==="static"&&o&&(e["--app-shell-footer-position"]="sticky",e["--app-shell-footer-grid-column"]="1 / -1",e["--app-shell-footer-grid-row"]="3"),B(c)){const l=f(P(c));e["--app-shell-footer-height"]=l,n&&(e["--app-shell-footer-offset"]=l)}R(c)&&(typeof c.base<"u"&&(e["--app-shell-footer-height"]=f(c.base),n&&(e["--app-shell-footer-offset"]=f(c.base))),N(c).forEach(l=>{l!=="base"&&(t[l]=t[l]||{},t[l]["--app-shell-footer-height"]=f(c[l]),n&&(t[l]["--app-shell-footer-offset"]=f(c[l])))})),o?.collapsed&&(e["--app-shell-footer-transform"]=p,r==="fixed"&&(e["--app-shell-footer-offset"]="0px !important"))}function it({baseStyles:e,minMediaStyles:t,header:o,mode:r}){const c=o?.height,p="translateY(calc(var(--app-shell-header-height) * -1))",n=r==="static"?!0:o?.offset??!0;if(r==="static"&&o&&(e["--app-shell-header-position"]="sticky",e["--app-shell-header-grid-column"]="1 / -1",e["--app-shell-header-grid-row"]="1"),B(c)){const l=f(P(c));e["--app-shell-header-height"]=l,n&&(e["--app-shell-header-offset"]=l)}R(c)&&(typeof c.base<"u"&&(e["--app-shell-header-height"]=f(c.base),n&&(e["--app-shell-header-offset"]=f(c.base))),N(c).forEach(l=>{l!=="base"&&(t[l]=t[l]||{},t[l]["--app-shell-header-height"]=f(c[l]),n&&(t[l]["--app-shell-header-offset"]=f(c[l])))})),o?.collapsed&&(e["--app-shell-header-transform"]=p,r==="fixed"&&(e["--app-shell-header-offset"]="0px !important"))}function ct({baseStyles:e,minMediaStyles:t,maxMediaStyles:o,navbar:r,theme:c,mode:p}){const n=r?.width,l="translateX(calc(var(--app-shell-navbar-width) * -1))",i="translateX(var(--app-shell-navbar-width))";if(r?.breakpoint&&!r?.collapsed?.mobile&&(o[r?.breakpoint]=o[r?.breakpoint]||{},o[r?.breakpoint]["--app-shell-navbar-offset"]="0px",o[r?.breakpoint]["--app-shell-navbar-width"]="100%",p==="static"&&(o[r?.breakpoint]["--app-shell-navbar-grid-width"]="0px")),B(n)){const s=f(P(n));e["--app-shell-navbar-width"]=s,e["--app-shell-navbar-offset"]=s,p==="static"&&(e["--app-shell-navbar-grid-width"]=s)}if(R(n)&&(typeof n.base<"u"&&(e["--app-shell-navbar-width"]=f(n.base),e["--app-shell-navbar-offset"]=f(n.base),p==="static"&&(e["--app-shell-navbar-grid-width"]=f(n.base))),N(n).forEach(s=>{s!=="base"&&(t[s]=t[s]||{},t[s]["--app-shell-navbar-width"]=f(n[s]),t[s]["--app-shell-navbar-offset"]=f(n[s]),p==="static"&&(t[s]["--app-shell-navbar-grid-width"]=f(n[s])))})),r?.breakpoint&&p==="static"&&(t[r.breakpoint]=t[r.breakpoint]||{},t[r.breakpoint]["--app-shell-navbar-position"]="sticky",t[r.breakpoint]["--app-shell-navbar-grid-row"]="2",t[r.breakpoint]["--app-shell-navbar-grid-column"]="1",t[r.breakpoint]["--app-shell-main-column-start"]="2"),r?.collapsed?.desktop){const s=r.breakpoint;t[s]=t[s]||{},t[s]["--app-shell-navbar-transform"]=l,t[s]["--app-shell-navbar-transform-rtl"]=i,p==="fixed"?t[s]["--app-shell-navbar-offset"]="0px !important":(t[s]["--app-shell-navbar-width"]="0px",t[s]["--app-shell-navbar-display"]="none",t[s]["--app-shell-main-column-start"]="1")}if(r?.collapsed?.mobile){const s=ce(r.breakpoint,c.breakpoints)-.1;o[s]=o[s]||{},o[s]["--app-shell-navbar-width"]="100%",o[s]["--app-shell-navbar-offset"]="0px",p==="static"&&(o[s]["--app-shell-navbar-grid-width"]="0px"),o[s]["--app-shell-navbar-transform"]=l,o[s]["--app-shell-navbar-transform-rtl"]=i}}function $(e){return Number(e)===0?"0px":Se(e)}function pt({padding:e,baseStyles:t,minMediaStyles:o}){B(e)&&(t["--app-shell-padding"]=$(P(e))),R(e)&&(e.base&&(t["--app-shell-padding"]=$(e.base)),N(e).forEach(r=>{r!=="base"&&(o[r]=o[r]||{},o[r]["--app-shell-padding"]=$(e[r]))}))}function ht({navbar:e,header:t,footer:o,aside:r,padding:c,theme:p,mode:n}){const l={},i={},s={};n==="static"&&(s["--app-shell-main-grid-column"]="1 / -1",s["--app-shell-main-grid-row"]="2"),ct({baseStyles:s,minMediaStyles:l,maxMediaStyles:i,navbar:e,theme:p,mode:n}),nt({baseStyles:s,minMediaStyles:l,maxMediaStyles:i,aside:r,theme:p,mode:n}),it({baseStyles:s,minMediaStyles:l,header:t,mode:n}),lt({baseStyles:s,minMediaStyles:l,footer:o,mode:n}),pt({baseStyles:s,minMediaStyles:l,padding:c});const h=oe(N(l),p.breakpoints).map(v=>({query:`(min-width: ${re(v.px)})`,styles:l[v.value]})),b=oe(N(i),p.breakpoints).map(v=>({query:`(max-width: ${re(v.px)})`,styles:i[v.value]})),d=[...h,...b];return{baseStyles:s,media:d}}function dt({navbar:e,header:t,aside:o,footer:r,padding:c,mode:p,selector:n}){const l=Pe(),i=Be(),{media:s,baseStyles:h}=ht({navbar:e,header:t,footer:r,aside:o,padding:c,theme:l,mode:p});return a.jsx(Re,{media:s,styles:h,selector:n||i.cssVariablesSelector})}const U=w((e,t)=>{const{classNames:o,className:r,style:c,styles:p,unstyled:n,vars:l,withBorder:i,zIndex:s,mod:h,...b}=x("AppShellNavbar",null,e),d=I();return d.disabled?null:a.jsx(j,{component:"nav",ref:t,mod:[{"with-border":i??d.withBorder},h],...d.getStyles("navbar",{className:r,classNames:o,styles:p,style:c}),...b,__vars:{"--app-shell-navbar-z-index":`calc(${s??d.zIndex} + 1)`}})});U.classes=k;U.displayName="@mantine/core/AppShellNavbar";const J=_e((e,t)=>{const{classNames:o,className:r,style:c,styles:p,vars:n,grow:l,mod:i,...s}=x("AppShellSection",null,e),h=I();return a.jsx(j,{ref:t,mod:[{grow:l},i],...h.getStyles("section",{className:r,style:c,classNames:o,styles:p}),...s})});J.classes=k;J.displayName="@mantine/core/AppShellSection";function ut({transitionDuration:e,disabled:t}){const[o,r]=m.useState(!0),c=m.useRef(-1),p=m.useRef(-1);return Te("resize",()=>{r(!0),clearTimeout(c.current),c.current=window.setTimeout(()=>m.startTransition(()=>{r(!1)}),200)}),Ve(()=>{r(!0),clearTimeout(p.current),p.current=window.setTimeout(()=>m.startTransition(()=>{r(!1)}),e||0)},[t,e]),o}const ft={withBorder:!0,padding:0,transitionDuration:200,transitionTimingFunction:"ease",zIndex:Fe("app"),mode:"fixed"},mt=q((e,{transitionDuration:t,transitionTimingFunction:o})=>({root:{"--app-shell-transition-duration":`${t}ms`,"--app-shell-transition-timing-function":o}})),g=w((e,t)=>{const o=x("AppShell",ft,e),{classNames:r,className:c,style:p,styles:n,unstyled:l,vars:i,navbar:s,withBorder:h,padding:b,transitionDuration:d,transitionTimingFunction:v,header:z,zIndex:L,layout:_,disabled:H,aside:be,footer:ge,offsetScrollbars:ve=!0,mode:T,mod:xe,attributes:je,id:we,...ke}=o,te=O({name:"AppShell",classes:k,props:o,className:c,style:p,classNames:r,styles:n,unstyled:l,attributes:je,vars:i,varsResolver:mt}),Ne=ut({disabled:H,transitionDuration:d}),se=Ee(we);return a.jsxs(at,{value:{getStyles:te,withBorder:h,zIndex:L,disabled:H,offsetScrollbars:ve,mode:T},children:[a.jsx(dt,{navbar:s,header:z,aside:be,footer:ge,padding:b,mode:T,selector:T==="static"?`#${se}`:void 0}),a.jsx(j,{ref:t,...te("root"),mod:[{resizing:Ne,layout:_,disabled:H,mode:T},xe],id:se,...ke})]})});g.classes=k;g.displayName="@mantine/core/AppShell";g.Navbar=U;g.Header=Y;g.Main=G;g.Aside=X;g.Footer=Q;g.Section=J;var de={root:"m_fea6bf1a",burger:"m_d4fb9cad"};const bt=q((e,{color:t,size:o,lineSize:r,transitionDuration:c,transitionTimingFunction:p})=>({root:{"--burger-color":t?He(t,e):void 0,"--burger-size":le(o,"burger-size"),"--burger-line-size":r?f(r):void 0,"--burger-transition-duration":c===void 0?void 0:`${c}ms`,"--burger-transition-timing-function":p}})),Z=w((e,t)=>{const o=x("Burger",null,e),{classNames:r,className:c,style:p,styles:n,unstyled:l,vars:i,opened:s,children:h,transitionDuration:b,transitionTimingFunction:d,lineSize:v,attributes:z,...L}=o,_=O({name:"Burger",classes:de,props:o,className:c,style:p,classNames:r,styles:n,unstyled:l,attributes:z,vars:i,varsResolver:bt});return a.jsxs(Le,{..._("root"),ref:t,...L,children:[a.jsx(j,{mod:["reduce-motion",{opened:s}],..._("burger")}),h]})});Z.classes=de;Z.displayName="@mantine/core/Burger";var ue={root:"m_dc6f14e2"};const gt=q((e,{size:t})=>({root:{"--kbd-fz":le(t,"kbd-fz")}})),M=w((e,t)=>{const o=x("Kbd",null,e),{classNames:r,className:c,style:p,styles:n,unstyled:l,vars:i,attributes:s,...h}=o,b=O({name:"Kbd",classes:ue,props:o,className:c,style:p,classNames:r,styles:n,unstyled:l,attributes:s,vars:i,varsResolver:gt});return a.jsx(j,{component:"kbd",ref:t,...b("root"),...h})});M.classes=ue;M.displayName="@mantine/core/Kbd";const vt=[["path",{d:"M9 6.371c0 4.418 -2.239 6.629 -5 6.629",key:"svg-0"}],["path",{d:"M4 6.371h7",key:"svg-1"}],["path",{d:"M5 9c0 2.144 2.252 3.908 6 4",key:"svg-2"}],["path",{d:"M12 20l4 -9l4 9",key:"svg-3"}],["path",{d:"M19.1 18h-6.2",key:"svg-4"}],["path",{d:"M6.694 3l.793 .582",key:"svg-5"}]],xt=A("outline","language","Language",vt);const jt=[["path",{d:"M4 6a2 2 0 0 1 2 -2h12a2 2 0 0 1 2 2v12a2 2 0 0 1 -2 2h-12a2 2 0 0 1 -2 -2l0 -12",key:"svg-0"}],["path",{d:"M9 4v16",key:"svg-1"}],["path",{d:"M15 10l-2 2l2 2",key:"svg-2"}]],wt=A("outline","layout-sidebar-left-collapse","LayoutSidebarLeftCollapse",jt);const kt=[["path",{d:"M4 6a2 2 0 0 1 2 -2h12a2 2 0 0 1 2 2v12a2 2 0 0 1 -2 2h-12a2 2 0 0 1 -2 -2l0 -12",key:"svg-0"}],["path",{d:"M15 4v16",key:"svg-1"}],["path",{d:"M9 10l2 2l-2 2",key:"svg-2"}]],Nt=A("outline","layout-sidebar-right-collapse","LayoutSidebarRightCollapse",kt);const At=[["path",{d:"M12 3c.132 0 .263 0 .393 0a7.5 7.5 0 0 0 7.92 12.446a9 9 0 1 1 -8.313 -12.454l0 .008",key:"svg-0"}]],ne=A("outline","moon","Moon",At);const Ct=[["path",{d:"M12 3c7.2 0 9 1.8 9 9c0 7.2 -1.8 9 -9 9c-7.2 0 -9 -1.8 -9 -9c0 -7.2 1.8 -9 9 -9",key:"svg-0"}]],It=A("outline","square-rounded","SquareRounded",Ct);const zt=[["path",{d:"M8 12a4 4 0 1 0 8 0a4 4 0 1 0 -8 0",key:"svg-0"}],["path",{d:"M3 12h1m8 -9v1m8 8h1m-9 8v1m-6.4 -15.4l.7 .7m12.1 -.7l-.7 .7m0 11.4l.7 .7m-12.1 -.7l-.7 .7",key:"svg-1"}]],y=A("outline","sun","Sun",zt),St=e=>{const[t,o]=E("alepha.ui.sidebar.opened");return a.jsx(Z,{opened:t,onClick:()=>o(!t),hiddenFrom:"sm",size:"sm",...e})},fe=e=>{const{setColorScheme:t}=he(),o=ot("light"),[r,c]=m.useState("default"),p=e.mode??"minimal";m.useEffect(()=>{c(o)},[o]);const n=()=>{t(o==="dark"?"light":"dark")};return p==="segmented"?a.jsx(st,{value:r,onChange:l=>t(l),data:[{value:"light",label:a.jsx(u,{h:20,align:"center",justify:"center",children:a.jsx(y,{size:16})})},{value:"dark",label:a.jsx(u,{h:20,align:"center",justify:"center",children:a.jsx(ne,{size:16})})}],w:e.fullWidth?"100%":void 0,...e.segmentedProps}):a.jsx(C,{onClick:n,variant:e.variant??"subtle",size:e.size??"sm","aria-label":"Toggle color scheme",px:"xs",fullWidth:e.fullWidth??!1,icon:r==="dark"?y:r==="light"?ne:y,...e.actionProps})},Pt=e=>{const t=et();return a.jsx(C,{variant:"default",icon:xt,menu:{items:t.languages.map(o=>({label:t.tr(o),onClick:()=>t.setLang(o),active:t.lang===o}))},...e.actionProps})},ee=e=>a.jsx(C,{variant:"default",onClick:$e.open,justify:"space-between",rightSection:a.jsx(M,{visibleFrom:"sm",size:"sm",children:"⌘+K"}),radius:"md",...e.actionProps,children:a.jsxs(u,{align:"center",gap:"xs",children:[a.jsx(ye,{size:16,color:"gray"}),a.jsx(u,{visibleFrom:"sm",miw:192,children:a.jsx(K,{size:"xs",c:"dimmed",children:"Search..."})})]})}),Bt=e=>{const{items:t=[]}=e,o=(n,l)=>{if("type"in n){if(n.type==="burger")return a.jsx(St,{},l);if(n.type==="dark")return a.jsx(fe,{...n.props},l);if(n.type==="search")return a.jsx(ee,{...n.props},l);if(n.type==="lang")return a.jsx(Pt,{...n.props},l);if(n.type==="spacer")return a.jsx(u,{w:16},l);if(n.type==="divider")return a.jsx(rt,{orientation:"vertical"},l)}return"element"in n?n.element:null},r=t.filter(n=>n.position==="left"),c=t.filter(n=>n.position==="center"),p=t.filter(n=>n.position==="right");return a.jsxs(u,{h:"100%",align:"center",px:"md",justify:"space-between",...e.flexProps,children:[a.jsx(u,{flex:1,children:r.map((n,l)=>a.jsx(u,{ml:l===0?0:"md",align:"center",children:o(n,l)},l))}),a.jsx(u,{children:c.map((n,l)=>a.jsx(u,{mx:"md",align:"center",children:o(n,l)},l))}),a.jsx(u,{flex:1,align:"center",justify:"end",children:p.map((n,l)=>a.jsx(u,{ml:l===0?0:"md",align:"center",children:o(n,l)},l))})]})},Rt=()=>{const[e,t]=E("alepha.ui.sidebar.collapsed");return a.jsx(u,{children:a.jsx(C,{icon:e?a.jsx(Nt,{}):a.jsx(wt,{}),variant:"subtle",size:"md",onClick:()=>t(!e),tooltip:{position:"right",label:e?"Show sidebar":"Hide sidebar"}})})},_t=e=>{const t=F(),{onItemClick:o}=e,r=(i,s)=>{if("type"in i){if(i.type==="spacer")return a.jsx(u,{h:16},s);if(i.type==="divider")return a.jsx(u,{h:1,bg:"var(--alepha-border)",my:"md",mx:"sm"},s);if(i.type==="search")return a.jsx(ee,{collapsed:e.collapsed},s);if(i.type==="toggle")return a.jsx(Rt,{},s);if(i.type==="section")return e.collapsed?void 0:a.jsxs(u,{mt:"md",mb:"xs",align:"center",gap:"xs",children:[S(i.icon),a.jsx(K,{size:"xs",c:"dimmed",tt:"uppercase",fw:"bold",children:i.label},s)]},s)}return"element"in i?a.jsx(u,{children:i.element},s):i.can&&!i.can()?null:e.collapsed?a.jsx(Tt,{item:i,level:0,onItemClick:o,theme:e.theme??{}},s):a.jsx(me,{item:i,level:0,onItemClick:o,theme:e.theme??{}},s)},c=()=>{if(e.items)return e.items;if(e.autoPopulateMenu){const i=t.concretePages.filter(s=>!s.can||s.can()).map(s=>({label:s.label??s.name,icon:S(s.icon),href:t.path(s.name)}));if(typeof e.autoPopulateMenu=="object"&&e.autoPopulateMenu.startsWith){const s=e.autoPopulateMenu.startsWith;return i.filter(h=>h.href?.startsWith(s))}return i}return[]},p="md",n=e.items?e.gap:"xs",l=m.useMemo(()=>c(),[]);return a.jsxs(u,{flex:1,py:p,direction:"column",className:"overflow-auto",...e.flexProps,children:[a.jsx(u,{gap:n,px:p,direction:"column",children:l.filter(i=>i.position==="top").map((i,s)=>r(i,s))}),a.jsx(u,{gap:n,px:p,direction:"column",flex:1,className:"overflow-auto",children:l.filter(i=>!i.position).map((i,s)=>r(i,s))}),a.jsx(u,{gap:n,px:p,direction:"column",children:l.filter(i=>i.position==="bottom").map((i,s)=>r(i,s))})]})},me=e=>{const{item:t,level:o}=e,r=2,c=F(),p=m.useCallback(s=>{if(!s.children)return!1;for(const h of s.children)if(h.href&&c.isActive(h.href)||p(h))return!0;return!1},[]),[n,l]=m.useState(p(t));if(ie({"react:transition:end":()=>{p(t)&&l(!0)}},[]),o>r)return null;const i=s=>{e.item.target||s.preventDefault(),t.children&&t.children.length>0?l(!n):(e.onItemClick?.(t),t.onClick?.())};return a.jsxs(u,{direction:"column",ps:o===0?0:32,pos:"relative",children:[a.jsx(C,{w:"100%",justify:"space-between",href:e.item.href,target:e.item.target,size:e.item.theme?.size??e.theme.button?.size??(o===0?"sm":"xs"),c:"var(--mantine-color-text)",color:"gray",variant:"subtle",variantActive:"default",radius:e.item.theme?.radius??e.theme.button?.radius??"md",onClick:i,leftSection:a.jsxs(u,{w:"100%",align:"center",gap:"sm",children:[S(t.icon),a.jsxs(u,{direction:"column",children:[a.jsx(u,{children:t.label}),t.description&&a.jsx(K,{size:"xs",c:"dimmed",children:t.description})]})]}),rightSection:t.children?a.jsx(u,{children:n?a.jsx(De,{size:14}):a.jsx(We,{size:14})}):e.item.rightSection,...e.item.actionProps}),t.children&&n&&a.jsxs(u,{direction:"column","data-parent-level":o,children:[a.jsx(u,{style:{position:"absolute",width:1,background:"linear-gradient(to bottom, transparent, var(--alepha-border), transparent)",top:48,left:20+32*o,bottom:16}}),t.children.filter(s=>!s.can||s.can()).map((s,h)=>a.jsx(me,{item:s,level:o+1,onItemClick:e.onItemClick,theme:e.theme},h))]})]})},Tt=e=>{const{item:t,level:o}=e,r=F(),c=m.useCallback(i=>{if(!i.children)return!1;for(const s of i.children)if(s.href&&r.isActive(s.href)||c(s))return!0;return!1},[]),[p,n]=m.useState(c(t)),l=i=>{e.item.target||i.preventDefault(),t.children&&t.children.length>0?n(!p):(e.onItemClick?.(t),t.onClick?.())};return a.jsx(C,{size:e.item.theme?.size??e.theme.button?.size??(o===0?"sm":"xs"),variant:"subtle",variantActive:"default",tooltip:t.children?void 0:{label:t.label,position:"right"},radius:e.item.theme?.radius??e.theme.button?.radius??"md",onClick:l,icon:S(t.icon)??a.jsx(It,{}),href:e.item.href,target:e.item.target,menu:t.children?{position:"right",on:"hover",items:t.children.filter(i=>!i.can||i.can()).map(i=>({label:i.label,href:i.href,icon:S(i.icon),children:i.children?.filter(s=>!s.can||s.can())}))}:void 0,...e.item.actionProps})},Vt=e=>{const t=F(),[o,r]=E("alepha.ui.sidebar.opened"),[c]=E("alepha.ui.sidebar.collapsed",e.sidebarProps?.collapsed),p=()=>{if(e.noSidebarWhen?.paths){for(const z of e.noSidebarWhen.paths)if(t.isActive(z,{startWith:!0}))return!1}return!0},[n,l]=m.useState(p());ie({"react:transition:end":()=>{l(p())},"react:transition:begin":()=>{r(!1)}},[]);const i=[{position:"left",type:"burger"}],s=n&&e.sidebarProps!==void 0,h=s||e.appBarProps||e.header,b=h?60:0,d=e.footer?24:0,v=s?c?78:300:0;return a.jsxs(g,{w:"100%",flex:1,padding:"md",header:h?{height:60}:void 0,navbar:s?{width:c?{base:78}:{base:300},breakpoint:"sm",collapsed:{mobile:!o}}:void 0,footer:e.footer?{height:24}:void 0,...e.appShellProps,children:[a.jsx(g.Header,{bg:V.colors.surface,...e.appShellHeaderProps,children:e.header??a.jsx(Bt,{items:i,...e.appBarProps})}),s&&a.jsx(g.Navbar,{bg:V.colors.surface,...e.appShellNavbarProps,children:a.jsx(_t,{collapsed:c,...e.sidebarProps??{}})}),a.jsx(g.Main,{pl:v,pt:b,pb:d,pr:0,display:"flex",flex:1,style:{flexDirection:"column"},...e.appShellMainProps,children:e.children??a.jsx(Oe,{})}),e.footer&&a.jsx(g.Footer,{bg:V.colors.surface,...e.appShellFooterProps,children:e.footer})]})},Kt=()=>a.jsx(Vt,{appShellHeaderProps:{bg:V.colors.background},appShellNavbarProps:{bg:"transparent"},sidebarProps:{gap:4,collapsed:!0,items:[{label:"Dashboard",icon:a.jsx(qe,{}),href:"/"},{type:"divider"},{label:"Actions",icon:a.jsx(Ke,{}),href:"/actions"},{label:"Queues",icon:a.jsx(Xe,{}),href:"/queues"},{label:"Topics",icon:a.jsx(Qe,{}),href:"/topics"},{label:"Caches",icon:a.jsx(Ye,{}),href:"/caches"},{label:"DB Studio",icon:a.jsx(Ge,{}),href:"/db"},{type:"divider"},{label:"Environment",icon:a.jsx(Ue,{}),href:"/env"},{label:"Atoms",icon:a.jsx(Je,{}),href:"/atoms"},{type:"divider"},{label:"Graph",icon:a.jsx(Ze,{}),href:"/graph"},{label:"Logs",icon:a.jsx(Me,{}),href:"/logs"}]},appBarProps:{items:[{position:"left",type:"burger"},{position:"left",element:a.jsx(u,{h:"60px",w:"78px",style:{marginLeft:"-32px",borderRight:"1px solid var(--mantine-color-default-border)"}})},{position:"left",element:a.jsx(ee,{actionProps:{variant:"outline",bd:"1px solid var(--mantine-color-default-border)"}})},{position:"right",element:a.jsx(fe,{})}]}});export{Kt as DevLayout,Kt as default};
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{av as Me,r as x,aM as De,y as je,a3 as ke,b5 as Ie,b6 as Pe,C as z,aK as te,p as H,b as M,j as r,T as Ae,d as Te,c as Ne,f as B,B as se,ah as K,ay as Ee,i as q,aj as re,b7 as ie,U as ae,b8 as Le,q as Fe,b9 as Re,o as _e,$ as Oe,ax as Be,a1 as Ke,a$ as Ve,J as $e,F as ne,ae as ze,a6 as L,H as He,ab as qe}from"./entry.Cgjh-xX-.js";import{T as ce}from"./chunk.CN7ovTep.js";import{f as Ue,c as le}from"./chunk.BlqFPyLh.js";import{P as F,u as de}from"./chunk.C8JxGZtc.js";import{A as Ge}from"./chunk.CgxElNrD.js";const ue=(n,o=["loading","dirty","error"])=>{const t=Me(),s=o,[a,i]=x.useState(!1),[e,c]=x.useState(!1),[l,u]=x.useState(void 0),[m,y]=x.useState(void 0),h="form"in n?n.form:n,f="path"in n?n.path:void 0,w=s.includes("values"),d=s.includes("error"),v=s.includes("dirty"),b=s.includes("loading");return x.useEffect(()=>{const C=[];return(d||w||v)&&C.push(t.events.on("form:change",p=>{p.id===h.id&&((!f||p.path===f)&&(v&&i(!0),d&&u(void 0)),w&&y(h.currentValues))})),w&&C.push(t.events.on("form:reset",p=>{p.id===h.id&&y(p.values)})),b&&C.push(t.events.on("form:submit:begin",p=>{p.id===h.id&&c(!0)}),t.events.on("form:submit:end",p=>{p.id===h.id&&c(!1)})),(w||v)&&C.push(t.events.on("form:submit:success",p=>{p.id===h.id&&(w&&y(p.values),v&&i(!1))})),d&&C.push(t.events.on("form:submit:error",p=>{p.id===h.id&&(!f||p.error instanceof De&&p.error.value.path===f)&&u(p.error)})),()=>{for(const p of C)p()}},[]),{dirty:a,loading:e,error:l,values:m}},pt=()=>(je("alepha.react.i18n.lang"),ke(Ie)),We=n=>{Pe();const o=z(),[t,s]=x.useState(!1),a=typeof n=="string"?{href:n}:{...n,href:n.href},i=a.href,e=o.isActive(i,a);return{isPending:t,isActive:e,anchorProps:{href:o.base(i),onClick:async c=>{if(c?.stopPropagation(),c?.preventDefault(),!e&&!t){s(!0);try{await o.go(i)}finally{s(!1)}}}}}};function S(n,o){return t=>{n?.(t),o?.(t)}}function Je(n,o){return n in o?te(o[n]):te(n)}function vt(n,o){const t=n.map(s=>({value:s,px:Je(s,o)}));return t.sort((s,a)=>s.px-a.px),t}function Qe(n,o,t){return t?Array.from(Ue(t,o)?.querySelectorAll(n)||[]).findIndex(s=>s===t):null}function Xe(n=!1,o={}){const[t,s]=x.useState(n),a=x.useCallback(()=>{s(c=>c||(o.onOpen?.(),!0))},[o.onOpen]),i=x.useCallback(()=>{s(c=>c&&(o.onClose?.(),!1))},[o.onClose]),e=x.useCallback(()=>{t?i():a()},[i,a,t]);return[t,{open:a,close:i,toggle:e}]}function me({open:n,close:o,openDelay:t,closeDelay:s}){const a=x.useRef(-1),i=x.useRef(-1),e=()=>{window.clearTimeout(a.current),window.clearTimeout(i.current)},c=()=>{e(),t===0||t===void 0?n():a.current=window.setTimeout(n,t)},l=()=>{e(),s===0||s===void 0?o():i.current=window.setTimeout(o,s)};return x.useEffect(()=>e,[]),{openDropdown:c,closeDropdown:l}}var he={root:"m_849cf0da"};const Ye={underline:"hover"},U=H((n,o)=>{const{underline:t,className:s,unstyled:a,mod:i,...e}=M("Anchor",Ye,n);return r.jsx(Ae,{component:"a",ref:o,className:Te({[he.root]:!a},s),...e,mod:[{underline:t},i],__staticSelector:"Anchor",unstyled:a})});U.classes=he;U.displayName="@mantine/core/Anchor";const[Ze,k]=Ne("Menu component was not found in the tree");var I={dropdown:"m_dc9b7c9f",label:"m_9bfac126",divider:"m_efdf90cb",item:"m_99ac2aa1",itemLabel:"m_5476e0d3",itemSection:"m_8b75e504",chevron:"m_b85b0bed"};const G=B((n,o)=>{const{classNames:t,className:s,style:a,styles:i,vars:e,...c}=M("MenuDivider",null,n),l=k();return r.jsx(se,{ref:o,...l.getStyles("divider",{className:s,style:a,styles:i,classNames:t}),...c})});G.classes=I;G.displayName="@mantine/core/MenuDivider";const W=B((n,o)=>{const{classNames:t,className:s,style:a,styles:i,vars:e,onMouseEnter:c,onMouseLeave:l,onKeyDown:u,children:m,...y}=M("MenuDropdown",null,n),h=x.useRef(null),f=k(),w=S(u,b=>{(b.key==="ArrowUp"||b.key==="ArrowDown")&&(b.preventDefault(),h.current?.querySelectorAll("[data-menu-item]:not(:disabled)")[0]?.focus())}),d=S(c,()=>(f.trigger==="hover"||f.trigger==="click-hover")&&f.openDropdown()),v=S(l,()=>(f.trigger==="hover"||f.trigger==="click-hover")&&f.closeDropdown());return r.jsxs(F.Dropdown,{...y,onMouseEnter:d,onMouseLeave:v,role:"menu","aria-orientation":"vertical",ref:K(o,h),...f.getStyles("dropdown",{className:s,style:a,styles:i,classNames:t,withStaticClass:!1}),tabIndex:-1,"data-menu-dropdown":!0,onKeyDown:w,children:[f.withInitialFocusPlaceholder&&r.jsx("div",{tabIndex:-1,"data-autofocus":!0,"data-mantine-stop-propagation":!0,style:{outline:0}}),m]})});W.classes=I;W.displayName="@mantine/core/MenuDropdown";const[et,V]=Ee(),J=H((n,o)=>{const{classNames:t,className:s,style:a,styles:i,vars:e,color:c,closeMenuOnClick:l,leftSection:u,rightSection:m,children:y,disabled:h,"data-disabled":f,...w}=M("MenuItem",null,n),d=k(),v=V(),b=q(),{dir:C}=re(),p=x.useRef(null),D=w,P=S(D.onClick,()=>{f||(typeof l=="boolean"?l&&d.closeDropdownImmediately():d.closeOnItemClick&&d.closeDropdownImmediately())}),j=c?b.variantColorResolver({color:c,theme:b,variant:"light"}):void 0,A=c?ie({color:c,theme:b}):null,_=S(D.onKeyDown,T=>{T.key==="ArrowLeft"&&v&&(v.close(),v.focusParentItem())});return r.jsxs(ae,{onMouseDown:T=>T.preventDefault(),...w,unstyled:d.unstyled,tabIndex:d.menuItemTabIndex,...d.getStyles("item",{className:s,style:a,styles:i,classNames:t}),ref:K(p,o),role:"menuitem",disabled:h,"data-menu-item":!0,"data-disabled":h||f||void 0,"data-mantine-stop-propagation":!0,onClick:P,onKeyDown:le({siblingSelector:"[data-menu-item]:not([data-disabled])",parentSelector:"[data-menu-dropdown]",activateOnFocus:!1,loop:d.loop,dir:C,orientation:"vertical",onKeyDown:_}),__vars:{"--menu-item-color":A?.isThemeColor&&A?.shade===void 0?`var(--mantine-color-${A.color}-6)`:j?.color,"--menu-item-hover":j?.hover},children:[u&&r.jsx("div",{...d.getStyles("itemSection",{styles:i,classNames:t}),"data-position":"left",children:u}),y&&r.jsx("div",{...d.getStyles("itemLabel",{styles:i,classNames:t}),children:y}),m&&r.jsx("div",{...d.getStyles("itemSection",{styles:i,classNames:t}),"data-position":"right",children:m})]})});J.classes=I;J.displayName="@mantine/core/MenuItem";const Q=B((n,o)=>{const{classNames:t,className:s,style:a,styles:i,vars:e,...c}=M("MenuLabel",null,n),l=k();return r.jsx(se,{ref:o,...l.getStyles("label",{className:s,style:a,styles:i,classNames:t}),...c})});Q.classes=I;Q.displayName="@mantine/core/MenuLabel";const X=B((n,o)=>{const{classNames:t,className:s,style:a,styles:i,vars:e,onMouseEnter:c,onMouseLeave:l,onKeyDown:u,children:m,...y}=M("MenuSubDropdown",null,n),h=x.useRef(null),f=k(),w=V(),d=S(c,w?.open),v=S(l,w?.close);return r.jsx(F.Dropdown,{...y,onMouseEnter:d,onMouseLeave:v,role:"menu","aria-orientation":"vertical",ref:K(o,h),...f.getStyles("dropdown",{className:s,style:a,styles:i,classNames:t,withStaticClass:!1}),tabIndex:-1,"data-menu-dropdown":!0,children:m})});X.classes=I;X.displayName="@mantine/core/MenuSubDropdown";const Y=H((n,o)=>{const{classNames:t,className:s,style:a,styles:i,vars:e,color:c,leftSection:l,rightSection:u,children:m,disabled:y,"data-disabled":h,closeMenuOnClick:f,...w}=M("MenuSubItem",null,n),d=k(),v=V(),b=q(),{dir:C}=re(),p=x.useRef(null),D=w,P=c?b.variantColorResolver({color:c,theme:b,variant:"light"}):void 0,j=c?ie({color:c,theme:b}):null,A=S(D.onKeyDown,E=>{E.key==="ArrowRight"&&(v?.open(),v?.focusFirstItem()),E.key==="ArrowLeft"&&v?.parentContext&&(v.parentContext.close(),v.parentContext.focusParentItem())}),_=S(D.onClick,()=>{!h&&f&&d.closeDropdownImmediately()}),T=S(D.onMouseEnter,v?.open),N=S(D.onMouseLeave,v?.close);return r.jsxs(ae,{onMouseDown:E=>E.preventDefault(),...w,unstyled:d.unstyled,tabIndex:d.menuItemTabIndex,...d.getStyles("item",{className:s,style:a,styles:i,classNames:t}),ref:K(p,o),role:"menuitem",disabled:y,"data-menu-item":!0,"data-sub-menu-item":!0,"data-disabled":y||h||void 0,"data-mantine-stop-propagation":!0,onMouseEnter:T,onMouseLeave:N,onClick:_,onKeyDown:le({siblingSelector:"[data-menu-item]:not([data-disabled])",parentSelector:"[data-menu-dropdown]",activateOnFocus:!1,loop:d.loop,dir:C,orientation:"vertical",onKeyDown:A}),__vars:{"--menu-item-color":j?.isThemeColor&&j?.shade===void 0?`var(--mantine-color-${j.color}-6)`:P?.color,"--menu-item-hover":P?.hover},children:[l&&r.jsx("div",{...d.getStyles("itemSection",{styles:i,classNames:t}),"data-position":"left",children:l}),m&&r.jsx("div",{...d.getStyles("itemLabel",{styles:i,classNames:t}),children:m}),r.jsx("div",{...d.getStyles("itemSection",{styles:i,classNames:t}),"data-position":"right",children:u||r.jsx(Ge,{...d.getStyles("chevron"),size:14})})]})});Y.classes=I;Y.displayName="@mantine/core/MenuSubItem";function fe({children:n,refProp:o}){if(!Le(n))throw new Error("Menu.Sub.Target component children should be an element or a component that accepts ref. Fragments, strings, numbers and other primitive values are not supported");return k(),r.jsx(F.Target,{refProp:o,popupType:"menu",children:n})}fe.displayName="@mantine/core/MenuSubTarget";const tt={offset:0,position:"right-start",transitionProps:{duration:0},openDelay:0,middlewares:{shift:{crossAxis:!0}}};function R(n){const{children:o,closeDelay:t,openDelay:s,...a}=M("MenuSub",tt,n),i=Fe(),[e,{open:c,close:l}]=Xe(!1),u=V(),{openDropdown:m,closeDropdown:y}=me({open:c,close:l,closeDelay:t,openDelay:s}),h=()=>window.setTimeout(()=>{document.getElementById(`${i}-dropdown`)?.querySelectorAll("[data-menu-item]:not([data-disabled])")[0]?.focus()},16),f=()=>window.setTimeout(()=>{document.getElementById(`${i}-target`)?.focus()},16);return r.jsx(et,{value:{opened:e,close:y,open:m,focusFirstItem:h,focusParentItem:f,parentContext:u},children:r.jsx(F,{opened:e,withinPortal:!1,withArrow:!1,id:i,...a,children:o})})}R.extend=n=>n;R.displayName="@mantine/core/MenuSub";R.Target=fe;R.Dropdown=X;R.Item=Y;const nt={refProp:"ref"},pe=x.forwardRef((n,o)=>{const{children:t,refProp:s,...a}=M("MenuTarget",nt,n),i=Re(t);if(!i)throw new Error("Menu.Target component children should be an element or a component that accepts ref. Fragments, strings, numbers and other primitive values are not supported");const e=k(),c=i.props,l=S(c.onClick,()=>{e.trigger==="click"?e.toggleDropdown():e.trigger==="click-hover"&&(e.setOpenedViaClick(!0),e.opened||e.openDropdown())}),u=S(c.onMouseEnter,()=>(e.trigger==="hover"||e.trigger==="click-hover")&&e.openDropdown()),m=S(c.onMouseLeave,()=>{(e.trigger==="hover"||e.trigger==="click-hover"&&!e.openedViaClick)&&e.closeDropdown()});return r.jsx(F.Target,{refProp:s,popupType:"menu",ref:o,...a,children:x.cloneElement(i,{onClick:l,onMouseEnter:u,onMouseLeave:m,"data-expanded":e.opened?!0:void 0})})});pe.displayName="@mantine/core/MenuTarget";const ot={trapFocus:!0,closeOnItemClick:!0,withInitialFocusPlaceholder:!0,clickOutsideEvents:["mousedown","touchstart","keydown"],loop:!0,trigger:"click",openDelay:0,closeDelay:100,menuItemTabIndex:-1};function g(n){const o=M("Menu",ot,n),{children:t,onOpen:s,onClose:a,opened:i,defaultOpened:e,trapFocus:c,onChange:l,closeOnItemClick:u,loop:m,closeOnEscape:y,trigger:h,openDelay:f,closeDelay:w,classNames:d,styles:v,unstyled:b,variant:C,vars:p,menuItemTabIndex:D,keepMounted:P,withInitialFocusPlaceholder:j,attributes:A,..._}=o,T=_e({name:"Menu",classes:I,props:o,classNames:d,styles:v,unstyled:b,attributes:A}),[N,E]=Oe({value:i,defaultValue:e,finalValue:!1,onChange:l}),[ge,Z]=x.useState(!1),O=()=>{E(!1),Z(!1),N&&a?.()},$=()=>{E(!0),!N&&s?.()},ee=()=>{N?O():$()},{openDropdown:xe,closeDropdown:ye}=me({open:$,close:O,closeDelay:w,openDelay:f}),we=Ce=>Qe("[data-menu-item]","[data-menu-dropdown]",Ce),{resolvedClassNames:be,resolvedStyles:Se}=Be({classNames:d,styles:v,props:o});return r.jsx(Ze,{value:{getStyles:T,opened:N,toggleDropdown:ee,getItemIndex:we,openedViaClick:ge,setOpenedViaClick:Z,closeOnItemClick:u,closeDropdown:h==="click"?O:ye,openDropdown:h==="click"?$:xe,closeDropdownImmediately:O,loop:m,trigger:h,unstyled:b,menuItemTabIndex:D,withInitialFocusPlaceholder:j},children:r.jsx(F,{returnFocus:!0,..._,opened:N,onChange:ee,defaultOpened:e,trapFocus:P?!1:c,closeOnEscape:y,__staticSelector:"Menu",classNames:be,styles:Se,unstyled:b,variant:C,keepMounted:P,children:t})})}g.extend=n=>n;g.withProps=Ke(g);g.classes=I;g.displayName="@mantine/core/Menu";g.Item=J;g.Label=Q;g.Dropdown=W;g.Target=pe;g.Divider=G;g.Sub=R;const ve=n=>{const{item:o,index:t}=n,s=z(),a=de({handler:async e=>{await o.onClick?.()}},[o.onClick]);if(o.type==="divider")return r.jsx(g.Divider,{},t);if(o.type==="label")return r.jsx(g.Label,{children:o.label},t);if(o.children&&o.children.length>0)return r.jsxs(g,{trigger:"hover",position:"right-start",offset:2,children:[r.jsx(g.Target,{children:r.jsx(g.Item,{leftSection:o.icon,rightSection:r.jsx(He,{size:14}),children:o.label})}),r.jsx(g.Dropdown,{children:o.children.map((e,c)=>r.jsx(ve,{item:e,index:c},c))})]},t);const i={};return n.item.onClick?i.onClick=a.run:n.item.href&&Object.assign(i,s.anchor(n.item.href)),r.jsx(g.Item,{leftSection:o.icon,onClick:o.onClick,color:o.color,rightSection:o.active?r.jsx(ce,{size:"xs",variant:"transparent",children:r.jsx(qe,{})}):void 0,...i,children:o.label},t)},oe=n=>{const o=q(),t={...n},{tooltip:s,menu:a,icon:i,...e}=t;if(t.variant==="subtle"&&(e.c??="var(--mantine-color-text)",e.color??="gray"),t.intent&&(t.intent==="none"?(e.c??="var(--mantine-color-text)",e.color??="gray"):t.intent==="primary"?(e.c??="white",e.color??=o.primaryColor):t.intent==="success"?(e.c??="white",e.color??="green"):t.intent==="danger"?(e.c??="white",e.color??="red"):t.intent==="warning"?(e.c??="var(--mantine-color-text)",e.color??="yellow"):t.intent==="info"&&(e.c??="white",e.color??="blue")),t.icon){const u=Ve(t.icon)?r.jsx(t.icon,{size:$e.sizes.icon.md}):r.jsx(ce,{w:24,variant:"transparent",size:"sm",c:"var(--mantine-color-text)",...t.themeIconProps,children:t.icon});t.children?e.leftSection=u:(e.children=x.Children.only(u),e.px??="xs")}if(t.leftSection&&!t.children&&(e.px??="xs"),t.textVisibleFrom){const{children:u,textVisibleFrom:m,leftSection:y,...h}=e;return r.jsxs(r.Fragment,{children:[r.jsx(ne,{w:"100%",visibleFrom:m,children:r.jsx(oe,{flex:1,...h,leftSection:y,tooltip:s,menu:a,children:u})}),r.jsx(ne,{w:"100%",hiddenFrom:m,children:r.jsx(oe,{px:"xs",...h,tooltip:s,menu:a,children:y})})]})}let l="href"in e&&e.href?e.href.startsWith("http")||e.target?r.jsx(lt,{...e,href:e.href,children:e.children}):r.jsx(ct,{...e,href:e.href,children:e.children}):(delete e.classNameActive,delete e.variantActive,"action"in e&&e.action?r.jsx(it,{...e,action:e.action,children:e.children}):"onClick"in e&&e.onClick?r.jsx(at,{...e,onClick:e.onClick,children:e.children}):"form"in e&&e.form?e.type==="reset"?r.jsx(rt,{...e,form:e.form,children:e.children}):r.jsx(st,{...e,form:e.form,children:e.children}):r.jsx(L,{...e,children:e.children}));if(a&&(l=r.jsxs(g,{position:a.position||"bottom-start",width:a.width||200,shadow:a.shadow||"md",trigger:a.on==="hover"?"hover":"click",...a.menuProps,children:[r.jsx(g.Target,{...a.targetProps,children:l}),r.jsx(g.Dropdown,{children:a.items.map((u,m)=>r.jsx(ve,{item:u,index:m},m))})]})),s){const u={openDelay:1e3},m=typeof s=="string"||typeof s=="number"?{...u,label:s,children:l}:{...u,...s,children:l};return r.jsx(ze,{...m})}return l},st=n=>{const{form:o,...t}=n,s=ue(o);return r.jsx(L,{...t,loading:s.loading,disabled:s.loading,type:"submit",children:n.children})},rt=n=>{const{form:o,...t}=n,s=ue(o);return r.jsx(L,{...t,disabled:s.loading,type:"reset",children:n.children})},it=n=>{const{action:o,...t}=n;return r.jsx(L,{...t,disabled:o.loading||n.disabled,loading:o.loading,onClick:()=>o.run(),children:n.children})},at=n=>{const o=de({handler:async t=>{await n.onClick(t)}},[n.onClick]);return r.jsx(L,{...n,disabled:o.loading||n.disabled,loading:o.loading,onClick:o.run,children:n.children})},ct=n=>{const{active:o,classNameActive:t,variantActive:s,routerGoOptions:a,...i}=n,e=z(),{isPending:c,isActive:l}=We(o?{href:n.href,...o}:{href:n.href}),u=e.anchor(n.href,a),m=i.className||"";return l&&o!==!1&&t&&(i.className=`${m} ${t}`.trim()),n.anchorProps?r.jsx(U,{component:"a",...u,...n.anchorProps,children:n.children}):r.jsx(L,{component:"a",loading:c,...i,...u,variant:l&&o!==!1?s??"filled":i.variant??"subtle",children:n.children})},lt=n=>{const{active:o,classNameActive:t,variantActive:s,routerGoOptions:a,target:i,...e}=n;return r.jsx(L,{component:"a",target:i,...e,children:n.children})};export{oe as A,vt as a,Xe as b,S as c,ue as d,Je as g,pt as u};
|
|
Binary file
|
|
Binary file
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{f as b,b as x,o as f,j as g,B as j,t as N,w as R}from"./entry.Cgjh-xX-.js";var a={root:"m_b183c0a2"};const h=N((e,{color:s})=>({root:{"--code-bg":s?R(s,e):void 0}})),r=b((e,s)=>{const o=x("Code",null,e),{classNames:c,className:l,style:n,styles:m,unstyled:d,vars:p,color:B,block:t,variant:i,mod:u,attributes:v,...y}=o,C=f({name:"Code",props:o,classes:a,className:l,style:n,classNames:c,styles:m,unstyled:d,attributes:v,vars:p,varsResolver:h});return g.jsx(j,{component:t?"pre":"code",variant:i,ref:s,mod:[{block:t},u],...C("root"),...y,dir:"ltr"})});r.classes=a;r.displayName="@mantine/core/Code";export{r as C};
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{x as z,a3 as C,a4 as k,r as h,j as e,F as x,T as r,B as a,J as p,af as L,A as V,ad as v,V as w,a9 as E,ae as B,ab as I,ac as M}from"./entry.Cgjh-xX-.js";import{d as $}from"./chunk.BIGcMrv-.js";import{S as y,B as b}from"./chunk.wg5XuK3_.js";import{C as T}from"./chunk.PcVF_qXP.js";import{T as t}from"./chunk.CFLl96SC.js";import{I as A}from"./chunk.CMTEfKUa.js";const N=[["path",{d:"M10.325 4.317c.426 -1.756 2.924 -1.756 3.35 0a1.724 1.724 0 0 0 2.573 1.066c1.543 -.94 3.31 .826 2.37 2.37a1.724 1.724 0 0 0 1.065 2.572c1.756 .426 1.756 2.924 0 3.35a1.724 1.724 0 0 0 -1.066 2.573c.94 1.543 -.826 3.31 -2.37 2.37a1.724 1.724 0 0 0 -2.572 1.065c-.426 1.756 -2.924 1.756 -3.35 0a1.724 1.724 0 0 0 -2.573 -1.066c-1.543 .94 -3.31 -.826 -2.37 -2.37a1.724 1.724 0 0 0 -1.065 -2.572c-1.756 -.426 -1.756 -2.924 0 -3.35a1.724 1.724 0 0 0 1.066 -2.573c-.94 -1.543 .826 -3.31 2.37 -2.37c1 .608 2.296 .07 2.572 -1.065",key:"svg-0"}],["path",{d:"M9 12a3 3 0 1 0 6 0a3 3 0 0 0 -6 0",key:"svg-1"}]],O=z("outline","settings","Settings",N),H=s=>{const n=new Map;for(const l of s){const i=l.schema;if(i?.properties)for(const[o,c]of Object.entries(i.properties)){if(n.has(o))continue;const d=c,u=l.values[o];let g=d.type??"unknown",m=d.format;if(d.anyOf){const j=d.anyOf.find(f=>f.type!=="null");j&&(g=j.type??"unknown",m=j.format)}n.set(o,{name:o,value:u,type:g,description:d.description,format:m})}}return Array.from(n.values()).sort((l,i)=>l.name.localeCompare(i.name))},F=({variables:s,selectedVar:n,onSelectVar:l,search:i,onSearchChange:o})=>e.jsxs(y,{gap:0,h:"100%",children:[e.jsx(a,{p:"sm",style:{borderBottom:`1px solid ${p.colors.border}`},children:e.jsx(L,{placeholder:"Search variables...",leftSection:e.jsx(V,{size:14}),size:"xs",value:i,onChange:c=>o(c.target.value)})}),e.jsx(v,{style:{flex:1},children:e.jsxs(a,{children:[e.jsxs(r,{size:"xs",fw:600,c:"dimmed",px:"sm",py:"xs",style:{backgroundColor:p.colors.background,borderBottom:`1px solid ${p.colors.border}`,textTransform:"uppercase",letterSpacing:"0.05em"},children:["Variables (",s.length,")"]}),s.map(c=>{const d=n?.name===c.name;return e.jsxs(x,{align:"center",gap:"xs",px:"sm",py:6,onClick:()=>l(c),style:{cursor:"pointer",backgroundColor:d?"#228be615":void 0,borderLeft:d?"2px solid #228be6":"2px solid transparent",borderBottom:`1px solid ${p.colors.border}`},children:[e.jsx(w,{size:14,opacity:.5}),e.jsx(r,{size:"sm",style:{flex:1},truncate:!0,ff:"monospace",children:c.name})]},c.name)})]})})]}),R=({variable:s})=>{const n=s.value!==void 0&&s.value!=="",l=n?String(s.value):"(not set)",i=s.name.toLowerCase().includes("secret")||s.name.toLowerCase().includes("password")||s.name.toLowerCase().includes("key")||s.name.toLowerCase().includes("token");return e.jsxs(x,{direction:"column",h:"100%",children:[e.jsx(a,{px:"md",py:"sm",style:{borderBottom:`1px solid ${p.colors.border}`,backgroundColor:"#228be608"},children:e.jsxs(x,{align:"center",gap:"sm",children:[e.jsx(w,{size:18,opacity:.7}),e.jsx(r,{size:"md",fw:600,ff:"monospace",children:s.name}),e.jsx(b,{size:"xs",variant:"outline",color:"blue",children:s.format||s.type})]})}),e.jsx(v,{style:{flex:1},p:"md",children:e.jsxs(y,{gap:"lg",children:[s.description&&e.jsxs(a,{children:[e.jsx(r,{size:"sm",fw:600,mb:"xs",children:"Description"}),e.jsx(r,{size:"sm",c:"dimmed",children:s.description})]}),e.jsxs(a,{children:[e.jsx(r,{size:"sm",fw:600,mb:"xs",children:"Current Value"}),e.jsxs(x,{align:"center",gap:"sm",children:[e.jsx(T,{block:!0,style:{flex:1,filter:i&&n?"blur(4px)":void 0,transition:"filter 0.2s"},onMouseEnter:o=>{i&&(o.currentTarget.style.filter="none")},onMouseLeave:o=>{i&&n&&(o.currentTarget.style.filter="blur(4px)")},children:l}),n&&e.jsx(E,{value:String(s.value),children:({copied:o,copy:c})=>e.jsx(B,{label:o?"Copied!":"Copy value",children:e.jsx(a,{onClick:c,style:{cursor:"pointer"},c:o?"teal":"dimmed",children:o?e.jsx(I,{size:16}):e.jsx(M,{size:16})})})})]}),i&&e.jsx(r,{size:"xs",c:"dimmed",mt:"xs",children:"Hover to reveal sensitive value"})]}),e.jsxs(a,{children:[e.jsx(r,{size:"sm",fw:600,mb:"xs",children:"Schema"}),e.jsx(t,{striped:!0,highlightOnHover:!0,withTableBorder:!0,children:e.jsxs(t.Tbody,{children:[e.jsxs(t.Tr,{children:[e.jsx(t.Td,{w:120,children:e.jsx(r,{size:"sm",c:"dimmed",children:"Type"})}),e.jsx(t.Td,{children:e.jsx(r,{size:"sm",ff:"monospace",children:s.type})})]}),s.format&&e.jsxs(t.Tr,{children:[e.jsx(t.Td,{children:e.jsx(r,{size:"sm",c:"dimmed",children:"Format"})}),e.jsx(t.Td,{children:e.jsx(r,{size:"sm",ff:"monospace",children:s.format})})]})]})})]}),e.jsxs(a,{children:[e.jsx(r,{size:"sm",fw:600,mb:"xs",children:"Usage"}),e.jsx(T,{block:!0,children:`# Set in .env file or environment
|
|
2
|
-
${s.name}=${n?s.value:"<value>"}`})]})]})})]})},D=()=>e.jsx(x,{align:"center",justify:"center",h:"100%",c:"dimmed",children:e.jsxs(y,{align:"center",gap:"xs",children:[e.jsx(O,{size:48,opacity:.3}),e.jsx(r,{children:"No environment variables found"}),e.jsx(r,{size:"sm",c:"dimmed",children:"Use $env primitive to define expected environment variables"})]})}),U=({variables:s})=>e.jsx(v,{h:"100%",p:"md",children:e.jsx(y,{gap:"lg",children:e.jsxs(a,{children:[e.jsxs(x,{align:"center",gap:"xs",mb:"sm",children:[e.jsx(A,{size:18,opacity:.7}),e.jsx(r,{size:"md",fw:600,children:"All Environment Variables"}),e.jsxs(b,{size:"sm",variant:"light",children:[s.length," variables"]})]}),e.jsxs(t,{striped:!0,highlightOnHover:!0,withTableBorder:!0,children:[e.jsx(t.Thead,{children:e.jsxs(t.Tr,{children:[e.jsx(t.Th,{children:"Name"}),e.jsx(t.Th,{children:"Type"}),e.jsx(t.Th,{children:"Value"})]})}),e.jsx(t.Tbody,{children:s.map(n=>{const l=n.value!==void 0&&n.value!=="",i=n.name.toLowerCase().includes("secret")||n.name.toLowerCase().includes("password")||n.name.toLowerCase().includes("key")||n.name.toLowerCase().includes("token");return e.jsxs(t.Tr,{children:[e.jsx(t.Td,{children:e.jsx(r,{size:"sm",ff:"monospace",fw:500,children:n.name})}),e.jsx(t.Td,{children:e.jsx(b,{size:"xs",variant:"outline",color:"blue",children:n.format||n.type})}),e.jsx(t.Td,{children:l?e.jsxs(r,{size:"sm",ff:"monospace",c:"dimmed",style:{filter:i?"blur(4px)":void 0},children:[String(n.value).slice(0,30),String(n.value).length>30?"...":""]}):e.jsx(r,{size:"sm",c:"dimmed",fs:"italic",children:"(not set)"})})]},n.name)})})]})]})})}),Q=()=>{const s=C(k),[n,l]=h.useState([]),[i,o]=h.useState(!0),[c,d]=h.useState(null),[u,g]=h.useState("");h.useEffect(()=>{s.fetch("/devtools/api/metadata",{schema:{response:$}}).then(f=>{l(f.data.envs),o(!1)})},[]);const m=h.useMemo(()=>H(n),[n]),j=h.useMemo(()=>{if(!u)return m;const f=u.toLowerCase();return m.filter(S=>S.name.toLowerCase().includes(f))},[m,u]);return i?e.jsx(x,{align:"center",justify:"center",h:"100%",children:e.jsx(r,{c:"dimmed",children:"Loading..."})}):m.length===0?e.jsx(D,{}):e.jsxs(x,{h:"100%",style:{overflow:"hidden"},children:[e.jsx(a,{w:280,style:{borderRight:`1px solid ${p.colors.border}`,backgroundColor:p.colors.surface},children:e.jsx(F,{variables:j,selectedVar:c,onSelectVar:d,search:u,onSearchChange:g})}),e.jsx(a,{style:{flex:1,overflow:"hidden"},children:c?e.jsx(R,{variable:c}):e.jsx(U,{variables:m})})]})};export{Q as DevEnvExplorer,Q as default};
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{c as W,f as B,b as N,j as e,U as xe,B as w,_ as fe,q as ve,$ as Q,o as je,t as ge,a0 as ye,e as be,a1 as Ce,r as f,a2 as Se,x as Ie,T as b,a3 as X,a4 as Y,a5 as A,a6 as ze,a7 as Z,a8 as Ae,a9 as ee,aa as se,ab as te,ac as oe,ad as ne,ae as we,H as Pe,J as V,F as J,L as Te,af as Ne,A as _e}from"./entry.Cgjh-xX-.js";import{d as Re}from"./chunk.BIGcMrv-.js";import{B as k,S as O}from"./chunk.wg5XuK3_.js";import{C as U}from"./chunk.PcVF_qXP.js";import{T as Ee}from"./chunk.s1U1MhH3.js";import{I as Oe}from"./chunk.BiIrl-Hq.js";import{g as G,T as z}from"./chunk._D_TfCmJ.js";import{A as re}from"./chunk.CgxElNrD.js";import{c as Be}from"./chunk.BlqFPyLh.js";import{I as ke}from"./chunk.DGI4-Nej.js";import{S as Le}from"./chunk.DeN6s4_I.js";import"./chunk.uyVen0u2.js";const[Je,M]=W("Accordion component was not found in the tree");var _={root:"m_9bdbb667",panel:"m_df78851f",content:"m_4ba554d4",itemTitle:"m_8fa820a0",control:"m_4ba585b8","control--default":"m_6939a5e9","control--contained":"m_4271d21b",label:"m_df3ffa0f",chevron:"m_3f35ae96",icon:"m_9bd771fe",item:"m_9bd7b098","item--default":"m_fe19b709","item--contained":"m_1f921b3b","item--filled":"m_2cdf939a","item--separated":"m_9f59b069"};const[Ue,ae]=W("Accordion.Item component was not found in the tree"),$=B((s,o)=>{const{classNames:t,className:d,style:x,styles:l,vars:g,chevron:c,icon:m,onClick:u,onKeyDown:r,children:n,disabled:i,mod:h,...p}=N("AccordionControl",null,s),{value:y}=ae(),a=M(),C=a.isItemActive(y),R=typeof a.order=="number",T=`h${a.order}`,v=e.jsxs(xe,{...p,...a.getStyles("control",{className:d,classNames:t,style:x,styles:l,variant:a.variant}),unstyled:a.unstyled,mod:["accordion-control",{active:C,"chevron-position":a.chevronPosition,disabled:i},h],ref:o,onClick:P=>{u?.(P),a.onChange(y)},type:"button",disabled:i,"aria-expanded":C,"aria-controls":a.getRegionId(y),id:a.getControlId(y),onKeyDown:Be({siblingSelector:"[data-accordion-control]",parentSelector:"[data-accordion]",activateOnFocus:!1,loop:a.loop,orientation:"vertical",onKeyDown:r}),children:[e.jsx(w,{component:"span",mod:{rotate:!a.disableChevronRotation&&C,position:a.chevronPosition},...a.getStyles("chevron",{classNames:t,styles:l}),children:c||a.chevron}),e.jsx("span",{...a.getStyles("label",{classNames:t,styles:l}),children:n}),m&&e.jsx(w,{component:"span",mod:{"chevron-position":a.chevronPosition},...a.getStyles("icon",{classNames:t,styles:l}),children:m})]});return R?e.jsx(T,{...a.getStyles("itemTitle",{classNames:t,styles:l}),children:v}):v});$.displayName="@mantine/core/AccordionControl";$.classes=_;const D=B((s,o)=>{const{classNames:t,className:d,style:x,styles:l,vars:g,value:c,mod:m,...u}=N("AccordionItem",null,s),r=M();return e.jsx(Ue,{value:{value:c},children:e.jsx(w,{ref:o,mod:[{active:r.isItemActive(c)},m],...r.getStyles("item",{className:d,classNames:t,styles:l,style:x,variant:r.variant}),...u})})});D.displayName="@mantine/core/AccordionItem";D.classes=_;const F=B((s,o)=>{const{classNames:t,className:d,style:x,styles:l,vars:g,children:c,...m}=N("AccordionPanel",null,s),{value:u}=ae(),r=M();return e.jsx(fe,{ref:o,...r.getStyles("panel",{className:d,classNames:t,style:x,styles:l}),...m,in:r.isItemActive(u),transitionDuration:r.transitionDuration??200,role:"region",id:r.getRegionId(u),"aria-labelledby":r.getControlId(u),children:e.jsx("div",{...r.getStyles("content",{classNames:t,styles:l}),children:c})})});F.displayName="@mantine/core/AccordionPanel";F.classes=_;const Me={multiple:!1,disableChevronRotation:!1,chevronPosition:"right",variant:"default",chevronSize:"auto",chevronIconSize:16},$e=ge((s,{transitionDuration:o,chevronSize:t,radius:d})=>({root:{"--accordion-transition-duration":o===void 0?void 0:`${o}ms`,"--accordion-chevron-size":t===void 0?void 0:be(t),"--accordion-radius":d===void 0?void 0:ye(d)}}));function j(s){const o=N("Accordion",Me,s),{classNames:t,className:d,style:x,styles:l,unstyled:g,vars:c,children:m,multiple:u,value:r,defaultValue:n,onChange:i,id:h,loop:p,transitionDuration:y,disableChevronRotation:a,chevronPosition:C,chevronSize:R,order:T,chevron:v,variant:P,radius:Ye,chevronIconSize:le,attributes:ie,...ce}=o,L=ve(h),[S,de]=Q({value:r,defaultValue:n,finalValue:u?[]:null,onChange:i}),ue=I=>Array.isArray(S)?S.includes(I):I===S,me=I=>{const he=Array.isArray(S)?S.includes(I)?S.filter(pe=>pe!==I):[...S,I]:I===S?null:I;de(he)},q=je({name:"Accordion",classes:_,props:o,className:d,style:x,classNames:t,styles:l,unstyled:g,attributes:ie,vars:c,varsResolver:$e});return e.jsx(Je,{value:{isItemActive:ue,onChange:me,getControlId:G(`${L}-control`,"Accordion.Item component was rendered with invalid value or without value"),getRegionId:G(`${L}-panel`,"Accordion.Item component was rendered with invalid value or without value"),chevron:v===null?null:v||e.jsx(re,{size:le}),transitionDuration:y,disableChevronRotation:a,chevronPosition:C,order:T,loop:p,getStyles:q,variant:P,unstyled:g},children:e.jsx(w,{...q("root"),id:L,...ce,variant:P,"data-accordion":!0,children:m})})}const De=s=>s;j.extend=De;j.withProps=Ce(j);j.classes=_;j.displayName="@mantine/core/Accordion";j.Item=D;j.Panel=F;j.Control=$;j.Chevron=re;function K(s,o){if(typeof s=="string"&&s.trim().length===0)return!0;try{return o(s),!0}catch{return!1}}const Fe={serialize:JSON.stringify,deserialize:JSON.parse,size:"sm"},H=B((s,o)=>{const{value:t,defaultValue:d,onChange:x,formatOnBlur:l,validationError:g,serialize:c,deserialize:m,onFocus:u,onBlur:r,readOnly:n,error:i,...h}=N("JsonInput",Fe,s),[p,y]=Q({value:t,defaultValue:d,finalValue:"",onChange:x}),[a,C]=f.useState(K(p,m)),R=v=>{u?.(v),C(!0)},T=v=>{typeof r=="function"&&r(v);const P=K(v.currentTarget.value,m);l&&!n&&P&&v.currentTarget.value.trim()!==""&&y(c(m(v.currentTarget.value),null,2)),C(P)};return e.jsx(Ee,{value:p,onChange:v=>y(v.currentTarget.value),onFocus:R,onBlur:T,ref:o,readOnly:n,...h,autoComplete:"off",__staticSelector:"JsonInput",error:a?i:g||!0,"data-monospace":!0})});H.classes=Se.classes;H.displayName="@mantine/core/JsonInput";const He=[["path",{d:"M5 7l5 5l-5 5",key:"svg-0"}],["path",{d:"M12 19l7 0",key:"svg-1"}]],qe=Ie("outline","terminal","Terminal",He),Ve=(s,o)=>{const t=[`curl -X ${s.method.toUpperCase()}`];return t.push(` '${window.location.origin}${s.fullPath}'`),s.body,t.join(` \\
|
|
2
|
-
`)},Ge={GET:"teal",POST:"blue",PUT:"orange",PATCH:"yellow",DELETE:"red"},Ke=({method:s})=>e.jsx(k,{variant:"light",color:Ge[s.toUpperCase()]||"gray",size:"sm",radius:"sm",w:60,children:s.toUpperCase()}),E=({schema:s,label:o})=>s?e.jsxs(w,{children:[e.jsx(b,{size:"xs",fw:500,c:"dimmed",mb:4,children:o}),e.jsx(U,{block:!0,style:{fontSize:11,maxHeight:200,overflow:"auto"},children:JSON.stringify(s,null,2)})]}):null,We=({action:s})=>{const o=X(Y),[t,d]=f.useState("{}"),[x,l]=f.useState(null),[g,c]=f.useState(!1),[m,u]=f.useState(null),[r,n]=f.useState(null),i=f.useCallback(async()=>{c(!0),n(null),l(null);const h=performance.now();try{let p;if(s.body&&t)try{p=JSON.parse(t)}catch{n("Invalid JSON body"),c(!1);return}const y=await o.fetch(s.fullPath,{method:s.method.toUpperCase(),body:p?JSON.stringify(p):void 0,headers:p?{"Content-Type":"application/json"}:void 0});u(Math.round(performance.now()-h)),l(JSON.stringify(y.data,null,2))}catch(p){u(Math.round(performance.now()-h)),n(p instanceof Error?p.message:"Request failed")}finally{c(!1)}},[o,s,t]);return e.jsxs(O,{gap:"md",children:[s.body&&e.jsx(H,{label:"Request Body",placeholder:'{"key": "value"}',value:t,onChange:d,minRows:4,maxRows:10,autosize:!0,formatOnBlur:!0,validationError:"Invalid JSON"}),e.jsxs(A,{children:[e.jsx(ze,{leftSection:g?e.jsx(Z,{size:14}):e.jsx(Oe,{size:14}),onClick:i,disabled:g,size:"sm",children:"Execute"}),m!==null&&e.jsxs(b,{size:"xs",c:"dimmed",children:[m,"ms"]})]}),r&&e.jsx(Ae,{p:"sm",bg:"var(--mantine-color-red-light)",children:e.jsx(b,{size:"sm",c:"red",children:r})}),x&&e.jsxs(w,{children:[e.jsxs(A,{justify:"space-between",mb:4,children:[e.jsx(b,{size:"xs",fw:500,c:"dimmed",children:"Response"}),e.jsx(ee,{value:x,children:({copied:h,copy:p})=>e.jsx(se,{size:"xs",variant:"subtle",onClick:p,children:h?e.jsx(te,{size:12}):e.jsx(oe,{size:12})})})]}),e.jsx(ne,{h:200,children:e.jsx(U,{block:!0,style:{fontSize:11},children:x})})]})]})},Qe=({action:s})=>{const o=f.useMemo(()=>Ve(s),[s]);return e.jsxs(j.Item,{value:s.fullPath,opacity:s.disabled?.5:1,children:[e.jsx(j.Control,{children:e.jsxs(A,{gap:"sm",wrap:"nowrap",children:[e.jsx(Ke,{method:s.method}),e.jsx(b,{size:"sm",ff:"monospace",style:{wordBreak:"break-all"},children:s.fullPath}),s.secure&&e.jsx(we,{label:"Requires authentication",children:e.jsx(ke,{size:14,opacity:.5})}),s.disabled&&e.jsx(k,{size:"xs",variant:"light",color:"gray",children:"disabled"})]})}),e.jsx(j.Panel,{children:e.jsxs(O,{gap:"md",children:[(s.description||s.summary)&&e.jsx(b,{size:"sm",c:"dimmed",children:s.description||s.summary}),e.jsxs(z,{defaultValue:"schema",variant:"outline",children:[e.jsxs(z.List,{children:[e.jsx(z.Tab,{value:"schema",size:"xs",children:"Schema"}),e.jsx(z.Tab,{value:"try",size:"xs",children:"Try It"}),e.jsx(z.Tab,{value:"curl",size:"xs",leftSection:e.jsx(qe,{size:12}),children:"cURL"})]}),e.jsx(z.Panel,{value:"schema",pt:"md",children:e.jsxs(O,{gap:"md",children:[e.jsxs(A,{gap:"xl",align:"flex-start",children:[e.jsx(E,{schema:s.params,label:"Path Parameters"}),e.jsx(E,{schema:s.query,label:"Query Parameters"})]}),e.jsx(E,{schema:s.body,label:"Request Body"}),e.jsx(E,{schema:s.response,label:"Response"}),!s.params&&!s.query&&!s.body&&!s.response&&e.jsx(b,{size:"sm",c:"dimmed",children:"No schema defined"})]})}),e.jsx(z.Panel,{value:"try",pt:"md",children:e.jsx(We,{action:s})}),e.jsx(z.Panel,{value:"curl",pt:"md",children:e.jsxs(w,{pos:"relative",children:[e.jsx(ee,{value:o,children:({copied:t,copy:d})=>e.jsx(se,{size:"sm",variant:"subtle",onClick:d,pos:"absolute",top:8,right:8,children:t?e.jsx(te,{size:14}):e.jsx(oe,{size:14})})}),e.jsx(U,{block:!0,style:{fontSize:11},children:o})]})})]})]})})]})},Xe=({group:s,actions:o})=>e.jsxs(w,{children:[e.jsxs(A,{gap:"xs",mb:"xs",children:[e.jsx(Pe,{size:14,opacity:.5}),e.jsx(b,{size:"xs",fw:600,tt:"uppercase",c:"dimmed",children:s}),e.jsx(k,{variant:"light",color:"gray",size:"xs",children:o.length})]}),e.jsx(j,{variant:"separated",styles:{item:{backgroundColor:V.colors.surface,border:`1px solid ${V.colors.border}`}},children:o.map(t=>e.jsx(Qe,{action:t},t.fullPath))})]}),us=()=>{const s=X(Y),[o,t]=f.useState([]),[d,x]=f.useState(!0),[l,g]=f.useState(""),[c,m]=f.useState("all");f.useEffect(()=>{s.fetch("/devtools/api/metadata",{schema:{response:Re}}).then(n=>{t(n.data.actions),x(!1)})},[]);const u=f.useMemo(()=>o.filter(n=>{if(n.hide||c!=="all"&&n.method.toUpperCase()!==c)return!1;if(l){const i=l.toLowerCase();return n.fullPath.toLowerCase().includes(i)||n.name.toLowerCase().includes(i)||n.group.toLowerCase().includes(i)||n.description?.toLowerCase().includes(i)}return!0}),[o,l,c]),r=f.useMemo(()=>{const n={};for(const i of u){const h=i.group||"Other";n[h]||(n[h]=[]),n[h].push(i)}return Object.entries(n).sort(([i],[h])=>i.localeCompare(h))},[u]);return d?e.jsx(J,{align:"center",justify:"center",h:"100%",children:e.jsx(Z,{size:"sm"})}):e.jsxs(J,{direction:"column",gap:"md",w:"100%",h:"100%",p:"xl",children:[e.jsx(A,{justify:"space-between",wrap:"nowrap",children:e.jsxs(A,{gap:"sm",children:[e.jsx(Te,{size:24,opacity:.7}),e.jsx(b,{size:"lg",fw:500,children:"Actions"}),e.jsx(k,{variant:"light",color:"gray",size:"sm",children:u.length})]})}),e.jsxs(A,{gap:"sm",children:[e.jsx(Ne,{placeholder:"Search actions...",leftSection:e.jsx(_e,{size:14}),value:l,onChange:n=>g(n.currentTarget.value),style:{flex:1},size:"sm"}),e.jsx(Le,{size:"xs",value:c,onChange:m,data:[{label:"All",value:"all"},{label:"GET",value:"GET"},{label:"POST",value:"POST"},{label:"PUT",value:"PUT"},{label:"DELETE",value:"DELETE"}]})]}),e.jsx(ne,{flex:1,offsetScrollbars:!0,children:r.length===0?e.jsx(J,{align:"center",justify:"center",h:200,children:e.jsx(b,{c:"dimmed",children:"No actions found"})}):e.jsx(O,{gap:"md",children:r.map(([n,i])=>e.jsx(Xe,{group:n,actions:i},n))})})]})};export{us as DevActionsExplorer,us as default};
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{p as z,b as v,o as y,j as g,B as f,t as h,w as E,a0 as F,v as u,f as T,g as V}from"./entry.Cgjh-xX-.js";var x={root:"m_347db0ec","root--dot":"m_fbd81e3d",label:"m_5add502a",section:"m_91fdda9b"};const W=h((a,{radius:e,color:s,gradient:o,variant:t,size:r,autoContrast:l,circle:c})=>{const d=a.variantColorResolver({color:s||a.primaryColor,theme:a,gradient:o,variant:t||"filled",autoContrast:l});return{root:{"--badge-height":u(r,"badge-height"),"--badge-padding-x":u(r,"badge-padding-x"),"--badge-fz":u(r,"badge-fz"),"--badge-radius":c||e===void 0?void 0:F(e),"--badge-bg":s||t?d.background:void 0,"--badge-color":s||t?d.color:void 0,"--badge-bd":s||t?d.border:void 0,"--badge-dot-color":t==="dot"?E(s,a):void 0}}}),S=z((a,e)=>{const s=v("Badge",null,a),{classNames:o,className:t,style:r,styles:l,unstyled:c,vars:d,radius:B,color:R,gradient:N,leftSection:i,rightSection:n,children:m,variant:p,fullWidth:_,autoContrast:D,circle:C,mod:w,attributes:P,...$}=s,b=y({name:"Badge",props:s,classes:x,className:t,style:r,classNames:o,styles:l,unstyled:c,attributes:P,vars:d,varsResolver:W});return g.jsxs(f,{variant:p,mod:[{block:_,circle:C,"with-right-section":!!n,"with-left-section":!!i},w],...b("root",{variant:p}),ref:e,...$,children:[i&&g.jsx("span",{...b("section"),"data-position":"left",children:i}),g.jsx("span",{...b("label"),children:m}),n&&g.jsx("span",{...b("section"),"data-position":"right",children:n})]})});S.classes=x;S.displayName="@mantine/core/Badge";var j={root:"m_6d731127"};const q={gap:"md",align:"stretch",justify:"flex-start"},A=h((a,{gap:e,align:s,justify:o})=>({root:{"--stack-gap":V(e),"--stack-align":s,"--stack-justify":o}})),k=T((a,e)=>{const s=v("Stack",q,a),{classNames:o,className:t,style:r,styles:l,unstyled:c,vars:d,align:B,justify:R,gap:N,variant:i,attributes:n,...m}=s,p=y({name:"Stack",props:s,classes:j,className:t,style:r,classNames:o,styles:l,unstyled:c,attributes:n,vars:d,varsResolver:A});return g.jsx(f,{ref:e,...p("root"),variant:i,...m})});k.classes=j;k.displayName="@mantine/core/Stack";export{S as B,k as S};
|
|
Binary file
|
|
Binary file
|