@bagelink/vue 1.1.11 → 1.1.17

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.
package/dist/index.cjs CHANGED
@@ -121,7 +121,7 @@ const _export_sfc = (sfc, props2) => {
121
121
  }
122
122
  return target;
123
123
  };
124
- const AccordionItem = /* @__PURE__ */ _export_sfc(_sfc_main$1m, [["__scopeId", "data-v-23c8b13b"]]);
124
+ const AccordionItem = /* @__PURE__ */ _export_sfc(_sfc_main$1m, [["__scopeId", "data-v-3334f637"]]);
125
125
  const _hoisted_1$1a = { class: "relative" };
126
126
  const _sfc_main$1l = /* @__PURE__ */ vue.defineComponent({
127
127
  __name: "AddressSearch",
@@ -275,7 +275,7 @@ const _sfc_main$1k = /* @__PURE__ */ vue.defineComponent({
275
275
  };
276
276
  }
277
277
  });
278
- const Btn = /* @__PURE__ */ _export_sfc(_sfc_main$1k, [["__scopeId", "data-v-6ebf1570"]]);
278
+ const Btn = /* @__PURE__ */ _export_sfc(_sfc_main$1k, [["__scopeId", "data-v-bfc435b3"]]);
279
279
  const _hoisted_1$18 = ["dismissable"];
280
280
  const _hoisted_2$S = { class: "m-0" };
281
281
  const _sfc_main$1j = /* @__PURE__ */ vue.defineComponent({
@@ -318,7 +318,7 @@ const _sfc_main$1j = /* @__PURE__ */ vue.defineComponent({
318
318
  };
319
319
  }
320
320
  });
321
- const Alert = /* @__PURE__ */ _export_sfc(_sfc_main$1j, [["__scopeId", "data-v-1b3b90e7"]]);
321
+ const Alert = /* @__PURE__ */ _export_sfc(_sfc_main$1j, [["__scopeId", "data-v-064bdd20"]]);
322
322
  const _hoisted_1$17 = ["src", "alt"];
323
323
  const _sfc_main$1i = /* @__PURE__ */ vue.defineComponent({
324
324
  __name: "Avatar",
@@ -346,7 +346,7 @@ const _sfc_main$1i = /* @__PURE__ */ vue.defineComponent({
346
346
  };
347
347
  }
348
348
  });
349
- const Avatar = /* @__PURE__ */ _export_sfc(_sfc_main$1i, [["__scopeId", "data-v-d6183b0f"]]);
349
+ const Avatar = /* @__PURE__ */ _export_sfc(_sfc_main$1i, [["__scopeId", "data-v-46ad8c25"]]);
350
350
  const _sfc_main$1h = /* @__PURE__ */ vue.defineComponent({
351
351
  __name: "Badge",
352
352
  props: {
@@ -376,7 +376,7 @@ const _sfc_main$1h = /* @__PURE__ */ vue.defineComponent({
376
376
  };
377
377
  }
378
378
  });
379
- const Badge = /* @__PURE__ */ _export_sfc(_sfc_main$1h, [["__scopeId", "data-v-3ef772a6"]]);
379
+ const Badge = /* @__PURE__ */ _export_sfc(_sfc_main$1h, [["__scopeId", "data-v-689f051f"]]);
380
380
  const _hoisted_1$16 = ["src"];
381
381
  const _hoisted_2$R = ["autoplay", "muted", "loop", "controls", "playsinline"];
382
382
  const _hoisted_3$H = ["src", "type"];
@@ -477,7 +477,7 @@ const _sfc_main$1g = /* @__PURE__ */ vue.defineComponent({
477
477
  };
478
478
  }
479
479
  });
