@synnaxlabs/pluto 0.47.1 → 0.48.0

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 (177) hide show
  1. package/dist/{Animated-NfnNvlbz.cjs → Animated--SNIwznU.cjs} +1 -1
  2. package/dist/{Animated-CUFx-eAB.js → Animated-CC7iS0zH.js} +21 -21
  3. package/dist/{Animated-CEx4LoLs.js → Animated-DfDp0-ep.js} +4 -4
  4. package/dist/{Animated-Bq6z2XkH.cjs → Animated-TMpTdCqK.cjs} +1 -1
  5. package/dist/{Box-D5Qv__kr.js → Box-CoQUaJk2.js} +2 -2
  6. package/dist/{Box-BvqALodh.cjs → Box-Ds_D3xR_.cjs} +1 -1
  7. package/dist/Button-BaMa3eGI.cjs +1 -0
  8. package/dist/Button-NgDHbsf8.js +306 -0
  9. package/dist/{Dialog-BnPvG5WQ.cjs → Dialog-BL8T9CVw.cjs} +1 -1
  10. package/dist/{Dialog-Bi1Sf3oc.js → Dialog-CBDFqieV.js} +4 -4
  11. package/dist/{Editable-CxgdRDPb.js → Editable-C7KPD0hC.js} +3 -3
  12. package/dist/{Editable-BXFY3-UW.cjs → Editable-CWt3zqDm.cjs} +1 -1
  13. package/dist/{Haul-BuI0PZpo.js → Haul-Be1j5BU3.js} +2 -2
  14. package/dist/{Haul-2Xa_nMgc.cjs → Haul-D1WaI_xE.cjs} +1 -1
  15. package/dist/{Items-CHAbP2ZL.cjs → Items-BYlg9bb-.cjs} +1 -1
  16. package/dist/{Items-Cmc6otoS.js → Items-mikdEpyC.js} +8 -8
  17. package/dist/{Menu-CQ_GMgB9.js → Menu-CcWs0t21.js} +9 -9
  18. package/dist/{Menu-BImhHf24.cjs → Menu-DJoh8bH7.cjs} +1 -1
  19. package/dist/{Provider-D0P_lzCo.js → Provider-DScd3hYf.js} +26 -26
  20. package/dist/{Provider-BV7nN39a.cjs → Provider-fx1wTnXk.cjs} +2 -2
  21. package/dist/Tags-DvPUmH2r.js +908 -0
  22. package/dist/Tags-KHafaGjR.cjs +1 -0
  23. package/dist/{Text-BnUGzpJq.js → Text-BbbqH88W.js} +491 -486
  24. package/dist/Text-CZrjPRjJ.cjs +1 -0
  25. package/dist/{Video-VlT7jSYk.cjs → Video-DRSEX8t7.cjs} +1 -1
  26. package/dist/{Video-CITi2j07.js → Video-_DrutSeT.js} +2 -2
  27. package/dist/button.cjs +1 -1
  28. package/dist/button.js +1 -1
  29. package/dist/color.cjs +1 -1
  30. package/dist/color.js +1 -1
  31. package/dist/css-C_YE-5Xa.cjs +8 -0
  32. package/dist/{css-D6ZBcSwh.js → css-Cn63X_Yv.js} +1161 -1111
  33. package/dist/css.cjs +1 -1
  34. package/dist/css.js +2 -2
  35. package/dist/{deep-DtdcJG4q.cjs → deep-7SxmCL0x.cjs} +1 -1
  36. package/dist/{deep-DRVLw7iw.js → deep-szN5DCOH.js} +1 -1
  37. package/dist/dialog.cjs +1 -1
  38. package/dist/dialog.js +1 -1
  39. package/dist/{dimensions-CGLhBwVq.cjs → dimensions-DFDTcQRG.cjs} +1 -1
  40. package/dist/{dimensions-BFCMI7yN.js → dimensions-Dclfavlh.js} +1 -1
  41. package/dist/{eraser-DvzR9kLf.js → eraser-Bpl4bpBx.js} +13 -13
  42. package/dist/{eraser-Dm5Du4PL.cjs → eraser-Bqibt23a.cjs} +2 -2
  43. package/dist/ether.cjs +1 -1
  44. package/dist/ether.js +7 -7
  45. package/dist/{_commonjsHelpers-BH3jXuIh.cjs → event-BxvV3arE.cjs} +1 -1
  46. package/dist/{_commonjsHelpers-ByX85dGu.js → event-nNH_pXSr.js} +17 -14
  47. package/dist/{external-CMBnwYR4.cjs → external-19BIaQc6.cjs} +1 -1
  48. package/dist/{external-Daiy-vZ3.js → external-1uZLLxz-.js} +771 -792
  49. package/dist/{external-DGNBXSAj.js → external-6rS2YiWR.js} +16066 -15782
  50. package/dist/{external-CAcL3DJP.js → external-8H4eB7TN.js} +8 -8
  51. package/dist/{external-Eaj0hgzm.cjs → external-AInsIJp-.cjs} +1 -1
  52. package/dist/{external-CTsR6bs9.cjs → external-B3jTkhc4.cjs} +4 -22
  53. package/dist/external-B8hxM_jw.cjs +79 -0
  54. package/dist/{external-BTlfU938.js → external-BOWnCKIe.js} +3 -3
  55. package/dist/{external-D7EEjQaR.js → external-Bi-OQCBH.js} +19 -18
  56. package/dist/{external-6vmyay3h.js → external-Bq4gfE5e.js} +6 -6
  57. package/dist/{external-6RyUkYAB.js → external-C0_sN1J0.js} +2 -2
  58. package/dist/{external-CSntN1is.cjs → external-CFZ33YbY.cjs} +1 -1
  59. package/dist/{external-CTrkvlmd.cjs → external-CFdDgpzj.cjs} +1 -1
  60. package/dist/{external-BcZE443U.cjs → external-CJFfVl_u.cjs} +1 -1
  61. package/dist/{external-BrQU-ZN8.cjs → external-CN15E8ls.cjs} +1 -1
  62. package/dist/{external-Bo9Dyf8v.js → external-Caetm5fI.js} +5 -5
  63. package/dist/external-CfEVFfhL.cjs +1 -0
  64. package/dist/{external-CtiE4JLk.js → external-D6TsHpoG.js} +10 -10
  65. package/dist/{external-Clec0nDH.cjs → external-D7WE6Leo.cjs} +1 -1
  66. package/dist/{external-OLyg-4Ab.cjs → external-DUGcSVbJ.cjs} +1 -1
  67. package/dist/{external-BSjAne2q.js → external-DwhfVdFp.js} +5 -5
  68. package/dist/{external-BhOvtmPt.js → external-X_eFMRtE.js} +2 -2
  69. package/dist/{external-Dl0l3iHN.cjs → external-pRQzznIG.cjs} +1 -1
  70. package/dist/{external-OzDazbiJ.js → external-y1Apm7j1.js} +14 -14
  71. package/dist/flex.cjs +1 -1
  72. package/dist/flex.js +1 -1
  73. package/dist/{fontString-yPlq8smc.cjs → fontString-BcSXNOgW.cjs} +1 -1
  74. package/dist/{fontString-CGd4NYXa.js → fontString-D7EMGjIw.js} +2 -2
  75. package/dist/header.cjs +1 -1
  76. package/dist/header.js +1 -1
  77. package/dist/{hooks-Bvv-S6WC.js → hooks-BmUn8s1r.js} +4 -4
  78. package/dist/{hooks-CoF3Fkrn.cjs → hooks-CutQY1o9.cjs} +1 -1
  79. package/dist/index.cjs +8 -40
  80. package/dist/index.js +9333 -9141
  81. package/dist/input.cjs +1 -1
  82. package/dist/input.js +1 -1
  83. package/dist/{jsx-runtime-OVHDjVDe.js → jsx-runtime-BbD0H88J.js} +108 -128
  84. package/dist/jsx-runtime-nZSsnGb7.cjs +6 -0
  85. package/dist/list.cjs +1 -1
  86. package/dist/list.js +1 -1
  87. package/dist/menu.cjs +1 -1
  88. package/dist/menu.js +1 -1
  89. package/dist/pluto.css +1 -1
  90. package/dist/{provider-C8In649C.js → provider-B6SgG_sT.js} +4910 -4821
  91. package/dist/provider-C9Beoajx.cjs +72 -0
  92. package/dist/src/button/Button.d.ts +2 -1
  93. package/dist/src/button/Button.d.ts.map +1 -1
  94. package/dist/src/channel/LinePlot.d.ts +4 -1
  95. package/dist/src/channel/LinePlot.d.ts.map +1 -1
  96. package/dist/src/channel/Select.d.ts +2 -2
  97. package/dist/src/channel/Select.d.ts.map +1 -1
  98. package/dist/src/cluster/index.d.ts +2 -0
  99. package/dist/src/cluster/index.d.ts.map +1 -0
  100. package/dist/src/cluster/queries.d.ts +6 -0
  101. package/dist/src/cluster/queries.d.ts.map +1 -0
  102. package/dist/src/cluster/queries.spec.d.ts +2 -0
  103. package/dist/src/cluster/queries.spec.d.ts.map +1 -0
  104. package/dist/src/color/GradientPicker.d.ts.map +1 -1
  105. package/dist/src/flux/retrieve.d.ts +9 -8
  106. package/dist/src/flux/retrieve.d.ts.map +1 -1
  107. package/dist/src/hardware/device/Select.d.ts +1 -1
  108. package/dist/src/hardware/device/Select.d.ts.map +1 -1
  109. package/dist/src/hardware/rack/Select.d.ts +1 -1
  110. package/dist/src/hardware/rack/Select.d.ts.map +1 -1
  111. package/dist/src/icon/registry.d.ts +1 -0
  112. package/dist/src/icon/registry.d.ts.map +1 -1
  113. package/dist/src/index.d.ts +1 -0
  114. package/dist/src/index.d.ts.map +1 -1
  115. package/dist/src/input/DateTime.d.ts.map +1 -1
  116. package/dist/src/input/DateTime.spec.d.ts +2 -0
  117. package/dist/src/input/DateTime.spec.d.ts.map +1 -0
  118. package/dist/src/label/Select.d.ts +3 -3
  119. package/dist/src/label/Select.d.ts.map +1 -1
  120. package/dist/src/menu/Item.d.ts.map +1 -1
  121. package/dist/src/schematic/symbol/Primitives.d.ts.map +1 -1
  122. package/dist/src/select/Dialog.d.ts +2 -3
  123. package/dist/src/select/Dialog.d.ts.map +1 -1
  124. package/dist/src/select/Multiple.d.ts.map +1 -1
  125. package/dist/src/select/MultipleTrigger.d.ts.map +1 -1
  126. package/dist/src/status/Select.d.ts +1 -1
  127. package/dist/src/status/Select.d.ts.map +1 -1
  128. package/dist/src/status/queries.d.ts +13 -0
  129. package/dist/src/status/queries.d.ts.map +1 -1
  130. package/dist/src/synnax/Provider.d.ts +2 -2
  131. package/dist/src/synnax/Provider.d.ts.map +1 -1
  132. package/dist/src/synnax/aether/provider.d.ts.map +1 -1
  133. package/dist/src/table/Table.d.ts.map +1 -1
  134. package/dist/src/tag/Tag.d.ts.map +1 -1
  135. package/dist/src/user/Avatar.d.ts +7 -0
  136. package/dist/src/user/Avatar.d.ts.map +1 -0
  137. package/dist/src/user/external.d.ts +3 -0
  138. package/dist/src/user/external.d.ts.map +1 -0
  139. package/dist/src/user/index.d.ts +1 -1
  140. package/dist/src/user/index.d.ts.map +1 -1
  141. package/dist/src/user/queries.d.ts +1 -0
  142. package/dist/src/user/queries.d.ts.map +1 -1
  143. package/dist/src/vis/draw2d/index.d.ts +2 -1
  144. package/dist/src/vis/draw2d/index.d.ts.map +1 -1
  145. package/dist/src/vis/measure/Measure.d.ts +4 -1
  146. package/dist/src/vis/measure/Measure.d.ts.map +1 -1
  147. package/dist/src/vis/measure/aether/measure.d.ts +27 -1
  148. package/dist/src/vis/measure/aether/measure.d.ts.map +1 -1
  149. package/dist/tabs.cjs +1 -1
  150. package/dist/tabs.js +1 -1
  151. package/dist/text.cjs +1 -1
  152. package/dist/text.js +2 -2
  153. package/dist/theming.cjs +1 -1
  154. package/dist/theming.js +2 -2
  155. package/dist/tree.cjs +1 -1
  156. package/dist/tree.js +1 -1
  157. package/dist/triggers.cjs +1 -1
  158. package/dist/triggers.js +1 -1
  159. package/dist/{units-BqIfn6VX.js → units-cBd5OJg4.js} +1 -1
  160. package/dist/units-zxke9Ng2.cjs +1 -0
  161. package/dist/value-Ce4T858D.cjs +53 -0
  162. package/dist/{value-ChGMEPP3.js → value-UJNdARAu.js} +2715 -2512
  163. package/dist/video.cjs +1 -1
  164. package/dist/video.js +1 -1
  165. package/package.json +23 -21
  166. package/dist/Button-BMeq9Z2I.cjs +0 -1
  167. package/dist/Button-CMRdj9Ti.js +0 -305
  168. package/dist/Tags-6IUFBvU-.js +0 -604
  169. package/dist/Tags-DtnStTuF.cjs +0 -1
  170. package/dist/Text-DY08sSZe.cjs +0 -1
  171. package/dist/css-HnNQMUzV.cjs +0 -8
  172. package/dist/external-DDzR-j7b.cjs +0 -1
  173. package/dist/external-Ddn3rc_Q.cjs +0 -85
  174. package/dist/jsx-runtime-Dszzpdy0.cjs +0 -22
  175. package/dist/provider-lNhTlIWj.cjs +0 -72
  176. package/dist/units-DCifOxd9.cjs +0 -1
  177. package/dist/value-B3LTg1lE.cjs +0 -53
