@oneb/ui-vue 0.3.30 → 0.3.31

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,24 +1,24 @@
1
- import { openBlock as u, createElementBlock as p, createElementVNode as v, defineComponent as st, computed as f, createBlock as Q, unref as S, withCtx as At, normalizeStyle as xe, Fragment as q, renderList as Z, normalizeClass as c, toDisplayString as O, createCommentVNode as Y, ref as b, watch as ce, nextTick as K, onMounted as Rt, onUnmounted as Lt, withDirectives as he, withKeys as ke, vModelText as Ye, createVNode as J, Teleport as nt } from "vue";
2
- import { autoUpdate as Wt, computePosition as Tt, offset as qt, flip as Ut, shift as It } from "@floating-ui/dom";
3
- import { DatePicker as Ce } from "v-calendar";
4
- import { OneButton as Pe } from "../button/index.js";
5
- import { O as Et, u as Ft } from "../useModal-7fe9444b.js";
6
- import { r as rt } from "../CheckIcon-f1c94824.js";
7
- import { r as jt } from "../XMarkIcon-51ef0691.js";
8
- import { r as Nt } from "../ChevronDownIcon-6805ce6c.js";
9
- import { useOnebI18n as dt } from "../i18n/index.js";
10
- import { _ as pt } from "../_plugin-vue_export-helper-dad06003.js";
11
- import l from "dayjs";
12
- import { default as Ka } from "dayjs";
13
- import Kt from "dayjs/plugin/advancedFormat";
14
- import Qt from "dayjs/plugin/isoWeek";
15
- import Ht from "dayjs/plugin/quarterOfYear";
16
- import Jt from "dayjs/plugin/utc";
17
- import Xt from "dayjs/plugin/customParseFormat";
1
+ import { openBlock as o, createElementBlock as d, createElementVNode as v, defineComponent as vt, computed as f, createBlock as F, unref as M, withCtx as Wt, normalizeStyle as ue, Fragment as W, renderList as Z, normalizeClass as c, toDisplayString as _, createCommentVNode as k, ref as b, watch as me, nextTick as E, onMounted as Tt, onUnmounted as Ut, withDirectives as Me, withKeys as Oe, vModelText as _e, createVNode as J, Teleport as st, renderSlot as Se } from "vue";
2
+ import { autoUpdate as qt, computePosition as It, offset as Et, flip as Ft, shift as jt } from "@floating-ui/dom";
3
+ import { DatePicker as Be } from "v-calendar";
4
+ import { OneButton as Le } from "../button/index.js";
5
+ import { O as Nt, u as Kt } from "../useModal-7fe9444b.js";
6
+ import { r as it } from "../CheckIcon-f1c94824.js";
7
+ import { r as Qt } from "../XMarkIcon-51ef0691.js";
8
+ import { r as Ht } from "../ChevronDownIcon-6805ce6c.js";
9
+ import { useOnebI18n as ft } from "../i18n/index.js";
10
+ import { _ as mt } from "../_plugin-vue_export-helper-dad06003.js";
11
+ import n from "dayjs";
12
+ import { default as Xa } from "dayjs";
13
+ import Jt from "dayjs/plugin/advancedFormat";
14
+ import Xt from "dayjs/plugin/isoWeek";
15
+ import Zt from "dayjs/plugin/quarterOfYear";
16
+ import ea from "dayjs/plugin/utc";
17
+ import ta from "dayjs/plugin/customParseFormat";
18
18
  import "../SpinnerIcon-74648c98.js";
19
19
  import "../SpinnerIcon.vue_vue_type_style_index_0_lang-4ed993c7.js";
