@svgrid/grid-wc 3.0.8 → 3.0.10

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 (52) hide show
  1. package/dist/GridMenus-BsOHO9kc.js +1086 -0
  2. package/dist/{SvChartMenu-DkSyLWYH.js → SvChartMenu-CwWtjXsG.js} +153 -153
  3. package/dist/{shadow/SvDateRangeInput-BrYTQEMM.js → SvDateRangeInput-DtKZ07aC.js} +88 -88
  4. package/dist/SvDateTimePicker-C37mOYov.js +766 -0
  5. package/dist/{SvField-Bmzp3ObZ.js → SvField-CpglDJLn.js} +107 -107
  6. package/dist/SvGridCellEditor-C2t-q8n3.js +560 -0
  7. package/dist/{SvGridChart-BSNYAW_W.js → SvGridChart-Bj2Pr2u9.js} +1522 -1522
  8. package/dist/{SvGridChartBuilder-DDl_Bv8k.js → SvGridChartBuilder-Dpw2X4pR.js} +418 -418
  9. package/dist/{shadow/SvGridChartPanel-DkIR-3rA.js → SvGridChartPanel-Ce78cR3g.js} +642 -642
  10. package/dist/{SvGridChartView-B4pqLWnm.js → SvGridChartView-CTfjtiXs.js} +11 -11
  11. package/dist/SvGridDropdown-CfA5Jfe5.js +257 -0
  12. package/dist/angular/fesm2022/svgrid-grid-wc-angular.mjs +4 -2
  13. package/dist/angular/fesm2022/svgrid-grid-wc-angular.mjs.map +1 -1
  14. package/dist/angular/types/svgrid-grid-wc-angular.d.ts +2 -1
  15. package/dist/{chart-export-pdf-hJVuR7_z.js → chart-export-pdf-Bc0Rz4kB.js} +1 -1
  16. package/dist/{shadow/client-DEF0GRjE.js → client-wYhMjrKG.js} +172 -161
  17. package/dist/{date-format-DMTwV8NC.js → date-format-SCGd8EWh.js} +363 -363
  18. package/dist/react/index.d.ts +2 -0
  19. package/dist/react/index.js +1 -1
  20. package/dist/shadow/GridMenus-BsOHO9kc.js +1086 -0
  21. package/dist/shadow/{SvChartMenu-DkSyLWYH.js → SvChartMenu-CwWtjXsG.js} +153 -153
  22. package/dist/{SvDateRangeInput-BrYTQEMM.js → shadow/SvDateRangeInput-DtKZ07aC.js} +88 -88
  23. package/dist/shadow/SvDateTimePicker-C37mOYov.js +766 -0
  24. package/dist/shadow/{SvField-Bmzp3ObZ.js → SvField-CpglDJLn.js} +107 -107
  25. package/dist/shadow/SvGridCellEditor-C2t-q8n3.js +560 -0
  26. package/dist/shadow/{SvGridChart-BSNYAW_W.js → SvGridChart-Bj2Pr2u9.js} +1522 -1522
  27. package/dist/shadow/{SvGridChartBuilder-DDl_Bv8k.js → SvGridChartBuilder-Dpw2X4pR.js} +418 -418
  28. package/dist/{SvGridChartPanel-DkIR-3rA.js → shadow/SvGridChartPanel-Ce78cR3g.js} +642 -642
  29. package/dist/shadow/{SvGridChartView-B4pqLWnm.js → SvGridChartView-CTfjtiXs.js} +11 -11
  30. package/dist/shadow/SvGridDropdown-CfA5Jfe5.js +257 -0
  31. package/dist/shadow/{chart-export-pdf-hJVuR7_z.js → chart-export-pdf-Bc0Rz4kB.js} +1 -1
  32. package/dist/{client-DEF0GRjE.js → shadow/client-wYhMjrKG.js} +172 -161
  33. package/dist/shadow/{date-format-DMTwV8NC.js → date-format-SCGd8EWh.js} +363 -363
  34. package/dist/shadow/sv-grid-shadow-element.d.ts +2 -0
  35. package/dist/shadow/sv-grid-shadow-element.js +4429 -3986
  36. package/dist/shadow/{svelte-virtualizer.svelte-CMX34S17.js → svelte-virtualizer.svelte-BGip4kwG.js} +106 -59
  37. package/dist/shadow/{validate-JAuMsk6Z.js → validate-43C03DLP.js} +1 -1
  38. package/dist/sv-grid-element.d.ts +2 -0
  39. package/dist/sv-grid-element.js +4414 -3971
  40. package/dist/{svelte-virtualizer.svelte-CMX34S17.js → svelte-virtualizer.svelte-BGip4kwG.js} +106 -59
  41. package/dist/{validate-JAuMsk6Z.js → validate-43C03DLP.js} +1 -1
  42. package/dist/vue/index.d.ts +2 -1
  43. package/dist/vue/index.js +1 -1
  44. package/package.json +3 -3
  45. package/dist/GridMenus-Nf04Zcl5.js +0 -1086
  46. package/dist/SvDateTimePicker-Czin1Ead.js +0 -766
  47. package/dist/SvGridCellEditor-BTbDEgpe.js +0 -560
  48. package/dist/SvGridDropdown-BwPpGwLz.js +0 -257
  49. package/dist/shadow/GridMenus-Nf04Zcl5.js +0 -1086
  50. package/dist/shadow/SvDateTimePicker-Czin1Ead.js +0 -766
  51. package/dist/shadow/SvGridCellEditor-BTbDEgpe.js +0 -560
  52. package/dist/shadow/SvGridDropdown-BwPpGwLz.js +0 -257