480
- const BglVideo = /* @__PURE__ */ _export_sfc(_sfc_main$1g, [["__scopeId", "data-v-19266834"]]);
480
+ const BglVideo = /* @__PURE__ */ _export_sfc(_sfc_main$1g, [["__scopeId", "data-v-006552f6"]]);
481
481
  const languageKeys = {
482
482
  /** The following three keys, describe the calendar modes */
483
483
  week: {
@@ -774,7 +774,7 @@ const _sfc_main$1e = /* @__PURE__ */ vue.defineComponent({
774
774
  emits: ["eventWasClicked"],
775
775
  setup(__props, { emit: __emit }) {
776
776
  vue.useCssVars((_ctx) => ({
777
- "4b009dcb": eventBackgroundColor.value
777
+ "26bbff92": eventBackgroundColor.value
778
778
  }));
779
779
  const props2 = __props;
780
780
  const emit2 = __emit;
@@ -853,7 +853,7 @@ const _sfc_main$1e = /* @__PURE__ */ vue.defineComponent({
853
853
  };
854
854
  }
855
855
  });
856
- const AgendaEventTile = /* @__PURE__ */ _export_sfc(_sfc_main$1e, [["__scopeId", "data-v-16b7e65d"]]);
856
+ const AgendaEventTile = /* @__PURE__ */ _export_sfc(_sfc_main$1e, [["__scopeId", "data-v-d63dd40c"]]);
857
857
  const _hoisted_1$13 = { class: "agenda__wrapper grid align-items-start gap-1 h-100p" };
858
858
  const _hoisted_2$O = { class: "m_sticky" };
859
859
  const _hoisted_3$F = { class: "agenda__header-day-name txt-center" };
@@ -910,7 +910,7 @@ const _sfc_main$1d = /* @__PURE__ */ vue.defineComponent({
910
910
  };
911
911
  }
912
912
  });
913
- const AgendaEvents = /* @__PURE__ */ _export_sfc(_sfc_main$1d, [["__scopeId", "data-v-32ad3558"]]);
913
+ const AgendaEvents = /* @__PURE__ */ _export_sfc(_sfc_main$1d, [["__scopeId", "data-v-4523e7de"]]);
914
914
  class EDate extends Date {
915
915
  get fullYear() {
916
916
  return this.getFullYear();
@@ -1647,7 +1647,7 @@ const _sfc_main$1c = /* @__PURE__ */ vue.defineComponent({
1647
1647
  emits: ["hide", "editEvent", "deleteEvent"],
1648
1648
  setup(__props, { emit: __emit }) {
1649
1649
  vue.useCssVars((_ctx) => ({
1650
- "c0ba08ea": flyoutWidth
1650
+ "c7702184": flyoutWidth
1651
1651
  }));
1652
1652
  const props2 = __props;
1653
1653
  const emit2 = __emit;
@@ -1898,7 +1898,7 @@ const _sfc_main$1b = /* @__PURE__ */ vue.defineComponent({
1898
1898
  emits: ["eventWasClicked"],
1899
1899
  setup(__props, { emit: __emit }) {
1900
1900
  vue.useCssVars((_ctx) => ({
1901
- "2474e382": eventBackgroundColor.value
1901
+ "1772761d": eventBackgroundColor.value
1902
1902
  }));
1903
1903
  const props2 = __props;
1904
1904
  const emit2 = __emit;
@@ -1983,7 +1983,7 @@ const _sfc_main$1b = /* @__PURE__ */ vue.defineComponent({
1983
1983
  };
1984
1984
  }
1985
1985
  });
1986
- const Event = /* @__PURE__ */ _export_sfc(_sfc_main$1b, [["__scopeId", "data-v-919540de"]]);
1986
+ const Event = /* @__PURE__ */ _export_sfc(_sfc_main$1b, [["__scopeId", "data-v-16d8079e"]]);
1987
1987
  const _hoisted_1$10 = ["id"];
1988
1988
  const _hoisted_2$L = { class: "w-100p flex justify-content-end txt14 p-025 m_h-100p" };
1989
1989
  const _hoisted_3$C = { class: "calendar-month_events" };
@@ -2125,7 +2125,7 @@ const _sfc_main$1a = /* @__PURE__ */ vue.defineComponent({
2125
2125
  };
2126
2126
  }
2127
2127
  });
2128
- const Day$1 = /* @__PURE__ */ _export_sfc(_sfc_main$1a, [["__scopeId", "data-v-7e932550"]]);
2128
+ const Day$1 = /* @__PURE__ */ _export_sfc(_sfc_main$1a, [["__scopeId", "data-v-4b49a3b2"]]);
2129
2129
  const _hoisted_1$$ = { class: "txt12 normal block color-black pb-025" };
2130
2130
  const _sfc_main$19 = /* @__PURE__ */ vue.defineComponent({
2131
2131
  __name: "WeekDay",
@@ -2949,7 +2949,7 @@ const _sfc_main$17 = /* @__PURE__ */ vue.defineComponent({
2949
2949
  };
2950
2950
  }
2951
2951
  });
2952
- const DayEvent = /* @__PURE__ */ _export_sfc(_sfc_main$17, [["__scopeId", "data-v-7feff664"]]);
2952
+ const DayEvent = /* @__PURE__ */ _export_sfc(_sfc_main$17, [["__scopeId", "data-v-992d6df6"]]);
2953
2953
  const _hoisted_1$Y = ["id", "onClick"];
2954
2954
  const _sfc_main$16 = /* @__PURE__ */ vue.defineComponent({
2955
2955
  __name: "Day",
@@ -3094,7 +3094,7 @@ const _sfc_main$16 = /* @__PURE__ */ vue.defineComponent({
3094
3094
  };
3095
3095
  }
3096
3096
  });
3097
- const Day = /* @__PURE__ */ _export_sfc(_sfc_main$16, [["__scopeId", "data-v-d225c883"]]);
3097
+ const Day = /* @__PURE__ */ _export_sfc(_sfc_main$16, [["__scopeId", "data-v-7947ee7a"]]);
3098
3098
  const _hoisted_1$X = { class: "day-timeline absolute top-0 start-0 space-evenly column display-flex" };
3099
3099
  const _hoisted_2$I = { class: "day-timeline__hour-text line-height-0" };
3100
3100
  const _sfc_main$15 = /* @__PURE__ */ vue.defineComponent({
@@ -3111,7 +3111,7 @@ const _sfc_main$15 = /* @__PURE__ */ vue.defineComponent({
3111
3111
  },
3112
3112
  setup(__props) {
3113
3113
  vue.useCssVars((_ctx) => ({
3114
- "a2d2c918": __props.weekHeight
3114
+ "42711aca": __props.weekHeight
3115
3115
  }));
3116
3116
  const props2 = __props;
3117
3117
  const timelineHours = vue.ref([]);
@@ -3136,7 +3136,7 @@ const _sfc_main$15 = /* @__PURE__ */ vue.defineComponent({
3136
3136
  };
3137
3137
  }
3138
3138
  });
3139
- const DayTimeline = /* @__PURE__ */ _export_sfc(_sfc_main$15, [["__scopeId", "data-v-cd6a2180"]]);
3139
+ const DayTimeline = /* @__PURE__ */ _export_sfc(_sfc_main$15, [["__scopeId", "data-v-64469387"]]);
3140
3140
  const _hoisted_1$W = ["id"];
3141
3141
  const _hoisted_2$H = {
3142
3142
  key: 1,
@@ -3213,7 +3213,7 @@ const _sfc_main$14 = /* @__PURE__ */ vue.defineComponent({
3213
3213
  };
3214
3214
  }
3215
3215
  });
3216
- const FullDayEvent = /* @__PURE__ */ _export_sfc(_sfc_main$14, [["__scopeId", "data-v-96511089"]]);
3216
+ const FullDayEvent = /* @__PURE__ */ _export_sfc(_sfc_main$14, [["__scopeId", "data-v-de98fbb8"]]);
3217
3217
  const _hoisted_1$V = {
3218
3218
  class: "week-timeline flex space-between border-bottom ms-3-5",
3219
3219
  style: { "margin-inline-end": "0.5em" }
@@ -3276,7 +3276,7 @@ const _sfc_main$13 = /* @__PURE__ */ vue.defineComponent({
3276
3276
  };
3277
3277
  }
3278
3278
  });
3279
- const WeekTimeline = /* @__PURE__ */ _export_sfc(_sfc_main$13, [["__scopeId", "data-v-f08b2d05"]]);
3279
+ const WeekTimeline = /* @__PURE__ */ _export_sfc(_sfc_main$13, [["__scopeId", "data-v-9aaa9a54"]]);
3280
3280
  const _hoisted_1$U = { class: "calendar-week__wrapper relative ps-3-5" };
3281
3281
  const _hoisted_2$F = { class: "calendar-week" };
3282
3282
  const _hoisted_3$y = { class: "calendar-week__events" };
@@ -3316,7 +3316,7 @@ const _sfc_main$12 = /* @__PURE__ */ vue.defineComponent({
3316
3316
  ],
3317
3317
  setup(__props, { emit: __emit }) {
3318
3318
  vue.useCssVars((_ctx) => ({
3319
- "62a239a5": weekHeight.value
3319
+ "ec938e6e": weekHeight.value
3320
3320
  }));
3321
3321
  const props2 = __props;
3322
3322
  const emit2 = __emit;
@@ -3578,7 +3578,7 @@ const _sfc_main$12 = /* @__PURE__ */ vue.defineComponent({
3578
3578
  };
3579
3579
  }
3580
3580
  });
3581
- const Week = /* @__PURE__ */ _export_sfc(_sfc_main$12, [["__scopeId", "data-v-7a948baf"]]);
3581
+ const Week = /* @__PURE__ */ _export_sfc(_sfc_main$12, [["__scopeId", "data-v-65517675"]]);
3582
3582
  const _Errors = class _Errors {
3583
3583
  static checkEventProperties(event) {
3584
3584
  var _a, _b, _c, _d;
@@ -4416,7 +4416,7 @@ const _sfc_main$$ = /* @__PURE__ */ vue.defineComponent({
4416
4416
  };
4417
4417
  }
4418
4418
  });
4419
- const Carousel = /* @__PURE__ */ _export_sfc(_sfc_main$$, [["__scopeId", "data-v-6e59a72f"]]);
4419
+ const Carousel = /* @__PURE__ */ _export_sfc(_sfc_main$$, [["__scopeId", "data-v-31632a3b"]]);
4420
4420
  function _isPlaceholder(a2) {
4421
4421
  return a2 != null && typeof a2 === "object" && a2["@@functional/placeholder"] === true;
4422
4422
  }
@@ -10897,7 +10897,7 @@ const _sfc_main$Z = /* @__PURE__ */ vue.defineComponent({
10897
10897
  };
10898
10898
  }
10899
10899
  });
10900
- const DataPreview = /* @__PURE__ */ _export_sfc(_sfc_main$Z, [["__scopeId", "data-v-7f2f140e"]]);
10900
+ const DataPreview = /* @__PURE__ */ _export_sfc(_sfc_main$Z, [["__scopeId", "data-v-2a466c93"]]);
10901
10901
  function useTableSelection(options) {
10902
10902
  const allSelectorEl = vue.ref();
10903
10903
  const computedSelectedItems = vue.computed(() => options.selectedItems.value);
@@ -11730,7 +11730,7 @@ const _sfc_main$Y = /* @__PURE__ */ vue.defineComponent({
11730
11730
  emits: /* @__PURE__ */ vue.mergeModels(["orderBy", "select", "lastItemVisible"], ["update:loading", "update:itemHeight", "update:selectedItems"]),
11731
11731
  setup(__props, { emit: __emit }) {
11732
11732
  vue.useCssVars((_ctx) => ({
11733
- "ae67a098": vue.unref(computedItemHeight)
11733
+ "104156b0": vue.unref(computedItemHeight)
11734
11734
  }));
11735
11735
  const props2 = __props;
11736
11736
  const emit2 = __emit;
@@ -11750,9 +11750,15 @@ const _sfc_main$Y = /* @__PURE__ */ vue.defineComponent({
11750
11750
  toggleSort,
11751
11751
  cleanTransformedData,
11752
11752
  schemaState
11753
- } = useTableData({ data: data2, schema, columns, useServerSort, onSort: (field, direction) => {
11754
- emit2("orderBy", `${field} ${direction}`.trim());
11755
- } });
11753
+ } = useTableData({
11754
+ data: data2,
11755
+ schema,
11756
+ columns,
11757
+ useServerSort,
11758
+ onSort: (field, direction) => {
11759
+ emit2("orderBy", `${field.trim()} ${direction.trim()}`);
11760
+ }
11761
+ });
11756
11762
  const {
11757
11763
  computedSelectedItems,
11758
11764
  isSelectable,
@@ -11912,7 +11918,7 @@ const _sfc_main$Y = /* @__PURE__ */ vue.defineComponent({
11912
11918
  };
11913
11919
  }
11914
11920
  });
11915
- const DataTable = /* @__PURE__ */ _export_sfc(_sfc_main$Y, [["__scopeId", "data-v-871fbe77"]]);
11921
+ const DataTable = /* @__PURE__ */ _export_sfc(_sfc_main$Y, [["__scopeId", "data-v-6cf42b66"]]);
11916
11922
  function useDraggable(options = {}) {
11917
11923
  const isDragging = vue.ref(false);
11918
11924
  const dragElement = vue.ref(null);
@@ -15109,7 +15115,7 @@ const _sfc_main$V = /* @__PURE__ */ vue.defineComponent({
15109
15115
  };
15110
15116
  }
15111
15117
  });
15112
- const FieldSetVue = /* @__PURE__ */ _export_sfc(_sfc_main$V, [["__scopeId", "data-v-fbcb1a8d"]]);
15118
+ const FieldSetVue = /* @__PURE__ */ _export_sfc(_sfc_main$V, [["__scopeId", "data-v-f7e758e5"]]);
15113
15119
  const _sfc_main$U = /* @__PURE__ */ vue.defineComponent({
15114
15120
  __name: "Flag",
15115
15121
  props: {
@@ -15140,7 +15146,7 @@ const _sfc_main$U = /* @__PURE__ */ vue.defineComponent({
15140
15146
  };
15141
15147
  }
15142
15148
  });
15143
- const Flag = /* @__PURE__ */ _export_sfc(_sfc_main$U, [["__scopeId", "data-v-e1e447be"]]);
15149
+ const Flag = /* @__PURE__ */ _export_sfc(_sfc_main$U, [["__scopeId", "data-v-f99f1900"]]);
15144
15150
  function getBaseField(id, labelOrRest = {}, rest = {}) {
15145
15151
  if (typeof labelOrRest === "object") return { id, ...labelOrRest };
15146
15152
  return { id, label: labelOrRest, ...rest };
@@ -15545,9 +15551,9 @@ function normalizeDimension(value, defaultMetric = "px") {
15545
15551
  }
15546
15552
  const fileBaseUrl = "https://files.bagel.design".replace(/\/$/, "");
15547
15553
  const bagelBaseUrl = void 0;
15554
+ const URL_REGEX = /^https?:\/\/|^\/\//;
15548
15555
  function pathKeyToURL(pathKey) {
15549
- const urlRE = /^https?:\/\/|^\/\//;
15550
- if (!pathKey || urlRE.test(pathKey)) return pathKey;
15556
+ if (!pathKey || URL_REGEX.test(pathKey)) return pathKey;
15551
15557
  if (pathKey.startsWith("static/")) {
15552
15558
  return `${bagelBaseUrl}/${pathKey}`;
15553
15559
  }
@@ -15954,7 +15960,7 @@ const _sfc_main$R = /* @__PURE__ */ vue.defineComponent({
15954
15960
  };
15955
15961
  }
15956
15962
  });
15957
- const Checkbox = /* @__PURE__ */ _export_sfc(_sfc_main$R, [["__scopeId", "data-v-4eb8c363"]]);
15963
+ const Checkbox = /* @__PURE__ */ _export_sfc(_sfc_main$R, [["__scopeId", "data-v-73f1d9ad"]]);
15958
15964
  const _hoisted_1$J = ["title"];
15959
15965
  const _hoisted_2$x = ["id", "value", "required"];
15960
15966
  const _hoisted_3$s = ["for"];
@@ -16003,7 +16009,7 @@ const _sfc_main$Q = /* @__PURE__ */ vue.defineComponent({
16003
16009
  };
16004
16010
  }
16005
16011
  });
16006
- const CheckInput = /* @__PURE__ */ _export_sfc(_sfc_main$Q, [["__scopeId", "data-v-9255cd5f"]]);
16012
+ const CheckInput = /* @__PURE__ */ _export_sfc(_sfc_main$Q, [["__scopeId", "data-v-0c86700b"]]);
16007
16013
  const _hoisted_1$I = { class: "mb-05" };
16008
16014
  const _hoisted_2$w = {
16009
16015
  key: 0,
@@ -16134,7 +16140,7 @@ const _sfc_main$P = /* @__PURE__ */ vue.defineComponent({
16134
16140
  };
16135
16141
  }
16136
16142
  });
16137
- const CodeEditor = /* @__PURE__ */ _export_sfc(_sfc_main$P, [["__scopeId", "data-v-5f2b9d7e"]]);
16143
+ const CodeEditor = /* @__PURE__ */ _export_sfc(_sfc_main$P, [["__scopeId", "data-v-1fbc9b61"]]);
16138
16144
  const _hoisted_1$H = ["title"];
16139
16145
  const _hoisted_2$v = { class: "flex bg-input rounded px-025 colorInputPickWrap" };
16140
16146
  const _hoisted_3$q = ["id", "placeholder", "required"];
@@ -16727,7 +16733,7 @@ const _sfc_main$N = /* @__PURE__ */ vue.defineComponent({
16727
16733
  };
16728
16734
  }
16729
16735
  });
16730
- const DateInput = /* @__PURE__ */ _export_sfc(_sfc_main$N, [["__scopeId", "data-v-2adea311"]]);
16736
+ const DateInput = /* @__PURE__ */ _export_sfc(_sfc_main$N, [["__scopeId", "data-v-7d6fb8a5"]]);
16731
16737
  const _hoisted_1$F = ["title"];
16732
16738
  const _hoisted_2$t = { key: 0 };
16733
16739
  const _hoisted_3$o = {
@@ -17104,7 +17110,7 @@ const _sfc_main$M = /* @__PURE__ */ vue.defineComponent({
17104
17110
  };
17105
17111
  }
17106
17112
  });
