@alepha/devtools 0.15.0 → 0.15.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (237) hide show
  1. package/README.md +14 -4
  2. package/assets/devtools/actions.html +6 -22
  3. package/assets/devtools/actions.html.br +0 -0
  4. package/assets/devtools/actions.html.gz +0 -0
  5. package/assets/devtools/{asset.CMFNRMve.css → asset.CUUwTesj.css} +1 -1
  6. package/assets/devtools/asset.CUUwTesj.css.br +0 -0
  7. package/assets/devtools/{asset.CMFNRMve.css.gz → asset.CUUwTesj.css.gz} +0 -0
  8. package/assets/devtools/atoms.html +6 -22
  9. package/assets/devtools/atoms.html.br +0 -0
  10. package/assets/devtools/atoms.html.gz +0 -0
  11. package/assets/devtools/caches.html +6 -22
  12. package/assets/devtools/caches.html.br +0 -0
  13. package/assets/devtools/caches.html.gz +0 -0
  14. package/assets/devtools/{chunk.BZZjyIAY.js → chunk.8L5-bmT2.js} +2 -2
  15. package/assets/devtools/chunk.8L5-bmT2.js.br +0 -0
  16. package/assets/devtools/chunk.8L5-bmT2.js.gz +0 -0
  17. package/assets/devtools/chunk.9_-GTbfg.js +1 -0
  18. package/assets/devtools/chunk.9_-GTbfg.js.br +0 -0
  19. package/assets/devtools/chunk.9_-GTbfg.js.gz +0 -0
  20. package/assets/devtools/chunk.B06miRTQ.js +1 -0
  21. package/assets/devtools/chunk.B06miRTQ.js.br +0 -0
  22. package/assets/devtools/chunk.B06miRTQ.js.gz +0 -0
  23. package/assets/devtools/{chunk.CQFdZ3hg.js → chunk.B4XxoeIU.js} +1 -1
  24. package/assets/devtools/chunk.B4XxoeIU.js.br +0 -0
  25. package/assets/devtools/chunk.B4XxoeIU.js.gz +0 -0
  26. package/assets/devtools/chunk.BDGiK8wy.js +1 -0
  27. package/assets/devtools/chunk.BDGiK8wy.js.br +0 -0
  28. package/assets/devtools/chunk.BDGiK8wy.js.gz +0 -0
  29. package/assets/devtools/{chunk.Vm7uQYEE.js → chunk.BK94oaB2.js} +1 -1
  30. package/assets/devtools/chunk.BK94oaB2.js.br +0 -0
  31. package/assets/devtools/chunk.BK94oaB2.js.gz +0 -0
  32. package/assets/devtools/{chunk.CXR8SXil.js → chunk.BLgG-Amn.js} +1 -1
  33. package/assets/devtools/chunk.BLgG-Amn.js.br +0 -0
  34. package/assets/devtools/chunk.BLgG-Amn.js.gz +0 -0
  35. package/assets/devtools/{chunk.B1BX4OlP.js → chunk.BOYwUUqI.js} +1 -1
  36. package/assets/devtools/chunk.BOYwUUqI.js.br +0 -0
  37. package/assets/devtools/chunk.BOYwUUqI.js.gz +0 -0
  38. package/assets/devtools/{chunk.C_WwXcGr.js → chunk.BPCHIpy2.js} +1 -1
  39. package/assets/devtools/chunk.BPCHIpy2.js.br +0 -0
  40. package/assets/devtools/chunk.BPCHIpy2.js.gz +0 -0
  41. package/assets/devtools/{chunk.42CgRmmy.js → chunk.BRKelMlC.js} +1 -1
  42. package/assets/devtools/chunk.BRKelMlC.js.br +0 -0
  43. package/assets/devtools/chunk.BRKelMlC.js.gz +0 -0
  44. package/assets/devtools/chunk.BrsQ66Fo.js +1 -0
  45. package/assets/devtools/chunk.BrsQ66Fo.js.br +0 -0
  46. package/assets/devtools/chunk.BrsQ66Fo.js.gz +0 -0
  47. package/assets/devtools/{chunk.UjSU-RcH.js → chunk.Bz4bTzr0.js} +1 -1
  48. package/assets/devtools/chunk.Bz4bTzr0.js.br +0 -0
  49. package/assets/devtools/chunk.Bz4bTzr0.js.gz +0 -0
  50. package/assets/devtools/{chunk.6zj3eUIy.js → chunk.CKppnGPU.js} +1 -1
  51. package/assets/devtools/chunk.CKppnGPU.js.br +0 -0
  52. package/assets/devtools/chunk.CKppnGPU.js.gz +0 -0
  53. package/assets/devtools/chunk.CfzSCjsJ.js +1 -0
  54. package/assets/devtools/chunk.CfzSCjsJ.js.br +0 -0
  55. package/assets/devtools/chunk.CfzSCjsJ.js.gz +0 -0
  56. package/assets/devtools/{chunk.MMyHzoxt.js → chunk.CiLYCLJH.js} +1 -1
  57. package/assets/devtools/chunk.CiLYCLJH.js.br +0 -0
  58. package/assets/devtools/chunk.CiLYCLJH.js.gz +0 -0
  59. package/assets/devtools/chunk.CnHYu38l.js +2 -0
  60. package/assets/devtools/chunk.CnHYu38l.js.br +0 -0
  61. package/assets/devtools/chunk.CnHYu38l.js.gz +0 -0
  62. package/assets/devtools/{chunk.jP0GrcaU.js → chunk.D1-ODKSf.js} +1 -1
  63. package/assets/devtools/chunk.D1-ODKSf.js.br +0 -0
  64. package/assets/devtools/chunk.D1-ODKSf.js.gz +0 -0
  65. package/assets/devtools/chunk.D4SUrYI2.js +1 -0
  66. package/assets/devtools/chunk.D4SUrYI2.js.br +0 -0
  67. package/assets/devtools/chunk.D4SUrYI2.js.gz +0 -0
  68. package/assets/devtools/chunk.DAeCHJ5Z.js +1 -0
  69. package/assets/devtools/chunk.DAeCHJ5Z.js.br +0 -0
  70. package/assets/devtools/chunk.DAeCHJ5Z.js.gz +0 -0
  71. package/assets/devtools/{chunk.B6bX0XQI.js → chunk.DN2ng7Ec.js} +1 -1
  72. package/assets/devtools/chunk.DN2ng7Ec.js.br +3 -0
  73. package/assets/devtools/chunk.DN2ng7Ec.js.gz +0 -0
  74. package/assets/devtools/chunk.DXhVYZJu.js +1 -0
  75. package/assets/devtools/chunk.DXhVYZJu.js.br +0 -0
  76. package/assets/devtools/chunk.DXhVYZJu.js.gz +0 -0
  77. package/assets/devtools/{chunk.D_B99PWK.js → chunk.DgZ24mun.js} +3 -3
  78. package/assets/devtools/chunk.DgZ24mun.js.br +0 -0
  79. package/assets/devtools/chunk.DgZ24mun.js.gz +0 -0
  80. package/assets/devtools/{chunk.-1T4AUjH.js → chunk.DkirMznI.js} +1 -1
  81. package/assets/devtools/chunk.DkirMznI.js.br +0 -0
  82. package/assets/devtools/chunk.DkirMznI.js.gz +0 -0
  83. package/assets/devtools/chunk.Dnb5TqA8.js +1 -0
  84. package/assets/devtools/chunk.Dnb5TqA8.js.br +0 -0
  85. package/assets/devtools/chunk.Dnb5TqA8.js.gz +0 -0
  86. package/assets/devtools/chunk.DqdWWOSs.js +1 -0
  87. package/assets/devtools/chunk.DqdWWOSs.js.br +0 -0
  88. package/assets/devtools/chunk.DqdWWOSs.js.gz +0 -0
  89. package/assets/devtools/{chunk.WpBi-27p.js → chunk.DrLudrGo.js} +1 -1
  90. package/assets/devtools/chunk.DrLudrGo.js.br +0 -0
  91. package/assets/devtools/chunk.DrLudrGo.js.gz +0 -0
  92. package/assets/devtools/{chunk.D8mKET3e.js → chunk.K-Ms8Mzm.js} +1 -1
  93. package/assets/devtools/chunk.K-Ms8Mzm.js.br +1 -0
  94. package/assets/devtools/chunk.K-Ms8Mzm.js.gz +0 -0
  95. package/assets/devtools/chunk.KgyhVGwW.js +9 -0
  96. package/assets/devtools/chunk.KgyhVGwW.js.br +0 -0
  97. package/assets/devtools/chunk.KgyhVGwW.js.gz +0 -0
  98. package/assets/devtools/{chunk.01h1zGjv.js → chunk.U6B6OT4m.js} +1 -1
  99. package/assets/devtools/chunk.U6B6OT4m.js.br +0 -0
  100. package/assets/devtools/chunk.U6B6OT4m.js.gz +0 -0
  101. package/assets/devtools/chunk.V91GMRqU.js +1 -0
  102. package/assets/devtools/chunk.V91GMRqU.js.br +0 -0
  103. package/assets/devtools/chunk.V91GMRqU.js.gz +0 -0
  104. package/assets/devtools/{chunk.X37zJjnv.js → chunk.YsQsplrn.js} +1 -1
  105. package/assets/devtools/chunk.YsQsplrn.js.br +0 -0
  106. package/assets/devtools/chunk.YsQsplrn.js.gz +0 -0
  107. package/assets/devtools/{chunk.BD3_boSH.js → chunk.ax3VFVgz.js} +1 -1
  108. package/assets/devtools/chunk.ax3VFVgz.js.br +0 -0
  109. package/assets/devtools/chunk.ax3VFVgz.js.gz +0 -0
  110. package/assets/devtools/chunk.qLydHlIe.js +1 -0
  111. package/assets/devtools/chunk.qLydHlIe.js.br +0 -0
  112. package/assets/devtools/chunk.qLydHlIe.js.gz +0 -0
  113. package/assets/devtools/db.html +6 -19
  114. package/assets/devtools/db.html.br +0 -0
  115. package/assets/devtools/db.html.gz +0 -0
  116. package/assets/devtools/entry.DqiMGelS.js +79 -0
  117. package/assets/devtools/entry.DqiMGelS.js.br +0 -0
  118. package/assets/devtools/entry.DqiMGelS.js.gz +0 -0
  119. package/assets/devtools/env.html +6 -20
  120. package/assets/devtools/env.html.br +0 -0
  121. package/assets/devtools/env.html.gz +0 -0
  122. package/assets/devtools/graph.html +6 -22
  123. package/assets/devtools/graph.html.br +0 -0
  124. package/assets/devtools/graph.html.gz +0 -0
  125. package/assets/devtools/index.html +6 -16
  126. package/assets/devtools/index.html.br +0 -0
  127. package/assets/devtools/index.html.gz +0 -0
  128. package/assets/devtools/logs.html +6 -23
  129. package/assets/devtools/logs.html.br +0 -0
  130. package/assets/devtools/logs.html.gz +0 -0
  131. package/assets/devtools/queues.html +6 -15
  132. package/assets/devtools/queues.html.br +0 -0
  133. package/assets/devtools/queues.html.gz +0 -0
  134. package/assets/devtools/topics.html +6 -23
  135. package/assets/devtools/topics.html.br +0 -0
  136. package/assets/devtools/topics.html.gz +0 -0
  137. package/dist/index.d.ts +33 -23
  138. package/dist/index.js +22 -13
  139. package/dist/index.js.map +1 -1
  140. package/package.json +10 -11
  141. package/src/api/providers/DevToolsDatabaseProvider.ts +2 -2
  142. package/src/api/repositories/LogRepository.ts +4 -5
  143. package/src/index.ts +19 -5
  144. package/src/ui/AppRouter.tsx +1 -1
  145. package/src/ui/components/DevAtomsViewer.tsx +1 -1
  146. package/src/ui/components/DevCacheInspector.tsx +1 -1
  147. package/src/ui/components/DevEnvExplorer.tsx +1 -1
  148. package/src/ui/components/DevLogViewer.tsx +2 -2
  149. package/src/ui/components/DevTopicsViewer.tsx +1 -1
  150. package/src/ui/components/actions/DevActionsExplorer.tsx +1 -1
  151. package/src/ui/components/actions/TryItPanel.tsx +1 -1
  152. package/src/ui/components/db/DevDbStudio.tsx +1 -1
  153. package/src/ui/components/graph/DevDependencyGraph.tsx +1 -1
  154. package/assets/devtools/asset.CMFNRMve.css.br +0 -0
  155. package/assets/devtools/chunk.-1T4AUjH.js.br +0 -0
  156. package/assets/devtools/chunk.-1T4AUjH.js.gz +0 -0
  157. package/assets/devtools/chunk.01h1zGjv.js.br +0 -0
  158. package/assets/devtools/chunk.01h1zGjv.js.gz +0 -0
  159. package/assets/devtools/chunk.1JiUrdgo.js +0 -1
  160. package/assets/devtools/chunk.1JiUrdgo.js.br +0 -1
  161. package/assets/devtools/chunk.1JiUrdgo.js.gz +0 -0
  162. package/assets/devtools/chunk.42CgRmmy.js.br +0 -0
  163. package/assets/devtools/chunk.42CgRmmy.js.gz +0 -0
  164. package/assets/devtools/chunk.6zj3eUIy.js.br +0 -0
  165. package/assets/devtools/chunk.6zj3eUIy.js.gz +0 -0
  166. package/assets/devtools/chunk.B1BX4OlP.js.br +0 -0
  167. package/assets/devtools/chunk.B1BX4OlP.js.gz +0 -0
  168. package/assets/devtools/chunk.B6bX0XQI.js.br +0 -0
  169. package/assets/devtools/chunk.B6bX0XQI.js.gz +0 -0
  170. package/assets/devtools/chunk.BD3_boSH.js.br +0 -0
  171. package/assets/devtools/chunk.BD3_boSH.js.gz +0 -0
  172. package/assets/devtools/chunk.BZZjyIAY.js.br +0 -0
  173. package/assets/devtools/chunk.BZZjyIAY.js.gz +0 -0
  174. package/assets/devtools/chunk.B_arS3yh.js +0 -1
  175. package/assets/devtools/chunk.B_arS3yh.js.br +0 -0
  176. package/assets/devtools/chunk.B_arS3yh.js.gz +0 -0
  177. package/assets/devtools/chunk.CC4zyxCR.js +0 -1
  178. package/assets/devtools/chunk.CC4zyxCR.js.br +0 -0
  179. package/assets/devtools/chunk.CC4zyxCR.js.gz +0 -0
  180. package/assets/devtools/chunk.CQFdZ3hg.js.br +0 -0
  181. package/assets/devtools/chunk.CQFdZ3hg.js.gz +0 -0
  182. package/assets/devtools/chunk.CXR8SXil.js.br +0 -0
  183. package/assets/devtools/chunk.CXR8SXil.js.gz +0 -0
  184. package/assets/devtools/chunk.C_WwXcGr.js.br +0 -0
  185. package/assets/devtools/chunk.C_WwXcGr.js.gz +0 -0
  186. package/assets/devtools/chunk.Chph6jJx.js +0 -1
  187. package/assets/devtools/chunk.Chph6jJx.js.br +0 -0
  188. package/assets/devtools/chunk.Chph6jJx.js.gz +0 -0
  189. package/assets/devtools/chunk.D8mKET3e.js.br +0 -0
  190. package/assets/devtools/chunk.D8mKET3e.js.gz +0 -0
  191. package/assets/devtools/chunk.DP_hRYka.js +0 -1
  192. package/assets/devtools/chunk.DP_hRYka.js.br +0 -0
  193. package/assets/devtools/chunk.DP_hRYka.js.gz +0 -0
  194. package/assets/devtools/chunk.D_B99PWK.js.br +0 -0
  195. package/assets/devtools/chunk.D_B99PWK.js.gz +0 -0
  196. package/assets/devtools/chunk.Dwq9t2Dl.js +0 -1
  197. package/assets/devtools/chunk.Dwq9t2Dl.js.br +0 -0
  198. package/assets/devtools/chunk.Dwq9t2Dl.js.gz +0 -0
  199. package/assets/devtools/chunk.DyNVihb8.js +0 -9
  200. package/assets/devtools/chunk.DyNVihb8.js.br +0 -0
  201. package/assets/devtools/chunk.DyNVihb8.js.gz +0 -0
  202. package/assets/devtools/chunk.KNtbB1xL.js +0 -1
  203. package/assets/devtools/chunk.KNtbB1xL.js.br +0 -0
  204. package/assets/devtools/chunk.KNtbB1xL.js.gz +0 -0
  205. package/assets/devtools/chunk.MMyHzoxt.js.br +0 -0
  206. package/assets/devtools/chunk.MMyHzoxt.js.gz +0 -0
  207. package/assets/devtools/chunk.NIj8k4HU.js +0 -1
  208. package/assets/devtools/chunk.NIj8k4HU.js.br +0 -0
  209. package/assets/devtools/chunk.NIj8k4HU.js.gz +0 -0
  210. package/assets/devtools/chunk.UjSU-RcH.js.br +0 -0
  211. package/assets/devtools/chunk.UjSU-RcH.js.gz +0 -0
  212. package/assets/devtools/chunk.Vm7uQYEE.js.br +0 -0
  213. package/assets/devtools/chunk.Vm7uQYEE.js.gz +0 -0
  214. package/assets/devtools/chunk.WpBi-27p.js.br +0 -0
  215. package/assets/devtools/chunk.WpBi-27p.js.gz +0 -0
  216. package/assets/devtools/chunk.X37zJjnv.js.br +0 -0
  217. package/assets/devtools/chunk.X37zJjnv.js.gz +0 -0
  218. package/assets/devtools/chunk.Yc53VNO7.js +0 -1
  219. package/assets/devtools/chunk.Yc53VNO7.js.br +0 -0
  220. package/assets/devtools/chunk.Yc53VNO7.js.gz +0 -0
  221. package/assets/devtools/chunk.jP0GrcaU.js.br +0 -0
  222. package/assets/devtools/chunk.jP0GrcaU.js.gz +0 -0
  223. package/assets/devtools/chunk.ovzUqJjU.js +0 -1
  224. package/assets/devtools/chunk.ovzUqJjU.js.br +0 -0
  225. package/assets/devtools/chunk.ovzUqJjU.js.gz +0 -0
  226. package/assets/devtools/chunk.uK7gG_4K.js +0 -1
  227. package/assets/devtools/chunk.uK7gG_4K.js.br +0 -0
  228. package/assets/devtools/chunk.uK7gG_4K.js.gz +0 -0
  229. package/assets/devtools/chunk.xP6lcP0O.js +0 -2
  230. package/assets/devtools/chunk.xP6lcP0O.js.br +0 -0
  231. package/assets/devtools/chunk.xP6lcP0O.js.gz +0 -0
  232. package/assets/devtools/chunk.yhAz0qwe.js +0 -1
  233. package/assets/devtools/chunk.yhAz0qwe.js.br +0 -0
  234. package/assets/devtools/chunk.yhAz0qwe.js.gz +0 -0
  235. package/assets/devtools/entry.BdraBs_7.js +0 -79
  236. package/assets/devtools/entry.BdraBs_7.js.br +0 -0
  237. package/assets/devtools/entry.BdraBs_7.js.gz +0 -0
