@vc-shell/framework 1.1.62 → 1.1.64

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (115) hide show
  1. package/CHANGELOG.md +8 -0
  2. package/core/composables/useLanguages/index.ts +16 -73
  3. package/core/services/index.ts +1 -0
  4. package/core/services/language-service.ts +88 -0
  5. package/dist/core/composables/useLanguages/index.d.ts +4 -15
  6. package/dist/core/composables/useLanguages/index.d.ts.map +1 -1
  7. package/dist/core/services/index.d.ts +1 -0
  8. package/dist/core/services/index.d.ts.map +1 -1
  9. package/dist/core/services/language-service.d.ts +15 -0
  10. package/dist/core/services/language-service.d.ts.map +1 -0
  11. package/dist/framework.js +6038 -6021
  12. package/dist/index.d.ts.map +1 -1
  13. package/dist/injection-keys.d.ts +2 -1
  14. package/dist/injection-keys.d.ts.map +1 -1
  15. package/dist/shared/components/language-selector/language-selector.vue.d.ts.map +1 -1
  16. package/dist/tsconfig.tsbuildinfo +1 -1
  17. package/dist/vendor-boolbase-A_-Pp38P.js +23 -0
  18. package/dist/{vendor-cheerio-CleDsuQZ.js → vendor-cheerio-C46iBpCu.js} +10 -10
  19. package/dist/{vendor-cheerio-select-CVkYl3Z-.js → vendor-cheerio-select-C8emRZsx.js} +5 -5
  20. package/dist/vendor-core-js-DFA7rceR.js +1206 -0
  21. package/dist/{vendor-css-select-CtIzVIiG.js → vendor-css-select-DR9bp36p.js} +3 -3
  22. package/dist/{vendor-dom-serializer-CugO0RdN.js → vendor-dom-serializer-Sk3xHhQk.js} +1 -1
  23. package/dist/{vendor-domutils-D3Y2YQFR.js → vendor-domutils-BiVCXO8c.js} +2 -2
  24. package/dist/{vendor-entities-v26HW8wW.js → vendor-entities-CCReaWqU.js} +35 -34
  25. package/dist/{vendor-floating-ui-core-C9uEvi1M.js → vendor-floating-ui-core-DpX2jufl.js} +10 -10
  26. package/dist/{vendor-floating-ui-dom-CZkYGmv4.js → vendor-floating-ui-dom-C4AKN5Mo.js} +8 -8
  27. package/dist/{vendor-floating-ui-utils-Bx3BTd6_.js → vendor-floating-ui-utils-CRaCuFxS.js} +29 -29
  28. package/dist/{vendor-floating-ui-vue-CLOiVYP7.js → vendor-floating-ui-vue-OwtolkBv.js} +12 -12
  29. package/dist/{vendor-htmlparser2-CXL_uhMI.js → vendor-htmlparser2-CpQu33io.js} +1 -1
  30. package/dist/{vendor-intlify-core-base-FyGSkd6r.js → vendor-intlify-core-base-txnziOTW.js} +9 -9
  31. package/dist/{vendor-intlify-message-compiler-D_vL9-DK.js → vendor-intlify-message-compiler-XquMv3aB.js} +5 -3
  32. package/dist/{vendor-intlify-shared-BMbzEQSk.js → vendor-intlify-shared-CE1Dfvjf.js} +11 -11
  33. package/dist/{vendor-iso-639-1-dVGfSUIM.js → vendor-iso-639-1-BJO6WZAt.js} +3 -3
  34. package/dist/{vendor-markdown-it-4AJoRTAg.js → vendor-markdown-it-RJo-N9ov.js} +1 -1
  35. package/dist/{vendor-markdown-it-task-lists-Byg1-ms9.js → vendor-markdown-it-task-lists-BxLwscWK.js} +2 -2
  36. package/dist/{vendor-microsoft-applicationinsights-analytics-js-DA-ctcAL.js → vendor-microsoft-applicationinsights-analytics-js-CauId95v.js} +5 -5
  37. package/dist/{vendor-microsoft-applicationinsights-cfgsync-js-COfRj-2q.js → vendor-microsoft-applicationinsights-cfgsync-js-DGfB75It.js} +3 -3
  38. package/dist/{vendor-microsoft-applicationinsights-channel-js-MTPYhH-I.js → vendor-microsoft-applicationinsights-channel-js-B4PYlGv8.js} +11 -11
  39. package/dist/{vendor-microsoft-applicationinsights-common-CDVnJ6MR.js → vendor-microsoft-applicationinsights-common-Bj6sQeoz.js} +7 -7
  40. package/dist/{vendor-microsoft-applicationinsights-core-js-D7Aicf8S.js → vendor-microsoft-applicationinsights-core-js-Cga21Mpw.js} +13 -13
  41. package/dist/{vendor-microsoft-applicationinsights-dependencies-js-CvQWWraU.js → vendor-microsoft-applicationinsights-dependencies-js-CH87Sln6.js} +68 -68
  42. package/dist/{vendor-microsoft-applicationinsights-properties-js-C0Iv1cZE.js → vendor-microsoft-applicationinsights-properties-js-CLE2OEt_.js} +5 -5
  43. package/dist/{vendor-microsoft-applicationinsights-web-BRuQAzjU.js → vendor-microsoft-applicationinsights-web-8IaeIl22.js} +8 -8
  44. package/dist/{vendor-nevware21-ts-async-FAyg3c9V.js → vendor-nevware21-ts-async-DadHEt7N.js} +3 -3
  45. package/dist/{vendor-nth-check-BE7AeBMg.js → vendor-nth-check-CS1D-zr5.js} +1 -1
  46. package/dist/{vendor-parse5-htmlparser2-tree-adapter-CNubfdOP.js → vendor-parse5-htmlparser2-tree-adapter-BWywtwol.js} +9 -9
  47. package/dist/{vendor-parse5-DqztJOGh.js → vendor-parse5-zq5Hn0y9.js} +3 -1
  48. package/dist/{vendor-prettier-D8C9GG-0.js → vendor-prettier-DaiSFsWE.js} +1184 -1167
  49. package/dist/vendor-prosemirror-commands-B8fhFbTo.js +385 -0
  50. package/dist/{vendor-prosemirror-dropcursor-CwZhBUcZ.js → vendor-prosemirror-dropcursor-CdHQ9kQG.js} +2 -2
  51. package/dist/{vendor-prosemirror-gapcursor-COcwb4TJ.js → vendor-prosemirror-gapcursor-W-ky5QTm.js} +4 -4
  52. package/dist/{vendor-prosemirror-history-DmPvdOpr.js → vendor-prosemirror-history-CrtTR5Cd.js} +2 -2
  53. package/dist/{vendor-prosemirror-keymap-CS1uIBpE.js → vendor-prosemirror-keymap-DWvoDWf6.js} +1 -1
  54. package/dist/{vendor-prosemirror-markdown-sO1Pn6SW.js → vendor-prosemirror-markdown-CuzWQ2N6.js} +2 -2
  55. package/dist/{vendor-prosemirror-model-DwojkhDQ.js → vendor-prosemirror-model-CVTn1Stc.js} +2 -2
  56. package/dist/{vendor-prosemirror-schema-list-rrOzMlj0.js → vendor-prosemirror-schema-list-Ds6x_KLX.js} +2 -2
  57. package/dist/{vendor-prosemirror-state-BN86J-Ko.js → vendor-prosemirror-state-CRUasa1V.js} +2 -2
  58. package/dist/{vendor-prosemirror-tables-C7XMqyon.js → vendor-prosemirror-tables-DzTfCeHX.js} +5 -5
  59. package/dist/{vendor-prosemirror-transform-B0c_LAV_.js → vendor-prosemirror-transform-BeDaI3CS.js} +1 -1
  60. package/dist/{vendor-prosemirror-view-DyWzmy4t.js → vendor-prosemirror-view-BGYdOWiJ.js} +76 -74
  61. package/dist/{vendor-semver-BoKYtkQw.js → vendor-semver-FuwqpOls.js} +435 -435
  62. package/dist/vendor-tanstack-vue-virtual-CD9yLWd7.js +1 -0
  63. package/dist/{vendor-tippy-js-BGdgwGX-.js → vendor-tippy-js-nNhcw_JH.js} +15 -15
  64. package/dist/{vendor-tiptap-core-BgwY40dr.js → vendor-tiptap-core-dlTW4S11.js} +76 -65
  65. package/dist/{vendor-tiptap-extension-blockquote-BVW0VVC0.js → vendor-tiptap-extension-blockquote-iAIM-meW.js} +1 -1
  66. package/dist/{vendor-tiptap-extension-bold-xhi5xxPT.js → vendor-tiptap-extension-bold-bkOLNH6E.js} +1 -1
  67. package/dist/{vendor-tiptap-extension-bubble-menu-DhWtcCL3.js → vendor-tiptap-extension-bubble-menu-BRWVLpun.js} +6 -6
  68. package/dist/{vendor-tiptap-extension-bullet-list-Ba21suMY.js → vendor-tiptap-extension-bullet-list-DfU428XB.js} +1 -1
  69. package/dist/{vendor-tiptap-extension-code-DFTxp7wE.js → vendor-tiptap-extension-code-CgIql8q6.js} +1 -1
  70. package/dist/{vendor-tiptap-extension-code-block-B2KK5g8S.js → vendor-tiptap-extension-code-block-V26-erQk.js} +2 -2
  71. package/dist/{vendor-tiptap-extension-document-CW8jybcc.js → vendor-tiptap-extension-document-BYF_BzDD.js} +1 -1
  72. package/dist/{vendor-tiptap-extension-dropcursor-DdRuETKJ.js → vendor-tiptap-extension-dropcursor-DqjaaFex.js} +2 -2
  73. package/dist/{vendor-tiptap-extension-floating-menu-Da7fpnr7.js → vendor-tiptap-extension-floating-menu-vptdm_Y0.js} +6 -6
  74. package/dist/{vendor-tiptap-extension-gapcursor-CafmhWSf.js → vendor-tiptap-extension-gapcursor-DxLBw8V0.js} +2 -2
  75. package/dist/{vendor-tiptap-extension-hard-break-n9aI6ybJ.js → vendor-tiptap-extension-hard-break-DygHhzqw.js} +1 -1
  76. package/dist/{vendor-tiptap-extension-heading-xj24usOy.js → vendor-tiptap-extension-heading-C-ArDc3_.js} +1 -1
  77. package/dist/{vendor-tiptap-extension-history-C2uOLua2.js → vendor-tiptap-extension-history-C41RW3Bv.js} +2 -2
  78. package/dist/{vendor-tiptap-extension-horizontal-rule--uXIYeaK.js → vendor-tiptap-extension-horizontal-rule-BGMGd9fo.js} +2 -2
  79. package/dist/{vendor-tiptap-extension-image-BJx5lyoG.js → vendor-tiptap-extension-image-DChcWb4v.js} +1 -1
  80. package/dist/{vendor-tiptap-extension-italic-DPAViC4y.js → vendor-tiptap-extension-italic-BNJrFvrR.js} +1 -1
  81. package/dist/{vendor-tiptap-extension-link-aDGmrWTi.js → vendor-tiptap-extension-link-DFN4ENph.js} +2 -2
  82. package/dist/{vendor-tiptap-extension-list-item-DE9dJ64Q.js → vendor-tiptap-extension-list-item-3qKYhGHe.js} +1 -1
  83. package/dist/{vendor-tiptap-extension-ordered-list-CcNtDDJm.js → vendor-tiptap-extension-ordered-list-D3QL0eiW.js} +1 -1
  84. package/dist/{vendor-tiptap-extension-paragraph-DvlrAzIW.js → vendor-tiptap-extension-paragraph-DZfkaJJ-.js} +1 -1
  85. package/dist/{vendor-tiptap-extension-placeholder-DyW7px66.js → vendor-tiptap-extension-placeholder-CoOAmd0a.js} +7 -7
  86. package/dist/{vendor-tiptap-extension-strike-DMMLEFkd.js → vendor-tiptap-extension-strike-BlGNozxy.js} +1 -1
  87. package/dist/{vendor-tiptap-extension-table-BpegTABL.js → vendor-tiptap-extension-table-CZn6Xykb.js} +16 -16
  88. package/dist/{vendor-tiptap-extension-table-cell-8rHRq4BW.js → vendor-tiptap-extension-table-cell-BQuS-XFD.js} +1 -1
  89. package/dist/{vendor-tiptap-extension-table-header-DZ1y7iS2.js → vendor-tiptap-extension-table-header-ZrtK7HiQ.js} +1 -1
  90. package/dist/{vendor-tiptap-extension-table-row-DmkNUw4L.js → vendor-tiptap-extension-table-row-CBrXvqsO.js} +1 -1
  91. package/dist/{vendor-tiptap-extension-text-Cwas3TQT.js → vendor-tiptap-extension-text-DwA7jrBq.js} +1 -1
  92. package/dist/{vendor-tiptap-extension-underline-Hz5uJRfR.js → vendor-tiptap-extension-underline-CIVtuRLl.js} +1 -1
  93. package/dist/{vendor-tiptap-markdown-Dj1XZWg4.js → vendor-tiptap-markdown-CidDIpZ-.js} +12 -11
  94. package/dist/vendor-tiptap-pm-9TOy65Oe.js +1 -0
  95. package/dist/{vendor-tiptap-starter-kit-Cxj07T7v.js → vendor-tiptap-starter-kit-BdU6UtqB.js} +19 -19
  96. package/dist/{vendor-tiptap-vue-3-DF4kzEFI.js → vendor-tiptap-vue-3-CnYccgV4.js} +3 -3
  97. package/dist/{vendor-truncate-html-Bx1HJzRq.js → vendor-truncate-html-DYC0Lj9o.js} +1 -1
  98. package/dist/{vendor-vee-validate-rules-DDeNM2Gc.js → vendor-vee-validate-rules-4oWUZPpG.js} +4 -2
  99. package/dist/{vendor-vue-currency-input-DxWnS-HB.js → vendor-vue-currency-input-BqaYAdhD.js} +88 -86
  100. package/dist/vendor-vue-demi-CD9yLWd7.js +1 -0
  101. package/dist/{vendor-vue-i18n-DC6m6S7G.js → vendor-vue-i18n-BeXi5L3e.js} +423 -412
  102. package/dist/{vendor-vue3-application-insights-dAGGfA_M.js → vendor-vue3-application-insights-C8xbxXXX.js} +2 -2
  103. package/dist/{vendor-vuepic-vue-datepicker-_JffV5We.js → vendor-vuepic-vue-datepicker-DkHsqyoL.js} +257 -257
  104. package/dist/vendor-vueuse-components-B0zqjNRW.js +542 -0
  105. package/dist/{vendor-vueuse-core-cB-c7DzH.js → vendor-vueuse-core-CYgwn-B2.js} +31 -30
  106. package/dist/{vendor-vueuse-shared-Dg7PMM0z.js → vendor-vueuse-shared-B_uDJJ6V.js} +33 -33
  107. package/package.json +5 -5
  108. package/shared/components/language-selector/language-selector.vue +16 -8
  109. package/dist/vendor-boolbase-Bgn9I6iN.js +0 -21
  110. package/dist/vendor-core-js-l0sNRNKZ.js +0 -1
  111. package/dist/vendor-prosemirror-commands-C6teL3Xo.js +0 -344
  112. package/dist/vendor-tanstack-vue-virtual-l0sNRNKZ.js +0 -1
  113. package/dist/vendor-tiptap-pm-l0sNRNKZ.js +0 -1
  114. package/dist/vendor-vue-demi-l0sNRNKZ.js +0 -1
  115. package/dist/vendor-vueuse-components-DtK_mxpP.js +0 -219
@@ -1,4 +1,4 @@
1
- import { defineComponent as Le, useSlots as Sa, ref as Z, toRef as za, onMounted as Ue, nextTick as Ze, onUnmounted as it, watch as la, computed as j, createElementBlock as F, openBlock as T, normalizeClass as we, createVNode as We, createBlock as Ae, mergeProps as Ye, unref as i, isRef as Jt, createSlots as Fe, renderList as $e, withCtx as _e, renderSlot as se, normalizeProps as Ve, guardReactiveProps as je, resolveDynamicComponent as st, Teleport as Fl, Transition as Va, createCommentVNode as Q, reactive as Qa, h as Ul, render as Wt, createElementVNode as ye, withModifiers as Ka, normalizeStyle as ta, Fragment as be, toDisplayString as He, useAttrs as zl, createTextVNode as ca, getCurrentScope as Kl, onScopeDispose as Xl, onBeforeUpdate as ql, withDirectives as lt, vShow as nt, withKeys as jl } from "vue";
1
+ import { defineComponent as Le, useSlots as Pa, ref as Z, toRef as za, onMounted as Ue, nextTick as Ze, onUnmounted as it, watch as la, computed as j, createElementBlock as F, openBlock as T, normalizeClass as we, createVNode as We, createBlock as Ae, mergeProps as Ye, unref as i, isRef as Jt, createSlots as Fe, renderList as $e, withCtx as _e, renderSlot as se, normalizeProps as Ve, guardReactiveProps as je, resolveDynamicComponent as st, Teleport as Fl, Transition as Va, createCommentVNode as Q, reactive as Qa, h as Ul, render as Wt, createElementVNode as ye, withModifiers as Ka, normalizeStyle as ta, Fragment as be, toDisplayString as He, useAttrs as zl, createTextVNode as ca, getCurrentScope as Kl, onScopeDispose as Xl, onBeforeUpdate as ql, withDirectives as lt, vShow as nt, withKeys as jl } from "vue";
2
2
  import { f as sa, g as fe, a as ke, b as Ra, c as _a, d as pa, s as De, i as Ba, e as Xa, h as Oa, j as Ql, k as cl, l as Gl, m as Jl, n as ia, o as rt, p as Lt, q as pl, r as Bt, t as ot, u as Zt, v as Wl, w as ml, x as Zl, y as el, z as fl, A as xa, B as en, C as yl, D as an, E as tn, F as hl, G as ln, H as al, I as qa, J as Da, K as nn, L as rn, M as on, N as un, O as gl, P as bl, Q as sn } from "./vendor-date-fns-CdFbeoHV.js";