17107
- const DatePick = /* @__PURE__ */ _export_sfc(_sfc_main$M, [["__scopeId", "data-v-7a6a8ea5"]]);
17113
+ const DatePick = /* @__PURE__ */ _export_sfc(_sfc_main$M, [["__scopeId", "data-v-43cb2e62"]]);
17108
17114
  const _hoisted_1$E = { class: "datetime-wrap" };
17109
17115
  const _hoisted_2$s = {
17110
17116
  key: 0,
@@ -17628,7 +17634,7 @@ const _sfc_main$K = /* @__PURE__ */ vue.defineComponent({
17628
17634
  };
17629
17635
  }
17630
17636
  });
17631
- const FileUpload = /* @__PURE__ */ _export_sfc(_sfc_main$K, [["__scopeId", "data-v-683abdc0"]]);
17637
+ const FileUpload = /* @__PURE__ */ _export_sfc(_sfc_main$K, [["__scopeId", "data-v-50fd0597"]]);
17632
17638
  const _hoisted_1$C = ["title"];
17633
17639
  const _hoisted_2$q = { key: 0 };
17634
17640
  const _hoisted_3$l = ["value", "placeholder"];
@@ -17668,7 +17674,7 @@ const _sfc_main$J = /* @__PURE__ */ vue.defineComponent({
17668
17674
  };
17669
17675
  }