@@ -0,0 +1 @@
1
+ import{u as Xe,r as f,a as Ae,M as qe,b as Ke,c as Qe,f as N,d as w,j as r,B as k,e as M,R as ee,g as m,k as P,h as Ue,i as je,l as Ye,m as Ge,I as Ze,p as Je,n as Me,o as te,q as et,s as tt,t as se,U as st,v as Pe,w as nt,x as E,y as ne,z as oe,F as p,A as we,C as ke,T as re,D as ot,E as ae,G as $,H as Re,J as rt,K as at,L as D,N as it,O as lt,P as ct,Q as dt,S as ut,V as ht,W as pt,X as ft,Y as mt,Z as bt,_ as gt}from"./entry.DqiMGelS.js";import{g as Be,a as Ce,A as R,u as vt}from"./chunk.Dnb5TqA8.js";import{n as xt}from"./chunk.BjFrJKj1.js";import{S as jt}from"./chunk.D4SUrYI2.js";import{D as wt}from"./chunk.CfzSCjsJ.js";import"./chunk.BK94oaB2.js";import"./chunk.BlqFPyLh.js";import"./chunk.DN2ng7Ec.js";import"./chunk.uyVen0u2.js";import"./chunk.B4XxoeIU.js";function Te(e,t){return Xe("(prefers-color-scheme: dark)",e==="dark",t)?"dark":"light"}function Ie(e){return/(Macintosh)|(MacIntel)|(MacPPC)|(Mac68K)/i.test(e)}function kt(e){return/(iPhone)|(iPad)|(iPod)/i.test(e)}function Ct(e){return/(Win32)|(Win64)|(Windows)|(WinCE)/i.test(e)}function It(e){return/Android/i.test(e)}function Nt(e){return/Linux/i.test(e)}function zt(e){return/CrOS/i.test(e)}function Ne(){if(typeof window>"u")return"undetermined";const{userAgent:e}=window.navigator;return kt(e)||Ie(e)&&"ontouchend"in document?"ios":Ie(e)?"macos":Ct(e)?"windows":It(e)?"android":Nt(e)?"linux":zt(e)?"chromeos":"undetermined"}function St(e={getValueInEffect:!0}){const[t,n]=f.useState(e.getValueInEffect?"undetermined":Ne());return Ae(()=>{e.getValueInEffect&&n(Ne)},[]),t}function ze(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(o=>o.remove())}function Ee({keepTransitions:e}={}){const t=f.useRef(xt),n=f.useRef(-1),o=f.useContext(qe),c=Ke(),l=f.useRef(c?.());if(!o)throw new Error("[@mantine/core] MantineProvider was not found in tree");const a=b=>{o.setColorScheme(b),t.current=e?()=>{}:ze(l.current),window.clearTimeout(n.current),n.current=window.setTimeout(()=>{t.current?.()},10)},i=()=>{o.clearColorScheme(),t.current=e?()=>{}:ze(l.current),window.clearTimeout(n.current),n.current=window.setTimeout(()=>{t.current?.()},10)},u=Te("light",{getInitialValueInEffect:!1}),s=o.colorScheme==="auto"?u:o.colorScheme,d=f.useCallback(()=>a(s==="light"?"dark":"light"),[a,s]);return f.useEffect(()=>()=>{t.current?.(),window.clearTimeout(n.current)},[]),{colorScheme:o.colorScheme,setColorScheme:a,clearColorScheme:i,toggleColorScheme:d}}function At(e,t={getInitialValueInEffect:!0}){const n=Te(e,t),{colorScheme:o}=Ee();return o==="auto"?n:o}const[Pt,_]=Qe("AppShell was not found in tree");var z={root:"m_89ab340",navbar:"m_45252eee",aside:"m_9cdde9a",header:"m_3b16f56b",main:"m_8983817",footer:"m_3840c879",section:"m_6dcfc7c7"};const ie=N((e,t)=>{const{classNames:n,className:o,style:c,styles:l,unstyled:a,vars:i,withBorder:u,zIndex:s,mod:d,...b}=w("AppShellAside",null,e),h=_();return h.disabled?null:r.jsx(k,{component:"aside",ref:t,mod:[{"with-border":u??h.withBorder},d],...h.getStyles("aside",{className:M({[ee.classNames.zeroRight]:h.offsetScrollbars},o),classNames:n,styles:l,style:c}),...b,__vars:{"--app-shell-aside-z-index":`calc(${s??h.zIndex} + 1)`}})});ie.classes=z;ie.displayName="@mantine/core/AppShellAside";const le=N((e,t)=>{const{classNames:n,className:o,style:c,styles:l,unstyled:a,vars:i,withBorder:u,zIndex:s,mod:d,...b}=w("AppShellFooter",null,e),h=_();return h.disabled?null:r.jsx(k,{component:"footer",ref:t,mod:[{"with-border":u??h.withBorder},d],...h.getStyles("footer",{className:M({[ee.classNames.zeroRight]:h.offsetScrollbars},o),classNames:n,styles:l,style:c}),...b,__vars:{"--app-shell-footer-z-index":(s??h.zIndex)?.toString()}})});le.classes=z;le.displayName="@mantine/core/AppShellFooter";const ce=N((e,t)=>{const{classNames:n,className:o,style:c,styles:l,unstyled:a,vars:i,withBorder:u,zIndex:s,mod:d,...b}=w("AppShellHeader",null,e),h=_();return h.disabled?null:r.jsx(k,{component:"header",ref:t,mod:[{"with-border":u??h.withBorder},d],...h.getStyles("header",{className:M({[ee.classNames.zeroRight]:h.offsetScrollbars},o),classNames:n,styles:l,style:c}),...b,__vars:{"--app-shell-header-z-index":(s??h.zIndex)?.toString()}})});ce.classes=z;ce.displayName="@mantine/core/AppShellHeader";const de=N((e,t)=>{const{classNames:n,className:o,style:c,styles:l,vars:a,...i}=w("AppShellMain",null,e),u=_();return r.jsx(k,{component:"main",ref:t,...u.getStyles("main",{className:o,style:c,classNames:n,styles:l}),...i})});de.classes=z;de.displayName="@mantine/core/AppShellMain";function W(e){return typeof e=="object"?e.base:e}function y(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 L(e){return!(typeof e!="object"||e===null||Object.keys(e).length===1&&"base"in e)}function Rt({baseStyles:e,minMediaStyles:t,maxMediaStyles:n,aside:o,theme:c,mode:l}){const a=o?.width,i="translateX(var(--app-shell-aside-width))",u="translateX(calc(var(--app-shell-aside-width) * -1))";if(o?.breakpoint&&!o?.collapsed?.mobile&&(n[o?.breakpoint]=n[o?.breakpoint]||{},l==="fixed"?(n[o?.breakpoint]["--app-shell-aside-width"]="100%",n[o?.breakpoint]["--app-shell-aside-offset"]="0px"):(n[o?.breakpoint]["--app-shell-aside-width"]="0px",n[o?.breakpoint]["--app-shell-aside-offset"]="0px")),y(a)){const s=m(W(a));e["--app-shell-aside-width"]=s,e["--app-shell-aside-offset"]=s}if(L(a)&&(typeof a.base<"u"&&(e["--app-shell-aside-width"]=m(a.base),e["--app-shell-aside-offset"]=m(a.base)),P(a).forEach(s=>{s!=="base"&&(t[s]=t[s]||{},t[s]["--app-shell-aside-width"]=m(a[s]),t[s]["--app-shell-aside-offset"]=m(a[s]))})),o?.breakpoint&&l==="static"&&(t[o.breakpoint]=t[o.breakpoint]||{},t[o.breakpoint]["--app-shell-aside-position"]="sticky",t[o.breakpoint]["--app-shell-aside-grid-row"]="2",t[o.breakpoint]["--app-shell-aside-grid-column"]="3",t[o.breakpoint]["--app-shell-main-column-end"]="3"),o?.collapsed?.desktop){const s=o.breakpoint;t[s]=t[s]||{},t[s]["--app-shell-aside-transform"]=i,t[s]["--app-shell-aside-transform-rtl"]=u,l==="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(o?.collapsed?.mobile){const s=Be(o.breakpoint,c.breakpoints)-.1;n[s]=n[s]||{},l==="fixed"?(n[s]["--app-shell-aside-width"]="100%",n[s]["--app-shell-aside-offset"]="0px"):n[s]["--app-shell-aside-width"]="0px",n[s]["--app-shell-aside-transform"]=i,n[s]["--app-shell-aside-transform-rtl"]=u,n[s]["--app-shell-aside-scroll-locked-visibility"]="hidden"}}function Bt({baseStyles:e,minMediaStyles:t,footer:n,mode:o}){const c=n?.height,l="translateY(var(--app-shell-footer-height))",a=o==="static"?!0:n?.offset??!0;if(o==="static"&&n&&(e["--app-shell-footer-position"]="sticky",e["--app-shell-footer-grid-column"]="1 / -1",e["--app-shell-footer-grid-row"]="3"),y(c)){const i=m(W(c));e["--app-shell-footer-height"]=i,a&&(e["--app-shell-footer-offset"]=i)}L(c)&&(typeof c.base<"u"&&(e["--app-shell-footer-height"]=m(c.base),a&&(e["--app-shell-footer-offset"]=m(c.base))),P(c).forEach(i=>{i!=="base"&&(t[i]=t[i]||{},t[i]["--app-shell-footer-height"]=m(c[i]),a&&(t[i]["--app-shell-footer-offset"]=m(c[i])))})),n?.collapsed&&(e["--app-shell-footer-transform"]=l,o==="fixed"&&(e["--app-shell-footer-offset"]="0px !important"))}function Tt({baseStyles:e,minMediaStyles:t,header:n,mode:o}){const c=n?.height,l="translateY(calc(var(--app-shell-header-height) * -1))",a=o==="static"?!0:n?.offset??!0;if(o==="static"&&n&&(e["--app-shell-header-position"]="sticky",e["--app-shell-header-grid-column"]="1 / -1",e["--app-shell-header-grid-row"]="1"),y(c)){const i=m(W(c));e["--app-shell-header-height"]=i,a&&(e["--app-shell-header-offset"]=i)}L(c)&&(typeof c.base<"u"&&(e["--app-shell-header-height"]=m(c.base),a&&(e["--app-shell-header-offset"]=m(c.base))),P(c).forEach(i=>{i!=="base"&&(t[i]=t[i]||{},t[i]["--app-shell-header-height"]=m(c[i]),a&&(t[i]["--app-shell-header-offset"]=m(c[i])))})),n?.collapsed&&(e["--app-shell-header-transform"]=l,o==="fixed"&&(e["--app-shell-header-offset"]="0px !important"))}function Et({baseStyles:e,minMediaStyles:t,maxMediaStyles:n,navbar:o,theme:c,mode:l}){const a=o?.width,i="translateX(calc(var(--app-shell-navbar-width) * -1))",u="translateX(var(--app-shell-navbar-width))";if(o?.breakpoint&&!o?.collapsed?.mobile&&(n[o?.breakpoint]=n[o?.breakpoint]||{},n[o?.breakpoint]["--app-shell-navbar-offset"]="0px",n[o?.breakpoint]["--app-shell-navbar-width"]="100%",l==="static"&&(n[o?.breakpoint]["--app-shell-navbar-grid-width"]="0px")),y(a)){const s=m(W(a));e["--app-shell-navbar-width"]=s,e["--app-shell-navbar-offset"]=s,l==="static"&&(e["--app-shell-navbar-grid-width"]=s)}if(L(a)&&(typeof a.base<"u"&&(e["--app-shell-navbar-width"]=m(a.base),e["--app-shell-navbar-offset"]=m(a.base),l==="static"&&(e["--app-shell-navbar-grid-width"]=m(a.base))),P(a).forEach(s=>{s!=="base"&&(t[s]=t[s]||{},t[s]["--app-shell-navbar-width"]=m(a[s]),t[s]["--app-shell-navbar-offset"]=m(a[s]),l==="static"&&(t[s]["--app-shell-navbar-grid-width"]=m(a[s])))})),o?.breakpoint&&l==="static"&&(t[o.breakpoint]=t[o.breakpoint]||{},t[o.breakpoint]["--app-shell-navbar-position"]="sticky",t[o.breakpoint]["--app-shell-navbar-grid-row"]="2",t[o.breakpoint]["--app-shell-navbar-grid-column"]="1",t[o.breakpoint]["--app-shell-main-column-start"]="2"),o?.collapsed?.desktop){const s=o.breakpoint;t[s]=t[s]||{},t[s]["--app-shell-navbar-transform"]=i,t[s]["--app-shell-navbar-transform-rtl"]=u,l==="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(o?.collapsed?.mobile){const s=Be(o.breakpoint,c.breakpoints)-.1;n[s]=n[s]||{},n[s]["--app-shell-navbar-width"]="100%",n[s]["--app-shell-navbar-offset"]="0px",l==="static"&&(n[s]["--app-shell-navbar-grid-width"]="0px"),n[s]["--app-shell-navbar-transform"]=i,n[s]["--app-shell-navbar-transform-rtl"]=u}}function Z(e){return Number(e)===0?"0px":Ue(e)}function _t({padding:e,baseStyles:t,minMediaStyles:n}){y(e)&&(t["--app-shell-padding"]=Z(W(e))),L(e)&&(e.base&&(t["--app-shell-padding"]=Z(e.base)),P(e).forEach(o=>{o!=="base"&&(n[o]=n[o]||{},n[o]["--app-shell-padding"]=Z(e[o]))}))}function Wt({navbar:e,header:t,footer:n,aside:o,padding:c,theme:l,mode:a}){const i={},u={},s={};a==="static"&&(s["--app-shell-main-grid-column"]="1 / -1",s["--app-shell-main-grid-row"]="2"),Et({baseStyles:s,minMediaStyles:i,maxMediaStyles:u,navbar:e,theme:l,mode:a}),Rt({baseStyles:s,minMediaStyles:i,maxMediaStyles:u,aside:o,theme:l,mode:a}),Tt({baseStyles:s,minMediaStyles:i,header:t,mode:a}),Bt({baseStyles:s,minMediaStyles:i,footer:n,mode:a}),_t({baseStyles:s,minMediaStyles:i,padding:c});const d=Ce(P(i),l.breakpoints).map(g=>({query:`(min-width: ${je(g.px)})`,styles:i[g.value]})),b=Ce(P(u),l.breakpoints).map(g=>({query:`(max-width: ${je(g.px)})`,styles:u[g.value]})),h=[...d,...b];return{baseStyles:s,media:h}}function yt({navbar:e,header:t,aside:n,footer:o,padding:c,mode:l,selector:a}){const i=Ye(),u=Ge(),{media:s,baseStyles:d}=Wt({navbar:e,header:t,footer:o,aside:n,padding:c,theme:i,mode:l});return r.jsx(Ze,{media:s,styles:d,selector:a||u.cssVariablesSelector})}const ue=N((e,t)=>{const{classNames:n,className:o,style:c,styles:l,unstyled:a,vars:i,withBorder:u,zIndex:s,mod:d,...b}=w("AppShellNavbar",null,e),h=_();return h.disabled?null:r.jsx(k,{component:"nav",ref:t,mod:[{"with-border":u??h.withBorder},d],...h.getStyles("navbar",{className:o,classNames:n,styles:l,style:c}),...b,__vars:{"--app-shell-navbar-z-index":`calc(${s??h.zIndex} + 1)`}})});ue.classes=z;ue.displayName="@mantine/core/AppShellNavbar";const he=Je((e,t)=>{const{classNames:n,className:o,style:c,styles:l,vars:a,grow:i,mod:u,...s}=w("AppShellSection",null,e),d=_();return r.jsx(k,{ref:t,mod:[{grow:i},u],...d.getStyles("section",{className:o,style:c,classNames:n,styles:l}),...s})});he.classes=z;he.displayName="@mantine/core/AppShellSection";function Lt({transitionDuration:e,disabled:t}){const[n,o]=f.useState(!0),c=f.useRef(-1),l=f.useRef(-1);return Me("resize",()=>{o(!0),clearTimeout(c.current),c.current=window.setTimeout(()=>f.startTransition(()=>{o(!1)}),200)}),Ae(()=>{o(!0),clearTimeout(l.current),l.current=window.setTimeout(()=>f.startTransition(()=>{o(!1)}),e||0)},[t,e]),n}const Vt={withBorder:!0,padding:0,transitionDuration:200,transitionTimingFunction:"ease",zIndex:tt("app"),mode:"fixed"},Ht=se((e,{transitionDuration:t,transitionTimingFunction:n})=>({root:{"--app-shell-transition-duration":`${t}ms`,"--app-shell-transition-timing-function":n}})),v=N((e,t)=>{const n=w("AppShell",Vt,e),{classNames:o,className:c,style:l,styles:a,unstyled:i,vars:u,navbar:s,withBorder:d,padding:b,transitionDuration:h,transitionTimingFunction:g,header:x,zIndex:B,layout:S,disabled:C,aside:O,footer:j,offsetScrollbars:X=!0,mode:T,mod:V,attributes:q,id:K,...Q}=n,A=te({name:"AppShell",classes:z,props:n,className:c,style:l,classNames:o,styles:a,unstyled:i,attributes:q,vars:u,varsResolver:Ht}),H=Lt({disabled:C,transitionDuration:h}),F=et(K);return r.jsxs(Pt,{value:{getStyles:A,withBorder:d,zIndex:B,disabled:C,offsetScrollbars:X,mode:T},children:[r.jsx(yt,{navbar:s,header:x,aside:O,footer:j,padding:b,mode:T,selector:T==="static"?`#${F}`:void 0}),r.jsx(k,{ref:t,...A("root"),mod:[{resizing:H,layout:S,disabled:C,mode:T},V],id:F,...Q})]})});v.classes=z;v.displayName="@mantine/core/AppShell";v.Navbar=ue;v.Header=ce;v.Main=de;v.Aside=ie;v.Footer=le;v.Section=he;var _e={root:"m_fea6bf1a",burger:"m_d4fb9cad"};const Ft=se((e,{color:t,size:n,lineSize:o,transitionDuration:c,transitionTimingFunction:l})=>({root:{"--burger-color":t?nt(t,e):void 0,"--burger-size":Pe(n,"burger-size"),"--burger-line-size":o?m(o):void 0,"--burger-transition-duration":c===void 0?void 0:`${c}ms`,"--burger-transition-timing-function":l}})),pe=N((e,t)=>{const n=w("Burger",null,e),{classNames:o,className:c,style:l,styles:a,unstyled:i,vars:u,opened:s,children:d,transitionDuration:b,transitionTimingFunction:h,lineSize:g,attributes:x,...B}=n,S=te({name:"Burger",classes:_e,props:n,className:c,style:l,classNames:o,styles:a,unstyled:i,attributes:x,vars:u,varsResolver:Ft});return r.jsxs(st,{...S("root"),ref:t,...B,children:[r.jsx(k,{mod:["reduce-motion",{opened:s}],...S("burger")}),d]})});pe.classes=_e;pe.displayName="@mantine/core/Burger";var We={root:"m_dc6f14e2"};const Dt=se((e,{size:t})=>({root:{"--kbd-fz":Pe(t,"kbd-fz")}})),fe=N((e,t)=>{const n=w("Kbd",null,e),{classNames:o,className:c,style:l,styles:a,unstyled:i,vars:u,attributes:s,...d}=n,b=te({name:"Kbd",classes:We,props:n,className:c,style:l,classNames:o,styles:a,unstyled:i,attributes:s,vars:u,varsResolver:Dt});return r.jsx(k,{component:"kbd",ref:t,...b("root"),...d})});fe.classes=We;fe.displayName="@mantine/core/Kbd";const $t=[["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"}]],Ot=E("outline","language","Language",$t);const Xt=[["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"}]],qt=E("outline","layout-sidebar-left-collapse","LayoutSidebarLeftCollapse",Xt);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"}]],Qt=E("outline","layout-sidebar-right-collapse","LayoutSidebarRightCollapse",Kt);const Ut=[["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"}]],Se=E("outline","moon","Moon",Ut);const Yt=[["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"}]],Gt=E("outline","square-rounded","SquareRounded",Yt);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"}]],J=E("outline","sun","Sun",Zt),Jt=e=>{const[t,n]=ne(oe);return r.jsx(pe,{opened:t.opened,onClick:()=>n({...t,opened:!t.opened}),hiddenFrom:"sm",size:"sm",...e})},ye=e=>{const{setColorScheme:t}=Ee(),n=At("light"),[o,c]=f.useState("default"),l=e.mode??"minimal";f.useEffect(()=>{c(n)},[n]);const a=()=>{t(n==="dark"?"light":"dark")};return l==="segmented"?r.jsx(jt,{value:o,onChange:i=>t(i),data:[{value:"light",label:r.jsx(p,{h:20,align:"center",justify:"center",children:r.jsx(J,{size:16})})},{value:"dark",label:r.jsx(p,{h:20,align:"center",justify:"center",children:r.jsx(Se,{size:16})})}],w:e.fullWidth?"100%":void 0,...e.segmentedProps}):r.jsx(R,{onClick:a,variant:e.variant??"subtle",size:e.size??"sm","aria-label":"Toggle color scheme",px:"xs",fullWidth:e.fullWidth??!1,icon:o==="dark"?J:o==="light"?Se:J,...e.actionProps})},Mt=e=>{const t=vt();return r.jsx(R,{variant:"default",icon:Ot,menu:{items:t.languages.map(n=>({label:t.tr(n),onClick:()=>t.setLang(n),active:t.lang===n}))},...e.actionProps})},me=e=>{const t=St(),o=t==="macos"||t==="ios"?"⌘":"Ctrl";return e.collapsed?r.jsx(R,{variant:"subtle",onClick:we.open,radius:"md",icon:r.jsx(ke,{size:16}),tooltip:{label:"Search",position:"right"},...e.actionProps}):r.jsx(R,{variant:"default",onClick:we.open,justify:"space-between",rightSection:r.jsxs(fe,{visibleFrom:"sm",size:"sm",children:[r.jsx(ot,{children:o}),"+K"]}),radius:"md",...e.actionProps,children:r.jsxs(p,{align:"center",gap:"xs",children:[r.jsx(ke,{size:16,color:"gray"}),r.jsx(p,{visibleFrom:"sm",miw:192,children:r.jsx(re,{size:"xs",c:"dimmed",children:"Search..."})})]})})},es=e=>{const[t,n]=ne(oe);return r.jsx(R,{icon:t.collapsed?r.jsx(Qt,{}):r.jsx(qt,{}),visibleFrom:"sm",variant:"subtle",size:"md",onClick:()=>{const o=t.collapsed;n({...t,collapsed:!t.collapsed,width:o?t.defaultWidth:t.width})},tooltip:{position:"right",label:t.collapsed?"Show sidebar":"Hide sidebar"},...e})},ts=e=>{const{items:t=[]}=e,n=(a,i)=>{if("type"in a){if(a.type==="burger")return r.jsx(Jt,{},i);if(a.type==="dark")return r.jsx(ye,{...a.props},i);if(a.type==="search")return r.jsx(me,{...a.props},i);if(a.type==="lang")return r.jsx(Mt,{...a.props},i);if(a.type==="spacer")return r.jsx(p,{w:16},i);if(a.type==="divider")return r.jsx(wt,{orientation:"vertical"},i)}return"element"in a?a.element:null},o=t.filter(a=>a.position==="left"),c=t.filter(a=>a.position==="center"),l=t.filter(a=>a.position==="right");return r.jsxs(p,{h:"100%",align:"center",px:"md",justify:"space-between",...e.flexProps,children:[r.jsx(p,{flex:1,children:o.map((a,i)=>r.jsx(p,{ml:i===0?0:"md",align:"center",children:n(a,i)},i))}),r.jsx(p,{children:c.map((a,i)=>r.jsx(p,{mx:"md",align:"center",children:n(a,i)},i))}),r.jsx(p,{flex:1,align:"center",justify:"end",children:l.map((a,i)=>r.jsx(p,{ml:i===0?0:"md",align:"center",children:n(a,i)},i))})]})},ss=e=>{const t=ae(),{onItemClick:n}=e,o=s=>r.jsx(p,{h:1,bg:"var(--alepha-border)",my:"xs",mx:e.collapsed?0:"sm"},s),c=(s,d)=>{if("type"in s){if(s.type==="spacer")return e.collapsed?null:r.jsx(p,{h:16},d);if(s.type==="divider")return o(d);if(s.type==="search")return r.jsx(p,{mb:"xs",children:r.jsx(me,{collapsed:e.collapsed})},d);if(s.type==="toggle")return r.jsx(es,{},d);if(s.type==="section")return e.collapsed?o(d):r.jsxs(p,{mt:"md",align:"center",gap:"xs",children:[$(s.icon),r.jsx(re,{size:"xs",c:"dimmed",tt:"uppercase",fw:"bold",children:s.label})]},d)}return"element"in s?r.jsx(p,{children:s.element},d):s.can&&!s.can()?null:e.collapsed?r.jsx(ns,{item:s,level:0,onItemClick:n,theme:e.theme??{}},d):r.jsx(Le,{item:s,level:0,onItemClick:n,theme:e.theme??{}},d)},l=()=>{if(e.items)return e.items;if(e.autoPopulateMenu){const s=t.concretePages.filter(d=>!d.can||d.can()).map(d=>({label:d.label??d.name,icon:$(d.icon),href:t.path(d.name)}));if(typeof e.autoPopulateMenu=="object"&&e.autoPopulateMenu.startsWith){const d=e.autoPopulateMenu.startsWith;return s.filter(b=>b.href?.startsWith(d))}return s}return[]},a="md",i=e.items?e.gap??2:"xs",u=f.useMemo(()=>l(),[e.items,e.autoPopulateMenu]);return r.jsxs(p,{flex:1,py:a,direction:"column",className:"alepha-sidebar-scroll",...e.flexProps,children:[r.jsx(p,{gap:i,px:a,direction:"column",children:u.filter(s=>s.position==="top").map((s,d)=>c(s,d))}),r.jsx(p,{gap:i,px:a,direction:"column",flex:1,className:"alepha-sidebar-scroll",children:u.filter(s=>!s.position).map((s,d)=>c(s,d))}),r.jsx(p,{gap:i,px:a,direction:"column",children:u.filter(s=>s.position==="bottom").map((s,d)=>c(s,d))})]})},Le=e=>{const{item:t,level:n}=e,o=2,c=ae(),l=f.useCallback(s=>{if(!s.children)return!1;for(const d of s.children)if(d.href&&c.isActive(d.href)||l(d))return!0;return!1},[]),[a,i]=f.useState(l(t));if(Re({"react:transition:end":()=>{l(t)&&i(!0)}},[]),n>o)return null;const u=s=>{e.item.target||s.preventDefault(),t.children&&t.children.length>0?i(!a):(e.onItemClick?.(t),t.onClick?.())};return r.jsxs(p,{direction:"column",ps:n===0?0:32,pos:"relative",children:[r.jsx(R,{w:"100%",justify:"space-between",href:e.item.href,target:e.item.target,size:e.item.theme?.size??e.theme.button?.size??(n===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:u,leftSection:r.jsxs(p,{w:"100%",align:"center",gap:"sm",children:[$(t.icon),r.jsxs(p,{direction:"column",children:[r.jsx(p,{children:t.label}),t.description&&r.jsx(re,{size:"xs",c:"dimmed",children:t.description})]})]}),rightSection:t.children?r.jsx(p,{children:a?r.jsx(rt,{size:14}):r.jsx(at,{size:14})}):e.item.rightSection,...e.item.actionProps}),t.children&&a&&r.jsxs(p,{direction:"column","data-parent-level":n,children:[r.jsx(p,{style:{position:"absolute",width:1,background:"linear-gradient(to bottom, transparent, var(--alepha-border), transparent)",top:48,left:20+32*n,bottom:16}}),t.children.filter(s=>!s.can||s.can()).map((s,d)=>r.jsx(Le,{item:s,level:n+1,onItemClick:e.onItemClick,theme:e.theme},d))]})]})},ns=e=>{const{item:t,level:n}=e,o=()=>{e.onItemClick?.(t),t.onClick?.()};return r.jsx(R,{size:e.item.theme?.size??e.theme.button?.size??(n===0?"sm":"xs"),variant:"subtle",variantActive:"default",tooltip:{label:t.label,position:"right"},radius:e.item.theme?.radius??e.theme.button?.radius??"md",onClick:o,icon:$(t.icon)??r.jsx(Gt,{}),href:e.item.href,target:e.item.target,...e.item.actionProps})},os=e=>{const t=ae(),[n,o]=ne(oe),{opened:c,collapsed:l}=n;f.useEffect(()=>{e.sidebarProps?.collapsed!==void 0&&o({...n,collapsed:e.sidebarProps.collapsed})},[]);const[a,i]=f.useState(!1),[u,s]=f.useState(!1),[d,b]=f.useState({offset:0,opacity:1}),h=f.useRef(null),{collapsedWidth:g,collapseThreshold:x,maxWidth:B,hoverDelay:S,defaultWidth:C}=n,O=f.useCallback(I=>{e.resizable&&(I.preventDefault(),l?(o({...n,collapsed:!1,width:C}),i(!0),h.current={startX:I.clientX,startWidth:C}):(i(!0),h.current={startX:I.clientX,startWidth:n.width}))},[e.resizable,l,n,o,C]);f.useEffect(()=>{if(!a)return;const I=De=>{if(!h.current)return;const $e=De.clientX-h.current.startX,G=h.current.startWidth+$e,Oe=Math.min(Math.max(G,g),B);if(G<x){const xe=Math.max(0,(x-G)/x);b({offset:-xe*g,opacity:1-xe*.7}),o({...n,width:x,collapsed:!1})}else b({offset:0,opacity:1}),o({...n,width:Oe,collapsed:!1})},ve=()=>{d.offset<0&&o({...n,collapsed:!0}),b({offset:0,opacity:1}),i(!1),h.current=null};return document.addEventListener("mousemove",I),document.addEventListener("mouseup",ve),()=>{document.removeEventListener("mousemove",I),document.removeEventListener("mouseup",ve)}},[a,n,o,g,B,x,d.offset]);const j=f.useRef(null),X=f.useCallback(()=>{l&&(j.current=setTimeout(()=>{s(!0)},S))},[l,S]),T=f.useCallback(()=>{j.current&&(clearTimeout(j.current),j.current=null),s(!1)},[]);f.useEffect(()=>{l&&(s(!1),j.current&&(clearTimeout(j.current),j.current=null))},[l]);const V=()=>{if(e.noSidebarWhen?.paths){for(const I of e.noSidebarWhen.paths)if(t.isActive(I,{startWith:!0}))return!1}return!0},[q,K]=f.useState(V());Re({"react:transition:end":()=>{K(V())},"react:transition:begin":()=>{o({...n,opened:!1})}},[n]);const Q=[{position:"left",type:"burger"}],A=q&&e.sidebarProps!==void 0,H=A||e.appBarProps||e.header,F=H?60:0,Ve=e.footer?24:0,be=Math.max(n.width,g),U=l&&u,Y=l&&!u,ge=Math.max(C,g),He=A?Y?g:U?ge:be:0,Fe=e.resizable&&!l;return r.jsxs(v,{w:"100%",flex:1,padding:"md",header:H?{height:60}:void 0,navbar:A?{width:Y?{base:g}:U?{base:ge}:{base:be},breakpoint:"sm",collapsed:{mobile:!c}}:void 0,footer:e.footer?{height:24}:void 0,...e.appShellProps,children:[r.jsx(v.Header,{bg:D.colors.surface,...e.appShellHeaderProps,children:e.header??r.jsx(ts,{items:Q,...e.appBarProps})}),A&&r.jsxs(v.Navbar,{bg:D.colors.surface,className:"alepha-sidebar-navbar","data-resizing":a,onMouseEnter:X,onMouseLeave:T,style:{transform:d.offset?`translateX(${d.offset}px)`:void 0,opacity:d.opacity},...e.appShellNavbarProps,children:[r.jsx(ss,{...e.sidebarProps??{},collapsed:Y}),(Fe||U)&&r.jsx(p,{pos:"absolute",right:-2,top:0,bottom:0,w:4,style:{cursor:"col-resize",userSelect:"none"},onMouseDown:O})]}),r.jsx(v.Main,{pl:He,pt:F,pb:Ve,pr:0,display:"flex",flex:1,style:{flexDirection:"column"},className:"alepha-sidebar-main","data-resizing":a,...e.appShellMainProps,children:e.children??r.jsx(it,{})}),e.footer&&r.jsx(v.Footer,{bg:D.colors.surface,...e.appShellFooterProps,children:e.footer})]})},ms=()=>r.jsx(os,{appShellHeaderProps:{bg:D.colors.background},appShellNavbarProps:{bg:"transparent"},sidebarProps:{gap:4,collapsed:!0,items:[{label:"Dashboard",icon:r.jsx(lt,{}),href:"/"},{type:"divider"},{label:"Actions",icon:r.jsx(ct,{}),href:"/actions"},{label:"Queues",icon:r.jsx(dt,{}),href:"/queues"},{label:"Topics",icon:r.jsx(ut,{}),href:"/topics"},{label:"Caches",icon:r.jsx(ht,{}),href:"/caches"},{label:"DB Studio",icon:r.jsx(pt,{}),href:"/db"},{type:"divider"},{label:"Environment",icon:r.jsx(ft,{}),href:"/env"},{label:"Atoms",icon:r.jsx(mt,{}),href:"/atoms"},{type:"divider"},{label:"Graph",icon:r.jsx(bt,{}),href:"/graph"},{label:"Logs",icon:r.jsx(gt,{}),href:"/logs"}]},appBarProps:{items:[{position:"left",type:"burger"},{position:"left",element:r.jsx(p,{h:"60px",w:"78px",style:{marginLeft:"-32px",borderRight:"1px solid var(--mantine-color-default-border)"}})},{position:"left",element:r.jsx(me,{actionProps:{variant:"outline",bd:"1px solid var(--mantine-color-default-border)"}})},{position:"right",element:r.jsx(ye,{})}]}});export{ms as DevLayout,ms as default};
@@ -1 +1 @@
1
- import{r as i}from"./entry.BdraBs_7.js";const f=["mousedown","touchstart"];function g(e,a,s){const r=i.useRef(null),n=a||f;return i.useEffect(()=>{const u=t=>{const{target:o}=t??{};if(Array.isArray(s)){const d=!document.body.contains(o)&&o?.tagName!=="HTML";s.every(c=>!!c&&!t.composedPath().includes(c))&&!d&&e(t)}else r.current&&!r.current.contains(o)&&e(t)};return n.forEach(t=>document.addEventListener(t,u)),()=>{n.forEach(t=>document.removeEventListener(t,u))}},[r,e,s]),r}export{g as u};
1
+ import{r as i}from"./entry.DqiMGelS.js";const f=["mousedown","touchstart"];function g(e,a,s){const r=i.useRef(null),n=a||f;return i.useEffect(()=>{const u=t=>{const{target:o}=t??{};if(Array.isArray(s)){const d=!document.body.contains(o)&&o?.tagName!=="HTML";s.every(c=>!!c&&!t.composedPath().includes(c))&&!d&&e(t)}else r.current&&!r.current.contains(o)&&e(t)};return n.forEach(t=>document.addEventListener(t,u)),()=>{n.forEach(t=>document.removeEventListener(t,u))}},[r,e,s]),r}export{g as u};
@@ -0,0 +1 @@
1
+ import{a5 as B,a6 as L,r as c,j as e,F as t,T as r,B as x,L as a,ah as T,C,af as S,V as v,ag as w,a8 as P,ac as A}from"./entry.DqiMGelS.js";import{d as E}from"./chunk.D1-ODKSf.js";import{S as g,B as u}from"./chunk.BLgG-Amn.js";import{I as M}from"./chunk.BOYwUUqI.js";import{T as j}from"./chunk.DAeCHJ5Z.js";import{T as n}from"./chunk.CKppnGPU.js";import{a as O,I}from"./chunk.BPCHIpy2.js";import{I as R}from"./chunk.K-Ms8Mzm.js";import"./chunk.BlqFPyLh.js";const z={memory:"#69db7c",redis:"#ff6b6b",default:"#495057"},$=s=>z[s]??z.default,D=s=>s?typeof s=="number"?s<60?`${s}s`:s<3600?`${Math.floor(s/60)}m`:s<86400?`${Math.floor(s/3600)}h`:`${Math.floor(s/86400)}d`:String(s):"No TTL",K=({caches:s,selectedCache:l,onSelectCache:p,search:f,onSearchChange:b})=>{const h=c.useMemo(()=>{const i={};for(const o of s){const d=o.provider||"default";i[d]||(i[d]=[]),i[d].push(o)}return i},[s]),y=Object.keys(h).sort();return e.jsxs(g,{gap:0,h:"100%",children:[e.jsx(x,{p:"sm",style:{borderBottom:`1px solid ${a.colors.border}`},children:e.jsx(T,{placeholder:"Search caches...",leftSection:e.jsx(C,{size:14}),size:"xs",value:f,onChange:i=>b(i.target.value)})}),e.jsx(S,{style:{flex:1},children:y.map(i=>e.jsxs(x,{children:[e.jsx(r,{size:"xs",fw:600,c:"dimmed",px:"sm",py:"xs",style:{backgroundColor:a.colors.background,borderBottom:`1px solid ${a.colors.border}`,textTransform:"uppercase",letterSpacing:"0.05em"},children:i}),h[i].map(o=>{const d=l?.name===o.name,m=$(o.provider);return e.jsxs(t,{align:"center",gap:"xs",px:"sm",py:6,onClick:()=>p(o),style:{cursor:"pointer",backgroundColor:d?`${m}15`:void 0,borderLeft:d?`2px solid ${m}`:"2px solid transparent",borderBottom:`1px solid ${a.colors.border}`,opacity:o.disabled?.5:1},children:[e.jsx(v,{size:14,opacity:.5}),e.jsx(r,{size:"sm",style:{flex:1},truncate:!0,children:o.name}),o.disabled&&e.jsx(u,{size:"xs",variant:"light",color:"gray",children:"off"})]},o.name)})]},i))})]})},N=({cache:s})=>e.jsx(S,{h:"100%",p:"md",children:e.jsxs(g,{gap:"lg",children:[e.jsxs(x,{children:[e.jsx(r,{size:"sm",fw:600,mb:"xs",children:"Configuration"}),e.jsx(n,{striped:!0,highlightOnHover:!0,withTableBorder:!0,children:e.jsxs(n.Tbody,{children:[e.jsxs(n.Tr,{children:[e.jsx(n.Td,{w:150,children:e.jsx(r,{size:"sm",c:"dimmed",children:"Name"})}),e.jsx(n.Td,{children:e.jsx(r,{size:"sm",ff:"monospace",children:s.name})})]}),e.jsxs(n.Tr,{children:[e.jsx(n.Td,{children:e.jsx(r,{size:"sm",c:"dimmed",children:"Provider"})}),e.jsx(n.Td,{children:e.jsx(u,{size:"xs",variant:"light",color:s.provider==="redis"?"red":"green",children:s.provider})})]}),e.jsxs(n.Tr,{children:[e.jsx(n.Td,{children:e.jsx(r,{size:"sm",c:"dimmed",children:"TTL"})}),e.jsx(n.Td,{children:e.jsxs(t,{align:"center",gap:"xs",children:[e.jsx(O,{size:14,opacity:.5}),e.jsx(r,{size:"sm",ff:"monospace",children:D(s.ttl)})]})})]}),e.jsxs(n.Tr,{children:[e.jsx(n.Td,{children:e.jsx(r,{size:"sm",c:"dimmed",children:"Status"})}),e.jsx(n.Td,{children:e.jsx(u,{size:"xs",variant:"light",color:s.disabled?"gray":"green",children:s.disabled?"Disabled":"Enabled"})})]})]})})]}),e.jsxs(x,{children:[e.jsx(r,{size:"sm",fw:600,mb:"xs",children:"Actions"}),e.jsx(t,{gap:"sm",children:e.jsx(w,{label:"Clear all cached entries (coming soon)",children:e.jsx(P,{size:"xs",variant:"light",color:"red",leftSection:e.jsx(I,{size:14}),disabled:!0,children:"Clear All"})})})]})]})}),F=({cache:s})=>{const[l,p]=c.useState("");return e.jsxs(t,{direction:"column",h:"100%",children:[e.jsx(x,{p:"sm",style:{borderBottom:`1px solid ${a.colors.border}`},children:e.jsxs(t,{gap:"sm",align:"center",children:[e.jsx(T,{placeholder:"Filter by pattern...",leftSection:e.jsx(C,{size:14}),size:"xs",value:l,onChange:f=>p(f.target.value),style:{flex:1}}),e.jsx(w,{label:"Invalidate matching keys (coming soon)",children:e.jsx(A,{size:"sm",variant:"light",color:"orange",disabled:!0,children:e.jsx(I,{size:14})})})]})}),e.jsx(t,{align:"center",justify:"center",style:{flex:1},c:"dimmed",children:e.jsxs(g,{align:"center",gap:"xs",children:[e.jsx(R,{size:48,opacity:.3}),e.jsx(r,{size:"sm",children:"Key browser coming soon"}),e.jsxs(r,{size:"xs",c:"dimmed",children:["Browse and manage cached keys for ",s.name]})]})})]})},V=({cache:s})=>{const l=$(s.provider);return e.jsxs(t,{direction:"column",h:"100%",children:[e.jsx(x,{px:"md",py:"sm",style:{borderBottom:`1px solid ${a.colors.border}`,backgroundColor:`${l}08`},children:e.jsxs(t,{align:"center",gap:"sm",children:[e.jsx(v,{size:18,opacity:.7}),e.jsx(r,{size:"md",fw:600,children:s.name}),e.jsx(u,{size:"xs",variant:"light",color:s.provider==="redis"?"red":"green",children:s.provider}),s.disabled&&e.jsx(u,{size:"xs",variant:"light",color:"gray",children:"disabled"})]})}),e.jsxs(j,{defaultValue:"config",style:{flex:1,display:"flex",flexDirection:"column"},children:[e.jsxs(j.List,{px:"md",children:[e.jsx(j.Tab,{value:"config",children:"Config"}),e.jsx(j.Tab,{value:"keys",children:"Keys"})]}),e.jsx(j.Panel,{value:"config",style:{flex:1,overflow:"hidden"},children:e.jsx(N,{cache:s})}),e.jsx(j.Panel,{value:"keys",style:{flex:1,overflow:"hidden"},children:e.jsx(F,{cache:s})})]})]})},H=()=>e.jsx(t,{align:"center",justify:"center",h:"100%",c:"dimmed",children:e.jsxs(g,{align:"center",gap:"xs",children:[e.jsx(v,{size:48,opacity:.3}),e.jsx(r,{size:"sm",children:"Select a cache to view its configuration"})]})}),_=()=>e.jsx(t,{align:"center",justify:"center",h:"100%",c:"dimmed",children:e.jsxs(g,{align:"center",gap:"xs",children:[e.jsx(M,{size:48,opacity:.3}),e.jsx(r,{children:"No caches found"}),e.jsx(r,{size:"sm",c:"dimmed",children:"Add caches using $cache primitive to see them here"})]})}),ee=()=>{const s=B(L),[l,p]=c.useState([]),[f,b]=c.useState(!0),[h,y]=c.useState(null),[i,o]=c.useState("");c.useEffect(()=>{s.fetch("/devtools/api/metadata",{schema:{response:E}}).then(m=>{p(m.data.caches),b(!1)})},[]);const d=c.useMemo(()=>{if(!i)return l;const m=i.toLowerCase();return l.filter(k=>k.name.toLowerCase().includes(m))},[l,i]);return f?e.jsx(t,{align:"center",justify:"center",h:"100%",children:e.jsx(r,{c:"dimmed",children:"Loading..."})}):l.length===0?e.jsx(_,{}):e.jsxs(t,{h:"100%",style:{overflow:"hidden"},children:[e.jsx(x,{w:240,style:{borderRight:`1px solid ${a.colors.border}`,backgroundColor:a.colors.surface},children:e.jsx(K,{caches:d,selectedCache:h,onSelectCache:y,search:i,onSearchChange:o})}),e.jsx(x,{style:{flex:1,overflow:"hidden"},children:h?e.jsx(V,{cache:h}):e.jsx(H,{})})]})};export{ee as DevCacheInspector,ee as default};
@@ -1 +1 @@
1
- import{f as p,b as y,q as b,j as g,B as x,t as R,a0 as T,v as f}from"./entry.BdraBs_7.js";var c={root:"m_7341320d"};const I=R((e,{size:a,radius:t,variant:s,gradient:i,color:o,autoContrast:l})=>{const r=e.variantColorResolver({color:o||e.primaryColor,theme:e,gradient:i,variant:s||"filled",autoContrast:l});return{root:{"--ti-size":f(a,"ti-size"),"--ti-radius":t===void 0?void 0:T(t),"--ti-bg":o||s?r.background:void 0,"--ti-color":o||s?r.color:void 0,"--ti-bd":o||s?r.border:void 0}}}),n=p((e,a)=>{const t=y("ThemeIcon",null,e),{classNames:s,className:i,style:o,styles:l,unstyled:r,vars:d,autoContrast:h,attributes:m,...u}=t,v=b({name:"ThemeIcon",classes:c,props:t,className:i,style:o,classNames:s,styles:l,unstyled:r,attributes:m,vars:d,varsResolver:I});return g.jsx(x,{ref:a,...v("root"),...u})});n.classes=c;n.displayName="@mantine/core/ThemeIcon";export{n as T};
1
+ import{f as p,d as y,o as b,j as g,B as x,t as R,a2 as T,v as f}from"./entry.DqiMGelS.js";var c={root:"m_7341320d"};const I=R((e,{size:a,radius:t,variant:s,gradient:i,color:o,autoContrast:l})=>{const r=e.variantColorResolver({color:o||e.primaryColor,theme:e,gradient:i,variant:s||"filled",autoContrast:l});return{root:{"--ti-size":f(a,"ti-size"),"--ti-radius":t===void 0?void 0:T(t),"--ti-bg":o||s?r.background:void 0,"--ti-color":o||s?r.color:void 0,"--ti-bd":o||s?r.border:void 0}}}),n=p((e,a)=>{const t=y("ThemeIcon",null,e),{classNames:s,className:i,style:o,styles:l,unstyled:r,vars:d,autoContrast:h,attributes:m,...u}=t,v=b({name:"ThemeIcon",classes:c,props:t,className:i,style:o,classNames:s,styles:l,unstyled:r,attributes:m,vars:d,varsResolver:I});return g.jsx(x,{ref:a,...v("root"),...u})});n.classes=c;n.displayName="@mantine/core/ThemeIcon";export{n as T};
@@ -1 +1 @@
1
- import{p as q,b as v,q as y,j as g,B as f,t as h,w as z,a0 as E,v as u,f as F,g as T}from"./entry.BdraBs_7.js";var x={root:"m_347db0ec","root--dot":"m_fbd81e3d",label:"m_5add502a",section:"m_91fdda9b"};const V=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:E(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"?z(s,a):void 0}}}),S=q((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:V});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 W={gap:"md",align:"stretch",justify:"flex-start"},A=h((a,{gap:e,align:s,justify:o})=>({root:{"--stack-gap":T(e),"--stack-align":s,"--stack-justify":o}})),k=F((a,e)=>{const s=v("Stack",W,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};
1
+ import{p as z,d as v,o as y,j as g,B as f,t as h,w as E,a2 as F,v as u,f as T,h as V}from"./entry.DqiMGelS.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};
@@ -1 +1 @@
1
- import{x as e}from"./entry.BdraBs_7.js";const a=[["path",{d:"M3 7a3 3 0 0 1 3 -3h12a3 3 0 0 1 3 3v2a3 3 0 0 1 -3 3h-12a3 3 0 0 1 -3 -3",key:"svg-0"}],["path",{d:"M3 15a3 3 0 0 1 3 -3h12a3 3 0 0 1 3 3v2a3 3 0 0 1 -3 3h-12a3 3 0 0 1 -3 -3l0 -2",key:"svg-1"}],["path",{d:"M7 8l0 .01",key:"svg-2"}],["path",{d:"M7 16l0 .01",key:"svg-3"}]],o=e("outline","server","Server",a);export{o as I};
1
+ import{x as e}from"./entry.DqiMGelS.js";const a=[["path",{d:"M3 7a3 3 0 0 1 3 -3h12a3 3 0 0 1 3 3v2a3 3 0 0 1 -3 3h-12a3 3 0 0 1 -3 -3",key:"svg-0"}],["path",{d:"M3 15a3 3 0 0 1 3 -3h12a3 3 0 0 1 3 3v2a3 3 0 0 1 -3 3h-12a3 3 0 0 1 -3 -3l0 -2",key:"svg-1"}],["path",{d:"M7 8l0 .01",key:"svg-2"}],["path",{d:"M7 16l0 .01",key:"svg-3"}]],o=e("outline","server","Server",a);export{o as I};
@@ -1 +1 @@
1
- import{x as a}from"./entry.BdraBs_7.js";const o=[["path",{d:"M3 12a9 9 0 1 0 18 0a9 9 0 0 0 -18 0",key:"svg-0"}],["path",{d:"M12 7v5l3 3",key:"svg-1"}]],e=a("outline","clock","Clock",o);const t=[["path",{d:"M4 7l16 0",key:"svg-0"}],["path",{d:"M10 11l0 6",key:"svg-1"}],["path",{d:"M14 11l0 6",key:"svg-2"}],["path",{d:"M5 7l1 12a2 2 0 0 0 2 2h8a2 2 0 0 0 2 -2l1 -12",key:"svg-3"}],["path",{d:"M9 7v-3a1 1 0 0 1 1 -1h4a1 1 0 0 1 1 1v3",key:"svg-4"}]],c=a("outline","trash","Trash",t);export{c as I,e as a};
1
+ import{x as a}from"./entry.DqiMGelS.js";const o=[["path",{d:"M3 12a9 9 0 1 0 18 0a9 9 0 0 0 -18 0",key:"svg-0"}],["path",{d:"M12 7v5l3 3",key:"svg-1"}]],e=a("outline","clock","Clock",o);const t=[["path",{d:"M4 7l16 0",key:"svg-0"}],["path",{d:"M10 11l0 6",key:"svg-1"}],["path",{d:"M14 11l0 6",key:"svg-2"}],["path",{d:"M5 7l1 12a2 2 0 0 0 2 2h8a2 2 0 0 0 2 -2l1 -12",key:"svg-3"}],["path",{d:"M9 7v-3a1 1 0 0 1 1 -1h4a1 1 0 0 1 1 1v3",key:"svg-4"}]],c=a("outline","trash","Trash",t);export{c as I,e as a};
@@ -1 +1 @@
1
- import{r as h,j as i,B as W,f as oe,b as ae,q as ce,ah as le,t as ie,g as ue,T as A,a5 as de,G as fe,H as he,aa as pe,ab as me,ac as ye,ai as ve,F as ge,J as xe}from"./entry.BdraBs_7.js";import{f as G}from"./chunk.BlqFPyLh.js";import{u as ke}from"./chunk.CQFdZ3hg.js";function Y(e){const r=new Map;return(...n)=>{const t=JSON.stringify(n);if(r.has(t))return r.get(t);const s=e(...n);return r.set(t,s),s}}var Z={root:"m_f698e191",subtree:"m_75f3ecf",node:"m_f6970eb1",label:"m_dc283425"};function L(e,r,n){if(!e||!r)return[];const t=n.indexOf(e),s=n.indexOf(r),c=Math.min(t,s),d=Math.max(t,s);return n.slice(c,d+1)}function H({node:e,getStyles:r,rootIndex:n,controller:t,expandOnClick:s,selectOnClick:c,isSubtree:d,level:p=1,renderNode:g,flatValues:f,allowRangeSelection:m,expandOnSpace:x,checkOnSpace:b}){const u=h.useRef(null),y=(e.children||[]).map(o=>i.jsx(H,{node:o,flatValues:f,getStyles:r,rootIndex:void 0,level:p+1,controller:t,expandOnClick:s,isSubtree:!0,renderNode:g,selectOnClick:c,allowRangeSelection:m,expandOnSpace:x,checkOnSpace:b},o.value)),v=o=>{if(o.nativeEvent.code==="ArrowRight"&&(o.stopPropagation(),o.preventDefault(),t.expandedState[e.value]?o.currentTarget.querySelector("[role=treeitem]")?.focus():t.expand(e.value)),o.nativeEvent.code==="ArrowLeft"&&(o.stopPropagation(),o.preventDefault(),t.expandedState[e.value]&&(e.children||[]).length>0?t.collapse(e.value):d&&G(o.currentTarget,"[role=treeitem]")?.focus()),o.nativeEvent.code==="ArrowDown"||o.nativeEvent.code==="ArrowUp"){const w=G(o.currentTarget,"[data-tree-root]");if(!w)return;o.stopPropagation(),o.preventDefault();const T=Array.from(w.querySelectorAll("[role=treeitem]")),O=T.indexOf(o.currentTarget);if(O===-1)return;const I=o.nativeEvent.code==="ArrowDown"?O+1:O-1;if(T[I]?.focus(),o.shiftKey){const E=T[I];E&&t.setSelectedState(L(t.anchorNode,E.dataset.value,f))}}o.nativeEvent.code==="Space"&&(x&&(o.stopPropagation(),o.preventDefault(),t.toggleExpanded(e.value)),b&&(o.stopPropagation(),o.preventDefault(),t.isNodeChecked(e.value)?t.uncheckNode(e.value):t.checkNode(e.value)))},N=o=>{o.stopPropagation(),m&&o.shiftKey&&t.anchorNode?(t.setSelectedState(L(t.anchorNode,e.value,f)),u.current?.focus()):(s&&t.toggleExpanded(e.value),c&&t.select(e.value),u.current?.focus())},C=t.selectedState.includes(e.value),S={...r("label"),onClick:N,"data-selected":C||void 0,"data-value":e.value,"data-hovered":t.hoveredNode===e.value||void 0};return i.jsxs("li",{...r("node",{style:{"--label-offset":`calc(var(--level-offset) * ${p-1})`}}),role:"treeitem","aria-selected":C,"data-value":e.value,"data-selected":C||void 0,"data-hovered":t.hoveredNode===e.value||void 0,"data-level":p,tabIndex:n===0?0:-1,onKeyDown:v,ref:u,onMouseOver:o=>{o.stopPropagation(),t.setHoveredNode(e.value)},onMouseLeave:o=>{o.stopPropagation(),t.setHoveredNode(null)},children:[typeof g=="function"?g({node:e,level:p,selected:C,tree:t,expanded:t.expandedState[e.value]||!1,hasChildren:Array.isArray(e.children)&&e.children.length>0,elementProps:S}):i.jsx("div",{...S,children:e.label}),t.expandedState[e.value]&&y.length>0&&i.jsx(W,{component:"ul",role:"group",...r("subtree"),"data-level":p,children:y})]})}H.displayName="@mantine/core/TreeNode";function M(e,r,n=[]){const t=[];for(const s of e)if(Array.isArray(s.children)&&s.children.length>0){const c=M(s.children,r,n);if(c.currentTreeChecked.length===s.children.length){const d=c.currentTreeChecked.every(g=>g.checked),p={checked:d,indeterminate:!d,value:s.value,hasChildren:!0};t.push(p),n.push(p)}else if(c.currentTreeChecked.length>0){const d={checked:!1,indeterminate:!0,value:s.value,hasChildren:!0};t.push(d),n.push(d)}}else if(r.includes(s.value)){const c={checked:!0,indeterminate:!1,value:s.value,hasChildren:!1};t.push(c),n.push(c)}return{result:n,currentTreeChecked:t}}function X(e,r){for(const n of r){if(n.value===e)return n;if(Array.isArray(n.children)){const t=X(e,n.children);if(t)return t}}return null}function P(e,r,n=[]){const t=X(e,r);return t?!Array.isArray(t.children)||t.children.length===0?[t.value]:(t.children.forEach(s=>{Array.isArray(s.children)&&s.children.length>0?P(s.value,r,n):n.push(s.value)}),n):n}function Q(e){return e.reduce((r,n)=>(Array.isArray(n.children)&&n.children.length>0?r.push(...Q(n.children)):r.push(n.value),r),[])}function be(e,r,n){return n.length===0?!1:n.includes(e)?!0:M(r,n).result.some(s=>s.value===e&&s.checked)}const Ne=Y(be);function je(e,r,n){return n.length===0?!1:M(r,n).result.some(s=>s.value===e&&s.indeterminate)}const Ce=Y(je);function _(e,r,n,t={}){return r.forEach(s=>{t[s.value]=s.value in e?e[s.value]:s.value===n,Array.isArray(s.children)&&_(e,s.children,n,t)}),t}function B(e,r){const n=_({},e,[]);return r==="*"?Object.keys(n).reduce((t,s)=>({...t,[s]:!0}),{}):(r.forEach(t=>{n[t]=!0}),n)}function Se(e,r){const n=[];return e.forEach(t=>n.push(...P(t,r))),Array.from(new Set(n))}function z({initialSelectedState:e=[],initialCheckedState:r=[],initialExpandedState:n={},multiple:t=!1,onNodeCollapse:s,onNodeExpand:c}={}){const[d,p]=h.useState([]),[g,f]=h.useState(n),[m,x]=h.useState(e),[b,u]=h.useState(r),[y,v]=h.useState(null),[N,C]=h.useState(null),S=h.useCallback(a=>{f(l=>_(l,a,m)),u(l=>Se(l,a)),p(a)},[m,b]),o=h.useCallback(a=>{f(l=>{const j={...l,[a]:!l[a]};return j[a]?c?.(a):s?.(a),j})},[s,c]),w=h.useCallback(a=>{f(l=>(l[a]!==!1&&s?.(a),{...l,[a]:!1}))},[s]),T=h.useCallback(a=>{f(l=>(l[a]!==!0&&c?.(a),{...l,[a]:!0}))},[c]),O=h.useCallback(()=>{f(a=>{const l={...a};return Object.keys(l).forEach(j=>{l[j]=!0}),l})},[]),I=h.useCallback(()=>{f(a=>{const l={...a};return Object.keys(l).forEach(j=>{l[j]=!1}),l})},[]),E=h.useCallback(a=>x(l=>t?l.includes(a)?(v(null),l.filter(j=>j!==a)):(v(a),[...l,a]):l.includes(a)?(v(null),[]):(v(a),[a])),[]),V=h.useCallback(a=>{v(a),x(l=>t?l.includes(a)?l:[...l,a]:[a])},[]),$=h.useCallback(a=>{y===a&&v(null),x(l=>l.filter(j=>j!==a))},[]),J=h.useCallback(()=>{x([]),v(null)},[]),R=h.useCallback(a=>{const l=P(a,d);u(j=>Array.from(new Set([...j,...l])))},[d]),D=h.useCallback(a=>{const l=P(a,d);u(j=>j.filter(se=>!l.includes(se)))},[d]),ne=h.useCallback(()=>{u(()=>Q(d))},[d]),re=h.useCallback(()=>{u([])},[]);return{multiple:t,expandedState:g,selectedState:m,checkedState:b,anchorNode:y,initialize:S,toggleExpanded:o,collapse:w,expand:T,expandAllNodes:O,collapseAllNodes:I,setExpandedState:f,checkNode:R,uncheckNode:D,checkAllNodes:ne,uncheckAllNodes:re,setCheckedState:u,toggleSelected:E,select:V,deselect:$,clearSelected:J,setSelectedState:x,hoveredNode:N,setHoveredNode:C,getCheckedNodes:()=>M(d,b).result,isNodeChecked:a=>Ne(a,d,b),isNodeIndeterminate:a=>Ce(a,d,b)}}function ee(e){return e.reduce((r,n)=>(r.push(n.value),n.children&&r.push(...ee(n.children)),r),[])}const Ae={expandOnClick:!0,allowRangeSelection:!0,expandOnSpace:!0},we=ie((e,{levelOffset:r})=>({root:{"--level-offset":ue(r)}})),q=oe((e,r)=>{const n=ae("Tree",Ae,e),{classNames:t,className:s,style:c,styles:d,unstyled:p,vars:g,data:f,expandOnClick:m,tree:x,renderNode:b,selectOnClick:u,clearSelectionOnOutsideClick:y,allowRangeSelection:v,expandOnSpace:N,levelOffset:C,checkOnSpace:S,attributes:o,...w}=n,T=z(),O=x||T,I=ce({name:"Tree",classes:Z,props:n,className:s,style:c,classNames:t,styles:d,unstyled:p,attributes:o,vars:g,varsResolver:we}),E=ke(()=>y&&O.clearSelected()),V=le(r,E),$=h.useMemo(()=>ee(f),[f]);h.useEffect(()=>{O.initialize(f)},[f]);const J=f.map((R,D)=>i.jsx(H,{node:R,getStyles:I,rootIndex:D,expandOnClick:m,selectOnClick:u,controller:O,renderNode:b,flatValues:$,allowRangeSelection:v,expandOnSpace:N,checkOnSpace:S},R.value));return i.jsx(W,{component:"ul",ref:V,...I("root"),...w,role:"tree","aria-multiselectable":O.multiple,"data-tree-root":!0,children:J})});q.displayName="@mantine/core/Tree";q.classes=Z;const U={xs:{icon:14,levelOffset:16},sm:{icon:16,levelOffset:20},md:{icon:18,levelOffset:24},lg:{icon:20,levelOffset:28},xl:{icon:22,levelOffset:32}},k={root:{fontFamily:"var(--mantine-font-family-monospace)"},chevron:{flexShrink:0,color:"var(--mantine-color-dimmed)"},key:{color:"var(--mantine-color-cyan-text)",fontWeight:500},colon:{color:"var(--mantine-color-dimmed)"},string:{color:"var(--mantine-color-teal-text)"},number:{color:"var(--mantine-color-blue-text)"},boolean:{color:"var(--mantine-color-violet-text)"},null:{color:"var(--mantine-color-dimmed)",fontStyle:"italic"},preview:{color:"var(--mantine-color-dimmed)"}},K=e=>e===null?"null":e===void 0?"undefined":Array.isArray(e)?"array":typeof e;function F(e,r=[],n,t=!1,s=10){const c=n!==void 0?[...r,n]:r,d=c.length>0?c.join("."):"root";if(c.length>s)return{value:d,label:n??"",nodeValue:e,nodeKey:n,path:c,isArrayItem:t};const p=K(e);if(p==="object"||p==="array"){const f=(p==="array"?e.map((m,x)=>[String(x),m]):Object.entries(e)).map(([m,x])=>F(x,c,m,p==="array",s)).filter(m=>m!==null);return{value:d,label:n??"",nodeValue:e,nodeKey:n,path:c,isArrayItem:t,children:f.length>0?f:void 0}}return{value:d,label:n??"",nodeValue:e,nodeKey:n,path:c,isArrayItem:t}}function te(e,r,n=0){if(n>=r)return[];const t=[];for(const s of e)s.children&&(t.push(s.value),t.push(...te(s.children,r,n+1)));return t}const Oe=({value:e,iconSize:r})=>{const[n,t]=h.useState(!1),s=h.useCallback(c=>{c.stopPropagation(),navigator.clipboard.writeText(e),t(!0),setTimeout(()=>t(!1),1500)},[e]);return i.jsx(pe,{size:r+4,variant:"transparent",c:n?"green":"dimmed",onClick:s,className:"alepha-json-viewer-copy",children:n?i.jsx(me,{size:r}):i.jsx(ye,{size:r})})},Te=({node:e,expanded:r,hasChildren:n,elementProps:t,size:s,config:c,showQuotes:d,showCopyButton:p,renderValue:g})=>{const{nodeValue:f,nodeKey:m,path:x,isArrayItem:b,isRoot:u}=e,y=K(f),v=y==="object"||y==="array",N=()=>{if(!v)return null;const o=(y==="array"?f:Object.keys(f)).length,w=y==="array"?"item":"key";return r?null:i.jsx(A,{fs:"italic",component:"span",size:s,style:k.preview,children:o===0?y==="array"?"[]":"{}":y==="array"?`[ ${o} ${o===1?w:`${w}s`} ]`:`{ ${o} ${o===1?w:`${w}s`} }`})},C=()=>v?JSON.stringify(f,null,2):String(f??"");return i.jsxs(de,{gap:6,wrap:"nowrap",...t,className:`alepha-json-viewer-row ${t.className||""}`,children:[n?r?i.jsx(fe,{size:c.icon,style:k.chevron}):i.jsx(he,{size:c.icon,style:k.chevron}):i.jsx("span",{style:{width:c.icon,flexShrink:0}}),m!==void 0&&!b&&i.jsxs(A,{component:"span",size:s,children:[i.jsx("span",{style:k.key,children:d?`"${m}"`:m}),i.jsx("span",{style:k.colon,children:":"})]}),m!==void 0&&b&&i.jsxs(A,{component:"span",size:s,children:[i.jsx("span",{style:k.key,children:m}),i.jsx("span",{style:k.colon,children:":"})]}),n?N():v?y==="array"?i.jsx(A,{component:"span",size:s,style:k.preview,children:"[]"}):i.jsx(A,{component:"span",size:s,style:k.preview,children:"{}"}):g(f,m,x),p&&i.jsx(Oe,{value:C(),iconSize:c.icon})]})},Ie=({data:e,defaultExpandedDepth:r=2,maxDepth:n=10,size:t="sm",showQuotes:s=!1,showCopyButton:c=!0,formatValue:d})=>{const p=U[t]||U.sm,g=h.useMemo(()=>{const u=K(e);if(u==="object"||u==="array"){const N=(u==="array"?e.map((S,o)=>[String(o),S]):Object.entries(e)).map(([S,o])=>F(o,[],S,u==="array",n)).filter(S=>S!==null);return[{value:"root",label:"",nodeValue:e,nodeKey:void 0,path:[],isArrayItem:!1,isRoot:!0,children:N.length>0?N:void 0}]}const y=F(e,[],void 0,!1,n);return y?[y]:[]},[e,n]),f=h.useMemo(()=>{if(r===0)return{};if(r===1/0)return B(g,"*");const u=te(g,r+1);return B(g,u)},[g,r]),m=z({initialExpandedState:f}),x=h.useCallback((u,y,v)=>{const N=d?.(y,u,v);if(N!==void 0)return i.jsx(A,{component:"span",size:t,style:k.string,className:"alepha-json-viewer-value",title:String(u),children:N});const C=K(u);switch(C){case"string":return i.jsxs(A,{style:k.string,component:"span",size:t,className:"alepha-json-viewer-value",title:u,children:['"',u,'"']});case"number":return i.jsx(A,{component:"span",size:t,style:k.number,children:u});case"boolean":return i.jsx(A,{component:"span",size:t,style:k.boolean,children:String(u)});case"null":case"undefined":return i.jsx(A,{component:"span",size:t,style:k.null,children:C});default:return i.jsx(A,{component:"span",size:t,children:String(u)})}},[d,s,t]),b=h.useCallback(({node:u,expanded:y,hasChildren:v,elementProps:N})=>i.jsx(Te,{node:u,expanded:y,hasChildren:v,elementProps:N,size:t,config:p,showQuotes:s,showCopyButton:c,renderValue:x}),[p,x,c,s,t]);return g.length===0?i.jsx(A,{size:t,style:k.null,children:e===null?"null":e===void 0?"undefined":"{}"}):i.jsx(q,{data:g,tree:m,levelOffset:p.levelOffset,expandOnClick:!0,renderNode:b,styles:{root:k.root}})};ve.prototype.json=function(e,r){this.open({size:"lg",title:r?.title||"Json Viewer",...r,content:i.jsx(ge,{bdrs:"md",w:"100%",flex:1,p:"sm",bg:xe.colors.surface,children:i.jsx(Ie,{size:"xs",data:e})})})};export{Ie as J};
1
+ import{r as h,j as i,B as W,f as oe,d as ae,o as ce,aj as le,t as ie,h as ue,T as A,a7 as de,J as fe,K as he,ac as pe,ad as me,ae as ye,ak as ve,F as ge,L as xe}from"./entry.DqiMGelS.js";import{f as q}from"./chunk.BlqFPyLh.js";import{u as ke}from"./chunk.B4XxoeIU.js";function Y(e){const r=new Map;return(...n)=>{const t=JSON.stringify(n);if(r.has(t))return r.get(t);const s=e(...n);return r.set(t,s),s}}var Z={root:"m_f698e191",subtree:"m_75f3ecf",node:"m_f6970eb1",label:"m_dc283425"};function B(e,r,n){if(!e||!r)return[];const t=n.indexOf(e),s=n.indexOf(r),c=Math.min(t,s),d=Math.max(t,s);return n.slice(c,d+1)}function L({node:e,getStyles:r,rootIndex:n,controller:t,expandOnClick:s,selectOnClick:c,isSubtree:d,level:p=1,renderNode:g,flatValues:f,allowRangeSelection:m,expandOnSpace:x,checkOnSpace:b}){const u=h.useRef(null),y=(e.children||[]).map(o=>i.jsx(L,{node:o,flatValues:f,getStyles:r,rootIndex:void 0,level:p+1,controller:t,expandOnClick:s,isSubtree:!0,renderNode:g,selectOnClick:c,allowRangeSelection:m,expandOnSpace:x,checkOnSpace:b},o.value)),v=o=>{if(o.nativeEvent.code==="ArrowRight"&&(o.stopPropagation(),o.preventDefault(),t.expandedState[e.value]?o.currentTarget.querySelector("[role=treeitem]")?.focus():t.expand(e.value)),o.nativeEvent.code==="ArrowLeft"&&(o.stopPropagation(),o.preventDefault(),t.expandedState[e.value]&&(e.children||[]).length>0?t.collapse(e.value):d&&q(o.currentTarget,"[role=treeitem]")?.focus()),o.nativeEvent.code==="ArrowDown"||o.nativeEvent.code==="ArrowUp"){const w=q(o.currentTarget,"[data-tree-root]");if(!w)return;o.stopPropagation(),o.preventDefault();const T=Array.from(w.querySelectorAll("[role=treeitem]")),O=T.indexOf(o.currentTarget);if(O===-1)return;const I=o.nativeEvent.code==="ArrowDown"?O+1:O-1;if(T[I]?.focus(),o.shiftKey){const E=T[I];E&&t.setSelectedState(B(t.anchorNode,E.dataset.value,f))}}o.nativeEvent.code==="Space"&&(x&&(o.stopPropagation(),o.preventDefault(),t.toggleExpanded(e.value)),b&&(o.stopPropagation(),o.preventDefault(),t.isNodeChecked(e.value)?t.uncheckNode(e.value):t.checkNode(e.value)))},N=o=>{o.stopPropagation(),m&&o.shiftKey&&t.anchorNode?(t.setSelectedState(B(t.anchorNode,e.value,f)),u.current?.focus()):(s&&t.toggleExpanded(e.value),c&&t.select(e.value),u.current?.focus())},C=t.selectedState.includes(e.value),S={...r("label"),onClick:N,"data-selected":C||void 0,"data-value":e.value,"data-hovered":t.hoveredNode===e.value||void 0};return i.jsxs("li",{...r("node",{style:{"--label-offset":`calc(var(--level-offset) * ${p-1})`}}),role:"treeitem","aria-selected":C,"data-value":e.value,"data-selected":C||void 0,"data-hovered":t.hoveredNode===e.value||void 0,"data-level":p,tabIndex:n===0?0:-1,onKeyDown:v,ref:u,onMouseOver:o=>{o.stopPropagation(),t.setHoveredNode(e.value)},onMouseLeave:o=>{o.stopPropagation(),t.setHoveredNode(null)},children:[typeof g=="function"?g({node:e,level:p,selected:C,tree:t,expanded:t.expandedState[e.value]||!1,hasChildren:Array.isArray(e.children)&&e.children.length>0,elementProps:S}):i.jsx("div",{...S,children:e.label}),t.expandedState[e.value]&&y.length>0&&i.jsx(W,{component:"ul",role:"group",...r("subtree"),"data-level":p,children:y})]})}L.displayName="@mantine/core/TreeNode";function M(e,r,n=[]){const t=[];for(const s of e)if(Array.isArray(s.children)&&s.children.length>0){const c=M(s.children,r,n);if(c.currentTreeChecked.length===s.children.length){const d=c.currentTreeChecked.every(g=>g.checked),p={checked:d,indeterminate:!d,value:s.value,hasChildren:!0};t.push(p),n.push(p)}else if(c.currentTreeChecked.length>0){const d={checked:!1,indeterminate:!0,value:s.value,hasChildren:!0};t.push(d),n.push(d)}}else if(r.includes(s.value)){const c={checked:!0,indeterminate:!1,value:s.value,hasChildren:!1};t.push(c),n.push(c)}return{result:n,currentTreeChecked:t}}function X(e,r){for(const n of r){if(n.value===e)return n;if(Array.isArray(n.children)){const t=X(e,n.children);if(t)return t}}return null}function P(e,r,n=[]){const t=X(e,r);return t?!Array.isArray(t.children)||t.children.length===0?[t.value]:(t.children.forEach(s=>{Array.isArray(s.children)&&s.children.length>0?P(s.value,r,n):n.push(s.value)}),n):n}function Q(e){return e.reduce((r,n)=>(Array.isArray(n.children)&&n.children.length>0?r.push(...Q(n.children)):r.push(n.value),r),[])}function be(e,r,n){return n.length===0?!1:n.includes(e)?!0:M(r,n).result.some(s=>s.value===e&&s.checked)}const Ne=Y(be);function je(e,r,n){return n.length===0?!1:M(r,n).result.some(s=>s.value===e&&s.indeterminate)}const Ce=Y(je);function _(e,r,n,t={}){return r.forEach(s=>{t[s.value]=s.value in e?e[s.value]:s.value===n,Array.isArray(s.children)&&_(e,s.children,n,t)}),t}function G(e,r){const n=_({},e,[]);return r==="*"?Object.keys(n).reduce((t,s)=>({...t,[s]:!0}),{}):(r.forEach(t=>{n[t]=!0}),n)}function Se(e,r){const n=[];return e.forEach(t=>n.push(...P(t,r))),Array.from(new Set(n))}function z({initialSelectedState:e=[],initialCheckedState:r=[],initialExpandedState:n={},multiple:t=!1,onNodeCollapse:s,onNodeExpand:c}={}){const[d,p]=h.useState([]),[g,f]=h.useState(n),[m,x]=h.useState(e),[b,u]=h.useState(r),[y,v]=h.useState(null),[N,C]=h.useState(null),S=h.useCallback(a=>{f(l=>_(l,a,m)),u(l=>Se(l,a)),p(a)},[m,b]),o=h.useCallback(a=>{f(l=>{const j={...l,[a]:!l[a]};return j[a]?c?.(a):s?.(a),j})},[s,c]),w=h.useCallback(a=>{f(l=>(l[a]!==!1&&s?.(a),{...l,[a]:!1}))},[s]),T=h.useCallback(a=>{f(l=>(l[a]!==!0&&c?.(a),{...l,[a]:!0}))},[c]),O=h.useCallback(()=>{f(a=>{const l={...a};return Object.keys(l).forEach(j=>{l[j]=!0}),l})},[]),I=h.useCallback(()=>{f(a=>{const l={...a};return Object.keys(l).forEach(j=>{l[j]=!1}),l})},[]),E=h.useCallback(a=>x(l=>t?l.includes(a)?(v(null),l.filter(j=>j!==a)):(v(a),[...l,a]):l.includes(a)?(v(null),[]):(v(a),[a])),[]),V=h.useCallback(a=>{v(a),x(l=>t?l.includes(a)?l:[...l,a]:[a])},[]),$=h.useCallback(a=>{y===a&&v(null),x(l=>l.filter(j=>j!==a))},[]),J=h.useCallback(()=>{x([]),v(null)},[]),R=h.useCallback(a=>{const l=P(a,d);u(j=>Array.from(new Set([...j,...l])))},[d]),D=h.useCallback(a=>{const l=P(a,d);u(j=>j.filter(se=>!l.includes(se)))},[d]),ne=h.useCallback(()=>{u(()=>Q(d))},[d]),re=h.useCallback(()=>{u([])},[]);return{multiple:t,expandedState:g,selectedState:m,checkedState:b,anchorNode:y,initialize:S,toggleExpanded:o,collapse:w,expand:T,expandAllNodes:O,collapseAllNodes:I,setExpandedState:f,checkNode:R,uncheckNode:D,checkAllNodes:ne,uncheckAllNodes:re,setCheckedState:u,toggleSelected:E,select:V,deselect:$,clearSelected:J,setSelectedState:x,hoveredNode:N,setHoveredNode:C,getCheckedNodes:()=>M(d,b).result,isNodeChecked:a=>Ne(a,d,b),isNodeIndeterminate:a=>Ce(a,d,b)}}function ee(e){return e.reduce((r,n)=>(r.push(n.value),n.children&&r.push(...ee(n.children)),r),[])}const Ae={expandOnClick:!0,allowRangeSelection:!0,expandOnSpace:!0},we=ie((e,{levelOffset:r})=>({root:{"--level-offset":ue(r)}})),H=oe((e,r)=>{const n=ae("Tree",Ae,e),{classNames:t,className:s,style:c,styles:d,unstyled:p,vars:g,data:f,expandOnClick:m,tree:x,renderNode:b,selectOnClick:u,clearSelectionOnOutsideClick:y,allowRangeSelection:v,expandOnSpace:N,levelOffset:C,checkOnSpace:S,attributes:o,...w}=n,T=z(),O=x||T,I=ce({name:"Tree",classes:Z,props:n,className:s,style:c,classNames:t,styles:d,unstyled:p,attributes:o,vars:g,varsResolver:we}),E=ke(()=>y&&O.clearSelected()),V=le(r,E),$=h.useMemo(()=>ee(f),[f]);h.useEffect(()=>{O.initialize(f)},[f]);const J=f.map((R,D)=>i.jsx(L,{node:R,getStyles:I,rootIndex:D,expandOnClick:m,selectOnClick:u,controller:O,renderNode:b,flatValues:$,allowRangeSelection:v,expandOnSpace:N,checkOnSpace:S},R.value));return i.jsx(W,{component:"ul",ref:V,...I("root"),...w,role:"tree","aria-multiselectable":O.multiple,"data-tree-root":!0,children:J})});H.displayName="@mantine/core/Tree";H.classes=Z;const U={xs:{icon:14,levelOffset:16},sm:{icon:16,levelOffset:20},md:{icon:18,levelOffset:24},lg:{icon:20,levelOffset:28},xl:{icon:22,levelOffset:32}},k={root:{fontFamily:"var(--mantine-font-family-monospace)"},chevron:{flexShrink:0,color:"var(--mantine-color-dimmed)"},key:{color:"var(--mantine-color-cyan-text)",fontWeight:500},colon:{color:"var(--mantine-color-dimmed)"},string:{color:"var(--mantine-color-teal-text)"},number:{color:"var(--mantine-color-blue-text)"},boolean:{color:"var(--mantine-color-violet-text)"},null:{color:"var(--mantine-color-dimmed)",fontStyle:"italic"},preview:{color:"var(--mantine-color-dimmed)"}},K=e=>e===null?"null":e===void 0?"undefined":Array.isArray(e)?"array":typeof e;function F(e,r=[],n,t=!1,s=10){const c=n!==void 0?[...r,n]:r,d=c.length>0?c.join("."):"root";if(c.length>s)return{value:d,label:n??"",nodeValue:e,nodeKey:n,path:c,isArrayItem:t};const p=K(e);if(p==="object"||p==="array"){const f=(p==="array"?e.map((m,x)=>[String(x),m]):Object.entries(e)).map(([m,x])=>F(x,c,m,p==="array",s)).filter(m=>m!==null);return{value:d,label:n??"",nodeValue:e,nodeKey:n,path:c,isArrayItem:t,children:f.length>0?f:void 0}}return{value:d,label:n??"",nodeValue:e,nodeKey:n,path:c,isArrayItem:t}}function te(e,r,n=0){if(n>=r)return[];const t=[];for(const s of e)s.children&&(t.push(s.value),t.push(...te(s.children,r,n+1)));return t}const Oe=({value:e,iconSize:r})=>{const[n,t]=h.useState(!1),s=h.useCallback(c=>{c.stopPropagation(),navigator.clipboard.writeText(e),t(!0),setTimeout(()=>t(!1),1500)},[e]);return i.jsx(pe,{size:r+4,variant:"transparent",c:n?"green":"dimmed",onClick:s,className:"alepha-json-viewer-copy",children:n?i.jsx(me,{size:r}):i.jsx(ye,{size:r})})},Te=({node:e,expanded:r,hasChildren:n,elementProps:t,size:s,config:c,showQuotes:d,showCopyButton:p,renderValue:g})=>{const{nodeValue:f,nodeKey:m,path:x,isArrayItem:b,isRoot:u}=e,y=K(f),v=y==="object"||y==="array",N=()=>{if(!v)return null;const o=(y==="array"?f:Object.keys(f)).length,w=y==="array"?"item":"key";return r?null:i.jsx(A,{fs:"italic",component:"span",size:s,style:k.preview,children:o===0?y==="array"?"[]":"{}":y==="array"?`[ ${o} ${o===1?w:`${w}s`} ]`:`{ ${o} ${o===1?w:`${w}s`} }`})},C=()=>v?JSON.stringify(f,null,2):String(f??"");return i.jsxs(de,{gap:6,wrap:"nowrap",...t,className:`alepha-json-viewer-row ${t.className||""}`,children:[n?r?i.jsx(fe,{size:c.icon,style:k.chevron}):i.jsx(he,{size:c.icon,style:k.chevron}):i.jsx("span",{style:{width:c.icon,flexShrink:0}}),m!==void 0&&!b&&i.jsxs(A,{component:"span",size:s,children:[i.jsx("span",{style:k.key,children:d?`"${m}"`:m}),i.jsx("span",{style:k.colon,children:":"})]}),m!==void 0&&b&&i.jsxs(A,{component:"span",size:s,children:[i.jsx("span",{style:k.key,children:m}),i.jsx("span",{style:k.colon,children:":"})]}),n?N():v?y==="array"?i.jsx(A,{component:"span",size:s,style:k.preview,children:"[]"}):i.jsx(A,{component:"span",size:s,style:k.preview,children:"{}"}):g(f,m,x),p&&i.jsx(Oe,{value:C(),iconSize:c.icon})]})},Ie=({data:e,defaultExpandedDepth:r=2,maxDepth:n=10,size:t="sm",showQuotes:s=!1,showCopyButton:c=!0,formatValue:d})=>{const p=U[t]||U.sm,g=h.useMemo(()=>{const u=K(e);if(u==="object"||u==="array"){const N=(u==="array"?e.map((S,o)=>[String(o),S]):Object.entries(e)).map(([S,o])=>F(o,[],S,u==="array",n)).filter(S=>S!==null);return[{value:"root",label:"",nodeValue:e,nodeKey:void 0,path:[],isArrayItem:!1,isRoot:!0,children:N.length>0?N:void 0}]}const y=F(e,[],void 0,!1,n);return y?[y]:[]},[e,n]),f=h.useMemo(()=>{if(r===0)return{};if(r===1/0)return G(g,"*");const u=te(g,r+1);return G(g,u)},[g,r]),m=z({initialExpandedState:f}),x=h.useCallback((u,y,v)=>{const N=d?.(y,u,v);if(N!==void 0)return i.jsx(A,{component:"span",size:t,style:k.string,className:"alepha-json-viewer-value",title:String(u),children:N});const C=K(u);switch(C){case"string":return i.jsxs(A,{style:k.string,component:"span",size:t,className:"alepha-json-viewer-value",title:u,children:['"',u,'"']});case"number":return i.jsx(A,{component:"span",size:t,style:k.number,children:u});case"boolean":return i.jsx(A,{component:"span",size:t,style:k.boolean,children:String(u)});case"null":case"undefined":return i.jsx(A,{component:"span",size:t,style:k.null,children:C});default:return i.jsx(A,{component:"span",size:t,children:String(u)})}},[d,s,t]),b=h.useCallback(({node:u,expanded:y,hasChildren:v,elementProps:N})=>i.jsx(Te,{node:u,expanded:y,hasChildren:v,elementProps:N,size:t,config:p,showQuotes:s,showCopyButton:c,renderValue:x}),[p,x,c,s,t]);return g.length===0?i.jsx(A,{size:t,style:k.null,children:e===null?"null":e===void 0?"undefined":"{}"}):i.jsx(H,{data:g,tree:m,levelOffset:p.levelOffset,expandOnClick:!0,renderNode:b,styles:{root:k.root}})};ve.prototype.json=function(e,r){this.open({size:"lg",title:r?.title||"Json Viewer",...r,content:i.jsx(ge,{bdrs:"md",w:"100%",flex:1,p:"sm",bg:xe.colors.surface,children:i.jsx(Ie,{size:"xs",data:e})})})};export{Ie as J};
@@ -0,0 +1 @@
1
+ import{x as B,j as e,ag as v,a5 as D,a6 as P,r as j,F as d,T as n,B as a,L as m,W as C,ah as k,C as I,af as w}from"./entry.DqiMGelS.js";import{d as $}from"./chunk.D1-ODKSf.js";import{B as x,S as g}from"./chunk.BLgG-Amn.js";import{T as f}from"./chunk.DAeCHJ5Z.js";import{T as s}from"./chunk.CKppnGPU.js";import"./chunk.BlqFPyLh.js";const A=[["path",{d:"M3 5a2 2 0 0 1 2 -2h14a2 2 0 0 1 2 2v14a2 2 0 0 1 -2 2h-14a2 2 0 0 1 -2 -2v-14",key:"svg-0"}],["path",{d:"M3 10h18",key:"svg-1"}],["path",{d:"M10 3v18",key:"svg-2"}]],y=B("outline","table","Table",A),K=({column:i,size:r="xs"})=>{const t=[];return i.primaryKey&&t.push({label:"PK",tooltip:"Primary Key"}),i.identity&&t.push({label:"ID",tooltip:"Auto-increment Identity"}),i.ref&&t.push({label:"FK",tooltip:`Foreign Key → ${i.ref.entity}.${i.ref.column}`}),i.createdAt&&t.push({label:"C",tooltip:"Created At (auto-set on insert)"}),i.updatedAt&&t.push({label:"U",tooltip:"Updated At (auto-set on update)"}),i.deletedAt&&t.push({label:"D",tooltip:"Deleted At (soft delete)"}),i.version&&t.push({label:"V",tooltip:"Version (optimistic locking)"}),e.jsxs(e.Fragment,{children:[t.map(o=>e.jsx(v,{label:o.tooltip,children:e.jsx(x,{size:r,variant:"light",color:"blue",children:o.label})},o.label)),i.nullable&&e.jsx(v,{label:"Nullable",children:e.jsx(x,{size:r,variant:"outline",color:"gray",children:"?"})})]})},z={PostgresProvider:"#336791",SqliteProvider:"#003B57",DatabaseProvider:"#495057",default:"#495057"},S=i=>z[i]??z.default,N=({entities:i,selectedEntity:r,onSelectEntity:t,search:o,onSearchChange:T})=>{const u=j.useMemo(()=>{const l={};for(const c of i){const h=c.provider.replace("Provider","");l[h]||(l[h]=[]),l[h].push(c)}return l},[i]),b=Object.keys(u).sort();return e.jsxs(g,{gap:0,h:"100%",children:[e.jsx(a,{p:"sm",style:{borderBottom:`1px solid ${m.colors.border}`},children:e.jsx(k,{placeholder:"Search tables...",leftSection:e.jsx(I,{size:14}),size:"xs",value:o,onChange:l=>T(l.target.value)})}),e.jsx(w,{style:{flex:1},children:b.map(l=>e.jsxs(a,{children:[e.jsx(n,{size:"xs",fw:600,c:"dimmed",px:"sm",py:"xs",style:{backgroundColor:m.colors.background,borderBottom:`1px solid ${m.colors.border}`,textTransform:"uppercase",letterSpacing:"0.05em"},children:l}),u[l].map(c=>{const h=r?.name===c.name,p=S(c.provider);return e.jsxs(d,{align:"center",gap:"xs",px:"sm",py:6,onClick:()=>t(c),style:{cursor:"pointer",backgroundColor:h?`${p}15`:void 0,borderLeft:h?`2px solid ${p}`:"2px solid transparent",borderBottom:`1px solid ${m.colors.border}`},children:[e.jsx(y,{size:14,opacity:.5}),e.jsx(n,{size:"sm",style:{flex:1},truncate:!0,children:c.name}),e.jsx(n,{size:"xs",c:"dimmed",children:c.columns.length})]},c.name)})]},l))})]})},L=({entity:i})=>e.jsx(w,{h:"100%",p:"md",children:e.jsxs(g,{gap:"lg",children:[e.jsxs(a,{children:[e.jsx(n,{size:"sm",fw:600,mb:"xs",children:"Columns"}),e.jsxs(s,{striped:!0,highlightOnHover:!0,withTableBorder:!0,children:[e.jsx(s.Thead,{children:e.jsxs(s.Tr,{children:[e.jsx(s.Th,{children:"Name"}),e.jsx(s.Th,{children:"Type"}),e.jsx(s.Th,{children:"Attributes"})]})}),e.jsx(s.Tbody,{children:i.columns.map(r=>e.jsxs(s.Tr,{children:[e.jsx(s.Td,{children:e.jsx(n,{size:"sm",ff:"monospace",fw:r.primaryKey?600:400,children:r.name})}),e.jsx(s.Td,{children:e.jsx(n,{size:"sm",ff:"monospace",c:"dimmed",children:r.type})}),e.jsx(s.Td,{children:e.jsx(d,{gap:4,wrap:"wrap",children:e.jsx(K,{column:r})})})]},r.name))})]})]}),i.indexes.length>0&&e.jsxs(a,{children:[e.jsx(n,{size:"sm",fw:600,mb:"xs",children:"Indexes"}),e.jsxs(s,{striped:!0,highlightOnHover:!0,withTableBorder:!0,children:[e.jsx(s.Thead,{children:e.jsxs(s.Tr,{children:[e.jsx(s.Th,{children:"Name"}),e.jsx(s.Th,{children:"Columns"}),e.jsx(s.Th,{children:"Unique"})]})}),e.jsx(s.Tbody,{children:i.indexes.map((r,t)=>e.jsxs(s.Tr,{children:[e.jsx(s.Td,{children:e.jsx(n,{size:"sm",ff:"monospace",children:r.name||"-"})}),e.jsx(s.Td,{children:e.jsx(d,{gap:4,children:r.columns.map(o=>e.jsx(x,{size:"xs",variant:"light",children:o},o))})}),e.jsx(s.Td,{children:r.unique&&e.jsx(x,{size:"xs",color:"yellow",children:"UNIQUE"})})]},r.name||t))})]})]}),i.foreignKeys.length>0&&e.jsxs(a,{children:[e.jsx(n,{size:"sm",fw:600,mb:"xs",children:"Foreign Keys"}),e.jsxs(s,{striped:!0,highlightOnHover:!0,withTableBorder:!0,children:[e.jsx(s.Thead,{children:e.jsxs(s.Tr,{children:[e.jsx(s.Th,{children:"Name"}),e.jsx(s.Th,{children:"Column"}),e.jsx(s.Th,{children:"References"})]})}),e.jsx(s.Tbody,{children:i.foreignKeys.map((r,t)=>e.jsxs(s.Tr,{children:[e.jsx(s.Td,{children:e.jsx(n,{size:"sm",ff:"monospace",children:r.name||"-"})}),e.jsx(s.Td,{children:e.jsx(n,{size:"sm",ff:"monospace",children:r.columns.join(", ")})}),e.jsx(s.Td,{children:e.jsxs(n,{size:"sm",ff:"monospace",c:"pink",children:[r.foreignEntity,".",r.foreignColumns.join(", ")]})})]},r.name||t))})]})]}),i.columns.some(r=>r.ref)&&e.jsxs(a,{children:[e.jsx(n,{size:"sm",fw:600,mb:"xs",children:"Column References"}),e.jsxs(s,{striped:!0,highlightOnHover:!0,withTableBorder:!0,children:[e.jsx(s.Thead,{children:e.jsxs(s.Tr,{children:[e.jsx(s.Th,{children:"Column"}),e.jsx(s.Th,{children:"References"})]})}),e.jsx(s.Tbody,{children:i.columns.filter(r=>r.ref).map(r=>e.jsxs(s.Tr,{children:[e.jsx(s.Td,{children:e.jsx(n,{size:"sm",ff:"monospace",children:r.name})}),e.jsx(s.Td,{children:e.jsxs(n,{size:"sm",ff:"monospace",c:"pink",children:[r.ref?.entity,".",r.ref?.column]})})]},r.name))})]})]}),i.constraints.length>0&&e.jsxs(a,{children:[e.jsx(n,{size:"sm",fw:600,mb:"xs",children:"Constraints"}),e.jsxs(s,{striped:!0,highlightOnHover:!0,withTableBorder:!0,children:[e.jsx(s.Thead,{children:e.jsxs(s.Tr,{children:[e.jsx(s.Th,{children:"Name"}),e.jsx(s.Th,{children:"Columns"}),e.jsx(s.Th,{children:"Type"})]})}),e.jsx(s.Tbody,{children:i.constraints.map((r,t)=>e.jsxs(s.Tr,{children:[e.jsx(s.Td,{children:e.jsx(n,{size:"sm",ff:"monospace",children:r.name||"-"})}),e.jsx(s.Td,{children:e.jsx(d,{gap:4,children:r.columns.map(o=>e.jsx(x,{size:"xs",variant:"outline",children:o},o))})}),e.jsx(s.Td,{children:e.jsxs(d,{gap:4,children:[r.unique&&e.jsx(x,{size:"xs",color:"yellow",children:"UNIQUE"}),r.hasCheck&&e.jsx(x,{size:"xs",color:"blue",children:"CHECK"})]})})]},r.name||t))})]})]})]})}),O=()=>e.jsx(d,{align:"center",justify:"center",h:"100%",c:"dimmed",children:e.jsxs(g,{align:"center",gap:"xs",children:[e.jsx(C,{size:48,opacity:.3}),e.jsx(n,{size:"sm",children:"Data browser coming soon"})]})}),R=({entity:i})=>{const r=S(i.provider);return e.jsxs(d,{direction:"column",h:"100%",children:[e.jsx(a,{px:"md",py:"sm",style:{borderBottom:`1px solid ${m.colors.border}`,backgroundColor:`${r}08`},children:e.jsxs(d,{align:"center",gap:"sm",children:[e.jsx(y,{size:18,opacity:.7}),e.jsx(n,{size:"md",fw:600,children:i.name}),e.jsxs(x,{size:"xs",variant:"light",color:"gray",children:[i.columns.length," columns"]})]})}),e.jsxs(f,{defaultValue:"structure",style:{flex:1,display:"flex",flexDirection:"column"},children:[e.jsxs(f.List,{px:"md",children:[e.jsx(f.Tab,{value:"structure",children:"Structure"}),e.jsx(f.Tab,{value:"data",children:"Data"})]}),e.jsx(f.Panel,{value:"structure",style:{flex:1,overflow:"hidden"},children:e.jsx(L,{entity:i})}),e.jsx(f.Panel,{value:"data",style:{flex:1,overflow:"hidden"},children:e.jsx(O,{})})]})]})},H=()=>e.jsx(d,{align:"center",justify:"center",h:"100%",c:"dimmed",children:e.jsxs(g,{align:"center",gap:"xs",children:[e.jsx(y,{size:48,opacity:.3}),e.jsx(n,{size:"sm",children:"Select a table to view its structure"})]})}),U=()=>e.jsx(d,{align:"center",justify:"center",h:"100%",c:"dimmed",children:e.jsxs(g,{align:"center",gap:"xs",children:[e.jsx(C,{size:48,opacity:.3}),e.jsx(n,{children:"No entities found"}),e.jsx(n,{size:"sm",c:"dimmed",children:"Add entities using $entity primitive to see them here"})]})}),W=()=>{const i=D(P),[r,t]=j.useState([]),[o,T]=j.useState(!0),[u,b]=j.useState(null),[l,c]=j.useState("");j.useEffect(()=>{i.fetch("/devtools/api/metadata",{schema:{response:$}}).then(p=>{t(p.data.entities),T(!1)})},[]);const h=j.useMemo(()=>{if(!l)return r;const p=l.toLowerCase();return r.filter(E=>E.name.toLowerCase().includes(p))},[r,l]);return o?e.jsx(d,{align:"center",justify:"center",h:"100%",children:e.jsx(n,{c:"dimmed",children:"Loading..."})}):r.length===0?e.jsx(U,{}):e.jsxs(d,{h:"100%",style:{overflow:"hidden"},children:[e.jsx(a,{w:240,style:{borderRight:`1px solid ${m.colors.border}`,backgroundColor:m.colors.surface},children:e.jsx(N,{entities:h,selectedEntity:u,onSelectEntity:b,search:l,onSearchChange:c})}),e.jsx(a,{style:{flex:1,overflow:"hidden"},children:u?e.jsx(R,{entity:u}):e.jsx(H,{})})]})};export{W as DevDbStudio,W as default};
@@ -1 +1 @@
1
- import{x as a}from"./entry.BdraBs_7.js";const e=[["path",{d:"M7 4v16l13 -8l-13 -8",key:"svg-0"}]],l=a("outline","player-play","PlayerPlay",e);export{l as I};
1
+ import{x as a}from"./entry.DqiMGelS.js";const e=[["path",{d:"M7 4v16l13 -8l-13 -8",key:"svg-0"}]],l=a("outline","player-play","PlayerPlay",e);export{l as I};
@@ -1 +1 @@
1
- import{c as M,f as w,b as B,j as a,B as N,q as P,t as $,ad as Q,e as C,w as x,g as O}from"./entry.BdraBs_7.js";const[X,Y]=M("Table component was not found in the tree");var f={table:"m_b23fa0ef",th:"m_4e7aa4f3",tr:"m_4e7aa4fd",td:"m_4e7aa4ef",tbody:"m_b2404537",thead:"m_b242d975",caption:"m_9e5a3ac7",scrollContainer:"m_a100c15",scrollContainerInner:"m_62259741"};function Z(e,r){if(!r)return;const t={};return r.columnBorder&&e.withColumnBorders&&(t["data-with-column-border"]=!0),r.rowBorder&&e.withRowBorders&&(t["data-with-row-border"]=!0),r.striped&&e.striped&&(t["data-striped"]=e.striped),r.highlightOnHover&&e.highlightOnHover&&(t["data-hover"]=!0),r.captionSide&&e.captionSide&&(t["data-side"]=e.captionSide),r.stickyHeader&&e.stickyHeader&&(t["data-sticky"]=!0),t}function b(e,r){const t=`Table${e.charAt(0).toUpperCase()}${e.slice(1)}`,o=w((l,i)=>{const n=B(t,{},l),{classNames:c,className:d,style:m,styles:u,...h}=n,p=Y();return a.jsx(N,{component:e,ref:i,...Z(p,r),...p.getStyles(e,{className:d,classNames:c,style:m,styles:u,props:n}),...h})});return o.displayName=`@mantine/core/${t}`,o.classes=f,o}const j=b("th",{columnBorder:!0}),A=b("td",{columnBorder:!0}),v=b("tr",{rowBorder:!0,striped:!0,highlightOnHover:!0}),D=b("thead",{stickyHeader:!0}),z=b("tbody"),E=b("tfoot"),I=b("caption",{captionSide:!0});function R({data:e}){return a.jsxs(a.Fragment,{children:[e.caption&&a.jsx(I,{children:e.caption}),e.head&&a.jsx(D,{children:a.jsx(v,{children:e.head.map((r,t)=>a.jsx(j,{children:r},t))})}),e.body&&a.jsx(z,{children:e.body.map((r,t)=>a.jsx(v,{children:r.map((o,l)=>a.jsx(A,{children:o},l))},t))}),e.foot&&a.jsx(E,{children:a.jsx(v,{children:e.foot.map((r,t)=>a.jsx(j,{children:r},t))})})]})}R.displayName="@mantine/core/TableDataRenderer";const ee={type:"scrollarea"},te=$((e,{minWidth:r,maxHeight:t,type:o})=>({scrollContainer:{"--table-min-width":C(r),"--table-max-height":C(t),"--table-overflow":o==="native"?"auto":void 0}})),H=w((e,r)=>{const t=B("TableScrollContainer",ee,e),{classNames:o,className:l,style:i,styles:n,unstyled:c,vars:d,children:m,minWidth:u,maxHeight:h,type:p,scrollAreaProps:g,attributes:T,...S}=t,y=P({name:"TableScrollContainer",classes:f,props:t,className:l,style:i,classNames:o,styles:n,unstyled:c,attributes:T,vars:d,varsResolver:te,rootSelector:"scrollContainer"});return a.jsx(N,{component:p==="scrollarea"?Q:"div",...p==="scrollarea"?h?{offsetScrollbars:"xy",...g}:{offsetScrollbars:"x",...g}:{},ref:r,...y("scrollContainer"),...S,children:a.jsx("div",{...y("scrollContainerInner"),children:m})})});H.classes=f;H.displayName="@mantine/core/TableScrollContainer";const re={withRowBorders:!0,verticalSpacing:7},ae=$((e,{layout:r,captionSide:t,horizontalSpacing:o,verticalSpacing:l,borderColor:i,stripedColor:n,highlightOnHoverColor:c,striped:d,highlightOnHover:m,stickyHeaderOffset:u,stickyHeader:h})=>({table:{"--table-layout":r,"--table-caption-side":t,"--table-horizontal-spacing":O(o),"--table-vertical-spacing":O(l),"--table-border-color":i?x(i,e):void 0,"--table-striped-color":d&&n?x(n,e):void 0,"--table-highlight-on-hover-color":m&&c?x(c,e):void 0,"--table-sticky-header-offset":h?C(u):void 0}})),s=w((e,r)=>{const t=B("Table",re,e),{classNames:o,className:l,style:i,styles:n,unstyled:c,vars:d,horizontalSpacing:m,verticalSpacing:u,captionSide:h,stripedColor:p,highlightOnHoverColor:g,striped:T,highlightOnHover:S,withColumnBorders:y,withRowBorders:q,withTableBorder:F,borderColor:oe,layout:se,variant:U,data:_,children:V,stickyHeader:W,stickyHeaderOffset:le,mod:G,tabularNums:J,attributes:K,...L}=t,k=P({name:"Table",props:t,className:l,style:i,classes:f,classNames:o,styles:n,unstyled:c,attributes:K,rootSelector:"table",vars:d,varsResolver:ae});return a.jsx(X,{value:{getStyles:k,stickyHeader:W,striped:T===!0?"odd":T||void 0,highlightOnHover:S,withColumnBorders:y,withRowBorders:q,captionSide:h||"bottom"},children:a.jsx(N,{component:"table",variant:U,ref:r,mod:[{"data-with-table-border":F,"data-tabular-nums":J},G],...k("table"),...L,children:V||!!_&&a.jsx(R,{data:_})})})});s.classes=f;s.displayName="@mantine/core/Table";s.Td=A;s.Th=j;s.Tr=v;s.Thead=D;s.Tbody=z;s.Tfoot=E;s.Caption=I;s.ScrollContainer=H;s.DataRenderer=R;export{s as T};
1
+ import{c as M,f as w,d as B,j as a,B as N,o as P,af as Q,t as $,g as C,w as x,h as O}from"./entry.DqiMGelS.js";const[X,Y]=M("Table component was not found in the tree");var f={table:"m_b23fa0ef",th:"m_4e7aa4f3",tr:"m_4e7aa4fd",td:"m_4e7aa4ef",tbody:"m_b2404537",thead:"m_b242d975",caption:"m_9e5a3ac7",scrollContainer:"m_a100c15",scrollContainerInner:"m_62259741"};function Z(e,r){if(!r)return;const t={};return r.columnBorder&&e.withColumnBorders&&(t["data-with-column-border"]=!0),r.rowBorder&&e.withRowBorders&&(t["data-with-row-border"]=!0),r.striped&&e.striped&&(t["data-striped"]=e.striped),r.highlightOnHover&&e.highlightOnHover&&(t["data-hover"]=!0),r.captionSide&&e.captionSide&&(t["data-side"]=e.captionSide),r.stickyHeader&&e.stickyHeader&&(t["data-sticky"]=!0),t}function b(e,r){const t=`Table${e.charAt(0).toUpperCase()}${e.slice(1)}`,o=w((l,i)=>{const n=B(t,{},l),{classNames:c,className:d,style:m,styles:u,...h}=n,p=Y();return a.jsx(N,{component:e,ref:i,...Z(p,r),...p.getStyles(e,{className:d,classNames:c,style:m,styles:u,props:n}),...h})});return o.displayName=`@mantine/core/${t}`,o.classes=f,o}const j=b("th",{columnBorder:!0}),A=b("td",{columnBorder:!0}),v=b("tr",{rowBorder:!0,striped:!0,highlightOnHover:!0}),D=b("thead",{stickyHeader:!0}),z=b("tbody"),E=b("tfoot"),I=b("caption",{captionSide:!0});function R({data:e}){return a.jsxs(a.Fragment,{children:[e.caption&&a.jsx(I,{children:e.caption}),e.head&&a.jsx(D,{children:a.jsx(v,{children:e.head.map((r,t)=>a.jsx(j,{children:r},t))})}),e.body&&a.jsx(z,{children:e.body.map((r,t)=>a.jsx(v,{children:r.map((o,l)=>a.jsx(A,{children:o},l))},t))}),e.foot&&a.jsx(E,{children:a.jsx(v,{children:e.foot.map((r,t)=>a.jsx(j,{children:r},t))})})]})}R.displayName="@mantine/core/TableDataRenderer";const ee={type:"scrollarea"},te=$((e,{minWidth:r,maxHeight:t,type:o})=>({scrollContainer:{"--table-min-width":C(r),"--table-max-height":C(t),"--table-overflow":o==="native"?"auto":void 0}})),H=w((e,r)=>{const t=B("TableScrollContainer",ee,e),{classNames:o,className:l,style:i,styles:n,unstyled:c,vars:d,children:m,minWidth:u,maxHeight:h,type:p,scrollAreaProps:g,attributes:T,...S}=t,y=P({name:"TableScrollContainer",classes:f,props:t,className:l,style:i,classNames:o,styles:n,unstyled:c,attributes:T,vars:d,varsResolver:te,rootSelector:"scrollContainer"});return a.jsx(N,{component:p==="scrollarea"?Q:"div",...p==="scrollarea"?h?{offsetScrollbars:"xy",...g}:{offsetScrollbars:"x",...g}:{},ref:r,...y("scrollContainer"),...S,children:a.jsx("div",{...y("scrollContainerInner"),children:m})})});H.classes=f;H.displayName="@mantine/core/TableScrollContainer";const re={withRowBorders:!0,verticalSpacing:7},ae=$((e,{layout:r,captionSide:t,horizontalSpacing:o,verticalSpacing:l,borderColor:i,stripedColor:n,highlightOnHoverColor:c,striped:d,highlightOnHover:m,stickyHeaderOffset:u,stickyHeader:h})=>({table:{"--table-layout":r,"--table-caption-side":t,"--table-horizontal-spacing":O(o),"--table-vertical-spacing":O(l),"--table-border-color":i?x(i,e):void 0,"--table-striped-color":d&&n?x(n,e):void 0,"--table-highlight-on-hover-color":m&&c?x(c,e):void 0,"--table-sticky-header-offset":h?C(u):void 0}})),s=w((e,r)=>{const t=B("Table",re,e),{classNames:o,className:l,style:i,styles:n,unstyled:c,vars:d,horizontalSpacing:m,verticalSpacing:u,captionSide:h,stripedColor:p,highlightOnHoverColor:g,striped:T,highlightOnHover:S,withColumnBorders:y,withRowBorders:F,withTableBorder:U,borderColor:oe,layout:se,variant:V,data:_,children:W,stickyHeader:q,stickyHeaderOffset:le,mod:G,tabularNums:J,attributes:K,...L}=t,k=P({name:"Table",props:t,className:l,style:i,classes:f,classNames:o,styles:n,unstyled:c,attributes:K,rootSelector:"table",vars:d,varsResolver:ae});return a.jsx(X,{value:{getStyles:k,stickyHeader:q,striped:T===!0?"odd":T||void 0,highlightOnHover:S,withColumnBorders:y,withRowBorders:F,captionSide:h||"bottom"},children:a.jsx(N,{component:"table",variant:V,ref:r,mod:[{"data-with-table-border":U,"data-tabular-nums":J},G],...k("table"),...L,children:W||!!_&&a.jsx(R,{data:_})})})});s.classes=f;s.displayName="@mantine/core/Table";s.Td=A;s.Th=j;s.Tr=v;s.Thead=D;s.Tbody=z;s.Tfoot=E;s.Caption=I;s.ScrollContainer=H;s.DataRenderer=R;export{s as T};
@@ -0,0 +1 @@
1
+ import{ax as Me,a5 as Ae,b3 as $e,r as i,c as Ke,f as j,d as E,bf as We,aj as Z,j as b,bg as G,aN as J,bh as Be,B as N,bi as He,g as Ue,bb as Xe,be as Ye,e as qe,bj as Q,a1 as Le,bk as Ze,bl as U,aB as X,a as Ge,bm as Je,bn as Qe,bo as Y,bp as er,bq as q,br as rr,bs as tr,bt as L,o as ee,az as or,al as nr,q as sr,bu as ar,bv as ir,s as lr,t as re,bw as cr,a2 as dr,v as ur,w as fr}from"./entry.DqiMGelS.js";import{n as pr}from"./chunk.BjFrJKj1.js";import{u as wr}from"./chunk.B4XxoeIU.js";function Sr(e,n){const o=Me(),t=Ae($e),[l,p]=i.useState(!1),[u,a]=i.useState(),[s,v]=i.useState(),d=i.useRef(!1),c=i.useRef(void 0),r=i.useRef(void 0),m=i.useRef(!0),w=i.useRef(void 0);i.useEffect(()=>()=>{m.current=!1,c.current&&(t.clearTimeout(c.current),c.current=void 0),w.current&&(t.clearInterval(w.current),w.current=void 0),r.current&&(r.current.abort(),r.current=void 0)},[]);const y=i.useCallback(async(...x)=>{if(d.current)return;r.current&&r.current.abort();const P=new AbortController;r.current=P,d.current=!0,p(!0),a(void 0),await o.events.emit("react:action:begin",{type:"custom",id:e.id});try{const g=await e.handler(...x,{signal:P.signal});return v(g),!m.current||P.signal.aborted?void 0:(await o.events.emit("react:action:success",{type:"custom",id:e.id}),e.onSuccess&&await e.onSuccess(g),g)}catch(g){if(g instanceof Error&&g.name==="AbortError"||!m.current)return;const C=g;if(a(C),await o.events.emit("react:action:error",{type:"custom",id:e.id,error:C}),e.onError)await e.onError(C);else throw C}finally{d.current=!1,p(!1),await o.events.emit("react:action:end",{type:"custom",id:e.id}),r.current===P&&(r.current=void 0)}},[...n,e.id,e.onError,e.onSuccess]),h=i.useCallback(async(...x)=>e.debounce?(c.current&&t.clearTimeout(c.current),new Promise(P=>{c.current=t.createTimeout(async()=>{const g=await y(...x);P(g)},e.debounce??0)})):y(...x),[y,e.debounce]),O=i.useCallback(()=>{c.current&&(t.clearTimeout(c.current),c.current=void 0),r.current&&(r.current.abort(),r.current=void 0),m.current&&(d.current=!1,p(!1))},[]);return i.useEffect(()=>{e.runOnInit&&h()},n),i.useEffect(()=>{if(e.runEvery)return w.current=t.createInterval(()=>h(),e.runEvery,!0),()=>{w.current&&(t.clearInterval(w.current),w.current=void 0)}},[h,e.runEvery]),{run:h,loading:l,error:u,cancel:O,result:s}}function gr(e,n={active:!0}){return typeof e!="function"||!n.active?n.onKeyDown||pr:o=>{o.key==="Escape"&&(e(o),n.onTrigger?.())}}const[vr,te]=Ke("Popover component was not found in the tree");var oe={dropdown:"m_38a85659",arrow:"m_a31dc6c1",overlay:"m_3d7bc908"};const k=j((e,n)=>{const o=E("PopoverDropdown",null,e),{className:t,style:l,vars:p,children:u,onKeyDownCapture:a,variant:s,classNames:v,styles:d,...c}=o,r=te(),m=We({opened:r.opened,shouldReturnFocus:r.returnFocus}),w=r.withRoles?{"aria-labelledby":r.getTargetId(),id:r.getDropdownId(),role:"dialog",tabIndex:-1}:{},y=Z(n,r.floating);return r.disabled?null:b.jsx(G,{...r.portalProps,withinPortal:r.withinPortal,children:b.jsx(J,{mounted:r.opened,...r.transitionProps,transition:r.transitionProps?.transition||"fade",duration:r.transitionProps?.duration??150,keepMounted:r.keepMounted,exitDuration:typeof r.transitionProps?.exitDuration=="number"?r.transitionProps.exitDuration:r.transitionProps?.duration,children:h=>b.jsx(Be,{active:r.trapFocus&&r.opened,innerRef:y,children:b.jsxs(N,{...w,...c,variant:s,onKeyDownCapture:gr(()=>{r.onClose?.(),r.onDismiss?.()},{active:r.closeOnEscape,onTrigger:m,onKeyDown:a}),"data-position":r.placement,"data-fixed":r.floatingStrategy==="fixed"||void 0,...r.getStyles("dropdown",{className:t,props:o,classNames:v,styles:d,style:[{...h,zIndex:r.zIndex,top:r.y??0,left:r.x??0,width:r.width==="target"?void 0:Ue(r.width),...r.referenceHidden?{display:"none"}:null},r.resolvedStyles.dropdown,d?.dropdown,l]}),children:[u,b.jsx(He,{ref:r.arrowRef,arrowX:r.arrowX,arrowY:r.arrowY,visible:r.withArrow,position:r.placement,arrowSize:r.arrowSize,arrowRadius:r.arrowRadius,arrowOffset:r.arrowOffset,arrowPosition:r.arrowPosition,...r.getStyles("arrow",{props:o,classNames:v,styles:d})})]})})})})});k.classes=oe;k.displayName="@mantine/core/PopoverDropdown";const mr={refProp:"ref",popupType:"dialog"},ne=j((e,n)=>{const{children:o,refProp:t,popupType:l,...p}=E("PopoverTarget",mr,e),u=Xe(o);if(!u)throw new Error("Popover.Target component children should be an element or a component that accepts ref. Fragments, strings, numbers and other primitive values are not supported");const a=p,s=te(),v=Z(s.reference,Ye(u),n),d=s.withRoles?{"aria-haspopup":l,"aria-expanded":s.opened,"aria-controls":s.opened?s.getDropdownId():void 0,id:s.getTargetId()}:{},c=u.props;return i.cloneElement(u,{...a,...d,...s.targetProps,className:qe(s.targetProps.className,a.className,c.className),[t]:v,...s.controlled?null:{onClick:()=>{s.onToggle(),c.onClick?.()}}})});ne.displayName="@mantine/core/PopoverTarget";function hr(e){if(e===void 0)return{shift:!0,flip:!0};const n={...e};return e.shift===void 0&&(n.shift=!0),e.flip===void 0&&(n.flip=!0),n}function br(e,n,o){const t=hr(e.middlewares),l=[Je(e.offset),Qe()];return e.dropdownVisible&&o!=="test"&&e.preventPositionChangeWhenVisible&&(t.flip=!1),t.flip&&l.push(typeof t.flip=="boolean"?Y():Y(t.flip)),t.shift&&l.push(er(typeof t.shift=="boolean"?{limiter:L(),padding:5}:{limiter:L(),padding:5,...t.shift})),t.inline&&l.push(typeof t.inline=="boolean"?q():q(t.inline)),l.push(rr({element:e.arrowRef,padding:e.arrowOffset})),(t.size||e.width==="target")&&l.push(tr({...typeof t.size=="boolean"?{}:t.size,apply({rects:p,availableWidth:u,availableHeight:a,...s}){const d=n().refs.floating.current?.style??{};t.size&&(typeof t.size=="object"&&t.size.apply?t.size.apply({rects:p,availableWidth:u,availableHeight:a,...s}):Object.assign(d,{maxWidth:`${u}px`,maxHeight:`${a}px`})),e.width==="target"&&Object.assign(d,{width:`${p.reference.width}px`})}})),l}function yr(e){const n=Q(),[o,t]=Le({value:e.opened,defaultValue:e.defaultOpened,finalValue:!1,onChange:e.onChange}),l=i.useRef(o),p=()=>{o&&!e.disabled&&t(!1)},u=()=>{e.disabled||t(!o)},a=Ze({strategy:e.strategy,placement:e.preventPositionChangeWhenVisible?e.positionRef.current:e.position,middleware:br(e,()=>a,n),whileElementsMounted:e.keepMounted?void 0:U});return i.useEffect(()=>{if(!(!a.refs.reference.current||!a.refs.floating.current)&&o)return U(a.refs.reference.current,a.refs.floating.current,a.update)},[o,a.update]),X(()=>{e.onPositionChange?.(a.placement),e.positionRef.current=a.placement},[a.placement,e.preventPositionChangeWhenVisible]),X(()=>{o!==l.current&&(o?e.onOpen?.():e.onClose?.()),l.current=o},[o,e.onClose,e.onOpen]),Ge(()=>{let s=-1;return o&&(s=window.setTimeout(()=>e.setDropdownVisible(!0),4)),()=>{window.clearTimeout(s)}},[o,e.position]),{floating:a,controlled:typeof e.opened=="boolean",opened:o,onClose:p,onToggle:u}}const Pr={position:"bottom",offset:8,positionDependencies:[],transitionProps:{transition:"fade",duration:150},middlewares:{flip:!0,shift:!0,inline:!1},arrowSize:7,arrowOffset:5,arrowRadius:0,arrowPosition:"side",closeOnClickOutside:!0,withinPortal:!0,closeOnEscape:!0,trapFocus:!1,withRoles:!0,returnFocus:!1,withOverlay:!1,hideDetached:!0,clickOutsideEvents:["mousedown","touchstart"],zIndex:lr("popover"),__staticSelector:"Popover",width:"max-content"},xr=re((e,{radius:n,shadow:o})=>({dropdown:{"--popover-radius":n===void 0?void 0:dr(n),"--popover-shadow":cr(o)}}));function D(e){const n=E("Popover",Pr,e),{children:o,position:t,offset:l,onPositionChange:p,positionDependencies:u,opened:a,transitionProps:s,onExitTransitionEnd:v,onEnterTransitionEnd:d,width:c,middlewares:r,withArrow:m,arrowSize:w,arrowOffset:y,arrowRadius:h,arrowPosition:O,unstyled:x,classNames:P,styles:g,closeOnClickOutside:C,withinPortal:I,portalProps:ie,closeOnEscape:le,clickOutsideEvents:ce,trapFocus:de,onClose:ue,onDismiss:S,onOpen:fe,onChange:pe,zIndex:we,radius:ge,shadow:ve,id:me,defaultOpened:F,__staticSelector:V,withRoles:he,disabled:_,returnFocus:be,variant:ye,keepMounted:M,vars:Pe,floatingStrategy:A,withOverlay:xe,overlayProps:T,hideDetached:Re,attributes:Ce,preventPositionChangeWhenVisible:z,...Ee}=n,$=ee({name:V,props:n,classes:oe,classNames:P,styles:g,unstyled:x,attributes:Ce,rootSelector:"dropdown",vars:Pe,varsResolver:xr}),{resolvedStyles:De}=or({classNames:P,styles:g,props:n}),[Oe,K]=i.useState(a??F??!1),W=i.useRef(t),B=i.useRef(null),[Se,Te]=i.useState(null),[ze,Ne]=i.useState(null),{dir:je}=nr(),ke=Q(),H=sr(me),f=yr({middlewares:r,width:c,position:ar(je,t),offset:typeof l=="number"?l+(m?w/2:0):l,arrowRef:B,arrowOffset:y,onPositionChange:p,positionDependencies:u,opened:a,defaultOpened:F,onChange:pe,onOpen:fe,onClose:ue,onDismiss:S,strategy:A,dropdownVisible:Oe,setDropdownVisible:K,positionRef:W,disabled:_,preventPositionChangeWhenVisible:z,keepMounted:M});wr(()=>{C&&(f.onClose(),S?.())},ce,[Se,ze]);const Ie=i.useCallback(R=>{Te(R),f.floating.refs.setReference(R)},[f.floating.refs.setReference]),Fe=i.useCallback(R=>{Ne(R),f.floating.refs.setFloating(R)},[f.floating.refs.setFloating]),Ve=i.useCallback(()=>{s?.onExited?.(),v?.(),K(!1),z||(W.current=t)},[s?.onExited,v,z,t]),_e=i.useCallback(()=>{s?.onEntered?.(),d?.()},[s?.onEntered,d]);return b.jsxs(vr,{value:{returnFocus:be,disabled:_,controlled:f.controlled,reference:Ie,floating:Fe,x:f.floating.x,y:f.floating.y,arrowX:f.floating?.middlewareData?.arrow?.x,arrowY:f.floating?.middlewareData?.arrow?.y,opened:f.opened,arrowRef:B,transitionProps:{...s,onExited:Ve,onEntered:_e},width:c,withArrow:m,arrowSize:w,arrowOffset:y,arrowRadius:h,arrowPosition:O,placement:f.floating.placement,trapFocus:de,withinPortal:I,portalProps:ie,zIndex:we,radius:ge,shadow:ve,closeOnEscape:le,onDismiss:S,onClose:f.onClose,onToggle:f.onToggle,getTargetId:()=>`${H}-target`,getDropdownId:()=>`${H}-dropdown`,withRoles:he,targetProps:Ee,__staticSelector:V,classNames:P,styles:g,unstyled:x,variant:ye,keepMounted:M,getStyles:$,resolvedStyles:De,floatingStrategy:A,referenceHidden:Re&&ke!=="test"?f.floating.middlewareData.hide?.referenceHidden:!1},children:[o,xe&&b.jsx(J,{transition:"fade",mounted:f.opened,duration:s?.duration||250,exitDuration:s?.exitDuration||250,children:R=>b.jsx(G,{withinPortal:I,children:b.jsx(ir,{...T,...$("overlay",{className:T?.className,style:[R,T?.style]})})})})]})}D.Target=ne;D.Dropdown=k;D.displayName="@mantine/core/Popover";D.extend=e=>e;var se={root:"m_3eebeb36",label:"m_9e365f20"};const Rr={orientation:"horizontal"},Cr=re((e,{color:n,variant:o,size:t})=>({root:{"--divider-color":n?fr(n,e):void 0,"--divider-border-style":o,"--divider-size":ur(t,"divider-size")}})),ae=j((e,n)=>{const o=E("Divider",Rr,e),{classNames:t,className:l,style:p,styles:u,unstyled:a,vars:s,color:v,orientation:d,label:c,labelPosition:r,mod:m,attributes:w,...y}=o,h=ee({name:"Divider",classes:se,props:o,className:l,style:p,classNames:t,styles:u,unstyled:a,attributes:w,vars:s,varsResolver:Cr});return b.jsx(N,{ref:n,mod:[{orientation:d,"with-label":!!c},m],...h("root"),...y,role:"separator",children:c&&b.jsx(N,{component:"span",mod:{position:r},...h("label"),children:c})})});ae.classes=se;ae.displayName="@mantine/core/Divider";export{ae as D,D as P,Sr as u};
@@ -1 +1 @@
1
- import{x as t,j as e,F as l,T as s,Z as o}from"./entry.BdraBs_7.js";import{A as a}from"./chunk.yhAz0qwe.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};
1
+ import{x as t,j as e,F as l,T as s,$ as o}from"./entry.DqiMGelS.js";import{A as a}from"./chunk.DqdWWOSs.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};
@@ -0,0 +1,2 @@
1
+ import{c as W,f as B,d as N,j as e,U as xe,B as w,a0 as fe,q as ve,a1 as Q,o as je,t as ge,a2 as ye,g as be,a3 as Ce,r as f,a4 as Se,x as Ie,T as b,a5 as X,a6 as Y,a7 as A,a8 as ze,a9 as Z,aa as Ae,ab as ee,ac as se,ad as te,ae as oe,af as ne,ag as we,K as Pe,L as V,F as J,P as Te,ah as Ne,C as Re}from"./entry.DqiMGelS.js";import{d as _e}from"./chunk.D1-ODKSf.js";import{B as k,S as O}from"./chunk.BLgG-Amn.js";import{C as U}from"./chunk.DXhVYZJu.js";import{T as Ee}from"./chunk.DrLudrGo.js";import{I as Oe}from"./chunk.Bz4bTzr0.js";import{g as G,T as z}from"./chunk.DAeCHJ5Z.js";import{A as re}from"./chunk.DN2ng7Ec.js";import{c as Be}from"./chunk.BlqFPyLh.js";import{I as ke}from"./chunk.DkirMznI.js";import{S as Le}from"./chunk.D4SUrYI2.js";import"./chunk.uyVen0u2.js";const[Je,M]=W("Accordion component was not found in the tree");var R={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"),D=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),_=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 _?e.jsx(T,{...a.getStyles("itemTitle",{classNames:t,styles:l}),children:v}):v});D.displayName="@mantine/core/AccordionControl";D.classes=R;const $=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})})});$.displayName="@mantine/core/AccordionItem";$.classes=R;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=R;const Me={multiple:!1,disableChevronRotation:!1,chevronPosition:"right",variant:"default",chevronSize:"auto",chevronIconSize:16},De=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:_,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)},H=je({name:"Accordion",classes:R,props:o,className:d,style:x,classNames:t,styles:l,unstyled:g,attributes:ie,vars:c,varsResolver:De});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:H,variant:P,unstyled:g},children:e.jsx(w,{...H("root"),id:L,...ce,variant:P,"data-accordion":!0,children:m})})}const $e=s=>s;j.extend=$e;j.withProps=Ce(j);j.classes=R;j.displayName="@mantine/core/Accordion";j.Item=$;j.Panel=F;j.Control=D;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"},q=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)),_=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:_,onBlur:T,ref:o,readOnly:n,...h,autoComplete:"off",__staticSelector:"JsonInput",error:a?i:g||!0,"data-monospace":!0})});q.classes=Se.classes;q.displayName="@mantine/core/JsonInput";const qe=[["path",{d:"M5 7l5 5l-5 5",key:"svg-0"}],["path",{d:"M12 19l7 0",key:"svg-1"}]],He=Ie("outline","terminal","Terminal",qe),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(q,{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(He,{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:_e}}).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(Re,{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};
@@ -1 +1 @@
1
- import{ar as t}from"./entry.BdraBs_7.js";const e=t.object({name:t.text(),group:t.text(),method:t.text(),path:t.text(),prefix:t.text(),fullPath:t.text(),description:t.optional(t.text()),summary:t.optional(t.text()),disabled:t.optional(t.boolean()),secure:t.optional(t.boolean()),hide:t.optional(t.boolean()),body:t.optional(t.any()),params:t.optional(t.any()),query:t.optional(t.any()),response:t.optional(t.any()),bodyContentType:t.optional(t.text())}),a=t.object({name:t.text(),description:t.optional(t.text()),schema:t.any(),defaultValue:t.optional(t.any()),currentValue:t.optional(t.any())}),o=t.object({name:t.text(),description:t.optional(t.text()),mimeTypes:t.optional(t.array(t.text())),maxSize:t.optional(t.number()),provider:t.text()}),n=t.object({name:t.text(),ttl:t.optional(t.any()),disabled:t.optional(t.boolean()),provider:t.text()}),r=t.object({name:t.text(),description:t.optional(t.text()),hidden:t.optional(t.boolean())}),i=t.object({name:t.text(),type:t.text(),nullable:t.boolean(),primaryKey:t.boolean(),identity:t.boolean(),createdAt:t.boolean(),updatedAt:t.boolean(),deletedAt:t.boolean(),version:t.boolean(),hasDefault:t.boolean(),ref:t.optional(t.object({entity:t.text(),column:t.text(),onUpdate:t.optional(t.text()),onDelete:t.optional(t.text())}))}),l=t.object({name:t.optional(t.text()),columns:t.array(t.text()),unique:t.boolean()}),c=t.object({name:t.optional(t.text()),columns:t.array(t.text()),foreignEntity:t.text(),foreignColumns:t.array(t.text())}),s=t.object({name:t.optional(t.text()),columns:t.array(t.text()),unique:t.boolean(),hasCheck:t.boolean()}),p=t.object({name:t.text(),provider:t.text(),columns:t.array(i),indexes:t.array(l),foreignKeys:t.array(c),constraints:t.array(s)}),d=t.object({propertyKey:t.text(),schema:t.any(),values:t.record(t.text(),t.any()),serviceName:t.optional(t.text())}),m=t.object({name:t.text(),providers:t.array(t.text())}),y=t.object({name:t.text(),description:t.optional(t.text()),path:t.optional(t.text()),params:t.optional(t.any()),query:t.optional(t.any()),hasComponent:t.boolean(),hasLazy:t.boolean(),hasResolve:t.boolean(),hasChildren:t.boolean(),hasParent:t.boolean(),hasErrorHandler:t.boolean(),static:t.optional(t.boolean()),cache:t.optional(t.any()),client:t.optional(t.any()),animation:t.optional(t.any())}),x=t.object({name:t.text(),module:t.optional(t.text()),dependencies:t.array(t.text()),aliases:t.optional(t.array(t.text()))}),b=t.object({name:t.text(),description:t.optional(t.text()),schema:t.optional(t.any()),provider:t.text()}),h=t.object({name:t.text(),description:t.optional(t.text()),roles:t.optional(t.array(t.any())),type:t.enum(["internal","external"]),settings:t.optional(t.object({accessTokenExpiration:t.optional(t.any()),refreshTokenExpiration:t.optional(t.any()),hasOnCreateSession:t.boolean(),hasOnRefreshSession:t.boolean(),hasOnDeleteSession:t.boolean()}))}),u=t.object({method:t.text(),path:t.text()}),v=t.object({name:t.text(),description:t.optional(t.text()),cron:t.optional(t.text()),interval:t.optional(t.any()),lock:t.optional(t.boolean())}),S=t.object({name:t.text(),description:t.optional(t.text()),schema:t.optional(t.any()),provider:t.text()}),M=t.object({actions:t.array(e),queues:t.array(b),schedulers:t.array(v),topics:t.array(S),buckets:t.array(o),realms:t.array(h),caches:t.array(n),pages:t.array(y),providers:t.array(x),modules:t.array(m),entities:t.array(p),commands:t.array(r),routes:t.array(u),envs:t.array(d),atoms:t.array(a)});export{M as d};
1
+ import{at as t}from"./entry.DqiMGelS.js";const e=t.object({name:t.text(),group:t.text(),method:t.text(),path:t.text(),prefix:t.text(),fullPath:t.text(),description:t.optional(t.text()),summary:t.optional(t.text()),disabled:t.optional(t.boolean()),secure:t.optional(t.boolean()),hide:t.optional(t.boolean()),body:t.optional(t.any()),params:t.optional(t.any()),query:t.optional(t.any()),response:t.optional(t.any()),bodyContentType:t.optional(t.text())}),a=t.object({name:t.text(),description:t.optional(t.text()),schema:t.any(),defaultValue:t.optional(t.any()),currentValue:t.optional(t.any())}),o=t.object({name:t.text(),description:t.optional(t.text()),mimeTypes:t.optional(t.array(t.text())),maxSize:t.optional(t.number()),provider:t.text()}),n=t.object({name:t.text(),ttl:t.optional(t.any()),disabled:t.optional(t.boolean()),provider:t.text()}),r=t.object({name:t.text(),description:t.optional(t.text()),hidden:t.optional(t.boolean())}),i=t.object({name:t.text(),type:t.text(),nullable:t.boolean(),primaryKey:t.boolean(),identity:t.boolean(),createdAt:t.boolean(),updatedAt:t.boolean(),deletedAt:t.boolean(),version:t.boolean(),hasDefault:t.boolean(),ref:t.optional(t.object({entity:t.text(),column:t.text(),onUpdate:t.optional(t.text()),onDelete:t.optional(t.text())}))}),l=t.object({name:t.optional(t.text()),columns:t.array(t.text()),unique:t.boolean()}),c=t.object({name:t.optional(t.text()),columns:t.array(t.text()),foreignEntity:t.text(),foreignColumns:t.array(t.text())}),s=t.object({name:t.optional(t.text()),columns:t.array(t.text()),unique:t.boolean(),hasCheck:t.boolean()}),p=t.object({name:t.text(),provider:t.text(),columns:t.array(i),indexes:t.array(l),foreignKeys:t.array(c),constraints:t.array(s)}),d=t.object({propertyKey:t.text(),schema:t.any(),values:t.record(t.text(),t.any()),serviceName:t.optional(t.text())}),m=t.object({name:t.text(),providers:t.array(t.text())}),y=t.object({name:t.text(),description:t.optional(t.text()),path:t.optional(t.text()),params:t.optional(t.any()),query:t.optional(t.any()),hasComponent:t.boolean(),hasLazy:t.boolean(),hasResolve:t.boolean(),hasChildren:t.boolean(),hasParent:t.boolean(),hasErrorHandler:t.boolean(),static:t.optional(t.boolean()),cache:t.optional(t.any()),client:t.optional(t.any()),animation:t.optional(t.any())}),x=t.object({name:t.text(),module:t.optional(t.text()),dependencies:t.array(t.text()),aliases:t.optional(t.array(t.text()))}),b=t.object({name:t.text(),description:t.optional(t.text()),schema:t.optional(t.any()),provider:t.text()}),h=t.object({name:t.text(),description:t.optional(t.text()),roles:t.optional(t.array(t.any())),type:t.enum(["internal","external"]),settings:t.optional(t.object({accessTokenExpiration:t.optional(t.any()),refreshTokenExpiration:t.optional(t.any()),hasOnCreateSession:t.boolean(),hasOnRefreshSession:t.boolean(),hasOnDeleteSession:t.boolean()}))}),u=t.object({method:t.text(),path:t.text()}),v=t.object({name:t.text(),description:t.optional(t.text()),cron:t.optional(t.text()),interval:t.optional(t.any()),lock:t.optional(t.boolean())}),S=t.object({name:t.text(),description:t.optional(t.text()),schema:t.optional(t.any()),provider:t.text()}),M=t.object({actions:t.array(e),queues:t.array(b),schedulers:t.array(v),topics:t.array(S),buckets:t.array(o),realms:t.array(h),caches:t.array(n),pages:t.array(y),providers:t.array(x),modules:t.array(m),entities:t.array(p),commands:t.array(r),routes:t.array(u),envs:t.array(d),atoms:t.array(a)});export{M as d};
@@ -0,0 +1 @@
1
+ import{r,bx as E,f as F,d as L,o as W,aj as B,j as x,B as I,t as M,l as oe,by as O,a1 as ae,q as ie,an as ue,aL as le,v as ce,w as de,a2 as fe}from"./entry.DqiMGelS.js";import{g as me}from"./chunk.uyVen0u2.js";function ve(t,e){if(t===e||Number.isNaN(t)&&Number.isNaN(e))return!0;if(!(t instanceof Object)||!(e instanceof Object))return!1;const n=Object.keys(t),{length:o}=n;if(o!==Object.keys(e).length)return!1;for(let a=0;a<o;a+=1){const i=n[a];if(!(i in e)||t[i]!==e[i]&&!(Number.isNaN(t[i])&&Number.isNaN(e[i])))return!1}return!0}function he(t,e){if(!t||!e)return!1;if(t===e)return!0;if(t.length!==e.length)return!1;for(let n=0;n<t.length;n+=1)if(!ve(t[n],e[n]))return!1;return!0}function be(t){const e=r.useRef([]),n=r.useRef(0);return he(e.current,t)||(e.current=t,n.current+=1),[n.current]}function ge(t,e){r.useEffect(t,be(e))}function pe(t,e,n={autoInvoke:!1}){const o=r.useRef(null),a=r.useCallback((...m)=>{o.current||(o.current=window.setTimeout(()=>{t(m),o.current=null},e))},[e]),i=r.useCallback(()=>{o.current&&(window.clearTimeout(o.current),o.current=null)},[]);return r.useEffect(()=>(n.autoInvoke&&a(),i),[i,a]),{start:a,clear:i}}function ye(t,e,n){const o=r.useRef(null),a=r.useRef(null);return r.useEffect(()=>{const i=typeof n=="function"?n():n;return(i||a.current)&&(o.current=new MutationObserver(t),o.current.observe(i||a.current,e)),()=>{o.current?.disconnect()}},[t,e]),a}function Re(){const[t,e]=r.useState(!1);return r.useEffect(()=>e(!0),[]),t}var P={root:"m_96b553a6"};function we(t,e){if(!e||!t)return!1;let n=e.parentNode;for(;n!=null;){if(n===t)return!0;n=n.parentNode}return!1}function Se({target:t,parent:e,ref:n,displayAfterTransitionEnd:o}){const a=r.useRef(-1),[i,m]=r.useState(!1),[w,S]=r.useState(typeof o=="boolean"?o:!1),l=()=>{if(!t||!e||!n.current)return;const u=t.getBoundingClientRect(),c=e.getBoundingClientRect(),f=window.getComputedStyle(t),h=window.getComputedStyle(e),p=E(f.borderTopWidth)+E(h.borderTopWidth),y=E(f.borderLeftWidth)+E(h.borderLeftWidth),b={top:u.top-c.top-p,left:u.left-c.left-y,width:u.width,height:u.height};n.current.style.transform=`translateY(${b.top}px) translateX(${b.left}px)`,n.current.style.width=`${b.width}px`,n.current.style.height=`${b.height}px`},d=()=>{window.clearTimeout(a.current),n.current&&(n.current.style.transitionDuration="0ms"),l(),a.current=window.setTimeout(()=>{n.current&&(n.current.style.transitionDuration="")},30)},g=r.useRef(null),v=r.useRef(null);return r.useEffect(()=>{if(l(),t)return g.current=new ResizeObserver(d),g.current.observe(t),e&&(v.current=new ResizeObserver(d),v.current.observe(e)),()=>{g.current?.disconnect(),v.current?.disconnect()}},[e,t]),r.useEffect(()=>{if(e){const u=c=>{we(c.target,e)&&(d(),S(!1))};return e.addEventListener("transitionend",u),()=>{e.removeEventListener("transitionend",u)}}},[e]),pe(()=>{me()!=="test"&&m(!0)},20,{autoInvoke:!0}),ye(u=>{u.forEach(c=>{c.type==="attributes"&&c.attributeName==="dir"&&d()})},{attributes:!0,attributeFilter:["dir"]},()=>document.documentElement),{initialized:i,hidden:w}}const Ce=M((t,{transitionDuration:e})=>({root:{"--transition-duration":typeof e=="number"?`${e}ms`:e}})),_=F((t,e)=>{const n=L("FloatingIndicator",null,t),{classNames:o,className:a,style:i,styles:m,unstyled:w,vars:S,target:l,parent:d,transitionDuration:g,mod:v,displayAfterTransitionEnd:u,attributes:c,...f}=n,h=W({name:"FloatingIndicator",classes:P,props:n,className:a,style:i,classNames:o,styles:m,unstyled:w,attributes:c,vars:S,varsResolver:Ce}),p=r.useRef(null),{initialized:y,hidden:b}=Se({target:l,parent:d,ref:p,displayAfterTransitionEnd:u}),N=B(e,p);return!l||!d?null:x.jsx(I,{ref:N,mod:[{initialized:y,hidden:b},v],...h("root"),...f})});_.displayName="@mantine/core/FloatingIndicator";_.classes=P;var A={root:"m_cf365364",indicator:"m_9e182ccd",label:"m_1738fcb2",input:"m_1714d588",control:"m_69686b9b",innerLabel:"m_78882f40"};const Ne={withItemsBorders:!0},Ee=M((t,{radius:e,color:n,transitionDuration:o,size:a,transitionTimingFunction:i})=>({root:{"--sc-radius":e===void 0?void 0:fe(e),"--sc-color":n?de(n,t):void 0,"--sc-shadow":n?void 0:"var(--mantine-shadow-xs)","--sc-transition-duration":o===void 0?void 0:`${o}ms`,"--sc-transition-timing-function":i,"--sc-padding":ce(a,"sc-padding"),"--sc-font-size":le(a)}})),q=F((t,e)=>{const n=L("SegmentedControl",Ne,t),{classNames:o,className:a,style:i,styles:m,unstyled:w,vars:S,data:l,value:d,defaultValue:g,onChange:v,size:u,name:c,disabled:f,readOnly:h,fullWidth:p,orientation:y,radius:b,color:N,transitionDuration:xe,transitionTimingFunction:Ie,variant:D,autoContrast:H,withItemsBorders:K,mod:U,attributes:X,...Y}=n,R=W({name:"SegmentedControl",props:n,classes:A,className:a,style:i,classNames:o,styles:m,unstyled:w,attributes:X,vars:S,varsResolver:Ee}),j=oe(),z=l.map(s=>typeof s=="string"?{label:s,value:s}:s),G=Re(),[J,Q]=r.useState(O()),[Z,V]=r.useState(null),[$,ee]=r.useState({}),te=(s,T)=>{$[T]=s,ee($)},[C,ne]=ae({value:d,defaultValue:g,finalValue:Array.isArray(l)?z.find(s=>!s.disabled)?.value??l[0]?.value??null:null,onChange:v}),k=ie(c),se=z.map(s=>r.createElement(I,{...R("control"),mod:{active:C===s.value,orientation:y},key:s.value},r.createElement("input",{...R("input"),disabled:f||s.disabled,type:"radio",name:k,value:s.value,id:`${k}-${s.value}`,checked:C===s.value,onChange:()=>!h&&ne(s.value),"data-focus-ring":j.focusRing,key:`${s.value}-input`}),r.createElement(I,{component:"label",...R("label"),mod:{active:C===s.value&&!(f||s.disabled),disabled:f||s.disabled,"read-only":h},htmlFor:`${k}-${s.value}`,ref:T=>te(T,s.value),__vars:{"--sc-label-color":N!==void 0?ue({color:N,theme:j,autoContrast:H}):void 0},key:`${s.value}-label`},x.jsx("span",{...R("innerLabel"),children:s.label})))),re=B(e,s=>V(s));return ge(()=>{Q(O())},[l.length]),l.length===0?null:x.jsxs(I,{...R("root"),variant:D,size:u,ref:re,mod:[{"full-width":p,orientation:y,initialized:G,"with-items-borders":K},U],...Y,role:"radiogroup","data-disabled":f,children:[typeof C=="string"&&x.jsx(_,{target:$[C],parent:Z,component:"span",transitionDuration:"var(--sc-transition-duration)",...R("indicator")},J),se]})});q.classes=A;q.displayName="@mantine/core/SegmentedControl";export{q as S};
@@ -0,0 +1 @@
1
+ import{c as q,f as j,d as C,j as u,B as k,l as F,al as H,U as G,w as z,q as J,a1 as Q,o as X,t as Y,am as Z,an as tt,a2 as et}from"./entry.DqiMGelS.js";import{c as at}from"./chunk.BlqFPyLh.js";function U(s,o){return a=>{if(typeof a!="string"||a.trim().length===0)throw new Error(o);return`${s}-${a}`}}const[st,K]=q("Tabs component was not found in the tree");var g={root:"m_89d60db1","list--default":"m_576c9d4",list:"m_89d33d6d",tab:"m_4ec4dce6",panel:"m_b0c91715",tabSection:"m_fc420b1f",tabLabel:"m_42bbd1ae","tab--default":"m_539e827b","list--outline":"m_6772fbd5","tab--outline":"m_b59ab47c","tab--pills":"m_c3381914"};const D=j((s,o)=>{const a=C("TabsList",null,s),{children:l,className:c,grow:r,justify:i,classNames:n,styles:m,style:p,mod:d,...b}=a,e=K();return u.jsx(k,{...b,...e.getStyles("list",{className:c,style:p,classNames:n,styles:m,props:a,variant:e.variant}),ref:o,role:"tablist",variant:e.variant,mod:[{grow:r,orientation:e.orientation,placement:e.orientation==="vertical"&&e.placement,inverted:e.inverted},d],"aria-orientation":e.orientation,__vars:{"--tabs-justify":i},children:l})});D.classes=g;D.displayName="@mantine/core/TabsList";const M=j((s,o)=>{const a=C("TabsPanel",null,s),{children:l,className:c,value:r,classNames:i,styles:n,style:m,mod:p,keepMounted:d,...b}=a,e=K(),v=e.value===r,y=e.keepMounted||d||v?l:null;return u.jsx(k,{...e.getStyles("panel",{className:c,classNames:i,styles:n,style:[m,v?void 0:{display:"none"}],props:a}),ref:o,mod:[{orientation:e.orientation},p],role:"tabpanel",id:e.getPanelId(r),"aria-labelledby":e.getTabId(r),...b,children:y})});M.classes=g;M.displayName="@mantine/core/TabsPanel";const V=j((s,o)=>{const a=C("TabsTab",null,s),{className:l,children:c,rightSection:r,leftSection:i,value:n,onClick:m,onKeyDown:p,disabled:d,color:b,style:e,classNames:v,styles:y,vars:N,mod:x,tabIndex:S,...P}=a,I=F(),{dir:_}=H(),t=K(),T=n===t.value,L=R=>{t.onChange(t.allowTabDeactivation&&n===t.value?null:n),m?.(R)},h={classNames:v,styles:y,props:a};return u.jsxs(G,{...t.getStyles("tab",{className:l,style:e,variant:t.variant,...h}),disabled:d,unstyled:t.unstyled,variant:t.variant,mod:[{active:T,disabled:d,orientation:t.orientation,inverted:t.inverted,placement:t.orientation==="vertical"&&t.placement},x],ref:o,role:"tab",id:t.getTabId(n),"aria-selected":T,tabIndex:S!==void 0?S:T||t.value===null?0:-1,"aria-controls":t.getPanelId(n),onClick:L,__vars:{"--tabs-color":b?z(b,I):void 0},onKeyDown:at({siblingSelector:'[role="tab"]',parentSelector:'[role="tablist"]',activateOnFocus:t.activateTabWithKeyboard,loop:t.loop,orientation:t.orientation||"horizontal",dir:_,onKeyDown:p}),...P,children:[i&&u.jsx("span",{...t.getStyles("tabSection",h),"data-position":"left",children:i}),c&&u.jsx("span",{...t.getStyles("tabLabel",h),children:c}),r&&u.jsx("span",{...t.getStyles("tabSection",h),"data-position":"right",children:r})]})});V.classes=g;V.displayName="@mantine/core/TabsTab";const $="Tabs.Tab or Tabs.Panel component was rendered with invalid value or without value",nt={keepMounted:!0,orientation:"horizontal",loop:!0,activateTabWithKeyboard:!0,variant:"default",placement:"left"},ot=Y((s,{radius:o,color:a,autoContrast:l})=>({root:{"--tabs-radius":et(o),"--tabs-color":z(a,s),"--tabs-text-color":Z(l,s)?tt({color:a,theme:s,autoContrast:l}):void 0}})),f=j((s,o)=>{const a=C("Tabs",nt,s),{defaultValue:l,value:c,onChange:r,orientation:i,children:n,loop:m,id:p,activateTabWithKeyboard:d,allowTabDeactivation:b,variant:e,color:v,radius:y,inverted:N,placement:x,keepMounted:S,classNames:P,styles:I,unstyled:_,className:t,style:T,vars:L,autoContrast:h,mod:R,attributes:A,...B}=a,w=J(p),[W,O]=Q({value:c,defaultValue:l,finalValue:null,onChange:r}),E=X({name:"Tabs",props:a,classes:g,className:t,style:T,classNames:P,styles:I,unstyled:_,attributes:A,vars:L,varsResolver:ot});return u.jsx(st,{value:{placement:x,value:W,orientation:i,id:w,loop:m,activateTabWithKeyboard:d,getTabId:U(`${w}-tab`,$),getPanelId:U(`${w}-panel`,$),onChange:O,allowTabDeactivation:b,variant:e,color:v,radius:y,inverted:N,keepMounted:S,unstyled:_,getStyles:E},children:u.jsx(k,{ref:o,id:w,variant:e,mod:[{orientation:i,inverted:i==="horizontal"&&N,placement:i==="vertical"&&x},R],...E("root"),...B,children:n})})});f.classes=g;f.displayName="@mantine/core/Tabs";f.Tab=V;f.Panel=M;f.List=D;export{f as T,U as g};
@@ -1 +1 @@
1
- import{j as o,e as n}from"./entry.BdraBs_7.js";function i({style:r,size:e=16,...l}){return o.jsx("svg",{viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg",style:{...r,width:n(e),height:n(e),display:"block"},...l,children:o.jsx("path",{d:"M3.13523 6.15803C3.3241 5.95657 3.64052 5.94637 3.84197 6.13523L7.5 9.56464L11.158 6.13523C11.3595 5.94637 11.6759 5.95657 11.8648 6.15803C12.0536 6.35949 12.0434 6.67591 11.842 6.86477L7.84197 10.6148C7.64964 10.7951 7.35036 10.7951 7.15803 10.6148L3.15803 6.86477C2.95657 6.67591 2.94637 6.35949 3.13523 6.15803Z",fill:"currentColor",fillRule:"evenodd",clipRule:"evenodd"})})}i.displayName="@mantine/core/AccordionChevron";export{i as A};
1
+ import{j as o,g as n}from"./entry.DqiMGelS.js";function i({style:r,size:e=16,...l}){return o.jsx("svg",{viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg",style:{...r,width:n(e),height:n(e),display:"block"},...l,children:o.jsx("path",{d:"M3.13523 6.15803C3.3241 5.95657 3.64052 5.94637 3.84197 6.13523L7.5 9.56464L11.158 6.13523C11.3595 5.94637 11.6759 5.95657 11.8648 6.15803C12.0536 6.35949 12.0434 6.67591 11.842 6.86477L7.84197 10.6148C7.64964 10.7951 7.35036 10.7951 7.15803 10.6148L3.15803 6.86477C2.95657 6.67591 2.94637 6.35949 3.13523 6.15803Z",fill:"currentColor",fillRule:"evenodd",clipRule:"evenodd"})})}i.displayName="@mantine/core/AccordionChevron";export{i as A};
@@ -0,0 +1,3 @@
1
+ �`��8<q%�!3��3��j�K.���P"5S�����&٪g_(<��s���F��'���H�r%�u����"�У�.U���*F�d��^�8��*��.�������9˃��8��H\���9^Tp� �دQ�h������}��z���@�uP��i%x2p��w'y����&f.�����ِ�‰�`_�
2
+  %�� �Hv��-�O�Vu8���vv�Y;:ͥ2`t�bv��٩��i>�����5²�[��j�D�R{����<N�e-�1��а��]sL�GFk��8 |z��xI���-�9�)�+�Xz�04�ȍk����lt�<����KxK�u�U�"H����<��/�i�,���u
3
+ �c�V
@@ -0,0 +1 @@
1
+ import{f as x,d as b,o as f,j as g,B as j,t as N,w as R}from"./entry.DqiMGelS.js";var a={root:"m_b183c0a2"};const h=N((e,{color:s})=>({root:{"--code-bg":s?R(s,e):void 0}})),r=x((e,s)=>{const o=b("Code",null,e),{classNames:c,className:l,style:n,styles:d,unstyled:m,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:d,unstyled:m,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};