@weitutech/by-components-v3 1.1.25 → 1.1.26

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,4 +1,4 @@
1
- import { defineComponent, ref, onMounted, watch, resolveComponent, createElementBlock, openBlock, createVNode, createElementVNode, mergeProps, Fragment, renderList, normalizeClass, toDisplayString, createTextVNode, computed, nextTick, onBeforeUnmount, createBlock, createCommentVNode, withCtx, renderSlot, useAttrs as useAttrs$1, unref, useSlots, toRefs, isVNode, reactive, inject, provide, h as h$2, onUnmounted, TransitionGroup, Teleport as Teleport$1, onActivated, onDeactivated, getCurrentInstance, readonly, getCurrentScope, onScopeDispose, shallowRef, watchEffect, customRef, isRef, warn as warn$1, normalizeStyle, toRef, Transition, withDirectives, resolveDynamicComponent, vShow, withModifiers, onUpdated, cloneVNode, Text as Text$2, Comment, onBeforeMount, withKeys, createSlots, normalizeProps, guardReactiveProps, toRaw, vModelCheckbox, vModelRadio, onBeforeUpdate, vModelText, toHandlers, markRaw, effectScope, resolveDirective, toHandlerKey, render, createApp, shallowReactive } from "vue";
1
+ import { defineComponent, getCurrentInstance, ref, computed, onMounted, nextTick, watch, onBeforeUnmount, resolveComponent, createElementBlock, openBlock, normalizeClass, Fragment, createVNode, createElementVNode, mergeProps, renderList, toDisplayString, createCommentVNode, createTextVNode, createBlock, withCtx, renderSlot, useAttrs as useAttrs$1, unref, useSlots, toRefs, isVNode, reactive, inject, provide, h as h$2, onUnmounted, TransitionGroup, Teleport as Teleport$1, onActivated, onDeactivated, readonly, getCurrentScope, onScopeDispose, shallowRef, watchEffect, customRef, isRef, warn as warn$1, normalizeStyle, toRef, Transition, withDirectives, resolveDynamicComponent, vShow, withModifiers, onUpdated, cloneVNode, Text as Text$2, Comment, onBeforeMount, withKeys, createSlots, normalizeProps, guardReactiveProps, toRaw, vModelCheckbox, vModelRadio, onBeforeUpdate, vModelText, toHandlers, markRaw, effectScope, resolveDirective, toHandlerKey, render, createApp, shallowReactive } from "vue";
2
2
  function cloneDeep$1(obj) {
3
3
  if (obj === null || typeof obj !== "object") {
4
4
  return obj;
@@ -17,6 +17,294 @@ function cloneDeep$1(obj) {
17
17
  }
18
18
  return clone2;
19
19
  }
20
+ function getDefaultExportFromCjs(x2) {
21
+ return x2 && x2.__esModule && Object.prototype.hasOwnProperty.call(x2, "default") ? x2["default"] : x2;
22
+ }
23
+ var dayjs_min$1 = { exports: {} };
24
+ var dayjs_min = dayjs_min$1.exports;
25
+ var hasRequiredDayjs_min;
26
+ function requireDayjs_min() {
27
+ if (hasRequiredDayjs_min) return dayjs_min$1.exports;
28
+ hasRequiredDayjs_min = 1;
29
+ (function(module2, exports2) {
30
+ !function(t2, e) {
31
+ module2.exports = e();
32
+ }(dayjs_min, function() {
33
+ var t2 = 1e3, e = 6e4, n = 36e5, r = "millisecond", i = "second", s2 = "minute", u2 = "hour", a2 = "day", o2 = "week", c2 = "month", f2 = "quarter", h2 = "year", d2 = "date", l2 = "Invalid Date", $2 = /^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/, y = /\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g, M2 = { name: "en", weekdays: "Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"), months: "January_February_March_April_May_June_July_August_September_October_November_December".split("_"), ordinal: function(t3) {
34
+ var e2 = ["th", "st", "nd", "rd"], n2 = t3 % 100;
35
+ return "[" + t3 + (e2[(n2 - 20) % 10] || e2[n2] || e2[0]) + "]";
36
+ } }, m2 = function(t3, e2, n2) {
37
+ var r2 = String(t3);
38
+ return !r2 || r2.length >= e2 ? t3 : "" + Array(e2 + 1 - r2.length).join(n2) + t3;
39
+ }, v2 = { s: m2, z: function(t3) {
40
+ var e2 = -t3.utcOffset(), n2 = Math.abs(e2), r2 = Math.floor(n2 / 60), i2 = n2 % 60;
41
+ return (e2 <= 0 ? "+" : "-") + m2(r2, 2, "0") + ":" + m2(i2, 2, "0");
42
+ }, m: function t3(e2, n2) {
43
+ if (e2.date() < n2.date()) return -t3(n2, e2);
44
+ var r2 = 12 * (n2.year() - e2.year()) + (n2.month() - e2.month()), i2 = e2.clone().add(r2, c2), s3 = n2 - i2 < 0, u3 = e2.clone().add(r2 + (s3 ? -1 : 1), c2);
45
+ return +(-(r2 + (n2 - i2) / (s3 ? i2 - u3 : u3 - i2)) || 0);
46
+ }, a: function(t3) {
47
+ return t3 < 0 ? Math.ceil(t3) || 0 : Math.floor(t3);
48
+ }, p: function(t3) {
49
+ return { M: c2, y: h2, w: o2, d: a2, D: d2, h: u2, m: s2, s: i, ms: r, Q: f2 }[t3] || String(t3 || "").toLowerCase().replace(/s$/, "");
50
+ }, u: function(t3) {
51
+ return void 0 === t3;
52
+ } }, g2 = "en", D2 = {};
53
+ D2[g2] = M2;
54
+ var p2 = "$isDayjsObject", S2 = function(t3) {
55
+ return t3 instanceof _2 || !(!t3 || !t3[p2]);
56
+ }, w2 = function t3(e2, n2, r2) {
57
+ var i2;
58
+ if (!e2) return g2;
59
+ if ("string" == typeof e2) {
60
+ var s3 = e2.toLowerCase();
61
+ D2[s3] && (i2 = s3), n2 && (D2[s3] = n2, i2 = s3);
62
+ var u3 = e2.split("-");
63
+ if (!i2 && u3.length > 1) return t3(u3[0]);
64
+ } else {
65
+ var a3 = e2.name;
66
+ D2[a3] = e2, i2 = a3;
67
+ }
68
+ return !r2 && i2 && (g2 = i2), i2 || !r2 && g2;
69
+ }, O2 = function(t3, e2) {
70
+ if (S2(t3)) return t3.clone();
71
+ var n2 = "object" == typeof e2 ? e2 : {};
72
+ return n2.date = t3, n2.args = arguments, new _2(n2);
73
+ }, b2 = v2;
74
+ b2.l = w2, b2.i = S2, b2.w = function(t3, e2) {
75
+ return O2(t3, { locale: e2.$L, utc: e2.$u, x: e2.$x, $offset: e2.$offset });
76
+ };
77
+ var _2 = function() {
78
+ function M3(t3) {
79
+ this.$L = w2(t3.locale, null, true), this.parse(t3), this.$x = this.$x || t3.x || {}, this[p2] = true;
80
+ }
81
+ var m3 = M3.prototype;
82
+ return m3.parse = function(t3) {
83
+ this.$d = function(t4) {
84
+ var e2 = t4.date, n2 = t4.utc;
85
+ if (null === e2) return /* @__PURE__ */ new Date(NaN);
86
+ if (b2.u(e2)) return /* @__PURE__ */ new Date();
87
+ if (e2 instanceof Date) return new Date(e2);
88
+ if ("string" == typeof e2 && !/Z$/i.test(e2)) {
89
+ var r2 = e2.match($2);
90
+ if (r2) {
91
+ var i2 = r2[2] - 1 || 0, s3 = (r2[7] || "0").substring(0, 3);
92
+ return n2 ? new Date(Date.UTC(r2[1], i2, r2[3] || 1, r2[4] || 0, r2[5] || 0, r2[6] || 0, s3)) : new Date(r2[1], i2, r2[3] || 1, r2[4] || 0, r2[5] || 0, r2[6] || 0, s3);
93
+ }
94
+ }
95
+ return new Date(e2);
96
+ }(t3), this.init();
97
+ }, m3.init = function() {
98
+ var t3 = this.$d;
99
+ this.$y = t3.getFullYear(), this.$M = t3.getMonth(), this.$D = t3.getDate(), this.$W = t3.getDay(), this.$H = t3.getHours(), this.$m = t3.getMinutes(), this.$s = t3.getSeconds(), this.$ms = t3.getMilliseconds();
100
+ }, m3.$utils = function() {
101
+ return b2;
102
+ }, m3.isValid = function() {
103
+ return !(this.$d.toString() === l2);
104
+ }, m3.isSame = function(t3, e2) {
105
+ var n2 = O2(t3);
106
+ return this.startOf(e2) <= n2 && n2 <= this.endOf(e2);
107
+ }, m3.isAfter = function(t3, e2) {
108
+ return O2(t3) < this.startOf(e2);
109
+ }, m3.isBefore = function(t3, e2) {
110
+ return this.endOf(e2) < O2(t3);
111
+ }, m3.$g = function(t3, e2, n2) {
112
+ return b2.u(t3) ? this[e2] : this.set(n2, t3);
113
+ }, m3.unix = function() {
114
+ return Math.floor(this.valueOf() / 1e3);
115
+ }, m3.valueOf = function() {
116
+ return this.$d.getTime();
117
+ }, m3.startOf = function(t3, e2) {
118
+ var n2 = this, r2 = !!b2.u(e2) || e2, f3 = b2.p(t3), l3 = function(t4, e3) {
119
+ var i2 = b2.w(n2.$u ? Date.UTC(n2.$y, e3, t4) : new Date(n2.$y, e3, t4), n2);
120
+ return r2 ? i2 : i2.endOf(a2);
121
+ }, $3 = function(t4, e3) {
122
+ return b2.w(n2.toDate()[t4].apply(n2.toDate("s"), (r2 ? [0, 0, 0, 0] : [23, 59, 59, 999]).slice(e3)), n2);
123
+ }, y2 = this.$W, M4 = this.$M, m4 = this.$D, v3 = "set" + (this.$u ? "UTC" : "");
124
+ switch (f3) {
125
+ case h2:
126
+ return r2 ? l3(1, 0) : l3(31, 11);
127
+ case c2:
128
+ return r2 ? l3(1, M4) : l3(0, M4 + 1);
129
+ case o2:
130
+ var g3 = this.$locale().weekStart || 0, D3 = (y2 < g3 ? y2 + 7 : y2) - g3;
131
+ return l3(r2 ? m4 - D3 : m4 + (6 - D3), M4);
132
+ case a2:
133
+ case d2:
134
+ return $3(v3 + "Hours", 0);
135
+ case u2:
136
+ return $3(v3 + "Minutes", 1);
137
+ case s2:
138
+ return $3(v3 + "Seconds", 2);
139
+ case i:
140
+ return $3(v3 + "Milliseconds", 3);
141
+ default:
142
+ return this.clone();
143
+ }
144
+ }, m3.endOf = function(t3) {
145
+ return this.startOf(t3, false);
146
+ }, m3.$set = function(t3, e2) {
147
+ var n2, o3 = b2.p(t3), f3 = "set" + (this.$u ? "UTC" : ""), l3 = (n2 = {}, n2[a2] = f3 + "Date", n2[d2] = f3 + "Date", n2[c2] = f3 + "Month", n2[h2] = f3 + "FullYear", n2[u2] = f3 + "Hours", n2[s2] = f3 + "Minutes", n2[i] = f3 + "Seconds", n2[r] = f3 + "Milliseconds", n2)[o3], $3 = o3 === a2 ? this.$D + (e2 - this.$W) : e2;
148
+ if (o3 === c2 || o3 === h2) {
149
+ var y2 = this.clone().set(d2, 1);
150
+ y2.$d[l3]($3), y2.init(), this.$d = y2.set(d2, Math.min(this.$D, y2.daysInMonth())).$d;
151
+ } else l3 && this.$d[l3]($3);
152
+ return this.init(), this;
153
+ }, m3.set = function(t3, e2) {
154
+ return this.clone().$set(t3, e2);
155
+ }, m3.get = function(t3) {
156
+ return this[b2.p(t3)]();
157
+ }, m3.add = function(r2, f3) {
158
+ var d3, l3 = this;
159
+ r2 = Number(r2);
160
+ var $3 = b2.p(f3), y2 = function(t3) {
161
+ var e2 = O2(l3);
162
+ return b2.w(e2.date(e2.date() + Math.round(t3 * r2)), l3);
163
+ };
164
+ if ($3 === c2) return this.set(c2, this.$M + r2);
165
+ if ($3 === h2) return this.set(h2, this.$y + r2);
166
+ if ($3 === a2) return y2(1);
167
+ if ($3 === o2) return y2(7);
168
+ var M4 = (d3 = {}, d3[s2] = e, d3[u2] = n, d3[i] = t2, d3)[$3] || 1, m4 = this.$d.getTime() + r2 * M4;
169
+ return b2.w(m4, this);
170
+ }, m3.subtract = function(t3, e2) {
171
+ return this.add(-1 * t3, e2);
172
+ }, m3.format = function(t3) {
173
+ var e2 = this, n2 = this.$locale();
174
+ if (!this.isValid()) return n2.invalidDate || l2;
175
+ var r2 = t3 || "YYYY-MM-DDTHH:mm:ssZ", i2 = b2.z(this), s3 = this.$H, u3 = this.$m, a3 = this.$M, o3 = n2.weekdays, c3 = n2.months, f3 = n2.meridiem, h3 = function(t4, n3, i3, s4) {
176
+ return t4 && (t4[n3] || t4(e2, r2)) || i3[n3].slice(0, s4);
177
+ }, d3 = function(t4) {
178
+ return b2.s(s3 % 12 || 12, t4, "0");
179
+ }, $3 = f3 || function(t4, e3, n3) {
180
+ var r3 = t4 < 12 ? "AM" : "PM";
181
+ return n3 ? r3.toLowerCase() : r3;
182
+ };
183
+ return r2.replace(y, function(t4, r3) {
184
+ return r3 || function(t5) {
185
+ switch (t5) {
186
+ case "YY":
187
+ return String(e2.$y).slice(-2);
188
+ case "YYYY":
189
+ return b2.s(e2.$y, 4, "0");
190
+ case "M":
191
+ return a3 + 1;
192
+ case "MM":
193
+ return b2.s(a3 + 1, 2, "0");
194
+ case "MMM":
195
+ return h3(n2.monthsShort, a3, c3, 3);
196
+ case "MMMM":
197
+ return h3(c3, a3);
198
+ case "D":
199
+ return e2.$D;
200
+ case "DD":
201
+ return b2.s(e2.$D, 2, "0");
202
+ case "d":
203
+ return String(e2.$W);
204
+ case "dd":
205
+ return h3(n2.weekdaysMin, e2.$W, o3, 2);
206
+ case "ddd":
207
+ return h3(n2.weekdaysShort, e2.$W, o3, 3);
208
+ case "dddd":
209
+ return o3[e2.$W];
210
+ case "H":
211
+ return String(s3);
212
+ case "HH":
213
+ return b2.s(s3, 2, "0");
214
+ case "h":
215
+ return d3(1);
216
+ case "hh":
217
+ return d3(2);
218
+ case "a":
219
+ return $3(s3, u3, true);
220
+ case "A":
221
+ return $3(s3, u3, false);
222
+ case "m":
223
+ return String(u3);
224
+ case "mm":
225
+ return b2.s(u3, 2, "0");
226
+ case "s":
227
+ return String(e2.$s);
228
+ case "ss":
229
+ return b2.s(e2.$s, 2, "0");
230
+ case "SSS":
231
+ return b2.s(e2.$ms, 3, "0");
232
+ case "Z":
233
+ return i2;
234
+ }
235
+ return null;
236
+ }(t4) || i2.replace(":", "");
237
+ });
238
+ }, m3.utcOffset = function() {
239
+ return 15 * -Math.round(this.$d.getTimezoneOffset() / 15);
240
+ }, m3.diff = function(r2, d3, l3) {
241
+ var $3, y2 = this, M4 = b2.p(d3), m4 = O2(r2), v3 = (m4.utcOffset() - this.utcOffset()) * e, g3 = this - m4, D3 = function() {
242
+ return b2.m(y2, m4);
243
+ };
244
+ switch (M4) {
245
+ case h2:
246
+ $3 = D3() / 12;
247
+ break;
248
+ case c2:
249
+ $3 = D3();
250
+ break;
251
+ case f2:
252
+ $3 = D3() / 3;
253
+ break;
254
+ case o2:
255
+ $3 = (g3 - v3) / 6048e5;
256
+ break;
257
+ case a2:
258
+ $3 = (g3 - v3) / 864e5;
259
+ break;
260
+ case u2:
261
+ $3 = g3 / n;
262
+ break;
263
+ case s2:
264
+ $3 = g3 / e;
265
+ break;
266
+ case i:
267
+ $3 = g3 / t2;
268
+ break;
269
+ default:
270
+ $3 = g3;
271
+ }
272
+ return l3 ? $3 : b2.a($3);
273
+ }, m3.daysInMonth = function() {
274
+ return this.endOf(c2).$D;
275
+ }, m3.$locale = function() {
276
+ return D2[this.$L];
277
+ }, m3.locale = function(t3, e2) {
278
+ if (!t3) return this.$L;
279
+ var n2 = this.clone(), r2 = w2(t3, e2, true);
280
+ return r2 && (n2.$L = r2), n2;
281
+ }, m3.clone = function() {
282
+ return b2.w(this.$d, this);
283
+ }, m3.toDate = function() {
284
+ return new Date(this.valueOf());
285
+ }, m3.toJSON = function() {
286
+ return this.isValid() ? this.toISOString() : null;
287
+ }, m3.toISOString = function() {
288
+ return this.$d.toISOString();
289
+ }, m3.toString = function() {
290
+ return this.$d.toUTCString();
291
+ }, M3;
292
+ }(), k = _2.prototype;
293
+ return O2.prototype = k, [["$ms", r], ["$s", i], ["$m", s2], ["$H", u2], ["$W", a2], ["$M", c2], ["$y", h2], ["$D", d2]].forEach(function(t3) {
294
+ k[t3[1]] = function(e2) {
295
+ return this.$g(e2, t3[0], t3[1]);
296
+ };
297
+ }), O2.extend = function(t3, e2) {
298
+ return t3.$i || (t3(e2, _2, O2), t3.$i = true), O2;
299
+ }, O2.locale = w2, O2.isDayjs = S2, O2.unix = function(t3) {
300
+ return O2(1e3 * t3);
301
+ }, O2.en = D2[g2], O2.Ls = D2, O2.p = {}, O2;
302
+ });
303
+ })(dayjs_min$1);
304
+ return dayjs_min$1.exports;
305
+ }
306
+ var dayjs_minExports = requireDayjs_min();
307
+ const dayjs = /* @__PURE__ */ getDefaultExportFromCjs(dayjs_minExports);
20
308
  //! moment.js