17670
17676
  });
17671
- const JSONInput = /* @__PURE__ */ _export_sfc(_sfc_main$J, [["__scopeId", "data-v-167ec9fc"]]);
17677
+ const JSONInput = /* @__PURE__ */ _export_sfc(_sfc_main$J, [["__scopeId", "data-v-1cbaeab2"]]);
17672
17678
  const _hoisted_1$B = ["for"];
17673
17679
  const _hoisted_2$p = {
17674
17680
  key: 0,
@@ -17881,7 +17887,7 @@ const _sfc_main$I = /* @__PURE__ */ vue.defineComponent({
17881
17887
  };
17882
17888
  }
17883
17889
  });
17884
- const NumberInput = /* @__PURE__ */ _export_sfc(_sfc_main$I, [["__scopeId", "data-v-9b563a1b"]]);
17890
+ const NumberInput = /* @__PURE__ */ _export_sfc(_sfc_main$I, [["__scopeId", "data-v-f5b06aa8"]]);
17885
17891
  const _hoisted_1$A = ["value", "autofocus", "onKeydown", "onPaste"];
17886
17892
  const _sfc_main$H = /* @__PURE__ */ vue.defineComponent({
17887
17893
  __name: "OTP",
@@ -17993,7 +17999,7 @@ const _sfc_main$H = /* @__PURE__ */ vue.defineComponent({
17993
17999
  };
17994
18000
  }
17995
18001
  });
17996
- const OTP = /* @__PURE__ */ _export_sfc(_sfc_main$H, [["__scopeId", "data-v-a3f9ea8d"]]);
18002
+ const OTP = /* @__PURE__ */ _export_sfc(_sfc_main$H, [["__scopeId", "data-v-ab0a46bf"]]);
17997
18003
  const _hoisted_1$z = { class: "relative passwordInput" };
17998
18004
  const _hoisted_2$o = { class: "m-password position-bottom-end flex column justify-content-center" };
17999
18005
  const _sfc_main$G = /* @__PURE__ */ vue.defineComponent({
@@ -22805,7 +22811,7 @@ const _sfc_main$F = /* @__PURE__ */ vue.defineComponent({
22805
22811
  };
22806
22812
  }
22807
22813
  });
22808
- const TelInput = /* @__PURE__ */ _export_sfc(_sfc_main$F, [["__scopeId", "data-v-920e2192"]]);
22814
+ const TelInput = /* @__PURE__ */ _export_sfc(_sfc_main$F, [["__scopeId", "data-v-ea318aee"]]);
22809
22815
  const _hoisted_1$x = ["for"];
