@mcp-use/inspector 20.0.0-beta.13 → 20.0.0-beta.15

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 (145) hide show
  1. package/README.md +4 -4
  2. package/dist/cdn/inspector.js +76858 -9272
  3. package/dist/cli.js +69 -24
  4. package/dist/server/asset-urls.d.ts +1 -4
  5. package/dist/server/asset-urls.d.ts.map +1 -1
  6. package/dist/server/asset-urls.js +3 -7
  7. package/dist/server/cdn-shell.d.ts.map +1 -1
  8. package/dist/server/cdn-shell.js +3 -3
  9. package/dist/server/{chunk-H6ZCIKBS.js → chunk-JZT7N2BJ.js} +10 -15
  10. package/dist/server/{chunk-YAYRN4DW.js → chunk-WNQGHIZ3.js} +61 -15
  11. package/dist/server/{chunk-QQP554HG.js → chunk-XKCUJ6ZJ.js} +1 -1
  12. package/dist/server/{chunk-2XQWLYOZ.js → chunk-ZPGABKXL.js} +1 -1
  13. package/dist/server/cli.js +3 -3
  14. package/dist/server/index.js +4 -4
  15. package/dist/server/middleware.js +4 -4
  16. package/dist/server/version.js +1 -1
  17. package/dist/web/assets/index-Bqfsh_Rp.js +643 -0
  18. package/dist/web/index.html +2 -10
  19. package/package.json +2 -2
  20. package/dist/cdn/AnimatePresence-D1bZ5_-l.js +0 -394
  21. package/dist/cdn/ChatTab-CokP5UlL.js +0 -6811
  22. package/dist/cdn/CheckboxIndicator-BjF73mGX.js +0 -252
  23. package/dist/cdn/ConnectionSettingsForm-CXCKdMZh.js +0 -929
  24. package/dist/cdn/ConnectionSettingsTab-Ag4WD55h.js +0 -151
  25. package/dist/cdn/ElicitationTab-PEmEDvC5.js +0 -655
  26. package/dist/cdn/FormContext-NtUiZclE.js +0 -135
  27. package/dist/cdn/InspectorContext-BBKCdfmK.js +0 -123
  28. package/dist/cdn/JSONDisplay-BJqMz7Ny.js +0 -324
  29. package/dist/cdn/ListTabHeader-DzmTtN1e.js +0 -89
  30. package/dist/cdn/MCPAppsDebugControls-C01DPDJv.js +0 -2174
  31. package/dist/cdn/ManufactOAuthCallback-ChbbjFIT.js +0 -31
  32. package/dist/cdn/MarkdownRenderer-CrG5JHAZ.js +0 -3610
  33. package/dist/cdn/McpAppsViewPanel-07_iHrne.js +0 -56
  34. package/dist/cdn/NotificationsTab-B7uebqMV.js +0 -290
  35. package/dist/cdn/OAuthCallback-Cku-R2uM.js +0 -58
  36. package/dist/cdn/PromptsTab-98ugje_q.js +0 -902
  37. package/dist/cdn/ResourcesTab-CxHilZjd.js +0 -566
  38. package/dist/cdn/SamplingTab-gOUjg7bt.js +0 -659
  39. package/dist/cdn/ServerMetadataTab-BM3VhSLf.js +0 -244
  40. package/dist/cdn/StatusIcon-Q3n3YRtE.js +0 -65
  41. package/dist/cdn/ToolsTab-Dm6n5OxE.js +0 -2045
  42. package/dist/cdn/ViewPreview-CCKWd8Qt.js +0 -238
  43. package/dist/cdn/WidgetDebugContext-B6yoOVVV.js +0 -314
  44. package/dist/cdn/WidgetWrapper-BlbQAh_X.js +0 -12
  45. package/dist/cdn/basePath-B8HuhIMu.js +0 -25
  46. package/dist/cdn/bell-GrTZcnD2.js +0 -10
  47. package/dist/cdn/browser-DG2Z8392.js +0 -42
  48. package/dist/cdn/brush-CelVvMGp.js +0 -17
  49. package/dist/cdn/button-CB4uOoUV.js +0 -2509
  50. package/dist/cdn/card-BA-DQk-G.js +0 -41
  51. package/dist/cdn/cfWorker-Bxcs9rNe.js +0 -10799
  52. package/dist/cdn/checkbox-kwVa4gRX.js +0 -20
  53. package/dist/cdn/chunk-QUQL4437-XnDcYQEx.js +0 -1508
  54. package/dist/cdn/clock-YMF8Gtw5.js +0 -12
  55. package/dist/cdn/code-C8sN2OGR.js +0 -10
  56. package/dist/cdn/createLucideIcon-BONxC1L5.js +0 -213
  57. package/dist/cdn/dialog-CJGnC5Ag.js +0 -1028
  58. package/dist/cdn/dist-C-AJLM5q.js +0 -2307
  59. package/dist/cdn/dist-CTJnCYmk.js +0 -616
  60. package/dist/cdn/external-link-Bo4lQxr1.js +0 -17
  61. package/dist/cdn/eye-pSGG7nvf.js +0 -29
  62. package/dist/cdn/folder-open-aM8CPtBO.js +0 -7
  63. package/dist/cdn/hash-DDs2vE1k.js +0 -33
  64. package/dist/cdn/history-BfUFpL1d.js +0 -17
  65. package/dist/cdn/index-browser-CCygKh3z.js +0 -1853
  66. package/dist/cdn/info-BMkB68mB.js +0 -19
  67. package/dist/cdn/input-BCpgLXU1.js +0 -9654
  68. package/dist/cdn/inspector-settings-layout-0VDsjeqb.js +0 -4
  69. package/dist/cdn/label-A0UGV8FE.js +0 -60
  70. package/dist/cdn/loader-circle-BKRHJEB7.js +0 -7
  71. package/dist/cdn/manufact-auth-BQMHhbLV.js +0 -423
  72. package/dist/cdn/maximize-2-DdrB_spi.js +0 -21
  73. package/dist/cdn/maximize-hSOCz133.js +0 -21
  74. package/dist/cdn/message-square-D3tKB3uJ.js +0 -7
  75. package/dist/cdn/not-found-BajFyZpp.js +0 -32
  76. package/dist/cdn/play-B1leulYf.js +0 -7
  77. package/dist/cdn/providerMeta-CjGU4rID.js +0 -436
  78. package/dist/cdn/react-BIs9pQ3H.js +0 -926
  79. package/dist/cdn/react-BiVEwoxA.js +0 -5421
  80. package/dist/cdn/refresh-cw-CyvXrS91.js +0 -21
  81. package/dist/cdn/save-CmdEPUAm.js +0 -34
  82. package/dist/cdn/schemaHelpers-DTV38jGq.js +0 -16
  83. package/dist/cdn/select-CCFHjOGk.js +0 -2595
  84. package/dist/cdn/servers-Dd0Vcp81.js +0 -30
  85. package/dist/cdn/shared-CJVHJhag.js +0 -1700
  86. package/dist/cdn/sheet-oyq1mIyg.js +0 -2078
  87. package/dist/cdn/sparkles-CxeZpVtX.js +0 -23
  88. package/dist/cdn/spinner-Be1GlSGX.js +0 -15
  89. package/dist/cdn/square-check-big-C_4wbfwF.js +0 -10
  90. package/dist/cdn/switch-DHXEA_N5.js +0 -665
  91. package/dist/cdn/tabs-subtle-Dubd6Kj8.js +0 -788
  92. package/dist/cdn/telemetry-DyrOzsAR.js +0 -208
  93. package/dist/cdn/textarea-CwmI8_uI.js +0 -14
  94. package/dist/cdn/trash-2-BhumJAFE.js +0 -25
  95. package/dist/cdn/useAriaLabelledBy-Cra6w3YY.js +0 -30
  96. package/dist/cdn/useCompositeItem-Dhnm-7el.js +0 -26
  97. package/dist/cdn/useConfig-BTDwEhra.js +0 -235
  98. package/dist/cdn/useSavedRequests-mSIsDd4c.js +0 -51
  99. package/dist/cdn/useViewHostProps-C5NRGTzJ.js +0 -364
  100. package/dist/cdn/wrench-DvK20LUT.js +0 -7
  101. package/dist/cdn/x-EilKPiCX.js +0 -10
  102. package/dist/cdn/zap-0Wr9QO7N.js +0 -10
  103. package/dist/web/assets/AnimatePresence-FfDQQNFJ.js +0 -9
  104. package/dist/web/assets/ChatTab-BEfFVccY.js +0 -18
  105. package/dist/web/assets/ConnectionSettingsTab-Bb_6a0Iv.js +0 -1
  106. package/dist/web/assets/ElicitationTab-BP4GKiyX.js +0 -1
  107. package/dist/web/assets/FormContext-sV-yByKz.js +0 -1
  108. package/dist/web/assets/ListTabHeader-CrGae306.js +0 -1
  109. package/dist/web/assets/MCPAppsDebugControls-BIyFdqol.js +0 -34
  110. package/dist/web/assets/ManufactOAuthCallback-C7FmBqhm.js +0 -1
  111. package/dist/web/assets/MarkdownRenderer-Dh79xxF3.js +0 -47
  112. package/dist/web/assets/McpAppsViewPanel-eC3j1-Vq.js +0 -1
  113. package/dist/web/assets/NotificationsTab-BiZcGnsE.js +0 -1
  114. package/dist/web/assets/OAuthCallback-0QMKMr_h.js +0 -1
  115. package/dist/web/assets/PromptsTab-DP25ApgP.js +0 -15
  116. package/dist/web/assets/ResourcesTab-CptaN3NT.js +0 -2
  117. package/dist/web/assets/SamplingTab-BcdnfiwQ.js +0 -1
  118. package/dist/web/assets/ServerMetadataTab-DfM-a-Kp.js +0 -1
  119. package/dist/web/assets/ToolsTab-hSGwy5-P.js +0 -8
  120. package/dist/web/assets/ViewPreview-r5Me72Dm.js +0 -1
  121. package/dist/web/assets/WidgetWrapper-cv_BM1bY.js +0 -1
  122. package/dist/web/assets/brush-DX0UZ_pI.js +0 -1
  123. package/dist/web/assets/button-C8Xa2k4x.js +0 -1
  124. package/dist/web/assets/checkbox-CiCqaf9B.js +0 -1
  125. package/dist/web/assets/code-B14rVdNt.js +0 -1
  126. package/dist/web/assets/createLucideIcon-BEHeJH0M.js +0 -1
  127. package/dist/web/assets/dist-igO5zKmw.js +0 -21
  128. package/dist/web/assets/index-lCF-0iyi.js +0 -499
  129. package/dist/web/assets/input-C0OQCUZy.js +0 -1
  130. package/dist/web/assets/inspector-settings-layout-yjKRJDai.js +0 -1
  131. package/dist/web/assets/label-CI7JWQOo.js +0 -1
  132. package/dist/web/assets/maximize-2-Br1WQzT2.js +0 -1
  133. package/dist/web/assets/maximize-CJNgRe6S.js +0 -1
  134. package/dist/web/assets/react-CU_d2d5K.js +0 -1
  135. package/dist/web/assets/refresh-cw-B5iaAZKn.js +0 -1
  136. package/dist/web/assets/save-TM6fvNrt.js +0 -1
  137. package/dist/web/assets/schemaHelpers-DLNTQr_6.js +0 -1
  138. package/dist/web/assets/select-D6jzbLJn.js +0 -1
  139. package/dist/web/assets/shared-ChslWC1c.js +0 -1
  140. package/dist/web/assets/sparkles-BGYTDThM.js +0 -1
  141. package/dist/web/assets/tabs-subtle-BqKfSXAk.js +0 -1
  142. package/dist/web/assets/textarea-CRTXuRmE.js +0 -1
  143. package/dist/web/assets/useConfig-BoaEj10z.js +0 -1
  144. package/dist/web/assets/useViewHostProps-BUcH84Z-.js +0 -1
  145. package/dist/web/assets/zap-BDWHCVHU.js +0 -1
