@orchidui/dashboard 1.8.1-96 → 1.8.1-97

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 (166) hide show
  1. package/dist/Dashboard/Card/OcCard.js +1 -1
  2. package/dist/Dashboard/TextEditor/QuillEditor.js +1 -1
  3. package/dist/{OcCard-B3SCzVwn.js → OcCard-D3be6IMj.js} +58 -54
  4. package/dist/OcCodeBlock-uFQyGnLq.js +37 -0
  5. package/dist/{OcLottieAnimation-DeMoIDaX.js → OcLottieAnimation-BB7AK2AO.js} +62 -62
  6. package/dist/{QuillEditor-hFQ0MJZO.js → QuillEditor-DRwC0sgJ.js} +579 -556
  7. package/dist/index.js +4 -4
  8. package/package.json +3 -265
  9. package/dist/AccordionTrigger.vue_vue_type_script_setup_true_lang-BdmLII9i.js +0 -295
  10. package/dist/CalendarPrevButton.vue_vue_type_script_setup_true_lang-DpJRpFhK.js +0 -891
  11. package/dist/CardTitle.vue_vue_type_script_setup_true_lang-D2_Bj3jw.js +0 -68
  12. package/dist/Checkbox.vue_vue_type_script_setup_true_lang-C51LjITJ.js +0 -172
  13. package/dist/CollapsibleTrigger-fCarY5DJ.js +0 -154
  14. package/dist/Collection-COudIl-A.js +0 -55
  15. package/dist/ConfigProvider-7mV0D7Sp.js +0 -6
  16. package/dist/DialogContent.vue_vue_type_script_setup_true_lang-CdrrrG29.js +0 -68
  17. package/dist/DialogOverlay-Cj3UTjZ8.js +0 -309
  18. package/dist/DialogPortal-zAvO8zt4.js +0 -23
  19. package/dist/DialogTrigger-BIF1A4hk.js +0 -72
  20. package/dist/DismissableLayer-C7IJliOb.js +0 -151
  21. package/dist/FocusScope--pJ6bboI.js +0 -121
  22. package/dist/FormMessage.vue_vue_type_script_setup_true_lang-DwlnFEn2.js +0 -92
  23. package/dist/Input.vue_vue_type_script_setup_true_lang-BrjsUUvL.js +0 -27
  24. package/dist/Label.vue_vue_type_script_setup_true_lang-D_LMIKBv.js +0 -51
  25. package/dist/ListboxItem-CjMk-mEX.js +0 -417
  26. package/dist/MenuSubTrigger-CUrxnPwO.js +0 -845
  27. package/dist/OcCodeBlock-CBdVqav7.js +0 -37
  28. package/dist/PopoverTrigger.vue_vue_type_script_setup_true_lang-DtI_qIyx.js +0 -394
  29. package/dist/PopperContent-BT3Svcc3.js +0 -1465
  30. package/dist/Presence-CxfTrw6l.js +0 -133
  31. package/dist/Primitive-B3twiLO1.js +0 -44
  32. package/dist/RadioGroupItem.vue_vue_type_script_setup_true_lang-BNfRYIhL.js +0 -297
  33. package/dist/RovingFocusGroup-0OHdFQl0.js +0 -92
  34. package/dist/RovingFocusItem-s7Ug6oxb.js +0 -82
  35. package/dist/SelectValue.vue_vue_type_script_setup_true_lang-CVsYrN1R.js +0 -1255
  36. package/dist/Separator-DRam5i7g.js +0 -54
  37. package/dist/Separator.vue_vue_type_script_setup_true_lang-DGPbh6Dt.js +0 -27
  38. package/dist/Skeleton.vue_vue_type_script_setup_true_lang-k1A7l6Y-.js +0 -17
  39. package/dist/Switch.vue_vue_type_script_setup_true_lang-94ZKgnTz.js +0 -135
  40. package/dist/Teleport-DnUewq5H.js +0 -25
  41. package/dist/Textarea.vue_vue_type_script_setup_true_lang-DKazues9.js +0 -27
  42. package/dist/TooltipTrigger.vue_vue_type_script_setup_true_lang-CZ3AuN38.js +0 -426
  43. package/dist/VisuallyHidden-DMAU4heD.js +0 -41
  44. package/dist/VisuallyHiddenInput-DvJnsVHt.js +0 -59
  45. package/dist/_commonjsHelpers-B4e78b8K.js +0 -28
  46. package/dist/_plugin-vue_export-helper-CHgC5LLL.js +0 -9
  47. package/dist/array-CqVTtuYm.js +0 -6
  48. package/dist/arrays-4jDZqbdb.js +0 -20
  49. package/dist/check-C2tzJ0Gk.js +0 -11
  50. package/dist/chevron-down-CnpAlizg.js +0 -13
  51. package/dist/chevron-left-BOwFasou.js +0 -13
  52. package/dist/chevron-right-D308801z.js +0 -13
  53. package/dist/circle-A-6NpYiX.js +0 -13
  54. package/dist/clamp-BL1Rb24G.js +0 -22
  55. package/dist/constant-CuDQlTIy.js +0 -3433
  56. package/dist/createContext-CZEfaSVa.js +0 -17
  57. package/dist/createLucideIcon-eXqDwUWj.js +0 -71
  58. package/dist/ellipsis-CEG9G7eN.js +0 -15
  59. package/dist/getActiveElement-B-HWdUIb.js +0 -11
  60. package/dist/handleAndDispatchCustomEvent-Byh08EHr.js +0 -11
  61. package/dist/index-B3LW8uSH.js +0 -133
  62. package/dist/index-BIlpXuWX.js +0 -3430
  63. package/dist/index-BlGEiPHj.js +0 -1246
  64. package/dist/index-BwPb_idr.js +0 -574
  65. package/dist/index-C9julNQm.js +0 -173
  66. package/dist/index-C_aI-Wfj.js +0 -34
  67. package/dist/index-CumjCvqB.js +0 -5703
  68. package/dist/index-LqWMCtOd.js +0 -809
  69. package/dist/index-OpE2oGce.js +0 -110
  70. package/dist/isValueEqualOrExist-BDSMUv8t.js +0 -8
  71. package/dist/lib/utils.js +0 -5
  72. package/dist/nullish-CjWwlQS3.js +0 -6
  73. package/dist/ohash.D__AXeF1-DX2n0b2C.js +0 -106
  74. package/dist/plus-CgluTYQY.js +0 -14
  75. package/dist/text-zwICaAnx.js +0 -743
  76. package/dist/ui/accordion/index.js +0 -7
  77. package/dist/ui/alert/index.js +0 -64
  78. package/dist/ui/alert-dialog/index.js +0 -356
  79. package/dist/ui/aspect-ratio/index.js +0 -50
  80. package/dist/ui/auto-form/constant.js +0 -5
  81. package/dist/ui/auto-form/dependencies.js +0 -61
  82. package/dist/ui/auto-form/index.js +0 -227
  83. package/dist/ui/auto-form/interface.js +0 -4
  84. package/dist/ui/auto-form/utils.js +0 -89
  85. package/dist/ui/avatar/index.js +0 -189
  86. package/dist/ui/badge/index.js +0 -37
  87. package/dist/ui/breadcrumb/index.js +0 -126
  88. package/dist/ui/button/index.js +0 -55
  89. package/dist/ui/calendar/index.js +0 -15
  90. package/dist/ui/card/index.js +0 -38
  91. package/dist/ui/carousel/index.js +0 -174
  92. package/dist/ui/carousel/interface.js +0 -1
  93. package/dist/ui/carousel/useCarousel.js +0 -1288
  94. package/dist/ui/chart/index.js +0 -8
  95. package/dist/ui/chart/interface.js +0 -1
  96. package/dist/ui/chart-area/index.js +0 -331
  97. package/dist/ui/chart-bar/index.js +0 -490
  98. package/dist/ui/chart-donut/index.js +0 -509
  99. package/dist/ui/chart-line/index.js +0 -110
  100. package/dist/ui/checkbox/index.js +0 -4
  101. package/dist/ui/collapsible/index.js +0 -60
  102. package/dist/ui/combobox/index.js +0 -877
  103. package/dist/ui/command/index.js +0 -323
  104. package/dist/ui/context-menu/index.js +0 -734
  105. package/dist/ui/dialog/index.js +0 -169
  106. package/dist/ui/drawer/index.js +0 -971
  107. package/dist/ui/dropdown-menu/index.js +0 -723
  108. package/dist/ui/form/index.js +0 -13
  109. package/dist/ui/form/injectionKeys.js +0 -4
  110. package/dist/ui/form/useFormField.js +0 -25
  111. package/dist/ui/hover-card/index.js +0 -331
  112. package/dist/ui/input/index.js +0 -4
  113. package/dist/ui/label/index.js +0 -4
  114. package/dist/ui/menubar/index.js +0 -862
  115. package/dist/ui/navigation-menu/index.js +0 -873
  116. package/dist/ui/number-field/index.js +0 -682
  117. package/dist/ui/pagination/index.js +0 -444
  118. package/dist/ui/pin-input/index.js +0 -308
  119. package/dist/ui/popover/index.js +0 -6
  120. package/dist/ui/progress/index.js +0 -137
  121. package/dist/ui/radio-group/index.js +0 -5
  122. package/dist/ui/range-calendar/index.js +0 -986
  123. package/dist/ui/resizable/index.js +0 -1432
  124. package/dist/ui/scroll-area/index.js +0 -775
  125. package/dist/ui/select/index.js +0 -135
  126. package/dist/ui/separator/index.js +0 -4
  127. package/dist/ui/sheet/index.js +0 -188
  128. package/dist/ui/sidebar/index.js +0 -652
  129. package/dist/ui/sidebar/utils.js +0 -12
  130. package/dist/ui/skeleton/index.js +0 -4
  131. package/dist/ui/slider/index.js +0 -478
  132. package/dist/ui/sonner/index.js +0 -892
  133. package/dist/ui/stepper/index.js +0 -442
  134. package/dist/ui/switch/index.js +0 -4
  135. package/dist/ui/table/index.js +0 -153
  136. package/dist/ui/tabs/index.js +0 -280
  137. package/dist/ui/tags-input/index.js +0 -449
  138. package/dist/ui/textarea/index.js +0 -4
  139. package/dist/ui/toast/index.js +0 -738
  140. package/dist/ui/toast/use-toast.js +0 -85
  141. package/dist/ui/toggle/index.js +0 -6
  142. package/dist/ui/toggle-group/index.js +0 -112
  143. package/dist/ui/tooltip/index.js +0 -29
  144. package/dist/useArrowNavigation-BRMPveaB.js +0 -49
  145. package/dist/useBodyScrollLock-CazCRZjZ.js +0 -153
  146. package/dist/useDirection-C3C_TLKm.js +0 -14
  147. package/dist/useFocusGuards-CyjC9cG9.js +0 -26
  148. package/dist/useFormControl-CFVC51Lp.js +0 -11
  149. package/dist/useForwardExpose-DZT6mL_U.js +0 -37
  150. package/dist/useForwardPropsEmits-0XKBv1pB.js +0 -33
  151. package/dist/useGraceArea-D7-GP1ii.js +0 -137
  152. package/dist/useId-reAg216X.js +0 -13
  153. package/dist/useKbd-BJNupnml.js +0 -41
  154. package/dist/useLocale-BfU0LC8Z.js +0 -14
  155. package/dist/useNonce-C1ZOgOp5.js +0 -14
  156. package/dist/usePrimitiveElement-BjwUvHih.js +0 -15
  157. package/dist/useSingleOrMultipleValue-BkTAaaJB.js +0 -43
  158. package/dist/useSize-BnyQ8FZF.js +0 -37
  159. package/dist/useTypeahead-oSidjyFF.js +0 -40
  160. package/dist/utils-DKNaYMZh.js +0 -57
  161. package/dist/utils-Dx9la83v.js +0 -35
  162. package/dist/utils-DxQ_ywGa.js +0 -55
  163. package/dist/utils-SFgRDk1R.js +0 -2748
  164. package/dist/utils-W-UiqiPE.js +0 -1869
  165. package/dist/vee-validate-Cf8JDJ_k.js +0 -2232
  166. package/dist/x-Cl6YllUK.js +0 -14