22810
22816
  const _hoisted_2$m = ["id", "disabled", "name", "value", "required"];
22811
22817
  const _hoisted_3$i = { class: "flex w-100 gap-1 flex-wrap m_gap-05 m_gap-row-025" };
@@ -22908,7 +22914,7 @@ const _sfc_main$E = /* @__PURE__ */ vue.defineComponent({
22908
22914
  };
22909
22915
  }
22910
22916
  });
22911
- const RadioGroup = /* @__PURE__ */ _export_sfc(_sfc_main$E, [["__scopeId", "data-v-f3f5b820"]]);
22917
+ const RadioGroup = /* @__PURE__ */ _export_sfc(_sfc_main$E, [["__scopeId", "data-v-a692c596"]]);
22912
22918
  const _hoisted_1$w = { class: "bagel-input" };
22913
22919
  const _hoisted_2$l = { class: "pb-025" };
22914
22920
  const _hoisted_3$h = { class: "flex gap-05 flex-wrap" };
@@ -22983,7 +22989,7 @@ const _sfc_main$D = /* @__PURE__ */ vue.defineComponent({
22983
22989
  };
22984
22990
  }
22985
22991
  });
22986
- const RadioPillsInput = /* @__PURE__ */ _export_sfc(_sfc_main$D, [["__scopeId", "data-v-fa7a2f80"]]);
22992
+ const RadioPillsInput = /* @__PURE__ */ _export_sfc(_sfc_main$D, [["__scopeId", "data-v-68b4cdd0"]]);
22987
22993
  const _hoisted_1$v = ["dir"];
22988
22994
  const _hoisted_2$k = {
22989
22995
  key: 0,
@@ -23154,7 +23160,7 @@ const _sfc_main$C = /* @__PURE__ */ vue.defineComponent({
23154
23160
  };
23155
23161
  }
23156
23162
  });
23157
- const RangeInput = /* @__PURE__ */ _export_sfc(_sfc_main$C, [["__scopeId", "data-v-b12da569"]]);
23163
+ const RangeInput = /* @__PURE__ */ _export_sfc(_sfc_main$C, [["__scopeId", "data-v-46e22f3e"]]);
23158
23164
  const basicToolbarConfig = [
23159
23165
  "h2",
23160
23166
  "h3",
@@ -23275,7 +23281,7 @@ const _sfc_main$B = /* @__PURE__ */ vue.defineComponent({
23275
23281
  };
23276
23282
  }
23277
23283
  });
23278
- const GridBox = /* @__PURE__ */ _export_sfc(_sfc_main$B, [["__scopeId", "data-v-7c00946d"]]);
23284
+ const GridBox = /* @__PURE__ */ _export_sfc(_sfc_main$B, [["__scopeId", "data-v-4548b70f"]]);
23279
23285
  const _hoisted_1$t = {
23280
23286
  class: "toolbar flex gap-025 pb-05 flex-wrap",
23281
23287
  role: "toolbar"
@@ -23338,7 +23344,7 @@ const _sfc_main$A = /* @__PURE__ */ vue.defineComponent({
23338
23344
  };
23339
23345
  }
23340
23346
  });
23341
- const EditorToolbar = /* @__PURE__ */ _export_sfc(_sfc_main$A, [["__scopeId", "data-v-433a8c01"]]);
23347
+ const EditorToolbar = /* @__PURE__ */ _export_sfc(_sfc_main$A, [["__scopeId", "data-v-9d8a6eb6"]]);
23342
23348
  function isStyleActive(style, doc) {
23343
23349
  const selection = doc.getSelection();
23344
23350
  if (!selection || !selection.rangeCount) return false;
@@ -24813,7 +24819,7 @@ const _sfc_main$z = /* @__PURE__ */ vue.defineComponent({
24813
24819
  };
24814
24820
  }
24815
24821
  });
24816
- const RichText = /* @__PURE__ */ _export_sfc(_sfc_main$z, [["__scopeId", "data-v-dbfe94b1"]]);
24822
+ const RichText = /* @__PURE__ */ _export_sfc(_sfc_main$z, [["__scopeId", "data-v-30bcda4c"]]);
24817
24823
  const _hoisted_1$r = { class: "flex gap-05" };
24818
24824
  const _hoisted_2$h = ["disabled"];
24819
24825
  const _hoisted_3$d = { key: 1 };
@@ -25133,7 +25139,7 @@ const _sfc_main$y = /* @__PURE__ */ vue.defineComponent({
25133
25139
  };
25134
25140
  }
25135
25141
  });
25136
- const SelectInput = /* @__PURE__ */ _export_sfc(_sfc_main$y, [["__scopeId", "data-v-347683c6"]]);
25142
+ const SelectInput = /* @__PURE__ */ _export_sfc(_sfc_main$y, [["__scopeId", "data-v-da5bc268"]]);
25137
25143
  /*!
25138
25144
  * Signature Pad v5.0.6 | https://github.com/szimek/signature_pad
25139
25145
  * (c) 2025 Szymon Nowak | Released under the MIT license
@@ -28569,7 +28575,7 @@ const _sfc_main$w = /* @__PURE__ */ vue.defineComponent({
28569
28575
  };
28570
28576
  }
28571
28577
  });
28572
- const TableField = /* @__PURE__ */ _export_sfc(_sfc_main$w, [["__scopeId", "data-v-02d74b06"]]);
28578
+ const TableField = /* @__PURE__ */ _export_sfc(_sfc_main$w, [["__scopeId", "data-v-e9632f79"]]);
28573
28579
  const _hoisted_1$o = ["title"];
28574
28580
  const _hoisted_2$e = ["for"];
28575
28581
  const _hoisted_3$b = ["id", "name", "title", "autocomplete", "type", "placeholder", "disabled", "required", "pattern"];
@@ -28726,7 +28732,7 @@ const _sfc_main$v = /* @__PURE__ */ vue.defineComponent({
28726
28732
  };
28727
28733
  }
28728
28734
  });
28729
- const TextInput = /* @__PURE__ */ _export_sfc(_sfc_main$v, [["__scopeId", "data-v-540f7a99"]]);
28735
+ const TextInput = /* @__PURE__ */ _export_sfc(_sfc_main$v, [["__scopeId", "data-v-dbcf2010"]]);
28730
28736
  const _hoisted_1$n = ["title"];
28731
28737
  const _hoisted_2$d = ["id", "required"];
28732
28738
  const _hoisted_3$a = ["for"];
@@ -28778,7 +28784,7 @@ const _sfc_main$u = /* @__PURE__ */ vue.defineComponent({
28778
28784
  };
28779
28785
  }