@@ -1,1028 +0,0 @@
1
- import { s as e, t } from "./react-BIs9pQ3H.js";
2
- import { Bn as n, Dt as r, En as i, G as a, It as o, K as s, Mn as c, Nn as l, Pt as u, Tt as d, Wn as f, _t as p, ar as m, at as h, dt as g, f as _, gt as v, hn as y, ht as b, it as x, lt as S, mn as C, mt as w, nr as T, or as E, ot as D, pt as O, rr as k, rt as ee, s as A, st as te, ut as ne, wt as j, yt as re } from "./input-BCpgLXU1.js";
3
- import { n as ie, t as M } from "./createLucideIcon-BONxC1L5.js";
4
- import { H as ae, U as N, a as P, d as oe, m as F, s as I, t as se } from "./button-CB4uOoUV.js";
5
- import { l as ce } from "./AnimatePresence-D1bZ5_-l.js";
6
- import { T as le, b as ue, d as de, f as fe, g as pe, u as me, v as he, w as ge, y as _e } from "./select-CCFHjOGk.js";
7
- import { t as ve } from "./bell-GrTZcnD2.js";
8
- import { a as ye, i as be } from "./browser-DG2Z8392.js";
9
- import { t as xe } from "./clock-YMF8Gtw5.js";
10
- import { t as Se } from "./play-B1leulYf.js";
11
- import { t as Ce } from "./x-EilKPiCX.js";
12
- var we = M("arrow-left", [["path", {
13
- d: "m12 19-7-7 7-7",
14
- key: "1l729n"
15
- }], ["path", {
16
- d: "M19 12H5",
17
- key: "x3x0zl"
18
- }]]), Te = M("arrow-right", [["path", {
19
- d: "M5 12h14",
20
- key: "1ays0h"
21
- }], ["path", {
22
- d: "m12 5 7 7-7 7",
23
- key: "xquz4c"
24
- }]]), Ee = M("arrow-up", [["path", {
25
- d: "m5 12 7-7 7 7",
26
- key: "hav0vg"
27
- }], ["path", {
28
- d: "M12 19V5",
29
- key: "x0mq9r"
30
- }]]), De = M("brain", [
31
- ["path", {
32
- d: "M12 18V5",
33
- key: "adv99a"
34
- }],
35
- ["path", {
36
- d: "M15 13a4.17 4.17 0 0 1-3-4 4.17 4.17 0 0 1-3 4",
37
- key: "1e3is1"
38
- }],
39
- ["path", {
40
- d: "M17.598 6.5A3 3 0 1 0 12 5a3 3 0 1 0-5.598 1.5",
41
- key: "1gqd8o"
42
- }],
43
- ["path", {
44
- d: "M17.997 5.125a4 4 0 0 1 2.526 5.77",
45
- key: "iwvgf7"
46
- }],
47
- ["path", {
48
- d: "M18 18a4 4 0 0 0 2-7.464",
49
- key: "efp6ie"
50
- }],
51
- ["path", {
52
- d: "M19.967 17.483A4 4 0 1 1 12 18a4 4 0 1 1-7.967-.517",
53
- key: "1gq6am"
54
- }],
55
- ["path", {
56
- d: "M6 18a4 4 0 0 1-2-7.464",
57
- key: "k1g0md"
58
- }],
59
- ["path", {
60
- d: "M6.003 5.125a4 4 0 0 0-2.526 5.77",
61
- key: "q97ue3"
62
- }]
63
- ]), L = M("chevron-down", [["path", {
64
- d: "m6 9 6 6 6-6",
65
- key: "qrunsl"
66
- }]]), Oe = M("circle", [["circle", {
67
- cx: "12",
68
- cy: "12",
69
- r: "10",
70
- key: "1mglay"
71
- }]]), ke = M("corner-down-right", [["path", {
72
- d: "m15 10 5 5-5 5",
73
- key: "qqa56n"
74
- }], ["path", {
75
- d: "M4 4v7a4 4 0 0 0 4 4h12",
76
- key: "z08zvw"
77
- }]]), Ae = M("dot", [["circle", {
78
- cx: "12.1",
79
- cy: "12.1",
80
- r: "1",
81
- key: "18d7e5"
82
- }]]), je = M("globe", [
83
- ["circle", {
84
- cx: "12",
85
- cy: "12",
86
- r: "10",
87
- key: "1mglay"
88
- }],
89
- ["path", {
90
- d: "M12 2a14.5 14.5 0 0 0 0 20 14.5 14.5 0 0 0 0-20",
91
- key: "13o1zl"
92
- }],
93
- ["path", {
94
- d: "M2 12h20",
95
- key: "9i4pu4"
96
- }]
97
- ]), Me = M("heart", [["path", {
98
- d: "M2 9.5a5.5 5.5 0 0 1 9.591-3.676.56.56 0 0 0 .818 0A5.49 5.49 0 0 1 22 9.5c0 2.29-1.5 4-3 5.5l-5.492 5.313a2 2 0 0 1-3 .019L5 15c-1.5-1.5-3-3.2-3-5.5",
99
- key: "mvr1a0"
100
- }]]), Ne = M("house", [["path", {
101
- d: "M15 21v-8a1 1 0 0 0-1-1h-4a1 1 0 0 0-1 1v8",
102
- key: "5wwlr5"
103
- }], ["path", {
104
- d: "M3 10a2 2 0 0 1 .709-1.528l7-6a2 2 0 0 1 2.582 0l7 6A2 2 0 0 1 21 10v9a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2z",
105
- key: "r6nss1"
106
- }]]), Pe = M("image", [
107
- ["rect", {
108
- width: "18",
109
- height: "18",
110
- x: "3",
111
- y: "3",
112
- rx: "2",
113
- ry: "2",
114
- key: "1m3agn"
115
- }],
116
- ["circle", {
117
- cx: "9",
118
- cy: "9",
119
- r: "2",
120
- key: "af1f0g"
121
- }],
122
- ["path", {
123
- d: "m21 15-3.086-3.086a2 2 0 0 0-2.828 0L6 21",
124
- key: "1xmnt7"
125
- }]
126
- ]), Fe = M("inbox", [["polyline", {
127
- points: "22 12 16 12 14 15 10 15 8 12 2 12",
128
- key: "o97t9d"
129
- }], ["path", {
130
- d: "M5.45 5.11 2 12v6a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2v-6l-3.45-6.89A2 2 0 0 0 16.76 4H7.24a2 2 0 0 0-1.79 1.11z",
131
- key: "oot6mr"
132
- }]]), Ie = M("lightbulb", [
133
- ["path", {
134
- d: "M15 14c.2-1 .7-1.7 1.5-2.5 1-.9 1.5-2.2 1.5-3.5A6 6 0 0 0 6 8c0 1 .2 2.2 1.5 3.5.7.7 1.3 1.5 1.5 2.5",
135
- key: "1gvzjb"
136
- }],
137
- ["path", {
138
- d: "M9 18h6",
139
- key: "x1upvd"
140
- }],
141
- ["path", {
142
- d: "M10 22h4",
143
- key: "ceow96"
144
- }]
145
- ]), Le = M("link", [["path", {
146
- d: "M10 13a5 5 0 0 0 7.54.54l3-3a5 5 0 0 0-7.07-7.07l-1.72 1.71",
147
- key: "1cjeqo"
148
- }], ["path", {
149
- d: "M14 11a5 5 0 0 0-7.54-.54l-3 3a5 5 0 0 0 7.07 7.07l1.71-1.71",
150
- key: "19qd67"
151
- }]]), Re = M("loader", [
152
- ["path", {
153
- d: "M12 2v4",
154
- key: "3427ic"
155
- }],
156
- ["path", {
157
- d: "m16.2 7.8 2.9-2.9",
158
- key: "r700ao"
159
- }],
160
- ["path", {
161
- d: "M18 12h4",
162
- key: "wj9ykh"
163
- }],
164
- ["path", {
165
- d: "m16.2 16.2 2.9 2.9",
166
- key: "1bxg5t"
167
- }],
168
- ["path", {
169
- d: "M12 18v4",
170
- key: "jadmvz"
171
- }],
172
- ["path", {
173
- d: "m4.9 19.1 2.9-2.9",
174
- key: "bwix9q"
175
- }],
176
- ["path", {
177
- d: "M2 12h4",
178
- key: "j09sii"
179
- }],
180
- ["path", {
181
- d: "m4.9 4.9 2.9 2.9",
182
- key: "giyufr"
183
- }]
184
- ]), ze = M("lock", [["rect", {
185
- width: "18",
186
- height: "11",
187
- x: "3",
188
- y: "11",
189
- rx: "2",
190
- ry: "2",
191
- key: "1w4ew1"
192
- }], ["path", {
193
- d: "M7 11V7a5 5 0 0 1 10 0v4",
194
- key: "fwvmzm"
195
- }]]), Be = M("mail", [["path", {
196
- d: "m22 7-8.991 5.727a2 2 0 0 1-2.009 0L2 7",
197
- key: "132q7q"
198
- }], ["rect", {
199
- x: "2",
200
- y: "4",
201
- width: "20",
202
- height: "16",
203
- rx: "2",
204
- key: "izxlao"
205
- }]]), Ve = M("menu", [
206
- ["path", {
207
- d: "M4 5h16",
208
- key: "1tepv9"
209
- }],
210
- ["path", {
211
- d: "M4 12h16",
212
- key: "1lakjw"
213
- }],
214
- ["path", {
215
- d: "M4 19h16",
216
- key: "1djgab"
217
- }]
218
- ]), He = M("message-circle", [["path", {
219
- d: "M2.992 16.342a2 2 0 0 1 .094 1.167l-1.065 3.29a1 1 0 0 0 1.236 1.168l3.413-.998a2 2 0 0 1 1.099.092 10 10 0 1 0-4.777-4.719",
220
- key: "1sd12s"
221
- }]]), Ue = M("monitor", [
222
- ["rect", {
223
- width: "20",
224
- height: "14",
225
- x: "2",
226
- y: "3",
227
- rx: "2",
228
- key: "48i651"
229
- }],
230
- ["line", {
231
- x1: "8",
232
- x2: "16",
233
- y1: "21",
234
- y2: "21",
235
- key: "1svkeh"
236
- }],
237
- ["line", {
238
- x1: "12",
239
- x2: "12",
240
- y1: "17",
241
- y2: "21",
242
- key: "vw1qmm"
243
- }]
244
- ]), We = M("moon", [["path", {
245
- d: "M20.985 12.486a9 9 0 1 1-9.473-9.472c.405-.022.617.46.402.803a6 6 0 0 0 8.268 8.268c.344-.215.825-.004.803.401",
246
- key: "kfwtm"
247
- }]]), Ge = M("paintbrush", [
248
- ["path", {
249
- d: "m14.622 17.897-10.68-2.913",
250
- key: "vj2p1u"
251
- }],
252
- ["path", {
253
- d: "M18.376 2.622a1 1 0 1 1 3.002 3.002L17.36 9.643a.5.5 0 0 0 0 .707l.944.944a2.41 2.41 0 0 1 0 3.408l-.944.944a.5.5 0 0 1-.707 0L8.354 7.348a.5.5 0 0 1 0-.707l.944-.944a2.41 2.41 0 0 1 3.408 0l.944.944a.5.5 0 0 0 .707 0z",
254
- key: "18tc5c"
255
- }],
256
- ["path", {
257
- d: "M9 8c-1.804 2.71-3.97 3.46-6.583 3.948a.507.507 0 0 0-.302.819l7.32 8.883a1 1 0 0 0 1.185.204C12.735 20.405 16 16.792 16 15",
258
- key: "ytzfxy"
259
- }]
260
- ]), Ke = M("palette", [
261
- ["path", {
262
- d: "M12 22a1 1 0 0 1 0-20 10 9 0 0 1 10 9 5 5 0 0 1-5 5h-2.25a1.75 1.75 0 0 0-1.4 2.8l.3.4a1.75 1.75 0 0 1-1.4 2.8z",
263
- key: "e79jfc"
264
- }],
265
- ["circle", {
266
- cx: "13.5",
267
- cy: "6.5",
268
- r: ".5",
269
- fill: "currentColor",
270
- key: "1okk4w"
271
- }],
272
- ["circle", {
273
- cx: "17.5",
274
- cy: "10.5",
275
- r: ".5",
276
- fill: "currentColor",
277
- key: "f64h9f"
278
- }],
279
- ["circle", {
280
- cx: "6.5",
281
- cy: "12.5",
282
- r: ".5",
283
- fill: "currentColor",
284
- key: "qy21gx"
285
- }],
286
- ["circle", {
287
- cx: "8.5",
288
- cy: "7.5",
289
- r: ".5",
290
- fill: "currentColor",
291
- key: "fotxhn"
292
- }]
293
- ]), qe = M("pause", [["rect", {
294
- x: "14",
295
- y: "3",
296
- width: "5",
297
- height: "18",
298
- rx: "1",
299
- key: "kaeet6"
300
- }], ["rect", {
301
- x: "5",
302
- y: "3",
303
- width: "5",
304
- height: "18",
305
- rx: "1",
306
- key: "1wsw3u"
307
- }]]), Je = M("pencil", [["path", {
308
- d: "M21.174 6.812a1 1 0 0 0-3.986-3.987L3.842 16.174a2 2 0 0 0-.5.83l-1.321 4.352a.5.5 0 0 0 .623.622l4.353-1.32a2 2 0 0 0 .83-.497z",
309
- key: "1a8usu"
310
- }], ["path", {
311
- d: "m15 5 4 4",
312
- key: "1mk7zo"
313
- }]]), Ye = M("pipette", [
314
- ["path", {
315
- d: "m12 9-8.414 8.414A2 2 0 0 0 3 18.828v1.344a2 2 0 0 1-.586 1.414A2 2 0 0 1 3.828 21h1.344a2 2 0 0 0 1.414-.586L15 12",
316
- key: "1y3wsu"
317
- }],
318
- ["path", {
319
- d: "m18 9 .4.4a1 1 0 1 1-3 3l-3.8-3.8a1 1 0 1 1 3-3l.4.4 3.4-3.4a1 1 0 1 1 3 3z",
320
- key: "110lr1"
321
- }],
322
- ["path", {
323
- d: "m2 22 .414-.414",
324
- key: "jhxm08"
325
- }]
326
- ]), Xe = M("plus", [["path", {
327
- d: "M5 12h14",
328
- key: "1ays0h"
329
- }], ["path", {
330
- d: "M12 5v14",
331
- key: "s699le"
332
- }]]), Ze = M("rectangle-horizontal", [["rect", {
333
- width: "20",
334
- height: "12",
335
- x: "2",
336
- y: "6",
337
- rx: "2",
338
- key: "9lu3g6"
339
- }]]), Qe = M("rocket", [
340
- ["path", {
341
- d: "M4.5 16.5c-1.5 1.26-2 5-2 5s3.74-.5 5-2c.71-.84.7-2.13-.09-2.91a2.18 2.18 0 0 0-2.91-.09z",
342
- key: "m3kijz"
343
- }],
344
- ["path", {
345
- d: "m12 15-3-3a22 22 0 0 1 2-3.95A12.88 12.88 0 0 1 22 2c0 2.72-.78 7.5-6 11a22.35 22.35 0 0 1-4 2z",
346
- key: "1fmvmk"
347
- }],
348
- ["path", {
349
- d: "M9 12H4s.55-3.03 2-4c1.62-1.08 5 0 5 0",
350
- key: "1f8sc4"
351
- }],
352
- ["path", {
353
- d: "M12 15v5s3.03-.55 4-2c1.08-1.62 0-5 0-5",
354
- key: "qeys4"
355
- }]
356
- ]), $e = M("rotate-ccw", [["path", {
357
- d: "M3 12a9 9 0 1 0 9-9 9.75 9.75 0 0 0-6.74 2.74L3 8",
358
- key: "1357e3"
359
- }], ["path", {
360
- d: "M3 3v5h5",
361
- key: "1xhq8a"
362
- }]]), et = M("settings", [["path", {
363
- d: "M9.671 4.136a2.34 2.34 0 0 1 4.659 0 2.34 2.34 0 0 0 3.319 1.915 2.34 2.34 0 0 1 2.33 4.033 2.34 2.34 0 0 0 0 3.831 2.34 2.34 0 0 1-2.33 4.033 2.34 2.34 0 0 0-3.319 1.915 2.34 2.34 0 0 1-4.659 0 2.34 2.34 0 0 0-3.32-1.915 2.34 2.34 0 0 1-2.33-4.033 2.34 2.34 0 0 0 0-3.831A2.34 2.34 0 0 1 6.35 6.051a2.34 2.34 0 0 0 3.319-1.915",
364
- key: "1i5ecw"
365
- }], ["circle", {
366
- cx: "12",
367
- cy: "12",
368
- r: "3",
369
- key: "1v7zrd"
370
- }]]), tt = M("shield", [["path", {
371
- d: "M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z",
372
- key: "oel41y"
373
- }]]), nt = M("skip-forward", [["path", {
374
- d: "M21 4v16",
375
- key: "7j8fe9"
376
- }], ["path", {
377
- d: "M6.029 4.285A2 2 0 0 0 3 6v12a2 2 0 0 0 3.029 1.715l9.997-5.998a2 2 0 0 0 .003-3.432z",
378
- key: "zs4d6"
379
- }]]), rt = M("square-library", [
380
- ["rect", {
381
- width: "18",
382
- height: "18",
383
- x: "3",
384
- y: "3",
385
- rx: "2",
386
- key: "afitv7"
387
- }],
388
- ["path", {
389
- d: "M7 7v10",
390
- key: "d5nglc"
391
- }],
392
- ["path", {
393
- d: "M11 7v10",
394
- key: "pptsnr"
395
- }],
396
- ["path", {
397
- d: "m15 7 2 10",
398
- key: "1m7qm5"
399
- }]
400
- ]), it = M("star", [["path", {
401
- d: "M11.525 2.295a.53.53 0 0 1 .95 0l2.31 4.679a2.123 2.123 0 0 0 1.595 1.16l5.166.756a.53.53 0 0 1 .294.904l-3.736 3.638a2.123 2.123 0 0 0-.611 1.878l.882 5.14a.53.53 0 0 1-.771.56l-4.618-2.428a2.122 2.122 0 0 0-1.973 0L6.396 21.01a.53.53 0 0 1-.77-.56l.881-5.139a2.122 2.122 0 0 0-.611-1.879L2.16 9.795a.53.53 0 0 1 .294-.906l5.165-.755a2.122 2.122 0 0 0 1.597-1.16z",
402
- key: "r04s7s"
403
- }]]), at = M("sun", [
404
- ["circle", {
405
- cx: "12",
406
- cy: "12",
407
- r: "4",
408
- key: "4exip2"
409
- }],
410
- ["path", {
411
- d: "M12 2v2",
412
- key: "tus03m"
413
- }],
414
- ["path", {
415
- d: "M12 20v2",
416
- key: "1lh1kg"
417
- }],
418
- ["path", {
419
- d: "m4.93 4.93 1.41 1.41",
420
- key: "149t6j"
421
- }],
422
- ["path", {
423
- d: "m17.66 17.66 1.41 1.41",
424
- key: "ptbguv"
425
- }],
426
- ["path", {
427
- d: "M2 12h2",
428
- key: "1t8f8n"
429
- }],
430
- ["path", {
431
- d: "M20 12h2",
432
- key: "1q8mjw"
433
- }],
434
- ["path", {
435
- d: "m6.34 17.66-1.41 1.41",
436
- key: "1m8zz5"
437
- }],
438
- ["path", {
439
- d: "m19.07 4.93-1.41 1.41",
440
- key: "1shlcs"
441
- }]
442
- ]), ot = M("user", [["path", {
443
- d: "M19 21v-2a4 4 0 0 0-4-4H9a4 4 0 0 0-4 4v2",
444
- key: "975kel"
445
- }], ["circle", {
446
- cx: "12",
447
- cy: "7",
448
- r: "4",
449
- key: "17ys0d"
450
- }]]), st = M("users", [
451
- ["path", {
452
- d: "M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2",
453
- key: "1yyitq"
454
- }],
455
- ["path", {
456
- d: "M16 3.128a4 4 0 0 1 0 7.744",
457
- key: "16gr8j"
458
- }],
459
- ["path", {
460
- d: "M22 21v-2a4 4 0 0 0-3-3.87",
461
- key: "kshegd"
462
- }],
463
- ["circle", {
464
- cx: "9",
465
- cy: "7",
466
- r: "4",
467
- key: "nufk8"
468
- }]
469
- ]), R = ie(), z = /* @__PURE__ */ e(t(), 1), ct = {
470
- "chevron-right": s,
471
- "chevron-down": L,
472
- pipette: Ye,
473
- x: Ce,
474
- copy: be,
475
- menu: Ve,
476
- dot: Ae,
477
- monitor: Ue,
478
- sun: at,
479
- moon: We,
480
- "rectangle-horizontal": Ze,
481
- circle: Oe,
482
- "square-library": rt,
483
- clock: xe,
484
- star: it,
485
- settings: et,
486
- plus: Xe,
487
- "arrow-left": we,
488
- "arrow-right": Te,
489
- "arrow-up": Ee,
490
- search: a,
491
- loader: Re,
492
- users: st,
493
- lock: ze,
494
- mail: Be,
495
- bell: ve,
496
- shield: tt,
497
- palette: Ke,
498
- lightbulb: Ie,
499
- rocket: Qe,
500
- heart: Me,
501
- paintbrush: Ge,
502
- brain: De,
503
- globe: je,
504
- user: ot,
505
- image: Pe,
506
- link: Le,
507
- check: ye,
508
- "rotate-ccw": $e,
509
- play: Se,
510
- pause: qe,
511
- home: Ne,
512
- "message-circle": He,
513
- inbox: Fe,
514
- pencil: Je,
515
- "skip-forward": nt,
516
- "corner-down-right": ke
517
- }, lt = (0, z.createContext)(null);
518
- function B(e) {
519
- return ((0, z.useContext)(lt) ?? ct)[e];
520
- }
521
- //#endregion
522
- //#region ../../node_modules/.pnpm/@base-ui+react@1.6.0_@types+react@19.2.17_react-dom@19.2.4_react@19.2.4__react@19.2.4/node_modules/@base-ui/react/dialog/root/DialogRootContext.mjs
523
- var V = /*#__PURE__*/ z.createContext(!1);
524
- process.env.NODE_ENV !== "production" && (V.displayName = "IsDrawerContext");
525
- var H = /*#__PURE__*/ z.createContext(void 0);
526
- process.env.NODE_ENV !== "production" && (H.displayName = "DialogRootContext");
527
- function U(e) {
528
- let t = z.useContext(H);
529
- if (e === !1 && t === void 0) throw Error(process.env.NODE_ENV === "production" ? F(27) : "Base UI: DialogRootContext is missing. Dialog parts must be placed within <Dialog.Root>.");
530
- return t;
531
- }
532
- //#endregion
533
- //#region ../../node_modules/.pnpm/@base-ui+react@1.6.0_@types+react@19.2.17_react-dom@19.2.4_react@19.2.4__react@19.2.4/node_modules/@base-ui/react/dialog/backdrop/DialogBackdrop.mjs
534
- var ut = {
535
- ...k,
536
- ...E
537
- }, W = /*#__PURE__*/ z.forwardRef(function(e, t) {
538
- let { render: n, className: r, style: i, forceRender: a = !1, ...o } = e, { store: s } = U(), c = s.useState("open"), l = s.useState("nested"), u = s.useState("mounted");
539
- return P("div", e, {
540
- state: {
541
- open: c,
542
- transitionStatus: s.useState("transitionStatus")
543
- },
544
- ref: [s.context.backdropRef, t],
545
- stateAttributesMapping: ut,
546
- props: [{
547
- role: "presentation",
548
- hidden: !u,
549
- style: {
550
- userSelect: "none",
551
- WebkitUserSelect: "none"
552
- }
553
- }, o],
554
- enabled: a || !l
555
- });
556
- });
557
- process.env.NODE_ENV !== "production" && (W.displayName = "DialogBackdrop");
558
- //#endregion
559
- //#region ../../node_modules/.pnpm/@base-ui+react@1.6.0_@types+react@19.2.17_react-dom@19.2.4_react@19.2.4__react@19.2.4/node_modules/@base-ui/react/dialog/close/DialogClose.mjs
560
- var G = /*#__PURE__*/ z.forwardRef(function(e, t) {
561
- let { render: r, className: i, style: a, disabled: o = !1, nativeButton: s = !0, ...l } = e, { store: u } = U(), d = u.useState("open"), { getButtonProps: f, buttonRef: p } = oe({
562
- disabled: o,
563
- native: s
564
- }), m = { disabled: o };
565
- function h(e) {
566
- d && u.setOpen(!1, c(n, e.nativeEvent));
567
- }
568
- return P("button", e, {
569
- state: m,
570
- ref: [t, p],
571
- props: [
572
- { onClick: h },
573
- l,
574
- f
575
- ]
576
- });
577
- });
578
- process.env.NODE_ENV !== "production" && (G.displayName = "DialogClose");
579
- //#endregion
580
- //#region ../../node_modules/.pnpm/@base-ui+react@1.6.0_@types+react@19.2.17_react-dom@19.2.4_react@19.2.4__react@19.2.4/node_modules/@base-ui/react/dialog/description/DialogDescription.mjs
581
- var K = /*#__PURE__*/ z.forwardRef(function(e, t) {
582
- let { render: n, className: r, style: i, id: a, ...o } = e, { store: s } = U(), c = l(a);
583
- return s.useSyncedValueWithCleanup("descriptionElementId", c), P("p", e, {
584
- ref: t,
585
- props: [{ id: c }, o]
586
- });
587
- });
588
- process.env.NODE_ENV !== "production" && (K.displayName = "DialogDescription");
589
- //#endregion
590
- //#region ../../node_modules/.pnpm/@base-ui+react@1.6.0_@types+react@19.2.17_react-dom@19.2.4_react@19.2.4__react@19.2.4/node_modules/@base-ui/react/dialog/popup/DialogPopupCssVars.mjs
591
- var dt = /*#__PURE__*/ function(e) {
592
- return e.nestedDialogs = "--nested-dialogs", e;
593
- }({}), ft = function(e) {
594
- return e[e.open = T.open] = "open", e[e.closed = T.closed] = "closed", e[e.startingStyle = T.startingStyle] = "startingStyle", e[e.endingStyle = T.endingStyle] = "endingStyle", e.nested = "data-nested", e.nestedDialogOpen = "data-nested-dialog-open", e;
595
- }({}), q = /*#__PURE__*/ z.createContext(void 0);
596
- process.env.NODE_ENV !== "production" && (q.displayName = "DialogPortalContext");
597
- function pt() {
598
- let e = z.useContext(q);
599
- if (e === void 0) throw Error(process.env.NODE_ENV === "production" ? F(26) : "Base UI: <Dialog.Portal> is missing.");
600
- return e;
601
- }
602
- //#endregion
603
- //#region ../../node_modules/.pnpm/@base-ui+react@1.6.0_@types+react@19.2.17_react-dom@19.2.4_react@19.2.4__react@19.2.4/node_modules/@base-ui/react/dialog/popup/DialogPopup.mjs
604
- var mt = {
605
- ...k,
606
- ...E,
607
- nestedDialogOpen(e) {
608
- return e ? { [ft.nestedDialogOpen]: "" } : null;
609
- }
610
- }, J = /*#__PURE__*/ z.forwardRef(function(e, t) {
611
- let { render: n, className: r, style: a, finalFocus: o, initialFocus: s, ...c } = e, { store: l } = U(), u = l.useState("descriptionElementId"), d = l.useState("disablePointerDismissal"), f = l.useState("floatingRootContext"), p = l.useState("popupProps"), m = l.useState("modal"), h = l.useState("mounted"), g = l.useState("nested"), _ = l.useState("nestedOpenDialogCount"), v = l.useState("open"), y = l.useState("openMethod"), b = l.useState("titleElementId"), x = l.useState("transitionStatus"), C = l.useState("role"), w = f.useState("floatingId"), T = c.id ?? w;
612
- pt(), i({
613
- open: v,
614
- ref: l.context.popupRef,
615
- onComplete() {
616
- v && l.context.onOpenChangeComplete?.(!0);
617
- }
618
- });
619
- let E = s === void 0 ? S(l.context.popupRef) : s, D = _ > 0, O = l.useStateSetter("popupElement"), k = P("div", e, {
620
- state: {
621
- open: v,
622
- nested: g,
623
- transitionStatus: x,
624
- nestedDialogOpen: D
625
- },
626
- props: [
627
- p,
628
- {
629
- id: T,
630
- "aria-labelledby": b ?? void 0,
631
- "aria-describedby": u ?? void 0,
632
- role: C,
633
- ...te,
634
- hidden: !h,
635
- onKeyDown(e) {
636
- ce.has(e.key) && e.stopPropagation();
637
- },
638
- style: { [dt.nestedDialogs]: _ }
639
- },
640
- c
641
- ],
642
- ref: [
643
- t,
644
- l.context.popupRef,
645
- O
646
- ],
647
- stateAttributesMapping: mt
648
- });
649
- return /*#__PURE__*/ (0, R.jsx)(le, {
650
- context: f,
651
- openInteractionType: y,
652
- disabled: !h,
653
- closeOnFocusOut: !d,
654
- initialFocus: E,
655
- returnFocus: o,
656
- modal: m !== !1,
657
- restoreFocus: "popup",
658
- children: k
659
- });
660
- });
661
- process.env.NODE_ENV !== "production" && (J.displayName = "DialogPopup");
662
- //#endregion
663
- //#region ../../node_modules/.pnpm/@base-ui+react@1.6.0_@types+react@19.2.17_react-dom@19.2.4_react@19.2.4__react@19.2.4/node_modules/@base-ui/react/dialog/portal/DialogPortal.mjs
664
- var Y = /*#__PURE__*/ z.forwardRef(function(e, t) {
665
- let { keepMounted: n = !1, ...r } = e, { store: i } = U(), a = i.useState("mounted"), o = i.useState("modal"), s = i.useState("open");
666
- return a || n ? /*#__PURE__*/ (0, R.jsx)(q.Provider, {
667
- value: n,
668
- children: /*#__PURE__*/ (0, R.jsxs)(u, {
669
- ref: t,
670
- ...r,
671
- children: [a && o === !0 && /*#__PURE__*/ (0, R.jsx)(_e, {
672
- ref: i.context.internalBackdropRef,
673
- inert: ue(!s)
674
- }), e.children]
675
- })
676
- }) : null;
677
- });
678
- process.env.NODE_ENV !== "production" && (Y.displayName = "DialogPortal");
679
- //#endregion
680
- //#region ../../node_modules/.pnpm/@base-ui+react@1.6.0_@types+react@19.2.17_react-dom@19.2.4_react@19.2.4__react@19.2.4/node_modules/@base-ui/react/dialog/root/useDialogRoot.mjs
681
- function ht(e) {
682
- let { store: t, actionsRef: n } = e, r = t.useState("open");
683
- b(t, r), g(t);
684
- let { forceUnmount: i } = O(r, t), a = z.useCallback(() => {
685
- t.setOpen(!1, c(f));
686
- }, [t]);
687
- z.useImperativeHandle(n, () => ({
688
- unmount: i,
689
- close: a
690
- }), [i, a]);
691
- }
692
- function gt({ store: e, parentContext: t, isDrawer: n }) {
693
- let i = e.useState("open"), a = e.useState("disablePointerDismissal"), o = e.useState("modal"), s = e.useState("popupElement"), c = e.useState("floatingRootContext"), [l, u] = z.useState(0), [d, f] = z.useState(0), p = l === 0, m = r(c, {
694
- outsidePressEvent() {
695
- return e.context.internalBackdropRef.current || e.context.backdropRef.current ? "intentional" : {
696
- mouse: o === "trap-focus" ? "sloppy" : "intentional",
697
- touch: "sloppy"
698
- };
699
- },
700
- outsidePress(t) {
701
- if (!e.context.outsidePressEnabledRef.current || "button" in t && t.button !== 0 || "touches" in t && t.touches.length !== 1) return !1;
702
- let n = y(t);
703
- return p && !a ? o && (e.context.internalBackdropRef.current || e.context.backdropRef.current) ? e.context.internalBackdropRef.current === n || e.context.backdropRef.current === n || C(n, s) && !n?.hasAttribute("data-base-ui-portal") : !0 : !1;
704
- },
705
- escapeKey: p
706
- });
707
- return he(i && o === !0, s), e.useContextCallback("onNestedDialogOpen", (e, t) => {
708
- u(e), f(t);
709
- }), e.useContextCallback("onNestedDialogClose", () => {
710
- u(0), f(0);
711
- }), z.useEffect(() => (t?.onNestedDialogOpen && i && t.onNestedDialogOpen(l + 1, d + +!!n), t?.onNestedDialogClose && !i && t.onNestedDialogClose(), () => {
712
- t?.onNestedDialogClose && i && t.onNestedDialogClose();
713
- }), [
714
- n,
715
- i,
716
- l,
717
- d,
718
- t
719
- ]), w(e, {
720
- activeTriggerProps: m.reference ?? I,
721
- inactiveTriggerProps: m.trigger ?? I,
722
- popupProps: m.floating ?? I,
723
- nestedOpenDialogCount: l,
724
- nestedOpenDrawerCount: d
725
- }), null;
726
- }
727
- //#endregion
728
- //#region ../../node_modules/.pnpm/@base-ui+react@1.6.0_@types+react@19.2.17_react-dom@19.2.4_react@19.2.4__react@19.2.4/node_modules/@base-ui/react/dialog/store/DialogStore.mjs
729
- var _t = {
730
- ...h,
731
- modal: j((e) => e.modal),
732
- nested: j((e) => e.nested),
733
- nestedOpenDialogCount: j((e) => e.nestedOpenDialogCount),
734
- nestedOpenDrawerCount: j((e) => e.nestedOpenDrawerCount),
735
- disablePointerDismissal: j((e) => e.disablePointerDismissal),
736
- openMethod: j((e) => e.openMethod),
737
- descriptionElementId: j((e) => e.descriptionElementId),
738
- titleElementId: j((e) => e.titleElementId),
739
- viewportElement: j((e) => e.viewportElement),
740
- role: j((e) => e.role)
741
- }, vt = class e extends re {
742
- constructor(e, t, n = !1) {
743
- let r = new D(), i = yt(e);
744
- i.floatingRootContext = x(r, t, n), super(i, {
745
- popupRef: /*#__PURE__*/ z.createRef(),
746
- backdropRef: /*#__PURE__*/ z.createRef(),
747
- internalBackdropRef: /*#__PURE__*/ z.createRef(),
748
- outsidePressEnabledRef: { current: !0 },
749
- triggerElements: r,
750
- onOpenChange: void 0,
751
- onOpenChangeComplete: void 0
752
- }, _t);
753
- }
754
- setOpen = (e, t) => {
755
- if (t.preventUnmountOnClose = () => {
756
- this.set("preventUnmountingOnClose", !0);
757
- }, !e && t.trigger == null && this.state.activeTriggerId != null && (t.trigger = this.state.activeTriggerElement ?? void 0), this.context.onOpenChange?.(e, t), t.isCanceled) return;
758
- this.state.floatingRootContext.dispatchOpenChange(e, t);
759
- let n = { open: e };
760
- ne(n, e, t.trigger), this.update(n);
761
- };
762
- static useStore(t, n) {
763
- return v(t, (t, r) => new e(n, t, r), !0).store;
764
- }
765
- };
766
- function yt(e = {}) {
767
- return {
768
- ...ee(),
769
- modal: !0,
770
- disablePointerDismissal: !1,
771
- popupElement: null,
772
- viewportElement: null,
773
- descriptionElementId: void 0,
774
- titleElementId: void 0,
775
- openMethod: null,
776
- nested: !1,
777
- nestedOpenDialogCount: 0,
778
- nestedOpenDrawerCount: 0,
779
- role: "dialog",
780
- ...e
781
- };
782
- }
783
- //#endregion
784
- //#region ../../node_modules/.pnpm/@base-ui+react@1.6.0_@types+react@19.2.17_react-dom@19.2.4_react@19.2.4__react@19.2.4/node_modules/@base-ui/react/dialog/root/useRenderDialogRoot.mjs
785
- function bt(e, t = "dialog") {
786
- let { children: n, open: r, defaultOpen: i = !1, onOpenChange: a, onOpenChangeComplete: o, disablePointerDismissal: s = !1, modal: c = !0, actionsRef: l, handle: u, triggerId: f, defaultTriggerId: p = null } = e, m = t === "drawer", h = t === "alert-dialog", g = h ? !0 : c, _ = h || s, v = h ? "alertdialog" : "dialog", y = U(!0), b = {
787
- modal: g,
788
- disablePointerDismissal: _,
789
- nested: !!y,
790
- role: v
791
- }, x = vt.useStore(u?.store, {
792
- open: i,
793
- openProp: r,
794
- activeTriggerId: p,
795
- triggerIdProp: f,
796
- ...b
797
- });
798
- d(() => {
799
- let e = r === void 0 && x.state.open === !1 && i === !0 ? {
800
- open: !0,
801
- activeTriggerId: p
802
- } : null;
803
- h ? x.update(e ? {
804
- ...b,
805
- ...e
806
- } : b) : e && x.update(e);
807
- }), x.useControlledProp("openProp", r), x.useControlledProp("triggerIdProp", f), x.useSyncedValues(b), x.useContextCallback("onOpenChange", a), x.useContextCallback("onOpenChangeComplete", o);
808
- let S = x.useState("open"), C = x.useState("mounted"), w = x.useState("payload");
809
- ht({
810
- store: x,
811
- actionsRef: l
812
- });
813
- let T = S || C, E = z.useMemo(() => ({ store: x }), [x]);
814
- return /*#__PURE__*/ (0, R.jsx)(V.Provider, {
815
- value: !1,
816
- children: /*#__PURE__*/ (0, R.jsxs)(H.Provider, {
817
- value: E,
818
- children: [T && /*#__PURE__*/ (0, R.jsx)(gt, {
819
- store: x,
820
- parentContext: y?.store.context,
821
- isDrawer: m
822
- }), typeof n == "function" ? n({ payload: w }) : n]
823
- })
824
- });
825
- }
826
- //#endregion
827
- //#region ../../node_modules/.pnpm/@base-ui+react@1.6.0_@types+react@19.2.17_react-dom@19.2.4_react@19.2.4__react@19.2.4/node_modules/@base-ui/react/dialog/root/DialogRoot.mjs
828
- function xt(e) {
829
- return bt(e, z.useContext(V) ? "drawer" : "dialog");
830
- }
831
- //#endregion
832
- //#region ../../node_modules/.pnpm/@base-ui+react@1.6.0_@types+react@19.2.17_react-dom@19.2.4_react@19.2.4__react@19.2.4/node_modules/@base-ui/react/dialog/title/DialogTitle.mjs
833
- var X = /*#__PURE__*/ z.forwardRef(function(e, t) {
834
- let { render: n, className: r, style: i, id: a, ...o } = e, { store: s } = U(), c = l(a);
835
- return s.useSyncedValueWithCleanup("titleElementId", c), P("h2", e, {
836
- ref: t,
837
- props: [{ id: c }, o]
838
- });
839
- });
840
- process.env.NODE_ENV !== "production" && (X.displayName = "DialogTitle");
841
- //#endregion
842
- //#region ../../node_modules/.pnpm/@base-ui+react@1.6.0_@types+react@19.2.17_react-dom@19.2.4_react@19.2.4__react@19.2.4/node_modules/@base-ui/react/dialog/trigger/DialogTrigger.mjs
843
- var Z = /*#__PURE__*/ z.forwardRef(function(e, t) {
844
- let { render: n, className: r, style: i, disabled: a = !1, nativeButton: s = !0, id: c, payload: u, handle: d, ...f } = e, h = U(!0), g = d?.store ?? h?.store;
845
- if (!g) throw Error(process.env.NODE_ENV === "production" ? F(79) : "Base UI: <Dialog.Trigger> must be used within <Dialog.Root> or provided with a handle.");
846
- let _ = l(c), v = g.useState("floatingRootContext"), y = g.useState("isOpenedByTrigger", _), b = g.useState("triggerPopupId", _), x = z.useRef(null), { registerTrigger: S, isMountedByThisTrigger: C } = p(_, x, g, { payload: u }), { getButtonProps: w, buttonRef: T } = oe({
847
- disabled: a,
848
- native: s
849
- }), E = ge(v, { enabled: v != null }), D = pe(() => g.select("open"), (e) => {
850
- g.set("openMethod", e);
851
- }), O = {
852
- disabled: a,
853
- open: y
854
- }, k = g.useState("triggerProps", C);
855
- return P("button", e, {
856
- state: O,
857
- ref: [
858
- T,
859
- t,
860
- S,
861
- x
862
- ],
863
- props: [
864
- E.reference,
865
- k,
866
- D,
867
- {
868
- [o]: "",
869
- id: _,
870
- "aria-haspopup": "dialog",
871
- "aria-expanded": y,
872
- "aria-controls": b
873
- },
874
- f,
875
- w
876
- ],
877
- stateAttributesMapping: m
878
- });
879
- });
880
- process.env.NODE_ENV !== "production" && (Z.displayName = "DialogTrigger");
881
- //#endregion
882
- //#region src/client/components/ui/dialog.tsx
883
- var St = 4, Ct = "h-14", Q = (0, z.createContext)(null);
884
- function $({ className: e }) {
885
- let t = B("x");
886
- return /* @__PURE__ */ (0, R.jsx)(G, { render: /* @__PURE__ */ (0, R.jsxs)(se, {
887
- variant: "ghost",
888
- size: "icon-sm",
889
- className: e,
890
- children: [/* @__PURE__ */ (0, R.jsx)(t, {}), /* @__PURE__ */ (0, R.jsx)("span", {
891
- className: "sr-only",
892
- children: "Close"
893
- })]
894
- }) });
895
- }
896
- function wt({ children: e, open: t, defaultOpen: n, onOpenChange: r, modal: i }) {
897
- return /* @__PURE__ */ (0, R.jsx)(xt, {
898
- open: t,
899
- defaultOpen: n,
900
- onOpenChange: (e) => r?.(e),
901
- modal: i,
902
- children: e
903
- });
904
- }
905
- function Tt(e) {
906
- return /* @__PURE__ */ (0, R.jsx)(Z, {
907
- "data-slot": "dialog-trigger",
908
- ...e
909
- });
910
- }
911
- var Et = (0, z.forwardRef)(({ className: e, children: t, size: n = "sm", scrollable: r = !1, container: i, ...a }, o) => {
912
- let s = ae(), c = fe(), l = Math.min(c + St, 8), [u, d] = (0, z.useState)(!1), f = (0, z.useCallback)((e) => {
913
- d(e);
914
- }, []);
915
- return /* @__PURE__ */ (0, R.jsxs)(Y, {
916
- container: i ?? void 0,
917
- children: [/* @__PURE__ */ (0, R.jsx)(W, { render: (e, t) => {
918
- let n = t.transitionStatus === "ending", { style: r, onDrag: a, onDragStart: o, onDragEnd: s, onAnimationStart: c, onAnimationEnd: l, onAnimationIteration: u, ...d } = e;
919
- return /* @__PURE__ */ (0, R.jsx)(_.div, {
920
- ...d,
921
- className: N(i ? "absolute" : "fixed", "inset-0 z-50 bg-black/40 dark:bg-black/80"),
922
- initial: { opacity: 0 },
923
- animate: { opacity: +!n },
924
- transition: n ? A.slow.exit : A.slow
925
- });
926
- } }), /* @__PURE__ */ (0, R.jsx)(J, {
927
- ref: o,
928
- render: (o, c) => {
929
- let d = c.transitionStatus === "ending", { style: p, onDrag: m, onDragStart: h, onDragEnd: g, onAnimationStart: v, onAnimationEnd: y, onAnimationIteration: b, ...x } = o;
930
- return /* @__PURE__ */ (0, R.jsx)(_.div, {
931
- ...x,
932
- ...a,
933
- className: N(i ? "absolute" : "fixed", "left-1/2 top-1/2 z-50 w-[calc(100%-2rem)]", me(l), "p-6 focus:outline-none", n === "sm" && "max-w-[400px]", n === "lg" && "max-w-[540px]", s.container, r && "flex flex-col overflow-hidden p-0", e),
934
- style: {
935
- ...p,
936
- ...a.style
937
- },
938
- initial: {
939
- opacity: 0,
940
- scale: .97,
941
- x: "-50%",
942
- y: "-50%"
943
- },
944
- animate: {
945
- opacity: +!d,
946
- scale: d ? .97 : 1,
947
- x: "-50%",
948
- y: "-50%"
949
- },
950
- transition: d ? A.slow.exit : A.slow,
951
- children: /* @__PURE__ */ (0, R.jsx)(de, {
952
- value: l,
953
- children: /* @__PURE__ */ (0, R.jsxs)(Q.Provider, {
954
- value: {
955
- scrollable: r,
956
- setStickyHeader: f
957
- },
958
- children: [t, !u && /* @__PURE__ */ (0, R.jsx)($, { className: "absolute right-3 top-3 z-20" })]
959
- })
960
- })
961
- });
962
- }
963
- })]
964
- });
965
- });
966
- Et.displayName = "DialogContent";
967
- function Dt({ className: e, sticky: t, children: n, ...r }) {
968
- let i = (0, z.useContext)(Q);
969
- return (0, z.useLayoutEffect)(() => {
970
- if (t) return i?.setStickyHeader(!0), () => i?.setStickyHeader(!1);
971
- }, [t, i]), t ? /* @__PURE__ */ (0, R.jsxs)("div", {
972
- className: N("sticky top-0 z-10 mb-0 flex shrink-0 items-center gap-2 border-b border-border/50 bg-white/50 px-6 backdrop-blur-xs dark:bg-black/50", Ct, e),
973
- ...r,
974
- children: [n, /* @__PURE__ */ (0, R.jsx)($, { className: "ml-auto shrink-0" })]
975
- }) : /* @__PURE__ */ (0, R.jsx)("div", {
976
- className: N("mb-4 flex flex-col gap-1.5", i?.scrollable && "px-6 pt-6", e),
977
- ...r,
978
- children: n
979
- });
980
- }
981
- function Ot({ className: e, ...t }) {
982
- return /* @__PURE__ */ (0, R.jsx)("div", {
983
- className: N("flex-1 min-h-0 overflow-y-auto overscroll-none pt-2", (0, z.useContext)(Q)?.scrollable ? "px-6 pb-6" : "-mx-6 px-6", e),
984
- ...t
985
- });
986
- }
987
- function kt({ className: e, onCopy: t, children: n, ...r }) {
988
- let i = B("copy"), a = B("check"), [o, s] = (0, z.useState)(!1), c = async () => {
989
- if (t) try {
990
- await t(), s(!0), setTimeout(() => s(!1), 2e3);
991
- } catch {}
992
- };
993
- return /* @__PURE__ */ (0, R.jsxs)("div", {
994
- className: N("group/json relative -mx-6 bg-muted/20 px-6 pt-6 pb-4", e),
995
- ...r,
996
- children: [t ? /* @__PURE__ */ (0, R.jsx)("div", {
997
- className: "absolute top-2 right-2 z-10 opacity-0 transition-opacity group-hover/json:opacity-100",
998
- children: /* @__PURE__ */ (0, R.jsx)(se, {
999
- variant: "ghost",
1000
- size: "icon-sm",
1001
- onClick: c,
1002
- title: "Copy",
1003
- children: o ? /* @__PURE__ */ (0, R.jsx)(a, { className: "text-green-600" }) : /* @__PURE__ */ (0, R.jsx)(i, {})
1004
- })
1005
- }) : null, n]
1006
- });
1007
- }
1008
- function At({ className: e, ...t }) {
1009
- return /* @__PURE__ */ (0, R.jsx)("div", {
1010
- className: N("mt-6 flex justify-end gap-2", (0, z.useContext)(Q)?.scrollable && "px-6 pb-6", e),
1011
- ...t
1012
- });
1013
- }
1014
- var jt = (0, z.forwardRef)(({ className: e, ...t }, n) => /* @__PURE__ */ (0, R.jsx)(X, {
1015
- ref: n,
1016
- className: N("m-0 text-[16px] leading-none text-foreground", e),
1017
- style: { fontVariationSettings: "'wght' 700" },
1018
- ...t
1019
- }));
1020
- jt.displayName = "DialogTitle";
1021
- var Mt = (0, z.forwardRef)(({ className: e, ...t }, n) => /* @__PURE__ */ (0, R.jsx)(K, {
1022
- ref: n,
1023
- className: N("text-[13px] text-muted-foreground", e),
1024
- ...t
1025
- }));
1026
- Mt.displayName = "DialogDescription";
1027
- //#endregion
1028
- export { L as A, $e as C, He as D, Ue as E, Pe as O, et as S, We as T, G as _, At as a, at as b, jt as c, X as d, xt as f, K as g, J as h, Mt as i, Ee as j, je as k, Tt as l, Y as m, Ot as n, Dt as o, bt as p, Et as r, kt as s, wt as t, Z as u, W as v, Xe as w, tt as x, B as y };