@univerjs/design 0.5.0 → 0.5.1

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,62 +1,61 @@
1
- var X = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
2
- function ht(o) {
3
- return o && o.__esModule && Object.prototype.hasOwnProperty.call(o, "default") ? o.default : o;
1
+ function lt(i) {
2
+ return i && i.__esModule && Object.prototype.hasOwnProperty.call(i, "default") ? i.default : i;
4
3
  }
5
- var G = { exports: {} }, V = { exports: {} }, z;
6
- function lt() {
7
- return z || (z = 1, function(o, _) {
8
- (function(p, u) {
9
- o.exports = u();
10
- })(X, function() {
11
- var p = 1e3, u = 6e4, d = 36e5, l = "millisecond", f = "second", M = "minute", D = "hour", Y = "day", N = "week", x = "month", U = "quarter", S = "year", P = "date", R = "Invalid Date", at = /^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/, ut = /\[([^\]]+)]|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, ct = { 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(i) {
12
- var r = ["th", "st", "nd", "rd"], t = i % 100;
13
- return "[" + i + (r[(t - 20) % 10] || r[t] || r[0]) + "]";
14
- } }, A = function(i, r, t) {
15
- var n = String(i);
16
- return !n || n.length >= r ? i : "" + Array(r + 1 - n.length).join(t) + i;
17
- }, ft = { s: A, z: function(i) {
18
- var r = -i.utcOffset(), t = Math.abs(r), n = Math.floor(t / 60), e = t % 60;
19
- return (r <= 0 ? "+" : "-") + A(n, 2, "0") + ":" + A(e, 2, "0");
20
- }, m: function i(r, t) {
21
- if (r.date() < t.date()) return -i(t, r);
22
- var n = 12 * (t.year() - r.year()) + (t.month() - r.month()), e = r.clone().add(n, x), s = t - e < 0, a = r.clone().add(n + (s ? -1 : 1), x);
23
- return +(-(n + (t - e) / (s ? e - a : a - e)) || 0);
24
- }, a: function(i) {
25
- return i < 0 ? Math.ceil(i) || 0 : Math.floor(i);
26
- }, p: function(i) {
27
- return { M: x, y: S, w: N, d: Y, D: P, h: D, m: M, s: f, ms: l, Q: U }[i] || String(i || "").toLowerCase().replace(/s$/, "");
28
- }, u: function(i) {
29
- return i === void 0;
30
- } }, H = "en", w = {};
31
- w[H] = ct;
32
- var J = "$isDayjsObject", q = function(i) {
33
- return i instanceof F || !(!i || !i[J]);
34
- }, E = function i(r, t, n) {
4
+ var W = { exports: {} }, A = { exports: {} }, _t = A.exports, rt;
5
+ function Mt() {
6
+ return rt || (rt = 1, function(i, m) {
7
+ (function(l, a) {
8
+ i.exports = a();
9
+ })(_t, function() {
10
+ var l = 1e3, a = 6e4, d = 36e5, p = "millisecond", f = "second", M = "minute", b = "hour", S = "day", V = "week", D = "month", Q = "quarter", Y = "year", P = "date", G = "Invalid Date", dt = /^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/, yt = /\[([^\]]+)]|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, mt = { 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(o) {
11
+ var r = ["th", "st", "nd", "rd"], t = o % 100;
12
+ return "[" + o + (r[(t - 20) % 10] || r[t] || r[0]) + "]";
13
+ } }, I = function(o, r, t) {
14
+ var n = String(o);
15
+ return !n || n.length >= r ? o : "" + Array(r + 1 - n.length).join(t) + o;
16
+ }, vt = { s: I, z: function(o) {
17
+ var r = -o.utcOffset(), t = Math.abs(r), n = Math.floor(t / 60), e = t % 60;
18
+ return (r <= 0 ? "+" : "-") + I(n, 2, "0") + ":" + I(e, 2, "0");
19
+ }, m: function o(r, t) {
20
+ if (r.date() < t.date()) return -o(t, r);
21
+ var n = 12 * (t.year() - r.year()) + (t.month() - r.month()), e = r.clone().add(n, D), s = t - e < 0, u = r.clone().add(n + (s ? -1 : 1), D);
22
+ return +(-(n + (t - e) / (s ? e - u : u - e)) || 0);
23
+ }, a: function(o) {
24
+ return o < 0 ? Math.ceil(o) || 0 : Math.floor(o);
25
+ }, p: function(o) {
26
+ return { M: D, y: Y, w: V, d: S, D: P, h: b, m: M, s: f, ms: p, Q }[o] || String(o || "").toLowerCase().replace(/s$/, "");
27
+ }, u: function(o) {
28
+ return o === void 0;
29
+ } }, H = "en", O = {};
30
+ O[H] = mt;
31
+ var tt = "$isDayjsObject", E = function(o) {
32
+ return o instanceof F || !(!o || !o[tt]);
33
+ }, R = function o(r, t, n) {
35
34
  var e;
36
35
  if (!r) return H;
37
36
  if (typeof r == "string") {
38
37
  var s = r.toLowerCase();
39
- w[s] && (e = s), t && (w[s] = t, e = s);
40
- var a = r.split("-");
41
- if (!e && a.length > 1) return i(a[0]);
38
+ O[s] && (e = s), t && (O[s] = t, e = s);
39
+ var u = r.split("-");
40
+ if (!e && u.length > 1) return o(u[0]);
42
41
  } else {
43
42
  var h = r.name;
44
- w[h] = r, e = h;
43
+ O[h] = r, e = h;
45
44
  }
46
45
  return !n && e && (H = e), e || !n && H;
47
- }, m = function(i, r) {
48
- if (q(i)) return i.clone();
46
+ }, v = function(o, r) {
47
+ if (E(o)) return o.clone();
49
48
  var t = typeof r == "object" ? r : {};
50
- return t.date = i, t.args = arguments, new F(t);
51
- }, c = ft;
52
- c.l = E, c.i = q, c.w = function(i, r) {
53
- return m(i, { locale: r.$L, utc: r.$u, x: r.$x, $offset: r.$offset });
49
+ return t.date = o, t.args = arguments, new F(t);
50
+ }, c = vt;
51
+ c.l = R, c.i = E, c.w = function(o, r) {
52
+ return v(o, { locale: r.$L, utc: r.$u, x: r.$x, $offset: r.$offset });
54
53
  };
55
54
  var F = function() {
56
- function i(t) {
57
- this.$L = E(t.locale, null, !0), this.parse(t), this.$x = this.$x || t.x || {}, this[J] = !0;
55
+ function o(t) {
56
+ this.$L = R(t.locale, null, !0), this.parse(t), this.$x = this.$x || t.x || {}, this[tt] = !0;
58
57
  }
59
- var r = i.prototype;
58
+ var r = o.prototype;
60
59
  return r.parse = function(t) {
61
60
  this.$d = function(n) {
62
61
  var e = n.date, s = n.utc;
@@ -64,10 +63,10 @@ function lt() {
64
63
  if (c.u(e)) return /* @__PURE__ */ new Date();
65
64
  if (e instanceof Date) return new Date(e);
66
65
  if (typeof e == "string" && !/Z$/i.test(e)) {
67
- var a = e.match(at);
68
- if (a) {
69
- var h = a[2] - 1 || 0, y = (a[7] || "0").substring(0, 3);
70
- return s ? new Date(Date.UTC(a[1], h, a[3] || 1, a[4] || 0, a[5] || 0, a[6] || 0, y)) : new Date(a[1], h, a[3] || 1, a[4] || 0, a[5] || 0, a[6] || 0, y);
66
+ var u = e.match(dt);
67
+ if (u) {
68
+ var h = u[2] - 1 || 0, y = (u[7] || "0").substring(0, 3);
69
+ return s ? new Date(Date.UTC(u[1], h, u[3] || 1, u[4] || 0, u[5] || 0, u[6] || 0, y)) : new Date(u[1], h, u[3] || 1, u[4] || 0, u[5] || 0, u[6] || 0, y);
71
70
  }
72
71
  }
73
72
  return new Date(e);
@@ -78,14 +77,14 @@ function lt() {
78
77
  }, r.$utils = function() {
79
78
  return c;
80
79
  }, r.isValid = function() {
81
- return this.$d.toString() !== R;
80
+ return this.$d.toString() !== G;
82
81
  }, r.isSame = function(t, n) {
83
- var e = m(t);
82
+ var e = v(t);
84
83
  return this.startOf(n) <= e && e <= this.endOf(n);
85
84
  }, r.isAfter = function(t, n) {
86
- return m(t) < this.startOf(n);
85
+ return v(t) < this.startOf(n);
87
86
  }, r.isBefore = function(t, n) {
88
- return this.endOf(n) < m(t);
87
+ return this.endOf(n) < v(t);
89
88
  }, r.$g = function(t, n, e) {
90
89
  return c.u(t) ? this[n] : this.set(e, t);
91
90
  }, r.unix = function() {
@@ -93,24 +92,24 @@ function lt() {
93
92
  }, r.valueOf = function() {
94
93
  return this.$d.getTime();
95
94
  }, r.startOf = function(t, n) {
96
- var e = this, s = !!c.u(n) || n, a = c.p(t), h = function(j, $) {
97
- var T = c.w(e.$u ? Date.UTC(e.$y, $, j) : new Date(e.$y, $, j), e);
98
- return s ? T : T.endOf(Y);
99
- }, y = function(j, $) {
100
- return c.w(e.toDate()[j].apply(e.toDate("s"), (s ? [0, 0, 0, 0] : [23, 59, 59, 999]).slice($)), e);
101
- }, v = this.$W, g = this.$M, b = this.$D, k = "set" + (this.$u ? "UTC" : "");
102
- switch (a) {
103
- case S:
104
- return s ? h(1, 0) : h(31, 11);
105
- case x:
106
- return s ? h(1, g) : h(0, g + 1);
107
- case N:
108
- var O = this.$locale().weekStart || 0, L = (v < O ? v + 7 : v) - O;
109
- return h(s ? b - L : b + (6 - L), g);
95
+ var e = this, s = !!c.u(n) || n, u = c.p(t), h = function(j, g) {
96
+ var T = c.w(e.$u ? Date.UTC(e.$y, g, j) : new Date(e.$y, g, j), e);
97
+ return s ? T : T.endOf(S);
98
+ }, y = function(j, g) {
99
+ return c.w(e.toDate()[j].apply(e.toDate("s"), (s ? [0, 0, 0, 0] : [23, 59, 59, 999]).slice(g)), e);
100
+ }, _ = this.$W, $ = this.$M, x = this.$D, k = "set" + (this.$u ? "UTC" : "");
101
+ switch (u) {
110
102
  case Y:
103
+ return s ? h(1, 0) : h(31, 11);
104
+ case D:
105
+ return s ? h(1, $) : h(0, $ + 1);
106
+ case V:
107
+ var w = this.$locale().weekStart || 0, q = (_ < w ? _ + 7 : _) - w;
108
+ return h(s ? x - q : x + (6 - q), $);
109
+ case S:
111
110
  case P:
112
111
  return y(k + "Hours", 0);
113
- case D:
112
+ case b:
114
113
  return y(k + "Minutes", 1);
115
114
  case M:
116
115
  return y(k + "Seconds", 2);
@@ -122,10 +121,10 @@ function lt() {
122
121
  }, r.endOf = function(t) {
123
122
  return this.startOf(t, !1);
124
123
  }, r.$set = function(t, n) {
125
- var e, s = c.p(t), a = "set" + (this.$u ? "UTC" : ""), h = (e = {}, e[Y] = a + "Date", e[P] = a + "Date", e[x] = a + "Month", e[S] = a + "FullYear", e[D] = a + "Hours", e[M] = a + "Minutes", e[f] = a + "Seconds", e[l] = a + "Milliseconds", e)[s], y = s === Y ? this.$D + (n - this.$W) : n;
126
- if (s === x || s === S) {
127
- var v = this.clone().set(P, 1);
128
- v.$d[h](y), v.init(), this.$d = v.set(P, Math.min(this.$D, v.daysInMonth())).$d;
124
+ var e, s = c.p(t), u = "set" + (this.$u ? "UTC" : ""), h = (e = {}, e[S] = u + "Date", e[P] = u + "Date", e[D] = u + "Month", e[Y] = u + "FullYear", e[b] = u + "Hours", e[M] = u + "Minutes", e[f] = u + "Seconds", e[p] = u + "Milliseconds", e)[s], y = s === S ? this.$D + (n - this.$W) : n;
125
+ if (s === D || s === Y) {
126
+ var _ = this.clone().set(P, 1);
127
+ _.$d[h](y), _.init(), this.$d = _.set(P, Math.min(this.$D, _.daysInMonth())).$d;
129
128
  } else h && this.$d[h](y);
130
129
  return this.init(), this;
131
130
  }, r.set = function(t, n) {
@@ -135,30 +134,30 @@ function lt() {
135
134
  }, r.add = function(t, n) {
136
135
  var e, s = this;
137
136
  t = Number(t);
138
- var a = c.p(n), h = function(g) {
139
- var b = m(s);
140
- return c.w(b.date(b.date() + Math.round(g * t)), s);
137
+ var u = c.p(n), h = function($) {
138
+ var x = v(s);
139
+ return c.w(x.date(x.date() + Math.round($ * t)), s);
141
140
  };
142
- if (a === x) return this.set(x, this.$M + t);
143
- if (a === S) return this.set(S, this.$y + t);
144
- if (a === Y) return h(1);
145
- if (a === N) return h(7);
146
- var y = (e = {}, e[M] = u, e[D] = d, e[f] = p, e)[a] || 1, v = this.$d.getTime() + t * y;
147
- return c.w(v, this);
141
+ if (u === D) return this.set(D, this.$M + t);
142
+ if (u === Y) return this.set(Y, this.$y + t);
143
+ if (u === S) return h(1);
144
+ if (u === V) return h(7);
145
+ var y = (e = {}, e[M] = a, e[b] = d, e[f] = l, e)[u] || 1, _ = this.$d.getTime() + t * y;
146
+ return c.w(_, this);
148
147
  }, r.subtract = function(t, n) {
149
148
  return this.add(-1 * t, n);
150
149
  }, r.format = function(t) {
151
150
  var n = this, e = this.$locale();
152
- if (!this.isValid()) return e.invalidDate || R;
153
- var s = t || "YYYY-MM-DDTHH:mm:ssZ", a = c.z(this), h = this.$H, y = this.$m, v = this.$M, g = e.weekdays, b = e.months, k = e.meridiem, O = function($, T, C, K) {
154
- return $ && ($[T] || $(n, s)) || C[T].slice(0, K);
155
- }, L = function($) {
156
- return c.s(h % 12 || 12, $, "0");
157
- }, j = k || function($, T, C) {
158
- var K = $ < 12 ? "AM" : "PM";
151
+ if (!this.isValid()) return e.invalidDate || G;
152
+ var s = t || "YYYY-MM-DDTHH:mm:ssZ", u = c.z(this), h = this.$H, y = this.$m, _ = this.$M, $ = e.weekdays, x = e.months, k = e.meridiem, w = function(g, T, C, K) {
153
+ return g && (g[T] || g(n, s)) || C[T].slice(0, K);
154
+ }, q = function(g) {
155
+ return c.s(h % 12 || 12, g, "0");
156
+ }, j = k || function(g, T, C) {
157
+ var K = g < 12 ? "AM" : "PM";
159
158
  return C ? K.toLowerCase() : K;
160
159
  };
161
- return s.replace(ut, function($, T) {
160
+ return s.replace(yt, function(g, T) {
162
161
  return T || function(C) {
163
162
  switch (C) {
164
163
  case "YY":
@@ -166,13 +165,13 @@ function lt() {
166
165
  case "YYYY":
167
166
  return c.s(n.$y, 4, "0");
168
167
  case "M":
169
- return v + 1;
168
+ return _ + 1;
170
169
  case "MM":
171
- return c.s(v + 1, 2, "0");
170
+ return c.s(_ + 1, 2, "0");
172
171
  case "MMM":
173
- return O(e.monthsShort, v, b, 3);
172
+ return w(e.monthsShort, _, x, 3);
174
173
  case "MMMM":
175
- return O(b, v);
174
+ return w(x, _);
176
175
  case "D":
177
176
  return n.$D;
178
177
  case "DD":
@@ -180,19 +179,19 @@ function lt() {
180
179
  case "d":
181
180
  return String(n.$W);
182
181
  case "dd":
183
- return O(e.weekdaysMin, n.$W, g, 2);
182
+ return w(e.weekdaysMin, n.$W, $, 2);
184
183
  case "ddd":
185
- return O(e.weekdaysShort, n.$W, g, 3);
184
+ return w(e.weekdaysShort, n.$W, $, 3);
186
185
  case "dddd":
187
- return g[n.$W];
186
+ return $[n.$W];
188
187
  case "H":
189
188
  return String(h);
190
189
  case "HH":
191
190
  return c.s(h, 2, "0");
192
191
  case "h":
193
- return L(1);
192
+ return q(1);
194
193
  case "hh":
195
- return L(2);
194
+ return q(2);
196
195
  case "a":
197
196
  return j(h, y, !0);
198
197
  case "A":
@@ -208,53 +207,53 @@ function lt() {
208
207
  case "SSS":
209
208
  return c.s(n.$ms, 3, "0");
210
209
  case "Z":
211
- return a;
210
+ return u;
212
211
  }
213
212
  return null;
214
- }($) || a.replace(":", "");
213
+ }(g) || u.replace(":", "");
215
214
  });
216
215
  }, r.utcOffset = function() {
217
216
  return 15 * -Math.round(this.$d.getTimezoneOffset() / 15);
218
217
  }, r.diff = function(t, n, e) {
219
- var s, a = this, h = c.p(n), y = m(t), v = (y.utcOffset() - this.utcOffset()) * u, g = this - y, b = function() {
220
- return c.m(a, y);
218
+ var s, u = this, h = c.p(n), y = v(t), _ = (y.utcOffset() - this.utcOffset()) * a, $ = this - y, x = function() {
219
+ return c.m(u, y);
221
220
  };
222
221
  switch (h) {
223
- case S:
224
- s = b() / 12;
222
+ case Y:
223
+ s = x() / 12;
225
224
  break;
226
- case x:
227
- s = b();
225
+ case D:
226
+ s = x();
228
227
  break;
229
- case U:
230
- s = b() / 3;
228
+ case Q:
229
+ s = x() / 3;
231
230
  break;
232
- case N:
233
- s = (g - v) / 6048e5;
231
+ case V:
232
+ s = ($ - _) / 6048e5;
234
233
  break;
235
- case Y:
236
- s = (g - v) / 864e5;
234
+ case S:
235
+ s = ($ - _) / 864e5;
237
236
  break;
238
- case D:
239
- s = g / d;
237
+ case b:
238
+ s = $ / d;
240
239
  break;
241
240
  case M:
242
- s = g / u;
241
+ s = $ / a;
243
242
  break;
244
243
  case f:
245
- s = g / p;
244
+ s = $ / l;
246
245
  break;
247
246
  default:
248
- s = g;
247
+ s = $;
249
248
  }
250
249
  return e ? s : c.a(s);
251
250
  }, r.daysInMonth = function() {
252
- return this.endOf(x).$D;
251
+ return this.endOf(D).$D;
253
252
  }, r.$locale = function() {
254
- return w[this.$L];
253
+ return O[this.$L];
255
254
  }, r.locale = function(t, n) {
256
255
  if (!t) return this.$L;
257
- var e = this.clone(), s = E(t, n, !0);
256
+ var e = this.clone(), s = R(t, n, !0);
258
257
  return s && (e.$L = s), e;
259
258
  }, r.clone = function() {
260
259
  return c.w(this.$d, this);
@@ -266,162 +265,183 @@ function lt() {
266
265
  return this.$d.toISOString();
267
266
  }, r.toString = function() {
268
267
  return this.$d.toUTCString();
269
- }, i;
270
- }(), Z = F.prototype;
271
- return m.prototype = Z, [["$ms", l], ["$s", f], ["$m", M], ["$H", D], ["$W", Y], ["$M", x], ["$y", S], ["$D", P]].forEach(function(i) {
272
- Z[i[1]] = function(r) {
273
- return this.$g(r, i[0], i[1]);
268
+ }, o;
269
+ }(), et = F.prototype;
270
+ return v.prototype = et, [["$ms", p], ["$s", f], ["$m", M], ["$H", b], ["$W", S], ["$M", D], ["$y", Y], ["$D", P]].forEach(function(o) {
271
+ et[o[1]] = function(r) {
272
+ return this.$g(r, o[0], o[1]);
274
273
  };
275
- }), m.extend = function(i, r) {
276
- return i.$i || (i(r, F, m), i.$i = !0), m;
277
- }, m.locale = E, m.isDayjs = q, m.unix = function(i) {
278
- return m(1e3 * i);
279
- }, m.en = w[H], m.Ls = w, m.p = {}, m;
274
+ }), v.extend = function(o, r) {
275
+ return o.$i || (o(r, F, v), o.$i = !0), v;
276
+ }, v.locale = R, v.isDayjs = E, v.unix = function(o) {
277
+ return v(1e3 * o);
278
+ }, v.en = O[H], v.Ls = O, v.p = {}, v;
280
279
  });
281
- }(V)), V.exports;
280
+ }(A)), A.exports;
282
281
  }
283
- (function(o, _) {
284
- (function(p, u) {
285
- o.exports = u(lt());
286
- })(X, function(p) {
287
- function u(f) {
288
- return f && typeof f == "object" && "default" in f ? f : { default: f };
282
+ var $t = W.exports, nt;
283
+ function gt() {
284
+ return nt || (nt = 1, function(i, m) {
285
+ (function(l, a) {
286
+ i.exports = a(Mt());
287
+ })($t, function(l) {
288
+ function a(f) {
289
+ return f && typeof f == "object" && "default" in f ? f : { default: f };
290
+ }
291
+ var d = a(l), p = { name: "vi", weekdays: "chủ nhật_thứ hai_thứ ba_thứ tư_thứ năm_thứ sáu_thứ bảy".split("_"), months: "tháng 1_tháng 2_tháng 3_tháng 4_tháng 5_tháng 6_tháng 7_tháng 8_tháng 9_tháng 10_tháng 11_tháng 12".split("_"), weekStart: 1, weekdaysShort: "CN_T2_T3_T4_T5_T6_T7".split("_"), monthsShort: "Th01_Th02_Th03_Th04_Th05_Th06_Th07_Th08_Th09_Th10_Th11_Th12".split("_"), weekdaysMin: "CN_T2_T3_T4_T5_T6_T7".split("_"), ordinal: function(f) {
292
+ return f;
293
+ }, formats: { LT: "HH:mm", LTS: "HH:mm:ss", L: "DD/MM/YYYY", LL: "D MMMM [năm] YYYY", LLL: "D MMMM [năm] YYYY HH:mm", LLLL: "dddd, D MMMM [năm] YYYY HH:mm", l: "DD/M/YYYY", ll: "D MMM YYYY", lll: "D MMM YYYY HH:mm", llll: "ddd, D MMM YYYY HH:mm" }, relativeTime: { future: "%s tới", past: "%s trước", s: "vài giây", m: "một phút", mm: "%d phút", h: "một giờ", hh: "%d giờ", d: "một ngày", dd: "%d ngày", M: "một tháng", MM: "%d tháng", y: "một năm", yy: "%d năm" } };
294
+ return d.default.locale(p, null, !0), p;
295
+ });
296
+ }(W)), W.exports;
297
+ }
298
+ var xt = gt();
299
+ const Dt = /* @__PURE__ */ lt(xt);
300
+ var L = {}, U = { exports: {} }, it;
301
+ function bt() {
302
+ return it || (it = 1, function(i) {
303
+ function m(l) {
304
+ return l && l.__esModule ? l : {
305
+ default: l
306
+ };
289
307
  }
290
- var d = u(p), l = { name: "vi", weekdays: "chủ nhật_thứ hai_thứ ba_thứ tư_thứ năm_thứ sáu_thứ bảy".split("_"), months: "tháng 1_tháng 2_tháng 3_tháng 4_tháng 5_tháng 6_tháng 7_tháng 8_tháng 9_tháng 10_tháng 11_tháng 12".split("_"), weekStart: 1, weekdaysShort: "CN_T2_T3_T4_T5_T6_T7".split("_"), monthsShort: "Th01_Th02_Th03_Th04_Th05_Th06_Th07_Th08_Th09_Th10_Th11_Th12".split("_"), weekdaysMin: "CN_T2_T3_T4_T5_T6_T7".split("_"), ordinal: function(f) {
291
- return f;
292
- }, formats: { LT: "HH:mm", LTS: "HH:mm:ss", L: "DD/MM/YYYY", LL: "D MMMM [năm] YYYY", LLL: "D MMMM [năm] YYYY HH:mm", LLLL: "dddd, D MMMM [năm] YYYY HH:mm", l: "DD/M/YYYY", ll: "D MMM YYYY", lll: "D MMM YYYY HH:mm", llll: "ddd, D MMM YYYY HH:mm" }, relativeTime: { future: "%s tới", past: "%s trước", s: "vài giây", m: "một phút", mm: "%d phút", h: "một giờ", hh: "%d giờ", d: "một ngày", dd: "%d ngày", M: "một tháng", MM: "%d tháng", y: "một năm", yy: "%d năm" } };
293
- return d.default.locale(l, null, !0), l;
294
- });
295
- })(G);
296
- var dt = G.exports;
297
- const pt = /* @__PURE__ */ ht(dt);
298
- var I = {}, Q = { exports: {} };
299
- (function(o) {
300
- function _(p) {
301
- return p && p.__esModule ? p : {
302
- default: p
303
- };
304
- }
305
- o.exports = _, o.exports.__esModule = !0, o.exports.default = o.exports;
306
- })(Q);
307
- var yt = Q.exports, tt = { exports: {} }, et = { exports: {} }, rt = { exports: {} }, nt = { exports: {} };
308
- (function(o) {
309
- function _(p) {
310
- "@babel/helpers - typeof";
311
- return o.exports = _ = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(u) {
312
- return typeof u;
313
- } : function(u) {
314
- return u && typeof Symbol == "function" && u.constructor === Symbol && u !== Symbol.prototype ? "symbol" : typeof u;
315
- }, o.exports.__esModule = !0, o.exports.default = o.exports, _(p);
316
- }
317
- o.exports = _, o.exports.__esModule = !0, o.exports.default = o.exports;
318
- })(nt);
319
- var it = nt.exports, ot = { exports: {} };
320
- (function(o) {
321
- var _ = it.default;
322
- function p(u, d) {
323
- if (_(u) != "object" || !u) return u;
324
- var l = u[Symbol.toPrimitive];
325
- if (l !== void 0) {
326
- var f = l.call(u, d || "default");
327
- if (_(f) != "object") return f;
328
- throw new TypeError("@@toPrimitive must return a primitive value.");
308
+ i.exports = m, i.exports.__esModule = !0, i.exports.default = i.exports;
309
+ }(U)), U.exports;
310
+ }
311
+ var J = { exports: {} }, Z = { exports: {} }, z = { exports: {} }, B = { exports: {} }, ot;
312
+ function pt() {
313
+ return ot || (ot = 1, function(i) {
314
+ function m(l) {
315
+ "@babel/helpers - typeof";
316
+ return i.exports = m = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(a) {
317
+ return typeof a;
318
+ } : function(a) {
319
+ return a && typeof Symbol == "function" && a.constructor === Symbol && a !== Symbol.prototype ? "symbol" : typeof a;
320
+ }, i.exports.__esModule = !0, i.exports.default = i.exports, m(l);
329
321
  }
330
- return (d === "string" ? String : Number)(u);
331
- }
332
- o.exports = p, o.exports.__esModule = !0, o.exports.default = o.exports;
333
- })(ot);
334
- var mt = ot.exports;
335
- (function(o) {
336
- var _ = it.default, p = mt;
337
- function u(d) {
338
- var l = p(d, "string");
339
- return _(l) == "symbol" ? l : l + "";
340
- }
341
- o.exports = u, o.exports.__esModule = !0, o.exports.default = o.exports;
342
- })(rt);
343
- var vt = rt.exports;
344
- (function(o) {
345
- var _ = vt;
346
- function p(u, d, l) {
347
- return (d = _(d)) in u ? Object.defineProperty(u, d, {
348
- value: l,
349
- enumerable: !0,
350
- configurable: !0,
351
- writable: !0
352
- }) : u[d] = l, u;
353
- }
354
- o.exports = p, o.exports.__esModule = !0, o.exports.default = o.exports;
355
- })(et);
356
- var _t = et.exports;
357
- (function(o) {
358
- var _ = _t;
359
- function p(d, l) {
360
- var f = Object.keys(d);
361
- if (Object.getOwnPropertySymbols) {
362
- var M = Object.getOwnPropertySymbols(d);
363
- l && (M = M.filter(function(D) {
364
- return Object.getOwnPropertyDescriptor(d, D).enumerable;
365
- })), f.push.apply(f, M);
322
+ i.exports = m, i.exports.__esModule = !0, i.exports.default = i.exports;
323
+ }(B)), B.exports;
324
+ }
325
+ var X = { exports: {} }, st;
326
+ function St() {
327
+ return st || (st = 1, function(i) {
328
+ var m = pt().default;
329
+ function l(a, d) {
330
+ if (m(a) != "object" || !a) return a;
331
+ var p = a[Symbol.toPrimitive];
332
+ if (p !== void 0) {
333
+ var f = p.call(a, d || "default");
334
+ if (m(f) != "object") return f;
335
+ throw new TypeError("@@toPrimitive must return a primitive value.");
336
+ }
337
+ return (d === "string" ? String : Number)(a);
366
338
  }
367
- return f;
368
- }
369
- function u(d) {
370
- for (var l = 1; l < arguments.length; l++) {
371
- var f = arguments[l] != null ? arguments[l] : {};
372
- l % 2 ? p(Object(f), !0).forEach(function(M) {
373
- _(d, M, f[M]);
374
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(d, Object.getOwnPropertyDescriptors(f)) : p(Object(f)).forEach(function(M) {
375
- Object.defineProperty(d, M, Object.getOwnPropertyDescriptor(f, M));
376
- });
339
+ i.exports = l, i.exports.__esModule = !0, i.exports.default = i.exports;
340
+ }(X)), X.exports;
341
+ }
342
+ var ut;
343
+ function Yt() {
344
+ return ut || (ut = 1, function(i) {
345
+ var m = pt().default, l = St();
346
+ function a(d) {
347
+ var p = l(d, "string");
348
+ return m(p) == "symbol" ? p : p + "";
377
349
  }
378
- return d;
379
- }
380
- o.exports = u, o.exports.__esModule = !0, o.exports.default = o.exports;
381
- })(tt);
382
- var Mt = tt.exports, W = {};
383
- Object.defineProperty(W, "__esModule", {
384
- value: !0
385
- });
386
- W.commonLocale = void 0;
387
- W.commonLocale = {
388
- yearFormat: "YYYY",
389
- dayFormat: "D",
390
- cellMeridiemFormat: "A",
391
- monthBeforeYear: !0
392
- };
393
- var gt = yt.default;
394
- Object.defineProperty(I, "__esModule", {
395
- value: !0
396
- });
397
- var st = I.default = void 0, B = gt(Mt), $t = W, bt = (0, B.default)((0, B.default)({}, $t.commonLocale), {}, {
398
- locale: "vi_VN",
399
- today: "Hôm nay",
400
- now: "Bây giờ",
401
- backToToday: "Trở về hôm nay",
402
- ok: "OK",
403
- clear: "Xóa",
404
- month: "Tháng",
405
- year: "Năm",
406
- timeSelect: "Chọn thời gian",
407
- dateSelect: "Chọn ngày",
408
- weekSelect: "Chọn tuần",
409
- monthSelect: "Chọn tháng",
410
- yearSelect: "Chọn năm",
411
- decadeSelect: "Chọn thập kỷ",
412
- dateFormat: "D/M/YYYY",
413
- dateTimeFormat: "D/M/YYYY HH:mm:ss",
414
- previousMonth: "Tháng trước (PageUp)",
415
- nextMonth: "Tháng sau (PageDown)",
416
- previousYear: "Năm trước (Control + left)",
417
- nextYear: "Năm sau (Control + right)",
418
- previousDecade: "Thập kỷ trước",
419
- nextDecade: "Thập kỷ sau",
420
- previousCentury: "Thế kỷ trước",
421
- nextCentury: "Thế kỷ sau"
422
- });
423
- st = I.default = bt;
424
- const xt = {
350
+ i.exports = a, i.exports.__esModule = !0, i.exports.default = i.exports;
351
+ }(z)), z.exports;
352
+ }
353
+ var at;
354
+ function Tt() {
355
+ return at || (at = 1, function(i) {
356
+ var m = Yt();
357
+ function l(a, d, p) {
358
+ return (d = m(d)) in a ? Object.defineProperty(a, d, {
359
+ value: p,
360
+ enumerable: !0,
361
+ configurable: !0,
362
+ writable: !0
363
+ }) : a[d] = p, a;
364
+ }
365
+ i.exports = l, i.exports.__esModule = !0, i.exports.default = i.exports;
366
+ }(Z)), Z.exports;
367
+ }
368
+ var ct;
369
+ function Ot() {
370
+ return ct || (ct = 1, function(i) {
371
+ var m = Tt();
372
+ function l(d, p) {
373
+ var f = Object.keys(d);
374
+ if (Object.getOwnPropertySymbols) {
375
+ var M = Object.getOwnPropertySymbols(d);
376
+ p && (M = M.filter(function(b) {
377
+ return Object.getOwnPropertyDescriptor(d, b).enumerable;
378
+ })), f.push.apply(f, M);
379
+ }
380
+ return f;
381
+ }
382
+ function a(d) {
383
+ for (var p = 1; p < arguments.length; p++) {
384
+ var f = arguments[p] != null ? arguments[p] : {};
385
+ p % 2 ? l(Object(f), !0).forEach(function(M) {
386
+ m(d, M, f[M]);
387
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(d, Object.getOwnPropertyDescriptors(f)) : l(Object(f)).forEach(function(M) {
388
+ Object.defineProperty(d, M, Object.getOwnPropertyDescriptor(f, M));
389
+ });
390
+ }
391
+ return d;
392
+ }
393
+ i.exports = a, i.exports.__esModule = !0, i.exports.default = i.exports;
394
+ }(J)), J.exports;
395
+ }
396
+ var N = {}, ft;
397
+ function wt() {
398
+ return ft || (ft = 1, Object.defineProperty(N, "__esModule", {
399
+ value: !0
400
+ }), N.commonLocale = void 0, N.commonLocale = {
401
+ yearFormat: "YYYY",
402
+ dayFormat: "D",
403
+ cellMeridiemFormat: "A",
404
+ monthBeforeYear: !0
405
+ }), N;
406
+ }
407
+ var ht;
408
+ function jt() {
409
+ if (ht) return L;
410
+ ht = 1;
411
+ var i = bt().default;
412
+ Object.defineProperty(L, "__esModule", {
413
+ value: !0
414
+ }), L.default = void 0;
415
+ var m = i(Ot()), l = wt(), a = (0, m.default)((0, m.default)({}, l.commonLocale), {}, {
416
+ locale: "vi_VN",
417
+ today: "Hôm nay",
418
+ now: "Bây giờ",
419
+ backToToday: "Trở về hôm nay",
420
+ ok: "OK",
421
+ clear: "Xóa",
422
+ month: "Tháng",
423
+ year: "Năm",
424
+ timeSelect: "Chọn thời gian",
425
+ dateSelect: "Chọn ngày",
426
+ weekSelect: "Chọn tuần",
427
+ monthSelect: "Chọn tháng",
428
+ yearSelect: "Chọn năm",
429
+ decadeSelect: "Chọn thập kỷ",
430
+ dateFormat: "D/M/YYYY",
431
+ dateTimeFormat: "D/M/YYYY HH:mm:ss",
432
+ previousMonth: "Tháng trước (PageUp)",
433
+ nextMonth: "Tháng sau (PageDown)",
434
+ previousYear: "Năm trước (Control + left)",
435
+ nextYear: "Năm sau (Control + right)",
436
+ previousDecade: "Thập kỷ trước",
437
+ nextDecade: "Thập kỷ sau",
438
+ previousCentury: "Thế kỷ trước",
439
+ nextCentury: "Thế kỷ sau"
440
+ });
441
+ return L.default = a, L;
442
+ }
443
+ var Pt = jt();
444
+ const kt = /* @__PURE__ */ lt(Pt), Ht = {
425
445
  design: {
426
446
  Confirm: {
427
447
  cancel: "Hủy bỏ",
@@ -431,8 +451,8 @@ const xt = {
431
451
  resetTo: "Khôi phục đến"
432
452
  },
433
453
  Picker: {
434
- ...pt,
435
- ...st
454
+ ...Dt,
455
+ ...kt
436
456
  },
437
457
  CascaderList: {
438
458
  empty: "Không có"
@@ -443,5 +463,5 @@ const xt = {
443
463
  }
444
464
  };
445
465
  export {
446
- xt as default
466
+ Ht as default
447
467
  };