28780
28786
  });
28781
- const ToggleInput = /* @__PURE__ */ _export_sfc(_sfc_main$u, [["__scopeId", "data-v-8148c049"]]);
28787
+ const ToggleInput = /* @__PURE__ */ _export_sfc(_sfc_main$u, [["__scopeId", "data-v-ebe691ee"]]);
28782
28788
  const files = {
28783
28789
  setBaseUrl: (baseUrl) => {
28784
28790
  if (!baseUrl) return;
@@ -29189,7 +29195,7 @@ const _sfc_main$t = /* @__PURE__ */ vue.defineComponent({
29189
29195
  };
29190
29196
  }
29191
29197
  });
29192
- const UploadInput = /* @__PURE__ */ _export_sfc(_sfc_main$t, [["__scopeId", "data-v-db7ccdef"]]);
29198
+ const UploadInput = /* @__PURE__ */ _export_sfc(_sfc_main$t, [["__scopeId", "data-v-d8f3ff01"]]);
29193
29199
  const FONT_AWESOME_ICONS = [
29194
29200
  "trash-can",
29195
29201
  "message",
@@ -33828,7 +33834,7 @@ const _sfc_main$q = /* @__PURE__ */ vue.defineComponent({
33828
33834
  };
33829
33835
  }
33830
33836
  });
33831
- const Image$1 = /* @__PURE__ */ _export_sfc(_sfc_main$q, [["__scopeId", "data-v-0418e681"]]);
33837
+ const Image$1 = /* @__PURE__ */ _export_sfc(_sfc_main$q, [["__scopeId", "data-v-2f5e271c"]]);
33832
33838
  const _hoisted_1$j = { class: "m-0 pb-025 txt10 line-height-1 w60 menu-text" };
33833
33839
  const _sfc_main$p = /* @__PURE__ */ vue.defineComponent({
33834
33840
  __name: "BottomMenu",
@@ -33865,7 +33871,7 @@ const _sfc_main$p = /* @__PURE__ */ vue.defineComponent({
33865
33871
  };
33866
33872
  }
33867
33873
  });
33868
- const BottomMenu = /* @__PURE__ */ _export_sfc(_sfc_main$p, [["__scopeId", "data-v-352a273c"]]);
33874
+ const BottomMenu = /* @__PURE__ */ _export_sfc(_sfc_main$p, [["__scopeId", "data-v-2227f9cc"]]);
33869
33875
  const _sfc_main$o = /* @__PURE__ */ vue.defineComponent({
33870
33876
  __name: "Layout",
33871
33877
  props: {
@@ -33878,11 +33884,11 @@ const _sfc_main$o = /* @__PURE__ */ vue.defineComponent({
33878
33884
  },
33879
33885
  setup(__props) {
33880
33886
  vue.useCssVars((_ctx) => ({
33881
- "b8b6ad78": gapSize.value,
33882
- "f1e9bda8": gridTemplateRows.value,
33883
- "0e1353aa": gridTemplateColumns.value,
33884
- "78fce91a": mGridTemplateRows.value,
33885
- "262cf003": mGridTemplateColumns.value
33887
+ "16111f2e": gapSize.value,
33888
+ "2c189afc": gridTemplateRows.value,
33889
+ "243c3a94": gridTemplateColumns.value,
33890
+ "84a9b646": mGridTemplateRows.value,
33891
+ "55be334e": mGridTemplateColumns.value
33886
33892
  }));
33887
33893
  const props2 = __props;
33888
33894
  const gridTemplateRows = vue.computed(() => props2.rows.length > 0 ? props2.rows.join(" ") : "auto");
@@ -33907,7 +33913,7 @@ const _sfc_main$o = /* @__PURE__ */ vue.defineComponent({
33907
33913
  };
33908
33914
  }
33909
33915
  });
33910
- const Layout = /* @__PURE__ */ _export_sfc(_sfc_main$o, [["__scopeId", "data-v-4e9efaaf"]]);
33916
+ const Layout = /* @__PURE__ */ _export_sfc(_sfc_main$o, [["__scopeId", "data-v-1814129a"]]);
33911
33917
  const _hoisted_1$i = { key: 0 };
33912
33918
  const _sfc_main$n = /* @__PURE__ */ vue.defineComponent({
33913
33919
  __name: "SidebarMenu",
@@ -33983,7 +33989,7 @@ const _sfc_main$n = /* @__PURE__ */ vue.defineComponent({
33983
33989
  };
33984
33990
  }
33985
33991
  });
33986
- const SidebarMenu = /* @__PURE__ */ _export_sfc(_sfc_main$n, [["__scopeId", "data-v-e1d3c6a4"]]);
33992
+ const SidebarMenu = /* @__PURE__ */ _export_sfc(_sfc_main$n, [["__scopeId", "data-v-951fdacc"]]);
33987
33993
  const _sfc_main$m = /* @__PURE__ */ vue.defineComponent({
33988
33994
  __name: "Skeleton",
33989
33995
  props: {
@@ -34015,7 +34021,7 @@ const _sfc_main$m = /* @__PURE__ */ vue.defineComponent({
34015
34021
  };
34016
34022
  }
34017
34023
  });
34018
- const Skeleton = /* @__PURE__ */ _export_sfc(_sfc_main$m, [["__scopeId", "data-v-c390b458"]]);
34024
+ const Skeleton = /* @__PURE__ */ _export_sfc(_sfc_main$m, [["__scopeId", "data-v-8788ed73"]]);
34019
34025
  const _hoisted_1$h = { class: "bgl_card tabs-top" };
34020
34026
  const _hoisted_2$a = { class: "tabs grid auto-flow-columns fit-content" };
34021
34027
  const _hoisted_3$7 = ["onClick"];
@@ -34079,7 +34085,7 @@ const _sfc_main$l = /* @__PURE__ */ vue.defineComponent({
34079
34085
  };
34080
34086
  }
34081
34087
  });
34082
- const TabbedLayout = /* @__PURE__ */ _export_sfc(_sfc_main$l, [["__scopeId", "data-v-cda394e9"]]);
34088
+ const TabbedLayout = /* @__PURE__ */ _export_sfc(_sfc_main$l, [["__scopeId", "data-v-915732c1"]]);
34083
34089
  const state = vue.reactive(/* @__PURE__ */ new Map());
34084
34090
  function useTabs(group) {
34085
34091
  if (!state.has(group)) {
@@ -34256,7 +34262,7 @@ const _sfc_main$i = /* @__PURE__ */ vue.defineComponent({
34256
34262
  };
34257
34263
  }
34258
34264
  });
34259
- const TabsNav = /* @__PURE__ */ _export_sfc(_sfc_main$i, [["__scopeId", "data-v-f50444dd"]]);
34265
+ const TabsNav = /* @__PURE__ */ _export_sfc(_sfc_main$i, [["__scopeId", "data-v-6ece2018"]]);
34260
34266
  const _hoisted_1$e = { class: "no-margin ellipsis line-height-14 pb-025" };
34261
34267
  const _hoisted_2$9 = { class: "txt12 no-margin txt-gray ellipsis" };
34262
34268
  const _sfc_main$h = /* @__PURE__ */ vue.defineComponent({
@@ -34388,7 +34394,7 @@ const _sfc_main$f = /* @__PURE__ */ vue.defineComponent({
34388
34394
  };
34389
34395
  }
34390
34396
  });
34391
- const Loading = /* @__PURE__ */ _export_sfc(_sfc_main$f, [["__scopeId", "data-v-a80abaf2"]]);
34397
+ const Loading = /* @__PURE__ */ _export_sfc(_sfc_main$f, [["__scopeId", "data-v-221a3053"]]);
34392
34398
  const _hoisted_1$b = ["id"];
34393
34399
  const defaultMarkerSVG = '<svg width="28" height="38" viewBox="0 0 28 38" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M14.2263 37.7955C17.0897 37.7955 19.4109 37.0138 19.4109 36.0496C19.4109 35.0854 17.0897 34.3037 14.2263 34.3037C11.363 34.3037 9.04175 35.0854 9.04175 36.0496C9.04175 37.0138 11.363 37.7955 14.2263 37.7955Z" fill="black" fill-opacity="0.1"/><path d="M14.2265 0.549591C21.2842 0.549591 27.0131 6.23786 27.0787 13.28V13.4024C27.0787 19.3328 24.4759 24.4306 21.5627 28.2764C18.6511 32.12 15.4577 34.6754 14.3457 35.5097C14.2748 35.5629 14.1778 35.5629 14.1068 35.5097C12.9947 34.675 9.80135 32.1197 6.88984 28.2762C3.97665 24.4304 1.37378 19.3328 1.37378 13.4024C1.37378 6.30387 7.12806 0.549591 14.2265 0.549591Z" fill="#ED1b3E" stroke="#ED6C6F"/><path d="M14.2263 21.6185C18.7639 21.6185 22.4424 17.94 22.4424 13.4024C22.4424 8.86477 18.7639 5.18631 14.2263 5.18631C9.68872 5.18631 6.01025 8.86477 6.01025 13.4024C6.01025 17.94 9.68872 21.6185 14.2263 21.6185Z" fill="white"/></svg>';
34394
34400
  const leafletScriptUrl = "https://unpkg.com/leaflet@1.9.4/dist/leaflet.js";
@@ -34801,7 +34807,7 @@ const _sfc_main$b = /* @__PURE__ */ vue.defineComponent({
34801
34807
  };
34802
34808
  }
34803
34809
  });