20
- function Ve(a, o) {
21
- return u(), p("svg", {
20
+ function We(a, u) {
21
+ return o(), d("svg", {
22
22
  xmlns: "http://www.w3.org/2000/svg",
23
23
  fill: "none",
24
24
  viewBox: "0 0 24 24",
@@ -33,8 +33,8 @@ function Ve(a, o) {
33
33
  })
34
34
  ]);
35
35
  }
36
- function Zt(a, o) {
37
- return u(), p("svg", {
36
+ function aa(a, u) {
37
+ return o(), d("svg", {
38
38
  xmlns: "http://www.w3.org/2000/svg",
39
39
  fill: "none",
40
40
  viewBox: "0 0 24 24",
@@ -49,7 +49,7 @@ function Zt(a, o) {
49
49
  })
50
50
  ]);
51
51
  }
52
- const $e = {
52
+ const Te = {
53
53
  xs: {
54
54
  trigger: "h-7 rounded-lg",
55
55
  triggerButton: "gap-1.5 px-2 text-[11px]",
@@ -254,10 +254,10 @@ const $e = {
254
254
  "--pp-fast-list-max-h": "540px"
255
255
  }
256
256
  }
257
- }, we = "manual-date", le = "manual-range", G = "date", ea = "period", P = "range", ta = { class: "fast-picker-group__list" }, aa = ["onClick"], la = { class: "fast-picker-option__label" }, na = {
257
+ }, ze = "manual-date", oe = "manual-range", B = "date", la = "period", $ = "range", na = { class: "fast-picker-group__list" }, ra = ["onClick"], oa = { class: "fast-picker-option__label" }, ua = {
258
258
  key: 0,
259
259
  class: "fast-picker-option__description"
260
- }, ra = /* @__PURE__ */ st({
260
+ }, sa = /* @__PURE__ */ vt({
261
261
  __name: "OnePeriodPickerFastModal",
262
262
  props: {
263
263
  useModal: {},
@@ -268,315 +268,318 @@ const $e = {
268
268
  },
269
269
  emits: ["select"],
270
270
  setup(a) {
271
- const o = dt(), x = a, r = f(() => x.t ?? o), i = f(() => $e[x.size ?? "md"]), m = f(() => i.value.vars);
272
- return (s, C) => a.useModal.isOpened.value ? (u(), Q(S(Et), {
271
+ const u = ft(), m = a, r = f(() => m.t ?? u), s = f(() => Te[m.size ?? "md"]), y = f(() => s.value.vars);
272
+ return (i, z) => a.useModal.isOpened.value ? (o(), F(M(Nt), {
273
273
  key: 0,
274
274
  useModal: a.useModal,
275
- size: i.value.fastModalSize,
275
+ size: s.value.fastModalSize,
276
276
  title: r.value("ui.period_select.Fast periods")
277
277
  }, {
278
- default: At(() => [
278
+ default: Wt(() => [
279
279
  v("div", {
280
280
  class: "grid gap-4 grid-cols-1 sm:grid-cols-2 md:grid-cols-3",
281
- style: xe(m.value)
281
+ style: ue(y.value)
282
282
  }, [
283
- (u(!0), p(q, null, Z(a.groups, (A) => (u(), p("section", {
284
- key: A.id,
283
+ (o(!0), d(W, null, Z(a.groups, (T) => (o(), d("section", {
284
+ key: T.id,
285
285
  class: "fast-picker-group"
286
286
  }, [
287
- v("div", ta, [
288
- (u(!0), p(q, null, Z(A.options, (_) => (u(), p("div", {
289
- key: _.key
287
+ v("div", na, [
288
+ (o(!0), d(W, null, Z(T.options, (S) => (o(), d("div", {
289
+ key: S.key
290
290
  }, [
291
- _.type === "label" ? (u(), p("p", {
291
+ S.type === "label" ? (o(), d("p", {
292
292
  key: 0,
293
- class: c([i.value.presetLabel, "uppercase tracking-wide text-gray-500 mt-3 mb-1 first:mt-0"])
294
- }, O(_.label), 3)) : (u(), p("button", {
293
+ class: c([s.value.presetLabel, "uppercase tracking-wide text-gray-500 mt-3 mb-1 first:mt-0"])
294
+ }, _(S.label), 3)) : (o(), d("button", {
295
295
  key: 1,
296
296
  type: "button",
297
- class: c(["fast-picker-option", { "fast-picker-option--active": a.activePresetKey === _.key }]),
298
- onClick: (ee) => s.$emit("select", _)
297
+ class: c(["fast-picker-option", { "fast-picker-option--active": a.activePresetKey === S.key }]),
298
+ onClick: (Q) => i.$emit("select", S)
299
299
  }, [
300
- v("span", la, O(_.label), 1),
301
- _.description ? (u(), p("span", na, O(_.description), 1)) : Y("", !0)
302
- ], 10, aa))
300
+ v("span", oa, _(S.label), 1),
301
+ S.description ? (o(), d("span", ua, _(S.description), 1)) : k("", !0)
302
+ ], 10, ra))
303
303
  ]))), 128))
304
304
  ])
305
305
  ]))), 128))
306
306
  ], 4)
307
307
  ]),
308
308
  _: 1
309
- }, 8, ["useModal", "size", "title"])) : Y("", !0);
309
+ }, 8, ["useModal", "size", "title"])) : k("", !0);
310
310
  }
311
311
  });
312
- const oa = /* @__PURE__ */ pt(ra, [["__scopeId", "data-v-3fbb25c2"]]);
313
- l.extend(Kt);
314
- l.extend(Qt);
315
- l.extend(Ht);
316
- l.extend(Jt);
317
- l.extend(Xt);
318
- const De = (a, o) => o("ui.period_select.date_short", {
312
+ const ia = /* @__PURE__ */ mt(sa, [["__scopeId", "data-v-3fbb25c2"]]);
313
+ n.extend(Jt);
314
+ n.extend(Xt);
315
+ n.extend(Zt);
316
+ n.extend(ea);
317
+ n.extend(ta);
318
+ const Ve = (a, u) => u("ui.period_select.date_short", {
319
319
  day: a.format("DD"),
320
- month: o("ui.months_short." + a.month()),
320
+ month: u("ui.months_short." + a.month()),
321
321
  year: a.format("YYYY")
322
- }), ot = (a) => {
322
+ }), dt = (a) => {
323
323
  if (a == null)
324
324
  return null;
325
- const o = Number(a);
326
- return Number.isFinite(o) && o > 0 ? o : null;
327
- }, M = ({
325
+ const u = Number(a);
326
+ return Number.isFinite(u) && u > 0 ? u : null;
327
+ }, O = ({
328
328
  key: a,
329
- label: o,
330
- group: x,
329
+ label: u,
330
+ group: m,
331
331
  description: r = null,
332
- resolveRange: i
332
+ resolveRange: s
333
333
  }) => ({
334
334
  key: a,
335
- label: o,
336
- group: x,
335
+ label: u,
336
+ group: m,
337
337
  description: r,
338
338
  type: "option",
339
- resolveRange: i
340
- }), ut = (a, o, x) => {
341
- if (a && a > 0 && o && o > 0) {
342
- const r = l.unix(a).format("DD.MM.YYYY"), i = l.unix(o).format("DD.MM.YYYY");
343
- return r !== i ? `${r} - ${i}` : r;
339
+ resolveRange: s
340
+ }), pt = (a, u, m) => {
341
+ if (a && a > 0 && u && u > 0) {
342
+ const r = n.unix(a).format("DD.MM.YYYY"), s = n.unix(u).format("DD.MM.YYYY");
343
+ return r !== s ? `${r} - ${s}` : r;
344
344
  }
345
345
  if (a && a > 0)
346
- return `${x("ui.period_select.From")} ${l.unix(a).format("DD.MM.YYYY")}`;
347
- if (o && o > 0) {
348
- if (Math.abs(l.unix(o).diff(l().utc(), "minute")) < 15)
349
- return x("ui.period_select.until current moment");
350
- const r = l.unix(o).format("DD.MM.YYYY");
351
- return r === l().endOf("day").format("DD.MM.YYYY") ? x("ui.period_select.until end of today") : r === l().subtract(1, "d").endOf("day").format("DD.MM.YYYY") ? x("ui.period_select.until end of yesterday") : r === l().endOf("month").format("DD.MM.YYYY") ? x("ui.period_select.until end of month") : r === l().subtract(1, "month").endOf("month").format("DD.MM.YYYY") ? x("ui.period_select.until end of last month") : `${x("ui.period_select.Till")} ${l.unix(o).format("DD.MM.YYYY")}`;
346
+ return `${m("ui.period_select.From")} ${n.unix(a).format("DD.MM.YYYY")}`;
347
+ if (u && u > 0) {
348
+ if (Math.abs(n.unix(u).diff(n().utc(), "minute")) < 15)
349
+ return m("ui.period_select.until current moment");
350
+ const r = n.unix(u).format("DD.MM.YYYY");
351
+ return r === n().endOf("day").format("DD.MM.YYYY") ? m("ui.period_select.until end of today") : r === n().subtract(1, "d").endOf("day").format("DD.MM.YYYY") ? m("ui.period_select.until end of yesterday") : r === n().endOf("month").format("DD.MM.YYYY") ? m("ui.period_select.until end of month") : r === n().subtract(1, "month").endOf("month").format("DD.MM.YYYY") ? m("ui.period_select.until end of last month") : `${m("ui.period_select.Till")} ${n.unix(u).format("DD.MM.YYYY")}`;
352
352
  }
353
353
  return "";
354
- }, ua = (a, o, x) => x === G ? G : x === ea ? P : a != null && o != null ? l.unix(a).isSame(l.unix(o), "day") ? G : P : a != null || o != null ? P : null, it = (a) => [
354
+ }, da = (a, u, m) => m === B ? B : m === la ? $ : a != null && u != null ? n.unix(a).isSame(n.unix(u), "day") ? B : $ : a != null || u != null ? $ : null, ct = (a) => [
355
355
  // === Date presets (group: 'date') ===
356
- M({
356
+ O({
357
357
  key: "until-now",
358
358
  label: a("ui.period_select.until current moment"),
359
359
  group: "date",
360
- resolveRange: () => [null, l().unix()]
360
+ resolveRange: () => [null, n().unix()]
361
361
  }),
362
- M({
362
+ O({
363
363
  key: "until-end-today",
364
364
  label: a("ui.period_select.until end of today"),
365
365
  group: "date",
366
- resolveRange: () => [null, l().endOf("day").unix()]
366
+ resolveRange: () => [null, n().endOf("day").unix()]
367
367
  }),
368
- M({
368
+ O({
369
369
  key: "until-end-yesterday",
370
370
  label: a("ui.period_select.until end of yesterday"),
371
371
  group: "date",
372
- resolveRange: () => [null, l().subtract(1, "day").endOf("day").unix()]
372
+ resolveRange: () => [null, n().subtract(1, "day").endOf("day").unix()]
373
373
  }),
374
- M({
374
+ O({
375
375
  key: "until-end-month",
376
376
  label: a("ui.period_select.until end of month"),
377
377
  group: "date",
378
- resolveRange: () => [null, l().endOf("month").unix()]
378
+ resolveRange: () => [null, n().endOf("month").unix()]
379
379
  }),
380
- M({
380
+ O({
381
381
  key: "until-end-last-month",
382
382
  label: a("ui.period_select.until end of last month"),
383
383
  group: "date",
384
- resolveRange: () => [null, l().subtract(1, "month").endOf("month").unix()]
384
+ resolveRange: () => [null, n().subtract(1, "month").endOf("month").unix()]
385
385
  }),
386
- M({
386
+ O({
387
387
  key: "today",
388
388
  label: a("ui.period_select.Today"),
389
389
  group: "date",
390
- resolveRange: () => [l().startOf("day").unix(), l().endOf("day").unix()]
390
+ resolveRange: () => [n().startOf("day").unix(), n().endOf("day").unix()]
391
391
  }),
392
- M({
392
+ O({
393
393
  key: "yesterday",
394
394
  label: a("ui.period_select.Yesterday"),
395
395
  group: "date",
396
396
  resolveRange: () => [
397
- l().subtract(1, "day").startOf("day").unix(),
398
- l().subtract(1, "day").endOf("day").unix()
397
+ n().subtract(1, "day").startOf("day").unix(),
398
+ n().subtract(1, "day").endOf("day").unix()
399
399
  ]
400
400
  }),
401
401
  // === Period presets (group: 'period') ===
402
- M({
402
+ O({
403
403
  key: "this-week",
404
404
  label: a("ui.period_select.This week"),
405
405
  group: "period",
406
406
  resolveRange: () => [
407
- l().startOf("isoWeek").startOf("day").unix(),
408
- l().endOf("isoWeek").endOf("day").unix()
407
+ n().startOf("isoWeek").startOf("day").unix(),
408
+ n().endOf("isoWeek").endOf("day").unix()
409
409
  ]
410
410
  }),
411
- M({
411
+ O({
412
412
  key: "this-month",
413
413
  label: a("ui.period_select.This month"),
414
414
  group: "period",
415
415
  resolveRange: () => [
416
- l().startOf("month").startOf("day").unix(),
417
- l().endOf("month").endOf("day").unix()
416
+ n().startOf("month").startOf("day").unix(),
417
+ n().endOf("month").endOf("day").unix()
418
418
  ]
419
419
  }),
420
- M({
420
+ O({
421
421
  key: "this-quarter",
422
422
  label: a("ui.period_select.This quarter"),
423
423
  group: "period",
424
424
  resolveRange: () => [
425
- l().startOf("quarter").startOf("day").unix(),
426
- l().endOf("quarter").endOf("day").unix()
425
+ n().startOf("quarter").startOf("day").unix(),
426
+ n().endOf("quarter").endOf("day").unix()
427
427
  ]
428
428
  }),
429
- M({
429
+ O({
430
430
  key: "this-year",
431
431
  label: a("ui.period_select.This Year"),
432
432
  group: "period",
433
433
  resolveRange: () => [
434
- l().startOf("year").startOf("day").unix(),
435
- l().endOf("year").endOf("day").unix()
434
+ n().startOf("year").startOf("day").unix(),
435
+ n().endOf("year").endOf("day").unix()
436
436
  ]
437
437
  }),
438
- M({
438
+ O({
439
439
  key: "last-week",
440
440
  label: a("ui.period_select.Last week"),
441
441
  group: "period",
442
442
  resolveRange: () => [
443
- l().subtract(1, "week").startOf("isoWeek").startOf("day").unix(),
444
- l().subtract(1, "week").endOf("isoWeek").endOf("day").unix()
443
+ n().subtract(1, "week").startOf("isoWeek").startOf("day").unix(),
444
+ n().subtract(1, "week").endOf("isoWeek").endOf("day").unix()
445
445
  ]
446
446
  }),
447
- M({
447
+ O({
448
448
  key: "last-month",
449
449
  label: a("ui.period_select.Last month"),
450
450
  group: "period",
451
451
  resolveRange: () => [
452
- l().subtract(1, "month").startOf("month").startOf("day").unix(),
453
- l().subtract(1, "month").endOf("month").endOf("day").unix()
452
+ n().subtract(1, "month").startOf("month").startOf("day").unix(),
453
+ n().subtract(1, "month").endOf("month").endOf("day").unix()
454
454
  ]
455
455
  }),
456
- M({
456
+ O({
457
457
  key: "last-quarter",
458
458
  label: a("ui.period_select.Last quarter"),
459
459
  group: "period",
460
460
  resolveRange: () => [
461
- l().subtract(1, "quarter").startOf("quarter").startOf("day").unix(),
462
- l().subtract(1, "quarter").endOf("quarter").endOf("day").unix()
461
+ n().subtract(1, "quarter").startOf("quarter").startOf("day").unix(),
462
+ n().subtract(1, "quarter").endOf("quarter").endOf("day").unix()
463
463
  ]
464
464
  }),
465
- M({
465
+ O({
466
466
  key: "last-year",
467
467
  label: a("ui.period_select.Last year"),
468
468
  group: "period",
469
469
  resolveRange: () => [
470
- l().subtract(1, "year").startOf("year").startOf("day").unix(),
471
- l().subtract(1, "year").endOf("year").endOf("day").unix()
470
+ n().subtract(1, "year").startOf("year").startOf("day").unix(),
471
+ n().subtract(1, "year").endOf("year").endOf("day").unix()
472
472
  ]
473
473
  }),
474
- M({
474
+ O({
475
475
  key: "last-two-months",
476
476
  label: a("ui.period_select.Last two month"),
477
477
  group: "period",
478
478
  resolveRange: () => [
479
- l().subtract(1, "month").startOf("month").startOf("day").unix(),
480
- l().endOf("month").endOf("day").unix()
479
+ n().subtract(1, "month").startOf("month").startOf("day").unix(),
480
+ n().endOf("month").endOf("day").unix()
481
481
  ]
482
482
  }),
483
- M({
483
+ O({
484
484
  key: "last-three-months",
485
485
  label: a("ui.period_select.Last three month"),
486
486
  group: "period",
487
487
  resolveRange: () => [
488
- l().subtract(2, "month").startOf("month").startOf("day").unix(),
489
- l().endOf("month").endOf("day").unix()
488
+ n().subtract(2, "month").startOf("month").startOf("day").unix(),
489
+ n().endOf("month").endOf("day").unix()
490
490
  ]
491
491
  })
492
- ], ve = (a, o) => {
493
- var m;
492
+ ], ye = (a, u) => {
493
+ var y;
494
494
  const r = {
495
495
  day: {
496
496
  iterations: 30,
497
497
  group: "date",
498
- buildLabel: (s) => o("ui.period_select.day_label", {
499
- dayOfWeek: o("ui.days_short." + s.day()),
500
- day: s.format("D"),
501
- month: o("ui.months_short." + s.month()),
502
- year: s.format("YYYY")
498
+ buildLabel: (i) => u("ui.period_select.day_label", {
499
+ dayOfWeek: u("ui.days_short." + i.day()),
500
+ day: i.format("D"),
501
+ month: u("ui.months_short." + i.month()),
502
+ year: i.format("YYYY")
503
503
  })
504
504
  },
505
505
  week: {
506
506
  iterations: 15,
507
507
  group: "period",
508
- buildLabel: (s) => o("ui.period_select.week_label", { weekNumber: s.format("WW") }),
509
- buildDescription: (s, C) => o("ui.period_select.week_description", {
510
- start: De(s, o),
511
- end: De(C, o)
508
+ buildLabel: (i) => u("ui.period_select.week_label", { weekNumber: i.format("WW") }),
509
+ buildDescription: (i, z) => u("ui.period_select.week_description", {
510
+ start: Ve(i, u),
511
+ end: Ve(z, u)
512
512
  }),
513
513
  useIsoWeek: !0
514
514
  },
515
515
  month: {
516
516
  iterations: 24,
517
517
  group: "period",
518
- buildLabel: (s) => o("ui.period_select.month_label", {
519
- month: o("ui.months." + s.month()),
520
- year: s.format("YYYY")
518
+ buildLabel: (i) => u("ui.period_select.month_label", {
519
+ month: u("ui.months." + i.month()),
520
+ year: i.format("YYYY")
521
521
  })
522
522
  },
523
523
  quarter: {
524
524
  iterations: 8,
525
525
  group: "period",
526
- buildLabel: (s) => o("ui.period_select.quarter_label", {
527
- year: s.format("YYYY"),
528
- quarter: s.quarter()
526
+ buildLabel: (i) => u("ui.period_select.quarter_label", {
527
+ year: i.format("YYYY"),
528
+ quarter: i.quarter()
529
529
  }),
530
- buildDescription: (s, C) => o("ui.period_select.quarter_description", {
531
- start: De(s, o),
532
- end: De(C, o)
530
+ buildDescription: (i, z) => u("ui.period_select.quarter_description", {
531
+ start: Ve(i, u),
532
+ end: Ve(z, u)
533
533
  })
534
534
  },
535
535
  year: {
536
536
  iterations: 7,
537
537
  group: "period",
538
- buildLabel: (s) => s.format("YYYY")
538
+ buildLabel: (i) => i.format("YYYY")
539
539
  }
540
- }[a], i = [];
541
- for (let s = 0; s < r.iterations; s++) {
542
- const C = l().subtract(s, a), A = a === "week" && r.useIsoWeek ? C.startOf("isoWeek") : C.startOf(a), _ = a === "week" && r.useIsoWeek ? C.endOf("isoWeek") : C.endOf(a), ee = A.startOf("day").unix(), E = _.endOf("day").unix();
543
- i.push(
544
- M({
545
- key: `${a}-${s}`,
546
- label: r.buildLabel(A, _),
547
- description: ((m = r.buildDescription) == null ? void 0 : m.call(r, A, _)) ?? null,
540
+ }[a], s = [];
541
+ for (let i = 0; i < r.iterations; i++) {
542
+ const z = n().subtract(i, a), T = a === "week" && r.useIsoWeek ? z.startOf("isoWeek") : z.startOf(a), S = a === "week" && r.useIsoWeek ? z.endOf("isoWeek") : z.endOf(a), Q = T.startOf("day").unix(), se = S.endOf("day").unix();
543
+ s.push(
544
+ O({
545
+ key: `${a}-${i}`,
546
+ label: r.buildLabel(T, S),
547
+ description: ((y = r.buildDescription) == null ? void 0 : y.call(r, T, S)) ?? null,
548
548
  group: r.group,
549
- resolveRange: () => [ee, E]
549
+ resolveRange: () => [Q, se]
550
550
  })
551
551
  );
552
552
  }
553
- return i;
554
- }, ia = (a) => a ? a.includes("today") || a.includes("yesterday") || a.startsWith("day-") ? "day" : a.includes("week") ? "week" : a.includes("month") || a.startsWith("month-") ? "month" : a.includes("quarter") || a.startsWith("quarter-") ? "quarter" : a.includes("year") || a.startsWith("year-") ? "year" : a.startsWith("until-") ? "day" : null : null, X = (a, o) => {
555
- if (!o)
553
+ return s;
554
+ }, pa = (a) => a ? a.includes("today") || a.includes("yesterday") || a.startsWith("day-") ? "day" : a.includes("week") ? "week" : a.includes("month") || a.startsWith("month-") ? "month" : a.includes("quarter") || a.startsWith("quarter-") ? "quarter" : a.includes("year") || a.startsWith("year-") ? "year" : a.startsWith("until-") ? "day" : null : null, X = (a, u) => {
555
+ if (!u)
556
556
  return !0;
557
- const x = ["day", "week", "month", "quarter", "year"], r = x.indexOf(o), i = ia(a);
558
- return i ? x.indexOf(i) >= r : !0;
559
- }, fe = (a) => {
560
- const o = a.replace(/[^0-9]/g, "");
561
- if (o.length === 8) {
562
- const x = o.substring(0, 2), r = o.substring(2, 4), i = o.substring(4, 8), m = l(`${i}-${r}-${x}`, "YYYY-MM-DD");
563
- if (m.isValid())
564
- return m.format("YYYY-MM-DD");
557
+ const m = ["day", "week", "month", "quarter", "year"], r = m.indexOf(u), s = pa(a);
558
+ return s ? m.indexOf(s) >= r : !0;
559
+ }, xe = (a) => {
560
+ const u = a.replace(/[^0-9]/g, "");
561
+ if (u.length === 8) {
562
+ const m = u.substring(0, 2), r = u.substring(2, 4), s = u.substring(4, 8), y = n(`${s}-${r}-${m}`, "YYYY-MM-DD");
563
+ if (y.isValid())
564
+ return y.format("YYYY-MM-DD");
565
565
  }
566
566
  return null;
567
- }, sa = ["placeholder"], da = ["placeholder"], pa = { class: "truncate" }, ca = { class: "flex items-center justify-between pb-2 border-b border-gray-200" }, va = { class: "flex-1 overflow-y-auto pr-1 picker-group__list" }, fa = ["onClick"], xa = { class: "picker-option__label" }, ma = {
567
+ }, ca = ["placeholder"], va = ["placeholder"], fa = { class: "truncate" }, ma = {
568
+ key: 0,
569
+ class: "flex flex-col gap-3 w-full"
570
+ }, ya = { class: "flex items-center justify-between pb-2 border-b border-gray-200" }, xa = { class: "flex-1 overflow-y-auto pr-1 picker-group__list" }, ga = ["onClick"], ba = { class: "picker-option__label" }, ha = {
568
571
  key: 0,
569
572
  class: "picker-option__description"
570
- }, ya = {
573
+ }, ka = {
571
574
  key: 1,
572
575
  class: "space-y-2"
573
- }, ga = { class: "flex items-center justify-between mb-3" }, ba = ["disabled"], ha = {
576
+ }, Ya = { class: "flex items-center justify-between mb-3" }, wa = ["disabled"], Da = {
574
577
  key: 0,
575
578
  class: "grid grid-cols-2 gap-4"
576
- }, ka = ["onClick", "onMouseenter"], Ya = ["onClick", "onMouseenter"], wa = {
579
+ }, Ma = ["onClick", "onMouseenter"], Oa = ["onClick", "onMouseenter"], _a = {
577
580
  key: 0,
578
581
  class: "grid gap-3 md:grid-cols-2 w-full text-sm"
579
- }, Da = { class: "text-gray-500 mb-1" }, Ma = { class: "text-gray-500 mb-1" }, Oa = /* @__PURE__ */ st({
582
+ }, Sa = { class: "text-gray-500 mb-1" }, Ba = { class: "text-gray-500 mb-1" }, za = /* @__PURE__ */ vt({
580
583
  __name: "OnePeriodPicker",
581
584
  props: {
582
585
  modelValue: {},
@@ -596,36 +599,36 @@ const De = (a, o) => o("ui.period_select.date_short", {
596
599
  columns: { default: null }
597
600
  },
598
601
  emits: ["update:modelValue", "focus"],
599
- setup(a, { emit: o }) {
600
- const x = dt(), r = a, i = f(() => r.t ?? x), m = f(() => $e[r.size ?? "md"]), s = f(() => $e[r.dropdownSize ?? r.size ?? "md"]), C = f(() => s.value.vars), A = f(() => r.dropdownSize ?? r.size ?? "md"), _ = f(() => A.value !== "xs" && A.value !== "sm"), ee = o, E = b(null), F = b(null), h = b(!1), V = b(!1), Me = b(!1), w = b(G), $ = b(null), j = b(0), U = b(!1), Ae = b(!1), ne = b(""), re = b(""), R = b(l().format("YYYY-MM-DD")), B = b(void 0), oe = b(""), ue = b(""), I = b(0), z = b(null), Oe = b(null), N = b(null);
602
+ setup(a, { emit: u }) {
603
+ const m = ft(), r = a, s = f(() => r.t ?? m), y = f(() => Te[r.size ?? "md"]), i = f(() => Te[r.dropdownSize ?? r.size ?? "md"]), z = f(() => i.value.vars), T = f(() => r.dropdownSize ?? r.size ?? "md"), S = f(() => T.value !== "xs" && T.value !== "sm"), Q = f(() => r.mode === "date"), se = u, ee = b(null), j = b(null), h = b(!1), P = b(!1), Ge = b(!1), w = b(B), A = b(null), N = b(0), R = b(!1), Ue = b(!1), ie = b(""), de = b(""), C = b(n().format("YYYY-MM-DD")), V = b(void 0), pe = b(""), ce = b(""), I = b(0), G = b(null), Ce = b(null), K = b(null);
601
604
  let te = null;
602
- const ae = b(null), _e = b(!1), Re = b(typeof window < "u" ? window.innerWidth : 1024), ie = f(() => Re.value < 640), me = Ft(), y = f(() => {
605
+ const ae = b(null), $e = b(!1), qe = b(typeof window < "u" ? window.innerWidth : 1024), ve = f(() => qe.value < 640), ge = Kt(), x = f(() => {
603
606
  var e, t;
604
- return (e = r.modelValue) != null && e.start ? l(r.modelValue.start).startOf("day").unix() : ot((t = r.modelValue) == null ? void 0 : t.startUnix);
605
- }), k = f(() => {
607
+ return (e = r.modelValue) != null && e.start ? n(r.modelValue.start).startOf("day").unix() : dt((t = r.modelValue) == null ? void 0 : t.startUnix);
608
+ }), Y = f(() => {
606
609
  var e, t;
607
- return (e = r.modelValue) != null && e.end ? l(r.modelValue.end).endOf("day").unix() : ot((t = r.modelValue) == null ? void 0 : t.endUnix);
608
- }), Se = f(() => y.value != null || k.value != null), ct = f(
609
- () => ut(y.value, k.value, i.value) || r.placeholder || i.value("ui.period_select.Select date")
610
- ), Be = f(() => r.disableDate ?? void 0), vt = f(() => ut(y.value, k.value, i.value) || ""), Le = f(() => `date-${j.value}`), ft = f(() => `range-${j.value}`), We = f(() => r.columns != null ? r.columns : ie.value || w.value !== P || A.value === "xs" || A.value === "sm" ? 1 : 2), ye = f(
610
+ return (e = r.modelValue) != null && e.end ? n(r.modelValue.end).endOf("day").unix() : dt((t = r.modelValue) == null ? void 0 : t.endUnix);
611
+ }), Pe = f(() => x.value != null || Y.value != null), yt = f(
612
+ () => pt(x.value, Y.value, s.value) || r.placeholder || s.value("ui.period_select.Select date")
613
+ ), be = f(() => r.disableDate ?? void 0), xt = f(() => pt(x.value, Y.value, s.value) || ""), Ae = f(() => `date-${N.value}`), gt = f(() => `range-${N.value}`), Ie = f(() => r.columns != null ? r.columns : ve.value || w.value !== $ || T.value === "xs" || T.value === "sm" ? 1 : 2), he = f(
611
614
  () => !r.minGranularity || r.minGranularity === "day" || r.minGranularity === "week"
612
- ), xt = f(() => r.minGranularity === "month" ? i.value("ui.period_select.Months") : r.minGranularity === "quarter" ? i.value("ui.period_select.Quarters") : r.minGranularity === "year" ? i.value("ui.period_select.Years") : i.value("ui.period_select.Period group title")), L = f(() => {
615
+ ), bt = f(() => r.minGranularity === "month" ? s.value("ui.period_select.Months") : r.minGranularity === "quarter" ? s.value("ui.period_select.Quarters") : r.minGranularity === "year" ? s.value("ui.period_select.Years") : s.value("ui.period_select.Period group title")), U = f(() => {
613
616
  if (!r.minGranularity || r.minGranularity === "day" || r.minGranularity === "week")
614
617
  return null;
615
618
  if (r.minGranularity === "month" || r.minGranularity === "quarter") {
616
619
  const e = [I.value * 2 + 1, I.value * 2], t = r.minGranularity === "month";
617
620
  return {
618
- titleStart: l().subtract(e[0], "year").format("YYYY"),
619
- titleEnd: l().subtract(e[1], "year").format("YYYY"),
621
+ titleStart: n().subtract(e[0], "year").format("YYYY"),
622
+ titleEnd: n().subtract(e[1], "year").format("YYYY"),
620
623
  gridCols: t ? "grid-cols-3" : "grid-cols-2",
621
624
  unit: r.minGranularity,
622
- yearGroups: e.map((n) => ({
623
- yearLabel: l().subtract(n, "year").format("YYYY"),
624
- items: t ? Array.from({ length: 12 }, (d, g) => ({
625
- date: l().subtract(n, "year").month(g),
626
- label: i.value("ui.months_short." + g)
627
- })) : Array.from({ length: 4 }, (d, g) => ({
628
- date: l().subtract(n, "year").quarter(g + 1).startOf("quarter"),
625
+ yearGroups: e.map((l) => ({
626
+ yearLabel: n().subtract(l, "year").format("YYYY"),
627
+ items: t ? Array.from({ length: 12 }, (p, g) => ({
628
+ date: n().subtract(l, "year").month(g),
629
+ label: s.value("ui.months_short." + g)
630
+ })) : Array.from({ length: 4 }, (p, g) => ({
631
+ date: n().subtract(l, "year").quarter(g + 1).startOf("quarter"),
629
632
  label: `Q${g + 1}`
630
633
  }))
631
634
  })),
@@ -633,331 +636,343 @@ const De = (a, o) => o("ui.period_select.date_short", {
633
636
  };
634
637
  }
635
638
  return {
636
- titleStart: l().subtract(I.value * 8 + 7, "year").format("YYYY"),
637
- titleEnd: l().subtract(I.value * 8, "year").format("YYYY"),
639
+ titleStart: n().subtract(I.value * 8 + 7, "year").format("YYYY"),
640
+ titleEnd: n().subtract(I.value * 8, "year").format("YYYY"),
638
641
  gridCols: "grid-cols-4",
639
642
  unit: "year",
640
643
  yearGroups: null,
641
644
  flatItems: Array.from({ length: 8 }, (e, t) => {
642
- const n = l().subtract(I.value * 8 + (7 - t), "year");
643
- return { date: n, label: n.format("YYYY") };
645
+ const l = n().subtract(I.value * 8 + (7 - t), "year");
646
+ return { date: l, label: l.format("YYYY") };
644
647
  })
645
648
  };
646
- }), Te = f(() => {
649
+ }), Ee = f(() => {
647
650
  var e, t;
648
- return !((e = B.value) != null && e.start) || !((t = B.value) != null && t.end) ? !1 : !l(B.value.end).isBefore(l(B.value.start));
649
- }), qe = f(() => {
650
- j.value;
651
- const e = it(i.value).filter((n) => n.group === "date").filter((n) => X(n.key, r.minGranularity)), t = r.hideDayAndWeek || !X("day-0", r.minGranularity) ? [] : ve("day", i.value);
651
+ return !((e = V.value) != null && e.start) || !((t = V.value) != null && t.end) ? !1 : !n(V.value.end).isBefore(n(V.value.start));
652
+ }), Fe = f(() => {
653
+ N.value;
654
+ const e = ct(s.value).filter((l) => l.group === "date").filter((l) => X(l.key, r.minGranularity)), t = r.hideDayAndWeek || !X("day-0", r.minGranularity) ? [] : ye("day", s.value);
652
655
  return t.length > 0 ? [
653
656
  ...e,
654
657
  {
655
658
  key: "date-history",
656
659
  type: "label",
657
- label: i.value("ui.period_select.Date history label"),
660
+ label: s.value("ui.period_select.Date history label"),
658
661
  group: "date"
659
662
  },
660
663
  ...t
661
664
  ] : e;
662
- }), Ue = f(() => {
663
- j.value;
664
- const e = it(i.value).filter((D) => D.group === "period").filter((D) => X(D.key, r.minGranularity)), t = r.hideDayAndWeek || !X("week-0", r.minGranularity) ? [] : ve("week", i.value), n = X("month-0", r.minGranularity) ? ve("month", i.value) : [], d = X("quarter-0", r.minGranularity) ? ve("quarter", i.value) : [], g = X("year-0", r.minGranularity) ? ve("year", i.value) : [];
665
- return { shortcuts: e, rollingWeek: t, rollingMonth: n, rollingQuarter: d, rollingYear: g };
666
- }), Ie = f(() => {
667
- const { shortcuts: e, rollingWeek: t, rollingMonth: n, rollingQuarter: d, rollingYear: g } = Ue.value, D = [...e], T = [
665
+ }), je = f(() => {
666
+ N.value;
667
+ const e = ct(s.value).filter((D) => D.group === "period").filter((D) => X(D.key, r.minGranularity)), t = r.hideDayAndWeek || !X("week-0", r.minGranularity) ? [] : ye("week", s.value), l = X("month-0", r.minGranularity) ? ye("month", s.value) : [], p = X("quarter-0", r.minGranularity) ? ye("quarter", s.value) : [], g = X("year-0", r.minGranularity) ? ye("year", s.value) : [];
668
+ return { shortcuts: e, rollingWeek: t, rollingMonth: l, rollingQuarter: p, rollingYear: g };
669
+ }), Ne = f(() => {
670
+ const { shortcuts: e, rollingWeek: t, rollingMonth: l, rollingQuarter: p, rollingYear: g } = je.value, D = [...e], q = [
668
671
  { items: t, key: "weeks-history", labelKey: "Weeks history label" },
669
- { items: n, key: "months-history", labelKey: "Months history label" },
670
- { items: d, key: "quarters-history", labelKey: "Quarters history label" },
672
+ { items: l, key: "months-history", labelKey: "Months history label" },
673
+ { items: p, key: "quarters-history", labelKey: "Quarters history label" },
671
674
  { items: g, key: "years-history", labelKey: "Years history label" }
672
675
  ];
673
- for (const H of T)
676
+ for (const H of q)
674
677
  H.items.length > 0 && (D.push({
675
678
  key: H.key,
676
679
  type: "label",
677
- label: i.value(`ui.period_select.${H.labelKey}`),
680
+ label: s.value(`ui.period_select.${H.labelKey}`),
678
681
  group: "period"
679
682
  }), D.push(...H.items));
680
683
  return D;
681
- }), Ee = f(() => [
684
+ }), Ke = f(() => [
682
685
  {
683
686
  id: "date",
684
- title: i.value("ui.period_select.Date group title"),
685
- subtitle: i.value("ui.period_select.Date group subtitle"),
686
- ctaLabel: i.value("ui.period_select.Select date CTA"),
687
- options: qe.value
687
+ title: s.value("ui.period_select.Date group title"),
688
+ subtitle: s.value("ui.period_select.Date group subtitle"),
689
+ ctaLabel: s.value("ui.period_select.Select date CTA"),
690
+ options: Fe.value
688
691
  },
689
692
  {
690
693
  id: "period",
691
- title: i.value("ui.period_select.Period group title"),
692
- subtitle: i.value("ui.period_select.Period group subtitle"),
693
- ctaLabel: i.value("ui.period_select.Select dates CTA"),
694
- options: Ie.value
694
+ title: s.value("ui.period_select.Period group title"),
695
+ subtitle: s.value("ui.period_select.Period group subtitle"),
696
+ ctaLabel: s.value("ui.period_select.Select dates CTA"),
697
+ options: Ne.value
695
698
  }
696
- ]), se = f(
697
- () => r.hideDatePresets ? Ee.value.filter((e) => e.id !== "date") : Ee.value
698
- ), mt = f(() => {
699
- const { shortcuts: e, rollingWeek: t, rollingMonth: n, rollingQuarter: d } = Ue.value, g = [...e];
699
+ ]), le = f(
700
+ () => r.hideDatePresets ? Ke.value.filter((e) => e.id !== "date") : Ke.value
701
+ ), ht = f(() => {
702
+ const { shortcuts: e, rollingWeek: t, rollingMonth: l, rollingQuarter: p } = je.value, g = [...e];
700
703
  t.length > 0 && (g.push({
701
704
  key: "weeks-history",
702
705
  type: "label",
703
- label: i.value("ui.period_select.Weeks history label"),
706
+ label: s.value("ui.period_select.Weeks history label"),
704
707
  group: "period"
705
708
  }), g.push(...t));
706
- const D = (T, H, $t) => H.length === 0 ? null : {
707
- id: T,
709
+ const D = (q, H, Lt) => H.length === 0 ? null : {
710
+ id: q,
708
711
  title: "",
709
712
  subtitle: "",
710
713
  ctaLabel: "",
711
714
  options: [
712
- { key: `${T}-label`, type: "label", label: i.value(`ui.period_select.${$t}`), group: "period" },
715
+ { key: `${q}-label`, type: "label", label: s.value(`ui.period_select.${Lt}`), group: "period" },
713
716
  ...H
714
717
  ]
715
718
  };
716
719
  return [
717
720
  { id: "presets-weeks", title: "", subtitle: "", ctaLabel: "", options: g },
718
- D("months", n, "Months history label"),
719
- D("quarters", d, "Quarters history label")
720
- ].filter((T) => T != null && T.options.length > 0);
721
- }), yt = f(() => mt.value), gt = f(() => [
722
- ...qe.value.filter((e) => e.type === "option"),
723
- ...Ie.value.filter((e) => e.type === "option")
724
- ]), bt = f(
725
- () => V.value && w.value === G || $.value === we
726
- ), ht = f(
727
- () => V.value && w.value === P || $.value === le
728
- ), Fe = () => {
729
- j.value++;
730
- }, kt = () => {
731
- !E.value || !F.value || ie.value || Tt(E.value, F.value, {
721
+ D("months", l, "Months history label"),
722
+ D("quarters", p, "Quarters history label")
723
+ ].filter((q) => q != null && q.options.length > 0);
724
+ }), kt = f(() => ht.value), Yt = f(() => [
725
+ ...Fe.value.filter((e) => e.type === "option"),
726
+ ...Ne.value.filter((e) => e.type === "option")
727
+ ]), wt = f(
728
+ () => P.value && w.value === B || A.value === ze
729
+ ), Dt = f(
730
+ () => P.value && w.value === $ || A.value === oe
731
+ ), Qe = () => {
732
+ N.value++;
733
+ }, Mt = () => {
734
+ !ee.value || !j.value || ve.value || It(ee.value, j.value, {
732
735
  placement: "bottom-start",
733
736
  strategy: "fixed",
734
- middleware: [qt(6), Ut(), It({ padding: 8 })]
737
+ middleware: [Et(6), Ft(), jt({ padding: 8 })]
735
738
  }).then(({ x: e, y: t }) => {
736
- F.value && Object.assign(F.value.style, {
739
+ j.value && Object.assign(j.value.style, {
737
740
  left: `${e}px`,
738
741
  top: `${t}px`
739
742
  });
740
743
  });
741
- }, je = () => {
742
- te && te(), E.value && F.value && !ie.value && (te = Wt(E.value, F.value, kt));
743
- }, Ne = () => {
744
+ }, He = () => {
745
+ te && te(), ee.value && j.value && !ve.value && (te = qt(ee.value, j.value, Mt));
746
+ }, Je = () => {
744
747
  te && (te(), te = null);
745
- }, W = (e, t, n = null) => {
746
- r.asDateString ? ee("update:modelValue", {
747
- start: e ? l.unix(e).format("YYYY-MM-DD") : null,
748
- end: t ? l.unix(t).format("YYYY-MM-DD") : null
749
- }) : ee("update:modelValue", {
748
+ }, L = (e, t, l = null) => {
749
+ r.asDateString ? se("update:modelValue", {
750
+ start: e ? n.unix(e).format("YYYY-MM-DD") : null,
751
+ end: t ? n.unix(t).format("YYYY-MM-DD") : null
752
+ }) : se("update:modelValue", {
750
753
  startUnix: e,
751
754
  endUnix: t,
752
- kind: ua(e, t, n)
755
+ kind: da(e, t, l)
753
756
  });
754
- }, ge = () => {
757
+ }, ke = () => {
755
758
  var e, t;
756
- Me.value = !1, h.value ? h.value = !1 : (U.value = !1, ae.value = r.modelValue ? { ...r.modelValue } : null, h.value = !0, ((e = r.modelValue) == null ? void 0 : e.kind) === G ? (w.value = G, de()) : ((t = r.modelValue) == null ? void 0 : t.kind) === P ? (w.value = P, pe()) : r.asDateString || r.editable ? (w.value = G, de()) : (w.value = P, pe()), V.value = !0, K(() => {
757
- U.value = !0;
758
- }));
759
- }, Yt = () => {
760
- ee("focus"), h.value || ge();
761
- }, wt = () => {
762
- if (se.value.length === 0) {
763
- ge();
759
+ if (Ge.value = !1, h.value)
760
+ h.value = !1;
761
+ else {
762
+ if (R.value = !1, ae.value = r.modelValue ? { ...r.modelValue } : null, h.value = !0, Q.value) {
763
+ w.value = B, re(), E(() => {
764
+ R.value = !0;
765
+ });
766
+ return;
767
+ }
768
+ ((e = r.modelValue) == null ? void 0 : e.kind) === B ? (w.value = B, re()) : ((t = r.modelValue) == null ? void 0 : t.kind) === $ ? (w.value = $, fe()) : r.asDateString || r.editable ? (w.value = B, re()) : (w.value = $, fe()), P.value = !0, E(() => {
769
+ R.value = !0;
770
+ });
771
+ }
772
+ }, Ot = () => {
773
+ se("focus"), h.value || ke();
774
+ }, _t = () => {
775
+ if (le.value.length === 0) {
776
+ ke();
764
777
  return;
765
778
  }
766
- Me.value = !0, V.value = !1, h.value || (ae.value = r.modelValue ? { ...r.modelValue } : null), h.value = !h.value, h.value && K(je);
767
- }, Ke = () => {
779
+ Ge.value = !0, P.value = !1, h.value || (ae.value = r.modelValue ? { ...r.modelValue } : null), h.value = !h.value, h.value && E(He);
780
+ }, ne = () => {
768
781
  h.value = !1;
769
- }, Dt = () => {
770
- W(null, null, null), $.value = null, h.value = !1;
771
- }, Qe = (e) => {
782
+ }, St = () => {
783
+ L(null, null, null), A.value = null, h.value = !1;
784
+ }, Xe = (e) => {
772
785
  if (e.type !== "option" || !e.resolveRange)
773
786
  return;
774
- const [t, n] = e.resolveRange();
775
- W(t, n, e.group), $.value = e.key, h.value = !1;
776
- }, Mt = () => {
777
- h.value = !1, V.value = !1, K(() => {
778
- ae.value ? W(
787
+ const [t, l] = e.resolveRange();
788
+ L(t, l, e.group), A.value = e.key, h.value = !1;
789
+ }, Ye = (e, t, l = null) => {
790
+ L(e, t, l), h.value = !1;
791
+ }, Bt = () => {
792
+ h.value = !1, P.value = !1, E(() => {
793
+ ae.value ? L(
779
794
  ae.value.startUnix ?? null,
780
795
  ae.value.endUnix ?? null,
781
796
  ae.value.kind ?? null
782
- ) : W(null, null, null);
797
+ ) : L(null, null, null);
783
798
  });
784
- }, de = () => {
785
- const e = y.value && k.value && l.unix(y.value).isSame(l.unix(k.value), "day") ? y.value : k.value || y.value || l().unix();
786
- R.value = e ? l.unix(e).format("YYYY-MM-DD") : l().format("YYYY-MM-DD");
787
- }, pe = () => {
788
- y.value || k.value ? B.value = {
789
- start: y.value ? l.unix(y.value).format("YYYY-MM-DD") : void 0,
790
- end: k.value ? l.unix(k.value).format("YYYY-MM-DD") : void 0
791
- } : B.value = void 0, oe.value = y.value ? l.unix(y.value).format("DD.MM.YYYY") : "", ue.value = k.value ? l.unix(k.value).format("DD.MM.YYYY") : "";
792
- }, He = (e) => {
793
- w.value !== e && (U.value = !1, w.value = e, e === G ? de() : pe(), K(() => {
794
- U.value = !0;
799
+ }, re = () => {
800
+ const e = x.value && Y.value && n.unix(x.value).isSame(n.unix(Y.value), "day") ? x.value : Y.value || x.value || n().unix();
801
+ C.value = e ? n.unix(e).format("YYYY-MM-DD") : n().format("YYYY-MM-DD");
802
+ }, fe = () => {
803
+ x.value || Y.value ? V.value = {
804
+ start: x.value ? n.unix(x.value).format("YYYY-MM-DD") : void 0,
805
+ end: Y.value ? n.unix(Y.value).format("YYYY-MM-DD") : void 0
806
+ } : V.value = void 0, pe.value = x.value ? n.unix(x.value).format("DD.MM.YYYY") : "", ce.value = Y.value ? n.unix(Y.value).format("DD.MM.YYYY") : "";
807
+ }, Ze = (e) => {
808
+ w.value !== e && (R.value = !1, w.value = e, e === B ? re() : fe(), E(() => {
809
+ R.value = !0;
795
810
  }));
796
- }, Ot = (e) => {
797
- U.value = !1, w.value = e, e === G ? de() : pe(), V.value = !0, K(() => {
798
- U.value = !0;
811
+ }, zt = (e) => {
812
+ R.value = !1, w.value = e, e === B ? re() : fe(), P.value = !0, E(() => {
813
+ R.value = !0;
799
814
  });
800
- }, _t = (e = !0) => {
801
- if (!R.value)
815
+ }, Vt = (e = !0) => {
816
+ if (!C.value)
802
817
  return;
803
- const t = l(R.value);
804
- t.isValid() && (W(t.startOf("day").unix(), t.endOf("day").unix(), G), $.value = we, e && (h.value = !1));
805
- }, ze = (e, t) => {
806
- var n;
807
- (n = t.target) == null || n.blur();
808
- }, St = (e) => {
809
- e && (R.value = e, V.value && _t());
810
- }, Bt = (e) => {
818
+ const t = n(C.value);
819
+ t.isValid() && (L(t.startOf("day").unix(), t.endOf("day").unix(), B), A.value = ze, e && (h.value = !1));
820
+ }, we = (e, t) => {
821
+ var l;
822
+ (l = t.target) == null || l.blur();
823
+ }, et = (e) => {
824
+ e && (C.value = e, !(!P.value && !Q.value) && Vt());
825
+ }, Gt = (e) => {
811
826
  if (!e)
812
827
  return;
813
- R.value = e;
814
- const t = l(e);
815
- t.isValid() && (ne.value = t.format("DD.MM.YYYY"), W(t.startOf("day").unix(), t.endOf("day").unix(), G));
816
- }, Je = () => {
817
- const e = fe(ne.value);
828
+ C.value = e;
829
+ const t = n(e);
830
+ t.isValid() && (ie.value = t.format("DD.MM.YYYY"), L(t.startOf("day").unix(), t.endOf("day").unix(), B));
831
+ }, tt = () => {
832
+ const e = xe(ie.value);
818
833
  if (e) {
819
- R.value = e, j.value++;
820
- const t = l(e);
821
- t.isValid() && W(t.startOf("day").unix(), t.endOf("day").unix(), G);
834
+ C.value = e, N.value++;
835
+ const t = n(e);
836
+ t.isValid() && L(t.startOf("day").unix(), t.endOf("day").unix(), B);
822
837
  }
823
- }, zt = () => {
824
- _e.value = !0, setTimeout(() => {
825
- _e.value = !1;
838
+ }, Ct = () => {
839
+ $e.value = !0, setTimeout(() => {
840
+ $e.value = !1;
826
841
  }, 0);
827
- }, Xe = () => {
828
- if (_e.value)
842
+ }, at = () => {
843
+ if ($e.value)
829
844
  return;
830
- const e = re.value.trim(), t = e.split(/\s*-\s*/);
845
+ const e = de.value.trim(), t = e.split(/\s*-\s*/);
831
846
  if (t.length === 2) {
832
- const d = fe(t[0]), g = fe(t[1]);
833
- if (d && g) {
834
- const D = l(d), T = l(g);
835
- if (D.isValid() && T.isValid() && !T.isBefore(D)) {
836
- W(D.startOf("day").unix(), T.endOf("day").unix(), P), $.value = le;
847
+ const p = xe(t[0]), g = xe(t[1]);
848
+ if (p && g) {
849
+ const D = n(p), q = n(g);
850
+ if (D.isValid() && q.isValid() && !q.isBefore(D)) {
851
+ L(D.startOf("day").unix(), q.endOf("day").unix(), $), A.value = oe;
837
852
  return;
838
853
  }
839
854
  }
840
855
  }
841
- const n = fe(e);
842
- if (n) {
843
- R.value = n, j.value++, $.value = we;
844
- const d = l(n);
845
- d.isValid() && W(d.startOf("day").unix(), d.endOf("day").unix(), G);
856
+ const l = xe(e);
857
+ if (l) {
858
+ C.value = l, N.value++, A.value = ze;
859
+ const p = n(l);
860
+ p.isValid() && L(p.startOf("day").unix(), p.endOf("day").unix(), B);
846
861
  }
847
- }, Gt = () => {
862
+ }, $t = () => {
848
863
  var e, t;
849
- !Te.value || !((e = B.value) != null && e.start) || !((t = B.value) != null && t.end) || (W(
850
- l(B.value.start).startOf("day").unix(),
851
- l(B.value.end).endOf("day").unix(),
852
- P
853
- ), $.value = le, h.value = !1);
854
- }, be = (e) => {
855
- const n = fe((e === "start" ? oe : ue).value);
856
- n && (B.value = { ...B.value || {}, [e]: n });
857
- }, Ze = (e, t) => {
858
- if (!z.value)
859
- z.value = e;
864
+ !Ee.value || !((e = V.value) != null && e.start) || !((t = V.value) != null && t.end) || (L(
865
+ n(V.value.start).startOf("day").unix(),
866
+ n(V.value.end).endOf("day").unix(),
867
+ $
868
+ ), A.value = oe, h.value = !1);
869
+ }, De = (e) => {
870
+ const l = xe((e === "start" ? pe : ce).value);
871
+ l && (V.value = { ...V.value || {}, [e]: l });
872
+ }, lt = (e, t) => {
873
+ if (!G.value)
874
+ G.value = e;
860
875
  else {
861
- const n = z.value.isBefore(e) ? z.value : e, d = z.value.isBefore(e) ? e : z.value;
862
- W(
863
- n.startOf(t).startOf("day").unix(),
864
- d.endOf(t).endOf("day").unix(),
865
- P
866
- ), $.value = le, z.value = null, Oe.value = null, h.value = !1;
876
+ const l = G.value.isBefore(e) ? G.value : e, p = G.value.isBefore(e) ? e : G.value;
877
+ L(
878
+ l.startOf(t).startOf("day").unix(),
879
+ p.endOf(t).endOf("day").unix(),
880
+ $
881
+ ), A.value = oe, G.value = null, Ce.value = null, h.value = !1;
867
882
  }
868
- }, et = (e, t) => {
869
- if (z.value && !Oe.value) {
870
- if (N.value) {
871
- const n = z.value.isBefore(N.value) ? z.value : N.value, d = z.value.isBefore(N.value) ? N.value : z.value;
872
- return (e.isSame(n, t) || e.isAfter(n, t)) && (e.isSame(d, t) || e.isBefore(d, t));
883
+ }, nt = (e, t) => {
884
+ if (G.value && !Ce.value) {
885
+ if (K.value) {
886
+ const l = G.value.isBefore(K.value) ? G.value : K.value, p = G.value.isBefore(K.value) ? K.value : G.value;
887
+ return (e.isSame(l, t) || e.isAfter(l, t)) && (e.isSame(p, t) || e.isBefore(p, t));
873
888
  }
874
- return e.isSame(z.value, t);
889
+ return e.isSame(G.value, t);
875
890
  }
876
- if (y.value && k.value) {
877
- const n = l.unix(y.value), d = l.unix(k.value);
878
- return (e.isSame(n, t) || e.isAfter(n, t)) && (e.isSame(d, t) || e.isBefore(d, t));
891
+ if (x.value && Y.value) {
892
+ const l = n.unix(x.value), p = n.unix(Y.value);
893
+ return (e.isSame(l, t) || e.isAfter(l, t)) && (e.isSame(p, t) || e.isBefore(p, t));
879
894
  }
880
895
  return !1;
881
- }, tt = (e) => {
882
- z.value && (N.value = e);
883
- }, at = () => {
884
- N.value = null;
885
- }, Ct = () => {
886
- if (!y.value && !k.value)
896
+ }, rt = (e) => {
897
+ G.value && (K.value = e);
898
+ }, ot = () => {
899
+ K.value = null;
900
+ }, Pt = () => {
901
+ if (!x.value && !Y.value)
887
902
  return null;
888
- const e = gt.value.find((t) => {
903
+ const e = Yt.value.find((t) => {
889
904
  if (!t.resolveRange)
890
905
  return !1;
891
- const [n, d] = t.resolveRange(), g = n == null && y.value == null || n != null && y.value != null && n === y.value, D = d == null && k.value == null || d != null && k.value != null && d === k.value;
906
+ const [l, p] = t.resolveRange(), g = l == null && x.value == null || l != null && x.value != null && l === x.value, D = p == null && Y.value == null || p != null && Y.value != null && p === Y.value;
892
907
  return g && D;
893
908
  });
894
- return e ? e.key : y.value && k.value && l.unix(y.value).isSame(l.unix(k.value), "day") ? we : le;
895
- }, Pt = () => {
896
- h.value = !1, me.open();
897
- }, Vt = (e) => {
898
- Qe(e), me.close();
909
+ return e ? e.key : x.value && Y.value && n.unix(x.value).isSame(n.unix(Y.value), "day") ? ze : oe;
910
+ }, At = () => {
911
+ h.value = !1, ge.open();
912
+ }, Rt = (e) => {
913
+ Xe(e), ge.close();
899
914
  };
900
- ce(vt, (e) => {
901
- r.editable && (re.value = e);
902
- }, { immediate: !0 }), ce(h, (e) => {
903
- e ? (Fe(), K(je), (!ye.value || se.value.length === 0) && !V.value && (U.value = !1, w.value = P, pe(), V.value = !0, K(() => {
904
- U.value = !0;
905
- }))) : (Ne(), U.value = !1, V.value = !1, Me.value = !1, I.value = 0, z.value = null, Oe.value = null, N.value = null);
906
- }), ce(
907
- () => [y.value, k.value, j.value],
915
+ me(xt, (e) => {
916
+ r.editable && (de.value = e);
917
+ }, { immediate: !0 }), me(h, (e) => {
918
+ e ? (Qe(), E(He), !Q.value && (!he.value || le.value.length === 0) && !P.value && (R.value = !1, w.value = $, fe(), P.value = !0, E(() => {
919
+ R.value = !0;
920
+ }))) : (Je(), R.value = !1, P.value = !1, Ge.value = !1, I.value = 0, G.value = null, Ce.value = null, K.value = null);
921
+ }), me(
922
+ () => [x.value, Y.value, N.value],
908
923
  () => {
909
- $.value = Ct();
924
+ A.value = Pt();
910
925
  },
911
926
  { immediate: !0 }
912
- ), ce(
927
+ ), me(
913
928
  () => r.minGranularity,
914
929
  () => {
915
- Fe(), !ye.value && w.value === G && (w.value = P);
930
+ Qe(), !he.value && w.value === B && (w.value = $);
916
931
  }
917
- ), ce(B, (e) => {
918
- e != null && e.start && (oe.value = l(e.start).format("DD.MM.YYYY")), e != null && e.end && (ue.value = l(e.end).format("DD.MM.YYYY"));
932
+ ), me(V, (e) => {
933
+ e != null && e.start && (pe.value = n(e.start).format("DD.MM.YYYY")), e != null && e.end && (ce.value = n(e.end).format("DD.MM.YYYY"));
919
934
  });
920
- const Ge = () => {
921
- Re.value = window.innerWidth;
922
- }, lt = (e) => {
923
- var t, n;
924
- h.value && ((t = E.value) != null && t.contains(e.target) || (n = F.value) != null && n.contains(e.target) || Ke());
935
+ const Re = () => {
936
+ qe.value = window.innerWidth;
937
+ }, ut = (e) => {
938
+ var t, l;
939
+ h.value && ((t = ee.value) != null && t.contains(e.target) || (l = j.value) != null && l.contains(e.target) || ne());
925
940
  };
926
- return Rt(() => {
927
- Ge(), window.addEventListener("resize", Ge), document.addEventListener("click", lt), r.mode === "inline" && (de(), y.value && (ne.value = l.unix(y.value).format("DD.MM.YYYY")), K(() => {
928
- Ae.value = !0;
941
+ return Tt(() => {
942
+ Re(), window.addEventListener("resize", Re), document.addEventListener("click", ut), r.mode === "inline" && (re(), x.value && (ie.value = n.unix(x.value).format("DD.MM.YYYY")), E(() => {
943
+ Ue.value = !0;
929
944
  }));
930
- }), Lt(() => {
931
- Ne(), window.removeEventListener("resize", Ge), document.removeEventListener("click", lt);
932
- }), (e, t) => (u(), p("div", {
945
+ }), Ut(() => {
946
+ Je(), window.removeEventListener("resize", Re), document.removeEventListener("click", ut);
947
+ }), (e, t) => (o(), d("div", {
933
948
  class: "relative",
934
949
  ref_key: "containerRef",
935
- ref: E,
936
- style: xe(C.value)
950
+ ref: ee,
951
+ style: ue(z.value)
937
952
  }, [
938
- a.mode === "inline" ? (u(), p("div", {
953
+ a.mode === "inline" ? (o(), d("div", {
939
954
  key: 0,
940
955
  class: "one-pp-panel",
941
- style: xe(C.value)
956
+ style: ue(z.value)
942
957
  }, [
943
- he(v("input", {
958
+ Me(v("input", {
944
959
  type: "text",
945
- "onUpdate:modelValue": t[0] || (t[0] = (n) => ne.value = n),
946
- onBlur: Je,
947
- onKeyup: ke(Je, ["enter"]),
960
+ "onUpdate:modelValue": t[0] || (t[0] = (l) => ie.value = l),
961
+ onBlur: tt,
962
+ onKeyup: Oe(tt, ["enter"]),
948
963
  placeholder: a.placeholder || "DD.MM.YYYY",
949
964
  class: "manual-input mb-2"
950
- }, null, 40, sa), [
951
- [Ye, ne.value]
965
+ }, null, 40, ca), [
966
+ [_e, ie.value]
952
967
  ]),
953
- Ae.value ? (u(), Q(S(Ce), {
954
- key: Le.value,
955
- modelValue: R.value,
968
+ Ue.value ? (o(), F(M(Be), {
969
+ key: Ae.value,
970
+ modelValue: C.value,
956
971
  "onUpdate:modelValue": [
957
- t[1] || (t[1] = (n) => R.value = n),
958
- Bt
972
+ t[1] || (t[1] = (l) => C.value = l),
973
+ Gt
959
974
  ],
960
- onDayclick: ze,
975
+ onDayclick: we,
961
976
  "is-inline": "",
962
977
  color: "gray",
963
978
  "trim-weeks": "",
@@ -965,359 +980,405 @@ const De = (a, o) => o("ui.period_select.date_short", {
965
980
  rows: 1,
966
981
  mode: "date",
967
982
  masks: { title: "MMMM YYYY" },
968
- "disabled-dates": Be.value
969
- }, null, 8, ["modelValue", "disabled-dates"])) : Y("", !0)
970
- ], 4)) : (u(), p("div", {
983
+ "disabled-dates": be.value
984
+ }, null, 8, ["modelValue", "disabled-dates"])) : k("", !0)
985
+ ], 4)) : (o(), d("div", {
971
986
  key: 1,
972
987
  class: c(["flex items-center overflow-hidden", [
973
- m.value.trigger,
988
+ y.value.trigger,
974
989
  a.editable ? ["border transition-colors", a.noBorder ? "border-transparent focus-within:border-blue-500" : "border-gray-200 focus-within:border-blue-500"] : [{ border: !a.noBorder }, "border-gray-200"]
975
990
  ]])
976
991
  }, [
977
- a.editable ? (u(), p("div", {
992
+ a.editable ? (o(), d("div", {
978
993
  key: 0,
979
- class: c(["flex items-center h-full bg-white flex-1", [m.value.triggerButton]])
994
+ class: c(["flex items-center h-full bg-white flex-1", [y.value.triggerButton]])
980
995
  }, [
981
996
  v("button", {
982
- onClick: ge,
997
+ onClick: ke,
983
998
  type: "button",
984
999
  class: "flex-shrink-0 hover:text-blue-600 transition-colors"
985
1000
  }, [
986
- J(S(Ve), {
987
- class: c([m.value.triggerIcon])
1001
+ J(M(We), {
1002
+ class: c([y.value.triggerIcon])
988
1003
  }, null, 8, ["class"])
989
1004
  ]),
990
- he(v("input", {
1005
+ Me(v("input", {
991
1006
  type: "text",
992
- "onUpdate:modelValue": t[2] || (t[2] = (n) => re.value = n),
993
- onFocus: Yt,
994
- onBlur: Xe,
995
- onKeyup: ke(Xe, ["enter"]),
1007
+ "onUpdate:modelValue": t[2] || (t[2] = (l) => de.value = l),
1008
+ onFocus: Ot,
1009
+ onBlur: at,
1010
+ onKeyup: Oe(at, ["enter"]),
996
1011
  placeholder: a.placeholder || "DD.MM.YYYY",
997
- class: c(["w-full bg-transparent outline-none truncate !border-0 !shadow-none !ring-0 !p-0", [Se.value || re.value ? "text-gray-900 font-medium" : "text-gray-600 font-normal"]])
998
- }, null, 42, da), [
999
- [Ye, re.value]
1012
+ class: c(["w-full bg-transparent outline-none truncate !border-0 !shadow-none !ring-0 !p-0", [Pe.value || de.value ? "text-gray-900 font-medium" : "text-gray-600 font-normal"]])
1013
+ }, null, 42, va), [
1014
+ [_e, de.value]
1000
1015
  ])
1001
- ], 2)) : (u(), p("button", {
1016
+ ], 2)) : (o(), d("button", {
1002
1017
  key: 1,
1003
- onClick: ge,
1018
+ onClick: ke,
1004
1019
  type: "button",
1005
- class: c(["flex items-center h-full bg-white hover:bg-gray-50 transition-colors flex-1", [m.value.triggerButton, Se.value ? "text-gray-900 font-medium" : "text-gray-600 font-normal"]])
1020
+ class: c(["flex items-center h-full bg-white hover:bg-gray-50 transition-colors flex-1", [y.value.triggerButton, Pe.value ? "text-gray-900 font-medium" : "text-gray-600 font-normal"]])
1006
1021
  }, [
1007
- J(S(Ve), {
1008
- class: c([m.value.triggerIcon, "flex-shrink-0"])
1022
+ J(M(We), {
1023
+ class: c([y.value.triggerIcon, "flex-shrink-0"])
1009
1024
  }, null, 8, ["class"]),
1010
- v("span", pa, O(ct.value), 1)
1025
+ v("span", fa, _(yt.value), 1)
1011
1026
  ], 2)),
1012
- a.mode === "short" ? (u(), p(q, { key: 2 }, [
1027
+ a.mode === "short" ? (o(), d(W, { key: 2 }, [
1013
1028
  v("div", {
1014
- class: c(["w-px bg-gray-200", m.value.triggerDivider])
1029
+ class: c(["w-px bg-gray-200", y.value.triggerDivider])
1015
1030
  }, null, 2),
1016
1031
  v("button", {
1017
- onClick: wt,
1032
+ onClick: _t,
1018
1033
  type: "button",
1019
- class: c(["flex items-center justify-center h-full bg-white hover:bg-gray-50 transition-colors", m.value.triggerAction])
1034
+ class: c(["flex items-center justify-center h-full bg-white hover:bg-gray-50 transition-colors", y.value.triggerAction])
1020
1035
  }, [
1021
- J(S(Nt), {
1022
- class: c([m.value.triggerIcon, "text-gray-600"])
1036
+ J(M(Ht), {
1037
+ class: c([y.value.triggerIcon, "text-gray-600"])
1023
1038
  }, null, 8, ["class"])
1024
1039
  ], 2)
1025
- ], 64)) : Y("", !0),
1026
- a.mode === "full" ? (u(), p(q, { key: 3 }, [
1040
+ ], 64)) : k("", !0),
1041
+ a.mode === "full" ? (o(), d(W, { key: 3 }, [
1027
1042
  v("div", {
1028
- class: c(["w-px bg-gray-200", m.value.triggerDivider])
1043
+ class: c(["w-px bg-gray-200", y.value.triggerDivider])
1029
1044
  }, null, 2),
1030
1045
  v("button", {
1031
- onClick: Pt,
1046
+ onClick: At,
1032
1047
  type: "button",
1033
- class: c(["flex items-center justify-center h-full bg-white hover:bg-gray-50 transition-colors", m.value.triggerAction])
1048
+ class: c(["flex items-center justify-center h-full bg-white hover:bg-gray-50 transition-colors", y.value.triggerAction])
1034
1049
  }, [
1035
- J(S(Zt), {
1036
- class: c([m.value.triggerIcon, "text-gray-600"])
1050
+ J(M(aa), {
1051
+ class: c([y.value.triggerIcon, "text-gray-600"])
1037
1052
  }, null, 8, ["class"])
1038
1053
  ], 2)
1039
- ], 64)) : Y("", !0),
1040
- Se.value && !a.noClear ? (u(), p(q, { key: 4 }, [
1054
+ ], 64)) : k("", !0),
1055
+ Pe.value && !a.noClear ? (o(), d(W, { key: 4 }, [
1041
1056
  v("div", {
1042
- class: c(["w-px bg-gray-200", m.value.triggerDivider])
1057
+ class: c(["w-px bg-gray-200", y.value.triggerDivider])
1043
1058
  }, null, 2),
1044
1059
  v("button", {
1045
- onClick: Dt,
1060
+ onClick: St,
1046
1061
  type: "button",
1047
- class: c(["flex items-center justify-center h-full bg-white hover:bg-gray-50 transition-colors", m.value.triggerAction])
1062
+ class: c(["flex items-center justify-center h-full bg-white hover:bg-gray-50 transition-colors", y.value.triggerAction])
1048
1063
  }, [
1049
- J(S(jt), {
1050
- class: c([m.value.clearIcon, "text-gray-600"])
1064
+ J(M(Qt), {
1065
+ class: c([y.value.clearIcon, "text-gray-600"])
1051
1066
  }, null, 8, ["class"])
1052
1067
  ], 2)
1053
- ], 64)) : Y("", !0)
1068
+ ], 64)) : k("", !0)
1054
1069
  ], 2)),
1055
- (u(), Q(nt, { to: "body" }, [
1056
- h.value && ie.value ? (u(), p("div", {
1070
+ (o(), F(st, { to: "body" }, [
1071
+ h.value && ve.value ? (o(), d("div", {
1057
1072
  key: 0,
1058
1073
  class: "fixed inset-0 z-40 bg-black/20",
1059
- onClick: Ke
1060
- })) : Y("", !0)
1074
+ onClick: ne
1075
+ })) : k("", !0)
1061
1076
  ])),
1062
- (u(), Q(nt, { to: "body" }, [
1063
- h.value ? (u(), p("div", {
1077
+ (o(), F(st, { to: "body" }, [
1078
+ h.value ? (o(), d("div", {
1064
1079
  key: 0,
1065
1080
  ref_key: "dropdownRef",
1066
- ref: F,
1081
+ ref: j,
1067
1082
  class: c(["dropdown-menu bg-white shadow-xl border border-gray-200 z-[9999] overflow-y-auto rounded-t-2xl sm:rounded-lg", [
1068
- s.value.dropdown,
1069
- ie.value ? "fixed inset-x-0 bottom-0 max-h-[93vh]" : "fixed max-h-[85vh]"
1083
+ i.value.dropdown,
1084
+ ve.value ? "fixed inset-x-0 bottom-0 max-h-[93vh]" : "fixed max-h-[85vh]"
1070
1085
  ]]),
1071
- style: xe(C.value),
1072
- onMousedown: zt
1086
+ style: ue(z.value),
1087
+ onMousedown: Ct
1073
1088
  }, [
1074
- t[15] || (t[15] = v("div", { class: "sm:hidden flex justify-center pb-2" }, [
1089
+ t[16] || (t[16] = v("div", { class: "sm:hidden flex justify-center pb-2" }, [
1075
1090
  v("div", { class: "w-10 h-1 bg-gray-300 rounded-full" })
1076
1091
  ], -1)),
1077
- !V.value && se.value.length > 0 ? (u(), p("div", {
1092
+ Q.value ? (o(), d("div", {
1078
1093
  key: 0,
1079
- class: c(["flex flex-col gap-4 w-full", _.value && se.value.length > 1 ? "sm:grid sm:gap-3 sm:grid-cols-2" : ""])
1094
+ class: c(["picker-panel one-pp-panel", i.value.panelGap]),
1095
+ style: ue(z.value)
1080
1096
  }, [
1081
- (u(!0), p(q, null, Z(se.value, (n) => (u(), p("section", {
1082
- key: n.id,
1083
- class: "flex flex-col picker-group"
1084
- }, [
1085
- v("div", ca, [
1086
- v("p", {
1087
- class: c([s.value.groupTitle, "text-gray-700"])
1088
- }, O(n.title), 3),
1089
- v("span", {
1090
- class: c([s.value.groupSubtitle, "text-gray-500"])
1091
- }, O(n.subtitle), 3)
1092
- ]),
1093
- v("div", va, [
1094
- (u(!0), p(q, null, Z(n.options, (d) => (u(), p("div", {
1095
- key: d.key
1097
+ Se(e.$slots, "presets-top", {
1098
+ select: Ye,
1099
+ close: ne,
1100
+ value: a.modelValue
1101
+ }, void 0, !0),
1102
+ Se(e.$slots, "presets-bottom", {
1103
+ select: Ye,
1104
+ close: ne,
1105
+ value: a.modelValue
1106
+ }, void 0, !0),
1107
+ R.value ? (o(), F(M(Be), {
1108
+ key: Ae.value,
1109
+ modelValue: C.value,
1110
+ "onUpdate:modelValue": [
1111
+ t[3] || (t[3] = (l) => C.value = l),
1112
+ et
1113
+ ],
1114
+ onDayclick: we,
1115
+ "is-inline": "",
1116
+ color: "gray",
1117
+ "trim-weeks": "",
1118
+ columns: 1,
1119
+ rows: 1,
1120
+ mode: "date",
1121
+ masks: { title: "MMMM YYYY" },
1122
+ "disabled-dates": be.value
1123
+ }, null, 8, ["modelValue", "disabled-dates"])) : k("", !0)
1124
+ ], 6)) : (o(), d(W, { key: 1 }, [
1125
+ !P.value && (le.value.length > 0 || e.$slots["presets-top"] || e.$slots["presets-bottom"]) ? (o(), d("div", ma, [
1126
+ Se(e.$slots, "presets-top", {
1127
+ select: Ye,
1128
+ close: ne,
1129
+ value: a.modelValue
1130
+ }, void 0, !0),
1131
+ le.value.length > 0 ? (o(), d("div", {
1132
+ key: 0,
1133
+ class: c(["flex flex-col gap-4 w-full", S.value && le.value.length > 1 ? "sm:grid sm:gap-3 sm:grid-cols-2" : ""])
1134
+ }, [
1135
+ (o(!0), d(W, null, Z(le.value, (l) => (o(), d("section", {
1136
+ key: l.id,
1137
+ class: "flex flex-col picker-group"
1096
1138
  }, [
1097
- d.type === "label" ? (u(), p("p", {
1098
- key: 0,
1099
- class: c([s.value.presetLabel, "uppercase tracking-wide text-gray-500 mt-4 mb-1"])
1100
- }, O(d.label), 3)) : (u(), p("button", {
1101
- key: 1,
1102
- class: c(["picker-option", { "picker-option--active": $.value === d.key }]),
1103
- onClick: (g) => Qe(d),
1104
- type: "button"
1105
- }, [
1106
- v("span", xa, O(d.label), 1),
1107
- d.description ? (u(), p("span", ma, O(d.description), 1)) : Y("", !0)
1108
- ], 10, fa))
1139
+ v("div", ya, [
1140
+ v("p", {
1141
+ class: c([i.value.groupTitle, "text-gray-700"])
1142
+ }, _(l.title), 3),
1143
+ v("span", {
1144
+ class: c([i.value.groupSubtitle, "text-gray-500"])
1145
+ }, _(l.subtitle), 3)
1146
+ ]),
1147
+ v("div", xa, [
1148
+ (o(!0), d(W, null, Z(l.options, (p) => (o(), d("div", {
1149
+ key: p.key
1150
+ }, [
1151
+ p.type === "label" ? (o(), d("p", {
1152
+ key: 0,
1153
+ class: c([i.value.presetLabel, "uppercase tracking-wide text-gray-500 mt-4 mb-1"])
1154
+ }, _(p.label), 3)) : (o(), d("button", {
1155
+ key: 1,
1156
+ class: c(["picker-option", { "picker-option--active": A.value === p.key }]),
1157
+ onClick: (g) => Xe(p),
1158
+ type: "button"
1159
+ }, [
1160
+ v("span", ba, _(p.label), 1),
1161
+ p.description ? (o(), d("span", ha, _(p.description), 1)) : k("", !0)
1162
+ ], 10, ga))
1163
+ ]))), 128))
1164
+ ]),
1165
+ J(M(Le), {
1166
+ class: c(["mt-3 w-full", [i.value.ctaButton, {
1167
+ "picker-cta--active": l.id === "date" ? wt.value : Dt.value
1168
+ }]]),
1169
+ size: i.value.ctaButtonSize,
1170
+ variant: l.id === "date" ? "primary" : "secondary",
1171
+ icon: l.id === "date" ? M(We) : M(it),
1172
+ label: l.ctaLabel,
1173
+ onClick: (p) => zt(l.id === "date" ? "date" : "range")
1174
+ }, null, 8, ["class", "size", "variant", "icon", "label", "onClick"])
1109
1175
  ]))), 128))
1110
- ]),
1111
- J(S(Pe), {
1112
- class: c(["mt-3 w-full", [s.value.ctaButton, {
1113
- "picker-cta--active": n.id === "date" ? bt.value : ht.value
1114
- }]]),
1115
- size: s.value.ctaButtonSize,
1116
- variant: n.id === "date" ? "primary" : "secondary",
1117
- icon: n.id === "date" ? S(Ve) : S(rt),
1118
- label: n.ctaLabel,
1119
- onClick: (d) => Ot(n.id === "date" ? "date" : "range")
1120
- }, null, 8, ["class", "size", "variant", "icon", "label", "onClick"])
1121
- ]))), 128))
1122
- ], 2)) : Y("", !0),
1123
- V.value ? (u(), p("div", {
1124
- key: 1,
1125
- class: c(["picker-panel one-pp-panel", s.value.panelGap]),
1126
- style: xe(C.value)
1127
- }, [
1128
- v("div", {
1129
- class: c(["grid gap-2", ye.value ? "grid-cols-2" : "grid-cols-1"])
1176
+ ], 2)) : k("", !0),
1177
+ Se(e.$slots, "presets-bottom", {
1178
+ select: Ye,
1179
+ close: ne,
1180
+ value: a.modelValue
1181
+ }, void 0, !0)
1182
+ ])) : k("", !0),
1183
+ P.value ? (o(), d("div", {
1184
+ key: 1,
1185
+ class: c(["picker-panel one-pp-panel", i.value.panelGap]),
1186
+ style: ue(z.value)
1130
1187
  }, [
1131
- ye.value ? (u(), p("button", {
1132
- key: 0,
1133
- type: "button",
1134
- class: c(["border font-medium transition-colors", [
1135
- s.value.tabButton,
1136
- w.value === "date" ? "border-blue-500 bg-blue-50 text-blue-700" : "border-gray-200 text-gray-700 hover:border-blue-200 hover:text-blue-700"
1137
- ]]),
1138
- onClick: t[3] || (t[3] = (n) => He("date"))
1139
- }, O(i.value("ui.period_select.Date group title")), 3)) : Y("", !0),
1140
- v("button", {
1141
- type: "button",
1142
- class: c(["border font-medium transition-colors", [
1143
- s.value.tabButton,
1144
- w.value === "range" ? "border-blue-500 bg-blue-50 text-blue-700" : "border-gray-200 text-gray-700 hover:border-blue-200 hover:text-blue-700"
1145
- ]]),
1146
- onClick: t[4] || (t[4] = (n) => He("range"))
1147
- }, O(xt.value), 3)
1148
- ], 2),
1149
- U.value && (!a.minGranularity || a.minGranularity === "day" || a.minGranularity === "week") ? (u(), p(q, { key: 0 }, [
1150
- w.value === "date" ? (u(), Q(S(Ce), {
1151
- key: Le.value,
1152
- modelValue: R.value,
1153
- "onUpdate:modelValue": [
1154
- t[5] || (t[5] = (n) => R.value = n),
1155
- St
1156
- ],
1157
- onDayclick: ze,
1158
- "is-inline": "",
1159
- color: "gray",
1160
- "trim-weeks": "",
1161
- columns: 1,
1162
- rows: 1,
1163
- mode: "date",
1164
- masks: { title: "MMMM YYYY" },
1165
- "disabled-dates": Be.value
1166
- }, null, 8, ["modelValue", "disabled-dates"])) : w.value === "range" ? (u(), Q(S(Ce), {
1167
- key: ft.value,
1168
- modelValue: B.value,
1169
- "onUpdate:modelValue": t[6] || (t[6] = (n) => B.value = n),
1170
- onDayclick: ze,
1171
- "is-inline": "",
1172
- "is-range": "",
1173
- color: "gray",
1174
- "trim-weeks": "",
1175
- mode: "date",
1176
- columns: We.value,
1177
- rows: 1,
1178
- masks: { title: "MMMM YYYY" },
1179
- "disabled-dates": Be.value
1180
- }, null, 8, ["modelValue", "columns", "disabled-dates"])) : Y("", !0)
1181
- ], 64)) : L.value ? (u(), p("div", ya, [
1182
- v("div", ga, [
1183
- v("button", {
1184
- onClick: t[7] || (t[7] = (n) => I.value++),
1188
+ v("div", {
1189
+ class: c(["grid gap-2", he.value ? "grid-cols-2" : "grid-cols-1"])
1190
+ }, [
1191
+ he.value ? (o(), d("button", {
1192
+ key: 0,
1185
1193
  type: "button",
1186
- class: "nav-btn"
1187
- }, "«"),
1188
- v("span", {
1189
- class: c([s.value.navTitle, "text-gray-700"])
1190
- }, O(L.value.titleStart) + " - " + O(L.value.titleEnd), 3),
1194
+ class: c(["border font-medium transition-colors", [
1195
+ i.value.tabButton,
1196
+ w.value === "date" ? "border-blue-500 bg-blue-50 text-blue-700" : "border-gray-200 text-gray-700 hover:border-blue-200 hover:text-blue-700"
1197
+ ]]),
1198
+ onClick: t[4] || (t[4] = (l) => Ze("date"))
1199
+ }, _(s.value("ui.period_select.Date group title")), 3)) : k("", !0),
1191
1200
  v("button", {
1192
- onClick: t[8] || (t[8] = (n) => I.value--),
1193
- disabled: I.value === 0,
1194
1201
  type: "button",
1195
- class: "nav-btn"
1196
- }, " » ", 8, ba)
1197
- ]),
1198
- L.value.yearGroups ? (u(), p("div", ha, [
1199
- (u(!0), p(q, null, Z(L.value.yearGroups, (n) => (u(), p("div", {
1200
- key: n.yearLabel,
1201
- class: "space-y-2"
1202
- }, [
1203
- v("div", {
1204
- class: c([s.value.navTitle, "text-center text-gray-700 py-2"])
1205
- }, O(n.yearLabel), 3),
1206
- v("div", {
1207
- class: c(["grid gap-2", L.value.gridCols])
1202
+ class: c(["border font-medium transition-colors", [
1203
+ i.value.tabButton,
1204
+ w.value === "range" ? "border-blue-500 bg-blue-50 text-blue-700" : "border-gray-200 text-gray-700 hover:border-blue-200 hover:text-blue-700"
1205
+ ]]),
1206
+ onClick: t[5] || (t[5] = (l) => Ze("range"))
1207
+ }, _(bt.value), 3)
1208
+ ], 2),
1209
+ R.value && (!a.minGranularity || a.minGranularity === "day" || a.minGranularity === "week") ? (o(), d(W, { key: 0 }, [
1210
+ w.value === "date" ? (o(), F(M(Be), {
1211
+ key: Ae.value,
1212
+ modelValue: C.value,
1213
+ "onUpdate:modelValue": [
1214
+ t[6] || (t[6] = (l) => C.value = l),
1215
+ et
1216
+ ],
1217
+ onDayclick: we,
1218
+ "is-inline": "",
1219
+ color: "gray",
1220
+ "trim-weeks": "",
1221
+ columns: 1,
1222
+ rows: 1,
1223
+ mode: "date",
1224
+ masks: { title: "MMMM YYYY" },
1225
+ "disabled-dates": be.value
1226
+ }, null, 8, ["modelValue", "disabled-dates"])) : w.value === "range" ? (o(), F(M(Be), {
1227
+ key: gt.value,
1228
+ modelValue: V.value,
1229
+ "onUpdate:modelValue": t[7] || (t[7] = (l) => V.value = l),
1230
+ onDayclick: we,
1231
+ "is-inline": "",
1232
+ "is-range": "",
1233
+ color: "gray",
1234
+ "trim-weeks": "",
1235
+ mode: "date",
1236
+ columns: Ie.value,
1237
+ rows: 1,
1238
+ masks: { title: "MMMM YYYY" },
1239
+ "disabled-dates": be.value
1240
+ }, null, 8, ["modelValue", "columns", "disabled-dates"])) : k("", !0)
1241
+ ], 64)) : U.value ? (o(), d("div", ka, [
1242
+ v("div", Ya, [
1243
+ v("button", {
1244
+ onClick: t[8] || (t[8] = (l) => I.value++),
1245
+ type: "button",
1246
+ class: "nav-btn"
1247
+ }, "«"),
1248
+ v("span", {
1249
+ class: c([i.value.navTitle, "text-gray-700"])
1250
+ }, _(U.value.titleStart) + " - " + _(U.value.titleEnd), 3),
1251
+ v("button", {
1252
+ onClick: t[9] || (t[9] = (l) => I.value--),
1253
+ disabled: I.value === 0,
1254
+ type: "button",
1255
+ class: "nav-btn"
1256
+ }, " » ", 8, wa)
1257
+ ]),
1258
+ U.value.yearGroups ? (o(), d("div", Da, [
1259
+ (o(!0), d(W, null, Z(U.value.yearGroups, (l) => (o(), d("div", {
1260
+ key: l.yearLabel,
1261
+ class: "space-y-2"
1208
1262
  }, [
1209
- (u(!0), p(q, null, Z(n.items, (d, g) => (u(), p("button", {
1210
- key: g,
1211
- type: "button",
1212
- class: c(["month-btn", et(d.date, L.value.unit) ? "month-btn--active" : ""]),
1213
- onClick: (D) => Ze(d.date, L.value.unit),
1214
- onMouseenter: (D) => tt(d.date),
1215
- onMouseleave: at
1216
- }, O(d.label), 43, ka))), 128))
1217
- ], 2)
1218
- ]))), 128))
1219
- ])) : L.value.flatItems ? (u(), p("div", {
1220
- key: 1,
1221
- class: c(["grid gap-2", L.value.gridCols])
1263
+ v("div", {
1264
+ class: c([i.value.navTitle, "text-center text-gray-700 py-2"])
1265
+ }, _(l.yearLabel), 3),
1266
+ v("div", {
1267
+ class: c(["grid gap-2", U.value.gridCols])
1268
+ }, [
1269
+ (o(!0), d(W, null, Z(l.items, (p, g) => (o(), d("button", {
1270
+ key: g,
1271
+ type: "button",
1272
+ class: c(["month-btn", nt(p.date, U.value.unit) ? "month-btn--active" : ""]),
1273
+ onClick: (D) => lt(p.date, U.value.unit),
1274
+ onMouseenter: (D) => rt(p.date),
1275
+ onMouseleave: ot
1276
+ }, _(p.label), 43, Ma))), 128))
1277
+ ], 2)
1278
+ ]))), 128))
1279
+ ])) : U.value.flatItems ? (o(), d("div", {
1280
+ key: 1,
1281
+ class: c(["grid gap-2", U.value.gridCols])
1282
+ }, [
1283
+ (o(!0), d(W, null, Z(U.value.flatItems, (l, p) => (o(), d("button", {
1284
+ key: p,
1285
+ type: "button",
1286
+ class: c(["month-btn", nt(l.date, "year") ? "month-btn--active" : ""]),
1287
+ onClick: (g) => lt(l.date, "year"),
1288
+ onMouseenter: (g) => rt(l.date),
1289
+ onMouseleave: ot
1290
+ }, _(l.label), 43, Oa))), 128))
1291
+ ], 2)) : k("", !0)
1292
+ ])) : k("", !0),
1293
+ w.value === "range" && (!a.minGranularity || a.minGranularity === "day" || a.minGranularity === "week") ? (o(), d("div", {
1294
+ key: 2,
1295
+ class: c(["border-t border-gray-200", S.value ? "gap-3 pt-3" : "gap-1.5 pt-1.5"])
1222
1296
  }, [
1223
- (u(!0), p(q, null, Z(L.value.flatItems, (n, d) => (u(), p("button", {
1224
- key: d,
1225
- type: "button",
1226
- class: c(["month-btn", et(n.date, "year") ? "month-btn--active" : ""]),
1227
- onClick: (g) => Ze(n.date, "year"),
1228
- onMouseenter: (g) => tt(n.date),
1229
- onMouseleave: at
1230
- }, O(n.label), 43, Ya))), 128))
1231
- ], 2)) : Y("", !0)
1232
- ])) : Y("", !0),
1233
- w.value === "range" && (!a.minGranularity || a.minGranularity === "day" || a.minGranularity === "week") ? (u(), p("div", {
1234
- key: 2,
1235
- class: c(["border-t border-gray-200", _.value ? "gap-3 pt-3" : "gap-1.5 pt-1.5"])
1236
- }, [
1237
- We.value > 1 ? (u(), p("div", wa, [
1238
- v("div", null, [
1239
- v("p", Da, O(i.value("ui.period_select.From date")), 1),
1240
- he(v("input", {
1241
- type: "text",
1242
- "onUpdate:modelValue": t[9] || (t[9] = (n) => oe.value = n),
1243
- onBlur: t[10] || (t[10] = (n) => be("start")),
1244
- onKeyup: t[11] || (t[11] = ke((n) => be("start"), ["enter"])),
1245
- placeholder: "DD.MM.YYYY",
1246
- class: "manual-input"
1247
- }, null, 544), [
1248
- [Ye, oe.value]
1249
- ])
1250
- ]),
1251
- v("div", null, [
1252
- v("p", Ma, O(i.value("ui.period_select.End date")), 1),
1253
- he(v("input", {
1254
- type: "text",
1255
- "onUpdate:modelValue": t[12] || (t[12] = (n) => ue.value = n),
1256
- onBlur: t[13] || (t[13] = (n) => be("end")),
1257
- onKeyup: t[14] || (t[14] = ke((n) => be("end"), ["enter"])),
1258
- placeholder: "DD.MM.YYYY",
1259
- class: "manual-input"
1260
- }, null, 544), [
1261
- [Ye, ue.value]
1297
+ Ie.value > 1 ? (o(), d("div", _a, [
1298
+ v("div", null, [
1299
+ v("p", Sa, _(s.value("ui.period_select.From date")), 1),
1300
+ Me(v("input", {
1301
+ type: "text",
1302
+ "onUpdate:modelValue": t[10] || (t[10] = (l) => pe.value = l),
1303
+ onBlur: t[11] || (t[11] = (l) => De("start")),
1304
+ onKeyup: t[12] || (t[12] = Oe((l) => De("start"), ["enter"])),
1305
+ placeholder: "DD.MM.YYYY",
1306
+ class: "manual-input"
1307
+ }, null, 544), [
1308
+ [_e, pe.value]
1309
+ ])
1310
+ ]),
1311
+ v("div", null, [
1312
+ v("p", Ba, _(s.value("ui.period_select.End date")), 1),
1313
+ Me(v("input", {
1314
+ type: "text",
1315
+ "onUpdate:modelValue": t[13] || (t[13] = (l) => ce.value = l),
1316
+ onBlur: t[14] || (t[14] = (l) => De("end")),
1317
+ onKeyup: t[15] || (t[15] = Oe((l) => De("end"), ["enter"])),
1318
+ placeholder: "DD.MM.YYYY",
1319
+ class: "manual-input"
1320
+ }, null, 544), [
1321
+ [_e, ce.value]
1322
+ ])
1262
1323
  ])
1263
- ])
1264
- ])) : Y("", !0),
1265
- v("div", {
1266
- class: c(["flex", s.value.actionGap, _.value ? "justify-end" : ""])
1267
- }, [
1268
- _.value ? (u(), Q(S(Pe), {
1269
- key: 0,
1270
- variant: "secondary",
1271
- label: i.value("ui.period_select.Cancel"),
1272
- onClick: Mt,
1273
- class: c(s.value.actionButton),
1274
- size: s.value.actionButtonSize
1275
- }, null, 8, ["label", "class", "size"])) : Y("", !0),
1276
- J(S(Pe), {
1277
- variant: "primary",
1278
- icon: S(rt),
1279
- label: i.value("ui.period_select.Apply"),
1280
- onClick: Gt,
1281
- disabled: !Te.value,
1282
- class: c(s.value.actionButton),
1283
- size: s.value.actionButtonSize
1284
- }, null, 8, ["icon", "label", "disabled", "class", "size"])
1285
- ], 2)
1286
- ], 2)) : Y("", !0)
1287
- ], 6)) : Y("", !0)
1288
- ], 38)) : Y("", !0)
1324
+ ])) : k("", !0),
1325
+ v("div", {
1326
+ class: c(["flex", i.value.actionGap, S.value ? "justify-end" : ""])
1327
+ }, [
1328
+ S.value ? (o(), F(M(Le), {
1329
+ key: 0,
1330
+ variant: "secondary",
1331
+ label: s.value("ui.period_select.Cancel"),
1332
+ onClick: Bt,
1333
+ class: c(i.value.actionButton),
1334
+ size: i.value.actionButtonSize
1335
+ }, null, 8, ["label", "class", "size"])) : k("", !0),
1336
+ J(M(Le), {
1337
+ variant: "primary",
1338
+ icon: M(it),
1339
+ label: s.value("ui.period_select.Apply"),
1340
+ onClick: $t,
1341
+ disabled: !Ee.value,
1342
+ class: c(i.value.actionButton),
1343
+ size: i.value.actionButtonSize
1344
+ }, null, 8, ["icon", "label", "disabled", "class", "size"])
1345
+ ], 2)
1346
+ ], 2)) : k("", !0)
1347
+ ], 6)) : k("", !0)
1348
+ ], 64))
1349
+ ], 38)) : k("", !0)
1289
1350
  ])),
1290
- S(me).isOpened.value ? (u(), Q(oa, {
1351
+ M(ge).isOpened.value ? (o(), F(ia, {
1291
1352
  key: 2,
1292
- useModal: S(me),
1293
- groups: yt.value,
1294
- activePresetKey: $.value,
1295
- t: i.value,
1353
+ useModal: M(ge),
1354
+ groups: kt.value,
1355
+ activePresetKey: A.value,
1356
+ t: s.value,
1296
1357
  size: a.size,
1297
- onSelect: Vt
1298
- }, null, 8, ["useModal", "groups", "activePresetKey", "t", "size"])) : Y("", !0)
1358
+ onSelect: Rt
1359
+ }, null, 8, ["useModal", "groups", "activePresetKey", "t", "size"])) : k("", !0)
1299
1360
  ], 4));
1300
1361
  }
1301
1362
  });
1302
- const Fa = /* @__PURE__ */ pt(Oa, [["__scopeId", "data-v-0e53cd81"]]);
1363
+ const Qa = /* @__PURE__ */ mt(za, [["__scopeId", "data-v-7a5e5043"]]);
1303
1364
  export {
1304
- G as DATE_KIND,
1305
- we as MANUAL_DATE_KEY,
1306
- le as MANUAL_RANGE_KEY,
1307
- Fa as OnePeriodPicker,
1308
- oa as OnePeriodPickerFastModal,
1309
- ea as PERIOD_KIND,
1310
- P as RANGE_KIND,
1311
- M as buildPreset,
1312
- ve as buildRollingOptions,
1313
- it as createShortcutPresets,
1314
- Ka as dayjs,
1315
- ua as determineKind,
1316
- De as formatDateShort,
1317
- ut as formatPeriod,
1318
- ia as getOptionGranularity,
1365
+ B as DATE_KIND,
1366
+ ze as MANUAL_DATE_KEY,
1367
+ oe as MANUAL_RANGE_KEY,
1368
+ Qa as OnePeriodPicker,
1369
+ ia as OnePeriodPickerFastModal,
1370
+ la as PERIOD_KIND,
1371
+ $ as RANGE_KIND,
1372
+ O as buildPreset,
1373
+ ye as buildRollingOptions,
1374
+ ct as createShortcutPresets,
1375
+ Xa as dayjs,
1376
+ da as determineKind,
1377
+ Ve as formatDateShort,
1378
+ pt as formatPeriod,
1379
+ pa as getOptionGranularity,
1319
1380
  X as isOptionAllowed,
1320
- fe as parseManualDate,
1321
- $e as periodPickerSizeConfig,
1322
- ot as toUnixOrNull
1381
+ xe as parseManualDate,
1382
+ Te as periodPickerSizeConfig,
1383
+ dt as toUnixOrNull
1323
1384
  };