@@ -0,0 +1,908 @@
1
+ import { j as h } from "./jsx-runtime-BbD0H88J.js";
2
+ import { useCallback as S, useEffect as q, useRef as L, createContext as Z, useMemo as T, useContext as Me, useSyncExternalStore as oe, useState as F, use as ie, memo as Ge } from "react";
3
+ import { m as V, h as U, c as Ke, C as w, s as Oe, u as O, y as We } from "./css-Cn63X_Yv.js";
4
+ import { D as Ze } from "./Dialog-CBDFqieV.js";
5
+ import { u as ae } from "./Animated-CC7iS0zH.js";
6
+ import { B as Xe } from "./Button-NgDHbsf8.js";
7
+ import { o as G, F as Ye, y as Qe, S as Je, L as et, D as tt } from "./Text-BbbqH88W.js";
8
+ import { d as rt, u as le, F as st, a as nt, I as ot } from "./Items-mikdEpyC.js";
9
+ import { c as A, d as it, b as at, f as lt, T as C } from "./Editable-C7KPD0hC.js";
10
+ import { c as ct, C as K } from "./types-BNX_Jj6k.js";
11
+ import { c as ut, C as dt } from "./Provider-DScd3hYf.js";
12
+ import { l as ft, m as mt, A as ht, n as pt } from "./provider-B6SgG_sT.js";
13
+ import { E as gt, a as X } from "./Box-CoQUaJk2.js";
14
+ import "react-dom";
15
+ import { u as $t, b as se } from "./hooks-BmUn8s1r.js";
16
+ const ce = ["ArrowUp"], ue = ["ArrowDown"], de = ["Enter"], xt = [ce, ue, de], vt = V.milliseconds(200).milliseconds, bt = V.milliseconds(100).milliseconds, fe = ({
17
+ data: e,
18
+ initialHover: n = -1,
19
+ onSelect: r
20
+ }) => {
21
+ const s = A(e), [u, c, l] = it(n), { visible: a } = ae(), m = A(a), { scrollToIndex: p } = rt(), $ = S(
22
+ (d) => {
23
+ const o = l.current, t = ct(d, o);
24
+ c(t), p(t, o > t ? "bottom" : "top");
25
+ },
26
+ [p]
27
+ );
28
+ q(() => {
29
+ l.current >= e.length && $(0);
30
+ }, [e.length]);
31
+ const g = L(null), v = S(
32
+ ({ triggers: d, stage: o }) => {
33
+ if (!m.current || (g.current != null && (clearInterval(g.current), g.current = null), o !== "start")) return;
34
+ const t = s.current;
35
+ if (G(d, [de])) {
36
+ if (l.current === -1) return;
37
+ r?.(t[l.current]);
38
+ return;
39
+ }
40
+ const i = () => {
41
+ const f = s.current;
42
+ G(d, [ce], { loose: !0 }) ? $((x) => x <= 0 ? f.length - 1 : x - 1) : G(d, [ue], { loose: !0 }) && $((x) => x >= f.length - 1 ? 0 : x + 1);
43
+ };
44
+ i(), g.current = setTimeout(() => {
45
+ g.current = setInterval(i, bt);
46
+ }, vt);
47
+ },
48
+ [r]
49
+ );
50
+ return $t({
51
+ triggers: xt,
52
+ callback: v,
53
+ loose: !0
54
+ }), { hover: e[u] };
55
+ }, Rt = ({
56
+ allowNone: e = !1,
57
+ onChange: n,
58
+ value: r,
59
+ closeDialogOnSelect: s = !1,
60
+ initialHover: u,
61
+ autoSelectOnNone: c = !1
62
+ }) => {
63
+ const l = A(r), { data: a } = le(), { close: m } = ae(), p = A(a);
64
+ q(() => {
65
+ const o = r != null && a.includes(r);
66
+ c && a.length > 0 && !o && n(a[0], { clicked: a[0], clickedIndex: 0 });
67
+ }, [c, n, r, a.length, a]);
68
+ const $ = S(
69
+ (o) => {
70
+ if (l.current === o) {
71
+ e && n(null, { clicked: null, clickedIndex: null }), s && m();
72
+ return;
73
+ }
74
+ const t = p.current.findIndex((i) => i === o);
75
+ n(o, { clicked: o, clickedIndex: t }), s && m();
76
+ },
77
+ [p, n, m]
78
+ ), g = S(() => {
79
+ e && n(null, { clicked: null, clickedIndex: null });
80
+ }, [n, e]), v = S(
81
+ (o) => n(o[0], { clicked: null, clickedIndex: null }),
82
+ [n]
83
+ ), d = fe({ data: a, onSelect: $, initialHover: u });
84
+ return { onSelect: $, setSelected: v, clear: g, ...d };
85
+ }, yt = ({
86
+ value: e = [],
87
+ replaceOnSingle: n = !1,
88
+ onChange: r,
89
+ initialHover: s,
90
+ allowNone: u = !0,
91
+ closeDialogOnSelect: c = !1,
92
+ autoSelectOnNone: l = !1
93
+ }) => {
94
+ const { data: a } = le(), m = L(null), p = se({ triggers: [["Shift"]], loose: !0 }), $ = se({ triggers: [["Control"]], loose: !0 }), g = A(e), v = A(a);
95
+ q(() => {
96
+ const f = a.some((x) => e.includes(x));
97
+ l && a.length > 0 && !f && r([a[0]], { clicked: a[0], clickedIndex: 0 });
98
+ }, [l, r, e, a.length, a]);
99
+ const d = S(
100
+ (f) => {
101
+ const x = m.current, b = v.current;
102
+ let y = [];
103
+ const R = U.toArray(g.current).filter((I) => I != null);
104
+ if ($.current.held && n)
105
+ R.includes(f) ? y = R.filter((I) => I !== f) : y = [...R, f];
106
+ else if (p.current.held && x !== null) {
107
+ const [I, z] = [
108
+ b.findIndex((j) => j === f),
109
+ b.findIndex((j) => j === x)
110
+ ].sort((j, _) => j - _), P = b.slice(I, z + 1).map((j) => j);
111
+ P.slice(1, P.length - 1).every((j) => R.includes(j)) && R.includes(f) ? y = R.filter((j) => !P.includes(j)) : y = [...R, ...P], m.current = null;
112
+ } else
113
+ m.current = f, n ? y = R.includes(f) && R.length === 1 ? [] : [f] : R.includes(f) ? y = R.filter((I) => I !== f) : y = [...R, f];
114
+ const k = Ke.unique(y);
115
+ if (k.length === 0) {
116
+ if (!u) return;
117
+ m.current = null;
118
+ }
119
+ r(k, {
120
+ clicked: f,
121
+ clickedIndex: b.findIndex((I) => I === f)
122
+ }), c && close();
123
+ },
124
+ [g, v, r]
125
+ ), o = S(
126
+ () => r([], { clicked: null, clickedIndex: 0 }),
127
+ [r]
128
+ ), t = S(
129
+ (f) => r(f, { clicked: null, clickedIndex: 0 }),
130
+ [r]
131
+ ), i = fe({ data: a, onSelect: d, initialHover: s });
132
+ return { onSelect: d, setSelected: t, clear: o, ...i };
133
+ }, St = () => {
134
+ const e = at(() => /* @__PURE__ */ new Map()), n = S((s) => {
135
+ e.current.forEach((u, c) => {
136
+ (u == null || s.includes(u)) && c();
137
+ });
138
+ }, []), r = S((s, u) => {
139
+ if (e.current.has(s)) {
140
+ const c = e.current.get(s);
141
+ console.warn(
142
+ `[store] attempted to subscribe listener with key ${c} to key ${u} without being unsubscribed first`
143
+ );
144
+ }
145
+ return e.current.set(s, u), () => e.current.delete(s);
146
+ }, []);
147
+ return { notifyListeners: n, subscribe: r };
148
+ }, me = Z({
149
+ getState: () => ({ value: void 0, hover: void 0 }),
150
+ onSelect: () => {
151
+ },
152
+ setSelected: () => {
153
+ },
154
+ clear: () => {
155
+ },
156
+ subscribe: () => () => {
157
+ }
158
+ }), Et = (e, n) => e == null ? !1 : Array.isArray(e) ? e.includes(n) : e === n, wt = ({
159
+ children: e,
160
+ ...n
161
+ }) => {
162
+ const { value: r } = n, s = yt(n);
163
+ return /* @__PURE__ */ h.jsx(he, { value: r, ...s, children: e });
164
+ }, jt = ({
165
+ children: e,
166
+ ...n
167
+ }) => {
168
+ const { value: r } = n, s = Rt(n);
169
+ return /* @__PURE__ */ h.jsx(he, { value: r, ...s, children: e });
170
+ }, he = ({
171
+ value: e,
172
+ onSelect: n,
173
+ clear: r,
174
+ setSelected: s,
175
+ children: u,
176
+ hover: c
177
+ }) => {
178
+ const l = L(U.toArray(e)), a = A(c), { notifyListeners: m, subscribe: p } = St(), $ = S(
179
+ () => ({ value: l.current, hover: a.current }),
180
+ []
181
+ ), g = T(
182
+ () => ({
183
+ onSelect: n,
184
+ setSelected: s,
185
+ clear: r,
186
+ hover: c,
187
+ subscribe: p,
188
+ getState: $
189
+ }),
190
+ [$, n, s, r, c, p]
191
+ );
192
+ return q(() => {
193
+ const v = l.current, d = U.toArray(e), o = [...v, ...d];
194
+ l.current = d, m(o);
195
+ }, [e, m]), /* @__PURE__ */ h.jsx(me.Provider, { value: g, children: u });
196
+ }, Y = () => Me(me), It = (e) => {
197
+ const { getState: n, onSelect: r, subscribe: s } = Y(), u = S(() => r(e), [e, r]), c = oe(
198
+ S((l) => s(l, e), [e, s]),
199
+ S(() => {
200
+ const l = n(), a = Et(l.value, e), m = l.hover === e;
201
+ return a && m ? "selected-hovered" : a ? "selected" : m ? "hovered" : "none";
202
+ }, [e, n])
203
+ );
204
+ return T(
205
+ () => ({
206
+ selected: c === "selected" || c === "selected-hovered",
207
+ hovered: c === "hovered" || c === "selected-hovered",
208
+ onSelect: u
209
+ }),
210
+ [c, u]
211
+ );
212
+ }, er = () => {
213
+ const { getState: e, subscribe: n } = Y(), r = oe(n, () => e().value);
214
+ return T(() => r == null ? [] : U.toArray(r), [r]);
215
+ }, tr = () => Y().clear, At = ({
216
+ data: e,
217
+ getItem: n,
218
+ subscribe: r,
219
+ itemHeight: s,
220
+ multiple: u,
221
+ onFetchMore: c,
222
+ virtual: l = !1,
223
+ value: a,
224
+ onChange: m,
225
+ ...p
226
+ }) => /* @__PURE__ */ h.jsx(
227
+ st,
228
+ {
229
+ data: e,
230
+ getItem: n,
231
+ subscribe: r,
232
+ onFetchMore: c,
233
+ itemHeight: s,
234
+ virtual: l,
235
+ children: u ? /* @__PURE__ */ h.jsx(wt, { value: a, onChange: m, ...p }) : /* @__PURE__ */ h.jsx(jt, { value: a, onChange: m, ...p })
236
+ }
237
+ );
238
+ At.displayName = "Select.Frame";
239
+ function Tt(e) {
240
+ throw new Error('Could not dynamically require "' + e + '". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.');
241
+ }
242
+ var N = { exports: {} }, Pt = N.exports, ne;
243
+ function Lt() {
244
+ return ne || (ne = 1, (function(e, n) {
245
+ (function(r, s) {
246
+ typeof Tt == "function" ? e.exports = s() : r.pluralize = s();
247
+ })(Pt, function() {
248
+ var r = [], s = [], u = {}, c = {}, l = {};
249
+ function a(t) {
250
+ return typeof t == "string" ? new RegExp("^" + t + "$", "i") : t;
251
+ }
252
+ function m(t, i) {
253
+ return t === i ? i : t === t.toLowerCase() ? i.toLowerCase() : t === t.toUpperCase() ? i.toUpperCase() : t[0] === t[0].toUpperCase() ? i.charAt(0).toUpperCase() + i.substr(1).toLowerCase() : i.toLowerCase();
254
+ }
255
+ function p(t, i) {
256
+ return t.replace(/\$(\d{1,2})/g, function(f, x) {
257
+ return i[x] || "";
258
+ });
259
+ }
260
+ function $(t, i) {
261
+ return t.replace(i[0], function(f, x) {
262
+ var b = p(i[1], arguments);
263
+ return m(f === "" ? t[x - 1] : f, b);
264
+ });
265
+ }
266
+ function g(t, i, f) {
267
+ if (!t.length || u.hasOwnProperty(t))
268
+ return i;
269
+ for (var x = f.length; x--; ) {
270
+ var b = f[x];
271
+ if (b[0].test(i)) return $(i, b);
272
+ }
273
+ return i;
274
+ }
275
+ function v(t, i, f) {
276
+ return function(x) {
277
+ var b = x.toLowerCase();
278
+ return i.hasOwnProperty(b) ? m(x, b) : t.hasOwnProperty(b) ? m(x, t[b]) : g(b, x, f);
279
+ };
280
+ }
281
+ function d(t, i, f, x) {
282
+ return function(b) {
283
+ var y = b.toLowerCase();
284
+ return i.hasOwnProperty(y) ? !0 : t.hasOwnProperty(y) ? !1 : g(y, y, f) === y;
285
+ };
286
+ }
287
+ function o(t, i, f) {
288
+ var x = i === 1 ? o.singular(t) : o.plural(t);
289
+ return (f ? i + " " : "") + x;
290
+ }
291
+ return o.plural = v(
292
+ l,
293
+ c,
294
+ r
295
+ ), o.isPlural = d(
296
+ l,
297
+ c,
298
+ r
299
+ ), o.singular = v(
300
+ c,
301
+ l,
302
+ s
303
+ ), o.isSingular = d(
304
+ c,
305
+ l,
306
+ s
307
+ ), o.addPluralRule = function(t, i) {
308
+ r.push([a(t), i]);
309
+ }, o.addSingularRule = function(t, i) {
310
+ s.push([a(t), i]);
311
+ }, o.addUncountableRule = function(t) {
312
+ if (typeof t == "string") {
313
+ u[t.toLowerCase()] = !0;
314
+ return;
315
+ }
316
+ o.addPluralRule(t, "$0"), o.addSingularRule(t, "$0");
317
+ }, o.addIrregularRule = function(t, i) {
318
+ i = i.toLowerCase(), t = t.toLowerCase(), l[t] = i, c[i] = t;
319
+ }, [
320
+ // Pronouns.
321
+ ["I", "we"],
322
+ ["me", "us"],
323
+ ["he", "they"],
324
+ ["she", "they"],
325
+ ["them", "them"],
326
+ ["myself", "ourselves"],
327
+ ["yourself", "yourselves"],
328
+ ["itself", "themselves"],
329
+ ["herself", "themselves"],
330
+ ["himself", "themselves"],
331
+ ["themself", "themselves"],
332
+ ["is", "are"],
333
+ ["was", "were"],
334
+ ["has", "have"],
335
+ ["this", "these"],
336
+ ["that", "those"],
337
+ // Words ending in with a consonant and `o`.
338
+ ["echo", "echoes"],
339
+ ["dingo", "dingoes"],
340
+ ["volcano", "volcanoes"],
341
+ ["tornado", "tornadoes"],
342
+ ["torpedo", "torpedoes"],
343
+ // Ends with `us`.
344
+ ["genus", "genera"],
345
+ ["viscus", "viscera"],
346
+ // Ends with `ma`.
347
+ ["stigma", "stigmata"],
348
+ ["stoma", "stomata"],
349
+ ["dogma", "dogmata"],
350
+ ["lemma", "lemmata"],
351
+ ["schema", "schemata"],
352
+ ["anathema", "anathemata"],
353
+ // Other irregular rules.
354
+ ["ox", "oxen"],
355
+ ["axe", "axes"],
356
+ ["die", "dice"],
357
+ ["yes", "yeses"],
358
+ ["foot", "feet"],
359
+ ["eave", "eaves"],
360
+ ["goose", "geese"],
361
+ ["tooth", "teeth"],
362
+ ["quiz", "quizzes"],
363
+ ["human", "humans"],
364
+ ["proof", "proofs"],
365
+ ["carve", "carves"],
366
+ ["valve", "valves"],
367
+ ["looey", "looies"],
368
+ ["thief", "thieves"],
369
+ ["groove", "grooves"],
370
+ ["pickaxe", "pickaxes"],
371
+ ["passerby", "passersby"]
372
+ ].forEach(function(t) {
373
+ return o.addIrregularRule(t[0], t[1]);
374
+ }), [
375
+ [/s?$/i, "s"],
376
+ [/[^\u0000-\u007F]$/i, "$0"],
377
+ [/([^aeiou]ese)$/i, "$1"],
378
+ [/(ax|test)is$/i, "$1es"],
379
+ [/(alias|[^aou]us|t[lm]as|gas|ris)$/i, "$1es"],
380
+ [/(e[mn]u)s?$/i, "$1s"],
381
+ [/([^l]ias|[aeiou]las|[ejzr]as|[iu]am)$/i, "$1"],
382
+ [/(alumn|syllab|vir|radi|nucle|fung|cact|stimul|termin|bacill|foc|uter|loc|strat)(?:us|i)$/i, "$1i"],
383
+ [/(alumn|alg|vertebr)(?:a|ae)$/i, "$1ae"],
384
+ [/(seraph|cherub)(?:im)?$/i, "$1im"],
385
+ [/(her|at|gr)o$/i, "$1oes"],
386
+ [/(agend|addend|millenni|dat|extrem|bacteri|desiderat|strat|candelabr|errat|ov|symposi|curricul|automat|quor)(?:a|um)$/i, "$1a"],
387
+ [/(apheli|hyperbat|periheli|asyndet|noumen|phenomen|criteri|organ|prolegomen|hedr|automat)(?:a|on)$/i, "$1a"],
388
+ [/sis$/i, "ses"],
389
+ [/(?:(kni|wi|li)fe|(ar|l|ea|eo|oa|hoo)f)$/i, "$1$2ves"],
390
+ [/([^aeiouy]|qu)y$/i, "$1ies"],
391
+ [/([^ch][ieo][ln])ey$/i, "$1ies"],
392
+ [/(x|ch|ss|sh|zz)$/i, "$1es"],
393
+ [/(matr|cod|mur|sil|vert|ind|append)(?:ix|ex)$/i, "$1ices"],
394
+ [/\b((?:tit)?m|l)(?:ice|ouse)$/i, "$1ice"],
395
+ [/(pe)(?:rson|ople)$/i, "$1ople"],
396
+ [/(child)(?:ren)?$/i, "$1ren"],
397
+ [/eaux$/i, "$0"],
398
+ [/m[ae]n$/i, "men"],
399
+ ["thou", "you"]
400
+ ].forEach(function(t) {
401
+ return o.addPluralRule(t[0], t[1]);
402
+ }), [
403
+ [/s$/i, ""],
404
+ [/(ss)$/i, "$1"],
405
+ [/(wi|kni|(?:after|half|high|low|mid|non|night|[^\w]|^)li)ves$/i, "$1fe"],
406
+ [/(ar|(?:wo|[ae])l|[eo][ao])ves$/i, "$1f"],
407
+ [/ies$/i, "y"],
408
+ [/\b([pl]|zomb|(?:neck|cross)?t|coll|faer|food|gen|goon|group|lass|talk|goal|cut)ies$/i, "$1ie"],
409
+ [/\b(mon|smil)ies$/i, "$1ey"],
410
+ [/\b((?:tit)?m|l)ice$/i, "$1ouse"],
411
+ [/(seraph|cherub)im$/i, "$1"],
412
+ [/(x|ch|ss|sh|zz|tto|go|cho|alias|[^aou]us|t[lm]as|gas|(?:her|at|gr)o|[aeiou]ris)(?:es)?$/i, "$1"],
413
+ [/(analy|diagno|parenthe|progno|synop|the|empha|cri|ne)(?:sis|ses)$/i, "$1sis"],
414
+ [/(movie|twelve|abuse|e[mn]u)s$/i, "$1"],
415
+ [/(test)(?:is|es)$/i, "$1is"],
416
+ [/(alumn|syllab|vir|radi|nucle|fung|cact|stimul|termin|bacill|foc|uter|loc|strat)(?:us|i)$/i, "$1us"],
417
+ [/(agend|addend|millenni|dat|extrem|bacteri|desiderat|strat|candelabr|errat|ov|symposi|curricul|quor)a$/i, "$1um"],
418
+ [/(apheli|hyperbat|periheli|asyndet|noumen|phenomen|criteri|organ|prolegomen|hedr|automat)a$/i, "$1on"],
419
+ [/(alumn|alg|vertebr)ae$/i, "$1a"],
420
+ [/(cod|mur|sil|vert|ind)ices$/i, "$1ex"],
421
+ [/(matr|append)ices$/i, "$1ix"],
422
+ [/(pe)(rson|ople)$/i, "$1rson"],
423
+ [/(child)ren$/i, "$1"],
424
+ [/(eau)x?$/i, "$1"],
425
+ [/men$/i, "man"]
426
+ ].forEach(function(t) {
427
+ return o.addSingularRule(t[0], t[1]);
428
+ }), [
429
+ // Singular words with no plurals.
430
+ "adulthood",
431
+ "advice",
432
+ "agenda",
433
+ "aid",
434
+ "aircraft",
435
+ "alcohol",
436
+ "ammo",
437
+ "analytics",
438
+ "anime",
439
+ "athletics",
440
+ "audio",
441
+ "bison",
442
+ "blood",
443
+ "bream",
444
+ "buffalo",
445
+ "butter",
446
+ "carp",
447
+ "cash",
448
+ "chassis",
449
+ "chess",
450
+ "clothing",
451
+ "cod",
452
+ "commerce",
453
+ "cooperation",
454
+ "corps",
455
+ "debris",
456
+ "diabetes",
457
+ "digestion",
458
+ "elk",
459
+ "energy",
460
+ "equipment",
461
+ "excretion",
462
+ "expertise",
463
+ "firmware",
464
+ "flounder",
465
+ "fun",
466
+ "gallows",
467
+ "garbage",
468
+ "graffiti",
469
+ "hardware",
470
+ "headquarters",
471
+ "health",
472
+ "herpes",
473
+ "highjinks",
474
+ "homework",
475
+ "housework",
476
+ "information",
477
+ "jeans",
478
+ "justice",
479
+ "kudos",
480
+ "labour",
481
+ "literature",
482
+ "machinery",
483
+ "mackerel",
484
+ "mail",
485
+ "media",
486
+ "mews",
487
+ "moose",
488
+ "music",
489
+ "mud",
490
+ "manga",
491
+ "news",
492
+ "only",
493
+ "personnel",
494
+ "pike",
495
+ "plankton",
496
+ "pliers",
497
+ "police",
498
+ "pollution",
499
+ "premises",
500
+ "rain",
501
+ "research",
502
+ "rice",
503
+ "salmon",
504
+ "scissors",
505
+ "series",
506
+ "sewage",
507
+ "shambles",
508
+ "shrimp",
509
+ "software",
510
+ "species",
511
+ "staff",
512
+ "swine",
513
+ "tennis",
514
+ "traffic",
515
+ "transportation",
516
+ "trout",
517
+ "tuna",
518
+ "wealth",
519
+ "welfare",
520
+ "whiting",
521
+ "wildebeest",
522
+ "wildlife",
523
+ "you",
524
+ /pok[eé]mon$/i,
525
+ // Regexes.
526
+ /[^aeiou]ese$/i,
527
+ // "chinese", "japanese"
528
+ /deer$/i,
529
+ // "deer", "reindeer"
530
+ /fish$/i,
531
+ // "fish", "blowfish", "angelfish"
532
+ /measles$/i,
533
+ /o[iu]s$/i,
534
+ // "carnivorous"
535
+ /pox$/i,
536
+ // "chickpox", "smallpox"
537
+ /sheep$/i
538
+ ].forEach(o.addUncountableRule), o;
539
+ });
540
+ })(N)), N.exports;
541
+ }
542
+ var pe = Lt();
543
+ const Ct = ({
544
+ size: e = "medium",
545
+ ref: n,
546
+ value: r,
547
+ onChange: s,
548
+ className: u,
549
+ onFocus: c,
550
+ onKeyDown: l,
551
+ selectOnFocus: a = !1,
552
+ centerPlaceholder: m = !1,
553
+ placeholder: p,
554
+ variant: $ = "outlined",
555
+ level: g,
556
+ onBlur: v,
557
+ disabled: d,
558
+ resetOnBlurIfEmpty: o = !1,
559
+ status: t,
560
+ weight: i,
561
+ style: f,
562
+ contrast: x,
563
+ color: b,
564
+ sharp: y,
565
+ onlyChangeOnBlur: R = !1,
566
+ endContent: k,
567
+ full: I,
568
+ children: z,
569
+ grow: P,
570
+ shrink: j,
571
+ borderColor: _,
572
+ borderWidth: be,
573
+ bordered: Re,
574
+ rounded: ye,
575
+ tabIndex: H,
576
+ trigger: Se,
577
+ triggerIndicator: Ee,
578
+ textColor: we,
579
+ textVariant: je,
580
+ preventClick: Ie,
581
+ onClickDelay: Ae,
582
+ startContent: Q,
583
+ tooltip: Te,
584
+ tooltipDelay: Pe,
585
+ tooltipLocation: Le,
586
+ hideTooltip: Ce,
587
+ ghost: ke,
588
+ area: ze,
589
+ ...qe
590
+ }) => {
591
+ const J = L(r), [D, B] = F(null), ee = L(null), M = L(!1), De = (E) => {
592
+ M.current = !1, o && E.target.value === "" ? s?.(J.current) : R && D != null && s?.(D), B(null), v?.(E);
593
+ }, Ne = (E) => {
594
+ d || (R ? B(E.target.value) : s?.(E.target.value));
595
+ }, Fe = (E) => {
596
+ R && B(r), c?.(E), J.current = E.target.value;
597
+ }, Ue = () => {
598
+ !a || M.current || (M.current = !0, ee.current?.select());
599
+ }, Ve = (E) => {
600
+ R && E.key === "Enter" ? E.currentTarget.blur() : E.key === "Escape" && (E.currentTarget.blur(), E.stopPropagation()), l?.(E);
601
+ }, _e = lt(n, ee), He = (r == null || r.length === 0) && D == null && p != null && typeof p != "string";
602
+ H ??= $ === "preview" ? -1 : void 0;
603
+ const te = {
604
+ style: f,
605
+ full: I,
606
+ grow: P,
607
+ shrink: j
608
+ }, Be = z != null ? {} : te, re = /* @__PURE__ */ h.jsxs(
609
+ Xe,
610
+ {
611
+ el: "div",
612
+ x: !0,
613
+ empty: !0,
614
+ align: "center",
615
+ className: w(
616
+ w.B("input"),
617
+ w.disabled(d),
618
+ t != null && w.M(t),
619
+ u
620
+ ),
621
+ size: e,
622
+ level: g,
623
+ color: b,
624
+ contrast: x,
625
+ sharp: y,
626
+ status: t,
627
+ bordered: Re,
628
+ borderColor: _,
629
+ borderWidth: be,
630
+ pack: !0,
631
+ variant: $,
632
+ rounded: ye,
633
+ tabIndex: H,
634
+ trigger: Se,
635
+ triggerIndicator: Ee,
636
+ textColor: we,
637
+ textVariant: je,
638
+ preventClick: Ie,
639
+ onClickDelay: Ae,
640
+ tooltip: Te,
641
+ tooltipDelay: Pe,
642
+ tooltipLocation: Le,
643
+ hideTooltip: Ce,
644
+ ghost: ke,
645
+ ...Be,
646
+ children: [
647
+ He && /* @__PURE__ */ h.jsx(
648
+ C,
649
+ {
650
+ className: w(
651
+ w.visible(!1),
652
+ w.BE("input", "placeholder"),
653
+ m && w.M("centered")
654
+ ),
655
+ level: g ?? K[e],
656
+ children: p
657
+ }
658
+ ),
659
+ Q != null && /* @__PURE__ */ h.jsx(
660
+ C,
661
+ {
662
+ className: w.BE("input", "start-content"),
663
+ level: g ?? K[e],
664
+ children: Q
665
+ }
666
+ ),
667
+ /* @__PURE__ */ h.jsx(
668
+ gt,
669
+ {
670
+ el: ze ? "textarea" : "input",
671
+ ref: _e,
672
+ value: D ?? r,
673
+ role: "textbox",
674
+ onChange: Ne,
675
+ autoCapitalize: "off",
676
+ autoComplete: "off",
677
+ autoCorrect: "off",
678
+ onFocus: Fe,
679
+ onKeyDown: Ve,
680
+ tabIndex: H,
681
+ onMouseUp: Ue,
682
+ onBlur: De,
683
+ disabled: d,
684
+ placeholder: typeof p == "string" ? p : void 0,
685
+ style: { fontWeight: i },
686
+ ...qe
687
+ }
688
+ ),
689
+ k != null && /* @__PURE__ */ h.jsx(
690
+ C,
691
+ {
692
+ className: w.BE("input", "end-content"),
693
+ level: g ?? K[e],
694
+ children: k
695
+ }
696
+ )
697
+ ]
698
+ }
699
+ );
700
+ return z == null ? re : /* @__PURE__ */ h.jsxs(X, { x: !0, pack: !0, className: w.BE("input", "container"), ...te, children: [
701
+ re,
702
+ z
703
+ ] });
704
+ }, kt = ({
705
+ searchPlaceholder: e = "Search...",
706
+ onSearch: n,
707
+ actions: r,
708
+ dialogVariant: s = "floating"
709
+ }) => {
710
+ const [u, c] = F(""), l = /* @__PURE__ */ h.jsx(
711
+ Ct,
712
+ {
713
+ value: u,
714
+ autoFocus: !0,
715
+ placeholder: e,
716
+ size: s === "modal" ? "large" : "medium",
717
+ contrast: 3,
718
+ rounded: !0,
719
+ grow: !0,
720
+ full: "x",
721
+ onChange: (a) => {
722
+ c(a), n?.(a);
723
+ }
724
+ }
725
+ );
726
+ return r == null ? l : /* @__PURE__ */ h.jsxs(X, { pack: !0, x: !0, children: [
727
+ l,
728
+ r
729
+ ] });
730
+ }, ge = Z([]), $e = Z(() => {
731
+ }), zt = 0.9, rr = ({ children: e, maxHistory: n = 500 }) => {
732
+ const [{ path: r }, { statuses: s }, u] = ut({
733
+ type: ht.TYPE,
734
+ schema: mt,
735
+ initialState: { statuses: [] }
736
+ });
737
+ if (s.length > n) {
738
+ const l = Math.floor(n * zt);
739
+ u((a) => ({ ...a, statuses: s.slice(0, l) }));
740
+ }
741
+ const c = S(
742
+ (l) => {
743
+ const a = { time: O.now(), key: Oe.create(), ...l };
744
+ u((m) => ({
745
+ ...m,
746
+ statuses: [a, ...m.statuses.filter((p) => p.key != a.key)]
747
+ }));
748
+ },
749
+ [u]
750
+ );
751
+ return /* @__PURE__ */ h.jsx(ge, { value: s, children: /* @__PURE__ */ h.jsx($e, { value: c, children: /* @__PURE__ */ h.jsx(dt, { path: r, children: e }) }) });
752
+ }, xe = () => ie($e), sr = () => {
753
+ const e = xe();
754
+ return T(() => ft(e), [e]);
755
+ }, nr = () => {
756
+ const e = xe();
757
+ return T(() => pt(e), [e]);
758
+ }, qt = V.seconds(7), Dt = V.seconds(1), or = ({
759
+ expiration: e = qt,
760
+ poll: n = Dt
761
+ } = {}) => {
762
+ const r = ie(ge), [s, u] = F(/* @__PURE__ */ new Set()), [c, l] = F(() => O.now());
763
+ q(() => {
764
+ const $ = setInterval(() => l(O.now()), n.milliseconds);
765
+ return () => clearInterval($);
766
+ }, [n.milliseconds]);
767
+ const a = T(() => {
768
+ const $ = c.sub(e), v = r.filter(
769
+ ({ key: d, time: o }) => o.afterEq($) && !s.has(d)
770
+ ).reduce((d, o) => {
771
+ const t = `${o.variant}:${o.message}`;
772
+ if (!d.has(t))
773
+ return d.set(t, { ...o, count: 1 }), d;
774
+ const i = d.get(t);
775
+ return d.set(t, {
776
+ ...i,
777
+ count: i.count + 1,
778
+ time: o.time.after(i.time) ? o.time : i.time
779
+ }), d;
780
+ }, /* @__PURE__ */ new Map());
781
+ return Array.from(v.values());
782
+ }, [r, e, s, c]), m = A(r), p = S(($) => {
783
+ u((g) => {
784
+ const v = /* @__PURE__ */ new Set(), d = m.current.find(({ key: o }) => o === $);
785
+ return g.has($) || v.add($), d != null && m.current.filter(
786
+ ({ message: t, variant: i }) => t === d.message && i === d.variant
787
+ ).forEach((t) => v.add(t.key)), v.size == 0 ? g : /* @__PURE__ */ new Set([...v, ...g]);
788
+ });
789
+ }, []);
790
+ return { statuses: a, silence: p };
791
+ }, ir = Ye(Je, { topRight: Qe }), W = ({
792
+ level: e = "p",
793
+ variant: n,
794
+ description: r,
795
+ hideIcon: s = !1,
796
+ status: u,
797
+ className: c,
798
+ children: l,
799
+ message: a,
800
+ color: m,
801
+ ...p
802
+ }) => {
803
+ let $;
804
+ if (u != null) {
805
+ const { key: o, ...t } = u;
806
+ return /* @__PURE__ */ h.jsx(W, { ...p, ...t });
807
+ }
808
+ s || ($ = n === "loading" ? /* @__PURE__ */ h.jsx(et, {}) : /* @__PURE__ */ h.jsx(tt, {}));
809
+ const g = We.isNonZero(r);
810
+ l ??= a;
811
+ const v = /* @__PURE__ */ h.jsxs(
812
+ C,
813
+ {
814
+ className: w(c, !g && w.BE("status", "text")),
815
+ level: e,
816
+ status: n,
817
+ ...r == null ? p : {},
818
+ children: [
819
+ $,
820
+ l
821
+ ]
822
+ }
823
+ );
824
+ if (!g) return v;
825
+ const d = /* @__PURE__ */ h.jsx(C, { level: "small", color: 8, children: r });
826
+ return /* @__PURE__ */ h.jsxs(X, { y: !0, align: "start", gap: "small", center: !0, ...p, children: [
827
+ v,
828
+ d
829
+ ] });
830
+ }, Nt = ({ resourceName: e }) => /* @__PURE__ */ h.jsxs(C, { center: !0, status: "disabled", children: [
831
+ "No ",
832
+ pe.plural(e),
833
+ " found"
834
+ ] }), ve = Ge(
835
+ ({
836
+ onSearch: e,
837
+ children: n,
838
+ emptyContent: r,
839
+ status: s,
840
+ resourceName: u,
841
+ actions: c,
842
+ ...l
843
+ }) => (r = T(() => s != null && s.variant !== "success" ? /* @__PURE__ */ h.jsx(
844
+ W,
845
+ {
846
+ center: !0,
847
+ variant: s?.variant,
848
+ description: s?.description,
849
+ children: s?.message
850
+ }
851
+ ) : typeof r == "string" ? /* @__PURE__ */ h.jsx(W, { center: !0, variant: "disabled", children: r }) : r ?? /* @__PURE__ */ h.jsx(Nt, { resourceName: u }), [s?.key, r]), /* @__PURE__ */ h.jsxs(
852
+ Ze,
853
+ {
854
+ ...l,
855
+ className: w.BE("select", "dialog"),
856
+ bordered: !1,
857
+ children: [
858
+ e != null && /* @__PURE__ */ h.jsx(
859
+ kt,
860
+ {
861
+ dialogVariant: "floating",
862
+ onSearch: e,
863
+ searchPlaceholder: `Search ${pe.plural(u)}...`,
864
+ actions: c
865
+ }
866
+ ),
867
+ /* @__PURE__ */ h.jsx(
868
+ nt,
869
+ {
870
+ emptyContent: r,
871
+ bordered: !0,
872
+ borderColor: 6,
873
+ grow: !0,
874
+ rounded: !0,
875
+ full: "x",
876
+ children: n
877
+ }
878
+ )
879
+ ]
880
+ }
881
+ ))
882
+ );
883
+ ve.displayName = "Select.Dialog";
884
+ const ar = ve, lr = (e) => {
885
+ const { itemKey: n } = e, r = It(n);
886
+ return /* @__PURE__ */ h.jsx(ot, { ...r, ...e });
887
+ };
888
+ export {
889
+ rr as A,
890
+ ir as C,
891
+ ar as D,
892
+ At as F,
893
+ lr as L,
894
+ W as S,
895
+ Ct as T,
896
+ It as a,
897
+ er as b,
898
+ tr as c,
899
+ fe as d,
900
+ yt as e,
901
+ Rt as f,
902
+ sr as g,
903
+ xe as h,
904
+ nr as i,
905
+ or as j,
906
+ pe as p,
907
+ Y as u
908
+ };