34804
- const ModalForm = /* @__PURE__ */ _export_sfc(_sfc_main$b, [["__scopeId", "data-v-8484155c"]]);
34810
+ const ModalForm = /* @__PURE__ */ _export_sfc(_sfc_main$b, [["__scopeId", "data-v-1c0f6894"]]);
34805
34811
  const _hoisted_1$7 = { class: "full-nav" };
34806
34812
  const _hoisted_2$5 = { class: "nav-scroll" };
34807
34813
  const _hoisted_3$4 = { class: "nav-links-wrapper" };
@@ -34898,7 +34904,7 @@ const _sfc_main$a = /* @__PURE__ */ vue.defineComponent({
34898
34904
  };
34899
34905
  }
34900
34906
  });
34901
- const NavBar = /* @__PURE__ */ _export_sfc(_sfc_main$a, [["__scopeId", "data-v-d5d416f1"]]);
34907
+ const NavBar = /* @__PURE__ */ _export_sfc(_sfc_main$a, [["__scopeId", "data-v-f3df1ee7"]]);
34902
34908
  const _hoisted_1$6 = { class: "page-top" };
34903
34909
  const _hoisted_2$4 = { class: "top-title m-0" };
34904
34910
  const _sfc_main$9 = /* @__PURE__ */ vue.defineComponent({
@@ -34960,8 +34966,8 @@ const _sfc_main$8 = /* @__PURE__ */ vue.defineComponent({
34960
34966
  },
34961
34967
  setup(__props) {
34962
34968
  vue.useCssVars((_ctx) => ({
34963
- "f45b58a4": computedBackgroundColor.value,
34964
- "6c0cd5ee": cumputedTextColor.value
34969
+ "dbb738e2": computedBackgroundColor.value,
34970
+ "418961aa": cumputedTextColor.value
34965
34971
  }));
34966
34972
  const props2 = __props;
34967
34973
  const slots = vue.useSlots();
@@ -35054,7 +35060,7 @@ const _sfc_main$8 = /* @__PURE__ */ vue.defineComponent({
35054
35060
  };
35055
35061
  }
35056
35062
  });
35057
- const Pill = /* @__PURE__ */ _export_sfc(_sfc_main$8, [["__scopeId", "data-v-7040378c"]]);
35063
+ const Pill = /* @__PURE__ */ _export_sfc(_sfc_main$8, [["__scopeId", "data-v-764b6b8b"]]);
35058
35064
  const _sfc_main$7 = {};
35059
35065
  function _sfc_render$2(_ctx, _cache) {
35060
35066
  const _component_router_view = vue.resolveComponent("router-view");
@@ -35257,7 +35263,7 @@ const _sfc_main$6 = /* @__PURE__ */ vue.defineComponent({
35257
35263
  };
35258
35264
  }
35259
35265
  });
35260
- const SpreadsheetTable = /* @__PURE__ */ _export_sfc(_sfc_main$6, [["__scopeId", "data-v-751a3c5f"]]);
35266
+ const SpreadsheetTable = /* @__PURE__ */ _export_sfc(_sfc_main$6, [["__scopeId", "data-v-5386c509"]]);
35261
35267
  const _hoisted_1$3 = { class: "flex gap-05 py-05 justify-content-end m_flex-wrap" };
35262
35268
  const _hoisted_2$1 = {
35263
35269
  key: 0,
@@ -35904,7 +35910,7 @@ const _sfc_main$5 = /* @__PURE__ */ vue.defineComponent({
35904
35910
  };
35905
35911
  }
35906
35912
  });