21
309
  //! version : 2.30.1
22
310
  //! authors : Tim Wood, Iskren Chernev, Moment.js contributors
@@ -4011,9 +4299,9 @@ hooks$a.HTML5_FMT = {
4011
4299
  MONTH: "YYYY-MM"
4012
4300
  // <input type="month" />
4013
4301
  };
4014
- const _hoisted_1$8 = { class: "b-picker wrapper" };
4015
- const _hoisted_2$6 = { class: "btn" };
4016
- const _hoisted_3$6 = ["onClick"];
4302
+ const _hoisted_1$8 = { class: "btn" };
4303
+ const _hoisted_2$6 = ["onClick"];
4304
+ const _hoisted_3$6 = ["title"];
4017
4305
  const _sfc_main$2K = /* @__PURE__ */ defineComponent({
4018
4306
  __name: "datePicker",
4019
4307
  props: {
@@ -4021,14 +4309,17 @@ const _sfc_main$2K = /* @__PURE__ */ defineComponent({
4021
4309
  startPlaceholder: { default: "开始时间" },
4022
4310
  endPlaceholder: { default: "结束时间" },
4023
4311
  type: { default: "daterange" },
4024
- rangeSeparator: { default: "至" },
4312
+ rangeSeparator: { default: "~" },
4025
4313
  size: { default: "" },
4026
- active: { default: "" }
4314
+ active: { default: "" },
4315
+ shortcutLayout: { default: "external" }
4027
4316
  },
4028
4317
  emits: ["update:modelValue"],
4029
4318
  setup(__props, { emit: __emit }) {
4319
+ var _a2;
4030
4320
  const props2 = __props;
4031
4321
  const emit = __emit;
4322
+ const instanceUid = ((_a2 = getCurrentInstance()) == null ? void 0 : _a2.uid) ?? 0;
4032
4323
  const shortcuts = ref([
4033
4324
  {
4034
4325
  label: "上月",
@@ -4062,6 +4353,61 @@ const _sfc_main$2K = /* @__PURE__ */ defineComponent({
4062
4353
  }
4063
4354
  ]);
4064
4355
  const active = ref("");
4356
+ const panelInputWrapRef = ref();
4357
+ const panelHighlightTimer = ref(null);
4358
+ const shortcutTagVertical = ref(false);
4359
+ const shortcutTagResizeObserver = ref(null);
4360
+ const activeShortcutLabel = computed(() => {
4361
+ if (!active.value) return "";
4362
+ const item = shortcuts.value.find((shortcut) => shortcut.key === active.value);
4363
+ return item ? item.label : "";
4364
+ });
4365
+ const activeShortcutChars = computed(() => activeShortcutLabel.value.split(""));
4366
+ const panelPopperClass = computed(
4367
+ () => `by-custom-date-picker-panel by-custom-date-picker-panel--${instanceUid}`
4368
+ );
4369
+ const panelShortcuts = computed(
4370
+ () => shortcuts.value.map((item) => ({
4371
+ text: item.label,
4372
+ onClick: ({ emit: pickerEmit }) => {
4373
+ active.value = item.key;
4374
+ pickerEmit("pick", [dayjs(item.start_time), dayjs(item.end_time)]);
4375
+ schedulePanelShortcutHighlight();
4376
+ }
4377
+ }))
4378
+ );
4379
+ const panelDatePickerProps = computed(() => {
4380
+ const rest = { ...props2 };
4381
+ delete rest.shortcutLayout;
4382
+ delete rest.active;
4383
+ delete rest.modelValue;
4384
+ return {
4385
+ ...rest,
4386
+ // panel 模式默认用 ~;业务可通过 rangeSeparator 覆盖
4387
+ rangeSeparator: props2.rangeSeparator === "至" ? "~" : props2.rangeSeparator,
4388
+ shortcuts: panelShortcuts.value,
4389
+ popperClass: panelPopperClass.value
4390
+ };
4391
+ });
4392
+ const syncActiveFromValue = (newValue) => {
4393
+ if (Array.isArray(newValue) && newValue.length) {
4394
+ const start = hooks$a(newValue[0]).format("YYYY-MM-DD");
4395
+ const end = hooks$a(newValue[1]).format("YYYY-MM-DD");
4396
+ let matchedKey = "";
4397
+ shortcuts.value.forEach((item2) => {
4398
+ if (item2.start_time === start && item2.end_time === end) {
4399
+ matchedKey = item2.key;
4400
+ }
4401
+ });
4402
+ active.value = matchedKey;
4403
+ return;
4404
+ }
4405
+ active.value = props2.active;
4406
+ const item = shortcuts.value.find((shortcut) => shortcut.key === props2.active) || {};
4407
+ if (item.start_time && item.end_time) {
4408
+ handleClick(item);
4409
+ }
4410
+ };
4065
4411
  const handleClick = (item) => {
4066
4412
  active.value = item.key;
4067
4413
  emit("update:modelValue", [item.start_time, item.end_time]);
@@ -4080,6 +4426,9 @@ const _sfc_main$2K = /* @__PURE__ */ defineComponent({
4080
4426
  handleClick(item);
4081
4427
  }
4082
4428
  }
4429
+ if (props2.shortcutLayout === "panel") {
4430
+ initShortcutTagLayout();
4431
+ }
4083
4432
  });
4084
4433
  const handleChange = (e) => {
4085
4434
  if (!e) {
@@ -4092,6 +4441,83 @@ const _sfc_main$2K = /* @__PURE__ */ defineComponent({
4092
4441
  }
4093
4442
  active.value = "";
4094
4443
  };
4444
+ const handlePanelChange = (e) => {
4445
+ if (!e) {
4446
+ emit("update:modelValue", []);
4447
+ active.value = "";
4448
+ } else {
4449
+ const formattedDates = e.map((item) => hooks$a(item).format("YYYY-MM-DD"));
4450
+ emit("update:modelValue", formattedDates);
4451
+ syncActiveFromValue(formattedDates);
4452
+ }
4453
+ };
4454
+ const handlePanelOpen = () => {
4455
+ if (props2.shortcutLayout !== "panel") return;
4456
+ syncActiveFromValue(props2.modelValue);
4457
+ schedulePanelShortcutHighlight();
4458
+ };
4459
+ const clearPanelHighlightTimer = () => {
4460
+ if (panelHighlightTimer.value) {
4461
+ clearTimeout(panelHighlightTimer.value);
4462
+ panelHighlightTimer.value = null;
4463
+ }
4464
+ };
4465
+ const getPanelElement = () => {
4466
+ return document.querySelector(`.by-custom-date-picker-panel--${instanceUid}`);
4467
+ };
4468
+ const updatePanelShortcutHighlight = () => {
4469
+ const panel = getPanelElement();
4470
+ if (!panel) return false;
4471
+ const shortcutEls = panel.querySelectorAll(".el-picker-panel__shortcut");
4472
+ if (!shortcutEls.length) return false;
4473
+ shortcutEls.forEach((el) => {
4474
+ const label = (el.textContent || "").trim();
4475
+ const item = shortcuts.value.find((shortcut) => shortcut.label === label);
4476
+ const isActive = !!(item && item.key === active.value);
4477
+ el.classList.toggle("active", isActive);
4478
+ el.classList.toggle("is-active", isActive);
4479
+ });
4480
+ return true;
4481
+ };
4482
+ const schedulePanelShortcutHighlight = (retry = 0) => {
4483
+ clearPanelHighlightTimer();
4484
+ nextTick(() => {
4485
+ const updated = updatePanelShortcutHighlight();
4486
+ if (!updated && retry < 15) {
4487
+ panelHighlightTimer.value = setTimeout(() => {
4488
+ schedulePanelShortcutHighlight(retry + 1);
4489
+ }, 50);
4490
+ }
4491
+ });
4492
+ };
4493
+ const initShortcutTagLayout = () => {
4494
+ destroyShortcutTagObserver();
4495
+ nextTick(() => {
4496
+ const wrap = panelInputWrapRef.value;
4497
+ if (!wrap) return;
4498
+ if (typeof ResizeObserver !== "undefined") {
4499
+ shortcutTagResizeObserver.value = new ResizeObserver(() => {
4500
+ updateShortcutTagLayout();
4501
+ });
4502
+ shortcutTagResizeObserver.value.observe(wrap);
4503
+ }
4504
+ updateShortcutTagLayout();
4505
+ });
4506
+ };
4507
+ const updateShortcutTagLayout = () => {
4508
+ const wrap = panelInputWrapRef.value;
4509
+ if (!wrap || !activeShortcutLabel.value) {
4510
+ shortcutTagVertical.value = false;
4511
+ return;
4512
+ }
4513
+ shortcutTagVertical.value = wrap.clientWidth < 250;
4514
+ };
4515
+ const destroyShortcutTagObserver = () => {
4516
+ if (shortcutTagResizeObserver.value) {
4517
+ shortcutTagResizeObserver.value.disconnect();
4518
+ shortcutTagResizeObserver.value = null;
4519
+ }
4520
+ };
4095
4521
  watch(
4096
4522
  () => props2.modelValue,
4097
4523
  (newValue) => {
@@ -4109,23 +4535,68 @@ const _sfc_main$2K = /* @__PURE__ */ defineComponent({
4109
4535
  deep: true
4110
4536
  }
4111
4537
  );
4538
+ watch(active, () => {
4539
+ if (props2.shortcutLayout === "panel") {
4540
+ schedulePanelShortcutHighlight();
4541
+ updateShortcutTagLayout();
4542
+ }
4543
+ });
4544
+ onBeforeUnmount(() => {
4545
+ clearPanelHighlightTimer();
4546
+ destroyShortcutTagObserver();
4547
+ });
4112
4548
  return (_ctx, _cache) => {
4113
4549
  const _component_el_date_picker = resolveComponent("el-date-picker");
4114
- return openBlock(), createElementBlock("div", _hoisted_1$8, [
4115
- createVNode(_component_el_date_picker, mergeProps({ style: { "width": "70%" } }, props2, {
4116
- modelValue: props2.modelValue,
4117
- "onUpdate:modelValue": handleChange
4118
- }), null, 16, ["modelValue"]),
4119
- createElementVNode("div", _hoisted_2$6, [
4120
- (openBlock(true), createElementBlock(Fragment, null, renderList(shortcuts.value, (item) => {
4121
- return openBlock(), createElementBlock("span", {
4122
- key: item.key,
4123
- class: normalizeClass(["item", { item_active: item.key === active.value }]),
4124
- onClick: ($event) => handleClick(item)
4125
- }, toDisplayString(item.label), 11, _hoisted_3$6);
4126
- }), 128))
4127
- ])
4128
- ]);
4550
+ return openBlock(), createElementBlock("div", {
4551
+ class: normalizeClass(["b-picker wrapper", { "b-picker--panel-shortcuts": _ctx.shortcutLayout === "panel" }])
4552
+ }, [
4553
+ _ctx.shortcutLayout === "external" ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [
4554
+ createVNode(_component_el_date_picker, mergeProps({ style: { "width": "70%" } }, props2, {
4555
+ modelValue: props2.modelValue,
4556
+ "onUpdate:modelValue": handleChange
4557
+ }), null, 16, ["modelValue"]),
4558
+ createElementVNode("div", _hoisted_1$8, [
4559
+ (openBlock(true), createElementBlock(Fragment, null, renderList(shortcuts.value, (item) => {
4560
+ return openBlock(), createElementBlock("span", {
4561
+ key: item.key,
4562
+ class: normalizeClass(["item", { item_active: item.key === active.value }]),
4563
+ onClick: ($event) => handleClick(item)
4564
+ }, toDisplayString(item.label), 11, _hoisted_2$6);
4565
+ }), 128))
4566
+ ])
4567
+ ], 64)) : (openBlock(), createElementBlock("div", {
4568
+ key: 1,
4569
+ ref_key: "panelInputWrapRef",
4570
+ ref: panelInputWrapRef,
4571
+ class: "b-picker__panel-input-wrap"
4572
+ }, [
4573
+ createVNode(_component_el_date_picker, mergeProps({
4574
+ class: {
4575
+ "has-shortcut-tag": !!activeShortcutLabel.value,
4576
+ "has-shortcut-tag--vertical": !!activeShortcutLabel.value && shortcutTagVertical.value
4577
+ }
4578
+ }, panelDatePickerProps.value, {
4579
+ modelValue: props2.modelValue,
4580
+ "onUpdate:modelValue": handlePanelChange,
4581
+ onFocus: handlePanelOpen,
4582
+ onVisibleChange: _cache[0] || (_cache[0] = (visible) => visible && handlePanelOpen())
4583
+ }), null, 16, ["class", "modelValue"]),
4584
+ activeShortcutLabel.value ? (openBlock(), createElementBlock("span", {
4585
+ key: 0,
4586
+ class: normalizeClass(["b-picker__shortcut-tag", { "is-vertical": shortcutTagVertical.value }]),
4587
+ title: activeShortcutLabel.value
4588
+ }, [
4589
+ shortcutTagVertical.value ? (openBlock(true), createElementBlock(Fragment, { key: 0 }, renderList(activeShortcutChars.value, (char, index) => {
4590
+ return openBlock(), createElementBlock("i", {
4591
+ key: index,
4592
+ class: "b-picker__shortcut-tag-char"
4593
+ }, toDisplayString(char), 1);
4594
+ }), 128)) : (openBlock(), createElementBlock(Fragment, { key: 1 }, [
4595
+ createTextVNode(toDisplayString(activeShortcutLabel.value), 1)
4596
+ ], 64))
4597
+ ], 10, _hoisted_3$6)) : createCommentVNode("", true)
4598
+ ], 512))
4599
+ ], 2);
4129
4600
  };
4130
4601
  }
4131
4602
  });
@@ -4136,7 +4607,7 @@ const _export_sfc$1 = (sfc, props2) => {
4136
4607
  }
4137
4608
  return target;
4138
4609
  };
4139
- const CustomDatePicker = /* @__PURE__ */ _export_sfc$1(_sfc_main$2K, [["__scopeId", "data-v-3d5f0e97"]]);
4610
+ const CustomDatePicker = /* @__PURE__ */ _export_sfc$1(_sfc_main$2K, [["__scopeId", "data-v-e33039d7"]]);
4140
4611
  const _hoisted_1$7 = { class: "drawer_query_btn b-fold-search" };
4141
4612
  const _sfc_main$2J = /* @__PURE__ */ defineComponent({
4142
4613
  __name: "foldSearch",
@@ -30617,9 +31088,6 @@ const VxeCore = {
30617
31088
  uiVersion: "",
30618
31089
  tableVersion: ""
30619
31090
  };
30620
- function getDefaultExportFromCjs(x2) {
30621
- return x2 && x2.__esModule && Object.prototype.hasOwnProperty.call(x2, "default") ? x2["default"] : x2;
30622
- }
30623
31091
  var setupDefaults_1;
30624
31092
  var hasRequiredSetupDefaults;
30625
31093
  function requireSetupDefaults() {
@@ -71892,291 +72360,6 @@ const ElButton = withInstall(Button$1, {
71892
72360
  ButtonGroup: ButtonGroup$1
71893
72361
  });
71894
72362
  const ElButtonGroup$1 = withNoopInstall(ButtonGroup$1);
71895
- var dayjs_min$1 = { exports: {} };
71896
- var dayjs_min = dayjs_min$1.exports;
71897
- var hasRequiredDayjs_min;
71898
- function requireDayjs_min() {
71899
- if (hasRequiredDayjs_min) return dayjs_min$1.exports;
71900
- hasRequiredDayjs_min = 1;
71901
- (function(module2, exports2) {
71902
- !function(t2, e) {
71903
- module2.exports = e();
71904
- }(dayjs_min, function() {
71905
- var t2 = 1e3, e = 6e4, n = 36e5, r = "millisecond", i = "second", s2 = "minute", u2 = "hour", a2 = "day", o2 = "week", c2 = "month", f2 = "quarter", h2 = "year", d2 = "date", l2 = "Invalid Date", $2 = /^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/, y = /\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g, M2 = { name: "en", weekdays: "Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"), months: "January_February_March_April_May_June_July_August_September_October_November_December".split("_"), ordinal: function(t3) {
71906
- var e2 = ["th", "st", "nd", "rd"], n2 = t3 % 100;
71907
- return "[" + t3 + (e2[(n2 - 20) % 10] || e2[n2] || e2[0]) + "]";
71908
- } }, m2 = function(t3, e2, n2) {
71909
- var r2 = String(t3);
71910
- return !r2 || r2.length >= e2 ? t3 : "" + Array(e2 + 1 - r2.length).join(n2) + t3;
71911
- }, v2 = { s: m2, z: function(t3) {
71912
- var e2 = -t3.utcOffset(), n2 = Math.abs(e2), r2 = Math.floor(n2 / 60), i2 = n2 % 60;
71913
- return (e2 <= 0 ? "+" : "-") + m2(r2, 2, "0") + ":" + m2(i2, 2, "0");
71914
- }, m: function t3(e2, n2) {
71915
- if (e2.date() < n2.date()) return -t3(n2, e2);
71916
- var r2 = 12 * (n2.year() - e2.year()) + (n2.month() - e2.month()), i2 = e2.clone().add(r2, c2), s3 = n2 - i2 < 0, u3 = e2.clone().add(r2 + (s3 ? -1 : 1), c2);
71917
- return +(-(r2 + (n2 - i2) / (s3 ? i2 - u3 : u3 - i2)) || 0);
71918
- }, a: function(t3) {
71919
- return t3 < 0 ? Math.ceil(t3) || 0 : Math.floor(t3);
71920
- }, p: function(t3) {
71921
- return { M: c2, y: h2, w: o2, d: a2, D: d2, h: u2, m: s2, s: i, ms: r, Q: f2 }[t3] || String(t3 || "").toLowerCase().replace(/s$/, "");
71922
- }, u: function(t3) {
71923
- return void 0 === t3;
71924
- } }, g2 = "en", D2 = {};
71925
- D2[g2] = M2;
71926
- var p2 = "$isDayjsObject", S2 = function(t3) {
71927
- return t3 instanceof _2 || !(!t3 || !t3[p2]);
71928
- }, w2 = function t3(e2, n2, r2) {
71929
- var i2;
71930
- if (!e2) return g2;
71931
- if ("string" == typeof e2) {
71932
- var s3 = e2.toLowerCase();
71933
- D2[s3] && (i2 = s3), n2 && (D2[s3] = n2, i2 = s3);
71934
- var u3 = e2.split("-");
71935
- if (!i2 && u3.length > 1) return t3(u3[0]);
71936
- } else {
71937
- var a3 = e2.name;
71938
- D2[a3] = e2, i2 = a3;
71939
- }
71940
- return !r2 && i2 && (g2 = i2), i2 || !r2 && g2;
71941
- }, O2 = function(t3, e2) {
71942
- if (S2(t3)) return t3.clone();
71943
- var n2 = "object" == typeof e2 ? e2 : {};
71944
- return n2.date = t3, n2.args = arguments, new _2(n2);
71945
- }, b2 = v2;
71946
- b2.l = w2, b2.i = S2, b2.w = function(t3, e2) {
71947
- return O2(t3, { locale: e2.$L, utc: e2.$u, x: e2.$x, $offset: e2.$offset });
71948
- };
71949
- var _2 = function() {
71950
- function M3(t3) {
71951
- this.$L = w2(t3.locale, null, true), this.parse(t3), this.$x = this.$x || t3.x || {}, this[p2] = true;
71952
- }
71953
- var m3 = M3.prototype;
71954
- return m3.parse = function(t3) {
71955
- this.$d = function(t4) {
71956
- var e2 = t4.date, n2 = t4.utc;
71957
- if (null === e2) return /* @__PURE__ */ new Date(NaN);
71958
- if (b2.u(e2)) return /* @__PURE__ */ new Date();
71959
- if (e2 instanceof Date) return new Date(e2);
71960
- if ("string" == typeof e2 && !/Z$/i.test(e2)) {
71961
- var r2 = e2.match($2);
71962
- if (r2) {
71963
- var i2 = r2[2] - 1 || 0, s3 = (r2[7] || "0").substring(0, 3);
71964
- return n2 ? new Date(Date.UTC(r2[1], i2, r2[3] || 1, r2[4] || 0, r2[5] || 0, r2[6] || 0, s3)) : new Date(r2[1], i2, r2[3] || 1, r2[4] || 0, r2[5] || 0, r2[6] || 0, s3);
71965
- }
71966
- }
71967
- return new Date(e2);
71968
- }(t3), this.init();
71969
- }, m3.init = function() {
71970
- var t3 = this.$d;
71971
- this.$y = t3.getFullYear(), this.$M = t3.getMonth(), this.$D = t3.getDate(), this.$W = t3.getDay(), this.$H = t3.getHours(), this.$m = t3.getMinutes(), this.$s = t3.getSeconds(), this.$ms = t3.getMilliseconds();
71972
- }, m3.$utils = function() {
71973
- return b2;
71974
- }, m3.isValid = function() {
71975
- return !(this.$d.toString() === l2);
71976
- }, m3.isSame = function(t3, e2) {
71977
- var n2 = O2(t3);
71978
- return this.startOf(e2) <= n2 && n2 <= this.endOf(e2);
71979
- }, m3.isAfter = function(t3, e2) {
71980
- return O2(t3) < this.startOf(e2);
71981
- }, m3.isBefore = function(t3, e2) {
71982
- return this.endOf(e2) < O2(t3);
71983
- }, m3.$g = function(t3, e2, n2) {
71984
- return b2.u(t3) ? this[e2] : this.set(n2, t3);
71985
- }, m3.unix = function() {
71986
- return Math.floor(this.valueOf() / 1e3);
71987
- }, m3.valueOf = function() {
71988
- return this.$d.getTime();
71989
- }, m3.startOf = function(t3, e2) {
71990
- var n2 = this, r2 = !!b2.u(e2) || e2, f3 = b2.p(t3), l3 = function(t4, e3) {
71991
- var i2 = b2.w(n2.$u ? Date.UTC(n2.$y, e3, t4) : new Date(n2.$y, e3, t4), n2);
71992
- return r2 ? i2 : i2.endOf(a2);
71993
- }, $3 = function(t4, e3) {
71994
- return b2.w(n2.toDate()[t4].apply(n2.toDate("s"), (r2 ? [0, 0, 0, 0] : [23, 59, 59, 999]).slice(e3)), n2);
71995
- }, y2 = this.$W, M4 = this.$M, m4 = this.$D, v3 = "set" + (this.$u ? "UTC" : "");
71996
- switch (f3) {
71997
- case h2:
71998
- return r2 ? l3(1, 0) : l3(31, 11);
71999
- case c2:
72000
- return r2 ? l3(1, M4) : l3(0, M4 + 1);
72001
- case o2:
72002
- var g3 = this.$locale().weekStart || 0, D3 = (y2 < g3 ? y2 + 7 : y2) - g3;
72003
- return l3(r2 ? m4 - D3 : m4 + (6 - D3), M4);
72004
- case a2:
72005
- case d2:
72006
- return $3(v3 + "Hours", 0);
72007
- case u2:
72008
- return $3(v3 + "Minutes", 1);
72009
- case s2:
72010
- return $3(v3 + "Seconds", 2);
72011
- case i:
72012
- return $3(v3 + "Milliseconds", 3);
72013
- default:
72014
- return this.clone();
72015
- }
72016
- }, m3.endOf = function(t3) {
72017
- return this.startOf(t3, false);
72018
- }, m3.$set = function(t3, e2) {
72019
- var n2, o3 = b2.p(t3), f3 = "set" + (this.$u ? "UTC" : ""), l3 = (n2 = {}, n2[a2] = f3 + "Date", n2[d2] = f3 + "Date", n2[c2] = f3 + "Month", n2[h2] = f3 + "FullYear", n2[u2] = f3 + "Hours", n2[s2] = f3 + "Minutes", n2[i] = f3 + "Seconds", n2[r] = f3 + "Milliseconds", n2)[o3], $3 = o3 === a2 ? this.$D + (e2 - this.$W) : e2;
72020
- if (o3 === c2 || o3 === h2) {
72021
- var y2 = this.clone().set(d2, 1);
72022
- y2.$d[l3]($3), y2.init(), this.$d = y2.set(d2, Math.min(this.$D, y2.daysInMonth())).$d;
72023
- } else l3 && this.$d[l3]($3);
72024
- return this.init(), this;
72025
- }, m3.set = function(t3, e2) {
72026
- return this.clone().$set(t3, e2);
72027
- }, m3.get = function(t3) {
72028
- return this[b2.p(t3)]();
72029
- }, m3.add = function(r2, f3) {
72030
- var d3, l3 = this;
72031
- r2 = Number(r2);
72032
- var $3 = b2.p(f3), y2 = function(t3) {
72033
- var e2 = O2(l3);
72034
- return b2.w(e2.date(e2.date() + Math.round(t3 * r2)), l3);
72035
- };
72036
- if ($3 === c2) return this.set(c2, this.$M + r2);
72037
- if ($3 === h2) return this.set(h2, this.$y + r2);
72038
- if ($3 === a2) return y2(1);
72039
- if ($3 === o2) return y2(7);
72040
- var M4 = (d3 = {}, d3[s2] = e, d3[u2] = n, d3[i] = t2, d3)[$3] || 1, m4 = this.$d.getTime() + r2 * M4;
72041
- return b2.w(m4, this);
72042
- }, m3.subtract = function(t3, e2) {
72043
- return this.add(-1 * t3, e2);
72044
- }, m3.format = function(t3) {
72045
- var e2 = this, n2 = this.$locale();
72046
- if (!this.isValid()) return n2.invalidDate || l2;
72047
- var r2 = t3 || "YYYY-MM-DDTHH:mm:ssZ", i2 = b2.z(this), s3 = this.$H, u3 = this.$m, a3 = this.$M, o3 = n2.weekdays, c3 = n2.months, f3 = n2.meridiem, h3 = function(t4, n3, i3, s4) {
72048
- return t4 && (t4[n3] || t4(e2, r2)) || i3[n3].slice(0, s4);
72049
- }, d3 = function(t4) {
72050
- return b2.s(s3 % 12 || 12, t4, "0");
72051
- }, $3 = f3 || function(t4, e3, n3) {
72052
- var r3 = t4 < 12 ? "AM" : "PM";
72053
- return n3 ? r3.toLowerCase() : r3;
72054
- };
72055
- return r2.replace(y, function(t4, r3) {
72056
- return r3 || function(t5) {
72057
- switch (t5) {
72058
- case "YY":
72059
- return String(e2.$y).slice(-2);
72060
- case "YYYY":
72061
- return b2.s(e2.$y, 4, "0");
72062
- case "M":
72063
- return a3 + 1;
72064
- case "MM":
72065
- return b2.s(a3 + 1, 2, "0");
72066
- case "MMM":
72067
- return h3(n2.monthsShort, a3, c3, 3);
72068
- case "MMMM":
72069
- return h3(c3, a3);
72070
- case "D":
72071
- return e2.$D;
72072
- case "DD":
72073
- return b2.s(e2.$D, 2, "0");
72074
- case "d":
72075
- return String(e2.$W);
72076
- case "dd":
72077
- return h3(n2.weekdaysMin, e2.$W, o3, 2);
72078
- case "ddd":
72079
- return h3(n2.weekdaysShort, e2.$W, o3, 3);
72080
- case "dddd":
72081
- return o3[e2.$W];
72082
- case "H":
72083
- return String(s3);
72084
- case "HH":
72085
- return b2.s(s3, 2, "0");
72086
- case "h":
72087
- return d3(1);
72088
- case "hh":
72089
- return d3(2);
72090
- case "a":
72091
- return $3(s3, u3, true);
72092
- case "A":
72093
- return $3(s3, u3, false);
72094
- case "m":
72095
- return String(u3);
72096
- case "mm":
72097
- return b2.s(u3, 2, "0");
72098
- case "s":
72099
- return String(e2.$s);
72100
- case "ss":
72101
- return b2.s(e2.$s, 2, "0");
72102
- case "SSS":
72103
- return b2.s(e2.$ms, 3, "0");
72104
- case "Z":
72105
- return i2;
72106
- }
72107
- return null;
72108
- }(t4) || i2.replace(":", "");
72109
- });
72110
- }, m3.utcOffset = function() {
72111
- return 15 * -Math.round(this.$d.getTimezoneOffset() / 15);
72112
- }, m3.diff = function(r2, d3, l3) {
72113
- var $3, y2 = this, M4 = b2.p(d3), m4 = O2(r2), v3 = (m4.utcOffset() - this.utcOffset()) * e, g3 = this - m4, D3 = function() {
72114
- return b2.m(y2, m4);
72115
- };
72116
- switch (M4) {
72117
- case h2:
72118
- $3 = D3() / 12;
72119
- break;
72120
- case c2:
72121
- $3 = D3();
72122
- break;
72123
- case f2:
72124
- $3 = D3() / 3;
72125
- break;
72126
- case o2:
72127
- $3 = (g3 - v3) / 6048e5;
72128
- break;
72129
- case a2:
72130
- $3 = (g3 - v3) / 864e5;
72131
- break;
72132
- case u2:
72133
- $3 = g3 / n;
72134
- break;
72135
- case s2:
72136
- $3 = g3 / e;
72137
- break;
72138
- case i:
72139
- $3 = g3 / t2;
72140
- break;
72141
- default:
72142
- $3 = g3;
72143
- }
72144
- return l3 ? $3 : b2.a($3);
72145
- }, m3.daysInMonth = function() {
72146
- return this.endOf(c2).$D;
72147
- }, m3.$locale = function() {
72148
- return D2[this.$L];
72149
- }, m3.locale = function(t3, e2) {
72150
- if (!t3) return this.$L;
72151
- var n2 = this.clone(), r2 = w2(t3, e2, true);
72152
- return r2 && (n2.$L = r2), n2;
72153
- }, m3.clone = function() {
72154
- return b2.w(this.$d, this);
72155
- }, m3.toDate = function() {
72156
- return new Date(this.valueOf());
72157
- }, m3.toJSON = function() {
72158
- return this.isValid() ? this.toISOString() : null;
72159
- }, m3.toISOString = function() {
72160
- return this.$d.toISOString();
72161
- }, m3.toString = function() {
72162
- return this.$d.toUTCString();
72163
- }, M3;
72164
- }(), k = _2.prototype;
72165
- return O2.prototype = k, [["$ms", r], ["$s", i], ["$m", s2], ["$H", u2], ["$W", a2], ["$M", c2], ["$y", h2], ["$D", d2]].forEach(function(t3) {
72166
- k[t3[1]] = function(e2) {
72167
- return this.$g(e2, t3[0], t3[1]);
72168
- };
72169
- }), O2.extend = function(t3, e2) {
72170
- return t3.$i || (t3(e2, _2, O2), t3.$i = true), O2;
72171
- }, O2.locale = w2, O2.isDayjs = S2, O2.unix = function(t3) {
72172
- return O2(1e3 * t3);
72173
- }, O2.en = D2[g2], O2.Ls = D2, O2.p = {}, O2;
72174
- });
72175
- })(dayjs_min$1);
72176
- return dayjs_min$1.exports;
72177
- }
72178
- var dayjs_minExports = requireDayjs_min();
72179
- const dayjs = /* @__PURE__ */ getDefaultExportFromCjs(dayjs_minExports);
72180
72363
  const buildTimeList = (value, bound) => {
72181
72364
  return [
72182
72365
  value > 0 ? value - 1 : void 0,