@alepha/devtools 0.15.3 → 0.15.5

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 (209) hide show
  1. package/assets/devtools/actions.html +3 -3
  2. package/assets/devtools/actions.html.br +0 -0
  3. package/assets/devtools/actions.html.gz +0 -0
  4. package/assets/devtools/asset.BJSLFcNT.css +1 -0
  5. package/assets/devtools/asset.BJSLFcNT.css.br +0 -0
  6. package/assets/devtools/{asset.CUUwTesj.css.gz → asset.BJSLFcNT.css.gz} +0 -0
  7. package/assets/devtools/atoms.html +3 -3
  8. package/assets/devtools/atoms.html.br +0 -0
  9. package/assets/devtools/atoms.html.gz +0 -0
  10. package/assets/devtools/caches.html +3 -3
  11. package/assets/devtools/caches.html.br +0 -0
  12. package/assets/devtools/caches.html.gz +0 -0
  13. package/assets/devtools/{chunk.plCe1Vwk.js → chunk.9UE-TDmM.js} +1 -1
  14. package/assets/devtools/chunk.9UE-TDmM.js.br +0 -0
  15. package/assets/devtools/chunk.9UE-TDmM.js.gz +0 -0
  16. package/assets/devtools/{chunk.BYw9RTNZ.js → chunk.BHxnE1kV.js} +1 -1
  17. package/assets/devtools/chunk.BHxnE1kV.js.br +0 -0
  18. package/assets/devtools/chunk.BHxnE1kV.js.gz +0 -0
  19. package/assets/devtools/{chunk.ClYEvjjk.js → chunk.BJnTQtYx.js} +1 -1
  20. package/assets/devtools/chunk.BJnTQtYx.js.br +2 -0
  21. package/assets/devtools/chunk.BJnTQtYx.js.gz +0 -0
  22. package/assets/devtools/{chunk.DjMiOB4_.js → chunk.BZ-MON9S.js} +1 -1
  23. package/assets/devtools/chunk.BZ-MON9S.js.br +0 -0
  24. package/assets/devtools/chunk.BZ-MON9S.js.gz +0 -0
  25. package/assets/devtools/{chunk.BKeiNpZN.js → chunk.B_3Bwa5b.js} +1 -1
  26. package/assets/devtools/chunk.B_3Bwa5b.js.br +0 -0
  27. package/assets/devtools/chunk.B_3Bwa5b.js.gz +0 -0
  28. package/assets/devtools/{chunk.DGiOCunw.js → chunk.Bb0FAZMv.js} +1 -1
  29. package/assets/devtools/chunk.Bb0FAZMv.js.br +0 -0
  30. package/assets/devtools/chunk.Bb0FAZMv.js.gz +0 -0
  31. package/assets/devtools/{chunk.JqUdzWl6.js → chunk.Bq3jHJWW.js} +1 -1
  32. package/assets/devtools/chunk.Bq3jHJWW.js.br +0 -0
  33. package/assets/devtools/chunk.Bq3jHJWW.js.gz +0 -0
  34. package/assets/devtools/{chunk.CJlnGw1S.js → chunk.BxbQjapd.js} +1 -1
  35. package/assets/devtools/chunk.BxbQjapd.js.br +0 -0
  36. package/assets/devtools/chunk.BxbQjapd.js.gz +0 -0
  37. package/assets/devtools/{chunk.D06kB6Ym.js → chunk.ByNKWOOW.js} +1 -1
  38. package/assets/devtools/chunk.ByNKWOOW.js.br +0 -0
  39. package/assets/devtools/chunk.ByNKWOOW.js.gz +0 -0
  40. package/assets/devtools/{chunk.D-abBFDq.js → chunk.By_Dci-t.js} +1 -1
  41. package/assets/devtools/chunk.By_Dci-t.js.br +0 -0
  42. package/assets/devtools/chunk.By_Dci-t.js.gz +0 -0
  43. package/assets/devtools/chunk.C39_Jg92.js +1 -0
  44. package/assets/devtools/chunk.C39_Jg92.js.br +0 -0
  45. package/assets/devtools/chunk.C39_Jg92.js.gz +0 -0
  46. package/assets/devtools/{chunk.D0wx1CNI.js → chunk.C5vcO6ci.js} +1 -1
  47. package/assets/devtools/chunk.C5vcO6ci.js.br +0 -0
  48. package/assets/devtools/chunk.C5vcO6ci.js.gz +0 -0
  49. package/assets/devtools/{chunk.BzM7ER7Q.js → chunk.CEMGNgR8.js} +1 -1
  50. package/assets/devtools/chunk.CEMGNgR8.js.br +0 -0
  51. package/assets/devtools/chunk.CEMGNgR8.js.gz +0 -0
  52. package/assets/devtools/{chunk.BRvGzx4Z.js → chunk.CMs831K8.js} +1 -1
  53. package/assets/devtools/chunk.CMs831K8.js.br +0 -0
  54. package/assets/devtools/chunk.CMs831K8.js.gz +0 -0
  55. package/assets/devtools/{chunk.VTMXAJC6.js → chunk.CVSnwZVj.js} +1 -1
  56. package/assets/devtools/chunk.CVSnwZVj.js.br +0 -0
  57. package/assets/devtools/chunk.CVSnwZVj.js.gz +0 -0
  58. package/assets/devtools/{chunk.6FHGgu4o.js → chunk.CxlIm93S.js} +1 -1
  59. package/assets/devtools/chunk.CxlIm93S.js.br +0 -0
  60. package/assets/devtools/chunk.CxlIm93S.js.gz +0 -0
  61. package/assets/devtools/{chunk.BLPoqamD.js → chunk.D8Zx2d84.js} +1 -1
  62. package/assets/devtools/chunk.D8Zx2d84.js.br +0 -0
  63. package/assets/devtools/chunk.D8Zx2d84.js.gz +0 -0
  64. package/assets/devtools/{chunk.DdQKcont.js → chunk.D9k-tvPV.js} +1 -1
  65. package/assets/devtools/chunk.D9k-tvPV.js.br +0 -0
  66. package/assets/devtools/chunk.D9k-tvPV.js.gz +0 -0
  67. package/assets/devtools/{chunk.CZOSxV2E.js → chunk.DAXSdsjw.js} +1 -1
  68. package/assets/devtools/chunk.DAXSdsjw.js.br +0 -0
  69. package/assets/devtools/chunk.DAXSdsjw.js.gz +0 -0
  70. package/assets/devtools/{chunk.BLRSfNfT.js → chunk.DB50RmbI.js} +1 -1
  71. package/assets/devtools/chunk.DB50RmbI.js.br +0 -0
  72. package/assets/devtools/chunk.DB50RmbI.js.gz +0 -0
  73. package/assets/devtools/{chunk.BrKdm6Sb.js → chunk.DQ4jfyFm.js} +1 -1
  74. package/assets/devtools/chunk.DQ4jfyFm.js.br +0 -0
  75. package/assets/devtools/chunk.DQ4jfyFm.js.gz +0 -0
  76. package/assets/devtools/{chunk.D8oqA7fh.js → chunk.DS3W-YAa.js} +1 -1
  77. package/assets/devtools/chunk.DS3W-YAa.js.br +0 -0
  78. package/assets/devtools/chunk.DS3W-YAa.js.gz +0 -0
  79. package/assets/devtools/{chunk.CFRKkktr.js → chunk.DTrbqH0C.js} +1 -1
  80. package/assets/devtools/chunk.DTrbqH0C.js.br +0 -0
  81. package/assets/devtools/chunk.DTrbqH0C.js.gz +0 -0
  82. package/assets/devtools/{chunk.BSg4Kjs-.js → chunk.DYu2Kn_0.js} +1 -1
  83. package/assets/devtools/chunk.DYu2Kn_0.js.br +0 -0
  84. package/assets/devtools/chunk.DYu2Kn_0.js.gz +0 -0
  85. package/assets/devtools/{chunk.CCy0GI_s.js → chunk.DnocEn4r.js} +1 -1
  86. package/assets/devtools/chunk.DnocEn4r.js.br +0 -0
  87. package/assets/devtools/chunk.DnocEn4r.js.gz +0 -0
  88. package/assets/devtools/{chunk._oyZXgMC.js → chunk.DtqQCeAj.js} +1 -1
  89. package/assets/devtools/chunk.DtqQCeAj.js.br +1 -0
  90. package/assets/devtools/chunk.DtqQCeAj.js.gz +0 -0
  91. package/assets/devtools/{chunk.Cas0t8F5.js → chunk.DtreVhNu.js} +1 -1
  92. package/assets/devtools/chunk.DtreVhNu.js.br +0 -0
  93. package/assets/devtools/chunk.DtreVhNu.js.gz +0 -0
  94. package/assets/devtools/chunk.Dyhfd98M.js +1 -0
  95. package/assets/devtools/chunk.Dyhfd98M.js.br +0 -0
  96. package/assets/devtools/chunk.Dyhfd98M.js.gz +0 -0
  97. package/assets/devtools/{chunk.Cf3d2zjg.js → chunk.Dzb_dhg1.js} +1 -1
  98. package/assets/devtools/chunk.Dzb_dhg1.js.br +0 -0
  99. package/assets/devtools/chunk.Dzb_dhg1.js.gz +0 -0
  100. package/assets/devtools/{chunk.BV5mF0Co.js → chunk.PvdrSA5J.js} +1 -1
  101. package/assets/devtools/chunk.PvdrSA5J.js.br +0 -0
  102. package/assets/devtools/chunk.PvdrSA5J.js.gz +0 -0
  103. package/assets/devtools/{chunk.BEZMZ7cU.js → chunk.SkQJX15J.js} +1 -1
  104. package/assets/devtools/chunk.SkQJX15J.js.br +0 -0
  105. package/assets/devtools/chunk.SkQJX15J.js.gz +0 -0
  106. package/assets/devtools/{chunk.CjAS4aWI.js → chunk.U5tHwlLn.js} +1 -1
  107. package/assets/devtools/chunk.U5tHwlLn.js.br +0 -0
  108. package/assets/devtools/chunk.U5tHwlLn.js.gz +0 -0
  109. package/assets/devtools/{chunk.DQrcztZO.js → chunk.l29gR4Ri.js} +1 -1
  110. package/assets/devtools/chunk.l29gR4Ri.js.br +0 -0
  111. package/assets/devtools/chunk.l29gR4Ri.js.gz +0 -0
  112. package/assets/devtools/db.html +3 -3
  113. package/assets/devtools/db.html.br +0 -0
  114. package/assets/devtools/db.html.gz +0 -0
  115. package/assets/devtools/{entry.CfgGy8wg.js → entry.ETzhI2TP.js} +18 -18
  116. package/assets/devtools/entry.ETzhI2TP.js.br +0 -0
  117. package/assets/devtools/entry.ETzhI2TP.js.gz +0 -0
  118. package/assets/devtools/env.html +3 -3
  119. package/assets/devtools/env.html.br +0 -0
  120. package/assets/devtools/env.html.gz +0 -0
  121. package/assets/devtools/graph.html +3 -3
  122. package/assets/devtools/graph.html.br +0 -0
  123. package/assets/devtools/graph.html.gz +0 -0
  124. package/assets/devtools/index.html +3 -3
  125. package/assets/devtools/index.html.br +0 -0
  126. package/assets/devtools/index.html.gz +0 -0
  127. package/assets/devtools/logs.html +3 -3
  128. package/assets/devtools/logs.html.br +0 -0
  129. package/assets/devtools/logs.html.gz +0 -0
  130. package/assets/devtools/queues.html +3 -3
  131. package/assets/devtools/queues.html.br +0 -0
  132. package/assets/devtools/queues.html.gz +0 -0
  133. package/assets/devtools/topics.html +3 -3
  134. package/assets/devtools/topics.html.br +0 -0
  135. package/assets/devtools/topics.html.gz +0 -0
  136. package/package.json +4 -4
  137. package/src/ui/components/DevLayout.tsx +2 -3
  138. package/assets/devtools/asset.CUUwTesj.css +0 -1
  139. package/assets/devtools/asset.CUUwTesj.css.br +0 -0
  140. package/assets/devtools/chunk.6FHGgu4o.js.br +0 -0
  141. package/assets/devtools/chunk.6FHGgu4o.js.gz +0 -0
  142. package/assets/devtools/chunk.BEZMZ7cU.js.br +0 -0
  143. package/assets/devtools/chunk.BEZMZ7cU.js.gz +0 -0
  144. package/assets/devtools/chunk.BKeiNpZN.js.br +0 -0
  145. package/assets/devtools/chunk.BKeiNpZN.js.gz +0 -0
  146. package/assets/devtools/chunk.BLPoqamD.js.br +0 -0
  147. package/assets/devtools/chunk.BLPoqamD.js.gz +0 -0
  148. package/assets/devtools/chunk.BLRSfNfT.js.br +0 -0
  149. package/assets/devtools/chunk.BLRSfNfT.js.gz +0 -0
  150. package/assets/devtools/chunk.BRvGzx4Z.js.br +0 -0
  151. package/assets/devtools/chunk.BRvGzx4Z.js.gz +0 -0
  152. package/assets/devtools/chunk.BSg4Kjs-.js.br +0 -0
  153. package/assets/devtools/chunk.BSg4Kjs-.js.gz +0 -0
  154. package/assets/devtools/chunk.BV5mF0Co.js.br +0 -0
  155. package/assets/devtools/chunk.BV5mF0Co.js.gz +0 -0
  156. package/assets/devtools/chunk.BYw9RTNZ.js.br +0 -0
  157. package/assets/devtools/chunk.BYw9RTNZ.js.gz +0 -0
  158. package/assets/devtools/chunk.BrKdm6Sb.js.br +0 -0
  159. package/assets/devtools/chunk.BrKdm6Sb.js.gz +0 -0
  160. package/assets/devtools/chunk.BzM7ER7Q.js.br +0 -0
  161. package/assets/devtools/chunk.BzM7ER7Q.js.gz +0 -0
  162. package/assets/devtools/chunk.CCy0GI_s.js.br +0 -0
  163. package/assets/devtools/chunk.CCy0GI_s.js.gz +0 -0
  164. package/assets/devtools/chunk.CFRKkktr.js.br +0 -0
  165. package/assets/devtools/chunk.CFRKkktr.js.gz +0 -0
  166. package/assets/devtools/chunk.CJlnGw1S.js.br +0 -0
  167. package/assets/devtools/chunk.CJlnGw1S.js.gz +0 -0
  168. package/assets/devtools/chunk.CZOSxV2E.js.br +0 -0
  169. package/assets/devtools/chunk.CZOSxV2E.js.gz +0 -0
  170. package/assets/devtools/chunk.CZp8Oawk.js +0 -1
  171. package/assets/devtools/chunk.CZp8Oawk.js.br +0 -0
  172. package/assets/devtools/chunk.CZp8Oawk.js.gz +0 -0
  173. package/assets/devtools/chunk.Cas0t8F5.js.br +0 -0
  174. package/assets/devtools/chunk.Cas0t8F5.js.gz +0 -0
  175. package/assets/devtools/chunk.Cf3d2zjg.js.br +0 -0
  176. package/assets/devtools/chunk.Cf3d2zjg.js.gz +0 -0
  177. package/assets/devtools/chunk.CjAS4aWI.js.br +0 -0
  178. package/assets/devtools/chunk.CjAS4aWI.js.gz +0 -0
  179. package/assets/devtools/chunk.ClYEvjjk.js.br +0 -2
  180. package/assets/devtools/chunk.ClYEvjjk.js.gz +0 -0
  181. package/assets/devtools/chunk.D-abBFDq.js.br +0 -0
  182. package/assets/devtools/chunk.D-abBFDq.js.gz +0 -0
  183. package/assets/devtools/chunk.D06kB6Ym.js.br +0 -0
  184. package/assets/devtools/chunk.D06kB6Ym.js.gz +0 -0
  185. package/assets/devtools/chunk.D0wx1CNI.js.br +0 -0
  186. package/assets/devtools/chunk.D0wx1CNI.js.gz +0 -0
  187. package/assets/devtools/chunk.D8oqA7fh.js.br +0 -0
  188. package/assets/devtools/chunk.D8oqA7fh.js.gz +0 -0
  189. package/assets/devtools/chunk.DGiOCunw.js.br +0 -0
  190. package/assets/devtools/chunk.DGiOCunw.js.gz +0 -0
  191. package/assets/devtools/chunk.DHfKeDbH.js +0 -1
  192. package/assets/devtools/chunk.DHfKeDbH.js.br +0 -0
  193. package/assets/devtools/chunk.DHfKeDbH.js.gz +0 -0
  194. package/assets/devtools/chunk.DQrcztZO.js.br +0 -0
  195. package/assets/devtools/chunk.DQrcztZO.js.gz +0 -0
  196. package/assets/devtools/chunk.DdQKcont.js.br +0 -0
  197. package/assets/devtools/chunk.DdQKcont.js.gz +0 -0
  198. package/assets/devtools/chunk.DjMiOB4_.js.br +0 -0
  199. package/assets/devtools/chunk.DjMiOB4_.js.gz +0 -0
  200. package/assets/devtools/chunk.JqUdzWl6.js.br +0 -0
  201. package/assets/devtools/chunk.JqUdzWl6.js.gz +0 -0
  202. package/assets/devtools/chunk.VTMXAJC6.js.br +0 -0
  203. package/assets/devtools/chunk.VTMXAJC6.js.gz +0 -0
  204. package/assets/devtools/chunk._oyZXgMC.js.br +0 -0
  205. package/assets/devtools/chunk._oyZXgMC.js.gz +0 -0
  206. package/assets/devtools/chunk.plCe1Vwk.js.br +0 -0
  207. package/assets/devtools/chunk.plCe1Vwk.js.gz +0 -0
  208. package/assets/devtools/entry.CfgGy8wg.js.br +0 -0
  209. package/assets/devtools/entry.CfgGy8wg.js.gz +0 -0