3
3
  function La() {
4
4
  const e = zl();
@@ -330,7 +330,7 @@ const Yt = (e, a) => e?.querySelector(`[data-dp-element="${a}"]`), Al = (e, a) =
330
330
  }, ba = (e, a, r, t) => {
331
331
  let l = e ? U(e) : U();
332
332
  return (a || a === 0) && (l = an(l, +a)), (r || r === 0) && (l = tn(l, +r)), (t || t === 0) && (l = hl(l, +t)), yl(l, 0);
333
- }, Pe = (e, a) => !e || !a ? !1 : Xa(qe(e), qe(a)), Me = (e, a) => !e || !a ? !1 : Oa(qe(e), qe(a)), Oe = (e, a) => !e || !a ? !1 : Ba(qe(e), qe(a)), dt = (e, a, r) => e != null && e[0] && e != null && e[1] ? Oe(r, e[0]) && Pe(r, e[1]) : e != null && e[0] && a ? Oe(r, e[0]) && Pe(r, a) || Pe(r, e[0]) && Oe(r, a) : !1, ra = (e) => {
333
+ }, Se = (e, a) => !e || !a ? !1 : Xa(qe(e), qe(a)), Me = (e, a) => !e || !a ? !1 : Oa(qe(e), qe(a)), Oe = (e, a) => !e || !a ? !1 : Ba(qe(e), qe(a)), dt = (e, a, r) => e != null && e[0] && e != null && e[1] ? Oe(r, e[0]) && Se(r, e[1]) : e != null && e[0] && a ? Oe(r, e[0]) && Se(r, a) || Se(r, e[0]) && Oe(r, a) : !1, ra = (e) => {
334
334
  const a = De(new Date(e), { date: 1 });
335
335
  return qe(a);
336
336
  }, At = (e, a, r) => a && (r || r === 0) ? Object.fromEntries(
@@ -375,15 +375,15 @@ const Yt = (e, a) => e?.querySelector(`[data-dp-element="${a}"]`), Al = (e, a) =
375
375
  }, ha = (e, a, r) => [De(U(e), { date: 1 }), De(U(), { month: a, year: r, date: 1 })], va = (e, a, r) => {
376
376
  let t = e ? U(e) : U();
377
377
  return (a || a === 0) && (t = ln(t, a)), r && (t = ia(t, r)), t;
378
- }, Sl = (e, a, r, t, l) => {
378
+ }, Pl = (e, a, r, t, l) => {
379
379
  if (!t || l && !a || !l && !r) return !1;
380
380
  const s = l ? xa(e, 1) : qa(e, 1), d = [ke(s), fe(s)];
381
381
  return l ? !Dn(...d, a) : !An(...d, r);
382
- }, An = (e, a, r) => Pe(...ha(r, e, a)) || Me(...ha(r, e, a)), Dn = (e, a, r) => Oe(...ha(r, e, a)) || Me(...ha(r, e, a)), Pl = (e, a, r, t, l, s, d) => {
382
+ }, An = (e, a, r) => Se(...ha(r, e, a)) || Me(...ha(r, e, a)), Dn = (e, a, r) => Oe(...ha(r, e, a)) || Me(...ha(r, e, a)), Sl = (e, a, r, t, l, s, d) => {
383
383
  if (typeof a == "function" && !d) return a(e);
384
384
  const _ = r ? { locale: r } : void 0;
385
385
  return Array.isArray(e) ? `${sa(e[0], s, _)}${l && !e[1] ? "" : t}${e[1] ? sa(e[1], s, _) : ""}` : sa(e, s, _);
386
- }, Pa = (e) => {
386
+ }, Sa = (e) => {
387
387
  if (e) return null;
388
388
  throw new Error(Xt.prop("partial-range"));
389
389
  }, at = (e, a) => {
@@ -432,13 +432,13 @@ const Yt = (e, a) => e?.querySelector(`[data-dp-element="${a}"]`), Al = (e, a) =
432
432
  1: []
433
433
  },
434
434
  monthPicker: []
435
- }), $t = Z(null), tt = Z(!1), St = Z(!1), Pt = Z(!1), Ct = Z(!1), Ee = Z(0), Ce = Z(0), wa = () => {
436
- const e = j(() => tt.value ? [...xe.selectionGrid, xe.actionRow].filter((p) => p.length) : St.value ? [
435
+ }), $t = Z(null), tt = Z(!1), Pt = Z(!1), St = Z(!1), Ct = Z(!1), Ee = Z(0), Ce = Z(0), wa = () => {
436
+ const e = j(() => tt.value ? [...xe.selectionGrid, xe.actionRow].filter((p) => p.length) : Pt.value ? [
437
437
  ...xe.timePicker[0],
438
438
  ...xe.timePicker[1],
439
439
  Ct.value ? [] : [$t.value],
440
440
  xe.actionRow
441
- ].filter((p) => p.length) : Pt.value ? [...xe.monthPicker, xe.actionRow] : [xe.monthYear, ...xe.calendar, xe.time, xe.actionRow].filter((p) => p.length)), a = (p) => {
441
+ ].filter((p) => p.length) : St.value ? [...xe.monthPicker, xe.actionRow] : [xe.monthYear, ...xe.calendar, xe.time, xe.actionRow].filter((p) => p.length)), a = (p) => {
442
442
  Ee.value = p ? Ee.value + 1 : Ee.value - 1;
443
443
  let m = null;
444
444
  e.value[Ce.value] && (m = e.value[Ce.value][Ee.value]), !m && e.value[Ce.value + (p ? 1 : -1)] ? (Ce.value = Ce.value + (p ? 1 : -1), Ee.value = p ? 0 : e.value[Ce.value].length - 1) : m || (Ee.value = p ? Ee.value - 1 : Ee.value + 1);
@@ -472,7 +472,7 @@ const Yt = (e, a) => e?.querySelector(`[data-dp-element="${a}"]`), Al = (e, a) =
472
472
  tt.value = p, c(), p || (xe.selectionGrid = []);
473
473
  },
474
474
  setTimePicker: (p, m = !1) => {
475
- St.value = p, Ct.value = m, c(), p || (xe.timePicker[0] = [], xe.timePicker[1] = []);
475
+ Pt.value = p, Ct.value = m, c(), p || (xe.timePicker[0] = [], xe.timePicker[1] = []);
476
476
  },
477
477
  setTimePickerElements: (p, m = 0) => {
478
478
  xe.timePicker[m] = p;
@@ -482,10 +482,10 @@ const Yt = (e, a) => e?.querySelector(`[data-dp-element="${a}"]`), Al = (e, a) =
482
482
  arrowUp: d,
483
483
  arrowDown: _,
484
484
  clearArrowNav: () => {
485
- xe.monthYear = [], xe.calendar = [], xe.time = [], xe.actionRow = [], xe.selectionGrid = [], xe.timePicker[0] = [], xe.timePicker[1] = [], tt.value = !1, St.value = !1, Ct.value = !1, Pt.value = !1, c(), $t.value = null;
485
+ xe.monthYear = [], xe.calendar = [], xe.time = [], xe.actionRow = [], xe.selectionGrid = [], xe.timePicker[0] = [], xe.timePicker[1] = [], tt.value = !1, Pt.value = !1, Ct.value = !1, St.value = !1, c(), $t.value = null;
486
486
  },
487
487
  setMonthPicker: (p) => {
488
- Pt.value = p, c();
488
+ St.value = p, c();
489
489
  },
490
490
  refSets: xe
491
491
  // exposed for testing
@@ -525,7 +525,7 @@ const Yt = (e, a) => e?.querySelector(`[data-dp-element="${a}"]`), Al = (e, a) =
525
525
  yearPicker: (a) => `Year picker${a ? " overlay" : ""}`,
526
526
  timeOverlay: (a) => `${a} overlay`,
527
527
  ...e ?? {}
528
- }), sl = (e) => e ? typeof e == "boolean" ? e ? 2 : 0 : +e >= 2 ? +e : 2 : 0, Sn = (e) => {
528
+ }), sl = (e) => e ? typeof e == "boolean" ? e ? 2 : 0 : +e >= 2 ? +e : 2 : 0, Pn = (e) => {
529
529
  const a = typeof e == "object" && e, r = {
530
530
  static: !0,
531
531
  solo: !1
@@ -533,7 +533,7 @@ const Yt = (e, a) => e?.querySelector(`[data-dp-element="${a}"]`), Al = (e, a) =
533
533
  if (!e) return { ...r, count: sl(!1) };
534
534
  const t = a ? e : {}, l = a ? t.count ?? !0 : e, s = sl(l);
535
535
  return Object.assign(r, t, { count: s });
536
- }, Pn = (e, a, r) => e || (typeof r == "string" ? r : a), Cn = (e) => typeof e == "boolean" ? e ? il({}) : !1 : il(e), On = (e) => {
536
+ }, Sn = (e, a, r) => e || (typeof r == "string" ? r : a), Cn = (e) => typeof e == "boolean" ? e ? il({}) : !1 : il(e), On = (e) => {
537
537
  const a = {
538
538
  enterSubmit: !0,
539
539
  tabSubmit: !0,
@@ -636,16 +636,16 @@ const Yt = (e, a) => e?.querySelector(`[data-dp-element="${a}"]`), Al = (e, a) =
636
636
  return [a, l];
637
637
  })
638
638
  )
