@alepha/devtools 0.19.3 → 0.19.4

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 (188) hide show
  1. package/assets/ui/200.html +2 -2
  2. package/assets/ui/200.html.br +2 -1
  3. package/assets/ui/404.html +2 -2
  4. package/assets/ui/404.html.br +2 -1
  5. package/assets/ui/asset.Co90YiKM.css +1 -0
  6. package/assets/ui/asset.Co90YiKM.css.br +0 -0
  7. package/assets/ui/{chunk.D_-fkSwu.js → chunk.5aCoyqfh.js} +1 -1
  8. package/assets/ui/chunk.5aCoyqfh.js.br +0 -0
  9. package/assets/ui/chunk.AicQIFSI.js +1 -0
  10. package/assets/ui/chunk.AicQIFSI.js.br +0 -0
  11. package/assets/ui/{chunk.yh4jaMrg.js → chunk.B25mt84g.js} +1 -1
  12. package/assets/ui/chunk.B25mt84g.js.br +0 -0
  13. package/assets/ui/chunk.B9RkIaX-.js +1 -0
  14. package/assets/ui/chunk.B9RkIaX-.js.br +2 -0
  15. package/assets/ui/{chunk.B9jGefQy.js → chunk.BHvLlrSE.js} +1 -1
  16. package/assets/ui/chunk.BHvLlrSE.js.br +0 -0
  17. package/assets/ui/{chunk.Cj1opA98.js → chunk.BQTCyAmI.js} +1 -1
  18. package/assets/ui/chunk.BQTCyAmI.js.br +0 -0
  19. package/assets/ui/{chunk.CvCu4yZb.js → chunk.BSkVN_fO.js} +1 -1
  20. package/assets/ui/chunk.BSkVN_fO.js.br +0 -0
  21. package/assets/ui/chunk.Be6RDdvy.js +7 -0
  22. package/assets/ui/chunk.Be6RDdvy.js.br +0 -0
  23. package/assets/ui/{chunk.De1vj4hM.js → chunk.BennGilR.js} +1 -1
  24. package/assets/ui/chunk.BennGilR.js.br +0 -0
  25. package/assets/ui/chunk.Bm1U8jkC.js +1 -0
  26. package/assets/ui/chunk.Bm1U8jkC.js.br +0 -0
  27. package/assets/ui/chunk.Bu6ZqSw8.js +1 -0
  28. package/assets/ui/chunk.Bu6ZqSw8.js.br +0 -0
  29. package/assets/ui/{chunk.DYIu-C82.js → chunk.Bz4sdeJh.js} +1 -1
  30. package/assets/ui/chunk.Bz4sdeJh.js.br +0 -0
  31. package/assets/ui/{chunk.BHYZ9sAK.js → chunk.CVhxB_15.js} +1 -1
  32. package/assets/ui/chunk.CVhxB_15.js.br +0 -0
  33. package/assets/ui/chunk.CdOrvGjm.js +80 -0
  34. package/assets/ui/chunk.CdOrvGjm.js.br +0 -0
  35. package/{dist/public/chunk.9plHAFDW.js → assets/ui/chunk.Cegc4FKP.js} +1 -1
  36. package/assets/ui/chunk.Cegc4FKP.js.br +0 -0
  37. package/assets/ui/{chunk.Dc4PCYcb.js → chunk.CgYWVQAO.js} +1 -1
  38. package/assets/ui/chunk.CgYWVQAO.js.br +0 -0
  39. package/assets/ui/chunk.D5WfK8mA.js +1 -0
  40. package/assets/ui/chunk.D5WfK8mA.js.br +0 -0
  41. package/assets/ui/chunk.D6c-Jq33.js +1 -0
  42. package/assets/ui/chunk.D6c-Jq33.js.br +0 -0
  43. package/assets/ui/{chunk.DOwjsMaD.js → chunk.DGcirGNX.js} +1 -1
  44. package/assets/ui/chunk.DGcirGNX.js.br +0 -0
  45. package/assets/ui/chunk.Dab7se_P.js +1 -0
  46. package/assets/ui/chunk.Dab7se_P.js.br +0 -0
  47. package/assets/ui/{chunk.B82rsdDI.js → chunk.DyV4G4y9.js} +1 -1
  48. package/assets/ui/chunk.DyV4G4y9.js.br +0 -0
  49. package/assets/ui/{chunk.Bc7_n90V.js → chunk.W_TFMb5-.js} +1 -1
  50. package/assets/ui/chunk.W_TFMb5-.js.br +0 -0
  51. package/assets/ui/{chunk.D93ZmnLR.js → chunk.dxweq5IS.js} +1 -1
  52. package/assets/ui/chunk.dxweq5IS.js.br +1 -0
  53. package/assets/ui/{chunk.CJt_09bu.js → chunk.froMhC7u.js} +1 -1
  54. package/assets/ui/chunk.froMhC7u.js.br +0 -0
  55. package/assets/ui/{chunk.CK6Z-I-W.js → chunk.umroamPs.js} +1 -1
  56. package/assets/ui/chunk.umroamPs.js.br +0 -0
  57. package/assets/ui/{chunk.DxnuHDOY.js → chunk.uqgDIUyw.js} +1 -1
  58. package/assets/ui/chunk.uqgDIUyw.js.br +0 -0
  59. package/assets/ui/entry.DI5fIO6T.js +2 -0
  60. package/assets/ui/entry.DI5fIO6T.js.br +0 -0
  61. package/assets/ui/index.html +2 -2
  62. package/assets/ui/index.html.br +2 -1
  63. package/dist/public/200.html +2 -2
  64. package/dist/public/200.html.br +2 -1
  65. package/dist/public/404.html +2 -2
  66. package/dist/public/404.html.br +2 -1
  67. package/dist/public/asset.Co90YiKM.css +1 -0
  68. package/dist/public/asset.Co90YiKM.css.br +0 -0
  69. package/dist/public/{chunk.D_-fkSwu.js → chunk.5aCoyqfh.js} +1 -1
  70. package/dist/public/chunk.5aCoyqfh.js.br +0 -0
  71. package/dist/public/chunk.AicQIFSI.js +1 -0
  72. package/dist/public/chunk.AicQIFSI.js.br +0 -0
  73. package/dist/public/{chunk.yh4jaMrg.js → chunk.B25mt84g.js} +1 -1
  74. package/dist/public/chunk.B25mt84g.js.br +0 -0
  75. package/dist/public/chunk.B9RkIaX-.js +1 -0
  76. package/dist/public/chunk.B9RkIaX-.js.br +2 -0
  77. package/dist/public/{chunk.B9jGefQy.js → chunk.BHvLlrSE.js} +1 -1
  78. package/dist/public/chunk.BHvLlrSE.js.br +0 -0
  79. package/dist/public/{chunk.Cj1opA98.js → chunk.BQTCyAmI.js} +1 -1
  80. package/dist/public/chunk.BQTCyAmI.js.br +0 -0
  81. package/dist/public/{chunk.CvCu4yZb.js → chunk.BSkVN_fO.js} +1 -1
  82. package/dist/public/chunk.BSkVN_fO.js.br +0 -0
  83. package/dist/public/chunk.Be6RDdvy.js +7 -0
  84. package/dist/public/chunk.Be6RDdvy.js.br +0 -0
  85. package/dist/public/{chunk.De1vj4hM.js → chunk.BennGilR.js} +1 -1
  86. package/dist/public/chunk.BennGilR.js.br +0 -0
  87. package/dist/public/chunk.Bm1U8jkC.js +1 -0
  88. package/dist/public/chunk.Bm1U8jkC.js.br +0 -0
  89. package/dist/public/chunk.Bu6ZqSw8.js +1 -0
  90. package/dist/public/chunk.Bu6ZqSw8.js.br +0 -0
  91. package/dist/public/{chunk.DYIu-C82.js → chunk.Bz4sdeJh.js} +1 -1
  92. package/dist/public/chunk.Bz4sdeJh.js.br +0 -0
  93. package/dist/public/{chunk.BHYZ9sAK.js → chunk.CVhxB_15.js} +1 -1
  94. package/dist/public/chunk.CVhxB_15.js.br +0 -0
  95. package/dist/public/chunk.CdOrvGjm.js +80 -0
  96. package/dist/public/chunk.CdOrvGjm.js.br +0 -0
  97. package/{assets/ui/chunk.9plHAFDW.js → dist/public/chunk.Cegc4FKP.js} +1 -1
  98. package/dist/public/chunk.Cegc4FKP.js.br +0 -0
  99. package/dist/public/{chunk.Dc4PCYcb.js → chunk.CgYWVQAO.js} +1 -1
  100. package/dist/public/chunk.CgYWVQAO.js.br +0 -0
  101. package/dist/public/chunk.D5WfK8mA.js +1 -0
  102. package/dist/public/chunk.D5WfK8mA.js.br +0 -0
  103. package/dist/public/chunk.D6c-Jq33.js +1 -0
  104. package/dist/public/chunk.D6c-Jq33.js.br +0 -0
  105. package/dist/public/{chunk.DOwjsMaD.js → chunk.DGcirGNX.js} +1 -1
  106. package/dist/public/chunk.DGcirGNX.js.br +0 -0
  107. package/dist/public/chunk.Dab7se_P.js +1 -0
  108. package/dist/public/chunk.Dab7se_P.js.br +0 -0
  109. package/dist/public/{chunk.B82rsdDI.js → chunk.DyV4G4y9.js} +1 -1
  110. package/dist/public/chunk.DyV4G4y9.js.br +0 -0
  111. package/dist/public/{chunk.Bc7_n90V.js → chunk.W_TFMb5-.js} +1 -1
  112. package/dist/public/chunk.W_TFMb5-.js.br +0 -0
  113. package/dist/public/{chunk.D93ZmnLR.js → chunk.dxweq5IS.js} +1 -1
  114. package/dist/public/chunk.dxweq5IS.js.br +1 -0
  115. package/dist/public/{chunk.CJt_09bu.js → chunk.froMhC7u.js} +1 -1
  116. package/dist/public/chunk.froMhC7u.js.br +0 -0
  117. package/dist/public/{chunk.CK6Z-I-W.js → chunk.umroamPs.js} +1 -1
  118. package/dist/public/chunk.umroamPs.js.br +0 -0
  119. package/dist/public/{chunk.DxnuHDOY.js → chunk.uqgDIUyw.js} +1 -1
  120. package/dist/public/chunk.uqgDIUyw.js.br +0 -0
  121. package/dist/public/entry.DI5fIO6T.js +2 -0
  122. package/dist/public/entry.DI5fIO6T.js.br +0 -0
  123. package/dist/public/index.html +2 -2
  124. package/dist/public/index.html.br +2 -1
  125. package/package.json +11 -11
  126. package/src/entities/logs.ts +3 -1
  127. package/assets/ui/asset.Cxu56LSy.css +0 -1
  128. package/assets/ui/asset.Cxu56LSy.css.br +0 -0
  129. package/assets/ui/chunk.9plHAFDW.js.br +0 -0
  130. package/assets/ui/chunk.B82rsdDI.js.br +0 -0
  131. package/assets/ui/chunk.B9jGefQy.js.br +0 -0
  132. package/assets/ui/chunk.BHYZ9sAK.js.br +0 -0
  133. package/assets/ui/chunk.Bc7_n90V.js.br +0 -0
  134. package/assets/ui/chunk.CCbhJSL_.js +0 -1
  135. package/assets/ui/chunk.CCbhJSL_.js.br +0 -0
  136. package/assets/ui/chunk.CJt_09bu.js.br +0 -0
  137. package/assets/ui/chunk.CK6Z-I-W.js.br +0 -1
  138. package/assets/ui/chunk.Cj1opA98.js.br +0 -0
  139. package/assets/ui/chunk.CvCu4yZb.js.br +0 -0
  140. package/assets/ui/chunk.D93ZmnLR.js.br +0 -6
  141. package/assets/ui/chunk.D9MCnLj_.js +0 -7
  142. package/assets/ui/chunk.D9MCnLj_.js.br +0 -0
  143. package/assets/ui/chunk.DOwjsMaD.js.br +0 -0
  144. package/assets/ui/chunk.DYIu-C82.js.br +0 -0
  145. package/assets/ui/chunk.D_-fkSwu.js.br +0 -0
  146. package/assets/ui/chunk.Dc4PCYcb.js.br +0 -0
  147. package/assets/ui/chunk.De1vj4hM.js.br +0 -0
  148. package/assets/ui/chunk.DuQak1OK.js +0 -1
  149. package/assets/ui/chunk.DuQak1OK.js.br +0 -0
  150. package/assets/ui/chunk.DxnuHDOY.js.br +0 -0
  151. package/assets/ui/chunk.TIounDiA.js +0 -1
  152. package/assets/ui/chunk.TIounDiA.js.br +0 -0
  153. package/assets/ui/chunk.p3hCiSrt.js +0 -80
  154. package/assets/ui/chunk.p3hCiSrt.js.br +0 -0
  155. package/assets/ui/chunk.yh4jaMrg.js.br +0 -0
  156. package/assets/ui/entry.DnXws2rz.js +0 -2
  157. package/assets/ui/entry.DnXws2rz.js.br +0 -0
  158. package/dist/public/asset.Cxu56LSy.css +0 -1
  159. package/dist/public/asset.Cxu56LSy.css.br +0 -0
  160. package/dist/public/chunk.9plHAFDW.js.br +0 -0
  161. package/dist/public/chunk.B82rsdDI.js.br +0 -0
  162. package/dist/public/chunk.B9jGefQy.js.br +0 -0
  163. package/dist/public/chunk.BHYZ9sAK.js.br +0 -0
  164. package/dist/public/chunk.Bc7_n90V.js.br +0 -0
  165. package/dist/public/chunk.CCbhJSL_.js +0 -1
  166. package/dist/public/chunk.CCbhJSL_.js.br +0 -0
  167. package/dist/public/chunk.CJt_09bu.js.br +0 -0
  168. package/dist/public/chunk.CK6Z-I-W.js.br +0 -1
  169. package/dist/public/chunk.Cj1opA98.js.br +0 -0
  170. package/dist/public/chunk.CvCu4yZb.js.br +0 -0
  171. package/dist/public/chunk.D93ZmnLR.js.br +0 -6
  172. package/dist/public/chunk.D9MCnLj_.js +0 -7
  173. package/dist/public/chunk.D9MCnLj_.js.br +0 -0
  174. package/dist/public/chunk.DOwjsMaD.js.br +0 -0
  175. package/dist/public/chunk.DYIu-C82.js.br +0 -0
  176. package/dist/public/chunk.D_-fkSwu.js.br +0 -0
  177. package/dist/public/chunk.Dc4PCYcb.js.br +0 -0
  178. package/dist/public/chunk.De1vj4hM.js.br +0 -0
  179. package/dist/public/chunk.DuQak1OK.js +0 -1
  180. package/dist/public/chunk.DuQak1OK.js.br +0 -0
  181. package/dist/public/chunk.DxnuHDOY.js.br +0 -0
  182. package/dist/public/chunk.TIounDiA.js +0 -1
  183. package/dist/public/chunk.TIounDiA.js.br +0 -0
  184. package/dist/public/chunk.p3hCiSrt.js +0 -80
  185. package/dist/public/chunk.p3hCiSrt.js.br +0 -0
  186. package/dist/public/chunk.yh4jaMrg.js.br +0 -0
  187. package/dist/public/entry.DnXws2rz.js +0 -2
  188. package/dist/public/entry.DnXws2rz.js.br +0 -0