@@ -1,574 +0,0 @@
1
- import { toValue as m, customRef as $, watch as g, nextTick as z, shallowRef as E, readonly as T, getCurrentScope as J, onScopeDispose as Q, effectScope as j, computed as w, onBeforeUnmount as X, watchEffect as q, isRef as x, reactive as U, unref as K, getCurrentInstance as W, toRef as Y, ref as k, toRefs as V, onMounted as Z } from "vue";
2
- function Ae(e, t) {
3
- var o;
4
- const n = E();
5
- return q(() => {
6
- n.value = e();
7
- }, {
8
- ...t,
9
- flush: (o = void 0) != null ? o : "sync"
10
- }), T(n);
11
- }
12
- function y(e) {
13
- return J() ? (Q(e), !0) : !1;
14
- }
15
- function Te() {
16
- const e = /* @__PURE__ */ new Set(), t = (i) => {
17
- e.delete(i);
18
- };
19
- return {
20
- on: (i) => {
21
- e.add(i);
22
- const l = () => t(i);
23
- return y(l), {
24
- off: l
25
- };
26
- },
27
- off: t,
28
- trigger: (...i) => Promise.all(Array.from(e).map((l) => l(...i))),
29
- clear: () => {
30
- e.clear();
31
- }
32
- };
33
- }
34
- function _e(e) {
35
- let t = !1, o;
36
- const n = j(!0);
37
- return (...r) => (t || (o = n.run(() => e(...r)), t = !0), o);
38
- }
39
- function Fe(e) {
40
- let t = 0, o, n;
41
- const r = () => {
42
- t -= 1, n && t <= 0 && (n.stop(), o = void 0, n = void 0);
43
- };
44
- return (...i) => (t += 1, n || (n = j(!0), o = n.run(() => e(...i))), y(r), o);
45
- }
46
- function ee(e) {
47
- if (!x(e))
48
- return U(e);
49
- const t = new Proxy({}, {
50
- get(o, n, r) {
51
- return K(Reflect.get(e.value, n, r));
52
- },
53
- set(o, n, r) {
54
- return x(e.value[n]) && !x(r) ? e.value[n].value = r : e.value[n] = r, !0;
55
- },
56
- deleteProperty(o, n) {
57
- return Reflect.deleteProperty(e.value, n);
58
- },
59
- has(o, n) {
60
- return Reflect.has(e.value, n);
61
- },
62
- ownKeys() {
63
- return Object.keys(e.value);
64
- },
65
- getOwnPropertyDescriptor() {
66
- return {
67
- enumerable: !0,
68
- configurable: !0
69
- };
70
- }
71
- });
72
- return U(t);
73
- }
74
- function te(e) {
75
- return ee(w(e));
76
- }
77
- function Re(e, ...t) {
78
- const o = t.flat(), n = o[0];
79
- return te(() => Object.fromEntries(typeof n == "function" ? Object.entries(V(e)).filter(([r, i]) => !n(m(i), r)) : Object.entries(V(e)).filter((r) => !o.includes(r[0]))));
80
- }
81
- const M = typeof window < "u" && typeof document < "u";
82
- typeof WorkerGlobalScope < "u" && globalThis instanceof WorkerGlobalScope;
83
- const ne = (e) => typeof e < "u", oe = (e) => e != null, re = Object.prototype.toString, ie = (e) => re.call(e) === "[object Object]", S = () => {
84
- }, Pe = /* @__PURE__ */ ue();
85
- function ue() {
86
- var e, t;
87
- return M && ((e = window == null ? void 0 : window.navigator) == null ? void 0 : e.userAgent) && (/iP(?:ad|hone|od)/.test(window.navigator.userAgent) || ((t = window == null ? void 0 : window.navigator) == null ? void 0 : t.maxTouchPoints) > 2 && /iPad|Macintosh/.test(window == null ? void 0 : window.navigator.userAgent));
88
- }
89
- function B(e, t) {
90
- function o(...n) {
91
- return new Promise((r, i) => {
92
- Promise.resolve(e(() => t.apply(this, n), { fn: t, thisArg: this, args: n })).then(r).catch(i);
93
- });
94
- }
95
- return o;
96
- }
97
- const G = (e) => e();
98
- function se(e, t = {}) {
99
- let o, n, r = S;
100
- const i = (u) => {
101
- clearTimeout(u), r(), r = S;
102
- };
103
- let l;
104
- return (u) => {
105
- const a = m(e), c = m(t.maxWait);
106
- return o && i(o), a <= 0 || c !== void 0 && c <= 0 ? (n && (i(n), n = null), Promise.resolve(u())) : new Promise((v, f) => {
107
- r = t.rejectOnCancel ? f : v, l = u, c && !n && (n = setTimeout(() => {
108
- o && i(o), n = null, v(l());
109
- }, c)), o = setTimeout(() => {
110
- n && i(n), n = null, v(u());
111
- }, a);
112
- });
113
- };
114
- }
115
- function le(e = G, t = {}) {
116
- const {
117
- initialState: o = "active"
118
- } = t, n = ae(o === "active");
119
- function r() {
120
- n.value = !1;
121
- }
122
- function i() {
123
- n.value = !0;
124
- }
125
- const l = (...s) => {
126
- n.value && e(...s);
127
- };
128
- return { isActive: T(n), pause: r, resume: i, eventFilter: l };
129
- }
130
- function ce(e) {
131
- return W();
132
- }
133
- function P(e) {
134
- return Array.isArray(e) ? e : [e];
135
- }
136
- function ae(...e) {
137
- if (e.length !== 1)
138
- return Y(...e);
139
- const t = e[0];
140
- return typeof t == "function" ? T($(() => ({ get: t, set: S }))) : k(t);
141
- }
142
- function Ce(e, t = 1e4) {
143
- return $((o, n) => {
144
- let r = m(e), i;
145
- const l = () => setTimeout(() => {
146
- r = m(e), n();
147
- }, m(t));
148
- return y(() => {
149
- clearTimeout(i);
150
- }), {
151
- get() {
152
- return o(), r;
153
- },
154
- set(s) {
155
- r = s, n(), clearTimeout(i), i = l();
156
- }
157
- };
158
- });
159
- }
160
- function xe(e, t = 200, o = {}) {
161
- return B(
162
- se(t, o),
163
- e
164
- );
165
- }
166
- function fe(e, t, o = {}) {
167
- const {
168
- eventFilter: n = G,
169
- ...r
170
- } = o;
171
- return g(
172
- e,
173
- B(
174
- n,
175
- t
176
- ),
177
- r
178
- );
179
- }
180
- function D(e, t, o = {}) {
181
- const {
182
- eventFilter: n,
183
- initialState: r = "active",
184
- ...i
185
- } = o, { eventFilter: l, pause: s, resume: u, isActive: a } = le(n, { initialState: r });
186
- return { stop: fe(
187
- e,
188
- t,
189
- {
190
- ...i,
191
- eventFilter: l
192
- }
193
- ), pause: s, resume: u, isActive: a };
194
- }
195
- function We(e, t, ...[o]) {
196
- const {
197
- flush: n = "sync",
198
- deep: r = !1,
199
- immediate: i = !0,
200
- direction: l = "both",
201
- transform: s = {}
202
- } = o || {}, u = [], a = "ltr" in s && s.ltr || ((f) => f), c = "rtl" in s && s.rtl || ((f) => f);
203
- return (l === "both" || l === "ltr") && u.push(D(
204
- e,
205
- (f) => {
206
- u.forEach((d) => d.pause()), t.value = a(f), u.forEach((d) => d.resume());
207
- },
208
- { flush: n, deep: r, immediate: i }
209
- )), (l === "both" || l === "rtl") && u.push(D(
210
- t,
211
- (f) => {
212
- u.forEach((d) => d.pause()), e.value = c(f), u.forEach((d) => d.resume());
213
- },
214
- { flush: n, deep: r, immediate: i }
215
- )), () => {
216
- u.forEach((f) => f.stop());
217
- };
218
- }
219
- const Me = m;
220
- function Ne(e, t) {
221
- ce() && X(e, t);
222
- }
223
- function de(e, t, o = {}) {
224
- const {
225
- immediate: n = !0,
226
- immediateCallback: r = !1
227
- } = o, i = E(!1);
228
- let l = null;
229
- function s() {
230
- l && (clearTimeout(l), l = null);
231
- }
232
- function u() {
233
- i.value = !1, s();
234
- }
235
- function a(...c) {
236
- r && e(), s(), i.value = !0, l = setTimeout(() => {
237
- i.value = !1, l = null, e(...c);
238
- }, m(t));
239
- }
240
- return n && (i.value = !0, M && a()), y(u), {
241
- isPending: T(i),
242
- start: a,
243
- stop: u
244
- };
245
- }
246
- function Ie(e = 1e3, t = {}) {
247
- const {
248
- controls: o = !1,
249
- callback: n
250
- } = t, r = de(
251
- n ?? S,
252
- e,
253
- t
254
- ), i = w(() => !r.isPending.value);
255
- return o ? {
256
- ready: i,
257
- ...r
258
- } : i;
259
- }
260
- function ve(e, t, o) {
261
- return g(
262
- e,
263
- t,
264
- {
265
- ...o,
266
- immediate: !0
267
- }
268
- );
269
- }
270
- function Le(e, t, o) {
271
- const n = g(e, (...r) => (z(() => n()), t(...r)), o);
272
- return n;
273
- }
274
- const b = M ? window : void 0;
275
- function O(e) {
276
- var t;
277
- const o = m(e);
278
- return (t = o == null ? void 0 : o.$el) != null ? t : o;
279
- }
280
- function A(...e) {
281
- const t = [], o = () => {
282
- t.forEach((s) => s()), t.length = 0;
283
- }, n = (s, u, a, c) => (s.addEventListener(u, a, c), () => s.removeEventListener(u, a, c)), r = w(() => {
284
- const s = P(m(e[0])).filter((u) => u != null);
285
- return s.every((u) => typeof u != "string") ? s : void 0;
286
- }), i = ve(
287
- () => {
288
- var s, u;
289
- return [
290
- (u = (s = r.value) == null ? void 0 : s.map((a) => O(a))) != null ? u : [b].filter((a) => a != null),
291
- P(m(r.value ? e[1] : e[0])),
292
- P(K(r.value ? e[2] : e[1])),
293
- // @ts-expect-error - TypeScript gets the correct types, but somehow still complains
294
- m(r.value ? e[3] : e[2])
295
- ];
296
- },
297
- ([s, u, a, c]) => {
298
- if (o(), !(s != null && s.length) || !(u != null && u.length) || !(a != null && a.length))
299
- return;
300
- const v = ie(c) ? { ...c } : c;
301
- t.push(
302
- ...s.flatMap(
303
- (f) => u.flatMap(
304
- (d) => a.map((p) => n(f, d, p, v))
305
- )
306
- )
307
- );
308
- },
309
- { flush: "post" }
310
- ), l = () => {
311
- i(), o();
312
- };
313
- return y(o), l;
314
- }
315
- function me() {
316
- const e = E(!1), t = W();
317
- return t && Z(() => {
318
- e.value = !0;
319
- }, t), e;
320
- }
321
- function H(e) {
322
- const t = me();
323
- return w(() => (t.value, !!e()));
324
- }
325
- function pe(e, t, o = {}) {
326
- const { window: n = b, ...r } = o;
327
- let i;
328
- const l = H(() => n && "MutationObserver" in n), s = () => {
329
- i && (i.disconnect(), i = void 0);
330
- }, u = w(() => {
331
- const f = m(e), d = P(f).map(O).filter(oe);
332
- return new Set(d);
333
- }), a = g(
334
- () => u.value,
335
- (f) => {
336
- s(), l.value && f.size && (i = new MutationObserver(t), f.forEach((d) => i.observe(d, r)));
337
- },
338
- { immediate: !0, flush: "post" }
339
- ), c = () => i == null ? void 0 : i.takeRecords(), v = () => {
340
- a(), s();
341
- };
342
- return y(v), {
343
- isSupported: l,
344
- stop: v,
345
- takeRecords: c
346
- };
347
- }
348
- function he(e, t, o = {}) {
349
- const {
350
- window: n = b,
351
- document: r = n == null ? void 0 : n.document,
352
- flush: i = "sync"
353
- } = o;
354
- if (!n || !r)
355
- return S;
356
- let l;
357
- const s = (c) => {
358
- l == null || l(), l = c;
359
- }, u = q(() => {
360
- const c = O(e);
361
- if (c) {
362
- const { stop: v } = pe(
363
- r,
364
- (f) => {
365
- f.map((p) => [...p.removedNodes]).flat().some((p) => p === c || p.contains(c)) && t(f);
366
- },
367
- {
368
- window: n,
369
- childList: !0,
370
- subtree: !0
371
- }
372
- );
373
- s(v);
374
- }
375
- }, { flush: i }), a = () => {
376
- u(), s();
377
- };
378
- return y(a), a;
379
- }
380
- function we(e) {
381
- return typeof e == "function" ? e : typeof e == "string" ? (t) => t.key === e : Array.isArray(e) ? (t) => e.includes(t.key) : () => !0;
382
- }
383
- function Ue(...e) {
384
- let t, o, n = {};
385
- e.length === 3 ? (t = e[0], o = e[1], n = e[2]) : e.length === 2 ? typeof e[1] == "object" ? (t = !0, o = e[0], n = e[1]) : (t = e[0], o = e[1]) : (t = !0, o = e[0]);
386
- const {
387
- target: r = b,
388
- eventName: i = "keydown",
389
- passive: l = !1,
390
- dedupe: s = !1
391
- } = n, u = we(t);
392
- return A(r, i, (c) => {
393
- c.repeat && m(s) || u(c) && o(c);
394
- }, l);
395
- }
396
- function ye(e = {}) {
397
- var t;
398
- const {
399
- window: o = b,
400
- deep: n = !0,
401
- triggerOnRemoval: r = !1
402
- } = e, i = (t = e.document) != null ? t : o == null ? void 0 : o.document, l = () => {
403
- var a;
404
- let c = i == null ? void 0 : i.activeElement;
405
- if (n)
406
- for (; c != null && c.shadowRoot; )
407
- c = (a = c == null ? void 0 : c.shadowRoot) == null ? void 0 : a.activeElement;
408
- return c;
409
- }, s = E(), u = () => {
410
- s.value = l();
411
- };
412
- if (o) {
413
- const a = {
414
- capture: !0,
415
- passive: !0
416
- };
417
- A(
418
- o,
419
- "blur",
420
- (c) => {
421
- c.relatedTarget === null && u();
422
- },
423
- a
424
- ), A(
425
- o,
426
- "focus",
427
- u,
428
- a
429
- );
430
- }
431
- return r && he(s, u, { document: i }), u(), s;
432
- }
433
- function Ve(e, t = {}) {
434
- const {
435
- immediate: o = !0,
436
- fpsLimit: n = void 0,
437
- window: r = b,
438
- once: i = !1
439
- } = t, l = E(!1), s = w(() => n ? 1e3 / m(n) : null);
440
- let u = 0, a = null;
441
- function c(d) {
442
- if (!l.value || !r)
443
- return;
444
- u || (u = d);
445
- const p = d - u;
446
- if (s.value && p < s.value) {
447
- a = r.requestAnimationFrame(c);
448
- return;
449
- }
450
- if (u = d, e({ delta: p, timestamp: d }), i) {
451
- l.value = !1, a = null;
452
- return;
453
- }
454
- a = r.requestAnimationFrame(c);
455
- }
456
- function v() {
457
- !l.value && r && (l.value = !0, u = 0, a = r.requestAnimationFrame(c));
458
- }
459
- function f() {
460
- l.value = !1, a != null && r && (r.cancelAnimationFrame(a), a = null);
461
- }
462
- return o && v(), y(f), {
463
- isActive: T(l),
464
- pause: f,
465
- resume: v
466
- };
467
- }
468
- function be(e) {
469
- return JSON.parse(JSON.stringify(e));
470
- }
471
- function De(e, t, o = {}) {
472
- const { window: n = b, ...r } = o;
473
- let i;
474
- const l = H(() => n && "ResizeObserver" in n), s = () => {
475
- i && (i.disconnect(), i = void 0);
476
- }, u = w(() => {
477
- const v = m(e);
478
- return Array.isArray(v) ? v.map((f) => O(f)) : [O(v)];
479
- }), a = g(
480
- u,
481
- (v) => {
482
- if (s(), l.value && n) {
483
- i = new ResizeObserver(t);
484
- for (const f of v)
485
- f && i.observe(f, r);
486
- }
487
- },
488
- { immediate: !0, flush: "post" }
489
- ), c = () => {
490
- s(), a();
491
- };
492
- return y(c), {
493
- isSupported: l,
494
- stop: c
495
- };
496
- }
497
- const ge = "focusin", Oe = "focusout", Ee = ":focus-within";
498
- function $e(e, t = {}) {
499
- const { window: o = b } = t, n = w(() => O(e)), r = E(!1), i = w(() => r.value), l = ye(t);
500
- if (!o || !l.value)
501
- return { focused: i };
502
- const s = { passive: !0 };
503
- return A(n, ge, () => r.value = !0, s), A(n, Oe, () => {
504
- var u, a, c;
505
- return r.value = (c = (a = (u = n.value) == null ? void 0 : u.matches) == null ? void 0 : a.call(u, Ee)) != null ? c : !1;
506
- }, s), { focused: i };
507
- }
508
- function ze(e, t, o, n = {}) {
509
- var r, i, l;
510
- const {
511
- clone: s = !1,
512
- passive: u = !1,
513
- eventName: a,
514
- deep: c = !1,
515
- defaultValue: v,
516
- shouldEmit: f
517
- } = n, d = W(), p = o || (d == null ? void 0 : d.emit) || ((r = d == null ? void 0 : d.$emit) == null ? void 0 : r.bind(d)) || ((l = (i = d == null ? void 0 : d.proxy) == null ? void 0 : i.$emit) == null ? void 0 : l.bind(d == null ? void 0 : d.proxy));
518
- let _ = a;
519
- t || (t = "modelValue"), _ = _ || `update:${t.toString()}`;
520
- const N = (h) => s ? typeof s == "function" ? s(h) : be(h) : h, I = () => ne(e[t]) ? N(e[t]) : v, L = (h) => {
521
- f ? f(h) && p(_, h) : p(_, h);
522
- };
523
- if (u) {
524
- const h = I(), C = k(h);
525
- let F = !1;
526
- return g(
527
- () => e[t],
528
- (R) => {
529
- F || (F = !0, C.value = N(R), z(() => F = !1));
530
- }
531
- ), g(
532
- C,
533
- (R) => {
534
- !F && (R !== e[t] || c) && L(R);
535
- },
536
- { deep: c }
537
- ), C;
538
- } else
539
- return w({
540
- get() {
541
- return I();
542
- },
543
- set(h) {
544
- L(h);
545
- }
546
- });
547
- }
548
- export {
549
- O as a,
550
- me as b,
551
- Te as c,
552
- _e as d,
553
- A as e,
554
- b as f,
555
- Fe as g,
556
- Ne as h,
557
- M as i,
558
- Pe as j,
559
- Ae as k,
560
- Re as l,
561
- $e as m,
562
- de as n,
563
- Ue as o,
564
- te as p,
565
- De as q,
566
- Ce as r,
567
- We as s,
568
- Me as t,
569
- ze as u,
570
- xe as v,
571
- Le as w,
572
- Ie as x,
573
- Ve as y
574
- };