@@ -1 +1 @@
1
- import{r as m,f as j,d as A,o as se,j as i,B as L,t as re,w as ee,v as oe,c as Po,aE as me,b9 as Ro,ba as Ue,aj as ge,be as To,q as fe,a2 as te,aL as He,g as Ce,aA as $o,U as Vo,x as we,b8 as qe,am as We,an as Ze,aJ as Fo,af as Mo,e as zo,az as Bo,a4 as Je,y as ye}from"./entry.CfgGy8wg.js";import{I as Lo,a as Go,b as Ko}from"./chunk.BRvGzx4Z.js";import{P as he}from"./chunk.D0wx1CNI.js";function Ho(e){const o=m.useRef(void 0);return m.useEffect(()=>{o.current=e},[e]),o.current}function be(e,o=document){const t=o.querySelector(e);if(t)return t;const s=o.querySelectorAll("*");for(let r=0;r<s.length;r+=1){const a=s[r];if(a.shadowRoot){const n=be(e,a.shadowRoot);if(n)return n}}return null}function U(e,o=document){const t=[],s=o.querySelectorAll(e);t.push(...Array.from(s));const r=o.querySelectorAll("*");for(let a=0;a<r.length;a+=1){const n=r[a];if(n.shadowRoot){const l=U(e,n.shadowRoot);t.push(...l)}}return t}function H(e){if(!e)return document;const o=e.getRootNode();return o instanceof ShadowRoot||o instanceof Document?o:document}function Qe(e){return typeof e=="string"?{value:e,label:e}:"value"in e&&!("label"in e)?{value:e.value,label:e.value,disabled:e.disabled}:typeof e=="number"?{value:e.toString(),label:e.toString()}:"group"in e?{group:e.group,items:e.items.map(o=>Qe(o))}:e}function Uo(e){return e?e.map(o=>Qe(o)):[]}function Xe(e){return e.reduce((o,t)=>"group"in t?{...o,...Xe(t.items)}:(o[t.value]=t,o),{})}var R={dropdown:"m_88b62a41",search:"m_985517d8",options:"m_b2821a6e",option:"m_92253aa5",empty:"m_2530cd1d",header:"m_858f94bd",footer:"m_82b967cb",group:"m_254f3e4f",groupLabel:"m_2bb2e9e5",chevron:"m_2943220b",optionsDropdownOption:"m_390b5f4",optionsDropdownCheckIcon:"m_8ee53fc2",optionsDropdownCheckPlaceholder:"m_a530ee0a"};const qo={error:null},Wo=re((e,{size:o,color:t})=>({chevron:{"--combobox-chevron-size":oe(o,"combobox-chevron-size"),"--combobox-chevron-color":t?ee(t,e):void 0}})),ke=j((e,o)=>{const t=A("ComboboxChevron",qo,e),{size:s,error:r,style:a,className:n,classNames:l,styles:c,unstyled:d,vars:p,mod:u,...b}=t,x=se({name:"ComboboxChevron",classes:R,props:t,style:a,className:n,classNames:l,styles:c,unstyled:d,vars:p,varsResolver:Wo,rootSelector:"chevron"});return i.jsx(L,{component:"svg",...b,...x("chevron"),size:s,viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg",mod:["combobox-chevron",{error:r},u],ref:o,children:i.jsx("path",{d:"M4.93179 5.43179C4.75605 5.60753 4.75605 5.89245 4.93179 6.06819C5.10753 6.24392 5.39245 6.24392 5.56819 6.06819L7.49999 4.13638L9.43179 6.06819C9.60753 6.24392 9.89245 6.24392 10.0682 6.06819C10.2439 5.89245 10.2439 5.60753 10.0682 5.43179L7.81819 3.18179C7.73379 3.0974 7.61933 3.04999 7.49999 3.04999C7.38064 3.04999 7.26618 3.0974 7.18179 3.18179L4.93179 5.43179ZM10.0682 9.56819C10.2439 9.39245 10.2439 9.10753 10.0682 8.93179C9.89245 8.75606 9.60753 8.75606 9.43179 8.93179L7.49999 10.8636L5.56819 8.93179C5.39245 8.75606 5.10753 8.75606 4.93179 8.93179C4.75605 9.10753 4.75605 9.39245 4.93179 9.56819L7.18179 11.8182C7.35753 11.9939 7.64245 11.9939 7.81819 11.8182L10.0682 9.56819Z",fill:"currentColor",fillRule:"evenodd",clipRule:"evenodd"})})});ke.classes=R;ke.displayName="@mantine/core/ComboboxChevron";const[Zo,M]=Po("Combobox component was not found in tree"),Ye=m.forwardRef(({size:e,onMouseDown:o,onClick:t,onClear:s,...r},a)=>i.jsx(me.ClearButton,{ref:a,tabIndex:-1,"aria-hidden":!0,...r,onMouseDown:n=>{n.preventDefault(),o?.(n)},onClick:n=>{s(),t?.(n)}}));Ye.displayName="@mantine/core/ComboboxClearButton";const Oe=j((e,o)=>{const{classNames:t,styles:s,className:r,style:a,hidden:n,...l}=A("ComboboxDropdown",null,e),c=M();return i.jsx(he.Dropdown,{...l,ref:o,role:"presentation","data-hidden":n||void 0,...c.getStyles("dropdown",{className:r,style:a,classNames:t,styles:s})})});Oe.classes=R;Oe.displayName="@mantine/core/ComboboxDropdown";const Jo={refProp:"ref"},eo=j((e,o)=>{const{children:t,refProp:s}=A("ComboboxDropdownTarget",Jo,e);if(M(),!Ro(t))throw new Error("Combobox.DropdownTarget component children should be an element or a component that accepts ref. Fragments, strings, numbers and other primitive values are not supported");return i.jsx(he.Target,{ref:o,refProp:s,children:t})});eo.displayName="@mantine/core/ComboboxDropdownTarget";const Se=j((e,o)=>{const{classNames:t,className:s,style:r,styles:a,vars:n,...l}=A("ComboboxEmpty",null,e),c=M();return i.jsx(L,{ref:o,...c.getStyles("empty",{className:s,classNames:t,styles:a,style:r}),...l})});Se.classes=R;Se.displayName="@mantine/core/ComboboxEmpty";function De({onKeyDown:e,withKeyboardNavigation:o,withAriaAttributes:t,withExpandedAttribute:s,targetType:r,autoComplete:a}){const n=M(),[l,c]=m.useState(null),d=u=>{if(e?.(u),!n.readOnly&&o){if(u.nativeEvent.isComposing)return;if(u.nativeEvent.code==="ArrowDown"&&(u.preventDefault(),n.store.dropdownOpened?c(n.store.selectNextOption()):(n.store.openDropdown("keyboard"),c(n.store.selectActiveOption()),n.store.updateSelectedOptionIndex("selected",{scrollIntoView:!0}))),u.nativeEvent.code==="ArrowUp"&&(u.preventDefault(),n.store.dropdownOpened?c(n.store.selectPreviousOption()):(n.store.openDropdown("keyboard"),c(n.store.selectActiveOption()),n.store.updateSelectedOptionIndex("selected",{scrollIntoView:!0}))),u.nativeEvent.code==="Enter"||u.nativeEvent.code==="NumpadEnter"){if(u.nativeEvent.keyCode===229)return;const b=n.store.getSelectedOptionIndex();n.store.dropdownOpened&&b!==-1?(u.preventDefault(),n.store.clickSelectedOption()):r==="button"&&(u.preventDefault(),n.store.openDropdown("keyboard"))}u.key==="Escape"&&n.store.closeDropdown("keyboard"),u.nativeEvent.code==="Space"&&r==="button"&&(u.preventDefault(),n.store.toggleDropdown("keyboard"))}};return{...t?{"aria-haspopup":"listbox","aria-expanded":s?!!(n.store.listId&&n.store.dropdownOpened):void 0,"aria-controls":n.store.dropdownOpened&&n.store.listId?n.store.listId:void 0,"aria-activedescendant":n.store.dropdownOpened&&l||void 0,autoComplete:a,"data-expanded":n.store.dropdownOpened||void 0,"data-mantine-stop-propagation":n.store.dropdownOpened||void 0}:{},onKeyDown:d}}const Qo={refProp:"ref",targetType:"input",withKeyboardNavigation:!0,withAriaAttributes:!0,withExpandedAttribute:!1,autoComplete:"off"},oo=j((e,o)=>{const{children:t,refProp:s,withKeyboardNavigation:r,withAriaAttributes:a,withExpandedAttribute:n,targetType:l,autoComplete:c,...d}=A("ComboboxEventsTarget",Qo,e),p=Ue(t);if(!p)throw new Error("Combobox.EventsTarget component children should be an element or a component that accepts ref. Fragments, strings, numbers and other primitive values are not supported");const u=M(),b=De({targetType:l,withAriaAttributes:a,withKeyboardNavigation:r,withExpandedAttribute:n,onKeyDown:p.props.onKeyDown,autoComplete:c});return m.cloneElement(p,{...b,...d,[s]:ge(o,u.store.targetRef,To(p))})});oo.displayName="@mantine/core/ComboboxEventsTarget";const _e=j((e,o)=>{const{classNames:t,className:s,style:r,styles:a,vars:n,...l}=A("ComboboxFooter",null,e),c=M();return i.jsx(L,{ref:o,...c.getStyles("footer",{className:s,classNames:t,style:r,styles:a}),...l,onMouseDown:d=>{d.preventDefault()}})});_e.classes=R;_e.displayName="@mantine/core/ComboboxFooter";const Ne=j((e,o)=>{const{classNames:t,className:s,style:r,styles:a,vars:n,children:l,label:c,id:d,...p}=A("ComboboxGroup",null,e),u=M(),b=fe(d);return i.jsxs(L,{ref:o,role:"group","aria-labelledby":c?b:void 0,...u.getStyles("group",{className:s,classNames:t,style:r,styles:a}),...p,children:[c&&i.jsx("div",{id:b,...u.getStyles("groupLabel",{classNames:t,styles:a}),children:c}),l]})});Ne.classes=R;Ne.displayName="@mantine/core/ComboboxGroup";const Ie=j((e,o)=>{const{classNames:t,className:s,style:r,styles:a,vars:n,...l}=A("ComboboxHeader",null,e),c=M();return i.jsx(L,{ref:o,...c.getStyles("header",{className:s,classNames:t,style:r,styles:a}),...l,onMouseDown:d=>{d.preventDefault()}})});Ie.classes=R;Ie.displayName="@mantine/core/ComboboxHeader";function to({value:e,valuesDivider:o=",",...t}){return i.jsx("input",{type:"hidden",value:Array.isArray(e)?e.join(o):e||"",...t})}to.displayName="@mantine/core/ComboboxHiddenInput";const Ae=j((e,o)=>{const t=A("ComboboxOption",null,e),{classNames:s,className:r,style:a,styles:n,vars:l,onClick:c,id:d,active:p,onMouseDown:u,onMouseOver:b,disabled:x,selected:y,mod:C,...g}=t,k=M(),S=m.useId(),_=d||S;return i.jsx(L,{...k.getStyles("option",{className:r,classNames:s,styles:n,style:a}),...g,ref:o,id:_,mod:["combobox-option",{"combobox-active":p,"combobox-disabled":x,"combobox-selected":y},C],role:"option",onClick:h=>{x?h.preventDefault():(k.onOptionSubmit?.(t.value,t),c?.(h))},onMouseDown:h=>{h.preventDefault(),u?.(h)},onMouseOver:h=>{k.resetSelectionOnOptionHover&&k.store.resetSelectedOption(),b?.(h)}})});Ae.classes=R;Ae.displayName="@mantine/core/ComboboxOption";const Ee=j((e,o)=>{const t=A("ComboboxOptions",null,e),{classNames:s,className:r,style:a,styles:n,id:l,onMouseDown:c,labelledBy:d,...p}=t,u=M(),b=fe(l);return m.useEffect(()=>{u.store.setListId(b)},[b]),i.jsx(L,{ref:o,...u.getStyles("options",{className:r,style:a,classNames:s,styles:n}),...p,id:b,role:"listbox","aria-labelledby":d,onMouseDown:x=>{x.preventDefault(),c?.(x)}})});Ee.classes=R;Ee.displayName="@mantine/core/ComboboxOptions";const Xo={withAriaAttributes:!0,withKeyboardNavigation:!0},je=j((e,o)=>{const t=A("ComboboxSearch",Xo,e),{classNames:s,styles:r,unstyled:a,vars:n,withAriaAttributes:l,onKeyDown:c,withKeyboardNavigation:d,size:p,...u}=t,b=M(),x=b.getStyles("search"),y=De({targetType:"input",withAriaAttributes:l,withKeyboardNavigation:d,withExpandedAttribute:!1,onKeyDown:c,autoComplete:"off"});return i.jsx(me,{ref:ge(o,b.store.searchRef),classNames:[{input:x.className},s],styles:[{input:x.style},r],size:p||b.size,...y,...u,__staticSelector:"Combobox"})});je.classes=R;je.displayName="@mantine/core/ComboboxSearch";const Yo={refProp:"ref",targetType:"input",withKeyboardNavigation:!0,withAriaAttributes:!0,withExpandedAttribute:!1,autoComplete:"off"},no=j((e,o)=>{const{children:t,refProp:s,withKeyboardNavigation:r,withAriaAttributes:a,withExpandedAttribute:n,targetType:l,autoComplete:c,...d}=A("ComboboxTarget",Yo,e),p=Ue(t);if(!p)throw new Error("Combobox.Target component children should be an element or a component that accepts ref. Fragments, strings, numbers and other primitive values are not supported");const u=M(),b=De({targetType:l,withAriaAttributes:a,withKeyboardNavigation:r,withExpandedAttribute:n,onKeyDown:p.props.onKeyDown,autoComplete:c}),x=m.cloneElement(p,{...b,...d});return i.jsx(he.Target,{ref:ge(o,u.store.targetRef),children:x})});no.displayName="@mantine/core/ComboboxTarget";function et(e,o,t){for(let s=e-1;s>=0;s-=1)if(!o[s].hasAttribute("data-combobox-disabled"))return s;if(t){for(let s=o.length-1;s>-1;s-=1)if(!o[s].hasAttribute("data-combobox-disabled"))return s}return e}function ot(e,o,t){for(let s=e+1;s<o.length;s+=1)if(!o[s].hasAttribute("data-combobox-disabled"))return s;if(t){for(let s=0;s<o.length;s+=1)if(!o[s].hasAttribute("data-combobox-disabled"))return s}return e}function tt(e){for(let o=0;o<e.length;o+=1)if(!e[o].hasAttribute("data-combobox-disabled"))return o;return-1}function so({defaultOpened:e,opened:o,onOpenedChange:t,onDropdownClose:s,onDropdownOpen:r,loop:a=!0,scrollBehavior:n="instant"}={}){const[l,c]=te({value:o,defaultValue:e,finalValue:!1,onChange:t}),d=m.useRef(null),p=m.useRef(-1),u=m.useRef(null),b=m.useRef(null),x=m.useRef(-1),y=m.useRef(-1),C=m.useRef(-1),g=m.useCallback((f="unknown")=>{l||(c(!0),r?.(f))},[c,r,l]),k=m.useCallback((f="unknown")=>{l&&(c(!1),s?.(f))},[c,s,l]),S=m.useCallback((f="unknown")=>{l?k(f):g(f)},[k,g,l]),_=m.useCallback(()=>{const f=H(b.current),D=be(`#${d.current} [data-combobox-selected]`,f);D?.removeAttribute("data-combobox-selected"),D?.removeAttribute("aria-selected")},[]),h=m.useCallback(f=>{const D=H(b.current),F=be(`#${d.current}`,D),N=F?U("[data-combobox-option]",F):null;if(!N)return null;const I=f>=N.length?0:f<0?N.length-1:f;return p.current=I,N?.[I]&&!N[I].hasAttribute("data-combobox-disabled")?(_(),N[I].setAttribute("data-combobox-selected","true"),N[I].setAttribute("aria-selected","true"),N[I].scrollIntoView({block:"nearest",behavior:n}),N[I].id):null},[n,_]),O=m.useCallback(()=>{const f=H(b.current),D=be(`#${d.current} [data-combobox-active]`,f);if(D){const N=U(`#${d.current} [data-combobox-option]`,f).findIndex(I=>I===D);return h(N)}return h(0)},[h]),P=m.useCallback(()=>{const f=H(b.current),D=U(`#${d.current} [data-combobox-option]`,f);return h(ot(p.current,D,a))},[h,a]),E=m.useCallback(()=>{const f=H(b.current),D=U(`#${d.current} [data-combobox-option]`,f);return h(et(p.current,D,a))},[h,a]),ce=m.useCallback(()=>{const f=H(b.current),D=U(`#${d.current} [data-combobox-option]`,f);return h(tt(D))},[h]),J=m.useCallback((f="selected",D)=>{C.current=window.setTimeout(()=>{const F=H(b.current),N=U(`#${d.current} [data-combobox-option]`,F),I=N.findIndex(Y=>Y.hasAttribute(`data-combobox-${f}`));p.current=I,D?.scrollIntoView&&N[I]?.scrollIntoView({block:"nearest",behavior:n})},0)},[]),le=m.useCallback(()=>{p.current=-1,_()},[_]),Q=m.useCallback(()=>{const f=H(b.current);U(`#${d.current} [data-combobox-option]`,f)?.[p.current]?.click()},[]),q=m.useCallback(f=>{d.current=f},[]),z=m.useCallback(()=>{x.current=window.setTimeout(()=>u.current?.focus(),0)},[]),K=m.useCallback(()=>{y.current=window.setTimeout(()=>b.current?.focus(),0)},[]),X=m.useCallback(()=>p.current,[]);return m.useEffect(()=>()=>{window.clearTimeout(x.current),window.clearTimeout(y.current),window.clearTimeout(C.current)},[]),{dropdownOpened:l,openDropdown:g,closeDropdown:k,toggleDropdown:S,selectedOptionIndex:p.current,getSelectedOptionIndex:X,selectOption:h,selectFirstOption:ce,selectActiveOption:O,selectNextOption:P,selectPreviousOption:E,resetSelectedOption:le,updateSelectedOptionIndex:J,listId:d.current,setListId:q,clickSelectedOption:Q,searchRef:u,focusSearchInput:z,targetRef:b,focusTarget:K}}const nt={keepMounted:!0,withinPortal:!0,resetSelectionOnOptionHover:!1,width:"target",transitionProps:{transition:"fade",duration:0},size:"sm"},st=re((e,{size:o,dropdownPadding:t})=>({options:{"--combobox-option-fz":He(o),"--combobox-option-padding":oe(o,"combobox-option-padding")},dropdown:{"--combobox-padding":t===void 0?void 0:Ce(t),"--combobox-option-fz":He(o),"--combobox-option-padding":oe(o,"combobox-option-padding")}}));function v(e){const o=A("Combobox",nt,e),{classNames:t,styles:s,unstyled:r,children:a,store:n,vars:l,onOptionSubmit:c,onClose:d,size:p,dropdownPadding:u,resetSelectionOnOptionHover:b,__staticSelector:x,readOnly:y,attributes:C,...g}=o,k=so(),S=n||k,_=se({name:x||"Combobox",classes:R,props:o,classNames:t,styles:s,unstyled:r,attributes:C,vars:l,varsResolver:st}),h=()=>{d?.(),S.closeDropdown()};return i.jsx(Zo,{value:{getStyles:_,store:S,onOptionSubmit:c,size:p,resetSelectionOnOptionHover:b,readOnly:y},children:i.jsx(he,{opened:S.dropdownOpened,preventPositionChangeWhenVisible:!1,...g,onChange:O=>!O&&h(),withRoles:!1,unstyled:r,children:a})})}const rt=e=>e;v.extend=rt;v.classes=R;v.displayName="@mantine/core/Combobox";v.Target=no;v.Dropdown=Oe;v.Options=Ee;v.Option=Ae;v.Search=je;v.Empty=Se;v.Chevron=ke;v.Footer=_e;v.Header=Ie;v.EventsTarget=oo;v.DropdownTarget=eo;v.Group=Ne;v.ClearButton=Ye;v.HiddenInput=to;var ro={root:"m_bf2d988c",inner:"m_26062bec",input:"m_26063560",icon:"m_bf295423","input--outline":"m_215c4542"};const ao=m.createContext(null),at=ao.Provider,co=()=>m.useContext(ao),[ct,lt]=$o();var lo={card:"m_26775b0a"};const it={withBorder:!0},dt=re((e,{radius:o})=>({card:{"--card-radius":we(o)}})),Pe=j((e,o)=>{const t=A("CheckboxCard",it,e),{classNames:s,className:r,style:a,styles:n,unstyled:l,vars:c,checked:d,mod:p,withBorder:u,value:b,onClick:x,defaultChecked:y,onChange:C,attributes:g,...k}=t,S=se({name:"CheckboxCard",classes:lo,props:t,className:r,style:a,classNames:s,styles:n,unstyled:l,attributes:g,vars:c,varsResolver:dt,rootSelector:"card"}),_=co(),h=typeof d=="boolean"?d:_?_.value.includes(b||""):void 0,[O,P]=te({value:h,defaultValue:y,finalValue:!1,onChange:C});return i.jsx(ct,{value:{checked:O},children:i.jsx(Vo,{ref:o,mod:[{"with-border":u,checked:O},p],...S("card"),...k,role:"checkbox","aria-checked":O,onClick:E=>{x?.(E),_?.onChange(b||""),P(!O)}})})});Pe.displayName="@mantine/core/CheckboxCard";Pe.classes=lo;const Re=j((e,o)=>{const{value:t,defaultValue:s,onChange:r,size:a,wrapperProps:n,children:l,readOnly:c,disabled:d,...p}=A("CheckboxGroup",null,e),[u,b]=te({value:t,defaultValue:s,finalValue:[],onChange:r}),x=y=>{const C=typeof y=="string"?y:y.currentTarget.value;!c&&b(u.includes(C)?u.filter(g=>g!==C):[...u,C])};return i.jsx(at,{value:{value:u,onChange:x,size:a,disabled:d},children:i.jsx(me.Wrapper,{size:a,ref:o,...n,...p,labelElement:"div",__staticSelector:"CheckboxGroup",children:i.jsx(Lo,{role:"group",children:l})})})});Re.classes=me.Wrapper.classes;Re.displayName="@mantine/core/CheckboxGroup";function io({size:e,style:o,...t}){const s=e!==void 0?{width:Ce(e),height:Ce(e),...o}:o;return i.jsx("svg",{viewBox:"0 0 10 7",fill:"none",xmlns:"http://www.w3.org/2000/svg",style:s,"aria-hidden":!0,...t,children:i.jsx("path",{d:"M4 4.586L1.707 2.293A1 1 0 1 0 .293 3.707l3 3a.997.997 0 0 0 1.414 0l5-5A1 1 0 1 0 8.293.293L4 4.586z",fill:"currentColor",fillRule:"evenodd",clipRule:"evenodd"})})}function uo({indeterminate:e,...o}){return e?i.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 32 6","aria-hidden":!0,...o,children:i.jsx("rect",{width:"32",height:"6",fill:"currentColor",rx:"3"})}):i.jsx(io,{...o})}var po={indicator:"m_5e5256ee",icon:"m_1b1c543a","indicator--outline":"m_76e20374"};const ut={icon:uo,variant:"filled"},pt=re((e,{radius:o,color:t,size:s,iconColor:r,variant:a,autoContrast:n})=>{const l=qe({color:t||e.primaryColor,theme:e}),c=l.isThemeColor&&l.shade===void 0?`var(--mantine-color-${l.color}-outline)`:l.color;return{indicator:{"--checkbox-size":oe(s,"checkbox-size"),"--checkbox-radius":o===void 0?void 0:we(o),"--checkbox-color":a==="outline"?c:ee(t,e),"--checkbox-icon-color":r?ee(r,e):We(n,e)?Ze({color:t,theme:e,autoContrast:n}):void 0}}}),Te=j((e,o)=>{const t=A("CheckboxIndicator",ut,e),{classNames:s,className:r,style:a,styles:n,unstyled:l,vars:c,icon:d,indeterminate:p,radius:u,color:b,iconColor:x,autoContrast:y,checked:C,mod:g,variant:k,disabled:S,attributes:_,...h}=t,O=se({name:"CheckboxIndicator",classes:po,props:t,className:r,style:a,classNames:s,styles:n,unstyled:l,attributes:_,vars:c,varsResolver:pt,rootSelector:"indicator"}),P=lt(),E=typeof C=="boolean"||typeof p=="boolean"?C||p:P?.checked||!1;return i.jsx(L,{ref:o,...O("indicator",{variant:k}),variant:k,mod:[{checked:E,disabled:S},g],...h,children:i.jsx(d,{indeterminate:p,...O("icon")})})});Te.displayName="@mantine/core/CheckboxIndicator";Te.classes=po;const bt={labelPosition:"right",icon:uo,variant:"filled"},mt=re((e,{radius:o,color:t,size:s,iconColor:r,variant:a,autoContrast:n})=>{const l=qe({color:t||e.primaryColor,theme:e}),c=l.isThemeColor&&l.shade===void 0?`var(--mantine-color-${l.color}-outline)`:l.color;return{root:{"--checkbox-size":oe(s,"checkbox-size"),"--checkbox-radius":o===void 0?void 0:we(o),"--checkbox-color":a==="outline"?c:ee(t,e),"--checkbox-icon-color":r?ee(r,e):We(n,e)?Ze({color:t,theme:e,autoContrast:n}):void 0}}}),ae=j((e,o)=>{const t=A("Checkbox",bt,e),{classNames:s,className:r,style:a,styles:n,unstyled:l,vars:c,color:d,label:p,id:u,size:b,radius:x,wrapperProps:y,checked:C,labelPosition:g,description:k,error:S,disabled:_,variant:h,indeterminate:O,icon:P,rootRef:E,iconColor:ce,onChange:J,autoContrast:le,mod:Q,attributes:q,...z}=t,K=co(),X=b||K?.size,f=se({name:"Checkbox",props:t,classes:ro,className:r,style:a,classNames:s,styles:n,unstyled:l,attributes:q,vars:c,varsResolver:mt}),{styleProps:D,rest:F}=Fo(z),N=fe(u),I={checked:K?.value.includes(F.value)??C,onChange:ie=>{K?.onChange(ie),J?.(ie)},disabled:K?.disabled??_},Y=m.useRef(null),B=o||Y;return m.useEffect(()=>{B&&"current"in B&&B.current&&(B.current.indeterminate=O||!1,O?B.current.setAttribute("data-indeterminate","true"):B.current.removeAttribute("data-indeterminate"))},[O,B]),i.jsx(Go,{...f("root"),__staticSelector:"Checkbox",__stylesApiProps:t,id:N,size:X,labelPosition:g,label:p,description:k,error:S,disabled:I.disabled,classNames:s,styles:n,unstyled:l,"data-checked":I.checked||C||void 0,variant:h,ref:E,mod:Q,...D,...y,children:i.jsxs(L,{...f("inner"),mod:{"data-label-position":g},children:[i.jsx(L,{component:"input",id:N,ref:B,mod:{error:!!S},...f("input",{focusable:!0,variant:h}),...F,...I,type:"checkbox"}),i.jsx(P,{indeterminate:O,...f("icon")})]})})});ae.classes={...ro,...Ko};ae.displayName="@mantine/core/Checkbox";ae.Group=Re;ae.Indicator=Te;ae.Card=Pe;function ne(e){return"group"in e}function bo({options:e,search:o,limit:t}){const s=o.trim().toLowerCase(),r=[];for(let a=0;a<e.length;a+=1){const n=e[a];if(r.length===t)return r;ne(n)&&r.push({group:n.group,items:bo({options:n.items,search:o,limit:t-r.length})}),ne(n)||n.label.toLowerCase().includes(s)&&r.push(n)}return r}function ft(e){if(e.length===0)return!0;for(const o of e)if(!("group"in o)||o.items.length>0)return!1;return!0}function mo(e,o=new Set){if(Array.isArray(e))for(const t of e)if(ne(t))mo(t.items,o);else{if(typeof t.value>"u")throw new Error("[@mantine/core] Each option must have value property");if(typeof t.value!="string")throw new Error(`[@mantine/core] Option value must be a string, other data formats are not supported, got ${typeof t.value}`);if(o.has(t.value))throw new Error(`[@mantine/core] Duplicate options are not supported. Option with value "${t.value}" was provided more than once`);o.add(t.value)}}function ht(e,o){return Array.isArray(e)?e.includes(o):e===o}function fo({data:e,withCheckIcon:o,withAlignedLabels:t,value:s,checkIconPosition:r,unstyled:a,renderOption:n}){if(!ne(e)){const c=ht(s,e.value),d=o&&(c?i.jsx(io,{className:R.optionsDropdownCheckIcon}):t?i.jsx("div",{className:R.optionsDropdownCheckPlaceholder}):null),p=i.jsxs(i.Fragment,{children:[r==="left"&&d,i.jsx("span",{children:e.label}),r==="right"&&d]});return i.jsx(v.Option,{value:e.value,disabled:e.disabled,className:zo({[R.optionsDropdownOption]:!a}),"data-reverse":r==="right"||void 0,"data-checked":c||void 0,"aria-selected":c,active:c,children:typeof n=="function"?n({option:e,checked:c}):p})}const l=e.items.map(c=>i.jsx(fo,{data:c,value:s,unstyled:a,withCheckIcon:o,withAlignedLabels:t,checkIconPosition:r,renderOption:n},c.value));return i.jsx(v.Group,{label:e.group,children:l})}function xt({data:e,hidden:o,hiddenWhenEmpty:t,filter:s,search:r,limit:a,maxDropdownHeight:n,withScrollArea:l=!0,filterOptions:c=!0,withCheckIcon:d=!1,withAlignedLabels:p=!1,value:u,checkIconPosition:b,nothingFoundMessage:x,unstyled:y,labelId:C,renderOption:g,scrollAreaProps:k,"aria-label":S}){mo(e);const h=typeof r=="string"?(s||bo)({options:e,search:c?r:"",limit:a??1/0}):e,O=ft(h),P=h.map(E=>i.jsx(fo,{data:E,withCheckIcon:d,withAlignedLabels:p,value:u,checkIconPosition:b,unstyled:y,renderOption:g},ne(E)?E.group:E.value));return i.jsx(v.Dropdown,{hidden:o||t&&O,"data-composed":!0,children:i.jsxs(v.Options,{labelledBy:C,"aria-label":S,children:[l?i.jsx(Mo.Autosize,{mah:n??220,type:"scroll",scrollbarSize:"var(--combobox-padding)",offsetScrollbars:"y",...k,children:P}):P,O&&x&&i.jsx(v.Empty,{children:x})]})})}const vt={withCheckIcon:!0,allowDeselect:!0,checkIconPosition:"left",openOnFocus:!0},ho=j((e,o)=>{const t=A("Select",vt,e),{classNames:s,styles:r,unstyled:a,vars:n,dropdownOpened:l,defaultDropdownOpened:c,onDropdownClose:d,onDropdownOpen:p,onFocus:u,onBlur:b,onClick:x,onChange:y,data:C,value:g,defaultValue:k,selectFirstOptionOnChange:S,selectFirstOptionOnDropdownOpen:_,onOptionSubmit:h,comboboxProps:O,readOnly:P,disabled:E,filter:ce,limit:J,withScrollArea:le,maxDropdownHeight:Q,size:q,searchable:z,rightSection:K,checkIconPosition:X,withCheckIcon:f,withAlignedLabels:D,nothingFoundMessage:F,name:N,form:I,searchValue:Y,defaultSearchValue:B,onSearchChange:ie,allowDeselect:xo,error:$e,rightSectionPointerEvents:vo,id:Co,clearable:go,clearButtonProps:wo,hiddenInputProps:yo,renderOption:ko,onClear:Oo,autoComplete:So,scrollAreaProps:Do,__defaultRightSection:yt,__clearSection:kt,__clearable:Ot,chevronColor:_o,autoSelectOnBlur:Ve,openOnFocus:No,attributes:Fe,...de}=t,xe=m.useMemo(()=>Uo(C),[C]),ue=m.useRef({}),V=m.useMemo(()=>Xe(xe),[xe]),Me=fe(Co),[w,ze,Be]=te({value:g,defaultValue:k,finalValue:null,onChange:y}),G=typeof w=="string"?w in V?V[w]:ue.current[w]:void 0,Le=Ho(G),[pe,Io,Ao]=te({value:Y,defaultValue:B,finalValue:G?G.label:"",onChange:ie}),T=so({opened:l,defaultOpened:c,onDropdownOpen:()=>{p?.(),_?T.selectFirstOption():T.updateSelectedOptionIndex("active",{scrollIntoView:!0})},onDropdownClose:()=>{d?.(),setTimeout(T.resetSelectedOption,0)}}),W=$=>{Io($),T.resetSelectedOption()},{resolvedClassNames:Ge,resolvedStyles:Ke}=Bo({props:t,styles:r,classNames:s});m.useEffect(()=>{S&&T.selectFirstOption()},[S,pe]),m.useEffect(()=>{g===null&&W(""),typeof g=="string"&&G&&(Le?.value!==G.value||Le?.label!==G.label)&&W(G.label)},[g,G]),m.useEffect(()=>{!Be&&!Ao&&W(typeof w=="string"?w in V?V[w]?.label:ue.current[w]?.label||"":"")},[V,w]),m.useEffect(()=>{w&&w in V&&(ue.current[w]=V[w])},[V,w]);const Eo=i.jsx(v.ClearButton,{...wo,onClear:()=>{ze(null,null),W(""),Oo?.()}}),jo=go&&!!w&&!E&&!P;return i.jsxs(i.Fragment,{children:[i.jsxs(v,{store:T,__staticSelector:"Select",classNames:Ge,styles:Ke,unstyled:a,readOnly:P,size:q,attributes:Fe,keepMounted:Ve,onOptionSubmit:$=>{h?.($);const Z=xo&&V[$].value===w?null:V[$],ve=Z?Z.value:null;ve!==w&&ze(ve,Z),!Be&&W(typeof ve=="string"&&Z?.label||""),T.closeDropdown()},...O,children:[i.jsx(v.Target,{targetType:z?"input":"button",autoComplete:So,children:i.jsx(Je,{id:Me,ref:o,__defaultRightSection:i.jsx(v.Chevron,{size:q,error:$e,unstyled:a,color:_o}),__clearSection:Eo,__clearable:jo,rightSection:K,rightSectionPointerEvents:vo||"none",...de,size:q,__staticSelector:"Select",disabled:E,readOnly:P||!z,value:pe,onChange:$=>{W($.currentTarget.value),T.openDropdown(),S&&T.selectFirstOption()},onFocus:$=>{No&&z&&T.openDropdown(),u?.($)},onBlur:$=>{Ve&&T.clickSelectedOption(),z&&T.closeDropdown();const Z=typeof w=="string"&&(w in V?V[w]:ue.current[w]);W(Z&&Z.label||""),b?.($)},onClick:$=>{z?T.openDropdown():T.toggleDropdown(),x?.($)},classNames:Ge,styles:Ke,unstyled:a,pointer:!z,error:$e,attributes:Fe})}),i.jsx(xt,{data:xe,hidden:P||E,filter:ce,search:pe,limit:J,hiddenWhenEmpty:!F,withScrollArea:le,maxDropdownHeight:Q,filterOptions:!!z&&G?.label!==pe,value:w,checkIconPosition:X,withCheckIcon:f,withAlignedLabels:D,nothingFoundMessage:F,unstyled:a,labelId:de.label?`${Me}-label`:void 0,"aria-label":de.label?void 0:de["aria-label"],renderOption:ko,scrollAreaProps:Do})]}),i.jsx(v.HiddenInput,{value:w,name:N,form:I,disabled:E,...yo})]})});ho.classes={...Je.classes,...v.classes};ho.displayName="@mantine/core/Select";const Ct=[["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"}]],Nt=ye("outline","arrow-down","ArrowDown",Ct);const gt=[["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"}]],It=ye("outline","arrow-up","ArrowUp",gt);const wt=[["path",{d:"M12 5l0 14",key:"svg-0"}],["path",{d:"M5 12l14 0",key:"svg-1"}]],At=ye("outline","plus","Plus",wt);export{ae as C,Nt as I,xt as O,ho as S,It as a,At as b,Xe as c,v as d,io as e,Uo as g,ne as i,so as u};
1
+ import{r as m,f as j,d as A,o as se,j as i,B as L,t as re,w as ee,v as oe,c as Po,aE as me,b9 as Ro,ba as Ue,aj as ge,be as To,q as fe,a2 as te,aL as He,g as Ce,aA as $o,U as Vo,x as we,b8 as qe,am as We,an as Ze,aJ as Fo,af as Mo,e as zo,az as Bo,a4 as Je,y as ye}from"./entry.ETzhI2TP.js";import{I as Lo,a as Go,b as Ko}from"./chunk.CMs831K8.js";import{P as he}from"./chunk.C5vcO6ci.js";function Ho(e){const o=m.useRef(void 0);return m.useEffect(()=>{o.current=e},[e]),o.current}function be(e,o=document){const t=o.querySelector(e);if(t)return t;const s=o.querySelectorAll("*");for(let r=0;r<s.length;r+=1){const a=s[r];if(a.shadowRoot){const n=be(e,a.shadowRoot);if(n)return n}}return null}function U(e,o=document){const t=[],s=o.querySelectorAll(e);t.push(...Array.from(s));const r=o.querySelectorAll("*");for(let a=0;a<r.length;a+=1){const n=r[a];if(n.shadowRoot){const l=U(e,n.shadowRoot);t.push(...l)}}return t}function H(e){if(!e)return document;const o=e.getRootNode();return o instanceof ShadowRoot||o instanceof Document?o:document}function Qe(e){return typeof e=="string"?{value:e,label:e}:"value"in e&&!("label"in e)?{value:e.value,label:e.value,disabled:e.disabled}:typeof e=="number"?{value:e.toString(),label:e.toString()}:"group"in e?{group:e.group,items:e.items.map(o=>Qe(o))}:e}function Uo(e){return e?e.map(o=>Qe(o)):[]}function Xe(e){return e.reduce((o,t)=>"group"in t?{...o,...Xe(t.items)}:(o[t.value]=t,o),{})}var R={dropdown:"m_88b62a41",search:"m_985517d8",options:"m_b2821a6e",option:"m_92253aa5",empty:"m_2530cd1d",header:"m_858f94bd",footer:"m_82b967cb",group:"m_254f3e4f",groupLabel:"m_2bb2e9e5",chevron:"m_2943220b",optionsDropdownOption:"m_390b5f4",optionsDropdownCheckIcon:"m_8ee53fc2",optionsDropdownCheckPlaceholder:"m_a530ee0a"};const qo={error:null},Wo=re((e,{size:o,color:t})=>({chevron:{"--combobox-chevron-size":oe(o,"combobox-chevron-size"),"--combobox-chevron-color":t?ee(t,e):void 0}})),ke=j((e,o)=>{const t=A("ComboboxChevron",qo,e),{size:s,error:r,style:a,className:n,classNames:l,styles:c,unstyled:d,vars:p,mod:u,...b}=t,x=se({name:"ComboboxChevron",classes:R,props:t,style:a,className:n,classNames:l,styles:c,unstyled:d,vars:p,varsResolver:Wo,rootSelector:"chevron"});return i.jsx(L,{component:"svg",...b,...x("chevron"),size:s,viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg",mod:["combobox-chevron",{error:r},u],ref:o,children:i.jsx("path",{d:"M4.93179 5.43179C4.75605 5.60753 4.75605 5.89245 4.93179 6.06819C5.10753 6.24392 5.39245 6.24392 5.56819 6.06819L7.49999 4.13638L9.43179 6.06819C9.60753 6.24392 9.89245 6.24392 10.0682 6.06819C10.2439 5.89245 10.2439 5.60753 10.0682 5.43179L7.81819 3.18179C7.73379 3.0974 7.61933 3.04999 7.49999 3.04999C7.38064 3.04999 7.26618 3.0974 7.18179 3.18179L4.93179 5.43179ZM10.0682 9.56819C10.2439 9.39245 10.2439 9.10753 10.0682 8.93179C9.89245 8.75606 9.60753 8.75606 9.43179 8.93179L7.49999 10.8636L5.56819 8.93179C5.39245 8.75606 5.10753 8.75606 4.93179 8.93179C4.75605 9.10753 4.75605 9.39245 4.93179 9.56819L7.18179 11.8182C7.35753 11.9939 7.64245 11.9939 7.81819 11.8182L10.0682 9.56819Z",fill:"currentColor",fillRule:"evenodd",clipRule:"evenodd"})})});ke.classes=R;ke.displayName="@mantine/core/ComboboxChevron";const[Zo,M]=Po("Combobox component was not found in tree"),Ye=m.forwardRef(({size:e,onMouseDown:o,onClick:t,onClear:s,...r},a)=>i.jsx(me.ClearButton,{ref:a,tabIndex:-1,"aria-hidden":!0,...r,onMouseDown:n=>{n.preventDefault(),o?.(n)},onClick:n=>{s(),t?.(n)}}));Ye.displayName="@mantine/core/ComboboxClearButton";const Oe=j((e,o)=>{const{classNames:t,styles:s,className:r,style:a,hidden:n,...l}=A("ComboboxDropdown",null,e),c=M();return i.jsx(he.Dropdown,{...l,ref:o,role:"presentation","data-hidden":n||void 0,...c.getStyles("dropdown",{className:r,style:a,classNames:t,styles:s})})});Oe.classes=R;Oe.displayName="@mantine/core/ComboboxDropdown";const Jo={refProp:"ref"},eo=j((e,o)=>{const{children:t,refProp:s}=A("ComboboxDropdownTarget",Jo,e);if(M(),!Ro(t))throw new Error("Combobox.DropdownTarget component children should be an element or a component that accepts ref. Fragments, strings, numbers and other primitive values are not supported");return i.jsx(he.Target,{ref:o,refProp:s,children:t})});eo.displayName="@mantine/core/ComboboxDropdownTarget";const Se=j((e,o)=>{const{classNames:t,className:s,style:r,styles:a,vars:n,...l}=A("ComboboxEmpty",null,e),c=M();return i.jsx(L,{ref:o,...c.getStyles("empty",{className:s,classNames:t,styles:a,style:r}),...l})});Se.classes=R;Se.displayName="@mantine/core/ComboboxEmpty";function De({onKeyDown:e,withKeyboardNavigation:o,withAriaAttributes:t,withExpandedAttribute:s,targetType:r,autoComplete:a}){const n=M(),[l,c]=m.useState(null),d=u=>{if(e?.(u),!n.readOnly&&o){if(u.nativeEvent.isComposing)return;if(u.nativeEvent.code==="ArrowDown"&&(u.preventDefault(),n.store.dropdownOpened?c(n.store.selectNextOption()):(n.store.openDropdown("keyboard"),c(n.store.selectActiveOption()),n.store.updateSelectedOptionIndex("selected",{scrollIntoView:!0}))),u.nativeEvent.code==="ArrowUp"&&(u.preventDefault(),n.store.dropdownOpened?c(n.store.selectPreviousOption()):(n.store.openDropdown("keyboard"),c(n.store.selectActiveOption()),n.store.updateSelectedOptionIndex("selected",{scrollIntoView:!0}))),u.nativeEvent.code==="Enter"||u.nativeEvent.code==="NumpadEnter"){if(u.nativeEvent.keyCode===229)return;const b=n.store.getSelectedOptionIndex();n.store.dropdownOpened&&b!==-1?(u.preventDefault(),n.store.clickSelectedOption()):r==="button"&&(u.preventDefault(),n.store.openDropdown("keyboard"))}u.key==="Escape"&&n.store.closeDropdown("keyboard"),u.nativeEvent.code==="Space"&&r==="button"&&(u.preventDefault(),n.store.toggleDropdown("keyboard"))}};return{...t?{"aria-haspopup":"listbox","aria-expanded":s?!!(n.store.listId&&n.store.dropdownOpened):void 0,"aria-controls":n.store.dropdownOpened&&n.store.listId?n.store.listId:void 0,"aria-activedescendant":n.store.dropdownOpened&&l||void 0,autoComplete:a,"data-expanded":n.store.dropdownOpened||void 0,"data-mantine-stop-propagation":n.store.dropdownOpened||void 0}:{},onKeyDown:d}}const Qo={refProp:"ref",targetType:"input",withKeyboardNavigation:!0,withAriaAttributes:!0,withExpandedAttribute:!1,autoComplete:"off"},oo=j((e,o)=>{const{children:t,refProp:s,withKeyboardNavigation:r,withAriaAttributes:a,withExpandedAttribute:n,targetType:l,autoComplete:c,...d}=A("ComboboxEventsTarget",Qo,e),p=Ue(t);if(!p)throw new Error("Combobox.EventsTarget component children should be an element or a component that accepts ref. Fragments, strings, numbers and other primitive values are not supported");const u=M(),b=De({targetType:l,withAriaAttributes:a,withKeyboardNavigation:r,withExpandedAttribute:n,onKeyDown:p.props.onKeyDown,autoComplete:c});return m.cloneElement(p,{...b,...d,[s]:ge(o,u.store.targetRef,To(p))})});oo.displayName="@mantine/core/ComboboxEventsTarget";const _e=j((e,o)=>{const{classNames:t,className:s,style:r,styles:a,vars:n,...l}=A("ComboboxFooter",null,e),c=M();return i.jsx(L,{ref:o,...c.getStyles("footer",{className:s,classNames:t,style:r,styles:a}),...l,onMouseDown:d=>{d.preventDefault()}})});_e.classes=R;_e.displayName="@mantine/core/ComboboxFooter";const Ne=j((e,o)=>{const{classNames:t,className:s,style:r,styles:a,vars:n,children:l,label:c,id:d,...p}=A("ComboboxGroup",null,e),u=M(),b=fe(d);return i.jsxs(L,{ref:o,role:"group","aria-labelledby":c?b:void 0,...u.getStyles("group",{className:s,classNames:t,style:r,styles:a}),...p,children:[c&&i.jsx("div",{id:b,...u.getStyles("groupLabel",{classNames:t,styles:a}),children:c}),l]})});Ne.classes=R;Ne.displayName="@mantine/core/ComboboxGroup";const Ie=j((e,o)=>{const{classNames:t,className:s,style:r,styles:a,vars:n,...l}=A("ComboboxHeader",null,e),c=M();return i.jsx(L,{ref:o,...c.getStyles("header",{className:s,classNames:t,style:r,styles:a}),...l,onMouseDown:d=>{d.preventDefault()}})});Ie.classes=R;Ie.displayName="@mantine/core/ComboboxHeader";function to({value:e,valuesDivider:o=",",...t}){return i.jsx("input",{type:"hidden",value:Array.isArray(e)?e.join(o):e||"",...t})}to.displayName="@mantine/core/ComboboxHiddenInput";const Ae=j((e,o)=>{const t=A("ComboboxOption",null,e),{classNames:s,className:r,style:a,styles:n,vars:l,onClick:c,id:d,active:p,onMouseDown:u,onMouseOver:b,disabled:x,selected:y,mod:C,...g}=t,k=M(),S=m.useId(),_=d||S;return i.jsx(L,{...k.getStyles("option",{className:r,classNames:s,styles:n,style:a}),...g,ref:o,id:_,mod:["combobox-option",{"combobox-active":p,"combobox-disabled":x,"combobox-selected":y},C],role:"option",onClick:h=>{x?h.preventDefault():(k.onOptionSubmit?.(t.value,t),c?.(h))},onMouseDown:h=>{h.preventDefault(),u?.(h)},onMouseOver:h=>{k.resetSelectionOnOptionHover&&k.store.resetSelectedOption(),b?.(h)}})});Ae.classes=R;Ae.displayName="@mantine/core/ComboboxOption";const Ee=j((e,o)=>{const t=A("ComboboxOptions",null,e),{classNames:s,className:r,style:a,styles:n,id:l,onMouseDown:c,labelledBy:d,...p}=t,u=M(),b=fe(l);return m.useEffect(()=>{u.store.setListId(b)},[b]),i.jsx(L,{ref:o,...u.getStyles("options",{className:r,style:a,classNames:s,styles:n}),...p,id:b,role:"listbox","aria-labelledby":d,onMouseDown:x=>{x.preventDefault(),c?.(x)}})});Ee.classes=R;Ee.displayName="@mantine/core/ComboboxOptions";const Xo={withAriaAttributes:!0,withKeyboardNavigation:!0},je=j((e,o)=>{const t=A("ComboboxSearch",Xo,e),{classNames:s,styles:r,unstyled:a,vars:n,withAriaAttributes:l,onKeyDown:c,withKeyboardNavigation:d,size:p,...u}=t,b=M(),x=b.getStyles("search"),y=De({targetType:"input",withAriaAttributes:l,withKeyboardNavigation:d,withExpandedAttribute:!1,onKeyDown:c,autoComplete:"off"});return i.jsx(me,{ref:ge(o,b.store.searchRef),classNames:[{input:x.className},s],styles:[{input:x.style},r],size:p||b.size,...y,...u,__staticSelector:"Combobox"})});je.classes=R;je.displayName="@mantine/core/ComboboxSearch";const Yo={refProp:"ref",targetType:"input",withKeyboardNavigation:!0,withAriaAttributes:!0,withExpandedAttribute:!1,autoComplete:"off"},no=j((e,o)=>{const{children:t,refProp:s,withKeyboardNavigation:r,withAriaAttributes:a,withExpandedAttribute:n,targetType:l,autoComplete:c,...d}=A("ComboboxTarget",Yo,e),p=Ue(t);if(!p)throw new Error("Combobox.Target component children should be an element or a component that accepts ref. Fragments, strings, numbers and other primitive values are not supported");const u=M(),b=De({targetType:l,withAriaAttributes:a,withKeyboardNavigation:r,withExpandedAttribute:n,onKeyDown:p.props.onKeyDown,autoComplete:c}),x=m.cloneElement(p,{...b,...d});return i.jsx(he.Target,{ref:ge(o,u.store.targetRef),children:x})});no.displayName="@mantine/core/ComboboxTarget";function et(e,o,t){for(let s=e-1;s>=0;s-=1)if(!o[s].hasAttribute("data-combobox-disabled"))return s;if(t){for(let s=o.length-1;s>-1;s-=1)if(!o[s].hasAttribute("data-combobox-disabled"))return s}return e}function ot(e,o,t){for(let s=e+1;s<o.length;s+=1)if(!o[s].hasAttribute("data-combobox-disabled"))return s;if(t){for(let s=0;s<o.length;s+=1)if(!o[s].hasAttribute("data-combobox-disabled"))return s}return e}function tt(e){for(let o=0;o<e.length;o+=1)if(!e[o].hasAttribute("data-combobox-disabled"))return o;return-1}function so({defaultOpened:e,opened:o,onOpenedChange:t,onDropdownClose:s,onDropdownOpen:r,loop:a=!0,scrollBehavior:n="instant"}={}){const[l,c]=te({value:o,defaultValue:e,finalValue:!1,onChange:t}),d=m.useRef(null),p=m.useRef(-1),u=m.useRef(null),b=m.useRef(null),x=m.useRef(-1),y=m.useRef(-1),C=m.useRef(-1),g=m.useCallback((f="unknown")=>{l||(c(!0),r?.(f))},[c,r,l]),k=m.useCallback((f="unknown")=>{l&&(c(!1),s?.(f))},[c,s,l]),S=m.useCallback((f="unknown")=>{l?k(f):g(f)},[k,g,l]),_=m.useCallback(()=>{const f=H(b.current),D=be(`#${d.current} [data-combobox-selected]`,f);D?.removeAttribute("data-combobox-selected"),D?.removeAttribute("aria-selected")},[]),h=m.useCallback(f=>{const D=H(b.current),F=be(`#${d.current}`,D),N=F?U("[data-combobox-option]",F):null;if(!N)return null;const I=f>=N.length?0:f<0?N.length-1:f;return p.current=I,N?.[I]&&!N[I].hasAttribute("data-combobox-disabled")?(_(),N[I].setAttribute("data-combobox-selected","true"),N[I].setAttribute("aria-selected","true"),N[I].scrollIntoView({block:"nearest",behavior:n}),N[I].id):null},[n,_]),O=m.useCallback(()=>{const f=H(b.current),D=be(`#${d.current} [data-combobox-active]`,f);if(D){const N=U(`#${d.current} [data-combobox-option]`,f).findIndex(I=>I===D);return h(N)}return h(0)},[h]),P=m.useCallback(()=>{const f=H(b.current),D=U(`#${d.current} [data-combobox-option]`,f);return h(ot(p.current,D,a))},[h,a]),E=m.useCallback(()=>{const f=H(b.current),D=U(`#${d.current} [data-combobox-option]`,f);return h(et(p.current,D,a))},[h,a]),ce=m.useCallback(()=>{const f=H(b.current),D=U(`#${d.current} [data-combobox-option]`,f);return h(tt(D))},[h]),J=m.useCallback((f="selected",D)=>{C.current=window.setTimeout(()=>{const F=H(b.current),N=U(`#${d.current} [data-combobox-option]`,F),I=N.findIndex(Y=>Y.hasAttribute(`data-combobox-${f}`));p.current=I,D?.scrollIntoView&&N[I]?.scrollIntoView({block:"nearest",behavior:n})},0)},[]),le=m.useCallback(()=>{p.current=-1,_()},[_]),Q=m.useCallback(()=>{const f=H(b.current);U(`#${d.current} [data-combobox-option]`,f)?.[p.current]?.click()},[]),q=m.useCallback(f=>{d.current=f},[]),z=m.useCallback(()=>{x.current=window.setTimeout(()=>u.current?.focus(),0)},[]),K=m.useCallback(()=>{y.current=window.setTimeout(()=>b.current?.focus(),0)},[]),X=m.useCallback(()=>p.current,[]);return m.useEffect(()=>()=>{window.clearTimeout(x.current),window.clearTimeout(y.current),window.clearTimeout(C.current)},[]),{dropdownOpened:l,openDropdown:g,closeDropdown:k,toggleDropdown:S,selectedOptionIndex:p.current,getSelectedOptionIndex:X,selectOption:h,selectFirstOption:ce,selectActiveOption:O,selectNextOption:P,selectPreviousOption:E,resetSelectedOption:le,updateSelectedOptionIndex:J,listId:d.current,setListId:q,clickSelectedOption:Q,searchRef:u,focusSearchInput:z,targetRef:b,focusTarget:K}}const nt={keepMounted:!0,withinPortal:!0,resetSelectionOnOptionHover:!1,width:"target",transitionProps:{transition:"fade",duration:0},size:"sm"},st=re((e,{size:o,dropdownPadding:t})=>({options:{"--combobox-option-fz":He(o),"--combobox-option-padding":oe(o,"combobox-option-padding")},dropdown:{"--combobox-padding":t===void 0?void 0:Ce(t),"--combobox-option-fz":He(o),"--combobox-option-padding":oe(o,"combobox-option-padding")}}));function v(e){const o=A("Combobox",nt,e),{classNames:t,styles:s,unstyled:r,children:a,store:n,vars:l,onOptionSubmit:c,onClose:d,size:p,dropdownPadding:u,resetSelectionOnOptionHover:b,__staticSelector:x,readOnly:y,attributes:C,...g}=o,k=so(),S=n||k,_=se({name:x||"Combobox",classes:R,props:o,classNames:t,styles:s,unstyled:r,attributes:C,vars:l,varsResolver:st}),h=()=>{d?.(),S.closeDropdown()};return i.jsx(Zo,{value:{getStyles:_,store:S,onOptionSubmit:c,size:p,resetSelectionOnOptionHover:b,readOnly:y},children:i.jsx(he,{opened:S.dropdownOpened,preventPositionChangeWhenVisible:!1,...g,onChange:O=>!O&&h(),withRoles:!1,unstyled:r,children:a})})}const rt=e=>e;v.extend=rt;v.classes=R;v.displayName="@mantine/core/Combobox";v.Target=no;v.Dropdown=Oe;v.Options=Ee;v.Option=Ae;v.Search=je;v.Empty=Se;v.Chevron=ke;v.Footer=_e;v.Header=Ie;v.EventsTarget=oo;v.DropdownTarget=eo;v.Group=Ne;v.ClearButton=Ye;v.HiddenInput=to;var ro={root:"m_bf2d988c",inner:"m_26062bec",input:"m_26063560",icon:"m_bf295423","input--outline":"m_215c4542"};const ao=m.createContext(null),at=ao.Provider,co=()=>m.useContext(ao),[ct,lt]=$o();var lo={card:"m_26775b0a"};const it={withBorder:!0},dt=re((e,{radius:o})=>({card:{"--card-radius":we(o)}})),Pe=j((e,o)=>{const t=A("CheckboxCard",it,e),{classNames:s,className:r,style:a,styles:n,unstyled:l,vars:c,checked:d,mod:p,withBorder:u,value:b,onClick:x,defaultChecked:y,onChange:C,attributes:g,...k}=t,S=se({name:"CheckboxCard",classes:lo,props:t,className:r,style:a,classNames:s,styles:n,unstyled:l,attributes:g,vars:c,varsResolver:dt,rootSelector:"card"}),_=co(),h=typeof d=="boolean"?d:_?_.value.includes(b||""):void 0,[O,P]=te({value:h,defaultValue:y,finalValue:!1,onChange:C});return i.jsx(ct,{value:{checked:O},children:i.jsx(Vo,{ref:o,mod:[{"with-border":u,checked:O},p],...S("card"),...k,role:"checkbox","aria-checked":O,onClick:E=>{x?.(E),_?.onChange(b||""),P(!O)}})})});Pe.displayName="@mantine/core/CheckboxCard";Pe.classes=lo;const Re=j((e,o)=>{const{value:t,defaultValue:s,onChange:r,size:a,wrapperProps:n,children:l,readOnly:c,disabled:d,...p}=A("CheckboxGroup",null,e),[u,b]=te({value:t,defaultValue:s,finalValue:[],onChange:r}),x=y=>{const C=typeof y=="string"?y:y.currentTarget.value;!c&&b(u.includes(C)?u.filter(g=>g!==C):[...u,C])};return i.jsx(at,{value:{value:u,onChange:x,size:a,disabled:d},children:i.jsx(me.Wrapper,{size:a,ref:o,...n,...p,labelElement:"div",__staticSelector:"CheckboxGroup",children:i.jsx(Lo,{role:"group",children:l})})})});Re.classes=me.Wrapper.classes;Re.displayName="@mantine/core/CheckboxGroup";function io({size:e,style:o,...t}){const s=e!==void 0?{width:Ce(e),height:Ce(e),...o}:o;return i.jsx("svg",{viewBox:"0 0 10 7",fill:"none",xmlns:"http://www.w3.org/2000/svg",style:s,"aria-hidden":!0,...t,children:i.jsx("path",{d:"M4 4.586L1.707 2.293A1 1 0 1 0 .293 3.707l3 3a.997.997 0 0 0 1.414 0l5-5A1 1 0 1 0 8.293.293L4 4.586z",fill:"currentColor",fillRule:"evenodd",clipRule:"evenodd"})})}function uo({indeterminate:e,...o}){return e?i.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 32 6","aria-hidden":!0,...o,children:i.jsx("rect",{width:"32",height:"6",fill:"currentColor",rx:"3"})}):i.jsx(io,{...o})}var po={indicator:"m_5e5256ee",icon:"m_1b1c543a","indicator--outline":"m_76e20374"};const ut={icon:uo,variant:"filled"},pt=re((e,{radius:o,color:t,size:s,iconColor:r,variant:a,autoContrast:n})=>{const l=qe({color:t||e.primaryColor,theme:e}),c=l.isThemeColor&&l.shade===void 0?`var(--mantine-color-${l.color}-outline)`:l.color;return{indicator:{"--checkbox-size":oe(s,"checkbox-size"),"--checkbox-radius":o===void 0?void 0:we(o),"--checkbox-color":a==="outline"?c:ee(t,e),"--checkbox-icon-color":r?ee(r,e):We(n,e)?Ze({color:t,theme:e,autoContrast:n}):void 0}}}),Te=j((e,o)=>{const t=A("CheckboxIndicator",ut,e),{classNames:s,className:r,style:a,styles:n,unstyled:l,vars:c,icon:d,indeterminate:p,radius:u,color:b,iconColor:x,autoContrast:y,checked:C,mod:g,variant:k,disabled:S,attributes:_,...h}=t,O=se({name:"CheckboxIndicator",classes:po,props:t,className:r,style:a,classNames:s,styles:n,unstyled:l,attributes:_,vars:c,varsResolver:pt,rootSelector:"indicator"}),P=lt(),E=typeof C=="boolean"||typeof p=="boolean"?C||p:P?.checked||!1;return i.jsx(L,{ref:o,...O("indicator",{variant:k}),variant:k,mod:[{checked:E,disabled:S},g],...h,children:i.jsx(d,{indeterminate:p,...O("icon")})})});Te.displayName="@mantine/core/CheckboxIndicator";Te.classes=po;const bt={labelPosition:"right",icon:uo,variant:"filled"},mt=re((e,{radius:o,color:t,size:s,iconColor:r,variant:a,autoContrast:n})=>{const l=qe({color:t||e.primaryColor,theme:e}),c=l.isThemeColor&&l.shade===void 0?`var(--mantine-color-${l.color}-outline)`:l.color;return{root:{"--checkbox-size":oe(s,"checkbox-size"),"--checkbox-radius":o===void 0?void 0:we(o),"--checkbox-color":a==="outline"?c:ee(t,e),"--checkbox-icon-color":r?ee(r,e):We(n,e)?Ze({color:t,theme:e,autoContrast:n}):void 0}}}),ae=j((e,o)=>{const t=A("Checkbox",bt,e),{classNames:s,className:r,style:a,styles:n,unstyled:l,vars:c,color:d,label:p,id:u,size:b,radius:x,wrapperProps:y,checked:C,labelPosition:g,description:k,error:S,disabled:_,variant:h,indeterminate:O,icon:P,rootRef:E,iconColor:ce,onChange:J,autoContrast:le,mod:Q,attributes:q,...z}=t,K=co(),X=b||K?.size,f=se({name:"Checkbox",props:t,classes:ro,className:r,style:a,classNames:s,styles:n,unstyled:l,attributes:q,vars:c,varsResolver:mt}),{styleProps:D,rest:F}=Fo(z),N=fe(u),I={checked:K?.value.includes(F.value)??C,onChange:ie=>{K?.onChange(ie),J?.(ie)},disabled:K?.disabled??_},Y=m.useRef(null),B=o||Y;return m.useEffect(()=>{B&&"current"in B&&B.current&&(B.current.indeterminate=O||!1,O?B.current.setAttribute("data-indeterminate","true"):B.current.removeAttribute("data-indeterminate"))},[O,B]),i.jsx(Go,{...f("root"),__staticSelector:"Checkbox",__stylesApiProps:t,id:N,size:X,labelPosition:g,label:p,description:k,error:S,disabled:I.disabled,classNames:s,styles:n,unstyled:l,"data-checked":I.checked||C||void 0,variant:h,ref:E,mod:Q,...D,...y,children:i.jsxs(L,{...f("inner"),mod:{"data-label-position":g},children:[i.jsx(L,{component:"input",id:N,ref:B,mod:{error:!!S},...f("input",{focusable:!0,variant:h}),...F,...I,type:"checkbox"}),i.jsx(P,{indeterminate:O,...f("icon")})]})})});ae.classes={...ro,...Ko};ae.displayName="@mantine/core/Checkbox";ae.Group=Re;ae.Indicator=Te;ae.Card=Pe;function ne(e){return"group"in e}function bo({options:e,search:o,limit:t}){const s=o.trim().toLowerCase(),r=[];for(let a=0;a<e.length;a+=1){const n=e[a];if(r.length===t)return r;ne(n)&&r.push({group:n.group,items:bo({options:n.items,search:o,limit:t-r.length})}),ne(n)||n.label.toLowerCase().includes(s)&&r.push(n)}return r}function ft(e){if(e.length===0)return!0;for(const o of e)if(!("group"in o)||o.items.length>0)return!1;return!0}function mo(e,o=new Set){if(Array.isArray(e))for(const t of e)if(ne(t))mo(t.items,o);else{if(typeof t.value>"u")throw new Error("[@mantine/core] Each option must have value property");if(typeof t.value!="string")throw new Error(`[@mantine/core] Option value must be a string, other data formats are not supported, got ${typeof t.value}`);if(o.has(t.value))throw new Error(`[@mantine/core] Duplicate options are not supported. Option with value "${t.value}" was provided more than once`);o.add(t.value)}}function ht(e,o){return Array.isArray(e)?e.includes(o):e===o}function fo({data:e,withCheckIcon:o,withAlignedLabels:t,value:s,checkIconPosition:r,unstyled:a,renderOption:n}){if(!ne(e)){const c=ht(s,e.value),d=o&&(c?i.jsx(io,{className:R.optionsDropdownCheckIcon}):t?i.jsx("div",{className:R.optionsDropdownCheckPlaceholder}):null),p=i.jsxs(i.Fragment,{children:[r==="left"&&d,i.jsx("span",{children:e.label}),r==="right"&&d]});return i.jsx(v.Option,{value:e.value,disabled:e.disabled,className:zo({[R.optionsDropdownOption]:!a}),"data-reverse":r==="right"||void 0,"data-checked":c||void 0,"aria-selected":c,active:c,children:typeof n=="function"?n({option:e,checked:c}):p})}const l=e.items.map(c=>i.jsx(fo,{data:c,value:s,unstyled:a,withCheckIcon:o,withAlignedLabels:t,checkIconPosition:r,renderOption:n},c.value));return i.jsx(v.Group,{label:e.group,children:l})}function xt({data:e,hidden:o,hiddenWhenEmpty:t,filter:s,search:r,limit:a,maxDropdownHeight:n,withScrollArea:l=!0,filterOptions:c=!0,withCheckIcon:d=!1,withAlignedLabels:p=!1,value:u,checkIconPosition:b,nothingFoundMessage:x,unstyled:y,labelId:C,renderOption:g,scrollAreaProps:k,"aria-label":S}){mo(e);const h=typeof r=="string"?(s||bo)({options:e,search:c?r:"",limit:a??1/0}):e,O=ft(h),P=h.map(E=>i.jsx(fo,{data:E,withCheckIcon:d,withAlignedLabels:p,value:u,checkIconPosition:b,unstyled:y,renderOption:g},ne(E)?E.group:E.value));return i.jsx(v.Dropdown,{hidden:o||t&&O,"data-composed":!0,children:i.jsxs(v.Options,{labelledBy:C,"aria-label":S,children:[l?i.jsx(Mo.Autosize,{mah:n??220,type:"scroll",scrollbarSize:"var(--combobox-padding)",offsetScrollbars:"y",...k,children:P}):P,O&&x&&i.jsx(v.Empty,{children:x})]})})}const vt={withCheckIcon:!0,allowDeselect:!0,checkIconPosition:"left",openOnFocus:!0},ho=j((e,o)=>{const t=A("Select",vt,e),{classNames:s,styles:r,unstyled:a,vars:n,dropdownOpened:l,defaultDropdownOpened:c,onDropdownClose:d,onDropdownOpen:p,onFocus:u,onBlur:b,onClick:x,onChange:y,data:C,value:g,defaultValue:k,selectFirstOptionOnChange:S,selectFirstOptionOnDropdownOpen:_,onOptionSubmit:h,comboboxProps:O,readOnly:P,disabled:E,filter:ce,limit:J,withScrollArea:le,maxDropdownHeight:Q,size:q,searchable:z,rightSection:K,checkIconPosition:X,withCheckIcon:f,withAlignedLabels:D,nothingFoundMessage:F,name:N,form:I,searchValue:Y,defaultSearchValue:B,onSearchChange:ie,allowDeselect:xo,error:$e,rightSectionPointerEvents:vo,id:Co,clearable:go,clearButtonProps:wo,hiddenInputProps:yo,renderOption:ko,onClear:Oo,autoComplete:So,scrollAreaProps:Do,__defaultRightSection:yt,__clearSection:kt,__clearable:Ot,chevronColor:_o,autoSelectOnBlur:Ve,openOnFocus:No,attributes:Fe,...de}=t,xe=m.useMemo(()=>Uo(C),[C]),ue=m.useRef({}),V=m.useMemo(()=>Xe(xe),[xe]),Me=fe(Co),[w,ze,Be]=te({value:g,defaultValue:k,finalValue:null,onChange:y}),G=typeof w=="string"?w in V?V[w]:ue.current[w]:void 0,Le=Ho(G),[pe,Io,Ao]=te({value:Y,defaultValue:B,finalValue:G?G.label:"",onChange:ie}),T=so({opened:l,defaultOpened:c,onDropdownOpen:()=>{p?.(),_?T.selectFirstOption():T.updateSelectedOptionIndex("active",{scrollIntoView:!0})},onDropdownClose:()=>{d?.(),setTimeout(T.resetSelectedOption,0)}}),W=$=>{Io($),T.resetSelectedOption()},{resolvedClassNames:Ge,resolvedStyles:Ke}=Bo({props:t,styles:r,classNames:s});m.useEffect(()=>{S&&T.selectFirstOption()},[S,pe]),m.useEffect(()=>{g===null&&W(""),typeof g=="string"&&G&&(Le?.value!==G.value||Le?.label!==G.label)&&W(G.label)},[g,G]),m.useEffect(()=>{!Be&&!Ao&&W(typeof w=="string"?w in V?V[w]?.label:ue.current[w]?.label||"":"")},[V,w]),m.useEffect(()=>{w&&w in V&&(ue.current[w]=V[w])},[V,w]);const Eo=i.jsx(v.ClearButton,{...wo,onClear:()=>{ze(null,null),W(""),Oo?.()}}),jo=go&&!!w&&!E&&!P;return i.jsxs(i.Fragment,{children:[i.jsxs(v,{store:T,__staticSelector:"Select",classNames:Ge,styles:Ke,unstyled:a,readOnly:P,size:q,attributes:Fe,keepMounted:Ve,onOptionSubmit:$=>{h?.($);const Z=xo&&V[$].value===w?null:V[$],ve=Z?Z.value:null;ve!==w&&ze(ve,Z),!Be&&W(typeof ve=="string"&&Z?.label||""),T.closeDropdown()},...O,children:[i.jsx(v.Target,{targetType:z?"input":"button",autoComplete:So,children:i.jsx(Je,{id:Me,ref:o,__defaultRightSection:i.jsx(v.Chevron,{size:q,error:$e,unstyled:a,color:_o}),__clearSection:Eo,__clearable:jo,rightSection:K,rightSectionPointerEvents:vo||"none",...de,size:q,__staticSelector:"Select",disabled:E,readOnly:P||!z,value:pe,onChange:$=>{W($.currentTarget.value),T.openDropdown(),S&&T.selectFirstOption()},onFocus:$=>{No&&z&&T.openDropdown(),u?.($)},onBlur:$=>{Ve&&T.clickSelectedOption(),z&&T.closeDropdown();const Z=typeof w=="string"&&(w in V?V[w]:ue.current[w]);W(Z&&Z.label||""),b?.($)},onClick:$=>{z?T.openDropdown():T.toggleDropdown(),x?.($)},classNames:Ge,styles:Ke,unstyled:a,pointer:!z,error:$e,attributes:Fe})}),i.jsx(xt,{data:xe,hidden:P||E,filter:ce,search:pe,limit:J,hiddenWhenEmpty:!F,withScrollArea:le,maxDropdownHeight:Q,filterOptions:!!z&&G?.label!==pe,value:w,checkIconPosition:X,withCheckIcon:f,withAlignedLabels:D,nothingFoundMessage:F,unstyled:a,labelId:de.label?`${Me}-label`:void 0,"aria-label":de.label?void 0:de["aria-label"],renderOption:ko,scrollAreaProps:Do})]}),i.jsx(v.HiddenInput,{value:w,name:N,form:I,disabled:E,...yo})]})});ho.classes={...Je.classes,...v.classes};ho.displayName="@mantine/core/Select";const Ct=[["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"}]],Nt=ye("outline","arrow-down","ArrowDown",Ct);const gt=[["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"}]],It=ye("outline","arrow-up","ArrowUp",gt);const wt=[["path",{d:"M12 5l0 14",key:"svg-0"}],["path",{d:"M5 12l14 0",key:"svg-1"}]],At=ye("outline","plus","Plus",wt);export{ae as C,Nt as I,xt as O,ho as S,It as a,At as b,Xe as c,v as d,io as e,Uo as g,ne as i,so as u};
@@ -1 +1 @@
1
- import{a5 as B,a6 as L,r as c,j as e,F as t,T as r,B as x,N as a,ah as T,E as C,af as S,W as v,ag as w,a8 as E,ac as P}from"./entry.CfgGy8wg.js";import{d as A}from"./chunk.VTMXAJC6.js";import{S as g,B as u}from"./chunk.BzM7ER7Q.js";import{I as M}from"./chunk.BV5mF0Co.js";import{T as j}from"./chunk.Cf3d2zjg.js";import{T as n}from"./chunk.D06kB6Ym.js";import{a as N,I}from"./chunk.BYw9RTNZ.js";import{I as O}from"./chunk.ClYEvjjk.js";import"./chunk.BlqFPyLh.js";const z={memory:"#69db7c",redis:"#ff6b6b",default:"#495057"},$=s=>z[s]??z.default,R=s=>s?typeof s=="number"?s<60?`${s}s`:s<3600?`${Math.floor(s/60)}m`:s<86400?`${Math.floor(s/3600)}h`:`${Math.floor(s/86400)}d`:String(s):"No TTL",D=({caches:s,selectedCache:l,onSelectCache:p,search:f,onSearchChange:b})=>{const h=c.useMemo(()=>{const i={};for(const o of s){const d=o.provider||"default";i[d]||(i[d]=[]),i[d].push(o)}return i},[s]),y=Object.keys(h).sort();return e.jsxs(g,{gap:0,h:"100%",children:[e.jsx(x,{p:"sm",style:{borderBottom:`1px solid ${a.colors.border}`},children:e.jsx(T,{placeholder:"Search caches...",leftSection:e.jsx(C,{size:14}),size:"xs",value:f,onChange:i=>b(i.target.value)})}),e.jsx(S,{style:{flex:1},children:y.map(i=>e.jsxs(x,{children:[e.jsx(r,{size:"xs",fw:600,c:"dimmed",px:"sm",py:"xs",style:{backgroundColor:a.colors.background,borderBottom:`1px solid ${a.colors.border}`,textTransform:"uppercase",letterSpacing:"0.05em"},children:i}),h[i].map(o=>{const d=l?.name===o.name,m=$(o.provider);return e.jsxs(t,{align:"center",gap:"xs",px:"sm",py:6,onClick:()=>p(o),style:{cursor:"pointer",backgroundColor:d?`${m}15`:void 0,borderLeft:d?`2px solid ${m}`:"2px solid transparent",borderBottom:`1px solid ${a.colors.border}`,opacity:o.disabled?.5:1},children:[e.jsx(v,{size:14,opacity:.5}),e.jsx(r,{size:"sm",style:{flex:1},truncate:!0,children:o.name}),o.disabled&&e.jsx(u,{size:"xs",variant:"light",color:"gray",children:"off"})]},o.name)})]},i))})]})},K=({cache:s})=>e.jsx(S,{h:"100%",p:"md",children:e.jsxs(g,{gap:"lg",children:[e.jsxs(x,{children:[e.jsx(r,{size:"sm",fw:600,mb:"xs",children:"Configuration"}),e.jsx(n,{striped:!0,highlightOnHover:!0,withTableBorder:!0,children:e.jsxs(n.Tbody,{children:[e.jsxs(n.Tr,{children:[e.jsx(n.Td,{w:150,children:e.jsx(r,{size:"sm",c:"dimmed",children:"Name"})}),e.jsx(n.Td,{children:e.jsx(r,{size:"sm",ff:"monospace",children:s.name})})]}),e.jsxs(n.Tr,{children:[e.jsx(n.Td,{children:e.jsx(r,{size:"sm",c:"dimmed",children:"Provider"})}),e.jsx(n.Td,{children:e.jsx(u,{size:"xs",variant:"light",color:s.provider==="redis"?"red":"green",children:s.provider})})]}),e.jsxs(n.Tr,{children:[e.jsx(n.Td,{children:e.jsx(r,{size:"sm",c:"dimmed",children:"TTL"})}),e.jsx(n.Td,{children:e.jsxs(t,{align:"center",gap:"xs",children:[e.jsx(N,{size:14,opacity:.5}),e.jsx(r,{size:"sm",ff:"monospace",children:R(s.ttl)})]})})]}),e.jsxs(n.Tr,{children:[e.jsx(n.Td,{children:e.jsx(r,{size:"sm",c:"dimmed",children:"Status"})}),e.jsx(n.Td,{children:e.jsx(u,{size:"xs",variant:"light",color:s.disabled?"gray":"green",children:s.disabled?"Disabled":"Enabled"})})]})]})})]}),e.jsxs(x,{children:[e.jsx(r,{size:"sm",fw:600,mb:"xs",children:"Actions"}),e.jsx(t,{gap:"sm",children:e.jsx(w,{label:"Clear all cached entries (coming soon)",children:e.jsx(E,{size:"xs",variant:"light",color:"red",leftSection:e.jsx(I,{size:14}),disabled:!0,children:"Clear All"})})})]})]})}),F=({cache:s})=>{const[l,p]=c.useState("");return e.jsxs(t,{direction:"column",h:"100%",children:[e.jsx(x,{p:"sm",style:{borderBottom:`1px solid ${a.colors.border}`},children:e.jsxs(t,{gap:"sm",align:"center",children:[e.jsx(T,{placeholder:"Filter by pattern...",leftSection:e.jsx(C,{size:14}),size:"xs",value:l,onChange:f=>p(f.target.value),style:{flex:1}}),e.jsx(w,{label:"Invalidate matching keys (coming soon)",children:e.jsx(P,{size:"sm",variant:"light",color:"orange",disabled:!0,children:e.jsx(I,{size:14})})})]})}),e.jsx(t,{align:"center",justify:"center",style:{flex:1},c:"dimmed",children:e.jsxs(g,{align:"center",gap:"xs",children:[e.jsx(O,{size:48,opacity:.3}),e.jsx(r,{size:"sm",children:"Key browser coming soon"}),e.jsxs(r,{size:"xs",c:"dimmed",children:["Browse and manage cached keys for ",s.name]})]})})]})},H=({cache:s})=>{const l=$(s.provider);return e.jsxs(t,{direction:"column",h:"100%",children:[e.jsx(x,{px:"md",py:"sm",style:{borderBottom:`1px solid ${a.colors.border}`,backgroundColor:`${l}08`},children:e.jsxs(t,{align:"center",gap:"sm",children:[e.jsx(v,{size:18,opacity:.7}),e.jsx(r,{size:"md",fw:600,children:s.name}),e.jsx(u,{size:"xs",variant:"light",color:s.provider==="redis"?"red":"green",children:s.provider}),s.disabled&&e.jsx(u,{size:"xs",variant:"light",color:"gray",children:"disabled"})]})}),e.jsxs(j,{defaultValue:"config",style:{flex:1,display:"flex",flexDirection:"column"},children:[e.jsxs(j.List,{px:"md",children:[e.jsx(j.Tab,{value:"config",children:"Config"}),e.jsx(j.Tab,{value:"keys",children:"Keys"})]}),e.jsx(j.Panel,{value:"config",style:{flex:1,overflow:"hidden"},children:e.jsx(K,{cache:s})}),e.jsx(j.Panel,{value:"keys",style:{flex:1,overflow:"hidden"},children:e.jsx(F,{cache:s})})]})]})},V=()=>e.jsx(t,{align:"center",justify:"center",h:"100%",c:"dimmed",children:e.jsxs(g,{align:"center",gap:"xs",children:[e.jsx(v,{size:48,opacity:.3}),e.jsx(r,{size:"sm",children:"Select a cache to view its configuration"})]})}),W=()=>e.jsx(t,{align:"center",justify:"center",h:"100%",c:"dimmed",children:e.jsxs(g,{align:"center",gap:"xs",children:[e.jsx(M,{size:48,opacity:.3}),e.jsx(r,{children:"No caches found"}),e.jsx(r,{size:"sm",c:"dimmed",children:"Add caches using $cache primitive to see them here"})]})}),ee=()=>{const s=B(L),[l,p]=c.useState([]),[f,b]=c.useState(!0),[h,y]=c.useState(null),[i,o]=c.useState("");c.useEffect(()=>{s.fetch("/devtools/api/metadata",{schema:{response:A}}).then(m=>{p(m.data.caches),b(!1)})},[]);const d=c.useMemo(()=>{if(!i)return l;const m=i.toLowerCase();return l.filter(k=>k.name.toLowerCase().includes(m))},[l,i]);return f?e.jsx(t,{align:"center",justify:"center",h:"100%",children:e.jsx(r,{c:"dimmed",children:"Loading..."})}):l.length===0?e.jsx(W,{}):e.jsxs(t,{h:"100%",style:{overflow:"hidden"},children:[e.jsx(x,{w:240,style:{borderRight:`1px solid ${a.colors.border}`,backgroundColor:a.colors.surface},children:e.jsx(D,{caches:d,selectedCache:h,onSelectCache:y,search:i,onSearchChange:o})}),e.jsx(x,{style:{flex:1,overflow:"hidden"},children:h?e.jsx(H,{cache:h}):e.jsx(V,{})})]})};export{ee as DevCacheInspector,ee as default};
1
+ import{a5 as B,a6 as L,r as c,j as e,F as t,T as r,B as x,N as a,ah as T,E as C,af as S,W as v,ag as w,a8 as E,ac as P}from"./entry.ETzhI2TP.js";import{d as A}from"./chunk.CVSnwZVj.js";import{S as g,B as u}from"./chunk.CEMGNgR8.js";import{I as M}from"./chunk.PvdrSA5J.js";import{T as j}from"./chunk.Dzb_dhg1.js";import{T as n}from"./chunk.ByNKWOOW.js";import{a as N,I}from"./chunk.BHxnE1kV.js";import{I as O}from"./chunk.BJnTQtYx.js";import"./chunk.BlqFPyLh.js";const z={memory:"#69db7c",redis:"#ff6b6b",default:"#495057"},$=s=>z[s]??z.default,R=s=>s?typeof s=="number"?s<60?`${s}s`:s<3600?`${Math.floor(s/60)}m`:s<86400?`${Math.floor(s/3600)}h`:`${Math.floor(s/86400)}d`:String(s):"No TTL",D=({caches:s,selectedCache:l,onSelectCache:p,search:f,onSearchChange:b})=>{const h=c.useMemo(()=>{const i={};for(const o of s){const d=o.provider||"default";i[d]||(i[d]=[]),i[d].push(o)}return i},[s]),y=Object.keys(h).sort();return e.jsxs(g,{gap:0,h:"100%",children:[e.jsx(x,{p:"sm",style:{borderBottom:`1px solid ${a.colors.border}`},children:e.jsx(T,{placeholder:"Search caches...",leftSection:e.jsx(C,{size:14}),size:"xs",value:f,onChange:i=>b(i.target.value)})}),e.jsx(S,{style:{flex:1},children:y.map(i=>e.jsxs(x,{children:[e.jsx(r,{size:"xs",fw:600,c:"dimmed",px:"sm",py:"xs",style:{backgroundColor:a.colors.background,borderBottom:`1px solid ${a.colors.border}`,textTransform:"uppercase",letterSpacing:"0.05em"},children:i}),h[i].map(o=>{const d=l?.name===o.name,m=$(o.provider);return e.jsxs(t,{align:"center",gap:"xs",px:"sm",py:6,onClick:()=>p(o),style:{cursor:"pointer",backgroundColor:d?`${m}15`:void 0,borderLeft:d?`2px solid ${m}`:"2px solid transparent",borderBottom:`1px solid ${a.colors.border}`,opacity:o.disabled?.5:1},children:[e.jsx(v,{size:14,opacity:.5}),e.jsx(r,{size:"sm",style:{flex:1},truncate:!0,children:o.name}),o.disabled&&e.jsx(u,{size:"xs",variant:"light",color:"gray",children:"off"})]},o.name)})]},i))})]})},K=({cache:s})=>e.jsx(S,{h:"100%",p:"md",children:e.jsxs(g,{gap:"lg",children:[e.jsxs(x,{children:[e.jsx(r,{size:"sm",fw:600,mb:"xs",children:"Configuration"}),e.jsx(n,{striped:!0,highlightOnHover:!0,withTableBorder:!0,children:e.jsxs(n.Tbody,{children:[e.jsxs(n.Tr,{children:[e.jsx(n.Td,{w:150,children:e.jsx(r,{size:"sm",c:"dimmed",children:"Name"})}),e.jsx(n.Td,{children:e.jsx(r,{size:"sm",ff:"monospace",children:s.name})})]}),e.jsxs(n.Tr,{children:[e.jsx(n.Td,{children:e.jsx(r,{size:"sm",c:"dimmed",children:"Provider"})}),e.jsx(n.Td,{children:e.jsx(u,{size:"xs",variant:"light",color:s.provider==="redis"?"red":"green",children:s.provider})})]}),e.jsxs(n.Tr,{children:[e.jsx(n.Td,{children:e.jsx(r,{size:"sm",c:"dimmed",children:"TTL"})}),e.jsx(n.Td,{children:e.jsxs(t,{align:"center",gap:"xs",children:[e.jsx(N,{size:14,opacity:.5}),e.jsx(r,{size:"sm",ff:"monospace",children:R(s.ttl)})]})})]}),e.jsxs(n.Tr,{children:[e.jsx(n.Td,{children:e.jsx(r,{size:"sm",c:"dimmed",children:"Status"})}),e.jsx(n.Td,{children:e.jsx(u,{size:"xs",variant:"light",color:s.disabled?"gray":"green",children:s.disabled?"Disabled":"Enabled"})})]})]})})]}),e.jsxs(x,{children:[e.jsx(r,{size:"sm",fw:600,mb:"xs",children:"Actions"}),e.jsx(t,{gap:"sm",children:e.jsx(w,{label:"Clear all cached entries (coming soon)",children:e.jsx(E,{size:"xs",variant:"light",color:"red",leftSection:e.jsx(I,{size:14}),disabled:!0,children:"Clear All"})})})]})]})}),F=({cache:s})=>{const[l,p]=c.useState("");return e.jsxs(t,{direction:"column",h:"100%",children:[e.jsx(x,{p:"sm",style:{borderBottom:`1px solid ${a.colors.border}`},children:e.jsxs(t,{gap:"sm",align:"center",children:[e.jsx(T,{placeholder:"Filter by pattern...",leftSection:e.jsx(C,{size:14}),size:"xs",value:l,onChange:f=>p(f.target.value),style:{flex:1}}),e.jsx(w,{label:"Invalidate matching keys (coming soon)",children:e.jsx(P,{size:"sm",variant:"light",color:"orange",disabled:!0,children:e.jsx(I,{size:14})})})]})}),e.jsx(t,{align:"center",justify:"center",style:{flex:1},c:"dimmed",children:e.jsxs(g,{align:"center",gap:"xs",children:[e.jsx(O,{size:48,opacity:.3}),e.jsx(r,{size:"sm",children:"Key browser coming soon"}),e.jsxs(r,{size:"xs",c:"dimmed",children:["Browse and manage cached keys for ",s.name]})]})})]})},H=({cache:s})=>{const l=$(s.provider);return e.jsxs(t,{direction:"column",h:"100%",children:[e.jsx(x,{px:"md",py:"sm",style:{borderBottom:`1px solid ${a.colors.border}`,backgroundColor:`${l}08`},children:e.jsxs(t,{align:"center",gap:"sm",children:[e.jsx(v,{size:18,opacity:.7}),e.jsx(r,{size:"md",fw:600,children:s.name}),e.jsx(u,{size:"xs",variant:"light",color:s.provider==="redis"?"red":"green",children:s.provider}),s.disabled&&e.jsx(u,{size:"xs",variant:"light",color:"gray",children:"disabled"})]})}),e.jsxs(j,{defaultValue:"config",style:{flex:1,display:"flex",flexDirection:"column"},children:[e.jsxs(j.List,{px:"md",children:[e.jsx(j.Tab,{value:"config",children:"Config"}),e.jsx(j.Tab,{value:"keys",children:"Keys"})]}),e.jsx(j.Panel,{value:"config",style:{flex:1,overflow:"hidden"},children:e.jsx(K,{cache:s})}),e.jsx(j.Panel,{value:"keys",style:{flex:1,overflow:"hidden"},children:e.jsx(F,{cache:s})})]})]})},V=()=>e.jsx(t,{align:"center",justify:"center",h:"100%",c:"dimmed",children:e.jsxs(g,{align:"center",gap:"xs",children:[e.jsx(v,{size:48,opacity:.3}),e.jsx(r,{size:"sm",children:"Select a cache to view its configuration"})]})}),W=()=>e.jsx(t,{align:"center",justify:"center",h:"100%",c:"dimmed",children:e.jsxs(g,{align:"center",gap:"xs",children:[e.jsx(M,{size:48,opacity:.3}),e.jsx(r,{children:"No caches found"}),e.jsx(r,{size:"sm",c:"dimmed",children:"Add caches using $cache primitive to see them here"})]})}),ee=()=>{const s=B(L),[l,p]=c.useState([]),[f,b]=c.useState(!0),[h,y]=c.useState(null),[i,o]=c.useState("");c.useEffect(()=>{s.fetch("/devtools/api/metadata",{schema:{response:A}}).then(m=>{p(m.data.caches),b(!1)})},[]);const d=c.useMemo(()=>{if(!i)return l;const m=i.toLowerCase();return l.filter(k=>k.name.toLowerCase().includes(m))},[l,i]);return f?e.jsx(t,{align:"center",justify:"center",h:"100%",children:e.jsx(r,{c:"dimmed",children:"Loading..."})}):l.length===0?e.jsx(W,{}):e.jsxs(t,{h:"100%",style:{overflow:"hidden"},children:[e.jsx(x,{w:240,style:{borderRight:`1px solid ${a.colors.border}`,backgroundColor:a.colors.surface},children:e.jsx(D,{caches:d,selectedCache:h,onSelectCache:y,search:i,onSearchChange:o})}),e.jsx(x,{style:{flex:1,overflow:"hidden"},children:h?e.jsx(H,{cache:h}):e.jsx(V,{})})]})};export{ee as DevCacheInspector,ee as default};
@@ -1 +1 @@
1
- import{f as w,d as I,o as N,q as S,j as o,B as k,as as z,t as $,x as q}from"./entry.CfgGy8wg.js";var x={root:"m_66836ed3",wrapper:"m_a5d60502",body:"m_667c2793",title:"m_6a03f287",label:"m_698f4f23",icon:"m_667f2a6a",message:"m_7fa78076",closeButton:"m_87f54839"};const E=$((t,{radius:l,color:e,variant:a,autoContrast:d})=>{const r=t.variantColorResolver({color:e||t.primaryColor,theme:t,variant:a||"light",autoContrast:d});return{root:{"--alert-radius":l===void 0?void 0:q(l),"--alert-bg":e||a?r.background:void 0,"--alert-color":r.color,"--alert-bd":e||a?r.border:void 0}}}),j=w((t,l)=>{const e=I("Alert",null,t),{classNames:a,className:d,style:r,styles:f,unstyled:u,vars:h,radius:L,color:P,title:i,children:n,id:_,icon:b,withCloseButton:m,onClose:g,closeButtonLabel:B,variant:c,autoContrast:V,role:C,attributes:A,...R}=e,s=N({name:"Alert",classes:x,props:e,className:d,style:r,classNames:a,styles:f,unstyled:u,attributes:A,vars:h,varsResolver:E}),v=S(_),p=i&&`${v}-title`||void 0,y=`${v}-body`;return o.jsx(k,{id:v,...s("root",{variant:c}),variant:c,ref:l,role:C||"alert",...R,"aria-describedby":n?y:void 0,"aria-labelledby":i?p:void 0,children:o.jsxs("div",{...s("wrapper"),children:[b&&o.jsx("div",{...s("icon"),children:b}),o.jsxs("div",{...s("body"),children:[i&&o.jsx("div",{...s("title"),"data-with-close-button":m||void 0,children:o.jsx("span",{id:p,...s("label"),children:i})}),n&&o.jsx("div",{id:y,...s("message"),"data-variant":c,children:n})]}),m&&o.jsx(z,{...s("closeButton"),onClick:g,variant:"transparent",size:16,iconSize:16,"aria-label":B,unstyled:u})]})})});j.classes=x;j.displayName="@mantine/core/Alert";export{j as A};
1
+ import{f as w,d as I,o as N,q as S,j as o,B as k,as as z,t as $,x as q}from"./entry.ETzhI2TP.js";var x={root:"m_66836ed3",wrapper:"m_a5d60502",body:"m_667c2793",title:"m_6a03f287",label:"m_698f4f23",icon:"m_667f2a6a",message:"m_7fa78076",closeButton:"m_87f54839"};const E=$((t,{radius:l,color:e,variant:a,autoContrast:d})=>{const r=t.variantColorResolver({color:e||t.primaryColor,theme:t,variant:a||"light",autoContrast:d});return{root:{"--alert-radius":l===void 0?void 0:q(l),"--alert-bg":e||a?r.background:void 0,"--alert-color":r.color,"--alert-bd":e||a?r.border:void 0}}}),j=w((t,l)=>{const e=I("Alert",null,t),{classNames:a,className:d,style:r,styles:f,unstyled:u,vars:h,radius:L,color:P,title:i,children:n,id:_,icon:b,withCloseButton:m,onClose:g,closeButtonLabel:B,variant:c,autoContrast:V,role:C,attributes:A,...R}=e,s=N({name:"Alert",classes:x,props:e,className:d,style:r,classNames:a,styles:f,unstyled:u,attributes:A,vars:h,varsResolver:E}),v=S(_),p=i&&`${v}-title`||void 0,y=`${v}-body`;return o.jsx(k,{id:v,...s("root",{variant:c}),variant:c,ref:l,role:C||"alert",...R,"aria-describedby":n?y:void 0,"aria-labelledby":i?p:void 0,children:o.jsxs("div",{...s("wrapper"),children:[b&&o.jsx("div",{...s("icon"),children:b}),o.jsxs("div",{...s("body"),children:[i&&o.jsx("div",{...s("title"),"data-with-close-button":m||void 0,children:o.jsx("span",{id:p,...s("label"),children:i})}),n&&o.jsx("div",{id:y,...s("message"),"data-variant":c,children:n})]}),m&&o.jsx(z,{...s("closeButton"),onClick:g,variant:"transparent",size:16,iconSize:16,"aria-label":B,unstyled:u})]})})});j.classes=x;j.displayName="@mantine/core/Alert";export{j as A};