Binary file
@@ -1 +1 @@
1
- import{$ as e,A as t,At as n,Dt as r,F as i,G as a,I as o,J as s,K as c,L as l,Lt as u,M as d,Ot as f,Q as p,St as m,U as h,V as g,W as _,Z as v,a as y,at as b,bt as x,ct as S,et as C,ft as w,g as T,gt as E,ht as D,it as O,jt as k,k as ee,kt as A,l as j,lt as M,mt as N,nt as P,o as te,ot as F,pt as I,q as L,st as ne,tt as re,u as R,v as ie,vt as z,xt as B,y as V,yt as ae}from"./chunk.p3hCiSrt.js";import{t as H}from"./entry.DnXws2rz.js";import{t as U}from"./chunk.DOwjsMaD.js";import"./chunk.TIounDiA.js";import{a as oe,c as se,d as ce,i as le,l as ue,n as de,o as fe,s as pe,t as me,u as he}from"./chunk.D9MCnLj_.js";var ge={root:`m_66836ed3`,wrapper:`m_a5d60502`,body:`m_667c2793`,title:`m_6a03f287`,label:`m_698f4f23`,icon:`m_667f2a6a`,message:`m_7fa78076`,closeButton:`m_87f54839`},W=n(),_e=E((e,{radius:t,color:n,variant:r,autoContrast:i})=>{let a=e.variantColorResolver({color:n||e.primaryColor,theme:e,variant:r||`light`,autoContrast:i});return{root:{"--alert-radius":t===void 0?void 0:B(t),"--alert-bg":n||r?a.background:void 0,"--alert-color":a.color,"--alert-bd":n||r?a.border:void 0}}}),G=b(e=>{let t=M(`Alert`,null,e),{classNames:n,className:r,style:i,styles:a,unstyled:o,vars:s,radius:c,color:l,title:u,children:d,id:f,icon:m,withCloseButton:h,onClose:g,closeButtonLabel:_,variant:v,autoContrast:y,role:b,attributes:C,...w}=t,T=S({name:`Alert`,classes:ge,props:t,className:r,style:i,classNames:n,styles:a,unstyled:o,attributes:C,vars:s,varsResolver:_e}),E=x(f),D=u&&`${E}-title`||void 0,k=`${E}-body`;return(0,W.jsx)(O,{id:E,...T(`root`,{variant:v}),variant:v,...w,role:b||`alert`,"aria-describedby":d?k:void 0,"aria-labelledby":u?D:void 0,children:(0,W.jsxs)(`div`,{...T(`wrapper`),children:[m&&(0,W.jsx)(`div`,{...T(`icon`),children:m}),(0,W.jsxs)(`div`,{...T(`body`),children:[u&&(0,W.jsx)(`div`,{...T(`title`),"data-with-close-button":h||void 0,children:(0,W.jsx)(`span`,{id:D,...T(`label`),children:u})}),d&&(0,W.jsx)(`div`,{id:k,...T(`message`),"data-variant":v,children:d})]}),h&&(0,W.jsx)(p,{...T(`closeButton`),onClick:g,variant:`transparent`,size:16,iconSize:16,"aria-label":_,unstyled:o})]})})});G.classes=ge,G.varsResolver=_e,G.displayName=`@mantine/core/Alert`;var K=u(k(),1),q=(0,K.createContext)(null),ve={hiddenInputValuesSeparator:`,`},J=F((e=>{let{value:t,defaultValue:n,onChange:r,size:i,wrapperProps:a,children:o,readOnly:s,name:c,hiddenInputValuesSeparator:l,hiddenInputProps:u,maxSelectedValues:d,disabled:f,...p}=M(`CheckboxGroup`,ve,e),[m,h]=z({value:t,defaultValue:n,finalValue:[],onChange:r}),g=e=>{let t=typeof e==`string`?e:e.currentTarget.value;if(s)return;let n=m.includes(t);!n&&d&&m.length>=d||h(n?m.filter(e=>e!==t):[...m,t])},_=e=>{if(f)return!0;if(!d)return!1;let t=m.includes(e),n=m.length>=d;return!t&&n},y=m.join(l);return(0,W.jsx)(q,{value:{value:m,onChange:g,size:i,isDisabled:_},children:(0,W.jsxs)(v.Wrapper,{size:i,...a,...p,labelElement:`div`,__staticSelector:`CheckboxGroup`,children:[(0,W.jsx)(L,{role:`group`,children:o}),(0,W.jsx)(`input`,{type:`hidden`,name:c,value:y,...u})]})})}));J.classes=v.Wrapper.classes,J.displayName=`@mantine/core/CheckboxGroup`;var ye={card:`m_26775b0a`},be=(0,K.createContext)(null),xe={withBorder:!0},Se=E((e,{radius:t})=>({card:{"--card-radius":B(t)}})),Y=b(e=>{let t=M(`CheckboxCard`,xe,e),{classNames:n,className:r,style:i,styles:a,unstyled:o,vars:s,checked:c,mod:l,withBorder:u,value:d,onClick:f,defaultChecked:p,onChange:m,attributes:h,...g}=t,_=S({name:`CheckboxCard`,classes:ye,props:t,className:r,style:i,classNames:n,styles:a,unstyled:o,attributes:h,vars:s,varsResolver:Se,rootSelector:`card`}),v=(0,K.use)(q),[y,b]=z({value:typeof c==`boolean`?c:v?v.value.includes(d||``):void 0,defaultValue:p,finalValue:!1,onChange:m});return(0,W.jsx)(be,{value:{checked:y},children:(0,W.jsx)(re,{mod:[{"with-border":u,checked:y},l],..._(`card`),...g,role:`checkbox`,"aria-checked":y,onClick:e=>{f?.(e),v?.onChange(d||``),b(!y)}})})});Y.displayName=`@mantine/core/CheckboxCard`,Y.classes=ye,Y.varsResolver=Se;var Ce={indicator:`m_5e5256ee`,icon:`m_1b1c543a`,"indicator--outline":`m_76e20374`},we={icon:c,variant:`filled`,radius:`sm`},Te=E((e,{radius:t,color:n,size:r,iconColor:i,variant:a,autoContrast:o})=>{let s=D({color:n||e.primaryColor,theme:e}),c=s.isThemeColor&&s.shade===void 0?`var(--mantine-color-${s.color}-outline)`:s.color;return{indicator:{"--checkbox-size":m(r,`checkbox-size`),"--checkbox-radius":t===void 0?void 0:B(t),"--checkbox-color":a===`outline`?c:N(n,e),"--checkbox-icon-color":i?N(i,e):w(o,e)?I({color:n,theme:e,autoContrast:o}):void 0}}}),X=b(e=>{let t=M(`CheckboxIndicator`,we,e),{classNames:n,className:r,style:i,styles:a,unstyled:o,vars:s,icon:c,indeterminate:l,radius:u,color:d,iconColor:f,autoContrast:p,checked:m,mod:h,variant:g,disabled:_,attributes:v,...y}=t,b=S({name:`CheckboxIndicator`,classes:Ce,props:t,className:r,style:i,classNames:n,styles:a,unstyled:o,attributes:v,vars:s,varsResolver:Te,rootSelector:`indicator`}),x=(0,K.use)(be),C=typeof m==`boolean`||typeof l==`boolean`?m||l:x?.checked||!1;return(0,W.jsx)(O,{...b(`indicator`,{variant:g}),variant:g,mod:[{checked:C,disabled:_},h],...y,children:(0,W.jsx)(c,{indeterminate:l,...b(`icon`)})})});X.displayName=`@mantine/core/CheckboxIndicator`,X.classes=Ce,X.varsResolver=Te;var Ee={root:`m_bf2d988c`,inner:`m_26062bec`,input:`m_26063560`,icon:`m_bf295423`,"input--outline":`m_215c4542`},De={labelPosition:`right`,icon:c,withErrorStyles:!0,variant:`filled`,radius:`sm`},Oe=E((e,{radius:t,color:n,size:r,iconColor:i,variant:a,autoContrast:o})=>{let s=D({color:n||e.primaryColor,theme:e}),c=s.isThemeColor&&s.shade===void 0?`var(--mantine-color-${s.color}-outline)`:s.color;return{root:{"--checkbox-size":m(r,`checkbox-size`),"--checkbox-radius":t===void 0?void 0:B(t),"--checkbox-color":a===`outline`?c:N(n,e),"--checkbox-icon-color":i?N(i,e):w(o,e)?I({color:n,theme:e,autoContrast:o}):void 0}}}),Z=b(e=>{let t=M(`Checkbox`,De,e),{classNames:n,className:r,style:i,styles:a,unstyled:o,vars:s,color:c,label:l,id:u,size:d,radius:f,wrapperProps:p,checked:m,labelPosition:h,description:g,error:v,disabled:y,variant:b,indeterminate:C,icon:w,rootRef:T,iconColor:E,onChange:D,autoContrast:k,mod:ee,attributes:A,readOnly:j,onClick:N,withErrorStyles:P,ref:te,...F}=t,I=(0,K.useRef)(null),L=(0,K.use)(q),re=d||L?.size,R=S({name:`Checkbox`,props:t,classes:Ee,className:r,style:i,classNames:n,styles:a,unstyled:o,attributes:A,vars:s,varsResolver:Oe}),{styleProps:ie,rest:z}=ne(F),B=x(u),V={checked:L?.value.includes(z.value)??m,onChange:e=>{L?.onChange(e),D?.(e)}},H=L?.isDisabled?.(z.value)??!1,U=y||H;return(0,K.useEffect)(()=>{I.current&&(I.current.indeterminate=C||!1,C?I.current.setAttribute(`data-indeterminate`,`true`):I.current.removeAttribute(`data-indeterminate`))},[C]),(0,W.jsx)(_,{...R(`root`),__staticSelector:`Checkbox`,__stylesApiProps:t,id:B,size:re,labelPosition:h,label:l,description:g,error:v,disabled:U,classNames:n,styles:a,unstyled:o,"data-checked":V.checked||m||void 0,variant:b,ref:T,mod:ee,attributes:A,inert:z.inert,...ie,...p,children:(0,W.jsxs)(O,{...R(`inner`),mod:{"data-label-position":h},children:[(0,W.jsx)(O,{component:`input`,id:B,ref:ae(I,te),mod:{error:!!v},...R(`input`,{focusable:!0,variant:b}),...z,...V,disabled:U,inert:z.inert,type:`checkbox`,onClick:e=>{j&&e.preventDefault(),N?.(e)}}),(0,W.jsx)(w,{indeterminate:C,...R(`icon`)})]})})});Z.classes={...Ee,...a},Z.varsResolver=Oe,Z.displayName=`@mantine/core/Checkbox`,Z.Group=J,Z.Indicator=X,Z.Card=Y;var ke=t(`outline`,`arrow-down`,`ArrowDown`,[[`path`,{d:`M12 5l0 14`,key:`svg-0`}],[`path`,{d:`M18 13l-6 6`,key:`svg-1`}],[`path`,{d:`M6 13l6 6`,key:`svg-2`}]]),Ae=t(`outline`,`arrow-up`,`ArrowUp`,[[`path`,{d:`M12 5l0 14`,key:`svg-0`}],[`path`,{d:`M18 11l-6 -6`,key:`svg-1`}],[`path`,{d:`M6 11l6 -6`,key:`svg-2`}]]),je=t(`outline`,`box-multiple`,`BoxMultiple`,[[`path`,{d:`M7 5a2 2 0 0 1 2 -2h10a2 2 0 0 1 2 2v10a2 2 0 0 1 -2 2h-10a2 2 0 0 1 -2 -2l0 -10`,key:`svg-0`}],[`path`,{d:`M17 17v2a2 2 0 0 1 -2 2h-10a2 2 0 0 1 -2 -2v-10a2 2 0 0 1 2 -2h2`,key:`svg-1`}]]),Me=t(`outline`,`box`,`Box`,[[`path`,{d:`M12 3l8 4.5l0 9l-8 4.5l-8 -4.5l0 -9l8 -4.5`,key:`svg-0`}],[`path`,{d:`M12 12l8 -4.5`,key:`svg-1`}],[`path`,{d:`M12 12l0 9`,key:`svg-2`}],[`path`,{d:`M12 12l-8 -4.5`,key:`svg-3`}]]),Ne=t(`outline`,`download`,`Download`,[[`path`,{d:`M4 17v2a2 2 0 0 0 2 2h12a2 2 0 0 0 2 -2v-2`,key:`svg-0`}],[`path`,{d:`M7 11l5 5l5 -5`,key:`svg-1`}],[`path`,{d:`M12 4l0 12`,key:`svg-2`}]]),Pe=t(`outline`,`focus-centered`,`FocusCentered`,[[`path`,{d:`M11 12a1 1 0 1 0 2 0a1 1 0 1 0 -2 0`,key:`svg-0`}],[`path`,{d:`M4 8v-2a2 2 0 0 1 2 -2h2`,key:`svg-1`}],[`path`,{d:`M4 16v2a2 2 0 0 0 2 2h2`,key:`svg-2`}],[`path`,{d:`M16 4h2a2 2 0 0 1 2 2v2`,key:`svg-3`}],[`path`,{d:`M16 20h2a2 2 0 0 0 2 -2v-2`,key:`svg-4`}]]),Fe=t(`outline`,`layout-distribute-horizontal`,`LayoutDistributeHorizontal`,[[`path`,{d:`M4 4l16 0`,key:`svg-0`}],[`path`,{d:`M4 20l16 0`,key:`svg-1`}],[`path`,{d:`M6 11a2 2 0 0 1 2 -2h8a2 2 0 0 1 2 2v2a2 2 0 0 1 -2 2h-8a2 2 0 0 1 -2 -2l0 -2`,key:`svg-2`}]]),Ie=t(`outline`,`layout-distribute-vertical`,`LayoutDistributeVertical`,[[`path`,{d:`M4 4l0 16`,key:`svg-0`}],[`path`,{d:`M20 4l0 16`,key:`svg-1`}],[`path`,{d:`M9 8a2 2 0 0 1 2 -2h2a2 2 0 0 1 2 2v8a2 2 0 0 1 -2 2h-2a2 2 0 0 1 -2 -2l0 -8`,key:`svg-2`}]]),Le=t(`outline`,`lock-open`,`LockOpen`,[[`path`,{d:`M5 13a2 2 0 0 1 2 -2h10a2 2 0 0 1 2 2v6a2 2 0 0 1 -2 2h-10a2 2 0 0 1 -2 -2l0 -6`,key:`svg-0`}],[`path`,{d:`M11 16a1 1 0 1 0 2 0a1 1 0 1 0 -2 0`,key:`svg-1`}],[`path`,{d:`M8 11v-5a4 4 0 0 1 8 0`,key:`svg-2`}]]),Re=t(`outline`,`lock`,`Lock`,[[`path`,{d:`M5 13a2 2 0 0 1 2 -2h10a2 2 0 0 1 2 2v6a2 2 0 0 1 -2 2h-10a2 2 0 0 1 -2 -2v-6`,key:`svg-0`}],[`path`,{d:`M11 16a1 1 0 1 0 2 0a1 1 0 0 0 -2 0`,key:`svg-1`}],[`path`,{d:`M8 11v-4a4 4 0 1 1 8 0v4`,key:`svg-2`}]]),ze=t(`outline`,`minus`,`Minus`,[[`path`,{d:`M5 12l14 0`,key:`svg-0`}]]),Q={"alepha.core":`#868e96`,"alepha.server":`#228be6`,"alepha.security":`#fa5252`,"alepha.orm":`#40c057`,"alepha.cache":`#fab005`,"alepha.queue":`#fd7e14`,"alepha.topic":`#be4bdb`,"alepha.bucket":`#15aabf`,"alepha.scheduler":`#e64980`,"alepha.logger":`#74c0fc`,"alepha.devtools":`#845ef7`},Be=`#495057`,$=e=>{if(!e)return Be;if(Q[e])return Q[e];for(let[t,n]of Object.entries(Q))if(e.startsWith(t))return n;let t=0;for(let n=0;n<e.length;n++)t=e.charCodeAt(n)+((t<<5)-t);return`hsl(${Math.abs(t%360)}, 60%, 50%)`},Ve=({filters:e,onFiltersChange:t,layout:n,onLayoutChange:r,modules:a,nodeCount:s,edgeCount:c,onExport:u})=>{let f=e.viewMode===`modules`;return(0,W.jsxs)(y,{gap:`sm`,wrap:`wrap`,align:`center`,children:[(0,W.jsx)(y,{children:(0,W.jsx)(o,{size:`xs`,value:e.viewMode,onChange:n=>t({...e,viewMode:n}),data:[{label:(0,W.jsx)(l,{label:`Modules`,children:(0,W.jsx)(je,{size:R.sizes.icon.sm,style:{marginTop:2}})}),value:`modules`},{label:(0,W.jsx)(l,{label:`Services`,children:(0,W.jsx)(Me,{size:R.sizes.icon.sm,style:{marginTop:2}})}),value:`providers`}]})}),(0,W.jsx)(d,{placeholder:f?`Search modules...`:`Search services...`,leftSection:(0,W.jsx)(ie,{size:14}),value:e.search,onChange:n=>t({...e,search:n.currentTarget.value}),size:`xs`,style:{width:200}}),!f&&(0,W.jsx)(i,{placeholder:`Filter by module`,value:e.module,onChange:n=>t({...e,module:n||`all`}),data:[{label:`All modules`,value:`all`},...a.map(e=>({label:e,value:e}))],size:`xs`,style:{width:200},clearable:!0}),(0,W.jsx)(Z,{label:`Hide framework`,checked:e.hideFramework,onChange:n=>t({...e,hideFramework:n.currentTarget.checked}),size:`xs`}),(0,W.jsx)(o,{size:`xs`,value:n,onChange:e=>r(e),data:[{label:(0,W.jsx)(l,{label:`Hierarchical`,children:(0,W.jsx)(Ie,{size:14})}),value:`dagre`},{label:(0,W.jsx)(l,{label:`Circular`,children:(0,W.jsx)(H,{size:14})}),value:`circular`},{label:(0,W.jsx)(l,{label:`Force`,children:(0,W.jsx)(Fe,{size:14})}),value:`force`}]}),(0,W.jsxs)(y,{gap:4,children:[(0,W.jsxs)(h,{size:`xs`,variant:`light`,color:`gray`,children:[s,` `,f?`modules`:`services`]}),(0,W.jsxs)(h,{size:`xs`,variant:`light`,color:`gray`,children:[c,` edges`]})]}),(0,W.jsx)(j,{size:`sm`,variant:`subtle`,tooltip:`Export as PNG`,onClick:u,icon:(0,W.jsx)(Ne,{size:14})})]})},He=(e,t)=>{let n=new Map;for(let t of e)for(let e of t.dependencies){let r=n.get(e)||[];r.push(t.name),n.set(e,r)}let r=e.filter(e=>{if(t.hideFramework&&e.module?.startsWith(`alepha.`)||t.module&&t.module!==`all`&&e.module!==t.module)return!1;if(t.search){let n=t.search.toLowerCase();return e.name.toLowerCase().includes(n)||e.module?.toLowerCase().includes(n)}return!0}),i=new Set(r.map(e=>e.name)),a=r.map(e=>({id:e.name,type:`provider`,position:{x:0,y:0},data:{label:e.name,module:e.module,dependencies:e.dependencies,dependents:n.get(e.name)||[],aliases:e.aliases,isModule:!1}})),o=[];for(let e of r)for(let t of e.dependencies)i.has(t)&&o.push({id:`${e.name}->${t}`,source:e.name,target:t,animated:!1,style:{stroke:`#495057`,strokeWidth:1.5}});return{nodes:a,edges:o}},Ue=(e,t)=>{let n=new Map;for(let r of e){let e=r.module||`Other`;if(t.hideFramework&&e.startsWith(`alepha.`))continue;if(t.search){let n=t.search.toLowerCase();if(!e.toLowerCase().includes(n))continue}let i=n.get(e)||[];i.push(r),n.set(e,i)}let r=new Map,i=new Map;for(let[e,t]of n)r.set(e,new Set),i.set(e,new Set);for(let[t,a]of n)for(let o of a)for(let a of o.dependencies){let o=e.find(e=>e.name===a);if(o){let e=o.module||`Other`;e!==t&&n.has(e)&&(r.get(t)?.add(e),i.get(e)?.add(t))}}let a=Array.from(n.keys());t.module&&t.module!==`all`&&(a=a.filter(e=>e===t.module));let o=new Set(a),s=a.map(e=>{let t=n.get(e)||[];return{id:e,type:`provider`,position:{x:0,y:0},data:{label:e,module:e,dependencies:Array.from(r.get(e)||[]),dependents:Array.from(i.get(e)||[]),providers:t.map(e=>e.name),providerCount:t.length,isModule:!0}}}),c=[],l=new Set;for(let e of a)for(let t of r.get(e)||[])if(o.has(t)){let n=`${e}->${t}`;l.has(n)||(l.add(n),c.push({id:n,source:e,target:t,animated:!1,style:{stroke:`#495057`,strokeWidth:1.5}}))}return{nodes:s,edges:c}},We=(e,t)=>t.viewMode===`modules`?Ue(e,t):He(e,t),Ge=(e,t,n=`TB`)=>{let r=new Map,i=new Map;for(let t of e)r.set(t.id,[]),i.set(t.id,0);for(let e of t)r.get(e.source)?.push(e.target),i.set(e.target,(i.get(e.target)||0)+1);let a=new Map,o=[];for(let[e,t]of i)t===0&&(o.push(e),a.set(e,0));for(;o.length>0;){let e=o.shift(),t=a.get(e)||0;for(let n of r.get(e)||[]){let e=(i.get(n)||0)-1;i.set(n,e),e===0&&(o.push(n),a.set(n,t+1))}}let s=Math.max(...Array.from(a.values()),0);for(let t of e)a.has(t.id)||a.set(t.id,s+1);let c=new Map;for(let[e,t]of a){let n=c.get(t)||[];n.push(e),c.set(t,n)}let l=new Map(e.map(e=>[e.id,e])),u=[];for(let[e,t]of c){let r=-(t.length*230)/2;t.forEach((t,i)=>{let a=l.get(t);a&&u.push({...a,position:{x:n===`TB`?r+i*230:e*230,y:n===`TB`?e*140:r+i*140}})})}return u},Ke=e=>{let t=Math.max(200,e.length*30),n=2*Math.PI/e.length;return e.map((e,r)=>({...e,position:{x:Math.cos(r*n)*t,y:Math.sin(r*n)*t}}))},qe=(e,t=!0)=>{if(!t)return Ke(e);let n=new Map;for(let t of e){let e=t.data.module||`Other`,r=n.get(e)||[];r.push(t),n.set(e,r)}let r=Array.from(n.keys()).sort(),i=2*Math.PI/r.length,a=Math.max(300,r.length*80),o=[];return r.forEach((e,t)=>{let r=n.get(e)||[],s=t*i,c=Math.cos(s)*a,l=Math.sin(s)*a,u=Math.max(100,r.length*25),d=2*Math.PI/r.length;r.forEach((e,t)=>{let n=t*d;o.push({...e,position:{x:c+Math.cos(n)*u,y:l+Math.sin(n)*u}})})}),o},Je=(e,t,n)=>{switch(n){case`dagre`:return Ge(e,t);case`force`:return Ke(e);case`circular`:return qe(e);default:return Ge(e,t)}},Ye=(e,t,n)=>{let r=new Set([e]),i=new Map(t.map(e=>[e.id,e])),a=e=>{let t=i.get(e);if(t)for(let e of t.data.dependencies)r.has(e)||(r.add(e),a(e))},o=e=>{let t=i.get(e);if(t)for(let e of t.data.dependents)r.has(e)||(r.add(e),o(e))};return a(e),o(e),r},Xe=(e,t)=>{let n=[],r=new Set,i=new Set,a=new Map;for(let t of e)a.set(t.id,[]);for(let e of t)a.get(e.source)?.push(e.target);let o=(e,t)=>{r.add(e),i.add(e),t.push(e);for(let s of a.get(e)||[])if(!r.has(s))o(s,[...t]);else if(i.has(s)){let e=t.indexOf(s);n.push([...t.slice(e),s])}i.delete(e)};for(let t of e)r.has(t.id)||o(t.id,[]);return n},Ze=({node:e,onClose:t,onNodeClick:n})=>{if(!e)return null;let{data:r}=e,i=$(r.module),a=r.isModule;return(0,W.jsxs)(C,{p:`md`,style:{position:`absolute`,top:16,right:16,width:280,backgroundColor:R.colors.elevated,border:`1px solid ${R.colors.border}`,borderRadius:8,zIndex:10},children:[(0,W.jsxs)(y,{justify:`space-between`,align:`start`,mb:`sm`,children:[(0,W.jsxs)(y,{style:{flex:1},children:[(0,W.jsx)(s,{size:`sm`,fw:600,style:{wordBreak:`break-word`},children:r.label}),!a&&r.module&&(0,W.jsx)(h,{size:`xs`,variant:`light`,mt:4,style:{backgroundColor:`${i}20`,color:i},children:r.module}),a&&r.providerCount!==void 0&&(0,W.jsxs)(s,{size:`xs`,c:`dimmed`,mt:4,children:[r.providerCount,` services`]})]}),(0,W.jsx)(j,{size:`sm`,variant:`subtle`,onClick:t,icon:(0,W.jsx)(T,{size:14})})]}),!a&&r.aliases&&r.aliases.length>0&&(0,W.jsxs)(W.Fragment,{children:[(0,W.jsx)(g,{my:`xs`}),(0,W.jsx)(s,{size:`xs`,c:`dimmed`,mb:4,children:`Aliases`}),(0,W.jsx)(y,{gap:4,wrap:`wrap`,children:r.aliases.map(e=>(0,W.jsx)(h,{size:`xs`,variant:`outline`,children:e},e))})]}),a&&r.providers&&r.providers.length>0&&(0,W.jsxs)(W.Fragment,{children:[(0,W.jsx)(g,{my:`xs`}),(0,W.jsxs)(y,{align:`center`,gap:4,mb:4,children:[(0,W.jsx)(Me,{size:12,opacity:.5}),(0,W.jsxs)(s,{size:`xs`,c:`dimmed`,children:[`Services (`,r.providers.length,`)`]})]}),(0,W.jsx)(P,{h:100,children:(0,W.jsx)(y,{direction:`column`,gap:2,children:r.providers.map(e=>(0,W.jsx)(s,{size:`xs`,children:e.split(`.`).pop()},e))})})]}),(0,W.jsx)(g,{my:`xs`}),(0,W.jsx)(P,{h:a?120:200,children:(0,W.jsxs)(y,{direction:`column`,gap:`xs`,children:[r.dependencies.length>0&&(0,W.jsxs)(y,{children:[(0,W.jsxs)(y,{align:`center`,gap:4,mb:4,children:[(0,W.jsx)(ke,{size:12,opacity:.5}),(0,W.jsxs)(s,{size:`xs`,c:`dimmed`,children:[a?`Depends on`:`Dependencies`,` (`,r.dependencies.length,`)`]})]}),(0,W.jsx)(y,{direction:`column`,gap:2,children:r.dependencies.map(e=>(0,W.jsx)(s,{size:`xs`,style:{cursor:`pointer`},c:`blue`,onClick:()=>n(e),children:e},e))})]}),r.dependents.length>0&&(0,W.jsxs)(y,{children:[(0,W.jsxs)(y,{align:`center`,gap:4,mb:4,children:[(0,W.jsx)(Ae,{size:12,opacity:.5}),(0,W.jsxs)(s,{size:`xs`,c:`dimmed`,children:[`Used by (`,r.dependents.length,`)`]})]}),(0,W.jsx)(y,{direction:`column`,gap:2,children:r.dependents.map(e=>(0,W.jsx)(s,{size:`xs`,style:{cursor:`pointer`},c:`blue`,onClick:()=>n(e),children:e},e))})]}),r.dependencies.length===0&&r.dependents.length===0&&(0,W.jsx)(s,{size:`xs`,c:`dimmed`,children:`No dependencies`})]})})]})},Qe={provider:({data:e,selected:t})=>{let n=$(e.module),r=e.isFaded&&!e.isHighlighted,i=e.isModule;return(0,W.jsxs)(y,{p:`xs`,style:{borderRadius:i?12:8,border:`2px solid ${t||e.isSelected?n:R.colors.border}`,backgroundColor:R.colors.surface,minWidth:i?200:160,opacity:r?.3:1,transition:`opacity 0.2s, border-color 0.2s`,boxShadow:e.isHighlighted?`0 0 10px ${n}`:void 0},children:[(0,W.jsx)(le,{type:`target`,position:ce.Top,style:{background:n,width:8,height:8,border:`none`}}),(0,W.jsxs)(y,{direction:`column`,gap:4,children:[i?(0,W.jsxs)(W.Fragment,{children:[(0,W.jsx)(s,{size:`xs`,fw:600,style:{wordBreak:`break-word`},children:e.label}),(0,W.jsxs)(s,{size:`xs`,c:`dimmed`,children:[e.providerCount,` services`]})]}):(0,W.jsxs)(W.Fragment,{children:[(0,W.jsx)(s,{size:`xs`,fw:600,style:{wordBreak:`break-word`},children:e.label.split(`.`).pop()}),e.module&&(0,W.jsx)(h,{size:`xs`,variant:`light`,style:{backgroundColor:`${n}20`,color:n},children:e.module})]}),(0,W.jsxs)(y,{gap:4,children:[e.dependencies.length>0&&(0,W.jsxs)(s,{size:`xs`,c:`dimmed`,children:[e.dependencies.length,` deps`]}),e.dependents.length>0&&(0,W.jsxs)(s,{size:`xs`,c:`dimmed`,children:[e.dependents.length,` refs`]})]})]}),(0,W.jsx)(le,{type:`source`,position:ce.Bottom,style:{background:n,width:8,height:8,border:`none`}})]})}},$e=()=>{let t=A(r),[n,i,a]=ue([]),[o,c,l]=se([]),[u,d]=(0,K.useState)(null),[p,m]=(0,K.useState)(`dagre`),[g,_]=(0,K.useState)({search:``,module:`all`,hideFramework:!1,viewMode:`modules`}),{loading:v,result:b}=f({runOnInit:!0,handler:()=>t.fetch(`/__devtools/api/metadata`,{schema:{response:U}})},[]),x=b?.data.providers||[],S=(0,K.useMemo)(()=>{let e=new Set;for(let t of x)t.module&&e.add(t.module);return Array.from(e).sort()},[x]);(0,K.useEffect)(()=>{if(x.length===0)return;let{nodes:e,edges:t}=We(x,g);i(Je(e,t,p)),c(t)},[x,g,p,i,c]);let C=(0,K.useMemo)(()=>Xe(n,o),[n,o]),w=(0,K.useCallback)((e,t)=>{d({id:t.id,data:t.data});let r=Ye(t.id,n,o);i(e=>e.map(e=>({...e,data:{...e.data,isHighlighted:r.has(e.id),isSelected:e.id===t.id,isFaded:!r.has(e.id)}}))),c(e=>e.map(e=>({...e,animated:r.has(e.source)&&r.has(e.target),style:{...e.style,stroke:r.has(e.source)&&r.has(e.target)?$(n.find(t=>t.id===e.source)?.data.module):`#495057`,strokeWidth:r.has(e.source)&&r.has(e.target)?2:1,opacity:r.has(e.source)&&r.has(e.target)?1:.3}})))},[n,o,i,c]),T=(0,K.useCallback)(()=>{d(null),i(e=>e.map(e=>({...e,data:{...e.data,isHighlighted:!1,isSelected:!1,isFaded:!1}}))),c(e=>e.map(e=>({...e,animated:!1,style:{...e.style,stroke:`#495057`,strokeWidth:1.5,opacity:1}})))},[i,c]),E=(0,K.useCallback)(e=>{let t=n.find(t=>t.id===e);t&&w({},t)},[n,w]),D=te(),O=(0,K.useCallback)(()=>{if(document.querySelector(`.react-flow__viewport`))return D.alert({title:`Export`,message:`Export feature requires html2canvas library. Coming soon!`})},[]);return v?(0,W.jsx)(y,{align:`center`,justify:`center`,h:`100%`,children:(0,W.jsx)(e,{size:`sm`})}):(0,W.jsxs)(y,{p:`xl`,direction:`column`,gap:`md`,w:`100%`,h:`100%`,flex:1,mih:0,children:[(0,W.jsx)(Ve,{filters:g,onFiltersChange:_,layout:p,onLayoutChange:m,modules:S,nodeCount:n.length,edgeCount:o.length,onExport:O}),C.length>0&&(0,W.jsx)(G,{icon:(0,W.jsx)(ee,{size:16}),color:`orange`,variant:`light`,p:`xs`,children:(0,W.jsxs)(y,{align:`center`,gap:`xs`,children:[(0,W.jsx)(s,{size:`xs`,children:`Circular dependencies detected:`}),C.slice(0,3).map((e,t)=>(0,W.jsxs)(h,{size:`xs`,color:`orange`,variant:`light`,children:[e.length,` nodes`]},t)),C.length>3&&(0,W.jsxs)(s,{size:`xs`,c:`dimmed`,children:[`+`,C.length-3,` more`]})]})}),(0,W.jsx)(y,{flex:1,h:`100%`,style:{borderRadius:8,border:`1px solid ${R.colors.border}`,position:`relative`},children:(0,W.jsxs)(y,{h:`100%`,style:{position:`absolute`,top:0,left:0,right:0,bottom:0},children:[(0,W.jsx)(fe,{children:(0,W.jsxs)(pe,{nodes:n,edges:o,onNodesChange:a,onEdgesChange:l,onNodeClick:w,onPaneClick:T,nodeTypes:Qe,fitView:!0,fitViewOptions:{padding:.2},minZoom:.1,maxZoom:2,proOptions:{hideAttribution:!0},children:[(0,W.jsx)(me,{variant:de.Dots,gap:20,size:1}),(0,W.jsx)(oe,{nodeColor:e=>$(e.data?.module),maskColor:`rgba(0, 0, 0, 0.5)`,style:{backgroundColor:R.colors.surface}}),(0,W.jsx)(et,{})]})}),(0,W.jsx)(Ze,{node:u,onClose:()=>T(),onNodeClick:E})]})})]})},et=()=>{let{zoomIn:e,zoomOut:t,fitView:n}=he(),[r,i]=(0,K.useState)(!1);return(0,W.jsxs)(y,{direction:`column`,gap:4,style:{position:`absolute`,bottom:16,left:16,zIndex:10,backgroundColor:R.colors.elevated,border:`1px solid ${R.colors.border}`,borderRadius:8,padding:4},children:[(0,W.jsx)(j,{size:`sm`,variant:`subtle`,tooltip:`Zoom in`,onClick:()=>e(),icon:(0,W.jsx)(V,{size:14})}),(0,W.jsx)(j,{size:`sm`,variant:`subtle`,tooltip:`Zoom out`,onClick:()=>t(),icon:(0,W.jsx)(ze,{size:14})}),(0,W.jsx)(j,{size:`sm`,variant:`subtle`,tooltip:`Fit view`,onClick:()=>n({padding:.2}),icon:(0,W.jsx)(Pe,{size:14})}),(0,W.jsx)(j,{size:`sm`,variant:`subtle`,tooltip:r?`Unlock`:`Lock`,onClick:()=>i(!r),icon:r?(0,W.jsx)(Re,{size:14}):(0,W.jsx)(Le,{size:14})})]})};export{$e as DevDependencyGraph,$e as default};
1
+ import{$ as e,A as t,At as n,Dt as r,F as i,G as a,I as o,J as s,K as c,L as l,Lt as u,M as d,Ot as f,Q as p,St as m,U as h,V as g,W as _,Z as v,a as y,at as b,bt as x,ct as S,et as C,ft as w,g as T,gt as E,ht as D,it as O,jt as k,k as ee,kt as A,l as j,lt as M,mt as N,nt as P,o as te,ot as F,pt as I,q as L,st as ne,tt as re,u as R,v as ie,vt as z,xt as B,y as V,yt as ae}from"./chunk.CdOrvGjm.js";import{t as H}from"./chunk.D6c-Jq33.js";import{t as U}from"./chunk.DGcirGNX.js";import"./chunk.Bu6ZqSw8.js";import{a as oe,c as se,d as ce,i as le,l as ue,n as de,o as fe,s as pe,t as me,u as he}from"./chunk.Be6RDdvy.js";var ge={root:`m_66836ed3`,wrapper:`m_a5d60502`,body:`m_667c2793`,title:`m_6a03f287`,label:`m_698f4f23`,icon:`m_667f2a6a`,message:`m_7fa78076`,closeButton:`m_87f54839`},W=n(),_e=E((e,{radius:t,color:n,variant:r,autoContrast:i})=>{let a=e.variantColorResolver({color:n||e.primaryColor,theme:e,variant:r||`light`,autoContrast:i});return{root:{"--alert-radius":t===void 0?void 0:B(t),"--alert-bg":n||r?a.background:void 0,"--alert-color":a.color,"--alert-bd":n||r?a.border:void 0}}}),G=b(e=>{let t=M(`Alert`,null,e),{classNames:n,className:r,style:i,styles:a,unstyled:o,vars:s,radius:c,color:l,title:u,children:d,id:f,icon:m,withCloseButton:h,onClose:g,closeButtonLabel:_,variant:v,autoContrast:y,role:b,attributes:C,...w}=t,T=S({name:`Alert`,classes:ge,props:t,className:r,style:i,classNames:n,styles:a,unstyled:o,attributes:C,vars:s,varsResolver:_e}),E=x(f),D=u&&`${E}-title`||void 0,k=`${E}-body`;return(0,W.jsx)(O,{id:E,...T(`root`,{variant:v}),variant:v,...w,role:b||`alert`,"aria-describedby":d?k:void 0,"aria-labelledby":u?D:void 0,children:(0,W.jsxs)(`div`,{...T(`wrapper`),children:[m&&(0,W.jsx)(`div`,{...T(`icon`),children:m}),(0,W.jsxs)(`div`,{...T(`body`),children:[u&&(0,W.jsx)(`div`,{...T(`title`),"data-with-close-button":h||void 0,children:(0,W.jsx)(`span`,{id:D,...T(`label`),children:u})}),d&&(0,W.jsx)(`div`,{id:k,...T(`message`),"data-variant":v,children:d})]}),h&&(0,W.jsx)(p,{...T(`closeButton`),onClick:g,variant:`transparent`,size:16,iconSize:16,"aria-label":_,unstyled:o})]})})});G.classes=ge,G.varsResolver=_e,G.displayName=`@mantine/core/Alert`;var K=u(k(),1),q=(0,K.createContext)(null),ve={hiddenInputValuesSeparator:`,`},J=F((e=>{let{value:t,defaultValue:n,onChange:r,size:i,wrapperProps:a,children:o,readOnly:s,name:c,hiddenInputValuesSeparator:l,hiddenInputProps:u,maxSelectedValues:d,disabled:f,...p}=M(`CheckboxGroup`,ve,e),[m,h]=z({value:t,defaultValue:n,finalValue:[],onChange:r}),g=e=>{let t=typeof e==`string`?e:e.currentTarget.value;if(s)return;let n=m.includes(t);!n&&d&&m.length>=d||h(n?m.filter(e=>e!==t):[...m,t])},_=e=>{if(f)return!0;if(!d)return!1;let t=m.includes(e),n=m.length>=d;return!t&&n},y=m.join(l);return(0,W.jsx)(q,{value:{value:m,onChange:g,size:i,isDisabled:_},children:(0,W.jsxs)(v.Wrapper,{size:i,...a,...p,labelElement:`div`,__staticSelector:`CheckboxGroup`,children:[(0,W.jsx)(L,{role:`group`,children:o}),(0,W.jsx)(`input`,{type:`hidden`,name:c,value:y,...u})]})})}));J.classes=v.Wrapper.classes,J.displayName=`@mantine/core/CheckboxGroup`;var ye={card:`m_26775b0a`},be=(0,K.createContext)(null),xe={withBorder:!0},Se=E((e,{radius:t})=>({card:{"--card-radius":B(t)}})),Y=b(e=>{let t=M(`CheckboxCard`,xe,e),{classNames:n,className:r,style:i,styles:a,unstyled:o,vars:s,checked:c,mod:l,withBorder:u,value:d,onClick:f,defaultChecked:p,onChange:m,attributes:h,...g}=t,_=S({name:`CheckboxCard`,classes:ye,props:t,className:r,style:i,classNames:n,styles:a,unstyled:o,attributes:h,vars:s,varsResolver:Se,rootSelector:`card`}),v=(0,K.use)(q),[y,b]=z({value:typeof c==`boolean`?c:v?v.value.includes(d||``):void 0,defaultValue:p,finalValue:!1,onChange:m});return(0,W.jsx)(be,{value:{checked:y},children:(0,W.jsx)(re,{mod:[{"with-border":u,checked:y},l],..._(`card`),...g,role:`checkbox`,"aria-checked":y,onClick:e=>{f?.(e),v?.onChange(d||``),b(!y)}})})});Y.displayName=`@mantine/core/CheckboxCard`,Y.classes=ye,Y.varsResolver=Se;var Ce={indicator:`m_5e5256ee`,icon:`m_1b1c543a`,"indicator--outline":`m_76e20374`},we={icon:c,variant:`filled`,radius:`sm`},Te=E((e,{radius:t,color:n,size:r,iconColor:i,variant:a,autoContrast:o})=>{let s=D({color:n||e.primaryColor,theme:e}),c=s.isThemeColor&&s.shade===void 0?`var(--mantine-color-${s.color}-outline)`:s.color;return{indicator:{"--checkbox-size":m(r,`checkbox-size`),"--checkbox-radius":t===void 0?void 0:B(t),"--checkbox-color":a===`outline`?c:N(n,e),"--checkbox-icon-color":i?N(i,e):w(o,e)?I({color:n,theme:e,autoContrast:o}):void 0}}}),X=b(e=>{let t=M(`CheckboxIndicator`,we,e),{classNames:n,className:r,style:i,styles:a,unstyled:o,vars:s,icon:c,indeterminate:l,radius:u,color:d,iconColor:f,autoContrast:p,checked:m,mod:h,variant:g,disabled:_,attributes:v,...y}=t,b=S({name:`CheckboxIndicator`,classes:Ce,props:t,className:r,style:i,classNames:n,styles:a,unstyled:o,attributes:v,vars:s,varsResolver:Te,rootSelector:`indicator`}),x=(0,K.use)(be),C=typeof m==`boolean`||typeof l==`boolean`?m||l:x?.checked||!1;return(0,W.jsx)(O,{...b(`indicator`,{variant:g}),variant:g,mod:[{checked:C,disabled:_},h],...y,children:(0,W.jsx)(c,{indeterminate:l,...b(`icon`)})})});X.displayName=`@mantine/core/CheckboxIndicator`,X.classes=Ce,X.varsResolver=Te;var Ee={root:`m_bf2d988c`,inner:`m_26062bec`,input:`m_26063560`,icon:`m_bf295423`,"input--outline":`m_215c4542`},De={labelPosition:`right`,icon:c,withErrorStyles:!0,variant:`filled`,radius:`sm`},Oe=E((e,{radius:t,color:n,size:r,iconColor:i,variant:a,autoContrast:o})=>{let s=D({color:n||e.primaryColor,theme:e}),c=s.isThemeColor&&s.shade===void 0?`var(--mantine-color-${s.color}-outline)`:s.color;return{root:{"--checkbox-size":m(r,`checkbox-size`),"--checkbox-radius":t===void 0?void 0:B(t),"--checkbox-color":a===`outline`?c:N(n,e),"--checkbox-icon-color":i?N(i,e):w(o,e)?I({color:n,theme:e,autoContrast:o}):void 0}}}),Z=b(e=>{let t=M(`Checkbox`,De,e),{classNames:n,className:r,style:i,styles:a,unstyled:o,vars:s,color:c,label:l,id:u,size:d,radius:f,wrapperProps:p,checked:m,labelPosition:h,description:g,error:v,disabled:y,variant:b,indeterminate:C,icon:w,rootRef:T,iconColor:E,onChange:D,autoContrast:k,mod:ee,attributes:A,readOnly:j,onClick:N,withErrorStyles:P,ref:te,...F}=t,I=(0,K.useRef)(null),L=(0,K.use)(q),re=d||L?.size,R=S({name:`Checkbox`,props:t,classes:Ee,className:r,style:i,classNames:n,styles:a,unstyled:o,attributes:A,vars:s,varsResolver:Oe}),{styleProps:ie,rest:z}=ne(F),B=x(u),V={checked:L?.value.includes(z.value)??m,onChange:e=>{L?.onChange(e),D?.(e)}},H=L?.isDisabled?.(z.value)??!1,U=y||H;return(0,K.useEffect)(()=>{I.current&&(I.current.indeterminate=C||!1,C?I.current.setAttribute(`data-indeterminate`,`true`):I.current.removeAttribute(`data-indeterminate`))},[C]),(0,W.jsx)(_,{...R(`root`),__staticSelector:`Checkbox`,__stylesApiProps:t,id:B,size:re,labelPosition:h,label:l,description:g,error:v,disabled:U,classNames:n,styles:a,unstyled:o,"data-checked":V.checked||m||void 0,variant:b,ref:T,mod:ee,attributes:A,inert:z.inert,...ie,...p,children:(0,W.jsxs)(O,{...R(`inner`),mod:{"data-label-position":h},children:[(0,W.jsx)(O,{component:`input`,id:B,ref:ae(I,te),mod:{error:!!v},...R(`input`,{focusable:!0,variant:b}),...z,...V,disabled:U,inert:z.inert,type:`checkbox`,onClick:e=>{j&&e.preventDefault(),N?.(e)}}),(0,W.jsx)(w,{indeterminate:C,...R(`icon`)})]})})});Z.classes={...Ee,...a},Z.varsResolver=Oe,Z.displayName=`@mantine/core/Checkbox`,Z.Group=J,Z.Indicator=X,Z.Card=Y;var ke=t(`outline`,`arrow-down`,`ArrowDown`,[[`path`,{d:`M12 5l0 14`,key:`svg-0`}],[`path`,{d:`M18 13l-6 6`,key:`svg-1`}],[`path`,{d:`M6 13l6 6`,key:`svg-2`}]]),Ae=t(`outline`,`arrow-up`,`ArrowUp`,[[`path`,{d:`M12 5l0 14`,key:`svg-0`}],[`path`,{d:`M18 11l-6 -6`,key:`svg-1`}],[`path`,{d:`M6 11l6 -6`,key:`svg-2`}]]),je=t(`outline`,`box-multiple`,`BoxMultiple`,[[`path`,{d:`M7 5a2 2 0 0 1 2 -2h10a2 2 0 0 1 2 2v10a2 2 0 0 1 -2 2h-10a2 2 0 0 1 -2 -2l0 -10`,key:`svg-0`}],[`path`,{d:`M17 17v2a2 2 0 0 1 -2 2h-10a2 2 0 0 1 -2 -2v-10a2 2 0 0 1 2 -2h2`,key:`svg-1`}]]),Me=t(`outline`,`box`,`Box`,[[`path`,{d:`M12 3l8 4.5l0 9l-8 4.5l-8 -4.5l0 -9l8 -4.5`,key:`svg-0`}],[`path`,{d:`M12 12l8 -4.5`,key:`svg-1`}],[`path`,{d:`M12 12l0 9`,key:`svg-2`}],[`path`,{d:`M12 12l-8 -4.5`,key:`svg-3`}]]),Ne=t(`outline`,`download`,`Download`,[[`path`,{d:`M4 17v2a2 2 0 0 0 2 2h12a2 2 0 0 0 2 -2v-2`,key:`svg-0`}],[`path`,{d:`M7 11l5 5l5 -5`,key:`svg-1`}],[`path`,{d:`M12 4l0 12`,key:`svg-2`}]]),Pe=t(`outline`,`focus-centered`,`FocusCentered`,[[`path`,{d:`M11 12a1 1 0 1 0 2 0a1 1 0 1 0 -2 0`,key:`svg-0`}],[`path`,{d:`M4 8v-2a2 2 0 0 1 2 -2h2`,key:`svg-1`}],[`path`,{d:`M4 16v2a2 2 0 0 0 2 2h2`,key:`svg-2`}],[`path`,{d:`M16 4h2a2 2 0 0 1 2 2v2`,key:`svg-3`}],[`path`,{d:`M16 20h2a2 2 0 0 0 2 -2v-2`,key:`svg-4`}]]),Fe=t(`outline`,`layout-distribute-horizontal`,`LayoutDistributeHorizontal`,[[`path`,{d:`M4 4l16 0`,key:`svg-0`}],[`path`,{d:`M4 20l16 0`,key:`svg-1`}],[`path`,{d:`M6 11a2 2 0 0 1 2 -2h8a2 2 0 0 1 2 2v2a2 2 0 0 1 -2 2h-8a2 2 0 0 1 -2 -2l0 -2`,key:`svg-2`}]]),Ie=t(`outline`,`layout-distribute-vertical`,`LayoutDistributeVertical`,[[`path`,{d:`M4 4l0 16`,key:`svg-0`}],[`path`,{d:`M20 4l0 16`,key:`svg-1`}],[`path`,{d:`M9 8a2 2 0 0 1 2 -2h2a2 2 0 0 1 2 2v8a2 2 0 0 1 -2 2h-2a2 2 0 0 1 -2 -2l0 -8`,key:`svg-2`}]]),Le=t(`outline`,`lock-open`,`LockOpen`,[[`path`,{d:`M5 13a2 2 0 0 1 2 -2h10a2 2 0 0 1 2 2v6a2 2 0 0 1 -2 2h-10a2 2 0 0 1 -2 -2l0 -6`,key:`svg-0`}],[`path`,{d:`M11 16a1 1 0 1 0 2 0a1 1 0 1 0 -2 0`,key:`svg-1`}],[`path`,{d:`M8 11v-5a4 4 0 0 1 8 0`,key:`svg-2`}]]),Re=t(`outline`,`lock`,`Lock`,[[`path`,{d:`M5 13a2 2 0 0 1 2 -2h10a2 2 0 0 1 2 2v6a2 2 0 0 1 -2 2h-10a2 2 0 0 1 -2 -2v-6`,key:`svg-0`}],[`path`,{d:`M11 16a1 1 0 1 0 2 0a1 1 0 0 0 -2 0`,key:`svg-1`}],[`path`,{d:`M8 11v-4a4 4 0 1 1 8 0v4`,key:`svg-2`}]]),ze=t(`outline`,`minus`,`Minus`,[[`path`,{d:`M5 12l14 0`,key:`svg-0`}]]),Q={"alepha.core":`#868e96`,"alepha.server":`#228be6`,"alepha.security":`#fa5252`,"alepha.orm":`#40c057`,"alepha.cache":`#fab005`,"alepha.queue":`#fd7e14`,"alepha.topic":`#be4bdb`,"alepha.bucket":`#15aabf`,"alepha.scheduler":`#e64980`,"alepha.logger":`#74c0fc`,"alepha.devtools":`#845ef7`},Be=`#495057`,$=e=>{if(!e)return Be;if(Q[e])return Q[e];for(let[t,n]of Object.entries(Q))if(e.startsWith(t))return n;let t=0;for(let n=0;n<e.length;n++)t=e.charCodeAt(n)+((t<<5)-t);return`hsl(${Math.abs(t%360)}, 60%, 50%)`},Ve=({filters:e,onFiltersChange:t,layout:n,onLayoutChange:r,modules:a,nodeCount:s,edgeCount:c,onExport:u})=>{let f=e.viewMode===`modules`;return(0,W.jsxs)(y,{gap:`sm`,wrap:`wrap`,align:`center`,children:[(0,W.jsx)(y,{children:(0,W.jsx)(o,{size:`xs`,value:e.viewMode,onChange:n=>t({...e,viewMode:n}),data:[{label:(0,W.jsx)(l,{label:`Modules`,children:(0,W.jsx)(je,{size:R.sizes.icon.sm,style:{marginTop:2}})}),value:`modules`},{label:(0,W.jsx)(l,{label:`Services`,children:(0,W.jsx)(Me,{size:R.sizes.icon.sm,style:{marginTop:2}})}),value:`providers`}]})}),(0,W.jsx)(d,{placeholder:f?`Search modules...`:`Search services...`,leftSection:(0,W.jsx)(ie,{size:14}),value:e.search,onChange:n=>t({...e,search:n.currentTarget.value}),size:`xs`,style:{width:200}}),!f&&(0,W.jsx)(i,{placeholder:`Filter by module`,value:e.module,onChange:n=>t({...e,module:n||`all`}),data:[{label:`All modules`,value:`all`},...a.map(e=>({label:e,value:e}))],size:`xs`,style:{width:200},clearable:!0}),(0,W.jsx)(Z,{label:`Hide framework`,checked:e.hideFramework,onChange:n=>t({...e,hideFramework:n.currentTarget.checked}),size:`xs`}),(0,W.jsx)(o,{size:`xs`,value:n,onChange:e=>r(e),data:[{label:(0,W.jsx)(l,{label:`Hierarchical`,children:(0,W.jsx)(Ie,{size:14})}),value:`dagre`},{label:(0,W.jsx)(l,{label:`Circular`,children:(0,W.jsx)(H,{size:14})}),value:`circular`},{label:(0,W.jsx)(l,{label:`Force`,children:(0,W.jsx)(Fe,{size:14})}),value:`force`}]}),(0,W.jsxs)(y,{gap:4,children:[(0,W.jsxs)(h,{size:`xs`,variant:`light`,color:`gray`,children:[s,` `,f?`modules`:`services`]}),(0,W.jsxs)(h,{size:`xs`,variant:`light`,color:`gray`,children:[c,` edges`]})]}),(0,W.jsx)(j,{size:`sm`,variant:`subtle`,tooltip:`Export as PNG`,onClick:u,icon:(0,W.jsx)(Ne,{size:14})})]})},He=(e,t)=>{let n=new Map;for(let t of e)for(let e of t.dependencies){let r=n.get(e)||[];r.push(t.name),n.set(e,r)}let r=e.filter(e=>{if(t.hideFramework&&e.module?.startsWith(`alepha.`)||t.module&&t.module!==`all`&&e.module!==t.module)return!1;if(t.search){let n=t.search.toLowerCase();return e.name.toLowerCase().includes(n)||e.module?.toLowerCase().includes(n)}return!0}),i=new Set(r.map(e=>e.name)),a=r.map(e=>({id:e.name,type:`provider`,position:{x:0,y:0},data:{label:e.name,module:e.module,dependencies:e.dependencies,dependents:n.get(e.name)||[],aliases:e.aliases,isModule:!1}})),o=[];for(let e of r)for(let t of e.dependencies)i.has(t)&&o.push({id:`${e.name}->${t}`,source:e.name,target:t,animated:!1,style:{stroke:`#495057`,strokeWidth:1.5}});return{nodes:a,edges:o}},Ue=(e,t)=>{let n=new Map;for(let r of e){let e=r.module||`Other`;if(t.hideFramework&&e.startsWith(`alepha.`))continue;if(t.search){let n=t.search.toLowerCase();if(!e.toLowerCase().includes(n))continue}let i=n.get(e)||[];i.push(r),n.set(e,i)}let r=new Map,i=new Map;for(let[e,t]of n)r.set(e,new Set),i.set(e,new Set);for(let[t,a]of n)for(let o of a)for(let a of o.dependencies){let o=e.find(e=>e.name===a);if(o){let e=o.module||`Other`;e!==t&&n.has(e)&&(r.get(t)?.add(e),i.get(e)?.add(t))}}let a=Array.from(n.keys());t.module&&t.module!==`all`&&(a=a.filter(e=>e===t.module));let o=new Set(a),s=a.map(e=>{let t=n.get(e)||[];return{id:e,type:`provider`,position:{x:0,y:0},data:{label:e,module:e,dependencies:Array.from(r.get(e)||[]),dependents:Array.from(i.get(e)||[]),providers:t.map(e=>e.name),providerCount:t.length,isModule:!0}}}),c=[],l=new Set;for(let e of a)for(let t of r.get(e)||[])if(o.has(t)){let n=`${e}->${t}`;l.has(n)||(l.add(n),c.push({id:n,source:e,target:t,animated:!1,style:{stroke:`#495057`,strokeWidth:1.5}}))}return{nodes:s,edges:c}},We=(e,t)=>t.viewMode===`modules`?Ue(e,t):He(e,t),Ge=(e,t,n=`TB`)=>{let r=new Map,i=new Map;for(let t of e)r.set(t.id,[]),i.set(t.id,0);for(let e of t)r.get(e.source)?.push(e.target),i.set(e.target,(i.get(e.target)||0)+1);let a=new Map,o=[];for(let[e,t]of i)t===0&&(o.push(e),a.set(e,0));for(;o.length>0;){let e=o.shift(),t=a.get(e)||0;for(let n of r.get(e)||[]){let e=(i.get(n)||0)-1;i.set(n,e),e===0&&(o.push(n),a.set(n,t+1))}}let s=Math.max(...Array.from(a.values()),0);for(let t of e)a.has(t.id)||a.set(t.id,s+1);let c=new Map;for(let[e,t]of a){let n=c.get(t)||[];n.push(e),c.set(t,n)}let l=new Map(e.map(e=>[e.id,e])),u=[];for(let[e,t]of c){let r=-(t.length*230)/2;t.forEach((t,i)=>{let a=l.get(t);a&&u.push({...a,position:{x:n===`TB`?r+i*230:e*230,y:n===`TB`?e*140:r+i*140}})})}return u},Ke=e=>{let t=Math.max(200,e.length*30),n=2*Math.PI/e.length;return e.map((e,r)=>({...e,position:{x:Math.cos(r*n)*t,y:Math.sin(r*n)*t}}))},qe=(e,t=!0)=>{if(!t)return Ke(e);let n=new Map;for(let t of e){let e=t.data.module||`Other`,r=n.get(e)||[];r.push(t),n.set(e,r)}let r=Array.from(n.keys()).sort(),i=2*Math.PI/r.length,a=Math.max(300,r.length*80),o=[];return r.forEach((e,t)=>{let r=n.get(e)||[],s=t*i,c=Math.cos(s)*a,l=Math.sin(s)*a,u=Math.max(100,r.length*25),d=2*Math.PI/r.length;r.forEach((e,t)=>{let n=t*d;o.push({...e,position:{x:c+Math.cos(n)*u,y:l+Math.sin(n)*u}})})}),o},Je=(e,t,n)=>{switch(n){case`dagre`:return Ge(e,t);case`force`:return Ke(e);case`circular`:return qe(e);default:return Ge(e,t)}},Ye=(e,t,n)=>{let r=new Set([e]),i=new Map(t.map(e=>[e.id,e])),a=e=>{let t=i.get(e);if(t)for(let e of t.data.dependencies)r.has(e)||(r.add(e),a(e))},o=e=>{let t=i.get(e);if(t)for(let e of t.data.dependents)r.has(e)||(r.add(e),o(e))};return a(e),o(e),r},Xe=(e,t)=>{let n=[],r=new Set,i=new Set,a=new Map;for(let t of e)a.set(t.id,[]);for(let e of t)a.get(e.source)?.push(e.target);let o=(e,t)=>{r.add(e),i.add(e),t.push(e);for(let s of a.get(e)||[])if(!r.has(s))o(s,[...t]);else if(i.has(s)){let e=t.indexOf(s);n.push([...t.slice(e),s])}i.delete(e)};for(let t of e)r.has(t.id)||o(t.id,[]);return n},Ze=({node:e,onClose:t,onNodeClick:n})=>{if(!e)return null;let{data:r}=e,i=$(r.module),a=r.isModule;return(0,W.jsxs)(C,{p:`md`,style:{position:`absolute`,top:16,right:16,width:280,backgroundColor:R.colors.elevated,border:`1px solid ${R.colors.border}`,borderRadius:8,zIndex:10},children:[(0,W.jsxs)(y,{justify:`space-between`,align:`start`,mb:`sm`,children:[(0,W.jsxs)(y,{style:{flex:1},children:[(0,W.jsx)(s,{size:`sm`,fw:600,style:{wordBreak:`break-word`},children:r.label}),!a&&r.module&&(0,W.jsx)(h,{size:`xs`,variant:`light`,mt:4,style:{backgroundColor:`${i}20`,color:i},children:r.module}),a&&r.providerCount!==void 0&&(0,W.jsxs)(s,{size:`xs`,c:`dimmed`,mt:4,children:[r.providerCount,` services`]})]}),(0,W.jsx)(j,{size:`sm`,variant:`subtle`,onClick:t,icon:(0,W.jsx)(T,{size:14})})]}),!a&&r.aliases&&r.aliases.length>0&&(0,W.jsxs)(W.Fragment,{children:[(0,W.jsx)(g,{my:`xs`}),(0,W.jsx)(s,{size:`xs`,c:`dimmed`,mb:4,children:`Aliases`}),(0,W.jsx)(y,{gap:4,wrap:`wrap`,children:r.aliases.map(e=>(0,W.jsx)(h,{size:`xs`,variant:`outline`,children:e},e))})]}),a&&r.providers&&r.providers.length>0&&(0,W.jsxs)(W.Fragment,{children:[(0,W.jsx)(g,{my:`xs`}),(0,W.jsxs)(y,{align:`center`,gap:4,mb:4,children:[(0,W.jsx)(Me,{size:12,opacity:.5}),(0,W.jsxs)(s,{size:`xs`,c:`dimmed`,children:[`Services (`,r.providers.length,`)`]})]}),(0,W.jsx)(P,{h:100,children:(0,W.jsx)(y,{direction:`column`,gap:2,children:r.providers.map(e=>(0,W.jsx)(s,{size:`xs`,children:e.split(`.`).pop()},e))})})]}),(0,W.jsx)(g,{my:`xs`}),(0,W.jsx)(P,{h:a?120:200,children:(0,W.jsxs)(y,{direction:`column`,gap:`xs`,children:[r.dependencies.length>0&&(0,W.jsxs)(y,{children:[(0,W.jsxs)(y,{align:`center`,gap:4,mb:4,children:[(0,W.jsx)(ke,{size:12,opacity:.5}),(0,W.jsxs)(s,{size:`xs`,c:`dimmed`,children:[a?`Depends on`:`Dependencies`,` (`,r.dependencies.length,`)`]})]}),(0,W.jsx)(y,{direction:`column`,gap:2,children:r.dependencies.map(e=>(0,W.jsx)(s,{size:`xs`,style:{cursor:`pointer`},c:`blue`,onClick:()=>n(e),children:e},e))})]}),r.dependents.length>0&&(0,W.jsxs)(y,{children:[(0,W.jsxs)(y,{align:`center`,gap:4,mb:4,children:[(0,W.jsx)(Ae,{size:12,opacity:.5}),(0,W.jsxs)(s,{size:`xs`,c:`dimmed`,children:[`Used by (`,r.dependents.length,`)`]})]}),(0,W.jsx)(y,{direction:`column`,gap:2,children:r.dependents.map(e=>(0,W.jsx)(s,{size:`xs`,style:{cursor:`pointer`},c:`blue`,onClick:()=>n(e),children:e},e))})]}),r.dependencies.length===0&&r.dependents.length===0&&(0,W.jsx)(s,{size:`xs`,c:`dimmed`,children:`No dependencies`})]})})]})},Qe={provider:({data:e,selected:t})=>{let n=$(e.module),r=e.isFaded&&!e.isHighlighted,i=e.isModule;return(0,W.jsxs)(y,{p:`xs`,style:{borderRadius:i?12:8,border:`2px solid ${t||e.isSelected?n:R.colors.border}`,backgroundColor:R.colors.surface,minWidth:i?200:160,opacity:r?.3:1,transition:`opacity 0.2s, border-color 0.2s`,boxShadow:e.isHighlighted?`0 0 10px ${n}`:void 0},children:[(0,W.jsx)(le,{type:`target`,position:ce.Top,style:{background:n,width:8,height:8,border:`none`}}),(0,W.jsxs)(y,{direction:`column`,gap:4,children:[i?(0,W.jsxs)(W.Fragment,{children:[(0,W.jsx)(s,{size:`xs`,fw:600,style:{wordBreak:`break-word`},children:e.label}),(0,W.jsxs)(s,{size:`xs`,c:`dimmed`,children:[e.providerCount,` services`]})]}):(0,W.jsxs)(W.Fragment,{children:[(0,W.jsx)(s,{size:`xs`,fw:600,style:{wordBreak:`break-word`},children:e.label.split(`.`).pop()}),e.module&&(0,W.jsx)(h,{size:`xs`,variant:`light`,style:{backgroundColor:`${n}20`,color:n},children:e.module})]}),(0,W.jsxs)(y,{gap:4,children:[e.dependencies.length>0&&(0,W.jsxs)(s,{size:`xs`,c:`dimmed`,children:[e.dependencies.length,` deps`]}),e.dependents.length>0&&(0,W.jsxs)(s,{size:`xs`,c:`dimmed`,children:[e.dependents.length,` refs`]})]})]}),(0,W.jsx)(le,{type:`source`,position:ce.Bottom,style:{background:n,width:8,height:8,border:`none`}})]})}},$e=()=>{let t=A(r),[n,i,a]=ue([]),[o,c,l]=se([]),[u,d]=(0,K.useState)(null),[p,m]=(0,K.useState)(`dagre`),[g,_]=(0,K.useState)({search:``,module:`all`,hideFramework:!1,viewMode:`modules`}),{loading:v,result:b}=f({runOnInit:!0,handler:()=>t.fetch(`/__devtools/api/metadata`,{schema:{response:U}})},[]),x=b?.data.providers||[],S=(0,K.useMemo)(()=>{let e=new Set;for(let t of x)t.module&&e.add(t.module);return Array.from(e).sort()},[x]);(0,K.useEffect)(()=>{if(x.length===0)return;let{nodes:e,edges:t}=We(x,g);i(Je(e,t,p)),c(t)},[x,g,p,i,c]);let C=(0,K.useMemo)(()=>Xe(n,o),[n,o]),w=(0,K.useCallback)((e,t)=>{d({id:t.id,data:t.data});let r=Ye(t.id,n,o);i(e=>e.map(e=>({...e,data:{...e.data,isHighlighted:r.has(e.id),isSelected:e.id===t.id,isFaded:!r.has(e.id)}}))),c(e=>e.map(e=>({...e,animated:r.has(e.source)&&r.has(e.target),style:{...e.style,stroke:r.has(e.source)&&r.has(e.target)?$(n.find(t=>t.id===e.source)?.data.module):`#495057`,strokeWidth:r.has(e.source)&&r.has(e.target)?2:1,opacity:r.has(e.source)&&r.has(e.target)?1:.3}})))},[n,o,i,c]),T=(0,K.useCallback)(()=>{d(null),i(e=>e.map(e=>({...e,data:{...e.data,isHighlighted:!1,isSelected:!1,isFaded:!1}}))),c(e=>e.map(e=>({...e,animated:!1,style:{...e.style,stroke:`#495057`,strokeWidth:1.5,opacity:1}})))},[i,c]),E=(0,K.useCallback)(e=>{let t=n.find(t=>t.id===e);t&&w({},t)},[n,w]),D=te(),O=(0,K.useCallback)(()=>{if(document.querySelector(`.react-flow__viewport`))return D.alert({title:`Export`,message:`Export feature requires html2canvas library. Coming soon!`})},[]);return v?(0,W.jsx)(y,{align:`center`,justify:`center`,h:`100%`,children:(0,W.jsx)(e,{size:`sm`})}):(0,W.jsxs)(y,{p:`xl`,direction:`column`,gap:`md`,w:`100%`,h:`100%`,flex:1,mih:0,children:[(0,W.jsx)(Ve,{filters:g,onFiltersChange:_,layout:p,onLayoutChange:m,modules:S,nodeCount:n.length,edgeCount:o.length,onExport:O}),C.length>0&&(0,W.jsx)(G,{icon:(0,W.jsx)(ee,{size:16}),color:`orange`,variant:`light`,p:`xs`,children:(0,W.jsxs)(y,{align:`center`,gap:`xs`,children:[(0,W.jsx)(s,{size:`xs`,children:`Circular dependencies detected:`}),C.slice(0,3).map((e,t)=>(0,W.jsxs)(h,{size:`xs`,color:`orange`,variant:`light`,children:[e.length,` nodes`]},t)),C.length>3&&(0,W.jsxs)(s,{size:`xs`,c:`dimmed`,children:[`+`,C.length-3,` more`]})]})}),(0,W.jsx)(y,{flex:1,h:`100%`,style:{borderRadius:8,border:`1px solid ${R.colors.border}`,position:`relative`},children:(0,W.jsxs)(y,{h:`100%`,style:{position:`absolute`,top:0,left:0,right:0,bottom:0},children:[(0,W.jsx)(fe,{children:(0,W.jsxs)(pe,{nodes:n,edges:o,onNodesChange:a,onEdgesChange:l,onNodeClick:w,onPaneClick:T,nodeTypes:Qe,fitView:!0,fitViewOptions:{padding:.2},minZoom:.1,maxZoom:2,proOptions:{hideAttribution:!0},children:[(0,W.jsx)(me,{variant:de.Dots,gap:20,size:1}),(0,W.jsx)(oe,{nodeColor:e=>$(e.data?.module),maskColor:`rgba(0, 0, 0, 0.5)`,style:{backgroundColor:R.colors.surface}}),(0,W.jsx)(et,{})]})}),(0,W.jsx)(Ze,{node:u,onClose:()=>T(),onNodeClick:E})]})})]})},et=()=>{let{zoomIn:e,zoomOut:t,fitView:n}=he(),[r,i]=(0,K.useState)(!1);return(0,W.jsxs)(y,{direction:`column`,gap:4,style:{position:`absolute`,bottom:16,left:16,zIndex:10,backgroundColor:R.colors.elevated,border:`1px solid ${R.colors.border}`,borderRadius:8,padding:4},children:[(0,W.jsx)(j,{size:`sm`,variant:`subtle`,tooltip:`Zoom in`,onClick:()=>e(),icon:(0,W.jsx)(V,{size:14})}),(0,W.jsx)(j,{size:`sm`,variant:`subtle`,tooltip:`Zoom out`,onClick:()=>t(),icon:(0,W.jsx)(ze,{size:14})}),(0,W.jsx)(j,{size:`sm`,variant:`subtle`,tooltip:`Fit view`,onClick:()=>n({padding:.2}),icon:(0,W.jsx)(Pe,{size:14})}),(0,W.jsx)(j,{size:`sm`,variant:`subtle`,tooltip:r?`Unlock`:`Lock`,onClick:()=>i(!r),icon:r?(0,W.jsx)(Re,{size:14}):(0,W.jsx)(Le,{size:14})})]})};export{$e as DevDependencyGraph,$e as default};
Binary file
@@ -1 +1 @@
1
- import{At as e,Dt as t,J as n,Lt as r,M as i,Q as a,U as o,a as s,jt as c,kt as l,nt as u,u as d,v as f}from"./chunk.p3hCiSrt.js";var p=r(c(),1),m=e(),h=e=>new Date(e).toLocaleString(),g=e=>{let t=Date.now()-new Date(e).getTime();return t<1e3?`just now`:t<6e4?`${Math.floor(t/1e3)}s ago`:t<36e5?`${Math.floor(t/6e4)}m ago`:`${Math.floor(t/36e5)}h ago`},_=()=>{let e=l(t),[r,c]=(0,p.useState)([]),[_,v]=(0,p.useState)(null),[y,b]=(0,p.useState)(``),x=(0,p.useCallback)(async()=>{if(document.visibilityState===`visible`)try{let t=(await e.fetch(`/__devtools/api/emails`)).data;c(t?.emails??[])}catch{}},[e]);(0,p.useEffect)(()=>{x();let e=setInterval(x,1e4);return()=>clearInterval(e)},[x]);let S=r.filter(e=>{if(!y)return!0;let t=y.toLowerCase();return e.to.toLowerCase().includes(t)||e.subject.toLowerCase().includes(t)}),C=_===null?null:S[_];return(0,m.jsxs)(s,{style:{flex:1,overflow:`hidden`},direction:`column`,children:[(0,m.jsxs)(s,{px:`md`,py:`xs`,gap:`sm`,align:`center`,style:{borderBottom:`1px solid ${d.colors.border}`,flexShrink:0},children:[(0,m.jsx)(i,{size:`xs`,placeholder:`Search...`,leftSection:(0,m.jsx)(f,{size:14}),value:y,onChange:e=>b(e.currentTarget.value),style:{flex:1,minWidth:150,maxWidth:300}}),(0,m.jsxs)(o,{variant:`light`,color:`gray`,size:`sm`,children:[S.length,` emails`]})]}),(0,m.jsxs)(s,{style:{flex:1,overflow:`hidden`},children:[(0,m.jsx)(s,{direction:`column`,style:{flex:1,overflow:`hidden`},children:(0,m.jsxs)(u,{style:{flex:1},children:[S.length===0&&(0,m.jsx)(s,{align:`center`,justify:`center`,py:`xl`,c:`dimmed`,children:(0,m.jsx)(n,{fz:`sm`,children:`No emails to display`})}),S.map((e,t)=>{let r=_===t;return(0,m.jsxs)(s,{direction:`column`,px:`md`,py:`xs`,onClick:()=>v(r?null:t),style:{borderBottom:`1px solid ${d.colors.border}20`,background:r?d.colors.elevated:`transparent`,cursor:`pointer`,transition:`background 100ms`},onMouseEnter:e=>{r||(e.currentTarget.style.background=`${d.colors.elevated}80`)},onMouseLeave:e=>{r||(e.currentTarget.style.background=`transparent`)},children:[(0,m.jsxs)(s,{justify:`space-between`,align:`center`,children:[(0,m.jsx)(n,{fz:`sm`,truncate:!0,children:e.to}),(0,m.jsx)(n,{fz:11,c:`dimmed`,style:{flexShrink:0},children:g(e.sentAt)})]}),(0,m.jsx)(n,{fz:`xs`,c:`dimmed`,truncate:!0,children:e.subject})]},`${e.sentAt}-${t}`)})]})}),C&&(0,m.jsxs)(s,{w:500,direction:`column`,style:{borderLeft:`1px solid ${d.colors.border}`,flexShrink:0,overflow:`hidden`},children:[(0,m.jsxs)(s,{px:`md`,py:`xs`,align:`center`,justify:`space-between`,style:{borderBottom:`1px solid ${d.colors.border}`,flexShrink:0},children:[(0,m.jsx)(n,{fz:`xs`,fw:600,tt:`uppercase`,c:`dimmed`,lts:.5,children:`Email Detail`}),(0,m.jsx)(a,{size:`xs`,onClick:()=>v(null)})]}),(0,m.jsx)(u,{style:{flex:1},p:`md`,children:(0,m.jsxs)(s,{direction:`column`,gap:`md`,children:[(0,m.jsxs)(s,{direction:`column`,children:[(0,m.jsx)(n,{fz:10,c:`dimmed`,tt:`uppercase`,fw:600,lts:.5,mb:4,children:`To`}),(0,m.jsx)(n,{fz:`xs`,children:C.to})]}),(0,m.jsxs)(s,{direction:`column`,children:[(0,m.jsx)(n,{fz:10,c:`dimmed`,tt:`uppercase`,fw:600,lts:.5,mb:4,children:`Date`}),(0,m.jsx)(n,{fz:`xs`,children:h(C.sentAt)})]}),(0,m.jsxs)(s,{direction:`column`,children:[(0,m.jsx)(n,{fz:10,c:`dimmed`,tt:`uppercase`,fw:600,lts:.5,mb:4,children:`Subject`}),(0,m.jsx)(n,{fz:`xs`,children:C.subject})]}),(0,m.jsxs)(s,{direction:`column`,children:[(0,m.jsx)(n,{fz:10,c:`dimmed`,tt:`uppercase`,fw:600,lts:.5,mb:4,children:`Body`}),(0,m.jsx)(`div`,{style:{background:`white`,color:`#333`,border:`1px solid #ccc`,borderRadius:4,padding:12},dangerouslySetInnerHTML:{__html:C.body}})]})]})})]})]})]})};export{_ as DevEmails,_ as default};
1
+ import{At as e,Dt as t,J as n,Lt as r,M as i,Q as a,U as o,a as s,jt as c,kt as l,nt as u,u as d,v as f}from"./chunk.CdOrvGjm.js";var p=r(c(),1),m=e(),h=e=>new Date(e).toLocaleString(),g=e=>{let t=Date.now()-new Date(e).getTime();return t<1e3?`just now`:t<6e4?`${Math.floor(t/1e3)}s ago`:t<36e5?`${Math.floor(t/6e4)}m ago`:`${Math.floor(t/36e5)}h ago`},_=()=>{let e=l(t),[r,c]=(0,p.useState)([]),[_,v]=(0,p.useState)(null),[y,b]=(0,p.useState)(``),x=(0,p.useCallback)(async()=>{if(document.visibilityState===`visible`)try{let t=(await e.fetch(`/__devtools/api/emails`)).data;c(t?.emails??[])}catch{}},[e]);(0,p.useEffect)(()=>{x();let e=setInterval(x,1e4);return()=>clearInterval(e)},[x]);let S=r.filter(e=>{if(!y)return!0;let t=y.toLowerCase();return e.to.toLowerCase().includes(t)||e.subject.toLowerCase().includes(t)}),C=_===null?null:S[_];return(0,m.jsxs)(s,{style:{flex:1,overflow:`hidden`},direction:`column`,children:[(0,m.jsxs)(s,{px:`md`,py:`xs`,gap:`sm`,align:`center`,style:{borderBottom:`1px solid ${d.colors.border}`,flexShrink:0},children:[(0,m.jsx)(i,{size:`xs`,placeholder:`Search...`,leftSection:(0,m.jsx)(f,{size:14}),value:y,onChange:e=>b(e.currentTarget.value),style:{flex:1,minWidth:150,maxWidth:300}}),(0,m.jsxs)(o,{variant:`light`,color:`gray`,size:`sm`,children:[S.length,` emails`]})]}),(0,m.jsxs)(s,{style:{flex:1,overflow:`hidden`},children:[(0,m.jsx)(s,{direction:`column`,style:{flex:1,overflow:`hidden`},children:(0,m.jsxs)(u,{style:{flex:1},children:[S.length===0&&(0,m.jsx)(s,{align:`center`,justify:`center`,py:`xl`,c:`dimmed`,children:(0,m.jsx)(n,{fz:`sm`,children:`No emails to display`})}),S.map((e,t)=>{let r=_===t;return(0,m.jsxs)(s,{direction:`column`,px:`md`,py:`xs`,onClick:()=>v(r?null:t),style:{borderBottom:`1px solid ${d.colors.border}20`,background:r?d.colors.elevated:`transparent`,cursor:`pointer`,transition:`background 100ms`},onMouseEnter:e=>{r||(e.currentTarget.style.background=`${d.colors.elevated}80`)},onMouseLeave:e=>{r||(e.currentTarget.style.background=`transparent`)},children:[(0,m.jsxs)(s,{justify:`space-between`,align:`center`,children:[(0,m.jsx)(n,{fz:`sm`,truncate:!0,children:e.to}),(0,m.jsx)(n,{fz:11,c:`dimmed`,style:{flexShrink:0},children:g(e.sentAt)})]}),(0,m.jsx)(n,{fz:`xs`,c:`dimmed`,truncate:!0,children:e.subject})]},`${e.sentAt}-${t}`)})]})}),C&&(0,m.jsxs)(s,{w:500,direction:`column`,style:{borderLeft:`1px solid ${d.colors.border}`,flexShrink:0,overflow:`hidden`},children:[(0,m.jsxs)(s,{px:`md`,py:`xs`,align:`center`,justify:`space-between`,style:{borderBottom:`1px solid ${d.colors.border}`,flexShrink:0},children:[(0,m.jsx)(n,{fz:`xs`,fw:600,tt:`uppercase`,c:`dimmed`,lts:.5,children:`Email Detail`}),(0,m.jsx)(a,{size:`xs`,onClick:()=>v(null)})]}),(0,m.jsx)(u,{style:{flex:1},p:`md`,children:(0,m.jsxs)(s,{direction:`column`,gap:`md`,children:[(0,m.jsxs)(s,{direction:`column`,children:[(0,m.jsx)(n,{fz:10,c:`dimmed`,tt:`uppercase`,fw:600,lts:.5,mb:4,children:`To`}),(0,m.jsx)(n,{fz:`xs`,children:C.to})]}),(0,m.jsxs)(s,{direction:`column`,children:[(0,m.jsx)(n,{fz:10,c:`dimmed`,tt:`uppercase`,fw:600,lts:.5,mb:4,children:`Date`}),(0,m.jsx)(n,{fz:`xs`,children:h(C.sentAt)})]}),(0,m.jsxs)(s,{direction:`column`,children:[(0,m.jsx)(n,{fz:10,c:`dimmed`,tt:`uppercase`,fw:600,lts:.5,mb:4,children:`Subject`}),(0,m.jsx)(n,{fz:`xs`,children:C.subject})]}),(0,m.jsxs)(s,{direction:`column`,children:[(0,m.jsx)(n,{fz:10,c:`dimmed`,tt:`uppercase`,fw:600,lts:.5,mb:4,children:`Body`}),(0,m.jsx)(`div`,{style:{background:`white`,color:`#333`,border:`1px solid #ccc`,borderRadius:4,padding:12},dangerouslySetInnerHTML:{__html:C.body}})]})]})})]})]})]})};export{_ as DevEmails,_ as default};
Binary file
@@ -0,0 +1 @@
1
+ import{A as e}from"./chunk.CdOrvGjm.js";var t=e(`outline`,`dashboard`,`Dashboard`,[[`path`,{d:`M10 13a2 2 0 1 0 4 0a2 2 0 1 0 -4 0`,key:`svg-0`}],[`path`,{d:`M13.45 11.55l2.05 -2.05`,key:`svg-1`}],[`path`,{d:`M6.4 20a9 9 0 1 1 11.2 0l-11.2 0`,key:`svg-2`}]]),n=e(`outline`,`message`,`Message`,[[`path`,{d:`M8 9h8`,key:`svg-0`}],[`path`,{d:`M8 13h6`,key:`svg-1`}],[`path`,{d:`M18 4a3 3 0 0 1 3 3v8a3 3 0 0 1 -3 3h-5l-5 3v-3h-2a3 3 0 0 1 -3 -3v-8a3 3 0 0 1 3 -3h12`,key:`svg-2`}]]),r=e(`outline`,`sitemap`,`Sitemap`,[[`path`,{d:`M3 17a2 2 0 0 1 2 -2h2a2 2 0 0 1 2 2v2a2 2 0 0 1 -2 2h-2a2 2 0 0 1 -2 -2l0 -2`,key:`svg-0`}],[`path`,{d:`M15 17a2 2 0 0 1 2 -2h2a2 2 0 0 1 2 2v2a2 2 0 0 1 -2 2h-2a2 2 0 0 1 -2 -2l0 -2`,key:`svg-1`}],[`path`,{d:`M9 5a2 2 0 0 1 2 -2h2a2 2 0 0 1 2 2v2a2 2 0 0 1 -2 2h-2a2 2 0 0 1 -2 -2l0 -2`,key:`svg-2`}],[`path`,{d:`M6 15v-1a2 2 0 0 1 2 -2h8a2 2 0 0 1 2 2v1`,key:`svg-3`}],[`path`,{d:`M12 9l0 3`,key:`svg-4`}]]);export{n,t as r,r as t};
Binary file
@@ -0,0 +1 @@
1
+ import{A as e}from"./chunk.CdOrvGjm.js";var t=e(`outline`,`topology-ring`,`TopologyRing`,[[`path`,{d:`M14 20a2 2 0 1 0 -4 0a2 2 0 0 0 4 0`,key:`svg-0`}],[`path`,{d:`M14 4a2 2 0 1 0 -4 0a2 2 0 0 0 4 0`,key:`svg-1`}],[`path`,{d:`M6 12a2 2 0 1 0 -4 0a2 2 0 0 0 4 0`,key:`svg-2`}],[`path`,{d:`M22 12a2 2 0 1 0 -4 0a2 2 0 0 0 4 0`,key:`svg-3`}],[`path`,{d:`M13.5 5.5l5 5`,key:`svg-4`}],[`path`,{d:`M5.5 13.5l5 5`,key:`svg-5`}],[`path`,{d:`M13.5 18.5l5 -5`,key:`svg-6`}],[`path`,{d:`M10.5 5.5l-5 5`,key:`svg-7`}]]);export{t};
Binary file
@@ -1 +1 @@
1
- import{Pt as e}from"./chunk.p3hCiSrt.js";var t=e.object({name:e.text(),group:e.text(),method:e.text(),path:e.text(),prefix:e.text(),fullPath:e.text(),description:e.optional(e.text()),summary:e.optional(e.text()),disabled:e.optional(e.boolean()),secure:e.optional(e.boolean()),hide:e.optional(e.boolean()),body:e.optional(e.any()),params:e.optional(e.any()),query:e.optional(e.any()),response:e.optional(e.any()),bodyContentType:e.optional(e.text()),middlewares:e.optional(e.array(e.object({name:e.text(),options:e.optional(e.any())})))}),n=e.object({name:e.text(),description:e.optional(e.text()),schema:e.any(),defaultValue:e.optional(e.any()),currentValue:e.optional(e.any())}),r=e.object({name:e.text(),description:e.optional(e.text()),mimeTypes:e.optional(e.array(e.text())),maxSize:e.optional(e.number()),provider:e.text()}),i=e.object({name:e.text(),ttl:e.optional(e.any()),disabled:e.optional(e.boolean()),provider:e.text()}),a=e.object({name:e.text(),type:e.text(),nullable:e.boolean(),primaryKey:e.boolean(),identity:e.boolean(),createdAt:e.boolean(),updatedAt:e.boolean(),deletedAt:e.boolean(),version:e.boolean(),hasDefault:e.boolean(),ref:e.optional(e.object({entity:e.text(),column:e.text(),onUpdate:e.optional(e.text()),onDelete:e.optional(e.text())}))}),o=e.object({name:e.optional(e.text()),columns:e.array(e.text()),unique:e.boolean()}),s=e.object({name:e.optional(e.text()),columns:e.array(e.text()),foreignEntity:e.text(),foreignColumns:e.array(e.text())}),c=e.object({name:e.optional(e.text()),columns:e.array(e.text()),unique:e.boolean(),hasCheck:e.boolean()}),l=e.object({name:e.text(),provider:e.text(),columns:e.array(a),indexes:e.array(o),foreignKeys:e.array(s),constraints:e.array(c),schema:e.optional(e.any()),insertSchema:e.optional(e.any()),updateSchema:e.optional(e.any())}),u=e.object({propertyKey:e.text(),schema:e.any(),values:e.record(e.text(),e.any()),serviceName:e.optional(e.text())}),d=e.object({name:e.text(),providers:e.array(e.text())}),f=e.object({name:e.text(),label:e.optional(e.text()),description:e.optional(e.text()),path:e.optional(e.text()),parentName:e.optional(e.text()),params:e.optional(e.any()),query:e.optional(e.any()),hasComponent:e.boolean(),hasLazy:e.boolean(),hasResolve:e.boolean(),childrenNames:e.optional(e.array(e.text())),hasChildren:e.boolean(),hasParent:e.boolean(),hasErrorHandler:e.boolean(),static:e.optional(e.boolean()),cache:e.optional(e.any()),client:e.optional(e.any()),animation:e.optional(e.any())}),p=e.object({name:e.text(),module:e.optional(e.text()),dependencies:e.array(e.text()),aliases:e.optional(e.array(e.text()))}),m=e.object({name:e.text(),description:e.optional(e.text()),schema:e.optional(e.any()),provider:e.text()}),h=e.object({name:e.text(),description:e.optional(e.text()),roles:e.optional(e.array(e.any())),type:e.enum([`internal`,`external`]),settings:e.optional(e.object({accessTokenExpiration:e.optional(e.any()),refreshTokenExpiration:e.optional(e.any()),hasOnCreateSession:e.boolean(),hasOnRefreshSession:e.boolean(),hasOnDeleteSession:e.boolean()}))}),g=e.object({method:e.text(),path:e.text()}),_=e.object({name:e.text(),description:e.optional(e.text()),cron:e.optional(e.text()),interval:e.optional(e.any()),lock:e.optional(e.boolean())}),v=e.object({name:e.text(),description:e.optional(e.text()),schema:e.optional(e.any()),provider:e.text(),subscribers:e.integer()}),y=e.object({alephaVersion:e.text(),nodeVersion:e.text(),runtime:e.enum([`node`,`bun`]),mode:e.enum([`development`,`production`]),port:e.integer(),uptime:e.number(),memoryUsage:e.number()}),b=e.object({system:y,actions:e.array(t),queues:e.array(m),schedulers:e.array(_),topics:e.array(v),buckets:e.array(r),realms:e.array(h),caches:e.array(i),pages:e.array(f),providers:e.array(p),modules:e.array(d),entities:e.array(l),routes:e.array(g),envs:e.array(u),atoms:e.array(n)});export{b as t};
1
+ import{Pt as e}from"./chunk.CdOrvGjm.js";var t=e.object({name:e.text(),group:e.text(),method:e.text(),path:e.text(),prefix:e.text(),fullPath:e.text(),description:e.optional(e.text()),summary:e.optional(e.text()),disabled:e.optional(e.boolean()),secure:e.optional(e.boolean()),hide:e.optional(e.boolean()),body:e.optional(e.any()),params:e.optional(e.any()),query:e.optional(e.any()),response:e.optional(e.any()),bodyContentType:e.optional(e.text()),middlewares:e.optional(e.array(e.object({name:e.text(),options:e.optional(e.any())})))}),n=e.object({name:e.text(),description:e.optional(e.text()),schema:e.any(),defaultValue:e.optional(e.any()),currentValue:e.optional(e.any())}),r=e.object({name:e.text(),description:e.optional(e.text()),mimeTypes:e.optional(e.array(e.text())),maxSize:e.optional(e.number()),provider:e.text()}),i=e.object({name:e.text(),ttl:e.optional(e.any()),disabled:e.optional(e.boolean()),provider:e.text()}),a=e.object({name:e.text(),type:e.text(),nullable:e.boolean(),primaryKey:e.boolean(),identity:e.boolean(),createdAt:e.boolean(),updatedAt:e.boolean(),deletedAt:e.boolean(),version:e.boolean(),hasDefault:e.boolean(),ref:e.optional(e.object({entity:e.text(),column:e.text(),onUpdate:e.optional(e.text()),onDelete:e.optional(e.text())}))}),o=e.object({name:e.optional(e.text()),columns:e.array(e.text()),unique:e.boolean()}),s=e.object({name:e.optional(e.text()),columns:e.array(e.text()),foreignEntity:e.text(),foreignColumns:e.array(e.text())}),c=e.object({name:e.optional(e.text()),columns:e.array(e.text()),unique:e.boolean(),hasCheck:e.boolean()}),l=e.object({name:e.text(),provider:e.text(),columns:e.array(a),indexes:e.array(o),foreignKeys:e.array(s),constraints:e.array(c),schema:e.optional(e.any()),insertSchema:e.optional(e.any()),updateSchema:e.optional(e.any())}),u=e.object({propertyKey:e.text(),schema:e.any(),values:e.record(e.text(),e.any()),serviceName:e.optional(e.text())}),d=e.object({name:e.text(),providers:e.array(e.text())}),f=e.object({name:e.text(),label:e.optional(e.text()),description:e.optional(e.text()),path:e.optional(e.text()),parentName:e.optional(e.text()),params:e.optional(e.any()),query:e.optional(e.any()),hasComponent:e.boolean(),hasLazy:e.boolean(),hasResolve:e.boolean(),childrenNames:e.optional(e.array(e.text())),hasChildren:e.boolean(),hasParent:e.boolean(),hasErrorHandler:e.boolean(),static:e.optional(e.boolean()),cache:e.optional(e.any()),client:e.optional(e.any()),animation:e.optional(e.any())}),p=e.object({name:e.text(),module:e.optional(e.text()),dependencies:e.array(e.text()),aliases:e.optional(e.array(e.text()))}),m=e.object({name:e.text(),description:e.optional(e.text()),schema:e.optional(e.any()),provider:e.text()}),h=e.object({name:e.text(),description:e.optional(e.text()),roles:e.optional(e.array(e.any())),type:e.enum([`internal`,`external`]),settings:e.optional(e.object({accessTokenExpiration:e.optional(e.any()),refreshTokenExpiration:e.optional(e.any()),hasOnCreateSession:e.boolean(),hasOnRefreshSession:e.boolean(),hasOnDeleteSession:e.boolean()}))}),g=e.object({method:e.text(),path:e.text()}),_=e.object({name:e.text(),description:e.optional(e.text()),cron:e.optional(e.text()),interval:e.optional(e.any()),lock:e.optional(e.boolean())}),v=e.object({name:e.text(),description:e.optional(e.text()),schema:e.optional(e.any()),provider:e.text(),subscribers:e.integer()}),y=e.object({alephaVersion:e.text(),nodeVersion:e.text(),runtime:e.enum([`node`,`bun`]),mode:e.enum([`development`,`production`]),port:e.integer(),uptime:e.number(),memoryUsage:e.number()}),b=e.object({system:y,actions:e.array(t),queues:e.array(m),schedulers:e.array(_),topics:e.array(v),buckets:e.array(r),realms:e.array(h),caches:e.array(i),pages:e.array(f),providers:e.array(p),modules:e.array(d),entities:e.array(l),routes:e.array(g),envs:e.array(u),atoms:e.array(n)});export{b as t};
Binary file
@@ -0,0 +1 @@
1
+ import{A as e,At as t,B as n,Dt as r,H as i,J as a,Lt as o,P as s,T as c,Tt as l,U as u,a as d,at as f,ct as p,f as m,gt as h,it as g,jt as _,kt as v,l as y,lt as b,nt as x,u as S}from"./chunk.CdOrvGjm.js";import{a as ee,i as C,n as w,r as T,t as E}from"./chunk.CVhxB_15.js";import{n as D,t as O}from"./chunk.W_TFMb5-.js";import{t as k}from"./chunk.B9RkIaX-.js";import{t as A}from"./chunk.AicQIFSI.js";import{t as j}from"./chunk.BennGilR.js";import{t as M}from"./chunk.DGcirGNX.js";import"./chunk.Bu6ZqSw8.js";var N=[`h1`,`h2`,`h3`,`h4`,`h5`,`h6`],P=[`xs`,`sm`,`md`,`lg`,`xl`];function F(e,t){let n=t===void 0?`h${e}`:t;return N.includes(n)?{fontSize:`var(--mantine-${n}-font-size)`,fontWeight:`var(--mantine-${n}-font-weight)`,lineHeight:`var(--mantine-${n}-line-height)`}:P.includes(n)?{fontSize:`var(--mantine-font-size-${n})`,fontWeight:`var(--mantine-h${e}-font-weight)`,lineHeight:`var(--mantine-h${e}-line-height)`}:{fontSize:l(n),fontWeight:`var(--mantine-h${e}-font-weight)`,lineHeight:`var(--mantine-h${e}-line-height)`}}var I={root:`m_8a5d1357`},L=t(),R={order:1},z=h((e,{order:t,size:n,lineClamp:r,textWrap:i})=>{let a=F(t||1,n);return{root:{"--title-fw":a.fontWeight,"--title-lh":a.lineHeight,"--title-fz":a.fontSize,"--title-line-clamp":typeof r==`number`?r.toString():void 0,"--title-text-wrap":i}}}),B=f(e=>{let t=b(`Title`,R,e),{classNames:n,className:r,style:i,styles:a,unstyled:o,order:s,vars:c,size:l,variant:u,lineClamp:d,textWrap:f,mod:m,attributes:h,..._}=t,v=p({name:`Title`,props:t,classes:I,className:r,style:i,classNames:n,styles:a,unstyled:o,attributes:h,vars:c,varsResolver:z});return[1,2,3,4,5,6].includes(s)?(0,L.jsx)(g,{...v(`root`),component:`h${s}`,variant:u,mod:[{order:s,"data-line-clamp":typeof d==`number`},m],size:l,..._}):null});B.classes=I,B.varsResolver=z,B.displayName=`@mantine/core/Title`;var V=e(`outline`,`brand-nodejs`,`BrandNodejs`,[[`path`,{d:`M9 9v8.044a2 2 0 0 1 -2.996 1.734l-1.568 -.9a3 3 0 0 1 -1.436 -2.561v-6.635a3 3 0 0 1 1.436 -2.56l6 -3.667a3 3 0 0 1 3.128 0l6 3.667a3 3 0 0 1 1.436 2.561v6.634a3 3 0 0 1 -1.436 2.56l-6 3.667a3 3 0 0 1 -3.128 0`,key:`svg-0`}],[`path`,{d:`M17 9h-3.5a1.5 1.5 0 0 0 0 3h2a1.5 1.5 0 0 1 0 3h-3.5`,key:`svg-1`}]]),H=e(`outline`,`cpu`,`Cpu`,[[`path`,{d:`M5 6a1 1 0 0 1 1 -1h12a1 1 0 0 1 1 1v12a1 1 0 0 1 -1 1h-12a1 1 0 0 1 -1 -1l0 -12`,key:`svg-0`}],[`path`,{d:`M9 9h6v6h-6l0 -6`,key:`svg-1`}],[`path`,{d:`M3 10h2`,key:`svg-2`}],[`path`,{d:`M3 14h2`,key:`svg-3`}],[`path`,{d:`M10 3v2`,key:`svg-4`}],[`path`,{d:`M14 3v2`,key:`svg-5`}],[`path`,{d:`M21 10h-2`,key:`svg-6`}],[`path`,{d:`M21 14h-2`,key:`svg-7`}],[`path`,{d:`M14 21v-2`,key:`svg-8`}],[`path`,{d:`M10 21v-2`,key:`svg-9`}]]),U=e(`outline`,`plug`,`Plug`,[[`path`,{d:`M9.785 6l8.215 8.215l-2.054 2.054a5.81 5.81 0 1 1 -8.215 -8.215l2.054 -2.054`,key:`svg-0`}],[`path`,{d:`M4 20l3.5 -3.5`,key:`svg-1`}],[`path`,{d:`M15 4l-3.5 3.5`,key:`svg-2`}],[`path`,{d:`M20 9l-3.5 3.5`,key:`svg-3`}]]),W=e(`outline`,`server`,`Server`,[[`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`}]]),G=o(_(),1),K=e=>e<60?`${Math.floor(e)}s`:e<3600?`${Math.floor(e/60)}m ${Math.floor(e%60)}s`:`${Math.floor(e/3600)}h ${Math.floor(e%3600/60)}m`,q=e=>e<1024?`${e} B`:e<1024*1024?`${(e/1024).toFixed(1)} KB`:`${(e/(1024*1024)).toFixed(1)} MB`,J={ERROR:`red`,WARN:`yellow`,INFO:`blue`,DEBUG:`gray`,TRACE:`dimmed`},Y={http:`teal`,db:`violet`,error:`red`},X=e=>{if(!(!e||typeof e!=`object`)){if(e.status&&e.method&&e.path&&e.duration)return`http`;if(e.type===`db:query`)return`db`}},Z=e=>{let t=e.data,n=X(t);return n===`http`?`${t.method} ${t.path} → ${t.status} (${t.duration}ms)`:n===`db`?`${t.operation} (${Math.round(t.duration)}ms)`:e.message},Q=()=>{let e=v(r),t=m(),[o,l]=(0,G.useState)(null),[f,p]=(0,G.useState)([]),[h,g]=(0,G.useState)([]),[_,b]=(0,G.useState)(!1),N=(0,G.useCallback)(async()=>{if(document.visibilityState===`visible`)try{let[t,n,r]=await Promise.all([e.fetch(`/__devtools/api/metadata`,{schema:{response:M}}),e.fetch(`/__devtools/api/logs?limit=10&level=DEBUG`),e.fetch(`/__devtools/api/logs?limit=20&type=http,db`)]);l(t.data),p(n.data?.logs??[]),g(r.data?.logs??[])}catch{}},[e]),P=(0,G.useCallback)(async()=>{b(!0);try{await e.fetch(`/__devtools/api/reload`,{method:`POST`}),setTimeout(()=>{N(),b(!1)},1e3)}catch{b(!1)}},[e,N]);(0,G.useEffect)(()=>{N();let e=setInterval(N,1e4);return()=>clearInterval(e)},[N]);let F=o?.system,I=(0,G.useMemo)(()=>o?[{label:`Actions`,count:o.actions?.length??0,icon:ee,color:`teal`},{label:`Pages`,count:o.pages?.length??0,icon:T,color:`blue`},{label:`Entities`,count:o.entities?.length??0,icon:k,color:`violet`},{label:`Queues`,count:o.queues?.length??0,icon:E,color:`orange`},{label:`Topics`,count:o.topics?.length??0,icon:C,color:`pink`},{label:`Caches`,count:o.caches?.length??0,icon:w,color:`cyan`},{label:`Providers`,count:o.providers?.length??0,icon:U,color:`grape`},{label:`Atoms`,count:o.atoms?.length??0,icon:D,color:`lime`},{label:`Env Vars`,count:o.envs?.length??0,icon:j,color:`yellow`}]:[],[o]);return(0,L.jsx)(d,{p:`lg`,w:`100%`,flex:1,direction:`column`,style:{overflow:`auto`},children:(0,L.jsxs)(d,{direction:`column`,gap:`lg`,children:[(0,L.jsxs)(`div`,{children:[(0,L.jsxs)(d,{justify:`space-between`,align:`center`,mb:`sm`,children:[(0,L.jsx)(B,{order:5,c:`dimmed`,tt:`uppercase`,fz:`xs`,fw:600,lts:1,children:`System`}),(0,L.jsx)(y,{size:`xs`,variant:`subtle`,color:`gray`,loading:_,onClick:P,icon:(0,L.jsx)(O,{size:14}),children:`Reload`})]}),(0,L.jsx)(s,{cols:{base:2,sm:3,md:4,lg:6},spacing:`sm`,children:F&&(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)($,{icon:W,label:`Runtime`,value:F.runtime===`bun`?`Bun`:`Node.js`}),(0,L.jsx)($,{icon:V,label:`Version`,value:F.nodeVersion}),(0,L.jsx)($,{icon:A,label:`Mode`,value:F.mode}),(0,L.jsx)($,{icon:w,label:`Port`,value:String(F.port)}),(0,L.jsx)($,{icon:c,label:`Uptime`,value:K(F.uptime)}),(0,L.jsx)($,{icon:H,label:`Memory`,value:q(F.memoryUsage)})]})})]}),(0,L.jsxs)(n,{gap:`lg`,children:[(0,L.jsx)(n.Col,{span:{base:12,md:7},children:(0,L.jsxs)(i,{padding:`md`,radius:`md`,style:{background:S.colors.surface,border:`1px solid ${S.colors.border}`},children:[(0,L.jsx)(B,{order:5,mb:`sm`,c:`dimmed`,tt:`uppercase`,fz:`xs`,fw:600,lts:1,children:`Recent Events`}),(0,L.jsx)(x,{h:280,children:(0,L.jsxs)(d,{direction:`column`,gap:4,children:[h.length===0&&(0,L.jsx)(a,{c:`dimmed`,fz:`sm`,ta:`center`,py:`xl`,children:`No events yet`}),h.map((e,t)=>{let n=X(e.data)??`log`;return(0,L.jsxs)(d,{gap:`xs`,px:`xs`,py:4,style:{borderRadius:4,cursor:`pointer`,transition:`background 150ms`},onMouseEnter:e=>{e.currentTarget.style.background=`${S.colors.elevated}`},onMouseLeave:e=>{e.currentTarget.style.background=`transparent`},children:[(0,L.jsx)(a,{fz:`xs`,c:`dimmed`,ff:`monospace`,w:55,style:{flexShrink:0},children:new Date(e.timestamp).toLocaleTimeString(`en`,{hour12:!1})}),(0,L.jsx)(u,{size:`xs`,variant:`light`,color:Y[n]??`gray`,style:{flexShrink:0},children:n===`http`?`HTTP`:n===`db`?`DB`:`LOG`}),(0,L.jsx)(a,{fz:`xs`,ff:`monospace`,truncate:!0,style:{flex:1},children:Z(e)})]},`${e.timestamp}-${t}`)})]})})]})}),(0,L.jsx)(n.Col,{span:{base:12,md:5},children:(0,L.jsxs)(i,{padding:`md`,radius:`md`,style:{background:S.colors.surface,border:`1px solid ${S.colors.border}`},children:[(0,L.jsxs)(d,{justify:`space-between`,mb:`sm`,children:[(0,L.jsx)(B,{order:5,c:`dimmed`,tt:`uppercase`,fz:`xs`,fw:600,lts:1,children:`Recent Logs`}),(0,L.jsx)(a,{fz:`xs`,c:`blue`,style:{cursor:`pointer`},onClick:()=>t.push(`/logs`),children:`View all`})]}),(0,L.jsx)(x,{h:280,children:(0,L.jsxs)(d,{direction:`column`,gap:4,children:[f.length===0&&(0,L.jsx)(a,{c:`dimmed`,fz:`sm`,ta:`center`,py:`xl`,children:`No logs yet`}),f.map((e,t)=>(0,L.jsxs)(d,{gap:`xs`,px:`xs`,py:4,style:{borderRadius:4},children:[(0,L.jsx)(u,{size:`xs`,variant:`light`,color:J[e.level]??`gray`,w:50,style:{flexShrink:0},children:e.level}),(0,L.jsx)(a,{fz:`xs`,c:`dimmed`,w:80,truncate:!0,style:{flexShrink:0},children:e.module}),(0,L.jsx)(a,{fz:`xs`,ff:`monospace`,truncate:!0,style:{flex:1},children:e.message})]},`${e.timestamp}-${t}`))]})})]})})]}),(0,L.jsxs)(`div`,{children:[(0,L.jsx)(B,{order:5,mb:`sm`,c:`dimmed`,tt:`uppercase`,fz:`xs`,fw:600,lts:1,children:`Primitives`}),(0,L.jsx)(s,{cols:{base:2,sm:3,md:5},spacing:`sm`,children:I.map(e=>(0,L.jsx)(i,{padding:`sm`,radius:`md`,style:{background:S.colors.surface,border:`1px solid ${S.colors.border}`},children:(0,L.jsxs)(d,{gap:`sm`,children:[(0,L.jsx)(e.icon,{size:18,opacity:.5}),(0,L.jsxs)(`div`,{style:{flex:1},children:[(0,L.jsx)(a,{fz:`xs`,c:`dimmed`,children:e.label}),(0,L.jsx)(a,{fz:`lg`,fw:700,lh:1.2,children:e.count})]})]})},e.label))})]})]})})},$=({icon:e,label:t,value:n})=>(0,L.jsx)(i,{padding:`sm`,radius:`md`,style:{background:S.colors.surface,border:`1px solid ${S.colors.border}`},children:(0,L.jsxs)(d,{gap:`xs`,children:[(0,L.jsx)(e,{size:16,opacity:.4}),(0,L.jsxs)(`div`,{children:[(0,L.jsx)(a,{fz:10,c:`dimmed`,tt:`uppercase`,lts:.5,children:t}),(0,L.jsx)(a,{fz:`sm`,fw:600,ff:`monospace`,lh:1.3,children:n})]})]})});export{Q as DevDashboard,Q as default};
Binary file
@@ -1 +1 @@
1
- import{$ as e,At as t,Dt as n,Et as r,J as i,Lt as a,M as o,Nt as s,Pt as c,U as l,_ as u,a as d,f,jt as p,kt as m,l as h,m as g,nt as _,r as v,tt as y,u as b,v as x,y as S}from"./chunk.p3hCiSrt.js";import{a as C}from"./entry.DnXws2rz.js";import{t as w}from"./chunk.DOwjsMaD.js";import"./chunk.TIounDiA.js";import{t as T}from"./chunk.yh4jaMrg.js";var E=a(p(),1),D=t(),O=c.object({}),k=e=>{if(!e)return null;try{let t=s(e);if(t?.properties)return t}catch{}return null},A=({entity:e,record:t,isNew:n,onSave:a,onDelete:o,pkColumn:s})=>{let c=(0,E.useMemo)(()=>k(n?e.insertSchema:e.updateSchema)??O,[e,n]),l=r({schema:c,handler:()=>{},initialValues:n?void 0:t},[c,t,n]);return(0,D.jsxs)(d,{direction:`column`,gap:`md`,children:[(0,D.jsxs)(d,{justify:`space-between`,children:[(0,D.jsx)(i,{fz:`sm`,fw:600,children:n?`New Record`:`Edit Record (${s}: ${t?.[s]})`}),(0,D.jsxs)(d,{gap:`xs`,children:[(0,D.jsx)(h,{size:`xs`,onClick:()=>a(l.currentValues),children:n?`Create`:`Save`}),!n&&(0,D.jsx)(h,{size:`sm`,variant:`light`,intent:`danger`,onClick:o,icon:(0,D.jsx)(u,{size:14})})]})]}),(0,D.jsx)(v,{form:l,skipSubmitButton:!0,skipFormElement:!0,columns:1})]})},j=e=>{if(!e.startsWith(`/db/editor/`))return{table:``,recordId:``};let t=e.slice(11),n=t.indexOf(`/`);return n===-1?{table:decodeURIComponent(t),recordId:``}:{table:decodeURIComponent(t.slice(0,n)),recordId:decodeURIComponent(t.slice(n+1))}},M=({entities:t})=>{let r=m(n),a=f(),s=g(),[c,u]=(0,E.useState)([]),[p,v]=(0,E.useState)(!1),[w,O]=(0,E.useState)(``),[k,M]=(0,E.useState)(null),{table:N,recordId:P}=j(s.url.pathname),F=P===`new`,I=t.find(e=>e.name===N),L=I?.columns?.find(e=>e.primaryKey)?.name??`id`,R=(0,E.useCallback)(async()=>{if(N){v(!0);try{let e=await r.fetch(`/__devtools/api/db/${N}/records?size=50`);u(e.data?.content??[]),M(e.data?.page)}catch{u([])}finally{v(!1)}}},[r,N]);(0,E.useEffect)(()=>{R()},[N,R]);let z=(0,E.useMemo)(()=>!P||F?null:c.find(e=>String(e[L])===P)??null,[c,P,F,L]),B=(0,E.useCallback)(e=>{a.push(`/db/editor/${encodeURIComponent(e)}`)},[a]),V=(0,E.useCallback)(e=>{let t=e[L];a.push(`/db/editor/${encodeURIComponent(N)}/${encodeURIComponent(String(t))}`)},[a,N,L]),H=(0,E.useCallback)(()=>{a.push(`/db/editor/${encodeURIComponent(N)}/new`)},[a,N]),U=async e=>{try{if(F)await r.fetch(`/__devtools/api/db/${N}/records`,{method:`POST`,body:JSON.stringify(e),headers:{"Content-Type":`application/json`}}),a.push(`/db/editor/${encodeURIComponent(N)}`);else if(z){let t=z[L];await r.fetch(`/__devtools/api/db/${N}/records/${t}`,{method:`PUT`,body:JSON.stringify(e),headers:{"Content-Type":`application/json`}})}await R()}catch{}},W=async()=>{if(!z)return;let e=z[L];try{await r.fetch(`/__devtools/api/db/${N}/records/${e}`,{method:`DELETE`}),a.push(`/db/editor/${encodeURIComponent(N)}`),await R()}catch{}},G=(0,E.useMemo)(()=>t.filter(e=>e.name.toLowerCase().includes(w.toLowerCase())).map(e=>({id:`entity:${e.name}`,label:e.name,icon:(0,D.jsx)(C,{size:13,color:`var(--mantine-color-blue-text)`,style:{flexShrink:0}}),badge:(0,D.jsx)(l,{size:`xs`,variant:`light`,color:`gray`,children:e.columns?.length??0})})),[t,w]),K=(0,E.useCallback)(e=>{B(e.replace(/^entity:/,``))},[B]),q=(0,E.useMemo)(()=>new Set,[]),J=N?`entity:${N}`:``;return(0,D.jsxs)(d,{style:{flex:1,overflow:`hidden`},children:[(0,D.jsxs)(d,{w:200,style:{borderRight:`1px solid ${b.colors.border}`,flexShrink:0,display:`flex`,flexDirection:`column`},children:[(0,D.jsx)(d,{p:`xs`,children:(0,D.jsx)(o,{size:`xs`,placeholder:`Filter tables...`,leftSection:(0,D.jsx)(x,{size:14}),value:w,onChange:e=>O(e.currentTarget.value)})}),(0,D.jsx)(_,{style:{flex:1},px:`xs`,children:(0,D.jsx)(T,{nodes:G,selectedId:J,openNodes:q,onSelect:K,onToggle:()=>{},showLeafCount:!1})})]}),N&&(0,D.jsxs)(d,{w:200,style:{borderRight:`1px solid ${b.colors.border}`,flexShrink:0,display:`flex`,flexDirection:`column`},children:[(0,D.jsx)(d,{px:`xs`,py:`xs`,style:{borderBottom:`1px solid ${b.colors.border}`,flexShrink:0},children:(0,D.jsxs)(d,{gap:`xs`,justify:`space-between`,children:[(0,D.jsxs)(i,{fz:10,c:`dimmed`,tt:`uppercase`,fw:600,lts:.5,children:[`Records`,` `,k?.totalElements!=null&&`(${k.totalElements})`]}),(0,D.jsx)(h,{size:`xs`,variant:`subtle`,color:`teal`,onClick:H,icon:(0,D.jsx)(S,{size:14})})]})}),(0,D.jsxs)(_,{style:{flex:1},px:`xs`,py:`xs`,children:[(0,D.jsx)(y,{w:`100%`,py:4,className:`devtools-tree-node`,"data-selected":F||void 0,style:{borderRadius:6,paddingLeft:8,paddingRight:8,transition:`background 100ms ease`},onClick:H,children:(0,D.jsxs)(d,{gap:8,wrap:`nowrap`,children:[(0,D.jsx)(S,{size:13,color:`var(--mantine-color-teal-text)`,style:{flexShrink:0}}),(0,D.jsx)(i,{fz:12,c:`teal`,children:`New Record`})]})}),p?(0,D.jsx)(d,{justify:`center`,py:`md`,children:(0,D.jsx)(e,{size:`xs`})}):c.map((e,t)=>{let n=e[L]??t,r=!F&&String(n)===P;return(0,D.jsx)(y,{w:`100%`,py:4,className:`devtools-tree-node`,"data-selected":r||void 0,style:{borderRadius:6,paddingLeft:8,paddingRight:8,transition:`background 100ms ease`},onClick:()=>V(e),children:(0,D.jsxs)(i,{fz:12,ff:`monospace`,truncate:!0,children:[L,`: `,String(n)]})},String(n))})]})]}),(0,D.jsxs)(d,{style:{flex:1,overflow:`auto`},p:`md`,children:[!N&&(0,D.jsx)(d,{align:`center`,justify:`center`,h:`100%`,children:(0,D.jsx)(i,{c:`dimmed`,fz:`sm`,children:`Select a table to browse records`})}),N&&!z&&!F&&(0,D.jsx)(d,{align:`center`,justify:`center`,h:`100%`,children:(0,D.jsx)(i,{c:`dimmed`,fz:`sm`,children:`Select a record or create a new one`})}),(z||F)&&I&&(0,D.jsx)(A,{entity:I,record:z,isNew:F,onSave:U,onDelete:W,pkColumn:L})]})]})},N=()=>{let e=m(n),[t,r]=(0,E.useState)([]);return(0,E.useEffect)(()=>{e.fetch(`/__devtools/api/metadata`,{schema:{response:w}}).then(e=>r(e.data.entities??[])).catch(()=>{})},[e]),(0,D.jsx)(M,{entities:t})};export{N as default};
1
+ import{$ as e,At as t,Dt as n,Et as r,J as i,Lt as a,M as o,Nt as s,Pt as c,U as l,_ as u,a as d,f,jt as p,kt as m,l as h,m as g,nt as _,r as v,tt as y,u as b,v as x,y as S}from"./chunk.CdOrvGjm.js";import{t as C}from"./chunk.B9RkIaX-.js";import{t as w}from"./chunk.DGcirGNX.js";import"./chunk.Bu6ZqSw8.js";import{t as T}from"./chunk.B25mt84g.js";var E=a(p(),1),D=t(),O=c.object({}),k=e=>{if(!e)return null;try{let t=s(e);if(t?.properties)return t}catch{}return null},A=({entity:e,record:t,isNew:n,onSave:a,onDelete:o,pkColumn:s})=>{let c=(0,E.useMemo)(()=>k(n?e.insertSchema:e.updateSchema)??O,[e,n]),l=r({schema:c,handler:()=>{},initialValues:n?void 0:t},[c,t,n]);return(0,D.jsxs)(d,{direction:`column`,gap:`md`,children:[(0,D.jsxs)(d,{justify:`space-between`,children:[(0,D.jsx)(i,{fz:`sm`,fw:600,children:n?`New Record`:`Edit Record (${s}: ${t?.[s]})`}),(0,D.jsxs)(d,{gap:`xs`,children:[(0,D.jsx)(h,{size:`xs`,onClick:()=>a(l.currentValues),children:n?`Create`:`Save`}),!n&&(0,D.jsx)(h,{size:`sm`,variant:`light`,intent:`danger`,onClick:o,icon:(0,D.jsx)(u,{size:14})})]})]}),(0,D.jsx)(v,{form:l,skipSubmitButton:!0,skipFormElement:!0,columns:1})]})},j=e=>{if(!e.startsWith(`/db/editor/`))return{table:``,recordId:``};let t=e.slice(11),n=t.indexOf(`/`);return n===-1?{table:decodeURIComponent(t),recordId:``}:{table:decodeURIComponent(t.slice(0,n)),recordId:decodeURIComponent(t.slice(n+1))}},M=({entities:t})=>{let r=m(n),a=f(),s=g(),[c,u]=(0,E.useState)([]),[p,v]=(0,E.useState)(!1),[w,O]=(0,E.useState)(``),[k,M]=(0,E.useState)(null),{table:N,recordId:P}=j(s.url.pathname),F=P===`new`,I=t.find(e=>e.name===N),L=I?.columns?.find(e=>e.primaryKey)?.name??`id`,R=(0,E.useCallback)(async()=>{if(N){v(!0);try{let e=await r.fetch(`/__devtools/api/db/${N}/records?size=50`);u(e.data?.content??[]),M(e.data?.page)}catch{u([])}finally{v(!1)}}},[r,N]);(0,E.useEffect)(()=>{R()},[N,R]);let z=(0,E.useMemo)(()=>!P||F?null:c.find(e=>String(e[L])===P)??null,[c,P,F,L]),B=(0,E.useCallback)(e=>{a.push(`/db/editor/${encodeURIComponent(e)}`)},[a]),V=(0,E.useCallback)(e=>{let t=e[L];a.push(`/db/editor/${encodeURIComponent(N)}/${encodeURIComponent(String(t))}`)},[a,N,L]),H=(0,E.useCallback)(()=>{a.push(`/db/editor/${encodeURIComponent(N)}/new`)},[a,N]),U=async e=>{try{if(F)await r.fetch(`/__devtools/api/db/${N}/records`,{method:`POST`,body:JSON.stringify(e),headers:{"Content-Type":`application/json`}}),a.push(`/db/editor/${encodeURIComponent(N)}`);else if(z){let t=z[L];await r.fetch(`/__devtools/api/db/${N}/records/${t}`,{method:`PUT`,body:JSON.stringify(e),headers:{"Content-Type":`application/json`}})}await R()}catch{}},W=async()=>{if(!z)return;let e=z[L];try{await r.fetch(`/__devtools/api/db/${N}/records/${e}`,{method:`DELETE`}),a.push(`/db/editor/${encodeURIComponent(N)}`),await R()}catch{}},G=(0,E.useMemo)(()=>t.filter(e=>e.name.toLowerCase().includes(w.toLowerCase())).map(e=>({id:`entity:${e.name}`,label:e.name,icon:(0,D.jsx)(C,{size:13,color:`var(--mantine-color-blue-text)`,style:{flexShrink:0}}),badge:(0,D.jsx)(l,{size:`xs`,variant:`light`,color:`gray`,children:e.columns?.length??0})})),[t,w]),K=(0,E.useCallback)(e=>{B(e.replace(/^entity:/,``))},[B]),q=(0,E.useMemo)(()=>new Set,[]),J=N?`entity:${N}`:``;return(0,D.jsxs)(d,{style:{flex:1,overflow:`hidden`},children:[(0,D.jsxs)(d,{w:200,style:{borderRight:`1px solid ${b.colors.border}`,flexShrink:0,display:`flex`,flexDirection:`column`},children:[(0,D.jsx)(d,{p:`xs`,children:(0,D.jsx)(o,{size:`xs`,placeholder:`Filter tables...`,leftSection:(0,D.jsx)(x,{size:14}),value:w,onChange:e=>O(e.currentTarget.value)})}),(0,D.jsx)(_,{style:{flex:1},px:`xs`,children:(0,D.jsx)(T,{nodes:G,selectedId:J,openNodes:q,onSelect:K,onToggle:()=>{},showLeafCount:!1})})]}),N&&(0,D.jsxs)(d,{w:200,style:{borderRight:`1px solid ${b.colors.border}`,flexShrink:0,display:`flex`,flexDirection:`column`},children:[(0,D.jsx)(d,{px:`xs`,py:`xs`,style:{borderBottom:`1px solid ${b.colors.border}`,flexShrink:0},children:(0,D.jsxs)(d,{gap:`xs`,justify:`space-between`,children:[(0,D.jsxs)(i,{fz:10,c:`dimmed`,tt:`uppercase`,fw:600,lts:.5,children:[`Records`,` `,k?.totalElements!=null&&`(${k.totalElements})`]}),(0,D.jsx)(h,{size:`xs`,variant:`subtle`,color:`teal`,onClick:H,icon:(0,D.jsx)(S,{size:14})})]})}),(0,D.jsxs)(_,{style:{flex:1},px:`xs`,py:`xs`,children:[(0,D.jsx)(y,{w:`100%`,py:4,className:`devtools-tree-node`,"data-selected":F||void 0,style:{borderRadius:6,paddingLeft:8,paddingRight:8,transition:`background 100ms ease`},onClick:H,children:(0,D.jsxs)(d,{gap:8,wrap:`nowrap`,children:[(0,D.jsx)(S,{size:13,color:`var(--mantine-color-teal-text)`,style:{flexShrink:0}}),(0,D.jsx)(i,{fz:12,c:`teal`,children:`New Record`})]})}),p?(0,D.jsx)(d,{justify:`center`,py:`md`,children:(0,D.jsx)(e,{size:`xs`})}):c.map((e,t)=>{let n=e[L]??t;return(0,D.jsx)(y,{w:`100%`,py:4,className:`devtools-tree-node`,"data-selected":!F&&String(n)===P||void 0,style:{borderRadius:6,paddingLeft:8,paddingRight:8,transition:`background 100ms ease`},onClick:()=>V(e),children:(0,D.jsxs)(i,{fz:12,ff:`monospace`,truncate:!0,children:[L,`: `,String(n)]})},String(n))})]})]}),(0,D.jsxs)(d,{style:{flex:1,overflow:`auto`},p:`md`,children:[!N&&(0,D.jsx)(d,{align:`center`,justify:`center`,h:`100%`,children:(0,D.jsx)(i,{c:`dimmed`,fz:`sm`,children:`Select a table to browse records`})}),N&&!z&&!F&&(0,D.jsx)(d,{align:`center`,justify:`center`,h:`100%`,children:(0,D.jsx)(i,{c:`dimmed`,fz:`sm`,children:`Select a record or create a new one`})}),(z||F)&&I&&(0,D.jsx)(A,{entity:I,record:z,isNew:F,onSave:U,onDelete:W,pkColumn:L})]})]})},N=()=>{let e=m(n),[t,r]=(0,E.useState)([]);return(0,E.useEffect)(()=>{e.fetch(`/__devtools/api/metadata`,{schema:{response:w}}).then(e=>r(e.data.entities??[])).catch(()=>{})},[e]),(0,D.jsx)(M,{entities:t})};export{N as default};
Binary file
@@ -1 +1 @@
1
- import{A as e}from"./chunk.p3hCiSrt.js";var t=e(`outline`,`atom`,`Atom`,[[`path`,{d:`M12 12v.01`,key:`svg-0`}],[`path`,{d:`M19.071 4.929c-1.562 -1.562 -6 .337 -9.9 4.243c-3.905 3.905 -5.804 8.337 -4.242 9.9c1.562 1.561 6 -.338 9.9 -4.244c3.905 -3.905 5.804 -8.337 4.242 -9.9`,key:`svg-1`}],[`path`,{d:`M4.929 4.929c-1.562 1.562 .337 6 4.243 9.9c3.905 3.905 8.337 5.804 9.9 4.242c1.561 -1.562 -.338 -6 -4.244 -9.9c-3.905 -3.905 -8.337 -5.804 -9.9 -4.242`,key:`svg-2`}]]),n=e(`outline`,`refresh`,`Refresh`,[[`path`,{d:`M20 11a8.1 8.1 0 0 0 -15.5 -2m-.5 -4v4h4`,key:`svg-0`}],[`path`,{d:`M4 13a8.1 8.1 0 0 0 15.5 2m.5 4v-4h-4`,key:`svg-1`}]]);export{t as n,n as t};
1
+ import{A as e}from"./chunk.CdOrvGjm.js";var t=e(`outline`,`atom`,`Atom`,[[`path`,{d:`M12 12v.01`,key:`svg-0`}],[`path`,{d:`M19.071 4.929c-1.562 -1.562 -6 .337 -9.9 4.243c-3.905 3.905 -5.804 8.337 -4.242 9.9c1.562 1.561 6 -.338 9.9 -4.244c3.905 -3.905 5.804 -8.337 4.242 -9.9`,key:`svg-1`}],[`path`,{d:`M4.929 4.929c-1.562 1.562 .337 6 4.243 9.9c3.905 3.905 8.337 5.804 9.9 4.242c1.561 -1.562 -.338 -6 -4.244 -9.9c-3.905 -3.905 -8.337 -5.804 -9.9 -4.242`,key:`svg-2`}]]),n=e(`outline`,`refresh`,`Refresh`,[[`path`,{d:`M20 11a8.1 8.1 0 0 0 -15.5 -2m-.5 -4v4h4`,key:`svg-0`}],[`path`,{d:`M4 13a8.1 8.1 0 0 0 15.5 2m.5 4v-4h-4`,key:`svg-1`}]]);export{t as n,n as t};
Binary file
@@ -1 +1 @@
1
- import{At as e,at as t,ct as n,gt as r,it as i,lt as a,mt as o}from"./chunk.p3hCiSrt.js";var s={root:`m_b183c0a2`},c=e(),l=r((e,{color:t})=>({root:{"--code-bg":t?o(t,e):void 0}})),u=t(e=>{let t=a(`Code`,null,e),{classNames:r,className:o,style:u,styles:d,unstyled:f,vars:p,color:m,block:h,mod:g,attributes:_,...v}=t,y=n({name:`Code`,props:t,classes:s,className:o,style:u,classNames:r,styles:d,unstyled:f,attributes:_,vars:p,varsResolver:l});return(0,c.jsx)(i,{component:h?`pre`:`code`,mod:[{block:h},g],...y(`root`),...v,dir:`ltr`})});u.classes=s,u.varsResolver=l,u.displayName=`@mantine/core/Code`;export{u as t};
1
+ import{At as e,at as t,ct as n,gt as r,it as i,lt as a,mt as o}from"./chunk.CdOrvGjm.js";var s={root:`m_b183c0a2`},c=e(),l=r((e,{color:t})=>({root:{"--code-bg":t?o(t,e):void 0}})),u=t(e=>{let t=a(`Code`,null,e),{classNames:r,className:o,style:u,styles:d,unstyled:f,vars:p,color:m,block:h,mod:g,attributes:_,...v}=t,y=n({name:`Code`,props:t,classes:s,className:o,style:u,classNames:r,styles:d,unstyled:f,attributes:_,vars:p,varsResolver:l});return(0,c.jsx)(i,{component:h?`pre`:`code`,mod:[{block:h},g],...y(`root`),...v,dir:`ltr`})});u.classes=s,u.varsResolver=l,u.displayName=`@mantine/core/Code`;export{u as t};
@@ -0,0 +1 @@
1
+ d`��پ��l�|���D�K��f\�3��� �@bJ��s�>���2 �&J�MʀIU�˅��`\�.Q6��&80��:��0�:��9]������|1�����m�}+�X�֎���oλb��2���a�Bp M.rq�.�B�X��Y�MJ�Z3����l#��±*O��r�����H�1�8Q�%�#�4�P�/�J��z%�ج.}�2��!j1���>�\.��p�3 �Y�^�-9$T�m ^7��5��a�_;9fk���r�!�D���2��DA;������5��4Z;��7�ΐ���G��e�E�/�Kb<����QțIͮ��U�M��������&9f
@@ -1 +1 @@
1
- import{At as e,C as t,Dt as n,J as r,Lt as i,S as a,U as o,Y as s,a as c,jt as l,kt as u,u as d}from"./chunk.p3hCiSrt.js";import{t as f}from"./chunk.DOwjsMaD.js";import"./chunk.TIounDiA.js";import{a as p,c as m,d as h,i as g,l as _,n as v,o as y,r as b,s as x,t as S}from"./chunk.D9MCnLj_.js";var C=i(l(),1),w=e(),T={entity:({data:e})=>{let n=e;return(0,w.jsxs)(`div`,{style:{background:d.colors.surface,border:`1px solid ${d.colors.border}`,borderRadius:8,minWidth:240,overflow:`hidden`},children:[(0,w.jsx)(g,{type:`target`,position:h.Top,style:{background:`var(--mantine-color-blue-6)`}}),(0,w.jsx)(`div`,{style:{padding:`8px 12px`,borderBottom:`1px solid ${d.colors.border}`,background:d.colors.elevated},children:(0,w.jsxs)(c,{gap:`xs`,children:[(0,w.jsx)(r,{fz:`sm`,fw:700,children:n.name}),(0,w.jsx)(o,{size:`xs`,variant:`light`,color:`gray`,children:n.provider})]})}),(0,w.jsx)(c,{direction:`column`,gap:0,p:0,children:(n.columns??[]).map(e=>(0,w.jsxs)(c,{gap:`xs`,px:`sm`,py:4,style:{borderBottom:`1px solid ${d.colors.border}20`},wrap:`nowrap`,children:[e.primaryKey&&(0,w.jsx)(t,{size:10,color:`var(--mantine-color-yellow-6)`}),e.ref&&(0,w.jsx)(a,{size:10,color:`var(--mantine-color-blue-6)`}),!e.primaryKey&&!e.ref&&(0,w.jsx)(`span`,{style:{width:10}}),(0,w.jsx)(r,{fz:11,ff:`monospace`,style:{flex:1},children:e.name}),(0,w.jsx)(r,{fz:10,c:`dimmed`,ff:`monospace`,children:e.type}),e.nullable&&(0,w.jsx)(r,{fz:9,c:`dimmed`,children:`?`})]},e.name))}),(0,w.jsx)(g,{type:`source`,position:h.Bottom,style:{background:`var(--mantine-color-blue-6)`}})]})}},E=e=>{let t=e.map((t,n)=>{let r=Math.ceil(Math.sqrt(e.length)),i=Math.floor(n/r),a=n%r;return{id:t.name,type:`entity`,position:{x:a*320,y:i*300},data:t}}),n=[];for(let t of e)for(let e of t.columns??[])e.ref&&n.push({id:`${t.name}.${e.name}->${e.ref.entity}`,source:t.name,target:e.ref.entity,label:`${e.name} → ${e.ref.column}`,style:{stroke:`var(--mantine-color-blue-6)`,strokeWidth:1.5},labelStyle:{fontSize:10,fill:`var(--mantine-color-dimmed)`},animated:!0});return{nodes:t,edges:n}},D=({entities:e})=>{let t=(0,C.useMemo)(()=>E(e),[e]),[n,r,i]=_(t.nodes),[a,o,s]=m(t.edges);return(0,C.useEffect)(()=>{r(t.nodes),o(t.edges)},[t,r,o]),(0,w.jsxs)(x,{nodes:n,edges:a,onNodesChange:i,onEdgesChange:s,nodeTypes:T,fitView:!0,fitViewOptions:{padding:.2},minZoom:.1,maxZoom:2,proOptions:{hideAttribution:!0},style:{background:d.colors.background},children:[(0,w.jsx)(S,{variant:v.Dots,gap:20,size:1}),(0,w.jsx)(b,{}),(0,w.jsx)(p,{nodeColor:`var(--mantine-color-dark-4)`,maskColor:`rgba(0,0,0,0.6)`,style:{backgroundColor:d.colors.surface}})]})},O=({entities:e})=>(0,w.jsx)(s,{flex:1,h:`100%`,style:{position:`absolute`,top:0,left:0,right:0,bottom:0},children:(0,w.jsx)(y,{children:(0,w.jsx)(D,{entities:e})})}),k=()=>{let e=u(n),[t,r]=(0,C.useState)([]);return(0,C.useEffect)(()=>{e.fetch(`/__devtools/api/metadata`,{schema:{response:f}}).then(e=>r(e.data.entities??[])).catch(()=>{})},[e]),(0,w.jsx)(s,{flex:1,style:{position:`relative`},children:(0,w.jsx)(O,{entities:t})})};export{k as default};
1
+ import{At as e,C as t,Dt as n,J as r,Lt as i,S as a,U as o,Y as s,a as c,jt as l,kt as u,u as d}from"./chunk.CdOrvGjm.js";import{t as f}from"./chunk.DGcirGNX.js";import"./chunk.Bu6ZqSw8.js";import{a as p,c as m,d as h,i as g,l as _,n as v,o as y,r as b,s as x,t as S}from"./chunk.Be6RDdvy.js";var C=i(l(),1),w=e(),T={entity:({data:e})=>{let n=e;return(0,w.jsxs)(`div`,{style:{background:d.colors.surface,border:`1px solid ${d.colors.border}`,borderRadius:8,minWidth:240,overflow:`hidden`},children:[(0,w.jsx)(g,{type:`target`,position:h.Top,style:{background:`var(--mantine-color-blue-6)`}}),(0,w.jsx)(`div`,{style:{padding:`8px 12px`,borderBottom:`1px solid ${d.colors.border}`,background:d.colors.elevated},children:(0,w.jsxs)(c,{gap:`xs`,children:[(0,w.jsx)(r,{fz:`sm`,fw:700,children:n.name}),(0,w.jsx)(o,{size:`xs`,variant:`light`,color:`gray`,children:n.provider})]})}),(0,w.jsx)(c,{direction:`column`,gap:0,p:0,children:(n.columns??[]).map(e=>(0,w.jsxs)(c,{gap:`xs`,px:`sm`,py:4,style:{borderBottom:`1px solid ${d.colors.border}20`},wrap:`nowrap`,children:[e.primaryKey&&(0,w.jsx)(t,{size:10,color:`var(--mantine-color-yellow-6)`}),e.ref&&(0,w.jsx)(a,{size:10,color:`var(--mantine-color-blue-6)`}),!e.primaryKey&&!e.ref&&(0,w.jsx)(`span`,{style:{width:10}}),(0,w.jsx)(r,{fz:11,ff:`monospace`,style:{flex:1},children:e.name}),(0,w.jsx)(r,{fz:10,c:`dimmed`,ff:`monospace`,children:e.type}),e.nullable&&(0,w.jsx)(r,{fz:9,c:`dimmed`,children:`?`})]},e.name))}),(0,w.jsx)(g,{type:`source`,position:h.Bottom,style:{background:`var(--mantine-color-blue-6)`}})]})}},E=e=>{let t=e.map((t,n)=>{let r=Math.ceil(Math.sqrt(e.length)),i=Math.floor(n/r),a=n%r;return{id:t.name,type:`entity`,position:{x:a*320,y:i*300},data:t}}),n=[];for(let t of e)for(let e of t.columns??[])e.ref&&n.push({id:`${t.name}.${e.name}->${e.ref.entity}`,source:t.name,target:e.ref.entity,label:`${e.name} → ${e.ref.column}`,style:{stroke:`var(--mantine-color-blue-6)`,strokeWidth:1.5},labelStyle:{fontSize:10,fill:`var(--mantine-color-dimmed)`},animated:!0});return{nodes:t,edges:n}},D=({entities:e})=>{let t=(0,C.useMemo)(()=>E(e),[e]),[n,r,i]=_(t.nodes),[a,o,s]=m(t.edges);return(0,C.useEffect)(()=>{r(t.nodes),o(t.edges)},[t,r,o]),(0,w.jsxs)(x,{nodes:n,edges:a,onNodesChange:i,onEdgesChange:s,nodeTypes:T,fitView:!0,fitViewOptions:{padding:.2},minZoom:.1,maxZoom:2,proOptions:{hideAttribution:!0},style:{background:d.colors.background},children:[(0,w.jsx)(S,{variant:v.Dots,gap:20,size:1}),(0,w.jsx)(b,{}),(0,w.jsx)(p,{nodeColor:`var(--mantine-color-dark-4)`,maskColor:`rgba(0,0,0,0.6)`,style:{backgroundColor:d.colors.surface}})]})},O=({entities:e})=>(0,w.jsx)(s,{flex:1,h:`100%`,style:{position:`absolute`,top:0,left:0,right:0,bottom:0},children:(0,w.jsx)(y,{children:(0,w.jsx)(D,{entities:e})})}),k=()=>{let e=u(n),[t,r]=(0,C.useState)([]);return(0,C.useEffect)(()=>{e.fetch(`/__devtools/api/metadata`,{schema:{response:f}}).then(e=>r(e.data.entities??[])).catch(()=>{})},[e]),(0,w.jsx)(s,{flex:1,style:{position:`relative`},children:(0,w.jsx)(O,{entities:t})})};export{k as default};
Binary file
@@ -1 +1 @@
1
- import{At as e,I as t,a as n,f as r,m as i,p as a,u as o}from"./chunk.p3hCiSrt.js";var s=e(),c=()=>{let e=r(),c=i().url.pathname.startsWith(`/db/editor`)?`editor`:`erd`;return(0,s.jsxs)(n,{direction:`column`,style:{flex:1},children:[(0,s.jsx)(n,{px:`md`,py:`xs`,style:{borderBottom:`1px solid ${o.colors.border}`},children:(0,s.jsx)(t,{size:`xs`,value:c,onChange:t=>{e.push(t===`editor`?`/db/editor`:`/db/erd`)},data:[{label:`ERD`,value:`erd`},{label:`Editor`,value:`editor`}]})}),(0,s.jsx)(a,{})]})};export{c as DevDatabase,c as default};
1
+ import{At as e,I as t,a as n,f as r,m as i,p as a,u as o}from"./chunk.CdOrvGjm.js";var s=e(),c=()=>{let e=r(),c=i().url.pathname.startsWith(`/db/editor`)?`editor`:`erd`;return(0,s.jsxs)(n,{direction:`column`,style:{flex:1},children:[(0,s.jsx)(n,{px:`md`,py:`xs`,style:{borderBottom:`1px solid ${o.colors.border}`},children:(0,s.jsx)(t,{size:`xs`,value:c,onChange:t=>{e.push(t===`editor`?`/db/editor`:`/db/erd`)},data:[{label:`ERD`,value:`erd`},{label:`Editor`,value:`editor`}]})}),(0,s.jsx)(a,{})]})};export{c as DevDatabase,c as default};
Binary file
@@ -1 +1 @@
1
- import{At as e,Dt as t,J as n,Lt as r,M as i,Q as a,U as o,a as s,jt as c,kt as l,nt as u,u as d,v as f}from"./chunk.p3hCiSrt.js";var p=r(c(),1),m=e(),h=e=>new Date(e).toLocaleString(),g=e=>{let t=Date.now()-new Date(e).getTime();return t<1e3?`just now`:t<6e4?`${Math.floor(t/1e3)}s ago`:t<36e5?`${Math.floor(t/6e4)}m ago`:`${Math.floor(t/36e5)}h ago`},_=()=>{let e=l(t),[r,c]=(0,p.useState)([]),[_,v]=(0,p.useState)(null),[y,b]=(0,p.useState)(``),x=(0,p.useCallback)(async()=>{if(document.visibilityState===`visible`)try{let t=(await e.fetch(`/__devtools/api/sms`)).data;c(t?.messages??[])}catch{}},[e]);(0,p.useEffect)(()=>{x();let e=setInterval(x,1e4);return()=>clearInterval(e)},[x]);let S=r.filter(e=>{if(!y)return!0;let t=y.toLowerCase();return e.to.toLowerCase().includes(t)||e.message.toLowerCase().includes(t)}),C=_===null?null:S[_];return(0,m.jsxs)(s,{style:{flex:1,overflow:`hidden`},direction:`column`,children:[(0,m.jsxs)(s,{px:`md`,py:`xs`,gap:`sm`,align:`center`,style:{borderBottom:`1px solid ${d.colors.border}`,flexShrink:0},children:[(0,m.jsx)(i,{size:`xs`,placeholder:`Search...`,leftSection:(0,m.jsx)(f,{size:14}),value:y,onChange:e=>b(e.currentTarget.value),style:{flex:1,minWidth:150,maxWidth:300}}),(0,m.jsxs)(o,{variant:`light`,color:`gray`,size:`sm`,children:[S.length,` messages`]})]}),(0,m.jsxs)(s,{style:{flex:1,overflow:`hidden`},children:[(0,m.jsx)(s,{direction:`column`,style:{flex:1,overflow:`hidden`},children:(0,m.jsxs)(u,{style:{flex:1},children:[S.length===0&&(0,m.jsx)(s,{align:`center`,justify:`center`,py:`xl`,c:`dimmed`,children:(0,m.jsx)(n,{fz:`sm`,children:`No messages to display`})}),S.map((e,t)=>{let r=_===t;return(0,m.jsxs)(s,{direction:`column`,px:`md`,py:`xs`,onClick:()=>v(r?null:t),style:{borderBottom:`1px solid ${d.colors.border}20`,background:r?d.colors.elevated:`transparent`,cursor:`pointer`,transition:`background 100ms`},onMouseEnter:e=>{r||(e.currentTarget.style.background=`${d.colors.elevated}80`)},onMouseLeave:e=>{r||(e.currentTarget.style.background=`transparent`)},children:[(0,m.jsxs)(s,{justify:`space-between`,align:`center`,children:[(0,m.jsx)(n,{fz:`sm`,truncate:!0,children:e.to}),(0,m.jsx)(n,{fz:11,c:`dimmed`,style:{flexShrink:0},children:g(e.sentAt)})]}),(0,m.jsx)(n,{fz:`xs`,c:`dimmed`,truncate:!0,children:e.message})]},`${e.sentAt}-${t}`)})]})}),C&&(0,m.jsxs)(s,{w:400,direction:`column`,style:{borderLeft:`1px solid ${d.colors.border}`,flexShrink:0,overflow:`hidden`},children:[(0,m.jsxs)(s,{px:`md`,py:`xs`,align:`center`,justify:`space-between`,style:{borderBottom:`1px solid ${d.colors.border}`,flexShrink:0},children:[(0,m.jsx)(n,{fz:`xs`,fw:600,tt:`uppercase`,c:`dimmed`,lts:.5,children:`Message Detail`}),(0,m.jsx)(a,{size:`xs`,onClick:()=>v(null)})]}),(0,m.jsx)(u,{style:{flex:1},p:`md`,children:(0,m.jsxs)(s,{direction:`column`,gap:`md`,children:[(0,m.jsxs)(s,{direction:`column`,children:[(0,m.jsx)(n,{fz:10,c:`dimmed`,tt:`uppercase`,fw:600,lts:.5,mb:4,children:`To`}),(0,m.jsx)(n,{fz:`xs`,children:C.to})]}),(0,m.jsxs)(s,{direction:`column`,children:[(0,m.jsx)(n,{fz:10,c:`dimmed`,tt:`uppercase`,fw:600,lts:.5,mb:4,children:`Date`}),(0,m.jsx)(n,{fz:`xs`,children:h(C.sentAt)})]}),(0,m.jsxs)(s,{direction:`column`,children:[(0,m.jsx)(n,{fz:10,c:`dimmed`,tt:`uppercase`,fw:600,lts:.5,mb:4,children:`Message`}),(0,m.jsx)(n,{fz:`xs`,style:{whiteSpace:`pre-wrap`},children:C.message})]})]})})]})]})]})};export{_ as DevSms,_ as default};
1
+ import{At as e,Dt as t,J as n,Lt as r,M as i,Q as a,U as o,a as s,jt as c,kt as l,nt as u,u as d,v as f}from"./chunk.CdOrvGjm.js";var p=r(c(),1),m=e(),h=e=>new Date(e).toLocaleString(),g=e=>{let t=Date.now()-new Date(e).getTime();return t<1e3?`just now`:t<6e4?`${Math.floor(t/1e3)}s ago`:t<36e5?`${Math.floor(t/6e4)}m ago`:`${Math.floor(t/36e5)}h ago`},_=()=>{let e=l(t),[r,c]=(0,p.useState)([]),[_,v]=(0,p.useState)(null),[y,b]=(0,p.useState)(``),x=(0,p.useCallback)(async()=>{if(document.visibilityState===`visible`)try{let t=(await e.fetch(`/__devtools/api/sms`)).data;c(t?.messages??[])}catch{}},[e]);(0,p.useEffect)(()=>{x();let e=setInterval(x,1e4);return()=>clearInterval(e)},[x]);let S=r.filter(e=>{if(!y)return!0;let t=y.toLowerCase();return e.to.toLowerCase().includes(t)||e.message.toLowerCase().includes(t)}),C=_===null?null:S[_];return(0,m.jsxs)(s,{style:{flex:1,overflow:`hidden`},direction:`column`,children:[(0,m.jsxs)(s,{px:`md`,py:`xs`,gap:`sm`,align:`center`,style:{borderBottom:`1px solid ${d.colors.border}`,flexShrink:0},children:[(0,m.jsx)(i,{size:`xs`,placeholder:`Search...`,leftSection:(0,m.jsx)(f,{size:14}),value:y,onChange:e=>b(e.currentTarget.value),style:{flex:1,minWidth:150,maxWidth:300}}),(0,m.jsxs)(o,{variant:`light`,color:`gray`,size:`sm`,children:[S.length,` messages`]})]}),(0,m.jsxs)(s,{style:{flex:1,overflow:`hidden`},children:[(0,m.jsx)(s,{direction:`column`,style:{flex:1,overflow:`hidden`},children:(0,m.jsxs)(u,{style:{flex:1},children:[S.length===0&&(0,m.jsx)(s,{align:`center`,justify:`center`,py:`xl`,c:`dimmed`,children:(0,m.jsx)(n,{fz:`sm`,children:`No messages to display`})}),S.map((e,t)=>{let r=_===t;return(0,m.jsxs)(s,{direction:`column`,px:`md`,py:`xs`,onClick:()=>v(r?null:t),style:{borderBottom:`1px solid ${d.colors.border}20`,background:r?d.colors.elevated:`transparent`,cursor:`pointer`,transition:`background 100ms`},onMouseEnter:e=>{r||(e.currentTarget.style.background=`${d.colors.elevated}80`)},onMouseLeave:e=>{r||(e.currentTarget.style.background=`transparent`)},children:[(0,m.jsxs)(s,{justify:`space-between`,align:`center`,children:[(0,m.jsx)(n,{fz:`sm`,truncate:!0,children:e.to}),(0,m.jsx)(n,{fz:11,c:`dimmed`,style:{flexShrink:0},children:g(e.sentAt)})]}),(0,m.jsx)(n,{fz:`xs`,c:`dimmed`,truncate:!0,children:e.message})]},`${e.sentAt}-${t}`)})]})}),C&&(0,m.jsxs)(s,{w:400,direction:`column`,style:{borderLeft:`1px solid ${d.colors.border}`,flexShrink:0,overflow:`hidden`},children:[(0,m.jsxs)(s,{px:`md`,py:`xs`,align:`center`,justify:`space-between`,style:{borderBottom:`1px solid ${d.colors.border}`,flexShrink:0},children:[(0,m.jsx)(n,{fz:`xs`,fw:600,tt:`uppercase`,c:`dimmed`,lts:.5,children:`Message Detail`}),(0,m.jsx)(a,{size:`xs`,onClick:()=>v(null)})]}),(0,m.jsx)(u,{style:{flex:1},p:`md`,children:(0,m.jsxs)(s,{direction:`column`,gap:`md`,children:[(0,m.jsxs)(s,{direction:`column`,children:[(0,m.jsx)(n,{fz:10,c:`dimmed`,tt:`uppercase`,fw:600,lts:.5,mb:4,children:`To`}),(0,m.jsx)(n,{fz:`xs`,children:C.to})]}),(0,m.jsxs)(s,{direction:`column`,children:[(0,m.jsx)(n,{fz:10,c:`dimmed`,tt:`uppercase`,fw:600,lts:.5,mb:4,children:`Date`}),(0,m.jsx)(n,{fz:`xs`,children:h(C.sentAt)})]}),(0,m.jsxs)(s,{direction:`column`,children:[(0,m.jsx)(n,{fz:10,c:`dimmed`,tt:`uppercase`,fw:600,lts:.5,mb:4,children:`Message`}),(0,m.jsx)(n,{fz:`xs`,style:{whiteSpace:`pre-wrap`},children:C.message})]})]})})]})]})]})};export{_ as DevSms,_ as default};
Binary file
@@ -0,0 +1,2 @@
1
+ const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["chunk.Bm1U8jkC.js","chunk.CdOrvGjm.js","chunk.D5WfK8mA.js","chunk.B9RkIaX-.js","chunk.AicQIFSI.js","chunk.D6c-Jq33.js","chunk.DGcirGNX.js","chunk.Dab7se_P.js","chunk.CVhxB_15.js","chunk.W_TFMb5-.js","chunk.BennGilR.js","chunk.Bu6ZqSw8.js","chunk.BHvLlrSE.js","chunk.dxweq5IS.js","chunk.B25mt84g.js","chunk.umroamPs.js","chunk.froMhC7u.js","chunk.Be6RDdvy.js","asset.CHpVij2M.css","chunk.DyV4G4y9.js","chunk.Bz4sdeJh.js","chunk.BSkVN_fO.js","chunk.BQTCyAmI.js","chunk.Cegc4FKP.js","chunk.CgYWVQAO.js","chunk.uqgDIUyw.js","chunk.5aCoyqfh.js"])))=>i.map(i=>d[i]);
2
+ import{At as e,Mt as t,b as n,h as r,j as i,t as a,x as o}from"./chunk.CdOrvGjm.js";import{n as s,r as c,t as l}from"./chunk.D5WfK8mA.js";import{t as u}from"./chunk.B9RkIaX-.js";import{t as d}from"./chunk.AicQIFSI.js";import{t as f}from"./chunk.D6c-Jq33.js";(function(){let e=document.createElement(`link`).relList;if(e&&e.supports&&e.supports(`modulepreload`))return;for(let e of document.querySelectorAll(`link[rel="modulepreload"]`))n(e);new MutationObserver(e=>{for(let t of e)if(t.type===`childList`)for(let e of t.addedNodes)e.tagName===`LINK`&&e.rel===`modulepreload`&&n(e)}).observe(document,{childList:!0,subtree:!0});function t(e){let t={};return e.integrity&&(t.integrity=e.integrity),e.referrerPolicy&&(t.referrerPolicy=e.referrerPolicy),e.crossOrigin===`use-credentials`?t.credentials=`include`:e.crossOrigin===`anonymous`?t.credentials=`omit`:t.credentials=`same-origin`,t}function n(e){if(e.ep)return;e.ep=!0;let n=t(e);fetch(e.href,n)}})();var p=e(),m=`modulepreload`,h=function(e){return`/__devtools/`+e},g={},_=function(e,t,n){let r=Promise.resolve();if(t&&t.length>0){let e=document.getElementsByTagName(`link`),i=document.querySelector(`meta[property=csp-nonce]`),a=i?.nonce||i?.getAttribute(`nonce`);function o(e){return Promise.all(e.map(e=>Promise.resolve(e).then(e=>({status:`fulfilled`,value:e}),e=>({status:`rejected`,reason:e}))))}r=o(t.map(t=>{if(t=h(t,n),t in g)return;g[t]=!0;let r=t.endsWith(`.css`),i=r?`[rel="stylesheet"]`:``;if(n)for(let n=e.length-1;n>=0;n--){let i=e[n];if(i.href===t&&(!r||i.rel===`stylesheet`))return}else if(document.querySelector(`link[href="${t}"]${i}`))return;let o=document.createElement(`link`);if(o.rel=r?`stylesheet`:m,r||(o.as=`script`),o.crossOrigin=``,o.href=t,a&&o.setAttribute(`nonce`,a),document.head.appendChild(o),r)return new Promise((e,n)=>{o.addEventListener(`load`,e),o.addEventListener(`error`,()=>n(Error(`Unable to preload CSS for ${t}`)))})}))}function i(e){let t=new Event(`vite:preloadError`,{cancelable:!0});if(t.payload=e,window.dispatchEvent(t),!t.defaultPrevented)throw e}return r.then(t=>{for(let e of t||[])e.status===`rejected`&&i(e.reason);return e().catch(i)})};t(class{ui=a({themes:[i]});layout=r({parent:this.ui.root,lazy:()=>_(()=>import(`./chunk.Bm1U8jkC.js`),__vite__mapDeps([0,1,2,3,4,5,6])),[Symbol.for(`alepha.page.preload`)]:`bfc0f5d4`});dashboard=r({path:`/`,label:`Dashboard`,icon:(0,p.jsx)(c,{}),parent:this.layout,lazy:()=>_(()=>import(`./chunk.Dab7se_P.js`),__vite__mapDeps([7,1,8,9,3,4,10,11,6])),[Symbol.for(`alepha.page.preload`)]:`1465b743`});explorer=r({path:`/explorer`,label:`Explorer`,icon:(0,p.jsx)(l,{}),parent:this.layout,lazy:()=>_(()=>import(`./chunk.BHvLlrSE.js`),__vite__mapDeps([12,1,13,8,3,11,6,14])),[Symbol.for(`alepha.page.preload`)]:`fc9abada`});db=r({path:`/db`,parent:this.layout,lazy:()=>_(()=>import(`./chunk.umroamPs.js`),__vite__mapDeps([15,1])),[Symbol.for(`alepha.page.preload`)]:`ea7ea43a`});dbErd=r({path:`/erd`,label:`Database`,icon:(0,p.jsx)(u,{}),parent:this.db,lazy:()=>_(()=>import(`./chunk.froMhC7u.js`),__vite__mapDeps([16,1,17,18,11,6])),[Symbol.for(`alepha.page.preload`)]:`935dbb60`});dbEditor=r({path:`/editor`,label:`Database`,icon:(0,p.jsx)(u,{}),parent:this.db,lazy:()=>_(()=>import(`./chunk.DyV4G4y9.js`),__vite__mapDeps([19,1,3,11,6,14])),[Symbol.for(`alepha.page.preload`)]:`30dd87a0`});dbEditorTable=r({path:`/editor/:table`,parent:this.db,lazy:()=>_(()=>import(`./chunk.DyV4G4y9.js`),__vite__mapDeps([19,1,3,11,6,14])),[Symbol.for(`alepha.page.preload`)]:`30dd87a0`});dbEditorRecord=r({path:`/editor/:table/:id`,parent:this.db,lazy:()=>_(()=>import(`./chunk.DyV4G4y9.js`),__vite__mapDeps([19,1,3,11,6,14])),[Symbol.for(`alepha.page.preload`)]:`30dd87a0`});conf=r({path:`/conf`,parent:this.layout,lazy:()=>_(()=>import(`./chunk.Bz4sdeJh.js`),__vite__mapDeps([20,1])),[Symbol.for(`alepha.page.preload`)]:`11bf7128`});confEnv=r({path:`/env`,label:`Configuration`,icon:(0,p.jsx)(d,{}),parent:this.conf,lazy:()=>_(()=>import(`./chunk.BSkVN_fO.js`),__vite__mapDeps([21,1,13,10,11,6])),[Symbol.for(`alepha.page.preload`)]:`1e4d954e`});confAtoms=r({path:`/atoms`,label:`Configuration`,icon:(0,p.jsx)(d,{}),parent:this.conf,lazy:()=>_(()=>import(`./chunk.BQTCyAmI.js`),__vite__mapDeps([22,1,9,11,6,14])),[Symbol.for(`alepha.page.preload`)]:`1e40f4e0`});graph=r({path:`/graph`,label:`Graph`,icon:(0,p.jsx)(f,{}),parent:this.layout,lazy:()=>_(()=>import(`./chunk.Cegc4FKP.js`),__vite__mapDeps([23,1,5,17,18,11,6])),[Symbol.for(`alepha.page.preload`)]:`4fded5f0`});emails=r({path:`/emails`,label:`Emails`,icon:(0,p.jsx)(n,{}),parent:this.layout,lazy:()=>_(()=>import(`./chunk.CgYWVQAO.js`),__vite__mapDeps([24,1])),[Symbol.for(`alepha.page.preload`)]:`5a1d01de`});sms=r({path:`/sms`,label:`SMS`,icon:(0,p.jsx)(s,{}),parent:this.layout,lazy:()=>_(()=>import(`./chunk.uqgDIUyw.js`),__vite__mapDeps([25,1])),[Symbol.for(`alepha.page.preload`)]:`ed875639`});logs=r({path:`/logs`,label:`Logs`,icon:(0,p.jsx)(o,{}),parent:this.layout,lazy:()=>_(()=>import(`./chunk.5aCoyqfh.js`),__vite__mapDeps([26,1,13])),[Symbol.for(`alepha.page.preload`)]:`5e261ada`})});
Binary file
@@ -2,8 +2,8 @@
2
2
  <html lang="en" data-theme="midnight">