35907
- const Index = /* @__PURE__ */ _export_sfc(_sfc_main$5, [["__scopeId", "data-v-2661c507"]]);
35913
+ const Index = /* @__PURE__ */ _export_sfc(_sfc_main$5, [["__scopeId", "data-v-42b4475d"]]);
35908
35914
  const _sfc_main$4 = /* @__PURE__ */ vue.defineComponent({
35909
35915
  __name: "Title",
35910
35916
  props: {
@@ -36372,7 +36378,7 @@ const _sfc_main$1 = /* @__PURE__ */ vue.defineComponent({
36372
36378
  };
36373
36379
  }
36374
36380
  });
36375
- const Zoomer = /* @__PURE__ */ _export_sfc(_sfc_main$1, [["__scopeId", "data-v-23e57f36"]]);
36381
+ const Zoomer = /* @__PURE__ */ _export_sfc(_sfc_main$1, [["__scopeId", "data-v-379819e1"]]);
36376
36382
  const FORM_STATE_KEY = Symbol("bagelFormState");
36377
36383
  function safeClone(obj) {
36378
36384
  if (obj === null || typeof obj !== "object") return obj;
@@ -36951,7 +36957,7 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
36951
36957
  };
36952
36958
  }
36953
36959
  });
36954
- const Lightbox = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-dc952e23"]]);
36960
+ const Lightbox = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-fb2d5763"]]);
36955
36961
  const groups = {};
36956
36962
  let clickHandler = (_e2) => void 0;
36957
36963
  const lightboxDirective = {
@@ -37747,6 +37753,26 @@ function getBrowserNavigatorLocale() {
37747
37753
  if (typeof navigator !== "object") return "en-US";
37748
37754
  return navigator.languages && navigator.languages.length ? navigator.languages[0] : navigator.language;
37749
37755
  }
37756
+ function getDatePartsMap(d2, locale2) {
37757
+ return {
37758
+ AmPm: d2.toLocaleString(locale2, { hour: "numeric", hour12: true, minute: "numeric" }).split(" ")[1],
37759
+ DD: String(d2.getDate()).padStart(2, "0"),
37760
+ DDD: d2.toLocaleString(locale2, { weekday: "short" }),
37761
+ DDDD: d2.toLocaleString(locale2, { weekday: "long" }),
37762
+ HH: String(d2.getHours()).padStart(2, "0"),
37763
+ mm: String(d2.getMinutes()).padStart(2, "0"),
37764
+ MM: String(d2.getMonth() + 1).padStart(2, "0"),
37765
+ MMM: d2.toLocaleString(locale2, { month: "short" }),
37766
+ MMMM: d2.toLocaleString(locale2, { month: "long" }),
37767
+ ss: String(d2.getSeconds()).padStart(2, "0"),
37768
+ sss: String(d2.getMilliseconds()).padStart(3, "0"),
37769
+ YY: String(d2.getFullYear()).slice(-2),
37770
+ YYYY: String(d2.getFullYear())
37771
+ };
37772
+ }
37773
+ const _datePartsMapNow = getDatePartsMap(/* @__PURE__ */ new Date(), getBrowserNavigatorLocale());
37774
+ const _orderedDateTokens = Object.keys(_datePartsMapNow).sort((a2, b2) => b2.length - a2.length);
37775
+ const _tokenRegExPattern = new RegExp(_orderedDateTokens.map((token) => token).join("|"), "g");
37750
37776
  function formatDate(date2, format2 = "DD.MM.YY", locale2) {
37751
37777
  if (!date2) return "";
37752
37778
  locale2 = locale2 || getBrowserNavigatorLocale();
@@ -37756,21 +37782,7 @@ function formatDate(date2, format2 = "DD.MM.YY", locale2) {
37756
37782
  console.warn("Invalid date provided to formatDate:", date2);
37757
37783
  return "";
37758
37784
  }
37759
- const datePartsMap = {
37760
- AmPm: d2.toLocaleString(locale2, { hour: "numeric", hour12: true, minute: "numeric" }).split(" ")[1],
37761
- DD: String(d2.getDate()).padStart(2, "0"),
37762
- DDD: d2.toLocaleString(locale2, { weekday: "short" }),
37763
- DDDD: d2.toLocaleString(locale2, { weekday: "long" }),
37764
- HH: String(d2.getHours()).padStart(2, "0"),
37765
- mm: String(d2.getMinutes()).padStart(2, "0"),
37766
- MM: String(d2.getMonth() + 1).padStart(2, "0"),
37767
- MMM: d2.toLocaleString(locale2, { month: "short" }),
37768
- MMMM: d2.toLocaleString(locale2, { month: "long" }),
37769
- ss: String(d2.getSeconds()).padStart(2, "0"),
37770
- sss: String(d2.getMilliseconds()).padStart(3, "0"),
37771
- YY: String(d2.getFullYear()).slice(-2),
37772
- YYYY: String(d2.getFullYear())
37773
- };
37785
+ const datePartsMap = getDatePartsMap(d2, locale2);
37774
37786
  const formatter = new Intl.DateTimeFormat(locale2, {
37775
37787
  day: "numeric",
37776
37788
  hour: "2-digit",
@@ -37799,15 +37811,12 @@ function formatDate(date2, format2 = "DD.MM.YY", locale2) {
37799
37811
  if (partsMap.dayPeriod) {
37800
37812
  datePartsMap.AmPm = partsMap.dayPeriod;
37801
37813
  }
37802
- let formattedDate = format2;
37803
- const tokens = Object.keys(datePartsMap).sort((a2, b2) => b2.length - a2.length);
37804
- for (const token of tokens) {
37805
- const regex2 = new RegExp(token, "g");
37806
- formattedDate = formattedDate.replace(regex2, datePartsMap[token]);
37807
- }
37808
- return formattedDate;
37814
+ return format2.replace(
37815
+ _tokenRegExPattern,
37816
+ (match) => datePartsMap[match]
37817
+ );
37809
37818
  } catch (error) {
37810
- console.warn("Error formatting date", error);
37819
+ console.warn(`Error formatting date: ${date2} with format: ${format2}`, error);
37811
37820
  return "";
37812
37821
  }
37813
37822
  }
@@ -37902,6 +37911,7 @@ exports.debounce = debounce;
37902
37911
  exports.denullify = denullify;
37903
37912
  exports.formatDate = formatDate;
37904
37913
  exports.formatString = formatString;
37914
+ exports.getDatePartsMap = getDatePartsMap;
37905
37915
  exports.getFallbackSchema = getFallbackSchema;
37906
37916
  exports.getNestedValue = getNestedValue;
37907
37917
  exports.i18nTInjectionKey = i18nTInjectionKey;