639
- }), Se = (e) => {
639
+ }), Pe = (e) => {
640
640
  const a = () => {
641
641
  const R = e.enableSeconds ? ":ss" : "", B = e.enableMinutes ? ":mm" : "";
642
642
  return e.is24 ? `HH${B}${R}` : `hh${B}${R} aa`;
643
643
  }, r = () => {
644
644
  var R;
645
645
  return e.format ? e.format : e.monthPicker ? "MM/yyyy" : e.timePicker ? a() : e.weekPicker ? `${((R = X.value) == null ? void 0 : R.type) === "iso" ? "RR" : "ww"}-yyyy` : e.yearPicker ? "yyyy" : e.quarterPicker ? "QQQ/yyyy" : e.enableTimePicker ? `MM/dd/yyyy, ${a()}` : "MM/dd/yyyy";
646
- }, t = (R) => $l(R, e.enableSeconds), l = () => K.value.enabled ? e.startTime && Array.isArray(e.startTime) ? [t(e.startTime[0]), t(e.startTime[1])] : null : e.startTime && !Array.isArray(e.startTime) ? t(e.startTime) : null, s = j(() => Sn(e.multiCalendars)), d = j(() => l()), _ = j(() => $n(e.ariaLabels)), v = j(() => Rn(e.filters)), E = j(() => Cn(e.transitions)), c = j(() => Bn(e.actionRow)), p = j(
647
- () => Pn(e.previewFormat, e.format, r())
648
- ), m = j(() => On(e.textInput)), D = j(() => In(e.inline)), C = j(() => Yn(e.config)), M = j(() => Vn(e.highlight)), X = j(() => Ln(e.weekNumbers)), N = j(() => Nn(e.timezone)), J = j(() => Un(e.multiDates)), S = j(
646
+ }, t = (R) => $l(R, e.enableSeconds), l = () => K.value.enabled ? e.startTime && Array.isArray(e.startTime) ? [t(e.startTime[0]), t(e.startTime[1])] : null : e.startTime && !Array.isArray(e.startTime) ? t(e.startTime) : null, s = j(() => Pn(e.multiCalendars)), d = j(() => l()), _ = j(() => $n(e.ariaLabels)), v = j(() => Rn(e.filters)), E = j(() => Cn(e.transitions)), c = j(() => Bn(e.actionRow)), p = j(
647
+ () => Sn(e.previewFormat, e.format, r())
648
+ ), m = j(() => On(e.textInput)), D = j(() => In(e.inline)), C = j(() => Yn(e.config)), M = j(() => Vn(e.highlight)), X = j(() => Ln(e.weekNumbers)), N = j(() => Nn(e.timezone)), J = j(() => Un(e.multiDates)), P = j(
649
649
  () => Fn({
650
650
  minDate: e.minDate,
651
651
  maxDate: e.maxDate,
@@ -671,7 +671,7 @@ const Yt = (e, a) => e?.querySelector(`[data-dp-element="${a}"]`), Al = (e, a) =
671
671
  defaultedHighlight: M,
672
672
  defaultedWeekNumbers: X,
673
673
  defaultedRange: K,
674
- propDates: S,
674
+ propDates: P,
675
675
  defaultedTz: N,
676
676
  defaultedMultiDates: J,
677
677
  defaultedUI: te,
@@ -679,7 +679,7 @@ const Yt = (e, a) => e?.querySelector(`[data-dp-element="${a}"]`), Al = (e, a) =
679
679
  getDefaultStartTime: l
680
680
  };
681
681
  }, Kn = (e, a, r) => {
682
- const t = Z(), { defaultedTextInput: l, defaultedRange: s, defaultedTz: d, defaultedMultiDates: _, getDefaultPattern: v } = Se(a), E = Z(""), c = za(a, "format"), p = za(a, "formatLocale");
682
+ const t = Z(), { defaultedTextInput: l, defaultedRange: s, defaultedTz: d, defaultedMultiDates: _, getDefaultPattern: v } = Pe(a), E = Z(""), c = za(a, "format"), p = za(a, "formatLocale");
683
683
  la(
684
684
  t,
685
685
  () => {
@@ -697,7 +697,7 @@ const Yt = (e, a) => e?.querySelector(`[data-dp-element="${a}"]`), Al = (e, a) =
697
697
  return Jl(u, re);
698
698
  }
699
699
  return u;
700
- }, C = (u, re, me = !1) => Pl(
700
+ }, C = (u, re, me = !1) => Sl(
701
701
  u,
702
702
  a.format,
703
703
  a.formatLocale,
@@ -712,10 +712,10 @@ const Yt = (e, a) => e?.querySelector(`[data-dp-element="${a}"]`), Al = (e, a) =
712
712
  } : null, X = (u) => a.modelType ? h(u) : { month: ke(u), year: fe(u) }, N = (u) => Array.isArray(u) ? _.value.enabled ? u.map((re) => J(re, ia(U(), re))) : at(
713
713
  () => [
714
714
  ia(U(), u[0]),
715
- u[1] ? ia(U(), u[1]) : Pa(s.value.partialRange)
715
+ u[1] ? ia(U(), u[1]) : Sa(s.value.partialRange)
716
716
  ],
717
717
  s.value.enabled
718
- ) : ia(U(), +u), J = (u, re) => (typeof u == "string" || typeof u == "number") && a.modelType ? O(u) : re, S = (u) => Array.isArray(u) ? [
718
+ ) : ia(U(), +u), J = (u, re) => (typeof u == "string" || typeof u == "number") && a.modelType ? O(u) : re, P = (u) => Array.isArray(u) ? [
719
719
  J(
720
720
  u[0],
721
721
  ba(null, +u[0].hours, +u[0].minutes, u[0].seconds)
@@ -731,7 +731,7 @@ const Yt = (e, a) => e?.querySelector(`[data-dp-element="${a}"]`), Al = (e, a) =
731
731
  J(u[0], va(re, +u[0].month, +u[0].year)),
732
732
  J(
733
733
  u[1],
734
- u[1] ? va(re, +u[1].month, +u[1].year) : Pa(s.value.partialRange)
734
+ u[1] ? va(re, +u[1].month, +u[1].year) : Sa(s.value.partialRange)
735
735
  )
736
736
  ],
737
737
  s.value.enabled
@@ -752,18 +752,18 @@ const Yt = (e, a) => e?.querySelector(`[data-dp-element="${a}"]`), Al = (e, a) =
752
752
  }, B = (u) => a.modelAuto ? Array.isArray(u) ? [O(u[0]), O(u[1])] : a.autoApply ? [O(u)] : [O(u), null] : Array.isArray(u) ? at(
753
753
  () => u[1] ? [
754
754
  O(u[0]),
755
- u[1] ? O(u[1]) : Pa(s.value.partialRange)
755
+ u[1] ? O(u[1]) : Sa(s.value.partialRange)
756
756
  ] : [O(u[0])],
757
757
  s.value.enabled
758
758
  ) : O(u), le = () => {
759
- Array.isArray(t.value) && s.value.enabled && t.value.length === 1 && t.value.push(Pa(s.value.partialRange));
759
+ Array.isArray(t.value) && s.value.enabled && t.value.length === 1 && t.value.push(Sa(s.value.partialRange));
760
760
  }, H = () => {
761
761
  const u = t.value;
762
762
  return [
763
763
  h(u[0]),
764
- u[1] ? h(u[1]) : Pa(s.value.partialRange)
764
+ u[1] ? h(u[1]) : Sa(s.value.partialRange)
765
765
  ];
766
- }, I = () => t.value[1] ? H() : h(Ie(t.value[0])), ue = () => (t.value || []).map((u) => h(u)), ve = (u = !1) => (u || le(), a.modelAuto ? I() : _.value.enabled ? ue() : Array.isArray(t.value) ? at(() => H(), s.value.enabled) : h(Ie(t.value))), pe = (u) => !u || Array.isArray(u) && !u.length ? null : a.timePicker ? S(Ie(u)) : a.monthPicker ? K(Ie(u)) : a.yearPicker ? N(Ie(u)) : _.value.enabled ? te(Ie(u)) : a.weekPicker ? R(Ie(u)) : B(Ie(u)), y = (u) => {
766
+ }, I = () => t.value[1] ? H() : h(Ie(t.value[0])), ue = () => (t.value || []).map((u) => h(u)), ve = (u = !1) => (u || le(), a.modelAuto ? I() : _.value.enabled ? ue() : Array.isArray(t.value) ? at(() => H(), s.value.enabled) : h(Ie(t.value))), pe = (u) => !u || Array.isArray(u) && !u.length ? null : a.timePicker ? P(Ie(u)) : a.monthPicker ? K(Ie(u)) : a.yearPicker ? N(Ie(u)) : _.value.enabled ? te(Ie(u)) : a.weekPicker ? R(Ie(u)) : B(Ie(u)), y = (u) => {
767
767
  const re = pe(u);
768
768
  Vt(Ie(re)) ? (t.value = Ie(re), ne()) : (t.value = null, E.value = "");
769
769
  }, A = () => {
@@ -789,7 +789,7 @@ const Yt = (e, a) => e?.querySelector(`[data-dp-element="${a}"]`), Al = (e, a) =
789
789
  }
790
790
  }, L = (u) => Array.isArray(t.value) ? _.value.enabled ? t.value.map((re) => u(re)) : [
791
791
  u(t.value[0]),
792
- t.value[1] ? u(t.value[1]) : Pa(s.value.partialRange)
792
+ t.value[1] ? u(t.value[1]) : Sa(s.value.partialRange)
793
793
  ] : u(Ie(t.value)), k = () => {
794
794
  if (Array.isArray(t.value)) {
795
795
  const u = da(t.value[0], a.weekStart), re = t.value[1] ? da(t.value[1], a.weekStart) : [];
@@ -809,7 +809,7 @@ const Yt = (e, a) => e?.querySelector(`[data-dp-element="${a}"]`), Al = (e, a) =
809
809
  emitModelValue: z
810
810
  };
811
811
  }, Xn = (e, a) => {
812
- const { defaultedFilters: r, propDates: t } = Se(e), { validateMonthYearInRange: l } = ka(e), s = (c, p) => {
812
+ const { defaultedFilters: r, propDates: t } = Pe(e), { validateMonthYearInRange: l } = ka(e), s = (c, p) => {
813
813
  let m = c;
814
814
  return r.value.months.includes(ke(m)) ? (m = p ? xa(c, 1) : qa(c, 1), s(m, p)) : m;
815
815
  }, d = (c, p) => {
@@ -823,7 +823,7 @@ const Yt = (e, a) => e?.querySelector(`[data-dp-element="${a}"]`), Al = (e, a) =
823
823
  r.value.months.includes(C) && (D = s(D, c), C = ke(D), M = fe(D)), r.value.years.includes(M) && (D = d(D, c), M = fe(D)), l(C, M, c, e.preventMinMaxNavigation) && v(C, M, p);
824
824
  }, v = (c, p, m) => {
825
825
  a("update-month-year", { month: c, year: p, fromNav: m });
826
- }, E = j(() => (c) => Sl(
826
+ }, E = j(() => (c) => Pl(
827
827
  De(U(), { month: e.month, year: e.year }),
828
828
  t.value.maxDate,
829
829
  t.value.minDate,
@@ -983,7 +983,7 @@ const Yt = (e, a) => e?.querySelector(`[data-dp-element="${a}"]`), Al = (e, a) =
983
983
  defaultedInline: v,
984
984
  defaultedRange: E,
985
985
  defaultedMultiDates: c
986
- } = Se(t), { isTimeValid: p, isMonthValid: m } = ka(t), { buildMatrix: D } = wa(), C = Z(null), M = Z(null), X = Z(!1), N = Z({}), J = Z(null), S = Z(null);
986
+ } = Pe(t), { isTimeValid: p, isMonthValid: m } = ka(t), { buildMatrix: D } = wa(), C = Z(null), M = Z(null), X = Z(!1), N = Z({}), J = Z(null), P = Z(null);
987
987
  Ue(() => {
988
988
  t.arrowNavigation && D([Be(C), Be(M)], "actionRow"), K(), window.addEventListener("resize", K);
989
989
  }), it(() => {
@@ -992,18 +992,18 @@ const Yt = (e, a) => e?.querySelector(`[data-dp-element="${a}"]`), Al = (e, a) =
992
992
  const K = () => {
993
993
  X.value = !1, setTimeout(() => {
994
994
  var y, A;
995
- const f = (y = J.value) == null ? void 0 : y.getBoundingClientRect(), V = (A = S.value) == null ? void 0 : A.getBoundingClientRect();
995
+ const f = (y = J.value) == null ? void 0 : y.getBoundingClientRect(), V = (A = P.value) == null ? void 0 : A.getBoundingClientRect();
996
996
  f && V && (N.value.maxWidth = `${V.width - f.width - 20}px`), X.value = !0;
997
997
  }, 0);
998
998
  }, te = j(() => E.value.enabled && !E.value.partialRange && t.internalModelValue ? t.internalModelValue.length === 2 : !0), R = j(
999
999
  () => !p.value(t.internalModelValue) || !m.value(t.internalModelValue) || !te.value
1000
1000
  ), B = () => {
1001
1001
  const y = s.value;
1002
- return y(Ie(t.internalModelValue));
1002
+ return t.timePicker || t.monthPicker, y(Ie(t.internalModelValue));
1003
1003
  }, le = () => {
1004
1004
  const y = t.internalModelValue;
1005
1005
  return d.value.count > 0 ? `${H(y[0])} - ${H(y[1])}` : [H(y[0]), H(y[1])];
1006
- }, H = (y) => Pl(
1006
+ }, H = (y) => Sl(
1007
1007
  y,
1008
1008
  s.value,
1009
1009
  t.formatLocale,
@@ -1017,7 +1017,7 @@ const Yt = (e, a) => e?.querySelector(`[data-dp-element="${a}"]`), Al = (e, a) =
1017
1017
  };
1018
1018
  return (y, A) => (T(), F("div", {
1019
1019
  ref_key: "actionRowRef",
1020
- ref: S,
1020
+ ref: P,
1021
1021
  class: "dp__action_row"
1022
1022
  }, [
1023
1023
  y.$slots["action-row"] ? se(y.$slots, "action-row", Ve(Ye({ key: 0 }, {
@@ -1106,9 +1106,9 @@ const Yt = (e, a) => e?.querySelector(`[data-dp-element="${a}"]`), Al = (e, a) =
1106
1106
  },
1107
1107
  emits: ["selected", "toggle", "reset-flow", "hover-value"],
1108
1108
  setup(e, { expose: a, emit: r }) {
1109
- const { setSelectionGrid: t, buildMultiLevelMatrix: l, setMonthPicker: s } = wa(), d = r, _ = e, { defaultedAriaLabels: v, defaultedTextInput: E, defaultedConfig: c } = Se(
1109
+ const { setSelectionGrid: t, buildMultiLevelMatrix: l, setMonthPicker: s } = wa(), d = r, _ = e, { defaultedAriaLabels: v, defaultedTextInput: E, defaultedConfig: c } = Pe(
1110
1110
  _
1111
- ), { hideNavigationButtons: p } = mt(), m = Z(!1), D = Z(null), C = Z(null), M = Z([]), X = Z(), N = Z(null), J = Z(0), S = Z(null);
1111
+ ), { hideNavigationButtons: p } = mt(), m = Z(!1), D = Z(null), C = Z(null), M = Z([]), X = Z(), N = Z(null), J = Z(0), P = Z(null);
1112
1112
  ql(() => {
1113
1113
  D.value = null;
1114
1114
  }), Ue(() => {
@@ -1154,7 +1154,7 @@ const Yt = (e, a) => e?.querySelector(`[data-dp-element="${a}"]`), Al = (e, a) =
1154
1154
  );
1155
1155
  const ue = (L = !0) => {
1156
1156
  Ze().then(() => {
1157
- const k = Be(D), n = Be(C), g = Be(N), z = Be(S), u = g ? g.getBoundingClientRect().height : 0;
1157
+ const k = Be(D), n = Be(C), g = Be(N), z = Be(P), u = g ? g.getBoundingClientRect().height : 0;
1158
1158
  n && (n.getBoundingClientRect().height ? J.value = n.getBoundingClientRect().height - u : J.value = c.value.modeHeight - u), k && z && L && (z.scrollTop = k.offsetTop - z.offsetTop - (J.value / 2 - k.getBoundingClientRect().height) - u);
1159
1159
  });
1160
1160
  }, ve = (L) => {
@@ -1216,7 +1216,7 @@ const Yt = (e, a) => e?.querySelector(`[data-dp-element="${a}"]`), Al = (e, a) =
1216
1216
  }, [
1217
1217
  ye("div", {
1218
1218
  ref_key: "containerRef",
1219
- ref: S,
1219
+ ref: P,
1220
1220
  class: we(I.value),
1221
1221
  style: ta({ "--dp-overlay-height": `${J.value}px` }),
1222
1222
  role: "grid"
@@ -1351,7 +1351,7 @@ const Yt = (e, a) => e?.querySelector(`[data-dp-element="${a}"]`), Al = (e, a) =
1351
1351
  },
1352
1352
  emits: ["toggle-year-picker", "year-select", "handle-year"],
1353
1353
  setup(e, { emit: a }) {
1354
- const r = a, t = e, { showRightIcon: l, showLeftIcon: s } = mt(), { defaultedConfig: d, defaultedMultiCalendars: _, defaultedAriaLabels: v, defaultedTransitions: E, defaultedUI: c } = Se(t), { showTransition: p, transitionName: m } = Ja(E), D = Z(!1), C = (N = !1, J) => {
1354
+ const r = a, t = e, { showRightIcon: l, showLeftIcon: s } = mt(), { defaultedConfig: d, defaultedMultiCalendars: _, defaultedAriaLabels: v, defaultedTransitions: E, defaultedUI: c } = Pe(t), { showTransition: p, transitionName: m } = Ja(E), D = Z(!1), C = (N = !1, J) => {
1355
1355
  D.value = !D.value, r("toggle-year-picker", { flow: N, show: J });
1356
1356
  }, M = (N) => {
1357
1357
  D.value = !1, r("year-select", N);
@@ -1359,7 +1359,7 @@ const Yt = (e, a) => e?.querySelector(`[data-dp-element="${a}"]`), Al = (e, a) =
1359
1359
  r("handle-year", N);
1360
1360
  };
1361
1361
  return (N, J) => {
1362
- var S, K, te, R, B;
1362
+ var P, K, te, R, B;
1363
1363
  return T(), F(be, null, [
1364
1364
  ye("div", {
1365
1365
  class: we(["dp--year-mode-picker", { "dp--hidden-el": D.value }])
@@ -1367,7 +1367,7 @@ const Yt = (e, a) => e?.querySelector(`[data-dp-element="${a}"]`), Al = (e, a) =
1367
1367
  i(s)(i(_), e.instance) ? (T(), Ae(Ua, {
1368
1368
  key: 0,
1369
1369
  ref: "mpPrevIconRef",
1370
- "aria-label": (S = i(v)) == null ? void 0 : S.prevYear,
1370
+ "aria-label": (P = i(v)) == null ? void 0 : P.prevYear,
1371
1371
  disabled: e.isDisabled(!1),
1372
1372
  class: we((K = i(c)) == null ? void 0 : K.navBtnPrev),
1373
1373
  onActivate: J[0] || (J[0] = (le) => X(!1))
@@ -1465,12 +1465,12 @@ const Yt = (e, a) => e?.querySelector(`[data-dp-element="${a}"]`), Al = (e, a) =
1465
1465
  a.value = [e];
1466
1466
  }, Gt = (e, a, r) => {
1467
1467
  let t = e.value ? e.value.slice() : [];
1468
- return t.length === 2 && t[1] !== null && (t = []), t.length ? Pe(a, t[0]) ? (t.unshift(a), r("range-start", t[0]), r("range-start", t[1])) : (t[1] = a, r("range-end", a)) : (t = [a], r("range-start", a)), t;
1468
+ return t.length === 2 && t[1] !== null && (t = []), t.length ? Se(a, t[0]) ? (t.unshift(a), r("range-start", t[0]), r("range-start", t[1])) : (t[1] = a, r("range-end", a)) : (t = [a], r("range-start", a)), t;
1469
1469
  }, pt = (e, a, r, t) => {
1470
1470
  e && (e[0] && e[1] && r && a("auto-apply"), e[0] && !e[1] && t && r && a("auto-apply"));
1471
1471
  }, Il = (e) => {
1472
1472
  Array.isArray(e.value) && e.value.length <= 2 && e.range ? e.modelValue.value = e.value.map((a) => Qe(U(a), e.timezone)) : Array.isArray(e.value) || (e.modelValue.value = Qe(U(e.value), e.timezone));
1473
- }, Yl = (e, a, r, t) => Array.isArray(a.value) && (a.value.length === 2 || a.value.length === 1 && t.value.partialRange) ? t.value.fixedStart && (Oe(e, a.value[0]) || Me(e, a.value[0])) ? [a.value[0], e] : t.value.fixedEnd && (Pe(e, a.value[1]) || Me(e, a.value[1])) ? [e, a.value[1]] : (r("invalid-fixed-range", e), a.value) : [], Vl = ({
1473
+ }, Yl = (e, a, r, t) => Array.isArray(a.value) && (a.value.length === 2 || a.value.length === 1 && t.value.partialRange) ? t.value.fixedStart && (Oe(e, a.value[0]) || Me(e, a.value[0])) ? [a.value[0], e] : t.value.fixedEnd && (Se(e, a.value[1]) || Me(e, a.value[1])) ? [e, a.value[1]] : (r("invalid-fixed-range", e), a.value) : [], Vl = ({
1474
1474
  multiCalendars: e,
1475
1475
  range: a,
1476
1476
  highlight: r,
@@ -1488,7 +1488,7 @@ const Yt = (e, a) => e?.querySelector(`[data-dp-element="${a}"]`), Al = (e, a) =
1488
1488
  month: E.value(I),
1489
1489
  year: v.value(I)
1490
1490
  }), pe = ue ? ml(ve) : ot(ve);
1491
- return Sl(
1491
+ return Pl(
1492
1492
  pe,
1493
1493
  t.value.maxDate,
1494
1494
  t.value.minDate,
@@ -1515,13 +1515,13 @@ const Yt = (e, a) => e?.querySelector(`[data-dp-element="${a}"]`), Al = (e, a) =
1515
1515
  }, N = (I, ue) => {
1516
1516
  const ve = sn(ue, I);
1517
1517
  return a.value.showLastInRange && ve > 1 ? ue : I;
1518
- }, J = (I) => d.focusStartDate || e.value.solo ? I[0] : I[1] ? N(I[0], I[1]) : I[0], S = () => {
1518
+ }, J = (I) => d.focusStartDate || e.value.solo ? I[0] : I[1] ? N(I[0], I[1]) : I[0], P = () => {
1519
1519
  if (s.value) {
1520
1520
  const I = Array.isArray(s.value) ? J(s.value) : s.value;
1521
1521
  l.value[0] = { month: ke(I), year: fe(I) };
1522
1522
  }
1523
1523
  }, K = () => {
1524
- S(), e.value.count && M();
1524
+ P(), e.value.count && M();
1525
1525
  };
1526
1526
  la(s, (I, ue) => {
1527
1527
  d.isTextInputDate && JSON.stringify(I ?? {}) !== JSON.stringify(ue ?? {}) && K();
@@ -1569,9 +1569,9 @@ const Yt = (e, a) => e?.querySelector(`[data-dp-element="${a}"]`), Al = (e, a) =
1569
1569
  defaultedTz: E,
1570
1570
  defaultedFilters: c,
1571
1571
  defaultedMultiDates: p
1572
- } = Se(e), m = () => {
1572
+ } = Pe(e), m = () => {
1573
1573
  e.isTextInputDate && K(fe(U(e.startDate)), 0);
1574
- }, { modelValue: D, year: C, month: M, calendars: X } = Wa(e, a, m), N = j(() => wl(e.formatLocale, e.locale, e.monthNameFormat)), J = Z(null), { checkMinMaxRange: S } = ka(e), {
1574
+ }, { modelValue: D, year: C, month: M, calendars: X } = Wa(e, a, m), N = j(() => wl(e.formatLocale, e.locale, e.monthNameFormat)), J = Z(null), { checkMinMaxRange: P } = ka(e), {
1575
1575
  selectYear: K,
1576
1576
  groupedYears: te,
1577
1577
  showYearPicker: R,
@@ -1625,7 +1625,7 @@ const Yt = (e, a) => e?.querySelector(`[data-dp-element="${a}"]`), Al = (e, a) =
1625
1625
  D.value = va(z, n, C.value(g)), a("auto-apply"), a("update-flow-step");
1626
1626
  }, O = (n, g) => {
1627
1627
  const z = V(n, g);
1628
- d.value.fixedEnd || d.value.fixedStart ? D.value = Yl(z, D, a, d) : D.value ? S(z, D.value) && (D.value = Gt(D, V(n, g), a)) : D.value = [V(n, g)], Ze().then(() => {
1628
+ d.value.fixedEnd || d.value.fixedStart ? D.value = Yl(z, D, a, d) : D.value ? P(z, D.value) && (D.value = Gt(D, V(n, g), a)) : D.value = [V(n, g)], Ze().then(() => {
1629
1629
  pt(D.value, a, e.autoApply, e.modelAuto);
1630
1630
  });
1631
1631
  }, h = (n, g) => {
@@ -1691,7 +1691,7 @@ const Yt = (e, a) => e?.querySelector(`[data-dp-element="${a}"]`), Al = (e, a) =
1691
1691
  "overlay-toggle"
1692
1692
  ],
1693
1693
  setup(e, { expose: a, emit: r }) {
1694
- const t = r, l = Sa(), s = Je(l, "yearMode"), d = e;
1694
+ const t = r, l = Pa(), s = Je(l, "yearMode"), d = e;
1695
1695
  Ue(() => {
1696
1696
  d.shadow || t("mount", null);
1697
1697
  });
@@ -1708,7 +1708,7 @@ const Yt = (e, a) => e?.querySelector(`[data-dp-element="${a}"]`), Al = (e, a) =
1708
1708
  setHoverDate: X,
1709
1709
  selectMonth: N,
1710
1710
  selectYear: J,
1711
- toggleYearPicker: S,
1711
+ toggleYearPicker: P,
1712
1712
  handleYearSelect: K,
1713
1713
  handleYear: te,
1714
1714
  getModelMonthYear: R
@@ -1720,7 +1720,7 @@ const Yt = (e, a) => e?.querySelector(`[data-dp-element="${a}"]`), Al = (e, a) =
1720
1720
  selectMonth: N,
1721
1721
  selectYear: J,
1722
1722
  handleYear: te
1723
- }), presetDate: M, toggleYearPicker: (B) => S(0, B) }), (B, le) => (T(), Ae(ct, {
1723
+ }), presetDate: M, toggleYearPicker: (B) => P(0, B) }), (B, le) => (T(), Ae(ct, {
1724
1724
  "multi-calendars": i(p).count,
1725
1725
  collapse: B.collapse,
1726
1726
  stretch: ""
@@ -1760,7 +1760,7 @@ const Yt = (e, a) => e?.querySelector(`[data-dp-element="${a}"]`), Al = (e, a) =
1760
1760
  "is-disabled": (I) => i(c)(H, I),
1761
1761
  onHandleYear: (I) => i(te)(H, I),
1762
1762
  onYearSelect: (I) => i(K)(I, H),
1763
- onToggleYearPicker: (I) => i(S)(H, I?.flow, I?.show)
1763
+ onToggleYearPicker: (I) => i(P)(H, I?.flow, I?.show)
1764
1764
  }), Fe({ _: 2 }, [
1765
1765
  $e(i(s), (I, ue) => ({
1766
1766
  name: I,
@@ -1790,7 +1790,7 @@ const Yt = (e, a) => e?.querySelector(`[data-dp-element="${a}"]`), Al = (e, a) =
1790
1790
  }), nr = (e, a) => {
1791
1791
  const r = () => {
1792
1792
  e.isTextInputDate && (c.value = fe(U(e.startDate)));
1793
- }, { modelValue: t } = Wa(e, a, r), l = Z(null), { defaultedHighlight: s, defaultedMultiDates: d, defaultedFilters: _, defaultedRange: v, propDates: E } = Se(e), c = Z();
1793
+ }, { modelValue: t } = Wa(e, a, r), l = Z(null), { defaultedHighlight: s, defaultedMultiDates: d, defaultedFilters: _, defaultedRange: v, propDates: E } = Pe(e), c = Z();
1794
1794
  Ue(() => {
1795
1795
  e.startDate && (t.value && e.focusStartDate || !t.value) && (c.value = fe(U(e.startDate)));
1796
1796
  });
@@ -1799,8 +1799,8 @@ const Yt = (e, a) => e?.querySelector(`[data-dp-element="${a}"]`), Al = (e, a) =
1799
1799
  M.value,
1800
1800
  Ya(E.value.minDate),
1801
1801
  Ya(E.value.maxDate)
1802
- ) || _.value.years.includes(M.value), J = m(M.value) && !X, S = jt(s.value, M.value);
1803
- return { active: X, disabled: N, isBetween: J, highlighted: S };
1802
+ ) || _.value.years.includes(M.value), J = m(M.value) && !X, P = jt(s.value, M.value);
1803
+ return { active: X, disabled: N, isBetween: J, highlighted: P };
1804
1804
  })), C = (M) => ia(ra(ot(/* @__PURE__ */ new Date())), M);
1805
1805
  return {
1806
1806
  groupedYears: D,
@@ -1835,7 +1835,7 @@ const Yt = (e, a) => e?.querySelector(`[data-dp-element="${a}"]`), Al = (e, a) =
1835
1835
  "update-month-year"
1836
1836
  ],
1837
1837
  setup(e, { expose: a, emit: r }) {
1838
- const t = r, l = e, { groupedYears: s, modelValue: d, focusYear: _, selectYear: v, setHoverValue: E } = nr(l, t), { defaultedConfig: c } = Se(l);
1838
+ const t = r, l = e, { groupedYears: s, modelValue: d, focusYear: _, selectYear: v, setHoverValue: E } = nr(l, t), { defaultedConfig: c } = Pe(l);
1839
1839
  return a({ getSidebarProps: () => ({
1840
1840
  modelValue: d,
1841
1841
  selectYear: v
@@ -1904,11 +1904,11 @@ const Yt = (e, a) => e?.querySelector(`[data-dp-element="${a}"]`), Al = (e, a) =
1904
1904
  "am-pm-change"
1905
1905
  ],
1906
1906
  setup(e, { expose: a, emit: r }) {
1907
- const t = r, l = e, { setTimePickerElements: s, setTimePickerBackRef: d } = wa(), { defaultedAriaLabels: _, defaultedTransitions: v, defaultedFilters: E, defaultedConfig: c, defaultedRange: p } = Se(l), { transitionName: m, showTransition: D } = Ja(v), C = Qa({
1907
+ const t = r, l = e, { setTimePickerElements: s, setTimePickerBackRef: d } = wa(), { defaultedAriaLabels: _, defaultedTransitions: v, defaultedFilters: E, defaultedConfig: c, defaultedRange: p } = Pe(l), { transitionName: m, showTransition: D } = Ja(v), C = Qa({
1908
1908
  hours: !1,
1909
1909
  minutes: !1,
1910
1910
  seconds: !1
1911
- }), M = Z("AM"), X = Z(null), N = Z([]), J = Z(), S = Z(!1);
1911
+ }), M = Z("AM"), X = Z(null), N = Z([]), J = Z(), P = Z(!1);
1912
1912
  Ue(() => {
1913
1913
  t("mounted");
1914
1914
  });
@@ -1921,8 +1921,8 @@ const Yt = (e, a) => e?.querySelector(`[data-dp-element="${a}"]`), Al = (e, a) =
1921
1921
  () => (o) => V(o, l[o]) || B(o, l[o])
1922
1922
  ), R = j(() => ({ hours: l.hours, minutes: l.minutes, seconds: l.seconds })), B = (o, Y) => p.value.enabled && !p.value.disableTimeRangeValidation ? !l.validateTime(o, Y) : !1, le = (o, Y) => {
1923
1923
  if (p.value.enabled && !p.value.disableTimeRangeValidation) {
1924
- const W = Y ? +l[`${o}Increment`] : -+l[`${o}Increment`], P = l[o] + W;
1925
- return !l.validateTime(o, P);
1924
+ const W = Y ? +l[`${o}Increment`] : -+l[`${o}Increment`], S = l[o] + W;
1925
+ return !l.validateTime(o, S);
1926
1926
  }
1927
1927
  return !1;
1928
1928
  }, H = j(() => (o) => !L(+l[o] + +l[`${o}Increment`], o) || le(o, !0)), I = j(() => (o) => !L(+l[o] - +l[`${o}Increment`], o) || le(o, !1)), ue = (o, Y) => fl(De(U(), o), Y), ve = (o, Y) => on(De(U(), o), Y), pe = j(
@@ -1951,31 +1951,31 @@ const Yt = (e, a) => e?.querySelector(`[data-dp-element="${a}"]`), Al = (e, a) =
1951
1951
  }), V = (o, Y) => {
1952
1952
  var W;
1953
1953
  if (!l.disabledTimesConfig) return !1;
1954
- const P = l.disabledTimesConfig(l.order, o === "hours" ? Y : void 0);
1955
- return P[o] ? !!((W = P[o]) != null && W.includes(Y)) : !0;
1954
+ const S = l.disabledTimesConfig(l.order, o === "hours" ? Y : void 0);
1955
+ return S[o] ? !!((W = S[o]) != null && W.includes(Y)) : !0;
1956
1956
  }, ne = (o, Y) => Y !== "hours" || M.value === "AM" ? o : o + 12, O = (o) => {
1957
- const Y = l.is24 ? 24 : 12, W = o === "hours" ? Y : 60, P = +l[`${o}GridIncrement`], he = o === "hours" && !l.is24 ? P : 0, w = [];
1958
- for (let q = he; q < W; q += P)
1957
+ const Y = l.is24 ? 24 : 12, W = o === "hours" ? Y : 60, S = +l[`${o}GridIncrement`], he = o === "hours" && !l.is24 ? S : 0, w = [];
1958
+ for (let q = he; q < W; q += S)
1959
1959
  w.push({ value: l.is24 ? q : ne(q, o), text: q < 10 ? `0${q}` : `${q}` });
1960
1960
  return o === "hours" && !l.is24 && w.unshift({ value: M.value === "PM" ? 12 : 0, text: "12" }), Ia(w, (q) => ({ active: !1, disabled: E.value.times[o].includes(q.value) || !L(q.value, o) || V(o, q.value) || B(o, q.value) }));
1961
1961
  }, h = (o) => o >= 0 ? o : 59, oe = (o) => o >= 0 ? o : 23, L = (o, Y) => {
1962
- const W = l.minTime ? K(At(l.minTime)) : null, P = l.maxTime ? K(At(l.maxTime)) : null, he = K(
1962
+ const W = l.minTime ? K(At(l.minTime)) : null, S = l.maxTime ? K(At(l.maxTime)) : null, he = K(
1963
1963
  At(
1964
1964
  R.value,
1965
1965
  Y,
1966
1966
  Y === "minutes" || Y === "seconds" ? h(o) : oe(o)
1967
1967
  )
1968
1968
  );
1969
- return W && P ? (Xa(he, P) || Oa(he, P)) && (Ba(he, W) || Oa(he, W)) : W ? Ba(he, W) || Oa(he, W) : P ? Xa(he, P) || Oa(he, P) : !0;
1969
+ return W && S ? (Xa(he, S) || Oa(he, S)) && (Ba(he, W) || Oa(he, W)) : W ? Ba(he, W) || Oa(he, W) : S ? Xa(he, S) || Oa(he, S) : !0;
1970
1970
  }, k = (o) => l[`no${o[0].toUpperCase() + o.slice(1)}Overlay`], n = (o) => {
1971
- k(o) || (C[o] = !C[o], C[o] ? (S.value = !0, t("overlay-opened", o)) : (S.value = !1, t("overlay-closed", o)));
1971
+ k(o) || (C[o] = !C[o], C[o] ? (P.value = !0, t("overlay-opened", o)) : (P.value = !1, t("overlay-closed", o)));
1972
1972
  }, g = (o) => o === "hours" ? pa : o === "minutes" ? _a : Ra, z = () => {
1973
1973
  J.value && clearTimeout(J.value);
1974
1974
  }, u = (o, Y = !0, W) => {
1975
- const P = Y ? ue : ve, he = Y ? +l[`${o}Increment`] : -+l[`${o}Increment`];
1975
+ const S = Y ? ue : ve, he = Y ? +l[`${o}Increment`] : -+l[`${o}Increment`];
1976
1976
  L(+l[o] + he, o) && t(
1977
1977
  `update:${o}`,
1978
- g(o)(P({ [o]: +l[o] }, { [o]: +l[`${o}Increment`] }))
1978
+ g(o)(S({ [o]: +l[o] }, { [o]: +l[`${o}Increment`] }))
1979
1979
  ), !(W != null && W.keyboard) && c.value.timeArrowHoldThreshold && (J.value = setTimeout(() => {
1980
1980
  u(o, Y);
1981
1981
  }, c.value.timeArrowHoldThreshold));
@@ -1986,24 +1986,24 @@ const Yt = (e, a) => e?.querySelector(`[data-dp-element="${a}"]`), Al = (e, a) =
1986
1986
  }, x = (o, Y, W) => {
1987
1987
  if (o && l.arrowNavigation) {
1988
1988
  Array.isArray(N.value[Y]) ? N.value[Y][W] = o : N.value[Y] = [o];
1989
- const P = N.value.reduce(
1989
+ const S = N.value.reduce(
1990
1990
  (he, w) => w.map((q, de) => [...he[de] || [], w[de]]),
1991
1991
  []
1992
1992
  );
1993
- d(l.closeTimePickerBtn), X.value && (P[1] = P[1].concat(X.value)), s(P, l.order);
1993
+ d(l.closeTimePickerBtn), X.value && (S[1] = S[1].concat(X.value)), s(S, l.order);
1994
1994
  }
1995
1995
  }, G = (o, Y) => (n(o), t(`update:${o}`, Y));
1996
1996
  return a({ openChildCmp: Re }), (o, Y) => {
1997
1997
  var W;
1998
1998
  return o.disabled ? Q("", !0) : (T(), F("div", or, [
1999
- (T(!0), F(be, null, $e(y.value, (P, he) => {
1999
+ (T(!0), F(be, null, $e(y.value, (S, he) => {
2000
2000
  var w, q, de;
2001
2001
  return T(), F("div", {
2002
2002
  key: he,
2003
2003
  class: we(pe.value)
2004
2004
  }, [
2005
- P.separator ? (T(), F(be, { key: 0 }, [
2006
- S.value ? Q("", !0) : (T(), F(be, { key: 0 }, [
2005
+ S.separator ? (T(), F(be, { key: 0 }, [
2006
+ P.value ? Q("", !0) : (T(), F(be, { key: 0 }, [
2007
2007
  ca(":")
2008
2008
  ], 64))
2009
2009
  ], 64)) : (T(), F(be, { key: 1 }, [
@@ -2016,15 +2016,15 @@ const Yt = (e, a) => e?.querySelector(`[data-dp-element="${a}"]`), Al = (e, a) =
2016
2016
  dp__inc_dec_button: !o.timePickerInline,
2017
2017
  dp__inc_dec_button_inline: o.timePickerInline,
2018
2018
  dp__tp_inline_btn_top: o.timePickerInline,
2019
- dp__inc_dec_button_disabled: H.value(P.type),
2020
- "dp--hidden-el": S.value
2019
+ dp__inc_dec_button_disabled: H.value(S.type),
2020
+ "dp--hidden-el": P.value
2021
2021
  }),
2022
- "data-test": `${P.type}-time-inc-btn-${l.order}`,
2023
- "aria-label": (w = i(_)) == null ? void 0 : w.incrementValue(P.type),
2022
+ "data-test": `${S.type}-time-inc-btn-${l.order}`,
2023
+ "aria-label": (w = i(_)) == null ? void 0 : w.incrementValue(S.type),
2024
2024
  tabindex: "0",
2025
- onKeydown: (ge) => i(Xe)(ge, () => u(P.type, !0, { keyboard: !0 }), !0),
2026
- onClick: (ge) => i(c).timeArrowHoldThreshold ? void 0 : u(P.type, !0),
2027
- onMousedown: (ge) => i(c).timeArrowHoldThreshold ? u(P.type, !0) : void 0,
2025
+ onKeydown: (ge) => i(Xe)(ge, () => u(S.type, !0, { keyboard: !0 }), !0),
2026
+ onClick: (ge) => i(c).timeArrowHoldThreshold ? void 0 : u(S.type, !0),
2027
+ onMousedown: (ge) => i(c).timeArrowHoldThreshold ? u(S.type, !0) : void 0,
2028
2028
  onMouseup: z
2029
2029
  }, [
2030
2030
  l.timePickerInline ? (T(), F(be, { key: 1 }, [
@@ -2041,28 +2041,28 @@ const Yt = (e, a) => e?.querySelector(`[data-dp-element="${a}"]`), Al = (e, a) =
2041
2041
  ref_for: !0,
2042
2042
  ref: (ge) => x(ge, he, 1),
2043
2043
  type: "button",
2044
- "aria-label": `${f.value(P.type).text}-${(q = i(_)) == null ? void 0 : q.openTpOverlay(P.type)}`,
2044
+ "aria-label": `${f.value(S.type).text}-${(q = i(_)) == null ? void 0 : q.openTpOverlay(S.type)}`,
2045
2045
  class: we({
2046
2046
  dp__time_display: !0,
2047
2047
  dp__time_display_block: !o.timePickerInline,
2048
2048
  dp__time_display_inline: o.timePickerInline,
2049
- "dp--time-invalid": te.value(P.type),
2050
- "dp--time-overlay-btn": !te.value(P.type),
2051
- "dp--hidden-el": S.value
2049
+ "dp--time-invalid": te.value(S.type),
2050
+ "dp--time-overlay-btn": !te.value(S.type),
2051
+ "dp--hidden-el": P.value
2052
2052
  }),
2053
- disabled: k(P.type),
2053
+ disabled: k(S.type),
2054
2054
  tabindex: "0",
2055
- "data-test": `${P.type}-toggle-overlay-btn-${l.order}`,
2056
- onKeydown: (ge) => i(Xe)(ge, () => n(P.type), !0),
2057
- onClick: (ge) => n(P.type)
2055
+ "data-test": `${S.type}-toggle-overlay-btn-${l.order}`,
2056
+ onKeydown: (ge) => i(Xe)(ge, () => n(S.type), !0),
2057
+ onClick: (ge) => n(S.type)
2058
2058
  }, [
2059
- o.$slots[P.type] ? se(o.$slots, P.type, {
2059
+ o.$slots[S.type] ? se(o.$slots, S.type, {
2060
2060
  key: 0,
2061
- text: f.value(P.type).text,
2062
- value: f.value(P.type).value
2061
+ text: f.value(S.type).text,
2062
+ value: f.value(S.type).value
2063
2063
  }) : Q("", !0),
2064
- o.$slots[P.type] ? Q("", !0) : (T(), F(be, { key: 1 }, [
2065
- ca(He(f.value(P.type).text), 1)
2064
+ o.$slots[S.type] ? Q("", !0) : (T(), F(be, { key: 1 }, [
2065
+ ca(He(f.value(S.type).text), 1)
2066
2066
  ], 64))
2067
2067
  ], 42, ir),
2068
2068
  ye("button", {
@@ -2074,15 +2074,15 @@ const Yt = (e, a) => e?.querySelector(`[data-dp-element="${a}"]`), Al = (e, a) =
2074
2074
  dp__inc_dec_button: !o.timePickerInline,
2075
2075
  dp__inc_dec_button_inline: o.timePickerInline,
2076
2076
  dp__tp_inline_btn_bottom: o.timePickerInline,
2077
- dp__inc_dec_button_disabled: I.value(P.type),
2078
- "dp--hidden-el": S.value
2077
+ dp__inc_dec_button_disabled: I.value(S.type),
2078
+ "dp--hidden-el": P.value
2079
2079
  }),
2080
- "data-test": `${P.type}-time-dec-btn-${l.order}`,
2081
- "aria-label": (de = i(_)) == null ? void 0 : de.decrementValue(P.type),
2080
+ "data-test": `${S.type}-time-dec-btn-${l.order}`,
2081
+ "aria-label": (de = i(_)) == null ? void 0 : de.decrementValue(S.type),
2082
2082
  tabindex: "0",
2083
- onKeydown: (ge) => i(Xe)(ge, () => u(P.type, !1, { keyboard: !0 }), !0),
2084
- onClick: (ge) => i(c).timeArrowHoldThreshold ? void 0 : u(P.type, !1),
2085
- onMousedown: (ge) => i(c).timeArrowHoldThreshold ? u(P.type, !1) : void 0,
2083
+ onKeydown: (ge) => i(Xe)(ge, () => u(S.type, !1, { keyboard: !0 }), !0),
2084
+ onClick: (ge) => i(c).timeArrowHoldThreshold ? void 0 : u(S.type, !1),
2085
+ onMousedown: (ge) => i(c).timeArrowHoldThreshold ? u(S.type, !1) : void 0,
2086
2086
  onMouseup: z
2087
2087
  }, [
2088
2088
  l.timePickerInline ? (T(), F(be, { key: 1 }, [
@@ -2114,30 +2114,30 @@ const Yt = (e, a) => e?.querySelector(`[data-dp-element="${a}"]`), Al = (e, a) =
2114
2114
  "aria-label": (W = i(_)) == null ? void 0 : W.amPmButton,
2115
2115
  tabindex: "0",
2116
2116
  onClick: me,
2117
- onKeydown: Y[0] || (Y[0] = (P) => i(Xe)(P, () => me(), !0))
2117
+ onKeydown: Y[0] || (Y[0] = (S) => i(Xe)(S, () => me(), !0))
2118
2118
  }, He(M.value), 41, vr))
2119
2119
  ])),
2120
- (T(!0), F(be, null, $e(A.value, (P, he) => (T(), Ae(Va, {
2120
+ (T(!0), F(be, null, $e(A.value, (S, he) => (T(), Ae(Va, {
2121
2121
  key: he,
2122
- name: i(m)(C[P.type]),
2122
+ name: i(m)(C[S.type]),
2123
2123
  css: i(D)
2124
2124
  }, {
2125
2125
  default: _e(() => {
2126
2126
  var w, q;
2127
2127
  return [
2128
- C[P.type] ? (T(), Ae(Ga, {
2128
+ C[S.type] ? (T(), Ae(Ga, {
2129
2129
  key: 0,
2130
- items: O(P.type),
2130
+ items: O(S.type),
2131
2131
  "is-last": o.autoApply && !i(c).keepActionRow,
2132
2132
  "esc-close": o.escClose,
2133
- type: P.type,
2133
+ type: S.type,
2134
2134
  "text-input": o.textInput,
2135
2135
  config: o.config,
2136
2136
  "arrow-navigation": o.arrowNavigation,
2137
2137
  "aria-labels": o.ariaLabels,
2138
- "overlay-label": (q = (w = i(_)).timeOverlay) == null ? void 0 : q.call(w, P.type),
2139
- onSelected: (de) => G(P.type, de),
2140
- onToggle: (de) => n(P.type),
2138
+ "overlay-label": (q = (w = i(_)).timeOverlay) == null ? void 0 : q.call(w, S.type),
2139
+ onSelected: (de) => G(S.type, de),
2140
+ onToggle: (de) => n(S.type),
2141
2141
  onResetFlow: Y[1] || (Y[1] = (de) => o.$emit("reset-flow"))
2142
2142
  }, Fe({
2143
2143
  "button-icon": _e(() => [
@@ -2146,21 +2146,21 @@ const Yt = (e, a) => e?.querySelector(`[data-dp-element="${a}"]`), Al = (e, a) =
2146
2146
  ]),
2147
2147
  _: 2
2148
2148
  }, [
2149
- o.$slots[`${P.type}-overlay-value`] ? {
2149
+ o.$slots[`${S.type}-overlay-value`] ? {
2150
2150
  name: "item",
2151
2151
  fn: _e(({ item: de }) => [
2152
- se(o.$slots, `${P.type}-overlay-value`, {
2152
+ se(o.$slots, `${S.type}-overlay-value`, {
2153
2153
  text: de.text,
2154
2154
  value: de.value
2155
2155
  })
2156
2156
  ]),
2157
2157
  key: "0"
2158
2158
  } : void 0,
2159
- o.$slots[`${P.type}-overlay-header`] ? {
2159
+ o.$slots[`${S.type}-overlay-header`] ? {
2160
2160
  name: "header",
2161
2161
  fn: _e(() => [
2162
- se(o.$slots, `${P.type}-overlay-header`, {
2163
- toggle: () => n(P.type)
2162
+ se(o.$slots, `${S.type}-overlay-header`, {
2163
+ toggle: () => n(S.type)
2164
2164
  })
2165
2165
  ]),
2166
2166
  key: "1"
@@ -2200,7 +2200,7 @@ const Yt = (e, a) => e?.querySelector(`[data-dp-element="${a}"]`), Al = (e, a) =
2200
2200
  "am-pm-change"
2201
2201
  ],
2202
2202
  setup(e, { expose: a, emit: r }) {
2203
- const t = r, l = e, { buildMatrix: s, setTimePicker: d } = wa(), _ = Sa(), { defaultedTransitions: v, defaultedAriaLabels: E, defaultedTextInput: c, defaultedConfig: p, defaultedRange: m } = Se(l), { transitionName: D, showTransition: C } = Ja(v), { hideNavigationButtons: M } = mt(), X = Z(null), N = Z(null), J = Z([]), S = Z(null), K = Z(!1);
2203
+ const t = r, l = e, { buildMatrix: s, setTimePicker: d } = wa(), _ = Pa(), { defaultedTransitions: v, defaultedAriaLabels: E, defaultedTextInput: c, defaultedConfig: p, defaultedRange: m } = Pe(l), { transitionName: D, showTransition: C } = Ja(v), { hideNavigationButtons: M } = mt(), X = Z(null), N = Z(null), J = Z([]), P = Z(null), K = Z(!1);
2204
2204
  Ue(() => {
2205
2205
  t("mount"), !l.timePicker && l.arrowNavigation ? s([Be(X.value)], "time") : d(!0, l.timePicker);
2206
2206
  });
@@ -2231,8 +2231,8 @@ const Yt = (e, a) => e?.querySelector(`[data-dp-element="${a}"]`), Al = (e, a) =
2231
2231
  }, A = (O) => {
2232
2232
  t("update:seconds", O);
2233
2233
  }, f = () => {
2234
- if (S.value && !c.value.enabled && !l.noOverlayFocus) {
2235
- const O = Ml(S.value);
2234
+ if (P.value && !c.value.enabled && !l.noOverlayFocus) {
2235
+ const O = Ml(P.value);
2236
2236
  O && O.focus({ preventScroll: !0 });
2237
2237
  }
2238
2238
  }, V = (O) => {
@@ -2270,7 +2270,7 @@ const Yt = (e, a) => e?.querySelector(`[data-dp-element="${a}"]`), Al = (e, a) =
2270
2270
  R.value || O.timePicker || O.timePickerInline ? (T(), F("div", {
2271
2271
  key: 0,
2272
2272
  ref_key: "overlayRef",
2273
- ref: S,
2273
+ ref: P,
2274
2274
  role: O.timePickerInline ? void 0 : "dialog",
2275
2275
  class: we({
2276
2276
  dp__overlay: !O.timePickerInline,
@@ -2361,11 +2361,11 @@ const Yt = (e, a) => e?.querySelector(`[data-dp-element="${a}"]`), Al = (e, a) =
2361
2361
  };
2362
2362
  }
2363
2363
  }), El = (e, a, r, t) => {
2364
- const { defaultedRange: l } = Se(e), s = (S, K) => Array.isArray(a[S]) ? a[S][K] : a[S], d = (S) => e.enableSeconds ? Array.isArray(a.seconds) ? a.seconds[S] : a.seconds : 0, _ = (S, K) => S ? K !== void 0 ? ba(S, s("hours", K), s("minutes", K), d(K)) : ba(S, a.hours, a.minutes, d()) : hl(U(), d(K)), v = (S, K) => {
2365
- a[S] = K;
2366
- }, E = j(() => e.modelAuto && l.value.enabled ? Array.isArray(r.value) ? r.value.length > 1 : !1 : l.value.enabled), c = (S, K) => {
2364
+ const { defaultedRange: l } = Pe(e), s = (P, K) => Array.isArray(a[P]) ? a[P][K] : a[P], d = (P) => e.enableSeconds ? Array.isArray(a.seconds) ? a.seconds[P] : a.seconds : 0, _ = (P, K) => P ? K !== void 0 ? ba(P, s("hours", K), s("minutes", K), d(K)) : ba(P, a.hours, a.minutes, d()) : hl(U(), d(K)), v = (P, K) => {
2365
+ a[P] = K;
2366
+ }, E = j(() => e.modelAuto && l.value.enabled ? Array.isArray(r.value) ? r.value.length > 1 : !1 : l.value.enabled), c = (P, K) => {
2367
2367
  const te = Object.fromEntries(
2368
- Object.keys(a).map((R) => R === S ? [R, K] : [R, a[R]].slice())
2368
+ Object.keys(a).map((R) => R === P ? [R, K] : [R, a[R]].slice())
2369
2369
  );
2370
2370
  if (E.value && !l.value.disableTimeRangeValidation) {
2371
2371
  const R = (le) => r.value ? ba(
@@ -2377,31 +2377,31 @@ const Yt = (e, a) => e?.querySelector(`[data-dp-element="${a}"]`), Al = (e, a) =
2377
2377
  return !(Me(R(0), R(1)) && (Ba(R(0), B(1)) || Xa(R(1), B(0))));
2378
2378
  }
2379
2379
  return !0;
2380
- }, p = (S, K) => {
2381
- c(S, K) && (v(S, K), t && t());
2382
- }, m = (S) => {
2383
- p("hours", S);
2384
- }, D = (S) => {
2385
- p("minutes", S);
2386
- }, C = (S) => {
2387
- p("seconds", S);
2388
- }, M = (S, K, te, R) => {
2389
- K && m(S), !K && !te && D(S), te && C(S), r.value && R(r.value);
2390
- }, X = (S) => {
2391
- if (S) {
2392
- const K = Array.isArray(S), te = K ? [+S[0].hours, +S[1].hours] : +S.hours, R = K ? [+S[0].minutes, +S[1].minutes] : +S.minutes, B = K ? [+S[0].seconds, +S[1].seconds] : +S.seconds;
2380
+ }, p = (P, K) => {
2381
+ c(P, K) && (v(P, K), t && t());
2382
+ }, m = (P) => {
2383
+ p("hours", P);
2384
+ }, D = (P) => {
2385
+ p("minutes", P);
2386
+ }, C = (P) => {
2387
+ p("seconds", P);
2388
+ }, M = (P, K, te, R) => {
2389
+ K && m(P), !K && !te && D(P), te && C(P), r.value && R(r.value);
2390
+ }, X = (P) => {
2391
+ if (P) {
2392
+ const K = Array.isArray(P), te = K ? [+P[0].hours, +P[1].hours] : +P.hours, R = K ? [+P[0].minutes, +P[1].minutes] : +P.minutes, B = K ? [+P[0].seconds, +P[1].seconds] : +P.seconds;
2393
2393
  v("hours", te), v("minutes", R), e.enableSeconds && v("seconds", B);
2394
2394
  }
2395
- }, N = (S, K) => {
2395
+ }, N = (P, K) => {
2396
2396
  const te = {
2397
- hours: Array.isArray(a.hours) ? a.hours[S] : a.hours,
2397
+ hours: Array.isArray(a.hours) ? a.hours[P] : a.hours,
2398
2398
  disabledArr: []
2399
2399
  };
2400
- return (K || K === 0) && (te.hours = K), Array.isArray(e.disabledTimes) && (te.disabledArr = l.value.enabled && Array.isArray(e.disabledTimes[S]) ? e.disabledTimes[S] : e.disabledTimes), te;
2401
- }, J = j(() => (S, K) => {
2400
+ return (K || K === 0) && (te.hours = K), Array.isArray(e.disabledTimes) && (te.disabledArr = l.value.enabled && Array.isArray(e.disabledTimes[P]) ? e.disabledTimes[P] : e.disabledTimes), te;
2401
+ }, J = j(() => (P, K) => {
2402
2402
  var te;
2403
2403
  if (Array.isArray(e.disabledTimes)) {
2404
- const { disabledArr: R, hours: B } = N(S, K), le = R.filter((H) => +H.hours === B);
2404
+ const { disabledArr: R, hours: B } = N(P, K), le = R.filter((H) => +H.hours === B);
2405
2405
  return ((te = le[0]) == null ? void 0 : te.minutes) === "*" ? { hours: [B], minutes: void 0, seconds: void 0 } : {
2406
2406
  hours: [],
2407
2407
  minutes: le?.map((H) => +H.minutes) ?? [],
@@ -2425,7 +2425,7 @@ const Yt = (e, a) => e?.querySelector(`[data-dp-element="${a}"]`), Al = (e, a) =
2425
2425
  }, hr = (e, a) => {
2426
2426
  const r = () => {
2427
2427
  e.isTextInputDate && K();
2428
- }, { modelValue: t, time: l } = Wa(e, a, r), { defaultedStartTime: s, defaultedRange: d, defaultedTz: _ } = Se(e), { updateTimeValues: v, getSetDateTime: E, setTime: c, assignStartTime: p, disabledTimesConfig: m, validateTime: D } = El(e, l, t, C);
2428
+ }, { modelValue: t, time: l } = Wa(e, a, r), { defaultedStartTime: s, defaultedRange: d, defaultedTz: _ } = Pe(e), { updateTimeValues: v, getSetDateTime: E, setTime: c, assignStartTime: p, disabledTimesConfig: m, validateTime: D } = El(e, l, t, C);
2429
2429
  function C() {
2430
2430
  a("update-flow-step");
2431
2431
  }
@@ -2451,15 +2451,15 @@ const Yt = (e, a) => e?.querySelector(`[data-dp-element="${a}"]`), Al = (e, a) =
2451
2451
  ];
2452
2452
  } else
2453
2453
  t.value = Qe(E(X()), _.value.timezone);
2454
- }, J = (R) => Array.isArray(R) ? [$a(U(R[0])), $a(U(R[1]))] : [$a(R ?? U())], S = (R, B, le) => {
2454
+ }, J = (R) => Array.isArray(R) ? [$a(U(R[0])), $a(U(R[1]))] : [$a(R ?? U())], P = (R, B, le) => {
2455
2455
  c("hours", R), c("minutes", B), c("seconds", e.enableSeconds ? le : 0);
2456
2456
  }, K = () => {
2457
2457
  const [R, B] = J(t.value);
2458
- return d.value.enabled ? S(
2458
+ return d.value.enabled ? P(
2459
2459
  [R.hours, B.hours],
2460
2460
  [R.minutes, B.minutes],
2461
2461
  [R.seconds, B.seconds]
2462
- ) : S(R.hours, R.minutes, R.seconds);
2462
+ ) : P(R.hours, R.minutes, R.seconds);
2463
2463
  };
2464
2464
  Ue(() => {
2465
2465
  if (!e.shadow)
@@ -2495,7 +2495,7 @@ const Yt = (e, a) => e?.querySelector(`[data-dp-element="${a}"]`), Al = (e, a) =
2495
2495
  "overlay-toggle"
2496
2496
  ],
2497
2497
  setup(e, { expose: a, emit: r }) {
2498
- const t = r, l = e, s = Sa(), d = Je(s, "timePicker"), _ = Z(null), { time: v, modelValue: E, disabledTimesConfig: c, updateTime: p, validateTime: m } = hr(l, t);
2498
+ const t = r, l = e, s = Pa(), d = Je(s, "timePicker"), _ = Z(null), { time: v, modelValue: E, disabledTimesConfig: c, updateTime: p, validateTime: m } = hr(l, t);
2499
2499
  return Ue(() => {
2500
2500
  l.shadow || t("mount", null);
2501
2501
  }), a({ getSidebarProps: () => ({
@@ -2566,7 +2566,7 @@ const Yt = (e, a) => e?.querySelector(`[data-dp-element="${a}"]`), Al = (e, a) =
2566
2566
  defaultedHighlight: c,
2567
2567
  propDates: p,
2568
2568
  defaultedUI: m
2569
- } = Se(l), { transitionName: D, showTransition: C } = Ja(s), { buildMatrix: M } = wa(), { handleMonthYearChange: X, isDisabled: N, updateMonthYear: J } = Xn(l, t), { showLeftIcon: S, showRightIcon: K } = mt(), te = Z(!1), R = Z(!1), B = Z(!1), le = Z([null, null, null, null]);
2569
+ } = Pe(l), { transitionName: D, showTransition: C } = Ja(s), { buildMatrix: M } = wa(), { handleMonthYearChange: X, isDisabled: N, updateMonthYear: J } = Xn(l, t), { showLeftIcon: P, showRightIcon: K } = mt(), te = Z(!1), R = Z(!1), B = Z(!1), le = Z([null, null, null, null]);
2570
2570
  Ue(() => {
2571
2571
  t("mount");
2572
2572
  });
@@ -2650,7 +2650,7 @@ const Yt = (e, a) => e?.querySelector(`[data-dp-element="${a}"]`), Al = (e, a) =
2650
2650
  se(k.$slots, "top-extra", { value: k.internalModelValue })
2651
2651
  ])) : Q("", !0),
2652
2652
  ye("div", kr, [
2653
- i(S)(i(_), e.instance) && !k.vertical ? (T(), Ae(Ua, {
2653
+ i(P)(i(_), e.instance) && !k.vertical ? (T(), Ae(Ua, {
2654
2654
  key: 0,
2655
2655
  "aria-label": (g = i(d)) == null ? void 0 : g.prevMonth,
2656
2656
  disabled: i(N)(!1),
@@ -2754,7 +2754,7 @@ const Yt = (e, a) => e?.querySelector(`[data-dp-element="${a}"]`), Al = (e, a) =
2754
2754
  }, 1032, ["name", "css"])
2755
2755
  ], 64))), 128))
2756
2756
  ], 2),
2757
- i(S)(i(_), e.instance) && k.vertical ? (T(), Ae(Ua, {
2757
+ i(P)(i(_), e.instance) && k.vertical ? (T(), Ae(Ua, {
2758
2758
  key: 1,
2759
2759
  "aria-label": (u = i(d)) == null ? void 0 : u.prevMonth,
2760
2760
  "el-name": "action-prev",
@@ -2800,7 +2800,7 @@ const Yt = (e, a) => e?.querySelector(`[data-dp-element="${a}"]`), Al = (e, a) =
2800
2800
  key: 0,
2801
2801
  class: "dp__calendar_item dp__week_num",
2802
2802
  role: "gridcell"
2803
- }, Sr = { class: "dp__cell_inner" }, Pr = ["id", "aria-pressed", "aria-disabled", "aria-label", "tabindex", "data-test", "onClick", "onTouchend", "onKeydown", "onMouseenter", "onMouseleave", "onMousedown"], Cr = /* @__PURE__ */ Le({
2803
+ }, Pr = { class: "dp__cell_inner" }, Sr = ["id", "aria-pressed", "aria-disabled", "aria-label", "tabindex", "data-test", "onClick", "onTouchend", "onKeydown", "onMouseenter", "onMouseleave", "onMousedown"], Cr = /* @__PURE__ */ Le({
2804
2804
  compatConfig: {
2805
2805
  MODE: 3
2806
2806
  },
@@ -2831,11 +2831,11 @@ const Yt = (e, a) => e?.querySelector(`[data-dp-element="${a}"]`), Al = (e, a) =
2831
2831
  defaultedWeekNumbers: c,
2832
2832
  defaultedMultiDates: p,
2833
2833
  defaultedUI: m
2834
- } = Se(l), D = Z(null), C = Z({
2834
+ } = Pe(l), D = Z(null), C = Z({
2835
2835
  bottom: "",
2836
2836
  left: "",
2837
2837
  transform: ""
2838
- }), M = Z([]), X = Z(null), N = Z(!0), J = Z(""), S = Z({ startX: 0, endX: 0, startY: 0, endY: 0 }), K = Z([]), te = Z({ left: "50%" }), R = Z(!1), B = j(() => l.calendar ? l.calendar(l.mappedDates) : l.mappedDates), le = j(() => l.dayNames ? Array.isArray(l.dayNames) ? l.dayNames : l.dayNames(l.locale, +l.weekStart) : mn(l.formatLocale, l.locale, +l.weekStart));
2838
+ }), M = Z([]), X = Z(null), N = Z(!0), J = Z(""), P = Z({ startX: 0, endX: 0, startY: 0, endY: 0 }), K = Z([]), te = Z({ left: "50%" }), R = Z(!1), B = j(() => l.calendar ? l.calendar(l.mappedDates) : l.mappedDates), le = j(() => l.dayNames ? Array.isArray(l.dayNames) ? l.dayNames : l.dayNames(l.locale, +l.weekStart) : mn(l.formatLocale, l.locale, +l.weekStart));
2839
2839
  Ue(() => {
2840
2840
  t("mount", { cmp: "calendar", refs: M }), _.value.noSwipe || X.value && (X.value.addEventListener("touchstart", h, { passive: !1 }), X.value.addEventListener("touchend", oe, { passive: !1 }), X.value.addEventListener("touchmove", L, { passive: !1 })), l.monthChangeOnScroll && X.value && X.value.addEventListener("wheel", g, { passive: !1 });
2841
2841
  });
@@ -2862,20 +2862,20 @@ const Yt = (e, a) => e?.querySelector(`[data-dp-element="${a}"]`), Al = (e, a) =
2862
2862
  })), A = j(() => (x) => l.hideOffsetDates ? x.current : !0), f = async (x, G) => {
2863
2863
  const { width: o, height: Y } = x.getBoundingClientRect();
2864
2864
  D.value = G.value;
2865
- let W = { left: `${o / 2}px` }, P = -50;
2865
+ let W = { left: `${o / 2}px` }, S = -50;
2866
2866
  if (await Ze(), K.value[0]) {
2867
2867
  const { left: he, width: w } = K.value[0].getBoundingClientRect();
2868
- he < 0 && (W = { left: "0" }, P = 0, te.value.left = `${o / 2}px`), window.innerWidth < he + w && (W = { right: "0" }, P = 0, te.value.left = `${w - o / 2}px`);
2868
+ he < 0 && (W = { left: "0" }, S = 0, te.value.left = `${o / 2}px`), window.innerWidth < he + w && (W = { right: "0" }, S = 0, te.value.left = `${w - o / 2}px`);
2869
2869
  }
2870
2870
  C.value = {
2871
2871
  bottom: `${Y}px`,
2872
2872
  ...W,
2873
- transform: `translateX(${P}%)`
2873
+ transform: `translateX(${S}%)`
2874
2874
  };
2875
2875
  }, V = async (x, G, o) => {
2876
- var Y, W, P;
2876
+ var Y, W, S;
2877
2877
  const he = Be(M.value[G][o]);
2878
- he && ((Y = x.marker) != null && Y.customPosition && (P = (W = x.marker) == null ? void 0 : W.tooltip) != null && P.length ? C.value = x.marker.customPosition(he) : await f(he, x), t("tooltip-open", x.marker));
2878
+ he && ((Y = x.marker) != null && Y.customPosition && (S = (W = x.marker) == null ? void 0 : W.tooltip) != null && S.length ? C.value = x.marker.customPosition(he) : await f(he, x), t("tooltip-open", x.marker));
2879
2879
  }, ne = async (x, G, o) => {
2880
2880
  var Y, W;
2881
2881
  if (R.value && p.value.enabled && p.value.dragSelect)
@@ -2884,14 +2884,14 @@ const Yt = (e, a) => e?.querySelector(`[data-dp-element="${a}"]`), Al = (e, a) =
2884
2884
  }, O = (x) => {
2885
2885
  D.value && (D.value = null, C.value = JSON.parse(JSON.stringify({ bottom: "", left: "", transform: "" })), t("tooltip-close", x.marker));
2886
2886
  }, h = (x) => {
2887
- S.value.startX = x.changedTouches[0].screenX, S.value.startY = x.changedTouches[0].screenY;
2887
+ P.value.startX = x.changedTouches[0].screenX, P.value.startY = x.changedTouches[0].screenY;
2888
2888
  }, oe = (x) => {
2889
- S.value.endX = x.changedTouches[0].screenX, S.value.endY = x.changedTouches[0].screenY, k();
2889
+ P.value.endX = x.changedTouches[0].screenX, P.value.endY = x.changedTouches[0].screenY, k();
2890
2890
  }, L = (x) => {
2891
2891
  l.vertical && !l.inline && x.preventDefault();
2892
2892
  }, k = () => {
2893
2893
  const x = l.vertical ? "Y" : "X";
2894
- Math.abs(S.value[`start${x}`] - S.value[`end${x}`]) > 10 && t("handle-swipe", S.value[`start${x}`] > S.value[`end${x}`] ? "right" : "left");
2894
+ Math.abs(P.value[`start${x}`] - P.value[`end${x}`]) > 10 && t("handle-swipe", P.value[`start${x}`] > P.value[`end${x}`] ? "right" : "left");
2895
2895
  }, n = (x, G, o) => {
2896
2896
  x && (Array.isArray(M.value[G]) ? M.value[G][o] = x : M.value[G] = [x]), l.arrowNavigation && s(M.value, "calendar");
2897
2897
  }, g = (x) => {
@@ -2918,13 +2918,13 @@ const Yt = (e, a) => e?.querySelector(`[data-dp-element="${a}"]`), Al = (e, a) =
2918
2918
  ye("div", Dr, [
2919
2919
  x.weekNumbers ? (T(), F("div", xr, He(x.weekNumName), 1)) : Q("", !0),
2920
2920
  (T(!0), F(be, null, $e(le.value, (o, Y) => {
2921
- var W, P;
2921
+ var W, S;
2922
2922
  return T(), F("div", {
2923
2923
  key: Y,
2924
2924
  class: "dp__calendar_header_item",
2925
2925
  role: "gridcell",
2926
2926
  "data-test": "calendar-header",
2927
- "aria-label": (P = (W = i(v)) == null ? void 0 : W.weekDay) == null ? void 0 : P.call(W, Y)
2927
+ "aria-label": (S = (W = i(v)) == null ? void 0 : W.weekDay) == null ? void 0 : S.call(W, Y)
2928
2928
  }, [
2929
2929
  x.$slots["calendar-header"] ? se(x.$slots, "calendar-header", {
2930
2930
  key: 0,
@@ -2955,15 +2955,15 @@ const Yt = (e, a) => e?.querySelector(`[data-dp-element="${a}"]`), Al = (e, a) =
2955
2955
  role: "row"
2956
2956
  }, [
2957
2957
  x.weekNumbers ? (T(), F("div", $r, [
2958
- ye("div", Sr, He(u(o.days)), 1)
2958
+ ye("div", Pr, He(u(o.days)), 1)
2959
2959
  ])) : Q("", !0),
2960
- (T(!0), F(be, null, $e(o.days, (W, P) => {
2960
+ (T(!0), F(be, null, $e(o.days, (W, S) => {
2961
2961
  var he, w, q;
2962
2962
  return T(), F("div", {
2963
2963
  id: i(Ol)(W.value),
2964
2964
  ref_for: !0,
2965
- ref: (de) => n(de, Y, P),
2966
- key: P + Y,
2965
+ ref: (de) => n(de, Y, S),
2966
+ key: S + Y,
2967
2967
  role: "gridcell",
2968
2968
  class: "dp__calendar_item",
2969
2969
  "aria-pressed": (W.classData.dp__active_date || W.classData.dp__range_start || W.classData.dp__range_start) ?? void 0,
@@ -2974,7 +2974,7 @@ const Yt = (e, a) => e?.querySelector(`[data-dp-element="${a}"]`), Al = (e, a) =
2974
2974
  onClick: Ka((de) => re(de, W), ["prevent"]),
2975
2975
  onTouchend: (de) => re(de, W, !1),
2976
2976
  onKeydown: (de) => i(Xe)(de, () => x.$emit("select-date", W)),
2977
- onMouseenter: (de) => ne(W, Y, P),
2977
+ onMouseenter: (de) => ne(W, Y, S),
2978
2978
  onMouseleave: (de) => O(W),
2979
2979
  onMousedown: (de) => Re(W),
2980
2980
  onMouseup: G[0] || (G[0] = (de) => R.value = !1)
@@ -3039,7 +3039,7 @@ const Yt = (e, a) => e?.querySelector(`[data-dp-element="${a}"]`), Al = (e, a) =
3039
3039
  ])) : Q("", !0)
3040
3040
  ], 4)) : Q("", !0)
3041
3041
  ], 2)
3042
- ], 40, Pr);
3042
+ ], 40, Sr);
3043
3043
  }), 128))
3044
3044
  ]))), 128))
3045
3045
  ], 32)) : Q("", !0)
@@ -3058,7 +3058,7 @@ const Yt = (e, a) => e?.querySelector(`[data-dp-element="${a}"]`), Al = (e, a) =
3058
3058
  defaultedTz: X,
3059
3059
  propDates: N,
3060
3060
  defaultedMultiDates: J
3061
- } = Se(e), { validateMonthYearInRange: S, isDisabled: K, isDateRangeAllowed: te, checkMinMaxRange: R } = ka(e), { updateTimeValues: B, getSetDateTime: le, setTime: H, assignStartTime: I, validateTime: ue, disabledTimesConfig: ve } = El(e, c, v, t), pe = j(
3061
+ } = Pe(e), { validateMonthYearInRange: P, isDisabled: K, isDateRangeAllowed: te, checkMinMaxRange: R } = ka(e), { updateTimeValues: B, getSetDateTime: le, setTime: H, assignStartTime: I, validateTime: ue, disabledTimesConfig: ve } = El(e, c, v, t), pe = j(
3062
3062
  () => (b) => E.value[b] ? E.value[b].month : 0
3063
3063
  ), y = j(
3064
3064
  () => (b) => E.value[b] ? E.value[b].year : 0
@@ -3115,7 +3115,7 @@ const Yt = (e, a) => e?.querySelector(`[data-dp-element="${a}"]`), Al = (e, a) =
3115
3115
  z(ae, b), m.value.count && m.value.solo && Re();
3116
3116
  }, re = (b, ae) => {
3117
3117
  const $ = De(U(), { month: pe.value(ae), year: y.value(ae) }), ee = b < 0 ? xa($, 1) : qa($, 1);
3118
- S(ke(ee), fe(ee), b < 0, e.preventMinMaxNavigation) && (f(ae, ke(ee), fe(ee)), a("update-month-year", { instance: ae, month: ke(ee), year: fe(ee) }), m.value.count && !m.value.solo && me(ae), r());
3118
+ P(ke(ee), fe(ee), b < 0, e.preventMinMaxNavigation) && (f(ae, ke(ee), fe(ee)), a("update-month-year", { instance: ae, month: ke(ee), year: fe(ee) }), m.value.count && !m.value.solo && me(ae), r());
3119
3119
  }, me = (b) => {
3120
3120
  for (let ae = b - 1; ae >= 0; ae--) {
3121
3121
  const $ = qa(De(U(), { month: pe.value(ae + 1), year: y.value(ae + 1) }), 1);
@@ -3147,7 +3147,7 @@ const Yt = (e, a) => e?.querySelector(`[data-dp-element="${a}"]`), Al = (e, a) =
3147
3147
  }, W = (b) => {
3148
3148
  if (N.value.markers)
3149
3149
  return ut(b.value, N.value.markers);
3150
- }, P = (b, ae) => {
3150
+ }, S = (b, ae) => {
3151
3151
  switch (e.sixWeeks === !0 ? "append" : e.sixWeeks) {
3152
3152
  case "prepend":
3153
3153
  return [!0, !1];
@@ -3162,7 +3162,7 @@ const Yt = (e, a) => e?.querySelector(`[data-dp-element="${a}"]`), Al = (e, a) =
3162
3162
  }
3163
3163
  }, he = (b, ae, $, ee) => {
3164
3164
  if (e.sixWeeks && b.length < 6) {
3165
- const ie = 6 - b.length, ze = (ae.getDay() + 7 - ee) % 7, aa = 6 - ($.getDay() + 7 - ee) % 7, [Ma, et] = P(ze, aa);
3165
+ const ie = 6 - b.length, ze = (ae.getDay() + 7 - ee) % 7, aa = 6 - ($.getDay() + 7 - ee) % 7, [Ma, et] = S(ze, aa);
3166
3166
  for (let Ha = 1; Ha <= ie; Ha++)
3167
3167
  if (et ? !!(Ha % 2) == Ma : Ma) {
3168
3168
  const fa = b[0].days[0], kt = w(Da(fa.value, -7), ke(ae));
@@ -3225,7 +3225,7 @@ const Yt = (e, a) => e?.querySelector(`[data-dp-element="${a}"]`), Al = (e, a) =
3225
3225
  }, Ea = (b, ae) => {
3226
3226
  if (ea(), C.value.autoRange) return ce(b, ae);
3227
3227
  if (C.value.fixedStart || C.value.fixedEnd) return ua(b);
3228
- l.value[0] ? R(U(b.value), v.value) && !ge(b.value) ? Pe(U(b.value), U(l.value[0])) ? (l.value.unshift(U(b.value)), a("range-end", l.value[0])) : (l.value[1] = U(b.value), a("range-end", l.value[1])) : (e.autoApply && a("auto-apply-invalid", b.value), a("invalid-date", b.value)) : (l.value[0] = U(b.value), a("range-start", l.value[0]));
3228
+ l.value[0] ? R(U(b.value), v.value) && !ge(b.value) ? Se(U(b.value), U(l.value[0])) ? (l.value.unshift(U(b.value)), a("range-end", l.value[0])) : (l.value[1] = U(b.value), a("range-end", l.value[1])) : (e.autoApply && a("auto-apply-invalid", b.value), a("invalid-date", b.value)) : (l.value[0] = U(b.value), a("range-start", l.value[0]));
3229
3229
  }, Ge = (b = !0) => e.enableSeconds ? Array.isArray(c.seconds) ? b ? c.seconds[0] : c.seconds[1] : c.seconds : 0, Na = (b) => {
3230
3230
  l.value[b] = ba(
3231
3231
  l.value[b],
@@ -3256,7 +3256,7 @@ const Yt = (e, a) => e?.querySelector(`[data-dp-element="${a}"]`), Al = (e, a) =
3256
3256
  }), V(), e.multiCalendars && Ze().then(() => h(!0));
3257
3257
  }, bt = () => {
3258
3258
  const b = zt(U(), X.value);
3259
- C.value.enabled ? v.value && Array.isArray(v.value) && v.value[0] ? v.value = Pe(b, v.value[0]) ? [b, v.value[0]] : [v.value[0], b] : v.value = [b] : v.value = b, V();
3259
+ C.value.enabled ? v.value && Array.isArray(v.value) && v.value[0] ? v.value = Se(b, v.value[0]) ? [b, v.value[0]] : [v.value[0], b] : v.value = [b] : v.value = b, V();
3260
3260
  }, _t = () => {
3261
3261
  if (Array.isArray(v.value))
3262
3262
  if (J.value.enabled) {
@@ -3336,12 +3336,12 @@ const Yt = (e, a) => e?.querySelector(`[data-dp-element="${a}"]`), Al = (e, a) =
3336
3336
  handleScroll: X,
3337
3337
  handleSwipe: N,
3338
3338
  selectDate: J,
3339
- updateMonthYear: S,
3339
+ updateMonthYear: P,
3340
3340
  presetDate: K,
3341
3341
  selectCurrentDate: te,
3342
3342
  updateTime: R,
3343
3343
  assignMonthAndYear: B
3344
- } = Or(l, t, oe, L), le = Sa(), { setHoverDate: H, getDayClassData: I, clearHoverDate: ue } = Qr(v, l), { defaultedMultiCalendars: ve } = Se(l), pe = Z([]), y = Z([]), A = Z(null), f = Je(le, "calendar"), V = Je(le, "monthYear"), ne = Je(le, "timePicker"), O = (G) => {
3344
+ } = Or(l, t, oe, L), le = Pa(), { setHoverDate: H, getDayClassData: I, clearHoverDate: ue } = Qr(v, l), { defaultedMultiCalendars: ve } = Pe(l), pe = Z([]), y = Z([]), A = Z(null), f = Je(le, "calendar"), V = Je(le, "monthYear"), ne = Je(le, "timePicker"), O = (G) => {
3345
3345
  l.shadow || t("mount", G);
3346
3346
  };
3347
3347
  la(
@@ -3384,10 +3384,10 @@ const Yt = (e, a) => e?.querySelector(`[data-dp-element="${a}"]`), Al = (e, a) =
3384
3384
  }, u = (G, o) => {
3385
3385
  var Y;
3386
3386
  if (!l.range) {
3387
- const W = v.value ? v.value : p, P = o ? new Date(o) : W, he = G ? Lt(P, { weekStartsOn: 1 }) : pl(P, { weekStartsOn: 1 });
3387
+ const W = v.value ? v.value : p, S = o ? new Date(o) : W, he = G ? Lt(S, { weekStartsOn: 1 }) : pl(S, { weekStartsOn: 1 });
3388
3388
  J({
3389
3389
  value: he,
3390
- current: ke(P) === d.value(0),
3390
+ current: ke(S) === d.value(0),
3391
3391
  text: "",
3392
3392
  classData: {}
3393
3393
  }), (Y = document.getElementById(Ol(he))) == null || Y.focus();
@@ -3396,7 +3396,7 @@ const Yt = (e, a) => e?.querySelector(`[data-dp-element="${a}"]`), Al = (e, a) =
3396
3396
  var o;
3397
3397
  (o = pe.value[0]) == null || o.handleMonthYearChange(G, !0);
3398
3398
  }, me = (G) => {
3399
- S(0, { month: d.value(0), year: _.value(0) + (G ? 1 : -1), fromNav: !0 });
3399
+ P(0, { month: d.value(0), year: _.value(0) + (G ? 1 : -1), fromNav: !0 });
3400
3400
  }, Re = (G, o) => {
3401
3401
  G === Ne.time && t(`time-picker-${o ? "open" : "close"}`), t("overlay-toggle", { open: o, overlay: G });
3402
3402
  }, x = (G) => {
@@ -3410,14 +3410,14 @@ const Yt = (e, a) => e?.querySelector(`[data-dp-element="${a}"]`), Al = (e, a) =
3410
3410
  toggleYearPicker: g,
3411
3411
  toggleTimePicker: z,
3412
3412
  handleArrow: M,
3413
- updateMonthYear: S,
3413
+ updateMonthYear: P,
3414
3414
  getSidebarProps: () => ({
3415
3415
  modelValue: v,
3416
3416
  month: d,
3417
3417
  year: _,
3418
3418
  time: E,
3419
3419
  updateTime: R,
3420
- updateMonthYear: S,
3420
+ updateMonthYear: P,
3421
3421
  selectDate: J,
3422
3422
  presetDate: K
3423
3423
  }),
@@ -3432,8 +3432,8 @@ const Yt = (e, a) => e?.querySelector(`[data-dp-element="${a}"]`), Al = (e, a) =
3432
3432
  default: _e(({ instance: Y, index: W }) => [
3433
3433
  G.disableMonthYearSelect ? Q("", !0) : (T(), Ae(Ar, Ye({
3434
3434
  key: 0,
3435
- ref: (P) => {
3436
- P && (pe.value[W] = P);
3435
+ ref: (S) => {
3436
+ S && (pe.value[W] = S);
3437
3437
  },
3438
3438
  months: i(wl)(G.formatLocale, G.locale, G.monthNameFormat),
3439
3439
  years: i(Kt)(G.yearRange, G.locale, G.reverseYears),
@@ -3441,42 +3441,42 @@ const Yt = (e, a) => e?.querySelector(`[data-dp-element="${a}"]`), Al = (e, a) =
3441
3441
  year: i(_)(Y),
3442
3442
  instance: Y
3443
3443
  }, G.$props, {
3444
- onMount: o[0] || (o[0] = (P) => O(i(Ta).header)),
3445
- onResetFlow: o[1] || (o[1] = (P) => G.$emit("reset-flow")),
3446
- onUpdateMonthYear: (P) => i(S)(Y, P),
3444
+ onMount: o[0] || (o[0] = (S) => O(i(Ta).header)),
3445
+ onResetFlow: o[1] || (o[1] = (S) => G.$emit("reset-flow")),
3446
+ onUpdateMonthYear: (S) => i(P)(Y, S),
3447
3447
  onOverlayClosed: x,
3448
- onOverlayOpened: o[2] || (o[2] = (P) => G.$emit("overlay-toggle", { open: !0, overlay: P }))
3448
+ onOverlayOpened: o[2] || (o[2] = (S) => G.$emit("overlay-toggle", { open: !0, overlay: S }))
3449
3449
  }), Fe({ _: 2 }, [
3450
- $e(i(V), (P, he) => ({
3451
- name: P,
3450
+ $e(i(V), (S, he) => ({
3451
+ name: S,
3452
3452
  fn: _e((w) => [
3453
- se(G.$slots, P, Ve(je(w)))
3453
+ se(G.$slots, S, Ve(je(w)))
3454
3454
  ])
3455
3455
  }))
3456
3456
  ]), 1040, ["months", "years", "month", "year", "instance", "onUpdateMonthYear"])),
3457
3457
  We(Cr, Ye({
3458
- ref: (P) => {
3459
- P && (y.value[W] = P);
3458
+ ref: (S) => {
3459
+ S && (y.value[W] = S);
3460
3460
  },
3461
3461
  "mapped-dates": h.value(Y),
3462
3462
  month: i(d)(Y),
3463
3463
  year: i(_)(Y),
3464
3464
  instance: Y
3465
3465
  }, G.$props, {
3466
- onSelectDate: (P) => i(J)(P, Y !== 1),
3467
- onHandleSpace: (P) => k(P, Y !== 1),
3468
- onSetHoverDate: o[3] || (o[3] = (P) => i(H)(P)),
3469
- onHandleScroll: (P) => i(X)(P, Y),
3470
- onHandleSwipe: (P) => i(N)(P, Y),
3471
- onMount: o[4] || (o[4] = (P) => O(i(Ta).calendar)),
3472
- onResetFlow: o[5] || (o[5] = (P) => G.$emit("reset-flow")),
3473
- onTooltipOpen: o[6] || (o[6] = (P) => G.$emit("tooltip-open", P)),
3474
- onTooltipClose: o[7] || (o[7] = (P) => G.$emit("tooltip-close", P))
3466
+ onSelectDate: (S) => i(J)(S, Y !== 1),
3467
+ onHandleSpace: (S) => k(S, Y !== 1),
3468
+ onSetHoverDate: o[3] || (o[3] = (S) => i(H)(S)),
3469
+ onHandleScroll: (S) => i(X)(S, Y),
3470
+ onHandleSwipe: (S) => i(N)(S, Y),
3471
+ onMount: o[4] || (o[4] = (S) => O(i(Ta).calendar)),
3472
+ onResetFlow: o[5] || (o[5] = (S) => G.$emit("reset-flow")),
3473
+ onTooltipOpen: o[6] || (o[6] = (S) => G.$emit("tooltip-open", S)),
3474
+ onTooltipClose: o[7] || (o[7] = (S) => G.$emit("tooltip-close", S))
3475
3475
  }), Fe({ _: 2 }, [
3476
- $e(i(f), (P, he) => ({
3477
- name: P,
3476
+ $e(i(f), (S, he) => ({
3477
+ name: S,
3478
3478
  fn: _e((w) => [
3479
- se(G.$slots, P, Ve(je({ ...w })))
3479
+ se(G.$slots, S, Ve(je({ ...w })))
3480
3480
  ])
3481
3481
  }))
3482
3482
  ]), 1040, ["mapped-dates", "month", "year", "instance", "onSelectDate", "onHandleSpace", "onHandleScroll", "onHandleSwipe"])
@@ -3506,8 +3506,8 @@ const Yt = (e, a) => e?.querySelector(`[data-dp-element="${a}"]`), Al = (e, a) =
3506
3506
  }), Fe({ _: 2 }, [
3507
3507
  $e(i(ne), (Y, W) => ({
3508
3508
  name: Y,
3509
- fn: _e((P) => [
3510
- se(G.$slots, Y, Ve(je(P)))
3509
+ fn: _e((S) => [
3510
+ se(G.$slots, Y, Ve(je(S)))
3511
3511
  ])
3512
3512
  }))
3513
3513
  ]), 1040, ["hours", "minutes", "seconds", "internal-model-value", "disabled-times-config", "validate-time"]))
@@ -3523,7 +3523,7 @@ const Yt = (e, a) => e?.querySelector(`[data-dp-element="${a}"]`), Al = (e, a) =
3523
3523
  propDates: _,
3524
3524
  defaultedFilters: v,
3525
3525
  defaultedMultiDates: E
3526
- } = Se(e), { modelValue: c, year: p, month: m, calendars: D } = Wa(e, a), { isDisabled: C } = ka(e), { selectYear: M, groupedYears: X, showYearPicker: N, isDisabled: J, toggleYearPicker: S, handleYearSelect: K, handleYear: te } = Vl({
3526
+ } = Pe(e), { modelValue: c, year: p, month: m, calendars: D } = Wa(e, a), { isDisabled: C } = ka(e), { selectYear: M, groupedYears: X, showYearPicker: N, isDisabled: J, toggleYearPicker: P, handleYearSelect: K, handleYear: te } = Vl({
3527
3527
  modelValue: c,
3528
3528
  multiCalendars: t,
3529
3529
  range: d,
@@ -3584,7 +3584,7 @@ const Yt = (e, a) => e?.querySelector(`[data-dp-element="${a}"]`), Al = (e, a) =
3584
3584
  if (!V)
3585
3585
  return D.value[f].month = ke(el(A)), E.value.enabled ? ve(A) : d.value.enabled ? pe(A) : y(A);
3586
3586
  },
3587
- toggleYearPicker: S,
3587
+ toggleYearPicker: P,
3588
3588
  handleYearSelect: K,
3589
3589
  handleYear: te
3590
3590
  };
@@ -3607,7 +3607,7 @@ const Yt = (e, a) => e?.querySelector(`[data-dp-element="${a}"]`), Al = (e, a) =
3607
3607
  "update-month-year"
3608
3608
  ],
3609
3609
  setup(e, { expose: a, emit: r }) {
3610
- const t = r, l = e, s = Sa(), d = Je(s, "yearMode"), {
3610
+ const t = r, l = e, s = Pa(), d = Je(s, "yearMode"), {
3611
3611
  defaultedMultiCalendars: _,
3612
3612
  defaultedConfig: v,
3613
3613
  groupedYears: E,
@@ -3620,14 +3620,14 @@ const Yt = (e, a) => e?.querySelector(`[data-dp-element="${a}"]`), Al = (e, a) =
3620
3620
  selectQuarter: X,
3621
3621
  toggleYearPicker: N,
3622
3622
  handleYearSelect: J,
3623
- handleYear: S
3623
+ handleYear: P
3624
3624
  } = Ir(l, t);
3625
3625
  return a({ getSidebarProps: () => ({
3626
3626
  modelValue: D,
3627
3627
  year: c,
3628
3628
  selectQuarter: X,
3629
3629
  handleYearSelect: J,
3630
- handleYear: S
3630
+ handleYear: P
3631
3631
  }) }), (K, te) => (T(), Ae(ct, {
3632
3632
  "multi-calendars": i(_).count,
3633
3633
  collapse: K.collapse,
@@ -3649,7 +3649,7 @@ const Yt = (e, a) => e?.querySelector(`[data-dp-element="${a}"]`), Al = (e, a) =
3649
3649
  "show-year-picker": i(C)[R],
3650
3650
  year: i(c)(R),
3651
3651
  "is-disabled": (B) => i(p)(R, B),
3652
- onHandleYear: (B) => i(S)(R, B),
3652
+ onHandleYear: (B) => i(P)(R, B),
3653
3653
  onYearSelect: (B) => i(J)(B, R),
3654
3654
  onToggleYearPicker: (B) => i(N)(R, B?.flow, B?.show)
3655
3655
  }), Fe({ _: 2 }, [
@@ -3754,7 +3754,7 @@ const Yt = (e, a) => e?.querySelector(`[data-dp-element="${a}"]`), Al = (e, a) =
3754
3754
  noOverlayFocus: l.noOverlayFocus,
3755
3755
  menuWrapRef: s.value
3756
3756
  };
3757
- }), { setMenuFocused: _, setShiftKey: v, control: E } = Rl(), c = Sa(), { defaultedTextInput: p, defaultedInline: m, defaultedConfig: D, defaultedUI: C } = Se(l), M = Z(null), X = Z(0), N = Z(null), J = Z(!1), S = Z(null);
3757
+ }), { setMenuFocused: _, setShiftKey: v, control: E } = Rl(), c = Pa(), { defaultedTextInput: p, defaultedInline: m, defaultedConfig: D, defaultedUI: C } = Pe(l), M = Z(null), X = Z(0), N = Z(null), J = Z(!1), P = Z(null);
3758
3758
  Ue(() => {
3759
3759
  if (!l.shadow) {
3760
3760
  J.value = !0, K(), window.addEventListener("resize", K);
@@ -3772,7 +3772,7 @@ const Yt = (e, a) => e?.querySelector(`[data-dp-element="${a}"]`), Al = (e, a) =
3772
3772
  const K = () => {
3773
3773
  const w = Be(N);
3774
3774
  w && (X.value = w.getBoundingClientRect().width);
3775
- }, { arrowRight: te, arrowLeft: R, arrowDown: B, arrowUp: le } = wa(), { flowStep: H, updateFlowStep: I, childMount: ue, resetFlow: ve, handleFlow: pe } = Gr(l, t, S), y = j(() => l.monthPicker ? lr : l.yearPicker ? rr : l.timePicker ? gr : l.quarterPicker ? Lr : Br), A = j(() => {
3775
+ }, { arrowRight: te, arrowLeft: R, arrowDown: B, arrowUp: le } = wa(), { flowStep: H, updateFlowStep: I, childMount: ue, resetFlow: ve, handleFlow: pe } = Gr(l, t, P), y = j(() => l.monthPicker ? lr : l.yearPicker ? rr : l.timePicker ? gr : l.quarterPicker ? Lr : Br), A = j(() => {
3776
3776
  var w;
3777
3777
  if (D.value.arrowLeft) return D.value.arrowLeft;
3778
3778
  const q = (w = s.value) == null ? void 0 : w.getBoundingClientRect(), de = l.getInputRect();
@@ -3782,7 +3782,7 @@ const Yt = (e, a) => e?.querySelector(`[data-dp-element="${a}"]`), Al = (e, a) =
3782
3782
  w && w.focus({ preventScroll: !0 });
3783
3783
  }, V = j(() => {
3784
3784
  var w;
3785
- return ((w = S.value) == null ? void 0 : w.getSidebarProps()) || {};
3785
+ return ((w = P.value) == null ? void 0 : w.getSidebarProps()) || {};
3786
3786
  }), ne = () => {
3787
3787
  l.openOnTop && t("recalculate-position");
3788
3788
  }, O = Je(c, "action"), h = j(() => l.monthPicker || l.yearPicker ? Je(c, "monthYear") : l.timePicker ? Je(c, "timePicker") : Je(c, "shared")), oe = j(() => l.openOnTop ? "dp__arrow_bottom" : "dp__arrow_top"), L = j(() => ({
@@ -3813,13 +3813,13 @@ const Yt = (e, a) => e?.querySelector(`[data-dp-element="${a}"]`), Al = (e, a) =
3813
3813
  f(), t("time-picker-close");
3814
3814
  }, me = (w) => {
3815
3815
  var q, de, ge;
3816
- (q = S.value) == null || q.toggleTimePicker(!1, !1), (de = S.value) == null || de.toggleMonthPicker(!1, !1, w), (ge = S.value) == null || ge.toggleYearPicker(!1, !1, w);
3816
+ (q = P.value) == null || q.toggleTimePicker(!1, !1), (de = P.value) == null || de.toggleMonthPicker(!1, !1, w), (ge = P.value) == null || ge.toggleYearPicker(!1, !1, w);
3817
3817
  }, Re = (w, q = 0) => {
3818
3818
  var de, ge, ea;
3819
- return w === "month" ? (de = S.value) == null ? void 0 : de.toggleMonthPicker(!1, !0, q) : w === "year" ? (ge = S.value) == null ? void 0 : ge.toggleYearPicker(!1, !0, q) : w === "time" ? (ea = S.value) == null ? void 0 : ea.toggleTimePicker(!0, !1) : me(q);
3819
+ return w === "month" ? (de = P.value) == null ? void 0 : de.toggleMonthPicker(!1, !0, q) : w === "year" ? (ge = P.value) == null ? void 0 : ge.toggleYearPicker(!1, !0, q) : w === "time" ? (ea = P.value) == null ? void 0 : ea.toggleTimePicker(!0, !1) : me(q);
3820
3820
  }, x = (w, ...q) => {
3821
3821
  var de, ge;
3822
- (de = S.value) != null && de[w] && ((ge = S.value) == null || ge[w](...q));
3822
+ (de = P.value) != null && de[w] && ((ge = P.value) == null || ge[w](...q));
3823
3823
  }, G = () => {
3824
3824
  x("selectCurrentDate");
3825
3825
  }, o = (w, q) => {
@@ -3828,7 +3828,7 @@ const Yt = (e, a) => e?.querySelector(`[data-dp-element="${a}"]`), Al = (e, a) =
3828
3828
  x("clearHoverDate");
3829
3829
  }, W = (w, q) => {
3830
3830
  x("updateMonthYear", w, q);
3831
- }, P = (w, q) => {
3831
+ }, S = (w, q) => {
3832
3832
  w.preventDefault(), z(q);
3833
3833
  }, he = (w) => {
3834
3834
  var q, de, ge;
@@ -3842,13 +3842,13 @@ const Yt = (e, a) => e?.querySelector(`[data-dp-element="${a}"]`), Al = (e, a) =
3842
3842
  case Te.esc:
3843
3843
  return g();
3844
3844
  case Te.arrowLeft:
3845
- return P(w, Ke.left);
3845
+ return S(w, Ke.left);
3846
3846
  case Te.arrowRight:
3847
- return P(w, Ke.right);
3847
+ return S(w, Ke.right);
3848
3848
  case Te.arrowUp:
3849
- return P(w, Ke.up);
3849
+ return S(w, Ke.up);
3850
3850
  case Te.arrowDown:
3851
- return P(w, Ke.down);
3851
+ return S(w, Ke.down);
3852
3852
  default:
3853
3853
  return;
3854
3854
  }
@@ -3928,7 +3928,7 @@ const Yt = (e, a) => e?.querySelector(`[data-dp-element="${a}"]`), Al = (e, a) =
3928
3928
  }, [
3929
3929
  (T(), Ae(st(y.value), Ye({
3930
3930
  ref_key: "dynCmpRef",
3931
- ref: S
3931
+ ref: P
3932
3932
  }, d.value, {
3933
3933
  "flow-step": i(H),
3934
3934
  onMount: i(ue),
@@ -4004,7 +4004,7 @@ const Xr = ({
4004
4004
  props: d,
4005
4005
  slots: _
4006
4006
  }) => {
4007
- const { defaultedConfig: v } = Se(d), E = Z({}), c = Z(!1), p = Z({
4007
+ const { defaultedConfig: v } = Pe(d), E = Z({}), c = Z(!1), p = Z({
4008
4008
  top: "0",
4009
4009
  left: "0"
4010
4010
  }), m = Z(!1), D = za(d, "teleportCenter");
@@ -4029,7 +4029,7 @@ const Xr = ({
4029
4029
  }, J = (f) => {
4030
4030
  const { width: V, height: ne } = f.getBoundingClientRect(), { top: O, left: h } = d.altPosition ? d.altPosition(f) : C(f);
4031
4031
  return { top: +O, left: +h, width: V, height: ne };
4032
- }, S = () => {
4032
+ }, P = () => {
4033
4033
  p.value.left = "50%", p.value.top = "50%", p.value.transform = "translate(-50%, -50%)", p.value.position = "fixed", delete p.value.opacity;
4034
4034
  }, K = () => {
4035
4035
  const f = Be(r), { top: V, left: ne, transform: O } = d.altPosition(f);
@@ -4037,7 +4037,7 @@ const Xr = ({
4037
4037
  }, te = (f = !0) => {
4038
4038
  var V;
4039
4039
  if (!l.value.enabled) {
4040
- if (D.value) return S();
4040
+ if (D.value) return P();
4041
4041
  if (d.altPosition !== null) return K();
4042
4042
  if (f) {
4043
4043
  const ne = d.teleport ? (V = a.value) == null ? void 0 : V.$el : e.value;
@@ -4188,7 +4188,7 @@ const Xr = ({
4188
4188
  const a = j(() => (t) => e.value ? t ? e.value.open : e.value.close : ""), r = j(() => (t) => e.value ? t ? e.value.menuAppearTop : e.value.menuAppearBottom : "");
4189
4189
  return { transitionName: a, showTransition: !!e.value, menuTransition: r };
4190
4190
  }, Wa = (e, a, r) => {
4191
- const { defaultedRange: t, defaultedTz: l } = Se(e), s = U(Qe(U(), l.value.timezone)), d = Z([{ month: ke(s), year: fe(s) }]), _ = (m) => {
4191
+ const { defaultedRange: t, defaultedTz: l } = Pe(e), s = U(Qe(U(), l.value.timezone)), d = Z([{ month: ke(s), year: fe(s) }]), _ = (m) => {
4192
4192
  const D = {
4193
4193
  hours: pa(s),
4194
4194
  minutes: _a(s),
@@ -4240,23 +4240,23 @@ const Xr = ({
4240
4240
  defaultedTz: d,
4241
4241
  propDates: _,
4242
4242
  defaultedRange: v
4243
- } = Se(a), { isDisabled: E } = ka(a), c = Z(null), p = Z(Qe(/* @__PURE__ */ new Date(), d.value.timezone)), m = (n) => {
4243
+ } = Pe(a), { isDisabled: E } = ka(a), c = Z(null), p = Z(Qe(/* @__PURE__ */ new Date(), d.value.timezone)), m = (n) => {
4244
4244
  !n.current && a.hideOffsetDates || (c.value = n.value);
4245
4245
  }, D = () => {
4246
4246
  c.value = null;
4247
- }, C = (n) => Array.isArray(e.value) && v.value.enabled && e.value[0] && c.value ? n ? Oe(c.value, e.value[0]) : Pe(c.value, e.value[0]) : !0, M = (n, g) => {
4247
+ }, C = (n) => Array.isArray(e.value) && v.value.enabled && e.value[0] && c.value ? n ? Oe(c.value, e.value[0]) : Se(c.value, e.value[0]) : !0, M = (n, g) => {
4248
4248
  const z = () => e.value ? g ? e.value[0] || null : e.value[1] : null, u = e.value && Array.isArray(e.value) ? z() : null;
4249
4249
  return Me(U(n.value), u);
4250
4250
  }, X = (n) => {
4251
4251
  const g = Array.isArray(e.value) ? e.value[0] : null;
4252
- return n ? !Pe(c.value ?? null, g) : !0;
4252
+ return n ? !Se(c.value ?? null, g) : !0;
4253
4253
  }, N = (n, g = !0) => (v.value.enabled || a.weekPicker) && Array.isArray(e.value) && e.value.length === 2 ? a.hideOffsetDates && !n.current ? !1 : Me(U(n.value), e.value[g ? 0 : 1]) : v.value.enabled ? M(n, g) && X(g) || Me(n.value, Array.isArray(e.value) ? e.value[0] : null) && C(g) : !1, J = (n, g) => {
4254
4254
  if (Array.isArray(e.value) && e.value[0] && e.value.length === 1) {
4255
4255
  const z = Me(n.value, c.value);
4256
- return g ? Oe(e.value[0], n.value) && z : Pe(e.value[0], n.value) && z;
4256
+ return g ? Oe(e.value[0], n.value) && z : Se(e.value[0], n.value) && z;
4257
4257
  }
4258
4258
  return !1;
4259
- }, S = (n) => !e.value || a.hideOffsetDates && !n.current ? !1 : v.value.enabled ? a.modelAuto && Array.isArray(e.value) ? Me(n.value, e.value[0] ? e.value[0] : p.value) : !1 : t.value.enabled && Array.isArray(e.value) ? e.value.some((g) => Me(g, n.value)) : Me(n.value, e.value ? e.value : p.value), K = (n) => {
4259
+ }, P = (n) => !e.value || a.hideOffsetDates && !n.current ? !1 : v.value.enabled ? a.modelAuto && Array.isArray(e.value) ? Me(n.value, e.value[0] ? e.value[0] : p.value) : !1 : t.value.enabled && Array.isArray(e.value) ? e.value.some((g) => Me(g, n.value)) : Me(n.value, e.value ? e.value : p.value), K = (n) => {
4260
4260
  if (v.value.autoRange || a.weekPicker) {
4261
4261
  if (c.value) {
4262
4262
  if (a.hideOffsetDates && !n.current) return !1;
@@ -4272,7 +4272,7 @@ const Xr = ({
4272
4272
  const g = Da(c.value, +v.value.autoRange);
4273
4273
  if (a.hideOffsetDates && !n.current) return !1;
4274
4274
  const z = da(U(c.value), a.weekStart);
4275
- return a.weekPicker ? Oe(n.value, z[0]) && Pe(n.value, z[1]) : Oe(n.value, c.value) && Pe(n.value, g);
4275
+ return a.weekPicker ? Oe(n.value, z[0]) && Se(n.value, z[1]) : Oe(n.value, c.value) && Se(n.value, g);
4276
4276
  }
4277
4277
  return !1;
4278
4278
  }
@@ -4290,14 +4290,14 @@ const Xr = ({
4290
4290
  }, B = (n) => dt(e.value, c.value, n.value), le = () => a.modelAuto && Array.isArray(a.internalModelValue) ? !!a.internalModelValue[0] : !1, H = () => a.modelAuto ? kl(a.internalModelValue) : !0, I = (n) => {
4291
4291
  if (a.weekPicker) return !1;
4292
4292
  const g = v.value.enabled ? !N(n) && !N(n, !1) : !0;
4293
- return !E(n.value) && !S(n) && !(!n.current && a.hideOffsetDates) && g;
4294
- }, ue = (n) => v.value.enabled ? a.modelAuto ? le() && S(n) : !1 : S(n), ve = (n) => s.value ? _n(n.value, _.value.highlight) : !1, pe = (n) => {
4293
+ return !E(n.value) && !P(n) && !(!n.current && a.hideOffsetDates) && g;
4294
+ }, ue = (n) => v.value.enabled ? a.modelAuto ? le() && P(n) : !1 : P(n), ve = (n) => s.value ? _n(n.value, _.value.highlight) : !1, pe = (n) => {
4295
4295
  const g = E(n.value);
4296
4296
  return g && (typeof s.value == "function" ? !s.value(n.value, g) : !s.value.options.highlightDisabled);
4297
4297
  }, y = (n) => {
4298
4298
  var g;
4299
4299
  return typeof s.value == "function" ? s.value(n.value) : (g = s.value.weekdays) == null ? void 0 : g.includes(n.value.getDay());
4300
- }, A = (n) => (v.value.enabled || a.weekPicker) && (!(r.value.count > 0) || n.current) && H() && !(!n.current && a.hideOffsetDates) && !S(n) ? B(n) : !1, f = (n) => {
4300
+ }, A = (n) => (v.value.enabled || a.weekPicker) && (!(r.value.count > 0) || n.current) && H() && !(!n.current && a.hideOffsetDates) && !P(n) ? B(n) : !1, f = (n) => {
4301
4301
  const { isRangeStart: g, isRangeEnd: z } = h(n), u = v.value.enabled ? g || z : !1;
4302
4302
  return {
4303
4303
  dp__cell_offset: !n.current,
@@ -4306,7 +4306,7 @@ const Xr = ({
4306
4306
  dp__cell_highlight: !pe(n) && (ve(n) || y(n)) && !ue(n) && !u && !R(n) && !(A(n) && a.weekPicker) && !z,
4307
4307
  dp__cell_highlight_active: !pe(n) && (ve(n) || y(n)) && ue(n),
4308
4308
  dp__today: !a.noToday && Me(n.value, p.value) && n.current,
4309
- "dp--past": Pe(n.value, p.value),
4309
+ "dp--past": Se(n.value, p.value),
4310
4310
  "dp--future": Oe(n.value, p.value)
4311
4311
  };
4312
4312
  }, V = (n) => ({
@@ -4319,7 +4319,7 @@ const Xr = ({
4319
4319
  ...L(n),
4320
4320
  dp__range_start: Me(g[0], n.value),
4321
4321
  dp__range_end: Me(g[1], n.value),
4322
- dp__range_between_week: Oe(n.value, g[0]) && Pe(n.value, g[1])
4322
+ dp__range_between_week: Oe(n.value, g[0]) && Se(n.value, g[1])
4323
4323
  };
4324
4324
  }
4325
4325
  return {
@@ -4332,8 +4332,8 @@ const Xr = ({
4332
4332
  ...L(n),
4333
4333
  dp__range_start: Me(g[0], n.value) || Me(z[0], n.value),
4334
4334
  dp__range_end: Me(g[1], n.value) || Me(z[1], n.value),
4335
- dp__range_between_week: Oe(n.value, g[0]) && Pe(n.value, g[1]) || Oe(n.value, z[0]) && Pe(n.value, z[1]),
4336
- dp__range_between: Oe(n.value, g[1]) && Pe(n.value, z[0])
4335
+ dp__range_between_week: Oe(n.value, g[0]) && Se(n.value, g[1]) || Oe(n.value, z[0]) && Se(n.value, z[1]),
4336
+ dp__range_between: Oe(n.value, g[1]) && Se(n.value, z[0])
4337
4337
  };
4338
4338
  }
4339
4339
  return {
@@ -4369,10 +4369,10 @@ const Xr = ({
4369
4369
  }
4370
4370
  };
4371
4371
  }, ka = (e) => {
4372
- const { defaultedFilters: a, defaultedRange: r, propDates: t, defaultedMultiDates: l } = Se(e), s = (y) => t.value.disabledDates ? typeof t.value.disabledDates == "function" ? t.value.disabledDates(U(y)) : !!ut(y, t.value.disabledDates) : !1, d = (y) => t.value.maxDate ? e.yearPicker ? fe(y) > fe(t.value.maxDate) : Oe(y, t.value.maxDate) : !1, _ = (y) => t.value.minDate ? e.yearPicker ? fe(y) < fe(t.value.minDate) : Pe(y, t.value.minDate) : !1, v = (y) => {
4372
+ const { defaultedFilters: a, defaultedRange: r, propDates: t, defaultedMultiDates: l } = Pe(e), s = (y) => t.value.disabledDates ? typeof t.value.disabledDates == "function" ? t.value.disabledDates(U(y)) : !!ut(y, t.value.disabledDates) : !1, d = (y) => t.value.maxDate ? e.yearPicker ? fe(y) > fe(t.value.maxDate) : Oe(y, t.value.maxDate) : !1, _ = (y) => t.value.minDate ? e.yearPicker ? fe(y) < fe(t.value.minDate) : Se(y, t.value.minDate) : !1, v = (y) => {
4373
4373
  const A = d(y), f = _(y), V = s(y), ne = a.value.months.map((k) => +k).includes(ke(y)), O = e.disabledWeekDays.length ? e.disabledWeekDays.some((k) => +k === Gl(y)) : !1, h = D(y), oe = fe(y), L = oe < +e.yearRange[0] || oe > +e.yearRange[1];
4374
4374
  return !(A || f || V || ne || L || O || h);
4375
- }, E = (y, A) => Pe(...ha(t.value.minDate, y, A)) || Me(...ha(t.value.minDate, y, A)), c = (y, A) => Oe(...ha(t.value.maxDate, y, A)) || Me(...ha(t.value.maxDate, y, A)), p = (y, A, f) => {
4375
+ }, E = (y, A) => Se(...ha(t.value.minDate, y, A)) || Me(...ha(t.value.minDate, y, A)), c = (y, A) => Oe(...ha(t.value.maxDate, y, A)) || Me(...ha(t.value.maxDate, y, A)), p = (y, A, f) => {
4376
4376
  let V = !1;
4377
4377
  return t.value.maxDate && f && c(y, A) && (V = !0), t.value.minDate && !f && E(y, A) && (V = !0), V;
4378
4378
  }, m = (y, A, f, V) => {
@@ -4393,7 +4393,7 @@ const Xr = ({
4393
4393
  if (r.value.maxRange) return h <= +r.value.maxRange;
4394
4394
  }
4395
4395
  return !0;
4396
- }, S = () => !e.enableTimePicker || e.monthPicker || e.yearPicker || e.ignoreTimeValidation, K = (y) => Array.isArray(y) ? [y[0] ? Tt(y[0]) : null, y[1] ? Tt(y[1]) : null] : Tt(y), te = (y, A, f) => y.find(
4396
+ }, P = () => !e.enableTimePicker || e.monthPicker || e.yearPicker || e.ignoreTimeValidation, K = (y) => Array.isArray(y) ? [y[0] ? Tt(y[0]) : null, y[1] ? Tt(y[1]) : null] : Tt(y), te = (y, A, f) => y.find(
4397
4397
  (V) => +V.hours === pa(A) && V.minutes === "*" ? !0 : +V.minutes === _a(A) && +V.hours === pa(A)
4398
4398
  ) && f, R = (y, A, f) => {
4399
4399
  const [V, ne] = y, [O, h] = A;
@@ -4406,7 +4406,7 @@ const Xr = ({
4406
4406
  return y && V;
4407
4407
  }, H = (y, A) => e.disabledTimes ? Array.isArray(e.disabledTimes) ? B(A, y) : le(A, y) : A, I = (y) => {
4408
4408
  let A = !0;
4409
- if (!y || S()) return !0;
4409
+ if (!y || P()) return !0;
4410
4410
  const f = !t.value.minDate && !t.value.maxDate ? K(y) : y;
4411
4411
  return (e.maxTime || t.value.maxDate) && (A = ul(
4412
4412
  e.maxTime,
@@ -4427,7 +4427,7 @@ const Xr = ({
4427
4427
  const f = U(ra(y));
4428
4428
  if (t.value.minDate && t.value.maxDate) {
4429
4429
  const V = U(ra(t.value.minDate)), ne = U(ra(t.value.maxDate));
4430
- return Oe(f, V) && Pe(f, ne) || Me(f, V) || Me(f, ne);
4430
+ return Oe(f, V) && Se(f, ne) || Me(f, V) || Me(f, ne);
4431
4431
  }
4432
4432
  if (t.value.minDate) {
4433
4433
  const V = U(ra(t.value.minDate));
@@ -4435,7 +4435,7 @@ const Xr = ({
4435
4435
  }
4436
4436
  if (t.value.maxDate) {
4437
4437
  const V = U(ra(t.value.maxDate));
4438
- A = Pe(f, V) || Me(f, V);
4438
+ A = Se(f, V) || Me(f, V);
4439
4439
  }
4440
4440
  return A;
4441
4441
  }, ve = j(() => (y) => !e.enableTimePicker || e.ignoreTimeValidation ? !0 : I(y)), pe = j(() => (y) => e.monthPicker ? Array.isArray(y) && (r.value.enabled || l.value.enabled) ? !y.filter((A) => !ue(A)).length : ue(y) : !0);
@@ -4519,7 +4519,7 @@ const Xr = ({
4519
4519
  defaultedUI: p,
4520
4520
  getDefaultPattern: m,
4521
4521
  getDefaultStartTime: D
4522
- } = Se(l), { checkMinMaxRange: C } = ka(l), M = Z(), X = Z(null), N = Z(!1), J = Z(!1), S = j(
4522
+ } = Pe(l), { checkMinMaxRange: C } = ka(l), M = Z(), X = Z(null), N = Z(!1), J = Z(!1), P = j(
4523
4523
  () => ({
4524
4524
  dp__pointer: !l.disabled && !l.readonly && !s.value.enabled,
4525
4525
  dp__disabled: l.disabled,
@@ -4628,7 +4628,7 @@ const Xr = ({
4628
4628
  ref: X,
4629
4629
  "data-test": "dp-input",
4630
4630
  name: h.name,
4631
- class: we(S.value),
4631
+ class: we(P.value),
4632
4632
  inputmode: i(s).enabled ? "text" : "none",
4633
4633
  placeholder: h.placeholder,
4634
4634
  disabled: h.disabled,
@@ -4741,25 +4741,25 @@ const Xr = ({
4741
4741
  "text-input"
4742
4742
  ],
4743
4743
  setup(e, { expose: a, emit: r }) {
4744
- const t = r, l = e, s = Sa(), d = Z(!1), _ = za(l, "modelValue"), v = za(l, "timezone"), E = Z(null), c = Z(null), p = Z(null), m = Z(!1), D = Z(null), C = Z(!1), M = Z(!1), X = Z(!1), N = Z(!1), { setMenuFocused: J, setShiftKey: S } = Rl(), { clearArrowNav: K } = wa(), { validateDate: te, isValidTime: R } = ka(l), {
4744
+ const t = r, l = e, s = Pa(), d = Z(!1), _ = za(l, "modelValue"), v = za(l, "timezone"), E = Z(null), c = Z(null), p = Z(null), m = Z(!1), D = Z(null), C = Z(!1), M = Z(!1), X = Z(!1), N = Z(!1), { setMenuFocused: J, setShiftKey: P } = Rl(), { clearArrowNav: K } = wa(), { validateDate: te, isValidTime: R } = ka(l), {
4745
4745
  defaultedTransitions: B,
4746
4746
  defaultedTextInput: le,
4747
4747
  defaultedInline: H,
4748
4748
  defaultedConfig: I,
4749
4749
  defaultedRange: ue,
4750
4750
  defaultedMultiDates: ve
4751
- } = Se(l), { menuTransition: pe, showTransition: y } = Ja(B);
4751
+ } = Pe(l), { menuTransition: pe, showTransition: y } = Ja(B);
4752
4752
  Ue(() => {
4753
4753
  g(l.modelValue), Ze().then(() => {
4754
4754
  if (!H.value.enabled) {
4755
4755
  const $ = oe(D.value);
4756
- $?.addEventListener("scroll", W), window?.addEventListener("resize", P);
4756
+ $?.addEventListener("scroll", W), window?.addEventListener("resize", S);
4757
4757
  }
4758
4758
  }), H.value.enabled && (d.value = !0), window?.addEventListener("keyup", he), window?.addEventListener("keydown", w);
4759
4759
  }), it(() => {
4760
4760
  if (!H.value.enabled) {
4761
4761
  const $ = oe(D.value);
4762
- $?.removeEventListener("scroll", W), window?.removeEventListener("resize", P);
4762
+ $?.removeEventListener("scroll", W), window?.removeEventListener("resize", S);
4763
4763
  }
4764
4764
  window?.removeEventListener("keyup", he), window?.removeEventListener("keydown", w);
4765
4765
  });
@@ -4804,7 +4804,7 @@ const Xr = ({
4804
4804
  return (ee = ($ = p.value) == null ? void 0 : $.$el) == null ? void 0 : ee.getBoundingClientRect();
4805
4805
  }, W = () => {
4806
4806
  d.value && (I.value.closeOnScroll ? Ge() : h());
4807
- }, P = () => {
4807
+ }, S = () => {
4808
4808
  var $;
4809
4809
  d.value && h();
4810
4810
  const ee = ($ = c.value) == null ? void 0 : $.$el.getBoundingClientRect().width;
@@ -4832,7 +4832,7 @@ const Xr = ({
4832
4832
  }, Ea = () => {
4833
4833
  le.value.enabled || (n.value = null);
4834
4834
  }, Ge = () => {
4835
- H.value.enabled || (d.value && (d.value = !1, O.value = !1, J(!1), S(!1), K(), t("closed"), k.value && g(_.value)), Ea(), t("blur"));
4835
+ H.value.enabled || (d.value && (d.value = !1, O.value = !1, J(!1), P(!1), K(), t("closed"), k.value && g(_.value)), Ea(), t("blur"));
4836
4836
  }, Na = ($, ee, ie = !1) => {
4837
4837
  if (!$) {
4838
4838
  n.value = null;