@@ -0,0 +1,1086 @@
1
+ (function(){try{var c=".sv-listbox.svelte-1qscmce{--_accent:var(--sg-accent,#2563eb);background:var(--sg-input-bg,#fff);color:var(--sg-fg,#0f172a);border:1px solid var(--sg-input-border,var(--sg-border,#cbd5e1));border-radius:var(--sg-radius,8px);--_fs:13px;outline:none;width:220px;margin:0;list-style:none}.sv-listbox.svelte-1qscmce:not(.is-virtual){max-height:calc(var(--sv-rows,7) * var(--sv-row-h,32px) + 8px);padding:4px;overflow-y:auto}.sv-listbox.is-virtual.svelte-1qscmce{height:calc(var(--sv-rows,7) * var(--sv-row-h,32px) + 8px);padding:0;position:relative;overflow:hidden}.sv-listbox.is-block.svelte-1qscmce{width:100%}.sv-listbox--sm.svelte-1qscmce{--_fs:12px}.sv-listbox--lg.svelte-1qscmce{--_fs:15px}.sv-listbox.svelte-1qscmce:focus-visible{border-color:var(--_accent);box-shadow:0 0 0 2px color-mix(in srgb, var(--_accent) 22%, transparent)}.sv-listbox.is-invalid.svelte-1qscmce{border-color:var(--sg-danger,#dc2626)}.sv-listbox.is-invalid.svelte-1qscmce:focus-visible{box-shadow:0 0 0 2px color-mix(in srgb, var(--sg-danger,#dc2626) 22%, transparent)}.sv-listbox__vp.svelte-1qscmce{touch-action:none;position:absolute;inset:4px;overflow:hidden}.sv-listbox.is-virtual.svelte-1qscmce .sv-listbox__opt:where(.svelte-1qscmce),.sv-listbox.is-virtual.svelte-1qscmce .sv-listbox__group:where(.svelte-1qscmce){position:absolute;top:0;left:0;right:0}.sv-listbox__sb.svelte-1qscmce{z-index:2;width:10px;position:absolute;top:4px;bottom:4px;right:2px}.sv-listbox__thumb.svelte-1qscmce{background:color-mix(in srgb, currentColor 26%, transparent);cursor:default;touch-action:none;border-radius:4px;min-height:24px;position:absolute;top:0;left:2px;right:2px}.sv-listbox__thumb.svelte-1qscmce:hover,.sv-listbox__thumb.is-dragging.svelte-1qscmce{background:color-mix(in srgb, currentColor 42%, transparent)}.sv-listbox__opt.svelte-1qscmce{box-sizing:border-box;cursor:pointer;font-size:var(--_fs,13px);border-radius:6px;flex:none;align-items:center;gap:8px;padding:0 10px;display:flex}.sv-listbox__opt.is-active.svelte-1qscmce{background:var(--sg-row-hover-bg,#f1f5f9)}.sv-listbox__opt.is-selected.svelte-1qscmce{background:color-mix(in srgb, var(--_accent) 14%, transparent);color:var(--_accent);font-weight:600}.sv-listbox__opt.is-selected.is-active.svelte-1qscmce{background:color-mix(in srgb, var(--_accent) 22%, transparent)}.sv-listbox__opt.is-disabled.svelte-1qscmce{opacity:.4;cursor:not-allowed}.sv-listbox__group.svelte-1qscmce{box-sizing:border-box;text-transform:uppercase;letter-spacing:.04em;color:var(--sg-muted,#94a3b8);align-items:flex-end;padding:8px 10px 3px;font-size:10.5px;font-weight:700;display:flex}.sv-listbox__check.svelte-1qscmce{text-align:center;width:14px;color:var(--_accent)}.sv-listbox__label.svelte-1qscmce{text-overflow:ellipsis;white-space:nowrap;flex:1;overflow:hidden}.sv-listbox__hint.svelte-1qscmce{color:var(--sg-muted,#64748b);font-variant-numeric:tabular-nums;flex:none;margin-inline-start:8px;font-size:.9em}.sv-listbox__box.svelte-1qscmce{box-sizing:border-box;border:1px solid var(--sg-input-border,var(--sg-border,#cbd5e1));background:var(--sg-input-bg,#fff);border-radius:3px;flex:none;width:14px;height:14px;position:relative}.sv-listbox__box.is-on.svelte-1qscmce{background:var(--_accent);border-color:var(--_accent)}.sv-listbox__box.is-on.svelte-1qscmce:after{content:\"\";border:solid var(--sg-input-bg,#fff);border-width:0 2px 2px 0;width:3px;height:7px;position:absolute;top:1px;left:4px;transform:rotate(45deg)}.sv-listbox.is-checkbox.svelte-1qscmce .sv-listbox__opt.is-selected:where(.svelte-1qscmce){color:inherit;font-weight:inherit;background:0 0}.sv-listbox.is-checkbox.svelte-1qscmce .sv-listbox__opt.is-active:where(.svelte-1qscmce),.sv-listbox.is-checkbox.svelte-1qscmce .sv-listbox__opt.is-selected.is-active:where(.svelte-1qscmce){background:var(--sg-row-hover-bg,#f1f5f9)}\n";if(typeof globalThis!=='undefined'){var f=globalThis.__SVGRID_WC_ADD_CSS__;if(typeof f==='function')f(c);else(globalThis.__SVGRID_WC_CSS_CHUNKS__=globalThis.__SVGRID_WC_CSS_CHUNKS__||[]).push(c);}if(typeof document==='undefined')return;if(document.querySelector('style[data-svgrid-grid-wc-chunk="GridMenus"]'))return;var s=document.createElement('style');s.setAttribute('data-svgrid-grid-wc-chunk',"GridMenus");s.textContent=c;document.head.appendChild(s);}catch(e){}})();
2
+ import { $ as e, A as t, C as n, D as r, G as i, I as a, J as o, K as s, L as c, M as l, N as u, O as d, Q as f, R as p, T as m, U as h, V as g, W as _, X as v, Y as y, _ as b, a as x, at as S, c as C, d as w, f as T, g as E, h as D, it as O, j as k, k as A, l as j, n as M, nt as N, o as P, ot as ee, p as te, q as ne, rt as re, s as F, tt as I, u as L, v as R, w as z, x as ie, y as B, z as V } from "./client-wYhMjrKG.js";
3
+ import { c as ae, s as oe, t as H } from "./svelte-virtualizer.svelte-BGip4kwG.js";
4
+ import { S as se, h as ce, u as le, w as U } from "./SvGrid.helpers-zBkDTryR.js";
5
+ import { i as ue, t as W } from "./editor-contract-peBDxir_.js";
6
+ import { t as de } from "./SvField-CpglDJLn.js";
7
+ import { n as G } from "./dismissable-CQ6XFXsk.js";
8
+ import { a as K, i as q, n as J, o as fe, r as pe, t as me } from "./list-option-DrRyivWp.js";
9
+ //#region ../grid/dist/createListbox.svelte.js
10
+ var he = 0;
11
+ function Y(e, t) {
12
+ if (e == null) return [];
13
+ if (e instanceof Set || Array.isArray(e)) {
14
+ let n = [...e];
15
+ return t ? n : n.slice(0, 1);
16
+ }
17
+ return [e];
18
+ }
19
+ function ge(e, t) {
20
+ return e instanceof Set ? e : new Set(Y(e, t));
21
+ }
22
+ function _e(t) {
23
+ let n = `sv-lb-${he++}`, r = () => t.options(), i = () => t.multiple?.() ?? !1, a = () => t.disabled?.() ?? !1, o = e(0), s = I(() => ge(t.value(), i())), c = I(() => Y(t.value(), i())), l = I(() => r().map((e, t) => e.disabled ? -1 : t).filter((e) => e >= 0));
24
+ _(() => {
25
+ let e = r()[V(o)];
26
+ (!e || e.disabled) && f(o, V(l)[0] ?? 0, !0);
27
+ });
28
+ let u = (e) => V(s).has(e), d = (e) => e === V(o), p = (e) => `${n}-opt-${e}`;
29
+ function m(e) {
30
+ let t = r()[e];
31
+ t && !t.disabled && f(o, e, !0);
32
+ }
33
+ function h(e) {
34
+ let n = r()[e];
35
+ if (!(!n || n.disabled || a())) {
36
+ if (f(o, e, !0), i()) {
37
+ let e = new Set(V(s));
38
+ e.has(n.value) ? e.delete(n.value) : e.add(n.value), t.onChange?.(t.value() instanceof Set ? e : [...e]);
39
+ } else t.onChange?.(n.value);
40
+ }
41
+ }
42
+ function g(e) {
43
+ let t = V(l);
44
+ if (!t.length) return;
45
+ let n = t[(t.indexOf(V(o)) + e + t.length) % t.length];
46
+ n != null && f(o, n, !0);
47
+ }
48
+ let v = () => {
49
+ f(o, V(l)[0] ?? 0, !0);
50
+ }, y = () => {
51
+ f(o, V(l).at(-1) ?? 0, !0);
52
+ }, b = me();
53
+ function x(e) {
54
+ let t = b.push(e.toLowerCase()), n = K(r(), t, V(o));
55
+ n >= 0 && f(o, n, !0);
56
+ }
57
+ function S(e) {
58
+ if (!a()) switch (e.key) {
59
+ case "ArrowDown":
60
+ e.preventDefault(), g(1);
61
+ break;
62
+ case "ArrowUp":
63
+ e.preventDefault(), g(-1);
64
+ break;
65
+ case "Home":
66
+ e.preventDefault(), v();
67
+ break;
68
+ case "End":
69
+ e.preventDefault(), y();
70
+ break;
71
+ case " ":
72
+ case "Enter":
73
+ e.preventDefault(), h(V(o));
74
+ break;
75
+ default: q(e) && x(e.key);
76
+ }
77
+ }
78
+ let C = () => ({
79
+ id: t.id?.(),
80
+ invalid: t.invalid?.(),
81
+ required: t.required?.(),
82
+ error: t.error?.(),
83
+ hint: t.hint?.(),
84
+ ariaLabel: t.ariaLabel?.()
85
+ });
86
+ return {
87
+ get activeIndex() {
88
+ return V(o);
89
+ },
90
+ get selectedValues() {
91
+ return V(c);
92
+ },
93
+ isSelected: u,
94
+ isActive: d,
95
+ setActive: m,
96
+ pick: h,
97
+ move: g,
98
+ first: v,
99
+ last: y,
100
+ onKeydown: S,
101
+ rootProps: () => ({
102
+ role: "listbox",
103
+ id: t.id?.(),
104
+ "aria-multiselectable": i(),
105
+ "aria-disabled": a(),
106
+ "aria-activedescendant": r()[V(o)] ? p(V(o)) : void 0,
107
+ ...W(C()),
108
+ tabindex: a() ? -1 : 0,
109
+ onkeydown: S
110
+ }),
111
+ optionProps: (e) => {
112
+ let t = r()[e];
113
+ return {
114
+ role: "option",
115
+ id: p(e),
116
+ "aria-selected": t ? u(t.value) : !1,
117
+ "aria-disabled": t?.disabled,
118
+ "data-idx": e,
119
+ "data-active": d(e) ? "" : void 0,
120
+ "data-selected": t && u(t.value) ? "" : void 0,
121
+ onclick: () => h(e),
122
+ onpointermove: () => m(e)
123
+ };
124
+ }
125
+ };
126
+ }
127
+ //#endregion
128
+ //#region ../grid/dist/js-scroller.svelte.js
129
+ function ve(t) {
130
+ let n = e(0), r = I(() => Math.max(0, t.totalSize() - t.viewport()));
131
+ _(() => {
132
+ let e = V(n);
133
+ g(() => t.virtualizer.setScrollOffset(e));
134
+ }), _(() => {
135
+ let e = V(r);
136
+ g(() => V(n)) > e && f(n, e, !0);
137
+ });
138
+ function i(e) {
139
+ f(n, Math.max(0, Math.min(V(r), e)), !0);
140
+ }
141
+ function a(e) {
142
+ i(V(n) + e);
143
+ }
144
+ function o(e) {
145
+ if (V(r) <= 0) return;
146
+ let i = e.deltaMode === 1 ? e.deltaY * t.lineStep() : e.deltaMode === 2 ? e.deltaY * t.viewport() : e.deltaY, o = V(n);
147
+ a(i), V(n) !== o && e.preventDefault();
148
+ }
149
+ let s = I(() => V(r) > 0 && t.totalSize() > 0 ? Math.max(24, Math.min(t.viewport(), t.viewport() / t.totalSize() * t.viewport())) : 0), c = I(() => Math.max(0, t.viewport() - V(s))), l = I(() => V(r) > 0 ? V(n) / V(r) * V(c) : 0), u = e(!1), d = 0, p = 0;
150
+ function m(e) {
151
+ e.stopPropagation(), e.preventDefault(), f(u, !0), d = e.clientY, p = V(n), e.currentTarget.setPointerCapture(e.pointerId);
152
+ }
153
+ function h(e) {
154
+ if (!V(u)) return;
155
+ let t = e.clientY - d;
156
+ i(p + (V(c) > 0 ? t / V(c) * V(r) : 0));
157
+ }
158
+ function v(e) {
159
+ f(u, !1), E(e);
160
+ }
161
+ function y(e) {
162
+ let n = e.currentTarget.getBoundingClientRect();
163
+ a(e.clientY - n.top < V(l) ? -t.viewport() : t.viewport());
164
+ }
165
+ let b = !1, x = 0, S = 0;
166
+ function C(e) {
167
+ e.pointerType === "touch" && (b = !0, x = e.clientY, S = V(n), e.currentTarget.setPointerCapture(e.pointerId));
168
+ }
169
+ function w(e) {
170
+ b && i(S - (e.clientY - x));
171
+ }
172
+ function T(e) {
173
+ b && (b = !1, E(e));
174
+ }
175
+ function E(e) {
176
+ try {
177
+ e.currentTarget.releasePointerCapture(e.pointerId);
178
+ } catch {}
179
+ }
180
+ function D(e, r) {
181
+ e < V(n) ? i(e) : e + r > V(n) + t.viewport() && i(e + r - t.viewport());
182
+ }
183
+ function O(e) {
184
+ D(t.virtualizer.getOffsetForIndex(e), t.virtualizer.getSizeForIndex(e));
185
+ }
186
+ return {
187
+ get scrollOffset() {
188
+ return V(n);
189
+ },
190
+ get maxOffset() {
191
+ return V(r);
192
+ },
193
+ get thumbH() {
194
+ return V(s);
195
+ },
196
+ get thumbTop() {
197
+ return V(l);
198
+ },
199
+ get dragging() {
200
+ return V(u);
201
+ },
202
+ scrollTo: i,
203
+ scrollByPx: a,
204
+ ensureVisible: D,
205
+ ensureIndexVisible: O,
206
+ onWheel: o,
207
+ onThumbDown: m,
208
+ onThumbMove: h,
209
+ onThumbUp: v,
210
+ onTrackDown: y,
211
+ onContentDown: C,
212
+ onContentMove: w,
213
+ onContentUp: T
214
+ };
215
+ }
216
+ //#endregion
217
+ //#region ../grid/dist/SvListBox.svelte
218
+ var ye = l("<span aria-hidden=\"true\"></span>"), be = l("<span class=\"sv-listbox__check svelte-1qscmce\" aria-hidden=\"true\"> </span>"), xe = l("<span class=\"sv-listbox__label svelte-1qscmce\"> </span>"), Se = l("<span class=\"sv-listbox__hint svelte-1qscmce\" aria-hidden=\"true\"> </span>"), Ce = l("<!> <!> <!>", 1), we = l("<div><!></div>"), Te = l("<div class=\"sv-listbox__group svelte-1qscmce\" role=\"presentation\"> </div>"), Ee = l("<div class=\"sv-listbox__sb svelte-1qscmce\" aria-hidden=\"true\"><div></div></div>"), De = l("<div class=\"sv-listbox__vp svelte-1qscmce\"></div> <!>", 1), X = l("<div class=\"sv-listbox__group svelte-1qscmce\" role=\"presentation\"> </div>"), Oe = l("<!> <!>", 1), Z = l("<input type=\"hidden\"/>"), ke = l("<div><!></div> <!>", 1);
219
+ function Ae(n, i) {
220
+ re(i, !0);
221
+ let a = (e, n = ee) => {
222
+ var a = Ce(), s = y(a), c = (e) => {
223
+ var r = ye();
224
+ let i;
225
+ h((e) => i = B(r, 1, "sv-listbox__box svelte-1qscmce", null, i, e), [() => ({ "is-on": W(n()) })]), t(e, r);
226
+ }, l = (e) => {
227
+ var r = be(), i = o(r, !0);
228
+ S(r), h((e) => A(i, e), [() => W(n()) ? "✓" : ""]), t(e, r);
229
+ };
230
+ r(s, (e) => {
231
+ m() ? e(c) : u() && e(l, 1);
232
+ });
233
+ var f = v(s, 2), p = (e) => {
234
+ var r = k(), a = y(r);
235
+ d(a, () => i.item ?? i.itemTemplate, n), t(e, r);
236
+ }, g = (e) => {
237
+ var r = xe(), i = o(r, !0);
238
+ S(r), h(() => A(i, n().label)), t(e, r);
239
+ };
240
+ r(f, (e) => {
241
+ i.item ?? i.itemTemplate ? e(p) : e(g, -1);
242
+ });
243
+ var _ = v(f, 2), b = (e) => {
244
+ var r = Se(), i = o(r, !0);
245
+ S(r), h(() => A(i, n().hint)), t(e, r);
246
+ };
247
+ r(_, (e) => {
248
+ n().hint && !(i.item ?? i.itemTemplate) && e(b);
249
+ }), t(e, a);
250
+ }, s = (e, n = ee, r = ee, i = ee, s = ee) => {
251
+ var c = we();
252
+ L(c, (e, t, n) => ({
253
+ class: "sv-listbox__opt",
254
+ ...e,
255
+ [C]: t,
256
+ [j]: n
257
+ }), [
258
+ () => U.optionProps(r()),
259
+ () => ({
260
+ "is-selected": W(n()),
261
+ "is-active": U.isActive(r()),
262
+ "is-disabled": n().disabled
263
+ }),
264
+ () => ({
265
+ height: `${i() ?? K(n())}px`,
266
+ transform: s() == null ? void 0 : `translateY(${s()}px)`
267
+ })
268
+ ], void 0, void 0, "svelte-1qscmce");
269
+ var l = o(c);
270
+ a(l, n), S(c), t(e, c);
271
+ }, l = M(i, "value", 3, null), u = M(i, "multiple", 3, !1), m = M(i, "checkbox", 3, !1), b = M(i, "block", 3, !1), E = M(i, "disabled", 3, !1), O = M(i, "size", 3, "md"), te = M(i, "rows", 3, 7), ne = M(i, "virtual", 3, !1), F = M(i, "rowHeight", 3, 32), ie = M(i, "groupHeaderHeight", 3, 28), ae = M(i, "invalid", 3, !1), oe = M(i, "required", 3, !1), se = ue("sv-lb"), ce = I(() => i.id ?? se), le = I(() => fe(i.options)), U = _e({
272
+ options: () => V(le),
273
+ value: () => l(),
274
+ onChange: (e) => i.onChange?.(e),
275
+ multiple: () => u(),
276
+ disabled: () => E(),
277
+ ariaLabel: () => i.ariaLabel,
278
+ id: () => V(ce),
279
+ invalid: () => ae(),
280
+ required: () => oe(),
281
+ error: () => i.error,
282
+ hint: () => i.hint
283
+ }), W = (e) => U.isSelected(e.value), G = I(() => typeof F() == "number" ? F() : 32), K = (e) => typeof F() == "function" ? F()(e, e.index) : F(), q = I(ne), me = e(null), he = e(0), Y = I(() => J(V(le), {
284
+ rowHeight: F(),
285
+ groupHeaderHeight: ie()
286
+ })), ge = I(() => !V(Y).hasGroups && typeof F() == "number"), Ae = I(() => V(ge) ? V(G) : (e) => V(Y).sizeAt(e)), je = I(() => V(he) > 0 ? V(he) : Math.max(1, te() * V(G))), Q = H(g(() => ({
287
+ count: V(Y).entries.length,
288
+ estimateSize: V(Ae),
289
+ overscan: 6,
290
+ viewportHeight: V(je)
291
+ })));
292
+ _(() => {
293
+ let e = V(Y).entries.length, t = V(Ae);
294
+ g(() => Q.setOptions({
295
+ count: e,
296
+ estimateSize: t
297
+ }));
298
+ }), _(() => {
299
+ let e = V(je);
300
+ g(() => Q.setViewportHeight(e));
301
+ });
302
+ let Me = I(() => (Q.version, Q.getVirtualItems())), Ne = I(() => (Q.version, Q.getTotalSize())), $ = ve({
303
+ virtualizer: Q,
304
+ totalSize: () => V(Ne),
305
+ viewport: () => V(je),
306
+ lineStep: () => V(G)
307
+ });
308
+ _(() => {
309
+ let e = U.activeIndex;
310
+ if (V(q)) {
311
+ let t = V(Y).optionFlatIndex[e];
312
+ if (t == null) return;
313
+ g(() => $.ensureIndexVisible(t));
314
+ } else queueMicrotask(() => V(me)?.querySelector(`[data-idx="${e}"]`)?.scrollIntoView({ block: "nearest" }));
315
+ }), de(n, {
316
+ get id() {
317
+ return V(ce);
318
+ },
319
+ get label() {
320
+ return i.label;
321
+ },
322
+ get hint() {
323
+ return i.hint;
324
+ },
325
+ get error() {
326
+ return i.error;
327
+ },
328
+ get required() {
329
+ return oe();
330
+ },
331
+ get dir() {
332
+ return i.dir;
333
+ },
334
+ get block() {
335
+ return b();
336
+ },
337
+ children: (e, n) => {
338
+ var a = ke(), l = y(a);
339
+ L(l, (e) => ({
340
+ class: `sv-listbox sv-listbox--${O() ?? ""}`,
341
+ onwheel: V(q) ? $.onWheel : void 0,
342
+ ...e,
343
+ [C]: {
344
+ "is-invalid": ae(),
345
+ "is-virtual": V(q),
346
+ "is-checkbox": m(),
347
+ "is-block": b()
348
+ },
349
+ [j]: {
350
+ "--sv-rows": te(),
351
+ "--sv-row-h": `${V(G)}px`
352
+ }
353
+ }), [() => U.rootProps()], void 0, void 0, "svelte-1qscmce");
354
+ var u = o(l), d = (e) => {
355
+ var n = De(), i = y(n);
356
+ z(i, 21, () => V(Me), (e) => e.key, (e, n) => {
357
+ let i = I(() => V(Y).entries[V(n).index]);
358
+ var a = k(), c = y(a), l = (e) => {
359
+ var r = Te();
360
+ let a;
361
+ var s = o(r, !0);
362
+ S(r), h(() => {
363
+ a = R(r, "", a, {
364
+ height: `${V(n).size}px`,
365
+ transform: `translateY(${V(n).start - $.scrollOffset}px)`
366
+ }), A(s, V(i).label);
367
+ }), t(e, r);
368
+ }, u = (e) => {
369
+ s(e, () => V(i).opt, () => V(i).opt.index, () => V(n).size, () => V(n).start - $.scrollOffset);
370
+ };
371
+ r(c, (e) => {
372
+ V(i)?.type === "group" ? e(l) : V(i) && e(u, 1);
373
+ }), t(e, a);
374
+ }), S(i);
375
+ var a = v(i, 2), l = (e) => {
376
+ var n = Ee(), r = o(n);
377
+ let i, a;
378
+ S(n), h(() => {
379
+ i = B(r, 1, "sv-listbox__thumb svelte-1qscmce", null, i, { "is-dragging": $.dragging }), a = R(r, "", a, {
380
+ height: `${$.thumbH}px`,
381
+ transform: `translateY(${$.thumbTop}px)`
382
+ });
383
+ }), c("pointerdown", n, function(...e) {
384
+ $.onTrackDown?.apply(this, e);
385
+ }), c("pointerdown", r, function(...e) {
386
+ $.onThumbDown?.apply(this, e);
387
+ }), c("pointermove", r, function(...e) {
388
+ $.onThumbMove?.apply(this, e);
389
+ }), c("pointerup", r, function(...e) {
390
+ $.onThumbUp?.apply(this, e);
391
+ }), p("pointercancel", r, function(...e) {
392
+ $.onThumbUp?.apply(this, e);
393
+ }), t(e, n);
394
+ };
395
+ r(a, (e) => {
396
+ $.maxOffset > 0 && e(l);
397
+ }), c("pointerdown", i, function(...e) {
398
+ $.onContentDown?.apply(this, e);
399
+ }), c("pointermove", i, function(...e) {
400
+ $.onContentMove?.apply(this, e);
401
+ }), c("pointerup", i, function(...e) {
402
+ $.onContentUp?.apply(this, e);
403
+ }), p("pointercancel", i, function(...e) {
404
+ $.onContentUp?.apply(this, e);
405
+ }), P(i, "clientHeight", (e) => f(he, e)), t(e, n);
406
+ }, g = (e) => {
407
+ var n = k(), i = y(n);
408
+ z(i, 17, () => pe(V(le)), (e) => e.group ?? " ", (e, n) => {
409
+ var i = Oe(), a = y(i), c = (e) => {
410
+ var r = X(), i = o(r, !0);
411
+ S(r), h(() => A(i, V(n).group)), t(e, r);
412
+ };
413
+ r(a, (e) => {
414
+ V(n).group != null && e(c);
415
+ });
416
+ var l = v(a, 2);
417
+ z(l, 17, () => V(n).options, (e) => e.index, (e, t) => {
418
+ s(e, () => V(t), () => V(t).index);
419
+ }), t(e, i);
420
+ }), t(e, n);
421
+ };
422
+ r(u, (e) => {
423
+ V(q) ? e(d) : e(g, -1);
424
+ }), S(l), x(l, (e) => f(me, e), () => V(me));
425
+ var _ = v(l, 2), E = (e) => {
426
+ var n = k(), r = y(n);
427
+ z(r, 16, () => U.selectedValues, (e) => e, (e, n) => {
428
+ var r = Z();
429
+ w(r), h(() => {
430
+ T(r, "name", i.name), D(r, n);
431
+ }), t(e, r);
432
+ }), t(e, n);
433
+ };
434
+ r(_, (e) => {
435
+ i.name && e(E);
436
+ }), t(e, a);
437
+ },
438
+ $$slots: { default: !0 }
439
+ }), N();
440
+ }
441
+ a([
442
+ "pointerdown",
443
+ "pointermove",
444
+ "pointerup"
445
+ ]);
446
+ //#endregion
447
+ //#region ../grid/dist/GridMenus.svelte
448
+ var je = l("<option> </option>"), Q = l("<input class=\"sv-grid-menu-condition-value\" placeholder=\"To\"/>"), Me = l("<input class=\"sv-grid-menu-condition-value\"/> <!>", 1), Ne = l("<option> </option>"), $ = l("<input class=\"sv-grid-menu-condition-value\" placeholder=\"To\"/>"), Pe = l("<input class=\"sv-grid-menu-condition-value\"/> <!>", 1), Fe = l("<div class=\"sv-grid-menu-join\" role=\"radiogroup\" aria-label=\"Combine conditions\"><button type=\"button\">AND</button> <button type=\"button\">OR</button> <button type=\"button\" class=\"sv-grid-menu-join-x\" title=\"Remove second condition\" aria-label=\"Remove second condition\"><!></button></div> <select class=\"sv-grid-menu-operator-select\" aria-label=\"Second filter condition\"></select> <!>", 1), Ie = l("<button type=\"button\" class=\"sv-grid-menu-add-cond\">+ Add condition</button>"), Le = l("<!> <!>", 1), Re = l("<span class=\"sv-grid-menu-head-note\">and the condition above</span>"), ze = l("<span class=\"sv-grid-menu-head-note\"> </span>"), Be = l("<div class=\"sv-grid-facet-empty\">No values</div>"), Ve = l("<div class=\"sv-grid-facet-note\"> </div>"), He = l("<div class=\"sv-grid-menu-filter\"><div class=\"sv-grid-menu-filter-head\"><span class=\"sv-grid-header-icon\"><!></span> Filter\n condition</div> <select class=\"sv-grid-menu-operator-select\" aria-label=\"Filter condition\"></select> <!> <div class=\"sv-grid-menu-sep\"></div> <div class=\"sv-grid-menu-filter-head\">Values <!></div> <span class=\"sv-grid-menu-search-wrap\"><!> <input class=\"sv-grid-menu-search\" placeholder=\"Search values...\"/></span> <label class=\"sv-grid-facet sv-grid-facet-all\"><input type=\"checkbox\"/> <span class=\"sv-grid-facet-label\"> </span></label> <!> <!> <div class=\"sv-grid-menu-actions\"><button type=\"button\" class=\"sv-grid-menu-btn\">Clear filter</button> <button type=\"button\" class=\"sv-grid-menu-btn sv-grid-menu-btn-primary\">Done</button></div></div>"), Ue = l("<div role=\"tooltip\"> </div>"), We = l("<div class=\"sv-grid-menu-backdrop\" role=\"presentation\"></div>"), Ge = l("<button type=\"button\" role=\"tab\">Filter</button>"), Ke = l("<div class=\"sv-grid-menu-tabs\" role=\"tablist\"><button type=\"button\" role=\"tab\">General</button> <!> <button type=\"button\" role=\"tab\">Columns</button></div>"), qe = l("<div class=\"sv-grid-menu-filter-head\">Visible columns</div> <!>", 1), Je = l("<button type=\"button\" class=\"sv-grid-menu-item\" role=\"menuitem\"><span class=\"sv-grid-header-icon\"><!></span> Sort\n ascending</button> <button type=\"button\" class=\"sv-grid-menu-item\" role=\"menuitem\"><span class=\"sv-grid-header-icon\"><!></span> Sort\n descending</button> <button type=\"button\" class=\"sv-grid-menu-item\" role=\"menuitem\"><span class=\"sv-grid-header-icon\"><!></span> Remove sort</button>", 1), Ye = l("<div class=\"sv-grid-menu-sep\"></div> <button type=\"button\" class=\"sv-grid-menu-item\" role=\"menuitem\"><span class=\"sv-grid-header-icon\"><!></span> Pin to left</button> <button type=\"button\" class=\"sv-grid-menu-item\" role=\"menuitem\"><span class=\"sv-grid-header-icon\"><!></span> Pin to right</button> <button type=\"button\" class=\"sv-grid-menu-item\" role=\"menuitem\"><span class=\"sv-grid-header-icon\"><!></span> Unpin column</button>", 1), Xe = l("<button type=\"button\" class=\"sv-grid-menu-item\" role=\"menuitem\"><span class=\"sv-grid-header-icon\"><!></span> Autosize\n this column</button>"), Ze = l("<div class=\"sv-grid-menu-sep\"></div> <button type=\"button\" class=\"sv-grid-menu-item\" role=\"menuitem\"><span class=\"sv-grid-header-icon\"><!></span> Group\n by this column</button> <button type=\"button\" class=\"sv-grid-menu-item\" role=\"menuitem\"><span class=\"sv-grid-header-icon\"><!></span> Remove grouping</button>", 1), Qe = l("<button type=\"button\" role=\"menuitem\" aria-haspopup=\"menu\"><span class=\"sv-grid-header-icon\"><!></span> Choose columns <span class=\"sv-grid-header-icon sv-grid-menu-item-chevron\"><!></span></button>"), $e = l("<!> <!> <div class=\"sv-grid-menu-sep\"></div> <!> <button type=\"button\" class=\"sv-grid-menu-item\" role=\"menuitem\"><span class=\"sv-grid-header-icon\"><!></span> Autosize\n all columns</button> <!> <div class=\"sv-grid-menu-sep\"></div> <!> <button type=\"button\" class=\"sv-grid-menu-item\" role=\"menuitem\"><span class=\"sv-grid-header-icon\"><!></span> Reset columns</button>", 1), et = l("<div class=\"sv-grid-menu sv-grid-column-menu\" role=\"menu\"><!> <!></div>"), tt = l("<div class=\"sv-grid-menu sv-grid-filter-menu\" role=\"menu\" tabindex=\"-1\"><!></div>"), nt = l("<div class=\"sv-grid-menu sv-grid-choose-columns-menu\" role=\"menu\"><div class=\"sv-grid-menu-filter-head\">Visible columns</div> <!></div>"), rt = l("<button type=\"button\" class=\"sv-grid-menu-item\" role=\"menuitemradio\"><span class=\"sv-grid-header-icon\"><!></span> </button>"), it = l("<div class=\"sv-grid-menu sv-grid-operator-menu\" role=\"menu\"></div>"), at = l("<div class=\"sv-grid-facet-empty\">No values</div>"), ot = l("<div class=\"sv-grid-menu sv-grid-in-suggest\"><!></div>"), st = l("<div class=\"sv-grid-menu-sep\"></div>"), ct = u("<path></path>"), lt = u("<svg class=\"sv-grid-menu-icon-own\" width=\"16\" height=\"16\" viewBox=\"0 0 16 16\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"1.4\" stroke-linecap=\"round\" stroke-linejoin=\"round\" focusable=\"false\"></svg>"), ut = l("<span class=\"sv-grid-menu-icon\" aria-hidden=\"true\"><!></span>"), dt = l("<button type=\"button\" class=\"sv-grid-menu-item\" role=\"menuitem\"><!><span class=\"sv-grid-menu-label\"> </span></button>"), ft = l("<div class=\"sv-grid-menu-backdrop\" role=\"presentation\"></div> <div class=\"sv-grid-menu sv-grid-context-menu\" role=\"menu\"></div>", 1), pt = l("<div class=\"sv-grid-menu-backdrop\" role=\"presentation\"></div> <div class=\"sv-grid-menu sv-grid-comment-editor\" role=\"dialog\" aria-label=\"Edit comment\"><textarea class=\"sv-grid-comment-textarea\" rows=\"3\" placeholder=\"Add a comment…\"></textarea> <div class=\"sv-grid-comment-actions\"><button type=\"button\" class=\"sv-grid-comment-remove\">Remove</button> <span class=\"sv-grid-comment-spacer\"></span> <button type=\"button\" class=\"sv-grid-comment-cancel\">Cancel</button> <button type=\"button\" class=\"sv-grid-comment-save\">Save</button></div></div>", 1), mt = l("<!> <!> <!> <!> <!> <!> <!> <!> <!>", 1);
449
+ function ht(a, l) {
450
+ re(l, !0);
451
+ let u = (e, i = ee) => {
452
+ let a = I(() => V(pe).find((e) => e.id === i())), s = I(() => V(Se)(V(a))), u = I(() => V(C)[i()]?.operator ?? V(Ce)(V(a))), f = I(() => ce(V(a)?.columnDef.editorType ?? "text")), m = I(() => U(V(a)?.columnDef.editorType) && V(u) !== "isBlank" && V(u) !== "isNotBlank" && V(u) !== "regex" && V(u) !== "in" && V(u) !== "notIn"), _ = I(() => V(Ct).length !== V(St).length), x = I(() => V(u) === "isBlank" || V(u) === "isNotBlank" || (V(C)[i()]?.value ?? "").trim().length > 0), j = I(() => V(Mt).size), M = I(() => V(St).length);
453
+ var N = He(), P = o(N), ne = o(P), re = o(ne);
454
+ d(re, () => l.icon, () => "filter"), S(ne), O(), S(P);
455
+ var L = v(P, 2);
456
+ z(L, 21, () => V(s), (e) => e.value, (e, n) => {
457
+ var r = je(), i = o(r, !0);
458
+ S(r);
459
+ var s = {};
460
+ h((e) => {
461
+ A(i, e), s !== (s = V(n).value) && (r.value = (r.__value = V(n).value) ?? "");
462
+ }, [() => V(we)(V(n), V(a))]), t(e, r);
463
+ }), S(L);
464
+ var R;
465
+ E(L);
466
+ var ie = v(L, 2), ae = (e) => {
467
+ let g = I(() => V(C)[i()]);
468
+ var _ = Le(), x = y(_), O = (e) => {
469
+ var a = k(), o = y(a), s = (e) => {
470
+ var a = k(), o = y(a), s = (e) => {
471
+ let r = I(() => V(Et)), a = I(() => le(V(C)[i()]?.value)), o = I(() => le(V(C)[i()]?.valueTo));
472
+ var s = k(), c = y(s);
473
+ {
474
+ let e = I(() => V(a) && V(o) ? [V(a), V(o)] : null);
475
+ n(c, () => V(r), (t, n) => {
476
+ n(t, {
477
+ get value() {
478
+ return V(e);
479
+ },
480
+ formatString: "yyyy-MM-dd",
481
+ block: !0,
482
+ placeholder: "Pick a range...",
483
+ onChange: (e) => {
484
+ V(be)(i(), e ? se(e[0]) : ""), V(xe)(i(), e ? se(e[1]) : "");
485
+ }
486
+ });
487
+ });
488
+ }
489
+ t(e, s);
490
+ };
491
+ r(o, (e) => {
492
+ V(Et) && e(s);
493
+ }), t(e, a);
494
+ }, c = (e) => {
495
+ let r = I(() => V(Tt));
496
+ var a = k(), o = y(a);
497
+ {
498
+ let e = I(() => (V(C)[i()]?.value ?? "") || null);
499
+ n(o, () => V(r), (t, n) => {
500
+ n(t, {
501
+ get value() {
502
+ return V(e);
503
+ },
504
+ formatString: "yyyy-MM-dd",
505
+ dropDownDisplayMode: "calendar",
506
+ block: !0,
507
+ nullable: !0,
508
+ placeholder: "Filter value...",
509
+ onChange: (e) => V(be)(i(), se(e))
510
+ });
511
+ });
512
+ }
513
+ t(e, a);
514
+ };
515
+ r(o, (e) => {
516
+ V(u) === "between" ? e(s) : V(Tt) && e(c, 1);
517
+ }), t(e, a);
518
+ }, j = (e) => {
519
+ let n = I(() => V(u) === "in" || V(u) === "notIn");
520
+ var a = Me(), o = y(a);
521
+ w(o);
522
+ var s = v(o, 2), l = (e) => {
523
+ var n = Q();
524
+ w(n), h(() => {
525
+ T(n, "type", V(f)), D(n, V(C)[i()]?.valueTo ?? "");
526
+ }), c("input", n, (e) => V(xe)(i(), e.currentTarget.value)), t(e, n);
527
+ };
528
+ r(s, (e) => {
529
+ V(u) === "between" && e(l);
530
+ }), h(() => {
531
+ T(o, "type", V(u) === "regex" ? "text" : V(f)), D(o, V(C)[i()]?.value ?? ""), T(o, "placeholder", V(u) === "between" ? "From" : V(n) ? "value, value..." : V(u) === "regex" ? "Pattern..." : "Filter value...");
532
+ }), p("focus", o, (e) => {
533
+ kt(i()) && Vt(e.currentTarget, i());
534
+ }), p("blur", o, () => {
535
+ kt(i()) && V(Lt)();
536
+ }), c("input", o, (e) => {
537
+ let t = e.currentTarget;
538
+ V(be)(i(), t.value), V(n) && Ht(t, i());
539
+ }), t(e, a);
540
+ };
541
+ r(x, (e) => {
542
+ V(m) ? e(O) : e(j, -1);
543
+ });
544
+ var M = v(x, 2), N = (e) => {
545
+ let n = I(() => V(g).operator2 ?? V(Ce)(V(a)));
546
+ var u = Fe(), p = y(u), m = o(p);
547
+ let _;
548
+ var x = v(m, 2);
549
+ let C;
550
+ var O = v(x, 2), k = o(O);
551
+ d(k, () => l.icon, () => "remove"), S(O), S(p);
552
+ var j = v(p, 2);
553
+ z(j, 21, () => V(s), (e) => e.value, (e, n) => {
554
+ var r = Ne(), i = o(r, !0);
555
+ S(r);
556
+ var s = {};
557
+ h((e) => {
558
+ A(i, e), s !== (s = V(n).value) && (r.value = (r.__value = V(n).value) ?? "");
559
+ }, [() => V(we)(V(n), V(a))]), t(e, r);
560
+ }), S(j);
561
+ var M;
562
+ E(j);
563
+ var N = v(j, 2), P = (e) => {
564
+ var a = Pe(), o = y(a);
565
+ w(o);
566
+ var s = v(o, 2), l = (e) => {
567
+ var n = $();
568
+ w(n), h(() => {
569
+ T(n, "type", V(f)), D(n, V(g).valueTo2 ?? "");
570
+ }), c("input", n, (e) => X(i(), { valueTo2: e.currentTarget.value })), t(e, n);
571
+ };
572
+ r(s, (e) => {
573
+ V(n) === "between" && e(l);
574
+ }), h(() => {
575
+ T(o, "type", V(f)), D(o, V(g).value2 ?? ""), T(o, "placeholder", V(n) === "between" ? "From" : "Filter value...");
576
+ }), c("input", o, (e) => X(i(), { value2: e.currentTarget.value })), t(e, a);
577
+ };
578
+ r(N, (e) => {
579
+ V(n) !== "isBlank" && e(P);
580
+ }), h(() => {
581
+ _ = B(m, 1, "", null, _, { "is-on": (V(g).join ?? "AND") === "AND" }), C = B(x, 1, "", null, C, { "is-on": V(g).join === "OR" }), M !== (M = V(n)) && (j.value = (j.__value = V(n)) ?? "", b(j, V(n)));
582
+ }), c("click", m, () => X(i(), { join: "AND" })), c("click", x, () => X(i(), { join: "OR" })), c("click", O, () => X(i(), {
583
+ operator2: void 0,
584
+ value2: void 0,
585
+ valueTo2: void 0,
586
+ join: void 0
587
+ })), c("change", j, (e) => X(i(), { operator2: e.currentTarget.value })), t(e, u);
588
+ }, P = (e) => {
589
+ var n = Ie();
590
+ c("click", n, () => X(i(), {
591
+ operator2: V(Ce)(V(a)),
592
+ value2: "",
593
+ join: "AND"
594
+ })), t(e, n);
595
+ };
596
+ r(M, (e) => {
597
+ V(g)?.operator2 ? e(N) : e(P, -1);
598
+ }), t(e, _);
599
+ };
600
+ r(ie, (e) => {
601
+ V(u) !== "isBlank" && V(u) !== "isNotBlank" && e(ae);
602
+ });
603
+ var oe = v(ie, 4), H = v(o(oe)), ue = (e) => {
604
+ var n = Re();
605
+ t(e, n);
606
+ }, W = (e) => {
607
+ var n = ze(), r = o(n);
608
+ S(n), h(() => A(r, `${V(j) ?? ""} of ${V(M) ?? ""}`)), t(e, n);
609
+ };
610
+ r(H, (e) => {
611
+ V(x) ? e(ue) : V(j) < V(M) && e(W, 1);
612
+ }), S(oe);
613
+ var de = v(oe, 2), G = o(de);
614
+ d(G, () => l.icon, () => "search");
615
+ var K = v(G, 2);
616
+ w(K), S(de);
617
+ var q = v(de, 2), J = o(q);
618
+ w(J);
619
+ var fe = v(J, 2), me = o(fe, !0);
620
+ S(fe), S(q);
621
+ var he = v(q, 2), Y = (e) => {
622
+ {
623
+ let t = I(() => V(jt).length > Bt);
624
+ Ae(e, {
625
+ block: !0,
626
+ checkbox: !0,
627
+ multiple: !0,
628
+ get virtual() {
629
+ return V(t);
630
+ },
631
+ get rows() {
632
+ return V(wt);
633
+ },
634
+ rowHeight: 24,
635
+ size: "sm",
636
+ ariaLabel: "Filter values",
637
+ get options() {
638
+ return V(jt);
639
+ },
640
+ get value() {
641
+ return V(Mt);
642
+ },
643
+ onChange: (e) => V(Nt)(i(), e)
644
+ });
645
+ }
646
+ }, ge = (e) => {
647
+ var n = Be();
648
+ t(e, n);
649
+ };
650
+ r(he, (e) => {
651
+ V(jt).length ? e(Y) : e(ge, -1);
652
+ });
653
+ var _e = v(he, 2), ve = (e) => {
654
+ var n = Ve(), r = o(n);
655
+ S(n), h(() => A(r, `Showing ${V(Ct).length ?? ""} of ${V(St).length ?? ""}`)), t(e, n);
656
+ };
657
+ r(_e, (e) => {
658
+ V(St).length > V(Ct).length && e(ve);
659
+ });
660
+ var Te = v(_e, 2), Ee = o(Te), De = v(Ee, 2);
661
+ S(Te), S(N), h((e, t) => {
662
+ R !== (R = V(u)) && (L.value = (L.__value = V(u)) ?? "", b(L, V(u))), te(J, e), A(me, V(_) ? "(Select all results)" : "(Select all)"), Ee.disabled = t;
663
+ }, [() => V(Rt)(i()), () => !V(Oe)(i())]), c("change", L, (e) => V(ye)(i(), e.currentTarget.value)), F(K, () => g().columnMenuSearch, (e) => g().columnMenuSearch = e), c("change", J, () => V(zt)(i())), c("click", Ee, () => V(Kt)(i())), c("click", De, function(...e) {
664
+ V(Z)?.apply(this, e);
665
+ }), t(e, N);
666
+ }, g = M(l, "ctrl", 7), x = I(() => g().groupingControlsEnabled), C = I(() => g().filterMenuValues), j = I(() => g().tooltip), P = I(() => g().columnMenuFor), L = I(() => g().columnMenuPos), H = I(() => g().filterMenuFor), ue = I(() => g().filterMenuPos), W = I(() => g().operatorMenuFor), de = I(() => g().operatorMenuPos), K = I(() => g().chooseColumnsPos), q = I(() => g().showColumnFiltersEffective), J = I(() => g().props.columnMenuTabs === !0), fe = I(() => g().grid), pe = I(() => g().allColumns), me = I(() => g().isColumnPinned), he = I(() => g().pinColumnLeft), Y = I(() => g().pinColumnRight), ge = I(() => g().unpinColumn), _e = I(() => g().sortDirectionByColumn), ve = I(() => g().groupingColumns), ye = I(() => g().updateFilterOperator), be = I(() => g().updateFilterMenuValue), xe = I(() => g().updateFilterMenuValueTo), Se = I(() => g().operatorsForColumn), Ce = I(() => g().defaultOperatorFor), we = I(() => g().operatorLabelFor), Te = I(() => g().filterRowValues), Ee = I(() => g().inSuggestFor), De = I(() => g().inSuggestPos);
667
+ function X(e, t) {
668
+ let n = V(pe).find((t) => t.id === e), r = g().filterMenuValues[e] ?? {
669
+ operator: V(Ce)(n),
670
+ value: ""
671
+ };
672
+ g().filterMenuValues = {
673
+ ...g().filterMenuValues,
674
+ [e]: {
675
+ ...r,
676
+ ...t
677
+ }
678
+ };
679
+ }
680
+ let Oe = I(() => g().isColumnFiltered), Z = I(() => g().closeMenus);
681
+ _(() => {
682
+ if (!(V(P) || V(H) || V(W) || V(K) || V(qt) || V(Zt))) return;
683
+ let e = () => {
684
+ V(Z)(), V(Xt)(), g().commentEditFor && V(Qt)();
685
+ }, t = G(() => Array.from(document.querySelectorAll(`.sv-grid-menu[data-svgrid-menu="${g().gridDomId}"]`)), e);
686
+ return window.addEventListener("resize", e), () => {
687
+ t(), window.removeEventListener("resize", e);
688
+ };
689
+ });
690
+ let ke = I(() => g().autosizeColumn), ht = I(() => g().autosizeAllColumns), gt = I(() => g().resetColumns), _t = I(() => g().openChooseColumns), vt = I(() => g().sortColumnFromMenu), yt = I(() => g().clearColumnSort), bt = I(() => g().groupByColumnFromMenu), xt = I(() => g().clearGroupingFromMenu), St = I(() => g().columnMenuFacetValues), Ct = I(() => g().columnMenuVisibleFacets), wt = I(function() {
691
+ if (typeof window > "u") return 7;
692
+ let e = (V(H) ? V(ue).y : V(L).y) || 0, t = window.innerHeight - e - 320;
693
+ return Math.max(7, Math.min(16, Math.floor(t / 24)));
694
+ }), Tt = e(null), Et = e(null);
695
+ _(() => {
696
+ let e = V(H) ?? V(P);
697
+ if (!e) return;
698
+ let t = V(pe).find((t) => t.id === e);
699
+ U(t?.columnDef.editorType) && (V(Tt) || import("./SvDateTimePicker-C37mOYov.js").then((e) => f(Tt, e.default, !0)), V(Et) || import("./SvDateRangeInput-DtKZ07aC.js").then((e) => f(Et, e.default, !0)));
700
+ });
701
+ function Dt(e, t) {
702
+ let n = () => {
703
+ let t = g().contextMenuPos, n = e.getBoundingClientRect();
704
+ if (!n.width && !n.height) return;
705
+ let r = Math.max(8, Math.min(t.x, window.innerWidth - n.width - 8)), i = Math.max(8, Math.min(t.y, window.innerHeight - n.height - 8));
706
+ (r !== t.x || i !== t.y) && (g().contextMenuPos = {
707
+ x: r,
708
+ y: i
709
+ });
710
+ };
711
+ return n(), { update: n };
712
+ }
713
+ function Ot(e) {
714
+ requestAnimationFrame(() => {
715
+ e.querySelector(".sv-grid-menu-condition-value, .sv-dtp__input, .sv-dri__input, .sv-grid-menu-search")?.focus({ preventScroll: !0 });
716
+ });
717
+ }
718
+ function kt(e) {
719
+ let t = V(pe).find((t) => t.id === e), n = V(C)[e]?.operator ?? V(Ce)(t);
720
+ return n === "in" || n === "notIn";
721
+ }
722
+ function At(e) {
723
+ if (e.key !== "Enter" || e.shiftKey) return;
724
+ let t = e.target;
725
+ t?.closest(".sv-listbox") || t?.tagName === "BUTTON" || (e.preventDefault(), V(Z)());
726
+ }
727
+ let jt = I(() => g().columnMenuFacetOptions), Mt = I(() => g().columnMenuSelectedFacets), Nt = I(() => g().setFacetSelection), Pt = I(() => g().setFilterTokens), Ft = I(() => g().inSuggestOptions), It = I(() => g().openInSuggest), Lt = I(() => g().closeInSuggest), Rt = I(() => g().isAllFacetsChecked), zt = I(() => g().toggleAllFacets), Bt = 40;
728
+ function Vt(e, t) {
729
+ V(It)(e, t), g().inSuggestQuery = ae(e.value);
730
+ }
731
+ function Ht(e, t) {
732
+ g().inSuggestQuery = ae(e.value), g().inSuggestFor !== t && V(It)(e, t);
733
+ }
734
+ function Ut(e) {
735
+ return e.map((e) => ({
736
+ value: e.id,
737
+ label: typeof e.columnDef.header == "string" ? e.columnDef.header : e.id
738
+ }));
739
+ }
740
+ function Wt(e) {
741
+ let t = /* @__PURE__ */ new Set();
742
+ for (let n of e) g().hiddenColumns[n.id] || t.add(n.id);
743
+ return t;
744
+ }
745
+ function Gt(e, t) {
746
+ let n = { ...g().hiddenColumns };
747
+ for (let r of e) t.has(r.id) ? delete n[r.id] : n[r.id] = !0;
748
+ g().hiddenColumns = n;
749
+ }
750
+ let Kt = I(() => g().clearColumnFilter), qt = I(() => g().contextMenuFor), Jt = I(() => g().contextMenuPos), Yt = I(() => g().contextMenuItems), Xt = I(() => g().closeContextMenu), Zt = I(() => g().commentEditFor), Qt = I(() => g().saveComment), $t = I(() => g().removeComment), en = I(() => g().closeCommentEditor);
751
+ function tn(e) {
752
+ V(qt) && (e.key === "Escape" || e.key === "Esc") && (e.preventDefault(), e.stopPropagation(), V(Xt)());
753
+ }
754
+ var nn = mt();
755
+ p("keydown", ne, tn);
756
+ var rn = y(nn), an = (e) => {
757
+ var n = Ue();
758
+ let r;
759
+ var i = o(n, !0);
760
+ S(n), h(() => {
761
+ r = B(n, 1, "sv-grid-tooltip", null, r, { "sv-grid-tooltip-above": !V(j).below }), R(n, `left: ${V(j).x}px; top: ${V(j).y}px; ${V(j).below ? "" : "transform: translateY(-100%);"}`), A(i, V(j).text);
762
+ }), t(e, n);
763
+ };
764
+ r(rn, (e) => {
765
+ V(j) && e(an);
766
+ });
767
+ var on = v(rn, 2), sn = (e) => {
768
+ var n = We();
769
+ c("click", n, function(...e) {
770
+ V(Z)?.apply(this, e);
771
+ }), t(e, n);
772
+ };
773
+ r(on, (e) => {
774
+ (V(P) || V(H) || V(W) || V(K)) && e(sn);
775
+ });
776
+ var cn = v(on, 2), ln = (e) => {
777
+ let n = I(() => V(P)), i = I(() => V(pe).find((e) => e.id === V(n))), a = I(() => V(i)?.getCanSort?.() ?? !1), s = I(() => V(i)?.columnDef.field != null && V(i)?.columnDef.filterable !== !1), f = I(() => g().columnMenuTab);
778
+ var p = et(), m = o(p), _ = (e) => {
779
+ var n = Ke(), i = o(n);
780
+ let a;
781
+ var l = v(i, 2), u = (e) => {
782
+ var n = Ge();
783
+ let r;
784
+ h(() => {
785
+ r = B(n, 1, "sv-grid-menu-tab", null, r, { "is-active": V(f) === "filter" }), T(n, "aria-selected", V(f) === "filter");
786
+ }), c("click", n, () => g().columnMenuTab = "filter"), t(e, n);
787
+ };
788
+ r(l, (e) => {
789
+ V(s) && V(q) && e(u);
790
+ });
791
+ var d = v(l, 2);
792
+ let p;
793
+ S(n), h(() => {
794
+ a = B(i, 1, "sv-grid-menu-tab", null, a, { "is-active": V(f) === "general" }), T(i, "aria-selected", V(f) === "general"), p = B(d, 1, "sv-grid-menu-tab", null, p, { "is-active": V(f) === "columns" }), T(d, "aria-selected", V(f) === "columns");
795
+ }), c("click", i, () => g().columnMenuTab = "general"), c("click", d, () => g().columnMenuTab = "columns"), t(e, n);
796
+ };
797
+ r(m, (e) => {
798
+ V(J) && e(_);
799
+ });
800
+ var b = v(m, 2), C = (e) => {
801
+ u(e, () => V(n));
802
+ }, w = (e) => {
803
+ let n = I(() => V(fe).getAllColumns());
804
+ var r = qe(), i = v(y(r), 2);
805
+ {
806
+ let e = I(() => V(n).length > 40), t = I(() => Ut(V(n))), r = I(() => Wt(V(n)));
807
+ Ae(i, {
808
+ block: !0,
809
+ checkbox: !0,
810
+ multiple: !0,
811
+ get virtual() {
812
+ return V(e);
813
+ },
814
+ rows: 9,
815
+ rowHeight: 24,
816
+ size: "sm",
817
+ ariaLabel: "Visible columns",
818
+ get options() {
819
+ return V(t);
820
+ },
821
+ get value() {
822
+ return V(r);
823
+ },
824
+ onChange: (e) => Gt(V(n), e)
825
+ });
826
+ }
827
+ t(e, r);
828
+ }, E = (e) => {
829
+ var i = $e(), s = y(i), u = (e) => {
830
+ var r = Je(), i = y(r), a = o(i), s = o(a);
831
+ d(s, () => l.icon, () => "sort-asc"), S(a), O(), S(i);
832
+ var u = v(i, 2), f = o(u), p = o(f);
833
+ d(p, () => l.icon, () => "sort-desc"), S(f), O(), S(u);
834
+ var m = v(u, 2), g = o(m), _ = o(g);
835
+ d(_, () => l.icon, () => "x"), S(g), O(), S(m), h(() => m.disabled = !V(_e)[V(n)]), c("click", i, () => V(vt)(V(n), !1)), c("click", u, () => V(vt)(V(n), !0)), c("click", m, () => V(yt)(V(n))), t(e, r);
836
+ };
837
+ r(s, (e) => {
838
+ V(a) && e(u);
839
+ });
840
+ var f = v(s, 2), p = (e) => {
841
+ let r = I(() => V(me)(V(n)));
842
+ var i = Ye(), a = v(y(i), 2), s = o(a), u = o(s);
843
+ d(u, () => l.icon, () => "pin-left"), S(s), O(), S(a);
844
+ var f = v(a, 2), p = o(f), m = o(p);
845
+ d(m, () => l.icon, () => "pin-right"), S(p), O(), S(f);
846
+ var g = v(f, 2), _ = o(g), b = o(_);
847
+ d(b, () => l.icon, () => "unpin"), S(_), O(), S(g), h(() => {
848
+ a.disabled = V(r) === "left", f.disabled = V(r) === "right", g.disabled = !V(r);
849
+ }), c("click", a, () => V(he)(V(n))), c("click", f, () => V(Y)(V(n))), c("click", g, () => V(ge)(V(n))), t(e, i);
850
+ };
851
+ r(f, (e) => {
852
+ V(n) && e(p);
853
+ });
854
+ var m = v(f, 4), _ = (e) => {
855
+ var r = Xe(), i = o(r), a = o(i);
856
+ d(a, () => l.icon, () => "autosize"), S(i), O(), S(r), c("click", r, () => {
857
+ V(ke)(V(n)), V(Z)();
858
+ }), t(e, r);
859
+ }, b = I(() => g().columnResizable(V(n)));
860
+ r(m, (e) => {
861
+ V(b) && e(_);
862
+ });
863
+ var C = v(m, 2), w = o(C), E = o(w);
864
+ d(E, () => l.icon, () => "autosize"), S(w), O(), S(C);
865
+ var D = v(C, 2), k = (e) => {
866
+ var r = Ze(), i = v(y(r), 2), a = o(i), s = o(a);
867
+ d(s, () => l.icon, () => "group"), S(a), O(), S(i);
868
+ var u = v(i, 2), f = o(u), p = o(f);
869
+ d(p, () => l.icon, () => "x"), S(f), O(), S(u), h((e, t) => {
870
+ i.disabled = e, u.disabled = t;
871
+ }, [() => V(ve).includes(V(n)), () => !V(ve).includes(V(n))]), c("click", i, () => V(bt)(V(n))), c("click", u, () => V(xt)(V(n))), t(e, r);
872
+ };
873
+ r(D, (e) => {
874
+ V(x) && e(k);
875
+ });
876
+ var A = v(D, 4), j = (e) => {
877
+ var n = Qe();
878
+ let r;
879
+ var i = o(n), a = o(i);
880
+ d(a, () => l.icon, () => "columns"), S(i);
881
+ var s = v(i, 2), u = o(s);
882
+ d(u, () => l.icon, () => "chevron-down"), S(s), S(n), h(() => {
883
+ r = B(n, 1, "sv-grid-menu-item", null, r, { "is-open": V(K) !== null }), T(n, "aria-expanded", V(K) !== null);
884
+ }), c("click", n, (e) => V(_t)(e)), t(e, n);
885
+ };
886
+ r(A, (e) => {
887
+ V(J) || e(j);
888
+ });
889
+ var M = v(A, 2), N = o(M), P = o(N);
890
+ d(P, () => l.icon, () => "reset"), S(N), O(), S(M), c("click", C, () => {
891
+ V(ht)(), V(Z)();
892
+ }), c("click", M, () => {
893
+ V(gt)(), V(Z)();
894
+ }), t(e, i);
895
+ };
896
+ r(b, (e) => {
897
+ V(J) && V(f) === "filter" && V(s) && V(q) ? e(C) : V(J) && V(f) === "columns" ? e(w, 1) : e(E, -1);
898
+ }), S(p), h(() => {
899
+ T(p, "data-svgrid-menu", g().gridDomId), R(p, `left: ${V(L).x}px; top: ${V(L).y}px; max-height: calc(100vh - ${V(L).y}px - 12px);`);
900
+ }), t(e, p);
901
+ };
902
+ r(cn, (e) => {
903
+ V(P) && e(ln);
904
+ });
905
+ var un = v(cn, 2), dn = (e) => {
906
+ var n = tt(), r = o(n);
907
+ u(r, () => V(H)), S(n), ie(n, (e) => Ot?.(e)), h(() => {
908
+ T(n, "data-svgrid-menu", g().gridDomId), R(n, `left: ${V(ue).x}px; top: ${V(ue).y}px; max-height: calc(100vh - ${V(ue).y}px - 12px);`);
909
+ }), c("keydown", n, At), t(e, n);
910
+ };
911
+ r(un, (e) => {
912
+ V(H) && V(q) && e(dn);
913
+ });
914
+ var fn = v(un, 2), pn = (e) => {
915
+ let n = I(() => V(fe).getAllColumns());
916
+ var r = nt(), i = v(o(r), 2);
917
+ {
918
+ let e = I(() => V(n).length > 40), t = I(() => Ut(V(n))), r = I(() => Wt(V(n)));
919
+ Ae(i, {
920
+ block: !0,
921
+ checkbox: !0,
922
+ multiple: !0,
923
+ get virtual() {
924
+ return V(e);
925
+ },
926
+ rows: 11,
927
+ rowHeight: 24,
928
+ size: "sm",
929
+ ariaLabel: "Visible columns",
930
+ get options() {
931
+ return V(t);
932
+ },
933
+ get value() {
934
+ return V(r);
935
+ },
936
+ onChange: (e) => Gt(V(n), e)
937
+ });
938
+ }
939
+ S(r), h(() => {
940
+ T(r, "data-svgrid-menu", g().gridDomId), R(r, `left: ${V(K).x}px; top: ${V(K).y}px;`);
941
+ }), t(e, r);
942
+ };
943
+ r(fn, (e) => {
944
+ V(K) && e(pn);
945
+ });
946
+ var mn = v(fn, 2), hn = (e) => {
947
+ let n = I(() => V(W)), r = I(() => V(pe).find((e) => e.id === V(n))), i = I(() => V(Se)(V(r))), a = I(() => V(C)[V(n)]?.operator ?? V(Ce)(V(r)));
948
+ var s = it();
949
+ z(s, 21, () => V(i), (e) => e.value, (e, i) => {
950
+ var s = rt(), u = o(s), f = o(u);
951
+ d(f, () => l.icon, () => V(i).iconName), S(u);
952
+ var p = v(u);
953
+ S(s), h((e) => {
954
+ T(s, "aria-checked", V(a) === V(i).value), A(p, ` ${e ?? ""}`);
955
+ }, [() => V(we)(V(i), V(r))]), c("click", s, () => {
956
+ V(ye)(V(n), V(i).value), V(Z)();
957
+ }), t(e, s);
958
+ }), S(s), h(() => {
959
+ T(s, "data-svgrid-menu", g().gridDomId), R(s, `left: ${V(de).x}px; top: ${V(de).y}px;`);
960
+ }), t(e, s);
961
+ };
962
+ r(mn, (e) => {
963
+ V(W) && e(hn);
964
+ });
965
+ var gn = v(mn, 2), _n = (e) => {
966
+ let n = I(() => V(Ee)), i = I(() => new Set(oe(V(Te)[V(n)] ?? "")));
967
+ var a = ot(), s = o(a), l = (e) => {
968
+ {
969
+ let t = I(() => V(Ft).length > 40);
970
+ Ae(e, {
971
+ block: !0,
972
+ checkbox: !0,
973
+ multiple: !0,
974
+ get virtual() {
975
+ return V(t);
976
+ },
977
+ rows: 8,
978
+ rowHeight: 26,
979
+ size: "sm",
980
+ ariaLabel: "Filter values",
981
+ get options() {
982
+ return V(Ft);
983
+ },
984
+ get value() {
985
+ return V(i);
986
+ },
987
+ onChange: (e) => {
988
+ let t = new Set(e), r = ae(V(Te)[V(n)] ?? "");
989
+ r && t.delete(r), V(Pt)(V(n), [...t]), g().inSuggestQuery = "";
990
+ }
991
+ });
992
+ }
993
+ }, u = (e) => {
994
+ var n = at();
995
+ t(e, n);
996
+ };
997
+ r(s, (e) => {
998
+ V(Ft).length ? e(l) : e(u, -1);
999
+ }), S(a), h(() => {
1000
+ T(a, "data-svgrid-menu", g().gridDomId), R(a, `left: ${V(De).x}px; top: ${V(De).y}px;`);
1001
+ }), c("mousedown", a, (e) => e.preventDefault()), t(e, a);
1002
+ };
1003
+ r(gn, (e) => {
1004
+ V(Ee) && e(_n);
1005
+ });
1006
+ var vn = v(gn, 2), yn = (e) => {
1007
+ let n = I(() => V(Yt)()), i = I(() => V(n).some((e) => e.icon));
1008
+ var a = ft(), s = y(a), u = v(s, 2);
1009
+ z(u, 21, () => V(n), (e) => e.key, (e, n) => {
1010
+ var a = k(), s = y(a), u = (e) => {
1011
+ var n = st();
1012
+ t(e, n);
1013
+ }, f = (e) => {
1014
+ var a = dt(), s = o(a), u = (e) => {
1015
+ var i = ut(), a = o(i), s = (e) => {
1016
+ var r = k(), i = y(r);
1017
+ d(i, () => l.icon, () => V(n).icon), t(e, r);
1018
+ }, c = (e) => {
1019
+ var r = lt();
1020
+ z(r, 21, () => V(n).icon.paths, m, (e, n) => {
1021
+ var r = ct();
1022
+ h(() => {
1023
+ T(r, "d", V(n).d), T(r, "fill", V(n).fill ? "currentColor" : "none"), T(r, "stroke-width", V(n).width), T(r, "stroke-dasharray", V(n).dash);
1024
+ }), t(e, r);
1025
+ }), S(r), t(e, r);
1026
+ };
1027
+ r(a, (e) => {
1028
+ typeof V(n).icon == "string" ? e(s) : V(n).icon && e(c, 1);
1029
+ }), S(i), t(e, i);
1030
+ };
1031
+ r(s, (e) => {
1032
+ V(i) && e(u);
1033
+ });
1034
+ var f = v(s), p = o(f, !0);
1035
+ S(f), S(a), h(() => {
1036
+ a.disabled = V(n).disabled, A(p, V(n).label);
1037
+ }), c("click", a, () => {
1038
+ V(n).run?.(), V(Xt)();
1039
+ }), t(e, a);
1040
+ };
1041
+ r(s, (e) => {
1042
+ V(n).separator ? e(u) : e(f, -1);
1043
+ }), t(e, a);
1044
+ }), S(u), ie(u, (e, t) => Dt?.(e, t), () => V(Jt)), h(() => {
1045
+ T(u, "data-svgrid-menu", g().gridDomId), R(u, `left: ${V(Jt).x}px; top: ${V(Jt).y}px;`);
1046
+ }), c("contextmenu", s, (e) => {
1047
+ e.preventDefault(), V(Xt)();
1048
+ }), c("click", s, function(...e) {
1049
+ V(Xt)?.apply(this, e);
1050
+ }), t(e, a);
1051
+ };
1052
+ r(vn, (e) => {
1053
+ V(qt) && e(yn);
1054
+ });
1055
+ var bn = v(vn, 2), xn = (e) => {
1056
+ var n = pt(), r = y(n), a = v(r, 2), l = o(a);
1057
+ s(l), i(l, !0);
1058
+ var u = v(l, 2), d = o(u), f = v(d, 4), p = v(f, 2);
1059
+ S(u), S(a), h(() => {
1060
+ T(a, "data-svgrid-menu", g().gridDomId), R(a, `left: ${V(Zt).x}px; top: ${V(Zt).y}px;`);
1061
+ }), c("click", r, function(...e) {
1062
+ V(en)?.apply(this, e);
1063
+ }), c("keydown", l, (e) => {
1064
+ e.stopPropagation(), e.key === "Escape" && (e.preventDefault(), V(en)()), e.key === "Enter" && (e.ctrlKey || e.metaKey) && (e.preventDefault(), V(Qt)());
1065
+ }), F(l, () => g().commentDraft, (e) => g().commentDraft = e), c("click", d, function(...e) {
1066
+ V($t)?.apply(this, e);
1067
+ }), c("click", f, function(...e) {
1068
+ V(en)?.apply(this, e);
1069
+ }), c("click", p, function(...e) {
1070
+ V(Qt)?.apply(this, e);
1071
+ }), t(e, n);
1072
+ };
1073
+ r(bn, (e) => {
1074
+ V(Zt) && e(xn);
1075
+ }), t(a, nn), N();
1076
+ }
1077
+ a([
1078
+ "change",
1079
+ "input",
1080
+ "click",
1081
+ "keydown",
1082
+ "mousedown",
1083
+ "contextmenu"
1084
+ ]);
1085
+ //#endregion
1086
+ export { ht as default };