@featherk/composables 0.13.2 → 0.13.4

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.
@@ -1,40 +1,40 @@
1
- import { ref as X, onBeforeUnmount as qe, nextTick as j, computed as y, watchEffect as Oe, toValue as ne, reactive as Ke, watch as le, useId as ze, unref as Ue, onUnmounted as Te, shallowRef as ye, shallowReactive as Be, readonly as ee, onMounted as Re } from "vue";
2
- import { useFocusTrap as Ye } from "@vueuse/integrations/useFocusTrap";
3
- const bt = (e, t) => {
4
- const n = X(null);
5
- let p = !1, a = null, d = null;
6
- const b = [], D = ".k-table-row[data-grid-row-index] [tabindex]", O = () => {
7
- const c = e?.value?.$el;
8
- return c ? c.closest(".k-grid") : null;
9
- }, K = (c) => {
10
- const A = O();
11
- if (!A) return !1;
12
- const g = c.closest(".k-grid-aria-root");
13
- if (g)
14
- return A.contains(g);
15
- const w = c.closest(
1
+ import { ref as Y, onBeforeUnmount as Ke, nextTick as _, computed as y, watchEffect as Le, toValue as ne, reactive as ze, watch as le, useId as Ue, unref as Be, onUnmounted as Te, shallowRef as ye, shallowReactive as Ye, readonly as te, onMounted as Re } from "vue";
2
+ import { useFocusTrap as He } from "@vueuse/integrations/useFocusTrap";
3
+ const wt = (e, t) => {
4
+ const r = Y(null);
5
+ let c = !1, a = null, d = null;
6
+ const w = [], S = ".k-table-row[data-grid-row-index] [tabindex]", $ = () => {
7
+ const s = e?.value?.$el;
8
+ return s ? s.closest(".k-grid") : null;
9
+ }, V = (s) => {
10
+ const x = $();
11
+ if (!x) return !1;
12
+ const m = s.closest(".k-grid-aria-root");
13
+ if (m)
14
+ return x.contains(m);
15
+ const k = s.closest(
16
16
  ".k-grid-header, .k-grid-content, .k-grid-content-locked"
17
17
  );
18
- return w ? A.contains(w) : !1;
19
- }, M = (c) => c.key === "Enter" || c.code === "Enter" || c.code === "NumpadEnter", R = () => e?.value?.columns, k = (c) => {
20
- const A = c.key || c.code;
21
- ([" ", "Spacebar", "Space"].includes(A) || M(c)) && (c.preventDefault(), c.stopPropagation(), n.value = c.target, c.target.click());
22
- }, x = (c) => {
23
- if (!n.value) return;
24
- if (c.code === "Escape") {
25
- c.stopPropagation(), n.value && n.value.focus();
18
+ return k ? x.contains(k) : !1;
19
+ }, M = (s) => s.key === "Enter" || s.code === "Enter" || s.code === "NumpadEnter", R = () => e?.value?.columns, E = (s) => {
20
+ const x = s.key || s.code;
21
+ ([" ", "Spacebar", "Space"].includes(x) || M(s)) && (s.preventDefault(), s.stopPropagation(), r.value = s.target, s.target.click());
22
+ }, A = (s) => {
23
+ if (!r.value) return;
24
+ if (s.code === "Escape") {
25
+ s.stopPropagation(), r.value && r.value.focus();
26
26
  return;
27
27
  }
28
- const A = Array.from(
28
+ const x = Array.from(
29
29
  document.querySelectorAll(
30
30
  ".k-animation-container .k-popup .k-column-menu .k-columnmenu-item-wrapper .k-columnmenu-item"
31
31
  )
32
- ), g = document.querySelector(
32
+ ), m = document.querySelector(
33
33
  ".k-animation-container .k-popup .k-column-menu .k-filter-menu-container"
34
34
  );
35
- if (g) {
36
- if (c.code === "Tab") {
37
- const w = [
35
+ if (m) {
36
+ if (s.code === "Tab") {
37
+ const k = [
38
38
  // ".k-filter-menu-container .k-dropdownlist[tabindex='0']",
39
39
  // ".k-filter-menu-container input.k-input-inner:not([tabindex='-1']):not([disabled])",
40
40
  // ".k-filter-menu-container button:not([tabindex='-1']):not([disabled])",
@@ -43,88 +43,88 @@ const bt = (e, t) => {
43
43
  "input.k-input-inner:not([tabindex='-1']):not([disabled])",
44
44
  "button:not([tabindex='-1']):not([disabled])",
45
45
  ".k-checkbox"
46
- ], C = t?.focusableMenuSelectors ?? w, E = Array.from(
47
- g.querySelectorAll(C.join(","))
46
+ ], C = t?.focusableMenuSelectors ?? k, D = Array.from(
47
+ m.querySelectorAll(C.join(","))
48
48
  );
49
- if (E.length === 0) return;
50
- const F = E.findIndex(
51
- (_) => _ === document.activeElement
49
+ if (D.length === 0) return;
50
+ const P = D.findIndex(
51
+ (j) => j === document.activeElement
52
52
  );
53
53
  let U;
54
- F === -1 ? U = 0 : c.shiftKey ? U = (F - 1 + E.length) % E.length : U = (F + 1) % E.length, c.preventDefault(), c.stopPropagation(), E[U]?.focus();
54
+ P === -1 ? U = 0 : s.shiftKey ? U = (P - 1 + D.length) % D.length : U = (P + 1) % D.length, s.preventDefault(), s.stopPropagation(), D[U]?.focus();
55
55
  }
56
- } else if (c.code === "ArrowUp" || c.code === "ArrowDown") {
57
- c.preventDefault(), c.stopPropagation();
58
- const w = A.findIndex(
59
- (E) => E === document.activeElement
56
+ } else if (s.code === "ArrowUp" || s.code === "ArrowDown") {
57
+ s.preventDefault(), s.stopPropagation();
58
+ const k = x.findIndex(
59
+ (D) => D === document.activeElement
60
60
  );
61
- let C = w;
62
- c.code === "ArrowUp" ? C = w > 0 ? w - 1 : A.length - 1 : c.code === "ArrowDown" && (C = w < A.length - 1 ? w + 1 : 0), A[C]?.focus();
61
+ let C = k;
62
+ s.code === "ArrowUp" ? C = k > 0 ? k - 1 : x.length - 1 : s.code === "ArrowDown" && (C = k < x.length - 1 ? k + 1 : 0), x[C]?.focus();
63
63
  return;
64
64
  }
65
- if (c.code === "Tab") {
66
- c.preventDefault(), c.stopPropagation();
67
- const w = n.value?.parentElement;
68
- (c.shiftKey ? w?.previousElementSibling : w?.nextElementSibling)?.querySelector(
65
+ if (s.code === "Tab") {
66
+ s.preventDefault(), s.stopPropagation();
67
+ const k = r.value?.parentElement;
68
+ (s.shiftKey ? k?.previousElementSibling : k?.nextElementSibling)?.querySelector(
69
69
  "button, [role='button'], .k-link"
70
70
  )?.focus();
71
71
  }
72
- }, $ = () => {
73
- a = new MutationObserver((c) => {
74
- c.forEach((A) => {
75
- A.addedNodes.forEach((g) => {
76
- if (g.nodeType === Node.ELEMENT_NODE) {
77
- const w = g;
78
- if (w.classList.contains("k-animation-container")) {
79
- const E = n.value;
80
- E && (E.dataset.featherKSortable === "true" || j(() => {
81
- w.querySelectorAll(
72
+ }, O = () => {
73
+ a = new MutationObserver((s) => {
74
+ s.forEach((x) => {
75
+ x.addedNodes.forEach((m) => {
76
+ if (m.nodeType === Node.ELEMENT_NODE) {
77
+ const k = m;
78
+ if (k.classList.contains("k-animation-container")) {
79
+ const D = r.value;
80
+ D && (D.dataset.featherKSortable === "true" || _(() => {
81
+ k.querySelectorAll(
82
82
  ".k-columnmenu-item-wrapper"
83
- ).forEach((_) => {
84
- _.textContent?.toLowerCase().includes("sort") && _.remove();
83
+ ).forEach((j) => {
84
+ j.textContent?.toLowerCase().includes("sort") && j.remove();
85
85
  });
86
- })), w.addEventListener(
86
+ })), k.addEventListener(
87
87
  "keydown",
88
- x
89
- ), j(() => {
90
- const F = () => {
88
+ A
89
+ ), _(() => {
90
+ const P = () => {
91
91
  const U = Array.from(
92
- w.querySelectorAll(
92
+ k.querySelectorAll(
93
93
  ".k-animation-container .k-popup .k-column-menu .k-columnmenu-item-wrapper .k-columnmenu-item"
94
94
  )
95
95
  );
96
96
  if (U.length === 1)
97
- U[0].focus(), U[0].click(), F.attempts = 0;
97
+ U[0].focus(), U[0].click(), P.attempts = 0;
98
98
  else if (U.length > 1) {
99
- F.attempts = 0;
99
+ P.attempts = 0;
100
100
  return;
101
101
  } else
102
- F.attempts === void 0 && (F.attempts = 0), F.attempts++ < 3 && setTimeout(F, 200);
102
+ P.attempts === void 0 && (P.attempts = 0), P.attempts++ < 3 && setTimeout(P, 200);
103
103
  };
104
- F();
104
+ P();
105
105
  });
106
106
  }
107
- w.querySelectorAll(
107
+ k.querySelectorAll(
108
108
  ".k-animation-container"
109
- ).forEach((E) => {
110
- E.addEventListener(
109
+ ).forEach((D) => {
110
+ D.addEventListener(
111
111
  "keydown",
112
- x
112
+ A
113
113
  );
114
114
  });
115
115
  }
116
- }), A.removedNodes.forEach((g) => {
117
- if (g.nodeType === Node.ELEMENT_NODE) {
118
- const w = g;
119
- w.classList.contains("k-animation-container") && w.removeEventListener(
116
+ }), x.removedNodes.forEach((m) => {
117
+ if (m.nodeType === Node.ELEMENT_NODE) {
118
+ const k = m;
119
+ k.classList.contains("k-animation-container") && k.removeEventListener(
120
120
  "keydown",
121
- x
122
- ), w.querySelectorAll(
121
+ A
122
+ ), k.querySelectorAll(
123
123
  ".k-animation-container"
124
- ).forEach((E) => {
125
- E.removeEventListener(
124
+ ).forEach((D) => {
125
+ D.removeEventListener(
126
126
  "keydown",
127
- x
127
+ A
128
128
  );
129
129
  });
130
130
  }
@@ -134,35 +134,35 @@ const bt = (e, t) => {
134
134
  childList: !0,
135
135
  subtree: !0
136
136
  });
137
- }, f = (c) => {
138
- const A = c.tagName.toLowerCase();
139
- return !!(["input", "textarea", "select", "button"].includes(A) || c.closest(
137
+ }, p = (s) => {
138
+ const x = s.tagName.toLowerCase();
139
+ return !!(["input", "textarea", "select", "button"].includes(x) || s.closest(
140
140
  '.k-picker-wrap, .k-input-inner, .k-textbox, [role="combobox"]'
141
141
  ));
142
- }, u = (c) => {
143
- if (!c.type || !c)
142
+ }, i = (s) => {
143
+ if (!s.type || !s)
144
144
  return;
145
- const A = c.target;
146
- if (!A) return;
147
- const g = A.closest(
145
+ const x = s.target;
146
+ if (!x) return;
147
+ const m = x.closest(
148
148
  ".k-table-row[data-grid-row-index]"
149
149
  );
150
- if (!K(A))
150
+ if (!V(x))
151
151
  return;
152
- const w = ["ArrowLeft", "ArrowRight"].includes(
153
- c.code
152
+ const k = ["ArrowLeft", "ArrowRight"].includes(
153
+ s.code
154
154
  );
155
- if (!(f(A) && !(g && w))) {
156
- if (c.code === "Escape") {
155
+ if (!(p(x) && !(m && k))) {
156
+ if (s.code === "Escape") {
157
157
  const C = document.activeElement?.closest(".k-table-row[data-grid-row-index]");
158
158
  if (C) {
159
- c.preventDefault(), c.stopPropagation();
159
+ s.preventDefault(), s.stopPropagation();
160
160
  try {
161
161
  Array.from(
162
162
  e?.value.$el.querySelectorAll(
163
163
  ".k-table-row[data-grid-row-index]"
164
164
  )
165
- ).forEach((F) => F.setAttribute("tabindex", "-1"));
165
+ ).forEach((P) => P.setAttribute("tabindex", "-1"));
166
166
  } catch {
167
167
  }
168
168
  C.setAttribute("tabindex", "0"), C.focus();
@@ -177,221 +177,221 @@ const bt = (e, t) => {
177
177
  "Enter",
178
178
  "NumpadEnter",
179
179
  "Space"
180
- ].includes(c.code)) {
181
- if (A.classList.contains("k-grid-header-menu") && A.classList.contains("k-grid-column-menu")) {
182
- n.value = A;
180
+ ].includes(s.code)) {
181
+ if (x.classList.contains("k-grid-header-menu") && x.classList.contains("k-grid-column-menu")) {
182
+ r.value = x;
183
183
  return;
184
184
  }
185
- if (g) {
186
- if (["ArrowDown", "ArrowUp"].includes(c.code)) {
187
- c.preventDefault(), c.stopPropagation();
188
- const C = (F, U) => {
189
- let _ = U === "next" ? F.nextElementSibling : F.previousElementSibling;
190
- for (; _; ) {
191
- const re = _;
185
+ if (m) {
186
+ if (["ArrowDown", "ArrowUp"].includes(s.code)) {
187
+ s.preventDefault(), s.stopPropagation();
188
+ const C = (P, U) => {
189
+ let j = U === "next" ? P.nextElementSibling : P.previousElementSibling;
190
+ for (; j; ) {
191
+ const re = j;
192
192
  try {
193
193
  if (re.classList.contains("k-table-row"))
194
194
  return re;
195
195
  } catch {
196
196
  }
197
- _ = U === "next" ? _.nextElementSibling : _.previousElementSibling;
197
+ j = U === "next" ? j.nextElementSibling : j.previousElementSibling;
198
198
  }
199
199
  return null;
200
- }, E = c.code === "ArrowDown" ? C(g, "next") : C(g, "previous");
201
- E && (g.setAttribute("tabindex", "-1"), E.setAttribute("tabindex", "0"), E.focus());
200
+ }, D = s.code === "ArrowDown" ? C(m, "next") : C(m, "previous");
201
+ D && (m.setAttribute("tabindex", "-1"), D.setAttribute("tabindex", "0"), D.focus());
202
202
  return;
203
203
  }
204
- if (["ArrowLeft", "ArrowRight"].includes(c.code)) {
205
- c.preventDefault(), c.stopPropagation();
206
- const C = g.querySelectorAll(
207
- D
204
+ if (["ArrowLeft", "ArrowRight"].includes(s.code)) {
205
+ s.preventDefault(), s.stopPropagation();
206
+ const C = m.querySelectorAll(
207
+ S
208
208
  );
209
209
  if (C.length === 0) return;
210
- let E = Array.from(C).findIndex(
211
- (F) => F === document.activeElement
210
+ let D = Array.from(C).findIndex(
211
+ (P) => P === document.activeElement
212
212
  );
213
- if (E === -1 && document.activeElement === g) {
213
+ if (D === -1 && document.activeElement === m) {
214
214
  C[0].focus();
215
215
  return;
216
216
  }
217
- c.code === "ArrowRight" ? E = E === C.length - 1 ? 0 : E + 1 : c.code === "ArrowLeft" && (E = E === 0 ? C.length - 1 : E - 1), C[E].focus();
217
+ s.code === "ArrowRight" ? D = D === C.length - 1 ? 0 : D + 1 : s.code === "ArrowLeft" && (D = D === 0 ? C.length - 1 : D - 1), C[D].focus();
218
218
  return;
219
219
  }
220
220
  }
221
221
  }
222
222
  }
223
223
  }, v = () => {
224
- j(() => {
225
- const c = e.value?.$el;
226
- if (!c || typeof c.closest != "function") return;
227
- const A = c.closest(".k-grid");
228
- A && A.classList.add("fk-grid");
224
+ _(() => {
225
+ const s = e.value?.$el;
226
+ if (!s || typeof s.closest != "function") return;
227
+ const x = s.closest(".k-grid");
228
+ x && x.classList.add("fk-grid");
229
229
  });
230
230
  }, I = () => {
231
231
  if (!d)
232
232
  try {
233
- const c = () => {
233
+ const s = () => {
234
234
  try {
235
- const w = Array.from(
235
+ const k = Array.from(
236
236
  e.value.$el.querySelectorAll(
237
237
  ".k-table-row[data-grid-row-index]"
238
238
  )
239
239
  );
240
- if (!w || w.length === 0 || w.filter(
241
- (F) => F.getAttribute("tabindex") === "0"
240
+ if (!k || k.length === 0 || k.filter(
241
+ (P) => P.getAttribute("tabindex") === "0"
242
242
  ).length === 1) return;
243
- const E = w.find(
244
- (F) => F === document.activeElement || F.contains(document.activeElement)
243
+ const D = k.find(
244
+ (P) => P === document.activeElement || P.contains(document.activeElement)
245
245
  );
246
- if (w.forEach((F) => F.setAttribute("tabindex", "-1")), E) {
247
- E.setAttribute("tabindex", "0");
246
+ if (k.forEach((P) => P.setAttribute("tabindex", "-1")), D) {
247
+ D.setAttribute("tabindex", "0");
248
248
  return;
249
249
  }
250
- w[0].setAttribute("tabindex", "0");
251
- } catch (w) {
252
- console.error("ensureSingleTabindex error:", w);
250
+ k[0].setAttribute("tabindex", "0");
251
+ } catch (k) {
252
+ console.error("ensureSingleTabindex error:", k);
253
253
  }
254
- }, A = Array.from(
254
+ }, x = Array.from(
255
255
  e.value.$el.querySelectorAll(
256
256
  ".k-table-row[data-grid-row-index]"
257
257
  )
258
258
  );
259
- A.length > 0 && A.forEach((w, C) => {
260
- w.setAttribute("tabindex", C === 0 ? "0" : "-1");
259
+ x.length > 0 && x.forEach((k, C) => {
260
+ k.setAttribute("tabindex", C === 0 ? "0" : "-1");
261
261
  });
262
- const g = e.value.$el.querySelector(".k-table-tbody");
263
- g && (d = new MutationObserver(() => {
264
- c();
265
- }), d.observe(g, { childList: !0, subtree: !0 }));
266
- } catch (c) {
267
- console.error("Error setting up row navigation:", c);
262
+ const m = e.value.$el.querySelector(".k-table-tbody");
263
+ m && (d = new MutationObserver(() => {
264
+ s();
265
+ }), d.observe(m, { childList: !0, subtree: !0 }));
266
+ } catch (s) {
267
+ console.error("Error setting up row navigation:", s);
268
268
  }
269
- }, q = () => {
270
- j(() => {
271
- const A = document.querySelectorAll(".k-grid-header .k-grid-header-menu.k-grid-column-menu");
272
- A && A.forEach((g) => {
273
- g.setAttribute("role", "button"), g.addEventListener(
269
+ }, N = () => {
270
+ _(() => {
271
+ const x = document.querySelectorAll(".k-grid-header .k-grid-header-menu.k-grid-column-menu");
272
+ x && x.forEach((m) => {
273
+ m.setAttribute("role", "button"), m.addEventListener(
274
274
  "keydown",
275
- k
275
+ E
276
276
  );
277
- }), $(), B();
277
+ }), O(), X();
278
278
  });
279
- }, W = () => {
280
- const A = document.querySelectorAll(".k-grid-header .k-grid-header-menu.k-grid-column-menu");
281
- A && A.forEach((g) => {
282
- g.removeEventListener(
279
+ }, H = () => {
280
+ const x = document.querySelectorAll(".k-grid-header .k-grid-header-menu.k-grid-column-menu");
281
+ x && x.forEach((m) => {
282
+ m.removeEventListener(
283
283
  "keydown",
284
- k
284
+ E
285
285
  );
286
- }), a && (a.disconnect(), a = null), d && (d.disconnect(), d = null), b.forEach((g) => g()), b.length = 0;
287
- }, B = () => {
286
+ }), a && (a.disconnect(), a = null), d && (d.disconnect(), d = null), w.forEach((m) => m()), w.length = 0;
287
+ }, X = () => {
288
288
  document.querySelectorAll(
289
289
  ".k-grid-header .k-table-thead th"
290
- ).forEach((g, w) => {
291
- if (g.dataset.featherKHeaderBound === "true")
290
+ ).forEach((m, k) => {
291
+ if (m.dataset.featherKHeaderBound === "true")
292
292
  return;
293
- const C = g.querySelector(
293
+ const C = m.querySelector(
294
294
  ".k-grid-header-menu.k-grid-column-menu"
295
295
  );
296
296
  if (!C) return;
297
- const E = R();
298
- if (E && E[w]) {
299
- const o = E[w].field ?? "";
300
- g.setAttribute("data-feather-k-field", o), g.setAttribute(
297
+ const D = R();
298
+ if (D && D[k]) {
299
+ const o = D[k].field ?? "";
300
+ m.setAttribute("data-feather-k-field", o), m.setAttribute(
301
301
  "data-feather-k-filterable",
302
- E[w].filterable === !1 ? "false" : "true"
303
- ), g.setAttribute(
302
+ D[k].filterable === !1 ? "false" : "true"
303
+ ), m.setAttribute(
304
304
  "data-feather-k-sortable",
305
- E[w].sortable === !1 ? "false" : "true"
305
+ D[k].sortable === !1 ? "false" : "true"
306
306
  );
307
307
  }
308
- const F = g.dataset.featherKFilterable !== "false", U = g.dataset.featherKSortable !== "false";
309
- C.setAttribute("tabindex", "-1"), F || U ? g.style.cursor = "pointer" : g.style.cursor = "default", F ? (g.setAttribute("tabindex", "0"), g.setAttribute("role", "button"), g.setAttribute("aria-haspopup", "menu")) : (g.setAttribute("tabindex", "0"), g.setAttribute("role", "columnheader"), g.removeAttribute("aria-haspopup"));
310
- const _ = (o) => {
311
- o.target?.closest(".k-column-resizer") || (n.value = g, C.click());
308
+ const P = m.dataset.featherKFilterable !== "false", U = m.dataset.featherKSortable !== "false";
309
+ C.setAttribute("tabindex", "-1"), P || U ? m.style.cursor = "pointer" : m.style.cursor = "default", P ? (m.setAttribute("tabindex", "0"), m.setAttribute("role", "button"), m.setAttribute("aria-haspopup", "menu")) : (m.setAttribute("tabindex", "0"), m.setAttribute("role", "columnheader"), m.removeAttribute("aria-haspopup"));
310
+ const j = (o) => {
311
+ o.target?.closest(".k-column-resizer") || (r.value = m, C.click());
312
312
  }, re = (o) => {
313
- if (F)
314
- n.value = g, o.preventDefault(), o.stopPropagation(), _(o);
313
+ if (P)
314
+ r.value = m, o.preventDefault(), o.stopPropagation(), j(o);
315
315
  else if (U) {
316
- n.value = g;
317
- const S = g.querySelector(".k-link");
318
- S && S.click();
316
+ r.value = m;
317
+ const b = m.querySelector(".k-link");
318
+ b && b.click();
319
319
  }
320
320
  };
321
- g.addEventListener("click", re), b.push(() => {
322
- g.removeEventListener("click", re);
321
+ m.addEventListener("click", re), w.push(() => {
322
+ m.removeEventListener("click", re);
323
323
  });
324
324
  const ue = (o) => {
325
- if ((M(o) || o.code === "Space") && (F || U)) {
326
- if (o.preventDefault(), o.stopPropagation(), n.value = g, n.value.focus(), F)
327
- _(o);
325
+ if ((M(o) || o.code === "Space") && (P || U)) {
326
+ if (o.preventDefault(), o.stopPropagation(), r.value = m, r.value.focus(), P)
327
+ j(o);
328
328
  else if (U) {
329
- const S = g.querySelector(".k-link");
330
- S && S.click();
329
+ const b = m.querySelector(".k-link");
330
+ b && b.click();
331
331
  }
332
332
  }
333
333
  };
334
- g.addEventListener("keydown", ue, !0), b.push(() => {
335
- g.removeEventListener("keydown", ue, !0);
336
- }), g.dataset.featherKHeaderBound = "true";
334
+ m.addEventListener("keydown", ue, !0), w.push(() => {
335
+ m.removeEventListener("keydown", ue, !0);
336
+ }), m.dataset.featherKHeaderBound = "true";
337
337
  });
338
- const A = document.querySelector(".k-grid-header .k-table-thead");
339
- if (A && A.dataset.featherKHeaderBound !== "true") {
340
- const g = (w) => {
341
- const C = w.target.closest("th");
342
- C && (M(w) || w.code === "Space") && C.dataset.featherKFilterable === "false" && C.dataset.featherKSortable === "false" && (w.preventDefault(), w.stopImmediatePropagation());
338
+ const x = document.querySelector(".k-grid-header .k-table-thead");
339
+ if (x && x.dataset.featherKHeaderBound !== "true") {
340
+ const m = (k) => {
341
+ const C = k.target.closest("th");
342
+ C && (M(k) || k.code === "Space") && C.dataset.featherKFilterable === "false" && C.dataset.featherKSortable === "false" && (k.preventDefault(), k.stopImmediatePropagation());
343
343
  };
344
- A.addEventListener(
344
+ x.addEventListener(
345
345
  "keydown",
346
- g,
346
+ m,
347
347
  !0
348
348
  // NOTE: capture phase
349
- ), b.push(() => {
350
- A.removeEventListener(
349
+ ), w.push(() => {
350
+ x.removeEventListener(
351
351
  "keydown",
352
- g,
352
+ m,
353
353
  !0
354
354
  );
355
- }), A.dataset.featherKHeaderBound = "true";
355
+ }), x.dataset.featherKHeaderBound = "true";
356
356
  }
357
- }, Y = function(c, A) {
358
- const g = c?.event?.event.target, w = R();
359
- if (!g || !w) return;
360
- const C = g.classList.contains("k-grid-header-menu"), E = g.classList.contains("k-columnmenu-item"), F = w.find((U) => U.field === c?.event?.field)?.sortable && !0;
357
+ }, Z = function(s, x) {
358
+ const m = s?.event?.event.target, k = R();
359
+ if (!m || !k) return;
360
+ const C = m.classList.contains("k-grid-header-menu"), D = m.classList.contains("k-columnmenu-item"), P = k.find((U) => U.field === s?.event?.field)?.sortable && !0;
361
361
  if (!C) {
362
- if (E && !F) {
363
- c?.event?.sort?.filter(
364
- (_) => _.field !== c?.event?.field
362
+ if (D && !P) {
363
+ s?.event?.sort?.filter(
364
+ (j) => j.field !== s?.event?.field
365
365
  );
366
366
  return;
367
367
  }
368
- typeof A == "function" && j(() => {
369
- n.value && n.value.focus(), A(c), j(() => {
370
- B();
368
+ typeof x == "function" && _(() => {
369
+ r.value && r.value.focus(), x(s), _(() => {
370
+ X();
371
371
  });
372
372
  });
373
373
  }
374
374
  }, J = () => {
375
- if (!p)
375
+ if (!c)
376
376
  try {
377
- v(), I(), q(), p = !0;
378
- } catch (c) {
379
- console.error("initA11y failed:", c), W();
377
+ v(), I(), N(), c = !0;
378
+ } catch (s) {
379
+ console.error("initA11y failed:", s), H();
380
380
  }
381
381
  };
382
- return qe(() => {
383
- W();
382
+ return Ke(() => {
383
+ H();
384
384
  }), {
385
- activeFilterButton: n,
386
- handleGridKeyDown: u,
387
- handleSortChange: Y,
385
+ activeFilterButton: r,
386
+ handleGridKeyDown: i,
387
+ handleSortChange: Z,
388
388
  initA11y: J
389
389
  };
390
- }, He = (e) => !!e && typeof e == "object" && "filters" in e && Array.isArray(e.filters), Xe = (e) => !!e && typeof e == "object" && "field" in e, Le = (e, t) => !e || typeof e != "object" ? !1 : He(e) ? e.filters.some(
391
- (n) => Le(n, t)
392
- ) : Xe(e) ? e.field === t : !1, wt = (e) => (t) => e.value?.filters && e.value.filters.some(
393
- (n) => Le(n, t)
394
- ) ? "active" : "", We = [
390
+ }, Xe = (e) => !!e && typeof e == "object" && "filters" in e && Array.isArray(e.filters), We = (e) => !!e && typeof e == "object" && "field" in e, Ve = (e, t) => !e || typeof e != "object" ? !1 : Xe(e) ? e.filters.some(
391
+ (r) => Ve(r, t)
392
+ ) : We(e) ? e.field === t : !1, St = (e) => (t) => e.value?.filters && e.value.filters.some(
393
+ (r) => Ve(r, t)
394
+ ) ? "active" : "", Ze = [
395
395
  "button",
396
396
  "a",
397
397
  "input",
@@ -409,228 +409,228 @@ const bt = (e, t) => {
409
409
  ".k-hierarchy-cell",
410
410
  ".k-grid-header-menu",
411
411
  ".k-column-menu"
412
- ], St = (e) => {
412
+ ], kt = (e) => {
413
413
  const {
414
414
  onRowAction: t,
415
- gridRef: n,
416
- dataItems: p,
415
+ gridRef: r,
416
+ dataItems: c,
417
417
  ignoreSelectors: a = [],
418
418
  shouldIgnoreTarget: d,
419
- enableKeyboardAction: b = !0
420
- } = e, D = [
421
- ...We,
419
+ enableKeyboardAction: w = !0
420
+ } = e, S = [
421
+ ...Ze,
422
422
  ...a
423
- ], O = (f, u) => {
424
- if (!f) return !1;
425
- const v = D.join(",");
426
- return f.closest && f.closest(v) ? !0 : d && u ? d(f, u) : !1;
427
- }, K = (f) => {
428
- const v = f?.closest?.(
423
+ ], $ = (p, i) => {
424
+ if (!p) return !1;
425
+ const v = S.join(",");
426
+ return p.closest && p.closest(v) ? !0 : d && i ? d(p, i) : !1;
427
+ }, V = (p) => {
428
+ const v = p?.closest?.(
429
429
  ".k-table-row[data-grid-row-index]"
430
430
  )?.getAttribute("data-grid-row-index");
431
431
  if (v == null) return;
432
432
  const I = parseInt(v, 10);
433
433
  return Number.isNaN(I) ? void 0 : I;
434
- }, M = (f) => {
435
- if (!f || typeof f.clientX != "number")
434
+ }, M = (p) => {
435
+ if (!p || typeof p.clientX != "number")
436
436
  return;
437
- const u = typeof window < "u" && window.scrollX || 0, v = typeof window < "u" && window.scrollY || 0, I = typeof window < "u" && window.screenX || 0, q = typeof window < "u" && window.screenY || 0;
437
+ const i = typeof window < "u" && window.scrollX || 0, v = typeof window < "u" && window.scrollY || 0, I = typeof window < "u" && window.screenX || 0, N = typeof window < "u" && window.screenY || 0;
438
438
  return {
439
- clientX: f.clientX,
440
- clientY: f.clientY,
441
- pageX: typeof f.pageX == "number" ? f.pageX : f.clientX + u,
442
- pageY: typeof f.pageY == "number" ? f.pageY : f.clientY + v,
443
- screenX: typeof f.screenX == "number" ? f.screenX : f.clientX + I,
444
- screenY: typeof f.screenY == "number" ? f.screenY : f.clientY + q
439
+ clientX: p.clientX,
440
+ clientY: p.clientY,
441
+ pageX: typeof p.pageX == "number" ? p.pageX : p.clientX + i,
442
+ pageY: typeof p.pageY == "number" ? p.pageY : p.clientY + v,
443
+ screenX: typeof p.screenX == "number" ? p.screenX : p.clientX + I,
444
+ screenY: typeof p.screenY == "number" ? p.screenY : p.clientY + N
445
445
  };
446
- }, R = (f) => {
447
- if (!f || typeof f.getBoundingClientRect != "function")
446
+ }, R = (p) => {
447
+ if (!p || typeof p.getBoundingClientRect != "function")
448
448
  return;
449
- const u = f.getBoundingClientRect();
450
- if (!u) return;
451
- const v = u.left, I = u.bottom, q = typeof window < "u" && window.scrollX || 0, W = typeof window < "u" && window.scrollY || 0;
449
+ const i = p.getBoundingClientRect();
450
+ if (!i) return;
451
+ const v = i.left, I = i.bottom, N = typeof window < "u" && window.scrollX || 0, H = typeof window < "u" && window.scrollY || 0;
452
452
  return {
453
453
  clientX: v,
454
454
  clientY: I,
455
- pageX: v + q,
456
- pageY: I + W,
455
+ pageX: v + N,
456
+ pageY: I + H,
457
457
  screenX: v,
458
458
  screenY: I
459
459
  };
460
- }, k = (f) => {
460
+ }, E = (p) => {
461
461
  if (typeof window > "u") return !1;
462
- const u = window.getSelection();
463
- if (!u || u.isCollapsed || !u.toString().trim())
462
+ const i = window.getSelection();
463
+ if (!i || i.isCollapsed || !i.toString().trim())
464
464
  return !1;
465
- if (f && u.anchorNode && u.focusNode) {
466
- const v = f.closest(".k-table-row") || f.closest(".k-grid") || f, I = u.anchorNode.nodeType === Node.ELEMENT_NODE ? u.anchorNode : u.anchorNode.parentElement, q = u.focusNode.nodeType === Node.ELEMENT_NODE ? u.focusNode : u.focusNode.parentElement, W = !!(I && v.contains(I)), B = !!(q && v.contains(q));
467
- return W || B;
465
+ if (p && i.anchorNode && i.focusNode) {
466
+ const v = p.closest(".k-table-row") || p.closest(".k-grid") || p, I = i.anchorNode.nodeType === Node.ELEMENT_NODE ? i.anchorNode : i.anchorNode.parentElement, N = i.focusNode.nodeType === Node.ELEMENT_NODE ? i.focusNode : i.focusNode.parentElement, H = !!(I && v.contains(I)), X = !!(N && v.contains(N));
467
+ return H || X;
468
468
  }
469
469
  return !0;
470
470
  };
471
471
  return {
472
- handleRowClick: (f) => {
473
- const u = f?.htmlEvent || f?.event || f?.nativeEvent || (f instanceof Event ? f : void 0);
474
- if (u && u.button !== void 0 && u.button !== 0)
472
+ handleRowClick: (p) => {
473
+ const i = p?.htmlEvent || p?.event || p?.nativeEvent || (p instanceof Event ? p : void 0);
474
+ if (i && i.button !== void 0 && i.button !== 0)
475
475
  return;
476
- const v = u?.target || f?.target;
477
- if (v && O(v, u || f) || k(v))
476
+ const v = i?.target || p?.target;
477
+ if (v && $(v, i || p) || E(v))
478
478
  return;
479
479
  const I = {
480
- dataItem: f.dataItem,
481
- rowIndex: f.rowIndex ?? K(v),
482
- field: f.field,
483
- event: u || f,
480
+ dataItem: p.dataItem,
481
+ rowIndex: p.rowIndex ?? V(v),
482
+ field: p.field,
483
+ event: i || p,
484
484
  triggerType: "click",
485
- ctrlKey: !!u?.ctrlKey,
486
- shiftKey: !!u?.shiftKey,
487
- metaKey: !!u?.metaKey,
488
- altKey: !!u?.altKey,
489
- coordinates: M(u) ?? R(v)
485
+ ctrlKey: !!i?.ctrlKey,
486
+ shiftKey: !!i?.shiftKey,
487
+ metaKey: !!i?.metaKey,
488
+ altKey: !!i?.altKey,
489
+ coordinates: M(i) ?? R(v)
490
490
  };
491
- t(f.dataItem, I);
491
+ t(p.dataItem, I);
492
492
  },
493
- handleRowKeyDown: (f, u) => {
494
- if (!b) return;
495
- const v = f.key || f.code;
496
- if (!(v === "Enter" || v === "NumpadEnter" || v === " " || v === "Space" || f.code === "Enter" || f.code === "NumpadEnter" || f.code === "Space")) return;
497
- const q = f.target;
498
- if (!q) return;
499
- const W = q.closest(
493
+ handleRowKeyDown: (p, i) => {
494
+ if (!w) return;
495
+ const v = p.key || p.code;
496
+ if (!(v === "Enter" || v === "NumpadEnter" || v === " " || v === "Space" || p.code === "Enter" || p.code === "NumpadEnter" || p.code === "Space")) return;
497
+ const N = p.target;
498
+ if (!N) return;
499
+ const H = N.closest(
500
500
  ".k-table-row[data-grid-row-index], .k-table-row"
501
501
  );
502
- if (!W || O(q, f))
502
+ if (!H || $(N, p))
503
503
  return;
504
- f.preventDefault(), f.stopPropagation();
505
- const B = W.getAttribute("data-grid-row-index"), Y = B !== null ? parseInt(B, 10) : void 0;
506
- let J = u;
504
+ p.preventDefault(), p.stopPropagation();
505
+ const X = H.getAttribute("data-grid-row-index"), Z = X !== null ? parseInt(X, 10) : void 0;
506
+ let J = i;
507
507
  if (J === void 0) {
508
- const A = (Array.isArray(p) ? p : p?.value) || n?.value?.props?.dataItems || n?.value?.dataItems;
509
- A && Y !== void 0 && Y >= 0 && Y < A.length && (J = A[Y]);
508
+ const x = (Array.isArray(c) ? c : c?.value) || r?.value?.props?.dataItems || r?.value?.dataItems;
509
+ x && Z !== void 0 && Z >= 0 && Z < x.length && (J = x[Z]);
510
510
  }
511
511
  if (J === void 0) return;
512
- const c = {
512
+ const s = {
513
513
  dataItem: J,
514
- rowIndex: Y,
515
- event: f,
514
+ rowIndex: Z,
515
+ event: p,
516
516
  triggerType: "keyboard",
517
- ctrlKey: !!f.ctrlKey,
518
- shiftKey: !!f.shiftKey,
519
- metaKey: !!f.metaKey,
520
- altKey: !!f.altKey,
521
- coordinates: R(W)
517
+ ctrlKey: !!p.ctrlKey,
518
+ shiftKey: !!p.shiftKey,
519
+ metaKey: !!p.metaKey,
520
+ altKey: !!p.altKey,
521
+ coordinates: R(H)
522
522
  };
523
- t(J, c);
523
+ t(J, s);
524
524
  },
525
- isIgnoredTarget: O
525
+ isIgnoredTarget: $
526
526
  };
527
- }, Ze = "Enter a valid ZIP code with exactly 5 or 9 digits.", Fe = (e) => {
527
+ }, _e = "Enter a valid ZIP code with exactly 5 or 9 digits.", Fe = (e) => {
528
528
  const t = e.replace(/\D/g, "").slice(0, 9);
529
529
  return t.length > 5 ? `${t.slice(0, 5)}-${t.slice(5)}` : t;
530
- }, _e = (e, t) => e.slice(0, Math.max(0, t)).replace(/\D/g, "").length, je = (e) => e <= 5 ? e : Math.min(e + 1, 10), Ge = (e) => {
531
- const t = X(Fe(e.initialValue ?? "")), n = X(!1), p = X(
532
- e.errorMessage?.trim() || Ze
530
+ }, je = (e, t) => e.slice(0, Math.max(0, t)).replace(/\D/g, "").length, Ge = (e) => e <= 5 ? e : Math.min(e + 1, 10), Je = (e) => {
531
+ const t = Y(Fe(e.initialValue ?? "")), r = Y(!1), c = Y(
532
+ e.errorMessage?.trim() || _e
533
533
  ), a = y(() => t.value.replace(/\D/g, "")), d = y(() => {
534
- const x = a.value.length;
535
- return x === 5 || x === 9;
536
- }), b = y(() => n.value && !d.value), D = y(() => !n.value || d.value), O = y(() => n.value), K = (x, $) => {
537
- const f = je($);
538
- j(() => {
539
- x.isConnected && x.setSelectionRange(f, f);
534
+ const A = a.value.length;
535
+ return A === 5 || A === 9;
536
+ }), w = y(() => r.value && !d.value), S = y(() => !r.value || d.value), $ = y(() => r.value), V = (A, O) => {
537
+ const p = Ge(O);
538
+ _(() => {
539
+ A.isConnected && A.setSelectionRange(p, p);
540
540
  });
541
541
  };
542
542
  return {
543
543
  // writable state
544
544
  zipDisplay: t,
545
- submitted: n,
546
- errorMessage: p,
545
+ submitted: r,
546
+ errorMessage: c,
547
547
  // bindings
548
548
  wrapperClass: "fk-zip-textbox",
549
549
  // derived state
550
550
  zipRaw: a,
551
551
  isZipValid: d,
552
- showZipError: b,
553
- textBoxValid: D,
554
- textBoxValidate: O,
552
+ showZipError: w,
553
+ textBoxValid: S,
554
+ textBoxValidate: $,
555
555
  // actions
556
- handleZipInput: (...x) => {
557
- const $ = x[0], u = $?.event?.target, v = $?.value, I = Array.isArray(v) ? v.join("") : String(v ?? ""), q = u?.selectionStart !== void 0 && u.selectionStart !== null ? _e(
558
- u.value,
559
- u.selectionStart
556
+ handleZipInput: (...A) => {
557
+ const O = A[0], i = O?.event?.target, v = O?.value, I = Array.isArray(v) ? v.join("") : String(v ?? ""), N = i?.selectionStart !== void 0 && i.selectionStart !== null ? je(
558
+ i.value,
559
+ i.selectionStart
560
560
  ) : I.replace(/\D/g, "").length;
561
- t.value = Fe(I), u && K(u, q);
561
+ t.value = Fe(I), i && V(i, N);
562
562
  },
563
- submitAndValidate: (x) => {
564
- n.value = !0;
565
- const $ = d.value;
566
- return !$ && x?.focus && j(() => {
563
+ submitAndValidate: (A) => {
564
+ r.value = !0;
565
+ const O = d.value;
566
+ return !O && A?.focus && _(() => {
567
567
  document.getElementById(
568
568
  e.id
569
569
  )?.focus();
570
- }), $;
570
+ }), O;
571
571
  },
572
572
  buildPayload: () => ({ zip: a.value })
573
573
  };
574
574
  };
575
- function Je(e, t) {
576
- const n = X(!1);
577
- Oe(() => {
575
+ function Qe(e, t) {
576
+ const r = Y(!1);
577
+ Le(() => {
578
578
  e.value?.setAttribute("aria-invalid", String(!t.isValid()));
579
579
  });
580
- function p(d) {
581
- const b = e.value ?? d.currentTarget, D = d.relatedTarget;
582
- (!b || !b.contains(D)) && (n.value = !0);
580
+ function c(d) {
581
+ const w = e.value ?? d.currentTarget, S = d.relatedTarget;
582
+ (!w || !w.contains(S)) && (r.value = !0);
583
583
  }
584
584
  function a() {
585
- n.value = !1;
585
+ r.value = !1;
586
586
  }
587
- return { touched: n, onFocusout: p, reset: a };
587
+ return { touched: r, onFocusout: c, reset: a };
588
588
  }
589
- function Qe(e, t) {
590
- const n = X(!1), p = X(!1), a = y(
591
- () => ne(t.submitted) || n.value
592
- ), d = y(() => !a.value || t.isValid()), b = Je(e, {
589
+ function et(e, t) {
590
+ const r = Y(!1), c = Y(!1), a = y(
591
+ () => ne(t.submitted) || r.value
592
+ ), d = y(() => !a.value || t.isValid()), w = Qe(e, {
593
593
  isValid: () => d.value
594
594
  });
595
- function D(k) {
596
- return y(() => !a.value || ne(k));
595
+ function S(E) {
596
+ return y(() => !a.value || ne(E));
597
597
  }
598
- function O(k) {
598
+ function $(E) {
599
599
  return Object.fromEntries(
600
- Object.entries(k).map(([x, $]) => [
601
- x,
602
- D($)
600
+ Object.entries(E).map(([A, O]) => [
601
+ A,
602
+ S(O)
603
603
  ])
604
604
  );
605
605
  }
606
- function K(k) {
607
- const x = ne(k);
608
- if (!x) return;
609
- x.querySelector(
606
+ function V(E) {
607
+ const A = ne(E);
608
+ if (!A) return;
609
+ A.querySelector(
610
610
  '.k-invalid input, .k-invalid[tabindex="0"]'
611
611
  )?.focus();
612
612
  }
613
- function M(k) {
614
- if (p.value) {
615
- p.value = !1;
613
+ function M(E) {
614
+ if (c.value) {
615
+ c.value = !1;
616
616
  return;
617
617
  }
618
- b.onFocusout(k), b.touched.value && (n.value = !0);
618
+ w.onFocusout(E), w.touched.value && (r.value = !0);
619
619
  }
620
620
  function R() {
621
- n.value = !1, p.value = !0, b.reset();
621
+ r.value = !1, c.value = !0, w.reset();
622
622
  }
623
623
  return {
624
- touched: n,
624
+ touched: r,
625
625
  fieldsetValidate: a,
626
626
  onFocusout: M,
627
627
  reset: R,
628
- createFieldValidity: D,
629
- createFieldValidationsMap: O,
630
- focusFirstInvalidField: K
628
+ createFieldValidity: S,
629
+ createFieldValidationsMap: $,
630
+ focusFirstInvalidField: V
631
631
  };
632
632
  }
633
- const et = [
633
+ const tt = [
634
634
  { label: "Alabama", value: "AL" },
635
635
  { label: "Alaska", value: "AK" },
636
636
  { label: "Arizona", value: "AZ" },
@@ -689,8 +689,8 @@ function xe(e) {
689
689
  }
690
690
  return "";
691
691
  }
692
- function tt() {
693
- const e = Ke({
692
+ function nt() {
693
+ const e = ze({
694
694
  address1: "",
695
695
  address2: "",
696
696
  city: "",
@@ -699,376 +699,388 @@ function tt() {
699
699
  });
700
700
  return {
701
701
  formData: e,
702
- onAddress1Input: (...b) => {
703
- e.address1 = xe(b[0]);
702
+ onAddress1Input: (...w) => {
703
+ e.address1 = xe(w[0]);
704
704
  },
705
- onAddress2Input: (...b) => {
706
- e.address2 = xe(b[0]);
705
+ onAddress2Input: (...w) => {
706
+ e.address2 = xe(w[0]);
707
707
  },
708
- onCityInput: (...b) => {
709
- e.city = xe(b[0]);
708
+ onCityInput: (...w) => {
709
+ e.city = xe(w[0]);
710
710
  },
711
- onStateChange: (b) => {
712
- e.state = b.value;
711
+ onStateChange: (w) => {
712
+ e.state = w.value;
713
713
  },
714
714
  resetFormData: () => {
715
715
  e.address1 = "", e.address2 = "", e.city = "", e.state = null, e.zip = "";
716
716
  }
717
717
  };
718
718
  }
719
- function nt(e, t = "zip") {
720
- const n = Ge({ id: t }), {
721
- zipDisplay: p,
719
+ function rt(e, t = "zip") {
720
+ const r = Je({ id: t }), {
721
+ zipDisplay: c,
722
722
  zipRaw: a,
723
723
  isZipValid: d,
724
- wrapperClass: b,
725
- handleZipInput: D
726
- } = n;
727
- return le(a, (K) => {
728
- e.zip = K;
724
+ wrapperClass: w,
725
+ handleZipInput: S
726
+ } = r;
727
+ return le(a, (V) => {
728
+ e.zip = V;
729
729
  }), {
730
- zipDisplay: p,
730
+ zipDisplay: c,
731
731
  isZipValid: d,
732
- zipWrapperClass: b,
733
- onZipInput: D,
732
+ zipWrapperClass: w,
733
+ onZipInput: S,
734
734
  resetZip: () => {
735
- p.value = "", e.zip = "";
735
+ c.value = "", e.zip = "";
736
736
  }
737
737
  };
738
738
  }
739
- function rt(e) {
739
+ function at(e) {
740
740
  const t = y(
741
741
  () => e.formData.address1.trim() !== ""
742
- ), n = y(() => e.formData.city.trim() !== ""), p = y(() => !!e.formData.state), a = y(() => ne(e.isZipValid)), d = y(
743
- () => t.value && n.value && p.value && a.value
742
+ ), r = y(() => e.formData.city.trim() !== ""), c = y(() => !!e.formData.state), a = y(() => ne(e.isZipValid)), d = y(
743
+ () => t.value && r.value && c.value && a.value
744
744
  );
745
745
  return {
746
746
  strictAddress1Valid: t,
747
- strictCityValid: n,
748
- strictStateValid: p,
747
+ strictCityValid: r,
748
+ strictStateValid: c,
749
749
  strictZipValid: a,
750
750
  strictAddressValid: d
751
751
  };
752
752
  }
753
- function at(e) {
753
+ function ot(e) {
754
754
  if (!e) return;
755
755
  e.querySelector(
756
756
  '.k-invalid input, .k-invalid[tabindex="0"]'
757
757
  )?.focus();
758
758
  }
759
- function ot(e, t) {
760
- const n = e ?? t.currentTarget, p = t.relatedTarget;
761
- return !n || !n.contains(p);
759
+ function lt(e, t) {
760
+ const r = e ?? t.currentTarget, c = t.relatedTarget;
761
+ return !r || !r.contains(c);
762
762
  }
763
- function kt(e) {
764
- const t = X(
763
+ function At(e) {
764
+ const t = Y(
765
765
  ne(e.fieldsetRef)
766
766
  );
767
- Oe(() => {
767
+ Le(() => {
768
768
  t.value = ne(e.fieldsetRef);
769
769
  });
770
- const n = X(!1), p = X(!1), a = y(() => ne(e.required) ?? !0), {
770
+ const r = Y(!1), c = Y(!1), a = y(() => ne(e.required) ?? !0), {
771
771
  formData: d,
772
- onAddress1Input: b,
773
- onAddress2Input: D,
774
- onCityInput: O,
775
- onStateChange: K,
772
+ onAddress1Input: w,
773
+ onAddress2Input: S,
774
+ onCityInput: $,
775
+ onStateChange: V,
776
776
  resetFormData: M
777
- } = tt(), R = `${e.addressId}-zip`, { zipDisplay: k, isZipValid: x, zipWrapperClass: $, onZipInput: f, resetZip: u } = nt(d, R), {
777
+ } = nt(), R = `${e.addressId}-zip`, { zipDisplay: E, isZipValid: A, zipWrapperClass: O, onZipInput: p, resetZip: i } = rt(d, R), {
778
778
  strictAddress1Valid: v,
779
779
  strictCityValid: I,
780
- strictStateValid: q,
781
- strictZipValid: W,
782
- strictAddressValid: B
783
- } = rt({
780
+ strictStateValid: N,
781
+ strictZipValid: H,
782
+ strictAddressValid: X
783
+ } = at({
784
784
  formData: d,
785
- isZipValid: x
786
- }), Y = Qe(t, {
787
- submitted: n,
788
- isValid: () => B.value
789
- }), { touched: J, fieldsetValidate: c, onFocusout: A, reset: g } = Y, w = Y.createFieldValidationsMap({
785
+ isZipValid: A
786
+ }), Z = et(t, {
787
+ submitted: r,
788
+ isValid: () => X.value
789
+ }), { touched: J, fieldsetValidate: s, onFocusout: x, reset: m } = Z, k = Z.createFieldValidationsMap({
790
790
  address1: v,
791
791
  city: I,
792
- state: q,
793
- zip: W,
794
- address: B
792
+ state: N,
793
+ zip: H,
794
+ address: X
795
795
  }), {
796
796
  address1: C,
797
- city: E,
798
- state: F,
797
+ city: D,
798
+ state: P,
799
799
  zip: U,
800
- address: _
801
- } = w, re = y(
802
- () => a.value ? c.value : !1
800
+ address: j
801
+ } = k, re = y(
802
+ () => a.value ? s.value : !1
803
803
  ), ue = y(
804
804
  () => a.value ? C.value : !0
805
805
  ), o = y(
806
- () => a.value ? E.value : !0
807
- ), S = y(
808
- () => a.value ? F.value : !0
809
- ), s = y(
806
+ () => a.value ? D.value : !0
807
+ ), b = y(
808
+ () => a.value ? P.value : !0
809
+ ), q = y(
810
810
  () => a.value ? U.value : !0
811
- ), h = y(
812
- () => a.value ? _.value : !0
813
- ), L = { value: null, label: "State" }, V = et.map(({ label: m, value: T }) => ({
814
- label: m,
815
- value: T
816
- })), r = y(() => ({
811
+ ), f = y(
812
+ () => a.value ? j.value : !0
813
+ ), h = { value: null, label: "State" }, L = tt.map(({ label: g, value: F }) => ({
814
+ label: g,
815
+ value: F
816
+ })), n = y(() => ({
817
817
  address1: d.address1.trim(),
818
818
  address2: d.address2.trim(),
819
819
  city: d.city.trim(),
820
820
  state: (d.state ?? "").trim().toUpperCase(),
821
821
  zip: d.zip.replace(/\D/g, "")
822
- })), i = y(() => d.address1.trim() === "" && d.address2.trim() === "" && d.city.trim() === "" && (d.state ?? "").trim() === "" && d.zip.replace(/\D/g, "") === ""), P = y(() => !i.value), N = y(() => !a.value && P.value && (!v.value || !I.value || !q.value)), H = y(() => {
823
- const m = d.zip.replace(/\D/g, "");
824
- return !a.value && P.value && m.length !== 5 && m.length !== 9;
825
- }), te = y(() => !a.value && P.value && !B.value), Z = y(() => !a.value && te.value && (p.value || n.value));
826
- return le(r, () => {
827
- a.value || (p.value = !1);
828
- }), le(a, (m) => {
829
- m || (n.value = !1, p.value = !1, g());
822
+ })), u = y(() => d.address1.trim() === "" && d.address2.trim() === "" && d.city.trim() === "" && (d.state ?? "").trim() === "" && d.zip.replace(/\D/g, "") === ""), T = y(() => !u.value), K = y(() => !a.value && T.value && (!v.value || !I.value || !N.value)), z = y(() => {
823
+ const g = d.zip.replace(/\D/g, "");
824
+ return !a.value && T.value && g.length !== 5 && g.length !== 9;
825
+ }), Q = y(() => !a.value && T.value && !X.value), W = y(() => !a.value && Q.value && (c.value || r.value));
826
+ return le(n, () => {
827
+ a.value || (c.value = !1);
828
+ }), le(a, (g) => {
829
+ g || (r.value = !1, c.value = !1, m());
830
830
  }), {
831
831
  formData: d,
832
- submitted: n,
832
+ submitted: r,
833
833
  touched: J,
834
834
  addressValidate: re,
835
835
  address1Valid: ue,
836
836
  cityValid: o,
837
- stateValid: S,
838
- zipValid: s,
839
- addressValid: h,
840
- optionalFeedbackActive: Z,
841
- optionalPartialInvalid: te,
842
- optionalMissingRequiredFields: N,
843
- optionalZipInvalid: H,
844
- stateDefaultItem: L,
845
- stateOptions: V,
846
- zipDisplay: k,
847
- zipWrapperClass: $,
848
- onAddress1Input: b,
849
- onAddress2Input: D,
850
- onCityInput: O,
851
- onStateChange: K,
852
- onZipInput: f,
853
- onFieldsetFocusout: (m) => {
854
- const T = ot(t.value, m);
855
- A(m), !a.value && T && (p.value = !0);
837
+ stateValid: b,
838
+ zipValid: q,
839
+ addressValid: f,
840
+ optionalFeedbackActive: W,
841
+ optionalPartialInvalid: Q,
842
+ optionalMissingRequiredFields: K,
843
+ optionalZipInvalid: z,
844
+ stateDefaultItem: h,
845
+ stateOptions: L,
846
+ zipDisplay: E,
847
+ zipWrapperClass: O,
848
+ onAddress1Input: w,
849
+ onAddress2Input: S,
850
+ onCityInput: $,
851
+ onStateChange: V,
852
+ onZipInput: p,
853
+ onFieldsetFocusout: (g) => {
854
+ const F = lt(t.value, g);
855
+ x(g), !a.value && F && (c.value = !0);
856
856
  },
857
- normalizedPayload: r,
858
- validateForSubmit: async () => a.value ? (n.value = !0, B.value ? {
857
+ normalizedPayload: n,
858
+ validateForSubmit: async () => a.value ? (r.value = !0, X.value ? {
859
859
  isValid: !0,
860
- payload: r.value
861
- } : (await j(), at(t.value), { isValid: !1, payload: null })) : i.value || B.value ? (n.value = !1, {
860
+ payload: n.value
861
+ } : (await _(), ot(t.value), { isValid: !1, payload: null })) : u.value || X.value ? (r.value = !1, {
862
862
  isValid: !0,
863
- payload: r.value
864
- }) : (n.value = !0, { isValid: !1, payload: null }),
863
+ payload: n.value
864
+ }) : (r.value = !0, { isValid: !1, payload: null }),
865
865
  reset: () => {
866
- n.value = !1, p.value = !1, g(), M(), u();
866
+ r.value = !1, c.value = !1, m(), M(), i();
867
867
  }
868
868
  };
869
869
  }
870
- const Pe = (e) => e === "left" ? "right" : e === "right" ? "left" : "center", $e = (e) => e === "top" ? "bottom" : e === "bottom" ? "top" : "center", Me = (e, t, n, p) => {
871
- const a = e.left + (n.horizontal === "right" ? e.width : n.horizontal === "center" ? e.width / 2 : 0), d = e.top + (n.vertical === "bottom" ? e.height : n.vertical === "center" ? e.height / 2 : 0), b = t ? p.horizontal === "right" ? t.width : p.horizontal === "center" ? t.width / 2 : 0 : 0, D = t ? p.vertical === "bottom" ? t.height : p.vertical === "center" ? t.height / 2 : 0 : 0;
872
- return { left: a - b, top: d - D };
873
- }, lt = ({
870
+ const Pe = (e) => e === "left" ? "right" : e === "right" ? "left" : "center", $e = (e) => e === "top" ? "bottom" : e === "bottom" ? "top" : "center", Me = (e, t, r, c) => {
871
+ const a = e.left + (r.horizontal === "right" ? e.width : r.horizontal === "center" ? e.width / 2 : 0), d = e.top + (r.vertical === "bottom" ? e.height : r.vertical === "center" ? e.height / 2 : 0), w = t ? c.horizontal === "right" ? t.width : c.horizontal === "center" ? t.width / 2 : 0 : 0, S = t ? c.vertical === "bottom" ? t.height : c.vertical === "center" ? t.height / 2 : 0 : 0;
872
+ return { left: a - w, top: d - S };
873
+ }, Oe = (e, t, r, c) => t >= c - r ? r : Math.min(Math.max(e, r), c - t), it = ({
874
874
  anchor: e,
875
875
  popup: t,
876
- anchorAlign: n,
877
- popupAlign: p,
878
- bounds: a
876
+ anchorAlign: r,
877
+ popupAlign: c,
878
+ bounds: a,
879
+ collision: d
879
880
  }) => {
880
- const d = Me(e, t, n, p);
881
- if (!t) return d;
882
- let { left: b, top: D } = d;
883
- const O = b + t.width - a.right, K = a.left - b;
884
- if (O > 0 || K > 0) {
885
- const k = Me(
886
- e,
887
- t,
888
- {
889
- horizontal: Pe(n.horizontal),
890
- vertical: n.vertical
891
- },
892
- {
893
- horizontal: Pe(p.horizontal),
894
- vertical: p.vertical
895
- }
896
- ), x = Math.max(O, 0) + Math.max(K, 0);
897
- Math.max(k.left + t.width - a.right, 0) + Math.max(a.left - k.left, 0) < x && (b = k.left);
881
+ const w = Me(e, t, r, c);
882
+ if (!t) return w;
883
+ let { left: S, top: $ } = w;
884
+ if (d.horizontal === "fit")
885
+ S = Oe(S, t.width, a.left, a.right);
886
+ else {
887
+ const V = S + t.width - a.right, M = a.left - S;
888
+ if (V > 0 || M > 0) {
889
+ const R = Me(
890
+ e,
891
+ t,
892
+ {
893
+ horizontal: Pe(r.horizontal),
894
+ vertical: r.vertical
895
+ },
896
+ {
897
+ horizontal: Pe(c.horizontal),
898
+ vertical: c.vertical
899
+ }
900
+ ), E = Math.max(V, 0) + Math.max(M, 0);
901
+ Math.max(R.left + t.width - a.right, 0) + Math.max(a.left - R.left, 0) < E && (S = R.left);
902
+ }
898
903
  }
899
- const M = D + t.height - a.bottom, R = a.top - D;
900
- if (M > 0 || R > 0) {
901
- const k = Me(
902
- e,
903
- t,
904
- {
905
- horizontal: n.horizontal,
906
- vertical: $e(n.vertical)
907
- },
908
- {
909
- horizontal: p.horizontal,
910
- vertical: $e(p.vertical)
911
- }
912
- ), x = Math.max(M, 0) + Math.max(R, 0);
913
- Math.max(k.top + t.height - a.bottom, 0) + Math.max(a.top - k.top, 0) < x && (D = k.top);
904
+ if (d.vertical === "fit")
905
+ $ = Oe($, t.height, a.top, a.bottom);
906
+ else {
907
+ const V = $ + t.height - a.bottom, M = a.top - $;
908
+ if (V > 0 || M > 0) {
909
+ const R = Me(
910
+ e,
911
+ t,
912
+ {
913
+ horizontal: r.horizontal,
914
+ vertical: $e(r.vertical)
915
+ },
916
+ {
917
+ horizontal: c.horizontal,
918
+ vertical: $e(c.vertical)
919
+ }
920
+ ), E = Math.max(V, 0) + Math.max(M, 0);
921
+ Math.max(R.top + t.height - a.bottom, 0) + Math.max(a.top - R.top, 0) < E && ($ = R.top);
922
+ }
914
923
  }
915
- return { left: b, top: D };
916
- }, At = (e = "fkid") => {
917
- const t = `${e}-${ze()}`;
918
- return { instanceId: t, compose: (...p) => [t, ...p].filter((a) => a != null).map(String).join("-") };
919
- }, it = typeof window < "u" && typeof document < "u";
924
+ return { left: S, top: $ };
925
+ }, Dt = (e = "fkid") => {
926
+ const t = `${e}-${Ue()}`;
927
+ return { instanceId: t, compose: (...c) => [t, ...c].filter((a) => a != null).map(String).join("-") };
928
+ }, st = typeof window < "u" && typeof document < "u";
920
929
  typeof WorkerGlobalScope < "u" && globalThis instanceof WorkerGlobalScope;
921
- const st = Object.prototype.toString, ut = (e) => st.call(e) === "[object Object]", ke = () => {
930
+ const ut = Object.prototype.toString, ct = (e) => ut.call(e) === "[object Object]", ke = () => {
922
931
  };
923
932
  function Ie(e) {
924
933
  return Array.isArray(e) ? e : [e];
925
934
  }
926
- function ct(e, t, n) {
935
+ function dt(e, t, r) {
927
936
  return le(e, t, {
928
- ...n,
937
+ ...r,
929
938
  immediate: !0
930
939
  });
931
940
  }
932
- const Ve = it ? window : void 0;
941
+ const Ne = st ? window : void 0;
933
942
  function we(e) {
934
943
  var t;
935
- const n = ne(e);
936
- return (t = n?.$el) !== null && t !== void 0 ? t : n;
944
+ const r = ne(e);
945
+ return (t = r?.$el) !== null && t !== void 0 ? t : r;
937
946
  }
938
947
  function Ce(...e) {
939
- const t = (p, a, d, b) => (p.addEventListener(a, d, b), () => p.removeEventListener(a, d, b)), n = y(() => {
940
- const p = Ie(ne(e[0])).filter((a) => a != null);
941
- return p.every((a) => typeof a != "string") ? p : void 0;
948
+ const t = (c, a, d, w) => (c.addEventListener(a, d, w), () => c.removeEventListener(a, d, w)), r = y(() => {
949
+ const c = Ie(ne(e[0])).filter((a) => a != null);
950
+ return c.every((a) => typeof a != "string") ? c : void 0;
942
951
  });
943
- return ct(() => {
944
- var p, a;
952
+ return dt(() => {
953
+ var c, a;
945
954
  return [
946
- (p = (a = n.value) === null || a === void 0 ? void 0 : a.map((d) => we(d))) !== null && p !== void 0 ? p : [Ve].filter((d) => d != null),
947
- Ie(ne(n.value ? e[1] : e[0])),
948
- Ie(Ue(n.value ? e[2] : e[1])),
949
- ne(n.value ? e[3] : e[2])
955
+ (c = (a = r.value) === null || a === void 0 ? void 0 : a.map((d) => we(d))) !== null && c !== void 0 ? c : [Ne].filter((d) => d != null),
956
+ Ie(ne(r.value ? e[1] : e[0])),
957
+ Ie(Be(r.value ? e[2] : e[1])),
958
+ ne(r.value ? e[3] : e[2])
950
959
  ];
951
- }, ([p, a, d, b], D, O) => {
952
- if (!p?.length || !a?.length || !d?.length) return;
953
- const K = ut(b) ? { ...b } : b, M = p.flatMap((R) => a.flatMap((k) => d.map((x) => t(R, k, x, K))));
954
- O(() => {
960
+ }, ([c, a, d, w], S, $) => {
961
+ if (!c?.length || !a?.length || !d?.length) return;
962
+ const V = ct(w) ? { ...w } : w, M = c.flatMap((R) => a.flatMap((E) => d.map((A) => t(R, E, A, V))));
963
+ $(() => {
955
964
  M.forEach((R) => R());
956
965
  });
957
966
  }, { flush: "post" });
958
967
  }
959
- function Ne(e, t, n = {}) {
960
- const { window: p = Ve, ignore: a = [], capture: d = !0, detectIframe: b = !1, controls: D = !1 } = n;
961
- if (!p) return D ? {
968
+ function qe(e, t, r = {}) {
969
+ const { window: c = Ne, ignore: a = [], capture: d = !0, detectIframe: w = !1, controls: S = !1 } = r;
970
+ if (!c) return S ? {
962
971
  stop: ke,
963
972
  cancel: ke,
964
973
  trigger: ke
965
974
  } : ke;
966
- let O = !0;
967
- const K = (u) => ne(a).some((v) => {
968
- if (typeof v == "string") return Array.from(p.document.querySelectorAll(v)).some((I) => I === u.target || u.composedPath().includes(I));
975
+ let $ = !0;
976
+ const V = (i) => ne(a).some((v) => {
977
+ if (typeof v == "string") return Array.from(c.document.querySelectorAll(v)).some((I) => I === i.target || i.composedPath().includes(I));
969
978
  {
970
979
  const I = we(v);
971
- return I && (u.target === I || u.composedPath().includes(I));
980
+ return I && (i.target === I || i.composedPath().includes(I));
972
981
  }
973
982
  });
974
- function M(u) {
975
- const v = ne(u);
983
+ function M(i) {
984
+ const v = ne(i);
976
985
  return v && v.$.subTree.shapeFlag === 16;
977
986
  }
978
- function R(u, v) {
979
- const I = ne(u), q = I.$.subTree && I.$.subTree.children;
980
- return q == null || !Array.isArray(q) ? !1 : q.some((W) => W.el === v.target || v.composedPath().includes(W.el));
987
+ function R(i, v) {
988
+ const I = ne(i), N = I.$.subTree && I.$.subTree.children;
989
+ return N == null || !Array.isArray(N) ? !1 : N.some((H) => H.el === v.target || v.composedPath().includes(H.el));
981
990
  }
982
- const k = (u) => {
991
+ const E = (i) => {
983
992
  const v = we(e);
984
- if (u.target != null && !(!(v instanceof Element) && M(e) && R(e, u)) && !(!v || v === u.target || u.composedPath().includes(v))) {
985
- if ("detail" in u && u.detail === 0 && (O = !K(u)), !O) {
986
- O = !0;
993
+ if (i.target != null && !(!(v instanceof Element) && M(e) && R(e, i)) && !(!v || v === i.target || i.composedPath().includes(v))) {
994
+ if ("detail" in i && i.detail === 0 && ($ = !V(i)), !$) {
995
+ $ = !0;
987
996
  return;
988
997
  }
989
- t(u);
998
+ t(i);
990
999
  }
991
1000
  };
992
- let x = !1;
993
- const $ = [
994
- Ce(p, "click", (u) => {
995
- x || (x = !0, setTimeout(() => {
996
- x = !1;
997
- }, 0), k(u));
1001
+ let A = !1;
1002
+ const O = [
1003
+ Ce(c, "click", (i) => {
1004
+ A || (A = !0, setTimeout(() => {
1005
+ A = !1;
1006
+ }, 0), E(i));
998
1007
  }, {
999
1008
  passive: !0,
1000
1009
  capture: d
1001
1010
  }),
1002
- Ce(p, "pointerdown", (u) => {
1011
+ Ce(c, "pointerdown", (i) => {
1003
1012
  const v = we(e);
1004
- O = !K(u) && !!(v && !u.composedPath().includes(v));
1013
+ $ = !V(i) && !!(v && !i.composedPath().includes(v));
1005
1014
  }, { passive: !0 }),
1006
- b && Ce(p, "blur", (u) => {
1015
+ w && Ce(c, "blur", (i) => {
1007
1016
  setTimeout(() => {
1008
1017
  const v = we(e);
1009
- let I = p.document.activeElement;
1018
+ let I = c.document.activeElement;
1010
1019
  for (; I?.shadowRoot; ) I = I.shadowRoot.activeElement;
1011
- I?.tagName === "IFRAME" && !v?.contains(p.document.activeElement) && t(u);
1020
+ I?.tagName === "IFRAME" && !v?.contains(c.document.activeElement) && t(i);
1012
1021
  }, 0);
1013
1022
  }, { passive: !0 })
1014
- ].filter(Boolean), f = () => $.forEach((u) => u());
1015
- return D ? {
1016
- stop: f,
1023
+ ].filter(Boolean), p = () => O.forEach((i) => i());
1024
+ return S ? {
1025
+ stop: p,
1017
1026
  cancel: () => {
1018
- O = !1;
1027
+ $ = !1;
1019
1028
  },
1020
- trigger: (u) => {
1021
- O = !0, k(u), O = !1;
1029
+ trigger: (i) => {
1030
+ $ = !0, E(i), $ = !1;
1022
1031
  }
1023
- } : f;
1032
+ } : p;
1024
1033
  }
1025
- const dt = (e) => {
1034
+ const ft = (e) => {
1026
1035
  let t = null;
1027
- const n = () => {
1036
+ const r = () => {
1028
1037
  t?.disconnect(), t = null;
1029
1038
  };
1030
1039
  return typeof window < "u" && typeof window.IntersectionObserver == "function" && le(
1031
1040
  [e.target, () => e.root()],
1032
1041
  ([a, d]) => {
1033
- n(), a && (t = new IntersectionObserver(
1034
- ([b]) => {
1035
- b && e.onChange(b);
1042
+ r(), a && (t = new IntersectionObserver(
1043
+ ([w]) => {
1044
+ w && e.onChange(w);
1036
1045
  },
1037
1046
  { root: d, threshold: e.threshold ?? 1 }
1038
1047
  ), t.observe(a));
1039
1048
  },
1040
1049
  { immediate: !0 }
1041
- ), Te(n), { disconnect: n };
1042
- }, ft = ".k-table-row", he = (e) => {
1050
+ ), Te(r), { disconnect: r };
1051
+ }, pt = ".k-table-row", he = (e) => {
1043
1052
  if (e instanceof HTMLElement) return e;
1044
1053
  const t = e?.$el;
1045
1054
  return t instanceof HTMLElement ? t : null;
1046
- }, pt = (e, t) => t === "row" ? e.matches("tr.k-table-row") : !e.matches("tr.k-table-row"), mt = (e, t) => {
1055
+ }, mt = (e, t) => t === "row" ? e.matches("tr.k-table-row") : !e.matches("tr.k-table-row"), vt = (e, t) => {
1047
1056
  console.warn(
1048
1057
  `usePopupMenu: triggerMode "${t}" does not match resolved element <${e.tagName.toLowerCase()}${e.className ? `.${e.className.split(" ").join(".")}` : ""}>; ARIA management skipped.`
1049
1058
  );
1050
- }, vt = (e) => {
1051
- let t = e.parentElement, n = null;
1059
+ }, gt = (e) => {
1060
+ let t = e.parentElement, r = null;
1052
1061
  for (; t; ) {
1053
- const { overflow: p, overflowX: a, overflowY: d } = window.getComputedStyle(t), b = /auto|scroll|overlay/.test(`${p} ${a}`), D = /auto|scroll|overlay/.test(`${p} ${d}`);
1054
- if ((b || D) && (n ??= t), b && t.scrollWidth > t.clientWidth || D && t.scrollHeight > t.clientHeight)
1062
+ const { overflow: c, overflowX: a, overflowY: d } = window.getComputedStyle(t), w = /auto|scroll|overlay/.test(`${c} ${a}`), S = /auto|scroll|overlay/.test(`${c} ${d}`);
1063
+ if ((w || S) && (r ??= t), w && t.scrollWidth > t.clientWidth || S && t.scrollHeight > t.clientHeight)
1055
1064
  return t;
1056
1065
  t = t.parentElement;
1057
1066
  }
1058
- return n;
1059
- }, Dt = (e) => {
1060
- const t = X(null), n = e.menuItemSelector ?? ".k-menu-item:not(.k-disabled)", p = e.triggerMode, a = e.anchor === !0 ? {} : e.anchor, d = a?.activationPoint ? a.activationPoint === !0 ? {} : a.activationPoint : null, b = ye(null), D = ye(null), O = a?.anchorAlign ?? {
1067
+ return r;
1068
+ }, Et = (e) => {
1069
+ const t = Y(null), r = e.menuItemSelector ?? ".k-menu-item:not(.k-disabled)", c = e.triggerMode, a = e.anchor === !0 ? {} : e.anchor, d = a?.activationPoint ? a.activationPoint === !0 ? {} : a.activationPoint : null, w = ye(null), S = ye(null), $ = a?.anchorAlign ?? {
1061
1070
  horizontal: "left",
1062
1071
  vertical: "bottom"
1063
- }, K = a?.popupAlign ?? {
1072
+ }, V = a?.popupAlign ?? {
1064
1073
  horizontal: "left",
1065
1074
  vertical: "top"
1066
- }, M = ye(null), R = () => he(e.triggerRef.value), k = y(() => R()), x = y(
1067
- () => a && a.hideWhenAnchorClipped !== !1 ? k.value : null
1068
- ), $ = () => {
1069
- const s = a?.clipRoot ? ne(a.clipRoot) : null;
1070
- if (s) {
1071
- const h = s.getBoundingClientRect();
1075
+ }, M = a?.collision ?? {
1076
+ horizontal: "flip",
1077
+ vertical: "flip"
1078
+ }, R = ye(null), E = () => he(e.triggerRef.value), A = y(() => E()), O = y(
1079
+ () => a && a.hideWhenAnchorClipped !== !1 ? A.value : null
1080
+ ), p = () => {
1081
+ const f = a?.clipRoot ? ne(a.clipRoot) : null;
1082
+ if (f) {
1083
+ const h = f.getBoundingClientRect();
1072
1084
  return {
1073
1085
  left: h.left,
1074
1086
  top: h.top,
@@ -1082,184 +1094,190 @@ const dt = (e) => {
1082
1094
  right: window.innerWidth,
1083
1095
  bottom: window.innerHeight
1084
1096
  };
1085
- }, f = y(() => {
1086
- const s = b.value;
1087
- if (!e.isOpen.value || !s) return { left: 0, top: 0 };
1088
- const h = $(), L = lt({
1089
- anchor: s,
1090
- popup: M.value,
1091
- anchorAlign: O,
1092
- popupAlign: K,
1093
- bounds: h
1097
+ }, i = y(() => {
1098
+ const f = w.value;
1099
+ if (!e.isOpen.value || !f) return { left: 0, top: 0 };
1100
+ const h = p(), L = it({
1101
+ anchor: f,
1102
+ popup: R.value,
1103
+ anchorAlign: $,
1104
+ popupAlign: V,
1105
+ bounds: h,
1106
+ collision: M
1094
1107
  });
1095
1108
  return {
1096
1109
  left: L.left + window.scrollX,
1097
1110
  top: L.top + window.scrollY
1098
1111
  };
1099
- }), u = () => {
1100
- const s = e.resolveFocusTarget?.() ?? he(e.focusTargetRef?.value);
1101
- return s || (e.focusTargetContainerSelector ? R()?.closest(
1112
+ }), v = () => {
1113
+ const f = e.resolveFocusTarget?.() ?? he(e.focusTargetRef?.value);
1114
+ return f || (e.focusTargetContainerSelector ? E()?.closest(
1102
1115
  e.focusTargetContainerSelector
1103
1116
  ) ?? null : null);
1104
- }, v = (s, h) => {
1117
+ }, I = (f, h) => {
1105
1118
  if (!d) return !1;
1106
- const L = he(s);
1119
+ const L = he(f);
1107
1120
  if (!L)
1108
- return D.value = null, !1;
1109
- const V = L.getBoundingClientRect();
1121
+ return S.value = null, !1;
1122
+ const n = L.getBoundingClientRect();
1110
1123
  if (h.triggerType === "keyboard") {
1111
- const r = d.keyboardPosition, i = r?.y ?? "center", P = typeof i == "number" ? i : i === "top" ? 0 : i === "bottom" ? V.height : V.height / 2;
1112
- return D.value = {
1124
+ const u = d.keyboardPosition, T = u?.y ?? "center", K = typeof T == "number" ? T : T === "top" ? 0 : T === "bottom" ? n.height : n.height / 2;
1125
+ return S.value = {
1113
1126
  trigger: L,
1114
- point: { x: r?.x ?? 8, y: P },
1127
+ point: { x: u?.x ?? 8, y: K },
1115
1128
  hasMatchedTrigger: !1
1116
1129
  }, !0;
1117
1130
  }
1118
- return h.coordinates ? (D.value = {
1131
+ return h.coordinates ? (S.value = {
1119
1132
  trigger: L,
1120
1133
  point: {
1121
- x: h.coordinates.clientX - V.left + (d.pointerOffset?.x ?? 0),
1122
- y: h.coordinates.clientY - V.top + (d.pointerOffset?.y ?? 0)
1134
+ x: h.coordinates.clientX - n.left + (d.pointerOffset?.x ?? 0),
1135
+ y: h.coordinates.clientY - n.top + (d.pointerOffset?.y ?? 0)
1123
1136
  },
1124
1137
  hasMatchedTrigger: !1
1125
- }, !0) : (D.value = null, !1);
1126
- }, I = () => {
1127
- if (p !== "button") return null;
1138
+ }, !0) : (S.value = null, !1);
1139
+ }, N = () => {
1140
+ if (c !== "button") return null;
1128
1141
  if (e.escapeFocusTarget) return e.escapeFocusTarget();
1129
- const s = e.escapeFocusContainerSelector ?? ft;
1130
- return (R() ?? document.activeElement)?.closest(s) ?? null;
1131
- }, q = () => {
1132
- const s = u() ?? I();
1133
- if (s)
1134
- return s.focus(), !0;
1135
- const h = R();
1142
+ const f = e.escapeFocusContainerSelector ?? pt;
1143
+ return (E() ?? document.activeElement)?.closest(f) ?? null;
1144
+ }, H = () => {
1145
+ const f = v() ?? N();
1146
+ if (f)
1147
+ return f.focus(), !0;
1148
+ const h = E();
1136
1149
  return h?.focus(), !!h;
1137
- }, W = () => {
1138
- he(e.menuRef.value)?.querySelector(n)?.focus({ preventScroll: !0 });
1139
- }, B = ye(null), Y = ye(null);
1140
- let J = !1;
1141
- const c = () => {
1142
- const s = t.value;
1143
- if (s === "keyboard" || s === "escape") {
1144
- const h = B.value ?? Y.value;
1145
- h?.focus(), s === "keyboard" && h && h === Y.value && (J = !0);
1146
- } else t.value === "mouse-selection" && Y.value?.focus();
1147
- t.value = null, B.value = null, Y.value = null;
1148
- }, A = (s) => {
1149
- e.isOpen.value && (t.value = s, B.value = u() ?? (s === "escape" ? I() : null), Y.value = R(), F(!1), e.requestHide(), j(c));
1150
+ }, X = () => {
1151
+ he(e.menuRef.value)?.querySelector(r)?.focus({ preventScroll: !0 });
1152
+ }, Z = ye(null), J = ye(null);
1153
+ let s = !1;
1154
+ const x = () => {
1155
+ const f = t.value;
1156
+ if (f === "keyboard" || f === "escape") {
1157
+ const h = Z.value ?? J.value;
1158
+ h?.focus(), f === "keyboard" && h && h === J.value && (s = !0);
1159
+ } else t.value === "mouse-selection" && J.value?.focus();
1160
+ t.value = null, Z.value = null, J.value = null;
1161
+ }, m = (f) => {
1162
+ e.isOpen.value && (t.value = f, Z.value = v() ?? (f === "escape" ? N() : null), J.value = E(), U(!1), e.requestHide(), _(x));
1150
1163
  };
1151
1164
  le(
1152
- [k, D],
1153
- ([s], h, L) => {
1154
- if (!a || !s) {
1155
- b.value = null;
1165
+ [A, S],
1166
+ ([f], h, L) => {
1167
+ if (!a || !f) {
1168
+ w.value = null;
1156
1169
  return;
1157
1170
  }
1158
- let V = null;
1159
- const r = () => {
1160
- V = null;
1161
- const N = D.value;
1171
+ let n = null;
1172
+ const u = () => {
1173
+ n = null;
1174
+ const z = S.value;
1162
1175
  if (d) {
1163
- N && N.trigger === s ? N.hasMatchedTrigger = !0 : N?.hasMatchedTrigger && (N.trigger = s);
1164
- const H = s.getBoundingClientRect();
1165
- b.value = N?.trigger === s ? new DOMRect(
1166
- H.left + N.point.x,
1167
- H.top + N.point.y,
1176
+ z && z.trigger === f ? z.hasMatchedTrigger = !0 : z?.hasMatchedTrigger && (z.trigger = f);
1177
+ const Q = f.getBoundingClientRect();
1178
+ w.value = z?.trigger === f ? new DOMRect(
1179
+ Q.left + z.point.x,
1180
+ Q.top + z.point.y,
1168
1181
  0,
1169
1182
  0
1170
1183
  ) : null;
1171
1184
  return;
1172
1185
  }
1173
- b.value = a.getRect?.(s) ?? s.getBoundingClientRect();
1174
- }, i = () => {
1175
- V === null && (V = window.requestAnimationFrame(r));
1176
- }, P = typeof window.ResizeObserver == "function" ? new window.ResizeObserver(i) : null;
1177
- P?.observe(s), window.addEventListener("scroll", i, {
1186
+ w.value = a.getRect?.(f) ?? f.getBoundingClientRect();
1187
+ }, T = () => {
1188
+ n === null && (n = window.requestAnimationFrame(u));
1189
+ }, K = typeof window.ResizeObserver == "function" ? new window.ResizeObserver(T) : null;
1190
+ K?.observe(f), window.addEventListener("scroll", T, {
1178
1191
  capture: !0,
1179
1192
  passive: !0
1180
- }), window.addEventListener("resize", i, { passive: !0 }), i(), L(() => {
1181
- V !== null && window.cancelAnimationFrame(V), P?.disconnect(), window.removeEventListener("scroll", i, !0), window.removeEventListener("resize", i);
1193
+ }), window.addEventListener("resize", T, { passive: !0 }), T(), L(() => {
1194
+ n !== null && window.cancelAnimationFrame(n), K?.disconnect(), window.removeEventListener("scroll", T, !0), window.removeEventListener("resize", T);
1182
1195
  });
1183
1196
  },
1184
1197
  { immediate: !0, flush: "post" }
1185
1198
  );
1186
- const g = () => he(e.popupContentRef?.value ?? e.menuRef.value);
1199
+ const k = () => {
1200
+ const f = he(
1201
+ e.popupContentRef?.value ?? e.menuRef.value
1202
+ );
1203
+ return f?.closest(".k-popup") ?? f;
1204
+ };
1187
1205
  a && le(
1188
1206
  e.isOpen,
1189
- (s, h, L) => {
1190
- if (!s) {
1191
- M.value = null;
1207
+ (f, h, L) => {
1208
+ if (!f) {
1209
+ R.value = null;
1192
1210
  return;
1193
1211
  }
1194
- let V = null;
1195
- const r = () => {
1196
- V = null;
1197
- const H = g();
1198
- M.value = H?.getBoundingClientRect() ?? null;
1199
- }, i = () => {
1200
- V === null && (V = window.requestAnimationFrame(r));
1201
- }, P = g(), N = P && typeof window.ResizeObserver == "function" ? new window.ResizeObserver(i) : null;
1202
- N?.observe(P), i(), L(() => {
1203
- V !== null && window.cancelAnimationFrame(V), N?.disconnect();
1212
+ let n = null;
1213
+ const u = () => {
1214
+ n = null;
1215
+ const Q = k();
1216
+ R.value = Q?.getBoundingClientRect() ?? null;
1217
+ }, T = () => {
1218
+ n === null && (n = window.requestAnimationFrame(u));
1219
+ }, K = k(), z = K && typeof window.ResizeObserver == "function" ? new window.ResizeObserver(T) : null;
1220
+ z?.observe(K), T(), L(() => {
1221
+ n !== null && window.cancelAnimationFrame(n), z?.disconnect();
1204
1222
  });
1205
1223
  },
1206
1224
  { immediate: !0, flush: "post" }
1207
- ), dt({
1208
- target: x,
1209
- root: () => a?.clipRoot ? ne(a.clipRoot) : k.value ? vt(k.value) : null,
1225
+ ), ft({
1226
+ target: O,
1227
+ root: () => a?.clipRoot ? ne(a.clipRoot) : A.value ? gt(A.value) : null,
1210
1228
  threshold: a?.intersectionThreshold ?? (d ? 0 : 0.5),
1211
- onChange: (s) => {
1212
- s.isIntersecting || A("anchor-hidden");
1229
+ onChange: (f) => {
1230
+ f.isIntersecting || m("anchor-hidden");
1213
1231
  }
1214
- }), Ne(e.menuRef, () => A("outside-click"), {
1215
- ignore: [k]
1232
+ }), qe(e.menuRef, () => m("outside-click"), {
1233
+ ignore: [A]
1216
1234
  });
1217
- let w = null, C = null;
1218
- const E = () => {
1219
- w?.isConnected && w.setAttribute("aria-expanded", "false"), w = null;
1220
- }, F = (s) => {
1235
+ let C = null, D = null;
1236
+ const P = () => {
1237
+ C?.isConnected && C.setAttribute("aria-expanded", "false"), C = null;
1238
+ }, U = (f) => {
1221
1239
  if (e.manageMenuTriggerAria === !1) return;
1222
- const h = k.value;
1240
+ const h = A.value;
1223
1241
  if (!h) {
1224
- w?.isConnected && w.setAttribute("aria-expanded", s ? "true" : "false");
1242
+ C?.isConnected && C.setAttribute("aria-expanded", f ? "true" : "false");
1225
1243
  return;
1226
1244
  }
1227
- if (!pt(h, p)) {
1228
- mt(h, p), E();
1245
+ if (!mt(h, c)) {
1246
+ vt(h, c), P();
1229
1247
  return;
1230
1248
  }
1231
- w && w !== h && E(), h.setAttribute("aria-expanded", s ? "true" : "false"), w = h;
1232
- }, U = () => {
1233
- const s = he(e.menuRef.value), h = s?.matches('[role="menubar"]') ? s : s?.querySelector('[role="menubar"]'), L = ne(e.menuLabel)?.trim();
1234
- C && C !== h && C.removeAttribute("aria-label"), h && (L ? h.setAttribute("aria-label", L) : h.removeAttribute("aria-label")), C = h ?? null;
1249
+ C && C !== h && P(), h.setAttribute("aria-expanded", f ? "true" : "false"), C = h;
1250
+ }, j = () => {
1251
+ const f = he(e.menuRef.value), h = f?.matches('[role="menubar"]') ? f : f?.querySelector('[role="menubar"]'), L = ne(e.menuLabel)?.trim();
1252
+ D && D !== h && D.removeAttribute("aria-label"), h && (L ? h.setAttribute("aria-label", L) : h.removeAttribute("aria-label")), D = h ?? null;
1235
1253
  };
1236
1254
  le(
1237
1255
  [e.isOpen, e.triggerRef],
1238
- ([s]) => {
1239
- F(s), !s && d && (D.value = null, b.value = null);
1256
+ ([f]) => {
1257
+ U(f), !f && d && (S.value = null, w.value = null);
1240
1258
  },
1241
1259
  { immediate: !0, flush: "post" }
1242
1260
  ), le(
1243
1261
  [e.isOpen, e.menuRef, () => ne(e.menuLabel)],
1244
- U,
1262
+ j,
1245
1263
  { immediate: !0, flush: "post" }
1246
1264
  ), Te(() => {
1247
- D.value = null, E(), C?.removeAttribute("aria-label");
1265
+ S.value = null, P(), D?.removeAttribute("aria-label");
1248
1266
  }), le(
1249
1267
  e.isOpen,
1250
- (s) => {
1251
- s && W();
1268
+ (f) => {
1269
+ f && X();
1252
1270
  },
1253
1271
  { flush: "post" }
1254
1272
  );
1255
- const _ = (...s) => {
1256
- const h = s[0];
1257
- if (J) {
1258
- J = !1;
1273
+ const re = (...f) => {
1274
+ const h = f[0];
1275
+ if (s) {
1276
+ s = !1;
1259
1277
  return;
1260
1278
  }
1261
1279
  if (e.isOpen.value) {
1262
- A("trigger-click");
1280
+ m("trigger-click");
1263
1281
  return;
1264
1282
  }
1265
1283
  e.requestShow(h);
@@ -1269,42 +1287,42 @@ const dt = (e) => {
1269
1287
  * Sets the anchor activation state, controlling whether the popup menu
1270
1288
  * should respond to trigger interactions.
1271
1289
  */
1272
- setAnchorActivation: v,
1290
+ setAnchorActivation: I,
1273
1291
  /**
1274
1292
  * Handles Kendo Menu selection: records keyboard or mouse modality,
1275
1293
  * requests popup close, then runs the optional caller-owned action.
1276
1294
  */
1277
- handleMenuSelect: (s, h) => {
1278
- h?.(s), A(
1279
- s.event?.type?.startsWith("key") ? "keyboard" : "mouse-selection"
1280
- );
1295
+ handleMenuSelect: (f, h) => {
1296
+ m(
1297
+ f.event?.type?.startsWith("key") ? "keyboard" : "mouse-selection"
1298
+ ), h?.(f);
1281
1299
  },
1282
1300
  /**
1283
1301
  * Toggles the action menu. When opening, focuses the first enabled Kendo
1284
1302
  * Menu item after Vue renders the popup.
1285
1303
  */
1286
- handleTriggerClick: _,
1304
+ handleTriggerClick: re,
1287
1305
  /**
1288
1306
  * Handles trigger keyboard input: Enter and Space toggle the menu; Escape
1289
1307
  * closes an open menu or focuses the configured target when already closed.
1290
1308
  */
1291
- handleTriggerKeydown: (...s) => {
1292
- const h = s[0], L = s[1];
1309
+ handleTriggerKeydown: (...f) => {
1310
+ const h = f[0], L = f[1];
1293
1311
  if (h.key === "Enter" || h.code === "Space") {
1294
- h.preventDefault(), _(L);
1312
+ h.preventDefault(), re(L);
1295
1313
  return;
1296
1314
  }
1297
1315
  if (h.key === "Escape") {
1298
1316
  if (h.preventDefault(), h.stopPropagation(), e.isOpen.value) {
1299
- A("escape");
1317
+ m("escape");
1300
1318
  return;
1301
1319
  }
1302
- q();
1320
+ H();
1303
1321
  }
1304
1322
  },
1305
1323
  /** Closes the open menu through the keyboard path when Escape is pressed inside it. */
1306
- handleMenuEscape: (s) => {
1307
- s.preventDefault(), s.stopPropagation(), A("escape");
1324
+ handleMenuEscape: (f) => {
1325
+ f.preventDefault(), f.stopPropagation(), m("escape");
1308
1326
  },
1309
1327
  /**
1310
1328
  * Restores focus after Kendo Popup closes: keyboard menu selection and
@@ -1313,11 +1331,11 @@ const dt = (e) => {
1313
1331
  * outside clicks do not move focus.
1314
1332
  */
1315
1333
  handlePopupClose: () => {
1316
- j(c);
1334
+ _(x);
1317
1335
  },
1318
- offset: f
1336
+ offset: i
1319
1337
  };
1320
- }, Et = () => {
1338
+ }, xt = () => {
1321
1339
  const e = /* @__PURE__ */ new Set();
1322
1340
  return { register: (a) => {
1323
1341
  e.add(a), Te(() => e.delete(a));
@@ -1328,43 +1346,43 @@ const dt = (e) => {
1328
1346
  }, deactivateAll: () => {
1329
1347
  e.forEach((a) => a.deactivate());
1330
1348
  } };
1331
- }, gt = (e) => {
1349
+ }, ht = (e) => {
1332
1350
  if (e instanceof HTMLElement) return e;
1333
1351
  const t = e && "$el" in e ? e.$el : null;
1334
1352
  return t instanceof HTMLElement ? t : null;
1335
- }, xt = () => {
1336
- const e = Be(/* @__PURE__ */ new Map()), t = X(null), n = (D, O) => {
1337
- const K = gt(O);
1338
- K ? e.set(D, K) : e.delete(D);
1339
- }, p = (D) => e.get(D) ?? null, a = (D) => {
1340
- t.value = D;
1353
+ }, Mt = () => {
1354
+ const e = Ye(/* @__PURE__ */ new Map()), t = Y(null), r = (S, $) => {
1355
+ const V = ht($);
1356
+ V ? e.set(S, V) : e.delete(S);
1357
+ }, c = (S) => e.get(S) ?? null, a = (S) => {
1358
+ t.value = S;
1341
1359
  }, d = () => {
1342
1360
  t.value = null;
1343
- }, b = (D) => t.value === D;
1361
+ }, w = (S) => t.value === S;
1344
1362
  return {
1345
- activeId: ee(t),
1363
+ activeId: te(t),
1346
1364
  isActive: y(() => t.value !== null),
1347
1365
  activeElement: y(
1348
- () => t.value !== null ? p(t.value) : null
1366
+ () => t.value !== null ? c(t.value) : null
1349
1367
  ),
1350
- register: n,
1351
- resolve: p,
1368
+ register: r,
1369
+ resolve: c,
1352
1370
  activate: a,
1353
1371
  deactivate: d,
1354
- isIdActive: b
1372
+ isIdActive: w
1355
1373
  };
1356
1374
  };
1357
- function Mt(e) {
1358
- const t = X(""), n = X(void 0), p = X(!!e.debug), a = X(e.dateFormat ?? "mm/dd/yyyy"), d = y(() => !!e.required), b = 1e3, D = X(!1), O = ["ArrowUp", "ArrowDown"], K = ["ArrowLeft", "ArrowRight"], M = y(() => (t.value ?? "").replace(/\D/g, "")), R = (o) => o <= 2 ? "mm" : o <= 5 ? "dd" : M.value.length <= 10 ? "yyyy" : "mm", k = y(() => {
1375
+ function It(e) {
1376
+ const t = Y(""), r = Y(void 0), c = Y(!!e.debug), a = Y(e.dateFormat ?? "mm/dd/yyyy"), d = y(() => !!e.required), w = 1e3, S = Y(!1), $ = ["ArrowUp", "ArrowDown"], V = ["ArrowLeft", "ArrowRight"], M = y(() => (t.value ?? "").replace(/\D/g, "")), R = (o) => o <= 2 ? "mm" : o <= 5 ? "dd" : M.value.length <= 10 ? "yyyy" : "mm", E = y(() => {
1359
1377
  const o = t.value && t.value.substring(0, 2).replace(/\D/g, "0") || "0";
1360
1378
  return parseInt(o).toString().padStart(2, "0");
1361
- }), x = y(() => {
1379
+ }), A = y(() => {
1362
1380
  const o = t.value && t.value.substring(3, 5).replace(/\D/g, "0") || "0";
1363
1381
  return parseInt(o).toString().padStart(2, "0");
1364
- }), $ = y(() => {
1382
+ }), O = y(() => {
1365
1383
  const o = t.value && t.value.substring(6, 10).replace(/\D/g, "0") || "0";
1366
1384
  return parseInt(o).toString().padStart(4, "0");
1367
- }), f = (o) => {
1385
+ }), p = (o) => {
1368
1386
  if (M.value.length === 0) {
1369
1387
  e.onChange({ value: null, event: o });
1370
1388
  return;
@@ -1374,67 +1392,67 @@ function Mt(e) {
1374
1392
  return;
1375
1393
  }
1376
1394
  if ((t.value ?? "").length === 10 && M.value.length === 8) {
1377
- const [S, s, h] = t.value.split("/"), L = parseInt(S), V = parseInt(s), r = parseInt(h);
1378
- if (B(r, L, V)) {
1379
- const i = q(r, L, V);
1380
- u(i) ? e.onChange({ value: i, event: o }) : e.onChange({ value: null, event: o });
1395
+ const [b, q, f] = t.value.split("/"), h = parseInt(b), L = parseInt(q), n = parseInt(f);
1396
+ if (X(n, h, L)) {
1397
+ const u = N(n, h, L);
1398
+ i(u) ? e.onChange({ value: u, event: o }) : e.onChange({ value: null, event: o });
1381
1399
  } else
1382
1400
  e.onChange({ value: null, event: o });
1383
1401
  }
1384
- }, u = (o) => {
1385
- const S = e.min ?? void 0, s = e.max ?? void 0;
1386
- return !(S && o < S || s && o > s);
1402
+ }, i = (o) => {
1403
+ const b = e.min ?? void 0, q = e.max ?? void 0;
1404
+ return !(b && o < b || q && o > q);
1387
1405
  }, v = y(() => {
1388
1406
  if ((t.value ?? "").length === 10 && M.value.length === 8) {
1389
- const [o, S, s] = (t.value ?? "").split("/"), h = parseInt(o), L = parseInt(S), V = parseInt(s);
1390
- if (B(V, h, L))
1391
- return q(V, h, L);
1407
+ const [o, b, q] = (t.value ?? "").split("/"), f = parseInt(o), h = parseInt(b), L = parseInt(q);
1408
+ if (X(L, f, h))
1409
+ return N(L, f, h);
1392
1410
  }
1393
1411
  return null;
1394
- }), I = y(() => (t.value ?? "").length === 10 && M.value.length === 8), q = (o, S, s) => {
1395
- const h = /* @__PURE__ */ new Date(0);
1396
- return h.setFullYear(o, S - 1, s), h.setHours(0, 0, 0, 0), h;
1397
- }, W = (o, S) => q(o, S + 1, 0).getDate(), B = (o, S, s) => S >= 1 && S <= 12 && o >= b && s >= 1 && s <= W(o, S), Y = (o) => {
1412
+ }), I = y(() => (t.value ?? "").length === 10 && M.value.length === 8), N = (o, b, q) => {
1413
+ const f = /* @__PURE__ */ new Date(0);
1414
+ return f.setFullYear(o, b - 1, q), f.setHours(0, 0, 0, 0), f;
1415
+ }, H = (o, b) => N(o, b + 1, 0).getDate(), X = (o, b, q) => b >= 1 && b <= 12 && o >= w && q >= 1 && q <= H(o, b), Z = (o) => {
1398
1416
  t.value = o.value;
1399
- const S = o.event?.target;
1400
- n.value = S?.selectionStart ?? 0, f(o);
1417
+ const b = o.event?.target;
1418
+ r.value = b?.selectionStart ?? 0, p(o);
1401
1419
  }, J = (o) => {
1402
- n.value = o.target.selectionStart ?? 0;
1403
- }, c = (o, S, s) => {
1404
- const h = S?.selectionStart ?? n.value ?? 0;
1405
- n.value = h;
1406
- let L = parseInt(k.value), V = parseInt(x.value), r = parseInt($.value);
1407
- if (!(M.value.length >= 8) || !B(r, L, V)) {
1420
+ r.value = o.target.selectionStart ?? 0;
1421
+ }, s = (o, b, q) => {
1422
+ const f = b?.selectionStart ?? r.value ?? 0;
1423
+ r.value = f;
1424
+ let h = parseInt(E.value), L = parseInt(A.value), n = parseInt(O.value);
1425
+ if (!(M.value.length >= 8) || !X(n, h, L)) {
1408
1426
  const G = e.defaultValue ?? /* @__PURE__ */ new Date();
1409
- L = G.getMonth() + 1, V = G.getDate(), r = G.getFullYear(), t.value = `${String(L).padStart(2, "0")}/${String(V).padStart(
1427
+ h = G.getMonth() + 1, L = G.getDate(), n = G.getFullYear(), t.value = `${String(h).padStart(2, "0")}/${String(L).padStart(
1410
1428
  2,
1411
1429
  "0"
1412
- )}/${String(r)}`;
1413
- const ce = q(r, L, V);
1414
- e.onChange({ value: u(ce) ? ce : null, event: s }), E({ useRAF: !0 });
1430
+ )}/${String(n)}`;
1431
+ const ce = N(n, h, L);
1432
+ e.onChange({ value: i(ce) ? ce : null, event: q }), D({ useRAF: !0 });
1415
1433
  return;
1416
1434
  }
1417
- const P = R(h);
1418
- if (P === "mm")
1419
- L = o === "ArrowUp" ? L < 12 ? L + 1 : 1 : L > 1 ? L - 1 : 12;
1420
- else if (P === "dd") {
1421
- const G = new Date(r, L, 0).getDate();
1422
- V = o === "ArrowUp" ? V < G ? V + 1 : 1 : V > 1 ? V - 1 : G;
1423
- } else P === "yyyy" && (r = o === "ArrowUp" ? r + 1 : Math.max(1, r - 1));
1424
- t.value = `${String(L).padStart(2, "0")}/${String(V).padStart(
1435
+ const T = R(f);
1436
+ if (T === "mm")
1437
+ h = o === "ArrowUp" ? h < 12 ? h + 1 : 1 : h > 1 ? h - 1 : 12;
1438
+ else if (T === "dd") {
1439
+ const G = new Date(n, h, 0).getDate();
1440
+ L = o === "ArrowUp" ? L < G ? L + 1 : 1 : L > 1 ? L - 1 : G;
1441
+ } else T === "yyyy" && (n = o === "ArrowUp" ? n + 1 : Math.max(1, n - 1));
1442
+ t.value = `${String(h).padStart(2, "0")}/${String(L).padStart(
1425
1443
  2,
1426
1444
  "0"
1427
- )}/${String(r)}`;
1428
- const [N, H, te] = t.value.split("/"), Z = q(
1429
- parseInt(te),
1430
- parseInt(N),
1431
- parseInt(H)
1445
+ )}/${String(n)}`;
1446
+ const [K, z, Q] = t.value.split("/"), W = N(
1447
+ parseInt(Q),
1448
+ parseInt(K),
1449
+ parseInt(z)
1432
1450
  );
1433
- Z.toString() !== "Invalid Date" && parseInt(te) >= 1e3 ? e.onChange({
1434
- value: u(Z) ? Z : null,
1435
- event: s
1436
- }) : e.onChange({ value: null, event: s }), E({ useRAF: !0 });
1437
- }, A = (o) => {
1451
+ W.toString() !== "Invalid Date" && parseInt(Q) >= 1e3 ? e.onChange({
1452
+ value: i(W) ? W : null,
1453
+ event: q
1454
+ }) : e.onChange({ value: null, event: q }), D({ useRAF: !0 });
1455
+ }, x = (o) => {
1438
1456
  if (o.code === "Space" || o.key === " ") {
1439
1457
  o.preventDefault(), o.stopPropagation(), e.onShowCalendar(o);
1440
1458
  return;
@@ -1443,71 +1461,71 @@ function Mt(e) {
1443
1461
  o.preventDefault(), o.stopPropagation(), e.onShowCalendar(o);
1444
1462
  return;
1445
1463
  }
1446
- if (O.includes(o.key)) {
1464
+ if ($.includes(o.key)) {
1447
1465
  if (o.altKey) return;
1448
1466
  o.preventDefault(), o.stopPropagation();
1449
- const S = o.target;
1450
- c(o.key, S, o);
1467
+ const b = o.target;
1468
+ s(o.key, b, o);
1451
1469
  return;
1452
1470
  }
1453
- }, g = (o) => {
1471
+ }, m = (o) => {
1454
1472
  o.preventDefault();
1455
- const S = o.deltaY < 0 ? "ArrowUp" : "ArrowDown";
1456
- c(S, o.target, o);
1457
- }, w = (o) => {
1458
- const S = o.target;
1459
- if (K.includes(o.key)) {
1460
- n.value = S?.selectionStart ?? 0;
1473
+ const b = o.deltaY < 0 ? "ArrowUp" : "ArrowDown";
1474
+ s(b, o.target, o);
1475
+ }, k = (o) => {
1476
+ const b = o.target;
1477
+ if (V.includes(o.key)) {
1478
+ r.value = b?.selectionStart ?? 0;
1461
1479
  return;
1462
1480
  }
1463
- if (O.includes(o.key)) {
1481
+ if ($.includes(o.key)) {
1464
1482
  if (o.altKey) return;
1465
- n.value = S?.selectionStart ?? 0;
1483
+ r.value = b?.selectionStart ?? 0;
1466
1484
  }
1467
1485
  }, C = (o) => {
1468
- D.value = !0, d.value && !e.defaultValue && e.externalValue && e.externalValue.value === void 0 && M.value.length === 0 && (e.externalValue.value = "");
1469
- const S = o.target;
1470
- S && (n.value = S.selectionStart ?? 0);
1471
- }, E = (o) => {
1472
- const S = () => {
1473
- const s = document.getElementById(
1486
+ S.value = !0, d.value && !e.defaultValue && e.externalValue && e.externalValue.value === void 0 && M.value.length === 0 && (e.externalValue.value = "");
1487
+ const b = o.target;
1488
+ b && (r.value = b.selectionStart ?? 0);
1489
+ }, D = (o) => {
1490
+ const b = () => {
1491
+ const q = document.getElementById(
1474
1492
  e.id
1475
1493
  );
1476
- if (!s) return;
1477
- const h = o?.pos ?? n.value ?? s.value.length;
1494
+ if (!q) return;
1495
+ const f = o?.pos ?? r.value ?? q.value.length;
1478
1496
  try {
1479
- s.focus(), s.setSelectionRange(h, h);
1497
+ q.focus(), q.setSelectionRange(f, f);
1480
1498
  } catch {
1481
1499
  }
1482
1500
  };
1483
- j(() => {
1501
+ _(() => {
1484
1502
  if (o?.delay && o.delay > 0) {
1485
- setTimeout(S, o.delay);
1503
+ setTimeout(b, o.delay);
1486
1504
  return;
1487
1505
  }
1488
1506
  if (o?.useRAF) {
1489
- requestAnimationFrame(S);
1507
+ requestAnimationFrame(b);
1490
1508
  return;
1491
1509
  }
1492
- S();
1510
+ b();
1493
1511
  });
1494
1512
  };
1495
1513
  e.externalValue && le(
1496
1514
  e.externalValue,
1497
1515
  (o) => {
1498
1516
  if (o) {
1499
- const S = new Date(o);
1500
- if (S.toString() !== "Invalid Date") {
1501
- const s = (S.getMonth() + 1).toString().padStart(2, "0"), h = S.getDate().toString().padStart(2, "0"), L = S.getFullYear().toString();
1502
- t.value = `${s}/${h}/${L}`, E({ delay: 50 });
1517
+ const b = new Date(o);
1518
+ if (b.toString() !== "Invalid Date") {
1519
+ const q = (b.getMonth() + 1).toString().padStart(2, "0"), f = b.getDate().toString().padStart(2, "0"), h = b.getFullYear().toString();
1520
+ t.value = `${q}/${f}/${h}`, D({ delay: 50 });
1503
1521
  return;
1504
1522
  }
1505
1523
  }
1506
1524
  },
1507
1525
  { immediate: !0 }
1508
1526
  );
1509
- const F = y(() => [
1510
- ["Date", `${k.value} / ${x.value} / ${$.value}`],
1527
+ const P = y(() => [
1528
+ ["Date", `${E.value} / ${A.value} / ${O.value}`],
1511
1529
  ["Digits only", M.value],
1512
1530
  [
1513
1531
  "min",
@@ -1528,47 +1546,47 @@ function Mt(e) {
1528
1546
  ]), U = y(() => {
1529
1547
  if (!d.value) {
1530
1548
  if (!I.value) return !0;
1531
- const S = v.value;
1532
- return S ? u(S) : !1;
1549
+ const b = v.value;
1550
+ return b ? i(b) : !1;
1533
1551
  }
1534
- if (!D.value) return !0;
1552
+ if (!S.value) return !0;
1535
1553
  const o = v.value;
1536
- return !I.value || !o ? !1 : u(o);
1537
- }), _ = y(() => {
1554
+ return !I.value || !o ? !1 : i(o);
1555
+ }), j = y(() => {
1538
1556
  if (!d.value) {
1539
1557
  if (!I.value) return;
1540
- const S = v.value;
1541
- return S ? u(S) ? "valid" : "out-of-bounds" : "invalid-date";
1558
+ const b = v.value;
1559
+ return b ? i(b) ? "valid" : "out-of-bounds" : "invalid-date";
1542
1560
  }
1543
- if (!D.value) return;
1561
+ if (!S.value) return;
1544
1562
  if (M.value.length === 0 || !I.value)
1545
1563
  return "incomplete";
1546
1564
  const o = v.value;
1547
- return o ? u(o) ? "valid" : "out-of-bounds" : "invalid-date";
1565
+ return o ? i(o) ? "valid" : "out-of-bounds" : "invalid-date";
1548
1566
  }), re = y(() => {
1549
- const o = _.value;
1567
+ const o = j.value;
1550
1568
  if (!o || o === "valid") return "";
1551
1569
  if (o === "incomplete")
1552
1570
  return "Required";
1553
1571
  if (o === "invalid-date")
1554
1572
  return `Must be in ${a.value} format.`;
1555
- const S = e.min ? e.min.toLocaleDateString("en-US", {
1573
+ const b = e.min ? e.min.toLocaleDateString("en-US", {
1556
1574
  year: "numeric",
1557
1575
  month: "2-digit",
1558
1576
  day: "2-digit"
1559
- }) : null, s = e.max ? e.max.toLocaleDateString("en-US", {
1577
+ }) : null, q = e.max ? e.max.toLocaleDateString("en-US", {
1560
1578
  year: "numeric",
1561
1579
  month: "2-digit",
1562
1580
  day: "2-digit"
1563
1581
  }) : null;
1564
1582
  if (o === "out-of-bounds") {
1565
- if (S && s) return `Must be between ${S} and ${s}.`;
1566
- if (S) return `Must be on or after ${S}.`;
1567
- if (s) return `Must be on or before ${s}.`;
1583
+ if (b && q) return `Must be between ${b} and ${q}.`;
1584
+ if (b) return `Must be on or after ${b}.`;
1585
+ if (q) return `Must be on or before ${q}.`;
1568
1586
  }
1569
1587
  return "";
1570
1588
  }), ue = () => {
1571
- j(() => {
1589
+ _(() => {
1572
1590
  const o = document.getElementById(
1573
1591
  e.id
1574
1592
  );
@@ -1576,16 +1594,16 @@ function Mt(e) {
1576
1594
  console.warn(`ID (#${e.id}) not found for styling.`);
1577
1595
  return;
1578
1596
  }
1579
- const S = o.closest(".k-datepicker");
1580
- if (!S) {
1597
+ const b = o.closest(".k-datepicker");
1598
+ if (!b) {
1581
1599
  console.warn(`.k-datepicker parent not found for #${e.id} styling.`);
1582
1600
  return;
1583
1601
  }
1584
- const s = S.parentElement;
1585
- if (s) {
1586
- if (s.classList.contains("fk-datepicker"))
1602
+ const q = b.parentElement;
1603
+ if (q) {
1604
+ if (q.classList.contains("fk-datepicker"))
1587
1605
  return;
1588
- s.classList.add("fk-datepicker");
1606
+ q.classList.add("fk-datepicker");
1589
1607
  } else
1590
1608
  console.warn(
1591
1609
  `Parent of .k-datepicker not found for #${e.id} styling.`
@@ -1596,64 +1614,64 @@ function Mt(e) {
1596
1614
  ue();
1597
1615
  }), {
1598
1616
  raw: t,
1599
- cursorPos: n,
1600
- debugEnabled: p,
1601
- debugLines: F,
1617
+ cursorPos: r,
1618
+ debugEnabled: c,
1619
+ debugLines: P,
1602
1620
  placeholder: a,
1603
1621
  isValid: U,
1604
- reason: ee(_),
1622
+ reason: te(j),
1605
1623
  validationMessage: re,
1606
1624
  digitsOnly: M,
1607
- month: ee(k),
1608
- day: ee(x),
1609
- year: ee($),
1625
+ month: te(E),
1626
+ day: te(A),
1627
+ year: te(O),
1610
1628
  datePart: R,
1611
- handleChange: Y,
1612
- handleKeyDown: A,
1613
- handleWheel: g,
1614
- handleKeyUp: w,
1629
+ handleChange: Z,
1630
+ handleKeyDown: x,
1631
+ handleWheel: m,
1632
+ handleKeyUp: k,
1615
1633
  handleClick: J,
1616
1634
  handleBlur: C,
1617
1635
  // Expose so consumers can re-run styling when needed
1618
1636
  initStyling: ue
1619
1637
  };
1620
1638
  }
1621
- function It(e) {
1622
- const t = X(""), n = X(void 0), p = X(!!e.debug), a = X(!1), d = 1440 * 60 * 1e3, b = 365 * d, D = /* @__PURE__ */ new Date(), O = new Date(D.getTime() - b), K = new Date(D.getTime() + b);
1623
- e.min = e.min ?? O, e.max = e.max ?? K;
1624
- const M = y(() => (t.value ?? "").replace(/\D/g, "")), R = (l, m) => new Date(l, m, 0).getDate(), k = (l, m, T) => m >= 1 && m <= 12 && l >= 1e3 && T >= 1 && T <= R(l, m), x = (l) => Date.UTC(l.getFullYear(), l.getMonth(), l.getDate()), $ = (l) => {
1639
+ function Ct(e) {
1640
+ const t = Y(""), r = Y(void 0), c = Y(!!e.debug), a = Y(!1), d = 1440 * 60 * 1e3, w = 365 * d, S = /* @__PURE__ */ new Date(), $ = new Date(S.getTime() - w), V = new Date(S.getTime() + w);
1641
+ e.min = e.min ?? $, e.max = e.max ?? V;
1642
+ const M = y(() => (t.value ?? "").replace(/\D/g, "")), R = (l, g) => new Date(l, g, 0).getDate(), E = (l, g, F) => g >= 1 && g <= 12 && l >= 1e3 && F >= 1 && F <= R(l, g), A = (l) => Date.UTC(l.getFullYear(), l.getMonth(), l.getDate()), O = (l) => {
1625
1643
  if (!l) return null;
1626
- const m = e.min ?? new Date(Date.now() - 90 * d), T = e.max ?? /* @__PURE__ */ new Date(), z = x(l);
1627
- return z < x(m) || z > x(T) ? null : l;
1628
- }, f = (l, m) => e.allowReverse ?? !1 ? !0 : l <= m, u = y(() => (t.value?.length ?? 0) >= 23 && M.value.length >= 16), v = (l) => {
1644
+ const g = e.min ?? new Date(Date.now() - 90 * d), F = e.max ?? /* @__PURE__ */ new Date(), B = A(l);
1645
+ return B < A(g) || B > A(F) ? null : l;
1646
+ }, p = (l, g) => e.allowReverse ?? !1 ? !0 : l <= g, i = y(() => (t.value?.length ?? 0) >= 23 && M.value.length >= 16), v = (l) => {
1629
1647
  if ((l ?? "").length < 23 || M.value.length < 16)
1630
1648
  return { start: null, end: null };
1631
- const m = l.substring(0, 10), T = l.substring(13, 23), [z, ae, oe] = m.split("/").map((pe) => parseInt(pe || "0", 10)), [fe, me, ve] = T.split("/").map((pe) => parseInt(pe || "0", 10)), ge = new Date(oe, z - 1, ae), be = new Date(ve, fe - 1, me), Ae = k(oe, z, ae) && ge.toString() !== "Invalid Date", De = k(ve, fe, me) && be.toString() !== "Invalid Date";
1649
+ const g = l.substring(0, 10), F = l.substring(13, 23), [B, ae, oe] = g.split("/").map((pe) => parseInt(pe || "0", 10)), [fe, me, ve] = F.split("/").map((pe) => parseInt(pe || "0", 10)), ge = new Date(oe, B - 1, ae), be = new Date(ve, fe - 1, me), Ae = E(oe, B, ae) && ge.toString() !== "Invalid Date", De = E(ve, fe, me) && be.toString() !== "Invalid Date";
1632
1650
  return { start: Ae ? ge : null, end: De ? be : null };
1633
- }, I = e.externalValid ?? X(!0), q = y(() => v(t.value)), W = y(() => {
1634
- const l = $(q.value.start), m = $(q.value.end);
1635
- return { start: l, end: m };
1636
- }), B = y(() => {
1637
- if (!u.value) return;
1638
- const l = W.value.start, m = W.value.end;
1639
- if (!l || !m) return;
1640
- const T = Math.abs(x(m) - x(l));
1641
- return Math.round(T / 864e5 + 1);
1642
- }), Y = X(!1), J = y(() => {
1643
- if (!Y.value) return;
1644
- const { start: l, end: m } = q.value;
1645
- if (!u.value) return "incomplete";
1646
- if (!l || !m) return "invalid-date";
1647
- if (!W.value.start || !W.value.end) return "out-of-bounds";
1648
- const T = W.value.start, z = W.value.end;
1649
- return f(T, z) ? typeof e.maxSpanDays == "number" && B.value !== void 0 && B.value > e.maxSpanDays ? "span-exceeds-limit" : "valid" : "reversed-range";
1650
- }), c = y(() => {
1651
+ }, I = e.externalValid ?? Y(!0), N = y(() => v(t.value)), H = y(() => {
1652
+ const l = O(N.value.start), g = O(N.value.end);
1653
+ return { start: l, end: g };
1654
+ }), X = y(() => {
1655
+ if (!i.value) return;
1656
+ const l = H.value.start, g = H.value.end;
1657
+ if (!l || !g) return;
1658
+ const F = Math.abs(A(g) - A(l));
1659
+ return Math.round(F / 864e5 + 1);
1660
+ }), Z = Y(!1), J = y(() => {
1661
+ if (!Z.value) return;
1662
+ const { start: l, end: g } = N.value;
1663
+ if (!i.value) return "incomplete";
1664
+ if (!l || !g) return "invalid-date";
1665
+ if (!H.value.start || !H.value.end) return "out-of-bounds";
1666
+ const F = H.value.start, B = H.value.end;
1667
+ return p(F, B) ? typeof e.maxSpanDays == "number" && X.value !== void 0 && X.value > e.maxSpanDays ? "span-exceeds-limit" : "valid" : "reversed-range";
1668
+ }), s = y(() => {
1651
1669
  const l = J.value;
1652
1670
  return l === void 0 || l === "valid";
1653
- }), A = y(() => {
1654
- const { min: l, max: m } = e, T = J.value;
1655
- if (!T) return "";
1656
- switch (T) {
1671
+ }), x = y(() => {
1672
+ const { min: l, max: g } = e, F = J.value;
1673
+ if (!F) return "";
1674
+ switch (F) {
1657
1675
  case "incomplete":
1658
1676
  return "Required";
1659
1677
  case "invalid-date":
@@ -1661,88 +1679,88 @@ function It(e) {
1661
1679
  case "reversed-range":
1662
1680
  return "End Date must be on or after Start Date.";
1663
1681
  case "out-of-bounds":
1664
- return l && m ? `Dates must be between ${E(l)} and ${E(m)}.` : "Dates must be within the allowed range.";
1682
+ return l && g ? `Dates must be between ${D(l)} and ${D(g)}.` : "Dates must be within the allowed range.";
1665
1683
  case "span-exceeds-limit":
1666
1684
  return typeof e.maxSpanDays == "number" ? `Date range exceeds ${e.maxSpanDays} days.` : "Date range exceeds maximum allowed span.";
1667
1685
  default:
1668
1686
  return "";
1669
1687
  }
1670
- }), g = ["ArrowUp", "ArrowDown"], w = ["ArrowLeft", "ArrowRight"], C = (l, m) => String(l).padStart(m, "0"), E = (l) => `${C(l.getMonth() + 1, 2)}/${C(l.getDate(), 2)}/${C(
1688
+ }), m = ["ArrowUp", "ArrowDown"], k = ["ArrowLeft", "ArrowRight"], C = (l, g) => String(l).padStart(g, "0"), D = (l) => `${C(l.getMonth() + 1, 2)}/${C(l.getDate(), 2)}/${C(
1671
1689
  l.getFullYear(),
1672
1690
  4
1673
- )}`, F = (l) => l <= 2 ? { side: "start", part: "mm" } : l <= 5 ? { side: "start", part: (l <= 3, "dd") } : l <= 11 ? { side: "start", part: "yyyy" } : l <= 15 ? { side: "end", part: "mm" } : l <= 18 ? { side: "end", part: "dd" } : { side: "end", part: "yyyy" }, U = (l, m, T) => {
1674
- const z = m?.selectionStart ?? n.value ?? 0;
1675
- n.value = z;
1691
+ )}`, P = (l) => l <= 2 ? { side: "start", part: "mm" } : l <= 5 ? { side: "start", part: (l <= 3, "dd") } : l <= 11 ? { side: "start", part: "yyyy" } : l <= 15 ? { side: "end", part: "mm" } : l <= 18 ? { side: "end", part: "dd" } : { side: "end", part: "yyyy" }, U = (l, g, F) => {
1692
+ const B = g?.selectionStart ?? r.value ?? 0;
1693
+ r.value = B;
1676
1694
  const { start: ae, end: oe } = v(t.value);
1677
1695
  if (!ae && !oe) {
1678
- const Q = /* @__PURE__ */ new Date(), de = E(Q);
1679
- t.value = `${de} - ${de}`, e.onChange({ value: { start: Q, end: Q }, event: T }), j(() => {
1696
+ const ee = /* @__PURE__ */ new Date(), de = D(ee);
1697
+ t.value = `${de} - ${de}`, e.onChange({ value: { start: ee, end: ee }, event: F }), _(() => {
1680
1698
  requestAnimationFrame(() => {
1681
1699
  const ie = document.getElementById(
1682
1700
  e.id
1683
- ), se = n.value ?? 0;
1701
+ ), se = r.value ?? 0;
1684
1702
  ie && (ie.focus(), ie.setSelectionRange(se, se));
1685
1703
  });
1686
1704
  });
1687
1705
  return;
1688
1706
  }
1689
- const fe = /* @__PURE__ */ new Date(), me = F(z);
1707
+ const fe = /* @__PURE__ */ new Date(), me = P(B);
1690
1708
  let ve = ae ? new Date(ae) : new Date(fe), ge = oe ? new Date(oe) : new Date(fe);
1691
- const be = (Q, de) => {
1709
+ const be = (ee, de) => {
1692
1710
  if (de === "mm") {
1693
- const ie = Q.getMonth() + 1, se = l === "ArrowUp" ? ie < 12 ? ie + 1 : 1 : ie > 1 ? ie - 1 : 12;
1694
- Q.setMonth(se - 1);
1695
- const Se = R(Q.getFullYear(), se);
1696
- Q.getDate() > Se && Q.setDate(Se);
1711
+ const ie = ee.getMonth() + 1, se = l === "ArrowUp" ? ie < 12 ? ie + 1 : 1 : ie > 1 ? ie - 1 : 12;
1712
+ ee.setMonth(se - 1);
1713
+ const Se = R(ee.getFullYear(), se);
1714
+ ee.getDate() > Se && ee.setDate(Se);
1697
1715
  } else if (de === "dd") {
1698
- const ie = R(Q.getFullYear(), Q.getMonth() + 1), se = Q.getDate(), Se = l === "ArrowUp" ? se < ie ? se + 1 : 1 : se > 1 ? se - 1 : ie;
1699
- Q.setDate(Se);
1716
+ const ie = R(ee.getFullYear(), ee.getMonth() + 1), se = ee.getDate(), Se = l === "ArrowUp" ? se < ie ? se + 1 : 1 : se > 1 ? se - 1 : ie;
1717
+ ee.setDate(Se);
1700
1718
  } else if (de === "yyyy") {
1701
- const ie = Q.getFullYear();
1702
- Q.setFullYear(l === "ArrowUp" ? ie + 1 : Math.max(1, ie - 1));
1703
- const se = R(Q.getFullYear(), Q.getMonth() + 1);
1704
- Q.getDate() > se && Q.setDate(se);
1719
+ const ie = ee.getFullYear();
1720
+ ee.setFullYear(l === "ArrowUp" ? ie + 1 : Math.max(1, ie - 1));
1721
+ const se = R(ee.getFullYear(), ee.getMonth() + 1);
1722
+ ee.getDate() > se && ee.setDate(se);
1705
1723
  }
1706
1724
  };
1707
1725
  me.side === "start" ? be(ve, me.part) : be(ge, me.part);
1708
- const Ae = E(ve), De = E(ge);
1726
+ const Ae = D(ve), De = D(ge);
1709
1727
  t.value = `${Ae} - ${De}`;
1710
- const pe = $(ve), Ee = $(ge);
1711
- pe && Ee && f(pe, Ee) ? e.onChange({ value: { start: pe, end: Ee }, event: T }) : e.onChange({ value: null, event: T }), j(() => {
1728
+ const pe = O(ve), Ee = O(ge);
1729
+ pe && Ee && p(pe, Ee) ? e.onChange({ value: { start: pe, end: Ee }, event: F }) : e.onChange({ value: null, event: F }), _(() => {
1712
1730
  requestAnimationFrame(() => {
1713
- const Q = document.getElementById(
1731
+ const ee = document.getElementById(
1714
1732
  e.id
1715
- ), de = n.value ?? 0;
1716
- Q && (Q.focus(), Q.setSelectionRange(de, de));
1733
+ ), de = r.value ?? 0;
1734
+ ee && (ee.focus(), ee.setSelectionRange(de, de));
1717
1735
  });
1718
1736
  });
1719
- }, _ = (l) => {
1720
- const { start: m, end: T } = v(t.value);
1721
- if (!m || !T) {
1737
+ }, j = (l) => {
1738
+ const { start: g, end: F } = v(t.value);
1739
+ if (!g || !F) {
1722
1740
  e.onChange({ value: null, event: l });
1723
1741
  return;
1724
1742
  }
1725
- const z = $(m), ae = $(T);
1726
- if (!z || !ae) {
1743
+ const B = O(g), ae = O(F);
1744
+ if (!B || !ae) {
1727
1745
  e.onChange({ value: null, event: l });
1728
1746
  return;
1729
1747
  }
1730
- if (!f(z, ae)) {
1748
+ if (!p(B, ae)) {
1731
1749
  e.onChange({ value: null, event: l });
1732
1750
  return;
1733
1751
  }
1734
- e.onChange({ value: { start: z, end: ae }, event: l });
1752
+ e.onChange({ value: { start: B, end: ae }, event: l });
1735
1753
  }, re = (l) => {
1736
- const m = l.value ?? "", T = l.event;
1737
- if (!m && T && T.type === "click") {
1738
- V(T);
1754
+ const g = l.value ?? "", F = l.event;
1755
+ if (!g && F && F.type === "click") {
1756
+ L(F);
1739
1757
  return;
1740
1758
  }
1741
- t.value = m;
1742
- const z = T?.target;
1743
- n.value = z?.selectionStart ?? 0, _(l);
1759
+ t.value = g;
1760
+ const B = F?.target;
1761
+ r.value = B?.selectionStart ?? 0, j(l);
1744
1762
  }, ue = (l) => {
1745
- n.value = l.target.selectionStart ?? 0;
1763
+ r.value = l.target.selectionStart ?? 0;
1746
1764
  }, o = (l) => {
1747
1765
  if (l.code === "Space" || l.key === " ") {
1748
1766
  l.preventDefault(), l.stopPropagation(), e.onShowCalendar(l);
@@ -1752,63 +1770,63 @@ function It(e) {
1752
1770
  l.preventDefault(), l.stopPropagation(), e.onShowCalendar(l);
1753
1771
  return;
1754
1772
  }
1755
- if (g.includes(l.key)) {
1773
+ if (m.includes(l.key)) {
1756
1774
  l.preventDefault(), l.stopPropagation();
1757
- const m = l.target;
1758
- U(l.key, m, l);
1775
+ const g = l.target;
1776
+ U(l.key, g, l);
1759
1777
  return;
1760
1778
  }
1761
- }, S = (l) => {
1779
+ }, b = (l) => {
1762
1780
  l.preventDefault();
1763
- const m = l.deltaY < 0 ? "ArrowUp" : "ArrowDown";
1764
- U(m, l.target, l);
1765
- }, s = (l) => {
1766
- if (w.includes(l.key) || g.includes(l.key)) {
1767
- const m = l.target;
1768
- n.value = m?.selectionStart ?? 0;
1769
- }
1770
- }, h = () => {
1771
- Y.value = !0, (e.manageValid ?? !0) && (I.value = c.value);
1781
+ const g = l.deltaY < 0 ? "ArrowUp" : "ArrowDown";
1782
+ U(g, l.target, l);
1783
+ }, q = (l) => {
1784
+ if (k.includes(l.key) || m.includes(l.key)) {
1785
+ const g = l.target;
1786
+ r.value = g?.selectionStart ?? 0;
1787
+ }
1788
+ }, f = () => {
1789
+ Z.value = !0, (e.manageValid ?? !0) && (I.value = s.value);
1790
+ }, h = (l) => {
1791
+ f();
1772
1792
  }, L = (l) => {
1773
- h();
1774
- }, V = (l) => {
1775
- t.value = "", n.value = 0, e.onChange({ value: null, event: l }), h(), j(() => {
1776
- const m = document.getElementById(
1793
+ t.value = "", r.value = 0, e.onChange({ value: null, event: l }), f(), _(() => {
1794
+ const g = document.getElementById(
1777
1795
  e.id
1778
1796
  );
1779
- m && (m.focus(), m.setSelectionRange(0, 0));
1797
+ g && (g.focus(), g.setSelectionRange(0, 0));
1780
1798
  });
1781
1799
  };
1782
1800
  e.externalValue && le(
1783
1801
  e.externalValue,
1784
1802
  (l) => {
1785
- const m = l?.start ?? null, T = l?.end ?? null;
1786
- if (m && T) {
1787
- if (t.value = `${E(m)} - ${E(T)}`, e.isOpen?.value && a.value && e.onRequestClose) {
1788
- const z = typeof e.closeDelay == "number" ? e.closeDelay : e.closeDelay?.value ?? 0;
1803
+ const g = l?.start ?? null, F = l?.end ?? null;
1804
+ if (g && F) {
1805
+ if (t.value = `${D(g)} - ${D(F)}`, e.isOpen?.value && a.value && e.onRequestClose) {
1806
+ const B = typeof e.closeDelay == "number" ? e.closeDelay : e.closeDelay?.value ?? 0;
1789
1807
  setTimeout(() => {
1790
- e.onRequestClose?.(), a.value = !1, h();
1791
- }, z);
1808
+ e.onRequestClose?.(), a.value = !1, f();
1809
+ }, B);
1792
1810
  }
1793
1811
  return;
1794
1812
  }
1795
1813
  },
1796
1814
  { immediate: !0 }
1797
1815
  );
1798
- const r = y(
1816
+ const n = y(
1799
1817
  () => t.value && t.value.substring(0, 2).replace(/\D/g, "0") || "0"
1800
- ), i = y(
1818
+ ), u = y(
1801
1819
  () => t.value && t.value.substring(3, 5).replace(/\D/g, "0") || "0"
1802
- ), P = y(
1820
+ ), T = y(
1803
1821
  () => t.value && t.value.substring(6, 10).replace(/\D/g, "0") || "0"
1804
- ), N = y(
1822
+ ), K = y(
1805
1823
  () => t.value && t.value.substring(13, 15).replace(/\D/g, "0") || "0"
1806
- ), H = y(
1824
+ ), z = y(
1807
1825
  () => t.value && t.value.substring(16, 18).replace(/\D/g, "0") || "0"
1808
- ), te = y(
1826
+ ), Q = y(
1809
1827
  () => t.value && t.value.substring(19, 23).replace(/\D/g, "0") || "0"
1810
- ), Z = y(() => {
1811
- const { start: l, end: m } = v(t.value);
1828
+ ), W = y(() => {
1829
+ const { start: l, end: g } = v(t.value);
1812
1830
  return [
1813
1831
  {
1814
1832
  label: "Raw",
@@ -1824,73 +1842,73 @@ function It(e) {
1824
1842
  },
1825
1843
  {
1826
1844
  label: "Start",
1827
- value: `${String(r.value).padStart(2, "0")} / ${String(
1828
- i.value
1829
- ).padStart(2, "0")} / ${String(P.value).padStart(4, "0")}`
1845
+ value: `${String(n.value).padStart(2, "0")} / ${String(
1846
+ u.value
1847
+ ).padStart(2, "0")} / ${String(T.value).padStart(4, "0")}`
1830
1848
  },
1831
1849
  {
1832
1850
  label: "End",
1833
- value: `${String(N.value).padStart(2, "0")} / ${String(
1834
- H.value
1835
- ).padStart(2, "0")} / ${String(te.value).padStart(4, "0")}`
1851
+ value: `${String(K.value).padStart(2, "0")} / ${String(
1852
+ z.value
1853
+ ).padStart(2, "0")} / ${String(Q.value).padStart(4, "0")}`
1836
1854
  },
1837
1855
  { label: "Digits only", value: M.value },
1838
- { label: "Mask complete", value: `${u.value}` },
1856
+ { label: "Mask complete", value: `${i.value}` },
1839
1857
  {
1840
1858
  label: "Parsed",
1841
- value: `${l ? l.toDateString() : "-"} | ${m ? m.toDateString() : "-"}`
1859
+ value: `${l ? l.toDateString() : "-"} | ${g ? g.toDateString() : "-"}`
1842
1860
  },
1843
1861
  {
1844
1862
  label: "Valid (managed)",
1845
1863
  value: `${I.value ?? "-"}`
1846
1864
  },
1847
- { label: "Span (days)", value: `${B.value ?? "-"}` },
1865
+ { label: "Span (days)", value: `${X.value ?? "-"}` },
1848
1866
  {
1849
1867
  label: "Reason",
1850
1868
  value: `${J.value ?? "-"}`
1851
1869
  },
1852
1870
  {
1853
1871
  label: "Cursor in",
1854
- value: `${n.value ?? "-"} (${(() => {
1855
- const T = n.value ?? 0, z = F(T);
1856
- return `${z.side}.${z.part}`;
1872
+ value: `${r.value ?? "-"} (${(() => {
1873
+ const F = r.value ?? 0, B = P(F);
1874
+ return `${B.side}.${B.part}`;
1857
1875
  })()})`
1858
1876
  }
1859
1877
  ];
1860
1878
  }), G = () => {
1861
- j(() => {
1879
+ _(() => {
1862
1880
  const l = document.getElementById(e.id);
1863
1881
  if (!l) {
1864
1882
  console.warn(`#${e.id} not found for styling.`);
1865
1883
  return;
1866
1884
  }
1867
- const m = l.closest("div");
1868
- if (!m) {
1885
+ const g = l.closest("div");
1886
+ if (!g) {
1869
1887
  console.warn(`Parent div of #${e.id} not found for styling.`);
1870
1888
  return;
1871
1889
  }
1872
- m.classList.contains("fk-daterangepicker") || m.classList.add("fk-daterangepicker");
1890
+ g.classList.contains("fk-daterangepicker") || g.classList.add("fk-daterangepicker");
1873
1891
  });
1874
1892
  };
1875
1893
  Re(() => {
1876
1894
  G();
1877
1895
  });
1878
1896
  const ce = () => {
1879
- j(() => {
1897
+ _(() => {
1880
1898
  try {
1881
1899
  const l = Array.from(
1882
1900
  document.querySelectorAll(".k-animation-container")
1883
1901
  );
1884
1902
  if (!l.length) return;
1885
- const T = [...l].reverse().find((oe) => oe.querySelector(".k-calendar"))?.querySelector(
1903
+ const F = [...l].reverse().find((oe) => oe.querySelector(".k-calendar"))?.querySelector(
1886
1904
  ".k-calendar"
1887
1905
  );
1888
- if (!T) return;
1889
- const z = T.querySelectorAll(
1906
+ if (!F) return;
1907
+ const B = F.querySelectorAll(
1890
1908
  ".k-calendar-table"
1891
1909
  );
1892
1910
  let ae = !1;
1893
- z.forEach((oe) => {
1911
+ B.forEach((oe) => {
1894
1912
  oe.tabIndex === 0 && (ae ? oe.tabIndex = -1 : ae = !0);
1895
1913
  });
1896
1914
  } catch (l) {
@@ -1906,254 +1924,254 @@ function It(e) {
1906
1924
  { immediate: !1 }
1907
1925
  ), {
1908
1926
  raw: t,
1909
- cursorPos: n,
1910
- debugEnabled: p,
1911
- debugLines: Z,
1927
+ cursorPos: r,
1928
+ debugEnabled: c,
1929
+ debugLines: W,
1912
1930
  digitsOnly: M,
1913
1931
  valid: I,
1914
- validComputed: ee(c),
1915
- reason: ee(J),
1916
- validationMessage: ee(A),
1917
- spanDays: ee(B),
1918
- month1: ee(r),
1919
- day1: ee(i),
1920
- year1: ee(P),
1921
- month2: ee(N),
1922
- day2: ee(H),
1923
- year2: ee(te),
1932
+ validComputed: te(s),
1933
+ reason: te(J),
1934
+ validationMessage: te(x),
1935
+ spanDays: te(X),
1936
+ month1: te(n),
1937
+ day1: te(u),
1938
+ year1: te(T),
1939
+ month2: te(K),
1940
+ day2: te(z),
1941
+ year2: te(Q),
1924
1942
  handleChange: re,
1925
1943
  handleKeyDown: o,
1926
- handleWheel: S,
1927
- handleKeyUp: s,
1944
+ handleWheel: b,
1945
+ handleKeyUp: q,
1928
1946
  handleClick: ue,
1929
- handleBlur: L,
1930
- handleClear: V,
1947
+ handleBlur: h,
1948
+ handleClear: L,
1931
1949
  onCalendarChange: () => {
1932
1950
  a.value = !0;
1933
1951
  },
1934
1952
  initStyling: G
1935
1953
  };
1936
1954
  }
1937
- function Ct(e) {
1938
- const t = X(""), n = X(void 0), p = X(!!e.debug), a = X(e.timeFormat ?? "hh:mm AM"), d = y(() => !!e.required), b = X(!1), D = ["ArrowUp", "ArrowDown"], O = ["ArrowLeft", "ArrowRight"], K = y(() => (t.value ?? "").replace(/\D/g, "")), M = {
1955
+ function Tt(e) {
1956
+ const t = Y(""), r = Y(void 0), c = Y(!!e.debug), a = Y(e.timeFormat ?? "hh:mm AM"), d = y(() => !!e.required), w = Y(!1), S = ["ArrowUp", "ArrowDown"], $ = ["ArrowLeft", "ArrowRight"], V = y(() => (t.value ?? "").replace(/\D/g, "")), M = {
1939
1957
  H: /[0-9]/,
1940
1958
  h: /[0-9]/,
1941
1959
  M: /[0-9]/,
1942
1960
  m: /[0-9]/,
1943
1961
  A: /[AaPp]/,
1944
1962
  a: /[Mm]/
1945
- }, R = (r) => r <= 2 ? "hh" : r <= 5 ? "mm" : "ampm", k = y(() => {
1946
- const r = t.value && t.value.substring(0, 2).replace(/\D/g, "0") || "0", i = parseInt(r);
1947
- return Math.min(Math.max(i, 0), 23);
1948
- }), x = y(() => {
1949
- const r = t.value && t.value.substring(3, 5).replace(/\D/g, "0") || "0", i = parseInt(r);
1950
- return Math.min(Math.max(i, 0), 59);
1951
- }), $ = y(() => (t.value?.substring(6, 8) || "AM").toUpperCase().startsWith("P") ? "PM" : "AM"), f = y(() => {
1952
- const r = parseInt(t.value?.substring(0, 2).replace(/\D/g, "0") || "0"), i = $.value;
1953
- return r === 12 ? i === "AM" ? 0 : 12 : i === "PM" ? r + 12 : r;
1954
- }), u = y(() => v.value ? `${String(f.value).padStart(2, "0")}:${String(x.value).padStart(2, "0")}:00` : null), v = y(
1963
+ }, R = (n) => n <= 2 ? "hh" : n <= 5 ? "mm" : "ampm", E = y(() => {
1964
+ const n = t.value && t.value.substring(0, 2).replace(/\D/g, "0") || "0", u = parseInt(n);
1965
+ return Math.min(Math.max(u, 0), 23);
1966
+ }), A = y(() => {
1967
+ const n = t.value && t.value.substring(3, 5).replace(/\D/g, "0") || "0", u = parseInt(n);
1968
+ return Math.min(Math.max(u, 0), 59);
1969
+ }), O = y(() => (t.value?.substring(6, 8) || "AM").toUpperCase().startsWith("P") ? "PM" : "AM"), p = y(() => {
1970
+ const n = parseInt(t.value?.substring(0, 2).replace(/\D/g, "0") || "0"), u = O.value;
1971
+ return n === 12 ? u === "AM" ? 0 : 12 : u === "PM" ? n + 12 : n;
1972
+ }), i = y(() => v.value ? `${String(p.value).padStart(2, "0")}:${String(A.value).padStart(2, "0")}:00` : null), v = y(
1955
1973
  () => /^(\d{2}):(\d{2})\s([AP]M)$/i.test(t.value ?? "")
1956
- ), I = (r, i, P) => {
1957
- let N = r % 12;
1958
- return N === 0 && (N = 12), `${String(N).padStart(2, "0")}:${String(i).padStart(
1974
+ ), I = (n, u, T) => {
1975
+ let K = n % 12;
1976
+ return K === 0 && (K = 12), `${String(K).padStart(2, "0")}:${String(u).padStart(
1959
1977
  2,
1960
1978
  "0"
1961
- )} ${P}`;
1962
- }, q = (r) => {
1963
- const i = r.match(/^(\d{2}):(\d{2})\s([AP]M)$/i);
1964
- if (!i) return null;
1965
- const P = parseInt(i[1]), N = parseInt(i[2]), H = i[3].toUpperCase();
1966
- if (P < 1 || P > 12 || N < 0 || N > 59) return null;
1967
- let te = P % 12;
1968
- H === "PM" && (te += 12);
1969
- const Z = /* @__PURE__ */ new Date();
1970
- return Z.setSeconds(0, 0), Z.setHours(te), Z.setMinutes(N), Z;
1971
- }, W = (r) => {
1972
- if (K.value.length === 0) {
1973
- e.onChange({ value: null, event: r });
1979
+ )} ${T}`;
1980
+ }, N = (n) => {
1981
+ const u = n.match(/^(\d{2}):(\d{2})\s([AP]M)$/i);
1982
+ if (!u) return null;
1983
+ const T = parseInt(u[1]), K = parseInt(u[2]), z = u[3].toUpperCase();
1984
+ if (T < 1 || T > 12 || K < 0 || K > 59) return null;
1985
+ let Q = T % 12;
1986
+ z === "PM" && (Q += 12);
1987
+ const W = /* @__PURE__ */ new Date();
1988
+ return W.setSeconds(0, 0), W.setHours(Q), W.setMinutes(K), W;
1989
+ }, H = (n) => {
1990
+ if (V.value.length === 0) {
1991
+ e.onChange({ value: null, event: n });
1974
1992
  return;
1975
1993
  }
1976
1994
  if (!v.value) {
1977
- e.onChange({ value: null, event: r });
1995
+ e.onChange({ value: null, event: n });
1978
1996
  return;
1979
1997
  }
1980
- const i = q(t.value);
1981
- i && Y(i) ? e.onChange({ value: i, event: r }) : e.onChange({ value: null, event: r });
1982
- }, B = (r) => r.getHours() * 60 + r.getMinutes(), Y = (r) => {
1983
- const i = e.min ?? void 0, P = e.max ?? void 0, N = B(r);
1984
- if (i) {
1985
- const H = B(i);
1986
- if (N < H) return !1;
1998
+ const u = N(t.value);
1999
+ u && Z(u) ? e.onChange({ value: u, event: n }) : e.onChange({ value: null, event: n });
2000
+ }, X = (n) => n.getHours() * 60 + n.getMinutes(), Z = (n) => {
2001
+ const u = e.min ?? void 0, T = e.max ?? void 0, K = X(n);
2002
+ if (u) {
2003
+ const z = X(u);
2004
+ if (K < z) return !1;
1987
2005
  }
1988
- if (P) {
1989
- const H = B(P);
1990
- if (N > H) return !1;
2006
+ if (T) {
2007
+ const z = X(T);
2008
+ if (K > z) return !1;
1991
2009
  }
1992
2010
  return !0;
1993
- }, J = (r) => {
1994
- const i = r.getHours(), P = i >= 12 ? "PM" : "AM";
1995
- t.value = I(i, r.getMinutes(), P);
1996
- }, c = (r, i) => {
1997
- e.onChange({ value: r, event: i });
1998
- }, A = () => {
1999
- j(() => {
2011
+ }, J = (n) => {
2012
+ const u = n.getHours(), T = u >= 12 ? "PM" : "AM";
2013
+ t.value = I(u, n.getMinutes(), T);
2014
+ }, s = (n, u) => {
2015
+ e.onChange({ value: n, event: u });
2016
+ }, x = () => {
2017
+ _(() => {
2000
2018
  requestAnimationFrame(() => {
2001
2019
  requestAnimationFrame(() => {
2002
- const r = document.getElementById(
2020
+ const n = document.getElementById(
2003
2021
  e.id
2004
2022
  );
2005
- if (r) {
2006
- r.focus();
2007
- const i = (r.value ?? "").length;
2008
- r.setSelectionRange(i, i);
2023
+ if (n) {
2024
+ n.focus();
2025
+ const u = (n.value ?? "").length;
2026
+ n.setSelectionRange(u, u);
2009
2027
  }
2010
2028
  });
2011
2029
  });
2012
2030
  });
2013
- }, g = (r) => {
2014
- const i = r?.event?.target;
2015
- return i ? i.closest(".k-time-now") ? "now" : i.closest(".k-time-accept") ? "set" : null : null;
2016
- }, w = (r, i) => {
2017
- r && Y(r) ? c(r, i) : c(null, i);
2018
- }, C = (...r) => {
2019
- const i = r[0];
2020
- if (!i) return;
2021
- const P = g(i);
2022
- if (P === "now") {
2023
- const H = /* @__PURE__ */ new Date();
2024
- J(H), w(H, i), A();
2031
+ }, m = (n) => {
2032
+ const u = n?.event?.target;
2033
+ return u ? u.closest(".k-time-now") ? "now" : u.closest(".k-time-accept") ? "set" : null : null;
2034
+ }, k = (n, u) => {
2035
+ n && Z(n) ? s(n, u) : s(null, u);
2036
+ }, C = (...n) => {
2037
+ const u = n[0];
2038
+ if (!u) return;
2039
+ const T = m(u);
2040
+ if (T === "now") {
2041
+ const z = /* @__PURE__ */ new Date();
2042
+ J(z), k(z, u), x();
2025
2043
  return;
2026
2044
  }
2027
- if (i?.value instanceof Date) {
2028
- const H = new Date(i.value);
2029
- J(H), w(H, i), P === "set" && A();
2045
+ if (u?.value instanceof Date) {
2046
+ const z = new Date(u.value);
2047
+ J(z), k(z, u), T === "set" && x();
2030
2048
  return;
2031
2049
  }
2032
- if (i?.value === null) {
2033
- t.value = "", c(null, i);
2050
+ if (u?.value === null) {
2051
+ t.value = "", s(null, u);
2034
2052
  return;
2035
2053
  }
2036
- t.value = i.value;
2037
- const N = i.event?.target;
2038
- n.value = N?.selectionStart ?? 0;
2054
+ t.value = u.value;
2055
+ const K = u.event?.target;
2056
+ r.value = K?.selectionStart ?? 0;
2039
2057
  try {
2040
- const H = n.value ?? 0;
2041
- if (R(H) === "ampm" && (t.value ?? "").length >= 8) {
2042
- const te = t.value.charAt(6);
2043
- /[Aa]/.test(te) ? (t.value = `${t.value.slice(0, 6)}AM${t.value.slice(8)}`, j(() => {
2058
+ const z = r.value ?? 0;
2059
+ if (R(z) === "ampm" && (t.value ?? "").length >= 8) {
2060
+ const Q = t.value.charAt(6);
2061
+ /[Aa]/.test(Q) ? (t.value = `${t.value.slice(0, 6)}AM${t.value.slice(8)}`, _(() => {
2044
2062
  requestAnimationFrame(() => {
2045
- const Z = document.getElementById(
2063
+ const W = document.getElementById(
2046
2064
  e.id
2047
2065
  );
2048
- Z && (Z.focus(), Z.setSelectionRange(8, 8));
2066
+ W && (W.focus(), W.setSelectionRange(8, 8));
2049
2067
  });
2050
- })) : /[Pp]/.test(te) && (t.value = `${t.value.slice(0, 6)}PM${t.value.slice(8)}`, j(() => {
2068
+ })) : /[Pp]/.test(Q) && (t.value = `${t.value.slice(0, 6)}PM${t.value.slice(8)}`, _(() => {
2051
2069
  requestAnimationFrame(() => {
2052
- const Z = document.getElementById(
2070
+ const W = document.getElementById(
2053
2071
  e.id
2054
2072
  );
2055
- Z && (Z.focus(), Z.setSelectionRange(8, 8));
2073
+ W && (W.focus(), W.setSelectionRange(8, 8));
2056
2074
  });
2057
2075
  }));
2058
2076
  }
2059
2077
  } catch {
2060
2078
  }
2061
- W(i);
2062
- }, E = (r) => {
2063
- n.value = r.target.selectionStart ?? 0;
2064
- }, F = (r, i, P) => {
2065
- const N = i?.selectionStart ?? n.value ?? 0;
2066
- n.value = N;
2067
- const H = R(N), te = (t.value ?? "").match(/^(\d{2}):(\d{2})\s([AP]M)$/i);
2068
- if (!te) {
2069
- if ((t.value ?? "").length === 0 || K.value.length === 0) {
2070
- const m = /* @__PURE__ */ new Date(), T = m.getHours(), z = T >= 12 ? "PM" : "AM";
2071
- t.value = I(T, m.getMinutes(), z);
2072
- const ae = q(t.value);
2073
- w(ae, P), j(() => {
2079
+ H(u);
2080
+ }, D = (n) => {
2081
+ r.value = n.target.selectionStart ?? 0;
2082
+ }, P = (n, u, T) => {
2083
+ const K = u?.selectionStart ?? r.value ?? 0;
2084
+ r.value = K;
2085
+ const z = R(K), Q = (t.value ?? "").match(/^(\d{2}):(\d{2})\s([AP]M)$/i);
2086
+ if (!Q) {
2087
+ if ((t.value ?? "").length === 0 || V.value.length === 0) {
2088
+ const g = /* @__PURE__ */ new Date(), F = g.getHours(), B = F >= 12 ? "PM" : "AM";
2089
+ t.value = I(F, g.getMinutes(), B);
2090
+ const ae = N(t.value);
2091
+ k(ae, T), _(() => {
2074
2092
  requestAnimationFrame(() => {
2075
2093
  const oe = document.getElementById(
2076
2094
  e.id
2077
- ), fe = n.value ?? 0;
2095
+ ), fe = r.value ?? 0;
2078
2096
  oe && (oe.focus(), oe.setSelectionRange(fe, fe));
2079
2097
  });
2080
2098
  });
2081
2099
  }
2082
2100
  return;
2083
2101
  }
2084
- let Z = parseInt(te[1]), G = parseInt(te[2]), ce = te[3].toUpperCase();
2085
- if (H === "hh")
2086
- r === "ArrowUp" ? Z = Z < 12 ? Z + 1 : 1 : Z = Z > 1 ? Z - 1 : 12;
2087
- else if (H === "mm") {
2088
- const m = e.minuteStepRef?.value ?? e.minuteStep ?? 1;
2089
- if (m === 1)
2090
- r === "ArrowUp" ? G = G < 59 ? G + 1 : 0 : G = G > 0 ? G - 1 : 59;
2091
- else if (r === "ArrowUp") {
2092
- const T = G % m;
2093
- let z = T === 0 ? G + m : G + (m - T);
2094
- z >= 60 && (z = 0), G = z;
2102
+ let W = parseInt(Q[1]), G = parseInt(Q[2]), ce = Q[3].toUpperCase();
2103
+ if (z === "hh")
2104
+ n === "ArrowUp" ? W = W < 12 ? W + 1 : 1 : W = W > 1 ? W - 1 : 12;
2105
+ else if (z === "mm") {
2106
+ const g = e.minuteStepRef?.value ?? e.minuteStep ?? 1;
2107
+ if (g === 1)
2108
+ n === "ArrowUp" ? G = G < 59 ? G + 1 : 0 : G = G > 0 ? G - 1 : 59;
2109
+ else if (n === "ArrowUp") {
2110
+ const F = G % g;
2111
+ let B = F === 0 ? G + g : G + (g - F);
2112
+ B >= 60 && (B = 0), G = B;
2095
2113
  } else {
2096
- const T = G % m;
2097
- let z = T === 0 ? G - m : G - T;
2098
- z < 0 && (z = 60 - m), G = z;
2114
+ const F = G % g;
2115
+ let B = F === 0 ? G - g : G - F;
2116
+ B < 0 && (B = 60 - g), G = B;
2099
2117
  }
2100
- } else H === "ampm" && (ce = ce === "AM" ? "PM" : "AM");
2101
- t.value = `${String(Z).padStart(2, "0")}:${String(G).padStart(
2118
+ } else z === "ampm" && (ce = ce === "AM" ? "PM" : "AM");
2119
+ t.value = `${String(W).padStart(2, "0")}:${String(G).padStart(
2102
2120
  2,
2103
2121
  "0"
2104
2122
  )} ${ce}`;
2105
- const l = q(t.value);
2106
- w(l, P), j(() => {
2123
+ const l = N(t.value);
2124
+ k(l, T), _(() => {
2107
2125
  requestAnimationFrame(() => {
2108
- const m = document.getElementById(
2126
+ const g = document.getElementById(
2109
2127
  e.id
2110
- ), T = n.value ?? 0;
2111
- m && (m.focus(), m.setSelectionRange(T, T));
2128
+ ), F = r.value ?? 0;
2129
+ g && (g.focus(), g.setSelectionRange(F, F));
2112
2130
  });
2113
2131
  });
2114
- }, U = (r) => {
2115
- if (r.code === "Space" || r.key === " ") {
2116
- r.preventDefault(), r.stopPropagation(), e.onShowPicker(r);
2132
+ }, U = (n) => {
2133
+ if (n.code === "Space" || n.key === " ") {
2134
+ n.preventDefault(), n.stopPropagation(), e.onShowPicker(n);
2117
2135
  return;
2118
2136
  }
2119
- if (r.key === "ArrowDown" && r.altKey) {
2120
- r.preventDefault(), r.stopPropagation(), e.onShowPicker(r);
2137
+ if (n.key === "ArrowDown" && n.altKey) {
2138
+ n.preventDefault(), n.stopPropagation(), e.onShowPicker(n);
2121
2139
  return;
2122
2140
  }
2123
- if (D.includes(r.key)) {
2124
- if (r.altKey) return;
2125
- r.preventDefault(), r.stopPropagation();
2126
- const i = r.target;
2127
- F(r.key, i, r);
2141
+ if (S.includes(n.key)) {
2142
+ if (n.altKey) return;
2143
+ n.preventDefault(), n.stopPropagation();
2144
+ const u = n.target;
2145
+ P(n.key, u, n);
2128
2146
  return;
2129
2147
  }
2130
- }, _ = (r) => {
2131
- r.preventDefault();
2132
- const i = r.deltaY < 0 ? "ArrowUp" : "ArrowDown";
2133
- F(i, r.target, r);
2134
- }, re = (r) => {
2135
- const i = r.target;
2136
- if (O.includes(r.key)) {
2137
- n.value = i?.selectionStart ?? 0;
2148
+ }, j = (n) => {
2149
+ n.preventDefault();
2150
+ const u = n.deltaY < 0 ? "ArrowUp" : "ArrowDown";
2151
+ P(u, n.target, n);
2152
+ }, re = (n) => {
2153
+ const u = n.target;
2154
+ if ($.includes(n.key)) {
2155
+ r.value = u?.selectionStart ?? 0;
2138
2156
  return;
2139
2157
  }
2140
- if (D.includes(r.key)) {
2141
- if (r.altKey) return;
2142
- n.value = i?.selectionStart ?? 0;
2158
+ if (S.includes(n.key)) {
2159
+ if (n.altKey) return;
2160
+ r.value = u?.selectionStart ?? 0;
2143
2161
  }
2144
- }, ue = (r) => {
2145
- b.value = !0, d.value && e.externalValue && e.externalValue.value === void 0 && K.value.length === 0 && (e.externalValue.value = "");
2146
- const i = r.target;
2147
- i && (n.value = i.selectionStart ?? 0);
2162
+ }, ue = (n) => {
2163
+ w.value = !0, d.value && e.externalValue && e.externalValue.value === void 0 && V.value.length === 0 && (e.externalValue.value = "");
2164
+ const u = n.target;
2165
+ u && (r.value = u.selectionStart ?? 0);
2148
2166
  };
2149
2167
  e.externalValue && le(
2150
2168
  e.externalValue,
2151
- (r) => {
2152
- if (r) {
2153
- const i = new Date(r);
2154
- if (i.toString() !== "Invalid Date") {
2155
- const P = i.getHours(), N = P >= 12 ? "PM" : "AM";
2156
- t.value = I(P, i.getMinutes(), N);
2169
+ (n) => {
2170
+ if (n) {
2171
+ const u = new Date(n);
2172
+ if (u.toString() !== "Invalid Date") {
2173
+ const T = u.getHours(), K = T >= 12 ? "PM" : "AM";
2174
+ t.value = I(T, u.getMinutes(), K);
2157
2175
  return;
2158
2176
  }
2159
2177
  }
@@ -2162,15 +2180,15 @@ function Ct(e) {
2162
2180
  );
2163
2181
  const o = y(() => [
2164
2182
  ["Time", t.value || "--:-- --"],
2165
- ["Hour (12h)", k.value],
2166
- ["Hour (24h)", f.value],
2167
- ["Minute", x.value],
2168
- ["Period", $.value],
2169
- ["Time (24h)", u.value ?? "--:--:--"],
2170
- ["Digits only", K.value],
2183
+ ["Hour (12h)", E.value],
2184
+ ["Hour (24h)", p.value],
2185
+ ["Minute", A.value],
2186
+ ["Period", O.value],
2187
+ ["Time (24h)", i.value ?? "--:--:--"],
2188
+ ["Digits only", V.value],
2171
2189
  [
2172
2190
  "Parsed Date",
2173
- S.value?.toLocaleDateString("en-US", {
2191
+ b.value?.toLocaleDateString("en-US", {
2174
2192
  hour: "2-digit",
2175
2193
  minute: "2-digit"
2176
2194
  }) ?? null
@@ -2189,117 +2207,117 @@ function Ct(e) {
2189
2207
  minute: "2-digit"
2190
2208
  }) ?? null
2191
2209
  ],
2192
- ["valid", s.value],
2193
- ["reason", h.value],
2194
- ["validationMessage", L.value]
2195
- ]), S = y(
2196
- () => q(t.value) ?? null
2197
- ), s = y(() => {
2210
+ ["valid", q.value],
2211
+ ["reason", f.value],
2212
+ ["validationMessage", h.value]
2213
+ ]), b = y(
2214
+ () => N(t.value) ?? null
2215
+ ), q = y(() => {
2198
2216
  if (!d.value) {
2199
2217
  if (!v.value) return !0;
2200
- const i = S.value;
2201
- return i ? Y(i) : !1;
2218
+ const u = b.value;
2219
+ return u ? Z(u) : !1;
2202
2220
  }
2203
- if (!b.value) return !0;
2204
- const r = S.value;
2205
- return !v.value || !r ? !1 : Y(r);
2206
- }), h = y(() => {
2221
+ if (!w.value) return !0;
2222
+ const n = b.value;
2223
+ return !v.value || !n ? !1 : Z(n);
2224
+ }), f = y(() => {
2207
2225
  if (!d.value) {
2208
2226
  if (!v.value) return;
2209
- const i = S.value;
2210
- return i ? Y(i) ? "valid" : "out-of-bounds" : "invalid-time";
2227
+ const u = b.value;
2228
+ return u ? Z(u) ? "valid" : "out-of-bounds" : "invalid-time";
2211
2229
  }
2212
- if (!b.value) return;
2213
- if (K.value.length === 0 || !v.value)
2230
+ if (!w.value) return;
2231
+ if (V.value.length === 0 || !v.value)
2214
2232
  return "incomplete";
2215
- const r = S.value;
2216
- return r ? Y(r) ? "valid" : "out-of-bounds" : "invalid-time";
2217
- }), L = y(() => {
2218
- const r = h.value;
2219
- if (!r || r === "valid") return "";
2220
- if (r === "incomplete")
2233
+ const n = b.value;
2234
+ return n ? Z(n) ? "valid" : "out-of-bounds" : "invalid-time";
2235
+ }), h = y(() => {
2236
+ const n = f.value;
2237
+ if (!n || n === "valid") return "";
2238
+ if (n === "incomplete")
2221
2239
  return "Required";
2222
- if (r === "invalid-time")
2240
+ if (n === "invalid-time")
2223
2241
  return `Must be in ${a.value} format.`;
2224
- const i = {
2242
+ const u = {
2225
2243
  hour: "2-digit",
2226
2244
  minute: "2-digit"
2227
- }, P = e.min ? e.min.toLocaleTimeString("en-US", i) : null, N = e.max ? e.max.toLocaleTimeString("en-US", i) : null;
2228
- if (r === "out-of-bounds") {
2229
- if (P && N) return `Must be between ${P} and ${N}.`;
2230
- if (P) return `Must be ${P} or later.`;
2231
- if (N) return `Must be ${N} or earlier.`;
2245
+ }, T = e.min ? e.min.toLocaleTimeString("en-US", u) : null, K = e.max ? e.max.toLocaleTimeString("en-US", u) : null;
2246
+ if (n === "out-of-bounds") {
2247
+ if (T && K) return `Must be between ${T} and ${K}.`;
2248
+ if (T) return `Must be ${T} or later.`;
2249
+ if (K) return `Must be ${K} or earlier.`;
2232
2250
  }
2233
2251
  return "";
2234
- }), V = () => {
2235
- j(() => {
2236
- const r = document.getElementById(e.id);
2237
- if (!r) {
2252
+ }), L = () => {
2253
+ _(() => {
2254
+ const n = document.getElementById(e.id);
2255
+ if (!n) {
2238
2256
  console.warn(`#${e.id} not found for styling.`);
2239
2257
  return;
2240
2258
  }
2241
- const i = r.closest(".k-timepicker");
2242
- if (!i) {
2259
+ const u = n.closest(".k-timepicker");
2260
+ if (!u) {
2243
2261
  console.warn(
2244
2262
  `.k-timepicker parent of #${e.id} not found for styling.`
2245
2263
  );
2246
2264
  return;
2247
2265
  }
2248
- const P = i.parentElement;
2249
- if (!P) {
2266
+ const T = u.parentElement;
2267
+ if (!T) {
2250
2268
  console.warn(
2251
2269
  `Parent of .k-timepicker not found for #${e.id} styling.`
2252
2270
  );
2253
2271
  return;
2254
2272
  }
2255
- P.classList.contains("fk-timepicker") || P.classList.add("fk-timepicker");
2273
+ T.classList.contains("fk-timepicker") || T.classList.add("fk-timepicker");
2256
2274
  });
2257
2275
  };
2258
2276
  return Re(() => {
2259
- V();
2277
+ L();
2260
2278
  }), {
2261
2279
  raw: t,
2262
2280
  rules: M,
2263
- debugEnabled: p,
2281
+ debugEnabled: c,
2264
2282
  debugLines: o,
2265
2283
  placeholder: a,
2266
- isValid: s,
2267
- reason: ee(h),
2268
- validationMessage: L,
2284
+ isValid: q,
2285
+ reason: te(f),
2286
+ validationMessage: h,
2269
2287
  isComplete: v,
2270
- inRangeTime: Y,
2271
- cursorPos: n,
2272
- hour: ee(k),
2273
- hour24: ee(f),
2274
- minute: ee(x),
2275
- period: ee($),
2276
- time24: ee(u),
2277
- parsedRawTime: ee(S),
2288
+ inRangeTime: Z,
2289
+ cursorPos: r,
2290
+ hour: te(E),
2291
+ hour24: te(p),
2292
+ minute: te(A),
2293
+ period: te(O),
2294
+ time24: te(i),
2295
+ parsedRawTime: te(b),
2278
2296
  handleChange: C,
2279
2297
  handleKeyDown: U,
2280
2298
  handleKeyUp: re,
2281
- handleClick: E,
2282
- handleWheel: _,
2299
+ handleClick: D,
2300
+ handleWheel: j,
2283
2301
  handleBlur: ue,
2284
2302
  // Expose so consumers can reapply theming when Kendo updates DOM
2285
- initStyling: V
2303
+ initStyling: L
2286
2304
  };
2287
2305
  }
2288
- const Tt = {
2306
+ const Rt = {
2289
2307
  returnFocusToTrigger: !1,
2290
2308
  focusTrapOptions: {
2291
2309
  returnFocusOnDeactivate: !1
2292
2310
  }
2293
2311
  };
2294
- function Rt(e) {
2295
- const t = ye(null), n = [
2312
+ function Ft(e) {
2313
+ const t = ye(null), r = [
2296
2314
  ".k-animation-container .k-popup",
2297
2315
  ".k-popup",
2298
2316
  ".k-timepicker-popup",
2299
2317
  ".k-menu-popup"
2300
- ], p = Array.isArray(e.popupSelector) ? e.popupSelector : [e.popupSelector ?? n].flat(), a = (M) => M ? typeof e.initialFocus == "string" ? M.querySelector(e.initialFocus) ?? M : typeof e.initialFocus == "function" ? e.initialFocus(M) ?? M : M.querySelector(
2318
+ ], c = Array.isArray(e.popupSelector) ? e.popupSelector : [e.popupSelector ?? r].flat(), a = (M) => M ? typeof e.initialFocus == "string" ? M.querySelector(e.initialFocus) ?? M : typeof e.initialFocus == "function" ? e.initialFocus(M) ?? M : M.querySelector(
2301
2319
  'button, [href], input, select, textarea, [tabindex]:not([tabindex="-1"])'
2302
- ) ?? M : null, { activate: d, deactivate: b } = Ye(t, {
2320
+ ) ?? M : null, { activate: d, deactivate: w } = He(t, {
2303
2321
  escapeDeactivates: !1,
2304
2322
  clickOutsideDeactivates: !1,
2305
2323
  // Without this, focus-trap's own default (false) preventDefault()s and
@@ -2311,57 +2329,57 @@ function Rt(e) {
2311
2329
  initialFocus: () => a(t.value),
2312
2330
  ...e.focusTrapOptions ?? {}
2313
2331
  });
2314
- let D = null, O = X(null);
2315
- const K = () => {
2332
+ let S = null, $ = Y(null);
2333
+ const V = () => {
2316
2334
  if (e.resolvePopupEl) return e.resolvePopupEl();
2317
- const M = (k, x) => {
2318
- const $ = Array.from(k.querySelectorAll(x));
2319
- if (!$.length) return null;
2320
- const f = $.filter(
2321
- (u) => u.offsetParent !== null || u.getClientRects().length > 0
2335
+ const M = (E, A) => {
2336
+ const O = Array.from(E.querySelectorAll(A));
2337
+ if (!O.length) return null;
2338
+ const p = O.filter(
2339
+ (i) => i.offsetParent !== null || i.getClientRects().length > 0
2322
2340
  );
2323
- return f[f.length - 1] ?? $[$.length - 1] ?? null;
2341
+ return p[p.length - 1] ?? O[O.length - 1] ?? null;
2324
2342
  }, R = e.triggerEl?.value?.closest?.(".k-animation-container") ?? document.body;
2325
- for (const k of p) {
2326
- const x = M(R, k);
2327
- if (x) return x;
2343
+ for (const E of c) {
2344
+ const A = M(R, E);
2345
+ if (A) return A;
2328
2346
  }
2329
- for (const k of p) {
2330
- const x = M(document, k);
2331
- if (x) return x;
2347
+ for (const E of c) {
2348
+ const A = M(document, E);
2349
+ if (A) return A;
2332
2350
  }
2333
2351
  return null;
2334
2352
  };
2335
- return Ne(t, (M) => {
2336
- O.value = "outside", e.isOpen.value && e.onRequestClose?.("outside", M);
2353
+ return qe(t, (M) => {
2354
+ $.value = "outside", e.isOpen.value && e.onRequestClose?.("outside", M);
2337
2355
  }), le(
2338
2356
  () => e.isOpen.value,
2339
2357
  (M) => {
2340
- M ? (O.value = null, j(() => {
2341
- const R = K();
2358
+ M ? ($.value = null, _(() => {
2359
+ const R = V();
2342
2360
  R && (R.tabIndex < 0 && (R.tabIndex = -1), t.value = R, setTimeout(() => {
2343
2361
  try {
2344
2362
  d();
2345
- } catch (k) {
2363
+ } catch (E) {
2346
2364
  console.warn(
2347
2365
  "usePopupTrap: focus trap failed to activate",
2348
- k
2366
+ E
2349
2367
  );
2350
2368
  }
2351
- }, 0), D || (D = (k) => {
2352
- k.key === "Escape" && (O.value = "escape", e.isOpen.value && e.onRequestClose?.("escape", k));
2353
- }, document.addEventListener("keydown", D, !0)));
2354
- })) : (b(), D && (document.removeEventListener("keydown", D, !0), D = null), t.value = null, O.value === "outside" && j(() => {
2369
+ }, 0), S || (S = (E) => {
2370
+ E.key === "Escape" && ($.value = "escape", e.isOpen.value && e.onRequestClose?.("escape", E));
2371
+ }, document.addEventListener("keydown", S, !0)));
2372
+ })) : (w(), S && (document.removeEventListener("keydown", S, !0), S = null), t.value = null, $.value === "outside" && _(() => {
2355
2373
  const R = () => {
2356
- const k = e.triggerEl?.value, x = k?.querySelector("input"), $ = document.activeElement;
2357
- $ && ($ === x || k && k.contains($)) && (x ?? k)?.blur?.();
2374
+ const E = e.triggerEl?.value, A = E?.querySelector("input"), O = document.activeElement;
2375
+ O && (O === A || E && E.contains(O)) && (A ?? E)?.blur?.();
2358
2376
  };
2359
2377
  requestAnimationFrame(() => setTimeout(R, 0));
2360
- }), e.returnFocusToTrigger !== !1 && O.value === "escape" && e.triggerEl?.value && j(() => {
2378
+ }), e.returnFocusToTrigger !== !1 && $.value === "escape" && e.triggerEl?.value && _(() => {
2361
2379
  const R = () => {
2362
- const k = e.triggerEl?.value;
2363
- if (!k) return;
2364
- (k.querySelector("input") ?? k)?.focus?.();
2380
+ const E = e.triggerEl?.value;
2381
+ if (!E) return;
2382
+ (E.querySelector("input") ?? E)?.focus?.();
2365
2383
  };
2366
2384
  requestAnimationFrame(() => setTimeout(R, 0));
2367
2385
  }));
@@ -2369,29 +2387,29 @@ function Rt(e) {
2369
2387
  ), {
2370
2388
  popupRef: t,
2371
2389
  activate: d,
2372
- deactivate: b,
2373
- lastCloseReason: ee(O),
2390
+ deactivate: w,
2391
+ lastCloseReason: te($),
2374
2392
  setPopupEl: (M) => t.value = M
2375
2393
  };
2376
2394
  }
2377
2395
  export {
2378
- Tt as POPUP_MENU_TRAP_OPTIONS,
2379
- lt as computeFlippedOffset,
2380
- xt as useActiveIdRegistry,
2381
- At as useCompositeId,
2382
- Et as useExclusiveGroup,
2383
- Je as useFieldsetTouchTracker,
2384
- Qe as useFieldsetValidationKit,
2385
- bt as useGridA11y,
2386
- wt as useGridActiveFilter,
2387
- St as useGridRowAction,
2388
- dt as useIntersectionObserver,
2389
- Mt as useMaskedDateInput,
2390
- It as useMaskedDateRangeInput,
2391
- Ct as useMaskedTimeInput,
2392
- Dt as usePopupMenu,
2393
- Rt as usePopupTrap,
2394
- kt as useUSAddress,
2395
- Ge as useZipTextBox
2396
+ Rt as POPUP_MENU_TRAP_OPTIONS,
2397
+ it as computeCollisionOffset,
2398
+ Mt as useActiveIdRegistry,
2399
+ Dt as useCompositeId,
2400
+ xt as useExclusiveGroup,
2401
+ Qe as useFieldsetTouchTracker,
2402
+ et as useFieldsetValidationKit,
2403
+ wt as useGridA11y,
2404
+ St as useGridActiveFilter,
2405
+ kt as useGridRowAction,
2406
+ ft as useIntersectionObserver,
2407
+ It as useMaskedDateInput,
2408
+ Ct as useMaskedDateRangeInput,
2409
+ Tt as useMaskedTimeInput,
2410
+ Et as usePopupMenu,
2411
+ Ft as usePopupTrap,
2412
+ At as useUSAddress,
2413
+ Je as useZipTextBox
2396
2414
  };
2397
2415
  //# sourceMappingURL=featherk-composables.es.js.map