3
3
  <head><meta charset="UTF-8">
4
4
  <meta name="viewport" content="width=device-width, initial-scale=1">
5
- <link rel="stylesheet" href="/__devtools/asset.Cxu56LSy.css">
6
- <script type="module" crossorigin="" src="/__devtools/entry.DnXws2rz.js"></script>
5
+ <link rel="stylesheet" href="/__devtools/asset.Co90YiKM.css">
6
+ <script type="module" crossorigin="" src="/__devtools/entry.DI5fIO6T.js"></script>
7
7
  <title>App</title>
8
8
  </head>
9
9
  <body><div id="root"></div></body>
@@ -1 +1,2 @@
1
- n��qýlN[�h3[���F��M!0�r,_[�H`Y�0Dd���-�0���� ��L��޲9DXOp����nZR:��YbA�mk�bm3�œJ߰�`�[)�?U������w����p��C$�ј�L��nb�/+:��\P���5{_A�
1
+ n��q��t^����Vҹ��uAI %Q Nnc��!~t:�N J��%�8oAqLd�`����͹ zJ�Îwce���g
2
+ s*}��U n����?Oj��u���p��C$�ј�L�敦���YVt��Z���A�
@@ -2,8 +2,8 @@
2
2
  <html lang="en" data-theme="midnight">
3
3
  <head><meta charset="UTF-8">
4
4
  <meta name="viewport" content="width=device-width, initial-scale=1">
5
- <link rel="stylesheet" href="/__devtools/asset.Cxu56LSy.css">
6
- <script type="module" crossorigin="" src="/__devtools/entry.DnXws2rz.js"></script>
5
+ <link rel="stylesheet" href="/__devtools/asset.Co90YiKM.css">
6
+ <script type="module" crossorigin="" src="/__devtools/entry.DI5fIO6T.js"></script>
7
7
  <title>App</title>
8
8
  </head>
9
9
  <body><div id="root"></div></body>
@@ -1 +1,2 @@
1
- n��qýlN[�h3[���F��M!0�r,_[�H`Y�0Dd���-�0���� ��L��޲9DXOp����nZR:��YbA�mk�bm3�œJ߰�`�[)�?U������w����p��C$�ј�L��nb�/+:��\P���5{_A�
1
+ n��q��t^����Vҹ��uAI %Q Nnc��!~t:�N J��%�8oAqLd�`����͹ zJ�Îwce���g
2
+ s*}��U n����?Oj��u���p��C$�ј�L�敦���YVt��Z���A�
@@ -2,8 +2,8 @@
2
2
  <html lang="en" data-theme="midnight">
3
3
  <head><meta charset="UTF-8">
4
4
  <meta name="viewport" content="width=device-width, initial-scale=1">
5
- <link rel="stylesheet" href="/__devtools/asset.Cxu56LSy.css">
6
- <script type="module" crossorigin="" src="/__devtools/entry.DnXws2rz.js"></script>
5
+ <link rel="stylesheet" href="/__devtools/asset.Co90YiKM.css">
6
+ <script type="module" crossorigin="" src="/__devtools/entry.DI5fIO6T.js"></script>
7
7
  <title>App</title>
8
8
  </head>
9
9
  <body><div id="root"></div></body>
@@ -1 +1,2 @@
1
- n��qýlN[�h3[���F��M!0�r,_[�H`Y�0Dd���-�0���� ��L��޲9DXOp����nZR:��YbA�mk�bm3�œJ߰�`�[)�?U������w����p��C$�ј�L��nb�/+:��\P���5{_A�
1
+ n��q��t^����Vҹ��uAI %Q Nnc��!~t:�N J��%�8oAqLd�`����͹ zJ�Îwce���g
2
+ s*}��U n����?Oj��u���p��C$�ј�L�敦���YVt��Z���A